diff --git a/web/AnyChart/box/_deps/cdn.anychart.com/releases/8.14.1/js/anychart-exports.min.js b/web/AnyChart/box/_deps/cdn.anychart.com/releases/8.14.1/js/anychart-exports.min.js new file mode 100644 index 0000000000000000000000000000000000000000..66978b70f7f99f380fe9c8e93198b48a8d941a3c --- /dev/null +++ b/web/AnyChart/box/_deps/cdn.anychart.com/releases/8.14.1/js/anychart-exports.min.js @@ -0,0 +1,109 @@ +/** + * AnyChart is lightweight robust charting library with great API and Docs, that works with your stack and has tons of chart types and features. + * + * Modules: exports + * Version: 8.14.1.1941 (2026-01-19) + * License: https://www.anychart.com/buy/ + * Contact: sales@anychart.com + * Copyright: AnyChart.com 2026. All rights reserved. + */ +(function(global,factory){if(typeof module==='object'&&typeof module.exports==='object'){var wrapper=function(w){if(!w.document){throw Error('AnyChart requires a window with a document');}factory.call(w,w,w.document);try{w.acgraph.isNodeJS=Object.prototype.toString.call(global.process)=="[object process]";}catch(e){};return w.anychart;};module.exports=global.document?wrapper(global):wrapper;}else{factory.call(global,window,document)}})(typeof window!=='undefined'?window:this,function(window,document,opt_noGlobal){var $,_,$_=this.anychart;if($_&&(_=$_._)){$=$_.$}else{throw Error('anychart-base.min.js module should be included first. See modules explanation at https://docs.anychart.com/Quick_Start/Modules for details');$={};_={}}if(!_.exports){_.exports=1;(function($){var nW,dia,oW,qW,fia,gia,hia,iia,jia,tW,uW,kia,vW,mia,wW,xW,oia,pia,ria,sia,yW,tia,zW,via,wia,AW,BW,xia,yia,zia,CW,Aia,Bia,Cia,Dia,Eia,Fia,Gia,EW,GW,Kia,FW,HW,Mia,Nia,Lia,IW,Iia,JW,NW,Qia,Via,LW,OW,Wia,MW,PW,Xia,Zia,$ia,aja,Yia,QW,dja,hja,eja,ija,jja,WW,gja,TW,UW,lja,$W,aX,bX,cX,eX,fX,gX,hX,iX,mja,jX,nja,lX,oja,pja,oX,qja,pX,mX; +nW=function(a,b,c){$.p(c)||(c="a4");c=mW[c];$.p(a)&&$.p(b)?$.z(a)&&$.da(b)?(a=a.toLowerCase(),(a=mW[a])&&(b?c={width:a.height,height:a.width}:c=a)):(c.width=String(a),c.height=String(b)):$.p(a)&&(a=mW[String(a)])&&(c=a);$.fc(c.width,"px")||$.fc(c.width,"mm")||(c.width+="px");$.fc(c.height,"px")||$.fc(c.height,"mm")||(c.height+="px");return c};dia=function(a,b){$.yj(a,null,b,void 0)}; +oW=function(a,b){if(a){var c=$.Me("STYLE");c.type="text/css";c.styleSheet?c.styleSheet.cssText=a:c.appendChild(window.document.createTextNode(String(a)));$.We($.Ae(window.document,"head",void 0,b)[0],c,0)}};qW=function(){pW&&(window.document.body.removeChild(pW),pW=null)}; +fia=function(a){if(!pW){var b=window.document.createElement("iframe");pW=b;$.uf(b,{visibility:"hidden",position:"fixed",right:0,bottom:0});window.document.body.appendChild(b);if(a){a=$.gk();for(var c,d=0,e=a.length;db.length){c.push(hia(a)+"(");for(var d=a.arguments,e=0;d&&eb)throw Error("Bad port number "+b);a.G=b}else a.G=null};Gia=function(a,b,c){b instanceof FW?(a.f=b,Iia(a.f,a.b)):(c||(b=GW(b,Jia)),a.f=new FW(b,a.b))};EW=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""}; +GW=function(a,b,c){return $.z(a)?(a=(0,window.encodeURI)(a).replace(b,Kia),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};Kia=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};FW=function(a,b){this.f=this.b=null;this.i=a||null;this.j=!!b};HW=function(a){a.b||(a.b=new $.gC,a.f=0,a.i&&Dia(a.i,function(b,c){a.add((0,window.decodeURIComponent)(b.replace(/\+/g," ")),c)}))}; +Mia=function(a){var b=Bia(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new FW(null,void 0);a=Aia(a);for(var d=0;dNumber($.ad)&&(c.vl.src='javascript:""');d=c.vl.style;d.visibility="hidden";d.width=d.height="10px";d.display="none";$.xd?d.marginTop=d.marginLeft="-10px":(d.position="absolute",d.top=d.left="-10px");if($.hd&&!$.bd("11")){c.Uk.target=c.LA||"";$.ye(c.Uk).b.body.appendChild(c.vl);$.Ld(c.vl,"readystatechange",c.IW,!1,c);try{c.b=!1,c.Uk.submit()}catch(Ib){$.Yd(c.vl,"readystatechange",c.IW,!1,c),LW(c)}}else{$.ye(c.Uk).b.body.appendChild(c.vl);d=c.LA+"_inner";e=BW(c.vl);if(window.document.baseURI){var f= +$.pc(d);$.ie("Short HTML snippet, input escaped, safe URL, for performance");f='';f=$.re(f,null)}else f=$.pc(d),$.ie("Short HTML snippet, input escaped, for performance"),f=$.re('',null);$.yd&&!$.xd?e.documentElement.innerHTML=yW(f):e.write(yW(f));$.Ld(e.getElementById(d),"load",c.jO,!1,c);var h=AW("TEXTAREA",c.Uk);f=0;for(var k=h.length;f.");if("A"in Sia)throw Error("Tag name is not allowed for SafeHtml.");w=null;x="";if(u)for(var S in u){if(!Ria.test(S))throw Error('Invalid attribute name "'+ +S+'".');var wa=u[S];if(null!=wa){G=x;y=S;B=wa;if(B instanceof $.he)B=tW(B);else if("style"==y.toLowerCase())B=via(B);else{if(/^on/i.test(y))throw Error('Attribute "'+y+'" requires goog.string.Const value, "'+B+'" given.');if(y.toLowerCase()in Tia)if(B instanceof vW)B=mia(B);else if(B instanceof $.ke)B=wW(B);else if($.z(B))B=xW(B).cu();else throw Error('Attribute "'+y+'" on tag "a" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+B+'" given.');}B.Ay&&(B=B.cu());var sa=y+'="'+$.pc(String(B))+ +'"';x=G+(" "+sa)}}var Qa="";else{var xb=wia(Q);Qa+=">"+yW(xb)+"";w=xb.b()}var mc=u&&u.dir;mc&&(/^(ltr|rtl|auto)$/i.test(mc)?w=0:w=null);var hb=$.re(Qa,w);var dc=wia(O,hb,zW("\nLine: "+v.lineNumber+"\n\nBrowser stack:\n"+v.stack+"-> [end]\n\nJS stack traversal:\n"+jia(void 0)+"-> "))}catch(Ac){dc=zW("Exception trying to expose exception! You win, we lose. "+Ac)}yW(dc);$.Yd(e.getElementById(d),"load",c.jO,!1,c);e.close();LW(c)}}MW(c)}; +Qia=function(a,b){var c=$.ye(a);Cia(b,function(b,e){$.A(b)||(b=[b]);(0,$.Pe)(b,function(b){b=c.Ac("INPUT",{type:"hidden",name:e,value:b});a.appendChild(b)})})};Via=function(a,b){a.iG=!0;a.cw=!1;var c,d;c||"function"!=typeof a.i||(d=a.i(b))&&(c=4);c?LW(a):(a.dispatchEvent("complete"),a.dispatchEvent("success"),OW(a))};LW=function(a){a.b||(a.cw=!1,a.iG=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"),OW(a),a.b=!0)};OW=function(a){Wia(a);MW(a);a.Uk=null;a.dispatchEvent("ready")}; +Wia=function(a){var b=a.vl;b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,a.f.push(b));a.KA&&($.Ej(a.KA),a.KA=null);$.gd||$.yd&&!$.xd?a.KA=$.Dj(a.Y0,2E3,a):a.Y0();a.vl=null;a.LA=null};MW=function(a){a.Uk&&a.Uk==KW&&$.Ve(a.Uk)};PW=function(a){return a.vl?$.hd&&!$.bd("11")?a.vl:BW(a.vl).getElementById(a.LA+"_inner"):null};Xia=function(){};Zia=function(a){var b;(b=a.b)||(b={},Yia(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b};$ia=function(){}; +aja=function(a){return(a=Yia(a))?new window.ActiveXObject(a):new window.XMLHttpRequest};Yia=function(a){if(!a.f&&"undefined"==typeof window.XMLHttpRequest&&"undefined"!=typeof window.ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;ck?[k/h*d,k]:[c,k],k[0]-=e||0, +k[1]-=f||0,a=a.Nq(k[0],k[1])):a=a.Nq(b["pdf-width"],b["pdf-height"]);b.data=a;b.dataType="svg";b.responseType="file"};fX=function(a,b,c,d,e){if("svg"==$.kk){var f={};aX(a,f,b,c,d,e);NW(ZW+"/png",f)}else(0,window.alert)($.ld(15))};gX=function(a,b,c,d,e,f){if("svg"==$.kk){var h={};bX(a,h,b,c,d,e,f);NW(ZW+"/jpg",h)}else(0,window.alert)($.ld(15))};hX=function(a,b,c,d,e,f){if("svg"==$.kk){var h={};eX(a,h,b,c,d,e,f);NW(ZW+"/pdf",h)}else(0,window.alert)($.ld(15))}; +iX=function(a,b,c,d){if("svg"==$.kk){var e={};cX(a,e,b,c,d);NW(ZW+"/svg",e)}else(0,window.alert)($.ld(15))};mja=function(a){var b="";a&&(b=(new window.XMLSerializer).serializeToString(a));return b};jX=function(){this.b={};this.i={};this.G={};this.j={};this.F={};this.ea=["svg2pdf.min.js","jspdf.min.js","canvg.min.js","xlsx.core.min.js"];this.i3=!1;this.K={}}; +nja=function(a){var b=kX,c=$.fa.anychart.exports;if(c.i3)return zia();var d=b.ea,e=c.ic(a,"clientside").path;e+=$.fc(e,"/")?"":"/";a=[];for(var f=0;fn||!f&&qu?"l":"p","pt",[t,u]);$.z(b)? +r.addImage(b,"png",h,k,t,u):$.fa.svg2pdf(b,r,{xOffset:h,yOffset:k,scale:1})}r.save(l)}catch(v){d(c)}}; +oX=function(a,b,c,d,e,f,h){var k=nX[c],l=$.Re(window.document,"canvas");l.width=d;l.height=e;$.uf(l,{width:d,height:e,visibility:"hidden",position:"fixed",right:0,bottom:0});$.Vp.body.appendChild(l);var m=l.getContext("2d"),n=new window.Image,q=b.quality||.92;a.setAttribute("width",d);a.setAttribute("height",e);var r=(new window.XMLSerializer).serializeToString(a),t=kia(new window.Blob([r],{type:"image/svg+xml"}));n.onload=function(){try{if(l.msToBlob&&m.drawSvg){m.drawSvg(r,0,0,d,e);var a=l.toDataURL(k, +q)}else m.drawImage(n,0,0,d,e),a=l.toDataURL(k,q);f(a);$.Xe(l);uW().revokeObjectURL(t)}catch(v){h(b)}};n.src=t}; +qja=function(a,b,c,d,e,f,h){function k(a){mX(a,l,c)}var l=d.filename||"anychart",m=0m||!l&&n'+c};$.E("acgraph.server",function(a){$.p(a)&&(ZW=a);return ZW});var qX=$.Yj.prototype;qX.useAnychartExporting=qX.wla;qX.saveAsPNG=qX.Eu; +qX.saveAsJPG=qX.Xw;qX.saveAsPDF=qX.Yw;qX.saveAsSVG=qX.Zw;qX.saveAsPng=qX.Eu;qX.saveAsJpg=qX.Xw;qX.saveAsPdf=qX.Yw;qX.saveAsSvg=qX.Zw;qX.shareAsPng=qX.Hu;qX.shareAsJpg=qX.FB;qX.shareAsPdf=qX.GB;qX.shareAsSvg=qX.HB;qX.getPngBase64String=qX.zA;qX.getJpgBase64String=qX.wA;qX.getSvgBase64String=qX.BA;qX.getPdfBase64String=qX.yA;qX.print=qX.print;qX.toSvg=qX.Nq;$.g=jX.prototype;$.g.u0=function(a){return"object"==$.ka(a)?($.ra(this.K,a),this):this.K};$.g.filename=function(a){$.p(a)&&(this.aa=a);return this.aa};$.g.xk=function(a,b){return this.b=CW({width:a,height:b},a,this.b)};$.g.v1=function(a,b,c,d,e,f,h){return this.i=CW({caption:a,link:b,name:c,description:d,width:e,height:f,appId:h},a,this.i)};$.g.R6=function(a,b,c){return this.G=CW({url:a,width:b,height:c},a,this.G)}; +$.g.G3=function(a,b,c,d){return this.j=CW({caption:a,description:b,width:c,height:d},a,this.j)};$.g.D4=function(a,b,c,d){return this.F=CW({link:a,description:b,width:c,height:d},a,this.F)}; +$.g.TK=function(){this.aa="anychart";this.b={width:void 0,height:void 0};this.i={caption:$.ll.location?$.ll.location.hostname:"",link:void 0,name:void 0,description:void 0,appId:0x42607363aa4b7,width:1200,height:630};this.G={url:"https://export.anychart.com/sharing/twitter",width:1024,height:800};this.j={caption:"AnyChart",description:void 0,width:1200,height:630};this.F={link:void 0,description:void 0,width:1200,height:800};this.K={path:"https://cdn.anychart.com/3rd/",enabled:!0,fallback:!0}}; +$.g.D=function(){var a={};lX(a,"filename",this.aa);lX(a,"image",this.b);lX(a,"facebook",this.i);lX(a,"twitter",this.G);lX(a,"linkedin",this.j);lX(a,"pinterest",this.F);lX(a,"clientside",this.K);return a};$.g.U=function(a){this.filename(a.filename);this.xk(a.image);this.v1(a.facebook);this.R6(a.twitter);this.G3(a.linkedin);this.D4(a.pinterest);this.u0(a.clientside)};var rX=jX.prototype;rX.filename=rX.filename;rX.image=rX.xk;rX.facebook=rX.v1;rX.twitter=rX.R6;rX.linkedin=rX.G3;rX.pinterest=rX.D4; +rX.clientside=rX.u0;var nX={png:"image/png",jpg:"image/jpeg",svg:"image/svg+xml",csv:"text/csv",pdf:"application/pdf",json:"application/json",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xml:"text/xml"};var kX=new jX;kX.TK();kX.create=function(){return new jX};kX.ic=function(a,b){var c=a&&a.exports?a.exports()[b]():void 0,d=$.fa.anychart.exports[b](),e;"object"==$.ka(c)?e=CW(d,c,d):e=$.p(c)?c:d;return e};kX.na=$.fa.IS_ANYCHART_AMD?$.oq.acgraph.server:$.ll.acgraph.server;kX.ba=function(a,b,c){return function(){NW(ZW+"/"+c,{"file-name":b,data:a,dataType:c,responseType:"file"})}};kX.f=function(a,b){return function(c){a.fallback?($.kl(1E3,null,[],!0),b.call(null,arguments)):$.kl(1002,null,[],!0)}}; +kX.Eu=function(a,b,c,d,e,f){var h=b?b.Ka():null;h&&(b=kX.ic(a,"image"),c=CW({width:c,height:d,quality:e,filename:f},c,{width:b.width,height:b.height,filename:kX.ic(a,"filename")}),d=kX.ic(a,"clientside"),e=kX.f(d,function(a){fX(h,a.width,a.height,a.quality,a.filename)}),d.enabled?pX(a,"png",c,e):d.fallback?fX(h,c.width,c.height,c.quality,c.filename):$.kl(1001,null,[],!0))}; +kX.Xw=function(a,b,c,d,e,f,h){var k=b?b.Ka():null;k&&(b=kX.ic(a,"image"),c=CW({width:c,height:d,quality:e,forceTransparentWhite:f,filename:h},c,{width:b.width,height:b.height,filename:kX.ic(a,"filename")}),d=kX.ic(a,"clientside"),e=kX.f(d,function(a){gX(k,a.width,a.height,a.quality,a.forceTransparentWhite,a.filename)}),d.enabled?pX(a,"jpg",c,e):d.fallback?gX(k,c.width,c.height,c.quality,c.forceTransparentWhite,c.filename):$.kl(1001,null,[],!0))}; +kX.Yw=function(a,b,c,d,e,f,h){var k=b?b.Ka():null;k&&(b=kX.ic(a,"image"),c=CW({paperSize:c,width:c,landscape:d,height:d,x:e,y:f,filename:h},c,{width:b.width,height:b.height,filename:kX.ic(a,"filename")}),d=kX.ic(a,"clientside"),e=kX.f(d,function(a){hX(k,a.paperSize||a.width,a.landscape||a.height,a.x,a.y,a.filename)}),d.enabled?pX(a,"pdf",c,e):d.fallback?hX(k,c.paperSize||c.width,c.landscape||c.height,c.x,c.y,c.filename):$.kl(1001,null,[],!0))}; +kX.Zw=function(a,b,c,d,e){var f=b?b.Ka():null;f&&(b=kX.ic(a,"image"),c=CW({paperSize:c,width:c,landscape:d,height:d,filename:e},c,{width:b.width,height:b.height,filename:kX.ic(a,"filename")}),d=kX.ic(a,"clientside"),e=kX.f(d,function(a){iX(f,a.paperSize||a.width,a.landscape||a.height,a.filename)}),d.enabled?pX(a,"svg",c,e):d.fallback?iX(f,c.paperSize||c.width,c.landscape||c.height,c.filename):$.kl(1001,null,[],!0))}; +kX.Nq=function(a,b,c,d){return(b=b?b.Ka():null)?(a=kX.ic(a,"image"),c=CW({paperSize:c,width:c,landscape:d,height:d},c,{width:a.width,height:a.height}),b.Nq(c.paperSize||c.width,c.landscape||c.height)):""};kX.P=function(a,b,c,d){d=d||kX.ic(a,"filename");a=kX.ic(a,"clientside");var e=kX.ba(b,d,c),f=kX.f(a,e);if(a.enabled)try{mX(new window.Blob([b],{type:nX[c]||""}),d,c)}catch(h){f()}else a.fallback?e():$.kl(1001,null,[],!0)};kX.WO=function(a,b,c){kX.P(a,b,"xml",c)}; +kX.VO=function(a,b,c){kX.P(a,b,"json",c)};kX.cz=function(a,b,c){kX.P(a,b,"csv",c)};kX.dz=function(a,b,c){var d=kX.ic(a,"clientside");c=c||kX.ic(a,"filename");var e=kX.ba(b,c,"xlsx"),f=kX.f(d,e);d.enabled?oja(a,b,c,f):d.fallback?e():$.kl(1001,null,[],!0)}; +kX.Hu=function(a,b,c,d,e,f,h,k,l){if(b=b?b.Ka():null){var m=kX.ic(a,"image");a=CW({onSuccess:c,onError:d,asBase64:e,width:f,height:h,quality:k,filename:l},c,{width:m.width,height:m.height,filename:kX.ic(a,"filename")});b.Hu(a.onSuccess,a.onError,a.asBase64,a.width,a.height,a.quality,a.filename)}}; +kX.FB=function(a,b,c,d,e,f,h,k,l,m){if(b=b?b.Ka():null){var n=kX.ic(a,"image");a=CW({onSuccess:c,onError:d,asBase64:e,width:f,height:h,quality:k,forceTransparentWhite:l,filename:m},c,{width:n.width,height:n.height,filename:kX.ic(a,"filename")});b.FB(a.onSuccess,a.onError,a.asBase64,a.width,a.height,a.quality,a.forceTransparentWhite,a.filename)}}; +kX.HB=function(a,b,c,d,e,f,h,k){if(b=b?b.Ka():null){var l=kX.ic(a,"image");a=CW({onSuccess:c,onError:d,asBase64:e,paperSize:f,width:f,landscape:h,height:h,filename:k},c,{width:l.width,height:l.height,filename:kX.ic(a,"filename")});b.HB(a.onSuccess,a.onError,a.asBase64,a.paperSize||a.width,a.landscape||a.height,a.filename)}}; +kX.GB=function(a,b,c,d,e,f,h,k,l,m){if(b=b?b.Ka():null){var n=kX.ic(a,"image");a=CW({onSuccess:c,onError:d,asBase64:e,paperSize:f,width:f,landscape:h,height:h,x:k,y:l,filename:m},c,{width:n.width,height:n.height,filename:kX.ic(a,"filename")});b.GB(a.onSuccess,a.onError,a.asBase64,a.paperSize||a.width,a.landscape||a.height,a.x,a.y,a.filename)}}; +kX.zA=function(a,b,c,d,e,f,h){if(b=b?b.Ka():null)a=kX.ic(a,"image"),c=CW({onSuccess:c,onError:d,width:e,height:f,quality:h},c,{width:a.width,height:a.height}),b.zA(c.onSuccess,c.onError,c.width,c.height,c.quality)};kX.wA=function(a,b,c,d,e,f,h,k){if(b=b?b.Ka():null)a=kX.ic(a,"image"),c=CW({onSuccess:c,onError:d,width:e,height:f,quality:h,forceTransparentWhite:k},c,{width:a.width,height:a.height}),b.wA(c.onSuccess,c.onError,c.width,c.height,c.quality,c.forceTransparentWhite)}; +kX.BA=function(a,b,c,d,e,f){if(b=b?b.Ka():null)a=kX.ic(a,"image"),c=CW({onSuccess:c,onError:d,paperSize:e,width:e,landscape:f,height:f},c,{width:a.width,height:a.height}),b.BA(c.onSuccess,c.onError,c.paperSize||c.width,c.landscape||c.height)};kX.yA=function(a,b,c,d,e,f,h,k){if(b=b?b.Ka():null)a=kX.ic(a,"image"),c=CW({onSuccess:c,onError:d,paperSize:e,width:e,landscape:f,height:f,x:h,y:k},c,{width:a.width,height:a.height}),b.yA(c.onSuccess,c.onError,c.paperSize||c.width,c.landscape||c.height,c.x,c.y)}; +kX.print=function(a,b,c,d){if(a=b?b.Ka():null)c=CW({paperSize:c,landscape:d},c),a.print(c.paperSize,c.landscape)}; +kX.LE=function(a,b,c,d,e,f){var h=kX.ic(a,"facebook"),k=CW({caption:c,link:d,name:e,description:f},c,h),l=$.ll.open("","_blank","scrollbars=yes, width=550, height=550, top="+Number(window.screen.height/2-275)+", left="+Number(window.screen.width/2-275));kX.Hu(a,b,function(a){a={app_id:h.appId,display:"popup",picture:a};a.caption=k.caption;k.link&&(a.link=k.link,k.name&&(a.name=k.name),k.description&&(a.description=k.description));var b="",c;for(c in a)b+=b?"&":"",b+=c+"="+a[c];l.location.href="https://www.facebook.com/dialog/feed?"+ +b},void 0,!1,h.width,h.height)}; +kX.OE=function(a,b){var c=kX.ic(a,"twitter"),d=Number(window.screen.width/2-300),e=Number(window.screen.height/2-260);var f=$.Ae(window.document,"INPUT","ac-share-twitter-data-input",void 0);if(0img{margin-right:auto;margin-left:auto;display:block;max-width:100%;height:auto;}.anychart-thumbnail:hover,.anychart-thumbnail:focus{border-color:#cccccc;box-shadow:0 1px 3px rgba(0,0,0,.2);}.anychart-thumbnail:active{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);border-color:#489adc;}.anychart-loader{background-color:rgba(255,255,255,.5);position:absolute;top:0;left:0;width:100%;height:100%;z-index:1000;}.anychart-loader .anychart-loader-rotating-cover{width:70px;height:70px;position:absolute;top:50%;margin-top:-35px;left:50%;margin-left:-35px;}.anychart-loader .anychart-loader-rotating-plane{display:block;width:100%;height:100%;border-radius:20%;border:5px solid #1c75ba;margin:0 auto;position:relative;-webkit-animation:anychart-loader-rotate-plane 3s infinite;animation:anychart-loader-rotate-plane 3s infinite;}.anychart-loader .anychart-loader-chart-row{position:absolute;top:10px;bottom:0;left:10px;right:10px;letter-spacing:-3px;line-height:0;font-size:0;white-space:nowrap;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col{display:inline-block;width:25%;height:90%;background:#000000;margin:0 12.5% 0 0;vertical-align:bottom;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col.anychart-loader-green{background:#26a957;height:50%;-webkit-animation:anychart-loader-blink-plane 1.5s infinite;animation:anychart-loader-blink-plane 1.5s infinite;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col.anychart-loader-orange{background:#ff8207;height:70%;-webkit-animation:anychart-loader-blink-plane 1.5s infinite .15s;animation:anychart-loader-blink-plane 1.5s infinite .25s;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col.anychart-loader-red{background:#f0402e;height:90%;-webkit-animation:anychart-loader-blink-plane 1.5s infinite .3s;animation:anychart-loader-blink-plane 1.5s infinite .5s;}@keyframes anychart-loader-rotate-plane{0%{-webkit-transform:perspective(120px)rotateX(0deg)rotateY(0deg);transform:perspective(120px)rotateX(0deg)rotateY(0deg);opacity:1;}25%{-webkit-transform:perspective(120px)rotateX(-180.1deg)rotateY(0deg);transform:perspective(120px)rotateX(-180.1deg)rotateY(0deg);opacity:.3;}50%{-webkit-transform:perspective(120px)rotateX(-180deg)rotateY(-179.9deg);transform:perspective(120px)rotateX(-180deg)rotateY(-179.9deg);opacity:1;}75%{-webkit-transform:perspective(120px)rotateX(0deg)rotateY(-180.1deg);transform:perspective(120px)rotateX(0deg)rotateY(-180.1deg);opacity:.3;}100%{-webkit-transform:perspective(120px)rotateX(0deg)rotateY(0deg);transform:perspective(120px)rotateX(0deg)rotateY(0deg);opacity:1;}}@keyframes anychart-loader-blink-plane{0%{opacity:1;}50%{opacity:.01;}100%{opacity:1;}}.anychart-custom-button{margin:2px;border:0;padding:0;font-family:Arial,sans-serif;color:#000000;background:#dddddd url("../../../../ssl.gstatic.com/editor/button-bg.png") repeat-x top left;text-decoration:none;list-style:none;vertical-align:middle;cursor:pointer;outline:none;}.anychart-custom-button-outer-box,.anychart-custom-button-inner-box{border-style:solid;border-color:#aaaaaa;vertical-align:top;}.anychart-custom-button-outer-box{margin:0;border-width:1px 0;padding:0;}.anychart-custom-button-inner-box{margin:0 -1px;border-width:0 1px;padding:3px 4px;white-space:nowrap;}* html .anychart-custom-button-inner-box{left:-1px;}* html .anychart-custom-button-rtl .anychart-custom-button-outer-box{left:-1px;}* html .anychart-custom-button-rtl .anychart-custom-button-inner-box{right:auto;}* :first-child+html .anychart-custom-button-inner-box{left:-1px;}* :first-child+html .anychart-custom-button-rtl .anychart-custom-button-inner-box{left:1px;}::root .anychart-custom-button,::root .anychart-custom-button-outer-box{line-height:0;}::root .anychart-custom-button-inner-box{line-height:normal;}.anychart-custom-button-disabled{background-image:none !important;opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30);cursor:default;}.anychart-custom-button-disabled .anychart-custom-button-outer-box,.anychart-custom-button-disabled .anychart-custom-button-inner-box{color:#333333 !important;border-color:#999999 !important;}* html .anychart-custom-button-disabled{margin:2px 1px !important;padding:0 1px !important;}* :first-child+html .anychart-custom-button-disabled{margin:2px 1px !important;padding:0 1px !important;}.anychart-custom-button-hover .anychart-custom-button-outer-box,.anychart-custom-button-hover .anychart-custom-button-inner-box{border-color:#99ccff #6699ee #6699ee #77aaff !important;}.anychart-custom-button-active,.anychart-custom-button-checked{background-color:#bbbbbb;background-position:bottom left;}.anychart-custom-button-focused .anychart-custom-button-outer-box,.anychart-custom-button-focused .anychart-custom-button-inner-box{border-color:orange;}.anychart-custom-button-collapse-right,.anychart-custom-button-collapse-right .anychart-custom-button-outer-box,.anychart-custom-button-collapse-right .anychart-custom-button-inner-box{margin-right:0;}.anychart-custom-button-collapse-left,.anychart-custom-button-collapse-left .anychart-custom-button-outer-box,.anychart-custom-button-collapse-left .anychart-custom-button-inner-box{margin-left:0;}.anychart-custom-button-collapse-left .anychart-custom-button-inner-box{border-left:1px solid #ffffff;}.anychart-custom-button-collapse-left.anychart-custom-button-checked.anychart-custom-button-inner-box{border-left:1px solid #dddddd;}* html .anychart-custom-button-collapse-left .anychart-custom-button-inner-box{left:0;}* :first-child+html .anychart-custom-button-collapse-left.anychart-custom-button-inner-box{left:0;}.anychart-button{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #dcdcdc;border:1px solid rgba(0,0,0,0.1);color:#333333;cursor:pointer;text-align:center;font-family:inherit;font-size:11px;font-weight:bold;height:29px;line-height:27px;margin-right:16px;min-width:52px;outline:0;padding:0 8px;white-space:nowrap;}.anychart-button:focus{border-color:#4d90fe;}.anychart-button:hover{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);}.anychart-button:active{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);}.anychart-button i{font-size:11px;}.anychart-button.anychart-button-disabled:active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:default;}.anychart-button-primary{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#4898e6;background-image:-webkit-linear-gradient(to bottom,#4898e6,#4089d0);background-image:-moz-linear-gradient(to bottom,#4898e6,#4089d0);background-image:-ms-linear-gradient(to bottom,#4898e6,#4089d0);background-image:-o-linear-gradient(to bottom,#4898e6,#4089d0);background-image:linear-gradient(to bottom,#4898e6,#4089d0);border:1px solid #1976d2;color:#ffffff;cursor:pointer;font-size:11px;font-weight:bold;height:26px;line-height:24px;margin:0 16px 0 0;min-width:70px;outline:0;padding:0 7px;}.anychart-button-primary:hover,.anychart-button-primary:active{background-color:#4898e6;background-image:-webkit-linear-gradient(to bottom,#4898e6,#387ec3);background-image:-moz-linear-gradient(to bottom,#4898e6,#387ec3);background-image:-ms-linear-gradient(to bottom,#4898e6,#387ec3);background-image:-o-linear-gradient(to bottom,#4898e6,#387ec3);background-image:linear-gradient(to bottom,#4898e6,#387ec3);border:1px solid #1976d2;color:#ffffff;}.anychart-button-primary:focus{-webkit-box-shadow:inset 0 0 0 1px #ffffff;-moz-box-shadow:inset 0 0 0 1px #ffffff;box-shadow:inset 0 0 0 1px #ffffff;outline:0;}.anychart-button-primary:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);}.anychart-button-primary.anychart-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background:#4d90fe;background-image:-webkit-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:-moz-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:-ms-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:-o-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:linear-gradient(to bottom,#4d90fe,#4089d0);filter:alpha(opacity=50);opacity:0.5;cursor:default;}.anychart-button-secondary{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #dcdcdc;color:#333333;cursor:pointer;font-size:11px;font-weight:bold;height:26px;line-height:24px;margin:0 16px 0 0;min-width:70px;outline:0;padding:0 7px;}.anychart-button-secondary:hover,.anychart-button-secondary:active{-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,0.1);box-shadow:0 1px 1px rgba(0,0,0,0.1);background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);border:1px solid #c6c6c6;color:#111111;}.anychart-button-secondary:focus{border:1px solid #4d90fe;}.anychart-button-secondary:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);}.anychart-button-secondary.anychart-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #f3f3f3;border:1px solid rgba(0,0,0,0.05);color:#b8b8b8;cursor:default;}.anychart-button-standard{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);color:#333333;border:1px solid #dcdcdc;border:1px solid rgba(0,0,0,0.1);}.anychart-button-standard:hover{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);border:1px solid #c6c6c6;color:#111111;}.anychart-button-standard:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:#f8f8f8;color:#111111;}.anychart-button-standard.anychart-button-checked{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background-color:#eeeeee;background-image:-webkit-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-moz-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-ms-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-o-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:linear-gradient(to bottom,#eeeeee,#e0e0e0);border:1px solid #cccccc;color:#333333;}.anychart-button-standard.anychart-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #f3f3f3;border:1px solid rgba(0,0,0,0.05);color:#b8b8b8;cursor:default;}.anychart-button-toggle{height:28px;line-height:24px;padding:0;min-width:27px;margin:0;vertical-align:middle;}.anychart-button.anychart-button-toggle{z-index:auto;}.anychart-button-collapse-left,.anychart-button-collapse-right{z-index:1;}.anychart-button-collapse-left.anychart-button-checked,.anychart-button-collapse-right.anychart-button-checked{z-index:2;}.anychart-button-collapse-left:hover,.anychart-button-collapse-right:hover{z-index:3;}.anychart-button-collapse-left.anychart-button-disabled{z-index:0;}.anychart-button-collapse-right{margin-right:0;-moz-border-radius-topright:0;-moz-border-radius-bottomright:0;-webkit-border-top-right-radius:0;-webkit-border-bottom-right-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;}.anychart-button-collapse-left{margin-left:-1px;-moz-border-radius-bottomleft:0;-moz-border-radius-topleft:0;-webkit-border-bottom-left-radius:0;-webkit-border-top-left-radius:0;border-bottom-left-radius:0;border-top-left-radius:0;}.anychart-menu{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:0 2px 4px rgba(0,0,0,0.2);-moz-box-shadow:0 2px 4px rgba(0,0,0,0.2);box-shadow:0 2px 4px rgba(0,0,0,0.2);-webkit-transition:opacity 0.218s;-moz-transition:opacity 0.218s;-o-transition:opacity 0.218s;transition:opacity 0.218s;background:#ffffff;border:1px solid #cccccc;border:1px solid rgba(0,0,0,.2);cursor:default;font-size:13px;color:#222222;font-family:Arial,sans-serif;margin:0;outline:none;padding:6px 0;position:absolute;z-index:1003;line-height:normal;}.anychart-menuitem{position:relative;color:#333333;cursor:pointer;list-style:none;margin:0;padding:6px 1em 6px 30px;white-space:nowrap;}.anychart-menuitem.anychart-menuitem-rtl{padding-left:7em;padding-right:28px;}.anychart-menu-nocheckbox .anychart-menuitem,.anychart-menu-noicon .anychart-menuitem{padding-left:12px;}.anychart-menu-noaccel .anychart-menuitem{padding-right:20px;}.anychart-menuitem-disabled{cursor:default;}.anychart-menuitem-disabled .anychart-menuitem-accel,.anychart-menuitem-disabled .anychart-menuitem-content{color:#cccccc !important;}.anychart-menuitem-disabled .anychart-menuitem-icon{opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30);}.anychart-menuitem-highlight,.anychart-menuitem-hover{background-color:#eeeeee;border-color:#eeeeee;border-style:dotted;border-width:1px 0;padding-top:5px;padding-bottom:5px;}.anychart-menuitem-checkbox,.anychart-menuitem-icon{background-repeat:no-repeat;height:21px;left:3px;position:absolute;right:auto;top:3px;vertical-align:middle;width:21px;}.anychart-menuitem i{position:absolute;left:9px;}.anychart-menuitem-link{padding:0;}.anychart-menuitem-link a{text-decoration:none;color:inherit;display:inline-block;padding:6px 3em 6px 28px;width:100%;box-sizing:border-box;transition:none;}.anychart-menuitem-link i{padding-top:7px;pointer-events:none;}.anychart-menuitem-link.anychart-menuitem-highlight a{padding-bottom:5px;padding-top:5px;}.anychart-menuitem-link.anychart-menuitem-highlight i{padding-top:6px;}.anychart-menuitem-rtl .anychart-menuitem-checkbox,.anychart-menuitem-rtl .anychart-menuitem-icon{left:auto;right:6px;}.anychart-menuitem-accel{color:#777777;direction:ltr;left:auto;float:right;padding:0 0 0 24px;position:relative;right:0;text-align:right;}.anychart-menuitem-rtl .anychart-menuitem-accel{left:0;right:auto;text-align:left;}.anychart-menuitem-mnemonic-hint{text-decoration:underline;}.anychart-menuitem-mnemonic-separator{color:#999999;font-size:12px;padding-left:4px;}.anychart-menuseparator{border-top:1px solid #ebebeb;margin-top:6px;margin-bottom:6px;}.anychart-submenu-arrow{color:#000000;-webkit-transition:all 0.218s;-moz-transition:all 0.218s;-o-transition:all 0.218s;transition:all 0.218s;opacity:.5;filter:alpha(opacity=50);position:absolute;right:0;top:2px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000;font-size:0;}.anychart-menuitem-content{position:relative;}.anychart-menuitem-highlight .anychart-submenu-arrow,.anychart-menuitem-hover .anychart-submenu-arrow{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none;border-left-color:#333333;opacity:1.0;}.anychart-menuitem-rtl .anychart-submenu-arrow{text-align:left;left:0;right:auto;padding-left:6px;}.anychart-menuitem-disabled .anychart-submenu-arrow{border-left-color:#cccccc;opacity:1.0;}.anychart-menu-scrollable{overflow-y:auto;}.anychart-menu.anychart-menu-horizontal{padding-left:4px;padding-right:4px;}.anychart-menu.anychart-menu-horizontal .anychart-menuitem{display:inline-block;padding:2px 3px;}.anychart-menu.anychart-menu-horizontal .anychart-menuitem.anychart-menuitem-highlight,.anychart-menu.anychart-menu-horizontal .anychart-menuitem .anychart-menuitem-hover{padding-top:1px;padding-bottom:1px;}.anychart-menuitem.anychart-option i{position:relative;left:1px;height:23px;padding-top:1px;width:23px;}.anychart-menuitem.anychart-option i.ac-position-center{top:-1px;}.anychart-menu-button{background:#dddddd url("../../../../ssl.gstatic.com/editor/button-bg.png") repeat-x top left;border:0;color:#000000;cursor:pointer;list-style:none;margin:2px;outline:none;padding:0;text-decoration:none;vertical-align:middle;}.anychart-menu-button-outer-box,.anychart-menu-button-inner-box{border-style:solid;border-color:#aaaaaa;vertical-align:top;}.anychart-menu-button-outer-box{margin:0;border-width:1px 0;padding:0;}.anychart-menu-button-inner-box{margin:0 -1px;border-width:0 1px;padding:3px 4px;}* html .anychart-menu-button-inner-box{left:-1px;}* html .anychart-menu-button-rtl .anychart-menu-button-outer-box{left:-1px;right:auto;}* html .anychart-menu-button-rtl .anychart-menu-button-inner-box{right:auto;}* :first-child+html .anychart-menu-button-inner-box{left:-1px;}* :first-child+html .anychart-menu-button-rtl .anychart-menu-button-inner-box{left:1px;right:auto;}::root .anychart-menu-button,::root .anychart-menu-button-outer-box,::root .anychart-menu-button-inner-box{line-height:0;}::root .anychart-menu-button-caption,::root .anychart-menu-button-dropdown{line-height:normal;}.anychart-menu-button-disabled{background-image:none !important;opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30);cursor:default;}.anychart-menu-button-disabled .anychart-menu-button-outer-box,.anychart-menu-button-disabled .anychart-menu-button-inner-box,.anychart-menu-button-disabled .anychart-menu-button-caption,.anychart-menu-button-disabled .anychart-menu-button-dropdown{color:#333333 !important;border-color:#999999 !important;}* html .anychart-menu-button-disabled{margin:2px 1px !important;padding:0 1px !important;}* :first-child+html .anychart-menu-button-disabled{margin:2px 1px !important;padding:0 1px !important;}.anychart-menu-button-hover .anychart-menu-button-outer-box,.anychart-menu-button-hover .anychart-menu-button-inner-box{border-color:#99ccff #6699ee #6699ee #77aaff !important;}.anychart-menu-button-active,.anychart-menu-button-open{background-color:#bbbbbb;background-position:bottom left;}.anychart-menu-button-focused .anychart-menu-button-outer-box,.anychart-menu-button-focused .anychart-menu-button-inner-box{border-color:orange;}.anychart-menu-button-caption{padding:0 4px 0 0;vertical-align:top;}.anychart-menu-button-dropdown{height:15px;width:7px;background:url("../../../../ssl.gstatic.com/editor/editortoolbar.png") no-repeat -388px 0;vertical-align:top;}.anychart-menu-button-collapse-right,.anychart-menu-button-collapse-right .anychart-menu-button-outer-box,.anychart-menu-button-collapse-right .anychart-menu-button-inner-box{margin-right:0;}.anychart-menu-button-collapse-left,.anychart-menu-button-collapse-left .anychart-menu-button-outer-box,.anychart-menu-button-collapse-left .anychart-menu-button-inner-box{margin-left:0;}.anychart-menu-button-collapse-left .anychart-menu-button-inner-box{border-left:1px solid #ffffff;}.anychart-menu-button-collapse-left.anychart-menu-button-checked.anychart-menu-button-inner-box{border-left:1px solid #dddddd;}.anychart-flat-menu-button{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;border:1px solid #dcdcdc;color:#333333;cursor:pointer;font-size:11px;font-weight:bold;line-height:27px;list-style:none;margin:0 2px;min-width:46px;outline:none;padding:0 18px 0 6px;text-align:center;text-decoration:none;}.anychart-flat-menu-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #f3f3f3;border:1px solid rgba(0,0,0,0.05);color:#b8b8b8;cursor:default;}.anychart-flat-menu-button-disabled .anychart-flat-menu-button-dropdown{border-color:#b8b8b8 transparent;}.anychart-flat-menu-button-hover{background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);border-color:#c6c6c6;color:#111111;}.anychart-flat-menu-button.anychart-flat-menu-button-open,.anychart-flat-menu-button.anychart-flat-menu-button-active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background-color:#eeeeee;background-image:-webkit-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-moz-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-ms-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-o-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:linear-gradient(to bottom,#eeeeee,#e0e0e0);border:1px solid #cccccc;color:#333333;z-index:2;}.anychart-flat-menu-button-focused{border-color:#4d90fe;}.anychart-flat-menu-button-caption{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;padding-right:20px;text-overflow:ellipsis;overflow:hidden;width:100%;}.anychart-flat-menu-button-dropdown{border-color:#777777 transparent;border-style:solid;border-width:4px 4px 0 4px;height:0;width:0;position:absolute;right:5px;top:12px;}.anychart-flat-menu-button-active .anychart-flat-menu-button-dropdown,.anychart-flat-menu-button-open .anychart-flat-menu-button-dropdown,.anychart-flat-menu-button-selected .anychart-flat-menu-button-dropdown,.anychart-flat-menu-button-hover .anychart-flat-menu-button-dropdown{border-color:#595959 transparent;}.anychart-combobox{background:0;background-color:whiteSmoke;background-image:-webkit-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-moz-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-ms-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-o-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:linear-gradient(to bottom,whiteSmoke,#f1f1f1);border:1px solid gainsboro;border:1px solid rgba(0,0,0,0.1);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font:normal small arial,sans-serif;height:24px;color:#333333;line-height:24px;list-style:none;font-size:11px;font-weight:bold;text-decoration:none;vertical-align:middle;cursor:pointer;margin-left:4px;padding:1px 0;top:auto;}.anychart-combobox:hover{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);border-color:#c6c6c6;color:#222222;}.anychart-combobox:hover input{border-right-color:#d9d9d9;}.anychart-combobox.anychart-combobox-disabled{background-color:whiteSmoke;background-image:-webkit-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-moz-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-ms-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-o-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:linear-gradient(to bottom,whiteSmoke,#f1f1f1);border:1px solid #f2f2f2;opacity:1;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:default;}.anychart-combobox.anychart-combobox-disabled input{color:#b8b8b8;border-right-color:transparent;}.anychart-combobox.anychart-combobox-disabled .anychart-combobox-button{opacity:0.4;}.anychart-combobox input{-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background:transparent;border:1px solid transparent;color:#333333;font-family:Arial,sans-serif;font-size:11px;font-weight:bold;height:20px;overflow:hidden;padding:0 0 0 3px;position:relative;margin-right:18px;}.anychart-combobox input:focus{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-webkit-user-select:text;-moz-user-select:text;background:#ffffff;border:1px solid #4d90fe;height:20px;outline:none;}.anychart-combobox-button{display:inline-block;border-color:#777777 transparent;border-style:solid;border-width:4px 4px 0 4px;height:0;width:0;position:absolute;right:5px;top:12px;}.anychart-checkbox{cursor:pointer;display:inline-block;margin:2px 2px 2px 0;overflow:hidden;padding:0;position:relative;white-space:nowrap;vertical-align:middle;}.anychart-checkbox .anychart-checkbox-element{-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:rgba(255,255,255,.05);border:1px solid #c6c6c6;border:1px solid rgba(155,155,155,.57);height:11px;margin:0 4px 1px 1px;outline:0;vertical-align:text-bottom;width:11px;}.anychart-checkbox-hover .anychart-checkbox-element{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.1);box-shadow:inset 0 1px 1px rgba(0,0,0,.1);border:1px solid #b2b2b2;}.anychart-checkbox-focused .anychart-checkbox-element{border:1px solid #4d90fe;}.anychart-checkbox-checked{background-color:#ffffff;background-color:rgba(255,255,255,.65);}.anychart-checkbox-checked .anychart-checkbox-checkmark{display:inline-block;}.anychart-checkbox-disabled{cursor:default;color:#b8b8b8;}.anychart-checkbox-disabled .anychart-checkbox-element{background-color:#ffffff;border:1px solid #f1f1f1;cursor:default;}.anychart-checkbox-checkmark{display:none;opacity:0.6;height:15px;outline:0;width:15px;left:0;position:relative;top:-3px;}.anychart-palette{cursor:default;outline:none;}.anychart-palette-table{empty-cells:show;margin:16px;}.anychart-palette-cell{border:1px solid transparent;cursor:pointer;margin:0;position:relative;}.anychart-palette-colorswatch{border:none;font-size:14px;height:16px;position:relative;width:16px;display:block;}.anychart-palette-colorswatch:before{display:none;position:relative;top:1px;left:2px;}.anychart-palette-cell-hover{border:1px solid #000000;}.anychart-palette-cell-selected{outline:1px solid #000000;}.anychart-palette-cell-selected .anychart-palette-colorswatch:before{display:inline-block;}.anychart-color-menu-button-indicator{height:14px;margin-left:4px;outline:1px solid #bbbbbb;width:14px;}.anychart-color-menu-button .anychart-menu-button-inner-box,.anychart-toolbar-color-menu-button .anychart-toolbar-menu-button-inner-box{padding-top:2px !important;padding-bottom:2px !important;}.anychart-toolbar{background-color:#fafafa;background:linear-gradient(to bottom,#fafafa 0%,#f8f8f8 17%,#e5e5e5 100%);background:-moz-linear-gradient(to bottom,#fafafa 0%,#f8f8f8 17%,#e5e5e5 100%);background:-webkit-linear-gradient(to bottom,#fafafa 0%,#f8f8f8 17%,#e5e5e5 100%);background:-o-linear-gradient(to bottom,#fafafa 0%,#f8f8f8 17%,#e5e5e5 100%);background:-ms-linear-gradient(to bottom,#fafafa 0%,#f8f8f8 17%,#e5e5e5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fafafa",endColorstr="#e5e5e5",GradientType=0);border-bottom:1px solid #d5d5d5;cursor:default;font:normal 12px Arial,sans-serif;margin:0;outline:none;padding:2px;position:relative;zoom:1;}.anychart-toolbar-button{margin:0 2px;border:0;padding:0;font-family:Arial,sans-serif;color:#333333;text-decoration:none;list-style:none;vertical-align:middle;cursor:default;outline:none;}.anychart-toolbar-button-outer-box,.anychart-toolbar-button-inner-box{border:0;vertical-align:top;}.anychart-toolbar-button-outer-box{margin:0;padding:1px 0;}.anychart-toolbar-button-inner-box{margin:0 -1px;padding:3px 4px;}* html .anychart-toolbar-button-inner-box{left:-1px;}* html .anychart-toolbar-button-rtl .anychart-toolbar-button-outer-box{left:-1px;}* html .anychart-toolbar-button-rtl .anychart-toolbar-button-inner-box{right:auto;}* :first-child+html .anychart-toolbar-button-inner-box{left:-1px;}* :first-child+html .anychart-toolbar-button-rtl .anychart-toolbar-button-inner-box{left:1px;right:auto;}::root .anychart-toolbar-button,::root .anychart-toolbar-button-outer-box{line-height:0;}::root .anychart-toolbar-button-inner-box{line-height:normal;}.anychart-toolbar-button-disabled{opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30);}.anychart-toolbar-button-disabled .anychart-toolbar-button-outer-box,.anychart-toolbar-button-disabled .anychart-toolbar-button-inner-box{color:#333333 !important;border-color:#999999 !important;}* html .anychart-toolbar-button-disabled{background-color:#f0f0f0;margin:0 1px;padding:0 1px;}* :first-child+html .anychart-toolbar-button-disabled{background-color:#f0f0f0;margin:0 1px;padding:0 1px;}.anychart-toolbar-button-hover .anychart-toolbar-button-outer-box,.anychart-toolbar-button-active .anychart-toolbar-button-outer-box,.anychart-toolbar-button-checked .anychart-toolbar-button-outer-box,.anychart-toolbar-button-selected .anychart-toolbar-button-outer-box{border-width:1px 0;border-style:solid;padding:0;}.anychart-toolbar-button-hover .anychart-toolbar-button-inner-box,.anychart-toolbar-button-active .anychart-toolbar-button-inner-box,.anychart-toolbar-button-checked .anychart-toolbar-button-inner-box,.anychart-toolbar-button-selected .anychart-toolbar-button-inner-box{border-width:0 1px;border-style:solid;padding:3px;}.anychart-toolbar-button-hover .anychart-toolbar-button-outer-box,.anychart-toolbar-button-hover .anychart-toolbar-button-inner-box{border-color:#a1badf !important;}.anychart-toolbar-button-active,.anychart-toolbar-button-checked,.anychart-toolbar-button-selected{background-color:#dde1eb !important;}.anychart-toolbar-button-active .anychart-toolbar-button-outer-box,.anychart-toolbar-button-active .anychart-toolbar-button-inner-box,.anychart-toolbar-button-checked .anychart-toolbar-button-outer-box,.anychart-toolbar-button-checked .anychart-toolbar-button-inner-box,.anychart-toolbar-button-selected .anychart-toolbar-button-outer-box,.anychart-toolbar-button-selected .anychart-toolbar-button-inner-box{border-color:#729bd1;}.anychart-toolbar-button-collapse-right,.anychart-toolbar-button-collapse-right .anychart-toolbar-button-outer-box,.anychart-toolbar-button-collapse-right .anychart-toolbar-button-inner-box{margin-right:0;}.anychart-toolbar-button-collapse-left,.anychart-toolbar-button-collapse-left .anychart-toolbar-button-outer-box,.anychart-toolbar-button-collapse-left .anychart-toolbar-button-inner-box{margin-left:0;}* html .anychart-toolbar-button-collapse-left .anychart-toolbar-button-inner-box{left:0;}* :first-child+html .anychart-toolbar-button-collapse-left.anychart-toolbar-button-inner-box{left:0;}.anychart-toolbar-menu-button{margin:0 2px;border:0;padding:0;font-family:Arial,sans-serif;color:#333333;text-decoration:none;list-style:none;vertical-align:middle;cursor:default;outline:none;}.anychart-toolbar-menu-button-outer-box,.anychart-toolbar-menu-button-inner-box{border:0;vertical-align:top;}.anychart-toolbar-menu-button-outer-box{margin:0;padding:1px 0;}.anychart-toolbar-menu-button-inner-box{margin:0 -1px;padding:3px 4px;}* html .anychart-toolbar-menu-button-inner-box{left:-1px;}* html .anychart-toolbar-menu-button-rtl .anychart-toolbar-menu-button-outer-box{left:-1px;}* html .anychart-toolbar-menu-button-rtl .anychart-toolbar-menu-button-inner-box{right:auto;}* :first-child+html .anychart-toolbar-menu-button-inner-box{left:-1px;}* :first-child+html .anychart-toolbar-menu-button-rtl.anychart-toolbar-menu-button-inner-box{left:1px;right:auto;}::root .anychart-toolbar-menu-button,::root .anychart-toolbar-menu-button-outer-box,::root .anychart-toolbar-menu-button-inner-box{line-height:0;}::root .anychart-toolbar-menu-button-caption,::root .anychart-toolbar-menu-button-dropdown{line-height:normal;}.anychart-toolbar-menu-button-disabled{opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30);}.anychart-toolbar-menu-button-disabled .anychart-toolbar-menu-button-outer-box,.anychart-toolbar-menu-button-disabled .anychart-toolbar-menu-button-inner-box{color:#333333 !important;border-color:#999999 !important;}* html .anychart-toolbar-menu-button-disabled{background-color:#f0f0f0;margin:0 1px;padding:0 1px;}* :first-child+html .anychart-toolbar-menu-button-disabled{background-color:#f0f0f0;margin:0 1px;padding:0 1px;}.anychart-toolbar-menu-button-hover .anychart-toolbar-menu-button-outer-box,.anychart-toolbar-menu-button-active .anychart-toolbar-menu-button-outer-box,.anychart-toolbar-menu-button-open .anychart-toolbar-menu-button-outer-box{border-width:1px 0;border-style:solid;padding:0;}.anychart-toolbar-menu-button-hover .anychart-toolbar-menu-button-inner-box,.anychart-toolbar-menu-button-active .anychart-toolbar-menu-button-inner-box,.anychart-toolbar-menu-button-open .anychart-toolbar-menu-button-inner-box{border-width:0 1px;border-style:solid;padding:3px;}.anychart-toolbar-menu-button-hover .anychart-toolbar-menu-button-outer-box,.anychart-toolbar-menu-button-hover .anychart-toolbar-menu-button-inner-box{border-color:#a1badf !important;}.anychart-toolbar-menu-button-active,.anychart-toolbar-menu-button-open{background-color:#dde1eb !important;}.anychart-toolbar-menu-button-active .anychart-toolbar-menu-button-outer-box,.anychart-toolbar-menu-button-active .anychart-toolbar-menu-button-inner-box,.anychart-toolbar-menu-button-open .anychart-toolbar-menu-button-outer-box,.anychart-toolbar-menu-button-open .anychart-toolbar-menu-button-inner-box{border-color:#729bd1;}.anychart-toolbar-menu-button-caption{padding:0 4px 0 0;vertical-align:middle;}.anychart-toolbar-menu-button-dropdown{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #000000;vertical-align:middle;}.anychart-toolbar-separator{margin:0 2px;border-left:1px solid #d6d6d6;border-right:1px solid #f7f7f7;padding:0;width:0;text-decoration:none;list-style:none;outline:none;vertical-align:middle;line-height:normal;font-size:120%;overflow:hidden;}.anychart-toolbar-select .anychart-toolbar-menu-button-outer-box{border-width:1px 0;border-style:solid;padding:0;}.anychart-toolbar-select .anychart-toolbar-menu-button-inner-box{border-width:0 1px;border-style:solid;padding:3px;}.anychart-toolbar-select .anychart-toolbar-menu-button-outer-box,.anychart-toolbar-select .anychart-toolbar-menu-button-inner-box{border-color:#bfcbdf;}.anychart-range-picker{font-family:Arial,sans-serif;font-size:11px;color:#7c868e;}.anychart-range-picker.anychart-range-picker-inside{position:absolute;bottom:27px;left:20px;}.anychart-range-picker .anychart-label-input{font-size:11px;margin:0 5px;height:13px;padding:3px 4px;width:90px;font-weight:normal;}.anychart-range-picker .anychart-input-label{margin-bottom:0;font-weight:normal;}.anychart-range-selector{font-family:Arial,sans-serif;font-size:11px;color:#7c868e;}.anychart-range-selector.anychart-range-selector-inside{position:absolute;bottom:27px;right:25px;}.anychart-range-selector .anychart-input-label{margin-right:5px;vertical-align:middle;margin-bottom:0;font-weight:normal;}.anychart-range-selector .anychart-button{height:21px;line-height:19px;padding:0 5px;}.anychart-zoom{position:absolute;left:10px;top:10px;}.anychart-zoom .anychart-button{height:21px;width:21px;min-width:21px;padding:0;line-height:normal;display:block;margin:5px 0;}.anychart-zoom .anychart-zoom-zoomIn{margin:2px 0;}.anychart-zoom .anychart-zoom-zoomOut{margin:2px 0;}.disable-selection{-moz-user-select:none;-ms-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;}.anychart-tooltip{border-radius:3px;padding:5px 10px;background:rgba(33,33,33,0.7);border:none;display:inline-block;box-sizing:border-box;letter-spacing:normal;color:#ffffff;font-family:Verdana,Helvetica,Arial,'sans-serif';font-size:12px;position:absolute;pointer-events:none;margin:10px 0px 10px 10px;}.anychart-tooltip-separator{color:rgba(206,206,206,0.3);border:none;height:1px;margin:5px 0;}.anychart-tooltip-title{font-size:14px;} \ No newline at end of file diff --git a/web/AnyChart/box/_deps/cdn.anychart.com/releases/8.3.0/js/anychart-base.min.js b/web/AnyChart/box/_deps/cdn.anychart.com/releases/8.3.0/js/anychart-base.min.js new file mode 100644 index 0000000000000000000000000000000000000000..f78da9656002916adc7d469849e64edac6482c1c --- /dev/null +++ b/web/AnyChart/box/_deps/cdn.anychart.com/releases/8.3.0/js/anychart-base.min.js @@ -0,0 +1,1928 @@ +/** + * AnyChart is lightweight robust charting library with great API and Docs, that works with your stack and has tons of chart types and features. + * + * Modules: core, theme-core, pie, theme-pie, cartesian, theme-cartesian, scatter, theme-scatter + * Version: 8.3.0.1921 (2018-07-10) + * License: https://www.anychart.com/buy/ + * Contact: sales@anychart.com + * Copyright: AnyChart.com 2018. All rights reserved. + */ +(function(global,factory){if(typeof module==='object'&&typeof module.exports==='object'){var wrapper=function(w){if(!w.document){throw Error('AnyChart requires a window with a document');}factory.call(w,w,w.document);try{w.acgraph.isNodeJS=Object.prototype.toString.call(global.process)=="[object process]";}catch(e){};return w.anychart;};module.exports=global.document?wrapper(global):wrapper;}else{factory.call(global,window,document)}})(typeof window!=='undefined'?window:this,function(window,document,opt_noGlobal){var $,_,$_=this.anychart;if($_&&(_=$_._)){$=$_.$}else{$={};_={}}if(!_.core){_.core=1;(function($){var ba,ta,ua,Ha,Ka,Pa,Wa,Xa,Ya,db,tb,xb,zb,Hb,Mb,Tb,Pb,Sb,dc,wc,xc,Bc,Ec,Yb,Hc,Jc,Wc,Xc,Yc,Zc,$c,cd,dd,Gd,Ld,Md,Nd,Od,Pd,Td,Xd,Qd,de,Zd,he,ae,Vd,Sd,Ke,Ne,Se,df,we,kf,lf,qf,Cf,zf,Uf,Yf,$f,ag,gg,kg,hg,lg,pg,rg,sg,ug,vg,Bg,Eg,Fg,Hg,Gg,Cg,Lg,Kg,Sg,Vg,Wg,Xg,$g,bh,dh,fh,gh,hh,ch,eh,ah,nh,oh,ph,rh,wh,xh,uh,th,Dh,Fh,Gh,Hh,Ih,Kh,Lh,Mh,Nh,Oh,Qh,Rh,Zh,$h,ai,bi,ci,ei,Jh,di,fi,gi,hi,li,mi,ni,oi,pi,qi,ri,si,ui,vi,wi,Bi,Ci,Di,Ei,Fi,ji,ki,Hi,Ii,Ji,Ki,Li,Mi,Ni,Oi,Pi,Qi,Si,Ui,Yi,$i,aj,Wi,Xi,Ri,zj,Bj,Cj,Dj,Gj,Hj,Ij, +Jj,Lj,Kj,Aj,Oj,Yj,$b,Vi,lk,Bk,eaa,fl,naa,oaa,gl,pl,ql,sl,ul,zl,yl,Cl,Fl,Hl,Wl,uaa,fm,km,gm,nm,hm,pm,rm,cb,Dm,Fm,Gm,Hm,Jm,Qm,Rm,Sm,Tm,Wm,dn,en,fn,gn,jn,hn,kn,ln,mn,un,vn,wn,xn,waa,Cn,In,Kn,Jn,Ln,Qn,On,Nn,Sn,Tn,yaa,zaa,Aaa,Vn,Un,Wn,Xn,go,jo,Eaa,qo,Mo,Faa,Im,Qo,So,$o,Zo,Haa,Gaa,Jaa,gp,kp,Kaa,mp,np,Laa,pp,sp,Ap,Bp,rl,Jp,Kp,Mp,Op,pq,qq,fq,hq,tq,Wp,wq,Maa,Up,oq,nq,Lq,Qq,Rq,Sq,Naa,Yq,Zq,$q,ar,cr,Paa,dr,er,fr,ir,gr,hr,Raa,jr,kr,lr,nr,pr,sr,ur,wr,Fr,xr,Or,Vr,Wr,Xr,$r,as,bs,cs,es,fs,ss,Waa,ts,us,vs,xs,ys,Xaa, +Es,Fs,Gs,Hs,Qs,Rs,Ss,Ts,Us,Ls,Vs,Ps,Ws,Xs,Ys,ct,dt,ht,it,kt,lt,nt,Yaa,ut,vt,Dt,Gt,Ht,It,Ft,$aa,Jt,aba,Lt,Mt,Ot,Pt,Qt,Rt,St,Tt,Ut,Wt,Xt,Zt,bba,$t,au,bu,Yt,cba,dba,fba,eba,eu,gu,hu,mu,ju,nu,ou,pu,qu,lu,ku,gba,hba,iba,jba,ru,su,uu,vu,wu,zu,Au,Bu,Cu,Du,Eu,Fu,Gu,Hu,Ju,Ku,Iu,Lu,Mu,Uu,$u,kba,bv,hv,ev,cv,jv,iv,fv,Tu,ov,av,qv,rv,kv,sv,Vu,gv,nv,tv,wv,xv,mba,nba,oba,pba,yv,qba,rba,zv,Av,Cv,Dv,Ev,Fv,Nv,sba,Vv,Xv,Yv,tba,bw,dw,ew,lw,mw,nw,ow,pw,rw,vba,wba,xba,yba,zba,ww,Hw,Lw,Uw,Tw,Ww,Bba,bx,gx,jx,kx,mx,qx,Cba, +sx,tx,ux,vx,wx,xx,zx,Ax,Bx,Cx,Hx,Vx,Eba,Wx,Yx,dy,hy,jy,oy,qy,ry,wy,xy,yy,zy,Ay,Cy,Dy,Ey,Fy,Gy,Jy,Ny,Rx,Oy,Ry,Qy,Py,Wy,Yy,Vy,az,bz,cz,Ux,Sx,Fba,lz,Gba,Hba,nz,pz,rz,uz,Ox,Nx,Px,Iba,Jba,wz,zz,Bz,Cz,Dz,Ez,Gz,Fz,Hz,Iz,Jz,Kz,Nz,Yz,Zz,$z,bA,cA,eA,fA,jA,kA,mA,nA,rA,sA,tA,uA,oA,pA,qA,vA,wA,xA,yA,zA,AA,BA,CA,DA,EA,FA,GA,HA,IA,LA,Nba,Mba,Oba,PA,QA,MA,RA,SA,TA,aa,pa,qa;ba=function(a){return function(){return aa[a].apply(this,arguments)}};$.ca=function(a,b){return aa[a]=b};$.n=function(a){return void 0!==a}; +$.z=function(a){return"string"==typeof a};$.da=function(a){return"boolean"==typeof a};$.ea=function(a){return"number"==typeof a};$.ha=function(a){a=a.split(".");for(var b=$.fa,c=0;cb?null:$.z(a)?a.charAt(b):a[b]}; +$.Aa=function(a,b,c){for(var d=a.length,e=$.z(a)?a.split(""):a,f=0;f=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};$.Oa=function(a,b,c){function d(a){return $.D(a)?"o"+$.ra(a):(typeof a).charAt(0)+a}b=b||a;c=c||d;for(var e={},f=0,h=0;h>1,m;c?m=b.call(e,a[l],l,a):m=b(d,a[l]);0b?1:ac?($.Ga(a,b,-(c+1)),!0):!1};$.ab=function(a,b){var c=[],d=0,e=a;void 0!==b&&(d=a,e=b);if(0>e-d)return[];for(;dc*b?c+b:c};$.gb=function(a){return $.fb(a,360)};$.I=function(a){return a*Math.PI/180};$.hb=function(a){return 180*a/Math.PI};$.ib=function(a,b){return b*Math.cos($.I(a))};$.jb=function(a,b){return b*Math.sin($.I(a))};$.kb=function(a){return 0a?-1:a};$.lb=function(a,b){this.x=$.n(a)?a:0;this.y=$.n(b)?b:0};$.nb=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; +$.ob=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};$.pb=function(a,b){this.width=a;this.height=b};$.qb=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};$.K=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};$.rb=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1}; +$.sb=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top),f=Math.min(a.top+a.height,b.top+b.height);if(e<=f)return new $.K(c,e,d-c,f-e)}return null}; +tb=function(a,b){var c;if((c=$.sb(a,b))&&c.height&&c.width){c=[];var d=a.top,e=a.height,f=a.left+a.width,h=a.top+a.height,k=b.left+b.width,l=b.top+b.height;b.top>a.top&&(c.push(new $.K(a.left,a.top,a.width,b.top-a.top)),d=b.top,e-=b.top-a.top);la.left&&c.push(new $.K(a.left,d,b.left-a.left,e));k=a.left&&b.x<=a.left+a.width&&b.y>=a.top&&b.y<=a.top+a.height:a.left<=b.left&&a.left+a.width>=b.left+b.width&&a.top<=b.top&&a.top+a.height>=b.top+b.height}; +$.wb=function(a,b,c,d,e,f,h){var k=$.I(f);f=Math.ceil(Math.abs(k)/Math.PI*2);k/=f;var l=$.I(e);e=h?[a+$.ib(e,c),b+$.jb(e,d)]:[];for(h=0;hp;p++){var q=-3*f[p]+9*h[p]-9*k[p]+3*l[p],r=6*f[p]-12*h[p]+6*k[p];m=3*h[p]-3*f[p];if(0==q)0!=r&&(m=-m/r,0m&&c[p].push(b(f[p],h[p],k[p],l[p],m))); +else{var t=r*r-4*m*q;0m&&c[p].push(b(f[p],h[p],k[p],l[p],m)),m=(-r-Math.sqrt(t))/(2*q),0m&&c[p].push(b(f[p],h[p],k[p],l[p],m))):0==t&&(m=-r/(2*q),0m&&c[p].push(b(f[p],h[p],k[p],l[p],m)))}}}d=new $.K(Math.min.apply(null,c[0]),Math.min.apply(null,c[1]),0,0);d.width=Math.max.apply(null,c[0])-d.left;d.height=Math.max.apply(null,c[1])-d.top;return d}; +zb=function(a){if(0==arguments.length)return null;for(var b=null,c=!1,d=0,e=arguments.length;d":"
")}; +$.tc=function(a){if(!mc.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(nc,"&"));-1!=a.indexOf("<")&&(a=a.replace(oc,"<"));-1!=a.indexOf(">")&&(a=a.replace(pc,">"));-1!=a.indexOf('"')&&(a=a.replace(qc,"""));-1!=a.indexOf("'")&&(a=a.replace(rc,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(sc,"�"));return a}; +wc=function(a){for(var b=[],c=0;cf)var h=e;else{if(256>f){if(h="\\x",16>f||256f&&(h+="0");h+=f.toString(16).toUpperCase()}e=uc[e]=h}b[d]=e}return b.join("")};xc=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#b?1:0};Ec=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};$.Fc=function(a){var b=$.z(void 0)?xc(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};Yb=function(a,b){for(var c=a.split(" "),d=[];0=a};$.jd=function(a){var b=$.ka(a);if("array"==b){b=[];for(var c=0;cc.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(l){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.b;f;f=f.parentNode)c.push(f);f=a.type;for(var h=c.length-1;!d.j&&0<=h;h--){d.b=c[h];var k=$.ie(c[h],f,!0,d);e=e&&k}for(h=0;!d.j&&h");c=c.join("")}c=a.createElement(c);d&&($.z(d)?c.className=d:$.A(d)?c.className=d.join(" "):$.De(c,d));2l&&(l=0);l=Math.sqrt(l);f==h&&(l=-l);f=l*d*c/e;k=-l*e*b/d;l=$.Cb(1,0,(b-f)/d,(c-k)/e);b=$.Cb((b-f)/d,(c-k)/e,(-b-f)/d,(-c-k)/e)%360;!h&&0b&&(b+=360);return Gg(a,d,e,l,b)}; +Gg=function(a,b,c,d,e){if(0==a.f.length)throw $.rd(9);if(0==e)return a;var f=a.jf[0]-$.ib(d,b),h=a.jf[1]-$.jb(d,c);var k=Math.ceil(Math.abs(e)/359.999-2E-15);for(var l=e/k,m=0;m=b&&(p=!1);if(p){for(;l=a?c=180+c:270=a&&(c=360+c);return c%360};$.zh=function(a,b,c){for(var d in c)a.Xb(b,d,c[d])};$.Ah=function(a,b,c){b&&(c?a.Xb(b,"id",c):b.removeAttribute("id"))}; +$.Ch=function(a,b,c){if(0==b.f.length)return null;var d=[],e=a.UY;(c?b.v9:b.ZO).call(b,function(a,b){var c=e[a];c&&(d.push(c),4==a?this.gZ(d,b):5!=a&&this.kZ(d,b))},a);return d.join(" ")};Dh=function(a){if(!a.Rs||a.Rs.vd)a.Rs=new oh($.fa.document.body);return a.Rs};$.Eh=function(){this.Hb=new $.K(0,0,0,0);$.ng.call(this)};Fh=function(){};Gh=function(a){a.style||(a.style=a.D.length?$.Tc(a.D[a.D.length-1]):{})}; +Hh=function(a,b){switch(b){case "b":case "strong":Gh(a);a.style.fontWeight="bold";break;case "i":case "em":Gh(a),a.style.fontStyle="italic"}}; +Ih=function(a,b,c){switch(b){case "font-style":Gh(a);a.style.fontStyle=c||"normal";break;case "font-variant":Gh(a);a.style.fontVariant=c||"normal";break;case "font-family":Gh(a);a.style.fontFamily=c||$.fa.acgraph.fontFamily;break;case "font-size":Gh(a);a.style.fontSize=c||$.fa.acgraph.fontSize;break;case "font-weight":Gh(a);a.style.fontWeight=c||"normal";break;case "color":Gh(a);a.style.color=c||$.fa.acgraph.color;break;case "letter-spacing":Gh(a);a.style.letterSpacing=c||"normal";break;case "text-decoration":Gh(a); +a.style.Sq=c||"none";break;case "opacity":Gh(a),a.style.opacity=null!=c?(0,window.parseFloat)(c):1}};Kh=function(a){""!=a.b&&(Jh(a.Kb,a.b,a.D.length?a.D[a.D.length-1]:null),a.b="",a.la=!1)};Lh=function(a){a.N==(a.P.length?a.P[a.P.length-1]:null)&&(Kh(a),a.D.pop(),a.P.pop(),a.tagName="");a.N="";a.state=1};Mh=function(a,b){Hh(a,a.tagName);a.P.push(a.tagName);a.D.push(a.style);b&&(a.f="");a.tagName="";a.style=null;a.state=1};Nh=function(a,b,c){Ih(a,a.j,a.G||"");a.j="";a.G="";c&&(a.f="");a.state=b}; +Oh=function(a){Hh(a,a.tagName);Ih(a,a.j,a.G||"");a.P.push(a.tagName);a.D.push(a.style);a.tagName="";a.style=null;a.f="";a.j="";a.G="";a.state=1};Qh=function(a,b,c){var d;if(a.W){var e=Ph[a.g];$.n(e)?d=e:a.b+="&"+a.g+c}else a.g?d=(0,window.parseInt)(a.g,10):a.b+="&#"+c;d&&(a.b+=String.fromCharCode(d)+(";"==c?"":c));a.state=b;a.g="";a.W=!0};Rh=function(a,b){$.ud.call(this);this.b=b||{};this.text=a;this.j=!1;this.y=this.x=this.f=this.Rp=this.height=this.width=this.g=0}; +$.Yh=function(a,b){this.W=!1;this.Om=a||0;this.Qm=b||0;this.Hb=new $.K(this.Om,this.Qm,0,0);this.gb=this.P=this.Me=this.D=0;this.Qd=!1;this.b=[];this.f=[];this.la=this.If=this.N=0;this.Fc=!0;this.Zf=this.ea=this.Wa=this.Ed=0;this.ra=[];this.sa=1;this.Sb=Uh;this.j=0;this.jc=this.G=!1;this.$b=this.Oi={fontSize:$.fa.acgraph.fontSize,color:$.fa.acgraph.fontColor,fontFamily:$.fa.acgraph.fontFamily,direction:$.fa.acgraph.textDirection,textOverflow:Uh,wordBreak:Vh,wordWrap:Wh,selectable:!0,hAlign:$.Xh}; +this.Da=null;$.ng.call(this)};Zh=function(a,b,c){if($.n(c)){if(c!==a.$b[b]){var d=!a.ya()||a.ya().Ge();d||a.ya().suspend();a.$b[b]=c;a.W=!1;a.Db(1024);a.Db(32);a.Db(16384);a.Iv();d||a.ya().resume()}return a}return a.$b[b]};$h=function(a){var b=(0,window.parseFloat)(a);return(0,window.isNaN)(b)||0>b?1:$.z(a)&&$.gc(a,"%")?1+(0,window.parseFloat)(a)/100:a}; +ai=function(a,b,c,d,e,f,h){var k,l=Math.floor((e-d)/(f.width/b.length));var m=b.substring(0,l);for(k=a.Pl(m,c);d+k.widthe&&1a.Dc?a.Dc-d.width-e:a.j,0>a.j&&(a.j=0));a.la=Math.max(a.la,d.height);a.N+=d.width;0==a.b.length&&(a.N+=a.j);a.ea=Math.max(a.ea,c.g);a.Fc=a.f.length?a.Fc&&0==b.length:0==b.length;a.f.push(c);a.b.push(c);c.parent(a);return c}; +ci=function(a,b){var c,d=b||$.ya(a.ra),e=$.ya(d),f=a.Pl(a.Sb,e.b),h=a.Sb,k=1a.Qa){var m=ai(a,a.Sb,e.b,0,a.Qa,f,!0);h=a.Sb.substring(0,m)}m=a.If;var p=a.Qa;if(""==h)l=(0,$.Ca)(a.b,e)+1,$.Fa(a.b,l,a.b.length-l);else if(p-m>=f.width){a.f=d;l=(0,$.Ca)(a.b,e)+1;$.Fa(a.b,l,a.b.length-l);var q=bi(a,h,e.b,f);2==a.f.length&&""==a.f[0].text&&(q.f=a.Wa-a.f[0].height,q.j=!0)}else{for(k=d.length-1;!c&&0<=k;)e= +d[k],f=a.Pl(h,e.b),l=a.Pl(e.text,e.b),m-l.width+f.width<=a.Qa&&(c=e),m-=l.width,k--;c||1!=a.ra.length||(c=d[0],m-=l.width);c&&(a.f=d,k=a.f[0].f,p-=f.width,l=(0,$.Ca)(d,c),$.Fa(d,l,d.length-l),l=(0,$.Ca)(a.b,c),$.Fa(a.b,l,a.b.length-l),a.la=0,a.N=0,a.ea=0,l=a.Pl(c.text,c.b),m=ai(a,c.text,c.b,m,p,l,!0),1>m&&(m=1),l=c.text.substring(0,m),d=a.Pl(l,c.b),l=bi(a,l,c.b,d,f.width),l.x=c.x,l.y=c.y,l.g9=!0,d.width+f.width>a.Qa&&(m=ai(a,a.Sb,e.b,d.width,a.Qa,f,!0),h=a.Sb.substring(0,m)),0a.Qa&&!a.jc;){var h=ai(a,b,c,f+a.N,a.Qa,e);1>h&&0==a.f.length&&(h=1);0!=h&&(f=$.jc(b.substring(0,h)),e=a.Pl(f,c),bi(a,f,c,e));di(a);1==b.length&&(a.jc=!0);f=0;b=$.jc(b.substring(h,b.length));e=a.Pl(b,c)}a.jc||!b.length&&!d||bi(a,b,c,e)}}; +di=function(a){if(!a.jc&&0!=a.f.length){var b=0==a.ra.length;if(a.cd&&a.D+a.la>a.cd&&0!=a.ra.length)ci(a),a.jc=!0;else{a.la=$.z(a.sa)?(0,window.parseInt)(a.sa,0)+a.la:a.sa*a.la;if($.qg().AY()){var c;var d=a.G&&a.$b.hAlign==$.Xh||!a.G&&"end"==a.$b.hAlign||"right"==a.$b.hAlign;var e="center"==a.$b.hAlign;if(a.G&&"end"==a.$b.hAlign||!a.G&&a.$b.hAlign==$.Xh||"left"==a.$b.hAlign){e=a.G?0:a.j&&b?a.j:0;var f=0;for(c=a.f.length;fa.Qa&&(1f)return a;h=h||0;var l=$.ib(h,d),m=$.jb(h,d),p=360/(2*f),q;a.moveTo(l+b,m+c);if(k)for(q=0;qd&&(d=0);0>e&&(e=0);if(d=e)return Fi(a,b,c,d,f,h);a=a.path?a.path():a;h=$.eb(h,-360,360);k=360>Math.abs(h);a.Fd(b,c,d,d,f,h).Fd(b,c,e,e,f+h,-h,k);k&&a.close();return a};ji=function(a,b,c,d,e,f){a=$.ib(c,a);b=$.ib(d,b)-a;return 0<=e?a+b*(f+e-f*e):a+b*f*(e+1)};ki=function(a,b,c,d,e,f){a=$.jb(c,a);b=$.jb(d,b)-a;return 0<=e?a+b*(f+e-f*e):a+b*f*(e+1)}; +Hi=function(a){var b,c;switch(a.length){case 1:var d=b=c=a[0];a.push(d,b,c);break;case 2:b=a[0];c=a[1];a.push(b,c);break;case 3:c=a[1];a.push(c);break;case 4:break;default:a.push(5,5,5,5)}}; +Ii=function(a,b,c){var d=a.path?a.path():a;if(6==arguments.length){var e=arguments[2];var f=arguments[3];var h=arguments[4];var k=arguments[5];d.moveTo(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).lineTo(b.left+b.width,b.top+f).lineTo(b.left+b.width,b.top+b.height-h).lineTo(b.left+b.width-h,b.top+b.height).lineTo(b.left+k,b.top+b.height).lineTo(b.left,b.top+b.height-k).lineTo(b.left,b.top+e).close()}else k=$.Na(arguments,2,6),Hi(k),e=k[0],f=k[1],h=k[2],k=k[3],Ii(d,b,e,f,h,k);return d}; +Ji=function(a,b,c){var d=a.path?a.path():a;if(6==arguments.length){var e=arguments[2];var f=arguments[3];var h=arguments[4];var k=arguments[5];d.moveTo(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).Ue(b.left+b.width,b.top+f,f,f,!1,!0).lineTo(b.left+b.width,b.top+b.height-h).Ue(b.left+b.width-h,b.top+b.height,h,h,!1,!0).lineTo(b.left+k,b.top+b.height).Ue(b.left,b.top+b.height-k,k,k,!1,!0);0!=e&&(d.lineTo(b.left,b.top+e),d.Ue(b.left+e,b.top,e,e,!1,!0));d.close()}else k=$.Na(arguments,2,6),Hi(k),e= +k[0],f=k[1],h=k[2],k=k[3],Ji(d,b,e,f,h,k);return d}; +Ki=function(a,b,c){var d=a.path?a.path():a;if(6==arguments.length){var e=arguments[2];var f=arguments[3];var h=arguments[4];var k=arguments[5];d.moveTo(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).Ue(b.left+b.width,b.top+f,f,f,!1,!1).lineTo(b.left+b.width,b.top+b.height-h).Ue(b.left+b.width-h,b.top+b.height,h,h,!1,!1).lineTo(b.left+k,b.top+b.height).Ue(b.left,b.top+b.height-k,k,k,!1,!1);0!=e&&d.lineTo(b.left,b.top+e).Ue(b.left+e,b.top,e,e,!1,!1);d.close()}else k=$.Na(arguments,2,6),Hi(k),e=k[0], +f=k[1],h=k[2],k=k[3],Ki(d,b,e,f,h,k);return d};Li=function(a,b,c,d){this.xt=a;this.Dl=b;this.Nr=c;this.Pm=d};Mi=function(){$.sh.call(this)};Ni=function(a){return $.fa.document.createElementNS("http://www.w3.org/2000/svg",a)};Oi=function(){var a=$.qg();$.Ve(a.tj);$.Ve(a.$y);$.Ve(a.g);$.Ve(a.f);$.Ve(a.bo);$.Ve(a.xn);a.tj=null;a.$y=null;a.g=null;a.f=null;a.bo=null;a.xn=null}; +Pi=function(a){var b=$.I(a),c=Math.tan(b);a=1/(2*c);c/=2;.5>=Math.abs(c)?(a=-.5,b=0>Math.cos(b)):(c=-.5,b=0Math.sin(d)||180==a||360==a;if(90==a||270==a)c+=1E-6;180!=a&&(0>Math.tan(d)||90==a||270==a)&&(e=-1,c=90-c);c=$.I(c);d=Math.sin(c)*(b.height/2-Math.tan(c)*b.width/2)+b.width/2/Math.cos(c);e*=Math.cos(c)*d;c=Math.sin(c)*d;k&&(e=-e,c=-c);return new Li(Math.round(f-e),Math.round(h+c),Math.round(f+e),Math.round(h-c))}; +Si=function(a,b,c){var d=Ri(c,b.keys,b.cx,b.cy,b.fx,b.fy,b.opacity,b.mode,b.transform);if(!d.qn){var e=Ni("radialGradient");$.Ah(a,e,d.id());$.Re(c.ca(),e);d.DC=c;d.qn=!0;(0,$.Pe)(d.keys,function(a){var b=Ni("stop");$.zh(this,b,{offset:a.offset,style:"stop-color:"+a.color+";stop-opacity:"+((0,window.isNaN)(a.opacity)?d.opacity:a.opacity)});e.appendChild(b)},a);d.Hb?$.zh(a,e,{cx:d.tc*d.Hb.width+d.Hb.left,cy:d.oc*d.Hb.height+d.Hb.top,fx:d.de*d.Hb.width+d.Hb.left,fy:d.g*d.Hb.height+d.Hb.top,r:Math.min(d.Hb.width, +d.Hb.height)/2,spreadMethod:"pad",gradientUnits:"userSpaceOnUse"}):$.zh(a,e,{cx:d.tc,cy:d.oc,fx:d.de,fy:d.g,gradientUnits:"objectBoundingBox"});d.transform&&a.Xb(e,"gradientTransform",d.transform.toString())}return d.id()}; +Ui=function(a,b,c,d){var e=$.Ti(c,b.keys,b.opacity,!0===b.mode?$.yh(b.angle,d):b.angle,b.mode,b.transform);if(!e.qn){var f=a.DV();$.Ah(a,f,e.id());$.Re(c.ca(),f);e.CC=c;e.qn=!0;(0,$.Pe)(e.keys,function(a){var b=Ni("stop");$.zh(this,b,{offset:a.offset,style:"stop-color:"+a.color+";stop-opacity:"+((0,window.isNaN)(a.opacity)?e.opacity:a.opacity)});f.appendChild(b)},a);e.Hb?(b=Qi(e.angle,e.Hb),$.zh(a,f,{x1:b.xt,y1:b.Dl,x2:b.Nr,y2:b.Pm,spreadMethod:"pad",gradientUnits:"userSpaceOnUse"})):(b=Pi(e.angle), +$.zh(a,f,{x1:b.xt,y1:b.Dl,x2:b.Nr,y2:b.Pm,gradientUnits:"objectBoundingBox"}));e.transform&&a.Xb(f,"gradientTransform",e.transform.toString())}return e.id()}; +Yi=function(a,b){var c=b.fill(),d=b.ya().Ao,e="url("+Vi()+"#";c&&c.opacity&&1E-4>=c.opacity&&$.od&&$.gd("9")&&(c.opacity=1E-4);if($.z(c))a.Xb(b.ca(),"fill",c),b.ca().removeAttribute("fill-opacity");else if($.A(c.keys)&&c.cx&&c.cy)a.Xb(b.ca(),"fill",e+Si(a,c,d)+")"),a.Xb(b.ca(),"fill-opacity",$.n(c.opacity)?c.opacity:1);else if($.A(c.keys))b.cb()&&(a.Xb(b.ca(),"fill",e+Ui(a,c,d,b.cb())+")"),a.Xb(b.ca(),"fill-opacity",$.n(c.opacity)?c.opacity:1));else if(c.src){var f=b.Ji();f?(f.width=f.width||0,f.height= +f.height||0,f.left=f.left||0,f.top=f.top||0):f=new $.K(0,0,0,0);"tile"==c.mode?Wi(d,c.src,f,c.mode,c.opacity,function(a){a.id();a.parent(b.ya()).Hd();$.qg().Xb(b.ca(),"fill",e+a.id()+")")}):(d=Wi(d,c.src,f,c.mode,c.opacity),d.id(),d.parent(b.ya()).Hd(),a.Xb(b.ca(),"fill",e+d.id()+")"),a.Xb(b.ca(),"fill-opacity",$.n(c.opacity)?c.opacity:1))}else $.L(c,$g)?(c=Xi(d,c.type,c.color,c.Te,c.size),c.id(),c.parent(b.ya()).Hd(),a.Xb(b.ca(),"fill",e+c.id()+")")):$.L(c,$.Ub)?(c.id(),c.parent(b.ya()).Hd(),a.Xb(b.ca(), +"fill",e+c.id()+")")):$.zh(a,b.ca(),{fill:c.color,"fill-opacity":c.opacity})}; +$i=function(a,b){var c=b.stroke(),d=b.ya().Ao,e=b.ca(),f="url("+Vi()+"#";if($.z(c))a.Xb(e,"stroke",c);else if($.A(c.keys)&&c.cx&&c.cy)a.Xb(e,"stroke",f+Si(a,c,d)+")");else if($.A(c.keys)){if(!b.cb())return;a.Xb(e,"stroke",f+Ui(a,c,d,b.cb())+")")}else a.Xb(e,"stroke",c.color);c.lineJoin?a.Xb(e,"stroke-linejoin",c.lineJoin):e.removeAttribute("stroke-linejoin");c.lineCap?a.Xb(e,"stroke-linecap",c.lineCap):e.removeAttribute("stroke-linecap");c.opacity?a.Xb(e,"stroke-opacity",c.opacity):e.removeAttribute("stroke-opacity"); +c.thickness?a.Xb(e,"stroke-width",c.thickness):e.removeAttribute("stroke-width");c.dash?a.Xb(e,"stroke-dasharray",c.dash):e.removeAttribute("stroke-dasharray")};aj=function(a){a.ca().removeAttribute("clip-path");a.ca().removeAttribute("clipPathUnits")}; +$.mj=function(a,b){$.xd.call(this,a.type);this.target=$.hj(a.target,b)||a.target;this.relatedTarget=$.hj(a.relatedTarget||null,b)||a.relatedTarget;this.offsetX=a.offsetX;this.offsetY=a.offsetY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.button=Gd(a,0)?$.ij:Gd(a,1)?jj:Gd(a,2)?kj:lj;this.actionButton=a.g();this.keyCode=a.keyCode;this.charCode=a.f;this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.platformModifierKey= +a.D;this.Xj=a};$.oj=function(a,b,c){if($.F(a))c&&(a=(0,$.va)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,$.va)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647=c&&0<=e&&255>=e&&0<=d&&255>=d){c=[c,e,d];break a}}c=[]}if(c.length)return b.hj=$.Wb(c),b.type="rgb",b;if(vl&&(c=vl[a.toLowerCase()]))return b.hj=c,b.type="named",b;throw Error(a+" is not a valid color string");}; +ul=function(a){if(!tl.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(raa,"#$1$1$2$2$3$3"));return a.toLowerCase()};$.xl=function(a){a=ul(a);return[(0,window.parseInt)(a.substr(1,2),16),(0,window.parseInt)(a.substr(3,2),16),(0,window.parseInt)(a.substr(5,2),16)]}; +$.Wb=function(a){var b=a[0],c=a[1];a=a[2];b=Number(b);c=Number(c);a=Number(a);if(b!=(b&255)||c!=(c&255)||a!=(a&255))throw Error('"('+b+","+c+","+a+'") is not a valid RGB color');b=yl(b.toString(16));c=yl(c.toString(16));a=yl(a.toString(16));return"#"+b+c+a};zl=function(a,b,c){0>c?c+=1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+(b-a)*(2/3-c)*6:a};yl=function(a){return 1==a.length?"0"+a:a}; +$.Al=function(a,b,c){c=$.eb(c,0,1);return[Math.round(c*a[0]+(1-c)*b[0]),Math.round(c*a[1]+(1-c)*b[1]),Math.round(c*a[2]+(1-c)*b[2])]};$.Bl=function(a,b){return $.Al([0,0,0],a,b)};$.Dl=function(a,b,c){a=Cl(a);b=Cl(b);var d=(a.opacity+b.opacity)/2;return{color:$.Wb($.Al(a.zZ,b.zZ,$.n(c)?c:.5)),opacity:d}};Cl=function(a){var b=a,c=1;$.A(a)||($.z(a)?b=a:(b=a.color||"#000",c=$.n(a.opacity)?a.opacity:1),a=$.El(b).hj,b=$.xl(a));return{zZ:b,opacity:c}}; +Fl=function(a,b,c,d){b=null==b||(0,window.isNaN)(+b)?7:+b;d=null!=d?$.eb(d,0,1):window.NaN;a=$.El(a||"#000").hj;var e=$.xl(a);a=e[0]/255;var f=e[1]/255;e=e[2]/255;var h=Math.max(a,f,e),k=Math.min(a,f,e),l=0,m=0,p=.5*(h+k);h!=k&&(h==a?l=60*(f-e)/(h-k):h==f?l=60*(e-a)/(h-k)+120:h==e&&(l=60*(a-f)/(h-k)+240),m=0=p?(h-k)/(2*p):(h-k)/(2-2*p));e=[Math.round(l+360)%360,m,p];a=e[0];f=e[1];e=e[2];(0,window.isNaN)(d)?(d=e,c=null!=c?$.eb(c,0,1):.95):c=null!=c?$.eb(c,0,1):e;e=1m?m*(1+f):m+f-f*m;var r=2*m-l;p=255*zl(r,l,q+1/3);m=255*zl(r,l,q);l=255*zl(r,l,q-1/3)}h.push($.Wb([Math.round(p),Math.round(m),Math.round(l)]))}return h};$.Gl=function(a,b,c){c=$.n(c)?c:7;a=$.El(a||"yellow").hj;b=$.El(b||"brown").hj;for(var d=[a],e=1/c,f=1;f=c&&0<=e&&255>=e&&0<=d&&255>=d){c=[c,e,d];break a}}c=[]}return c.length?(b.hj=$.Wb(c),b.type="rgb",b):vl&&(a=vl[a.toLowerCase()])?(b.hj=a,b.type="named",b):null}; +$.Nl=function(a,b,c){var d;c?d=$.Xb(a):d=$.Zb(a);$.z(d)?d={color:d,opacity:b}:$.D(d)&&(d.opacity=b);return d};$.Ol=function(a,b,c){a=$.Zb(a);$.z(a)?a={color:a,thickness:b}:$.D(a)&&(a.thickness=b);c&&(a.opacity=c);return a};$.Vl=function(a,b,c,d){if(!a)return $.Pl;if($.z(a)){var e=b+"|"+a+"|"+c+(d?"|"+d:"");var f=Ql[e];if(!f){switch(b){case 2:f=$.Rl;break;case 3:f=$.Sl;break;default:case 1:f=$.Tl}Ql[e]=f=$.wa(uaa,a,f,3==b,c,!!d)}}else(f=Ql.transparent)||(f=Ql.transparent=function(){return $.Ul});return f}; +$.Pl=function(){return"none"};Wl=function(a){return a?$.D(a)?a.color?"none"!=a.color:!0:"none"!=a:!1}; +uaa=function(a,b,c,d,e,f,h,k,l,m){h=$.Xl(h);l=l||f.check($.Yl);var p=f.aa();if(d&&h!=$.Zl){var q=f.pc(a,h,p,b,e,void 0,k);c&&!0===q&&(q=b(f.tg()));if($.n(q)){if(!$.F(q))return q;if(c)return a=f.Nh(k),b(q.call(a,a))}}d=f.pc(a,0,p,b,e,void 0,k);c&&!0===d&&(d=b(f.tg()));if(m&&!c&&a!=m){var r=f.pc(m,0,p,b,e,void 0,k);$.F(r)&&(a=f.Ne(void 0,k,l),r=b(r.call(a,a)))}$.F(d)&&(a=c?f.Nh(k):f.Ne(r,k,l),d=b(d.call(a,a)));q&&(a=f.Ne(d,k,l),d=b(q.call(a,a)));return d}; +$.dm=function(a,b){a&&(b=b.charAt(0).toUpperCase()+b.substr(1));return a?(a?1==a?"hover":"select":"")+b:b};fm=function(a,b,c){var d=b.split(".");b=em[d[0]];if(!b)return em[d[0]]={OB:[],vA:c,vF:0},!0;if(d=b.vA<=c){b.vA=c+1;for(var e=b.OB,f=0;f=h){e="";d=0;a.En=-1;a.Fn=-1;a.Tf=c+1;f=0;break}else return 0d&&(c=f,d=b[f])}return c}; +$.Um=function(a,b){var c=!1,d;if(!a||!b)return!1;var e=0;for(d=a.length;e=$.Vm(a,b,c,d,e[h],e[h+1]);return f};$.Vm=function(a,b,c,d,e,f){return(a=(b-d)*e+(c-a)*f+(a*d-c*b))?0l?l:0a?a:0c?c:0b?b:window.NaN):a!=c?l=(h-a)/(2*(c-a)):a==c&&c!=e&&(l=Math.sqrt((h-a)/(e-c)));return l};$.Xm=function(a,b,c,d){a=c-a;b=d-b;return Math.sqrt(a*a+b*b)};$.Ym=function(a,b,c){return(c||0)+b*$.Lm(Math.cos(a),8)}; +$.Zm=function(a,b,c){return(c||0)+b*$.Lm(Math.sin(a),8)};$.$m=function(a,b,c,d){return new $.K(a,b,c,d)};$.an=function(a){return[a.left,a.top,a.left+a.width,a.top,a.left+a.width,a.top+a.height,a.left,a.top+a.height]};$.bn=function(a){for(var b=new $.K(0,0,0,0),c=new $.K(a[0],a[1],0,0),d=2,e=a.length;d=Math.abs(a.b[b]))a.b.pop();else break;switch(a.b.length-1){case 0:b=[];break;case 1:b=[];var c=a.b[1];0!=c&&b.push(-a.b[0]/c);break;case 2:b=[];if(2==a.b.length-1){var d=a.b[2];c=a.b[1]/d;a=c*c-a.b[0]/d*4;0=Math.abs(h)&&(h=0);0=Math.abs(d)&&(d=0),1E-6>=Math.abs(f)&&(f=0),0<=d&&(d=Math.sqrt(d),b.push(-c/4+(a+d)/2),b.push(-c/4+(a-d)/2)),0<=f&&(d=Math.sqrt(f),b.push(-c/4+(d-a)/2),b.push(-c/4-(d+a)/2))):0>h||(f=e*e-4*a,-1E-6<=f&&(0>f&&(f=0),f=2*Math.sqrt(f),e=3*c*c/4-2*d,1E-6<=e+f&&(a=Math.sqrt(e+f),b.push(-c/4+a/2),b.push(-c/4-a/2)),1E-6<=e-f&&(a=Math.sqrt(e-f),b.push(-c/4+a/2),b.push(-c/4-a/2))))}break; +default:b=[]}return b}; +hn=function(a){var b=[];if(3==a.b.length-1){var c=a.b[3],d=a.b[2]/c,e=a.b[1]/c,f=(3*e-d*d)/3;a=(2*d*d*d-9*e*d+a.b[0]/c*27)/27;d/=3;c=a*a/4+f*f*f/27;a/=2;0c?(f=Math.sqrt(-f/3),c=Math.atan2(Math.sqrt(-c),-a)/3,a=Math.cos(c),c=Math.sin(c),e=Math.sqrt(3),b.push(2*f*a-d),b.push(-f*(a+e*c)-d),b.push(-f*(a-e*c)-d)):(c=0<=a?-Math.pow(a,1/3):Math.pow(-a,1/3),b.push(2*c-d),b.push(-c- +d))}return b}; +kn=function(a,b,c,d,e,f,h,k,l,m,p,q){a=new dn(a,b);c=new dn(c,d);e=new dn(e,f);h=new dn(h,k);m=new dn(l,m);l=new dn(p,q);p=[];k=en(c,-2);q=a.add(k.add(e));k=en(a,-2);e=en(c,2);c=k.add(e);a=new dn(a.x,a.y);k=en(m,-2);l=h.add(k.add(l));k=en(h,-2);e=en(m,2);m=k.add(e);h=new dn(h.x,h.y);if(0==q.y)k=q.x*(a.y-h.y),e=k-c.x*c.y,f=c.y*c.y,k=new gn(q.x*l.y*l.y,2*q.x*m.y*l.y,q.x*m.y*m.y-l.x*f-l.y*k-l.y*e,-m.x*f-m.y*k-m.y*e,(a.x-h.x)*f+(a.y-h.y)*e);else{k=q.x*l.y-q.y*l.x;e=q.x*m.y-m.x*q.y;var r=c.x*q.y-c.y*q.x; +f=a.y-h.y;d=q.y*(a.x-h.x)-q.x*f;b=-c.y*r+q.y*d;r*=r;k=new gn(k*k,2*k*e,(-l.y*r+q.y*e*e+q.y*k*d+k*b)/q.y,(-m.y*r+q.y*e*d+e*b)/q.y,(f*r+d*b)/q.y)}k=jn(k);for(e=0;e=f&&(d=jn(new gn(q.x,c.x,a.x-h.x-f*m.x-f*f*l.x)),b=jn(new gn(q.y,c.y,a.y-h.y-f*m.y-f*f*l.y)),0=t)for(var u=0;uMath.abs(t-b[u])){p.push(en(l,f*f).add(en(m,f).add(h)));break a}}return p}; +ln=function(a,b,c,d,e,f,h,k){var l,m=(k-f)*(c-a)-(h-e)*(d-b);0!=m?(h=((h-e)*(b-f)-(k-f)*(a-e))/m,e=((c-a)*(b-f)-(d-b)*(a-e))/m,0<=h&&1>=h&&0<=e&&1>=e?l=new dn(a+h*(c-a),b+h*(d-b)):l=null):l=null;return l};mn=function(a,b){switch(b){case 1:return 0!=a%4||0==a%100&&0!=a%400?28:29;case 5:case 8:case 10:case 3:return 30}return 31}; +$.tn=function(a,b,c,d,e,f){$.z(a)?(this.Vj=a==nn?b:0,this.ih=a==on?b:0,this.uh=a==pn?b:0,this.bh=a==qn?b:0,this.wi=a==rn?b:0,this.zg=a==sn?b:0):(this.Vj=a||0,this.ih=b||0,this.uh=c||0,this.bh=d||0,this.wi=e||0,this.zg=f||0)}; +un=function(a){a=a.match(vaa);if(!a)return null;var b=!(a[6]||a[7]||a[8]);if(b&&!(a[2]||a[3]||a[4])||b&&a[5])return null;b=(0,window.parseInt)(a[2],10)||0;var c=(0,window.parseInt)(a[3],10)||0,d=(0,window.parseInt)(a[4],10)||0,e=(0,window.parseInt)(a[6],10)||0,f=(0,window.parseInt)(a[7],10)||0,h=(0,window.parseFloat)(a[8])||0;return a[1]?new $.tn(-b,-c,-d,-e,-f,-h):new $.tn(b,c,d,e,f,h)}; +vn=function(a,b){var c=Math.min(a.Vj,a.ih,a.uh,a.bh,a.wi,a.zg),d=Math.max(a.Vj,a.ih,a.uh,a.bh,a.wi,a.zg);if(0>c&&0c&&d.push("-");d.push("P");(a.Vj||b)&&d.push(Math.abs(a.Vj)+"Y");(a.ih||b)&&d.push(Math.abs(a.ih)+"M");(a.uh||b)&&d.push(Math.abs(a.uh)+"D");if(a.bh||a.wi||a.zg||b)d.push("T"),(a.bh||b)&&d.push(Math.abs(a.bh)+"H"),(a.wi||b)&&d.push(Math.abs(a.wi)+"M"),(a.zg||b)&&d.push(Math.abs(a.zg)+"S");return d.join("")}; +$.zn=function(a,b,c){$.ea(a)?(this.b=wn(a,b||0,c||1),xn(this,c||1)):$.D(a)?(this.b=wn(a.getFullYear(),a.getMonth(),a.getDate()),xn(this,a.getDate())):(this.b=new Date((0,$.yn)()),a=this.b.getDate(),this.b.setHours(0),this.b.setMinutes(0),this.b.setSeconds(0),this.b.setMilliseconds(0),xn(this,a))};wn=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};xn=function(a,b){if(a.getDate()!=b){var c=a.getDate()c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",$.zc(c,2));c=d.join("")}b.j=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=Jn(a);b.D=[c,c];b.b={mia:a,FT:a};b.g=[];return b}b=new In;b.j=a.id;b.f=-a.std_offset;b.D=a.names;b.b=a.names_ext;b.g=a.transitions;return b}; +Jn=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push($.zc(Math.floor(a/60)%100,2),":",$.zc(a%60,2));return b.join("")};Ln=function(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,d=0;d=a.g[d];)d+=2;return 0==d?0:a.g[d-1]};$.Pn=function(a,b){this.f=[];this.b=b||Mn;"number"==typeof a?Nn(this,a):On(this,a)};Qn=function(a){return a.getHours?a.getHours():0}; +On=function(a,b){for(xaa&&(b=b.replace(/\u200f/g,""));b;){for(var c=b,d=0;db)var c=a.b.yC[b];else if(8>b)c=a.b.zC[b-4];else if(12>b)c=a.b.vM[b-8],c=c.replace("{1}",a.b.yC[b-8]),c=c.replace("{0}",a.b.zC[b-8]);else{Nn(a,10);return}On(a,c)};Sn=function(a,b){var c=String(b);var d=a.b||Mn;if(void 0!==d.PM){for(var e=[],f=0;f=h?String.fromCharCode(d.PM+h-48):c.charAt(f))}c=e.join("")}return c}; +Tn=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");}; +yaa=function(a,b,c,d,e,f){var h=b.length;switch(b.charAt(0)){case "G":return c=0c&&(c=-c),2==h&&(c%=100),Sn(a,$.zc(c,h));case "M":a:switch(c=d.getMonth(),h){case 5:h=a.b.qT[c];break a;case 4:h=a.b.CM[c];break a;case 3:h=a.b.GM[c];break a;default:h=Sn(a,$.zc(c+1,h))}return h;case "k":return Tn(e),c=Qn(e)||24,Sn(a,$.zc(c,h));case "S":return Sn(a,(e.getTime()%1E3/1E3).toFixed(Math.min(3,h)).substr(2)+(3h?1:0];case "h":return Tn(e),c=Qn(e)%12||12,Sn(a,$.zc(c,h));case "K":return Tn(e),c=Qn(e)%12,Sn(a,$.zc(c,h));case "H":return Tn(e),c=Qn(e),Sn(a,$.zc(c,h));case "c":a:switch(c=d.getDay(),h){case 5:h=a.b.CT[c];break a;case 4:h=a.b.ET[c];break a;case 3:h=a.b.DT[c];break a;default:h=Sn(a,$.zc(c,1))}return h;case "L":a:switch(c=d.getMonth(),h){case 5:h=a.b.BT[c];break a;case 4:h=a.b.KM[c];break a;case 3:h= +a.b.LM[c];break a;default:h=Sn(a,$.zc(c+1,h))}return h;case "Q":return c=Math.floor(d.getMonth()/3),4>h?a.b.HM[c]:a.b.DM[c];case "d":return Sn(a,$.zc(d.getDate(),h));case "m":return Tn(e),Sn(a,$.zc(e.getMinutes(),h));case "s":return Tn(e),Sn(a,$.zc(e.getSeconds(),h));case "v":return h=f||Kn(c.getTimezoneOffset()),h.j;case "V":return a=f||Kn(c.getTimezoneOffset()),2>=h?a.j:0h?a.D[0h?(h=-(e.f-Ln(e,c)),a=[0>h?"-":"+"],h=Math.abs(h),a.push($.zc(Math.floor(h/60)%100,2),$.zc(h%60,2)),h=a.join("")): +h=Sn(a,Jn(e.f-Ln(e,c))),h;default:return""}};zaa=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))};Aaa=function(a){a=String(a);if(zaa(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};Vn=function(a){return(new Un).F(a)}; +Un=function(){}; +Wn=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if($.A(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;fb?1:a==b?0:-1};Eaa=function(a,b){return-jo(a,b)};$.ho=function(a,b){return(0,window.isNaN)(a)?(0,window.isNaN)(b)?0:1:(0,window.isNaN)(b)?-1:a-b};$.ko=function(a){for(var b;$.L(a,$.ng);){b=a.tag;if($.n(b))return b;a=a.parent()}};$.lo=function(a,b){if(!a)return!1;for(;$.L(b,$.mf)&&b!=a;)b=b.Oh();return b==a};$.io=function(a){return $.D(a)?"o"+$.ra(a):(typeof a).charAt(0)+a}; +$.N=function(a,b,c){a=$.ea(a)?a:!(0,window.isNaN)(b)&&$.mo(a)?b*(0,window.parseFloat)(a)/100:(0,window.parseFloat)(a);return c&&!(0,window.isNaN)(b)?b-a:a};$.mo=function(a){return $.z(a)&&$.gc(a,"%")&&!(0,window.isNaN)((0,window.parseFloat)(a))};$.no=function(a,b){if(null===a)return null;a=$.n(a)?a:0;b=$.n(b)?b:0;var c=$.mo(a),d=(0,window.parseFloat)(a);return(0,window.isNaN)(d)?b:c?a:d}; +$.oo=function(a,b){if($.mo(a))return a;$.ea(a)||(a=(0,window.parseFloat)(a));return(0,window.isNaN)(a)?b?window.NaN:"0%":a+"%"};$.P=function(a){return null==a||$.da(a)?window.NaN:+a};$.po=function(a){return $.z(a)?a:$.P(a)};qo=function(a){return $.ea(a)&&!(0,window.isNaN)(a)||$.z(a)&&""!=(0,$.Ac)(a)?a:null};$.ro=function(a){return(0,window.isNaN)($.P(a))};$.so=function(a,b,c){$.ea(a)||(a=(0,window.parseFloat)(a));a=Math.round(a);return!(0,window.isNaN)(a)&&(0=d?0:f:"center"==e?c=d*f/2:"inside"==e&&(c=0<=d?0:-f)}return c};$.yo=function(a,b){var c=$.gb(-b)/90;if(c){var d=(0,$.Ca)($.uo,a);0<=d&&(c!=~~c&&(c=Math.round(c-.5)+.5),a=$.uo[(d+(c+c))%$.uo.length])}return a};$.zo=function(a){return"left-top"==a||"center-top"==a||"right-top"==a}; +$.Ao=function(a){return"left-bottom"==a||"center-bottom"==a||"right-bottom"==a};$.Bo=function(a){return"left-top"==a||"left-center"==a||"left-bottom"==a};$.Co=function(a){return"right-top"==a||"right-center"==a||"right-bottom"==a};$.Do=function(a,b,c,d){c=c||0;d=7<=d?d:7;return $.Lm(b*Math.floor($.Lm((a-c)/b,d))+c,d)};$.Eo=function(a,b,c,d){c=c||0;d=7<=d?d:7;return $.Lm(b*Math.ceil($.Lm((a-c)/b,d))+c,d)}; +$.Ho=function(a,b,c){var d=new Date(a),e=d.getUTCFullYear(),f=d.getUTCMonth(),h=d.getUTCDate(),k=d.getUTCHours(),l=d.getUTCMinutes(),m=d.getUTCSeconds(),p=d.getUTCMilliseconds();return b.Vj?(e=$.Do(e,b.Vj,(new Date(c)).getUTCFullYear()),Date.UTC(e,0)):b.ih?(f=$.Do(f,b.ih),Date.UTC(e,f)):b.uh&&0==b.uh%7?(a=$.Fo($.Go()),$.Do(d.getTime(),864E5*b.uh,Date.UTC(2E3,0,2+(a?a.firstDayOfWeek:0)))):b.uh?(h=$.Do(h,b.uh),Date.UTC(e,f,h)):b.bh?(k=$.Do(k,b.bh),Date.UTC(e,f,h,k)):b.wi?(l=$.Do(l,b.wi),Date.UTC(e, +f,h,k,l)):1<=b.zg?(m=$.Do(m,b.zg),Date.UTC(e,f,h,k,l,m)):b.zg?(p=$.Do(p,1E3*b.zg),Date.UTC(e,f,h,k,l,m,p)):a}; +$.Io=function(a,b){switch(a){case "year":var c=nn;var d=b;break;case "semester":c=on;d=6*b;break;case "quarter":c=on;d=3*b;break;case "month":c=on;d=b;break;case "third-of-month":c=pn;d=10*b;break;case "week":c=pn;d=7*b;break;case "day":c=pn;d=b;break;case "hour":c=qn;d=b;break;case "minute":c=rn;d=b;break;case "second":c=sn;d=b;break;case "millisecond":c=sn;d=b/1E3;break;default:c=nn,d=b}return new $.tn(c,d)}; +$.Jo=function(a,b,c){b=(b&1)/2;return.5<=a%1?Math.ceil(a)-(c?-b:b):Math.floor(a)+(c?-b:b)};$.Ko=function(a,b,c,d){switch(b){case "left-top":case "left-center":case "center-top":case "center":a.x+=c;a.y+=d;break;case "left-bottom":case "center-bottom":a.x+=c;a.y-=d;break;case "right-center":case "right-top":a.x-=c;a.y+=d;break;case "right-bottom":a.x-=c,a.y-=d}};$.Lo=function(a){for(var b=0,c=arguments.length;bb;b++)a.lineTo(c+e*hp[b],d+e*ip[b]);a.lineTo(c+e*hp[0],d+e*ip[0]);a.close();return a};case "square":return function(a,c,d,e,f){var b=c-e,k=d-e;c+=e;d+=e;$.n(f)&&(f=f||0,b=$.Jo(b,f),k=$.Jo(k,f),c=$.Jo(c,f),d=$.Jo(d,f));a.moveTo(b, +k).lineTo(c,k).lineTo(c,d).lineTo(b,d).lineTo(b,k).close();return a};case "v-line":case "line":return function(a,c,d,e,f){f=f||0;e*=2;var b=e/2;c-=b/2;d-=e/2;b=c+b;e=d+e;$.n(f)&&(f=f||0,c=$.Jo(c,f),d=$.Jo(d,f),b=$.Jo(b,f),e=$.Jo(e,f));a.moveTo(c,d).lineTo(b,d).lineTo(b,e).lineTo(c,e).lineTo(c,d).close();return a};case "arrow-up":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var p=c+k;k=c-k;$.n(f)&&(f=f||0,e=$.Jo(e,f),l=$.Jo(l,f),m=$.Jo(m,f),b=$.Jo(b,f),p=$.Jo(p,f),k=$.Jo(k, +f),c=$.Jo(c,f),d=$.Jo(d,f));a.moveTo(c,b);a.lineTo(e,d,p,d,p,m,k,m,k,d,l,d);a.close();return a};case "arrow-down":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var p=c+k;k=c-k;$.n(f)&&(f=f||0,e=$.Jo(e,f),l=$.Jo(l,f),m=$.Jo(m,f),b=$.Jo(b,f),p=$.Jo(p,f),k=$.Jo(k,f),c=$.Jo(c,f),d=$.Jo(d,f));a.moveTo(c,m);a.lineTo(e,d,p,d,p,b,k,b,k,d,l,d);a.close();return a};case "arrow-left":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var p=d+k;k=d-k;$.n(f)&&(f=f|| +0,e=$.Jo(e,f),l=$.Jo(l,f),m=$.Jo(m,f),b=$.Jo(b,f),p=$.Jo(p,f),k=$.Jo(k,f),c=$.Jo(c,f),d=$.Jo(d,f));a.moveTo(l,d);a.lineTo(c,m,c,p,e,p,e,k,c,k,c,b);a.close();return a};case "arrow-right":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var p=d+k;k=d-k;$.n(f)&&(f=f||0,e=$.Jo(e,f),l=$.Jo(l,f),m=$.Jo(m,f),b=$.Jo(b,f),p=$.Jo(p,f),k=$.Jo(k,f),c=$.Jo(c,f),d=$.Jo(d,f));a.moveTo(e,d);a.lineTo(c,m,c,p,l,p,l,k,c,k,c,b);a.close();return a};default:return ni}}; +kp=function(a,b,c,d){var e=new $.Em;c=!0;$.D(d)&&(e.$F(d.rowsSeparator),e.sD(d.columnsSeparator),e.QE(d.ignoreTrailingSpaces),c=!d.ignoreFirstRow,e.OE(c));if(a=e.OC(a)){d=$.Le("table");b&&(e=$.Le("caption"),Se(e,b),d.appendChild(e));if(c){var f=$.Le("thead");var h=$.Le("tr");f.appendChild(h)}b=$.Le("tbody");for(e=0;e=a||96<=a&&106>=a||65<=a&&90>=a||($.yd||$.lp)&&0==a)return!0;switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}};np=function(a){if($.nd)a=Laa(a);else if(zd&&$.yd)switch(a){case 93:a=91}return a}; +Laa=function(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};$.op=function(a,b){$.mf.call(this);a&&this.nJ(a,b)};pp=function(a,b,c,d){$.Dd.call(this,d);this.type="key";this.keyCode=a;this.f=b;this.repeat=c};sp=function(a,b){$.qp?rp.push((0,$.va)(a,b)):a.apply(b)};$.tp=function(){$.qp--;if(!$.qp)for(var a=rp.slice(0),b=rp.length=0;be;e++){c=e;for(var f=0;8>f;f++)c=c&1?3988292384^c>>>1:c>>>1;d[e]=c}Fp=d}c=-1;for(d=0;d>>8^Fp[(c^a.charCodeAt(d++))&255];a=((c^-1)>>>0).toString(16);return b==a}; +$.jm=function(a){a=$.lm(a);var b;Gp.length||(Gp.push($.kl.anychart.themes.defaultTheme||{}),Hp.push(Gp[0]));for(b=Gp.length-1;bk||bc)var d=this.f.yC[c];else 8>c?d=this.f.zC[c-4]:(d=this.f.vM[c-8],d=d.replace("{1}",this.f.yC[c-8]),d=d.replace("{0}",this.f.zC[c-8]));dr(this,d)}else dr(this,a)}; +dr=function(a,b){for(var c=!1,d="",e=0;e=a.count)return!1;var b="MydhHmsSDkK".indexOf(a.text.charAt(0));return 0a.count};fr=function(a,b){var c=a.substring(b[0]).match(/^\s+/);c&&(b[0]+=c[0].length)}; +ir=function(a,b,c,d,e,f){fr(b,c);var h=c[0],k=d.text.charAt(0),l=-1;if(er(d))if(0b.length)return!1;l=gr(a,b.substring(0,h+e),c)}else l=gr(a,b,c);switch(k){case "G":return l=hr(b,c,a.f.wM),0<=l&&(f.era=l),!0;case "M":case "L":a:{d=l;if(0>d){a=a.f.CM.concat(a.f.KM).concat(a.f.GM).concat(a.f.LM);d=hr(b,c,a);if(0>d){f=!1;break a}f.month=d%12}else f.month=d-1;f=!0}return f;case "E":return d=hr(b,c,a.f.OM),0>d&&(d=hr(b,c,a.f.IM)),0>d?f=!1:(f.b=d,f=!0),f;case "a":return l=hr(b,c,a.f.qM),0<=l&& +(f.g=l),!0;case "y":a:{if(0>l){var m=b.charAt(c[0]);if("+"!=m&&"-"!=m){f=!1;break a}c[0]++;l=gr(a,b,c);if(0>l){f=!1;break a}"-"==m&&(l=-l)}m||2!=c[0]-h||2!=d.count?f.year=l:(b=l,c=(new Date).getFullYear()-80,a=c%100,f.D=b==a,b+=100*Math.floor(c/100)+(bl?(d=hr(b,c,a.f.DM),0>d&&(d=hr(b,c,a.f.HM)),0>d?f=!1:(f.month=3*d,f.day=1,f=!0)):f=!1,f;case "d":return 0<=l&&(f.day=l),!0;case "S":return b=c[0]-h,f.j=3>b?l*Math.pow(10,3-b):Math.round(l/Math.pow(10, +b-3)),!0;case "h":12==l&&(l=0);case "K":case "H":case "k":return 0<=l&&(f.bh=l),!0;case "m":return 0<=l&&(f.wi=l),!0;case "s":return 0<=l&&(f.zg=l),!0;case "z":case "Z":case "v":b.indexOf("GMT",c[0])==c[0]&&(c[0]+=3);a:if(c[0]>=b.length)f.f=0,f=!0;else{d=1;switch(b.charAt(c[0])){case "-":d=-1;case "+":c[0]++}h=c[0];l=gr(a,b,c);if(0>l)f=!1;else{if(c[0]l){f=!1;break a}m+=l}else m=l,m=24>m&&2>=c[0]-h?60*m:m%100+m/100*60;f.f=-(m*d);f=!0}}return f; +default:return!1}};gr=function(a,b,c){if(a.f.PM){for(var d=[],e=c[0];e=f?String.fromCharCode(f+48):b.charAt(e))}b=d.join("")}else b=b.substring(c[0]);a=b.match(/^\d+/);if(!a)return-1;c[0]+=a[0].length;return(0,window.parseInt)(a[0],10)};hr=function(a,b,c){var d=0,e=-1;a=a.substring(b[0]).toLowerCase();for(var f=0;fd&&0==a.indexOf(c[f].toLowerCase())&&(e=f,d=h)}0<=e&&(b[0]+=d);return e};Raa=function(){}; +jr=function(a){$.D(a)||(a=$.kl.anychart.format.locales[String(a)]);return a||null};$.Fo=function(a){return(a=jr(a))&&a.dateTimeLocale||null};kr=function(a){return(a=jr(a))&&a.numberLocale||null};lr=function(a,b){var c=$.Fo(a);return c&&c[b||"dateTimeFormat"]||null}; +nr=function(a){if(!a)return Mn;var b=$.ra(a);b in mr||(mr[b]={wM:a.eras,lT:a.eraNames,qT:a.narrowMonths,BT:a.standaloneNarrowMonths,CM:a.months,KM:a.standaloneMonths,GM:a.shortMonths,LM:a.standaloneShortMonths,OM:a.weekdays,ET:a.standaloneWeekdays,IM:a.shortWeekdays,DT:a.standaloneShortWeekdays,Q1:a.narrowWeekdays,CT:a.standaloneNarrowWeekdays,HM:a.shortQuarters,DM:a.quarters,qM:a.ampms||a.amPmS,yC:a.dateFormats||[],zC:a.timeFormats||[],vM:a.dateTimeFormats||[],xM:a.firstDayOfWeek,k3:a.weekendRange, +yM:a.firstWeekCutOffDay||a.firstWeekCutOfDay});return mr[b]};pr=function(a){$.n(a)&&(or=$.oa(a)?a.getTime():$.P(a));return(0,window.isNaN)(or)?(a=new Date,a.setTime(Date.UTC(a.getUTCFullYear(),a.getUTCMonth())),a):new Date(or)};$.Go=function(a){$.n(a)&&($.z(a)||$.D(a)?qr=a:qr="default");return qr};sr=function(a){$.n(a)&&($.z(a)?rr=a:rr=null);return rr||lr(qr)||lr("default")||"yyyy.MM.dd"};ur=function(a){$.n(a)&&($.z(a)?tr=a:tr=null);return tr||lr(qr,"dateFormat")||lr("default","dateFormat")||"yyyy.MM.dd"}; +wr=function(a){$.n(a)&&($.z(a)?vr=a:vr=null);return vr||lr(qr,"timeFormat")||lr("default","timeFormat")||"HH:mm:ss"};$.yr=function(a,b,c,d){return $.oa(a)?a:$.ea(a)?(0,window.isNaN)(a)?null:new Date(a):$.z(a)?xr(a,b,c,d):null};$.zr=function(a){var b=jr(qr);return(b=b&&b.messages)&&a in b?b[a]:a};$.Ar=function(a,b,c){b=$.Qk(b);a=$.Qk(a);return((c?c+"_":"")+(a==b?a:b+"_"+a)).replace(/-/g,"_")}; +$.Br=function(a,b,c){a=(c=$.Fo(c)||$.Fo(qr)||$.Fo("default"))&&c.formats&&c.formats[a];return($.A(a)?a[Math.min(a.length-1,b||0)]:$.z(a)?a:"")||"yyyy/MM/dd'T'HH:mm:ss.SSS"};$.Cr=function(a,b){var c=$.Fo(b)||$.Fo(qr)||$.Fo("default");c=c&&c.formats&&c.formats[a];return $.A(c)?c:$.z(c)?[c]:[]};$.Er=function(a,b,c){return $.Dr(a,ur(),b,c)};Fr=function(a,b,c){return $.Dr(a,wr(),b,c)}; +$.Dr=function(a,b,c,d){a=$.L(a,Date)?a:new Date(a);if((0,window.isNaN)(a.getTime()))return String(a);d=$.Fo(d)||$.Fo(qr)||$.Fo("default");b=b||rr||sr()||"yyyy.MM.dd";var e=b+$.ra(d);e in Gr||(d=nr(d),Gr[e]=new $.Pn(b,d));d=Gr[e];c=c||Hr;c in Ir||(Ir[c]=Kn(c));return d.format(a,Ir[c])}; +$.Kr=function(a,b,c,d,e,f,h,k){var l;$.z(b)?l=kr(b):$.D(b)&&(l=b);var m=kr(qr)||kr("default");b=$.ea(b)?b:l&&$.ea(l.decimalsCount)?l.decimalsCount:m.decimalsCount;c=$.z(c)?c:l&&$.z(l.decimalPoint)?l.decimalPoint:m.decimalPoint;d=$.z(d)?d:l&&$.z(l.groupsSeparator)?l.groupsSeparator:m.groupsSeparator;e=$.D(e)||$.da(e)?e:l&&($.D(l.scale)||$.da(l.scale))?l.scale:m.scale;f=$.da(f)?f:l&&$.da(l.zeroFillDecimals)?l.zeroFillDecimals:m.zeroFillDecimals;h=$.z(h)?h:l&&$.z(l.scaleSuffixSeparator)?l.scaleSuffixSeparator: +m.scaleSuffixSeparator;k=$.da(k)?k:l&&$.da(l.useBracketsForNegative)?l.useBracketsForNegative:m.useBracketsForNegative;!0===e&&(e=Jr);a=Number(a);(l=0>a)&&(a=-a);m="";if($.D(e)&&$.A(e.factors)&&$.A(e.suffixes)){var p=1,q=e.factors;e=e.suffixes;for(var r=Math.min(q.length,e.length),t=0;t=p||1>=p&&a>.1*p){m=e[t];break}m?m=h+m:p=1;a/=p}f=f?a.toFixed(b):$.Lm(a,b).toString();a="";/(e+|e-)/.test(f)&&(b=f.split("e"),f=b[0],a="e"+b[1]);b=f.split(".");if(d){f=b[0];for(h=[];0<(e=f.substr(0, +f.length-3)).length;)h.unshift(f.substr(-3)),f=e;f&&h.unshift(f);b[0]=h.join(d)}d=l?"-":"";c=b.join(c)+a+m;l&&k&&(c=["(",c,")"].join(""),d="");return d+c}; +xr=function(a,b,c,d){if(b=($.n(b)?b:Lr)||null){d=$.Fo(d)||$.Fo(Mr)||$.Fo("default");var e=$.ra(d);e=b+e;e in Nr||(d=nr(d),Nr[e]=new Paa(b,d));var f=Nr[e];c=$.oa(c)?c:pr();(b=-1==b.replace(/'.+?'/g,"").search(/z+/i))&&c.setTime(c.getTime()+6E4*c.getTimezoneOffset());d=a.length;a:{var h=new Raa;e=[0];for(var k=-1,l=0,m=0,p=0;pk&&f.b[p].$z&&(k=p,m=l=0),0<=k){var q=f.b[p].count;if(p==k&&(q-=m,m++,0==q)){a=0;break a}ir(f,a,e,f.b[p],q,h)||(p=k-1,e[0]=l)}else{if(k= +-1,!ir(f,a,e,f.b[p],0,h)){a=0;break a}}else{k=-1;if(" "==f.b[p].text.charAt(0)){if(q=e[0],fr(a,e),e[0]>q)continue}else if(a.indexOf(f.b[p].text,e[0])==e[0]){e[0]+=f.b[p].text.length;continue}a=0;break a}b:{if(null==c)throw Error("Parameter 'date' should not be null.");void 0!=h.era&&void 0!=h.year&&0==h.era&&0f?f:a));$.F(c.setHours)&&(void 0==h.bh&&(h.bh=c.getHours()),void 0!=h.g&&0h.bh&&(h.bh+=12),c.setHours(h.bh));$.F(c.setMinutes)&&void 0!=h.wi&&c.setMinutes(h.wi);$.F(c.setSeconds)&&void 0!=h.zg&&c.setSeconds(h.zg);$.F(c.setMilliseconds)&&void 0!=h.j&&c.setMilliseconds(h.j);void 0!=h.f&&c.setTime(c.getTime()+6E4*(h.f-c.getTimezoneOffset()));h.D&&(a=new Date,a.setFullYear(a.getFullYear()-80),c.getTime()a[h]&&(a=$.Na(a,0).reverse(),b=$.Na(b,0).reverse());for(var k=[],l=[],m=0;mc&&(c=~c);c=$.eb(c,1,h)-1;b=k[c](b);return l[c](b)}};as=function(a){$.T.call(this);this.scale=a;this.j=Taa;this.g=Uaa;this.f=Vaa}; +bs=function(a,b,c,d){b=Math.abs(c-b)/a.Ta;c=a.f.length;for(var e=0;ea?-m(-a+e-1):a?m(a+e-1):0}function l(a){return-m(a)}function m(a){return Qm(d,a)}var p=$.Pm(Math.abs(b),d),q=$.Pm(Math.abs(c),d),r=b*c,t=!1;0r?ts(a,-(p-(e-1)),q-(e-1),f,h):c?ts(a,0,q-(e-1),f,h):ts(a,-(p-(e-1)),0,f,h);a.Ia=(0,$.bb)(a.Ia,k);a.result=(0,$.bb)(a.result,k);t&&(a.Ia.reverse(),t=a.result[0],a.result[0]=a.result[1],a.result[1]=t,t=a.result[2],a.result[2]= +a.result[3],a.result[3]=t);a.result[4]=e;return a}; +ts=function(a,b,c,d,e,f,h){h=h||0;var k=a.Bk,l=a.eg,m=a.fl,p=c-b;!(0,window.isNaN)(k)&&p/k>a.ma.Zn()&&($.jl(20,null,[p,k]),k=window.NaN,l=4,m=6);if((0,window.isNaN)(k)){var q=window.NaN;for(a=window.NaN;l<=m;l++){var r=l-1;q=$.Mm(p/r);0==q&&(q=$.Mm(p/r,7));var t=Math.log(q);r=Math.pow(10,Math.floor(t*Math.LOG10E));t=Math.pow(10,Math.ceil(t*Math.LOG10E));var u=$.Pm(q/t,2);r=[r,t,qa?$.Ga(d,c,~a):(a=d[a],$.A(a.value)?$.Ea(a.value,b):a.value!=b&&(a.value=[a.value],a.value.push(b)))}else for(e in a.he)Rs(a,b,e,d)}; +Ss=function(a,b,c,d){if(c){if(d)for(var e=b.hc();e--;)Ss(a,b.Xd(e),c,d);if(d=a.he[c])e=b.get(c),a.G[c]&&(e=String(e)),b.get(c),e=$.Sa(d,e,a.D[c]),(d=d[e])&&($.A(d.value)&&1h.NE&&(e.__original_id__=c.length,e.__original_parent__=c.length+1,c.push("__original_id__","__original_parent__"));for(f=0;f=h.NE){var q=p[0];var r=p[1]}else q=m.id,r=p[2];for(e=0;ec.length?c[0]:c[b]):0}; +it=function(a,b,c,d,e,f,h){switch(a.u("cornerType")){case "round":b.Ue(e,f,h,h,!1,!0);break;case "round-inner":b.Ue(e,f,h,h,!1,!1);break;case "cut":b.lineTo(e,f);break;default:b.lineTo(c,d).lineTo(e,f)}};$.jt=function(a,b){$.dq(a.Ea,a.UG,b);"corners"in b&&(a.Ea.corners=a.sV(b.corners))};kt=function(){$.gt.call(this)};lt=function(a,b,c,d){$.T.call(this);this.Qb=this.Y=null;($.n(a)||$.n(b)||$.n(c)||$.n(d))&&this.set.apply(this,arguments);$.R(this.Ca,[["left"],["top"],["bottom"],["right"]])}; +$.zm=function(a){var b=arguments[0],c=arguments[1],d=arguments[2],e=arguments[3];if($.A(b)){var f=b;b=f[0];c=f[1];d=f[2];e=f[3];f=f.length}else f=arguments.length;if(!f)return{};if("object"==$.ka(b)){var h=b.top||0;var k=b.right||0;var l=b.bottom||0;var m=b.left||0}else 1==f?m=l=k=h=b||0:2==f?(l=h=b||0,m=k=c||0):3==f?(h=b||0,m=k=c||0,l=d||0):4<=f&&(h=b||0,k=c||0,l=d||0,m=e||0);return{top:h,left:m,bottom:l,right:k}};nt=function(a,b){for(var c in mt){var d=b[c];$.n(d)&&(a.Ea[c]=d)}}; +$.ot=function(a,b,c,d){lt.call(this,a,b,c,d)};$.pt=function(){this.b={}}; +Yaa=function(a){function b(a){var b=[],c,d;for(d in a)if(a.hasOwnProperty(d)){var e=a[d];if(d in l){var f=l[d];"number"==f&&(e=$.P(e));"boolean"==f&&(e=k[Qo(e).toLowerCase()],e="useNegativeSign"==d?!e:e);if("scale"==f){var h=Qo(e);if(h in k)e=k[h];else{e={};h=h.split("|");var p=function(a,b){return 0!=b%2};f=(0,$.Xe)(h[0].split(/\(([ \w\+\-]*)\)/),p);h=(0,$.Xe)(h[1].split(/\(([^\)]*)\)/),p);f=(0,$.bb)(f,function(a){return+a});var q=f[0];p=[q];for(c=1;cb||h&&d>c?-1:f&&a==b||h&&d==c?0:1});0>d&&(d=~d-1);return a[$.eb(d,0,a.length)]}; +aba=function(a){var b=$.xt(a),c=b.useHtml,d=a.zf();a.J(1024)&&($.At(a.Ln,a.ia()),a.I(1024));b=$.yt(a.Ln,b.format,d,a.ia());a.ty||(a.ty=$.Zj(),a.ty.Vd("aria-hidden","true"));c?a.ty.htmlText($.n(b)?String(b):""):a.ty.text($.n(b)?String(b):"");Ft(a,function(a,b,c){a=0==c;$.L(b,$.tt)||$.L(b,$.wt)?this.rh.call(b,this.ty,a):this.rh(this.ty,a,b)});return a.ty};Lt=function(){$.tt.call(this)};Mt=function(){$.wt.call(this)};$.Nt=function(a){$.T.call(this);this.f=a};Ot=function(a){this.La=a;$.T.call(this)}; +Pt=function(a,b,c){var d=a.La.O()?a.La.O().ya().Bn():null;return d?$.n(c)?(d[b](c),a):d[b]():$.n(c)?(a[b+"_"]!==c&&(a[b+"_"]=c),a.o(16,2),a):a[b+"_"]};Qt=function(a){var b={},c=a.text_,d=a.url_,e=a.alt_,f=a.imgAlt_,h=a.logoSrc_;a=a.enabled_;$.n(c)&&(b.text=c);$.n(d)&&(b.url=d);$.n(e)&&(b.alt=e);$.n(f)&&(b.imgAlt=f);$.n(h)&&(b.logoSrc=h);$.n(a)&&(b.enabled=a);return b}; +Rt=function(){$.X.call(this);this.Y=null;this.Me={};this.Qb=null;$.R(this.Ca,[["fontSize",20,9],["fontFamily",20,9],["fontColor",16,1],["fontOpacity",16,1],["fontDecoration",20,9],["fontStyle",20,9],["fontVariant",20,9],["fontWeight",20,9],["letterSpacing",20,9],["textDirection",20,9],["lineHeight",20,9],["textIndent",20,9],["vAlign",20,9],["hAlign",20,9],["wordWrap",20,9],["wordBreak",20,9],["textOverflow",20,9],["selectable",16,1],["disablePointerEvents",16,1],["useHtml",20,9]])}; +St=function(){Rt.call(this);this.Kb=this.Ra=this.za=null;this.Ua=$.Uj();$.$s(this,this.Ua);$.R(this.Ca,[["text",20,9],["position",4,9],["width",4,9],["height",4,9],["anchor",4,9],["offsetX",4,9],["offsetY",4,9],["rotation",4,9],["adjustFontSize",4,9],["minFontSize",0,0,0,this.N],["maxFontSize",0,0,0,this.N]]);this.Ca.disablePointerEvents.$U=function(){this.background().disablePointerEvents(this.Ee("disablePointerEvents"))}}; +Tt=function(a){var b=a.ka(),c;var d=a.u("width");var e=a.u("height");var f=a.WW();b&&f?(null!=d?(a.Gh=d=$.N(d,f.width),b=!1):(d=0,b=!0),null!=e?(a.Fh=c=$.N(e,f.height),f=!1):(c=0,f=!0)):($.ro(d)?(b=!0,d=0):(b=!1,a.Gh=d=$.P(d)),$.ro(e)?(f=!0,c=0):(f=!1,a.Fh=c=$.P(e)));e=a.padding();a.Kb.width(null);a.Kb.height(null);b?(d+=a.Kb.cb().width,a.em=d,a.Gh=e.Sj(d)):d=a.em=e.og(d);a.Kb.width(a.em);f?(c+=a.Kb.cb().height,a.dm=c,a.Fh=e.aj(c)):c=a.dm=e.Tg(c);a.Kb.height(a.dm);var h=!b,k=!f,l=a.u("adjustFontSize"); +h=l&&h&&l.width||k&&l.height;$.V(a);h?(d=a.QN(d,c),a.fontSize(d),a.Kb.fontSize(d),b&&(a.Kb.width(null),a.em=a.Kb.cb().width,a.Kb.width(a.em),a.Gh=e.Sj(a.em)),f&&(a.Kb.height(null),a.dm=a.Kb.cb().height,a.Kb.height(a.dm),a.Fh=e.aj(a.dm))):l&&(l.width||l.height)&&(a.fontSize(a.u("minFontSize")),a.Kb.fontSize(a.u("minFontSize")),b&&(a.Kb.width(null),a.em=a.Kb.cb().width,a.Kb.width(a.em),a.Gh=e.Sj(a.em)),f&&(a.Kb.height(null),a.dm=a.Kb.cb().height,a.Kb.height(a.dm),a.Fh=e.aj(a.dm)));a.ba(!1);a.Eg=$.N(e.u("left"), +a.Gh);a.Fg=$.N(e.u("top"),a.Fh)};Ut=function(a){var b;if(b=!a.Kb)a.Kb=$.Zj(),a.Kb.Vd("aria-hidden","true");return b};$.Vt=function(){St.call(this);$.R(this.Ca,[["visible",128,1]]);this.Ea.visible=!0};Wt=function(){$.Vt.call(this)}; +Xt=function(){Rt.call(this);this.Fb=$.Uj();this.Jc=this.Fb.text();this.Jc.Vd("aria-hidden","true");this.FY={line:"black",spline:"black","step-line":"black",ohlc:"black",candlestick:"black"};this.Cda={line:!0,spline:!0,"step-line":!0,ohlc:!0};this.BA={iconStroke:"#999",iconFill:"#999",iconHatchFill:"none",iconMarkerStroke:"#999",iconMarkerFill:"#999",fontColor:"#999"};$.R(this.Ca,[["text",20,9]]);this.vH()}; +Zt=function(a,b,c){a.ye?a.ye.clear():a.ye=b.parent().path();a.Eu&&(Yt(a,a.Ha),b=a.Eu,($.z(b)?$.jp(b):b).call(a,a.ye,c/2,c/2,c/6))}; +bba=function(a){switch(a){case "step-area":a=function(a,b){a.moveTo(0,.6*b).lineTo(.5*b,.6*b).lineTo(.5*b,.1*b).lineTo(b,.1*b).lineTo(b,b).lineTo(0,b).lineTo(0,.6*b).close()};break;case "area":a=function(a,b){a.moveTo(0,.7*b).lineTo(.35*b,.3*b).lineTo(.5*b,.5*b).lineTo(b,0).lineTo(b,b).lineTo(0,b).lineTo(0,.7*b).close()};break;case "range-step-area":case "range-spline-area":case "range-area":a=function(a,b){a.moveTo(0,.2*b).lineTo(.5*b,.4*b).lineTo(b,.2*b).lineTo(b,.8*b).lineTo(.5*b,.6*b).lineTo(0, +.8*b).close()};break;case "spline-area":a=function(a,b){var c=b/2;a.moveTo(b,.6*c).lineTo(b,b).lineTo(0,b).lineTo(0,1.3*c).Fd(0,c,c,.3*c,90,-90).Fd(b,c,c,.4*c,180,90).moveTo(0,0).close()};break;case "range-bar":a=function(a,b){a.moveTo(.35*b,0).lineTo(.65*b,0).lineTo(.65*b,.15*b).lineTo(.35*b,.15*b).close().moveTo(.1*b,.4*b).lineTo(.9*b,.4*b).lineTo(.9*b,.55*b).lineTo(.1*b,.55*b).close().moveTo(.25*b,.8*b).lineTo(.75*b,.8*b).lineTo(.75*b,.95*b).lineTo(.25*b,.95*b).close()};break;case "range-column":a= +function(a,b){a.moveTo(0,.6*b).lineTo(0,.4*b).lineTo(.15*b,.4*b).lineTo(.15*b,.6*b).lineTo(0,.6*b).close().moveTo(.4*b,.9*b).lineTo(.4*b,.1*b).lineTo(.55*b,.1*b).lineTo(.55*b,.9*b).lineTo(.4*b,.9*b).close().moveTo(.8*b,.7*b).lineTo(.8*b,.3*b).lineTo(.95*b,.3*b).lineTo(.95*b,.7*b).lineTo(.8*b,.7*b).close()};break;case "bar":a=function(a,b){a.moveTo(0,0).lineTo(.6*b,0).lineTo(.6*b,.15*b).lineTo(0,.15*b).close().moveTo(0,.4*b).lineTo(b,.4*b).lineTo(b,.55*b).lineTo(0,.55*b).close().moveTo(0,.8*b).lineTo(.8* +b,.8*b).lineTo(.8*b,.95*b).lineTo(0,.95*b).close()};break;case "column":a=function(a,b){a.moveTo(0,b).lineTo(0,.4*b).lineTo(.15*b,.4*b).lineTo(.15*b,b).close().moveTo(.4*b,b).lineTo(.4*b,0).lineTo(.55*b,0).lineTo(.55*b,b).close().moveTo(.8*b,b).lineTo(.8*b,.2*b).lineTo(.95*b,.2*b).lineTo(.95*b,b).close()};break;case "step-line":a=function(a,b){a.moveTo(0,.8*b).lineTo(.5*b,.8*b).lineTo(.5*b,.2*b).lineTo(b,.2*b).moveTo(0,0).close();Zt(this,a,b)};break;case "line":a=function(a,b){a.moveTo(0,.5*b).lineTo(b, +.5*b).close();Zt(this,a,b)};break;case "spline":a=function(a,b){var c=b/2;a.Fd(0,c,c,.8*c,90,-90).Fd(b,c,c,.6*c,180,90).moveTo(0,0).close();Zt(this,a,b)};break;case "bubble":case "circle":a=function(a,b){var c=b/2;a.Fd(c,c,c,c,0,360).close()};break;case "candlestick":a=function(a,b){a.moveTo(.5*b,0).lineTo(.5*b,b).moveTo(0,.3*b).lineTo(b,.3*b).lineTo(b,.7*b).lineTo(0,.7*b).lineTo(0,.3*b).close()};break;case "ohlc":a=function(a,b){a.moveTo(0,.2*b).lineTo(.5*b,.2*b).moveTo(.5*b,0).lineTo(.5*b,b).moveTo(.5* +b,.8*b).lineTo(b,.8*b).close()};break;case "triangle-up":case "triangle-down":case "diamond":case "cross":case "diagonal-cross":case "star4":case "star5":case "star6":case "star7":case "star10":case "pentagon":case "trapezium":case "arrowhead":case "v-line":a=$.zk(a);var b=$.jp(a);a=function(a,d){return b(a,d/2,d/2,d/2)};break;default:a=function(a,b){a.moveTo(0,0).lineTo(b,0).lineTo(b,b).lineTo(0,b).close()}}return a}; +$t=function(a,b){a.ye&&a.ye.clear();a.Qo?(b.call(a,a.Fu.clear(),a.hk),a.kr&&b.call(a,a.kr.clear(),a.hk)):(a.Fu.clear(),a.kr&&a.kr.clear())};au=function(a,b,c){a.rh(a.Jc,!!c);c=a.u("fontColor");b=a.Co?a.BA.fontColor:b?$.Il(c):c;a.Jc.color(b)};bu=function(a,b){a.Fu.stroke(cba(a,b));a.Fu.fill(dba(a,b));a.kr&&a.kr.fill(a.Co?a.BA.iconHatchFill:a.Ns)};Yt=function(a,b){a.ye&&(a.ye.fill(eba(a,b)),a.ye.stroke(fba(a,b)))}; +cba=function(a,b){return a.Co?a.BA.iconStroke:$.No(a.lr)&&a.So in a.FY?a.FY[a.So]:b?$.Il(a.lr):a.lr};dba=function(a,b){return a.So in a.Cda?null:a.Co?a.BA.iconFill:b?$.Il(a.Au):a.Au};fba=function(a,b){return a.Co?a.BA.iconMarkerStroke:b?$.Il(a.Cu):a.Cu};eba=function(a,b){return a.Co?a.BA.iconMarkerFill:b?$.Il(a.Bu):a.Bu};$.du=function(){Rt.call(this);this.cd=this.Dc=null;this.ec=cu;this.JB=this.HH=!1;this.KX();$.R(this.Ca,[["text",20,9]]);this.o(4294967295)}; +eu=function(a){var b=a.ka();if(b){var c=b.width;var d=b.height}else c=d=void 0;var e=!!a.Kb;if(e){var f=a.Kb.cb();var h=f.width;var k=f.height}var l=null!=a.Dc,m=null!=a.cd;f=a.padding();l?(h=$.mo(a.Dc)&&!$.n(c)?e?h:0:$.N(a.Dc,c),e&&(a.Eg=$.N(f.u("left"),h))):(h=e?h:0,e&&(a.Eg=$.N(f.u("left"),h)),h=f.Sj(h));b&&cb?null:b;$.n(a.width())||a.o(4)}; +wu=function(a,b){a.P=0>b?null:b;$.n(a.height())||a.o(4)};$.xu=function(a,b){if($.n(b)){var c=a.u("orientation")!=b;a.Dd.orientation=b;c&&a.o(4);return a}return a.Dd.orientation};$.yu=function(a,b){if($.n(b)){var c=null==b?"":String(b);a.W!=c&&(a.W=c,a.o(20,9));return a}return a.W};zu=function(a){var b=!1;a.Fb||(b=!0,a.Fb=$.Uj(),a.background().O(a.Fb),a.rc=a.Fb.text(),a.rc.zIndex(.1),a.rc.Vd("aria-hidden","true"),$.M(a,a.Fb),$.$s(a,a.Fb));return b}; +Au=function(a){var b=a.padding(),c=a.margin(),d=a.ka(),e=a.u("orientation"),f=0==a.Ay()%180;var h=0==(a.Ay()+90)%180;if(d)if(h){var k=d.height;h=d.width}else k=d.width,h=d.height;else k=h=void 0;var l=zu(a);if(l||a.J(16))a.rh(l),a.I(16);a.rc.width(null);a.rc.height(null);a.rc.mc(1,0,0,1,0,0);l=a.rc.cb();var m=a.Of("width")?a.Ee("width"):a.ea||null;null===m?(a.G=l.width,a.g=b.Sj(a.G)):(a.g=$.N(m,k),a.G=b.og(a.g));d&&kd.left-q+k&&(b-=d.left-q+k);0>d.top-m+p&&(c-=d.top-m+p);d.Xa()-q+k>r.width&&(b-=d.Xa()-q+k-r.width);d.Na()-m+p>r.height&&(c-=d.Na()-m+p-r.height)}h||(a.x(b),a.y(c),d=a.lb(),d.lefte.width+q&&(b-=d.Xa()- +e.width-q),d.Na()>e.height+m&&(c-=d.Na()-e.height-m));l||(a.x(b),a.y(c),d=a.lb(),d.leftf.Xa()+q&&(b-=d.Xa()-q-f.Xa()),d.Na()>f.Na()+m&&(c-=d.Na()-m-f.Na()));a.x(b);a.y(c)}}; +$u=function(a,b,c,d,e){var f=b.parent()?Vu(b):a,h=f.u("positionMode")||"float";f=f.wa()||$.Zu(a);a=f.lb();var k=f.O().ya();f=$.Fj(k);k=k.cb();var l=Tu(b),m=b.u("position");switch(h){case "float":var p=l?c:c-f.x;var q=l?d:d-f.y;break;case "point":var r;e?r=e.zj(m,!0).value:r={x:c,y:d};p=l?r.x+f.x:r.x;q=l?r.y+f.y:r.y;break;case "chart":c=$.to(a,m),p=c.x+(l?f.x:0),q=c.y+(l?f.y:0)}Uu(b,p,q,f,k,a)}; +kba=function(a,b,c,d,e,f){if(a.check(Qu|Ru)&&(a.b=e?e.bb():a,av(a,[a.b]),a.b.enabled())){for(var h={clientX:{value:c,type:"number"},clientY:{value:d,type:"number"},formattedValues:{value:[],type:""},points:{value:[],type:""}},k=[],l=0;l":"\n",h.joinedFormattedValues={value:h.formattedValues.value.join(k),type:"string"},f&&$.Vc(h,f),k=e&&e.gc&&e.gc()||b[0]&&b[0].series&&b[0].series.gc&&b[0].series.gc()||void 0,f=[],!e&&b[0]&&b[0].series&&f.push(b[0].series),e&&f.push(e),k&&f.push(k),b=new $.dv(h),b.ji(f),e&&b.th(e.aa()), +$.Nu(b),a.b.Fi().text(cv(a,b,!0)),$.yu(a.b.title(),ev(a,b)),av(a.b),a.b.u("useHtml")&&Fu(a.b.g),fv(a.b).parent()||a.b.o(2),gv(a,a.b),$u(a,a.b,c,d,e),hv(a.b,c,d))}};bv=function(a,b){return!a.enabled()||b.nearestPointToCursor&&!(0,window.isFinite)(b.nearestPointToCursor.distance)}; +$.lv=function(a,b,c,d,e,f,h){if(!a.f||a.f.Oy()||!a.f.$l()||a.check(Qu)||b.length){iv(a);var k=a.u("displayMode");if("single"==k)e=b[0],b=e.series,a.b=f?a:b.bb(),!bv(a.b,e)&&$.n(b.Aj)&&(f=b.Aj(),f.clientX=c,f.clientY=d,$.yu(a.b.title(),ev(a.b,f)),a.b.Fi().text(cv(a.b,f)),a.b==a?av(a):(jv(a),av(a,[a.b])),((f=a.u("useHtml"))&&!a.b.g.O()||!fv(a.b).parent())&&a.b.o(2),f&&Fu(a.b.g),gv(a,a.b),$u(a,a.b,c,d,b),hv(a.b,c,d));else if("union"==k)kba(a,b,c,d,e,h);else if("separated"==k)for(jv(a),f=0;fd.Na()?(e=d.rb(),f=d.Xa(),h=d.Tb(),k=d.Na(),c+=2):(e=f=d.rb()+2,h=d.Tb(),k=d.Na(),b-=2);else if(b>d.Xa())cd.Na()?(e=d.rb(),f=d.Xa(),h=d.Na(),k=d.Tb(),c+=2):(e=f=d.Xa()-2,h=d.Tb(),k=d.Na(),b+=2); +else if(cd.Na())h=k=d.Na()-2,e=d.rb(),f=d.Xa(),c+=2;else break a;a.N=[e,h,f,k,b,c]}$.ce(window.document,"mousemove",a.mK,!1,a)}else e&&d.gd(!0)}};$.mv=function(a,b,c,d){iv(a);a.b=a;d&&(d.clientX=b,d.clientY=c,$.yu(a.title(),ev(a,d)),a.Fi().text(cv(a,d)));gv(a,a);$u(a,a,b,c);hv(a,b,c)};ev=function(a,b){b.values().titleText={value:a.eb.u("text"),type:"string"};$.Nu(b);var c=a.u("titleFormat");$.z(c)&&(c=$.rt($.pt.rd(),c));return c.call(b,b)}; +cv=function(a,b,c){b.values().valuePrefix={value:a.u("valuePrefix")||"",type:"string"};b.values().valuePostfix={value:a.u("valuePostfix")||"",type:"string"};$.Nu(b);a=c?a.u("unionFormat"):a.u("format");$.z(a)&&(a=$.rt($.pt.rd(),a));return a.call(b,b)}; +jv=function(a,b,c){if(b)return a.j&&a.j.stop(),a.remove(),!0;if(a.u("selectable")&&c){b=c.originalEvent.clientX;c=c.originalEvent.clientY;var d=a.lb().tf(new $.lb(b,c)),e=fv(a).ca();if(e&&!d)return $.Rd(e,"mouseleave",a.BJ,!1,a),a.N=null,!1;if(nv(a,b,c))return $.Rd(window.document,"mousemove",a.mK,!1,a),e&&($.Rd(fv(a).ca(),"mouseenter",a.RS,!1,a),$.Rd(fv(a).ca(),"mouseleave",a.SS,!1,a)),!1;a.N=null}if(a.iB())return ov(a),a.j.To()||a.j.start(),!1;a.remove();return!0}; +iv=function(a){var b=a.cv();a.title().cv(b);a.Eq().cv(b);a.background().cv(b);a.padding().cv(b)};fv=function(a){if(!a.Ua){a.Ua=$.Uj();$.M(a,a.Ua);$.$s(a,a.Ua);var b=a.background(),c=a.title(),d=a.Eq(),e=a.Fi();b.O(a.Ua);c.O(a.Ua);d.O(a.Ua);e.O(a.Ua)}return a.Ua};$.Zu=function(a,b){return $.n(b)?(a.Ga=b,a):a.Ga};Tu=function(a){return lba&&a.u("allowLeaveStage")&&a.u("allowLeaveChart")}; +ov=function(a){a.j&&a.j.To()?a.Qa=!0:($.vd(a.j),a.j=new Hu(function(){this.remove();this.Qa&&(this.Qa=!1,ov(this))},a.iB(),a))};av=function(a,b){b=b||[];for(var c in a.D)pv(b,function(a){return String($.ra(a))==c})||a.D[c].xd(!0)}; +qv=function(a){if(a.u("useHtml"))a.P=a.g.cb();else if(!a.P){$.V(a.Fi());a.rh();a.Fi().ba(!1);var b=a.u("width"),c=a.u("height"),d=(a.La||$.Zu(a)).lb();b=$.N(b,d.width);c=$.N(c,d.height);d=!(0,window.isNaN)(b);var e=!(0,window.isNaN)(c),f=new $.K(0,0,0,0),h=null,k=null,l=a.title(),m=a.Eq(),p=a.Fi();$.V(l);$.V(m);$.V(p);if(!d||!e){if(l.enabled()){"svg"==$.Qj?l.ka(null):l.ka(a.La&&a.La.O()?a.La.O().ya().cb():null);var q=l.u("width");var r=null!=l.Ee("width");var t=l.u("height");var u=null!=l.Ee("height"); +$.mo(q)&&(h=q,d?(q=a.padding().og(b),l.width(q)):l.width(null));$.mo(t)&&(k=t,e?(q=a.padding().Tg(c),l.height(q)):l.height(null));t=l.Lh();f.width=b||Math.max(f.width,t.width);r?l.width(h):delete l.ga.width;u?l.height(k):delete l.ga.height;k=h=null;e||(f.height+=t.height)}if(p.enabled()){var v=(r=a.Y?a.Y.Fi():null)?r.width():void 0;r=r?r.height():void 0;p.ka(null);v=p.width()||v;r=p.height()||r;$.mo(v)&&(h=v,d?(q=a.padding().og(b),p.width(q)):p.width(null));$.mo(r)&&(k=r,e?(q=a.padding().Tg(c),p.height(q)): +p.height(null));v=p.Lh();f.width=b||Math.max(f.width,v.width);h&&p.width(h);k&&p.height(k);e||(f.height+=v.height)}l.enabled()&&l.ka(new $.K(0,0,f.width,t.height));p.enabled()&&p.ka(new $.K(0,0,f.width,v.height));m.enabled()&&(m.ka(l.enabled()||p.enabled()?f:null),t=m.Lh(),f.width=b||Math.max(f.width,t.width),e||(f.height+=t.height))}f=a.padding().ZS(f);d&&(f.width=b);e&&(f.height=c);f.left=0;f.top=0;a.P=f;l.ba(!1);m.ba(!1);p.ba(!1)}}; +rv=function(a){qv(a);if(!a.G){var b=a.u("anchor"),c=a.u("useHtml"),d=c?0:a.u("offsetX"),e=c?0:a.u("offsetY");c=c?$.Vf(a.g.Fa(),"margin"):new $.ob(0,0,0,0);var f=a.u("x"),h=a.u("y");f=new $.lb(f,h);$.Ko(f,b,d+c.left,e+c.top);b=$.to(a.P,b);f.x-=b.x;f.y-=b.y;a.G=f}}; +kv=function(a,b,c,d,e){var f=c,h=d,k=a.u("positionMode")||"float",l=a.u("displayMode"),m=(a.wa()||$.Zu(a)).lb(),p=a.Ga.O().ya(),q=p.cb();p=$.Fj(p);var r=Tu(b);"float"==k?(f=r?c:c-p.x,h=r?d:d-p.y):"point"==k?(a="union"==l?a.u("position"):b.u("position"),a=e.zj(a,!0).value,f=r?a.x+p.x:a.x,h=r?a.y+p.y:a.y):"chart"==k&&(f=a.wa().lb(),a="union"==l?a.u("position"):b.u("position"),a=$.to(f,a),f=a.x+(r?p.x:0),h=a.y+(r?p.y:0));Uu(b,f,h,p,q,m)}; +sv=function(a){var b=null;$.Zu(a)?b=$.Zu(a).O():a.wa()?b=a.wa().O():a.parent()&&(a=Vu(a),$.Zu(a)?b=$.Zu(a).O():a.wa()&&(b=a.wa().O()));return b};Vu=function(a){for(;a.parent();)a=a.parent();return a}; +gv=function(a,b){if(b.J(2))if(Tu(b)||"vml"==$.Qj){if(b.u("useHtml"))b.g.O($.zp.body);else{var c=Lu.rd();a.f&&a.f.Oy()&&b.f.O(null);b.f=c;b.f.O(window.document.body);b.O(c.b);fv(b).parent(b.O())}b.I(2)}else if(c=sv(b)){var d=c.ya().nl();if(b.u("useHtml"))b.g.O(d);else{var e=tv(b);c=uv[e];c||(c=new Gu,uv[e]=c);b.f=c;fv(b).parent(b.O());c.O(d);b.O(c.b)}b.I(2)}}; +nv=function(a,b,c){if(!a.N)return!1;var d=a.N[0],e=a.N[1],f=a.N[2],h=a.N[3],k=a.N[4],l=a.N[5];a=$.Vm(f,h,k,l,b,c);k=$.Vm(k,l,d,e,b,c);return $.Vm(d,e,f,h,b,c)==a&&a==k};tv=function(a){a=sv(a).ya();return"stg"+$.ra(a)};$.vv=function(){Rt.call(this);this.Ql=this.f=window.NaN;this.P=this.b=this.ei=this.cd=this.fi=this.Dc=null;this.jc=window.NaN;this.Fc=null;this.Ed=!0;this.Jr=null;this.ea=!1;this.o(4294967295);$.at(this,this,this.J$,this.q4,null,this.I$,null,this.p4)}; +wv=function(a,b){if(!a.D||!b||a.D.length!=b.length)return!1;for(var c=0;cb?(v=Math.max(v,p),x+=m,q++,p=e+a.f,m=k+a.f):(p+=e+a.f,m=Math.max(m,k+a.f)):"vertical-expandable"==a.G&&(r+k>c?(x=Math.max(x,r),v+=t,u++,t=e+a.f,r=k+a.f):(r+=k+a.f,t=Math.max(t,e+a.f))));!d||0>f?f=d=0: +d-=a.f;!h||0>l?l=h=0:h-=a.f;a.pq=u;return"vertical"==a.G?$.$m(0,0,Math.max(0,f),Math.max(0,h)):"horizontal"==a.G?$.$m(0,0,Math.max(0,d),Math.max(0,l)):"vertical-expandable"==a.G?(v+=t-a.f,x=Math.max(x,r)-a.f,$.$m(0,0,Math.max(0,v),Math.max(0,x))):"horizontal-expandable"==a.G?(v=Math.max(v,p)-a.f,x+=m-a.f,$.$m(0,0,Math.max(0,v),Math.max(0,x))):$.$m(0,0,0,0)}; +nba=function(a){if($.A(a.gb))return a.gb;if(null!=a.D){for(var b,c=[],d=0;dc.width&&(e+=f,f=d=0);m.o(4);$.V(m).ka(c).x(d).y(e).enabled(!0).ba(!1).X(); +d+=m.lb().fe()+a.f;f=Math.max(f,p.ee()+a.f)}break;case "vertical-expandable":for(k=0;kc.height&&(d+=h,h=e=0),m.o(4),$.V(m).ka(c).x(d).y(e).enabled(!0).ba(!1).X(),e+=l[k].lb().ee()+a.f,h=Math.max(h,p.fe()+a.f)}if(a.title().enabled()&&(c=a.title().u("orientation")||$.xu(a.title()),"top"!=c&&"bottom"!=c)){d=c=0;if(e=a.Va.nd)c=e.Kd,d=e.Ld;e=a.P.Io();f=a.eb.Lh();f.top+=d;f.left+=c;c=f.top+f.height/2-(e.top+e.height/2);c=Math.min(a.rq.height-e.height,Math.max(c,0)); +a.P.mc(1,0,0,1,0,c)}}a.jc=b}; +zv=function(a,b){var c=$.P(b.itemIndex);if((0,window.isNaN)(c))return null;var d=b.type;switch(d){case "mouseout":d="legenditemmouseout";break;case "mouseover":d="legenditemmouseover";break;case "mousemove":d="legenditemmousemove";break;case "mousedown":d="legenditemmousedown";break;case "mouseup":d="legenditemmouseup";break;case "click":d="legenditemclick";break;case "dblclick":d="legenditemdblclick";break;default:return null}c=a.ea?a.b.length-1-c:c;var e=null,f=window.NaN,h=a.b[c];if(h&&a.D)for(var k= +0;kf?($.Ga(a.f,c,~f),$.Ga(a.b,b,~f)):(h=!(a.b[f]&b))?a.b[f]|=b:$.n(d)&&(a.b[f]=d);a.target.enabled()&&a.target.aa().select(c)&&(a.target.hg()||"single"!=a.target.jd()||(k?a.target.Zj(b):$.n(d)&&!k&&$.Jv(a,window.NaN)&&a.target.Zj(d)),h?e=a.target.vj(b,e):$.n(d)&&(e=a.target.vj(d,e)))}return e}; +$.Jv=function(a,b){if($.n(b)){if((0,window.isNaN)(b))return!$.Lv(a,2)&&!(a.lc&2);var c=$.Mv(a,+b)}else c=a.lc;return!(c&2)};Nv=function(a,b,c){if(!a.target.aa().select(b))return c;var d=$.Sa(a.f,b);1!=$.Zl&&(0>d?($.Ga(a.f,b,~d),$.Ga(a.b,1,~d),a.lc==$.Zl&&(c=a.target.vj(1,c)),$.Jv(a,window.NaN)&&!a.target.hg()&&"single"==a.target.jd()&&a.target.Zj(1)):a.b[d]|=1);return c}; +$.Pv=function(a,b){var c;if($.n(b)){if(!(b>=a.target.aa().Mb())){var d=a.target.Lo();if($.A(b))for($.Ua(b),c=b.length;c--;)d=Nv(a,+b[c],d);else d=Nv(a,+b,d);a.target.kl(d)}}else if(a.lc&1){for(c=a.b.length;c--;)$.Ov(a,1,c)&&($.Fa(a.b,c,1),$.Fa(a.f,c,1));a.lc=$.Zl}else{for(c=a.b.length;c--;)$.Ov(a,1,c)&&($.Fa(a.b,c,1),$.Fa(a.f,c,1));a.lc=1}};$.Ov=function(a,b,c){return!(a.b[c]&=~b)}; +$.Iv=function(a,b,c,d){var e=a.f[c];$.Ov(a,b,c)?($.Fa(a.f,c,1),$.Fa(a.b,c,1),a.target.enabled()&&a.target.aa().select(e)&&a.lc==$.Zl&&(d=a.target.vj($.Zl,d))):a.target.enabled()&&a.target.aa().select(e)&&a.lc==$.Zl&&(d=a.target.vj(a.b[c],d));return d};$.Qv=function(a,b,c,d){if((0,window.isNaN)(c))return d;c=$.Sa(a.f,c);0<=c&&(d=$.Iv(a,b,c,d));return d};$.Rv=function(a,b){for(var c=[],d=0,e=a.b.length;dk&&(e=b.from,f=b.ue);f=c.transform(f,0);c=c.transform(e,1);b=Math.min(c,f);f=Math.max(c,f);!(0,window.isNaN)(b)&&!(0,window.isNaN)(f)&&0<=f&&1>=b&&(b=$.eb(b,0,1),f=$.eb(f,0,1),c=a.ka(),e=a.Tm(),a.vb()?(a=Math.floor(c.Na()-c.height*f),b=Math.ceil(c.Na()-c.height*b),f=c.rb(),h=c.Xa(),d.moveTo(f,a).lineTo(h,a).lineTo(h,b).lineTo(f,b).close()):(a=c.Na(),h=c.Tb(),b=Math.floor(c.rb()+ +c.width*b),f=Math.ceil(c.rb()+c.width*f),d.moveTo(b,a).lineTo(b,h).lineTo(f,h).lineTo(f,a).close()),d.clip(e.$i(c)))}else $.hl(2)};$.Nw=function(a){a.j||(a.j=$.Xj());return a.j};$.Pw=function(){$.X.call(this);$.R(this.Ca,[["stroke",0,1],["length",0,9],["position",0,9]]);this.path=$.Xj();$.$s(this,this.path);$.M(this,this.path)};$.Qw=function(a){if(!a.b)switch(a.te){case "top":a.b=a.eW;break;case "right":a.b=a.cW;break;case "bottom":a.b=a.$V;break;case "left":a.b=a.bW}return a.b}; +$.Rw=function(){$.V(this);$.X.call(this);this.fh=[];this.oj=[];this.ke=980;this.ba(!1)};$.Sw=function(a,b){var c=a.tO!=b&&!a.te;a.tO=b;c&&a.o(a.ke)}; +Uw=function(a,b){if(a.Mz())if(a.b)var c=a.b;else{var d=a.labels();if((c=a.scale())&&d.enabled()){a.nG=1;a.G=1;c=c.Ia().get();var e=c.length,f,h,k;d=d.u("position");var l=a.TE&&0>$.wo(d)?a.TE:null;d=[];for(f=0;fa.kx?a.kx:a.nG}else a.G=a.eC;if((null!==a.eC||null!==a.kx&&a.nG>a.kx)&&"no-overlap"==a.hi()){for(h=0;he&&(e=r);if(m&&!a.Mz())for(m=$.D(c)?c.ab:!c,q=k.hb().get(),l=0,p=m.length;lf&&(f=r);return a.fV(e,f,d)+h}; +Tw=function(a,b,c){var d=!1;switch(a.orientation()){case "top":case "bottom":d=b.left>c[0]||b.Xa()c[1]||b.Na()d.hL&&(d.hL=h),h=q;d.push(u?k:q);u&&(p++,k=p=q,x.push(u?k:q),u&&(p++,k=pk&&(k=~k-1);k=$.eb(k,0,d-1);l=$.Sa(f,l,p);0>l&&(l=~l); +l=$.eb(l,0,d-1);h.inverted()&&(f=k,k=l,l=f)}else k=l=window.NaN;h=k;m=l}var q=a.zI[e];for(var r in q){p=q[r];d=a.wn[r];f=a.AE(d);var t=a.Ya().zv();var u="none"!=f,v="direct"==t,x="percent"==f;if(u){var w=[];for(b=k;b<=l;b++)w.push({kv:0,eo:0,ev:0,jv:0,co:0,dv:0,IB:!1,BB:!1,sr:!1,aC:{mz:window.NaN,dz:window.NaN,JE:!1,fW:!1}})}for(t=0;t=h&&b<=m&&(y.Ys>B&&(y.Ys=B),y.Xs=h&&b<=m)for(C=0;CB&&(y.Ys=B),y.Xse+h||cf+k)return null;e=[];f=0;for(h=a.$a.length;fa.gI()&&h.scale(d[f.scale])}};$.$x=function(a,b,c,d,e,f,h,k){for(var l=[],m=0;m(a.prevValue-a.Ga||1)*(b-a.Ga||1)};Rx=function(a,b){return!!((Number(a)||0)&(b||255))};Oy=function(a){$.T.call(this);this.xa=a;this.b=null;$.R(this.Ca,[["start",0,1],["point",0,1],["updatePoint",0,1],["finish",0,1],["needsZero",0,4],["needsWidth",0,4],["yValues",0,4]])}; +Ry=function(a,b,c,d,e){if(a){var f=void 0;if(e&&(f=c.i("shapes"),!f))return;b=c?new Py(b,c,d||$.Zl,f):new Qy(b);a.call(b,b)}};Qy=function(a){this.series=a;this.seriesState=a.Ki()};Py=function(a,b,c,d){Qy.call(this,a);this.b=b;for(var e=a.ae(),f=0;fp.G[x]?m=p.D[x][p.G[x]]:p.D[x].push(m=v.XN());p.G[x]++;p.g[x].push(m);m=Wy(p,q,r,t,u,m,!0);f[l]=m}a.tb(a.R,f,b);return f}; +Yy=function(a,b,c){for(var d in c){var e=a.f[d],f=c[d],h=e.fill(a.R,b),k=e.stroke(a.R,b);f.fill(h);f.stroke(k);e.ob&&("none"==f.fill()&&"none"==f.stroke()?f.visible(!1):f.visible(!0));e.ob||Vy(a,h,k)}a.tb(a.R,c,b)};Vy=function(a,b,c){a=a.R.aa();a.i("fill",b);a.i("stroke",c)};$.Zy=function(a,b,c,d,e,f){$.Ty.call(this,a,b,c,d,e,f)};$.$y=function(a,b,c,d,e,f){$.Ty.call(this,a,b,c,d,e,f);this.j={}}; +az=function(a,b,c){c=c||a.f;var d=a.R.aa(),e,f,h="",k;for(k in c){var l=a.f[k],m=l.fill(a.R,b),p=l.stroke(a.R,b);l.ob||(m&&Wl(m)&&(e=m),p&&Wl(p)&&(f=p));h+=k+$.Ml(m)+$.Ml(p)}Vy(a,e,f);d.i("shapeNames",c);return h};bz=function(a){$.T.call(this);this.xa=a;this.vl="both";this.ea=null;this.g=this.j=void 0;this.N=null;this.b=this.f=void 0;this.G=this.W=10;this.D=this.P="#1D8BD1"};cz=function(a){return $.L(a,$.qs)&&!$.L(a,$.rs)&&"none"==a.bm()}; +Ux=function(a){var b=a.rC(),c=a.sC(),d=a.tC(),e=a.nC(),f=a.oC();a=a.pC();e=$.n(f)||$.n(a)||$.mo(e)||!$.ro(e);return $.n(c)||$.n(d)||$.mo(b)||!$.ro(b)||e};$.dz=function(){Rt.call(this);this.ga={};$.R(this.Ca,[["text",20,9]])}; +$.$v=function(a,b,c,d){function e(a){$.tw.call(this,a);a.I(4294967295)}function f(a){$.uw.call(this,a);a.I(4294967295)}$.X.call(this);this.wa=a;this.Ke=b;this.Dd={};this.Dd.pointWidth="90%";this.Dd.isVertical=this.wa.qa();this.Dd.minPointLength=0;this.yf=!1;this.cm={};this.IA=this.oy=null;this.Bd=c;this.Hh=null;this.uA=0;this.wk=null;this.Vl=[];this.Bo=!1;this.jt=new Oy(this);$.U(this.jt,this.dda,this);a={};$.R(a,[["fill",3072,65,4294967295],["negativeFill",3072,65,4294967295],["risingFill",3072, +65,4294967295],["fallingFill",3072,65,4294967295],["stroke",3072,65,4294967295],["lowStroke",2048,65,4294967295],["highStroke",2048,65,4294967295],["lowFill",2048,65,4294967295],["highFill",2048,65,4294967295],["negativeStroke",3072,65,4294967295],["risingStroke",3072,65,4294967295],["fallingStroke",3072,65,4294967295],["medianStroke",2048,65,4294967295],["stemStroke",2048,65,4294967295],["whiskerStroke",2048,65,4294967295],["hatchFill",3072,65,4294967295],["negativeHatchFill",2048,65,4294967295], +["risingHatchFill",2048,65,4294967295],["fallingHatchFill",2048,65,4294967295],["highHatchFill",2048,65,4294967295],["lowHatchFill",2048,65,4294967295],["whiskerWidth",1024,1,256],["type",1024,65,8192],["size",1024,1,8192],["labels",0,0],["minLabels",0,0],["maxLabels",0,0],["markers",0,0],["outlierMarkers",0,0]]);this.ja=new $.qw(this,a,$.Zl);this.ja.ga.labelsAfterInitCallback=$.tw;this.ja.ga.markersAfterInitCallback=$.uw;this.ja.ga.outlierMarkersAfterInitCallback=yba;a={};$.R(a,[["fill",0,0,4294967295], +["negativeFill",0,0,4294967295],["risingFill",0,0,4294967295],["fallingFill",0,0,4294967295],["stroke",0,0,4294967295],["lowStroke",0,0,4294967295],["highStroke",0,0,4294967295],["lowFill",0,0,4294967295],["highFill",0,0,4294967295],["negativeStroke",0,0,4294967295],["risingStroke",0,0,4294967295],["fallingStroke",0,0,4294967295],["medianStroke",0,0,4294967295],["stemStroke",0,0,4294967295],["whiskerStroke",0,0,4294967295],["hatchFill",0,0,4294967295],["negativeHatchFill",0,0,4294967295],["risingHatchFill", +0,0,4294967295],["fallingHatchFill",0,0,4294967295],["highHatchFill",0,0,4294967295],["lowHatchFill",0,0,4294967295],["whiskerWidth",0,0,256],["type",0,0,8192],["size",0,0,8192],["labels",0,0],["minLabels",0,0],["maxLabels",0,0],["markers",0,0],["outlierMarkers",0,0]]);this.Ha=new $.qw(this,a,1);this.Ja=new $.qw(this,a,2);this.Ha.ga.labelsAfterInitCallback=e;this.Ha.ga.markersAfterInitCallback=f;this.Ja.ga.labelsAfterInitCallback=e;this.Ja.ga.markersAfterInitCallback=f;$.R(this.Ca,[["color",2048, +65,4294967295],["xPointPosition",1024,1,4294967295],["pointWidth",1024,1,1024],["maxPointWidth",1024,1,1024],["minPointLength",1024,5,1024,this.QB],["connectMissingPoints",1024,1,16],["displayNegative",1024,5,2],["stepDirection",1024,1,131072],["isVertical",1024,5,4294967295]]);this.Nx(d,!0)};$.ez=function(a){var b=1E-5*a.Fp;b=a.Ke.UI(a)+b;a.Wg=b};Sx=function(a){return a.check(128)&&a.check(2097152)};$.Sy=function(a){return!!a.jt.u("needsZero")};$.fz=function(a,b){a.Dd.pointWidth=String(100*b)+"%"}; +$.gz=function(a,b){a.Dd.xPointPosition=b};$.hz=function(a,b){a.Dd.type=b;a.ja.xb().gD=b;a.check(8192)&&a.o(1024)};$.iz=function(a){a.Gd||(a.Gd=new $.dv);return a.Gd};$.kz=function(a,b,c,d){if(!a)return Fba;var e=$.ra(b)+"|"+a+"|"+c+(d?"|"+d:"");d=d||a;var f=jz[e];f||(jz[e]=f=function(e,f,l){l=$.Xl(l);return l!=$.Zl&&c&&(l=e.pc(a,l,f,b,!1,d),$.n(l))?l:e.pc(a,0,f,b,!1,d)});return f};Fba=function(){}; +lz=function(a,b,c,d,e,f){$.V(b);if(a.check(e)&&(!1!==b.enabled()||c||d)){if(b.O(a.TW()),a.J(f))return b.clear(),b.ka(a.fa),!0}else b.clear(),b.O(null);b.X();b.ba(!1);return!1}; +$.mz=function(a,b,c,d,e,f,h,k,l,m){var p;var q=k.ia();if((0,window.isNaN)(q))return null;h&&((p=a.RE[q])||(p=a.RE[q]=[]));var r;b[0]&&(r=b[0].call(a.ja));var t,u,v,x,w,y,B;if(k.i("missing")||k.i("skipDrawing"))b=!1;else{l=$.Xl(l);var E=e&&a.Ir();c[0]&&(t=c[0].call(a.wa.ja));var C=r;if(E)var O=(e=k.get("normal"))?e[d[0]]:k.get(d[0]);if(3y&&!a.u("displayNegative"))&&(u=!0);y={};y.missing=u?1:0;y.rawIndex=h.ia();v={data:v,i:y};a.aZ(h,v,t);c(b,v)}}a.o(512); +return a.qe={data:b,R:a,Y$:a.check($.tz)&&(f.Ve("normal")||f.Ve("hovered")||f.Ve("selected")||f.Ve("label")||f.Ve("hoverLabel")||f.Ve("selectLabel")||f.Ve("minLabel")||f.Ve("hoverMinLabel")||f.Ve("selectMinLabel")||f.Ve("maxLabel")||f.Ve("hoverMaxLabel")||f.Ve("selectMaxLabel")),Z$:a.check(4194304)&&(f.Ve("normal")||f.Ve("hovered")||f.Ve("selected")||f.Ve("marker")||f.Ve("hoverMarker")||f.Ve("selectMarker")),$$:a.check(256)&&(f.Ve("outliers")||f.Ve("normal")||f.Ve("hovered")||f.Ve("selected")||f.Ve("outlierMarker")|| +f.Ve("hoverOutlierMarker")||f.Ve("selectOutlierMarker")),zX:l,aaa:m,X$:l||m}};Ox=function(a,b,c){if(b){var d={},e=-window.Infinity;b=function(a,b){var c=b.data.x;if(c in d){var h=a[d[c]];a[d[c]]=b}else d[c]=a.length,a.push(b),cc&&(c=~c,0b-a.qe.data[c-1].data.x&&c--)),c):-1}return a.HD.find("x",b)}; +Jba=function(a,b,c,d,e){var f=a.aa();f.reset();for(var h=[];f.advance();){var k=void 0,l=a,m=f,p=b,q=c,r=d,t=e;if($.L(l.hf,$.Zy)&&(k=m.i(l.hf.P)))a:{var u=void 0;var v=k,x=p;l=q;var w=r,y=t;for(u in v){var B=v[u];if($.L(B,$.ng)&&(B=B.cb(),B.left<=x+w&&x<=B.left+B.width&&B.top<=l+y&&l<=B.top+B.height)){u=!0;break a}}u=!1}else u=m.i(l.li.pb+"X"),v=m.i(l.li.pb),l.li.pb==l.li.qb?u=p<=u&&u<=p+r&&q<=v&&v<=q+t:(x=m.i(l.li.qb+"X"),l=m.i(l.li.qb),u=$.Um([u,v,x,l],[p,q,p+r,q,p+r,q+t,p,q+t]));!u&&(k=m.i("marker"))&& +(u=k.Kf().cb().Un(new $.K(p,q,r,t)));u&&h.push(f.ia())}return h};wz=function(a,b,c){if(!a.enabled())return a;$.A(b)?(c||a.Cd(),a.state.Ag(2,b,c?void 0:1)):$.ea(b)&&a.state.Ag(2,b,c?void 0:1);return a}; +$.yz=function(a){$.X.call(this);this.Ga=!1;this.yz=this.qK=this.G=this.P=this.N=this.b=this.f=this.va=null;this.D=0;this.j=xz;this.fa=new $.K(0,0,0,0);this.g=new $.K(0,0,0,0);this.la=this.ea=this.ra=null;this.sa=0;this.Da=this.Wa=this.Qa=!1;this.Ra=this.W=null;this.gb=!!a;$.R(this.Ca,[["height",4,9],["minHeight",4,9],["maxHeight",4,9],["orientation",196,9],["inverted",16,1],["autoHide",256,9],["fill",16,1],["selectedFill",16,1],["outlineStroke",16,1],["allowRangeChange",0,0]])}; +zz=function(a){return a.vb()?"ew-resize":"ns-resize"};$.Az=function(a,b,c){b=$.eb(Math.round(b*xz),0,xz);c=$.eb(Math.round(c*xz),0,xz);if(b>c){var d=b;b=c;c=d}if(b!=a.D||c!=a.j)a.D=b,a.j=c,a.o(16,1)};Bz=function(a){a.Ga||(a.va.sc(a.f),a.va.sc(a.b),a.Ga=!0)};Cz=function(a){a.Ga&&a.tk().u("autoHide")&&!a.sa&&!a.Qa&&(a.va.removeChild(a.f),a.va.removeChild(a.b),a.Ga=!1)}; +Dz=function(a,b,c){a=a.tk();a.u("enabled")?c?(c=a.kb().u("fill"),a=a.kb().u("stroke")):(c=a.Pa().u("fill"),a=a.Pa().u("stroke")):(c=$.Ul,a="none");b.fill(c);b.stroke(a)};Ez=function(a,b,c,d,e){return a.dispatchEvent(a.lY(c,($.n(d)?d:a.D)/xz,($.n(e)?e:a.j)/xz,b))}; +Gz=function(a,b,c){c=Fz(a,b,c);var d=a.fa;switch(a.u("orientation")){case "right":case "left":d=(d.top+d.height-c)/d.height;break;default:d=(c-d.left)/d.width}a.u("inverted")&&(d=1-d);if((c=a.u("allowRangeChange"))&&b==a.f)c=d,d=a.j/xz,b="thumb-drag";else if(c&&b==a.b)c=a.D/xz,b="thumb-drag";else{var e=(a.j-a.D)/xz/2;c=d-e;d+=e;b=!0===b?"selected-range-drag":"background-click"}c=$.eb(Math.round(c*xz),0,xz);d=$.eb(Math.round(d*xz),0,xz);c==d&&(d+=dd&&(e=a.f,a.f=a.b,a.b=e,e=a.ra,a.ra=a.ea, +a.ea=e,e=c,c=d,d=e);c==a.D&&d==a.j||!Ez(a,b,"scrollerchange",c,d)||(a.D=c,a.j=d,a.o(16,1))};Fz=function(a,b,c){var d=a.fa,e=a.vb();a=$.da(b)||!a.u("allowRangeChange")?(a.j-a.D)/xz*(e?d.width:d.height)/2:0;return e?$.eb(c,d.left+a,d.left+d.width-a):$.eb(c,d.top+a,d.top+d.height-a)};Hz=function(a,b){var c=(c=a.u("allowRangeChange"))&&b==a.f?a.D:c&&b==a.b?a.j:(a.D+a.j)/2;c/=xz;a.u("inverted")&&(c=1-c);var d=a.fa;return a.vb()?d.left+d.width*c:d.top+d.height*(1-c)}; +Iz=function(a,b,c){$.eg.call(this,b.ca());this.b=a;this.g=c?b:null;this.ri=void 0;this.$q=(0,$.va)(function(){this.ri=void 0;Gz(this.b,this.g||!0,this.j)},this);$.fg(this);this.oa("end",this.r4)};Jz=function(a){$.T.call(this);this.b=a;$.R(this.Ca,[["enabled",80,1],["autoHide",16,1]]);a={};$.R(a,[["fill",16,1],["stroke",16,1]]);this.ja=new $.qw(this,a,$.Zl);this.Ha=new $.qw(this,a,$.Zl)};Kz=function(){$.yz.call(this)};$.Lz=function(){$.yz.call(this,!0);this.Ic="after-axes"}; +$.Mz=function(a,b){this.j=b;this.La=a;this.f=0;this.b=1;this.g=!0;this.xl=null};Nz=function(a){a.La.sW();if(a.xl){var b;(b=a.xl.scale)||(b=a.La,b=a.j?b.Sa():b.Ya());if(a.xl.count&&$.L(b,$.As))b=a.xl.count/b.values().length,a.xl.y9?a.jx(1-b,1):a.jx(0,b);else if($.n(a.xl.start)&&$.n(a.xl.end)&&b){var c=es(b,b.transform(a.xl.start,0)),d=es(b,b.transform(a.xl.end,1));c>d&&(c=es(b,b.transform(a.xl.end,0)),d=es(b,b.transform(a.xl.start,1)));a.jx(c,d)}else a.xl=null}}; +$.Oz=function(a){$.By.call(this,$.n(a)?a:!0);this.ra=new $.Mz(this,!0);$.R(this.Ca,[["zAngle",4,9],["zAspect",4,9],["zDistribution",131076,9],["zPadding",4,9]])};$.Pz=function(a,b){var c="before-axes"==a.position();a.padding(0);a.ka(b);var d=a.vb(),e=window.NaN;c?e=d?b.height-a.od().height:b.width-a.od().width:b=a.od();return{rV:b,LZ:e}}; +$.Qz=function(a,b,c,d){if("before-axes"==c.position())switch(c.u("orientation")){case "top":c.padding().top(b[0]+(a.la||0));c.padding().bottom(0);b[0]+=d;break;case "bottom":c.padding().top(0);c.padding().bottom(b[2]+(a.N||0));b[2]+=d;break;case "left":c.padding().left(b[3]+(a.W||0));c.padding().right(0);b[3]+=d;break;case "right":c.padding().left(0),c.padding().right(b[1]+(a.ea||0)),b[1]+=d}c.vb()?(c.padding().left(b[3]),c.padding().right(b[1])):(c.padding().top(b[0]),c.padding().bottom(b[2]));return b}; +$.Rz=function(a,b){this.f={};this.b=[];this.Ta=0;var c=arguments.length;if(1=a.f||e>=a.f&&u<=a.f;v?(v=pA(a,d,e,m,p,t,u),l=v.jL,a.g("c",l[2],l[3],l[4],l[5],"bc",l[4],a.j), +qA(a,v),nA(a),a.g("bs",l[4],a.j,l[4],l[5],"c",l[6],l[7],l[8],l[9],"c",q,r,f,h),k.push(l[0],l[1],l[2],l[3],l[4],l[5]),k.push(l[4],l[5],l[6],l[7],l[8],l[9]),k.push(t,u,q,r,f,h)):(v=pA(a,t,u,q,r,f,h),l=v.jL,a.g("c",m,p,t,u,"c",l[2],l[3],l[4],l[5],"bc",l[4],a.j),qA(a,v),nA(a),a.g("bs",l[4],a.j,l[4],l[5],"c",l[6],l[7],l[8],l[9]),k.push(d,e,m,p,t,u),k.push(l[0],l[1],l[2],l[3],l[4],l[5]),k.push(l[4],l[5],l[6],l[7],l[8],l[9]))}else a.g("c",m,p,t,u,"c",q,r,f,h),k.push(d,e,m,p,t,u,t,u,q,r,f,h);a.ea=(b-f)*a.Qa; +a.la[0]=a.D[0]*a.ea;a.la[1]=a.D[1]*a.ea;d=k;a.ra=a.G;a.sa=a.N;a.G=b;a.N=c;break;case 2:if(a.G==b&&a.N==c)break;f=a.ra;h=a.sa;d=a.G;k=a.N;oA(a,f,h,d,k,b,c);e=[];p=(d-f)*a.Qa;m=d-a.D[0]*p;p=k-a.D[1]*p;a.W?(f=pA(a,f,h,m,p,d,k),h=f.jL,a.g("bs",h[0],a.j,h[0],h[1],"c",h[2],h[3],h[4],h[5],"bc",h[4],a.j),qA(a,f),nA(a),a.g("bs",h[4],a.j,h[4],h[5],"c",h[6],h[7],h[8],h[9]),e.push(h[0],h[1],h[2],h[3],h[4],h[5]),e.push(h[4],h[5],h[6],h[7],h[8],h[9])):(a.g("bs",f,a.j,f,h,"c",m,p,d,k),e.push(f,h,m,p,d,k));a.ea= +(b-d)*a.Qa;a.la[0]=a.D[0]*a.ea;a.la[1]=a.D[1]*a.ea;d=e;a.ra=a.G;a.sa=a.N;a.G=b;a.N=c;a.ec=3;break;case 1:if(a.ra==b&&a.sa==c)break;a.G=b;a.N=c;a.ec=2;break;case 0:a.ra=b,a.sa=c,a.ec=1}return d}; +sA=function(a){var b=null;switch(a.ec){case 3:var c=a.ra,d=a.sa,e=a.G,f=a.N;b=[];var h=c+a.la[0];var k=d+a.la[1];a.W?(c=pA(a,c,d,h,k,e,f),d=c.jL,a.g("c",d[2],d[3],d[4],d[5],"bc",d[4],a.j),qA(a,c),nA(a),a.g("bs",d[4],a.j,d[4],d[5],"c",d[6],d[7],d[8],d[9],"bc",d[8],a.j),b.push(d[0],d[1],d[2],d[3],d[4],d[5]),b.push(d[4],d[5],d[6],d[7],d[8],d[9])):(a.g("c",h,k,e,f,"bc",e,a.j),b.push(c,d,h,k,e,f));if(a.Sg.length){for(c=0;ca.Qa?-1:1,a.D[1]=0):uA(a.D,a.Wa[0],a.Wa[1],a.gb[0],a.gb[1])}; +pA=function(a,b,c,d,e,f,h){var k=0,l=0,m=0,p=0,q=0,r=0,t={};if($.A(a.f)){var u=[];var v=!1;for(var x=a.f.length-1;0=ma&&(ma=fn(fn(J,w,ma),fn(w,y,ma),ma),B.x==E.x?C.y<=ma.y&&ma.y<=O.y&&x.push(ma):B.y==E.y?C.x<=ma.x&&ma.x<=O.x&&x.push(ma):ma.x>=C.x&&ma.y>=C.y&&ma.x<=O.x&&ma.y<=O.y&&x.push(ma));E=(J=x[0])?Wm(b,c,d,e,f,h,J.x,J.y):.5}C=1-E;w=b*C+d*E;y=c*C+e*E;B=d*C+f*E;E=e*C+h*E;J?(d=J.x,e=J.y):e=d=window.NaN;t.jL=[b,c,w,y,d,e,B,E,f,h];$.A(a.f)&&(C=1-v,w=k*C+m*v,y=l*C+p*v,J?(d=J.x,e=J.y):e=d=window.NaN,u.push(d,e,m*C+q*v,p*C+r*v,q,r),t.V7=u,t.Sg||(t.Sg=[]),t.Sg.push(k,l,w,y,d,e));return t}; +qA=function(a,b){var c=b.V7,d=b.Sg;if(c)for(var e=c.length-1;0>>0);qa=0;$.yn=Date.now||function(){return+new Date};var Pj,ck=null;var ye;var pv;$.Ca=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if($.z(a))return $.z(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;c>>0);var nc,oc,pc,qc,rc,sc,mc,vc,uc,yc;$.Ac=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};nc=/&/g;oc=//g;qc=/"/g;rc=/'/g;sc=/\x00/g;mc=/[\x00&<>"']/;vc={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"};uc={"'":"\\'"};yc=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Gc;a:{var ZA=$.fa.navigator;if(ZA){var $A=ZA.userAgent;if($A){Gc=$A;break a}}Gc=""};var Uc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");$c[" "]=$.ia;var zd,uba,Qba,Rba,Sba,Tba;$.vf=Hc("Opera");$.od=Hc("Trident")||Hc("MSIE");$.lp=Hc("Edge");$.Pba=$.lp||$.od;$.nd=Hc("Gecko")&&!(-1!=Gc.toLowerCase().indexOf("webkit")&&!Hc("Edge"))&&!(Hc("Trident")||Hc("MSIE"))&&!Hc("Edge");$.yd=-1!=Gc.toLowerCase().indexOf("webkit")&&!Hc("Edge");zd=Hc("Macintosh");$.JA=Hc("Windows");uba=Hc("Linux")||Hc("CrOS");Qba=Hc("Android");Rba=Yc();Sba=Hc("iPad");Tba=Hc("iPod");$.Uba=Zc(); +a:{var aB="",bB=function(){var a=Gc;if($.nd)return/rv:([^\);]+)(\)|;)/.exec(a);if($.lp)return/Edge\/([\d\.]+)/.exec(a);if($.od)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if($.yd)return/WebKit\/(\S+)/.exec(a);if($.vf)return/(?:Version)[ \/]?(\S+)/.exec(a)}();bB&&(aB=bB?bB[1]:"");if($.od){var cB=dd();if(null!=cB&&cB>(0,window.parseFloat)(aB)){$.fd=String(cB);break a}}$.fd=aB}var bd={},dB;var eB=$.fa.document;dB=eB&&$.od?dd()||("CSS1Compat"==eB.compatMode?(0,window.parseInt)($.fd,10):5):void 0; +var hd=dB;var qd={0:"Can't find an error message that corresponds to the specified error code",1:"Requested stage type is not supported",2:"Container should be defined to render stage",3:"Stage should have a DOM element",4:"Unable to set the parent component",5:"Trying to perform an operation with the disposed element",6:"Synchronous rendering didn't clean up all dirty states",7:"Can't add an element constructed by another Stage",8:"Wrong arguments passed to swapChildren",9:"Path must start with moveTo command", +10:"Method must be implemented",11:"Missing required parameter",12:"Parameter type mismatch",13:"Required parameter is null or undefined",14:"Invalid number of parameters",15:"Sorry, this feature in not supported in VML oriented browsers"};var Ed=!$.od||$.id(9),be=!$.od||$.id(9),Vba=$.od&&!$.gd("9"),Yd=function(){if(!$.fa.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});$.fa.addEventListener("test",$.ia,b);$.fa.removeEventListener("test",$.ia,b);return a}();var sd=0,td={};$.ud.prototype.vd=!1;$.ud.prototype.ld=function(){if(!this.vd&&(this.vd=!0,this.U(),0!=sd)){var a=$.ra(this);if(0!=sd&&this.Bq&&0=a.keyCode)a.keyCode=-1}catch(b){}};$.Dd.prototype.GW=ba(0);var Hd="closure_listenable_"+(1E6*Math.random()|0),Kd=0;Nd.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.b[f];a||(a=this.b[f]=[],this.f++);var h=Pd(a,b,d,e);-1>>0);$.G("acgraph.events.listen",$.Rd);$.G("acgraph.events.listenOnce",Qd);$.G("acgraph.events.unlisten",$.ce);$.G("acgraph.events.unlistenByKey",de);$.G("acgraph.events.removeAll",$.ee);var Me,We,af;Me=!$.od||$.id(9);We=!$.nd&&!$.od||$.od&&$.id(9)||$.nd&&$.gd("1.9.1");$.fB=$.od&&!$.gd("9");af=$.od||$.vf||$.yd;$.le.prototype.Jw=!0;$.le.prototype.Is=function(){return this.b};$.le.prototype.toString=function(){return"Const{"+this.b+"}"};$.ke={};$.me("");$.oe.prototype.Jw=!0;$.oe.prototype.Is=function(){return this.b};$.oe.prototype.iQ=!0;$.oe.prototype.uw=ba(2);$.ne={};$.pe("about:blank");$.re.prototype.Jw=!0;$.qe={};$.re.prototype.Is=function(){return this.b};$.Wba=$.se("");$.gB=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g");$.Xba=RegExp("\\b(hsl|hsla|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?)\\([-0-9a-z.%, ]+\\)","g");$.ue.prototype.iQ=!0;$.ue.prototype.uw=ba(1);$.ue.prototype.Jw=!0;$.ue.prototype.Is=function(){return this.b};$.te={};$.ve("",0);$.ve("",0);$.ve("
",0);var Ce={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},gf={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},hf={IMG:" ",BR:"\n"};$.g=we.prototype;$.g.Fa=function(a){return $.Ae(this.b,a)};$.g.getElementsByTagName=function(a,b){return(b||this.b).getElementsByTagName(String(a))}; +$.g.nc=function(a,b,c){return Ke(this.b,arguments)};$.g.createElement=function(a){return this.b.createElement(String(a))};$.g.appendChild=$.Re;$.g.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; +$.g.Qj=$.Te;$.g.kaa=$.Ue;$.g.ml=$.Ye;$.g.VW=$.Ze;$.g.YE=$.$e;$.H($.jf,$.ud);var hB=[];$.g=$.jf.prototype;$.g.oa=function(a,b,c,d){$.A(b)||(b&&(hB[0]=b.toString()),b=hB);for(var e=0;ethis.P)if(this.dispatchEvent(new hg("start",this,a.clientX,a.clientY,a)))this.uu=!0;else{this.vd||this.pw(a);return}}c=gg(this,b,c);b=c.x;c=c.y;this.uu&&this.dispatchEvent(new hg("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(kg(this,a,b,c),a.preventDefault())}}; +$.g.jca=function(a){var b=gg(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;kg(this,a,b.x,b.y)};$.g.uB=function(a){var b=this.f,c=(0,window.isNaN)(b.left)?null:b.left;b=(0,window.isNaN)(b.width)?0:b.width;return Math.min(null!=c?c+b:window.Infinity,Math.max(null!=c?c:-window.Infinity,a))};$.g.Rw=function(a){var b=this.f,c=(0,window.isNaN)(b.top)?null:b.top;b=(0,window.isNaN)(b.height)?0:b.height;return Math.min(null!=c?c+b:window.Infinity,Math.max(null!=c?c:-window.Infinity,a))}; +$.g.Oq=function(){this.deltaX=this.target.offsetLeft;this.deltaY=this.target.offsetTop};$.g.ms=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};$.H(hg,$.xd);$.H(lg,$.eg);$.g=lg.prototype;$.g.bda=function(){return this.g.dispatchEvent("earlycancel")};$.g.VK=function(a){return this.g.dispatchEvent(new hg(a.type,this,a.clientX,a.clientY,a.f,a.left,a.top,a.P))};$.g.mS=function(a){this.f=a||new $.K(window.NaN,window.NaN,window.NaN,window.NaN)};$.g.Oq=function(){this.deltaX=this.g.DW();this.deltaY=this.g.EW()}; +$.g.uB=function(){this.b[0]=this.deltaX;this.b[1]=this.deltaY;if(!(0,window.isNaN)(this.f.left)||!(0,window.isNaN)(this.f.top)){var a=this.g.parent().Lf();a&&sg(this.g.parent()).transform(this.b,0,this.b,0,1);var b=this.f,c=(0,window.isNaN)(b.left)?null:b.left,d=(0,window.isNaN)(b.width)?0:b.width,e=(0,window.isNaN)(b.top)?null:b.top;b=(0,window.isNaN)(b.height)?0:b.height;d-=this.g.fe();b-=this.g.ee();b=null!=e?e+b:window.Infinity;e=null!=e?e:-window.Infinity;this.b[0]=Math.min(null!=c?c+d:window.Infinity, +Math.max(null!=c?c:-window.Infinity,this.b[0]));this.b[1]=Math.min(b,Math.max(e,this.b[1]));a&&a.transform(this.b,0,this.b,0,1)}return this.b[0]};$.g.Rw=function(){return this.b[1]};$.g.ms=function(a,b){var c=sg(this.g.parent());if(c){var d=[a,b];c.transform(d,0,d,0,1);a=d[0];b=d[1]}this.g.setPosition(a,b)};$.H($.ng,$.mf);var mg=4294967295;$.g=$.ng.prototype;$.g.SD=!1;$.g.AA=!1;$.g.Fv=null;$.g.Gv=null;$.g.Ut=null;$.g.Vt=null;$.g.Ku=!1;$.g.yA=null;$.g.EB=null;$.g.wd=null;$.g.Y=null;$.g.nz=null;$.g.Ci=!0;$.g.Hh=null;$.g.lI=!1;$.g.nd=null;$.g.eE=null;$.g.fT=0;$.g.Wj=506631;$.g.zA=0;$.g.id=function(a){if($.n(a))return a=a||"",this.yd!=a&&(this.yd=a,this.Db(2048)),this;$.n(this.yd)||this.id(dc($.cc.rd(),this));return this.yd};$.g.ya=function(){var a=this.parent();return a?a.ya():null};$.g.ca=function(){return this.wd}; +$.g.parent=function(a){if($.n(a)){if(a){if(a!=this.Y){var b=this.ya();b=b&&b!=a.ya();a.sc(this);b&&this.PK()}}else this.remove();return this}return this.Y};$.g.PK=function(){var a=this.clip();a&&a.id(null);this.Db(536)};$.g.zJ=function(){return!!this.Y};$.g.remove=function(){this.Y&&this.Y.removeChild(this);return this};$.g.title=function(a){return $.n(a)?(this.Gv!=a&&(this.Gv=a,this.Db(65536)),this):this.Gv};$.g.AO=function(a){return $.n(a)?(this.Vt!=a&&(this.Vt=a,this.Db(131072)),this):this.Vt}; +$.g.Vd=function(a,b){return $.n(b)?(this.kA[a]!==b&&(this.kA[a]=b,this.Db(262144)),this):a in this.kA?this.kA[a]:$.qg().getAttribute(this.wd,a)};$.g.cursor=function(a){return $.n(a)?(this.yA=a,this.ED(),this):this.yA};$.g.ED=function(){this.Db(4096)};$.g.hq=function(){return!!this.zA};$.g.Pe=function(a){return!!(this.zA&a)};$.g.Db=function(a){if(a&=this.Wj)this.zA|=a,this.Y&&this.Y.Db(64),a=this.ya(),!a||a.Ge()||a.MJ()||this.MJ()||this.Hd()}; +$.g.Rj=function(a){this.Y&&this.Y==a||(this.nz?this.nz==a&&(this.nz=null):this.nz=this.Y,this.Y=a,this.ib(a));return this};$.g.Lt=$.ia;$.g.vq=function(){this.qQ=this.eE=null;this.Rd();this.Db(4);rg(this)};$.g.Yw=function(){this.eE=null;this.Rd();$.qg().EF()&&this.Db(256);rg(this)};$.g.Lf=function(){if(!this.eE){var a=this.Y?this.Y.Lf():null;this.eE=zb(a,this.nd)}return this.eE};$.g.rotate=function(a,b,c){this.Lt();a=$.Lb($.I(a),b||0,c||0);this.nd?$.Ib(this.nd,a):this.nd=a;this.vq();return this}; +$.g.kt=function(a,b){var c=Mb(this.cb(),b||"center");return this.rotate(a,c[0],c[1])};$.g.Cz=function(a,b,c){return this.rotate(a-this.ZA(),b,c)};$.g.mL=function(a,b){return this.kt(a-this.ZA(),b)};$.g.translate=function(a,b){this.Lt();this.nd?this.nd.translate(a,b):this.nd=(new $.Gb).setTransform(1,0,0,1,a,b);this.vq();return this};$.g.setPosition=function(a,b){var c=[a,b,this.gj(),this.Fy()];this.nd&&$.Jb(this.nd).transform(c,0,c,0,2);return this.translate(c[0]-c[2],c[1]-c[3])}; +$.g.Bda=function(a,b){this.Lt();if(this.nd){var c=this.nd.Kd,d=this.nd.Ld;if(a==c&&b==d)return this;var e=this.nd;e.Kd+=a-c;e.Ld+=b-d}else this.nd=(new $.Gb).setTransform(1,0,0,1,a,b);this.vq();return this};$.g.scale=function(a,b,c,d){this.Lt();this.nd||(this.nd=new $.Gb);var e=this.nd;e.Jd*=a;e.Re*=a;e.Kd*=a;e.Je*=b;e.Ae*=b;e.Ld*=b;e=this.nd;e.Kd+=(c||0)*(1-a);e.Ld+=(d||0)*(1-b);this.vq();return this};$.g.fL=function(a,b,c){c=Mb(this.cb(),c||"center");return this.scale(a,b,c[0],c[1])}; +$.g.$C=function(a,b,c,d,e,f){this.Lt();this.nd?$.yb(this.nd,new $.Gb(a,b,c,d,e,f)):this.nd=new $.Gb(a,b,c,d,e,f);this.vq();return this};$.g.mc=function(a,b,c,d,e,f){this.Lt();this.nd?this.nd.setTransform(a,b,c,d,e,f):this.nd=new $.Gb(a,b,c,d,e,f);this.vq();return this};$.g.ZA=function(){return $.Db(this.nd)};$.g.yE=function(){return this.nd?[this.nd.Jd,this.nd.Je,this.nd.Re,this.nd.Ae,this.nd.Kd,this.nd.Ld]:[1,0,0,1,0,0]}; +$.g.nc=function(a){var b=this.ya(),c;if(c=b)c=lB,c=c==lB||2==c||3==c?0f;p+=m)switch((Math.floor(p/90)+4)%4){case 0:h.push(a+c);break;case 1:k.push(b+d);break;case 2:h.push(a-c);break;case 3:k.push(b-d)}l.left=Math.min.apply(null,h);l.width=Math.max.apply(null,h)-l.left;l.top=Math.min.apply(null,k);l.height=Math.max.apply(null,k)-l.top;$.ub(this.rect,l)};qB=sB; +$.wg.prototype.Ng=function(){var a=0;if(0==this.f.length)return a;var b=[];this.ZO(function(c,d){if(1!=c){var e=$.Na(b,b.length-2);if(4==c){var f=6;d=$.wb(e[0]-$.ib(d[2],d[0]),e[1]-$.jb(d[2],d[1]),d[0],d[1],d[2],d[3])}else 2==c?f=2:3==c&&(f=6);for(var h=0,k=d.length-(f-1);h=q;q++){m=q/100;var u={x:0,y:0};if(0===m)p.push(t[0]);else if(1=== +m)p.push(t[r]);else{var v=t,x=1-m;if(1===r)m={x:x*v[0].x+m*v[1].x,y:x*v[0].y+m*v[1].y},p.push(m);else if(4>r){var w=x*x,y=m*m,B=0;if(2===r){v=[v[0],v[1],v[2],u];var E=w;var C=x*m*2;var O=y}else 3===r&&(E=w*x,C=w*m*3,O=x*y*3,B=m*y);m={x:E*v[0].x+C*v[1].x+O*v[2].x+B*v[3].x,y:E*v[0].y+C*v[1].y+O*v[2].y+B*v[3].y};p.push(m)}else{for(v=JSON.parse(JSON.stringify(t));1d.length?d=c=f=e=(0,window.parseFloat)(d[0]):(e=(0,window.parseFloat)(d[0]),f=(0,window.parseFloat)(d[1]),c=(0,window.parseFloat)(d[2]),d=(0,window.parseFloat)(d[3]));this.D[0]=e?e:0;this.j[0]=e?a:void 0;this.D[1]=f?f:0;this.j[1]=f?a:void 0;this.D[2]=c?c:0;this.j[2]=c?a:void 0;this.D[3]=d?d:0;this.j[3]=d?a:void 0};$.g.round=function(a,b,c,d){$.Fa(arguments,0,0,"round");this.iS.apply(this,arguments);Kg(this);return this}; +$.g.lda=function(a,b,c,d){$.Fa(arguments,0,0,"round-inner");this.iS.apply(this,arguments);Kg(this);return this};$.g.X7=function(a,b,c,d){$.Fa(arguments,0,0,"cut");this.iS.apply(this,arguments);Kg(this);return this};$.g.Id=function(a){Lg.B.Id.call(this,a);this.tp(a.x).up(a.y).sp(a.width).rp(a.height);a.cornerTypes&&(this.j=Yb(a.cornerTypes,4),a=Yb(a.cornerSizes,4),(0,$.Pe)(a,function(a,c,d){d[c]=(0,window.parseFloat)(a)}),this.D=a,Kg(this))}; +$.g.F=function(){var a=Lg.B.F.call(this);a.type="rect";a.x=this.b.left;a.y=this.b.top;a.width=this.b.width;a.height=this.b.height;a.cornerTypes=this.j.join(" ");a.cornerSizes=this.D.join(" ");return a};$.g.U=function(){this.b=this.j=this.D=null;this.Rd();Lg.B.U.call(this)};var uB=Lg.prototype;$.G("acgraph.vector.Rect",Lg);uB.setX=uB.tp;uB.setY=uB.up;uB.setWidth=uB.sp;uB.setHeight=uB.rp;uB.setBounds=uB.qf;uB.cut=uB.X7;uB.round=uB.round;uB.roundInner=uB.lda;$.H($.Qg,$.ud);var vB={rect:Lg,circle:vg,ellipse:ug,path:$.Jg};$.g=$.Qg.prototype; +$.g.shape=function(a,b,c,d){if(arguments.length){if($.L(a,$.tg))if(this.b){var e=!1;for(h in vB){var f=vB[h];if($.L(this.b,f)&&$.L(a,f)){e=!0;break}}e?this.b.Id(a.F()):(this.b.parent(null),this.b=a,this.b.parent(this))}else this.b=a,this.b.parent(this);else{if($.L(a,$.K)){e=a.left;var h=a.top;f=a.width;var k=a.height}else $.A(a)?(e=null!=a[0]?a[0]:0,h=null!=a[1]?a[1]:0,f=null!=a[2]?a[2]:0,k=null!=a[3]?a[3]:0):$.D(a)?(e=null!=a.left?a.left:0,h=null!=a.top?a.top:0,f=null!=a.width?a.width:0,k=null!= +a.height?a.height:0):(e=null!=a?a:0,h=null!=b?b:0,f=null!=c?c:0,k=null!=d?d:0);this.b?$.L(this.b,Lg)?this.b.tp(e).up(h).sp(f).rp(k):(this.b.parent(null),this.b=$.Sj(e,h,f,k),this.b.parent(this)):(this.b=$.Sj(e,h,f,k),this.b.parent(this))}return this}return this.b};$.g.hq=function(){return this.g};$.g.id=function(a){return $.n(a)?(this.yd=a,this):this.yd};$.g.Hd=function(){this.g=!1;if(this.yd){$.qg();var a=this.shape();if(a.ca())this.shape().Hd();else{var b=Ij(this.ya().Ao,this);a.Hd();a=a.ca();b.appendChild(a)}}}; +$.g.F=function(){return this.b.F()};$.g.Id=function(a){var b=vB[a.type];b&&(b=new b,b.Id(a),this.shape(b))};$.g.sc=function(a){a.remove();a.Rj(this);Sg(this);pg(a,!0);return this};$.g.removeChild=function(a){a.Rj(null);var b=a.ca();b&&$.Ve(b);Sg(this);pg(a,!1);return a};$.g.Lf=function(){return null};$.g.KF=function(){};$.g.ya=function(){return $.Rg(this)};$.g.Db=function(){Sg(this)};$.g.ld=function(){$.Qg.B.ld.call(this)}; +$.g.U=function(){this.f&&$.Ia(this.f.ew,this);$.qg().WV(this);this.b.ld();delete this.f;delete this.yd;delete this.elements;delete this.g;delete this.b;$.Qg.B.U.call(this)};var wB=$.Qg.prototype;wB.shape=wB.shape;wB.dispose=wB.ld;$.H($.Tg,$.ng);$.g=$.Tg.prototype;$.g.Ml=function(){return"layer"};$.g.Wj=$.ng.prototype.Wj|224;$.g.PK=function(){for(var a=0;aa||a>=this.hc()||0>b||b>=this.hc())throw $.rd(8);if(a!=b){var c=this.children[a];this.children[a]=this.children[b];this.children[b]=c;this.Db(128)}return this};$.g.yJ=function(a){return!!a&&$.Da(this.children,a)};$.g.hc=function(){return this.children.length};$.g.ci=function(a,b){$.n(b)||(b=this);(0,$.Pe)(this.children,a,b);return this};$.g.xe=function(){var a=$.Uj();a.parent(this);return a};$.g.aM=function(){var a=new $.ii(void 0);a.parent(this);return a}; +$.g.text=function(a,b,c,d){a=$.Zj(a,b);d&&a.style(d);c&&a.text(c);a.parent(this);return a};$.g.DJ=function(a,b,c,d){a=$.Zj(a,b);d&&a.style(d);c&&a.htmlText(c);a.parent(this);return a};$.g.rect=function(a,b,c,d){a=$.Sj(a,b,c,d);a.parent(this);return a};$.g.ij=function(a,b,c,d,e){a=Yj(a,b,c,d,e);a.parent(this);return a};$.g.aL=function(a,b){$.Ga(arguments,this.path(),0);return Ji.apply(this,arguments).parent(this)};$.g.$K=function(a,b){$.Ga(arguments,this.path(),0);return Ki.apply(this,arguments).parent(this)}; +$.g.ZL=function(a,b){$.Ga(arguments,this.path(),0);return Ii.apply(this,arguments).parent(this)};$.g.Ym=function(a,b,c){a=$.Tj(a,b,c);a.parent(this);return a};$.g.ellipse=function(a,b,c,d){a=$.Vj(a,b,c,d);a.parent(this);return a};$.g.path=function(){return $.Xj().parent(this)};$.g.BL=function(a,b,c,d,e,f,h){return li(this.path(),a,b,c,d,e,f,h).parent(this)};$.g.DL=function(a,b,c){return mi(this.path(),a,b,c).parent(this)};$.g.EL=function(a,b,c){return ni(this.path(),a,b,c).parent(this)}; +$.g.FL=function(a,b,c){return oi(this.path(),a,b,c).parent(this)};$.g.GL=function(a,b,c){return pi(this.path(),a,b,c).parent(this)};$.g.CL=function(a,b,c){return qi(this.path(),a,b,c).parent(this)};$.g.YL=function(a,b,c){return ri(this.path(),a,b,c).parent(this)};$.g.VL=function(a,b,c){return si(this.path(),a,b,c).parent(this)};$.g.XL=function(a,b,c){return ui(this.path(),a,b,c).parent(this)};$.g.WL=function(a,b,c){return vi(this.path(),a,b,c).parent(this)}; +$.g.kI=function(a,b,c){return wi(this.path(),a,b,c).parent(this)};$.g.TH=function(a,b,c){return Bi(this.path(),a,b,c).parent(this)};$.g.jI=function(a,b,c){return Ci(this.path(),a,b,c).parent(this)};$.g.vJ=function(a,b,c){return Di(this.path(),a,b,c).parent(this)};$.g.fM=function(a,b,c){return Ei(this.path(),a,b,c).parent(this)};$.g.vf=function(a,b,c,d,e){return Fi(this.path(),a,b,c,d,e).parent(this)};$.g.pI=function(a,b,c,d,e,f){return $.Gi(this.path(),a,b,c,d,e,f).parent(this)};$.g.fs=function(){return $.qg().AD()}; +$.g.Vi=function(){this.Pe(32)&&this.pn();var a=this.ya();a=a.FC(Math.floor(Math.max(500-a.Pq,0)/3));this.Pe(64)&&Vg(this);var b=this.ya();b.Pq-=a;if(this.Pe(128)&&(a=this.ya().FC(this.children.length+this.Qp.length+1),b=Wg(this,a),bd;d++){c=!1;for(var e=0;4>e;e++){c=!c;for(var f=0;4>f;f++)c&&ch(this,a,a,e*a+d*this.size/2,f*a+this.size/2),c=!c}}},"solid-diamond":function(){fh(this,[[this.size/2,0,0,this.size/2,this.size/2,this.size,this.size,this.size/2,this.size/2,0]],!0,!0)},"dashed-forward-diagonal":function(){gh(this,[0,0,this.size/2,this.size/2,this.Te])},"dashed-backward-diagonal":function(){gh(this,[this.size/2,0,0,this.size/ +2,this.Te])},"dashed-horizontal":function(){gh(this,[0,0,this.size/2,0,this.Te,this.size/2,this.size/2,this.size,this.size/2,this.Te])},"dashed-vertical":function(){gh(this,[0,0,0,this.size/2,this.Te,this.size/2,this.size/2,this.size/2,this.size,this.Te])},divot:function(){var a=.1*this.size,c=this.size*(.8-.2)/2;fh(this,[[a+c,a,a,a+c/2,a+c,a+c],[this.size-a-c,this.size-a-c,this.size-a,this.size-a-c/2,this.size-a-c,this.size-a]])},"zig-zag":function(){fh(this,[[0,0,this.size/2,this.size/2,this.size, +0],[0,this.size/2,this.size/2,this.size,this.size,this.size/2]])},weave:function(){fh(this,[[0,0,this.size/2,this.size/2,this.size,0],[0,this.size/2,this.size/2,this.size,this.size,this.size/2],[this.size/2,this.size/2,3*this.size/4,3*this.size/4],[this.size,this.size/2,3*this.size/4,this.size/4]])}};a["percent-05"]=$.wa(bh,8,8,[0,0,4,4]);a["percent-10"]=$.wa(bh,8,4,[0,0,4,2]);a["percent-20"]=$.wa(bh,4,4,[0,0,2,2]);a["percent-25"]=$.wa(bh,4,2,[0,0,2,1]);a["percent-30"]=$.wa(bh,4,4,[0,0,2,0,3,1,0, +2,2,2,1,3]);a["percent-40"]=$.wa(bh,4,8,[0,0,2,0,3,1,0,2,2,2,1,3,3,3,0,4,2,4,1,5,3,5,0,6,2,6,1,7,3,7]);a["percent-50"]=$.wa(bh,2,2,[0,0,1,1]);a["percent-60"]=$.wa(bh,4,4,[0,0,2,0,0,1,1,1,3,1,0,2,2,2,1,3,2,3,3,3]);a["percent-70"]=$.wa(bh,4,4,[0,0,2,0,3,0,0,1,1,1,2,1,0,2,2,2,3,2,0,3,1,3,2,3]);a["percent-75"]=$.wa(dh,4,4,[0,0,2,2]);a["percent-80"]=$.wa(dh,8,4,[0,0,4,2]);a["percent-90"]=$.wa(dh,8,8,[7,7,4,3]);return a}();$g.prototype.Ml=function(){return"hatch-fill"}; +$g.prototype.U=function(){if(this.ya()){var a=this.ya().Ao,b=[this.type,this.color,this.Te,this.size].join();$.Nc(a.j,b)&&$.Rc(a.j,b);a=$.Ae(window.document,this.id());$.Ve(a)}$g.B.U.call(this)};var zB=$g.prototype;zB.dispose=zB.ld;$.H(nh,$.ng);$.mh="meet";$.kh="none";$.g=nh.prototype;$.g.Wj=$.ng.prototype.Wj|32;$.g.Ml=function(){return"image"};$.g.OA=function(a){return null!=a?(a!=this.b&&(this.b=a,this.Db(32)),this):this.b};$.g.align=function(a){return null!=a?(a!=this.g&&(this.g=a,this.Db(32)),this):this.g};$.g.x=function(a){return null!=a?(a!=this.xc.left&&(this.xc.left=a,this.Db(32),this.Rd()),this):this.xc.left};$.g.y=function(a){return null!=a?(a!=this.xc.top&&(this.xc.top=a,this.Db(32),this.Rd()),this):this.xc.top}; +$.g.width=function(a){return null!=a?(a!=this.xc.width&&(this.xc.width=a,this.Db(32),this.Rd()),this):this.xc.width};$.g.height=function(a){return null!=a?(a!=this.xc.height&&(this.xc.height=a,this.Db(32),this.Rd()),this):this.xc.height};$.g.src=function(a){return $.n(a)?(a!=this.j&&(this.j=a,this.Db(32)),this):this.j};$.g.opacity=function(a){return $.n(a)?(a!=this.f&&(this.f=a,this.Db(32)),this):this.f};$.g.Ji=function(){return this.xc.clone()};$.g.fs=function(){return $.qg().AV()}; +$.g.Vi=function(){this.Pe(32)&&($.qg().EF()&&this.Db(4),this.pn());nh.B.Vi.call(this)};$.g.mv=function(){$.qg().VZ(this);$.og(this,4);$.og(this,256)};$.g.pn=function(){$.qg().UZ(this);$.og(this,32)};$.g.Id=function(a){var b=a.bounds;this.x(b.left).y(b.top).width(b.width).height(b.height).src(a.src).align(a.align).OA(a.fittingMode);nh.B.Id.call(this,a)};$.g.F=function(){var a=nh.B.F.call(this);a.type="image";a.bounds=this.Ji();a.src=this.src();a.align=this.align();a.fittingMode=this.OA();return a}; +$.g.U=function(){this.xc=null;this.Rd();nh.B.U.call(this)};$.G("acgraph.vector.Image",nh);var AB=nh.prototype;AB.fittingMode=AB.OA;AB.align=AB.align;AB.x=AB.x;AB.y=AB.y;AB.width=AB.width;AB.height=AB.height;AB.src=AB.src;$.H(oh,$.mf);var qh=[$.od&&!$.gd("11")?"readystatechange":"load","abort","error"];oh.prototype.start=function(){var a=this.f;(0,$.Pe)($.Mc(a),function(b){var c=a[b];if(c&&(delete a[b],!this.vd)){var d;this.Y?d=$.ze(this.Y).nc("IMG"):d=new window.Image;c.tV&&(d.crossOrigin=c.tV);this.dn.oa(d,qh,this.g);this.b[b]=d;d.id=b;d.src=c.src}},this)}; +oh.prototype.g=function(a){var b=a.b;if(b){if("readystatechange"==a.type)if("complete"==b.readyState)a.type="load";else return;"undefined"==typeof b.naturalWidth&&("load"==a.type?(b.naturalWidth=b.width,b.naturalHeight=b.height):(b.naturalWidth=0,b.naturalHeight=0));this.dispatchEvent({type:a.type,target:b});this.vd||rh(this,b.id)}};oh.prototype.U=function(){delete this.f;delete this.b;$.vd(this.dn);oh.B.U.call(this)};$.ja($.sh);$.g=$.sh.prototype;$.g.FW=function(a,b,c){return uh(this,b,c)};$.g.RZ=$.ia;$.g.rS=$.ia;$.g.jS=$.ia;$.g.getAttribute=function(a,b){return a?a.getAttribute(b):void 0};$.g.Xb=function(a,b,c){a.setAttribute(b,c)};$.g.gZ=function(a,b){var c=b[3];a.push(b[0],b[1],0,180"!=e)break;"br"==a.tagName&&ei(a.Kb);a.tagName="";k=!1;a.state=1;break}if(!a.tagName&&"<"==e){a.b+="<";break}if(!a.tagName&&h&&"/"!=e){a.b+="<"+e;a.state=1;break}if(!a.tagName&&"/"==e){a.state=3;break}if("br"==a.tagName&&">"==e){ei(a.Kb);a.tagName="";a.state=1;break}if("br"==a.tagName&&("/"==e||f)){k=!0;break}a.tagName&&Kh(a);if(a.tagName&& +f){a.state=4;break}if(">"==e){Mh(a);break}a.tagName+=e.toLowerCase();break;case 3:if(k){if(">"!=e)break;Lh(a);k=!1;break}if(!a.N&&h){a.b+=""==e){Lh(a);k=!1;break}a.N+=e.toLowerCase();break;case 4:if(k){if(">"!=e)break;Mh(a,!0);k=!1;break}if(">"==e){Mh(a,!0);break}if(f){a.state=5;break}if("="==e){a.f&&(a.state="style"==a.f?6:8);break}a.f+=e.toLowerCase();break;case 5:if(">"==e){Mh(a,!0);break}if(f)break;if(a.f&&!h){a.f=e;a.state=4;break}if("="==e){a.f&& +(a.state="style"==a.f?6:8);break}a.f+=e;a.state=4;break;case 6:if(f)break;if(">"==e){Mh(a,!0);break}if("'"==e||'"'==e){a.ea=e;a.state=9;break}a.j=e;a.state=10;break;case 8:if(f)break;if(">"==e){a.f="";a.tagName="";a.state=1;break}if("'"==e||'"'==e){a.ea=e;a.state=7;break}a.state=11;break;case 9:if(f)break;if(e==a.ea){k=!0;Nh(a,4,!0);break}if(":"==e){a.state=12;break}a.j+=e.toLowerCase();break;case 12:if(f)break;if(e==a.ea){k=!0;Nh(a,4,!0);break}if(";"==e){Nh(a,9);break}a.G+=e.toLowerCase();break; +case 7:e==a.ea&&(a.f="",a.state=4);break;case 10:if(f){k=!0;Nh(a,4,!0);break}if(">"==e){Oh(a);break}if(":"==e){a.state=13;break}a.j+=e;break;case 11:if(f){Nh(a,4,!0);break}">"==e&&Mh(a);break;case 13:if(f){k=!0;Nh(a,4,!0);break}if(">"==e){Oh(a);break}if(";"==e){Nh(a,10);break}a.G+=e.toLowerCase();break;default:throw"Error while parsing HTML: Symbol '"+e+"', position: "+(d-1);}Kh(a);di(a.Kb)}else if(this.rc=$.ic(this.rc.replace(/\xa0|[ \t]+/g," ")),c=this.rc.split(/\n/g),1!=c.length||$.n(this.$b.width)|| +this.path())for(b=0;ba&&!(0,window.isNaN)(this.sA)&&(0,window.clearTimeout)(this.sA),this.gK=a,this.Zr(!0)),this):this.gK};$.g.O=function(a){return $.n(a)?(a=$.Ae(window.document,a||null),this.Hc!=a&&(this.Hc=a,Dj(this),this.Zr(!0),this.Hd()),this):this.Hc?this.Tn:null};$.g.I9=function(){return this.Hc};$.g.nl=function(){return this.Tn};$.g.suspend=function(){this.tG++;return this}; +$.g.resume=function(a){this.tG=a?0:Math.max(this.tG-1,0);this.Hd();return this};$.g.W6=function(a){return $.n(a)?(this.FN=!!a,this):this.FN};$.g.Ge=function(){return!!this.tG};$.g.MJ=function(){return this.Ku};$.g.title=function(a){return $.n(a)?(this.Gv!=a&&(this.Gv=a,$.qg().rS(this,this.Gv)),this):this.Gv};$.g.AO=function(a){return $.n(a)?(this.Vt!=a&&(this.Vt=a,$.qg().jS(this,this.Vt)),this):this.Vt};$.g.visible=function(a){if(0==arguments.length)return this.Ua.visible();this.Ua.visible(a);return this}; +$.g.data=function(a){if(0==arguments.length)return this.F();var b=a.type;if(b)switch(b){case "rect":var c=this.rect();break;case "circle":c=this.Ym();break;case "ellipse":c=this.ellipse();break;case "image":c=this.ij();break;case "text":c=this.text();break;case "path":c=this.path();break;case "layer":c=this.xe();break;default:c=null}else this.Id(a);c&&c.Id(a);return this};$.g.remove=function(){return this.O(null)};$.g.gj=function(){return 0};$.g.Fy=function(){return 0}; +$.g.cb=function(){return new $.K(0,0,this.width(),this.height())};$.g.clip=function(a){return this.Ua.clip(a)};$.g.VI=function(){return this.kV}; +$.g.fullScreen=function(a){var b=this.nl();if($.n(a))return b&&this.ZE()&&(a=!!a,this.fullScreen()!=a&&(a?b.mozRequestFullScreenWithKeys?b.mozRequestFullScreenWithKeys():b.webkitRequestFullscreen?b.webkitRequestFullscreen():b.webkitRequestFullscreen?b.webkitRequestFullscreen():b.mozRequestFullScreen?b.mozRequestFullScreen():b.msRequestFullscreen?b.msRequestFullscreen():b.requestFullscreen&&b.requestFullscreen():(b=$.ze().b,b.webkitCancelFullScreen?b.webkitCancelFullScreen():b.mozCancelFullScreen? +b.mozCancelFullScreen():b.msExitFullscreen?b.msExitFullscreen():b.exitFullscreen&&b.exitFullscreen()))),this;if(!(a=!b)){a:{a=$.ze().b;a=[a.webkitFullscreenElement,a.mozFullScreenElement,a.msFullscreenElement,a.fullscreenElement];for(var c=0;ca++;){if(this.vd)return;this.Wn.lv();b=Jm(this)}b&&this.Wn.lv();this.vd||(b?(this.Wn.ed(this.Tf),this.KR=(0,window.setTimeout)(this.OK,0)):this.Wn.bH())};$.g.dZ=function(a,b){this.Wn.JR(a,b)};$.g.Oca=$.ia;$.g.U=function(){(0,window.clearTimeout)(this.KR);this.f=this.g=this.Wn=null;$.Em.B.U.call(this)};var fC=$.Em.prototype;$.G("anychart.data.csv.parser",function(){return new $.Em});fC.parse=fC.OC;fC.rowsSeparator=fC.$F; +fC.columnsSeparator=fC.sD;fC.ignoreTrailingSpaces=fC.QE;fC.ignoreFirstRow=fC.OE;$.K.prototype.F=function(){return{left:this.left,top:this.top,width:this.width,height:this.height}};dn.prototype.add=function(a){return new dn(this.x+a.x,this.y+a.y)};dn.prototype.min=function(a){return new dn(Math.min(this.x,a.x),Math.min(this.y,a.y))};dn.prototype.max=function(a){return new dn(Math.max(this.x,a.x),Math.max(this.y,a.y))};$.G("anychart.math.rect",$.$m);var gC={wM:["BC","AD"],lT:["Before Christ","Anno Domini"],qT:"JFMAMJJASOND".split(""),BT:"JFMAMJJASOND".split(""),CM:"January February March April May June July August September October November December".split(" "),KM:"January February March April May June July August September October November December".split(" "),GM:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),LM:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),OM:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), +ET:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),IM:"Sun Mon Tue Wed Thu Fri Sat".split(" "),DT:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Q1:"SMTWTFS".split(""),CT:"SMTWTFS".split(""),HM:["Q1","Q2","Q3","Q4"],DM:["1st quarter","2nd quarter","3rd quarter","4th quarter"],qM:["AM","PM"],yC:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],zC:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],vM:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],xM:6,k3:[5,6],yM:5},Mn=gC; +Mn=gC;var vaa=/^(-)?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)?(T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+(?:\.\d+)?)S)?)?$/;$.tn.prototype.clone=function(){return new $.tn(this.Vj,this.ih,this.uh,this.bh,this.wi,this.zg)};var nn="y",on="m",pn="d",qn="h",rn="n",sn="s";$.tn.prototype.b=ba(5);$.tn.prototype.add=function(a){this.Vj+=a.Vj;this.ih+=a.ih;this.uh+=a.uh;this.bh+=a.bh;this.wi+=a.wi;this.zg+=a.zg};$.g=$.zn.prototype;$.g.LA=Mn.xM;$.g.MA=Mn.yM;$.g.clone=function(){var a=new $.zn(this.b);a.LA=this.LA;a.MA=this.MA;return a}; +$.g.getFullYear=function(){return this.b.getFullYear()};$.g.getMonth=function(){return this.b.getMonth()};$.g.getDate=function(){return this.b.getDate()};$.g.getTime=function(){return this.b.getTime()};$.g.getDay=function(){return this.b.getDay()};$.g.getUTCFullYear=function(){return this.b.getUTCFullYear()};$.g.getUTCMonth=function(){return this.b.getUTCMonth()};$.g.getUTCDate=function(){return this.b.getUTCDate()};$.g.lJ=function(){return this.b.getDay()};$.g.getUTCHours=function(){return this.b.getUTCHours()}; +$.g.getUTCMinutes=function(){return this.b.getUTCMinutes()};$.g.getTimezoneOffset=function(){return this.b.getTimezoneOffset()};$.g.set=function(a){this.b=new Date(a.getFullYear(),a.getMonth(),a.getDate())};$.g.setFullYear=function(a){this.b.setFullYear(a)};$.g.setMonth=function(a){this.b.setMonth(a)};$.g.setDate=function(a){this.b.setDate(a)};$.g.setTime=function(a){this.b.setTime(a)};$.g.JP=function(a){this.b.setUTCFullYear(a)};$.g.b$=function(a){this.b.setUTCMonth(a)};$.g.a$=function(a){this.b.setUTCDate(a)}; +$.g.add=function(a){if(a.Vj||a.ih){var b=this.getMonth()+a.ih+12*a.Vj,c=this.getFullYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);var d=Math.min(mn(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.uh&&(b=new Date(this.getFullYear(),this.getMonth(),this.getDate(),12),a=new Date(b.getTime()+864E5*a.uh),this.setDate(1),this.setFullYear(a.getFullYear()),this.setMonth(a.getMonth()),this.setDate(a.getDate()),xn(this,a.getDate()))}; +$.g.mJ=function(a){return[this.getFullYear(),$.zc(this.getMonth()+1,2),$.zc(this.getDate(),2)].join(a?"-":"")};$.g.yG=ba(7);$.g.toString=function(){return this.mJ()};$.g.valueOf=function(){return this.b.valueOf()};$.H($.An,$.zn);$.g=$.An.prototype;$.g.getHours=function(){return this.b.getHours()};$.g.getMinutes=function(){return this.b.getMinutes()};$.g.getSeconds=function(){return this.b.getSeconds()};$.g.lJ=function(){return this.b.getUTCDay()};$.g.getUTCHours=function(){return this.b.getUTCHours()}; +$.g.getUTCMinutes=function(){return this.b.getUTCMinutes()};$.g.IP=function(){return this.b.getUTCSeconds()};$.g.setHours=function(a){this.b.setHours(a)};$.g.setMinutes=function(a){this.b.setMinutes(a)};$.g.setSeconds=function(a){this.b.setSeconds(a)};$.g.setMilliseconds=function(a){this.b.setMilliseconds(a)};$.g.iX=function(a){this.b.setUTCHours(a)};$.g.jX=function(a){this.b.setUTCMinutes(a)};$.g.kX=function(a){this.b.setUTCSeconds(a)};$.g.Z9=function(a){this.b.setUTCMilliseconds(a)}; +$.g.add=function(a){$.zn.prototype.add.call(this,a);a.bh&&this.iX(this.b.getUTCHours()+a.bh);a.wi&&this.jX(this.b.getUTCMinutes()+a.wi);a.zg&&this.kX(this.b.getUTCSeconds()+a.zg)};$.g.mJ=function(a){var b=$.zn.prototype.mJ.call(this,a);return a?b+" "+$.zc(this.getHours(),2)+":"+$.zc(this.getMinutes(),2)+":"+$.zc(this.getSeconds(),2):b+"T"+$.zc(this.getHours(),2)+$.zc(this.getMinutes(),2)+$.zc(this.getSeconds(),2)};$.g.yG=ba(6);$.g.toString=function(){return this.mJ()}; +$.g.clone=function(){var a=new $.An(this.b);a.LA=this.LA;a.MA=this.MA;return a};$.H($.Bn,$.An);$.g=$.Bn.prototype;$.g.clone=function(){var a=new $.Bn(this.b);a.LA=this.LA;a.MA=this.MA;return a};$.g.add=function(a){(a.Vj||a.ih)&&$.zn.prototype.add.call(this,new $.tn(a.Vj,a.ih));this.b=new Date(this.b.getTime()+1E3*(a.zg+60*(a.wi+60*(a.bh+24*a.uh))))};$.g.getTimezoneOffset=function(){return 0};$.g.getFullYear=$.An.prototype.getUTCFullYear;$.g.getMonth=$.An.prototype.getUTCMonth;$.g.getDate=$.An.prototype.getUTCDate;$.g.getHours=$.An.prototype.getUTCHours;$.g.getMinutes=$.An.prototype.getUTCMinutes; +$.g.getSeconds=$.An.prototype.IP;$.g.getDay=$.An.prototype.lJ;$.g.setFullYear=$.An.prototype.JP;$.g.setMonth=$.An.prototype.b$;$.g.setDate=$.An.prototype.a$;$.g.setHours=$.An.prototype.iX;$.g.setMinutes=$.An.prototype.jX;$.g.setSeconds=$.An.prototype.kX;$.g.setMilliseconds=$.An.prototype.Z9;var Wo=$.od&&waa();var Rn=[/^'(?:[^']|'')*('|$)/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyMkSEahKHcLQdmsvVwzZ]+/]; +$.Pn.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-(b.f-Ln(b,a))):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+6E4*(d.getTimezoneOffset()-a.getTimezoneOffset())),e=new Date(a.getTime()+(c+(0b.charCode&&mp(d)?b.charCode:0):$.vf&&!$.yd?(d=this.Py,e=mp(d)?b.keyCode:0):(d=b.keyCode||this.Py,e=b.charCode||0,kC&&(c=this.YM),zd&&63==e&&224==d&&(d=191));var f=d=np(d);d?63232<=d&&d in iC?f=iC[d]:25==d&&a.shiftKey&&(f=9):b.keyIdentifier&&b.keyIdentifier in jC&&(f=jC[b.keyIdentifier]);a=f==this.cq;this.cq= +f;b=new pp(f,e,a,b);b.altKey=c;this.dispatchEvent(b)};$.g.Fa=function(){return this.hd};$.g.nJ=function(a,b){this.UJ&&this.BE();this.hd=a;this.TJ=$.Rd(this.hd,"keypress",this,b);this.CQ=$.Rd(this.hd,"keydown",this.c$,b,this);this.UJ=$.Rd(this.hd,"keyup",this.E$,b,this)};$.g.BE=function(){this.TJ&&(de(this.TJ),de(this.CQ),de(this.UJ),this.UJ=this.CQ=this.TJ=null);this.hd=null;this.Py=this.cq=-1};$.g.U=function(){$.op.B.U.call(this);this.BE()};$.H(pp,$.Dd);var rp;$.lC=$.kl.acgraph;$.Ej.prototype.Sv=!1;$.Ej.prototype.Bn=function(a){this.Cn||(this.Cn=new pl(this,this.Sv),this.Cn.K($.jm("stageCredits")));return $.n(a)?(this.Cn.K(a),this):this.Cn};$.qp=0;rp=[];$.up={};$.vp={};$.xp={};$.wp={};$.kl.anychart=$.kl.anychart||{};$.kl.anychart.fontSize="13px";$.kl.anychart.fontColor="#7c868e";$.kl.anychart.fontFamily="'Verdana', Helvetica, Arial, sans-serif";$.kl.anychart.textDirection="ltr";var Cp=!1,Ep=null,Ip=[],Gp=[],Hp=[],Np={}; +(function(){for(var a=["ms","moz","webkit","o"],b=0,c;c=a[b]&&!$.fa.requestAnimationFrame;++b)$.fa.requestAnimationFrame=$.fa[c+"RequestAnimationFrame"],$.fa.cancelAnimationFrame=$.fa[c+"CancelAnimationFrame"]||$.fa[c+"CancelRequestAnimationFrame"];if(!$.fa.requestAnimationFrame){var d=0;$.fa.requestAnimationFrame=function(a){var b=(new Date).getTime(),c=Math.max(0,16-(b-d));d=b+c;return $.fa.setTimeout(function(){a(b+c)},c)};$.fa.cancelAnimationFrame||($.fa.cancelAnimationFrame=function(a){(0,window.clearTimeout)(a)})}})(); +$.G("anychart.graphics",$.lC);$.G("anychart.fromJson",$.yp);$.G("anychart.fromXml",function(a){return $.yp($.Yo(a))});$.G("anychart.onDocumentLoad",function(a,b){JB||(JB=[]);JB.push([a,b]);$.Rd($.kl,"load",function(){for(var a=0,b=JB.length;a=this.Mb()))return this.view.Mk(this.g).fj(this.f,this.g,a)};$.g.Tp=function(a){return this.get(a)};$.g.ia=function(){return this.g};$.g.gj=function(){return this.get("x")}; +$.g.Mb=function(){return this.view.Mb()};$.g.i=function(a,b){return 1b){var e=a;a=b;b=e}e=this.aa();var f=[];for(e.reset();e.advance();){var h=e.ia();var k=c?h:e.get("x");k>=a&&k<=b&&f.push(h)}return this.jD[d]=f};$.g.get=function(a,b){if(!(a>=this.Mb()))return this.Mk(a).fj(this.wf(a),a,b)};$.g.set=function(a,b,c){var d=this.wf(a);$.n(d)&&this.wf(a,Naa(this.Mk(a),d,b,c));return this};$.g.aa=function(){$.Oq(this);return new $.Mq(this)}; +$.g.iD=function(){return null};$.g.NF=function(a){this.jD=this.Xr=null;$.W(a,16)&&this.o(1,16)};$.g.i=function(a,b,c){if(this.TS)return this.FK.apply(this,arguments);this.yB||(this.yB=[]);var d=this.yB[a];d||(this.yB[a]=d={});return 2a:!(!this.Wr||!this.Wr[a.split(".")[0]])}; +$.g.HK=function(a,b){function c(c){c in a||(a[c]=b++)}var d;for(d=0;d=d)return[];a=new $.Xq(a);c=[];if(1==b)for(b=0;b=c&&0=f&&0=c&&0= +c[l].offset&&(d=c[l]),h<=c[l].offset&&null==f&&(f=c[l]);d||(d=c[0]);f||(f=c[c.length-1]);f.offset==d.offset?this.b[k]={color:d.color}:(h=1-(h-d.offset)/(f.offset-d.offset),this.b[k]={color:$.Wb($.Al($.xl(d.color),$.xl(f.color),h))})}}}this.I(16)}c=$.A(this.De)?this.De:this.De.keys;if(1>c.length)return null;c=this.Ta||this.f||c.length;if(!c)return null;if($.n(b))return this.b[a]=b,this.pa(2),this;a>c-1&&(a=c-1);0>a&&(a=0);return(c=this.b[a])?c:null}; +$.g.F=function(){var a=$.Sr.B.F.call(this);a.type="range";for(var b=[],c=0;ca?4:Math.ceil(+a),this.Ft=this.el=null,this.pa(2)),this):this.Ta}; +$.g.set=function(a){if(this.el!=a){this.Ta=window.NaN;this.so=null;this.el=(0,$.bb)(a,function(a){return $.yr(a)});$.Ua(this.el);for(var b=this.el[0],c=1,d=1;da||1this.scale.Zn()&&($.jl(20,null,[d-c,gp(f)]),f=null,this.Ta=4);f||(f=bs(this,a,b,!0));a=new $.Bn(new Date(c));d=new $.Bn(new Date(d));for(b=0;0>=a.getTime()-d.getTime()&&bthis.scale.Zn()&&($.jl(20,null,[b-a,gp(h)]),h=null,this.Ta=4);h||(h=bs(this,a,b,!1));var l=$.Ho(a,h,0),m=new $.Bn(new Date(l));c?e[0]=l:l=m.getTime()-a.getTime()&&bthis.ey&&(this.ey=c,this.Gc=!1))}return this}; +$.g.rA=function(a){var b=this.Oba!=this.gy||this.Nba!=this.ey;b&&(this.Gc=!1,a||this.pa(2));return b};$.g.ig=function(){return this.Dm||this.Bm};$.g.transform=function(a){this.jb();return Number(this.Ap.transform(a))};$.g.jb=function(){this.Gc||(this.Gc=!0,this.CO(),this.fG(),this.vv())};$.g.fG=function(){};$.g.vv=function(){this.Ap||(this.Ap=new Vr);var a=this.MG*this.Pv;a=[-a,this.Pv-a];this.nB&&a.reverse();this.Ap.Yd(a)}; +$.g.CO=function(){var a=!this.Dm;var b=!this.Bm,c="percent"==this.bm();a&&this.Uc(this.min);b&&this.Uc(this.max);this.dS||(this.gy=0,this.ey=c?100:1);var d=a?this.min:this.gy,e=b?this.max:this.ey;!a&&d>=this.Hr&&(d=this.Hr,a=!0);!b&&e<=this.vp&&(e=this.vp,b=!0);if($.Om(d,e,1E-6)){var f=d==e?.5:1E-5;b?d-=2*f:a?e+=2*f:(d-=f,e+=f)}c&&(a=b=!0);a=this.Ox(d,e,!a,!b,this.qG,!0);this.min=a.min;this.max=a.max;this.bw=a.bw||0}; +$.g.Ox=function(a,b,c,d,e,f){if(c||d){var h=b-a;if(c){c=a-h*this.zF;if(e&&0>=a*c)c=0;else if(f){var k=$.Mm(c);k>c&&(k-=1E-6);c=k}a=c}d&&(c=b+h*this.tF,e&&0>=b*c?c=0:f&&(k=$.Mm(c),k=a?(this.eg=4,this.fl=6,this.Bk=window.NaN):(this.fl=this.eg=window.NaN,this.Bk=+a),this.zk=this.Ak=null,this.pa(2)),this):this.Bk}; +$.g.count=function(a,b){return $.n(a)?(this.eg!=a&&(this.Bk=window.NaN,this.eg=Math.ceil($.P(a)),this.fl=Math.ceil($.P(b)),2<=this.eg||(this.eg=4),this.fl>=this.eg||(this.fl=this.eg),this.zk=this.Ak=null,this.pa(2)),this):[this.eg,this.fl]};$.g.hD=function(a){return $.n(a)?(a=+a||0,this.Mc!=a&&(this.Mc=a,this.zk=null,this.Ak||this.pa(2)),this):this.Mc}; +$.g.set=function(a){$.Za(this.Ak,a)||(this.Bk=this.fl=this.eg=window.NaN,this.Ak=$.Na(a,0),$.Oa(this.Ak),$.Ua(this.Ak,$.ho),this.zk=null,this.pa(2));return this};$.g.get=function(){var a=this.fj();return(0,$.Xe)(a,function(a){a=this.transform(a);return 0<=a&&1>=a},this.ma)};$.g.fj=function(){if(this.Ak)var a=this.Ak;else this.ma.jb(),a=this.zk;return a||[]}; +$.g.mode=function(a){return $.n(a)?(a=String(a).toLowerCase(),a="log"==a||"logarithmic"==a?"logarithmic":"linear",this.vl!=a&&(this.zk=null,this.vl=a,this.Ak||this.pa(2)),this):this.vl};$.g.Ez=function(a,b,c,d,e,f){this.Ak?(this.zk=null,e=[a,b],c&&(e[0]=Math.min(a,this.Ak[0]||0)),d&&(e[1]=Math.max(b,this.Ak[this.Ak.length-1]||0))):(a="logarithmic"==this.vl?Waa(this,a,b,e||10,f||0,!!c,!!d):ts(this,a,b,!!c,!!d,this.b,this.Mc),this.zk=a.Ia,e=a.result);return e}; +$.g.Fz=function(a,b,c,d,e){if(this.Ak)this.zk=null;else if(this.zk?this.zk.length=0:this.zk=[],!(2>a.length)){b=b||10;var f="logarithmic"==this.vl,h=f?this.H3:this.E5,k=a.length-1,l=this.Bk,m=this.eg;if(!(0,window.isNaN)(this.Bk)){var p=a[k];var q=a[0];f&&(q=$.Pm(q,b),p=$.Pm(p,b));(p-q)/this.Bk>this.ma.Zn()&&($.jl(20,null,[p-q,this.Bk]),this.Bk=window.NaN,this.eg=4)}$.n(c)?(q=a[0],p=a[1],h.call(this,q,p,c,p,this.eg,b,e||0),q=1):q=0;$.n(d)&&k--;for(c=q;c<=k-1;c++)q=a[c],p=a[c+1],h.call(this,q,p,q, +p,this.eg,b,e||0);$.n(d)&&(q=a[k],p=a[k+1],h.call(this,q,p,q,d,this.eg,b,e||0));this.Bk=l;this.eg=m}};$.g.E5=function(a,b,c,d,e){us(a,b,vs(this,c,d,e),this.zk[this.zk.length-1],this.zk)}; +$.g.H3=function(a,b,c,d,e,f,h){function k(a){return 0>a?-m(-a+h-1):a?m(a+h-1):0}function l(a){return-m(a)}function m(a){return Qm(f,a)}var p=$.Pm(Math.abs(c),f),q=$.Pm(Math.abs(d),f),r=$.Pm(Math.abs(a),f),t=$.Pm(Math.abs(b),f);d*=c;c=!1;0=this.eg||(this.fl=this.eg))};var DC=ss.prototype; +DC.interval=DC.G5;DC.allowFractional=DC.WT;DC.count=DC.count;DC.base=DC.hD;DC.set=DC.set;DC.get=DC.get;DC.mode=DC.mode;$.H($.ws,$.qs);$.g=$.ws.prototype;$.g.LH="none";$.g.aO="first-visible";$.g.Ma=function(){return"linear"};$.g.SB=function(a,b){var c=this.Ia().fj();return $.Lm(Number(a),Math.max($.Nm($.Mm(c[1]-c[0])),0)+((0,window.isNaN)(b)?0:Number(b)))};$.g.Ia=function(a){this.$k||(this.$k=this.Gk());return $.n(a)?(this.$k.K(a),this):this.$k};$.g.hb=function(a){this.Sk||(this.Sk=this.Gk(),$.V(this.Sk),this.Sk.count(5),this.Sk.ba(!1));return $.n(a)?(this.Sk.K(a),this):this.Sk}; +$.g.OS=function(a){return $.n(a)?(a=!!a,a!=this.qG&&(this.qG=a,this.Dm||this.Bm)&&(this.Gc=!1,this.pa(4)),this):this.qG};$.g.vv=function(){$.ws.B.vv.call(this);Wr(this.Ap,[this.min,this.max])};$.g.fG=function(){var a=this.Ia().Ez(this.min,this.max,this.Dm&&this.min!=this.Hr&&this.JC,this.Bm&&this.max!=this.vp&&this.IC,this.Su,this.bw||0);(0,window.isNaN)(a[4])||(this.bw=a[4]);this.Dm&&(this.min=a[0]);this.Bm&&(this.max=a[1]);this.hb().Fz(this.Ia().fj(),this.Su,a[2],a[3],this.bw)}; +$.g.Xh=function(a){$.W(a,2)&&(this.Gc=!1,this.pa(2))};$.g.Gk=function(){var a=new ss(this);$.M(this,a);$.U(a,this.Xh,this);return a};$.g.Vx=function(a){if($.n(a)){a=$.fk(LB,a,"none");if(this.LH!=a){this.LH=a;switch(this.LH){case "none":this.uH=this.jY;break;case "value":this.uH=this.mY;break;case "percent":this.uH=this.kY}this.pa(6)}return this}return this.LH};$.g.pV=function(a){return $.n(a)?(a=$.Pk(a),this.aO!=a&&(this.aO=a,this.pa(6)),this):this.aO};$.g.aD=function(a,b){return this.uH(a,b)}; +$.g.jY=function(a){return a};$.g.mY=function(a,b){return $.P(a)-b};$.g.kY=function(a,b){return($.P(a)-b)/Math.abs(b||window.NaN)*100};$.g.F=function(){var a=$.ws.B.F.call(this);a.ticks=this.Ia().F();a.minorTicks=this.hb().F();a.stackMode=this.bm();a.stackDirection=this.zv();a.stickToZero=this.OS();a.comparisonMode=this.Vx();return a};$.g.$=function(a,b){$.ws.B.$.call(this,a,b);this.Ia(a.ticks);this.hb(a.minorTicks);this.bm(a.stackMode);this.zv(a.stackDirection);this.OS(a.stickToZero);this.Vx(a.comparisonMode)}; +var EC=$.ws.prototype;$.G("anychart.scales.linear",$.ls);EC.transform=EC.transform;EC.inverseTransform=EC.Pc;EC.getType=EC.Ma;EC.ticks=EC.Ia;EC.minorTicks=EC.hb;EC.stackMode=EC.bm;EC.stackDirection=EC.zv;EC.stickToZero=EC.OS;EC.softMinimum=EC.Lz;EC.softMaximum=EC.Kz;EC.alignMinimum=EC.VM;EC.alignMaximum=EC.UM;EC.minimumGap=EC.av;EC.maximumGap=EC.Yu;EC.comparisonMode=EC.Vx;EC.compareWith=EC.pV;$.H(xs,$.ws);$.g=xs.prototype;$.g.jF=function(a){return $.n(a)?(a=(0,window.isNaN)(+a)?this.Su:+a,a!=this.Su&&(this.Su=a,this.pa(2)),this):this.Su};$.g.Ma=function(){return"log"}; +$.g.vv=function(){xs.B.vv.call(this);var a=this.min,b=this.max,c=this.jF(),d=$.Mm($.Pm(Math.abs(a),c)),e=$.Mm($.Pm(Math.abs(b),c));var f=a*b;var h=this.bw;c=Qm(c,h);0b?(a=[a,-c,c,-a],d=[0,f(h),f(h-2),f(h-2-d)]):(a=[-b,-c,c,b],d=[f(h-2-e),f(h-2),f(h),1])):0>f?(e=e-h+d-h+2,a=[a,-c,c,b],d=[0,(d-h)/e,(d-h+2)/e,1]):(e=e-h+d-h+1,b?(a=[-b,-c,c,b],d=[-(e+1)/e,-1/e,1/e,1]):(a=[a,-c,c,-a],d=[0,(e-1)/e,(e+1)/e,(e+e+1)/e]));h=this.Ap.Yd();f=Zr[Ur](h[0],h[1]);d=(0,$.bb)(d,function(a){return $.Mm(a)}); +Wr(this.Ap,a);this.Ap.Yd((0,$.bb)(d,f));Xr(this.Ap,[2,Ur,2])}; +$.g.Ox=function(a,b,c,d,e,f){e=this.jF();var h=$.Pm(Math.abs(a),e),k=$.Pm(Math.abs(b),e),l=Math.min(Math.floor(h),Math.floor(k),0);if(c||d){var m=a*b;0m?(2>k-l+h-l&&l--,c=xs.B.Ox.call(this,-(h-(l-1)),k-(l-1),c,d,!1,!1),c.min=-c.min+l-1,c.max+=l-1):b?(c=xs.B.Ox.call(this,0,k-(l-1),!1,d,!1,!1),c.max+=l-1):(c=xs.B.Ox.call(this,-(h-(l-1)),0,c,!1,!1,!1),c.min=-c.min+l-1);c={max:Qm(e,c.max)*$.kb(b), +min:Qm(e,c.min)*$.kb(a),bw:l};f&&(c.min=$.Mm(c.min),c.max=$.Mm(c.max))}else c={min:a,max:b,bw:l};return c};$.g.F=function(){var a=xs.B.F.call(this);a.logBase=this.jF();return a};$.g.$=function(a,b){xs.B.$.call(this,a,b);this.jF(a.logBase)};var FC=xs.prototype;$.G("anychart.scales.log",$.ms);FC.getType=FC.Ma;FC.transform=FC.transform;FC.inverseTransform=FC.Pc;FC.logBase=FC.jF;$.H(ys,$.T);$.g=ys.prototype;$.g.ta=2;$.g.Yv=window.NaN;$.g.gf=null;$.g.Jx=null;$.g.Fo=null;$.g.Xv=null;$.g.wj=null;$.g.Kx=100;$.g.lH=function(a){return $.n(a)?(a=$.so(a,window.NaN),(0,window.isNaN)(a)||this.Yv==a||(this.Yv=a,this.Kx=window.NaN,this.wj=this.Xv=this.Fo=this.Jx=null,this.pa(2)),this):this.Yv};$.g.XQ=function(a){return $.n(a)?(a=$.so(a,window.NaN),(0,window.isNaN)(a)||this.Kx==a||(this.Kx=a,this.Yv=window.NaN,this.wj=this.Xv=this.Fo=this.Jx=null,this.pa(2)),this):this.Kx}; +$.g.set=function(a){$.Za(this.Fo,a)||(this.Fo=$.La(a),this.Fo=(0,$.bb)(this.Fo,function(a){return $.P(a)}),$.Ua(this.Fo),$.Oa(this.Fo),this.Fo[0]=0,this.wj=this.Xv=this.Jx=null,this.pa(2));return this}; +$.g.names=function(a){if($.n(a))return this.gf!=a&&(this.gf=a,this.pa(2)),this;a=this.fj();var b;if(this.gf&&this.gf.lengthh&&0>f||1b&&0>a||1=d?(l=d-1,f=!0):l--;e.push(k==l?c[k]:[c[k],c[l]])}return e}; +$.g.F=function(){var a=ys.B.F.call(this);this.Fo?a.explicit=this.Fo:(0,window.isNaN)(this.Kx)?(0,window.isNaN)(this.Yv)||(a.interval=this.Yv):a.maxCount=this.Kx;this.gf&&(a.names=this.gf);return a};$.g.md=function(a,b){var c=arguments[1];return $.A(c)?(this.set(c),!0):$.T.prototype.md.apply(this,arguments)};$.g.$=function(a,b){ys.B.$.call(this,a,b);"explicit"in a?this.set(a.explicit):"interval"in a?this.lH(a.interval):"maxCount"in a&&this.XQ(a.maxCount);this.gf=a.names||null;this.wj=this.Xv=null}; +var GC=ys.prototype;GC.interval=GC.lH;GC.maxCount=GC.XQ;GC.set=GC.set;GC.get=GC.get;GC.names=GC.names;$.H($.As,cs);$.g=$.As.prototype;$.g.Ma=function(){return"ordinal"};$.g.jj=function(a){return!$.n(a)};$.g.Ia=function(a){this.ub||(this.ub=new ys(this),$.M(this,this.ub),$.U(this.ub,this.Xh,this));return $.n(a)?(this.ub.K(a),this):this.ub};$.g.values=function(a,b){if(!$.n(a))return this.pg;if(null===a)this.dD||(this.dD=!0,this.pa(4));else{this.dD=!1;var c=$.A(a);this.op();c&&a.length?this.Uc.apply(this,a):this.Uc.apply(this,arguments);this.rA(!0)&&this.pa(6)}return this}; +$.g.names=function(a){if($.n(a)){if(null===a)this.gf=[];else if($.A(a))this.gf=$.La(a);else{if(!$.z(a)||this.gf==a)return this;this.gf=a}this.Im=null;$.zs(this.Ia());this.pa(2);return this}if($.A(this.gf)){this.Im||(this.Im=$.La(this.gf));if(this.Im.lengthk){var p=~k;$.Ga(d,m,p);(k=this.xN("id",m))?(k=$.L(k,$.Ns)?k:k[0],$.Ga(e,k,p),k.i("nc",!0),$.jl(1,null,[m])):$.Ga(e,l,p)}else $.jl(2,null,[m])}for(b=0;bk?((k=this.xN("id",l))?(k=$.L(k,$.Ns)?k:k[0],Ps(k,f)):(this.b.push(f),$.jl(3,null,[l])),Ts(this,f)):(k=e[k],Ps(k,f),k.i("nc")&&Ts(this,f))):(this.b.push(f), +Ts(this,f));h.length&&this.pa(16);this.ba(!0);break;default:$.V(this);b=0;for(d=a.length;bc||b>d)return 1;if(ac)return 1}else if(e.height){if(bd)return 1}return 0}; +$.g.QN=function(a,b){var c=this.u("minFontSize"),d=this.u("maxFontSize"),e=Math.round((d+c)/2),f=d,h=$.Zj();h.Vd("aria-hidden","true");this.rh(h,!0);h.fontSize(d);if(0>=this.Xm(h.cb().width,h.cb().height,a,b))return d;h.fontSize(e);for(var k=d=this.Xm(h.cb().width,h.cb().height,a,b);c!=f;){if(0>d)c=Math.min(e+1,f),e+=Math.floor((f-e)/2);else if(0=k*d)break}if(!d)return $.vd(h),e;do e+= +k,h.fontSize(e),d=this.Xm(h.cb().width,h.cb().height,a,b);while(0>k*d);$.vd(h);0=a.documentMode)?$.rf(this.f,Aca):$.rf(this.f,zca);"svg"==$.Qj?($.rf(this.ya().nl(),gD),$.rf(this.ya().ca(),Bca)):($.rf(this.ya().nl(),Cca),$.rf(this.ya().ca(),Dca));this.D()};Lu.prototype.D=function(){if("svg"==$.Qj){var a=this.g;a=a.b?a.b.clone():null;this.ya().resize(a.width,a.height)}};Lu.prototype.Oy=function(){return!1};$.g=Mu.prototype;$.g.values=function(a){return $.n(a)?(this.Zb.values=a,this):this.Zb.values};$.g.th=function(a){return $.n(a)?(this.Zb.th=a,this):this.Zb.th};$.g.ji=function(a){return $.n(a)?(this.Zb.ji=a,this):this.Zb.ji};$.g.Al=function(a){return $.n(a)?(this.Zb.Al=a,this):this.Zb.Al};$.g.Bl=function(a){return $.n(a)?(this.Zb.Bl=a,this):this.Zb.Bl};$.g.LC=function(a){var b=this.Zb.th;return b?b.get.apply(b,arguments):void 0}; +$.g.Lk=function(a){var b=this.Zb.th?this.Zb.th.i(a):void 0;$.n(b)||(b=(b=this.Zb.values.series)?b.value.i(a):void 0);return b};$.g.Mf=function(a){var b=void 0;if(a)for(var c=0;c=a.width&&0>=a.height&&(a=null);var b=this.margin(),c=this.padding(),d=0,e=0;if(a){var f=a.width;var h=a.height;if(null!=this.Dc){var k=Math.min(f,$.N(this.Dc,f),null!=this.fi?$.N(this.fi,f):f);var l=c.og(b.og(k))}else l=null!=this.fi?c.og(b.og($.N(this.fi,f))):c.og(b.og(f));if(null!=this.cd){var m=Math.min(h,$.N(this.cd,h),null!=this.ei?$.N(this.ei,h):h);var p=c.Tg(b.Tg(m))}else p=null!=this.ei?c.Tg(b.Tg($.N(this.ei,h))):c.Tg(b.Tg(h))}else $.ea(this.Dc)&& +!(0,window.isNaN)(this.Dc)?(k=this.Dc,l=c.og(this.Dc)):l=$.ea(this.fi)&&!(0,window.isNaN)(this.fi)?c.og(this.fi):window.Infinity,$.ea(this.cd)&&!(0,window.isNaN)(this.cd)?(m=this.cd,p=c.Tg(this.cd)):p=$.ea(this.ei)&&!(0,window.isNaN)(this.ei)?c.Tg(this.ei):window.Infinity;var q,r=this.xG(),t=this.bt(),u=this.title(),v=t.orientation();v="bottom"==v||"top"==v;var x=u.u("orientation")||$.xu(u);x="bottom"==x||"top"==x;var w=0==u.Ay()%180,y=r.vb();$.V(r);$.V(t);$.V(u);var B=q=null;do{q&&(B=q);var E=q= +0,C=0,O=0;if(u.enabled()){u.ka(null);vu(u,null);wu(u,null);var J=u.Lh();x?(J.width>l&&(w?vu(u,l):wu(u,l),J=u.Lh()),O=J.width,q+=J.height):(J.height>p&&(w?wu(u,p):vu(u,p),J=u.Lh()),C=J.height,E+=J.width)}else J=null;if(r.enabled()){r.ka(null);var S=r.Lh();y?q+=S.height:E+=S.width}else S=null;var la=l-E;var ma=mba(this,la,p-q);var sa=ma.width;ma=ma.height;q+=ma;E+=sa;C=Math.max(C,ma);O=Math.max(O,sa);E=Math.max(O,E);O=Math.max(C,q);C=p;x&&(C-=J?J.height:0);y&&(C-=S?S.height:0);t.ka(null);q=qu(t,1); +if("horizontal"==this.G)sa>la&&this.b&&1la&&1C&&this.b&&1=l-J.width?O:sa,J=Math.max(Math.min(u.text().length,1),u.margin().og(C-Qa<=J?C-J:Qa)),vu(u,J);else if(!w&&O>p){J=0;S&&y&&(J+=S.height);if("top"==t.orientation()||"bottom"==t.orientation())J+=q.height;sa=ou(t)&&!v?q.height:0;sa=Math.max(this.b&&this.b.length?this.b[0].lb().height:0,sa);J=Math.max(1,u.margin().Tg(p-J-sa));w?wu(u,J):vu(u,J)}J=u.Lh();r.width(la)}else J=u.Lh(),r.width(ma);S=r.Lh();x?E-=J.height:C-=J.width}r.enabled()&&(y?E-=S.height:C-=S.width);sa=C;J=E;ou(t)&&(v?J=E-q.height: +sa=C-q.width);S=J;this.j=[];q=0;C=this.b&&this.b.length;for(J=0;Jsa?(q++,this.j[q]=[],this.j[q][0]=this.b[J],S=this.b[J].lb().fe()):(S=S+this.f+this.b[J].lb().fe(),this.j[q].push(this.b[J])));break;case "vertical":sa=this.b[J].lb().ee();J+=1;for(C=this.b.length;J +S?(q++,this.j[q]=[],this.j[q][0]=this.b[J],sa=this.b[J].lb().ee()):(sa=sa+this.f+this.b[J].lb().ee(),this.j[q].push(this.b[J])));break;case "horizontal-expandable":var Eb=this.b[J].lb().fe()+this.f,Fb=this.b[J].lb().ee()+this.f,mb=0;for(J+=1;Jsa?(mb+=Fb,mb+E>S?(q++,this.j[q]=[],this.j[q][0]=Qa,mb=0):this.j[q].push(Qa),Eb=O+this.f,Fb=E+this.f):(Eb+=O+this.f,Fb=Math.max(Fb,E+this.f),this.j[q].push(Qa)));break;case "vertical-expandable":for(Eb= +this.b[J].lb().fe()+this.f,Fb=this.b[J].lb().ee()+this.f,mb=0,J+=1;JS?(mb+=Eb,mb+O>sa?(q++,this.j[q]=[],this.j[q][0]=Qa,mb=0):this.j[q].push(Qa),Eb=O+this.f,Fb=E+this.f):(Eb=Math.max(Eb,O+this.f),Fb+=E+this.f,this.j[q].push(Qa)))}ju(this.bt(),q+1);t.ka(null);q=t.lb()}while(!$.rb(B,q));k||(k=la);m||(m=ma);this.Gb=new $.K(d,e,k,m);if(this.Sb)d=this.Oia.Xa()&&(d=a.Xa()-k),ea.Na()&&(e=a.Na()-m));else if(a){d=a.rb();e=a.Tb();switch(this.Ic){case "left":case "right":switch(this.g){case "center":e+=(h-m)/2;break;case "right":case "bottom":e=a.Na()-m}break;case "top":case "bottom":switch(this.g){case "center":d+=(f-k)/2;break;case "right":case "bottom":d=a.Xa()-k}}switch(this.Ic){case "right":d= +a.Xa()-k;break;case "bottom":e=a.Na()-m}}else d=$.N(b.u("left"),0),e=$.N(b.u("top"),0);this.Gb.left=d;this.Gb.top=e;this.rq=this.padding().$i(this.margin().$i(this.Gb));a=this.Gb.clone();a.left=0;a.top=0;this.Wa=this.margin().$i(a);this.hp=this.padding().$i(this.Wa);r.ba(!1);t.ba(!1);u.ba(!1);this.I(4)};$.g.remove=function(){this.Va&&this.Va.parent(null)}; +$.g.X=function(){if(!this.yc())return this;this.Va||(this.Va=$.Uj(),$.$s(this,this.Va),$.M(this,this.Va),this.P||(this.P=$.Uj(),this.P.parent(this.Va).zIndex(20),$.M(this,this.P)));this.J(8)&&(this.Va.zIndex(this.zIndex()),this.I(8));var a=this.O(),b=a?a.ya():null;this.J(2)&&(this.Va.parent(a),this.I(2));(a=b&&!b.Ge())&&b.suspend();this.J(1024)&&(this.Ed=!0,this.I(1024));if(this.J(16)){var c=this.nN(),d=nba(this);this.ea&&(d=d.reverse());d=$.F(c)?c(d):d;this.b&&this.b.length!=d.length&&(this.Ed=!0); +c=oba(this,d);pba(this,c);this.I(16)}qba(this);if(this.J(4)){if(this.b&&"..."==this.u("textOverflow"))for(c=0,d=this.b.length;ca.nearestPointToCursor.distance&&(a.series.aa().select(a.nearestPointToCursor.index),e=a)});"single"==this.Rb.u("displayMode")?$.lv(this.Rb, +[e],a.originalEvent.clientX,a.originalEvent.clientY,e.series,this.vt()):$.lv(this.Rb,b,a.originalEvent.clientX,a.originalEvent.clientY,e.series,this.vt())}}};$.g.AG=function(a){this.Rb.dM(a.clientX,a.clientY)};$.g.vt=function(){return!1};$.g.contextMenu=function(a){!this.ds&&(this.ds=$.kl.anychart.ui.contextMenu(!!$.D(a)&&a.fromTheme))&&($.M(this,this.ds),this.ds.itemsProvider(this.S7));return $.n(a)?(this.ds&&this.ds.setup(a),this):this.ds}; +$.g.S7=function(a){var b=a.event?a.event.target.Oh():null,c=a.event?$.ko(a.event.domTarget):null;b=$.D(c)&&$.n(c.R)&&c.R.seriesType&&$.n(c.index)||b&&b.seriesType;c={};$.kl.anychart.exports&&$.Vc(c,$.Ll($.oD.exporting));zj()&&a.chart&&$.Vc(c,$.Ll($.oD[a.chart.fullScreen()?"full-screen-exit":"full-screen-enter"]));$.Vc(c,$.Ll($.oD.main));return a.chart.jG(c,a,b)};$.g.jG=function(a){return a}; +$.g.yP=function(){var a=[],b,c,d,e=this.Ye();for(c=0;cp.tf||!d)d=m.R,e=p.index,f=$.Da(m.$c,p.index),h=p.tf}}a={index:e,series:d};a[b]=c?!f:f;return a}; +$.g.Lj=function(a,b,c,d,e){var f=this.vB(c,a,d),h=[];if(!d)for(var k=0;kw.Sd.tf&&(x=w))}q=x.R;k=$.Rv(q.state, +2);u=1==k.length&&k[0]==x.Sd.index;h=!u||u&&e;if(c=e)c=!!(q.state.Ki()&2);!c&&e||u||q.Cd();q.Uh(x.Sd.index,a);k=$.Rv(q.state,2);if(k.length)for(d.push({R:q,$c:[x.Sd.index],Sd:x.Sd}),l=this.Ye(),f=0;fe?c+e:c,l=0>f?d+f:d;return{type:a,offsetX:h.offsetX,offsetY:h.offsetY,clientX:h.clientX,clientY:h.clientY,screenX:h.screenX,screenY:h.screenY,button:h.button,actionButton:h.actionButton,keyCode:h.keyCode,charCode:h.charCode,ctrlKey:h.ctrlKey,altKey:h.altKey,shiftKey:h.shiftKey,metaKey:h.metaKey,platformModifierKey:h.platformModifierKey,clientStartX:c+b.x,clientStartY:d+b.y,clientLeft:k+b.x,clientTop:l+b.y,startX:c,startY:d,left:k,top:l, +width:Math.abs(e),height:Math.abs(f)}};$.g.mca=function(a,b,c,d,e,f){return this.dispatchEvent(this.by("selectmarqueestart",a,b,c,d,e,f))};$.g.kca=function(a,b,c,d,e,f){return this.dispatchEvent(this.by("selectmarqueechange",a,b,c,d,e,f))};$.g.lca=function(a,b,c,d,e,f){a=this.by("selectmarqueefinish",a,b,c,d,e,f);(b=this.dispatchEvent(a))&&this.MZ(a);this.IR=!1;return b};$.g.MZ=function(){}; +$.g.fullScreen=function(a){var b=this.O();b=b?b.ya():null;return $.n(a)?(b&&b.fullScreen(a),this):b?b.fullScreen():!1};$.g.ZE=function(){var a=this.O();return(a=a?a.ya():null)?a.ZE():!1};$.g.PO=function(a){var b=$.fa.anychart.exports;b?this.ZD||(this.ZD=b.create()):$.hl(4,null,["Exporting"]);return $.n(a)&&this.ZD?(this.ZD.$(a),this):this.ZD};$.g.VA=function(){return this.Ye()};$.g.fX=function(){var a=$.Ja.apply(null,(0,$.bb)(this.VA(),function(a){return a.data().ou()}));$.Oa(a,a,$.io);return a}; +$.g.DR=function(a,b,c){var d;if($.A(b))for(d=0;da&&(a=-3),$.n(d.axis)&&d.axis===d.HORIZONTAL_AXIS?b=a:c=a);$.ea(this.g)&&(b=$.eb(b,-this.g,this.g));$.ea(this.j)&&(c=$.eb(c,-this.j,this.j));this.D&&(b=-b);b=new ew(a,d,b,c);this.dispatchEvent(b)};$.cw.prototype.U=function(){$.cw.B.U.call(this);de(this.f);this.f=null};$.H(ew,$.Dd);$.H($.fw,$.tt);$.g=$.fw.prototype;$.g.tc=function(a){return $.n(a)?(a=$.P(a),this.bc!=a&&(this.bc=a,this.o(4,9)),this):this.bc};$.g.oc=function(a){return $.n(a)?(a=$.P(a),this.cc!=a&&(this.cc=a,this.o(4,9)),this):this.cc};$.g.Xw=function(a){return $.n(a)?(a=$.P(a),this.D!=a&&(this.D=a,this.o(4,9)),this):this.D};$.g.ze=function(a){return $.n(a)?(a=null===a?a:$.gb($.P(a)||0),this.Bg!=a&&(this.Bg=a,this.o(4,9)),this):this.Bg}; +$.g.Yi=function(a){return $.n(a)?(a=null===a?a:$.eb($.P(a)||0,-360,360),this.Mm!=a&&(this.Mm=a,this.o(4,9)),this):this.Mm};var Fca=$.fw.prototype,tD=$.Tc($.tt.prototype.Fx);$.Q(tD,0,"autoRotate",$.Zp);Fca.Fx=tD;$.bq($.fw,$.fw.prototype.Fx); +$.fw.prototype.RW=function(a,b,c,d,e,f){if(c){var h=c.width;var k=c.height}var l=b.angle,m=b.radius;b=$.n(b.radiusY)?b.radiusY:m;var p=0,q=0,r=this.tc(),t=this.oc(),u=this.Yi(),v=this.Xw();if(c||!(0,window.isNaN)(r)&&!(0,window.isNaN)(t))p=c.left,q=c.top,p=(0,window.isNaN)(r)?p+h/2:r,q=(0,window.isNaN)(t)?q+k/2:t,c=$.n(v)&&!(0,window.isNaN)(v)?$.N(e,v):c?$.N(e,Math.min(h,k)/2):0,l+=$.N(d,null!=u?u:360),m+=c,b+=c;d=p+$.ib(l,m);l=q+$.jb(l,b);f=$.to(new $.K(0,0,a.width,a.height),f);d-=f.x;l-=f.y;a.left= +d;a.top=l;return a}; +$.fw.prototype.mk=function(a,b,c,d){if($.L(a,$.gw)){var e=(a.Ac()?a.Ac().value.angle:0)||0;var f=a.Ay(e);var h=a.uc("anchor");"auto"==h&&(h=a.uc("autoRotate")?"center":$.vo(e));d=$.n(d)?d:a.ia()}else h=($.n(c)&&$.n(c.rotation)?c.rotation:this.u("rotation"))||0,f=($.n(c)&&$.n(c.autoRotate)?c.autoRotate:this.u("autoRotate"))||!1,e=(b?b.value.angle:0)||0,f=f?0e?h+e+270:h+e+90:h,h=$.n(c)&&c.anchor||this.u("anchor");a=$.zt(this,a,b,c,d);b=f;c=$.to(a,h);b=$.Lb($.I(b),c.x,c.y);a=$.an(a)||[];b.transform(a, +0,a,0,4);return a};$.fw.prototype.QH=function(){return new $.gw};$.H($.gw,$.wt);var Gca=$.gw.prototype,uD=$.Tc($.wt.prototype.fA);$.Q(uD,0,"autoRotate",$.Zp);Gca.fA=uD;$.bq($.gw,$.gw.prototype.fA);$.gw.prototype.Ay=function(a){var b=this.uc("rotation");return this.uc("autoRotate")?0a?b+a+270:b+a+90:b}; +$.gw.prototype.Hf=function(a,b){var c=this.b.positionFormatter,d=this.Kb.path()?"center":ut(this.b.anchor)||"left-top",e=this.b.offsetX||0,f=this.b.offsetY||0,h=this.Ln,k=this.Ac(),l=$.Tc(c.call(k,k));c=l.angle;k=l.radius;l=$.n(l.radiusY)?l.radiusY:k;var m=0,p=0,q=h.tc(),r=h.oc(),t=h.Yi();h=h.Xw();if(b||!(0,window.isNaN)(q)&&!(0,window.isNaN)(r)){m=b.left;p=b.top;var u=b.width,v=b.height;m=(0,window.isNaN)(q)?m+u/2:q;p=(0,window.isNaN)(r)?p+v/2:r;f=$.n(h)&&!(0,window.isNaN)(h)?$.N(f,h):b?$.N(f,Math.min(u, +v)/2):0;c+=$.N(e,null!=t?t:360);k+=f;l+=f}e=m+$.ib(c,k);f=p+$.jb(c,l);d=$.to(new $.K(0,0,a.width,a.height),d);e-=d.x;f-=d.y;this.Eg+=e;this.Fg+=f;a.left=e;a.top=f;this.b.rotation=this.Ay(c);this.Kb.x(this.Eg).y(this.Fg)};$.H($.hw,$.X);$.g=$.hw.prototype;$.g.ta=$.X.prototype.ta;$.g.na=$.X.prototype.na|80;$.g.enabled=function(a){return $.n(a)?(null===this.j&&a&&this.o(1,this.Vp()),this.j=a,this.hC=null!==this.ga.enabled,$.hw.B.enabled.call(this,a),this):this.j};$.g.Gx=function(a){return $.n(a)?(this.P=a,this.b.positionFormatter=!0,this.o(4,9),this):this.P};$.g.position=function(a){return $.n(a)?(a=String(a),this.Ic!=a&&(this.Ic=a,this.b.position=!0,this.o(4,9)),this):this.Ic}; +$.g.anchor=function(a){return $.n(a)?(a=null===a?a:$.nk(a),this.N!==a&&(this.N=a,this.b.anchor=!0,this.o(4,9)),this):this.N};$.g.rotation=function(a){return $.n(a)?(a=$.P(a),this.W!=a&&(this.W=a,this.b.rotation=!0,this.o(4,9)),this):this.W};$.g.type=function(a){return $.n(a)?($.F(a)||(a=$.zk(a)),this.Bd!=a&&(this.Bd=a,this.b.type=!0,this.o(4,9)),this):this.Bd||this.gD||"diagonal-cross"};$.g.Ma=function(){return this.Bd}; +$.g.size=function(a){return $.n(a)?(a=$.P(a),(0,window.isNaN)(a)||this.lo==a||(this.lo=a,this.b.size=!0,this.o(4,9)),this):this.lo};$.g.offsetX=function(a){return $.n(a)?(this.rK!=a&&(this.rK=a,this.b.offsetX=!0,this.o(4,9)),this):this.rK};$.g.offsetY=function(a){return $.n(a)?(this.Vw!=a&&(this.Vw=a,this.b.offsetY=!0,this.o(4,9)),this):this.Vw}; +$.g.fill=function(a,b,c,d,e,f,h){if($.n(a)){var k=$.Xb.apply(null,arguments);this.Yb!=k&&(this.Yb=k,this.b.fill=!0,this.o(16,1));return this}return this.Yb||this.D||"black"};$.g.Wp=function(){return this.Yb};$.g.dG=function(a){this.D=a};$.g.stroke=function(a,b,c,d,e){if($.n(a)){var f=$.Zb.apply(null,arguments);this.wb!=f&&(this.wb=f,this.b.stroke=!0,this.o(16,1));return this}return this.wb||this.G||"none"};$.g.fr=function(){return this.wb};$.g.eG=function(a){this.G=a}; +$.g.gd=function(a){return $.n(a)?(this.lI=a,this.o(16,1),this):this.lI}; +$.g.measure=function(a){this.g||(this.g=$.Xj());var b=this.ka();if(b){var c=b.width;var d=b.height}var e=this.type();var f=this.size();b=$.nk(this.anchor());var h=this.offsetX(),k=this.offsetY();e=$.z(e)?$.jp(e):e;this.g.clear();e.call(this,this.g,0,0,f);f=this.g.cb();a=$.Tc(this.P.call(a,a));a=new $.lb(a.x,a.y);e=$.to(new $.K(0,0,f.width,f.height),b);a.x-=e.x;a.y-=e.y;$.Ko(a,b,$.n(this.rK)?$.N(h,c):0,$.n(this.Vw)?$.N(k,d):0);f.left=a.x;f.top=a.y;return f}; +$.g.clear=function(a){this.f||(this.f=[]);if(this.dd&&this.dd.length)if($.n(a))this.dd[a]&&(this.dd[a].clear(),this.f.push(this.dd[a]),delete this.dd[a]);else{for(a=this.dd.length;a--;){var b=this.dd[a];b&&(b.clear(),this.f.push(b))}this.dd.length=0;this.o(64,1)}else this.dd=[];return this};$.g.Zp=function(a){a=+a;return this.dd&&this.dd[a]?this.dd[a]:null};$.g.By=function(){return this.b};$.g.Kf=function(){return this.Fb}; +$.g.add=function(a,b){$.n(this.dd)||(this.dd=[]);if($.n(b)){var c=+b;var d=this.dd[c]}d?d.clear():(d=this.f&&0b||b>$.Cw(this))throw Error("Child component index out of bounds");this.D&&this.j||(this.D={},this.j=[]);if(a.getParent()==this){var d=a.ww();this.D[d]=a;$.Ia(this.j,a)}else $.Sc(this.D,a.ww(),a);a.Rj(this);$.Ga(this.j,a,b);a.Ze&&this.Ze&&a.getParent()==this?(c=this.dB(),b=c.childNodes[b]||null,b!=a.Fa()&&c.insertBefore(a.Fa(),b)):c?(this.hd||this.nc(),b=this.Xd(b+1),a.WF(this.dB(),b?b.hd:null)):this.Ze&& +!a.Ze&&a.hd&&a.hd.parentNode&&1==a.hd.parentNode.nodeType&&a.Xf()};$.g.dB=function(){return this.hd};$.g.Xd=function(a){return this.j?this.j[a]||null:null};$.g.ci=function(a,b){this.j&&(0,$.Pe)(this.j,a,b)};$.g.$e=function(a){return this.j&&a?(0,$.Ca)(this.j,a):-1};$.g.removeChild=function(a,b){if(a){var c=$.z(a)?a:a.ww();a=$.Dw(this,c);c&&a&&($.Rc(this.D,c),$.Ia(this.j,a),b&&(a.Zg(),a.hd&&$.Ve(a.hd)),a.Rj(null))}if(!a)throw Error("Child is not in parent component");return a}; +$.g.Ui=function(a,b){return this.removeChild(this.Xd(a),b)};$.g.Qj=function(a){for(var b=[];this.j&&0!=this.j.length;)b.push(this.Ui(0,a));return b};var Fw;$.H($.Ew,$.Aw);$.g=$.Ew.prototype;$.g.As=null;$.g.IE=!1;$.g.nc=function(){this.hd=this.g.nc("INPUT",{type:"text"})};$.g.Hk=ba(13);$.g.Xf=function(){$.Ew.B.Xf.call(this);var a=new $.jf(this);a.oa(this.Fa(),"focus",this.aQ);a.oa(this.Fa(),"blur",this.q$);if($.Gw())this.Jf=a;else{$.nd&&a.oa(this.Fa(),["keypress","keydown","keyup"],this.A$);var b=$.xe(this.Fa());a.oa(b?$.Ie(b):window,"load",this.S$);this.Jf=a;Hw(this)}this.Xm();this.Fa().WX=this}; +$.g.Zg=function(){$.Ew.B.Zg.call(this);this.Jf&&(this.Jf.ld(),this.Jf=null);this.Fa().WX=null};$.g.U=function(){$.Ew.B.U.call(this);this.Jf&&(this.Jf.ld(),this.Jf=null)};$.g.aQ=function(){this.IE=!0;var a=this.Fa();$.yj(a,"label-input-label");if(!$.Gw()&&!$.Iw(this)&&!this.f){var b=this;a=function(){b.Fa()&&(b.Fa().value="")};$.od?$.oj(a,10):a()}};$.g.q$=function(){$.Gw()||(this.Jf.dc(this.Fa(),"click",this.aQ),this.As=null);this.IE=!1;this.Xm()}; +$.g.A$=function(a){27==a.keyCode&&("keydown"==a.type?this.As=this.Fa().value:"keypress"==a.type?this.Fa().value=this.As:"keyup"==a.type&&(this.As=null),a.preventDefault())};$.g.B$=function(){$.Iw(this)||(this.Fa().value="",$.oj(this.m$,10,this))};$.g.m$=function(){$.Iw(this)||(this.Fa().value=this.b)};$.g.S$=function(){this.Xm()};$.g.clear=function(){this.Fa().value="";null!=this.As&&(this.As="")};$.g.reset=function(){$.Iw(this)&&(this.clear(),this.Xm())}; +$.g.Fj=function(){return null!=this.As?this.As:$.Iw(this)?this.Fa().value:""};$.g.re=function(){return this.b};$.g.Xm=function(){var a=this.Fa();$.Gw()?this.Fa().placeholder!=this.b&&(this.Fa().placeholder=this.b):Hw(this);$.yw(a,"label",this.b);$.Iw(this)?(a=this.Fa(),$.yj(a,"label-input-label")):(this.f||this.IE||(a=this.Fa(),$.xj(a,"label-input-label")),$.Gw()||$.oj(this.ida,10,this))};$.g.Wi=function(a){this.Fa().disabled=!a;var b=this.Fa();a?$.yj(b,"label-input-label-disabled"):$.xj(b,"label-input-label-disabled")}; +$.g.isEnabled=function(){return!this.Fa().disabled};$.g.zW=ba(15);$.g.ida=function(){!this.Fa()||$.Iw(this)||this.IE||(this.Fa().value=this.b)};$.H($.Kw,$.X);$.g=$.Kw.prototype;$.g.ta=$.X.prototype.ta|4;$.g.na=$.X.prototype.na|20;$.g.gc=function(){return this.La};$.g.IN=function(a){if($.n(a)){var b="gantt"==(a&&$.F(a.Ma)&&a.Ma());if(a=b?a==this.g?null:a:$.ps(this.g,a,null,15,null,this.kg,this)){var c=this.g==a;this.g=a;var d=this.ma||this.ad&&this.ad.scale();d?a.ba(!1):b||a.ba(c);c||d||this.o(4,13)}}}; +$.g.ho=function(a){if($.n(a)){var b="gantt"==(a&&$.F(a.Ma)&&a.Ma()),c=b?a==this.ma?null:a:$.ps(this.ma,a,null,15,null,this.kg,this);if(c||null===a&&this.ma){a=this.ma==c;var d=b&&!this.ma;c||$.Dq(this.ma,this.kg,this);this.ma=c;d&&$.U(this.ma,this.kg,this);c&&!b&&c.ba(a);a||this.o(4,13)}return this}return this.ma||this.ad&&this.ad.scale()||this.g};$.g.SX=function(){return!!this.ma};$.g.kg=function(a){var b=0;$.W(a,4)&&(b|=4);$.W(a,2)&&(b|=1);this.o(4,b|8)}; +$.g.Vp=function(){return $.Kw.B.Vp.call(this)|4};$.g.Hs=function(){return[$.Mw(this)]};$.g.hU=function(){this.o(4,9)};$.g.axis=function(a){return $.n(a)?(this.ad!=a&&(this.ad&&$.Dq(this.ad,this.hU,this),this.ad=a,$.U(this.ad,this.hU,this),this.o(4,13)),this):this.ad};$.g.Tm=function(a,b,c,d){this.rg||(this.rg=new $.ot);return $.n(a)?(this.rg.K.apply(this.rg,arguments),this):this.rg};$.g.vb=function(){return"horizontal"==this.se()};$.g.Jq=void 0;$.g.Gt=void 0; +$.g.X=function(){if(!this.scale())return $.hl(2),this;if(!this.yc())return this;if(this.J(8)){var a=this.zIndex();$.Nw(this).zIndex(a);this.I(8)}this.J(2)&&(a=this.O(),$.Nw(this).parent(a),this.I(2));this.J(16)&&(this.Gt(),this.I(16));this.J(4)&&(this.Jq(),this.I(4));return this}; +$.g.Xt=function(){var a=this.scale();if(a){var b=$.Nw(this);a=a.transform(this.f,.5);b.clear();if(!(0,window.isNaN)(a)&&0<=a&&1>=a){var c=0==b.Bv()%2?0:-.5,d=this.ka(),e=this.Tm();if(this.vb()){var f=Math.round(d.Tb()+d.height-a*d.height);1==a?f-=c:f+=c;b.moveTo(d.rb(),f);b.lineTo(d.Xa(),f)}else f=Math.round(d.rb()+a*d.width),1==a?f+=c:f-=c,b.moveTo(f,d.Tb()),b.lineTo(f,d.Na());b.clip(e.$i(d))}}else $.hl(2)};$.g.remove=function(){$.Nw(this).parent(null)};var AD={};$.Pp(AD,[[0,"scaleRangeMode",fl]]); +$.bq($.Kw,AD);$.Kw.prototype.$=function(a,b){$.Kw.B.$.call(this,a,b);"layout"in a&&a.layout&&this.se(a.layout);if("axis"in a){var c=a.axis;$.ea(c)?this.La&&this.axis(this.La.fE(c)):c.Ow&&c.Ow()&&this.axis(c)}$.eq(this,AD,a,b)};$.Kw.prototype.F=function(){var a=$.Kw.B.F.call(this);$.mq(this,AD,a);return a};$.Kw.prototype.U=function(){this.La=this.ad=null;$.wd(this.j,this.rg);this.rg=this.j=null;$.Kw.B.U.call(this)};$.H($.Pw,$.X);$.Pw.prototype.ta=$.X.prototype.ta;$.Pw.prototype.na=$.X.prototype.na;var Jca=$.Pw.prototype,BD={};$.Pp(BD,[[1,"stroke",$.iq],[0,"length",$.no],[0,"position",$.Lk]]);Jca.bN=BD;$.bq($.Pw,$.Pw.prototype.bN);$.g=$.Pw.prototype;$.g.orientation=function(a){return $.n(a)?(a=$.vk(a),this.te!=a&&(this.te=a,this.b=null),this):this.te};$.g.remove=function(){this.path&&this.path.parent(null)}; +$.g.X=function(){this.path.clear();this.path.stroke(this.u("stroke"));if(!this.yc())return this;this.J(8)&&(this.path.zIndex(this.zIndex()),this.I(8));this.J(2)&&(this.path.parent(this.O()),this.I(2));return this};$.g.eW=function(a,b,c,d,e){b=Math.round(b.left+a*b.width);var f=c.top;b=1==a?b+e:b-e;a=this.u("position");e=this.u("length");"outside"==a?(f-=d/2,c=-e):(f="center"==a?f+(c.height-e)/2:f+d/2,c=e);this.path.moveTo(b,f);this.path.lineTo(b,f+c)}; +$.g.cW=function(a,b,c,d,e){c=c.left;b=Math.round(b.top+b.height-a*b.height);b=1==a?b-e:b+e;a=this.u("position");e=this.u("length");"outside"==a?(c+=d/2,d=e):"center"==a?(c-=e/2,d=e):(c-=d/2,d=-e);this.path.moveTo(c,b);this.path.lineTo(c+d,b)};$.g.$V=function(a,b,c,d,e){b=Math.round(b.left+a*b.width);c=c.top;b=1==a?b+e:b-e;a=this.u("position");e=this.u("length");"outside"==a?(c+=d/2,d=e):"center"==a?(c-=e/2,d=e):(c-=d/2,d=-e);this.path.moveTo(b,c);this.path.lineTo(b,c+d)}; +$.g.bW=function(a,b,c,d,e){c=c.left;b=Math.round(b.top+b.height-a*b.height);b=1==a?b-e:b+e;a=this.u("position");e=this.u("length");"outside"==a?(c-=d/2,d=-e):(c="center"==a?c-e/2:c+d/2,d=e);this.path.moveTo(c,b);this.path.lineTo(c+d,b)};$.g.F=function(){var a=$.Pw.B.F.call(this);$.mq(this,this.bN,a,"AxisTicks");return a};$.g.$=function(a,b){$.Pw.B.$.call(this,a,b);$.eq(this,this.bN,a,b)};$.H($.Rw,$.X);$.g=$.Rw.prototype;$.g.na=$.X.prototype.na|976;$.g.ta=$.X.prototype.ta;$.g.wc=null;$.g.nq="axis";$.g.eb=null;$.g.Aa=null;$.g.Vb=null;$.g.ub=null;$.g.Qc=null;$.g.tO="top";$.g.wm=null;$.g.jh="no-overlap";$.g.oG=!1;$.g.eC=null;$.g.kx=null;$.g.nG=1;$.g.lp=null;$.g.TE=null;$.g.Dc=null;$.g.Ra=null;$.g.ps=!0;$.g.qs=!0;$.g.fh=null;$.g.oj=null;$.g.title=function(a){this.eb||(this.eb=new $.tu,this.eb.ib(this),$.U(this.eb,this.xp,this),$.M(this,this.eb));return $.n(a)?(this.eb.K(a),this):this.eb}; +$.g.xp=function(a){var b=0,c=0;$.W(a,8)?(b=this.ke,c=9):$.W(a,1)&&(b=64,c=1);this.o(b,c)};$.g.labels=function(a){this.Aa||(this.Aa=new $.tt,this.Aa.ib(this),$.U(this.Aa,this.Ud,this),$.M(this,this.Aa));return $.n(a)?(!$.D(a)||"enabled"in a||(a.enabled=!0),this.Aa.K(a),this):this.Aa};$.g.Ud=function(a){var b=0,c=0;$.W(a,8)?(b=this.ke,c=9):$.W(a,1)&&(b=384,c=1);this.labels().clear();this.Si=this.b=null;this.Rd();this.o(b,c)}; +$.g.ab=function(a){this.Vb||(this.Vb=new $.tt,this.Vb.ib(this),this.vb()?this.Vb.rotation(0):this.Vb.rotation(-90),$.U(this.Vb,this.m4,this),$.M(this,this.Vb));return $.n(a)?(!$.D(a)||"enabled"in a||(a.enabled=!0),this.Vb.K(a),this):this.Vb};$.g.m4=function(a){var b=0,c=0;$.W(a,8)?(b=this.ke,c=9):$.W(a,1)&&(b=128,c=1);this.Si=null;this.Rd();this.ab().clear();this.o(b,c)};$.g.Gk=function(){return new $.Pw};$.g.gN=function(){return this.line?this.line:this.line=$.Xj()}; +$.g.Ia=function(a){this.ub||(this.ub=this.Gk(),this.ub.ib(this),$.U(this.ub,this.eU,this),$.M(this,this.ub));return $.n(a)?(this.ub.K(a),this):this.ub};$.g.hb=function(a){this.Qc||(this.Qc=this.Gk(),this.Qc.ib(this),$.U(this.Qc,this.eU,this),$.M(this,this.Qc));return $.n(a)?(this.Qc.K(a),this):this.Qc};$.g.eU=function(a){var b=0,c=0;$.W(a,8)?(b=this.ke,c=9,this.Rd()):$.W(a,1)&&(b=256,c=1);this.o(b,c)}; +$.g.stroke=function(a,b,c,d,e){if($.n(a)){a=$.Zb.apply(null,arguments);if(this.wb!=a){var f=$.D(this.wb)?this.wb.thickness||1:1,h=$.D(a)?a.thickness||1:1;this.wb=a;h==f?this.o(16,1):this.o(this.ke,9)}return this}return this.wb};$.g.orientation=function(a){return $.n(a)?(a=null===a?null:$.vk(a),this.te!=a&&(this.te=a,this.b=null,this.o(this.ke,9)),this):this.te||this.tO}; +$.g.scale=function(a){if($.n(a)){if(this.wm!=a&&(a=$.ps(this.scale(),a,null,this.eP(),null,this.kg,this))){var b=this.wm==a;this.wm=a;this.Si=this.b=null;this.Rd();this.labels().clear();this.ab().clear();a.ba(b);b||this.o(this.ke,9)}return this}return this.wm};$.g.eP=function(){return 15};$.g.kg=function(a){$.W(a,2)&&(this.Si=this.b=null,this.Rd(),this.labels().clear(),this.ab().clear(),this.o(this.ke,9))};$.g.width=function(a){return $.n(a)?(this.Dc!=a&&(this.Dc=a,this.o(this.ke,9)),this):this.Dc}; +$.g.padding=function(a,b,c,d){this.Ra||(this.Ra=new $.ot,$.M(this,this.Ra),$.U(this.Ra,this.Yl,this));return $.n(a)?(this.Ra.K.apply(this.Ra,arguments),this):this.Ra};$.g.Yl=function(a){$.W(a,2)&&(this.Si=this.b=null,this.Rd(),this.o(this.ke,9))};$.g.Ih=function(a){return $.n(a)?(this.ps!=a&&(this.ps=a,this.b=null,this.o(this.ke,9)),this):this.ps};$.g.gg=function(a){return $.n(a)?(this.qs!=a&&(this.qs=a,this.b=null,this.o(this.ke,9)),this):this.qs}; +$.g.hi=function(a){return $.n(a)?(a=$.Jk(a,this.jh),this.jh!=a&&(this.jh=a,this.o(this.ke,9)),this):this.jh};$.g.Mz=function(a){return $.n(a)?(this.oG!=a&&(this.oG=a,this.Rd(),this.o(this.ke,9)),this):this.oG};$.g.IS=function(a){return $.n(a)?(a=null===a?null:$.so(a),this.eC!=a&&(this.eC=a,this.Rd(),this.b=null,this.oG&&this.o(this.ke,9)),this):this.eC};$.g.JS=function(a){return $.n(a)?(a=$.so(a),this.kx!=a&&(this.kx=a,this.Rd(),this.b=null,this.oG&&this.o(this.ke,9)),this):this.kx};$.g.Ow=function(){return!0}; +$.g.zw=function(a){if(!this.Si||this.J(512)){if("allow-overlap"==this.jh)return!1;var b=this.scale(),c=[],d=[];if(b){var e=-1,f=-1,h=-1,k=b.Ia().get(),l=k.length,m,p,q,r=this.labels();var t=r.u("position");r=r.enabled();var u=this.TE&&0>$.wo(t)?this.TE:null;if($.L(b,$.qs)){var v=b.hb().get();var x=t=0;for(var w=v.length,y,B=this.ab().enabled();t=J&&this.Ih()||1<=J&&this.gg()?f=q:0J&&(f=q));q++}O<=y&&t=J&&this.Ih()||1<=J&&this.gg()?(h=x,d.push(!0)):0J?(h=x,d.push(!0)):d.push(!1))):d.push(!1),x++)}B||(d=!1)}else if($.L(b,cs))for(this.gg()?(m=this.Vc(l-1,!0,k,a),m=u?Tw(this,u,m)?null:m:m):m=null,t=0;tl||1=la&&h.call(f,la,m,r,t,l),u==e-1&&(la=a.transform(J,1),0<=la&&1>=la&&h.call(f,la,m,r,t,l))),ma=$.A(v)?v[u]:v,this.ce(k,p,u, +l,!0,b,ma&&0<=p&&1>=p);this.labels().X()}this.title().ba(!1);this.labels().ba(!1);this.ab().ba(!1);c.ba(!1);d.ba(!1);return this};$.g.remove=function(){this.eb&&this.eb.remove();this.line&&this.line.parent(null);this.Ia().remove();this.hb().remove();this.Aa&&this.Aa.remove();this.Vb&&this.Vb.remove()};$.g.kn=function(){this.Si=this.b=null;this.Rd();this.o(this.ke,9)}; +$.g.Ko=function(a,b){var c=this.scale(),d,e=!0,f=!1;if($.L(c,$.As)){var h=c.Ia().names()[a];var k=b;var l=d="string";e=!1}else $.L(c,$.rs)?(h=$.Er(b),d="string",l="date-time",k=b,f=!0):(h=(0,window.parseFloat)(b),k=(0,window.parseFloat)(b),d=l="number");h={axis:{value:this,type:""},index:{value:a,type:"number"},value:{value:h,type:d},tickValue:{value:k,type:l},scale:{value:c,type:""}};e&&(h.max={value:$.n(c.max)?c.max:null,type:"number"},h.min={value:$.n(c.min)?c.min:null,type:"number"});f&&(e=c.Ia(), +h.intervalUnit={value:e.kP(),type:"string"},h.intervalUnitCount={value:e.lP(),type:"number"},e=c.hb(),h.minorIntervalUnit={value:e.kP(),type:"string"},h.minorIntervalUnitCount={value:e.lP(),type:"number"});c={};c["%AxisName"]={value:this.title().text(),type:"string"};e=new $.dv(h);e.Al({"%AxisScaleMax":"max","%AxisScaleMin":"min"});e.Bl(c);return $.Nu(e)};$.g.vb=function(){var a=this.orientation();return"top"==a||"bottom"==a}; +$.g.F=function(){var a=$.Rw.B.F.call(this);a.title=this.title().F();a.labels=this.labels().F();a.minorLabels=this.ab().F();a.ticks=this.Ia().F();a.minorTicks=this.hb().F();a.stroke=$.Kl(this.stroke());a.staggerMode=this.Mz();a.staggerLines=this.IS();a.staggerMaxLines=this.JS();a.width=this.width();this.te&&(a.orientation=this.te);a.drawFirstLabel=this.Ih();a.drawLastLabel=this.gg();a.overlapMode=this.hi();return a}; +$.g.$=function(a,b){$.Rw.B.$.call(this,a,b);"title"in a&&this.title(a.title);this.labels().da(!!b,a.labels);this.ab().da(!!b,a.minorLabels);this.Ia(a.ticks);this.hb(a.minorTicks);this.Mz(a.staggerMode);this.IS(a.staggerLines);this.JS(a.staggerMaxLines);this.stroke(a.stroke);this.width(a.width);this.orientation(a.orientation);this.Ih(a.drawFirstLabel);this.gg(a.drawLastLabel);this.hi(a.overlapMode)}; +$.g.U=function(){$.Rw.B.U.call(this);this.wm&&$.Dq(this.wm,this.kg,this);delete this.wm;this.eb=this.oj=this.fh=null;$.wd(this.Ra,this.line,this.Aa,this.Vb);this.Vb=this.Aa=this.lp=this.Qc=this.ub=this.line=this.Ra=null};$.H(Ww,$.Rw);$.ft(Ww,$.Rw);var CD=$.Rw.prototype;CD.staggerMode=CD.Mz;CD.staggerLines=CD.IS;CD.staggerMaxLines=CD.JS;CD.title=CD.title;CD.labels=CD.labels;CD.minorLabels=CD.ab;CD.ticks=CD.Ia;CD.minorTicks=CD.hb;CD.stroke=CD.stroke;CD.orientation=CD.orientation;CD.scale=CD.scale; +CD.width=CD.width;CD.getRemainingBounds=CD.od;CD.drawFirstLabel=CD.Ih;CD.drawLastLabel=CD.gg;CD.overlapMode=CD.hi;CD.isHorizontal=CD.vb;CD.padding=CD.padding;CD.getPixelBounds=CD.lb;CD=Ww.prototype;$.G("anychart.standalones.axes.linear",function(){var a=new Ww;a.K($.jm("standalones.linearAxis"));return a});CD.padding=CD.padding;CD.draw=CD.X;CD.parentBounds=CD.ka;CD.container=CD.O;$.H($.Xw,St);$.Xw.prototype.ta=St.prototype.ta|4;$.Xw.prototype.na=St.prototype.na;var DD={};$.Pp(DD,[[0,"align",$.rk],[0,"scaleRangeMode",fl]]);$.bq($.Xw,DD);$.g=$.Xw.prototype;$.g.gc=function(){return this.La};$.g.IN=function(a){if($.n(a)){var b="gantt"==(a&&$.F(a.Ma)&&a.Ma());if(a=b?a==this.j?null:a:$.ps(this.j,a,null,15,null,this.kg,this)){var c=this.j==a;this.j=a;var d=this.ma||this.ad&&this.ad.scale();d?a.ba(!1):b||a.ba(c);c||d||this.o(4,13)}}}; +$.g.ho=function(a){if($.n(a)){var b="gantt"==(a&&$.F(a.Ma)&&a.Ma());if(a=b?a==this.ma?null:a:$.ps(this.ma,a,null,15,null,this.kg,this)){var c=this.ma==a;this.ma=a;b||a.ba(c);c||this.o(4,13)}return this}return this.ma||this.ad&&this.ad.scale()||this.j};$.g.SX=function(){return!!this.ma};$.g.kg=function(a){if(a.target==this.ho()){var b=0;$.W(a,4)&&(b|=4);$.W(a,2)&&(b|=1);this.o(4,b|8)}};$.g.iU=function(){this.o(4,9)}; +$.g.axis=function(a){return $.n(a)?(this.ad!=a&&(this.ad&&$.Dq(this.ad,this.iU,this),this.ad=a,$.U(this.ad,this.iU,this),this.o(4,13)),this):this.ad};$.g.Tm=function(a,b,c,d){this.rg||(this.rg=new $.ot);return $.n(a)?(this.rg.K.apply(this.rg,arguments),this):this.rg};$.g.se=function(a){return $.n(a)?(a=$.tk(a),this.b!=a&&(this.b=a,this.o(4,9)),this):this.b?this.b:this.ad?(a=this.ad.orientation(),"left"==a||"right"==a?"horizontal":"vertical"):this.D};$.g.vb=function(){return"horizontal"==this.se()}; +$.g.yc=function(){var a=$.Xw.B.yc.call(this)&&!(null==this.g||!this.ho());if(!a)return a;a=this.scale().transform(this.g,.5);if(0<=a&&1>=a)return this.o(6),!0;this.remove();this.I(6);return!1};$.g.UW=function(){var a=this.u("rotation");return null==a||(0,window.isNaN)(a)?this.vb()?0:-90:a};$.g.lN=function(){var a=this.u("align");if(this.vb()){if("left"==a)return"left-center";if("right"==a)return"right-center"}else{if("top"==a)return"center-top";if("bottom"==a)return"center-bottom"}return"center"}; +$.g.wy=function(){var a=this.u("anchor");if(!a||"auto"==a)switch(this.lN()){case "center-top":case "right-center":a="right-center";break;case "center-bottom":case "left-center":a="left-center";break;default:a="center"}return a};$.g.WW=function(){return this.f}; +$.g.ka=function(a,b,c,d){return $.n(a)?(null===a||$.L(a,$.K)?this.f=a:"object"==$.ka(a)?this.f=new $.K(a.left,a.top,a.width,a.height):this.f=new $.K(a||0,b||0,c||0,d||0),this.kn(),this):null!=this.g&&this.ho()&&this.f?(a=this.f.clone(),b=this.scale().transform(this.g,.5),this.vb()?(a.height=0,a.top=Math.round(this.f.top+this.f.height-b*this.f.height)):(a.width=0,a.left=Math.round(this.f.left+b*this.f.width)),a):null};$.g.Vp=function(){return $.Xw.B.Vp.call(this)|4};$.g.Hs=function(){return[$.Zw(this)]}; +$.g.F=function(){var a=$.Xw.B.F.call(this);$.mq(this,DD,a,"TextBase");this.b&&(a.layout=this.b);return a};$.g.$=function(a,b){$.Xw.B.$.call(this,a,b);$.eq(this,DD,a,b);"layout"in a&&a.layout&&this.se(a.layout);if("axis"in a){var c=a.axis;$.ea(c)?this.La&&this.axis(this.La.fE(c)):c.Ow&&c.Ow()&&this.axis(c)}};$.g.U=function(){$.vd(this.rg);this.ad=this.La=this.rg=null;$.Xw.B.U.call(this)};$.H($.$w,$.qs);$.g=$.$w.prototype;$.g.Ma=function(){return"linear-color"};$.g.QO=function(a){var b,c=[];var d=0;for(b=arguments.length;d=f.offset?b=f:c=f}var h;b?c?h=$.Dl(c.color,b.color,(a-b.offset)/(c.offset-b.offset)):h=b.color:h=c.color;return $.A(h)?$.Wb(h):h.color}; +$.g.YN=function(a){this.jb();a=$.xl($.El(a).hj);var b;var c=0;for(b=this.De.length;c=d?(l=d-1,f=!0):l--;var m=$.n(c[k].Sp)?c[k].Sp:(c[k].start+c[k].end)/2,p=$.n(c[l].Sp)?c[l].Sp:(c[l].start+c[l].end)/2;e.push(k==l?m:[m,p])}return e};$.H($.cx,cs);$.g=$.cx.prototype;$.g.Ma=function(){return"ordinal-color"};$.g.FJ=function(){this.op()};$.g.Ek=function(a){if($.n(a))return null===a?this.De=[]:$.A(a)&&(this.De=$.La(a)),this.op(),this.pa(2),this;if($.A(this.De)){this.sz||(this.sz=$.La(this.De));if(this.sz.length "+c.start:"< "+c.end;c.name||(c.name=d);this.wj.push(d)}}return this.wj};$.g.ex=function(a){return $.n(a)?(this.pd!=a&&(this.pd=a,this.SQ||(this.Gq=$.jm("defaultOrdinalColorScale.autoColors")(this.pd.length)),this.op(),$.zs(this.Ia()),this.pa(4)),this):this.pd};$.g.aq=function(){this.jb();this.names();return this.kk}; +$.g.sm=function(a){this.jb();var b=null;if(this.kk)for(var c=this.kk.length;c--;){var d=this.kk[c];if($.n(d.Sp)&&d.Sp===a||a>=d.start&&a<=d.end&&-1d.length-1?d[d.length-1]:d[c])}}return b}; +$.g.YN=function(a){this.jb();a=$.El(a).hj;for(var b=window.NaN,c=0,d=this.kk.length;cb.start?1:a.startb.start?a.sourceIndex>b.sourceIndex?b.end=a.start:(a.start=b.end,a.start>=a.end&&(a.enabled=!1)):a.startb.sourceIndex?(b.start=a.end,b.start>=b.end&&(b.enabled=!1)):a.end=b.start:a.sourceIndex>b.sourceIndex?(b.start=a.end,b.start>=b.end&&(b.enabled= +!1)):(a.end=b.start,a.start>=a.end&&(a.enabled=!1)));return c});h=[];e=0;for(d=a.length;eb?-1E-5:0);this.f.push(b);b=a.i("x");var c=a.i("value"),d;if(d=a.i("label"))d=d.Ac().value,this.b.push(b,c),this.f.push(d.x,d.y);if(d=a.i("marker"))d=d.Ac().value,this.b.push(b,c),this.f.push(d.x,d.y)}}; +zx.prototype.Xl=function(){for(var a=this.R.Af(),b=0;a.advance();)if(!a.i("missing")){a.i("size",this.coords[b++]);this.R.pe.Ur(a);var c=a.i("label");c&&(c.Ac({value:{x:this.coords[b++],y:this.coords[b++]}}),c.X());if(c=a.i("marker"))c.Ac({value:{x:this.coords[b++],y:this.coords[b++]}}),c.X()}};zx.prototype.Tk=function(){this.Xl()};$.H(Ax,$.yx);Ax.prototype.update=function(){this.g=pz(this.R);this.qa=this.R.u("isVertical");var a=this.R.clip();$.da(a)&&!a&&(this.g=this.R.gc().lb());this.qa?(this.b[0]=this.g.top,this.R.Sa().af()||(this.b[0]+=this.g.height),this.b[1]=0,(0,window.isNaN)(this.G)&&(this.G=this.g.height),this.f[0]=this.g.top):(this.b[0]=this.g.left,this.R.Sa().af()&&(this.b[0]+=this.g.width),this.b[1]=0,(0,window.isNaN)(this.G)&&(this.G=this.g.width),this.f[0]=this.g.left);this.f[1]=this.G}; +Ax.prototype.Xl=function(){this.qa?(this.g.top=this.coords[0],this.g.height=this.coords[1]):(this.g.left=this.coords[0],this.g.width=this.coords[1]);this.R.Mx(this.g)};Ax.prototype.Tk=function(){this.qa?(this.g.top=this.coords[0],this.g.height=this.coords[1]):(this.g.left=this.coords[0],this.g.width=this.coords[1]);this.R.Mx(this.g);this.G=window.NaN};$.H(Bx,$.yx); +Bx.prototype.update=function(){this.g=this.R.u("isVertical");this.b.length=this.f.length=0;for(var a=this.R.Af();a.advance();)if(!a.i("missing")){var b=a.i("x");(0,window.isNaN)(a.i("destinationValue"))&&a.i("destinationValue",a.i("value"));var c=a.i("destinationValue"),d=a.i("zero");this.b.push(d);this.f.push(c);if(c=a.i("label"))c=c.Ac().value,this.g?this.b.push(d,b):this.b.push(b,d),this.f.push(c.x,c.y);if(c=a.i("marker"))c=c.Ac().value,this.g?this.b.push(d,b):this.b.push(b,d),this.f.push(c.x,c.y)}}; +Bx.prototype.Xl=function(){for(var a=this.R.Af(),b=0;a.advance();)if(!a.i("missing")){a.i("value",this.coords[b++]);this.R.pe.Ur(a);var c=a.i("label");c&&(c.Ac({value:{x:this.coords[b++],y:this.coords[b++]}}),c.X());if(c=a.i("marker"))c.Ac({value:{x:this.coords[b++],y:this.coords[b++]}}),c.X()}};Bx.prototype.Tk=function(){this.Xl()};var JD={};JD.bar=Bx;JD.bubble=zx;JD.area=Ax;JD.line=Ax;JD["range-area"]=Ax;JD["range-spline-area"]=Ax;JD["range-step-area"]=Ax;JD.spline=Ax;JD["spline-area"]=Ax;JD["step-area"]=Ax;JD["step-line"]=Ax;JD.column=Bx;JD["jump-line"]=Bx;JD.stick=Bx;JD.mekko=Bx;$.H($.Ex,$.X);$.Dx($.Ex,"dataarea","appearance");$.g=$.Ex.prototype;$.g.ta=$.X.prototype.ta;$.g.background=function(a){this.za||(this.za=new $.gt,$.U(this.za,this.fg,this));return $.n(a)?(this.za.K(a),this):this.za};$.g.fg=function(){$.Eq(this,"dataarea","appearance",1)};$.g.remove=function(){this.va&&this.va.parent(null)};$.g.Mx=function(a){this.va&&this.va.clip(a)}; +$.g.X=function(){if(!this.yc())return this;this.va||(this.va=$.Uj());this.J(8)&&(this.va.zIndex(this.zIndex()),this.I(8));this.J(2)&&(this.va.parent(this.O()),this.I(2));this.J(4)&&($.Eq(this,"dataarea","appearance"),this.I(4));if($.Gq(this,"dataarea","appearance")){var a=this.background();$.V(a);a.O()||a.O(this.va);a.ka(this.ka());a.ba(!1);a.X();$.Fq(this,"dataarea","appearance")}return this};$.g.F=function(){var a=$.Ex.B.F.call(this);a.background=this.background().F();return a}; +$.g.$=function(a,b){$.Ex.B.$.call(this,a,b);this.background().da(!!b,a.background)};$.g.U=function(){$.wd(this.za);this.za=null;$.Ex.B.U.call(this)};var KD=$.Ex.prototype;KD.background=KD.background;$.H($.Fx,$.aw);$.Dx($.Fx,"serieschart","dataarea");$.Fx.prototype.na=$.aw.prototype.na|61440;$.Fx.prototype.Ai={};$.Fx.prototype.Np=function(a){return $.n(a)?(this.jw=a,this):this.jw||{}};$.Fx.prototype.tr=function(a){return String(a)};var LD=function(){var a={};$.Pp(a,[[0,"defaultSeriesType",function(a){return this.tr(a)}],[0,"pointWidth",$.no],[0,"maxPointWidth",$.no],[0,"minPointLength",$.no],[0,"baseline",$.Xp]]);return a}();$.bq($.Fx,LD);$.g=$.Fx.prototype; +$.g.lu=function(a){a=this.tr(a);var b=this.Ai[a];b&&b.sb in $.MD?a=[a,b]:($.hl(4,null,[a+" series"]),a=null);return a};$.g.UI=function(a){return a.check(32768)?31:30};$.g.vS=function(a){var b=this.$a[this.$a.length-1];b=b?b.qg()+1:0;this.$a.push(a);a.qg(b);$.ez(a);a.qp(this.fc().kc(b));$.hz(a,this.ef().kc(b));a.uv(this.Od().kc(b));a.ib(this);$.U(a,this.lL,this)}; +$.g.Td=function(a,b,c){var d=this.lu(a);d?(a=d[0],a=this.St(a,d[1]),a.data(b,c),this.vS(a),this.o((a.check($.oz)?4:0)|492288,1)):a=null;return a};$.g.xk=function(a){var b=[],c=this.u("defaultSeriesType"),d=arguments.length;$.V(this);if(d)for(var e=0;ec&&(h.Ys=c);h.Xsc&&(h.Ys=c),h.Xsc){c=mb;var cg=la}if(Fbe){e=Kc;var dg=la}if(Kck){k=Nb;var ih=la}if(ofm){m=Jd;var If=la}if(Jdf+k||eh+l)return null;b=[];var m=this.be();if("by-spot"==m.jd())for(c=m.cC(),this.lk?(d=(l-(e-c-h))/l,f=(l-(e+c-h))/l,h=a,a=e,e=h):(d=(a-c-f)/k,f=(a+c-f)/k),h=0,k=this.$a.length;hthis.gI()&&f.Sa(b[e.xScale]),"yScale"in e&&e.yScale>this.gI()&&f.Ya(b[e.yScale]))}};$.g.OZ=function(a,b,c){var d,e=[];for(d=0;d=l.rb()&&a<=l.Xa()&&d>=l.Tb()&&d<=l.Na()?($.V(this),this.mw(this.Tj,!0,a,d),this.mw(this.Uj,!1,a,d),this.ba(!0)):this.xd()}}; +$.g.DA=function(a,b,c,d){var e=b?this.zq:this.Aq;if((b=this.u(b?"xStroke":"yStroke"))&&!$.No(b)){b=this.ka();var f=b.Xa()-b.rb(),h=b.Na()-b.Tb(),k=c-b.rb(),l=d-b.Tb();d=0==e.Bv()%2?0:-.5;c=a.vb();a=a.scale();f=c?f:h;h=c?b.rb():b.Tb();a=a.transform(a.Pc((c?k:l)/f),.5);0>a||1e||1=b.Xa()||a<=b.Tb()||a>=b.Na())&&this.xd()};$.g.remove=function(){this.xd()};$.g.U=function(){this.Pk&&(this.Pk.dc("mouseover",this.yh,!1,this),this.Pk.dc("mousemove",this.yh,!1,this),this.Pk.dc("mouseout",this.xh,!1,this),this.Pk=null);$.wd(this.zq,this.Aq,this.Tj,this.Uj);this.zq=this.Aq=this.Tj=this.Uj=null;$.py.B.U.call(this)}; +$.g.enabled=function(a){return $.n(a)?(this.ga.enabled!=a&&(this.ga.enabled=a,this.o(1,32777),this.ga.enabled?this.ba(!0):(0,window.isNaN)(this.tn)&&$.V(this)),this):this.u("enabled")};$.g.F=function(){var a=$.py.B.F.call(this);$.mq(this,XD,a,"Crosshair");var b;var c=[];for(b=0;b=this.b.length?this.xf[a-this.b.length]:this.b[a]};$.g.Dy=function(a){return this.b[a]};$.g.Gy=function(a){return this.xf[a]};$.g.e_=function(a){a.scale(this.Ya())};$.g.xP=function(){return 2097152};$.g.CV=function(){return new $.by}; +$.g.Am=function(a,b){var c=$.P(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.Ri[c];e||(e=this.CV(),e.La=this,e.K(this.Tq()),$.cy(e,this.lk?"vertical":"horizontal"),this.Ri[c]=e,$.U(e,this.iz,this),this.o(5242880,1));return $.n(d)?(e.K(d),this):e};$.g.IV=function(){return new $.fy}; +$.g.Hm=function(a,b){var c=$.P(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.Ti[c];e||(e=this.IV(),e.La=this,e.K(this.Uq()),$.gy(e,this.lk?"vertical":"horizontal"),this.Ti[c]=e,$.U(e,this.iz,this),this.o(5242880,1));return $.n(d)?(e.K(d),this):e};$.g.LV=function(){return new $.iy}; +$.g.Nm=function(a,b){var c=$.P(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.Zi[c];e||(e=this.LV(),e.La=this,e.K(this.Vq()),$.Yw(e,this.lk?"vertical":"horizontal"),this.Zi[c]=e,$.U(e,this.iz,this),this.o(5242880,1));return $.n(d)?(e.K(d),this):e};$.g.iz=function(a){var b=4194304;$.W(a,4)&&(b|=327680);this.o(b,1)};$.g.pQ=function(a){for(var b=0,c=$.Ja(this.Ri,this.Ti,this.Zi),d=0;dc.top&&(e=new $.K(c.left,c.top,c.width,u.top-c.top));break;case "bottom":Cc.left&&(e=new $.K(c.left,v,u.left-c.left,w));break;case "right":Eh);q=0;for(d=f.length;qd?("layout"in e||(e.layout=a.vb()?"horizontal":"vertical"),"scale"in e||$.ay(e,"scale",a.scale(),b,c)):e.axis=d;return e}; +$.g.fS=function(a,b,c,d){var e=a.F();a.SX()&&$.ay(e,"scale",a.ho(),b,c);if(a=a.axis())d=(0,$.Ca)(d,$.ra(a)),0>d?("layout"in e||(e.layout=a.vb()?"horizontal":"vertical"),"scale"in e||$.ay(e,"scale",a.scale(),b,c)):e.axis=d;return e};$.g.U=function(){$.wd(this.b,this.xf,this.Ri,this.Ti,this.Zi,this.Gg,this.Ig,this.Ug,this.Vg,this.gb,this.P,this.Sb);delete this.b;delete this.xf;this.Sb=this.P=this.gb=this.Vg=this.Ug=this.Ig=this.Gg=this.Zi=this.Ti=this.Ri=null;$.By.B.U.call(this)};var aE=$.By.prototype; +aE.isVertical=aE.qa;$.g=$.Hy.prototype;$.g.ia=function(){return this.index};$.g.gc=function(){return this.wa};$.g.get=function(a){return this.wa.data().get(this.index,a)};$.g.set=function(a,b){this.wa.data().set(this.index,a,b);return this};$.g.kb=function(a){var b=this.gc(),c=$.Sv(b.state,1,this.index);return $.n(a)&&c!=a?(a?b.Ni(this.index):b.qd(this.index),this):c};$.g.selected=function(a){var b=this.gc(),c=$.Sv(b.state,2,this.index);return $.n(a)&&c!=a?(a?b.select(this.index):b.Cd(this.index),this):c}; +$.g.rw=function(){return this.indexb?this.Qd&&(p="high",k="highHatchFill"):this.Me&&(p="low",k="lowHatchFill"),h.path=p,h.qc=k):f?(this.R.bg()||(this.ea?ab||(0,window.isNaN)(b)?(p="rising",k="risingHatchFill"):ab||(0,window.isNaN)(b)?(l="risingStroke",m="risingFill",k="risingHatchFill"):aa;a=Math.abs(a);a=(a-this.cR)/(this.rY-this.cR);if((0,window.isNaN)(a)||!(0,window.isFinite)(a))a=.5;a=this.dR+a*(this.sY-this.dR);return b?-a:a};$.g.ae=function(){return this.jt.u("yValues")};$.g.ol=function(){return this.va};$.g.gc=function(){return this.wa};$.g.aa=function(){return this.iterator||this.vc()};$.g.vc=function(){return this.iterator=this.Af()};$.g.Mo=function(){return this.wa.Sa()}; +$.g.Ya=function(a){if($.n(a)){if(a){if(a=$.ps(this.Lc,a,null,15,null,this.kg,this)){var b=this.Lc==a;this.Lc=a;this.Lc.ba(b);b||this.o(1024,5)}}else this.Lc&&(this.Lc&&$.Dq(this.Lc,this.kg,this),this.Lc=null,this.o(1024,5));return this}return this.Lc||this.Ke.Ya()};$.g.kg=function(a){var b=0;$.W(a,4)&&(b|=4);$.W(a,2)?this.o(1024,b|1):this.pa(b)};$.g.uq=function(a,b){return this.ve(this.Mo().transform(a,b),!0)};$.g.zp=function(a,b){return this.ve(this.Ya().transform(a,b),!1)}; +$.g.yi=function(a){return $.n(a)?(this.jt.K(a),this):this.jt};$.g.error=function(a){Sx(this)||$.jl(12,void 0,[this.ko()]);this.fu||(this.fu=new bz(this),$.U(this.fu,this.$ba,this));return $.n(a)?(this.fu.K(a),this):this.fu};$.g.$ba=function(a){var b=0;$.W(a,1)&&(b|=1);$.W(a,4)&&(b|=4);this.o(1024,b)};$.g.dr=function(a){return this.error().dr(a)}; +$.g.jP=function(a){var b=a?this.error().IG():this.error().BG();if($.F(b)){var c=this.Ne();b=$.Zb(b.call(c,c))}if(this.Ir()){var d=this.dX(a?"xErrorStroke":"valueErrorStroke");$.F(d)?(c=this.Ne(b),d=$.Zb(d.call(c,c))):d&&(d=$.Zb(d))}return d||b}; +$.g.JO=function(a){if(a=!a.i("missing")){var b=this.error(),c=b.xa.aa();a=c.get("xError")||b.rC();var d=c.get("xLowerError")||b.sC(),e=c.get("xUpperError")||b.tC(),f=c.get("valueError")||b.nC(),h=c.get("valueLowerError")||b.oC();b=c.get("valueUpperError")||b.pC();f=$.n(h)||$.n(b)||$.mo(f)||!$.ro(f);a=$.n(d)||$.n(e)||$.mo(a)||!$.ro(a)||f}if(a)switch(a=this.error(),d=a.mode(),e=this.u("isVertical"),d){case "x":a.X(!0,e);break;case "value":a.X(!1,e);break;case "both":a.X(!0,e),a.X(!1,e)}}; +$.g.clip=function(a){return $.n(a)?(null===a&&(a=!1),this.yf!=a&&(this.yf=a,this.o(4096,1)),this):this.yf};$.g.nr=function(a){this.Wo||(this.Wo=new $.dz,$.U(this.Wo,this.vR,this));return $.n(a)?(this.Wo.K(a),this):this.Wo};$.g.vR=function(a){var b=64,c=!1;$.W(a,8)&&(b|=8,c=!0);this.pa(b,c)}; +$.g.XA=function(a){var b=this.nr();b.I(b.na);var c=Rt.prototype.F.call(b);$.n(b.Sn())&&(c.iconTextSpacing=b.Sn());var d=b.u("text");$.n(d)&&(c.text=d);$.n(b.Iw())&&(c.iconEnabled=b.Iw());$.n(b.Qs())&&(c.iconType=b.Qs());$.n(b.Ro())&&(c.iconSize=b.Ro());$.n(b.fn())&&(c.iconFill=b.fn());$.n(b.hn())&&(c.iconStroke=b.hn());$.n(b.gn())&&(c.iconHatchFill=b.gn());$.n(b.Du())&&(c.iconMarkerType=b.Du());$.n(b.Os())&&(c.iconMarkerFill=b.Os());$.n(b.Ps())&&(c.iconMarkerStroke=b.Ps());$.n(b.disabled())&&(c.disabled= +b.disabled());b=this.u("color");d=this.BD();a=c.text||a;$.z(a)&&(a=$.rt($.pt.rd(),a));c.text=$.F(a)?a.call(d,d):this.ZW(d);c.disabled="disabled"in c?!!c.disabled:!this.enabled();c.meta=this.i();"marker"!=c.iconType||this.check(8192)||(c.iconFill=this.ja.xb().fill(),c.iconStroke=this.ja.xb().stroke());c.iconType=this.WA(c.iconType,d);c.iconEnabled="iconEnabled"in c?!!c.iconEnabled:!0;c.iconStroke=this.oE(c.iconStroke,2,b,d);c.iconFill=this.oE(c.iconFill,1,b,d);c.iconHatchFill=this.oE(c.iconHatchFill, +3,this.tg(),d);this.check(4194304)&&this.ja.xb().enabled()?(c.iconMarkerType=c.iconMarkerType||this.ja.xb().type(),c.iconMarkerFill=c.iconMarkerFill||this.ja.xb().fill(),c.iconMarkerStroke=c.iconMarkerStroke||this.ja.xb().stroke()):(c.iconMarkerType=null,c.iconMarkerFill=null,c.iconMarkerStroke=null);return c};$.g.WA=function(a){"marker"==a?(this.check(8192)?a=this.u("type"):this.check(4194304)?a=this.ja.xb().type():a="square","line"==a&&(a="v-line")):$.F(a)||(a=$.Kk(a));return a}; +$.g.oE=function(a,b,c){if(a)$.F(a)?(b={sourceColor:c},a=a.call(b,b)):a=$.Kl(a);else{if(2==b)a="stroke";else if(3==b){if(this.check(8))return null;a="hatchFill"}else this.check(8)?(a="stroke",b=2):a="fill";a=$.Vl(a,b,!1)(this,$.Zl,!0)}return a};$.g.ZW=function(){return this.name()};$.g.bb=function(a){if(!this.Qz&&(this.Qz=new $.Su(0),this.wa.s_())){var b=this.wa,c=b.bb();this.Qz.parent(c);this.Qz.wa(b)}return $.n(a)?(this.Qz.K(a),this):this.Qz}; +$.g.oe=function(a){if($.n(a)){if(null===a&&this.ac)this.ac=null,this.o(65536,129);else if(a=$.ps(this.ac,a,null,48,null,this.Nq,this)){var b=this.ac==a;this.ac=a;this.ac.ba(b);b||this.o(65536,129)}return this}return this.ac};$.g.rm=ba(20);$.g.Nq=function(a){$.W(a,6)&&this.o(65536,129)};$.g.Pa=function(a){return $.n(a)?(this.ja.K(a),this):this.ja};$.g.kb=function(a){return $.n(a)?(this.Ha.K(a),this):this.Ha};$.g.selected=function(a){return $.n(a)?(this.Ja.K(a),this):this.Ja}; +$.g.dX=function(a){return this.Ir()?this.aa().get(a):void 0};$.g.Of=function(a){return null!=this.ga[a]};$.g.u=function(a){var b=this.ga[a];null==b&&(b=this.Ea[a],null!=b||(b=this.Dd[a]));return b};$.g.nE=function(a){return null!=this.ga[a]?this.ga[a]:null!=this.Ke.ga[a]?this.Ke.ga[a]:null!=this.wa.ga[a]?this.wa.ga[a]:null!=this.Ea[a]?this.Ea[a]:null!=this.Ke.Ea[a]?this.Ke.Ea[a]:null!=this.wa.Ea[a]?this.wa.Ea[a]:this.Dd[a]}; +$.g.pc=function(a,b,c,d,e,f,h){var k=0==b?this.ja:1==b?this.Ha:this.Ja;if(h)return d(k.u(a));if(this.Ir()){h=c.get(0==b?"normal":1==b?"hovered":"selected");var l=$.Lo($.n(h)?h[a]:void 0,c.get($.dm(b,a)),k.u(a))}if($.n(l))l=d(l);else{a=f||a;if(a in this.Ca&&(l=this.u(a),$.n(l)))return d(l);e&&(k=this.Ja);l=k.ga[a];null==l&&(l=k.Ea[a],null!=l||b||(l=this.Dd[a]),$.n(l)&&(l=d(l)))}return l};$.g.TW=function(){return this.O()}; +$.g.SW=function(a){var b=this.u("isVertical");this.Ya().af()&&(a=!a);return b?a?0:180:a?270:90};$.g.VN=function(a){return"low"==a||"lowest"==a?!1:"high"==a||"highest"==a?!0:0<=(Number(this.aa().get(a))||0)};$.g.vZ=function(a){return $.yo(a,180)}; +$.g.lV=function(a,b){var c=$.bn(a.mk(b,void 0,{anchor:b.hm()})),d=b.hm(),e=b.uc("rotation");d=$.yo(d,-e);if($.Co(d)&&c.leftthis.fa.left+this.fa.width){var f=d;d=(0,$.Ca)($.uo,f);0<=d&&(f=$.uo.length,f=$.uo[(f-d)%f]);d=f}if($.Ao(d)&&c.topthis.fa.top+this.fa.height)c=(0,$.Ca)($.uo,d),0<=c&&(d=$.uo.length,d=$.uo[(d-c+4)%d]);d=$.yo(d,e);b.hm(d)}; +$.g.uS=function(a,b,c,d,e,f,h,k,l,m,p,q,r){$.Et(a,$.fo([r,0,h,0,q,$.ao,f,$.ao,p,$.ao,e,$.ao,m,0,d,0,l,$.ao,c,$.ao,k,$.ao,b,$.ao,q,$.bo,f,$.bo,e,$.bo,a,$.co,l,$.bo,c,$.bo,b,$.bo]))}; +$.g.xI=function(a,b,c,d,e,f,h){var k=a[0],l=e?k.re(c):k.Zp(c);l?(e&&l.zf(e),l.Ac(d)):l=e?k.add(e,d,c):k.add(d,c);l.Th();e?(a=l,b.unshift(a),this.uS.apply(this,b),b=a.uc("anchor"),Ht(a,this.u("isVertical")),$.n(h)&&"auto"==b&&(a.hm(Gba(this,h,Number(a.uc("rotation"))||0)),this.lV(k,a))):(h=a[1]||k,b=this.aa().i(this.check(8)?"markerStroke":"markerFill"),$.n(b)&&(b=k==this.ja.nk()?$.n(b)?b:$.Vl("fill",1,!1)(this,$.Zl,!0):this.qu(b),c=$.Jl(b),d=k.By().stroke||h.By().stroke||a[2]&&$.n(a[2].stroke)||a[3]&& +$.n(a[3].stroke),k.By().fill||h.By().fill||a[2]&&$.n(a[2].fill)||a[3]&&$.n(a[3].fill)||!Wl(b)||(l.dG(b),!d&&Wl(c)&&l.eG(c))),$.kw(l,h),l.Xc(a[2],a[3]));f&&l.X();return l};$.g.labels=function(a){return $.n(a)?(this.ja.labels(a),this):this.ja.labels()};$.g.xg=function(a){return $.n(a)?(this.ja.xg(a),this):this.ja.xg()};$.g.wg=function(a){return $.n(a)?(this.ja.wg(a),this):this.ja.wg()};$.g.Ud=function(a){$.W(a,1)&&this.o(256,1025)}; +$.g.Hf=function(a,b,c){var d=this.gc(),e=[this.ja.labels,this.Ha.labels,this.Ja.labels],f=this.FH()?[d.Pa().labels,d.kb().labels,d.selected().labels]:[],h=["label","hoverLabel","selectLabel"];a.i("isMaxPoint")?(e.push(this.ja.wg,this.Ha.wg,this.Ja.wg),this.FH()&&f.push(d.Pa().wg,d.kb().wg,d.selected().wg),h.push("maxLabel","hoverMaxLabel","selectMaxLabel")):a.i("isMinPoint")&&(e.push(this.ja.xg,this.Ha.xg,this.Ja.xg),this.FH()&&f.push(d.Pa().xg,d.kb().xg,d.selected().xg),h.push("minLabel","hoverMinLabel", +"selectMinLabel"));a.i("label",$.mz(this,e,f,h,this.GB(),!0,null,a,b,c))};$.g.QM=function(){};$.g.xb=function(a){return $.n(a)?(this.ja.xb(a),this):this.ja.xb()};$.g.Xn=function(a){$.W(a,1)&&this.o(128,65)};$.g.Do=function(a,b,c){a.i("marker",$.mz(this,[this.ja.xb,this.Ha.xb,this.Ja.xb],[],["marker","hoverMarker","selectMarker"],this.GK(),!1,null,a,b,c))};$.g.qu=function(a){a=$.n(a)?a:$.Vl(this.check(8)?"stroke":"fill",1,!1)(this,$.Zl,!0,!0);return $.Nl(a,1,!0)};$.g.yw=function(){return $.Jl(this.ja.xb().fill())}; +$.g.nk=function(a){return $.n(a)?(this.ja.nk(a),this):this.ja.nk()};$.g.tca=function(a){$.W(a,1)&&this.o(128,1)};$.g.wI=function(a,b,c){var d=a.i("outliers");d&&d.length&&$.mz(this,[this.ja.nk,this.Ha.nk,this.Ja.nk],[],["outlierMarker","hoverOutlierMarker","selectOutlierMarker"],this.CR(),!1,d,a,b,c)};$.g.GB=function(){return!1};$.g.GK=function(){return!1};$.g.CR=function(){return!1};$.g.XY=function(){return!1};$.g.bg=function(){return!1};$.g.lz=function(){return!1}; +$.g.QB=function(){if(this.bg()&&this.hg()&&this.Vn()){var a=this.aa();for(a.reset();a.advance();)nz(a);nz(this.dJ());nz(this.cJ())}};$.g.remove=function(){this.check(4)?$.Uy(this.hf,null):this.va&&this.va.remove();var a=this.ja.labels();a.Kf()&&(a.Kf().remove(),a.o(2));if(a=this.ja.xb())a.remove(),a.o(2);if(a=this.ja.nk())a.remove(),a.o(2)}; +$.g.Cq=function(a){this.wk||(this.wk=new Fv(this),$.M(this,this.wk),$.U(this.wk,this.sR,this),$.L(this.wa,$.Tv)&&(Dv(this.wk,this.wa.Cq()),Dv(this.wk).pa(2)));return $.n(a)?(this.wk.K.apply(this.wk,arguments),this):this.wk};$.g.sR=function(){this.o(32,1)}; +$.g.X=function(){if(!this.yc())return this;$.V(this);$.n(this.Dd.color)&&this.J(16768)&&this.qp(this.Dd.color);this.J(32768)&&(this.KB(),this.I(32768));if(this.J(4)){this.fa=this.lb();this.oA=this.rg?this.rg.$i(this.fa):this.fa;var a=Math.min(this.fa.height,this.fa.width);this.dR=$.N(this.hba,a);this.sY=$.N(this.Taa,a);this.o(7168)}this.J(512)&&(this.vc(),this.GR(),this.o(68640,2049),this.I(512));this.eV();if(this.J(2048)){a=$.L(this.hf,$.Zy)?"shapes":"shapeNames";for(var b=this.vc();b.advance();){var c= +b.i(a),d=this.$p(b.ia());this.hf.ox(d,c)}}this.J(1024)&&this.o(24960);a=[];b=[];var e,f=!1;this.J(1026)&&(this.HR(),this.QF());this.J(1282)&&(c=this.ja.labels(),d=this.ja.xg().enabled()||this.ja.wg().enabled()||this.Ha.labels().enabled()||this.Ja.labels().enabled()||this.Ha.xg().enabled()||this.Ja.xg().enabled()||this.Ha.wg().enabled()||this.Ja.wg().enabled(),lz(this,c,d,this.GB(),$.tz,256)&&(d=this.zIndex()+this.AM+(this.bg()?1:0),c.Wg=d,c.o(8),this.check($.tz)&&a.push(this.Hf),b.push(c),f=!0),this.ja.xg().I(4294967295), +this.ja.wg().I(4294967295),this.Ha.xg().I(4294967295),this.Ha.wg().I(4294967295),this.Ja.xg().I(4294967295),this.Ja.wg().I(4294967295),this.I(256));this.J(1154)&&(c=this.ja.xb(),d=this.Ha.xb().enabled()||this.Ja.xb().enabled(),lz(this,c,d,this.GK(),4194304,128)&&(d=this.zIndex()+1.2E-5+(this.bg()?1:0),c.Wg=d,this.check(4194304)&&a.push(this.Do),b.push(c)),this.I(128));if(this.J(9218)){this.IA||(this.IA=[]);if(this.oy)for(;this.oy.length;)c=this.oy.pop(),c.clear(),c.parent(null),this.IA.push(c);else this.oy= +[];Sx(this)&&"none"!=this.error().mode()&&(this.XY()||Ux(this.error()))&&a.push(this.JO);this.I(8192)}this.J(17410)&&(c=this.ja.nk(),d=this.Ha.nk().enabled()||this.Ja.nk().enabled(),lz(this,c,d,this.CR(),256,16384)&&(d=this.zIndex()+1.1E-5,c.Wg=d,this.check(256)&&a.push(this.wI),b.push(c)),this.I(16384));c=a.length;if(this.J(1024)){if(d=this.VR()){var h=this.ae();this.JK(d,h);f&&this.QM();this.fd();f=this.vc();if(e=this.dJ())this.nF(e,h,d),this.lm(e,this.$p(e.ia()));var k=$.L(this.hf,$.Zy)?"shapes": +"shapeNames";for(f.reset();f.advance();){f.i("destinationValue",window.NaN);var l=this.$p(f.ia());this.nF(f,h,d);this.lm(f,l);e=f.i(k);this.hf.ox(l,e);for(e=0;e=e;if(null===h?0:!(0,window.isNaN)(k)&&0==k)e=this.u("isVertical"),h=this.Ya().af(),e=!(e^h);h=b.JE;k=a.i("valueRatio");k=$.n(k)?!k:!c;e?(c=-c,(0,window.isNaN)(b.mz)?(b.mz=f+c,c=b.mz,h||(k=!1)):(f=Math.min(f,b.mz),c=f+c,b.mz=c)):(0,window.isNaN)(b.dz)?(b.dz=f+c,c=b.dz,h||(k=!1)):(f=Math.max(f,b.dz),c=f+c,b.dz=c);a.i("value", +c);a.i("zero",f);a.i("skipDrawing",k)}return d};$.g.Maa=function(a,b,c,d){if(!a.i("missing")){var e=a.i("value");b=a.i("zero");var f=a.get("value"),h=Number(a.get("value"));c=Math.max(Math.abs(e-b),this.bR);e=b>=e;if(null===f?0:!(0,window.isNaN)(h)&&0==h)f=this.u("isVertical"),h=this.Ya().af(),e=!(f^h);e&&(c=-c);a.i("value",b+c)}return d}; +$.g.Kaa=function(a,b,c,d){if(!a.i("missing")){b=a.i("high");c=a.i("low");var e=(b+c)/2,f=Math.max(Math.abs(c-b),this.bR)/2;b>=c&&(f=-f);a.i("high",e-f);a.i("low",e+f)}return d}; +$.g.Paa=function(a,b,c,d,e){b=this.Ya();b={value:b.transform(a.i("stackedValue"),.5),zero:$.eb(b.transform(a.i("stackedZero"),.5),0,1),prevValue:b.transform(a.i("stackedValuePrev"),.5),prevZero:b.transform(a.i("stackedZeroPrev"),.5),nextValue:b.transform(a.i("stackedValueNext"),.5),nextZero:b.transform(a.i("stackedZeroNext"),.5)};this.eK(a,b,e);a.i("zeroMissing",a.i("stackedMissing"));if(e=a.i("shared")){c=Math.abs(b.value-b.zero);b=e.JE;var f=a.i("valueRatio");c=$.n(f)?!f:!c;e.fW||b||(c=!1,e.fW= +!0);a.i("skipDrawing",c)}return d};$.g.Haa=function(a,b,c,d){for(var e,f,h=this.Ya(),k=0;k=e){f=window.Infinity;e=-window.Infinity;var h=Math.min.apply(null,this.mZ);b=Math.max.apply(null,this.mZ);var k;for(k=0;kl&&(f=l))}f=(0,window.isFinite)(f)&&h>=f;b=(0,window.isFinite)(e)&&b<=e}a.i("isMinPoint", +f);a.i("isMaxPoint",b);return d};$.g.Qaa=function(a,b,c,d,e){for(var f=this.Ya(),h={},k=0;k=this.qe.Kh&&a<=this.qe.lastIndex};$.g.JX=function(){return null};$.g.aZ=function(){};$.g.HY=function(a){return a}; +$.g.KI=function(a,b){if(this.qe){var c=[];if(this.qe.Vz){var d=this.qe.Vz[$.io(a)];var e=this.qe.Vz[$.io(b)]}else d=$.Ta(this.qe.data,function(b){return a-b.data.x}),0>d&&(d=~d),e=$.Ta(this.qe.data,function(a){return b-a.data.x}),0>e&&(e=~e);if(!(0,window.isNaN)(d)&&!(0,window.isNaN)(e)){if(d>e){var f=d;d=e;e=f}for(e=Math.min(e,this.qe.data.length-1);d<=e;d++)c.push(d)}return c}c=this.Sa();if(e=$.L(c,$.As))a=c.xw(a),b=c.xw(b);return this.HD.KI(a,b,e)}; +$.g.vj=function(a,b){var c=this.aa();if(8===c.i("missing"))return b;var d=c.i("shapes");this.hg()&&(this.hf.un(a,d),this.hf.ox(a,d));this.check(256)&&this.wI(c,a,!0);this.pe.mC(c,a);this.check(4194304)&&this.Do(c,a,!0);this.check($.tz)&&this.Hf(c,a,!0);return b};$.g.kl=$.ia;$.g.Zj=function(a){var b=this.aa(),c=b.i("shapes");this.hf.un(a,c);this.pe.mC(b,a);this.check(256)&&this.wI(b,a,!0)};$.g.Lo=$.ia;$.g.mf=function(a){return $.n(a)?(a=null===a?null:$.jk(a),a!=this.jo&&(this.jo=a),this):this.jo}; +$.g.jd=function(a){return $.n(a)?this:this.wa.be().jd()};$.g.Ni=function(a){$.n(a)?this.Qh(a):this.Hj();return this};$.g.qd=function(a){var b;if(b=!$.Lv(this.state,1))b=!(this.state.Ki()&1);if(b||!this.enabled())return this;var c;$.n(a)?c=a:c=this.state.lc==$.Zl?window.NaN:void 0;this.state.Rg(1,c);return this}; +$.g.Qh=function(a){if(!this.enabled())return this;if($.A(a)){for(var b=$.Rv(this.state,1),c=0;cc&&(c=window.NaN);a.pointIndex=c}return a}; +$.g.wh=function(a){(a=this.Pf(a))&&this.dispatchEvent(a)}; +$.g.Pf=function(a){var b=a.type;switch(b){case "mouseout":b="pointmouseout";break;case "mouseover":b="pointmouseover";break;case "mousemove":b="pointmousemove";break;case "mousedown":b="pointmousedown";break;case "mouseup":b="pointmouseup";break;case "click":case "touchstart":b="pointclick";break;case "dblclick":b="pointdblclick";break;default:return null}var c;a.target!=this.Pa().nk()||(0,window.isNaN)(a.markerIndex)?"pointIndex"in a?c=a.pointIndex:"labelIndex"in a?c=a.labelIndex:"markerIndex"in +a&&(c=a.markerIndex):c=Hba(this,a.markerIndex);c=$.P(c);a.pointIndex=c;var d=this.Af();d.select(c)||d.reset();return{type:b,actualTarget:a.target,series:this,iterator:d,pointIndex:c,target:this,originalEvent:a,point:this.sd(c)}}; +$.g.sd=function(a){var b;this.kj()?b=new Jy(this,a):b=new $.Iy(this,a);var c=this.wa;c.WD();var d=this.check($.Yl|$.PD),e=d?b.get("high")-b.get("low"):b.get("value");b.ua("index",a);$.n(e)&&b.ua("value",e);var f=b.get("size");if($.ea(c.ua("dataPlotXSum"))){var h=e/c.ua("dataPlotXSum");b.ua("xPercentOfTotal",$.Lm(100*h,2))}$.ea(this.ua("seriesXSum"))&&(h=e/this.ua("seriesXSum"),b.ua("xPercentOfSeries",$.Lm(100*h,2)));$.ea(this.ua("seriesBubbleSizeSum"))&&(h=f/this.ua("seriesBubbleSizeSum"),b.ua("bubbleSizePercentOfSeries", +$.Lm(100*h,2)),h=f/c.ua("dataPlotBubbleSizeSum"),b.ua("bubbleSizePercentOfTotal",$.Lm(100*h,2)),b.ua("bubbleSize",f));h=d?this.ua("catYRangeSumArr_"):this.ua("catYSumArr_");f=b.get("x");h?(b.ua("categoryName",f),f=h[a],d?(h=e/this.ua("seriesYRangeSum"),b.ua("yPercentOfSeries",$.Lm(100*h,2)),h=e/c.ua("dataPlotYSum"),b.ua("yPercentOfTotal",$.Lm(100*h,2)),b.ua("yPercentOfCategory",$.Lm(e/f*100,2)),h=f/c.ua("dataPlotYSum"),b.ua("categoryYRangePercentOfTotal",$.Lm(100*h,2)),b.ua("categoryYRangeSum",f), +b.ua("categoryYRangeMax",this.ua("catYRangeMaxArr_")[a]),b.ua("categoryYRangeMin",this.ua("catYRangeMinArr_")[a]),b.ua("categoryYRangeAverage",this.ua("catYRangeAvgArr_")[a]),b.ua("categoryYRangeMedian",this.ua("catYRangeMedianArr_")[a]),b.ua("categoryYRangeMode",this.ua("catYRangeModeArr_")[a])):(h=e/this.ua("seriesYSum"),b.ua("yPercentOfSeries",$.Lm(100*h,2)),h=e/c.ua("dataPlotYSum"),b.ua("yPercentOfTotal",$.Lm(100*h,2)),b.ua("yPercentOfCategory",$.Lm(e/f*100,2)),h=f/c.ua("dataPlotYSum"),b.ua("categoryYPercentOfTotal", +$.Lm(100*h,2)),b.ua("categoryYSum",f),b.ua("categoryYMax",this.ua("catYMaxArr_")[a]),b.ua("categoryYMin",this.ua("catYMinArr_")[a]),b.ua("categoryYAverage",this.ua("catYAvgArr_")[a]),b.ua("categoryYMedian",this.ua("catYMedianArr_")[a]),b.ua("categoryYMode",this.ua("catYModeArr_")[a]))):(h=f/this.ua("seriesXSum"),b.ua("xPercentOfSeries",$.Lm(100*h,2)),h=e/this.ua("seriesYSum"),b.ua("yPercentOfSeries",$.Lm(100*h,2)),h=f/c.ua("dataPlotXSum"),b.ua("xPercentOfTotal",$.Lm(100*h,2)),h=e/c.ua("dataPlotYSum"), +b.ua("yPercentOfTotal",$.Lm(100*h,2)));return b};$.g.F=function(){var a=$.sz.B.F.call(this);if(this.qe){for(var b=[],c=this.data(),d=new rz(this);d.advance();){var e=d.i("rawIndex");(0,window.isNaN)(e)?b.push({x:d.get("x")}):b.push(Qq(c,e))}a.data=b}else a.data=this.data().F();$.n(this.mf())&&(a.selectionMode=this.mf());return a};$.g.$=function(a,b){$.sz.B.$.call(this,a,b);"data"in a&&this.data(a.data||null);this.mf(a.selectionMode)}; +$.g.U=function(){$.vd(this.Vk);delete this.HD;this.fb=this.qe=this.state=this.zd=this.Vk=null;$.sz.B.U.call(this)};var SE=$.sz.prototype;SE.data=SE.data;SE.xScale=SE.Sa;SE.hover=SE.Ni;SE.unhover=SE.qd;SE.select=SE.select;SE.unselect=SE.Cd;SE.selectionMode=SE.mf;SE.getPoint=SE.sd;SE.excludePoint=SE.uW;SE.includePoint=SE.kQ;SE.keepOnlyPoints=SE.VX;SE.includeAllPoints=SE.jQ;SE.getExcludedPoints=SE.ZI;$.H($.yz,$.X);var xz=1E6;$.yz.prototype.ta=$.X.prototype.ta;$.yz.prototype.na=$.X.prototype.na|464;$.yz.prototype.tk=function(a){this.W||(this.W=new Jz(this));return $.n(a)?(this.W.K(a),this):this.W}; +var TE=function(){function a(a){return function(b){var c=$.no(b,null);return null===b?this.Bw(a):null===c?this.u(a):c}}var b={};$.Pp(b,[[0,"height",a("height")],[0,"minHeight",a("minHeight")],[0,"maxHeight",a("maxHeight")],[0,"orientation",Maa],[0,"inverted",$.Zp],[0,"autoHide",$.Zp],[1,"fill",$.jq],[1,"selectedFill",$.jq],[1,"outlineStroke",$.iq],[0,"allowRangeChange",$.Zp]]);return b}();$.bq($.yz,TE);$.g=$.yz.prototype; +$.g.padding=function(a,b,c,d){this.Ra||(this.Ra=new $.ot,$.U(this.Ra,this.Yl,this));return $.n(a)?(this.Ra.K.apply(this.Ra,arguments),this):this.Ra};$.g.Yl=function(a){$.W(a,2)&&this.o(4,9)};$.g.vb=function(){return"bottom"==this.u("orientation")||"top"==this.u("orientation")};$.g.remove=function(){this.va&&this.va.remove()};$.g.bf=function(){return this.enabled()&&(!this.u("autoHide")||this.u("allowRangeChange")||0!=this.D||this.j!=xz)}; +$.g.X=function(){if(!this.yc())return this;this.I(256);if(!this.bf())return this.remove(),this.o(2),this;if(this.$f())return this;this.va||(this.va=$.Uj(),this.f=$.Xj(),this.f.zIndex(100),this.b=$.Xj(),this.b.zIndex(100),this.P=this.va.rect(),this.P.zIndex(1),this.qK=$.ak(),this.P.clip(this.qK),this.G=this.va.rect(),this.G.zIndex(50),this.yz=$.ak(),this.G.clip(this.yz),this.N=this.va.path(),this.N.zIndex(99),$.$s(this,this.va,this.u4,this.oba),this.zc.oa(this.f,"mouseover",this.B_),this.zc.oa(this.f, +"mouseout",this.A_),this.zc.Ie(this.f,"mousedown",this.jC),this.zc.Ie(this.f,"touchstart",this.jC),this.zc.oa(this.b,"mouseover",this.B_),this.zc.oa(this.b,"mouseout",this.A_),this.zc.Ie(this.b,"mousedown",this.jC),this.zc.Ie(this.b,"touchstart",this.jC),this.zc.Ie(this.G,"mousedown",this.jC),this.zc.Ie(this.G,"touchstart",this.jC),this.zc.oa(this.P,"click",this.Lba));this.J(2)&&(this.va.parent(this.O()),this.I(2));this.J(8)&&(this.va.zIndex(this.zIndex()),this.I(8));this.J(128)&&(this.f.cursor(zz(this)), +this.b.cursor(zz(this)),this.G.cursor(zz(this)),this.o(84),this.I(128));this.J(4)&&(this.cM(),this.I(4));if(this.J(64)){var a=(Math.max($.bc(this.u("outlineStroke")),5)-1)/2;if(this.vb()){var b=this.fa.top;if(this.tk().u("enabled"))a=b+this.fa.height/2,this.f.clear().moveTo(-4,a-6).lineTo(-2,a-8).lineTo(2,a-8).lineTo(4,a-6).lineTo(4,a+6).lineTo(2,a+8).lineTo(-2,a+8).lineTo(-4,a+6).close().moveTo(-1,a-5).lineTo(-1,a+5).moveTo(1,a-5).lineTo(1,a+5),this.b.clear().moveTo(-4,a-6).lineTo(-2,a-8).lineTo(2, +a-8).lineTo(4,a-6).lineTo(4,a+6).lineTo(2,a+8).lineTo(-2,a+8).lineTo(-4,a+6).close().moveTo(-1,a-5).lineTo(-1,a+5).moveTo(1,a-5).lineTo(1,a+5);else{var c=b+this.fa.height;this.f.clear().moveTo(-a,b).lineTo(a,b).lineTo(a,c).lineTo(-a,c).close();this.b.clear().moveTo(-a,b).lineTo(a,b).lineTo(a,c).lineTo(-a,c).close()}}else b=this.fa.left,this.tk().u("enabled")?(a=b+this.fa.width/2,this.f.clear().moveTo(a-6,-4).lineTo(a-8,-2).lineTo(a-8,2).lineTo(a-6,4).lineTo(a+6,4).lineTo(a+8,2).lineTo(a+8,-2).lineTo(a+ +6,-4).close().moveTo(a-5,-1).lineTo(a+5,-1).moveTo(a-5,1).lineTo(a+5,1),this.b.clear().moveTo(a-6,-4).lineTo(a-8,-2).lineTo(a-8,2).lineTo(a-6,4).lineTo(a+6,4).lineTo(a+8,2).lineTo(a+8,-2).lineTo(a+6,-4).close().moveTo(a-5,-1).lineTo(a+5,-1).moveTo(a-5,1).lineTo(a+5,1)):(c=b+this.fa.height,this.f.clear().moveTo(b,-a).lineTo(b,a).lineTo(c,a).lineTo(c,-a).close(),this.b.clear().moveTo(b,-a).lineTo(b,a).lineTo(c,a).lineTo(c,-a).close());this.o(16);this.I(64)}if(this.J(16)){this.P.qf(this.fa);this.G.qf(this.fa); +this.qK.shape(this.fa);a=this.u("fill");this.P.fill("none"==a?$.Ul:a).stroke(null);a=this.u("selectedFill");this.G.fill("none"==a?$.Ul:a).stroke(null);this.N.stroke(this.u("outlineStroke")).fill(null);Dz(this,this.f,this.Wa);Dz(this,this.b,this.Da);switch(this.u("orientation")){case "top":a=this.fa;b=this.D;c=this.j;this.u("inverted")&&(b=xz-b,c=xz-c);b=a.left+b/xz*a.width;var d=a.left+c/xz*a.width;this.f.mc(1,0,0,1,b,0);this.b.mc(1,0,0,1,d,0);c=Math.min(b,d);b=Math.max(b,d);this.yz.shape(c,a.top, +b-c,a.height);this.N.clear().moveTo(a.left,a.top+a.height).lineTo(c,a.top+a.height).lineTo(c,a.top).lineTo(b,a.top).lineTo(b,a.top+a.height).lineTo(a.left+a.width,a.top+a.height);break;case "right":a=this.fa;b=this.D;c=this.j;this.u("inverted")||(b=xz-b,c=xz-c);b=a.top+b/xz*a.height;d=a.top+c/xz*a.height;this.f.mc(1,0,0,1,0,b);this.b.mc(1,0,0,1,0,d);c=Math.min(b,d);b=Math.max(b,d);this.yz.shape(a.left,c,a.width,b-c);this.N.clear().moveTo(a.left,a.top).lineTo(a.left,c).lineTo(a.left+a.width,c).lineTo(a.left+ +a.width,b).lineTo(a.left,b).lineTo(a.left,a.top+a.height);break;case "bottom":a=this.fa;b=this.D;c=this.j;this.u("inverted")&&(b=xz-b,c=xz-c);b=a.left+b/xz*a.width;d=a.left+c/xz*a.width;this.f.mc(1,0,0,1,b,0);this.b.mc(1,0,0,1,d,0);c=Math.min(b,d);b=Math.max(b,d);this.yz.shape(c,a.top,b-c,a.height);this.N.clear().moveTo(a.left,a.top).lineTo(c,a.top).lineTo(c,a.top+a.height).lineTo(b,a.top+a.height).lineTo(b,a.top).lineTo(a.left+a.width,a.top);break;case "left":a=this.fa,b=this.D,c=this.j,this.u("inverted")|| +(b=xz-b,c=xz-c),b=a.top+b/xz*a.height,d=a.top+c/xz*a.height,this.f.mc(1,0,0,1,0,b),this.b.mc(1,0,0,1,0,d),c=Math.min(b,d),b=Math.max(b,d),this.yz.shape(a.left,c,a.width,b-c),this.N.clear().moveTo(a.left+a.width,a.top).lineTo(a.left+a.width,c).lineTo(a.left,c).lineTo(a.left,b).lineTo(a.left+a.width,b).lineTo(a.left+a.width,a.top+a.height)}this.tk().u("autoHide")||Bz(this);this.I(16)}return this};$.g.tm=function(){return this.D/xz};$.g.ej=function(){return this.j/xz}; +$.g.od=function(){var a=this.ka();a=a?a.clone():$.$m(0,0,0,0);this.bf()&&(this.J(4)&&(this.cM(),this.I(4)),this.vb()?(a.height-=this.g.height,"top"==this.u("orientation")&&(a.top+=this.g.height)):(a.width-=this.g.width,"left"==this.u("orientation")&&(a.left+=this.g.width)));return a}; +$.g.cM=function(){var a=this.ka(),b=this.vb()?a.height:a.width,c=$.N(this.u("height"),b),d=$.N(this.u("maxHeight"),b),e=$.N(this.u("minHeight"),b);b=c;(0,window.isNaN)(e)||(b=Math.max(b,e));(0,window.isNaN)(d)||(b=Math.min(c,d));b=this.vb()?this.padding().aj(b):this.padding().Sj(b);this.g.left=a.left;this.g.top=a.top;c=this.u("orientation");this.vb()?(this.g.width=a.width,this.g.height=b,"bottom"==c&&(this.g.top+=a.height-b)):(this.g.width=b,this.g.height=a.height,"right"==c&&(this.g.left+=a.width- +b));this.gb||this.vb()?this.fa=this.padding().$i(this.g):(b=this.padding(),"left"==c?(c=$.N(b.u("left"),this.g.width),a=$.N(b.u("top"),this.g.height),d=$.N(b.u("right"),this.g.width),b=$.N(b.u("bottom"),this.g.height)):(c=$.N(b.u("right"),this.g.width),a=$.N(b.u("bottom"),this.g.height),d=$.N(b.u("left"),this.g.width),b=$.N(b.u("top"),this.g.height)),this.fa.left=this.g.left+b,this.fa.top=this.g.top+c,this.fa.width=this.g.width-b-a,this.fa.height=this.g.height-c-d);this.o(80)}; +$.g.u4=function(a){a.f();!$.lo(this.va,a.relatedTarget)&&this.ah(a)&&(this.Qa=!0,Bz(this))};$.g.oba=function(a){a.f();!$.lo(this.va,a.relatedTarget)&&this.ah(a)&&(this.Qa=!1,Cz(this))};$.g.B_=function(a){a=a.target;$.L(a,$.Jg)&&(a==this.f?Dz(this,this.f,this.Wa=!0):a==this.b&&Dz(this,this.b,this.Da=!0))};$.g.A_=function(a){a=a.target;$.L(a,$.Jg)&&(a==this.f?Dz(this,this.f,this.Wa=!1):a==this.b&&Dz(this,this.b,this.Da=!1))}; +$.g.jC=function(a){if($.L(a.b,$.ng)){var b=a.b,c;b!=this.f||this.ra?b!=this.b||this.ea?b!=this.G||this.la||(this.la=c=new Iz(this,this.G,!1)):this.ea=c=new Iz(this,this.b,!0):this.ra=c=new Iz(this,this.f,!0);c&&(this.zc.oa(c,"start",this.t4),this.zc.oa(c,"end",this.s4),c.sk(a.Xj))}};$.g.Lba=function(a){var b=$.Fj(this.va.ya());a=this.vb()?a.clientX-b.x:a.clientY-b.y;Ez(this,"background-click","scrollerchangestart")&&(Gz(this,!1,a),Ez(this,"background-click","scrollerchangefinish"))}; +$.g.t4=function(a){if(this.u("allowRangeChange")&&a.G!=this.la){a=zz(this);var b="thumb-drag"}else a=zz(this),b="selected-range-drag";if(b=Ez(this,b,"scrollerchangestart"))this.sa++,this.f.cursor(null),this.b.cursor(null),this.G.cursor(null),$.rf(window.document.body,"cursor",a);return b}; +$.g.s4=function(a){this.sa=Math.max(this.sa-1,0);Cz(this);this.f.cursor(zz(this));this.b.cursor(zz(this));this.G.cursor(zz(this));$.rf(window.document.body,"cursor","");a=this.u("allowRangeChange")&&a.G!=this.la?"thumb-drag":"selected-range-drag";Ez(this,a,"scrollerchangefinish")};$.g.lY=function(a,b,c,d){return{type:a,startRatio:b,endRatio:c,source:d}}; +$.g.U=function(){$.vd(this.va);this.G=this.P=this.N=this.b=this.f=this.va=null;$.vd(this.ra);this.ra=null;$.vd(this.ea);this.ea=null;$.vd(this.la);this.la=null;$.vd(this.W);this.W=null;$.vd(this.Ra);this.Ra=null;$.yz.B.U.call(this)};$.g.F=function(){var a=$.yz.B.F.call(this);$.mq(this,TE,a,"Scroller");a.thumbs=this.tk().F();return a};$.g.$=function(a,b){$.yz.B.$.call(this,a,b);$.eq(this,TE,a,b);this.tk().da(!!b,a.thumbs)};$.H(Iz,$.eg);$.g=Iz.prototype; +$.g.r4=function(){$.n(this.ri)&&($.kl.cancelAnimationFrame(this.ri),this.$q(0))};$.g.Oq=function(){this.b.vb()?(this.deltaX=Hz(this.b,this.g),this.deltaY=0):(this.deltaX=0,this.deltaY=Hz(this.b,this.g))};$.g.ms=function(a,b){this.j=this.b.vb()?a:b;$.n(this.ri)||(this.ri=$.kl.requestAnimationFrame(this.$q))};$.g.uB=function(a){return this.b.vb()?Fz(this.b,this.g,a):0};$.g.Rw=function(a){return this.b.vb()?0:Fz(this.b,this.g,a)};$.H(Jz,$.T);$.cq(Jz,["fill","stroke"],"normal"); +Jz.prototype.o=function(a,b){return this.b.o(a,b)};Jz.prototype.Pa=function(a){return $.n(a)?(this.ja.K(a),this):this.ja};Jz.prototype.kb=function(a){return $.n(a)?(this.Ha.K(a),this):this.Ha};var UE={};$.Pp(UE,[[0,"enabled",$.Yp],[0,"autoHide",$.Yp]]);$.bq(Jz,UE);Jz.prototype.F=function(){var a={};a.normal=this.Pa().F();a.hovered=this.kb().F();$.mq(this,UE,a,"Scroller thumbs");return a}; +Jz.prototype.$=function(a,b){this.ja.da(!!b,a);this.ja.da(!!b,a.normal);this.Ha.da(!!b,a.hovered);$.eq(this,UE,a)};Jz.prototype.md=function(a,b){return $.da(b)||null===b?(this.enabled(!!b),!0):!1};Jz.prototype.U=function(){$.wd(this.ja,this.Ha);this.Ha=this.ja=null;Jz.B.U.call(this)};$.H(Kz,$.yz);$.ft(Kz,$.yz);Kz.prototype.jc=function(a,b){$.Az(this,a,b);return this};Kz.prototype.Fc=function(a){return $.n(a)?($.Az(this,a,this.ej()),this):this.tm()}; +Kz.prototype.Sb=function(a){return $.n(a)?($.Az(this,this.tm(),a),this):this.ej()};var VE=$.yz.prototype;VE.thumbs=VE.tk;VE=Jz.prototype;VE.normal=VE.Pa;VE.hovered=VE.kb;VE=Kz.prototype;$.G("anychart.standalones.scroller",function(){var a=new Kz;a.K($.jm("standalones.scroller"));return a});VE.setRange=VE.jc;VE.startRatio=VE.Fc;VE.endRatio=VE.Sb;VE.parentBounds=VE.ka;VE.getRemainingBounds=VE.od;VE.container=VE.O;VE.padding=VE.padding;VE.draw=VE.X;$.H($.Lz,$.yz);$.Lz.prototype.position=function(a){return $.n(a)?(a=$.fk(cca,a,"after-axes"),a!=this.Ic&&(this.Ic=a,this.o(20,9)),this):this.Ic};$.Lz.prototype.F=function(){var a=$.Lz.B.F.call(this);a.position=this.position();return a};$.Lz.prototype.$=function(a,b){$.Lz.B.$.call(this,a,b);this.position(a.position)};var WE=$.Lz.prototype;WE.position=WE.position;$.g=$.Mz.prototype;$.g.jx=function(a,b){a=$.eb($.P(a),0,1);(0,window.isNaN)(a)&&(a=this.f);b=$.eb($.P(b),0,1);(0,window.isNaN)(b)&&(b=this.b);this.xl=null;if(this.f!=a||this.b!=b)this.f=a,this.b=b,this.La.o(268435456,1);return this};$.g.d_=function(a,b,c){this.xl={start:a,end:b,scale:c};this.La.o(268435456,1);return this};$.g.c_=function(a,b,c){this.xl={count:$.so(a),scale:c,y9:!!b};this.La.o(268435456,1);return this};$.g.tm=function(){Nz(this);return this.f};$.g.ej=function(){Nz(this);return this.b}; +$.g.NH=function(a){return $.n(a)?(a=!!a,this.g!=a&&(this.g=a),this):this.g};$.g.K=function(a){$.n(a)&&((0,window.isNaN)(+a)?$.D(a)&&(this.NH(a.continuous),$.n(a.startValue)&&$.n(a.endValue)?this.d_(a.startValue,a.endValue,$.L(a.scale,cs)?a.scale:void 0):$.n(a.pointsCount)?this.c_(a.pointsCount,a.fromEnd,$.L(a.scale,cs)?a.scale:void 0):this.jx(a.startRatio,a.endRatio)):this.jx(0,1/Math.abs(+a||1)));return this};$.g.F=function(){return{startRatio:this.tm(),endRatio:this.ej(),continuous:this.g}}; +var XE=$.Mz.prototype;XE.setTo=XE.jx;XE.setToValues=XE.d_;XE.setToPointsCount=XE.c_;XE.getStartRatio=XE.tm;XE.getEndRatio=XE.ej;XE.continuous=XE.NH;$.H($.Oz,$.By);var YE=function(){var a={};$.Q(a,0,"zAngle",function(a){return $.eb($.P(a),0,90)});$.Q(a,0,"zAspect",function(a){return $.ea(a)?Math.max(a,0):a});$.Q(a,0,"zDistribution",$.Zp);$.Q(a,0,"zPadding",function(a){return Math.max($.P(a),0)||0});return a}();$.bq($.Oz,YE);$.g=$.Oz.prototype;$.g.na=$.By.prototype.na|805306368;$.g.sW=function(){$.Mx(this);this.J(65536)&&this.cl().xl&&Vx(this)};$.g.cl=function(a){return $.n(a)?($.V(this),this.ra.K(a),this.ba(!0),this):this.ra}; +$.g.oo=function(a){this.g||(this.g=new $.Lz,this.g.ib(this),$.U(this.g,this.n4,this),this.zc.oa(this.g,"scrollerchange",this.aG),this.zc.oa(this.g,"scrollerchangefinish",this.aG),this.o(536870916,1));return $.n(a)?(this.g.K(a),this):this.g};$.g.n4=function(a){var b=536870912,c=1;$.W(a,8)&&(b|=4,c|=8);this.o(b,c)};$.g.aG=function(a){this.ra.NH()^"scrollerchangefinish"==a.type&&(a.preventDefault(),$.V(this),this.ra.jx(a.startRatio,a.endRatio),this.ba(!0))}; +$.g.St=function(a,b){return new $.sz(this,this,a,b,!0)};$.g.tr=function(a){return $.fk(ica,a,"line")};$.g.tw=function(a){var b=this.oo();a=$.Pz(b,a);return $.Oz.B.tw.call(this,a.rV,a.LZ)};$.g.xH=function(a,b){return $.Qz(this,a,this.oo(),b)};$.g.RU=function(){if(this.J(268435456)){for(var a in this.bl){var b=this.cl().tm(),c=1/(this.cl().ej()-b);$.ds(this.bl[a],c,b)}$.Az(this.oo(),this.cl().tm(),this.cl().ej());this.I(268435456);this.o(570687488)}};$.g.GP=function(){return this.ra.tm()};$.g.FP=function(){return this.ra.ej()}; +$.g.gE=function(){return $.Oz.B.gE.call(this)|536870912};$.g.drawElements=function(){$.Oz.B.drawElements.call(this);this.J(536870912)&&(this.oo().O(this.Va),this.oo().X(),this.I(536870912))};$.g.i_=function(a,b,c){var d=this.NW(b);b=d.transform(c,0);c=d.transform(c,1);return"selected"!=a||1>=Math.min(b,c)&&0<=Math.max(b,c)};$.g.NW=function(a){return a.Mo()}; +$.g.Gr=function(a,b,c){$.Oz.B.Gr.call(this,a,b,c);$.eq(this,YE,a);this.oo().da(!!c,a.xScroller);a=a.xZoom;$.D(a)&&($.ea(a.scale)||$.z(a.scale))?(c=a.scale,a.scale=b[a.scale],this.cl(a),a.scale=c):this.cl(a)};$.g.F=function(){var a=$.Oz.B.F.call(this);$.mq(this,YE,a);a.type=this.Ma();a.xScroller=this.oo().F();a.xZoom=this.cl().F();return{chart:a}};$.g.U=function(){$.Oz.B.U.call(this);$.vd(this.g);this.g=null};$.g=$.Rz.prototype;$.g.gr=ba(21);$.g.Fs=function(){$.Tz(this);return this.b.concat()};$.g.clear=function(){this.f={};this.Ta=this.b.length=0};$.g.remove=function(a){return $.Sz(this.f,a)?(delete this.f[a],this.Ta--,this.b.length>2*this.Ta&&$.Tz(this),!0):!1};$.g.get=function(a,b){return $.Sz(this.f,a)?this.f[a]:b};$.g.set=function(a,b){$.Sz(this.f,a)||(this.Ta++,this.b.push(a));this.f[a]=b};$.g.forEach=function(a,b){for(var c=this.Fs(),d=0;da.i("size")){var c="negative";var d="negativeHatchFill"}else c="circle",d="hatchFill";var e={};e[c]=!0;e[d]=!0;c=this.Kc.Nc(b,e);bA(this,a,c)};$.g.Ur=function(a){var b=a.i("shapes");bA(this,a,b)};$.H(cA,$.My);$.MD[5]=cA;$.g=cA.prototype;$.g.type=5;$.g.flags=$.PD|263744;$.g.yg={rising:"path",risingHatchFill:"path",falling:"path",fallingHatchFill:"path"};$.g.qo=["open","high","low","close"];$.g.uk="close"; +$.g.Ff=function(a,b){var c=Number(a.get("open"))b?this.Fc&&(d="highFill",e="highHatchFill"):this.bd&&(d="lowFill",e="lowHatchFill");c.gQ="highStroke";c.NQ="lowStroke";c.fill=d;c.qc=e;return c}; +$.g.yn=function(a){var b=this.Kc,c=this.R.ae(),d=a.get(c[1]);c=a.get(c[0]);d=this.Pg(d,c);c={};c[d.gQ]=!0;c[d.NQ]=!0;c=b.Nc(this.lc,c);this.P=c[d.gQ];this.W=c[d.NQ];c={};c[d.fill]=!0;c[d.qc]=!0;this.b=b.Nc(this.lc,c);b=a.i("x");c=a.i("high");a=a.i("low");var e=this.b[d.fill],f=this.b[d.qc];$.Ky(e,this.qa,b,a);$.Ly(e,this.qa,b,c);$.Ky(f,this.qa,b,a);$.Ly(f,this.qa,b,c);$.Ky(this.P,this.qa,b,c);this.f=[b,a,e,f];this.D=b;this.G=c;this.sa=a;this.g=d}; +$.g.Ff=function(a){var b=this.Kc,c=this.R.ae(),d=a.get(c[1]);c=a.get(c[0]);d=this.Pg(d,c);c={};c[d.fill]=!0;c[d.qc]=!0;b=b.Nc(this.lc,c);c=a.i("x");var e=a.i("high"),f=a.i("low");if(this.b!=b){var h=ln(this.D,this.G,c,e,this.D,this.sa,c,f);if(h){a=this.b[this.g.fill];var k=this.b[this.g.qc];$.Ly(a,this.qa,h.x,h.y);$.Ly(k,this.qa,h.x,h.y);this.f.push(h.x,h.y,a,k);this.b=b;a=this.b[d.fill];k=this.b[d.qc];$.Ky(a,this.qa,h.x,h.y);$.Ky(k,this.qa,h.x,h.y);this.f.push(h.x,h.y,a,k)}}a=this.b[d.fill];k=this.b[d.qc]; +$.Ly(a,this.qa,c,e);$.Ly(k,this.qa,c,e);$.Ly(this.P,this.qa,c,e);this.f.push(c,f,a,k);this.D=c;this.G=e;this.sa=f;this.g=d};$.g.El=function(){if(this.N&&this.f){for(var a=!0,b=null,c=this.f.length-1;0<=c;c-=4){var d=this.f[c-3],e=this.f[c-2],f=this.f[c-1],h=this.f[c];b&&f!=b?($.Ky(f,this.qa,d,e),$.Ky(h,this.qa,d,e)):($.Ly(f,this.qa,d,e),$.Ly(h,this.qa,d,e));a?($.Ky(this.W,this.qa,d,e),a=!1):$.Ly(this.W,this.qa,d,e);b=f}this.f=null}};$.H($.lA,$.My);$.MD[12]=$.lA;$.g=$.lA.prototype;$.g.type=12;$.g.flags=$.Yl|263680;$.g.yg={path:"path",hatchFill:"path"};$.g.qo=["low","high"];$.g.uk="high"; +$.g.Ff=function(a,b){if(!a.i("skipDrawing")){var c=this.R.ae(),d=a.get(c[1]);c=a.get(c[0]);d=this.Pg(d,c);c={};c[d.path]=!0;c[d.qc]=!0;a.i("name",d.path);c=this.Kc.Nc(b,c);var e=a.i("x"),f=a.i("high"),h=a.i("low");e-=this.j/2;var k=e+this.j,l=$.bc(c[d.path].stroke());this.Tt&&(e=$.Jo(e,l),k=$.Jo(k,l));f=$.Jo(f,l);h=$.Jo(h,l);l=c[d.path];$.Ky(l,this.qa,e,h);$.Ly(l,this.qa,k,h);$.Ly(l,this.qa,k,f);$.Ly(l,this.qa,e,f);l.close();l=c[d.qc];$.Ky(l,this.qa,e,h);$.Ly(l,this.qa,k,h);$.Ly(l,this.qa,k,f);$.Ly(l, +this.qa,e,f);l.close()}};mA.prototype.qa=function(a){return $.n(a)?(this.P=a,this):this.P};mA.prototype.Ga=function(a){return $.n(a)?(this.j=a,this):this.j}; +mA.prototype.g=function(a){var b,c,d=arguments;for(b=0;bb?this.Fc&&(d="highFill",e="highHatchFill"):this.bd&&(d="lowFill",e="lowHatchFill");c.gQ="highStroke";c.NQ="lowStroke";c.fill=d;c.qc=e;return c}; +$.g.fd=function(a){vA.B.fd.call(this,a);this.g.qa(this.qa);a=this.R.lz();$.n(a)&&(this.g.Da=a);this.D.qa(this.qa);a=this.R.lz();$.n(a)&&(this.D.Da=a);this.G=[]}; +$.g.yn=function(a){var b=this.Kc,c=this.R.ae(),d=a.get(c[1]);c=a.get(c[0]);var e={highStroke:!0,lowStroke:!0};e=b.Nc(this.lc,e);this.P=e.highStroke;this.W=e.lowStroke;var f=this.Pg(d,c);e={};e[f.fill]=!0;e[f.qc]=!0;b.Nc(this.lc,e);b=a.i("x");e=a.i("high");a=a.i("low");tA(this.g,!1);this.g.b=[this.P];(e=rA(this.g,b,e))&&this.G.push.apply(this.G,e);e=this.R.aa().current();f=this.R.aa().ia();this.f=[b,a,d,c,e,f]}; +$.g.Ff=function(a){var b=this.Kc,c=this.R.ae(),d=a.get(c[1]);c=a.get(c[0]);var e=this.Pg(d,c),f={};f[e.fill]=!0;f[e.qc]=!0;b.Nc(this.lc,f);b=a.i("x");e=a.i("high");a=a.i("low");(e=rA(this.g,b,e))&&this.G.push.apply(this.G,e);e=this.R.aa().current();f=this.R.aa().ia();this.f.push(b,a,d,c,e,f)}; +$.g.El=function(){var a=this.Kc;if(this.N){var b=sA(this.g);b&&this.G.push.apply(this.G,b);this.g.b=[this.W];tA(this.g,!0);tA(this.D,!0);b=[];if(this.f){for(var c=!0,d=this.R.Af(),e=this.f.length-1;0<=e;e-=6){var f=this.f[e-2],h=this.f[e-3];var k=this.f[e-4];var l=this.f[e-5];d.pt(this.f[e-1],this.f[e]);h=this.Pg(h,f);f=a.Nc(this.lc,d.i("shapeNames"));rA(this.D,l,k);rA(this.g,l,k);c?(this.b=f,k=f[h.fill],l=f[h.qc],this.D.b=[k,l],c=!1):(k=e==this.f.length-7||5==e?6:12,k=$.Fa(this.G,this.G.length-k, +k),$.wa($.Fa,b,void 0,0).apply(null,k),this.b!=f&&(k=f[h.fill],l=f[h.qc],h=this.D,k=[k,l],h.f=b.slice(),h.W=k,b.length=0,this.b=f))}$.wa($.Fa,this.D.Sg,void 0,0).apply(null,b);sA(this.D);sA(this.g);this.f=null}}};$.H(wA,$.My);$.MD[14]=wA;$.g=wA.prototype;$.g.type=14;$.g.flags=$.Yl|131088;$.g.yg={fill:"path",hatchFill:"path",highStroke:"path",lowStroke:"path"};$.g.qo=["low","high"];$.g.uk="high";$.g.fd=function(a){wA.B.fd.call(this,a);this.G=this.R.u("stepDirection")||"center"}; +$.g.yn=function(a){var b=this.Kc.Nc(this.lc),c=a.i("x"),d=a.i("high");a=a.i("low");$.Ky(b.fill,this.qa,c,a);$.Ly(b.fill,this.qa,c,d);$.Ky(b.hatchFill,this.qa,c,a);$.Ly(b.hatchFill,this.qa,c,d);$.Ky(b.highStroke,this.qa,c,d);this.D=c;this.g=d;this.f=[c,a]}; +$.g.Ff=function(a){var b=this.Kc.Nc(this.lc),c=a.i("x"),d=a.i("high");a=a.i("low");var e=b.fill,f=b.hatchFill;b=b.highStroke;switch(this.G){case "forward":$.Ly(e,this.qa,c,this.g);$.Ly(f,this.qa,c,this.g);$.Ly(b,this.qa,c,this.g);break;case "backward":$.Ly(e,this.qa,this.D,d);$.Ly(f,this.qa,this.D,d);$.Ly(b,this.qa,this.D,d);break;default:var h=(c+this.D)/2;$.Ly(e,this.qa,h,this.g,h,d);$.Ly(f,this.qa,h,this.g,h,d);$.Ly(b,this.qa,h,this.g,h,d)}$.Ly(e,this.qa,c,d);$.Ly(f,this.qa,c,d);$.Ly(b,this.qa, +c,d);this.D=c;this.g=d;this.f.push(c,a)}; +$.g.El=function(){if(this.N&&this.f){var a=this.Kc.Nc(this.lc),b=a.fill,c=a.hatchFill;a=a.lowStroke;for(var d=window.NaN,e=window.NaN,f=!0,h=this.f.length-1;0<=h;h-=2){var k=this.f[h-1],l=this.f[h];if(f)$.Ky(a,this.qa,k,l),f=!1;else switch(this.G){case "forward":$.Ly(b,this.qa,d,l);$.Ly(c,this.qa,d,l);$.Ly(a,this.qa,d,l);break;case "backward":$.Ly(b,this.qa,k,e);$.Ly(c,this.qa,k,e);$.Ly(a,this.qa,k,e);break;default:d=(k+d)/2,$.Ly(b,this.qa,d,e,d,l),$.Ly(c,this.qa,d,e,d,l),$.Ly(a,this.qa,d,e,d,l)}$.Ly(b, +this.qa,k,l);$.Ly(c,this.qa,k,l);$.Ly(a,this.qa,k,l);d=k;e=l}b.close();c.close();this.f=null}};$.H(xA,$.My);$.MD[31]=xA;$.g=xA.prototype;$.g.type=31;$.g.flags=$.Yl|295433;$.g.yg={stroke:"path"};$.g.fd=function(a){xA.B.fd.call(this,a);this.Tt=2e?this.Qd&&(c="highStroke"):this.Me&&(c="lowStroke");f[c]=!0;a.i("name",c);d=this.Kc.Nc(b,f);yA(this,a,d,c)};$.g.Ur=function(a){var b=a.i("shapes"),c=a.i("name"),d;for(d in b)b[d].clear();yA(this,a,b,c)};$.H(zA,$.My);$.MD[15]=zA;$.g=zA.prototype;$.g.type=15;$.g.flags=32985;$.g.yg={stroke:"path"};$.g.fd=function(a){zA.B.fd.call(this,a);this.f.qa(this.qa);a=this.R.lz();$.n(a)&&(this.f.Da=a)};$.g.yn=function(a){var b=a.get(this.R.ae()[0]),c=this.Pg(b,this.prevValue),d=a.i("x");a=a.i("value");var e={};e[c.stroke]=!0;this.b=this.Kc.Nc(this.lc,e);this.f.b=[this.b[c.stroke]];tA(this.f,!1);rA(this.f,d,a);this.W=a;this.prevValue=b}; +$.g.Ff=function(a){var b=a.get(this.R.ae()[0]),c=this.Kc,d=this.Pg(b,this.prevValue),e={};e[d.stroke]=!0;c=c.Nc(this.lc,e);var f=a.i("x");e=a.i("value");rA(this.f,f,e);if(c!=this.b){var h;f=this.W;var k=Ny(this,b);this.ea&&k?h=a.i("zero"):this.ra&&!this.ea?h=f:h="middle";a=this.f;d=[c[d.stroke]];a.f=h;a.W=d;this.b=c}this.W=e;this.prevValue=b};$.g.El=function(){this.N&&sA(this.f)};$.g.U=function(){this.f.b=null;zA.B.U.call(this)};$.H(AA,$.My);$.MD[16]=AA;$.g=AA.prototype;$.g.type=16;$.g.flags=241;$.g.yg={fill:"path",hatchFill:"path",stroke:"path"};$.g.fd=function(a){AA.B.fd.call(this,a);this.g.qa(this.qa);a=this.R.lz();$.n(a)&&(this.g.Da=a)};$.g.ly=function(a){if(this.la){if(this.R.bg()){var b=a.i("x"),c=a.i("zero");a=a.i("zeroMissing");this.f.push(b,c,a)}}else this.El()}; +$.g.yn=function(a){var b=a.get(this.R.ae()[0]),c=this.Pg(b,this.prevValue),d=a.i("x"),e=a.i("zero"),f=a.i("zeroMissing");a=a.i("value");tA(this.g,!1);this.g.Ga(e);rA(this.g,d,a);var h={};h[c.stroke]=!0;h[c.fill]=!0;h[c.qc]=!0;this.b=this.Kc.Nc(this.lc,h);h=this.b[c.fill];h.b=!0;var k=this.b[c.qc];k.b=!0;c=this.b[c.stroke];c.b=!1;this.g.b=[h,c,k];this.R.bg()?this.f=[d,e,f]:this.Eh=e;this.W=a;this.prevValue=b}; +$.g.Ff=function(a){var b=this.Kc,c=a.get(this.R.ae()[0]),d=this.D=this.Pg(c,this.prevValue),e=a.i("x"),f=a.i("zero"),h=a.i("zeroMissing");a=a.i("value");rA(this.g,e,a);var k={};k[d.stroke]=!0;k[d.fill]=!0;k[d.qc]=!0;b=b.Nc(this.lc,k);if(b!=this.b){var l;k=this.W;var m=Ny(this,c);this.ea&&m?l=f:this.ra&&!this.ea?l=k:l="middle";k=b[d.fill];k.b=!0;m=b[d.qc];m.b=!0;var p=b[d.stroke];p.b=!1;d=this.g;k=[k,p,m];d.f=l;d.W=k;this.g.Ga(f);this.b=b}this.R.bg()&&this.f.push(e,f,h);this.W=a;this.prevValue=c}; +$.g.El=function(){if(this.N&&(sA(this.g),this.f)){var a=this.D,b={};b[a.stroke]=!0;b[a.fill]=!0;b[a.qc]=!0;this.b=this.Kc.Nc(this.lc,b);b=this.b[a.fill];b.b=!1;var c=this.b[a.qc];c.b=!1;a=this.b[a.stroke];a.b=!1;this.g.b=[b,a,c];tA(this.g,!0);for(var d=a=window.NaN,e=!1,f=!0,h=this.f.length-1;0<=h;h-=3){var k=this.f[h-2],l=this.f[h-1],m=this.f[h];f?($.Ly(b,this.qa,k,l),$.Ly(c,this.qa,k,l),m||rA(this.g,k,l),f=!1):m&&e?($.Ly(b,this.qa,k,l),$.Ly(c,this.qa,k,l)):m?(sA(this.g),tA(this.g,!0),$.Ly(b,this.qa, +a,l,k,l),$.Ly(c,this.qa,a,l,k,l)):(e&&($.Ly(b,this.qa,k,d,k,l),$.Ly(c,this.qa,k,d,k,l)),rA(this.g,k,l));a=k;d=l;e=m}sA(this.g);this.f=null}};$.g.U=function(){this.g.b=null;AA.B.U.call(this)};$.H(BA,$.My);$.MD[17]=BA;$.g=BA.prototype;$.g.type=17;$.g.flags=131313;$.g.yg={fill:"path",hatchFill:"path",stroke:"path"};$.g.fd=function(a){BA.B.fd.call(this,a);this.G=this.R.u("stepDirection")||"center"}; +$.g.yn=function(a){var b=a.get(this.R.ae()[0]),c=this.Kc,d=this.Pg(b,this.prevValue),e={};e[d.stroke]=!0;e[d.fill]=!0;e[d.qc]=!0;c=this.b=c.Nc(this.lc,e);e=a.i("x");a.i("zeroX");var f=a.i("zero"),h=a.i("value");if(this.R.bg()){var k=a.i("nextZero");a=a.i("nextValue");if((0,window.isNaN)(k)||(0,window.isNaN)(a))DA(this,c,d,e,h,f),this.f=[e,f],this.g=h;else{var l=c.stroke;$.Ky(l,this.qa,e,h);$.Ly(l,this.qa,e,h);DA(this,c,d,e,a,k);this.f=[e,k];this.g=a}}else DA(this,c,d,e,h,f),this.W=e,this.Eh=f,this.g= +h;this.D=e;this.prevValue=b;this.sa=f;this.P=d}; +$.g.Ff=function(a){var b=a.get(this.R.ae()[0]),c=this.Kc,d=this.Pg(b,this.prevValue),e={};e[d.stroke]=!0;e[d.fill]=!0;e[d.qc]=!0;c=c.Nc(this.lc,e);e=a.i("x");a.i("zeroX");var f=a.i("zero"),h=a.i("value");if(this.R.bg()){var k=a.i("prevZero"),l=a.i("prevValue"),m=a.i("nextZero");a=a.i("nextValue");(0,window.isNaN)(k)||(0,window.isNaN)(l)?(EA(this,c,d,b,e,h,f),this.f.push(e,f)):(EA(this,c,d,b,e,l,f),this.f.push(e,k),this.D=e,this.g=l,this.El(),DA(this,c,d,e,h,f),this.f=[e,f]);(0,window.isNaN)(m)||(0,window.isNaN)(a)? +this.g=h:($.Ly(c.stroke,this.qa,e,h),this.El(),DA(this,c,d,e,a,m),this.f=[e,m],this.g=a)}else EA(this,c,d,b,e,h,f),this.W=e,this.g=h;this.D=e;this.prevValue=b;this.sa=f;this.P=d}; +$.g.El=function(){if(this.N){var a=this.b,b=this.P,c=a[b.fill];a=a[b.qc];if(!(0,window.isNaN)(this.W))$.Ly(c,this.qa,this.W,this.Eh),$.Ly(a,this.qa,this.W,this.Eh),c.close(),a.close();else if(this.f){var d=window.NaN;b=window.NaN;for(var e=this.f.length-1;0<=e;e-=2){var f=this.f[e-1],h=this.f[e];if(!(0,window.isNaN)(b))switch(this.G){case "forward":$.Ly(c,this.qa,d,h);$.Ly(a,this.qa,d,h);break;case "backward":$.Ly(c,this.qa,f,b);$.Ly(a,this.qa,f,b);break;default:d=(f+d)/2,$.Ly(c,this.qa,d,b,d,h), +$.Ly(a,this.qa,d,b,d,h)}$.Ly(c,this.qa,f,h);$.Ly(a,this.qa,f,h);d=f;b=h}c.close();a.close();this.f=null}}};$.H(FA,$.My);$.MD[18]=FA;$.g=FA.prototype;$.g.type=18;$.g.flags=164057;$.g.yg={stroke:"path"};$.g.fd=function(a){FA.B.fd.call(this,a);this.G=this.R.u("stepDirection")||"center"};$.g.yn=function(a){var b=a.get(this.R.ae()[0]),c=this.Pg(b,this.prevValue),d={};d[c.stroke]=!0;this.b=this.Kc.Nc(this.lc,d);d=a.i("x");a=a.i("value");$.Ky(this.b[c.stroke],this.qa,d,a);this.D=d;this.g=a;this.prevValue=b;this.P=c}; +$.g.Ff=function(a){var b=this.Kc,c=a.get(this.R.ae()[0]),d=this.Pg(c,this.prevValue),e={};e[d.stroke]=!0;b=b.Nc(this.lc,e);e=a.i("x");var f=a.i("value"),h=this.g;if(b!=this.b){var k=Ny(this,c);this.ea&&k&&(h=a.i("zero"));a=GA(this,this.P,e,this.g,h);this.b=b;$.Ky(this.b[d.stroke],this.qa,a,h)}GA(this,d,e,h,f);$.Ly(this.b[d.stroke],this.qa,e,f);this.D=e;this.g=f;this.prevValue=c;this.P=d};$.H(HA,$.My);$.MD[20]=HA;$.g=HA.prototype;$.g.type=20;$.g.flags=296681;$.g.yg={stroke:"path"};$.g.fd=function(a){HA.B.fd.call(this,a);this.Tt=2=this.Mb())&&$.n(a)&&this.f){if(this.f.i){var b=this.f.i("type");if(1==b||3==b||4==b)return;if(b=this.f.i(a))return b}if(this.f.get)return this.f.get(a)}};$.g.ia=function(){return this.g};$.g.Mb=function(){return this.b.length};$.g.i=function(a,b){if(this.f&&this.f.i)return 1b){var e=a;a=b;b=e}c>d&&(e=c,c=d,d=e);return Math.max(a,c)<=Math.min(b,d)},ZJ=function(a,b,c,d,e,f,h,k){return YJ(a,c,e,h)&&YJ(b,d,f,k)&&0>=((c-a)*(f-b)-(d-b)*(e-a))*((c-a)*(k-b)-(d-b)*(h-a))&&0>=((h-e)*(b-f)-(k-f)*(a-e))*((h-e)*(d-f)-(k-f)*(c-e))},$J=function(a,b,c,d,e){var f=!1,h;if(!e)return!1;var k=0;for(h=e.length;kc*c}return e},bK=function(a,b,c){$.yx.call(this,null,[],[],b,c);this.wa=a},dK=function(a,b,c,d,e){$.Nq.call(this,a);this.g=b;this.f=c||null;this.j=d||function(a,b){a.value+=Math.max(0,+b)||0;return a};this.D=e||function(){return{value:0}};this.b=new cK;this.b.i(0,"groupedPoint",!0)},cK=function(){$.T.call(this);$.Tq(this);this.f=void 0},fK=function(a,b,c){$.yx.call(this,null,[],[],b,c);this.wa=a;this.g=eK(this.wa);this.Xx= +this.wa.u("connectorStroke")},gK=function(a,b){$.Hy.call(this,a,b)},iK=function(a,b){$.aw.call(this);$.V(this);this.je=this.Em=this.td=this.Ka=this.Fc=null;this.gb={};this.Sh=function(){var a=this.sourceColor,b=this.aquaStyleObj;return{keys:[{offset:0,color:$.Il(a,.5)},{offset:.95,color:$.Jl(a,.4)},{offset:1,color:$.Jl(a,.4)}],cx:.5,cy:.5,fx:b.fx,fy:b.fy,mode:b.mode}};this.W=[];this.state=new $.Hv(this);this.data(a||null,b);this.o(4294967295);$.R(this.Ca,[["overlapMode",4096,1],["radius",4,1],["innerRadius", +4,1],["startAngle",4112,1],["sort",16,1,0,function(){hK(this)}],["insideLabelsOffset",4100,9],["connectorLength",4100,9],["outsideLabelsCriticalAngle",4096,1],["forceHoverLabels",4096,1],["connectorStroke",16,1],["mode3d",4116,1]]);var c={};$.R(c,[["explode",4116,1],["fill",528,1],["stroke",528,1],["hatchFill",528,1],["labels",0,0],["outline",0,0]]);this.ja=new $.qw(this,c,$.Zl,[[1,"fill",function(a){var b=!1;$.z(a[0])&&(a[0]=a[0].toLowerCase(),b="aquastyle"==a[0]);return this.u("mode3d")&&b?this.u("fill"): +$.F(a[0])||b?a[0]:$.Xb.apply(null,a)}]]);this.ja.ga.labelsFactoryConstructor=$.sw;$.Cq(this.ja,"labelsAfterInitCallback",function(a){$.U(a,this.Ud,this);a.ib(this);this.o(4096,1)});$.Cq(this.ja,"outlineAfterInitCallback",function(a){$.U(a,this.uca,this);this.o(16,1)});c={};$.R(c,[["explode",4116,1],["fill",16,1],["stroke",16,1],["hatchFill",0,0],["labels",0,0],["outline",16,1]]);this.Ha=new $.qw(this,c,1);this.Ha.ga.labelsFactoryConstructor=$.sw;c={};$.R(c,[["explode",4116,1],["fill",16,1],["stroke", +16,1],["hatchFill",0,0],["labels",0,0],["outline",16,1]]);this.Ja=new $.qw(this,c,2);this.Ja.ga.labelsFactoryConstructor=$.sw;this.ba(!1)},hK=function(a){$.vd(a.la);delete a.Df;a.la=lda(a,a.Em);$.U(a.la,a.We,a);$.M(a,a.la);a.o(13104,17)},lda=function(a,b){if(null!=a.Fc){var c=b;b=new dK(b,"value",a.Fc,void 0,function(){return{value:0}});$.M(c,b);b.TS=!0}c=a.u("sort");"none"!=c&&null!=c&&(b="asc"==c?b.sort("value",function(a,b){return a-b}):b.sort("value",function(a,b){return b-a}),b.TS=!0);return b}, +kK=function(a,b,c){if(!a)return $.Pl;var d=b+"|"+a+"|"+c,e=jK[d];if(!e){switch(b){case 2:e=$.Rl;break;case 3:e=$.Sl;break;default:case 1:e=$.Tl}jK[d]=e=$.wa(mda,a,e,3==b,c)}return e},mda=function(a,b,c,d,e,f,h,k){if(f!=$.Zl&&d){var l=e.pc(a,f,e.aa(),b,!1,void 0,h);c&&!0===l&&(l=b(e.tg()));if($.n(l)){if(!$.F(l))return l;if(c)return c=e.Nh(h),b(l.call(c,c))}}a=e.pc(a,0,e.aa(),b,!1,void 0,h);d=$.n(k)?k:a;k=$.z(a)&&"aquastyle"==a;c&&!0===a&&(a=b(e.tg()));$.F(a)&&(c=c?e.Nh(h):e.Ne(d,h),a=b(a.call(c,c))); +k&&(c=e.aa(),c={aquaStyleObj:e.gb,sourceColor:e.fc().kc(c.ia())},a=e.Sh.call(c));l&&(c=e.Ne(a,h),a=b(l.call(c,c)));return a},lK=function(a,b,c){c=a.aa().i(c||"hatchSlice");null!=c&&(a=kK("hatchFill",3,!0)(a,b,!1),c.stroke(null).fill(a))},mK=function(a){return $.D(a)&&a.hasOwnProperty("mode")&&a.hasOwnProperty("cx")},nK=function(a){a=null===a?window.NaN:+a;return!($.ea(a)&&!(0,window.isNaN)(a)&&0p||270=l:!1:4==p?4==m?h>=l:!0:!1);if(h){l=$.Lm(Math.cos($.I(d)),7);m=$.Lm(Math.cos($.I(f)),7);p=zK(l,Math.sin($.I(d)));var q=zK(m,Math.sin($.I(f)));h=[];if(1==p)switch(q){case 1:l>=m?h.push({start:d,end:f}):(h.push({start:d,end:180,xm:!0}),h.push({start:360,end:f}));break;case 2:h.push({start:d,end:f,xm:!0});break;case 3:case 4:h.push({start:d, +end:180,xm:!0})}else if(2==p)switch(q){case 1:h.push({start:d,end:180});h.push({start:360,end:f});break;case 2:l>=m?h.push({start:d,end:f}):(h.push({start:d,end:180}),h.push({start:360,end:f,xm:!0}));break;case 3:case 4:h.push({start:d,end:180})}else if(3==p)switch(q){case 1:h.push({start:360,end:f});break;case 2:h.push({start:360,end:f,xm:!0});break;case 3:l>=m&&h.push({start:0,end:180,xm:!0})}else if(4==p)switch(q){case 1:h.push({start:360,end:f});break;case 2:h.push({start:360,end:f,xm:!0});break; +case 3:h.push({start:360,end:180,xm:!0});break;case 4:l>=m&&h.push({start:0,end:180,xm:!0})}l=a.W.length;m=h.length;a.W.length=l+m;for(p=0;p=m?(h.push({start:d,end:360}),h.push({start:180, +end:f})):h.push({start:d,end:f});break;case 4:h.push({start:d,end:f,xm:!0})}else if(4==p)switch(q){case 1:case 2:h.push({start:d,end:360});break;case 3:h.push({start:d,end:360});h.push({start:180,end:f});break;case 4:l>=m?(h.push({start:d,end:360}),h.push({start:180,end:f})):h.push({start:d,end:f})}l=a.W.length;m=h.length;a.W.length=l+m;for(p=0;pd&&(d=0);0>f&&(f=0);if(d=f?360==Math.abs(b)?c.Fd(h,k,d,.45*d,l,b,!1):c.moveTo(h,k).Fd(h,k,d,.45*d,l,b,!0).close():(m=360>Math.abs(b),c.Fd(h,k,d,.45*d,l,b).Fd(h,k,f,.45*f,l+b,-b,m),m&&c.close()),vK(a,"topPath",e);break;case "front":f=h;h=k;var p=b.start;m=b.end;var q=b.vG;b="frontPath"+String(p);if(c=a.$x(b,c))k=.45*d,l=.2*a.b,m=a&&0<=b?2:0>=a&&0>b?3:4},pK=function(a,b){var c= +a.aa();c.select(b);var d=a.tc,e=a.oc,f=$.Mv(a.state,b);if(f=qK(a,f)){var h=a.u("mode3d"),k=c.i("start");c=c.i("sweep");c=(k+c/2)*Math.PI/180;h=(h?.45*f:f)*Math.sin(c);d+=f*Math.cos(c);e+=h}return[d,e]},CK=function(a,b){bd)throw Error("Index can not be masked by this View");return a>=d?(a-=d,2b.ia()?1:a.ia()this.sa&&(this.Oi=t),this.sa=Math.max(this.sa, +sa)),this.j[t]||(sa=this.Da[2*t+1]-.2*this.b/2,sa=x&&saa.width&&(a.width=0);0>a.height&&(a.height=0);this.gb.fx=!(0,window.isNaN)(e)&&(0,window.isFinite)(e)?e:0;this.gb.fy=!(0,window.isNaN)(b)&&(0,window.isFinite)(b)?b:0;this.gb.mode=a;tK(this)}; +$.g.jb=function(){if(this.J(8192)){this.XF();for(var a=this.data().aa(),b,c=0,d=Number.MAX_VALUE,e=-Number.MAX_VALUE,f=0;a.advance();)b=a.get("value"),nK(b)?c++:(b=+b,d=Math.min(b,d),e=Math.max(b,e),f+=b);a=a.Mb()-c;var h;a?h=f/a:d=e=f=h=void 0;this.ua("count",a);this.ua("min",d);this.ua("max",e);this.ua("sum",f);this.ua("average",h);this.I(8192)}};$.g.Kt=function(){this.Ka&&$.L(this.Ka,$.Sr)&&$.Tr(this.Ka,this.aa().Mb())};$.g.PG=function(){var a=this.f.mh.cb();$.rb(a,this.ea)||uK(this,a)}; +$.g.GH=function(){this.o(4,1)}; +$.g.bk=function(a){this.jb();$.At(this.labels());var b=this.aa();b.Mb();var c=this.u("mode3d");this.J(16384)&&(this.f.Gi&&(this.f.oD(),this.f.Gi.parent(this.Va),this.f.Gi.zIndex(25),this.f.Gi&&($.L(this.f.mh,$.ng)?this.f.Gi.ya().oa("renderfinish",this.PG,!1,this):$.L(this.f.mh,$.X)&&this.f.Gi.oa("chartdraw",this.GH,!1,this))),this.I(16384));this.J(4)&&(this.Vm(a),this.o(4112));if(this.J(16)){this.Zf=!0;var d=this.si();var e=0;for(b.reset();b.advance();)if(e=b.get("value"),nK(e))b.i("missing",!0); +else{e=+e;e=e/this.Mf("sum")*360;var f=b.get("state");f="selected"==f?2:"hovered"==f?1:"normal"==f?$.Zl:window.NaN;(0,window.isNaN)(f)||this.state.Ag(f,b.ia());b.i("start",d).i("sweep",e).i("explode",qK(this,f));d+=e}}if(this.J(4096)){this.labels().O()||this.labels().O(this.Va);this.labels().clear();this.jc&&(this.jc.length=0);this.Ed&&(this.Ed.length=0);this.N&&(this.N.clear(),c&&this.Sb.clear());if(this.labels().enabled())if(d=eK(this)?$.jm("pie.outsideLabels"):$.jm("pie.insideLabels"),this.labels().qp(d.autoColor), +this.labels().disablePointerEvents(d.disablePointerEvents),eK(this)){if(this.Zf&&(this.b=this.rl,this.sa=Number.NEGATIVE_INFINITY),sK(this),this.Zf){for(d=5;this.sa&&(0,window.isFinite)(this.sa)&&d&&10h&&(a=h,this.y=h-this.height);0!=this.labels.length&&(d= +this.vf.On(this.labels[0]).height,this.y+dO&&(O=Math.abs(t-c));O=C*Math.sqrt(Math.pow(O,2)-Math.pow(t-c,2))/O;C=e+(this.f?1:-1)*Math.abs(O);w=e+w*Math.cos(x);B=c+B*Math.sin(x);var J=e+y*Math.cos(x);x=c+E*Math.sin(x);E=Math.floor($.Xm(C, +t,e,c))+v;v=Math.abs($.Cb(C-w,t-B,J-w,x-B));y=0>O||E>y;if(v>this.j||(0,window.isNaN)(this.j)||y){this.j=0>O?Number.POSITIVE_INFINITY:v;O=window.Infinity;for(E=x=0;Eh||y)this.XE=!0;u=C+u;C=this.f?u:u-d.width;this.x=(0,window.isNaN)(this.x)?C:this.x>C?C:this.x;C=this.f?u+d.width:u;this.width=(0,window.isNaN)(this.width)?C:this.widtht?y=$.hb(Math.atan(t/u))+360:0>u?y=$.hb(Math.atan(t/u))+180:!u&&0t&&(y=270);y-=r;this.b.push(y,C,p);a-=d.height/2+q/2}this.width-=this.x}; +$.g.jb=function(){this.cw();if(this.XE){var a=this.N,b=this.D;(0,window.isNaN)(b)||(a.enabled(!1),this.Kn||(this.Kn=[]),this.Kn.push(a),$.Fa(this.labels,b,1));var c=this.vf;a=this.labels;var d=this.g,e,f,h=d[d.length-1];if(h!=this){var k=null;b=a.slice();var l=d.length,m=!1;var p=0;for(e=a.length;pb.length){c.push(IR(a)+"(");for(var d=a.arguments,e=0;d&&eb)throw Error("Bad port number "+b);a.N=b}else a.N=null};dS=function(a,b,c){b instanceof gS?(a.f=b,Aea(a.f,a.b)):(c||(b=hS(b,Bea)),a.f=new gS(b,a.b))};fS=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""}; +hS=function(a,b,c){return $.z(a)?(a=(0,window.encodeURI)(a).replace(b,Cea),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};Cea=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};gS=function(a,b){this.Ta=this.b=null;this.f=a||null;this.g=!!b};iS=function(a){a.b||(a.b=new $.Rz,a.Ta=0,a.f&&zea(a.f,function(b,c){a.add((0,window.decodeURIComponent)(b.replace(/\+/g," ")),c)}))}; +Dea=function(a){var b=ZR(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new gS(null,void 0);a=YR(a);for(var d=0;dNumber($.fd)&&(c.ik.src='javascript:""');d=c.ik.style;d.visibility="hidden";d.width=d.height="10px";d.display="none";$.yd?d.marginTop=d.marginLeft="-10px":(d.position="absolute",d.top=d.left="-10px");if($.od&&!$.gd("11")){c.Dj.target=c.My||"";$.ze(c.Dj).b.body.appendChild(c.ik);$.Rd(c.ik,"readystatechange",c.tR,!1,c);try{c.b=!1,c.Dj.submit()}catch(kc){$.ce(c.ik,"readystatechange",c.tR,!1,c),pS(c)}}else{$.ze(c.Dj).b.body.appendChild(c.ik);d=c.My+"_inner";e=WR(c.ik);if(window.document.baseURI){var f= +$.tc(d);$.me("Short HTML snippet, input escaped, safe URL, for performance");f='';f=$.ve(f,null)}else f=$.tc(d),$.me("Short HTML snippet, input escaped, for performance"),f=$.ve('',null);$.vf&&!$.yd?e.documentElement.innerHTML=RR(f):e.write(RR(f));$.Rd(e.getElementById(d),"load",c.wK,!1,c);var h=VR("TEXTAREA",c.Dj);f=0;for(var k=h.length;f.");if("A"in Gea)throw Error("Tag name is not allowed for SafeHtml.");x=null;w="";if(u)for(var la in u){if(!qS.test(la))throw Error('Invalid attribute name "'+ +la+'".');var ma=u[la];if(null!=ma){C=w;y=la;B=ma;if(B instanceof $.le)B=LR(B);else if("style"==y.toLowerCase())B=yea(B);else{if(/^on/i.test(y))throw Error('Attribute "'+y+'" requires goog.string.Const value, "'+B+'" given.');if(y.toLowerCase()in Hea)if(B instanceof NR)B=sea(B);else if(B instanceof $.oe)B=OR(B);else if($.z(B))B=PR(B).Is();else throw Error('Attribute "'+y+'" on tag "a" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+B+'" given.');}B.Jw&&(B=B.Is());var sa=y+'="'+$.tc(String(B))+ +'"';w=C+(" "+sa)}}var Qa="";else{var Eb=UR(S);Qa+=">"+RR(Eb)+"";x=Eb.uw()}var Fb=u&&u.dir;Fb&&(/^(ltr|rtl|auto)$/i.test(Fb)?x=0:x=null);var mb=$.ve(Qa,x);var Kc=UR(J,mb,TR("\nLine: "+v.lineNumber+"\n\nBrowser stack:\n"+v.stack+"-> [end]\n\nJS stack traversal:\n"+KR(void 0)+"-> "))}catch(kd){Kc=TR("Exception trying to expose exception! You win, we lose. "+kd)}RR(Kc);$.ce(e.getElementById(d),"load",c.wK,!1,c);e.close();pS(c)}}rS(c)}; +Fea=function(a,b){var c=$.ze(a);$R(b,function(b,e){$.A(b)||(b=[b]);(0,$.Pe)(b,function(b){b=c.nc("INPUT",{type:"hidden",name:e,value:b});a.appendChild(b)})})};uS=function(a,b){a.vu=!1;var c,d;c||"function"!=typeof a.g||(d=a.g(b))&&(c=4);c?pS(a):(a.dispatchEvent("complete"),a.dispatchEvent("success"),tS(a))};pS=function(a){a.b||(a.vu=!1,a.dispatchEvent("complete"),a.dispatchEvent("error"),tS(a),a.b=!0)};tS=function(a){vS(a);rS(a);a.Dj=null;a.dispatchEvent("ready")}; +vS=function(a){var b=a.ik;b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,a.f.push(b));a.Ly&&($.pj(a.Ly),a.Ly=null);$.nd||$.vf&&!$.yd?a.Ly=$.oj(a.XV,2E3,a):a.XV();a.ik=null;a.My=null};rS=function(a){a.Dj&&a.Dj==oS&&$.Te(a.Dj)};wS=function(a){return a.ik?$.od&&!$.gd("11")?a.ik:WR(a.ik).getElementById(a.My+"_inner"):null};xS=function(){};zS=function(a){var b;(b=a.b)||(b={},yS(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b};AS=function(){}; +BS=function(a){return(a=yS(a))?new window.ActiveXObject(a):new window.XMLHttpRequest};yS=function(a){if(!a.f&&"undefined"==typeof window.XMLHttpRequest&&"undefined"!=typeof window.ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;ck?[k/h*d,k]:[c,k],k[0]-=e|| +0,k[1]-=f||0,a=a.yp(k[0],k[1])):a=a.yp(b["pdf-width"],b["pdf-height"]);b.data=a;b.dataType="svg";b.responseType="file"};WS=function(a){var b="";a&&(b=(new window.XMLSerializer).serializeToString(a));return b};XS=function(){this.b={};this.f={};this.D={};this.g={};this.j={}};YS=function(a,b,c){if($.D(c)){var d={};$.Ic(c,function(a,b){$.n(a)&&(d[b]=a)});$.Pc(d)||(a[b]=d)}else $.n(c)&&(a[b]=c)}; +$.Rz.prototype.gr=$.ca(21,function(){$.Tz(this);for(var a=[],b=0;b'+c};$.G("acgraph.server",function(a){$.n(a)&&(QS=a);return QS});var $S=$.Ej.prototype;$S.saveAsPNG=$S.rv;$S.saveAsJPG=$S.pv; +$S.saveAsPDF=$S.qv;$S.saveAsSVG=$S.sv;$S.saveAsPng=$S.rv;$S.saveAsJpg=$S.pv;$S.saveAsPdf=$S.qv;$S.saveAsSvg=$S.sv;$S.shareAsPng=$S.ot;$S.shareAsJpg=$S.Gz;$S.shareAsPdf=$S.Hz;$S.shareAsSvg=$S.Iz;$S.getPngBase64String=$S.zy;$S.getJpgBase64String=$S.xy;$S.getSvgBase64String=$S.Cy;$S.getPdfBase64String=$S.yy;$S.print=$S.print;$S.toSvg=$S.yp;$.g=XS.prototype;$.g.filename=function(a){$.n(a)&&(this.G=a);return this.G};$.g.ij=function(a,b){return this.b=XR({width:a,height:b},a,this.b)};$.g.vW=function(a,b,c,d,e,f,h){return this.f=XR({caption:a,link:b,name:c,description:d,width:e,height:f,appId:h},a,this.f)};$.g.M_=function(a,b,c){return this.D=XR({url:a,width:b,height:c},a,this.D)};$.g.iY=function(a,b,c,d){return this.g=XR({caption:a,description:b,width:c,height:d},a,this.g)}; +$.g.WY=function(a,b,c,d){return this.j=XR({link:a,description:b,width:c,height:d},a,this.j)}; +$.g.vH=function(){this.G="anychart";this.b={width:void 0,height:void 0};this.f={caption:$.kl.location?$.kl.location.hostname:"",link:void 0,name:void 0,description:void 0,appId:0x42607363aa4b7,width:1200,height:630};this.D={url:"https://export.anychart.com/sharing/twitter",width:1024,height:800};this.g={caption:"AnyChart",description:void 0,width:1200,height:630};this.j={link:void 0,description:void 0,width:1200,height:800}}; +$.g.F=function(){var a={};YS(a,"filename",this.G);YS(a,"image",this.b);YS(a,"facebook",this.f);YS(a,"twitter",this.D);YS(a,"linkedin",this.g);YS(a,"pinterest",this.j);return a};$.g.$=function(a){this.filename(a.filename);this.ij(a.image);this.vW(a.facebook);this.M_(a.twitter);this.iY(a.linkedin);this.WY(a.pinterest)};var aT=XS.prototype;aT.filename=aT.filename;aT.image=aT.ij;aT.facebook=aT.vW;aT.twitter=aT.M_;aT.linkedin=aT.iY;aT.pinterest=aT.WY;var bT=new XS;bT.vH();bT.create=function(){return new XS};bT.uc=function(a,b){var c=a.exports?a.exports()[b]():void 0,d=$.fa.anychart.exports[b](),e;"object"==$.ka(c)?e=XR(d,c,d):e=$.n(c)?c:d;return e};bT.N=$.kl.acgraph.server;bT.rv=function(a,b,c,d,e,f){if(b=b?b.ya():null){var h=bT.uc(a,"image");a=XR({width:c,height:d,quality:e,filename:f},c,{width:h.width,height:h.height,filename:bT.uc(a,"filename")});b.rv(a.width,a.height,a.quality,a.filename)}}; +bT.pv=function(a,b,c,d,e,f,h){if(b=b?b.ya():null){var k=bT.uc(a,"image");a=XR({width:c,height:d,quality:e,forceTransparentWhite:f,filename:h},c,{width:k.width,height:k.height,filename:bT.uc(a,"filename")});b.pv(a.width,a.height,a.quality,a.forceTransparentWhite,a.filename)}}; +bT.qv=function(a,b,c,d,e,f,h){if(b=b?b.ya():null){var k=bT.uc(a,"image");a=XR({paperSize:c,width:c,landscape:d,height:d,x:e,y:f,filename:h},c,{width:k.width,height:k.height,filename:bT.uc(a,"filename")});b.qv(a.paperSize||a.width,a.landscape||a.height,a.x,a.y,a.filename)}}; +bT.sv=function(a,b,c,d,e){if(b=b?b.ya():null){var f=bT.uc(a,"image");a=XR({paperSize:c,width:c,landscape:d,height:d,filename:e},c,{width:f.width,height:f.height,filename:bT.uc(a,"filename")});b.sv(a.paperSize||a.width,a.landscape||a.height,a.filename)}};bT.yp=function(a,b,c,d){return(b=b?b.ya():null)?(a=bT.uc(a,"image"),c=XR({paperSize:c,width:c,landscape:d,height:d},c,{width:a.width,height:a.height}),b.yp(c.paperSize||c.width,c.landscape||c.height)):""}; +bT.eL=function(a,b,c){var d={};d["file-name"]=c||bT.uc(a,"filename");d.data=b;d.dataType="xml";d.responseType="file";sS(QS+"/xml",d)};bT.dL=function(a,b,c){var d={};d["file-name"]=c||bT.uc(a,"filename");d.data=b;d.dataType="json";d.responseType="file";sS(QS+"/json",d)};bT.wz=function(a,b,c){var d={};d["file-name"]=c||bT.uc(a,"filename");d.data=b;d.dataType="csv";d.responseType="file";sS(QS+"/csv",d)}; +bT.xz=function(a,b,c){var d={};d["file-name"]=c||bT.uc(a,"filename");d.data=b;d.dataType="xlsx";d.responseType="file";sS(QS+"/xlsx",d)};bT.ot=function(a,b,c,d,e,f,h,k,l){if(b=b?b.ya():null){var m=bT.uc(a,"image");a=XR({onSuccess:c,onError:d,asBase64:e,width:f,height:h,quality:k,filename:l},c,{width:m.width,height:m.height,filename:bT.uc(a,"filename")});b.ot(a.onSuccess,a.onError,a.asBase64,a.width,a.height,a.quality,a.filename)}}; +bT.Gz=function(a,b,c,d,e,f,h,k,l,m){if(b=b?b.ya():null){var p=bT.uc(a,"image");a=XR({onSuccess:c,onError:d,asBase64:e,width:f,height:h,quality:k,forceTransparentWhite:l,filename:m},c,{width:p.width,height:p.height,filename:bT.uc(a,"filename")});b.Gz(a.onSuccess,a.onError,a.asBase64,a.width,a.height,a.quality,a.forceTransparentWhite,a.filename)}}; +bT.Iz=function(a,b,c,d,e,f,h,k){if(b=b?b.ya():null){var l=bT.uc(a,"image");a=XR({onSuccess:c,onError:d,asBase64:e,paperSize:f,width:f,landscape:h,height:h,filename:k},c,{width:l.width,height:l.height,filename:bT.uc(a,"filename")});b.Iz(a.onSuccess,a.onError,a.asBase64,a.paperSize||a.width,a.landscape||a.height,a.filename)}}; +bT.Hz=function(a,b,c,d,e,f,h,k,l,m){if(b=b?b.ya():null){var p=bT.uc(a,"image");a=XR({onSuccess:c,onError:d,asBase64:e,paperSize:f,width:f,landscape:h,height:h,x:k,y:l,filename:m},c,{width:p.width,height:p.height,filename:bT.uc(a,"filename")});b.Hz(a.onSuccess,a.onError,a.asBase64,a.paperSize||a.width,a.landscape||a.height,a.x,a.y,a.filename)}}; +bT.zy=function(a,b,c,d,e,f,h){if(b=b?b.ya():null)a=bT.uc(a,"image"),c=XR({onSuccess:c,onError:d,width:e,height:f,quality:h},c,{width:a.width,height:a.height}),b.zy(c.onSuccess,c.onError,c.width,c.height,c.quality)};bT.xy=function(a,b,c,d,e,f,h,k){if(b=b?b.ya():null)a=bT.uc(a,"image"),c=XR({onSuccess:c,onError:d,width:e,height:f,quality:h,forceTransparentWhite:k},c,{width:a.width,height:a.height}),b.xy(c.onSuccess,c.onError,c.width,c.height,c.quality,c.forceTransparentWhite)}; +bT.Cy=function(a,b,c,d,e,f){if(b=b?b.ya():null)a=bT.uc(a,"image"),c=XR({onSuccess:c,onError:d,paperSize:e,width:e,landscape:f,height:f},c,{width:a.width,height:a.height}),b.Cy(c.onSuccess,c.onError,c.paperSize||c.width,c.landscape||c.height)};bT.yy=function(a,b,c,d,e,f,h,k){if(b=b?b.ya():null)a=bT.uc(a,"image"),c=XR({onSuccess:c,onError:d,paperSize:e,width:e,landscape:f,height:f,x:h,y:k},c,{width:a.width,height:a.height}),b.yy(c.onSuccess,c.onError,c.paperSize||c.width,c.landscape||c.height,c.x,c.y)}; +bT.print=function(a,b,c,d){if(a=b?b.ya():null)c=XR({paperSize:c,landscape:d},c),a.print(c.paperSize,c.landscape)}; +bT.qL=function(a,b,c,d,e,f){var h=bT.uc(a,"facebook"),k=XR({caption:c,link:d,name:e,description:f},c,h),l=$.kl.open("","_blank","scrollbars=yes, width=550, height=550, top="+Number(window.screen.height/2-275)+", left="+Number(window.screen.width/2-275));bT.ot(a,b,function(a){a={app_id:h.appId,display:"popup",picture:a};a.caption=k.caption;k.link&&(a.link=k.link,k.name&&(a.name=k.name),k.description&&(a.description=k.description));var b="",c;for(c in a)b+=b?"&":"",b+=c+"="+a[c];l.location.href="https://www.facebook.com/dialog/feed?"+ +b},void 0,!1,h.width,h.height)}; +bT.tL=function(a,b){var c=bT.uc(a,"twitter"),d=Number(window.screen.width/2-300),e=Number(window.screen.height/2-260);var f=$.Be(window.document,"INPUT","ac-share-twitter-data-input",void 0);if(0a},o6=function(a,b){b?a.tabIndex=0:(a.tabIndex=-1,a.removeAttribute("tabIndex"))},qga=function(a){if($.od&&!$.id(8))return a.offsetParent;var b=$.xe(a),c=$.yf(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host), +c=$.yf(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null},p6=function(a){for(var b=new $.ob(0,window.Infinity,window.Infinity,0),c=$.ze(a),d=c.b.body,e=c.b.documentElement,f=$.He(c.b);a=qga(a);)if(!($.od&&0==a.clientWidth||$.yd&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=$.yf(a,"overflow")){var h=$.Df(a),k=new $.lb(a.clientLeft,a.clientTop);h.x+=k.x;h.y+= +k.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=$.Ge($.Ie(c.b)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null},q6=function(a,b){var c=b||$.He(window.document);var d=c||$.He(window.document);var e=$.Df(a),f=$.Df(d),h= +$.Wf(d);if(d==$.He(window.document)){var k=e.x-d.scrollLeft;e=e.y-d.scrollTop;$.od&&!$.id(10)&&(k+=h.left,e+=h.top)}else k=e.x-f.x-h.left,e=e.y-f.y-h.top;h=$.Kf(a);f=d.clientHeight-h.height;var l=d.scrollLeft,m=d.scrollTop;l+=Math.min(k,Math.max(k-(d.clientWidth-h.width),0));m+=Math.min(e,Math.max(e-f,0));d=new $.lb(l,m);c.scrollLeft=d.x;c.scrollTop=d.y},r6=function(a,b){$.mf.call(this);this.f=a||1;this.b=b||$.nj;this.g=(0,$.va)(this.$da,this);this.j=(0,$.yn)()},s6=function(a,b){if(a.classList)(0,$.Pe)(b, +function(b){$.xj(a,b)});else{var c={};(0,$.Pe)($.vj(a),function(a){c[a]=!0});(0,$.Pe)(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0a?c-1:a},0)},q7=function(a){o7(a,function(a,c){return(a+1)%c},a.gk)},r7=function(a){o7(a,function(a,c){a--;return 0>a?c-1:a},a.gk)},o7=function(a,b,c){c=0>c?a.$e(a.Uk):c;var d=$.Cw(a);c=b.call(a,c,d);for(var e=0;e<=d;){var f=a.Xd(c);if(f&&a.iV(f)){a.Km(c);break}e++;c=b.call(a,c,d)}},s7=function(){},t7=function(a,b,c){I6.call(this,a,c||s7.rd(),b);this.Lm(1,!1);this.Lm(2,!1);this.Lm(4,!1);this.Lm(32,!1);this.ec=1},u7=function(){},v7=function(a,b){I6.call(this, +null,a||u7.rd(),b);this.Lm(1,!1);this.Lm(2,!1);this.Lm(4,!1);this.Lm(32,!1);this.ec=1},w7=function(a){this.b=a||"menu"},x7=function(a){v7.call(this,u7.rd(),a)},y7=function(a,b){i7.call(this,g7,b||w7.rd(),a);m7(this,!1)},z7=function(a,b){(a.KC=b)&&m7(a,!0)},A7=function(a,b){y7.call(this,a,b);this.P=null},E7=function(a,b,c,d,e,f,h,k,l){var m=B7(c),p=$.Mf(a),q=p6(a);if(q){var r=new $.K(q.left,q.top,q.right-q.left,q.bottom-q.top);q=Math.max(p.left,r.left);var t=Math.min(p.left+p.width,r.left+r.width); +if(q<=t){var u=Math.max(p.top,r.top);r=Math.min(p.top+p.height,r.top+r.height);u<=r&&(p.left=q,p.top=u,p.width=t-q,p.height=r-u)}}q=$.ze(a);u=$.ze(c);if(q.b!=u.b){t=q.b.body;u=$.Ie(u.b);r=new $.lb(0,0);var v=(v=$.xe(t))?$.Ie(v):window;if($.ad(v,"parent")){var x=t;do{var w=v==u?$.Df(x):$.Ef(x);r.x+=w.x;r.y+=w.y}while(v&&v!=u&&v!=v.parent&&(x=v.frameElement)&&(v=v.parent))}t=j6(r,$.Df(t));!$.od||$.id(9)||$.Ee(q.b)||(t=j6(t,$.Je(q.b)));p.left+=t.x;p.top+=t.y}a=C7(a,b);b=p.left;a&4?b+=p.width:a&2&&(b+= +p.width/2);p=new $.lb(b,p.top+(a&1?p.height:0));p=j6(p,m);e&&(p.x+=(a&4?-1:1)*e.x,p.y+=(a&1?-1:1)*e.y);if(h)if(l)var y=l;else if(y=p6(c))y.top-=m.y,y.right-=m.x,y.bottom-=m.y,y.left-=m.x;return D7(p,c,d,f,y,h,k)},B7=function(a){if(a=a.offsetParent){var b="HTML"==a.tagName||"BODY"==a.tagName;if(!b||"static"!=$.yf(a,"position")){var c=$.Df(a);if(!b){b=$.Rf(a);var d;if(d=b){d=$.kB&&0<=$.Cc($.bca,10);var e=$.Uba&&0<=$.Cc($.Yba,10);d=$.nd||d||e}b=d?-a.scrollLeft:!b||$.Pba&&$.gd("8")||"visible"==$.yf(a, +"overflowX")?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft;c=j6(c,new $.lb(b,a.scrollTop))}}}return c||new $.lb},D7=function(a,b,c,d,e,f,h){a=a.clone();var k=C7(b,c);c=$.Lf(b);h=h?h.clone():c.clone();a=a.clone();h=h.clone();var l=0;if(d||0!=k)k&4?a.x-=h.width+(d?d.right:0):k&2?a.x-=h.width/2:d&&(a.x+=d.left),k&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);if(f){if(e){d=a;k=h;l=0;65==(f&65)&&(d.x=e.right)&&(f&=-2);132==(f&132)&&(d.y=e.bottom)&&(f&=-5);d.xe.right&&(k.width=Math.min(e.right-d.x,m+k.width-e.left),k.width=Math.max(k.width,0),l|=4)}d.x+k.width>e.right&&f&1&&(d.x=Math.max(e.right-k.width,e.left),l|=1);f&2&&(l|=(d.xe.right?32:0));d.ye.bottom&&(k.height=Math.min(e.bottom-d.y,m+k.height-e.top),k.height=Math.max(k.height,0),l|=8));d.y+k.height>e.bottom&& +f&4&&(d.y=Math.max(e.bottom-k.height,e.top),l|=2);f&8&&(l|=(d.ye.bottom?128:0));e=l}else e=256;l=e}f=new $.K(0,0,0,0);f.left=a.x;f.top=a.y;f.width=h.width;f.height=h.height;e=l;if(e&496)return e;$.Af(b,new $.lb(f.left,f.top));h=new $.pb(f.width,f.height);$.qb(c,h)||(c=h,a=$.Ee($.ze($.xe(b)).b),!$.od||$.gd("10")||a&&$.gd("8")?(b=b.style,$.nd?b.MozBoxSizing="border-box":$.yd?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(c.width,0)+"px",b.height= +Math.max(c.height,0)+"px"):(h=b.style,a?(a=$.Vf(b,"padding"),b=$.Wf(b),h.pixelWidth=c.width-b.left-a.left-a.right-b.right,h.pixelHeight=c.height-b.top-a.top-a.bottom-b.bottom):(h.pixelWidth=c.width,h.pixelHeight=c.height)));return e},C7=function(a,b){return(b&8&&$.Rf(a)?b^4:b)&-9},F7=function(){},G7=function(a,b,c){this.element=a;this.g=b;this.N=c},H7=function(a,b,c,d){G7.call(this,a,b);this.j=c?5:0;this.D=d||void 0},I7=function(a,b){a&48&&(b^=4);a&192&&(b^=1);return b},J7=function(){this.f=[]},L7= +function(a,b,c){var d=b.g.nc("SPAN");d.className="anychart-submenu-arrow";K7(b,d);a.bn(c).appendChild(d)},K7=function(a,b){i6(a)?($.xj(b,"anychart-submenu-arrow-rtl"),$.cf(b,"â—„")):($.yj(b,"anychart-submenu-arrow-rtl"),$.cf(b,"â–º"))},M7=function(a,b,c,d){a7.call(this,a,b,c,d||J7.rd())},N7=function(a){a.getParent().ci(function(a){a!=this&&"function"==typeof a.Hl&&(a.Hl(),a.wo())},a)},P7=function(a,b){!b&&O7(a)&&O7(a).Km(-1);a.dispatchEvent(v6(64,b));var c=O7(a);if(b!=a.TP){var d=a.Fa();b?$.xj(d,"anychart-submenu-open"): +$.yj(d,"anychart-submenu-open")}if(b!=c.bf()&&(b&&(c.Ze||c.Hd(),c.Km(-1)),c.eq(b),b)){c=new H7(a.Fa(),12,!1);d=O7(a);var e=d.Fa();d.bf()||(e.style.visibility="hidden",$.Qf(e,!0));c.b(e,8);d.bf()||($.Qf(e,!1),e.style.visibility="visible")}a.TP=b},Q7=function(a,b,c){var d=$.Bw(a);(c?d.oa:d.dc).call(d,b,"enter",a.k$)},O7=function(a){a.Nk?a.uJ&&a.Nk.getParent()!=a&&a.Nk.Rj(a):R7(a,new y7(a.g));a.Nk.Fa()||a.Nk.nc();return a.Nk},R7=function(a,b){var c=a.Nk;b!=c&&(c&&(a.Hl(),a.Ze&&Q7(a,c,!1)),a.Nk=b,a.uJ= +!1,b&&(b.Rj(a),b.eq(!1,!0),z7(b,!1),m7(b,!1),a.Ze&&Q7(a,b,!0)))},S7=function(){this.f=[]},T7=function(a,b,c){b=b.g.nc("span");b.className="anychart-submenu-arrow";b.innerHTML=" ";a.bn(c).appendChild(b)},U7=function(a,b){a7.call(this,a,void 0,void 0,S7.rd());this.b=b||null},V7=function(a){a.getParent().ci(function(a){a!=this&&"function"==typeof a.Hl&&(a.Hl(),a.wo())},a)},X7=function(a,b){!b&&W7(a)&&W7(a).Km(-1);a.dispatchEvent(v6(64,b));var c=W7(a);if(b!=a.AN){var d=a.Fa();b?$.xj(d,"anychart-submenu-open"): +$.yj(d,"anychart-submenu-open")}if(b!=c.bf()&&(b&&(c.Ze||c.Hd(a.b),c.Km(-1)),c.eq(b),b)){c=new H7(a.Fa(),12,!1);var e=W7(a),f=e.Fa();e.bf()||(f.style.visibility="hidden",$.Qf(f,!0));c.b(f,8);e.bf()||($.Qf(f,!1),f.style.visibility="visible");c=$.Ge(window);d=$.Mf(f);f=$.Ff(f);e=e.P;var h=$.Mf(e);e.style.maxHeight=c.height-f.y-(d.height-h.height)-15+"px"}a.AN=b},Y7=function(a,b,c){var d=$.Bw(a);(c?d.oa:d.dc).call(d,b,"enter",a.R6)},W7=function(a){if(a.Ck)a.tH&&a.Ck.getParent()!=a&&a.Ck.Rj(a);else{var b= +new A7(a.g),c=a.Ck;b!=c&&(c&&(a.Hl(),a.Ze&&Y7(a,c,!1)),a.Ck=b,a.tH=!1,b&&(b.Rj(a),b.eq(!1,!0),z7(b,!1),m7(b,!1),a.Ze&&Y7(a,b,!0)))}a.Ck.Fa()||a.Ck.nc();return a.Ck},Z7=function(a,b){this.g=a instanceof $.lb?a:new $.lb(a,b)},$7=function(a,b){Z7.call(this,a,b)},a8=function(a,b,c,d){H7.call(this,a,b,c||d);(c||d)&&this.f(65|(d?32:132))},b8=function(a,b){y7.call(this,a,b);z7(this,!0);this.eq(!1,!0);this.f=new $.Rz},c8=function(a,b,c,d){var e=a.bf();a.bf()||(0,$.yn)();a.dispatchEvent("beforeshow")&&(c= +"undefined"!=typeof c?c:8,e||(a.Fa().style.visibility="hidden"),$.Qf(a.Fa(),!0),b.b(a.Fa(),c,d),e||(a.Fa().style.visibility="visible"),a.Km(-1),a.eq(!0))},d8=function(a,b){for(var c=a.f.Fs(),d=0;dthis.gk&&b<=this.gk?this.gk++:athis.gk&&this.gk--}; +$.g.removeChild=function(a,b){if(a=$.z(a)?$.Dw(this,a):a){var c=this.$e(a);-1!=c&&(c==this.gk?(a.No(!1),this.gk=-1):cb&&this.f.padding().bottom(b+a)}this.f.listen("selectedrangechange",this.yN,!1,this);a=$.Bw(this);a.oa(this.b.Fa(),"blur",this.uR);a.oa(this.N.Fa(),"blur",this.uR);this.W||(this.W=new $.op(this.b.Fa()),a.oa(this.W,"key",this.yK));this.la||(this.la=new $.op(this.N.Fa()),a.oa(this.la,"key",this.yK))}}; +$.g.uR=function(){var a=this.b.Fj(),b=this.N.Fj(),c=this.format();a=$.kl.anychart.format.parseDateTime(a,c);b=$.kl.anychart.format.parseDateTime(b,c);if(a&&b){c=a.getTime();var d=b.getTime();c>d&&(a=[b,b=a][0],c=[d,d=c][0]);if(c!=this.sa||d!=this.Da){this.sa=c;this.Da=d;this.f.selectRange(a,b,!0);return}}$.Jw(this.b,$.kl.anychart.format.dateTime(this.sa,this.format()));$.Jw(this.N,$.kl.anychart.format.dateTime(this.Da,this.format()))}; +$.g.yK=function(a){if(13==a.keyCode){a=a.target.WX.Fa();var b;a:{var c=b=0;if(O8(a))b=a.selectionStart,c=-1;else if($.od&&!$.gd("9")){var d=a.ownerDocument||a.document;var e=d.selection.createRange();"textarea"==a.type?(d=d.body.createTextRange(),d.moveToElementText(a)):d=a.createTextRange();d=[d,e];e=d[0];d=d[1];if(e.inRange(d)){e.setEndPoint("EndToStart",d);if("textarea"==a.type){d.duplicate();c=b=e.text;for(d=!1;!d;)0==e.compareEndPoints("StartToEnd",e)?d=!0:(e.moveEnd("character",-1),e.text== +b?c+="\r\n":d=!0);b=[c.length,-1];break a}b=e.text.length;c=-1}}b=[b,c]}b=b[0];this.uR();O8(a)?(a.selectionStart=b,a.selectionEnd=b):$.od&&!$.gd("9")&&("textarea"==a.type&&(b=$.ic(a.value.substring(0,b)).length),a=a.createTextRange(),a.collapse(!0),a.move("character",b),a.select())}};$.g.Zg=function(){P8.B.Zg.call(this)}; +$.g.U=function(){this.f.unlisten("selectedrangechange",this.yN,!1,this);this.f=null;this.P&&($.Ve(this.ea),this.ea=null);this.P&&($.Ve(this.P),this.P=null);this.W&&($.Bw(this).dc(this.W,"key",this.yK),this.W.ld(),this.W=null);this.la&&($.Bw(this).dc(this.la,"key",this.yK),this.la.ld(),this.la=null);P8.B.U.call(this)};var j9=P8.prototype;$.G("anychart.ui.rangePicker",function(){return new P8});j9.render=j9.Hd;j9.decorate=j9.ir;j9.target=j9.target;j9.format=j9.format;j9.dispose=j9.ld; +j9.getElement=j9.Fa;j9.toLabelText=j9.hea;j9.fromLabelText=j9.A9;$.H(T8,s8);T8.prototype.nc=function(){T8.B.nc.call(this);$.De(this.Fa(),{type:"button"});U8(this)};$.H(W8,T8);var Fga="anychart-button-toggle";$.H(X8,$.mf);$.g=X8.prototype;$.g.WB=null;$.g.SP=null;$.g.Nl=function(){return $.La(this.b)};$.g.clear=function(){var a=this.b;if(!$.A(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0;this.WB=null};$.g.U=function(){X8.B.U.call(this);delete this.b;this.WB=null};$.H($8,$.Aw);$.g=$8.prototype;$.g.target=function(a){this.f=a};$.g.sH=function(a){if(a.firstSelected==a.firstKey&&a.lastSelected==a.lastKey&&(a=$.Dw(this,"max"))){Z8(this.b,a);return}Z8(this.b,null)};$.g.O6=function(a,b){a&&R6(a,b)}; +$.g.ex=function(a){$.n(a)&&$.A(a)&&(this.pd=(0,$.Ug)(a,function(a,c){c=$.Tc(c);var b=$.n(c.startDate)&&$.n(c.endDate);"unit"==c.type||"points"==c.type?(c.count=c.count||1,c.anchor=$.el(c.anchor),a.push(c)):b?(c.type="range",a.push(c)):"range"!=c.type&&a.push(c);return a},[]),this.update());return this.pd};$.g.nc=function(){$8.B.nc.call(this);a9(this)};$.g.Hk=function(a){b9(a)?this.Hd(a):($8.B.Hk.call(this,a),a9(this))}; +$.g.update=function(){this.Ze&&(this.Qj(!0),this.b.clear(),(0,$.Pe)(this.pd,function(a,b){var c=new W8(a.text);c.hh=a;"max"==a.type&&g6(c,"max");c.It&=-17;var d=this.b,e=d.b.length;c&&(Y8(d,c,!1),$.Ga(d.b,c,e));b?b==this.pd.length-1?l8(c.Li,c,1):l8(c.Li,c,3):l8(c.Li,c,2);this.sc(c,!0)},this))};$.g.Gea=function(a){return $.n(a)?(this.P!=a&&(this.P=a,this.N&&$.cf(this.N,$.kl.anychart.format.getMessage(this.P))),this):this.P};$.g.M6=function(a){this.Hd(a)}; +$.g.Hd=function(a){a=a||this.f;if(b9(a)){this.target(a);this.W=!0;var b=this.f.container()?this.f.container().getStage():null;b&&b.container()?a=b.container():a=null}b=this.f?!(0,window.isNaN)(this.f.getSelectedRange().firstSelected):!1;a&&b?($8.B.Hd.call(this,a),(a=this.f?this.f.mE():null)&&this.sH({firstKey:a.Cm,lastKey:a.Yn,firstSelected:a.Zq,lastSelected:a.Ou})):(a=(0,$.va)(this.M6,this,a||this.f),this.f.Ie("chartdraw",a,!1,this))}; +$.g.ir=function(a){$8.B.ir.call(this,a);this.f&&(a=this.f?this.f.mE():null)&&this.sH({firstKey:a.Cm,lastKey:a.Yn,firstSelected:a.Zq,lastSelected:a.Ou})};$.g.Xf=function(){$8.B.Xf.call(this);if(this.f){this.update();if(this.W){var a=($.Xf(this.Fa()).height||21)+15,b=this.f.padding().bottom();a>b&&this.f.padding().bottom(b+a)}this.f.listen("selectedrangechange",this.sH,!1,this);$.Bw(this).oa(this,"action",this.N6)}}; +$.g.N6=function(a){var b=a.target.hh,c=$.fk($.MB,b.type,$.n(null)?null:"max");"unit"==c?this.f.selectRange(b.unit,b.count,b.anchor,!0):"points"==c?this.f.selectRange("points",b.count,b.anchor,!0):"ytd"==c||"qtd"==c||"mtd"==c||"max"==c?this.f.selectRange(c,!0):(c=$.kl.anychart.format.parseDateTime(b.startDate),b=$.kl.anychart.format.parseDateTime(b.endDate),c&&b&&this.f.selectRange(c,b,!0));Z8(this.b,a.target)};$.g.Zg=function(){$8.B.Zg.call(this)}; +$.g.U=function(){this.f.unlisten("selectedrangechange",this.sH,!1,this);this.f=null;this.b.clear();this.N&&($.Ve(this.N),this.N=null);$8.B.U.call(this)};var k9=$8.prototype;$.G("anychart.ui.rangeSelector",function(){return new $8});k9.render=k9.Hd;k9.decorate=k9.ir;k9.target=k9.target;k9.ranges=k9.ex;k9.dispose=k9.ld;k9.getElement=k9.Fa;k9.zoomLabelText=k9.Gea;$.H(c9,$.Aw);$.g=c9.prototype;$.g.target=function(a){this.f=a};$.g.nc=function(){c9.B.nc.call(this);d9(this)};$.g.Hk=function(a){e9(a)?this.Hd(a):(c9.B.Hk.call(this,a),d9(this))};$.g.P6=function(a){this.Hd(a)};$.g.Hd=function(a){a=a||this.f;if(e9(a)){this.target(a);var b=this.f.container()?this.f.container().getStage():null;b&&b.container()?a=b.container():a=null}a?c9.B.Hd.call(this,a):(a=(0,$.va)(this.P6,this,a||this.f),this.f.listenOnce("chartdraw",a,!1,this))}; +$.g.Xf=function(){c9.B.Xf.call(this);this.f&&$.Bw(this).oa(this,"action",this.Q6)};$.g.Q6=function(a){a=a.target.hh;this.f.vk=100;var b=this.f.getCurrentScene();switch(a.type){case "fitAll":b.fitAll();break;case "zoomIn":b.zoomIn();break;case "zoomOut":b.zoomOut()}};$.g.Zg=function(){c9.B.Zg.call(this)};$.g.U=function(){this.f=null;this.b.ld();this.b=null;this.N.ld();this.N=null;this.P.ld();this.P=null;c9.B.U.call(this)};var l9=c9.prototype;$.G("anychart.ui.zoom",function(){return new c9}); +l9.render=l9.Hd;l9.decorate=l9.ir;l9.target=l9.target;l9.dispose=l9.ld;}).call(this,$)} +$_=window.anychart;$_.$=$;$_._=_}); \ No newline at end of file diff --git a/web/AnyChart/box/_deps/cdn.anychart.com/releases/v8/css/anychart-ui.min.css b/web/AnyChart/box/_deps/cdn.anychart.com/releases/v8/css/anychart-ui.min.css new file mode 100644 index 0000000000000000000000000000000000000000..eb06d8ed0a628ba7c6d41dd14adf4b24b2405411 --- /dev/null +++ b/web/AnyChart/box/_deps/cdn.anychart.com/releases/v8/css/anychart-ui.min.css @@ -0,0 +1,8 @@ +/*! + * AnyChart is lightweight robust charting library with great API and Docs, that works with your stack and has tons of chart types and features. + * Version: 2026-01-19 + * License: https://www.anychart.com/buy/ + * Contact: sales@anychart.com + * Copyright: AnyChart.com 2026. All rights reserved. + */ +.anychart-ui-support{border-style:hidden;}* [class^="anychart"]{outline:none;}.anychart-inline-block{position:relative;display:-moz-inline-box;display:inline-block;}* html .anychart-inline-block{display:inline;}* :first-child+html .anychart-inline-block{display:inline;}.anychart-hidden{display:none;}.anychart-control-disabled{color:#cccccc;}.anychart-label-input{-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;border:1px solid #d9d9d9;border-top:1px solid silver;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font-size:13px;height:16px;padding:5px 4px;}.anychart-label-input:focus{border-color:#4d90fe;}.anychart-label-input.anychart-label-input-label-disabled{color:#cccccc;}.anychart-thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#ffffff;border:1px solid #dddddd;border-radius:2px;-webkit-transition:border .2s ease-in-out;transition:border .2s ease-in-out;}.anychart-thumbnail>img{margin-right:auto;margin-left:auto;display:block;max-width:100%;height:auto;}.anychart-thumbnail:hover,.anychart-thumbnail:focus{border-color:#cccccc;box-shadow:0 1px 3px rgba(0,0,0,.2);}.anychart-thumbnail:active{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);border-color:#489adc;}.anychart-loader{background-color:rgba(255,255,255,.5);position:absolute;top:0;left:0;width:100%;height:100%;z-index:1000;}.anychart-loader .anychart-loader-rotating-cover{width:70px;height:70px;position:absolute;top:50%;margin-top:-35px;left:50%;margin-left:-35px;}.anychart-loader .anychart-loader-rotating-plane{display:block;width:100%;height:100%;border-radius:20%;border:5px solid #1c75ba;margin:0 auto;position:relative;-webkit-animation:anychart-loader-rotate-plane 3s infinite;animation:anychart-loader-rotate-plane 3s infinite;}.anychart-loader .anychart-loader-chart-row{position:absolute;top:10px;bottom:0;left:10px;right:10px;letter-spacing:-3px;line-height:0;font-size:0;white-space:nowrap;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col{display:inline-block;width:25%;height:90%;background:#000000;margin:0 12.5% 0 0;vertical-align:bottom;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col.anychart-loader-green{background:#26a957;height:50%;-webkit-animation:anychart-loader-blink-plane 1.5s infinite;animation:anychart-loader-blink-plane 1.5s infinite;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col.anychart-loader-orange{background:#ff8207;height:70%;-webkit-animation:anychart-loader-blink-plane 1.5s infinite .15s;animation:anychart-loader-blink-plane 1.5s infinite .25s;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col.anychart-loader-red{background:#f0402e;height:90%;-webkit-animation:anychart-loader-blink-plane 1.5s infinite .3s;animation:anychart-loader-blink-plane 1.5s infinite .5s;}@keyframes anychart-loader-rotate-plane{0%{-webkit-transform:perspective(120px)rotateX(0deg)rotateY(0deg);transform:perspective(120px)rotateX(0deg)rotateY(0deg);opacity:1;}25%{-webkit-transform:perspective(120px)rotateX(-180.1deg)rotateY(0deg);transform:perspective(120px)rotateX(-180.1deg)rotateY(0deg);opacity:.3;}50%{-webkit-transform:perspective(120px)rotateX(-180deg)rotateY(-179.9deg);transform:perspective(120px)rotateX(-180deg)rotateY(-179.9deg);opacity:1;}75%{-webkit-transform:perspective(120px)rotateX(0deg)rotateY(-180.1deg);transform:perspective(120px)rotateX(0deg)rotateY(-180.1deg);opacity:.3;}100%{-webkit-transform:perspective(120px)rotateX(0deg)rotateY(0deg);transform:perspective(120px)rotateX(0deg)rotateY(0deg);opacity:1;}}@keyframes anychart-loader-blink-plane{0%{opacity:1;}50%{opacity:.01;}100%{opacity:1;}}.anychart-custom-button{margin:2px;border:0;padding:0;font-family:Arial,sans-serif;color:#000000;background:#dddddd url("../../../ACDVF/button-bg.png") repeat-x top left;text-decoration:none;list-style:none;vertical-align:middle;cursor:pointer;outline:none;}.anychart-custom-button-outer-box,.anychart-custom-button-inner-box{border-style:solid;border-color:#aaaaaa;vertical-align:top;}.anychart-custom-button-outer-box{margin:0;border-width:1px 0;padding:0;}.anychart-custom-button-inner-box{margin:0 -1px;border-width:0 1px;padding:3px 4px;white-space:nowrap;}* html .anychart-custom-button-inner-box{left:-1px;}* html .anychart-custom-button-rtl .anychart-custom-button-outer-box{left:-1px;}* html .anychart-custom-button-rtl .anychart-custom-button-inner-box{right:auto;}* :first-child+html .anychart-custom-button-inner-box{left:-1px;}* :first-child+html .anychart-custom-button-rtl .anychart-custom-button-inner-box{left:1px;}::root .anychart-custom-button,::root .anychart-custom-button-outer-box{line-height:0;}::root .anychart-custom-button-inner-box{line-height:normal;}.anychart-custom-button-disabled{background-image:none !important;opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30);cursor:default;}.anychart-custom-button-disabled .anychart-custom-button-outer-box,.anychart-custom-button-disabled .anychart-custom-button-inner-box{color:#333333 !important;border-color:#999999 !important;}* html .anychart-custom-button-disabled{margin:2px 1px !important;padding:0 1px !important;}* :first-child+html .anychart-custom-button-disabled{margin:2px 1px !important;padding:0 1px !important;}.anychart-custom-button-hover .anychart-custom-button-outer-box,.anychart-custom-button-hover .anychart-custom-button-inner-box{border-color:#99ccff #6699ee #6699ee #77aaff !important;}.anychart-custom-button-active,.anychart-custom-button-checked{background-color:#bbbbbb;background-position:bottom left;}.anychart-custom-button-focused .anychart-custom-button-outer-box,.anychart-custom-button-focused .anychart-custom-button-inner-box{border-color:orange;}.anychart-custom-button-collapse-right,.anychart-custom-button-collapse-right .anychart-custom-button-outer-box,.anychart-custom-button-collapse-right .anychart-custom-button-inner-box{margin-right:0;}.anychart-custom-button-collapse-left,.anychart-custom-button-collapse-left .anychart-custom-button-outer-box,.anychart-custom-button-collapse-left .anychart-custom-button-inner-box{margin-left:0;}.anychart-custom-button-collapse-left .anychart-custom-button-inner-box{border-left:1px solid #ffffff;}.anychart-custom-button-collapse-left.anychart-custom-button-checked.anychart-custom-button-inner-box{border-left:1px solid #dddddd;}* html .anychart-custom-button-collapse-left .anychart-custom-button-inner-box{left:0;}* :first-child+html .anychart-custom-button-collapse-left.anychart-custom-button-inner-box{left:0;}.anychart-button{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #dcdcdc;border:1px solid rgba(0,0,0,0.1);color:#333333;cursor:pointer;text-align:center;font-family:inherit;font-size:11px;font-weight:bold;height:29px;line-height:27px;margin-right:16px;min-width:52px;outline:0;padding:0 8px;white-space:nowrap;}.anychart-button:focus{border-color:#4d90fe;}.anychart-button:hover{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);}.anychart-button:active{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);}.anychart-button i{font-size:11px;}.anychart-button.anychart-button-disabled:active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:default;}.anychart-button-primary{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#4898e6;background-image:-webkit-linear-gradient(to bottom,#4898e6,#4089d0);background-image:-moz-linear-gradient(to bottom,#4898e6,#4089d0);background-image:-ms-linear-gradient(to bottom,#4898e6,#4089d0);background-image:-o-linear-gradient(to bottom,#4898e6,#4089d0);background-image:linear-gradient(to bottom,#4898e6,#4089d0);border:1px solid #1976d2;color:#ffffff;cursor:pointer;font-size:11px;font-weight:bold;height:26px;line-height:24px;margin:0 16px 0 0;min-width:70px;outline:0;padding:0 7px;}.anychart-button-primary:hover,.anychart-button-primary:active{background-color:#4898e6;background-image:-webkit-linear-gradient(to bottom,#4898e6,#387ec3);background-image:-moz-linear-gradient(to bottom,#4898e6,#387ec3);background-image:-ms-linear-gradient(to bottom,#4898e6,#387ec3);background-image:-o-linear-gradient(to bottom,#4898e6,#387ec3);background-image:linear-gradient(to bottom,#4898e6,#387ec3);border:1px solid #1976d2;color:#ffffff;}.anychart-button-primary:focus{-webkit-box-shadow:inset 0 0 0 1px #ffffff;-moz-box-shadow:inset 0 0 0 1px #ffffff;box-shadow:inset 0 0 0 1px #ffffff;outline:0;}.anychart-button-primary:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);}.anychart-button-primary.anychart-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background:#4d90fe;background-image:-webkit-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:-moz-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:-ms-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:-o-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:linear-gradient(to bottom,#4d90fe,#4089d0);filter:alpha(opacity=50);opacity:0.5;cursor:default;}.anychart-button-secondary{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #dcdcdc;color:#333333;cursor:pointer;font-size:11px;font-weight:bold;height:26px;line-height:24px;margin:0 16px 0 0;min-width:70px;outline:0;padding:0 7px;}.anychart-button-secondary:hover,.anychart-button-secondary:active{-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,0.1);box-shadow:0 1px 1px rgba(0,0,0,0.1);background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);border:1px solid #c6c6c6;color:#111111;}.anychart-button-secondary:focus{border:1px solid #4d90fe;}.anychart-button-secondary:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);}.anychart-button-secondary.anychart-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #f3f3f3;border:1px solid rgba(0,0,0,0.05);color:#b8b8b8;cursor:default;}.anychart-button-standard{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);color:#333333;border:1px solid #dcdcdc;border:1px solid rgba(0,0,0,0.1);}.anychart-button-standard:hover{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);border:1px solid #c6c6c6;color:#111111;}.anychart-button-standard:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:#f8f8f8;color:#111111;}.anychart-button-standard.anychart-button-checked{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background-color:#eeeeee;background-image:-webkit-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-moz-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-ms-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-o-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:linear-gradient(to bottom,#eeeeee,#e0e0e0);border:1px solid #cccccc;color:#333333;}.anychart-button-standard.anychart-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #f3f3f3;border:1px solid rgba(0,0,0,0.05);color:#b8b8b8;cursor:default;}.anychart-button-toggle{height:28px;line-height:24px;padding:0;min-width:27px;margin:0;vertical-align:middle;}.anychart-button.anychart-button-toggle{z-index:auto;}.anychart-button-collapse-left,.anychart-button-collapse-right{z-index:1;}.anychart-button-collapse-left.anychart-button-checked,.anychart-button-collapse-right.anychart-button-checked{z-index:2;}.anychart-button-collapse-left:hover,.anychart-button-collapse-right:hover{z-index:3;}.anychart-button-collapse-left.anychart-button-disabled{z-index:0;}.anychart-button-collapse-right{margin-right:0;-moz-border-radius-topright:0;-moz-border-radius-bottomright:0;-webkit-border-top-right-radius:0;-webkit-border-bottom-right-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;}.anychart-button-collapse-left{margin-left:-1px;-moz-border-radius-bottomleft:0;-moz-border-radius-topleft:0;-webkit-border-bottom-left-radius:0;-webkit-border-top-left-radius:0;border-bottom-left-radius:0;border-top-left-radius:0;}.anychart-menu{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:0 2px 4px rgba(0,0,0,0.2);-moz-box-shadow:0 2px 4px rgba(0,0,0,0.2);box-shadow:0 2px 4px rgba(0,0,0,0.2);background:#ffffff;border:1px solid #cccccc;border:1px solid rgba(0,0,0,.2);cursor:default;font-size:13px;color:#222222;font-family:Arial,sans-serif;margin:0;outline:none;padding:6px 0;position:absolute;z-index:1003;line-height:normal;}.anychart-menuitem{position:relative;color:#333333;cursor:pointer;list-style:none;margin:0;padding:6px 1em 6px 30px;white-space:nowrap;}.anychart-menuitem.anychart-menuitem-rtl{padding-left:7em;padding-right:28px;}.anychart-menu-nocheckbox .anychart-menuitem,.anychart-menu-noicon .anychart-menuitem{padding-left:12px;}.anychart-menu-noaccel .anychart-menuitem{padding-right:20px;}.anychart-menuitem-disabled{cursor:default;}.anychart-menuitem-disabled .anychart-menuitem-accel,.anychart-menuitem-disabled .anychart-menuitem-content{color:#cccccc !important;}.anychart-menuitem-disabled .anychart-menuitem-icon{opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30);}.anychart-menuitem-highlight,.anychart-menuitem-hover{background-color:#eeeeee;border-color:#eeeeee;border-style:dotted;border-width:1px 0;padding-top:5px;padding-bottom:5px;}.anychart-menuitem-checkbox,.anychart-menuitem-icon{background-repeat:no-repeat;height:21px;left:3px;position:absolute;right:auto;top:3px;vertical-align:middle;width:21px;}.anychart-menuitem i{position:absolute;left:9px;}.anychart-menuitem-link{padding:0;}.anychart-menuitem-link a{text-decoration:none;color:inherit;display:inline-block;padding:6px 3em 6px 28px;width:100%;box-sizing:border-box;transition:none;}.anychart-menuitem-link i{padding-top:7px;pointer-events:none;}.anychart-menuitem-link.anychart-menuitem-highlight a{padding-bottom:5px;padding-top:5px;}.anychart-menuitem-link.anychart-menuitem-highlight i{padding-top:6px;}.anychart-menuitem-rtl .anychart-menuitem-checkbox,.anychart-menuitem-rtl .anychart-menuitem-icon{left:auto;right:6px;}.anychart-menuitem-accel{color:#777777;direction:ltr;left:auto;float:right;padding:0 0 0 24px;position:relative;right:0;text-align:right;}.anychart-menuitem-rtl .anychart-menuitem-accel{left:0;right:auto;text-align:left;}.anychart-menuitem-mnemonic-hint{text-decoration:underline;}.anychart-menuitem-mnemonic-separator{color:#999999;font-size:12px;padding-left:4px;}.anychart-menuseparator{border-top:1px solid #ebebeb;margin-top:6px;margin-bottom:6px;}.anychart-submenu-arrow{color:#000000;opacity:.5;filter:alpha(opacity=50);position:absolute;right:-6px;top:3px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000;font-size:0;}.anychart-menuitem-content{position:relative;}.anychart-menuitem-highlight .anychart-submenu-arrow,.anychart-menuitem-hover .anychart-submenu-arrow{border-left-color:#333333;opacity:1.0;}.anychart-menuitem-rtl .anychart-submenu-arrow{text-align:left;left:0;right:auto;padding-left:6px;}.anychart-menuitem-disabled .anychart-submenu-arrow{border-left-color:#cccccc;opacity:1.0;}.anychart-menu-scrollable{overflow-y:auto;}.anychart-menu.anychart-menu-horizontal{padding-left:4px;padding-right:4px;}.anychart-menu.anychart-menu-horizontal .anychart-menuitem{display:inline-block;padding:2px 3px;}.anychart-menu.anychart-menu-horizontal .anychart-menuitem.anychart-menuitem-highlight,.anychart-menu.anychart-menu-horizontal .anychart-menuitem .anychart-menuitem-hover{padding-top:1px;padding-bottom:1px;}.anychart-menuitem.anychart-option i{position:relative;left:1px;height:23px;padding-top:1px;width:23px;}.anychart-menuitem.anychart-option i.ac-position-center{top:-1px;}.anychart-menu-button{background:#dddddd url("../../../ACDVF/button-bg.png") repeat-x top left;border:0;color:#000000;cursor:pointer;list-style:none;margin:2px;outline:none;padding:0;text-decoration:none;vertical-align:middle;}.anychart-menu-button-outer-box,.anychart-menu-button-inner-box{border-style:solid;border-color:#aaaaaa;vertical-align:top;}.anychart-menu-button-outer-box{margin:0;border-width:1px 0;padding:0;}.anychart-menu-button-inner-box{margin:0 -1px;border-width:0 1px;padding:3px 4px;}* html .anychart-menu-button-inner-box{left:-1px;}* html .anychart-menu-button-rtl .anychart-menu-button-outer-box{left:-1px;right:auto;}* html .anychart-menu-button-rtl .anychart-menu-button-inner-box{right:auto;}* :first-child+html .anychart-menu-button-inner-box{left:-1px;}* :first-child+html .anychart-menu-button-rtl .anychart-menu-button-inner-box{left:1px;right:auto;}::root .anychart-menu-button,::root .anychart-menu-button-outer-box,::root .anychart-menu-button-inner-box{line-height:0;}::root .anychart-menu-button-caption,::root .anychart-menu-button-dropdown{line-height:normal;}.anychart-menu-button-disabled{background-image:none !important;opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30);cursor:default;}.anychart-menu-button-disabled .anychart-menu-button-outer-box,.anychart-menu-button-disabled .anychart-menu-button-inner-box,.anychart-menu-button-disabled .anychart-menu-button-caption,.anychart-menu-button-disabled .anychart-menu-button-dropdown{color:#333333 !important;border-color:#999999 !important;}* html .anychart-menu-button-disabled{margin:2px 1px !important;padding:0 1px !important;}* :first-child+html .anychart-menu-button-disabled{margin:2px 1px !important;padding:0 1px !important;}.anychart-menu-button-hover .anychart-menu-button-outer-box,.anychart-menu-button-hover .anychart-menu-button-inner-box{border-color:#99ccff #6699ee #6699ee #77aaff !important;}.anychart-menu-button-active,.anychart-menu-button-open{background-color:#bbbbbb;background-position:bottom left;}.anychart-menu-button-focused .anychart-menu-button-outer-box,.anychart-menu-button-focused .anychart-menu-button-inner-box{border-color:orange;}.anychart-menu-button-caption{padding:0 4px 0 0;vertical-align:top;}.anychart-menu-button-dropdown{height:15px;width:7px;background:url("../../../ACDVF/editortoolbar.png") no-repeat -388px 0;vertical-align:top;}.anychart-menu-button-collapse-right,.anychart-menu-button-collapse-right .anychart-menu-button-outer-box,.anychart-menu-button-collapse-right .anychart-menu-button-inner-box{margin-right:0;}.anychart-menu-button-collapse-left,.anychart-menu-button-collapse-left .anychart-menu-button-outer-box,.anychart-menu-button-collapse-left .anychart-menu-button-inner-box{margin-left:0;}.anychart-menu-button-collapse-left .anychart-menu-button-inner-box{border-left:1px solid #ffffff;}.anychart-menu-button-collapse-left.anychart-menu-button-checked.anychart-menu-button-inner-box{border-left:1px solid #dddddd;}.anychart-flat-menu-button{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;border:1px solid #dcdcdc;color:#333333;cursor:pointer;font-size:11px;font-weight:bold;line-height:27px;list-style:none;margin:0 2px;min-width:46px;outline:none;padding:0 18px 0 6px;text-align:center;text-decoration:none;}.anychart-flat-menu-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #f3f3f3;border:1px solid rgba(0,0,0,0.05);color:#b8b8b8;cursor:default;}.anychart-flat-menu-button-disabled .anychart-flat-menu-button-dropdown{border-color:#b8b8b8 transparent;}.anychart-flat-menu-button-hover{background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);border-color:#c6c6c6;color:#111111;}.anychart-flat-menu-button.anychart-flat-menu-button-open,.anychart-flat-menu-button.anychart-flat-menu-button-active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background-color:#eeeeee;background-image:-webkit-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-moz-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-ms-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-o-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:linear-gradient(to bottom,#eeeeee,#e0e0e0);border:1px solid #cccccc;color:#333333;z-index:2;}.anychart-flat-menu-button-focused{border-color:#4d90fe;}.anychart-flat-menu-button-caption{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;padding-right:20px;text-overflow:ellipsis;overflow:hidden;width:100%;}.anychart-flat-menu-button-dropdown{border-color:#777777 transparent;border-style:solid;border-width:4px 4px 0 4px;height:0;width:0;position:absolute;right:5px;top:12px;}.anychart-flat-menu-button-active .anychart-flat-menu-button-dropdown,.anychart-flat-menu-button-open .anychart-flat-menu-button-dropdown,.anychart-flat-menu-button-selected .anychart-flat-menu-button-dropdown,.anychart-flat-menu-button-hover .anychart-flat-menu-button-dropdown{border-color:#595959 transparent;}.anychart-combobox{background:0;background-color:whiteSmoke;background-image:-webkit-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-moz-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-ms-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-o-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:linear-gradient(to bottom,whiteSmoke,#f1f1f1);border:1px solid gainsboro;border:1px solid rgba(0,0,0,0.1);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font:normal small arial,sans-serif;height:24px;color:#333333;line-height:24px;list-style:none;font-size:11px;font-weight:bold;text-decoration:none;vertical-align:middle;cursor:pointer;margin-left:4px;padding:1px 0;top:auto;}.anychart-combobox:hover{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);border-color:#c6c6c6;color:#222222;}.anychart-combobox:hover input{border-right-color:#d9d9d9;}.anychart-combobox.anychart-combobox-disabled{background-color:whiteSmoke;background-image:-webkit-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-moz-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-ms-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-o-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:linear-gradient(to bottom,whiteSmoke,#f1f1f1);border:1px solid #f2f2f2;opacity:1;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:default;}.anychart-combobox.anychart-combobox-disabled input{color:#b8b8b8;border-right-color:transparent;}.anychart-combobox.anychart-combobox-disabled .anychart-combobox-button{opacity:0.4;}.anychart-combobox input{-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background:transparent;border:1px solid transparent;color:#333333;font-family:Arial,sans-serif;font-size:11px;font-weight:bold;height:20px;overflow:hidden;padding:0 0 0 3px;position:relative;margin-right:18px;}.anychart-combobox input:focus{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-webkit-user-select:text;-moz-user-select:text;background:#ffffff;border:1px solid #4d90fe;height:20px;outline:none;}.anychart-combobox-button{display:inline-block;border-color:#777777 transparent;border-style:solid;border-width:4px 4px 0 4px;height:0;width:0;position:absolute;right:5px;top:12px;}.anychart-checkbox{cursor:pointer;display:inline-block;margin:2px 2px 2px 0;overflow:hidden;padding:0;position:relative;white-space:nowrap;vertical-align:middle;}.anychart-checkbox .anychart-checkbox-element{-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:rgba(255,255,255,.05);border:1px solid #c6c6c6;border:1px solid rgba(155,155,155,.57);height:11px;margin:0 4px 1px 1px;outline:0;vertical-align:text-bottom;width:11px;}.anychart-checkbox-hover .anychart-checkbox-element{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.1);box-shadow:inset 0 1px 1px rgba(0,0,0,.1);border:1px solid #b2b2b2;}.anychart-checkbox-focused .anychart-checkbox-element{border:1px solid #4d90fe;}.anychart-checkbox-checked{background-color:#ffffff;background-color:rgba(255,255,255,.65);}.anychart-checkbox-checked .anychart-checkbox-checkmark{display:inline-block;}.anychart-checkbox-disabled{cursor:default;color:#b8b8b8;}.anychart-checkbox-disabled .anychart-checkbox-element{background-color:#ffffff;border:1px solid #f1f1f1;cursor:default;}.anychart-checkbox-checkmark{display:none;opacity:0.6;height:15px;outline:0;width:15px;left:0;position:relative;top:-3px;}.anychart-palette{cursor:default;outline:none;}.anychart-palette-table{empty-cells:show;margin:16px;}.anychart-palette-cell{border:1px solid transparent;cursor:pointer;margin:0;position:relative;}.anychart-plot-controls{position:absolute;}.anychart-plot-controls .anychart-button{min-width:20px;height:20px;opacity:0.7;line-height:0;vertical-align:middle;margin:0;padding:0;display:inline-block;}.anychart-plot-controls-hidden{visibility:hidden;}.anychart-palette-colorswatch{border:none;font-size:14px;height:16px;position:relative;width:16px;display:block;}.anychart-palette-colorswatch:before{display:none;position:relative;top:1px;left:2px;}.anychart-palette-cell-hover{border:1px solid #000000;}.anychart-palette-cell-selected{outline:1px solid #000000;}.anychart-palette-cell-selected .anychart-palette-colorswatch:before{display:inline-block;}.anychart-color-menu-button-indicator{height:14px;margin-left:4px;outline:1px solid #bbbbbb;width:14px;}.anychart-color-menu-button .anychart-menu-button-inner-box,.anychart-toolbar-color-menu-button .anychart-toolbar-menu-button-inner-box{padding-top:2px !important;padding-bottom:2px !important;}.anychart-toolbar{background-color:#f7f7f7;border:1px solid #d5d5d5;cursor:default;font:normal 12px Verdana,sans-serif;color:#7c868e;padding:2px;position:relative;}.anychart-toolbar-button,.anychart-toolbar-menu-button{margin:0 2px;border:0;padding:2px 2px;text-decoration:none;vertical-align:middle;list-style:none;cursor:default;outline:none;}.anychart-toolbar-button-inner-box,.anychart-toolbar-menu-button-inner-box{padding:3px 4px;}.anychart-toolbar-button-hover,.anychart-toolbar-menu-button-hover{background-color:#eeeeee;}.anychart-toolbar-menu-button-active,.anychart-toolbar-menu-button-open,.anychart-toolbar-button-active,.anychart-toolbar-button-checked,.anychart-toolbar-button-selected{background-color:#dddddd !important;}.anychart-toolbar-menu-button-dropdown{margin-left:3px;padding-bottom:1px;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #7c868e;vertical-align:middle;}.anychart-toolbar-separator{margin:0 2px;border-left:1px solid #d6d6d6;border-right:1px solid #f7f7f7;padding:0;width:0;text-decoration:none;list-style:none;outline:none;vertical-align:middle;line-height:normal;font-size:120%;overflow:hidden;}.anychart-toolbar-item-icon{padding:0 2px;font-size:13px;color:#2485d0;}.anychart-toolbar-item-text{padding:0 2px;}.anychart-toolbar-menu{background-color:#f7f7f7;border:1px solid #d5d5d5;cursor:default;font:normal 12px Verdana,sans-serif;color:#7c868e;margin:0;outline:none;padding:6px 0;position:absolute;z-index:1003;line-height:normal;}.anychart-toolbar-menu .anychart-menuitem{color:#7c868e;}.anychart-toolbar-menu-button-hover .anychart-toolbar-menu-button-dropdown,.anychart-toolbar-menu-button-open .anychart-toolbar-menu-button-dropdown{border-top:4px solid #000000;}.anychart-toolbar-menu .anychart-menuitem i,.anychart-toolbar-menu .anychart-menuitem-content{display:inline;position:static;}.anychart-toolbar-menu .anychart-menuitem{padding:6px 5px;padding-right:8px;border-style:none;}.anychart-toolbar-menu .anychart-submenu-arrow{position:absolute;right:0;top:9px;padding:0 2px;}.anychart-menuitem-content{margin-right:1rem;}.anychart-option[role='menuitemradio']{padding-left:1.5rem;}.anychart-option-selected .anychart-menuitem-checkbox:before{content:'\2713';display:block;width:100%;height:100%;text-align:center;}.anychart-range-picker{font-family:Arial,sans-serif;font-size:11px;color:#7c868e;}.anychart-range-picker.anychart-range-picker-inside{position:absolute;bottom:27px;left:20px;}.anychart-range-picker .anychart-label-input{font-size:11px;margin:0 5px;height:13px;padding:3px 4px;width:90px;font-weight:normal;}.anychart-range-picker .anychart-input-label{margin-bottom:0;font-weight:normal;}.anychart-range-selector{font-family:Arial,sans-serif;font-size:11px;color:#7c868e;}.anychart-range-selector.anychart-range-selector-inside{position:absolute;bottom:27px;right:25px;}.anychart-range-selector .anychart-input-label{margin-right:5px;vertical-align:middle;margin-bottom:0;font-weight:normal;}.anychart-range-selector .anychart-button{height:21px;line-height:19px;padding:0 5px;}.anychart-zoom{position:absolute;left:10px;top:10px;}.anychart-zoom .anychart-button{height:21px;width:21px;min-width:21px;padding:0;line-height:normal;display:block;margin:5px 0;}.anychart-zoom .anychart-zoom-zoomIn{margin:2px 0;}.anychart-zoom .anychart-zoom-zoomOut{margin:2px 0;}.disable-selection{-moz-user-select:none;-ms-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;}.anychart-tooltip{border-radius:3px;padding:5px 10px;background:rgba(33,33,33,0.7);border:none;display:inline-block;box-sizing:border-box;letter-spacing:normal;color:#ffffff;font-family:Verdana,Helvetica,Arial,'sans-serif';font-size:12px;position:absolute;pointer-events:none;margin:10px 0px 10px 10px;}.anychart-tooltip-separator{color:rgba(206,206,206,0.3);border:none;height:1px;margin:5px 0;}.anychart-tooltip-title{font-size:14px;} \ No newline at end of file diff --git a/web/AnyChart/box/_deps/cdn.anychart.com/releases/v8/fonts/css/anychart-font.min.css b/web/AnyChart/box/_deps/cdn.anychart.com/releases/v8/fonts/css/anychart-font.min.css new file mode 100644 index 0000000000000000000000000000000000000000..3936c0dbac9163f2eb536dacb7794a82674a15e2 --- /dev/null +++ b/web/AnyChart/box/_deps/cdn.anychart.com/releases/v8/fonts/css/anychart-font.min.css @@ -0,0 +1,4 @@ +/*! +* AnyChart Fonts by AnyChart - http://anychart.com +* License - Apache 2.0 License +*/@font-face{font-family:anychart;src:url(../fonts/anychart.eot?cfdf5104f9116e045fdf387340cace70?#iefix) format("embedded-opentype"),url(../fonts/anychart.woff2?cfdf5104f9116e045fdf387340cace70) format("woff2"),url(../fonts/anychart.woff?cfdf5104f9116e045fdf387340cace70) format("woff"),url(../fonts/anychart.ttf?cfdf5104f9116e045fdf387340cace70) format("truetype"),url(../fonts/anychart.svg?cfdf5104f9116e045fdf387340cace70#anychart) format("svg");font-weight:400;font-style:normal}[class*=" ac-"],[class^=ac-]{font-family:anychart!important;speak:none;font-style:normal;font-weight:400!important;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ac-align-center:before{content:"\f101"}.ac-align-justify:before{content:"\f102"}.ac-align-left:before{content:"\f103"}.ac-align-right:before{content:"\f104"}.ac-all-sides:before{content:"\f105"}.ac-anchor-center-bottom:before{content:"\f106"}.ac-anchor-center-top:before{content:"\f107"}.ac-anchor-center:before{content:"\f108"}.ac-anchor-left-bottom:before{content:"\f109"}.ac-anchor-left-center:before{content:"\f10a"}.ac-anchor-left-top:before{content:"\f10b"}.ac-anchor-right-bottom:before{content:"\f10c"}.ac-anchor-right-center:before{content:"\f10d"}.ac-anchor-right-top:before{content:"\f10e"}.ac-andrews-pitchfork:before{content:"\f10f"}.ac-anychart:before{content:"\f110"}.ac-anychart2:before{content:"\f111"}.ac-anygantt:before{content:"\f112"}.ac-anymap:before{content:"\f113"}.ac-anymap2:before{content:"\f114"}.ac-anystock:before{content:"\f115"}.ac-api:before{content:"\f116"}.ac-arrow-down-left-square:before{content:"\f117"}.ac-arrow-down-left-thin:before{content:"\f118"}.ac-arrow-down-right-square:before{content:"\f119"}.ac-arrow-down-right-thin:before{content:"\f11a"}.ac-arrow-down-square:before{content:"\f11b"}.ac-arrow-down-thin:before{content:"\f11c"}.ac-arrow-down:before{content:"\f11d"}.ac-arrow-left-square:before{content:"\f11e"}.ac-arrow-left-thin:before{content:"\f11f"}.ac-arrow-left:before{content:"\f120"}.ac-arrow-right-square:before{content:"\f121"}.ac-arrow-right-thin:before{content:"\f122"}.ac-arrow-right:before{content:"\f123"}.ac-arrow-up-left-square:before{content:"\f124"}.ac-arrow-up-left-thin:before{content:"\f125"}.ac-arrow-up-right-square:before{content:"\f126"}.ac-arrow-up-right-thin:before{content:"\f127"}.ac-arrow-up-square:before{content:"\f128"}.ac-arrow-up-thin:before{content:"\f129"}.ac-arrow-up:before{content:"\f12a"}.ac-asterisk:before{content:"\f12b"}.ac-backward:before{content:"\f12c"}.ac-bars:before{content:"\f12d"}.ac-bold:before{content:"\f12e"}.ac-book:before{content:"\f12f"}.ac-bookmark:before{content:"\f130"}.ac-bullhorn-2:before{content:"\f131"}.ac-bullhorn:before{content:"\f132"}.ac-calendar-plus-o:before{content:"\f133"}.ac-calendar:before{content:"\f134"}.ac-caret-down:before{content:"\f135"}.ac-caret-left:before{content:"\f136"}.ac-caret-right:before{content:"\f137"}.ac-caret-up:before{content:"\f138"}.ac-chart-area:before{content:"\f139"}.ac-chart-column:before{content:"\f13a"}.ac-chart-column2:before{content:"\f13b"}.ac-chart-database-o:before{content:"\f13c"}.ac-chart-database-o2:before{content:"\f13d"}.ac-chart-financial:before{content:"\f13e"}.ac-chart-gauge:before{content:"\f13f"}.ac-chart-ruler-o:before{content:"\f140"}.ac-chart-ruler-pencil:before{content:"\f141"}.ac-chart-ruler-pencil2:before{content:"\f142"}.ac-chart-ruler:before{content:"\f143"}.ac-charts-many:before{content:"\f144"}.ac-check-circle-o:before{content:"\f145"}.ac-check-circle-thick:before{content:"\f146"}.ac-check-thin:before{content:"\f147"}.ac-check:before{content:"\f148"}.ac-checkbox-checked:before{content:"\f149"}.ac-chevron-circle-down-thin:before{content:"\f14a"}.ac-chevron-circle-down:before{content:"\f14b"}.ac-chevron-circle-left-thin:before{content:"\f14c"}.ac-chevron-circle-left:before{content:"\f14d"}.ac-chevron-circle-right-thin:before{content:"\f14e"}.ac-chevron-circle-right:before{content:"\f14f"}.ac-chevron-circle-up-thin:before{content:"\f150"}.ac-chevron-circle-up:before{content:"\f151"}.ac-chevron-down-thick:before{content:"\f152"}.ac-chevron-down:before{content:"\f153"}.ac-chevron-left-thick:before{content:"\f154"}.ac-chevron-left:before{content:"\f155"}.ac-chevron-right-thick:before{content:"\f156"}.ac-chevron-right:before{content:"\f157"}.ac-chevron-up-thick:before{content:"\f158"}.ac-chevron-up:before{content:"\f159"}.ac-circle-filled:before{content:"\f15a"}.ac-clear:before{content:"\f15b"}.ac-clipboard:before{content:"\f15c"}.ac-clone:before{content:"\f15d"}.ac-cloud-upload:before{content:"\f15e"}.ac-code:before{content:"\f15f"}.ac-cog-o:before{content:"\f160"}.ac-cog:before{content:"\f161"}.ac-collapse:before{content:"\f162"}.ac-comment-o:before{content:"\f163"}.ac-comment:before{content:"\f164"}.ac-comments-o:before{content:"\f165"}.ac-cross-filled:before{content:"\f166"}.ac-cross:before{content:"\f167"}.ac-cut-corners:before{content:"\f168"}.ac-deaf:before{content:"\f169"}.ac-decomposition-tree:before{content:"\f16a"}.ac-desktop:before{content:"\f16b"}.ac-diagonal-cros:before{content:"\f16c"}.ac-diagonal-sides1:before{content:"\f16d"}.ac-diagonal-sides2:before{content:"\f16e"}.ac-diamond-filled:before{content:"\f16f"}.ac-diamond:before{content:"\f170"}.ac-disk-slash:before{content:"\f171"}.ac-dot-square-o:before{content:"\f172"}.ac-download-chart:before{content:"\f173"}.ac-download-picture:before{content:"\f174"}.ac-download-zip:before{content:"\f175"}.ac-download:before{content:"\f176"}.ac-edit:before{content:"\f177"}.ac-ellipse-thin:before{content:"\f178"}.ac-ellipse:before{content:"\f179"}.ac-enlarge:before{content:"\f17a"}.ac-envelope:before{content:"\f17b"}.ac-exclamation:before{content:"\f17c"}.ac-expand:before{content:"\f17d"}.ac-facebook:before{content:"\f17e"}.ac-fibonacci-arc:before{content:"\f17f"}.ac-fibonacci-fan:before{content:"\f180"}.ac-fibonacci-retracement:before{content:"\f181"}.ac-fibonacci-timezones:before{content:"\f182"}.ac-file-archive-o:before{content:"\f183"}.ac-file-code-o:before{content:"\f184"}.ac-file-excel-o:before{content:"\f185"}.ac-file-image-o:before{content:"\f186"}.ac-file-pdf-o:before{content:"\f187"}.ac-file-text:before{content:"\f188"}.ac-fill-o:before{content:"\f189"}.ac-fill:before{content:"\f18a"}.ac-finite-trend-channel:before{content:"\f18b"}.ac-folder-open:before{content:"\f18c"}.ac-folder:before{content:"\f18d"}.ac-font:before{content:"\f18e"}.ac-forward:before{content:"\f18f"}.ac-forward2:before{content:"\f190"}.ac-free:before{content:"\f191"}.ac-git:before{content:"\f192"}.ac-globe:before{content:"\f193"}.ac-group:before{content:"\f194"}.ac-h-line-dashed-1:before{content:"\f195"}.ac-h-line-dashed-2:before{content:"\f196"}.ac-h-line-dashed-3:before{content:"\f197"}.ac-h-line-dashed-4:before{content:"\f198"}.ac-h-line-dashed-5:before{content:"\f199"}.ac-h-line-dotted-1:before{content:"\f19a"}.ac-h-line-dotted-2:before{content:"\f19b"}.ac-h-line-dotted-3:before{content:"\f19c"}.ac-h-line-dotted-4:before{content:"\f19d"}.ac-h-line-dotted-5:before{content:"\f19e"}.ac-h-line-thickness-1:before{content:"\f19f"}.ac-h-line-thickness-2:before{content:"\f1a0"}.ac-h-line-thickness-3:before{content:"\f1a1"}.ac-h-line-thickness-4:before{content:"\f1a2"}.ac-h-line-thickness-5:before{content:"\f1a3"}.ac-head-arrow:before{content:"\f1a4"}.ac-horizontal-line:before{content:"\f1a5"}.ac-horizontal-range:before{content:"\f1a6"}.ac-html5:before{content:"\f1a7"}.ac-infinite-line:before{content:"\f1a8"}.ac-info-circle:before{content:"\f1a9"}.ac-info:before{content:"\f1aa"}.ac-italic:before{content:"\f1ab"}.ac-javascript:before{content:"\f1ac"}.ac-jsfiddle:before{content:"\f1ad"}.ac-keyboard-o:before{content:"\f1ae"}.ac-label-center-inside:before{content:"\f1af"}.ac-label-left-inside:before{content:"\f1b0"}.ac-label-left-outside:before{content:"\f1b1"}.ac-label-right-inside:before{content:"\f1b2"}.ac-label-right-outside:before{content:"\f1b3"}.ac-left-side:before{content:"\f1b4"}.ac-light-bulb:before{content:"\f1b5"}.ac-line:before{content:"\f1b6"}.ac-linkedin:before{content:"\f1b7"}.ac-lock:before{content:"\f1b8"}.ac-logo:before{content:"\f1b9"}.ac-low-vision:before{content:"\f1ba"}.ac-map-o:before{content:"\f1bb"}.ac-map2-o:before{content:"\f1bc"}.ac-medium:before{content:"\f1bd"}.ac-minus:before{content:"\f1be"}.ac-mobile-phone:before{content:"\f1bf"}.ac-mobile:before{content:"\f1c0"}.ac-mouse-pointer:before{content:"\f1c1"}.ac-net:before{content:"\f1c2"}.ac-new-tab:before{content:"\f1c3"}.ac-object-group:before{content:"\f1c4"}.ac-object-ungroup:before{content:"\f1c5"}.ac-overline:before{content:"\f1c6"}.ac-pause:before{content:"\f1c7"}.ac-pentagon:before{content:"\f1c8"}.ac-phone-call:before{content:"\f1c9"}.ac-picture-o:before{content:"\f1ca"}.ac-pinterest:before{content:"\f1cb"}.ac-plane:before{content:"\f1cc"}.ac-play:before{content:"\f1cd"}.ac-plus:before{content:"\f1ce"}.ac-position-bottom:before{content:"\f1cf"}.ac-position-center:before{content:"\f1d0"}.ac-position-center2:before{content:"\f1d1"}.ac-position-left:before{content:"\f1d2"}.ac-position-right:before{content:"\f1d3"}.ac-position-top:before{content:"\f1d4"}.ac-preview:before{content:"\f1d5"}.ac-print:before{content:"\f1d6"}.ac-print2:before{content:"\f1d7"}.ac-puzzle-o:before{content:"\f1d8"}.ac-puzzle:before{content:"\f1d9"}.ac-question-circle-1:before{content:"\f1da"}.ac-question-circle-o:before{content:"\f1db"}.ac-question-circle-thin:before{content:"\f1dc"}.ac-question-circle:before{content:"\f1dd"}.ac-question:before{content:"\f1de"}.ac-random:before{content:"\f1df"}.ac-ray:before{content:"\f1e0"}.ac-rectangle-1:before{content:"\f1e1"}.ac-rectangle-2:before{content:"\f1e2"}.ac-rectangle:before{content:"\f1e3"}.ac-redo:before{content:"\f1e4"}.ac-refresh:before{content:"\f1e5"}.ac-remove-circle:before{content:"\f1e6"}.ac-remove-thin:before{content:"\f1e7"}.ac-remove:before{content:"\f1e8"}.ac-remove2-thin:before{content:"\f1e9"}.ac-reply:before{content:"\f1ea"}.ac-resize:before{content:"\f1eb"}.ac-reverse:before{content:"\f1ec"}.ac-right-side:before{content:"\f1ed"}.ac-round-corners:before{content:"\f1ee"}.ac-round-inner-corners:before{content:"\f1ef"}.ac-rss:before{content:"\f1f0"}.ac-ruler-paint-brush-o:before{content:"\f1f1"}.ac-ruler-paint-brush:before{content:"\f1f2"}.ac-save:before{content:"\f1f3"}.ac-search:before{content:"\f1f4"}.ac-search2:before{content:"\f1f5"}.ac-share:before{content:"\f1f6"}.ac-small-caps:before{content:"\f1f7"}.ac-smile:before{content:"\f1f8"}.ac-sort-alpha-asc:before{content:"\f1f9"}.ac-sort-alpha-desc:before{content:"\f1fa"}.ac-sort-amount-asc:before{content:"\f1fb"}.ac-sort-amount-desc:before{content:"\f1fc"}.ac-sort-asc:before{content:"\f1fd"}.ac-sort-desc:before{content:"\f1fe"}.ac-sort-numeric-asc:before{content:"\f1ff"}.ac-sort-numeric-desc:before{content:"\f200"}.ac-sort:before{content:"\f201"}.ac-square-corners:before{content:"\f202"}.ac-square-double-o:before{content:"\f203"}.ac-square:before{content:"\f204"}.ac-stacked_area:before{content:"\f205"}.ac-star-1:before{content:"\f206"}.ac-star-2:before{content:"\f207"}.ac-star-3:before{content:"\f208"}.ac-star-4:before{content:"\f209"}.ac-star-5:before{content:"\f20a"}.ac-star-half-o:before{content:"\f20b"}.ac-star-o:before{content:"\f20c"}.ac-star:before{content:"\f20d"}.ac-stop:before{content:"\f20e"}.ac-strikethrough:before{content:"\f20f"}.ac-support:before{content:"\f210"}.ac-tint:before{content:"\f211"}.ac-trapezium:before{content:"\f212"}.ac-trash-o:before{content:"\f213"}.ac-trend-channel:before{content:"\f214"}.ac-triangle-down-filled:before{content:"\f215"}.ac-triangle-down:before{content:"\f216"}.ac-triangle-left:before{content:"\f217"}.ac-triangle-right:before{content:"\f218"}.ac-triangle-up-filled:before{content:"\f219"}.ac-triangle-up:before{content:"\f21a"}.ac-triangle:before{content:"\f21b"}.ac-twitter:before{content:"\f21c"}.ac-underline:before{content:"\f21d"}.ac-undo:before{content:"\f21e"}.ac-universal-access:before{content:"\f21f"}.ac-unlock-alt:before{content:"\f220"}.ac-unlock:before{content:"\f221"}.ac-upload:before{content:"\f222"}.ac-user-plus:before{content:"\f223"}.ac-user-tie:before{content:"\f224"}.ac-users:before{content:"\f225"}.ac-v-line-dotted:before{content:"\f226"}.ac-vertical-line:before{content:"\f227"}.ac-vertical-range:before{content:"\f228"}.ac-yoda:before{content:"\f229"}.ac-zoom-in:before{content:"\f22a"}.ac-zoom-out:before{content:"\f22b"}.ac-fallback-symbol{display:none} \ No newline at end of file diff --git a/web/AnyChart/box/_deps/cdn.anychart.com/releases/v8/fonts/fonts/anychart.eot b/web/AnyChart/box/_deps/cdn.anychart.com/releases/v8/fonts/fonts/anychart.eot new file mode 100644 index 0000000000000000000000000000000000000000..717423c4dbcad175e5f15d8754a49de5fb2eb53a Binary files /dev/null and b/web/AnyChart/box/_deps/cdn.anychart.com/releases/v8/fonts/fonts/anychart.eot differ diff --git a/web/AnyChart/box/_deps/cdn.anychart.com/releases/v8/fonts/fonts/anychart.svg b/web/AnyChart/box/_deps/cdn.anychart.com/releases/v8/fonts/fonts/anychart.svg new file mode 100644 index 0000000000000000000000000000000000000000..87928045eed720bf8aa2671acb9cf2bf65283549 --- /dev/null +++ b/web/AnyChart/box/_deps/cdn.anychart.com/releases/v8/fonts/fonts/anychart.svg @@ -0,0 +1,909 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web/AnyChart/box/_deps/cdn.anychart.com/releases/v8/fonts/fonts/anychart.ttf b/web/AnyChart/box/_deps/cdn.anychart.com/releases/v8/fonts/fonts/anychart.ttf new file mode 100644 index 0000000000000000000000000000000000000000..cc7f38124c4d98e24fb229304f495b4791436131 Binary files /dev/null and b/web/AnyChart/box/_deps/cdn.anychart.com/releases/v8/fonts/fonts/anychart.ttf differ diff --git a/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.10.0/js/anychart-base.min.js b/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.10.0/js/anychart-base.min.js new file mode 100644 index 0000000000000000000000000000000000000000..8a8f28cbe88ec417fe8a22cdb9a3b13db6fab74c --- /dev/null +++ b/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.10.0/js/anychart-base.min.js @@ -0,0 +1,2127 @@ +/** + * AnyChart is lightweight robust charting library with great API and Docs, that works with your stack and has tons of chart types and features. + * + * Modules: core, theme-core, pie, theme-pie, cartesian, theme-cartesian, scatter, theme-scatter + * Version: 8.10.0.1933 (2021-05-19) + * License: https://www.anychart.com/buy/ + * Contact: sales@anychart.com + * Copyright: AnyChart.com 2021. All rights reserved. + */ +(function(global,factory){if(typeof module==='object'&&typeof module.exports==='object'){var wrapper=function(w){if(!w.document){throw Error('AnyChart requires a window with a document');}factory.call(w,w,w.document);try{w.acgraph.isNodeJS=Object.prototype.toString.call(global.process)=="[object process]";}catch(e){};return w.anychart;};module.exports=global.document?wrapper(global):wrapper;}else{factory.call(global,window,document)}})(typeof window!=='undefined'?window:this,function(window,document,opt_noGlobal){var $,_,$_=this.anychart;if($_&&(_=$_._)){$=$_.$}else{$={};_={}}if(!_.core){_.core=1;(function($){var ba,baa,caa,ta,Ea,daa,La,eaa,Sa,faa,Ya,gaa,ub,wb,Fb,Jb,Ob,Mb,Nb,cc,jc,sc,tc,wc,zc,Wb,paa,Tc,Vc,Wc,Xc,Yc,raa,$c,td,yd,xaa,Bd,Cd,Dd,Ed,Kd,yaa,Hd,Rd,Nd,Vd,Aaa,Ld,Jd,Je,Le,Ue,ef,kf,ne,nf,of,pf,sf,Df,Af,Tf,Xf,Zf,$f,cg,eg,dg,fg,jg,lg,mg,og,rg,tg,vg,ug,sg,zg,yg,Dg,Gg,Haa,Hg,Jg,Lg,Og,Rg,Sg,Tg,Ng,Pg,Kg,Wg,Xg,Yg,$g,eh,ch,bh,ph,rh,sh,th,vh,zh,Dh,Eh,Fh,Gh,Ih,Jh,Kh,Ph,Qh,Rh,Sh,Th,Uh,Vh,Zh,$h,ai,bi,ci,di,ki,li,mi,ni,oi,pi,qi,ri,si,ti,Xh,Yh,vi,wi,xi,yi,Ai,Ei,Kaa,Laa,Maa,Fi,Hi,Ki,Li,Mi,Qi,Ri,Si,Ti,Ui,Saa,Taa, +ej,mj,oj,pj,tj,Vaa,sj,qj,rj,xj,Uaa,uj,Ji,Oaa,Naa,Waa,Uj,Vj,Wj,Zj,ak,bk,ck,ek,dk,Tj,hk,qk,Yb,Ii,wk,Bk,Gk,eba,hba,Nk,pba,tba,dl,Cba,Dba,nl,ol,ql,rl,ul,wl,Bl,Al,El,Hl,Jl,Jba,em,hm,jm,fm,tm,gm,vm,xm,Xa,Km,Mm,Nm,Om,Qm,Ym,Zm,$m,an,dn,fn,pn,qn,rn,tn,sn,un,vn,wn,En,Fn,Gn,Hn,Lba,Mn,Nn,Pn,On,Qn,Vn,Tn,Sn,Xn,Yn,Nba,Oba,Pba,$n,Zn,ao,bo,lo,oo,Tba,zo,To,Yo,Uba,Zo,Pm,cp,ep,kp,jp,Wba,Vba,Yba,sp,wp,xp,yp,$ba,Cp,Dp,aca,Fp,Mp,Tp,Up,pl,bq,cq,fq,gq,iq,kq,lq,Rq,Sq,Uq,Yq,tq,Qq,Pq,Oq,or,tr,yr,zr,Ar,bca,Gr,Ir,Jr,Lr,dca,Mr, +Nr,Or,Rr,Pr,Qr,fca,Tr,Ur,Vr,Xr,Yr,$r,cs,es,gs,ps,hs,As,Hs,Is,Js,Ms,Ns,Os,Ps,Qs,Rs,Ss,et,ht,gt,it,lt,ot,pt,jt,tt,ut,nca,Bt,Ct,Dt,Ft,Mt,Nt,Ot,Pt,Zt,$t,au,bu,cu,Ut,du,Yt,eu,fu,hu,mu,nu,ru,su,tu,uu,vu,wu,yu,Au,Bu,oca,Iu,Ju,qca,Vu,Xu,Yu,Zu,Nu,rca,$u,sca,Ku,bv,cv,dv,ev,iv,jv,kv,lv,mv,nv,ov,qv,rv,tv,tca,uv,vv,wv,sv,uca,vca,xca,wca,xv,Av,Cv,Dv,Kv,Fv,Lv,Mv,Nv,Ov,Pv,Hv,Gv,Iv,Jv,yca,zca,Qv,Rv,Uv,Vv,Yv,Zv,$v,aw,bw,cw,dw,ew,fw,hw,iw,gw,jw,qw,tw,Aca,vw,Bw,yw,ww,Dw,zw,pw,Jw,Kw,Ew,Lw,rw,Aw,Hw,Mw,Pw,Qw,Cca,Dca,Eca, +Fca,Gca,Sw,Hca,Tw,Uw,Ww,Xw,Yw,Zw,gx,Ica,ox,qx,rx,Jca,vx,yx,zx,Cx,Gx,Ex,Hx,Lx,Mx,Nx,Qx,Yx,Zx,$x,ay,by,Lca,Mca,Nca,Oca,ly,my,Ay,Ly,Ny,Qca,Ky,Oy,Ry,Ty,Yy,Sca,bz,dz,fz,gz,iz,mz,Tca,oz,pz,qz,rz,sz,tz,vz,wz,xz,yz,Iz,Vca,Wca,Rz,Tz,Yz,aA,cA,dA,hA,iA,nA,oA,pA,qA,rA,tA,uA,vA,zA,DA,Nz,EA,HA,GA,FA,MA,OA,LA,RA,SA,TA,UA,Qz,Oz,Xca,cB,eB,Yca,Zca,fB,hB,jB,Jz,Lz,$ca,nB,rB,tB,uB,vB,wB,yB,xB,zB,AB,BB,CB,FB,GB,IB,JB,RB,SB,TB,VB,WB,YB,ZB,cC,dC,fC,gC,kC,lC,mC,nC,hC,iC,jC,oC,pC,qC,rC,sC,tC,uC,vC,wC,xC,yC,zC,AC,BC,EC,dda, +cda,eda,IC,JC,FC,KC,LC,MC,RC,hD,eD,kD,nD,jD,oD,iD,qD,wD,aa,na,aaa;ba=function(a){return function(){return aa[a].apply(this,arguments)}};$.ca=function(a,b){return aa[a]=b};$.n=function(a){return void 0!==a};$.z=function(a){return"string"==typeof a};$.da=function(a){return"boolean"==typeof a};$.ea=function(a){return"number"==typeof a};$.ha=function(a){a=a.split(".");for(var b=$.fa,c=0;cb?null:$.z(a)?a.charAt(b):a[b]};$.xa=function(a,b,c){for(var d=a.length,e=$.z(a)?a.split(""):a,f=0;f=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};$.Ka=function(a,b,c){function d(a){return $.C(a)?"o"+$.oa(a):(typeof a).charAt(0)+a}b=b||a;c=c||d;for(var e={},f=0,h=0;h>1,m;c?m=b.call(e,a[l],l,a):m=b(d,a[l]);0b?1:ac?($.Da(a,b,-(c+1)),!0):!1};$.Va=function(a,b){var c=[],d=0,e=a;void 0!==b&&(d=a,e=b);if(0>e-d)return[];for(;dc*b?c+b:c};$.ab=function(a){return $.$a(a,360)};$.bb=function(a){return a*Math.PI/180};$.cb=function(a){return 180*a/Math.PI};$.db=function(a,b){return b*Math.cos($.bb(a))};$.eb=function(a,b){return b*Math.sin($.bb(a))};$.fb=function(a){return 0a?-1:a};$.gb=function(a,b){this.x=$.n(a)?a:0;this.y=$.n(b)?b:0}; +$.ib=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};$.kb=function(a,b){var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)};$.lb=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};$.mb=function(a,b){this.width=a;this.height=b};$.nb=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};$.I=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}; +$.ob=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};$.pb=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top),f=Math.min(a.top+a.height,b.top+b.height);if(e<=f)return new $.I(c,e,d-c,f-e)}return null}; +gaa=function(a,b){var c;if((c=$.pb(a,b))&&c.height&&c.width){c=[];var d=a.top,e=a.height,f=a.left+a.width,h=a.top+a.height,k=b.left+b.width,l=b.top+b.height;b.top>a.top&&(c.push(new $.I(a.left,a.top,a.width,b.top-a.top)),d=b.top,e-=b.top-a.top);la.left&&c.push(new $.I(a.left,d,b.left-a.left,e));k=a.left&&b.x<=a.left+a.width&&b.y>=a.top&&b.y<=a.top+a.height:a.left<=b.left&&a.left+a.width>=b.left+b.width&&a.top<=b.top&&a.top+a.height>=b.top+b.height}; +$.sb=function(a,b){var c=b.xp;p++){var q=-3*f[p]+9*h[p]-9*k[p]+3*l[p],r=6*f[p]-12*h[p]+6*k[p];m=3*h[p]-3*f[p];if(0==q)0!=r&&(m=-m/r,0m&&c[p].push(b(f[p],h[p],k[p],l[p],m))); +else{var t=r*r-4*m*q;0m&&c[p].push(b(f[p],h[p],k[p],l[p],m)),m=(-r-Math.sqrt(t))/(2*q),0m&&c[p].push(b(f[p],h[p],k[p],l[p],m))):0==t&&(m=-r/(2*q),0m&&c[p].push(b(f[p],h[p],k[p],l[p],m)))}}}d=new $.I(Math.min.apply(null,c[0]),Math.min.apply(null,c[1]),0,0);d.width=Math.max.apply(null,c[0])-d.left;d.height=Math.max.apply(null,c[1])-d.top;return d}; +wb=function(a){if(0==arguments.length)return null;for(var b=null,c=!1,d=0,e=arguments.length;d":"
")}; +$.pc=function(a){if(!haa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(iaa,"&"));-1!=a.indexOf("<")&&(a=a.replace(jaa,"<"));-1!=a.indexOf(">")&&(a=a.replace(kaa,">"));-1!=a.indexOf('"')&&(a=a.replace(laa,"""));-1!=a.indexOf("'")&&(a=a.replace(maa,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(naa,"�"));return a}; +sc=function(a){for(var b=[],c=0;cf)var h=e;else{if(256>f){if(h="\\x",16>f||256f&&(h+="0");h+=f.toString(16).toUpperCase()}e=qc[e]=h}b[d]=e}return b.join("")};tc=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#b?1:0};zc=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};$.Ac=function(a){var b=$.z(void 0)?tc(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};Wb=function(a,b){for(var c=a.split(" "),d=[];0=a};$.ed=function(a){var b=$.ka(a);if("array"==b){b=[];for(var c=0;cc.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(l){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.b;f;f=f.parentNode)c.push(f);f=a.type;for(var h=c.length-1;!d.j&&0<=h;h--){d.b=c[h];var k=$.Yd(c[h],f,!0,d);e=e&&k}for(h=0;!d.j&&h");c=c.join("")}c=a.createElement(c);d&&($.z(d)?c.className=d:$.A(d)?c.className=d.join(" "):$.xe(c,d));2a};$.lf=function(a){var b=[];kf(a,b,!1);return b.join("")};kf=function(a,b,c){if(!(a.nodeName in Eaa))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in mf)b.push(mf[a.nodeName]);else for(a=a.firstChild;a;)kf(a,b,c),a=a.nextSibling}; +$.Oe=function(a){if(a&&"number"==typeof a.length){if($.C(a))return"function"==typeof a.item||"string"==typeof a.item;if($.E(a))return"function"==typeof a.item}return!1};ne=function(a){this.b=a||$.fa.document||window.document};nf=function(a){$.md.call(this);this.jo=a;this.b={}};of=function(a,b,c,d,e,f){if($.A(c))for(var h=0;hl&&(l=0);l=Math.sqrt(l);f==h&&(l=-l);f=l*d*c/e;k=-l*e*b/d;l=$.Ab(1,0,(b-f)/d,(c-k)/e);b=$.Ab((b-f)/d,(c-k)/e,(-b-f)/d,(-c-k)/e)%360;!h&&0b&&(b+=360);return ug(a,d,e,l,b)}; +ug=function(a,b,c,d,e){if(0==a.j.length)throw $.jd(9);if(0==e)return a;var f=a.Jf[0]-$.db(d,b),h=a.Jf[1]-$.eb(d,c);var k=Math.ceil(Math.abs(e)/359.999-2E-15);for(var l=e/k,m=0;m=b&&(p=!1);if(p){for(;l=a?c=180+c:270=a&&(c=360+c);return c%360};$.gh=function(a,b,c){for(var d in c)a.jc(b,d,c[d])};$.hh=function(a,b,c){b&&(c?a.jc(b,"id",c):b.removeAttribute("id"))}; +$.nh=function(a,b,c){if(b.Oj())return null;var d=[],e=a.G3;(c?b.$da:b.XS).call(b,function(a,b){var c=e[a];c&&(d.push(c),4==a?this.Y3(d,b):5!=a&&this.e4(d,b))},a);return d.join(" ")};ph=function(a){if(!a.au||a.au.nd)a.au=new Xg($.oh.document.body);return a.au};$.qh=function(){this.Za=new $.I(0,0,0,0);$.hg.call(this)};rh=function(){};sh=function(a){a.style||(a.style=a.D.length?$.Qc(a.D[a.D.length-1]):{})}; +th=function(a,b){switch(b){case "b":case "strong":sh(a);a.style.fontWeight="bold";break;case "i":case "em":sh(a),a.style.fontStyle="italic"}}; +vh=function(a,b,c){switch(b){case "font-style":sh(a);a.style.fontStyle=c||"normal";break;case "font-variant":sh(a);a.style.fontVariant=c||"normal";break;case "font-family":sh(a);a.style.fontFamily=c||$.uh.fontFamily;break;case "font-size":sh(a);a.style.fontSize=c||$.uh.fontSize;break;case "font-weight":sh(a);a.style.fontWeight=c||"normal";break;case "color":sh(a);a.style.color=c||$.uh.color;break;case "letter-spacing":sh(a);a.style.letterSpacing=c||"normal";break;case "text-decoration":sh(a);a.style.Xq= +c||"none";break;case "opacity":sh(a),a.style.opacity=null!=c?(0,window.parseFloat)(c):1}};zh=function(a){""!=a.b&&(a.ub.HJ(a.b,a.D.length?a.D[a.D.length-1]:null),a.b="",a.da=!1)};Dh=function(a){a.K==(a.P.length?a.P[a.P.length-1]:null)&&(zh(a),a.D.pop(),a.P.pop(),a.tagName="");a.K="";a.state=1};Eh=function(a,b){th(a,a.tagName);a.P.push(a.tagName);a.D.push(a.style);b&&(a.f="");a.tagName="";a.style=null;a.state=1};Fh=function(a,b,c){vh(a,a.j,a.G||"");a.j="";a.G="";c&&(a.f="");a.state=b}; +Gh=function(a){th(a,a.tagName);vh(a,a.j,a.G||"");a.P.push(a.tagName);a.D.push(a.style);a.tagName="";a.style=null;a.f="";a.j="";a.G="";a.state=1};Ih=function(a,b,c){var d;if(a.aa){var e=Hh[a.i];$.n(e)?d=e:a.b+="&"+a.i+c}else a.i?d=(0,window.parseInt)(a.i,10):a.b+="&#"+c;d&&(a.b+=String.fromCharCode(d)+(";"==c?"":c));a.state=b;a.i="";a.aa=!0}; +Jh=function(a){var b=rh.Gd();b.D=[];b.P=[];b.tagName="";b.K="";b.f="";b.ba="'";b.j="";b.G="";b.b="";b.style=null;b.ub=null;b.state=1;b.da=!1;b.i="";b.aa=!0;b.ma=!1;b.ub=a;a=a.text();for(var c=a.length,d=-1,e,f,h,k=!1;++d"!=e)break;"br"==b.tagName&&b.ub.GJ();b.tagName="";k=!1;b.state=1;break}if(!b.tagName&&"<"==e){b.b+="<";break}if(!b.tagName&&h&&"/"!=e){b.b+="<"+e;b.state=1;break}if(!b.tagName&&"/"==e){b.state=3;break}if("br"==b.tagName&&">"==e){b.ub.GJ();b.tagName="";b.state=1;break}if("br"==b.tagName&&("/"==e||f)){k=!0;break}b.tagName&&zh(b);if(b.tagName&&f){b.state=4;break}if(">"== +e){Eh(b);break}b.tagName+=e.toLowerCase();break;case 3:if(k){if(">"!=e)break;Dh(b);k=!1;break}if(!b.K&&h){b.b+=""==e){Dh(b);k=!1;break}b.K+=e.toLowerCase();break;case 4:if(k){if(">"!=e)break;Eh(b,!0);k=!1;break}if(">"==e){Eh(b,!0);break}if(f){b.state=5;break}if("="==e){b.f&&(b.state="style"==b.f?6:8);break}b.f+=e.toLowerCase();break;case 5:if(">"==e){Eh(b,!0);break}if(f)break;if(b.f&&!h){b.f=e;b.state=4;break}if("="==e){b.f&&(b.state="style"==b.f?6: +8);break}b.f+=e;b.state=4;break;case 6:if(f)break;if(">"==e){Eh(b,!0);break}if("'"==e||'"'==e){b.ba=e;b.state=9;break}b.j=e;b.state=10;break;case 8:if(f)break;if(">"==e){b.f="";b.tagName="";b.state=1;break}if("'"==e||'"'==e){b.ba=e;b.state=7;break}b.state=11;break;case 9:if(f)break;if(e==b.ba){k=!0;Fh(b,4,!0);break}if(":"==e){b.state=12;break}b.j+=e.toLowerCase();break;case 12:if(f)break;if(e==b.ba){k=!0;Fh(b,4,!0);break}if(";"==e){Fh(b,9);break}b.G+=e.toLowerCase();break;case 7:e==b.ba&&(b.f="", +b.state=4);break;case 10:if(f){k=!0;Fh(b,4,!0);break}if(">"==e){Gh(b);break}if(":"==e){b.state=13;break}b.j+=e;break;case 11:if(f){Fh(b,4,!0);break}">"==e&&Eh(b);break;case 13:if(f){k=!0;Fh(b,4,!0);break}if(">"==e){Gh(b);break}if(";"==e){Fh(b,10);break}b.G+=e.toLowerCase();break;default:throw"Error while parsing HTML: Symbol '"+e+"', position: "+(d-1);}zh(b);b.ub.JL()};Kh=function(a,b){$.md.call(this);this.b=b||{};this.text=a;this.i=!1;this.y=this.x=this.pm=this.bo=this.height=this.width=this.f=0}; +$.Oh=function(a,b){this.ba=!1;this.Eo=a||0;this.Fo=b||0;this.Za=new $.I(this.Eo,this.Fo,0,0);this.Ya=this.aa=this.Md=this.D=0;this.Ed=!1;this.b=[];this.f=[];this.Aa=this.Tf=this.P=0;this.td=!0;this.bh=this.ma=this.Tb=this.oe=0;this.da=[];this.qb=1;this.eb=Lh;this.j=0;this.rc=this.K=!1;this.xc=this.tl={fontSize:$.uh.fontSize,color:$.uh.fontColor,fontFamily:$.uh.fontFamily,direction:$.uh.textDirection,textOverflow:Lh,wordBreak:Jaa,wordWrap:Mh,selectable:!0,hAlign:$.Nh};this.Ia=null;$.ng.call(this); +this.i=this.G=null};Ph=function(a,b,c){if($.n(c)){if(c!==a.xc[b]){var d=!a.Ja()||a.Ja().tf();d||a.Ja().suspend();a.xc[b]=c;a.ba=!1;a.Ob(1024);a.Ob(32);a.Ob(16384);a.hx();d||a.Ja().resume()}return a}return a.xc[b]};Qh=function(a){var b=(0,window.parseFloat)(a);return(0,window.isNaN)(b)||0>b?1:$.z(a)&&$.gc(a,"%")?1+(0,window.parseFloat)(a)/100:a}; +Rh=function(a,b,c,d,e,f,h){var k,l=Math.floor((e-d)/(f.width/b.length));var m=b.substring(0,l);for(k=a.Qm(m,c);d+k.widthe&&1a.Qf?a.Qf-d.width-e:a.j,0>a.j&&(a.j=0));a.Aa=Math.max(a.Aa,d.height);a.P+=d.width;0==a.b.length&&(a.P+=a.j);a.ma=Math.max(a.ma,c.f);a.td=a.f.length?a.td&&0==b.length:0==b.length;a.f.push(c);a.b.push(c);c.parent(a);return c}; +Th=function(a,b){var c,d=b||$.va(a.da),e=$.va(d),f=a.Qm(a.eb,e.b),h=a.eb,k=1a.Wa){var m=Rh(a,a.eb,e.b,0,a.Wa,f,!0);h=a.eb.substring(0,m)}m=a.Tf;var p=a.Wa;if(""==h)l=(0,$.za)(a.b,e)+1,$.Ca(a.b,l,a.b.length-l);else if(p-m>=f.width){a.f=d;l=(0,$.za)(a.b,e)+1;$.Ca(a.b,l,a.b.length-l);var q=Sh(a,h,e.b,f);2==a.f.length&&""==a.f[0].text&&(q.pm=a.Tb-a.f[0].height,q.i=!0)}else{for(k=d.length-1;!c&&0<=k;)e= +d[k],f=a.Qm(h,e.b),l=a.Qm(e.text,e.b),m-l.width+f.width<=a.Wa&&(c=e),m-=l.width,k--;c||1!=a.da.length||(c=d[0],m-=l.width);c&&(a.f=d,k=a.f[0].pm,p-=f.width,l=(0,$.za)(d,c),$.Ca(d,l,d.length-l),l=(0,$.za)(a.b,c),$.Ca(a.b,l,a.b.length-l),a.Aa=0,a.P=0,a.ma=0,l=a.Qm(c.text,c.b),m=Rh(a,c.text,c.b,m,p,l,!0),1>m&&(m=1),l=c.text.substring(0,m),d=a.Qm(l,c.b),l=Sh(a,l,c.b,d,f.width),l.x=c.x,l.y=c.y,l.Jda=!0,d.width+f.width>a.Wa&&(m=Rh(a,a.eb,e.b,d.width,a.Wa,f,!0),h=a.eb.substring(0,m)),0f)return a;h=h||0;var l=$.db(h,d),m=$.eb(h,d),p=360/(2*f),q;a.moveTo(l+b,m+c);if(k)for(q=0;qd&&(d=0);0>e&&(e=0);if(d=e)return ti(a,b,c,d,f,h);a=a.path?a.path():a;h=$.Za(h,-360,360);k=360>Math.abs(h);a.Ee(b,c,d,d,f,h).Ee(b,c,e,e,f+h,-h,k);k&&a.close();return a};Xh=function(a,b,c,d,e,f){a=$.db(c,a);b=$.db(d,b)-a;return 0<=e?a+b*(f+e-f*e):a+b*f*(e+1)};Yh=function(a,b,c,d,e,f){a=$.eb(c,a);b=$.eb(d,b)-a;return 0<=e?a+b*(f+e-f*e):a+b*f*(e+1)}; +vi=function(a){var b,c;switch(a.length){case 1:var d=b=c=a[0];a.push(d,b,c);break;case 2:b=a[0];c=a[1];a.push(b,c);break;case 3:c=a[1];a.push(c);break;case 4:break;default:a.push(5,5,5,5)}}; +wi=function(a,b,c){var d=a.path?a.path():a;if(6==arguments.length){var e=arguments[2];var f=arguments[3];var h=arguments[4];var k=arguments[5];d.moveTo(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).lineTo(b.left+b.width,b.top+f).lineTo(b.left+b.width,b.top+b.height-h).lineTo(b.left+b.width-h,b.top+b.height).lineTo(b.left+k,b.top+b.height).lineTo(b.left,b.top+b.height-k).lineTo(b.left,b.top+e).close()}else k=$.Ja(arguments,2,6),vi(k),e=k[0],f=k[1],h=k[2],k=k[3],wi(d,b,e,f,h,k);return d}; +xi=function(a,b,c){var d=a.path?a.path():a;if(6==arguments.length){var e=arguments[2];var f=arguments[3];var h=arguments[4];var k=arguments[5];d.moveTo(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).xf(b.left+b.width,b.top+f,f,f,!1,!0).lineTo(b.left+b.width,b.top+b.height-h).xf(b.left+b.width-h,b.top+b.height,h,h,!1,!0).lineTo(b.left+k,b.top+b.height).xf(b.left,b.top+b.height-k,k,k,!1,!0);0!=e&&(d.lineTo(b.left,b.top+e),d.xf(b.left+e,b.top,e,e,!1,!0));d.close()}else k=$.Ja(arguments,2,6),vi(k),e= +k[0],f=k[1],h=k[2],k=k[3],xi(d,b,e,f,h,k);return d}; +yi=function(a,b,c){var d=a.path?a.path():a;if(6==arguments.length){var e=arguments[2];var f=arguments[3];var h=arguments[4];var k=arguments[5];d.moveTo(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).xf(b.left+b.width,b.top+f,f,f,!1,!1).lineTo(b.left+b.width,b.top+b.height-h).xf(b.left+b.width-h,b.top+b.height,h,h,!1,!1).lineTo(b.left+k,b.top+b.height).xf(b.left,b.top+b.height-k,k,k,!1,!1);0!=e&&d.lineTo(b.left,b.top+e).xf(b.left+e,b.top,e,e,!1,!1);d.close()}else k=$.Ja(arguments,2,6),vi(k),e=k[0], +f=k[1],h=k[2],k=k[3],yi(d,b,e,f,h,k);return d};$.zi=function(a,b,c,d){this.Bj=a;this.xe=b;this.hi=c;this.Me=d};Ai=function(){$.ah.call(this)};Ei=function(a){return $.oh.document.createElementNS("http://www.w3.org/2000/svg",a)};Kaa=function(){var a=$.kg();$.Xe(a.Ek);$.Xe(a.DD);$.Xe(a.f);$.Xe(a.i);$.Xe(a.op);$.Xe(a.Gp);a.Ek=null;a.DD=null;a.f=null;a.i=null;a.op=null;a.Gp=null}; +Laa=function(a){var b=$.bb(a),c=Math.tan(b);a=1/(2*c);c/=2;.5>=Math.abs(c)?(a=-.5,b=0>Math.cos(b)):(c=-.5,b=0Math.sin(d)||180==a||360==a;if(90==a||270==a)c+=1E-6;180!=a&&(0>Math.tan(d)||90==a||270==a)&&(e=-1,c=90-c);c=$.bb(c);d=Math.sin(c)*(b.height/2-Math.tan(c)*b.width/2)+b.width/2/Math.cos(c);e*=Math.cos(c)*d;c=Math.sin(c)*d;k&&(e=-e,c=-c);return new $.zi(Math.round(f-e),Math.round(h+c),Math.round(f+e),Math.round(h-c))}; +Fi=function(a,b,c){var d=Naa(c,b.keys,b.cx,b.cy,b.fx,b.fy,b.opacity,b.mode,b.transform);if(!d.uo){var e=Ei("radialGradient");$.hh(a,e,d.id());$.Te(c.ia(),e);d.VE=c;d.uo=!0;(0,$.Ne)(d.keys,function(a){var b=Ei("stop");$.gh(this,b,{offset:a.offset,style:"stop-color:"+a.color+";stop-opacity:"+((0,window.isNaN)(a.opacity)?d.opacity:a.opacity)});e.appendChild(b)},a);d.Za?$.gh(a,e,{cx:d.Bc*d.Za.width+d.Za.left,cy:d.yc*d.Za.height+d.Za.top,fx:d.Oe*d.Za.width+d.Za.left,fy:d.i*d.Za.height+d.Za.top,r:Math.min(d.Za.width, +d.Za.height)/2,spreadMethod:"pad",gradientUnits:"userSpaceOnUse"}):$.gh(a,e,{cx:d.Bc,cy:d.yc,fx:d.Oe,fy:d.i,gradientUnits:"objectBoundingBox"});d.transform&&a.jc(e,"gradientTransform",d.transform.toString())}return d.id()}; +Hi=function(a,b,c,d){var e=$.Gi(c,b.keys,b.opacity,!0===b.mode?$.fh(b.angle,d):b.angle,b.mode,b.transform);if(!e.uo){var f=a.T_();$.hh(a,f,e.id());$.Te(c.ia(),f);e.UE=c;e.uo=!0;(0,$.Ne)(e.keys,function(a){var b=Ei("stop");$.gh(this,b,{offset:a.offset,style:"stop-color:"+a.color+";stop-opacity:"+((0,window.isNaN)(a.opacity)?e.opacity:a.opacity)});f.appendChild(b)},a);e.Za?(b=Maa(e.angle,e.Za),$.gh(a,f,{x1:b.Bj,y1:b.xe,x2:b.hi,y2:b.Me,spreadMethod:"pad",gradientUnits:"userSpaceOnUse"})):(b=Laa(e.angle), +$.gh(a,f,{x1:b.Bj,y1:b.xe,x2:b.hi,y2:b.Me,gradientUnits:"objectBoundingBox"}));e.transform&&a.jc(f,"gradientTransform",e.transform.toString())}return e.id()}; +Ki=function(a,b){var c=b.fill();if(c){var d=b.Ja().pn,e='url("'+Ii()+"#";c&&c.opacity&&1E-4>=c.opacity&&$.hd&&$.bd("9")&&(c.opacity=1E-4);if($.z(c))a.jc(b.ia(),"fill",c),b.ia().removeAttribute("fill-opacity");else if($.A(c.keys)&&c.cx&&c.cy)a.jc(b.ia(),"fill",e+Fi(a,c,d)+'")'),a.jc(b.ia(),"fill-opacity",$.n(c.opacity)?c.opacity:1);else if($.A(c.keys))b.rb()&&(a.jc(b.ia(),"fill",e+Hi(a,c,d,b.rb())+'")'),a.jc(b.ia(),"fill-opacity",$.n(c.opacity)?c.opacity:1));else if(c.src){var f=b.Xj();f?(f.width= +f.width||0,f.height=f.height||0,f.left=f.left||0,f.top=f.top||0):f=new $.I(0,0,0,0);"tile"==c.mode?Ji(d,c.src,f,c.mode,c.opacity,function(a){a.id();a.parent(b.Ja()).Pd();$.kg().jc(b.ia(),"fill",e+a.id()+'")')}):(d=Ji(d,c.src,f,c.mode,c.opacity),d.id(),d.parent(b.Ja()).Pd(),a.jc(b.ia(),"fill",e+d.id()+'")'),a.jc(b.ia(),"fill-opacity",$.n(c.opacity)?c.opacity:1))}else $.J(c,Jg)?(c=Oaa(d,c.type,c.color,c.wf,c.size),c.id(),c.parent(b.Ja()).Pd(),a.jc(b.ia(),"fill",e+c.id()+'")')):$.J(c,$.Pb)?(c.id(),c.parent(b.Ja()).Pd(), +a.jc(b.ia(),"fill",e+c.id()+'")')):$.gh(a,b.ia(),{fill:c.color,"fill-opacity":c.opacity})}}; +Li=function(a,b){var c=b.stroke();if(c){var d=b.Ja().pn,e=b.ia(),f='url("'+Ii()+"#";if($.z(c))a.jc(e,"stroke",c);else if($.A(c.keys)&&c.cx&&c.cy)a.jc(e,"stroke",f+Fi(a,c,d)+'")');else if($.A(c.keys)){if(!b.rb())return;a.jc(e,"stroke",f+Hi(a,c,d,b.rb())+'")')}else a.jc(e,"stroke",c.color);c.lineJoin?a.jc(e,"stroke-linejoin",c.lineJoin):e.removeAttribute("stroke-linejoin");c.lineCap?a.jc(e,"stroke-linecap",c.lineCap):e.removeAttribute("stroke-linecap");c.opacity?a.jc(e,"stroke-opacity",c.opacity):e.removeAttribute("stroke-opacity"); +c.thickness?a.jc(e,"stroke-width",c.thickness):e.removeAttribute("stroke-width");c.dash?a.jc(e,"stroke-dasharray",c.dash):e.removeAttribute("stroke-dasharray")}};Mi=function(a){a.ia().removeAttribute("clip-path");a.ia().removeAttribute("clipPathUnits")}; +$.Pi=function(a,b){td.call(this,a.type);this.target=$.Ni(a.target,b)||a.target;this.relatedTarget=$.Ni(a.relatedTarget||null,b)||a.relatedTarget;this.offsetX=a.offsetX;this.offsetY=a.offsetY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.button=yd(a,0)?$.Oi:yd(a,1)?Paa:yd(a,2)?Qaa:Raa;this.actionButton=a.i();this.keyCode=a.keyCode;this.charCode=a.f;this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.platformModifierKey= +a.D;this.gk=a};Qi=function(a,b){this.i=a;this.j=b;this.f=0;this.b=null};Ri=function(a,b){a.j(b);100>a.f&&(a.f++,b.next=a.b,a.b=b)};Si=function(){this.f=this.b=null};Ti=function(){this.next=this.f=this.b=null};Ui=function(a){$.fa.setTimeout(function(){throw a;},0)}; +Saa=function(){var a=$.fa.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!$.Cc("Presto")&&(a=function(){var a=window.document.createElement("IFRAME");a.style.display="none";a.src="";window.document.documentElement.appendChild(a);var b=a.contentWindow;a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host;a=(0,$.pa)(function(a){if(("*"== +d||a.origin==d)&&a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!$.Uc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if($.n(c.next)){c=c.next;var a=c.A_;c.A_=null;a()}};return function(a){d.next={A_:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof window.document&&"onreadystatechange"in window.document.createElement("SCRIPT")?function(a){var b=window.document.createElement("SCRIPT"); +b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};window.document.documentElement.appendChild(b)}:function(a){$.fa.setTimeout(a,0)}};$.dj=function(a,b){Vi||Taa();Wi||(Vi(),Wi=!0);Xi.add(a,b)}; +Taa=function(){if(-1!=String($.fa.Promise).indexOf("[native code]")){var a=$.fa.Promise.resolve(void 0);Vi=function(){a.then(ej)}}else Vi=function(){var a=ej;!$.E($.fa.setImmediate)||$.fa.Window&&$.fa.Window.prototype&&!$.Cc("Edge")&&$.fa.Window.prototype.setImmediate==$.fa.setImmediate?(fj||(fj=Saa()),fj(a)):$.fa.setImmediate(a)}};ej=function(){for(var a;a=Xi.remove();){try{a.b.call(a.f)}catch(b){Ui(b)}Ri(gj,a)}Wi=!1}; +$.lj=function(a){this.bc=hj;this.D=void 0;this.f=this.b=this.Y=null;this.i=this.j=!1;if(a!=$.ia)try{var b=this;a.call(void 0,function(a){$.ij(b,$.jj,a)},function(a){$.ij(b,kj,a)})}catch(c){$.ij(this,kj,c)}};mj=function(){this.next=this.context=this.f=this.i=this.b=null;this.j=!1};oj=function(a,b,c){var d=nj.get();d.i=a;d.f=b;d.context=c;return d}; +pj=function(a,b){if(a.bc==hj)if(a.Y){var c=a.Y;if(c.b){for(var d=0,e=null,f=null,h=c.b;h&&(h.j||(d++,h.b==a&&(e=h),!(e&&1=c&&0<=e&&255>=e&&0<=d&&255>=d){c=[c,e,d];break a}}c=[]}if(c.length)return b.pk=$.Rb(c),b.type="rgb",b;if(xl&&(c=xl[a.toLowerCase()]))return b.pk=c,b.type="named",b;throw Error(a+" is not a valid color string");}; +wl=function(a){if(!vl.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Gba,"#$1$1$2$2$3$3"));return a.toLowerCase()};$.zl=function(a){a=wl(a);return[(0,window.parseInt)(a.substr(1,2),16),(0,window.parseInt)(a.substr(3,2),16),(0,window.parseInt)(a.substr(5,2),16)]}; +$.Rb=function(a){var b=a[0],c=a[1];a=a[2];b=Number(b);c=Number(c);a=Number(a);if(b!=(b&255)||c!=(c&255)||a!=(a&255))throw Error('"('+b+","+c+","+a+'") is not a valid RGB color');b=Al(b.toString(16));c=Al(c.toString(16));a=Al(a.toString(16));return"#"+b+c+a};Bl=function(a,b,c){0>c?c+=1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+(b-a)*(2/3-c)*6:a};Al=function(a){return 1==a.length?"0"+a:a}; +$.Cl=function(a,b,c){c=$.Za(c,0,1);return[Math.round(c*a[0]+(1-c)*b[0]),Math.round(c*a[1]+(1-c)*b[1]),Math.round(c*a[2]+(1-c)*b[2])]};$.Dl=function(a,b){return $.Cl([0,0,0],a,b)};$.Fl=function(a,b,c){a=El(a);b=El(b);var d=(a.opacity+b.opacity)/2;return{color:$.Rb($.Cl(a.t4,b.t4,$.n(c)?c:.5)),opacity:d}};El=function(a){var b=a,c=1;$.A(a)||($.z(a)?b=a:(b=a.color||"#000",c=$.n(a.opacity)?a.opacity:1),a=$.Gl(b).pk,b=$.zl(a));return{t4:b,opacity:c}}; +Hl=function(a,b,c,d){b=null==b||(0,window.isNaN)(+b)?7:+b;d=null!=d?$.Za(d,0,1):window.NaN;a=$.Gl(a||"#000").pk;var e=$.zl(a);a=e[0]/255;var f=e[1]/255;e=e[2]/255;var h=Math.max(a,f,e),k=Math.min(a,f,e),l=0,m=0,p=.5*(h+k);h!=k&&(h==a?l=60*(f-e)/(h-k):h==f?l=60*(e-a)/(h-k)+120:h==e&&(l=60*(a-f)/(h-k)+240),m=0=p?(h-k)/(2*p):(h-k)/(2-2*p));e=[Math.round(l+360)%360,m,p];a=e[0];f=e[1];e=e[2];(0,window.isNaN)(d)?(d=e,c=null!=c?$.Za(c,0,1):.95):c=null!=c?$.Za(c,0,1):e;e=1m?m*(1+f):m+f-f*m;var r=2*m-l;p=255*Bl(r,l,q+1/3);m=255*Bl(r,l,q);l=255*Bl(r,l,q-1/3)}h.push($.Rb([Math.round(p),Math.round(m),Math.round(l)]))}return h};$.Il=function(a,b,c){c=$.n(c)?c:7;a=$.Gl(a||"yellow").pk;b=$.Gl(b||"brown").pk;for(var d=[a],e=1/c,f=1;f=c&&0<=e&&255>=e&&0<=d&&255>=d){c=[c,e,d];break a}}c=[]}return c.length?(b.pk=$.Rb(c),b.type="rgb",b):xl&&(a=xl[a.toLowerCase()])?(b.pk=a,b.type="named",b):null}; +$.Pl=function(a,b,c){var d;c?d=$.Vb(a):d=$.Xb(a);$.z(d)?d={color:d,opacity:b}:$.C(d)&&(d.opacity=b);return d};$.Ql=function(a){var b=1;$.z(a)?b="none"==a?0:1:$.C(a)&&(b=$.ea(a.opacity)?a.opacity:1);return b};$.Rl=function(a,b,c){a=$.Xb(a);$.z(a)?a={color:a,thickness:b}:$.C(a)&&(a.thickness=b);c&&(a.opacity=c);return a}; +$.Yl=function(a,b,c,d){if(!a)return $.Sl;if($.z(a)){var e=b+"|"+a+"|"+c+(d?"|"+d:"");var f=Tl[e];if(!f){switch(b){case 2:f=$.Ul;break;case 3:f=$.Vl;break;default:case 1:f=$.Wl}Tl[e]=f=$.qa(Jba,a,f,3==b,c,!!d)}}else(f=Tl.transparent)||(f=Tl.transparent=function(){return $.Xl});return f};$.Sl=function(){return"none"};$.Zl=function(a){return a?$.C(a)?a.color?"none"!=a.color:!0:"none"!=a:!1}; +Jba=function(a,b,c,d,e,f,h,k,l,m){h=$.$l(h);l=l||f.check($.am);var p=f.$();if(d&&h!=$.bm){var q=f.qc(a,h,p,b,e,void 0,k);c&&!0===q&&(q=b(f.wh()));if($.n(q)){if(!$.E(q))return q;if(c)return a=f.Ri(k),b(q.call(a,a))}}d=f.qc(a,0,p,b,e,void 0,k);c&&!0===d&&(d=b(f.wh()));if(m&&!c&&a!=m){var r=f.qc(m,0,p,b,e,void 0,k);$.E(r)&&(a=f.Fe(void 0,k,l),r=b(r.call(a,a)))}$.E(d)&&(a=c?f.Ri(k):f.Fe(r,k,l),d=b(d.call(a,a)));q&&(a=f.Fe(d,k,l),d=b(q.call(a,a)));return d}; +$.cm=function(a,b){a&&(b=b.charAt(0).toUpperCase()+b.substr(1));return a?(a?1==a?"hover":"select":"")+b:b};em=function(a,b,c){var d=b.split(".");b=dm[d[0]];if(!b)return dm[d[0]]={bE:[],oC:c,ZH:0},!0;if(d=b.oC<=c){b.oC=c+1;for(var e=b.bE,f=0;f=h){e="";d=0;a.Qo=-1;a.Ro=-1;a.Yg=c+1;f=0;break}else return 0c?Math.min($.Um(a),14):13-Math.max(c,7);return $.Tm(a,b?b:c)};$.Um=function(a){if(!(0,window.isFinite)(a))return 0;for(var b=1,c=0;Math.round(a*b)/b!==a;)b*=10,c++;return c};$.Wm=function(a,b,c){return Math.abs(a-b)<(c||.01)}; +$.Xm=function(a,b){var c=Math.log(Math.max(1E-7,a));return b?$.Vm(c/Math.log(b),14):c};Ym=function(a,b){return $.Tm(Math.pow(a,b),7)};Zm=function(a){a=$.Ha(a);$.Pa(a);var b=Math.floor(a.length/2);return a.length%2?a[b]:(a[b-1]+a[b])/2};$m=function(a){for(var b={},c=a[0],d=1,e=0;ed&&(c=f,d=b[f])}return c}; +$.bn=function(a,b){var c=!1,d;if(!a||!b)return!1;var e=0;for(d=a.length;e=$.cn(a,b,c,d,e[h],e[h+1]);return f};$.cn=function(a,b,c,d,e,f){return(a=(b-d)*e+(c-a)*f+(a*d-c*b))?0b){var e=a;a=b;b=e}c>d&&(e=c,c=d,d=e);return Math.max(a,c)<=Math.min(b,d)};$.en=function(a,b,c,d,e,f,h,k){return dn(a,c,e,h)&&dn(b,d,f,k)&&0>=((c-a)*(f-b)-(d-b)*(e-a))*((c-a)*(k-b)-(d-b)*(h-a))&&0>=((h-e)*(b-f)-(k-f)*(a-e))*((h-e)*(d-f)-(k-f)*(c-e))}; +fn=function(a,b,c,d,e,f,h,k){var l=window.NaN;0!=a-2*c+e?(l=(a-c+Math.sqrt((a-2*c+e)*h+c*c-a*e))/(a-2*c+e),a=(a-c-Math.sqrt((a-2*c+e)*h+c*c-a*e))/(a-2*c+e),c=(b-d+Math.sqrt((b-2*d+f)*k+d*d-b*f))/(b-2*d+f),b=(b-d-Math.sqrt((b-2*d+f)*k+d*d-b*f))/(b-2*d+f),l=0l?l:0a?a:0c?c:0b?b:window.NaN):a!=c?l=(h-a)/(2*(c-a)):a==c&&c!=e&&(l=Math.sqrt((h-a)/(e-c)));return l};$.gn=function(a,b,c,d){a=c-a;b=d-b;return Math.sqrt(a*a+b*b)};$.hn=function(a,b,c){return(c||0)+b*$.Tm(Math.cos(a),8)}; +$.jn=function(a,b,c){return(c||0)+b*$.Tm(Math.sin(a),8)};$.kn=function(a,b,c,d){return new $.I(a,b,c,d)};$.ln=function(a){return[a.left,a.top,a.left+a.width,a.top,a.left+a.width,a.top+a.height,a.left,a.top+a.height]};$.mn=function(a){for(var b=new $.I(0,0,0,0),c=new $.I(a[0],a[1],0,0),d=2,e=a.length;d=Math.abs(h)&&(h=0);0=Math.abs(d)&&(d=0),1E-6>=Math.abs(f)&&(f=0),0<=d&&(d=Math.sqrt(d),b.push(-c/4+(a+d)/2),b.push(-c/4+(a-d)/2)),0<=f&&(d=Math.sqrt(f),b.push(-c/4+(d-a)/2),b.push(-c/4-(d+a)/2))):0>h||(f=e*e-4*a,-1E-6<=f&&(0>f&&(f=0),f=2*Math.sqrt(f),e=3*c*c/4-2*d,1E-6<=e+f&&(d=Math.sqrt(e+f),b.push(-c/4+d/2),b.push(-c/4-d/2)),1E-6<=e-f&&(d=Math.sqrt(e-f),b.push(-c/4+d/2),b.push(-c/4-d/2))))}break;default:b=[]}return b}; +sn=function(a){var b=[];if(3==a.b.length-1){var c=a.b[3],d=a.b[2]/c,e=a.b[1]/c,f=(3*e-d*d)/3;a=(2*d*d*d-9*e*d+a.b[0]/c*27)/27;d/=3;c=a*a/4+f*f*f/27;a/=2;0c?(f=Math.sqrt(-f/3),c=Math.atan2(Math.sqrt(-c),-a)/3,a=Math.cos(c),c=Math.sin(c),e=Math.sqrt(3),b.push(2*f*a-d),b.push(-f*(a+e*c)-d),b.push(-f*(a-e*c)-d)):(c=0<=a?-Math.pow(a,1/3):Math.pow(-a,1/3),b.push(2*c-d),b.push(-c- +d))}return b}; +un=function(a,b,c,d,e,f,h,k,l,m,p,q){a=new $.on(a,b);c=new $.on(c,d);e=new $.on(e,f);h=new $.on(h,k);m=new $.on(l,m);l=new $.on(p,q);p=[];k=pn(c,-2);q=a.add(k.add(e));k=pn(a,-2);e=pn(c,2);c=k.add(e);a=new $.on(a.x,a.y);k=pn(m,-2);l=h.add(k.add(l));k=pn(h,-2);e=pn(m,2);m=k.add(e);h=new $.on(h.x,h.y);if(0==q.y)k=q.x*(a.y-h.y),e=k-c.x*c.y,f=c.y*c.y,k=new rn(q.x*l.y*l.y,2*q.x*m.y*l.y,q.x*m.y*m.y-l.x*f-l.y*k-l.y*e,-m.x*f-m.y*k-m.y*e,(a.x-h.x)*f+(a.y-h.y)*e);else{k=q.x*l.y-q.y*l.x;e=q.x*m.y-m.x*q.y;var r= +c.x*q.y-c.y*q.x;f=a.y-h.y;d=q.y*(a.x-h.x)-q.x*f;b=-c.y*r+q.y*d;r*=r;k=new rn(k*k,2*k*e,(-l.y*r+q.y*e*e+q.y*k*d+k*b)/q.y,(-m.y*r+q.y*e*d+e*b)/q.y,(f*r+d*b)/q.y)}k=tn(k);for(e=0;e=f&&(d=tn(new rn(q.x,c.x,a.x-h.x-f*m.x-f*f*l.x)),b=tn(new rn(q.y,c.y,a.y-h.y-f*m.y-f*f*l.y)),0=t)for(var u=0;uMath.abs(t-b[u])){p.push(pn(l,f*f).add(pn(m,f).add(h)));break a}}return p}; +vn=function(a,b,c,d,e,f,h,k){var l,m=(k-f)*(c-a)-(h-e)*(d-b);0!=m?(h=((h-e)*(b-f)-(k-f)*(a-e))/m,e=((c-a)*(b-f)-(d-b)*(a-e))/m,0<=h&&1>=h&&0<=e&&1>=e?l=new $.on(a+h*(c-a),b+h*(d-b)):l=null):l=null;return l};wn=function(a,b){switch(b){case 1:return 0!=a%4||0==a%100&&0!=a%400?28:29;case 5:case 8:case 10:case 3:return 30}return 31}; +$.Dn=function(a,b,c,d,e,f){$.z(a)?(this.Vh=a==xn?b:0,this.lg=a==yn?b:0,this.Bg=a==zn?b:0,this.Zh=a==An?b:0,this.Rj=a==Bn?b:0,this.Ch=a==Cn?b:0):(this.Vh=a||0,this.lg=b||0,this.Bg=c||0,this.Zh=d||0,this.Rj=e||0,this.Ch=f||0)}; +En=function(a){a=a.match(Kba);if(!a)return null;var b=!(a[6]||a[7]||a[8]);if(b&&!(a[2]||a[3]||a[4])||b&&a[5])return null;b=(0,window.parseInt)(a[2],10)||0;var c=(0,window.parseInt)(a[3],10)||0,d=(0,window.parseInt)(a[4],10)||0,e=(0,window.parseInt)(a[6],10)||0,f=(0,window.parseInt)(a[7],10)||0,h=(0,window.parseFloat)(a[8])||0;return a[1]?new $.Dn(-b,-c,-d,-e,-f,-h):new $.Dn(b,c,d,e,f,h)}; +Fn=function(a,b){var c=Math.min(a.Vh,a.lg,a.Bg,a.Zh,a.Rj,a.Ch),d=Math.max(a.Vh,a.lg,a.Bg,a.Zh,a.Rj,a.Ch);if(0>c&&0c&&d.push("-");d.push("P");(a.Vh||b)&&d.push(Math.abs(a.Vh)+"Y");(a.lg||b)&&d.push(Math.abs(a.lg)+"M");(a.Bg||b)&&d.push(Math.abs(a.Bg)+"D");if(a.Zh||a.Rj||a.Ch||b)d.push("T"),(a.Zh||b)&&d.push(Math.abs(a.Zh)+"H"),(a.Rj||b)&&d.push(Math.abs(a.Rj)+"M"),(a.Ch||b)&&d.push(Math.abs(a.Ch)+"S");return d.join("")}; +$.Jn=function(a,b,c){$.ea(a)?(this.b=Gn(a,b||0,c||1),Hn(this,c||1)):$.C(a)?(this.b=Gn(a.getFullYear(),a.getMonth(),a.getDate()),Hn(this,a.getDate())):(this.b=new Date((0,$.In)()),a=this.b.getDate(),this.b.setHours(0),this.b.setMinutes(0),this.b.setSeconds(0),this.b.setMilliseconds(0),Hn(this,a))};Gn=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};Hn=function(a,b){if(a.getDate()!=b){var c=a.getDate()c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",$.uc(c,2));c=d.join("")}b.i=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=On(a);b.j=[c,c];b.b={koa:a,JY:a};b.f=[];return b}b=new Nn;b.i=a.id;b.D=-a.std_offset;b.j=a.names;b.b=a.names_ext;b.f=a.transitions;return b}; +On=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push($.uc(Math.floor(a/60)%100,2),":",$.uc(a%60,2));return b.join("")};Qn=function(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,d=0;d=a.f[d];)d+=2;return 0==d?0:a.f[d-1]};$.Un=function(a,b){this.f=[];this.b=b||Rn;"number"==typeof a?Sn(this,a):Tn(this,a)};Vn=function(a){return a.getHours?a.getHours():0}; +Tn=function(a,b){for(Mba&&(b=b.replace(/\u200f/g,""));b;){for(var c=b,d=0;db)var c=a.b.PE[b];else if(8>b)c=a.b.RE[b-4];else if(12>b)c=a.b.DP[b-8],c=c.replace("{1}",a.b.PE[b-8]),c=c.replace("{0}",a.b.RE[b-8]);else{Sn(a,10);return}Tn(a,c)};Xn=function(a,b){var c=String(b);var d=a.b||Rn;if(void 0!==d.eQ){for(var e=[],f=0;f=h?String.fromCharCode(d.eQ+h-48):c.charAt(f))}c=e.join("")}return c}; +Yn=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");}; +Nba=function(a,b,c,d,e,f){var h=b.length;switch(b.charAt(0)){case "G":return c=0c&&(c=-c),2==h&&(c%=100),Xn(a,$.uc(c,h));case "M":a:switch(c=d.getMonth(),h){case 5:h=a.b.qY[c];break a;case 4:h=a.b.OP[c];break a;case 3:h=a.b.VP[c];break a;default:h=Xn(a,$.uc(c+1,h))}return h;case "k":return Yn(e),c=Vn(e)||24,Xn(a,$.uc(c,h));case "S":return Xn(a,(e.getTime()%1E3/1E3).toFixed(Math.min(3,h)).substr(2)+(3h?1:0];case "h":return Yn(e),c=Vn(e)%12||12,Xn(a,$.uc(c,h));case "K":return Yn(e),c=Vn(e)%12,Xn(a,$.uc(c,h));case "H":return Yn(e),c=Vn(e),Xn(a,$.uc(c,h));case "c":a:switch(c=d.getDay(),h){case 5:h=a.b.GY[c];break a;case 4:h=a.b.IY[c];break a;case 3:h=a.b.HY[c];break a;default:h=Xn(a,$.uc(c,1))}return h;case "L":a:switch(c=d.getMonth(),h){case 5:h=a.b.FY[c];break a;case 4:h=a.b.ZP[c];break a;case 3:h= +a.b.$P[c];break a;default:h=Xn(a,$.uc(c+1,h))}return h;case "Q":return c=Math.floor(d.getMonth()/3),4>h?a.b.WP[c]:a.b.RP[c];case "d":return Xn(a,$.uc(d.getDate(),h));case "m":return Yn(e),Xn(a,$.uc(e.getMinutes(),h));case "s":return Yn(e),Xn(a,$.uc(e.getSeconds(),h));case "v":return h=f||Pn(c.getTimezoneOffset()),h.i;case "V":return a=f||Pn(c.getTimezoneOffset()),2>=h?a.i:0h?a.j[0h?(h=-e.XC(c),a=[0>h?"-":"+"],h=Math.abs(h),a.push($.uc(Math.floor(h/60)%100,2),$.uc(h%60,2)),h=a.join("")):h=Xn(a, +On(e.XC(c))),h;default:return""}};Oba=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))};Pba=function(a){a=String(a);if(Oba(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};$n=function(a){return(new Zn).F(a)};Zn=function(){}; +ao=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if($.A(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;fb?1:a==b?0:-1};Tba=function(a,b){return-oo(a,b)};$.mo=function(a,b){return(0,window.isNaN)(a)?(0,window.isNaN)(b)?0:1:(0,window.isNaN)(b)?-1:a-b};$.po=function(a){for(var b;$.J(a,$.hg);){b=a.tag;if($.n(b))return b;a=a.parent()}};$.qo=function(a,b){if(!a)return!1;for(;$.J(b,$.qf)&&b!=a;)b=b.Si();return b==a};$.no=function(a){return $.C(a)?"o"+$.oa(a):(typeof a).charAt(0)+a}; +$.M=function(a,b,c){a=$.ea(a)?a:!(0,window.isNaN)(b)&&$.ro(a)?b*(0,window.parseFloat)(a)/100:(0,window.parseFloat)(a);return c&&!(0,window.isNaN)(b)?b-a:a};$.uo=function(a){switch(a){case $.so:return"hovered";case $.to:return"selected";default:return"normal"}};$.ro=function(a){return $.z(a)&&$.gc(a,"%")&&!(0,window.isNaN)((0,window.parseFloat)(a))};$.vo=function(a,b){if(null===a)return null;a=$.n(a)?a:0;b=$.n(b)?b:0;var c=$.ro(a),d=(0,window.parseFloat)(a);return(0,window.isNaN)(d)?b:c?a:d}; +$.wo=function(a,b){if($.ro(a))return a;$.ea(a)||(a=(0,window.parseFloat)(a));return(0,window.isNaN)(a)?b?window.NaN:"0%":a+"%"};$.xo=function(a){return $.ro(a)?(0,window.parseFloat)(a)/100:+a};$.N=function(a){return null==a||$.da(a)?window.NaN:+a};$.yo=function(a){return $.z(a)?a:$.N(a)};zo=function(a){return $.ea(a)&&!(0,window.isNaN)(a)||$.z(a)&&""!=(0,$.vc)(a)?a:null};$.Ao=function(a){return(0,window.isNaN)($.N(a))}; +$.Bo=function(a,b,c){$.ea(a)||(a=(0,window.parseFloat)(a));a=Math.round(a);return!(0,window.isNaN)(a)&&(0=d?0:f:"center"==e?c=d*f/2:"inside"==e&&(c=0<=d?0:-f)}return c};$.Ho=function(a,b){var c=$.ab(-b)/90;if(c){var d=(0,$.za)($.Do,a);0<=d&&(c!=~~c&&(c=Math.round(c-.5)+.5),a=$.Do[(d+(c+c))%$.Do.length])}return a};$.Io=function(a){return"left-top"==a||"center-top"==a||"right-top"==a}; +$.Jo=function(a){return"left-bottom"==a||"center-bottom"==a||"right-bottom"==a};$.Ko=function(a){return"left-top"==a||"left-center"==a||"left-bottom"==a};$.Lo=function(a){return"right-top"==a||"right-center"==a||"right-bottom"==a};$.Mo=function(a,b,c,d){c=c||0;d=7<=d?d:7;return $.Tm(b*Math.floor($.Tm((a-c)/b,d))+c,d)};$.No=function(a,b,c,d){c=c||0;d=7<=d?d:7;return $.Tm(b*Math.ceil($.Tm((a-c)/b,d))+c,d)}; +$.Qo=function(a,b,c){var d=new Date(a),e=d.getUTCFullYear(),f=d.getUTCMonth(),h=d.getUTCDate(),k=d.getUTCHours(),l=d.getUTCMinutes(),m=d.getUTCSeconds(),p=d.getUTCMilliseconds();return b.Vh?(e=$.Mo(e,b.Vh,(new Date(c)).getUTCFullYear()),Date.UTC(e,0)):b.lg?(f=$.Mo(f,b.lg),Date.UTC(e,f)):b.Bg&&0==b.Bg%7?(a=$.Oo($.Po()),$.Mo(d.getTime(),864E5*b.Bg,Date.UTC(2E3,0,2+(a?a.firstDayOfWeek:0)))):b.Bg?(h=$.Mo(h,b.Bg),Date.UTC(e,f,h)):b.Zh?(k=$.Mo(k,b.Zh),Date.UTC(e,f,h,k)):b.Rj?(l=$.Mo(l,b.Rj),Date.UTC(e, +f,h,k,l)):1<=b.Ch?(m=$.Mo(m,b.Ch),Date.UTC(e,f,h,k,l,m)):b.Ch?(p=$.Mo(p,1E3*b.Ch),Date.UTC(e,f,h,k,l,m,p)):a}; +$.Ro=function(a,b,c,d){var e=new Date(a),f=e.getUTCFullYear(),h=e.getUTCMonth(),k=e.getUTCDate(),l=e.getUTCHours(),m=e.getUTCMinutes(),p=e.getUTCSeconds(),q=e.getUTCMilliseconds();switch(b){case "year":return f=$.Mo(f,c,(new Date(d)).getUTCFullYear()),Date.UTC(f,0);case "semester":return h=$.Mo(h,6*c),Date.UTC(f,h);case "quarter":return h=$.Mo(h,3*c),Date.UTC(f,h);case "month":return h=$.Mo(h,c),Date.UTC(f,h);case "third-of-month":return $.Mo(e.getTime(),864E6*c,Date.UTC(2E3,0,2));case "week":return a= +$.Oo($.Po()),$.Mo(e.getTime(),6048E5*c,Date.UTC(2E3,0,2+(a?a.firstDayOfWeek:0)));case "day":return $.Mo(e.getTime(),864E5*c,Date.UTC(2E3,0,2));case "hour":return l=$.Mo(l,c),Date.UTC(f,h,k,l);case "minute":return m=$.Mo(m,c),Date.UTC(f,h,k,l,m);case "second":return p=$.Mo(p,c),Date.UTC(f,h,k,l,m,p);case "millisecond":return q=$.Mo(q,c),Date.UTC(f,h,k,l,m,p,q)}return a}; +$.So=function(a,b){switch(a){case "year":var c=xn;var d=b;break;case "semester":c=yn;d=6*b;break;case "quarter":c=yn;d=3*b;break;case "month":c=yn;d=b;break;case "third-of-month":c=zn;d=10*b;break;case "week":c=zn;d=7*b;break;case "day":c=zn;d=b;break;case "hour":c=An;d=b;break;case "minute":c=Bn;d=b;break;case "second":c=Cn;d=b;break;case "millisecond":c=Cn;d=b/1E3;break;default:c=xn,d=b}return new $.Dn(c,d)};$.O=function(a,b,c){b=(b&1)/2;return.5<=a%1?Math.ceil(a)-(c?-b:b):Math.floor(a)+(c?-b:b)}; +To=function(a){a=$.O(a,1);return a=$.n(void 0)&&void 0>a?Math.floor(a):Math.ceil(a)};$.Uo=function(a,b){var c=a.left+a.width,d=a.top+a.height;a.left=$.O(a.left,b);a.top=$.O(a.top,b);a.width=$.O(c,b)-a.left;a.height=$.O(d,b)-a.top;return a}; +$.Vo=function(a,b,c,d){switch(b){case "left-top":case "left-center":case "center-top":case "center":a.x+=c;a.y+=d;break;case "left-bottom":case "center-bottom":a.x+=c;a.y-=d;break;case "right-center":case "right-top":a.x-=c;a.y+=d;break;case "right-bottom":a.x-=c,a.y-=d}};$.Wo=function(a){for(var b=0,c=arguments.length;b=+m||1<=+m)?m:+m,f=!1));return f?0b;b++)a.lineTo(c+e*tp[b],d+e*up[b]);a.lineTo(c+e*tp[0],d+e*up[0]);a.close();return a};case "square":return function(a,c,d,e,f){var b=c-e,k=d-e;c+=e;d+=e;$.n(f)&&(f=f||0,b=$.O(b,f),k=$.O(k,f),c=$.O(c,f),d=$.O(d,f));a.moveTo(b, +k).lineTo(c,k).lineTo(c,d).lineTo(b,d).lineTo(b,k).close();return a};case "v-line":case "line":return function(a,c,d,e,f){e*=2;var b=e/2;c-=b/2;d-=e/2;b=c+b;e=d+e;$.n(f)&&(f=f||0,c=$.O(c,f),d=$.O(d,f),b=$.O(b,f),e=$.O(e,f));a.moveTo(c,d).lineTo(b,d).lineTo(b,e).lineTo(c,e).lineTo(c,d).close();return a};case "arrow-up":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var p=c+k;k=c-k;$.n(f)&&(f=f||0,e=$.O(e,f),l=$.O(l,f),m=$.O(m,f),b=$.O(b,f),p=$.O(p,f),k=$.O(k,f),c=$.O(c,f),d= +$.O(d,f));a.moveTo(c,b);a.lineTo(e,d,p,d,p,m,k,m,k,d,l,d);a.close();return a};case "arrow-down":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var p=c+k;k=c-k;$.n(f)&&(f=f||0,e=$.O(e,f),l=$.O(l,f),m=$.O(m,f),b=$.O(b,f),p=$.O(p,f),k=$.O(k,f),c=$.O(c,f),d=$.O(d,f));a.moveTo(c,m);a.lineTo(e,d,p,d,p,b,k,b,k,d,l,d);a.close();return a};case "arrow-left":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var p=d+k;k=d-k;$.n(f)&&(f=f||0,e=$.O(e,f),l=$.O(l,f),m= +$.O(m,f),b=$.O(b,f),p=$.O(p,f),k=$.O(k,f),c=$.O(c,f),d=$.O(d,f));a.moveTo(l,d);a.lineTo(c,m,c,p,e,p,e,k,c,k,c,b);a.close();return a};case "arrow-right":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var p=d+k;k=d-k;$.n(f)&&(f=f||0,e=$.O(e,f),l=$.O(l,f),m=$.O(m,f),b=$.O(b,f),p=$.O(p,f),k=$.O(k,f),c=$.O(c,f),d=$.O(d,f));a.moveTo(e,d);a.lineTo(c,m,c,p,l,p,l,k,c,k,c,b);a.close();return a};default:return ai}}; +wp=function(a,b,c,d){var e=new $.Lm;c=!0;$.C(d)&&(e.GI(d.rowsSeparator),e.LF(d.columnsSeparator),e.lH(d.ignoreTrailingSpaces),c=!d.ignoreFirstRow,e.jH(c));if(a=e.UB(a)){d=$.Ke("table");b&&(e=$.Ke("caption"),Ue(e,b),d.appendChild(e));if(c){var f=$.Ke("thead");var h=$.Ke("tr");f.appendChild(h)}b=$.Ke("tbody");for(e=0;e=a||96<=a&&106>=a||65<=a&&90>=a||($.vd||$.Bp)&&0==a)return!0;switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}};Dp=function(a){if($.fd)a=aca(a);else if($.wd&&$.vd)switch(a){case 93:a=91}return a}; +aca=function(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};$.Ep=function(a,b){$.qf.call(this);a&&this.oM(a,b)};Fp=function(a,b,c,d){$.xd.call(this,d);this.type="key";this.keyCode=a;this.f=b;this.repeat=c};$.Hp=function(a){$.n(a)&&($.il=$.fa=a,$.Gp=a.document);return $.fa};$.Jp=function(a){$.n(a)&&(Ip=a);return Ip};Mp=function(a,b){$.Kp?Lp.push((0,$.pa)(a,b)):a.apply(b)}; +$.Np=function(){$.Kp--;if(!$.Kp)for(var a=Lp.slice(0),b=Lp.length=0;be;e++){c=e;for(var f=0;8>f;f++)c=c&1?3988292384^c>>>1:c>>>1;d[e]=c}Yp=d}c=-1;for(d=0;d>>8^Yp[(c^a.charCodeAt(d++))&255];a=((c^-1)>>>0).toString(16);return b==a}; +bq=function(){Zp.length||(Zp=[$.$p.themes.defaultTheme||{}],aq.length&&(Zp=$.Ga(Zp,aq)));return Zp};cq=function(a){a=$.z(a)?$.Nl($.$p.themes[a]):a;aq.push(a);Zp.length=0};$.zm=function(a,b,c){b=$.n(b)?b:{};a=a.split(".");for(var d=bq(),e,f=0;fk||bc)var d=this.f.PE[c];else 8>c?d=this.f.RE[c-4]:(d=this.f.DP[c-8],d=d.replace("{1}",this.f.PE[c-8]),d=d.replace("{0}",this.f.RE[c-8]));Mr(this,d)}else Mr(this,a)}; +Mr=function(a,b){for(var c=!1,d="",e=0;e=a.count)return!1;var b="MydhHmsSDkK".indexOf(a.text.charAt(0));return 0a.count};Or=function(a,b){var c=a.substring(b[0]).match(/^\s+/);c&&(b[0]+=c[0].length)}; +Rr=function(a,b,c,d,e,f){Or(b,c);var h=c[0],k=d.text.charAt(0),l=-1;if(Nr(d))if(0b.length)return!1;l=Pr(a,b.substring(0,h+e),c)}else l=Pr(a,b,c);switch(k){case "G":return l=Qr(b,c,a.f.HP),0<=l&&(f.era=l),!0;case "M":case "L":a:{d=l;if(0>d){a=a.f.OP.concat(a.f.ZP).concat(a.f.VP).concat(a.f.$P);d=Qr(b,c,a);if(0>d){f=!1;break a}f.month=d%12}else f.month=d-1;f=!0}return f;case "E":return d=Qr(b,c,a.f.dQ),0>d&&(d=Qr(b,c,a.f.XP)),0>d?f=!1:(f.b=d,f=!0),f;case "a":return l=Qr(b,c,a.f.zP),0<=l&& +(f.i=l),!0;case "y":a:{if(0>l){var m=b.charAt(c[0]);if("+"!=m&&"-"!=m){f=!1;break a}c[0]++;l=Pr(a,b,c);if(0>l){f=!1;break a}"-"==m&&(l=-l)}m||2!=c[0]-h||2!=d.count?f.year=l:(b=l,c=(new Date).getFullYear()-80,a=c%100,f.D=b==a,b+=100*Math.floor(c/100)+(bl?(d=Qr(b,c,a.f.RP),0>d&&(d=Qr(b,c,a.f.WP)),0>d?f=!1:(f.month=3*d,f.day=1,f=!0)):f=!1,f;case "d":return 0<=l&&(f.day=l),!0;case "S":return b=c[0]-h,f.j=3>b?l*Math.pow(10,3-b):Math.round(l/Math.pow(10, +b-3)),!0;case "h":12==l&&(l=0);case "K":case "H":case "k":return 0<=l&&(f.Zh=l),!0;case "m":return 0<=l&&(f.Rj=l),!0;case "s":return 0<=l&&(f.Ch=l),!0;case "z":case "Z":case "v":b.indexOf("GMT",c[0])==c[0]&&(c[0]+=3);a:if(c[0]>=b.length)f.f=0,f=!0;else{d=1;switch(b.charAt(c[0])){case "-":d=-1;case "+":c[0]++}h=c[0];l=Pr(a,b,c);if(0>l)f=!1;else{if(c[0]l){f=!1;break a}m+=l}else m=l,m=24>m&&2>=c[0]-h?60*m:m%100+m/100*60;f.f=-(m*d);f=!0}}return f; +default:return!1}};Pr=function(a,b,c){if(a.f.eQ){for(var d=[],e=c[0];e=f?String.fromCharCode(f+48):b.charAt(e))}b=d.join("")}else b=b.substring(c[0]);a=b.match(/^\d+/);if(!a)return-1;c[0]+=a[0].length;return(0,window.parseInt)(a[0],10)};Qr=function(a,b,c){var d=0,e=-1;a=a.substring(b[0]).toLowerCase();for(var f=0;fd&&0==a.indexOf(c[f].toLowerCase())&&(e=f,d=h)}0<=e&&(b[0]+=d);return e};fca=function(){}; +Tr=function(a){$.C(a)||(a=String(a),a=Sr[a]||$.$p.format.locales[a]);return a||null};$.Oo=function(a){return(a=Tr(a))&&a.dateTimeLocale||null};Ur=function(a){return(a=Tr(a))&&a.numberLocale||null};Vr=function(a,b){var c=$.Oo(a);return c&&c[b||"dateTimeFormat"]||null}; +Xr=function(a){if(!a)return Rn;var b=$.oa(a);b in Wr||(Wr[b]={HP:a.eras,mY:a.eraNames,qY:a.narrowMonths,FY:a.standaloneNarrowMonths,OP:a.months,ZP:a.standaloneMonths,VP:a.shortMonths,$P:a.standaloneShortMonths,dQ:a.weekdays,IY:a.standaloneWeekdays,XP:a.shortWeekdays,HY:a.standaloneShortWeekdays,Y7:a.narrowWeekdays,GY:a.standaloneNarrowWeekdays,WP:a.shortQuarters,RP:a.quarters,zP:a.ampms||a.amPmS,PE:a.dateFormats||[],RE:a.timeFormats||[],DP:a.dateTimeFormats||[],IP:a.firstDayOfWeek,r9:a.weekendRange, +JP:a.firstWeekCutOffDay||a.firstWeekCutOfDay});return Wr[b]};Yr=function(a,b){var c=Tr(a);if(c){var d="object"==$.ka(a);Sr[d?b:a]=Zo($.$p.format.locales["default"],c)}};$r=function(a){$.n(a)&&(Zr=$.ma(a)?a.getTime():$.N(a));return(0,window.isNaN)(Zr)?(a=new Date,a.setTime(Date.UTC(a.getUTCFullYear(),a.getUTCMonth())),a):new Date(Zr)};$.Po=function(a){if($.n(a)){var b=$.z(a),c="object"==$.ka(a);b||c?(c=c?"output":a,Yr(a,c),as=b?c:Sr[c]||Sr.output||a):as="default"}return as}; +cs=function(a){$.n(a)&&($.z(a)?bs=a:bs=null);return bs||Vr(as)||Vr("output")||Vr("default")||"yyyy.MM.dd"};es=function(a){$.n(a)&&($.z(a)?ds=a:ds=null);return ds||Vr(as,"dateFormat")||Vr("output","dateFormat")||Vr("default","dateFormat")||"yyyy.MM.dd"};gs=function(a){$.n(a)&&($.z(a)?fs=a:fs=null);return fs||Vr(as,"timeFormat")||Vr("output","timeFormat")||Vr("default","timeFormat")||"HH:mm:ss"}; +$.is=function(a,b,c,d){return $.ma(a)?a:$.ea(a)?(0,window.isNaN)(a)?null:new Date(a):$.z(a)?hs(a,b,c,d):null};$.js=function(a){var b=Tr(as);return(b=b&&b.messages)&&a in b?b[a]:a};$.ks=function(a,b,c){b=$.Wk(b);a=$.Wk(a);return((c?c+"_":"")+(a==b?a:b+"_"+a)).replace(/-/g,"_")};$.ls=function(a,b,c){a=(c=$.Oo(c)||$.Oo(as)||$.Oo("output")||$.Oo("default"))&&c.formats&&c.formats[a];return($.A(a)?a[Math.min(a.length-1,b||0)]:$.z(a)?a:"")||"yyyy/MM/dd'T'HH:mm:ss.SSS"}; +$.ms=function(a,b){var c=$.Oo(b)||$.Oo(as)||$.Oo("output")||$.Oo("default");c=c&&c.formats&&c.formats[a];return $.A(c)?c:$.z(c)?[c]:[]};$.os=function(a,b,c){return $.ns(a,es(),b,c)};ps=function(a,b,c){return $.ns(a,gs(),b,c)}; +$.ns=function(a,b,c,d){a=$.J(a,Date)?a:new Date(a);if((0,window.isNaN)(a.getTime()))return String(a);d=$.Oo(d)||$.Oo(as)||$.Oo("output")||$.Oo("default");b=b||bs||cs()||"yyyy.MM.dd";var e=b+$.oa(d);e in qs||(d=Xr(d),qs[e]=new $.Un(b,d));d=qs[e];c=c||rs;c in ss||(ss[c]=Pn(c));return d.format(a,ss[c])}; +$.us=function(a,b,c,d,e,f,h,k){var l;$.z(b)?l=Ur(b):$.C(b)&&(l=b);var m=Ur(as)||Ur("default");b=$.ea(b)?b:l&&$.ea(l.decimalsCount)?l.decimalsCount:m.decimalsCount;c=$.z(c)?c:l&&$.z(l.decimalPoint)?l.decimalPoint:m.decimalPoint;d=$.z(d)?d:l&&$.z(l.groupsSeparator)?l.groupsSeparator:m.groupsSeparator;e=$.C(e)||$.da(e)?e:l&&($.C(l.scale)||$.da(l.scale))?l.scale:m.scale;f=$.da(f)?f:l&&$.da(l.zeroFillDecimals)?l.zeroFillDecimals:m.zeroFillDecimals;h=$.z(h)?h:l&&$.z(l.scaleSuffixSeparator)?l.scaleSuffixSeparator: +m.scaleSuffixSeparator;k=$.da(k)?k:l&&$.da(l.useBracketsForNegative)?l.useBracketsForNegative:m.useBracketsForNegative;!0===e&&(e=ts);a=Number(a);(l=0>a)&&(a=-a);m="";if($.C(e)&&$.A(e.factors)&&$.A(e.suffixes)){var p=1,q=e.factors;e=e.suffixes;for(var r=Math.min(q.length,e.length),t=0;t=p||1>=p&&a>.1*p){m=e[t];break}m?m=h+m:p=1;a/=p}f=f?a.toFixed(b):$.Tm(a,b).toString();a="";/(e+|e-)/.test(f)&&(b=f.split("e"),f=b[0],a="e"+b[1]);b=f.split(".");if(d){f=b[0];for(h=[];0<(e=f.substr(0, +f.length-3)).length;)h.unshift(f.substr(-3)),f=e;f&&h.unshift(f);b[0]=h.join(d)}d=l?"-":"";c=b.join(c)+a+m;l&&k&&(c=["(",c,")"].join(""),d="");return d+c}; +hs=function(a,b,c,d){if(b=($.n(b)?b:xs)||null){d=$.Oo(d)||$.Oo(ys)||$.Oo("input")||$.Oo("default");var e=$.oa(d);e=b+e;e in zs||(d=Xr(d),zs[e]=new dca(b,d));var f=zs[e];c=$.ma(c)?c:$r();(b=-1==b.replace(/'.+?'/g,"").search(/z+/i))&&c.setTime(c.getTime()+6E4*c.getTimezoneOffset());d=a.length;a:{var h=new fca;e=[0];for(var k=-1,l=0,m=0,p=0;pk&&f.b[p].LB&&(k=p,m=l=0),0<=k){var q=f.b[p].count;if(p==k&&(q-=m,m++,0==q)){a=0;break a}Rr(f,a,e,f.b[p],q,h)||(p=k-1,e[0]= +l)}else{if(k=-1,!Rr(f,a,e,f.b[p],0,h)){a=0;break a}}else{k=-1;if(" "==f.b[p].text.charAt(0)){if(q=e[0],Or(a,e),e[0]>q)continue}else if(a.indexOf(f.b[p].text,e[0])==e[0]){e[0]+=f.b[p].text.length;continue}a=0;break a}b:{if(null==c)throw Error("Parameter 'date' should not be null.");void 0!=h.era&&void 0!=h.year&&0==h.era&&0f?f:a));$.E(c.setHours)&&(void 0==h.Zh&&(h.Zh=c.getHours()),void 0!=h.i&&0h.Zh&&(h.Zh+=12),c.setHours(h.Zh));$.E(c.setMinutes)&&void 0!=h.Rj&&c.setMinutes(h.Rj);$.E(c.setSeconds)&&void 0!=h.Ch&&c.setSeconds(h.Ch);$.E(c.setMilliseconds)&&void 0!=h.j&&c.setMilliseconds(h.j);void 0!=h.f&&c.setTime(c.getTime()+6E4*(h.f-c.getTimezoneOffset()));h.D&&(a=new Date,a.setFullYear(a.getFullYear()-80),c.getTime()a[h]&&(a=$.Ja(a,0).reverse(),b=$.Ja(b,0).reverse());for(var k=[],l=[],m=0;mc&&(c=~c);c=$.Za(c,1,h)-1;b=k[c](b);return l[c](b)}}; +Ns=function(a){$.U.call(this);this.scale=a;this.j=hca;this.i=ica;this.f=jca};Os=function(a,b,c,d){b=Math.abs(c-b)/a.jn;c=a.f.length;for(var e=0;e=a*b)return 0;d&&(a=$.Vm(b),c=+("1e-"+(Math.min($.Um(a),$.Um(b))+1)),a>b&&(a+=e*c),b=a);return b};$.ft=function(){$.dt.call(this);this.Fa("defaultScaleSettings.dateTime");this.wi=this.sh=null};$.at=function(){var a=new $.ft;a.N(a.na);return a}; +ht=function(){$.U.call(this);this.f=this.b=null;this.i={bY:{},VR:{}};var a=$.Oo($.Po());this.G=$.Ha(a.weekendRange);this.j=gt(this.G);this.D={}};gt=function(a){var b=a[1],c={};for(a=a[0];a<=b;a++)c[String((a+1)%7)]=!0;return c};it=function(a,b,c,d){c=kca.b(c);b.add(c);b=b.getTime();d.push({from:a,to:b-1});return b}; +$.kt=function(){$.U.call(this);this.Bo=this.Co=this.Tm=this.Um=this.O5=this.P5=this.Ih=this.Jh=this.zj=this.Aj=this.We=this.Xe=window.NaN;this.Wl={value:.01,isPixels:!1};this.Vl={value:.01,isPixels:!1};this.UR=window.NaN;this.Lc=!1;this.CS=this.FL=window.NaN;this.gd=jt(lca);this.dA=1;this.uG=0;this.Vk=mca;this.Qq=this.ie=null}; +lt=function(a){var b=new Date;(0,window.isNaN)(a.FL)&&(a.FL=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()));(0,window.isNaN)(a.CS)&&(a.CS=a.FL+864E5);return{min:a.FL,max:a.CS}};$.mt=function(a,b,c){b=$.Uk(b);c=$.Uk(c);if(a.Jh!=b||a.Ih!=c)a.Jh=b,a.Ih=c,a.Aj=window.NaN,a.zj=window.NaN,a.Lc=!1,a.pb(),a.va(4)}; +ot=function(a){var b=a.Qq.nb().width,c=$.nt(a.Wl.value,b),d=$.nt(a.Vl.value,b),e=a.Ih-a.Jh;a.Aj=(0,window.isNaN)(a.Um)?(0,window.isNaN)(a.Co)?Math.round(a.Jh-(Math.max(e*c/(b-c-d),0)||0)):Math.min(a.Co,a.Jh):a.Um;a.zj=(0,window.isNaN)(a.Tm)?(0,window.isNaN)(a.Bo)?Math.round(a.Ih+(Math.max(e*d/(b-c-d),0)||0)):Math.max(a.Bo,a.Ih):a.Tm}; +pt=function(a,b){var c=b?a.Wl:a.Vl,d=b?a.Vl:a.Wl,e=a.Qq.nb().width,f=a.Ih-a.Jh;d=f*d.value;c=$.nt(c.value,e);e=c*(f+d)/(e-c)||0;a.Aj=(0,window.isNaN)(a.Um)?(0,window.isNaN)(a.Co)?b?a.Jh-e:a.Jh-d:Math.min(a.Co,a.Jh):a.Um;a.zj=(0,window.isNaN)(a.Tm)?(0,window.isNaN)(a.Bo)?b?a.Ih+d:a.Ih+e:Math.max(a.Bo,a.Ih):a.Tm};$.qt=function(a){if(a.Oj())return!0;var b=a.oj();return a.Xe<=b.min};$.rt=function(a){if(a.Oj())return!0;var b=a.oj();return a.We>=b.max}; +jt=function(a){var b=[];if($.A(a)){for(var c=0;ca?-m(-a+e-1):a?m(a+e-1):0}function l(a){return-m(a)}function m(a){return Ym(d,a)}var p=$.Xm(Math.abs(b),d),q=$.Xm(Math.abs(c),d),r=b*c,t=!1;0r?Bt(a,-(p-(e-1)),q-(e-1),f,h):c?Bt(a,0,q-(e-1),f,h):Bt(a,-(p-(e-1)),0,f,h);a.Ua=(0,$.Wa)(a.Ua,k);a.result=(0,$.Wa)(a.result,k);t&&(a.Ua.reverse(),t=a.result[0],a.result[0]=a.result[1],a.result[1]=t,t=a.result[2],a.result[2]= +a.result[3],a.result[3]=t);a.result[4]=e;return a}; +Bt=function(a,b,c,d,e,f,h){h=h||0;var k=a.Fl,l=a.ih,m=a.lm,p=c-b;!(0,window.isNaN)(k)&&p/k>a.pa.Vm()&&($.hl(20,null,[p,k]),k=window.NaN,l=4,m=6);if((0,window.isNaN)(k)){var q=window.NaN;for(a=window.NaN;l<=m;l++){var r=l-1;q=$.Vm(p/r);0==q&&(q=$.Vm(p/r,10));var t=Math.log(q);r=Math.pow(10,Math.floor(t*Math.LOG10E));t=Math.pow(10,Math.ceil(t*Math.LOG10E));var u=$.Xm(q/t,2);r=[r,t,q=b;h=$.Tm(h-d,7)){e!=h&&$.Da(f,h);if(k&&a==h)break;k++}else for(h=a=$.Tm(b,7);h<=c;h=$.Tm(h+d,7)){e!=h&&f.push(h);if(k&&a==h)break;k++}return f};Dt=function(a,b,c,d){a=a.Fl;(0,window.isNaN)(a)&&(a=(c-b)/(d-1));return Math.max(a,1E-7)}; +$.Et=function(){$.dt.call(this);this.Fa("defaultScaleSettings.linear");this.wi=this.sh=null;this.pR=!0;this.ow=10;this.aJ=!0;this.lK=this.S2};$.Ys=function(){var a=new $.Et;a.N(a.na);return a};Ft=function(){$.Et.call(this);this.Fa("defaultScaleSettings.log")};$.$s=function(){var a=new Ft;a.N(a.na);a.Ua().N(a.Ua().na);a.vb().N(a.vb().na);return a};$.Gt=function(a){$.U.call(this);this.scale=a};$.Ht=function(a){a.zz=null;a.ux=null;a.Gk=null}; +$.It=function(){this.fh=[];this.Nf=[];this.Hr=[];this.Mw=[];this.fz=[];this.eR=!0;this.BB={};this.u3=null;this.yF=!0;this.kb=null;Ps.call(this);this.Fa("defaultScaleSettings.ordinal")};$.Jt=function(a,b){null===b?a.Hr.length=0:$.A(b)&&(a.Hr=$.Ha(b));a.iv()||(a.Hr.length=0);a.Mw.length=0;a.fz.length=0;$.Ht(a.Ua());a.va(2)}; +$.Kt=function(a){if(!a.fz||a.fz.length!=a.fh.length){var b=a.TX(),c=0,d;for(d in b)c+=b[d];a.fz=b.map(function(a){return a/c});a.tJ=[0];for(b=0;ba?$.Da(d,c,~a):(a=d[a],$.A(a.value)?$.Ba(a.value,b):a.value!=b&&(a.value=[a.value],a.value.push(b)))}else for(e in a.zd)$t(a,b,e,d)}; +au=function(a,b,c,d){if(c){if(d)for(var e=b.ac();e--;)au(a,b.wd(e),c,d);if(d=a.zd[c])e=b.get(c),a.yH[c]&&(e=String(e)),b.get(c),e=$.Na(d,e,a.nH[c]),(d=d[e])&&($.A(d.value)&&1h.iH&&(e.__original_id__=c.length,e.__original_parent__=c.length+1,c.push("__original_id__","__original_parent__"));for(f=0;f=h.iH){var q=p[0];var r=p[1]}else q=m.id,r=p[2];for(e=0;ea.length?a[0]:a[b],Math.min(d,c))||0}; +su=function(a,b,c,d,e,f,h){switch(a.g("cornerType")){case "round":b.xf(e,f,h,h,!1,!0);break;case "round-inner":b.xf(e,f,h,h,!1,!1);break;case "cut":b.lineTo(e,f);break;default:b.lineTo(c,d).lineTo(e,f)}};tu=function(){$.qu.call(this)};uu=function(){this.P=$.kg();this.hc="";this.f={};this.b=0};vu=function(a,b){return null!=b&&a.length>b?a.slice(0,b)+"...":a}; +wu=function(a,b,c,d){$.U.call(this);this.Vb=this.Y=null;($.n(a)||$.n(b)||$.n(c)||$.n(d))&&this.set.apply(this,arguments);$.R(this.ua,[["left"],["top"],["bottom"],["right"]])}; +$.Gm=function(a){var b=arguments[0],c=arguments[1],d=arguments[2],e=arguments[3];if($.A(b)){var f=b;b=f[0];c=f[1];d=f[2];e=f[3];f=f.length}else f=arguments.length;if(!f)return{};if("object"==$.ka(b)){var h=b.top||0;var k=b.right||0;var l=b.bottom||0;var m=b.left||0}else 1==f?m=l=k=h=b||0:2==f?(l=h=b||0,m=k=c||0):3==f?(h=b||0,m=k=c||0,l=d||0):4<=f&&(h=b||0,k=c||0,l=d||0,m=e||0);return{top:h,left:m,bottom:l,right:k}};yu=function(a,b){for(var c in xu){var d=b[c];$.n(d)&&(a.na[c]=d)}}; +$.zu=function(a,b,c,d){wu.call(this,a,b,c,d)};$.Cu=function(a,b){var c=b.top||0,d=b.left||0,e=Au(a.height,c,b.bottom||0),f=Bu(a.width,d,b.right||0);d=$.M(d,f);c=$.M(c,e);return new $.I(a.left-d,a.top-c,f,e)};Au=function(a,b,c){var d=1;$.ro(b)?d-=(0,window.parseFloat)(b)/100:a+=$.ea(b)?b:(0,window.parseFloat)(b);$.ro(c)?d-=(0,window.parseFloat)(c)/100:a+=$.ea(c)?c:(0,window.parseFloat)(c);d||(d=1E-7);return a/d}; +Bu=function(a,b,c){var d=1;$.ro(b)?d-=(0,window.parseFloat)(b)/100:a+=$.ea(b)?b:(0,window.parseFloat)(b);$.ro(c)?d-=(0,window.parseFloat)(c)/100:a+=$.ea(c)?c:(0,window.parseFloat)(c);d||(d=1E-7);return a/d};$.Du=function(){this.b={}}; +oca=function(a){function b(a){var b=[],c,d;for(d in a)if(a.hasOwnProperty(d)){var e=a[d];if(d in l){var f=l[d];"number"==f&&(e=$.N(e));"boolean"==f&&(e=k[cp(e).toLowerCase()],e="useNegativeSign"==d?!e:e);if("scale"==f){var h=cp(e);if(h in k)e=k[h];else{e={};h=h.split("|");var p=function(a,b){return 0!=b%2};f=(0,$.Ye)(h[0].split(/\(([ \w\+\-]*)\)/),p);h=(0,$.Ye)(h[1].split(/\(([^\)]*)\)/),p);f=(0,$.Wa)(f,function(a){return+a});var q=f[0];p=[q];for(c=1;cb||h&&d>c?-1:f&&a==b||h&&d==c?0:1});0>d&&(d=~d-1);return a[$.Za(d,0,a.length)]}; +sca=function(a){var b=$.Mu(a),c=b.useHtml,d=a.yf();a.J(1024)&&($.Qu(a.Zo,a.la()),a.I(1024));b=a.mk(b.format,d,a.la());a.Gv||(a.Gv=$.rk(),a.Gv.Bd("aria-hidden","true"));c?a.Gv.htmlText($.n(b)?String(b):""):a.Gv.text($.n(b)?String(b):"");Nu(a,function(a,b,c){a=0==c;$.J(b,$.Hu)||$.J(b,$.Lu)?this.Wh.call(b,this.Gv,a):this.Wh(this.Gv,a,b)});return a.Gv}; +Ku=function(a){if($.da(a.pr))return a.pr;var b=$.Mu(a),c=null!==b.width,d=null!==b.height,e=b.useHtml,f=a.ub?!!a.ub.path():!1;a=String(a.mk(b.format,a.yf(),a.la()));a=$.ic(jc(a));return 1!=a.split(/\n/g).length||c||d||e||f};bv=function(a){var b=Ku(a),c=$.J(a.ub,uu),d=$.J(a.ub,$.Oh);return!a.ub||b&&c||!b&&d};cv=function(){$.Hu.call(this)};dv=function(){$.Lu.call(this)}; +ev=function(a,b,c){this.mc={values:a||{},gg:b||null,Ci:c||[],Bm:{},zl:{}};this.mc.Bm["%Value"]="value";this.mc.Bm["%YValue"]="value";this.mc.Bm["%Index"]="index"};$.fv=function(a){return $.n(void 0)?(a.mc.values=void 0,a):a.mc.values};$.gv=function(a,b){var c;if($.n(b)){for(c in a)a.hasOwnProperty(c)&&!$.E(a[c])&&a[c]!=a.mc&&delete a[c];a.mc.values=b}for(c in a.mc.values)a[c]=a.mc.values[c].value;return a};$.hv=function(a){$.U.call(this);this.b=a};iv=function(a){this.sa=a;$.U.call(this)}; +jv=function(a,b,c){var d=a.sa.O()?a.sa.O().Ja().Oo():null;return d?$.n(c)?(d[b](c),a):d[b]():$.n(c)?(a[b+"_"]!==c&&(a[b+"_"]=c),a.B(16,2),a):a[b+"_"]};kv=function(a){var b={},c=a.text_,d=a.url_,e=a.alt_,f=a.imgAlt_,h=a.logoSrc_;a=a.enabled_;$.n(c)&&(b.text=c);$.n(d)&&(b.url=d);$.n(e)&&(b.alt=e);$.n(f)&&(b.imgAlt=f);$.n(h)&&(b.logoSrc=h);$.n(a)&&(b.enabled=a);return b}; +lv=function(){$.Y.call(this);this.Y=null;this.Ya={};this.Vb=null;$.R(this.ua,[["fontSize",20,9],["fontFamily",20,9],["fontColor",16,1],["fontOpacity",16,1],["fontDecoration",20,9],["fontStyle",20,9],["fontVariant",20,9],["fontWeight",20,9],["letterSpacing",20,9],["textDirection",20,9],["lineHeight",20,9],["textIndent",20,9],["textShadow",16,1],["vAlign",20,9],["hAlign",20,9],["wordWrap",20,9],["wordBreak",20,9],["textOverflow",20,9],["selectable",16,1],["disablePointerEvents",16,1],["useHtml",20, +9]])};mv=function(){lv.call(this);this.Ga=null;this.K=void 0;this.ub=this.Ta=null;this.La=$.nk();$.ju(this,this.La);$.R(this.ua,[["text",20,9],["position",4,9],["width",4,9],["height",4,9],["anchor",4,9],["offsetX",4,9],["offsetY",4,9],["rotation",4,9],["adjustFontSize",4,9],["minFontSize",0,0,0,this.da],["maxFontSize",0,0,0,this.da]]);this.ua.disablePointerEvents.o_=function(){this.background().disablePointerEvents(this.ld("disablePointerEvents"))}}; +nv=function(a){var b=a.ja(),c;var d=a.g("width");var e=a.g("height");var f=a.i1();b&&f?(null!=d?(a.Fi=d=$.M(d,f.width),b=!1):(d=0,b=!0),null!=e?(a.Ei=c=$.M(e,f.height),f=!1):(c=0,f=!0)):($.Ao(d)?(b=!0,d=0):(b=!1,a.Fi=d=$.N(d)),$.Ao(e)?(f=!0,c=0):(f=!1,a.Ei=c=$.N(e)));e=a.padding();a.ub.width(null);a.ub.height(null);b?(d+=a.ub.rb().width,a.gn=d,a.Fi=e.Dk(d)):d=a.gn=e.Ig(d);a.ub.width(a.gn);f?(c+=a.ub.rb().height,a.en=c,a.Ei=e.Vj(c)):c=a.en=e.Sh(c);a.ub.height(a.en);var h=!b,k=!f,l=a.g("adjustFontSize"); +h=l&&(h&&l.width||k&&l.height);$.V(a);h?(d=a.mR(d,c),a.fontSize(d),a.ub.fontSize(d),b&&(a.ub.width(null),a.gn=a.ub.rb().width,a.ub.width(a.gn),a.Fi=e.Dk(a.gn)),f&&(a.ub.height(null),a.en=a.ub.rb().height,a.ub.height(a.en),a.Ei=e.Vj(a.en))):l&&(l.width||l.height)&&(a.fontSize(a.g("minFontSize")),a.ub.fontSize(a.g("minFontSize")),b&&(a.ub.width(null),a.gn=a.ub.rb().width,a.ub.width(a.gn),a.Fi=e.Dk(a.gn)),f&&(a.ub.height(null),a.en=a.ub.rb().height,a.ub.height(a.en),a.Ei=e.Vj(a.en)));a.ea(!1);a.Gg=$.M(e.g("left"), +a.Fi);a.Hg=$.M(e.g("top"),a.Ei)};ov=function(a){var b;if(b=!a.ub)a.ub=$.rk(),a.ub.Bd("aria-hidden","true");return b};$.pv=function(){mv.call(this);$.R(this.ua,[["visible",128,1]]);this.na.visible=!0};qv=function(){$.pv.call(this)}; +rv=function(){function a(){this.Py=!0}function b(){this.Yb=null}lv.call(this);this.Fa($.nr.legendItem);this.wb=$.nk();this.Zc=this.wb.text();this.Zc.Bd("aria-hidden","true");this.gW=this.hW=null;this.wF=window.NaN;this.r3={line:"black",spline:"black","step-line":"black",ohlc:"black",candlestick:"black"};this.gja={line:!0,spline:!0,"step-line":!0,ohlc:!0};this.BC={iconStroke:"#999",iconFill:"#999",iconHatchFill:"none",iconMarkerStroke:"#999",iconMarkerFill:"#999",fontColor:"#999"};$.R(this.ua,[["text", +20,9],["x",4,9,0,b],["y",4,9,0,b],["iconType",16,1,0,a],["iconTextSpacing",4,9,0,b],["maxWidth",4,9,0,b],["maxHeight",4,9,0,b],["iconFill",17,0,a],["iconStroke",16,1,0,a],["iconHatchFill",16,1,0,a]]);this.nK()};tv=function(a,b,c){a.Ul?a.Ul.clear():a.Ul=b.parent().path();a.$v&&(sv(a,a.wa),b=a.$v,($.z(b)?$.vp(b):b).call(a,a.Ul,c/2,c/2,c/6))}; +tca=function(a){switch(a){case "step-area":a=function(a,b){a.moveTo(0,.6*b).lineTo(.5*b,.6*b).lineTo(.5*b,.1*b).lineTo(b,.1*b).lineTo(b,b).lineTo(0,b).lineTo(0,.6*b).close()};break;case "area":a=function(a,b){a.moveTo(0,.7*b).lineTo(.35*b,.3*b).lineTo(.5*b,.5*b).lineTo(b,0).lineTo(b,b).lineTo(0,b).lineTo(0,.7*b).close()};break;case "range-step-area":case "range-spline-area":case "range-area":a=function(a,b){a.moveTo(0,.2*b).lineTo(.5*b,.4*b).lineTo(b,.2*b).lineTo(b,.8*b).lineTo(.5*b,.6*b).lineTo(0, +.8*b).close()};break;case "spline-area":a=function(a,b){var c=b/2;a.moveTo(b,.6*c).lineTo(b,b).lineTo(0,b).lineTo(0,1.3*c).Ee(0,c,c,.3*c,90,-90).Ee(b,c,c,.4*c,180,90).moveTo(0,0).close()};break;case "range-bar":a=function(a,b){a.moveTo(.35*b,0).lineTo(.65*b,0).lineTo(.65*b,.15*b).lineTo(.35*b,.15*b).close().moveTo(.1*b,.4*b).lineTo(.9*b,.4*b).lineTo(.9*b,.55*b).lineTo(.1*b,.55*b).close().moveTo(.25*b,.8*b).lineTo(.75*b,.8*b).lineTo(.75*b,.95*b).lineTo(.25*b,.95*b).close()};break;case "range-column":a= +function(a,b){a.moveTo(0,.6*b).lineTo(0,.4*b).lineTo(.15*b,.4*b).lineTo(.15*b,.6*b).lineTo(0,.6*b).close().moveTo(.4*b,.9*b).lineTo(.4*b,.1*b).lineTo(.55*b,.1*b).lineTo(.55*b,.9*b).lineTo(.4*b,.9*b).close().moveTo(.8*b,.7*b).lineTo(.8*b,.3*b).lineTo(.95*b,.3*b).lineTo(.95*b,.7*b).lineTo(.8*b,.7*b).close()};break;case "bar":a=function(a,b){a.moveTo(0,0).lineTo(.6*b,0).lineTo(.6*b,.15*b).lineTo(0,.15*b).close().moveTo(0,.4*b).lineTo(b,.4*b).lineTo(b,.55*b).lineTo(0,.55*b).close().moveTo(0,.8*b).lineTo(.8* +b,.8*b).lineTo(.8*b,.95*b).lineTo(0,.95*b).close()};break;case "column":a=function(a,b){a.moveTo(0,b).lineTo(0,.4*b).lineTo(.15*b,.4*b).lineTo(.15*b,b).close().moveTo(.4*b,b).lineTo(.4*b,0).lineTo(.55*b,0).lineTo(.55*b,b).close().moveTo(.8*b,b).lineTo(.8*b,.2*b).lineTo(.95*b,.2*b).lineTo(.95*b,b).close()};break;case "step-line":a=function(a,b){a.moveTo(0,.8*b).lineTo(.5*b,.8*b).lineTo(.5*b,.2*b).lineTo(b,.2*b).moveTo(0,0).close();tv(this,a,b)};break;case "line":a=function(a,b){a.moveTo(0,.5*b).lineTo(b, +.5*b).close();tv(this,a,b)};break;case "spline":a=function(a,b){var c=b/2;a.Ee(0,c,c,.8*c,90,-90).Ee(b,c,c,.6*c,180,90).moveTo(0,0).close();tv(this,a,b)};break;case "bubble":case "circle":a=function(a,b){var c=b/2;a.Ee(c,c,c,c,0,360).close()};break;case "candlestick":a=function(a,b){a.moveTo(.5*b,0).lineTo(.5*b,b).moveTo(0,.3*b).lineTo(b,.3*b).lineTo(b,.7*b).lineTo(0,.7*b).lineTo(0,.3*b).close()};break;case "ohlc":a=function(a,b){a.moveTo(0,.2*b).lineTo(.5*b,.2*b).moveTo(.5*b,0).lineTo(.5*b,b).moveTo(.5* +b,.8*b).lineTo(b,.8*b).close()};break;case "triangle-up":case "triangle-down":case "triangle-right":case "triangle-left":case "diamond":case "cross":case "diagonal-cross":case "star4":case "star5":case "star6":case "star7":case "star10":case "pentagon":case "trapezium":case "arrowhead":case "v-line":a=$.Lk(a);var b=$.vp(a);a=function(a,d){return b(a,d/2,d/2,d/2)};break;default:a=function(a,b){a.moveTo(0,0).lineTo(b,0).lineTo(b,b).lineTo(0,b).close()}}return a}; +uv=function(a,b){a.Ul&&a.Ul.clear();a.As?(b.call(a,a.bw.clear(),a.gp),a.zs&&b.call(a,a.zs.clear(),a.gp)):(a.bw.clear(),a.zs&&a.zs.clear())};vv=function(a,b,c){a.Wh(a.Zc,!!c);c=a.g("fontColor");b=a.Xp?a.BC.fontColor:b?$.Kl(c):c;(0,window.isNaN)(a.wF)?(a.Zc.color(b),a.Zc.fill(b)):(c=a.g("fontOpacity"),c=$.n(c)?c:1,b={keys:yp(a.wF,c,b)},a.Yh().fill(b))};wv=function(a,b){a.bw.stroke(uca(a,b));a.bw.fill(vca(a,b));a.zs&&a.zs.fill(a.Xp?a.BC.iconHatchFill:a.g("iconHatchFill"))}; +sv=function(a,b){a.Ul&&(a.Ul.fill(wca(a,b)),a.Ul.stroke(xca(a,b)))};uca=function(a,b){if(a.Xp)return a.BC.iconStroke;var c=a.g("iconType");return $.$o(a.g("iconStroke"))&&c in a.r3?a.r3[c]:b?$.Kl(a.g("iconStroke")):a.g("iconStroke")};vca=function(a,b){return a.g("iconType")in a.gja?null:a.Xp?a.BC.iconFill:b?$.Kl(a.g("iconFill")):a.g("iconFill")};xca=function(a,b){return a.Xp?a.BC.iconMarkerStroke:b?$.Kl(a.Yv):a.Yv};wca=function(a,b){return a.Xp?a.BC.iconMarkerFill:b?$.Kl(a.Xv):a.Xv}; +xv=function(a,b){return $.n(b)?(a.hW=b,a):a.hW};$.zv=function(){lv.call(this);this.Af=this.Qf=null;this.bc=yv;this.WD=this.DK=!1;this.yU();$.R(this.ua,[["text",20,9]]);this.B(4294967295)}; +Av=function(a){var b=a.ja();if(b){var c=b.width;var d=b.height}else c=d=void 0;var e=!!a.ub;if(e){var f=a.ub.rb();var h=f.width;var k=f.height}var l=null!=a.Qf,m=null!=a.Af;f=a.padding();l?(h=$.ro(a.Qf)&&!$.n(c)?e?h:0:$.M(a.Qf,c),e&&(a.Gg=$.M(f.g("left"),h))):(h=e?h:0,e&&(a.Gg=$.M(f.g("left"),h)),h=f.Dk(h));b&&cb?null:b;$.n(a.width())||a.B(4)};$.Wv=function(a,b){if($.n(b)){var c=a.g("orientation")!=b;a.Jd.orientation=b;c&&a.B(4);return a}return a.Jd.orientation};$.Xv=function(a,b){if($.n(b)){var c=null==b?"":String(b);a.aa!=c&&(a.aa=c,a.B(20,9));return a}return a.aa};Yv=function(a){var b=!1;a.wb||(b=!0,a.wb=$.nk(),a.background().O(a.wb),a.hc=a.wb.text(),a.hc.zIndex(.1),a.hc.Bd("aria-hidden","true"),$.ju(a,a.wb));return b}; +Zv=function(a){var b=a.padding(),c=a.margin(),d=a.ja(),e=a.g("orientation"),f=0==a.kA()%180;var h=0==(a.kA()+90)%180;if(d)if(h){var k=d.height;h=d.width}else k=d.width,h=d.height;else k=h=void 0;var l=Yv(a);if(l||a.J(16))a.Wh(l),a.I(16);a.hc.width(null);a.hc.height(null);a.hc.lc(1,0,0,1,0,0);l=a.hc.rb();var m=a.Ah("width")?a.ld("width"):a.ba||null;null===m?(a.G=l.width,a.f=b.Dk(a.G)):(a.f=$.M(m,k),a.G=b.Ig(a.f));d&&kd.left-q+k&&(b-=d.left-q+k);0>d.top-m+p&&(c-=d.top-m+p);d.ab()-q+k>r.width&&(b-=d.ab()-q+k-r.width);d.Sa()-m+p>r.height&&(c-=d.Sa()-m+p-r.height)}h||(a.x(b),a.y(c),d=a.nb(),d.lefte.width+q&& +(b-=d.ab()-e.width-q),d.Sa()>e.height+m&&(c-=d.Sa()-e.height-m));l||(a.x(b),a.y(c),d=a.nb(),d.leftf.ab()+q&&(b-=d.ab()-q-f.ab()),d.Sa()>f.Sa()+m&&(c-=d.Sa()-m-f.Sa()));a.x(b);a.y(c)}}; +tw=function(a,b,c,d,e){var f=b.parent()?rw(b):a,h=f.g("positionMode")||"float";f=f.Ca()||$.sw(a);a=f.nb();var k=f.O().Ja();f=$.Yj(k);k=k.rb();var l=pw(b),m=b.g("position");switch(h){case "float":var p=l?c:c-f.x;var q=l?d:d-f.y;break;case "point":var r;e&&e.Ji?r=e.Ji(m,!0).value:r={x:c,y:d};p=l?r.x+f.x:r.x;q=l?r.y+f.y:r.y;break;case "chart":c=$.Co(a,m),p=c.x+(l?f.x:0),q=c.y+(l?f.y:0)}qw(b,p,q,f,k,a)}; +Aca=function(a,b,c,d,e,f){if(a.check(mw|nw)&&(a.b=e?e.Ra():a,$.uw(a,[a.b]),a.b.enabled())){for(var h={clientX:{value:c,type:"number"},clientY:{value:d,type:"number"},formattedValues:{value:[],type:""},points:{value:[],type:""}},k=[],l=0;l":"\n",h.joinedFormattedValues={value:h.formattedValues.value.join(k),type:"string"},f&&$.Sc(h,f),k=e&&e.nc&&e.nc()||b[0]&&b[0].series&&b[0].series.nc&&b[0].series.nc()||void 0,f=[],!e&&b[0]&&b[0].series&&f.push(b[0].series),e&&f.push(e),k&&f.push(k),b=new $.xw(h),b.Ci(f),e&&b.gg(e.$()), +$.gv(b),a.b.Hi().text(ww(a,b,!0)),$.Xv(a.b.title(),yw(a,b)),$.uw(a.b),a.b.g("useHtml")&&dw(a.b.i),zw(a.b).parent()||a.b.B(2),Aw(a,a.b),tw(a,a.b,c,d,e),Bw(a.b,c,d))}};vw=function(a,b){return!a.enabled()||b.nearestPointToCursor&&!(0,window.isFinite)(b.nearestPointToCursor.distance)}; +$.Fw=function(a,b,c,d,e,f,h){if(!a.f||a.f.xA()||!a.f.Am()||a.check(mw)||b.length){$.Cw(a);var k=a.g("displayMode");if("single"==k)e=b[0],b=e.series,a.b=f?a:b.Ra(),!vw(a.b,e)&&$.n(b.Jk)&&(f=b.Jk(),h&&($.Sc($.fv(f),h),$.gv(f)),f.clientX=c,f.clientY=d,$.Xv(a.b.title(),yw(a.b,f)),a.b.Hi().text(ww(a.b,f)),a.b==a?$.uw(a):(Dw(a),$.uw(a,[a.b])),((h=a.g("useHtml"))&&!a.b.i.O()||!zw(a.b).parent())&&a.b.B(2),h&&dw(a.b.i),Aw(a,a.b),tw(a,a.b,c,d,b),Bw(a.b,c,d));else if("union"==k)Aca(a,b,c,d,e,h);else if("separated"== +k)for(Dw(a),h=0;hd.Sa()?(e=d.sb(),f=d.ab(),h=d.Ub(),k=d.Sa(),c+=2):(e=f=d.sb()+2,h=d.Ub(),k=d.Sa(),b-=2);else if(b>d.ab())cd.Sa()?(e=d.sb(),f=d.ab(),h=d.Sa(),k=d.Ub(),c+=2):(e=f=d.ab()-2,h=d.Ub(),k=d.Sa(),b+= +2);else if(cd.Sa())h=k=d.Sa()-2,e=d.sb(),f=d.ab(),c+=2;else break a;a.K=[e,h,f,k,b,c]}$.Qd(window.document,"mousemove",a.pN,!1,a)}else e&&d.Fd(!0)}};$.Gw=function(a,b,c,d){$.Cw(a);a.b=a;d&&(d.clientX=b,d.clientY=c,$.Xv(a.title(),yw(a,d)),a.Hi().text(ww(a,d)));a.g("useHtml")&&!a.b.i.O()&&a.b.B(2);Aw(a,a);tw(a,a,b,c);Bw(a,b,c)}; +yw=function(a,b){$.fv(b).titleText={value:a.hb.g("text"),type:"string"};$.gv(b);var c=a.g("titleFormat");$.z(c)&&(c=$.Fu($.Du.Gd(),c));return c.call(b,b)};ww=function(a,b,c){$.fv(b).valuePrefix={value:a.g("valuePrefix")||"",type:"string"};$.fv(b).valuePostfix={value:a.g("valuePostfix")||"",type:"string"};$.gv(b);c=c?a.g("unionFormat"):a.g("format");$.z(c)&&(c=$.Fu($.Du.Gd(),c));a=a.g("maxLength");b=c.call(b,b);return b=vu(b,a)}; +Dw=function(a,b,c){if(b)return a.D&&a.D.stop(),a.remove(),!0;if(a.g("selectable")&&c){b=c.originalEvent.clientX;c=c.originalEvent.clientY;var d=a.nb().hg(new $.gb(b,c)),e=zw(a).ia();if(e&&!d)return $.Id(e,"mouseleave",a.yM,!1,a),a.K=null,!1;if(Hw(a,b,c))return $.Id(window.document,"mousemove",a.pN,!1,a),e&&($.Id(zw(a).ia(),"mouseenter",a.EX,!1,a),$.Id(zw(a).ia(),"mouseleave",a.FX,!1,a)),!1;a.K=null}if(a.g("hideDelay"))return a.MK(),a.D.mq()||a.D.start(),!1;a.remove();return!0}; +$.Cw=function(a){var b=a.Sj();a.title().Sj(b);a.Tr().Sj(b);a.background().Sj(b);a.padding().Sj(b)};zw=function(a){if(!a.La){a.La=$.nk();$.ju(a,a.La);var b=a.background(),c=a.title(),d=a.Tr(),e=a.Hi();b.O(a.La);c.O(a.La);d.O(a.La);e.O(a.La)}return a.La};$.sw=function(a,b){return $.n(b)?(a.Aa=b,a):a.Aa};pw=function(a){return Bca&&a.g("allowLeaveStage")&&a.g("allowLeaveChart")};$.uw=function(a,b){b=b||[];for(var c in a.j)Iw(b,function(a){return String($.oa(a))==c})||a.j[c].Ic(!0)}; +Jw=function(a){if(a.g("useHtml"))a.P=a.i.rb();else if(!a.P){$.V(a.Hi());a.Wh();a.Hi().ea(!1);var b=a.g("width"),c=a.g("height"),d=(a.sa||$.sw(a)).nb();b=$.M(b,d.width);c=$.M(c,d.height);d=!(0,window.isNaN)(b);var e=!(0,window.isNaN)(c),f=new $.I(0,0,0,0),h=null,k=null,l=a.title(),m=a.Tr(),p=a.Hi();$.V(l);$.V(m);$.V(p);if(!d||!e){if(l.enabled()){"svg"==$.jk?l.ja(null):l.ja(a.sa&&a.sa.O()?a.sa.O().Ja().rb():null);var q=l.g("width");var r=null!=l.ld("width");var t=l.g("height");var u=null!=l.ld("height"); +$.ro(q)&&(h=q,d?(q=a.padding().Ig(b),l.width(q)):l.width(null));$.ro(t)&&(k=t,e?(q=a.padding().Sh(c),l.height(q)):l.height(null));t=l.ri();f.width=b||Math.max(f.width,t.width);r?l.width(h):delete l.Oa.width;u?l.height(k):delete l.Oa.height;k=h=null;e||(f.height+=t.height)}if(p.enabled()){var v=(r=a.Y?a.Y.Hi():null)?r.width():void 0;r=r?r.height():void 0;p.ja(null);v=p.width()||v;r=p.height()||r;$.ro(v)&&(h=v,d?(q=a.padding().Ig(b),p.width(q)):p.width(null));$.ro(r)&&(k=r,e?(q=a.padding().Sh(c),p.height(q)): +p.height(null));v=p.ri();f.width=b||Math.max(f.width,v.width);h&&p.width(h);k&&p.height(k);e||(f.height+=v.height)}l.enabled()&&l.ja(new $.I(0,0,f.width,t.height));p.enabled()&&p.ja(new $.I(0,0,f.width,v.height));m.enabled()&&(m.ja(l.enabled()||p.enabled()?f:null),t=m.ri(),f.width=b||Math.max(f.width,t.width),e||(f.height+=t.height))}f=a.padding().UX(f);d&&(f.width=b);e&&(f.height=c);f.left=0;f.top=0;a.P=f;l.ea(!1);m.ea(!1);p.ea(!1)}}; +Kw=function(a){Jw(a);if(!a.G){var b=a.g("anchor"),c=a.g("useHtml"),d=c?0:a.g("offsetX"),e=c?0:a.g("offsetY");c=c?$.Uf(a.i.Va(),"margin"):new $.lb(0,0,0,0);var f=a.g("x"),h=a.g("y");f=new $.gb(f,h);$.Vo(f,b,d+c.left,e+c.top);b=$.Co(a.P,b);f.x-=b.x;f.y-=b.y;a.G=f}}; +Ew=function(a,b,c,d,e){var f=c,h=d,k=a.g("positionMode")||"float",l=a.g("displayMode"),m=(a.Ca()||$.sw(a)).nb(),p=a.Aa.O().Ja(),q=p.rb();p=$.Yj(p);var r=pw(b);"float"==k?(f=r?c:c-p.x,h=r?d:d-p.y):"point"==k?(a="union"==l?a.g("position"):b.g("position"),a=e.Ji(a,!0).value,f=r?a.x+p.x:a.x,h=r?a.y+p.y:a.y):"chart"==k&&(f=a.Ca().nb(),a="union"==l?a.g("position"):b.g("position"),a=$.Co(f,a),f=a.x+(r?p.x:0),h=a.y+(r?p.y:0));qw(b,f,h,p,q,m)}; +Lw=function(a){var b=null;$.sw(a)?b=$.sw(a).O():a.Ca()?b=a.Ca().O():a.parent()&&(a=rw(a),$.sw(a)?b=$.sw(a).O():a.Ca()&&(b=a.Ca().O()));return b};rw=function(a){for(;a.parent();)a=a.parent();return a}; +Aw=function(a,b){if(b.J(2))if(pw(b)||"vml"==$.jk){if(b.g("useHtml"))b.i.O($.Gp.body);else{var c=jw.Gd();a.f&&a.f.xA()&&b.f.O(null);b.f=c;b.f.O(window.document.body);b.O(c.b);zw(b).parent(b.O())}b.I(2)}else if(c=Lw(b)){var d=c.Ja().Nl();if(b.g("useHtml"))b.i.O(d);else{var e=Mw(b);c=Nw[e];c||(c=new ew,Nw[e]=c);b.f=c;zw(b).parent(b.O());c.O(d);b.O(c.b)}b.I(2)}}; +Hw=function(a,b,c){if(!a.K)return!1;var d=a.K[0],e=a.K[1],f=a.K[2],h=a.K[3],k=a.K[4],l=a.K[5];a=$.cn(f,h,k,l,b,c);k=$.cn(k,l,d,e,b,c);return $.cn(d,e,f,h,b,c)==a&&a==k};Mw=function(a){a=Lw(a).Ja();return"stg"+$.oa(a)}; +$.Ow=function(){lv.call(this);this.Fa($.nr.legend);this.ba=this.Sb=null;this.Ha=window.NaN;this.Ia=!0;this.B(4294967295);$.ku(this,this,null,null,null,null,this.x$,null);$.R(this.ua,[["inverted",16,1],["itemsLayout",4,9],["iconSize",4,9,0,function(){if(null!=this.Sb)for(var a=0,b=this.Sb.length;ab?(v=Math.max(v,p),w+=m,q++,p=e+y,m=k+y):(p+=e+y,m=Math.max(m,k+y)):"vertical-expandable"==x&&(r+k>c?(w=Math.max(w,r),v+=t,u++,t=e+y,r=k+y):(r+=k+y,t=Math.max(t, +e+y))));!d||0>f?f=d=0:d-=y;!h||0>l?l=h=0:h-=y;a.oe=u;return"vertical"==x?$.kn(0,0,Math.max(0,f),Math.max(0,h)):"horizontal"==x?$.kn(0,0,Math.max(0,d),Math.max(0,l)):"vertical-expandable"==x?(w=Math.max(w,r)-y,$.kn(0,0,Math.max(0,v+(t-y)),Math.max(0,w))):"horizontal-expandable"==x?(v=Math.max(v,p)-y,$.kn(0,0,Math.max(0,v),Math.max(0,w+(m-y)))):$.kn(0,0,0,0)}; +Dca=function(a){if($.A(a.Aa))return a.Aa;if(null!=a.f){for(var b,c=[],d=0;dc.width&&(f+=h,h=e=0);Sw(m,e,f,c);e+=m.nb().yd()+k;h=Math.max(h,p.pd()+k)}break;case "vertical-expandable":for(h=f=e=0,k=a.g("itemsSpacing"),l=0;lc.height&&(e+=h,h=f=0),Sw(m,e,f,c), +f+=m.nb().pd()+k,h=Math.max(h,p.yd()+k)}if((c=$.pr(a,"title"))&&c.enabled()&&(c=c.g("orientation")||$.Wv(c),"top"!=c&&"bottom"!=c)){d=c=0;if(e=a.Ma.Qd)c=e.Kd,d=e.Hd;e=a.hb.ri();e.top+=d;e.left+=c}}a.Ha=b}; +Tw=function(a,b){var c=$.N(b.itemIndex);if((0,window.isNaN)(c))return null;var d=b.type;switch(d){case "mouseout":d="legenditemmouseout";break;case "mouseover":d="legenditemmouseover";break;case "mousemove":d="legenditemmousemove";break;case "mousedown":d="legenditemmousedown";break;case "mouseup":d="legenditemmouseup";break;case "click":d="legenditemclick";break;case "dblclick":d="legenditemdblclick";break;default:return null}c=a.g("inverted")?a.Sb.length-1-c:c;var e=null,f=window.NaN,h=a.Sb[c]; +if(h&&a.f)for(var k=0;kf?($.Da(a.f,c,~f),$.Da(a.b,b,~f)):(h=!(a.b[f]&b))?a.b[f]|=b:$.n(d)&&(a.b[f]=d);a.target.enabled()&&a.target.$().select(c)&&(a.target.ah()||"single"!=a.target.Rl()||(k?a.target.fl(b):$.n(d)&&!k&&$.cx(a,window.NaN)&&a.target.fl(d)),h?e=a.target.ik(b,e):$.n(d)&&(e=a.target.ik(d,e)))}return e}; +$.cx=function(a,b){if($.n(b)){if((0,window.isNaN)(b))return!$.ex(a,$.to)&&!(a.Dc&$.to);var c=$.fx(a,+b)}else c=a.Dc;return!(c&$.to)};gx=function(a,b,c,d){if(!a.target.$().select(c))return d;var e=$.Na(a.f,c);b!=$.bm&&(0>e?($.Da(a.f,c,~e),$.Da(a.b,b,~e),a.Dc==$.bm&&(d=a.target.ik(b,d)),$.cx(a,window.NaN)&&!a.target.ah()&&"single"==a.target.Rl()&&a.target.fl(b)):a.b[e]|=b);return d}; +$.ix=function(a,b){var c=$.so,d;if($.n(b)){if(!(b>=a.target.$().Ib())){var e=a.target.hq();if($.A(b))for($.Pa(b),d=b.length;d--;)e=gx(a,c,+b[d],e);else e=gx(a,c,+b,e);a.target.qm(e)}}else if(a.Dc&c)if(c==$.so){for(d=a.b.length;d--;)$.hx(a,c,d)&&($.Ca(a.b,d,1),$.Ca(a.f,d,1));a.Dc=$.bm}else c==$.to&&(a.b.length=0,a.f.length=0,a.Dc=$.bm);else{for(d=a.b.length;d--;)$.hx(a,c,d)&&($.Ca(a.b,d,1),$.Ca(a.f,d,1));a.Dc=c}};$.hx=function(a,b,c){return!(a.b[c]&=~b)}; +$.bx=function(a,b,c,d){var e=a.f[c];$.hx(a,b,c)?($.Ca(a.f,c,1),$.Ca(a.b,c,1),a.target.enabled()&&a.target.$().select(e)&&a.Dc==$.bm&&(d=a.target.ik($.bm,d))):a.target.enabled()&&a.target.$().select(e)&&a.Dc==$.bm&&(d=a.target.ik(a.b[c],d));return d};$.jx=function(a,b,c,d){if((0,window.isNaN)(c))return d;c=$.Na(a.f,c);0<=c&&(d=$.bx(a,b,c,d));return d};$.kx=function(a,b){for(var c=[],d=0,e=a.b.length;dd){t?r=l[t-1]:r=f;f=new $.Bx;var u=r.hc.replace(q,"");q=r.hc+(c?" ":"");f.text(u);f.style(a.f);p=r.width();u=new $.I(h.left,h.top,p-m,h.height);m=p+=+e;f.Za=u;f.eb=e;f.j=a.j;a.b.push(f);a.Za.width=Math.max(a.Za.width,u.width);a.Za.height+=u.height}(f=l[l.length-1])&&1<=l.length&&f!= +r&&(u=f.hc.replace(q,""),h=f.Za,l=new $.I(h.left,h.top,h.width-p,h.height),a.Za.width=Math.max(a.Za.width,l.width),a.Za.height+=l.height,f=new $.Bx,f.text(u),f.Za=l,f.style(a.f),f.j=a.j,a.b.push(f))}Nx(a,b)}; +Nx=function(a,b){var c,d=0;for(c=0;ch&&(d=a.g("from"),e=a.g("to"));f=b.transform(e,0);b=b.transform(d,1);e=Math.min(b,f);var k=Math.max(b,f);(0,window.isNaN)(e)||(0,window.isNaN)(k)||!(0<=k&&1>=e||a.i)||(a.i||(e=$.Za(e,0,1),k=$.Za(k,0,1)),b=a.ja(),d=a.Ip(),a.Lb()?(f=Math.floor(b.Sa()-b.height*k),e=Math.ceil(b.Sa()-b.height*e),h=b.sb(),k=b.ab(),c.moveTo(h,f).lineTo(k,f).lineTo(k,e).lineTo(h,e).close()):(f= +b.Sa(),h=b.Ub(),e=Math.floor(b.sb()+b.width*e),k=Math.ceil(b.sb()+b.width*k),c.moveTo(e,f).lineTo(e,h).lineTo(k,h).lineTo(k,f).close()),a.i||c.clip(d.yj(b)))}else $.fl(2)};$.Ey=function(a){a.D||(a.D=$.pk(),$.ju(a,a.D));return a.D};$.Gy=function(){$.Y.call(this);$.R(this.ua,[["stroke",0,1],["length",0,9],["position",0,9]]);this.path=$.pk();$.ju(this,this.path)}; +$.Hy=function(a){if(!a.Vo)switch(a.rh){case "top":a.Vo=a.r0;break;case "right":a.Vo=a.wS;break;case "bottom":a.Vo=a.qS;break;case "left":a.Vo=a.uS}return a.Vo}; +$.Iy=function(){$.V(this);$.Y.call(this);this.Fa($.nr.axis);this.$h=[];this.yk=[];this.Jd={};this.Jd.orientation="top";this.Ce=980;$.R(this.ua,[["width",this.Ce,9],["drawFirstLabel",this.Ce,9,0,function(){this.$d();this.fs()},this],["drawLastLabel",this.Ce,9,0,function(){this.$d();this.fs()},this],["staggerMode",this.Ce,9,0,this.$d,this],["overlapMode",this.Ce,9],["staggerMaxLines",0,0,0,function(){this.$d();this.fs();this.g("staggerMode")&&this.B(this.Ce,9)},this],["staggerLines",0,0,0,function(){this.$d(); +this.fs();this.g("staggerMode")&&this.B(this.Ce,9)},this],["orientation",this.Ce,9,0,this.fs,this],["stroke",this.Ce,9]]);this.ea(!1)};$.Jy=function(a,b){if($.n(b)){var c=a.g("orientation")!=b;a.Jd.orientation=b;c&&a.B(a.Ce)}}; +Ly=function(a,b){if(a.labels().enabled()||a.ob().enabled())if(a.g("staggerMode"))if(a.ma)var c=a.ma;else{var d=a.labels();if((c=a.scale())&&d.enabled()){a.VI=1;a.D=1;c=c.Ua().get();for(var e=c.length,f,h,k,l,m=0;m$.Fo(d)?a.qH:null,q=a.g("staggerMaxLines"),r=a.g("staggerLines"),t=a.g("drawFirstLabel"),u=a.g("drawLastLabel");d=[];for(m=0;mq?q:a.VI}else a.D=r;if((null!==r||null!==q&&a.VI>q)&&"no-overlap"==a.g("overlapMode")){for(f=0;fe&&(e=t);if(m&&!r)for(m=$.C(q)?q.ob:!q,c=k.vb().get(),l=0,b=m.length;lf&&(f=t);return a.u_(e,f,d)+h}; +Ny=function(a,b){var c=a.scale();return $.A(b)?(c.transform(b[0],0)+c.transform(b[1],1))/2:c.transform(b,.5)};Qca=function(a,b,c,d,e){var f=$.n(e)?e:a.nb();e=$.n(e)?e:a.line.rb();var h=c?a.Ua():a.vb(),k=c?a.labels():a.ob();c=a.g("stroke");c=$.ap(c);b=Ny(a,d[b]);d=k.g("position");h=$.Go(h,$.Fo(d));a=a.h1(f,b,c,h,e);return{value:{x:a.x,y:a.y}}}; +Ky=function(a,b,c){var d=!1;switch(a.g("orientation")){case "top":case "bottom":d=b.left>c[0]||b.ab()c[1]||b.Sa()c.start?1:a.startc.end?1:a.endc.start?a.sourceIndex>c.sourceIndex?c.end=a.start:(a.start=c.end,a.start>=a.end&&(a.enabled=!1)):a.startc.sourceIndex?(c.start=a.end,c.start>=c.end&&(c.enabled=!1)):a.end=c.start:a.sourceIndex>c.sourceIndex?(c.start=a.end,c.start>=c.end&&(c.enabled= +!1)):(a.end=c.start,a.start>=a.end&&(a.enabled=!1));return b})};$.$y=function(a){var b=new $.Zy;b.N(b.na);b.Oy(a);return b};$.az=function(){$.Y.call(this);this.Fa("defaultGridSettings");this.j=null;this.bL="horizontal";this.Ea=this.Vb=this.Y=null;this.D={};this.aa=null;$.R(this.ua,[["stroke",16],["fill",4],["drawFirstLine",64],["drawLastLine",64],["isMinor",80,9]])};bz=function(a,b){$.J(b,$.Es)||$.C(b)&&"range"==b.type?a.Ec($.Es):($.J(b,$.Bs)||$.C(b)||null==a.Ea)&&a.Ec($.Bs)}; +$.cz=function(a,b){var c=!a.f&&a.bL!=b;a.bL=b;c&&a.B(64)};dz=function(a,b,c){var d=b?a.aa:a.pa;if($.n(c)){var e=c&&$.E(c.Na)&&c.Na(),f=(e="stock-scatter-date-time"==e||"stock-ordinal-date-time"==e)?c==d?null:c:$.ct(d,c,null,15,null,a.vg,a);if(f||null===c&&d)c=d==f,f||$.dr(d,a.vg,a),d=f,b?a.aa=d:a.pa=d,f&&!e&&f.ea(c),c||a.B(20,9)}}; +$.ez=function(a,b){var c=a.g("fill");if($.E(c)){var d={index:b,grid:a,palette:a.$b()||a.Y.$b()};c=c.call(d)}d=b in a.D?a.D[b.toString()]:a.D[b.toString()]=a.lZ();d.fill(c);return d};fz=function(){$.az.call(this)};gz=function(){$.az.call(this)};iz=function(){$.qf.call(this);this.bc=$.hz;this.D=this.j=null};$.lz=function(a){a=$.oa(a);delete jz[a];$.Jc(jz)&&kz&&kz.stop()};mz=function(){kz||(kz=new fw(function(){Tca()},20));var a=kz;a.mq()||a.start()}; +Tca=function(){var a=(0,$.In)();$.Dc(jz,function(b){b.UF(a)});$.Jc(jz)||mz()};$.nz=function(a,b,c,d){iz.call(this);if(!$.A(a)||!$.A(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.b=a;this.f=b;this.duration=c;this.K=d;this.coords=[];this.Od=0};oz=function(a,b){$.E(a.K)&&(b=a.K(b));a.coords=Array(a.b.length);for(var c=0;cd.rO&&(d.rO=h),h=p;d.push(u?t:p);u&&(l++,t=l=p,w.push(u?t:p),u&&(l++,t=lk&&(k=~k-1);k=$.Za(k,0,d-1);l=$.Na(f,l,p);0>l&&(l=~l); +l=$.Za(l,0,d-1);h.inverted()&&(f=k,k=l,l=f)}else k=l=window.NaN;h=k;m=l}var q=a.xL[e];for(var r in q){p=q[r];d=a.hn[r];f=a.SG(d);var t=a.bb().Zw();var u="none"!=f,v="direct"==t,w="percent"==f;if(u){var x=[];for(b=k;b<=l;b++)x.push({Gw:0,tp:0,yw:0,Fw:0,pp:0,xw:0,VD:!1,GD:!1,Ms:!1,sE:{RA:window.NaN,KA:window.NaN,wM:!1,s0:!1}})}for(t=0;t=h&&b<=m&&(y.ku>B&&(y.ku=B),y.ju=h&&b<=m)for(D=0;DB&&(y.ku=B),y.jue+h||cf+k)return null;e=[];f=0;for(h=a.gb.length;f(a.prevValue-a.aa||1)*(b-a.aa||1)};Nz=function(a,b){return!!((Number(a)||0)&(b||255))}; +EA=function(a){$.U.call(this);this.Qa=a;this.b=null;$.R(this.ua,[["start",0,1],["point",0,1],["updatePoint",0,1],["finish",0,1],["needsZero",0,4],["needsWidth",0,4],["yValues",0,4]])};HA=function(a,b,c,d,e){if(a){var f=void 0;if(e&&(f=c.o("shapes"),!f))return;b=c?new FA(b,c,d||$.bm,f):new GA(b);a.call(b,b)}};GA=function(a){this.series=a;this.seriesState=a.Zj()}; +FA=function(a,b,c,d){GA.call(this,a);this.b=b;for(var e=a.ze(),f=0;fp.G[w]?m=p.D[w][p.G[w]]:p.D[w].push(m=v.wR());p.G[w]++;p.i[w].push(m);m=MA(p,q,r,t,u,m,!0);f[l]=m}a.Gb(a.X,f,b);return f}; +OA=function(a,b,c){for(var d in c){var e=a.f[d],f=c[d],h=e.fill(a.X,b),k=e.stroke(a.X,b);f.fill(h);f.stroke(k);e.Fb&&("none"==f.fill()&&"none"==f.stroke()?f.visible(!1):f.visible(!0));e.Fb||LA(a,h,k)}a.Gb(a.X,c,b)};LA=function(a,b,c){a=a.X.$();$.n(b)&&a.o("fill",b);$.n(c)&&a.o("stroke",c)};$.PA=function(a,b,c,d,e,f){$.JA.call(this,a,b,c,d,e,f)};$.QA=function(a,b,c,d,e,f){$.JA.call(this,a,b,c,d,e,f);this.j={}}; +RA=function(a,b,c,d,e){var f=void 0;if(d){var h=a.X.$();f=$.uo(c);var k=h.get(f);(h=k?k[d]:h.get($.cm(c,d)))?f=h:(k=a.X.jd(),h=a.X[f]()[d](),$.E(h)||k?h!=$.$p.themes.defaultTheme.chart.defaultSeriesSettings.base[f][d]||k?f=e?b.fill(a.X,c):b.stroke(a.X,c):(a={sourceColor:a.X.g("color")},f=h.call(a)):f=h)}return f}; +SA=function(a,b,c){c=c||a.f;var d=a.X.$(),e,f,h="",k;for(k in c){var l=a.f[k];var m=l.Xb;var p=RA(a,l,b,l.Wb,!0);m=RA(a,l,b,m);l.Fb||(p&&$.Zl(p)&&(e=p),m&&$.Zl(m)&&(f=m));h+=k+$.Ol(p)+$.Ol(m)}LA(a,e,f);d.o("shapeNames",c);return h};TA=function(a){$.U.call(this);this.Qa=a;this.ym="both";this.ba=null;this.i=this.j=void 0;this.K=null;this.b=this.f=void 0;this.G=this.aa=10;this.D=this.P="#1D8BD1"};UA=function(a){return $.J(a,$.dt)&&!$.J(a,$.ft)&&"none"==a.cn()}; +Qz=function(a){var b=a.KE(),c=a.LE(),d=a.ME(),e=a.GE(),f=a.HE();a=a.JE();e=$.n(f)||$.n(a)||$.ro(e)||!$.Ao(e);return $.n(c)||$.n(d)||$.ro(b)||!$.Ao(b)||e};$.VA=function(){lv.call(this);this.Oa={};$.R(this.ua,[["text",20,9]])}; +$.tx=function(a,b,c,d){function e(a){$.iy.call(this,a);a.I(4294967295)}function f(a){$.jy.call(this,a);a.I(4294967295)}$.Y.call(this);this.Ca=a;this.ff=b;this.Jd={};this.Jd.pointWidth="90%";this.Jd.isVertical=this.Ca.ya();this.Jd.minPointLength=0;this.$f=!1;this.dn={};this.HC=this.bA=null;this.qe=c;this.li=null;this.nC=0;this.bl=null;this.Qj=[];this.Wp=!1;this.uu=new EA(this);$.K(this.uu,this.Hia,this);a={};$.R(a,[["fill",3072,65,4294967295],["negativeFill",3072,65,4294967295],["risingFill",3072, +65,4294967295],["fallingFill",3072,65,4294967295],["stroke",3072,65,4294967295],["lowStroke",2048,65,4294967295],["highStroke",2048,65,4294967295],["lowFill",2048,65,4294967295],["highFill",2048,65,4294967295],["negativeStroke",3072,65,4294967295],["risingStroke",3072,65,4294967295],["fallingStroke",3072,65,4294967295],["medianStroke",2048,65,4294967295],["stemStroke",2048,65,4294967295],["whiskerStroke",2048,65,4294967295],["hatchFill",3072,65,4294967295],["negativeHatchFill",2048,65,4294967295], +["risingHatchFill",2048,65,4294967295],["fallingHatchFill",2048,65,4294967295],["highHatchFill",2048,65,4294967295],["lowHatchFill",2048,65,4294967295],["whiskerWidth",1024,1,256],["type",1024,65,8192],["size",1024,1,8192],["labels",0,0],["minLabels",0,0],["maxLabels",0,0],["markers",0,0],["outlierMarkers",0,0]]);this.ca=new $.cy(this,a,$.bm);this.ca.ra("labelsAfterInitCallback",$.iy);this.ca.ra("markersAfterInitCallback",$.jy);this.ca.ra("outlierMarkersAfterInitCallback",Nca);a={};$.R(a,[["fill", +0,0,4294967295],["negativeFill",0,0,4294967295],["risingFill",0,0,4294967295],["fallingFill",0,0,4294967295],["stroke",0,0,4294967295],["lowStroke",0,0,4294967295],["highStroke",0,0,4294967295],["lowFill",0,0,4294967295],["highFill",0,0,4294967295],["negativeStroke",0,0,4294967295],["risingStroke",0,0,4294967295],["fallingStroke",0,0,4294967295],["medianStroke",0,0,4294967295],["stemStroke",0,0,4294967295],["whiskerStroke",0,0,4294967295],["hatchFill",0,0,4294967295],["negativeHatchFill",0,0,4294967295], +["risingHatchFill",0,0,4294967295],["fallingHatchFill",0,0,4294967295],["highHatchFill",0,0,4294967295],["lowHatchFill",0,0,4294967295],["whiskerWidth",0,0,256],["type",0,0,8192],["size",0,0,8192],["labels",0,0],["minLabels",0,0],["maxLabels",0,0],["markers",0,0],["outlierMarkers",0,0]]);this.wa=new $.cy(this,a,$.so);this.wa.ra("labelsFactoryConstructor",$.ey);this.wa.ra("markersFactoryConstructor",$.hy);this.Da=new $.cy(this,a,$.to);this.Da.ra("labelsFactoryConstructor",$.ey);this.Da.ra("markersFactoryConstructor", +$.hy);this.wa.ra("labelsAfterInitCallback",e);this.wa.ra("markersAfterInitCallback",f);this.Da.ra("labelsAfterInitCallback",e);this.Da.ra("markersAfterInitCallback",f);$.R(this.ua,[["color",2048,65,4294967295],["xPointPosition",1024,1,4294967295],["pointWidth",1024,1,1024],["maxPointWidth",1024,1,1024],["minPointLength",1024,5,1024,this.dE],["connectMissingPoints",1024,1,16],["displayNegative",1024,5,2],["stepDirection",1024,1,131072],["isVertical",1024,5,4294967295]]);this.Cz(d,!0)}; +$.WA=function(a){var b=1E-5*a.Pq;b=a.ff.TL(a)+b;a.Xh=b};Oz=function(a){return a.check(128)&&a.check(2097152)};$.IA=function(a){return!!a.uu.g("needsZero")};$.XA=function(a,b){a.Jd.pointWidth=String(100*b)+"%"};$.YA=function(a,b){a.Jd.xPointPosition=b};$.ZA=function(a,b){a.Jd.type=b;a.ca.Db().AF=b;a.check(8192)&&a.B(1024)};$.$A=function(a){a.ke||(a.ke=new $.xw);return a.ke}; +$.bB=function(a,b,c,d){if(!a)return Xca;var e=$.oa(b)+"|"+a+"|"+c+(d?"|"+d:"");d=d||a;var f=aB[e];f||(aB[e]=f=function(e,f,l){l=$.$l(l);return l!=$.bm&&c&&(l=e.qc(a,l,f,b,!1,d),$.n(l))?l:e.qc(a,0,f,b,!1,d)});return f};Xca=function(){};cB=function(a,b,c,d,e,f){$.V(b);if(a.check(e)&&(!1!==b.enabled()||c||d)){if(b.O(a.$0()),a.J(f))return b.clear(),b.ja(a.ga),!0}else b.clear(),b.O(null);b.W();b.ea(!1);return!1}; +$.dB=function(a,b,c,d,e,f,h,k,l,m){var p;var q=k.la();if((0,window.isNaN)(q))return null;h&&((p=a.oH[q])||(p=a.oH[q]=[]));var r;b[0]&&(r=b[0].call(a.ca));var t,u,v,w,x,y,B;if(k.o("missing")||k.o("skipDrawing"))b=!1;else{l=$.$l(l);var G=e&&a.dt();c[0]&&(t=c[0].call(a.Ca.ca));var D=r;if(G)var L=(e=k.get("normal"))?e[d[0]]:k.get(d[0]);if(3c&&(c=~c,0b-a.od.data[c-1].data.x&&c--)),c):-1}return a.WF.find("x",b)}; +$.mB=function(a,b,c,d,e){var f=a.$();f.reset();for(var h=[];f.advance();){var k=void 0,l=a,m=f,p=b,q=c,r=d,t=e;if($.J(l.Hf,$.PA)&&(k=m.o(l.Hf.P)))a:{var u=void 0;var v=k,w=p;l=q;var x=r,y=t;for(u in v){var B=v[u];if($.J(B,$.hg)&&(B=B.rb(),B.left<=w+x&&w<=B.left+B.width&&B.top<=l+y&&l<=B.top+B.height)){u=!0;break a}}u=!1}else u=m.o(l.uh.yb+"X"),v=m.o(l.uh.yb),l.uh.yb==l.uh.Ab?u=p<=u&&u<=p+r&&q<=v&&v<=q+t:(w=m.o(l.uh.Ab+"X"),l=m.o(l.uh.Ab),u=$.bn([u,v,w,l],[p,q,p+r,q,p+r,q+t,p,q+t]));!u&&(k=m.o("marker"))&& +(u=k.Td().rb().lo(new $.I(p,q,r,t)));u&&h.push(f.la())}return h};nB=function(a,b){return $.n(b)?(a.aja=!!b,a):a.aja||!1};$.oB=function(a,b,c){if(!a.enabled())return a;$.A(b)?(c||a.he(),a.state.Dh($.to,b,c?void 0:$.so)):$.ea(b)&&a.state.Dh($.to,b,c?void 0:$.so);return a}; +$.qB=function(a){$.Y.call(this);this.Fa($.nr.scroller);this.Ia=!1;this.aB=this.sN=this.G=this.ba=this.P=this.b=this.f=this.xa=null;this.D=0;this.j=pB;this.ga=new $.I(0,0,0,0);this.i=new $.I(0,0,0,0);this.ma=this.da=this.Aa=null;this.Ha=0;this.Wa=this.eb=this.Ya=!1;this.Ta=this.aa=null;this.qb=!!a;$.R(this.ua,[["height",4,9],["minHeight",4,9],["maxHeight",4,9],["orientation",196,9],["inverted",16,1],["autoHide",256,9],["fill",16,1],["selectedFill",16,1],["outlineStroke",16,1],["allowRangeChange",0, +0]])};rB=function(a){return a.Lb()?"ew-resize":"ns-resize"};$.sB=function(a,b,c){b=$.Za(Math.round(b*pB),0,pB);c=$.Za(Math.round(c*pB),0,pB);if(b>c){var d=b;b=c;c=d}if(b!=a.D||c!=a.j)a.D=b,a.j=c,a.B(16,1)};tB=function(a){a.Ia||(a.xa.gc(a.f),a.xa.gc(a.b),a.Ia=!0)};uB=function(a){a.Ia&&a.K().g("autoHide")&&!a.Ha&&!a.Ya&&(a.xa.removeChild(a.f),a.xa.removeChild(a.b),a.Ia=!1)}; +vB=function(a,b,c){a=a.K();a.g("enabled")?c?(c=a.lb().g("fill"),a=a.lb().g("stroke")):(c=a.Pa().g("fill"),a=a.Pa().g("stroke")):(c=$.Xl,a="none");b.fill(c);b.stroke(a)};wB=function(a,b,c,d,e){return a.dispatchEvent(a.U2(c,($.n(d)?d:a.D)/pB,($.n(e)?e:a.j)/pB,b))}; +yB=function(a,b,c){c=xB(a,b,c);var d=a.ga;switch(a.g("orientation")){case "right":case "left":d=(d.top+d.height-c)/d.height;break;default:d=(c-d.left)/d.width}a.g("inverted")&&(d=1-d);if((c=a.g("allowRangeChange"))&&b==a.f)c=d,d=a.j/pB,b="thumb-drag";else if(c&&b==a.b)c=a.D/pB,b="thumb-drag";else{var e=(a.j-a.D)/pB/2;c=d-e;d+=e;b=!0===b?"selected-range-drag":"background-click"}c=$.Za(Math.round(c*pB),0,pB);d=$.Za(Math.round(d*pB),0,pB);c==d&&(d+=dd&&(e=a.f,a.f=a.b,a.b=e,e=a.Aa,a.Aa=a.da, +a.da=e,e=c,c=d,d=e);c==a.D&&d==a.j||!wB(a,b,"scrollerchange",c,d)||(a.D=c,a.j=d,a.B(16,1))};xB=function(a,b,c){var d=a.ga,e=a.Lb();a=$.da(b)||!a.g("allowRangeChange")?(a.j-a.D)/pB*(e?d.width:d.height)/2:0;return e?$.Za(c,d.left+a,d.left+d.width-a):$.Za(c,d.top+a,d.top+d.height-a)};zB=function(a,b){var c=(c=a.g("allowRangeChange"))&&b==a.f?a.D:c&&b==a.b?a.j:(a.D+a.j)/2;c/=pB;a.g("inverted")&&(c=1-c);var d=a.ga;return a.Lb()?d.left+d.width*c:d.top+d.height*(1-c)}; +AB=function(a,b,c){$.ag.call(this,b.ia());this.i=a;this.b=c?b:null;this.Lj=void 0;this.ks=(0,$.pa)(function(){this.Lj=void 0;yB(this.i,this.b||!0,this.ba)},this);$.bg(this);this.ta("end",this.y$)};BB=function(a){$.U.call(this);this.Fa($.nr.thumbs);this.i=a;$.R(this.ua,[["enabled",80,1],["autoHide",16,1]]);a={};$.R(a,[["fill",16,1],["stroke",16,1]]);this.ca=new $.cy(this,a,$.bm);$.W(this,"normal",this.ca);this.wa=new $.cy(this,a,$.so);$.W(this,"hovered",this.wa)};CB=function(){$.qB.call(this)}; +$.DB=function(){$.qB.call(this,!0);this.Ye="after-axes";$.oq(this.ua,"position",20,9)};FB=function(a,b){this.D=b;this.sa=a;this.i=0;this.b=1;this.j=!0;this.f=null}; +GB=function(a){var b=a.sa;Iz(b);b.J(65536)&&(b.Mq().f||b.Nq().f)&&b.pb();if(a.f)if((b=a.f.scale)||(b=a.sa,b=a.D?b.Xa():b.bb()),a.f.count&&$.J(b,$.It))b=a.f.count/b.values().length,a.f.dea?a.gB(1-b,1):a.gB(0,b);else if($.n(a.f.start)&&$.n(a.f.end)&&b){var c=Rs(b,b.transform(a.f.start,0)),d=Rs(b,b.transform(a.f.end,1));c>d&&(c=Rs(b,b.transform(a.f.end,0)),d=Rs(b,b.transform(a.f.start,1)));a.gB(c,d)}else a.f=null}; +$.HB=function(a){$.sA.call(this,$.n(a)?a:!0);this.Fa("cartesianBase");this.Sc=new FB(this,!0);this.Tf=new FB(this,!1);$.R(this.ua,[["zAngle",4,9],["zAspect",4,9],["zDistribution",131076,9],["zPadding",4,9]])};IB=function(a,b){var c="before-axes"==a.g("position");a.padding(0);a.ja(b);var d=a.Lb(),e=window.NaN;c?e=d?b.height-a.xd().height:b.width-a.xd().width:b=a.xd();return{J_:b,H4:e}}; +JB=function(a,b,c,d){if("before-axes"==c.g("position"))switch(c.g("orientation")){case "top":c.padding().top(b[0]+(a.eb||0));c.padding().bottom(0);b[0]+=d;break;case "bottom":c.padding().top(0);c.padding().bottom(b[2]+(a.Ha||0));b[2]+=d;break;case "left":c.padding().left(b[3]+(a.Ia||0));c.padding().right(0);b[3]+=d;break;case "right":c.padding().left(0),c.padding().right(b[1]+(a.Ya||0)),b[1]+=d}c.Lb()?(c.padding().left(b[3]),c.padding().right(b[1])):(c.padding().top(b[0]),c.padding().bottom(b[2])); +return b};$.KB=function(a,b){this.f={};this.b=[];this.i=0;var c=arguments.length;if(1=a.b||e>=a.b&&u<=a.b;v?(v=iC(a,d,e,m,p,t,u),l=v.tO,a.f("c",l[2],l[3],l[4],l[5],"bc",l[4],a.i), +jC(a,v),gC(a),a.f("bs",l[4],a.i,l[4],l[5],"c",l[6],l[7],l[8],l[9],"c",q,r,f,h),k.push(l[0],l[1],l[2],l[3],l[4],l[5]),k.push(l[4],l[5],l[6],l[7],l[8],l[9]),k.push(t,u,q,r,f,h)):(v=iC(a,t,u,q,r,f,h),l=v.tO,a.f("c",m,p,t,u,"c",l[2],l[3],l[4],l[5],"bc",l[4],a.i),jC(a,v),gC(a),a.f("bs",l[4],a.i,l[4],l[5],"c",l[6],l[7],l[8],l[9]),k.push(d,e,m,p,t,u),k.push(l[0],l[1],l[2],l[3],l[4],l[5]),k.push(l[4],l[5],l[6],l[7],l[8],l[9]))}else a.f("c",m,p,t,u,"c",q,r,f,h),k.push(d,e,m,p,t,u,t,u,q,r,f,h);a.ba=(b-f)*a.Ia; +a.da[0]=a.j[0]*a.ba;a.da[1]=a.j[1]*a.ba;d=k;a.ma=a.D;a.Aa=a.G;a.D=b;a.G=c;break;case 2:if(a.D==b&&a.G==c)break;f=a.ma;h=a.Aa;d=a.D;k=a.G;hC(a,f,h,d,k,b,c);e=[];p=(d-f)*a.Ia;m=d-a.j[0]*p;p=k-a.j[1]*p;a.P?(f=iC(a,f,h,m,p,d,k),h=f.tO,a.f("bs",h[0],a.i,h[0],h[1],"c",h[2],h[3],h[4],h[5],"bc",h[4],a.i),jC(a,f),gC(a),a.f("bs",h[4],a.i,h[4],h[5],"c",h[6],h[7],h[8],h[9]),e.push(h[0],h[1],h[2],h[3],h[4],h[5]),e.push(h[4],h[5],h[6],h[7],h[8],h[9])):(a.f("bs",f,a.i,f,h,"c",m,p,d,k),e.push(f,h,m,p,d,k));a.ba= +(b-d)*a.Ia;a.da[0]=a.j[0]*a.ba;a.da[1]=a.j[1]*a.ba;d=e;a.ma=a.D;a.Aa=a.G;a.D=b;a.G=c;a.bc=3;break;case 1:if(a.ma==b&&a.Aa==c)break;a.D=b;a.G=c;a.bc=2;break;case 0:a.ma=b,a.Aa=c,a.bc=1}return d}; +lC=function(a){var b=null;switch(a.bc){case 3:var c=a.ma,d=a.Aa,e=a.D,f=a.G;b=[];var h=c+a.da[0];var k=d+a.da[1];a.P?(c=iC(a,c,d,h,k,e,f),d=c.tO,a.f("c",d[2],d[3],d[4],d[5],"bc",d[4],a.i),jC(a,c),gC(a),a.f("bs",d[4],a.i,d[4],d[5],"c",d[6],d[7],d[8],d[9],"bc",d[8],a.i),b.push(d[0],d[1],d[2],d[3],d[4],d[5]),b.push(d[4],d[5],d[6],d[7],d[8],d[9])):(a.f("c",h,k,e,f,"bc",e,a.i),b.push(c,d,h,k,e,f));if(a.Qh.length){for(c=0;ca.Ia?-1:1,a.j[1]=0):nC(a.j,a.Wa[0],a.Wa[1],a.Ya[0],a.Ya[1])}; +iC=function(a,b,c,d,e,f,h){var k=0,l=0,m=0,p=0,q=0,r=0,t={};if($.A(a.b)){var u=[];var v=!1;for(var w=a.b.length-1;0=sa&&(sa=qn(qn(P,x,sa),qn(x,y,sa),sa),B.x==G.x?D.y<=sa.y&&sa.y<=L.y&&w.push(sa):B.y==G.y?D.x<=sa.x&&sa.x<=L.x&&w.push(sa):sa.x>=D.x&&sa.y>=D.y&&sa.x<=L.x&&sa.y<=L.y&&w.push(sa));G=(P=w[0])?fn(b,c,d,e,f,h,P.x,P.y):.5}D=1-G;x=b*D+d*G;y=c*D+e*G;B=d*D+f*G;G=e*D+h*G;P?(d=P.x,e=P.y):e=d=window.NaN;t.tO=[b,c,x,y,d,e,B,G,f,h];$.A(a.b)&&(D=1-v,x=k*D+m*v,y=l*D+p*v,P?(d=P.x,e=P.y):e=d=window.NaN,u.push(d,e,m*D+q*v,p*D+r*v,q,r),t.Qca=u,t.Qh||(t.Qh=[]),t.Qh.push(k,l,x,y, +d,e));return t};jC=function(a,b){var c=b.Qca,d=b.Qh;if(c)for(var e=c.length-1;0>>0);aaa=0;$.In=Date.now||function(){return+new Date};var ik,vk=null;$.H(ta,Error);ta.prototype.name="CustomError";var pe;var Iw;$.za=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if($.z(a))return $.z(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;cc&&(c=Math.max(0,a.length+c));if($.z(a))return $.z(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};$.Ne=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=$.z(a)?a.split(""):a,f=0;f>>0).toString(16);$.bc.prototype.b="ac_uid_"+(1E9*Math.random()>>>0);var iaa,jaa,kaa,laa,maa,naa,haa,rc,qc,oaa;$.vc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};iaa=/&/g;jaa=//g;laa=/"/g;maa=/'/g;naa=/\x00/g;haa=/[\x00&<>"']/;rc={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"};qc={"'":"\\'"};oaa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Bc;a:{var AD=$.fa.navigator;if(AD){var BD=AD.userAgent;if(BD){Bc=BD;break a}}Bc=""};var Rc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Yc[" "]=$.ia;var Kca,hda,ida,jda,kda;$.wf=$.Cc("Opera");$.hd=$.Uc();$.Bp=$.Cc("Edge");$.gda=$.Bp||$.hd;$.fd=$.Cc("Gecko")&&!(-1!=Bc.toLowerCase().indexOf("webkit")&&!$.Cc("Edge"))&&!($.Cc("Trident")||$.Cc("MSIE"))&&!$.Cc("Edge");$.vd=-1!=Bc.toLowerCase().indexOf("webkit")&&!$.Cc("Edge");$.wd=$.Cc("Macintosh");$.CC=$.Cc("Windows");Kca=$.Cc("Linux")||$.Cc("CrOS");hda=$.Cc("Android");ida=Wc();jda=$.Cc("iPad");kda=$.Cc("iPod");$.lda=Xc(); +a:{var CD="",DD=function(){var a=Bc;if($.fd)return/rv:([^\);]+)(\)|;)/.exec(a);if($.Bp)return/Edge\/([\d\.]+)/.exec(a);if($.hd)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if($.vd)return/WebKit\/(\S+)/.exec(a);if($.wf)return/(?:Version)[ \/]?(\S+)/.exec(a)}();DD&&(CD=DD?DD[1]:"");if($.hd){var ED=$c();if(null!=ED&&ED>(0,window.parseFloat)(CD)){$.ad=String(ED);break a}}$.ad=CD}var qaa={},FD;var GD=$.fa.document;FD=GD&&$.hd?$c()||("CSS1Compat"==GD.compatMode?(0,window.parseInt)($.ad,10):5):void 0; +var cd=FD;var saa={0:"Can't find an error message that corresponds to the specified error code",1:"Requested stage type is not supported",2:"Container should be defined to render stage",3:"Stage should have a DOM element",4:"Unable to set the parent component",5:"Trying to perform an operation with the disposed element",6:"Synchronous rendering didn't clean up all dirty states",7:"Can't add an element constructed by another Stage",8:"Wrong arguments passed to swapChildren",9:"Path must start with moveTo command", +10:"Method must be implemented",11:"Missing required parameter",12:"Parameter type mismatch",13:"Required parameter is null or undefined",14:"Invalid number of parameters",15:"Sorry, this feature in not supported in VML oriented browsers"};var uaa=!$.hd||$.dd(9),Pd=!$.hd||$.dd(9),mda=$.hd&&!$.bd("9"),zaa=function(){if(!$.fa.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});$.fa.addEventListener("test",$.ia,b);$.fa.removeEventListener("test",$.ia,b);return a}();var kd=0,ld={};$.md.prototype.nd=!1;$.md.prototype.kd=function(){if(!this.nd&&(this.nd=!0,this.R(),0!=kd)){var a=$.oa(this);if(0!=kd&&this.Ru&&0=a.keyCode)a.keyCode=-1}catch(b){}};$.xd.prototype.P0=ba(0);var zd="closure_listenable_"+(1E6*Math.random()|0),waa=0;Cd.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.b[f];a||(a=this.b[f]=[],this.f++);var h=Ed(a,b,d,e);-1>>0);$.F("acgraph.events.listen",$.Id);$.F("acgraph.events.listenOnce",Hd);$.F("acgraph.events.unlisten",$.Qd);$.F("acgraph.events.unlistenByKey",Rd);$.F("acgraph.events.removeAll",$.Sd);var Baa=!$.hd||$.dd(9),Caa=!$.fd&&!$.hd||$.hd&&$.dd(9)||$.fd&&$.bd("1.9.1"),HD=$.hd&&!$.bd("9"),Daa=$.hd||$.wf||$.vd;$.ae.prototype.qy=!0;$.ae.prototype.Tt=function(){return this.b};$.ae.prototype.toString=function(){return"Const{"+this.b+"}"};$.$d={};$.be("");$.fe.prototype.qy=!0;$.fe.prototype.Tt=function(){return this.b};$.fe.prototype.tU=!0;$.fe.prototype.ay=ba(2);$.ce={};$.ge("about:blank");$.ie.prototype.qy=!0;$.he={};$.ie.prototype.Tt=function(){return this.b};$.nda=$.je("");$.ID=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g");$.oda=RegExp("\\b(hsl|hsla|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?)\\([-0-9a-z.%, ]+\\)","g");$.le.prototype.tU=!0;$.le.prototype.ay=ba(1);$.le.prototype.qy=!0;$.le.prototype.Tt=function(){return this.b};$.ke={};$.me("",0);$.me("",0);$.me("
",0);var we={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},Eaa={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},mf={IMG:" ",BR:"\n"};$.g=ne.prototype;$.g.Va=function(a){return $.ue(this.b,a)};$.g.getElementsByTagName=function(a,b){return(b||this.b).getElementsByTagName(String(a))}; +$.g.sc=function(a,b,c){return Je(this.b,arguments)};$.g.createElement=function(a){return $.Se(this.b,a)};$.g.appendChild=$.Te;$.g.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; +$.g.Wi=$.Ve;$.g.Kfa=$.We;$.g.Ml=$.Ze;$.g.d1=$.$e;$.g.vH=$.af;$.H(nf,$.md);var JD=[];$.g=nf.prototype;$.g.ta=function(a,b,c,d){$.A(b)||(b&&(JD[0]=b.toString()),b=JD);for(var e=0;ethis.P)if(this.dispatchEvent(new dg("start",this,a.clientX,a.clientY,a)))this.cp=!0;else{this.nd||this.Ux(a);return}}c=cg(this,b,c);b=c.x;c=c.y;this.cp&&this.dispatchEvent(new dg("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(eg(this,a,b,c),a.preventDefault())}}; +$.g.Pha=function(a){var b=cg(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;eg(this,a,b.x,b.y)};$.g.CA=function(a){var b=this.f,c=(0,window.isNaN)(b.left)?null:b.left;b=(0,window.isNaN)(b.width)?0:b.width;return Math.min(null!=c?c+b:window.Infinity,Math.max(null!=c?c:-window.Infinity,a))};$.g.nw=function(a){var b=this.f,c=(0,window.isNaN)(b.top)?null:b.top;b=(0,window.isNaN)(b.height)?0:b.height;return Math.min(null!=c?c+b:window.Infinity,Math.max(null!=c?c:-window.Infinity,a))}; +$.g.Tq=function(){this.deltaX=this.target.offsetLeft;this.deltaY=this.target.offsetTop};$.g.ds=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};$.H(dg,td);$.H(fg,$.ag);$.g=fg.prototype;$.g.Fia=function(){return this.i.dispatchEvent("earlycancel")};$.g.$N=function(a){return this.i.dispatchEvent(new dg(a.type,this,a.clientX,a.clientY,a.gC,a.left,a.top,a.K))};$.g.VW=function(a){this.f=a||new $.I(window.NaN,window.NaN,window.NaN,window.NaN)};$.g.Tq=function(){this.deltaX=this.i.N0();this.deltaY=this.i.O0()}; +$.g.CA=function(){this.b[0]=this.deltaX;this.b[1]=this.deltaY;if(!(0,window.isNaN)(this.f.left)||!(0,window.isNaN)(this.f.top)){var a=this.i.parent().Eg();a&&mg(this.i.parent()).transform(this.b,0,this.b,0,1);var b=this.f,c=(0,window.isNaN)(b.left)?null:b.left,d=(0,window.isNaN)(b.width)?0:b.width,e=(0,window.isNaN)(b.top)?null:b.top;b=(0,window.isNaN)(b.height)?0:b.height;d-=this.i.yd();b-=this.i.pd();b=null!=e?e+b:window.Infinity;e=null!=e?e:-window.Infinity;this.b[0]=Math.min(null!=c?c+d:window.Infinity, +Math.max(null!=c?c:-window.Infinity,this.b[0]));this.b[1]=Math.min(b,Math.max(e,this.b[1]));a&&a.transform(this.b,0,this.b,0,1)}return this.b[0]};$.g.nw=function(){return this.b[1]};$.g.ds=function(a,b){var c=mg(this.i.parent());if(c){var d=[a,b];c.transform(d,0,d,0,1);a=d[0];b=d[1]}this.i.setPosition(a,b)};$.H($.hg,$.qf);var gg=4294967295;$.g=$.hg.prototype;$.g.dG=!1;$.g.AC=!1;$.g.bx=null;$.g.dx=null;$.g.pv=null;$.g.qv=null;$.g.hw=!1;$.g.xC=null;$.g.ND=null;$.g.Sd=null;$.g.Y=null;$.g.SA=null;$.g.cj=!0;$.g.li=null;$.g.lL=!1;$.g.Qd=null;$.g.vG=null;$.g.dY=0;$.g.al=506631;$.g.zC=0;$.g.id=function(a){if($.n(a))return a=a||"",this.fe!=a&&(this.fe=a,this.Ob(2048)),this;$.n(this.fe)||this.id(cc($.bc.Gd(),this));return this.fe};$.g.Ja=function(){var a=this.parent();return a?a.Ja():null};$.g.ia=function(){return this.Sd}; +$.g.parent=function(a){if($.n(a)){if(a){if(a!=this.Y){var b=this.Ja();b=b&&b!=a.Ja();a.gc(this);b&&this.TN()}}else this.remove();return this}return this.Y};$.g.TN=function(){var a=this.clip();a&&a.id(null);this.Ob(536)};$.g.xM=function(){return!!this.Y};$.g.remove=function(){this.Y&&this.Y.removeChild(this);return this};$.g.title=function(a){return $.n(a)?(this.dx!=a&&(this.dx=a,this.Ob(65536)),this):this.dx};$.g.kS=function(a){return $.n(a)?(this.qv!=a&&(this.qv=a,this.Ob(131072)),this):this.qv}; +$.g.Bd=function(a,b){return $.n(b)?(this.dC[a]!==b&&(this.dC[a]=b,this.Ob(262144)),this):a in this.dC?this.dC[a]:$.kg().getAttribute(this.Sd,a)};$.g.cursor=function(a){return $.n(a)?(this.xC=a,this.TF(),this):this.xC};$.g.TF=function(){this.Ob(4096)};$.g.qr=function(){return!!this.zC};$.g.Mf=function(a){return!!(this.zC&a)};$.g.suspend=function(){this.RU=!0};$.g.resume=function(){this.RU=!1;this.Ob(this.UO);this.UO=0}; +$.g.Ob=function(a){if(a&=this.al)this.RU?this.UO|=a:(this.zC|=a,this.Y&&this.Y.Ob(64),a=this.Ja(),!a||a.tf()||a.QM()||this.QM()||this.Pd())};$.g.Yk=function(a){this.Y&&this.Y==a||(this.SA?this.SA==a&&(this.SA=null):this.SA=this.Y,this.Y=a,this.ib(a));return this};$.g.fv=$.ia;$.g.Fr=function(){this.FU=this.vG=null;this.$d();this.Ob(4);lg(this)};$.g.Jy=function(){this.vG=null;this.$d();$.kg().jI()&&this.Ob(256);lg(this)};$.g.Eg=function(){if(!this.vG){var a=this.Y?this.Y.Eg():null;this.vG=wb(a,this.Qd)}return this.vG}; +$.g.rotate=function(a,b,c){this.fv();a=$.Ib($.bb(a),b||0,c||0);this.Qd?$.Gb(this.Qd,a):this.Qd=a;this.Fr();return this};$.g.vu=function(a,b){var c=Jb(this.rb(),b||"center");return this.rotate(a,c[0],c[1])};$.g.mE=function(a,b,c){return this.rotate(a-this.YC(),b,c)};$.g.wO=function(a,b){return this.vu(a-this.YC(),b)};$.g.translate=function(a,b){this.fv();this.Qd?this.Qd.translate(a,b):this.Qd=(new $.Cb).setTransform(1,0,0,1,a,b);this.Fr();return this}; +$.g.setPosition=function(a,b){var c=[a,b,this.Mh(),this.vs()];this.Qd&&$.Hb(this.Qd).transform(c,0,c,0,2);return this.translate(c[0]-c[2],c[1]-c[3])};$.g.fja=function(a,b){this.fv();if(this.Qd){var c=this.Qd.Kd,d=this.Qd.Hd;if(a==c&&b==d)return this;$.Eb(this.Qd,a-c,b-d)}else this.Qd=(new $.Cb).setTransform(1,0,0,1,a,b);this.Fr();return this};$.g.scale=function(a,b,c,d){this.fv();this.Qd||(this.Qd=new $.Cb);$.Db(this.Qd,a,b);$.Eb(this.Qd,(c||0)*(1-a),(d||0)*(1-b));this.Fr();return this}; +$.g.mO=function(a,b,c){c=Jb(this.rb(),c||"center");return this.scale(a,b,c[0],c[1])};$.g.uF=function(a,b,c,d,e,f){this.fv();this.Qd?$.vb(this.Qd,new $.Cb(a,b,c,d,e,f)):this.Qd=new $.Cb(a,b,c,d,e,f);this.Fr();return this};$.g.lc=function(a,b,c,d,e,f){this.fv();this.Qd?this.Qd.setTransform(a,b,c,d,e,f):this.Qd=new $.Cb(a,b,c,d,e,f);this.Fr();return this};$.g.YC=function(){return $.Bb(this.Qd)}; +$.g.bp=function(){return this.Qd?[this.Qd.md,this.Qd.Se,this.Qd.bf,this.Qd.Je,this.Qd.Kd,this.Qd.Hd]:[1,0,0,1,0,0]};$.g.sc=function(a){var b=this.Ja(),c;if(c=b)c=ND,c=c==ND||2==c||3==c?0f;p+=m)switch((Math.floor(p/90)+4)%4){case 0:h.push(a+c);break;case 1:k.push(b+d);break;case 2:h.push(a-c);break;case 3:k.push(b-d)}l.left=Math.min.apply(null,h);l.width=Math.max.apply(null,h)-l.left;l.top=Math.min.apply(null,k);l.height=Math.max.apply(null,k)-l.top;$.qb(this.rect,l)};TD=VD; +$.qg.prototype.Ng=function(){var a=0;if(this.Oj())return a;var b=[];this.XS(function(c,d){if(1!=c){var e=$.Ja(b,b.length-2);if(4==c){var f=6;d=$.tb(e[0]-$.db(d[2],d[0]),e[1]-$.eb(d[2],d[1]),d[0],d[1],d[2],d[3])}else 2==c?f=2:3==c&&(f=6);for(var h=0,k=d.length-(f-1);h=q;q++){m=q/100;var u={x:0,y:0};if(0===m)p.push(t[0]);else if(1===m)p.push(t[r]); +else{var v=t,w=1-m;if(1===r)m={x:w*v[0].x+m*v[1].x,y:w*v[0].y+m*v[1].y},p.push(m);else if(4>r){var x=w*w,y=m*m,B=0;if(2===r){v=[v[0],v[1],v[2],u];var G=x;var D=w*m*2;var L=y}else 3===r&&(G=x*w,D=x*m*3,L=w*y*3,B=m*y);m={x:G*v[0].x+D*v[1].x+L*v[2].x+B*v[3].x,y:G*v[0].y+D*v[1].y+L*v[2].y+B*v[3].y};p.push(m)}else{for(v=JSON.parse(JSON.stringify(t));1d.length?d=c=f=e=(0,window.parseFloat)(d[0]):(e=(0,window.parseFloat)(d[0]),f=(0,window.parseFloat)(d[1]),c=(0,window.parseFloat)(d[2]),d=(0,window.parseFloat)(d[3]));this.P[0]=e?e:0;this.K[0]=e?a:void 0;this.P[1]=f?f:0;this.K[1]=f?a:void 0;this.P[2]=c?c:0;this.K[2]=c?a:void 0;this.P[3]=d?d:0;this.K[3]=d?a:void 0};$.g.round=function(a,b,c,d){$.Ca(arguments,0,0,"round");this.QW.apply(this,arguments);yg(this);return this}; +$.g.Ria=function(a,b,c,d){$.Ca(arguments,0,0,"round-inner");this.QW.apply(this,arguments);yg(this);return this};$.g.Sca=function(a,b,c,d){$.Ca(arguments,0,0,"cut");this.QW.apply(this,arguments);yg(this);return this};$.g.me=function(a){zg.u.me.call(this,a);this.zo(a.x).Ao(a.y).yo(a.width).xo(a.height);a.cornerTypes&&(this.K=Wb(a.cornerTypes,4),a=Wb(a.cornerSizes,4),(0,$.Ne)(a,function(a,c,d){d[c]=(0,window.parseFloat)(a)}),this.P=a,yg(this))}; +$.g.F=function(){var a=zg.u.F.call(this);a.type="rect";a.x=this.b.left;a.y=this.b.top;a.width=this.b.width;a.height=this.b.height;a.cornerTypes=this.K.join(" ");a.cornerSizes=this.P.join(" ");return a};$.g.R=function(){this.b=this.K=this.P=null;this.$d();zg.u.R.call(this)};var XD=zg.prototype;$.F("acgraph.vector.Rect",zg);XD.setX=XD.zo;XD.setY=XD.Ao;XD.setWidth=XD.yo;XD.setHeight=XD.xo;XD.setBounds=XD.Gf;XD.cut=XD.Sca;XD.round=XD.round;XD.roundInner=XD.Ria;$.H($.Ag,$.md);$.Ag.prototype.j=function(a){return $.n(a)?(this.f=a,this.i&&(a=this.f,a.tf()?a.Gx.push(this):this.Pd()),this):this.f};var YD={rect:zg,circle:$.pg,ellipse:og,path:$.xg};$.g=$.Ag.prototype; +$.g.shape=function(a,b,c,d){if(arguments.length){if($.J(a,$.ng))if(this.b){var e=!1;for(h in YD){var f=YD[h];if($.J(this.b,f)&&$.J(a,f)){e=!0;break}}e?this.b.me(a.F()):(this.b.parent(null),this.b=a,this.b.parent(this))}else this.b=a,this.b.parent(this);else{if($.J(a,$.I)){e=a.left;var h=a.top;f=a.width;var k=a.height}else $.A(a)?(e=null!=a[0]?a[0]:0,h=null!=a[1]?a[1]:0,f=null!=a[2]?a[2]:0,k=null!=a[3]?a[3]:0):$.C(a)?(e=null!=a.left?a.left:0,h=null!=a.top?a.top:0,f=null!=a.width?a.width:0,k=null!= +a.height?a.height:0):(e=null!=a?a:0,h=null!=b?b:0,f=null!=c?c:0,k=null!=d?d:0);this.b?$.J(this.b,zg)?this.b.zo(e).Ao(h).yo(f).xo(k):(this.b.parent(null),this.b=$.lk(e,h,f,k),this.b.parent(this)):(this.b=$.lk(e,h,f,k),this.b.parent(this))}return this}return this.b};$.g.qr=function(){return this.i};$.g.id=function(a){return $.n(a)?(this.fe=a,this):this.fe};$.g.Pd=function(){this.i=!1;if(this.fe){$.kg();var a=this.shape();if(a.ia())this.shape().Pd();else{var b=bk(this.Ja().pn,this);a.Pd();a=a.ia();b.appendChild(a)}}}; +$.g.F=function(){return this.b.F()};$.g.me=function(a){var b=YD[a.type];b&&(b=new b,b.me(a),this.shape(b))};$.g.gc=function(a){a.remove();a.Yk(this);Dg(this);jg(a,!0);return this};$.g.removeChild=function(a){a.Yk(null);var b=a.ia();b&&$.Xe(b);Dg(this);jg(a,!1);return a};$.g.Eg=function(){return null};$.g.oI=function(){};$.g.Ja=function(){return this.j()};$.g.Ob=function(){Dg(this)};$.g.kd=function(){$.Ag.u.kd.call(this)}; +$.g.R=function(){this.f&&$.Fa(this.f.Gx,this);$.kg().j0(this);this.b.kd();delete this.f;delete this.fe;delete this.elements;delete this.i;delete this.b;$.Ag.u.R.call(this)};var ZD=$.Ag.prototype;ZD.shape=ZD.shape;ZD.dispose=ZD.kd;$.H($.Eg,$.hg);$.g=$.Eg.prototype;$.g.Om=function(){return"layer"};$.g.al=$.hg.prototype.al|224;$.g.TN=function(){for(var a=0;aa||a>=this.ac()||0>b||b>=this.ac())throw $.jd(8);if(a!=b){var c=this.children[a];this.children[a]=this.children[b];this.children[b]=c;this.Ob(128)}return this};$.g.vM=function(a){return!!a&&$.Aa(this.children,a)};$.g.ac=function(){return this.children.length};$.g.Kj=function(a,b){$.n(b)||(b=this);(0,$.Ne)(this.children,a,b);return this};$.g.Ad=function(){var a=$.nk();a.parent(this);return a};$.g.iP=function(){var a=$.tk();a.parent(this);return a}; +$.g.text=function(a,b,c,d){a=$.rk(a,b);d&&a.style(d);c&&a.text(c);a.parent(this);return a};$.g.CM=function(a,b,c,d){a=$.rk(a,b);d&&a.style(d);c&&a.htmlText(c);a.parent(this);return a};$.g.rect=function(a,b,c,d){a=$.lk(a,b,c,d);a.parent(this);return a};$.g.qk=function(a,b,c,d,e){a=qk(a,b,c,d,e);a.parent(this);return a};$.g.gO=function(a,b){$.Da(arguments,this.path(),0);return xi.apply(this,arguments).parent(this)};$.g.fO=function(a,b){$.Da(arguments,this.path(),0);return yi.apply(this,arguments).parent(this)}; +$.g.gP=function(a,b){$.Da(arguments,this.path(),0);return wi.apply(this,arguments).parent(this)};$.g.kn=function(a,b,c){a=$.mk(a,b,c);a.parent(this);return a};$.g.ellipse=function(a,b,c,d){a=$.ok(a,b,c,d);a.parent(this);return a};$.g.path=function(){return $.pk().parent(this)};$.g.JO=function(a,b,c,d,e,f,h){return Zh(this.path(),a,b,c,d,e,f,h).parent(this)};$.g.LO=function(a,b,c){return $h(this.path(),a,b,c).parent(this)};$.g.MO=function(a,b,c){return ai(this.path(),a,b,c).parent(this)}; +$.g.NO=function(a,b,c){return bi(this.path(),a,b,c).parent(this)};$.g.OO=function(a,b,c){return ci(this.path(),a,b,c).parent(this)};$.g.KO=function(a,b,c){return di(this.path(),a,b,c).parent(this)};$.g.fP=function(a,b,c){return ki(this.path(),a,b,c).parent(this)};$.g.cP=function(a,b,c){return li(this.path(),a,b,c).parent(this)};$.g.eP=function(a,b,c){return mi(this.path(),a,b,c).parent(this)};$.g.dP=function(a,b,c){return ni(this.path(),a,b,c).parent(this)}; +$.g.kL=function(a,b,c){return oi(this.path(),a,b,c).parent(this)};$.g.QK=function(a,b,c){return pi(this.path(),a,b,c).parent(this)};$.g.jL=function(a,b,c){return qi(this.path(),a,b,c).parent(this)};$.g.uM=function(a,b,c){return ri(this.path(),a,b,c).parent(this)};$.g.mP=function(a,b,c){return si(this.path(),a,b,c).parent(this)};$.g.mg=function(a,b,c,d,e){return ti(this.path(),a,b,c,d,e).parent(this)};$.g.pL=function(a,b,c,d,e,f){return $.ui(this.path(),a,b,c,d,e,f).parent(this)};$.g.yt=function(){return $.kg().No()}; +$.g.dk=function(){this.Mf(32)&&this.wp();var a=this.Ja();a=a.XE(Math.floor(Math.max(500-a.cs,0)/3));this.Mf(64)&&Gg(this);var b=this.Ja();b.cs-=a;if(this.Mf(128)&&(a=this.Ja().XE(this.children.length+this.$q.length+1),b=Haa(this,a),bd;d++){c=!1;for(var e=0;4>e;e++){c=!c;for(var f=0;4>f;f++)c&&Ng(this,a,a,e*a+d*this.size/2,f*a+this.size/2),c=!c}}},"solid-diamond":function(){Rg(this,[[this.size/2,0,0,this.size/2,this.size/2,this.size,this.size,this.size/2,this.size/2,0]],!0,!0)},"dashed-forward-diagonal":function(){Sg(this,[0,0,this.size/2,this.size/2,this.wf])},"dashed-backward-diagonal":function(){Sg(this,[this.size/2,0,0,this.size/ +2,this.wf])},"dashed-horizontal":function(){Sg(this,[0,0,this.size/2,0,this.wf,this.size/2,this.size/2,this.size,this.size/2,this.wf])},"dashed-vertical":function(){Sg(this,[0,0,0,this.size/2,this.wf,this.size/2,this.size/2,this.size/2,this.size,this.wf])},divot:function(){var a=.1*this.size,c=this.size*(.8-.2)/2;Rg(this,[[a+c,a,a,a+c/2,a+c,a+c],[this.size-a-c,this.size-a-c,this.size-a,this.size-a-c/2,this.size-a-c,this.size-a]])},"zig-zag":function(){Rg(this,[[0,0,this.size/2,this.size/2,this.size, +0],[0,this.size/2,this.size/2,this.size,this.size,this.size/2]])},weave:function(){Rg(this,[[0,0,this.size/2,this.size/2,this.size,0],[0,this.size/2,this.size/2,this.size,this.size,this.size/2],[this.size/2,this.size/2,3*this.size/4,3*this.size/4],[this.size,this.size/2,3*this.size/4,this.size/4]])}};a["percent-05"]=$.qa(Lg,8,8,[0,0,4,4]);a["percent-10"]=$.qa(Lg,8,4,[0,0,4,2]);a["percent-20"]=$.qa(Lg,4,4,[0,0,2,2]);a["percent-25"]=$.qa(Lg,4,2,[0,0,2,1]);a["percent-30"]=$.qa(Lg,4,4,[0,0,2,0,3,1,0, +2,2,2,1,3]);a["percent-40"]=$.qa(Lg,4,8,[0,0,2,0,3,1,0,2,2,2,1,3,3,3,0,4,2,4,1,5,3,5,0,6,2,6,1,7,3,7]);a["percent-50"]=$.qa(Lg,2,2,[0,0,1,1]);a["percent-60"]=$.qa(Lg,4,4,[0,0,2,0,0,1,1,1,3,1,0,2,2,2,1,3,2,3,3,3]);a["percent-70"]=$.qa(Lg,4,4,[0,0,2,0,3,0,0,1,1,1,2,1,0,2,2,2,3,2,0,3,1,3,2,3]);a["percent-75"]=$.qa(Og,4,4,[0,0,2,2]);a["percent-80"]=$.qa(Og,8,4,[0,0,4,2]);a["percent-90"]=$.qa(Og,8,8,[7,7,4,3]);return a}();Jg.prototype.Om=function(){return"hatch-fill"}; +Jg.prototype.R=function(){if(this.Ja()){var a=this.Ja().pn,b=[this.type,this.color,this.wf,this.size].join();$.Gc(a.i,b)&&$.Lc(a.i,b);a=$.ue(window.document,this.id());$.Xe(a)}Jg.u.R.call(this)};var bE=Jg.prototype;bE.dispose=bE.kd;$.H(Wg,$.hg);$.Vg="meet";$.Ug="none";$.g=Wg.prototype;$.g.al=$.hg.prototype.al|32;$.g.Om=function(){return"image"};$.g.MC=function(a){return null!=a?(a!=this.f&&(this.f=a,this.Ob(32)),this):this.f};$.g.align=function(a){return null!=a?(a!=this.b&&(this.b=a,this.Ob(32)),this):this.b};$.g.x=function(a){return null!=a?(a!=this.zb.left&&(this.zb.left=a,this.Ob(32),this.$d()),this):this.zb.left};$.g.y=function(a){return null!=a?(a!=this.zb.top&&(this.zb.top=a,this.Ob(32),this.$d()),this):this.zb.top}; +$.g.width=function(a){return null!=a?(a!=this.zb.width&&(this.zb.width=a,this.Ob(32),this.$d()),this):this.zb.width};$.g.height=function(a){return null!=a?(a!=this.zb.height&&(this.zb.height=a,this.Ob(32),this.$d()),this):this.zb.height};$.g.src=function(a){return $.n(a)?(a!=this.j&&(this.j=a,this.Ob(32)),this):this.j};$.g.opacity=function(a){return $.n(a)?(a!=this.i&&(this.i=a,this.Ob(32)),this):this.i};$.g.Xj=function(){return this.zb.clone()};$.g.yt=function(){return $.kg().S_()}; +$.g.dk=function(){this.Mf(32)&&($.kg().jI()&&this.Ob(4),this.wp());Wg.u.dk.call(this)};$.g.Lw=function(){$.kg().P4(this);$.ig(this,4);$.ig(this,256)};$.g.wp=function(){$.kg().O4(this);$.ig(this,32)};$.g.me=function(a){var b=a.bounds;this.x(b.left).y(b.top).width(b.width).height(b.height).src(a.src).align(a.align).MC(a.fittingMode);Wg.u.me.call(this,a)};$.g.F=function(){var a=Wg.u.F.call(this);a.type="image";a.bounds=this.Xj();a.src=this.src();a.align=this.align();a.fittingMode=this.MC();return a}; +$.g.R=function(){this.zb=null;this.$d();Wg.u.R.call(this)};$.F("acgraph.vector.Image",Wg);var cE=Wg.prototype;cE.fittingMode=cE.MC;cE.align=cE.align;cE.x=cE.x;cE.y=cE.y;cE.width=cE.width;cE.height=cE.height;cE.src=cE.src;$.H(Xg,$.qf);var Zg=[$.hd&&!$.bd("11")?"readystatechange":"load","abort","error"];Xg.prototype.start=function(){var a=this.f;(0,$.Ne)($.Fc(a),function(b){var c=a[b];if(c&&(delete a[b],!this.nd)){var d;this.Y?d=$.te(this.Y).sc("IMG"):d=new window.Image;c.L_&&(d.crossOrigin=c.L_);this.jo.ta(d,Zg,this.i);this.b[b]=d;d.id=b;d.src=c.src}},this)}; +Xg.prototype.i=function(a){var b=a.b;if(b){if("readystatechange"==a.type)if("complete"==b.readyState)a.type="load";else return;"undefined"==typeof b.naturalWidth&&("load"==a.type?(b.naturalWidth=b.width,b.naturalHeight=b.height):(b.naturalWidth=0,b.naturalHeight=0));this.dispatchEvent({type:a.type,target:b});this.nd||$g(this,b.id)}};Xg.prototype.R=function(){delete this.f;delete this.b;$.od(this.jo);Xg.u.R.call(this)};$.ja($.ah);$.g=$.ah.prototype;$.g.L4=$.ia;$.g.ZW=$.ia;$.g.RW=$.ia;$.g.getAttribute=function(a,b){return a?a.getAttribute(b):void 0};$.g.jc=function(a,b,c){a.setAttribute(b,c)};$.g.Y3=function(a,b){var c=b[3];a.push(b[0],b[1],0,180this.Wa&&!this.rc;){var f=Rh(this,a,b,e+this.P,this.Wa,d);1>f&&0==this.f.length&&(f=1);0!=f&&(e=$.lc(a.substring(0,f)),d=this.Qm(e,b),Sh(this,e,b,d));this.JL();1==a.length&&(this.rc=!0);e=0;a=$.lc(a.substring(f,a.length));d=this.Qm(a,b)}this.rc||!a.length&&!c||Sh(this,a,b,d)}}; +$.g.JL=function(){if(!this.rc&&0!=this.f.length){var a=0==this.da.length;if(this.Af&&this.D+this.Aa>this.Af&&0!=this.da.length)Th(this),this.rc=!0;else{this.Aa=$.z(this.qb)?(0,window.parseInt)(this.qb,0)+this.Aa:this.qb*this.Aa;if($.kg().m3()){var b;var c=this.K&&this.xc.hAlign==$.Nh||!this.K&&"end"==this.xc.hAlign||"right"==this.xc.hAlign;var d="center"==this.xc.hAlign;if(this.K&&"end"==this.xc.hAlign||!this.K&&this.xc.hAlign==$.Nh||"left"==this.xc.hAlign){d=this.K?0:this.j&&a?this.j:0;var e=0;for(b= +this.f.length;ethis.Wa&&(1a&&!(0,window.isNaN)(this.lC)&&(0,window.clearTimeout)(this.lC),this.iN=a,this.vt(!0)),this):this.iN};$.g.O=function(a){return $.n(a)?(a=$.ue(window.document,a||null),this.Hc!=a&&(this.Hc=a,Wj(this),this.vt(!0),this.Pd()),this):this.Hc?this.hp:null};$.g.pea=function(){return this.Hc};$.g.Nl=function(){return this.hp};$.g.suspend=function(){this.dJ++;return this}; +$.g.resume=function(a){this.dJ=a?0:Math.max(this.dJ-1,0);this.Pd();return this};$.g.lca=function(a){return $.n(a)?(this.ZQ=!!a,this):this.ZQ};$.g.tf=function(){return!!this.dJ};$.g.QM=function(){return this.hw};$.g.title=function(a){return $.n(a)?(this.dx!=a&&(this.dx=a,$.kg().ZW(this,this.dx)),this):this.dx};$.g.kS=function(a){return $.n(a)?(this.qv!=a&&(this.qv=a,$.kg().RW(this,this.qv)),this):this.qv};$.g.visible=function(a){if(0==arguments.length)return this.La.visible();this.La.visible(a);return this}; +$.g.data=function(a){if(0==arguments.length)return this.F();var b=a.type;if(b)switch(b){case "rect":var c=this.rect();break;case "circle":c=this.kn();break;case "ellipse":c=this.ellipse();break;case "image":c=this.qk();break;case "text":c=this.text();break;case "path":c=this.path();break;case "layer":c=this.Ad();break;default:c=null}else this.me(a);c&&c.me(a);return this};$.g.remove=function(){return this.O(null)};$.g.Mh=function(){return 0};$.g.vs=function(){return 0}; +$.g.rb=function(){return new $.I(0,0,this.width(),this.height())};$.g.clip=function(a){return this.La.clip(a)};$.g.VL=function(){return this.B_}; +$.g.fullScreen=function(a){var b=this.Nl();if($.n(a))return b&&this.Ay()&&(a=!!a,this.fullScreen()!=a&&(a?b.mozRequestFullScreenWithKeys?b.mozRequestFullScreenWithKeys():b.webkitRequestFullscreen?b.webkitRequestFullscreen():b.webkitRequestFullscreen?b.webkitRequestFullscreen():b.mozRequestFullScreen?b.mozRequestFullScreen():b.msRequestFullscreen?b.msRequestFullscreen():b.requestFullscreen&&b.requestFullscreen():(b=$.te().b,b.webkitCancelFullScreen?b.webkitCancelFullScreen():b.mozCancelFullScreen? +b.mozCancelFullScreen():b.msExitFullscreen?b.msExitFullscreen():b.exitFullscreen&&b.exitFullscreen()))),this;if(!(a=!b)){a:{a=$.te().b;a=[a.webkitFullscreenElement,a.mozFullScreenElement,a.msFullscreenElement,a.fullscreenElement];for(var c=0;ca++;){if(this.nd)return;this.kp.Hw();b=Qm(this)}b&&this.kp.Hw();this.nd||(b?(this.kp.Od(this.Yg),this.oW=(0,window.setTimeout)(this.SN,0)):this.kp.UJ())};$.g.V3=function(a,b){this.kp.nW(a,b)};$.g.zia=$.ia;$.g.R=function(){(0,window.clearTimeout)(this.oW);this.f=this.i=this.kp=null;$.Lm.u.R.call(this)};var HE=$.Lm.prototype;$.F("anychart.data.csv.parser",$.Rm);HE.parse=HE.UB;HE.rowsSeparator=HE.GI; +HE.columnsSeparator=HE.LF;HE.ignoreTrailingSpaces=HE.lH;HE.ignoreFirstRow=HE.jH;$.I.prototype.F=function(){return{left:this.left,top:this.top,width:this.width,height:this.height}};$.on.prototype.add=function(a){return new $.on(this.x+a.x,this.y+a.y)};$.on.prototype.min=function(a){return new $.on(Math.min(this.x,a.x),Math.min(this.y,a.y))};$.on.prototype.max=function(a){return new $.on(Math.max(this.x,a.x),Math.max(this.y,a.y))};rn.prototype.OI=function(){for(var a=this.b.length-1;0<=a;a--)if(1E-6>=Math.abs(this.b[a]))this.b.pop();else break};$.F("anychart.math.rect",$.kn);var IE={HP:["BC","AD"],mY:["Before Christ","Anno Domini"],qY:"JFMAMJJASOND".split(""),FY:"JFMAMJJASOND".split(""),OP:"January February March April May June July August September October November December".split(" "),ZP:"January February March April May June July August September October November December".split(" "),VP:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),$P:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),dQ:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), +IY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),XP:"Sun Mon Tue Wed Thu Fri Sat".split(" "),HY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Y7:"SMTWTFS".split(""),GY:"SMTWTFS".split(""),WP:["Q1","Q2","Q3","Q4"],RP:["1st quarter","2nd quarter","3rd quarter","4th quarter"],zP:["AM","PM"],PE:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],RE:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DP:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],IP:6,r9:[5,6],JP:5},Rn=IE; +Rn=IE;var Kba=/^(-)?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)?(T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+(?:\.\d+)?)S)?)?$/;$.Dn.prototype.clone=function(){return new $.Dn(this.Vh,this.lg,this.Bg,this.Zh,this.Rj,this.Ch)};var xn="y",yn="m",zn="d",An="h",Bn="n",Cn="s";$.Dn.prototype.b=function(a){return new $.Dn(this.Vh*a,this.lg*a,this.Bg*a,this.Zh*a,this.Rj*a,this.Ch*a)};$.Dn.prototype.add=function(a){this.Vh+=a.Vh;this.lg+=a.lg;this.Bg+=a.Bg;this.Zh+=a.Zh;this.Rj+=a.Rj;this.Ch+=a.Ch};$.g=$.Jn.prototype;$.g.KC=Rn.IP; +$.g.LC=Rn.JP;$.g.clone=function(){var a=new $.Jn(this.b);a.KC=this.KC;a.LC=this.LC;return a};$.g.getFullYear=function(){return this.b.getFullYear()};$.g.getMonth=function(){return this.b.getMonth()};$.g.getDate=function(){return this.b.getDate()};$.g.getTime=function(){return this.b.getTime()};$.g.getDay=function(){return this.b.getDay()};$.g.getUTCFullYear=function(){return this.b.getUTCFullYear()};$.g.getUTCMonth=function(){return this.b.getUTCMonth()};$.g.getUTCDate=function(){return this.b.getUTCDate()}; +$.g.mM=function(){return this.b.getDay()};$.g.getUTCHours=function(){return this.b.getUTCHours()};$.g.getUTCMinutes=function(){return this.b.getUTCMinutes()};$.g.getTimezoneOffset=function(){return this.b.getTimezoneOffset()};$.g.set=function(a){this.b=new Date(a.getFullYear(),a.getMonth(),a.getDate())};$.g.setFullYear=function(a){this.b.setFullYear(a)};$.g.setMonth=function(a){this.b.setMonth(a)};$.g.setDate=function(a){this.b.setDate(a)};$.g.setTime=function(a){this.b.setTime(a)};$.g.NT=function(a){this.b.setUTCFullYear(a)}; +$.g.Eea=function(a){this.b.setUTCMonth(a)};$.g.Dea=function(a){this.b.setUTCDate(a)}; +$.g.add=function(a){if(a.Vh||a.lg){var b=this.getMonth()+a.lg+12*a.Vh,c=this.getFullYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);var d=Math.min(wn(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.Bg&&(b=new Date(this.getFullYear(),this.getMonth(),this.getDate(),12),a=new Date(b.getTime()+864E5*a.Bg),this.setDate(1),this.setFullYear(a.getFullYear()),this.setMonth(a.getMonth()),this.setDate(a.getDate()),Hn(this,a.getDate()))}; +$.g.nM=function(a){return[this.getFullYear(),$.uc(this.getMonth()+1,2),$.uc(this.getDate(),2)].join(a?"-":"")};$.g.hJ=ba(6);$.g.toString=function(){return this.nM()};$.g.valueOf=function(){return this.b.valueOf()};$.H($.Kn,$.Jn);$.g=$.Kn.prototype;$.g.getHours=function(){return this.b.getHours()};$.g.getMinutes=function(){return this.b.getMinutes()};$.g.getSeconds=function(){return this.b.getSeconds()};$.g.mM=function(){return this.b.getUTCDay()};$.g.getUTCHours=function(){return this.b.getUTCHours()}; +$.g.getUTCMinutes=function(){return this.b.getUTCMinutes()};$.g.MT=function(){return this.b.getUTCSeconds()};$.g.setHours=function(a){this.b.setHours(a)};$.g.setMinutes=function(a){this.b.setMinutes(a)};$.g.setSeconds=function(a){this.b.setSeconds(a)};$.g.setMilliseconds=function(a){this.b.setMilliseconds(a)};$.g.z1=function(a){this.b.setUTCHours(a)};$.g.A1=function(a){this.b.setUTCMinutes(a)};$.g.B1=function(a){this.b.setUTCSeconds(a)};$.g.Cea=function(a){this.b.setUTCMilliseconds(a)}; +$.g.add=function(a){$.Jn.prototype.add.call(this,a);a.Zh&&this.z1(this.b.getUTCHours()+a.Zh);a.Rj&&this.A1(this.b.getUTCMinutes()+a.Rj);a.Ch&&this.B1(this.b.getUTCSeconds()+a.Ch)};$.g.nM=function(a){var b=$.Jn.prototype.nM.call(this,a);return a?b+" "+$.uc(this.getHours(),2)+":"+$.uc(this.getMinutes(),2)+":"+$.uc(this.getSeconds(),2):b+"T"+$.uc(this.getHours(),2)+$.uc(this.getMinutes(),2)+$.uc(this.getSeconds(),2)};$.g.hJ=ba(5);$.g.toString=function(){return this.nM()}; +$.g.clone=function(){var a=new $.Kn(this.b);a.KC=this.KC;a.LC=this.LC;return a};$.H($.Ln,$.Kn);$.g=$.Ln.prototype;$.g.clone=function(){var a=new $.Ln(this.b);a.KC=this.KC;a.LC=this.LC;return a};$.g.add=function(a){(a.Vh||a.lg)&&$.Jn.prototype.add.call(this,new $.Dn(a.Vh,a.lg));this.b=new Date(this.b.getTime()+1E3*(a.Ch+60*(a.Rj+60*(a.Zh+24*a.Bg))))};$.g.getTimezoneOffset=function(){return 0};$.g.getFullYear=$.Kn.prototype.getUTCFullYear;$.g.getMonth=$.Kn.prototype.getUTCMonth;$.g.getDate=$.Kn.prototype.getUTCDate;$.g.getHours=$.Kn.prototype.getUTCHours;$.g.getMinutes=$.Kn.prototype.getUTCMinutes; +$.g.getSeconds=$.Kn.prototype.MT;$.g.getDay=$.Kn.prototype.mM;$.g.setFullYear=$.Kn.prototype.NT;$.g.setMonth=$.Kn.prototype.Eea;$.g.setDate=$.Kn.prototype.Dea;$.g.setHours=$.Kn.prototype.z1;$.g.setMinutes=$.Kn.prototype.A1;$.g.setSeconds=$.Kn.prototype.B1;$.g.setMilliseconds=$.Kn.prototype.Cea;var gp=$.hd&&Lba();Nn.prototype.XC=function(a){return this.D-Qn(this,a)};var Wn=[/^'(?:[^']|'')*('|$)/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyMkSEahKHcLQdmsvVwzZ]+/]; +$.Un.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-b.XC(a)):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+6E4*(d.getTimezoneOffset()-a.getTimezoneOffset())),e=new Date(a.getTime()+(c+(0b.charCode&&Cp(d)?b.charCode:0):$.wf&&!$.vd?(d=this.zA,e=Cp(d)?b.keyCode:0):(d=b.keyCode||this.zA,e=b.charCode||0,ME&&(c=this.nQ),$.wd&&63==e&&224==d&&(d=191));var f=d=Dp(d);d?63232<=d&&d in KE?f=KE[d]:25==d&&a.shiftKey&&(f=9):b.keyIdentifier&&b.keyIdentifier in LE&&(f=LE[b.keyIdentifier]);a=f==this.kr;this.kr= +f;b=new Fp(f,e,a,b);b.altKey=c;this.dispatchEvent(b)};$.g.Va=function(){return this.Cd};$.g.oM=function(a,b){this.$M&&this.UG();this.Cd=a;this.ZM=$.Id(this.Cd,"keypress",this,b);this.XU=$.Id(this.Cd,"keydown",this.Fea,b,this);this.$M=$.Id(this.Cd,"keyup",this.ifa,b,this)};$.g.UG=function(){this.ZM&&(Rd(this.ZM),Rd(this.XU),Rd(this.$M),this.$M=this.XU=this.ZM=null);this.Cd=null;this.zA=this.kr=-1};$.g.R=function(){$.Ep.u.R.call(this);this.UG()};$.H(Fp,$.xd);var Ip,Lp,Vp,Xp,Zp,aq,dq,eq,jq;$.NE=$.fa.acgraph;Ip=!1;$.Xj.prototype.px=!1;$.Xj.prototype.Oo=function(a){this.nm||(this.nm=new nl(this,this.px),this.nm.N($.zm("stageCredits")));return $.n(a)?(this.nm.N(a),this):this.nm};$.Kp=0;Lp=[];$.Op={};$.Pp={};$.Rp={};$.Qp={};Vp=!1;Xp=null;Zp=[];aq=[];dq=[];eq=[];$.sl=new rl;jq={}; +(function(){for(var a=["ms","moz","webkit","o"],b=0,c;c=a[b]&&!$.fa.requestAnimationFrame;++b)$.fa.requestAnimationFrame=$.fa[c+"RequestAnimationFrame"],$.fa.cancelAnimationFrame=$.fa[c+"CancelAnimationFrame"]||$.fa[c+"CancelRequestAnimationFrame"];if(!$.fa.requestAnimationFrame){var d=0;$.fa.requestAnimationFrame=function(a){var b=(new Date).getTime(),c=Math.max(0,16-(b-d));d=b+c;return $.fa.setTimeout(function(){a(b+c)},c)};$.fa.cancelAnimationFrame||($.fa.cancelAnimationFrame=function(a){(0,window.clearTimeout)(a)})}})(); +$.F("anychart.graphics",$.NE);$.F("anychart.fromJson",$.Sp);$.F("anychart.fromXml",function(a){return $.Sp($.ip(a))});$.F("anychart.onDocumentLoad",function(a,b){mE||(mE=[]);mE.push([a,b]);$.Id($.il,"load",function(){for(var a=0,b=mE.length;a=this.Ib()))return this.view.Ol(this.i).Yj(this.f,this.i,a)};$.g.dr=function(a){return this.get(a)};$.g.la=function(){return this.i};$.g.Mh=function(){return this.get("x")}; +$.g.Ib=function(){return this.view.Ib()};$.g.o=function(a,b){return 1b){var e=a;a=b;b=e}e=this.$();var f=[];for(e.reset();e.advance();){var h=e.la();var k=c?h:e.get("x");k>=a&&k<=b&&f.push(h)}return this.DF[d]=f};$.g.get=function(a,b){if(!(a>=this.Ib()))return this.Ol(a).Yj(this.vf(a),a,b)};$.g.set=function(a,b,c){var d=this.vf(a);$.n(d)&&this.vf(a,bca(this.Ol(a),d,b,c));return this};$.g.$=function(){$.wr(this);return new $.ur(this)}; +$.g.hC=function(){return null};$.g.qI=function(a){this.DF=this.ut=null;$.X(a,16)&&this.B(1,16)};$.g.o=function(a,b,c){if(this.GX)return this.IN.apply(this,arguments);this.ED||(this.ED=[]);var d=this.ED[a];d||(this.ED[a]=d={});return 2a:!(!this.tt||!this.tt[a.split(".")[0]])}; +$.g.LN=function(a,b){function c(c){c in a||(a[c]=b++)}var d;for(d=0;d=d)return[];a=new $.Fr(a);c=[];if(1==b)for(b=0;b=c&&0=h&&0=d&&0= +c[l].offset&&(d=c[l]),h<=c[l].offset&&null==f&&(f=c[l]);d||(d=c[0]);f||(f=c[c.length-1]);f.offset==d.offset?this.f[k]={color:d.color}:(h=1-(h-d.offset)/(f.offset-d.offset),this.f[k]={color:$.Rb($.Cl($.zl(d.color),$.zl(f.color),h))})}}}this.I(16)}c=$.A(this.Te)?this.Te:this.Te.keys;if(1>c.length)return null;c=this.b||this.i||c.length;if(!c)return null;if($.n(b))return this.f[a]=b,this.va(2),this;a>c-1&&(a=c-1);0>a&&(a=0);return(c=this.f[a])?c:null}; +$.g.yp=function(a){this.b=window.NaN;this.Te="#1D8BD1 #F1683C #2AD62A #DBDC25 #8FBC8B #D2B48C #FAF0E6 #20B2AA #B0C4DE #DDA0DD #9C9AFF #9C3063 #FFFFCE #CEFFFF #630063 #FF8284 #0065CE #CECFFF #000084 #FF00FF #FFFF00 #00FFFF #840084 #840000 #008284 #0000FF #00CFFF #CEFFFF #CEFFCE #FFFF9C #9CCFFF #FF9ACE #CE9AFF #FFCF9C #3165FF #31CFCE #9CCF00 #FFCF00 #FF9A00 #FF6500".split(" ");this.B(16);a&&this.va(2)}; +$.g.F=function(){var a=$.Es.u.F.call(this);a.type="range";for(var b=[],c=0;ca?4:Math.ceil(+a),this.Zu=this.km=null,this.va(2)),this):this.jn}; +$.g.set=function(a){if(this.km!=a){this.jn=window.NaN;this.Hp=null;this.km=(0,$.Wa)(a,function(a){return $.is(a)});$.Pa(this.km);for(var b=this.km[0],c=1,d=1;da||1this.scale.Vm()&&($.hl(20,null,[d-c,sp(f)]),f=null,this.jn=4);f||(f=Os(this,a,b,!0));a=new $.Ln(new Date(c));d=new $.Ln(new Date(d));for(b=0;0>=a.getTime()-d.getTime()&&bthis.scale.Vm()&&($.hl(20,null,[b-a,sp(h)]),h=null,this.jn=4);h||(h=Os(this,a,b,!1));var l=$.Qo(a,h,0),m=new $.Ln(new Date(l));c?e[0]=l:l=m.getTime()-a.getTime()&&bthis.Tz&&(this.Tz=c,this.Lc=!1))}return this}; +$.g.kC=function(a){var b=this.kha!=this.Uz||this.jha!=this.Tz;b&&(this.Lc=!1,a||this.va(2));return b};$.g.Of=function(){return this.Hn||this.Fn};$.g.transform=function(a){this.pb();return Number(this.Hq.transform(a))};$.g.pb=function(){this.Lc||(this.Lc=!0,this.mS(),this.NI(),this.Uw())};$.g.NI=function(){};$.g.Uw=function(){this.Hq||(this.Hq=new Hs);var a=this.yJ*this.EB;a=[-a,this.EB-a];this.sD&&a.reverse();this.Hq.ve(a)}; +$.g.mS=function(){var a=!this.Hn;var b=!this.Fn,c="percent"==this.cn();a&&this.Vc(this.min);b&&this.Vc(this.max);this.LW||(this.Uz=0,this.Tz=c?100:1);var d=a?this.min:this.Uz,e=b?this.max:this.Tz;!a&&d>=this.ct&&(d=this.ct,a=!0);!b&&e<=this.Eq&&(e=this.Eq,b=!0);if($.Wm(d,e,1E-6)){if(d==e)var f=.5;else f=d.toExponential().split("e")[1],f=+("1e-"+Math.max(Math.abs(f)+1,5));b?d-=2*f:a?e+=2*f:(d-=f,e+=f)}c&&(a=b=!0);a=this.Dz(d,e,!a,!b,this.aJ,!0);this.min=a.min;this.max=a.max;this.Cx=a.Cx||0}; +$.g.Dz=function(a,b,c,d,e,f){var h=b-a,k=h*this.cI;h*=this.XH;return{max:d?et(b,h,e,f,1):b,min:c?et(a,k,e,f,-1):a}};$.g.Kc=function(a){this.pb();return this.Hq.Kc(a)}; +$.g.F=function(){var a=$.dt.u.F.call(this);a.maximum=this.Fn?null:this.max;a.minimum=this.Hn?null:this.min;a.minimumGap=this.Ls();a.maximumGap=this.Js();a.softMinimum=(0,window.isNaN)(this.ct)?null:this.ct;a.softMaximum=(0,window.isNaN)(this.Eq)?null:this.Eq;a.softMaximum=(0,window.isNaN)(this.Eq)?null:this.Eq;a.alignMinimum=this.aF;a.alignMaximum=this.$E;a.maxTicksCount=this.Vk;return a}; +$.g.U=function(a,b){$.dt.u.U.call(this,a,b);this.Ls(a.minimumGap);this.Js(a.maximumGap);this.pB(a.softMinimum);this.oB(a.softMaximum);this.ph(a.minimum);this.ai(a.maximum);this.kQ(a.alignMinimum);this.jQ(a.alignMaximum);this.Vm(a.maxTicksCount)};var bF=$.dt.prototype;bF.maxTicksCount=bF.Vm;bF.minimum=bF.ph;bF.maximum=bF.ai;bF.extendDataRange=bF.Vc;$.H($.ft,$.dt);$.g=$.ft.prototype;$.g.tk=function(a){return!$.is(a)};$.g.Na=function(){return"date-time"};$.g.Ua=function(a){this.sh||(this.sh=new Ns(this),$.W(this,"ticks",this.sh),$.K(this.sh,this.gi,this));return $.n(a)?(this.sh.N(a),this):this.sh};$.g.vb=function(a){this.wi||(this.wi=new Ns(this),$.W(this,"minorTicks",this.wi),$.K(this.wi,this.gi,this));return $.n(a)?(this.wi.N(a),this):this.wi};$.g.Vc=function(a){for(var b=0;bc;c++){b:{var d=a[c];if("object"===$.ka(d)&&"from"in d&&"to"in d){var e=+d.from;d=+d.to;if(ee&&0=d){e={from:e,to:d};break b}}e=null}b.push(e)}a=b.length?b:null}else a=null;this.b=a;this.D={};this.j={};if(this.b)for(a=0;af){e={day:e,month:f};"year"in d&&(f=+d.year,(0,window.isNaN)(f)||(e.year=f));"label"in d&&(e.label=String(d.label));d=e;break b}}d=null}d&&b.push(d)}a=b.length?b:null}else a=null;this.f=a;this.i={bY:{},VR:{}};this.D={};if(this.f)for(a=0;a=Math.abs(f-c)&&(c=(this.Xe+this.We)/2,f=c-3E4,c+=3E4);this.Cr(f,c)}return this}; +$.g.Pr=function(a,b){var c=a||1.25,d=$.n(b)?b:.5;$.wt(this);if(!$.qt(this)||!$.rt(this)){var e=this.Xe-Math.round((this.We-this.Xe)*(c-1)*d);c=this.We+Math.round((this.We-this.Xe)*(c-1)*(1-d));this.oj();if($.vt(this)){d=this.Qq.nb().width;if(this.Wl.isPixels){var f=$.nt(this.Wl.value,d);this.Aj=this.Jh-Math.round((f/d||0)*(c-e))}this.Vl.isPixels&&(f=$.nt(this.Vl.value,d),this.zj=this.Ih+Math.round((f/d||0)*(c-e)))}if(ethis.zj){if(ethis.zj)return this.Lm(),this;ethis.zj&&this.Cr(e-(c-this.zj),this.zj)}else this.Cr(e,c)}return this}; +$.g.fj=function(a,b,c){if($.vt(this)&&$.ea(a)&&$.ea(b)){c=this.Wl.isPixels;var d=this.Vl.isPixels;c&&d?ot(this):c?pt(this,!0):d&&pt(this,!1);d=this.Ih-this.Jh;c=b-a;if(c>=this.zj-this.Aj)this.Xe=this.Aj,this.We=this.zj;else{this.Xe=Math.min(a,b);this.We=Math.max(a,b);var e=$.st(this,d,this.Wl),f=$.st(this,d,this.Vl);e=(0,window.isNaN)(this.Um)?(0,window.isNaN)(this.Co)?this.Jh-e:Math.min(this.Co,this.Jh):this.Um;f=(0,window.isNaN)(this.Tm)?(0,window.isNaN)(this.Bo)?this.Ih+f:Math.max(this.Bo,this.Ih): +this.Tm;af&&(this.We=f,this.Xe=this.We-c)}this.Aj=e;this.zj=f;this.Lc=!0;this.Oj()&&(this.kI=!0,this.hI=[a,b]);this.va(4);a=this}else a:{this.pb();if($.z(a)){if(0===b){a=this;break a}f=$.yk(yda,c,$.n(void 0)?void 0:"first-visible-date");e=$.So($.Wk(a,"day"),b||1);switch(f){case "first-date":d=this.Jh;break;case "last-date":d=this.Ih;e=e.b(-1);break;case "last-visible-date":d=this.We;e=e.b(-1);break;case "first-visible-date":d=this.Xe}d=new $.Ln($.is(d));f=$.Uk(d); +d.add(e);d=$.Uk(d);e=Math.min(f,d);d=Math.max(f,d);f=d-e}else e=a,d=b,$.n(b)?f=b-a:(f=this.We-this.Xe,d=a+f);var h=this.oj();f=Math.min(h.max-h.min,f);d>h.max&&(d=h.max,e=d-f);ethis.We){var c=this.Xe-this.We;this.Xe=Math.max(this.We,b);this.We=Math.min(this.Xe+c,a)}}}; +$.g.xn=function(a,b,c,d,e){a=e||this.mj();e=c;b=this.mj();c=b.min;var f=b.max;b=new $.Ln(new Date(c));c=f-c;do{f=$.So(e,d);var h=b.clone();b.add(f);f=Math.ceil(c/(b.getTime()-h.getTime()));if(f>this.Vk)switch(e){case "millisecond":e="second";d=1;break;case "second":59>d?d++:(d=1,e="minute");break;case "minute":59>d?d++:(d=1,e="hour");break;case "hour":23>d?d++:(d=1,e="day");break;case "day":29>d?d++:(d=1,e="month");break;case "month":11>d?d++:(d=1,e="year");break;default:d++}}while(f>this.Vk);c=e; +b=$.Ro(a.min,c,d,2E3);e=$.So(c,d);a=a.max;d=[];if(1b){f=e.b(-1);var k=new $.Ln(new Date(c));do k.add(f),c=k.getTime();while(c>b)}}else k=new $.Ln(new Date(b));for(c=k.getTime();c=a?(this.ih=4,this.lm=6,this.Fl=window.NaN):(this.lm=this.ih=window.NaN,this.Fl=+a),this.Dl=this.El=null,this.va(2)),this):this.Fl}; +$.g.count=function(a,b){return $.n(a)?(this.ih!=a&&(this.Fl=window.NaN,this.ih=Math.ceil($.N(a)),this.lm=Math.ceil($.N(b)),2<=this.ih||(this.ih=4),this.lm>=this.ih||(this.lm=this.ih),this.Dl=this.El=null,this.va(2)),this):[this.ih,this.lm]};$.g.IE=ba(9);$.g.BF=function(a){return $.n(a)?(a=+a||0,this.Tc!=a&&(this.Tc=a,this.Dl=null,this.El||this.va(2)),this):this.Tc}; +$.g.set=function(a){$.Ta(this.El,a)||(this.Fl=this.lm=this.ih=window.NaN,this.El=$.Ja(a,0),$.Ka(this.El),$.Pa(this.El,$.mo),this.Dl=null,this.va(2));return this};$.g.get=function(){var a=this.Yj();return(0,$.Ye)(a,function(a){a=this.transform(a);return 0<=a&&1>=a},this.pa)};$.g.Yj=function(){if(this.El)var a=this.El;else this.pa.pb(),a=this.Dl;return a||[]}; +$.g.mode=function(a){return $.n(a)?(a=String(a).toLowerCase(),a="log"==a||"logarithmic"==a?"logarithmic":"linear",this.ym!=a&&(this.Dl=null,this.ym=a,this.El||this.va(2)),this):this.ym};$.g.iB=function(a,b,c,d,e,f){this.El?(this.Dl=null,e=[a,b],c&&(e[0]=Math.min(a,this.El[0]||0)),d&&(e[1]=Math.max(b,this.El[this.El.length-1]||0))):(a="logarithmic"==this.ym?nca(this,a,b,e||10,f||0,!!c,!!d):Bt(this,a,b,!!c,!!d,this.b,this.Tc),this.Dl=a.Ua,e=a.result);return e}; +$.g.jB=function(a,b,c,d,e){if(this.El)this.Dl=null;else if(this.Dl?this.Dl.length=0:this.Dl=[],!(2>a.length)){b=b||10;var f="logarithmic"==this.ym,h=f?this.N9:this.Gaa,k=a.length-1,l=this.Fl,m=this.ih;if(!(0,window.isNaN)(this.Fl)){var p=a[k];var q=a[0];f&&(q=$.Xm(q,b),p=$.Xm(p,b));(p-q)/this.Fl>this.pa.Vm()&&($.hl(20,null,[p-q,this.Fl]),this.Fl=window.NaN,this.ih=4)}$.n(c)?(q=a[0],p=a[1],h.call(this,q,p,c,p,this.ih,b,e||0,!0),q=1):q=0;$.n(d)&&k--;for(c=q;c<=k-1;c++)q=a[c],p=a[c+1],h.call(this,q, +p,q,p,this.ih,b,e||0);$.n(d)&&(q=a[k],p=a[k+1],h.call(this,q,p,q,d,this.ih,b,e||0));this.Fl=l;this.ih=m}};$.g.Gaa=function(a,b,c,d,e,f,h,k){Ct(this,a,b,Dt(this,c,d,e),this.Dl[this.Dl.length-1],this.Dl,k)}; +$.g.N9=function(a,b,c,d,e,f,h){function k(a){return 0>a?-m(-a+h-1):a?m(a+h-1):0}function l(a){return-m(a)}function m(a){return Ym(f,a)}var p=$.Xm(Math.abs(c),f),q=$.Xm(Math.abs(d),f),r=$.Xm(Math.abs(a),f),t=$.Xm(Math.abs(b),f);d*=c;c=!1;0=this.ih||(this.lm=this.ih))};var fF=$.At.prototype; +fF.interval=fF.Haa;fF.allowFractional=fF.ZY;fF.count=fF.count;fF.base=fF.BF;fF.set=fF.set;fF.get=fF.get;fF.mode=fF.mode;$.H($.Et,$.dt);$.g=$.Et.prototype;$.g.HK="none";$.g.CR="first-visible";$.g.Na=function(){return"linear"};$.g.fE=function(a,b){for(var c=this.Ua().Yj(),d=0,e=0;eb?(a=[a,-c,c,-a],d=[0,f(h),f(h-2),f(h-2-d)]):(a=[-b,-c,c,b],d=[f(h-2-e),f(h-2),f(h),1])):0>f?(e=e-h+d-h+2,a=[a,-c,c,b],d=[0,(d-h)/e,(d-h+2)/e,1]):(e=e-h+d-h+1,b?(a=[-b,-c,c,b],d=[-(e+1)/e,-1/e,1/e,1]):(a=[a,-c,c,-a],d=[0,(e-1)/e,(e+1)/e,(e+e+1)/e]));h=this.Hq.ve();f=Ls[Gs](h[0],h[1]);d=(0,$.Wa)(d,function(a){return $.Vm(a)}); +Is(this.Hq,a);this.Hq.ve((0,$.Wa)(d,f));Js(this.Hq,[2,Gs,2])}; +$.g.Dz=function(a,b,c,d,e,f){e=this.MH();var h=$.Xm(Math.abs(a),e),k=$.Xm(Math.abs(b),e),l=Math.min(Math.floor(h),Math.floor(k),0);if(c||d){var m=a*b;0m?(2>k-l+h-l&&l--,c=Ft.u.Dz.call(this,-(h-(l-1)),k-(l-1),c,d,!1,!1),c.min=-c.min+l-1,c.max+=l-1):b?(c=Ft.u.Dz.call(this,0,k-(l-1),!1,d,!1,!1),c.max+=l-1):(c=Ft.u.Dz.call(this,-(h-(l-1)),0,c,!1,!1,!1),c.min=-c.min+l-1);c={max:Ym(e,c.max)*$.fb(b), +min:Ym(e,c.min)*$.fb(a),Cx:l};f&&(c.min=$.Vm(c.min),c.max=$.Vm(c.max))}else c={min:a,max:b,Cx:l};return c};$.g.F=function(){var a=Ft.u.F.call(this);a.logBase=this.MH();return a};$.g.U=function(a,b){Ft.u.U.call(this,a,b);this.MH(a.logBase)};var hF=Ft.prototype;$.F("anychart.scales.log",$.$s);hF.getType=hF.Na;hF.transform=hF.transform;hF.inverseTransform=hF.Kc;hF.logBase=hF.MH;$.H($.Gt,$.U);$.g=$.Gt.prototype;$.g.oa=2;$.g.vx=window.NaN;$.g.Nf=null;$.g.zz=null;$.g.bq=null;$.g.ux=null;$.g.Gk=null;$.g.Az=100;$.g.bK=function(a){return $.n(a)?(a=$.Bo(a,window.NaN),(0,window.isNaN)(a)||this.vx==a||(this.vx=a,this.Az=window.NaN,this.Gk=this.ux=this.bq=this.zz=null,this.va(2)),this):this.vx};$.g.tV=function(a){return $.n(a)?(a=$.Bo(a,window.NaN),(0,window.isNaN)(a)||this.Az==a||(this.Az=a,this.vx=window.NaN,this.Gk=this.ux=this.bq=this.zz=null,this.va(2)),this):this.Az}; +$.g.set=function(a){$.Ta(this.bq,a)||(this.bq=$.Ha(a),this.bq=(0,$.Wa)(this.bq,function(a){return $.N(a)}),$.Pa(this.bq),$.Ka(this.bq),this.bq[0]=0,this.Gk=this.ux=this.zz=null,this.va(2));return this}; +$.g.names=function(a){if($.n(a))return this.Nf!=a&&(this.Nf=a,this.va(2)),this;a=this.Yj();var b;if(this.Nf&&this.Nf.lengthh&&0>f||1b&&0>a||1=d?(l=d-1,f=!0):l--;e.push(k==l?c[k]:[c[k],c[l]])}return e};$.g.IE=ba(8); +$.g.F=function(){var a=$.Gt.u.F.call(this);this.bq?a.explicit=this.bq:(0,window.isNaN)(this.Az)?(0,window.isNaN)(this.vx)||(a.interval=this.vx):a.maxCount=this.Az;this.Nf&&(a.names=this.Nf);return a};$.g.He=function(a,b){return $.A(b)?(this.set(b),!0):!1};$.g.U=function(a,b){$.Gt.u.U.call(this,a,b);"explicit"in a&&a.explicit?this.set(a.explicit):"interval"in a?this.bK(a.interval):"maxCount"in a&&this.tV(a.maxCount);this.Nf=a.names||null;this.Gk=this.ux=null};var iF=$.Gt.prototype;iF.interval=iF.bK; +iF.maxCount=iF.tV;iF.set=iF.set;iF.get=iF.get;iF.names=iF.names;$.H($.It,Ps);$.g=$.It.prototype;$.g.Na=function(){return"ordinal"};$.g.tk=function(a){return!$.n(a)};$.g.Ua=function(a){this.kb||(this.kb=new $.Gt(this),$.W(this,"ticks",this.kb),$.K(this.kb,this.gi,this));return $.n(a)?(this.kb.N(a),this):this.kb};$.g.values=function(a,b){if(!$.n(a))return this.fh;if(null===a)this.yF||(this.yF=!0,this.va(4));else{this.yF=!1;var c=$.A(a);this.vo();c&&a.length?this.Vc.apply(this,a):this.Vc.apply(this,arguments);this.kC(!0)&&this.va(6)}return this}; +$.g.names=function(a){if($.n(a)){if(null===a)this.Nf=[];else if($.A(a))this.Nf=$.Ha(a);else{if(!$.z(a)||this.Nf==a)return this;this.Nf=a}this.Kn=null;$.Ht(this.Ua());this.va(2);return this}if($.A(this.Nf)){this.Kn||(this.Kn=$.Ha(this.Nf));if(this.Kn.lengthk){var p=~k;$.Da(d,m,p);(k=this.search("id",m))?(k=$.J(k,$.Wt)?k:k[0],$.Da(e,k,p),k.o("nc",!0),$.hl(1,null,[m])):$.Da(e,l,p)}else $.hl(2,null,[m])}for(b=0;bk?((k=this.search("id",l))?(k=$.J(k,$.Wt)?k:k[0],Yt(k,f)):(this.Aq.push(f),$.hl(3,null,[l])),bu(this,f)):(k=e[k],Yt(k,f),k.o("nc")&&bu(this,f))):(this.Aq.push(f), +bu(this,f));h.length&&this.va(16);this.ea(!0);break;default:$.V(this);b=0;for(d=a.length;bc||b>d)return 1;if(ac)return 1}else if(e.height){if(bd)return 1}return 0}; +$.g.mR=function(a,b){var c=this.g("minFontSize"),d=this.g("maxFontSize"),e=Math.round((d+c)/2),f=d,h=$.rk();h.Bd("aria-hidden","true");this.Wh(h,!0);h.fontSize(d);if(0>=this.Xn(h.rb().width,h.rb().height,a,b))return d;h.fontSize(e);for(var k=d=this.Xn(h.rb().width,h.rb().height,a,b);c!=f;){if(0>d)c=Math.min(e+1,f),e+=Math.floor((f-e)/2);else if(0=k*d)break}if(!d)return $.od(h),e;do e+= +k,h.fontSize(e),d=this.Xn(h.rb().width,h.rb().height,a,b);while(0>k*d);$.od(h);0b.indexOf("\n"))&&!this.g("useHtml")?this.gW:this.Zc.rb();var c=b.width,d=b.height,e=$.ac(this.g("iconStroke")),f=this.gp+e;if(a){var h=a.width;var k=a.height}else h=k=void 0;var l=$.M(this.g("maxWidth"),h);e=h?$.M(this.g("x"),h):0;k=k?$.M(this.g("y"),k):0;var m=this.As?f+this.g("iconTextSpacing"):0;this.wF=window.NaN;l?(h=l-m,c&&c>h&&"..."==this.Zc.textOverflow()?this.wF=h/c:(this.Zc.width(h),b=this.Zc.rb()),c=l):(l=h?Math.min(h-m,c): +c,l=Math.max(l,1E-5),"..."==this.Zc.textOverflow()&&c&&c>l&&(this.wF=l/c),c=l+m);l=this.Zc.da;if(1a?null:a;$.n(this.height())||this.B(4)};$.g.margin=function(a,b,c,d){this.Pc||(this.Pc=new $.Ev,$.K(this.Pc,this.Hk,this),$.W(this,"margin",this.Pc));return $.n(a)?(this.Pc.N.apply(this.Pc,arguments),this):this.Pc}; +$.g.padding=function(a,b,c,d){this.Ta||(this.Ta=new $.zu,$.W(this,"padding",this.Ta),$.K(this.Ta,this.Hk,this));return $.n(a)?(this.Ta.N.apply(this.Ta,arguments),this):this.Ta};$.g.ce=function(a,b){if($.n(a)){if($.z(a))if($.n(b)){if(a in this.j)this[a](b)}else return this.ld(a);else if($.C(a))for(var c in a)if(c in this.j)this[c](a[c]);return this}c={};for(var d in this.j){var e=this.g(d);$.n(e)&&(c[d]=e)}return c}; +$.g.W=function(){if(!this.Ac())return this;var a=Yv(this),b=this.O();$.V(this);this.J(2)&&(this.wb.parent(b),this.I(2));this.J(8)&&(this.wb.zIndex(this.zIndex()),this.I(8));this.J(16)&&(this.Wh(a),this.I(16));this.J(4)&&(Zv(this),this.hc.x($.M(this.padding().g("left"),this.f)),this.hc.y($.M(this.padding().g("top"),this.b)),this.wb.lc(this.i.md,this.i.Se,this.i.bf,this.i.Je,this.i.Kd,this.i.Hd),this.B(64),this.I(4));this.J(64)&&(a=this.background(),$.V(a),a.ja(0,0,this.f,this.b),a.W(),a.ea(!1),this.I(64)); +this.ea(!1);return this};$.g.remove=function(){this.wb?this.wb.parent(null):this.hc&&this.hc.parent(null)};$.g.xd=function(){var a=this.ja();a=a?a.clone():$.kn(0,0,0,0);if(!this.enabled())return a;this.Yb&&!this.J(4)||Zv(this);switch(this.g("orientation")){case "top":a.top+=this.Yb.height;a.height-=this.Yb.height;break;case "right":a.width-=this.Yb.width;break;case "bottom":a.height-=this.Yb.height;break;case "left":a.left+=this.Yb.width,a.width-=this.Yb.width}return a};$.g.GG=ba(3); +$.g.ri=function(){if(!this.enabled())return new $.I(0,0,0,0);this.Yb&&!this.J(4)||Zv(this);return this.Yb.clone()};$.g.mk=function(){var a=this.g("text"),b=$.Xv(this);if($.n(a)||$.n(b))return a=!a&&$.n(b)?b:a,b=this.g("maxLength"),a=vu(a,b)}; +$.g.Wh=function(a){var b=this.g("useHtml"),c=this.mk();if(a||$.n(c)||$.n(b))b?this.hc.htmlText(c):this.hc.text(c);this.hc.fontSize(this.g("fontSize"));this.hc.fontFamily(this.g("fontFamily"));this.hc.color(this.g("fontColor"));this.hc.direction(this.g("textDirection"));this.hc.Lu(this.g("wordBreak"));this.hc.wordWrap(this.g("wordWrap"));this.hc.opacity(this.g("fontOpacity"));this.hc.Xq(this.g("fontDecoration"));this.hc.fontStyle(this.g("fontStyle"));this.hc.fontVariant(this.g("fontVariant"));this.hc.fontWeight(this.g("fontWeight")); +this.hc.letterSpacing(this.g("letterSpacing"));this.hc.lineHeight(this.g("lineHeight"));this.hc.textIndent(this.g("textIndent"));this.hc.textShadow(this.g("textShadow"));this.hc.vAlign(this.g("vAlign"));this.hc.um(this.g("hAlign"));this.hc.textOverflow(this.g("textOverflow"));this.hc.Am(this.g("selectable"));this.hc.Fd(this.g("disablePointerEvents"))}; +$.g.kA=function(){var a=this.ld("rotation");delete this.Jd.rotation;a=$.n(a)?a:this.g("rotation");if($.n(a))return a;switch(this.g("orientation")){case "left":return this.Jd.rotation=-90;case "right":return this.Jd.rotation=90;default:return this.Jd.rotation=0}};$.g.rg=function(a){$.X(a,1)&&this.B(64,1)};$.g.Hk=function(a){$.X(a,2)&&this.B(4,9)};$.g.clear=function(){this.wb&&this.wb.Wi()}; +$.g.F=function(){var a={},b=$.U.prototype.g.call(this,"zIndex");$.n(b)&&(a.zIndex=b);b=$.U.prototype.g.call(this,"enabled");$.n(b)&&(a.enabled=b);$.Nq(this,this.j,a,"Title text");$.Nq(this,this.K,a,"Title props");b=this.margin().F();$.Jc(b)||(a.margin=b);b=this.padding().F();$.Jc(b)||(a.padding=b);b=this.background().F();$.Jc(b)||(a.background=b);return a};$.g.Yd=function(a){return $.z(a)?{text:a,enabled:!0}:$.da(a)||null===a?{enabled:!!a}:null}; +$.g.He=function(a,b){var c=this.Yd(b);return c?(a?(this.na.enabled=c.enabled,"text"in c&&(this.na.text=c.text)):(this.enabled(c.enabled),"text"in c&&this.text(c.text)),!0):!1};$.g.U=function(a,b){$.Sv.u.U.call(this,a,b);$.Fq(this,this.j,a,b);$.Fq(this,this.K,a,b);"padding"in a&&this.padding().fa(!!b,a.padding);"margin"in a&&this.margin().fa(!!b,a.margin);"background"in a&&this.background().fa(!!b,a.background)}; +$.g.R=function(){$.sd(this.Ga,this.Pc,this.Ta,this.wb);this.wb=this.Ta=this.Pc=this.Ga=null;$.Sv.u.R.call(this)};$.H($v,$.Sv);$.pu($v,$.Sv);$v.prototype.Zq=function(){var a=this.width(),b=this.height();return $.ro(a)||$.ro(b)||null===a||null===b};var MF=$.Sv.prototype;MF.textSettings=MF.ce;MF.background=MF.background;MF.margin=MF.margin;MF.padding=MF.padding;MF.getRemainingBounds=MF.xd;MF=$v.prototype;$.F("anychart.standalones.title",function(){var a=new $v;a.fa(!0,$.im("standalones.title"));return a}); +MF.draw=MF.W;MF.parentBounds=MF.ja;MF.container=MF.O;$.H(aw,$.md);$.g=aw.prototype;$.g.getContext=function(){return{parentElement:this.b,titleElement:this.j,separatorElement:this.f,contentElement:this.i}};$.g.Va=function(){cw(this);return this.b};$.g.kP=function(){var a=$.Uf(this.Va(),"margin");$.Bf(this.Va(),this.fb.G.x-a.left,this.fb.G.y-a.top)};$.g.visible=function(a){return $.n(a)?($.Pf(this.Va(),!!a),this):"none"!=this.Va().style.display};$.g.rb=function(){var a=$.Jf(this.Va());return new $.I(0,0,a.width,a.height)}; +$.g.O=function(a){if($.n(a)&&this.Hc!=a)if(null===a)this.remove();else return this.Hc=a,a=this.Va(),this.Hc.appendChild(a),this;return this.Hc};$.g.remove=function(){this.b&&($.Xe(this.b),this.Hc=null)};$.g.R=function(){this.remove();this.b=this.j=this.f=this.i=this.fb=null;aw.u.R.call(this)};$.H(ew,$.md);var Qda={position:"absolute","z-index":9999,left:0,top:0,width:"100%",height:"100%","pointer-events":"none"},NF={position:"relative",left:0,top:0,overflow:"hidden",width:"100%",height:"100%"},Rda={position:"relative",left:0,top:0,opacity:1,"pointer-events":"none"};$.g=ew.prototype;$.g.a_=function(){$.tf(this.Br,Qda);$.tf(this.b.Nl(),NF);$.tf(this.b.ia(),Rda)}; +$.g.O=function(a){return $.n(a)?(a!=this.Hc&&((this.Hc=a)?(this.Hc.appendChild(this.Br),this.a_(),this.b.vt()):$.Xe(this.Br)),this):this.Hc};$.g.Ja=function(){return this.b};$.g.xA=function(){return!0};$.g.Am=function(a){return $.n(a)?(this.j=a,this):this.j};$.g.R=function(){$.od(this.b);this.b=null;$.Xe(this.Br);this.Br=null};$.H(fw,$.md);$.g=fw.prototype;$.g.fe=0;$.g.R=function(){fw.u.R.call(this);this.stop();delete this.b;delete this.jo};$.g.start=function(a){this.stop();this.fe=$.Aj(this.f,$.n(a)?a:this.i)};$.g.stop=function(){this.mq()&&$.Bj(this.fe);this.fe=0};$.g.mq=function(){return 0!=this.fe};$.g.Bea=function(){this.fe=0;this.b&&this.b.call(this.jo)};$.H(hw,$.qf);hw.prototype.R=function(){Rd(this.j);hw.u.R.call(this)};hw.prototype.D=function(){this.f||(this.f=new fw(this.G,this.K,this),$.pd(this,this.f));this.f.start()};hw.prototype.G=function(){if(!this.i.nd){var a=this.b,b=gw(this.i);this.b=b;if(a){var c=!1;a.width!=b.width&&(this.dispatchEvent("b"),c=!0);a.height!=b.height&&(this.dispatchEvent("a"),c=!0);c&&this.dispatchEvent("resize")}else this.dispatchEvent("a"),this.dispatchEvent("b"),this.dispatchEvent("resize")}};$.H(iw,$.qf);iw.prototype.R=function(){iw.u.R.call(this);this.i&&(Rd(this.i),this.i=null);this.b=this.f=null};iw.prototype.j=function(){var a=$.ze(this.f||window);$.nb(a,this.b)||(this.b=a,this.dispatchEvent("resize"))};$.H(jw,ew);$.ja(jw);var Sda={position:"absolute","z-index":9999,left:"-10000px",top:"-10000px"},Tda={position:"absolute","z-index":9999,left:0,top:0},Uda={position:"fixed",left:0,top:0,opacity:1,"pointer-events":"none"},Vda={position:"fixed",left:0,top:0,opacity:1,width:"1px",height:"1px"},Wda={position:"fixed",left:0,top:0,opacity:1,"pointer-events":"none",overflow:"",display:"",width:"",height:""}; +jw.prototype.a_=function(){var a=window.document;$.hd&&(!$.bd("7")||a.documentMode&&6>=a.documentMode)?$.tf(this.Br,Tda):$.tf(this.Br,Sda);"svg"==$.jk?($.tf(this.Ja().Nl(),NF),$.tf(this.Ja().ia(),Uda)):($.tf(this.Ja().Nl(),Vda),$.tf(this.Ja().ia(),Wda));this.D()};jw.prototype.D=function(){if("svg"==$.jk){var a=this.f;a=a.b?a.b.clone():null;this.Ja().resize(a.width,a.height)}};jw.prototype.xA=function(){return!1};jw.prototype.R=function(){$.sd(this.i,this.f);this.f=this.i=null;jw.u.R.call(this)};$.H($.ow,$.Y);$.ow.prototype.qa=$.Y.prototype.qa|6080;var lw=1988;$.ow.prototype.oa=$.Y.prototype.oa|49152;var mw=1,nw=2;$.ow.prototype.ba=$.qq();$.S($.ow,$.ow.prototype.ba);var Xda=$.ow.prototype,OF={}; +$.nq(OF,[[0,"width",$.Wq],[0,"height",$.Wq],[0,"titleFormat",$.Vq],[0,"format",$.Vq],[0,"unionFormat",$.Vq],[0,"valuePrefix",$.uq],[0,"valuePostfix",$.uq],[0,"position",$.Fk],[0,"anchor",$.Ek],[0,"offsetX",$.wq],[0,"offsetY",$.wq],[0,"x",$.wq],[0,"y",$.wq],[0,"allowLeaveScreen",$.yq],[0,"allowLeaveChart",$.yq],[0,"allowLeaveStage",$.yq],[0,"displayMode",function(a){return $.yk(Bda,a,"single")}],[0,"positionMode",function(a){return $.yk(Cda,a,"float")}],[0,"onDomReady",$.ar],[0,"onBeforeTitleChange", +$.ar],[0,"onTitleChanged",$.ar],[0,"onBeforeContentChange",$.ar],[0,"onContentChanged",$.ar],[0,"hideDelay",$.wq]]);Xda.aQ=OF;$.S($.ow,$.ow.prototype.aQ);$.g=$.ow.prototype;$.g.Ic=function(a,b){for(var c in this.j){var d=this.j[c];d&&d.Ic(a,b)}return Dw(this,a,b)}; +$.g.ce=function(a,b){if($.n(a)){if($.z(a))if($.n(b)&&a in this.ba)this[a](b);else return this.g(a);else{$.V(this);for(var c in a)if(c in this.ba)this[c](a[c]);this.ea(!0)}return this}var d={};for(c in this.ba){var e=this.g(c);$.n(e)&&(d[c]=e)}return d};$.g.padding=function(a,b,c,d){this.Ta||(this.Ta=new $.zu,$.K(this.Ta,this.Iha,this),$.W(this,"padding",this.Ta));return $.n(a)?(this.Ta.N.apply(this.Ta,arguments),this):this.Ta};$.g.Iha=function(a){$.X(a,2)&&(this.cE(),this.B(lw,1))}; +$.g.background=function(a){this.Ga||(this.Ga=new $.qu,$.K(this.Ga,this.rg,this),this.Ga.ib(this),$.W(this,"background",this.Ga));return $.n(a)?(this.Ga.N(a),this):this.Ga};$.g.rg=function(a){$.X(a,1)&&this.B(1024,1)};$.g.title=function(a){this.hb||(this.hb=new $.Sv,$.K(this.hb,this.OA,this),this.hb.ib(this),$.W(this,"title",this.hb));return $.n(a)?(this.hb.N(a),this):this.hb};$.g.OA=function(a){$.X(a,8)?(this.cE(),this.B(lw,1)):$.X(a,1)&&this.B(128,1)}; +$.g.Tr=function(a){this.aa||(this.aa=new Qv,$.K(this.aa,this.Wha,this),this.aa.ib(this),$.W(this,"separator",this.aa));return $.n(a)?(this.aa.N(a),this):this.aa};$.g.Wha=function(a){$.X(a,8)?(this.cE(),this.B(lw,1)):$.X(a,1)&&this.B(256,1)}; +$.g.W=function(){$.Cw(this);var a=this.g("useHtml");if(a){if(this.kf()||this.nd)return this;if(!this.enabled())return this.J(1)&&(this.remove(),this.I(1),this.B(2)),this;if(!this.i.O())return this.remove(),this.I(2),this;this.I(1)}else if(!this.Ac())return this;var b=this.background(),c=this.title(),d=this.Tr(),e=this.Hi();Aw(this,this);this.J(8)&&(zw(this).zIndex(this.zIndex()),this.I(8));if(this.J(4)){Jw(this);var f=this.P;this.ma=this.padding().yj(f);this.Ia=this.da=null;this.I(4)}this.J(64)&& +(this.G=null,Kw(this),a?this.i.kP():zw(this).lc(1,0,0,1,this.G.x,this.G.y),this.I(64));a?dw(this.i):(this.J(1024)&&($.V(b),b.ja(this.P),b.O(zw(this)),b.W(),b.ea(!1),this.I(1024)),this.J(128)&&($.V(c),c.ja(this.ma),c.W(),c.ea(!1),!this.da&&c.enabled()&&(this.da=c.xd()),this.I(128)),this.J(256)&&($.V(d),d.ja(this.da||this.ma),d.W(),d.ea(!1),!this.Ia&&d.enabled()&&(this.Ia=d.xd()),this.I(256)),this.J(512)&&(a=this.Ia||this.da||this.ma,$.V(e),this.Wh(),e.ja(a),e.W(),e.ea(!1),this.I(512)),this.J(4096)&& +this.I(4096));return this};$.g.Ca=function(a){return $.n(a)?(this.sa=a,this):this.sa};$.g.kP=function(a,b){var c=this.g("displayMode");"single"==c&&(tw(this,this.b,a,b),Bw(this.b,a,b));if("union"==c)tw(this,this.b,a,b),Bw(this.b,a,b);else if("separated"==c)for(var d in this.j)if(c=this.j[d])Ew(this,c,a,b),Bw(c,a,b)}; +$.g.Hi=function(a){this.Ld||(this.Ld=new $.pv,$.K(this.Ld,this.wha,this),this.Ld.ib(this),this.Ld.width("100%").height("100%"),$.W(this,"contentInternal",this.Ld));return $.n(a)?(this.Ld.N(a),this):this.Ld};$.g.wha=function(a){$.X(a,8)?(this.cE(),this.B(lw,1)):$.X(a,1)&&this.B(512,1)};$.g.cE=function(){this.G=this.P=null};$.g.remove=function(){this.g("useHtml")&&this.i&&this.i.remove();zw(this).parent(null)};$.g.Sj=function(){return this.Wa||this.check(mw)&&!$.Jc(this.j)}; +$.g.nb=function(){this.G=null;Kw(this);var a=this.g("useHtml"),b=a?0:this.g("offsetX");a=a?0:this.g("offsetY");return new $.I(this.G.x+b,this.G.y+a,this.P.width,this.P.height)};$.g.ri=function(){Jw(this);return this.P};$.g.Wh=function(){if(this.J(512)){$.V(this.Hi());for(var a in this.ba){var b=this.g(a);$.n(b)&&this.Hi().ce(a,b)}this.Hi().adjustFontSize(this.g("adjustFontSize"));this.Hi().minFontSize(this.g("minFontSize"));this.Hi().maxFontSize(this.g("maxFontSize"));this.Hi().ea(!1)}}; +$.g.MK=function(){this.D&&this.D.mq()?this.Ya=!0:($.od(this.D),this.D=new fw(function(){this.remove();this.Ya&&(this.Ya=!1,this.MK())},this.g("hideDelay"),this))};$.g.pN=function(a){if(Hw(this,a.clientX,a.clientY))this.f.xA()||this.f.Am(!0);else{$.Qd(window.document,"mousemove",this.pN,!1,this);var b=zw(this).ia();b&&($.Qd(b,"mouseenter",this.EX,!1,this),$.Qd(b,"mouseleave",this.FX,!1,this));this.yM(a)}}; +$.g.EX=function(){$.Qd(window.document,"mousemove",this.pN,!1,this);zw(this).ia()&&$.Qd(zw(this).ia(),"mouseenter",this.EX,!1,this);this.K=null};$.g.FX=function(a){zw(this).ia()&&$.Qd(zw(this).ia(),"mouseleave",this.FX,!1,this);this.yM(a)};$.g.yM=function(a){if(2==a.pl.buttons)return!0;this.f.xA()||this.f.Am(!1);zw(this).ia()&&$.Qd(zw(this).ia(),"mouseleave",this.yM,!1,this);this.K=null;this.g("hideDelay")?(this.MK(),this.D.mq()||this.D.start()):this.Ic(!0)}; +$.g.parent=function(a){if($.n(a)){if(this.Y!=a){var b=String($.oa(this));null===a?($.dr(this.Y,this.Rc,this),this.title().parent(null),this.Tr().parent(null),this.background().parent(null),this.padding().parent(null),this.Hi().parent(null),this.Hi().padding().parent(null),delete this.Y.j[b],this.Y=null):(this.Y&&$.dr(this.Y,this.Rc,this),this.Y=a,this.title().$e().parent(this.Y.title()),this.Tr().$e().parent(this.Y.Tr()),this.background().$e().parent(this.Y.background()),this.padding().parent(this.Y.padding()), +this.Hi().parent(this.Y.Hi()),this.Hi().padding().parent(this.Y.Hi().padding()),this.Y.j[b]=this,this.uK(),$.K(this.Y,this.Rc,this))}return this}return this.Y};$.g.Rc=function(a){var b=0,c=0;this.uK();if($.X(a,8)||$.X(a,1))b|=lw,c|=8,this.cE();$.X(a,32768)&&(b|=1,c|=1);this.Vb=null;this.B(b,c)};$.g.Ah=function(a){return null!=this.Oa[a]};$.g.g=$.cr;$.g.check=function(a){return $.n(a)?!!(a&this.eb):!0}; +$.g.uK=function(){if(this.g("useHtml")){if(!JE){JE=!0;var a=$.te(),b=$.ve(a.b,"HEAD",void 0,void 0)[0];if(!b){var c=$.ve(a.b,"BODY",void 0,void 0)[0];b=a.sc("HEAD");c.parentNode.insertBefore(b,c)}c=a.sc("STYLE");c.innerHTML=".anychart-tooltip {border-radius: 3px;padding: 5px 10px;background: rgba(33, 33, 33, 0.7);border: none;display: inline-block;box-sizing: border-box;letter-spacing: normal;color: #fff;font-family: Verdana, Helvetica, Arial, 'sans-serif';font-size: 12px;position: absolute;pointer-events: none;margin: 10px 0px 10px 10px;}.anychart-tooltip-separator {color: rgba(206, 206, 206, 0.3);border: none;height: 1px;margin: 5px 0;}.anychart-tooltip-title{font-size: 14px;}"; +a.Kfa(b,c,0)}this.i||(this.i=new aw(this))}else this.i&&this.i.remove();for(var d in this.j)this.j[d].uK();this.G=this.P=null};$.g.dg=function(a){$.n(a)&&(this.Vb=a);return this.Vb};$.g.Zg=function(){var a=this.dg();a||(a=$.Ga(this.Ud(),[this.Ha],this.Wd()),this.dg(a));return a};$.g.Wd=function(){var a=[this.na];this.Y&&(a=$.Ga(a,this.Y.Wd()));return a};$.g.Ud=function(){var a=[this.Oa];this.Y&&(a=$.Ga(a,this.Y.Ud()));return a}; +$.g.F=function(){var a=$.ow.u.F.call(this);$.Nq(this,this.ba,a,void 0,void 0,!0);$.Nq(this,this.aQ,a,void 0,void 0,!0);delete a.x;delete a.y;delete a.zIndex;var b=this.title().F();$.Jc(b)||(a.title=b);b=this.Tr().F();$.Jc(b)||(a.separator=b);b=this.background().F();$.Jc(b)||(a.background=b);b=this.padding().Oa;$.Jc(b)||(a.padding=b);return a}; +$.g.U=function(a,b){$.ow.u.U.call(this,a,b);$.Fq(this,this.ba,a,b);$.Fq(this,this.aQ,a,b);this.title().fa(!!b,a.title);this.Tr().fa(!!b,a.separator);this.background().fa(!!b,a.background);this.padding().fa(!!b,a.padding);var c=a.contentInternal||{};c.position=c.position?c.position:"left-top";c.anchor=c.anchor?c.anchor:"left-top";this.Hi(c)}; +$.g.R=function(){delete this.Oa;delete this.na;if(this.Y){var a=String($.oa(this));$.dr(this.Y,this.Rc,this);delete this.Y.j[a]}for(var b in this.j)(a=this.j[b])&&$.od(a);this.f&&!this.f.xA()&&this.O(null);$.sd(this.hb,this.aa,this.Ld,this.Ga,this.Ta,this.La,this.D,this.i);this.i=this.D=this.La=this.Ta=this.Ga=this.Ld=this.aa=this.hb=null;if(this.f&&this.f.xA()&&Lw(this)){a=!0;for(b in kw)if(kw.hasOwnProperty(b)){var c=kw[b];if(c!=this&&this.f==c.f){a=!1;break}}a&&(b=Mw(this),delete Nw[b],$.od(this.f))}delete this.f; +delete kw[String($.oa(this))];$.ow.u.R.call(this)};var PF=$.ow.prototype;PF.title=PF.title;PF.separator=PF.Tr;PF.background=PF.background;PF.padding=PF.padding;PF.hide=PF.Ic;PF.textSettings=PF.ce;$.H($.Ow,lv);$.Ow.prototype.oa=lv.prototype.oa; +var QF=function(){function a(a){return function(b){var c="itemsSpacing"==a?(0,window.parseFloat)(b):Number(b);return null===b?this.pf(a):(0,window.isNaN)(c)?this.g(a):c}}var b={};$.nq(b,[[0,"inverted",$.yq],[0,"itemsLayout",eba],[0,"iconSize",$.N],[0,"width",$.xq],[0,"height",$.xq],[0,"maxWidth",$.xq],[0,"maxHeight",$.xq],[0,"position",$.Ik],[0,"positionMode",hba],[0,"drag",$.yq],[0,"itemsFormat",$.xq],[0,"titleFormat",$.xq],[0,"itemsHAlign",Gk],[0,"itemsSpacing",a("itemsSpacing")],[0,"itemsSourceMode", +pba],[0,"hoverCursor",Bk],[0,"iconTextSpacing",a("iconTextSpacing")],$.Z.AJ]);return b}();$.S($.Ow,QF);$.g=$.Ow.prototype;$.g.qa=lv.prototype.qa|4032;$.g.items=function(a){return $.n(a)?(this.Aa!=a&&(this.Aa=a,this.B(1040,1)),this):this.Aa};$.g.yA=function(a){return $.n(a)?(a=$.A(a)?$.Ja(a,0):null===a?a:[a],Pw(this,a)||(this.f=a,this.B(1040,1)),this):this.f};$.g.EQ=function(a){return $.n(a)?(this.aa!=a&&(this.aa=a,this.B(1040,1)),this):this.aa}; +$.g.margin=function(a,b,c,d){this.Pc||(this.Pc=new $.Ev,$.K(this.Pc,this.Hk,this),$.W(this,"margin",this.Pc));return $.n(a)?(this.Pc.N.apply(this.Pc,arguments),this):this.Pc};$.g.Hk=function(a){$.X(a,2)&&this.B(4,9)};$.g.padding=function(a,b,c,d){this.Ta||(this.Ta=new $.zu,$.K(this.Ta,this.Hk,this),$.W(this,"padding",this.Ta));return $.n(a)?(this.Ta.N.apply(this.Ta,arguments),this):this.Ta}; +$.g.background=function(a){this.Ga||(this.Ga=new $.qu,$.K(this.Ga,this.rg,this),$.W(this,"background",this.Ga));return $.n(a)?(this.Ga.N(a),this):this.Ga};$.g.rg=function(a){$.X(a,1)&&this.B(64,1)};$.g.title=function(a){this.hb||(this.hb=new $.Sv,$.K(this.hb,this.Fq,this),this.hb.ib(this),$.W(this,"title",this.hb));return $.n(a)?(this.hb.N(a),this):this.hb};$.g.Fq=function(a){var b=0,c=0;$.X(a,1)&&(b|=128,c|=1);$.X(a,8)&&(b|=4,c|=8);this.B(b,c)}; +$.g.DX=function(a){this.i||(this.i=new Qv,$.K(this.i,this.Qja,this),$.W(this,"titleSeparator",this.i));return $.n(a)?(this.i.N(a),this):this.i};$.g.Qja=function(a){var b=0,c=0;$.X(a,1)&&(b|=256,c|=1);$.X(a,8)&&(b|=4,c|=8);this.B(b,c)};$.g.GN=function(a){this.K||(this.K=new Kv,$.K(this.K,this.fia,this),$.W(this,"paginator",this.K));return $.n(a)?(this.K.N(a),this):this.K};$.g.fia=function(a){var b=0,c=0;$.X(a,1)&&(b|=512,c|=1);$.X(a,8)&&(b|=4,c|=8);this.B(b,c)}; +$.g.Ra=function(a){this.fb||(this.fb=new $.ow(0),$.K(this.fb,this.rp,this),$.sw(this.fb,this),this.fb.Fa($.nr.tooltip),$.W(this,"tooltip",this.fb),this.fb.fa(!0,this.fb.na));return $.n(a)?(this.fb.N(a),this):this.fb};$.g.rp=function(){var a=this.Ra();a.O()&&a.W()};$.g.ja=function(a,b,c,d){return $.Ow.u.ja.call(this,a,b,c,d)}; +$.g.xd=function(){var a=this.ja()||$.kn(0,0,0,0);if(!this.enabled()||"inside"==this.g("positionMode"))return a;this.Yb&&!this.J(4)||this.Gm();switch(this.g("position")){case "top":a.top+=this.Yb.height;a.height-=this.Yb.height;break;case "right":a.width-=this.Yb.width;break;default:case "bottom":a.height-=this.Yb.height;break;case "left":a.left+=this.Yb.width,a.width-=this.Yb.width}return a};$.g.nb=function(){this.Yb&&!this.J(4)||this.Gm();return this.Yb}; +$.g.Gm=function(){var a=this.ja();null!=a&&0>=a.width&&0>=a.height&&(a=null);var b=this.margin(),c=this.padding(),d=0,e=0,f=this.g("width"),h=this.g("height"),k=this.g("maxWidth"),l=this.g("maxHeight");if(a){var m=a.width;var p=a.height;if(null!=f){var q=Math.min(m,$.M(f,m),null!=k?$.M(k,m):m);k=c.Ig(b.Ig(q))}else k=null!=k?c.Ig(b.Ig($.M(k,m))):c.Ig(b.Ig(m));if(null!=h){var r=Math.min(p,$.M(h,p),null!=l?$.M(l,p):p);var t=c.Sh(b.Sh(r))}else t=null!=l?c.Sh(b.Sh($.M(l,p))):c.Sh(b.Sh(p))}else $.ea(f)&& +!(0,window.isNaN)(f)?(q=f,k=c.Ig(f)):k=$.ea(k)&&!(0,window.isNaN)(k)?c.Ig(k):window.Infinity,$.ea(h)&&!(0,window.isNaN)(h)?(r=h,t=c.Sh(h)):t=$.ea(l)&&!(0,window.isNaN)(l)?c.Sh(l):window.Infinity;var u,v;h=$.pr(this,"titleSeparator");l=$.pr(this,"paginator");f=$.pr(this,"title");var w=l&&l.g("orientation"),x="bottom"==w||"top"==w,y=f&&(f.g("orientation")||$.Wv(f));y=y&&("bottom"==y||"top"==y);var B=f?0==f.kA()%180:0,G=h&&h.Lb();h&&$.V(h);l&&$.V(l);f&&$.V(f);var D=u=null;do{u&&(D=u);var L=v=0,P=0,Q= +0;if(f&&f.enabled()){f.ja(null);Vv(f,null);f.eB(null);var T=f.ri();y?(T.width>k&&(B?Vv(f,k):f.eB(k),T=f.ri()),Q=T.width,v+=T.height):(T.height>t&&(B?f.eB(t):Vv(f,t),T=f.ri()),P=T.height,L+=T.width)}else T=null;h&&h.enabled()?(h.ja(null),u=h.ri(),G?v+=u.height:L+=u.width):u=null;var sa=k-L;var ua=Cca(this,sa,t-v);var Qa=ua.width;ua=ua.height;v+=ua;L+=Qa;P=Math.max(P,ua);Q=Math.max(Q,Qa);L=Math.max(Q,L);Q=Math.max(P,v);P=t;y&&(P-=T?T.height:0);G&&(P-=u?u.height:0);l.ja(null);v=Pv(l,1);var yb=this.g("itemsLayout"); +if("horizontal"==yb)Qa>sa&&this.Sb&&1sa&&1P&&this.Sb&&1=k-T.width?oc=jb:oc=Qa;T=Math.max(Math.min(f.text().length,1),f.margin().Ig(L-yb<=oc?L-oc:yb));Vv(f,T)}else if(!B&&Q>t){T=0;u&&G&&(T+=u.height);if("top"==w||"bottom"==w)T+=v.height;Qa=Nv(l)&&!x?v.height:0;Qa=Math.max(this.Sb&&this.Sb.length?this.Sb[0].nb().height:0,Qa);T=Math.max(1,f.margin().Sh(t-T-Qa));B?f.eB(T):Vv(f,T)}T=f.ri();h&&(h.width(sa),u=h.ri())}else T=f.ri(),h&&(h.width(ua),u=h.ri());y?P-=T.height:L-=T.width}h&&h.enabled()&&(G?P-=u.height:L-=u.width);T=L;u=P;Nv(l)&&(x?u=P-v.height: +T=L-v.width);Qa=T;L=u;this.b=[];u=0;P=this.Sb&&this.Sb.length;v=this.g("itemsSpacing");for(T=0;TQa?(u++,this.b[u]=[],this.b[u][0]=this.Sb[T],L=this.Sb[T].nb().yd()):(L=L+v+this.Sb[T].nb().yd(),this.b[u].push(this.Sb[T])));break;case "vertical":Qa=this.Sb[T].nb().pd();T+=1;for(P=this.Sb.length;T< +P;T++)T in this.G||(Qa+v+this.Sb[T].nb().pd()>L?(u++,this.b[u]=[],this.b[u][0]=this.Sb[T],Qa=this.Sb[T].nb().pd()):(Qa=Qa+v+this.Sb[T].nb().pd(),this.b[u].push(this.Sb[T])));break;case "horizontal-expandable":var Tb=this.Sb[T].nb().yd()+v,Lb=this.Sb[T].nb().pd()+v,mc=0;for(T+=1;TQa?(mc+=Lb,mc+Q>L?(u++,this.b[u]=[],this.b[u][0]=jb,mc=0):this.b[u].push(jb),Tb=yb+v,Lb=Q+v):(Tb+=yb+v,Lb=Math.max(Lb,Q+v),this.b[u].push(jb)));break; +case "vertical-expandable":for(Tb=this.Sb[T].nb().yd()+v,Lb=this.Sb[T].nb().pd()+v,mc=0,T+=1;TL?(mc+=Tb,mc+yb>Qa?(u++,this.b[u]=[],this.b[u][0]=jb,mc=0):this.b[u].push(jb),Tb=yb+v,Lb=Q+v):(Tb=Math.max(Tb,yb+v),Lb+=Q+v,this.b[u].push(jb)))}(v=$.pr(this,"paginator"))&&Fv(v,u+1);l.ja(null);u=l.nb()}while(!$.ob(D,u));q||(q=sa);r||(r=ua);this.Yb=new $.I(d,e,q,r);if(this.qL)d=this.Sca.ab()&&(d=a.ab()-q),ea.Sa()&&(e=a.Sa()-r));else if(a){b=this.g("position");c=this.g("align");d=a.sb();e=a.Ub();switch(b){case "left":case "right":switch(c){case "center":e+=(p-r)/2;break;case "right":case "bottom":e=a.Sa()-r}break;case "top":case "bottom":switch(c){case "center":d+=(m-q)/2;break;case "right":case "bottom":d= +a.ab()-q}}switch(b){case "right":d=a.ab()-q;break;case "bottom":e=a.Sa()-r}}else d=$.M(b.g("left"),0),e=$.M(b.g("top"),0);this.Yb.left=d;this.Yb.top=e;this.padding().yj(this.margin().yj(this.Yb));a=this.Yb.clone();a.left=0;a.top=0;this.ma=this.margin().yj(a);this.Md=this.padding().yj(this.ma);h&&h.ea(!1);l&&l.ea(!1);f&&f.ea(!1);this.I(4)};$.g.remove=function(){this.Ma&&this.Ma.parent(null)}; +$.g.W=function(){if(!this.Ac())return this;this.Ma||(this.Ma=$.nk(),$.ju(this,this.Ma),this.ba||(this.ba=$.nk(),this.ba.parent(this.Ma).zIndex(20)));this.J(8)&&(this.Ma.zIndex(this.zIndex()),this.I(8));var a=this.O(),b=a?a.Ja():null;this.J(2)&&(this.Ma.parent(a),this.I(2),"svg"==$.jk&&(this.P=$.kg(),a=this.P.Np(),this.D=this.P.No(),a.appendChild(this.D)));(a=b&&!b.tf())&&b.suspend();this.J(1024)&&(this.Ia=!0,this.I(1024));if(this.J(16)){var c=this.EQ(),d=Dca(this);this.g("inverted")&&(d=d.reverse()); +d=$.E(c)?c(d):d;this.Sb&&this.Sb.length!=d.length&&(this.Ia=!0);c=Eca(this,d);Fca(this,c);this.I(16)}Gca(this);if(this.J(4)){if(this.Sb&&"..."==this.g("textOverflow"))for(c=0,d=this.Sb.length;ca.nearestPointToCursor.distance&&(a.series.$().select(a.nearestPointToCursor.index),h=a)});"single"==this.fb.g("displayMode")?$.Fw(this.fb,[h],a.originalEvent.clientX,a.originalEvent.clientY,h.series,this.Ju()):$.Fw(this.fb,b,a.originalEvent.clientX,a.originalEvent.clientY,h.series,this.Ju())}}};$.g.mJ=function(a){this.fb.kP(a.clientX,a.clientY)};$.g.Ju=function(){return!1}; +$.g.contextMenu=function(a){this.jk||(this.jk=$.$p.ui.contextMenu(!!$.C(a)&&a.fromTheme))&&this.jk.itemsProvider(this.FR);return $.n(a)?(this.jk&&this.jk.setup(a),this):this.jk}; +$.g.FR=function(a){var b=a.event?a.event.target.Si():null,c=a.event?$.po(a.event.domTarget):null;b=$.C(c)&&$.n(c.X)&&c.X.seriesType&&$.n(c.index)||b&&b.seriesType;c={};$.$p.exports&&$.Sc(c,$.Nl($.WF.exporting));$.Sj()&&a.menuParent&&$.Sc(c,$.Nl($.WF[a.menuParent.fullScreen()?"full-screen-exit":"full-screen-enter"]));$.Sc(c,$.Nl($.WF.main));return a.menuParent.Yw(c,a,b)};$.g.Yw=function(a){return a};$.g.JN=ba(14); +$.g.gM=function(){var a=[],b,c,d,e=this.Qe();for(c=0;cp.hg||!d)d=m.X,e=p.index,f=$.Aa(m.ud,p.index),h=p.hg}}a={index:e,series:d};a[b]=c?!f:f;return a}; +$.g.Uk=function(a,b,c,d,e){var f=this.AD(c,a,d),h=[];if(!d)for(var k=0;kx.Be.hg&&(w=x))}q=w.X;k=$.kx(q.state,$.to);u=1==k.length&&k[0]==w.Be.index;h=!u||u&&e;if(c=e)c=!!(q.state.Zj()&$.to);!c&&e||u||q.he();q.Zi(w.Be.index,a);k=$.kx(q.state,$.to);if(k.length)for(d.push({X:q,ud:[w.Be.index],Be:w.Be}),l=this.Qe(),f=0;fe?c+e:c,l=0>f?d+f:d;return{type:a,offsetX:h.offsetX,offsetY:h.offsetY,clientX:h.clientX,clientY:h.clientY,screenX:h.screenX,screenY:h.screenY,button:h.button,actionButton:h.actionButton,keyCode:h.keyCode,charCode:h.charCode,ctrlKey:h.ctrlKey,altKey:h.altKey,shiftKey:h.shiftKey,metaKey:h.metaKey,platformModifierKey:h.platformModifierKey,clientStartX:c+b.x,clientStartY:d+b.y,clientLeft:k+b.x,clientTop:l+b.y,startX:c,startY:d,left:k,top:l, +width:Math.abs(e),height:Math.abs(f)}};$.g.Sha=function(a,b,c,d,e,f){return this.dispatchEvent(this.Rz("selectmarqueestart",a,b,c,d,e,f))};$.g.Qha=function(a,b,c,d,e,f){return this.dispatchEvent(this.Rz("selectmarqueechange",a,b,c,d,e,f))};$.g.Rha=function(a,b,c,d,e,f){a=this.Rz("selectmarqueefinish",a,b,c,d,e,f);(b=this.dispatchEvent(a))&&this.pO(a);this.UA=!1;return b};$.g.pO=function(){}; +$.g.fullScreen=function(a){var b=this.O();b=b?b.Ja():null;return $.n(a)?(b&&b.fullScreen(a),this):b?b.fullScreen():!1};$.g.Ay=function(){var a=this.O();return(a=a?a.Ja():null)?a.Ay():!1};$.g.qG=function(a){var b=$.fa.anychart.exports;b?this.Lt||(this.Lt=b.create()):$.fl(4,null,["Exporting"]);return $.n(a)&&this.Lt?(this.Lt.U(a),this):this.Lt};$.g.ns=function(){return this.Qe()};$.g.t1=function(){var a=$.Ga.apply(null,(0,$.Wa)(this.ns(),function(a){return a.data().Lv()}));$.Ka(a,a,$.no);return a}; +$.g.eW=function(a,b,c){var d;if($.A(b))for(d=0;da&&(a=-3),$.n(d.axis)&&d.axis===d.HORIZONTAL_AXIS?b=a:c=a);$.ea(this.i)&&(b=$.Za(b,-this.i,this.i));$.ea(this.j)&&(c=$.Za(c,-this.j,this.j));this.D&&(b=-b);b=new zx(a,d,b,c);this.dispatchEvent(b)};$.xx.prototype.R=function(){$.xx.u.R.call(this);Rd(this.f);this.f=null};$.H(zx,$.xd);$.H($.Ax,$.U);$.Ax.prototype.oa=$.U.prototype.oa|32779;$.Ax.prototype.ts=function(a){var b=$.Ax.u.ts.call(this,a),c=this.flatten().enabled;"enabled"==a?(b=32768,c&&(b|=this.f,this.f=0)):c||(this.f|=b);return b};var bG={}; +$.nq(bG,[[0,"format",$.Vq],[1,"adjustFontSize",tq],[0,"fontVariant",$.al],[0,"letterSpacing",$.rq],[0,"textDirection",$.bl],[0,"textIndent",$.wq],[0,"textShadow",$.$b],[0,"textOverflow",$.Tq],[0,"useHtml",$.yq],[0,"wordBreak",$.xq],[0,"wordWrap",$.xq],[0,"fontColor",$.vq],[0,"fontDecoration",$.Zk],[0,"fontFamily",$.uq],[0,"fontOpacity",$.wq],[0,"fontSize",$.rq],[0,"fontStyle",$.$k],[0,"fontWeight",$.rq],[0,"hAlign",$.Xk],[0,"lineHeight",$.rq],[0,"minFontSize",$.rq],[0,"maxFontSize",$.rq],[0,"maxLength", +$.sq],[0,"vAlign",$.Yk],[0,"anchor",$.Ek],[0,"height",$.Wq],[0,"offsetX",$.Wq],[0,"offsetY",$.Wq],[0,"position",$.Fk],[0,"rotation",$.wq],[0,"width",$.Wq],[0,"zIndex",$.wq],[0,"allowMultiline",$.Tq],[0,"clip",$.xq],[0,"enabled",$.Tq],[0,"selectable",$.yq],[0,"disablePointerEvents",$.yq],[0,"autoRotate",$.yq]]);$.S($.Ax,bG);$.g=$.Ax.prototype; +$.g.parent=function(a){return $.n(a)?(this.Y!=a&&(null===a?($.dr(this.Y,this.Rc,this),this.padding().parent(null),this.Y=null):(this.Y&&$.dr(this.Y,this.Rc,this),this.Y=a,this.padding().parent(this.Y.padding()),$.K(this.Y,this.Rc,this),this.eh())),this):this.Y};$.g.Rc=function(a){this.eh();this.va(a.f)};$.g.g=$.cr;$.g.dg=function(a){$.n(a)&&(this.Vb=a);return this.Vb};$.g.Zg=$.br;$.g.Wd=function(){var a=[this.na];this.Y&&(a=$.Ga(a,this.Y.Wd()));return a}; +$.g.Ud=function(){var a=[this.Oa];this.Y&&(a=$.Ga(a,this.Y.Ud()));return a};$.g.eh=function(){this.b=null};$.g.flatten=function(){if(!this.b){this.b={};for(var a in bG)bG.hasOwnProperty(a)&&(this.b[a]=this.g(a))}return this.b};$.g.mk=function(a){var b=this.g("format")||$.bp;$.z(b)&&(b=$.Fu($.Du.Gd(),b));a=b.call(a,a);a=$.n(a)?String(a):"";b=this.flatten().maxLength;return a=vu(a,b)}; +$.g.padding=function(a,b,c,d){this.Ta||(this.Ta=new $.zu,$.W(this,"padding",this.Ta),$.K(this.Ta,this.Zl,this));return $.n(a)?(this.Ta.N.apply(this.Ta,arguments),this):this.Ta};$.g.Zl=function(){this.va(2)};$.g.background=function(a){this.Ga||(this.Ga=new $.qu);return $.n(a)?this:this.Ga};$.g.He=function(a,b){return $.da(b)?(this.enabled(b),!0):!1};$.g.U=function(a,b){$.Ax.u.U.call(this,a,b);$.Fq(this,bG,a,b);this.padding().fa(!!b,a.padding)}; +$.g.F=function(){var a=$.Ax.u.F.call(this);$.Nq(this,bG,a,void 0,void 0,!0);var b=$.pr(this,"padding");b&&(b=$.Qc(b.Oa),$.Jc(b)||(a.padding=b));return a};$.g.R=function(){this.b=null;this.parent(null);$.sd(this.Ta,this.Ga);this.Ga=this.Ta=null;$.Ax.u.R.call(this)};var cG=$.Ax.prototype;cG.padding=cG.padding;cG.background=cG.background;$.g=$.Bx.prototype;$.g.width=function(){return this.Za?this.Za.width:0};$.g.height=function(){if(this.Za)var a=this.Za.height;else if(this.b.length)for(var b=a=0;ba?a+3:Math.round(1.2*a),this.aa=Math.round(.8*this.Ha)));return this}return this.f};$.g.HJ=function(a){this.Aa+=a};$.g.GJ=function(){this.Aa+="\n"};$.g.JL=function(){this.text(this.Aa);this.Aa="";Ex(this)}; +$.g.text=function(a){return $.n(a)?(a=jc(a),a=$.ic(a),this.hc!=a&&(this.Yn.text=!0,this.hc=a),this):this.hc};$.g.sc=function(){this.ia=this.P.Kx()};$.g.Td=function(){this.ia||this.sc();return this.ia}; +$.g.Cj=function(){var a;if(this.ma||this.da)for(this.G&&this.G.Cj(),this.K&&this.K.Cj(),a=0;ae?h+e+270:h+e+90:h,h=$.n(c)&&c.anchor||this.g("anchor");a=$.Pu(this,a,b,c,d);b=f;c=$.Co(a,h);b=$.Ib($.bb(b),c.x,c.y);a=$.ln(a)||[];b.transform(a, +0,a,0,4);return a};$.Sx.prototype.NK=function(){return new $.Tx};$.H($.Tx,$.Lu);var Zda=$.Tx.prototype,eG=$.Qc($.Lu.prototype.TB);$.mq(eG,0,"autoRotate",$.yq);Zda.TB=eG;$.S($.Tx,$.Tx.prototype.TB);$.Tx.prototype.kA=function(a){var b=this.ic("rotation");return this.ic("autoRotate")?0a?b+a+270:b+a+90:b}; +$.Tx.prototype.mf=function(a,b){this.b||$.Mu(this);var c=this.b.positionFormatter,d=this.ub.path()?"center":Iu(this.b.anchor)||"left-top",e=this.b.offsetX||0,f=this.b.offsetY||0,h=this.Zo,k=this.wc(),l=$.Qc(c.call(k,k));c=l.angle;k=l.radius;l=$.n(l.radiusY)?l.radiusY:k;var m=0,p=0,q=h.Bc(),r=h.yc(),t=h.Wy();h=h.Iy();if(b||!(0,window.isNaN)(q)&&!(0,window.isNaN)(r)){m=b.left;p=b.top;var u=b.width,v=b.height;m=(0,window.isNaN)(q)?m+u/2:q;p=(0,window.isNaN)(r)?p+v/2:r;f=$.n(h)&&!(0,window.isNaN)(h)? +$.M(f,h):b?$.M(f,Math.min(u,v)/2):0;c+=$.M(e,null!=t?t:360);k+=f;l+=f}e=m+$.db(c,k);f=p+$.eb(c,l);d=$.Co(new $.I(0,0,a.width,a.height),d);e-=d.x;f-=d.y;this.Gg+=e;this.Hg+=f;a.left=e;a.top=f;this.b.rotation=this.kA(c);this.pr?this.ub.x(this.Gg).y(this.Hg):this.ub.setPosition(this.Gg,this.Hg)};$.H($.Ux,$.Y);var $da=function(){var a={};$.nq(a,[$.Z.pz,$.Z.Qn,$.Z.PP,$.Z.QP,$.Z.vY,$.Z.UP,[0,"position",$.vq],[0,"size",$.sq],[0,"anchor",function(a){return null===a?a:$.Ek(a)}],[0,"type",function(a){$.E(a)||(a=$.Lk(a));return a}]]);return a}();$.S($.Ux,$da);$.g=$.Ux.prototype;$.g.oa=$.Y.prototype.oa;$.g.qa=$.Y.prototype.qa|80;$.g.VS=function(){$.Ux.u.VS.call(this);for(var a in this.na)a in this.ua&&(this.b[a]=!0)}; +$.g.enabled=function(a){return $.n(a)?(null===this.j&&a&&this.B(1,this.er()),this.j=a,this.BE=null!==this.Oa.enabled,$.Ux.u.enabled.call(this,a),this):this.j};$.g.Na=function(){return this.Oa.type||this.na.type};$.g.Pm=function(){return $.n(this.Oa.fill)?this.Oa.fill:this.na.fill};$.g.JI=function(a){this.D=a};$.g.g=function(a){var b=$.Ux.u.g.call(this,a);b||("stroke"==a?b=this.G||"none":"fill"==a?b=this.D||"black":"type"==a&&(b=this.AF||"diagonal-cross"));return b}; +$.g.ra=function(a,b){$.Ux.u.ra.call(this,a,b);this.b[a]=!0};$.g.$j=function(){return $.n(this.Oa.stroke)?this.Oa.stroke:this.na.stroke};$.g.KI=function(a){this.G=a};$.g.Fd=function(a){return $.n(a)?(this.lL=a,this.B(16,1),this):this.lL}; +$.g.measure=function(a){this.i||(this.i=$.pk());var b=this.ja();if(b){var c=b.width;var d=b.height}var e=this.g("type");var f=this.g("size");b=this.g("anchor");var h=this.g("offsetX"),k=this.g("offsetY");e=$.z(e)?$.vp(e):e;this.i.clear();e.call(this,this.i,0,0,f);f=this.i.rb();a=$.Qc(this.g("positionFormatter").call(a,a));a=new $.gb(a.x,a.y);e=$.Co(new $.I(0,0,f.width,f.height),b);a.x-=e.x;a.y-=e.y;$.Vo(a,b,$.n(h)?$.M(h,c):0,$.n(k)?$.M(k,d):0);f.left=a.x;f.top=a.y;return f}; +$.g.clear=function(a){this.f||(this.f=[]);if(this.Gc&&this.Gc.length)if($.n(a))this.Gc[a]&&(this.Gc[a].clear(),this.f.push(this.Gc[a]),delete this.Gc[a]);else{for(a=this.Gc.length;a--;){var b=this.Gc[a];b&&(b.clear(),this.f.push(b))}this.Gc.length=0;this.B(64,1)}else this.Gc=[];return this};$.g.ap=function(a){a=+a;return this.Gc&&this.Gc[a]?this.Gc[a]:null};$.g.NG=function(){return this.b};$.g.Td=function(){return this.wb}; +$.g.add=function(a,b){$.n(this.Gc)||(this.Gc=[]);if($.n(b)){var c=+b;var d=this.Gc[c]}d?d.clear():(d=this.f&&0b||b>$.vy(this))throw Error("Child component index out of bounds");this.D&&this.j||(this.D={},this.j=[]);if(a.getParent()==this){var d=a.dy();this.D[d]=a;$.Fa(this.j,a)}else $.Mc(this.D,a.dy(),a);a.Yk(this);$.Da(this.j,a,b);a.qf&&this.qf&&a.getParent()==this?(c=this.eD(),b=c.childNodes[b]||null,b!=a.Va()&&c.insertBefore(a.Va(),b)):c?(this.Cd||this.sc(),b=this.wd(b+1),a.aE(this.eD(),b?b.Cd:null)):this.qf&& +!a.qf&&a.Cd&&a.Cd.parentNode&&1==a.Cd.parentNode.nodeType&&a.Cg()};$.g.eD=function(){return this.Cd};$.g.wd=function(a){return this.j?this.j[a]||null:null};$.g.Kj=function(a,b){this.j&&(0,$.Ne)(this.j,a,b)};$.g.Bf=function(a){return this.j&&a?(0,$.za)(this.j,a):-1};$.g.removeChild=function(a,b){if(a){var c=$.z(a)?a:a.dy();a=$.wy(this,c);c&&a&&($.Lc(this.D,c),$.Fa(this.j,a),b&&(a.vh(),a.Cd&&$.Xe(a.Cd)),a.Yk(null))}if(!a)throw Error("Child is not in parent component");return a}; +$.g.vj=function(a,b){return this.removeChild(this.wd(a),b)};$.g.Wi=function(a){for(var b=[];this.j&&0!=this.j.length;)b.push(this.vj(0,a));return b};var yy;$.H($.xy,$.ry);$.g=$.xy.prototype;$.g.Mt=null;$.g.dH=!1;$.g.sc=function(){this.Cd=this.f.sc("INPUT",{type:"text"})};$.g.ll=ba(19);$.g.Cg=function(){$.xy.u.Cg.call(this);var a=new nf(this);a.ta(this.Va(),"focus",this.eU);a.ta(this.Va(),"blur",this.Vea);if($.zy())this.Mg=a;else{$.fd&&a.ta(this.Va(),["keypress","keydown","keyup"],this.efa);var b=$.oe(this.Va());a.ta(b?$.Be(b):window,"load",this.ufa);this.Mg=a;Ay(this)}this.Xn();this.Va().B2=this}; +$.g.vh=function(){$.xy.u.vh.call(this);this.Mg&&(this.Mg.kd(),this.Mg=null);this.Va().B2=null};$.g.R=function(){$.xy.u.R.call(this);this.Mg&&(this.Mg.kd(),this.Mg=null)};$.g.eU=function(){this.dH=!0;var a=this.Va();$.Rj(a,"label-input-label");if(!$.zy()&&!$.By(this)&&!this.b){var b=this;a=function(){b.Va()&&(b.Va().value="")};$.hd?$.Aj(a,10):a()}};$.g.Vea=function(){$.zy()||(this.Mg.dc(this.Va(),"click",this.eU),this.Mt=null);this.dH=!1;this.Xn()}; +$.g.efa=function(a){27==a.keyCode&&("keydown"==a.type?this.Mt=this.Va().value:"keypress"==a.type?this.Va().value=this.Mt:"keyup"==a.type&&(this.Mt=null),a.preventDefault())};$.g.ffa=function(){$.By(this)||(this.Va().value="",$.Aj(this.Rea,10,this))};$.g.Rea=function(){$.By(this)||(this.Va().value=this.i)};$.g.ufa=function(){this.Xn()};$.g.clear=function(){this.Va().value="";null!=this.Mt&&(this.Mt="")};$.g.reset=function(){$.By(this)&&(this.clear(),this.Xn())}; +$.g.pj=function(){return null!=this.Mt?this.Mt:$.By(this)?this.Va().value:""};$.g.Vd=function(){return this.i};$.g.Xn=function(){var a=this.Va();$.zy()?this.Va().placeholder!=this.i&&(this.Va().placeholder=this.i):Ay(this);$.py(a,"label",this.i);$.By(this)?(a=this.Va(),$.Rj(a,"label-input-label")):(this.b||this.dH||(a=this.Va(),$.Pj(a,"label-input-label")),$.zy()||$.Aj(this.Mia,10,this))};$.g.xj=function(a){this.Va().disabled=!a;var b=this.Va();a?$.Rj(b,"label-input-label-disabled"):$.Pj(b,"label-input-label-disabled")}; +$.g.isEnabled=function(){return!this.Va().disabled};$.g.I0=ba(21);$.g.Mia=function(){!this.Va()||$.By(this)||this.dH||(this.Va().value=this.i)};$.H($.Dy,$.Y);$.g=$.Dy.prototype;$.g.zh=function(a){a:{var b=a.type;switch(b){case "mouseout":b="axismarkerout";break;case "mouseover":b="axismarkerover";break;case "mousemove":b="axismarkermove";break;default:a=null;break a}a={type:b,target:this,originalEvent:a,rawValue:this.NJ(),formattedValue:this.vQ(),offsetX:a.offsetX,offsetY:a.offsetY}}a&&this.dispatchEvent(a)};$.g.vQ=function(){return"Value: "+this.NJ()};$.g.oa=$.Y.prototype.oa|4;$.g.qa=$.Y.prototype.qa|20;$.g.nc=function(){return this.sa}; +$.g.qK=function(a){if($.n(a)){var b="gantt"==(a&&$.E(a.Na)&&a.Na());if(a=b?a==this.j?null:a:$.ct(this.j,a,null,15,null,this.vg,this)){var c=this.j==a;this.j=a;var d=this.pa||this.b&&this.b.scale();d?a.ea(!1):b||a.ea(c);c||d||this.B(4,13)}}}; +$.g.Go=function(a){if($.n(a)){var b="gantt"==(a&&$.E(a.Na)&&a.Na()),c=b?a==this.pa?null:a:$.ct(this.pa,a,null,15,null,this.vg,this);if(c||null===a&&this.pa){a=this.pa==c;var d=b&&!this.pa;c||$.dr(this.pa,this.vg,this);this.pa=c;d&&$.K(this.pa,this.vg,this);c&&!b&&c.ea(a);a||this.B(4,13)}return this}return this.pa||this.b&&this.b.scale()||this.j};$.g.v2=function(){return!!this.pa};$.g.vg=function(a){var b=0;$.X(a,4)&&(b|=4);$.X(a,2)&&(b|=1);this.B(4,b|8)}; +$.g.NJ=function(){return $.n(void 0)?(void 0!==this.g("value")&&this.value(void 0),this):this.g("value")};$.g.ZC=function(){var a=9;"consider"==this.g("scaleRangeMode")&&(a|=4);return a};$.g.er=function(){return $.Dy.u.er.call(this)|4};$.g.rs=function(){return[this.NJ()]};$.g.mZ=function(){this.B(4,9)};$.g.axis=function(a){return $.n(a)?(this.b!=a&&(this.b&&$.dr(this.b,this.mZ,this),this.b=a,$.K(this.b,this.mZ,this),this.B(4,13)),this):this.b}; +$.g.Ip=function(a,b,c,d){this.Xg||(this.Xg=new $.zu);return $.n(a)?(this.Xg.N.apply(this.Xg,arguments),this):this.Xg};$.g.Lb=function(){return"horizontal"==this.ue()};$.g.Yr=void 0;$.g.$u=void 0;$.g.W=function(){if(!this.scale())return $.fl(2),this;if(!this.Ac())return this;if(this.J(8)){var a=this.zIndex();$.Ey(this).zIndex(a);this.I(8)}this.J(2)&&(a=this.O(),$.Ey(this).parent(a),this.I(2));this.J(16)&&(this.$u(),this.I(16));this.J(4)&&(this.Yr(),this.I(4));return this}; +$.g.Yp=function(){var a=this.scale();if(a){var b=$.Ey(this),c=a.transform(this.g("value"),.5);b.clear();if(!(0,window.isNaN)(c)&&(0<=c&&1>=c||this.i)){a=this.ja();var d=this.Ip(),e=b.Zk();this.Lb()?(c=a.Ub()+a.height-c*a.height,c=$.O(c,e),b.moveTo(a.sb(),c),b.lineTo(a.ab(),c)):(c=a.sb()+c*a.width,c=$.O(c,e),b.moveTo(c,a.Ub()),b.lineTo(c,a.Sa()));this.i||b.clip(d.yj(a))}}else $.fl(2)};$.g.remove=function(){$.Ey(this).parent(null)};var lG={};$.nq(lG,[[0,"scaleRangeMode",dl]]);$.S($.Dy,lG); +$.Dy.prototype.U=function(a,b){$.Dy.u.U.call(this,a,b);"layout"in a&&a.layout&&this.ue(a.layout);if("axis"in a){var c=a.axis;$.ea(c)?this.sa&&this.axis(this.sa.wG(c)):c.yy&&c.yy()&&this.axis(c)}$.Fq(this,lG,a,b)};$.Dy.prototype.F=function(){var a=$.Dy.u.F.call(this);$.Nq(this,lG,a);return a};$.Dy.prototype.R=function(){this.sa=this.b=null;$.sd(this.D,this.Xg);this.Xg=this.D=null;$.Dy.u.R.call(this)};$.H($.Gy,$.Y);$.Gy.prototype.oa=$.Y.prototype.oa;$.Gy.prototype.qa=$.Y.prototype.qa;var cea=$.Gy.prototype,mG={};$.nq(mG,[[1,"stroke",$.Jq],[0,"length",$.vo],[0,"position",$.Tk]]);cea.rQ=mG;$.S($.Gy,$.Gy.prototype.rQ);$.g=$.Gy.prototype;$.g.orientation=function(a){return $.n(a)?(a=$.Ik(a),this.rh!=a&&(this.rh=a,this.Vo=null),this):this.rh};$.g.remove=function(){this.path&&this.path.parent(null)}; +$.g.W=function(){this.path.clear();this.path.stroke(this.g("stroke"));if(!this.Ac())return this;this.J(8)&&(this.path.zIndex(this.zIndex()),this.I(8));this.J(2)&&(this.path.parent(this.O()),this.I(2));return this};$.g.r0=function(a,b,c,d){a=b.left+a*b.width;b=c.top;a=$.O(a,this.path.Zk());var e=this.g("position"),f=this.g("length");"outside"==e?(b-=d/2,c=-f):(b="center"==e?b+(c.height-f)/2:b+d/2,c=f);this.path.moveTo(a,b);this.path.lineTo(a,b+c)}; +$.g.wS=function(a,b,c,d){c=c.left;a=b.top+b.height-a*b.height;a=$.O(a,this.path.Zk());b=this.g("position");var e=this.g("length");"outside"==b?(c+=d/2,d=e):"center"==b?(c-=e/2,d=e):(c-=d/2,d=-e);this.path.moveTo(c,a);this.path.lineTo(c+d,a)};$.g.qS=function(a,b,c,d){a=b.left+a*b.width;c=c.top;a=$.O(a,this.path.Zk());b=this.g("position");var e=this.g("length");"outside"==b?(c+=d/2,d=e):"center"==b?(c-=e/2,d=e):(c-=d/2,d=-e);this.path.moveTo(a,c);this.path.lineTo(a,c+d)}; +$.g.uS=function(a,b,c,d){c=c.left;a=b.top+b.height-a*b.height;a=$.O(a,this.path.Zk());b=this.g("position");var e=this.g("length");"outside"==b?(c-=d/2,d=-e):(c="center"==b?c-e/2:c+d/2,d=e);this.path.moveTo(c,a);this.path.lineTo(c+d,a)};$.g.F=function(){var a=$.Gy.u.F.call(this);$.Nq(this,this.rQ,a,"AxisTicks");return a};$.g.U=function(a,b){$.Gy.u.U.call(this,a,b);$.Fq(this,this.rQ,a,b)};$.g.R=function(){$.od(this.path);this.path=null;$.Gy.u.R.call(this)};$.H($.Iy,$.Y);$.Iy.prototype.g=function(a){var b=$.Iy.u.g.call(this,a);if("orientation"==a&&null==b||!$.n(b))b=this.Jd[a];return b};var nG={};$.nq(nG,[$.Z.DJ,$.Z.EP,$.Z.FP,$.Z.IB,$.Z.Qn,[0,"staggerMode",$.yq],[0,"staggerMaxLines",$.sq],[0,"staggerLines",$.sq],[0,"orientation",Yq]]);$.S($.Iy,nG);$.g=$.Iy.prototype;$.g.qa=$.Y.prototype.qa|976;$.g.oa=$.Y.prototype.oa;$.g.Oc=null;$.g.xr="axis";$.g.hb=null;$.g.Ba=null;$.g.pc=null;$.g.kb=null;$.g.Qc=null;$.g.Bn=null;$.g.VI=1;$.g.zq=null;$.g.qH=null; +$.g.Ta=null;$.g.$h=null;$.g.yk=null;$.g.title=function(a){this.hb||(this.hb=new $.Sv,$.W(this,"title",this.hb),this.hb.ib(this),$.K(this.hb,this.Fq,this));return $.n(a)?(this.hb.N(a),this):this.hb};$.g.Fq=function(a){var b=0,c=0;$.X(a,8)?(b=this.Ce,c=9):$.X(a,1)&&(b=64,c=1);this.B(b,c)};$.g.labels=function(a){this.Ba||(this.Ba=new $.Hu,$.W(this,"labels",this.Ba),this.Ba.ib(this),$.K(this.Ba,this.Nd,this));return $.n(a)?(!$.C(a)||"enabled"in a||(a.enabled=!0),this.Ba.N(a),this):this.Ba}; +$.g.Nd=function(a){var b=0,c=0;$.X(a,8)?(b=this.Ce,c=9):$.X(a,1)&&(b=384,c=1);this.labels().clear();this.fs();this.ck=null;this.$d();this.B(b,c)};$.g.ob=function(a){this.pc||(this.pc=new $.Hu,$.W(this,"minorLabels",this.pc),this.pc.ib(this),$.K(this.pc,this.v$,this));return $.n(a)?(!$.C(a)||"enabled"in a||(a.enabled=!0),this.pc.N(a),this):this.pc};$.g.v$=function(a){var b=0,c=0;$.X(a,8)?(b=this.Ce,c=9):$.X(a,1)&&(b=128,c=1);this.ck=null;this.$d();this.ob().clear();this.B(b,c)};$.g.jl=function(){return new $.Gy}; +$.g.fF=function(){return this.line?this.line:this.line=$.pk()};$.g.Ua=function(a){this.kb||(this.kb=this.jl(),$.W(this,"ticks",this.kb),this.kb.ib(this),$.K(this.kb,this.gZ,this));return $.n(a)?(this.kb.N(a),this):this.kb};$.g.vb=function(a){this.Qc||(this.Qc=this.jl(),$.W(this,"minorTicks",this.Qc),this.Qc.ib(this),$.K(this.Qc,this.gZ,this));return $.n(a)?(this.Qc.N(a),this):this.Qc};$.g.gZ=function(a){var b=0,c=0;$.X(a,8)?(b=this.Ce,c=9,this.$d()):$.X(a,1)&&(b=256,c=1);this.B(b,c)}; +$.g.scale=function(a){if($.n(a)){if(this.Bn!=a&&(a=$.ct(this.scale(),a,null,this.eT(),null,this.vg,this))){var b=this.Bn==a;this.Bn=a;this.fs();this.ck=null;this.$d();this.labels().clear();this.ob().clear();a.ea(b);b||this.B(this.Ce,9)}return this}return this.Bn};$.g.eT=function(){return 15};$.g.vg=function(a){$.X(a,2)&&(this.fs(),this.ck=null,this.$d(),this.labels().clear(),this.ob().clear(),this.B(this.Ce,9))}; +$.g.padding=function(a,b,c,d){this.Ta||(this.Ta=new $.zu,$.W(this,"padding",this.Ta),$.K(this.Ta,this.Zl,this));return $.n(a)?(this.Ta.N.apply(this.Ta,arguments),this):this.Ta};$.g.Zl=function(a){$.X(a,2)&&(this.fs(),this.ck=null,this.$d(),this.B(this.Ce,9))};$.g.yy=function(){return!0};$.g.fs=function(){this.ma=null}; +$.g.hy=function(a){if(!this.ck||this.J(512)){var b=this.scale();if(b){var c=this.labels();var d=c.enabled();var e=b.Ua().get();var f=e.length;if(d){var h;var k=0;for(h=f;k$.Fo(k)?this.qH:null,B=this.g("drawFirstLabel"),G=this.g("drawLastLabel");if($.J(b,$.dt)){c=k=0;for(var D;k=T&&B||1<=T&&G?t=x:0T&& +(t=x));x++}Q<=D&&k=T&&B||1<=T&&G?(u=c,q.push(!0)):0T?(u=c,q.push(!0)):q.push(!1))):q.push(!1),c++)}m||(q=!1)}else if($.J(b,Ps))for(G? +(v=this.qd(f-1,!0,e,a),v=y?Ky(this,y,v)?null:v:v):v=null,k=0;ka)return null;var e=b?this.$h:this.yk;if($.n(e[a]))return e[a];var f=Ny(this,c[a]);if(0>f||1=T&&h.call(f,T,m,r,t,l),v==e-1&&(T=a.transform(P,1),0<=T&&1>=T&&h.call(f,T,m,r,t,l))),sa=$.A(w)?w[v]:w,this.je(k,p,v,l,!0,b,sa&&0<=p&&1>=p);this.labels().W()}this.title().ea(!1);this.labels().ea(!1);this.ob().ea(!1);c.ea(!1);d.ea(!1);return this}; +$.g.remove=function(){this.hb&&this.hb.remove();this.line&&this.line.parent(null);this.Ua().remove();this.vb().remove();this.Ba&&this.Ba.remove();this.pc&&this.pc.remove()};$.g.mo=function(){this.fs();this.ck=null;this.$d();this.B(this.Ce,9)}; +$.g.gq=function(a,b){var c=this.scale(),d,e=!0,f=!1;if($.J(c,$.It)){var h=c.Ua().names()[a];var k=b;var l=d="string";e=!1}else $.J(c,$.ft)?(h=$.os(b),d="string",l="date-time",k=b,f=!0):(h=(0,window.parseFloat)(b),k=(0,window.parseFloat)(b),d=l="number");h={axis:{value:this,type:""},index:{value:a,type:"number"},value:{value:h,type:d},tickValue:{value:k,type:l},scale:{value:c,type:""}};e&&(h.max={value:$.n(c.max)?c.max:null,type:"number"},h.min={value:$.n(c.min)?c.min:null,type:"number"});f&&(e=c.Ua(), +h.intervalUnit={value:e.nT(),type:"string"},h.intervalUnitCount={value:e.oT(),type:"number"},e=c.vb(),h.minorIntervalUnit={value:e.nT(),type:"string"},h.minorIntervalUnitCount={value:e.oT(),type:"number"});c={};c["%AxisName"]={value:this.title().text(),type:"string"};e=new $.xw(h);e.Bm({"%AxisScaleMax":"max","%AxisScaleMin":"min"});e.zl(c);return $.gv(e)};$.g.Lb=function(){var a=this.g("orientation");return"top"==a||"bottom"==a}; +$.g.F=function(){var a=$.Iy.u.F.call(this);$.Nq(this,nG,a);a.title=this.title().F();a.labels=this.labels().F();a.minorLabels=this.ob().F();a.ticks=this.Ua().F();a.minorTicks=this.vb().F();return a};$.g.U=function(a,b){$.Iy.u.U.call(this,a,b);$.Fq(this,nG,a,b);"title"in a&&this.title().fa(!!b,a.title);"padding"in a&&this.padding(a.padding);this.labels().fa(!!b,a.labels);this.ob().fa(!!b,a.minorLabels);this.Ua(a.ticks);this.vb(a.minorTicks)}; +$.g.R=function(){this.Bn&&$.dr(this.Bn,this.vg,this);this.Bn=null;$.sd(this.hb,this.Ta,this.line,this.Ba,this.pc,this.kb,this.Qc);this.Qc=this.kb=this.pc=this.Ba=this.line=this.Ta=this.hb=null;this.$h.length=0;this.yk.length=0;this.zq=null;$.Iy.u.R.call(this)};$.H(Oy,$.Iy);$.pu(Oy,$.Iy);var oG=$.Iy.prototype;oG.title=oG.title;oG.labels=oG.labels;oG.minorLabels=oG.ob;oG.ticks=oG.Ua;oG.minorTicks=oG.vb;oG.scale=oG.scale;oG.getRemainingBounds=oG.xd;oG.isHorizontal=oG.Lb;oG.padding=oG.padding; +oG.getPixelBounds=oG.nb;oG=Oy.prototype;$.F("anychart.standalones.axes.linear",function(){var a=new Oy;a.Fa("standalones.linearAxis");return a});oG.padding=oG.padding;oG.draw=oG.W;oG.parentBounds=oG.ja;oG.container=oG.O;$.H($.Py,mv);$.Py.prototype.zh=function(a){a:{var b=a.type;switch(b){case "mouseout":b="axismarkerout";break;case "mouseover":b="axismarkerover";break;case "mousemove":b="axismarkermove";break;default:a=null;break a}a={type:b,target:this,originalEvent:a,rawValue:Ry(this),formattedValue:"Value: "+Ry(this),offsetX:a.offsetX,offsetY:a.offsetY}}a&&this.dispatchEvent(a)};$.Py.prototype.oa=mv.prototype.oa|4;$.Py.prototype.qa=mv.prototype.qa;var pG={};$.nq(pG,[$.Z.AJ,[0,"scaleRangeMode",dl]]);$.S($.Py,pG); +$.g=$.Py.prototype;$.g.nc=function(){return this.sa};$.g.qK=function(a){if($.n(a)){var b="gantt"==(a&&$.E(a.Na)&&a.Na());if(a=b?a==this.j?null:a:$.ct(this.j,a,null,15,null,this.vg,this)){var c=this.j==a;this.j=a;var d=this.pa||this.b&&this.b.scale();d?a.ea(!1):b||a.ea(c);c||d||this.B(4,13)}}}; +$.g.Go=function(a){if($.n(a)){var b="gantt"==(a&&$.E(a.Na)&&a.Na());if(a=b?a==this.pa?null:a:$.ct(this.pa,a,null,15,null,this.vg,this)){var c=this.pa==a;this.pa=a;b||a.ea(c);c||this.B(4,13)}return this}return this.pa||this.b&&this.b.scale()||this.j};$.g.v2=function(){return!!this.pa};$.g.vg=function(a){if(a.target==this.Go()){var b=0;$.X(a,4)&&(b|=4);$.X(a,2)&&(b|=1);this.B(4,b|8)}};$.g.nZ=function(){this.B(4,9)}; +$.g.axis=function(a){return $.n(a)?(this.b!=a&&(this.b&&$.dr(this.b,this.nZ,this),this.b=a,$.K(this.b,this.nZ,this),this.B(4,13)),this):this.b};$.g.Ip=function(a,b,c,d){this.Xg||(this.Xg=new $.zu);return $.n(a)?(this.Xg.N.apply(this.Xg,arguments),this):this.Xg};$.g.ue=function(a){return $.n(a)?(a=$.Hk(a),this.f!=a&&(this.f=a,this.B(4,9)),this):this.f?this.f:this.b?(a=this.b.g("orientation"),"left"==a||"right"==a?"horizontal":"vertical"):this.D};$.g.Lb=function(){return"horizontal"==this.ue()}; +$.g.Ac=function(){var a=$.Py.u.Ac.call(this)&&!(null==Ry(this)||!this.Go());if(!a)return a;a=this.scale().transform(Ry(this),.5);if(0<=a&&1>=a||this.G)return this.B(6),!0;this.remove();this.I(6);return!1};$.g.c1=function(){var a=this.g("rotation");return null==a||(0,window.isNaN)(a)?this.Lb()?0:-90:a};$.g.CQ=function(){var a=this.g("align");if(this.Lb()){if("left"==a)return"left-center";if("right"==a)return"right-center"}else{if("top"==a)return"center-top";if("bottom"==a)return"center-bottom"}return"center"}; +$.g.gA=function(){var a=this.g("anchor");if(!a||"auto"==a)switch(this.CQ()){case "center-top":case "right-center":a="right-center";break;case "center-bottom":case "left-center":a="left-center";break;default:a="center"}return a};$.g.i1=function(){return this.i}; +$.g.ja=function(a,b,c,d){return $.n(a)?(null===a||$.J(a,$.I)?this.i=a:"object"==$.ka(a)?this.i=new $.I(a.left,a.top,a.width,a.height):this.i=new $.I(a||0,b||0,c||0,d||0),this.mo(),this):null!=Ry(this)&&this.Go()&&this.i?(a=this.i.clone(),b=this.scale().transform(Ry(this),.5),this.Lb()?(a.height=0,a.top=Math.round(this.i.top+this.i.height-b*this.i.height)):(a.width=0,a.left=Math.round(this.i.left+b*this.i.width)),a):null};$.g.ZC=function(){var a=9;"consider"==this.g("scaleRangeMode")&&(a|=4);return a}; +$.g.er=function(){return $.Py.u.er.call(this)|4};$.g.rs=function(){return[Ry(this)]};$.g.F=function(){var a=$.Py.u.F.call(this);$.Nq(this,pG,a,"TextBase");this.f&&(a.layout=this.f);return a};$.g.U=function(a,b){$.Py.u.U.call(this,a,b);$.Fq(this,pG,a,b);"layout"in a&&a.layout&&this.ue(a.layout);if("axis"in a){var c=a.axis;$.ea(c)?this.sa&&this.axis(this.sa.wG(c)):c.yy&&c.yy()&&this.axis(c)}};$.g.R=function(){$.od(this.Xg);this.b=this.sa=this.Xg=null;$.Py.u.R.call(this)};$.H($.Sy,$.U);$.Sy.prototype.qa=$.U.prototype.qa;$.Sy.prototype.oa=$.U.prototype.oa|$.uE|$.vE;var Rca=Date.UTC(2E3,10,29,23,59,59,999);$.g=$.Sy.prototype;$.g.Iw=function(){return this.we};$.g.labels=function(a){return $.n(a)&&this.Ba!=a?(this.Ba&&$.dr(this.Ba,this.rr,this),this.Ba=a,$.K(this.Ba,this.rr,this),this):this.Ba};$.g.rr=function(){this.we.length||$.Uy(this);for(var a=this.labels().flatten(),b=0;b=f.offset?b=f:c=f}var h;b?c?h=$.Fl(c.color,b.color,(a-b.offset)/(c.offset-b.offset)):h=b.color:h=c.color;return $.A(h)?$.Rb(h):h.color}; +$.g.yR=function(a){this.pb();a=$.zl($.Gl(a).pk);var b;var c=0;for(b=this.Te.length;c=d?(l=d-1,f=!0):l--;var m=c[k].Yo;if($.da(m)){m=(c[k].start+c[k].end)/2;var p=(c[l].start+c[l].end)/2}else p=c[l].Yo;e.push(k==l?m:[m,p])}return e};$.H($.Zy,Ps);$.g=$.Zy.prototype;$.g.Na=function(){return"ordinal-color"};$.g.HM=function(){this.vo()};$.g.Dj=function(a){if($.n(a))return null===a?this.Te=[]:$.A(a)&&(this.Te=$.Ha(a)),this.vo(),this.va(2),this;if($.A(this.Te)){this.ZA||(this.ZA=$.Ha(this.Te));if(this.ZA.length= "+c.start:"<= "+c.end:(0,window.isFinite)(c.start)?"> "+c.start:"< "+c.end;d||(d="default");c.name||(c.name=d);this.Gk.push(d)}}return this.Gk}; +$.g.Oy=function(a){return $.n(a)?(this.gd!=a&&(this.gd=a,a=a[a.length-1],null===a.equal&&null===a.from&&null===a.to&&null===a.greater&&null===a.less||this.gd.push({equal:null,less:null,greater:null,from:null,to:null}),this.pV||(this.Tn=$.zm("defaultOrdinalColorScale").autoColors(this.gd.length-1),this.Tn.push("#000")),this.vo(),$.Ht(this.Ua()),this.va(4)),this):this.gd};$.g.jr=function(){this.pb();this.names();return this.rk}; +$.g.vn=function(a){this.pb();var b=this.rk[this.rk.length-1];if(this.rk)for(var c=0;c=d.start&&a<=d.end&&-1d.start&&ad.length-1?d[d.length-1]:d[c])}}return b}; +$.g.yR=function(a){this.pb();a=$.Gl(a).pk;for(var b=window.NaN,c=0,d=this.rk.length;cb?-1E-5:0);this.f.push(b);b=a.o("x");var c=a.o("value"),d;if(d=a.o("label"))d=d.wc().value,this.b.push(b,c),this.f.push(d.x,d.y);if(d=a.o("marker"))d=d.wc().value,this.b.push(b,c),this.f.push(d.x,d.y)}}; +vz.prototype.Zm=function(){for(var a=this.X.Kf(),b=0;a.advance();)if(!a.o("missing")){a.o("size",this.coords[b++]);this.X.Ze.rt(a);var c=a.o("label");c&&(c.wc({value:{x:this.coords[b++],y:this.coords[b++]}}),c.W());if(c=a.o("marker"))c.wc({value:{x:this.coords[b++],y:this.coords[b++]}}),c.W()}};vz.prototype.Xl=function(){this.Zm()};$.H(wz,$.uz);wz.prototype.update=function(){this.i=hB(this.X);this.ya=this.X.g("isVertical");var a=this.X.clip();$.da(a)&&!a&&(this.i=this.X.nc().nb());this.ya?(this.b[0]=this.i.top,this.X.Xa().sf()||(this.b[0]+=this.i.height),this.b[1]=0,(0,window.isNaN)(this.G)&&(this.G=this.i.height),this.f[0]=this.i.top):(this.b[0]=this.i.left,this.X.Xa().sf()&&(this.b[0]+=this.i.width),this.b[1]=0,(0,window.isNaN)(this.G)&&(this.G=this.i.width),this.f[0]=this.i.left);this.f[1]=this.G}; +wz.prototype.Zm=function(){this.ya?(this.i.top=this.coords[0],this.i.height=this.coords[1]):(this.i.left=this.coords[0],this.i.width=this.coords[1]);this.X.Ur(this.i)};wz.prototype.Xl=function(){this.ya?(this.i.top=this.coords[0],this.i.height=this.coords[1]):(this.i.left=this.coords[0],this.i.width=this.coords[1]);this.X.Ur(this.i);this.G=window.NaN};$.H(xz,$.uz); +xz.prototype.update=function(){this.i=this.X.g("isVertical");this.b.length=this.f.length=0;for(var a=this.X.Kf();a.advance();)if(!a.o("missing")){var b=a.o("x");(0,window.isNaN)(a.o("destinationValue"))&&a.o("destinationValue",a.o("value"));var c=a.o("destinationValue"),d=a.o("zero");this.b.push(d);this.f.push(c);if(c=a.o("label"))c=c.wc().value,this.i?this.b.push(d,b):this.b.push(b,d),this.f.push(c.x,c.y);if(c=a.o("marker"))c=c.wc().value,this.i?this.b.push(d,b):this.b.push(b,d),this.f.push(c.x,c.y)}}; +xz.prototype.Zm=function(){for(var a=this.X.Kf(),b=0;a.advance();)if(!a.o("missing")){a.o("value",this.coords[b++]);this.X.Ze.rt(a);var c=a.o("label");c&&(c.wc({value:{x:this.coords[b++],y:this.coords[b++]}}),c.W());if(c=a.o("marker"))c.wc({value:{x:this.coords[b++],y:this.coords[b++]}}),c.W()}};xz.prototype.Xl=function(){this.Zm()};var vG={};vG.bar=xz;vG.bubble=vz;vG.area=wz;vG.line=wz;vG["range-area"]=wz;vG["range-spline-area"]=wz;vG["range-step-area"]=wz;vG.spline=wz;vG["spline-area"]=wz;vG["step-area"]=wz;vG["step-line"]=wz;vG.column=xz;vG["jump-line"]=xz;vG.stick=xz;vG.mekko=xz;$.H($.Az,$.U);$.U.prototype.u1=function(a,b){if(!$.n(this.tB[a])){a=$.km(a);var c=$.lr(this);this.tB[a]=$.mr(c,"base");if(!b)for(var d=0;dc&&(h.ku=c);h.juc&&(h.ku=c),h.juc){c=jb;var Qe=T}if(oce){e=Tb;var re=T}if(Tbk){k=Ub;var De=T}if(qem){m=Ic;var Ee=T}if(Icf+k||eh+l)return null;b=[];var m=this.$c();if("by-spot"==m.g("hoverMode"))for(c=m.g("spotRadius"),this.Fs?(d=(l-(e-c-h))/l,f=(l-(e+c-h))/l,h=a,a=e,e=h):(d=(a-c-f)/k,f=(a+c-f)/k),h=0,k=this.gb.length;h=$.to});d=d&&f;e.push({series:k,pointsInRect:c,allPointsAreSelected:f})}a.seriesStatus=e;a.allPointsAreSelected=d;return a}; +$.g.pO=function(a){var b=a.shiftKey||a.ctrlKey||a.metaKey,c=a.seriesStatus;if(b&&a.allPointsAreSelected)for(a=0;ac.length&&(c=$.Ga(c,$.Ja(a.scales,c.length)))}d={};if($.A(c))for(b=0;bthis.gL()&&f.Xa(b[e.xScale]),"yScale"in e&&e.yScale>this.gL()&&f.bb(b[e.yScale]))}};$.g.uO=function(a,b,c){var d,e=[];for(d=0;dthis.gL()&&h.scale(c[f]))}};$.g.R=function(){$.od(this.Jg);$.Gz.u.R.call(this)};$.H($.Wz,$.Dy);var FG={};$.nq(FG,[[1,"stroke",$.Jq],[0,"value",$.xq]]);$.S($.Wz,FG);$.g=$.Wz.prototype;$.g.oa=$.Dy.prototype.oa;$.g.qa=$.Dy.prototype.qa;$.g.ue=function(a){return $.n(a)?(a=$.Hk(a),this.f!=a&&(this.f=a,this.B(4,9)),this):this.f?this.f:this.axis()?(a=this.axis().orientation(),"left"==a||"right"==a?"horizontal":"vertical"):this.G};$.g.scale=function(a){return this.Go(a)};$.g.Yr=function(){this.Yp()};$.g.$u=function(){$.Ey(this).stroke(this.g("stroke"))}; +$.g.R=function(){this.ra("stroke",null);$.Wz.u.R.call(this)};$.g.F=function(){var a=$.Wz.u.F.call(this);$.Nq(this,FG,a);this.f&&(a.layout=this.f);return a};$.g.U=function(a,b){$.Wz.u.U.call(this,a,b);$.Fq(this,FG,a)};$.H(Yz,$.Wz);$.pu(Yz,$.Wz);var GG=$.Wz.prototype;GG.scale=GG.scale;GG.axis=GG.axis;GG.layout=GG.ue;GG.isHorizontal=GG.Lb;GG=Yz.prototype;$.F("anychart.standalones.axisMarkers.line",function(){return new Yz});GG.draw=GG.W;GG.parentBounds=GG.ja;GG.container=GG.O;$.H($.Zz,$.Dy);$.HG={};$.nq($.HG,[[1,"fill",$.Kq],[0,"from",$.xq],[0,"to",$.xq]]);$.S($.Zz,$.HG);$.g=$.Zz.prototype;$.g.vQ=function(){return"From: "+this.g("from")+" to: "+this.g("to")};$.g.oa=$.Dy.prototype.oa;$.g.qa=$.Dy.prototype.qa;$.g.ue=function(a){return $.n(a)?(a=$.Hk(a),this.f!=a&&(this.f=a,this.B(4,9)),this):this.f?this.f:this.axis()?(a=this.axis().orientation(),"left"==a||"right"==a?"horizontal":"vertical"):this.G};$.g.scale=function(a){return this.Go(a)}; +$.g.rs=function(){return[this.g("from"),this.g("to")]};$.g.NJ=function(){$.n(void 0)&&($.n((void 0).from)&&this.from((void 0).from),$.n((void 0).to)&&this.to((void 0).to));return{from:this.g("from"),to:this.g("to")}};$.g.Yr=function(){$.Fy(this)};$.g.$u=function(){$.Ey(this).stroke(null).fill(this.g("fill"))};$.g.R=function(){this.ra("fill",null);$.Zz.u.R.call(this)};$.g.F=function(){var a=$.Zz.u.F.call(this);$.Nq(this,$.HG,a,void 0,void 0,!0);this.f&&(a.layout=this.f);return a}; +$.g.U=function(a,b){$.Zz.u.U.call(this,a,b);$.Fq(this,$.HG,a)};$.H(aA,$.Zz);$.pu(aA,$.Zz);var IG=$.Zz.prototype;IG.scale=IG.scale;IG.axis=IG.axis;IG.layout=IG.ue;IG.isHorizontal=IG.Lb;IG=aA.prototype;$.F("anychart.standalones.axisMarkers.range",function(){return new aA});IG.draw=IG.W;IG.parentBounds=IG.ja;IG.container=IG.O;$.H($.bA,$.Py);var JG={};$.nq(JG,[[0,"value",$.xq]]);$.S($.bA,JG);$.g=$.bA.prototype;$.g.oa=$.Py.prototype.oa;$.g.qa=$.Py.prototype.qa;$.g.scale=function(a){return this.Go(a)};$.g.F=function(){var a=$.bA.u.F.call(this);$.Nq(this,JG,a);return a};$.g.U=function(a,b){$.bA.u.U.call(this,a,b);$.Fq(this,JG,a,b)};$.H(cA,$.bA);$.pu(cA,$.bA);var KG=$.bA.prototype;KG.scale=KG.scale;KG.axis=KG.axis;KG.layout=KG.ue;KG.background=KG.background;KG.padding=KG.padding;KG.isHorizontal=KG.Lb;KG=cA.prototype; +$.F("anychart.standalones.axisMarkers.text",function(){return new cA});KG.draw=KG.W;KG.parentBounds=KG.ja;KG.container=KG.O;$.H(dA,mv);dA.prototype.oa=mv.prototype.oa|2;var LG={};$.nq(LG,[[0,"format",$.Vq],[0,"axisIndex",$.xq]]);$.S(dA,LG);$.g=dA.prototype;$.g.yf=function(a){return $.n(a)?(this.i!=a&&(this.i=a,this.B(16,1)),this):this.i};$.g.x=function(a){$.n(a)&&this.Eo!=a&&(this.Eo=a,this.B(4,9));return this};$.g.y=function(a){$.n(a)&&this.Fo!=a&&(this.Fo=a,this.B(4,9));return this}; +$.g.mf=function(){if(this.ja())var a=this.ja();else{a=new $.I(0,0,0,0);var b=this.ub.rb();a.width=this.padding().Dk(b.width);a.height=this.padding().Vj(b.height)}b=a.width;var c=a.height;a=new $.I(0,0,this.Fi,this.Ei);var d=new $.gb(0,0);d.x=this.Eo;d.y=this.Fo;var e=this.gA(),f=$.Co(new $.I(0,0,this.Fi,this.Ei),e);d.x-=f.x;d.y-=f.y;f=this.g("offsetX");var h=this.g("offsetY");$.Vo(d,e,$.n(f)?$.M(f,b):0,$.n(h)?$.M(h,c):0);this.Gg+=d.x;this.Hg+=d.y;a.left=d.x;a.top=d.y;this.ub.x(this.Gg).y(this.Hg); +(b=this.ub.clip())?b.shape(this.Gg,this.Hg,this.gn,this.en):(b=$.sk(this.Gg,this.Hg,this.gn,this.en),this.ub.clip(b));return a};$.g.F=function(){var a=dA.u.F.call(this);$.Nq(this,LG,a,"Crosshair Label");return a};$.g.U=function(a,b){dA.u.U.call(this,a,b);$.Fq(this,LG,a,b)};var MG=dA.prototype;MG.background=MG.background;MG.padding=MG.padding;$.H($.eA,$.Y);$.eA.prototype.oa=$.Y.prototype.oa|2;$.eA.prototype.qa=$.Y.prototype.qa|16;var NG={};$.mq(NG,1,"xStroke",$.Jq);$.mq(NG,1,"yStroke",$.Jq);$.mq(NG,0,"displayMode",function(a){return $.yk(Dda,a,"float")});$.S($.eA,NG);$.g=$.eA.prototype;$.g.g=$.cr;$.g.dg=function(a){$.n(a)&&(this.Vb=a);return this.Vb};$.g.Zg=$.br;$.g.Wd=function(){var a=[this.na];this.Y&&(a=$.Ga(a,this.Y.Wd()));return a};$.g.Ud=function(){var a=[this.Oa];this.Y&&(a=$.Ga(a,this.Y.Ud()));return a}; +$.g.parent=function(a){if($.n(a)){if(this.Y!=a){var b=String($.oa(this));if(null===a){$.dr(this.Y,this.Rc,this);a=$.fA(this);var c=$.gA(this);a=$.Ga(a,c);for(c=0;c=l.sb()&&a<=l.ab()&&d>=l.Ub()&&d<=l.Sa()?($.V(this), +l=$.fA(this),k=$.gA(this),this.Ct(l,!0,a,d),this.Ct(k,!1,a,d),this.ea(!0)):this.Ic()}}; +$.g.Px=function(a,b,c,d){var e=b?this.Ir:this.Lr;if((b=this.g(b?"xStroke":"yStroke"))&&!$.$o(b)){b=this.ja();var f=b.ab()-b.sb(),h=b.Sa()-b.Ub();c-=b.sb();var k=d-b.Ub();d=a.Lb();var l;a=a.scale();c=d?c:k;f=d?f:h;h=d?b.sb():b.Ub();k=a.Na();"linear"==k||"datetime"==k||"log"==k?l=c/f:l=a.transform(a.Kc(c/f),.5);0>l||1e||1=b.ab()||a<=b.Ub()||a>=b.Sa())&&this.Ic()};$.g.remove=function(){this.Ic()};$.g.R=function(){this.Sl&&(this.Sl.dc("mouseover",this.zf,!1,this),this.Sl.dc("mousemove",this.zf,!1,this),this.Sl.dc("mouseout",this.cg,!1,this),this.Sl=null);$.sd(this.Ir,this.Lr,this.vP,this.wP);this.Ir=this.Lr=this.vP=this.wP=null;$.eA.u.R.call(this)}; +$.g.enabled=function(a){return $.n(a)?(this.Oa.enabled!=a&&(this.Oa.enabled=a,this.B(1,32777),this.Oa.enabled?this.ea(!0):(0,window.isNaN)(this.Do)&&$.V(this)),this):this.g("enabled")};$.g.F=function(){var a=$.eA.u.F.call(this);$.Nq(this,NG,a,"Crosshair");var b;var c=[];var d=$.fA(this),e=$.gA(this);for(b=0;b=this.b.length?this.eg[a-this.b.length]:this.b[a]};$.g.jy=function(a){return this.b[a]};$.g.ly=function(a){return this.eg[a]};$.g.Y4=function(a){a.scale(this.bb())};$.g.LG=function(){return 2097152};$.g.iZ=function(){return new $.Wz}; +$.g.Sm=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.kg[c];if(!e){e=this.iZ();var f=$.mr($.lr(this),"defaultLineMarkerSettings");e.Fa(f);e.sa=this;$.Xz(e,this.ya()?"vertical":"horizontal");this.kg[c]=e;e.ib(this);$.K(e,this.NA,this);this.B(5242880,1)}return $.n(d)?(e.N(d),this):e};$.g.jZ=function(){return new $.Zz}; +$.g.an=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.ng[c];if(!e){e=this.jZ();var f=$.mr($.lr(this),"defaultRangeMarkerSettings");e.Fa(f);e.sa=this;$.$z(e,this.ya()?"vertical":"horizontal");this.ng[c]=e;e.ib(this);$.K(e,this.NA,this);this.B(5242880,1)}return $.n(d)?(e.N(d),this):e};$.g.kZ=function(){return new $.bA}; +$.g.fn=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.pg[c];if(!e){e=this.kZ();var f=$.mr($.lr(this),"defaultTextMarkerSettings");e.Fa(f);e.sa=this;$.Qy(e,this.ya()?"vertical":"horizontal");this.pg[c]=e;e.ib(this);$.K(e,this.NA,this);this.B(5242880,1)}return $.n(d)?(e.N(d),this):e};$.g.NA=function(a){var b=4227072;$.X(a,4)&&(b|=327680);this.B(b,1)}; +$.g.DU=function(a){for(var b=0,c=$.Ga(this.kg,this.ng,this.pg),d=0;dc.top&&(e=new $.I(c.left,c.top,c.width,u.top-c.top));break;case "bottom":Dc.left&&(e=new $.I(c.left,v,u.left-c.left,x));break;case "right":Gh);q=0;for(d=f.length;qd?("layout"in e||(e.layout=a.Lb()?"horizontal":"vertical"),"scale"in e||$.Vz(e,"scale",a.scale(),b,c)):e.axis=d;return e}; +$.g.NW=function(a,b,c,d){var e=a.F();a.v2()&&$.Vz(e,"scale",a.Go(),b,c);if(a=a.axis())d=(0,$.za)(d,$.oa(a)),0>d?("layout"in e||(e.layout=a.Lb()?"horizontal":"vertical"),"scale"in e||$.Vz(e,"scale",a.scale(),b,c)):e.axis=d;return e};$.g.R=function(){$.sd(this.b,this.eg,this.kg,this.ng,this.pg,this.Vg,this.Wg,this.gh,this.hh,this.Wa,this.ba,this.td);delete this.b;delete this.eg;this.td=this.ba=this.Wa=this.hh=this.gh=this.Wg=this.Vg=this.pg=this.ng=this.kg=null;$.sA.u.R.call(this)};var SG=$.sA.prototype; +SG.isVertical=SG.ya;$.g=$.xA.prototype;$.g.la=function(){return this.index};$.g.nc=function(){return this.Ca};$.g.get=function(a){return this.Ca.data().get(this.index,a)};$.g.set=function(a,b){this.Ca.data().set(this.index,a,b);return this};$.g.lb=function(a){var b=this.nc(),c=$.lx(b.state,$.so,this.index);return $.n(a)&&c!=a?(a?b.ak(this.index):b.Zd(this.index),this):c};$.g.selected=function(a){var b=this.nc(),c=$.lx(b.state,$.to,this.index);return $.n(a)&&c!=a?(a?b.select(this.index):b.he(this.index),this):c}; +$.g.Xx=function(){return this.indexb?this.Ed&&(p="high",k="highHatchFill"):this.Md&&(p="low",k="lowHatchFill"),h.path=p,h.pe=k):f?(this.X.dh()||(this.ba?ab||(0,window.isNaN)(b)?(p="rising",k="risingHatchFill"):ab||(0,window.isNaN)(b)?(l="risingStroke",m="risingFill",k="risingHatchFill"):aa;a=Math.abs(a);a=(a-this.CV)/(this.Z2-this.CV);if((0,window.isNaN)(a)||!(0,window.isFinite)(a))a=.5;a=this.DV+a*(this.c3-this.DV);return b?-a:a};$.g.ze=function(){return this.uu.g("yValues")};$.g.nl=function(){return this.xa};$.g.nc=function(){return this.Ca};$.g.$=function(){return this.iterator||this.zc()}; +$.g.zc=function(){return this.iterator=this.Kf()};$.g.ol=function(){return this.Ca.Xa()};$.g.bb=function(a){if($.n(a)){if(a){if(a=$.ct(this.Cc,a,null,15,null,this.vg,this)){var b=this.Cc==a;this.Cc=a;this.Cc.ea(b);b||this.B(1024,5)}}else this.Cc&&(this.Cc&&$.dr(this.Cc,this.vg,this),this.Cc=null,this.B(1024,5));return this}return this.Cc||this.ff.bb()};$.g.vg=function(a){var b=0;$.X(a,4)&&(b|=4);$.X(a,2)?this.B(1024,b|1):this.va(b)};$.g.Er=function(a,b){return this.Ne(this.ol().transform(a,b),!0)}; +$.g.Cp=function(a,b){return this.Ne(this.bb().transform(a,b),!1)};$.g.wj=function(a){return $.n(a)?(this.uu.N(a),this):this.uu};$.g.error=function(a){Oz(this)||$.hl(12,void 0,[this.ek()]);this.Bv||(this.Bv=new TA(this),$.K(this.Bv,this.Bha,this));return $.n(a)?(this.Bv.N(a),this):this.Bv};$.g.Bha=function(a){var b=0;$.X(a,1)&&(b|=1);$.X(a,4)&&(b|=4);this.B(1024,b)};$.g.ps=function(a){return this.error().ps(a)}; +$.g.mT=function(a){var b=a?this.error().vJ():this.error().nJ();if($.E(b)){var c=this.Fe();b=$.Xb(b.call(c,c))}if(this.dt()){var d=this.r1(a?"xErrorStroke":"valueErrorStroke");$.E(d)?(c=this.Fe(b),d=$.Xb(d.call(c,c))):d&&(d=$.Xb(d))}return d||b}; +$.g.sS=function(a){if(a=!a.o("missing")){var b=this.error(),c=b.Qa.$();a=c.get("xError")||b.KE();var d=c.get("xLowerError")||b.LE(),e=c.get("xUpperError")||b.ME(),f=c.get("valueError")||b.GE(),h=c.get("valueLowerError")||b.HE();b=c.get("valueUpperError")||b.JE();f=$.n(h)||$.n(b)||$.ro(f)||!$.Ao(f);a=$.n(d)||$.n(e)||$.ro(a)||!$.Ao(a)||f}if(a)switch(a=this.error(),d=a.mode(),e=this.g("isVertical"),d){case "x":a.W(!0,e);break;case "value":a.W(!1,e);break;case "both":a.W(!0,e),a.W(!1,e)}}; +$.g.clip=function(a){return $.n(a)?(null===a&&(a=!1),this.$f!=a&&(this.$f=a,this.B(4096,1)),this):this.$f};$.g.Gs=function(a){this.lp||(this.lp=new $.VA,$.K(this.lp,this.XV,this));return $.n(a)?(this.lp.N(a),this):this.lp};$.g.XV=function(a){var b=64,c=!1;$.X(a,8)&&(b|=8,c=!0);this.va(b,c)}; +$.g.WC=function(a){var b=this.Gs();b.I(b.qa);var c=lv.prototype.F.call(b);$.n(b.jD())&&(c.iconTextSpacing=b.jD());var d=b.g("text");$.n(d)&&(c.text=d);$.n(b.py())&&(c.iconEnabled=b.py());$.n(b.kD())&&(c.iconType=b.kD());$.n(b.aw())&&(c.iconSize=b.aw());$.n(b.Bs())&&(c.iconFill=b.Bs());$.n(b.Ds())&&(c.iconStroke=b.Ds());$.n(b.Cs())&&(c.iconHatchFill=b.Cs());$.n(b.Zv())&&(c.iconMarkerType=b.Zv());$.n(b.Yt())&&(c.iconMarkerFill=b.Yt());$.n(b.Zt())&&(c.iconMarkerStroke=b.Zt());$.n(b.disabled())&&(c.disabled= +b.disabled());b=this.g("color");d=this.tC();a=c.text||a;$.z(a)&&(a=$.Fu($.Du.Gd(),a));c.text=$.E(a)?a.call(d,d):this.l1(d);c.disabled="disabled"in c?!!c.disabled:!this.enabled();c.meta=this.o();"marker"!=c.iconType||this.check(8192)||(c.iconFill=this.ca.Db().g("fill"),c.iconStroke=this.ca.Db().g("stroke"));c.iconType=this.VC(c.iconType,d);c.iconEnabled="iconEnabled"in c?!!c.iconEnabled:!0;c.iconStroke=this.DG(c.iconStroke,2,b,d);c.iconFill=this.DG(c.iconFill,1,b,d);c.iconHatchFill=this.DG(c.iconHatchFill, +3,this.wh(),d);this.check(4194304)&&this.ca.Db().enabled()?(c.iconMarkerType=c.iconMarkerType||this.ca.Db().type(),c.iconMarkerFill=c.iconMarkerFill||this.ca.Db().g("fill"),c.iconMarkerStroke=c.iconMarkerStroke||this.ca.Db().g("stroke")):(c.iconMarkerType=null,c.iconMarkerFill=null,c.iconMarkerStroke=null);return c};$.g.VC=function(a){"marker"==a?(this.check(8192)?a=this.g("type"):this.check(4194304)?a=this.ca.Db().type():a="square","line"==a&&(a="v-line")):$.E(a)||(a=$.Sk(a));return a}; +$.g.DG=function(a,b,c){if(a)$.E(a)?(b={sourceColor:c},a=a.call(b,b)):a=$.Ml(a);else{if(2==b)var d="stroke";else if(3==b){if(this.check(8))return null;d="hatchFill"}else this.check(8)?(d="stroke",b=2):d="fill";a=this.ca.g(d);var e=this.ca.na[d];if($.E(a)&&a==e)return b=this.tC([{sourceColor:{value:c,type:"string"}}]),a.call(b,b);a=$.Yl(d,b,!1)(this,$.bm,!0)}return a};$.g.l1=function(){return this.name()}; +$.g.Ra=function(a){if(!this.ex&&(this.ex=new $.ow(0),this.ex.$e(),this.Ca.s5())){var b=this.Ca,c=b.Ra();this.ex.parent(c);this.ex.Ca(b);$.W(this,"tooltip",this.ex)}return $.n(a)?(this.ex.N(a),this):this.ex};$.g.jd=function(a){if($.n(a)){if(null===a&&this.tb)this.tb=null,this.B(65536,129);else if(a=$.ct(this.tb,a,null,48,null,this.Mp,this)){var b=this.tb==a;this.tb=a;this.tb.ea(b);b||this.B(65536,129)}return this}return this.tb};$.g.un=ba(26);$.g.Mp=function(a){$.X(a,6)&&this.B(65536,129)}; +$.g.Pa=function(a){return $.n(a)?(this.ca.N(a),this):this.ca};$.g.lb=function(a){return $.n(a)?(this.wa.N(a),this):this.wa};$.g.selected=function(a){return $.n(a)?(this.Da.N(a),this):this.Da};$.g.r1=function(a){return this.dt()?this.$().get(a):void 0};$.g.Ah=function(a){return null!=this.Oa[a]};$.g.g=function(a){var b=this.Oa[a];null==b&&(b=this.na[a],null!=b||(b=this.Jd[a]));return b}; +$.g.CG=function(a){return null!=this.Oa[a]?this.Oa[a]:null!=this.ff.Oa[a]?this.ff.Oa[a]:null!=this.Ca.Oa[a]?this.Ca.Oa[a]:null!=this.na[a]?this.na[a]:null!=this.ff.na[a]?this.ff.na[a]:null!=this.Ca.na[a]?this.Ca.na[a]:this.Jd[a]}; +$.g.qc=function(a,b,c,d,e,f,h){var k=0==b?this.ca:1==b?this.wa:this.Da;if(h)return d(k.g(a));if(this.dt()){h=c.get(0==b?"normal":1==b?"hovered":"selected");var l=$.Wo($.n(h)?h[a]:void 0,c.get($.cm(b,a)),k.g(a))}if($.n(l))l=d(l);else{a=f||a;if(a in this.ua&&(l=this.g(a),$.n(l)))return d(l);e&&(k=this.Da);l=k.Oa[a];null==l&&(l=k.na[a],null!=l||b||(l=this.Jd[a]),$.n(l)&&(l=d(l)))}return l};$.g.$0=function(){return this.O()}; +$.g.Z0=function(a){var b=this.g("isVertical");this.bb().sf()&&(a=!a);return b?a?0:180:a?270:90};$.g.sR=function(a){return"low"==a||"lowest"==a?!1:"high"==a||"highest"==a?!0:0<=(Number(this.$().get(a))||0)};$.g.p4=function(a){return $.Ho(a,180)};$.g.dO=function(a,b){var c=$.Fk(a,null);c&&"auto"!==c?c=this.p4(c):(c=this.sR(a),c=this.Z0(c),c=$.Eo(c));return $.Ho(c,b)}; +$.g.C_=function(a,b){var c=$.mn(a.ul(b,void 0,{anchor:b.gl()})),d=b.gl(),e=b.ic("rotation");d=$.Ho(d,-e);if($.Lo(d)&&c.leftthis.ga.left+this.ga.width){var f=d;d=(0,$.za)($.Do,f);0<=d&&(f=$.Do.length,f=$.Do[(f-d)%f]);d=f}if($.Jo(d)&&c.topthis.ga.top+this.ga.height)c=(0,$.za)($.Do,d),0<=c&&(d=$.Do.length,d=$.Do[(d-c+4)%d]);d=$.Ho(d,e);b.gl(d)}; +$.g.bX=function(a,b,c,d,e,f,h,k,l,m,p,q,r){$.Wu(a,$.ko([r,0,h,0,q,$.go,f,$.go,p,$.go,e,$.go,m,0,d,0,l,$.go,c,$.go,k,$.go,b,$.go,q,$.ho,f,$.ho,e,$.ho,a,$.go,a,$.io,l,$.ho,c,$.ho,b,$.ho]))};$.g.WZ=$.ia; +$.g.vL=function(a,b,c,d,e,f,h){if(e){a=a[0];var k=d;(d=a.Vd(c))||(d=a.add(void 0,void 0,c));d.yf(e);k=this.nN(d,k);d.wc(k);d.zi();b.unshift(d);this.bX.apply(this,b);b=d.ic("anchor");Yu(d,this.g("isVertical"));$.n(h)&&"auto"==b&&(d.gl(this.dO(h,Number(d.ic("rotation"))||0)),this.C_(a,d));this.WZ(d,c);a=d}else b=a[0],(h=b.ap(c))||(h=b.add(void 0,c)),h.wc(d),h.zi(),c=a[1]||b,d=this.$(),e=d.o($.J(this.Hf,$.PA)?"shapes":"shapeNames"),k=this.ir(d.la()),this.Hf.zB(k,e),d=d.o(this.check(8)?"markerStroke": +"markerFill"),$.n(d)&&(b=b==this.ca.Wk()?$.n(d)?d:$.Yl("fill",1,!1)(this,$.bm,!0):this.Ov(d),!eB("fill",a)&&$.Zl(b)&&(h.JI(b),b=$.Ll(b),!eB("stroke",a)&&$.Zl(b)&&h.KI(b))),$.Xx(h,c),h.sd(a[2],a[3]),a=h;f&&a.W();return a};$.g.labels=function(a){return $.n(a)?(this.ca.labels(a),this):this.ca.labels()};$.g.oh=function(a){return $.n(a)?(this.ca.oh(a),this):this.ca.oh()};$.g.nh=function(a){return $.n(a)?(this.ca.nh(a),this):this.ca.nh()};$.g.Nd=function(a){$.X(a,1)&&this.B(256,1025)}; +$.g.mf=function(a,b,c){var d=this.nc(),e=[this.ca.labels,this.wa.labels,this.Da.labels],f=this.BK()?[d.Pa().labels,d.lb().labels,d.selected().labels]:[],h=["label","hoverLabel","selectLabel"];a.o("isMaxPoint")?(e.push(this.ca.nh,this.wa.nh,this.Da.nh),this.BK()&&f.push(d.Pa().nh,d.lb().nh,d.selected().nh),h.push("maxLabel","hoverMaxLabel","selectMaxLabel")):a.o("isMinPoint")&&(e.push(this.ca.oh,this.wa.oh,this.Da.oh),this.BK()&&f.push(d.Pa().oh,d.lb().oh,d.selected().oh),h.push("minLabel","hoverMinLabel", +"selectMinLabel"));a.o("label",$.dB(this,e,f,h,this.PD(),!0,null,a,b,c))};$.g.fQ=function(){};$.g.tS=function(a){a.W()};$.g.nN=function(a,b){return b};$.g.Db=function(a){return $.n(a)?(this.ca.Db(a),this):this.ca.Db()};$.g.En=function(a){$.X(a,1)&&this.B(128,65)};$.g.Zp=function(a,b,c){a.o("marker",$.dB(this,[this.ca.Db,this.wa.Db,this.Da.Db],[],["marker","hoverMarker","selectMarker"],this.KN(),!1,null,a,b,c))}; +$.g.Ov=function(a){a=$.n(a)?a:$.Yl(this.check(8)?"stroke":"fill",1,!1)(this,$.bm,!0,!0);return $.Pl(a,1,!0)};$.g.gy=function(){return $.Ll(this.ca.Db().g("fill"))};$.g.Wk=function(a){return $.n(a)?(this.ca.Wk(a),this):this.ca.Wk()};$.g.dia=function(a){$.X(a,1)&&this.B(128,1)};$.g.uL=function(a,b,c){var d=a.o("outliers");d&&d.length&&$.dB(this,[this.ca.Wk,this.wa.Wk,this.Da.Wk],[],["outlierMarker","hoverOutlierMarker","selectOutlierMarker"],this.dW(),!1,d,a,b,c)};$.g.PD=function(){return!1}; +$.g.KN=function(){return!1};$.g.dW=function(){return!1};$.g.K3=function(){return!1};$.g.dh=function(){return!1};$.g.QA=function(){return!1};$.g.dE=function(){if(this.dh()&&this.ah()&&this.jp()){var a=this.$();for(a.reset();a.advance();)fB(a);fB(this.eM());fB(this.dM())}};$.g.remove=function(){this.check(4)?$.KA(this.Hf,null):this.xa&&this.xa.remove();var a=this.ca.labels();a.Td()&&(a.Td().remove(),a.B(2));if(a=this.ca.Db())a.remove(),a.B(2);if(a=this.ca.Wk())a.remove(),a.B(2)}; +$.g.nt=function(a){this.bl||(this.bl=new Zw(this),$.K(this.bl,this.TV,this),$.J(this.Ca,$.mx)&&(Xw(this.bl,this.Ca.nt()),Xw(this.bl).va(2)));return $.n(a)?(this.bl.N.apply(this.bl,arguments),this):this.bl};$.g.TV=function(){this.B(32,1)}; +$.g.W=function(){if(!this.Ac())return this;$.V(this);$.n(this.Jd.color)&&this.J(16768)&&this.Dq(this.Jd.color);this.J(32768)&&(this.XD(),this.I(32768));if(this.J(4)){this.ga=this.nb();this.Dx=this.Xg?this.Xg.yj(this.ga):this.ga;var a=Math.min(this.ga.height,this.ga.width);this.DV=$.M(this.Fga,a);this.c3=$.M(this.yga,a);this.B(7168)}this.J(512)&&(this.zc(),this.jW(),this.B(68640,2049),this.I(512));this.t_();this.J(1024)&&this.B(24960);a=[];var b=[],c=!1;this.J(1026)&&(this.kW(),this.SD());if(this.J(1282)){var d= +this.ca.labels();var e=this.ca.oh().enabled()||this.ca.nh().enabled()||this.wa.labels().enabled()||this.Da.labels().enabled()||this.wa.oh().enabled()||this.Da.oh().enabled()||this.wa.nh().enabled()||this.Da.nh().enabled();cB(this,d,e,this.PD(),$.zG,256)&&(e=this.zIndex()+this.MP+(this.dh()?1:0),d.Xh=e,d.B(8),this.check($.zG)&&a.push(this.mf),b.push(d),c=!0);this.ca.oh().I(4294967295);this.ca.nh().I(4294967295);this.wa.oh().I(4294967295);this.wa.nh().I(4294967295);this.Da.oh().I(4294967295);this.Da.nh().I(4294967295); +this.I(256)}this.J(1154)&&(d=this.ca.Db(),e=this.wa.Db().enabled()||this.Da.Db().enabled(),cB(this,d,e,this.KN(),4194304,128)&&(e=this.zIndex()+1.2E-5+(this.dh()?1:0),d.Xh=e,this.check(4194304)&&a.push(this.Zp),b.push(d)),this.I(128));if(this.J(9218)){this.HC||(this.HC=[]);if(this.bA)for(;this.bA.length;)d=this.bA.pop(),d.clear(),d.parent(null),this.HC.push(d);else this.bA=[];Oz(this)&&"none"!=this.error().mode()&&(this.K3()||Qz(this.error()))&&a.push(this.sS);this.I(8192)}this.J(17410)&&(d=this.ca.Wk(), +e=this.wa.Wk().enabled()||this.Da.Wk().enabled(),cB(this,d,e,this.dW(),256,16384)&&(e=this.zIndex()+1.1E-5,d.Xh=e,this.check(256)&&a.push(this.uL),b.push(d)),this.I(16384));d=a.length;if(this.J(1024)){if(e=this.DW()){var f=this.ze();this.vI(e,f);c&&this.fQ();if(this.Ca.g("categorizedBySeries")){c=this.zc();var h=this.rga;var k=this.Ca.g("barsPadding");var l=this.Ca.g("barGroupsPadding");var m=c.Qa.od.RV;this.Fz=1/(l+k*(m-1)+m);$.XA(this,this.Fz);this.SD();this.Dd(!1)}else h=this.EA,this.Dd(),c=this.zc(); +if(k=this.eM())this.EA(k,f,e),this.qn(k,this.ir(k.la()));for(c.reset();c.advance();)for(c.o("destinationValue",window.NaN),l=this.ir(c.la()),h.call(this,c,f,e),this.qn(c,l),k=0;k=e;if(null===h?0:!(0,window.isNaN)(k)&&0==k)e=this.g("isVertical"),h=this.bb().sf(),e=!(e^h);h=b.wM;k=a.o("valueRatio");k=$.n(k)?!k:!c;e?(c=-c,(0,window.isNaN)(b.RA)?(b.RA=f+c,c=b.RA,h||(k=!1)):(f=Math.min(f,b.RA),c=f+c,b.RA=c)):(0,window.isNaN)(b.KA)?(b.KA=f+c,c=b.KA,h||(k=!1)):(f=Math.max(f,b.KA),c=f+c,b.KA=c);a.o("value",c);a.o("zero",f); +a.o("skipDrawing",k)}return d};$.g.pga=function(a,b,c,d){if(!a.o("missing")){var e=a.o("value");b=a.o("zero");var f=this.yT(a),h=Number(f);c=Math.max(Math.abs(e-b),this.BV);e=b>=e;if(null===f?0:!(0,window.isNaN)(h)&&0==h)f=this.g("isVertical"),h=this.bb().sf(),e=!(f^h);e&&(c=-c);a.o("value",b+c)}return d};$.g.nga=function(a,b,c,d){if(!a.o("missing")){b=a.o("high");c=a.o("low");var e=(b+c)/2,f=Math.max(Math.abs(c-b),this.BV)/2;b>=c&&(f=-f);a.o("high",e-f);a.o("low",e+f)}return d}; +$.g.tga=function(a,b,c,d,e){b=this.bb();b={value:$.Za(b.transform(a.o("stackedValue"),.5),0,1),zero:$.Za(b.transform(a.o("stackedZero"),.5),0,1),prevValue:b.transform(a.o("stackedValuePrev"),.5),prevZero:b.transform(a.o("stackedZeroPrev"),.5),nextValue:b.transform(a.o("stackedValueNext"),.5),nextZero:b.transform(a.o("stackedZeroNext"),.5)};this.BD(a,b,e);a.o("zeroMissing",a.o("stackedMissing"));if(e=a.o("shared")){c=Math.abs(b.value-b.zero);b=e.wM;var f=a.o("valueRatio");c=$.n(f)?!f:!c;e.s0||b||(c= +!1,e.s0=!0);a.o("skipDrawing",c)}return d};$.g.kga=function(a,b,c,d){for(var e,f,h=this.bb(),k=0;k=e){f=window.Infinity;e=-window.Infinity;var h=Math.min.apply(null,this.h4);b=Math.max.apply(null,this.h4);var k;for(k=0;kl&&(f=l))}f=(0,window.isFinite)(f)&&h>=f;b=(0,window.isFinite)(e)&&b<=e}a.o("isMinPoint", +f);a.o("isMaxPoint",b);return d};$.g.uga=function(a,b,c,d,e){for(var f=this.bb(),h={},k=0;kf&&k>h?d+=h-f:k>e&&f=this.od.Qi&&a<=this.od.lastIndex}; +$.g.kT=function(a,b,c,d){var e=this.data(),f=e.$(),h=this.bb(),k=!1,l=!1,m=this.uk(),p,q=[];this.ah()&&this.dt()&&q.push("zIndex");m&&q.push("size");this.check(256)&&q.push("outliers");Oz(this)&&(UA(this.Xa())&&(e.fd("xError")&&(q.push("xError"),k=!0),e.fd("xLowerError")&&(q.push("xLowerError"),k=!0),e.fd("xUpperError")&&(q.push("xUpperError"),k=!0)),UA(this.bb())&&(e.fd("valueError")&&(q.push("valueError"),l=!0),e.fd("valueLowerError")&&(q.push("valueLowerError"),l=!0),e.fd("valueUpperError")&&(q.push("valueUpperError"), +l=!0)));$.J(h,$.It)&&(p=$.Lt(h))&&e.fd(p)&&q.push(p);var r=this.Xa();$.J(r,$.It)&&(p=$.Lt(r))&&e.fd(p)&&q.push(p);r=this.i2();for(var t=0;f.advance();){var u=c(f.get("x"));if(!d(u)){var v={};v.x=u;var w;u=!1;var x=this.ze();var y=0;for(w=x.length;yy&&!this.g("displayNegative"))&&(u=!0);y={};u?y.missing=1:(y.missing=0,t++);y.rawIndex=f.la(); +y.ordinalIndex=t-1;v={data:v,o:y};this.Q3(f,v,r);b(a,v)}}this.B(512);return this.od={data:a,X:this,RV:t,S1:this.check($.zG)&&(e.fd("normal")||e.fd("hovered")||e.fd("selected")||e.fd("label")||e.fd("hoverLabel")||e.fd("selectLabel")||e.fd("minLabel")||e.fd("hoverMinLabel")||e.fd("selectMinLabel")||e.fd("maxLabel")||e.fd("hoverMaxLabel")||e.fd("selectMaxLabel")),T1:this.check(4194304)&&(e.fd("normal")||e.fd("hovered")||e.fd("selected")||e.fd("marker")||e.fd("hoverMarker")||e.fd("selectMarker")),U1:this.check(256)&& +(e.fd("outliers")||e.fd("normal")||e.fd("hovered")||e.fd("selected")||e.fd("outlierMarker")||e.fd("hoverOutlierMarker")||e.fd("selectOutlierMarker")),gU:k,V1:l,R1:k||l}};$.g.i2=function(){return null};$.g.Q3=function(){};$.g.t3=function(a){return a}; +$.g.KL=function(a,b){if(this.od){var c=[];var d="scatter"==this.g("xMode");if(this.od.kx){var e=this.od.kx[$.no(a)];var f=this.od.kx[$.no(b)]}else e=$.Oa(this.od.data,function(b){return a-b.data.x}),0>e&&(e=~e),f=$.Oa(this.od.data,function(a){return b-a.data.x}),0>f&&(f=~f);if(!(0,window.isNaN)(e)&&!(0,window.isNaN)(f)){if(e>f){var h=e;e=f;f=h}if(d)for(h=this.od.data,d=0;d=e&&l<=f&&c.push(k.o.rawIndex)}else for(f=Math.min(f,this.od.data.length- +1),d=e;d<=f;d++)c.push(d)}return c}c=this.Xa();if(e=$.J(c,$.It))a=c.Nv(a),b=c.Nv(b);return this.WF.KL(a,b,e)};$.g.ik=function(a,b){if(nB(this)){var c=this.$();if(8===c.o("missing"))return b;var d=c.o("shapes");this.ah()&&(this.Hf.Cm(a,d),this.Hf.zB(a,d));this.check(256)&&this.uL(c,a,!0);this.Ze.FE(c,a);this.check(4194304)&&this.Zp(c,a,!0);this.check($.zG)&&this.mf(c,a,!0);return b}};$.g.qm=$.ia; +$.g.fl=function(a){if(nB(this)){var b=this.$(),c=b.o("shapes");this.Hf.Cm(a,c);this.Ze.FE(b,a);this.check(256)&&this.uL(b,a,!0)}};$.g.hq=$.ia;$.g.$i=function(a){return $.n(a)?(a=null===a?null:$.Ak(a),a!=this.Zs&&(this.Zs=a),this):this.Zs};$.g.Rl=function(a){return $.n(a)?this:this.Ca.$c().g("hoverMode")};$.g.ak=function(a){$.n(a)?this.Ti(a):this.Qk();return this}; +$.g.Zd=function(a){var b;if(b=!$.ex(this.state,$.so))b=!(this.state.Zj()&$.so);if(b||!this.enabled())return this;var c;$.n(a)?c=a:c=this.state.Dc==$.bm?window.NaN:void 0;this.state.Ph($.so,c);return this};$.g.Ti=function(a){if(!this.enabled())return this;if($.A(a)){for(var b=$.kx(this.state,$.so),c=0;cc&& +(c=window.NaN);a.pointIndex=c}return a};$.g.zh=function(a){(a=this.Rg(a))&&this.dispatchEvent(a)}; +$.g.Rg=function(a){var b=a.type;switch(b){case "mouseout":b="pointmouseout";break;case "mouseover":b="pointmouseover";break;case "mousemove":b="pointmousemove";break;case "mousedown":b="pointmousedown";break;case "mouseup":b="pointmouseup";break;case "click":case "touchstart":b="pointclick";break;case "dblclick":b="pointdblclick";break;default:return null}var c;a.target!=this.Pa().Wk()||(0,window.isNaN)(a.markerIndex)?"pointIndex"in a?c=a.pointIndex:"labelIndex"in a?c=a.labelIndex:"markerIndex"in +a&&(c=a.markerIndex):c=Zca(this,a.markerIndex);c=$.N(c);a.pointIndex=c;var d=this.Kf();d.select(c)||d.reset();return{type:b,actualTarget:a.target,series:this,iterator:d,pointIndex:c,target:this,originalEvent:a,point:this.ae(c)}};$.g.ae=function(a){var b;this.uk()?b=new zA(this,a):b=new $.yA(this,a);return b}; +$.g.F=function(){var a=$.kB.u.F.call(this);$.Nq(this,JH,a);if(this.od){for(var b=[],c=this.data(),d=new jB(this);d.advance();){var e=d.o("rawIndex");(0,window.isNaN)(e)?b.push({x:d.get("x")}):b.push(yr(c,e))}a.data=b}else a.data=this.data().F();$.n(this.$i())&&(a.selectionMode=this.$i());return a};$.g.U=function(a,b){$.kB.u.U.call(this,a,b);$.Fq(this,JH,a,b);"data"in a&&this.data(a.data||null);this.$i(a.selectionMode)}; +$.g.R=function(){$.od(this.$l);delete this.WF;this.cb=this.od=this.state=this.be=this.$l=null;$.kB.u.R.call(this)};var KH=$.kB.prototype;KH.data=KH.data;KH.xScale=KH.Xa;KH.hover=KH.ak;KH.unhover=KH.Zd;KH.select=KH.select;KH.unselect=KH.he;KH.selectionMode=KH.$i;KH.getPoint=KH.ae;KH.excludePoint=KH.E0;KH.includePoint=KH.vU;KH.keepOnlyPoints=KH.A2;KH.includeAllPoints=KH.uU;KH.getExcludedPoints=KH.$L;$.H($.qB,$.Y);var pB=1E6;$.qB.prototype.oa=$.Y.prototype.oa;$.qB.prototype.qa=$.Y.prototype.qa|464;$.qB.prototype.K=function(a){this.aa||(this.aa=new BB(this),$.W(this,"thumbs",this.aa));return $.n(a)?(this.aa.N(a),this):this.aa}; +var LH=function(){function a(a){return function(b){var c=$.vo(b,null);return null===b?this.pf(a):null===c?this.g(a):c}}var b={};$.nq(b,[[0,"height",a("height")],[0,"minHeight",a("minHeight")],[0,"maxHeight",a("maxHeight")],[0,"orientation",Yq],[0,"inverted",$.yq],[0,"autoHide",$.yq],[1,"fill",$.Kq],[1,"selectedFill",$.Kq],[1,"outlineStroke",$.Jq],[0,"allowRangeChange",$.yq]]);return b}();$.S($.qB,LH);$.g=$.qB.prototype; +$.g.padding=function(a,b,c,d){this.Ta||(this.Ta=new $.zu,$.K(this.Ta,this.Zl,this),$.W(this,"padding",this.Ta));return $.n(a)?(this.Ta.N.apply(this.Ta,arguments),this):this.Ta};$.g.Zl=function(a){$.X(a,2)&&this.B(4,9)};$.g.Lb=function(){return"bottom"==this.g("orientation")||"top"==this.g("orientation")};$.g.remove=function(){this.xa&&this.xa.remove()};$.g.Le=function(){return this.enabled()&&(!this.g("autoHide")||this.g("allowRangeChange")||0!=this.D||this.j!=pB)}; +$.g.W=function(){if(!this.Ac())return this;this.I(256);if(!this.Le())return this.remove(),this.B(2),this;if(this.kf())return this;this.xa||(this.xa=$.nk(),this.f=$.pk(),this.f.zIndex(100),this.b=$.pk(),this.b.zIndex(100),this.ba=this.xa.rect(),this.ba.zIndex(1),this.sN=$.sk(),this.ba.clip(this.sN),this.G=this.xa.rect(),this.G.zIndex(50),this.aB=$.sk(),this.G.clip(this.aB),this.P=this.xa.path(),this.P.zIndex(99),$.ju(this,this.xa,this.B$,this.Mga),this.vc.ta(this.f,"mouseover",this.C5),this.vc.ta(this.f, +"mouseout",this.B5),this.vc.Ae(this.f,"mousedown",this.EE),this.vc.Ae(this.f,"touchstart",this.EE),this.vc.ta(this.b,"mouseover",this.C5),this.vc.ta(this.b,"mouseout",this.B5),this.vc.Ae(this.b,"mousedown",this.EE),this.vc.Ae(this.b,"touchstart",this.EE),this.vc.Ae(this.G,"mousedown",this.EE),this.vc.Ae(this.G,"touchstart",this.EE),this.vc.ta(this.ba,"click",this.hha));this.J(2)&&(this.xa.parent(this.O()),this.I(2));this.J(8)&&(this.xa.zIndex(this.zIndex()),this.I(8));this.J(128)&&(this.f.cursor(rB(this)), +this.b.cursor(rB(this)),this.G.cursor(rB(this)),this.B(84),this.I(128));this.J(4)&&(this.jP(),this.I(4));if(this.J(64)){var a=(Math.max($.ac(this.g("outlineStroke")),5)-1)/2;if(this.Lb()){var b=this.ga.top;if(this.K().g("enabled"))a=b+this.ga.height/2,this.f.clear().moveTo(-4,a-6).lineTo(-2,a-8).lineTo(2,a-8).lineTo(4,a-6).lineTo(4,a+6).lineTo(2,a+8).lineTo(-2,a+8).lineTo(-4,a+6).close().moveTo(-1,a-5).lineTo(-1,a+5).moveTo(1,a-5).lineTo(1,a+5),this.b.clear().moveTo(-4,a-6).lineTo(-2,a-8).lineTo(2, +a-8).lineTo(4,a-6).lineTo(4,a+6).lineTo(2,a+8).lineTo(-2,a+8).lineTo(-4,a+6).close().moveTo(-1,a-5).lineTo(-1,a+5).moveTo(1,a-5).lineTo(1,a+5);else{var c=b+this.ga.height;this.f.clear().moveTo(-a,b).lineTo(a,b).lineTo(a,c).lineTo(-a,c).close();this.b.clear().moveTo(-a,b).lineTo(a,b).lineTo(a,c).lineTo(-a,c).close()}}else b=this.ga.left,this.K().g("enabled")?(a=b+this.ga.width/2,this.f.clear().moveTo(a-6,-4).lineTo(a-8,-2).lineTo(a-8,2).lineTo(a-6,4).lineTo(a+6,4).lineTo(a+8,2).lineTo(a+8,-2).lineTo(a+ +6,-4).close().moveTo(a-5,-1).lineTo(a+5,-1).moveTo(a-5,1).lineTo(a+5,1),this.b.clear().moveTo(a-6,-4).lineTo(a-8,-2).lineTo(a-8,2).lineTo(a-6,4).lineTo(a+6,4).lineTo(a+8,2).lineTo(a+8,-2).lineTo(a+6,-4).close().moveTo(a-5,-1).lineTo(a+5,-1).moveTo(a-5,1).lineTo(a+5,1)):(c=b+this.ga.height,this.f.clear().moveTo(b,-a).lineTo(b,a).lineTo(c,a).lineTo(c,-a).close(),this.b.clear().moveTo(b,-a).lineTo(b,a).lineTo(c,a).lineTo(c,-a).close());this.B(16);this.I(64)}if(this.J(16)){this.ba.Gf(this.ga);this.G.Gf(this.ga); +this.sN.shape(this.ga);a=this.g("fill");this.ba.fill("none"==a?$.Xl:a).stroke(null);a=this.g("selectedFill");this.G.fill("none"==a?$.Xl:a).stroke(null);this.P.stroke(this.g("outlineStroke")).fill(null);vB(this,this.f,this.eb);vB(this,this.b,this.Wa);switch(this.g("orientation")){case "top":a=this.ga;c=this.D;b=this.j;this.g("inverted")&&(c=pB-c,b=pB-b);c=a.left+c/pB*a.width;var d=a.left+b/pB*a.width;this.f.lc(1,0,0,1,c,0);this.b.lc(1,0,0,1,d,0);b=Math.min(c,d);c=Math.max(c,d);this.aB.shape(b,a.top, +c-b,a.height);b=$.O(b,1);c=$.O(c,1);d=$.O(a.top,1);var e=$.O(a.top+a.height,1);this.P.clear().moveTo(a.left,d).lineTo(b,d).lineTo(b,e).lineTo(c,e).lineTo(c,d).lineTo(a.left+a.width,d);break;case "right":a=this.ga;b=this.D;c=this.j;this.g("inverted")||(b=pB-b,c=pB-c);b=a.top+b/pB*a.height;d=a.top+c/pB*a.height;this.f.lc(1,0,0,1,0,b);this.b.lc(1,0,0,1,0,d);c=Math.min(b,d);b=Math.max(b,d);this.aB.shape(a.left,c,a.width,b-c);this.P.clear().moveTo(a.left,a.top).lineTo(a.left,c).lineTo(a.left+a.width,c).lineTo(a.left+ +a.width,b).lineTo(a.left,b).lineTo(a.left,a.top+a.height);break;case "bottom":a=this.ga;c=this.D;b=this.j;this.g("inverted")&&(c=pB-c,b=pB-b);c=a.left+c/pB*a.width;d=a.left+b/pB*a.width;this.f.lc(1,0,0,1,c,0);this.b.lc(1,0,0,1,d,0);b=Math.min(c,d);c=Math.max(c,d);this.aB.shape(b,a.top,c-b,a.height);b=$.O(b,1);c=$.O(c,1);d=$.O(a.top,1);e=$.O(a.top+a.height,1);this.P.clear().moveTo(a.left,d).lineTo(b,d).lineTo(b,e).lineTo(c,e).lineTo(c,d).lineTo(a.left+a.width,d);break;case "left":a=this.ga,b=this.D, +c=this.j,this.g("inverted")||(b=pB-b,c=pB-c),b=a.top+b/pB*a.height,d=a.top+c/pB*a.height,this.f.lc(1,0,0,1,0,b),this.b.lc(1,0,0,1,0,d),c=Math.min(b,d),b=Math.max(b,d),this.aB.shape(a.left,c,a.width,b-c),this.P.clear().moveTo(a.left+a.width,a.top).lineTo(a.left+a.width,c).lineTo(a.left,c).lineTo(a.left,b).lineTo(a.left+a.width,b).lineTo(a.left+a.width,a.top+a.height)}this.K().g("autoHide")||tB(this);this.I(16)}return this}; +$.g.xd=function(){var a=this.ja();a=a?a.clone():$.kn(0,0,0,0);this.Le()&&(this.J(4)&&(this.jP(),this.I(4)),this.Lb()?(a.height-=this.i.height,"top"==this.g("orientation")&&(a.top+=this.i.height)):(a.width-=this.i.width,"left"==this.g("orientation")&&(a.left+=this.i.width)));return a}; +$.g.jP=function(){var a=this.ja(),b=this.Lb()?a.height:a.width,c=$.M(this.g("height"),b),d=$.M(this.g("maxHeight"),b),e=$.M(this.g("minHeight"),b);b=c;(0,window.isNaN)(e)||(b=Math.max(b,e));(0,window.isNaN)(d)||(b=Math.min(c,d));b=this.Lb()?this.padding().Vj(b):this.padding().Dk(b);this.i.left=a.left;this.i.top=a.top;c=this.g("orientation");this.Lb()?(this.i.width=a.width,this.i.height=b,"bottom"==c&&(this.i.top+=a.height-b)):(this.i.width=b,this.i.height=a.height,"right"==c&&(this.i.left+=a.width- +b));this.qb||this.Lb()?this.ga=this.padding().yj(this.i):(b=this.padding(),"left"==c?(c=$.M(b.g("left"),this.i.width),a=$.M(b.g("top"),this.i.height),d=$.M(b.g("right"),this.i.width),b=$.M(b.g("bottom"),this.i.height)):(c=$.M(b.g("right"),this.i.width),a=$.M(b.g("bottom"),this.i.height),d=$.M(b.g("left"),this.i.width),b=$.M(b.g("top"),this.i.height)),this.ga.left=this.i.left+b,this.ga.top=this.i.top+c,this.ga.width=this.i.width-b-a,this.ga.height=this.i.height-c-d);this.B(80)}; +$.g.B$=function(a){a.f();!$.qo(this.xa,a.relatedTarget)&&this.lh(a)&&(this.Ya=!0,tB(this))};$.g.Mga=function(a){a.f();!$.qo(this.xa,a.relatedTarget)&&this.lh(a)&&(this.Ya=!1,uB(this))};$.g.C5=function(a){a=a.target;$.J(a,$.xg)&&(a==this.f?vB(this,this.f,this.eb=!0):a==this.b&&vB(this,this.b,this.Wa=!0))};$.g.B5=function(a){a=a.target;$.J(a,$.xg)&&(a==this.f?vB(this,this.f,this.eb=!1):a==this.b&&vB(this,this.b,this.Wa=!1))}; +$.g.EE=function(a){if($.J(a.b,$.hg)){var b=a.b,c;b!=this.f||this.Aa?b!=this.b||this.da?b!=this.G||this.ma||(this.ma=c=new AB(this,this.G,!1)):this.da=c=new AB(this,this.b,!0):this.Aa=c=new AB(this,this.f,!0);c&&(this.vc.ta(c,"start",this.A$),this.vc.ta(c,"end",this.z$),c.fk(a.gk))}};$.g.hha=function(a){var b=$.Yj(this.xa.Ja());a=this.Lb()?a.clientX-b.x:a.clientY-b.y;wB(this,"background-click","scrollerchangestart")&&(yB(this,!1,a),wB(this,"background-click","scrollerchangefinish"))}; +$.g.A$=function(a){if(this.g("allowRangeChange")&&a.f!=this.ma){a=rB(this);var b="thumb-drag"}else a=rB(this),b="selected-range-drag";if(b=wB(this,b,"scrollerchangestart"))this.Ha++,this.f.cursor(null),this.b.cursor(null),this.G.cursor(null),$.tf(window.document.body,"cursor",a);return b}; +$.g.z$=function(a){this.Ha=Math.max(this.Ha-1,0);uB(this);this.f.cursor(rB(this));this.b.cursor(rB(this));this.G.cursor(rB(this));$.tf(window.document.body,"cursor","");a=this.g("allowRangeChange")&&a.f!=this.ma?"thumb-drag":"selected-range-drag";wB(this,a,"scrollerchangefinish")};$.g.U2=function(a,b,c,d){return{type:a,startRatio:b,endRatio:c,source:d}}; +$.g.R=function(){$.od(this.xa);this.G=this.ba=this.P=this.b=this.f=this.xa=null;$.od(this.Aa);this.Aa=null;$.od(this.da);this.da=null;$.od(this.ma);this.ma=null;$.od(this.aa);this.aa=null;$.od(this.Ta);this.Ta=null;$.qB.u.R.call(this)};$.g.F=function(){var a=$.qB.u.F.call(this);$.Nq(this,LH,a,"Scroller");a.thumbs=this.K().F();return a};$.g.U=function(a,b){$.qB.u.U.call(this,a,b);$.Fq(this,LH,a,b);"thumbs"in a&&this.K().fa(!!b,a.thumbs)};$.H(AB,$.ag);$.g=AB.prototype; +$.g.y$=function(){$.n(this.Lj)&&($.il.cancelAnimationFrame(this.Lj),this.ks(0))};$.g.Tq=function(){this.i.Lb()?(this.deltaX=zB(this.i,this.b),this.deltaY=0):(this.deltaX=0,this.deltaY=zB(this.i,this.b))};$.g.ds=function(a,b){this.ba=this.i.Lb()?a:b;$.n(this.Lj)||(this.Lj=$.il.requestAnimationFrame(this.ks))};$.g.CA=function(a){return this.i.Lb()?xB(this.i,this.b,a):0};$.g.nw=function(a){return this.i.Lb()?0:xB(this.i,this.b,a)};$.H(BB,$.U);$.Dq(BB,["fill","stroke"],"normal"); +BB.prototype.B=function(a,b){return this.i.B(a,b)};BB.prototype.Pa=function(a){return $.n(a)?(this.ca.N(a),this):this.ca};BB.prototype.lb=function(a){return $.n(a)?(this.wa.N(a),this):this.wa};var MH={};$.nq(MH,[[0,"enabled",$.xq],[0,"autoHide",$.xq]]);$.S(BB,MH);$.g=BB.prototype;$.g.F=function(){var a={};a.normal=this.Pa().F();a.hovered=this.lb().F();$.Nq(this,MH,a,"Scroller thumbs");return a};$.g.U=function(a,b){this.ca.fa(!!b,a);this.ca.fa(!!b,a.normal);this.wa.fa(!!b,a.hovered);$.Fq(this,MH,a)}; +$.g.Yd=function(a){return $.da(a)||null===a?{enabled:!!a}:null};$.g.He=function(a,b){var c=this.Yd(b);return c?(this.enabled(c.enabled),!0):!1};$.g.R=function(){$.sd(this.ca,this.wa);this.wa=this.ca=null;BB.u.R.call(this)};$.H(CB,$.qB);$.pu(CB,$.qB);CB.prototype.Cr=function(a,b){$.sB(this,a,b);return this};CB.prototype.ec=function(a){return $.n(a)?($.sB(this,a,this.j/pB),this):this.D/pB};CB.prototype.Tb=function(a){return $.n(a)?($.sB(this,this.D/pB,a),this):this.j/pB};var NH=$.qB.prototype; +NH.thumbs=NH.K;NH=BB.prototype;NH.normal=NH.Pa;NH.hovered=NH.lb;NH=CB.prototype;$.F("anychart.standalones.scroller",function(){var a=new CB;a.N($.im("standalones.scroller"));return a});NH.setRange=NH.Cr;NH.startRatio=NH.ec;NH.endRatio=NH.Tb;NH.parentBounds=NH.ja;NH.getRemainingBounds=NH.xd;NH.container=NH.O;NH.padding=NH.padding;NH.draw=NH.W;$.H($.DB,$.qB);var OH={};$.mq(OH,0,"position",function(a,b){return $.yk(uda,a,b||"after-axes")});$.S($.DB,OH);$.DB.prototype.F=function(){var a=$.DB.u.F.call(this);$.Nq(this,OH,a);return a};$.DB.prototype.U=function(a,b){$.DB.u.U.call(this,a,b);$.Fq(this,OH,a,b)};$.g=FB.prototype;$.g.gB=function(a,b){a=$.Za($.N(a),0,1);(0,window.isNaN)(a)&&(a=this.i);b=$.Za($.N(b),0,1);(0,window.isNaN)(b)&&(b=this.b);this.f=null;if(this.i!=a||this.b!=b)this.i=a,this.b=b,this.sa.B(268435456,1);return this};$.g.X4=function(a,b,c){this.f={start:a,end:b,scale:c};this.sa.B(268435456,1);return this};$.g.W4=function(a,b,c){this.f={count:$.Bo(a),scale:c,dea:!!b};this.sa.B(268435456,1);return this};$.g.wz=function(){GB(this);return this.i};$.g.vz=function(){GB(this);return this.b}; +$.g.GR=function(a){return $.n(a)?(a=!!a,this.j!=a&&(this.j=a),this):this.j};$.g.N=function(a){$.n(a)&&((0,window.isNaN)(+a)?$.C(a)&&(this.GR(a.continuous),$.n(a.startValue)&&$.n(a.endValue)?this.X4(a.startValue,a.endValue,$.J(a.scale,Ps)?a.scale:void 0):$.n(a.pointsCount)?this.W4(a.pointsCount,a.fromEnd,$.J(a.scale,Ps)?a.scale:void 0):this.gB(a.startRatio,a.endRatio)):this.gB(0,1/Math.abs(+a||1)));return this};$.g.F=function(){return{startRatio:this.wz(),endRatio:this.vz(),continuous:this.j}}; +var PH=FB.prototype;PH.setTo=PH.gB;PH.setToValues=PH.X4;PH.setToPointsCount=PH.W4;PH.getStartRatio=PH.wz;PH.getEndRatio=PH.vz;PH.continuous=PH.GR;$.H($.HB,$.sA);var QH=function(){var a={};$.nq(a,[[0,"zAngle",function(a){return $.Za($.N(a),0,90)}],[0,"zAspect",function(a){return $.ea(a)?Math.max(a,0):a}],[0,"zDistribution",$.yq],[0,"zPadding",function(a){return Math.max($.N(a),0)||0}]]);return a}();$.S($.HB,QH);$.g=$.HB.prototype;$.g.qa=$.sA.prototype.qa|1879048192;$.g.Mq=function(a){return $.n(a)?($.V(this),this.Sc.N(a),this.ea(!0),this):this.Sc};$.g.Nq=function(a){return $.n(a)?($.V(this),this.Tf.N(a),this.ea(!0),this):this.Tf}; +$.g.Ep=function(a){this.D||(this.D=new $.DB,this.D.ib(this),$.K(this.D,this.hZ,this),this.vc.ta(this.D,"scrollerchange",this.KJ),this.vc.ta(this.D,"scrollerchangefinish",this.KJ),this.B(536870916,1),$.W(this,"xScroller",this.D));return $.n(a)?(this.D.N(a),this):this.D}; +$.g.Nr=function(a){this.G||(this.G=new $.DB,this.G.ib(this),$.K(this.G,this.hZ,this),this.vc.ta(this.G,"scrollerchange",this.KJ),this.vc.ta(this.G,"scrollerchangefinish",this.KJ),this.B(1073741828,1),$.W(this,"yScroller",this.G));return $.n(a)?(this.G.N(a),this):this.G};$.g.hZ=function(a){var b=a.target==this.Ep()?536870912:1073741824,c=1;$.X(a,8)&&(b|=4,c|=8);this.B(b,c)}; +$.g.KJ=function(a){var b=a.target==this.Ep()?this.Sc:this.Tf;b.GR()^"scrollerchangefinish"==a.type&&(a.preventDefault(),$.V(this),b.gB(a.startRatio,a.endRatio),this.ea(!0))};$.g.zt=function(a,b){return new $.kB(this,this,a,b,!0)};$.g.Ns=function(a){return $.yk(xda,a,"line")};$.g.PC=function(a){a=IB(this.Nr(),a);this.tg=a.H4;a=IB(this.Ep(),a.J_);return $.HB.u.PC.call(this,a.J_,a.H4)};$.g.$Z=function(a,b){var c=JB(this,a,this.Ep(),b),d=this.Nr();return JB(this,c,d,this.tg)}; +$.g.TQ=function(a){if(this.J(268435456)){for(var b in this.hm){var c=this.Mq().wz(),d=1/(this.Mq().vz()-c);Qs(this.hm[b],d,c)}$.sB(this.Ep(),this.Mq().wz(),this.Mq().vz());a||this.B(570687488)}};$.g.UQ=function(a){if(this.J(268435456)){for(var b in this.hn){var c=this.Nq().wz(),d=1/(this.Nq().vz()-c);Qs(this.hn[b],d,c)}$.sB(this.Nr(),this.Nq().wz(),this.Nq().vz());a||this.B(1107296256)}};$.g.YZ=function(){this.J(268435456)&&(this.TQ(!0),this.UQ(!0),this.B(1644167168))}; +$.g.pb=function(){$.HB.u.pb.call(this);this.I(268435456)};$.g.KT=function(){return this.Sc.wz()};$.g.JT=function(){return this.Sc.vz()};$.g.fT=function(){return $.HB.u.fT.call(this)|1610612736};$.g.uQ=function(){$.HB.u.uQ.call(this);this.J(536870912)&&(this.Ep().O(this.Ma),this.Ep().W(),this.I(536870912));this.J(1073741824)&&(this.Nr().O(this.Ma),this.Nr().W(),this.I(1073741824))}; +$.g.e5=function(a,b,c){var d=this.V0(b);b=d.transform(c,0);c=d.transform(c,1);return"selected"!=a||1>=Math.min(b,c)&&0<=Math.max(b,c)};$.g.V0=function(a){return a.ol()}; +$.g.at=function(a,b,c){$.HB.u.at.call(this,a,b,c);$.Fq(this,QH,a);"xScroller"in a&&this.Ep().fa(!!c,a.xScroller);"yScroller"in a&&this.Nr().fa(!!c,a.yScroller);var d=a.xZoom;$.C(d)&&($.ea(d.scale)||$.z(d.scale))?(c=d.scale,d.scale=b[d.scale],this.Mq(d),d.scale=c):this.Mq(d);a=a.yZoom;$.C(a)&&($.ea(a.scale)||$.z(a.scale))?(c=a.scale,a.scale=b[a.scale],this.Nq(a),a.scale=c):this.Nq(a)}; +$.g.F=function(){var a=$.HB.u.F.call(this);$.Nq(this,QH,a);a.xScroller=this.Ep().F();a.yScroller=this.Nr().F();a.xZoom=this.Mq().F();a.yZoom=this.Nq().F();return{chart:a}};$.g.R=function(){$.HB.u.R.call(this);$.sd(this.D,this.G);this.G=this.D=null};$.g=$.KB.prototype;$.g.us=ba(27);$.g.Pt=function(){$.MB(this);return this.b.concat()};$.g.Oj=function(){return 0==this.i};$.g.clear=function(){this.f={};this.i=this.b.length=0};$.g.remove=function(a){return $.LB(this.f,a)?(delete this.f[a],this.i--,this.b.length>2*this.i&&$.MB(this),!0):!1};$.g.get=function(a,b){return $.LB(this.f,a)?this.f[a]:b};$.g.set=function(a,b){$.LB(this.f,a)||(this.i++,this.b.push(a));this.f[a]=b}; +$.g.forEach=function(a,b){for(var c=this.Pt(),d=0;da.o("size")){var c="negative";var d="negativeHatchFill"}else c="circle",d="hatchFill";var e={};e[c]=!0;e[d]=!0;c=this.ad.cd(b,e);VB(this,a,c)};$.g.rt=function(a){var b=a.o("shapes");VB(this,a,b)};$.H(WB,$.CA);$.yG[5]=WB;$.g=WB.prototype;$.g.type=5;$.g.flags=$.CG|263744;$.g.Bh={rising:"path",risingHatchFill:"path",falling:"path",fallingHatchFill:"path"};$.g.Fp=["open","high","low","close"];$.g.Al="close"; +$.g.qg=function(a,b){var c=Number(a.get("open"))b?this.rc&&(d="highFill",e="highHatchFill"):this.Sc&&(d="lowFill",e="lowHatchFill");c.lU="highStroke";c.kV="lowStroke";c.fill=d;c.pe=e;return c}; +$.g.Ho=function(a){var b=this.ad,c=this.X.ze(),d=a.get(c[1]);c=a.get(c[0]);d=this.kh(d,c);c={};c[d.lU]=!0;c[d.kV]=!0;c=b.cd(this.Dc,c);this.P=c[d.lU];this.da=c[d.kV];c={};c[d.fill]=!0;c[d.pe]=!0;this.b=b.cd(this.Dc,c);b=a.o("x");c=a.o("high");a=a.o("low");var e=this.b[d.fill],f=this.b[d.pe];$.AA(e,this.ya,b,a);$.BA(e,this.ya,b,c);$.AA(f,this.ya,b,a);$.BA(f,this.ya,b,c);$.AA(this.P,this.ya,b,c);this.f=[b,a,e,f];this.D=b;this.K=c;this.ma=a;this.i=d}; +$.g.qg=function(a){var b=this.ad,c=this.X.ze(),d=a.get(c[1]);c=a.get(c[0]);d=this.kh(d,c);c={};c[d.fill]=!0;c[d.pe]=!0;b=b.cd(this.Dc,c);c=a.o("x");var e=a.o("high"),f=a.o("low");if(this.b!=b){var h=vn(this.D,this.K,c,e,this.D,this.ma,c,f);if(h){a=this.b[this.i.fill];var k=this.b[this.i.pe];$.BA(a,this.ya,h.x,h.y);$.BA(k,this.ya,h.x,h.y);this.f.push(h.x,h.y,a,k);this.b=b;a=this.b[d.fill];k=this.b[d.pe];$.AA(a,this.ya,h.x,h.y);$.AA(k,this.ya,h.x,h.y);this.f.push(h.x,h.y,a,k)}}a=this.b[d.fill];k=this.b[d.pe]; +$.BA(a,this.ya,c,e);$.BA(k,this.ya,c,e);$.BA(this.P,this.ya,c,e);this.f.push(c,f,a,k);this.D=c;this.K=e;this.ma=f;this.i=d};$.g.Em=function(){if(this.G&&this.f){for(var a=!0,b=null,c=this.f.length-1;0<=c;c-=4){var d=this.f[c-3],e=this.f[c-2],f=this.f[c-1],h=this.f[c];b&&f!=b?($.AA(f,this.ya,d,e),$.AA(h,this.ya,d,e)):($.BA(f,this.ya,d,e),$.BA(h,this.ya,d,e));a?($.AA(this.da,this.ya,d,e),a=!1):$.BA(this.da,this.ya,d,e);b=f}this.f=null}};$.H($.eC,$.CA);$.yG[12]=$.eC;$.g=$.eC.prototype;$.g.type=12;$.g.flags=$.am|263680;$.g.Bh={path:"path",hatchFill:"path"};$.g.Fp=["low","high"];$.g.Al="high"; +$.g.qg=function(a,b){if(!a.o("skipDrawing")){var c=this.X.ze(),d=a.get(c[1]);c=a.get(c[0]);d=this.kh(d,c);c={};c[d.path]=!0;c[d.pe]=!0;a.o("name",d.path);c=this.ad.cd(b,c);var e=a.o("x"),f=a.o("high"),h=a.o("low");e-=this.j/2;var k=e+this.j,l=$.ac(c[d.path].stroke());this.mv&&(e=$.O(e,l),k=$.O(k,l));f=$.O(f,l);h=$.O(h,l);l=c[d.path];$.AA(l,this.ya,e,h);$.BA(l,this.ya,k,h);$.BA(l,this.ya,k,f);$.BA(l,this.ya,e,f);l.close();l=c[d.pe];$.AA(l,this.ya,e,h);$.BA(l,this.ya,k,h);$.BA(l,this.ya,k,f);$.BA(l, +this.ya,e,f);l.close()}};fC.prototype.ya=function(a){return $.n(a)?(this.K=a,this):this.K};fC.prototype.aa=function(a){return $.n(a)?(this.i=a,this):this.i}; +fC.prototype.f=function(a){var b,c,d=arguments;for(b=0;bb?this.rc&&(d="highFill",e="highHatchFill"):this.Sc&&(d="lowFill",e="lowHatchFill");c.lU="highStroke";c.kV="lowStroke";c.fill=d;c.pe=e;return c}; +$.g.Dd=function(a){oC.u.Dd.call(this,a);this.i.ya(this.ya);a=this.X.QA();$.n(a)&&(this.i.Ha=a);this.D.ya(this.ya);a=this.X.QA();$.n(a)&&(this.D.Ha=a);this.K=[]}; +$.g.Ho=function(a){var b=this.ad,c=this.X.ze(),d=a.get(c[1]);c=a.get(c[0]);var e={highStroke:!0,lowStroke:!0};e=b.cd(this.Dc,e);this.P=e.highStroke;this.da=e.lowStroke;var f=this.kh(d,c);e={};e[f.fill]=!0;e[f.pe]=!0;b.cd(this.Dc,e);b=a.o("x");e=a.o("high");a=a.o("low");mC(this.i,!1);this.i.za=[this.P];(e=kC(this.i,b,e))&&this.K.push.apply(this.K,e);e=this.X.$().current();f=this.X.$().la();this.f=[b,a,d,c,e,f]}; +$.g.qg=function(a){var b=this.ad,c=this.X.ze(),d=a.get(c[1]);c=a.get(c[0]);var e=this.kh(d,c),f={};f[e.fill]=!0;f[e.pe]=!0;b.cd(this.Dc,f);b=a.o("x");e=a.o("high");a=a.o("low");(e=kC(this.i,b,e))&&this.K.push.apply(this.K,e);e=this.X.$().current();f=this.X.$().la();this.f.push(b,a,d,c,e,f)}; +$.g.Em=function(){var a=this.ad;if(this.G){var b=lC(this.i);b&&this.K.push.apply(this.K,b);this.i.za=[this.da];mC(this.i,!0);mC(this.D,!0);b=[];if(this.f){for(var c=!0,d=this.X.Kf(),e=this.f.length-1;0<=e;e-=6){var f=this.f[e-2],h=this.f[e-3];var k=this.f[e-4];var l=this.f[e-5];d.Au(this.f[e-1],this.f[e]);h=this.kh(h,f);f=a.cd(this.Dc,d.o("shapeNames"));kC(this.D,l,k);kC(this.i,l,k);c?(this.b=f,k=f[h.fill],l=f[h.pe],this.D.za=[k,l],c=!1):(k=e==this.f.length-7||5==e?6:12,k=$.Ca(this.K,this.K.length- +k,k),$.qa($.Ca,b,void 0,0).apply(null,k),this.b!=f&&(k=f[h.fill],l=f[h.pe],h=this.D,k=[k,l],h.b=b.slice(),h.P=k,b.length=0,this.b=f))}$.qa($.Ca,this.D.Qh,void 0,0).apply(null,b);lC(this.D);lC(this.i);this.f=null}}};$.H(pC,$.CA);$.yG[14]=pC;$.g=pC.prototype;$.g.type=14;$.g.flags=$.am|131088;$.g.Bh={fill:"path",hatchFill:"path",highStroke:"path",lowStroke:"path"};$.g.Fp=["low","high"];$.g.Al="high";$.g.Dd=function(a){pC.u.Dd.call(this,a);this.P=this.X.g("stepDirection")||"center"}; +$.g.Ho=function(a){var b=this.ad.cd(this.Dc),c=a.o("x"),d=a.o("high");a=a.o("low");$.AA(b.fill,this.ya,c,a);$.BA(b.fill,this.ya,c,d);$.AA(b.hatchFill,this.ya,c,a);$.BA(b.hatchFill,this.ya,c,d);$.AA(b.highStroke,this.ya,c,d);this.D=c;this.i=d;this.f=[c,a]}; +$.g.qg=function(a){var b=this.ad.cd(this.Dc),c=a.o("x"),d=a.o("high");a=a.o("low");var e=b.fill,f=b.hatchFill;b=b.highStroke;switch(this.P){case "forward":$.BA(e,this.ya,c,this.i);$.BA(f,this.ya,c,this.i);$.BA(b,this.ya,c,this.i);break;case "backward":$.BA(e,this.ya,this.D,d);$.BA(f,this.ya,this.D,d);$.BA(b,this.ya,this.D,d);break;default:var h=(c+this.D)/2;$.BA(e,this.ya,h,this.i,h,d);$.BA(f,this.ya,h,this.i,h,d);$.BA(b,this.ya,h,this.i,h,d)}$.BA(e,this.ya,c,d);$.BA(f,this.ya,c,d);$.BA(b,this.ya, +c,d);this.D=c;this.i=d;this.f.push(c,a)}; +$.g.Em=function(){if(this.G&&this.f){var a=this.ad.cd(this.Dc),b=a.fill,c=a.hatchFill;a=a.lowStroke;for(var d=window.NaN,e=window.NaN,f=!0,h=this.f.length-1;0<=h;h-=2){var k=this.f[h-1],l=this.f[h];if(f)$.AA(a,this.ya,k,l),f=!1;else switch(this.P){case "forward":$.BA(b,this.ya,d,l);$.BA(c,this.ya,d,l);$.BA(a,this.ya,d,l);break;case "backward":$.BA(b,this.ya,k,e);$.BA(c,this.ya,k,e);$.BA(a,this.ya,k,e);break;default:d=(k+d)/2,$.BA(b,this.ya,d,e,d,l),$.BA(c,this.ya,d,e,d,l),$.BA(a,this.ya,d,e,d,l)}$.BA(b, +this.ya,k,l);$.BA(c,this.ya,k,l);$.BA(a,this.ya,k,l);d=k;e=l}b.close();c.close();this.f=null}};$.H(qC,$.CA);$.yG[31]=qC;$.g=qC.prototype;$.g.type=31;$.g.flags=$.am|295433;$.g.Bh={stroke:"path"};$.g.Dd=function(a){qC.u.Dd.call(this,a);this.mv=2e?this.Ed&&(c="highStroke"):this.Md&&(c="lowStroke");f[c]=!0;a.o("name",c);d=this.ad.cd(b,f);rC(this,a,d,c)};$.g.rt=function(a){var b=a.o("shapes"),c=a.o("name"),d;for(d in b)b[d].clear();rC(this,a,b,c)};$.H(sC,$.CA);$.yG[15]=sC;$.g=sC.prototype;$.g.type=15;$.g.flags=32985;$.g.Bh={stroke:"path"};$.g.Dd=function(a){sC.u.Dd.call(this,a);this.f.ya(this.ya);a=this.X.QA();$.n(a)&&(this.f.Ha=a)};$.g.Ho=function(a){var b=a.get(this.X.ze()[0]),c=this.kh(b,this.prevValue),d=a.o("x");a=a.o("value");var e={};e[c.stroke]=!0;this.b=this.ad.cd(this.Dc,e);this.f.za=[this.b[c.stroke]];mC(this.f,!1);kC(this.f,d,a);this.P=a;this.prevValue=b}; +$.g.qg=function(a){var b=a.get(this.X.ze()[0]),c=this.ad,d=this.kh(b,this.prevValue),e={};e[d.stroke]=!0;c=c.cd(this.Dc,e);var f=a.o("x");e=a.o("value");kC(this.f,f,e);if(c!=this.b){var h;f=this.P;var k=DA(this,b);this.ba&&k?h=a.o("zero"):this.Ha&&!this.ba?h=f:h="middle";a=this.f;d=[c[d.stroke]];a.b=h;a.P=d;this.b=c}this.P=e;this.prevValue=b};$.g.Em=function(){this.G&&lC(this.f)};$.g.R=function(){this.f.za=null;sC.u.R.call(this)};$.H(tC,$.CA);$.yG[16]=tC;$.g=tC.prototype;$.g.type=16;$.g.flags=241;$.g.Bh={fill:"path",hatchFill:"path",stroke:"path"};$.g.Dd=function(a){tC.u.Dd.call(this,a);this.i.ya(this.ya);a=this.X.QA();$.n(a)&&(this.i.Ha=a)};$.g.Zz=function(a){if(this.Aa){if(this.X.dh()){var b=a.o("x"),c=a.o("zero");a=a.o("zeroMissing");this.f.push(b,c,a)}}else this.Em()}; +$.g.Ho=function(a){var b=a.get(this.X.ze()[0]),c=this.kh(b,this.prevValue),d=a.o("x"),e=a.o("zero"),f=a.o("zeroMissing");a=a.o("value");e=To(e);a=To(a);mC(this.i,!1);this.i.aa(e);kC(this.i,d,a);var h={};h[c.stroke]=!0;h[c.fill]=!0;h[c.pe]=!0;this.b=this.ad.cd(this.Dc,h);h=this.b[c.fill];h.b=!0;var k=this.b[c.pe];k.b=!0;c=this.b[c.stroke];c.b=!1;this.i.za=[h,c,k];this.X.dh()?this.f=[d,e,f]:this.Di=e;this.P=a;this.prevValue=b}; +$.g.qg=function(a){var b=this.ad,c=a.get(this.X.ze()[0]),d=this.D=this.kh(c,this.prevValue),e=a.o("x"),f=a.o("zero"),h=a.o("zeroMissing");a=a.o("value");f=To(f);a=To(a);kC(this.i,e,a);var k={};k[d.stroke]=!0;k[d.fill]=!0;k[d.pe]=!0;b=b.cd(this.Dc,k);if(b!=this.b){var l;k=this.P;var m=DA(this,c);this.ba&&m?l=f:this.Ha&&!this.ba?l=k:l="middle";k=b[d.fill];k.b=!0;m=b[d.pe];m.b=!0;var p=b[d.stroke];p.b=!1;d=this.i;k=[k,p,m];d.b=l;d.P=k;this.i.aa(f);this.b=b}this.X.dh()&&this.f.push(e,f,h);this.P=a;this.prevValue= +c}; +$.g.Em=function(){if(this.G&&(lC(this.i),this.f)){var a=this.D,b={};b[a.stroke]=!0;b[a.fill]=!0;b[a.pe]=!0;this.b=this.ad.cd(this.Dc,b);b=this.b[a.fill];b.b=!1;var c=this.b[a.pe];c.b=!1;a=this.b[a.stroke];a.b=!1;this.i.za=[b,a,c];mC(this.i,!0);for(var d=a=window.NaN,e=!1,f=!0,h=this.f.length-1;0<=h;h-=3){var k=this.f[h-2],l=this.f[h-1],m=this.f[h];f?($.BA(b,this.ya,k,l),$.BA(c,this.ya,k,l),m||kC(this.i,k,l),f=!1):m&&e?($.BA(b,this.ya,k,l),$.BA(c,this.ya,k,l)):m?(lC(this.i),mC(this.i,!0),$.BA(b,this.ya, +a,l,k,l),$.BA(c,this.ya,a,l,k,l)):(e&&($.BA(b,this.ya,k,d,k,l),$.BA(c,this.ya,k,d,k,l)),kC(this.i,k,l));a=k;d=l;e=m}lC(this.i);this.f=null}};$.g.R=function(){this.i.za=null;tC.u.R.call(this)};$.H(uC,$.CA);$.yG[17]=uC;$.g=uC.prototype;$.g.type=17;$.g.flags=131313;$.g.Bh={fill:"path",hatchFill:"path",stroke:"path"};$.g.Dd=function(a){uC.u.Dd.call(this,a);this.P=this.X.g("stepDirection")||"center"}; +$.g.Ho=function(a){var b=a.get(this.X.ze()[0]),c=this.ad,d=this.kh(b,this.prevValue),e={};e[d.stroke]=!0;e[d.fill]=!0;e[d.pe]=!0;c=this.b=c.cd(this.Dc,e);e=a.o("x");a.o("zeroX");var f=a.o("zero"),h=a.o("value");if(this.X.dh()){var k=a.o("nextZero");a=a.o("nextValue");if((0,window.isNaN)(k)||(0,window.isNaN)(a))wC(this,c,d,e,h,f),this.f=[e,f],this.i=h;else{var l=c.stroke;$.AA(l,this.ya,e,h);$.BA(l,this.ya,e,h);wC(this,c,d,e,a,k);this.f=[e,k];this.i=a}}else wC(this,c,d,e,h,f),this.da=e,this.Di=f,this.i= +h;this.D=e;this.prevValue=b;this.Ia=f;this.K=d}; +$.g.qg=function(a){var b=a.get(this.X.ze()[0]),c=this.ad,d=this.kh(b,this.prevValue),e={};e[d.stroke]=!0;e[d.fill]=!0;e[d.pe]=!0;c=c.cd(this.Dc,e);e=a.o("x");a.o("zeroX");var f=a.o("zero"),h=a.o("value");if(this.X.dh()){var k=a.o("prevZero"),l=a.o("prevValue"),m=a.o("nextZero");a=a.o("nextValue");(0,window.isNaN)(k)||(0,window.isNaN)(l)?(xC(this,c,d,b,e,h,f),this.f.push(e,f)):(xC(this,c,d,b,e,l,f),this.f.push(e,k),this.D=e,this.i=l,this.Em(),wC(this,c,d,e,h,f),this.f=[e,f]);(0,window.isNaN)(m)||(0,window.isNaN)(a)? +this.i=h:($.BA(c.stroke,this.ya,e,h),this.Em(),wC(this,c,d,e,a,m),this.f=[e,m],this.i=a)}else xC(this,c,d,b,e,h,f),this.da=e,this.i=h;this.D=e;this.prevValue=b;this.Ia=f;this.K=d}; +$.g.Em=function(){if(this.G){var a=this.b,b=this.K,c=a[b.fill];a=a[b.pe];if(!(0,window.isNaN)(this.da))$.BA(c,this.ya,this.da,this.Di),$.BA(a,this.ya,this.da,this.Di),c.close(),a.close();else if(this.f){var d=window.NaN;b=window.NaN;for(var e=this.f.length-1;0<=e;e-=2){var f=this.f[e-1],h=this.f[e];if(!(0,window.isNaN)(b))switch(this.P){case "forward":$.BA(c,this.ya,d,h);$.BA(a,this.ya,d,h);break;case "backward":$.BA(c,this.ya,f,b);$.BA(a,this.ya,f,b);break;default:d=(f+d)/2,$.BA(c,this.ya,d,b,d, +h),$.BA(a,this.ya,d,b,d,h)}$.BA(c,this.ya,f,h);$.BA(a,this.ya,f,h);d=f;b=h}c.close();a.close();this.f=null}}};$.H(yC,$.CA);$.yG[18]=yC;$.g=yC.prototype;$.g.type=18;$.g.flags=164057;$.g.Bh={stroke:"path"};$.g.Dd=function(a){yC.u.Dd.call(this,a);this.P=this.X.g("stepDirection")||"center"};$.g.Ho=function(a){var b=a.get(this.X.ze()[0]),c=this.kh(b,this.prevValue),d={};d[c.stroke]=!0;this.b=this.ad.cd(this.Dc,d);d=a.o("x");a=a.o("value");$.AA(this.b[c.stroke],this.ya,d,a);this.D=d;this.i=a;this.prevValue=b;this.K=c}; +$.g.qg=function(a){var b=this.ad,c=a.get(this.X.ze()[0]),d=this.kh(c,this.prevValue),e={};e[d.stroke]=!0;b=b.cd(this.Dc,e);e=a.o("x");var f=a.o("value"),h=this.i;if(b!=this.b){var k=DA(this,c);this.ba&&k&&(h=a.o("zero"));a=zC(this,this.K,e,this.i,h);this.b=b;$.AA(this.b[d.stroke],this.ya,a,h)}zC(this,d,e,h,f);$.BA(this.b[d.stroke],this.ya,e,f);this.D=e;this.i=f;this.prevValue=c;this.K=d};$.H(AC,$.CA);$.yG[20]=AC;$.g=AC.prototype;$.g.type=20;$.g.flags=296681;$.g.Bh={stroke:"path"};$.g.Dd=function(a){AC.u.Dd.call(this,a);this.mv=2=this.Ib())&&$.n(a)&&this.f){if(this.f.o){var b=this.f.o("treemap_type");if(1==b||3==b||4==b)return;if(b=this.f.o(a))return b}if(this.f.get)return this.f.get(a)}};$.g.la=function(){return this.i};$.g.Ib=function(){return this.b.length};$.g.o=function(a,b){if(this.f&&this.f.o)return 1c*c}return e},Iea=function(){return new $.Sx},YN=function(a,b,c){$.uz.call(this,null,[],[],b,c);this.Ca=a},$N=function(a,b,c,d,e,f){$.vr.call(this,a);this.i=b;this.f=d||null;this.j=e||function(a, +b){a.value+=Math.max(0,+b)||0;return a};this.D=f||function(){return{value:0}};this.b=new ZN;this.b.o(0,"groupedPoint",!0);this.b.o(0,"name",c)},ZN=function(){$.U.call(this);$.Br(this);this.f=void 0},bO=function(a,b,c){$.uz.call(this,null,[],[],b,c);this.Ca=a;this.G=aO(this.Ca);this.i=this.Ca.g("connectorStroke")},cO=function(a,b){$.xA.call(this,a,b)},eO=function(a,b){$.ux.call(this);this.Fa("pieFunnelPyramidBase","pie");this.contextMenu(this.na.contextMenu);$.V(this);this.Xc=this.i=this.ed=this.Ea= +this.Sc=null;this.jf=!0;this.Tb={};this.tl=function(){var a=this.sourceColor,b=this.aquaStyleObj;return{keys:[{offset:0,color:$.Kl(a,.5)},{offset:.95,color:$.Ll(a,.4)},{offset:1,color:$.Ll(a,.4)}],cx:.5,cy:.5,fx:b.fx,fy:b.fy,mode:b.mode}};this.D=[];this.state=new $.ax(this);this.data(a||null,b);this.B(4294967295);$.R(this.ua,[["overlapMode",4096,1],["radius",4,1],["innerRadius",4,1],["startAngle",4112,1],["sort",16,1,0,function(){dO(this)}],["insideLabelsOffset",4100,9],["connectorLength",4100,9], +["outsideLabelsCriticalAngle",4096,1],["forceHoverLabels",4096,1],["connectorStroke",16,1],["mode3d",4116,1],["sliceDrawer",16,1]]);var c={};$.R(c,[["explode",4116,1],["fill",528,1],["stroke",528,1],["hatchFill",528,1],["labels",0,0],["outline",0,0]]);this.ca=new $.cy(this,c,$.bm,[[1,"fill",function(a){var b=!1;$.z(a[0])&&(a[0]=a[0].toLowerCase(),b="aquastyle"==a[0]);return this.g("mode3d")&&b?this.g("fill"):$.E(a[0])||b?a[0]:$.Vb.apply(null,a)}]]);this.ca.ra("labelsFactoryConstructor",Iea);this.ca.ra("labelsAfterInitCallback", +function(a){$.K(a,this.Nd,this);a.ib(this);this.B(4096,1)});this.ca.ra("outlineAfterInitCallback",function(a){$.K(a,this.eia,this);this.B(16,1)});c={};$.R(c,[["explode",4116,1],["fill",16,1],["stroke",16,1],["hatchFill",0,0],["labels",0,0],["outline",16,1]]);this.wa=new $.cy(this,c,$.so);this.wa.ra("labelsFactoryConstructor",$.fy);c={};$.R(c,[["explode",4116,1],["fill",16,1],["stroke",16,1],["hatchFill",0,0],["labels",0,0],["outline",16,1]]);this.Da=new $.cy(this,c,$.to);this.Da.ra("labelsFactoryConstructor", +$.fy);this.ea(!1)},dO=function(a){$.od(a.P);delete a.rd;a.P=Jea(a,a.i);$.K(a.P,a.bd,a);a.B(13104,17)},Jea=function(a,b){if(null!=a.Sc){var c=b;b=new $N(b,"value",a.sp,a.Sc,void 0,function(){return{value:0}});$.pd(c,b);b.GX=!0}c=a.g("sort");"none"!=c&&null!=c&&(b="asc"==c?b.sort("value",function(a,b){return a-b}):b.sort("value",function(a,b){return b-a}),b.GX=!0);return b},gO=function(a,b,c){if(!a)return $.Sl;var d=b+"|"+a+"|"+c,e=fO[d];if(!e){switch(b){case 2:e=$.Ul;break;case 3:e=$.Vl;break;default:case 1:e= +$.Wl}fO[d]=e=$.qa(Kea,a,e,3==b,c)}return e},Kea=function(a,b,c,d,e,f,h,k){if(f!=$.bm&&d){var l=e.qc(a,f,e.$(),b,!1,void 0,h);c&&!0===l&&(l=b(e.wh()));if($.n(l)){if(!$.E(l))return l;if(c)return c=e.Ri(h),b(l.call(c,c))}}a=e.qc(a,0,e.$(),b,!1,void 0,h);d=$.n(k)?k:a;k=$.z(a)&&"aquastyle"==a;c&&!0===a&&(a=b(e.wh()));$.E(a)&&(c=c?e.Ri(h):e.Fe(d,h),a=b(a.call(c,c)));k&&(c=e.$(),c={aquaStyleObj:e.Tb,sourceColor:e.$b().oc(c.la())},a=e.tl.call(c));l&&(c=e.Fe(a,h),a=b(l.call(c,c)));return a},hO=function(a, +b,c){c=a.$().o(c||"hatchSlice");null!=c&&(a=gO("hatchFill",3,!0)(a,b,!1),c.stroke(null).fill(a))},iO=function(a){return $.C(a)&&a.hasOwnProperty("mode")&&a.hasOwnProperty("cx")},jO=function(a){a=null===a?window.NaN:+a;return!($.ea(a)&&!(0,window.isNaN)(a)&&0q||270=p:!1:4==l?4==m?h>=p:!0:!1}if(h)for(l=yO(d,f),h=a.D.length,p=l.length,a.D.length=h+p,m=0;md&&(d=0);0>e&&(e=0);if(d=e?360==Math.abs(h)?l.Ee(b,c,d,.45*d,f,h,!1):l.moveTo(b,c).Ee(b,c,d,.45*d,f,h,!0).close():(m=360>Math.abs(h),l.Ee(b,c,d,.45*d,f,h).Ee(b,c,e,.45*e,f+h,-h,m),m&&l.close()),rO(a,p,k)},FO=function(a,b){var c=a.$(),d=c.la(),e=c.get("normal"),f=$.Wo($.n(e)?e.fill:void 0,c.get("fill"),a.fill());b=$.$l(b);b==$.to?(e=c.get("selected"),c=$.Wo($.n(e)?e.fill:void 0,c.get("selectFill"),a.selected().fill(),f),f=a.YJ(c,f)):b==$.so?(e=c.get("hovered"),c=$.Wo($.n(e)? +e.fill:void 0,c.get("hoverFill"),a.lb().fill(),f),f=a.YJ(c,f)):f=a.YJ(f);f=$.z(f)?$.Gl(f):$.Gl(f.color);d=a.$b().oc(d);var h;$.C(d)&&(d.color?h=$.Gl(d.color):d.keys&&d.keys.length&&(h=$.Gl(d.keys[0].color)));h=h?h.pk:d;return f?f.pk:h},rO=function(a,b,c){var d=a.$(),e=d.la(),f=FO(a,c),h=$.zl(f),k=d.o(b);k.tag={X:a,index:e};var l,m=$.Dl(h,.3),p=$.Cl([255,255,255],h,.1),q=$.Rb($.Cl(h,m,.7));p=$.Rb($.Cl(m,p,.1));var r=$.Rb($.Cl(h,m,.8)),t=$.Rb($.Cl(h,m,.2));h=$.Rb($.Cl(h,m,.1));var u=$.$l(c);m=u==$.so; +u=u==$.to;var v=$.Ql(m?a.lb().fill():u?a.selected().fill():a.fill());t={color:m||u?$.Kl(t,.2):t,opacity:v};p={angle:45,keys:[{position:0,opacity:v,color:m||u?$.Kl(f,.2):$.Kl(f,.1)},{position:.19,opacity:v,color:m||u?$.Kl(p,.2):p},{position:1,opacity:v,color:m||u?$.Kl(r,.2):r}]};q=f={angle:-50,keys:[{position:0,opacity:v,color:m||u?$.Kl(f,.3):f},{position:1,opacity:v,color:m||u?$.Kl(q,.2):q}]};"topPath"==b?l=f:"bottomPath"==b?l=q:$.fc(b,"outer")?l=p:$.fc(b,"inner")?l=t:l={color:m||u?$.Kl(h,.2):h,opacity:v}; +var w;u&&$.Zl(a.selected().stroke())?w=a.selected().stroke():$.Zl(a.stroke())?w=a.stroke():w=l;k.fill(l);k.stroke(w);b="hatch"+String(b.charAt(0)).toUpperCase()+b.substr(1);if(d=d.o(b))d.me(k.F()),d.tag={X:a,index:e},hO(a,c,b)},xO=function(a,b){return 0<=a&&0<=b?1:0>=a&&0<=b?2:0>=a&&0>b?3:4},yO=function(a,b){var c=$.Tm(Math.cos($.bb(a)),7),d=$.Tm(Math.cos($.bb(b)),7),e=xO(c,Math.sin($.bb(a))),f=xO(d,Math.sin($.bb(b))),h=[];if(1==e)switch(f){case 1:c>=d?h.push({start:a,end:b}):(h.push({start:a,end:180, +Cn:!0}),h.push({start:360,end:b}));break;case 2:h.push({start:a,end:b,Cn:!0});break;case 3:case 4:h.push({start:a,end:180,Cn:!0})}else if(2==e)switch(f){case 1:h.push({start:a,end:180});h.push({start:360,end:b});break;case 2:c>=d?h.push({start:a,end:b}):(h.push({start:a,end:180}),h.push({start:360,end:b,Cn:!0}));break;case 3:case 4:h.push({start:a,end:180})}else if(3==e)switch(f){case 1:h.push({start:360,end:b});break;case 2:h.push({start:360,end:b,Cn:!0});break;case 3:c>=d&&h.push({start:0,end:180, +Cn:!0})}else if(4==e)switch(f){case 1:h.push({start:360,end:b});break;case 2:h.push({start:360,end:b,Cn:!0});break;case 3:h.push({start:360,end:180,Cn:!0});break;case 4:c>=d&&h.push({start:0,end:180,Cn:!0})}return h},zO=function(a,b){var c=$.Tm(Math.cos($.bb(a)),7),d=$.Tm(Math.cos($.bb(b)),7),e=xO(c,Math.sin($.bb(a))),f=xO(d,Math.sin($.bb(b))),h=[];if(1==e)switch(f){case 1:c<=d&&h.push({start:180,end:360});break;case 3:h.push({start:180,end:b});break;case 4:h.push({start:180,end:b,Cn:!0})}else if(2== +e)switch(f){case 1:h.push({start:180,end:360,Cn:!0});break;case 2:c<=d&&h.push({start:180,end:360,Cn:!0});break;case 3:h.push({start:180,end:b});break;case 4:h.push({start:180,end:b,Cn:!0})}else if(3==e)switch(f){case 1:case 2:h.push({start:a,end:360,Cn:!0});break;case 3:c>=d?(h.push({start:a,end:360}),h.push({start:180,end:b})):h.push({start:a,end:b});break;case 4:h.push({start:a,end:b,Cn:!0})}else if(4==e)switch(f){case 1:case 2:h.push({start:a,end:360});break;case 3:h.push({start:a,end:360});h.push({start:180, +end:b});break;case 4:c>=d?(h.push({start:a,end:360}),h.push({start:180,end:b})):h.push({start:a,end:b})}return h},lO=function(a,b){var c=a.$();c.select(b);var d=a.Bc,e=a.yc,f=$.fx(a.state,b);if(f=mO(a,f)){var h=a.g("mode3d"),k=c.o("start");c=c.o("sweep");c=(k+c/2)*Math.PI/180;h=(h?.45*f:f)*Math.sin(c);d+=f*Math.cos(c);e+=h}return[d,e]},CO=function(a,b){bd)throw Error("Index can not be masked by this View");return a>=d?(a-=d,2b.la()?1:a.la()this.Ia&& +(this.Ym=t),this.Ia=Math.max(this.Ia,ua);this.aa[t]||(ua=this.Ya[2*t+1]-.2*this.b/2,ua=w&&uaa.width&&(a.width=0);0>a.height&&(a.height=0);this.Tb.fx=!(0,window.isNaN)(e)&&(0,window.isFinite)(e)?e:0;this.Tb.fy=!(0,window.isNaN)(b)&&(0,window.isFinite)(b)?b:0;this.Tb.mode=a;pO(this)}; +$.g.pb=function(){if(this.J(8192)){this.CI();for(var a=this.data().$(),b,c=0,d=Number.MAX_VALUE,e=-Number.MAX_VALUE,f=0;a.advance();)b=a.get("value"),jO(b)?c++:(b=+b,d=Math.min(b,d),e=Math.max(b,e),f+=b);a=a.Ib()-c;var h;a?h=f/a:d=e=f=h=void 0;this.Ka("count",a);this.Ka("min",d);this.Ka("max",e);this.Ka("sum",f);this.Ka("average",h);this.I(8192)}};$.g.ev=function(){this.Ea&&$.J(this.Ea,$.Es)&&$.Fs(this.Ea,this.$().Ib())};$.g.EJ=function(){var a=this.f.ci.rb();$.ob(a,this.Aa)||qO(this,a)}; +$.g.CK=function(){this.B(4,1)}; +$.g.Kh=function(a){this.pb();$.Qu(this.labels());var b=this.$();b.Ib();var c=this.g("mode3d"),d=this.Kp();this.J(16384)&&(d&&d.Wj&&(this.f.IF(),this.f.Wj.parent(this.Ma),this.f.Wj.zIndex(25),this.f.Wj&&($.J(this.f.ci,$.hg)?this.f.Wj.Ja().ta("renderfinish",this.EJ,!1,this):$.J(this.f.ci,$.Y)&&this.f.Wj.ta("chartdraw",this.CK,!1,this))),this.I(16384));this.J(4)&&(this.jf=!0,this.Gm(a),this.B(4112));if(this.J(16)){this.tg=!0;var e=this.Pl();var f=0;for(b.reset();b.advance();)if(f=b.get("value"),jO(f))b.o("missing", +!0);else{f=+f;f=f/this.Og("sum")*360;var h=b.get("state");h="selected"==h?$.to:"hovered"==h?$.so:"normal"==h?$.bm:window.NaN;(0,window.isNaN)(h)||this.state.Dh(h,b.la());b.o("start",e).o("sweep",f).o("explode",mO(this,h));e+=f}}if(this.J(4096)){this.labels().O()||this.labels().O(this.Ma);this.labels().clear();this.rc&&(this.rc.length=0);this.Ed&&(this.Ed.length=0);this.ba&&(this.ba.clear(),c&&this.ec.clear());if(this.labels().enabled()){var k=aO(this)?"outsideLabels":"insideLabels";e=$.pr(this,k, +!0,function(){var a=new $.U;$.pd(this,a);$.W(this,k,a);return a}).na;this.labels().Dq(e.autoColor);this.labels().disablePointerEvents(e.disablePointerEvents);if(aO(this)){if(this.tg||this.jf)this.b=this.qp,this.Ia=Number.NEGATIVE_INFINITY;oO(this);if(this.tg||this.jf){for(e=5;this.Ia&&(0,window.isFinite)(this.Ia)&&e&&10h&&(a=h,this.y=h-this.height);0!=this.labels.length&& +(e=this.mg.lk(this.labels[0]).height,this.y+eL&&(L=Math.abs(t-d));L=D*Math.sqrt(Math.pow(L,2)-Math.pow(t-d,2))/L;D=c+(this.f?1:-1)*Math.abs(L);x=c+x*Math.cos(w);B=d+B*Math.sin(w);var P=c+y*Math.cos(w);w=d+G*Math.sin(w);G=Math.floor($.gn(D, +t,c,d))+v;v=Math.abs($.Ab(D-x,t-B,P-x,w-B));y=0>L||G>y;if(v>this.j||(0,window.isNaN)(this.j)||y){this.j=0>L?Number.POSITIVE_INFINITY:v;L=window.Infinity;for(G=w=0;Gh||y)this.uH=!0;u=D+u;D=this.f?u:u-e.width;this.x=(0,window.isNaN)(this.x)?D:this.x>D?D:this.x;D=this.f?u+e.width:u;this.width=(0,window.isNaN)(this.width)?D:this.widtht?y=$.cb(Math.atan(t/u))+360:0>u?y=$.cb(Math.atan(t/u))+180:!u&&0t&&(y=270);y-=r;this.b.push(y,D,p);a-=e.height/2+q/2}this.width-=this.x}; +$.g.pb=function(){this.Ex();if(this.uH){var a=this.K,b=this.D;(0,window.isNaN)(b)||(a.enabled(!1),this.Xo||(this.Xo=[]),this.Xo.push(a),$.Ca(this.labels,b,1));var c=this.mg;a=this.labels;var d=this.i,e,f,h=d[d.length-1];if(h!=this){var k=null;b=a.slice();var l=d.length,m=!1;var p=0;for(e=a.length;pimg{margin-right:auto;margin-left:auto;display:block;max-width:100%;height:auto;}.anychart-thumbnail:hover,.anychart-thumbnail:focus{border-color:#cccccc;box-shadow:0 1px 3px rgba(0,0,0,.2);}.anychart-thumbnail:active{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);border-color:#489adc;}.anychart-loader{background-color:rgba(255,255,255,.5);position:absolute;top:0;left:0;width:100%;height:100%;z-index:1000;}.anychart-loader .anychart-loader-rotating-cover{width:70px;height:70px;position:absolute;top:50%;margin-top:-35px;left:50%;margin-left:-35px;}.anychart-loader .anychart-loader-rotating-plane{display:block;width:100%;height:100%;border-radius:20%;border:5px solid #1c75ba;margin:0 auto;position:relative;-webkit-animation:anychart-loader-rotate-plane 3s infinite;animation:anychart-loader-rotate-plane 3s infinite;}.anychart-loader .anychart-loader-chart-row{position:absolute;top:10px;bottom:0;left:10px;right:10px;letter-spacing:-3px;line-height:0;font-size:0;white-space:nowrap;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col{display:inline-block;width:25%;height:90%;background:#000000;margin:0 12.5% 0 0;vertical-align:bottom;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col.anychart-loader-green{background:#26a957;height:50%;-webkit-animation:anychart-loader-blink-plane 1.5s infinite;animation:anychart-loader-blink-plane 1.5s infinite;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col.anychart-loader-orange{background:#ff8207;height:70%;-webkit-animation:anychart-loader-blink-plane 1.5s infinite .15s;animation:anychart-loader-blink-plane 1.5s infinite .25s;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col.anychart-loader-red{background:#f0402e;height:90%;-webkit-animation:anychart-loader-blink-plane 1.5s infinite .3s;animation:anychart-loader-blink-plane 1.5s infinite .5s;}@keyframes anychart-loader-rotate-plane{0%{-webkit-transform:perspective(120px)rotateX(0deg)rotateY(0deg);transform:perspective(120px)rotateX(0deg)rotateY(0deg);opacity:1;}25%{-webkit-transform:perspective(120px)rotateX(-180.1deg)rotateY(0deg);transform:perspective(120px)rotateX(-180.1deg)rotateY(0deg);opacity:.3;}50%{-webkit-transform:perspective(120px)rotateX(-180deg)rotateY(-179.9deg);transform:perspective(120px)rotateX(-180deg)rotateY(-179.9deg);opacity:1;}75%{-webkit-transform:perspective(120px)rotateX(0deg)rotateY(-180.1deg);transform:perspective(120px)rotateX(0deg)rotateY(-180.1deg);opacity:.3;}100%{-webkit-transform:perspective(120px)rotateX(0deg)rotateY(0deg);transform:perspective(120px)rotateX(0deg)rotateY(0deg);opacity:1;}}@keyframes anychart-loader-blink-plane{0%{opacity:1;}50%{opacity:.01;}100%{opacity:1;}}.anychart-custom-button{margin:2px;border:0;padding:0;font-family:Arial,sans-serif;color:#000000;background:#dddddd url("../../../ACDVF/button-bg.png") repeat-x top left;text-decoration:none;list-style:none;vertical-align:middle;cursor:pointer;outline:none;}.anychart-custom-button-outer-box,.anychart-custom-button-inner-box{border-style:solid;border-color:#aaaaaa;vertical-align:top;}.anychart-custom-button-outer-box{margin:0;border-width:1px 0;padding:0;}.anychart-custom-button-inner-box{margin:0 -1px;border-width:0 1px;padding:3px 4px;white-space:nowrap;}* html .anychart-custom-button-inner-box{left:-1px;}* html .anychart-custom-button-rtl .anychart-custom-button-outer-box{left:-1px;}* html .anychart-custom-button-rtl .anychart-custom-button-inner-box{right:auto;}* :first-child+html .anychart-custom-button-inner-box{left:-1px;}* :first-child+html .anychart-custom-button-rtl .anychart-custom-button-inner-box{left:1px;}::root .anychart-custom-button,::root .anychart-custom-button-outer-box{line-height:0;}::root .anychart-custom-button-inner-box{line-height:normal;}.anychart-custom-button-disabled{background-image:none !important;opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30);cursor:default;}.anychart-custom-button-disabled .anychart-custom-button-outer-box,.anychart-custom-button-disabled .anychart-custom-button-inner-box{color:#333333 !important;border-color:#999999 !important;}* html .anychart-custom-button-disabled{margin:2px 1px !important;padding:0 1px !important;}* :first-child+html .anychart-custom-button-disabled{margin:2px 1px !important;padding:0 1px !important;}.anychart-custom-button-hover .anychart-custom-button-outer-box,.anychart-custom-button-hover .anychart-custom-button-inner-box{border-color:#99ccff #6699ee #6699ee #77aaff !important;}.anychart-custom-button-active,.anychart-custom-button-checked{background-color:#bbbbbb;background-position:bottom left;}.anychart-custom-button-focused .anychart-custom-button-outer-box,.anychart-custom-button-focused .anychart-custom-button-inner-box{border-color:orange;}.anychart-custom-button-collapse-right,.anychart-custom-button-collapse-right .anychart-custom-button-outer-box,.anychart-custom-button-collapse-right .anychart-custom-button-inner-box{margin-right:0;}.anychart-custom-button-collapse-left,.anychart-custom-button-collapse-left .anychart-custom-button-outer-box,.anychart-custom-button-collapse-left .anychart-custom-button-inner-box{margin-left:0;}.anychart-custom-button-collapse-left .anychart-custom-button-inner-box{border-left:1px solid #ffffff;}.anychart-custom-button-collapse-left.anychart-custom-button-checked.anychart-custom-button-inner-box{border-left:1px solid #dddddd;}* html .anychart-custom-button-collapse-left .anychart-custom-button-inner-box{left:0;}* :first-child+html .anychart-custom-button-collapse-left.anychart-custom-button-inner-box{left:0;}.anychart-button{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #dcdcdc;border:1px solid rgba(0,0,0,0.1);color:#333333;cursor:pointer;text-align:center;font-family:inherit;font-size:11px;font-weight:bold;height:29px;line-height:27px;margin-right:16px;min-width:52px;outline:0;padding:0 8px;white-space:nowrap;}.anychart-button:focus{border-color:#4d90fe;}.anychart-button:hover{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);}.anychart-button:active{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);}.anychart-button i{font-size:11px;}.anychart-button.anychart-button-disabled:active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:default;}.anychart-button-primary{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#4898e6;background-image:-webkit-linear-gradient(to bottom,#4898e6,#4089d0);background-image:-moz-linear-gradient(to bottom,#4898e6,#4089d0);background-image:-ms-linear-gradient(to bottom,#4898e6,#4089d0);background-image:-o-linear-gradient(to bottom,#4898e6,#4089d0);background-image:linear-gradient(to bottom,#4898e6,#4089d0);border:1px solid #1976d2;color:#ffffff;cursor:pointer;font-size:11px;font-weight:bold;height:26px;line-height:24px;margin:0 16px 0 0;min-width:70px;outline:0;padding:0 7px;}.anychart-button-primary:hover,.anychart-button-primary:active{background-color:#4898e6;background-image:-webkit-linear-gradient(to bottom,#4898e6,#387ec3);background-image:-moz-linear-gradient(to bottom,#4898e6,#387ec3);background-image:-ms-linear-gradient(to bottom,#4898e6,#387ec3);background-image:-o-linear-gradient(to bottom,#4898e6,#387ec3);background-image:linear-gradient(to bottom,#4898e6,#387ec3);border:1px solid #1976d2;color:#ffffff;}.anychart-button-primary:focus{-webkit-box-shadow:inset 0 0 0 1px #ffffff;-moz-box-shadow:inset 0 0 0 1px #ffffff;box-shadow:inset 0 0 0 1px #ffffff;outline:0;}.anychart-button-primary:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);}.anychart-button-primary.anychart-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background:#4d90fe;background-image:-webkit-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:-moz-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:-ms-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:-o-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:linear-gradient(to bottom,#4d90fe,#4089d0);filter:alpha(opacity=50);opacity:0.5;cursor:default;}.anychart-button-secondary{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #dcdcdc;color:#333333;cursor:pointer;font-size:11px;font-weight:bold;height:26px;line-height:24px;margin:0 16px 0 0;min-width:70px;outline:0;padding:0 7px;}.anychart-button-secondary:hover,.anychart-button-secondary:active{-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,0.1);box-shadow:0 1px 1px rgba(0,0,0,0.1);background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);border:1px solid #c6c6c6;color:#111111;}.anychart-button-secondary:focus{border:1px solid #4d90fe;}.anychart-button-secondary:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);}.anychart-button-secondary.anychart-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #f3f3f3;border:1px solid rgba(0,0,0,0.05);color:#b8b8b8;cursor:default;}.anychart-button-standard{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);color:#333333;border:1px solid #dcdcdc;border:1px solid rgba(0,0,0,0.1);}.anychart-button-standard:hover{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);border:1px solid #c6c6c6;color:#111111;}.anychart-button-standard:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:#f8f8f8;color:#111111;}.anychart-button-standard.anychart-button-checked{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background-color:#eeeeee;background-image:-webkit-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-moz-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-ms-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-o-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:linear-gradient(to bottom,#eeeeee,#e0e0e0);border:1px solid #cccccc;color:#333333;}.anychart-button-standard.anychart-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #f3f3f3;border:1px solid rgba(0,0,0,0.05);color:#b8b8b8;cursor:default;}.anychart-button-toggle{height:28px;line-height:24px;padding:0;min-width:27px;margin:0;vertical-align:middle;}.anychart-button.anychart-button-toggle{z-index:auto;}.anychart-button-collapse-left,.anychart-button-collapse-right{z-index:1;}.anychart-button-collapse-left.anychart-button-checked,.anychart-button-collapse-right.anychart-button-checked{z-index:2;}.anychart-button-collapse-left:hover,.anychart-button-collapse-right:hover{z-index:3;}.anychart-button-collapse-left.anychart-button-disabled{z-index:0;}.anychart-button-collapse-right{margin-right:0;-moz-border-radius-topright:0;-moz-border-radius-bottomright:0;-webkit-border-top-right-radius:0;-webkit-border-bottom-right-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;}.anychart-button-collapse-left{margin-left:-1px;-moz-border-radius-bottomleft:0;-moz-border-radius-topleft:0;-webkit-border-bottom-left-radius:0;-webkit-border-top-left-radius:0;border-bottom-left-radius:0;border-top-left-radius:0;}.anychart-menu{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:0 2px 4px rgba(0,0,0,0.2);-moz-box-shadow:0 2px 4px rgba(0,0,0,0.2);box-shadow:0 2px 4px rgba(0,0,0,0.2);background:#ffffff;border:1px solid #cccccc;border:1px solid rgba(0,0,0,.2);cursor:default;font-size:13px;color:#222222;font-family:Arial,sans-serif;margin:0;outline:none;padding:6px 0;position:absolute;z-index:1003;line-height:normal;}.anychart-menuitem{position:relative;color:#333333;cursor:pointer;list-style:none;margin:0;padding:6px 1em 6px 30px;white-space:nowrap;}.anychart-menuitem.anychart-menuitem-rtl{padding-left:7em;padding-right:28px;}.anychart-menu-nocheckbox .anychart-menuitem,.anychart-menu-noicon .anychart-menuitem{padding-left:12px;}.anychart-menu-noaccel .anychart-menuitem{padding-right:20px;}.anychart-menuitem-disabled{cursor:default;}.anychart-menuitem-disabled .anychart-menuitem-accel,.anychart-menuitem-disabled .anychart-menuitem-content{color:#cccccc !important;}.anychart-menuitem-disabled .anychart-menuitem-icon{opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30);}.anychart-menuitem-highlight,.anychart-menuitem-hover{background-color:#eeeeee;border-color:#eeeeee;border-style:dotted;border-width:1px 0;padding-top:5px;padding-bottom:5px;}.anychart-menuitem-checkbox,.anychart-menuitem-icon{background-repeat:no-repeat;height:21px;left:3px;position:absolute;right:auto;top:3px;vertical-align:middle;width:21px;}.anychart-menuitem i{position:absolute;left:9px;}.anychart-menuitem-link{padding:0;}.anychart-menuitem-link a{text-decoration:none;color:inherit;display:inline-block;padding:6px 3em 6px 28px;width:100%;box-sizing:border-box;transition:none;}.anychart-menuitem-link i{padding-top:7px;pointer-events:none;}.anychart-menuitem-link.anychart-menuitem-highlight a{padding-bottom:5px;padding-top:5px;}.anychart-menuitem-link.anychart-menuitem-highlight i{padding-top:6px;}.anychart-menuitem-rtl .anychart-menuitem-checkbox,.anychart-menuitem-rtl .anychart-menuitem-icon{left:auto;right:6px;}.anychart-menuitem-accel{color:#777777;direction:ltr;left:auto;float:right;padding:0 0 0 24px;position:relative;right:0;text-align:right;}.anychart-menuitem-rtl .anychart-menuitem-accel{left:0;right:auto;text-align:left;}.anychart-menuitem-mnemonic-hint{text-decoration:underline;}.anychart-menuitem-mnemonic-separator{color:#999999;font-size:12px;padding-left:4px;}.anychart-menuseparator{border-top:1px solid #ebebeb;margin-top:6px;margin-bottom:6px;}.anychart-submenu-arrow{color:#000000;opacity:.5;filter:alpha(opacity=50);position:absolute;right:-6px;top:3px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000;font-size:0;}.anychart-menuitem-content{position:relative;}.anychart-menuitem-highlight .anychart-submenu-arrow,.anychart-menuitem-hover .anychart-submenu-arrow{border-left-color:#333333;opacity:1.0;}.anychart-menuitem-rtl .anychart-submenu-arrow{text-align:left;left:0;right:auto;padding-left:6px;}.anychart-menuitem-disabled .anychart-submenu-arrow{border-left-color:#cccccc;opacity:1.0;}.anychart-menu-scrollable{overflow-y:auto;}.anychart-menu.anychart-menu-horizontal{padding-left:4px;padding-right:4px;}.anychart-menu.anychart-menu-horizontal .anychart-menuitem{display:inline-block;padding:2px 3px;}.anychart-menu.anychart-menu-horizontal .anychart-menuitem.anychart-menuitem-highlight,.anychart-menu.anychart-menu-horizontal .anychart-menuitem .anychart-menuitem-hover{padding-top:1px;padding-bottom:1px;}.anychart-menuitem.anychart-option i{position:relative;left:1px;height:23px;padding-top:1px;width:23px;}.anychart-menuitem.anychart-option i.ac-position-center{top:-1px;}.anychart-menu-button{background:#dddddd url("../../../ACDVF/button-bg.png") repeat-x top left;border:0;color:#000000;cursor:pointer;list-style:none;margin:2px;outline:none;padding:0;text-decoration:none;vertical-align:middle;}.anychart-menu-button-outer-box,.anychart-menu-button-inner-box{border-style:solid;border-color:#aaaaaa;vertical-align:top;}.anychart-menu-button-outer-box{margin:0;border-width:1px 0;padding:0;}.anychart-menu-button-inner-box{margin:0 -1px;border-width:0 1px;padding:3px 4px;}* html .anychart-menu-button-inner-box{left:-1px;}* html .anychart-menu-button-rtl .anychart-menu-button-outer-box{left:-1px;right:auto;}* html .anychart-menu-button-rtl .anychart-menu-button-inner-box{right:auto;}* :first-child+html .anychart-menu-button-inner-box{left:-1px;}* :first-child+html .anychart-menu-button-rtl .anychart-menu-button-inner-box{left:1px;right:auto;}::root .anychart-menu-button,::root .anychart-menu-button-outer-box,::root .anychart-menu-button-inner-box{line-height:0;}::root .anychart-menu-button-caption,::root .anychart-menu-button-dropdown{line-height:normal;}.anychart-menu-button-disabled{background-image:none !important;opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30);cursor:default;}.anychart-menu-button-disabled .anychart-menu-button-outer-box,.anychart-menu-button-disabled .anychart-menu-button-inner-box,.anychart-menu-button-disabled .anychart-menu-button-caption,.anychart-menu-button-disabled .anychart-menu-button-dropdown{color:#333333 !important;border-color:#999999 !important;}* html .anychart-menu-button-disabled{margin:2px 1px !important;padding:0 1px !important;}* :first-child+html .anychart-menu-button-disabled{margin:2px 1px !important;padding:0 1px !important;}.anychart-menu-button-hover .anychart-menu-button-outer-box,.anychart-menu-button-hover .anychart-menu-button-inner-box{border-color:#99ccff #6699ee #6699ee #77aaff !important;}.anychart-menu-button-active,.anychart-menu-button-open{background-color:#bbbbbb;background-position:bottom left;}.anychart-menu-button-focused .anychart-menu-button-outer-box,.anychart-menu-button-focused .anychart-menu-button-inner-box{border-color:orange;}.anychart-menu-button-caption{padding:0 4px 0 0;vertical-align:top;}.anychart-menu-button-dropdown{height:15px;width:7px;background:url("../../../ACDVF/editortoolbar.png") no-repeat -388px 0;vertical-align:top;}.anychart-menu-button-collapse-right,.anychart-menu-button-collapse-right .anychart-menu-button-outer-box,.anychart-menu-button-collapse-right .anychart-menu-button-inner-box{margin-right:0;}.anychart-menu-button-collapse-left,.anychart-menu-button-collapse-left .anychart-menu-button-outer-box,.anychart-menu-button-collapse-left .anychart-menu-button-inner-box{margin-left:0;}.anychart-menu-button-collapse-left .anychart-menu-button-inner-box{border-left:1px solid #ffffff;}.anychart-menu-button-collapse-left.anychart-menu-button-checked.anychart-menu-button-inner-box{border-left:1px solid #dddddd;}.anychart-flat-menu-button{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;border:1px solid #dcdcdc;color:#333333;cursor:pointer;font-size:11px;font-weight:bold;line-height:27px;list-style:none;margin:0 2px;min-width:46px;outline:none;padding:0 18px 0 6px;text-align:center;text-decoration:none;}.anychart-flat-menu-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #f3f3f3;border:1px solid rgba(0,0,0,0.05);color:#b8b8b8;cursor:default;}.anychart-flat-menu-button-disabled .anychart-flat-menu-button-dropdown{border-color:#b8b8b8 transparent;}.anychart-flat-menu-button-hover{background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);border-color:#c6c6c6;color:#111111;}.anychart-flat-menu-button.anychart-flat-menu-button-open,.anychart-flat-menu-button.anychart-flat-menu-button-active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background-color:#eeeeee;background-image:-webkit-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-moz-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-ms-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-o-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:linear-gradient(to bottom,#eeeeee,#e0e0e0);border:1px solid #cccccc;color:#333333;z-index:2;}.anychart-flat-menu-button-focused{border-color:#4d90fe;}.anychart-flat-menu-button-caption{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;padding-right:20px;text-overflow:ellipsis;overflow:hidden;width:100%;}.anychart-flat-menu-button-dropdown{border-color:#777777 transparent;border-style:solid;border-width:4px 4px 0 4px;height:0;width:0;position:absolute;right:5px;top:12px;}.anychart-flat-menu-button-active .anychart-flat-menu-button-dropdown,.anychart-flat-menu-button-open .anychart-flat-menu-button-dropdown,.anychart-flat-menu-button-selected .anychart-flat-menu-button-dropdown,.anychart-flat-menu-button-hover .anychart-flat-menu-button-dropdown{border-color:#595959 transparent;}.anychart-combobox{background:0;background-color:whiteSmoke;background-image:-webkit-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-moz-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-ms-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-o-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:linear-gradient(to bottom,whiteSmoke,#f1f1f1);border:1px solid gainsboro;border:1px solid rgba(0,0,0,0.1);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font:normal small arial,sans-serif;height:24px;color:#333333;line-height:24px;list-style:none;font-size:11px;font-weight:bold;text-decoration:none;vertical-align:middle;cursor:pointer;margin-left:4px;padding:1px 0;top:auto;}.anychart-combobox:hover{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);border-color:#c6c6c6;color:#222222;}.anychart-combobox:hover input{border-right-color:#d9d9d9;}.anychart-combobox.anychart-combobox-disabled{background-color:whiteSmoke;background-image:-webkit-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-moz-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-ms-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-o-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:linear-gradient(to bottom,whiteSmoke,#f1f1f1);border:1px solid #f2f2f2;opacity:1;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:default;}.anychart-combobox.anychart-combobox-disabled input{color:#b8b8b8;border-right-color:transparent;}.anychart-combobox.anychart-combobox-disabled .anychart-combobox-button{opacity:0.4;}.anychart-combobox input{-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background:transparent;border:1px solid transparent;color:#333333;font-family:Arial,sans-serif;font-size:11px;font-weight:bold;height:20px;overflow:hidden;padding:0 0 0 3px;position:relative;margin-right:18px;}.anychart-combobox input:focus{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-webkit-user-select:text;-moz-user-select:text;background:#ffffff;border:1px solid #4d90fe;height:20px;outline:none;}.anychart-combobox-button{display:inline-block;border-color:#777777 transparent;border-style:solid;border-width:4px 4px 0 4px;height:0;width:0;position:absolute;right:5px;top:12px;}.anychart-checkbox{cursor:pointer;display:inline-block;margin:2px 2px 2px 0;overflow:hidden;padding:0;position:relative;white-space:nowrap;vertical-align:middle;}.anychart-checkbox .anychart-checkbox-element{-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:rgba(255,255,255,.05);border:1px solid #c6c6c6;border:1px solid rgba(155,155,155,.57);height:11px;margin:0 4px 1px 1px;outline:0;vertical-align:text-bottom;width:11px;}.anychart-checkbox-hover .anychart-checkbox-element{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.1);box-shadow:inset 0 1px 1px rgba(0,0,0,.1);border:1px solid #b2b2b2;}.anychart-checkbox-focused .anychart-checkbox-element{border:1px solid #4d90fe;}.anychart-checkbox-checked{background-color:#ffffff;background-color:rgba(255,255,255,.65);}.anychart-checkbox-checked .anychart-checkbox-checkmark{display:inline-block;}.anychart-checkbox-disabled{cursor:default;color:#b8b8b8;}.anychart-checkbox-disabled .anychart-checkbox-element{background-color:#ffffff;border:1px solid #f1f1f1;cursor:default;}.anychart-checkbox-checkmark{display:none;opacity:0.6;height:15px;outline:0;width:15px;left:0;position:relative;top:-3px;}.anychart-palette{cursor:default;outline:none;}.anychart-palette-table{empty-cells:show;margin:16px;}.anychart-palette-cell{border:1px solid transparent;cursor:pointer;margin:0;position:relative;}.anychart-plot-controls{position:absolute;}.anychart-plot-controls .anychart-button{min-width:20px;height:20px;opacity:0.7;line-height:0;vertical-align:middle;margin:0;padding:0;display:inline-block;}.anychart-plot-controls-hidden{visibility:hidden;}.anychart-palette-colorswatch{border:none;font-size:14px;height:16px;position:relative;width:16px;display:block;}.anychart-palette-colorswatch:before{display:none;position:relative;top:1px;left:2px;}.anychart-palette-cell-hover{border:1px solid #000000;}.anychart-palette-cell-selected{outline:1px solid #000000;}.anychart-palette-cell-selected .anychart-palette-colorswatch:before{display:inline-block;}.anychart-color-menu-button-indicator{height:14px;margin-left:4px;outline:1px solid #bbbbbb;width:14px;}.anychart-color-menu-button .anychart-menu-button-inner-box,.anychart-toolbar-color-menu-button .anychart-toolbar-menu-button-inner-box{padding-top:2px !important;padding-bottom:2px !important;}.anychart-toolbar{background-color:#f7f7f7;border:1px solid #d5d5d5;cursor:default;font:normal 12px Verdana,sans-serif;color:#7c868e;padding:2px;position:relative;}.anychart-toolbar-button,.anychart-toolbar-menu-button{margin:0 2px;border:0;padding:2px 2px;text-decoration:none;vertical-align:middle;list-style:none;cursor:default;outline:none;}.anychart-toolbar-button-inner-box,.anychart-toolbar-menu-button-inner-box{padding:3px 4px;}.anychart-toolbar-button-hover,.anychart-toolbar-menu-button-hover{background-color:#eeeeee;}.anychart-toolbar-menu-button-active,.anychart-toolbar-menu-button-open,.anychart-toolbar-button-active,.anychart-toolbar-button-checked,.anychart-toolbar-button-selected{background-color:#dddddd !important;}.anychart-toolbar-menu-button-dropdown{margin-left:3px;padding-bottom:1px;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #7c868e;vertical-align:middle;}.anychart-toolbar-separator{margin:0 2px;border-left:1px solid #d6d6d6;border-right:1px solid #f7f7f7;padding:0;width:0;text-decoration:none;list-style:none;outline:none;vertical-align:middle;line-height:normal;font-size:120%;overflow:hidden;}.anychart-toolbar-item-icon{padding:0 2px;font-size:13px;color:#2485d0;}.anychart-toolbar-item-text{padding:0 2px;}.anychart-toolbar-menu{background-color:#f7f7f7;border:1px solid #d5d5d5;cursor:default;font:normal 12px Verdana,sans-serif;color:#7c868e;margin:0;outline:none;padding:6px 0;position:absolute;z-index:1003;line-height:normal;}.anychart-toolbar-menu .anychart-menuitem{color:#7c868e;}.anychart-toolbar-menu-button-hover .anychart-toolbar-menu-button-dropdown,.anychart-toolbar-menu-button-open .anychart-toolbar-menu-button-dropdown{border-top:4px solid #000000;}.anychart-toolbar-menu .anychart-menuitem i,.anychart-toolbar-menu .anychart-menuitem-content{display:inline;position:static;}.anychart-toolbar-menu .anychart-menuitem{padding:6px 5px;padding-right:8px;border-style:none;}.anychart-toolbar-menu .anychart-submenu-arrow{position:absolute;right:0;top:9px;padding:0 2px;}.anychart-menuitem-content{margin-right:1rem;}.anychart-option[role='menuitemradio']{padding-left:1.5rem;}.anychart-option-selected .anychart-menuitem-checkbox:before{content:'\2713';display:block;width:100%;height:100%;text-align:center;}.anychart-range-picker{font-family:Arial,sans-serif;font-size:11px;color:#7c868e;}.anychart-range-picker.anychart-range-picker-inside{position:absolute;bottom:27px;left:20px;}.anychart-range-picker .anychart-label-input{font-size:11px;margin:0 5px;height:13px;padding:3px 4px;width:90px;font-weight:normal;}.anychart-range-picker .anychart-input-label{margin-bottom:0;font-weight:normal;}.anychart-range-selector{font-family:Arial,sans-serif;font-size:11px;color:#7c868e;}.anychart-range-selector.anychart-range-selector-inside{position:absolute;bottom:27px;right:25px;}.anychart-range-selector .anychart-input-label{margin-right:5px;vertical-align:middle;margin-bottom:0;font-weight:normal;}.anychart-range-selector .anychart-button{height:21px;line-height:19px;padding:0 5px;}.anychart-zoom{position:absolute;left:10px;top:10px;}.anychart-zoom .anychart-button{height:21px;width:21px;min-width:21px;padding:0;line-height:normal;display:block;margin:5px 0;}.anychart-zoom .anychart-zoom-zoomIn{margin:2px 0;}.anychart-zoom .anychart-zoom-zoomOut{margin:2px 0;}.disable-selection{-moz-user-select:none;-ms-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;}.anychart-tooltip{border-radius:3px;padding:5px 10px;background:rgba(33,33,33,0.7);border:none;display:inline-block;box-sizing:border-box;letter-spacing:normal;color:#ffffff;font-family:Verdana,Helvetica,Arial,'sans-serif';font-size:12px;position:absolute;pointer-events:none;margin:10px 0px 10px 10px;}.anychart-tooltip-separator{color:rgba(206,206,206,0.3);border:none;height:1px;margin:5px 0;}.anychart-tooltip-title{font-size:14px;} \ No newline at end of file diff --git a/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.14.0/js/anychart-base.min_qe95e7e741b.js b/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.14.0/js/anychart-base.min_qe95e7e741b.js new file mode 100644 index 0000000000000000000000000000000000000000..fae1d29c629d04663e8d96e2124eaec5e704a648 --- /dev/null +++ b/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.14.0/js/anychart-base.min_qe95e7e741b.js @@ -0,0 +1,2155 @@ +/** + * AnyChart is lightweight robust charting library with great API and Docs, that works with your stack and has tons of chart types and features. + * + * Modules: core, theme-core, pie, theme-pie, cartesian, theme-cartesian, scatter, theme-scatter + * Version: 8.14.0.1940 (2025-11-19) + * License: https://www.anychart.com/buy/ + * Contact: sales@anychart.com + * Copyright: AnyChart.com 2025. All rights reserved. + */ +(function(global,factory){if(typeof module==='object'&&typeof module.exports==='object'){var wrapper=function(w){if(!w.document){throw Error('AnyChart requires a window with a document');}factory.call(w,w,w.document);try{w.acgraph.isNodeJS=Object.prototype.toString.call(global.process)=="[object process]";}catch(e){};return w.anychart;};module.exports=global.document?wrapper(global):wrapper;}else{factory.call(global,window,document)}})(typeof window!=='undefined'?window:this,function(window,document,opt_noGlobal){var $,_,$_=this.anychart;if($_&&(_=$_._)){$=$_.$}else{$={};_={}}if(!_.core){_.core=1;(function($){var ba,baa,caa,ta,Ea,daa,La,eaa,Sa,faa,Ya,gaa,ub,yb,Gb,Lb,Pb,Nb,Ob,bc,ic,sc,tc,wc,yc,Vb,paa,Tc,Vc,Wc,Xc,Yc,raa,$c,td,zd,Cd,xaa,Fd,Hd,Id,Jd,Nd,yaa,Kd,Zd,Vd,de,Aaa,Od,Md,Le,Ne,Ue,ef,kf,se,nf,of,pf,sf,Ef,Bf,Tf,Xf,Zf,$f,cg,eg,dg,fg,kg,ng,og,qg,tg,vg,xg,wg,ug,Cg,Bg,Eg,Hg,Haa,Ig,Kg,Og,Vg,Xg,Yg,Zg,Pg,Wg,Ng,bh,ch,dh,fh,kh,ih,hh,th,vh,wh,zh,Dh,Eh,Fh,Gh,Hh,Ih,Kh,Lh,Mh,Rh,Sh,Th,Uh,Vh,Wh,Xh,gi,hi,ii,ji,ki,li,mi,ni,oi,pi,qi,ri,si,ti,ui,vi,Zh,ai,xi,yi,zi,Ai,Gi,Hi,Kaa,Laa,Maa,Ii,Ki,Ni,Oi,Pi,Ti,Ui,Vi,Wi,Xi,Saa,Taa, +bj,pj,rj,sj,wj,Vaa,vj,tj,uj,Aj,Uaa,xj,Mi,Oaa,Naa,Waa,Vj,Wj,Xj,ak,bk,ck,dk,fk,ek,Uj,ik,rk,Xb,Li,xk,Ck,Fk,eba,hba,Qk,pba,tba,gl,Cba,Dba,ql,rl,sl,tl,ul,vl,Al,Bl,Gl,Il,Nl,Ml,Ql,Tl,Vl,Nba,qm,tm,vm,rm,Am,sm,Cm,Em,Xa,Rm,Tm,Um,Vm,Xm,en,fn,gn,hn,ln,nn,wn,xn,yn,An,zn,Bn,Cn,Dn,En,On,Pn,Qn,Rn,Pba,Wn,Xn,Zn,Yn,$n,fo,co,bo,ho,io,Rba,Sba,Tba,ko,jo,lo,mo,vo,yo,Xba,Jo,$o,Yba,cp,jp,Zba,kp,Wm,op,qp,wp,vp,aca,$ba,zp,Cp,Gp,Kp,Lp,Mp,Sp,Pp,Qp,dca,Up,aq,hq,iq,yl,wl,eca,xl,qq,rq,uq,vq,xq,zq,Aq,gr,hr,jr,nr,Iq,fr,er,dr,vr,Fr, +Kr,Pr,Qr,Rr,fca,Xr,Zr,$r,hca,cs,ds,es,hs,fs,gs,jca,js,ks,ls,ns,os,qs,ts,vs,xs,Gs,ys,Ss,Zs,$s,at,dt,et,ft,gt,ht,it,jt,wt,zt,yt,At,Dt,Gt,Ht,Bt,Lt,Mt,rca,Tt,Ut,Vt,Xt,du,eu,fu,gu,qu,ru,su,tu,uu,lu,vu,pu,wu,xu,zu,Eu,Fu,Ju,Ku,Lu,Mu,Nu,Ou,Qu,Su,Tu,sca,$u,av,uca,mv,ov,pv,qv,ev,vca,rv,wca,bv,tv,uv,vv,wv,Av,Bv,Cv,Dv,Ev,Gv,Hv,Jv,xca,Kv,Lv,Mv,Iv,yca,zca,Bca,Aca,Nv,Qv,Sv,Tv,$v,aw,Vv,bw,cw,dw,ew,fw,Xv,Wv,Yv,Zv,Cca,Dca,gw,hw,jw,kw,nw,ow,pw,qw,rw,sw,tw,uw,vw,xw,yw,ww,zw,Gw,Jw,Eca,Lw,Rw,Ow,Mw,Tw,Pw,Fw,Zw,$w,Uw,ax, +Hw,Qw,Xw,bx,ex,fx,Gca,Hca,Ica,Jca,Kca,hx,Lca,ix,jx,lx,mx,nx,ox,wx,Mca,Ex,Gx,Hx,Kx,Nx,Ox,Rx,Vx,Tx,Wx,$x,ay,by,hy,fy,py,qy,ry,sy,ty,Oca,Pca,Qca,Rca,Dy,Ey,Sy,cz,ez,Tca,bz,fz,iz,kz,pz,Vca,tz,vz,xz,yz,Az,Ez,Wca,Gz,Hz,Iz,Jz,Kz,Lz,Nz,Oz,Pz,Qz,$z,Yca,Zca,cA,eA,jA,mA,oA,pA,tA,uA,zA,AA,BA,CA,DA,FA,GA,HA,IA,$ca,KA,LA,OA,SA,bA,TA,WA,VA,UA,aB,cB,$A,fB,gB,hB,iB,jB,oB,pB,ada,wB,xB,zB,bda,cda,yB,dda,AB,CB,EB,HB,eda,LB,PB,RB,SB,TB,UB,WB,VB,XB,YB,ZB,$B,bC,cC,eC,fC,nC,oC,pC,rC,sC,uC,vC,zC,AC,CC,DC,HC,IC,JC,KC,EC,FC, +GC,LC,MC,NC,OC,PC,QC,RC,SC,TC,UC,VC,WC,XC,YC,aD,ida,hda,eD,fD,bD,gD,hD,iD,nD,ED,BD,ID,LD,HD,MD,GD,OD,UD,aa,na,aaa;ba=function(a){return function(){return aa[a].apply(this,arguments)}};$.ca=function(a,b){return aa[a]=b};$.p=function(a){return void 0!==a};$.z=function(a){return"string"==typeof a};$.da=function(a){return"boolean"==typeof a};$.ea=function(a){return"number"==typeof a};$.ha=function(a){a=a.split(".");for(var b=$.fa,c=0;cb?null:$.z(a)?a.charAt(b):a[b]};$.xa=function(a,b,c){for(var d=a.length,e=$.z(a)?a.split(""):a,f=0;f=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};$.Ka=function(a,b,c){function d(a){return $.C(a)?"o"+$.oa(a):(typeof a).charAt(0)+a}b=b||a;c=c||d;for(var e={},f=0,h=0;h>1,m;c?m=b.call(e,a[l],l,a):m=b(d,a[l]);0b?1:ac?($.Da(a,b,-(c+1)),!0):!1};$.Va=function(a,b){var c=[],d=0,e=a;void 0!==b&&(d=a,e=b);if(0>e-d)return[];for(;dc*b?c+b:c};$.ab=function(a){return $.$a(a,360)};$.bb=function(a){return a*Math.PI/180};$.cb=function(a){return 180*a/Math.PI};$.db=function(a,b){return b*Math.cos($.bb(a))};$.eb=function(a,b){return b*Math.sin($.bb(a))};$.fb=function(a){return 0a?-1:a};$.gb=function(a,b){this.x=$.p(a)?a:0;this.y=$.p(b)?b:0}; +$.ib=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};$.jb=function(a,b){var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)};$.kb=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};$.lb=function(a,b){this.width=a;this.height=b};$.mb=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};$.I=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}; +$.nb=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};$.ob=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top),f=Math.min(a.top+a.height,b.top+b.height);if(e<=f)return new $.I(c,e,d-c,f-e)}return null}; +gaa=function(a,b){var c;if((c=$.ob(a,b))&&c.height&&c.width){c=[];var d=a.top,e=a.height,f=a.left+a.width,h=a.top+a.height,k=b.left+b.width,l=b.top+b.height;b.top>a.top&&(c.push(new $.I(a.left,a.top,a.width,b.top-a.top)),d=b.top,e-=b.top-a.top);la.left&&c.push(new $.I(a.left,d,b.left-a.left,e));k=a.left&&b.x<=a.left+a.width&&b.y>=a.top&&b.y<=a.top+a.height:a.left<=b.left&&a.left+a.width>=b.left+b.width&&a.top<=b.top&&a.top+a.height>=b.top+b.height}; +$.rb=function(a,b){var c=b.xn;n++){var q=-3*f[n]+9*h[n]-9*k[n]+3*l[n],r=6*f[n]-12*h[n]+6*k[n];m=3*h[n]-3*f[n];if(0==q)0!=r&&(m=-m/r,0m&&c[n].push(b(f[n],h[n],k[n],l[n],m))); +else{var t=r*r-4*m*q;0m&&c[n].push(b(f[n],h[n],k[n],l[n],m)),m=(-r-Math.sqrt(t))/(2*q),0m&&c[n].push(b(f[n],h[n],k[n],l[n],m))):0==t&&(m=-r/(2*q),0m&&c[n].push(b(f[n],h[n],k[n],l[n],m)))}}}d=new $.I(Math.min.apply(null,c[0]),Math.min.apply(null,c[1]),0,0);d.width=Math.max.apply(null,c[0])-d.left;d.height=Math.max.apply(null,c[1])-d.top;return d}; +yb=function(a){if(0==arguments.length)return null;for(var b=null,c=!1,d=0,e=arguments.length;d":"
")}; +$.pc=function(a){if(!haa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(iaa,"&"));-1!=a.indexOf("<")&&(a=a.replace(jaa,"<"));-1!=a.indexOf(">")&&(a=a.replace(kaa,">"));-1!=a.indexOf('"')&&(a=a.replace(laa,"""));-1!=a.indexOf("'")&&(a=a.replace(maa,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(naa,"�"));return a}; +sc=function(a){for(var b=[],c=0;cf)var h=e;else{if(256>f){if(h="\\x",16>f||256f&&(h+="0");h+=f.toString(16).toUpperCase()}e=qc[e]=h}b[d]=e}return b.join("")};tc=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#b?1:0};yc=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};$.zc=function(a){var b=$.z(void 0)?tc(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};Vb=function(a,b){for(var c=a.split(" "),d=[];0=a};$.ed=function(a){var b=$.ka(a);if("array"==b){b=[];for(var c=0;cc.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(l){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);f=a.type;for(var h=c.length-1;!d.b&&0<=h;h--){d.currentTarget=c[h];var k=$.ee(c[h],f,!0,d);e=e&&k}for(h=0;!d.b&&h");c=c.join("")}c=a.createElement(c);d&&($.z(d)?c.className=d:$.A(d)?c.className=d.join(" "):$.Ce(c,d));2a};$.lf=function(a){var b=[];kf(a,b,!1);return b.join("")};kf=function(a,b,c){if(!(a.nodeName in Eaa))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in mf)b.push(mf[a.nodeName]);else for(a=a.firstChild;a;)kf(a,b,c),a=a.nextSibling}; +$.Qe=function(a){if(a&&"number"==typeof a.length){if($.C(a))return"function"==typeof a.item||"string"==typeof a.item;if($.D(a))return"function"==typeof a.item}return!1};se=function(a){this.b=a||$.fa.document||window.document};nf=function(a){$.od.call(this);this.qo=a;this.b={}};of=function(a,b,c,d,e,f){if($.A(c))for(var h=0;hl&&(l=0);l=Math.sqrt(l);f==h&&(l=-l);f=l*d*c/e;k=-l*e*b/d;l=$.Bb(1,0,(b-f)/d,(c-k)/e);b=$.Bb((b-f)/d,(c-k)/e,(-b-f)/d,(-c-k)/e)%360;!h&&0b&&(b+=360);return wg(a,d,e,l,b)}; +wg=function(a,b,c,d,e){if(0==a.j.length)throw $.ld(9);if(0==e)return a;var f=a.ag[0]-$.db(d,b),h=a.ag[1]-$.eb(d,c);var k=Math.ceil(Math.abs(e)/359.999-2E-15);for(var l=e/k,m=0;m=b&&(n=!1);if(n){for(;l=a?c=180+c:270=a&&(c=360+c);return c%360};$.ph=function(a,b,c){for(var d in c)a.lc(b,d,c[d])};$.qh=function(a,b,c){b&&(c?a.lc(b,"id",c):b.removeAttribute("id"))}; +$.rh=function(a,b,c){if(b.Uj())return null;var d=[],e=a.B4;(c?b.kfa:b.LT).call(b,function(a,b){var c=e[a];c&&(d.push(c),4==a?this.U4(d,b):5!=a&&this.Y4(d,b))},a);return d.join(" ")};th=function(a){if(!a.iu||a.iu.md)a.iu=new ch($.sh.document.body);return a.iu};$.uh=function(){this.Ta=new $.I(0,0,0,0);$.hg.call(this)};vh=function(){};wh=function(a){a.style||(a.style=a.F.length?$.Qc(a.F[a.F.length-1]):{})}; +zh=function(a,b){switch(b){case "b":case "strong":wh(a);a.style.fontWeight="bold";break;case "i":case "em":wh(a),a.style.fontStyle="italic"}}; +Dh=function(a,b,c){switch(b){case "font-style":wh(a);a.style.fontStyle=c||"normal";break;case "font-variant":wh(a);a.style.fontVariant=c||"normal";break;case "font-family":wh(a);a.style.fontFamily=c||$.Ch.fontFamily;break;case "font-size":wh(a);a.style.fontSize=c||$.Ch.fontSize;break;case "font-weight":wh(a);a.style.fontWeight=c||"normal";break;case "color":wh(a);a.style.color=c||$.Ch.color;break;case "letter-spacing":wh(a);a.style.letterSpacing=c||"normal";break;case "text-decoration":wh(a);a.style.er= +c||"none";break;case "opacity":wh(a),a.style.opacity=null!=c?(0,window.parseFloat)(c):1}};Eh=function(a){""!=a.b&&(a.xb.nK(a.b,a.F.length?a.F[a.F.length-1]:null),a.b="",a.ea=!1)};Fh=function(a){a.K==(a.P.length?a.P[a.P.length-1]:null)&&(Eh(a),a.F.pop(),a.P.pop(),a.tagName="");a.K="";a.state=1};Gh=function(a,b){zh(a,a.tagName);a.P.push(a.tagName);a.F.push(a.style);b&&(a.f="");a.tagName="";a.style=null;a.state=1};Hh=function(a,b,c){Dh(a,a.j,a.G||"");a.j="";a.G="";c&&(a.f="");a.state=b}; +Ih=function(a){zh(a,a.tagName);Dh(a,a.j,a.G||"");a.P.push(a.tagName);a.F.push(a.style);a.tagName="";a.style=null;a.f="";a.j="";a.G="";a.state=1};Kh=function(a,b,c){var d;if(a.aa){var e=Jh[a.i];$.p(e)?d=e:a.b+="&"+a.i+c}else a.i?d=(0,window.parseInt)(a.i,10):a.b+="&#"+c;d&&(a.b+=String.fromCharCode(d)+(";"==c?"":c));a.state=b;a.i="";a.aa=!0}; +Lh=function(a){var b=vh.vd();b.F=[];b.P=[];b.tagName="";b.K="";b.f="";b.ba="'";b.j="";b.G="";b.b="";b.style=null;b.xb=null;b.state=1;b.ea=!1;b.i="";b.aa=!0;b.na=!1;b.xb=a;a=a.text();for(var c=a.length,d=-1,e,f,h,k=!1;++d"!=e)break;"br"==b.tagName&&b.xb.mK();b.tagName="";k=!1;b.state=1;break}if(!b.tagName&&"<"==e){b.b+="<";break}if(!b.tagName&&h&&"/"!=e){b.b+="<"+e;b.state=1;break}if(!b.tagName&&"/"==e){b.state=3;break}if("br"==b.tagName&&">"==e){b.xb.mK();b.tagName="";b.state=1;break}if("br"==b.tagName&&("/"==e||f)){k=!0;break}b.tagName&&Eh(b);if(b.tagName&&f){b.state=4;break}if(">"== +e){Gh(b);break}b.tagName+=e.toLowerCase();break;case 3:if(k){if(">"!=e)break;Fh(b);k=!1;break}if(!b.K&&h){b.b+=""==e){Fh(b);k=!1;break}b.K+=e.toLowerCase();break;case 4:if(k){if(">"!=e)break;Gh(b,!0);k=!1;break}if(">"==e){Gh(b,!0);break}if(f){b.state=5;break}if("="==e){b.f&&(b.state="style"==b.f?6:8);break}b.f+=e.toLowerCase();break;case 5:if(">"==e){Gh(b,!0);break}if(f)break;if(b.f&&!h){b.f=e;b.state=4;break}if("="==e){b.f&&(b.state="style"==b.f?6: +8);break}b.f+=e;b.state=4;break;case 6:if(f)break;if(">"==e){Gh(b,!0);break}if("'"==e||'"'==e){b.ba=e;b.state=9;break}b.j=e;b.state=10;break;case 8:if(f)break;if(">"==e){b.f="";b.tagName="";b.state=1;break}if("'"==e||'"'==e){b.ba=e;b.state=7;break}b.state=11;break;case 9:if(f)break;if(e==b.ba){k=!0;Hh(b,4,!0);break}if(":"==e){b.state=12;break}b.j+=e.toLowerCase();break;case 12:if(f)break;if(e==b.ba){k=!0;Hh(b,4,!0);break}if(";"==e){Hh(b,9);break}b.G+=e.toLowerCase();break;case 7:e==b.ba&&(b.f="", +b.state=4);break;case 10:if(f){k=!0;Hh(b,4,!0);break}if(">"==e){Ih(b);break}if(":"==e){b.state=13;break}b.j+=e;break;case 11:if(f){Hh(b,4,!0);break}">"==e&&Gh(b);break;case 13:if(f){k=!0;Hh(b,4,!0);break}if(">"==e){Ih(b);break}if(";"==e){Hh(b,10);break}b.G+=e.toLowerCase();break;default:throw"Error while parsing HTML: Symbol '"+e+"', position: "+(d-1);}Eh(b);b.xb.oM()};Mh=function(a,b){$.od.call(this);this.b=b||{};this.text=a;this.i=!1;this.y=this.x=this.tm=this.mo=this.height=this.width=this.f=0}; +$.Qh=function(a,b){this.ba=!1;this.No=a||0;this.Oo=b||0;this.Ta=new $.I(this.No,this.Oo,0,0);this.$a=this.aa=this.Pd=this.F=0;this.Id=!1;this.b=[];this.f=[];this.Ba=this.bg=this.P=0;this.ud=!0;this.fh=this.na=this.Lb=this.me=0;this.ea=[];this.rb=1;this.eb=Nh;this.j=0;this.mc=this.K=!1;this.yc=this.Ek={fontSize:$.Ch.fontSize,color:$.Ch.fontColor,fontFamily:$.Ch.fontFamily,direction:$.Ch.textDirection,textOverflow:Nh,wordBreak:Jaa,wordWrap:Oh,selectable:!0,hAlign:$.Ph};this.Ja=null;$.pg.call(this); +this.i=this.G=null};Rh=function(a,b,c){if($.p(c)){if(c!==a.yc[b]){var d=!a.Ka()||a.Ka().yf();d||a.Ka().suspend();a.yc[b]=c;a.ba=!1;a.Qb(1024);a.Qb(32);a.Qb(16384);a.qx();d||a.Ka().resume()}return a}return a.yc[b]};Sh=function(a){var b=(0,window.parseFloat)(a);return(0,window.isNaN)(b)||0>b?1:$.z(a)&&$.fc(a,"%")?1+(0,window.parseFloat)(a)/100:a}; +Th=function(a,b,c,d,e,f,h){var k,l=Math.floor((e-d)/(f.width/b.length));var m=b.substring(0,l);for(k=a.Vm(m,c);d+k.widthe&&1a.Yf?a.Yf-d.width-e:a.j,0>a.j&&(a.j=0));a.Ba=Math.max(a.Ba,d.height);a.P+=d.width;0==a.b.length&&(a.P+=a.j);a.na=Math.max(a.na,c.f);a.ud=a.f.length?a.ud&&0==b.length:0==b.length;a.f.push(c);a.b.push(c);c.parent(a);return c}; +Vh=function(a,b){var c,d=b||$.ua(a.ea),e=$.ua(d),f=a.Vm(a.eb,e.b),h=a.eb,k=1a.Xa){var m=Th(a,a.eb,e.b,0,a.Xa,f,!0);h=a.eb.substring(0,m)}m=a.bg;var n=a.Xa;if(""==h)l=(0,$.za)(a.b,e)+1,$.Ca(a.b,l,a.b.length-l);else if(n-m>=f.width){a.f=d;l=(0,$.za)(a.b,e)+1;$.Ca(a.b,l,a.b.length-l);var q=Uh(a,h,e.b,f);2==a.f.length&&""==a.f[0].text&&(q.tm=a.Lb-a.f[0].height,q.i=!0)}else{for(k=d.length-1;!c&&0<=k;)e= +d[k],f=a.Vm(h,e.b),l=a.Vm(e.text,e.b),m-l.width+f.width<=a.Xa&&(c=e),m-=l.width,k--;c||1!=a.ea.length||(c=d[0],m-=l.width);c&&(a.f=d,k=a.f[0].tm,n-=f.width,l=(0,$.za)(d,c),$.Ca(d,l,d.length-l),l=(0,$.za)(a.b,c),$.Ca(a.b,l,a.b.length-l),a.Ba=0,a.P=0,a.na=0,l=a.Vm(c.text,c.b),m=Th(a,c.text,c.b,m,n,l,!0),1>m&&(m=1),l=c.text.substring(0,m),d=a.Vm(l,c.b),l=Uh(a,l,c.b,d,f.width),l.x=c.x,l.y=c.y,l.Tea=!0,d.width+f.width>a.Xa&&(m=Th(a,a.eb,e.b,d.width,a.Xa,f,!0),h=a.eb.substring(0,m)),0f)return a;h=h||0;var l=$.db(h,d),m=$.eb(h,d),n=360/(2*f),q;a.moveTo(l+b,m+c);if(k)for(q=0;qd&&(d=0);0>e&&(e=0);if(d=e)return vi(a,b,c,d,f,h);a=a.path?a.path():a;h=$.Za(h,-360,360);k=360>Math.abs(h);a.Fe(b,c,d,d,f,h).Fe(b,c,e,e,f+h,-h,k);k&&a.close();return a};Zh=function(a,b,c,d,e,f){a=$.db(c,a);b=$.db(d,b)-a;return 0<=e?a+b*(f+e-f*e):a+b*f*(e+1)};ai=function(a,b,c,d,e,f){a=$.eb(c,a);b=$.eb(d,b)-a;return 0<=e?a+b*(f+e-f*e):a+b*f*(e+1)}; +xi=function(a){var b,c;switch(a.length){case 1:var d=b=c=a[0];a.push(d,b,c);break;case 2:b=a[0];c=a[1];a.push(b,c);break;case 3:c=a[1];a.push(c);break;case 4:break;default:a.push(5,5,5,5)}}; +yi=function(a,b,c){var d=a.path?a.path():a;if(6==arguments.length){var e=arguments[2];var f=arguments[3];var h=arguments[4];var k=arguments[5];d.moveTo(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).lineTo(b.left+b.width,b.top+f).lineTo(b.left+b.width,b.top+b.height-h).lineTo(b.left+b.width-h,b.top+b.height).lineTo(b.left+k,b.top+b.height).lineTo(b.left,b.top+b.height-k).lineTo(b.left,b.top+e).close()}else k=$.Ja(arguments,2,6),xi(k),e=k[0],f=k[1],h=k[2],k=k[3],yi(d,b,e,f,h,k);return d}; +zi=function(a,b,c){var d=a.path?a.path():a;if(6==arguments.length){var e=arguments[2];var f=arguments[3];var h=arguments[4];var k=arguments[5];d.moveTo(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).Ff(b.left+b.width,b.top+f,f,f,!1,!0).lineTo(b.left+b.width,b.top+b.height-h).Ff(b.left+b.width-h,b.top+b.height,h,h,!1,!0).lineTo(b.left+k,b.top+b.height).Ff(b.left,b.top+b.height-k,k,k,!1,!0);0!=e&&(d.lineTo(b.left,b.top+e),d.Ff(b.left+e,b.top,e,e,!1,!0));d.close()}else k=$.Ja(arguments,2,6),xi(k),e= +k[0],f=k[1],h=k[2],k=k[3],zi(d,b,e,f,h,k);return d}; +Ai=function(a,b,c){var d=a.path?a.path():a;if(6==arguments.length){var e=arguments[2];var f=arguments[3];var h=arguments[4];var k=arguments[5];d.moveTo(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).Ff(b.left+b.width,b.top+f,f,f,!1,!1).lineTo(b.left+b.width,b.top+b.height-h).Ff(b.left+b.width-h,b.top+b.height,h,h,!1,!1).lineTo(b.left+k,b.top+b.height).Ff(b.left,b.top+b.height-k,k,k,!1,!1);0!=e&&d.lineTo(b.left,b.top+e).Ff(b.left+e,b.top,e,e,!1,!1);d.close()}else k=$.Ja(arguments,2,6),xi(k),e=k[0], +f=k[1],h=k[2],k=k[3],Ai(d,b,e,f,h,k);return d};$.Fi=function(a,b,c,d){this.Hj=a;this.ze=b;this.mi=c;this.Pe=d};Gi=function(){$.gh.call(this)};Hi=function(a){return $.sh.document.createElementNS("http://www.w3.org/2000/svg",a)};Kaa=function(){var a=$.mg();$.Xe(a.Mk);$.Xe(a.$D);$.Xe(a.f);$.Xe(a.i);$.Xe(a.xp);$.Xe(a.Np);a.Mk=null;a.$D=null;a.f=null;a.i=null;a.xp=null;a.Np=null}; +Laa=function(a){var b=$.bb(a),c=Math.tan(b);a=1/(2*c);c/=2;.5>=Math.abs(c)?(a=-.5,b=0>Math.cos(b)):(c=-.5,b=0Math.sin(d)||180==a||360==a;if(90==a||270==a)c+=1E-6;180!=a&&(0>Math.tan(d)||90==a||270==a)&&(e=-1,c=90-c);c=$.bb(c);d=Math.sin(c)*(b.height/2-Math.tan(c)*b.width/2)+b.width/2/Math.cos(c);e*=Math.cos(c)*d;c=Math.sin(c)*d;k&&(e=-e,c=-c);return new $.Fi(Math.round(f-e),Math.round(h+c),Math.round(f+e),Math.round(h-c))}; +Ii=function(a,b,c){var d=Naa(c,b.keys,b.cx,b.cy,b.fx,b.fy,b.opacity,b.mode,b.transform);if(!d.Bo){var e=Hi("radialGradient");$.qh(a,e,d.id());$.Se(c.ia(),e);d.vF=c;d.Bo=!0;(0,$.Pe)(d.keys,function(a){var b=Hi("stop");$.ph(this,b,{offset:a.offset,style:"stop-color:"+a.color+";stop-opacity:"+((0,window.isNaN)(a.opacity)?d.opacity:a.opacity)});e.appendChild(b)},a);d.Ta?$.ph(a,e,{cx:d.Dc*d.Ta.width+d.Ta.left,cy:d.uc*d.Ta.height+d.Ta.top,fx:d.Se*d.Ta.width+d.Ta.left,fy:d.i*d.Ta.height+d.Ta.top,r:Math.min(d.Ta.width, +d.Ta.height)/2,spreadMethod:"pad",gradientUnits:"userSpaceOnUse"}):$.ph(a,e,{cx:d.Dc,cy:d.uc,fx:d.Se,fy:d.i,gradientUnits:"objectBoundingBox"});d.transform&&a.lc(e,"gradientTransform",d.transform.toString())}return d.id()}; +Ki=function(a,b,c,d){var e=$.Ji(c,b.keys,b.opacity,!0===b.mode?$.oh(b.angle,d):b.angle,b.mode,b.transform);if(!e.Bo){var f=a.I0();$.qh(a,f,e.id());$.Se(c.ia(),f);e.uF=c;e.Bo=!0;(0,$.Pe)(e.keys,function(a){var b=Hi("stop");$.ph(this,b,{offset:a.offset,style:"stop-color:"+a.color+";stop-opacity:"+((0,window.isNaN)(a.opacity)?e.opacity:a.opacity)});f.appendChild(b)},a);e.Ta?(b=Maa(e.angle,e.Ta),$.ph(a,f,{x1:b.Hj,y1:b.ze,x2:b.mi,y2:b.Pe,spreadMethod:"pad",gradientUnits:"userSpaceOnUse"})):(b=Laa(e.angle), +$.ph(a,f,{x1:b.Hj,y1:b.ze,x2:b.mi,y2:b.Pe,gradientUnits:"objectBoundingBox"}));e.transform&&a.lc(f,"gradientTransform",e.transform.toString())}return e.id()}; +Ni=function(a,b){var c=b.fill();if(c){var d=b.Ka().vn,e='url("'+Li()+"#";c&&c.opacity&&1E-4>=c.opacity&&$.hd&&$.bd("9")&&(c.opacity=1E-4);if($.z(c))a.lc(b.ia(),"fill",c),b.ia().removeAttribute("fill-opacity");else if($.A(c.keys)&&c.cx&&c.cy)a.lc(b.ia(),"fill",e+Ii(a,c,d)+'")'),a.lc(b.ia(),"fill-opacity",$.p(c.opacity)?c.opacity:1);else if($.A(c.keys))b.sb()&&(a.lc(b.ia(),"fill",e+Ki(a,c,d,b.sb())+'")'),a.lc(b.ia(),"fill-opacity",$.p(c.opacity)?c.opacity:1));else if(c.src){var f=b.ck();f?(f.width= +f.width||0,f.height=f.height||0,f.left=f.left||0,f.top=f.top||0):f=new $.I(0,0,0,0);"tile"==c.mode?Mi(d,c.src,f,c.mode,c.opacity,function(a){a.id();a.parent(b.Ka()).Td();$.mg().lc(b.ia(),"fill",e+a.id()+'")')}):(d=Mi(d,c.src,f,c.mode,c.opacity),d.id(),d.parent(b.Ka()).Td(),a.lc(b.ia(),"fill",e+d.id()+'")'),a.lc(b.ia(),"fill-opacity",$.p(c.opacity)?c.opacity:1))}else $.J(c,Kg)?(c=Oaa(d,c.type,c.color,c.Ef,c.size),c.id(),c.parent(b.Ka()).Td(),a.lc(b.ia(),"fill",e+c.id()+'")')):$.J(c,$.Qb)?(c.id(),c.parent(b.Ka()).Td(), +a.lc(b.ia(),"fill",e+c.id()+'")')):$.ph(a,b.ia(),{fill:c.color,"fill-opacity":c.opacity})}}; +Oi=function(a,b){var c=b.stroke();if(c){var d=b.Ka().vn,e=b.ia(),f='url("'+Li()+"#";if($.z(c))a.lc(e,"stroke",c);else if($.A(c.keys)&&c.cx&&c.cy)a.lc(e,"stroke",f+Ii(a,c,d)+'")');else if($.A(c.keys)){if(!b.sb())return;a.lc(e,"stroke",f+Ki(a,c,d,b.sb())+'")')}else a.lc(e,"stroke",c.color);c.lineJoin?a.lc(e,"stroke-linejoin",c.lineJoin):e.removeAttribute("stroke-linejoin");c.lineCap?a.lc(e,"stroke-linecap",c.lineCap):e.removeAttribute("stroke-linecap");c.opacity?a.lc(e,"stroke-opacity",c.opacity):e.removeAttribute("stroke-opacity"); +c.thickness?a.lc(e,"stroke-width",c.thickness):e.removeAttribute("stroke-width");c.dash?a.lc(e,"stroke-dasharray",c.dash):e.removeAttribute("stroke-dasharray")}};Pi=function(a){a.ia().removeAttribute("clip-path");a.ia().removeAttribute("clipPathUnits")}; +$.Si=function(a,b){td.call(this,a.type);this.target=$.Qi(a.target,b)||a.target;this.relatedTarget=$.Qi(a.relatedTarget||null,b)||a.relatedTarget;this.offsetX=a.offsetX;this.offsetY=a.offsetY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.button=Cd(a,0)?$.Ri:Cd(a,1)?Paa:Cd(a,2)?Qaa:Raa;this.actionButton=a.OA();this.keyCode=a.keyCode;this.charCode=a.f;this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.platformModifierKey= +a.i;this.kf=a};Ti=function(a,b){this.i=a;this.j=b;this.f=0;this.b=null};Ui=function(a,b){a.j(b);100>a.f&&(a.f++,b.next=a.b,a.b=b)};Vi=function(){this.f=this.b=null};Wi=function(){this.next=this.f=this.b=null};Xi=function(a){$.fa.setTimeout(function(){throw a;},0)}; +Saa=function(){var a=$.fa.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!$.Cc("Presto")&&(a=function(){var a=window.document.createElement("IFRAME");a.style.display="none";a.src="";window.document.documentElement.appendChild(a);var b=a.contentWindow;a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host;a=(0,$.pa)(function(a){if(("*"== +d||a.origin==d)&&a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!$.Uc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if($.p(c.next)){c=c.next;var a=c.p0;c.p0=null;a()}};return function(a){d.next={p0:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof window.document&&"onreadystatechange"in window.document.createElement("SCRIPT")?function(a){var b=window.document.createElement("SCRIPT"); +b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};window.document.documentElement.appendChild(b)}:function(a){$.fa.setTimeout(a,0)}};$.aj=function(a,b){Yi||Taa();Zi||(Yi(),Zi=!0);$i.add(a,b)}; +Taa=function(){if($.fa.Promise&&$.fa.Promise.resolve){var a=$.fa.Promise.resolve(void 0);Yi=function(){a.then(bj)}}else Yi=function(){var a=bj;!$.D($.fa.setImmediate)||$.fa.Window&&$.fa.Window.prototype&&!$.Cc("Edge")&&$.fa.Window.prototype.setImmediate==$.fa.setImmediate?(ij||(ij=Saa()),ij(a)):$.fa.setImmediate(a)}};bj=function(){for(var a;a=$i.remove();){try{a.b.call(a.f)}catch(b){Xi(b)}Ui(jj,a)}Zi=!1}; +$.oj=function(a){this.ec=kj;this.F=void 0;this.f=this.b=this.Y=null;this.i=this.j=!1;if(a!=$.ia)try{var b=this;a.call(void 0,function(a){$.lj(b,$.mj,a)},function(a){$.lj(b,nj,a)})}catch(c){$.lj(this,nj,c)}};pj=function(){this.next=this.context=this.f=this.i=this.b=null;this.j=!1};rj=function(a,b,c){var d=qj.get();d.i=a;d.f=b;d.context=c;return d}; +sj=function(a,b){if(a.ec==kj)if(a.Y){var c=a.Y;if(c.b){for(var d=0,e=null,f=null,h=c.b;h&&(h.j||(d++,h.b==a&&(e=h),!(e&&1=c&&0<=e&&255>=e&&0<=d&&255>=d){c=[c,e,d];break a}}c=[]}if(c.length)return b.wk=$.Tb(c),b.type="rgb",b;if(Jl&&(c=Jl[a.toLowerCase()]))return b.wk=c,b.type="named",b;throw Error(a+" is not a valid color string");}; +Il=function(a){if(!Hl.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Kba,"#$1$1$2$2$3$3"));return a.toLowerCase()};$.Ll=function(a){a=Il(a);return[(0,window.parseInt)(a.substr(1,2),16),(0,window.parseInt)(a.substr(3,2),16),(0,window.parseInt)(a.substr(5,2),16)]}; +$.Tb=function(a){var b=a[0],c=a[1];a=a[2];b=Number(b);c=Number(c);a=Number(a);if(b!=(b&255)||c!=(c&255)||a!=(a&255))throw Error('"('+b+","+c+","+a+'") is not a valid RGB color');b=Ml(b.toString(16));c=Ml(c.toString(16));a=Ml(a.toString(16));return"#"+b+c+a};Nl=function(a,b,c){0>c?c+=1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+(b-a)*(2/3-c)*6:a};Ml=function(a){return 1==a.length?"0"+a:a}; +$.Ol=function(a,b,c){c=$.Za(c,0,1);return[Math.round(c*a[0]+(1-c)*b[0]),Math.round(c*a[1]+(1-c)*b[1]),Math.round(c*a[2]+(1-c)*b[2])]};$.Pl=function(a,b){return $.Ol([0,0,0],a,b)};$.Rl=function(a,b,c){a=Ql(a);b=Ql(b);var d=(a.opacity+b.opacity)/2;return{color:$.Tb($.Ol(a.p5,b.p5,$.p(c)?c:.5)),opacity:d}};Ql=function(a){var b=a,c=1;$.A(a)||($.z(a)?b=a:(b=a.color||"#000",c=$.p(a.opacity)?a.opacity:1),a=$.Sl(b).wk,b=$.Ll(a));return{p5:b,opacity:c}}; +Tl=function(a,b,c,d){b=null==b||(0,window.isNaN)(+b)?7:+b;d=null!=d?$.Za(d,0,1):window.NaN;a=$.Sl(a||"#000").wk;var e=$.Ll(a);a=e[0]/255;var f=e[1]/255;e=e[2]/255;var h=Math.max(a,f,e),k=Math.min(a,f,e),l=0,m=0,n=.5*(h+k);h!=k&&(h==a?l=60*(f-e)/(h-k):h==f?l=60*(e-a)/(h-k)+120:h==e&&(l=60*(a-f)/(h-k)+240),m=0=n?(h-k)/(2*n):(h-k)/(2-2*n));e=[Math.round(l+360)%360,m,n];a=e[0];f=e[1];e=e[2];(0,window.isNaN)(d)?(d=e,c=null!=c?$.Za(c,0,1):.95):c=null!=c?$.Za(c,0,1):e;e=1m?m*(1+f):m+f-f*m;var r=2*m-l;n=255*Nl(r,l,q+1/3);m=255*Nl(r,l,q);l=255*Nl(r,l,q-1/3)}h.push($.Tb([Math.round(n),Math.round(m),Math.round(l)]))}return h};$.Ul=function(a,b,c){c=$.p(c)?c:7;a=$.Sl(a||"yellow").wk;b=$.Sl(b||"brown").wk;for(var d=[a],e=1/c,f=1;f=c&&0<=e&&255>=e&&0<=d&&255>=d){c=[c,e,d];break a}}c=[]}return c.length?(b.wk=$.Tb(c),b.type="rgb",b):Jl&&(a=Jl[a.toLowerCase()])?(b.wk=a,b.type="named",b):null}; +$.am=function(a,b,c){var d;c?d=$.Ub(a):d=$.Wb(a);$.z(d)?d={color:d,opacity:b}:$.C(d)&&(d.opacity=b);return d};$.bm=function(a){var b=1;$.z(a)?b="none"==a?0:1:$.C(a)&&(b=$.ea(a.opacity)?a.opacity:1);return b};$.cm=function(a,b,c){a=$.Wb(a);$.z(a)?a={color:a,thickness:b}:$.C(a)&&(a.thickness=b);c&&(a.opacity=c);return a}; +$.jm=function(a,b,c,d){if(!a)return $.dm;if($.z(a)){var e=b+"|"+a+"|"+c+(d?"|"+d:"");var f=em[e];if(!f){switch(b){case 2:f=$.fm;break;case 3:f=$.gm;break;default:case 1:f=$.hm}em[e]=f=$.qa(Nba,a,f,3==b,c,!!d)}}else(f=em.transparent)||(f=em.transparent=function(){return $.im});return f};$.dm=function(){return"none"};$.km=function(a){return a?$.C(a)?a.color?"none"!=a.color:!0:"none"!=a:!1}; +Nba=function(a,b,c,d,e,f,h,k,l,m){h=$.lm(h);l=l||f.check($.mm);var n=f.$();if(d&&h!=$.nm){var q=f.sc(a,h,n,b,e,void 0,k);c&&!0===q&&(q=b(f.Eh()));if($.p(q)){if(!$.D(q))return q;if(c)return a=f.Yi(k),b(q.call(a,a))}}d=f.sc(a,0,n,b,e,void 0,k);c&&!0===d&&(d=b(f.Eh()));if(m&&!c&&a!=m){var r=f.sc(m,0,n,b,e,void 0,k);$.D(r)&&(a=f.Ge(void 0,k,l),r=b(r.call(a,a)))}$.D(d)&&(a=c?f.Yi(k):f.Ge(r,k,l),d=b(d.call(a,a)));q&&(a=f.Ge(d,k,l),d=b(q.call(a,a)));return d}; +$.om=function(a,b){a&&(b=b.charAt(0).toUpperCase()+b.substr(1));return a?(a?1==a?"hover":"select":"")+b:b};qm=function(a,b,c){var d=b.split(".");b=pm[d[0]];if(!b)return pm[d[0]]={wE:[],LC:c,DI:0},!0;if(d=b.LC<=c){b.LC=c+1;for(var e=b.wE,f=0;f=h){e="";d=0;a.Yo=-1;a.Zo=-1;a.ah=c+1;f=0;break}else return 0c?Math.min($.an(a),14):13-Math.max(c,7);return $.$m(a,b?b:c)};$.an=function(a){if(!(0,window.isFinite)(a))return 0;for(var b=1,c=0;Math.round(a*b)/b!==a;)b*=10,c++;return c};$.cn=function(a,b,c){return Math.abs(a-b)<(c||.01)}; +$.dn=function(a,b){var c=Math.log(Math.max(1E-7,a));return b?$.bn(c/Math.log(b),14):c};en=function(a,b){return $.$m(Math.pow(a,b),7)};fn=function(a){a=$.Ha(a);$.Pa(a);var b=Math.floor(a.length/2);return a.length%2?a[b]:(a[b-1]+a[b])/2};gn=function(a){for(var b={},c=a[0],d=1,e=0;ed&&(c=f,d=b[f])}return c}; +$.jn=function(a,b){var c=!1,d;if(!a||!b)return!1;var e=0;for(d=a.length;e=$.kn(a,b,c,d,e[h],e[h+1]);return f};$.kn=function(a,b,c,d,e,f){return(a=(b-d)*e+(c-a)*f+(a*d-c*b))?0b){var e=a;a=b;b=e}c>d&&(e=c,c=d,d=e);return Math.max(a,c)<=Math.min(b,d)};$.mn=function(a,b,c,d,e,f,h,k){return ln(a,c,e,h)&&ln(b,d,f,k)&&0>=((c-a)*(f-b)-(d-b)*(e-a))*((c-a)*(k-b)-(d-b)*(h-a))&&0>=((h-e)*(b-f)-(k-f)*(a-e))*((h-e)*(d-f)-(k-f)*(c-e))}; +nn=function(a,b,c,d,e,f,h,k){var l=window.NaN;0!=a-2*c+e?(l=(a-c+Math.sqrt((a-2*c+e)*h+c*c-a*e))/(a-2*c+e),a=(a-c-Math.sqrt((a-2*c+e)*h+c*c-a*e))/(a-2*c+e),c=(b-d+Math.sqrt((b-2*d+f)*k+d*d-b*f))/(b-2*d+f),b=(b-d-Math.sqrt((b-2*d+f)*k+d*d-b*f))/(b-2*d+f),l=0l?l:0a?a:0c?c:0b?b:window.NaN):a!=c?l=(h-a)/(2*(c-a)):a==c&&c!=e&&(l=Math.sqrt((h-a)/(e-c)));return l};$.on=function(a,b,c,d){a=c-a;b=d-b;return Math.sqrt(a*a+b*b)};$.pn=function(a,b,c){return(c||0)+b*$.$m(Math.cos(a),8)}; +$.qn=function(a,b,c){return(c||0)+b*$.$m(Math.sin(a),8)};$.rn=function(a,b,c,d){return new $.I(a,b,c,d)};$.sn=function(a){return[a.left,a.top,a.left+a.width,a.top,a.left+a.width,a.top+a.height,a.left,a.top+a.height]};$.tn=function(a){for(var b=new $.I(0,0,0,0),c=new $.I(a[0],a[1],0,0),d=2,e=a.length;d=Math.abs(h)&&(h=0);0=Math.abs(d)&&(d=0),1E-6>=Math.abs(f)&&(f=0),0<=d&&(d=Math.sqrt(d),b.push(-c/4+(a+d)/2),b.push(-c/4+(a-d)/2)),0<=f&&(d=Math.sqrt(f),b.push(-c/4+(d-a)/2),b.push(-c/4-(d+a)/2))):0>h||(f=e*e-4*a,-1E-6<=f&&(0>f&&(f=0),f=2*Math.sqrt(f),e=3*c*c/4-2*d,1E-6<=e+f&&(d=Math.sqrt(e+f),b.push(-c/4+d/2),b.push(-c/4-d/2)),1E-6<=e-f&&(d=Math.sqrt(e-f),b.push(-c/4+d/2),b.push(-c/4-d/2))))}break;default:b=[]}return b}; +zn=function(a){var b=[];if(3==a.b.length-1){var c=a.b[3],d=a.b[2]/c,e=a.b[1]/c,f=(3*e-d*d)/3;a=(2*d*d*d-9*e*d+a.b[0]/c*27)/27;d/=3;c=a*a/4+f*f*f/27;a/=2;0c?(f=Math.sqrt(-f/3),c=Math.atan2(Math.sqrt(-c),-a)/3,a=Math.cos(c),c=Math.sin(c),e=Math.sqrt(3),b.push(2*f*a-d),b.push(-f*(a+e*c)-d),b.push(-f*(a-e*c)-d)):(c=0<=a?-Math.pow(a,1/3):Math.pow(-a,1/3),b.push(2*c-d),b.push(-c- +d))}return b}; +Bn=function(a,b,c,d,e,f,h,k,l,m,n,q){a=new $.vn(a,b);c=new $.vn(c,d);e=new $.vn(e,f);h=new $.vn(h,k);m=new $.vn(l,m);l=new $.vn(n,q);n=[];k=wn(c,-2);q=a.add(k.add(e));k=wn(a,-2);e=wn(c,2);c=k.add(e);a=new $.vn(a.x,a.y);k=wn(m,-2);l=h.add(k.add(l));k=wn(h,-2);e=wn(m,2);m=k.add(e);h=new $.vn(h.x,h.y);if(0==q.y)k=q.x*(a.y-h.y),e=k-c.x*c.y,f=c.y*c.y,k=new yn(q.x*l.y*l.y,2*q.x*m.y*l.y,q.x*m.y*m.y-l.x*f-l.y*k-l.y*e,-m.x*f-m.y*k-m.y*e,(a.x-h.x)*f+(a.y-h.y)*e);else{k=q.x*l.y-q.y*l.x;e=q.x*m.y-m.x*q.y;var r= +c.x*q.y-c.y*q.x;f=a.y-h.y;d=q.y*(a.x-h.x)-q.x*f;b=-c.y*r+q.y*d;r*=r;k=new yn(k*k,2*k*e,(-l.y*r+q.y*e*e+q.y*k*d+k*b)/q.y,(-m.y*r+q.y*e*d+e*b)/q.y,(f*r+d*b)/q.y)}k=An(k);for(e=0;e=f&&(d=An(new yn(q.x,c.x,a.x-h.x-f*m.x-f*f*l.x)),b=An(new yn(q.y,c.y,a.y-h.y-f*m.y-f*f*l.y)),0=t)for(var u=0;uMath.abs(t-b[u])){n.push(wn(l,f*f).add(wn(m,f).add(h)));break a}}return n}; +Cn=function(a,b,c,d,e,f,h,k){var l,m=(k-f)*(c-a)-(h-e)*(d-b);0!=m?(h=((h-e)*(b-f)-(k-f)*(a-e))/m,e=((c-a)*(b-f)-(d-b)*(a-e))/m,0<=h&&1>=h&&0<=e&&1>=e?l=new $.vn(a+h*(c-a),b+h*(d-b)):l=null):l=null;return l};Dn=function(a,b){switch(b){case 1:return 0!=a%4||0==a%100&&0!=a%400?28:29;case 5:case 8:case 10:case 3:return 30}return 31};En=function(a,b,c,d,e){a=new Date(a,b,c);d=$.p(d)?d:3;e=e||0;b=((a.getDay()+6)%7-e+7)%7;return a.valueOf()+864E5*((d-e+7)%7-b)}; +$.Nn=function(a,b,c,d,e,f){$.z(a)?(this.ai=a==Fn?b:0,this.pg=a==Gn?b:0,this.xg=a==Jn?b:0,this.Th=a==Kn?b:0,this.Bj=a==Ln?b:0,this.wh=a==Mn?b:0):(this.ai=a||0,this.pg=b||0,this.xg=c||0,this.Th=d||0,this.Bj=e||0,this.wh=f||0)}; +On=function(a){a=a.match(Oba);if(!a)return null;var b=!(a[6]||a[7]||a[8]);if(b&&!(a[2]||a[3]||a[4])||b&&a[5])return null;b=(0,window.parseInt)(a[2],10)||0;var c=(0,window.parseInt)(a[3],10)||0,d=(0,window.parseInt)(a[4],10)||0,e=(0,window.parseInt)(a[6],10)||0,f=(0,window.parseInt)(a[7],10)||0,h=(0,window.parseFloat)(a[8])||0;return a[1]?new $.Nn(-b,-c,-d,-e,-f,-h):new $.Nn(b,c,d,e,f,h)}; +Pn=function(a,b){var c=Math.min(a.ai,a.pg,a.xg,a.Th,a.Bj,a.wh),d=Math.max(a.ai,a.pg,a.xg,a.Th,a.Bj,a.wh);if(0>c&&0c&&d.push("-");d.push("P");(a.ai||b)&&d.push(Math.abs(a.ai)+"Y");(a.pg||b)&&d.push(Math.abs(a.pg)+"M");(a.xg||b)&&d.push(Math.abs(a.xg)+"D");if(a.Th||a.Bj||a.wh||b)d.push("T"),(a.Th||b)&&d.push(Math.abs(a.Th)+"H"),(a.Bj||b)&&d.push(Math.abs(a.Bj)+"M"),(a.wh||b)&&d.push(Math.abs(a.wh)+"S");return d.join("")}; +$.Tn=function(a,b,c){$.ea(a)?(this.b=Qn(a,b||0,c||1),Rn(this,c||1)):$.C(a)?(this.b=Qn(a.getFullYear(),a.getMonth(),a.getDate()),Rn(this,a.getDate())):(this.b=new Date((0,$.Sn)()),a=this.b.getDate(),this.b.setHours(0),this.b.setMinutes(0),this.b.setSeconds(0),this.b.setMilliseconds(0),Rn(this,a))};Qn=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};Rn=function(a,b){if(a.getDate()!=b){var c=a.getDate()c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",$.uc(c,2));c=d.join("")}b.i=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=Yn(a);b.j=[c,c];b.b={isa:a,zZ:a};b.f=[];return b}b=new Xn;b.i=a.id;b.F=-a.std_offset;b.j=a.names;b.b=a.names_ext;b.f=a.transitions;return b}; +Yn=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push($.uc(Math.floor(a/60)%100,2),":",$.uc(a%60,2));return b.join("")};$n=function(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,d=0;d=a.f[d];)d+=2;return 0==d?0:a.f[d-1]};$.eo=function(a,b){this.f=[];this.b=b||ao;"number"==typeof a?bo(this,a):co(this,a)};fo=function(a){return a.getHours?a.getHours():0}; +co=function(a,b){for(Qba&&(b=b.replace(/\u200f/g,""));b;){for(var c=b,d=0;db)var c=a.b.mF[b];else if(8>b)c=a.b.rF[b-4];else if(12>b)c=a.b.sQ[b-8],c=c.replace("{1}",a.b.mF[b-8]),c=c.replace("{0}",a.b.rF[b-8]);else{bo(a,10);return}co(a,c)};ho=function(a,b){var c=String(b);var d=a.b||ao;if(void 0!==d.SQ){for(var e=[],f=0;f=h?String.fromCharCode(d.SQ+h-48):c.charAt(f))}c=e.join("")}return c}; +io=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");}; +Rba=function(a,b,c,d,e,f){var h=b.length;switch(b.charAt(0)){case "G":return c=0c&&(c=-c),2==h&&(c%=100),ho(a,$.uc(c,h));case "Y":return c=d.getFullYear(),e=d.getMonth(),d=d.getDate(),c=En(c,e,d,a.b.gK,a.b.fK),c=(new Date(c)).getFullYear(),0>c&&(c=-c),2==h&&(c%=100),ho(a,$.uc(c,h));case "M":a:switch(c=d.getMonth(),h){case 5:h=a.b.gZ[c];break a;case 4:h=a.b.BQ[c];break a;case 3:h=a.b.IQ[c];break a;default:h=ho(a,$.uc(c+ +1,h))}return h;case "k":return io(e),c=fo(e)||24,ho(a,$.uc(c,h));case "S":return c=e.getMilliseconds()/1E3,ho(a,c.toFixed(Math.min(3,h)).substr(2)+(3h?1:0];case "h":return io(e),c=fo(e)%12||12,ho(a,$.uc(c,h));case "K":return io(e),c=fo(e)%12,ho(a,$.uc(c,h));case "H":return io(e),c=fo(e),ho(a,$.uc(c,h));case "c":a:switch(c=d.getDay(),h){case 5:h=a.b.wZ[c];break a;case 4:h=a.b.yZ[c]; +break a;case 3:h=a.b.xZ[c];break a;default:h=ho(a,$.uc(c,1))}return h;case "L":a:switch(c=d.getMonth(),h){case 5:h=a.b.vZ[c];break a;case 4:h=a.b.MQ[c];break a;case 3:h=a.b.NQ[c];break a;default:h=ho(a,$.uc(c+1,h))}return h;case "Q":return c=Math.floor(d.getMonth()/3),4>h?a.b.JQ[c]:a.b.EQ[c];case "d":return ho(a,$.uc(d.getDate(),h));case "m":return io(e),ho(a,$.uc(e.getMinutes(),h));case "s":return io(e),ho(a,$.uc(e.getSeconds(),h));case "v":return h=f||Zn(c.getTimezoneOffset()),h.i;case "V":return a= +f||Zn(c.getTimezoneOffset()),2>=h?a.i:0<$n(a,c)?$.p(a.b.e8)?a.b.e8:a.b.DST_GENERIC_LOCATION:$.p(a.b.zZ)?a.b.zZ:a.b.STD_GENERIC_LOCATION;case "w":return c=e.getFullYear(),d=e.getMonth(),e=e.getDate(),c=En(c,d,e,a.b.gK,a.b.fK),d=(new Date((new Date(c)).getFullYear(),0,1)).valueOf(),ho(a,$.uc(Math.floor(Math.round((c-d)/864E5)/7)+1,h));case "z":return a=f||Zn(c.getTimezoneOffset()),4>h?a.j[0<$n(a,c)?2:0]:a.j[0<$n(a,c)?3:1];case "Z":return d=f||Zn(c.getTimezoneOffset()),4>h?(h=-d.rD(c),a=[0>h?"-":"+"], +h=Math.abs(h),a.push($.uc(Math.floor(h/60)%100,2),$.uc(h%60,2)),h=a.join("")):h=ho(a,Yn(d.rD(c))),h;default:return""}};Sba=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))}; +Tba=function(a){a=String(a);if(Sba(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};ko=function(a){return(new jo).D(a)};jo=function(){}; +lo=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if($.A(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;fb?1:a==b?0:-1};Xba=function(a,b){return-yo(a,b)};$.wo=function(a,b){return(0,window.isNaN)(a)?(0,window.isNaN)(b)?0:1:(0,window.isNaN)(b)?-1:a-b};$.zo=function(a){for(var b;$.J(a,$.hg);){b=a.tag;if($.p(b))return b;a=a.parent()}};$.Ao=function(a,b){if(!a)return!1;for(;$.J(b,$.qf)&&b!=a;)b=b.Zi();return b==a};$.xo=function(a){return $.C(a)?"o"+$.oa(a):(typeof a).charAt(0)+a}; +$.L=function(a,b,c){a=$.ea(a)?a:!(0,window.isNaN)(b)&&$.Bo(a)?b*(0,window.parseFloat)(a)/100:(0,window.parseFloat)(a);return c&&!(0,window.isNaN)(b)?b-a:a};$.Eo=function(a){switch(a){case $.Co:return"hovered";case $.Do:return"selected";default:return"normal"}};$.Bo=function(a){return $.z(a)&&$.fc(a,"%")&&!(0,window.isNaN)((0,window.parseFloat)(a))};$.Fo=function(a,b){if(null===a)return null;a=$.p(a)?a:0;b=$.p(b)?b:0;var c=$.Bo(a),d=(0,window.parseFloat)(a);return(0,window.isNaN)(d)?b:c?a:d}; +$.Go=function(a,b){if($.Bo(a))return a;$.ea(a)||(a=(0,window.parseFloat)(a));return(0,window.isNaN)(a)?b?window.NaN:"0%":a+"%"};$.Ho=function(a){return $.Bo(a)?(0,window.parseFloat)(a)/100:+a};$.N=function(a){return null==a||$.da(a)?window.NaN:+a};$.Io=function(a){return $.z(a)?a:$.N(a)};Jo=function(a){return $.ea(a)&&!(0,window.isNaN)(a)||$.z(a)&&""!=(0,$.vc)(a)?a:null};$.Ko=function(a){return(0,window.isNaN)($.N(a))}; +$.P=function(a,b,c){$.ea(a)||(a=(0,window.parseFloat)(a));a=Math.round(a);return!(0,window.isNaN)(a)&&(0=d?0:f:"center"==e?c=d*f/2:"inside"==e&&(c=0<=d?0:-f)}return c};$.Qo=function(a,b){var c=$.ab(-b)/90;if(c){var d=(0,$.za)($.Mo,a);0<=d&&(c!=~~c&&(c=Math.round(c-.5)+.5),a=$.Mo[(d+(c+c))%$.Mo.length])}return a};$.Ro=function(a){return"left-top"==a||"center-top"==a||"right-top"==a}; +$.So=function(a){return"left-bottom"==a||"center-bottom"==a||"right-bottom"==a};$.To=function(a){return"left-top"==a||"left-center"==a||"left-bottom"==a};$.Uo=function(a){return"right-top"==a||"right-center"==a||"right-bottom"==a};$.Vo=function(a,b,c,d){c=c||0;d=7<=d?d:7;return $.$m(b*Math.floor($.$m((a-c)/b,d))+c,d)};$.Wo=function(a,b,c,d){c=c||0;d=7<=d?d:7;return $.$m(b*Math.ceil($.$m((a-c)/b,d))+c,d)}; +$.Zo=function(a,b,c){var d=new Date(a),e=d.getUTCFullYear(),f=d.getUTCMonth(),h=d.getUTCDate(),k=d.getUTCHours(),l=d.getUTCMinutes(),m=d.getUTCSeconds(),n=d.getUTCMilliseconds();return b.ai?(e=$.Vo(e,b.ai,(new Date(c)).getUTCFullYear()),Date.UTC(e,0)):b.pg?(f=$.Vo(f,b.pg),Date.UTC(e,f)):b.xg&&0==b.xg%7?(a=$.Xo($.Yo()),$.Vo(d.getTime(),864E5*b.xg,Date.UTC(2E3,0,2+(a?a.firstDayOfWeek:0)))):b.xg?(h=$.Vo(h,b.xg),Date.UTC(e,f,h)):b.Th?(k=$.Vo(k,b.Th),Date.UTC(e,f,h,k)):b.Bj?(l=$.Vo(l,b.Bj),Date.UTC(e, +f,h,k,l)):1<=b.wh?(m=$.Vo(m,b.wh),Date.UTC(e,f,h,k,l,m)):b.wh?(n=$.Vo(n,1E3*b.wh),Date.UTC(e,f,h,k,l,m,n)):a};$o=function(a){return $.p(a)?$.uc(a,2):a}; +Yba=function(a,b,c,d,e,f,h){var k=$.p(b)?b+1:b,l=$.uc(a,4)||"2000";k=$o(k)||"01";var m=$o(c)||"01",n=$o(d)||"00",q=$o(e)||"00",r=$o(f)||"00",t=$o(h)||"0";switch(arguments.length){case 2:l=l+"-"+k;break;case 3:l=l+"-"+k+"-"+m;break;case 4:case 5:l=l+"-"+k+"-"+m+"T"+n+":"+q;break;case 6:l=l+"-"+k+"-"+m+"T"+n+":"+q+":"+r;break;case 7:l=l+"-"+k+"-"+m+"T"+n+":"+q+":"+r+"."+t}return(new Date(l)).getTime()}; +$.ap=function(a,b,c,d){var e=new Date(a),f=e.getUTCFullYear(),h=e.getUTCMonth(),k=e.getUTCDate(),l=e.getUTCHours(),m=e.getUTCMinutes(),n=e.getUTCSeconds(),q=e.getUTCMilliseconds(),r=100>f&&-1a?Math.floor(a):Math.ceil(a)};$.dp=function(a,b){var c=a.left+a.width,d=a.top+a.height;a.left=$.R(a.left,b);a.top=$.R(a.top,b);a.width=$.R(c,b)-a.left;a.height=$.R(d,b)-a.top;return a}; +$.ep=function(a,b,c,d){switch(b){case "left-top":case "left-center":case "center-top":case "center":a.x+=c;a.y+=d;break;case "left-bottom":case "center-bottom":a.x+=c;a.y-=d;break;case "right-center":case "right-top":a.x-=c;a.y+=d;break;case "right-bottom":a.x-=c,a.y-=d}};$.fp=function(a){for(var b=0,c=arguments.length;b=+m||1<=+m)?m:+m,f=!1));return f?0d;d++){b=d;for(var e=0;8>e;e++)b=b&1?3988292384^b>>>1:b>>>1;c[d]=b}yp=c}b=-1;for(c=0;c>>8^yp[(b^a.charCodeAt(c++))&255];return((b^-1)>>>0).toString(16)};Cp=function(){if(Ap)return Ap;var a=Bp.length,b=0==a%2?a/2:a+.5;return Ap=(0,$.Wa)((0,$.Wa)(Bp,function(a,d){return a+d%b*(d%2?-1:1)}),function(a){return String.fromCharCode(a)}).join("")}; +$.Dp=function(a,b){switch(a){case "year":return 315576E5*b;case "semester":return 315576E5*b/2;case "quarter":return 315576E5*b/4;case "month":return 315576E5*b/12;case "third-of-month":return 315576E5*b/36;case "week":return 6048E5*b;case "day":return 864E5*b;case "hour":return 36E5*b;case "minute":return 6E4*b;case "second":return 1E3*b;default:return b}};$.Fp=function(a,b){for(var c=0;c<$.Ep.length&&$.Ep[c].Dg!=a;c++);return $.Ep[$.Za(c-(b||1),0,$.Ep.length)].Dg}; +Gp=function(a){var b=a.ai;b=365.25*b+a.pg;b=365.25*b/12+a.xg;b=24*b+a.Th;b=60*b+a.Bj;b=60*b+a.wh;return 1E3*b}; +$.Jp=function(a){a=String(a).toLowerCase();switch(a){case "arrowhead":return function(a,c,d,e){var b=c-e/2,h=d-e/3,k=c-e/2,l=d+e/3;a.moveTo(c+e/2,d).lineTo(b,h).lineTo(k,l).close();return a};case "star4":return hi;case "star6":return ji;case "star7":return ki;case "star10":return li;case "diamond":return qi;case "triangle-up":return mi;case "triangle-down":return ni;case "triangle-right":return oi;case "triangle-left":return pi;case "cross":return ri;case "diagonal-cross":return si;case "circle":return function(a, +c,d,e){return vi(a,c,d,e,0,360)};case "trapezium":return function(a,c,d,e){var b=e/3;c-=e/2;d-=e/2;a.moveTo(c+b,d+e);a.lineTo(c+e-b,d+e);a.lineTo(c+e,d);a.lineTo(c,d);a.close();return a};case "pentagon":return function(a,c,d,e){c-=e;d-=e;a.moveTo(c+e*Hp[0],d+e*Ip[0]);for(var b=1;5>b;b++)a.lineTo(c+e*Hp[b],d+e*Ip[b]);a.lineTo(c+e*Hp[0],d+e*Ip[0]);a.close();return a};case "square":return function(a,c,d,e,f){var b=c-e,k=d-e;c+=e;d+=e;$.p(f)&&(f=f||0,b=$.R(b,f),k=$.R(k,f),c=$.R(c,f),d=$.R(d,f));a.moveTo(b, +k).lineTo(c,k).lineTo(c,d).lineTo(b,d).lineTo(b,k).close();return a};case "v-line":case "line":return function(a,c,d,e,f){e*=2;var b=e/2;c-=b/2;d-=e/2;b=c+b;e=d+e;$.p(f)&&(f=f||0,c=$.R(c,f),d=$.R(d,f),b=$.R(b,f),e=$.R(e,f));a.moveTo(c,d).lineTo(b,d).lineTo(b,e).lineTo(c,e).lineTo(c,d).close();return a};case "arrow-up":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var n=c+k;k=c-k;$.p(f)&&(f=f||0,e=$.R(e,f),l=$.R(l,f),m=$.R(m,f),b=$.R(b,f),n=$.R(n,f),k=$.R(k,f),c=$.R(c,f),d= +$.R(d,f));a.moveTo(c,b);a.lineTo(e,d,n,d,n,m,k,m,k,d,l,d);a.close();return a};case "arrow-down":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var n=c+k;k=c-k;$.p(f)&&(f=f||0,e=$.R(e,f),l=$.R(l,f),m=$.R(m,f),b=$.R(b,f),n=$.R(n,f),k=$.R(k,f),c=$.R(c,f),d=$.R(d,f));a.moveTo(c,m);a.lineTo(e,d,n,d,n,b,k,b,k,d,l,d);a.close();return a};case "arrow-left":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var n=d+k;k=d-k;$.p(f)&&(f=f||0,e=$.R(e,f),l=$.R(l,f),m= +$.R(m,f),b=$.R(b,f),n=$.R(n,f),k=$.R(k,f),c=$.R(c,f),d=$.R(d,f));a.moveTo(l,d);a.lineTo(c,m,c,n,e,n,e,k,c,k,c,b);a.close();return a};case "arrow-right":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var n=d+k;k=d-k;$.p(f)&&(f=f||0,e=$.R(e,f),l=$.R(l,f),m=$.R(m,f),b=$.R(b,f),n=$.R(n,f),k=$.R(k,f),c=$.R(c,f),d=$.R(d,f));a.moveTo(e,d);a.lineTo(c,m,c,n,l,n,l,k,c,k,c,b);a.close();return a};default:return ii}}; +Kp=function(a,b,c,d){var e=new $.Sm;c=!0;$.C(d)&&(e.lJ(d.rowsSeparator),e.gG(d.columnsSeparator),e.NH(d.ignoreTrailingSpaces),c=!d.ignoreFirstRow,e.LH(c));if(a=e.pC(a)){d=$.Me("table");b&&(e=$.Me("caption"),Ue(e,b),d.appendChild(e));if(c){var f=$.Me("thead");var h=$.Me("tr");f.appendChild(h)}b=$.Me("tbody");for(e=0;e=a||96<=a&&106>=a||65<=a&&90>=a||($.xd||$.Rp)&&0==a)return!0;switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}};Qp=function(a){if($.gd)a=dca(a);else if($.Ad&&$.xd)switch(a){case 93:a=91}return a}; +dca=function(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};$.Tp=function(a,b){$.qf.call(this);a&&this.VM(a,b)};Up=function(a,b,c,d){$.Bd.call(this,d);this.type="key";this.keyCode=a;this.f=b;this.repeat=c};$.Wp=function(a){$.p(a)&&($.ll=$.fa=a,$.Vp=a.document);return $.fa};$.Yp=function(a){$.p(a)&&(Xp=a);return Xp};aq=function(a,b){$.Zp?$p.push((0,$.pa)(a,b)):a.apply(b)}; +$.bq=function(){$.Zp--;if(!$.Zp)for(var a=$p.slice(0),b=$p.length=0;bc;c++)a.push(("0000"+c.toString(2)).slice(-4));b=a.map(function(a){return zp(a)}).indexOf(b.slice(-1)[0]);if(-1===b)return!1;eca(a[b]);return!0}return!1};eca=function(a){for(var b={},c=Object.keys(zl),d=0;dk||bc)var d=this.f.mF[c];else 8>c?d=this.f.rF[c-4]:(d=this.f.sQ[c-8],d=d.replace("{1}",this.f.mF[c-8]),d=d.replace("{0}",this.f.rF[c-8]));cs(this,d)}else cs(this,a)}; +cs=function(a,b){for(var c=!1,d="",e=0;e=a.count)return!1;var b="MydhHmsSDkK".indexOf(a.text.charAt(0));return 0a.count};es=function(a,b){var c=a.substring(b[0]).match(/^\s+/);c&&(b[0]+=c[0].length)}; +hs=function(a,b,c,d,e,f){es(b,c);var h=c[0],k=d.text.charAt(0),l=-1;if(ds(d))if(0b.length)return!1;l=fs(a,b.substring(0,h+e),c)}else l=fs(a,b,c);switch(k){case "G":return l=gs(b,c,a.f.wQ),0<=l&&(f.era=l),!0;case "M":case "L":a:{d=l;if(0>d){a=a.f.BQ.concat(a.f.MQ).concat(a.f.IQ).concat(a.f.NQ);d=gs(b,c,a);if(0>d){f=!1;break a}f.month=d%12}else f.month=d-1;f=!0}return f;case "E":return d=gs(b,c,a.f.RQ),0>d&&(d=gs(b,c,a.f.KQ)),0>d?f=!1:(f.b=d,f=!0),f;case "a":return l=gs(b,c,a.f.oQ),0<=l&& +(f.i=l),!0;case "y":a:{if(0>l){var m=b.charAt(c[0]);if("+"!=m&&"-"!=m){f=!1;break a}c[0]++;l=fs(a,b,c);if(0>l){f=!1;break a}"-"==m&&(l=-l)}m||2!=c[0]-h||2!=d.count?f.year=l:(b=l,c=(new Date).getFullYear()-80,a=c%100,f.F=b==a,b+=100*Math.floor(c/100)+(bl?(d=gs(b,c,a.f.EQ),0>d&&(d=gs(b,c,a.f.JQ)),0>d?f=!1:(f.month=3*d,f.day=1,f=!0)):f=!1,f;case "d":return 0<=l&&(f.day=l),!0;case "S":return b=c[0]-h,f.j=3>b?l*Math.pow(10,3-b):Math.round(l/Math.pow(10, +b-3)),!0;case "h":12==l&&(l=0);case "K":case "H":case "k":return 0<=l&&(f.Th=l),!0;case "m":return 0<=l&&(f.Bj=l),!0;case "s":return 0<=l&&(f.wh=l),!0;case "z":case "Z":case "v":b.indexOf("GMT",c[0])==c[0]&&(c[0]+=3);a:if(c[0]>=b.length)f.f=0,f=!0;else{d=1;switch(b.charAt(c[0])){case "-":d=-1;case "+":c[0]++}h=c[0];l=fs(a,b,c);if(0>l)f=!1;else{if(c[0]l){f=!1;break a}m+=l}else m=l,m=24>m&&2>=c[0]-h?60*m:m%100+m/100*60;f.f=-(m*d);f=!0}}return f; +default:return!1}};fs=function(a,b,c){if(a.f.SQ){for(var d=[],e=c[0];e=f?String.fromCharCode(f+48):b.charAt(e))}b=d.join("")}else b=b.substring(c[0]);a=b.match(/^\d+/);if(!a)return-1;c[0]+=a[0].length;return(0,window.parseInt)(a[0],10)};gs=function(a,b,c){var d=0,e=-1;a=a.substring(b[0]).toLowerCase();for(var f=0;fd&&0==a.indexOf(c[f].toLowerCase())&&(e=f,d=h)}0<=e&&(b[0]+=d);return e};jca=function(){}; +js=function(a){$.C(a)||(a=String(a),a=is[a]||$.oq.format.locales[a]);return a||null};$.Xo=function(a){return(a=js(a))&&a.dateTimeLocale||null};ks=function(a){return(a=js(a))&&a.numberLocale||null};ls=function(a,b){var c=$.Xo(a);return c&&c[b||"dateTimeFormat"]||null}; +ns=function(a){if(!a)return ao;var b=$.oa(a);b in ms||(ms[b]={wQ:a.eras,cZ:a.eraNames,gZ:a.narrowMonths,vZ:a.standaloneNarrowMonths,BQ:a.months,MQ:a.standaloneMonths,IQ:a.shortMonths,NQ:a.standaloneShortMonths,RQ:a.weekdays,yZ:a.standaloneWeekdays,KQ:a.shortWeekdays,xZ:a.standaloneShortWeekdays,e9:a.narrowWeekdays,wZ:a.standaloneNarrowWeekdays,JQ:a.shortQuarters,EQ:a.quarters,oQ:a.ampms||a.amPmS,mF:a.dateFormats||[],rF:a.timeFormats||[],sQ:a.dateTimeFormats||[],fK:a.firstDayOfWeek,u$:a.weekendRange, +gK:a.firstWeekCutOffDay||a.firstWeekCutOfDay});return ms[b]};os=function(a,b){var c=js(a);if(c){var d="object"==$.ka(a);is[d?b:a]=kp($.oq.format.locales["default"],c)}};qs=function(a){$.p(a)&&(ps=$.ma(a)?a.getTime():$.N(a));return(0,window.isNaN)(ps)?(a=new Date,a.setTime(Date.UTC(a.getUTCFullYear(),a.getUTCMonth())),a):new Date(ps)};$.Yo=function(a){if($.p(a)){var b=$.z(a),c="object"==$.ka(a);b||c?(c=c?"output":a,os(a,c),rs=b?c:is[c]||is.output||a):rs="default"}return rs}; +ts=function(a){$.p(a)&&($.z(a)?ss=a:ss=null);return ss||ls(rs)||ls("output")||ls("default")||"yyyy.MM.dd"};vs=function(a){$.p(a)&&($.z(a)?us=a:us=null);return us||ls(rs,"dateFormat")||ls("output","dateFormat")||ls("default","dateFormat")||"yyyy.MM.dd"};xs=function(a){$.p(a)&&($.z(a)?ws=a:ws=null);return ws||ls(rs,"timeFormat")||ls("output","timeFormat")||ls("default","timeFormat")||"HH:mm:ss"}; +$.zs=function(a,b,c,d){return $.ma(a)?a:$.ea(a)?(0,window.isNaN)(a)?null:new Date(a):$.z(a)?ys(a,b,c,d):null};$.As=function(a){var b=js(rs);return(b=b&&b.messages)&&a in b?b[a]:a};$.Bs=function(a,b,c){b=$.Zk(b);a=$.Zk(a);return((c?c+"_":"")+(a==b?a:b+"_"+a)).replace(/-/g,"_")};$.Cs=function(a,b,c){a=(c=$.Xo(c)||$.Xo(rs)||$.Xo("output")||$.Xo("default"))&&c.formats&&c.formats[a];return($.A(a)?a[Math.min(a.length-1,b||0)]:$.z(a)?a:"")||"yyyy/MM/dd'T'HH:mm:ss.SSS"}; +$.Ds=function(a,b){var c=$.Xo(b)||$.Xo(rs)||$.Xo("output")||$.Xo("default");c=c&&c.formats&&c.formats[a];return $.A(c)?c:$.z(c)?[c]:[]};$.Fs=function(a,b,c){return $.Es(a,vs(),b,c)};Gs=function(a,b,c){return $.Es(a,xs(),b,c)}; +$.Es=function(a,b,c,d){a=$.J(a,Date)?a:new Date(a);if((0,window.isNaN)(a.getTime()))return String(a);d=$.Xo(d)||$.Xo(rs)||$.Xo("output")||$.Xo("default");b=b||ss||ts()||"yyyy.MM.dd";var e=b+$.oa(d);e in Hs||(d=ns(d),Hs[e]=new $.eo(b,d));d=Hs[e];c=c||Is;c in Ms||(Ms[c]=Zn(c));return d.format(a,Ms[c])}; +$.Os=function(a,b,c,d,e,f,h,k){var l;$.z(b)?l=ks(b):$.C(b)&&(l=b);var m=ks(rs)||ks("default");b=$.ea(b)?b:l&&$.ea(l.decimalsCount)?l.decimalsCount:m.decimalsCount;c=$.z(c)?c:l&&$.z(l.decimalPoint)?l.decimalPoint:m.decimalPoint;d=$.z(d)?d:l&&$.z(l.groupsSeparator)?l.groupsSeparator:m.groupsSeparator;e=$.C(e)||$.da(e)?e:l&&($.C(l.scale)||$.da(l.scale))?l.scale:m.scale;f=$.da(f)?f:l&&$.da(l.zeroFillDecimals)?l.zeroFillDecimals:m.zeroFillDecimals;h=$.z(h)?h:l&&$.z(l.scaleSuffixSeparator)?l.scaleSuffixSeparator: +m.scaleSuffixSeparator;k=$.da(k)?k:l&&$.da(l.useBracketsForNegative)?l.useBracketsForNegative:m.useBracketsForNegative;!0===e&&(e=Ns);a=Number(a);(l=0>a)&&(a=-a);m="";if($.C(e)&&$.A(e.factors)&&$.A(e.suffixes)){var n=1,q=e.factors;e=e.suffixes;for(var r=Math.min(q.length,e.length),t=0;t=n||1>=n&&a>.1*n){m=e[t];break}m?m=h+m:n=1;a/=n}f=f?a.toFixed(b):$.$m(a,b).toString();a="";/(e+|e-)/.test(f)&&(b=f.split("e"),f=b[0],a="e"+b[1]);b=f.split(".");if(d){f=b[0];for(h=[];0<(e=f.substr(0, +f.length-3)).length;)h.unshift(f.substr(-3)),f=e;f&&h.unshift(f);b[0]=h.join(d)}d=l?"-":"";c=b.join(c)+a+m;l&&k&&(c=["(",c,")"].join(""),d="");return d+c}; +ys=function(a,b,c,d){if(b=($.p(b)?b:Ps)||null){d=$.Xo(d)||$.Xo(Qs)||$.Xo("input")||$.Xo("default");var e=$.oa(d);e=b+e;e in Rs||(d=ns(d),Rs[e]=new hca(b,d));var f=Rs[e];c=$.ma(c)?c:qs();(b=-1==b.replace(/'.+?'/g,"").search(/z+/i))&&c.setTime(c.getTime()+6E4*c.getTimezoneOffset());d=a.length;a:{var h=new jca;e=[0];for(var k=-1,l=0,m=0,n=0;nk&&f.b[n].fC&&(k=n,m=l=0),0<=k){var q=f.b[n].count;if(n==k&&(q-=m,m++,0==q)){a=0;break a}hs(f,a,e,f.b[n],q,h)||(n=k-1,e[0]= +l)}else{if(k=-1,!hs(f,a,e,f.b[n],0,h)){a=0;break a}}else{k=-1;if(" "==f.b[n].text.charAt(0)){if(q=e[0],es(a,e),e[0]>q)continue}else if(a.indexOf(f.b[n].text,e[0])==e[0]){e[0]+=f.b[n].text.length;continue}a=0;break a}b:{if(null==c)throw Error("Parameter 'date' should not be null.");void 0!=h.era&&void 0!=h.year&&0==h.era&&0f?f:a));$.D(c.setHours)&&(void 0==h.Th&&(h.Th=c.getHours()),void 0!=h.i&&0h.Th&&(h.Th+=12),c.setHours(h.Th));$.D(c.setMinutes)&&void 0!=h.Bj&&c.setMinutes(h.Bj);$.D(c.setSeconds)&&void 0!=h.wh&&c.setSeconds(h.wh);$.D(c.setMilliseconds)&&void 0!=h.j&&c.setMilliseconds(h.j);void 0!=h.f&&c.setTime(c.getTime()+6E4*(h.f-c.getTimezoneOffset()));h.F&&(a=new Date,a.setFullYear(a.getFullYear()-80),c.getTime()a[h]&&(a=$.Ja(a,0).reverse(),b=$.Ja(b,0).reverse());for(var k=[],l=[],m=0;mc&&(c=~c);c=$.Za(c,1,h)-1;b=k[c](b);return l[c](b)}}; +et=function(a){$.V.call(this);this.scale=a;this.j=lca;this.i=mca;this.f=nca};ft=function(a,b,c,d){b=Math.abs(c-b)/a.qn;c=a.f.length;for(var e=0;e=a*b)return 0;d&&(a=$.bn(b),c=+("1e-"+(Math.min($.an(a),$.an(b))+1)),a>b&&(a+=e*c),b=a);return b};$.xt=function(){$.vt.call(this);this.Ga("defaultScaleSettings.dateTime");this.Di=this.xh=null};$.st=function(){var a=new $.xt;a.N(a.oa);return a}; +zt=function(){$.V.call(this);this.f=this.b=null;this.i={SY:{},JS:{}};var a=$.Xo($.Yo());this.G=$.Ha(a.weekendRange);this.j=yt(this.G);this.F={}};yt=function(a){var b=a[1],c={};for(a=a[0];a<=b;a++)c[String((a+1)%7)]=!0;return c};At=function(a,b,c,d){c=oca.b(c);b.add(c);b=b.getTime();d.push({from:a,to:b-1});return b}; +$.Ct=function(){$.V.call(this);this.Jo=this.Ko=this.Zm=this.$m=this.N6=this.O6=this.Oh=this.Ph=this.Fj=this.Gj=this.Ze=this.$e=window.NaN;this.bm={value:.01,isPixels:!1};this.am={value:.01,isPixels:!1};this.IS=window.NaN;this.Kc=!1;this.pT=this.kM=window.NaN;this.jd=Bt(pca);this.Qv=1;this.WG=0;this.dl=qca;this.Xq=this.je=null;this.eQ=this.gF=!1}; +Dt=function(a){var b=new Date;(0,window.isNaN)(a.kM)&&(a.kM=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()));(0,window.isNaN)(a.pT)&&(a.pT=a.kM+864E5);return{min:a.kM,max:a.pT}};$.Et=function(a,b,c){b=$.Xk(b);c=$.Xk(c);if(a.Ph!=b||a.Oh!=c)a.Ph=b,a.Oh=c,a.Gj=window.NaN,a.Fj=window.NaN,a.Kc=!1,a.pb(),a.va(4)}; +Gt=function(a){var b=a.Xq.ob().width,c=$.Ft(a.bm.value,b),d=$.Ft(a.am.value,b),e=a.Oh-a.Ph;a.Gj=(0,window.isNaN)(a.$m)?(0,window.isNaN)(a.Ko)?Math.round(a.Ph-(Math.max(e*c/(b-c-d),0)||0)):Math.min(a.Ko,a.Ph):a.$m;a.Fj=(0,window.isNaN)(a.Zm)?(0,window.isNaN)(a.Jo)?Math.round(a.Oh+(Math.max(e*d/(b-c-d),0)||0)):Math.max(a.Jo,a.Oh):a.Zm}; +Ht=function(a,b){var c=b?a.bm:a.am,d=b?a.am:a.bm,e=a.Xq.ob().width,f=a.Oh-a.Ph;d=f*d.value;c=$.Ft(c.value,e);e=c*(f+d)/(e-c)||0;a.Gj=(0,window.isNaN)(a.$m)?(0,window.isNaN)(a.Ko)?b?a.Ph-e:a.Ph-d:Math.min(a.Ko,a.Ph):a.$m;a.Fj=(0,window.isNaN)(a.Zm)?(0,window.isNaN)(a.Jo)?b?a.Oh+d:a.Oh+e:Math.max(a.Jo,a.Oh):a.Zm};$.It=function(a){if(a.Uj())return!0;var b=a.uj();return a.$e<=b.min};$.Jt=function(a){if(a.Uj())return!0;var b=a.uj();return a.Ze>=b.max}; +Bt=function(a){var b=[];if($.A(a)){for(var c=0;ca?-m(-a+e-1):a?m(a+e-1):0}function l(a){return-m(a)}function m(a){return en(d,a)}var n=$.dn(Math.abs(b),d),q=$.dn(Math.abs(c),d),r=b*c,t=!1;0r?Tt(a,-(n-(e-1)),q-(e-1),f,h):c?Tt(a,0,q-(e-1),f,h):Tt(a,-(n-(e-1)),0,f,h);a.Ya=(0,$.Wa)(a.Ya,k);a.result=(0,$.Wa)(a.result,k);t&&(a.Ya.reverse(),t=a.result[0],a.result[0]=a.result[1],a.result[1]=t,t=a.result[2],a.result[2]= +a.result[3],a.result[3]=t);a.result[4]=e;return a}; +Tt=function(a,b,c,d,e,f,h){h=h||0;var k=a.Jl,l=a.lh,m=a.qm,n=c-b;!(0,window.isNaN)(k)&&n/k>a.pa.an()&&($.kl(20,null,[n,k]),k=window.NaN,l=4,m=6);if((0,window.isNaN)(k)){var q=window.NaN;for(a=window.NaN;l<=m;l++){var r=l-1;q=$.bn(n/r);0==q&&(q=$.bn(n/r,10));var t=Math.log(q);r=Math.pow(10,Math.floor(t*Math.LOG10E));t=Math.pow(10,Math.ceil(t*Math.LOG10E));var u=$.dn(q/t,2);r=[r,t,q=b;h=$.$m(h-d,7)){e!=h&&$.Da(f,h);if(k&&a==h)break;k++}else for(h=a=$.$m(b,7);h<=c;h=$.$m(h+d,7)){e!=h&&f.push(h);if(k&&a==h)break;k++}return f};Vt=function(a,b,c,d){a=a.Jl;(0,window.isNaN)(a)&&(a=(c-b)/(d-1));return Math.max(a,1E-7)}; +$.Wt=function(){$.vt.call(this);this.Ga("defaultScaleSettings.linear");this.Di=this.xh=null;this.dS=!0;this.xw=10;this.GJ=!0;this.RK=this.J3};$.qt=function(){var a=new $.Wt;a.N(a.oa);return a};Xt=function(){$.Wt.call(this);this.Ga("defaultScaleSettings.log")};$.rt=function(){var a=new Xt;a.N(a.oa);a.Ya().N(a.Ya().oa);a.yb().N(a.yb().oa);return a};$.Yt=function(a){$.V.call(this);this.scale=a};$.Zt=function(a){a.Iz=null;a.Cx=null;a.Ok=null}; +$.$t=function(){this.ih=[];this.Wf=[];this.Or=[];this.Vw=[];this.oz=[];this.TR=!0;this.XB={};this.q4=null;this.TF=!0;this.mb=null;gt.call(this);this.Ga("defaultScaleSettings.ordinal")};$.au=function(a,b){null===b?a.Or.length=0:$.A(b)&&(a.Or=$.Ha(b));a.Ox()||(a.Or.length=0);a.Vw.length=0;a.oz.length=0;$.Zt(a.Ya());a.va(2)}; +$.bu=function(a){if(!a.oz||a.oz.length!=a.ih.length){var b=a.KY(),c=0,d;for(d in b)c+=b[d];a.oz=b.map(function(a){return a/c});a.YJ=[0];for(b=0;ba?$.Da(d,c,~a):(a=d[a],$.A(a.value)?$.Ba(a.value,b):a.value!=b&&(a.value=[a.value],a.value.push(b)))}else for(e in a.Bd)ru(a,b,e,d)}; +su=function(a,b,c,d){if(c){if(d)for(var e=b.cc();e--;)su(a,b.yd(e),c,d);if(d=a.Bd[c])e=b.get(c),a.cI[c]&&(e=String(e)),b.get(c),e=$.Na(d,e,a.PH[c]),(d=d[e])&&($.A(d.value)&&1h.KH&&(e.__original_id__=c.length,e.__original_parent__=c.length+1,c.push("__original_id__","__original_parent__"));for(f=0;f=h.KH){var q=n[0];var r=n[1]}else q=m.id,r=n[2];for(e=0;ea.length?a[0]:a[b],Math.min(d,c))||0}; +Ku=function(a,b,c,d,e,f,h){switch(a.g("cornerType")){case "round":b.Ff(e,f,h,h,!1,!0);break;case "round-inner":b.Ff(e,f,h,h,!1,!1);break;case "cut":b.lineTo(e,f);break;default:b.lineTo(c,d).lineTo(e,f)}};Lu=function(){$.Iu.call(this)};Mu=function(){this.P=$.mg();this.kc="";this.f={};this.b=0};Nu=function(a,b){return null!=b&&a.length>b?a.slice(0,b)+"...":a}; +Ou=function(a,b,c,d){$.V.call(this);this.Xb=this.Y=null;($.p(a)||$.p(b)||$.p(c)||$.p(d))&&this.set.apply(this,arguments);$.T(this.ua,[["left"],["top"],["bottom"],["right"]])}; +$.Nm=function(a){var b=arguments[0],c=arguments[1],d=arguments[2],e=arguments[3];if($.A(b)){var f=b;b=f[0];c=f[1];d=f[2];e=f[3];f=f.length}else f=arguments.length;if(!f)return{};if("object"==$.ka(b)){var h=b.top||0;var k=b.right||0;var l=b.bottom||0;var m=b.left||0}else 1==f?m=l=k=h=b||0:2==f?(l=h=b||0,m=k=c||0):3==f?(h=b||0,m=k=c||0,l=d||0):4<=f&&(h=b||0,k=c||0,l=d||0,m=e||0);return{top:h,left:m,bottom:l,right:k}};Qu=function(a,b){for(var c in Pu){var d=b[c];$.p(d)&&(a.oa[c]=d)}}; +$.Ru=function(a,b,c,d){Ou.call(this,a,b,c,d)};$.Uu=function(a,b){var c=b.top||0,d=b.left||0,e=Su(a.height,c,b.bottom||0),f=Tu(a.width,d,b.right||0);d=$.L(d,f);c=$.L(c,e);return new $.I(a.left-d,a.top-c,f,e)};Su=function(a,b,c){var d=1;$.Bo(b)?d-=(0,window.parseFloat)(b)/100:a+=$.ea(b)?b:(0,window.parseFloat)(b);$.Bo(c)?d-=(0,window.parseFloat)(c)/100:a+=$.ea(c)?c:(0,window.parseFloat)(c);d||(d=1E-7);return a/d}; +Tu=function(a,b,c){var d=1;$.Bo(b)?d-=(0,window.parseFloat)(b)/100:a+=$.ea(b)?b:(0,window.parseFloat)(b);$.Bo(c)?d-=(0,window.parseFloat)(c)/100:a+=$.ea(c)?c:(0,window.parseFloat)(c);d||(d=1E-7);return a/d};$.Vu=function(){this.b={}}; +sca=function(a){function b(a){var b=[],c,d;for(d in a)if(a.hasOwnProperty(d)){var e=a[d];if(d in l){var f=l[d];"number"==f&&(e=$.N(e));"boolean"==f&&(e=k[op(e).toLowerCase()],e="useNegativeSign"==d?!e:e);if("scale"==f){var h=op(e);if(h in k)e=k[h];else{e={};h=h.split("|");var n=function(a,b){return 0!=b%2};f=(0,$.Ye)(h[0].split(/\(([ \w\+\-]*)\)/),n);h=(0,$.Ye)(h[1].split(/\(([^\)]*)\)/),n);f=(0,$.Wa)(f,function(a){return+a});var q=f[0];n=[q];for(c=1;cb||h&&d>c?-1:f&&a==b||h&&d==c?0:1});0>d&&(d=~d-1);return a[$.Za(d,0,a.length)]}; +wca=function(a){var b=$.dv(a),c=b.useHtml,d=a.Hf();a.J(1024)&&($.hv(a.gp,a.ma()),a.I(1024));b=a.uk(b.format,d,a.ma());a.Rv||(a.Rv=$.sk(),a.Rv.Dd("aria-hidden","true"));c?a.Rv.htmlText($.p(b)?String(b):""):a.Rv.text($.p(b)?String(b):"");ev(a,function(a,b,c){a=0==c;$.J(b,$.Zu)||$.J(b,$.cv)?this.bi.call(b,this.Rv,a):this.bi(this.Rv,a,b)});return a.Rv}; +bv=function(a){if($.da(a.xr))return a.xr;var b=$.dv(a),c=null!==b.width,d=null!==b.height,e=b.useHtml,f=a.xb?!!a.xb.path():!1;a=String(a.uk(b.format,a.Hf(),a.ma()));a=$.hc(ic(a));return 1!=a.split(/\n/g).length||c||d||e||f};tv=function(a){var b=bv(a),c=$.J(a.xb,Mu),d=$.J(a.xb,$.Qh);return!a.xb||b&&c||!b&&d};uv=function(){$.Zu.call(this)};vv=function(){$.cv.call(this)}; +wv=function(a,b,c){this.qc={values:a||{},lg:b||null,Li:c||[],Hm:{},Dl:{}};this.qc.Hm["%Value"]="value";this.qc.Hm["%YValue"]="value";this.qc.Hm["%Index"]="index"};$.xv=function(a){return $.p(void 0)?(a.qc.values=void 0,a):a.qc.values};$.yv=function(a,b){var c;if($.p(b)){for(c in a)a.hasOwnProperty(c)&&!$.D(a[c])&&a[c]!=a.qc&&delete a[c];a.qc.values=b}for(c in a.qc.values)a[c]=a.qc.values[c].value;return a};$.zv=function(a){$.V.call(this);this.b=a}; +Av=function(a){this.ra=a;$.V.call(this);$.T(this.ua,[["text",16,2],["url",16,2],["alt",16,2],["imgAlt",16,2],["logoSrc",16,2],["enabled",16,2]])}; +Bv=function(){$.Y.call(this);this.Y=null;this.Uc={};this.Xb=null;$.T(this.ua,[["fontSize",20,9],["fontFamily",20,9],["fontColor",16,1],["fontOpacity",16,1],["fontDecoration",20,9],["fontStyle",20,9],["fontVariant",20,9],["fontWeight",20,9],["letterSpacing",20,9],["textDirection",20,9],["lineHeight",20,9],["textIndent",20,9],["textShadow",16,1],["vAlign",20,9],["hAlign",20,9],["wordWrap",20,9],["wordBreak",20,9],["textOverflow",20,9],["selectable",16,1],["disablePointerEvents",16,1],["useHtml",20, +9]])};Cv=function(){Bv.call(this);this.Ia=null;this.K=void 0;this.xb=this.Wa=null;this.Oa=$.ok();$.Bu(this,this.Oa);$.T(this.ua,[["text",20,9],["position",4,9],["width",4,9],["height",4,9],["anchor",4,9],["offsetX",4,9],["offsetY",4,9],["rotation",4,9],["adjustFontSize",4,9],["minFontSize",0,0,0,this.ea],["maxFontSize",0,0,0,this.ea]]);this.ua.disablePointerEvents.e0=function(){this.background().disablePointerEvents(this.nd("disablePointerEvents"))}}; +Dv=function(a){var b=a.ja(),c;var d=a.g("width");var e=a.g("height");var f=a.X1();b&&f?(null!=d?(a.Oi=d=$.L(d,f.width),b=!1):(d=0,b=!0),null!=e?(a.Ni=c=$.L(e,f.height),f=!1):(c=0,f=!0)):($.Ko(d)?(b=!0,d=0):(b=!1,a.Oi=d=$.N(d)),$.Ko(e)?(f=!0,c=0):(f=!1,a.Ni=c=$.N(e)));e=a.padding();a.xb.width(null);a.xb.height(null);b?(d+=a.xb.sb().width,a.nn=d,a.Oi=e.Lk(d)):d=a.nn=e.Ng(d);a.xb.width(a.nn);f?(c+=a.xb.sb().height,a.ln=c,a.Ni=e.$j(c)):c=a.ln=e.Yh(c);a.xb.height(a.ln);var h=!b,k=!f,l=a.g("adjustFontSize"); +h=l&&(h&&l.width||k&&l.height);a.ka();h?(d=a.aS(d,c),a.fontSize(d),a.xb.fontSize(d),b&&(a.xb.width(null),a.nn=a.xb.sb().width,a.xb.width(a.nn),a.Oi=e.Lk(a.nn)),f&&(a.xb.height(null),a.ln=a.xb.sb().height,a.xb.height(a.ln),a.Ni=e.$j(a.ln))):l&&(l.width||l.height)&&(a.fontSize(a.g("minFontSize")),a.xb.fontSize(a.g("minFontSize")),b&&(a.xb.width(null),a.nn=a.xb.sb().width,a.xb.width(a.nn),a.Oi=e.Lk(a.nn)),f&&(a.xb.height(null),a.ln=a.xb.sb().height,a.xb.height(a.ln),a.Ni=e.$j(a.ln)));a.da(!1);a.Lg=$.L(e.g("left"), +a.Oi);a.Mg=$.L(e.g("top"),a.Ni)};Ev=function(a){var b;if(b=!a.xb)a.xb=$.sk(),a.xb.Dd("aria-hidden","true");return b};$.Fv=function(){Cv.call(this);$.T(this.ua,[["visible",128,1]]);this.oa.visible=!0};Gv=function(){$.Fv.call(this)}; +Hv=function(){function a(){this.Zy=!0}function b(){this.ac=null}Bv.call(this);this.Ga($.Er.legendItem);this.wb=$.ok();this.ad=this.wb.text();this.ad.Dd("aria-hidden","true");this.VW=this.WW=null;this.RF=window.NaN;this.n4={line:"black",spline:"black","step-line":"black",ohlc:"black",candlestick:"black"};this.vka={line:!0,spline:!0,"step-line":!0,ohlc:!0};this.ZC={iconStroke:"#999",iconFill:"#999",iconHatchFill:"none",iconMarkerStroke:"#999",iconMarkerFill:"#999",fontColor:"#999"};$.T(this.ua,[["text", +20,9],["x",4,9,0,b],["y",4,9,0,b],["iconType",16,1,0,a],["iconTextSpacing",4,9,0,b],["maxWidth",4,9,0,b],["maxHeight",4,9,0,b],["iconFill",17,0,a],["iconStroke",16,1,0,a],["iconHatchFill",16,1,0,a]]);this.TK()};Jv=function(a,b,c){a.$l?a.$l.clear():a.$l=b.parent().path();a.jw&&(Iv(a,a.za),b=a.jw,($.z(b)?$.Jp(b):b).call(a,a.$l,c/2,c/2,c/6))}; +xca=function(a){switch(a){case "step-area":a=function(a,b){a.moveTo(0,.6*b).lineTo(.5*b,.6*b).lineTo(.5*b,.1*b).lineTo(b,.1*b).lineTo(b,b).lineTo(0,b).lineTo(0,.6*b).close()};break;case "area":a=function(a,b){a.moveTo(0,.7*b).lineTo(.35*b,.3*b).lineTo(.5*b,.5*b).lineTo(b,0).lineTo(b,b).lineTo(0,b).lineTo(0,.7*b).close()};break;case "range-step-area":case "range-spline-area":case "range-area":a=function(a,b){a.moveTo(0,.2*b).lineTo(.5*b,.4*b).lineTo(b,.2*b).lineTo(b,.8*b).lineTo(.5*b,.6*b).lineTo(0, +.8*b).close()};break;case "spline-area":a=function(a,b){var c=b/2;a.moveTo(b,.6*c).lineTo(b,b).lineTo(0,b).lineTo(0,1.3*c).Fe(0,c,c,.3*c,90,-90).Fe(b,c,c,.4*c,180,90).moveTo(0,0).close()};break;case "range-bar":a=function(a,b){a.moveTo(.35*b,0).lineTo(.65*b,0).lineTo(.65*b,.15*b).lineTo(.35*b,.15*b).close().moveTo(.1*b,.4*b).lineTo(.9*b,.4*b).lineTo(.9*b,.55*b).lineTo(.1*b,.55*b).close().moveTo(.25*b,.8*b).lineTo(.75*b,.8*b).lineTo(.75*b,.95*b).lineTo(.25*b,.95*b).close()};break;case "range-column":a= +function(a,b){a.moveTo(0,.6*b).lineTo(0,.4*b).lineTo(.15*b,.4*b).lineTo(.15*b,.6*b).lineTo(0,.6*b).close().moveTo(.4*b,.9*b).lineTo(.4*b,.1*b).lineTo(.55*b,.1*b).lineTo(.55*b,.9*b).lineTo(.4*b,.9*b).close().moveTo(.8*b,.7*b).lineTo(.8*b,.3*b).lineTo(.95*b,.3*b).lineTo(.95*b,.7*b).lineTo(.8*b,.7*b).close()};break;case "bar":a=function(a,b){a.moveTo(0,0).lineTo(.6*b,0).lineTo(.6*b,.15*b).lineTo(0,.15*b).close().moveTo(0,.4*b).lineTo(b,.4*b).lineTo(b,.55*b).lineTo(0,.55*b).close().moveTo(0,.8*b).lineTo(.8* +b,.8*b).lineTo(.8*b,.95*b).lineTo(0,.95*b).close()};break;case "column":a=function(a,b){a.moveTo(0,b).lineTo(0,.4*b).lineTo(.15*b,.4*b).lineTo(.15*b,b).close().moveTo(.4*b,b).lineTo(.4*b,0).lineTo(.55*b,0).lineTo(.55*b,b).close().moveTo(.8*b,b).lineTo(.8*b,.2*b).lineTo(.95*b,.2*b).lineTo(.95*b,b).close()};break;case "step-line":a=function(a,b){a.moveTo(0,.8*b).lineTo(.5*b,.8*b).lineTo(.5*b,.2*b).lineTo(b,.2*b).moveTo(0,0).close();Jv(this,a,b)};break;case "line":a=function(a,b){a.moveTo(0,.5*b).lineTo(b, +.5*b).close();Jv(this,a,b)};break;case "spline":a=function(a,b){var c=b/2;a.Fe(0,c,c,.8*c,90,-90).Fe(b,c,c,.6*c,180,90).moveTo(0,0).close();Jv(this,a,b)};break;case "bubble":case "circle":a=function(a,b){var c=b/2;a.Fe(c,c,c,c,0,360).close()};break;case "candlestick":a=function(a,b){a.moveTo(.5*b,0).lineTo(.5*b,b).moveTo(0,.3*b).lineTo(b,.3*b).lineTo(b,.7*b).lineTo(0,.7*b).lineTo(0,.3*b).close()};break;case "ohlc":a=function(a,b){a.moveTo(0,.2*b).lineTo(.5*b,.2*b).moveTo(.5*b,0).lineTo(.5*b,b).moveTo(.5* +b,.8*b).lineTo(b,.8*b).close()};break;case "triangle-up":case "triangle-down":case "triangle-right":case "triangle-left":case "diamond":case "cross":case "diagonal-cross":case "star4":case "star5":case "star6":case "star7":case "star10":case "pentagon":case "trapezium":case "arrowhead":case "v-line":a=$.Ok(a);var b=$.Jp(a);a=function(a,d){return b(a,d/2,d/2,d/2)};break;default:a=function(a,b){a.moveTo(0,0).lineTo(b,0).lineTo(b,b).lineTo(0,b).close()}}return a}; +Kv=function(a,b){a.$l&&a.$l.clear();a.Fs?(b.call(a,a.lw.clear(),a.op),a.Es&&b.call(a,a.Es.clear(),a.op)):(a.lw.clear(),a.Es&&a.Es.clear())};Lv=function(a,b,c){a.bi(a.ad,!!c);c=a.g("fontColor");b=a.fq?a.ZC.fontColor:b?$.Wl(c):c;(0,window.isNaN)(a.RF)?(a.ad.color(b),a.ad.fill(b)):(c=a.g("fontOpacity"),c=$.p(c)?c:1,b={keys:Mp(a.RF,c,b)},a.Rh().fill(b))};Mv=function(a,b){a.lw.stroke(yca(a,b));a.lw.fill(zca(a,b));a.Es&&a.Es.fill(a.fq?a.ZC.iconHatchFill:a.g("iconHatchFill"))}; +Iv=function(a,b){a.$l&&(a.$l.fill(Aca(a,b)),a.$l.stroke(Bca(a,b)))};yca=function(a,b){if(a.fq)return a.ZC.iconStroke;var c=a.g("iconType");return $.lp(a.g("iconStroke"))&&c in a.n4?a.n4[c]:b?$.Wl(a.g("iconStroke")):a.g("iconStroke")};zca=function(a,b){return a.g("iconType")in a.vka?null:a.fq?a.ZC.iconFill:b?$.Wl(a.g("iconFill")):a.g("iconFill")};Bca=function(a,b){return a.fq?a.ZC.iconMarkerStroke:b?$.Wl(a.hw):a.hw};Aca=function(a,b){return a.fq?a.ZC.iconMarkerFill:b?$.Wl(a.gw):a.gw}; +Nv=function(a,b){return $.p(b)?(a.WW=b,a):a.WW};$.Pv=function(){Bv.call(this);this.Jf=this.Yf=null;this.ec=Ov;this.qE=this.kL=!1;this.SH();$.T(this.ua,[["text",20,9]]);this.B(4294967295)}; +Qv=function(a){var b=a.ja();if(b){var c=b.width;var d=b.height}else c=d=void 0;var e=!!a.xb;if(e){var f=a.xb.sb();var h=f.width;var k=f.height}var l=null!=a.Yf,m=null!=a.Jf;f=a.padding();l?(h=$.Bo(a.Yf)&&!$.p(c)?e?h:0:$.L(a.Yf,c),e&&(a.Lg=$.L(f.g("left"),h))):(h=e?h:0,e&&(a.Lg=$.L(f.g("left"),h)),h=f.Lk(h));b&&cb?null:b;$.p(a.width())||a.B(4)};$.lw=function(a,b){if($.p(b)){var c=a.g("orientation")!=b;a.Od.orientation=b;c&&a.B(4);return a}return a.Od.orientation};$.mw=function(a,b){if($.p(b)){var c=null==b?"":String(b);a.aa!=c&&(a.aa=c,a.B(20,9));return a}return a.aa};nw=function(a){var b=!1;a.wb||(b=!0,a.wb=$.ok(),a.background().O(a.wb),a.kc=a.wb.text(),a.kc.zIndex(.1),a.kc.Dd("aria-hidden","true"),$.Bu(a,a.wb));return b}; +ow=function(a){var b=a.padding(),c=a.margin(),d=a.ja(),e=a.g("orientation"),f=0==a.AA()%180;var h=0==(a.AA()+90)%180;if(d)if(h){var k=d.height;h=d.width}else k=d.width,h=d.height;else k=h=void 0;var l=nw(a);if(l||a.J(16))a.bi(l),a.I(16);a.kc.width(null);a.kc.height(null);a.kc.pc(1,0,0,1,0,0);l=a.kc.sb();var m=a.ph("width")?a.nd("width"):a.ba||null;null===m?(a.G=l.width,a.f=b.Lk(a.G)):(a.f=$.L(m,k),a.G=b.Ng(a.f));d&&kd.left-q+k&&(b-=d.left-q+k);0>d.top-m+n&&(c-=d.top-m+n);d.cb()-q+k>r.width&&(b-=d.cb()-q+k-r.width);d.Va()-m+n>r.height&&(c-=d.Va()-m+n-r.height)}h||(a.x(b),a.y(c),d=a.ob(),d.lefte.width+q&& +(b-=d.cb()-e.width-q),d.Va()>e.height+m&&(c-=d.Va()-e.height-m));l||(a.x(b),a.y(c),d=a.ob(),d.leftf.cb()+q&&(b-=d.cb()-q-f.cb()),d.Va()>f.Va()+m&&(c-=d.Va()-m-f.Va()));a.x(b);a.y(c)}}; +Jw=function(a,b,c,d,e){var f=b.parent()?Hw(b):a,h=f.g("positionMode")||"float";f=f.ya()||$.Iw(a);a=f.ob();var k=f.O().Ka();f=$.Zj(k);k=k.sb();var l=Fw(b),m=b.g("position");switch(h){case "float":var n=l?c:c-f.x;var q=l?d:d-f.y;break;case "point":var r;e&&e.Bh?r=e.Bh(m,!0).value:r={x:c,y:d};n=l?r.x+f.x:r.x;q=l?r.y+f.y:r.y;break;case "chart":c=$.Lo(a,m),n=c.x+(l?f.x:0),q=c.y+(l?f.y:0)}Gw(b,n,q,f,k,a)}; +Eca=function(a,b,c,d,e,f){if(a.check(Cw|Dw)&&(a.b=e?e.Ua():a,$.Kw(a,[a.b]),a.b.enabled())){for(var h={clientX:{value:c,type:"number"},clientY:{value:d,type:"number"},formattedValues:{value:[],type:""},points:{value:[],type:""}},k=[],l=0;l":"\n",h.joinedFormattedValues={value:h.formattedValues.value.join(k),type:"string"},f&&$.Sc(h,f),k=e&&e.xc&&e.xc()||b[0]&&b[0].series&&b[0].series.xc&&b[0].series.xc()||void 0,f=[],!e&&b[0]&&b[0].series&&f.push(b[0].series),e&&f.push(e),k&&f.push(k),b=new $.Nw(h),b.Li(f),e&&b.lg(e.$()), +$.yv(b),a.b.Ri().text(Mw(a,b,!0)),$.mw(a.b.title(),Ow(a,b)),$.Kw(a.b),a.b.g("useHtml")&&tw(a.b.i),Pw(a.b).parent()||a.b.B(2),Qw(a,a.b),Jw(a,a.b,c,d,e),Rw(a.b,c,d))}};Lw=function(a,b){return!a.enabled()||b.nearestPointToCursor&&!(0,window.isFinite)(b.nearestPointToCursor.distance)}; +$.Vw=function(a,b,c,d,e,f,h){if(!a.f||a.f.NA()||!a.f.Gm()||a.check(Cw)||b.length){$.Sw(a);var k=a.g("displayMode");if("single"==k)e=b[0],b=e.series,a.b=f?a:b.Ua(),!Lw(a.b,e)&&$.p(b.Rk)&&(f=b.Rk(),h&&($.Sc($.xv(f),h),$.yv(f)),f.clientX=c,f.clientY=d,$.mw(a.b.title(),Ow(a.b,f)),a.b.Ri().text(Mw(a.b,f)),a.b==a?$.Kw(a):(Tw(a),$.Kw(a,[a.b])),((h=a.g("useHtml"))&&!a.b.i.O()||!Pw(a.b).parent())&&a.b.B(2),h&&tw(a.b.i),Qw(a,a.b),Jw(a,a.b,c,d,b),Rw(a.b,c,d));else if("union"==k)Eca(a,b,c,d,e,h);else if("separated"== +k)for(Tw(a),h=0;hd.Va()?(e=d.tb(),f=d.cb(),h=d.Vb(),k=d.Va(),c+=2):(e=f=d.tb()+2,h=d.Vb(),k=d.Va(),b-=2);else if(b>d.cb())cd.Va()?(e=d.tb(),f=d.cb(),h=d.Va(),k=d.Vb(),c+=2):(e=f=d.cb()-2,h=d.Vb(),k=d.Va(),b+= +2);else if(cd.Va())h=k=d.Va()-2,e=d.tb(),f=d.cb(),c+=2;else break a;a.K=[e,h,f,k,b,c]}$.Yd(window.document,"mousemove",a.ZN,!1,a)}else e&&d.Ed(!0)}};$.Ww=function(a,b,c,d){$.Sw(a);a.b=a;d&&(d.clientX=b,d.clientY=c,$.mw(a.title(),Ow(a,d)),a.Ri().text(Mw(a,d)));a.g("useHtml")&&!a.b.i.O()&&a.b.B(2);Qw(a,a);Jw(a,a,b,c);Rw(a,b,c)}; +Ow=function(a,b){$.xv(b).titleText={value:a.jb.g("text"),type:"string"};$.yv(b);var c=a.g("titleFormat");$.z(c)&&(c=$.Xu($.Vu.vd(),c));return c.call(b,b)};Mw=function(a,b,c){$.xv(b).valuePrefix={value:a.g("valuePrefix")||"",type:"string"};$.xv(b).valuePostfix={value:a.g("valuePostfix")||"",type:"string"};$.yv(b);c=c?a.g("unionFormat"):a.g("format");$.z(c)&&(c=$.Xu($.Vu.vd(),c));a=a.g("maxLength");b=c.call(b,b);return b=Nu(b,a)}; +Tw=function(a,b,c){if(b)return a.F&&a.F.stop(),a.remove(),!0;if(a.g("selectable")&&c){b=c.originalEvent.clientX;c=c.originalEvent.clientY;var d=a.ob().Tf(new $.gb(b,c)),e=Pw(a).ia();if(e&&!d)return $.Ld(e,"mouseleave",a.eN,!1,a),a.K=null,!1;if(Xw(a,b,c))return $.Ld(window.document,"mousemove",a.ZN,!1,a),e&&($.Ld(Pw(a).ia(),"mouseenter",a.vY,!1,a),$.Ld(Pw(a).ia(),"mouseleave",a.wY,!1,a)),!1;a.K=null}if(a.g("hideDelay"))return a.tL(),a.F.uq()||a.F.start(),!1;a.remove();return!0}; +$.Sw=function(a){var b=a.Wj();a.title().Wj(b);a.$r().Wj(b);a.background().Wj(b);a.padding().Wj(b)};Pw=function(a){if(!a.Oa){a.Oa=$.ok();$.Bu(a,a.Oa);var b=a.background(),c=a.title(),d=a.$r(),e=a.Ri();b.O(a.Oa);c.O(a.Oa);d.O(a.Oa);e.O(a.Oa)}return a.Oa};$.Iw=function(a,b){return $.p(b)?(a.Ba=b,a):a.Ba};Fw=function(a){return Fca&&a.g("allowLeaveStage")&&a.g("allowLeaveChart")};$.Kw=function(a,b){b=b||[];for(var c in a.j)(0,$.Yw)(b,function(a){return String($.oa(a))==c})||a.j[c].Lc(!0)}; +Zw=function(a){if(a.g("useHtml"))a.P=a.i.sb();else if(!a.P){a.Ri().ka();a.bi();a.Ri().da(!1);var b=a.g("width"),c=a.g("height"),d=(a.ra||$.Iw(a)).ob();b=$.L(b,d.width);c=$.L(c,d.height);d=!(0,window.isNaN)(b);var e=!(0,window.isNaN)(c),f=new $.I(0,0,0,0),h=null,k=null,l=a.title(),m=a.$r(),n=a.Ri();l.ka();m.ka();n.ka();if(!d||!e){if(l.enabled()){"svg"==$.kk?l.ja(null):l.ja(a.ra&&a.ra.O()?a.ra.O().Ka().sb():null);var q=l.g("width");var r=null!=l.nd("width");var t=l.g("height");var u=null!=l.nd("height"); +$.Bo(q)&&(h=q,d?(q=a.padding().Ng(b),l.width(q)):l.width(null));$.Bo(t)&&(k=t,e?(q=a.padding().Yh(c),l.height(q)):l.height(null));t=l.yi();f.width=b||Math.max(f.width,t.width);r?l.width(h):delete l.Pa.width;u?l.height(k):delete l.Pa.height;k=h=null;e||(f.height+=t.height)}if(n.enabled()){var v=(r=a.Y?a.Y.Ri():null)?r.width():void 0;r=r?r.height():void 0;n.ja(null);v=n.width()||v;r=n.height()||r;$.Bo(v)&&(h=v,d?(q=a.padding().Ng(b),n.width(q)):n.width(null));$.Bo(r)&&(k=r,e?(q=a.padding().Yh(c),n.height(q)): +n.height(null));v=n.yi();f.width=b||Math.max(f.width,v.width);h&&n.width(h);k&&n.height(k);e||(f.height+=v.height)}l.enabled()&&l.ja(new $.I(0,0,f.width,t.height));n.enabled()&&n.ja(new $.I(0,0,f.width,v.height));m.enabled()&&(m.ja(l.enabled()||n.enabled()?f:null),t=m.yi(),f.width=b||Math.max(f.width,t.width),e||(f.height+=t.height))}f=a.padding().LY(f);d&&(f.width=b);e&&(f.height=c);f.left=0;f.top=0;a.P=f;l.da(!1);m.da(!1);n.da(!1)}}; +$w=function(a){Zw(a);if(!a.G){var b=a.g("anchor"),c=a.g("useHtml"),d=c?0:a.g("offsetX"),e=c?0:a.g("offsetY");c=c?$.Uf(a.i.Za(),"margin"):new $.kb(0,0,0,0);var f=a.g("x"),h=a.g("y");f=new $.gb(f,h);$.ep(f,b,d+c.left,e+c.top);b=$.Lo(a.P,b);f.x-=b.x;f.y-=b.y;a.G=f}}; +Uw=function(a,b,c,d,e){var f=c,h=d,k=a.g("positionMode")||"float",l=a.g("displayMode"),m=(a.ya()||$.Iw(a)).ob(),n=a.Ba.O().Ka(),q=n.sb();n=$.Zj(n);var r=Fw(b);"float"==k?(f=r?c:c-n.x,h=r?d:d-n.y):"point"==k?(a="union"==l?a.g("position"):b.g("position"),a=e.Bh(a,!0).value,f=r?a.x+n.x:a.x,h=r?a.y+n.y:a.y):"chart"==k&&(f=a.ya().ob(),a="union"==l?a.g("position"):b.g("position"),a=$.Lo(f,a),f=a.x+(r?n.x:0),h=a.y+(r?n.y:0));Gw(b,f,h,n,q,m)}; +ax=function(a){var b=null;$.Iw(a)?b=$.Iw(a).O():a.ya()?b=a.ya().O():a.parent()&&(a=Hw(a),$.Iw(a)?b=$.Iw(a).O():a.ya()&&(b=a.ya().O()));return b};Hw=function(a){for(;a.parent();)a=a.parent();return a}; +Qw=function(a,b){if(b.J(2))if(Fw(b)||"vml"==$.kk){if(b.g("useHtml"))b.i.O($.Vp.body);else{var c=zw.vd();a.f&&a.f.NA()&&b.f.O(null);b.f=c;b.f.O(window.document.body);b.O(c.b);Pw(b).parent(b.O())}b.I(2)}else if(c=ax(b)){var d=c.Ka().Tl();if(b.g("useHtml"))b.i.O(d);else{var e=bx(b);c=cx[e];c||(c=new uw,cx[e]=c);b.f=c;Pw(b).parent(b.O());c.O(d);b.O(c.b)}b.I(2)}}; +Xw=function(a,b,c){if(!a.K)return!1;var d=a.K[0],e=a.K[1],f=a.K[2],h=a.K[3],k=a.K[4],l=a.K[5];a=$.kn(f,h,k,l,b,c);k=$.kn(k,l,d,e,b,c);return $.kn(d,e,f,h,b,c)==a&&a==k};bx=function(a){a=ax(a).Ka();return"stg"+$.oa(a)}; +$.dx=function(){Bv.call(this);this.Ga($.Er.legend);this.ba=this.Ub=null;this.Xa=window.NaN;this.$a=!0;this.B(4294967295);$.Cu(this,this,null,null,null,null,this.Caa,null);$.T(this.ua,[["inverted",16,1],["itemsLayout",4,9],["iconSize",4,9,0,function(){if(null!=this.Ub)for(var a=0,b=this.Ub.length;ab?(v=Math.max(v,n),w+=m,q++,n=e+y,m=k+y):(n+=e+y,m=Math.max(m,k+y)):"vertical-expandable"==x&&(r+k>c?(w=Math.max(w,r),v+=t,u++,t=e+y,r=k+y):(r+=k+y,t=Math.max(t, +e+y))));!d||0>f?f=d=0:d-=y;!h||0>l?l=h=0:h-=y;a.me=u;return"vertical"==x?$.rn(0,0,Math.max(0,f),Math.max(0,h)):"horizontal"==x?$.rn(0,0,Math.max(0,d),Math.max(0,l)):"vertical-expandable"==x?(w=Math.max(w,r)-y,$.rn(0,0,Math.max(0,v+(t-y)),Math.max(0,w))):"horizontal-expandable"==x?(v=Math.max(v,n)-y,$.rn(0,0,Math.max(0,v),Math.max(0,w+(m-y)))):$.rn(0,0,0,0)}; +Hca=function(a){if($.A(a.Ja))return a.Ja;if(null!=a.f){for(var b,c=[],d=0;dc.width&&(f+=h,h=e=0);hx(m,e,f,c);e+=m.ob().Ad()+k;h=Math.max(h,n.qd()+k)}break;case "vertical-expandable":for(h=f=e=0,k=a.g("itemsSpacing"),l=0;lc.height&&(e+=h,h=f=0),hx(m,e,f,c), +f+=m.ob().qd()+k,h=Math.max(h,n.Ad()+k)}if((c=$.Gr(a,"title"))&&c.enabled()&&(c=c.g("orientation")||$.lw(c),"top"!=c&&"bottom"!=c)){d=c=0;if(e=a.Na.Qd)c=e.Kd,d=e.Gd;e=a.jb.yi();e.top+=d;e.left+=c}}a.Xa=b}; +ix=function(a,b){var c=$.N(b.itemIndex);if((0,window.isNaN)(c))return null;var d=b.type;switch(d){case "mouseout":d="legenditemmouseout";break;case "mouseover":d="legenditemmouseover";break;case "mousemove":d="legenditemmousemove";break;case "mousedown":d="legenditemmousedown";break;case "mouseup":d="legenditemmouseup";break;case "click":d="legenditemclick";break;case "dblclick":d="legenditemdblclick";break;default:return null}c=a.g("inverted")?a.Ub.length-1-c:c;var e=null,f=window.NaN,h=a.Ub[c]; +if(h&&a.f)for(var k=0;kf?($.Da(a.f,c,~f),$.Da(a.b,b,~f)):(h=!(a.b[f]&b))?a.b[f]|=b:$.p(d)&&(a.b[f]=d);a.target.enabled()&&a.target.$().select(c)&&(a.target.eh()||"single"!=a.target.Xl()||(k?a.target.nl(b):$.p(d)&&!k&&$.sx(a,window.NaN)&&a.target.nl(d)),h?e=a.target.qk(b,e):$.p(d)&&(e=a.target.qk(d,e)))}return e}; +$.sx=function(a,b){if($.p(b)){if((0,window.isNaN)(b))return!$.ux(a,$.Do)&&!(a.Gc&$.Do);var c=$.vx(a,+b)}else c=a.Gc;return!(c&$.Do)};wx=function(a,b,c,d){if(!a.target.$().select(c))return d;var e=$.Na(a.f,c);b!=$.nm&&(0>e?($.Da(a.f,c,~e),$.Da(a.b,b,~e),a.Gc==$.nm&&(d=a.target.qk(b,d)),$.sx(a,window.NaN)&&!a.target.eh()&&"single"==a.target.Xl()&&a.target.nl(b)):a.b[e]|=b);return d}; +$.yx=function(a,b){var c=$.Co,d;if($.p(b)){if(!(b>=a.target.$().Hb())){var e=a.target.pq();if($.A(b))for($.Pa(b),d=b.length;d--;)e=wx(a,c,+b[d],e);else e=wx(a,c,+b,e);a.target.vm(e)}}else if(a.Gc&c)if(c==$.Co){for(d=a.b.length;d--;)$.xx(a,c,d)&&($.Ca(a.b,d,1),$.Ca(a.f,d,1));a.Gc=$.nm}else c==$.Do&&(a.b.length=0,a.f.length=0,a.Gc=$.nm);else{for(d=a.b.length;d--;)$.xx(a,c,d)&&($.Ca(a.b,d,1),$.Ca(a.f,d,1));a.Gc=c}};$.xx=function(a,b,c){return!(a.b[c]&=~b)}; +$.rx=function(a,b,c,d){var e=a.f[c];$.xx(a,b,c)?($.Ca(a.f,c,1),$.Ca(a.b,c,1),a.target.enabled()&&a.target.$().select(e)&&a.Gc==$.nm&&(d=a.target.qk($.nm,d))):a.target.enabled()&&a.target.$().select(e)&&a.Gc==$.nm&&(d=a.target.qk(a.b[c],d));return d};$.zx=function(a,b,c,d){if((0,window.isNaN)(c))return d;c=$.Na(a.f,c);0<=c&&(d=$.rx(a,b,c,d));return d};$.Ax=function(a,b){for(var c=[],d=0,e=a.b.length;dd){t?r=l[t-1]:r=f;f=new $.Qx;var u=r.kc.replace(q,"");q=r.kc+(c?" ":"");f.text(u);f.style(a.f);n=r.width();u=new $.I(h.left,h.top,n-m,h.height);m=n+=+e;f.Ta=u;f.eb=e;f.j=a.j;a.b.push(f);a.Ta.width=Math.max(a.Ta.width,u.width);a.Ta.height+=u.height}(f=l[l.length-1])&&1<=l.length&&f!= +r&&(u=f.kc.replace(q,""),h=f.Ta,l=new $.I(h.left,h.top,h.width-n,h.height),a.Ta.width=Math.max(a.Ta.width,l.width),a.Ta.height+=l.height,f=new $.Qx,f.text(u),f.Ta=l,f.style(a.f),f.j=a.j,a.b.push(f))}by(a,b)}; +by=function(a,b){var c,d=0;for(c=0;ch&&(d=a.g("from"),e=a.g("to"));f=b.transform(e,0);b=b.transform(d,1);e=Math.min(b,f);var k=Math.max(b,f);(0,window.isNaN)(e)||(0,window.isNaN)(k)||!(0<=k&&1>=e||a.i)||(a.i||(e=$.Za(e,0,1),k=$.Za(k,0,1)),b=a.ja(),d=a.Pp(),a.Ob()?(f=Math.floor(b.Va()-b.height*k),e=Math.ceil(b.Va()-b.height*e),h=b.tb(),k=b.cb(),c.moveTo(h,f).lineTo(k,f).lineTo(k,e).lineTo(h,e).close()):(f= +b.Va(),h=b.Vb(),e=Math.floor(b.tb()+b.width*e),k=Math.ceil(b.tb()+b.width*k),c.moveTo(e,f).lineTo(e,h).lineTo(k,h).lineTo(k,f).close()),a.i||c.clip(d.Ej(b)))}else $.il(2)};$.Wy=function(a){a.F||(a.F=$.qk(),$.Bu(a,a.F));return a.F};$.Yy=function(){$.Y.call(this);$.T(this.ua,[["stroke",0,1],["length",0,9],["position",0,9]]);this.path=$.qk();$.Bu(this,this.path)}; +$.Zy=function(a){if(!a.cp)switch(a.vh){case "top":a.cp=a.f1;break;case "right":a.cp=a.kT;break;case "bottom":a.cp=a.eT;break;case "left":a.cp=a.iT}return a.cp}; +$.$y=function(){this.ka();$.Y.call(this);this.Ga($.Er.axis);this.ci=[];this.Gk=[];this.Od={};this.Od.orientation="top";this.se=980;$.T(this.ua,[["width",this.se,9],["drawFirstLabel",this.se,9,0,function(){this.$d();this.ns()},this],["drawLastLabel",this.se,9,0,function(){this.$d();this.ns()},this],["staggerMode",this.se,9,0,this.$d,this],["overlapMode",this.se,9],["staggerMaxLines",0,0,0,function(){this.$d();this.ns();this.g("staggerMode")&&this.B(this.se,9)},this],["staggerLines",0,0,0,function(){this.$d(); +this.ns();this.g("staggerMode")&&this.B(this.se,9)},this],["orientation",this.se,9,0,this.ns,this],["stroke",this.se,9],["value",this.se,9,void 0,function(){null===this.g("value")?this.zh=void 0:this.zh=25;this.B(8)},this]]);this.da(!1)};$.az=function(a,b){if($.p(b)){var c=a.g("orientation")!=b;a.Od.orientation=b;c&&a.B(a.se)}}; +cz=function(a,b){var c=a.labels().enabled(),d=a.qb().enabled(),e=a.g("staggerMode");if(c||d)if(e)if(a.na)c=a.na;else if(e=a.labels(),(c=a.scale())&&e.enabled()){a.AJ=1;a.G=1;c=c.Ya().get();d=c.length;for(var f,h,k,l,m=0;m$.Oo(e)?a.TH:null,q=a.g("staggerMaxLines"),r=a.g("staggerLines"),t=a.g("drawFirstLabel"),u=a.g("drawLastLabel");e=[];for(m=0;mq?q:a.AJ}else a.G=r;if((null!==r||null!==q&&a.AJ>q)&&"no-overlap"==a.g("overlapMode")){for(f=0;fe&&(e=t);if(m&&!r)for(m=$.C(q)?q.qb:!q,c=k.yb().get(),l=0,b=m.length;lf&&(f=t);return a.j0(e,f,d)+h}; +ez=function(a,b){var c=a.scale();return $.A(b)?(c.transform(b[0],0)+c.transform(b[1],1))/2:c.transform(b,.5)};Tca=function(a,b,c,d,e){var f=$.p(e)?e:a.ob();e=$.p(e)?e:a.line.sb();var h=c?a.Ya():a.yb(),k=c?a.labels():a.qb();c=a.g("stroke");c=$.mp(c);b=ez(a,d[b]);d=k.g("position");h=$.Po(h,$.Oo(d));a=a.GM(f,b,c,h,e);return{value:{x:a.x,y:a.y}}}; +bz=function(a,b,c){var d=!1;switch(a.g("orientation")){case "top":case "bottom":d=b.left>c[0]||b.cb()c[1]||b.Va()c.start?1:a.startc.end?1:a.endc.start?a.sourceIndex>c.sourceIndex?c.end=a.start:(a.start=c.end,a.start>=a.end&&(a.enabled=!1)):a.startc.sourceIndex?(c.start=a.end,c.start>=c.end&&(c.enabled=!1)):a.end=c.start:a.sourceIndex>c.sourceIndex?(c.start=a.end,c.start>=c.end&&(c.enabled= +!1)):(a.end=c.start,a.start>=a.end&&(a.enabled=!1));return b})};$.rz=function(a){var b=new $.qz;b.N(b.oa);b.Yy(a);return b};$.sz=function(){$.Y.call(this);this.Ga("defaultGridSettings");this.j=null;this.GL="horizontal";this.Fa=this.Xb=this.Y=null;this.F={};this.aa=null;$.T(this.ua,[["stroke",16],["fill",4],["drawFirstLine",64],["drawLastLine",64],["isMinor",80,9]])};tz=function(a,b){$.J(b,$.Ws)||$.C(b)&&"range"==b.type?a.Hc($.Ws):($.J(b,$.Ts)||$.C(b)||null==a.Fa)&&a.Hc($.Ts)}; +$.uz=function(a,b){var c=!a.f&&a.GL!=b;a.GL=b;c&&a.B(64)};vz=function(a,b,c){var d=b?a.aa:a.pa;if($.p(c)){var e=c&&$.D(c.Ma)&&c.Ma(),f=(e="stock-scatter-date-time"==e||"stock-ordinal-date-time"==e)?c==d?null:c:$.ut(d,c,null,15,null,a.zg,a);if(f||null===c&&d)c=d==f,f||$.ur(d,a.zg,a),d=f,b?a.aa=d:a.pa=d,f&&!e&&f.da(c),c||a.B(20,9)}}; +$.wz=function(a,b){var c=a.g("fill");if($.D(c)){var d={index:b,grid:a,palette:a.dc()||a.Y.dc()};c=c.call(d)}d=b in a.F?a.F[b.toString()]:a.F[b.toString()]=a.b_();d.fill(c);return d};xz=function(){$.sz.call(this)};yz=function(){$.sz.call(this)};Az=function(){$.qf.call(this);this.ec=$.zz;this.F=this.j=null};$.Dz=function(a){a=$.oa(a);delete Bz[a];$.Jc(Bz)&&Cz&&Cz.stop()};Ez=function(){Cz||(Cz=new vw(function(){Wca()},20));var a=Cz;a.uq()||a.start()}; +Wca=function(){var a=(0,$.Sn)();$.Dc(Bz,function(b){b.tG(a)});$.Jc(Bz)||Ez()};$.Fz=function(a,b,c,d){Az.call(this);if(!$.A(a)||!$.A(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.b=a;this.f=b;this.duration=c;this.K=d;this.coords=[];this.Ld=0};Gz=function(a,b){$.D(a.K)&&(b=a.K(b));a.coords=Array(a.b.length);for(var c=0;cd.bP&&(d.bP=h),he&&(e=~e-1);e=$.Za(e,0,d-1);c=$.Na(c,f,h);0>c&&(c=~c);c=$.Za(c,0,d-1);b.inverted()&&(d=e,e=c,c=d)}else e=c=window.NaN;return[e,c,e,c]};cA=function(a){var b=[],c;for(c in a)b.push(a[c]);return b}; +eA=function(a,b,c){var d=a.fc||$.rn(0,0,0,0),e=d.left,f=d.top,h=d.width,k=d.height;d=$.Zj(a.O().Ka());b-=d.x;c-=d.y;d=a.Ks?(k-(c-f))/k:(b-e)/h;if(be+h||cf+k)return null;e=[];var l=a.nU();f=0;for(h=l.length;f=-e&&c<=1-e}; +$.JA=function(a,b){var c=a.bu(),d=$.p(b)?b:a.oa,e=$.p(b);a.im(d.xGrids,a.lm,c,e);a.im(d.yGrids,a.nm,c,e);a.im(d.xMinorGrids,a.Qr,c,e);a.im(d.yMinorGrids,a.Tr,c,e)};KA=function(a,b){for(var c=0;c(a.prevValue-a.aa||1)*(b-a.aa||1)};bA=function(a,b){return!!((Number(a)||0)&(b||255))}; +TA=function(a){$.V.call(this);this.Sa=a;this.b=null;$.T(this.ua,[["start",0,1],["point",0,1],["updatePoint",0,1],["finish",0,1],["needsZero",0,4],["needsWidth",0,4],["yValues",0,4]])};WA=function(a,b,c,d,e){if(a){var f=void 0;if(e&&(f=c.o("shapes"),!f))return;b=c?new UA(b,c,d||$.nm,f):new VA(b);a.call(b,b)}};VA=function(a){this.series=a;this.seriesState=a.fk()}; +UA=function(a,b,c,d){VA.call(this,a);this.b=b;for(var e=a.Be(),f=0;fn.G[w]?m=n.F[w][n.G[w]]:n.F[w].push(m=v.kS());n.G[w]++;n.i[w].push(m);m=aB(n,q,r,t,u,m,!0);f[l]=m}a.Jb(a.X,f,b);return f}; +cB=function(a,b,c){for(var d in c){var e=a.f[d],f=c[d],h=e.fill(a.X,b),k=e.stroke(a.X,b);f.fill(h);f.stroke(k);e.Ib&&("none"==f.fill()&&"none"==f.stroke()?f.visible(!1):f.visible(!0));e.Ib||$A(a,h,k)}a.Jb(a.X,c,b)};$A=function(a,b,c){a=a.X.$();$.p(b)&&a.o("fill",b);$.p(c)&&a.o("stroke",c)};$.dB=function(a,b,c,d,e,f){$.YA.call(this,a,b,c,d,e,f)};$.eB=function(a,b,c,d,e,f){$.YA.call(this,a,b,c,d,e,f);this.j={}}; +fB=function(a,b,c,d,e){var f=void 0;if(d){var h=a.X.$();f=$.Eo(c);var k=h.get(f);(h=k?k[d]:h.get($.om(c,d)))?f=h:(k=a.X.kd(),h=a.X[f]()[d](),$.D(h)||k?h!=$.oq.themes.defaultTheme.chart.defaultSeriesSettings.base[f][d]||k?f=e?b.fill(a.X,c):b.stroke(a.X,c):(a={sourceColor:a.X.g("color")},f=h.call(a)):f=h)}return f}; +gB=function(a,b,c){c=c||a.f;var d=a.X.$(),e,f,h="",k;for(k in c){var l=a.f[k];var m=l.Zb;var n=fB(a,l,b,l.Yb,!0);m=fB(a,l,b,m);l.Ib||(n&&$.km(n)&&(e=n),m&&$.km(m)&&(f=m));h+=k+$.$l(n)+$.$l(m)}$A(a,e,f);d.o("shapeNames",c);return h};hB=function(a){$.V.call(this);this.Sa=a;this.Em="both";this.ba=null;this.i=this.j=void 0;this.K=null;this.b=this.f=void 0;this.G=this.aa=10;this.F=this.P="#1D8BD1"};iB=function(a){return $.J(a,$.vt)&&!$.J(a,$.xt)&&"none"==a.jn()}; +jB=function(a){var b=a.hF(),c=a.iF(),d=a.jF(),e=a.bF(),f=a.cF();a=a.fF();e=$.p(f)||$.p(a)||$.Bo(e)||!$.Ko(e);return $.p(c)||$.p(d)||$.Bo(b)||!$.Ko(b)||e};$.kB=function(){Bv.call(this);this.Pa={};$.T(this.ua,[["text",20,9]])}; +$.mB=function(a,b,c,d){$.Y.call(this);this.ya=a;this.jf=b;this.Od={};this.Od.pointWidth="90%";this.Od.isVertical=this.ya.xa();this.Od.minPointLength=0;this.gg=!1;this.kn={};this.eD=this.nA=null;this.re=c;this.ti=null;this.Qx=0;this.kl=null;this.Vj=[];this.eq=!1;this.Cu=new TA(this);$.K(this.Cu,this.Vja,this);$.T(this.ua,[["color",2048,65,4294967295],["xPointPosition",1024,1,4294967295],["pointWidth",1024,1,1024],["maxPointWidth",1024,1,1024],["minPointLength",1024,5,1024,this.yE],["connectMissingPoints", +1024,1,$.lB],["displayNegative",1024,5,2],["stepDirection",1024,1,131072],["isVertical",1024,5,4294967295]]);this.SH();this.Mz(d,!0)};$.nB=function(a){var b=1E-5*a.Wq;b=a.jf.yM(a)+b;a.zh=b}; +oB=function(){return[["fill",0,0,4294967295],["negativeFill",0,0,4294967295],["risingFill",0,0,4294967295],["fallingFill",0,0,4294967295],["stroke",0,0,4294967295],["lowStroke",0,0,4294967295],["highStroke",0,0,4294967295],["lowFill",0,0,4294967295],["highFill",0,0,4294967295],["negativeStroke",0,0,4294967295],["risingStroke",0,0,4294967295],["fallingStroke",0,0,4294967295],["medianStroke",0,0,4294967295],["stemStroke",0,0,4294967295],["whiskerStroke",0,0,4294967295],["hatchFill",0,0,4294967295], +["negativeHatchFill",0,0,4294967295],["risingHatchFill",0,0,4294967295],["fallingHatchFill",0,0,4294967295],["highHatchFill",0,0,4294967295],["lowHatchFill",0,0,4294967295],["whiskerWidth",0,0,256],["type",0,0,8192],["size",0,0,8192],["labels",0,0],["minLabels",0,0],["maxLabels",0,0],["markers",0,0],["outlierMarkers",0,0]]};pB=function(a){return a.check(128)&&a.check(2097152)};$.XA=function(a){return!!a.Cu.g("needsZero")};$.qB=function(a,b){a.Od.pointWidth=String(100*b)+"%"}; +$.rB=function(a,b){a.Od.xPointPosition=b};$.sB=function(a,b){a.Od.type=b;a.ca.Eb().VF=b;a.check(8192)&&a.B(1024)};$.tB=function(a){a.pe||(a.pe=new $.Nw);return a.pe};$.vB=function(a,b,c,d){if(!a)return ada;var e=$.oa(b)+"|"+a+"|"+c+(d?"|"+d:"");d=d||a;var f=uB[e];f||(uB[e]=f=function(e,f,l){l=$.lm(l);return l!=$.nm&&c&&(l=e.sc(a,l,f,b,!1,d),$.p(l))?l:e.sc(a,0,f,b,!1,d)});return f};ada=function(){}; +wB=function(a,b,c,d,e,f){b.ka();if(a.check(e)&&(!1!==b.enabled()||c||d)){if(b.O(a.S1()),a.J(f))return b.clear(),b.ja(a.fa),!0}else b.clear(),b.O(null);b.W();b.da(!1);return!1};xB=function(a,b){var c=b[0],d=b[1]||c;return c.oH()[a]||d.oH()[a]||b[2]&&$.p(b[2][a])||b[3]&&$.p(b[3][a])}; +zB=function(a,b,c,d){var e=b[0],f=e.ip(c);f||(f=e.add(void 0,c));f.jc(d);f.Hi();c=b[1]||e;d=a.$();var h=d.o($.J(a.Rf,$.dB)?"shapes":"shapeNames"),k=a.rr(d.ma());a.Rf.VB(k,h);d=d.o(a.check(8)?"markerStroke":"markerFill");$.p(d)&&(a=e==a.ca.el()?yB(a,d):a.Zv(d),!xB("fill",b)&&$.km(a)&&(f.oJ(a),a=$.Xl(a),!xB("stroke",b)&&$.km(a)&&f.pJ(a)));$.oy(f,c);f.td(b[2],b[3]);return f};bda=function(a,b){(0,$.Pe)(b,function(a){$.J(a,$.Zu)?this.hT(a):a.W();a.da(!1)},a)}; +cda=function(a,b,c,d,e,f,h){c=zB(a,b,c,e);a=zB(a,b,d,f);h&&(c.W(),a.W());return[c,a]};yB=function(a,b){return $.p(b)?b:$.jm("fill",1,!1)(a,$.nm,!0)};dda=function(a,b){return+$.Hc(a.QH,function(a){return(0,$.Yw)(a,function(a){return a==b})})};AB=function(a){a&&(a=a.o("shared"))&&(a.jB=window.NaN,a.dB=window.NaN)}; +CB=function(a){var b=a.gg;if($.da(b)){b=a.Lx.clone();b=$.dp(b,1);var c=b.top,d=b.Va();c=Math.floor(c);d=Math.ceil(d);b.top=c;b.height=d-c;c=b.left;d=b.cb();c=Math.floor(c);d=Math.ceil(d);b.left=c;b.width=d-c;a.check($.BB)&&(b=b.clone(),a=a.ya,c=a.Mh,b.top-=c,b.height+=c,b.width+=a.oi)}return b};$.DB=function(a,b,c){c=c||a.$();b.Li(a.DS(c)).lg(c).Hm(a.sF).Dl(a.YT(c));return $.yv(b,a.xm(b,c))};EB=function(a){this.Sa=a;$.Lr.call(this,a.data())}; +$.FB=function(a,b,c,d,e){$.mB.call(this,a,b,c,d);this.state=new $.qx(this);this.Bka=e;$.Dq(this.ua,"xMode",1024,5,4294967295);this.data(null)}; +$.GB=function(a,b,c){if(b){var d={},e=-window.Infinity;b=function(a,b){var c=b.data.x;if(c in d){var h=a[d[c]];a[d[c]]=b}else d[c]=a.length,a.push(b),cc&&(c=~c,0b-a.pd.data[c-1].data.x&&c--)),c):-1}return a.vG.find("x",b)}; +$.KB=function(a,b,c,d,e){var f=a.$();f.reset();for(var h=[];f.advance();){var k=void 0,l=a,m=f,n=b,q=c,r=d,t=e;if($.J(l.Rf,$.dB)&&(k=m.o(l.Rf.P)))a:{var u=void 0;var v=k,w=n;l=q;var x=r,y=t;for(u in v){var B=v[u];if($.J(B,$.hg)&&(B=B.sb(),B.left<=w+x&&w<=B.left+B.width&&B.top<=l+y&&l<=B.top+B.height)){u=!0;break a}}u=!1}else u=m.o(l.Ah.zb+"X"),v=m.o(l.Ah.zb),l.Ah.zb==l.Ah.Ab?u=n<=u&&u<=n+r&&q<=v&&v<=q+t:(w=m.o(l.Ah.Ab+"X"),l=m.o(l.Ah.Ab),u=$.jn([u,v,w,l],[n,q,n+r,q,n+r,q+t,n,q+t]));!u&&(k=m.o("marker"))&& +(u=k.Vd().sb().so(new $.I(n,q,r,t)));u&&h.push(f.ma())}return h};LB=function(a,b){return $.p(b)?(a.pka=!!b,a):a.pka||!1};$.MB=function(a,b,c){if(!a.enabled())return a;$.A(b)?(c||a.ie(),a.state.Lh($.Do,b,c?void 0:$.Co)):$.ea(b)&&a.state.Lh($.Do,b,c?void 0:$.Co);return a}; +$.OB=function(a){$.Y.call(this);this.Ga($.Er.scroller);this.Ja=!1;this.vB=this.dO=this.G=this.ba=this.P=this.b=this.f=this.Aa=null;this.F=0;this.j=NB;this.fa=new $.I(0,0,0,0);this.i=new $.I(0,0,0,0);this.na=this.ea=this.Ba=null;this.Ha=0;this.Xa=this.eb=this.$a=!1;this.Wa=this.aa=null;this.rb=!!a;$.T(this.ua,[["height",4,9],["minHeight",4,9],["maxHeight",4,9],["orientation",196,9],["inverted",16,1],["autoHide",256,9],["fill",16,1],["selectedFill",16,1],["outlineStroke",16,1],["allowRangeChange",0, +0]])};PB=function(a){return a.Ob()?"ew-resize":"ns-resize"};$.QB=function(a,b,c){b=$.Za(Math.round(b*NB),0,NB);c=$.Za(Math.round(c*NB),0,NB);if(b>c){var d=b;b=c;c=d}if(b!=a.F||c!=a.j)a.F=b,a.j=c,a.B(16,1)};RB=function(a){a.Ja||(a.Aa.hc(a.f),a.Aa.hc(a.b),a.Ja=!0)};SB=function(a){a.Ja&&a.K().g("autoHide")&&!a.Ha&&!a.$a&&(a.Aa.removeChild(a.f),a.Aa.removeChild(a.b),a.Ja=!1)}; +TB=function(a,b,c){a=a.K();a.g("enabled")?c?(c=a.lb().g("fill"),a=a.lb().g("stroke")):(c=a.Qa().g("fill"),a=a.Qa().g("stroke")):(c=$.im,a="none");b.fill(c);b.stroke(a)};UB=function(a,b,c,d,e){return a.dispatchEvent(a.L3(c,($.p(d)?d:a.F)/NB,($.p(e)?e:a.j)/NB,b))}; +WB=function(a,b,c){c=VB(a,b,c);var d=a.fa;switch(a.g("orientation")){case "right":case "left":d=(d.top+d.height-c)/d.height;break;default:d=(c-d.left)/d.width}a.g("inverted")&&(d=1-d);if((c=a.g("allowRangeChange"))&&b==a.f)c=d,d=a.j/NB,b="thumb-drag";else if(c&&b==a.b)c=a.F/NB,b="thumb-drag";else{var e=(a.j-a.F)/NB/2;c=d-e;d+=e;b=!0===b?"selected-range-drag":"background-click"}c=$.Za(Math.round(c*NB),0,NB);d=$.Za(Math.round(d*NB),0,NB);c==d&&(d+=dd&&(e=a.f,a.f=a.b,a.b=e,e=a.Ba,a.Ba=a.ea, +a.ea=e,e=c,c=d,d=e);c==a.F&&d==a.j||!UB(a,b,"scrollerchange",c,d)||(a.F=c,a.j=d,a.B(16,1))};VB=function(a,b,c){var d=a.fa,e=a.Ob();a=$.da(b)||!a.g("allowRangeChange")?(a.j-a.F)/NB*(e?d.width:d.height)/2:0;return e?$.Za(c,d.left+a,d.left+d.width-a):$.Za(c,d.top+a,d.top+d.height-a)};XB=function(a,b){var c=(c=a.g("allowRangeChange"))&&b==a.f?a.F:c&&b==a.b?a.j:(a.F+a.j)/2;c/=NB;a.g("inverted")&&(c=1-c);var d=a.fa;return a.Ob()?d.left+d.width*c:d.top+d.height*(1-c)}; +YB=function(a,b,c){$.ag.call(this,b.ia());this.i=a;this.b=c?b:null;this.Qj=void 0;this.rs=(0,$.pa)(function(){this.Qj=void 0;WB(this.i,this.b||!0,this.ba)},this);$.bg(this);this.wa("end",this.Daa)};ZB=function(a){$.V.call(this);this.Ga($.Er.thumbs);this.i=a;$.T(this.ua,[["enabled",80,1],["autoHide",16,1]]);a={};$.T(a,[["fill",16,1],["stroke",16,1]]);this.ca=new $.uy(this,a,$.nm);$.W(this,"normal",this.ca);this.za=new $.uy(this,a,$.Co);$.W(this,"hovered",this.za)};$B=function(){$.OB.call(this)}; +$.aC=function(){$.OB.call(this,!0);this.af="after-axes";$.Dq(this.ua,"position",20,9)};bC=function(a,b){this.F=b;this.ra=a;this.i=0;this.b=1;this.j=!0;this.f=null}; +cC=function(a){var b=a.ra;$z(b);b.J(65536)&&(b.Tq().f||b.Uq().f)&&b.pb();if(a.f)if((b=a.f.scale)||(b=a.ra,b=a.F?b.Ra():b.bb()),a.f.count&&$.J(b,$.$t))b=a.f.count/b.values().length,a.f.ofa?a.BB(1-b,1):a.BB(0,b);else if($.p(a.f.start)&&$.p(a.f.end)&&b){var c=it(b,b.transform(a.f.start,0)),d=it(b,b.transform(a.f.end,1));c>d&&(c=it(b,b.transform(a.f.end,0)),d=it(b,b.transform(a.f.start,1)));a.BB(c,d)}else a.f=null}; +$.dC=function(a){$.EA.call(this,$.p(a)?a:!0);this.Ga("cartesianBase");this.Uc=new bC(this,!0);this.bg=new bC(this,!1);$.T(this.ua,[["zAngle",4,9],["zAspect",4,9],["zDistribution",131076,9],["zPadding",4,9]])};eC=function(a,b){var c="before-axes"==a.g("position");a.padding(0);a.ja(b);var d=a.Ob(),e=window.NaN;c?e=d?b.height-a.zd().height:b.width-a.zd().width:b=a.zd();return{y0:b,C5:e}}; +fC=function(a,b,c,d){if("before-axes"==c.g("position"))switch(c.g("orientation")){case "top":c.padding().top(b[0]+(a.eb||0));c.padding().bottom(0);b[0]+=d;break;case "bottom":c.padding().top(0);c.padding().bottom(b[2]+(a.Ha||0));b[2]+=d;break;case "left":c.padding().left(b[3]+(a.Ja||0));c.padding().right(0);b[3]+=d;break;case "right":c.padding().left(0),c.padding().right(b[1]+(a.$a||0)),b[1]+=d}c.Ob()?(c.padding().left(b[3]),c.padding().right(b[1])):(c.padding().top(b[0]),c.padding().bottom(b[2])); +return b};$.gC=function(a,b){this.f={};this.b=[];this.i=0;var c=arguments.length;if(1=a.b||e>=a.b&&u<=a.b;v?(v=FC(a,d,e,m,n,t,u),l=v.dP,a.f("c",l[2],l[3],l[4],l[5],"bc",l[4],a.i), +GC(a,v),DC(a),a.f("bs",l[4],a.i,l[4],l[5],"c",l[6],l[7],l[8],l[9],"c",q,r,f,h),k.push(l[0],l[1],l[2],l[3],l[4],l[5]),k.push(l[4],l[5],l[6],l[7],l[8],l[9]),k.push(t,u,q,r,f,h)):(v=FC(a,t,u,q,r,f,h),l=v.dP,a.f("c",m,n,t,u,"c",l[2],l[3],l[4],l[5],"bc",l[4],a.i),GC(a,v),DC(a),a.f("bs",l[4],a.i,l[4],l[5],"c",l[6],l[7],l[8],l[9]),k.push(d,e,m,n,t,u),k.push(l[0],l[1],l[2],l[3],l[4],l[5]),k.push(l[4],l[5],l[6],l[7],l[8],l[9]))}else a.f("c",m,n,t,u,"c",q,r,f,h),k.push(d,e,m,n,t,u,t,u,q,r,f,h);a.ba=(b-f)*a.Ja; +a.ea[0]=a.j[0]*a.ba;a.ea[1]=a.j[1]*a.ba;d=k;a.na=a.F;a.Ba=a.G;a.F=b;a.G=c;break;case 2:if(a.F==b&&a.G==c)break;f=a.na;h=a.Ba;d=a.F;k=a.G;EC(a,f,h,d,k,b,c);e=[];n=(d-f)*a.Ja;m=d-a.j[0]*n;n=k-a.j[1]*n;a.P?(f=FC(a,f,h,m,n,d,k),h=f.dP,a.f("bs",h[0],a.i,h[0],h[1],"c",h[2],h[3],h[4],h[5],"bc",h[4],a.i),GC(a,f),DC(a),a.f("bs",h[4],a.i,h[4],h[5],"c",h[6],h[7],h[8],h[9]),e.push(h[0],h[1],h[2],h[3],h[4],h[5]),e.push(h[4],h[5],h[6],h[7],h[8],h[9])):(a.f("bs",f,a.i,f,h,"c",m,n,d,k),e.push(f,h,m,n,d,k));a.ba= +(b-d)*a.Ja;a.ea[0]=a.j[0]*a.ba;a.ea[1]=a.j[1]*a.ba;d=e;a.na=a.F;a.Ba=a.G;a.F=b;a.G=c;a.ec=3;break;case 1:if(a.na==b&&a.Ba==c)break;a.F=b;a.G=c;a.ec=2;break;case 0:a.na=b,a.Ba=c,a.ec=1}return d}; +IC=function(a){var b=null;switch(a.ec){case 3:var c=a.na,d=a.Ba,e=a.F,f=a.G;b=[];var h=c+a.ea[0];var k=d+a.ea[1];a.P?(c=FC(a,c,d,h,k,e,f),d=c.dP,a.f("c",d[2],d[3],d[4],d[5],"bc",d[4],a.i),GC(a,c),DC(a),a.f("bs",d[4],a.i,d[4],d[5],"c",d[6],d[7],d[8],d[9],"bc",d[8],a.i),b.push(d[0],d[1],d[2],d[3],d[4],d[5]),b.push(d[4],d[5],d[6],d[7],d[8],d[9])):(a.f("c",h,k,e,f,"bc",e,a.i),b.push(c,d,h,k,e,f));if(a.Wh.length){for(c=0;ca.Ja?-1:1,a.j[1]=0):KC(a.j,a.Xa[0],a.Xa[1],a.$a[0],a.$a[1])}; +FC=function(a,b,c,d,e,f,h){var k=0,l=0,m=0,n=0,q=0,r=0,t={};if($.A(a.b)){var u=[];var v=!1;for(var w=a.b.length-1;0=wa&&(wa=xn(xn(O,x,wa),xn(x,y,wa),wa),B.x==F.x?G.y<=wa.y&&wa.y<=M.y&&w.push(wa):B.y==F.y?G.x<=wa.x&&wa.x<=M.x&&w.push(wa):wa.x>=G.x&&wa.y>=G.y&&wa.x<=M.x&&wa.y<=M.y&&w.push(wa));F=(O=w[0])?nn(b,c,d,e,f,h,O.x,O.y):.5}G=1-F;x=b*G+d*F;y=c*G+e*F;B=d*G+f*F;F=e*G+h*F;O?(d=O.x,e=O.y):e=d=window.NaN;t.dP=[b,c,x,y,d,e,B,F,f,h];$.A(a.b)&&(G=1-v,x=k*G+m*v,y=l*G+n*v,O?(d=O.x,e=O.y):e=d=window.NaN,u.push(d,e,m*G+q*v,n*G+r*v,q,r),t.$da=u,t.Wh||(t.Wh=[]),t.Wh.push(k,l,x,y, +d,e));return t};GC=function(a,b){var c=b.$da,d=b.Wh;if(c)for(var e=c.length-1;0>>0);aaa=0;$.Sn=Date.now||function(){return+new Date};var jk,wk=null;$.H(ta,Error);ta.prototype.name="CustomError";var ue;$.za=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if($.z(a))return $.z(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;cc&&(c=Math.max(0,a.length+c));if($.z(a))return $.z(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1}; +$.Pe=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=$.z(a)?a.split(""):a,f=0;f>>0).toString(16);$.ac.prototype.b="ac_uid_"+(1E9*Math.random()>>>0);var iaa,jaa,kaa,laa,maa,naa,haa,rc,qc,oaa;$.vc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};iaa=/&/g;jaa=//g;laa=/"/g;maa=/'/g;naa=/\x00/g;haa=/[\x00&<>"']/;rc={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"};qc={"'":"\\'"};oaa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Bc;a:{var YD=$.fa.navigator;if(YD){var ZD=YD.userAgent;if(ZD){Bc=ZD;break a}}Bc=""};var Rc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Yc[" "]=$.ia;var Nca,lda,mda,nda,oda;$.yd=$.Cc("Opera");$.hd=$.Uc();$.Rp=$.Cc("Edge");$.kda=$.Rp||$.hd;$.gd=$.Cc("Gecko")&&!(-1!=Bc.toLowerCase().indexOf("webkit")&&!$.Cc("Edge"))&&!($.Cc("Trident")||$.Cc("MSIE"))&&!$.Cc("Edge");$.xd=-1!=Bc.toLowerCase().indexOf("webkit")&&!$.Cc("Edge");$.Ad=$.Cc("Macintosh");$.ZC=$.Cc("Windows");Nca=$.Cc("Linux")||$.Cc("CrOS");lda=$.Cc("Android");mda=Wc();nda=$.Cc("iPad");oda=$.Cc("iPod");$.pda=Xc(); +a:{var $D="",aE=function(){var a=Bc;if($.gd)return/rv:([^\);]+)(\)|;)/.exec(a);if($.Rp)return/Edge\/([\d\.]+)/.exec(a);if($.hd)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if($.xd)return/WebKit\/(\S+)/.exec(a);if($.yd)return/(?:Version)[ \/]?(\S+)/.exec(a)}();aE&&($D=aE?aE[1]:"");if($.hd){var bE=$c();if(null!=bE&&bE>(0,window.parseFloat)($D)){$.ad=String(bE);break a}}$.ad=$D}var qaa={},cE;var dE=$.fa.document;cE=dE&&$.hd?$c()||("CSS1Compat"==dE.compatMode?(0,window.parseInt)($.ad,10):5):void 0; +var cd=cE;var saa={0:"Can't find an error message that corresponds to the specified error code",1:"Requested stage type is not supported",2:"Container should be defined to render stage",3:"Stage should have a DOM element",4:"Unable to set the parent component",5:"Trying to perform an operation with the disposed element",6:"Synchronous rendering didn't clean up all dirty states",7:"Can't add an element constructed by another Stage",8:"Wrong arguments passed to swapChildren",9:"Path must start with moveTo command", +10:"Method must be implemented",11:"Missing required parameter",12:"Parameter type mismatch",13:"Required parameter is null or undefined",14:"Invalid number of parameters",15:"Sorry, this feature in not supported in VML oriented browsers"};var uaa=!$.hd||$.dd(9),Xd=!$.hd||$.dd(9),qda=$.hd&&!$.bd("9"),zaa=function(){if(!$.fa.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});$.fa.addEventListener("test",$.ia,b);$.fa.removeEventListener("test",$.ia,b);return a}();var md=0,nd={};$.od.prototype.md=!1;$.od.prototype.ld=function(){if(!this.md&&(this.md=!0,this.R(),0!=md)){var a=$.oa(this);if(0!=md&&this.bv&&0=a.keyCode)a.keyCode=-1}catch(b){}};$.Bd.prototype.H1=ba(0);var Dd="closure_listenable_"+(1E6*Math.random()|0),waa=0;Hd.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.b[f];a||(a=this.b[f]=[],this.f++);var h=Jd(a,b,d,e);-1>>0);$.E("acgraph.events.listen",$.Ld);$.E("acgraph.events.listenOnce",Kd);$.E("acgraph.events.unlisten",$.Yd);$.E("acgraph.events.unlistenByKey",Zd);$.E("acgraph.events.removeAll",$.$d);var Baa=!$.hd||$.dd(9),Caa=!$.gd&&!$.hd||$.hd&&$.dd(9)||$.gd&&$.bd("1.9.1"),eE=$.hd&&!$.bd("9"),Daa=$.hd||$.yd||$.xd;$.he.prototype.Ay=!0;$.he.prototype.cu=function(){return this.b};$.he.prototype.toString=function(){return"Const{"+this.b+"}"};$.ge={};$.ie("");$.ke.prototype.Ay=!0;$.ke.prototype.cu=function(){return this.f};$.ke.prototype.gV=!0;$.ke.prototype.b=ba(2);$.je={};$.le("about:blank");$.ne.prototype.Ay=!0;$.me={};$.ne.prototype.cu=function(){return this.b};$.rda=$.oe("");$.fE=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g");$.sda=RegExp("\\b(hsl|hsla|rgb|rgba|matrix|(rotate|scale|translate)(X|Y|Z|3d)?)\\([-0-9a-z.%, ]+\\)","g");$.qe.prototype.gV=!0;$.qe.prototype.b=ba(1);$.qe.prototype.Ay=!0;$.qe.prototype.cu=function(){return this.f};$.pe={};$.re("",0);$.re("",0);$.re("
",0);var Be={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},Eaa={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},mf={IMG:" ",BR:"\n"};$.g=se.prototype;$.g.Za=function(a){return $.ze(this.b,a)};$.g.getElementsByTagName=function(a,b){return(b||this.b).getElementsByTagName(String(a))}; +$.g.Ac=function(a,b,c){return Le(this.b,arguments)};$.g.createElement=function(a){return $.Re(this.b,a)};$.g.appendChild=$.Se;$.g.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; +$.g.Gi=$.Ve;$.g.Wga=$.We;$.g.Sl=$.Ze;$.g.U1=$.$e;$.g.ZH=$.af;$.H(nf,$.od);var gE=[];$.g=nf.prototype;$.g.wa=function(a,b,c,d){$.A(b)||(b&&(gE[0]=b.toString()),b=gE);for(var e=0;ethis.P)if(this.dispatchEvent(new dg("start",this,a.clientX,a.clientY,a)))this.kp=!0;else{this.md||this.dy(a);return}}c=cg(this,b,c);b=c.x;c=c.y;this.kp&&this.dispatchEvent(new dg("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(eg(this,a,b,c),a.preventDefault())}}; +$.g.cja=function(a){var b=cg(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;eg(this,a,b.x,b.y)};$.g.VA=function(a){var b=this.f,c=(0,window.isNaN)(b.left)?null:b.left;b=(0,window.isNaN)(b.width)?0:b.width;return Math.min(null!=c?c+b:window.Infinity,Math.max(null!=c?c:-window.Infinity,a))};$.g.My=function(a){var b=this.f,c=(0,window.isNaN)(b.top)?null:b.top;b=(0,window.isNaN)(b.height)?0:b.height;return Math.min(null!=c?c+b:window.Infinity,Math.max(null!=c?c:-window.Infinity,a))}; +$.g.ar=function(){this.deltaX=this.target.offsetLeft;this.deltaY=this.target.offsetTop};$.g.ls=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};$.H(dg,td);$.H(fg,$.ag);$.g=fg.prototype;$.g.Tja=function(){return this.i.dispatchEvent("earlycancel")};$.g.LO=function(a){return this.i.dispatchEvent(new dg(a.type,this,a.clientX,a.clientY,a.EC,a.left,a.top,a.j))};$.g.LX=function(a){this.f=a||new $.I(window.NaN,window.NaN,window.NaN,window.NaN)};$.g.ar=function(){this.deltaX=this.i.E1();this.deltaY=this.i.G1()}; +$.g.VA=function(){this.b[0]=this.deltaX;this.b[1]=this.deltaY;if(!(0,window.isNaN)(this.f.left)||!(0,window.isNaN)(this.f.top)){var a=this.i.parent().Ig();a&&og(this.i.parent()).transform(this.b,0,this.b,0,1);var b=this.f,c=(0,window.isNaN)(b.left)?null:b.left,d=(0,window.isNaN)(b.width)?0:b.width,e=(0,window.isNaN)(b.top)?null:b.top;b=(0,window.isNaN)(b.height)?0:b.height;d-=this.i.Ad();b-=this.i.qd();b=null!=e?e+b:window.Infinity;e=null!=e?e:-window.Infinity;this.b[0]=Math.min(null!=c?c+d:window.Infinity, +Math.max(null!=c?c:-window.Infinity,this.b[0]));this.b[1]=Math.min(b,Math.max(e,this.b[1]));a&&a.transform(this.b,0,this.b,0,1)}return this.b[0]};$.g.My=function(){return this.b[1]};$.g.ls=function(a,b){var c=og(this.i.parent());if(c){var d=[a,b];c.transform(d,0,d,0,1);a=d[0];b=d[1]}this.i.setPosition(a,b)};$.H($.hg,$.qf);var gg=4294967295;$.g=$.hg.prototype;$.g.DG=!1;$.g.YC=!1;$.g.mx=null;$.g.nx=null;$.g.zv=null;$.g.Av=null;$.g.rw=!1;$.g.VC=null;$.g.iE=null;$.g.Jd=null;$.g.Y=null;$.g.lB=null;$.g.hj=!0;$.g.ti=null;$.g.QL=!1;$.g.Qd=null;$.g.XG=null;$.g.UY=0;$.g.jl=506631;$.g.XC=0;$.g.id=function(a){if($.p(a))return a=a||"",this.fe!=a&&(this.fe=a,this.Qb(2048)),this;$.p(this.fe)||this.id(bc($.ac.vd(),this));return this.fe};$.g.Ka=function(){var a=this.parent();return a?a.Ka():null};$.g.ia=function(){return this.Jd}; +$.g.parent=function(a){if($.p(a)){if(a){if(a!=this.Y){var b=this.Ka();b=b&&b!=a.Ka();a.hc(this);b&&this.EO()}}else this.remove();return this}return this.Y};$.g.EO=function(){var a=this.clip();a&&a.id(null);this.Qb(536)};$.g.dN=function(){return!!this.Y};$.g.remove=function(){this.Y&&this.Y.removeChild(this);return this};$.g.title=function(a){return $.p(a)?(this.nx!=a&&(this.nx=a,this.Qb(65536)),this):this.nx};$.g.ZS=function(a){return $.p(a)?(this.Av!=a&&(this.Av=a,this.Qb(131072)),this):this.Av}; +$.g.Dd=function(a,b){return $.p(b)?(this.BC[a]!==b&&(this.BC[a]=b,this.Qb(262144)),this):a in this.BC?this.BC[a]:$.mg().getAttribute(this.Jd,a)};$.g.cursor=function(a){return $.p(a)?(this.VC=a,this.sG(),this):this.VC};$.g.sG=function(){this.Qb(4096)};$.g.yr=function(){return!!this.XC};$.g.Vf=function(a){return!!(this.XC&a)};$.g.suspend=function(){this.FV=!0};$.g.resume=function(){this.FV=!1;this.Qb(this.FP);this.FP=0}; +$.g.Qb=function(a){if(a&=this.jl)this.FV?this.FP|=a:(this.XC|=a,this.Y&&this.Y.Qb(64),a=this.Ka(),!a||a.yf()||a.wN()||this.wN()||this.Td())};$.g.gl=function(a){this.Y&&this.Y==a||(this.lB?this.lB==a&&(this.lB=null):this.lB=this.Y,this.Y=a,this.kb(a));return this};$.g.qv=$.ia;$.g.Mr=function(){this.sV=this.XG=null;this.$d();this.Qb(4);ng(this)};$.g.Uy=function(){this.XG=null;this.$d();$.mg().OI()&&this.Qb(256);ng(this)};$.g.Ig=function(){if(!this.XG){var a=this.Y?this.Y.Ig():null;this.XG=yb(a,this.Qd)}return this.XG}; +$.g.rotate=function(a,b,c){this.qv();a=$.Kb($.bb(a),b||0,c||0);this.Qd?$.Hb(this.Qd,a):this.Qd=a;this.Mr();return this};$.g.Du=function(a,b){var c=Lb(this.sb(),b||"center");return this.rotate(a,c[0],c[1])};$.g.JE=function(a,b,c){return this.rotate(a-this.tD(),b,c)};$.g.gP=function(a,b){return this.Du(a-this.tD(),b)};$.g.translate=function(a,b){this.qv();this.Qd?this.Qd.translate(a,b):this.Qd=(new $.Db).setTransform(1,0,0,1,a,b);this.Mr();return this}; +$.g.setPosition=function(a,b){var c=[a,b,this.Gh(),this.As()];this.Qd&&$.Jb(this.Qd).transform(c,0,c,0,2);return this.translate(c[0]-c[2],c[1]-c[3])};$.g.uka=function(a,b){this.qv();if(this.Qd){var c=this.Qd.Kd,d=this.Qd.Gd;if(a==c&&b==d)return this;$.Fb(this.Qd,a-c,b-d)}else this.Qd=(new $.Db).setTransform(1,0,0,1,a,b);this.Mr();return this};$.g.scale=function(a,b,c,d){this.qv();this.Qd||(this.Qd=new $.Db);$.Eb(this.Qd,a,b);$.Fb(this.Qd,(c||0)*(1-a),(d||0)*(1-b));this.Mr();return this}; +$.g.XO=function(a,b,c){c=Lb(this.sb(),c||"center");return this.scale(a,b,c[0],c[1])};$.g.QF=function(a,b,c,d,e,f){this.qv();this.Qd?$.wb(this.Qd,new $.Db(a,b,c,d,e,f)):this.Qd=new $.Db(a,b,c,d,e,f);this.Mr();return this};$.g.pc=function(a,b,c,d,e,f){this.qv();this.Qd?this.Qd.setTransform(a,b,c,d,e,f):this.Qd=new $.Db(a,b,c,d,e,f);this.Mr();return this};$.g.tD=function(){return $.Cb(this.Qd)}; +$.g.jp=function(){return this.Qd?[this.Qd.od,this.Qd.We,this.Qd.gf,this.Qd.Ke,this.Qd.Kd,this.Qd.Gd]:[1,0,0,1,0,0]};$.g.Ac=function(a){var b=this.Ka(),c;if(c=b)c=kE,c=c==kE||2==c||3==c?0f;n+=m)switch((Math.floor(n/90)+4)%4){case 0:h.push(a+c);break;case 1:k.push(b+d);break;case 2:h.push(a-c);break;case 3:k.push(b-d)}l.left=Math.min.apply(null,h);l.width=Math.max.apply(null,h)-l.left;l.top=Math.min.apply(null,k);l.height=Math.max.apply(null,k)-l.top;$.pb(this.rect,l)};qE=sE; +$.sg.prototype.Jg=function(){var a=0;if(this.Uj())return a;var b=[];this.LT(function(c,d){if(1!=c){var e=$.Ja(b,b.length-2);if(4==c){var f=6;d=$.tb(e[0]-$.db(d[2],d[0]),e[1]-$.eb(d[2],d[1]),d[0],d[1],d[2],d[3])}else 2==c?f=2:3==c&&(f=6);for(var h=0,k=d.length-(f-1);h=q;q++){m=q/100;var u={x:0,y:0};if(0===m)n.push(t[0]);else if(1===m)n.push(t[r]); +else{var v=t,w=1-m;if(1===r)m={x:w*v[0].x+m*v[1].x,y:w*v[0].y+m*v[1].y},n.push(m);else if(4>r){var x=w*w,y=m*m,B=0;if(2===r){v=[v[0],v[1],v[2],u];var F=x;var G=w*m*2;var M=y}else 3===r&&(F=x*w,G=x*m*3,M=w*y*3,B=m*y);m={x:F*v[0].x+G*v[1].x+M*v[2].x+B*v[3].x,y:F*v[0].y+G*v[1].y+M*v[2].y+B*v[3].y};n.push(m)}else{for(v=JSON.parse(JSON.stringify(t));1d.length?d=c=f=e=(0,window.parseFloat)(d[0]):(e=(0,window.parseFloat)(d[0]),f=(0,window.parseFloat)(d[1]),c=(0,window.parseFloat)(d[2]),d=(0,window.parseFloat)(d[3]));this.P[0]=e?e:0;this.K[0]=e?a:void 0;this.P[1]=f?f:0;this.K[1]=f?a:void 0;this.P[2]=c?c:0;this.K[2]=c?a:void 0;this.P[3]=d?d:0;this.K[3]=d?a:void 0};$.g.round=function(a,b,c,d){$.Ca(arguments,0,0,"round");this.GX.apply(this,arguments);Bg(this);return this}; +$.g.eka=function(a,b,c,d){$.Ca(arguments,0,0,"round-inner");this.GX.apply(this,arguments);Bg(this);return this};$.g.bea=function(a,b,c,d){$.Ca(arguments,0,0,"cut");this.GX.apply(this,arguments);Bg(this);return this};$.g.qe=function(a){Cg.u.qe.call(this,a);this.Ho(a.x).Io(a.y).Go(a.width).Fo(a.height);a.cornerTypes&&(this.K=Vb(a.cornerTypes,4),a=Vb(a.cornerSizes,4),(0,$.Pe)(a,function(a,c,d){d[c]=(0,window.parseFloat)(a)}),this.P=a,Bg(this))}; +$.g.D=function(){var a=Cg.u.D.call(this);a.type="rect";a.x=this.b.left;a.y=this.b.top;a.width=this.b.width;a.height=this.b.height;a.cornerTypes=this.K.join(" ");a.cornerSizes=this.P.join(" ");return a};$.g.R=function(){this.b=this.K=this.P=null;this.$d();Cg.u.R.call(this)};var uE=Cg.prototype;$.E("acgraph.vector.Rect",Cg);uE.setX=uE.Ho;uE.setY=uE.Io;uE.setWidth=uE.Go;uE.setHeight=uE.Fo;uE.setBounds=uE.Qf;uE.cut=uE.bea;uE.round=uE.round;uE.roundInner=uE.eka;$.H($.Dg,$.od);$.Dg.prototype.j=function(a){return $.p(a)?(this.f=a,this.i&&(a=this.f,a.yf()?a.Px.push(this):this.Td()),this):this.f};var vE={rect:Cg,circle:$.rg,ellipse:qg,path:$.Ag};$.g=$.Dg.prototype; +$.g.shape=function(a,b,c,d){if(arguments.length){if($.J(a,$.pg))if(this.b){var e=!1;for(h in vE){var f=vE[h];if($.J(this.b,f)&&$.J(a,f)){e=!0;break}}e?this.b.qe(a.D()):(this.b.parent(null),this.b=a,this.b.parent(this))}else this.b=a,this.b.parent(this);else{if($.J(a,$.I)){e=a.left;var h=a.top;f=a.width;var k=a.height}else $.A(a)?(e=null!=a[0]?a[0]:0,h=null!=a[1]?a[1]:0,f=null!=a[2]?a[2]:0,k=null!=a[3]?a[3]:0):$.C(a)?(e=null!=a.left?a.left:0,h=null!=a.top?a.top:0,f=null!=a.width?a.width:0,k=null!= +a.height?a.height:0):(e=null!=a?a:0,h=null!=b?b:0,f=null!=c?c:0,k=null!=d?d:0);this.b?$.J(this.b,Cg)?this.b.Ho(e).Io(h).Go(f).Fo(k):(this.b.parent(null),this.b=$.mk(e,h,f,k),this.b.parent(this)):(this.b=$.mk(e,h,f,k),this.b.parent(this))}return this}return this.b};$.g.yr=function(){return this.i};$.g.id=function(a){return $.p(a)?(this.fe=a,this):this.fe};$.g.Td=function(){this.i=!1;if(this.fe){$.mg();var a=this.shape();if(a.ia())this.shape().Td();else{var b=ck(this.Ka().vn,this);a.Td();a=a.ia();b.appendChild(a)}}}; +$.g.D=function(){return this.b.D()};$.g.qe=function(a){var b=vE[a.type];b&&(b=new b,b.qe(a),this.shape(b))};$.g.hc=function(a){a.remove();a.gl(this);Eg(this);kg(a,!0);return this};$.g.removeChild=function(a){a.gl(null);var b=a.ia();b&&$.Xe(b);Eg(this);kg(a,!1);return a};$.g.Ig=function(){return null};$.g.UI=function(){};$.g.Ka=function(){return this.j()};$.g.Qb=function(){Eg(this)};$.g.ld=function(){$.Dg.u.ld.call(this)}; +$.g.R=function(){this.f&&$.Fa(this.f.Px,this);$.mg().X0(this);this.b.ld();delete this.f;delete this.fe;delete this.elements;delete this.i;delete this.b;$.Dg.u.R.call(this)};var wE=$.Dg.prototype;wE.shape=wE.shape;wE.dispose=wE.ld;$.H($.Fg,$.hg);$.g=$.Fg.prototype;$.g.Sm=function(){return"layer"};$.g.jl=$.hg.prototype.jl|224;$.g.EO=function(){for(var a=0;aa||a>=this.cc()||0>b||b>=this.cc())throw $.ld(8);if(a!=b){var c=this.children[a];this.children[a]=this.children[b];this.children[b]=c;this.Qb(128)}return this};$.g.bN=function(a){return!!a&&$.Aa(this.children,a)};$.g.cc=function(){return this.children.length};$.g.Pj=function(a,b){$.p(b)||(b=this);(0,$.Pe)(this.children,a,b);return this};$.g.Cd=function(){var a=$.ok();a.parent(this);return a};$.g.UP=function(){var a=$.uk();a.parent(this);return a}; +$.g.text=function(a,b,c,d){a=$.sk(a,b);d&&a.style(d);c&&a.text(c);a.parent(this);return a};$.g.hN=function(a,b,c,d){a=$.sk(a,b);d&&a.style(d);c&&a.htmlText(c);a.parent(this);return a};$.g.rect=function(a,b,c,d){a=$.mk(a,b,c,d);a.parent(this);return a};$.g.xk=function(a,b,c,d,e){a=rk(a,b,c,d,e);a.parent(this);return a};$.g.RO=function(a,b){$.Da(arguments,this.path(),0);return zi.apply(this,arguments).parent(this)};$.g.QO=function(a,b){$.Da(arguments,this.path(),0);return Ai.apply(this,arguments).parent(this)}; +$.g.SP=function(a,b){$.Da(arguments,this.path(),0);return yi.apply(this,arguments).parent(this)};$.g.rn=function(a,b,c){a=$.nk(a,b,c);a.parent(this);return a};$.g.ellipse=function(a,b,c,d){a=$.pk(a,b,c,d);a.parent(this);return a};$.g.path=function(){return $.qk().parent(this)};$.g.tP=function(a,b,c,d,e,f,h){return gi(this.path(),a,b,c,d,e,f,h).parent(this)};$.g.vP=function(a,b,c){return hi(this.path(),a,b,c).parent(this)};$.g.wP=function(a,b,c){return ii(this.path(),a,b,c).parent(this)}; +$.g.xP=function(a,b,c){return ji(this.path(),a,b,c).parent(this)};$.g.yP=function(a,b,c){return ki(this.path(),a,b,c).parent(this)};$.g.uP=function(a,b,c){return li(this.path(),a,b,c).parent(this)};$.g.RP=function(a,b,c){return mi(this.path(),a,b,c).parent(this)};$.g.OP=function(a,b,c){return ni(this.path(),a,b,c).parent(this)};$.g.QP=function(a,b,c){return oi(this.path(),a,b,c).parent(this)};$.g.PP=function(a,b,c){return pi(this.path(),a,b,c).parent(this)}; +$.g.PL=function(a,b,c){return qi(this.path(),a,b,c).parent(this)};$.g.xL=function(a,b,c){return ri(this.path(),a,b,c).parent(this)};$.g.OL=function(a,b,c){return si(this.path(),a,b,c).parent(this)};$.g.$M=function(a,b,c){return ti(this.path(),a,b,c).parent(this)};$.g.YP=function(a,b,c){return ui(this.path(),a,b,c).parent(this)};$.g.qg=function(a,b,c,d,e){return vi(this.path(),a,b,c,d,e).parent(this)};$.g.UL=function(a,b,c,d,e,f){return $.wi(this.path(),a,b,c,d,e,f).parent(this)};$.g.Ft=function(){return $.mg().Wo()}; +$.g.jk=function(){this.Vf(32)&&this.Dp();var a=this.Ka();a=a.xF(Math.floor(Math.max(500-a.ks,0)/3));this.Vf(64)&&Hg(this);var b=this.Ka();b.ks-=a;if(this.Vf(128)&&(a=this.Ka().xF(this.children.length+this.ir.length+1),b=Haa(this,a),bd;d++){c=!1;for(var e=0;4>e;e++){c=!c;for(var f=0;4>f;f++)c&&Pg(this,a,a,e*a+d*this.size/2,f*a+this.size/2),c=!c}}},"solid-diamond":function(){Xg(this,[[this.size/2,0,0,this.size/2,this.size/2,this.size,this.size,this.size/2,this.size/2,0]],!0,!0)},"dashed-forward-diagonal":function(){Yg(this,[0,0,this.size/2,this.size/2,this.Ef])},"dashed-backward-diagonal":function(){Yg(this,[this.size/2,0,0,this.size/ +2,this.Ef])},"dashed-horizontal":function(){Yg(this,[0,0,this.size/2,0,this.Ef,this.size/2,this.size/2,this.size,this.size/2,this.Ef])},"dashed-vertical":function(){Yg(this,[0,0,0,this.size/2,this.Ef,this.size/2,this.size/2,this.size/2,this.size,this.Ef])},divot:function(){var a=.1*this.size,c=this.size*(.8-.2)/2;Xg(this,[[a+c,a,a,a+c/2,a+c,a+c],[this.size-a-c,this.size-a-c,this.size-a,this.size-a-c/2,this.size-a-c,this.size-a]])},"zig-zag":function(){Xg(this,[[0,0,this.size/2,this.size/2,this.size, +0],[0,this.size/2,this.size/2,this.size,this.size,this.size/2]])},weave:function(){Xg(this,[[0,0,this.size/2,this.size/2,this.size,0],[0,this.size/2,this.size/2,this.size,this.size,this.size/2],[this.size/2,this.size/2,3*this.size/4,3*this.size/4],[this.size,this.size/2,3*this.size/4,this.size/4]])}};a["percent-05"]=$.qa(Og,8,8,[0,0,4,4]);a["percent-10"]=$.qa(Og,8,4,[0,0,4,2]);a["percent-20"]=$.qa(Og,4,4,[0,0,2,2]);a["percent-25"]=$.qa(Og,4,2,[0,0,2,1]);a["percent-30"]=$.qa(Og,4,4,[0,0,2,0,3,1,0, +2,2,2,1,3]);a["percent-40"]=$.qa(Og,4,8,[0,0,2,0,3,1,0,2,2,2,1,3,3,3,0,4,2,4,1,5,3,5,0,6,2,6,1,7,3,7]);a["percent-50"]=$.qa(Og,2,2,[0,0,1,1]);a["percent-60"]=$.qa(Og,4,4,[0,0,2,0,0,1,1,1,3,1,0,2,2,2,1,3,2,3,3,3]);a["percent-70"]=$.qa(Og,4,4,[0,0,2,0,3,0,0,1,1,1,2,1,0,2,2,2,3,2,0,3,1,3,2,3]);a["percent-75"]=$.qa(Vg,4,4,[0,0,2,2]);a["percent-80"]=$.qa(Vg,8,4,[0,0,4,2]);a["percent-90"]=$.qa(Vg,8,8,[7,7,4,3]);return a}();Kg.prototype.Sm=function(){return"hatch-fill"}; +Kg.prototype.R=function(){if(this.Ka()){var a=this.Ka().vn,b=[this.type,this.color,this.Ef,this.size].join();$.Gc(a.i,b)&&$.Lc(a.i,b);a=$.ze(window.document,this.id());$.Xe(a)}Kg.u.R.call(this)};var zE=Kg.prototype;zE.dispose=zE.ld;$.H(bh,$.hg);$.ah="meet";$.$g="none";$.g=bh.prototype;$.g.jl=$.hg.prototype.jl|32;$.g.Sm=function(){return"image"};$.g.jD=function(a){return null!=a?(a!=this.f&&(this.f=a,this.Qb(32)),this):this.f};$.g.align=function(a){return null!=a?(a!=this.b&&(this.b=a,this.Qb(32)),this):this.b};$.g.x=function(a){return null!=a?(a!=this.Bb.left&&(this.Bb.left=a,this.Qb(32),this.$d()),this):this.Bb.left};$.g.y=function(a){return null!=a?(a!=this.Bb.top&&(this.Bb.top=a,this.Qb(32),this.$d()),this):this.Bb.top}; +$.g.width=function(a){return null!=a?(a!=this.Bb.width&&(this.Bb.width=a,this.Qb(32),this.$d()),this):this.Bb.width};$.g.height=function(a){return null!=a?(a!=this.Bb.height&&(this.Bb.height=a,this.Qb(32),this.$d()),this):this.Bb.height};$.g.src=function(a){return $.p(a)?(a!=this.j&&(this.j=a,this.Qb(32)),this):this.j};$.g.opacity=function(a){return $.p(a)?(a!=this.i&&(this.i=a,this.Qb(32)),this):this.i};$.g.ck=function(){return this.Bb.clone()};$.g.Ft=function(){return $.mg().H0()}; +$.g.jk=function(){this.Vf(32)&&($.mg().OI()&&this.Qb(4),this.Dp());bh.u.jk.call(this)};$.g.Uw=function(){$.mg().L5(this);$.jg(this,4);$.jg(this,256)};$.g.Dp=function(){$.mg().K5(this);$.jg(this,32)};$.g.qe=function(a){var b=a.bounds;this.x(b.left).y(b.top).width(b.width).height(b.height).src(a.src).align(a.align).jD(a.fittingMode);bh.u.qe.call(this,a)};$.g.D=function(){var a=bh.u.D.call(this);a.type="image";a.bounds=this.ck();a.src=this.src();a.align=this.align();a.fittingMode=this.jD();return a}; +$.g.R=function(){this.Bb=null;this.$d();bh.u.R.call(this)};$.E("acgraph.vector.Image",bh);var AE=bh.prototype;AE.fittingMode=AE.jD;AE.align=AE.align;AE.x=AE.x;AE.y=AE.y;AE.width=AE.width;AE.height=AE.height;AE.src=AE.src;$.H(ch,$.qf);var eh=[$.hd&&!$.bd("11")?"readystatechange":"load","abort","error"];ch.prototype.start=function(){var a=this.f;(0,$.Pe)($.Fc(a),function(b){var c=a[b];if(c&&(delete a[b],!this.md)){var d;this.Y?d=$.ye(this.Y).Ac("IMG"):d=new window.Image;c.A0&&(d.crossOrigin=c.A0);this.qo.wa(d,eh,this.i);this.b[b]=d;d.id=b;d.src=c.src}},this)}; +ch.prototype.i=function(a){var b=a.currentTarget;if(b){if("readystatechange"==a.type)if("complete"==b.readyState)a.type="load";else return;"undefined"==typeof b.naturalWidth&&("load"==a.type?(b.naturalWidth=b.width,b.naturalHeight=b.height):(b.naturalWidth=0,b.naturalHeight=0));this.dispatchEvent({type:a.type,target:b});this.md||fh(this,b.id)}};ch.prototype.R=function(){delete this.f;delete this.b;$.qd(this.qo);ch.u.R.call(this)};$.ja($.gh);$.g=$.gh.prototype;$.g.H5=$.ia;$.g.PX=$.ia;$.g.HX=$.ia;$.g.getAttribute=function(a,b){return a?a.getAttribute(b):void 0};$.g.lc=function(a,b,c){a.setAttribute(b,c)};$.g.U4=function(a,b){var c=b[3];a.push(b[0],b[1],0,180this.Xa&&!this.mc;){var f=Th(this,a,b,e+this.P,this.Xa,d);1>f&&0==this.f.length&&(f=1);0!=f&&(e=$.nc(a.substring(0,f)),d=this.Vm(e,b),Uh(this,e,b,d));this.oM();1==a.length&&(this.mc=!0);e=0;a=$.nc(a.substring(f,a.length));d=this.Vm(a,b)}this.mc||!a.length&&!c||Uh(this,a,b,d)}}; +$.g.oM=function(){if(!this.mc&&0!=this.f.length){var a=0==this.ea.length;if(this.Jf&&this.F+this.Ba>this.Jf&&0!=this.ea.length)Vh(this),this.mc=!0;else{this.Ba=$.z(this.rb)?(0,window.parseInt)(this.rb,0)+this.Ba:this.rb*this.Ba;if($.mg().j4()){var b;var c=this.K&&this.yc.hAlign==$.Ph||!this.K&&"end"==this.yc.hAlign||"right"==this.yc.hAlign;var d="center"==this.yc.hAlign;if(this.K&&"end"==this.yc.hAlign||!this.K&&this.yc.hAlign==$.Ph||"left"==this.yc.hAlign){d=this.K?0:this.j&&a?this.j:0;var e=0;for(b= +this.f.length;ethis.Xa&&(1a&&!(0,window.isNaN)(this.JC)&&(0,window.clearTimeout)(this.JC),this.RN=a,this.Dt(!0)),this):this.RN};$.g.O=function(a){return $.p(a)?(a=$.ze(window.document,a||null),this.Jc!=a&&(this.Jc=a,Xj(this),this.Dt(!0),this.Td()),this):this.Jc?this.pp:null};$.g.Afa=function(){return this.Jc};$.g.Tl=function(){return this.pp};$.g.suspend=function(){this.JJ++;return this}; +$.g.resume=function(a){this.JJ=a?0:Math.max(this.JJ-1,0);this.Td();return this};$.g.uda=function(a){return $.p(a)?(this.NR=!!a,this):this.NR};$.g.yf=function(){return!!this.JJ};$.g.wN=function(){return this.rw};$.g.title=function(a){return $.p(a)?(this.nx!=a&&(this.nx=a,$.mg().PX(this,this.nx)),this):this.nx};$.g.ZS=function(a){return $.p(a)?(this.Av!=a&&(this.Av=a,$.mg().HX(this,this.Av)),this):this.Av};$.g.visible=function(a){if(0==arguments.length)return this.Oa.visible();this.Oa.visible(a);return this}; +$.g.data=function(a){if(0==arguments.length)return this.D();var b=a.type;if(b)switch(b){case "rect":var c=this.rect();break;case "circle":c=this.rn();break;case "ellipse":c=this.ellipse();break;case "image":c=this.xk();break;case "text":c=this.text();break;case "path":c=this.path();break;case "layer":c=this.Cd();break;default:c=null}else this.qe(a);c&&c.qe(a);return this};$.g.remove=function(){return this.O(null)};$.g.Gh=function(){return 0};$.g.As=function(){return 0}; +$.g.sb=function(){return new $.I(0,0,this.width(),this.height())};$.g.clip=function(a){return this.Oa.clip(a)};$.g.AM=function(){return this.q0}; +$.g.fullScreen=function(a){var b=this.Tl();if($.p(a))return b&&this.Jy()&&(a=!!a,this.fullScreen()!=a&&(a?b.mozRequestFullScreenWithKeys?b.mozRequestFullScreenWithKeys():b.webkitRequestFullscreen?b.webkitRequestFullscreen():b.webkitRequestFullscreen?b.webkitRequestFullscreen():b.mozRequestFullScreen?b.mozRequestFullScreen():b.msRequestFullscreen?b.msRequestFullscreen():b.requestFullscreen&&b.requestFullscreen():(b=$.ye().b,b.webkitCancelFullScreen?b.webkitCancelFullScreen():b.mozCancelFullScreen? +b.mozCancelFullScreen():b.msExitFullscreen?b.msExitFullscreen():b.exitFullscreen&&b.exitFullscreen()))),this;if(!(a=!b)){a:{a=$.ye().b;a=[a.webkitFullscreenElement,a.mozFullScreenElement,a.msFullscreenElement,a.fullscreenElement];for(var c=0;ca++;){if(this.md)return;this.sp.Sw();b=Xm(this)}b&&this.sp.Sw();this.md||(b?(this.sp.Ld(this.ah),this.dX=(0,window.setTimeout)(this.DO,0)):this.sp.zK())};$.g.R4=function(a,b){this.sp.cX(a,b)};$.g.Nja=$.ia;$.g.R=function(){(0,window.clearTimeout)(this.dX);this.f=this.i=this.sp=null;$.Sm.u.R.call(this)};var dF=$.Sm.prototype;$.E("anychart.data.csv.parser",$.Ym);dF.parse=dF.pC;dF.rowsSeparator=dF.lJ; +dF.columnsSeparator=dF.gG;dF.ignoreTrailingSpaces=dF.NH;dF.ignoreFirstRow=dF.LH;$.I.prototype.D=function(){return{left:this.left,top:this.top,width:this.width,height:this.height}};$.vn.prototype.add=function(a){return new $.vn(this.x+a.x,this.y+a.y)};$.vn.prototype.min=function(a){return new $.vn(Math.min(this.x,a.x),Math.min(this.y,a.y))};$.vn.prototype.max=function(a){return new $.vn(Math.max(this.x,a.x),Math.max(this.y,a.y))};yn.prototype.tJ=function(){for(var a=this.b.length-1;0<=a;a--)if(1E-6>=Math.abs(this.b[a]))this.b.pop();else break};$.E("anychart.math.rect",$.rn);var eF={wQ:["BC","AD"],cZ:["Before Christ","Anno Domini"],gZ:"JFMAMJJASOND".split(""),vZ:"JFMAMJJASOND".split(""),BQ:"January February March April May June July August September October November December".split(" "),MQ:"January February March April May June July August September October November December".split(" "),IQ:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),NQ:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),RQ:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), +yZ:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),KQ:"Sun Mon Tue Wed Thu Fri Sat".split(" "),xZ:"Sun Mon Tue Wed Thu Fri Sat".split(" "),e9:"SMTWTFS".split(""),wZ:"SMTWTFS".split(""),JQ:["Q1","Q2","Q3","Q4"],EQ:["1st quarter","2nd quarter","3rd quarter","4th quarter"],oQ:["AM","PM"],mF:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],rF:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],sQ:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],fK:6,u$:[5,6],gK:5},ao=eF; +ao=eF;var Oba=/^(-)?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)?(T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+(?:\.\d+)?)S)?)?$/;$.Nn.prototype.clone=function(){return new $.Nn(this.ai,this.pg,this.xg,this.Th,this.Bj,this.wh)};var Fn="y",Gn="m",Jn="d",Kn="h",Ln="n",Mn="s";$.Nn.prototype.b=function(a){return new $.Nn(this.ai*a,this.pg*a,this.xg*a,this.Th*a,this.Bj*a,this.wh*a)};$.Nn.prototype.add=function(a){this.ai+=a.ai;this.pg+=a.pg;this.xg+=a.xg;this.Th+=a.Th;this.Bj+=a.Bj;this.wh+=a.wh};$.g=$.Tn.prototype;$.g.hD=ao.fK; +$.g.iD=ao.gK;$.g.clone=function(){var a=new $.Tn(this.b);a.hD=this.hD;a.iD=this.iD;return a};$.g.getFullYear=function(){return this.b.getFullYear()};$.g.getMonth=function(){return this.b.getMonth()};$.g.getDate=function(){return this.b.getDate()};$.g.getTime=function(){return this.b.getTime()};$.g.getDay=function(){return this.b.getDay()};$.g.getUTCFullYear=function(){return this.b.getUTCFullYear()};$.g.getUTCMonth=function(){return this.b.getUTCMonth()};$.g.getUTCDate=function(){return this.b.getUTCDate()}; +$.g.TM=function(){return this.b.getDay()};$.g.getUTCHours=function(){return this.b.getUTCHours()};$.g.getUTCMinutes=function(){return this.b.getUTCMinutes()};$.g.getTimezoneOffset=function(){return this.b.getTimezoneOffset()};$.g.set=function(a){this.b=new Date(a.getFullYear(),a.getMonth(),a.getDate())};$.g.setFullYear=function(a){this.b.setFullYear(a)};$.g.setMonth=function(a){this.b.setMonth(a)};$.g.setDate=function(a){this.b.setDate(a)};$.g.setTime=function(a){this.b.setTime(a)};$.g.zU=function(a){this.b.setUTCFullYear(a)}; +$.g.Qfa=function(a){this.b.setUTCMonth(a)};$.g.Pfa=function(a){this.b.setUTCDate(a)}; +$.g.add=function(a){if(a.ai||a.pg){var b=this.getMonth()+a.pg+12*a.ai,c=this.getFullYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);var d=Math.min(Dn(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.xg&&(b=new Date(this.getFullYear(),this.getMonth(),this.getDate(),12),a=new Date(b.getTime()+864E5*a.xg),this.setDate(1),this.setFullYear(a.getFullYear()),this.setMonth(a.getMonth()),this.setDate(a.getDate()),Rn(this,a.getDate()))}; +$.g.UM=function(a){return[this.getFullYear(),$.uc(this.getMonth()+1,2),$.uc(this.getDate(),2)].join(a?"-":"")};$.g.NJ=ba(6);$.g.toString=function(){return this.UM()};$.g.valueOf=function(){return this.b.valueOf()};$.H($.Un,$.Tn);$.g=$.Un.prototype;$.g.getHours=function(){return this.b.getHours()};$.g.getMinutes=function(){return this.b.getMinutes()};$.g.getSeconds=function(){return this.b.getSeconds()};$.g.getMilliseconds=function(){return this.b.getMilliseconds()};$.g.TM=function(){return this.b.getUTCDay()}; +$.g.getUTCHours=function(){return this.b.getUTCHours()};$.g.getUTCMinutes=function(){return this.b.getUTCMinutes()};$.g.yU=function(){return this.b.getUTCSeconds()};$.g.Nfa=function(){return this.b.getUTCMilliseconds()};$.g.setHours=function(a){this.b.setHours(a)};$.g.setMinutes=function(a){this.b.setMinutes(a)};$.g.setSeconds=function(a){this.b.setSeconds(a)};$.g.setMilliseconds=function(a){this.b.setMilliseconds(a)};$.g.q2=function(a){this.b.setUTCHours(a)};$.g.r2=function(a){this.b.setUTCMinutes(a)}; +$.g.s2=function(a){this.b.setUTCSeconds(a)};$.g.Ofa=function(a){this.b.setUTCMilliseconds(a)};$.g.add=function(a){$.Tn.prototype.add.call(this,a);a.Th&&this.q2(this.b.getUTCHours()+a.Th);a.Bj&&this.r2(this.b.getUTCMinutes()+a.Bj);a.wh&&this.s2(this.b.getUTCSeconds()+a.wh)}; +$.g.UM=function(a){var b=$.Tn.prototype.UM.call(this,a);return a?b+" "+$.uc(this.getHours(),2)+":"+$.uc(this.getMinutes(),2)+":"+$.uc(this.getSeconds(),2):b+"T"+$.uc(this.getHours(),2)+$.uc(this.getMinutes(),2)+$.uc(this.getSeconds(),2)};$.g.NJ=ba(5);$.g.toString=function(){return this.UM()};$.g.clone=function(){var a=new $.Un(this.b);a.hD=this.hD;a.iD=this.iD;return a};$.H($.Vn,$.Un);$.g=$.Vn.prototype;$.g.clone=function(){var a=new $.Vn(this.b);a.hD=this.hD;a.iD=this.iD;return a};$.g.add=function(a){(a.ai||a.pg)&&$.Tn.prototype.add.call(this,new $.Nn(a.ai,a.pg));this.b=new Date(this.b.getTime()+1E3*(a.wh+60*(a.Bj+60*(a.Th+24*a.xg))))};$.g.getTimezoneOffset=function(){return 0};$.g.getFullYear=$.Un.prototype.getUTCFullYear;$.g.getMonth=$.Un.prototype.getUTCMonth;$.g.getDate=$.Un.prototype.getUTCDate;$.g.getHours=$.Un.prototype.getUTCHours;$.g.getMinutes=$.Un.prototype.getUTCMinutes; +$.g.getSeconds=$.Un.prototype.yU;$.g.getMilliseconds=$.Un.prototype.Nfa;$.g.getDay=$.Un.prototype.TM;$.g.setFullYear=$.Un.prototype.zU;$.g.setMonth=$.Un.prototype.Qfa;$.g.setDate=$.Un.prototype.Pfa;$.g.setHours=$.Un.prototype.q2;$.g.setMinutes=$.Un.prototype.r2;$.g.setSeconds=$.Un.prototype.s2;$.g.setMilliseconds=$.Un.prototype.Ofa;var sp=$.hd&&Pba();Xn.prototype.rD=function(a){return this.F-$n(this,a)};var go=[/^'(?:[^']|'')*('|$)/,/^(?:G+|y+|Y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyYMkSEahKHcLQdmsvVwzZ]+/]; +$.eo.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-b.rD(a)):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+6E4*(d.getTimezoneOffset()-a.getTimezoneOffset())),e=new Date(a.getTime()+(c+(0b.charCode&&Pp(d)?b.charCode:0):$.yd&&!$.xd?(d=this.SA,e=Pp(d)?b.keyCode:0):(d=b.keyCode||this.SA,e=b.charCode||0,jF&&"keypress"==a.type&&(c=this.$Q),$.Ad&&63==e&&224==d&&(d=191));var f=d=Qp(d);d?63232<=d&&d in gF?f=gF[d]:25==d&&a.shiftKey&&(f=9):b.keyIdentifier&&b.keyIdentifier in hF&&(f=hF[b.keyIdentifier]); +$.gd&&iF&&"keypress"==a.type&&!Sp(f,this.qq,a.shiftKey,a.ctrlKey,c,a.metaKey)||(a=f==this.qq,this.qq=f,b=new Up(f,e,a,b),b.altKey=c,this.dispatchEvent(b))};$.g.Za=function(){return this.Fd};$.g.VM=function(a,b){this.IN&&this.vH();this.Fd=a;this.HN=$.Ld(this.Fd,"keypress",this,b);this.JV=$.Ld(this.Fd,"keydown",this.Rfa,b,this);this.IN=$.Ld(this.Fd,"keyup",this.uga,b,this)};$.g.vH=function(){this.HN&&(Zd(this.HN),Zd(this.JV),Zd(this.IN),this.IN=this.JV=this.HN=null);this.Fd=null;this.SA=this.qq=-1}; +$.g.R=function(){$.Tp.u.R.call(this);this.vH()};$.H(Up,$.Bd);var Xp,mq,zl,$p,jq,lq,nq,pq,sq,tq,yq;$.kF=$.fa.acgraph;Xp=!1;mq={}; +zl={chart:"area vertical-area area-3d bar bar-3d box bubble bullet calendar candlestick cartesian cartesian-3d circle-packing column column-3d financial funnel line line-3d vertical-line marker pie pie-3d polar ohlc pyramid radar scatter step-line sparkline heat-map tree-map pert resource jump-line stick pareto quadrant mekko mosaic barmekko tag-cloud timeline venn hilo waterfall sunburst sankey surface wordtree graph".split(" "),stock:["stock"],map:"map choropleth bubble marker connector seat-map".split(" "), +gantt:["gantt-resource","gantt-project"]};$.Yj.prototype.zx=!1;$.Yj.prototype.Xp=function(a){this.Nm||(this.Nm=new ql(this,this.zx),this.Nm.N($.Gm("stageCredits")));return $.p(a)?(this.Nm.N(a),this):this.Nm};$.Zp=0;$p=[];$.cq={};$.dq={};$.fq={};$.eq={};jq=!1;lq=null;nq=[];pq=[];sq=[];tq=[];$.Cl=new Bl;yq={}; +(function(){for(var a=["ms","moz","webkit","o"],b=0,c;c=a[b]&&!$.fa.requestAnimationFrame;++b)$.fa.requestAnimationFrame=$.fa[c+"RequestAnimationFrame"],$.fa.cancelAnimationFrame=$.fa[c+"CancelAnimationFrame"]||$.fa[c+"CancelRequestAnimationFrame"];if(!$.fa.requestAnimationFrame){var d=0;$.fa.requestAnimationFrame=function(a){var b=(new Date).getTime(),c=Math.max(0,16-(b-d));d=b+c;return $.fa.setTimeout(function(){a(b+c)},c)};$.fa.cancelAnimationFrame||($.fa.cancelAnimationFrame=function(a){(0,window.clearTimeout)(a)})}})(); +$.E("anychart.graphics",$.kF);$.E("anychart.fromJson",$.gq);$.E("anychart.fromXml",function(a){return $.gq($.up(a))});$.E("anychart.onDocumentLoad",function(a,b){KE||(KE=[]);KE.push([a,b]);$.Ld($.ll,"load",function(){for(var a=0,b=KE.length;a=this.Hb()))return this.view.Ul(this.i).dk(this.f,this.i,a)};$.g.lr=function(a){return this.get(a)};$.g.ma=function(){return this.i};$.g.Gh=function(){return this.get("x")}; +$.g.Hb=function(){return this.view.Hb()};$.g.o=function(a,b){return 1b){var e=a;a=b;b=e}e=this.$();var f=[];for(e.reset();e.advance();){var h=e.ma();var k=c?h:e.get("x");k>=a&&k<=b&&f.push(h)}return this.ZF[d]=f};$.g.get=function(a,b){if(!(a>=this.Hb()))return this.Ul(a).dk(this.Af(a),a,b)};$.g.set=function(a,b,c){var d=this.Af(a);$.p(d)&&this.Af(a,fca(this.Ul(a),d,b,c));return this};$.g.$=function(){$.Nr(this);return new $.Lr(this)}; +$.g.FC=function(){return null};$.g.XI=function(a){this.ZF=this.Ct=null;$.X(a,16)&&this.B(1,16)};$.g.o=function(a,b,c){if(this.xY)return this.tO.apply(this,arguments);this.aE||(this.aE=[]);var d=this.aE[a];d||(this.aE[a]=d={});return 2a:!(!this.At||!this.At[a.split(".")[0]])}; +$.g.wO=function(a,b){function c(c){c in a||(a[c]=b++)}var d;for(d=0;d=d)return[];a=new $.Wr(a);c=[];if(1==b)for(b=0;b=c&&0=h&&0=d&&0= +c[l].offset&&(d=c[l]),h<=c[l].offset&&null==f&&(f=c[l]);d||(d=c[0]);f||(f=c[c.length-1]);f.offset==d.offset?this.f[k]={color:d.color}:(h=1-(h-d.offset)/(f.offset-d.offset),this.f[k]={color:$.Tb($.Ol($.Ll(d.color),$.Ll(f.color),h))})}}}this.I(16)}c=$.A(this.Xe)?this.Xe:this.Xe.keys;if(1>c.length)return null;c=this.b||this.i||c.length;if(!c)return null;if($.p(b))return this.f[a]=b,this.va(2),this;a>c-1&&(a=c-1);0>a&&(a=0);return(c=this.f[a])?c:null}; +$.g.Fp=function(a){this.b=window.NaN;this.Xe="#1D8BD1 #F1683C #2AD62A #DBDC25 #8FBC8B #D2B48C #FAF0E6 #20B2AA #B0C4DE #DDA0DD #9C9AFF #9C3063 #FFFFCE #CEFFFF #630063 #FF8284 #0065CE #CECFFF #000084 #FF00FF #FFFF00 #00FFFF #840084 #840000 #008284 #0000FF #00CFFF #CEFFFF #CEFFCE #FFFF9C #9CCFFF #FF9ACE #CE9AFF #FFCF9C #3165FF #31CFCE #9CCF00 #FFCF00 #FF9A00 #FF6500".split(" ");this.B(16);a&&this.va(2)}; +$.g.D=function(){var a=$.Ws.u.D.call(this);a.type="range";for(var b=[],c=0;ca?4:Math.ceil(+a),this.jv=this.pm=null,this.va(2)),this):this.qn}; +$.g.set=function(a){if(this.pm!=a){this.qn=window.NaN;this.Op=null;this.pm=(0,$.Wa)(a,function(a){return $.zs(a)});$.Pa(this.pm);for(var b=this.pm[0],c=1,d=1;da||1this.scale.an()&&($.kl(20,null,[d-c,Gp(f)]),f=null,this.qn=4);f||(f=ft(this,a,b,!0));a=new $.Vn(new Date(c));d=new $.Vn(new Date(d));for(b=0;0>=a.getTime()-d.getTime()&&bthis.scale.an()&&($.kl(20,null,[b-a,Gp(h)]),h=null,this.qn=4);h||(h=ft(this,a,b,!1));var l=$.Zo(a,h,0),m=new $.Vn(new Date(l));c?e[0]=l:l=m.getTime()-a.getTime()&&bthis.cA&&(this.cA=c,this.Kc=!1))}return this}; +$.g.IC=function(a){var b=this.yia!=this.dA||this.xia!=this.cA;b&&(this.Kc=!1,a||this.va(2));return b};$.g.Of=function(){return this.Pn||this.Nn};$.g.transform=function(a){this.pb();return Number(this.Oq.transform(a))};$.g.pb=function(){this.Kc||(this.Kc=!0,this.aT(),this.sJ(),this.dx())};$.g.sJ=function(){};$.g.dx=function(){this.Oq||(this.Oq=new Zs);var a=this.cK*this.$B;a=[-a,this.$B-a];this.PD&&a.reverse();this.Oq.xe(a)}; +$.g.aT=function(){var a=!this.Pn;var b=!this.Nn,c="percent"==this.jn();a&&this.Xc(this.min);b&&this.Xc(this.max);this.AX||(this.dA=0,this.cA=c?100:1);var d=a?this.min:this.dA,e=b?this.max:this.cA;!a&&d>=this.jt&&(d=this.jt,a=!0);!b&&e<=this.Lq&&(e=this.Lq,b=!0);if($.cn(d,e,1E-6)){if(d==e)var f=.5;else f=d.toExponential().split("e")[1],f=+("1e-"+Math.max(Math.abs(f)+1,5));b?d-=2*f:a?e+=2*f:(d-=f,e+=f)}c&&(a=b=!0);a=this.Nz(d,e,!a,!b,this.GJ,!0);this.min=a.min;this.max=a.max;this.Kx=a.Kx||0}; +$.g.Nz=function(a,b,c,d,e,f){var h=b-a,k=h*this.HI;h*=this.BI;return{max:d?wt(b,h,e,f,1):b,min:c?wt(a,k,e,f,-1):a}};$.g.Mc=function(a){this.pb();return this.Oq.Mc(a)}; +$.g.D=function(){var a=$.vt.u.D.call(this);a.maximum=this.Nn?null:this.max;a.minimum=this.Pn?null:this.min;a.minimumGap=this.Qs();a.maximumGap=this.Os();a.softMinimum=(0,window.isNaN)(this.jt)?null:this.jt;a.softMaximum=(0,window.isNaN)(this.Lq)?null:this.Lq;a.softMaximum=(0,window.isNaN)(this.Lq)?null:this.Lq;a.alignMinimum=this.BF;a.alignMaximum=this.AF;a.maxTicksCount=this.dl;return a}; +$.g.U=function(a,b){$.vt.u.U.call(this,a,b);this.Qs(a.minimumGap);this.Os(a.maximumGap);this.KB(a.softMinimum);this.JB(a.softMaximum);this.uh(a.minimum);this.di(a.maximum);this.XQ(a.alignMinimum);this.WQ(a.alignMaximum);this.an(a.maxTicksCount)};var zF=$.vt.prototype;zF.maxTicksCount=zF.an;zF.minimum=zF.uh;zF.maximum=zF.di;zF.extendDataRange=zF.Xc;$.H($.xt,$.vt);$.g=$.xt.prototype;$.g.Ak=function(a){return!$.zs(a)};$.g.Ma=function(){return"date-time"};$.g.Ya=function(a){this.xh||(this.xh=new et(this),$.W(this,"ticks",this.xh),$.K(this.xh,this.li,this));return $.p(a)?(this.xh.N(a),this):this.xh};$.g.yb=function(a){this.Di||(this.Di=new et(this),$.W(this,"minorTicks",this.Di),$.K(this.Di,this.li,this));return $.p(a)?(this.Di.N(a),this):this.Di};$.g.Xc=function(a){for(var b=0;bc;c++){b:{var d=a[c];if("object"===$.ka(d)&&"from"in d&&"to"in d){var e=+d.from;d=+d.to;if(ee&&0=d){e={from:e,to:d};break b}}e=null}b.push(e)}a=b.length?b:null}else a=null;this.b=a;this.F={};this.j={};if(this.b)for(a=0;af){e={day:e,month:f};"year"in d&&(f=+d.year,(0,window.isNaN)(f)||(e.year=f));"label"in d&&(e.label=String(d.label));d=e;break b}}d=null}d&&b.push(d)}a=b.length?b:null}else a=null;this.f=a;this.i={SY:{},JS:{}};this.F={};if(this.f)for(a=0;a=Math.abs(f-c)&&(c=(this.$e+this.Ze)/2,f=c-3E4,c+=3E4);this.Jr(f,c)}return this}; +$.g.Wr=function(a,b){var c=a||1.25,d=$.p(b)?b:.5;$.Ot(this);if(!$.It(this)||!$.Jt(this)){var e=this.$e-Math.round((this.Ze-this.$e)*(c-1)*d);c=this.Ze+Math.round((this.Ze-this.$e)*(c-1)*(1-d));this.uj();if($.Nt(this)){d=this.Xq.ob().width;if(this.bm.isPixels){var f=$.Ft(this.bm.value,d);this.Gj=this.Ph-Math.round((f/d||0)*(c-e))}this.am.isPixels&&(f=$.Ft(this.am.value,d),this.Fj=this.Oh+Math.round((f/d||0)*(c-e)))}if(ethis.Fj){if(ethis.Fj)return this.Qm(),this;ethis.Fj&&this.Jr(e-(c-this.Fj),this.Fj)}else this.Jr(e,c)}return this}; +$.g.kj=function(a,b,c){if($.Nt(this)&&$.ea(a)&&$.ea(b)){c=this.bm.isPixels;var d=this.am.isPixels;c&&d?Gt(this):c?Ht(this,!0):d&&Ht(this,!1);d=this.Oh-this.Ph;c=b-a;if(c>=this.Fj-this.Gj)this.$e=this.Gj,this.Ze=this.Fj;else{this.$e=Math.min(a,b);this.Ze=Math.max(a,b);var e=$.Kt(this,d,this.bm),f=$.Kt(this,d,this.am);e=(0,window.isNaN)(this.$m)?(0,window.isNaN)(this.Ko)?this.Ph-e:Math.min(this.Ko,this.Ph):this.$m;f=(0,window.isNaN)(this.Zm)?(0,window.isNaN)(this.Jo)?this.Oh+f:Math.max(this.Jo,this.Oh): +this.Zm;af&&(this.Ze=f,this.$e=this.Ze-c)}this.Gj=e;this.Fj=f;this.Kc=!0;this.Uj()&&(this.QI=!0,this.MI=[a,b]);this.va(4);a=this}else a:{this.pb();if($.z(a)){if(0===b){a=this;break a}f=$.zk(Cda,c,$.p(void 0)?void 0:"first-visible-date");e=$.bp($.Zk(a,"day"),b||1);switch(f){case "first-date":d=this.Ph;break;case "last-date":d=this.Oh;e=e.b(-1);break;case "last-visible-date":d=this.Ze;e=e.b(-1);break;case "first-visible-date":d=this.$e}d=new $.Vn($.zs(d));f=$.Xk(d); +d.add(e);d=$.Xk(d);e=Math.min(f,d);d=Math.max(f,d);f=d-e}else e=a,d=b,$.p(b)?f=b-a:(f=this.Ze-this.$e,d=a+f);var h=this.uj();f=Math.min(h.max-h.min,f);d>h.max&&(d=h.max,e=d-f);ethis.Ze){var c=this.$e-this.Ze;this.$e=Math.max(this.Ze,b);this.Ze=Math.min(this.$e+c,a)}}}; +$.g.Fn=function(a,b,c,d,e){b=e||this.sj();a=this.sj();e=a.min;var f=a.max;a=new $.Vn(new Date(e));e=f-e;do{f=$.bp(c,d);var h=a.clone();a.add(f);f=Math.ceil(e/(a.getTime()-h.getTime()));if(f>this.dl)switch(c){case "millisecond":c="second";d=1;break;case "second":59>d?d++:(d=1,c="minute");break;case "minute":59>d?d++:(d=1,c="hour");break;case "hour":23>d?d++:(d=1,c="day");break;case "day":29>d?d++:(d=1,c="month");break;case "month":11>d?d++:(d=1,c="year");break;default:d++}}while(f>this.dl);if(a="week"=== +c&&(this.eQ||this.gF)){e=b.min;f=d;var k=this.Qv,l=this.gF,m=new Date(e),n=1!==k;h=m.getMonth();var q=m=m.getFullYear();l?k=h:n?(--k,0<=h&&hf){h=d.b(-1);var r= +new $.Vn(new Date(c));do r.add(h),c=r.getTime();while(c>f)}}else r=new $.Vn(new Date(f));c=r.getTime();for(f=d;c=a?(this.lh=4,this.qm=6,this.Jl=window.NaN):(this.qm=this.lh=window.NaN,this.Jl=+a),this.Hl=this.Il=null,this.va(2)),this):this.Jl}; +$.g.count=function(a,b){return $.p(a)?(this.lh!=a&&(this.Jl=window.NaN,this.lh=Math.ceil($.N(a)),this.qm=Math.ceil($.N(b)),2<=this.lh||(this.lh=4),this.qm>=this.lh||(this.qm=this.lh),this.Hl=this.Il=null,this.va(2)),this):[this.lh,this.qm]};$.g.eF=ba(9);$.g.WF=function(a){return $.p(a)?(a=+a||0,this.Vc!=a&&(this.Vc=a,this.Hl=null,this.Il||this.va(2)),this):this.Vc}; +$.g.set=function(a){$.Ta(this.Il,a)||(this.Jl=this.qm=this.lh=window.NaN,this.Il=$.Ja(a,0),$.Ka(this.Il),$.Pa(this.Il,$.wo),this.Hl=null,this.va(2));return this};$.g.get=function(){var a=this.dk();return(0,$.Ye)(a,function(a){a=this.transform(a);return 0<=a&&1>=a},this.pa)};$.g.dk=function(){if(this.Il)var a=this.Il;else this.pa.pb(),a=this.Hl;return a||[]}; +$.g.mode=function(a){return $.p(a)?(a=String(a).toLowerCase(),a="log"==a||"logarithmic"==a?"logarithmic":"linear",this.Em!=a&&(this.Hl=null,this.Em=a,this.Il||this.va(2)),this):this.Em};$.g.DB=function(a,b,c,d,e,f){this.Il?(this.Hl=null,e=[a,b],c&&(e[0]=Math.min(a,this.Il[0]||0)),d&&(e[1]=Math.max(b,this.Il[this.Il.length-1]||0))):(a="logarithmic"==this.Em?rca(this,a,b,e||10,f||0,!!c,!!d):Tt(this,a,b,!!c,!!d,this.b,this.Vc),this.Hl=a.Ya,e=a.result);return e}; +$.g.EB=function(a,b,c,d,e){if(this.Il)this.Hl=null;else if(this.Hl?this.Hl.length=0:this.Hl=[],!(2>a.length)){b=b||10;var f="logarithmic"==this.Em,h=f?this.P$:this.Lba,k=a.length-1,l=this.Jl,m=this.lh;if(!(0,window.isNaN)(this.Jl)){var n=a[k];var q=a[0];f&&(q=$.dn(q,b),n=$.dn(n,b));(n-q)/this.Jl>this.pa.an()&&($.kl(20,null,[n-q,this.Jl]),this.Jl=window.NaN,this.lh=4)}$.p(c)?(q=a[0],n=a[1],h.call(this,q,n,c,n,this.lh,b,e||0,!0),q=1):q=0;$.p(d)&&k--;for(c=q;c<=k-1;c++)q=a[c],n=a[c+1],h.call(this,q, +n,q,n,this.lh,b,e||0);$.p(d)&&(q=a[k],n=a[k+1],h.call(this,q,n,q,d,this.lh,b,e||0));this.Jl=l;this.lh=m}};$.g.Lba=function(a,b,c,d,e,f,h,k){Ut(this,a,b,Vt(this,c,d,e),this.Hl[this.Hl.length-1],this.Hl,k)}; +$.g.P$=function(a,b,c,d,e,f,h){function k(a){return 0>a?-m(-a+h-1):a?m(a+h-1):0}function l(a){return-m(a)}function m(a){return en(f,a)}var n=$.dn(Math.abs(c),f),q=$.dn(Math.abs(d),f),r=$.dn(Math.abs(a),f),t=$.dn(Math.abs(b),f);d*=c;c=!1;0=this.lh||(this.qm=this.lh))};var DF=$.St.prototype; +DF.interval=DF.Mba;DF.allowFractional=DF.PZ;DF.count=DF.count;DF.base=DF.WF;DF.set=DF.set;DF.get=DF.get;DF.mode=DF.mode;$.H($.Wt,$.vt);$.g=$.Wt.prototype;$.g.oL="none";$.g.pS="first-visible";$.g.Ma=function(){return"linear"};$.g.CE=function(a,b){for(var c=this.Ya().dk(),d=0,e=0;eb?(a=[a,-c,c,-a],d=[0,f(h),f(h-2),f(h-2-d)]):(a=[-b,-c,c,b],d=[f(h-2-e),f(h-2),f(h),1])):0>f?(e=e-h+d-h+2,a=[a,-c,c,b],d=[0,(d-h)/e,(d-h+2)/e,1]):(e=e-h+d-h+1,b?(a=[-b,-c,c,b],d=[-(e+1)/e,-1/e,1/e,1]):(a=[a,-c,c,-a],d=[0,(e-1)/e,(e+1)/e,(e+e+1)/e]));h=this.Oq.xe();f=ct[Ys](h[0],h[1]);d=(0,$.Wa)(d,function(a){return $.bn(a)}); +$s(this.Oq,a);this.Oq.xe((0,$.Wa)(d,f));at(this.Oq,[2,Ys,2])}; +$.g.Nz=function(a,b,c,d,e,f){e=this.pI();var h=$.dn(Math.abs(a),e),k=$.dn(Math.abs(b),e),l=Math.min(Math.floor(h),Math.floor(k),0);if(c||d){var m=a*b;0m?(2>k-l+h-l&&l--,c=Xt.u.Nz.call(this,-(h-(l-1)),k-(l-1),c,d,!1,!1),c.min=-c.min+l-1,c.max+=l-1):b?(c=Xt.u.Nz.call(this,0,k-(l-1),!1,d,!1,!1),c.max+=l-1):(c=Xt.u.Nz.call(this,-(h-(l-1)),0,c,!1,!1,!1),c.min=-c.min+l-1);c={max:en(e,c.max)*$.fb(b), +min:en(e,c.min)*$.fb(a),Kx:l};f&&(c.min=$.bn(c.min),c.max=$.bn(c.max))}else c={min:a,max:b,Kx:l};return c};$.g.D=function(){var a=Xt.u.D.call(this);a.logBase=this.pI();return a};$.g.U=function(a,b){Xt.u.U.call(this,a,b);this.pI(a.logBase)};var FF=Xt.prototype;$.E("anychart.scales.log",$.rt);FF.getType=FF.Ma;FF.transform=FF.transform;FF.inverseTransform=FF.Mc;FF.logBase=FF.pI;$.H($.Yt,$.V);$.g=$.Yt.prototype;$.g.qa=2;$.g.Dx=window.NaN;$.g.Wf=null;$.g.Iz=null;$.g.jq=null;$.g.Cx=null;$.g.Ok=null;$.g.Jz=100;$.g.HK=function(a){return $.p(a)?(a=$.P(a,window.NaN),(0,window.isNaN)(a)||this.Dx==a||(this.Dx=a,this.Jz=window.NaN,this.Ok=this.Cx=this.jq=this.Iz=null,this.va(2)),this):this.Dx};$.g.gW=function(a){return $.p(a)?(a=$.P(a,window.NaN),(0,window.isNaN)(a)||this.Jz==a||(this.Jz=a,this.Dx=window.NaN,this.Ok=this.Cx=this.jq=this.Iz=null,this.va(2)),this):this.Jz}; +$.g.set=function(a){$.Ta(this.jq,a)||(this.jq=$.Ha(a),this.jq=(0,$.Wa)(this.jq,function(a){return $.N(a)}),$.Pa(this.jq),$.Ka(this.jq),this.jq[0]=0,this.Ok=this.Cx=this.Iz=null,this.va(2));return this}; +$.g.names=function(a){if($.p(a))return this.Wf!=a&&(this.Wf=a,this.va(2)),this;a=this.dk();var b;if(this.Wf&&this.Wf.lengthh&&0>f||1b&&0>a||1=d?(l=d-1,f=!0):l--;e.push(k==l?c[k]:[c[k],c[l]])}return e};$.g.eF=ba(8); +$.g.D=function(){var a=$.Yt.u.D.call(this);this.jq?a.explicit=this.jq:(0,window.isNaN)(this.Jz)?(0,window.isNaN)(this.Dx)||(a.interval=this.Dx):a.maxCount=this.Jz;this.Wf&&(a.names=this.Wf);return a};$.g.Le=function(a,b){return $.A(b)?(this.set(b),!0):!1};$.g.U=function(a,b){$.Yt.u.U.call(this,a,b);"explicit"in a&&a.explicit?this.set(a.explicit):"interval"in a?this.HK(a.interval):"maxCount"in a&&this.gW(a.maxCount);this.Wf=a.names||null;this.Ok=this.Cx=null};var GF=$.Yt.prototype;GF.interval=GF.HK; +GF.maxCount=GF.gW;GF.set=GF.set;GF.get=GF.get;GF.names=GF.names;$.H($.$t,gt);$.g=$.$t.prototype;$.g.Ma=function(){return"ordinal"};$.g.Ak=function(a){return!$.p(a)};$.g.Ya=function(a){this.mb||(this.mb=new $.Yt(this),$.W(this,"ticks",this.mb),$.K(this.mb,this.li,this));return $.p(a)?(this.mb.N(a),this):this.mb};$.g.values=function(a,b){if(!$.p(a))return this.ih;if(null===a)this.TF||(this.TF=!0,this.va(4));else{this.TF=!1;var c=$.A(a);this.Co();c&&a.length?this.Xc.apply(this,a):this.Xc.apply(this,arguments);this.IC(!0)&&this.va(6)}return this}; +$.g.names=function(a){if($.p(a)){if(null===a)this.Wf=[];else if($.A(a))this.Wf=$.Ha(a);else{if(!$.z(a)||this.Wf==a)return this;this.Wf=a}this.Sn=null;$.Zt(this.Ya());this.va(2);return this}if($.A(this.Wf)){this.Sn||(this.Sn=$.Ha(this.Wf));if(this.Sn.lengthk){var n=~k;$.Da(d,m,n);(k=this.search("id",m))?(k=$.J(k,$.nu)?k:k[0],$.Da(e,k,n),k.o("nc",!0),$.kl(1,null,[m])):$.Da(e,l,n)}else $.kl(2,null,[m])}for(b=0;bk?((k=this.search("id",l))?(k=$.J(k,$.nu)?k:k[0],pu(k,f)):(this.Iq.push(f),$.kl(3,null,[l])),tu(this,f)):(k=e[k],pu(k,f),k.o("nc")&&tu(this,f))):(this.Iq.push(f), +tu(this,f));h.length&&this.va(16);this.da(!0);break;default:this.ka();b=0;for(d=a.length;bc||b>d)return 1;if(ac)return 1}else if(e.height){if(bd)return 1}return 0}; +$.g.aS=function(a,b){var c=this.g("minFontSize"),d=this.g("maxFontSize"),e=Math.round((d+c)/2),f=d,h=$.sk();h.Dd("aria-hidden","true");this.bi(h,!0);h.fontSize(d);if(0>=this.fo(h.sb().width,h.sb().height,a,b))return d;h.fontSize(e);for(var k=d=this.fo(h.sb().width,h.sb().height,a,b);c!=f;){if(0>d)c=Math.min(e+1,f),e+=Math.floor((f-e)/2);else if(0=k*d)break}if(!d)return $.qd(h),e;do e+= +k,h.fontSize(e),d=this.fo(h.sb().width,h.sb().height,a,b);while(0>k*d);$.qd(h);0b.indexOf("\n"))&&!this.g("useHtml")?this.VW:this.ad.sb();var c=b.width,d=b.height,e=$.$b(this.g("iconStroke")),f=this.op+e;if(a){var h=a.width;var k=a.height}else h=k=void 0;var l=$.L(this.g("maxWidth"),h);e=h?$.L(this.g("x"),h):0;k=k?$.L(this.g("y"),k):0;var m=this.Fs?f+this.g("iconTextSpacing"):0;this.RF=window.NaN;l?(h=l-m,c&&c>h&&"..."==this.ad.textOverflow()?this.RF=h/c:(this.ad.width(h),b=this.ad.sb()),c=l):(l=h?Math.min(h-m,c): +c,l=Math.max(l,1E-5),"..."==this.ad.textOverflow()&&c&&c>l&&(this.RF=l/c),c=l+m);l=this.ad.ea;if(1a?null:a;$.p(this.height())||this.B(4)};$.g.margin=function(a,b,c,d){this.Qc||(this.Qc=new $.Uv,$.K(this.Qc,this.Pk,this),$.W(this,"margin",this.Qc));return $.p(a)?(this.Qc.N.apply(this.Qc,arguments),this):this.Qc}; +$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.W(this,"padding",this.Wa),$.K(this.Wa,this.Pk,this));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa};$.g.Zd=function(a,b){if($.p(a)){if($.z(a))if($.p(b)){if(a in this.j)this[a](b)}else return this.nd(a);else if($.C(a))for(var c in a)if(c in this.j)this[c](a[c]);return this}c={};for(var d in this.j){var e=this.g(d);$.p(e)&&(c[d]=e)}return c}; +$.g.W=function(){if(!this.zc())return this;var a=nw(this),b=this.O();this.ka();this.J(2)&&(this.wb.parent(b),this.I(2));this.J(8)&&(this.wb.zIndex(this.zIndex()),this.I(8));this.J(16)&&(this.bi(a),this.I(16));this.J(4)&&(ow(this),this.kc.x($.L(this.padding().g("left"),this.f)),this.kc.y($.L(this.padding().g("top"),this.b)),this.wb.pc(this.i.od,this.i.We,this.i.gf,this.i.Ke,this.i.Kd,this.i.Gd),this.B(64),this.I(4));this.J(64)&&(a=this.background(),a.ka(),a.ja(0,0,this.f,this.b),a.W(),a.da(!1),this.I(64)); +this.da(!1);return this};$.g.remove=function(){this.wb?this.wb.parent(null):this.kc&&this.kc.parent(null)};$.g.zd=function(){var a=this.ja();a=a?a.clone():$.rn(0,0,0,0);if(!this.enabled())return a;this.ac&&!this.J(4)||ow(this);switch(this.g("orientation")){case "top":a.top+=this.ac.height;a.height-=this.ac.height;break;case "right":a.width-=this.ac.width;break;case "bottom":a.height-=this.ac.height;break;case "left":a.left+=this.ac.width,a.width-=this.ac.width}return a};$.g.gH=ba(3); +$.g.yi=function(){if(!this.enabled())return new $.I(0,0,0,0);this.ac&&!this.J(4)||ow(this);return this.ac.clone()};$.g.uk=function(){var a=this.g("text"),b=$.mw(this);if($.p(a)||$.p(b))return a=!a&&$.p(b)?b:a,b=this.g("maxLength"),a=Nu(a,b)}; +$.g.bi=function(a){var b=this.g("useHtml"),c=this.uk();if(a||$.p(c)||$.p(b))b?this.kc.htmlText(c):this.kc.text(c);this.kc.fontSize(this.g("fontSize"));this.kc.fontFamily(this.g("fontFamily"));this.kc.color(this.g("fontColor"));this.kc.direction(this.g("textDirection"));this.kc.Xu(this.g("wordBreak"));this.kc.wordWrap(this.g("wordWrap"));this.kc.opacity(this.g("fontOpacity"));this.kc.er(this.g("fontDecoration"));this.kc.fontStyle(this.g("fontStyle"));this.kc.fontVariant(this.g("fontVariant"));this.kc.fontWeight(this.g("fontWeight")); +this.kc.letterSpacing(this.g("letterSpacing"));this.kc.lineHeight(this.g("lineHeight"));this.kc.textIndent(this.g("textIndent"));this.kc.textShadow(this.g("textShadow"));this.kc.vAlign(this.g("vAlign"));this.kc.Am(this.g("hAlign"));this.kc.textOverflow(this.g("textOverflow"));this.kc.Gm(this.g("selectable"));this.kc.Ed(this.g("disablePointerEvents"))}; +$.g.AA=function(){var a=this.nd("rotation");delete this.Od.rotation;a=$.p(a)?a:this.g("rotation");if($.p(a))return a;switch(this.g("orientation")){case "left":return this.Od.rotation=-90;case "right":return this.Od.rotation=90;default:return this.Od.rotation=0}};$.g.vg=function(a){$.X(a,1)&&this.B(64,1)};$.g.Pk=function(a){$.X(a,2)&&this.B(4,9)};$.g.clear=function(){this.wb&&this.wb.Gi()}; +$.g.D=function(){var a={},b=$.V.prototype.g.call(this,"zIndex");$.p(b)&&(a.zIndex=b);b=$.V.prototype.g.call(this,"enabled");$.p(b)&&(a.enabled=b);$.cr(this,this.j,a,"Title text");$.cr(this,this.K,a,"Title props");b=this.margin().D();$.Jc(b)||(a.margin=b);b=this.padding().D();$.Jc(b)||(a.padding=b);b=this.background().D();$.Jc(b)||(a.background=b);return a};$.g.he=function(a){return $.z(a)?{text:a,enabled:!0}:$.da(a)||null===a?{enabled:!!a}:null}; +$.g.Le=function(a,b){var c=this.he(b);return c?(a?(this.oa.enabled=c.enabled,"text"in c&&(this.oa.text=c.text)):(this.enabled(c.enabled),"text"in c&&this.text(c.text)),!0):!1};$.g.U=function(a,b){$.iw.u.U.call(this,a,b);$.Vq(this,this.j,a,b);$.Vq(this,this.K,a,b);"padding"in a&&this.padding().ga(!!b,a.padding);"margin"in a&&this.margin().ga(!!b,a.margin);"background"in a&&this.background().ga(!!b,a.background)}; +$.g.R=function(){$.sd(this.Ia,this.Qc,this.Wa,this.wb);this.wb=this.Wa=this.Qc=this.Ia=null;$.iw.u.R.call(this)};$.H(pw,$.iw);$.Hu(pw,$.iw);pw.prototype.gr=function(){var a=this.width(),b=this.height();return $.Bo(a)||$.Bo(b)||null===a||null===b};var jG=$.iw.prototype;jG.textSettings=jG.Zd;jG.background=jG.background;jG.margin=jG.margin;jG.padding=jG.padding;jG.getRemainingBounds=jG.zd;jG=pw.prototype;$.E("anychart.standalones.title",function(){var a=new pw;a.ga(!0,$.um("standalones.title"));return a}); +jG.draw=jG.W;jG.parentBounds=jG.ja;jG.container=jG.O;$.H(qw,$.od);$.g=qw.prototype;$.g.getContext=function(){return{parentElement:this.b,titleElement:this.j,separatorElement:this.f,contentElement:this.i}};$.g.Za=function(){sw(this);return this.b};$.g.WP=function(){var a=$.Uf(this.Za(),"margin");$.Cf(this.Za(),this.gb.G.x-a.left,this.gb.G.y-a.top)};$.g.visible=function(a){return $.p(a)?($.Pf(this.Za(),!!a),this):"none"!=this.Za().style.display};$.g.sb=function(){var a=$.Kf(this.Za());return new $.I(0,0,a.width,a.height)}; +$.g.O=function(a){if($.p(a)&&this.Jc!=a)if(null===a)this.remove();else return this.Jc=a,a=this.Za(),this.Jc.appendChild(a),this;return this.Jc};$.g.remove=function(){this.b&&($.Xe(this.b),this.Jc=null)};$.g.R=function(){this.remove();this.b=this.j=this.f=this.i=this.gb=null;qw.u.R.call(this)};$.H(uw,$.od);var Uda={position:"absolute","z-index":9999,left:0,top:0,width:"100%",height:"100%","pointer-events":"none"},kG={position:"relative",left:0,top:0,overflow:"hidden",width:"100%",height:"100%"},Vda={position:"relative",left:0,top:0,opacity:1,"pointer-events":"none"};$.g=uw.prototype;$.g.R_=function(){$.uf(this.Ir,Uda);$.uf(this.b.Tl(),kG);$.uf(this.b.ia(),Vda)}; +$.g.O=function(a){return $.p(a)?(a!=this.Jc&&((this.Jc=a)?(this.Jc.appendChild(this.Ir),this.R_(),this.b.Dt()):$.Xe(this.Ir)),this):this.Jc};$.g.Ka=function(){return this.b};$.g.NA=function(){return!0};$.g.Gm=function(a){return $.p(a)?(this.j=a,this):this.j};$.g.R=function(){$.qd(this.b);this.b=null;$.Xe(this.Ir);this.Ir=null};$.H(vw,$.od);$.g=vw.prototype;$.g.fe=0;$.g.R=function(){vw.u.R.call(this);this.stop();delete this.b;delete this.qo};$.g.start=function(a){this.stop();this.fe=$.Dj(this.f,$.p(a)?a:this.i)};$.g.stop=function(){this.uq()&&$.Ej(this.fe);this.fe=0};$.g.uq=function(){return 0!=this.fe};$.g.Mfa=function(){this.fe=0;this.b&&this.b.call(this.qo)};$.H(xw,$.qf);xw.prototype.R=function(){Zd(this.j);xw.u.R.call(this)};xw.prototype.F=function(){this.f||(this.f=new vw(this.G,this.K,this),$.rd(this,this.f));this.f.start()};xw.prototype.G=function(){if(!this.i.md){var a=this.b,b=ww(this.i);this.b=b;if(a){var c=!1;a.width!=b.width&&(this.dispatchEvent("b"),c=!0);a.height!=b.height&&(this.dispatchEvent("a"),c=!0);c&&this.dispatchEvent("resize")}else this.dispatchEvent("a"),this.dispatchEvent("b"),this.dispatchEvent("resize")}};$.H(yw,$.qf);yw.prototype.R=function(){yw.u.R.call(this);this.i&&(Zd(this.i),this.i=null);this.b=this.f=null};yw.prototype.j=function(){var a=$.Ee(this.f||window);$.mb(a,this.b)||(this.b=a,this.dispatchEvent("resize"))};$.H(zw,uw);$.ja(zw);var Wda={position:"absolute","z-index":9999,left:"-10000px",top:"-10000px"},Xda={position:"absolute","z-index":9999,left:0,top:0},Yda={position:"fixed",left:0,top:0,opacity:1,"pointer-events":"none"},Zda={position:"fixed",left:0,top:0,opacity:1,width:"1px",height:"1px"},$da={position:"fixed",left:0,top:0,opacity:1,"pointer-events":"none",overflow:"",display:"",width:"",height:""}; +zw.prototype.R_=function(){var a=window.document;$.hd&&(!$.bd("7")||a.documentMode&&6>=a.documentMode)?$.uf(this.Ir,Xda):$.uf(this.Ir,Wda);"svg"==$.kk?($.uf(this.Ka().Tl(),kG),$.uf(this.Ka().ia(),Yda)):($.uf(this.Ka().Tl(),Zda),$.uf(this.Ka().ia(),$da));this.F()};zw.prototype.F=function(){if("svg"==$.kk){var a=this.f;a=a.b?a.b.clone():null;this.Ka().resize(a.width,a.height)}};zw.prototype.NA=function(){return!1};zw.prototype.R=function(){$.sd(this.i,this.f);this.f=this.i=null;zw.u.R.call(this)};$.H($.Ew,$.Y);$.Ew.prototype.sa=$.Y.prototype.sa|6080;var Bw=1988;$.Ew.prototype.qa=$.Y.prototype.qa|49152;var Cw=1,Dw=2;$.Ew.prototype.ba=$.Fq();$.U($.Ew,$.Ew.prototype.ba);var aea=$.Ew.prototype,lG={}; +$.Cq(lG,[[0,"width",$.lr],[0,"height",$.lr],[0,"titleFormat",$.kr],[0,"format",$.kr],[0,"unionFormat",$.kr],[0,"valuePrefix",$.Mq],[0,"valuePostfix",$.Mq],[0,"position",$.Ek],[0,"anchor",$.Dk],[0,"offsetX",$.Oq],[0,"offsetY",$.Oq],[0,"x",$.Oq],[0,"y",$.Oq],[0,"allowLeaveScreen",$.Qq],[0,"allowLeaveChart",$.Qq],[0,"allowLeaveStage",$.Qq],[0,"displayMode",function(a){return $.zk(Fda,a,"single")}],[0,"positionMode",function(a){return $.zk(Gda,a,"float")}],[0,"onDomReady",$.qr],[0,"onBeforeTitleChange", +$.qr],[0,"onTitleChanged",$.qr],[0,"onBeforeContentChange",$.qr],[0,"onContentChanged",$.qr],[0,"hideDelay",$.Oq]]);aea.OQ=lG;$.U($.Ew,$.Ew.prototype.OQ);$.g=$.Ew.prototype;$.g.Lc=function(a,b){for(var c in this.j){var d=this.j[c];d&&d.Lc(a,b)}return Tw(this,a,b)}; +$.g.Zd=function(a,b){if($.p(a)){if($.z(a))if($.p(b)&&a in this.ba)this[a](b);else return this.g(a);else{this.ka();for(var c in a)if(c in this.ba)this[c](a[c]);this.da(!0)}return this}var d={};for(c in this.ba){var e=this.g(c);$.p(e)&&(d[c]=e)}return d};$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.K(this.Wa,this.Wia,this),$.W(this,"padding",this.Wa));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa};$.g.Wia=function(a){$.X(a,2)&&(this.xE(),this.B(Bw,1))}; +$.g.background=function(a){this.Ia||(this.Ia=new $.Iu,$.K(this.Ia,this.vg,this),this.Ia.kb(this),$.W(this,"background",this.Ia));return $.p(a)?(this.Ia.N(a),this):this.Ia};$.g.vg=function(a){$.X(a,1)&&this.B(1024,1)};$.g.title=function(a){this.jb||(this.jb=new $.iw,$.K(this.jb,this.gB,this),this.jb.kb(this),$.W(this,"title",this.jb));return $.p(a)?(this.jb.N(a),this):this.jb};$.g.gB=function(a){$.X(a,8)?(this.xE(),this.B(Bw,1)):$.X(a,1)&&this.B(128,1)}; +$.g.$r=function(a){this.aa||(this.aa=new gw,$.K(this.aa,this.jja,this),this.aa.kb(this),$.W(this,"separator",this.aa));return $.p(a)?(this.aa.N(a),this):this.aa};$.g.jja=function(a){$.X(a,8)?(this.xE(),this.B(Bw,1)):$.X(a,1)&&this.B(256,1)}; +$.g.W=function(){$.Sw(this);var a=this.g("useHtml");if(a){if(this.pf()||this.md)return this;if(!this.enabled())return this.J(1)&&(this.remove(),this.I(1),this.B(2)),this;if(!this.i.O())return this.remove(),this.I(2),this;this.I(1)}else if(!this.zc())return this;var b=this.background(),c=this.title(),d=this.$r(),e=this.Ri();Qw(this,this);this.J(8)&&(Pw(this).zIndex(this.zIndex()),this.I(8));if(this.J(4)){Zw(this);var f=this.P;this.na=this.padding().Ej(f);this.Ja=this.ea=null;this.I(4)}this.J(64)&& +(this.G=null,$w(this),a?this.i.WP():Pw(this).pc(1,0,0,1,this.G.x,this.G.y),this.I(64));a?tw(this.i):(this.J(1024)&&(b.ka(),b.ja(this.P),b.O(Pw(this)),b.W(),b.da(!1),this.I(1024)),this.J(128)&&(c.ka(),c.ja(this.na),c.W(),c.da(!1),!this.ea&&c.enabled()&&(this.ea=c.zd()),this.I(128)),this.J(256)&&(d.ka(),d.ja(this.ea||this.na),d.W(),d.da(!1),!this.Ja&&d.enabled()&&(this.Ja=d.zd()),this.I(256)),this.J(512)&&(a=this.Ja||this.ea||this.na,e.ka(),this.bi(),e.ja(a),e.W(),e.da(!1),this.I(512)),this.J(4096)&& +this.I(4096));return this};$.g.ya=function(a){return $.p(a)?(this.ra=a,this):this.ra};$.g.WP=function(a,b){var c=this.g("displayMode");"single"==c&&(Jw(this,this.b,a,b),Rw(this.b,a,b));if("union"==c)Jw(this,this.b,a,b),Rw(this.b,a,b);else if("separated"==c)for(var d in this.j)if(c=this.j[d])Uw(this,c,a,b),Rw(c,a,b)}; +$.g.Ri=function(a){this.Rd||(this.Rd=new $.Fv,$.K(this.Rd,this.Kia,this),this.Rd.kb(this),this.Rd.width("100%").height("100%"),$.W(this,"contentInternal",this.Rd));return $.p(a)?(this.Rd.N(a),this):this.Rd};$.g.Kia=function(a){$.X(a,8)?(this.xE(),this.B(Bw,1)):$.X(a,1)&&this.B(512,1)};$.g.xE=function(){this.G=this.P=null};$.g.remove=function(){this.g("useHtml")&&this.i&&this.i.remove();Pw(this).parent(null)};$.g.Wj=function(){return this.Xa||this.check(Cw)&&!$.Jc(this.j)}; +$.g.ob=function(){this.G=null;$w(this);var a=this.g("useHtml"),b=a?0:this.g("offsetX");a=a?0:this.g("offsetY");return new $.I(this.G.x+b,this.G.y+a,this.P.width,this.P.height)};$.g.yi=function(){Zw(this);return this.P};$.g.bi=function(){if(this.J(512)){this.Ri().ka();for(var a in this.ba){var b=this.g(a);$.p(b)&&this.Ri().Zd(a,b)}this.Ri().adjustFontSize(this.g("adjustFontSize"));this.Ri().minFontSize(this.g("minFontSize"));this.Ri().maxFontSize(this.g("maxFontSize"));this.Ri().da(!1)}}; +$.g.tL=function(){this.F&&this.F.uq()?this.$a=!0:($.qd(this.F),this.F=new vw(function(){this.remove();this.$a&&(this.$a=!1,this.tL())},this.g("hideDelay"),this))};$.g.ZN=function(a){if(Xw(this,a.clientX,a.clientY))this.f.NA()||this.f.Gm(!0);else{$.Yd(window.document,"mousemove",this.ZN,!1,this);var b=Pw(this).ia();b&&($.Yd(b,"mouseenter",this.vY,!1,this),$.Yd(b,"mouseleave",this.wY,!1,this));this.eN(a)}}; +$.g.vY=function(){$.Yd(window.document,"mousemove",this.ZN,!1,this);Pw(this).ia()&&$.Yd(Pw(this).ia(),"mouseenter",this.vY,!1,this);this.K=null};$.g.wY=function(a){Pw(this).ia()&&$.Yd(Pw(this).ia(),"mouseleave",this.wY,!1,this);this.eN(a)};$.g.eN=function(a){if(2==a.kf.buttons)return!0;this.f.NA()||this.f.Gm(!1);Pw(this).ia()&&$.Yd(Pw(this).ia(),"mouseleave",this.eN,!1,this);this.K=null;this.g("hideDelay")?(this.tL(),this.F.uq()||this.F.start()):this.Lc(!0)}; +$.g.parent=function(a){if($.p(a)){if(this.Y!=a){var b=String($.oa(this));null===a?($.ur(this.Y,this.Tc,this),this.title().parent(null),this.$r().parent(null),this.background().parent(null),this.padding().parent(null),this.Ri().parent(null),this.Ri().padding().parent(null),delete this.Y.j[b],this.Y=null):(this.Y&&$.ur(this.Y,this.Tc,this),this.Y=a,this.title().df().parent(this.Y.title()),this.$r().df().parent(this.Y.$r()),this.background().df().parent(this.Y.background()),this.padding().parent(this.Y.padding()), +this.Ri().parent(this.Y.Ri()),this.Ri().padding().parent(this.Y.Ri().padding()),this.Y.j[b]=this,this.aL(),$.K(this.Y,this.Tc,this))}return this}return this.Y};$.g.Tc=function(a){var b=0,c=0;this.aL();if($.X(a,8)||$.X(a,1))b|=Bw,c|=8,this.xE();$.X(a,32768)&&(b|=1,c|=1);this.Xb=null;this.B(b,c)};$.g.ph=function(a){return null!=this.Pa[a]};$.g.g=$.sr;$.g.check=function(a){return $.p(a)?!!(a&this.eb):!0}; +$.g.aL=function(){if(this.g("useHtml")){if(!fF){fF=!0;var a=$.ye(),b=$.Ae(a.b,"HEAD",void 0,void 0)[0];if(!b){var c=$.Ae(a.b,"BODY",void 0,void 0)[0];b=a.Ac("HEAD");c.parentNode.insertBefore(b,c)}c=a.Ac("STYLE");c.innerHTML=".anychart-tooltip {border-radius: 3px;padding: 5px 10px;background: rgba(33, 33, 33, 0.7);border: none;display: inline-block;box-sizing: border-box;letter-spacing: normal;color: #fff;font-family: Verdana, Helvetica, Arial, 'sans-serif';font-size: 12px;position: absolute;pointer-events: none;margin: 10px 0px 10px 10px;}.anychart-tooltip-separator {color: rgba(206, 206, 206, 0.3);border: none;height: 1px;margin: 5px 0;}.anychart-tooltip-title{font-size: 14px;}"; +a.Wga(b,c,0)}this.i||(this.i=new qw(this))}else this.i&&this.i.remove();for(var d in this.j)this.j[d].aL();this.G=this.P=null};$.g.jg=function(a){$.p(a)&&(this.Xb=a);return this.Xb};$.g.bh=function(){var a=this.jg();a||(a=$.Ga(this.Wd(),[this.Ha],this.Xd()),this.jg(a));return a};$.g.Xd=function(){var a=[this.oa];this.Y&&(a=$.Ga(a,this.Y.Xd()));return a};$.g.Wd=function(){var a=[this.Pa];this.Y&&(a=$.Ga(a,this.Y.Wd()));return a}; +$.g.D=function(){var a=$.Ew.u.D.call(this);$.cr(this,this.ba,a,void 0,void 0,!0);$.cr(this,this.OQ,a,void 0,void 0,!0);delete a.x;delete a.y;delete a.zIndex;var b=this.title().D();$.Jc(b)||(a.title=b);b=this.$r().D();$.Jc(b)||(a.separator=b);b=this.background().D();$.Jc(b)||(a.background=b);b=this.padding().Pa;$.Jc(b)||(a.padding=b);return a}; +$.g.U=function(a,b){$.Ew.u.U.call(this,a,b);$.Vq(this,this.ba,a,b);$.Vq(this,this.OQ,a,b);this.title().ga(!!b,a.title);this.$r().ga(!!b,a.separator);this.background().ga(!!b,a.background);this.padding().ga(!!b,a.padding);var c=a.contentInternal||{};c.position=c.position?c.position:"left-top";c.anchor=c.anchor?c.anchor:"left-top";this.Ri(c)}; +$.g.R=function(){delete this.Pa;delete this.oa;if(this.Y){var a=String($.oa(this));$.ur(this.Y,this.Tc,this);delete this.Y.j[a]}for(var b in this.j)(a=this.j[b])&&$.qd(a);this.f&&!this.f.NA()&&this.O(null);$.sd(this.jb,this.aa,this.Rd,this.Ia,this.Wa,this.Oa,this.F,this.i);this.i=this.F=this.Oa=this.Wa=this.Ia=this.Rd=this.aa=this.jb=null;if(this.f&&this.f.NA()&&ax(this)){a=!0;for(b in Aw)if(Aw.hasOwnProperty(b)){var c=Aw[b];if(c!=this&&this.f==c.f){a=!1;break}}a&&(b=bx(this),delete cx[b],$.qd(this.f))}delete this.f; +delete Aw[String($.oa(this))];$.Ew.u.R.call(this)};var mG=$.Ew.prototype;mG.title=mG.title;mG.separator=mG.$r;mG.background=mG.background;mG.padding=mG.padding;mG.hide=mG.Lc;mG.textSettings=mG.Zd;$.H($.dx,Bv);$.dx.prototype.qa=Bv.prototype.qa; +var nG=function(){function a(a){return function(b){var c="itemsSpacing"==a?(0,window.parseFloat)(b):Number(b);return null===b?this.vf(a):(0,window.isNaN)(c)?this.g(a):c}}var b={};$.Cq(b,[[0,"inverted",$.Qq],[0,"itemsLayout",eba],[0,"iconSize",$.N],[0,"width",$.Pq],[0,"height",$.Pq],[0,"maxWidth",$.Pq],[0,"maxHeight",$.Pq],[0,"position",function(a){return $.C(a)?(a.x=$.L(a.x)||0,a.y=$.L(a.y)||0,a):$.Hk(a)}],[0,"positionMode",hba],[0,"drag",$.Qq],[0,"itemsFormat",$.Pq],[0,"titleFormat",$.Pq],[0,"itemsHAlign", +Fk],[0,"itemsSpacing",a("itemsSpacing")],[0,"itemsSourceMode",pba],[0,"hoverCursor",Ck],[0,"iconTextSpacing",a("iconTextSpacing")],$.Z.eK]);return b}();$.U($.dx,nG);$.g=$.dx.prototype;$.g.sa=Bv.prototype.sa|4032;$.g.items=function(a){return $.p(a)?(this.Ja!=a&&(this.Ja=a,this.B(1040,1)),this):this.Ja};$.g.RA=function(a){return $.p(a)?(a=$.A(a)?$.Ja(a,0):null===a?a:[a],ex(this,a)||(this.f=a,this.B(1040,1)),this):this.f}; +$.g.qR=function(a){return $.p(a)?(this.aa!=a&&(this.aa=a,this.B(1040,1)),this):this.aa};$.g.margin=function(a,b,c,d){this.Qc||(this.Qc=new $.Uv,$.K(this.Qc,this.Pk,this),$.W(this,"margin",this.Qc));return $.p(a)?(this.Qc.N.apply(this.Qc,arguments),this):this.Qc};$.g.Pk=function(a){$.X(a,2)&&this.B(4,9)};$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.K(this.Wa,this.Pk,this),$.W(this,"padding",this.Wa));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa}; +$.g.background=function(a){this.Ia||(this.Ia=new $.Iu,$.K(this.Ia,this.vg,this),$.W(this,"background",this.Ia));return $.p(a)?(this.Ia.N(a),this):this.Ia};$.g.vg=function(a){$.X(a,1)&&this.B(64,1)};$.g.title=function(a){this.jb||(this.jb=new $.iw,$.K(this.jb,this.Mq,this),this.jb.kb(this),$.W(this,"title",this.jb));return $.p(a)?(this.jb.N(a),this):this.jb};$.g.Mq=function(a){var b=0,c=0;$.X(a,1)&&(b|=128,c|=1);$.X(a,8)&&(b|=4,c|=8);this.B(b,c)}; +$.g.uY=function(a){this.i||(this.i=new gw,$.K(this.i,this.fla,this),$.W(this,"titleSeparator",this.i));return $.p(a)?(this.i.N(a),this):this.i};$.g.fla=function(a){var b=0,c=0;$.X(a,1)&&(b|=256,c|=1);$.X(a,8)&&(b|=4,c|=8);this.B(b,c)};$.g.WI=function(a){this.K||(this.K=new $v,$.K(this.K,this.tja,this),$.W(this,"paginator",this.K));return $.p(a)?(this.K.N(a),this):this.K};$.g.tja=function(a){var b=0,c=0;$.X(a,1)&&(b|=512,c|=1);$.X(a,8)&&(b|=4,c|=8);this.B(b,c)}; +$.g.Ua=function(a){this.gb||(this.gb=new $.Ew(0),$.K(this.gb,this.Ap,this),$.Iw(this.gb,this),this.gb.Ga($.Er.tooltip),$.W(this,"tooltip",this.gb),this.gb.ga(!0,this.gb.oa));return $.p(a)?(this.gb.N(a),this):this.gb};$.g.Ap=function(){var a=this.Ua();a.O()&&a.W()};$.g.ja=function(a,b,c,d){return $.dx.u.ja.call(this,a,b,c,d)}; +$.g.zd=function(){var a=this.ja()||$.rn(0,0,0,0);if(!this.enabled()||"inside"==this.g("positionMode"))return a;this.ac&&!this.J(4)||this.Lm();var b=this.g("position");if($.C(b))return a;switch(b){case "top":a.top+=this.ac.height;a.height-=this.ac.height;break;case "right":a.width-=this.ac.width;break;default:case "bottom":a.height-=this.ac.height;break;case "left":a.left+=this.ac.width,a.width-=this.ac.width}return a};$.g.ob=function(){this.ac&&!this.J(4)||this.Lm();return this.ac}; +$.g.R5=function(a){if(void 0===this.Na)this.AW=!0,this.zW=[a];else{this.AW=!1;this.zW=null;var b=this.ob(),c=this.ja();this.ea=a.x;this.na=a.y;this.EG=!0;this.Lb=(this.ea-c.left)/c.width;this.mc=(this.na-c.top)/c.height;this.$b=(c.width-(this.ea-c.left+b.width))/c.width;this.rb=(c.height-(this.na-c.top+b.height))/c.height;this.B(4,1)}};$.g.Baa=function(){if(void 0===this.Na)return null;var a=this.Na.Qd;return{x:a.Kd,y:a.Gd}}; +$.g.Lm=function(){var a=this.ja();null!=a&&0>=a.width&&0>=a.height&&(a=null);var b=this.margin(),c=this.padding(),d=0,e=0,f=this.g("width"),h=this.g("height"),k=this.g("maxWidth"),l=this.g("maxHeight");if(a){var m=a.width;var n=a.height;if(null!=f){var q=Math.min(m,$.L(f,m),null!=k?$.L(k,m):m);k=c.Ng(b.Ng(q))}else k=null!=k?c.Ng(b.Ng($.L(k,m))):c.Ng(b.Ng(m));if(null!=h){var r=Math.min(n,$.L(h,n),null!=l?$.L(l,n):n);var t=c.Yh(b.Yh(r))}else t=null!=l?c.Yh(b.Yh($.L(l,n))):c.Yh(b.Yh(n))}else $.ea(f)&& +!(0,window.isNaN)(f)?(q=f,k=c.Ng(f)):k=$.ea(k)&&!(0,window.isNaN)(k)?c.Ng(k):window.Infinity,$.ea(h)&&!(0,window.isNaN)(h)?(r=h,t=c.Yh(h)):t=$.ea(l)&&!(0,window.isNaN)(l)?c.Yh(l):window.Infinity;var u,v;h=$.Gr(this,"titleSeparator");l=$.Gr(this,"paginator");f=$.Gr(this,"title");var w=l&&l.g("orientation"),x="bottom"==w||"top"==w,y=f&&(f.g("orientation")||$.lw(f));y=y&&("bottom"==y||"top"==y);var B=f?0==f.AA()%180:0,F=h&&h.Ob();h&&h.ka();l&&l.ka();f&&f.ka();var G=u=null;do{u&&(G=u);var M=v=0,O=0,Q= +0;if(f&&f.enabled()){f.ja(null);kw(f,null);f.zB(null);var S=f.yi();y?(S.width>k&&(B?kw(f,k):f.zB(k),S=f.yi()),Q=S.width,v+=S.height):(S.height>t&&(B?f.zB(t):kw(f,t),S=f.yi()),O=S.height,M+=S.width)}else S=null;h&&h.enabled()?(h.ja(null),u=h.yi(),F?v+=u.height:M+=u.width):u=null;var wa=k-M;var sa=Gca(this,wa,t-v);var Qa=sa.width;sa=sa.height;v+=sa;M+=Qa;O=Math.max(O,sa);Q=Math.max(Q,Qa);M=Math.max(Q,M);Q=Math.max(O,v);O=t;y&&(O-=S?S.height:0);F&&(O-=u?u.height:0);l.ja(null);v=fw(l,1);var xb=this.g("itemsLayout"); +if("horizontal"==xb)Qa>wa&&this.Ub&&1wa&&1O&&this.Ub&&1=k-S.width?mc=hb:mc=Qa;S=Math.max(Math.min(f.text().length,1),f.margin().Ng(M-xb<=mc?M-mc:xb));kw(f,S)}else if(!B&&Q>t){S=0;u&&F&&(S+=u.height);if("top"==w||"bottom"==w)S+=v.height;Qa=dw(l)&&!x?v.height:0;Qa=Math.max(this.Ub&&this.Ub.length?this.Ub[0].ob().height:0,Qa);S=Math.max(1,f.margin().Yh(t-S-Qa));B?f.zB(S):kw(f,S)}S=f.yi();h&&(h.width(wa),u=h.yi())}else S=f.yi(),h&&(h.width(sa),u=h.yi());y?O-=S.height:M-=S.width}h&&h.enabled()&&(F?O-=u.height:M-=u.width);S=M;u=O;dw(l)&&(x?u=O-v.height: +S=M-v.width);Qa=S;M=u;this.b=[];u=0;O=this.Ub&&this.Ub.length;v=this.g("itemsSpacing");for(S=0;SQa?(u++,this.b[u]=[],this.b[u][0]=this.Ub[S],M=this.Ub[S].ob().Ad()):(M=M+v+this.Ub[S].ob().Ad(),this.b[u].push(this.Ub[S])));break;case "vertical":Qa=this.Ub[S].ob().qd();S+=1;for(O=this.Ub.length;S< +O;S++)S in this.G||(Qa+v+this.Ub[S].ob().qd()>M?(u++,this.b[u]=[],this.b[u][0]=this.Ub[S],Qa=this.Ub[S].ob().qd()):(Qa=Qa+v+this.Ub[S].ob().qd(),this.b[u].push(this.Ub[S])));break;case "horizontal-expandable":var dc=this.Ub[S].ob().Ad()+v,Ib=this.Ub[S].ob().qd()+v,Ac=0;for(S+=1;SQa?(Ac+=Ib,Ac+Q>M?(u++,this.b[u]=[],this.b[u][0]=hb,Ac=0):this.b[u].push(hb),dc=xb+v,Ib=Q+v):(dc+=xb+v,Ib=Math.max(Ib,Q+v),this.b[u].push(hb)));break; +case "vertical-expandable":for(dc=this.Ub[S].ob().Ad()+v,Ib=this.Ub[S].ob().qd()+v,Ac=0,S+=1;SM?(Ac+=dc,Ac+xb>Qa?(u++,this.b[u]=[],this.b[u][0]=hb,Ac=0):this.b[u].push(hb),dc=xb+v,Ib=Q+v):(dc=Math.max(dc,xb+v),Ib+=Q+v,this.b[u].push(hb)))}(v=$.Gr(this,"paginator"))&&Vv(v,u+1);l.ja(null);u=l.ob()}while(!$.nb(G,u));q||(q=wa);r||(r=sa);this.ac=new $.I(d,e,q,r);if(this.EG)d=this.Lba.cb()&&(d=a.cb()-q),ea.Va()&&(e=a.Va()-r));else if(a){b=this.g("position");c=this.g("align");d=a.tb();e=a.Vb();switch(b){case "left":case "right":switch(c){case "center":e+=(n-r)/2;break;case "right":case "bottom":e=a.Va()-r}break;case "top":case "bottom":switch(c){case "center":d+=(m-q)/2;break;case "right":case "bottom":d= +a.cb()-q}}switch(b){case "right":d=a.cb()-q;break;case "bottom":e=a.Va()-r}}else d=$.L(b.g("left"),0),e=$.L(b.g("top"),0);this.ac.left=d;this.ac.top=e;this.padding().Ej(this.margin().Ej(this.ac));a=this.ac.clone();a.left=0;a.top=0;this.Ha=this.margin().Ej(a);this.Pd=this.padding().Ej(this.Ha);h&&h.da(!1);l&&l.da(!1);f&&f.da(!1);this.I(4)};$.g.remove=function(){this.Na&&this.Na.parent(null)}; +$.g.W=function(){if(!this.zc())return this;this.Na||(this.Na=$.ok(),$.Bu(this,this.Na),this.ba||(this.ba=$.ok(),this.ba.parent(this.Na).zIndex(20)));this.J(8)&&(this.Na.zIndex(this.zIndex()),this.I(8));var a=this.O(),b=a?a.Ka():null;this.J(2)&&(this.Na.parent(a),this.I(2),"svg"==$.kk&&(this.P=$.mg(),a=this.P.Wp(),this.F=this.P.Wo(),a.appendChild(this.F)));(a=b&&!b.yf())&&b.suspend();this.J(1024)&&(this.$a=!0,this.I(1024));if(this.J(16)){var c=this.qR(),d=Hca(this);this.g("inverted")&&(d=d.reverse()); +d=$.D(c)?c(d):d;this.Ub&&this.Ub.length!=d.length&&(this.$a=!0);c=Ica(this,d);Jca(this,c);this.I(16)}this.AW&&this.R5.apply(this,this.zW);Kca(this);if(this.J(4)){if(this.Ub&&"..."==this.g("textOverflow"))for(c=0,d=this.Ub.length;ca.nearestPointToCursor.distance&&(a.series.$().select(a.nearestPointToCursor.index),f=a)});"single"==this.gb.g("displayMode")?$.Vw(this.gb,[f],a.originalEvent.clientX, +a.originalEvent.clientY,f.series,this.Uu()):$.Vw(this.gb,b,a.originalEvent.clientX,a.originalEvent.clientY,f.series,this.Uu())}}};$.g.QJ=function(a){this.gb.WP(a.clientX,a.clientY)};$.g.Uu=function(){return!1};$.g.contextMenu=function(a){this.sk||(this.sk=$.oq.ui.contextMenu(!!$.C(a)&&a.fromTheme))&&this.sk.itemsProvider(this.sS);return $.p(a)?(this.sk&&this.sk.setup(a),this):this.sk}; +$.g.sS=function(a){var b=a.event?a.event.target.Zi():null,c=a.event?$.zo(a.event.domTarget):null;b=$.C(c)&&$.p(c.X)&&c.X.seriesType&&$.p(c.index)||b&&b.seriesType;c={};$.oq.exports&&$.Sc(c,$.Zl($.tG.exporting));$.Tj()&&a.menuParent&&$.Sc(c,$.Zl($.tG[a.menuParent.fullScreen()?"full-screen-exit":"full-screen-enter"]));$.Sc(c,$.Zl($.tG.main));return a.menuParent.ix(c,a,b)};$.g.ix=function(a){return a};$.g.uO=ba(16); +$.g.MM=function(){var a=[],b,c,d,e=this.Ue();for(c=0;cn.Tf||!d)d=m.X,e=n.index,f=$.Aa(m.wd,n.index),h=n.Tf}}a={index:e,series:d};a[b]=c?!f:f;return a}; +$.g.cl=function(a,b,c,d,e){var f=this.XD(c,a,d),h=[];if(!d)for(var k=0;ky.De.Tf&&(x=y))}r=x.X;l=$.Ax(r.state,$.Do);v=1==l.length&&l[0]==x.De.index;k=!v||v&&f;if(d=f)d=!!(r.state.fk()&$.Do);!d&&f||v||r.ie();r.Ii(x.De.index,a);l=$.Ax(r.state,$.Do);if(l.length)for(e.push({X:r,wd:[x.De.index],De:x.De}),m=b.Ue(),h=0;he?c+e:c,l=0>f?d+f:d;return{type:a,offsetX:h.offsetX,offsetY:h.offsetY,clientX:h.clientX,clientY:h.clientY,screenX:h.screenX,screenY:h.screenY,button:h.button,actionButton:h.actionButton,keyCode:h.keyCode,charCode:h.charCode,ctrlKey:h.ctrlKey,altKey:h.altKey,shiftKey:h.shiftKey,metaKey:h.metaKey,platformModifierKey:h.platformModifierKey,clientStartX:c+b.x,clientStartY:d+b.y,clientLeft:k+b.x,clientTop:l+b.y,startX:c,startY:d,left:k,top:l, +width:Math.abs(e),height:Math.abs(f)}};$.g.fja=function(a,b,c,d,e,f){return this.dispatchEvent(this.aA("selectmarqueestart",a,b,c,d,e,f))};$.g.dja=function(a,b,c,d,e,f){return this.dispatchEvent(this.aA("selectmarqueechange",a,b,c,d,e,f))};$.g.eja=function(a,b,c,d,e,f){a=this.aA("selectmarqueefinish",a,b,c,d,e,f);(b=this.dispatchEvent(a))&&this.$O(a);this.nB=!1;return b};$.g.$O=function(){}; +$.g.fullScreen=function(a){var b=this.O();b=b?b.Ka():null;return $.p(a)?(b&&b.fullScreen(a),this):b?b.fullScreen():!1};$.g.Jy=function(){var a=this.O();return(a=a?a.Ka():null)?a.Jy():!1};$.g.RG=function(a){var b=$.fa.anychart.exports;b?this.Tt||(this.Tt=b.create()):$.il(4,null,["Exporting"]);return $.p(a)&&this.Tt?(this.Tt.U(a),this):this.Tt};$.g.ts=function(){return this.Ue()};$.g.k2=function(){var a=$.Ga.apply(null,(0,$.Wa)(this.ts(),function(a){return a.data().Wv()}));$.Ka(a,a,$.xo);return a}; +$.g.SW=function(a,b,c){var d;if($.A(b))for(d=0;da&&(a=-3),$.p(d.axis)&&d.axis===d.HORIZONTAL_AXIS?b=a:c=a);$.ea(this.i)&&(b=$.Za(b,-this.i,this.i));$.ea(this.j)&&(c=$.Za(c,-this.j,this.j));this.F&&(b=-b);b=new Ox(a,d,b,c);this.dispatchEvent(b)};$.Mx.prototype.R=function(){$.Mx.u.R.call(this);Zd(this.f);this.f=null};$.H(Ox,$.Bd);$.H($.Px,$.V);$.Px.prototype.qa=$.V.prototype.qa|32779;$.Px.prototype.ys=function(a){var b=$.Px.u.ys.call(this,a),c=this.flatten().enabled;"enabled"==a?(b=32768,c&&(b|=this.f,this.f=0)):c||(this.f|=b);return b};var zG={}; +$.Cq(zG,[[0,"format",$.kr],[1,"adjustFontSize",Iq],[0,"fontVariant",$.dl],[0,"letterSpacing",$.Gq],[0,"textDirection",$.el],[0,"textIndent",$.Oq],[0,"textShadow",$.Zb],[0,"textOverflow",$.ir],[0,"useHtml",$.Qq],[0,"wordBreak",$.Pq],[0,"wordWrap",$.Pq],[0,"fontColor",$.Nq],[0,"fontDecoration",$.bl],[0,"fontFamily",$.Mq],[0,"fontOpacity",$.Oq],[0,"fontSize",$.Gq],[0,"fontStyle",$.cl],[0,"fontWeight",$.Gq],[0,"hAlign",$.$k],[0,"lineHeight",$.Gq],[0,"minFontSize",$.Gq],[0,"maxFontSize",$.Gq],[0,"maxLength", +$.Hq],[0,"vAlign",$.al],[0,"anchor",$.Dk],[0,"height",$.lr],[0,"offsetX",$.lr],[0,"offsetY",$.lr],[0,"position",$.Ek],[0,"rotation",$.Oq],[0,"width",$.lr],[0,"zIndex",$.Oq],[0,"allowMultiline",$.ir],[0,"clip",$.Pq],[0,"enabled",$.ir],[0,"selectable",$.Qq],[0,"disablePointerEvents",$.Qq],[0,"autoRotate",$.Qq]]);$.U($.Px,zG);$.g=$.Px.prototype; +$.g.parent=function(a){return $.p(a)?(this.Y!=a&&(null===a?($.ur(this.Y,this.Tc,this),this.padding().parent(null),this.Y=null):(this.Y&&$.ur(this.Y,this.Tc,this),this.Y=a,this.padding().parent(this.Y.padding()),$.K(this.Y,this.Tc,this),this.Ug())),this):this.Y};$.g.Tc=function(a){this.Ug();this.va(a.f)};$.g.g=$.sr;$.g.jg=function(a){$.p(a)&&(this.Xb=a);return this.Xb};$.g.bh=$.rr;$.g.Xd=function(){var a=[this.oa];this.Y&&(a=$.Ga(a,this.Y.Xd()));return a}; +$.g.Wd=function(){var a=[this.Pa];this.Y&&(a=$.Ga(a,this.Y.Wd()));return a};$.g.Ug=function(){this.b=null};$.g.flatten=function(){if(!this.b){this.b={};for(var a in zG)zG.hasOwnProperty(a)&&(this.b[a]=this.g(a))}return this.b};$.g.UK=function(a){var b=this.flatten().maxLength;return a=Nu(a,b)};$.g.uk=function(a){var b=this.g("format")||$.np;$.z(b)&&(b=$.Xu($.Vu.vd(),b));a=b.call(a,a);a=$.p(a)?String(a):"";return this.UK(a)}; +$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.W(this,"padding",this.Wa),$.K(this.Wa,this.fm,this));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa};$.g.fm=function(){this.va(2)};$.g.background=function(a){this.Ia||(this.Ia=new $.Iu);return $.p(a)?this:this.Ia};$.g.Le=function(a,b){return $.da(b)?(this.enabled(b),!0):!1};$.g.U=function(a,b){$.Px.u.U.call(this,a,b);$.Vq(this,zG,a,b);this.padding().ga(!!b,a.padding)}; +$.g.D=function(){var a=$.Px.u.D.call(this);$.cr(this,zG,a,void 0,void 0,!0);var b=$.Gr(this,"padding");b&&(b=$.Qc(b.Pa),$.Jc(b)||(a.padding=b));return a};$.g.R=function(){this.b=null;this.parent(null);$.sd(this.Wa,this.Ia);this.Ia=this.Wa=null;$.Px.u.R.call(this)};var AG=$.Px.prototype;AG.padding=AG.padding;AG.background=AG.background;$.g=$.Qx.prototype;$.g.width=function(){return this.Ta?this.Ta.width:0};$.g.height=function(){if(this.Ta)var a=this.Ta.height;else if(this.b.length)for(var b=a=0;ba?a+3:Math.round(1.2*a),this.aa=Math.round(.8*this.Ha)));return this}return this.f};$.g.nK=function(a){this.Ba+=a};$.g.mK=function(){this.Ba+="\n"};$.g.oM=function(){this.text(this.Ba);this.Ba="";Tx(this)}; +$.g.text=function(a){return $.p(a)?(a=ic(a),a=$.hc(a),this.kc!=a&&(this.ho.text=!0,this.kc=a),this):this.kc};$.g.Ac=function(){this.ia=this.P.Ux()};$.g.Vd=function(){this.ia||this.Ac();return this.ia}; +$.g.Ij=function(){var a;if(this.na||this.ea)for(this.G&&this.G.Ij(),this.K&&this.K.Ij(),a=0;ae?h+e+270:h+e+90:h,h=$.p(c)&&c.anchor||this.g("anchor");a=$.gv(this,a,b,c,d);b=f;c=$.Lo(a,h);b=$.Kb($.bb(b),c.x,c.y);a=$.sn(a)||[];b.transform(a, +0,a,0,4);return a};$.jy.prototype.uL=function(){return new $.ky};$.H($.ky,$.cv);var cea=$.ky.prototype,CG=$.Qc($.cv.prototype.oC);$.Bq(CG,0,"autoRotate",$.Qq);cea.oC=CG;$.U($.ky,$.ky.prototype.oC);$.ky.prototype.AA=function(a){var b=this.ic("rotation");return this.ic("autoRotate")?0a?b+a+270:b+a+90:b}; +$.ky.prototype.tf=function(a,b){this.b||$.dv(this);var c=this.b.positionFormatter,d=this.xb.path()?"center":$u(this.b.anchor)||"left-top",e=this.b.offsetX||0,f=this.b.offsetY||0,h=this.gp,k=this.jc(),l=$.Qc(c.call(k,k));c=l.angle;k=l.radius;l=$.p(l.radiusY)?l.radiusY:k;var m=0,n=0,q=h.Dc(),r=h.uc(),t=h.fz();h=h.Ty();if(b||!(0,window.isNaN)(q)&&!(0,window.isNaN)(r)){m=b.left;n=b.top;var u=b.width,v=b.height;m=(0,window.isNaN)(q)?m+u/2:q;n=(0,window.isNaN)(r)?n+v/2:r;f=$.p(h)&&!(0,window.isNaN)(h)? +$.L(f,h):b?$.L(f,Math.min(u,v)/2):0;c+=$.L(e,null!=t?t:360);k+=f;l+=f}e=m+$.db(c,k);f=n+$.eb(c,l);d=$.Lo(new $.I(0,0,a.width,a.height),d);e-=d.x;f-=d.y;this.Lg+=e;this.Mg+=f;a.left=e;a.top=f;this.b.rotation=this.AA(c);this.xr?this.xb.x(this.Lg).y(this.Mg):this.xb.setPosition(this.Lg,this.Mg)};$.H($.ly,$.Y);var dea=function(){var a={};$.Cq(a,[$.Z.yz,$.Z.Yn,$.Z.CQ,$.Z.DQ,$.Z.lZ,$.Z.HQ,[0,"position",$.Nq],[0,"size",$.Hq],[0,"anchor",function(a){return null===a?a:$.Dk(a)}],[0,"type",function(a){$.D(a)||(a=$.Ok(a));return a}]]);return a}();$.U($.ly,dea);$.g=$.ly.prototype;$.g.qa=$.Y.prototype.qa;$.g.sa=$.Y.prototype.sa|80;$.g.JT=function(){$.ly.u.JT.call(this);for(var a in this.oa)a in this.ua&&(this.b[a]=!0)}; +$.g.enabled=function(a){return $.p(a)?(null===this.j&&a&&this.B(1,this.mr()),this.j=a,this.WE=null!==this.Pa.enabled,$.ly.u.enabled.call(this,a),this):this.j};$.g.Ma=function(){return this.Pa.type||this.oa.type};$.g.Tm=function(){return $.p(this.Pa.fill)?this.Pa.fill:this.oa.fill};$.g.oJ=function(a){this.F=a};$.g.g=function(a){var b=$.ly.u.g.call(this,a);b||("stroke"==a?b=this.G||"none":"fill"==a?b=this.F||"black":"type"==a&&(b=this.VF||"diagonal-cross"));return b}; +$.g.ta=function(a,b){$.ly.u.ta.call(this,a,b);this.b[a]=!0};$.g.gk=function(){return $.p(this.Pa.stroke)?this.Pa.stroke:this.oa.stroke};$.g.pJ=function(a){this.G=a};$.g.Ed=function(a){return $.p(a)?(this.QL=a,this.B(16,1),this):this.QL}; +$.g.measure=function(a){this.i||(this.i=$.qk());var b=this.ja();if(b){var c=b.width;var d=b.height}var e=this.g("type");var f=this.g("size");b=this.g("anchor");var h=this.g("offsetX"),k=this.g("offsetY");e=$.z(e)?$.Jp(e):e;this.i.clear();e.call(this,this.i,0,0,f);f=this.i.sb();a=$.Qc(this.g("positionFormatter").call(a,a));a=new $.gb(a.x,a.y);e=$.Lo(new $.I(0,0,f.width,f.height),b);a.x-=e.x;a.y-=e.y;$.ep(a,b,$.p(h)?$.L(h,c):0,$.p(k)?$.L(k,d):0);f.left=a.x;f.top=a.y;return f}; +$.g.clear=function(a){this.f||(this.f=[]);if(this.Bc&&this.Bc.length)if($.p(a))this.Bc[a]&&(this.Bc[a].clear(),this.f.push(this.Bc[a]),delete this.Bc[a]);else{for(a=this.Bc.length;a--;){var b=this.Bc[a];b&&(b.clear(),this.f.push(b))}this.Bc.length=0;this.B(64,1)}else this.Bc=[];return this};$.g.ip=function(a){a=+a;return this.Bc&&this.Bc[a]?this.Bc[a]:null};$.g.oH=function(){return this.b};$.g.Vd=function(){return this.wb}; +$.g.add=function(a,b){$.p(this.Bc)||(this.Bc=[]);if($.p(b)){var c=+b;var d=this.Bc[c]}d?d.clear():(d=this.f&&0b||b>$.Ny(this))throw Error("Child component index out of bounds");this.F&&this.j||(this.F={},this.j=[]);if(a.getParent()==this){var d=a.ny();this.F[d]=a;$.Fa(this.j,a)}else $.Mc(this.F,a.ny(),a);a.gl(this);$.Da(this.j,a,b);a.xf&&this.xf&&a.getParent()==this?(c=this.AD(),b=c.childNodes[b]||null,b!=a.Za()&&c.insertBefore(a.Za(),b)):c?(this.Fd||this.Ac(),b=this.yd(b+1),a.vE(this.AD(),b?b.Fd:null)):this.xf&& +!a.xf&&a.Fd&&a.Fd.parentNode&&1==a.Fd.parentNode.nodeType&&a.Gg()};$.g.AD=function(){return this.Fd};$.g.yd=function(a){return this.j?this.j[a]||null:null};$.g.Pj=function(a,b){this.j&&(0,$.Pe)(this.j,a,b)};$.g.Kf=function(a){return this.j&&a?(0,$.za)(this.j,a):-1};$.g.removeChild=function(a,b){if(a){var c=$.z(a)?a:a.ny();a=$.Oy(this,c);c&&a&&($.Lc(this.F,c),$.Fa(this.j,a),b&&(a.Dh(),a.Fd&&$.Xe(a.Fd)),a.gl(null))}if(!a)throw Error("Child is not in parent component");return a}; +$.g.Cj=function(a,b){return this.removeChild(this.yd(a),b)};$.g.Gi=function(a){for(var b=[];this.j&&0!=this.j.length;)b.push(this.Cj(0,a));return b};var Qy;$.H($.Py,$.Jy);$.g=$.Py.prototype;$.g.Ut=null;$.g.FH=!1;$.g.Ac=function(){this.Fd=this.f.Ac("INPUT",{type:"text"})};$.g.ql=ba(21);$.g.Gg=function(){$.Py.u.Gg.call(this);var a=new nf(this);a.wa(this.Za(),"focus",this.SU);a.wa(this.Za(),"blur",this.gga);if($.Ry())this.Qg=a;else{$.gd&&a.wa(this.Za(),["keypress","keydown","keyup"],this.qga);var b=$.te(this.Za());a.wa(b?$.Ge(b):window,"load",this.Gga);this.Qg=a;Sy(this)}this.fo();this.Za().s3=this}; +$.g.Dh=function(){$.Py.u.Dh.call(this);this.Qg&&(this.Qg.ld(),this.Qg=null);this.Za().s3=null};$.g.R=function(){$.Py.u.R.call(this);this.Qg&&(this.Qg.ld(),this.Qg=null)};$.g.SU=function(){this.FH=!0;var a=this.Za();$.Sj(a,"label-input-label");if(!$.Ry()&&!$.Ty(this)&&!this.b){var b=this;a=function(){b.Za()&&(b.Za().value="")};$.hd?$.Dj(a,10):a()}};$.g.gga=function(){$.Ry()||(this.Qg.gc(this.Za(),"click",this.SU),this.Ut=null);this.FH=!1;this.fo()}; +$.g.qga=function(a){27==a.keyCode&&("keydown"==a.type?this.Ut=this.Za().value:"keypress"==a.type?this.Za().value=this.Ut:"keyup"==a.type&&(this.Ut=null),a.preventDefault())};$.g.rga=function(){$.Ty(this)||(this.Za().value="",$.Dj(this.cga,10,this))};$.g.cga=function(){$.Ty(this)||(this.Za().value=this.i)};$.g.Gga=function(){this.fo()};$.g.clear=function(){this.Za().value="";null!=this.Ut&&(this.Ut="")};$.g.reset=function(){$.Ty(this)&&(this.clear(),this.fo())}; +$.g.vj=function(){return null!=this.Ut?this.Ut:$.Ty(this)?this.Za().value:""};$.g.ae=function(){return this.i};$.g.fo=function(){var a=this.Za();$.Ry()?this.Za().placeholder!=this.i&&(this.Za().placeholder=this.i):Sy(this);$.Hy(a,"label",this.i);$.Ty(this)?(a=this.Za(),$.Sj(a,"label-input-label")):(this.b||this.FH||(a=this.Za(),$.Qj(a,"label-input-label")),$.Ry()||$.Dj(this.$ja,10,this))};$.g.Dj=function(a){this.Za().disabled=!a;var b=this.Za();a?$.Sj(b,"label-input-label-disabled"):$.Qj(b,"label-input-label-disabled")}; +$.g.isEnabled=function(){return!this.Za().disabled};$.g.z1=ba(23);$.g.$ja=function(){!this.Za()||$.Ty(this)||this.FH||(this.Za().value=this.i)};$.H($.Vy,$.Y);$.g=$.Vy.prototype;$.g.Ih=function(a){a:{var b=a.type;switch(b){case "mouseout":b="axismarkerout";break;case "mouseover":b="axismarkerover";break;case "mousemove":b="axismarkermove";break;default:a=null;break a}a={type:b,target:this,originalEvent:a,rawValue:this.tK(),formattedValue:this.kR(),offsetX:a.offsetX,offsetY:a.offsetY}}a&&this.dispatchEvent(a)};$.g.kR=function(){return"Value: "+this.tK()};$.g.qa=$.Y.prototype.qa|4;$.g.sa=$.Y.prototype.sa|20;$.g.xc=function(){return this.ra}; +$.g.VK=function(a){if($.p(a)){var b="gantt"==(a&&$.D(a.Ma)&&a.Ma());if(a=b?a==this.j?null:a:$.ut(this.j,a,null,15,null,this.zg,this)){var c=this.j==a;this.j=a;var d=this.pa||this.b&&this.b.scale();d?a.da(!1):b||a.da(c);c||d||this.B(4,13)}}}; +$.g.Po=function(a){if($.p(a)){var b="gantt"==(a&&$.D(a.Ma)&&a.Ma()),c=b?a==this.pa?null:a:$.ut(this.pa,a,null,15,null,this.zg,this);if(c||null===a&&this.pa){a=this.pa==c;var d=b&&!this.pa;c||$.ur(this.pa,this.zg,this);this.pa=c;d&&$.K(this.pa,this.zg,this);c&&!b&&c.da(a);a||this.B(4,13)}return this}return this.pa||this.b&&this.b.scale()||this.j};$.g.n3=function(){return!!this.pa};$.g.zg=function(a){var b=0;$.X(a,4)&&(b|=4);$.X(a,2)&&(b|=1);this.B(4,b|8)}; +$.g.tK=function(){return $.p(void 0)?(void 0!==this.g("value")&&this.value(void 0),this):this.g("value")};$.g.uD=function(){var a=9;"consider"==this.g("scaleRangeMode")&&(a|=4);return a};$.g.mr=function(){return $.Vy.u.mr.call(this)|4};$.g.xs=function(){return[this.tK()]};$.g.c_=function(){this.B(4,9)};$.g.axis=function(a){return $.p(a)?(this.b!=a&&(this.b&&$.ur(this.b,this.c_,this),this.b=a,$.K(this.b,this.c_,this),this.B(4,13)),this):this.b}; +$.g.Pp=function(a,b,c,d){this.$g||(this.$g=new $.Ru);return $.p(a)?(this.$g.N.apply(this.$g,arguments),this):this.$g};$.g.Ob=function(){return"horizontal"==this.we()};$.g.fs=void 0;$.g.kv=void 0;$.g.W=function(){if(!this.scale())return $.il(2),this;if(!this.zc())return this;if(this.J(8)){var a=this.zIndex();$.Wy(this).zIndex(a);this.I(8)}this.J(2)&&(a=this.O(),$.Wy(this).parent(a),this.I(2));this.J(16)&&(this.kv(),this.I(16));this.J(4)&&(this.fs(),this.I(4));return this}; +$.g.lo=function(){var a=this.scale();if(a){var b=$.Wy(this),c=a.transform(this.g("value"),.5);b.clear();if(!(0,window.isNaN)(c)&&(0<=c&&1>=c||this.i)){a=this.ja();var d=this.Pp(),e=b.hl();this.Ob()?(c=a.Vb()+a.height-c*a.height,c=$.R(c,e),b.moveTo(a.tb(),c),b.lineTo(a.cb(),c)):(c=a.tb()+c*a.width,c=$.R(c,e),b.moveTo(c,a.Vb()),b.lineTo(c,a.Va()));this.i||b.clip(d.Ej(a))}}else $.il(2)};$.g.remove=function(){$.Wy(this).parent(null)};var JG={};$.Cq(JG,[[0,"scaleRangeMode",gl]]);$.U($.Vy,JG); +$.Vy.prototype.U=function(a,b){$.Vy.u.U.call(this,a,b);"layout"in a&&a.layout&&this.we(a.layout);if("axis"in a){var c=a.axis;$.ea(c)?this.ra&&this.axis(this.ra.YG(c)):c.Hy&&c.Hy()&&this.axis(c)}$.Vq(this,JG,a,b)};$.Vy.prototype.D=function(){var a=$.Vy.u.D.call(this);$.cr(this,JG,a);return a};$.Vy.prototype.R=function(){this.ra=this.b=null;$.sd(this.F,this.$g);this.$g=this.F=null;$.Vy.u.R.call(this)};$.H($.Yy,$.Y);$.Yy.prototype.qa=$.Y.prototype.qa;$.Yy.prototype.sa=$.Y.prototype.sa;var gea=$.Yy.prototype,KG={};$.Cq(KG,[[1,"stroke",$.Zq],[0,"length",$.Fo],[0,"position",$.Wk]]);gea.dR=KG;$.U($.Yy,$.Yy.prototype.dR);$.g=$.Yy.prototype;$.g.orientation=function(a){return $.p(a)?(a=$.Hk(a),this.vh!=a&&(this.vh=a,this.cp=null),this):this.vh};$.g.remove=function(){this.path&&this.path.parent(null)}; +$.g.W=function(){this.path.clear();this.path.stroke(this.g("stroke"));if(!this.zc())return this;this.J(8)&&(this.path.zIndex(this.zIndex()),this.I(8));this.J(2)&&(this.path.parent(this.O()),this.I(2));return this};$.g.f1=function(a,b,c,d){a=b.left+a*b.width;var e=c.top;a=$.R(a,this.path.hl());var f=this.g("position");b=$.L(this.g("length"),b.height);"outside"==f?(e-=d/2,c=-b):(e="center"==f?e+(c.height-b)/2:e+d/2,c=b);this.path.moveTo(a,e);this.path.lineTo(a,e+c)}; +$.g.kT=function(a,b,c,d){c=c.left;a=b.top+b.height-a*b.height;a=$.R(a,this.path.hl());var e=this.g("position");b=$.L(this.g("length"),b.width);"outside"==e?(c+=d/2,d=b):"center"==e?(c-=b/2,d=b):(c-=d/2,d=-b);this.path.moveTo(c,a);this.path.lineTo(c+d,a)};$.g.eT=function(a,b,c,d){a=b.left+a*b.width;c=c.top;a=$.R(a,this.path.hl());var e=this.g("position");b=$.L(this.g("length"),b.height);"outside"==e?(c+=d/2,d=b):"center"==e?(c-=b/2,d=b):(c-=d/2,d=-b);this.path.moveTo(a,c);this.path.lineTo(a,c+d)}; +$.g.iT=function(a,b,c,d){c=c.left;a=b.top+b.height-a*b.height;a=$.R(a,this.path.hl());var e=this.g("position");b=$.L(this.g("length"),b.width);"outside"==e?(c-=d/2,d=-b):(c="center"==e?c-b/2:c+d/2,d=b);this.path.moveTo(c,a);this.path.lineTo(c+d,a)};$.g.D=function(){var a=$.Yy.u.D.call(this);$.cr(this,this.dR,a,"AxisTicks");return a};$.g.U=function(a,b){$.Yy.u.U.call(this,a,b);$.Vq(this,this.dR,a,b)};$.g.R=function(){$.qd(this.path);this.path=null;$.Yy.u.R.call(this)};$.H($.$y,$.Y);$.$y.prototype.g=function(a){var b=$.$y.u.g.call(this,a);if("orientation"==a&&null==b||!$.p(b))b=this.Od[a];return b};var LG={};$.Cq(LG,[$.Z.jK,$.Z.tQ,$.Z.uQ,$.Z.dC,$.Z.Yn,[0,"staggerMode",$.Qq],[0,"staggerMaxLines",$.Hq],[0,"staggerLines",$.Hq],[0,"orientation",nr],[0,"value",Jo]]);$.U($.$y,LG);$.g=$.$y.prototype;$.g.sa=$.Y.prototype.sa|976;$.g.qa=$.Y.prototype.qa;$.g.Pc=null;$.g.Er="axis";$.g.jb=null;$.g.Da=null;$.g.rc=null;$.g.mb=null;$.g.Rc=null;$.g.In=null;$.g.AJ=1;$.g.Hq=null; +$.g.TH=null;$.g.Wa=null;$.g.ci=null;$.g.Gk=null;$.g.title=function(a){this.jb||(this.jb=new $.iw,$.W(this,"title",this.jb),this.jb.kb(this),$.K(this.jb,this.Mq,this));return $.p(a)?(this.jb.N(a),this):this.jb};$.g.Mq=function(a){var b=0,c=0;$.X(a,8)?(b=this.se,c=9):$.X(a,1)&&(b=64,c=1);this.B(b,c)};$.g.labels=function(a){this.Da||(this.Da=new $.Zu,$.W(this,"labels",this.Da),this.Da.kb(this),$.K(this.Da,this.ce,this));return $.p(a)?(!$.C(a)||"enabled"in a||(a.enabled=!0),this.Da.N(a),this):this.Da}; +$.g.ce=function(a){var b=0,c=0;$.X(a,8)?(b=this.se,c=9):$.X(a,1)&&(b=384,c=1);this.labels().clear();this.ns();this.ik=null;this.$d();this.B(b,c)};$.g.qb=function(a){this.rc||(this.rc=new $.Zu,$.W(this,"minorLabels",this.rc),this.rc.kb(this),$.K(this.rc,this.zaa,this));return $.p(a)?(!$.C(a)||"enabled"in a||(a.enabled=!0),this.rc.N(a),this):this.rc};$.g.zaa=function(a){var b=0,c=0;$.X(a,8)?(b=this.se,c=9):$.X(a,1)&&(b=128,c=1);this.ik=null;this.$d();this.qb().clear();this.B(b,c)};$.g.pl=function(){return new $.Yy}; +$.g.Bz=function(){return this.line?this.line:this.line=$.qk()};$.g.Ya=function(a){this.mb||(this.mb=this.pl(),$.W(this,"ticks",this.mb),this.mb.kb(this),$.K(this.mb,this.XZ,this));return $.p(a)?(this.mb.N(a),this):this.mb};$.g.yb=function(a){this.Rc||(this.Rc=this.pl(),$.W(this,"minorTicks",this.Rc),this.Rc.kb(this),$.K(this.Rc,this.XZ,this));return $.p(a)?(this.Rc.N(a),this):this.Rc};$.g.XZ=function(a){var b=0,c=0;$.X(a,8)?(b=this.se,c=9,this.$d()):$.X(a,1)&&(b=256,c=1);this.B(b,c)}; +$.g.scale=function(a){if($.p(a)){if(this.In!=a&&(a=$.ut(this.scale(),a,null,this.TT(),null,this.zg,this))){var b=this.In==a;this.In=a;this.ns();this.ik=null;this.$d();this.labels().clear();this.qb().clear();a.da(b);b||this.B(this.se,9)}return this}return this.In};$.g.TT=function(){return 15};$.g.zg=function(a){$.X(a,2)&&(this.ns(),this.ik=null,this.$d(),this.labels().clear(),this.qb().clear(),this.B(this.se,9))}; +$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.W(this,"padding",this.Wa),$.K(this.Wa,this.fm,this));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa};$.g.dF=function(a){if($.ea(a)||$.J(a,$.$y))this.Ba=a,this.B(this.se,9);return this.Ba};$.g.fm=function(a){$.X(a,2)&&(this.ns(),this.ik=null,this.$d(),this.B(this.se,9))};$.g.Hy=function(){return!0};$.g.ns=function(){this.na=null}; +$.g.qy=function(a){if(!this.ik||this.J(512)){var b=this.scale();if(b){var c=this.labels();var d=c.enabled();var e=b.Ya().get();var f=e.length;if(d){var h;var k=0;for(h=f;k$.Oo(k)?this.TH:null,B=this.g("drawFirstLabel"),F=this.g("drawLastLabel");if($.J(b,$.vt)){c=k=0;for(var G;k=S&&B||1<=S&&F?t=x:0S&& +(t=x));x++}Q<=G&&k=S&&B||1<=S&&F?(u=c,q.push(!0)):0S?(u=c,q.push(!0)):q.push(!1))):q.push(!1),c++)}m||(q=!1)}else if($.J(b,gt))for(F? +(v=this.rd(f-1,!0,e,a),v=y?bz(this,y,v)?null:v:v):v=null,k=0;ka)return null;var e=b?this.ci:this.Gk;if($.p(e[a]))return e[a];var f=ez(this,c[a]);if(0>f||1=S&&h.call(f,S,m,r,t,l),v==e-1&&(S=a.transform(O,1),0<=S&&1>=S&&h.call(f,S,m,r,t,l))),wa=$.A(w)?w[v]:w,this.ke(k,n,v,l,!0,b,wa&&0<=n&&1>=n);this.labels().W()}this.title().da(!1);this.labels().da(!1);this.qb().da(!1);c.da(!1); +d.da(!1);return this};$.g.remove=function(){this.jb&&this.jb.remove();this.line&&this.line.parent(null);this.Ya().remove();this.yb().remove();this.Da&&this.Da.remove();this.rc&&this.rc.remove()};$.g.uo=function(){this.ns();this.ik=null;this.$d();this.B(this.se,9)}; +$.g.nq=function(a,b){var c=this.scale(),d,e=!0,f=!1;if($.J(c,$.$t)){var h=c.Ya().names()[a];var k=b;var l=d="string";e=!1}else $.J(c,$.xt)?(h=$.Fs(b),d="string",l="date-time",k=b,f=!0):(h=(0,window.parseFloat)(b),k=(0,window.parseFloat)(b),d=l="number");h={axis:{value:this,type:""},index:{value:a,type:"number"},value:{value:h,type:d},tickValue:{value:k,type:l},scale:{value:c,type:""}};e&&(h.max={value:$.p(c.max)?c.max:null,type:"number"},h.min={value:$.p(c.min)?c.min:null,type:"number"});f&&(e=c.Ya(), +h.intervalUnit={value:e.aU(),type:"string"},h.intervalUnitCount={value:e.bU(),type:"number"},e=c.yb(),h.minorIntervalUnit={value:e.aU(),type:"string"},h.minorIntervalUnitCount={value:e.bU(),type:"number"});c={};c["%AxisName"]={value:this.title().text(),type:"string"};e=new $.Nw(h);e.Hm({"%AxisScaleMax":"max","%AxisScaleMin":"min"});e.Dl(c);return $.yv(e)};$.g.Ob=function(){var a=this.g("orientation");return"top"==a||"bottom"==a}; +$.g.D=function(){var a=$.$y.u.D.call(this);$.cr(this,LG,a);this.ph("zIndex")||delete a.zIndex;a.title=this.title().D();a.labels=this.labels().D();a.minorLabels=this.qb().D();a.ticks=this.Ya().D();a.minorTicks=this.yb().D();return a};$.g.U=function(a,b){$.$y.u.U.call(this,a,b);$.Vq(this,LG,a,b);"title"in a&&this.title().ga(!!b,a.title);"padding"in a&&this.padding(a.padding);this.labels().ga(!!b,a.labels);this.qb().ga(!!b,a.minorLabels);this.Ya(a.ticks);this.yb(a.minorTicks)}; +$.g.R=function(){this.In&&$.ur(this.In,this.zg,this);this.In=null;$.sd(this.jb,this.Wa,this.line,this.Da,this.rc,this.mb,this.Rc);this.Rc=this.mb=this.rc=this.Da=this.line=this.Wa=this.jb=null;this.ci.length=0;this.Gk.length=0;this.Hq=null;$.$y.u.R.call(this)};$.H(fz,$.$y);$.Hu(fz,$.$y);var MG=$.$y.prototype;MG.title=MG.title;MG.labels=MG.labels;MG.minorLabels=MG.qb;MG.ticks=MG.Ya;MG.minorTicks=MG.yb;MG.scale=MG.scale;MG.getRemainingBounds=MG.zd;MG.isHorizontal=MG.Ob;MG.padding=MG.padding; +MG.getPixelBounds=MG.ob;MG.valueTarget=MG.dF;MG=fz.prototype;$.E("anychart.standalones.axes.linear",function(){var a=new fz;a.Ga("standalones.linearAxis");return a});MG.padding=MG.padding;MG.draw=MG.W;MG.parentBounds=MG.ja;MG.container=MG.O;$.H($.gz,Cv);$.gz.prototype.Ih=function(a){a:{var b=a.type;switch(b){case "mouseout":b="axismarkerout";break;case "mouseover":b="axismarkerover";break;case "mousemove":b="axismarkermove";break;default:a=null;break a}a={type:b,target:this,originalEvent:a,rawValue:iz(this),formattedValue:"Value: "+iz(this),offsetX:a.offsetX,offsetY:a.offsetY}}a&&this.dispatchEvent(a)};$.gz.prototype.qa=Cv.prototype.qa|4;$.gz.prototype.sa=Cv.prototype.sa;var NG={};$.Cq(NG,[$.Z.eK,[0,"scaleRangeMode",gl]]);$.U($.gz,NG); +$.g=$.gz.prototype;$.g.xc=function(){return this.ra};$.g.VK=function(a){if($.p(a)){var b="gantt"==(a&&$.D(a.Ma)&&a.Ma());if(a=b?a==this.j?null:a:$.ut(this.j,a,null,15,null,this.zg,this)){var c=this.j==a;this.j=a;var d=this.pa||this.b&&this.b.scale();d?a.da(!1):b||a.da(c);c||d||this.B(4,13)}}}; +$.g.Po=function(a){if($.p(a)){var b="gantt"==(a&&$.D(a.Ma)&&a.Ma());if(a=b?a==this.pa?null:a:$.ut(this.pa,a,null,15,null,this.zg,this)){var c=this.pa==a;this.pa=a;b||a.da(c);c||this.B(4,13)}return this}return this.pa||this.b&&this.b.scale()||this.j};$.g.n3=function(){return!!this.pa};$.g.zg=function(a){if(a.target==this.Po()){var b=0;$.X(a,4)&&(b|=4);$.X(a,2)&&(b|=1);this.B(4,b|8)}};$.g.d_=function(){this.B(4,9)}; +$.g.axis=function(a){return $.p(a)?(this.b!=a&&(this.b&&$.ur(this.b,this.d_,this),this.b=a,$.K(this.b,this.d_,this),this.B(4,13)),this):this.b};$.g.Pp=function(a,b,c,d){this.$g||(this.$g=new $.Ru);return $.p(a)?(this.$g.N.apply(this.$g,arguments),this):this.$g};$.g.we=function(a){return $.p(a)?(a=$.Gk(a),this.f!=a&&(this.f=a,this.B(4,9)),this):this.f?this.f:this.b?(a=this.b.g("orientation"),"left"==a||"right"==a?"horizontal":"vertical"):this.F};$.g.Ob=function(){return"horizontal"==this.we()}; +$.g.zc=function(){var a=$.gz.u.zc.call(this)&&!(null==iz(this)||!this.Po());if(!a)return a;a=this.scale().transform(iz(this),.5);if(0<=a&&1>=a||this.G)return this.B(6),!0;this.remove();this.I(6);return!1};$.g.T1=function(){var a=this.g("rotation");return null==a||(0,window.isNaN)(a)?this.Ob()?0:-90:a};$.g.oR=function(){var a=this.g("align");if(this.Ob()){if("left"==a)return"left-center";if("right"==a)return"right-center"}else{if("top"==a)return"center-top";if("bottom"==a)return"center-bottom"}return"center"}; +$.g.vA=function(){var a=this.g("anchor");if(!a||"auto"==a)switch(this.oR()){case "center-top":case "right-center":a="right-center";break;case "center-bottom":case "left-center":a="left-center";break;default:a="center"}return a};$.g.X1=function(){return this.i}; +$.g.ja=function(a,b,c,d){return $.p(a)?(null===a||$.J(a,$.I)?this.i=a:"object"==$.ka(a)?this.i=new $.I(a.left,a.top,a.width,a.height):this.i=new $.I(a||0,b||0,c||0,d||0),this.uo(),this):null!=iz(this)&&this.Po()&&this.i?(a=this.i.clone(),b=this.scale().transform(iz(this),.5),this.Ob()?(a.height=0,a.top=Math.round(this.i.top+this.i.height-b*this.i.height)):(a.width=0,a.left=Math.round(this.i.left+b*this.i.width)),a):null};$.g.uD=function(){var a=9;"consider"==this.g("scaleRangeMode")&&(a|=4);return a}; +$.g.mr=function(){return $.gz.u.mr.call(this)|4};$.g.xs=function(){return[iz(this)]};$.g.D=function(){var a=$.gz.u.D.call(this);$.cr(this,NG,a,"TextBase");this.f&&(a.layout=this.f);return a};$.g.U=function(a,b){$.gz.u.U.call(this,a,b);$.Vq(this,NG,a,b);"layout"in a&&a.layout&&this.we(a.layout);if("axis"in a){var c=a.axis;$.ea(c)?this.ra&&this.axis(this.ra.YG(c)):c.Hy&&c.Hy()&&this.axis(c)}};$.g.R=function(){$.qd(this.$g);this.b=this.ra=this.$g=null;$.gz.u.R.call(this)};$.H($.jz,$.V);$.jz.prototype.sa=$.V.prototype.sa;$.jz.prototype.qa=$.V.prototype.qa|$.RE|$.SE;var Uca=Date.UTC(2E3,10,29,23,59,59,999);$.g=$.jz.prototype;$.g.Tw=function(){return this.ye};$.g.labels=function(a){return $.p(a)&&this.Da!=a?(this.Da&&$.ur(this.Da,this.Kn,this),this.Da=a,$.K(this.Da,this.Kn,this),this):this.Da};$.g.Kn=function(){this.ye.length||$.lz(this);for(var a=this.labels().flatten(),b=0;b=f.offset?b=f:c=f}var h;b?c?h=$.Rl(c.color,b.color,(a-b.offset)/(c.offset-b.offset)):h=b.color:h=c.color;return $.A(h)?$.Tb(h):h.color}; +$.g.mS=function(a){this.pb();a=$.Ll($.Sl(a).wk);var b;var c=0;for(b=this.Xe.length;c=d?(l=d-1,f=!0):l--;var m=c[k].fp;if($.da(m)){m=(c[k].start+c[k].end)/2;var n=(c[l].start+c[l].end)/2}else n=c[l].fp;e.push(k==l?m:[m,n])}return e};$.H($.qz,gt);$.g=$.qz.prototype;$.g.Ma=function(){return"ordinal-color"};$.g.oN=function(){this.Co()};$.g.Jj=function(a){if($.p(a))return null===a?this.Xe=[]:$.A(a)&&(this.Xe=$.Ha(a)),this.Co(),this.va(2),this;if($.A(this.Xe)){this.tB||(this.tB=$.Ha(this.Xe));if(this.tB.length= "+c.start:"<= "+c.end:(0,window.isFinite)(c.start)?"> "+c.start:"< "+c.end;d||(d="default");c.name||(c.name=d);this.Ok.push(d)}}return this.Ok}; +$.g.Yy=function(a){return $.p(a)?(this.jd!=a&&(this.jd=a,a=a[a.length-1],null===a.equal&&null===a.from&&null===a.to&&null===a.greater&&null===a.less||this.jd.push({equal:null,less:null,greater:null,from:null,to:null}),this.bW||(this.bo=$.Gm("defaultOrdinalColorScale").autoColors(this.jd.length-1),this.bo.push("#000")),this.Co(),$.Zt(this.Ya()),this.va(4)),this):this.jd};$.g.sr=function(){this.pb();this.names();return this.yk}; +$.g.Dn=function(a){this.pb();var b=this.yk[this.yk.length-1];if(this.yk)for(var c=0;c=d.start&&a<=d.end&&-1d.start&&ad.length-1?d[d.length-1]:d[c])}}return b}; +$.g.mS=function(a){this.pb();a=$.Sl(a).wk;for(var b=window.NaN,c=0,d=this.yk.length;cb?-1E-5:0);this.f.push(b);b=a.o("x");var c=a.o("value"),d;if(d=a.o("label"))d=d.jc().value,this.b.push(b,c),this.f.push(d.x,d.y);if(d=a.o("marker"))d=d.jc().value,this.b.push(b,c),this.f.push(d.x,d.y)}}; +Nz.prototype.en=function(){for(var a=this.X.cg(),b=0;a.advance();)if(!a.o("missing")){a.o("size",this.coords[b++]);this.X.bf.yt(a);var c=a.o("label");c&&(c.jc({value:{x:this.coords[b++],y:this.coords[b++]}}),c.W());if(c=a.o("marker"))c.jc({value:{x:this.coords[b++],y:this.coords[b++]}}),c.W()}};Nz.prototype.cm=function(){this.en()};$.H(Oz,$.Mz);Oz.prototype.update=function(){this.i=CB(this.X);this.xa=this.X.g("isVertical");var a=this.X.clip();$.da(a)&&!a&&(this.i=this.X.xc().ob());this.xa?(this.b[0]=this.i.top,this.X.Ra().Ne()||(this.b[0]+=this.i.height),this.b[1]=0,(0,window.isNaN)(this.G)&&(this.G=this.i.height),this.f[0]=this.i.top):(this.b[0]=this.i.left,this.X.Ra().Ne()&&(this.b[0]+=this.i.width),this.b[1]=0,(0,window.isNaN)(this.G)&&(this.G=this.i.width),this.f[0]=this.i.left);this.f[1]=this.G}; +Oz.prototype.en=function(){this.xa?(this.i.top=this.coords[0],this.i.height=this.coords[1]):(this.i.left=this.coords[0],this.i.width=this.coords[1]);this.X.bs(this.i)};Oz.prototype.cm=function(){this.xa?(this.i.top=this.coords[0],this.i.height=this.coords[1]):(this.i.left=this.coords[0],this.i.width=this.coords[1]);this.X.bs(this.i);this.G=window.NaN};$.H(Pz,$.Mz); +Pz.prototype.update=function(){this.i=this.X.g("isVertical");this.b.length=this.f.length=0;for(var a=this.X.cg();a.advance();)if(!a.o("missing")){var b=a.o("x");(0,window.isNaN)(a.o("destinationValue"))&&a.o("destinationValue",a.o("value"));var c=a.o("destinationValue"),d=a.o("zero");this.b.push(d);this.f.push(c);if(c=a.o("label"))c=c.jc().value,this.i?this.b.push(d,b):this.b.push(b,d),this.f.push(c.x,c.y);if(c=a.o("marker"))c=c.jc().value,this.i?this.b.push(d,b):this.b.push(b,d),this.f.push(c.x,c.y)}}; +Pz.prototype.en=function(){for(var a=this.X.cg(),b=0;a.advance();)if(!a.o("missing")){a.o("value",this.coords[b++]);this.X.bf.yt(a);var c=a.o("label");c&&(c.jc({value:{x:this.coords[b++],y:this.coords[b++]}}),c.W());if(c=a.o("marker"))c.jc({value:{x:this.coords[b++],y:this.coords[b++]}}),c.W()}};Pz.prototype.cm=function(){this.en()};var TG={};TG.bar=Pz;TG.bubble=Nz;TG.area=Oz;TG.line=Oz;TG["range-area"]=Oz;TG["range-spline-area"]=Oz;TG["range-step-area"]=Oz;TG.spline=Oz;TG["spline-area"]=Oz;TG["step-area"]=Oz;TG["step-line"]=Oz;TG.column=Pz;TG["jump-line"]=Pz;TG.stick=Pz;TG.mekko=Pz;$.H($.Sz,$.V);$.V.prototype.l2=function(a,b){if(!$.p(this.PB[a])){a=$.wm(a);var c=$.Cr(this);this.PB[a]=$.Dr(c,"base");if(!b)for(var d=0;d=k;f.push(r?q:k);r&&(h++,q=h=k,u.push(r?q:k),r&&(h++,q=h=e&&t<=l&&(b.uu>r&&(b.uu=r),b.tu=e&&t<=l)for(F=0;Fr&&(b.uu=r),b.tuc&&(h.uu=c);h.tuc&&(h.uu=c),h.tuc){c=hb;var Lf=S}if(mce){e=dc;var Lg=S}if(dck){k=vb;var Mg=S}if(vem){m=Gd;var kd=S}if(Gdf+k||eh+l)return null;b=[];var m=this.gd();if("by-spot"==m.g("hoverMode"))for(c=m.g("spotRadius"),this.Ks?(d=(l-(e-c-h))/l,f=(l-(e+c-h))/l,h=a,a=e,e=h):(d=(a-c-f)/k,f=(a+c-f)/k),h=0,k=this.hb.length;h=$.Do});d=d&&f;e.push({series:k,pointsInRect:c,allPointsAreSelected:f})}a.seriesStatus=e;a.allPointsAreSelected=d;return a}; +$.g.$O=function(a){var b=a.shiftKey||a.ctrlKey||a.metaKey,c=a.seriesStatus;if(b&&a.allPointsAreSelected)for(a=0;ac.length&&(c=$.Ga(c,$.Ja(a.scales,c.length)))}d={};if($.A(c))for(b=0;bthis.LL()&&f.Ra(b[e.xScale]),"yScale"in e&&e.yScale>this.LL()&&f.bb(b[e.yScale]))}};$.g.eP=function(a,b,c){var d,e=[];for(d=0;dthis.LL()&&h.scale(c[f]))}};$.g.R=function(){$.qd(this.Og);$.Yz.u.R.call(this)};$.H($.hA,$.Vy);var dH={};$.Cq(dH,[[1,"stroke",$.Zq],[0,"value",$.Pq]]);$.U($.hA,dH);$.g=$.hA.prototype;$.g.qa=$.Vy.prototype.qa;$.g.sa=$.Vy.prototype.sa;$.g.we=function(a){return $.p(a)?(a=$.Gk(a),this.f!=a&&(this.f=a,this.B(4,9)),this):this.f?this.f:this.axis()?(a=this.axis().orientation(),"left"==a||"right"==a?"horizontal":"vertical"):this.G};$.g.scale=function(a){return this.Po(a)};$.g.fs=function(){this.lo()};$.g.kv=function(){$.Wy(this).stroke(this.g("stroke"))}; +$.g.R=function(){this.ta("stroke",null);$.hA.u.R.call(this)};$.g.D=function(){var a=$.hA.u.D.call(this);$.cr(this,dH,a);this.f&&(a.layout=this.f);return a};$.g.U=function(a,b){$.hA.u.U.call(this,a,b);$.Vq(this,dH,a)};$.H(jA,$.hA);$.Hu(jA,$.hA);var eH=$.hA.prototype;eH.scale=eH.scale;eH.axis=eH.axis;eH.layout=eH.we;eH.isHorizontal=eH.Ob;eH=jA.prototype;$.E("anychart.standalones.axisMarkers.line",function(){return new jA});eH.draw=eH.W;eH.parentBounds=eH.ja;eH.container=eH.O;$.H($.kA,$.Vy);$.fH={};$.Cq($.fH,[[1,"fill",$.$q],[0,"from",$.Pq],[0,"to",$.Pq]]);$.U($.kA,$.fH);$.g=$.kA.prototype;$.g.kR=function(){return"From: "+this.g("from")+" to: "+this.g("to")};$.g.qa=$.Vy.prototype.qa;$.g.sa=$.Vy.prototype.sa;$.g.we=function(a){return $.p(a)?(a=$.Gk(a),this.f!=a&&(this.f=a,this.B(4,9)),this):this.f?this.f:this.axis()?(a=this.axis().orientation(),"left"==a||"right"==a?"horizontal":"vertical"):this.G};$.g.scale=function(a){return this.Po(a)}; +$.g.xs=function(){return[this.g("from"),this.g("to")]};$.g.tK=function(){$.p(void 0)&&($.p((void 0).from)&&this.from((void 0).from),$.p((void 0).to)&&this.to((void 0).to));return{from:this.g("from"),to:this.g("to")}};$.g.fs=function(){$.Xy(this)};$.g.kv=function(){$.Wy(this).stroke(null).fill(this.g("fill"))};$.g.R=function(){this.ta("fill",null);$.kA.u.R.call(this)};$.g.D=function(){var a=$.kA.u.D.call(this);$.cr(this,$.fH,a,void 0,void 0,!0);this.f&&(a.layout=this.f);return a}; +$.g.U=function(a,b){$.kA.u.U.call(this,a,b);$.Vq(this,$.fH,a)};$.H(mA,$.kA);$.Hu(mA,$.kA);var gH=$.kA.prototype;gH.scale=gH.scale;gH.axis=gH.axis;gH.layout=gH.we;gH.isHorizontal=gH.Ob;gH=mA.prototype;$.E("anychart.standalones.axisMarkers.range",function(){return new mA});gH.draw=gH.W;gH.parentBounds=gH.ja;gH.container=gH.O;$.H($.nA,$.gz);var hH={};$.Cq(hH,[[0,"value",$.Pq]]);$.U($.nA,hH);$.g=$.nA.prototype;$.g.qa=$.gz.prototype.qa;$.g.sa=$.gz.prototype.sa;$.g.scale=function(a){return this.Po(a)};$.g.D=function(){var a=$.nA.u.D.call(this);$.cr(this,hH,a);return a};$.g.U=function(a,b){$.nA.u.U.call(this,a,b);$.Vq(this,hH,a,b)};$.H(oA,$.nA);$.Hu(oA,$.nA);var iH=$.nA.prototype;iH.scale=iH.scale;iH.axis=iH.axis;iH.layout=iH.we;iH.background=iH.background;iH.padding=iH.padding;iH.isHorizontal=iH.Ob;iH=oA.prototype; +$.E("anychart.standalones.axisMarkers.text",function(){return new oA});iH.draw=iH.W;iH.parentBounds=iH.ja;iH.container=iH.O;$.H(pA,Cv);pA.prototype.qa=Cv.prototype.qa|2;var jH={};$.Cq(jH,[[0,"format",$.kr],[0,"axisIndex",$.Pq]]);$.U(pA,jH);$.g=pA.prototype;$.g.Hf=function(a){return $.p(a)?(this.i!=a&&(this.i=a,this.B(16,1)),this):this.i};$.g.x=function(a){$.p(a)&&this.No!=a&&(this.No=a,this.B(4,9));return this};$.g.y=function(a){$.p(a)&&this.Oo!=a&&(this.Oo=a,this.B(4,9));return this}; +$.g.tf=function(){if(this.ja())var a=this.ja();else{a=new $.I(0,0,0,0);var b=this.xb.sb();a.width=this.padding().Lk(b.width);a.height=this.padding().$j(b.height)}b=a.width;var c=a.height;a=new $.I(0,0,this.Oi,this.Ni);var d=new $.gb(0,0);d.x=this.No;d.y=this.Oo;var e=this.vA(),f=$.Lo(new $.I(0,0,this.Oi,this.Ni),e);d.x-=f.x;d.y-=f.y;f=this.g("offsetX");var h=this.g("offsetY");$.ep(d,e,$.p(f)?$.L(f,b):0,$.p(h)?$.L(h,c):0);this.Lg+=d.x;this.Mg+=d.y;a.left=d.x;a.top=d.y;this.xb.x(this.Lg).y(this.Mg); +(b=this.xb.clip())?b.shape(this.Lg,this.Mg,this.nn,this.ln):(b=$.tk(this.Lg,this.Mg,this.nn,this.ln),this.xb.clip(b));return a};$.g.D=function(){var a=pA.u.D.call(this);$.cr(this,jH,a,"Crosshair Label");return a};$.g.U=function(a,b){pA.u.U.call(this,a,b);$.Vq(this,jH,a,b)};var kH=pA.prototype;kH.background=kH.background;kH.padding=kH.padding;$.H($.qA,$.Y);$.qA.prototype.qa=$.Y.prototype.qa|2;$.qA.prototype.sa=$.Y.prototype.sa|16;var lH={};$.Bq(lH,1,"xStroke",$.Zq);$.Bq(lH,1,"yStroke",$.Zq);$.Bq(lH,0,"displayMode",function(a){return $.zk(Hda,a,"float")});$.U($.qA,lH);$.g=$.qA.prototype;$.g.g=$.sr;$.g.jg=function(a){$.p(a)&&(this.Xb=a);return this.Xb};$.g.bh=$.rr;$.g.Xd=function(){var a=[this.oa];this.Y&&(a=$.Ga(a,this.Y.Xd()));return a};$.g.Wd=function(){var a=[this.Pa];this.Y&&(a=$.Ga(a,this.Y.Wd()));return a}; +$.g.parent=function(a){if($.p(a)){if(this.Y!=a){var b=String($.oa(this));if(null===a){$.ur(this.Y,this.Tc,this);a=$.rA(this);var c=$.sA(this);a=$.Ga(a,c);for(c=0;c=l.tb()&&a<=l.cb()&&d>=l.Vb()&&d<=l.Va()?(this.ka(), +l=$.rA(this),k=$.sA(this),this.Kt(l,!0,a,d),this.Kt(k,!1,a,d),this.da(!0)):this.Lc()}}; +$.g.Yx=function(a,b,c,d){var e=b?this.Pr:this.Sr;if((b=this.g(b?"xStroke":"yStroke"))&&!$.lp(b)){b=this.ja();var f=b.cb()-b.tb(),h=b.Va()-b.Vb();c-=b.tb();var k=d-b.Vb();d=a.Ob();var l;a=a.scale();c=d?c:k;f=d?f:h;h=d?b.tb():b.Vb();k=a.Ma();"linear"==k||"datetime"==k||"log"==k?l=c/f:l=a.transform(a.Mc(c/f),.5);0>l||1e||1=b.cb()||a<=b.Vb()||a>=b.Va())&&this.Lc()};$.g.remove=function(){this.Lc()};$.g.R=function(){this.Yl&&(this.Yl.gc("mouseover",this.If,!1,this),this.Yl.gc("mousemove",this.If,!1,this),this.Yl.gc("mouseout",this.hg,!1,this),this.Yl=null);$.sd(this.Pr,this.Sr,this.hQ,this.kQ);this.Pr=this.Sr=this.hQ=this.kQ=null;$.qA.u.R.call(this)}; +$.g.enabled=function(a){return $.p(a)?(this.Pa.enabled!=a&&(this.Pa.enabled=a,this.B(1,32777),this.Pa.enabled?this.da(!0):(0,window.isNaN)(this.Lo)&&this.ka()),this):this.g("enabled")};$.g.D=function(){var a=$.qA.u.D.call(this);$.cr(this,lH,a,"Crosshair");var b;var c=[];var d=$.rA(this),e=$.sA(this);for(b=0;b=this.b.length?this.qf[a-this.b.length]:this.b[a]};$.g.ty=function(a){return this.b[a]};$.g.vy=function(a){return this.qf[a]};$.g.V5=function(a){a.scale(this.bb())};$.g.mH=function(){return 2097152};$.g.ZZ=function(){return new $.hA}; +$.g.Ym=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.og[c];if(!e){e=this.ZZ();var f=$.Dr($.Cr(this),"defaultLineMarkerSettings");e.Ga(f);e.ra=this;$.iA(e,this.xa()?"vertical":"horizontal");this.og[c]=e;e.kb(this);$.K(e,this.Jw,this);this.B(5242880,1)}return $.p(d)?(e.N(d),this):e};$.g.$Z=function(){return new $.kA}; +$.g.gn=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.rg[c];if(!e){e=this.$Z();var f=$.Dr($.Cr(this),"defaultRangeMarkerSettings");e.Ga(f);e.ra=this;$.lA(e,this.xa()?"vertical":"horizontal");this.rg[c]=e;e.kb(this);$.K(e,this.Jw,this);this.B(5242880,1)}return $.p(d)?(e.N(d),this):e};$.g.a_=function(){return new $.nA}; +$.g.mn=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.tg[c];if(!e){e=this.a_();var f=$.Dr($.Cr(this),"defaultTextMarkerSettings");e.Ga(f);e.ra=this;$.hz(e,this.xa()?"vertical":"horizontal");this.tg[c]=e;e.kb(this);$.K(e,this.Jw,this);this.B(5242880,1)}return $.p(d)?(e.N(d),this):e};$.g.Jw=function(a){var b=4227072;$.X(a,4)&&(b|=327680);this.B(b,1)}; +$.g.qV=function(a){for(var b=0,c=$.Ga(this.og,this.rg,this.tg),d=0;dc.top&&(e=new $.I(c.left,c.top,c.width,u.top-c.top));break;case "bottom":Gc.left&&(e=new $.I(c.left,v,u.left-c.left,x));break;case "right":Fh);q=0;for(d=f.length;qd?("layout"in e||(e.layout=a.Ob()?"horizontal":"vertical"),"scale"in e||$.gA(e,"scale",a.scale(),b,c)):e.axis=d;return e}; +$.g.DX=function(a,b,c,d){var e=a.D();a.n3()&&$.gA(e,"scale",a.Po(),b,c);if(a=a.axis())d=(0,$.za)(d,$.oa(a)),0>d?("layout"in e||(e.layout=a.Ob()?"horizontal":"vertical"),"scale"in e||$.gA(e,"scale",a.scale(),b,c)):e.axis=d;return e};$.g.R=function(){$.sd(this.b,this.qf,this.og,this.rg,this.tg,this.Yg,this.Zg,this.jh,this.kh,this.Xa,this.ea,this.ud);delete this.b;delete this.qf;this.ud=this.ea=this.Xa=this.kh=this.jh=this.Zg=this.Yg=this.tg=this.rg=this.og=null;$.EA.u.R.call(this)};var qH=$.EA.prototype; +qH.isVertical=qH.xa;$.g=$.MA.prototype;$.g.ma=function(){return this.index};$.g.xc=function(){return this.ya};$.g.get=function(a){return this.ya.data().get(this.index,a)};$.g.set=function(a,b){this.ya.data().set(this.index,a,b);return this};$.g.lb=function(a){var b=this.xc(),c=$.Bx(b.state,$.Co,this.index);return $.p(a)&&c!=a?(a?b.Tj(this.index):b.Nd(this.index),this):c};$.g.selected=function(a){var b=this.xc(),c=$.Bx(b.state,$.Do,this.index);return $.p(a)&&c!=a?(a?b.select(this.index):b.ie(this.index),this):c}; +$.g.hy=function(){return this.indexb?this.Id&&(n="high",k="highHatchFill"):this.Pd&&(n="low",k="lowHatchFill"),h.path=n,h.oe=k):f?(this.X.gh()||(this.ba?ab||(0,window.isNaN)(b)?(n="rising",k="risingHatchFill"):ab||(0,window.isNaN)(b)?(l="risingStroke",m="risingFill",k="risingHatchFill"):aa;a=Math.abs(a);a=(a-this.pW)/(this.T3-this.pW);if((0,window.isNaN)(a)||!(0,window.isFinite)(a))a=.5;a=this.qW+a*(this.U3-this.qW);return b?-a:a};$.g.Be=function(){return this.Cu.g("yValues")};$.g.sl=function(){return this.Aa};$.g.xc=function(){return this.ya};$.g.$=function(){return this.iterator||this.Ec()}; +$.g.Ec=function(){return this.iterator=this.cg()};$.g.tl=function(){return this.ya.Ra()};$.g.bb=function(a){if($.p(a)){if(a){if(a=$.ut(this.Fc,a,null,15,null,this.zg,this)){var b=this.Fc==a;this.Fc=a;this.Fc.da(b);b||this.B(1024,5)}}else this.Fc&&(this.Fc&&$.ur(this.Fc,this.zg,this),this.Fc=null,this.B(1024,5));return this}return this.Fc||this.jf.bb()};$.g.zg=function(a){var b=0;$.X(a,4)&&(b|=4);$.X(a,2)?this.B(1024,b|1):this.va(b)};$.g.Lr=function(a,b){return this.Qe(this.tl().transform(a,b),!0)}; +$.g.Ip=function(a,b){return this.Qe(this.bb().transform(a,b),!1)};$.g.hi=function(a){return $.p(a)?(this.Cu.N(a),this):this.Cu};$.g.error=function(a){pB(this)||$.kl(12,void 0,[this.kk()]);this.Lv||(this.Lv=new hB(this),$.K(this.Lv,this.Pia,this));return $.p(a)?(this.Lv.N(a),this):this.Lv};$.g.Pia=function(a){var b=0;$.X(a,1)&&(b|=1);$.X(a,4)&&(b|=4);this.B(1024,b)};$.g.vs=function(a){return this.error().vs(a)}; +$.g.$T=function(a){var b=a?this.error().$J():this.error().SJ();if($.D(b)){var c=this.Ge();b=$.Wb(b.call(c,c))}if(this.kt()){var d=this.i2(a?"xErrorStroke":"valueErrorStroke");$.D(d)?(c=this.Ge(b),d=$.Wb(d.call(c,c))):d&&(d=$.Wb(d))}return d||b}; +$.g.gT=function(a){if(a=!a.o("missing")){var b=this.error(),c=b.Sa.$();a=c.get("xError")||b.hF();var d=c.get("xLowerError")||b.iF(),e=c.get("xUpperError")||b.jF(),f=c.get("valueError")||b.bF(),h=c.get("valueLowerError")||b.cF();b=c.get("valueUpperError")||b.fF();f=$.p(h)||$.p(b)||$.Bo(f)||!$.Ko(f);a=$.p(d)||$.p(e)||$.Bo(a)||!$.Ko(a)||f}if(a)switch(a=this.error(),d=a.mode(),e=this.g("isVertical"),d){case "x":a.W(!0,e);break;case "value":a.W(!1,e);break;case "both":a.W(!0,e),a.W(!1,e)}}; +$.g.clip=function(a){return $.p(a)?(null===a&&(a=!1),this.gg!=a&&(this.gg=a,this.B(4096,1)),this):this.gg};$.g.Ls=function(a){this.tp||(this.tp=new $.kB,$.K(this.tp,this.KW,this));return $.p(a)?(this.tp.N(a),this):this.tp};$.g.KW=function(a){var b=64,c=!1;$.X(a,8)&&(b|=8,c=!0);this.va(b,c)}; +$.g.qD=function(a){var b=this.Ls();b.I(b.sa);var c=Bv.prototype.D.call(b);$.p(b.GD())&&(c.iconTextSpacing=b.GD());var d=b.g("text");$.p(d)&&(c.text=d);$.p(b.zy())&&(c.iconEnabled=b.zy());$.p(b.HD())&&(c.iconType=b.HD());$.p(b.kw())&&(c.iconSize=b.kw());$.p(b.Gs())&&(c.iconFill=b.Gs());$.p(b.Is())&&(c.iconStroke=b.Is());$.p(b.Hs())&&(c.iconHatchFill=b.Hs());$.p(b.iw())&&(c.iconMarkerType=b.iw());$.p(b.gu())&&(c.iconMarkerFill=b.gu());$.p(b.hu())&&(c.iconMarkerStroke=b.hu());$.p(b.disabled())&&(c.disabled= +b.disabled());b=this.g("color");d=this.RC();a=c.text||a;$.z(a)&&(a=$.Xu($.Vu.vd(),a));c.text=$.D(a)?a.call(d,d):this.c2(d);c.disabled="disabled"in c?!!c.disabled:!this.enabled();c.meta=this.o();"marker"!=c.iconType||this.check(8192)||(c.iconFill=this.ca.Eb().g("fill"),c.iconStroke=this.ca.Eb().g("stroke"));c.iconType=this.pD(c.iconType,d);c.iconEnabled="iconEnabled"in c?!!c.iconEnabled:!0;c.iconStroke=this.dH(c.iconStroke,2,b,d);c.iconFill=this.dH(c.iconFill,1,b,d);c.iconHatchFill=this.dH(c.iconHatchFill, +3,this.Eh(),d);this.check(4194304)&&this.ca.Eb().enabled()?(c.iconMarkerType=c.iconMarkerType||this.ca.Eb().type(),c.iconMarkerFill=c.iconMarkerFill||this.ca.Eb().g("fill"),c.iconMarkerStroke=c.iconMarkerStroke||this.ca.Eb().g("stroke")):(c.iconMarkerType=null,c.iconMarkerFill=null,c.iconMarkerStroke=null);return c};$.g.pD=function(a){"marker"==a?(this.check(8192)?a=this.g("type"):this.check(4194304)?a=this.ca.Eb().type():a="square","line"==a&&(a="v-line")):$.D(a)||(a=$.Vk(a));return a}; +$.g.dH=function(a,b,c){if(a)$.D(a)?(b={sourceColor:c},a=a.call(b,b)):a=$.Yl(a);else{if(2==b)var d="stroke";else if(3==b){if(this.check(8))return null;d="hatchFill"}else this.check(8)?(d="stroke",b=2):d="fill";a=this.ca.g(d);var e=this.ca.oa[d];if($.D(a)&&a==e)return b=this.RC([{sourceColor:{value:c,type:"string"}}]),a.call(b,b);a=$.jm(d,b,!1)(this,$.nm,!0)}return a};$.g.c2=function(){return this.name()}; +$.g.Ua=function(a){if(!this.ox&&(this.ox=new $.Ew(0),this.ox.df(),this.ya.p6())){var b=this.ya,c=b.Ua();this.ox.parent(c);this.ox.ya(b);$.W(this,"tooltip",this.ox)}return $.p(a)?(this.ox.N(a),this):this.ox};$.g.kd=function(a){if($.p(a)){if(null===a&&this.vb)this.vb=null,this.B(65536,129);else if(a=$.ut(this.vb,a,null,48,null,this.Vp,this)){var b=this.vb==a;this.vb=a;this.vb.da(b);b||this.B(65536,129)}return this}return this.vb};$.g.Bn=ba(28);$.g.Vp=function(a){$.X(a,6)&&this.B(65536,129)}; +$.g.Qa=function(a){return $.p(a)?(this.ca.N(a),this):this.ca};$.g.lb=function(a){return $.p(a)?(this.za.N(a),this):this.za};$.g.selected=function(a){return $.p(a)?(this.Ea.N(a),this):this.Ea};$.g.i2=function(a){return this.kt()?this.$().get(a):void 0};$.g.ph=function(a){return null!=this.Pa[a]};$.g.g=function(a){var b=this.Pa[a];null==b&&(b=this.oa[a],null!=b||(b=this.Od[a]));return b}; +$.g.cH=function(a){return null!=this.Pa[a]?this.Pa[a]:null!=this.jf.Pa[a]?this.jf.Pa[a]:null!=this.ya.Pa[a]?this.ya.Pa[a]:null!=this.oa[a]?this.oa[a]:null!=this.jf.oa[a]?this.jf.oa[a]:null!=this.ya.oa[a]?this.ya.oa[a]:this.Od[a]}; +$.g.sc=function(a,b,c,d,e,f,h){var k=0==b?this.ca:1==b?this.za:this.Ea;if(h)return d(k.g(a));if(this.kt()){h=c.get(0==b?"normal":1==b?"hovered":"selected");var l=$.fp($.p(h)?h[a]:void 0,c.get($.om(b,a)),k.g(a))}if($.p(l))l=d(l);else{a=f||a;if(a in this.ua&&(l=this.g(a),$.p(l)))return d(l);e&&(k=this.Ea);l=k.Pa[a];null==l&&(l=k.oa[a],null!=l||b||(l=this.Od[a]),$.p(l)&&(l=d(l)))}return l};$.g.S1=function(){return this.O()}; +$.g.iA=function(a,b,c,d,e,f,h,k,l){var m;var n=h.ma();if((0,window.isNaN)(n))return null;f&&((m=this.QH[n])||(m=this.QH[n]=[]));var q;a[0]&&(q=a[0].call(this.ca));var r,t,u,v,w,x,y;if(h.o("missing")||h.o("skipDrawing"))a=!1;else{k=$.lm(k);var B=d&&this.kt();b[0]&&(r=b[0].call(this.ya.ca));var F=q;if(B)var G=(d=h.get("normal"))?d[c[0]]:h.get(c[0]);if(3this.fa.left+this.fa.width){var f=d;d=(0,$.za)($.Mo,f);0<=d&&(f=$.Mo.length,f=$.Mo[(f-d)%f]);d=f}if($.So(d)&&c.topthis.fa.top+this.fa.height)c=(0,$.za)($.Mo,d),0<=c&&(d=$.Mo.length,d=$.Mo[(d-c+4)%d]);d=$.Qo(d,e);b.rk(d)}; +$.g.SX=function(a,b,c,d,e,f,h,k,l,m,n,q,r){$.nv(a,$.uo([r,0,h,0,q,$.qo,f,$.qo,n,$.qo,e,$.qo,m,0,d,0,l,$.qo,c,$.qo,k,$.qo,b,$.qo,q,$.ro,f,$.ro,e,$.ro,a,$.qo,a,$.so,l,$.ro,c,$.ro,b,$.ro]))};$.g.M_=$.ia; +$.g.$L=function(a,b,c,d,e,f,h){if(e){a=a[0];var k=d;(d=a.ae(c))||(d=a.add(void 0,void 0,c));d.Hf(e);k=this.XN(d,k);d.jc(k);d.Hi();b.unshift(d);this.SX.apply(this,b);b=d.ic("anchor");pv(d,this.g("isVertical"));$.p(h)&&"auto"==b&&(h=this.AE(h,Number(d.ic("rotation"))||0),d.rk(h),this.r0(a,d));this.M_(d,c);c=d}else c=zB(this,a,c,d);f&&c.W();return c};$.g.labels=function(a){return $.p(a)?(this.ca.labels(a),this):this.ca.labels()};$.g.th=function(a){return $.p(a)?(this.ca.th(a),this):this.ca.th()}; +$.g.sh=function(a){return $.p(a)?(this.ca.sh(a),this):this.ca.sh()};$.g.ce=function(a){$.X(a,1)&&this.B(256,1025)}; +$.g.tf=function(a,b,c){var d=this.xc(),e=[this.ca.labels,this.za.labels,this.Ea.labels],f=this.iL()?[d.Qa().labels,d.lb().labels,d.selected().labels]:[],h=["label","hoverLabel","selectLabel"];a.o("isMaxPoint")?(e.push(this.ca.sh,this.za.sh,this.Ea.sh),this.iL()&&f.push(d.Qa().sh,d.lb().sh,d.selected().sh),h.push("maxLabel","hoverMaxLabel","selectMaxLabel")):a.o("isMinPoint")&&(e.push(this.ca.th,this.za.th,this.Ea.th),this.iL()&&f.push(d.Qa().th,d.lb().th,d.selected().th),h.push("minLabel","hoverMinLabel", +"selectMinLabel"));a.o("label",this.iA(e,f,h,this.kE(),!0,null,a,b,c))};$.g.TQ=function(){};$.g.hT=function(a){a.W()};$.g.XN=function(a,b){return b};$.g.Eb=function(a){return $.p(a)?(this.ca.Eb(a),this):this.ca.Eb()};$.g.Mn=function(a){$.X(a,1)&&this.B(128,65)};$.g.gq=function(a,b,c){a.o("marker",this.iA([this.ca.Eb,this.za.Eb,this.Ea.Eb],[],["marker","hoverMarker","selectMarker"],this.vO(),!1,null,a,b,c))}; +$.g.Zv=function(a){a=$.p(a)?a:$.jm(this.check(8)?"stroke":"fill",1,!1)(this,$.nm,!0,!0);return $.am(a,1,!0)};$.g.py=function(){return $.Xl(this.ca.Eb().g("fill"))};$.g.el=function(a){return $.p(a)?(this.ca.el(a),this):this.ca.el()};$.g.rja=function(a){$.X(a,1)&&this.B(128,1)};$.g.ZL=function(a,b,c){var d=a.o("outliers");d&&d.length&&this.iA([this.ca.el,this.za.el,this.Ea.el],[],["outlierMarker","hoverOutlierMarker","selectOutlierMarker"],this.RW(),!1,d,a,b,c)};$.g.kE=function(){return!1};$.g.vO=function(){return!1}; +$.g.RW=function(){return!1};$.g.G4=function(){return!1};$.g.gh=function(){return!1};$.g.iB=function(){return!1};$.g.yE=function(){if(this.gh()&&this.eh()&&this.rp()){var a=this.$();for(a.reset();a.advance();)AB(a);AB(this.KM());AB(this.JM())}};$.g.remove=function(){this.check(4)?$.ZA(this.Rf,null):this.Aa&&this.Aa.remove();var a=this.ca.labels();a.Vd()&&(a.Vd().remove(),a.B(2));if(a=this.ca.Eb())a.remove(),a.B(2);if(a=this.ca.el())a.remove(),a.B(2)}; +$.g.ut=function(a){this.kl||(this.kl=new ox(this),$.K(this.kl,this.GW,this),$.J(this.ya,$.Cx)&&(mx(this.kl,this.ya.ut()),mx(this.kl).va(2)));return $.p(a)?(this.kl.N.apply(this.kl,arguments),this):this.kl};$.g.GW=function(){this.B(32,1)}; +$.g.W=function(){if(!this.zc())return this;this.ka();$.p(this.Od.color)&&this.J(16768)&&this.Kq(this.Od.color);this.J(32768)&&(this.rE(),this.I(32768));if(this.J(4)){this.fa=this.ob();this.Lx=this.$g?this.$g.Ej(this.fa):this.fa;var a=Math.min(this.fa.height,this.fa.width);this.qW=$.L(this.Tha,a);this.U3=$.L(this.Mha,a);this.B(7168)}this.J(512)&&(this.Ec(),this.ZW(),this.B(68640,2049),this.I(512));this.i0();this.J(1024)&&this.B(24960);a=[];var b=[],c=!1;this.J(1026)&&(this.$W(),this.nE());if(this.J(1282)){var d= +this.ca.labels();var e=this.ca.th().enabled()||this.ca.sh().enabled()||this.za.labels().enabled()||this.Ea.labels().enabled()||this.za.th().enabled()||this.Ea.th().enabled()||this.za.sh().enabled()||this.Ea.sh().enabled();wB(this,d,e,this.kE(),$.XG,256)&&(e=this.zIndex()+this.zQ+(this.gh()?1:0),d.zh=e,d.B(8),this.check($.XG)&&a.push(this.tf),b.push(d),c=!0);this.ca.th().I(4294967295);this.ca.sh().I(4294967295);this.za.th().I(4294967295);this.za.sh().I(4294967295);this.Ea.th().I(4294967295);this.Ea.sh().I(4294967295); +this.I(256)}this.J(1154)&&(d=this.ca.Eb(),e=this.za.Eb().enabled()||this.Ea.Eb().enabled(),wB(this,d,e,this.vO(),4194304,128)&&(e=this.zIndex()+1.2E-5+(this.gh()?1:0),d.zh=e,this.check(4194304)&&a.push(this.gq),b.push(d)),this.I(128));if(this.J(9218)){this.eD||(this.eD=[]);if(this.nA)for(;this.nA.length;)d=this.nA.pop(),d.clear(),d.parent(null),this.eD.push(d);else this.nA=[];pB(this)&&"none"!=this.error().mode()&&(this.G4()||jB(this.error()))&&a.push(this.gT);this.I(8192)}this.J(17410)&&(d=this.ca.el(), +e=this.za.el().enabled()||this.Ea.el().enabled(),wB(this,d,e,this.RW(),256,16384)&&(e=this.zIndex()+1.1E-5,d.zh=e,this.check(256)&&a.push(this.ZL),b.push(d)),this.I(16384));d=a.length;if(this.J(1024)){if(e=this.rX()){var f=this.Be();this.bJ(e,f);c&&this.TQ();if(this.ya.g("categorizedBySeries")){c=this.Ec();var h=this.Gha;var k=this.ya.g("barsPadding");var l=this.ya.g("barGroupsPadding");var m=c.Sa.pd.cO;this.Pz=1/(l+k*(m-1)+m);$.qB(this,this.Pz);this.nE();this.Hd(!1)}else h=this.XA,this.Hd(),c=this.Ec(); +if(k=this.KM())this.XA(k,f,e),this.wn(k,this.rr(k.ma()));for(c.reset();c.advance();)for(c.o("destinationValue",window.NaN),l=this.rr(c.ma()),h.call(this,c,f,e),this.wn(c,l),k=0;k=e;if(null===h?0:!(0,window.isNaN)(k)&&0==k)e=this.g("isVertical"),h=this.bb().Ne(),e=!(e^h);h=b.cN;k=a.o("valueRatio");k=$.p(k)?!k:!c;e?(c=-c,(0,window.isNaN)(b.jB)?(b.jB=f+c,c=b.jB,h||(k=!1)):(f=Math.min(f,b.jB),c=f+c,b.jB=c)):(0,window.isNaN)(b.dB)?(b.dB=f+c,c=b.dB,h||(k=!1)):(f=Math.max(f,b.dB),c=f+c,b.dB=c);a.o("value",c);a.o("zero",f); +a.o("skipDrawing",k)}return d};$.g.Eha=function(a,b,c,d){if(!a.o("missing")){var e=a.o("value");b=a.o("zero");var f=this.jH(a),h=Number(f);c=Math.max(Math.abs(e-b),this.oW);e=b>=e;if(null===f?0:!(0,window.isNaN)(h)&&0==h)f=this.g("isVertical"),h=this.bb().Ne(),e=!(f^h);e&&(c=-c);a.o("value",b+c)}return d};$.g.Cha=function(a,b,c,d){if(!a.o("missing")){b=a.o("high");c=a.o("low");var e=(b+c)/2,f=Math.max(Math.abs(c-b),this.oW)/2;b>=c&&(f=-f);a.o("high",e-f);a.o("low",e+f)}return d}; +$.g.Iha=function(a,b,c,d,e){b=this.bb();b={value:$.Za(b.transform(a.o("stackedValue"),.5),0,1),zero:$.Za(b.transform(a.o("stackedZero"),.5),0,1),prevValue:b.transform(a.o("stackedValuePrev"),.5),prevZero:b.transform(a.o("stackedZeroPrev"),.5),nextValue:b.transform(a.o("stackedValueNext"),.5),nextZero:b.transform(a.o("stackedZeroNext"),.5)};this.YA(a,b,e);a.o("zeroMissing",a.o("stackedMissing"));if(e=a.o("shared")){c=Math.abs(b.value-b.zero);b=e.cN;var f=a.o("valueRatio");c=$.p(f)?!f:!c;e.g1||b||(c= +!1,e.g1=!0);a.o("skipDrawing",c)}return d};$.g.zha=function(a,b,c,d){for(var e,f,h=this.bb(),k=0;k=e){f=window.Infinity;e=-window.Infinity;var h=Math.min.apply(null,this.d5);b=Math.max.apply(null,this.d5);var k;for(k=0;kl&&(f=l))}f=(0,window.isFinite)(f)&&h>=f;b=(0,window.isFinite)(e)&&b<=e}a.o("isMinPoint", +f);a.o("isMaxPoint",b);return d};$.g.M3=function(a,b,c,d,e){for(var f=this.bb(),h={},k=0;kf&&k>h?d+=h-f:k>e&&f=this.pd.rj&&a<=this.pd.lastIndex}; +$.g.ZT=function(a,b,c,d){var e=this.data(),f=e.$(),h=this.bb(),k=!1,l=!1,m=this.Bk(),n,q=[];this.eh()&&this.kt()&&q.push("zIndex");m&&q.push("size");this.check(256)&&q.push("outliers");pB(this)&&(iB(this.Ra())&&(e.hd("xError")&&(q.push("xError"),k=!0),e.hd("xLowerError")&&(q.push("xLowerError"),k=!0),e.hd("xUpperError")&&(q.push("xUpperError"),k=!0)),iB(this.bb())&&(e.hd("valueError")&&(q.push("valueError"),l=!0),e.hd("valueLowerError")&&(q.push("valueLowerError"),l=!0),e.hd("valueUpperError")&&(q.push("valueUpperError"), +l=!0)));$.J(h,$.$t)&&(n=$.cu(h))&&e.hd(n)&&q.push(n);var r=this.Ra();$.J(r,$.$t)&&(n=$.cu(r))&&e.hd(n)&&q.push(n);var t=this.lV();for(r=0;f.advance();){var u=c(f.get("x"));if(!d(u)){var v={};v.x=u;var w;u=!1;var x=this.Be();var y=0;for(w=x.length;yy&&!this.g("displayNegative"))&&(u=!0);y={};u?y.missing=1:(y.missing=0,r++);y.rawIndex=f.ma(); +y.ordinalIndex=r-1;v={data:v,o:y};this.UW(f,v,t);b(a,v)}}if(this.check($.lB)&&this.g("connectMissingPoints")&&r!==a.length)for(c=b=null,f=d=window.NaN,m=h=!1,q=0;qe&&(e=~e),f=$.Oa(this.pd.data,function(a){return b-a.data.x}),0>f&&(f=~f);if(!(0,window.isNaN)(e)&&!(0,window.isNaN)(f)){if(e>f){var h=e;e=f;f=h}if(d)for(h=this.pd.data,d=0;d=e&&l<=f&&c.push(k.o.rawIndex)}else for(f=Math.min(f,this.pd.data.length- +1),d=e;d<=f;d++)c.push(d)}return c}c=this.Ra();if(e=$.J(c,$.$t))a=c.Yv(a),b=c.Yv(b);return this.vG.pM(a,b,e)};$.g.qk=function(a,b){if(LB(this)){var c=this.$();if(8===c.o("missing"))return b;var d=c.o("shapes");this.eh()&&(this.Rf.Mo(a,d),this.Rf.VB(a,d));this.check(256)&&this.ZL(c,a,!0);this.bf.aF(c,a);this.check(4194304)&&this.gq(c,a,!0);this.check($.XG)&&this.tf(c,a,!0);return b}};$.g.vm=$.ia; +$.g.nl=function(a){if(LB(this)){var b=this.$(),c=b.o("shapes");this.Rf.Mo(a,c);this.bf.aF(b,a);this.check(256)&&this.ZL(b,a,!0)}};$.g.pq=$.ia;$.g.ej=function(a){return $.p(a)?(a=null===a?null:$.Bk(a),a!=this.et&&(this.et=a),this):this.et};$.g.Xl=function(a){return $.p(a)?this:this.ya.gd().g("hoverMode")};$.g.Tj=function(a){$.p(a)?this.$i(a):this.$k();return this}; +$.g.Nd=function(a){var b;if(b=!$.ux(this.state,$.Co))b=!(this.state.fk()&$.Co);if(b||!this.enabled())return this;var c;$.p(a)?c=a:c=this.state.Gc==$.nm?window.NaN:void 0;this.state.Vh($.Co,c);return this};$.g.$i=function(a){if(!this.enabled())return this;if($.A(a)){for(var b=$.Ax(this.state,$.Co),c=0;cc&& +(c=window.NaN);a.pointIndex=c}return a};$.g.Ih=function(a){(a=this.Tg(a))&&this.dispatchEvent(a)}; +$.g.Tg=function(a){var b=a.type;switch(b){case "mouseout":b="pointmouseout";break;case "mouseover":b="pointmouseover";break;case "mousemove":b="pointmousemove";break;case "mousedown":b="pointmousedown";break;case "mouseup":b="pointmouseup";break;case "click":case "touchstart":b="pointclick";break;case "dblclick":b="pointdblclick";break;default:return null}var c;a.target!=this.Qa().el()||(0,window.isNaN)(a.markerIndex)?"pointIndex"in a?c=a.pointIndex:"labelIndex"in a?c=a.labelIndex:"markerIndex"in +a&&(c=a.markerIndex):c=dda(this,a.markerIndex);c=$.N(c);a.pointIndex=c;var d=this.cg();d.select(c)||d.reset();return{type:b,actualTarget:a.target,series:this,iterator:d,pointIndex:c,target:this,originalEvent:a,point:this.be(c)}};$.g.be=function(a){var b;this.Bk()?b=new OA(this,a):b=new $.NA(this,a);return b}; +$.g.D=function(){var a=$.FB.u.D.call(this);$.cr(this,hI,a);if(this.pd){for(var b=[],c=this.data(),d=new EB(this);d.advance();){var e=d.o("rawIndex");(0,window.isNaN)(e)?b.push({x:d.get("x")}):b.push(Pr(c,e))}a.data=b}else a.data=this.data().D();$.p(this.ej())&&(a.selectionMode=this.ej());return a};$.g.U=function(a,b){$.FB.u.U.call(this,a,b);$.Vq(this,hI,a,b);"data"in a&&this.data(a.data||null);this.ej(a.selectionMode)}; +$.g.R=function(){$.qd(this.gm);delete this.vG;this.fb=this.pd=this.state=this.de=this.gm=null;$.FB.u.R.call(this)};var iI=$.FB.prototype;iI.data=iI.data;iI.xScale=iI.Ra;iI.hover=iI.Tj;iI.unhover=iI.Nd;iI.select=iI.select;iI.unselect=iI.ie;iI.selectionMode=iI.ej;iI.getPoint=iI.be;iI.excludePoint=iI.t1;iI.includePoint=iI.iV;iI.keepOnlyPoints=iI.r3;iI.includeAllPoints=iI.hV;iI.getExcludedPoints=iI.EM;$.H($.OB,$.Y);var NB=1E6;$.OB.prototype.qa=$.Y.prototype.qa;$.OB.prototype.sa=$.Y.prototype.sa|464;$.OB.prototype.K=function(a){this.aa||(this.aa=new ZB(this),$.W(this,"thumbs",this.aa));return $.p(a)?(this.aa.N(a),this):this.aa}; +var jI=function(){function a(a){return function(b){var c=$.Fo(b,null);return null===b?this.vf(a):null===c?this.g(a):c}}var b={};$.Cq(b,[[0,"height",a("height")],[0,"minHeight",a("minHeight")],[0,"maxHeight",a("maxHeight")],[0,"orientation",nr],[0,"inverted",$.Qq],[0,"autoHide",$.Qq],[1,"fill",$.$q],[1,"selectedFill",$.$q],[1,"outlineStroke",$.Zq],[0,"allowRangeChange",$.Qq]]);return b}();$.U($.OB,jI);$.g=$.OB.prototype; +$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.K(this.Wa,this.fm,this),$.W(this,"padding",this.Wa));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa};$.g.fm=function(a){$.X(a,2)&&this.B(4,9)};$.g.Ob=function(){return"bottom"==this.g("orientation")||"top"==this.g("orientation")};$.g.remove=function(){this.Aa&&this.Aa.remove()};$.g.Oe=function(){return this.enabled()&&(!this.g("autoHide")||this.g("allowRangeChange")||0!=this.F||this.j!=NB)}; +$.g.W=function(){if(!this.zc())return this;this.I(256);if(!this.Oe())return this.remove(),this.B(2),this;if(this.pf())return this;this.Aa||(this.Aa=$.ok(),this.f=$.qk(),this.f.zIndex(100),this.b=$.qk(),this.b.zIndex(100),this.ba=this.Aa.rect(),this.ba.zIndex(1),this.dO=$.tk(),this.ba.clip(this.dO),this.G=this.Aa.rect(),this.G.zIndex(50),this.vB=$.tk(),this.G.clip(this.vB),this.P=this.Aa.path(),this.P.zIndex(99),$.Bu(this,this.Aa,this.Gaa,this.$ha),this.wc.wa(this.f,"mouseover",this.A6),this.wc.wa(this.f, +"mouseout",this.z6),this.wc.Ce(this.f,"mousedown",this.ZE),this.wc.Ce(this.f,"touchstart",this.ZE),this.wc.wa(this.b,"mouseover",this.A6),this.wc.wa(this.b,"mouseout",this.z6),this.wc.Ce(this.b,"mousedown",this.ZE),this.wc.Ce(this.b,"touchstart",this.ZE),this.wc.Ce(this.G,"mousedown",this.ZE),this.wc.Ce(this.G,"touchstart",this.ZE),this.wc.wa(this.ba,"click",this.via));this.J(2)&&(this.Aa.parent(this.O()),this.I(2));this.J(8)&&(this.Aa.zIndex(this.zIndex()),this.I(8));this.J(128)&&(this.f.cursor(PB(this)), +this.b.cursor(PB(this)),this.G.cursor(PB(this)),this.B(84),this.I(128));this.J(4)&&(this.VP(),this.I(4));if(this.J(64)){var a=(Math.max($.$b(this.g("outlineStroke")),5)-1)/2;if(this.Ob()){var b=this.fa.top;if(this.K().g("enabled"))a=b+this.fa.height/2,this.f.clear().moveTo(-4,a-6).lineTo(-2,a-8).lineTo(2,a-8).lineTo(4,a-6).lineTo(4,a+6).lineTo(2,a+8).lineTo(-2,a+8).lineTo(-4,a+6).close().moveTo(-1,a-5).lineTo(-1,a+5).moveTo(1,a-5).lineTo(1,a+5),this.b.clear().moveTo(-4,a-6).lineTo(-2,a-8).lineTo(2, +a-8).lineTo(4,a-6).lineTo(4,a+6).lineTo(2,a+8).lineTo(-2,a+8).lineTo(-4,a+6).close().moveTo(-1,a-5).lineTo(-1,a+5).moveTo(1,a-5).lineTo(1,a+5);else{var c=b+this.fa.height;this.f.clear().moveTo(-a,b).lineTo(a,b).lineTo(a,c).lineTo(-a,c).close();this.b.clear().moveTo(-a,b).lineTo(a,b).lineTo(a,c).lineTo(-a,c).close()}}else b=this.fa.left,this.K().g("enabled")?(a=b+this.fa.width/2,this.f.clear().moveTo(a-6,-4).lineTo(a-8,-2).lineTo(a-8,2).lineTo(a-6,4).lineTo(a+6,4).lineTo(a+8,2).lineTo(a+8,-2).lineTo(a+ +6,-4).close().moveTo(a-5,-1).lineTo(a+5,-1).moveTo(a-5,1).lineTo(a+5,1),this.b.clear().moveTo(a-6,-4).lineTo(a-8,-2).lineTo(a-8,2).lineTo(a-6,4).lineTo(a+6,4).lineTo(a+8,2).lineTo(a+8,-2).lineTo(a+6,-4).close().moveTo(a-5,-1).lineTo(a+5,-1).moveTo(a-5,1).lineTo(a+5,1)):(c=b+this.fa.height,this.f.clear().moveTo(b,-a).lineTo(b,a).lineTo(c,a).lineTo(c,-a).close(),this.b.clear().moveTo(b,-a).lineTo(b,a).lineTo(c,a).lineTo(c,-a).close());this.B(16);this.I(64)}if(this.J(16)){this.ba.Qf(this.fa);this.G.Qf(this.fa); +this.dO.shape(this.fa);a=this.g("fill");this.ba.fill("none"==a?$.im:a).stroke(null);a=this.g("selectedFill");this.G.fill("none"==a?$.im:a).stroke(null);this.P.stroke(this.g("outlineStroke")).fill(null);TB(this,this.f,this.eb);TB(this,this.b,this.Xa);switch(this.g("orientation")){case "top":a=this.fa;c=this.F;b=this.j;this.g("inverted")&&(c=NB-c,b=NB-b);c=a.left+c/NB*a.width;var d=a.left+b/NB*a.width;this.f.pc(1,0,0,1,c,0);this.b.pc(1,0,0,1,d,0);b=Math.min(c,d);c=Math.max(c,d);this.vB.shape(b,a.top, +c-b,a.height);b=$.R(b,1);c=$.R(c,1);d=$.R(a.top,1);var e=$.R(a.top+a.height,1);this.P.clear().moveTo(a.left,d).lineTo(b,d).lineTo(b,e).lineTo(c,e).lineTo(c,d).lineTo(a.left+a.width,d);break;case "right":a=this.fa;b=this.F;c=this.j;this.g("inverted")||(b=NB-b,c=NB-c);b=a.top+b/NB*a.height;d=a.top+c/NB*a.height;this.f.pc(1,0,0,1,0,b);this.b.pc(1,0,0,1,0,d);c=Math.min(b,d);b=Math.max(b,d);this.vB.shape(a.left,c,a.width,b-c);this.P.clear().moveTo(a.left,a.top).lineTo(a.left,c).lineTo(a.left+a.width,c).lineTo(a.left+ +a.width,b).lineTo(a.left,b).lineTo(a.left,a.top+a.height);break;case "bottom":a=this.fa;c=this.F;b=this.j;this.g("inverted")&&(c=NB-c,b=NB-b);c=a.left+c/NB*a.width;d=a.left+b/NB*a.width;this.f.pc(1,0,0,1,c,0);this.b.pc(1,0,0,1,d,0);b=Math.min(c,d);c=Math.max(c,d);this.vB.shape(b,a.top,c-b,a.height);b=$.R(b,1);c=$.R(c,1);d=$.R(a.top,1);e=$.R(a.top+a.height,1);this.P.clear().moveTo(a.left,d).lineTo(b,d).lineTo(b,e).lineTo(c,e).lineTo(c,d).lineTo(a.left+a.width,d);break;case "left":a=this.fa,b=this.F, +c=this.j,this.g("inverted")||(b=NB-b,c=NB-c),b=a.top+b/NB*a.height,d=a.top+c/NB*a.height,this.f.pc(1,0,0,1,0,b),this.b.pc(1,0,0,1,0,d),c=Math.min(b,d),b=Math.max(b,d),this.vB.shape(a.left,c,a.width,b-c),this.P.clear().moveTo(a.left+a.width,a.top).lineTo(a.left+a.width,c).lineTo(a.left,c).lineTo(a.left,b).lineTo(a.left+a.width,b).lineTo(a.left+a.width,a.top+a.height)}this.K().g("autoHide")||RB(this);this.I(16)}return this}; +$.g.zd=function(){var a=this.ja();a=a?a.clone():$.rn(0,0,0,0);this.Oe()&&(this.J(4)&&(this.VP(),this.I(4)),this.Ob()?(a.height-=this.i.height,"top"==this.g("orientation")&&(a.top+=this.i.height)):(a.width-=this.i.width,"left"==this.g("orientation")&&(a.left+=this.i.width)));return a}; +$.g.VP=function(){var a=this.ja(),b=this.Ob()?a.height:a.width,c=$.L(this.g("height"),b),d=$.L(this.g("maxHeight"),b),e=$.L(this.g("minHeight"),b);b=c;(0,window.isNaN)(e)||(b=Math.max(b,e));(0,window.isNaN)(d)||(b=Math.min(c,d));b=this.Ob()?this.padding().$j(b):this.padding().Lk(b);this.i.left=a.left;this.i.top=a.top;c=this.g("orientation");this.Ob()?(this.i.width=a.width,this.i.height=b,"bottom"==c&&(this.i.top+=a.height-b)):(this.i.width=b,this.i.height=a.height,"right"==c&&(this.i.left+=a.width- +b));this.rb||this.Ob()?this.fa=this.padding().Ej(this.i):(b=this.padding(),"left"==c?(c=$.L(b.g("left"),this.i.width),a=$.L(b.g("top"),this.i.height),d=$.L(b.g("right"),this.i.width),b=$.L(b.g("bottom"),this.i.height)):(c=$.L(b.g("right"),this.i.width),a=$.L(b.g("bottom"),this.i.height),d=$.L(b.g("left"),this.i.width),b=$.L(b.g("top"),this.i.height)),this.fa.left=this.i.left+b,this.fa.top=this.i.top+c,this.fa.width=this.i.width-b-a,this.fa.height=this.i.height-c-d);this.B(80)}; +$.g.Gaa=function(a){a.Ju();!$.Ao(this.Aa,a.relatedTarget)&&this.oh(a)&&(this.$a=!0,RB(this))};$.g.$ha=function(a){a.Ju();!$.Ao(this.Aa,a.relatedTarget)&&this.oh(a)&&(this.$a=!1,SB(this))};$.g.A6=function(a){a=a.target;$.J(a,$.Ag)&&(a==this.f?TB(this,this.f,this.eb=!0):a==this.b&&TB(this,this.b,this.Xa=!0))};$.g.z6=function(a){a=a.target;$.J(a,$.Ag)&&(a==this.f?TB(this,this.f,this.eb=!1):a==this.b&&TB(this,this.b,this.Xa=!1))}; +$.g.ZE=function(a){if($.J(a.currentTarget,$.hg)){var b=a.currentTarget,c;b!=this.f||this.Ba?b!=this.b||this.ea?b!=this.G||this.na||(this.na=c=new YB(this,this.G,!1)):this.ea=c=new YB(this,this.b,!0):this.Ba=c=new YB(this,this.f,!0);c&&(this.wc.wa(c,"start",this.Faa),this.wc.wa(c,"end",this.Eaa),c.mk(a.kf))}};$.g.via=function(a){var b=$.Zj(this.Aa.Ka());a=this.Ob()?a.clientX-b.x:a.clientY-b.y;UB(this,"background-click","scrollerchangestart")&&(WB(this,!1,a),UB(this,"background-click","scrollerchangefinish"))}; +$.g.Faa=function(a){if(this.g("allowRangeChange")&&a.f!=this.na){a=PB(this);var b="thumb-drag"}else a=PB(this),b="selected-range-drag";if(b=UB(this,b,"scrollerchangestart"))this.Ha++,this.f.cursor(null),this.b.cursor(null),this.G.cursor(null),$.uf(window.document.body,"cursor",a);return b}; +$.g.Eaa=function(a){this.Ha=Math.max(this.Ha-1,0);SB(this);this.f.cursor(PB(this));this.b.cursor(PB(this));this.G.cursor(PB(this));$.uf(window.document.body,"cursor","");a=this.g("allowRangeChange")&&a.f!=this.na?"thumb-drag":"selected-range-drag";UB(this,a,"scrollerchangefinish")};$.g.L3=function(a,b,c,d){return{type:a,startRatio:b,endRatio:c,source:d}}; +$.g.R=function(){$.qd(this.Aa);this.G=this.ba=this.P=this.b=this.f=this.Aa=null;$.qd(this.Ba);this.Ba=null;$.qd(this.ea);this.ea=null;$.qd(this.na);this.na=null;$.qd(this.aa);this.aa=null;$.qd(this.Wa);this.Wa=null;$.OB.u.R.call(this)};$.g.D=function(){var a=$.OB.u.D.call(this);$.cr(this,jI,a,"Scroller");a.thumbs=this.K().D();return a};$.g.U=function(a,b){$.OB.u.U.call(this,a,b);$.Vq(this,jI,a,b);"thumbs"in a&&this.K().ga(!!b,a.thumbs)};$.H(YB,$.ag);$.g=YB.prototype; +$.g.Daa=function(){$.p(this.Qj)&&($.ll.cancelAnimationFrame(this.Qj),this.rs(0))};$.g.ar=function(){this.i.Ob()?(this.deltaX=XB(this.i,this.b),this.deltaY=0):(this.deltaX=0,this.deltaY=XB(this.i,this.b))};$.g.ls=function(a,b){this.ba=this.i.Ob()?a:b;$.p(this.Qj)||(this.Qj=$.ll.requestAnimationFrame(this.rs))};$.g.VA=function(a){return this.i.Ob()?VB(this.i,this.b,a):0};$.g.My=function(a){return this.i.Ob()?0:VB(this.i,this.b,a)};$.H(ZB,$.V);$.Tq(ZB,["fill","stroke"],"normal"); +ZB.prototype.B=function(a,b){return this.i.B(a,b)};ZB.prototype.Qa=function(a){return $.p(a)?(this.ca.N(a),this):this.ca};ZB.prototype.lb=function(a){return $.p(a)?(this.za.N(a),this):this.za};var kI={};$.Cq(kI,[[0,"enabled",$.Pq],[0,"autoHide",$.Pq]]);$.U(ZB,kI);$.g=ZB.prototype;$.g.D=function(){var a={};a.normal=this.Qa().D();a.hovered=this.lb().D();$.cr(this,kI,a,"Scroller thumbs");return a};$.g.U=function(a,b){this.ca.ga(!!b,a);this.ca.ga(!!b,a.normal);this.za.ga(!!b,a.hovered);$.Vq(this,kI,a)}; +$.g.he=function(a){return $.da(a)||null===a?{enabled:!!a}:null};$.g.Le=function(a,b){var c=this.he(b);return c?(this.enabled(c.enabled),!0):!1};$.g.R=function(){$.sd(this.ca,this.za);this.za=this.ca=null;ZB.u.R.call(this)};$.H($B,$.OB);$.Hu($B,$.OB);$B.prototype.Jr=function(a,b){$.QB(this,a,b);return this};$B.prototype.$b=function(a){return $.p(a)?($.QB(this,a,this.j/NB),this):this.F/NB};$B.prototype.Lb=function(a){return $.p(a)?($.QB(this,this.F/NB,a),this):this.j/NB};var lI=$.OB.prototype; +lI.thumbs=lI.K;lI=ZB.prototype;lI.normal=lI.Qa;lI.hovered=lI.lb;lI=$B.prototype;$.E("anychart.standalones.scroller",function(){var a=new $B;a.N($.um("standalones.scroller"));return a});lI.setRange=lI.Jr;lI.startRatio=lI.$b;lI.endRatio=lI.Lb;lI.parentBounds=lI.ja;lI.getRemainingBounds=lI.zd;lI.container=lI.O;lI.padding=lI.padding;lI.draw=lI.W;$.H($.aC,$.OB);var mI={};$.Bq(mI,0,"position",function(a,b){return $.zk(yda,a,b||"after-axes")});$.U($.aC,mI);$.aC.prototype.D=function(){var a=$.aC.u.D.call(this);$.cr(this,mI,a);return a};$.aC.prototype.U=function(a,b){$.aC.u.U.call(this,a,b);$.Vq(this,mI,a,b)};$.g=bC.prototype;$.g.BB=function(a,b){a=$.Za($.N(a),0,1);(0,window.isNaN)(a)&&(a=this.i);b=$.Za($.N(b),0,1);(0,window.isNaN)(b)&&(b=this.b);this.f=null;if(this.i!=a||this.b!=b)this.i=a,this.b=b,this.ra.B(268435456,1);return this};$.g.U5=function(a,b,c){this.f={start:a,end:b,scale:c};this.ra.B(268435456,1);return this};$.g.T5=function(a,b,c){this.f={count:$.P(a),scale:c,ofa:!!b};this.ra.B(268435456,1);return this};$.g.Fz=function(){cC(this);return this.i};$.g.Ez=function(){cC(this);return this.b}; +$.g.tS=function(a){return $.p(a)?(a=!!a,this.j!=a&&(this.j=a),this):this.j};$.g.N=function(a){$.p(a)&&((0,window.isNaN)(+a)?$.C(a)&&(this.tS(a.continuous),$.p(a.startValue)&&$.p(a.endValue)?this.U5(a.startValue,a.endValue,$.J(a.scale,gt)?a.scale:void 0):$.p(a.pointsCount)?this.T5(a.pointsCount,a.fromEnd,$.J(a.scale,gt)?a.scale:void 0):this.BB(a.startRatio,a.endRatio)):this.BB(0,1/Math.abs(+a||1)));return this};$.g.D=function(){return{startRatio:this.Fz(),endRatio:this.Ez(),continuous:this.j}}; +var nI=bC.prototype;nI.setTo=nI.BB;nI.setToValues=nI.U5;nI.setToPointsCount=nI.T5;nI.getStartRatio=nI.Fz;nI.getEndRatio=nI.Ez;nI.continuous=nI.tS;$.H($.dC,$.EA);var oI=function(){var a={};$.Cq(a,[[0,"zAngle",function(a){return $.Za($.N(a),0,90)}],[0,"zAspect",function(a){return $.ea(a)?Math.max(a,0):a}],[0,"zDistribution",$.Qq],[0,"zPadding",function(a){return Math.max($.N(a),0)||0}]]);return a}();$.U($.dC,oI);$.g=$.dC.prototype;$.g.sa=$.EA.prototype.sa|1879048192;$.g.Tq=function(a){return $.p(a)?(this.ka(),this.Uc.N(a),this.da(!0),this):this.Uc};$.g.Uq=function(a){return $.p(a)?(this.ka(),this.bg.N(a),this.da(!0),this):this.bg}; +$.g.Lp=function(a){this.F||(this.F=new $.aC,this.F.kb(this),$.K(this.F,this.YZ,this),this.wc.wa(this.F,"scrollerchange",this.qK),this.wc.wa(this.F,"scrollerchangefinish",this.qK),this.B(536870916,1),$.W(this,"xScroller",this.F));return $.p(a)?(this.F.N(a),this):this.F}; +$.g.Ur=function(a){this.G||(this.G=new $.aC,this.G.kb(this),$.K(this.G,this.YZ,this),this.wc.wa(this.G,"scrollerchange",this.qK),this.wc.wa(this.G,"scrollerchangefinish",this.qK),this.B(1073741828,1),$.W(this,"yScroller",this.G));return $.p(a)?(this.G.N(a),this):this.G};$.g.YZ=function(a){var b=a.target==this.Lp()?536870912:1073741824,c=1;$.X(a,8)&&(b|=4,c|=8);this.B(b,c)}; +$.g.qK=function(a){var b=a.target==this.Lp()?this.Uc:this.bg;b.tS()^"scrollerchangefinish"==a.type&&(a.preventDefault(),this.ka(),b.BB(a.startRatio,a.endRatio),this.da(!0))};$.g.Gt=function(a,b){return new $.FB(this,this,a,b,!0)};$.g.Ss=function(a){return $.zk(Bda,a,"line")};$.g.mD=function(a){a=eC(this.Ur(),a);this.Ek=a.C5;a=eC(this.Lp(),a.y0);return $.dC.u.mD.call(this,a.y0,a.C5)};$.g.Q_=function(a,b){var c=fC(this,a,this.Lp(),b),d=this.Ur();return fC(this,c,d,this.Ek)}; +$.g.HR=function(a){if(this.J(268435456)){for(var b in this.mm){var c=this.Tq().Fz(),d=1/(this.Tq().Ez()-c);ht(this.mm[b],d,c)}$.QB(this.Lp(),this.Tq().Fz(),this.Tq().Ez());a||this.B(570687488)}};$.g.IR=function(a){if(this.J(268435456)){for(var b in this.pn){var c=this.Uq().Fz(),d=1/(this.Uq().Ez()-c);ht(this.pn[b],d,c)}$.QB(this.Ur(),this.Uq().Fz(),this.Uq().Ez());a||this.B(1107296256)}};$.g.O_=function(){this.J(268435456)&&(this.HR(!0),this.IR(!0),this.B(1644167168))}; +$.g.pb=function(){$.dC.u.pb.call(this);this.I(268435456)};$.g.p2=function(){return this.Uc.Fz()};$.g.o2=function(){return this.Uc.Ez()};$.g.UT=function(){return $.dC.u.UT.call(this)|1610612736};$.g.jR=function(){$.dC.u.jR.call(this);this.J(536870912)&&(this.Lp().O(this.Na),this.Lp().W(),this.I(536870912));this.J(1073741824)&&(this.Ur().O(this.Na),this.Ur().W(),this.I(1073741824))}; +$.g.Z5=function(a,b,c){var d=this.N1(b);b=d.transform(c,0);c=d.transform(c,1);return"selected"!=a||1>=Math.min(b,c)&&0<=Math.max(b,c)};$.g.N1=function(a){return a.tl()}; +$.g.ht=function(a,b,c){$.dC.u.ht.call(this,a,b,c);$.Vq(this,oI,a);"xScroller"in a&&this.Lp().ga(!!c,a.xScroller);"yScroller"in a&&this.Ur().ga(!!c,a.yScroller);var d=a.xZoom;$.C(d)&&($.ea(d.scale)||$.z(d.scale))?(c=d.scale,d.scale=b[d.scale],this.Tq(d),d.scale=c):this.Tq(d);a=a.yZoom;$.C(a)&&($.ea(a.scale)||$.z(a.scale))?(c=a.scale,a.scale=b[a.scale],this.Uq(a),a.scale=c):this.Uq(a)}; +$.g.D=function(){var a=$.dC.u.D.call(this);$.cr(this,oI,a);a.xScroller=this.Lp().D();a.yScroller=this.Ur().D();a.xZoom=this.Tq().D();a.yZoom=this.Uq().D();return{chart:a}};$.g.R=function(){$.dC.u.R.call(this);$.sd(this.F,this.G);this.G=this.F=null};$.g=$.gC.prototype;$.g.zs=ba(29);$.g.Yt=function(){$.iC(this);return this.b.concat()};$.g.Uj=function(){return 0==this.i};$.g.clear=function(){this.f={};this.i=this.b.length=0};$.g.remove=function(a){return $.hC(this.f,a)?(delete this.f[a],this.i--,this.b.length>2*this.i&&$.iC(this),!0):!1};$.g.get=function(a,b){return $.hC(this.f,a)?this.f[a]:b};$.g.set=function(a,b){$.hC(this.f,a)||(this.i++,this.b.push(a));this.f[a]=b}; +$.g.forEach=function(a,b){for(var c=this.Yt(),d=0;da.o("size")){var c="negative";var d="negativeHatchFill"}else c="circle",d="hatchFill";var e={};e[c]=!0;e[d]=!0;c=this.bd.ed(b,e);rC(this,a,c)};$.g.yt=function(a){var b=a.o("shapes");rC(this,a,b)};$.H(sC,$.RA);$.WG[5]=sC;$.g=sC.prototype;$.g.type=5;$.g.flags=$.aH|263744;$.g.Kh={rising:"path",risingHatchFill:"path",falling:"path",fallingHatchFill:"path"};$.g.Mp=["open","high","low","close"];$.g.El="close"; +$.g.ug=function(a,b){var c=Number(a.get("open"))b?this.mc&&(d="highFill",e="highHatchFill"):this.Uc&&(d="lowFill",e="lowHatchFill");c.ZU="highStroke";c.XV="lowStroke";c.fill=d;c.oe=e;return c}; +$.g.Qo=function(a){var b=this.bd,c=this.X.Be(),d=a.get(c[1]);c=a.get(c[0]);d=this.nh(d,c);c={};c[d.ZU]=!0;c[d.XV]=!0;c=b.ed(this.Gc,c);this.P=c[d.ZU];this.ea=c[d.XV];c={};c[d.fill]=!0;c[d.oe]=!0;this.b=b.ed(this.Gc,c);b=a.o("x");c=a.o("high");a=a.o("low");var e=this.b[d.fill],f=this.b[d.oe];$.PA(e,this.xa,b,a);$.QA(e,this.xa,b,c);$.PA(f,this.xa,b,a);$.QA(f,this.xa,b,c);$.PA(this.P,this.xa,b,c);this.f=[b,a,e,f];this.i=b;this.j=c;this.K=a;this.na=d}; +$.g.ug=function(a){var b=this.bd,c=this.X.Be(),d=a.get(c[1]);c=a.get(c[0]);d=this.nh(d,c);c={};c[d.fill]=!0;c[d.oe]=!0;b=b.ed(this.Gc,c);c=a.o("x");var e=a.o("high");a=a.o("low");if(this.b!=b){var f=Cn(this.i,this.j,c,e,this.i,this.K,c,a);if(f){var h=this.b[this.na.fill];var k=this.b[this.na.oe];$.QA(h,this.xa,f.x,f.y);$.QA(k,this.xa,f.x,f.y);this.f.push(f.x,f.y,h,k);this.b=b;h=this.b[d.fill];k=this.b[d.oe];$.PA(h,this.xa,f.x,f.y);$.PA(k,this.xa,f.x,f.y);this.f.push(f.x,f.y,h,k)}else{h=this.i;k=this.j; +f=this.i;var l=this.K;h=$.cn((a-l)*(c-h)-(c-f)*(e-k),0)&&($.cn((c-f)*(k-l)-(a-l)*(h-f),0)||$.cn((c-h)*(k-l)-(e-k)*(h-f),0))?!0:!1;h&&(this.b=b,h=this.b[d.fill],k=this.b[d.oe],$.PA(h,this.xa,this.i,this.j),$.PA(k,this.xa,this.i,this.j),this.f.push(this.i,this.j,h,k))}}h=this.b[d.fill];k=this.b[d.oe];$.QA(h,this.xa,c,e);$.QA(k,this.xa,c,e);$.QA(this.P,this.xa,c,e);this.f.push(c,a,h,k);this.i=c;this.j=e;this.K=a;this.na=d}; +$.g.Jm=function(){if(this.G&&this.f){for(var a=!0,b=null,c=this.f.length-1;0<=c;c-=4){var d=this.f[c-3],e=this.f[c-2],f=this.f[c-1],h=this.f[c];b&&f!=b?($.PA(f,this.xa,d,e),$.PA(h,this.xa,d,e)):($.QA(f,this.xa,d,e),$.QA(h,this.xa,d,e));a?($.PA(this.ea,this.xa,d,e),a=!1):$.QA(this.ea,this.xa,d,e);b=f}this.f=null}};$.H($.BC,$.RA);$.WG[12]=$.BC;$.g=$.BC.prototype;$.g.type=12;$.g.flags=$.mm|263680;$.g.Kh={path:"path",hatchFill:"path"};$.g.Mp=["low","high"];$.g.El="high"; +$.g.ug=function(a,b){if(!a.o("skipDrawing")){var c=this.X.Be(),d=a.get(c[1]);c=a.get(c[0]);d=this.nh(d,c);c={};c[d.path]=!0;c[d.oe]=!0;a.o("name",d.path);c=this.bd.ed(b,c);var e=a.o("x"),f=a.o("high"),h=a.o("low");e-=this.F/2;var k=e+this.F,l=$.$b(c[d.path].stroke());this.wv&&(e=$.R(e,l),k=$.R(k,l));f=$.R(f,l);h=$.R(h,l);l=c[d.path];$.PA(l,this.xa,e,h);$.QA(l,this.xa,k,h);$.QA(l,this.xa,k,f);$.QA(l,this.xa,e,f);l.close();l=c[d.oe];$.PA(l,this.xa,e,h);$.QA(l,this.xa,k,h);$.QA(l,this.xa,k,f);$.QA(l, +this.xa,e,f);l.close()}};CC.prototype.xa=function(a){return $.p(a)?(this.K=a,this):this.K};CC.prototype.aa=function(a){return $.p(a)?(this.i=a,this):this.i}; +CC.prototype.f=function(a){var b,c,d=arguments;for(b=0;bb?this.mc&&(d="highFill",e="highHatchFill"):this.Uc&&(d="lowFill",e="lowHatchFill");c.ZU="highStroke";c.XV="lowStroke";c.fill=d;c.oe=e;return c}; +$.g.Hd=function(a){LC.u.Hd.call(this,a);this.i.xa(this.xa);a=this.X.iB();$.p(a)&&(this.i.Ha=a);this.j.xa(this.xa);a=this.X.iB();$.p(a)&&(this.j.Ha=a);this.K=[]}; +$.g.Qo=function(a){var b=this.bd,c=this.X.Be(),d=a.get(c[1]);c=a.get(c[0]);var e={highStroke:!0,lowStroke:!0};e=b.ed(this.Gc,e);this.P=e.highStroke;this.ea=e.lowStroke;var f=this.nh(d,c);e={};e[f.fill]=!0;e[f.oe]=!0;b.ed(this.Gc,e);b=a.o("x");e=a.o("high");a=a.o("low");JC(this.i,!1);this.i.Ca=[this.P];(e=HC(this.i,b,e))&&this.K.push.apply(this.K,e);e=this.X.$().current();f=this.X.$().ma();this.f=[b,a,d,c,e,f]}; +$.g.ug=function(a){var b=this.bd,c=this.X.Be(),d=a.get(c[1]);c=a.get(c[0]);var e=this.nh(d,c),f={};f[e.fill]=!0;f[e.oe]=!0;b.ed(this.Gc,f);b=a.o("x");e=a.o("high");a=a.o("low");(e=HC(this.i,b,e))&&this.K.push.apply(this.K,e);e=this.X.$().current();f=this.X.$().ma();this.f.push(b,a,d,c,e,f)}; +$.g.Jm=function(){var a=this.bd;if(this.G){var b=IC(this.i);b&&this.K.push.apply(this.K,b);this.i.Ca=[this.ea];JC(this.i,!0);JC(this.j,!0);b=[];if(this.f){for(var c=!0,d=this.X.cg(),e=this.f.length-1;0<=e;e-=6){var f=this.f[e-2],h=this.f[e-3];var k=this.f[e-4];var l=this.f[e-5];d.Iu(this.f[e-1],this.f[e]);h=this.nh(h,f);f=a.ed(this.Gc,d.o("shapeNames"));HC(this.j,l,k);HC(this.i,l,k);c?(this.b=f,k=f[h.fill],l=f[h.oe],this.j.Ca=[k,l],c=!1):(k=e==this.f.length-7||5==e?6:12,k=$.Ca(this.K,this.K.length- +k,k),$.qa($.Ca,b,void 0,0).apply(null,k),this.b!=f&&(k=f[h.fill],l=f[h.oe],h=this.j,k=[k,l],h.b=b.slice(),h.P=k,b.length=0,this.b=f))}$.qa($.Ca,this.j.Wh,void 0,0).apply(null,b);IC(this.j);IC(this.i);this.f=null}}};$.H(MC,$.RA);$.WG[14]=MC;$.g=MC.prototype;$.g.type=14;$.g.flags=$.lB|$.mm|131072;$.g.Kh={fill:"path",hatchFill:"path",highStroke:"path",lowStroke:"path"};$.g.Mp=["low","high"];$.g.El="high";$.g.Hd=function(a){MC.u.Hd.call(this,a);this.P=this.X.g("stepDirection")||"center"}; +$.g.Qo=function(a){var b=this.bd.ed(this.Gc),c=a.o("x"),d=a.o("high");a=a.o("low");$.PA(b.fill,this.xa,c,a);$.QA(b.fill,this.xa,c,d);$.PA(b.hatchFill,this.xa,c,a);$.QA(b.hatchFill,this.xa,c,d);$.PA(b.highStroke,this.xa,c,d);this.i=c;this.j=d;this.f=[c,a]}; +$.g.ug=function(a){var b=this.bd.ed(this.Gc),c=a.o("x"),d=a.o("high");a=a.o("low");var e=b.fill,f=b.hatchFill;b=b.highStroke;switch(this.P){case "forward":$.QA(e,this.xa,c,this.j);$.QA(f,this.xa,c,this.j);$.QA(b,this.xa,c,this.j);break;case "backward":$.QA(e,this.xa,this.i,d);$.QA(f,this.xa,this.i,d);$.QA(b,this.xa,this.i,d);break;default:var h=(c+this.i)/2;$.QA(e,this.xa,h,this.j,h,d);$.QA(f,this.xa,h,this.j,h,d);$.QA(b,this.xa,h,this.j,h,d)}$.QA(e,this.xa,c,d);$.QA(f,this.xa,c,d);$.QA(b,this.xa, +c,d);this.i=c;this.j=d;this.f.push(c,a)}; +$.g.Jm=function(){if(this.G&&this.f){var a=this.bd.ed(this.Gc),b=a.fill,c=a.hatchFill;a=a.lowStroke;for(var d=window.NaN,e=window.NaN,f=!0,h=this.f.length-1;0<=h;h-=2){var k=this.f[h-1],l=this.f[h];if(f)$.PA(a,this.xa,k,l),f=!1;else switch(this.P){case "forward":$.QA(b,this.xa,d,l);$.QA(c,this.xa,d,l);$.QA(a,this.xa,d,l);break;case "backward":$.QA(b,this.xa,k,e);$.QA(c,this.xa,k,e);$.QA(a,this.xa,k,e);break;default:d=(k+d)/2,$.QA(b,this.xa,d,e,d,l),$.QA(c,this.xa,d,e,d,l),$.QA(a,this.xa,d,e,d,l)}$.QA(b, +this.xa,k,l);$.QA(c,this.xa,k,l);$.QA(a,this.xa,k,l);d=k;e=l}b.close();c.close();this.f=null}};$.H(NC,$.RA);$.WG[31]=NC;$.g=NC.prototype;$.g.type=31;$.g.flags=$.mm|295433;$.g.Kh={stroke:"path"};$.g.Hd=function(a){NC.u.Hd.call(this,a);this.wv=2e?this.Id&&(c="highStroke"):this.Pd&&(c="lowStroke");f[c]=!0;a.o("name",c);d=this.bd.ed(b,f);OC(this,a,d,c)};$.g.yt=function(a){var b=a.o("shapes"),c=a.o("name"),d;for(d in b)b[d].clear();OC(this,a,b,c)};$.H(PC,$.RA);$.WG[15]=PC;$.g=PC.prototype;$.g.type=15;$.g.flags=$.lB|32969;$.g.Kh={stroke:"path"};$.g.Hd=function(a){PC.u.Hd.call(this,a);this.f.xa(this.xa);a=this.X.iB();$.p(a)&&(this.f.Ha=a)};$.g.Qo=function(a){var b=a.get(this.X.Be()[0]),c=this.nh(b,this.prevValue),d=a.o("x");a=a.o("value");var e={};e[c.stroke]=!0;this.b=this.bd.ed(this.Gc,e);this.f.Ca=[this.b[c.stroke]];JC(this.f,!1);HC(this.f,d,a);this.P=a;this.prevValue=b}; +$.g.ug=function(a){var b=a.get(this.X.Be()[0]),c=this.bd,d=this.nh(b,this.prevValue),e={};e[d.stroke]=!0;c=c.ed(this.Gc,e);var f=a.o("x");e=a.o("value");HC(this.f,f,e);if(c!=this.b){var h;f=this.P;var k=SA(this,b);this.ba&&k?h=a.o("zero"):this.Ha&&!this.ba?h=f:h="middle";a=this.f;d=[c[d.stroke]];a.b=h;a.P=d;this.b=c}this.P=e;this.prevValue=b};$.g.Jm=function(){this.G&&IC(this.f)};$.g.R=function(){this.f.Ca=null;PC.u.R.call(this)};$.H(QC,$.RA);$.WG[16]=QC;$.g=QC.prototype;$.g.type=16;$.g.flags=$.lB|225;$.g.Kh={fill:"path",hatchFill:"path",stroke:"path"};$.g.Hd=function(a){QC.u.Hd.call(this,a);this.i.xa(this.xa);a=this.X.iB();$.p(a)&&(this.i.Ha=a)};$.g.jA=function(a){if(this.Ba){if(this.X.gh()){var b=a.o("x"),c=a.o("zero");a=a.o("zeroMissing");this.f.push(b,c,a)}}else this.Jm()}; +$.g.Qo=function(a){var b=a.get(this.X.Be()[0]),c=this.nh(b,this.prevValue),d=a.o("x"),e=a.o("zero"),f=a.o("zeroMissing");a=a.o("value");e=cp(e);a=cp(a);JC(this.i,!1);this.i.aa(e);HC(this.i,d,a);var h={};h[c.stroke]=!0;h[c.fill]=!0;h[c.oe]=!0;this.b=this.bd.ed(this.Gc,h);h=this.b[c.fill];h.b=!0;var k=this.b[c.oe];k.b=!0;c=this.b[c.stroke];c.b=!1;this.i.Ca=[h,c,k];this.X.gh()?this.f=[d,e,f]:this.Mi=e;this.P=a;this.prevValue=b}; +$.g.ug=function(a){var b=this.bd,c=a.get(this.X.Be()[0]),d=this.j=this.nh(c,this.prevValue),e=a.o("x"),f=a.o("zero"),h=a.o("zeroMissing");a=a.o("value");f=cp(f);a=cp(a);HC(this.i,e,a);var k={};k[d.stroke]=!0;k[d.fill]=!0;k[d.oe]=!0;b=b.ed(this.Gc,k);if(b!=this.b){var l;k=this.P;var m=SA(this,c);this.ba&&m?l=f:this.Ha&&!this.ba?l=k:l="middle";k=b[d.fill];k.b=!0;m=b[d.oe];m.b=!0;var n=b[d.stroke];n.b=!1;d=this.i;k=[k,n,m];d.b=l;d.P=k;this.i.aa(f);this.b=b}this.X.gh()&&this.f.push(e,f,h);this.P=a;this.prevValue= +c}; +$.g.Jm=function(){if(this.G&&(IC(this.i),this.f)){var a=this.j,b={};b[a.stroke]=!0;b[a.fill]=!0;b[a.oe]=!0;this.b=this.bd.ed(this.Gc,b);b=this.b[a.fill];b.b=!1;var c=this.b[a.oe];c.b=!1;a=this.b[a.stroke];a.b=!1;this.i.Ca=[b,a,c];JC(this.i,!0);for(var d=a=window.NaN,e=!1,f=!0,h=this.f.length-1;0<=h;h-=3){var k=this.f[h-2],l=this.f[h-1],m=this.f[h];f?($.QA(b,this.xa,k,l),$.QA(c,this.xa,k,l),m||HC(this.i,k,l),f=!1):m&&e?($.QA(b,this.xa,k,l),$.QA(c,this.xa,k,l)):m?(IC(this.i),JC(this.i,!0),$.QA(b,this.xa, +a,l,k,l),$.QA(c,this.xa,a,l,k,l)):(e&&($.QA(b,this.xa,k,d,k,l),$.QA(c,this.xa,k,d,k,l)),HC(this.i,k,l));a=k;d=l;e=m}IC(this.i);this.f=null}};$.g.R=function(){this.i.Ca=null;QC.u.R.call(this)};$.H(RC,$.RA);$.WG[17]=RC;$.g=RC.prototype;$.g.type=17;$.g.flags=$.lB|131297;$.g.Kh={fill:"path",hatchFill:"path",stroke:"path"};$.g.Hd=function(a){RC.u.Hd.call(this,a);this.P=this.X.g("stepDirection")||"center"}; +$.g.Qo=function(a){var b=a.get(this.X.Be()[0]),c=this.bd,d=this.nh(b,this.prevValue),e={};e[d.stroke]=!0;e[d.fill]=!0;e[d.oe]=!0;c=this.b=c.ed(this.Gc,e);e=a.o("x");a.o("zeroX");var f=a.o("zero"),h=a.o("value");if(this.X.gh()){var k=a.o("nextZero");a=a.o("nextValue");if((0,window.isNaN)(k)||(0,window.isNaN)(a))TC(this,c,d,e,h,f),this.f=[e,f],this.j=h;else{var l=c.stroke;$.PA(l,this.xa,e,h);$.QA(l,this.xa,e,h);TC(this,c,d,e,a,k);this.f=[e,k];this.j=a}}else TC(this,c,d,e,h,f),this.ea=e,this.Mi=f,this.j= +h;this.i=e;this.prevValue=b;this.Ja=f;this.K=d}; +$.g.ug=function(a){var b=a.get(this.X.Be()[0]),c=this.bd,d=this.nh(b,this.prevValue),e={};e[d.stroke]=!0;e[d.fill]=!0;e[d.oe]=!0;c=c.ed(this.Gc,e);e=a.o("x");a.o("zeroX");var f=a.o("zero"),h=a.o("value");if(this.X.gh()){var k=a.o("prevZero"),l=a.o("prevValue"),m=a.o("nextZero");a=a.o("nextValue");(0,window.isNaN)(k)||(0,window.isNaN)(l)?(UC(this,c,d,b,e,h,f),this.f.push(e,f)):(UC(this,c,d,b,e,l,f),this.f.push(e,k),this.i=e,this.j=l,this.Jm(),TC(this,c,d,e,h,f),this.f=[e,f]);(0,window.isNaN)(m)||(0,window.isNaN)(a)? +this.j=h:($.QA(c.stroke,this.xa,e,h),this.Jm(),TC(this,c,d,e,a,m),this.f=[e,m],this.j=a)}else UC(this,c,d,b,e,h,f),this.ea=e,this.j=h;this.i=e;this.prevValue=b;this.Ja=f;this.K=d}; +$.g.Jm=function(){if(this.G){var a=this.b,b=this.K,c=a[b.fill];a=a[b.oe];if(!(0,window.isNaN)(this.ea))$.QA(c,this.xa,this.ea,this.Mi),$.QA(a,this.xa,this.ea,this.Mi),c.close(),a.close();else if(this.f){var d=window.NaN;b=window.NaN;for(var e=this.f.length-1;0<=e;e-=2){var f=this.f[e-1],h=this.f[e];if(!(0,window.isNaN)(b))switch(this.P){case "forward":$.QA(c,this.xa,d,h);$.QA(a,this.xa,d,h);break;case "backward":$.QA(c,this.xa,f,b);$.QA(a,this.xa,f,b);break;default:d=(f+d)/2,$.QA(c,this.xa,d,b,d, +h),$.QA(a,this.xa,d,b,d,h)}$.QA(c,this.xa,f,h);$.QA(a,this.xa,f,h);d=f;b=h}c.close();a.close();this.f=null}}};$.H(VC,$.RA);$.WG[18]=VC;$.g=VC.prototype;$.g.type=18;$.g.flags=$.lB|164041;$.g.Kh={stroke:"path"};$.g.Hd=function(a){VC.u.Hd.call(this,a);this.P=this.X.g("stepDirection")||"center"};$.g.Qo=function(a){var b=a.get(this.X.Be()[0]),c=this.nh(b,this.prevValue),d={};d[c.stroke]=!0;this.b=this.bd.ed(this.Gc,d);d=a.o("x");a=a.o("value");$.PA(this.b[c.stroke],this.xa,d,a);this.i=d;this.j=a;this.prevValue=b;this.K=c}; +$.g.ug=function(a){var b=this.bd,c=a.get(this.X.Be()[0]),d=this.nh(c,this.prevValue),e={};e[d.stroke]=!0;b=b.ed(this.Gc,e);e=a.o("x");var f=a.o("value"),h=this.j;if(b!=this.b){var k=SA(this,c);this.ba&&k&&(h=a.o("zero"));a=WC(this,this.K,e,this.j,h);this.b=b;$.PA(this.b[d.stroke],this.xa,a,h)}WC(this,d,e,h,f);$.QA(this.b[d.stroke],this.xa,e,f);this.i=e;this.j=f;this.prevValue=c;this.K=d};$.H(XC,$.RA);$.WG[20]=XC;$.g=XC.prototype;$.g.type=20;$.g.flags=296681;$.g.Kh={stroke:"path"};$.g.Hd=function(a){XC.u.Hd.call(this,a);this.wv=2=this.Hb())&&$.p(a)&&this.f){if(this.f.o){var b=this.f.o("treemap_type");if(1==b||3==b||4==b)return;if(b=this.f.o(a))return b}if(this.f.get)return this.f.get(a)}};$.g.ma=function(){return this.i};$.g.Hb=function(){return this.b.length};$.g.o=function(a,b){if(this.f&&this.f.o)return 1c*c}return e},Mea=function(){return new $.jy},EO=function(a,b,c){$.Mz.call(this,null,[],[],b,c);this.ya=a},GO=function(a,b,c,d,e,f){$.Mr.call(this,a);this.i=b;this.f=d||null;this.j=e||function(a, +b){a.value+=Math.max(0,+b)||0;return a};this.F=f||function(){return{value:0}};this.b=new FO;this.b.o(0,"groupedPoint",!0);this.b.o(0,"name",c)},FO=function(){$.V.call(this);$.Sr(this);this.f=void 0},IO=function(a,b,c){$.Mz.call(this,null,[],[],b,c);this.ya=a;this.G=HO(this.ya);this.i=this.ya.g("connectorStroke")},JO=function(a,b){$.MA.call(this,a,b)},LO=function(a,b){$.Jx.call(this);this.Ga("pieFunnelPyramidBase","pie");this.contextMenu(this.oa.contextMenu);this.ka();this.Yc=this.i=this.fd=this.Fa= +this.Uc=null;this.nf=!0;this.Lb={};this.Ek=function(){var a=this.sourceColor,b=this.aquaStyleObj;return{keys:[{offset:0,color:$.Wl(a,.5)},{offset:.95,color:$.Xl(a,.4)},{offset:1,color:$.Xl(a,.4)}],cx:.5,cy:.5,fx:b.fx,fy:b.fy,mode:b.mode}};this.F=[];this.state=new $.qx(this);this.data(a||null,b);this.B(4294967295);$.T(this.ua,[["overlapMode",4096,1],["radius",4,1],["innerRadius",4,1],["startAngle",4112,1],["sort",16,1,0,function(){KO(this)}],["insideLabelsOffset",4100,9],["connectorLength",4100,9], +["outsideLabelsCriticalAngle",4096,1],["forceHoverLabels",4096,1],["connectorStroke",16,1],["mode3d",4116,1],["sliceDrawer",16,1]]);var c={};$.T(c,[["explode",4116,1],["fill",528,1],["stroke",528,1],["hatchFill",528,1],["labels",0,0],["outline",0,0]]);this.ca=new $.uy(this,c,$.nm,[[1,"fill",function(a){var b=!1;$.z(a[0])&&(a[0]=a[0].toLowerCase(),b="aquastyle"==a[0]);return this.g("mode3d")&&b?this.g("fill"):$.D(a[0])||b?a[0]:$.Ub.apply(null,a)}]]);this.ca.ta("labelsFactoryConstructor",Mea);this.ca.ta("labelsAfterInitCallback", +function(a){$.K(a,this.ce,this);a.kb(this);this.B(4096,1)});this.ca.ta("outlineAfterInitCallback",function(a){$.K(a,this.sja,this);this.B(16,1)});c={};$.T(c,[["explode",4116,1],["fill",16,1],["stroke",16,1],["hatchFill",0,0],["labels",0,0],["outline",16,1]]);this.za=new $.uy(this,c,$.Co);this.za.ta("labelsFactoryConstructor",$.xy);c={};$.T(c,[["explode",4116,1],["fill",16,1],["stroke",16,1],["hatchFill",0,0],["labels",0,0],["outline",16,1]]);this.Ea=new $.uy(this,c,$.Do);this.Ea.ta("labelsFactoryConstructor", +$.xy);this.da(!1)},KO=function(a){$.qd(a.P);delete a.sd;a.P=Nea(a,a.i);$.K(a.P,a.dd,a);a.B(13104,17)},Nea=function(a,b){if(null!=a.Uc){var c=b;b=new GO(b,"value",a.yo,a.Uc,void 0,function(){return{value:0}});$.rd(c,b);b.xY=!0}c=a.g("sort");"none"!=c&&null!=c&&(b="asc"==c?b.sort("value",function(a,b){return a-b}):b.sort("value",function(a,b){return b-a}),b.xY=!0);return b},NO=function(a,b,c){if(!a)return $.dm;var d=b+"|"+a+"|"+c,e=MO[d];if(!e){switch(b){case 2:e=$.fm;break;case 3:e=$.gm;break;default:case 1:e= +$.hm}MO[d]=e=$.qa(Oea,a,e,3==b,c)}return e},Oea=function(a,b,c,d,e,f,h,k){if(f!=$.nm&&d){var l=e.sc(a,f,e.$(),b,!1,void 0,h);c&&!0===l&&(l=b(e.Eh()));if($.p(l)){if(!$.D(l))return l;if(c)return c=e.Yi(h),b(l.call(c,c))}}a=e.sc(a,0,e.$(),b,!1,void 0,h);d=$.p(k)?k:a;k=$.z(a)&&"aquastyle"==a;c&&!0===a&&(a=b(e.Eh()));$.D(a)&&(c=c?e.Yi(h):e.Ge(d,h),a=b(a.call(c,c)));k&&(c=e.$(),c={aquaStyleObj:e.Lb,sourceColor:e.dc().oc(c.ma())},a=e.Ek.call(c));l&&(c=e.Ge(a,h),a=b(l.call(c,c)));return a},OO=function(a, +b,c){c=a.$().o(c||"hatchSlice");null!=c&&(a=NO("hatchFill",3,!0)(a,b,!1),c.stroke(null).fill(a))},PO=function(a){return $.C(a)&&a.hasOwnProperty("mode")&&a.hasOwnProperty("cx")},QO=function(a){a=null===a?window.NaN:+a;return!($.ea(a)&&!(0,window.isNaN)(a)&&0q||270=n:!1:4==l?4==m?h>=n:!0:!1}if(h)for(l=eP(d,f),h=a.F.length,n=l.length,a.F.length=h+n,m=0;md&&(d=0);0>e&&(e=0);if(d=e?360==Math.abs(h)?l.Fe(b,c,d,.45*d,f,h,!1):l.moveTo(b,c).Fe(b,c,d,.45*d,f,h,!0).close():(m=360>Math.abs(h),l.Fe(b,c,d,.45*d,f,h).Fe(b,c,e,.45*e,f+h,-h,m),m&&l.close()),YO(a,n,k)},lP=function(a,b){var c=a.$(),d=c.ma(),e=c.get("normal"),f=$.fp($.p(e)?e.fill:void 0,c.get("fill"),a.fill());b=$.lm(b);b==$.Do?(e=c.get("selected"),c=$.fp($.p(e)?e.fill:void 0,c.get("selectFill"),a.selected().fill(),f),f=a.DK(c,f)):b==$.Co?(e=c.get("hovered"),c=$.fp($.p(e)? +e.fill:void 0,c.get("hoverFill"),a.lb().fill(),f),f=a.DK(c,f)):f=a.DK(f);f=$.z(f)?$.Sl(f):$.Sl(f.color);d=a.dc().oc(d);var h;$.C(d)&&(d.color?h=$.Sl(d.color):d.keys&&d.keys.length&&(h=$.Sl(d.keys[0].color)));h=h?h.wk:d;return f?f.wk:h},YO=function(a,b,c){var d=a.$(),e=d.ma(),f=lP(a,c),h=$.Ll(f),k=d.o(b);k.tag={X:a,index:e};var l,m=$.Pl(h,.3),n=$.Ol([255,255,255],h,.1),q=$.Tb($.Ol(h,m,.7));n=$.Tb($.Ol(m,n,.1));var r=$.Tb($.Ol(h,m,.8)),t=$.Tb($.Ol(h,m,.2));h=$.Tb($.Ol(h,m,.1));var u=$.lm(c);m=u==$.Co; +u=u==$.Do;var v=$.bm(m?a.lb().fill():u?a.selected().fill():a.fill());t={color:m||u?$.Wl(t,.2):t,opacity:v};n={angle:45,keys:[{position:0,opacity:v,color:m||u?$.Wl(f,.2):$.Wl(f,.1)},{position:.19,opacity:v,color:m||u?$.Wl(n,.2):n},{position:1,opacity:v,color:m||u?$.Wl(r,.2):r}]};q=f={angle:-50,keys:[{position:0,opacity:v,color:m||u?$.Wl(f,.3):f},{position:1,opacity:v,color:m||u?$.Wl(q,.2):q}]};"topPath"==b?l=f:"bottomPath"==b?l=q:$.ec(b,"outer")?l=n:$.ec(b,"inner")?l=t:l={color:m||u?$.Wl(h,.2):h,opacity:v}; +var w;u&&$.km(a.selected().stroke())?w=a.selected().stroke():$.km(a.stroke())?w=a.stroke():w=l;k.fill(l);k.stroke(w);b="hatch"+String(b.charAt(0)).toUpperCase()+b.substr(1);if(d=d.o(b))d.qe(k.D()),d.tag={X:a,index:e},OO(a,c,b)},dP=function(a,b){return 0<=a&&0<=b?1:0>=a&&0<=b?2:0>=a&&0>b?3:4},eP=function(a,b){var c=$.$m(Math.cos($.bb(a)),7),d=$.$m(Math.cos($.bb(b)),7),e=dP(c,Math.sin($.bb(a))),f=dP(d,Math.sin($.bb(b))),h=[];if(1==e)switch(f){case 1:c>=d?h.push({start:a,end:b}):(h.push({start:a,end:180, +Jn:!0}),h.push({start:360,end:b}));break;case 2:h.push({start:a,end:b,Jn:!0});break;case 3:case 4:h.push({start:a,end:180,Jn:!0})}else if(2==e)switch(f){case 1:h.push({start:a,end:180});h.push({start:360,end:b});break;case 2:c>=d?h.push({start:a,end:b}):(h.push({start:a,end:180}),h.push({start:360,end:b,Jn:!0}));break;case 3:case 4:h.push({start:a,end:180})}else if(3==e)switch(f){case 1:h.push({start:360,end:b});break;case 2:h.push({start:360,end:b,Jn:!0});break;case 3:c>=d&&h.push({start:0,end:180, +Jn:!0})}else if(4==e)switch(f){case 1:h.push({start:360,end:b});break;case 2:h.push({start:360,end:b,Jn:!0});break;case 3:h.push({start:360,end:180,Jn:!0});break;case 4:c>=d&&h.push({start:0,end:180,Jn:!0})}return h},fP=function(a,b){var c=$.$m(Math.cos($.bb(a)),7),d=$.$m(Math.cos($.bb(b)),7),e=dP(c,Math.sin($.bb(a))),f=dP(d,Math.sin($.bb(b))),h=[];if(1==e)switch(f){case 1:c<=d&&h.push({start:180,end:360});break;case 3:h.push({start:180,end:b});break;case 4:h.push({start:180,end:b,Jn:!0})}else if(2== +e)switch(f){case 1:h.push({start:180,end:360,Jn:!0});break;case 2:c<=d&&h.push({start:180,end:360,Jn:!0});break;case 3:h.push({start:180,end:b});break;case 4:h.push({start:180,end:b,Jn:!0})}else if(3==e)switch(f){case 1:case 2:h.push({start:a,end:360,Jn:!0});break;case 3:c>=d?(h.push({start:a,end:360}),h.push({start:180,end:b})):h.push({start:a,end:b});break;case 4:h.push({start:a,end:b,Jn:!0})}else if(4==e)switch(f){case 1:case 2:h.push({start:a,end:360});break;case 3:h.push({start:a,end:360});h.push({start:180, +end:b});break;case 4:c>=d?(h.push({start:a,end:360}),h.push({start:180,end:b})):h.push({start:a,end:b})}return h},SO=function(a,b){var c=a.$();c.select(b);var d=a.Dc,e=a.uc,f=$.vx(a.state,b);if(f=TO(a,f)){var h=a.g("mode3d"),k=c.o("start");c=c.o("sweep");c=(k+c/2)*Math.PI/180;h=(h?.45*f:f)*Math.sin(c);d+=f*Math.cos(c);e+=h}return[d,e]},iP=function(a,b){bd)throw Error("Index can not be masked by this View");return a>=d?(a-=d,2b.ma()?1:a.ma()this.Ja&& +(this.dn=t),this.Ja=Math.max(this.Ja,sa);this.aa[t]||(sa=this.$a[2*t+1]-.2*this.b/2,sa=w&&saa.width&&(a.width=0);0>a.height&&(a.height=0);this.Lb.fx=!(0,window.isNaN)(e)&&(0,window.isFinite)(e)?e:0;this.Lb.fy=!(0,window.isNaN)(b)&&(0,window.isFinite)(b)?b:0;this.Lb.mode=a;WO(this)}; +$.g.pb=function(){if(this.J(8192)){this.hJ();for(var a=this.data().$(),b,c=0,d=Number.MAX_VALUE,e=-Number.MAX_VALUE,f=0;a.advance();)b=a.get("value"),QO(b)?c++:(b=+b,d=Math.min(b,d),e=Math.max(b,e),f+=b);a=a.Hb()-c;var h;a?h=f/a:d=e=f=h=void 0;this.La("count",a);this.La("min",d);this.La("max",e);this.La("sum",f);this.La("average",h);this.I(8192)}};$.g.pv=function(){this.Fa&&$.J(this.Fa,$.Ws)&&$.Xs(this.Fa,this.$().Hb())};$.g.kK=function(){var a=this.f.gi.sb();$.nb(a,this.Ba)||XO(this,a)}; +$.g.jL=function(){this.B(4,1)}; +$.g.Qh=function(a){this.pb();$.hv(this.labels());var b=this.$();b.Hb();var c=this.g("mode3d"),d=this.Sp();this.J(16384)&&(d&&d.ak&&(this.f.dG(),this.f.ak.parent(this.Na),this.f.ak.zIndex(25),this.f.ak&&($.J(this.f.gi,$.hg)?this.f.ak.Ka().wa("renderfinish",this.kK,!1,this):$.J(this.f.gi,$.Y)&&this.f.ak.wa("chartdraw",this.jL,!1,this))),this.I(16384));this.J(4)&&(this.nf=!0,this.Lm(a),this.B(4112));if(this.J(16)){this.yg=!0;var e=this.Vl();var f=0;for(b.reset();b.advance();)if(f=b.get("value"),QO(f))b.o("missing", +!0);else{f=+f;f=f/this.Rg("sum")*360;var h=b.get("state");h="selected"==h?$.Do:"hovered"==h?$.Co:"normal"==h?$.nm:window.NaN;(0,window.isNaN)(h)||this.state.Lh(h,b.ma());b.o("start",e).o("sweep",f).o("explode",TO(this,h));e+=f}}if(this.J(4096)){this.labels().O()||this.labels().O(this.Na);this.labels().clear();this.mc&&(this.mc.length=0);this.Id&&(this.Id.length=0);this.ba&&(this.ba.clear(),c&&this.$b.clear());if(this.labels().enabled()){var k=HO(this)?"outsideLabels":"insideLabels";e=$.Gr(this,k, +!0,function(){var a=new $.V;$.rd(this,a);$.W(this,k,a);return a}).oa;this.labels().Kq(e.autoColor);this.labels().disablePointerEvents(e.disablePointerEvents);if(HO(this)){if(this.yg||this.nf)this.b=this.zp,this.Ja=Number.NEGATIVE_INFINITY;VO(this);if(this.yg||this.nf){for(e=5;this.Ja&&(0,window.isFinite)(this.Ja)&&e&&10h&&(a=h,this.y=h-this.height);0!=this.labels.length&& +(e=this.qg.ek(this.labels[0]).height,this.y+eM&&(M=Math.abs(t-d));M=G*Math.sqrt(Math.pow(M,2)-Math.pow(t-d,2))/M;G=c+(this.f?1:-1)*Math.abs(M);x=c+x*Math.cos(w);B=d+B*Math.sin(w);var O=c+y*Math.cos(w);w=d+F*Math.sin(w);F=Math.floor($.on(G, +t,c,d))+v;v=Math.abs($.Bb(G-x,t-B,O-x,w-B));y=0>M||F>y;if(v>this.j||(0,window.isNaN)(this.j)||y){this.j=0>M?Number.POSITIVE_INFINITY:v;M=window.Infinity;for(F=w=0;Fh||y)this.YH=!0;u=G+u;G=this.f?u:u-e.width;this.x=(0,window.isNaN)(this.x)?G:this.x>G?G:this.x;G=this.f?u+e.width:u;this.width=(0,window.isNaN)(this.width)?G:this.widtht?y=$.cb(Math.atan(t/u))+360:0>u?y=$.cb(Math.atan(t/u))+180:!u&&0t&&(y=270);y-=r;this.b.push(y,G,n);a-=e.height/2+q/2}this.width-=this.x}; +$.g.pb=function(){this.Mx();if(this.YH){var a=this.K,b=this.F;(0,window.isNaN)(b)||(a.enabled(!1),this.ep||(this.ep=[]),this.ep.push(a),$.Ca(this.labels,b,1));var c=this.qg;a=this.labels;var d=this.i,e,f,h=d[d.length-1];if(h!=this){var k=null;b=a.slice();var l=d.length,m=!1;var n=0;for(e=a.length;nb.length){c.push(hia(a)+"(");for(var d=a.arguments,e=0;d&&eb)throw Error("Bad port number "+b);a.G=b}else a.G=null};Gia=function(a,b,c){b instanceof FW?(a.f=b,Iia(a.f,a.b)):(c||(b=GW(b,Jia)),a.f=new FW(b,a.b))};EW=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""}; +GW=function(a,b,c){return $.z(a)?(a=(0,window.encodeURI)(a).replace(b,Kia),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};Kia=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};FW=function(a,b){this.f=this.b=null;this.i=a||null;this.j=!!b};HW=function(a){a.b||(a.b=new $.gC,a.f=0,a.i&&Dia(a.i,function(b,c){a.add((0,window.decodeURIComponent)(b.replace(/\+/g," ")),c)}))}; +Mia=function(a){var b=Bia(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new FW(null,void 0);a=Aia(a);for(var d=0;dNumber($.ad)&&(c.vl.src='javascript:""');d=c.vl.style;d.visibility="hidden";d.width=d.height="10px";d.display="none";$.xd?d.marginTop=d.marginLeft="-10px":(d.position="absolute",d.top=d.left="-10px");if($.hd&&!$.bd("11")){c.Uk.target=c.LA||"";$.ye(c.Uk).b.body.appendChild(c.vl);$.Ld(c.vl,"readystatechange",c.IW,!1,c);try{c.b=!1,c.Uk.submit()}catch(Ib){$.Yd(c.vl,"readystatechange",c.IW,!1,c),LW(c)}}else{$.ye(c.Uk).b.body.appendChild(c.vl);d=c.LA+"_inner";e=BW(c.vl);if(window.document.baseURI){var f= +$.pc(d);$.ie("Short HTML snippet, input escaped, safe URL, for performance");f='';f=$.re(f,null)}else f=$.pc(d),$.ie("Short HTML snippet, input escaped, for performance"),f=$.re('',null);$.yd&&!$.xd?e.documentElement.innerHTML=yW(f):e.write(yW(f));$.Ld(e.getElementById(d),"load",c.jO,!1,c);var h=AW("TEXTAREA",c.Uk);f=0;for(var k=h.length;f.");if("A"in Sia)throw Error("Tag name is not allowed for SafeHtml.");w=null;x="";if(u)for(var S in u){if(!Ria.test(S))throw Error('Invalid attribute name "'+ +S+'".');var wa=u[S];if(null!=wa){G=x;y=S;B=wa;if(B instanceof $.he)B=tW(B);else if("style"==y.toLowerCase())B=via(B);else{if(/^on/i.test(y))throw Error('Attribute "'+y+'" requires goog.string.Const value, "'+B+'" given.');if(y.toLowerCase()in Tia)if(B instanceof vW)B=mia(B);else if(B instanceof $.ke)B=wW(B);else if($.z(B))B=xW(B).cu();else throw Error('Attribute "'+y+'" on tag "a" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+B+'" given.');}B.Ay&&(B=B.cu());var sa=y+'="'+$.pc(String(B))+ +'"';x=G+(" "+sa)}}var Qa="";else{var xb=wia(Q);Qa+=">"+yW(xb)+"";w=xb.b()}var mc=u&&u.dir;mc&&(/^(ltr|rtl|auto)$/i.test(mc)?w=0:w=null);var hb=$.re(Qa,w);var dc=wia(O,hb,zW("\nLine: "+v.lineNumber+"\n\nBrowser stack:\n"+v.stack+"-> [end]\n\nJS stack traversal:\n"+jia(void 0)+"-> "))}catch(Ac){dc=zW("Exception trying to expose exception! You win, we lose. "+Ac)}yW(dc);$.Yd(e.getElementById(d),"load",c.jO,!1,c);e.close();LW(c)}}MW(c)}; +Qia=function(a,b){var c=$.ye(a);Cia(b,function(b,e){$.A(b)||(b=[b]);(0,$.Pe)(b,function(b){b=c.Ac("INPUT",{type:"hidden",name:e,value:b});a.appendChild(b)})})};Via=function(a,b){a.iG=!0;a.cw=!1;var c,d;c||"function"!=typeof a.i||(d=a.i(b))&&(c=4);c?LW(a):(a.dispatchEvent("complete"),a.dispatchEvent("success"),OW(a))};LW=function(a){a.b||(a.cw=!1,a.iG=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"),OW(a),a.b=!0)};OW=function(a){Wia(a);MW(a);a.Uk=null;a.dispatchEvent("ready")}; +Wia=function(a){var b=a.vl;b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,a.f.push(b));a.KA&&($.Ej(a.KA),a.KA=null);$.gd||$.yd&&!$.xd?a.KA=$.Dj(a.Y0,2E3,a):a.Y0();a.vl=null;a.LA=null};MW=function(a){a.Uk&&a.Uk==KW&&$.Ve(a.Uk)};PW=function(a){return a.vl?$.hd&&!$.bd("11")?a.vl:BW(a.vl).getElementById(a.LA+"_inner"):null};Xia=function(){};Zia=function(a){var b;(b=a.b)||(b={},Yia(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b};$ia=function(){}; +aja=function(a){return(a=Yia(a))?new window.ActiveXObject(a):new window.XMLHttpRequest};Yia=function(a){if(!a.f&&"undefined"==typeof window.XMLHttpRequest&&"undefined"!=typeof window.ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;ck?[k/h*d,k]:[c,k],k[0]-=e||0, +k[1]-=f||0,a=a.Nq(k[0],k[1])):a=a.Nq(b["pdf-width"],b["pdf-height"]);b.data=a;b.dataType="svg";b.responseType="file"};fX=function(a,b,c,d,e){if("svg"==$.kk){var f={};aX(a,f,b,c,d,e);NW(ZW+"/png",f)}else(0,window.alert)($.ld(15))};gX=function(a,b,c,d,e,f){if("svg"==$.kk){var h={};bX(a,h,b,c,d,e,f);NW(ZW+"/jpg",h)}else(0,window.alert)($.ld(15))};hX=function(a,b,c,d,e,f){if("svg"==$.kk){var h={};eX(a,h,b,c,d,e,f);NW(ZW+"/pdf",h)}else(0,window.alert)($.ld(15))}; +iX=function(a,b,c,d){if("svg"==$.kk){var e={};cX(a,e,b,c,d);NW(ZW+"/svg",e)}else(0,window.alert)($.ld(15))};mja=function(a){var b="";a&&(b=(new window.XMLSerializer).serializeToString(a));return b};jX=function(){this.b={};this.i={};this.G={};this.j={};this.F={};this.ea=["svg2pdf.min.js","jspdf.min.js","canvg.min.js","xlsx.core.min.js"];this.i3=!1;this.K={}}; +nja=function(a){var b=kX,c=$.fa.anychart.exports;if(c.i3)return zia();var d=b.ea,e=c.ic(a,"clientside").path;e+=$.fc(e,"/")?"":"/";a=[];for(var f=0;fn||!f&&qu?"l":"p","pt",[t,u]);$.z(b)? +r.addImage(b,"png",h,k,t,u):$.fa.svg2pdf(b,r,{xOffset:h,yOffset:k,scale:1})}r.save(l)}catch(v){d(c)}}; +oX=function(a,b,c,d,e,f,h){var k=nX[c],l=$.Re(window.document,"canvas");l.width=d;l.height=e;$.uf(l,{width:d,height:e,visibility:"hidden",position:"fixed",right:0,bottom:0});$.Vp.body.appendChild(l);var m=l.getContext("2d"),n=new window.Image,q=b.quality||.92;a.setAttribute("width",d);a.setAttribute("height",e);var r=(new window.XMLSerializer).serializeToString(a),t=kia(new window.Blob([r],{type:"image/svg+xml"}));n.onload=function(){try{if(l.msToBlob&&m.drawSvg){m.drawSvg(r,0,0,d,e);var a=l.toDataURL(k, +q)}else m.drawImage(n,0,0,d,e),a=l.toDataURL(k,q);f(a);$.Xe(l);uW().revokeObjectURL(t)}catch(v){h(b)}};n.src=t}; +qja=function(a,b,c,d,e,f,h){function k(a){mX(a,l,c)}var l=d.filename||"anychart",m=0m||!l&&n'+c};$.E("acgraph.server",function(a){$.p(a)&&(ZW=a);return ZW});var qX=$.Yj.prototype;qX.useAnychartExporting=qX.wla;qX.saveAsPNG=qX.Eu; +qX.saveAsJPG=qX.Xw;qX.saveAsPDF=qX.Yw;qX.saveAsSVG=qX.Zw;qX.saveAsPng=qX.Eu;qX.saveAsJpg=qX.Xw;qX.saveAsPdf=qX.Yw;qX.saveAsSvg=qX.Zw;qX.shareAsPng=qX.Hu;qX.shareAsJpg=qX.FB;qX.shareAsPdf=qX.GB;qX.shareAsSvg=qX.HB;qX.getPngBase64String=qX.zA;qX.getJpgBase64String=qX.wA;qX.getSvgBase64String=qX.BA;qX.getPdfBase64String=qX.yA;qX.print=qX.print;qX.toSvg=qX.Nq;$.g=jX.prototype;$.g.u0=function(a){return"object"==$.ka(a)?($.ra(this.K,a),this):this.K};$.g.filename=function(a){$.p(a)&&(this.aa=a);return this.aa};$.g.xk=function(a,b){return this.b=CW({width:a,height:b},a,this.b)};$.g.v1=function(a,b,c,d,e,f,h){return this.i=CW({caption:a,link:b,name:c,description:d,width:e,height:f,appId:h},a,this.i)};$.g.R6=function(a,b,c){return this.G=CW({url:a,width:b,height:c},a,this.G)}; +$.g.G3=function(a,b,c,d){return this.j=CW({caption:a,description:b,width:c,height:d},a,this.j)};$.g.D4=function(a,b,c,d){return this.F=CW({link:a,description:b,width:c,height:d},a,this.F)}; +$.g.TK=function(){this.aa="anychart";this.b={width:void 0,height:void 0};this.i={caption:$.ll.location?$.ll.location.hostname:"",link:void 0,name:void 0,description:void 0,appId:0x42607363aa4b7,width:1200,height:630};this.G={url:"https://export.anychart.com/sharing/twitter",width:1024,height:800};this.j={caption:"AnyChart",description:void 0,width:1200,height:630};this.F={link:void 0,description:void 0,width:1200,height:800};this.K={path:"https://cdn.anychart.com/3rd/",enabled:!0,fallback:!0}}; +$.g.D=function(){var a={};lX(a,"filename",this.aa);lX(a,"image",this.b);lX(a,"facebook",this.i);lX(a,"twitter",this.G);lX(a,"linkedin",this.j);lX(a,"pinterest",this.F);lX(a,"clientside",this.K);return a};$.g.U=function(a){this.filename(a.filename);this.xk(a.image);this.v1(a.facebook);this.R6(a.twitter);this.G3(a.linkedin);this.D4(a.pinterest);this.u0(a.clientside)};var rX=jX.prototype;rX.filename=rX.filename;rX.image=rX.xk;rX.facebook=rX.v1;rX.twitter=rX.R6;rX.linkedin=rX.G3;rX.pinterest=rX.D4; +rX.clientside=rX.u0;var nX={png:"image/png",jpg:"image/jpeg",svg:"image/svg+xml",csv:"text/csv",pdf:"application/pdf",json:"application/json",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xml:"text/xml"};var kX=new jX;kX.TK();kX.create=function(){return new jX};kX.ic=function(a,b){var c=a&&a.exports?a.exports()[b]():void 0,d=$.fa.anychart.exports[b](),e;"object"==$.ka(c)?e=CW(d,c,d):e=$.p(c)?c:d;return e};kX.na=$.fa.IS_ANYCHART_AMD?$.oq.acgraph.server:$.ll.acgraph.server;kX.ba=function(a,b,c){return function(){NW(ZW+"/"+c,{"file-name":b,data:a,dataType:c,responseType:"file"})}};kX.f=function(a,b){return function(c){a.fallback?($.kl(1E3,null,[],!0),b.call(null,arguments)):$.kl(1002,null,[],!0)}}; +kX.Eu=function(a,b,c,d,e,f){var h=b?b.Ka():null;h&&(b=kX.ic(a,"image"),c=CW({width:c,height:d,quality:e,filename:f},c,{width:b.width,height:b.height,filename:kX.ic(a,"filename")}),d=kX.ic(a,"clientside"),e=kX.f(d,function(a){fX(h,a.width,a.height,a.quality,a.filename)}),d.enabled?pX(a,"png",c,e):d.fallback?fX(h,c.width,c.height,c.quality,c.filename):$.kl(1001,null,[],!0))}; +kX.Xw=function(a,b,c,d,e,f,h){var k=b?b.Ka():null;k&&(b=kX.ic(a,"image"),c=CW({width:c,height:d,quality:e,forceTransparentWhite:f,filename:h},c,{width:b.width,height:b.height,filename:kX.ic(a,"filename")}),d=kX.ic(a,"clientside"),e=kX.f(d,function(a){gX(k,a.width,a.height,a.quality,a.forceTransparentWhite,a.filename)}),d.enabled?pX(a,"jpg",c,e):d.fallback?gX(k,c.width,c.height,c.quality,c.forceTransparentWhite,c.filename):$.kl(1001,null,[],!0))}; +kX.Yw=function(a,b,c,d,e,f,h){var k=b?b.Ka():null;k&&(b=kX.ic(a,"image"),c=CW({paperSize:c,width:c,landscape:d,height:d,x:e,y:f,filename:h},c,{width:b.width,height:b.height,filename:kX.ic(a,"filename")}),d=kX.ic(a,"clientside"),e=kX.f(d,function(a){hX(k,a.paperSize||a.width,a.landscape||a.height,a.x,a.y,a.filename)}),d.enabled?pX(a,"pdf",c,e):d.fallback?hX(k,c.paperSize||c.width,c.landscape||c.height,c.x,c.y,c.filename):$.kl(1001,null,[],!0))}; +kX.Zw=function(a,b,c,d,e){var f=b?b.Ka():null;f&&(b=kX.ic(a,"image"),c=CW({paperSize:c,width:c,landscape:d,height:d,filename:e},c,{width:b.width,height:b.height,filename:kX.ic(a,"filename")}),d=kX.ic(a,"clientside"),e=kX.f(d,function(a){iX(f,a.paperSize||a.width,a.landscape||a.height,a.filename)}),d.enabled?pX(a,"svg",c,e):d.fallback?iX(f,c.paperSize||c.width,c.landscape||c.height,c.filename):$.kl(1001,null,[],!0))}; +kX.Nq=function(a,b,c,d){return(b=b?b.Ka():null)?(a=kX.ic(a,"image"),c=CW({paperSize:c,width:c,landscape:d,height:d},c,{width:a.width,height:a.height}),b.Nq(c.paperSize||c.width,c.landscape||c.height)):""};kX.P=function(a,b,c,d){d=d||kX.ic(a,"filename");a=kX.ic(a,"clientside");var e=kX.ba(b,d,c),f=kX.f(a,e);if(a.enabled)try{mX(new window.Blob([b],{type:nX[c]||""}),d,c)}catch(h){f()}else a.fallback?e():$.kl(1001,null,[],!0)};kX.WO=function(a,b,c){kX.P(a,b,"xml",c)}; +kX.VO=function(a,b,c){kX.P(a,b,"json",c)};kX.cz=function(a,b,c){kX.P(a,b,"csv",c)};kX.dz=function(a,b,c){var d=kX.ic(a,"clientside");c=c||kX.ic(a,"filename");var e=kX.ba(b,c,"xlsx"),f=kX.f(d,e);d.enabled?oja(a,b,c,f):d.fallback?e():$.kl(1001,null,[],!0)}; +kX.Hu=function(a,b,c,d,e,f,h,k,l){if(b=b?b.Ka():null){var m=kX.ic(a,"image");a=CW({onSuccess:c,onError:d,asBase64:e,width:f,height:h,quality:k,filename:l},c,{width:m.width,height:m.height,filename:kX.ic(a,"filename")});b.Hu(a.onSuccess,a.onError,a.asBase64,a.width,a.height,a.quality,a.filename)}}; +kX.FB=function(a,b,c,d,e,f,h,k,l,m){if(b=b?b.Ka():null){var n=kX.ic(a,"image");a=CW({onSuccess:c,onError:d,asBase64:e,width:f,height:h,quality:k,forceTransparentWhite:l,filename:m},c,{width:n.width,height:n.height,filename:kX.ic(a,"filename")});b.FB(a.onSuccess,a.onError,a.asBase64,a.width,a.height,a.quality,a.forceTransparentWhite,a.filename)}}; +kX.HB=function(a,b,c,d,e,f,h,k){if(b=b?b.Ka():null){var l=kX.ic(a,"image");a=CW({onSuccess:c,onError:d,asBase64:e,paperSize:f,width:f,landscape:h,height:h,filename:k},c,{width:l.width,height:l.height,filename:kX.ic(a,"filename")});b.HB(a.onSuccess,a.onError,a.asBase64,a.paperSize||a.width,a.landscape||a.height,a.filename)}}; +kX.GB=function(a,b,c,d,e,f,h,k,l,m){if(b=b?b.Ka():null){var n=kX.ic(a,"image");a=CW({onSuccess:c,onError:d,asBase64:e,paperSize:f,width:f,landscape:h,height:h,x:k,y:l,filename:m},c,{width:n.width,height:n.height,filename:kX.ic(a,"filename")});b.GB(a.onSuccess,a.onError,a.asBase64,a.paperSize||a.width,a.landscape||a.height,a.x,a.y,a.filename)}}; +kX.zA=function(a,b,c,d,e,f,h){if(b=b?b.Ka():null)a=kX.ic(a,"image"),c=CW({onSuccess:c,onError:d,width:e,height:f,quality:h},c,{width:a.width,height:a.height}),b.zA(c.onSuccess,c.onError,c.width,c.height,c.quality)};kX.wA=function(a,b,c,d,e,f,h,k){if(b=b?b.Ka():null)a=kX.ic(a,"image"),c=CW({onSuccess:c,onError:d,width:e,height:f,quality:h,forceTransparentWhite:k},c,{width:a.width,height:a.height}),b.wA(c.onSuccess,c.onError,c.width,c.height,c.quality,c.forceTransparentWhite)}; +kX.BA=function(a,b,c,d,e,f){if(b=b?b.Ka():null)a=kX.ic(a,"image"),c=CW({onSuccess:c,onError:d,paperSize:e,width:e,landscape:f,height:f},c,{width:a.width,height:a.height}),b.BA(c.onSuccess,c.onError,c.paperSize||c.width,c.landscape||c.height)};kX.yA=function(a,b,c,d,e,f,h,k){if(b=b?b.Ka():null)a=kX.ic(a,"image"),c=CW({onSuccess:c,onError:d,paperSize:e,width:e,landscape:f,height:f,x:h,y:k},c,{width:a.width,height:a.height}),b.yA(c.onSuccess,c.onError,c.paperSize||c.width,c.landscape||c.height,c.x,c.y)}; +kX.print=function(a,b,c,d){if(a=b?b.Ka():null)c=CW({paperSize:c,landscape:d},c),a.print(c.paperSize,c.landscape)}; +kX.LE=function(a,b,c,d,e,f){var h=kX.ic(a,"facebook"),k=CW({caption:c,link:d,name:e,description:f},c,h),l=$.ll.open("","_blank","scrollbars=yes, width=550, height=550, top="+Number(window.screen.height/2-275)+", left="+Number(window.screen.width/2-275));kX.Hu(a,b,function(a){a={app_id:h.appId,display:"popup",picture:a};a.caption=k.caption;k.link&&(a.link=k.link,k.name&&(a.name=k.name),k.description&&(a.description=k.description));var b="",c;for(c in a)b+=b?"&":"",b+=c+"="+a[c];l.location.href="https://www.facebook.com/dialog/feed?"+ +b},void 0,!1,h.width,h.height)}; +kX.OE=function(a,b){var c=kX.ic(a,"twitter"),d=Number(window.screen.width/2-300),e=Number(window.screen.height/2-260);var f=$.Ae(window.document,"INPUT","ac-share-twitter-data-input",void 0);if(0 +a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null},i8=function(a){for(var b=new $.kb(0,window.Infinity,window.Infinity,0),c=$.ye(a),d=c.b.body,e=c.b.documentElement,f=$.Fe(c.b);a=Msa(a);)if(!($.hd&&0==a.clientWidth||$.xd&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=$.Af(a,"overflow")){var h=$.Ff(a),k=new $.gb(a.clientLeft,a.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom, +h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=$.Ee($.Ge(c.b)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null},Nsa=function(a,b){var c=b||$.Fe(window.document);var d=c||$.Fe(window.document);var e=$.Ff(a),f=$.Ff(d),h=$.Vf(d);if(d==$.Fe(window.document)){var k=e.x-d.scrollLeft;e=e.y-d.scrollTop;$.hd&&!$.dd(10)&&(k+=h.left, +e+=h.top)}else k=e.x-f.x-h.left,e=e.y-f.y-h.top;h=$.Jf(a);f=d.clientHeight-h.height;var l=d.scrollLeft,m=d.scrollTop;l+=Math.min(k,Math.max(k-(d.clientWidth-h.width),0));m+=Math.min(e,Math.max(e-f,0));d=new $.gb(l,m);c.scrollLeft=d.x;c.scrollTop=d.y},j8=function(a,b){$.qf.call(this);this.f=a||1;this.b=b||$.Cj;this.i=(0,$.pa)(this.cla,this);this.j=(0,$.Sn)()},Osa=function(a,b){var c="";b&&(c=b.id);$.Hy(a,"activedescendant",c)},k8=function(){this.f=[]},l8=function(a,b){var c=a.f[b];if(!c){switch(b){case 0:c= +a.Hh()+"-highlight";break;case 1:c=a.Hh()+"-checkbox";break;case 2:c=a.Hh()+"-content"}a.f[b]=c}return c},Psa=function(a,b,c){a=l8(a,2);return c.Ac("DIV",a,b)},m8=function(a,b){var c=a.Gn(b);if(c){c=c.firstChild;var d=l8(a,1);return!!c&&$.af(c)&&$.Lj(c,d)}return!1},n8=function(a,b,c,d){$.oD(a,c,b.kH());$.rD(a,b,c);d!=m8(a,c)&&(d?$.Qj(c,"anychart-option"):$.Sj(c,"anychart-option"),c=a.Gn(c),d?(a=l8(a,1),c.insertBefore(b.f.Ac("DIV",a),c.firstChild||null)):c.removeChild(c.firstChild))},o8=function(a, +b,c,d){$.AD.call(this,a,d||k8.vd(),c);this.dh=b},p8=function(a,b,c,d){o8.call(this,a,b,c,d);this.P=!1},q8=function(a){this.b=a},r8=function(a,b){a&&(a.tabIndex=b?0:-1)},Ssa=function(a,b,c){c.id&&f8(b,c.id);var d=a.BD(),e=!1,f=$.Kj(c);f&&(0,$.Pe)(f,function(a){a==d?e=!0:a&&(a==d+"-disabled"?b.Dj(!1):a==d+"-horizontal"?Qsa(b,s8):a==d+"-vertical"&&Qsa(b,t8))},a);e||$.Qj(c,d);Rsa(a,b,c);return c},Rsa=function(a,b,c){if(c)for(var d=c.firstChild,e;d&&d.parentNode==c;){e=d.nextSibling;if(1==d.nodeType){var f= +a.aH(d);f&&(f.Fd=d,b.isEnabled()||f.Dj(!1),b.hc(f),f.Bs(d))}else d.nodeValue&&""!=(0,$.vc)(d.nodeValue)||c.removeChild(d);d=e}},Tsa=function(a,b){var c=a.BD(),d=[c,b.vh==s8?c+"-horizontal":c+"-vertical"];b.isEnabled()||d.push(c+"-disabled");return d},u8=function(a,b,c){$.Jy.call(this,c);this.dw=b||q8.vd();this.vh=a||this.dw.P1()},v8=function(a){return a.KV||a.Za()},Usa=function(a,b){var c=$.Ly(a),d=v8(a);b?c.wa(d,"focus",a.XM).wa(d,"blur",a.WM).wa(a.Zl||(a.Zl=new $.Tp(v8(a))),"key",a.oo):c.gc(d,"focus", +a.XM).gc(d,"blur",a.WM).gc(a.Zl||(a.Zl=new $.Tp(v8(a))),"key",a.oo)},Vsa=function(a,b){var c=b.Za();c=c.id||(c.id=b.ny());a.tv||(a.tv={});a.tv[c]=b},Qsa=function(a,b){if(a.Za())throw Error("Component already rendered");a.vh=b},w8=function(a,b){b!=a.kD&&a.xf&&Usa(a,b);a.kD=b;a.DA&&a.hj&&r8(v8(a),b)},x8=function(a){return a.yd(a.ul)},z8=function(a){y8(a,function(a,c){return(a+1)%c},$.Ny(a)-1)},Wsa=function(a){y8(a,function(a,c){a--;return 0>a?c-1:a},0)},A8=function(a){y8(a,function(a,c){return(a+1)% +c},a.ul)},B8=function(a){y8(a,function(a,c){a--;return 0>a?c-1:a},a.ul)},y8=function(a,b,c){c=0>c?a.Kf(a.dm):c;var d=$.Ny(a);c=b.call(a,c,d);for(var e=0;e<=d;){var f=a.yd(c);if(f&&a.n0(f)){a.Wn(c);break}e++;c=b.call(a,c,d)}},C8=function(){},Xsa=function(a,b,c){$.AD.call(this,a,c||C8.vd(),b);this.hn(1,!1);this.hn(2,!1);this.hn(4,!1);this.hn(32,!1);this.ec=1},D8=function(){},E8=function(a,b){$.AD.call(this,null,a||D8.vd(),b);this.hn(1,!1);this.hn(2,!1);this.hn(4,!1);this.hn(32,!1);this.ec=1},F8=function(a){this.b= +a||"menu"},G8=function(a){E8.call(this,D8.vd(),a)},H8=function(a,b){u8.call(this,t8,b||F8.vd(),a);w8(this,!1)},I8=function(a,b){(a.CF=b)&&w8(a,!0)},J8=function(a,b){H8.call(this,a,b);this.P=null},L8=function(a,b,c,d,e,f,h,k,l){var m=Ysa(c),n=$.Mf(a),q=i8(a);if(q){var r=new $.I(q.left,q.top,q.right-q.left,q.bottom-q.top);q=Math.max(n.left,r.left);var t=Math.min(n.left+n.width,r.left+r.width);if(q<=t){var u=Math.max(n.top,r.top);r=Math.min(n.top+n.height,r.top+r.height);u<=r&&(n.left=q,n.top=u,n.width= +t-q,n.height=r-u)}}q=$.ye(a);u=$.ye(c);if(q.b!=u.b){t=q.b.body;u=$.Ge(u.b);r=new $.gb(0,0);var v=(v=$.te(t))?$.Ge(v):window;if($.Zc(v,"parent")){var w=t;do{var x=v==u?$.Ff(w):$.Gf(w);r.x+=x.x;r.y+=x.y}while(v&&v!=u&&v!=v.parent&&(w=v.frameElement)&&(v=v.parent))}t=h8(r,$.Ff(t));!$.hd||$.dd(9)||$.De(q.b)||(t=h8(t,$.He(q.b)));n.left+=t.x;n.top+=t.y}a=Zsa(a,b);b=n.left;a&4?b+=n.width:a&2&&(b+=n.width/2);n=new $.gb(b,n.top+(a&1?n.height:0));n=h8(n,m);e&&(n.x+=(a&4?-1:1)*e.x,n.y+=(a&1?-1:1)*e.y);if(h)if(l)var y= +l;else if(y=i8(c))y.top-=m.y,y.right-=m.x,y.bottom-=m.y,y.left-=m.x;return K8(n,c,d,f,y,h,k)},Ysa=function(a){if(a=a.offsetParent){var b="HTML"==a.tagName||"BODY"==a.tagName;if(!b||"static"!=$.Af(a,"position")){var c=$.Ff(a);if(!b){b=$.Qf(a);var d;if(d=b){d=$.jE&&0<=$.xc($.xda,10);var e=$.pda&&0<=$.xc($.tda,10);d=$.gd||d||e}b=d?-a.scrollLeft:!b||$.kda&&$.bd("8")||"visible"==$.Af(a,"overflowX")?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft;c=h8(c,new $.gb(b,a.scrollTop))}}}return c||new $.gb}, +K8=function(a,b,c,d,e,f,h){a=a.clone();var k=Zsa(b,c);c=$.Kf(b);h=h?h.clone():c.clone();a=a.clone();h=h.clone();var l=0;if(d||0!=k)k&4?a.x-=h.width+(d?d.right:0):k&2?a.x-=h.width/2:d&&(a.x+=d.left),k&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);if(f){if(e){d=a;k=h;l=0;65==(f&65)&&(d.x=e.right)&&(f&=-2);132==(f&132)&&(d.y=e.bottom)&&(f&=-5);d.xe.right&&(k.width=Math.min(e.right-d.x, +m+k.width-e.left),k.width=Math.max(k.width,0),l|=4)}d.x+k.width>e.right&&f&1&&(d.x=Math.max(e.right-k.width,e.left),l|=1);f&2&&(l|=(d.xe.right?32:0));d.ye.bottom&&(k.height=Math.min(e.bottom-d.y,m+k.height-e.top),k.height=Math.max(k.height,0),l|=8));d.y+k.height>e.bottom&&f&4&&(d.y=Math.max(e.bottom-k.height,e.top),l|=2);f&8&&(l|=(d.ye.bottom?128:0));e=l}else e= +256;l=e}f=new $.I(0,0,0,0);f.left=a.x;f.top=a.y;f.width=h.width;f.height=h.height;e=l;if(e&496)return e;$.Cf(b,new $.gb(f.left,f.top));h=new $.lb(f.width,f.height);$.mb(c,h)||(c=h,a=$.De($.ye($.te(b)).b),!$.hd||$.bd("10")||a&&$.bd("8")?(b=b.style,$.gd?b.MozBoxSizing="border-box":$.xd?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(c.width,0)+"px",b.height=Math.max(c.height,0)+"px"):(h=b.style,a?(a=$.Uf(b,"padding"),b=$.Vf(b),h.pixelWidth=c.width-b.left-a.left-a.right-b.right, +h.pixelHeight=c.height-b.top-a.top-a.bottom-b.bottom):(h.pixelWidth=c.width,h.pixelHeight=c.height)));return e},Zsa=function(a,b){return(b&8&&$.Qf(a)?b^4:b)&-9},M8=function(){},N8=function(a,b,c){this.element=a;this.i=b;this.K=c},O8=function(a,b,c,d){N8.call(this,a,b);this.j=c?5:0;this.F=d||void 0},P8=function(a,b){a&48&&(b^=4);a&192&&(b^=1);return b},Q8=function(){this.f=[]},ata=function(a,b,c){var d=b.f.Ac("SPAN");d.className="anychart-submenu-arrow";$sa(b,d);a.Gn(c).appendChild(d)},$sa=function(a, +b){$.My(a)?($.Qj(b,"anychart-submenu-arrow-rtl"),$.df(b,"â—„")):($.Sj(b,"anychart-submenu-arrow-rtl"),$.df(b,"â–º"))},R8=function(a,b,c,d){o8.call(this,a,b,c,d||Q8.vd())},bta=function(a){a.getParent().Pj(function(a){a!=this&&"function"==typeof a.Pl&&(a.Pl(),a.Tp())},a)},cta=function(a,b){!b&&S8(a)&&S8(a).Wn(-1);a.dispatchEvent($.Ky(64,b));var c=S8(a);if(b!=a.JU){var d=a.Za();b?$.Qj(d,"anychart-submenu-open"):$.Sj(d,"anychart-submenu-open")}if(b!=c.Oe()&&(b&&(c.xf||c.Td(),c.Wn(-1)),c.Ji(b),b)){c=new O8(a.Za(), +12,!1);d=S8(a);var e=d.Za();d.Oe()||(e.style.visibility="hidden",$.Pf(e,!0));c.b(e,8);d.Oe()||($.Pf(e,!1),e.style.visibility="visible")}a.JU=b},T8=function(a,b,c){var d=$.Ly(a);(c?d.wa:d.gc).call(d,b,"enter",a.Zfa)},S8=function(a){a.Wl?a.ZM&&a.Wl.getParent()!=a&&a.Wl.gl(a):U8(a,new H8(a.f));a.Wl.Za()||a.Wl.Ac();return a.Wl},U8=function(a,b){var c=a.Wl;b!=c&&(c&&(a.Pl(),a.xf&&T8(a,c,!1)),a.Wl=b,a.ZM=!1,b&&(b.gl(a),b.Ji(!1,!0),I8(b,!1),w8(b,!1),a.xf&&T8(a,b,!0)))},V8=function(){this.f=[]},dta=function(a, +b,c){b=b.f.Ac("span");b.className="anychart-submenu-arrow";b.innerHTML=" ";a.Gn(c).appendChild(b)},W8=function(a,b,c){o8.call(this,a,void 0,void 0,V8.vd());this.P=c||!1;this.b=b||null},eta=function(a){a.getParent().Pj(function(a){a!=this&&"function"==typeof a.Pl&&(a.Pl(),a.Tp())},a)},fta=function(a,b){!b&&X8(a)&&X8(a).Wn(-1);a.dispatchEvent($.Ky(64,b));var c=X8(a);if(b!=a.CR){var d=a.Za();b?$.Qj(d,"anychart-submenu-open"):$.Sj(d,"anychart-submenu-open")}if(b!=c.Oe()&&(b&&(c.xf||c.Td(a.b),c.Wn(-1)), +c.Ji(b),b)){c=new O8(a.Za(),12,!1);var e=X8(a),f=e.Za();e.Oe()||(f.style.visibility="hidden",$.Pf(f,!0));c.b(f,8);e.Oe()||($.Pf(f,!1),f.style.visibility="visible");c=$.Ee(window);d=$.Mf(f);f=$.Hf(f);e=e.P;var h=$.Mf(e);e.style.maxHeight=c.height-f.y-(d.height-h.height)-15+"px"}a.CR=b},Y8=function(a,b,c){var d=$.Ly(a);(c?d.wa:d.gc).call(d,b,"enter",a.fda)},X8=function(a){if(a.Kl)a.QK&&a.Kl.getParent()!=a&&a.Kl.gl(a);else{var b=a.P?Z8.vd():void 0;b=new J8(a.f,b);var c=a.Kl;b!=c&&(c&&(a.Pl(),a.xf&&Y8(a, +c,!1)),a.Kl=b,a.QK=!1,b&&(b.gl(a),b.Ji(!1,!0),I8(b,!1),w8(b,!1),a.xf&&Y8(a,b,!0)))}a.Kl.Za()||a.Kl.Ac();return a.Kl},$8=function(a,b){this.i=a instanceof $.gb?a:new $.gb(a,b)},a9=function(a,b){$8.call(this,a,b)},gta=function(a,b,c,d){O8.call(this,a,b,c||d);(c||d)&&this.f(65|(d?32:132))},b9=function(a,b){H8.call(this,a,b);I8(this,!0);this.Ji(!1,!0);this.i=new $.gC},hta=function(a,b,c,d){var e=a.Oe();a.Oe()||(0,$.Sn)();a.dispatchEvent("beforeshow")&&(c="undefined"!=typeof c?c:8,e||(a.Za().style.visibility= +"hidden"),$.Pf(a.Za(),!0),b.b(a.Za(),c,d),e||(a.Za().style.visibility="visible"),a.Wn(-1),a.Ji(!0))},ita=function(a,b){for(var c=a.i.Yt(),d=0;dthis.ul&&b<=this.ul?this.ul++:athis.ul&&this.ul--}; +$.g.removeChild=function(a,b){if(a=$.z(a)?$.Oy(this,a):a){var c=this.Kf(a);-1!=c&&(c==this.ul?(a.rq(!1),this.ul=-1):cb&&this.b.padding().bottom(b+a)}this.b.listen("selectedrangechange",this.AR,!1,this);a=$.Ly(this);a.wa(this.i.Za(),"blur",this.JW);a.wa(this.K.Za(),"blur",this.JW);this.aa||(this.aa=new $.Tp(this.i.Za()),a.wa(this.aa,"key",this.lO));this.ea||(this.ea=new $.Tp(this.K.Za()),a.wa(this.ea,"key",this.lO))}}; +$.g.JW=function(){var a=this.i.vj(),b=this.K.vj(),c=this.format();a=$.oq.format.parseDateTime(a,c);b=$.oq.format.parseDateTime(b,c);if(a&&b){c=a.getTime();var d=b.getTime();c>d&&(a=[b,b=a][0],c=[d,d=c][0]);if(c!=this.Ba||d!=this.Ja){this.Ba=c;this.Ja=d;this.b.selectRange(a,b,!0);return}}$.Uy(this.i,$.oq.format.dateTime(this.Ba,this.format()));$.Uy(this.K,$.oq.format.dateTime(this.Ja,this.format()))}; +$.g.lO=function(a){if(13==a.keyCode){a=a.target.s3.Za();var b;a:{var c=b=0;if(uta(a))b=a.selectionStart,c=-1;else if($.hd&&!$.bd("9")){var d=a.ownerDocument||a.document;var e=d.selection.createRange();"textarea"==a.type?(d=d.body.createTextRange(),d.moveToElementText(a)):d=a.createTextRange();d=[d,e];e=d[0];d=d[1];if(e.inRange(d)){e.setEndPoint("EndToStart",d);if("textarea"==a.type){d.duplicate();c=b=e.text;for(d=!1;!d;)0==e.compareEndPoints("StartToEnd",e)?d=!0:(e.moveEnd("character",-1),e.text== +b?c+="\r\n":d=!0);b=[c.length,-1];break a}b=e.text.length;c=-1}}b=[b,c]}b=b[0];this.JW();uta(a)?(a.selectionStart=b,a.selectionEnd=b):$.hd&&!$.bd("9")&&("textarea"==a.type&&(b=$.hc(a.value.substring(0,b)).length),a=a.createTextRange(),a.collapse(!0),a.move("character",b),a.select())}};$.g.Dh=function(){C9.u.Dh.call(this)}; +$.g.R=function(){this.b.unlisten("selectedrangechange",this.AR,!1,this);this.b=null;this.P&&($.Xe(this.ba),this.ba=null);this.P&&($.Xe(this.P),this.P=null);this.aa&&($.Ly(this).gc(this.aa,"key",this.lO),this.aa.ld(),this.aa=null);this.ea&&($.Ly(this).gc(this.ea,"key",this.lO),this.ea.ld(),this.ea=null);C9.u.R.call(this)};var L9=C9.prototype;$.E("anychart.ui.rangePicker",function(){return new C9});L9.render=L9.Td;L9.decorate=L9.Bs;L9.target=L9.target;L9.format=L9.format;L9.dispose=L9.ld; +L9.getElement=L9.Za;L9.toLabelText=L9.kla;L9.fromLabelText=L9.sfa;$.H(zta,$.TD);var yta="anychart-button-toggle";$.H(D9,$.qf);$.g=D9.prototype;$.g.BH=null;$.g.IU=null;$.g.oy=function(a){return this.Ub[a]||null};$.g.ym=function(){return $.Ha(this.Ub)};$.g.clear=function(){var a=this.Ub;if(!$.A(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0;this.BH=null};$.g.R=function(){D9.u.R.call(this);delete this.Ub;this.BH=null};$.H(G9,$.Jy);$.g=G9.prototype;$.g.target=function(a){this.b=a};$.g.OK=function(a){if(a.firstSelected==a.firstKey&&a.lastSelected==a.lastKey&&(a=$.Oy(this,"max"))){F9(this.i,a);return}F9(this.i,null)};$.g.cda=function(a,b){a&&$.KD(a,b)}; +$.g.Yy=function(a){$.p(a)&&$.A(a)&&(this.jd=(0,$.Gg)(a,function(a,c){c=$.Qc(c);var b=$.p(c.startDate)&&$.p(c.endDate);"unit"==c.type||"points"==c.type?(c.count=c.count||1,c.anchor=$.fl(c.anchor),a.push(c)):b?(c.type="range",a.push(c)):"range"!=c.type&&a.push(c);return a},[]),this.update());return this.jd};$.g.Ac=function(){G9.u.Ac.call(this);Bta(this)};$.g.ql=function(a){Cta(a)?this.Td(a):(G9.u.ql.call(this,a),Bta(this))}; +$.g.update=function(){this.xf&&(this.Gi(!0),this.i.clear(),(0,$.Pe)(this.jd,function(a,b){var c=new zta(a.text);c.dh=a;"max"==a.type&&f8(c,"max");c.mv&=-17;var d=this.i,e=d.Ub.length;c&&(E9(d,c,!1),$.Da(d.Ub,c,e));b?b==this.jd.length-1?$.SD(c,1):$.SD(c,3):$.SD(c,2);this.hc(c,!0)},this))};$.g.Pla=function(a){return $.p(a)?(this.P!=a&&(this.P=a,this.K&&$.df(this.K,$.oq.format.getMessage(this.P))),this):this.P};$.g.ada=function(a){this.Td(a)}; +$.g.Td=function(a){a=a||this.b;if(Cta(a)){this.target(a);this.aa=!0;var b=this.b.container()?this.b.container().getStage():null;b&&b.container()?a=b.container():a=null}b=this.b?!(0,window.isNaN)(this.b.getSelectedRange().firstSelected):!1;a&&b?(G9.u.Td.call(this,a),(a=this.b?this.b.bH():null)&&this.OK({firstKey:a.On,lastKey:a.wp,firstSelected:a.qs,lastSelected:a.uw})):(a=(0,$.pa)(this.ada,this,a||this.b),this.b.Ce("chartdraw",a,!1,this))}; +$.g.Bs=function(a){G9.u.Bs.call(this,a);this.b&&(a=this.b?this.b.bH():null)&&this.OK({firstKey:a.On,lastKey:a.wp,firstSelected:a.qs,lastSelected:a.uw})};$.g.Gg=function(){G9.u.Gg.call(this);if(this.b){this.update();if(this.aa){var a=($.Wf(this.Za()).height||21)+15,b=this.b.padding().bottom();a>b&&this.b.padding().bottom(b+a)}this.b.listen("selectedrangechange",this.OK,!1,this);$.Ly(this).wa(this,"action",this.bda)}}; +$.g.bda=function(a){var b=a.target.dh,c=$.zk($.NE,b.type,$.p(null)?null:"max");"unit"==c?this.b.selectRange(b.unit,b.count,b.anchor,!0):"points"==c?this.b.selectRange("points",b.count,b.anchor,!0):"ytd"==c||"qtd"==c||"mtd"==c||"max"==c?this.b.selectRange(c,!0):(c=$.oq.format.parseDateTime(b.startDate),b=$.oq.format.parseDateTime(b.endDate),c&&b&&this.b.selectRange(c,b,!0));F9(this.i,a.target)};$.g.Dh=function(){G9.u.Dh.call(this)}; +$.g.R=function(){this.b.unlisten("selectedrangechange",this.OK,!1,this);this.b=null;this.i.clear();this.K&&($.Xe(this.K),this.K=null);G9.u.R.call(this)};var M9=G9.prototype;$.E("anychart.ui.rangeSelector",function(){return new G9});M9.render=M9.Td;M9.decorate=M9.Bs;M9.target=M9.target;M9.ranges=M9.Yy;M9.dispose=M9.ld;M9.getElement=M9.Za;M9.zoomLabelText=M9.Pla;$.H(H9,$.Jy);$.g=H9.prototype;$.g.target=function(a){this.b=a};$.g.Ac=function(){H9.u.Ac.call(this);Dta(this)};$.g.ql=function(a){Eta(a)?this.Td(a):(H9.u.ql.call(this,a),Dta(this))};$.g.dda=function(a){this.Td(a)}; +$.g.Td=function(a){a=a||this.b;var b;(b=Eta(a))||(b=(b=a)&&$.D(b.getType)&&"timeline"==b.getType());b||(b=(b=a)&&$.D(b.getType)&&"graph"==b.getType());b&&(this.target(a),(b=this.b.container()?this.b.container().getStage():null)&&b.container()?a=b.container():a=null);a?H9.u.Td.call(this,a):(a=(0,$.pa)(this.dda,this,a||this.b),this.b.listenOnce("chartdraw",a,!1,this))};$.g.Gg=function(){H9.u.Gg.call(this);this.b&&$.Ly(this).wa(this,"action",this.eda)}; +$.g.eda=function(a){a=a.target.dh;this.b.Fl=100;var b=this.b.getCurrentScene();switch(a.type){case "fitAll":b.fitAll();break;case "zoomIn":b.zoomIn();break;case "zoomOut":b.zoomOut()}};$.g.Dh=function(){H9.u.Dh.call(this)};$.g.R=function(){this.b=null;this.i.ld();this.i=null;this.K.ld();this.K=null;this.P.ld();this.P=null;H9.u.R.call(this)};var N9=H9.prototype;$.E("anychart.ui.zoom",function(){return new H9});N9.render=N9.Td;N9.decorate=N9.Bs;N9.target=N9.target;N9.dispose=N9.ld;}).call(this,$)} +$_=window.anychart;$_.$=$;$_._=_}); diff --git a/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.14.1/css/anychart-ui.min.css b/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.14.1/css/anychart-ui.min.css new file mode 100644 index 0000000000000000000000000000000000000000..eb06d8ed0a628ba7c6d41dd14adf4b24b2405411 --- /dev/null +++ b/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.14.1/css/anychart-ui.min.css @@ -0,0 +1,8 @@ +/*! + * AnyChart is lightweight robust charting library with great API and Docs, that works with your stack and has tons of chart types and features. + * Version: 2026-01-19 + * License: https://www.anychart.com/buy/ + * Contact: sales@anychart.com + * Copyright: AnyChart.com 2026. All rights reserved. + */ +.anychart-ui-support{border-style:hidden;}* [class^="anychart"]{outline:none;}.anychart-inline-block{position:relative;display:-moz-inline-box;display:inline-block;}* html .anychart-inline-block{display:inline;}* :first-child+html .anychart-inline-block{display:inline;}.anychart-hidden{display:none;}.anychart-control-disabled{color:#cccccc;}.anychart-label-input{-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;border:1px solid #d9d9d9;border-top:1px solid silver;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font-size:13px;height:16px;padding:5px 4px;}.anychart-label-input:focus{border-color:#4d90fe;}.anychart-label-input.anychart-label-input-label-disabled{color:#cccccc;}.anychart-thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#ffffff;border:1px solid #dddddd;border-radius:2px;-webkit-transition:border .2s ease-in-out;transition:border .2s ease-in-out;}.anychart-thumbnail>img{margin-right:auto;margin-left:auto;display:block;max-width:100%;height:auto;}.anychart-thumbnail:hover,.anychart-thumbnail:focus{border-color:#cccccc;box-shadow:0 1px 3px rgba(0,0,0,.2);}.anychart-thumbnail:active{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);border-color:#489adc;}.anychart-loader{background-color:rgba(255,255,255,.5);position:absolute;top:0;left:0;width:100%;height:100%;z-index:1000;}.anychart-loader .anychart-loader-rotating-cover{width:70px;height:70px;position:absolute;top:50%;margin-top:-35px;left:50%;margin-left:-35px;}.anychart-loader .anychart-loader-rotating-plane{display:block;width:100%;height:100%;border-radius:20%;border:5px solid #1c75ba;margin:0 auto;position:relative;-webkit-animation:anychart-loader-rotate-plane 3s infinite;animation:anychart-loader-rotate-plane 3s infinite;}.anychart-loader .anychart-loader-chart-row{position:absolute;top:10px;bottom:0;left:10px;right:10px;letter-spacing:-3px;line-height:0;font-size:0;white-space:nowrap;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col{display:inline-block;width:25%;height:90%;background:#000000;margin:0 12.5% 0 0;vertical-align:bottom;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col.anychart-loader-green{background:#26a957;height:50%;-webkit-animation:anychart-loader-blink-plane 1.5s infinite;animation:anychart-loader-blink-plane 1.5s infinite;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col.anychart-loader-orange{background:#ff8207;height:70%;-webkit-animation:anychart-loader-blink-plane 1.5s infinite .15s;animation:anychart-loader-blink-plane 1.5s infinite .25s;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col.anychart-loader-red{background:#f0402e;height:90%;-webkit-animation:anychart-loader-blink-plane 1.5s infinite .3s;animation:anychart-loader-blink-plane 1.5s infinite .5s;}@keyframes anychart-loader-rotate-plane{0%{-webkit-transform:perspective(120px)rotateX(0deg)rotateY(0deg);transform:perspective(120px)rotateX(0deg)rotateY(0deg);opacity:1;}25%{-webkit-transform:perspective(120px)rotateX(-180.1deg)rotateY(0deg);transform:perspective(120px)rotateX(-180.1deg)rotateY(0deg);opacity:.3;}50%{-webkit-transform:perspective(120px)rotateX(-180deg)rotateY(-179.9deg);transform:perspective(120px)rotateX(-180deg)rotateY(-179.9deg);opacity:1;}75%{-webkit-transform:perspective(120px)rotateX(0deg)rotateY(-180.1deg);transform:perspective(120px)rotateX(0deg)rotateY(-180.1deg);opacity:.3;}100%{-webkit-transform:perspective(120px)rotateX(0deg)rotateY(0deg);transform:perspective(120px)rotateX(0deg)rotateY(0deg);opacity:1;}}@keyframes anychart-loader-blink-plane{0%{opacity:1;}50%{opacity:.01;}100%{opacity:1;}}.anychart-custom-button{margin:2px;border:0;padding:0;font-family:Arial,sans-serif;color:#000000;background:#dddddd url("../../../ACDVF/button-bg.png") repeat-x top left;text-decoration:none;list-style:none;vertical-align:middle;cursor:pointer;outline:none;}.anychart-custom-button-outer-box,.anychart-custom-button-inner-box{border-style:solid;border-color:#aaaaaa;vertical-align:top;}.anychart-custom-button-outer-box{margin:0;border-width:1px 0;padding:0;}.anychart-custom-button-inner-box{margin:0 -1px;border-width:0 1px;padding:3px 4px;white-space:nowrap;}* html .anychart-custom-button-inner-box{left:-1px;}* html .anychart-custom-button-rtl .anychart-custom-button-outer-box{left:-1px;}* html .anychart-custom-button-rtl .anychart-custom-button-inner-box{right:auto;}* :first-child+html .anychart-custom-button-inner-box{left:-1px;}* :first-child+html .anychart-custom-button-rtl .anychart-custom-button-inner-box{left:1px;}::root .anychart-custom-button,::root .anychart-custom-button-outer-box{line-height:0;}::root .anychart-custom-button-inner-box{line-height:normal;}.anychart-custom-button-disabled{background-image:none !important;opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30);cursor:default;}.anychart-custom-button-disabled .anychart-custom-button-outer-box,.anychart-custom-button-disabled .anychart-custom-button-inner-box{color:#333333 !important;border-color:#999999 !important;}* html .anychart-custom-button-disabled{margin:2px 1px !important;padding:0 1px !important;}* :first-child+html .anychart-custom-button-disabled{margin:2px 1px !important;padding:0 1px !important;}.anychart-custom-button-hover .anychart-custom-button-outer-box,.anychart-custom-button-hover .anychart-custom-button-inner-box{border-color:#99ccff #6699ee #6699ee #77aaff !important;}.anychart-custom-button-active,.anychart-custom-button-checked{background-color:#bbbbbb;background-position:bottom left;}.anychart-custom-button-focused .anychart-custom-button-outer-box,.anychart-custom-button-focused .anychart-custom-button-inner-box{border-color:orange;}.anychart-custom-button-collapse-right,.anychart-custom-button-collapse-right .anychart-custom-button-outer-box,.anychart-custom-button-collapse-right .anychart-custom-button-inner-box{margin-right:0;}.anychart-custom-button-collapse-left,.anychart-custom-button-collapse-left .anychart-custom-button-outer-box,.anychart-custom-button-collapse-left .anychart-custom-button-inner-box{margin-left:0;}.anychart-custom-button-collapse-left .anychart-custom-button-inner-box{border-left:1px solid #ffffff;}.anychart-custom-button-collapse-left.anychart-custom-button-checked.anychart-custom-button-inner-box{border-left:1px solid #dddddd;}* html .anychart-custom-button-collapse-left .anychart-custom-button-inner-box{left:0;}* :first-child+html .anychart-custom-button-collapse-left.anychart-custom-button-inner-box{left:0;}.anychart-button{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #dcdcdc;border:1px solid rgba(0,0,0,0.1);color:#333333;cursor:pointer;text-align:center;font-family:inherit;font-size:11px;font-weight:bold;height:29px;line-height:27px;margin-right:16px;min-width:52px;outline:0;padding:0 8px;white-space:nowrap;}.anychart-button:focus{border-color:#4d90fe;}.anychart-button:hover{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);}.anychart-button:active{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);}.anychart-button i{font-size:11px;}.anychart-button.anychart-button-disabled:active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:default;}.anychart-button-primary{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#4898e6;background-image:-webkit-linear-gradient(to bottom,#4898e6,#4089d0);background-image:-moz-linear-gradient(to bottom,#4898e6,#4089d0);background-image:-ms-linear-gradient(to bottom,#4898e6,#4089d0);background-image:-o-linear-gradient(to bottom,#4898e6,#4089d0);background-image:linear-gradient(to bottom,#4898e6,#4089d0);border:1px solid #1976d2;color:#ffffff;cursor:pointer;font-size:11px;font-weight:bold;height:26px;line-height:24px;margin:0 16px 0 0;min-width:70px;outline:0;padding:0 7px;}.anychart-button-primary:hover,.anychart-button-primary:active{background-color:#4898e6;background-image:-webkit-linear-gradient(to bottom,#4898e6,#387ec3);background-image:-moz-linear-gradient(to bottom,#4898e6,#387ec3);background-image:-ms-linear-gradient(to bottom,#4898e6,#387ec3);background-image:-o-linear-gradient(to bottom,#4898e6,#387ec3);background-image:linear-gradient(to bottom,#4898e6,#387ec3);border:1px solid #1976d2;color:#ffffff;}.anychart-button-primary:focus{-webkit-box-shadow:inset 0 0 0 1px #ffffff;-moz-box-shadow:inset 0 0 0 1px #ffffff;box-shadow:inset 0 0 0 1px #ffffff;outline:0;}.anychart-button-primary:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);}.anychart-button-primary.anychart-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background:#4d90fe;background-image:-webkit-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:-moz-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:-ms-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:-o-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:linear-gradient(to bottom,#4d90fe,#4089d0);filter:alpha(opacity=50);opacity:0.5;cursor:default;}.anychart-button-secondary{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #dcdcdc;color:#333333;cursor:pointer;font-size:11px;font-weight:bold;height:26px;line-height:24px;margin:0 16px 0 0;min-width:70px;outline:0;padding:0 7px;}.anychart-button-secondary:hover,.anychart-button-secondary:active{-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,0.1);box-shadow:0 1px 1px rgba(0,0,0,0.1);background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);border:1px solid #c6c6c6;color:#111111;}.anychart-button-secondary:focus{border:1px solid #4d90fe;}.anychart-button-secondary:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);}.anychart-button-secondary.anychart-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #f3f3f3;border:1px solid rgba(0,0,0,0.05);color:#b8b8b8;cursor:default;}.anychart-button-standard{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);color:#333333;border:1px solid #dcdcdc;border:1px solid rgba(0,0,0,0.1);}.anychart-button-standard:hover{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);border:1px solid #c6c6c6;color:#111111;}.anychart-button-standard:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:#f8f8f8;color:#111111;}.anychart-button-standard.anychart-button-checked{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background-color:#eeeeee;background-image:-webkit-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-moz-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-ms-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-o-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:linear-gradient(to bottom,#eeeeee,#e0e0e0);border:1px solid #cccccc;color:#333333;}.anychart-button-standard.anychart-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #f3f3f3;border:1px solid rgba(0,0,0,0.05);color:#b8b8b8;cursor:default;}.anychart-button-toggle{height:28px;line-height:24px;padding:0;min-width:27px;margin:0;vertical-align:middle;}.anychart-button.anychart-button-toggle{z-index:auto;}.anychart-button-collapse-left,.anychart-button-collapse-right{z-index:1;}.anychart-button-collapse-left.anychart-button-checked,.anychart-button-collapse-right.anychart-button-checked{z-index:2;}.anychart-button-collapse-left:hover,.anychart-button-collapse-right:hover{z-index:3;}.anychart-button-collapse-left.anychart-button-disabled{z-index:0;}.anychart-button-collapse-right{margin-right:0;-moz-border-radius-topright:0;-moz-border-radius-bottomright:0;-webkit-border-top-right-radius:0;-webkit-border-bottom-right-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;}.anychart-button-collapse-left{margin-left:-1px;-moz-border-radius-bottomleft:0;-moz-border-radius-topleft:0;-webkit-border-bottom-left-radius:0;-webkit-border-top-left-radius:0;border-bottom-left-radius:0;border-top-left-radius:0;}.anychart-menu{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:0 2px 4px rgba(0,0,0,0.2);-moz-box-shadow:0 2px 4px rgba(0,0,0,0.2);box-shadow:0 2px 4px rgba(0,0,0,0.2);background:#ffffff;border:1px solid #cccccc;border:1px solid rgba(0,0,0,.2);cursor:default;font-size:13px;color:#222222;font-family:Arial,sans-serif;margin:0;outline:none;padding:6px 0;position:absolute;z-index:1003;line-height:normal;}.anychart-menuitem{position:relative;color:#333333;cursor:pointer;list-style:none;margin:0;padding:6px 1em 6px 30px;white-space:nowrap;}.anychart-menuitem.anychart-menuitem-rtl{padding-left:7em;padding-right:28px;}.anychart-menu-nocheckbox .anychart-menuitem,.anychart-menu-noicon .anychart-menuitem{padding-left:12px;}.anychart-menu-noaccel .anychart-menuitem{padding-right:20px;}.anychart-menuitem-disabled{cursor:default;}.anychart-menuitem-disabled .anychart-menuitem-accel,.anychart-menuitem-disabled .anychart-menuitem-content{color:#cccccc !important;}.anychart-menuitem-disabled .anychart-menuitem-icon{opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30);}.anychart-menuitem-highlight,.anychart-menuitem-hover{background-color:#eeeeee;border-color:#eeeeee;border-style:dotted;border-width:1px 0;padding-top:5px;padding-bottom:5px;}.anychart-menuitem-checkbox,.anychart-menuitem-icon{background-repeat:no-repeat;height:21px;left:3px;position:absolute;right:auto;top:3px;vertical-align:middle;width:21px;}.anychart-menuitem i{position:absolute;left:9px;}.anychart-menuitem-link{padding:0;}.anychart-menuitem-link a{text-decoration:none;color:inherit;display:inline-block;padding:6px 3em 6px 28px;width:100%;box-sizing:border-box;transition:none;}.anychart-menuitem-link i{padding-top:7px;pointer-events:none;}.anychart-menuitem-link.anychart-menuitem-highlight a{padding-bottom:5px;padding-top:5px;}.anychart-menuitem-link.anychart-menuitem-highlight i{padding-top:6px;}.anychart-menuitem-rtl .anychart-menuitem-checkbox,.anychart-menuitem-rtl .anychart-menuitem-icon{left:auto;right:6px;}.anychart-menuitem-accel{color:#777777;direction:ltr;left:auto;float:right;padding:0 0 0 24px;position:relative;right:0;text-align:right;}.anychart-menuitem-rtl .anychart-menuitem-accel{left:0;right:auto;text-align:left;}.anychart-menuitem-mnemonic-hint{text-decoration:underline;}.anychart-menuitem-mnemonic-separator{color:#999999;font-size:12px;padding-left:4px;}.anychart-menuseparator{border-top:1px solid #ebebeb;margin-top:6px;margin-bottom:6px;}.anychart-submenu-arrow{color:#000000;opacity:.5;filter:alpha(opacity=50);position:absolute;right:-6px;top:3px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000;font-size:0;}.anychart-menuitem-content{position:relative;}.anychart-menuitem-highlight .anychart-submenu-arrow,.anychart-menuitem-hover .anychart-submenu-arrow{border-left-color:#333333;opacity:1.0;}.anychart-menuitem-rtl .anychart-submenu-arrow{text-align:left;left:0;right:auto;padding-left:6px;}.anychart-menuitem-disabled .anychart-submenu-arrow{border-left-color:#cccccc;opacity:1.0;}.anychart-menu-scrollable{overflow-y:auto;}.anychart-menu.anychart-menu-horizontal{padding-left:4px;padding-right:4px;}.anychart-menu.anychart-menu-horizontal .anychart-menuitem{display:inline-block;padding:2px 3px;}.anychart-menu.anychart-menu-horizontal .anychart-menuitem.anychart-menuitem-highlight,.anychart-menu.anychart-menu-horizontal .anychart-menuitem .anychart-menuitem-hover{padding-top:1px;padding-bottom:1px;}.anychart-menuitem.anychart-option i{position:relative;left:1px;height:23px;padding-top:1px;width:23px;}.anychart-menuitem.anychart-option i.ac-position-center{top:-1px;}.anychart-menu-button{background:#dddddd url("../../../ACDVF/button-bg.png") repeat-x top left;border:0;color:#000000;cursor:pointer;list-style:none;margin:2px;outline:none;padding:0;text-decoration:none;vertical-align:middle;}.anychart-menu-button-outer-box,.anychart-menu-button-inner-box{border-style:solid;border-color:#aaaaaa;vertical-align:top;}.anychart-menu-button-outer-box{margin:0;border-width:1px 0;padding:0;}.anychart-menu-button-inner-box{margin:0 -1px;border-width:0 1px;padding:3px 4px;}* html .anychart-menu-button-inner-box{left:-1px;}* html .anychart-menu-button-rtl .anychart-menu-button-outer-box{left:-1px;right:auto;}* html .anychart-menu-button-rtl .anychart-menu-button-inner-box{right:auto;}* :first-child+html .anychart-menu-button-inner-box{left:-1px;}* :first-child+html .anychart-menu-button-rtl .anychart-menu-button-inner-box{left:1px;right:auto;}::root .anychart-menu-button,::root .anychart-menu-button-outer-box,::root .anychart-menu-button-inner-box{line-height:0;}::root .anychart-menu-button-caption,::root .anychart-menu-button-dropdown{line-height:normal;}.anychart-menu-button-disabled{background-image:none !important;opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30);cursor:default;}.anychart-menu-button-disabled .anychart-menu-button-outer-box,.anychart-menu-button-disabled .anychart-menu-button-inner-box,.anychart-menu-button-disabled .anychart-menu-button-caption,.anychart-menu-button-disabled .anychart-menu-button-dropdown{color:#333333 !important;border-color:#999999 !important;}* html .anychart-menu-button-disabled{margin:2px 1px !important;padding:0 1px !important;}* :first-child+html .anychart-menu-button-disabled{margin:2px 1px !important;padding:0 1px !important;}.anychart-menu-button-hover .anychart-menu-button-outer-box,.anychart-menu-button-hover .anychart-menu-button-inner-box{border-color:#99ccff #6699ee #6699ee #77aaff !important;}.anychart-menu-button-active,.anychart-menu-button-open{background-color:#bbbbbb;background-position:bottom left;}.anychart-menu-button-focused .anychart-menu-button-outer-box,.anychart-menu-button-focused .anychart-menu-button-inner-box{border-color:orange;}.anychart-menu-button-caption{padding:0 4px 0 0;vertical-align:top;}.anychart-menu-button-dropdown{height:15px;width:7px;background:url("../../../ACDVF/editortoolbar.png") no-repeat -388px 0;vertical-align:top;}.anychart-menu-button-collapse-right,.anychart-menu-button-collapse-right .anychart-menu-button-outer-box,.anychart-menu-button-collapse-right .anychart-menu-button-inner-box{margin-right:0;}.anychart-menu-button-collapse-left,.anychart-menu-button-collapse-left .anychart-menu-button-outer-box,.anychart-menu-button-collapse-left .anychart-menu-button-inner-box{margin-left:0;}.anychart-menu-button-collapse-left .anychart-menu-button-inner-box{border-left:1px solid #ffffff;}.anychart-menu-button-collapse-left.anychart-menu-button-checked.anychart-menu-button-inner-box{border-left:1px solid #dddddd;}.anychart-flat-menu-button{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;border:1px solid #dcdcdc;color:#333333;cursor:pointer;font-size:11px;font-weight:bold;line-height:27px;list-style:none;margin:0 2px;min-width:46px;outline:none;padding:0 18px 0 6px;text-align:center;text-decoration:none;}.anychart-flat-menu-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #f3f3f3;border:1px solid rgba(0,0,0,0.05);color:#b8b8b8;cursor:default;}.anychart-flat-menu-button-disabled .anychart-flat-menu-button-dropdown{border-color:#b8b8b8 transparent;}.anychart-flat-menu-button-hover{background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);border-color:#c6c6c6;color:#111111;}.anychart-flat-menu-button.anychart-flat-menu-button-open,.anychart-flat-menu-button.anychart-flat-menu-button-active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background-color:#eeeeee;background-image:-webkit-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-moz-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-ms-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-o-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:linear-gradient(to bottom,#eeeeee,#e0e0e0);border:1px solid #cccccc;color:#333333;z-index:2;}.anychart-flat-menu-button-focused{border-color:#4d90fe;}.anychart-flat-menu-button-caption{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;padding-right:20px;text-overflow:ellipsis;overflow:hidden;width:100%;}.anychart-flat-menu-button-dropdown{border-color:#777777 transparent;border-style:solid;border-width:4px 4px 0 4px;height:0;width:0;position:absolute;right:5px;top:12px;}.anychart-flat-menu-button-active .anychart-flat-menu-button-dropdown,.anychart-flat-menu-button-open .anychart-flat-menu-button-dropdown,.anychart-flat-menu-button-selected .anychart-flat-menu-button-dropdown,.anychart-flat-menu-button-hover .anychart-flat-menu-button-dropdown{border-color:#595959 transparent;}.anychart-combobox{background:0;background-color:whiteSmoke;background-image:-webkit-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-moz-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-ms-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-o-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:linear-gradient(to bottom,whiteSmoke,#f1f1f1);border:1px solid gainsboro;border:1px solid rgba(0,0,0,0.1);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font:normal small arial,sans-serif;height:24px;color:#333333;line-height:24px;list-style:none;font-size:11px;font-weight:bold;text-decoration:none;vertical-align:middle;cursor:pointer;margin-left:4px;padding:1px 0;top:auto;}.anychart-combobox:hover{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);border-color:#c6c6c6;color:#222222;}.anychart-combobox:hover input{border-right-color:#d9d9d9;}.anychart-combobox.anychart-combobox-disabled{background-color:whiteSmoke;background-image:-webkit-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-moz-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-ms-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-o-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:linear-gradient(to bottom,whiteSmoke,#f1f1f1);border:1px solid #f2f2f2;opacity:1;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:default;}.anychart-combobox.anychart-combobox-disabled input{color:#b8b8b8;border-right-color:transparent;}.anychart-combobox.anychart-combobox-disabled .anychart-combobox-button{opacity:0.4;}.anychart-combobox input{-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background:transparent;border:1px solid transparent;color:#333333;font-family:Arial,sans-serif;font-size:11px;font-weight:bold;height:20px;overflow:hidden;padding:0 0 0 3px;position:relative;margin-right:18px;}.anychart-combobox input:focus{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-webkit-user-select:text;-moz-user-select:text;background:#ffffff;border:1px solid #4d90fe;height:20px;outline:none;}.anychart-combobox-button{display:inline-block;border-color:#777777 transparent;border-style:solid;border-width:4px 4px 0 4px;height:0;width:0;position:absolute;right:5px;top:12px;}.anychart-checkbox{cursor:pointer;display:inline-block;margin:2px 2px 2px 0;overflow:hidden;padding:0;position:relative;white-space:nowrap;vertical-align:middle;}.anychart-checkbox .anychart-checkbox-element{-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:rgba(255,255,255,.05);border:1px solid #c6c6c6;border:1px solid rgba(155,155,155,.57);height:11px;margin:0 4px 1px 1px;outline:0;vertical-align:text-bottom;width:11px;}.anychart-checkbox-hover .anychart-checkbox-element{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.1);box-shadow:inset 0 1px 1px rgba(0,0,0,.1);border:1px solid #b2b2b2;}.anychart-checkbox-focused .anychart-checkbox-element{border:1px solid #4d90fe;}.anychart-checkbox-checked{background-color:#ffffff;background-color:rgba(255,255,255,.65);}.anychart-checkbox-checked .anychart-checkbox-checkmark{display:inline-block;}.anychart-checkbox-disabled{cursor:default;color:#b8b8b8;}.anychart-checkbox-disabled .anychart-checkbox-element{background-color:#ffffff;border:1px solid #f1f1f1;cursor:default;}.anychart-checkbox-checkmark{display:none;opacity:0.6;height:15px;outline:0;width:15px;left:0;position:relative;top:-3px;}.anychart-palette{cursor:default;outline:none;}.anychart-palette-table{empty-cells:show;margin:16px;}.anychart-palette-cell{border:1px solid transparent;cursor:pointer;margin:0;position:relative;}.anychart-plot-controls{position:absolute;}.anychart-plot-controls .anychart-button{min-width:20px;height:20px;opacity:0.7;line-height:0;vertical-align:middle;margin:0;padding:0;display:inline-block;}.anychart-plot-controls-hidden{visibility:hidden;}.anychart-palette-colorswatch{border:none;font-size:14px;height:16px;position:relative;width:16px;display:block;}.anychart-palette-colorswatch:before{display:none;position:relative;top:1px;left:2px;}.anychart-palette-cell-hover{border:1px solid #000000;}.anychart-palette-cell-selected{outline:1px solid #000000;}.anychart-palette-cell-selected .anychart-palette-colorswatch:before{display:inline-block;}.anychart-color-menu-button-indicator{height:14px;margin-left:4px;outline:1px solid #bbbbbb;width:14px;}.anychart-color-menu-button .anychart-menu-button-inner-box,.anychart-toolbar-color-menu-button .anychart-toolbar-menu-button-inner-box{padding-top:2px !important;padding-bottom:2px !important;}.anychart-toolbar{background-color:#f7f7f7;border:1px solid #d5d5d5;cursor:default;font:normal 12px Verdana,sans-serif;color:#7c868e;padding:2px;position:relative;}.anychart-toolbar-button,.anychart-toolbar-menu-button{margin:0 2px;border:0;padding:2px 2px;text-decoration:none;vertical-align:middle;list-style:none;cursor:default;outline:none;}.anychart-toolbar-button-inner-box,.anychart-toolbar-menu-button-inner-box{padding:3px 4px;}.anychart-toolbar-button-hover,.anychart-toolbar-menu-button-hover{background-color:#eeeeee;}.anychart-toolbar-menu-button-active,.anychart-toolbar-menu-button-open,.anychart-toolbar-button-active,.anychart-toolbar-button-checked,.anychart-toolbar-button-selected{background-color:#dddddd !important;}.anychart-toolbar-menu-button-dropdown{margin-left:3px;padding-bottom:1px;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #7c868e;vertical-align:middle;}.anychart-toolbar-separator{margin:0 2px;border-left:1px solid #d6d6d6;border-right:1px solid #f7f7f7;padding:0;width:0;text-decoration:none;list-style:none;outline:none;vertical-align:middle;line-height:normal;font-size:120%;overflow:hidden;}.anychart-toolbar-item-icon{padding:0 2px;font-size:13px;color:#2485d0;}.anychart-toolbar-item-text{padding:0 2px;}.anychart-toolbar-menu{background-color:#f7f7f7;border:1px solid #d5d5d5;cursor:default;font:normal 12px Verdana,sans-serif;color:#7c868e;margin:0;outline:none;padding:6px 0;position:absolute;z-index:1003;line-height:normal;}.anychart-toolbar-menu .anychart-menuitem{color:#7c868e;}.anychart-toolbar-menu-button-hover .anychart-toolbar-menu-button-dropdown,.anychart-toolbar-menu-button-open .anychart-toolbar-menu-button-dropdown{border-top:4px solid #000000;}.anychart-toolbar-menu .anychart-menuitem i,.anychart-toolbar-menu .anychart-menuitem-content{display:inline;position:static;}.anychart-toolbar-menu .anychart-menuitem{padding:6px 5px;padding-right:8px;border-style:none;}.anychart-toolbar-menu .anychart-submenu-arrow{position:absolute;right:0;top:9px;padding:0 2px;}.anychart-menuitem-content{margin-right:1rem;}.anychart-option[role='menuitemradio']{padding-left:1.5rem;}.anychart-option-selected .anychart-menuitem-checkbox:before{content:'\2713';display:block;width:100%;height:100%;text-align:center;}.anychart-range-picker{font-family:Arial,sans-serif;font-size:11px;color:#7c868e;}.anychart-range-picker.anychart-range-picker-inside{position:absolute;bottom:27px;left:20px;}.anychart-range-picker .anychart-label-input{font-size:11px;margin:0 5px;height:13px;padding:3px 4px;width:90px;font-weight:normal;}.anychart-range-picker .anychart-input-label{margin-bottom:0;font-weight:normal;}.anychart-range-selector{font-family:Arial,sans-serif;font-size:11px;color:#7c868e;}.anychart-range-selector.anychart-range-selector-inside{position:absolute;bottom:27px;right:25px;}.anychart-range-selector .anychart-input-label{margin-right:5px;vertical-align:middle;margin-bottom:0;font-weight:normal;}.anychart-range-selector .anychart-button{height:21px;line-height:19px;padding:0 5px;}.anychart-zoom{position:absolute;left:10px;top:10px;}.anychart-zoom .anychart-button{height:21px;width:21px;min-width:21px;padding:0;line-height:normal;display:block;margin:5px 0;}.anychart-zoom .anychart-zoom-zoomIn{margin:2px 0;}.anychart-zoom .anychart-zoom-zoomOut{margin:2px 0;}.disable-selection{-moz-user-select:none;-ms-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;}.anychart-tooltip{border-radius:3px;padding:5px 10px;background:rgba(33,33,33,0.7);border:none;display:inline-block;box-sizing:border-box;letter-spacing:normal;color:#ffffff;font-family:Verdana,Helvetica,Arial,'sans-serif';font-size:12px;position:absolute;pointer-events:none;margin:10px 0px 10px 10px;}.anychart-tooltip-separator{color:rgba(206,206,206,0.3);border:none;height:1px;margin:5px 0;}.anychart-tooltip-title{font-size:14px;} \ No newline at end of file diff --git a/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.14.1/css/anychart-ui.min_qe95e7e741b.css b/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.14.1/css/anychart-ui.min_qe95e7e741b.css new file mode 100644 index 0000000000000000000000000000000000000000..eb06d8ed0a628ba7c6d41dd14adf4b24b2405411 --- /dev/null +++ b/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.14.1/css/anychart-ui.min_qe95e7e741b.css @@ -0,0 +1,8 @@ +/*! + * AnyChart is lightweight robust charting library with great API and Docs, that works with your stack and has tons of chart types and features. + * Version: 2026-01-19 + * License: https://www.anychart.com/buy/ + * Contact: sales@anychart.com + * Copyright: AnyChart.com 2026. All rights reserved. + */ +.anychart-ui-support{border-style:hidden;}* [class^="anychart"]{outline:none;}.anychart-inline-block{position:relative;display:-moz-inline-box;display:inline-block;}* html .anychart-inline-block{display:inline;}* :first-child+html .anychart-inline-block{display:inline;}.anychart-hidden{display:none;}.anychart-control-disabled{color:#cccccc;}.anychart-label-input{-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;border:1px solid #d9d9d9;border-top:1px solid silver;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font-size:13px;height:16px;padding:5px 4px;}.anychart-label-input:focus{border-color:#4d90fe;}.anychart-label-input.anychart-label-input-label-disabled{color:#cccccc;}.anychart-thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#ffffff;border:1px solid #dddddd;border-radius:2px;-webkit-transition:border .2s ease-in-out;transition:border .2s ease-in-out;}.anychart-thumbnail>img{margin-right:auto;margin-left:auto;display:block;max-width:100%;height:auto;}.anychart-thumbnail:hover,.anychart-thumbnail:focus{border-color:#cccccc;box-shadow:0 1px 3px rgba(0,0,0,.2);}.anychart-thumbnail:active{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);border-color:#489adc;}.anychart-loader{background-color:rgba(255,255,255,.5);position:absolute;top:0;left:0;width:100%;height:100%;z-index:1000;}.anychart-loader .anychart-loader-rotating-cover{width:70px;height:70px;position:absolute;top:50%;margin-top:-35px;left:50%;margin-left:-35px;}.anychart-loader .anychart-loader-rotating-plane{display:block;width:100%;height:100%;border-radius:20%;border:5px solid #1c75ba;margin:0 auto;position:relative;-webkit-animation:anychart-loader-rotate-plane 3s infinite;animation:anychart-loader-rotate-plane 3s infinite;}.anychart-loader .anychart-loader-chart-row{position:absolute;top:10px;bottom:0;left:10px;right:10px;letter-spacing:-3px;line-height:0;font-size:0;white-space:nowrap;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col{display:inline-block;width:25%;height:90%;background:#000000;margin:0 12.5% 0 0;vertical-align:bottom;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col.anychart-loader-green{background:#26a957;height:50%;-webkit-animation:anychart-loader-blink-plane 1.5s infinite;animation:anychart-loader-blink-plane 1.5s infinite;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col.anychart-loader-orange{background:#ff8207;height:70%;-webkit-animation:anychart-loader-blink-plane 1.5s infinite .15s;animation:anychart-loader-blink-plane 1.5s infinite .25s;}.anychart-loader .anychart-loader-chart-row .anychart-loader-chart-col.anychart-loader-red{background:#f0402e;height:90%;-webkit-animation:anychart-loader-blink-plane 1.5s infinite .3s;animation:anychart-loader-blink-plane 1.5s infinite .5s;}@keyframes anychart-loader-rotate-plane{0%{-webkit-transform:perspective(120px)rotateX(0deg)rotateY(0deg);transform:perspective(120px)rotateX(0deg)rotateY(0deg);opacity:1;}25%{-webkit-transform:perspective(120px)rotateX(-180.1deg)rotateY(0deg);transform:perspective(120px)rotateX(-180.1deg)rotateY(0deg);opacity:.3;}50%{-webkit-transform:perspective(120px)rotateX(-180deg)rotateY(-179.9deg);transform:perspective(120px)rotateX(-180deg)rotateY(-179.9deg);opacity:1;}75%{-webkit-transform:perspective(120px)rotateX(0deg)rotateY(-180.1deg);transform:perspective(120px)rotateX(0deg)rotateY(-180.1deg);opacity:.3;}100%{-webkit-transform:perspective(120px)rotateX(0deg)rotateY(0deg);transform:perspective(120px)rotateX(0deg)rotateY(0deg);opacity:1;}}@keyframes anychart-loader-blink-plane{0%{opacity:1;}50%{opacity:.01;}100%{opacity:1;}}.anychart-custom-button{margin:2px;border:0;padding:0;font-family:Arial,sans-serif;color:#000000;background:#dddddd url("../../../ACDVF/button-bg.png") repeat-x top left;text-decoration:none;list-style:none;vertical-align:middle;cursor:pointer;outline:none;}.anychart-custom-button-outer-box,.anychart-custom-button-inner-box{border-style:solid;border-color:#aaaaaa;vertical-align:top;}.anychart-custom-button-outer-box{margin:0;border-width:1px 0;padding:0;}.anychart-custom-button-inner-box{margin:0 -1px;border-width:0 1px;padding:3px 4px;white-space:nowrap;}* html .anychart-custom-button-inner-box{left:-1px;}* html .anychart-custom-button-rtl .anychart-custom-button-outer-box{left:-1px;}* html .anychart-custom-button-rtl .anychart-custom-button-inner-box{right:auto;}* :first-child+html .anychart-custom-button-inner-box{left:-1px;}* :first-child+html .anychart-custom-button-rtl .anychart-custom-button-inner-box{left:1px;}::root .anychart-custom-button,::root .anychart-custom-button-outer-box{line-height:0;}::root .anychart-custom-button-inner-box{line-height:normal;}.anychart-custom-button-disabled{background-image:none !important;opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30);cursor:default;}.anychart-custom-button-disabled .anychart-custom-button-outer-box,.anychart-custom-button-disabled .anychart-custom-button-inner-box{color:#333333 !important;border-color:#999999 !important;}* html .anychart-custom-button-disabled{margin:2px 1px !important;padding:0 1px !important;}* :first-child+html .anychart-custom-button-disabled{margin:2px 1px !important;padding:0 1px !important;}.anychart-custom-button-hover .anychart-custom-button-outer-box,.anychart-custom-button-hover .anychart-custom-button-inner-box{border-color:#99ccff #6699ee #6699ee #77aaff !important;}.anychart-custom-button-active,.anychart-custom-button-checked{background-color:#bbbbbb;background-position:bottom left;}.anychart-custom-button-focused .anychart-custom-button-outer-box,.anychart-custom-button-focused .anychart-custom-button-inner-box{border-color:orange;}.anychart-custom-button-collapse-right,.anychart-custom-button-collapse-right .anychart-custom-button-outer-box,.anychart-custom-button-collapse-right .anychart-custom-button-inner-box{margin-right:0;}.anychart-custom-button-collapse-left,.anychart-custom-button-collapse-left .anychart-custom-button-outer-box,.anychart-custom-button-collapse-left .anychart-custom-button-inner-box{margin-left:0;}.anychart-custom-button-collapse-left .anychart-custom-button-inner-box{border-left:1px solid #ffffff;}.anychart-custom-button-collapse-left.anychart-custom-button-checked.anychart-custom-button-inner-box{border-left:1px solid #dddddd;}* html .anychart-custom-button-collapse-left .anychart-custom-button-inner-box{left:0;}* :first-child+html .anychart-custom-button-collapse-left.anychart-custom-button-inner-box{left:0;}.anychart-button{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #dcdcdc;border:1px solid rgba(0,0,0,0.1);color:#333333;cursor:pointer;text-align:center;font-family:inherit;font-size:11px;font-weight:bold;height:29px;line-height:27px;margin-right:16px;min-width:52px;outline:0;padding:0 8px;white-space:nowrap;}.anychart-button:focus{border-color:#4d90fe;}.anychart-button:hover{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);}.anychart-button:active{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);}.anychart-button i{font-size:11px;}.anychart-button.anychart-button-disabled:active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:default;}.anychart-button-primary{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#4898e6;background-image:-webkit-linear-gradient(to bottom,#4898e6,#4089d0);background-image:-moz-linear-gradient(to bottom,#4898e6,#4089d0);background-image:-ms-linear-gradient(to bottom,#4898e6,#4089d0);background-image:-o-linear-gradient(to bottom,#4898e6,#4089d0);background-image:linear-gradient(to bottom,#4898e6,#4089d0);border:1px solid #1976d2;color:#ffffff;cursor:pointer;font-size:11px;font-weight:bold;height:26px;line-height:24px;margin:0 16px 0 0;min-width:70px;outline:0;padding:0 7px;}.anychart-button-primary:hover,.anychart-button-primary:active{background-color:#4898e6;background-image:-webkit-linear-gradient(to bottom,#4898e6,#387ec3);background-image:-moz-linear-gradient(to bottom,#4898e6,#387ec3);background-image:-ms-linear-gradient(to bottom,#4898e6,#387ec3);background-image:-o-linear-gradient(to bottom,#4898e6,#387ec3);background-image:linear-gradient(to bottom,#4898e6,#387ec3);border:1px solid #1976d2;color:#ffffff;}.anychart-button-primary:focus{-webkit-box-shadow:inset 0 0 0 1px #ffffff;-moz-box-shadow:inset 0 0 0 1px #ffffff;box-shadow:inset 0 0 0 1px #ffffff;outline:0;}.anychart-button-primary:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);}.anychart-button-primary.anychart-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background:#4d90fe;background-image:-webkit-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:-moz-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:-ms-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:-o-linear-gradient(to bottom,#4d90fe,#4089d0);background-image:linear-gradient(to bottom,#4d90fe,#4089d0);filter:alpha(opacity=50);opacity:0.5;cursor:default;}.anychart-button-secondary{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #dcdcdc;color:#333333;cursor:pointer;font-size:11px;font-weight:bold;height:26px;line-height:24px;margin:0 16px 0 0;min-width:70px;outline:0;padding:0 7px;}.anychart-button-secondary:hover,.anychart-button-secondary:active{-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,0.1);box-shadow:0 1px 1px rgba(0,0,0,0.1);background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);border:1px solid #c6c6c6;color:#111111;}.anychart-button-secondary:focus{border:1px solid #4d90fe;}.anychart-button-secondary:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);}.anychart-button-secondary.anychart-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #f3f3f3;border:1px solid rgba(0,0,0,0.05);color:#b8b8b8;cursor:default;}.anychart-button-standard{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);color:#333333;border:1px solid #dcdcdc;border:1px solid rgba(0,0,0,0.1);}.anychart-button-standard:hover{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);border:1px solid #c6c6c6;color:#111111;}.anychart-button-standard:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:#f8f8f8;color:#111111;}.anychart-button-standard.anychart-button-checked{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background-color:#eeeeee;background-image:-webkit-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-moz-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-ms-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-o-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:linear-gradient(to bottom,#eeeeee,#e0e0e0);border:1px solid #cccccc;color:#333333;}.anychart-button-standard.anychart-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #f3f3f3;border:1px solid rgba(0,0,0,0.05);color:#b8b8b8;cursor:default;}.anychart-button-toggle{height:28px;line-height:24px;padding:0;min-width:27px;margin:0;vertical-align:middle;}.anychart-button.anychart-button-toggle{z-index:auto;}.anychart-button-collapse-left,.anychart-button-collapse-right{z-index:1;}.anychart-button-collapse-left.anychart-button-checked,.anychart-button-collapse-right.anychart-button-checked{z-index:2;}.anychart-button-collapse-left:hover,.anychart-button-collapse-right:hover{z-index:3;}.anychart-button-collapse-left.anychart-button-disabled{z-index:0;}.anychart-button-collapse-right{margin-right:0;-moz-border-radius-topright:0;-moz-border-radius-bottomright:0;-webkit-border-top-right-radius:0;-webkit-border-bottom-right-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;}.anychart-button-collapse-left{margin-left:-1px;-moz-border-radius-bottomleft:0;-moz-border-radius-topleft:0;-webkit-border-bottom-left-radius:0;-webkit-border-top-left-radius:0;border-bottom-left-radius:0;border-top-left-radius:0;}.anychart-menu{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:0 2px 4px rgba(0,0,0,0.2);-moz-box-shadow:0 2px 4px rgba(0,0,0,0.2);box-shadow:0 2px 4px rgba(0,0,0,0.2);background:#ffffff;border:1px solid #cccccc;border:1px solid rgba(0,0,0,.2);cursor:default;font-size:13px;color:#222222;font-family:Arial,sans-serif;margin:0;outline:none;padding:6px 0;position:absolute;z-index:1003;line-height:normal;}.anychart-menuitem{position:relative;color:#333333;cursor:pointer;list-style:none;margin:0;padding:6px 1em 6px 30px;white-space:nowrap;}.anychart-menuitem.anychart-menuitem-rtl{padding-left:7em;padding-right:28px;}.anychart-menu-nocheckbox .anychart-menuitem,.anychart-menu-noicon .anychart-menuitem{padding-left:12px;}.anychart-menu-noaccel .anychart-menuitem{padding-right:20px;}.anychart-menuitem-disabled{cursor:default;}.anychart-menuitem-disabled .anychart-menuitem-accel,.anychart-menuitem-disabled .anychart-menuitem-content{color:#cccccc !important;}.anychart-menuitem-disabled .anychart-menuitem-icon{opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30);}.anychart-menuitem-highlight,.anychart-menuitem-hover{background-color:#eeeeee;border-color:#eeeeee;border-style:dotted;border-width:1px 0;padding-top:5px;padding-bottom:5px;}.anychart-menuitem-checkbox,.anychart-menuitem-icon{background-repeat:no-repeat;height:21px;left:3px;position:absolute;right:auto;top:3px;vertical-align:middle;width:21px;}.anychart-menuitem i{position:absolute;left:9px;}.anychart-menuitem-link{padding:0;}.anychart-menuitem-link a{text-decoration:none;color:inherit;display:inline-block;padding:6px 3em 6px 28px;width:100%;box-sizing:border-box;transition:none;}.anychart-menuitem-link i{padding-top:7px;pointer-events:none;}.anychart-menuitem-link.anychart-menuitem-highlight a{padding-bottom:5px;padding-top:5px;}.anychart-menuitem-link.anychart-menuitem-highlight i{padding-top:6px;}.anychart-menuitem-rtl .anychart-menuitem-checkbox,.anychart-menuitem-rtl .anychart-menuitem-icon{left:auto;right:6px;}.anychart-menuitem-accel{color:#777777;direction:ltr;left:auto;float:right;padding:0 0 0 24px;position:relative;right:0;text-align:right;}.anychart-menuitem-rtl .anychart-menuitem-accel{left:0;right:auto;text-align:left;}.anychart-menuitem-mnemonic-hint{text-decoration:underline;}.anychart-menuitem-mnemonic-separator{color:#999999;font-size:12px;padding-left:4px;}.anychart-menuseparator{border-top:1px solid #ebebeb;margin-top:6px;margin-bottom:6px;}.anychart-submenu-arrow{color:#000000;opacity:.5;filter:alpha(opacity=50);position:absolute;right:-6px;top:3px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000;font-size:0;}.anychart-menuitem-content{position:relative;}.anychart-menuitem-highlight .anychart-submenu-arrow,.anychart-menuitem-hover .anychart-submenu-arrow{border-left-color:#333333;opacity:1.0;}.anychart-menuitem-rtl .anychart-submenu-arrow{text-align:left;left:0;right:auto;padding-left:6px;}.anychart-menuitem-disabled .anychart-submenu-arrow{border-left-color:#cccccc;opacity:1.0;}.anychart-menu-scrollable{overflow-y:auto;}.anychart-menu.anychart-menu-horizontal{padding-left:4px;padding-right:4px;}.anychart-menu.anychart-menu-horizontal .anychart-menuitem{display:inline-block;padding:2px 3px;}.anychart-menu.anychart-menu-horizontal .anychart-menuitem.anychart-menuitem-highlight,.anychart-menu.anychart-menu-horizontal .anychart-menuitem .anychart-menuitem-hover{padding-top:1px;padding-bottom:1px;}.anychart-menuitem.anychart-option i{position:relative;left:1px;height:23px;padding-top:1px;width:23px;}.anychart-menuitem.anychart-option i.ac-position-center{top:-1px;}.anychart-menu-button{background:#dddddd url("../../../ACDVF/button-bg.png") repeat-x top left;border:0;color:#000000;cursor:pointer;list-style:none;margin:2px;outline:none;padding:0;text-decoration:none;vertical-align:middle;}.anychart-menu-button-outer-box,.anychart-menu-button-inner-box{border-style:solid;border-color:#aaaaaa;vertical-align:top;}.anychart-menu-button-outer-box{margin:0;border-width:1px 0;padding:0;}.anychart-menu-button-inner-box{margin:0 -1px;border-width:0 1px;padding:3px 4px;}* html .anychart-menu-button-inner-box{left:-1px;}* html .anychart-menu-button-rtl .anychart-menu-button-outer-box{left:-1px;right:auto;}* html .anychart-menu-button-rtl .anychart-menu-button-inner-box{right:auto;}* :first-child+html .anychart-menu-button-inner-box{left:-1px;}* :first-child+html .anychart-menu-button-rtl .anychart-menu-button-inner-box{left:1px;right:auto;}::root .anychart-menu-button,::root .anychart-menu-button-outer-box,::root .anychart-menu-button-inner-box{line-height:0;}::root .anychart-menu-button-caption,::root .anychart-menu-button-dropdown{line-height:normal;}.anychart-menu-button-disabled{background-image:none !important;opacity:0.3;-moz-opacity:0.3;filter:alpha(opacity=30);cursor:default;}.anychart-menu-button-disabled .anychart-menu-button-outer-box,.anychart-menu-button-disabled .anychart-menu-button-inner-box,.anychart-menu-button-disabled .anychart-menu-button-caption,.anychart-menu-button-disabled .anychart-menu-button-dropdown{color:#333333 !important;border-color:#999999 !important;}* html .anychart-menu-button-disabled{margin:2px 1px !important;padding:0 1px !important;}* :first-child+html .anychart-menu-button-disabled{margin:2px 1px !important;padding:0 1px !important;}.anychart-menu-button-hover .anychart-menu-button-outer-box,.anychart-menu-button-hover .anychart-menu-button-inner-box{border-color:#99ccff #6699ee #6699ee #77aaff !important;}.anychart-menu-button-active,.anychart-menu-button-open{background-color:#bbbbbb;background-position:bottom left;}.anychart-menu-button-focused .anychart-menu-button-outer-box,.anychart-menu-button-focused .anychart-menu-button-inner-box{border-color:orange;}.anychart-menu-button-caption{padding:0 4px 0 0;vertical-align:top;}.anychart-menu-button-dropdown{height:15px;width:7px;background:url("../../../ACDVF/editortoolbar.png") no-repeat -388px 0;vertical-align:top;}.anychart-menu-button-collapse-right,.anychart-menu-button-collapse-right .anychart-menu-button-outer-box,.anychart-menu-button-collapse-right .anychart-menu-button-inner-box{margin-right:0;}.anychart-menu-button-collapse-left,.anychart-menu-button-collapse-left .anychart-menu-button-outer-box,.anychart-menu-button-collapse-left .anychart-menu-button-inner-box{margin-left:0;}.anychart-menu-button-collapse-left .anychart-menu-button-inner-box{border-left:1px solid #ffffff;}.anychart-menu-button-collapse-left.anychart-menu-button-checked.anychart-menu-button-inner-box{border-left:1px solid #dddddd;}.anychart-flat-menu-button{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;border:1px solid #dcdcdc;color:#333333;cursor:pointer;font-size:11px;font-weight:bold;line-height:27px;list-style:none;margin:0 2px;min-width:46px;outline:none;padding:0 18px 0 6px;text-align:center;text-decoration:none;}.anychart-flat-menu-button-disabled{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background-color:#f5f5f5;background-image:-webkit-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f5f5f5,#f1f1f1);background-image:linear-gradient(to bottom,#f5f5f5,#f1f1f1);border:1px solid #f3f3f3;border:1px solid rgba(0,0,0,0.05);color:#b8b8b8;cursor:default;}.anychart-flat-menu-button-disabled .anychart-flat-menu-button-dropdown{border-color:#b8b8b8 transparent;}.anychart-flat-menu-button-hover{background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);border-color:#c6c6c6;color:#111111;}.anychart-flat-menu-button.anychart-flat-menu-button-open,.anychart-flat-menu-button.anychart-flat-menu-button-active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background-color:#eeeeee;background-image:-webkit-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-moz-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-ms-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:-o-linear-gradient(to bottom,#eeeeee,#e0e0e0);background-image:linear-gradient(to bottom,#eeeeee,#e0e0e0);border:1px solid #cccccc;color:#333333;z-index:2;}.anychart-flat-menu-button-focused{border-color:#4d90fe;}.anychart-flat-menu-button-caption{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;padding-right:20px;text-overflow:ellipsis;overflow:hidden;width:100%;}.anychart-flat-menu-button-dropdown{border-color:#777777 transparent;border-style:solid;border-width:4px 4px 0 4px;height:0;width:0;position:absolute;right:5px;top:12px;}.anychart-flat-menu-button-active .anychart-flat-menu-button-dropdown,.anychart-flat-menu-button-open .anychart-flat-menu-button-dropdown,.anychart-flat-menu-button-selected .anychart-flat-menu-button-dropdown,.anychart-flat-menu-button-hover .anychart-flat-menu-button-dropdown{border-color:#595959 transparent;}.anychart-combobox{background:0;background-color:whiteSmoke;background-image:-webkit-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-moz-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-ms-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-o-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:linear-gradient(to bottom,whiteSmoke,#f1f1f1);border:1px solid gainsboro;border:1px solid rgba(0,0,0,0.1);-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;font:normal small arial,sans-serif;height:24px;color:#333333;line-height:24px;list-style:none;font-size:11px;font-weight:bold;text-decoration:none;vertical-align:middle;cursor:pointer;margin-left:4px;padding:1px 0;top:auto;}.anychart-combobox:hover{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);background-color:#f8f8f8;background-image:-webkit-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-moz-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-ms-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:-o-linear-gradient(to bottom,#f8f8f8,#f1f1f1);background-image:linear-gradient(to bottom,#f8f8f8,#f1f1f1);border-color:#c6c6c6;color:#222222;}.anychart-combobox:hover input{border-right-color:#d9d9d9;}.anychart-combobox.anychart-combobox-disabled{background-color:whiteSmoke;background-image:-webkit-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-moz-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-ms-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:-o-linear-gradient(to bottom,whiteSmoke,#f1f1f1);background-image:linear-gradient(to bottom,whiteSmoke,#f1f1f1);border:1px solid #f2f2f2;opacity:1;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:default;}.anychart-combobox.anychart-combobox-disabled input{color:#b8b8b8;border-right-color:transparent;}.anychart-combobox.anychart-combobox-disabled .anychart-combobox-button{opacity:0.4;}.anychart-combobox input{-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background:transparent;border:1px solid transparent;color:#333333;font-family:Arial,sans-serif;font-size:11px;font-weight:bold;height:20px;overflow:hidden;padding:0 0 0 3px;position:relative;margin-right:18px;}.anychart-combobox input:focus{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);box-shadow:inset 0 1px 2px rgba(0,0,0,0.3);-webkit-user-select:text;-moz-user-select:text;background:#ffffff;border:1px solid #4d90fe;height:20px;outline:none;}.anychart-combobox-button{display:inline-block;border-color:#777777 transparent;border-style:solid;border-width:4px 4px 0 4px;height:0;width:0;position:absolute;right:5px;top:12px;}.anychart-checkbox{cursor:pointer;display:inline-block;margin:2px 2px 2px 0;overflow:hidden;padding:0;position:relative;white-space:nowrap;vertical-align:middle;}.anychart-checkbox .anychart-checkbox-element{-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:rgba(255,255,255,.05);border:1px solid #c6c6c6;border:1px solid rgba(155,155,155,.57);height:11px;margin:0 4px 1px 1px;outline:0;vertical-align:text-bottom;width:11px;}.anychart-checkbox-hover .anychart-checkbox-element{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.1);box-shadow:inset 0 1px 1px rgba(0,0,0,.1);border:1px solid #b2b2b2;}.anychart-checkbox-focused .anychart-checkbox-element{border:1px solid #4d90fe;}.anychart-checkbox-checked{background-color:#ffffff;background-color:rgba(255,255,255,.65);}.anychart-checkbox-checked .anychart-checkbox-checkmark{display:inline-block;}.anychart-checkbox-disabled{cursor:default;color:#b8b8b8;}.anychart-checkbox-disabled .anychart-checkbox-element{background-color:#ffffff;border:1px solid #f1f1f1;cursor:default;}.anychart-checkbox-checkmark{display:none;opacity:0.6;height:15px;outline:0;width:15px;left:0;position:relative;top:-3px;}.anychart-palette{cursor:default;outline:none;}.anychart-palette-table{empty-cells:show;margin:16px;}.anychart-palette-cell{border:1px solid transparent;cursor:pointer;margin:0;position:relative;}.anychart-plot-controls{position:absolute;}.anychart-plot-controls .anychart-button{min-width:20px;height:20px;opacity:0.7;line-height:0;vertical-align:middle;margin:0;padding:0;display:inline-block;}.anychart-plot-controls-hidden{visibility:hidden;}.anychart-palette-colorswatch{border:none;font-size:14px;height:16px;position:relative;width:16px;display:block;}.anychart-palette-colorswatch:before{display:none;position:relative;top:1px;left:2px;}.anychart-palette-cell-hover{border:1px solid #000000;}.anychart-palette-cell-selected{outline:1px solid #000000;}.anychart-palette-cell-selected .anychart-palette-colorswatch:before{display:inline-block;}.anychart-color-menu-button-indicator{height:14px;margin-left:4px;outline:1px solid #bbbbbb;width:14px;}.anychart-color-menu-button .anychart-menu-button-inner-box,.anychart-toolbar-color-menu-button .anychart-toolbar-menu-button-inner-box{padding-top:2px !important;padding-bottom:2px !important;}.anychart-toolbar{background-color:#f7f7f7;border:1px solid #d5d5d5;cursor:default;font:normal 12px Verdana,sans-serif;color:#7c868e;padding:2px;position:relative;}.anychart-toolbar-button,.anychart-toolbar-menu-button{margin:0 2px;border:0;padding:2px 2px;text-decoration:none;vertical-align:middle;list-style:none;cursor:default;outline:none;}.anychart-toolbar-button-inner-box,.anychart-toolbar-menu-button-inner-box{padding:3px 4px;}.anychart-toolbar-button-hover,.anychart-toolbar-menu-button-hover{background-color:#eeeeee;}.anychart-toolbar-menu-button-active,.anychart-toolbar-menu-button-open,.anychart-toolbar-button-active,.anychart-toolbar-button-checked,.anychart-toolbar-button-selected{background-color:#dddddd !important;}.anychart-toolbar-menu-button-dropdown{margin-left:3px;padding-bottom:1px;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #7c868e;vertical-align:middle;}.anychart-toolbar-separator{margin:0 2px;border-left:1px solid #d6d6d6;border-right:1px solid #f7f7f7;padding:0;width:0;text-decoration:none;list-style:none;outline:none;vertical-align:middle;line-height:normal;font-size:120%;overflow:hidden;}.anychart-toolbar-item-icon{padding:0 2px;font-size:13px;color:#2485d0;}.anychart-toolbar-item-text{padding:0 2px;}.anychart-toolbar-menu{background-color:#f7f7f7;border:1px solid #d5d5d5;cursor:default;font:normal 12px Verdana,sans-serif;color:#7c868e;margin:0;outline:none;padding:6px 0;position:absolute;z-index:1003;line-height:normal;}.anychart-toolbar-menu .anychart-menuitem{color:#7c868e;}.anychart-toolbar-menu-button-hover .anychart-toolbar-menu-button-dropdown,.anychart-toolbar-menu-button-open .anychart-toolbar-menu-button-dropdown{border-top:4px solid #000000;}.anychart-toolbar-menu .anychart-menuitem i,.anychart-toolbar-menu .anychart-menuitem-content{display:inline;position:static;}.anychart-toolbar-menu .anychart-menuitem{padding:6px 5px;padding-right:8px;border-style:none;}.anychart-toolbar-menu .anychart-submenu-arrow{position:absolute;right:0;top:9px;padding:0 2px;}.anychart-menuitem-content{margin-right:1rem;}.anychart-option[role='menuitemradio']{padding-left:1.5rem;}.anychart-option-selected .anychart-menuitem-checkbox:before{content:'\2713';display:block;width:100%;height:100%;text-align:center;}.anychart-range-picker{font-family:Arial,sans-serif;font-size:11px;color:#7c868e;}.anychart-range-picker.anychart-range-picker-inside{position:absolute;bottom:27px;left:20px;}.anychart-range-picker .anychart-label-input{font-size:11px;margin:0 5px;height:13px;padding:3px 4px;width:90px;font-weight:normal;}.anychart-range-picker .anychart-input-label{margin-bottom:0;font-weight:normal;}.anychart-range-selector{font-family:Arial,sans-serif;font-size:11px;color:#7c868e;}.anychart-range-selector.anychart-range-selector-inside{position:absolute;bottom:27px;right:25px;}.anychart-range-selector .anychart-input-label{margin-right:5px;vertical-align:middle;margin-bottom:0;font-weight:normal;}.anychart-range-selector .anychart-button{height:21px;line-height:19px;padding:0 5px;}.anychart-zoom{position:absolute;left:10px;top:10px;}.anychart-zoom .anychart-button{height:21px;width:21px;min-width:21px;padding:0;line-height:normal;display:block;margin:5px 0;}.anychart-zoom .anychart-zoom-zoomIn{margin:2px 0;}.anychart-zoom .anychart-zoom-zoomOut{margin:2px 0;}.disable-selection{-moz-user-select:none;-ms-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;}.anychart-tooltip{border-radius:3px;padding:5px 10px;background:rgba(33,33,33,0.7);border:none;display:inline-block;box-sizing:border-box;letter-spacing:normal;color:#ffffff;font-family:Verdana,Helvetica,Arial,'sans-serif';font-size:12px;position:absolute;pointer-events:none;margin:10px 0px 10px 10px;}.anychart-tooltip-separator{color:rgba(206,206,206,0.3);border:none;height:1px;margin:5px 0;}.anychart-tooltip-title{font-size:14px;} \ No newline at end of file diff --git a/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.14.1/js/anychart-base.min.js b/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.14.1/js/anychart-base.min.js new file mode 100644 index 0000000000000000000000000000000000000000..7e209557ae7fa8d0b0cfe3a031edd25f05ce85a9 --- /dev/null +++ b/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.14.1/js/anychart-base.min.js @@ -0,0 +1,2155 @@ +/** + * AnyChart is lightweight robust charting library with great API and Docs, that works with your stack and has tons of chart types and features. + * + * Modules: core, theme-core, pie, theme-pie, cartesian, theme-cartesian, scatter, theme-scatter + * Version: 8.14.1.1941 (2026-01-19) + * License: https://www.anychart.com/buy/ + * Contact: sales@anychart.com + * Copyright: AnyChart.com 2026. All rights reserved. + */ +(function(global,factory){if(typeof module==='object'&&typeof module.exports==='object'){var wrapper=function(w){if(!w.document){throw Error('AnyChart requires a window with a document');}factory.call(w,w,w.document);try{w.acgraph.isNodeJS=Object.prototype.toString.call(global.process)=="[object process]";}catch(e){};return w.anychart;};module.exports=global.document?wrapper(global):wrapper;}else{factory.call(global,window,document)}})(typeof window!=='undefined'?window:this,function(window,document,opt_noGlobal){var $,_,$_=this.anychart;if($_&&(_=$_._)){$=$_.$}else{$={};_={}}if(!_.core){_.core=1;(function($){var ba,baa,caa,ta,Ea,daa,La,eaa,Sa,faa,Ya,gaa,ub,yb,Gb,Lb,Pb,Nb,Ob,bc,ic,sc,tc,wc,yc,Vb,paa,Tc,Vc,Wc,Xc,Yc,raa,$c,td,zd,Cd,xaa,Fd,Hd,Id,Jd,Nd,yaa,Kd,Zd,Vd,de,Aaa,Od,Md,Le,Ne,Ue,ef,kf,se,nf,of,pf,sf,Ef,Bf,Tf,Xf,Zf,$f,cg,eg,dg,fg,kg,ng,og,qg,tg,vg,xg,wg,ug,Cg,Bg,Eg,Hg,Haa,Ig,Kg,Og,Vg,Xg,Yg,Zg,Pg,Wg,Ng,bh,ch,dh,fh,kh,ih,hh,th,vh,wh,zh,Dh,Eh,Fh,Gh,Hh,Ih,Kh,Lh,Mh,Rh,Sh,Th,Uh,Vh,Wh,Xh,gi,hi,ii,ji,ki,li,mi,ni,oi,pi,qi,ri,si,ti,ui,vi,Zh,ai,xi,yi,zi,Ai,Gi,Hi,Kaa,Laa,Maa,Ii,Ki,Ni,Oi,Pi,Ti,Ui,Vi,Wi,Xi,Saa,Taa, +bj,pj,rj,sj,wj,Vaa,vj,tj,uj,Aj,Uaa,xj,Mi,Oaa,Naa,Waa,Vj,Wj,Xj,ak,bk,ck,dk,fk,ek,Uj,ik,rk,Xb,Li,xk,Ck,Fk,eba,hba,Qk,pba,tba,gl,Cba,Dba,ql,rl,sl,tl,ul,vl,Al,Bl,Gl,Il,Nl,Ml,Ql,Tl,Vl,Nba,qm,tm,vm,rm,Am,sm,Cm,Em,Xa,Rm,Tm,Um,Vm,Xm,en,fn,gn,hn,ln,nn,wn,xn,yn,An,zn,Bn,Cn,Dn,En,On,Pn,Qn,Rn,Pba,Wn,Xn,Zn,Yn,$n,fo,co,bo,ho,io,Rba,Sba,Tba,ko,jo,lo,mo,vo,yo,Xba,Jo,$o,Yba,cp,jp,Zba,kp,Wm,op,qp,wp,vp,aca,$ba,zp,Cp,Gp,Kp,Lp,Mp,Sp,Pp,Qp,dca,Up,aq,hq,iq,yl,wl,eca,xl,qq,rq,uq,vq,xq,zq,Aq,gr,hr,jr,nr,Iq,fr,er,dr,vr,Fr, +Kr,Pr,Qr,Rr,fca,Xr,Zr,$r,hca,cs,ds,es,hs,fs,gs,jca,js,ks,ls,ns,os,qs,ts,vs,xs,Gs,ys,Ss,Zs,$s,at,dt,et,ft,gt,ht,it,jt,wt,zt,yt,At,Dt,Gt,Ht,Bt,Lt,Mt,rca,Tt,Ut,Vt,Xt,du,eu,fu,gu,qu,ru,su,tu,uu,lu,vu,pu,wu,xu,zu,Eu,Fu,Ju,Ku,Lu,Mu,Nu,Ou,Qu,Su,Tu,sca,$u,av,uca,mv,ov,pv,qv,ev,vca,rv,wca,bv,tv,uv,vv,wv,Av,Bv,Cv,Dv,Ev,Gv,Hv,Jv,xca,Kv,Lv,Mv,Iv,yca,zca,Bca,Aca,Nv,Qv,Sv,Tv,$v,aw,Vv,bw,cw,dw,ew,fw,Xv,Wv,Yv,Zv,Cca,Dca,gw,hw,jw,kw,nw,ow,pw,qw,rw,sw,tw,uw,vw,xw,yw,ww,zw,Gw,Jw,Eca,Lw,Rw,Ow,Mw,Tw,Pw,Fw,Zw,$w,Uw,ax, +Hw,Qw,Xw,bx,ex,fx,Gca,Hca,Ica,Jca,Kca,hx,Lca,ix,jx,lx,mx,nx,ox,wx,Mca,Ex,Gx,Hx,Kx,Nx,Ox,Rx,Vx,Tx,Wx,$x,ay,by,hy,fy,py,qy,ry,sy,ty,Oca,Pca,Qca,Rca,Dy,Ey,Sy,cz,ez,Tca,bz,fz,iz,kz,pz,Vca,tz,vz,xz,yz,Az,Ez,Wca,Gz,Hz,Iz,Jz,Kz,Lz,Nz,Oz,Pz,Qz,$z,Yca,Zca,cA,eA,jA,mA,oA,pA,tA,uA,zA,AA,BA,CA,DA,FA,GA,HA,IA,$ca,KA,LA,OA,SA,bA,TA,WA,VA,UA,aB,cB,$A,fB,gB,hB,iB,jB,oB,pB,ada,wB,xB,zB,bda,cda,yB,dda,AB,CB,EB,HB,eda,LB,PB,RB,SB,TB,UB,WB,VB,XB,YB,ZB,$B,bC,cC,eC,fC,nC,oC,pC,rC,sC,uC,vC,zC,AC,CC,DC,HC,IC,JC,KC,EC,FC, +GC,LC,MC,NC,OC,PC,QC,RC,SC,TC,UC,VC,WC,XC,YC,aD,ida,hda,eD,fD,bD,gD,hD,iD,nD,ED,BD,ID,LD,HD,MD,GD,OD,UD,aa,na,aaa;ba=function(a){return function(){return aa[a].apply(this,arguments)}};$.ca=function(a,b){return aa[a]=b};$.p=function(a){return void 0!==a};$.z=function(a){return"string"==typeof a};$.da=function(a){return"boolean"==typeof a};$.ea=function(a){return"number"==typeof a};$.ha=function(a){a=a.split(".");for(var b=$.fa,c=0;cb?null:$.z(a)?a.charAt(b):a[b]};$.xa=function(a,b,c){for(var d=a.length,e=$.z(a)?a.split(""):a,f=0;f=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};$.Ka=function(a,b,c){function d(a){return $.C(a)?"o"+$.oa(a):(typeof a).charAt(0)+a}b=b||a;c=c||d;for(var e={},f=0,h=0;h>1,m;c?m=b.call(e,a[l],l,a):m=b(d,a[l]);0b?1:ac?($.Da(a,b,-(c+1)),!0):!1};$.Va=function(a,b){var c=[],d=0,e=a;void 0!==b&&(d=a,e=b);if(0>e-d)return[];for(;dc*b?c+b:c};$.ab=function(a){return $.$a(a,360)};$.bb=function(a){return a*Math.PI/180};$.cb=function(a){return 180*a/Math.PI};$.db=function(a,b){return b*Math.cos($.bb(a))};$.eb=function(a,b){return b*Math.sin($.bb(a))};$.fb=function(a){return 0a?-1:a};$.gb=function(a,b){this.x=$.p(a)?a:0;this.y=$.p(b)?b:0}; +$.ib=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};$.jb=function(a,b){var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)};$.kb=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};$.lb=function(a,b){this.width=a;this.height=b};$.mb=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};$.I=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}; +$.nb=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};$.ob=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top),f=Math.min(a.top+a.height,b.top+b.height);if(e<=f)return new $.I(c,e,d-c,f-e)}return null}; +gaa=function(a,b){var c;if((c=$.ob(a,b))&&c.height&&c.width){c=[];var d=a.top,e=a.height,f=a.left+a.width,h=a.top+a.height,k=b.left+b.width,l=b.top+b.height;b.top>a.top&&(c.push(new $.I(a.left,a.top,a.width,b.top-a.top)),d=b.top,e-=b.top-a.top);la.left&&c.push(new $.I(a.left,d,b.left-a.left,e));k=a.left&&b.x<=a.left+a.width&&b.y>=a.top&&b.y<=a.top+a.height:a.left<=b.left&&a.left+a.width>=b.left+b.width&&a.top<=b.top&&a.top+a.height>=b.top+b.height}; +$.rb=function(a,b){var c=b.xn;n++){var q=-3*f[n]+9*h[n]-9*k[n]+3*l[n],r=6*f[n]-12*h[n]+6*k[n];m=3*h[n]-3*f[n];if(0==q)0!=r&&(m=-m/r,0m&&c[n].push(b(f[n],h[n],k[n],l[n],m))); +else{var t=r*r-4*m*q;0m&&c[n].push(b(f[n],h[n],k[n],l[n],m)),m=(-r-Math.sqrt(t))/(2*q),0m&&c[n].push(b(f[n],h[n],k[n],l[n],m))):0==t&&(m=-r/(2*q),0m&&c[n].push(b(f[n],h[n],k[n],l[n],m)))}}}d=new $.I(Math.min.apply(null,c[0]),Math.min.apply(null,c[1]),0,0);d.width=Math.max.apply(null,c[0])-d.left;d.height=Math.max.apply(null,c[1])-d.top;return d}; +yb=function(a){if(0==arguments.length)return null;for(var b=null,c=!1,d=0,e=arguments.length;d":"
")}; +$.pc=function(a){if(!haa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(iaa,"&"));-1!=a.indexOf("<")&&(a=a.replace(jaa,"<"));-1!=a.indexOf(">")&&(a=a.replace(kaa,">"));-1!=a.indexOf('"')&&(a=a.replace(laa,"""));-1!=a.indexOf("'")&&(a=a.replace(maa,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(naa,"�"));return a}; +sc=function(a){for(var b=[],c=0;cf)var h=e;else{if(256>f){if(h="\\x",16>f||256f&&(h+="0");h+=f.toString(16).toUpperCase()}e=qc[e]=h}b[d]=e}return b.join("")};tc=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#b?1:0};yc=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};$.zc=function(a){var b=$.z(void 0)?tc(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};Vb=function(a,b){for(var c=a.split(" "),d=[];0=a};$.ed=function(a){var b=$.ka(a);if("array"==b){b=[];for(var c=0;cc.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(l){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);f=a.type;for(var h=c.length-1;!d.b&&0<=h;h--){d.currentTarget=c[h];var k=$.ee(c[h],f,!0,d);e=e&&k}for(h=0;!d.b&&h");c=c.join("")}c=a.createElement(c);d&&($.z(d)?c.className=d:$.A(d)?c.className=d.join(" "):$.Ce(c,d));2a};$.lf=function(a){var b=[];kf(a,b,!1);return b.join("")};kf=function(a,b,c){if(!(a.nodeName in Eaa))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in mf)b.push(mf[a.nodeName]);else for(a=a.firstChild;a;)kf(a,b,c),a=a.nextSibling}; +$.Qe=function(a){if(a&&"number"==typeof a.length){if($.C(a))return"function"==typeof a.item||"string"==typeof a.item;if($.D(a))return"function"==typeof a.item}return!1};se=function(a){this.b=a||$.fa.document||window.document};nf=function(a){$.od.call(this);this.qo=a;this.b={}};of=function(a,b,c,d,e,f){if($.A(c))for(var h=0;hl&&(l=0);l=Math.sqrt(l);f==h&&(l=-l);f=l*d*c/e;k=-l*e*b/d;l=$.Bb(1,0,(b-f)/d,(c-k)/e);b=$.Bb((b-f)/d,(c-k)/e,(-b-f)/d,(-c-k)/e)%360;!h&&0b&&(b+=360);return wg(a,d,e,l,b)}; +wg=function(a,b,c,d,e){if(0==a.j.length)throw $.ld(9);if(0==e)return a;var f=a.ag[0]-$.db(d,b),h=a.ag[1]-$.eb(d,c);var k=Math.ceil(Math.abs(e)/359.999-2E-15);for(var l=e/k,m=0;m=b&&(n=!1);if(n){for(;l=a?c=180+c:270=a&&(c=360+c);return c%360};$.ph=function(a,b,c){for(var d in c)a.lc(b,d,c[d])};$.qh=function(a,b,c){b&&(c?a.lc(b,"id",c):b.removeAttribute("id"))}; +$.rh=function(a,b,c){if(b.Uj())return null;var d=[],e=a.B4;(c?b.kfa:b.LT).call(b,function(a,b){var c=e[a];c&&(d.push(c),4==a?this.U4(d,b):5!=a&&this.Y4(d,b))},a);return d.join(" ")};th=function(a){if(!a.iu||a.iu.md)a.iu=new ch($.sh.document.body);return a.iu};$.uh=function(){this.Ta=new $.I(0,0,0,0);$.hg.call(this)};vh=function(){};wh=function(a){a.style||(a.style=a.F.length?$.Qc(a.F[a.F.length-1]):{})}; +zh=function(a,b){switch(b){case "b":case "strong":wh(a);a.style.fontWeight="bold";break;case "i":case "em":wh(a),a.style.fontStyle="italic"}}; +Dh=function(a,b,c){switch(b){case "font-style":wh(a);a.style.fontStyle=c||"normal";break;case "font-variant":wh(a);a.style.fontVariant=c||"normal";break;case "font-family":wh(a);a.style.fontFamily=c||$.Ch.fontFamily;break;case "font-size":wh(a);a.style.fontSize=c||$.Ch.fontSize;break;case "font-weight":wh(a);a.style.fontWeight=c||"normal";break;case "color":wh(a);a.style.color=c||$.Ch.color;break;case "letter-spacing":wh(a);a.style.letterSpacing=c||"normal";break;case "text-decoration":wh(a);a.style.er= +c||"none";break;case "opacity":wh(a),a.style.opacity=null!=c?(0,window.parseFloat)(c):1}};Eh=function(a){""!=a.b&&(a.xb.nK(a.b,a.F.length?a.F[a.F.length-1]:null),a.b="",a.ea=!1)};Fh=function(a){a.K==(a.P.length?a.P[a.P.length-1]:null)&&(Eh(a),a.F.pop(),a.P.pop(),a.tagName="");a.K="";a.state=1};Gh=function(a,b){zh(a,a.tagName);a.P.push(a.tagName);a.F.push(a.style);b&&(a.f="");a.tagName="";a.style=null;a.state=1};Hh=function(a,b,c){Dh(a,a.j,a.G||"");a.j="";a.G="";c&&(a.f="");a.state=b}; +Ih=function(a){zh(a,a.tagName);Dh(a,a.j,a.G||"");a.P.push(a.tagName);a.F.push(a.style);a.tagName="";a.style=null;a.f="";a.j="";a.G="";a.state=1};Kh=function(a,b,c){var d;if(a.aa){var e=Jh[a.i];$.p(e)?d=e:a.b+="&"+a.i+c}else a.i?d=(0,window.parseInt)(a.i,10):a.b+="&#"+c;d&&(a.b+=String.fromCharCode(d)+(";"==c?"":c));a.state=b;a.i="";a.aa=!0}; +Lh=function(a){var b=vh.vd();b.F=[];b.P=[];b.tagName="";b.K="";b.f="";b.ba="'";b.j="";b.G="";b.b="";b.style=null;b.xb=null;b.state=1;b.ea=!1;b.i="";b.aa=!0;b.na=!1;b.xb=a;a=a.text();for(var c=a.length,d=-1,e,f,h,k=!1;++d"!=e)break;"br"==b.tagName&&b.xb.mK();b.tagName="";k=!1;b.state=1;break}if(!b.tagName&&"<"==e){b.b+="<";break}if(!b.tagName&&h&&"/"!=e){b.b+="<"+e;b.state=1;break}if(!b.tagName&&"/"==e){b.state=3;break}if("br"==b.tagName&&">"==e){b.xb.mK();b.tagName="";b.state=1;break}if("br"==b.tagName&&("/"==e||f)){k=!0;break}b.tagName&&Eh(b);if(b.tagName&&f){b.state=4;break}if(">"== +e){Gh(b);break}b.tagName+=e.toLowerCase();break;case 3:if(k){if(">"!=e)break;Fh(b);k=!1;break}if(!b.K&&h){b.b+=""==e){Fh(b);k=!1;break}b.K+=e.toLowerCase();break;case 4:if(k){if(">"!=e)break;Gh(b,!0);k=!1;break}if(">"==e){Gh(b,!0);break}if(f){b.state=5;break}if("="==e){b.f&&(b.state="style"==b.f?6:8);break}b.f+=e.toLowerCase();break;case 5:if(">"==e){Gh(b,!0);break}if(f)break;if(b.f&&!h){b.f=e;b.state=4;break}if("="==e){b.f&&(b.state="style"==b.f?6: +8);break}b.f+=e;b.state=4;break;case 6:if(f)break;if(">"==e){Gh(b,!0);break}if("'"==e||'"'==e){b.ba=e;b.state=9;break}b.j=e;b.state=10;break;case 8:if(f)break;if(">"==e){b.f="";b.tagName="";b.state=1;break}if("'"==e||'"'==e){b.ba=e;b.state=7;break}b.state=11;break;case 9:if(f)break;if(e==b.ba){k=!0;Hh(b,4,!0);break}if(":"==e){b.state=12;break}b.j+=e.toLowerCase();break;case 12:if(f)break;if(e==b.ba){k=!0;Hh(b,4,!0);break}if(";"==e){Hh(b,9);break}b.G+=e.toLowerCase();break;case 7:e==b.ba&&(b.f="", +b.state=4);break;case 10:if(f){k=!0;Hh(b,4,!0);break}if(">"==e){Ih(b);break}if(":"==e){b.state=13;break}b.j+=e;break;case 11:if(f){Hh(b,4,!0);break}">"==e&&Gh(b);break;case 13:if(f){k=!0;Hh(b,4,!0);break}if(">"==e){Ih(b);break}if(";"==e){Hh(b,10);break}b.G+=e.toLowerCase();break;default:throw"Error while parsing HTML: Symbol '"+e+"', position: "+(d-1);}Eh(b);b.xb.oM()};Mh=function(a,b){$.od.call(this);this.b=b||{};this.text=a;this.i=!1;this.y=this.x=this.um=this.mo=this.height=this.width=this.f=0}; +$.Qh=function(a,b){this.ba=!1;this.No=a||0;this.Oo=b||0;this.Ta=new $.I(this.No,this.Oo,0,0);this.$a=this.aa=this.Pd=this.F=0;this.Id=!1;this.b=[];this.f=[];this.Ba=this.bg=this.P=0;this.ud=!0;this.fh=this.na=this.Lb=this.me=0;this.ea=[];this.rb=1;this.eb=Nh;this.j=0;this.mc=this.K=!1;this.yc=this.Ek={fontSize:$.Ch.fontSize,color:$.Ch.fontColor,fontFamily:$.Ch.fontFamily,direction:$.Ch.textDirection,textOverflow:Nh,wordBreak:Jaa,wordWrap:Oh,selectable:!0,hAlign:$.Ph};this.Ja=null;$.pg.call(this); +this.i=this.G=null};Rh=function(a,b,c){if($.p(c)){if(c!==a.yc[b]){var d=!a.Ka()||a.Ka().yf();d||a.Ka().suspend();a.yc[b]=c;a.ba=!1;a.Qb(1024);a.Qb(32);a.Qb(16384);a.qx();d||a.Ka().resume()}return a}return a.yc[b]};Sh=function(a){var b=(0,window.parseFloat)(a);return(0,window.isNaN)(b)||0>b?1:$.z(a)&&$.fc(a,"%")?1+(0,window.parseFloat)(a)/100:a}; +Th=function(a,b,c,d,e,f,h){var k,l=Math.floor((e-d)/(f.width/b.length));var m=b.substring(0,l);for(k=a.Vm(m,c);d+k.widthe&&1a.Yf?a.Yf-d.width-e:a.j,0>a.j&&(a.j=0));a.Ba=Math.max(a.Ba,d.height);a.P+=d.width;0==a.b.length&&(a.P+=a.j);a.na=Math.max(a.na,c.f);a.ud=a.f.length?a.ud&&0==b.length:0==b.length;a.f.push(c);a.b.push(c);c.parent(a);return c}; +Vh=function(a,b){var c,d=b||$.ua(a.ea),e=$.ua(d),f=a.Vm(a.eb,e.b),h=a.eb,k=1a.Xa){var m=Th(a,a.eb,e.b,0,a.Xa,f,!0);h=a.eb.substring(0,m)}m=a.bg;var n=a.Xa;if(""==h)l=(0,$.za)(a.b,e)+1,$.Ca(a.b,l,a.b.length-l);else if(n-m>=f.width){a.f=d;l=(0,$.za)(a.b,e)+1;$.Ca(a.b,l,a.b.length-l);var q=Uh(a,h,e.b,f);2==a.f.length&&""==a.f[0].text&&(q.um=a.Lb-a.f[0].height,q.i=!0)}else{for(k=d.length-1;!c&&0<=k;)e= +d[k],f=a.Vm(h,e.b),l=a.Vm(e.text,e.b),m-l.width+f.width<=a.Xa&&(c=e),m-=l.width,k--;c||1!=a.ea.length||(c=d[0],m-=l.width);c&&(a.f=d,k=a.f[0].um,n-=f.width,l=(0,$.za)(d,c),$.Ca(d,l,d.length-l),l=(0,$.za)(a.b,c),$.Ca(a.b,l,a.b.length-l),a.Ba=0,a.P=0,a.na=0,l=a.Vm(c.text,c.b),m=Th(a,c.text,c.b,m,n,l,!0),1>m&&(m=1),l=c.text.substring(0,m),d=a.Vm(l,c.b),l=Uh(a,l,c.b,d,f.width),l.x=c.x,l.y=c.y,l.Tea=!0,d.width+f.width>a.Xa&&(m=Th(a,a.eb,e.b,d.width,a.Xa,f,!0),h=a.eb.substring(0,m)),0f)return a;h=h||0;var l=$.db(h,d),m=$.eb(h,d),n=360/(2*f),q;a.moveTo(l+b,m+c);if(k)for(q=0;qd&&(d=0);0>e&&(e=0);if(d=e)return vi(a,b,c,d,f,h);a=a.path?a.path():a;h=$.Za(h,-360,360);k=360>Math.abs(h);a.Fe(b,c,d,d,f,h).Fe(b,c,e,e,f+h,-h,k);k&&a.close();return a};Zh=function(a,b,c,d,e,f){a=$.db(c,a);b=$.db(d,b)-a;return 0<=e?a+b*(f+e-f*e):a+b*f*(e+1)};ai=function(a,b,c,d,e,f){a=$.eb(c,a);b=$.eb(d,b)-a;return 0<=e?a+b*(f+e-f*e):a+b*f*(e+1)}; +xi=function(a){var b,c;switch(a.length){case 1:var d=b=c=a[0];a.push(d,b,c);break;case 2:b=a[0];c=a[1];a.push(b,c);break;case 3:c=a[1];a.push(c);break;case 4:break;default:a.push(5,5,5,5)}}; +yi=function(a,b,c){var d=a.path?a.path():a;if(6==arguments.length){var e=arguments[2];var f=arguments[3];var h=arguments[4];var k=arguments[5];d.moveTo(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).lineTo(b.left+b.width,b.top+f).lineTo(b.left+b.width,b.top+b.height-h).lineTo(b.left+b.width-h,b.top+b.height).lineTo(b.left+k,b.top+b.height).lineTo(b.left,b.top+b.height-k).lineTo(b.left,b.top+e).close()}else k=$.Ja(arguments,2,6),xi(k),e=k[0],f=k[1],h=k[2],k=k[3],yi(d,b,e,f,h,k);return d}; +zi=function(a,b,c){var d=a.path?a.path():a;if(6==arguments.length){var e=arguments[2];var f=arguments[3];var h=arguments[4];var k=arguments[5];d.moveTo(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).Ff(b.left+b.width,b.top+f,f,f,!1,!0).lineTo(b.left+b.width,b.top+b.height-h).Ff(b.left+b.width-h,b.top+b.height,h,h,!1,!0).lineTo(b.left+k,b.top+b.height).Ff(b.left,b.top+b.height-k,k,k,!1,!0);0!=e&&(d.lineTo(b.left,b.top+e),d.Ff(b.left+e,b.top,e,e,!1,!0));d.close()}else k=$.Ja(arguments,2,6),xi(k),e= +k[0],f=k[1],h=k[2],k=k[3],zi(d,b,e,f,h,k);return d}; +Ai=function(a,b,c){var d=a.path?a.path():a;if(6==arguments.length){var e=arguments[2];var f=arguments[3];var h=arguments[4];var k=arguments[5];d.moveTo(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).Ff(b.left+b.width,b.top+f,f,f,!1,!1).lineTo(b.left+b.width,b.top+b.height-h).Ff(b.left+b.width-h,b.top+b.height,h,h,!1,!1).lineTo(b.left+k,b.top+b.height).Ff(b.left,b.top+b.height-k,k,k,!1,!1);0!=e&&d.lineTo(b.left,b.top+e).Ff(b.left+e,b.top,e,e,!1,!1);d.close()}else k=$.Ja(arguments,2,6),xi(k),e=k[0], +f=k[1],h=k[2],k=k[3],Ai(d,b,e,f,h,k);return d};$.Fi=function(a,b,c,d){this.Hj=a;this.ze=b;this.mi=c;this.Pe=d};Gi=function(){$.gh.call(this)};Hi=function(a){return $.sh.document.createElementNS("http://www.w3.org/2000/svg",a)};Kaa=function(){var a=$.mg();$.Xe(a.Mk);$.Xe(a.$D);$.Xe(a.f);$.Xe(a.i);$.Xe(a.xp);$.Xe(a.Np);a.Mk=null;a.$D=null;a.f=null;a.i=null;a.xp=null;a.Np=null}; +Laa=function(a){var b=$.bb(a),c=Math.tan(b);a=1/(2*c);c/=2;.5>=Math.abs(c)?(a=-.5,b=0>Math.cos(b)):(c=-.5,b=0Math.sin(d)||180==a||360==a;if(90==a||270==a)c+=1E-6;180!=a&&(0>Math.tan(d)||90==a||270==a)&&(e=-1,c=90-c);c=$.bb(c);d=Math.sin(c)*(b.height/2-Math.tan(c)*b.width/2)+b.width/2/Math.cos(c);e*=Math.cos(c)*d;c=Math.sin(c)*d;k&&(e=-e,c=-c);return new $.Fi(Math.round(f-e),Math.round(h+c),Math.round(f+e),Math.round(h-c))}; +Ii=function(a,b,c){var d=Naa(c,b.keys,b.cx,b.cy,b.fx,b.fy,b.opacity,b.mode,b.transform);if(!d.Bo){var e=Hi("radialGradient");$.qh(a,e,d.id());$.Se(c.ia(),e);d.vF=c;d.Bo=!0;(0,$.Pe)(d.keys,function(a){var b=Hi("stop");$.ph(this,b,{offset:a.offset,style:"stop-color:"+a.color+";stop-opacity:"+((0,window.isNaN)(a.opacity)?d.opacity:a.opacity)});e.appendChild(b)},a);d.Ta?$.ph(a,e,{cx:d.Dc*d.Ta.width+d.Ta.left,cy:d.uc*d.Ta.height+d.Ta.top,fx:d.Se*d.Ta.width+d.Ta.left,fy:d.i*d.Ta.height+d.Ta.top,r:Math.min(d.Ta.width, +d.Ta.height)/2,spreadMethod:"pad",gradientUnits:"userSpaceOnUse"}):$.ph(a,e,{cx:d.Dc,cy:d.uc,fx:d.Se,fy:d.i,gradientUnits:"objectBoundingBox"});d.transform&&a.lc(e,"gradientTransform",d.transform.toString())}return d.id()}; +Ki=function(a,b,c,d){var e=$.Ji(c,b.keys,b.opacity,!0===b.mode?$.oh(b.angle,d):b.angle,b.mode,b.transform);if(!e.Bo){var f=a.I0();$.qh(a,f,e.id());$.Se(c.ia(),f);e.uF=c;e.Bo=!0;(0,$.Pe)(e.keys,function(a){var b=Hi("stop");$.ph(this,b,{offset:a.offset,style:"stop-color:"+a.color+";stop-opacity:"+((0,window.isNaN)(a.opacity)?e.opacity:a.opacity)});f.appendChild(b)},a);e.Ta?(b=Maa(e.angle,e.Ta),$.ph(a,f,{x1:b.Hj,y1:b.ze,x2:b.mi,y2:b.Pe,spreadMethod:"pad",gradientUnits:"userSpaceOnUse"})):(b=Laa(e.angle), +$.ph(a,f,{x1:b.Hj,y1:b.ze,x2:b.mi,y2:b.Pe,gradientUnits:"objectBoundingBox"}));e.transform&&a.lc(f,"gradientTransform",e.transform.toString())}return e.id()}; +Ni=function(a,b){var c=b.fill();if(c){var d=b.Ka().vn,e='url("'+Li()+"#";c&&c.opacity&&1E-4>=c.opacity&&$.hd&&$.bd("9")&&(c.opacity=1E-4);if($.z(c))a.lc(b.ia(),"fill",c),b.ia().removeAttribute("fill-opacity");else if($.A(c.keys)&&c.cx&&c.cy)a.lc(b.ia(),"fill",e+Ii(a,c,d)+'")'),a.lc(b.ia(),"fill-opacity",$.p(c.opacity)?c.opacity:1);else if($.A(c.keys))b.sb()&&(a.lc(b.ia(),"fill",e+Ki(a,c,d,b.sb())+'")'),a.lc(b.ia(),"fill-opacity",$.p(c.opacity)?c.opacity:1));else if(c.src){var f=b.ck();f?(f.width= +f.width||0,f.height=f.height||0,f.left=f.left||0,f.top=f.top||0):f=new $.I(0,0,0,0);"tile"==c.mode?Mi(d,c.src,f,c.mode,c.opacity,function(a){a.id();a.parent(b.Ka()).Td();$.mg().lc(b.ia(),"fill",e+a.id()+'")')}):(d=Mi(d,c.src,f,c.mode,c.opacity),d.id(),d.parent(b.Ka()).Td(),a.lc(b.ia(),"fill",e+d.id()+'")'),a.lc(b.ia(),"fill-opacity",$.p(c.opacity)?c.opacity:1))}else $.J(c,Kg)?(c=Oaa(d,c.type,c.color,c.Ef,c.size),c.id(),c.parent(b.Ka()).Td(),a.lc(b.ia(),"fill",e+c.id()+'")')):$.J(c,$.Qb)?(c.id(),c.parent(b.Ka()).Td(), +a.lc(b.ia(),"fill",e+c.id()+'")')):$.ph(a,b.ia(),{fill:c.color,"fill-opacity":c.opacity})}}; +Oi=function(a,b){var c=b.stroke();if(c){var d=b.Ka().vn,e=b.ia(),f='url("'+Li()+"#";if($.z(c))a.lc(e,"stroke",c);else if($.A(c.keys)&&c.cx&&c.cy)a.lc(e,"stroke",f+Ii(a,c,d)+'")');else if($.A(c.keys)){if(!b.sb())return;a.lc(e,"stroke",f+Ki(a,c,d,b.sb())+'")')}else a.lc(e,"stroke",c.color);c.lineJoin?a.lc(e,"stroke-linejoin",c.lineJoin):e.removeAttribute("stroke-linejoin");c.lineCap?a.lc(e,"stroke-linecap",c.lineCap):e.removeAttribute("stroke-linecap");c.opacity?a.lc(e,"stroke-opacity",c.opacity):e.removeAttribute("stroke-opacity"); +c.thickness?a.lc(e,"stroke-width",c.thickness):e.removeAttribute("stroke-width");c.dash?a.lc(e,"stroke-dasharray",c.dash):e.removeAttribute("stroke-dasharray")}};Pi=function(a){a.ia().removeAttribute("clip-path");a.ia().removeAttribute("clipPathUnits")}; +$.Si=function(a,b){td.call(this,a.type);this.target=$.Qi(a.target,b)||a.target;this.relatedTarget=$.Qi(a.relatedTarget||null,b)||a.relatedTarget;this.offsetX=a.offsetX;this.offsetY=a.offsetY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.button=Cd(a,0)?$.Ri:Cd(a,1)?Paa:Cd(a,2)?Qaa:Raa;this.actionButton=a.OA();this.keyCode=a.keyCode;this.charCode=a.f;this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.platformModifierKey= +a.i;this.kf=a};Ti=function(a,b){this.i=a;this.j=b;this.f=0;this.b=null};Ui=function(a,b){a.j(b);100>a.f&&(a.f++,b.next=a.b,a.b=b)};Vi=function(){this.f=this.b=null};Wi=function(){this.next=this.f=this.b=null};Xi=function(a){$.fa.setTimeout(function(){throw a;},0)}; +Saa=function(){var a=$.fa.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!$.Cc("Presto")&&(a=function(){var a=window.document.createElement("IFRAME");a.style.display="none";a.src="";window.document.documentElement.appendChild(a);var b=a.contentWindow;a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host;a=(0,$.pa)(function(a){if(("*"== +d||a.origin==d)&&a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!$.Uc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if($.p(c.next)){c=c.next;var a=c.p0;c.p0=null;a()}};return function(a){d.next={p0:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof window.document&&"onreadystatechange"in window.document.createElement("SCRIPT")?function(a){var b=window.document.createElement("SCRIPT"); +b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};window.document.documentElement.appendChild(b)}:function(a){$.fa.setTimeout(a,0)}};$.aj=function(a,b){Yi||Taa();Zi||(Yi(),Zi=!0);$i.add(a,b)}; +Taa=function(){if($.fa.Promise&&$.fa.Promise.resolve){var a=$.fa.Promise.resolve(void 0);Yi=function(){a.then(bj)}}else Yi=function(){var a=bj;!$.D($.fa.setImmediate)||$.fa.Window&&$.fa.Window.prototype&&!$.Cc("Edge")&&$.fa.Window.prototype.setImmediate==$.fa.setImmediate?(ij||(ij=Saa()),ij(a)):$.fa.setImmediate(a)}};bj=function(){for(var a;a=$i.remove();){try{a.b.call(a.f)}catch(b){Xi(b)}Ui(jj,a)}Zi=!1}; +$.oj=function(a){this.ec=kj;this.F=void 0;this.f=this.b=this.Y=null;this.i=this.j=!1;if(a!=$.ia)try{var b=this;a.call(void 0,function(a){$.lj(b,$.mj,a)},function(a){$.lj(b,nj,a)})}catch(c){$.lj(this,nj,c)}};pj=function(){this.next=this.context=this.f=this.i=this.b=null;this.j=!1};rj=function(a,b,c){var d=qj.get();d.i=a;d.f=b;d.context=c;return d}; +sj=function(a,b){if(a.ec==kj)if(a.Y){var c=a.Y;if(c.b){for(var d=0,e=null,f=null,h=c.b;h&&(h.j||(d++,h.b==a&&(e=h),!(e&&1=c&&0<=e&&255>=e&&0<=d&&255>=d){c=[c,e,d];break a}}c=[]}if(c.length)return b.wk=$.Tb(c),b.type="rgb",b;if(Jl&&(c=Jl[a.toLowerCase()]))return b.wk=c,b.type="named",b;throw Error(a+" is not a valid color string");}; +Il=function(a){if(!Hl.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Kba,"#$1$1$2$2$3$3"));return a.toLowerCase()};$.Ll=function(a){a=Il(a);return[(0,window.parseInt)(a.substr(1,2),16),(0,window.parseInt)(a.substr(3,2),16),(0,window.parseInt)(a.substr(5,2),16)]}; +$.Tb=function(a){var b=a[0],c=a[1];a=a[2];b=Number(b);c=Number(c);a=Number(a);if(b!=(b&255)||c!=(c&255)||a!=(a&255))throw Error('"('+b+","+c+","+a+'") is not a valid RGB color');b=Ml(b.toString(16));c=Ml(c.toString(16));a=Ml(a.toString(16));return"#"+b+c+a};Nl=function(a,b,c){0>c?c+=1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+(b-a)*(2/3-c)*6:a};Ml=function(a){return 1==a.length?"0"+a:a}; +$.Ol=function(a,b,c){c=$.Za(c,0,1);return[Math.round(c*a[0]+(1-c)*b[0]),Math.round(c*a[1]+(1-c)*b[1]),Math.round(c*a[2]+(1-c)*b[2])]};$.Pl=function(a,b){return $.Ol([0,0,0],a,b)};$.Rl=function(a,b,c){a=Ql(a);b=Ql(b);var d=(a.opacity+b.opacity)/2;return{color:$.Tb($.Ol(a.p5,b.p5,$.p(c)?c:.5)),opacity:d}};Ql=function(a){var b=a,c=1;$.A(a)||($.z(a)?b=a:(b=a.color||"#000",c=$.p(a.opacity)?a.opacity:1),a=$.Sl(b).wk,b=$.Ll(a));return{p5:b,opacity:c}}; +Tl=function(a,b,c,d){b=null==b||(0,window.isNaN)(+b)?7:+b;d=null!=d?$.Za(d,0,1):window.NaN;a=$.Sl(a||"#000").wk;var e=$.Ll(a);a=e[0]/255;var f=e[1]/255;e=e[2]/255;var h=Math.max(a,f,e),k=Math.min(a,f,e),l=0,m=0,n=.5*(h+k);h!=k&&(h==a?l=60*(f-e)/(h-k):h==f?l=60*(e-a)/(h-k)+120:h==e&&(l=60*(a-f)/(h-k)+240),m=0=n?(h-k)/(2*n):(h-k)/(2-2*n));e=[Math.round(l+360)%360,m,n];a=e[0];f=e[1];e=e[2];(0,window.isNaN)(d)?(d=e,c=null!=c?$.Za(c,0,1):.95):c=null!=c?$.Za(c,0,1):e;e=1m?m*(1+f):m+f-f*m;var r=2*m-l;n=255*Nl(r,l,q+1/3);m=255*Nl(r,l,q);l=255*Nl(r,l,q-1/3)}h.push($.Tb([Math.round(n),Math.round(m),Math.round(l)]))}return h};$.Ul=function(a,b,c){c=$.p(c)?c:7;a=$.Sl(a||"yellow").wk;b=$.Sl(b||"brown").wk;for(var d=[a],e=1/c,f=1;f=c&&0<=e&&255>=e&&0<=d&&255>=d){c=[c,e,d];break a}}c=[]}return c.length?(b.wk=$.Tb(c),b.type="rgb",b):Jl&&(a=Jl[a.toLowerCase()])?(b.wk=a,b.type="named",b):null}; +$.am=function(a,b,c){var d;c?d=$.Ub(a):d=$.Wb(a);$.z(d)?d={color:d,opacity:b}:$.C(d)&&(d.opacity=b);return d};$.bm=function(a){var b=1;$.z(a)?b="none"==a?0:1:$.C(a)&&(b=$.ea(a.opacity)?a.opacity:1);return b};$.cm=function(a,b,c){a=$.Wb(a);$.z(a)?a={color:a,thickness:b}:$.C(a)&&(a.thickness=b);c&&(a.opacity=c);return a}; +$.jm=function(a,b,c,d){if(!a)return $.dm;if($.z(a)){var e=b+"|"+a+"|"+c+(d?"|"+d:"");var f=em[e];if(!f){switch(b){case 2:f=$.fm;break;case 3:f=$.gm;break;default:case 1:f=$.hm}em[e]=f=$.qa(Nba,a,f,3==b,c,!!d)}}else(f=em.transparent)||(f=em.transparent=function(){return $.im});return f};$.dm=function(){return"none"};$.km=function(a){return a?$.C(a)?a.color?"none"!=a.color:!0:"none"!=a:!1}; +Nba=function(a,b,c,d,e,f,h,k,l,m){h=$.lm(h);l=l||f.check($.mm);var n=f.$();if(d&&h!=$.nm){var q=f.sc(a,h,n,b,e,void 0,k);c&&!0===q&&(q=b(f.Eh()));if($.p(q)){if(!$.D(q))return q;if(c)return a=f.Yi(k),b(q.call(a,a))}}d=f.sc(a,0,n,b,e,void 0,k);c&&!0===d&&(d=b(f.Eh()));if(m&&!c&&a!=m){var r=f.sc(m,0,n,b,e,void 0,k);$.D(r)&&(a=f.Ge(void 0,k,l),r=b(r.call(a,a)))}$.D(d)&&(a=c?f.Yi(k):f.Ge(r,k,l),d=b(d.call(a,a)));q&&(a=f.Ge(d,k,l),d=b(q.call(a,a)));return d}; +$.om=function(a,b){a&&(b=b.charAt(0).toUpperCase()+b.substr(1));return a?(a?1==a?"hover":"select":"")+b:b};qm=function(a,b,c){var d=b.split(".");b=pm[d[0]];if(!b)return pm[d[0]]={wE:[],LC:c,DI:0},!0;if(d=b.LC<=c){b.LC=c+1;for(var e=b.wE,f=0;f=h){e="";d=0;a.Yo=-1;a.Zo=-1;a.ah=c+1;f=0;break}else return 0c?Math.min($.an(a),14):13-Math.max(c,7);return $.$m(a,b?b:c)};$.an=function(a){if(!(0,window.isFinite)(a))return 0;for(var b=1,c=0;Math.round(a*b)/b!==a;)b*=10,c++;return c};$.cn=function(a,b,c){return Math.abs(a-b)<(c||.01)}; +$.dn=function(a,b){var c=Math.log(Math.max(1E-7,a));return b?$.bn(c/Math.log(b),14):c};en=function(a,b){return $.$m(Math.pow(a,b),7)};fn=function(a){a=$.Ha(a);$.Pa(a);var b=Math.floor(a.length/2);return a.length%2?a[b]:(a[b-1]+a[b])/2};gn=function(a){for(var b={},c=a[0],d=1,e=0;ed&&(c=f,d=b[f])}return c}; +$.jn=function(a,b){var c=!1,d;if(!a||!b)return!1;var e=0;for(d=a.length;e=$.kn(a,b,c,d,e[h],e[h+1]);return f};$.kn=function(a,b,c,d,e,f){return(a=(b-d)*e+(c-a)*f+(a*d-c*b))?0b){var e=a;a=b;b=e}c>d&&(e=c,c=d,d=e);return Math.max(a,c)<=Math.min(b,d)};$.mn=function(a,b,c,d,e,f,h,k){return ln(a,c,e,h)&&ln(b,d,f,k)&&0>=((c-a)*(f-b)-(d-b)*(e-a))*((c-a)*(k-b)-(d-b)*(h-a))&&0>=((h-e)*(b-f)-(k-f)*(a-e))*((h-e)*(d-f)-(k-f)*(c-e))}; +nn=function(a,b,c,d,e,f,h,k){var l=window.NaN;0!=a-2*c+e?(l=(a-c+Math.sqrt((a-2*c+e)*h+c*c-a*e))/(a-2*c+e),a=(a-c-Math.sqrt((a-2*c+e)*h+c*c-a*e))/(a-2*c+e),c=(b-d+Math.sqrt((b-2*d+f)*k+d*d-b*f))/(b-2*d+f),b=(b-d-Math.sqrt((b-2*d+f)*k+d*d-b*f))/(b-2*d+f),l=0l?l:0a?a:0c?c:0b?b:window.NaN):a!=c?l=(h-a)/(2*(c-a)):a==c&&c!=e&&(l=Math.sqrt((h-a)/(e-c)));return l};$.on=function(a,b,c,d){a=c-a;b=d-b;return Math.sqrt(a*a+b*b)};$.pn=function(a,b,c){return(c||0)+b*$.$m(Math.cos(a),8)}; +$.qn=function(a,b,c){return(c||0)+b*$.$m(Math.sin(a),8)};$.rn=function(a,b,c,d){return new $.I(a,b,c,d)};$.sn=function(a){return[a.left,a.top,a.left+a.width,a.top,a.left+a.width,a.top+a.height,a.left,a.top+a.height]};$.tn=function(a){for(var b=new $.I(0,0,0,0),c=new $.I(a[0],a[1],0,0),d=2,e=a.length;d=Math.abs(h)&&(h=0);0=Math.abs(d)&&(d=0),1E-6>=Math.abs(f)&&(f=0),0<=d&&(d=Math.sqrt(d),b.push(-c/4+(a+d)/2),b.push(-c/4+(a-d)/2)),0<=f&&(d=Math.sqrt(f),b.push(-c/4+(d-a)/2),b.push(-c/4-(d+a)/2))):0>h||(f=e*e-4*a,-1E-6<=f&&(0>f&&(f=0),f=2*Math.sqrt(f),e=3*c*c/4-2*d,1E-6<=e+f&&(d=Math.sqrt(e+f),b.push(-c/4+d/2),b.push(-c/4-d/2)),1E-6<=e-f&&(d=Math.sqrt(e-f),b.push(-c/4+d/2),b.push(-c/4-d/2))))}break;default:b=[]}return b}; +zn=function(a){var b=[];if(3==a.b.length-1){var c=a.b[3],d=a.b[2]/c,e=a.b[1]/c,f=(3*e-d*d)/3;a=(2*d*d*d-9*e*d+a.b[0]/c*27)/27;d/=3;c=a*a/4+f*f*f/27;a/=2;0c?(f=Math.sqrt(-f/3),c=Math.atan2(Math.sqrt(-c),-a)/3,a=Math.cos(c),c=Math.sin(c),e=Math.sqrt(3),b.push(2*f*a-d),b.push(-f*(a+e*c)-d),b.push(-f*(a-e*c)-d)):(c=0<=a?-Math.pow(a,1/3):Math.pow(-a,1/3),b.push(2*c-d),b.push(-c- +d))}return b}; +Bn=function(a,b,c,d,e,f,h,k,l,m,n,q){a=new $.vn(a,b);c=new $.vn(c,d);e=new $.vn(e,f);h=new $.vn(h,k);m=new $.vn(l,m);l=new $.vn(n,q);n=[];k=wn(c,-2);q=a.add(k.add(e));k=wn(a,-2);e=wn(c,2);c=k.add(e);a=new $.vn(a.x,a.y);k=wn(m,-2);l=h.add(k.add(l));k=wn(h,-2);e=wn(m,2);m=k.add(e);h=new $.vn(h.x,h.y);if(0==q.y)k=q.x*(a.y-h.y),e=k-c.x*c.y,f=c.y*c.y,k=new yn(q.x*l.y*l.y,2*q.x*m.y*l.y,q.x*m.y*m.y-l.x*f-l.y*k-l.y*e,-m.x*f-m.y*k-m.y*e,(a.x-h.x)*f+(a.y-h.y)*e);else{k=q.x*l.y-q.y*l.x;e=q.x*m.y-m.x*q.y;var r= +c.x*q.y-c.y*q.x;f=a.y-h.y;d=q.y*(a.x-h.x)-q.x*f;b=-c.y*r+q.y*d;r*=r;k=new yn(k*k,2*k*e,(-l.y*r+q.y*e*e+q.y*k*d+k*b)/q.y,(-m.y*r+q.y*e*d+e*b)/q.y,(f*r+d*b)/q.y)}k=An(k);for(e=0;e=f&&(d=An(new yn(q.x,c.x,a.x-h.x-f*m.x-f*f*l.x)),b=An(new yn(q.y,c.y,a.y-h.y-f*m.y-f*f*l.y)),0=t)for(var u=0;uMath.abs(t-b[u])){n.push(wn(l,f*f).add(wn(m,f).add(h)));break a}}return n}; +Cn=function(a,b,c,d,e,f,h,k){var l,m=(k-f)*(c-a)-(h-e)*(d-b);0!=m?(h=((h-e)*(b-f)-(k-f)*(a-e))/m,e=((c-a)*(b-f)-(d-b)*(a-e))/m,0<=h&&1>=h&&0<=e&&1>=e?l=new $.vn(a+h*(c-a),b+h*(d-b)):l=null):l=null;return l};Dn=function(a,b){switch(b){case 1:return 0!=a%4||0==a%100&&0!=a%400?28:29;case 5:case 8:case 10:case 3:return 30}return 31};En=function(a,b,c,d,e){a=new Date(a,b,c);d=$.p(d)?d:3;e=e||0;b=((a.getDay()+6)%7-e+7)%7;return a.valueOf()+864E5*((d-e+7)%7-b)}; +$.Nn=function(a,b,c,d,e,f){$.z(a)?(this.ai=a==Fn?b:0,this.pg=a==Gn?b:0,this.xg=a==Jn?b:0,this.Th=a==Kn?b:0,this.Bj=a==Ln?b:0,this.wh=a==Mn?b:0):(this.ai=a||0,this.pg=b||0,this.xg=c||0,this.Th=d||0,this.Bj=e||0,this.wh=f||0)}; +On=function(a){a=a.match(Oba);if(!a)return null;var b=!(a[6]||a[7]||a[8]);if(b&&!(a[2]||a[3]||a[4])||b&&a[5])return null;b=(0,window.parseInt)(a[2],10)||0;var c=(0,window.parseInt)(a[3],10)||0,d=(0,window.parseInt)(a[4],10)||0,e=(0,window.parseInt)(a[6],10)||0,f=(0,window.parseInt)(a[7],10)||0,h=(0,window.parseFloat)(a[8])||0;return a[1]?new $.Nn(-b,-c,-d,-e,-f,-h):new $.Nn(b,c,d,e,f,h)}; +Pn=function(a,b){var c=Math.min(a.ai,a.pg,a.xg,a.Th,a.Bj,a.wh),d=Math.max(a.ai,a.pg,a.xg,a.Th,a.Bj,a.wh);if(0>c&&0c&&d.push("-");d.push("P");(a.ai||b)&&d.push(Math.abs(a.ai)+"Y");(a.pg||b)&&d.push(Math.abs(a.pg)+"M");(a.xg||b)&&d.push(Math.abs(a.xg)+"D");if(a.Th||a.Bj||a.wh||b)d.push("T"),(a.Th||b)&&d.push(Math.abs(a.Th)+"H"),(a.Bj||b)&&d.push(Math.abs(a.Bj)+"M"),(a.wh||b)&&d.push(Math.abs(a.wh)+"S");return d.join("")}; +$.Tn=function(a,b,c){$.ea(a)?(this.b=Qn(a,b||0,c||1),Rn(this,c||1)):$.C(a)?(this.b=Qn(a.getFullYear(),a.getMonth(),a.getDate()),Rn(this,a.getDate())):(this.b=new Date((0,$.Sn)()),a=this.b.getDate(),this.b.setHours(0),this.b.setMinutes(0),this.b.setSeconds(0),this.b.setMilliseconds(0),Rn(this,a))};Qn=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};Rn=function(a,b){if(a.getDate()!=b){var c=a.getDate()c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",$.uc(c,2));c=d.join("")}b.i=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=Yn(a);b.j=[c,c];b.b={isa:a,zZ:a};b.f=[];return b}b=new Xn;b.i=a.id;b.F=-a.std_offset;b.j=a.names;b.b=a.names_ext;b.f=a.transitions;return b}; +Yn=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push($.uc(Math.floor(a/60)%100,2),":",$.uc(a%60,2));return b.join("")};$n=function(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,d=0;d=a.f[d];)d+=2;return 0==d?0:a.f[d-1]};$.eo=function(a,b){this.f=[];this.b=b||ao;"number"==typeof a?bo(this,a):co(this,a)};fo=function(a){return a.getHours?a.getHours():0}; +co=function(a,b){for(Qba&&(b=b.replace(/\u200f/g,""));b;){for(var c=b,d=0;db)var c=a.b.mF[b];else if(8>b)c=a.b.rF[b-4];else if(12>b)c=a.b.sQ[b-8],c=c.replace("{1}",a.b.mF[b-8]),c=c.replace("{0}",a.b.rF[b-8]);else{bo(a,10);return}co(a,c)};ho=function(a,b){var c=String(b);var d=a.b||ao;if(void 0!==d.SQ){for(var e=[],f=0;f=h?String.fromCharCode(d.SQ+h-48):c.charAt(f))}c=e.join("")}return c}; +io=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");}; +Rba=function(a,b,c,d,e,f){var h=b.length;switch(b.charAt(0)){case "G":return c=0c&&(c=-c),2==h&&(c%=100),ho(a,$.uc(c,h));case "Y":return c=d.getFullYear(),e=d.getMonth(),d=d.getDate(),c=En(c,e,d,a.b.gK,a.b.fK),c=(new Date(c)).getFullYear(),0>c&&(c=-c),2==h&&(c%=100),ho(a,$.uc(c,h));case "M":a:switch(c=d.getMonth(),h){case 5:h=a.b.gZ[c];break a;case 4:h=a.b.BQ[c];break a;case 3:h=a.b.IQ[c];break a;default:h=ho(a,$.uc(c+ +1,h))}return h;case "k":return io(e),c=fo(e)||24,ho(a,$.uc(c,h));case "S":return c=e.getMilliseconds()/1E3,ho(a,c.toFixed(Math.min(3,h)).substr(2)+(3h?1:0];case "h":return io(e),c=fo(e)%12||12,ho(a,$.uc(c,h));case "K":return io(e),c=fo(e)%12,ho(a,$.uc(c,h));case "H":return io(e),c=fo(e),ho(a,$.uc(c,h));case "c":a:switch(c=d.getDay(),h){case 5:h=a.b.wZ[c];break a;case 4:h=a.b.yZ[c]; +break a;case 3:h=a.b.xZ[c];break a;default:h=ho(a,$.uc(c,1))}return h;case "L":a:switch(c=d.getMonth(),h){case 5:h=a.b.vZ[c];break a;case 4:h=a.b.MQ[c];break a;case 3:h=a.b.NQ[c];break a;default:h=ho(a,$.uc(c+1,h))}return h;case "Q":return c=Math.floor(d.getMonth()/3),4>h?a.b.JQ[c]:a.b.EQ[c];case "d":return ho(a,$.uc(d.getDate(),h));case "m":return io(e),ho(a,$.uc(e.getMinutes(),h));case "s":return io(e),ho(a,$.uc(e.getSeconds(),h));case "v":return h=f||Zn(c.getTimezoneOffset()),h.i;case "V":return a= +f||Zn(c.getTimezoneOffset()),2>=h?a.i:0<$n(a,c)?$.p(a.b.e8)?a.b.e8:a.b.DST_GENERIC_LOCATION:$.p(a.b.zZ)?a.b.zZ:a.b.STD_GENERIC_LOCATION;case "w":return c=e.getFullYear(),d=e.getMonth(),e=e.getDate(),c=En(c,d,e,a.b.gK,a.b.fK),d=(new Date((new Date(c)).getFullYear(),0,1)).valueOf(),ho(a,$.uc(Math.floor(Math.round((c-d)/864E5)/7)+1,h));case "z":return a=f||Zn(c.getTimezoneOffset()),4>h?a.j[0<$n(a,c)?2:0]:a.j[0<$n(a,c)?3:1];case "Z":return d=f||Zn(c.getTimezoneOffset()),4>h?(h=-d.rD(c),a=[0>h?"-":"+"], +h=Math.abs(h),a.push($.uc(Math.floor(h/60)%100,2),$.uc(h%60,2)),h=a.join("")):h=ho(a,Yn(d.rD(c))),h;default:return""}};Sba=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))}; +Tba=function(a){a=String(a);if(Sba(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};ko=function(a){return(new jo).D(a)};jo=function(){}; +lo=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if($.A(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;fb?1:a==b?0:-1};Xba=function(a,b){return-yo(a,b)};$.wo=function(a,b){return(0,window.isNaN)(a)?(0,window.isNaN)(b)?0:1:(0,window.isNaN)(b)?-1:a-b};$.zo=function(a){for(var b;$.J(a,$.hg);){b=a.tag;if($.p(b))return b;a=a.parent()}};$.Ao=function(a,b){if(!a)return!1;for(;$.J(b,$.qf)&&b!=a;)b=b.Zi();return b==a};$.xo=function(a){return $.C(a)?"o"+$.oa(a):(typeof a).charAt(0)+a}; +$.L=function(a,b,c){a=$.ea(a)?a:!(0,window.isNaN)(b)&&$.Bo(a)?b*(0,window.parseFloat)(a)/100:(0,window.parseFloat)(a);return c&&!(0,window.isNaN)(b)?b-a:a};$.Eo=function(a){switch(a){case $.Co:return"hovered";case $.Do:return"selected";default:return"normal"}};$.Bo=function(a){return $.z(a)&&$.fc(a,"%")&&!(0,window.isNaN)((0,window.parseFloat)(a))};$.Fo=function(a,b){if(null===a)return null;a=$.p(a)?a:0;b=$.p(b)?b:0;var c=$.Bo(a),d=(0,window.parseFloat)(a);return(0,window.isNaN)(d)?b:c?a:d}; +$.Go=function(a,b){if($.Bo(a))return a;$.ea(a)||(a=(0,window.parseFloat)(a));return(0,window.isNaN)(a)?b?window.NaN:"0%":a+"%"};$.Ho=function(a){return $.Bo(a)?(0,window.parseFloat)(a)/100:+a};$.N=function(a){return null==a||$.da(a)?window.NaN:+a};$.Io=function(a){return $.z(a)?a:$.N(a)};Jo=function(a){return $.ea(a)&&!(0,window.isNaN)(a)||$.z(a)&&""!=(0,$.vc)(a)?a:null};$.Ko=function(a){return(0,window.isNaN)($.N(a))}; +$.P=function(a,b,c){$.ea(a)||(a=(0,window.parseFloat)(a));a=Math.round(a);return!(0,window.isNaN)(a)&&(0=d?0:f:"center"==e?c=d*f/2:"inside"==e&&(c=0<=d?0:-f)}return c};$.Qo=function(a,b){var c=$.ab(-b)/90;if(c){var d=(0,$.za)($.Mo,a);0<=d&&(c!=~~c&&(c=Math.round(c-.5)+.5),a=$.Mo[(d+(c+c))%$.Mo.length])}return a};$.Ro=function(a){return"left-top"==a||"center-top"==a||"right-top"==a}; +$.So=function(a){return"left-bottom"==a||"center-bottom"==a||"right-bottom"==a};$.To=function(a){return"left-top"==a||"left-center"==a||"left-bottom"==a};$.Uo=function(a){return"right-top"==a||"right-center"==a||"right-bottom"==a};$.Vo=function(a,b,c,d){c=c||0;d=7<=d?d:7;return $.$m(b*Math.floor($.$m((a-c)/b,d))+c,d)};$.Wo=function(a,b,c,d){c=c||0;d=7<=d?d:7;return $.$m(b*Math.ceil($.$m((a-c)/b,d))+c,d)}; +$.Zo=function(a,b,c){var d=new Date(a),e=d.getUTCFullYear(),f=d.getUTCMonth(),h=d.getUTCDate(),k=d.getUTCHours(),l=d.getUTCMinutes(),m=d.getUTCSeconds(),n=d.getUTCMilliseconds();return b.ai?(e=$.Vo(e,b.ai,(new Date(c)).getUTCFullYear()),Date.UTC(e,0)):b.pg?(f=$.Vo(f,b.pg),Date.UTC(e,f)):b.xg&&0==b.xg%7?(a=$.Xo($.Yo()),$.Vo(d.getTime(),864E5*b.xg,Date.UTC(2E3,0,2+(a?a.firstDayOfWeek:0)))):b.xg?(h=$.Vo(h,b.xg),Date.UTC(e,f,h)):b.Th?(k=$.Vo(k,b.Th),Date.UTC(e,f,h,k)):b.Bj?(l=$.Vo(l,b.Bj),Date.UTC(e, +f,h,k,l)):1<=b.wh?(m=$.Vo(m,b.wh),Date.UTC(e,f,h,k,l,m)):b.wh?(n=$.Vo(n,1E3*b.wh),Date.UTC(e,f,h,k,l,m,n)):a};$o=function(a){return $.p(a)?$.uc(a,2):a}; +Yba=function(a,b,c,d,e,f,h){var k=$.p(b)?b+1:b,l=$.uc(a,4)||"2000";k=$o(k)||"01";var m=$o(c)||"01",n=$o(d)||"00",q=$o(e)||"00",r=$o(f)||"00",t=$o(h)||"0";switch(arguments.length){case 2:l=l+"-"+k;break;case 3:l=l+"-"+k+"-"+m;break;case 4:case 5:l=l+"-"+k+"-"+m+"T"+n+":"+q;break;case 6:l=l+"-"+k+"-"+m+"T"+n+":"+q+":"+r;break;case 7:l=l+"-"+k+"-"+m+"T"+n+":"+q+":"+r+"."+t}return(new Date(l)).getTime()}; +$.ap=function(a,b,c,d){var e=new Date(a),f=e.getUTCFullYear(),h=e.getUTCMonth(),k=e.getUTCDate(),l=e.getUTCHours(),m=e.getUTCMinutes(),n=e.getUTCSeconds(),q=e.getUTCMilliseconds(),r=100>f&&-1a?Math.floor(a):Math.ceil(a)};$.dp=function(a,b){var c=a.left+a.width,d=a.top+a.height;a.left=$.R(a.left,b);a.top=$.R(a.top,b);a.width=$.R(c,b)-a.left;a.height=$.R(d,b)-a.top;return a}; +$.ep=function(a,b,c,d){switch(b){case "left-top":case "left-center":case "center-top":case "center":a.x+=c;a.y+=d;break;case "left-bottom":case "center-bottom":a.x+=c;a.y-=d;break;case "right-center":case "right-top":a.x-=c;a.y+=d;break;case "right-bottom":a.x-=c,a.y-=d}};$.fp=function(a){for(var b=0,c=arguments.length;b=+m||1<=+m)?m:+m,f=!1));return f?0d;d++){b=d;for(var e=0;8>e;e++)b=b&1?3988292384^b>>>1:b>>>1;c[d]=b}yp=c}b=-1;for(c=0;c>>8^yp[(b^a.charCodeAt(c++))&255];return((b^-1)>>>0).toString(16)};Cp=function(){if(Ap)return Ap;var a=Bp.length,b=0==a%2?a/2:a+.5;return Ap=(0,$.Wa)((0,$.Wa)(Bp,function(a,d){return a+d%b*(d%2?-1:1)}),function(a){return String.fromCharCode(a)}).join("")}; +$.Dp=function(a,b){switch(a){case "year":return 315576E5*b;case "semester":return 315576E5*b/2;case "quarter":return 315576E5*b/4;case "month":return 315576E5*b/12;case "third-of-month":return 315576E5*b/36;case "week":return 6048E5*b;case "day":return 864E5*b;case "hour":return 36E5*b;case "minute":return 6E4*b;case "second":return 1E3*b;default:return b}};$.Fp=function(a,b){for(var c=0;c<$.Ep.length&&$.Ep[c].Dg!=a;c++);return $.Ep[$.Za(c-(b||1),0,$.Ep.length)].Dg}; +Gp=function(a){var b=a.ai;b=365.25*b+a.pg;b=365.25*b/12+a.xg;b=24*b+a.Th;b=60*b+a.Bj;b=60*b+a.wh;return 1E3*b}; +$.Jp=function(a){a=String(a).toLowerCase();switch(a){case "arrowhead":return function(a,c,d,e){var b=c-e/2,h=d-e/3,k=c-e/2,l=d+e/3;a.moveTo(c+e/2,d).lineTo(b,h).lineTo(k,l).close();return a};case "star4":return hi;case "star6":return ji;case "star7":return ki;case "star10":return li;case "diamond":return qi;case "triangle-up":return mi;case "triangle-down":return ni;case "triangle-right":return oi;case "triangle-left":return pi;case "cross":return ri;case "diagonal-cross":return si;case "circle":return function(a, +c,d,e){return vi(a,c,d,e,0,360)};case "trapezium":return function(a,c,d,e){var b=e/3;c-=e/2;d-=e/2;a.moveTo(c+b,d+e);a.lineTo(c+e-b,d+e);a.lineTo(c+e,d);a.lineTo(c,d);a.close();return a};case "pentagon":return function(a,c,d,e){c-=e;d-=e;a.moveTo(c+e*Hp[0],d+e*Ip[0]);for(var b=1;5>b;b++)a.lineTo(c+e*Hp[b],d+e*Ip[b]);a.lineTo(c+e*Hp[0],d+e*Ip[0]);a.close();return a};case "square":return function(a,c,d,e,f){var b=c-e,k=d-e;c+=e;d+=e;$.p(f)&&(f=f||0,b=$.R(b,f),k=$.R(k,f),c=$.R(c,f),d=$.R(d,f));a.moveTo(b, +k).lineTo(c,k).lineTo(c,d).lineTo(b,d).lineTo(b,k).close();return a};case "v-line":case "line":return function(a,c,d,e,f){e*=2;var b=e/2;c-=b/2;d-=e/2;b=c+b;e=d+e;$.p(f)&&(f=f||0,c=$.R(c,f),d=$.R(d,f),b=$.R(b,f),e=$.R(e,f));a.moveTo(c,d).lineTo(b,d).lineTo(b,e).lineTo(c,e).lineTo(c,d).close();return a};case "arrow-up":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var n=c+k;k=c-k;$.p(f)&&(f=f||0,e=$.R(e,f),l=$.R(l,f),m=$.R(m,f),b=$.R(b,f),n=$.R(n,f),k=$.R(k,f),c=$.R(c,f),d= +$.R(d,f));a.moveTo(c,b);a.lineTo(e,d,n,d,n,m,k,m,k,d,l,d);a.close();return a};case "arrow-down":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var n=c+k;k=c-k;$.p(f)&&(f=f||0,e=$.R(e,f),l=$.R(l,f),m=$.R(m,f),b=$.R(b,f),n=$.R(n,f),k=$.R(k,f),c=$.R(c,f),d=$.R(d,f));a.moveTo(c,m);a.lineTo(e,d,n,d,n,b,k,b,k,d,l,d);a.close();return a};case "arrow-left":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var n=d+k;k=d-k;$.p(f)&&(f=f||0,e=$.R(e,f),l=$.R(l,f),m= +$.R(m,f),b=$.R(b,f),n=$.R(n,f),k=$.R(k,f),c=$.R(c,f),d=$.R(d,f));a.moveTo(l,d);a.lineTo(c,m,c,n,e,n,e,k,c,k,c,b);a.close();return a};case "arrow-right":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var n=d+k;k=d-k;$.p(f)&&(f=f||0,e=$.R(e,f),l=$.R(l,f),m=$.R(m,f),b=$.R(b,f),n=$.R(n,f),k=$.R(k,f),c=$.R(c,f),d=$.R(d,f));a.moveTo(e,d);a.lineTo(c,m,c,n,l,n,l,k,c,k,c,b);a.close();return a};default:return ii}}; +Kp=function(a,b,c,d){var e=new $.Sm;c=!0;$.C(d)&&(e.lJ(d.rowsSeparator),e.gG(d.columnsSeparator),e.NH(d.ignoreTrailingSpaces),c=!d.ignoreFirstRow,e.LH(c));if(a=e.pC(a)){d=$.Me("table");b&&(e=$.Me("caption"),Ue(e,b),d.appendChild(e));if(c){var f=$.Me("thead");var h=$.Me("tr");f.appendChild(h)}b=$.Me("tbody");for(e=0;e=a||96<=a&&106>=a||65<=a&&90>=a||($.xd||$.Rp)&&0==a)return!0;switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}};Qp=function(a){if($.gd)a=dca(a);else if($.Ad&&$.xd)switch(a){case 93:a=91}return a}; +dca=function(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};$.Tp=function(a,b){$.qf.call(this);a&&this.VM(a,b)};Up=function(a,b,c,d){$.Bd.call(this,d);this.type="key";this.keyCode=a;this.f=b;this.repeat=c};$.Wp=function(a){$.p(a)&&($.ll=$.fa=a,$.Vp=a.document);return $.fa};$.Yp=function(a){$.p(a)&&(Xp=a);return Xp};aq=function(a,b){$.Zp?$p.push((0,$.pa)(a,b)):a.apply(b)}; +$.bq=function(){$.Zp--;if(!$.Zp)for(var a=$p.slice(0),b=$p.length=0;bc;c++)a.push(("0000"+c.toString(2)).slice(-4));b=a.map(function(a){return zp(a)}).indexOf(b.slice(-1)[0]);if(-1===b)return!1;eca(a[b]);return!0}return!1};eca=function(a){for(var b={},c=Object.keys(zl),d=0;dk||bc)var d=this.f.mF[c];else 8>c?d=this.f.rF[c-4]:(d=this.f.sQ[c-8],d=d.replace("{1}",this.f.mF[c-8]),d=d.replace("{0}",this.f.rF[c-8]));cs(this,d)}else cs(this,a)}; +cs=function(a,b){for(var c=!1,d="",e=0;e=a.count)return!1;var b="MydhHmsSDkK".indexOf(a.text.charAt(0));return 0a.count};es=function(a,b){var c=a.substring(b[0]).match(/^\s+/);c&&(b[0]+=c[0].length)}; +hs=function(a,b,c,d,e,f){es(b,c);var h=c[0],k=d.text.charAt(0),l=-1;if(ds(d))if(0b.length)return!1;l=fs(a,b.substring(0,h+e),c)}else l=fs(a,b,c);switch(k){case "G":return l=gs(b,c,a.f.wQ),0<=l&&(f.era=l),!0;case "M":case "L":a:{d=l;if(0>d){a=a.f.BQ.concat(a.f.MQ).concat(a.f.IQ).concat(a.f.NQ);d=gs(b,c,a);if(0>d){f=!1;break a}f.month=d%12}else f.month=d-1;f=!0}return f;case "E":return d=gs(b,c,a.f.RQ),0>d&&(d=gs(b,c,a.f.KQ)),0>d?f=!1:(f.b=d,f=!0),f;case "a":return l=gs(b,c,a.f.oQ),0<=l&& +(f.i=l),!0;case "y":a:{if(0>l){var m=b.charAt(c[0]);if("+"!=m&&"-"!=m){f=!1;break a}c[0]++;l=fs(a,b,c);if(0>l){f=!1;break a}"-"==m&&(l=-l)}m||2!=c[0]-h||2!=d.count?f.year=l:(b=l,c=(new Date).getFullYear()-80,a=c%100,f.F=b==a,b+=100*Math.floor(c/100)+(bl?(d=gs(b,c,a.f.EQ),0>d&&(d=gs(b,c,a.f.JQ)),0>d?f=!1:(f.month=3*d,f.day=1,f=!0)):f=!1,f;case "d":return 0<=l&&(f.day=l),!0;case "S":return b=c[0]-h,f.j=3>b?l*Math.pow(10,3-b):Math.round(l/Math.pow(10, +b-3)),!0;case "h":12==l&&(l=0);case "K":case "H":case "k":return 0<=l&&(f.Th=l),!0;case "m":return 0<=l&&(f.Bj=l),!0;case "s":return 0<=l&&(f.wh=l),!0;case "z":case "Z":case "v":b.indexOf("GMT",c[0])==c[0]&&(c[0]+=3);a:if(c[0]>=b.length)f.f=0,f=!0;else{d=1;switch(b.charAt(c[0])){case "-":d=-1;case "+":c[0]++}h=c[0];l=fs(a,b,c);if(0>l)f=!1;else{if(c[0]l){f=!1;break a}m+=l}else m=l,m=24>m&&2>=c[0]-h?60*m:m%100+m/100*60;f.f=-(m*d);f=!0}}return f; +default:return!1}};fs=function(a,b,c){if(a.f.SQ){for(var d=[],e=c[0];e=f?String.fromCharCode(f+48):b.charAt(e))}b=d.join("")}else b=b.substring(c[0]);a=b.match(/^\d+/);if(!a)return-1;c[0]+=a[0].length;return(0,window.parseInt)(a[0],10)};gs=function(a,b,c){var d=0,e=-1;a=a.substring(b[0]).toLowerCase();for(var f=0;fd&&0==a.indexOf(c[f].toLowerCase())&&(e=f,d=h)}0<=e&&(b[0]+=d);return e};jca=function(){}; +js=function(a){$.C(a)||(a=String(a),a=is[a]||$.oq.format.locales[a]);return a||null};$.Xo=function(a){return(a=js(a))&&a.dateTimeLocale||null};ks=function(a){return(a=js(a))&&a.numberLocale||null};ls=function(a,b){var c=$.Xo(a);return c&&c[b||"dateTimeFormat"]||null}; +ns=function(a){if(!a)return ao;var b=$.oa(a);b in ms||(ms[b]={wQ:a.eras,cZ:a.eraNames,gZ:a.narrowMonths,vZ:a.standaloneNarrowMonths,BQ:a.months,MQ:a.standaloneMonths,IQ:a.shortMonths,NQ:a.standaloneShortMonths,RQ:a.weekdays,yZ:a.standaloneWeekdays,KQ:a.shortWeekdays,xZ:a.standaloneShortWeekdays,e9:a.narrowWeekdays,wZ:a.standaloneNarrowWeekdays,JQ:a.shortQuarters,EQ:a.quarters,oQ:a.ampms||a.amPmS,mF:a.dateFormats||[],rF:a.timeFormats||[],sQ:a.dateTimeFormats||[],fK:a.firstDayOfWeek,u$:a.weekendRange, +gK:a.firstWeekCutOffDay||a.firstWeekCutOfDay});return ms[b]};os=function(a,b){var c=js(a);if(c){var d="object"==$.ka(a);is[d?b:a]=kp($.oq.format.locales["default"],c)}};qs=function(a){$.p(a)&&(ps=$.ma(a)?a.getTime():$.N(a));return(0,window.isNaN)(ps)?(a=new Date,a.setTime(Date.UTC(a.getUTCFullYear(),a.getUTCMonth())),a):new Date(ps)};$.Yo=function(a){if($.p(a)){var b=$.z(a),c="object"==$.ka(a);b||c?(c=c?"output":a,os(a,c),rs=b?c:is[c]||is.output||a):rs="default"}return rs}; +ts=function(a){$.p(a)&&($.z(a)?ss=a:ss=null);return ss||ls(rs)||ls("output")||ls("default")||"yyyy.MM.dd"};vs=function(a){$.p(a)&&($.z(a)?us=a:us=null);return us||ls(rs,"dateFormat")||ls("output","dateFormat")||ls("default","dateFormat")||"yyyy.MM.dd"};xs=function(a){$.p(a)&&($.z(a)?ws=a:ws=null);return ws||ls(rs,"timeFormat")||ls("output","timeFormat")||ls("default","timeFormat")||"HH:mm:ss"}; +$.zs=function(a,b,c,d){return $.ma(a)?a:$.ea(a)?(0,window.isNaN)(a)?null:new Date(a):$.z(a)?ys(a,b,c,d):null};$.As=function(a){var b=js(rs);return(b=b&&b.messages)&&a in b?b[a]:a};$.Bs=function(a,b,c){b=$.Zk(b);a=$.Zk(a);return((c?c+"_":"")+(a==b?a:b+"_"+a)).replace(/-/g,"_")};$.Cs=function(a,b,c){a=(c=$.Xo(c)||$.Xo(rs)||$.Xo("output")||$.Xo("default"))&&c.formats&&c.formats[a];return($.A(a)?a[Math.min(a.length-1,b||0)]:$.z(a)?a:"")||"yyyy/MM/dd'T'HH:mm:ss.SSS"}; +$.Ds=function(a,b){var c=$.Xo(b)||$.Xo(rs)||$.Xo("output")||$.Xo("default");c=c&&c.formats&&c.formats[a];return $.A(c)?c:$.z(c)?[c]:[]};$.Fs=function(a,b,c){return $.Es(a,vs(),b,c)};Gs=function(a,b,c){return $.Es(a,xs(),b,c)}; +$.Es=function(a,b,c,d){a=$.J(a,Date)?a:new Date(a);if((0,window.isNaN)(a.getTime()))return String(a);d=$.Xo(d)||$.Xo(rs)||$.Xo("output")||$.Xo("default");b=b||ss||ts()||"yyyy.MM.dd";var e=b+$.oa(d);e in Hs||(d=ns(d),Hs[e]=new $.eo(b,d));d=Hs[e];c=c||Is;c in Ms||(Ms[c]=Zn(c));return d.format(a,Ms[c])}; +$.Os=function(a,b,c,d,e,f,h,k){var l;$.z(b)?l=ks(b):$.C(b)&&(l=b);var m=ks(rs)||ks("default");b=$.ea(b)?b:l&&$.ea(l.decimalsCount)?l.decimalsCount:m.decimalsCount;c=$.z(c)?c:l&&$.z(l.decimalPoint)?l.decimalPoint:m.decimalPoint;d=$.z(d)?d:l&&$.z(l.groupsSeparator)?l.groupsSeparator:m.groupsSeparator;e=$.C(e)||$.da(e)?e:l&&($.C(l.scale)||$.da(l.scale))?l.scale:m.scale;f=$.da(f)?f:l&&$.da(l.zeroFillDecimals)?l.zeroFillDecimals:m.zeroFillDecimals;h=$.z(h)?h:l&&$.z(l.scaleSuffixSeparator)?l.scaleSuffixSeparator: +m.scaleSuffixSeparator;k=$.da(k)?k:l&&$.da(l.useBracketsForNegative)?l.useBracketsForNegative:m.useBracketsForNegative;!0===e&&(e=Ns);a=Number(a);(l=0>a)&&(a=-a);m="";if($.C(e)&&$.A(e.factors)&&$.A(e.suffixes)){var n=1,q=e.factors;e=e.suffixes;for(var r=Math.min(q.length,e.length),t=0;t=n||1>=n&&a>.1*n){m=e[t];break}m?m=h+m:n=1;a/=n}f=f?a.toFixed(b):$.$m(a,b).toString();a="";/(e+|e-)/.test(f)&&(b=f.split("e"),f=b[0],a="e"+b[1]);b=f.split(".");if(d){f=b[0];for(h=[];0<(e=f.substr(0, +f.length-3)).length;)h.unshift(f.substr(-3)),f=e;f&&h.unshift(f);b[0]=h.join(d)}d=l?"-":"";c=b.join(c)+a+m;l&&k&&(c=["(",c,")"].join(""),d="");return d+c}; +ys=function(a,b,c,d){if(b=($.p(b)?b:Ps)||null){d=$.Xo(d)||$.Xo(Qs)||$.Xo("input")||$.Xo("default");var e=$.oa(d);e=b+e;e in Rs||(d=ns(d),Rs[e]=new hca(b,d));var f=Rs[e];c=$.ma(c)?c:qs();(b=-1==b.replace(/'.+?'/g,"").search(/z+/i))&&c.setTime(c.getTime()+6E4*c.getTimezoneOffset());d=a.length;a:{var h=new jca;e=[0];for(var k=-1,l=0,m=0,n=0;nk&&f.b[n].fC&&(k=n,m=l=0),0<=k){var q=f.b[n].count;if(n==k&&(q-=m,m++,0==q)){a=0;break a}hs(f,a,e,f.b[n],q,h)||(n=k-1,e[0]= +l)}else{if(k=-1,!hs(f,a,e,f.b[n],0,h)){a=0;break a}}else{k=-1;if(" "==f.b[n].text.charAt(0)){if(q=e[0],es(a,e),e[0]>q)continue}else if(a.indexOf(f.b[n].text,e[0])==e[0]){e[0]+=f.b[n].text.length;continue}a=0;break a}b:{if(null==c)throw Error("Parameter 'date' should not be null.");void 0!=h.era&&void 0!=h.year&&0==h.era&&0f?f:a));$.D(c.setHours)&&(void 0==h.Th&&(h.Th=c.getHours()),void 0!=h.i&&0h.Th&&(h.Th+=12),c.setHours(h.Th));$.D(c.setMinutes)&&void 0!=h.Bj&&c.setMinutes(h.Bj);$.D(c.setSeconds)&&void 0!=h.wh&&c.setSeconds(h.wh);$.D(c.setMilliseconds)&&void 0!=h.j&&c.setMilliseconds(h.j);void 0!=h.f&&c.setTime(c.getTime()+6E4*(h.f-c.getTimezoneOffset()));h.F&&(a=new Date,a.setFullYear(a.getFullYear()-80),c.getTime()a[h]&&(a=$.Ja(a,0).reverse(),b=$.Ja(b,0).reverse());for(var k=[],l=[],m=0;mc&&(c=~c);c=$.Za(c,1,h)-1;b=k[c](b);return l[c](b)}}; +et=function(a){$.V.call(this);this.scale=a;this.j=lca;this.i=mca;this.f=nca};ft=function(a,b,c,d){b=Math.abs(c-b)/a.qn;c=a.f.length;for(var e=0;e=a*b)return 0;d&&(a=$.bn(b),c=+("1e-"+(Math.min($.an(a),$.an(b))+1)),a>b&&(a+=e*c),b=a);return b};$.xt=function(){$.vt.call(this);this.Ga("defaultScaleSettings.dateTime");this.Di=this.xh=null};$.st=function(){var a=new $.xt;a.N(a.oa);return a}; +zt=function(){$.V.call(this);this.f=this.b=null;this.i={SY:{},JS:{}};var a=$.Xo($.Yo());this.G=$.Ha(a.weekendRange);this.j=yt(this.G);this.F={}};yt=function(a){var b=a[1],c={};for(a=a[0];a<=b;a++)c[String((a+1)%7)]=!0;return c};At=function(a,b,c,d){c=oca.b(c);b.add(c);b=b.getTime();d.push({from:a,to:b-1});return b}; +$.Ct=function(){$.V.call(this);this.Jo=this.Ko=this.Zm=this.$m=this.N6=this.O6=this.Oh=this.Ph=this.Fj=this.Gj=this.Ze=this.$e=window.NaN;this.bm={value:.01,isPixels:!1};this.am={value:.01,isPixels:!1};this.IS=window.NaN;this.Kc=!1;this.pT=this.kM=window.NaN;this.jd=Bt(pca);this.Qv=1;this.WG=0;this.dl=qca;this.Xq=this.je=null;this.eQ=this.gF=!1}; +Dt=function(a){var b=new Date;(0,window.isNaN)(a.kM)&&(a.kM=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()));(0,window.isNaN)(a.pT)&&(a.pT=a.kM+864E5);return{min:a.kM,max:a.pT}};$.Et=function(a,b,c){b=$.Xk(b);c=$.Xk(c);if(a.Ph!=b||a.Oh!=c)a.Ph=b,a.Oh=c,a.Gj=window.NaN,a.Fj=window.NaN,a.Kc=!1,a.pb(),a.va(4)}; +Gt=function(a){var b=a.Xq.ob().width,c=$.Ft(a.bm.value,b),d=$.Ft(a.am.value,b),e=a.Oh-a.Ph;a.Gj=(0,window.isNaN)(a.$m)?(0,window.isNaN)(a.Ko)?Math.round(a.Ph-(Math.max(e*c/(b-c-d),0)||0)):Math.min(a.Ko,a.Ph):a.$m;a.Fj=(0,window.isNaN)(a.Zm)?(0,window.isNaN)(a.Jo)?Math.round(a.Oh+(Math.max(e*d/(b-c-d),0)||0)):Math.max(a.Jo,a.Oh):a.Zm}; +Ht=function(a,b){var c=b?a.bm:a.am,d=b?a.am:a.bm,e=a.Xq.ob().width,f=a.Oh-a.Ph;d=f*d.value;c=$.Ft(c.value,e);e=c*(f+d)/(e-c)||0;a.Gj=(0,window.isNaN)(a.$m)?(0,window.isNaN)(a.Ko)?b?a.Ph-e:a.Ph-d:Math.min(a.Ko,a.Ph):a.$m;a.Fj=(0,window.isNaN)(a.Zm)?(0,window.isNaN)(a.Jo)?b?a.Oh+d:a.Oh+e:Math.max(a.Jo,a.Oh):a.Zm};$.It=function(a){if(a.Uj())return!0;var b=a.uj();return a.$e<=b.min};$.Jt=function(a){if(a.Uj())return!0;var b=a.uj();return a.Ze>=b.max}; +Bt=function(a){var b=[];if($.A(a)){for(var c=0;ca?-m(-a+e-1):a?m(a+e-1):0}function l(a){return-m(a)}function m(a){return en(d,a)}var n=$.dn(Math.abs(b),d),q=$.dn(Math.abs(c),d),r=b*c,t=!1;0r?Tt(a,-(n-(e-1)),q-(e-1),f,h):c?Tt(a,0,q-(e-1),f,h):Tt(a,-(n-(e-1)),0,f,h);a.Ya=(0,$.Wa)(a.Ya,k);a.result=(0,$.Wa)(a.result,k);t&&(a.Ya.reverse(),t=a.result[0],a.result[0]=a.result[1],a.result[1]=t,t=a.result[2],a.result[2]= +a.result[3],a.result[3]=t);a.result[4]=e;return a}; +Tt=function(a,b,c,d,e,f,h){h=h||0;var k=a.Jl,l=a.lh,m=a.qm,n=c-b;!(0,window.isNaN)(k)&&n/k>a.pa.an()&&($.kl(20,null,[n,k]),k=window.NaN,l=4,m=6);if((0,window.isNaN)(k)){var q=window.NaN;for(a=window.NaN;l<=m;l++){var r=l-1;q=$.bn(n/r);0==q&&(q=$.bn(n/r,10));var t=Math.log(q);r=Math.pow(10,Math.floor(t*Math.LOG10E));t=Math.pow(10,Math.ceil(t*Math.LOG10E));var u=$.dn(q/t,2);r=[r,t,q=b;h=$.$m(h-d,7)){e!=h&&$.Da(f,h);if(k&&a==h)break;k++}else for(h=a=$.$m(b,7);h<=c;h=$.$m(h+d,7)){e!=h&&f.push(h);if(k&&a==h)break;k++}return f};Vt=function(a,b,c,d){a=a.Jl;(0,window.isNaN)(a)&&(a=(c-b)/(d-1));return Math.max(a,1E-7)}; +$.Wt=function(){$.vt.call(this);this.Ga("defaultScaleSettings.linear");this.Di=this.xh=null;this.dS=!0;this.xw=10;this.GJ=!0;this.RK=this.J3};$.qt=function(){var a=new $.Wt;a.N(a.oa);return a};Xt=function(){$.Wt.call(this);this.Ga("defaultScaleSettings.log")};$.rt=function(){var a=new Xt;a.N(a.oa);a.Ya().N(a.Ya().oa);a.yb().N(a.yb().oa);return a};$.Yt=function(a){$.V.call(this);this.scale=a};$.Zt=function(a){a.Iz=null;a.Cx=null;a.Ok=null}; +$.$t=function(){this.ih=[];this.Wf=[];this.Or=[];this.Vw=[];this.oz=[];this.TR=!0;this.XB={};this.q4=null;this.TF=!0;this.mb=null;gt.call(this);this.Ga("defaultScaleSettings.ordinal")};$.au=function(a,b){null===b?a.Or.length=0:$.A(b)&&(a.Or=$.Ha(b));a.Ox()||(a.Or.length=0);a.Vw.length=0;a.oz.length=0;$.Zt(a.Ya());a.va(2)}; +$.bu=function(a){if(!a.oz||a.oz.length!=a.ih.length){var b=a.KY(),c=0,d;for(d in b)c+=b[d];a.oz=b.map(function(a){return a/c});a.YJ=[0];for(b=0;ba?$.Da(d,c,~a):(a=d[a],$.A(a.value)?$.Ba(a.value,b):a.value!=b&&(a.value=[a.value],a.value.push(b)))}else for(e in a.Bd)ru(a,b,e,d)}; +su=function(a,b,c,d){if(c){if(d)for(var e=b.cc();e--;)su(a,b.yd(e),c,d);if(d=a.Bd[c])e=b.get(c),a.cI[c]&&(e=String(e)),b.get(c),e=$.Na(d,e,a.PH[c]),(d=d[e])&&($.A(d.value)&&1h.KH&&(e.__original_id__=c.length,e.__original_parent__=c.length+1,c.push("__original_id__","__original_parent__"));for(f=0;f=h.KH){var q=n[0];var r=n[1]}else q=m.id,r=n[2];for(e=0;ea.length?a[0]:a[b],Math.min(d,c))||0}; +Ku=function(a,b,c,d,e,f,h){switch(a.g("cornerType")){case "round":b.Ff(e,f,h,h,!1,!0);break;case "round-inner":b.Ff(e,f,h,h,!1,!1);break;case "cut":b.lineTo(e,f);break;default:b.lineTo(c,d).lineTo(e,f)}};Lu=function(){$.Iu.call(this)};Mu=function(){this.P=$.mg();this.kc="";this.f={};this.b=0};Nu=function(a,b){return null!=b&&a.length>b?a.slice(0,b)+"...":a}; +Ou=function(a,b,c,d){$.V.call(this);this.Xb=this.Y=null;($.p(a)||$.p(b)||$.p(c)||$.p(d))&&this.set.apply(this,arguments);$.T(this.ua,[["left"],["top"],["bottom"],["right"]])}; +$.Nm=function(a){var b=arguments[0],c=arguments[1],d=arguments[2],e=arguments[3];if($.A(b)){var f=b;b=f[0];c=f[1];d=f[2];e=f[3];f=f.length}else f=arguments.length;if(!f)return{};if("object"==$.ka(b)){var h=b.top||0;var k=b.right||0;var l=b.bottom||0;var m=b.left||0}else 1==f?m=l=k=h=b||0:2==f?(l=h=b||0,m=k=c||0):3==f?(h=b||0,m=k=c||0,l=d||0):4<=f&&(h=b||0,k=c||0,l=d||0,m=e||0);return{top:h,left:m,bottom:l,right:k}};Qu=function(a,b){for(var c in Pu){var d=b[c];$.p(d)&&(a.oa[c]=d)}}; +$.Ru=function(a,b,c,d){Ou.call(this,a,b,c,d)};$.Uu=function(a,b){var c=b.top||0,d=b.left||0,e=Su(a.height,c,b.bottom||0),f=Tu(a.width,d,b.right||0);d=$.L(d,f);c=$.L(c,e);return new $.I(a.left-d,a.top-c,f,e)};Su=function(a,b,c){var d=1;$.Bo(b)?d-=(0,window.parseFloat)(b)/100:a+=$.ea(b)?b:(0,window.parseFloat)(b);$.Bo(c)?d-=(0,window.parseFloat)(c)/100:a+=$.ea(c)?c:(0,window.parseFloat)(c);d||(d=1E-7);return a/d}; +Tu=function(a,b,c){var d=1;$.Bo(b)?d-=(0,window.parseFloat)(b)/100:a+=$.ea(b)?b:(0,window.parseFloat)(b);$.Bo(c)?d-=(0,window.parseFloat)(c)/100:a+=$.ea(c)?c:(0,window.parseFloat)(c);d||(d=1E-7);return a/d};$.Vu=function(){this.b={}}; +sca=function(a){function b(a){var b=[],c,d;for(d in a)if(a.hasOwnProperty(d)){var e=a[d];if(d in l){var f=l[d];"number"==f&&(e=$.N(e));"boolean"==f&&(e=k[op(e).toLowerCase()],e="useNegativeSign"==d?!e:e);if("scale"==f){var h=op(e);if(h in k)e=k[h];else{e={};h=h.split("|");var n=function(a,b){return 0!=b%2};f=(0,$.Ye)(h[0].split(/\(([ \w\+\-]*)\)/),n);h=(0,$.Ye)(h[1].split(/\(([^\)]*)\)/),n);f=(0,$.Wa)(f,function(a){return+a});var q=f[0];n=[q];for(c=1;cb||h&&d>c?-1:f&&a==b||h&&d==c?0:1});0>d&&(d=~d-1);return a[$.Za(d,0,a.length)]}; +wca=function(a){var b=$.dv(a),c=b.useHtml,d=a.Hf();a.J(1024)&&($.hv(a.gp,a.ma()),a.I(1024));b=a.uk(b.format,d,a.ma());a.Rv||(a.Rv=$.sk(),a.Rv.Dd("aria-hidden","true"));c?a.Rv.htmlText($.p(b)?String(b):""):a.Rv.text($.p(b)?String(b):"");ev(a,function(a,b,c){a=0==c;$.J(b,$.Zu)||$.J(b,$.cv)?this.bi.call(b,this.Rv,a):this.bi(this.Rv,a,b)});return a.Rv}; +bv=function(a){if($.da(a.xr))return a.xr;var b=$.dv(a),c=null!==b.width,d=null!==b.height,e=b.useHtml,f=a.xb?!!a.xb.path():!1;a=String(a.uk(b.format,a.Hf(),a.ma()));a=$.hc(ic(a));return 1!=a.split(/\n/g).length||c||d||e||f};tv=function(a){var b=bv(a),c=$.J(a.xb,Mu),d=$.J(a.xb,$.Qh);return!a.xb||b&&c||!b&&d};uv=function(){$.Zu.call(this)};vv=function(){$.cv.call(this)}; +wv=function(a,b,c){this.qc={values:a||{},lg:b||null,Li:c||[],Im:{},Dl:{}};this.qc.Im["%Value"]="value";this.qc.Im["%YValue"]="value";this.qc.Im["%Index"]="index"};$.xv=function(a){return $.p(void 0)?(a.qc.values=void 0,a):a.qc.values};$.yv=function(a,b){var c;if($.p(b)){for(c in a)a.hasOwnProperty(c)&&!$.D(a[c])&&a[c]!=a.qc&&delete a[c];a.qc.values=b}for(c in a.qc.values)a[c]=a.qc.values[c].value;return a};$.zv=function(a){$.V.call(this);this.b=a}; +Av=function(a){this.ra=a;$.V.call(this);$.T(this.ua,[["text",16,2],["url",16,2],["alt",16,2],["imgAlt",16,2],["logoSrc",16,2],["enabled",16,2]])}; +Bv=function(){$.Y.call(this);this.Y=null;this.Uc={};this.Xb=null;$.T(this.ua,[["fontSize",20,9],["fontFamily",20,9],["fontColor",16,1],["fontOpacity",16,1],["fontDecoration",20,9],["fontStyle",20,9],["fontVariant",20,9],["fontWeight",20,9],["letterSpacing",20,9],["textDirection",20,9],["lineHeight",20,9],["textIndent",20,9],["textShadow",16,1],["vAlign",20,9],["hAlign",20,9],["wordWrap",20,9],["wordBreak",20,9],["textOverflow",20,9],["selectable",16,1],["disablePointerEvents",16,1],["useHtml",20, +9]])};Cv=function(){Bv.call(this);this.Ia=null;this.K=void 0;this.xb=this.Wa=null;this.Oa=$.ok();$.Bu(this,this.Oa);$.T(this.ua,[["text",20,9],["position",4,9],["width",4,9],["height",4,9],["anchor",4,9],["offsetX",4,9],["offsetY",4,9],["rotation",4,9],["adjustFontSize",4,9],["minFontSize",0,0,0,this.ea],["maxFontSize",0,0,0,this.ea]]);this.ua.disablePointerEvents.e0=function(){this.background().disablePointerEvents(this.nd("disablePointerEvents"))}}; +Dv=function(a){var b=a.ja(),c;var d=a.g("width");var e=a.g("height");var f=a.X1();b&&f?(null!=d?(a.Oi=d=$.L(d,f.width),b=!1):(d=0,b=!0),null!=e?(a.Ni=c=$.L(e,f.height),f=!1):(c=0,f=!0)):($.Ko(d)?(b=!0,d=0):(b=!1,a.Oi=d=$.N(d)),$.Ko(e)?(f=!0,c=0):(f=!1,a.Ni=c=$.N(e)));e=a.padding();a.xb.width(null);a.xb.height(null);b?(d+=a.xb.sb().width,a.nn=d,a.Oi=e.Lk(d)):d=a.nn=e.Ng(d);a.xb.width(a.nn);f?(c+=a.xb.sb().height,a.ln=c,a.Ni=e.$j(c)):c=a.ln=e.Yh(c);a.xb.height(a.ln);var h=!b,k=!f,l=a.g("adjustFontSize"); +h=l&&(h&&l.width||k&&l.height);a.ka();h?(d=a.aS(d,c),a.fontSize(d),a.xb.fontSize(d),b&&(a.xb.width(null),a.nn=a.xb.sb().width,a.xb.width(a.nn),a.Oi=e.Lk(a.nn)),f&&(a.xb.height(null),a.ln=a.xb.sb().height,a.xb.height(a.ln),a.Ni=e.$j(a.ln))):l&&(l.width||l.height)&&(a.fontSize(a.g("minFontSize")),a.xb.fontSize(a.g("minFontSize")),b&&(a.xb.width(null),a.nn=a.xb.sb().width,a.xb.width(a.nn),a.Oi=e.Lk(a.nn)),f&&(a.xb.height(null),a.ln=a.xb.sb().height,a.xb.height(a.ln),a.Ni=e.$j(a.ln)));a.da(!1);a.Lg=$.L(e.g("left"), +a.Oi);a.Mg=$.L(e.g("top"),a.Ni)};Ev=function(a){var b;if(b=!a.xb)a.xb=$.sk(),a.xb.Dd("aria-hidden","true");return b};$.Fv=function(){Cv.call(this);$.T(this.ua,[["visible",128,1]]);this.oa.visible=!0};Gv=function(){$.Fv.call(this)}; +Hv=function(){function a(){this.Zy=!0}function b(){this.ac=null}Bv.call(this);this.Ga($.Er.legendItem);this.wb=$.ok();this.ad=this.wb.text();this.ad.Dd("aria-hidden","true");this.VW=this.WW=null;this.RF=window.NaN;this.n4={line:"black",spline:"black","step-line":"black",ohlc:"black",candlestick:"black"};this.vka={line:!0,spline:!0,"step-line":!0,ohlc:!0};this.ZC={iconStroke:"#999",iconFill:"#999",iconHatchFill:"none",iconMarkerStroke:"#999",iconMarkerFill:"#999",fontColor:"#999"};$.T(this.ua,[["text", +20,9],["x",4,9,0,b],["y",4,9,0,b],["iconType",16,1,0,a],["iconTextSpacing",4,9,0,b],["maxWidth",4,9,0,b],["maxHeight",4,9,0,b],["iconFill",17,0,a],["iconStroke",16,1,0,a],["iconHatchFill",16,1,0,a]]);this.TK()};Jv=function(a,b,c){a.$l?a.$l.clear():a.$l=b.parent().path();a.jw&&(Iv(a,a.za),b=a.jw,($.z(b)?$.Jp(b):b).call(a,a.$l,c/2,c/2,c/6))}; +xca=function(a){switch(a){case "step-area":a=function(a,b){a.moveTo(0,.6*b).lineTo(.5*b,.6*b).lineTo(.5*b,.1*b).lineTo(b,.1*b).lineTo(b,b).lineTo(0,b).lineTo(0,.6*b).close()};break;case "area":a=function(a,b){a.moveTo(0,.7*b).lineTo(.35*b,.3*b).lineTo(.5*b,.5*b).lineTo(b,0).lineTo(b,b).lineTo(0,b).lineTo(0,.7*b).close()};break;case "range-step-area":case "range-spline-area":case "range-area":a=function(a,b){a.moveTo(0,.2*b).lineTo(.5*b,.4*b).lineTo(b,.2*b).lineTo(b,.8*b).lineTo(.5*b,.6*b).lineTo(0, +.8*b).close()};break;case "spline-area":a=function(a,b){var c=b/2;a.moveTo(b,.6*c).lineTo(b,b).lineTo(0,b).lineTo(0,1.3*c).Fe(0,c,c,.3*c,90,-90).Fe(b,c,c,.4*c,180,90).moveTo(0,0).close()};break;case "range-bar":a=function(a,b){a.moveTo(.35*b,0).lineTo(.65*b,0).lineTo(.65*b,.15*b).lineTo(.35*b,.15*b).close().moveTo(.1*b,.4*b).lineTo(.9*b,.4*b).lineTo(.9*b,.55*b).lineTo(.1*b,.55*b).close().moveTo(.25*b,.8*b).lineTo(.75*b,.8*b).lineTo(.75*b,.95*b).lineTo(.25*b,.95*b).close()};break;case "range-column":a= +function(a,b){a.moveTo(0,.6*b).lineTo(0,.4*b).lineTo(.15*b,.4*b).lineTo(.15*b,.6*b).lineTo(0,.6*b).close().moveTo(.4*b,.9*b).lineTo(.4*b,.1*b).lineTo(.55*b,.1*b).lineTo(.55*b,.9*b).lineTo(.4*b,.9*b).close().moveTo(.8*b,.7*b).lineTo(.8*b,.3*b).lineTo(.95*b,.3*b).lineTo(.95*b,.7*b).lineTo(.8*b,.7*b).close()};break;case "bar":a=function(a,b){a.moveTo(0,0).lineTo(.6*b,0).lineTo(.6*b,.15*b).lineTo(0,.15*b).close().moveTo(0,.4*b).lineTo(b,.4*b).lineTo(b,.55*b).lineTo(0,.55*b).close().moveTo(0,.8*b).lineTo(.8* +b,.8*b).lineTo(.8*b,.95*b).lineTo(0,.95*b).close()};break;case "column":a=function(a,b){a.moveTo(0,b).lineTo(0,.4*b).lineTo(.15*b,.4*b).lineTo(.15*b,b).close().moveTo(.4*b,b).lineTo(.4*b,0).lineTo(.55*b,0).lineTo(.55*b,b).close().moveTo(.8*b,b).lineTo(.8*b,.2*b).lineTo(.95*b,.2*b).lineTo(.95*b,b).close()};break;case "step-line":a=function(a,b){a.moveTo(0,.8*b).lineTo(.5*b,.8*b).lineTo(.5*b,.2*b).lineTo(b,.2*b).moveTo(0,0).close();Jv(this,a,b)};break;case "line":a=function(a,b){a.moveTo(0,.5*b).lineTo(b, +.5*b).close();Jv(this,a,b)};break;case "spline":a=function(a,b){var c=b/2;a.Fe(0,c,c,.8*c,90,-90).Fe(b,c,c,.6*c,180,90).moveTo(0,0).close();Jv(this,a,b)};break;case "bubble":case "circle":a=function(a,b){var c=b/2;a.Fe(c,c,c,c,0,360).close()};break;case "candlestick":a=function(a,b){a.moveTo(.5*b,0).lineTo(.5*b,b).moveTo(0,.3*b).lineTo(b,.3*b).lineTo(b,.7*b).lineTo(0,.7*b).lineTo(0,.3*b).close()};break;case "ohlc":a=function(a,b){a.moveTo(0,.2*b).lineTo(.5*b,.2*b).moveTo(.5*b,0).lineTo(.5*b,b).moveTo(.5* +b,.8*b).lineTo(b,.8*b).close()};break;case "triangle-up":case "triangle-down":case "triangle-right":case "triangle-left":case "diamond":case "cross":case "diagonal-cross":case "star4":case "star5":case "star6":case "star7":case "star10":case "pentagon":case "trapezium":case "arrowhead":case "v-line":a=$.Ok(a);var b=$.Jp(a);a=function(a,d){return b(a,d/2,d/2,d/2)};break;default:a=function(a,b){a.moveTo(0,0).lineTo(b,0).lineTo(b,b).lineTo(0,b).close()}}return a}; +Kv=function(a,b){a.$l&&a.$l.clear();a.Fs?(b.call(a,a.lw.clear(),a.op),a.Es&&b.call(a,a.Es.clear(),a.op)):(a.lw.clear(),a.Es&&a.Es.clear())};Lv=function(a,b,c){a.bi(a.ad,!!c);c=a.g("fontColor");b=a.fq?a.ZC.fontColor:b?$.Wl(c):c;(0,window.isNaN)(a.RF)?(a.ad.color(b),a.ad.fill(b)):(c=a.g("fontOpacity"),c=$.p(c)?c:1,b={keys:Mp(a.RF,c,b)},a.Rh().fill(b))};Mv=function(a,b){a.lw.stroke(yca(a,b));a.lw.fill(zca(a,b));a.Es&&a.Es.fill(a.fq?a.ZC.iconHatchFill:a.g("iconHatchFill"))}; +Iv=function(a,b){a.$l&&(a.$l.fill(Aca(a,b)),a.$l.stroke(Bca(a,b)))};yca=function(a,b){if(a.fq)return a.ZC.iconStroke;var c=a.g("iconType");return $.lp(a.g("iconStroke"))&&c in a.n4?a.n4[c]:b?$.Wl(a.g("iconStroke")):a.g("iconStroke")};zca=function(a,b){return a.g("iconType")in a.vka?null:a.fq?a.ZC.iconFill:b?$.Wl(a.g("iconFill")):a.g("iconFill")};Bca=function(a,b){return a.fq?a.ZC.iconMarkerStroke:b?$.Wl(a.hw):a.hw};Aca=function(a,b){return a.fq?a.ZC.iconMarkerFill:b?$.Wl(a.gw):a.gw}; +Nv=function(a,b){return $.p(b)?(a.WW=b,a):a.WW};$.Pv=function(){Bv.call(this);this.Jf=this.Yf=null;this.ec=Ov;this.qE=this.kL=!1;this.SH();$.T(this.ua,[["text",20,9]]);this.B(4294967295)}; +Qv=function(a){var b=a.ja();if(b){var c=b.width;var d=b.height}else c=d=void 0;var e=!!a.xb;if(e){var f=a.xb.sb();var h=f.width;var k=f.height}var l=null!=a.Yf,m=null!=a.Jf;f=a.padding();l?(h=$.Bo(a.Yf)&&!$.p(c)?e?h:0:$.L(a.Yf,c),e&&(a.Lg=$.L(f.g("left"),h))):(h=e?h:0,e&&(a.Lg=$.L(f.g("left"),h)),h=f.Lk(h));b&&cb?null:b;$.p(a.width())||a.B(4)};$.lw=function(a,b){if($.p(b)){var c=a.g("orientation")!=b;a.Od.orientation=b;c&&a.B(4);return a}return a.Od.orientation};$.mw=function(a,b){if($.p(b)){var c=null==b?"":String(b);a.aa!=c&&(a.aa=c,a.B(20,9));return a}return a.aa};nw=function(a){var b=!1;a.wb||(b=!0,a.wb=$.ok(),a.background().O(a.wb),a.kc=a.wb.text(),a.kc.zIndex(.1),a.kc.Dd("aria-hidden","true"),$.Bu(a,a.wb));return b}; +ow=function(a){var b=a.padding(),c=a.margin(),d=a.ja(),e=a.g("orientation"),f=0==a.AA()%180;var h=0==(a.AA()+90)%180;if(d)if(h){var k=d.height;h=d.width}else k=d.width,h=d.height;else k=h=void 0;var l=nw(a);if(l||a.J(16))a.bi(l),a.I(16);a.kc.width(null);a.kc.height(null);a.kc.pc(1,0,0,1,0,0);l=a.kc.sb();var m=a.ph("width")?a.nd("width"):a.ba||null;null===m?(a.G=l.width,a.f=b.Lk(a.G)):(a.f=$.L(m,k),a.G=b.Ng(a.f));d&&kd.left-q+k&&(b-=d.left-q+k);0>d.top-m+n&&(c-=d.top-m+n);d.cb()-q+k>r.width&&(b-=d.cb()-q+k-r.width);d.Va()-m+n>r.height&&(c-=d.Va()-m+n-r.height)}h||(a.x(b),a.y(c),d=a.ob(),d.lefte.width+q&& +(b-=d.cb()-e.width-q),d.Va()>e.height+m&&(c-=d.Va()-e.height-m));l||(a.x(b),a.y(c),d=a.ob(),d.leftf.cb()+q&&(b-=d.cb()-q-f.cb()),d.Va()>f.Va()+m&&(c-=d.Va()-m-f.Va()));a.x(b);a.y(c)}}; +Jw=function(a,b,c,d,e){var f=b.parent()?Hw(b):a,h=f.g("positionMode")||"float";f=f.ya()||$.Iw(a);a=f.ob();var k=f.O().Ka();f=$.Zj(k);k=k.sb();var l=Fw(b),m=b.g("position");switch(h){case "float":var n=l?c:c-f.x;var q=l?d:d-f.y;break;case "point":var r;e&&e.Bh?r=e.Bh(m,!0).value:r={x:c,y:d};n=l?r.x+f.x:r.x;q=l?r.y+f.y:r.y;break;case "chart":c=$.Lo(a,m),n=c.x+(l?f.x:0),q=c.y+(l?f.y:0)}Gw(b,n,q,f,k,a)}; +Eca=function(a,b,c,d,e,f){if(a.check(Cw|Dw)&&(a.b=e?e.Ua():a,$.Kw(a,[a.b]),a.b.enabled())){for(var h={clientX:{value:c,type:"number"},clientY:{value:d,type:"number"},formattedValues:{value:[],type:""},points:{value:[],type:""}},k=[],l=0;l":"\n",h.joinedFormattedValues={value:h.formattedValues.value.join(k),type:"string"},f&&$.Sc(h,f),k=e&&e.xc&&e.xc()||b[0]&&b[0].series&&b[0].series.xc&&b[0].series.xc()||void 0,f=[],!e&&b[0]&&b[0].series&&f.push(b[0].series),e&&f.push(e),k&&f.push(k),b=new $.Nw(h),b.Li(f),e&&b.lg(e.$()), +$.yv(b),a.b.Ri().text(Mw(a,b,!0)),$.mw(a.b.title(),Ow(a,b)),$.Kw(a.b),a.b.g("useHtml")&&tw(a.b.i),Pw(a.b).parent()||a.b.B(2),Qw(a,a.b),Jw(a,a.b,c,d,e),Rw(a.b,c,d))}};Lw=function(a,b){return!a.enabled()||b.nearestPointToCursor&&!(0,window.isFinite)(b.nearestPointToCursor.distance)}; +$.Vw=function(a,b,c,d,e,f,h){if(!a.f||a.f.NA()||!a.f.Hm()||a.check(Cw)||b.length){$.Sw(a);var k=a.g("displayMode");if("single"==k)e=b[0],b=e.series,a.b=f?a:b.Ua(),!Lw(a.b,e)&&$.p(b.Rk)&&(f=b.Rk(),h&&($.Sc($.xv(f),h),$.yv(f)),f.clientX=c,f.clientY=d,$.mw(a.b.title(),Ow(a.b,f)),a.b.Ri().text(Mw(a.b,f)),a.b==a?$.Kw(a):(Tw(a),$.Kw(a,[a.b])),((h=a.g("useHtml"))&&!a.b.i.O()||!Pw(a.b).parent())&&a.b.B(2),h&&tw(a.b.i),Qw(a,a.b),Jw(a,a.b,c,d,b),Rw(a.b,c,d));else if("union"==k)Eca(a,b,c,d,e,h);else if("separated"== +k)for(Tw(a),h=0;hd.Va()?(e=d.tb(),f=d.cb(),h=d.Vb(),k=d.Va(),c+=2):(e=f=d.tb()+2,h=d.Vb(),k=d.Va(),b-=2);else if(b>d.cb())cd.Va()?(e=d.tb(),f=d.cb(),h=d.Va(),k=d.Vb(),c+=2):(e=f=d.cb()-2,h=d.Vb(),k=d.Va(),b+= +2);else if(cd.Va())h=k=d.Va()-2,e=d.tb(),f=d.cb(),c+=2;else break a;a.K=[e,h,f,k,b,c]}$.Yd(window.document,"mousemove",a.ZN,!1,a)}else e&&d.Ed(!0)}};$.Ww=function(a,b,c,d){$.Sw(a);a.b=a;d&&(d.clientX=b,d.clientY=c,$.mw(a.title(),Ow(a,d)),a.Ri().text(Mw(a,d)));a.g("useHtml")&&!a.b.i.O()&&a.b.B(2);Qw(a,a);Jw(a,a,b,c);Rw(a,b,c)}; +Ow=function(a,b){$.xv(b).titleText={value:a.jb.g("text"),type:"string"};$.yv(b);var c=a.g("titleFormat");$.z(c)&&(c=$.Xu($.Vu.vd(),c));return c.call(b,b)};Mw=function(a,b,c){$.xv(b).valuePrefix={value:a.g("valuePrefix")||"",type:"string"};$.xv(b).valuePostfix={value:a.g("valuePostfix")||"",type:"string"};$.yv(b);c=c?a.g("unionFormat"):a.g("format");$.z(c)&&(c=$.Xu($.Vu.vd(),c));a=a.g("maxLength");b=c.call(b,b);return b=Nu(b,a)}; +Tw=function(a,b,c){if(b)return a.F&&a.F.stop(),a.remove(),!0;if(a.g("selectable")&&c){b=c.originalEvent.clientX;c=c.originalEvent.clientY;var d=a.ob().Tf(new $.gb(b,c)),e=Pw(a).ia();if(e&&!d)return $.Ld(e,"mouseleave",a.eN,!1,a),a.K=null,!1;if(Xw(a,b,c))return $.Ld(window.document,"mousemove",a.ZN,!1,a),e&&($.Ld(Pw(a).ia(),"mouseenter",a.vY,!1,a),$.Ld(Pw(a).ia(),"mouseleave",a.wY,!1,a)),!1;a.K=null}if(a.g("hideDelay"))return a.tL(),a.F.uq()||a.F.start(),!1;a.remove();return!0}; +$.Sw=function(a){var b=a.Wj();a.title().Wj(b);a.$r().Wj(b);a.background().Wj(b);a.padding().Wj(b)};Pw=function(a){if(!a.Oa){a.Oa=$.ok();$.Bu(a,a.Oa);var b=a.background(),c=a.title(),d=a.$r(),e=a.Ri();b.O(a.Oa);c.O(a.Oa);d.O(a.Oa);e.O(a.Oa)}return a.Oa};$.Iw=function(a,b){return $.p(b)?(a.Ba=b,a):a.Ba};Fw=function(a){return Fca&&a.g("allowLeaveStage")&&a.g("allowLeaveChart")};$.Kw=function(a,b){b=b||[];for(var c in a.j)(0,$.Yw)(b,function(a){return String($.oa(a))==c})||a.j[c].Lc(!0)}; +Zw=function(a){if(a.g("useHtml"))a.P=a.i.sb();else if(!a.P){a.Ri().ka();a.bi();a.Ri().da(!1);var b=a.g("width"),c=a.g("height"),d=(a.ra||$.Iw(a)).ob();b=$.L(b,d.width);c=$.L(c,d.height);d=!(0,window.isNaN)(b);var e=!(0,window.isNaN)(c),f=new $.I(0,0,0,0),h=null,k=null,l=a.title(),m=a.$r(),n=a.Ri();l.ka();m.ka();n.ka();if(!d||!e){if(l.enabled()){"svg"==$.kk?l.ja(null):l.ja(a.ra&&a.ra.O()?a.ra.O().Ka().sb():null);var q=l.g("width");var r=null!=l.nd("width");var t=l.g("height");var u=null!=l.nd("height"); +$.Bo(q)&&(h=q,d?(q=a.padding().Ng(b),l.width(q)):l.width(null));$.Bo(t)&&(k=t,e?(q=a.padding().Yh(c),l.height(q)):l.height(null));t=l.yi();f.width=b||Math.max(f.width,t.width);r?l.width(h):delete l.Pa.width;u?l.height(k):delete l.Pa.height;k=h=null;e||(f.height+=t.height)}if(n.enabled()){var v=(r=a.Y?a.Y.Ri():null)?r.width():void 0;r=r?r.height():void 0;n.ja(null);v=n.width()||v;r=n.height()||r;$.Bo(v)&&(h=v,d?(q=a.padding().Ng(b),n.width(q)):n.width(null));$.Bo(r)&&(k=r,e?(q=a.padding().Yh(c),n.height(q)): +n.height(null));v=n.yi();f.width=b||Math.max(f.width,v.width);h&&n.width(h);k&&n.height(k);e||(f.height+=v.height)}l.enabled()&&l.ja(new $.I(0,0,f.width,t.height));n.enabled()&&n.ja(new $.I(0,0,f.width,v.height));m.enabled()&&(m.ja(l.enabled()||n.enabled()?f:null),t=m.yi(),f.width=b||Math.max(f.width,t.width),e||(f.height+=t.height))}f=a.padding().LY(f);d&&(f.width=b);e&&(f.height=c);f.left=0;f.top=0;a.P=f;l.da(!1);m.da(!1);n.da(!1)}}; +$w=function(a){Zw(a);if(!a.G){var b=a.g("anchor"),c=a.g("useHtml"),d=c?0:a.g("offsetX"),e=c?0:a.g("offsetY");c=c?$.Uf(a.i.Za(),"margin"):new $.kb(0,0,0,0);var f=a.g("x"),h=a.g("y");f=new $.gb(f,h);$.ep(f,b,d+c.left,e+c.top);b=$.Lo(a.P,b);f.x-=b.x;f.y-=b.y;a.G=f}}; +Uw=function(a,b,c,d,e){var f=c,h=d,k=a.g("positionMode")||"float",l=a.g("displayMode"),m=(a.ya()||$.Iw(a)).ob(),n=a.Ba.O().Ka(),q=n.sb();n=$.Zj(n);var r=Fw(b);"float"==k?(f=r?c:c-n.x,h=r?d:d-n.y):"point"==k?(a="union"==l?a.g("position"):b.g("position"),a=e.Bh(a,!0).value,f=r?a.x+n.x:a.x,h=r?a.y+n.y:a.y):"chart"==k&&(f=a.ya().ob(),a="union"==l?a.g("position"):b.g("position"),a=$.Lo(f,a),f=a.x+(r?n.x:0),h=a.y+(r?n.y:0));Gw(b,f,h,n,q,m)}; +ax=function(a){var b=null;$.Iw(a)?b=$.Iw(a).O():a.ya()?b=a.ya().O():a.parent()&&(a=Hw(a),$.Iw(a)?b=$.Iw(a).O():a.ya()&&(b=a.ya().O()));return b};Hw=function(a){for(;a.parent();)a=a.parent();return a}; +Qw=function(a,b){if(b.J(2))if(Fw(b)||"vml"==$.kk){if(b.g("useHtml"))b.i.O($.Vp.body);else{var c=zw.vd();a.f&&a.f.NA()&&b.f.O(null);b.f=c;b.f.O(window.document.body);b.O(c.b);Pw(b).parent(b.O())}b.I(2)}else if(c=ax(b)){var d=c.Ka().Tl();if(b.g("useHtml"))b.i.O(d);else{var e=bx(b);c=cx[e];c||(c=new uw,cx[e]=c);b.f=c;Pw(b).parent(b.O());c.O(d);b.O(c.b)}b.I(2)}}; +Xw=function(a,b,c){if(!a.K)return!1;var d=a.K[0],e=a.K[1],f=a.K[2],h=a.K[3],k=a.K[4],l=a.K[5];a=$.kn(f,h,k,l,b,c);k=$.kn(k,l,d,e,b,c);return $.kn(d,e,f,h,b,c)==a&&a==k};bx=function(a){a=ax(a).Ka();return"stg"+$.oa(a)}; +$.dx=function(){Bv.call(this);this.Ga($.Er.legend);this.ba=this.Ub=null;this.Xa=window.NaN;this.$a=!0;this.B(4294967295);$.Cu(this,this,null,null,null,null,this.Caa,null);$.T(this.ua,[["inverted",16,1],["itemsLayout",4,9],["iconSize",4,9,0,function(){if(null!=this.Ub)for(var a=0,b=this.Ub.length;ab?(v=Math.max(v,n),w+=m,q++,n=e+y,m=k+y):(n+=e+y,m=Math.max(m,k+y)):"vertical-expandable"==x&&(r+k>c?(w=Math.max(w,r),v+=t,u++,t=e+y,r=k+y):(r+=k+y,t=Math.max(t, +e+y))));!d||0>f?f=d=0:d-=y;!h||0>l?l=h=0:h-=y;a.me=u;return"vertical"==x?$.rn(0,0,Math.max(0,f),Math.max(0,h)):"horizontal"==x?$.rn(0,0,Math.max(0,d),Math.max(0,l)):"vertical-expandable"==x?(w=Math.max(w,r)-y,$.rn(0,0,Math.max(0,v+(t-y)),Math.max(0,w))):"horizontal-expandable"==x?(v=Math.max(v,n)-y,$.rn(0,0,Math.max(0,v),Math.max(0,w+(m-y)))):$.rn(0,0,0,0)}; +Hca=function(a){if($.A(a.Ja))return a.Ja;if(null!=a.f){for(var b,c=[],d=0;dc.width&&(f+=h,h=e=0);hx(m,e,f,c);e+=m.ob().Ad()+k;h=Math.max(h,n.qd()+k)}break;case "vertical-expandable":for(h=f=e=0,k=a.g("itemsSpacing"),l=0;lc.height&&(e+=h,h=f=0),hx(m,e,f,c), +f+=m.ob().qd()+k,h=Math.max(h,n.Ad()+k)}if((c=$.Gr(a,"title"))&&c.enabled()&&(c=c.g("orientation")||$.lw(c),"top"!=c&&"bottom"!=c)){d=c=0;if(e=a.Na.Qd)c=e.Kd,d=e.Gd;e=a.jb.yi();e.top+=d;e.left+=c}}a.Xa=b}; +ix=function(a,b){var c=$.N(b.itemIndex);if((0,window.isNaN)(c))return null;var d=b.type;switch(d){case "mouseout":d="legenditemmouseout";break;case "mouseover":d="legenditemmouseover";break;case "mousemove":d="legenditemmousemove";break;case "mousedown":d="legenditemmousedown";break;case "mouseup":d="legenditemmouseup";break;case "click":d="legenditemclick";break;case "dblclick":d="legenditemdblclick";break;default:return null}c=a.g("inverted")?a.Ub.length-1-c:c;var e=null,f=window.NaN,h=a.Ub[c]; +if(h&&a.f)for(var k=0;kf?($.Da(a.f,c,~f),$.Da(a.b,b,~f)):(h=!(a.b[f]&b))?a.b[f]|=b:$.p(d)&&(a.b[f]=d);a.target.enabled()&&a.target.$().select(c)&&(a.target.eh()||"single"!=a.target.Xl()||(k?a.target.nl(b):$.p(d)&&!k&&$.sx(a,window.NaN)&&a.target.nl(d)),h?e=a.target.qk(b,e):$.p(d)&&(e=a.target.qk(d,e)))}return e}; +$.sx=function(a,b){if($.p(b)){if((0,window.isNaN)(b))return!$.ux(a,$.Do)&&!(a.Gc&$.Do);var c=$.vx(a,+b)}else c=a.Gc;return!(c&$.Do)};wx=function(a,b,c,d){if(!a.target.$().select(c))return d;var e=$.Na(a.f,c);b!=$.nm&&(0>e?($.Da(a.f,c,~e),$.Da(a.b,b,~e),a.Gc==$.nm&&(d=a.target.qk(b,d)),$.sx(a,window.NaN)&&!a.target.eh()&&"single"==a.target.Xl()&&a.target.nl(b)):a.b[e]|=b);return d}; +$.yx=function(a,b){var c=$.Co,d;if($.p(b)){if(!(b>=a.target.$().Hb())){var e=a.target.pq();if($.A(b))for($.Pa(b),d=b.length;d--;)e=wx(a,c,+b[d],e);else e=wx(a,c,+b,e);a.target.wm(e)}}else if(a.Gc&c)if(c==$.Co){for(d=a.b.length;d--;)$.xx(a,c,d)&&($.Ca(a.b,d,1),$.Ca(a.f,d,1));a.Gc=$.nm}else c==$.Do&&(a.b.length=0,a.f.length=0,a.Gc=$.nm);else{for(d=a.b.length;d--;)$.xx(a,c,d)&&($.Ca(a.b,d,1),$.Ca(a.f,d,1));a.Gc=c}};$.xx=function(a,b,c){return!(a.b[c]&=~b)}; +$.rx=function(a,b,c,d){var e=a.f[c];$.xx(a,b,c)?($.Ca(a.f,c,1),$.Ca(a.b,c,1),a.target.enabled()&&a.target.$().select(e)&&a.Gc==$.nm&&(d=a.target.qk($.nm,d))):a.target.enabled()&&a.target.$().select(e)&&a.Gc==$.nm&&(d=a.target.qk(a.b[c],d));return d};$.zx=function(a,b,c,d){if((0,window.isNaN)(c))return d;c=$.Na(a.f,c);0<=c&&(d=$.rx(a,b,c,d));return d};$.Ax=function(a,b){for(var c=[],d=0,e=a.b.length;dd){t?r=l[t-1]:r=f;f=new $.Qx;var u=r.kc.replace(q,"");q=r.kc+(c?" ":"");f.text(u);f.style(a.f);n=r.width();u=new $.I(h.left,h.top,n-m,h.height);m=n+=+e;f.Ta=u;f.eb=e;f.j=a.j;a.b.push(f);a.Ta.width=Math.max(a.Ta.width,u.width);a.Ta.height+=u.height}(f=l[l.length-1])&&1<=l.length&&f!= +r&&(u=f.kc.replace(q,""),h=f.Ta,l=new $.I(h.left,h.top,h.width-n,h.height),a.Ta.width=Math.max(a.Ta.width,l.width),a.Ta.height+=l.height,f=new $.Qx,f.text(u),f.Ta=l,f.style(a.f),f.j=a.j,a.b.push(f))}by(a,b)}; +by=function(a,b){var c,d=0;for(c=0;ch&&(d=a.g("from"),e=a.g("to"));f=b.transform(e,0);b=b.transform(d,1);e=Math.min(b,f);var k=Math.max(b,f);(0,window.isNaN)(e)||(0,window.isNaN)(k)||!(0<=k&&1>=e||a.i)||(a.i||(e=$.Za(e,0,1),k=$.Za(k,0,1)),b=a.ja(),d=a.Pp(),a.Ob()?(f=Math.floor(b.Va()-b.height*k),e=Math.ceil(b.Va()-b.height*e),h=b.tb(),k=b.cb(),c.moveTo(h,f).lineTo(k,f).lineTo(k,e).lineTo(h,e).close()):(f= +b.Va(),h=b.Vb(),e=Math.floor(b.tb()+b.width*e),k=Math.ceil(b.tb()+b.width*k),c.moveTo(e,f).lineTo(e,h).lineTo(k,h).lineTo(k,f).close()),a.i||c.clip(d.Ej(b)))}else $.il(2)};$.Wy=function(a){a.F||(a.F=$.qk(),$.Bu(a,a.F));return a.F};$.Yy=function(){$.Y.call(this);$.T(this.ua,[["stroke",0,1],["length",0,9],["position",0,9]]);this.path=$.qk();$.Bu(this,this.path)}; +$.Zy=function(a){if(!a.cp)switch(a.vh){case "top":a.cp=a.f1;break;case "right":a.cp=a.kT;break;case "bottom":a.cp=a.eT;break;case "left":a.cp=a.iT}return a.cp}; +$.$y=function(){this.ka();$.Y.call(this);this.Ga($.Er.axis);this.ci=[];this.Gk=[];this.Od={};this.Od.orientation="top";this.se=980;$.T(this.ua,[["width",this.se,9],["drawFirstLabel",this.se,9,0,function(){this.$d();this.ns()},this],["drawLastLabel",this.se,9,0,function(){this.$d();this.ns()},this],["staggerMode",this.se,9,0,this.$d,this],["overlapMode",this.se,9],["staggerMaxLines",0,0,0,function(){this.$d();this.ns();this.g("staggerMode")&&this.B(this.se,9)},this],["staggerLines",0,0,0,function(){this.$d(); +this.ns();this.g("staggerMode")&&this.B(this.se,9)},this],["orientation",this.se,9,0,this.ns,this],["stroke",this.se,9],["value",this.se,9,void 0,function(){null===this.g("value")?this.zh=void 0:this.zh=25;this.B(8)},this]]);this.da(!1)};$.az=function(a,b){if($.p(b)){var c=a.g("orientation")!=b;a.Od.orientation=b;c&&a.B(a.se)}}; +cz=function(a,b){var c=a.labels().enabled(),d=a.qb().enabled(),e=a.g("staggerMode");if(c||d)if(e)if(a.na)c=a.na;else if(e=a.labels(),(c=a.scale())&&e.enabled()){a.AJ=1;a.G=1;c=c.Ya().get();d=c.length;for(var f,h,k,l,m=0;m$.Oo(e)?a.TH:null,q=a.g("staggerMaxLines"),r=a.g("staggerLines"),t=a.g("drawFirstLabel"),u=a.g("drawLastLabel");e=[];for(m=0;mq?q:a.AJ}else a.G=r;if((null!==r||null!==q&&a.AJ>q)&&"no-overlap"==a.g("overlapMode")){for(f=0;fe&&(e=t);if(m&&!r)for(m=$.C(q)?q.qb:!q,c=k.yb().get(),l=0,b=m.length;lf&&(f=t);return a.j0(e,f,d)+h}; +ez=function(a,b){var c=a.scale();return $.A(b)?(c.transform(b[0],0)+c.transform(b[1],1))/2:c.transform(b,.5)};Tca=function(a,b,c,d,e){var f=$.p(e)?e:a.ob();e=$.p(e)?e:a.line.sb();var h=c?a.Ya():a.yb(),k=c?a.labels():a.qb();c=a.g("stroke");c=$.mp(c);b=ez(a,d[b]);d=k.g("position");h=$.Po(h,$.Oo(d));a=a.GM(f,b,c,h,e);return{value:{x:a.x,y:a.y}}}; +bz=function(a,b,c){var d=!1;switch(a.g("orientation")){case "top":case "bottom":d=b.left>c[0]||b.cb()c[1]||b.Va()c.start?1:a.startc.end?1:a.endc.start?a.sourceIndex>c.sourceIndex?c.end=a.start:(a.start=c.end,a.start>=a.end&&(a.enabled=!1)):a.startc.sourceIndex?(c.start=a.end,c.start>=c.end&&(c.enabled=!1)):a.end=c.start:a.sourceIndex>c.sourceIndex?(c.start=a.end,c.start>=c.end&&(c.enabled= +!1)):(a.end=c.start,a.start>=a.end&&(a.enabled=!1));return b})};$.rz=function(a){var b=new $.qz;b.N(b.oa);b.Yy(a);return b};$.sz=function(){$.Y.call(this);this.Ga("defaultGridSettings");this.j=null;this.GL="horizontal";this.Fa=this.Xb=this.Y=null;this.F={};this.aa=null;$.T(this.ua,[["stroke",16],["fill",4],["drawFirstLine",64],["drawLastLine",64],["isMinor",80,9]])};tz=function(a,b){$.J(b,$.Ws)||$.C(b)&&"range"==b.type?a.Hc($.Ws):($.J(b,$.Ts)||$.C(b)||null==a.Fa)&&a.Hc($.Ts)}; +$.uz=function(a,b){var c=!a.f&&a.GL!=b;a.GL=b;c&&a.B(64)};vz=function(a,b,c){var d=b?a.aa:a.pa;if($.p(c)){var e=c&&$.D(c.Ma)&&c.Ma(),f=(e="stock-scatter-date-time"==e||"stock-ordinal-date-time"==e)?c==d?null:c:$.ut(d,c,null,15,null,a.zg,a);if(f||null===c&&d)c=d==f,f||$.ur(d,a.zg,a),d=f,b?a.aa=d:a.pa=d,f&&!e&&f.da(c),c||a.B(20,9)}}; +$.wz=function(a,b){var c=a.g("fill");if($.D(c)){var d={index:b,grid:a,palette:a.dc()||a.Y.dc()};c=c.call(d)}d=b in a.F?a.F[b.toString()]:a.F[b.toString()]=a.b_();d.fill(c);return d};xz=function(){$.sz.call(this)};yz=function(){$.sz.call(this)};Az=function(){$.qf.call(this);this.ec=$.zz;this.F=this.j=null};$.Dz=function(a){a=$.oa(a);delete Bz[a];$.Jc(Bz)&&Cz&&Cz.stop()};Ez=function(){Cz||(Cz=new vw(function(){Wca()},20));var a=Cz;a.uq()||a.start()}; +Wca=function(){var a=(0,$.Sn)();$.Dc(Bz,function(b){b.tG(a)});$.Jc(Bz)||Ez()};$.Fz=function(a,b,c,d){Az.call(this);if(!$.A(a)||!$.A(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.b=a;this.f=b;this.duration=c;this.K=d;this.coords=[];this.Ld=0};Gz=function(a,b){$.D(a.K)&&(b=a.K(b));a.coords=Array(a.b.length);for(var c=0;cd.bP&&(d.bP=h),he&&(e=~e-1);e=$.Za(e,0,d-1);c=$.Na(c,f,h);0>c&&(c=~c);c=$.Za(c,0,d-1);b.inverted()&&(d=e,e=c,c=d)}else e=c=window.NaN;return[e,c,e,c]};cA=function(a){var b=[],c;for(c in a)b.push(a[c]);return b}; +eA=function(a,b,c){var d=a.fc||$.rn(0,0,0,0),e=d.left,f=d.top,h=d.width,k=d.height;d=$.Zj(a.O().Ka());b-=d.x;c-=d.y;d=a.Ks?(k-(c-f))/k:(b-e)/h;if(be+h||cf+k)return null;e=[];var l=a.nU();f=0;for(h=l.length;f=-e&&c<=1-e}; +$.JA=function(a,b){var c=a.bu(),d=$.p(b)?b:a.oa,e=$.p(b);a.im(d.xGrids,a.lm,c,e);a.im(d.yGrids,a.nm,c,e);a.im(d.xMinorGrids,a.Qr,c,e);a.im(d.yMinorGrids,a.Tr,c,e)};KA=function(a,b){for(var c=0;c(a.prevValue-a.aa||1)*(b-a.aa||1)};bA=function(a,b){return!!((Number(a)||0)&(b||255))}; +TA=function(a){$.V.call(this);this.Sa=a;this.b=null;$.T(this.ua,[["start",0,1],["point",0,1],["updatePoint",0,1],["finish",0,1],["needsZero",0,4],["needsWidth",0,4],["yValues",0,4]])};WA=function(a,b,c,d,e){if(a){var f=void 0;if(e&&(f=c.o("shapes"),!f))return;b=c?new UA(b,c,d||$.nm,f):new VA(b);a.call(b,b)}};VA=function(a){this.series=a;this.seriesState=a.fk()}; +UA=function(a,b,c,d){VA.call(this,a);this.b=b;for(var e=a.Be(),f=0;fn.G[w]?m=n.F[w][n.G[w]]:n.F[w].push(m=v.kS());n.G[w]++;n.i[w].push(m);m=aB(n,q,r,t,u,m,!0);f[l]=m}a.Jb(a.X,f,b);return f}; +cB=function(a,b,c){for(var d in c){var e=a.f[d],f=c[d],h=e.fill(a.X,b),k=e.stroke(a.X,b);f.fill(h);f.stroke(k);e.Ib&&("none"==f.fill()&&"none"==f.stroke()?f.visible(!1):f.visible(!0));e.Ib||$A(a,h,k)}a.Jb(a.X,c,b)};$A=function(a,b,c){a=a.X.$();$.p(b)&&a.o("fill",b);$.p(c)&&a.o("stroke",c)};$.dB=function(a,b,c,d,e,f){$.YA.call(this,a,b,c,d,e,f)};$.eB=function(a,b,c,d,e,f){$.YA.call(this,a,b,c,d,e,f);this.j={}}; +fB=function(a,b,c,d,e){var f=void 0;if(d){var h=a.X.$();f=$.Eo(c);var k=h.get(f);(h=k?k[d]:h.get($.om(c,d)))?f=h:(k=a.X.kd(),h=a.X[f]()[d](),$.D(h)||k?h!=$.oq.themes.defaultTheme.chart.defaultSeriesSettings.base[f][d]||k?f=e?b.fill(a.X,c):b.stroke(a.X,c):(a={sourceColor:a.X.g("color")},f=h.call(a)):f=h)}return f}; +gB=function(a,b,c){c=c||a.f;var d=a.X.$(),e,f,h="",k;for(k in c){var l=a.f[k];var m=l.Zb;var n=fB(a,l,b,l.Yb,!0);m=fB(a,l,b,m);l.Ib||(n&&$.km(n)&&(e=n),m&&$.km(m)&&(f=m));h+=k+$.$l(n)+$.$l(m)}$A(a,e,f);d.o("shapeNames",c);return h};hB=function(a){$.V.call(this);this.Sa=a;this.Fm="both";this.ba=null;this.i=this.j=void 0;this.K=null;this.b=this.f=void 0;this.G=this.aa=10;this.F=this.P="#1D8BD1"};iB=function(a){return $.J(a,$.vt)&&!$.J(a,$.xt)&&"none"==a.jn()}; +jB=function(a){var b=a.hF(),c=a.iF(),d=a.jF(),e=a.bF(),f=a.cF();a=a.fF();e=$.p(f)||$.p(a)||$.Bo(e)||!$.Ko(e);return $.p(c)||$.p(d)||$.Bo(b)||!$.Ko(b)||e};$.kB=function(){Bv.call(this);this.Pa={};$.T(this.ua,[["text",20,9]])}; +$.mB=function(a,b,c,d){$.Y.call(this);this.ya=a;this.jf=b;this.Od={};this.Od.pointWidth="90%";this.Od.isVertical=this.ya.xa();this.Od.minPointLength=0;this.gg=!1;this.kn={};this.eD=this.nA=null;this.re=c;this.ti=null;this.Qx=0;this.kl=null;this.Vj=[];this.eq=!1;this.Cu=new TA(this);$.K(this.Cu,this.Vja,this);$.T(this.ua,[["color",2048,65,4294967295],["xPointPosition",1024,1,4294967295],["pointWidth",1024,1,1024],["maxPointWidth",1024,1,1024],["minPointLength",1024,5,1024,this.yE],["connectMissingPoints", +1024,1,$.lB],["displayNegative",1024,5,2],["stepDirection",1024,1,131072],["isVertical",1024,5,4294967295]]);this.SH();this.Mz(d,!0)};$.nB=function(a){var b=1E-5*a.Wq;b=a.jf.yM(a)+b;a.zh=b}; +oB=function(){return[["fill",0,0,4294967295],["negativeFill",0,0,4294967295],["risingFill",0,0,4294967295],["fallingFill",0,0,4294967295],["stroke",0,0,4294967295],["lowStroke",0,0,4294967295],["highStroke",0,0,4294967295],["lowFill",0,0,4294967295],["highFill",0,0,4294967295],["negativeStroke",0,0,4294967295],["risingStroke",0,0,4294967295],["fallingStroke",0,0,4294967295],["medianStroke",0,0,4294967295],["stemStroke",0,0,4294967295],["whiskerStroke",0,0,4294967295],["hatchFill",0,0,4294967295], +["negativeHatchFill",0,0,4294967295],["risingHatchFill",0,0,4294967295],["fallingHatchFill",0,0,4294967295],["highHatchFill",0,0,4294967295],["lowHatchFill",0,0,4294967295],["whiskerWidth",0,0,256],["type",0,0,8192],["size",0,0,8192],["labels",0,0],["minLabels",0,0],["maxLabels",0,0],["markers",0,0],["outlierMarkers",0,0]]};pB=function(a){return a.check(128)&&a.check(2097152)};$.XA=function(a){return!!a.Cu.g("needsZero")};$.qB=function(a,b){a.Od.pointWidth=String(100*b)+"%"}; +$.rB=function(a,b){a.Od.xPointPosition=b};$.sB=function(a,b){a.Od.type=b;a.ca.Eb().VF=b;a.check(8192)&&a.B(1024)};$.tB=function(a){a.pe||(a.pe=new $.Nw);return a.pe};$.vB=function(a,b,c,d){if(!a)return ada;var e=$.oa(b)+"|"+a+"|"+c+(d?"|"+d:"");d=d||a;var f=uB[e];f||(uB[e]=f=function(e,f,l){l=$.lm(l);return l!=$.nm&&c&&(l=e.sc(a,l,f,b,!1,d),$.p(l))?l:e.sc(a,0,f,b,!1,d)});return f};ada=function(){}; +wB=function(a,b,c,d,e,f){b.ka();if(a.check(e)&&(!1!==b.enabled()||c||d)){if(b.O(a.S1()),a.J(f))return b.clear(),b.ja(a.fa),!0}else b.clear(),b.O(null);b.W();b.da(!1);return!1};xB=function(a,b){var c=b[0],d=b[1]||c;return c.oH()[a]||d.oH()[a]||b[2]&&$.p(b[2][a])||b[3]&&$.p(b[3][a])}; +zB=function(a,b,c,d){var e=b[0],f=e.ip(c);f||(f=e.add(void 0,c));f.jc(d);f.Hi();c=b[1]||e;d=a.$();var h=d.o($.J(a.Rf,$.dB)?"shapes":"shapeNames"),k=a.rr(d.ma());a.Rf.VB(k,h);d=d.o(a.check(8)?"markerStroke":"markerFill");$.p(d)&&(a=e==a.ca.el()?yB(a,d):a.Zv(d),!xB("fill",b)&&$.km(a)&&(f.oJ(a),a=$.Xl(a),!xB("stroke",b)&&$.km(a)&&f.pJ(a)));$.oy(f,c);f.td(b[2],b[3]);return f};bda=function(a,b){(0,$.Pe)(b,function(a){$.J(a,$.Zu)?this.hT(a):a.W();a.da(!1)},a)}; +cda=function(a,b,c,d,e,f,h){c=zB(a,b,c,e);a=zB(a,b,d,f);h&&(c.W(),a.W());return[c,a]};yB=function(a,b){return $.p(b)?b:$.jm("fill",1,!1)(a,$.nm,!0)};dda=function(a,b){return+$.Hc(a.QH,function(a){return(0,$.Yw)(a,function(a){return a==b})})};AB=function(a){a&&(a=a.o("shared"))&&(a.jB=window.NaN,a.dB=window.NaN)}; +CB=function(a){var b=a.gg;if($.da(b)){b=a.Lx.clone();b=$.dp(b,1);var c=b.top,d=b.Va();c=Math.floor(c);d=Math.ceil(d);b.top=c;b.height=d-c;c=b.left;d=b.cb();c=Math.floor(c);d=Math.ceil(d);b.left=c;b.width=d-c;a.check($.BB)&&(b=b.clone(),a=a.ya,c=a.Mh,b.top-=c,b.height+=c,b.width+=a.oi)}return b};$.DB=function(a,b,c){c=c||a.$();b.Li(a.DS(c)).lg(c).Im(a.sF).Dl(a.YT(c));return $.yv(b,a.ym(b,c))};EB=function(a){this.Sa=a;$.Lr.call(this,a.data())}; +$.FB=function(a,b,c,d,e){$.mB.call(this,a,b,c,d);this.state=new $.qx(this);this.Bka=e;$.Dq(this.ua,"xMode",1024,5,4294967295);this.data(null)}; +$.GB=function(a,b,c){if(b){var d={},e=-window.Infinity;b=function(a,b){var c=b.data.x;if(c in d){var h=a[d[c]];a[d[c]]=b}else d[c]=a.length,a.push(b),cc&&(c=~c,0b-a.pd.data[c-1].data.x&&c--)),c):-1}return a.vG.find("x",b)}; +$.KB=function(a,b,c,d,e){var f=a.$();f.reset();for(var h=[];f.advance();){var k=void 0,l=a,m=f,n=b,q=c,r=d,t=e;if($.J(l.Rf,$.dB)&&(k=m.o(l.Rf.P)))a:{var u=void 0;var v=k,w=n;l=q;var x=r,y=t;for(u in v){var B=v[u];if($.J(B,$.hg)&&(B=B.sb(),B.left<=w+x&&w<=B.left+B.width&&B.top<=l+y&&l<=B.top+B.height)){u=!0;break a}}u=!1}else u=m.o(l.Ah.zb+"X"),v=m.o(l.Ah.zb),l.Ah.zb==l.Ah.Ab?u=n<=u&&u<=n+r&&q<=v&&v<=q+t:(w=m.o(l.Ah.Ab+"X"),l=m.o(l.Ah.Ab),u=$.jn([u,v,w,l],[n,q,n+r,q,n+r,q+t,n,q+t]));!u&&(k=m.o("marker"))&& +(u=k.Vd().sb().so(new $.I(n,q,r,t)));u&&h.push(f.ma())}return h};LB=function(a,b){return $.p(b)?(a.pka=!!b,a):a.pka||!1};$.MB=function(a,b,c){if(!a.enabled())return a;$.A(b)?(c||a.ie(),a.state.Lh($.Do,b,c?void 0:$.Co)):$.ea(b)&&a.state.Lh($.Do,b,c?void 0:$.Co);return a}; +$.OB=function(a){$.Y.call(this);this.Ga($.Er.scroller);this.Ja=!1;this.vB=this.dO=this.G=this.ba=this.P=this.b=this.f=this.Aa=null;this.F=0;this.j=NB;this.fa=new $.I(0,0,0,0);this.i=new $.I(0,0,0,0);this.na=this.ea=this.Ba=null;this.Ha=0;this.Xa=this.eb=this.$a=!1;this.Wa=this.aa=null;this.rb=!!a;$.T(this.ua,[["height",4,9],["minHeight",4,9],["maxHeight",4,9],["orientation",196,9],["inverted",16,1],["autoHide",256,9],["fill",16,1],["selectedFill",16,1],["outlineStroke",16,1],["allowRangeChange",0, +0]])};PB=function(a){return a.Ob()?"ew-resize":"ns-resize"};$.QB=function(a,b,c){b=$.Za(Math.round(b*NB),0,NB);c=$.Za(Math.round(c*NB),0,NB);if(b>c){var d=b;b=c;c=d}if(b!=a.F||c!=a.j)a.F=b,a.j=c,a.B(16,1)};RB=function(a){a.Ja||(a.Aa.hc(a.f),a.Aa.hc(a.b),a.Ja=!0)};SB=function(a){a.Ja&&a.K().g("autoHide")&&!a.Ha&&!a.$a&&(a.Aa.removeChild(a.f),a.Aa.removeChild(a.b),a.Ja=!1)}; +TB=function(a,b,c){a=a.K();a.g("enabled")?c?(c=a.lb().g("fill"),a=a.lb().g("stroke")):(c=a.Qa().g("fill"),a=a.Qa().g("stroke")):(c=$.im,a="none");b.fill(c);b.stroke(a)};UB=function(a,b,c,d,e){return a.dispatchEvent(a.L3(c,($.p(d)?d:a.F)/NB,($.p(e)?e:a.j)/NB,b))}; +WB=function(a,b,c){c=VB(a,b,c);var d=a.fa;switch(a.g("orientation")){case "right":case "left":d=(d.top+d.height-c)/d.height;break;default:d=(c-d.left)/d.width}a.g("inverted")&&(d=1-d);if((c=a.g("allowRangeChange"))&&b==a.f)c=d,d=a.j/NB,b="thumb-drag";else if(c&&b==a.b)c=a.F/NB,b="thumb-drag";else{var e=(a.j-a.F)/NB/2;c=d-e;d+=e;b=!0===b?"selected-range-drag":"background-click"}c=$.Za(Math.round(c*NB),0,NB);d=$.Za(Math.round(d*NB),0,NB);c==d&&(d+=dd&&(e=a.f,a.f=a.b,a.b=e,e=a.Ba,a.Ba=a.ea, +a.ea=e,e=c,c=d,d=e);c==a.F&&d==a.j||!UB(a,b,"scrollerchange",c,d)||(a.F=c,a.j=d,a.B(16,1))};VB=function(a,b,c){var d=a.fa,e=a.Ob();a=$.da(b)||!a.g("allowRangeChange")?(a.j-a.F)/NB*(e?d.width:d.height)/2:0;return e?$.Za(c,d.left+a,d.left+d.width-a):$.Za(c,d.top+a,d.top+d.height-a)};XB=function(a,b){var c=(c=a.g("allowRangeChange"))&&b==a.f?a.F:c&&b==a.b?a.j:(a.F+a.j)/2;c/=NB;a.g("inverted")&&(c=1-c);var d=a.fa;return a.Ob()?d.left+d.width*c:d.top+d.height*(1-c)}; +YB=function(a,b,c){$.ag.call(this,b.ia());this.i=a;this.b=c?b:null;this.Qj=void 0;this.rs=(0,$.pa)(function(){this.Qj=void 0;WB(this.i,this.b||!0,this.ba)},this);$.bg(this);this.wa("end",this.Daa)};ZB=function(a){$.V.call(this);this.Ga($.Er.thumbs);this.i=a;$.T(this.ua,[["enabled",80,1],["autoHide",16,1]]);a={};$.T(a,[["fill",16,1],["stroke",16,1]]);this.ca=new $.uy(this,a,$.nm);$.W(this,"normal",this.ca);this.za=new $.uy(this,a,$.Co);$.W(this,"hovered",this.za)};$B=function(){$.OB.call(this)}; +$.aC=function(){$.OB.call(this,!0);this.af="after-axes";$.Dq(this.ua,"position",20,9)};bC=function(a,b){this.F=b;this.ra=a;this.i=0;this.b=1;this.j=!0;this.f=null}; +cC=function(a){var b=a.ra;$z(b);b.J(65536)&&(b.Tq().f||b.Uq().f)&&b.pb();if(a.f)if((b=a.f.scale)||(b=a.ra,b=a.F?b.Ra():b.bb()),a.f.count&&$.J(b,$.$t))b=a.f.count/b.values().length,a.f.ofa?a.BB(1-b,1):a.BB(0,b);else if($.p(a.f.start)&&$.p(a.f.end)&&b){var c=it(b,b.transform(a.f.start,0)),d=it(b,b.transform(a.f.end,1));c>d&&(c=it(b,b.transform(a.f.end,0)),d=it(b,b.transform(a.f.start,1)));a.BB(c,d)}else a.f=null}; +$.dC=function(a){$.EA.call(this,$.p(a)?a:!0);this.Ga("cartesianBase");this.Uc=new bC(this,!0);this.bg=new bC(this,!1);$.T(this.ua,[["zAngle",4,9],["zAspect",4,9],["zDistribution",131076,9],["zPadding",4,9]])};eC=function(a,b){var c="before-axes"==a.g("position");a.padding(0);a.ja(b);var d=a.Ob(),e=window.NaN;c?e=d?b.height-a.zd().height:b.width-a.zd().width:b=a.zd();return{y0:b,C5:e}}; +fC=function(a,b,c,d){if("before-axes"==c.g("position"))switch(c.g("orientation")){case "top":c.padding().top(b[0]+(a.eb||0));c.padding().bottom(0);b[0]+=d;break;case "bottom":c.padding().top(0);c.padding().bottom(b[2]+(a.Ha||0));b[2]+=d;break;case "left":c.padding().left(b[3]+(a.Ja||0));c.padding().right(0);b[3]+=d;break;case "right":c.padding().left(0),c.padding().right(b[1]+(a.$a||0)),b[1]+=d}c.Ob()?(c.padding().left(b[3]),c.padding().right(b[1])):(c.padding().top(b[0]),c.padding().bottom(b[2])); +return b};$.gC=function(a,b){this.f={};this.b=[];this.i=0;var c=arguments.length;if(1=a.b||e>=a.b&&u<=a.b;v?(v=FC(a,d,e,m,n,t,u),l=v.dP,a.f("c",l[2],l[3],l[4],l[5],"bc",l[4],a.i), +GC(a,v),DC(a),a.f("bs",l[4],a.i,l[4],l[5],"c",l[6],l[7],l[8],l[9],"c",q,r,f,h),k.push(l[0],l[1],l[2],l[3],l[4],l[5]),k.push(l[4],l[5],l[6],l[7],l[8],l[9]),k.push(t,u,q,r,f,h)):(v=FC(a,t,u,q,r,f,h),l=v.dP,a.f("c",m,n,t,u,"c",l[2],l[3],l[4],l[5],"bc",l[4],a.i),GC(a,v),DC(a),a.f("bs",l[4],a.i,l[4],l[5],"c",l[6],l[7],l[8],l[9]),k.push(d,e,m,n,t,u),k.push(l[0],l[1],l[2],l[3],l[4],l[5]),k.push(l[4],l[5],l[6],l[7],l[8],l[9]))}else a.f("c",m,n,t,u,"c",q,r,f,h),k.push(d,e,m,n,t,u,t,u,q,r,f,h);a.ba=(b-f)*a.Ja; +a.ea[0]=a.j[0]*a.ba;a.ea[1]=a.j[1]*a.ba;d=k;a.na=a.F;a.Ba=a.G;a.F=b;a.G=c;break;case 2:if(a.F==b&&a.G==c)break;f=a.na;h=a.Ba;d=a.F;k=a.G;EC(a,f,h,d,k,b,c);e=[];n=(d-f)*a.Ja;m=d-a.j[0]*n;n=k-a.j[1]*n;a.P?(f=FC(a,f,h,m,n,d,k),h=f.dP,a.f("bs",h[0],a.i,h[0],h[1],"c",h[2],h[3],h[4],h[5],"bc",h[4],a.i),GC(a,f),DC(a),a.f("bs",h[4],a.i,h[4],h[5],"c",h[6],h[7],h[8],h[9]),e.push(h[0],h[1],h[2],h[3],h[4],h[5]),e.push(h[4],h[5],h[6],h[7],h[8],h[9])):(a.f("bs",f,a.i,f,h,"c",m,n,d,k),e.push(f,h,m,n,d,k));a.ba= +(b-d)*a.Ja;a.ea[0]=a.j[0]*a.ba;a.ea[1]=a.j[1]*a.ba;d=e;a.na=a.F;a.Ba=a.G;a.F=b;a.G=c;a.ec=3;break;case 1:if(a.na==b&&a.Ba==c)break;a.F=b;a.G=c;a.ec=2;break;case 0:a.na=b,a.Ba=c,a.ec=1}return d}; +IC=function(a){var b=null;switch(a.ec){case 3:var c=a.na,d=a.Ba,e=a.F,f=a.G;b=[];var h=c+a.ea[0];var k=d+a.ea[1];a.P?(c=FC(a,c,d,h,k,e,f),d=c.dP,a.f("c",d[2],d[3],d[4],d[5],"bc",d[4],a.i),GC(a,c),DC(a),a.f("bs",d[4],a.i,d[4],d[5],"c",d[6],d[7],d[8],d[9],"bc",d[8],a.i),b.push(d[0],d[1],d[2],d[3],d[4],d[5]),b.push(d[4],d[5],d[6],d[7],d[8],d[9])):(a.f("c",h,k,e,f,"bc",e,a.i),b.push(c,d,h,k,e,f));if(a.Wh.length){for(c=0;ca.Ja?-1:1,a.j[1]=0):KC(a.j,a.Xa[0],a.Xa[1],a.$a[0],a.$a[1])}; +FC=function(a,b,c,d,e,f,h){var k=0,l=0,m=0,n=0,q=0,r=0,t={};if($.A(a.b)){var u=[];var v=!1;for(var w=a.b.length-1;0=wa&&(wa=xn(xn(O,x,wa),xn(x,y,wa),wa),B.x==F.x?G.y<=wa.y&&wa.y<=M.y&&w.push(wa):B.y==F.y?G.x<=wa.x&&wa.x<=M.x&&w.push(wa):wa.x>=G.x&&wa.y>=G.y&&wa.x<=M.x&&wa.y<=M.y&&w.push(wa));F=(O=w[0])?nn(b,c,d,e,f,h,O.x,O.y):.5}G=1-F;x=b*G+d*F;y=c*G+e*F;B=d*G+f*F;F=e*G+h*F;O?(d=O.x,e=O.y):e=d=window.NaN;t.dP=[b,c,x,y,d,e,B,F,f,h];$.A(a.b)&&(G=1-v,x=k*G+m*v,y=l*G+n*v,O?(d=O.x,e=O.y):e=d=window.NaN,u.push(d,e,m*G+q*v,n*G+r*v,q,r),t.$da=u,t.Wh||(t.Wh=[]),t.Wh.push(k,l,x,y, +d,e));return t};GC=function(a,b){var c=b.$da,d=b.Wh;if(c)for(var e=c.length-1;0>>0);aaa=0;$.Sn=Date.now||function(){return+new Date};var jk,wk=null;$.H(ta,Error);ta.prototype.name="CustomError";var ue;$.za=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if($.z(a))return $.z(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;cc&&(c=Math.max(0,a.length+c));if($.z(a))return $.z(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1}; +$.Pe=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=$.z(a)?a.split(""):a,f=0;f>>0).toString(16);$.ac.prototype.b="ac_uid_"+(1E9*Math.random()>>>0);var iaa,jaa,kaa,laa,maa,naa,haa,rc,qc,oaa;$.vc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};iaa=/&/g;jaa=//g;laa=/"/g;maa=/'/g;naa=/\x00/g;haa=/[\x00&<>"']/;rc={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"};qc={"'":"\\'"};oaa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Bc;a:{var YD=$.fa.navigator;if(YD){var ZD=YD.userAgent;if(ZD){Bc=ZD;break a}}Bc=""};var Rc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Yc[" "]=$.ia;var Nca,lda,mda,nda,oda;$.yd=$.Cc("Opera");$.hd=$.Uc();$.Rp=$.Cc("Edge");$.kda=$.Rp||$.hd;$.gd=$.Cc("Gecko")&&!(-1!=Bc.toLowerCase().indexOf("webkit")&&!$.Cc("Edge"))&&!($.Cc("Trident")||$.Cc("MSIE"))&&!$.Cc("Edge");$.xd=-1!=Bc.toLowerCase().indexOf("webkit")&&!$.Cc("Edge");$.Ad=$.Cc("Macintosh");$.ZC=$.Cc("Windows");Nca=$.Cc("Linux")||$.Cc("CrOS");lda=$.Cc("Android");mda=Wc();nda=$.Cc("iPad");oda=$.Cc("iPod");$.pda=Xc(); +a:{var $D="",aE=function(){var a=Bc;if($.gd)return/rv:([^\);]+)(\)|;)/.exec(a);if($.Rp)return/Edge\/([\d\.]+)/.exec(a);if($.hd)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if($.xd)return/WebKit\/(\S+)/.exec(a);if($.yd)return/(?:Version)[ \/]?(\S+)/.exec(a)}();aE&&($D=aE?aE[1]:"");if($.hd){var bE=$c();if(null!=bE&&bE>(0,window.parseFloat)($D)){$.ad=String(bE);break a}}$.ad=$D}var qaa={},cE;var dE=$.fa.document;cE=dE&&$.hd?$c()||("CSS1Compat"==dE.compatMode?(0,window.parseInt)($.ad,10):5):void 0; +var cd=cE;var saa={0:"Can't find an error message that corresponds to the specified error code",1:"Requested stage type is not supported",2:"Container should be defined to render stage",3:"Stage should have a DOM element",4:"Unable to set the parent component",5:"Trying to perform an operation with the disposed element",6:"Synchronous rendering didn't clean up all dirty states",7:"Can't add an element constructed by another Stage",8:"Wrong arguments passed to swapChildren",9:"Path must start with moveTo command", +10:"Method must be implemented",11:"Missing required parameter",12:"Parameter type mismatch",13:"Required parameter is null or undefined",14:"Invalid number of parameters",15:"Sorry, this feature in not supported in VML oriented browsers"};var uaa=!$.hd||$.dd(9),Xd=!$.hd||$.dd(9),qda=$.hd&&!$.bd("9"),zaa=function(){if(!$.fa.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});$.fa.addEventListener("test",$.ia,b);$.fa.removeEventListener("test",$.ia,b);return a}();var md=0,nd={};$.od.prototype.md=!1;$.od.prototype.ld=function(){if(!this.md&&(this.md=!0,this.R(),0!=md)){var a=$.oa(this);if(0!=md&&this.bv&&0=a.keyCode)a.keyCode=-1}catch(b){}};$.Bd.prototype.H1=ba(0);var Dd="closure_listenable_"+(1E6*Math.random()|0),waa=0;Hd.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.b[f];a||(a=this.b[f]=[],this.f++);var h=Jd(a,b,d,e);-1>>0);$.E("acgraph.events.listen",$.Ld);$.E("acgraph.events.listenOnce",Kd);$.E("acgraph.events.unlisten",$.Yd);$.E("acgraph.events.unlistenByKey",Zd);$.E("acgraph.events.removeAll",$.$d);var Baa=!$.hd||$.dd(9),Caa=!$.gd&&!$.hd||$.hd&&$.dd(9)||$.gd&&$.bd("1.9.1"),eE=$.hd&&!$.bd("9"),Daa=$.hd||$.yd||$.xd;$.he.prototype.Ay=!0;$.he.prototype.cu=function(){return this.b};$.he.prototype.toString=function(){return"Const{"+this.b+"}"};$.ge={};$.ie("");$.ke.prototype.Ay=!0;$.ke.prototype.cu=function(){return this.f};$.ke.prototype.gV=!0;$.ke.prototype.b=ba(2);$.je={};$.le("about:blank");$.ne.prototype.Ay=!0;$.me={};$.ne.prototype.cu=function(){return this.b};$.rda=$.oe("");$.fE=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g");$.sda=RegExp("\\b(hsl|hsla|rgb|rgba|matrix|(rotate|scale|translate)(X|Y|Z|3d)?)\\([-0-9a-z.%, ]+\\)","g");$.qe.prototype.gV=!0;$.qe.prototype.b=ba(1);$.qe.prototype.Ay=!0;$.qe.prototype.cu=function(){return this.f};$.pe={};$.re("",0);$.re("",0);$.re("
",0);var Be={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},Eaa={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},mf={IMG:" ",BR:"\n"};$.g=se.prototype;$.g.Za=function(a){return $.ze(this.b,a)};$.g.getElementsByTagName=function(a,b){return(b||this.b).getElementsByTagName(String(a))}; +$.g.Ac=function(a,b,c){return Le(this.b,arguments)};$.g.createElement=function(a){return $.Re(this.b,a)};$.g.appendChild=$.Se;$.g.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; +$.g.Gi=$.Ve;$.g.Wga=$.We;$.g.Sl=$.Ze;$.g.U1=$.$e;$.g.ZH=$.af;$.H(nf,$.od);var gE=[];$.g=nf.prototype;$.g.wa=function(a,b,c,d){$.A(b)||(b&&(gE[0]=b.toString()),b=gE);for(var e=0;ethis.P)if(this.dispatchEvent(new dg("start",this,a.clientX,a.clientY,a)))this.kp=!0;else{this.md||this.dy(a);return}}c=cg(this,b,c);b=c.x;c=c.y;this.kp&&this.dispatchEvent(new dg("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(eg(this,a,b,c),a.preventDefault())}}; +$.g.cja=function(a){var b=cg(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;eg(this,a,b.x,b.y)};$.g.VA=function(a){var b=this.f,c=(0,window.isNaN)(b.left)?null:b.left;b=(0,window.isNaN)(b.width)?0:b.width;return Math.min(null!=c?c+b:window.Infinity,Math.max(null!=c?c:-window.Infinity,a))};$.g.My=function(a){var b=this.f,c=(0,window.isNaN)(b.top)?null:b.top;b=(0,window.isNaN)(b.height)?0:b.height;return Math.min(null!=c?c+b:window.Infinity,Math.max(null!=c?c:-window.Infinity,a))}; +$.g.ar=function(){this.deltaX=this.target.offsetLeft;this.deltaY=this.target.offsetTop};$.g.ls=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};$.H(dg,td);$.H(fg,$.ag);$.g=fg.prototype;$.g.Tja=function(){return this.i.dispatchEvent("earlycancel")};$.g.LO=function(a){return this.i.dispatchEvent(new dg(a.type,this,a.clientX,a.clientY,a.EC,a.left,a.top,a.j))};$.g.LX=function(a){this.f=a||new $.I(window.NaN,window.NaN,window.NaN,window.NaN)};$.g.ar=function(){this.deltaX=this.i.E1();this.deltaY=this.i.G1()}; +$.g.VA=function(){this.b[0]=this.deltaX;this.b[1]=this.deltaY;if(!(0,window.isNaN)(this.f.left)||!(0,window.isNaN)(this.f.top)){var a=this.i.parent().Ig();a&&og(this.i.parent()).transform(this.b,0,this.b,0,1);var b=this.f,c=(0,window.isNaN)(b.left)?null:b.left,d=(0,window.isNaN)(b.width)?0:b.width,e=(0,window.isNaN)(b.top)?null:b.top;b=(0,window.isNaN)(b.height)?0:b.height;d-=this.i.Ad();b-=this.i.qd();b=null!=e?e+b:window.Infinity;e=null!=e?e:-window.Infinity;this.b[0]=Math.min(null!=c?c+d:window.Infinity, +Math.max(null!=c?c:-window.Infinity,this.b[0]));this.b[1]=Math.min(b,Math.max(e,this.b[1]));a&&a.transform(this.b,0,this.b,0,1)}return this.b[0]};$.g.My=function(){return this.b[1]};$.g.ls=function(a,b){var c=og(this.i.parent());if(c){var d=[a,b];c.transform(d,0,d,0,1);a=d[0];b=d[1]}this.i.setPosition(a,b)};$.H($.hg,$.qf);var gg=4294967295;$.g=$.hg.prototype;$.g.DG=!1;$.g.YC=!1;$.g.mx=null;$.g.nx=null;$.g.zv=null;$.g.Av=null;$.g.rw=!1;$.g.VC=null;$.g.iE=null;$.g.Jd=null;$.g.Y=null;$.g.lB=null;$.g.hj=!0;$.g.ti=null;$.g.QL=!1;$.g.Qd=null;$.g.XG=null;$.g.UY=0;$.g.jl=506631;$.g.XC=0;$.g.id=function(a){if($.p(a))return a=a||"",this.fe!=a&&(this.fe=a,this.Qb(2048)),this;$.p(this.fe)||this.id(bc($.ac.vd(),this));return this.fe};$.g.Ka=function(){var a=this.parent();return a?a.Ka():null};$.g.ia=function(){return this.Jd}; +$.g.parent=function(a){if($.p(a)){if(a){if(a!=this.Y){var b=this.Ka();b=b&&b!=a.Ka();a.hc(this);b&&this.EO()}}else this.remove();return this}return this.Y};$.g.EO=function(){var a=this.clip();a&&a.id(null);this.Qb(536)};$.g.dN=function(){return!!this.Y};$.g.remove=function(){this.Y&&this.Y.removeChild(this);return this};$.g.title=function(a){return $.p(a)?(this.nx!=a&&(this.nx=a,this.Qb(65536)),this):this.nx};$.g.ZS=function(a){return $.p(a)?(this.Av!=a&&(this.Av=a,this.Qb(131072)),this):this.Av}; +$.g.Dd=function(a,b){return $.p(b)?(this.BC[a]!==b&&(this.BC[a]=b,this.Qb(262144)),this):a in this.BC?this.BC[a]:$.mg().getAttribute(this.Jd,a)};$.g.cursor=function(a){return $.p(a)?(this.VC=a,this.sG(),this):this.VC};$.g.sG=function(){this.Qb(4096)};$.g.yr=function(){return!!this.XC};$.g.Vf=function(a){return!!(this.XC&a)};$.g.suspend=function(){this.FV=!0};$.g.resume=function(){this.FV=!1;this.Qb(this.FP);this.FP=0}; +$.g.Qb=function(a){if(a&=this.jl)this.FV?this.FP|=a:(this.XC|=a,this.Y&&this.Y.Qb(64),a=this.Ka(),!a||a.yf()||a.wN()||this.wN()||this.Td())};$.g.gl=function(a){this.Y&&this.Y==a||(this.lB?this.lB==a&&(this.lB=null):this.lB=this.Y,this.Y=a,this.kb(a));return this};$.g.qv=$.ia;$.g.Mr=function(){this.sV=this.XG=null;this.$d();this.Qb(4);ng(this)};$.g.Uy=function(){this.XG=null;this.$d();$.mg().OI()&&this.Qb(256);ng(this)};$.g.Ig=function(){if(!this.XG){var a=this.Y?this.Y.Ig():null;this.XG=yb(a,this.Qd)}return this.XG}; +$.g.rotate=function(a,b,c){this.qv();a=$.Kb($.bb(a),b||0,c||0);this.Qd?$.Hb(this.Qd,a):this.Qd=a;this.Mr();return this};$.g.Du=function(a,b){var c=Lb(this.sb(),b||"center");return this.rotate(a,c[0],c[1])};$.g.JE=function(a,b,c){return this.rotate(a-this.tD(),b,c)};$.g.gP=function(a,b){return this.Du(a-this.tD(),b)};$.g.translate=function(a,b){this.qv();this.Qd?this.Qd.translate(a,b):this.Qd=(new $.Db).setTransform(1,0,0,1,a,b);this.Mr();return this}; +$.g.setPosition=function(a,b){var c=[a,b,this.Gh(),this.As()];this.Qd&&$.Jb(this.Qd).transform(c,0,c,0,2);return this.translate(c[0]-c[2],c[1]-c[3])};$.g.uka=function(a,b){this.qv();if(this.Qd){var c=this.Qd.Kd,d=this.Qd.Gd;if(a==c&&b==d)return this;$.Fb(this.Qd,a-c,b-d)}else this.Qd=(new $.Db).setTransform(1,0,0,1,a,b);this.Mr();return this};$.g.scale=function(a,b,c,d){this.qv();this.Qd||(this.Qd=new $.Db);$.Eb(this.Qd,a,b);$.Fb(this.Qd,(c||0)*(1-a),(d||0)*(1-b));this.Mr();return this}; +$.g.XO=function(a,b,c){c=Lb(this.sb(),c||"center");return this.scale(a,b,c[0],c[1])};$.g.QF=function(a,b,c,d,e,f){this.qv();this.Qd?$.wb(this.Qd,new $.Db(a,b,c,d,e,f)):this.Qd=new $.Db(a,b,c,d,e,f);this.Mr();return this};$.g.pc=function(a,b,c,d,e,f){this.qv();this.Qd?this.Qd.setTransform(a,b,c,d,e,f):this.Qd=new $.Db(a,b,c,d,e,f);this.Mr();return this};$.g.tD=function(){return $.Cb(this.Qd)}; +$.g.jp=function(){return this.Qd?[this.Qd.od,this.Qd.We,this.Qd.gf,this.Qd.Ke,this.Qd.Kd,this.Qd.Gd]:[1,0,0,1,0,0]};$.g.Ac=function(a){var b=this.Ka(),c;if(c=b)c=kE,c=c==kE||2==c||3==c?0f;n+=m)switch((Math.floor(n/90)+4)%4){case 0:h.push(a+c);break;case 1:k.push(b+d);break;case 2:h.push(a-c);break;case 3:k.push(b-d)}l.left=Math.min.apply(null,h);l.width=Math.max.apply(null,h)-l.left;l.top=Math.min.apply(null,k);l.height=Math.max.apply(null,k)-l.top;$.pb(this.rect,l)};qE=sE; +$.sg.prototype.Jg=function(){var a=0;if(this.Uj())return a;var b=[];this.LT(function(c,d){if(1!=c){var e=$.Ja(b,b.length-2);if(4==c){var f=6;d=$.tb(e[0]-$.db(d[2],d[0]),e[1]-$.eb(d[2],d[1]),d[0],d[1],d[2],d[3])}else 2==c?f=2:3==c&&(f=6);for(var h=0,k=d.length-(f-1);h=q;q++){m=q/100;var u={x:0,y:0};if(0===m)n.push(t[0]);else if(1===m)n.push(t[r]); +else{var v=t,w=1-m;if(1===r)m={x:w*v[0].x+m*v[1].x,y:w*v[0].y+m*v[1].y},n.push(m);else if(4>r){var x=w*w,y=m*m,B=0;if(2===r){v=[v[0],v[1],v[2],u];var F=x;var G=w*m*2;var M=y}else 3===r&&(F=x*w,G=x*m*3,M=w*y*3,B=m*y);m={x:F*v[0].x+G*v[1].x+M*v[2].x+B*v[3].x,y:F*v[0].y+G*v[1].y+M*v[2].y+B*v[3].y};n.push(m)}else{for(v=JSON.parse(JSON.stringify(t));1d.length?d=c=f=e=(0,window.parseFloat)(d[0]):(e=(0,window.parseFloat)(d[0]),f=(0,window.parseFloat)(d[1]),c=(0,window.parseFloat)(d[2]),d=(0,window.parseFloat)(d[3]));this.P[0]=e?e:0;this.K[0]=e?a:void 0;this.P[1]=f?f:0;this.K[1]=f?a:void 0;this.P[2]=c?c:0;this.K[2]=c?a:void 0;this.P[3]=d?d:0;this.K[3]=d?a:void 0};$.g.round=function(a,b,c,d){$.Ca(arguments,0,0,"round");this.GX.apply(this,arguments);Bg(this);return this}; +$.g.eka=function(a,b,c,d){$.Ca(arguments,0,0,"round-inner");this.GX.apply(this,arguments);Bg(this);return this};$.g.bea=function(a,b,c,d){$.Ca(arguments,0,0,"cut");this.GX.apply(this,arguments);Bg(this);return this};$.g.qe=function(a){Cg.u.qe.call(this,a);this.Ho(a.x).Io(a.y).Go(a.width).Fo(a.height);a.cornerTypes&&(this.K=Vb(a.cornerTypes,4),a=Vb(a.cornerSizes,4),(0,$.Pe)(a,function(a,c,d){d[c]=(0,window.parseFloat)(a)}),this.P=a,Bg(this))}; +$.g.D=function(){var a=Cg.u.D.call(this);a.type="rect";a.x=this.b.left;a.y=this.b.top;a.width=this.b.width;a.height=this.b.height;a.cornerTypes=this.K.join(" ");a.cornerSizes=this.P.join(" ");return a};$.g.R=function(){this.b=this.K=this.P=null;this.$d();Cg.u.R.call(this)};var uE=Cg.prototype;$.E("acgraph.vector.Rect",Cg);uE.setX=uE.Ho;uE.setY=uE.Io;uE.setWidth=uE.Go;uE.setHeight=uE.Fo;uE.setBounds=uE.Qf;uE.cut=uE.bea;uE.round=uE.round;uE.roundInner=uE.eka;$.H($.Dg,$.od);$.Dg.prototype.j=function(a){return $.p(a)?(this.f=a,this.i&&(a=this.f,a.yf()?a.Px.push(this):this.Td()),this):this.f};var vE={rect:Cg,circle:$.rg,ellipse:qg,path:$.Ag};$.g=$.Dg.prototype; +$.g.shape=function(a,b,c,d){if(arguments.length){if($.J(a,$.pg))if(this.b){var e=!1;for(h in vE){var f=vE[h];if($.J(this.b,f)&&$.J(a,f)){e=!0;break}}e?this.b.qe(a.D()):(this.b.parent(null),this.b=a,this.b.parent(this))}else this.b=a,this.b.parent(this);else{if($.J(a,$.I)){e=a.left;var h=a.top;f=a.width;var k=a.height}else $.A(a)?(e=null!=a[0]?a[0]:0,h=null!=a[1]?a[1]:0,f=null!=a[2]?a[2]:0,k=null!=a[3]?a[3]:0):$.C(a)?(e=null!=a.left?a.left:0,h=null!=a.top?a.top:0,f=null!=a.width?a.width:0,k=null!= +a.height?a.height:0):(e=null!=a?a:0,h=null!=b?b:0,f=null!=c?c:0,k=null!=d?d:0);this.b?$.J(this.b,Cg)?this.b.Ho(e).Io(h).Go(f).Fo(k):(this.b.parent(null),this.b=$.mk(e,h,f,k),this.b.parent(this)):(this.b=$.mk(e,h,f,k),this.b.parent(this))}return this}return this.b};$.g.yr=function(){return this.i};$.g.id=function(a){return $.p(a)?(this.fe=a,this):this.fe};$.g.Td=function(){this.i=!1;if(this.fe){$.mg();var a=this.shape();if(a.ia())this.shape().Td();else{var b=ck(this.Ka().vn,this);a.Td();a=a.ia();b.appendChild(a)}}}; +$.g.D=function(){return this.b.D()};$.g.qe=function(a){var b=vE[a.type];b&&(b=new b,b.qe(a),this.shape(b))};$.g.hc=function(a){a.remove();a.gl(this);Eg(this);kg(a,!0);return this};$.g.removeChild=function(a){a.gl(null);var b=a.ia();b&&$.Xe(b);Eg(this);kg(a,!1);return a};$.g.Ig=function(){return null};$.g.UI=function(){};$.g.Ka=function(){return this.j()};$.g.Qb=function(){Eg(this)};$.g.ld=function(){$.Dg.u.ld.call(this)}; +$.g.R=function(){this.f&&$.Fa(this.f.Px,this);$.mg().X0(this);this.b.ld();delete this.f;delete this.fe;delete this.elements;delete this.i;delete this.b;$.Dg.u.R.call(this)};var wE=$.Dg.prototype;wE.shape=wE.shape;wE.dispose=wE.ld;$.H($.Fg,$.hg);$.g=$.Fg.prototype;$.g.Sm=function(){return"layer"};$.g.jl=$.hg.prototype.jl|224;$.g.EO=function(){for(var a=0;aa||a>=this.cc()||0>b||b>=this.cc())throw $.ld(8);if(a!=b){var c=this.children[a];this.children[a]=this.children[b];this.children[b]=c;this.Qb(128)}return this};$.g.bN=function(a){return!!a&&$.Aa(this.children,a)};$.g.cc=function(){return this.children.length};$.g.Pj=function(a,b){$.p(b)||(b=this);(0,$.Pe)(this.children,a,b);return this};$.g.Cd=function(){var a=$.ok();a.parent(this);return a};$.g.UP=function(){var a=$.uk();a.parent(this);return a}; +$.g.text=function(a,b,c,d){a=$.sk(a,b);d&&a.style(d);c&&a.text(c);a.parent(this);return a};$.g.hN=function(a,b,c,d){a=$.sk(a,b);d&&a.style(d);c&&a.htmlText(c);a.parent(this);return a};$.g.rect=function(a,b,c,d){a=$.mk(a,b,c,d);a.parent(this);return a};$.g.xk=function(a,b,c,d,e){a=rk(a,b,c,d,e);a.parent(this);return a};$.g.RO=function(a,b){$.Da(arguments,this.path(),0);return zi.apply(this,arguments).parent(this)};$.g.QO=function(a,b){$.Da(arguments,this.path(),0);return Ai.apply(this,arguments).parent(this)}; +$.g.SP=function(a,b){$.Da(arguments,this.path(),0);return yi.apply(this,arguments).parent(this)};$.g.rn=function(a,b,c){a=$.nk(a,b,c);a.parent(this);return a};$.g.ellipse=function(a,b,c,d){a=$.pk(a,b,c,d);a.parent(this);return a};$.g.path=function(){return $.qk().parent(this)};$.g.tP=function(a,b,c,d,e,f,h){return gi(this.path(),a,b,c,d,e,f,h).parent(this)};$.g.vP=function(a,b,c){return hi(this.path(),a,b,c).parent(this)};$.g.wP=function(a,b,c){return ii(this.path(),a,b,c).parent(this)}; +$.g.xP=function(a,b,c){return ji(this.path(),a,b,c).parent(this)};$.g.yP=function(a,b,c){return ki(this.path(),a,b,c).parent(this)};$.g.uP=function(a,b,c){return li(this.path(),a,b,c).parent(this)};$.g.RP=function(a,b,c){return mi(this.path(),a,b,c).parent(this)};$.g.OP=function(a,b,c){return ni(this.path(),a,b,c).parent(this)};$.g.QP=function(a,b,c){return oi(this.path(),a,b,c).parent(this)};$.g.PP=function(a,b,c){return pi(this.path(),a,b,c).parent(this)}; +$.g.PL=function(a,b,c){return qi(this.path(),a,b,c).parent(this)};$.g.xL=function(a,b,c){return ri(this.path(),a,b,c).parent(this)};$.g.OL=function(a,b,c){return si(this.path(),a,b,c).parent(this)};$.g.$M=function(a,b,c){return ti(this.path(),a,b,c).parent(this)};$.g.YP=function(a,b,c){return ui(this.path(),a,b,c).parent(this)};$.g.qg=function(a,b,c,d,e){return vi(this.path(),a,b,c,d,e).parent(this)};$.g.UL=function(a,b,c,d,e,f){return $.wi(this.path(),a,b,c,d,e,f).parent(this)};$.g.Ft=function(){return $.mg().Wo()}; +$.g.jk=function(){this.Vf(32)&&this.Dp();var a=this.Ka();a=a.xF(Math.floor(Math.max(500-a.ks,0)/3));this.Vf(64)&&Hg(this);var b=this.Ka();b.ks-=a;if(this.Vf(128)&&(a=this.Ka().xF(this.children.length+this.ir.length+1),b=Haa(this,a),bd;d++){c=!1;for(var e=0;4>e;e++){c=!c;for(var f=0;4>f;f++)c&&Pg(this,a,a,e*a+d*this.size/2,f*a+this.size/2),c=!c}}},"solid-diamond":function(){Xg(this,[[this.size/2,0,0,this.size/2,this.size/2,this.size,this.size,this.size/2,this.size/2,0]],!0,!0)},"dashed-forward-diagonal":function(){Yg(this,[0,0,this.size/2,this.size/2,this.Ef])},"dashed-backward-diagonal":function(){Yg(this,[this.size/2,0,0,this.size/ +2,this.Ef])},"dashed-horizontal":function(){Yg(this,[0,0,this.size/2,0,this.Ef,this.size/2,this.size/2,this.size,this.size/2,this.Ef])},"dashed-vertical":function(){Yg(this,[0,0,0,this.size/2,this.Ef,this.size/2,this.size/2,this.size/2,this.size,this.Ef])},divot:function(){var a=.1*this.size,c=this.size*(.8-.2)/2;Xg(this,[[a+c,a,a,a+c/2,a+c,a+c],[this.size-a-c,this.size-a-c,this.size-a,this.size-a-c/2,this.size-a-c,this.size-a]])},"zig-zag":function(){Xg(this,[[0,0,this.size/2,this.size/2,this.size, +0],[0,this.size/2,this.size/2,this.size,this.size,this.size/2]])},weave:function(){Xg(this,[[0,0,this.size/2,this.size/2,this.size,0],[0,this.size/2,this.size/2,this.size,this.size,this.size/2],[this.size/2,this.size/2,3*this.size/4,3*this.size/4],[this.size,this.size/2,3*this.size/4,this.size/4]])}};a["percent-05"]=$.qa(Og,8,8,[0,0,4,4]);a["percent-10"]=$.qa(Og,8,4,[0,0,4,2]);a["percent-20"]=$.qa(Og,4,4,[0,0,2,2]);a["percent-25"]=$.qa(Og,4,2,[0,0,2,1]);a["percent-30"]=$.qa(Og,4,4,[0,0,2,0,3,1,0, +2,2,2,1,3]);a["percent-40"]=$.qa(Og,4,8,[0,0,2,0,3,1,0,2,2,2,1,3,3,3,0,4,2,4,1,5,3,5,0,6,2,6,1,7,3,7]);a["percent-50"]=$.qa(Og,2,2,[0,0,1,1]);a["percent-60"]=$.qa(Og,4,4,[0,0,2,0,0,1,1,1,3,1,0,2,2,2,1,3,2,3,3,3]);a["percent-70"]=$.qa(Og,4,4,[0,0,2,0,3,0,0,1,1,1,2,1,0,2,2,2,3,2,0,3,1,3,2,3]);a["percent-75"]=$.qa(Vg,4,4,[0,0,2,2]);a["percent-80"]=$.qa(Vg,8,4,[0,0,4,2]);a["percent-90"]=$.qa(Vg,8,8,[7,7,4,3]);return a}();Kg.prototype.Sm=function(){return"hatch-fill"}; +Kg.prototype.R=function(){if(this.Ka()){var a=this.Ka().vn,b=[this.type,this.color,this.Ef,this.size].join();$.Gc(a.i,b)&&$.Lc(a.i,b);a=$.ze(window.document,this.id());$.Xe(a)}Kg.u.R.call(this)};var zE=Kg.prototype;zE.dispose=zE.ld;$.H(bh,$.hg);$.ah="meet";$.$g="none";$.g=bh.prototype;$.g.jl=$.hg.prototype.jl|32;$.g.Sm=function(){return"image"};$.g.jD=function(a){return null!=a?(a!=this.f&&(this.f=a,this.Qb(32)),this):this.f};$.g.align=function(a){return null!=a?(a!=this.b&&(this.b=a,this.Qb(32)),this):this.b};$.g.x=function(a){return null!=a?(a!=this.Bb.left&&(this.Bb.left=a,this.Qb(32),this.$d()),this):this.Bb.left};$.g.y=function(a){return null!=a?(a!=this.Bb.top&&(this.Bb.top=a,this.Qb(32),this.$d()),this):this.Bb.top}; +$.g.width=function(a){return null!=a?(a!=this.Bb.width&&(this.Bb.width=a,this.Qb(32),this.$d()),this):this.Bb.width};$.g.height=function(a){return null!=a?(a!=this.Bb.height&&(this.Bb.height=a,this.Qb(32),this.$d()),this):this.Bb.height};$.g.src=function(a){return $.p(a)?(a!=this.j&&(this.j=a,this.Qb(32)),this):this.j};$.g.opacity=function(a){return $.p(a)?(a!=this.i&&(this.i=a,this.Qb(32)),this):this.i};$.g.ck=function(){return this.Bb.clone()};$.g.Ft=function(){return $.mg().H0()}; +$.g.jk=function(){this.Vf(32)&&($.mg().OI()&&this.Qb(4),this.Dp());bh.u.jk.call(this)};$.g.Uw=function(){$.mg().L5(this);$.jg(this,4);$.jg(this,256)};$.g.Dp=function(){$.mg().K5(this);$.jg(this,32)};$.g.qe=function(a){var b=a.bounds;this.x(b.left).y(b.top).width(b.width).height(b.height).src(a.src).align(a.align).jD(a.fittingMode);bh.u.qe.call(this,a)};$.g.D=function(){var a=bh.u.D.call(this);a.type="image";a.bounds=this.ck();a.src=this.src();a.align=this.align();a.fittingMode=this.jD();return a}; +$.g.R=function(){this.Bb=null;this.$d();bh.u.R.call(this)};$.E("acgraph.vector.Image",bh);var AE=bh.prototype;AE.fittingMode=AE.jD;AE.align=AE.align;AE.x=AE.x;AE.y=AE.y;AE.width=AE.width;AE.height=AE.height;AE.src=AE.src;$.H(ch,$.qf);var eh=[$.hd&&!$.bd("11")?"readystatechange":"load","abort","error"];ch.prototype.start=function(){var a=this.f;(0,$.Pe)($.Fc(a),function(b){var c=a[b];if(c&&(delete a[b],!this.md)){var d;this.Y?d=$.ye(this.Y).Ac("IMG"):d=new window.Image;c.A0&&(d.crossOrigin=c.A0);this.qo.wa(d,eh,this.i);this.b[b]=d;d.id=b;d.src=c.src}},this)}; +ch.prototype.i=function(a){var b=a.currentTarget;if(b){if("readystatechange"==a.type)if("complete"==b.readyState)a.type="load";else return;"undefined"==typeof b.naturalWidth&&("load"==a.type?(b.naturalWidth=b.width,b.naturalHeight=b.height):(b.naturalWidth=0,b.naturalHeight=0));this.dispatchEvent({type:a.type,target:b});this.md||fh(this,b.id)}};ch.prototype.R=function(){delete this.f;delete this.b;$.qd(this.qo);ch.u.R.call(this)};$.ja($.gh);$.g=$.gh.prototype;$.g.H5=$.ia;$.g.PX=$.ia;$.g.HX=$.ia;$.g.getAttribute=function(a,b){return a?a.getAttribute(b):void 0};$.g.lc=function(a,b,c){a.setAttribute(b,c)};$.g.U4=function(a,b){var c=b[3];a.push(b[0],b[1],0,180this.Xa&&!this.mc;){var f=Th(this,a,b,e+this.P,this.Xa,d);1>f&&0==this.f.length&&(f=1);0!=f&&(e=$.nc(a.substring(0,f)),d=this.Vm(e,b),Uh(this,e,b,d));this.oM();1==a.length&&(this.mc=!0);e=0;a=$.nc(a.substring(f,a.length));d=this.Vm(a,b)}this.mc||!a.length&&!c||Uh(this,a,b,d)}}; +$.g.oM=function(){if(!this.mc&&0!=this.f.length){var a=0==this.ea.length;if(this.Jf&&this.F+this.Ba>this.Jf&&0!=this.ea.length)Vh(this),this.mc=!0;else{this.Ba=$.z(this.rb)?(0,window.parseInt)(this.rb,0)+this.Ba:this.rb*this.Ba;if($.mg().j4()){var b;var c=this.K&&this.yc.hAlign==$.Ph||!this.K&&"end"==this.yc.hAlign||"right"==this.yc.hAlign;var d="center"==this.yc.hAlign;if(this.K&&"end"==this.yc.hAlign||!this.K&&this.yc.hAlign==$.Ph||"left"==this.yc.hAlign){d=this.K?0:this.j&&a?this.j:0;var e=0;for(b= +this.f.length;ethis.Xa&&(1a&&!(0,window.isNaN)(this.JC)&&(0,window.clearTimeout)(this.JC),this.RN=a,this.Dt(!0)),this):this.RN};$.g.O=function(a){return $.p(a)?(a=$.ze(window.document,a||null),this.Jc!=a&&(this.Jc=a,Xj(this),this.Dt(!0),this.Td()),this):this.Jc?this.pp:null};$.g.Afa=function(){return this.Jc};$.g.Tl=function(){return this.pp};$.g.suspend=function(){this.JJ++;return this}; +$.g.resume=function(a){this.JJ=a?0:Math.max(this.JJ-1,0);this.Td();return this};$.g.uda=function(a){return $.p(a)?(this.NR=!!a,this):this.NR};$.g.yf=function(){return!!this.JJ};$.g.wN=function(){return this.rw};$.g.title=function(a){return $.p(a)?(this.nx!=a&&(this.nx=a,$.mg().PX(this,this.nx)),this):this.nx};$.g.ZS=function(a){return $.p(a)?(this.Av!=a&&(this.Av=a,$.mg().HX(this,this.Av)),this):this.Av};$.g.visible=function(a){if(0==arguments.length)return this.Oa.visible();this.Oa.visible(a);return this}; +$.g.data=function(a){if(0==arguments.length)return this.D();var b=a.type;if(b)switch(b){case "rect":var c=this.rect();break;case "circle":c=this.rn();break;case "ellipse":c=this.ellipse();break;case "image":c=this.xk();break;case "text":c=this.text();break;case "path":c=this.path();break;case "layer":c=this.Cd();break;default:c=null}else this.qe(a);c&&c.qe(a);return this};$.g.remove=function(){return this.O(null)};$.g.Gh=function(){return 0};$.g.As=function(){return 0}; +$.g.sb=function(){return new $.I(0,0,this.width(),this.height())};$.g.clip=function(a){return this.Oa.clip(a)};$.g.AM=function(){return this.q0}; +$.g.fullScreen=function(a){var b=this.Tl();if($.p(a))return b&&this.Jy()&&(a=!!a,this.fullScreen()!=a&&(a?b.mozRequestFullScreenWithKeys?b.mozRequestFullScreenWithKeys():b.webkitRequestFullscreen?b.webkitRequestFullscreen():b.webkitRequestFullscreen?b.webkitRequestFullscreen():b.mozRequestFullScreen?b.mozRequestFullScreen():b.msRequestFullscreen?b.msRequestFullscreen():b.requestFullscreen&&b.requestFullscreen():(b=$.ye().b,b.webkitCancelFullScreen?b.webkitCancelFullScreen():b.mozCancelFullScreen? +b.mozCancelFullScreen():b.msExitFullscreen?b.msExitFullscreen():b.exitFullscreen&&b.exitFullscreen()))),this;if(!(a=!b)){a:{a=$.ye().b;a=[a.webkitFullscreenElement,a.mozFullScreenElement,a.msFullscreenElement,a.fullscreenElement];for(var c=0;ca++;){if(this.md)return;this.sp.Sw();b=Xm(this)}b&&this.sp.Sw();this.md||(b?(this.sp.Ld(this.ah),this.dX=(0,window.setTimeout)(this.DO,0)):this.sp.zK())};$.g.R4=function(a,b){this.sp.cX(a,b)};$.g.Nja=$.ia;$.g.R=function(){(0,window.clearTimeout)(this.dX);this.f=this.i=this.sp=null;$.Sm.u.R.call(this)};var dF=$.Sm.prototype;$.E("anychart.data.csv.parser",$.Ym);dF.parse=dF.pC;dF.rowsSeparator=dF.lJ; +dF.columnsSeparator=dF.gG;dF.ignoreTrailingSpaces=dF.NH;dF.ignoreFirstRow=dF.LH;$.I.prototype.D=function(){return{left:this.left,top:this.top,width:this.width,height:this.height}};$.vn.prototype.add=function(a){return new $.vn(this.x+a.x,this.y+a.y)};$.vn.prototype.min=function(a){return new $.vn(Math.min(this.x,a.x),Math.min(this.y,a.y))};$.vn.prototype.max=function(a){return new $.vn(Math.max(this.x,a.x),Math.max(this.y,a.y))};yn.prototype.tJ=function(){for(var a=this.b.length-1;0<=a;a--)if(1E-6>=Math.abs(this.b[a]))this.b.pop();else break};$.E("anychart.math.rect",$.rn);var eF={wQ:["BC","AD"],cZ:["Before Christ","Anno Domini"],gZ:"JFMAMJJASOND".split(""),vZ:"JFMAMJJASOND".split(""),BQ:"January February March April May June July August September October November December".split(" "),MQ:"January February March April May June July August September October November December".split(" "),IQ:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),NQ:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),RQ:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), +yZ:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),KQ:"Sun Mon Tue Wed Thu Fri Sat".split(" "),xZ:"Sun Mon Tue Wed Thu Fri Sat".split(" "),e9:"SMTWTFS".split(""),wZ:"SMTWTFS".split(""),JQ:["Q1","Q2","Q3","Q4"],EQ:["1st quarter","2nd quarter","3rd quarter","4th quarter"],oQ:["AM","PM"],mF:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],rF:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],sQ:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],fK:6,u$:[5,6],gK:5},ao=eF; +ao=eF;var Oba=/^(-)?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)?(T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+(?:\.\d+)?)S)?)?$/;$.Nn.prototype.clone=function(){return new $.Nn(this.ai,this.pg,this.xg,this.Th,this.Bj,this.wh)};var Fn="y",Gn="m",Jn="d",Kn="h",Ln="n",Mn="s";$.Nn.prototype.b=function(a){return new $.Nn(this.ai*a,this.pg*a,this.xg*a,this.Th*a,this.Bj*a,this.wh*a)};$.Nn.prototype.add=function(a){this.ai+=a.ai;this.pg+=a.pg;this.xg+=a.xg;this.Th+=a.Th;this.Bj+=a.Bj;this.wh+=a.wh};$.g=$.Tn.prototype;$.g.hD=ao.fK; +$.g.iD=ao.gK;$.g.clone=function(){var a=new $.Tn(this.b);a.hD=this.hD;a.iD=this.iD;return a};$.g.getFullYear=function(){return this.b.getFullYear()};$.g.getMonth=function(){return this.b.getMonth()};$.g.getDate=function(){return this.b.getDate()};$.g.getTime=function(){return this.b.getTime()};$.g.getDay=function(){return this.b.getDay()};$.g.getUTCFullYear=function(){return this.b.getUTCFullYear()};$.g.getUTCMonth=function(){return this.b.getUTCMonth()};$.g.getUTCDate=function(){return this.b.getUTCDate()}; +$.g.TM=function(){return this.b.getDay()};$.g.getUTCHours=function(){return this.b.getUTCHours()};$.g.getUTCMinutes=function(){return this.b.getUTCMinutes()};$.g.getTimezoneOffset=function(){return this.b.getTimezoneOffset()};$.g.set=function(a){this.b=new Date(a.getFullYear(),a.getMonth(),a.getDate())};$.g.setFullYear=function(a){this.b.setFullYear(a)};$.g.setMonth=function(a){this.b.setMonth(a)};$.g.setDate=function(a){this.b.setDate(a)};$.g.setTime=function(a){this.b.setTime(a)};$.g.zU=function(a){this.b.setUTCFullYear(a)}; +$.g.Qfa=function(a){this.b.setUTCMonth(a)};$.g.Pfa=function(a){this.b.setUTCDate(a)}; +$.g.add=function(a){if(a.ai||a.pg){var b=this.getMonth()+a.pg+12*a.ai,c=this.getFullYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);var d=Math.min(Dn(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.xg&&(b=new Date(this.getFullYear(),this.getMonth(),this.getDate(),12),a=new Date(b.getTime()+864E5*a.xg),this.setDate(1),this.setFullYear(a.getFullYear()),this.setMonth(a.getMonth()),this.setDate(a.getDate()),Rn(this,a.getDate()))}; +$.g.UM=function(a){return[this.getFullYear(),$.uc(this.getMonth()+1,2),$.uc(this.getDate(),2)].join(a?"-":"")};$.g.NJ=ba(6);$.g.toString=function(){return this.UM()};$.g.valueOf=function(){return this.b.valueOf()};$.H($.Un,$.Tn);$.g=$.Un.prototype;$.g.getHours=function(){return this.b.getHours()};$.g.getMinutes=function(){return this.b.getMinutes()};$.g.getSeconds=function(){return this.b.getSeconds()};$.g.getMilliseconds=function(){return this.b.getMilliseconds()};$.g.TM=function(){return this.b.getUTCDay()}; +$.g.getUTCHours=function(){return this.b.getUTCHours()};$.g.getUTCMinutes=function(){return this.b.getUTCMinutes()};$.g.yU=function(){return this.b.getUTCSeconds()};$.g.Nfa=function(){return this.b.getUTCMilliseconds()};$.g.setHours=function(a){this.b.setHours(a)};$.g.setMinutes=function(a){this.b.setMinutes(a)};$.g.setSeconds=function(a){this.b.setSeconds(a)};$.g.setMilliseconds=function(a){this.b.setMilliseconds(a)};$.g.q2=function(a){this.b.setUTCHours(a)};$.g.r2=function(a){this.b.setUTCMinutes(a)}; +$.g.s2=function(a){this.b.setUTCSeconds(a)};$.g.Ofa=function(a){this.b.setUTCMilliseconds(a)};$.g.add=function(a){$.Tn.prototype.add.call(this,a);a.Th&&this.q2(this.b.getUTCHours()+a.Th);a.Bj&&this.r2(this.b.getUTCMinutes()+a.Bj);a.wh&&this.s2(this.b.getUTCSeconds()+a.wh)}; +$.g.UM=function(a){var b=$.Tn.prototype.UM.call(this,a);return a?b+" "+$.uc(this.getHours(),2)+":"+$.uc(this.getMinutes(),2)+":"+$.uc(this.getSeconds(),2):b+"T"+$.uc(this.getHours(),2)+$.uc(this.getMinutes(),2)+$.uc(this.getSeconds(),2)};$.g.NJ=ba(5);$.g.toString=function(){return this.UM()};$.g.clone=function(){var a=new $.Un(this.b);a.hD=this.hD;a.iD=this.iD;return a};$.H($.Vn,$.Un);$.g=$.Vn.prototype;$.g.clone=function(){var a=new $.Vn(this.b);a.hD=this.hD;a.iD=this.iD;return a};$.g.add=function(a){(a.ai||a.pg)&&$.Tn.prototype.add.call(this,new $.Nn(a.ai,a.pg));this.b=new Date(this.b.getTime()+1E3*(a.wh+60*(a.Bj+60*(a.Th+24*a.xg))))};$.g.getTimezoneOffset=function(){return 0};$.g.getFullYear=$.Un.prototype.getUTCFullYear;$.g.getMonth=$.Un.prototype.getUTCMonth;$.g.getDate=$.Un.prototype.getUTCDate;$.g.getHours=$.Un.prototype.getUTCHours;$.g.getMinutes=$.Un.prototype.getUTCMinutes; +$.g.getSeconds=$.Un.prototype.yU;$.g.getMilliseconds=$.Un.prototype.Nfa;$.g.getDay=$.Un.prototype.TM;$.g.setFullYear=$.Un.prototype.zU;$.g.setMonth=$.Un.prototype.Qfa;$.g.setDate=$.Un.prototype.Pfa;$.g.setHours=$.Un.prototype.q2;$.g.setMinutes=$.Un.prototype.r2;$.g.setSeconds=$.Un.prototype.s2;$.g.setMilliseconds=$.Un.prototype.Ofa;var sp=$.hd&&Pba();Xn.prototype.rD=function(a){return this.F-$n(this,a)};var go=[/^'(?:[^']|'')*('|$)/,/^(?:G+|y+|Y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyYMkSEahKHcLQdmsvVwzZ]+/]; +$.eo.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-b.rD(a)):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+6E4*(d.getTimezoneOffset()-a.getTimezoneOffset())),e=new Date(a.getTime()+(c+(0b.charCode&&Pp(d)?b.charCode:0):$.yd&&!$.xd?(d=this.SA,e=Pp(d)?b.keyCode:0):(d=b.keyCode||this.SA,e=b.charCode||0,jF&&"keypress"==a.type&&(c=this.$Q),$.Ad&&63==e&&224==d&&(d=191));var f=d=Qp(d);d?63232<=d&&d in gF?f=gF[d]:25==d&&a.shiftKey&&(f=9):b.keyIdentifier&&b.keyIdentifier in hF&&(f=hF[b.keyIdentifier]); +$.gd&&iF&&"keypress"==a.type&&!Sp(f,this.qq,a.shiftKey,a.ctrlKey,c,a.metaKey)||(a=f==this.qq,this.qq=f,b=new Up(f,e,a,b),b.altKey=c,this.dispatchEvent(b))};$.g.Za=function(){return this.Fd};$.g.VM=function(a,b){this.IN&&this.vH();this.Fd=a;this.HN=$.Ld(this.Fd,"keypress",this,b);this.JV=$.Ld(this.Fd,"keydown",this.Rfa,b,this);this.IN=$.Ld(this.Fd,"keyup",this.uga,b,this)};$.g.vH=function(){this.HN&&(Zd(this.HN),Zd(this.JV),Zd(this.IN),this.IN=this.JV=this.HN=null);this.Fd=null;this.SA=this.qq=-1}; +$.g.R=function(){$.Tp.u.R.call(this);this.vH()};$.H(Up,$.Bd);var Xp,mq,zl,$p,jq,lq,nq,pq,sq,tq,yq;$.kF=$.fa.acgraph;Xp=!1;mq={}; +zl={chart:"area vertical-area area-3d bar bar-3d box bubble bullet calendar candlestick cartesian cartesian-3d circle-packing column column-3d financial funnel line line-3d vertical-line marker pie pie-3d polar ohlc pyramid radar scatter step-line sparkline heat-map tree-map pert resource jump-line stick pareto quadrant mekko mosaic barmekko tag-cloud timeline venn hilo waterfall sunburst sankey surface wordtree graph circular-gauge linear-gauge tank thermometer led".split(" "),stock:["stock"],map:"map choropleth bubble marker connector seat-map".split(" "), +gantt:["gantt-resource","gantt-project"]};$.Yj.prototype.zx=!1;$.Yj.prototype.Xp=function(a){this.sm||(this.sm=new ql(this,this.zx),this.sm.N($.Gm("stageCredits")));return $.p(a)?(this.sm.N(a),this):this.sm};$.Zp=0;$p=[];$.cq={};$.dq={};$.fq={};$.eq={};jq=!1;lq=null;nq=[];pq=[];sq=[];tq=[];$.Cl=new Bl;yq={}; +(function(){for(var a=["ms","moz","webkit","o"],b=0,c;c=a[b]&&!$.fa.requestAnimationFrame;++b)$.fa.requestAnimationFrame=$.fa[c+"RequestAnimationFrame"],$.fa.cancelAnimationFrame=$.fa[c+"CancelAnimationFrame"]||$.fa[c+"CancelRequestAnimationFrame"];if(!$.fa.requestAnimationFrame){var d=0;$.fa.requestAnimationFrame=function(a){var b=(new Date).getTime(),c=Math.max(0,16-(b-d));d=b+c;return $.fa.setTimeout(function(){a(b+c)},c)};$.fa.cancelAnimationFrame||($.fa.cancelAnimationFrame=function(a){(0,window.clearTimeout)(a)})}})(); +$.E("anychart.graphics",$.kF);$.E("anychart.fromJson",$.gq);$.E("anychart.fromXml",function(a){return $.gq($.up(a))});$.E("anychart.onDocumentLoad",function(a,b){KE||(KE=[]);KE.push([a,b]);$.Ld($.ll,"load",function(){for(var a=0,b=KE.length;a=this.Hb()))return this.view.Ul(this.i).dk(this.f,this.i,a)};$.g.lr=function(a){return this.get(a)};$.g.ma=function(){return this.i};$.g.Gh=function(){return this.get("x")}; +$.g.Hb=function(){return this.view.Hb()};$.g.o=function(a,b){return 1b){var e=a;a=b;b=e}e=this.$();var f=[];for(e.reset();e.advance();){var h=e.ma();var k=c?h:e.get("x");k>=a&&k<=b&&f.push(h)}return this.ZF[d]=f};$.g.get=function(a,b){if(!(a>=this.Hb()))return this.Ul(a).dk(this.Af(a),a,b)};$.g.set=function(a,b,c){var d=this.Af(a);$.p(d)&&this.Af(a,fca(this.Ul(a),d,b,c));return this};$.g.$=function(){$.Nr(this);return new $.Lr(this)}; +$.g.FC=function(){return null};$.g.XI=function(a){this.ZF=this.Ct=null;$.X(a,16)&&this.B(1,16)};$.g.o=function(a,b,c){if(this.xY)return this.tO.apply(this,arguments);this.aE||(this.aE=[]);var d=this.aE[a];d||(this.aE[a]=d={});return 2a:!(!this.At||!this.At[a.split(".")[0]])}; +$.g.wO=function(a,b){function c(c){c in a||(a[c]=b++)}var d;for(d=0;d=d)return[];a=new $.Wr(a);c=[];if(1==b)for(b=0;b=c&&0=h&&0=d&&0= +c[l].offset&&(d=c[l]),h<=c[l].offset&&null==f&&(f=c[l]);d||(d=c[0]);f||(f=c[c.length-1]);f.offset==d.offset?this.f[k]={color:d.color}:(h=1-(h-d.offset)/(f.offset-d.offset),this.f[k]={color:$.Tb($.Ol($.Ll(d.color),$.Ll(f.color),h))})}}}this.I(16)}c=$.A(this.Xe)?this.Xe:this.Xe.keys;if(1>c.length)return null;c=this.b||this.i||c.length;if(!c)return null;if($.p(b))return this.f[a]=b,this.va(2),this;a>c-1&&(a=c-1);0>a&&(a=0);return(c=this.f[a])?c:null}; +$.g.Fp=function(a){this.b=window.NaN;this.Xe="#1D8BD1 #F1683C #2AD62A #DBDC25 #8FBC8B #D2B48C #FAF0E6 #20B2AA #B0C4DE #DDA0DD #9C9AFF #9C3063 #FFFFCE #CEFFFF #630063 #FF8284 #0065CE #CECFFF #000084 #FF00FF #FFFF00 #00FFFF #840084 #840000 #008284 #0000FF #00CFFF #CEFFFF #CEFFCE #FFFF9C #9CCFFF #FF9ACE #CE9AFF #FFCF9C #3165FF #31CFCE #9CCF00 #FFCF00 #FF9A00 #FF6500".split(" ");this.B(16);a&&this.va(2)}; +$.g.D=function(){var a=$.Ws.u.D.call(this);a.type="range";for(var b=[],c=0;ca?4:Math.ceil(+a),this.jv=this.pm=null,this.va(2)),this):this.qn}; +$.g.set=function(a){if(this.pm!=a){this.qn=window.NaN;this.Op=null;this.pm=(0,$.Wa)(a,function(a){return $.zs(a)});$.Pa(this.pm);for(var b=this.pm[0],c=1,d=1;da||1this.scale.an()&&($.kl(20,null,[d-c,Gp(f)]),f=null,this.qn=4);f||(f=ft(this,a,b,!0));a=new $.Vn(new Date(c));d=new $.Vn(new Date(d));for(b=0;0>=a.getTime()-d.getTime()&&bthis.scale.an()&&($.kl(20,null,[b-a,Gp(h)]),h=null,this.qn=4);h||(h=ft(this,a,b,!1));var l=$.Zo(a,h,0),m=new $.Vn(new Date(l));c?e[0]=l:l=m.getTime()-a.getTime()&&bthis.cA&&(this.cA=c,this.Kc=!1))}return this}; +$.g.IC=function(a){var b=this.yia!=this.dA||this.xia!=this.cA;b&&(this.Kc=!1,a||this.va(2));return b};$.g.Of=function(){return this.Pn||this.Nn};$.g.transform=function(a){this.pb();return Number(this.Oq.transform(a))};$.g.pb=function(){this.Kc||(this.Kc=!0,this.aT(),this.sJ(),this.dx())};$.g.sJ=function(){};$.g.dx=function(){this.Oq||(this.Oq=new Zs);var a=this.cK*this.$B;a=[-a,this.$B-a];this.PD&&a.reverse();this.Oq.xe(a)}; +$.g.aT=function(){var a=!this.Pn;var b=!this.Nn,c="percent"==this.jn();a&&this.Xc(this.min);b&&this.Xc(this.max);this.AX||(this.dA=0,this.cA=c?100:1);var d=a?this.min:this.dA,e=b?this.max:this.cA;!a&&d>=this.jt&&(d=this.jt,a=!0);!b&&e<=this.Lq&&(e=this.Lq,b=!0);if($.cn(d,e,1E-6)){if(d==e)var f=.5;else f=d.toExponential().split("e")[1],f=+("1e-"+Math.max(Math.abs(f)+1,5));b?d-=2*f:a?e+=2*f:(d-=f,e+=f)}c&&(a=b=!0);a=this.Nz(d,e,!a,!b,this.GJ,!0);this.min=a.min;this.max=a.max;this.Kx=a.Kx||0}; +$.g.Nz=function(a,b,c,d,e,f){var h=b-a,k=h*this.HI;h*=this.BI;return{max:d?wt(b,h,e,f,1):b,min:c?wt(a,k,e,f,-1):a}};$.g.Mc=function(a){this.pb();return this.Oq.Mc(a)}; +$.g.D=function(){var a=$.vt.u.D.call(this);a.maximum=this.Nn?null:this.max;a.minimum=this.Pn?null:this.min;a.minimumGap=this.Qs();a.maximumGap=this.Os();a.softMinimum=(0,window.isNaN)(this.jt)?null:this.jt;a.softMaximum=(0,window.isNaN)(this.Lq)?null:this.Lq;a.softMaximum=(0,window.isNaN)(this.Lq)?null:this.Lq;a.alignMinimum=this.BF;a.alignMaximum=this.AF;a.maxTicksCount=this.dl;return a}; +$.g.U=function(a,b){$.vt.u.U.call(this,a,b);this.Qs(a.minimumGap);this.Os(a.maximumGap);this.KB(a.softMinimum);this.JB(a.softMaximum);this.uh(a.minimum);this.di(a.maximum);this.XQ(a.alignMinimum);this.WQ(a.alignMaximum);this.an(a.maxTicksCount)};var zF=$.vt.prototype;zF.maxTicksCount=zF.an;zF.minimum=zF.uh;zF.maximum=zF.di;zF.extendDataRange=zF.Xc;$.H($.xt,$.vt);$.g=$.xt.prototype;$.g.Ak=function(a){return!$.zs(a)};$.g.Ma=function(){return"date-time"};$.g.Ya=function(a){this.xh||(this.xh=new et(this),$.W(this,"ticks",this.xh),$.K(this.xh,this.li,this));return $.p(a)?(this.xh.N(a),this):this.xh};$.g.yb=function(a){this.Di||(this.Di=new et(this),$.W(this,"minorTicks",this.Di),$.K(this.Di,this.li,this));return $.p(a)?(this.Di.N(a),this):this.Di};$.g.Xc=function(a){for(var b=0;bc;c++){b:{var d=a[c];if("object"===$.ka(d)&&"from"in d&&"to"in d){var e=+d.from;d=+d.to;if(ee&&0=d){e={from:e,to:d};break b}}e=null}b.push(e)}a=b.length?b:null}else a=null;this.b=a;this.F={};this.j={};if(this.b)for(a=0;af){e={day:e,month:f};"year"in d&&(f=+d.year,(0,window.isNaN)(f)||(e.year=f));"label"in d&&(e.label=String(d.label));d=e;break b}}d=null}d&&b.push(d)}a=b.length?b:null}else a=null;this.f=a;this.i={SY:{},JS:{}};this.F={};if(this.f)for(a=0;a=Math.abs(f-c)&&(c=(this.$e+this.Ze)/2,f=c-3E4,c+=3E4);this.Jr(f,c)}return this}; +$.g.Wr=function(a,b){var c=a||1.25,d=$.p(b)?b:.5;$.Ot(this);if(!$.It(this)||!$.Jt(this)){var e=this.$e-Math.round((this.Ze-this.$e)*(c-1)*d);c=this.Ze+Math.round((this.Ze-this.$e)*(c-1)*(1-d));this.uj();if($.Nt(this)){d=this.Xq.ob().width;if(this.bm.isPixels){var f=$.Ft(this.bm.value,d);this.Gj=this.Ph-Math.round((f/d||0)*(c-e))}this.am.isPixels&&(f=$.Ft(this.am.value,d),this.Fj=this.Oh+Math.round((f/d||0)*(c-e)))}if(ethis.Fj){if(ethis.Fj)return this.Qm(),this;ethis.Fj&&this.Jr(e-(c-this.Fj),this.Fj)}else this.Jr(e,c)}return this}; +$.g.kj=function(a,b,c){if($.Nt(this)&&$.ea(a)&&$.ea(b)){c=this.bm.isPixels;var d=this.am.isPixels;c&&d?Gt(this):c?Ht(this,!0):d&&Ht(this,!1);d=this.Oh-this.Ph;c=b-a;if(c>=this.Fj-this.Gj)this.$e=this.Gj,this.Ze=this.Fj;else{this.$e=Math.min(a,b);this.Ze=Math.max(a,b);var e=$.Kt(this,d,this.bm),f=$.Kt(this,d,this.am);e=(0,window.isNaN)(this.$m)?(0,window.isNaN)(this.Ko)?this.Ph-e:Math.min(this.Ko,this.Ph):this.$m;f=(0,window.isNaN)(this.Zm)?(0,window.isNaN)(this.Jo)?this.Oh+f:Math.max(this.Jo,this.Oh): +this.Zm;af&&(this.Ze=f,this.$e=this.Ze-c)}this.Gj=e;this.Fj=f;this.Kc=!0;this.Uj()&&(this.QI=!0,this.MI=[a,b]);this.va(4);a=this}else a:{this.pb();if($.z(a)){if(0===b){a=this;break a}f=$.zk(Cda,c,$.p(void 0)?void 0:"first-visible-date");e=$.bp($.Zk(a,"day"),b||1);switch(f){case "first-date":d=this.Ph;break;case "last-date":d=this.Oh;e=e.b(-1);break;case "last-visible-date":d=this.Ze;e=e.b(-1);break;case "first-visible-date":d=this.$e}d=new $.Vn($.zs(d));f=$.Xk(d); +d.add(e);d=$.Xk(d);e=Math.min(f,d);d=Math.max(f,d);f=d-e}else e=a,d=b,$.p(b)?f=b-a:(f=this.Ze-this.$e,d=a+f);var h=this.uj();f=Math.min(h.max-h.min,f);d>h.max&&(d=h.max,e=d-f);ethis.Ze){var c=this.$e-this.Ze;this.$e=Math.max(this.Ze,b);this.Ze=Math.min(this.$e+c,a)}}}; +$.g.Fn=function(a,b,c,d,e){b=e||this.sj();a=this.sj();e=a.min;var f=a.max;a=new $.Vn(new Date(e));e=f-e;do{f=$.bp(c,d);var h=a.clone();a.add(f);f=Math.ceil(e/(a.getTime()-h.getTime()));if(f>this.dl)switch(c){case "millisecond":c="second";d=1;break;case "second":59>d?d++:(d=1,c="minute");break;case "minute":59>d?d++:(d=1,c="hour");break;case "hour":23>d?d++:(d=1,c="day");break;case "day":29>d?d++:(d=1,c="month");break;case "month":11>d?d++:(d=1,c="year");break;default:d++}}while(f>this.dl);if(a="week"=== +c&&(this.eQ||this.gF)){e=b.min;f=d;var k=this.Qv,l=this.gF,m=new Date(e),n=1!==k;h=m.getMonth();var q=m=m.getFullYear();l?k=h:n?(--k,0<=h&&hf){h=d.b(-1);var r= +new $.Vn(new Date(c));do r.add(h),c=r.getTime();while(c>f)}}else r=new $.Vn(new Date(f));c=r.getTime();for(f=d;c=a?(this.lh=4,this.qm=6,this.Jl=window.NaN):(this.qm=this.lh=window.NaN,this.Jl=+a),this.Hl=this.Il=null,this.va(2)),this):this.Jl}; +$.g.count=function(a,b){return $.p(a)?(this.lh!=a&&(this.Jl=window.NaN,this.lh=Math.ceil($.N(a)),this.qm=Math.ceil($.N(b)),2<=this.lh||(this.lh=4),this.qm>=this.lh||(this.qm=this.lh),this.Hl=this.Il=null,this.va(2)),this):[this.lh,this.qm]};$.g.eF=ba(9);$.g.WF=function(a){return $.p(a)?(a=+a||0,this.Vc!=a&&(this.Vc=a,this.Hl=null,this.Il||this.va(2)),this):this.Vc}; +$.g.set=function(a){$.Ta(this.Il,a)||(this.Jl=this.qm=this.lh=window.NaN,this.Il=$.Ja(a,0),$.Ka(this.Il),$.Pa(this.Il,$.wo),this.Hl=null,this.va(2));return this};$.g.get=function(){var a=this.dk();return(0,$.Ye)(a,function(a){a=this.transform(a);return 0<=a&&1>=a},this.pa)};$.g.dk=function(){if(this.Il)var a=this.Il;else this.pa.pb(),a=this.Hl;return a||[]}; +$.g.mode=function(a){return $.p(a)?(a=String(a).toLowerCase(),a="log"==a||"logarithmic"==a?"logarithmic":"linear",this.Fm!=a&&(this.Hl=null,this.Fm=a,this.Il||this.va(2)),this):this.Fm};$.g.DB=function(a,b,c,d,e,f){this.Il?(this.Hl=null,e=[a,b],c&&(e[0]=Math.min(a,this.Il[0]||0)),d&&(e[1]=Math.max(b,this.Il[this.Il.length-1]||0))):(a="logarithmic"==this.Fm?rca(this,a,b,e||10,f||0,!!c,!!d):Tt(this,a,b,!!c,!!d,this.b,this.Vc),this.Hl=a.Ya,e=a.result);return e}; +$.g.EB=function(a,b,c,d,e){if(this.Il)this.Hl=null;else if(this.Hl?this.Hl.length=0:this.Hl=[],!(2>a.length)){b=b||10;var f="logarithmic"==this.Fm,h=f?this.P$:this.Lba,k=a.length-1,l=this.Jl,m=this.lh;if(!(0,window.isNaN)(this.Jl)){var n=a[k];var q=a[0];f&&(q=$.dn(q,b),n=$.dn(n,b));(n-q)/this.Jl>this.pa.an()&&($.kl(20,null,[n-q,this.Jl]),this.Jl=window.NaN,this.lh=4)}$.p(c)?(q=a[0],n=a[1],h.call(this,q,n,c,n,this.lh,b,e||0,!0),q=1):q=0;$.p(d)&&k--;for(c=q;c<=k-1;c++)q=a[c],n=a[c+1],h.call(this,q, +n,q,n,this.lh,b,e||0);$.p(d)&&(q=a[k],n=a[k+1],h.call(this,q,n,q,d,this.lh,b,e||0));this.Jl=l;this.lh=m}};$.g.Lba=function(a,b,c,d,e,f,h,k){Ut(this,a,b,Vt(this,c,d,e),this.Hl[this.Hl.length-1],this.Hl,k)}; +$.g.P$=function(a,b,c,d,e,f,h){function k(a){return 0>a?-m(-a+h-1):a?m(a+h-1):0}function l(a){return-m(a)}function m(a){return en(f,a)}var n=$.dn(Math.abs(c),f),q=$.dn(Math.abs(d),f),r=$.dn(Math.abs(a),f),t=$.dn(Math.abs(b),f);d*=c;c=!1;0=this.lh||(this.qm=this.lh))};var DF=$.St.prototype; +DF.interval=DF.Mba;DF.allowFractional=DF.PZ;DF.count=DF.count;DF.base=DF.WF;DF.set=DF.set;DF.get=DF.get;DF.mode=DF.mode;$.H($.Wt,$.vt);$.g=$.Wt.prototype;$.g.oL="none";$.g.pS="first-visible";$.g.Ma=function(){return"linear"};$.g.CE=function(a,b){for(var c=this.Ya().dk(),d=0,e=0;eb?(a=[a,-c,c,-a],d=[0,f(h),f(h-2),f(h-2-d)]):(a=[-b,-c,c,b],d=[f(h-2-e),f(h-2),f(h),1])):0>f?(e=e-h+d-h+2,a=[a,-c,c,b],d=[0,(d-h)/e,(d-h+2)/e,1]):(e=e-h+d-h+1,b?(a=[-b,-c,c,b],d=[-(e+1)/e,-1/e,1/e,1]):(a=[a,-c,c,-a],d=[0,(e-1)/e,(e+1)/e,(e+e+1)/e]));h=this.Oq.xe();f=ct[Ys](h[0],h[1]);d=(0,$.Wa)(d,function(a){return $.bn(a)}); +$s(this.Oq,a);this.Oq.xe((0,$.Wa)(d,f));at(this.Oq,[2,Ys,2])}; +$.g.Nz=function(a,b,c,d,e,f){e=this.pI();var h=$.dn(Math.abs(a),e),k=$.dn(Math.abs(b),e),l=Math.min(Math.floor(h),Math.floor(k),0);if(c||d){var m=a*b;0m?(2>k-l+h-l&&l--,c=Xt.u.Nz.call(this,-(h-(l-1)),k-(l-1),c,d,!1,!1),c.min=-c.min+l-1,c.max+=l-1):b?(c=Xt.u.Nz.call(this,0,k-(l-1),!1,d,!1,!1),c.max+=l-1):(c=Xt.u.Nz.call(this,-(h-(l-1)),0,c,!1,!1,!1),c.min=-c.min+l-1);c={max:en(e,c.max)*$.fb(b), +min:en(e,c.min)*$.fb(a),Kx:l};f&&(c.min=$.bn(c.min),c.max=$.bn(c.max))}else c={min:a,max:b,Kx:l};return c};$.g.D=function(){var a=Xt.u.D.call(this);a.logBase=this.pI();return a};$.g.U=function(a,b){Xt.u.U.call(this,a,b);this.pI(a.logBase)};var FF=Xt.prototype;$.E("anychart.scales.log",$.rt);FF.getType=FF.Ma;FF.transform=FF.transform;FF.inverseTransform=FF.Mc;FF.logBase=FF.pI;$.H($.Yt,$.V);$.g=$.Yt.prototype;$.g.qa=2;$.g.Dx=window.NaN;$.g.Wf=null;$.g.Iz=null;$.g.jq=null;$.g.Cx=null;$.g.Ok=null;$.g.Jz=100;$.g.HK=function(a){return $.p(a)?(a=$.P(a,window.NaN),(0,window.isNaN)(a)||this.Dx==a||(this.Dx=a,this.Jz=window.NaN,this.Ok=this.Cx=this.jq=this.Iz=null,this.va(2)),this):this.Dx};$.g.gW=function(a){return $.p(a)?(a=$.P(a,window.NaN),(0,window.isNaN)(a)||this.Jz==a||(this.Jz=a,this.Dx=window.NaN,this.Ok=this.Cx=this.jq=this.Iz=null,this.va(2)),this):this.Jz}; +$.g.set=function(a){$.Ta(this.jq,a)||(this.jq=$.Ha(a),this.jq=(0,$.Wa)(this.jq,function(a){return $.N(a)}),$.Pa(this.jq),$.Ka(this.jq),this.jq[0]=0,this.Ok=this.Cx=this.Iz=null,this.va(2));return this}; +$.g.names=function(a){if($.p(a))return this.Wf!=a&&(this.Wf=a,this.va(2)),this;a=this.dk();var b;if(this.Wf&&this.Wf.lengthh&&0>f||1b&&0>a||1=d?(l=d-1,f=!0):l--;e.push(k==l?c[k]:[c[k],c[l]])}return e};$.g.eF=ba(8); +$.g.D=function(){var a=$.Yt.u.D.call(this);this.jq?a.explicit=this.jq:(0,window.isNaN)(this.Jz)?(0,window.isNaN)(this.Dx)||(a.interval=this.Dx):a.maxCount=this.Jz;this.Wf&&(a.names=this.Wf);return a};$.g.Le=function(a,b){return $.A(b)?(this.set(b),!0):!1};$.g.U=function(a,b){$.Yt.u.U.call(this,a,b);"explicit"in a&&a.explicit?this.set(a.explicit):"interval"in a?this.HK(a.interval):"maxCount"in a&&this.gW(a.maxCount);this.Wf=a.names||null;this.Ok=this.Cx=null};var GF=$.Yt.prototype;GF.interval=GF.HK; +GF.maxCount=GF.gW;GF.set=GF.set;GF.get=GF.get;GF.names=GF.names;$.H($.$t,gt);$.g=$.$t.prototype;$.g.Ma=function(){return"ordinal"};$.g.Ak=function(a){return!$.p(a)};$.g.Ya=function(a){this.mb||(this.mb=new $.Yt(this),$.W(this,"ticks",this.mb),$.K(this.mb,this.li,this));return $.p(a)?(this.mb.N(a),this):this.mb};$.g.values=function(a,b){if(!$.p(a))return this.ih;if(null===a)this.TF||(this.TF=!0,this.va(4));else{this.TF=!1;var c=$.A(a);this.Co();c&&a.length?this.Xc.apply(this,a):this.Xc.apply(this,arguments);this.IC(!0)&&this.va(6)}return this}; +$.g.names=function(a){if($.p(a)){if(null===a)this.Wf=[];else if($.A(a))this.Wf=$.Ha(a);else{if(!$.z(a)||this.Wf==a)return this;this.Wf=a}this.Sn=null;$.Zt(this.Ya());this.va(2);return this}if($.A(this.Wf)){this.Sn||(this.Sn=$.Ha(this.Wf));if(this.Sn.lengthk){var n=~k;$.Da(d,m,n);(k=this.search("id",m))?(k=$.J(k,$.nu)?k:k[0],$.Da(e,k,n),k.o("nc",!0),$.kl(1,null,[m])):$.Da(e,l,n)}else $.kl(2,null,[m])}for(b=0;bk?((k=this.search("id",l))?(k=$.J(k,$.nu)?k:k[0],pu(k,f)):(this.Iq.push(f),$.kl(3,null,[l])),tu(this,f)):(k=e[k],pu(k,f),k.o("nc")&&tu(this,f))):(this.Iq.push(f), +tu(this,f));h.length&&this.va(16);this.da(!0);break;default:this.ka();b=0;for(d=a.length;bc||b>d)return 1;if(ac)return 1}else if(e.height){if(bd)return 1}return 0}; +$.g.aS=function(a,b){var c=this.g("minFontSize"),d=this.g("maxFontSize"),e=Math.round((d+c)/2),f=d,h=$.sk();h.Dd("aria-hidden","true");this.bi(h,!0);h.fontSize(d);if(0>=this.fo(h.sb().width,h.sb().height,a,b))return d;h.fontSize(e);for(var k=d=this.fo(h.sb().width,h.sb().height,a,b);c!=f;){if(0>d)c=Math.min(e+1,f),e+=Math.floor((f-e)/2);else if(0=k*d)break}if(!d)return $.qd(h),e;do e+= +k,h.fontSize(e),d=this.fo(h.sb().width,h.sb().height,a,b);while(0>k*d);$.qd(h);0b.indexOf("\n"))&&!this.g("useHtml")?this.VW:this.ad.sb();var c=b.width,d=b.height,e=$.$b(this.g("iconStroke")),f=this.op+e;if(a){var h=a.width;var k=a.height}else h=k=void 0;var l=$.L(this.g("maxWidth"),h);e=h?$.L(this.g("x"),h):0;k=k?$.L(this.g("y"),k):0;var m=this.Fs?f+this.g("iconTextSpacing"):0;this.RF=window.NaN;l?(h=l-m,c&&c>h&&"..."==this.ad.textOverflow()?this.RF=h/c:(this.ad.width(h),b=this.ad.sb()),c=l):(l=h?Math.min(h-m,c): +c,l=Math.max(l,1E-5),"..."==this.ad.textOverflow()&&c&&c>l&&(this.RF=l/c),c=l+m);l=this.ad.ea;if(1a?null:a;$.p(this.height())||this.B(4)};$.g.margin=function(a,b,c,d){this.Qc||(this.Qc=new $.Uv,$.K(this.Qc,this.Pk,this),$.W(this,"margin",this.Qc));return $.p(a)?(this.Qc.N.apply(this.Qc,arguments),this):this.Qc}; +$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.W(this,"padding",this.Wa),$.K(this.Wa,this.Pk,this));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa};$.g.Zd=function(a,b){if($.p(a)){if($.z(a))if($.p(b)){if(a in this.j)this[a](b)}else return this.nd(a);else if($.C(a))for(var c in a)if(c in this.j)this[c](a[c]);return this}c={};for(var d in this.j){var e=this.g(d);$.p(e)&&(c[d]=e)}return c}; +$.g.W=function(){if(!this.zc())return this;var a=nw(this),b=this.O();this.ka();this.J(2)&&(this.wb.parent(b),this.I(2));this.J(8)&&(this.wb.zIndex(this.zIndex()),this.I(8));this.J(16)&&(this.bi(a),this.I(16));this.J(4)&&(ow(this),this.kc.x($.L(this.padding().g("left"),this.f)),this.kc.y($.L(this.padding().g("top"),this.b)),this.wb.pc(this.i.od,this.i.We,this.i.gf,this.i.Ke,this.i.Kd,this.i.Gd),this.B(64),this.I(4));this.J(64)&&(a=this.background(),a.ka(),a.ja(0,0,this.f,this.b),a.W(),a.da(!1),this.I(64)); +this.da(!1);return this};$.g.remove=function(){this.wb?this.wb.parent(null):this.kc&&this.kc.parent(null)};$.g.zd=function(){var a=this.ja();a=a?a.clone():$.rn(0,0,0,0);if(!this.enabled())return a;this.ac&&!this.J(4)||ow(this);switch(this.g("orientation")){case "top":a.top+=this.ac.height;a.height-=this.ac.height;break;case "right":a.width-=this.ac.width;break;case "bottom":a.height-=this.ac.height;break;case "left":a.left+=this.ac.width,a.width-=this.ac.width}return a};$.g.gH=ba(3); +$.g.yi=function(){if(!this.enabled())return new $.I(0,0,0,0);this.ac&&!this.J(4)||ow(this);return this.ac.clone()};$.g.uk=function(){var a=this.g("text"),b=$.mw(this);if($.p(a)||$.p(b))return a=!a&&$.p(b)?b:a,b=this.g("maxLength"),a=Nu(a,b)}; +$.g.bi=function(a){var b=this.g("useHtml"),c=this.uk();if(a||$.p(c)||$.p(b))b?this.kc.htmlText(c):this.kc.text(c);this.kc.fontSize(this.g("fontSize"));this.kc.fontFamily(this.g("fontFamily"));this.kc.color(this.g("fontColor"));this.kc.direction(this.g("textDirection"));this.kc.Xu(this.g("wordBreak"));this.kc.wordWrap(this.g("wordWrap"));this.kc.opacity(this.g("fontOpacity"));this.kc.er(this.g("fontDecoration"));this.kc.fontStyle(this.g("fontStyle"));this.kc.fontVariant(this.g("fontVariant"));this.kc.fontWeight(this.g("fontWeight")); +this.kc.letterSpacing(this.g("letterSpacing"));this.kc.lineHeight(this.g("lineHeight"));this.kc.textIndent(this.g("textIndent"));this.kc.textShadow(this.g("textShadow"));this.kc.vAlign(this.g("vAlign"));this.kc.Bm(this.g("hAlign"));this.kc.textOverflow(this.g("textOverflow"));this.kc.Hm(this.g("selectable"));this.kc.Ed(this.g("disablePointerEvents"))}; +$.g.AA=function(){var a=this.nd("rotation");delete this.Od.rotation;a=$.p(a)?a:this.g("rotation");if($.p(a))return a;switch(this.g("orientation")){case "left":return this.Od.rotation=-90;case "right":return this.Od.rotation=90;default:return this.Od.rotation=0}};$.g.vg=function(a){$.X(a,1)&&this.B(64,1)};$.g.Pk=function(a){$.X(a,2)&&this.B(4,9)};$.g.clear=function(){this.wb&&this.wb.Gi()}; +$.g.D=function(){var a={},b=$.V.prototype.g.call(this,"zIndex");$.p(b)&&(a.zIndex=b);b=$.V.prototype.g.call(this,"enabled");$.p(b)&&(a.enabled=b);$.cr(this,this.j,a,"Title text");$.cr(this,this.K,a,"Title props");b=this.margin().D();$.Jc(b)||(a.margin=b);b=this.padding().D();$.Jc(b)||(a.padding=b);b=this.background().D();$.Jc(b)||(a.background=b);return a};$.g.he=function(a){return $.z(a)?{text:a,enabled:!0}:$.da(a)||null===a?{enabled:!!a}:null}; +$.g.Le=function(a,b){var c=this.he(b);return c?(a?(this.oa.enabled=c.enabled,"text"in c&&(this.oa.text=c.text)):(this.enabled(c.enabled),"text"in c&&this.text(c.text)),!0):!1};$.g.U=function(a,b){$.iw.u.U.call(this,a,b);$.Vq(this,this.j,a,b);$.Vq(this,this.K,a,b);"padding"in a&&this.padding().ga(!!b,a.padding);"margin"in a&&this.margin().ga(!!b,a.margin);"background"in a&&this.background().ga(!!b,a.background)}; +$.g.R=function(){$.sd(this.Ia,this.Qc,this.Wa,this.wb);this.wb=this.Wa=this.Qc=this.Ia=null;$.iw.u.R.call(this)};$.H(pw,$.iw);$.Hu(pw,$.iw);pw.prototype.gr=function(){var a=this.width(),b=this.height();return $.Bo(a)||$.Bo(b)||null===a||null===b};var jG=$.iw.prototype;jG.textSettings=jG.Zd;jG.background=jG.background;jG.margin=jG.margin;jG.padding=jG.padding;jG.getRemainingBounds=jG.zd;jG=pw.prototype;$.E("anychart.standalones.title",function(){var a=new pw;a.ga(!0,$.um("standalones.title"));return a}); +jG.draw=jG.W;jG.parentBounds=jG.ja;jG.container=jG.O;$.H(qw,$.od);$.g=qw.prototype;$.g.getContext=function(){return{parentElement:this.b,titleElement:this.j,separatorElement:this.f,contentElement:this.i}};$.g.Za=function(){sw(this);return this.b};$.g.WP=function(){var a=$.Uf(this.Za(),"margin");$.Cf(this.Za(),this.gb.G.x-a.left,this.gb.G.y-a.top)};$.g.visible=function(a){return $.p(a)?($.Pf(this.Za(),!!a),this):"none"!=this.Za().style.display};$.g.sb=function(){var a=$.Kf(this.Za());return new $.I(0,0,a.width,a.height)}; +$.g.O=function(a){if($.p(a)&&this.Jc!=a)if(null===a)this.remove();else return this.Jc=a,a=this.Za(),this.Jc.appendChild(a),this;return this.Jc};$.g.remove=function(){this.b&&($.Xe(this.b),this.Jc=null)};$.g.R=function(){this.remove();this.b=this.j=this.f=this.i=this.gb=null;qw.u.R.call(this)};$.H(uw,$.od);var Uda={position:"absolute","z-index":9999,left:0,top:0,width:"100%",height:"100%","pointer-events":"none"},kG={position:"relative",left:0,top:0,overflow:"hidden",width:"100%",height:"100%"},Vda={position:"relative",left:0,top:0,opacity:1,"pointer-events":"none"};$.g=uw.prototype;$.g.R_=function(){$.uf(this.Ir,Uda);$.uf(this.b.Tl(),kG);$.uf(this.b.ia(),Vda)}; +$.g.O=function(a){return $.p(a)?(a!=this.Jc&&((this.Jc=a)?(this.Jc.appendChild(this.Ir),this.R_(),this.b.Dt()):$.Xe(this.Ir)),this):this.Jc};$.g.Ka=function(){return this.b};$.g.NA=function(){return!0};$.g.Hm=function(a){return $.p(a)?(this.j=a,this):this.j};$.g.R=function(){$.qd(this.b);this.b=null;$.Xe(this.Ir);this.Ir=null};$.H(vw,$.od);$.g=vw.prototype;$.g.fe=0;$.g.R=function(){vw.u.R.call(this);this.stop();delete this.b;delete this.qo};$.g.start=function(a){this.stop();this.fe=$.Dj(this.f,$.p(a)?a:this.i)};$.g.stop=function(){this.uq()&&$.Ej(this.fe);this.fe=0};$.g.uq=function(){return 0!=this.fe};$.g.Mfa=function(){this.fe=0;this.b&&this.b.call(this.qo)};$.H(xw,$.qf);xw.prototype.R=function(){Zd(this.j);xw.u.R.call(this)};xw.prototype.F=function(){this.f||(this.f=new vw(this.G,this.K,this),$.rd(this,this.f));this.f.start()};xw.prototype.G=function(){if(!this.i.md){var a=this.b,b=ww(this.i);this.b=b;if(a){var c=!1;a.width!=b.width&&(this.dispatchEvent("b"),c=!0);a.height!=b.height&&(this.dispatchEvent("a"),c=!0);c&&this.dispatchEvent("resize")}else this.dispatchEvent("a"),this.dispatchEvent("b"),this.dispatchEvent("resize")}};$.H(yw,$.qf);yw.prototype.R=function(){yw.u.R.call(this);this.i&&(Zd(this.i),this.i=null);this.b=this.f=null};yw.prototype.j=function(){var a=$.Ee(this.f||window);$.mb(a,this.b)||(this.b=a,this.dispatchEvent("resize"))};$.H(zw,uw);$.ja(zw);var Wda={position:"absolute","z-index":9999,left:"-10000px",top:"-10000px"},Xda={position:"absolute","z-index":9999,left:0,top:0},Yda={position:"fixed",left:0,top:0,opacity:1,"pointer-events":"none"},Zda={position:"fixed",left:0,top:0,opacity:1,width:"1px",height:"1px"},$da={position:"fixed",left:0,top:0,opacity:1,"pointer-events":"none",overflow:"",display:"",width:"",height:""}; +zw.prototype.R_=function(){var a=window.document;$.hd&&(!$.bd("7")||a.documentMode&&6>=a.documentMode)?$.uf(this.Ir,Xda):$.uf(this.Ir,Wda);"svg"==$.kk?($.uf(this.Ka().Tl(),kG),$.uf(this.Ka().ia(),Yda)):($.uf(this.Ka().Tl(),Zda),$.uf(this.Ka().ia(),$da));this.F()};zw.prototype.F=function(){if("svg"==$.kk){var a=this.f;a=a.b?a.b.clone():null;this.Ka().resize(a.width,a.height)}};zw.prototype.NA=function(){return!1};zw.prototype.R=function(){$.sd(this.i,this.f);this.f=this.i=null;zw.u.R.call(this)};$.H($.Ew,$.Y);$.Ew.prototype.sa=$.Y.prototype.sa|6080;var Bw=1988;$.Ew.prototype.qa=$.Y.prototype.qa|49152;var Cw=1,Dw=2;$.Ew.prototype.ba=$.Fq();$.U($.Ew,$.Ew.prototype.ba);var aea=$.Ew.prototype,lG={}; +$.Cq(lG,[[0,"width",$.lr],[0,"height",$.lr],[0,"titleFormat",$.kr],[0,"format",$.kr],[0,"unionFormat",$.kr],[0,"valuePrefix",$.Mq],[0,"valuePostfix",$.Mq],[0,"position",$.Ek],[0,"anchor",$.Dk],[0,"offsetX",$.Oq],[0,"offsetY",$.Oq],[0,"x",$.Oq],[0,"y",$.Oq],[0,"allowLeaveScreen",$.Qq],[0,"allowLeaveChart",$.Qq],[0,"allowLeaveStage",$.Qq],[0,"displayMode",function(a){return $.zk(Fda,a,"single")}],[0,"positionMode",function(a){return $.zk(Gda,a,"float")}],[0,"onDomReady",$.qr],[0,"onBeforeTitleChange", +$.qr],[0,"onTitleChanged",$.qr],[0,"onBeforeContentChange",$.qr],[0,"onContentChanged",$.qr],[0,"hideDelay",$.Oq]]);aea.OQ=lG;$.U($.Ew,$.Ew.prototype.OQ);$.g=$.Ew.prototype;$.g.Lc=function(a,b){for(var c in this.j){var d=this.j[c];d&&d.Lc(a,b)}return Tw(this,a,b)}; +$.g.Zd=function(a,b){if($.p(a)){if($.z(a))if($.p(b)&&a in this.ba)this[a](b);else return this.g(a);else{this.ka();for(var c in a)if(c in this.ba)this[c](a[c]);this.da(!0)}return this}var d={};for(c in this.ba){var e=this.g(c);$.p(e)&&(d[c]=e)}return d};$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.K(this.Wa,this.Wia,this),$.W(this,"padding",this.Wa));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa};$.g.Wia=function(a){$.X(a,2)&&(this.xE(),this.B(Bw,1))}; +$.g.background=function(a){this.Ia||(this.Ia=new $.Iu,$.K(this.Ia,this.vg,this),this.Ia.kb(this),$.W(this,"background",this.Ia));return $.p(a)?(this.Ia.N(a),this):this.Ia};$.g.vg=function(a){$.X(a,1)&&this.B(1024,1)};$.g.title=function(a){this.jb||(this.jb=new $.iw,$.K(this.jb,this.gB,this),this.jb.kb(this),$.W(this,"title",this.jb));return $.p(a)?(this.jb.N(a),this):this.jb};$.g.gB=function(a){$.X(a,8)?(this.xE(),this.B(Bw,1)):$.X(a,1)&&this.B(128,1)}; +$.g.$r=function(a){this.aa||(this.aa=new gw,$.K(this.aa,this.jja,this),this.aa.kb(this),$.W(this,"separator",this.aa));return $.p(a)?(this.aa.N(a),this):this.aa};$.g.jja=function(a){$.X(a,8)?(this.xE(),this.B(Bw,1)):$.X(a,1)&&this.B(256,1)}; +$.g.W=function(){$.Sw(this);var a=this.g("useHtml");if(a){if(this.pf()||this.md)return this;if(!this.enabled())return this.J(1)&&(this.remove(),this.I(1),this.B(2)),this;if(!this.i.O())return this.remove(),this.I(2),this;this.I(1)}else if(!this.zc())return this;var b=this.background(),c=this.title(),d=this.$r(),e=this.Ri();Qw(this,this);this.J(8)&&(Pw(this).zIndex(this.zIndex()),this.I(8));if(this.J(4)){Zw(this);var f=this.P;this.na=this.padding().Ej(f);this.Ja=this.ea=null;this.I(4)}this.J(64)&& +(this.G=null,$w(this),a?this.i.WP():Pw(this).pc(1,0,0,1,this.G.x,this.G.y),this.I(64));a?tw(this.i):(this.J(1024)&&(b.ka(),b.ja(this.P),b.O(Pw(this)),b.W(),b.da(!1),this.I(1024)),this.J(128)&&(c.ka(),c.ja(this.na),c.W(),c.da(!1),!this.ea&&c.enabled()&&(this.ea=c.zd()),this.I(128)),this.J(256)&&(d.ka(),d.ja(this.ea||this.na),d.W(),d.da(!1),!this.Ja&&d.enabled()&&(this.Ja=d.zd()),this.I(256)),this.J(512)&&(a=this.Ja||this.ea||this.na,e.ka(),this.bi(),e.ja(a),e.W(),e.da(!1),this.I(512)),this.J(4096)&& +this.I(4096));return this};$.g.ya=function(a){return $.p(a)?(this.ra=a,this):this.ra};$.g.WP=function(a,b){var c=this.g("displayMode");"single"==c&&(Jw(this,this.b,a,b),Rw(this.b,a,b));if("union"==c)Jw(this,this.b,a,b),Rw(this.b,a,b);else if("separated"==c)for(var d in this.j)if(c=this.j[d])Uw(this,c,a,b),Rw(c,a,b)}; +$.g.Ri=function(a){this.Rd||(this.Rd=new $.Fv,$.K(this.Rd,this.Kia,this),this.Rd.kb(this),this.Rd.width("100%").height("100%"),$.W(this,"contentInternal",this.Rd));return $.p(a)?(this.Rd.N(a),this):this.Rd};$.g.Kia=function(a){$.X(a,8)?(this.xE(),this.B(Bw,1)):$.X(a,1)&&this.B(512,1)};$.g.xE=function(){this.G=this.P=null};$.g.remove=function(){this.g("useHtml")&&this.i&&this.i.remove();Pw(this).parent(null)};$.g.Wj=function(){return this.Xa||this.check(Cw)&&!$.Jc(this.j)}; +$.g.ob=function(){this.G=null;$w(this);var a=this.g("useHtml"),b=a?0:this.g("offsetX");a=a?0:this.g("offsetY");return new $.I(this.G.x+b,this.G.y+a,this.P.width,this.P.height)};$.g.yi=function(){Zw(this);return this.P};$.g.bi=function(){if(this.J(512)){this.Ri().ka();for(var a in this.ba){var b=this.g(a);$.p(b)&&this.Ri().Zd(a,b)}this.Ri().adjustFontSize(this.g("adjustFontSize"));this.Ri().minFontSize(this.g("minFontSize"));this.Ri().maxFontSize(this.g("maxFontSize"));this.Ri().da(!1)}}; +$.g.tL=function(){this.F&&this.F.uq()?this.$a=!0:($.qd(this.F),this.F=new vw(function(){this.remove();this.$a&&(this.$a=!1,this.tL())},this.g("hideDelay"),this))};$.g.ZN=function(a){if(Xw(this,a.clientX,a.clientY))this.f.NA()||this.f.Hm(!0);else{$.Yd(window.document,"mousemove",this.ZN,!1,this);var b=Pw(this).ia();b&&($.Yd(b,"mouseenter",this.vY,!1,this),$.Yd(b,"mouseleave",this.wY,!1,this));this.eN(a)}}; +$.g.vY=function(){$.Yd(window.document,"mousemove",this.ZN,!1,this);Pw(this).ia()&&$.Yd(Pw(this).ia(),"mouseenter",this.vY,!1,this);this.K=null};$.g.wY=function(a){Pw(this).ia()&&$.Yd(Pw(this).ia(),"mouseleave",this.wY,!1,this);this.eN(a)};$.g.eN=function(a){if(2==a.kf.buttons)return!0;this.f.NA()||this.f.Hm(!1);Pw(this).ia()&&$.Yd(Pw(this).ia(),"mouseleave",this.eN,!1,this);this.K=null;this.g("hideDelay")?(this.tL(),this.F.uq()||this.F.start()):this.Lc(!0)}; +$.g.parent=function(a){if($.p(a)){if(this.Y!=a){var b=String($.oa(this));null===a?($.ur(this.Y,this.Tc,this),this.title().parent(null),this.$r().parent(null),this.background().parent(null),this.padding().parent(null),this.Ri().parent(null),this.Ri().padding().parent(null),delete this.Y.j[b],this.Y=null):(this.Y&&$.ur(this.Y,this.Tc,this),this.Y=a,this.title().df().parent(this.Y.title()),this.$r().df().parent(this.Y.$r()),this.background().df().parent(this.Y.background()),this.padding().parent(this.Y.padding()), +this.Ri().parent(this.Y.Ri()),this.Ri().padding().parent(this.Y.Ri().padding()),this.Y.j[b]=this,this.aL(),$.K(this.Y,this.Tc,this))}return this}return this.Y};$.g.Tc=function(a){var b=0,c=0;this.aL();if($.X(a,8)||$.X(a,1))b|=Bw,c|=8,this.xE();$.X(a,32768)&&(b|=1,c|=1);this.Xb=null;this.B(b,c)};$.g.ph=function(a){return null!=this.Pa[a]};$.g.g=$.sr;$.g.check=function(a){return $.p(a)?!!(a&this.eb):!0}; +$.g.aL=function(){if(this.g("useHtml")){if(!fF){fF=!0;var a=$.ye(),b=$.Ae(a.b,"HEAD",void 0,void 0)[0];if(!b){var c=$.Ae(a.b,"BODY",void 0,void 0)[0];b=a.Ac("HEAD");c.parentNode.insertBefore(b,c)}c=a.Ac("STYLE");c.innerHTML=".anychart-tooltip {border-radius: 3px;padding: 5px 10px;background: rgba(33, 33, 33, 0.7);border: none;display: inline-block;box-sizing: border-box;letter-spacing: normal;color: #fff;font-family: Verdana, Helvetica, Arial, 'sans-serif';font-size: 12px;position: absolute;pointer-events: none;margin: 10px 0px 10px 10px;}.anychart-tooltip-separator {color: rgba(206, 206, 206, 0.3);border: none;height: 1px;margin: 5px 0;}.anychart-tooltip-title{font-size: 14px;}"; +a.Wga(b,c,0)}this.i||(this.i=new qw(this))}else this.i&&this.i.remove();for(var d in this.j)this.j[d].aL();this.G=this.P=null};$.g.jg=function(a){$.p(a)&&(this.Xb=a);return this.Xb};$.g.bh=function(){var a=this.jg();a||(a=$.Ga(this.Wd(),[this.Ha],this.Xd()),this.jg(a));return a};$.g.Xd=function(){var a=[this.oa];this.Y&&(a=$.Ga(a,this.Y.Xd()));return a};$.g.Wd=function(){var a=[this.Pa];this.Y&&(a=$.Ga(a,this.Y.Wd()));return a}; +$.g.D=function(){var a=$.Ew.u.D.call(this);$.cr(this,this.ba,a,void 0,void 0,!0);$.cr(this,this.OQ,a,void 0,void 0,!0);delete a.x;delete a.y;delete a.zIndex;var b=this.title().D();$.Jc(b)||(a.title=b);b=this.$r().D();$.Jc(b)||(a.separator=b);b=this.background().D();$.Jc(b)||(a.background=b);b=this.padding().Pa;$.Jc(b)||(a.padding=b);return a}; +$.g.U=function(a,b){$.Ew.u.U.call(this,a,b);$.Vq(this,this.ba,a,b);$.Vq(this,this.OQ,a,b);this.title().ga(!!b,a.title);this.$r().ga(!!b,a.separator);this.background().ga(!!b,a.background);this.padding().ga(!!b,a.padding);var c=a.contentInternal||{};c.position=c.position?c.position:"left-top";c.anchor=c.anchor?c.anchor:"left-top";this.Ri(c)}; +$.g.R=function(){delete this.Pa;delete this.oa;if(this.Y){var a=String($.oa(this));$.ur(this.Y,this.Tc,this);delete this.Y.j[a]}for(var b in this.j)(a=this.j[b])&&$.qd(a);this.f&&!this.f.NA()&&this.O(null);$.sd(this.jb,this.aa,this.Rd,this.Ia,this.Wa,this.Oa,this.F,this.i);this.i=this.F=this.Oa=this.Wa=this.Ia=this.Rd=this.aa=this.jb=null;if(this.f&&this.f.NA()&&ax(this)){a=!0;for(b in Aw)if(Aw.hasOwnProperty(b)){var c=Aw[b];if(c!=this&&this.f==c.f){a=!1;break}}a&&(b=bx(this),delete cx[b],$.qd(this.f))}delete this.f; +delete Aw[String($.oa(this))];$.Ew.u.R.call(this)};var mG=$.Ew.prototype;mG.title=mG.title;mG.separator=mG.$r;mG.background=mG.background;mG.padding=mG.padding;mG.hide=mG.Lc;mG.textSettings=mG.Zd;$.H($.dx,Bv);$.dx.prototype.qa=Bv.prototype.qa; +var nG=function(){function a(a){return function(b){var c="itemsSpacing"==a?(0,window.parseFloat)(b):Number(b);return null===b?this.vf(a):(0,window.isNaN)(c)?this.g(a):c}}var b={};$.Cq(b,[[0,"inverted",$.Qq],[0,"itemsLayout",eba],[0,"iconSize",$.N],[0,"width",$.Pq],[0,"height",$.Pq],[0,"maxWidth",$.Pq],[0,"maxHeight",$.Pq],[0,"position",function(a){return $.C(a)?(a.x=$.L(a.x)||0,a.y=$.L(a.y)||0,a):$.Hk(a)}],[0,"positionMode",hba],[0,"drag",$.Qq],[0,"itemsFormat",$.Pq],[0,"titleFormat",$.Pq],[0,"itemsHAlign", +Fk],[0,"itemsSpacing",a("itemsSpacing")],[0,"itemsSourceMode",pba],[0,"hoverCursor",Ck],[0,"iconTextSpacing",a("iconTextSpacing")],$.Z.eK]);return b}();$.U($.dx,nG);$.g=$.dx.prototype;$.g.sa=Bv.prototype.sa|4032;$.g.items=function(a){return $.p(a)?(this.Ja!=a&&(this.Ja=a,this.B(1040,1)),this):this.Ja};$.g.RA=function(a){return $.p(a)?(a=$.A(a)?$.Ja(a,0):null===a?a:[a],ex(this,a)||(this.f=a,this.B(1040,1)),this):this.f}; +$.g.qR=function(a){return $.p(a)?(this.aa!=a&&(this.aa=a,this.B(1040,1)),this):this.aa};$.g.margin=function(a,b,c,d){this.Qc||(this.Qc=new $.Uv,$.K(this.Qc,this.Pk,this),$.W(this,"margin",this.Qc));return $.p(a)?(this.Qc.N.apply(this.Qc,arguments),this):this.Qc};$.g.Pk=function(a){$.X(a,2)&&this.B(4,9)};$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.K(this.Wa,this.Pk,this),$.W(this,"padding",this.Wa));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa}; +$.g.background=function(a){this.Ia||(this.Ia=new $.Iu,$.K(this.Ia,this.vg,this),$.W(this,"background",this.Ia));return $.p(a)?(this.Ia.N(a),this):this.Ia};$.g.vg=function(a){$.X(a,1)&&this.B(64,1)};$.g.title=function(a){this.jb||(this.jb=new $.iw,$.K(this.jb,this.Mq,this),this.jb.kb(this),$.W(this,"title",this.jb));return $.p(a)?(this.jb.N(a),this):this.jb};$.g.Mq=function(a){var b=0,c=0;$.X(a,1)&&(b|=128,c|=1);$.X(a,8)&&(b|=4,c|=8);this.B(b,c)}; +$.g.uY=function(a){this.i||(this.i=new gw,$.K(this.i,this.fla,this),$.W(this,"titleSeparator",this.i));return $.p(a)?(this.i.N(a),this):this.i};$.g.fla=function(a){var b=0,c=0;$.X(a,1)&&(b|=256,c|=1);$.X(a,8)&&(b|=4,c|=8);this.B(b,c)};$.g.WI=function(a){this.K||(this.K=new $v,$.K(this.K,this.tja,this),$.W(this,"paginator",this.K));return $.p(a)?(this.K.N(a),this):this.K};$.g.tja=function(a){var b=0,c=0;$.X(a,1)&&(b|=512,c|=1);$.X(a,8)&&(b|=4,c|=8);this.B(b,c)}; +$.g.Ua=function(a){this.gb||(this.gb=new $.Ew(0),$.K(this.gb,this.Ap,this),$.Iw(this.gb,this),this.gb.Ga($.Er.tooltip),$.W(this,"tooltip",this.gb),this.gb.ga(!0,this.gb.oa));return $.p(a)?(this.gb.N(a),this):this.gb};$.g.Ap=function(){var a=this.Ua();a.O()&&a.W()};$.g.ja=function(a,b,c,d){return $.dx.u.ja.call(this,a,b,c,d)}; +$.g.zd=function(){var a=this.ja()||$.rn(0,0,0,0);if(!this.enabled()||"inside"==this.g("positionMode"))return a;this.ac&&!this.J(4)||this.Mm();var b=this.g("position");if($.C(b))return a;switch(b){case "top":a.top+=this.ac.height;a.height-=this.ac.height;break;case "right":a.width-=this.ac.width;break;default:case "bottom":a.height-=this.ac.height;break;case "left":a.left+=this.ac.width,a.width-=this.ac.width}return a};$.g.ob=function(){this.ac&&!this.J(4)||this.Mm();return this.ac}; +$.g.R5=function(a){if(void 0===this.Na)this.AW=!0,this.zW=[a];else{this.AW=!1;this.zW=null;var b=this.ob(),c=this.ja();this.ea=a.x;this.na=a.y;this.EG=!0;this.Lb=(this.ea-c.left)/c.width;this.mc=(this.na-c.top)/c.height;this.$b=(c.width-(this.ea-c.left+b.width))/c.width;this.rb=(c.height-(this.na-c.top+b.height))/c.height;this.B(4,1)}};$.g.Baa=function(){if(void 0===this.Na)return null;var a=this.Na.Qd;return{x:a.Kd,y:a.Gd}}; +$.g.Mm=function(){var a=this.ja();null!=a&&0>=a.width&&0>=a.height&&(a=null);var b=this.margin(),c=this.padding(),d=0,e=0,f=this.g("width"),h=this.g("height"),k=this.g("maxWidth"),l=this.g("maxHeight");if(a){var m=a.width;var n=a.height;if(null!=f){var q=Math.min(m,$.L(f,m),null!=k?$.L(k,m):m);k=c.Ng(b.Ng(q))}else k=null!=k?c.Ng(b.Ng($.L(k,m))):c.Ng(b.Ng(m));if(null!=h){var r=Math.min(n,$.L(h,n),null!=l?$.L(l,n):n);var t=c.Yh(b.Yh(r))}else t=null!=l?c.Yh(b.Yh($.L(l,n))):c.Yh(b.Yh(n))}else $.ea(f)&& +!(0,window.isNaN)(f)?(q=f,k=c.Ng(f)):k=$.ea(k)&&!(0,window.isNaN)(k)?c.Ng(k):window.Infinity,$.ea(h)&&!(0,window.isNaN)(h)?(r=h,t=c.Yh(h)):t=$.ea(l)&&!(0,window.isNaN)(l)?c.Yh(l):window.Infinity;var u,v;h=$.Gr(this,"titleSeparator");l=$.Gr(this,"paginator");f=$.Gr(this,"title");var w=l&&l.g("orientation"),x="bottom"==w||"top"==w,y=f&&(f.g("orientation")||$.lw(f));y=y&&("bottom"==y||"top"==y);var B=f?0==f.AA()%180:0,F=h&&h.Ob();h&&h.ka();l&&l.ka();f&&f.ka();var G=u=null;do{u&&(G=u);var M=v=0,O=0,Q= +0;if(f&&f.enabled()){f.ja(null);kw(f,null);f.zB(null);var S=f.yi();y?(S.width>k&&(B?kw(f,k):f.zB(k),S=f.yi()),Q=S.width,v+=S.height):(S.height>t&&(B?f.zB(t):kw(f,t),S=f.yi()),O=S.height,M+=S.width)}else S=null;h&&h.enabled()?(h.ja(null),u=h.yi(),F?v+=u.height:M+=u.width):u=null;var wa=k-M;var sa=Gca(this,wa,t-v);var Qa=sa.width;sa=sa.height;v+=sa;M+=Qa;O=Math.max(O,sa);Q=Math.max(Q,Qa);M=Math.max(Q,M);Q=Math.max(O,v);O=t;y&&(O-=S?S.height:0);F&&(O-=u?u.height:0);l.ja(null);v=fw(l,1);var xb=this.g("itemsLayout"); +if("horizontal"==xb)Qa>wa&&this.Ub&&1wa&&1O&&this.Ub&&1=k-S.width?mc=hb:mc=Qa;S=Math.max(Math.min(f.text().length,1),f.margin().Ng(M-xb<=mc?M-mc:xb));kw(f,S)}else if(!B&&Q>t){S=0;u&&F&&(S+=u.height);if("top"==w||"bottom"==w)S+=v.height;Qa=dw(l)&&!x?v.height:0;Qa=Math.max(this.Ub&&this.Ub.length?this.Ub[0].ob().height:0,Qa);S=Math.max(1,f.margin().Yh(t-S-Qa));B?f.zB(S):kw(f,S)}S=f.yi();h&&(h.width(wa),u=h.yi())}else S=f.yi(),h&&(h.width(sa),u=h.yi());y?O-=S.height:M-=S.width}h&&h.enabled()&&(F?O-=u.height:M-=u.width);S=M;u=O;dw(l)&&(x?u=O-v.height: +S=M-v.width);Qa=S;M=u;this.b=[];u=0;O=this.Ub&&this.Ub.length;v=this.g("itemsSpacing");for(S=0;SQa?(u++,this.b[u]=[],this.b[u][0]=this.Ub[S],M=this.Ub[S].ob().Ad()):(M=M+v+this.Ub[S].ob().Ad(),this.b[u].push(this.Ub[S])));break;case "vertical":Qa=this.Ub[S].ob().qd();S+=1;for(O=this.Ub.length;S< +O;S++)S in this.G||(Qa+v+this.Ub[S].ob().qd()>M?(u++,this.b[u]=[],this.b[u][0]=this.Ub[S],Qa=this.Ub[S].ob().qd()):(Qa=Qa+v+this.Ub[S].ob().qd(),this.b[u].push(this.Ub[S])));break;case "horizontal-expandable":var dc=this.Ub[S].ob().Ad()+v,Ib=this.Ub[S].ob().qd()+v,Ac=0;for(S+=1;SQa?(Ac+=Ib,Ac+Q>M?(u++,this.b[u]=[],this.b[u][0]=hb,Ac=0):this.b[u].push(hb),dc=xb+v,Ib=Q+v):(dc+=xb+v,Ib=Math.max(Ib,Q+v),this.b[u].push(hb)));break; +case "vertical-expandable":for(dc=this.Ub[S].ob().Ad()+v,Ib=this.Ub[S].ob().qd()+v,Ac=0,S+=1;SM?(Ac+=dc,Ac+xb>Qa?(u++,this.b[u]=[],this.b[u][0]=hb,Ac=0):this.b[u].push(hb),dc=xb+v,Ib=Q+v):(dc=Math.max(dc,xb+v),Ib+=Q+v,this.b[u].push(hb)))}(v=$.Gr(this,"paginator"))&&Vv(v,u+1);l.ja(null);u=l.ob()}while(!$.nb(G,u));q||(q=wa);r||(r=sa);this.ac=new $.I(d,e,q,r);if(this.EG)d=this.Lba.cb()&&(d=a.cb()-q),ea.Va()&&(e=a.Va()-r));else if(a){b=this.g("position");c=this.g("align");d=a.tb();e=a.Vb();switch(b){case "left":case "right":switch(c){case "center":e+=(n-r)/2;break;case "right":case "bottom":e=a.Va()-r}break;case "top":case "bottom":switch(c){case "center":d+=(m-q)/2;break;case "right":case "bottom":d= +a.cb()-q}}switch(b){case "right":d=a.cb()-q;break;case "bottom":e=a.Va()-r}}else d=$.L(b.g("left"),0),e=$.L(b.g("top"),0);this.ac.left=d;this.ac.top=e;this.padding().Ej(this.margin().Ej(this.ac));a=this.ac.clone();a.left=0;a.top=0;this.Ha=this.margin().Ej(a);this.Pd=this.padding().Ej(this.Ha);h&&h.da(!1);l&&l.da(!1);f&&f.da(!1);this.I(4)};$.g.remove=function(){this.Na&&this.Na.parent(null)}; +$.g.W=function(){if(!this.zc())return this;this.Na||(this.Na=$.ok(),$.Bu(this,this.Na),this.ba||(this.ba=$.ok(),this.ba.parent(this.Na).zIndex(20)));this.J(8)&&(this.Na.zIndex(this.zIndex()),this.I(8));var a=this.O(),b=a?a.Ka():null;this.J(2)&&(this.Na.parent(a),this.I(2),"svg"==$.kk&&(this.P=$.mg(),a=this.P.Wp(),this.F=this.P.Wo(),a.appendChild(this.F)));(a=b&&!b.yf())&&b.suspend();this.J(1024)&&(this.$a=!0,this.I(1024));if(this.J(16)){var c=this.qR(),d=Hca(this);this.g("inverted")&&(d=d.reverse()); +d=$.D(c)?c(d):d;this.Ub&&this.Ub.length!=d.length&&(this.$a=!0);c=Ica(this,d);Jca(this,c);this.I(16)}this.AW&&this.R5.apply(this,this.zW);Kca(this);if(this.J(4)){if(this.Ub&&"..."==this.g("textOverflow"))for(c=0,d=this.Ub.length;ca.nearestPointToCursor.distance&&(a.series.$().select(a.nearestPointToCursor.index),f=a)});"single"==this.gb.g("displayMode")?$.Vw(this.gb,[f],a.originalEvent.clientX, +a.originalEvent.clientY,f.series,this.Uu()):$.Vw(this.gb,b,a.originalEvent.clientX,a.originalEvent.clientY,f.series,this.Uu())}}};$.g.QJ=function(a){this.gb.WP(a.clientX,a.clientY)};$.g.Uu=function(){return!1};$.g.contextMenu=function(a){this.sk||(this.sk=$.oq.ui.contextMenu(!!$.C(a)&&a.fromTheme))&&this.sk.itemsProvider(this.sS);return $.p(a)?(this.sk&&this.sk.setup(a),this):this.sk}; +$.g.sS=function(a){var b=a.event?a.event.target.Zi():null,c=a.event?$.zo(a.event.domTarget):null;b=$.C(c)&&$.p(c.X)&&c.X.seriesType&&$.p(c.index)||b&&b.seriesType;c={};$.oq.exports&&$.Sc(c,$.Zl($.tG.exporting));$.Tj()&&a.menuParent&&$.Sc(c,$.Zl($.tG[a.menuParent.fullScreen()?"full-screen-exit":"full-screen-enter"]));$.Sc(c,$.Zl($.tG.main));return a.menuParent.ix(c,a,b)};$.g.ix=function(a){return a};$.g.uO=ba(16); +$.g.MM=function(){var a=[],b,c,d,e=this.Ue();for(c=0;cn.Tf||!d)d=m.X,e=n.index,f=$.Aa(m.wd,n.index),h=n.Tf}}a={index:e,series:d};a[b]=c?!f:f;return a}; +$.g.cl=function(a,b,c,d,e){var f=this.XD(c,a,d),h=[];if(!d)for(var k=0;ky.De.Tf&&(x=y))}r=x.X;l=$.Ax(r.state,$.Do);v=1==l.length&&l[0]==x.De.index;k=!v||v&&f;if(d=f)d=!!(r.state.fk()&$.Do);!d&&f||v||r.ie();r.Ii(x.De.index,a);l=$.Ax(r.state,$.Do);if(l.length)for(e.push({X:r,wd:[x.De.index],De:x.De}),m=b.Ue(),h=0;he?c+e:c,l=0>f?d+f:d;return{type:a,offsetX:h.offsetX,offsetY:h.offsetY,clientX:h.clientX,clientY:h.clientY,screenX:h.screenX,screenY:h.screenY,button:h.button,actionButton:h.actionButton,keyCode:h.keyCode,charCode:h.charCode,ctrlKey:h.ctrlKey,altKey:h.altKey,shiftKey:h.shiftKey,metaKey:h.metaKey,platformModifierKey:h.platformModifierKey,clientStartX:c+b.x,clientStartY:d+b.y,clientLeft:k+b.x,clientTop:l+b.y,startX:c,startY:d,left:k,top:l, +width:Math.abs(e),height:Math.abs(f)}};$.g.fja=function(a,b,c,d,e,f){return this.dispatchEvent(this.aA("selectmarqueestart",a,b,c,d,e,f))};$.g.dja=function(a,b,c,d,e,f){return this.dispatchEvent(this.aA("selectmarqueechange",a,b,c,d,e,f))};$.g.eja=function(a,b,c,d,e,f){a=this.aA("selectmarqueefinish",a,b,c,d,e,f);(b=this.dispatchEvent(a))&&this.$O(a);this.nB=!1;return b};$.g.$O=function(){}; +$.g.fullScreen=function(a){var b=this.O();b=b?b.Ka():null;return $.p(a)?(b&&b.fullScreen(a),this):b?b.fullScreen():!1};$.g.Jy=function(){var a=this.O();return(a=a?a.Ka():null)?a.Jy():!1};$.g.RG=function(a){var b=$.fa.anychart.exports;b?this.Tt||(this.Tt=b.create()):$.il(4,null,["Exporting"]);return $.p(a)&&this.Tt?(this.Tt.U(a),this):this.Tt};$.g.ts=function(){return this.Ue()};$.g.k2=function(){var a=$.Ga.apply(null,(0,$.Wa)(this.ts(),function(a){return a.data().Wv()}));$.Ka(a,a,$.xo);return a}; +$.g.SW=function(a,b,c){var d;if($.A(b))for(d=0;da&&(a=-3),$.p(d.axis)&&d.axis===d.HORIZONTAL_AXIS?b=a:c=a);$.ea(this.i)&&(b=$.Za(b,-this.i,this.i));$.ea(this.j)&&(c=$.Za(c,-this.j,this.j));this.F&&(b=-b);b=new Ox(a,d,b,c);this.dispatchEvent(b)};$.Mx.prototype.R=function(){$.Mx.u.R.call(this);Zd(this.f);this.f=null};$.H(Ox,$.Bd);$.H($.Px,$.V);$.Px.prototype.qa=$.V.prototype.qa|32779;$.Px.prototype.ys=function(a){var b=$.Px.u.ys.call(this,a),c=this.flatten().enabled;"enabled"==a?(b=32768,c&&(b|=this.f,this.f=0)):c||(this.f|=b);return b};var zG={}; +$.Cq(zG,[[0,"format",$.kr],[1,"adjustFontSize",Iq],[0,"fontVariant",$.dl],[0,"letterSpacing",$.Gq],[0,"textDirection",$.el],[0,"textIndent",$.Oq],[0,"textShadow",$.Zb],[0,"textOverflow",$.ir],[0,"useHtml",$.Qq],[0,"wordBreak",$.Pq],[0,"wordWrap",$.Pq],[0,"fontColor",$.Nq],[0,"fontDecoration",$.bl],[0,"fontFamily",$.Mq],[0,"fontOpacity",$.Oq],[0,"fontSize",$.Gq],[0,"fontStyle",$.cl],[0,"fontWeight",$.Gq],[0,"hAlign",$.$k],[0,"lineHeight",$.Gq],[0,"minFontSize",$.Gq],[0,"maxFontSize",$.Gq],[0,"maxLength", +$.Hq],[0,"vAlign",$.al],[0,"anchor",$.Dk],[0,"height",$.lr],[0,"offsetX",$.lr],[0,"offsetY",$.lr],[0,"position",$.Ek],[0,"rotation",$.Oq],[0,"width",$.lr],[0,"zIndex",$.Oq],[0,"allowMultiline",$.ir],[0,"clip",$.Pq],[0,"enabled",$.ir],[0,"selectable",$.Qq],[0,"disablePointerEvents",$.Qq],[0,"autoRotate",$.Qq]]);$.U($.Px,zG);$.g=$.Px.prototype; +$.g.parent=function(a){return $.p(a)?(this.Y!=a&&(null===a?($.ur(this.Y,this.Tc,this),this.padding().parent(null),this.Y=null):(this.Y&&$.ur(this.Y,this.Tc,this),this.Y=a,this.padding().parent(this.Y.padding()),$.K(this.Y,this.Tc,this),this.Ug())),this):this.Y};$.g.Tc=function(a){this.Ug();this.va(a.f)};$.g.g=$.sr;$.g.jg=function(a){$.p(a)&&(this.Xb=a);return this.Xb};$.g.bh=$.rr;$.g.Xd=function(){var a=[this.oa];this.Y&&(a=$.Ga(a,this.Y.Xd()));return a}; +$.g.Wd=function(){var a=[this.Pa];this.Y&&(a=$.Ga(a,this.Y.Wd()));return a};$.g.Ug=function(){this.b=null};$.g.flatten=function(){if(!this.b){this.b={};for(var a in zG)zG.hasOwnProperty(a)&&(this.b[a]=this.g(a))}return this.b};$.g.UK=function(a){var b=this.flatten().maxLength;return a=Nu(a,b)};$.g.uk=function(a){var b=this.g("format")||$.np;$.z(b)&&(b=$.Xu($.Vu.vd(),b));a=b.call(a,a);a=$.p(a)?String(a):"";return this.UK(a)}; +$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.W(this,"padding",this.Wa),$.K(this.Wa,this.fm,this));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa};$.g.fm=function(){this.va(2)};$.g.background=function(a){this.Ia||(this.Ia=new $.Iu);return $.p(a)?this:this.Ia};$.g.Le=function(a,b){return $.da(b)?(this.enabled(b),!0):!1};$.g.U=function(a,b){$.Px.u.U.call(this,a,b);$.Vq(this,zG,a,b);this.padding().ga(!!b,a.padding)}; +$.g.D=function(){var a=$.Px.u.D.call(this);$.cr(this,zG,a,void 0,void 0,!0);var b=$.Gr(this,"padding");b&&(b=$.Qc(b.Pa),$.Jc(b)||(a.padding=b));return a};$.g.R=function(){this.b=null;this.parent(null);$.sd(this.Wa,this.Ia);this.Ia=this.Wa=null;$.Px.u.R.call(this)};var AG=$.Px.prototype;AG.padding=AG.padding;AG.background=AG.background;$.g=$.Qx.prototype;$.g.width=function(){return this.Ta?this.Ta.width:0};$.g.height=function(){if(this.Ta)var a=this.Ta.height;else if(this.b.length)for(var b=a=0;ba?a+3:Math.round(1.2*a),this.aa=Math.round(.8*this.Ha)));return this}return this.f};$.g.nK=function(a){this.Ba+=a};$.g.mK=function(){this.Ba+="\n"};$.g.oM=function(){this.text(this.Ba);this.Ba="";Tx(this)}; +$.g.text=function(a){return $.p(a)?(a=ic(a),a=$.hc(a),this.kc!=a&&(this.ho.text=!0,this.kc=a),this):this.kc};$.g.Ac=function(){this.ia=this.P.Ux()};$.g.Vd=function(){this.ia||this.Ac();return this.ia}; +$.g.Ij=function(){var a;if(this.na||this.ea)for(this.G&&this.G.Ij(),this.K&&this.K.Ij(),a=0;ae?h+e+270:h+e+90:h,h=$.p(c)&&c.anchor||this.g("anchor");a=$.gv(this,a,b,c,d);b=f;c=$.Lo(a,h);b=$.Kb($.bb(b),c.x,c.y);a=$.sn(a)||[];b.transform(a, +0,a,0,4);return a};$.jy.prototype.uL=function(){return new $.ky};$.H($.ky,$.cv);var cea=$.ky.prototype,CG=$.Qc($.cv.prototype.oC);$.Bq(CG,0,"autoRotate",$.Qq);cea.oC=CG;$.U($.ky,$.ky.prototype.oC);$.ky.prototype.AA=function(a){var b=this.ic("rotation");return this.ic("autoRotate")?0a?b+a+270:b+a+90:b}; +$.ky.prototype.tf=function(a,b){this.b||$.dv(this);var c=this.b.positionFormatter,d=this.xb.path()?"center":$u(this.b.anchor)||"left-top",e=this.b.offsetX||0,f=this.b.offsetY||0,h=this.gp,k=this.jc(),l=$.Qc(c.call(k,k));c=l.angle;k=l.radius;l=$.p(l.radiusY)?l.radiusY:k;var m=0,n=0,q=h.Dc(),r=h.uc(),t=h.fz();h=h.Ty();if(b||!(0,window.isNaN)(q)&&!(0,window.isNaN)(r)){m=b.left;n=b.top;var u=b.width,v=b.height;m=(0,window.isNaN)(q)?m+u/2:q;n=(0,window.isNaN)(r)?n+v/2:r;f=$.p(h)&&!(0,window.isNaN)(h)? +$.L(f,h):b?$.L(f,Math.min(u,v)/2):0;c+=$.L(e,null!=t?t:360);k+=f;l+=f}e=m+$.db(c,k);f=n+$.eb(c,l);d=$.Lo(new $.I(0,0,a.width,a.height),d);e-=d.x;f-=d.y;this.Lg+=e;this.Mg+=f;a.left=e;a.top=f;this.b.rotation=this.AA(c);this.xr?this.xb.x(this.Lg).y(this.Mg):this.xb.setPosition(this.Lg,this.Mg)};$.H($.ly,$.Y);var dea=function(){var a={};$.Cq(a,[$.Z.yz,$.Z.Yn,$.Z.CQ,$.Z.DQ,$.Z.lZ,$.Z.HQ,[0,"position",$.Nq],[0,"size",$.Hq],[0,"anchor",function(a){return null===a?a:$.Dk(a)}],[0,"type",function(a){$.D(a)||(a=$.Ok(a));return a}]]);return a}();$.U($.ly,dea);$.g=$.ly.prototype;$.g.qa=$.Y.prototype.qa;$.g.sa=$.Y.prototype.sa|80;$.g.JT=function(){$.ly.u.JT.call(this);for(var a in this.oa)a in this.ua&&(this.b[a]=!0)}; +$.g.enabled=function(a){return $.p(a)?(null===this.j&&a&&this.B(1,this.mr()),this.j=a,this.WE=null!==this.Pa.enabled,$.ly.u.enabled.call(this,a),this):this.j};$.g.Ma=function(){return this.Pa.type||this.oa.type};$.g.Tm=function(){return $.p(this.Pa.fill)?this.Pa.fill:this.oa.fill};$.g.oJ=function(a){this.F=a};$.g.g=function(a){var b=$.ly.u.g.call(this,a);b||("stroke"==a?b=this.G||"none":"fill"==a?b=this.F||"black":"type"==a&&(b=this.VF||"diagonal-cross"));return b}; +$.g.ta=function(a,b){$.ly.u.ta.call(this,a,b);this.b[a]=!0};$.g.gk=function(){return $.p(this.Pa.stroke)?this.Pa.stroke:this.oa.stroke};$.g.pJ=function(a){this.G=a};$.g.Ed=function(a){return $.p(a)?(this.QL=a,this.B(16,1),this):this.QL}; +$.g.measure=function(a){this.i||(this.i=$.qk());var b=this.ja();if(b){var c=b.width;var d=b.height}var e=this.g("type");var f=this.g("size");b=this.g("anchor");var h=this.g("offsetX"),k=this.g("offsetY");e=$.z(e)?$.Jp(e):e;this.i.clear();e.call(this,this.i,0,0,f);f=this.i.sb();a=$.Qc(this.g("positionFormatter").call(a,a));a=new $.gb(a.x,a.y);e=$.Lo(new $.I(0,0,f.width,f.height),b);a.x-=e.x;a.y-=e.y;$.ep(a,b,$.p(h)?$.L(h,c):0,$.p(k)?$.L(k,d):0);f.left=a.x;f.top=a.y;return f}; +$.g.clear=function(a){this.f||(this.f=[]);if(this.Bc&&this.Bc.length)if($.p(a))this.Bc[a]&&(this.Bc[a].clear(),this.f.push(this.Bc[a]),delete this.Bc[a]);else{for(a=this.Bc.length;a--;){var b=this.Bc[a];b&&(b.clear(),this.f.push(b))}this.Bc.length=0;this.B(64,1)}else this.Bc=[];return this};$.g.ip=function(a){a=+a;return this.Bc&&this.Bc[a]?this.Bc[a]:null};$.g.oH=function(){return this.b};$.g.Vd=function(){return this.wb}; +$.g.add=function(a,b){$.p(this.Bc)||(this.Bc=[]);if($.p(b)){var c=+b;var d=this.Bc[c]}d?d.clear():(d=this.f&&0b||b>$.Ny(this))throw Error("Child component index out of bounds");this.F&&this.j||(this.F={},this.j=[]);if(a.getParent()==this){var d=a.ny();this.F[d]=a;$.Fa(this.j,a)}else $.Mc(this.F,a.ny(),a);a.gl(this);$.Da(this.j,a,b);a.xf&&this.xf&&a.getParent()==this?(c=this.AD(),b=c.childNodes[b]||null,b!=a.Za()&&c.insertBefore(a.Za(),b)):c?(this.Fd||this.Ac(),b=this.yd(b+1),a.vE(this.AD(),b?b.Fd:null)):this.xf&& +!a.xf&&a.Fd&&a.Fd.parentNode&&1==a.Fd.parentNode.nodeType&&a.Gg()};$.g.AD=function(){return this.Fd};$.g.yd=function(a){return this.j?this.j[a]||null:null};$.g.Pj=function(a,b){this.j&&(0,$.Pe)(this.j,a,b)};$.g.Kf=function(a){return this.j&&a?(0,$.za)(this.j,a):-1};$.g.removeChild=function(a,b){if(a){var c=$.z(a)?a:a.ny();a=$.Oy(this,c);c&&a&&($.Lc(this.F,c),$.Fa(this.j,a),b&&(a.Dh(),a.Fd&&$.Xe(a.Fd)),a.gl(null))}if(!a)throw Error("Child is not in parent component");return a}; +$.g.Cj=function(a,b){return this.removeChild(this.yd(a),b)};$.g.Gi=function(a){for(var b=[];this.j&&0!=this.j.length;)b.push(this.Cj(0,a));return b};var Qy;$.H($.Py,$.Jy);$.g=$.Py.prototype;$.g.Ut=null;$.g.FH=!1;$.g.Ac=function(){this.Fd=this.f.Ac("INPUT",{type:"text"})};$.g.ql=ba(21);$.g.Gg=function(){$.Py.u.Gg.call(this);var a=new nf(this);a.wa(this.Za(),"focus",this.SU);a.wa(this.Za(),"blur",this.gga);if($.Ry())this.Qg=a;else{$.gd&&a.wa(this.Za(),["keypress","keydown","keyup"],this.qga);var b=$.te(this.Za());a.wa(b?$.Ge(b):window,"load",this.Gga);this.Qg=a;Sy(this)}this.fo();this.Za().s3=this}; +$.g.Dh=function(){$.Py.u.Dh.call(this);this.Qg&&(this.Qg.ld(),this.Qg=null);this.Za().s3=null};$.g.R=function(){$.Py.u.R.call(this);this.Qg&&(this.Qg.ld(),this.Qg=null)};$.g.SU=function(){this.FH=!0;var a=this.Za();$.Sj(a,"label-input-label");if(!$.Ry()&&!$.Ty(this)&&!this.b){var b=this;a=function(){b.Za()&&(b.Za().value="")};$.hd?$.Dj(a,10):a()}};$.g.gga=function(){$.Ry()||(this.Qg.gc(this.Za(),"click",this.SU),this.Ut=null);this.FH=!1;this.fo()}; +$.g.qga=function(a){27==a.keyCode&&("keydown"==a.type?this.Ut=this.Za().value:"keypress"==a.type?this.Za().value=this.Ut:"keyup"==a.type&&(this.Ut=null),a.preventDefault())};$.g.rga=function(){$.Ty(this)||(this.Za().value="",$.Dj(this.cga,10,this))};$.g.cga=function(){$.Ty(this)||(this.Za().value=this.i)};$.g.Gga=function(){this.fo()};$.g.clear=function(){this.Za().value="";null!=this.Ut&&(this.Ut="")};$.g.reset=function(){$.Ty(this)&&(this.clear(),this.fo())}; +$.g.vj=function(){return null!=this.Ut?this.Ut:$.Ty(this)?this.Za().value:""};$.g.ae=function(){return this.i};$.g.fo=function(){var a=this.Za();$.Ry()?this.Za().placeholder!=this.i&&(this.Za().placeholder=this.i):Sy(this);$.Hy(a,"label",this.i);$.Ty(this)?(a=this.Za(),$.Sj(a,"label-input-label")):(this.b||this.FH||(a=this.Za(),$.Qj(a,"label-input-label")),$.Ry()||$.Dj(this.$ja,10,this))};$.g.Dj=function(a){this.Za().disabled=!a;var b=this.Za();a?$.Sj(b,"label-input-label-disabled"):$.Qj(b,"label-input-label-disabled")}; +$.g.isEnabled=function(){return!this.Za().disabled};$.g.z1=ba(23);$.g.$ja=function(){!this.Za()||$.Ty(this)||this.FH||(this.Za().value=this.i)};$.H($.Vy,$.Y);$.g=$.Vy.prototype;$.g.Ih=function(a){a:{var b=a.type;switch(b){case "mouseout":b="axismarkerout";break;case "mouseover":b="axismarkerover";break;case "mousemove":b="axismarkermove";break;default:a=null;break a}a={type:b,target:this,originalEvent:a,rawValue:this.tK(),formattedValue:this.kR(),offsetX:a.offsetX,offsetY:a.offsetY}}a&&this.dispatchEvent(a)};$.g.kR=function(){return"Value: "+this.tK()};$.g.qa=$.Y.prototype.qa|4;$.g.sa=$.Y.prototype.sa|20;$.g.xc=function(){return this.ra}; +$.g.VK=function(a){if($.p(a)){var b="gantt"==(a&&$.D(a.Ma)&&a.Ma());if(a=b?a==this.j?null:a:$.ut(this.j,a,null,15,null,this.zg,this)){var c=this.j==a;this.j=a;var d=this.pa||this.b&&this.b.scale();d?a.da(!1):b||a.da(c);c||d||this.B(4,13)}}}; +$.g.Po=function(a){if($.p(a)){var b="gantt"==(a&&$.D(a.Ma)&&a.Ma()),c=b?a==this.pa?null:a:$.ut(this.pa,a,null,15,null,this.zg,this);if(c||null===a&&this.pa){a=this.pa==c;var d=b&&!this.pa;c||$.ur(this.pa,this.zg,this);this.pa=c;d&&$.K(this.pa,this.zg,this);c&&!b&&c.da(a);a||this.B(4,13)}return this}return this.pa||this.b&&this.b.scale()||this.j};$.g.n3=function(){return!!this.pa};$.g.zg=function(a){var b=0;$.X(a,4)&&(b|=4);$.X(a,2)&&(b|=1);this.B(4,b|8)}; +$.g.tK=function(){return $.p(void 0)?(void 0!==this.g("value")&&this.value(void 0),this):this.g("value")};$.g.uD=function(){var a=9;"consider"==this.g("scaleRangeMode")&&(a|=4);return a};$.g.mr=function(){return $.Vy.u.mr.call(this)|4};$.g.xs=function(){return[this.tK()]};$.g.c_=function(){this.B(4,9)};$.g.axis=function(a){return $.p(a)?(this.b!=a&&(this.b&&$.ur(this.b,this.c_,this),this.b=a,$.K(this.b,this.c_,this),this.B(4,13)),this):this.b}; +$.g.Pp=function(a,b,c,d){this.$g||(this.$g=new $.Ru);return $.p(a)?(this.$g.N.apply(this.$g,arguments),this):this.$g};$.g.Ob=function(){return"horizontal"==this.we()};$.g.fs=void 0;$.g.kv=void 0;$.g.W=function(){if(!this.scale())return $.il(2),this;if(!this.zc())return this;if(this.J(8)){var a=this.zIndex();$.Wy(this).zIndex(a);this.I(8)}this.J(2)&&(a=this.O(),$.Wy(this).parent(a),this.I(2));this.J(16)&&(this.kv(),this.I(16));this.J(4)&&(this.fs(),this.I(4));return this}; +$.g.lo=function(){var a=this.scale();if(a){var b=$.Wy(this),c=a.transform(this.g("value"),.5);b.clear();if(!(0,window.isNaN)(c)&&(0<=c&&1>=c||this.i)){a=this.ja();var d=this.Pp(),e=b.hl();this.Ob()?(c=a.Vb()+a.height-c*a.height,c=$.R(c,e),b.moveTo(a.tb(),c),b.lineTo(a.cb(),c)):(c=a.tb()+c*a.width,c=$.R(c,e),b.moveTo(c,a.Vb()),b.lineTo(c,a.Va()));this.i||b.clip(d.Ej(a))}}else $.il(2)};$.g.remove=function(){$.Wy(this).parent(null)};var JG={};$.Cq(JG,[[0,"scaleRangeMode",gl]]);$.U($.Vy,JG); +$.Vy.prototype.U=function(a,b){$.Vy.u.U.call(this,a,b);"layout"in a&&a.layout&&this.we(a.layout);if("axis"in a){var c=a.axis;$.ea(c)?this.ra&&this.axis(this.ra.YG(c)):c.Hy&&c.Hy()&&this.axis(c)}$.Vq(this,JG,a,b)};$.Vy.prototype.D=function(){var a=$.Vy.u.D.call(this);$.cr(this,JG,a);return a};$.Vy.prototype.R=function(){this.ra=this.b=null;$.sd(this.F,this.$g);this.$g=this.F=null;$.Vy.u.R.call(this)};$.H($.Yy,$.Y);$.Yy.prototype.qa=$.Y.prototype.qa;$.Yy.prototype.sa=$.Y.prototype.sa;var gea=$.Yy.prototype,KG={};$.Cq(KG,[[1,"stroke",$.Zq],[0,"length",$.Fo],[0,"position",$.Wk]]);gea.dR=KG;$.U($.Yy,$.Yy.prototype.dR);$.g=$.Yy.prototype;$.g.orientation=function(a){return $.p(a)?(a=$.Hk(a),this.vh!=a&&(this.vh=a,this.cp=null),this):this.vh};$.g.remove=function(){this.path&&this.path.parent(null)}; +$.g.W=function(){this.path.clear();this.path.stroke(this.g("stroke"));if(!this.zc())return this;this.J(8)&&(this.path.zIndex(this.zIndex()),this.I(8));this.J(2)&&(this.path.parent(this.O()),this.I(2));return this};$.g.f1=function(a,b,c,d){a=b.left+a*b.width;var e=c.top;a=$.R(a,this.path.hl());var f=this.g("position");b=$.L(this.g("length"),b.height);"outside"==f?(e-=d/2,c=-b):(e="center"==f?e+(c.height-b)/2:e+d/2,c=b);this.path.moveTo(a,e);this.path.lineTo(a,e+c)}; +$.g.kT=function(a,b,c,d){c=c.left;a=b.top+b.height-a*b.height;a=$.R(a,this.path.hl());var e=this.g("position");b=$.L(this.g("length"),b.width);"outside"==e?(c+=d/2,d=b):"center"==e?(c-=b/2,d=b):(c-=d/2,d=-b);this.path.moveTo(c,a);this.path.lineTo(c+d,a)};$.g.eT=function(a,b,c,d){a=b.left+a*b.width;c=c.top;a=$.R(a,this.path.hl());var e=this.g("position");b=$.L(this.g("length"),b.height);"outside"==e?(c+=d/2,d=b):"center"==e?(c-=b/2,d=b):(c-=d/2,d=-b);this.path.moveTo(a,c);this.path.lineTo(a,c+d)}; +$.g.iT=function(a,b,c,d){c=c.left;a=b.top+b.height-a*b.height;a=$.R(a,this.path.hl());var e=this.g("position");b=$.L(this.g("length"),b.width);"outside"==e?(c-=d/2,d=-b):(c="center"==e?c-b/2:c+d/2,d=b);this.path.moveTo(c,a);this.path.lineTo(c+d,a)};$.g.D=function(){var a=$.Yy.u.D.call(this);$.cr(this,this.dR,a,"AxisTicks");return a};$.g.U=function(a,b){$.Yy.u.U.call(this,a,b);$.Vq(this,this.dR,a,b)};$.g.R=function(){$.qd(this.path);this.path=null;$.Yy.u.R.call(this)};$.H($.$y,$.Y);$.$y.prototype.g=function(a){var b=$.$y.u.g.call(this,a);if("orientation"==a&&null==b||!$.p(b))b=this.Od[a];return b};var LG={};$.Cq(LG,[$.Z.jK,$.Z.tQ,$.Z.uQ,$.Z.dC,$.Z.Yn,[0,"staggerMode",$.Qq],[0,"staggerMaxLines",$.Hq],[0,"staggerLines",$.Hq],[0,"orientation",nr],[0,"value",Jo]]);$.U($.$y,LG);$.g=$.$y.prototype;$.g.sa=$.Y.prototype.sa|976;$.g.qa=$.Y.prototype.qa;$.g.Pc=null;$.g.Er="axis";$.g.jb=null;$.g.Da=null;$.g.rc=null;$.g.mb=null;$.g.Rc=null;$.g.In=null;$.g.AJ=1;$.g.Hq=null; +$.g.TH=null;$.g.Wa=null;$.g.ci=null;$.g.Gk=null;$.g.title=function(a){this.jb||(this.jb=new $.iw,$.W(this,"title",this.jb),this.jb.kb(this),$.K(this.jb,this.Mq,this));return $.p(a)?(this.jb.N(a),this):this.jb};$.g.Mq=function(a){var b=0,c=0;$.X(a,8)?(b=this.se,c=9):$.X(a,1)&&(b=64,c=1);this.B(b,c)};$.g.labels=function(a){this.Da||(this.Da=new $.Zu,$.W(this,"labels",this.Da),this.Da.kb(this),$.K(this.Da,this.ce,this));return $.p(a)?(!$.C(a)||"enabled"in a||(a.enabled=!0),this.Da.N(a),this):this.Da}; +$.g.ce=function(a){var b=0,c=0;$.X(a,8)?(b=this.se,c=9):$.X(a,1)&&(b=384,c=1);this.labels().clear();this.ns();this.ik=null;this.$d();this.B(b,c)};$.g.qb=function(a){this.rc||(this.rc=new $.Zu,$.W(this,"minorLabels",this.rc),this.rc.kb(this),$.K(this.rc,this.zaa,this));return $.p(a)?(!$.C(a)||"enabled"in a||(a.enabled=!0),this.rc.N(a),this):this.rc};$.g.zaa=function(a){var b=0,c=0;$.X(a,8)?(b=this.se,c=9):$.X(a,1)&&(b=128,c=1);this.ik=null;this.$d();this.qb().clear();this.B(b,c)};$.g.pl=function(){return new $.Yy}; +$.g.Bz=function(){return this.line?this.line:this.line=$.qk()};$.g.Ya=function(a){this.mb||(this.mb=this.pl(),$.W(this,"ticks",this.mb),this.mb.kb(this),$.K(this.mb,this.XZ,this));return $.p(a)?(this.mb.N(a),this):this.mb};$.g.yb=function(a){this.Rc||(this.Rc=this.pl(),$.W(this,"minorTicks",this.Rc),this.Rc.kb(this),$.K(this.Rc,this.XZ,this));return $.p(a)?(this.Rc.N(a),this):this.Rc};$.g.XZ=function(a){var b=0,c=0;$.X(a,8)?(b=this.se,c=9,this.$d()):$.X(a,1)&&(b=256,c=1);this.B(b,c)}; +$.g.scale=function(a){if($.p(a)){if(this.In!=a&&(a=$.ut(this.scale(),a,null,this.TT(),null,this.zg,this))){var b=this.In==a;this.In=a;this.ns();this.ik=null;this.$d();this.labels().clear();this.qb().clear();a.da(b);b||this.B(this.se,9)}return this}return this.In};$.g.TT=function(){return 15};$.g.zg=function(a){$.X(a,2)&&(this.ns(),this.ik=null,this.$d(),this.labels().clear(),this.qb().clear(),this.B(this.se,9))}; +$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.W(this,"padding",this.Wa),$.K(this.Wa,this.fm,this));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa};$.g.dF=function(a){if($.ea(a)||$.J(a,$.$y))this.Ba=a,this.B(this.se,9);return this.Ba};$.g.fm=function(a){$.X(a,2)&&(this.ns(),this.ik=null,this.$d(),this.B(this.se,9))};$.g.Hy=function(){return!0};$.g.ns=function(){this.na=null}; +$.g.qy=function(a){if(!this.ik||this.J(512)){var b=this.scale();if(b){var c=this.labels();var d=c.enabled();var e=b.Ya().get();var f=e.length;if(d){var h;var k=0;for(h=f;k$.Oo(k)?this.TH:null,B=this.g("drawFirstLabel"),F=this.g("drawLastLabel");if($.J(b,$.vt)){c=k=0;for(var G;k=S&&B||1<=S&&F?t=x:0S&& +(t=x));x++}Q<=G&&k=S&&B||1<=S&&F?(u=c,q.push(!0)):0S?(u=c,q.push(!0)):q.push(!1))):q.push(!1),c++)}m||(q=!1)}else if($.J(b,gt))for(F? +(v=this.rd(f-1,!0,e,a),v=y?bz(this,y,v)?null:v:v):v=null,k=0;ka)return null;var e=b?this.ci:this.Gk;if($.p(e[a]))return e[a];var f=ez(this,c[a]);if(0>f||1=S&&h.call(f,S,m,r,t,l),v==e-1&&(S=a.transform(O,1),0<=S&&1>=S&&h.call(f,S,m,r,t,l))),wa=$.A(w)?w[v]:w,this.ke(k,n,v,l,!0,b,wa&&0<=n&&1>=n);this.labels().W()}this.title().da(!1);this.labels().da(!1);this.qb().da(!1);c.da(!1); +d.da(!1);return this};$.g.remove=function(){this.jb&&this.jb.remove();this.line&&this.line.parent(null);this.Ya().remove();this.yb().remove();this.Da&&this.Da.remove();this.rc&&this.rc.remove()};$.g.uo=function(){this.ns();this.ik=null;this.$d();this.B(this.se,9)}; +$.g.nq=function(a,b){var c=this.scale(),d,e=!0,f=!1;if($.J(c,$.$t)){var h=c.Ya().names()[a];var k=b;var l=d="string";e=!1}else $.J(c,$.xt)?(h=$.Fs(b),d="string",l="date-time",k=b,f=!0):(h=(0,window.parseFloat)(b),k=(0,window.parseFloat)(b),d=l="number");h={axis:{value:this,type:""},index:{value:a,type:"number"},value:{value:h,type:d},tickValue:{value:k,type:l},scale:{value:c,type:""}};e&&(h.max={value:$.p(c.max)?c.max:null,type:"number"},h.min={value:$.p(c.min)?c.min:null,type:"number"});f&&(e=c.Ya(), +h.intervalUnit={value:e.aU(),type:"string"},h.intervalUnitCount={value:e.bU(),type:"number"},e=c.yb(),h.minorIntervalUnit={value:e.aU(),type:"string"},h.minorIntervalUnitCount={value:e.bU(),type:"number"});c={};c["%AxisName"]={value:this.title().text(),type:"string"};e=new $.Nw(h);e.Im({"%AxisScaleMax":"max","%AxisScaleMin":"min"});e.Dl(c);return $.yv(e)};$.g.Ob=function(){var a=this.g("orientation");return"top"==a||"bottom"==a}; +$.g.D=function(){var a=$.$y.u.D.call(this);$.cr(this,LG,a);this.ph("zIndex")||delete a.zIndex;a.title=this.title().D();a.labels=this.labels().D();a.minorLabels=this.qb().D();a.ticks=this.Ya().D();a.minorTicks=this.yb().D();return a};$.g.U=function(a,b){$.$y.u.U.call(this,a,b);$.Vq(this,LG,a,b);"title"in a&&this.title().ga(!!b,a.title);"padding"in a&&this.padding(a.padding);this.labels().ga(!!b,a.labels);this.qb().ga(!!b,a.minorLabels);this.Ya(a.ticks);this.yb(a.minorTicks)}; +$.g.R=function(){this.In&&$.ur(this.In,this.zg,this);this.In=null;$.sd(this.jb,this.Wa,this.line,this.Da,this.rc,this.mb,this.Rc);this.Rc=this.mb=this.rc=this.Da=this.line=this.Wa=this.jb=null;this.ci.length=0;this.Gk.length=0;this.Hq=null;$.$y.u.R.call(this)};$.H(fz,$.$y);$.Hu(fz,$.$y);var MG=$.$y.prototype;MG.title=MG.title;MG.labels=MG.labels;MG.minorLabels=MG.qb;MG.ticks=MG.Ya;MG.minorTicks=MG.yb;MG.scale=MG.scale;MG.getRemainingBounds=MG.zd;MG.isHorizontal=MG.Ob;MG.padding=MG.padding; +MG.getPixelBounds=MG.ob;MG.valueTarget=MG.dF;MG=fz.prototype;$.E("anychart.standalones.axes.linear",function(){var a=new fz;a.Ga("standalones.linearAxis");return a});MG.padding=MG.padding;MG.draw=MG.W;MG.parentBounds=MG.ja;MG.container=MG.O;$.H($.gz,Cv);$.gz.prototype.Ih=function(a){a:{var b=a.type;switch(b){case "mouseout":b="axismarkerout";break;case "mouseover":b="axismarkerover";break;case "mousemove":b="axismarkermove";break;default:a=null;break a}a={type:b,target:this,originalEvent:a,rawValue:iz(this),formattedValue:"Value: "+iz(this),offsetX:a.offsetX,offsetY:a.offsetY}}a&&this.dispatchEvent(a)};$.gz.prototype.qa=Cv.prototype.qa|4;$.gz.prototype.sa=Cv.prototype.sa;var NG={};$.Cq(NG,[$.Z.eK,[0,"scaleRangeMode",gl]]);$.U($.gz,NG); +$.g=$.gz.prototype;$.g.xc=function(){return this.ra};$.g.VK=function(a){if($.p(a)){var b="gantt"==(a&&$.D(a.Ma)&&a.Ma());if(a=b?a==this.j?null:a:$.ut(this.j,a,null,15,null,this.zg,this)){var c=this.j==a;this.j=a;var d=this.pa||this.b&&this.b.scale();d?a.da(!1):b||a.da(c);c||d||this.B(4,13)}}}; +$.g.Po=function(a){if($.p(a)){var b="gantt"==(a&&$.D(a.Ma)&&a.Ma());if(a=b?a==this.pa?null:a:$.ut(this.pa,a,null,15,null,this.zg,this)){var c=this.pa==a;this.pa=a;b||a.da(c);c||this.B(4,13)}return this}return this.pa||this.b&&this.b.scale()||this.j};$.g.n3=function(){return!!this.pa};$.g.zg=function(a){if(a.target==this.Po()){var b=0;$.X(a,4)&&(b|=4);$.X(a,2)&&(b|=1);this.B(4,b|8)}};$.g.d_=function(){this.B(4,9)}; +$.g.axis=function(a){return $.p(a)?(this.b!=a&&(this.b&&$.ur(this.b,this.d_,this),this.b=a,$.K(this.b,this.d_,this),this.B(4,13)),this):this.b};$.g.Pp=function(a,b,c,d){this.$g||(this.$g=new $.Ru);return $.p(a)?(this.$g.N.apply(this.$g,arguments),this):this.$g};$.g.we=function(a){return $.p(a)?(a=$.Gk(a),this.f!=a&&(this.f=a,this.B(4,9)),this):this.f?this.f:this.b?(a=this.b.g("orientation"),"left"==a||"right"==a?"horizontal":"vertical"):this.F};$.g.Ob=function(){return"horizontal"==this.we()}; +$.g.zc=function(){var a=$.gz.u.zc.call(this)&&!(null==iz(this)||!this.Po());if(!a)return a;a=this.scale().transform(iz(this),.5);if(0<=a&&1>=a||this.G)return this.B(6),!0;this.remove();this.I(6);return!1};$.g.T1=function(){var a=this.g("rotation");return null==a||(0,window.isNaN)(a)?this.Ob()?0:-90:a};$.g.oR=function(){var a=this.g("align");if(this.Ob()){if("left"==a)return"left-center";if("right"==a)return"right-center"}else{if("top"==a)return"center-top";if("bottom"==a)return"center-bottom"}return"center"}; +$.g.vA=function(){var a=this.g("anchor");if(!a||"auto"==a)switch(this.oR()){case "center-top":case "right-center":a="right-center";break;case "center-bottom":case "left-center":a="left-center";break;default:a="center"}return a};$.g.X1=function(){return this.i}; +$.g.ja=function(a,b,c,d){return $.p(a)?(null===a||$.J(a,$.I)?this.i=a:"object"==$.ka(a)?this.i=new $.I(a.left,a.top,a.width,a.height):this.i=new $.I(a||0,b||0,c||0,d||0),this.uo(),this):null!=iz(this)&&this.Po()&&this.i?(a=this.i.clone(),b=this.scale().transform(iz(this),.5),this.Ob()?(a.height=0,a.top=Math.round(this.i.top+this.i.height-b*this.i.height)):(a.width=0,a.left=Math.round(this.i.left+b*this.i.width)),a):null};$.g.uD=function(){var a=9;"consider"==this.g("scaleRangeMode")&&(a|=4);return a}; +$.g.mr=function(){return $.gz.u.mr.call(this)|4};$.g.xs=function(){return[iz(this)]};$.g.D=function(){var a=$.gz.u.D.call(this);$.cr(this,NG,a,"TextBase");this.f&&(a.layout=this.f);return a};$.g.U=function(a,b){$.gz.u.U.call(this,a,b);$.Vq(this,NG,a,b);"layout"in a&&a.layout&&this.we(a.layout);if("axis"in a){var c=a.axis;$.ea(c)?this.ra&&this.axis(this.ra.YG(c)):c.Hy&&c.Hy()&&this.axis(c)}};$.g.R=function(){$.qd(this.$g);this.b=this.ra=this.$g=null;$.gz.u.R.call(this)};$.H($.jz,$.V);$.jz.prototype.sa=$.V.prototype.sa;$.jz.prototype.qa=$.V.prototype.qa|$.RE|$.SE;var Uca=Date.UTC(2E3,10,29,23,59,59,999);$.g=$.jz.prototype;$.g.Tw=function(){return this.ye};$.g.labels=function(a){return $.p(a)&&this.Da!=a?(this.Da&&$.ur(this.Da,this.Kn,this),this.Da=a,$.K(this.Da,this.Kn,this),this):this.Da};$.g.Kn=function(){this.ye.length||$.lz(this);for(var a=this.labels().flatten(),b=0;b=f.offset?b=f:c=f}var h;b?c?h=$.Rl(c.color,b.color,(a-b.offset)/(c.offset-b.offset)):h=b.color:h=c.color;return $.A(h)?$.Tb(h):h.color}; +$.g.mS=function(a){this.pb();a=$.Ll($.Sl(a).wk);var b;var c=0;for(b=this.Xe.length;c=d?(l=d-1,f=!0):l--;var m=c[k].fp;if($.da(m)){m=(c[k].start+c[k].end)/2;var n=(c[l].start+c[l].end)/2}else n=c[l].fp;e.push(k==l?m:[m,n])}return e};$.H($.qz,gt);$.g=$.qz.prototype;$.g.Ma=function(){return"ordinal-color"};$.g.oN=function(){this.Co()};$.g.Jj=function(a){if($.p(a))return null===a?this.Xe=[]:$.A(a)&&(this.Xe=$.Ha(a)),this.Co(),this.va(2),this;if($.A(this.Xe)){this.tB||(this.tB=$.Ha(this.Xe));if(this.tB.length= "+c.start:"<= "+c.end:(0,window.isFinite)(c.start)?"> "+c.start:"< "+c.end;d||(d="default");c.name||(c.name=d);this.Ok.push(d)}}return this.Ok}; +$.g.Yy=function(a){return $.p(a)?(this.jd!=a&&(this.jd=a,a=a[a.length-1],null===a.equal&&null===a.from&&null===a.to&&null===a.greater&&null===a.less||this.jd.push({equal:null,less:null,greater:null,from:null,to:null}),this.bW||(this.bo=$.Gm("defaultOrdinalColorScale").autoColors(this.jd.length-1),this.bo.push("#000")),this.Co(),$.Zt(this.Ya()),this.va(4)),this):this.jd};$.g.sr=function(){this.pb();this.names();return this.yk}; +$.g.Dn=function(a){this.pb();var b=this.yk[this.yk.length-1];if(this.yk)for(var c=0;c=d.start&&a<=d.end&&-1d.start&&ad.length-1?d[d.length-1]:d[c])}}return b}; +$.g.mS=function(a){this.pb();a=$.Sl(a).wk;for(var b=window.NaN,c=0,d=this.yk.length;cb?-1E-5:0);this.f.push(b);b=a.o("x");var c=a.o("value"),d;if(d=a.o("label"))d=d.jc().value,this.b.push(b,c),this.f.push(d.x,d.y);if(d=a.o("marker"))d=d.jc().value,this.b.push(b,c),this.f.push(d.x,d.y)}}; +Nz.prototype.en=function(){for(var a=this.X.cg(),b=0;a.advance();)if(!a.o("missing")){a.o("size",this.coords[b++]);this.X.bf.yt(a);var c=a.o("label");c&&(c.jc({value:{x:this.coords[b++],y:this.coords[b++]}}),c.W());if(c=a.o("marker"))c.jc({value:{x:this.coords[b++],y:this.coords[b++]}}),c.W()}};Nz.prototype.cm=function(){this.en()};$.H(Oz,$.Mz);Oz.prototype.update=function(){this.i=CB(this.X);this.xa=this.X.g("isVertical");var a=this.X.clip();$.da(a)&&!a&&(this.i=this.X.xc().ob());this.xa?(this.b[0]=this.i.top,this.X.Ra().Ne()||(this.b[0]+=this.i.height),this.b[1]=0,(0,window.isNaN)(this.G)&&(this.G=this.i.height),this.f[0]=this.i.top):(this.b[0]=this.i.left,this.X.Ra().Ne()&&(this.b[0]+=this.i.width),this.b[1]=0,(0,window.isNaN)(this.G)&&(this.G=this.i.width),this.f[0]=this.i.left);this.f[1]=this.G}; +Oz.prototype.en=function(){this.xa?(this.i.top=this.coords[0],this.i.height=this.coords[1]):(this.i.left=this.coords[0],this.i.width=this.coords[1]);this.X.bs(this.i)};Oz.prototype.cm=function(){this.xa?(this.i.top=this.coords[0],this.i.height=this.coords[1]):(this.i.left=this.coords[0],this.i.width=this.coords[1]);this.X.bs(this.i);this.G=window.NaN};$.H(Pz,$.Mz); +Pz.prototype.update=function(){this.i=this.X.g("isVertical");this.b.length=this.f.length=0;for(var a=this.X.cg();a.advance();)if(!a.o("missing")){var b=a.o("x");(0,window.isNaN)(a.o("destinationValue"))&&a.o("destinationValue",a.o("value"));var c=a.o("destinationValue"),d=a.o("zero");this.b.push(d);this.f.push(c);if(c=a.o("label"))c=c.jc().value,this.i?this.b.push(d,b):this.b.push(b,d),this.f.push(c.x,c.y);if(c=a.o("marker"))c=c.jc().value,this.i?this.b.push(d,b):this.b.push(b,d),this.f.push(c.x,c.y)}}; +Pz.prototype.en=function(){for(var a=this.X.cg(),b=0;a.advance();)if(!a.o("missing")){a.o("value",this.coords[b++]);this.X.bf.yt(a);var c=a.o("label");c&&(c.jc({value:{x:this.coords[b++],y:this.coords[b++]}}),c.W());if(c=a.o("marker"))c.jc({value:{x:this.coords[b++],y:this.coords[b++]}}),c.W()}};Pz.prototype.cm=function(){this.en()};var TG={};TG.bar=Pz;TG.bubble=Nz;TG.area=Oz;TG.line=Oz;TG["range-area"]=Oz;TG["range-spline-area"]=Oz;TG["range-step-area"]=Oz;TG.spline=Oz;TG["spline-area"]=Oz;TG["step-area"]=Oz;TG["step-line"]=Oz;TG.column=Pz;TG["jump-line"]=Pz;TG.stick=Pz;TG.mekko=Pz;$.H($.Sz,$.V);$.V.prototype.l2=function(a,b){if(!$.p(this.PB[a])){a=$.wm(a);var c=$.Cr(this);this.PB[a]=$.Dr(c,"base");if(!b)for(var d=0;d=k;f.push(r?q:k);r&&(h++,q=h=k,u.push(r?q:k),r&&(h++,q=h=e&&t<=l&&(b.uu>r&&(b.uu=r),b.tu=e&&t<=l)for(F=0;Fr&&(b.uu=r),b.tuc&&(h.uu=c);h.tuc&&(h.uu=c),h.tuc){c=hb;var Lf=S}if(mce){e=dc;var Lg=S}if(dck){k=vb;var Mg=S}if(vem){m=Gd;var kd=S}if(Gdf+k||eh+l)return null;b=[];var m=this.gd();if("by-spot"==m.g("hoverMode"))for(c=m.g("spotRadius"),this.Ks?(d=(l-(e-c-h))/l,f=(l-(e+c-h))/l,h=a,a=e,e=h):(d=(a-c-f)/k,f=(a+c-f)/k),h=0,k=this.hb.length;h=$.Do});d=d&&f;e.push({series:k,pointsInRect:c,allPointsAreSelected:f})}a.seriesStatus=e;a.allPointsAreSelected=d;return a}; +$.g.$O=function(a){var b=a.shiftKey||a.ctrlKey||a.metaKey,c=a.seriesStatus;if(b&&a.allPointsAreSelected)for(a=0;ac.length&&(c=$.Ga(c,$.Ja(a.scales,c.length)))}d={};if($.A(c))for(b=0;bthis.LL()&&f.Ra(b[e.xScale]),"yScale"in e&&e.yScale>this.LL()&&f.bb(b[e.yScale]))}};$.g.eP=function(a,b,c){var d,e=[];for(d=0;dthis.LL()&&h.scale(c[f]))}};$.g.R=function(){$.qd(this.Og);$.Yz.u.R.call(this)};$.H($.hA,$.Vy);var dH={};$.Cq(dH,[[1,"stroke",$.Zq],[0,"value",$.Pq]]);$.U($.hA,dH);$.g=$.hA.prototype;$.g.qa=$.Vy.prototype.qa;$.g.sa=$.Vy.prototype.sa;$.g.we=function(a){return $.p(a)?(a=$.Gk(a),this.f!=a&&(this.f=a,this.B(4,9)),this):this.f?this.f:this.axis()?(a=this.axis().orientation(),"left"==a||"right"==a?"horizontal":"vertical"):this.G};$.g.scale=function(a){return this.Po(a)};$.g.fs=function(){this.lo()};$.g.kv=function(){$.Wy(this).stroke(this.g("stroke"))}; +$.g.R=function(){this.ta("stroke",null);$.hA.u.R.call(this)};$.g.D=function(){var a=$.hA.u.D.call(this);$.cr(this,dH,a);this.f&&(a.layout=this.f);return a};$.g.U=function(a,b){$.hA.u.U.call(this,a,b);$.Vq(this,dH,a)};$.H(jA,$.hA);$.Hu(jA,$.hA);var eH=$.hA.prototype;eH.scale=eH.scale;eH.axis=eH.axis;eH.layout=eH.we;eH.isHorizontal=eH.Ob;eH=jA.prototype;$.E("anychart.standalones.axisMarkers.line",function(){return new jA});eH.draw=eH.W;eH.parentBounds=eH.ja;eH.container=eH.O;$.H($.kA,$.Vy);$.fH={};$.Cq($.fH,[[1,"fill",$.$q],[0,"from",$.Pq],[0,"to",$.Pq]]);$.U($.kA,$.fH);$.g=$.kA.prototype;$.g.kR=function(){return"From: "+this.g("from")+" to: "+this.g("to")};$.g.qa=$.Vy.prototype.qa;$.g.sa=$.Vy.prototype.sa;$.g.we=function(a){return $.p(a)?(a=$.Gk(a),this.f!=a&&(this.f=a,this.B(4,9)),this):this.f?this.f:this.axis()?(a=this.axis().orientation(),"left"==a||"right"==a?"horizontal":"vertical"):this.G};$.g.scale=function(a){return this.Po(a)}; +$.g.xs=function(){return[this.g("from"),this.g("to")]};$.g.tK=function(){$.p(void 0)&&($.p((void 0).from)&&this.from((void 0).from),$.p((void 0).to)&&this.to((void 0).to));return{from:this.g("from"),to:this.g("to")}};$.g.fs=function(){$.Xy(this)};$.g.kv=function(){$.Wy(this).stroke(null).fill(this.g("fill"))};$.g.R=function(){this.ta("fill",null);$.kA.u.R.call(this)};$.g.D=function(){var a=$.kA.u.D.call(this);$.cr(this,$.fH,a,void 0,void 0,!0);this.f&&(a.layout=this.f);return a}; +$.g.U=function(a,b){$.kA.u.U.call(this,a,b);$.Vq(this,$.fH,a)};$.H(mA,$.kA);$.Hu(mA,$.kA);var gH=$.kA.prototype;gH.scale=gH.scale;gH.axis=gH.axis;gH.layout=gH.we;gH.isHorizontal=gH.Ob;gH=mA.prototype;$.E("anychart.standalones.axisMarkers.range",function(){return new mA});gH.draw=gH.W;gH.parentBounds=gH.ja;gH.container=gH.O;$.H($.nA,$.gz);var hH={};$.Cq(hH,[[0,"value",$.Pq]]);$.U($.nA,hH);$.g=$.nA.prototype;$.g.qa=$.gz.prototype.qa;$.g.sa=$.gz.prototype.sa;$.g.scale=function(a){return this.Po(a)};$.g.D=function(){var a=$.nA.u.D.call(this);$.cr(this,hH,a);return a};$.g.U=function(a,b){$.nA.u.U.call(this,a,b);$.Vq(this,hH,a,b)};$.H(oA,$.nA);$.Hu(oA,$.nA);var iH=$.nA.prototype;iH.scale=iH.scale;iH.axis=iH.axis;iH.layout=iH.we;iH.background=iH.background;iH.padding=iH.padding;iH.isHorizontal=iH.Ob;iH=oA.prototype; +$.E("anychart.standalones.axisMarkers.text",function(){return new oA});iH.draw=iH.W;iH.parentBounds=iH.ja;iH.container=iH.O;$.H(pA,Cv);pA.prototype.qa=Cv.prototype.qa|2;var jH={};$.Cq(jH,[[0,"format",$.kr],[0,"axisIndex",$.Pq]]);$.U(pA,jH);$.g=pA.prototype;$.g.Hf=function(a){return $.p(a)?(this.i!=a&&(this.i=a,this.B(16,1)),this):this.i};$.g.x=function(a){$.p(a)&&this.No!=a&&(this.No=a,this.B(4,9));return this};$.g.y=function(a){$.p(a)&&this.Oo!=a&&(this.Oo=a,this.B(4,9));return this}; +$.g.tf=function(){if(this.ja())var a=this.ja();else{a=new $.I(0,0,0,0);var b=this.xb.sb();a.width=this.padding().Lk(b.width);a.height=this.padding().$j(b.height)}b=a.width;var c=a.height;a=new $.I(0,0,this.Oi,this.Ni);var d=new $.gb(0,0);d.x=this.No;d.y=this.Oo;var e=this.vA(),f=$.Lo(new $.I(0,0,this.Oi,this.Ni),e);d.x-=f.x;d.y-=f.y;f=this.g("offsetX");var h=this.g("offsetY");$.ep(d,e,$.p(f)?$.L(f,b):0,$.p(h)?$.L(h,c):0);this.Lg+=d.x;this.Mg+=d.y;a.left=d.x;a.top=d.y;this.xb.x(this.Lg).y(this.Mg); +(b=this.xb.clip())?b.shape(this.Lg,this.Mg,this.nn,this.ln):(b=$.tk(this.Lg,this.Mg,this.nn,this.ln),this.xb.clip(b));return a};$.g.D=function(){var a=pA.u.D.call(this);$.cr(this,jH,a,"Crosshair Label");return a};$.g.U=function(a,b){pA.u.U.call(this,a,b);$.Vq(this,jH,a,b)};var kH=pA.prototype;kH.background=kH.background;kH.padding=kH.padding;$.H($.qA,$.Y);$.qA.prototype.qa=$.Y.prototype.qa|2;$.qA.prototype.sa=$.Y.prototype.sa|16;var lH={};$.Bq(lH,1,"xStroke",$.Zq);$.Bq(lH,1,"yStroke",$.Zq);$.Bq(lH,0,"displayMode",function(a){return $.zk(Hda,a,"float")});$.U($.qA,lH);$.g=$.qA.prototype;$.g.g=$.sr;$.g.jg=function(a){$.p(a)&&(this.Xb=a);return this.Xb};$.g.bh=$.rr;$.g.Xd=function(){var a=[this.oa];this.Y&&(a=$.Ga(a,this.Y.Xd()));return a};$.g.Wd=function(){var a=[this.Pa];this.Y&&(a=$.Ga(a,this.Y.Wd()));return a}; +$.g.parent=function(a){if($.p(a)){if(this.Y!=a){var b=String($.oa(this));if(null===a){$.ur(this.Y,this.Tc,this);a=$.rA(this);var c=$.sA(this);a=$.Ga(a,c);for(c=0;c=l.tb()&&a<=l.cb()&&d>=l.Vb()&&d<=l.Va()?(this.ka(), +l=$.rA(this),k=$.sA(this),this.Kt(l,!0,a,d),this.Kt(k,!1,a,d),this.da(!0)):this.Lc()}}; +$.g.Yx=function(a,b,c,d){var e=b?this.Pr:this.Sr;if((b=this.g(b?"xStroke":"yStroke"))&&!$.lp(b)){b=this.ja();var f=b.cb()-b.tb(),h=b.Va()-b.Vb();c-=b.tb();var k=d-b.Vb();d=a.Ob();var l;a=a.scale();c=d?c:k;f=d?f:h;h=d?b.tb():b.Vb();k=a.Ma();"linear"==k||"datetime"==k||"log"==k?l=c/f:l=a.transform(a.Mc(c/f),.5);0>l||1e||1=b.cb()||a<=b.Vb()||a>=b.Va())&&this.Lc()};$.g.remove=function(){this.Lc()};$.g.R=function(){this.Yl&&(this.Yl.gc("mouseover",this.If,!1,this),this.Yl.gc("mousemove",this.If,!1,this),this.Yl.gc("mouseout",this.hg,!1,this),this.Yl=null);$.sd(this.Pr,this.Sr,this.hQ,this.kQ);this.Pr=this.Sr=this.hQ=this.kQ=null;$.qA.u.R.call(this)}; +$.g.enabled=function(a){return $.p(a)?(this.Pa.enabled!=a&&(this.Pa.enabled=a,this.B(1,32777),this.Pa.enabled?this.da(!0):(0,window.isNaN)(this.Lo)&&this.ka()),this):this.g("enabled")};$.g.D=function(){var a=$.qA.u.D.call(this);$.cr(this,lH,a,"Crosshair");var b;var c=[];var d=$.rA(this),e=$.sA(this);for(b=0;b=this.b.length?this.qf[a-this.b.length]:this.b[a]};$.g.ty=function(a){return this.b[a]};$.g.vy=function(a){return this.qf[a]};$.g.V5=function(a){a.scale(this.bb())};$.g.mH=function(){return 2097152};$.g.ZZ=function(){return new $.hA}; +$.g.Ym=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.og[c];if(!e){e=this.ZZ();var f=$.Dr($.Cr(this),"defaultLineMarkerSettings");e.Ga(f);e.ra=this;$.iA(e,this.xa()?"vertical":"horizontal");this.og[c]=e;e.kb(this);$.K(e,this.Jw,this);this.B(5242880,1)}return $.p(d)?(e.N(d),this):e};$.g.$Z=function(){return new $.kA}; +$.g.gn=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.rg[c];if(!e){e=this.$Z();var f=$.Dr($.Cr(this),"defaultRangeMarkerSettings");e.Ga(f);e.ra=this;$.lA(e,this.xa()?"vertical":"horizontal");this.rg[c]=e;e.kb(this);$.K(e,this.Jw,this);this.B(5242880,1)}return $.p(d)?(e.N(d),this):e};$.g.a_=function(){return new $.nA}; +$.g.mn=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.tg[c];if(!e){e=this.a_();var f=$.Dr($.Cr(this),"defaultTextMarkerSettings");e.Ga(f);e.ra=this;$.hz(e,this.xa()?"vertical":"horizontal");this.tg[c]=e;e.kb(this);$.K(e,this.Jw,this);this.B(5242880,1)}return $.p(d)?(e.N(d),this):e};$.g.Jw=function(a){var b=4227072;$.X(a,4)&&(b|=327680);this.B(b,1)}; +$.g.qV=function(a){for(var b=0,c=$.Ga(this.og,this.rg,this.tg),d=0;dc.top&&(e=new $.I(c.left,c.top,c.width,u.top-c.top));break;case "bottom":Gc.left&&(e=new $.I(c.left,v,u.left-c.left,x));break;case "right":Fh);q=0;for(d=f.length;qd?("layout"in e||(e.layout=a.Ob()?"horizontal":"vertical"),"scale"in e||$.gA(e,"scale",a.scale(),b,c)):e.axis=d;return e}; +$.g.DX=function(a,b,c,d){var e=a.D();a.n3()&&$.gA(e,"scale",a.Po(),b,c);if(a=a.axis())d=(0,$.za)(d,$.oa(a)),0>d?("layout"in e||(e.layout=a.Ob()?"horizontal":"vertical"),"scale"in e||$.gA(e,"scale",a.scale(),b,c)):e.axis=d;return e};$.g.R=function(){$.sd(this.b,this.qf,this.og,this.rg,this.tg,this.Yg,this.Zg,this.jh,this.kh,this.Xa,this.ea,this.ud);delete this.b;delete this.qf;this.ud=this.ea=this.Xa=this.kh=this.jh=this.Zg=this.Yg=this.tg=this.rg=this.og=null;$.EA.u.R.call(this)};var qH=$.EA.prototype; +qH.isVertical=qH.xa;$.g=$.MA.prototype;$.g.ma=function(){return this.index};$.g.xc=function(){return this.ya};$.g.get=function(a){return this.ya.data().get(this.index,a)};$.g.set=function(a,b){this.ya.data().set(this.index,a,b);return this};$.g.lb=function(a){var b=this.xc(),c=$.Bx(b.state,$.Co,this.index);return $.p(a)&&c!=a?(a?b.Tj(this.index):b.Nd(this.index),this):c};$.g.selected=function(a){var b=this.xc(),c=$.Bx(b.state,$.Do,this.index);return $.p(a)&&c!=a?(a?b.select(this.index):b.ie(this.index),this):c}; +$.g.hy=function(){return this.indexb?this.Id&&(n="high",k="highHatchFill"):this.Pd&&(n="low",k="lowHatchFill"),h.path=n,h.oe=k):f?(this.X.gh()||(this.ba?ab||(0,window.isNaN)(b)?(n="rising",k="risingHatchFill"):ab||(0,window.isNaN)(b)?(l="risingStroke",m="risingFill",k="risingHatchFill"):aa;a=Math.abs(a);a=(a-this.pW)/(this.T3-this.pW);if((0,window.isNaN)(a)||!(0,window.isFinite)(a))a=.5;a=this.qW+a*(this.U3-this.qW);return b?-a:a};$.g.Be=function(){return this.Cu.g("yValues")};$.g.sl=function(){return this.Aa};$.g.xc=function(){return this.ya};$.g.$=function(){return this.iterator||this.Ec()}; +$.g.Ec=function(){return this.iterator=this.cg()};$.g.tl=function(){return this.ya.Ra()};$.g.bb=function(a){if($.p(a)){if(a){if(a=$.ut(this.Fc,a,null,15,null,this.zg,this)){var b=this.Fc==a;this.Fc=a;this.Fc.da(b);b||this.B(1024,5)}}else this.Fc&&(this.Fc&&$.ur(this.Fc,this.zg,this),this.Fc=null,this.B(1024,5));return this}return this.Fc||this.jf.bb()};$.g.zg=function(a){var b=0;$.X(a,4)&&(b|=4);$.X(a,2)?this.B(1024,b|1):this.va(b)};$.g.Lr=function(a,b){return this.Qe(this.tl().transform(a,b),!0)}; +$.g.Ip=function(a,b){return this.Qe(this.bb().transform(a,b),!1)};$.g.hi=function(a){return $.p(a)?(this.Cu.N(a),this):this.Cu};$.g.error=function(a){pB(this)||$.kl(12,void 0,[this.kk()]);this.Lv||(this.Lv=new hB(this),$.K(this.Lv,this.Pia,this));return $.p(a)?(this.Lv.N(a),this):this.Lv};$.g.Pia=function(a){var b=0;$.X(a,1)&&(b|=1);$.X(a,4)&&(b|=4);this.B(1024,b)};$.g.vs=function(a){return this.error().vs(a)}; +$.g.$T=function(a){var b=a?this.error().$J():this.error().SJ();if($.D(b)){var c=this.Ge();b=$.Wb(b.call(c,c))}if(this.kt()){var d=this.i2(a?"xErrorStroke":"valueErrorStroke");$.D(d)?(c=this.Ge(b),d=$.Wb(d.call(c,c))):d&&(d=$.Wb(d))}return d||b}; +$.g.gT=function(a){if(a=!a.o("missing")){var b=this.error(),c=b.Sa.$();a=c.get("xError")||b.hF();var d=c.get("xLowerError")||b.iF(),e=c.get("xUpperError")||b.jF(),f=c.get("valueError")||b.bF(),h=c.get("valueLowerError")||b.cF();b=c.get("valueUpperError")||b.fF();f=$.p(h)||$.p(b)||$.Bo(f)||!$.Ko(f);a=$.p(d)||$.p(e)||$.Bo(a)||!$.Ko(a)||f}if(a)switch(a=this.error(),d=a.mode(),e=this.g("isVertical"),d){case "x":a.W(!0,e);break;case "value":a.W(!1,e);break;case "both":a.W(!0,e),a.W(!1,e)}}; +$.g.clip=function(a){return $.p(a)?(null===a&&(a=!1),this.gg!=a&&(this.gg=a,this.B(4096,1)),this):this.gg};$.g.Ls=function(a){this.tp||(this.tp=new $.kB,$.K(this.tp,this.KW,this));return $.p(a)?(this.tp.N(a),this):this.tp};$.g.KW=function(a){var b=64,c=!1;$.X(a,8)&&(b|=8,c=!0);this.va(b,c)}; +$.g.qD=function(a){var b=this.Ls();b.I(b.sa);var c=Bv.prototype.D.call(b);$.p(b.GD())&&(c.iconTextSpacing=b.GD());var d=b.g("text");$.p(d)&&(c.text=d);$.p(b.zy())&&(c.iconEnabled=b.zy());$.p(b.HD())&&(c.iconType=b.HD());$.p(b.kw())&&(c.iconSize=b.kw());$.p(b.Gs())&&(c.iconFill=b.Gs());$.p(b.Is())&&(c.iconStroke=b.Is());$.p(b.Hs())&&(c.iconHatchFill=b.Hs());$.p(b.iw())&&(c.iconMarkerType=b.iw());$.p(b.gu())&&(c.iconMarkerFill=b.gu());$.p(b.hu())&&(c.iconMarkerStroke=b.hu());$.p(b.disabled())&&(c.disabled= +b.disabled());b=this.g("color");d=this.RC();a=c.text||a;$.z(a)&&(a=$.Xu($.Vu.vd(),a));c.text=$.D(a)?a.call(d,d):this.c2(d);c.disabled="disabled"in c?!!c.disabled:!this.enabled();c.meta=this.o();"marker"!=c.iconType||this.check(8192)||(c.iconFill=this.ca.Eb().g("fill"),c.iconStroke=this.ca.Eb().g("stroke"));c.iconType=this.pD(c.iconType,d);c.iconEnabled="iconEnabled"in c?!!c.iconEnabled:!0;c.iconStroke=this.dH(c.iconStroke,2,b,d);c.iconFill=this.dH(c.iconFill,1,b,d);c.iconHatchFill=this.dH(c.iconHatchFill, +3,this.Eh(),d);this.check(4194304)&&this.ca.Eb().enabled()?(c.iconMarkerType=c.iconMarkerType||this.ca.Eb().type(),c.iconMarkerFill=c.iconMarkerFill||this.ca.Eb().g("fill"),c.iconMarkerStroke=c.iconMarkerStroke||this.ca.Eb().g("stroke")):(c.iconMarkerType=null,c.iconMarkerFill=null,c.iconMarkerStroke=null);return c};$.g.pD=function(a){"marker"==a?(this.check(8192)?a=this.g("type"):this.check(4194304)?a=this.ca.Eb().type():a="square","line"==a&&(a="v-line")):$.D(a)||(a=$.Vk(a));return a}; +$.g.dH=function(a,b,c){if(a)$.D(a)?(b={sourceColor:c},a=a.call(b,b)):a=$.Yl(a);else{if(2==b)var d="stroke";else if(3==b){if(this.check(8))return null;d="hatchFill"}else this.check(8)?(d="stroke",b=2):d="fill";a=this.ca.g(d);var e=this.ca.oa[d];if($.D(a)&&a==e)return b=this.RC([{sourceColor:{value:c,type:"string"}}]),a.call(b,b);a=$.jm(d,b,!1)(this,$.nm,!0)}return a};$.g.c2=function(){return this.name()}; +$.g.Ua=function(a){if(!this.ox&&(this.ox=new $.Ew(0),this.ox.df(),this.ya.p6())){var b=this.ya,c=b.Ua();this.ox.parent(c);this.ox.ya(b);$.W(this,"tooltip",this.ox)}return $.p(a)?(this.ox.N(a),this):this.ox};$.g.kd=function(a){if($.p(a)){if(null===a&&this.vb)this.vb=null,this.B(65536,129);else if(a=$.ut(this.vb,a,null,48,null,this.Vp,this)){var b=this.vb==a;this.vb=a;this.vb.da(b);b||this.B(65536,129)}return this}return this.vb};$.g.Bn=ba(28);$.g.Vp=function(a){$.X(a,6)&&this.B(65536,129)}; +$.g.Qa=function(a){return $.p(a)?(this.ca.N(a),this):this.ca};$.g.lb=function(a){return $.p(a)?(this.za.N(a),this):this.za};$.g.selected=function(a){return $.p(a)?(this.Ea.N(a),this):this.Ea};$.g.i2=function(a){return this.kt()?this.$().get(a):void 0};$.g.ph=function(a){return null!=this.Pa[a]};$.g.g=function(a){var b=this.Pa[a];null==b&&(b=this.oa[a],null!=b||(b=this.Od[a]));return b}; +$.g.cH=function(a){return null!=this.Pa[a]?this.Pa[a]:null!=this.jf.Pa[a]?this.jf.Pa[a]:null!=this.ya.Pa[a]?this.ya.Pa[a]:null!=this.oa[a]?this.oa[a]:null!=this.jf.oa[a]?this.jf.oa[a]:null!=this.ya.oa[a]?this.ya.oa[a]:this.Od[a]}; +$.g.sc=function(a,b,c,d,e,f,h){var k=0==b?this.ca:1==b?this.za:this.Ea;if(h)return d(k.g(a));if(this.kt()){h=c.get(0==b?"normal":1==b?"hovered":"selected");var l=$.fp($.p(h)?h[a]:void 0,c.get($.om(b,a)),k.g(a))}if($.p(l))l=d(l);else{a=f||a;if(a in this.ua&&(l=this.g(a),$.p(l)))return d(l);e&&(k=this.Ea);l=k.Pa[a];null==l&&(l=k.oa[a],null!=l||b||(l=this.Od[a]),$.p(l)&&(l=d(l)))}return l};$.g.S1=function(){return this.O()}; +$.g.iA=function(a,b,c,d,e,f,h,k,l){var m;var n=h.ma();if((0,window.isNaN)(n))return null;f&&((m=this.QH[n])||(m=this.QH[n]=[]));var q;a[0]&&(q=a[0].call(this.ca));var r,t,u,v,w,x,y;if(h.o("missing")||h.o("skipDrawing"))a=!1;else{k=$.lm(k);var B=d&&this.kt();b[0]&&(r=b[0].call(this.ya.ca));var F=q;if(B)var G=(d=h.get("normal"))?d[c[0]]:h.get(c[0]);if(3this.fa.left+this.fa.width){var f=d;d=(0,$.za)($.Mo,f);0<=d&&(f=$.Mo.length,f=$.Mo[(f-d)%f]);d=f}if($.So(d)&&c.topthis.fa.top+this.fa.height)c=(0,$.za)($.Mo,d),0<=c&&(d=$.Mo.length,d=$.Mo[(d-c+4)%d]);d=$.Qo(d,e);b.rk(d)}; +$.g.SX=function(a,b,c,d,e,f,h,k,l,m,n,q,r){$.nv(a,$.uo([r,0,h,0,q,$.qo,f,$.qo,n,$.qo,e,$.qo,m,0,d,0,l,$.qo,c,$.qo,k,$.qo,b,$.qo,q,$.ro,f,$.ro,e,$.ro,a,$.qo,a,$.so,l,$.ro,c,$.ro,b,$.ro]))};$.g.M_=$.ia; +$.g.$L=function(a,b,c,d,e,f,h){if(e){a=a[0];var k=d;(d=a.ae(c))||(d=a.add(void 0,void 0,c));d.Hf(e);k=this.XN(d,k);d.jc(k);d.Hi();b.unshift(d);this.SX.apply(this,b);b=d.ic("anchor");pv(d,this.g("isVertical"));$.p(h)&&"auto"==b&&(h=this.AE(h,Number(d.ic("rotation"))||0),d.rk(h),this.r0(a,d));this.M_(d,c);c=d}else c=zB(this,a,c,d);f&&c.W();return c};$.g.labels=function(a){return $.p(a)?(this.ca.labels(a),this):this.ca.labels()};$.g.th=function(a){return $.p(a)?(this.ca.th(a),this):this.ca.th()}; +$.g.sh=function(a){return $.p(a)?(this.ca.sh(a),this):this.ca.sh()};$.g.ce=function(a){$.X(a,1)&&this.B(256,1025)}; +$.g.tf=function(a,b,c){var d=this.xc(),e=[this.ca.labels,this.za.labels,this.Ea.labels],f=this.iL()?[d.Qa().labels,d.lb().labels,d.selected().labels]:[],h=["label","hoverLabel","selectLabel"];a.o("isMaxPoint")?(e.push(this.ca.sh,this.za.sh,this.Ea.sh),this.iL()&&f.push(d.Qa().sh,d.lb().sh,d.selected().sh),h.push("maxLabel","hoverMaxLabel","selectMaxLabel")):a.o("isMinPoint")&&(e.push(this.ca.th,this.za.th,this.Ea.th),this.iL()&&f.push(d.Qa().th,d.lb().th,d.selected().th),h.push("minLabel","hoverMinLabel", +"selectMinLabel"));a.o("label",this.iA(e,f,h,this.kE(),!0,null,a,b,c))};$.g.TQ=function(){};$.g.hT=function(a){a.W()};$.g.XN=function(a,b){return b};$.g.Eb=function(a){return $.p(a)?(this.ca.Eb(a),this):this.ca.Eb()};$.g.Mn=function(a){$.X(a,1)&&this.B(128,65)};$.g.gq=function(a,b,c){a.o("marker",this.iA([this.ca.Eb,this.za.Eb,this.Ea.Eb],[],["marker","hoverMarker","selectMarker"],this.vO(),!1,null,a,b,c))}; +$.g.Zv=function(a){a=$.p(a)?a:$.jm(this.check(8)?"stroke":"fill",1,!1)(this,$.nm,!0,!0);return $.am(a,1,!0)};$.g.py=function(){return $.Xl(this.ca.Eb().g("fill"))};$.g.el=function(a){return $.p(a)?(this.ca.el(a),this):this.ca.el()};$.g.rja=function(a){$.X(a,1)&&this.B(128,1)};$.g.ZL=function(a,b,c){var d=a.o("outliers");d&&d.length&&this.iA([this.ca.el,this.za.el,this.Ea.el],[],["outlierMarker","hoverOutlierMarker","selectOutlierMarker"],this.RW(),!1,d,a,b,c)};$.g.kE=function(){return!1};$.g.vO=function(){return!1}; +$.g.RW=function(){return!1};$.g.G4=function(){return!1};$.g.gh=function(){return!1};$.g.iB=function(){return!1};$.g.yE=function(){if(this.gh()&&this.eh()&&this.rp()){var a=this.$();for(a.reset();a.advance();)AB(a);AB(this.KM());AB(this.JM())}};$.g.remove=function(){this.check(4)?$.ZA(this.Rf,null):this.Aa&&this.Aa.remove();var a=this.ca.labels();a.Vd()&&(a.Vd().remove(),a.B(2));if(a=this.ca.Eb())a.remove(),a.B(2);if(a=this.ca.el())a.remove(),a.B(2)}; +$.g.ut=function(a){this.kl||(this.kl=new ox(this),$.K(this.kl,this.GW,this),$.J(this.ya,$.Cx)&&(mx(this.kl,this.ya.ut()),mx(this.kl).va(2)));return $.p(a)?(this.kl.N.apply(this.kl,arguments),this):this.kl};$.g.GW=function(){this.B(32,1)}; +$.g.W=function(){if(!this.zc())return this;this.ka();$.p(this.Od.color)&&this.J(16768)&&this.Kq(this.Od.color);this.J(32768)&&(this.rE(),this.I(32768));if(this.J(4)){this.fa=this.ob();this.Lx=this.$g?this.$g.Ej(this.fa):this.fa;var a=Math.min(this.fa.height,this.fa.width);this.qW=$.L(this.Tha,a);this.U3=$.L(this.Mha,a);this.B(7168)}this.J(512)&&(this.Ec(),this.ZW(),this.B(68640,2049),this.I(512));this.i0();this.J(1024)&&this.B(24960);a=[];var b=[],c=!1;this.J(1026)&&(this.$W(),this.nE());if(this.J(1282)){var d= +this.ca.labels();var e=this.ca.th().enabled()||this.ca.sh().enabled()||this.za.labels().enabled()||this.Ea.labels().enabled()||this.za.th().enabled()||this.Ea.th().enabled()||this.za.sh().enabled()||this.Ea.sh().enabled();wB(this,d,e,this.kE(),$.XG,256)&&(e=this.zIndex()+this.zQ+(this.gh()?1:0),d.zh=e,d.B(8),this.check($.XG)&&a.push(this.tf),b.push(d),c=!0);this.ca.th().I(4294967295);this.ca.sh().I(4294967295);this.za.th().I(4294967295);this.za.sh().I(4294967295);this.Ea.th().I(4294967295);this.Ea.sh().I(4294967295); +this.I(256)}this.J(1154)&&(d=this.ca.Eb(),e=this.za.Eb().enabled()||this.Ea.Eb().enabled(),wB(this,d,e,this.vO(),4194304,128)&&(e=this.zIndex()+1.2E-5+(this.gh()?1:0),d.zh=e,this.check(4194304)&&a.push(this.gq),b.push(d)),this.I(128));if(this.J(9218)){this.eD||(this.eD=[]);if(this.nA)for(;this.nA.length;)d=this.nA.pop(),d.clear(),d.parent(null),this.eD.push(d);else this.nA=[];pB(this)&&"none"!=this.error().mode()&&(this.G4()||jB(this.error()))&&a.push(this.gT);this.I(8192)}this.J(17410)&&(d=this.ca.el(), +e=this.za.el().enabled()||this.Ea.el().enabled(),wB(this,d,e,this.RW(),256,16384)&&(e=this.zIndex()+1.1E-5,d.zh=e,this.check(256)&&a.push(this.ZL),b.push(d)),this.I(16384));d=a.length;if(this.J(1024)){if(e=this.rX()){var f=this.Be();this.bJ(e,f);c&&this.TQ();if(this.ya.g("categorizedBySeries")){c=this.Ec();var h=this.Gha;var k=this.ya.g("barsPadding");var l=this.ya.g("barGroupsPadding");var m=c.Sa.pd.cO;this.Pz=1/(l+k*(m-1)+m);$.qB(this,this.Pz);this.nE();this.Hd(!1)}else h=this.XA,this.Hd(),c=this.Ec(); +if(k=this.KM())this.XA(k,f,e),this.wn(k,this.rr(k.ma()));for(c.reset();c.advance();)for(c.o("destinationValue",window.NaN),l=this.rr(c.ma()),h.call(this,c,f,e),this.wn(c,l),k=0;k=e;if(null===h?0:!(0,window.isNaN)(k)&&0==k)e=this.g("isVertical"),h=this.bb().Ne(),e=!(e^h);h=b.cN;k=a.o("valueRatio");k=$.p(k)?!k:!c;e?(c=-c,(0,window.isNaN)(b.jB)?(b.jB=f+c,c=b.jB,h||(k=!1)):(f=Math.min(f,b.jB),c=f+c,b.jB=c)):(0,window.isNaN)(b.dB)?(b.dB=f+c,c=b.dB,h||(k=!1)):(f=Math.max(f,b.dB),c=f+c,b.dB=c);a.o("value",c);a.o("zero",f); +a.o("skipDrawing",k)}return d};$.g.Eha=function(a,b,c,d){if(!a.o("missing")){var e=a.o("value");b=a.o("zero");var f=this.jH(a),h=Number(f);c=Math.max(Math.abs(e-b),this.oW);e=b>=e;if(null===f?0:!(0,window.isNaN)(h)&&0==h)f=this.g("isVertical"),h=this.bb().Ne(),e=!(f^h);e&&(c=-c);a.o("value",b+c)}return d};$.g.Cha=function(a,b,c,d){if(!a.o("missing")){b=a.o("high");c=a.o("low");var e=(b+c)/2,f=Math.max(Math.abs(c-b),this.oW)/2;b>=c&&(f=-f);a.o("high",e-f);a.o("low",e+f)}return d}; +$.g.Iha=function(a,b,c,d,e){b=this.bb();b={value:$.Za(b.transform(a.o("stackedValue"),.5),0,1),zero:$.Za(b.transform(a.o("stackedZero"),.5),0,1),prevValue:b.transform(a.o("stackedValuePrev"),.5),prevZero:b.transform(a.o("stackedZeroPrev"),.5),nextValue:b.transform(a.o("stackedValueNext"),.5),nextZero:b.transform(a.o("stackedZeroNext"),.5)};this.YA(a,b,e);a.o("zeroMissing",a.o("stackedMissing"));if(e=a.o("shared")){c=Math.abs(b.value-b.zero);b=e.cN;var f=a.o("valueRatio");c=$.p(f)?!f:!c;e.g1||b||(c= +!1,e.g1=!0);a.o("skipDrawing",c)}return d};$.g.zha=function(a,b,c,d){for(var e,f,h=this.bb(),k=0;k=e){f=window.Infinity;e=-window.Infinity;var h=Math.min.apply(null,this.d5);b=Math.max.apply(null,this.d5);var k;for(k=0;kl&&(f=l))}f=(0,window.isFinite)(f)&&h>=f;b=(0,window.isFinite)(e)&&b<=e}a.o("isMinPoint", +f);a.o("isMaxPoint",b);return d};$.g.M3=function(a,b,c,d,e){for(var f=this.bb(),h={},k=0;kf&&k>h?d+=h-f:k>e&&f=this.pd.rj&&a<=this.pd.lastIndex}; +$.g.ZT=function(a,b,c,d){var e=this.data(),f=e.$(),h=this.bb(),k=!1,l=!1,m=this.Bk(),n,q=[];this.eh()&&this.kt()&&q.push("zIndex");m&&q.push("size");this.check(256)&&q.push("outliers");pB(this)&&(iB(this.Ra())&&(e.hd("xError")&&(q.push("xError"),k=!0),e.hd("xLowerError")&&(q.push("xLowerError"),k=!0),e.hd("xUpperError")&&(q.push("xUpperError"),k=!0)),iB(this.bb())&&(e.hd("valueError")&&(q.push("valueError"),l=!0),e.hd("valueLowerError")&&(q.push("valueLowerError"),l=!0),e.hd("valueUpperError")&&(q.push("valueUpperError"), +l=!0)));$.J(h,$.$t)&&(n=$.cu(h))&&e.hd(n)&&q.push(n);var r=this.Ra();$.J(r,$.$t)&&(n=$.cu(r))&&e.hd(n)&&q.push(n);var t=this.lV();for(r=0;f.advance();){var u=c(f.get("x"));if(!d(u)){var v={};v.x=u;var w;u=!1;var x=this.Be();var y=0;for(w=x.length;yy&&!this.g("displayNegative"))&&(u=!0);y={};u?y.missing=1:(y.missing=0,r++);y.rawIndex=f.ma(); +y.ordinalIndex=r-1;v={data:v,o:y};this.UW(f,v,t);b(a,v)}}if(this.check($.lB)&&this.g("connectMissingPoints")&&r!==a.length)for(c=b=null,f=d=window.NaN,m=h=!1,q=0;qe&&(e=~e),f=$.Oa(this.pd.data,function(a){return b-a.data.x}),0>f&&(f=~f);if(!(0,window.isNaN)(e)&&!(0,window.isNaN)(f)){if(e>f){var h=e;e=f;f=h}if(d)for(h=this.pd.data,d=0;d=e&&l<=f&&c.push(k.o.rawIndex)}else for(f=Math.min(f,this.pd.data.length- +1),d=e;d<=f;d++)c.push(d)}return c}c=this.Ra();if(e=$.J(c,$.$t))a=c.Yv(a),b=c.Yv(b);return this.vG.pM(a,b,e)};$.g.qk=function(a,b){if(LB(this)){var c=this.$();if(8===c.o("missing"))return b;var d=c.o("shapes");this.eh()&&(this.Rf.Mo(a,d),this.Rf.VB(a,d));this.check(256)&&this.ZL(c,a,!0);this.bf.aF(c,a);this.check(4194304)&&this.gq(c,a,!0);this.check($.XG)&&this.tf(c,a,!0);return b}};$.g.wm=$.ia; +$.g.nl=function(a){if(LB(this)){var b=this.$(),c=b.o("shapes");this.Rf.Mo(a,c);this.bf.aF(b,a);this.check(256)&&this.ZL(b,a,!0)}};$.g.pq=$.ia;$.g.ej=function(a){return $.p(a)?(a=null===a?null:$.Bk(a),a!=this.et&&(this.et=a),this):this.et};$.g.Xl=function(a){return $.p(a)?this:this.ya.gd().g("hoverMode")};$.g.Tj=function(a){$.p(a)?this.$i(a):this.$k();return this}; +$.g.Nd=function(a){var b;if(b=!$.ux(this.state,$.Co))b=!(this.state.fk()&$.Co);if(b||!this.enabled())return this;var c;$.p(a)?c=a:c=this.state.Gc==$.nm?window.NaN:void 0;this.state.Vh($.Co,c);return this};$.g.$i=function(a){if(!this.enabled())return this;if($.A(a)){for(var b=$.Ax(this.state,$.Co),c=0;cc&& +(c=window.NaN);a.pointIndex=c}return a};$.g.Ih=function(a){(a=this.Tg(a))&&this.dispatchEvent(a)}; +$.g.Tg=function(a){var b=a.type;switch(b){case "mouseout":b="pointmouseout";break;case "mouseover":b="pointmouseover";break;case "mousemove":b="pointmousemove";break;case "mousedown":b="pointmousedown";break;case "mouseup":b="pointmouseup";break;case "click":case "touchstart":b="pointclick";break;case "dblclick":b="pointdblclick";break;default:return null}var c;a.target!=this.Qa().el()||(0,window.isNaN)(a.markerIndex)?"pointIndex"in a?c=a.pointIndex:"labelIndex"in a?c=a.labelIndex:"markerIndex"in +a&&(c=a.markerIndex):c=dda(this,a.markerIndex);c=$.N(c);a.pointIndex=c;var d=this.cg();d.select(c)||d.reset();return{type:b,actualTarget:a.target,series:this,iterator:d,pointIndex:c,target:this,originalEvent:a,point:this.be(c)}};$.g.be=function(a){var b;this.Bk()?b=new OA(this,a):b=new $.NA(this,a);return b}; +$.g.D=function(){var a=$.FB.u.D.call(this);$.cr(this,hI,a);if(this.pd){for(var b=[],c=this.data(),d=new EB(this);d.advance();){var e=d.o("rawIndex");(0,window.isNaN)(e)?b.push({x:d.get("x")}):b.push(Pr(c,e))}a.data=b}else a.data=this.data().D();$.p(this.ej())&&(a.selectionMode=this.ej());return a};$.g.U=function(a,b){$.FB.u.U.call(this,a,b);$.Vq(this,hI,a,b);"data"in a&&this.data(a.data||null);this.ej(a.selectionMode)}; +$.g.R=function(){$.qd(this.gm);delete this.vG;this.fb=this.pd=this.state=this.de=this.gm=null;$.FB.u.R.call(this)};var iI=$.FB.prototype;iI.data=iI.data;iI.xScale=iI.Ra;iI.hover=iI.Tj;iI.unhover=iI.Nd;iI.select=iI.select;iI.unselect=iI.ie;iI.selectionMode=iI.ej;iI.getPoint=iI.be;iI.excludePoint=iI.t1;iI.includePoint=iI.iV;iI.keepOnlyPoints=iI.r3;iI.includeAllPoints=iI.hV;iI.getExcludedPoints=iI.EM;$.H($.OB,$.Y);var NB=1E6;$.OB.prototype.qa=$.Y.prototype.qa;$.OB.prototype.sa=$.Y.prototype.sa|464;$.OB.prototype.K=function(a){this.aa||(this.aa=new ZB(this),$.W(this,"thumbs",this.aa));return $.p(a)?(this.aa.N(a),this):this.aa}; +var jI=function(){function a(a){return function(b){var c=$.Fo(b,null);return null===b?this.vf(a):null===c?this.g(a):c}}var b={};$.Cq(b,[[0,"height",a("height")],[0,"minHeight",a("minHeight")],[0,"maxHeight",a("maxHeight")],[0,"orientation",nr],[0,"inverted",$.Qq],[0,"autoHide",$.Qq],[1,"fill",$.$q],[1,"selectedFill",$.$q],[1,"outlineStroke",$.Zq],[0,"allowRangeChange",$.Qq]]);return b}();$.U($.OB,jI);$.g=$.OB.prototype; +$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.K(this.Wa,this.fm,this),$.W(this,"padding",this.Wa));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa};$.g.fm=function(a){$.X(a,2)&&this.B(4,9)};$.g.Ob=function(){return"bottom"==this.g("orientation")||"top"==this.g("orientation")};$.g.remove=function(){this.Aa&&this.Aa.remove()};$.g.Oe=function(){return this.enabled()&&(!this.g("autoHide")||this.g("allowRangeChange")||0!=this.F||this.j!=NB)}; +$.g.W=function(){if(!this.zc())return this;this.I(256);if(!this.Oe())return this.remove(),this.B(2),this;if(this.pf())return this;this.Aa||(this.Aa=$.ok(),this.f=$.qk(),this.f.zIndex(100),this.b=$.qk(),this.b.zIndex(100),this.ba=this.Aa.rect(),this.ba.zIndex(1),this.dO=$.tk(),this.ba.clip(this.dO),this.G=this.Aa.rect(),this.G.zIndex(50),this.vB=$.tk(),this.G.clip(this.vB),this.P=this.Aa.path(),this.P.zIndex(99),$.Bu(this,this.Aa,this.Gaa,this.$ha),this.wc.wa(this.f,"mouseover",this.A6),this.wc.wa(this.f, +"mouseout",this.z6),this.wc.Ce(this.f,"mousedown",this.ZE),this.wc.Ce(this.f,"touchstart",this.ZE),this.wc.wa(this.b,"mouseover",this.A6),this.wc.wa(this.b,"mouseout",this.z6),this.wc.Ce(this.b,"mousedown",this.ZE),this.wc.Ce(this.b,"touchstart",this.ZE),this.wc.Ce(this.G,"mousedown",this.ZE),this.wc.Ce(this.G,"touchstart",this.ZE),this.wc.wa(this.ba,"click",this.via));this.J(2)&&(this.Aa.parent(this.O()),this.I(2));this.J(8)&&(this.Aa.zIndex(this.zIndex()),this.I(8));this.J(128)&&(this.f.cursor(PB(this)), +this.b.cursor(PB(this)),this.G.cursor(PB(this)),this.B(84),this.I(128));this.J(4)&&(this.VP(),this.I(4));if(this.J(64)){var a=(Math.max($.$b(this.g("outlineStroke")),5)-1)/2;if(this.Ob()){var b=this.fa.top;if(this.K().g("enabled"))a=b+this.fa.height/2,this.f.clear().moveTo(-4,a-6).lineTo(-2,a-8).lineTo(2,a-8).lineTo(4,a-6).lineTo(4,a+6).lineTo(2,a+8).lineTo(-2,a+8).lineTo(-4,a+6).close().moveTo(-1,a-5).lineTo(-1,a+5).moveTo(1,a-5).lineTo(1,a+5),this.b.clear().moveTo(-4,a-6).lineTo(-2,a-8).lineTo(2, +a-8).lineTo(4,a-6).lineTo(4,a+6).lineTo(2,a+8).lineTo(-2,a+8).lineTo(-4,a+6).close().moveTo(-1,a-5).lineTo(-1,a+5).moveTo(1,a-5).lineTo(1,a+5);else{var c=b+this.fa.height;this.f.clear().moveTo(-a,b).lineTo(a,b).lineTo(a,c).lineTo(-a,c).close();this.b.clear().moveTo(-a,b).lineTo(a,b).lineTo(a,c).lineTo(-a,c).close()}}else b=this.fa.left,this.K().g("enabled")?(a=b+this.fa.width/2,this.f.clear().moveTo(a-6,-4).lineTo(a-8,-2).lineTo(a-8,2).lineTo(a-6,4).lineTo(a+6,4).lineTo(a+8,2).lineTo(a+8,-2).lineTo(a+ +6,-4).close().moveTo(a-5,-1).lineTo(a+5,-1).moveTo(a-5,1).lineTo(a+5,1),this.b.clear().moveTo(a-6,-4).lineTo(a-8,-2).lineTo(a-8,2).lineTo(a-6,4).lineTo(a+6,4).lineTo(a+8,2).lineTo(a+8,-2).lineTo(a+6,-4).close().moveTo(a-5,-1).lineTo(a+5,-1).moveTo(a-5,1).lineTo(a+5,1)):(c=b+this.fa.height,this.f.clear().moveTo(b,-a).lineTo(b,a).lineTo(c,a).lineTo(c,-a).close(),this.b.clear().moveTo(b,-a).lineTo(b,a).lineTo(c,a).lineTo(c,-a).close());this.B(16);this.I(64)}if(this.J(16)){this.ba.Qf(this.fa);this.G.Qf(this.fa); +this.dO.shape(this.fa);a=this.g("fill");this.ba.fill("none"==a?$.im:a).stroke(null);a=this.g("selectedFill");this.G.fill("none"==a?$.im:a).stroke(null);this.P.stroke(this.g("outlineStroke")).fill(null);TB(this,this.f,this.eb);TB(this,this.b,this.Xa);switch(this.g("orientation")){case "top":a=this.fa;c=this.F;b=this.j;this.g("inverted")&&(c=NB-c,b=NB-b);c=a.left+c/NB*a.width;var d=a.left+b/NB*a.width;this.f.pc(1,0,0,1,c,0);this.b.pc(1,0,0,1,d,0);b=Math.min(c,d);c=Math.max(c,d);this.vB.shape(b,a.top, +c-b,a.height);b=$.R(b,1);c=$.R(c,1);d=$.R(a.top,1);var e=$.R(a.top+a.height,1);this.P.clear().moveTo(a.left,d).lineTo(b,d).lineTo(b,e).lineTo(c,e).lineTo(c,d).lineTo(a.left+a.width,d);break;case "right":a=this.fa;b=this.F;c=this.j;this.g("inverted")||(b=NB-b,c=NB-c);b=a.top+b/NB*a.height;d=a.top+c/NB*a.height;this.f.pc(1,0,0,1,0,b);this.b.pc(1,0,0,1,0,d);c=Math.min(b,d);b=Math.max(b,d);this.vB.shape(a.left,c,a.width,b-c);this.P.clear().moveTo(a.left,a.top).lineTo(a.left,c).lineTo(a.left+a.width,c).lineTo(a.left+ +a.width,b).lineTo(a.left,b).lineTo(a.left,a.top+a.height);break;case "bottom":a=this.fa;c=this.F;b=this.j;this.g("inverted")&&(c=NB-c,b=NB-b);c=a.left+c/NB*a.width;d=a.left+b/NB*a.width;this.f.pc(1,0,0,1,c,0);this.b.pc(1,0,0,1,d,0);b=Math.min(c,d);c=Math.max(c,d);this.vB.shape(b,a.top,c-b,a.height);b=$.R(b,1);c=$.R(c,1);d=$.R(a.top,1);e=$.R(a.top+a.height,1);this.P.clear().moveTo(a.left,d).lineTo(b,d).lineTo(b,e).lineTo(c,e).lineTo(c,d).lineTo(a.left+a.width,d);break;case "left":a=this.fa,b=this.F, +c=this.j,this.g("inverted")||(b=NB-b,c=NB-c),b=a.top+b/NB*a.height,d=a.top+c/NB*a.height,this.f.pc(1,0,0,1,0,b),this.b.pc(1,0,0,1,0,d),c=Math.min(b,d),b=Math.max(b,d),this.vB.shape(a.left,c,a.width,b-c),this.P.clear().moveTo(a.left+a.width,a.top).lineTo(a.left+a.width,c).lineTo(a.left,c).lineTo(a.left,b).lineTo(a.left+a.width,b).lineTo(a.left+a.width,a.top+a.height)}this.K().g("autoHide")||RB(this);this.I(16)}return this}; +$.g.zd=function(){var a=this.ja();a=a?a.clone():$.rn(0,0,0,0);this.Oe()&&(this.J(4)&&(this.VP(),this.I(4)),this.Ob()?(a.height-=this.i.height,"top"==this.g("orientation")&&(a.top+=this.i.height)):(a.width-=this.i.width,"left"==this.g("orientation")&&(a.left+=this.i.width)));return a}; +$.g.VP=function(){var a=this.ja(),b=this.Ob()?a.height:a.width,c=$.L(this.g("height"),b),d=$.L(this.g("maxHeight"),b),e=$.L(this.g("minHeight"),b);b=c;(0,window.isNaN)(e)||(b=Math.max(b,e));(0,window.isNaN)(d)||(b=Math.min(c,d));b=this.Ob()?this.padding().$j(b):this.padding().Lk(b);this.i.left=a.left;this.i.top=a.top;c=this.g("orientation");this.Ob()?(this.i.width=a.width,this.i.height=b,"bottom"==c&&(this.i.top+=a.height-b)):(this.i.width=b,this.i.height=a.height,"right"==c&&(this.i.left+=a.width- +b));this.rb||this.Ob()?this.fa=this.padding().Ej(this.i):(b=this.padding(),"left"==c?(c=$.L(b.g("left"),this.i.width),a=$.L(b.g("top"),this.i.height),d=$.L(b.g("right"),this.i.width),b=$.L(b.g("bottom"),this.i.height)):(c=$.L(b.g("right"),this.i.width),a=$.L(b.g("bottom"),this.i.height),d=$.L(b.g("left"),this.i.width),b=$.L(b.g("top"),this.i.height)),this.fa.left=this.i.left+b,this.fa.top=this.i.top+c,this.fa.width=this.i.width-b-a,this.fa.height=this.i.height-c-d);this.B(80)}; +$.g.Gaa=function(a){a.Ju();!$.Ao(this.Aa,a.relatedTarget)&&this.oh(a)&&(this.$a=!0,RB(this))};$.g.$ha=function(a){a.Ju();!$.Ao(this.Aa,a.relatedTarget)&&this.oh(a)&&(this.$a=!1,SB(this))};$.g.A6=function(a){a=a.target;$.J(a,$.Ag)&&(a==this.f?TB(this,this.f,this.eb=!0):a==this.b&&TB(this,this.b,this.Xa=!0))};$.g.z6=function(a){a=a.target;$.J(a,$.Ag)&&(a==this.f?TB(this,this.f,this.eb=!1):a==this.b&&TB(this,this.b,this.Xa=!1))}; +$.g.ZE=function(a){if($.J(a.currentTarget,$.hg)){var b=a.currentTarget,c;b!=this.f||this.Ba?b!=this.b||this.ea?b!=this.G||this.na||(this.na=c=new YB(this,this.G,!1)):this.ea=c=new YB(this,this.b,!0):this.Ba=c=new YB(this,this.f,!0);c&&(this.wc.wa(c,"start",this.Faa),this.wc.wa(c,"end",this.Eaa),c.mk(a.kf))}};$.g.via=function(a){var b=$.Zj(this.Aa.Ka());a=this.Ob()?a.clientX-b.x:a.clientY-b.y;UB(this,"background-click","scrollerchangestart")&&(WB(this,!1,a),UB(this,"background-click","scrollerchangefinish"))}; +$.g.Faa=function(a){if(this.g("allowRangeChange")&&a.f!=this.na){a=PB(this);var b="thumb-drag"}else a=PB(this),b="selected-range-drag";if(b=UB(this,b,"scrollerchangestart"))this.Ha++,this.f.cursor(null),this.b.cursor(null),this.G.cursor(null),$.uf(window.document.body,"cursor",a);return b}; +$.g.Eaa=function(a){this.Ha=Math.max(this.Ha-1,0);SB(this);this.f.cursor(PB(this));this.b.cursor(PB(this));this.G.cursor(PB(this));$.uf(window.document.body,"cursor","");a=this.g("allowRangeChange")&&a.f!=this.na?"thumb-drag":"selected-range-drag";UB(this,a,"scrollerchangefinish")};$.g.L3=function(a,b,c,d){return{type:a,startRatio:b,endRatio:c,source:d}}; +$.g.R=function(){$.qd(this.Aa);this.G=this.ba=this.P=this.b=this.f=this.Aa=null;$.qd(this.Ba);this.Ba=null;$.qd(this.ea);this.ea=null;$.qd(this.na);this.na=null;$.qd(this.aa);this.aa=null;$.qd(this.Wa);this.Wa=null;$.OB.u.R.call(this)};$.g.D=function(){var a=$.OB.u.D.call(this);$.cr(this,jI,a,"Scroller");a.thumbs=this.K().D();return a};$.g.U=function(a,b){$.OB.u.U.call(this,a,b);$.Vq(this,jI,a,b);"thumbs"in a&&this.K().ga(!!b,a.thumbs)};$.H(YB,$.ag);$.g=YB.prototype; +$.g.Daa=function(){$.p(this.Qj)&&($.ll.cancelAnimationFrame(this.Qj),this.rs(0))};$.g.ar=function(){this.i.Ob()?(this.deltaX=XB(this.i,this.b),this.deltaY=0):(this.deltaX=0,this.deltaY=XB(this.i,this.b))};$.g.ls=function(a,b){this.ba=this.i.Ob()?a:b;$.p(this.Qj)||(this.Qj=$.ll.requestAnimationFrame(this.rs))};$.g.VA=function(a){return this.i.Ob()?VB(this.i,this.b,a):0};$.g.My=function(a){return this.i.Ob()?0:VB(this.i,this.b,a)};$.H(ZB,$.V);$.Tq(ZB,["fill","stroke"],"normal"); +ZB.prototype.B=function(a,b){return this.i.B(a,b)};ZB.prototype.Qa=function(a){return $.p(a)?(this.ca.N(a),this):this.ca};ZB.prototype.lb=function(a){return $.p(a)?(this.za.N(a),this):this.za};var kI={};$.Cq(kI,[[0,"enabled",$.Pq],[0,"autoHide",$.Pq]]);$.U(ZB,kI);$.g=ZB.prototype;$.g.D=function(){var a={};a.normal=this.Qa().D();a.hovered=this.lb().D();$.cr(this,kI,a,"Scroller thumbs");return a};$.g.U=function(a,b){this.ca.ga(!!b,a);this.ca.ga(!!b,a.normal);this.za.ga(!!b,a.hovered);$.Vq(this,kI,a)}; +$.g.he=function(a){return $.da(a)||null===a?{enabled:!!a}:null};$.g.Le=function(a,b){var c=this.he(b);return c?(this.enabled(c.enabled),!0):!1};$.g.R=function(){$.sd(this.ca,this.za);this.za=this.ca=null;ZB.u.R.call(this)};$.H($B,$.OB);$.Hu($B,$.OB);$B.prototype.Jr=function(a,b){$.QB(this,a,b);return this};$B.prototype.$b=function(a){return $.p(a)?($.QB(this,a,this.j/NB),this):this.F/NB};$B.prototype.Lb=function(a){return $.p(a)?($.QB(this,this.F/NB,a),this):this.j/NB};var lI=$.OB.prototype; +lI.thumbs=lI.K;lI=ZB.prototype;lI.normal=lI.Qa;lI.hovered=lI.lb;lI=$B.prototype;$.E("anychart.standalones.scroller",function(){var a=new $B;a.N($.um("standalones.scroller"));return a});lI.setRange=lI.Jr;lI.startRatio=lI.$b;lI.endRatio=lI.Lb;lI.parentBounds=lI.ja;lI.getRemainingBounds=lI.zd;lI.container=lI.O;lI.padding=lI.padding;lI.draw=lI.W;$.H($.aC,$.OB);var mI={};$.Bq(mI,0,"position",function(a,b){return $.zk(yda,a,b||"after-axes")});$.U($.aC,mI);$.aC.prototype.D=function(){var a=$.aC.u.D.call(this);$.cr(this,mI,a);return a};$.aC.prototype.U=function(a,b){$.aC.u.U.call(this,a,b);$.Vq(this,mI,a,b)};$.g=bC.prototype;$.g.BB=function(a,b){a=$.Za($.N(a),0,1);(0,window.isNaN)(a)&&(a=this.i);b=$.Za($.N(b),0,1);(0,window.isNaN)(b)&&(b=this.b);this.f=null;if(this.i!=a||this.b!=b)this.i=a,this.b=b,this.ra.B(268435456,1);return this};$.g.U5=function(a,b,c){this.f={start:a,end:b,scale:c};this.ra.B(268435456,1);return this};$.g.T5=function(a,b,c){this.f={count:$.P(a),scale:c,ofa:!!b};this.ra.B(268435456,1);return this};$.g.Fz=function(){cC(this);return this.i};$.g.Ez=function(){cC(this);return this.b}; +$.g.tS=function(a){return $.p(a)?(a=!!a,this.j!=a&&(this.j=a),this):this.j};$.g.N=function(a){$.p(a)&&((0,window.isNaN)(+a)?$.C(a)&&(this.tS(a.continuous),$.p(a.startValue)&&$.p(a.endValue)?this.U5(a.startValue,a.endValue,$.J(a.scale,gt)?a.scale:void 0):$.p(a.pointsCount)?this.T5(a.pointsCount,a.fromEnd,$.J(a.scale,gt)?a.scale:void 0):this.BB(a.startRatio,a.endRatio)):this.BB(0,1/Math.abs(+a||1)));return this};$.g.D=function(){return{startRatio:this.Fz(),endRatio:this.Ez(),continuous:this.j}}; +var nI=bC.prototype;nI.setTo=nI.BB;nI.setToValues=nI.U5;nI.setToPointsCount=nI.T5;nI.getStartRatio=nI.Fz;nI.getEndRatio=nI.Ez;nI.continuous=nI.tS;$.H($.dC,$.EA);var oI=function(){var a={};$.Cq(a,[[0,"zAngle",function(a){return $.Za($.N(a),0,90)}],[0,"zAspect",function(a){return $.ea(a)?Math.max(a,0):a}],[0,"zDistribution",$.Qq],[0,"zPadding",function(a){return Math.max($.N(a),0)||0}]]);return a}();$.U($.dC,oI);$.g=$.dC.prototype;$.g.sa=$.EA.prototype.sa|1879048192;$.g.Tq=function(a){return $.p(a)?(this.ka(),this.Uc.N(a),this.da(!0),this):this.Uc};$.g.Uq=function(a){return $.p(a)?(this.ka(),this.bg.N(a),this.da(!0),this):this.bg}; +$.g.Lp=function(a){this.F||(this.F=new $.aC,this.F.kb(this),$.K(this.F,this.YZ,this),this.wc.wa(this.F,"scrollerchange",this.qK),this.wc.wa(this.F,"scrollerchangefinish",this.qK),this.B(536870916,1),$.W(this,"xScroller",this.F));return $.p(a)?(this.F.N(a),this):this.F}; +$.g.Ur=function(a){this.G||(this.G=new $.aC,this.G.kb(this),$.K(this.G,this.YZ,this),this.wc.wa(this.G,"scrollerchange",this.qK),this.wc.wa(this.G,"scrollerchangefinish",this.qK),this.B(1073741828,1),$.W(this,"yScroller",this.G));return $.p(a)?(this.G.N(a),this):this.G};$.g.YZ=function(a){var b=a.target==this.Lp()?536870912:1073741824,c=1;$.X(a,8)&&(b|=4,c|=8);this.B(b,c)}; +$.g.qK=function(a){var b=a.target==this.Lp()?this.Uc:this.bg;b.tS()^"scrollerchangefinish"==a.type&&(a.preventDefault(),this.ka(),b.BB(a.startRatio,a.endRatio),this.da(!0))};$.g.Gt=function(a,b){return new $.FB(this,this,a,b,!0)};$.g.Ss=function(a){return $.zk(Bda,a,"line")};$.g.mD=function(a){a=eC(this.Ur(),a);this.Ek=a.C5;a=eC(this.Lp(),a.y0);return $.dC.u.mD.call(this,a.y0,a.C5)};$.g.Q_=function(a,b){var c=fC(this,a,this.Lp(),b),d=this.Ur();return fC(this,c,d,this.Ek)}; +$.g.HR=function(a){if(this.J(268435456)){for(var b in this.mm){var c=this.Tq().Fz(),d=1/(this.Tq().Ez()-c);ht(this.mm[b],d,c)}$.QB(this.Lp(),this.Tq().Fz(),this.Tq().Ez());a||this.B(570687488)}};$.g.IR=function(a){if(this.J(268435456)){for(var b in this.pn){var c=this.Uq().Fz(),d=1/(this.Uq().Ez()-c);ht(this.pn[b],d,c)}$.QB(this.Ur(),this.Uq().Fz(),this.Uq().Ez());a||this.B(1107296256)}};$.g.O_=function(){this.J(268435456)&&(this.HR(!0),this.IR(!0),this.B(1644167168))}; +$.g.pb=function(){$.dC.u.pb.call(this);this.I(268435456)};$.g.p2=function(){return this.Uc.Fz()};$.g.o2=function(){return this.Uc.Ez()};$.g.UT=function(){return $.dC.u.UT.call(this)|1610612736};$.g.jR=function(){$.dC.u.jR.call(this);this.J(536870912)&&(this.Lp().O(this.Na),this.Lp().W(),this.I(536870912));this.J(1073741824)&&(this.Ur().O(this.Na),this.Ur().W(),this.I(1073741824))}; +$.g.Z5=function(a,b,c){var d=this.N1(b);b=d.transform(c,0);c=d.transform(c,1);return"selected"!=a||1>=Math.min(b,c)&&0<=Math.max(b,c)};$.g.N1=function(a){return a.tl()}; +$.g.ht=function(a,b,c){$.dC.u.ht.call(this,a,b,c);$.Vq(this,oI,a);"xScroller"in a&&this.Lp().ga(!!c,a.xScroller);"yScroller"in a&&this.Ur().ga(!!c,a.yScroller);var d=a.xZoom;$.C(d)&&($.ea(d.scale)||$.z(d.scale))?(c=d.scale,d.scale=b[d.scale],this.Tq(d),d.scale=c):this.Tq(d);a=a.yZoom;$.C(a)&&($.ea(a.scale)||$.z(a.scale))?(c=a.scale,a.scale=b[a.scale],this.Uq(a),a.scale=c):this.Uq(a)}; +$.g.D=function(){var a=$.dC.u.D.call(this);$.cr(this,oI,a);a.xScroller=this.Lp().D();a.yScroller=this.Ur().D();a.xZoom=this.Tq().D();a.yZoom=this.Uq().D();return{chart:a}};$.g.R=function(){$.dC.u.R.call(this);$.sd(this.F,this.G);this.G=this.F=null};$.g=$.gC.prototype;$.g.zs=ba(29);$.g.Yt=function(){$.iC(this);return this.b.concat()};$.g.Uj=function(){return 0==this.i};$.g.clear=function(){this.f={};this.i=this.b.length=0};$.g.remove=function(a){return $.hC(this.f,a)?(delete this.f[a],this.i--,this.b.length>2*this.i&&$.iC(this),!0):!1};$.g.get=function(a,b){return $.hC(this.f,a)?this.f[a]:b};$.g.set=function(a,b){$.hC(this.f,a)||(this.i++,this.b.push(a));this.f[a]=b}; +$.g.forEach=function(a,b){for(var c=this.Yt(),d=0;da.o("size")){var c="negative";var d="negativeHatchFill"}else c="circle",d="hatchFill";var e={};e[c]=!0;e[d]=!0;c=this.bd.ed(b,e);rC(this,a,c)};$.g.yt=function(a){var b=a.o("shapes");rC(this,a,b)};$.H(sC,$.RA);$.WG[5]=sC;$.g=sC.prototype;$.g.type=5;$.g.flags=$.aH|263744;$.g.Kh={rising:"path",risingHatchFill:"path",falling:"path",fallingHatchFill:"path"};$.g.Mp=["open","high","low","close"];$.g.El="close"; +$.g.ug=function(a,b){var c=Number(a.get("open"))b?this.mc&&(d="highFill",e="highHatchFill"):this.Uc&&(d="lowFill",e="lowHatchFill");c.ZU="highStroke";c.XV="lowStroke";c.fill=d;c.oe=e;return c}; +$.g.Qo=function(a){var b=this.bd,c=this.X.Be(),d=a.get(c[1]);c=a.get(c[0]);d=this.nh(d,c);c={};c[d.ZU]=!0;c[d.XV]=!0;c=b.ed(this.Gc,c);this.P=c[d.ZU];this.ea=c[d.XV];c={};c[d.fill]=!0;c[d.oe]=!0;this.b=b.ed(this.Gc,c);b=a.o("x");c=a.o("high");a=a.o("low");var e=this.b[d.fill],f=this.b[d.oe];$.PA(e,this.xa,b,a);$.QA(e,this.xa,b,c);$.PA(f,this.xa,b,a);$.QA(f,this.xa,b,c);$.PA(this.P,this.xa,b,c);this.f=[b,a,e,f];this.i=b;this.j=c;this.K=a;this.na=d}; +$.g.ug=function(a){var b=this.bd,c=this.X.Be(),d=a.get(c[1]);c=a.get(c[0]);d=this.nh(d,c);c={};c[d.fill]=!0;c[d.oe]=!0;b=b.ed(this.Gc,c);c=a.o("x");var e=a.o("high");a=a.o("low");if(this.b!=b){var f=Cn(this.i,this.j,c,e,this.i,this.K,c,a);if(f){var h=this.b[this.na.fill];var k=this.b[this.na.oe];$.QA(h,this.xa,f.x,f.y);$.QA(k,this.xa,f.x,f.y);this.f.push(f.x,f.y,h,k);this.b=b;h=this.b[d.fill];k=this.b[d.oe];$.PA(h,this.xa,f.x,f.y);$.PA(k,this.xa,f.x,f.y);this.f.push(f.x,f.y,h,k)}else{h=this.i;k=this.j; +f=this.i;var l=this.K;h=$.cn((a-l)*(c-h)-(c-f)*(e-k),0)&&($.cn((c-f)*(k-l)-(a-l)*(h-f),0)||$.cn((c-h)*(k-l)-(e-k)*(h-f),0))?!0:!1;h&&(this.b=b,h=this.b[d.fill],k=this.b[d.oe],$.PA(h,this.xa,this.i,this.j),$.PA(k,this.xa,this.i,this.j),this.f.push(this.i,this.j,h,k))}}h=this.b[d.fill];k=this.b[d.oe];$.QA(h,this.xa,c,e);$.QA(k,this.xa,c,e);$.QA(this.P,this.xa,c,e);this.f.push(c,a,h,k);this.i=c;this.j=e;this.K=a;this.na=d}; +$.g.Km=function(){if(this.G&&this.f){for(var a=!0,b=null,c=this.f.length-1;0<=c;c-=4){var d=this.f[c-3],e=this.f[c-2],f=this.f[c-1],h=this.f[c];b&&f!=b?($.PA(f,this.xa,d,e),$.PA(h,this.xa,d,e)):($.QA(f,this.xa,d,e),$.QA(h,this.xa,d,e));a?($.PA(this.ea,this.xa,d,e),a=!1):$.QA(this.ea,this.xa,d,e);b=f}this.f=null}};$.H($.BC,$.RA);$.WG[12]=$.BC;$.g=$.BC.prototype;$.g.type=12;$.g.flags=$.mm|263680;$.g.Kh={path:"path",hatchFill:"path"};$.g.Mp=["low","high"];$.g.El="high"; +$.g.ug=function(a,b){if(!a.o("skipDrawing")){var c=this.X.Be(),d=a.get(c[1]);c=a.get(c[0]);d=this.nh(d,c);c={};c[d.path]=!0;c[d.oe]=!0;a.o("name",d.path);c=this.bd.ed(b,c);var e=a.o("x"),f=a.o("high"),h=a.o("low");e-=this.F/2;var k=e+this.F,l=$.$b(c[d.path].stroke());this.wv&&(e=$.R(e,l),k=$.R(k,l));f=$.R(f,l);h=$.R(h,l);l=c[d.path];$.PA(l,this.xa,e,h);$.QA(l,this.xa,k,h);$.QA(l,this.xa,k,f);$.QA(l,this.xa,e,f);l.close();l=c[d.oe];$.PA(l,this.xa,e,h);$.QA(l,this.xa,k,h);$.QA(l,this.xa,k,f);$.QA(l, +this.xa,e,f);l.close()}};CC.prototype.xa=function(a){return $.p(a)?(this.K=a,this):this.K};CC.prototype.aa=function(a){return $.p(a)?(this.i=a,this):this.i}; +CC.prototype.f=function(a){var b,c,d=arguments;for(b=0;bb?this.mc&&(d="highFill",e="highHatchFill"):this.Uc&&(d="lowFill",e="lowHatchFill");c.ZU="highStroke";c.XV="lowStroke";c.fill=d;c.oe=e;return c}; +$.g.Hd=function(a){LC.u.Hd.call(this,a);this.i.xa(this.xa);a=this.X.iB();$.p(a)&&(this.i.Ha=a);this.j.xa(this.xa);a=this.X.iB();$.p(a)&&(this.j.Ha=a);this.K=[]}; +$.g.Qo=function(a){var b=this.bd,c=this.X.Be(),d=a.get(c[1]);c=a.get(c[0]);var e={highStroke:!0,lowStroke:!0};e=b.ed(this.Gc,e);this.P=e.highStroke;this.ea=e.lowStroke;var f=this.nh(d,c);e={};e[f.fill]=!0;e[f.oe]=!0;b.ed(this.Gc,e);b=a.o("x");e=a.o("high");a=a.o("low");JC(this.i,!1);this.i.Ca=[this.P];(e=HC(this.i,b,e))&&this.K.push.apply(this.K,e);e=this.X.$().current();f=this.X.$().ma();this.f=[b,a,d,c,e,f]}; +$.g.ug=function(a){var b=this.bd,c=this.X.Be(),d=a.get(c[1]);c=a.get(c[0]);var e=this.nh(d,c),f={};f[e.fill]=!0;f[e.oe]=!0;b.ed(this.Gc,f);b=a.o("x");e=a.o("high");a=a.o("low");(e=HC(this.i,b,e))&&this.K.push.apply(this.K,e);e=this.X.$().current();f=this.X.$().ma();this.f.push(b,a,d,c,e,f)}; +$.g.Km=function(){var a=this.bd;if(this.G){var b=IC(this.i);b&&this.K.push.apply(this.K,b);this.i.Ca=[this.ea];JC(this.i,!0);JC(this.j,!0);b=[];if(this.f){for(var c=!0,d=this.X.cg(),e=this.f.length-1;0<=e;e-=6){var f=this.f[e-2],h=this.f[e-3];var k=this.f[e-4];var l=this.f[e-5];d.Iu(this.f[e-1],this.f[e]);h=this.nh(h,f);f=a.ed(this.Gc,d.o("shapeNames"));HC(this.j,l,k);HC(this.i,l,k);c?(this.b=f,k=f[h.fill],l=f[h.oe],this.j.Ca=[k,l],c=!1):(k=e==this.f.length-7||5==e?6:12,k=$.Ca(this.K,this.K.length- +k,k),$.qa($.Ca,b,void 0,0).apply(null,k),this.b!=f&&(k=f[h.fill],l=f[h.oe],h=this.j,k=[k,l],h.b=b.slice(),h.P=k,b.length=0,this.b=f))}$.qa($.Ca,this.j.Wh,void 0,0).apply(null,b);IC(this.j);IC(this.i);this.f=null}}};$.H(MC,$.RA);$.WG[14]=MC;$.g=MC.prototype;$.g.type=14;$.g.flags=$.lB|$.mm|131072;$.g.Kh={fill:"path",hatchFill:"path",highStroke:"path",lowStroke:"path"};$.g.Mp=["low","high"];$.g.El="high";$.g.Hd=function(a){MC.u.Hd.call(this,a);this.P=this.X.g("stepDirection")||"center"}; +$.g.Qo=function(a){var b=this.bd.ed(this.Gc),c=a.o("x"),d=a.o("high");a=a.o("low");$.PA(b.fill,this.xa,c,a);$.QA(b.fill,this.xa,c,d);$.PA(b.hatchFill,this.xa,c,a);$.QA(b.hatchFill,this.xa,c,d);$.PA(b.highStroke,this.xa,c,d);this.i=c;this.j=d;this.f=[c,a]}; +$.g.ug=function(a){var b=this.bd.ed(this.Gc),c=a.o("x"),d=a.o("high");a=a.o("low");var e=b.fill,f=b.hatchFill;b=b.highStroke;switch(this.P){case "forward":$.QA(e,this.xa,c,this.j);$.QA(f,this.xa,c,this.j);$.QA(b,this.xa,c,this.j);break;case "backward":$.QA(e,this.xa,this.i,d);$.QA(f,this.xa,this.i,d);$.QA(b,this.xa,this.i,d);break;default:var h=(c+this.i)/2;$.QA(e,this.xa,h,this.j,h,d);$.QA(f,this.xa,h,this.j,h,d);$.QA(b,this.xa,h,this.j,h,d)}$.QA(e,this.xa,c,d);$.QA(f,this.xa,c,d);$.QA(b,this.xa, +c,d);this.i=c;this.j=d;this.f.push(c,a)}; +$.g.Km=function(){if(this.G&&this.f){var a=this.bd.ed(this.Gc),b=a.fill,c=a.hatchFill;a=a.lowStroke;for(var d=window.NaN,e=window.NaN,f=!0,h=this.f.length-1;0<=h;h-=2){var k=this.f[h-1],l=this.f[h];if(f)$.PA(a,this.xa,k,l),f=!1;else switch(this.P){case "forward":$.QA(b,this.xa,d,l);$.QA(c,this.xa,d,l);$.QA(a,this.xa,d,l);break;case "backward":$.QA(b,this.xa,k,e);$.QA(c,this.xa,k,e);$.QA(a,this.xa,k,e);break;default:d=(k+d)/2,$.QA(b,this.xa,d,e,d,l),$.QA(c,this.xa,d,e,d,l),$.QA(a,this.xa,d,e,d,l)}$.QA(b, +this.xa,k,l);$.QA(c,this.xa,k,l);$.QA(a,this.xa,k,l);d=k;e=l}b.close();c.close();this.f=null}};$.H(NC,$.RA);$.WG[31]=NC;$.g=NC.prototype;$.g.type=31;$.g.flags=$.mm|295433;$.g.Kh={stroke:"path"};$.g.Hd=function(a){NC.u.Hd.call(this,a);this.wv=2e?this.Id&&(c="highStroke"):this.Pd&&(c="lowStroke");f[c]=!0;a.o("name",c);d=this.bd.ed(b,f);OC(this,a,d,c)};$.g.yt=function(a){var b=a.o("shapes"),c=a.o("name"),d;for(d in b)b[d].clear();OC(this,a,b,c)};$.H(PC,$.RA);$.WG[15]=PC;$.g=PC.prototype;$.g.type=15;$.g.flags=$.lB|32969;$.g.Kh={stroke:"path"};$.g.Hd=function(a){PC.u.Hd.call(this,a);this.f.xa(this.xa);a=this.X.iB();$.p(a)&&(this.f.Ha=a)};$.g.Qo=function(a){var b=a.get(this.X.Be()[0]),c=this.nh(b,this.prevValue),d=a.o("x");a=a.o("value");var e={};e[c.stroke]=!0;this.b=this.bd.ed(this.Gc,e);this.f.Ca=[this.b[c.stroke]];JC(this.f,!1);HC(this.f,d,a);this.P=a;this.prevValue=b}; +$.g.ug=function(a){var b=a.get(this.X.Be()[0]),c=this.bd,d=this.nh(b,this.prevValue),e={};e[d.stroke]=!0;c=c.ed(this.Gc,e);var f=a.o("x");e=a.o("value");HC(this.f,f,e);if(c!=this.b){var h;f=this.P;var k=SA(this,b);this.ba&&k?h=a.o("zero"):this.Ha&&!this.ba?h=f:h="middle";a=this.f;d=[c[d.stroke]];a.b=h;a.P=d;this.b=c}this.P=e;this.prevValue=b};$.g.Km=function(){this.G&&IC(this.f)};$.g.R=function(){this.f.Ca=null;PC.u.R.call(this)};$.H(QC,$.RA);$.WG[16]=QC;$.g=QC.prototype;$.g.type=16;$.g.flags=$.lB|225;$.g.Kh={fill:"path",hatchFill:"path",stroke:"path"};$.g.Hd=function(a){QC.u.Hd.call(this,a);this.i.xa(this.xa);a=this.X.iB();$.p(a)&&(this.i.Ha=a)};$.g.jA=function(a){if(this.Ba){if(this.X.gh()){var b=a.o("x"),c=a.o("zero");a=a.o("zeroMissing");this.f.push(b,c,a)}}else this.Km()}; +$.g.Qo=function(a){var b=a.get(this.X.Be()[0]),c=this.nh(b,this.prevValue),d=a.o("x"),e=a.o("zero"),f=a.o("zeroMissing");a=a.o("value");e=cp(e);a=cp(a);JC(this.i,!1);this.i.aa(e);HC(this.i,d,a);var h={};h[c.stroke]=!0;h[c.fill]=!0;h[c.oe]=!0;this.b=this.bd.ed(this.Gc,h);h=this.b[c.fill];h.b=!0;var k=this.b[c.oe];k.b=!0;c=this.b[c.stroke];c.b=!1;this.i.Ca=[h,c,k];this.X.gh()?this.f=[d,e,f]:this.Mi=e;this.P=a;this.prevValue=b}; +$.g.ug=function(a){var b=this.bd,c=a.get(this.X.Be()[0]),d=this.j=this.nh(c,this.prevValue),e=a.o("x"),f=a.o("zero"),h=a.o("zeroMissing");a=a.o("value");f=cp(f);a=cp(a);HC(this.i,e,a);var k={};k[d.stroke]=!0;k[d.fill]=!0;k[d.oe]=!0;b=b.ed(this.Gc,k);if(b!=this.b){var l;k=this.P;var m=SA(this,c);this.ba&&m?l=f:this.Ha&&!this.ba?l=k:l="middle";k=b[d.fill];k.b=!0;m=b[d.oe];m.b=!0;var n=b[d.stroke];n.b=!1;d=this.i;k=[k,n,m];d.b=l;d.P=k;this.i.aa(f);this.b=b}this.X.gh()&&this.f.push(e,f,h);this.P=a;this.prevValue= +c}; +$.g.Km=function(){if(this.G&&(IC(this.i),this.f)){var a=this.j,b={};b[a.stroke]=!0;b[a.fill]=!0;b[a.oe]=!0;this.b=this.bd.ed(this.Gc,b);b=this.b[a.fill];b.b=!1;var c=this.b[a.oe];c.b=!1;a=this.b[a.stroke];a.b=!1;this.i.Ca=[b,a,c];JC(this.i,!0);for(var d=a=window.NaN,e=!1,f=!0,h=this.f.length-1;0<=h;h-=3){var k=this.f[h-2],l=this.f[h-1],m=this.f[h];f?($.QA(b,this.xa,k,l),$.QA(c,this.xa,k,l),m||HC(this.i,k,l),f=!1):m&&e?($.QA(b,this.xa,k,l),$.QA(c,this.xa,k,l)):m?(IC(this.i),JC(this.i,!0),$.QA(b,this.xa, +a,l,k,l),$.QA(c,this.xa,a,l,k,l)):(e&&($.QA(b,this.xa,k,d,k,l),$.QA(c,this.xa,k,d,k,l)),HC(this.i,k,l));a=k;d=l;e=m}IC(this.i);this.f=null}};$.g.R=function(){this.i.Ca=null;QC.u.R.call(this)};$.H(RC,$.RA);$.WG[17]=RC;$.g=RC.prototype;$.g.type=17;$.g.flags=$.lB|131297;$.g.Kh={fill:"path",hatchFill:"path",stroke:"path"};$.g.Hd=function(a){RC.u.Hd.call(this,a);this.P=this.X.g("stepDirection")||"center"}; +$.g.Qo=function(a){var b=a.get(this.X.Be()[0]),c=this.bd,d=this.nh(b,this.prevValue),e={};e[d.stroke]=!0;e[d.fill]=!0;e[d.oe]=!0;c=this.b=c.ed(this.Gc,e);e=a.o("x");a.o("zeroX");var f=a.o("zero"),h=a.o("value");if(this.X.gh()){var k=a.o("nextZero");a=a.o("nextValue");if((0,window.isNaN)(k)||(0,window.isNaN)(a))TC(this,c,d,e,h,f),this.f=[e,f],this.j=h;else{var l=c.stroke;$.PA(l,this.xa,e,h);$.QA(l,this.xa,e,h);TC(this,c,d,e,a,k);this.f=[e,k];this.j=a}}else TC(this,c,d,e,h,f),this.ea=e,this.Mi=f,this.j= +h;this.i=e;this.prevValue=b;this.Ja=f;this.K=d}; +$.g.ug=function(a){var b=a.get(this.X.Be()[0]),c=this.bd,d=this.nh(b,this.prevValue),e={};e[d.stroke]=!0;e[d.fill]=!0;e[d.oe]=!0;c=c.ed(this.Gc,e);e=a.o("x");a.o("zeroX");var f=a.o("zero"),h=a.o("value");if(this.X.gh()){var k=a.o("prevZero"),l=a.o("prevValue"),m=a.o("nextZero");a=a.o("nextValue");(0,window.isNaN)(k)||(0,window.isNaN)(l)?(UC(this,c,d,b,e,h,f),this.f.push(e,f)):(UC(this,c,d,b,e,l,f),this.f.push(e,k),this.i=e,this.j=l,this.Km(),TC(this,c,d,e,h,f),this.f=[e,f]);(0,window.isNaN)(m)||(0,window.isNaN)(a)? +this.j=h:($.QA(c.stroke,this.xa,e,h),this.Km(),TC(this,c,d,e,a,m),this.f=[e,m],this.j=a)}else UC(this,c,d,b,e,h,f),this.ea=e,this.j=h;this.i=e;this.prevValue=b;this.Ja=f;this.K=d}; +$.g.Km=function(){if(this.G){var a=this.b,b=this.K,c=a[b.fill];a=a[b.oe];if(!(0,window.isNaN)(this.ea))$.QA(c,this.xa,this.ea,this.Mi),$.QA(a,this.xa,this.ea,this.Mi),c.close(),a.close();else if(this.f){var d=window.NaN;b=window.NaN;for(var e=this.f.length-1;0<=e;e-=2){var f=this.f[e-1],h=this.f[e];if(!(0,window.isNaN)(b))switch(this.P){case "forward":$.QA(c,this.xa,d,h);$.QA(a,this.xa,d,h);break;case "backward":$.QA(c,this.xa,f,b);$.QA(a,this.xa,f,b);break;default:d=(f+d)/2,$.QA(c,this.xa,d,b,d, +h),$.QA(a,this.xa,d,b,d,h)}$.QA(c,this.xa,f,h);$.QA(a,this.xa,f,h);d=f;b=h}c.close();a.close();this.f=null}}};$.H(VC,$.RA);$.WG[18]=VC;$.g=VC.prototype;$.g.type=18;$.g.flags=$.lB|164041;$.g.Kh={stroke:"path"};$.g.Hd=function(a){VC.u.Hd.call(this,a);this.P=this.X.g("stepDirection")||"center"};$.g.Qo=function(a){var b=a.get(this.X.Be()[0]),c=this.nh(b,this.prevValue),d={};d[c.stroke]=!0;this.b=this.bd.ed(this.Gc,d);d=a.o("x");a=a.o("value");$.PA(this.b[c.stroke],this.xa,d,a);this.i=d;this.j=a;this.prevValue=b;this.K=c}; +$.g.ug=function(a){var b=this.bd,c=a.get(this.X.Be()[0]),d=this.nh(c,this.prevValue),e={};e[d.stroke]=!0;b=b.ed(this.Gc,e);e=a.o("x");var f=a.o("value"),h=this.j;if(b!=this.b){var k=SA(this,c);this.ba&&k&&(h=a.o("zero"));a=WC(this,this.K,e,this.j,h);this.b=b;$.PA(this.b[d.stroke],this.xa,a,h)}WC(this,d,e,h,f);$.QA(this.b[d.stroke],this.xa,e,f);this.i=e;this.j=f;this.prevValue=c;this.K=d};$.H(XC,$.RA);$.WG[20]=XC;$.g=XC.prototype;$.g.type=20;$.g.flags=296681;$.g.Kh={stroke:"path"};$.g.Hd=function(a){XC.u.Hd.call(this,a);this.wv=2=this.Hb())&&$.p(a)&&this.f){if(this.f.o){var b=this.f.o("treemap_type");if(1==b||3==b||4==b)return;if(b=this.f.o(a))return b}if(this.f.get)return this.f.get(a)}};$.g.ma=function(){return this.i};$.g.Hb=function(){return this.b.length};$.g.o=function(a,b){if(this.f&&this.f.o)return 1c*c}return e},Mea=function(){return new $.jy},EO=function(a,b,c){$.Mz.call(this,null,[],[],b,c);this.ya=a},GO=function(a,b,c,d,e,f){$.Mr.call(this,a);this.i=b;this.f=d||null;this.j=e||function(a, +b){a.value+=Math.max(0,+b)||0;return a};this.F=f||function(){return{value:0}};this.b=new FO;this.b.o(0,"groupedPoint",!0);this.b.o(0,"name",c)},FO=function(){$.V.call(this);$.Sr(this);this.f=void 0},IO=function(a,b,c){$.Mz.call(this,null,[],[],b,c);this.ya=a;this.G=HO(this.ya);this.i=this.ya.g("connectorStroke")},JO=function(a,b){$.MA.call(this,a,b)},LO=function(a,b){$.Jx.call(this);this.Ga("pieFunnelPyramidBase","pie");this.contextMenu(this.oa.contextMenu);this.ka();this.Yc=this.i=this.fd=this.Fa= +this.Uc=null;this.nf=!0;this.Lb={};this.Ek=function(){var a=this.sourceColor,b=this.aquaStyleObj;return{keys:[{offset:0,color:$.Wl(a,.5)},{offset:.95,color:$.Xl(a,.4)},{offset:1,color:$.Xl(a,.4)}],cx:.5,cy:.5,fx:b.fx,fy:b.fy,mode:b.mode}};this.F=[];this.state=new $.qx(this);this.data(a||null,b);this.B(4294967295);$.T(this.ua,[["overlapMode",4096,1],["radius",4,1],["innerRadius",4,1],["startAngle",4112,1],["sort",16,1,0,function(){KO(this)}],["insideLabelsOffset",4100,9],["connectorLength",4100,9], +["outsideLabelsCriticalAngle",4096,1],["forceHoverLabels",4096,1],["connectorStroke",16,1],["mode3d",4116,1],["sliceDrawer",16,1]]);var c={};$.T(c,[["explode",4116,1],["fill",528,1],["stroke",528,1],["hatchFill",528,1],["labels",0,0],["outline",0,0]]);this.ca=new $.uy(this,c,$.nm,[[1,"fill",function(a){var b=!1;$.z(a[0])&&(a[0]=a[0].toLowerCase(),b="aquastyle"==a[0]);return this.g("mode3d")&&b?this.g("fill"):$.D(a[0])||b?a[0]:$.Ub.apply(null,a)}]]);this.ca.ta("labelsFactoryConstructor",Mea);this.ca.ta("labelsAfterInitCallback", +function(a){$.K(a,this.ce,this);a.kb(this);this.B(4096,1)});this.ca.ta("outlineAfterInitCallback",function(a){$.K(a,this.sja,this);this.B(16,1)});c={};$.T(c,[["explode",4116,1],["fill",16,1],["stroke",16,1],["hatchFill",0,0],["labels",0,0],["outline",16,1]]);this.za=new $.uy(this,c,$.Co);this.za.ta("labelsFactoryConstructor",$.xy);c={};$.T(c,[["explode",4116,1],["fill",16,1],["stroke",16,1],["hatchFill",0,0],["labels",0,0],["outline",16,1]]);this.Ea=new $.uy(this,c,$.Do);this.Ea.ta("labelsFactoryConstructor", +$.xy);this.da(!1)},KO=function(a){$.qd(a.P);delete a.sd;a.P=Nea(a,a.i);$.K(a.P,a.dd,a);a.B(13104,17)},Nea=function(a,b){if(null!=a.Uc){var c=b;b=new GO(b,"value",a.yo,a.Uc,void 0,function(){return{value:0}});$.rd(c,b);b.xY=!0}c=a.g("sort");"none"!=c&&null!=c&&(b="asc"==c?b.sort("value",function(a,b){return a-b}):b.sort("value",function(a,b){return b-a}),b.xY=!0);return b},NO=function(a,b,c){if(!a)return $.dm;var d=b+"|"+a+"|"+c,e=MO[d];if(!e){switch(b){case 2:e=$.fm;break;case 3:e=$.gm;break;default:case 1:e= +$.hm}MO[d]=e=$.qa(Oea,a,e,3==b,c)}return e},Oea=function(a,b,c,d,e,f,h,k){if(f!=$.nm&&d){var l=e.sc(a,f,e.$(),b,!1,void 0,h);c&&!0===l&&(l=b(e.Eh()));if($.p(l)){if(!$.D(l))return l;if(c)return c=e.Yi(h),b(l.call(c,c))}}a=e.sc(a,0,e.$(),b,!1,void 0,h);d=$.p(k)?k:a;k=$.z(a)&&"aquastyle"==a;c&&!0===a&&(a=b(e.Eh()));$.D(a)&&(c=c?e.Yi(h):e.Ge(d,h),a=b(a.call(c,c)));k&&(c=e.$(),c={aquaStyleObj:e.Lb,sourceColor:e.dc().oc(c.ma())},a=e.Ek.call(c));l&&(c=e.Ge(a,h),a=b(l.call(c,c)));return a},OO=function(a, +b,c){c=a.$().o(c||"hatchSlice");null!=c&&(a=NO("hatchFill",3,!0)(a,b,!1),c.stroke(null).fill(a))},PO=function(a){return $.C(a)&&a.hasOwnProperty("mode")&&a.hasOwnProperty("cx")},QO=function(a){a=null===a?window.NaN:+a;return!($.ea(a)&&!(0,window.isNaN)(a)&&0q||270=n:!1:4==l?4==m?h>=n:!0:!1}if(h)for(l=eP(d,f),h=a.F.length,n=l.length,a.F.length=h+n,m=0;md&&(d=0);0>e&&(e=0);if(d=e?360==Math.abs(h)?l.Fe(b,c,d,.45*d,f,h,!1):l.moveTo(b,c).Fe(b,c,d,.45*d,f,h,!0).close():(m=360>Math.abs(h),l.Fe(b,c,d,.45*d,f,h).Fe(b,c,e,.45*e,f+h,-h,m),m&&l.close()),YO(a,n,k)},lP=function(a,b){var c=a.$(),d=c.ma(),e=c.get("normal"),f=$.fp($.p(e)?e.fill:void 0,c.get("fill"),a.fill());b=$.lm(b);b==$.Do?(e=c.get("selected"),c=$.fp($.p(e)?e.fill:void 0,c.get("selectFill"),a.selected().fill(),f),f=a.DK(c,f)):b==$.Co?(e=c.get("hovered"),c=$.fp($.p(e)? +e.fill:void 0,c.get("hoverFill"),a.lb().fill(),f),f=a.DK(c,f)):f=a.DK(f);f=$.z(f)?$.Sl(f):$.Sl(f.color);d=a.dc().oc(d);var h;$.C(d)&&(d.color?h=$.Sl(d.color):d.keys&&d.keys.length&&(h=$.Sl(d.keys[0].color)));h=h?h.wk:d;return f?f.wk:h},YO=function(a,b,c){var d=a.$(),e=d.ma(),f=lP(a,c),h=$.Ll(f),k=d.o(b);k.tag={X:a,index:e};var l,m=$.Pl(h,.3),n=$.Ol([255,255,255],h,.1),q=$.Tb($.Ol(h,m,.7));n=$.Tb($.Ol(m,n,.1));var r=$.Tb($.Ol(h,m,.8)),t=$.Tb($.Ol(h,m,.2));h=$.Tb($.Ol(h,m,.1));var u=$.lm(c);m=u==$.Co; +u=u==$.Do;var v=$.bm(m?a.lb().fill():u?a.selected().fill():a.fill());t={color:m||u?$.Wl(t,.2):t,opacity:v};n={angle:45,keys:[{position:0,opacity:v,color:m||u?$.Wl(f,.2):$.Wl(f,.1)},{position:.19,opacity:v,color:m||u?$.Wl(n,.2):n},{position:1,opacity:v,color:m||u?$.Wl(r,.2):r}]};q=f={angle:-50,keys:[{position:0,opacity:v,color:m||u?$.Wl(f,.3):f},{position:1,opacity:v,color:m||u?$.Wl(q,.2):q}]};"topPath"==b?l=f:"bottomPath"==b?l=q:$.ec(b,"outer")?l=n:$.ec(b,"inner")?l=t:l={color:m||u?$.Wl(h,.2):h,opacity:v}; +var w;u&&$.km(a.selected().stroke())?w=a.selected().stroke():$.km(a.stroke())?w=a.stroke():w=l;k.fill(l);k.stroke(w);b="hatch"+String(b.charAt(0)).toUpperCase()+b.substr(1);if(d=d.o(b))d.qe(k.D()),d.tag={X:a,index:e},OO(a,c,b)},dP=function(a,b){return 0<=a&&0<=b?1:0>=a&&0<=b?2:0>=a&&0>b?3:4},eP=function(a,b){var c=$.$m(Math.cos($.bb(a)),7),d=$.$m(Math.cos($.bb(b)),7),e=dP(c,Math.sin($.bb(a))),f=dP(d,Math.sin($.bb(b))),h=[];if(1==e)switch(f){case 1:c>=d?h.push({start:a,end:b}):(h.push({start:a,end:180, +Jn:!0}),h.push({start:360,end:b}));break;case 2:h.push({start:a,end:b,Jn:!0});break;case 3:case 4:h.push({start:a,end:180,Jn:!0})}else if(2==e)switch(f){case 1:h.push({start:a,end:180});h.push({start:360,end:b});break;case 2:c>=d?h.push({start:a,end:b}):(h.push({start:a,end:180}),h.push({start:360,end:b,Jn:!0}));break;case 3:case 4:h.push({start:a,end:180})}else if(3==e)switch(f){case 1:h.push({start:360,end:b});break;case 2:h.push({start:360,end:b,Jn:!0});break;case 3:c>=d&&h.push({start:0,end:180, +Jn:!0})}else if(4==e)switch(f){case 1:h.push({start:360,end:b});break;case 2:h.push({start:360,end:b,Jn:!0});break;case 3:h.push({start:360,end:180,Jn:!0});break;case 4:c>=d&&h.push({start:0,end:180,Jn:!0})}return h},fP=function(a,b){var c=$.$m(Math.cos($.bb(a)),7),d=$.$m(Math.cos($.bb(b)),7),e=dP(c,Math.sin($.bb(a))),f=dP(d,Math.sin($.bb(b))),h=[];if(1==e)switch(f){case 1:c<=d&&h.push({start:180,end:360});break;case 3:h.push({start:180,end:b});break;case 4:h.push({start:180,end:b,Jn:!0})}else if(2== +e)switch(f){case 1:h.push({start:180,end:360,Jn:!0});break;case 2:c<=d&&h.push({start:180,end:360,Jn:!0});break;case 3:h.push({start:180,end:b});break;case 4:h.push({start:180,end:b,Jn:!0})}else if(3==e)switch(f){case 1:case 2:h.push({start:a,end:360,Jn:!0});break;case 3:c>=d?(h.push({start:a,end:360}),h.push({start:180,end:b})):h.push({start:a,end:b});break;case 4:h.push({start:a,end:b,Jn:!0})}else if(4==e)switch(f){case 1:case 2:h.push({start:a,end:360});break;case 3:h.push({start:a,end:360});h.push({start:180, +end:b});break;case 4:c>=d?(h.push({start:a,end:360}),h.push({start:180,end:b})):h.push({start:a,end:b})}return h},SO=function(a,b){var c=a.$();c.select(b);var d=a.Dc,e=a.uc,f=$.vx(a.state,b);if(f=TO(a,f)){var h=a.g("mode3d"),k=c.o("start");c=c.o("sweep");c=(k+c/2)*Math.PI/180;h=(h?.45*f:f)*Math.sin(c);d+=f*Math.cos(c);e+=h}return[d,e]},iP=function(a,b){bd)throw Error("Index can not be masked by this View");return a>=d?(a-=d,2b.ma()?1:a.ma()this.Ja&& +(this.dn=t),this.Ja=Math.max(this.Ja,sa);this.aa[t]||(sa=this.$a[2*t+1]-.2*this.b/2,sa=w&&saa.width&&(a.width=0);0>a.height&&(a.height=0);this.Lb.fx=!(0,window.isNaN)(e)&&(0,window.isFinite)(e)?e:0;this.Lb.fy=!(0,window.isNaN)(b)&&(0,window.isFinite)(b)?b:0;this.Lb.mode=a;WO(this)}; +$.g.pb=function(){if(this.J(8192)){this.hJ();for(var a=this.data().$(),b,c=0,d=Number.MAX_VALUE,e=-Number.MAX_VALUE,f=0;a.advance();)b=a.get("value"),QO(b)?c++:(b=+b,d=Math.min(b,d),e=Math.max(b,e),f+=b);a=a.Hb()-c;var h;a?h=f/a:d=e=f=h=void 0;this.La("count",a);this.La("min",d);this.La("max",e);this.La("sum",f);this.La("average",h);this.I(8192)}};$.g.pv=function(){this.Fa&&$.J(this.Fa,$.Ws)&&$.Xs(this.Fa,this.$().Hb())};$.g.kK=function(){var a=this.f.gi.sb();$.nb(a,this.Ba)||XO(this,a)}; +$.g.jL=function(){this.B(4,1)}; +$.g.Qh=function(a){this.pb();$.hv(this.labels());var b=this.$();b.Hb();var c=this.g("mode3d"),d=this.Sp();this.J(16384)&&(d&&d.ak&&(this.f.dG(),this.f.ak.parent(this.Na),this.f.ak.zIndex(25),this.f.ak&&($.J(this.f.gi,$.hg)?this.f.ak.Ka().wa("renderfinish",this.kK,!1,this):$.J(this.f.gi,$.Y)&&this.f.ak.wa("chartdraw",this.jL,!1,this))),this.I(16384));this.J(4)&&(this.nf=!0,this.Mm(a),this.B(4112));if(this.J(16)){this.yg=!0;var e=this.Vl();var f=0;for(b.reset();b.advance();)if(f=b.get("value"),QO(f))b.o("missing", +!0);else{f=+f;f=f/this.Rg("sum")*360;var h=b.get("state");h="selected"==h?$.Do:"hovered"==h?$.Co:"normal"==h?$.nm:window.NaN;(0,window.isNaN)(h)||this.state.Lh(h,b.ma());b.o("start",e).o("sweep",f).o("explode",TO(this,h));e+=f}}if(this.J(4096)){this.labels().O()||this.labels().O(this.Na);this.labels().clear();this.mc&&(this.mc.length=0);this.Id&&(this.Id.length=0);this.ba&&(this.ba.clear(),c&&this.$b.clear());if(this.labels().enabled()){var k=HO(this)?"outsideLabels":"insideLabels";e=$.Gr(this,k, +!0,function(){var a=new $.V;$.rd(this,a);$.W(this,k,a);return a}).oa;this.labels().Kq(e.autoColor);this.labels().disablePointerEvents(e.disablePointerEvents);if(HO(this)){if(this.yg||this.nf)this.b=this.zp,this.Ja=Number.NEGATIVE_INFINITY;VO(this);if(this.yg||this.nf){for(e=5;this.Ja&&(0,window.isFinite)(this.Ja)&&e&&10h&&(a=h,this.y=h-this.height);0!=this.labels.length&& +(e=this.qg.ek(this.labels[0]).height,this.y+eM&&(M=Math.abs(t-d));M=G*Math.sqrt(Math.pow(M,2)-Math.pow(t-d,2))/M;G=c+(this.f?1:-1)*Math.abs(M);x=c+x*Math.cos(w);B=d+B*Math.sin(w);var O=c+y*Math.cos(w);w=d+F*Math.sin(w);F=Math.floor($.on(G, +t,c,d))+v;v=Math.abs($.Bb(G-x,t-B,O-x,w-B));y=0>M||F>y;if(v>this.j||(0,window.isNaN)(this.j)||y){this.j=0>M?Number.POSITIVE_INFINITY:v;M=window.Infinity;for(F=w=0;Fh||y)this.YH=!0;u=G+u;G=this.f?u:u-e.width;this.x=(0,window.isNaN)(this.x)?G:this.x>G?G:this.x;G=this.f?u+e.width:u;this.width=(0,window.isNaN)(this.width)?G:this.widtht?y=$.cb(Math.atan(t/u))+360:0>u?y=$.cb(Math.atan(t/u))+180:!u&&0t&&(y=270);y-=r;this.b.push(y,G,n);a-=e.height/2+q/2}this.width-=this.x}; +$.g.pb=function(){this.Mx();if(this.YH){var a=this.K,b=this.F;(0,window.isNaN)(b)||(a.enabled(!1),this.ep||(this.ep=[]),this.ep.push(a),$.Ca(this.labels,b,1));var c=this.qg;a=this.labels;var d=this.i,e,f,h=d[d.length-1];if(h!=this){var k=null;b=a.slice();var l=d.length,m=!1;var n=0;for(e=a.length;nb?null:$.z(a)?a.charAt(b):a[b]};$.xa=function(a,b,c){for(var d=a.length,e=$.z(a)?a.split(""):a,f=0;f=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};$.Ka=function(a,b,c){function d(a){return $.C(a)?"o"+$.oa(a):(typeof a).charAt(0)+a}b=b||a;c=c||d;for(var e={},f=0,h=0;h>1,m;c?m=b.call(e,a[l],l,a):m=b(d,a[l]);0b?1:ac?($.Da(a,b,-(c+1)),!0):!1};$.Va=function(a,b){var c=[],d=0,e=a;void 0!==b&&(d=a,e=b);if(0>e-d)return[];for(;dc*b?c+b:c};$.ab=function(a){return $.$a(a,360)};$.bb=function(a){return a*Math.PI/180};$.cb=function(a){return 180*a/Math.PI};$.db=function(a,b){return b*Math.cos($.bb(a))};$.eb=function(a,b){return b*Math.sin($.bb(a))};$.fb=function(a){return 0a?-1:a};$.gb=function(a,b){this.x=$.p(a)?a:0;this.y=$.p(b)?b:0}; +$.ib=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};$.jb=function(a,b){var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)};$.kb=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};$.lb=function(a,b){this.width=a;this.height=b};$.mb=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};$.I=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}; +$.nb=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};$.ob=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top),f=Math.min(a.top+a.height,b.top+b.height);if(e<=f)return new $.I(c,e,d-c,f-e)}return null}; +gaa=function(a,b){var c;if((c=$.ob(a,b))&&c.height&&c.width){c=[];var d=a.top,e=a.height,f=a.left+a.width,h=a.top+a.height,k=b.left+b.width,l=b.top+b.height;b.top>a.top&&(c.push(new $.I(a.left,a.top,a.width,b.top-a.top)),d=b.top,e-=b.top-a.top);la.left&&c.push(new $.I(a.left,d,b.left-a.left,e));k=a.left&&b.x<=a.left+a.width&&b.y>=a.top&&b.y<=a.top+a.height:a.left<=b.left&&a.left+a.width>=b.left+b.width&&a.top<=b.top&&a.top+a.height>=b.top+b.height}; +$.rb=function(a,b){var c=b.xn;n++){var q=-3*f[n]+9*h[n]-9*k[n]+3*l[n],r=6*f[n]-12*h[n]+6*k[n];m=3*h[n]-3*f[n];if(0==q)0!=r&&(m=-m/r,0m&&c[n].push(b(f[n],h[n],k[n],l[n],m))); +else{var t=r*r-4*m*q;0m&&c[n].push(b(f[n],h[n],k[n],l[n],m)),m=(-r-Math.sqrt(t))/(2*q),0m&&c[n].push(b(f[n],h[n],k[n],l[n],m))):0==t&&(m=-r/(2*q),0m&&c[n].push(b(f[n],h[n],k[n],l[n],m)))}}}d=new $.I(Math.min.apply(null,c[0]),Math.min.apply(null,c[1]),0,0);d.width=Math.max.apply(null,c[0])-d.left;d.height=Math.max.apply(null,c[1])-d.top;return d}; +yb=function(a){if(0==arguments.length)return null;for(var b=null,c=!1,d=0,e=arguments.length;d":"
")}; +$.pc=function(a){if(!haa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(iaa,"&"));-1!=a.indexOf("<")&&(a=a.replace(jaa,"<"));-1!=a.indexOf(">")&&(a=a.replace(kaa,">"));-1!=a.indexOf('"')&&(a=a.replace(laa,"""));-1!=a.indexOf("'")&&(a=a.replace(maa,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(naa,"�"));return a}; +sc=function(a){for(var b=[],c=0;cf)var h=e;else{if(256>f){if(h="\\x",16>f||256f&&(h+="0");h+=f.toString(16).toUpperCase()}e=qc[e]=h}b[d]=e}return b.join("")};tc=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#b?1:0};yc=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};$.zc=function(a){var b=$.z(void 0)?tc(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};Vb=function(a,b){for(var c=a.split(" "),d=[];0=a};$.ed=function(a){var b=$.ka(a);if("array"==b){b=[];for(var c=0;cc.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(l){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);f=a.type;for(var h=c.length-1;!d.b&&0<=h;h--){d.currentTarget=c[h];var k=$.ee(c[h],f,!0,d);e=e&&k}for(h=0;!d.b&&h");c=c.join("")}c=a.createElement(c);d&&($.z(d)?c.className=d:$.A(d)?c.className=d.join(" "):$.Ce(c,d));2a};$.lf=function(a){var b=[];kf(a,b,!1);return b.join("")};kf=function(a,b,c){if(!(a.nodeName in Eaa))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in mf)b.push(mf[a.nodeName]);else for(a=a.firstChild;a;)kf(a,b,c),a=a.nextSibling}; +$.Qe=function(a){if(a&&"number"==typeof a.length){if($.C(a))return"function"==typeof a.item||"string"==typeof a.item;if($.D(a))return"function"==typeof a.item}return!1};se=function(a){this.b=a||$.fa.document||window.document};nf=function(a){$.od.call(this);this.qo=a;this.b={}};of=function(a,b,c,d,e,f){if($.A(c))for(var h=0;hl&&(l=0);l=Math.sqrt(l);f==h&&(l=-l);f=l*d*c/e;k=-l*e*b/d;l=$.Bb(1,0,(b-f)/d,(c-k)/e);b=$.Bb((b-f)/d,(c-k)/e,(-b-f)/d,(-c-k)/e)%360;!h&&0b&&(b+=360);return wg(a,d,e,l,b)}; +wg=function(a,b,c,d,e){if(0==a.j.length)throw $.ld(9);if(0==e)return a;var f=a.ag[0]-$.db(d,b),h=a.ag[1]-$.eb(d,c);var k=Math.ceil(Math.abs(e)/359.999-2E-15);for(var l=e/k,m=0;m=b&&(n=!1);if(n){for(;l=a?c=180+c:270=a&&(c=360+c);return c%360};$.ph=function(a,b,c){for(var d in c)a.lc(b,d,c[d])};$.qh=function(a,b,c){b&&(c?a.lc(b,"id",c):b.removeAttribute("id"))}; +$.rh=function(a,b,c){if(b.Uj())return null;var d=[],e=a.B4;(c?b.kfa:b.LT).call(b,function(a,b){var c=e[a];c&&(d.push(c),4==a?this.U4(d,b):5!=a&&this.Y4(d,b))},a);return d.join(" ")};th=function(a){if(!a.iu||a.iu.md)a.iu=new ch($.sh.document.body);return a.iu};$.uh=function(){this.Ta=new $.I(0,0,0,0);$.hg.call(this)};vh=function(){};wh=function(a){a.style||(a.style=a.F.length?$.Qc(a.F[a.F.length-1]):{})}; +zh=function(a,b){switch(b){case "b":case "strong":wh(a);a.style.fontWeight="bold";break;case "i":case "em":wh(a),a.style.fontStyle="italic"}}; +Dh=function(a,b,c){switch(b){case "font-style":wh(a);a.style.fontStyle=c||"normal";break;case "font-variant":wh(a);a.style.fontVariant=c||"normal";break;case "font-family":wh(a);a.style.fontFamily=c||$.Ch.fontFamily;break;case "font-size":wh(a);a.style.fontSize=c||$.Ch.fontSize;break;case "font-weight":wh(a);a.style.fontWeight=c||"normal";break;case "color":wh(a);a.style.color=c||$.Ch.color;break;case "letter-spacing":wh(a);a.style.letterSpacing=c||"normal";break;case "text-decoration":wh(a);a.style.er= +c||"none";break;case "opacity":wh(a),a.style.opacity=null!=c?(0,window.parseFloat)(c):1}};Eh=function(a){""!=a.b&&(a.xb.nK(a.b,a.F.length?a.F[a.F.length-1]:null),a.b="",a.ea=!1)};Fh=function(a){a.K==(a.P.length?a.P[a.P.length-1]:null)&&(Eh(a),a.F.pop(),a.P.pop(),a.tagName="");a.K="";a.state=1};Gh=function(a,b){zh(a,a.tagName);a.P.push(a.tagName);a.F.push(a.style);b&&(a.f="");a.tagName="";a.style=null;a.state=1};Hh=function(a,b,c){Dh(a,a.j,a.G||"");a.j="";a.G="";c&&(a.f="");a.state=b}; +Ih=function(a){zh(a,a.tagName);Dh(a,a.j,a.G||"");a.P.push(a.tagName);a.F.push(a.style);a.tagName="";a.style=null;a.f="";a.j="";a.G="";a.state=1};Kh=function(a,b,c){var d;if(a.aa){var e=Jh[a.i];$.p(e)?d=e:a.b+="&"+a.i+c}else a.i?d=(0,window.parseInt)(a.i,10):a.b+="&#"+c;d&&(a.b+=String.fromCharCode(d)+(";"==c?"":c));a.state=b;a.i="";a.aa=!0}; +Lh=function(a){var b=vh.vd();b.F=[];b.P=[];b.tagName="";b.K="";b.f="";b.ba="'";b.j="";b.G="";b.b="";b.style=null;b.xb=null;b.state=1;b.ea=!1;b.i="";b.aa=!0;b.na=!1;b.xb=a;a=a.text();for(var c=a.length,d=-1,e,f,h,k=!1;++d"!=e)break;"br"==b.tagName&&b.xb.mK();b.tagName="";k=!1;b.state=1;break}if(!b.tagName&&"<"==e){b.b+="<";break}if(!b.tagName&&h&&"/"!=e){b.b+="<"+e;b.state=1;break}if(!b.tagName&&"/"==e){b.state=3;break}if("br"==b.tagName&&">"==e){b.xb.mK();b.tagName="";b.state=1;break}if("br"==b.tagName&&("/"==e||f)){k=!0;break}b.tagName&&Eh(b);if(b.tagName&&f){b.state=4;break}if(">"== +e){Gh(b);break}b.tagName+=e.toLowerCase();break;case 3:if(k){if(">"!=e)break;Fh(b);k=!1;break}if(!b.K&&h){b.b+=""==e){Fh(b);k=!1;break}b.K+=e.toLowerCase();break;case 4:if(k){if(">"!=e)break;Gh(b,!0);k=!1;break}if(">"==e){Gh(b,!0);break}if(f){b.state=5;break}if("="==e){b.f&&(b.state="style"==b.f?6:8);break}b.f+=e.toLowerCase();break;case 5:if(">"==e){Gh(b,!0);break}if(f)break;if(b.f&&!h){b.f=e;b.state=4;break}if("="==e){b.f&&(b.state="style"==b.f?6: +8);break}b.f+=e;b.state=4;break;case 6:if(f)break;if(">"==e){Gh(b,!0);break}if("'"==e||'"'==e){b.ba=e;b.state=9;break}b.j=e;b.state=10;break;case 8:if(f)break;if(">"==e){b.f="";b.tagName="";b.state=1;break}if("'"==e||'"'==e){b.ba=e;b.state=7;break}b.state=11;break;case 9:if(f)break;if(e==b.ba){k=!0;Hh(b,4,!0);break}if(":"==e){b.state=12;break}b.j+=e.toLowerCase();break;case 12:if(f)break;if(e==b.ba){k=!0;Hh(b,4,!0);break}if(";"==e){Hh(b,9);break}b.G+=e.toLowerCase();break;case 7:e==b.ba&&(b.f="", +b.state=4);break;case 10:if(f){k=!0;Hh(b,4,!0);break}if(">"==e){Ih(b);break}if(":"==e){b.state=13;break}b.j+=e;break;case 11:if(f){Hh(b,4,!0);break}">"==e&&Gh(b);break;case 13:if(f){k=!0;Hh(b,4,!0);break}if(">"==e){Ih(b);break}if(";"==e){Hh(b,10);break}b.G+=e.toLowerCase();break;default:throw"Error while parsing HTML: Symbol '"+e+"', position: "+(d-1);}Eh(b);b.xb.oM()};Mh=function(a,b){$.od.call(this);this.b=b||{};this.text=a;this.i=!1;this.y=this.x=this.um=this.mo=this.height=this.width=this.f=0}; +$.Qh=function(a,b){this.ba=!1;this.No=a||0;this.Oo=b||0;this.Ta=new $.I(this.No,this.Oo,0,0);this.$a=this.aa=this.Pd=this.F=0;this.Id=!1;this.b=[];this.f=[];this.Ba=this.bg=this.P=0;this.ud=!0;this.fh=this.na=this.Lb=this.me=0;this.ea=[];this.rb=1;this.eb=Nh;this.j=0;this.mc=this.K=!1;this.yc=this.Ek={fontSize:$.Ch.fontSize,color:$.Ch.fontColor,fontFamily:$.Ch.fontFamily,direction:$.Ch.textDirection,textOverflow:Nh,wordBreak:Jaa,wordWrap:Oh,selectable:!0,hAlign:$.Ph};this.Ja=null;$.pg.call(this); +this.i=this.G=null};Rh=function(a,b,c){if($.p(c)){if(c!==a.yc[b]){var d=!a.Ka()||a.Ka().yf();d||a.Ka().suspend();a.yc[b]=c;a.ba=!1;a.Qb(1024);a.Qb(32);a.Qb(16384);a.qx();d||a.Ka().resume()}return a}return a.yc[b]};Sh=function(a){var b=(0,window.parseFloat)(a);return(0,window.isNaN)(b)||0>b?1:$.z(a)&&$.fc(a,"%")?1+(0,window.parseFloat)(a)/100:a}; +Th=function(a,b,c,d,e,f,h){var k,l=Math.floor((e-d)/(f.width/b.length));var m=b.substring(0,l);for(k=a.Vm(m,c);d+k.widthe&&1a.Yf?a.Yf-d.width-e:a.j,0>a.j&&(a.j=0));a.Ba=Math.max(a.Ba,d.height);a.P+=d.width;0==a.b.length&&(a.P+=a.j);a.na=Math.max(a.na,c.f);a.ud=a.f.length?a.ud&&0==b.length:0==b.length;a.f.push(c);a.b.push(c);c.parent(a);return c}; +Vh=function(a,b){var c,d=b||$.ua(a.ea),e=$.ua(d),f=a.Vm(a.eb,e.b),h=a.eb,k=1a.Xa){var m=Th(a,a.eb,e.b,0,a.Xa,f,!0);h=a.eb.substring(0,m)}m=a.bg;var n=a.Xa;if(""==h)l=(0,$.za)(a.b,e)+1,$.Ca(a.b,l,a.b.length-l);else if(n-m>=f.width){a.f=d;l=(0,$.za)(a.b,e)+1;$.Ca(a.b,l,a.b.length-l);var q=Uh(a,h,e.b,f);2==a.f.length&&""==a.f[0].text&&(q.um=a.Lb-a.f[0].height,q.i=!0)}else{for(k=d.length-1;!c&&0<=k;)e= +d[k],f=a.Vm(h,e.b),l=a.Vm(e.text,e.b),m-l.width+f.width<=a.Xa&&(c=e),m-=l.width,k--;c||1!=a.ea.length||(c=d[0],m-=l.width);c&&(a.f=d,k=a.f[0].um,n-=f.width,l=(0,$.za)(d,c),$.Ca(d,l,d.length-l),l=(0,$.za)(a.b,c),$.Ca(a.b,l,a.b.length-l),a.Ba=0,a.P=0,a.na=0,l=a.Vm(c.text,c.b),m=Th(a,c.text,c.b,m,n,l,!0),1>m&&(m=1),l=c.text.substring(0,m),d=a.Vm(l,c.b),l=Uh(a,l,c.b,d,f.width),l.x=c.x,l.y=c.y,l.Tea=!0,d.width+f.width>a.Xa&&(m=Th(a,a.eb,e.b,d.width,a.Xa,f,!0),h=a.eb.substring(0,m)),0f)return a;h=h||0;var l=$.db(h,d),m=$.eb(h,d),n=360/(2*f),q;a.moveTo(l+b,m+c);if(k)for(q=0;qd&&(d=0);0>e&&(e=0);if(d=e)return vi(a,b,c,d,f,h);a=a.path?a.path():a;h=$.Za(h,-360,360);k=360>Math.abs(h);a.Fe(b,c,d,d,f,h).Fe(b,c,e,e,f+h,-h,k);k&&a.close();return a};Zh=function(a,b,c,d,e,f){a=$.db(c,a);b=$.db(d,b)-a;return 0<=e?a+b*(f+e-f*e):a+b*f*(e+1)};ai=function(a,b,c,d,e,f){a=$.eb(c,a);b=$.eb(d,b)-a;return 0<=e?a+b*(f+e-f*e):a+b*f*(e+1)}; +xi=function(a){var b,c;switch(a.length){case 1:var d=b=c=a[0];a.push(d,b,c);break;case 2:b=a[0];c=a[1];a.push(b,c);break;case 3:c=a[1];a.push(c);break;case 4:break;default:a.push(5,5,5,5)}}; +yi=function(a,b,c){var d=a.path?a.path():a;if(6==arguments.length){var e=arguments[2];var f=arguments[3];var h=arguments[4];var k=arguments[5];d.moveTo(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).lineTo(b.left+b.width,b.top+f).lineTo(b.left+b.width,b.top+b.height-h).lineTo(b.left+b.width-h,b.top+b.height).lineTo(b.left+k,b.top+b.height).lineTo(b.left,b.top+b.height-k).lineTo(b.left,b.top+e).close()}else k=$.Ja(arguments,2,6),xi(k),e=k[0],f=k[1],h=k[2],k=k[3],yi(d,b,e,f,h,k);return d}; +zi=function(a,b,c){var d=a.path?a.path():a;if(6==arguments.length){var e=arguments[2];var f=arguments[3];var h=arguments[4];var k=arguments[5];d.moveTo(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).Ff(b.left+b.width,b.top+f,f,f,!1,!0).lineTo(b.left+b.width,b.top+b.height-h).Ff(b.left+b.width-h,b.top+b.height,h,h,!1,!0).lineTo(b.left+k,b.top+b.height).Ff(b.left,b.top+b.height-k,k,k,!1,!0);0!=e&&(d.lineTo(b.left,b.top+e),d.Ff(b.left+e,b.top,e,e,!1,!0));d.close()}else k=$.Ja(arguments,2,6),xi(k),e= +k[0],f=k[1],h=k[2],k=k[3],zi(d,b,e,f,h,k);return d}; +Ai=function(a,b,c){var d=a.path?a.path():a;if(6==arguments.length){var e=arguments[2];var f=arguments[3];var h=arguments[4];var k=arguments[5];d.moveTo(b.left+e,b.top).lineTo(b.left+b.width-f,b.top).Ff(b.left+b.width,b.top+f,f,f,!1,!1).lineTo(b.left+b.width,b.top+b.height-h).Ff(b.left+b.width-h,b.top+b.height,h,h,!1,!1).lineTo(b.left+k,b.top+b.height).Ff(b.left,b.top+b.height-k,k,k,!1,!1);0!=e&&d.lineTo(b.left,b.top+e).Ff(b.left+e,b.top,e,e,!1,!1);d.close()}else k=$.Ja(arguments,2,6),xi(k),e=k[0], +f=k[1],h=k[2],k=k[3],Ai(d,b,e,f,h,k);return d};$.Fi=function(a,b,c,d){this.Hj=a;this.ze=b;this.mi=c;this.Pe=d};Gi=function(){$.gh.call(this)};Hi=function(a){return $.sh.document.createElementNS("http://www.w3.org/2000/svg",a)};Kaa=function(){var a=$.mg();$.Xe(a.Mk);$.Xe(a.$D);$.Xe(a.f);$.Xe(a.i);$.Xe(a.xp);$.Xe(a.Np);a.Mk=null;a.$D=null;a.f=null;a.i=null;a.xp=null;a.Np=null}; +Laa=function(a){var b=$.bb(a),c=Math.tan(b);a=1/(2*c);c/=2;.5>=Math.abs(c)?(a=-.5,b=0>Math.cos(b)):(c=-.5,b=0Math.sin(d)||180==a||360==a;if(90==a||270==a)c+=1E-6;180!=a&&(0>Math.tan(d)||90==a||270==a)&&(e=-1,c=90-c);c=$.bb(c);d=Math.sin(c)*(b.height/2-Math.tan(c)*b.width/2)+b.width/2/Math.cos(c);e*=Math.cos(c)*d;c=Math.sin(c)*d;k&&(e=-e,c=-c);return new $.Fi(Math.round(f-e),Math.round(h+c),Math.round(f+e),Math.round(h-c))}; +Ii=function(a,b,c){var d=Naa(c,b.keys,b.cx,b.cy,b.fx,b.fy,b.opacity,b.mode,b.transform);if(!d.Bo){var e=Hi("radialGradient");$.qh(a,e,d.id());$.Se(c.ia(),e);d.vF=c;d.Bo=!0;(0,$.Pe)(d.keys,function(a){var b=Hi("stop");$.ph(this,b,{offset:a.offset,style:"stop-color:"+a.color+";stop-opacity:"+((0,window.isNaN)(a.opacity)?d.opacity:a.opacity)});e.appendChild(b)},a);d.Ta?$.ph(a,e,{cx:d.Dc*d.Ta.width+d.Ta.left,cy:d.uc*d.Ta.height+d.Ta.top,fx:d.Se*d.Ta.width+d.Ta.left,fy:d.i*d.Ta.height+d.Ta.top,r:Math.min(d.Ta.width, +d.Ta.height)/2,spreadMethod:"pad",gradientUnits:"userSpaceOnUse"}):$.ph(a,e,{cx:d.Dc,cy:d.uc,fx:d.Se,fy:d.i,gradientUnits:"objectBoundingBox"});d.transform&&a.lc(e,"gradientTransform",d.transform.toString())}return d.id()}; +Ki=function(a,b,c,d){var e=$.Ji(c,b.keys,b.opacity,!0===b.mode?$.oh(b.angle,d):b.angle,b.mode,b.transform);if(!e.Bo){var f=a.I0();$.qh(a,f,e.id());$.Se(c.ia(),f);e.uF=c;e.Bo=!0;(0,$.Pe)(e.keys,function(a){var b=Hi("stop");$.ph(this,b,{offset:a.offset,style:"stop-color:"+a.color+";stop-opacity:"+((0,window.isNaN)(a.opacity)?e.opacity:a.opacity)});f.appendChild(b)},a);e.Ta?(b=Maa(e.angle,e.Ta),$.ph(a,f,{x1:b.Hj,y1:b.ze,x2:b.mi,y2:b.Pe,spreadMethod:"pad",gradientUnits:"userSpaceOnUse"})):(b=Laa(e.angle), +$.ph(a,f,{x1:b.Hj,y1:b.ze,x2:b.mi,y2:b.Pe,gradientUnits:"objectBoundingBox"}));e.transform&&a.lc(f,"gradientTransform",e.transform.toString())}return e.id()}; +Ni=function(a,b){var c=b.fill();if(c){var d=b.Ka().vn,e='url("'+Li()+"#";c&&c.opacity&&1E-4>=c.opacity&&$.hd&&$.bd("9")&&(c.opacity=1E-4);if($.z(c))a.lc(b.ia(),"fill",c),b.ia().removeAttribute("fill-opacity");else if($.A(c.keys)&&c.cx&&c.cy)a.lc(b.ia(),"fill",e+Ii(a,c,d)+'")'),a.lc(b.ia(),"fill-opacity",$.p(c.opacity)?c.opacity:1);else if($.A(c.keys))b.sb()&&(a.lc(b.ia(),"fill",e+Ki(a,c,d,b.sb())+'")'),a.lc(b.ia(),"fill-opacity",$.p(c.opacity)?c.opacity:1));else if(c.src){var f=b.ck();f?(f.width= +f.width||0,f.height=f.height||0,f.left=f.left||0,f.top=f.top||0):f=new $.I(0,0,0,0);"tile"==c.mode?Mi(d,c.src,f,c.mode,c.opacity,function(a){a.id();a.parent(b.Ka()).Td();$.mg().lc(b.ia(),"fill",e+a.id()+'")')}):(d=Mi(d,c.src,f,c.mode,c.opacity),d.id(),d.parent(b.Ka()).Td(),a.lc(b.ia(),"fill",e+d.id()+'")'),a.lc(b.ia(),"fill-opacity",$.p(c.opacity)?c.opacity:1))}else $.J(c,Kg)?(c=Oaa(d,c.type,c.color,c.Ef,c.size),c.id(),c.parent(b.Ka()).Td(),a.lc(b.ia(),"fill",e+c.id()+'")')):$.J(c,$.Qb)?(c.id(),c.parent(b.Ka()).Td(), +a.lc(b.ia(),"fill",e+c.id()+'")')):$.ph(a,b.ia(),{fill:c.color,"fill-opacity":c.opacity})}}; +Oi=function(a,b){var c=b.stroke();if(c){var d=b.Ka().vn,e=b.ia(),f='url("'+Li()+"#";if($.z(c))a.lc(e,"stroke",c);else if($.A(c.keys)&&c.cx&&c.cy)a.lc(e,"stroke",f+Ii(a,c,d)+'")');else if($.A(c.keys)){if(!b.sb())return;a.lc(e,"stroke",f+Ki(a,c,d,b.sb())+'")')}else a.lc(e,"stroke",c.color);c.lineJoin?a.lc(e,"stroke-linejoin",c.lineJoin):e.removeAttribute("stroke-linejoin");c.lineCap?a.lc(e,"stroke-linecap",c.lineCap):e.removeAttribute("stroke-linecap");c.opacity?a.lc(e,"stroke-opacity",c.opacity):e.removeAttribute("stroke-opacity"); +c.thickness?a.lc(e,"stroke-width",c.thickness):e.removeAttribute("stroke-width");c.dash?a.lc(e,"stroke-dasharray",c.dash):e.removeAttribute("stroke-dasharray")}};Pi=function(a){a.ia().removeAttribute("clip-path");a.ia().removeAttribute("clipPathUnits")}; +$.Si=function(a,b){td.call(this,a.type);this.target=$.Qi(a.target,b)||a.target;this.relatedTarget=$.Qi(a.relatedTarget||null,b)||a.relatedTarget;this.offsetX=a.offsetX;this.offsetY=a.offsetY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.button=Cd(a,0)?$.Ri:Cd(a,1)?Paa:Cd(a,2)?Qaa:Raa;this.actionButton=a.OA();this.keyCode=a.keyCode;this.charCode=a.f;this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.platformModifierKey= +a.i;this.kf=a};Ti=function(a,b){this.i=a;this.j=b;this.f=0;this.b=null};Ui=function(a,b){a.j(b);100>a.f&&(a.f++,b.next=a.b,a.b=b)};Vi=function(){this.f=this.b=null};Wi=function(){this.next=this.f=this.b=null};Xi=function(a){$.fa.setTimeout(function(){throw a;},0)}; +Saa=function(){var a=$.fa.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!$.Cc("Presto")&&(a=function(){var a=window.document.createElement("IFRAME");a.style.display="none";a.src="";window.document.documentElement.appendChild(a);var b=a.contentWindow;a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host;a=(0,$.pa)(function(a){if(("*"== +d||a.origin==d)&&a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!$.Uc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if($.p(c.next)){c=c.next;var a=c.p0;c.p0=null;a()}};return function(a){d.next={p0:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof window.document&&"onreadystatechange"in window.document.createElement("SCRIPT")?function(a){var b=window.document.createElement("SCRIPT"); +b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};window.document.documentElement.appendChild(b)}:function(a){$.fa.setTimeout(a,0)}};$.aj=function(a,b){Yi||Taa();Zi||(Yi(),Zi=!0);$i.add(a,b)}; +Taa=function(){if($.fa.Promise&&$.fa.Promise.resolve){var a=$.fa.Promise.resolve(void 0);Yi=function(){a.then(bj)}}else Yi=function(){var a=bj;!$.D($.fa.setImmediate)||$.fa.Window&&$.fa.Window.prototype&&!$.Cc("Edge")&&$.fa.Window.prototype.setImmediate==$.fa.setImmediate?(ij||(ij=Saa()),ij(a)):$.fa.setImmediate(a)}};bj=function(){for(var a;a=$i.remove();){try{a.b.call(a.f)}catch(b){Xi(b)}Ui(jj,a)}Zi=!1}; +$.oj=function(a){this.ec=kj;this.F=void 0;this.f=this.b=this.Y=null;this.i=this.j=!1;if(a!=$.ia)try{var b=this;a.call(void 0,function(a){$.lj(b,$.mj,a)},function(a){$.lj(b,nj,a)})}catch(c){$.lj(this,nj,c)}};pj=function(){this.next=this.context=this.f=this.i=this.b=null;this.j=!1};rj=function(a,b,c){var d=qj.get();d.i=a;d.f=b;d.context=c;return d}; +sj=function(a,b){if(a.ec==kj)if(a.Y){var c=a.Y;if(c.b){for(var d=0,e=null,f=null,h=c.b;h&&(h.j||(d++,h.b==a&&(e=h),!(e&&1=c&&0<=e&&255>=e&&0<=d&&255>=d){c=[c,e,d];break a}}c=[]}if(c.length)return b.wk=$.Tb(c),b.type="rgb",b;if(Jl&&(c=Jl[a.toLowerCase()]))return b.wk=c,b.type="named",b;throw Error(a+" is not a valid color string");}; +Il=function(a){if(!Hl.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Kba,"#$1$1$2$2$3$3"));return a.toLowerCase()};$.Ll=function(a){a=Il(a);return[(0,window.parseInt)(a.substr(1,2),16),(0,window.parseInt)(a.substr(3,2),16),(0,window.parseInt)(a.substr(5,2),16)]}; +$.Tb=function(a){var b=a[0],c=a[1];a=a[2];b=Number(b);c=Number(c);a=Number(a);if(b!=(b&255)||c!=(c&255)||a!=(a&255))throw Error('"('+b+","+c+","+a+'") is not a valid RGB color');b=Ml(b.toString(16));c=Ml(c.toString(16));a=Ml(a.toString(16));return"#"+b+c+a};Nl=function(a,b,c){0>c?c+=1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+(b-a)*(2/3-c)*6:a};Ml=function(a){return 1==a.length?"0"+a:a}; +$.Ol=function(a,b,c){c=$.Za(c,0,1);return[Math.round(c*a[0]+(1-c)*b[0]),Math.round(c*a[1]+(1-c)*b[1]),Math.round(c*a[2]+(1-c)*b[2])]};$.Pl=function(a,b){return $.Ol([0,0,0],a,b)};$.Rl=function(a,b,c){a=Ql(a);b=Ql(b);var d=(a.opacity+b.opacity)/2;return{color:$.Tb($.Ol(a.p5,b.p5,$.p(c)?c:.5)),opacity:d}};Ql=function(a){var b=a,c=1;$.A(a)||($.z(a)?b=a:(b=a.color||"#000",c=$.p(a.opacity)?a.opacity:1),a=$.Sl(b).wk,b=$.Ll(a));return{p5:b,opacity:c}}; +Tl=function(a,b,c,d){b=null==b||(0,window.isNaN)(+b)?7:+b;d=null!=d?$.Za(d,0,1):window.NaN;a=$.Sl(a||"#000").wk;var e=$.Ll(a);a=e[0]/255;var f=e[1]/255;e=e[2]/255;var h=Math.max(a,f,e),k=Math.min(a,f,e),l=0,m=0,n=.5*(h+k);h!=k&&(h==a?l=60*(f-e)/(h-k):h==f?l=60*(e-a)/(h-k)+120:h==e&&(l=60*(a-f)/(h-k)+240),m=0=n?(h-k)/(2*n):(h-k)/(2-2*n));e=[Math.round(l+360)%360,m,n];a=e[0];f=e[1];e=e[2];(0,window.isNaN)(d)?(d=e,c=null!=c?$.Za(c,0,1):.95):c=null!=c?$.Za(c,0,1):e;e=1m?m*(1+f):m+f-f*m;var r=2*m-l;n=255*Nl(r,l,q+1/3);m=255*Nl(r,l,q);l=255*Nl(r,l,q-1/3)}h.push($.Tb([Math.round(n),Math.round(m),Math.round(l)]))}return h};$.Ul=function(a,b,c){c=$.p(c)?c:7;a=$.Sl(a||"yellow").wk;b=$.Sl(b||"brown").wk;for(var d=[a],e=1/c,f=1;f=c&&0<=e&&255>=e&&0<=d&&255>=d){c=[c,e,d];break a}}c=[]}return c.length?(b.wk=$.Tb(c),b.type="rgb",b):Jl&&(a=Jl[a.toLowerCase()])?(b.wk=a,b.type="named",b):null}; +$.am=function(a,b,c){var d;c?d=$.Ub(a):d=$.Wb(a);$.z(d)?d={color:d,opacity:b}:$.C(d)&&(d.opacity=b);return d};$.bm=function(a){var b=1;$.z(a)?b="none"==a?0:1:$.C(a)&&(b=$.ea(a.opacity)?a.opacity:1);return b};$.cm=function(a,b,c){a=$.Wb(a);$.z(a)?a={color:a,thickness:b}:$.C(a)&&(a.thickness=b);c&&(a.opacity=c);return a}; +$.jm=function(a,b,c,d){if(!a)return $.dm;if($.z(a)){var e=b+"|"+a+"|"+c+(d?"|"+d:"");var f=em[e];if(!f){switch(b){case 2:f=$.fm;break;case 3:f=$.gm;break;default:case 1:f=$.hm}em[e]=f=$.qa(Nba,a,f,3==b,c,!!d)}}else(f=em.transparent)||(f=em.transparent=function(){return $.im});return f};$.dm=function(){return"none"};$.km=function(a){return a?$.C(a)?a.color?"none"!=a.color:!0:"none"!=a:!1}; +Nba=function(a,b,c,d,e,f,h,k,l,m){h=$.lm(h);l=l||f.check($.mm);var n=f.$();if(d&&h!=$.nm){var q=f.sc(a,h,n,b,e,void 0,k);c&&!0===q&&(q=b(f.Eh()));if($.p(q)){if(!$.D(q))return q;if(c)return a=f.Yi(k),b(q.call(a,a))}}d=f.sc(a,0,n,b,e,void 0,k);c&&!0===d&&(d=b(f.Eh()));if(m&&!c&&a!=m){var r=f.sc(m,0,n,b,e,void 0,k);$.D(r)&&(a=f.Ge(void 0,k,l),r=b(r.call(a,a)))}$.D(d)&&(a=c?f.Yi(k):f.Ge(r,k,l),d=b(d.call(a,a)));q&&(a=f.Ge(d,k,l),d=b(q.call(a,a)));return d}; +$.om=function(a,b){a&&(b=b.charAt(0).toUpperCase()+b.substr(1));return a?(a?1==a?"hover":"select":"")+b:b};qm=function(a,b,c){var d=b.split(".");b=pm[d[0]];if(!b)return pm[d[0]]={wE:[],LC:c,DI:0},!0;if(d=b.LC<=c){b.LC=c+1;for(var e=b.wE,f=0;f=h){e="";d=0;a.Yo=-1;a.Zo=-1;a.ah=c+1;f=0;break}else return 0c?Math.min($.an(a),14):13-Math.max(c,7);return $.$m(a,b?b:c)};$.an=function(a){if(!(0,window.isFinite)(a))return 0;for(var b=1,c=0;Math.round(a*b)/b!==a;)b*=10,c++;return c};$.cn=function(a,b,c){return Math.abs(a-b)<(c||.01)}; +$.dn=function(a,b){var c=Math.log(Math.max(1E-7,a));return b?$.bn(c/Math.log(b),14):c};en=function(a,b){return $.$m(Math.pow(a,b),7)};fn=function(a){a=$.Ha(a);$.Pa(a);var b=Math.floor(a.length/2);return a.length%2?a[b]:(a[b-1]+a[b])/2};gn=function(a){for(var b={},c=a[0],d=1,e=0;ed&&(c=f,d=b[f])}return c}; +$.jn=function(a,b){var c=!1,d;if(!a||!b)return!1;var e=0;for(d=a.length;e=$.kn(a,b,c,d,e[h],e[h+1]);return f};$.kn=function(a,b,c,d,e,f){return(a=(b-d)*e+(c-a)*f+(a*d-c*b))?0b){var e=a;a=b;b=e}c>d&&(e=c,c=d,d=e);return Math.max(a,c)<=Math.min(b,d)};$.mn=function(a,b,c,d,e,f,h,k){return ln(a,c,e,h)&&ln(b,d,f,k)&&0>=((c-a)*(f-b)-(d-b)*(e-a))*((c-a)*(k-b)-(d-b)*(h-a))&&0>=((h-e)*(b-f)-(k-f)*(a-e))*((h-e)*(d-f)-(k-f)*(c-e))}; +nn=function(a,b,c,d,e,f,h,k){var l=window.NaN;0!=a-2*c+e?(l=(a-c+Math.sqrt((a-2*c+e)*h+c*c-a*e))/(a-2*c+e),a=(a-c-Math.sqrt((a-2*c+e)*h+c*c-a*e))/(a-2*c+e),c=(b-d+Math.sqrt((b-2*d+f)*k+d*d-b*f))/(b-2*d+f),b=(b-d-Math.sqrt((b-2*d+f)*k+d*d-b*f))/(b-2*d+f),l=0l?l:0a?a:0c?c:0b?b:window.NaN):a!=c?l=(h-a)/(2*(c-a)):a==c&&c!=e&&(l=Math.sqrt((h-a)/(e-c)));return l};$.on=function(a,b,c,d){a=c-a;b=d-b;return Math.sqrt(a*a+b*b)};$.pn=function(a,b,c){return(c||0)+b*$.$m(Math.cos(a),8)}; +$.qn=function(a,b,c){return(c||0)+b*$.$m(Math.sin(a),8)};$.rn=function(a,b,c,d){return new $.I(a,b,c,d)};$.sn=function(a){return[a.left,a.top,a.left+a.width,a.top,a.left+a.width,a.top+a.height,a.left,a.top+a.height]};$.tn=function(a){for(var b=new $.I(0,0,0,0),c=new $.I(a[0],a[1],0,0),d=2,e=a.length;d=Math.abs(h)&&(h=0);0=Math.abs(d)&&(d=0),1E-6>=Math.abs(f)&&(f=0),0<=d&&(d=Math.sqrt(d),b.push(-c/4+(a+d)/2),b.push(-c/4+(a-d)/2)),0<=f&&(d=Math.sqrt(f),b.push(-c/4+(d-a)/2),b.push(-c/4-(d+a)/2))):0>h||(f=e*e-4*a,-1E-6<=f&&(0>f&&(f=0),f=2*Math.sqrt(f),e=3*c*c/4-2*d,1E-6<=e+f&&(d=Math.sqrt(e+f),b.push(-c/4+d/2),b.push(-c/4-d/2)),1E-6<=e-f&&(d=Math.sqrt(e-f),b.push(-c/4+d/2),b.push(-c/4-d/2))))}break;default:b=[]}return b}; +zn=function(a){var b=[];if(3==a.b.length-1){var c=a.b[3],d=a.b[2]/c,e=a.b[1]/c,f=(3*e-d*d)/3;a=(2*d*d*d-9*e*d+a.b[0]/c*27)/27;d/=3;c=a*a/4+f*f*f/27;a/=2;0c?(f=Math.sqrt(-f/3),c=Math.atan2(Math.sqrt(-c),-a)/3,a=Math.cos(c),c=Math.sin(c),e=Math.sqrt(3),b.push(2*f*a-d),b.push(-f*(a+e*c)-d),b.push(-f*(a-e*c)-d)):(c=0<=a?-Math.pow(a,1/3):Math.pow(-a,1/3),b.push(2*c-d),b.push(-c- +d))}return b}; +Bn=function(a,b,c,d,e,f,h,k,l,m,n,q){a=new $.vn(a,b);c=new $.vn(c,d);e=new $.vn(e,f);h=new $.vn(h,k);m=new $.vn(l,m);l=new $.vn(n,q);n=[];k=wn(c,-2);q=a.add(k.add(e));k=wn(a,-2);e=wn(c,2);c=k.add(e);a=new $.vn(a.x,a.y);k=wn(m,-2);l=h.add(k.add(l));k=wn(h,-2);e=wn(m,2);m=k.add(e);h=new $.vn(h.x,h.y);if(0==q.y)k=q.x*(a.y-h.y),e=k-c.x*c.y,f=c.y*c.y,k=new yn(q.x*l.y*l.y,2*q.x*m.y*l.y,q.x*m.y*m.y-l.x*f-l.y*k-l.y*e,-m.x*f-m.y*k-m.y*e,(a.x-h.x)*f+(a.y-h.y)*e);else{k=q.x*l.y-q.y*l.x;e=q.x*m.y-m.x*q.y;var r= +c.x*q.y-c.y*q.x;f=a.y-h.y;d=q.y*(a.x-h.x)-q.x*f;b=-c.y*r+q.y*d;r*=r;k=new yn(k*k,2*k*e,(-l.y*r+q.y*e*e+q.y*k*d+k*b)/q.y,(-m.y*r+q.y*e*d+e*b)/q.y,(f*r+d*b)/q.y)}k=An(k);for(e=0;e=f&&(d=An(new yn(q.x,c.x,a.x-h.x-f*m.x-f*f*l.x)),b=An(new yn(q.y,c.y,a.y-h.y-f*m.y-f*f*l.y)),0=t)for(var u=0;uMath.abs(t-b[u])){n.push(wn(l,f*f).add(wn(m,f).add(h)));break a}}return n}; +Cn=function(a,b,c,d,e,f,h,k){var l,m=(k-f)*(c-a)-(h-e)*(d-b);0!=m?(h=((h-e)*(b-f)-(k-f)*(a-e))/m,e=((c-a)*(b-f)-(d-b)*(a-e))/m,0<=h&&1>=h&&0<=e&&1>=e?l=new $.vn(a+h*(c-a),b+h*(d-b)):l=null):l=null;return l};Dn=function(a,b){switch(b){case 1:return 0!=a%4||0==a%100&&0!=a%400?28:29;case 5:case 8:case 10:case 3:return 30}return 31};En=function(a,b,c,d,e){a=new Date(a,b,c);d=$.p(d)?d:3;e=e||0;b=((a.getDay()+6)%7-e+7)%7;return a.valueOf()+864E5*((d-e+7)%7-b)}; +$.Nn=function(a,b,c,d,e,f){$.z(a)?(this.ai=a==Fn?b:0,this.pg=a==Gn?b:0,this.xg=a==Jn?b:0,this.Th=a==Kn?b:0,this.Bj=a==Ln?b:0,this.wh=a==Mn?b:0):(this.ai=a||0,this.pg=b||0,this.xg=c||0,this.Th=d||0,this.Bj=e||0,this.wh=f||0)}; +On=function(a){a=a.match(Oba);if(!a)return null;var b=!(a[6]||a[7]||a[8]);if(b&&!(a[2]||a[3]||a[4])||b&&a[5])return null;b=(0,window.parseInt)(a[2],10)||0;var c=(0,window.parseInt)(a[3],10)||0,d=(0,window.parseInt)(a[4],10)||0,e=(0,window.parseInt)(a[6],10)||0,f=(0,window.parseInt)(a[7],10)||0,h=(0,window.parseFloat)(a[8])||0;return a[1]?new $.Nn(-b,-c,-d,-e,-f,-h):new $.Nn(b,c,d,e,f,h)}; +Pn=function(a,b){var c=Math.min(a.ai,a.pg,a.xg,a.Th,a.Bj,a.wh),d=Math.max(a.ai,a.pg,a.xg,a.Th,a.Bj,a.wh);if(0>c&&0c&&d.push("-");d.push("P");(a.ai||b)&&d.push(Math.abs(a.ai)+"Y");(a.pg||b)&&d.push(Math.abs(a.pg)+"M");(a.xg||b)&&d.push(Math.abs(a.xg)+"D");if(a.Th||a.Bj||a.wh||b)d.push("T"),(a.Th||b)&&d.push(Math.abs(a.Th)+"H"),(a.Bj||b)&&d.push(Math.abs(a.Bj)+"M"),(a.wh||b)&&d.push(Math.abs(a.wh)+"S");return d.join("")}; +$.Tn=function(a,b,c){$.ea(a)?(this.b=Qn(a,b||0,c||1),Rn(this,c||1)):$.C(a)?(this.b=Qn(a.getFullYear(),a.getMonth(),a.getDate()),Rn(this,a.getDate())):(this.b=new Date((0,$.Sn)()),a=this.b.getDate(),this.b.setHours(0),this.b.setMinutes(0),this.b.setSeconds(0),this.b.setMilliseconds(0),Rn(this,a))};Qn=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};Rn=function(a,b){if(a.getDate()!=b){var c=a.getDate()c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",$.uc(c,2));c=d.join("")}b.i=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=Yn(a);b.j=[c,c];b.b={isa:a,zZ:a};b.f=[];return b}b=new Xn;b.i=a.id;b.F=-a.std_offset;b.j=a.names;b.b=a.names_ext;b.f=a.transitions;return b}; +Yn=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push($.uc(Math.floor(a/60)%100,2),":",$.uc(a%60,2));return b.join("")};$n=function(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,d=0;d=a.f[d];)d+=2;return 0==d?0:a.f[d-1]};$.eo=function(a,b){this.f=[];this.b=b||ao;"number"==typeof a?bo(this,a):co(this,a)};fo=function(a){return a.getHours?a.getHours():0}; +co=function(a,b){for(Qba&&(b=b.replace(/\u200f/g,""));b;){for(var c=b,d=0;db)var c=a.b.mF[b];else if(8>b)c=a.b.rF[b-4];else if(12>b)c=a.b.sQ[b-8],c=c.replace("{1}",a.b.mF[b-8]),c=c.replace("{0}",a.b.rF[b-8]);else{bo(a,10);return}co(a,c)};ho=function(a,b){var c=String(b);var d=a.b||ao;if(void 0!==d.SQ){for(var e=[],f=0;f=h?String.fromCharCode(d.SQ+h-48):c.charAt(f))}c=e.join("")}return c}; +io=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");}; +Rba=function(a,b,c,d,e,f){var h=b.length;switch(b.charAt(0)){case "G":return c=0c&&(c=-c),2==h&&(c%=100),ho(a,$.uc(c,h));case "Y":return c=d.getFullYear(),e=d.getMonth(),d=d.getDate(),c=En(c,e,d,a.b.gK,a.b.fK),c=(new Date(c)).getFullYear(),0>c&&(c=-c),2==h&&(c%=100),ho(a,$.uc(c,h));case "M":a:switch(c=d.getMonth(),h){case 5:h=a.b.gZ[c];break a;case 4:h=a.b.BQ[c];break a;case 3:h=a.b.IQ[c];break a;default:h=ho(a,$.uc(c+ +1,h))}return h;case "k":return io(e),c=fo(e)||24,ho(a,$.uc(c,h));case "S":return c=e.getMilliseconds()/1E3,ho(a,c.toFixed(Math.min(3,h)).substr(2)+(3h?1:0];case "h":return io(e),c=fo(e)%12||12,ho(a,$.uc(c,h));case "K":return io(e),c=fo(e)%12,ho(a,$.uc(c,h));case "H":return io(e),c=fo(e),ho(a,$.uc(c,h));case "c":a:switch(c=d.getDay(),h){case 5:h=a.b.wZ[c];break a;case 4:h=a.b.yZ[c]; +break a;case 3:h=a.b.xZ[c];break a;default:h=ho(a,$.uc(c,1))}return h;case "L":a:switch(c=d.getMonth(),h){case 5:h=a.b.vZ[c];break a;case 4:h=a.b.MQ[c];break a;case 3:h=a.b.NQ[c];break a;default:h=ho(a,$.uc(c+1,h))}return h;case "Q":return c=Math.floor(d.getMonth()/3),4>h?a.b.JQ[c]:a.b.EQ[c];case "d":return ho(a,$.uc(d.getDate(),h));case "m":return io(e),ho(a,$.uc(e.getMinutes(),h));case "s":return io(e),ho(a,$.uc(e.getSeconds(),h));case "v":return h=f||Zn(c.getTimezoneOffset()),h.i;case "V":return a= +f||Zn(c.getTimezoneOffset()),2>=h?a.i:0<$n(a,c)?$.p(a.b.e8)?a.b.e8:a.b.DST_GENERIC_LOCATION:$.p(a.b.zZ)?a.b.zZ:a.b.STD_GENERIC_LOCATION;case "w":return c=e.getFullYear(),d=e.getMonth(),e=e.getDate(),c=En(c,d,e,a.b.gK,a.b.fK),d=(new Date((new Date(c)).getFullYear(),0,1)).valueOf(),ho(a,$.uc(Math.floor(Math.round((c-d)/864E5)/7)+1,h));case "z":return a=f||Zn(c.getTimezoneOffset()),4>h?a.j[0<$n(a,c)?2:0]:a.j[0<$n(a,c)?3:1];case "Z":return d=f||Zn(c.getTimezoneOffset()),4>h?(h=-d.rD(c),a=[0>h?"-":"+"], +h=Math.abs(h),a.push($.uc(Math.floor(h/60)%100,2),$.uc(h%60,2)),h=a.join("")):h=ho(a,Yn(d.rD(c))),h;default:return""}};Sba=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))}; +Tba=function(a){a=String(a);if(Sba(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};ko=function(a){return(new jo).D(a)};jo=function(){}; +lo=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if($.A(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;fb?1:a==b?0:-1};Xba=function(a,b){return-yo(a,b)};$.wo=function(a,b){return(0,window.isNaN)(a)?(0,window.isNaN)(b)?0:1:(0,window.isNaN)(b)?-1:a-b};$.zo=function(a){for(var b;$.J(a,$.hg);){b=a.tag;if($.p(b))return b;a=a.parent()}};$.Ao=function(a,b){if(!a)return!1;for(;$.J(b,$.qf)&&b!=a;)b=b.Zi();return b==a};$.xo=function(a){return $.C(a)?"o"+$.oa(a):(typeof a).charAt(0)+a}; +$.L=function(a,b,c){a=$.ea(a)?a:!(0,window.isNaN)(b)&&$.Bo(a)?b*(0,window.parseFloat)(a)/100:(0,window.parseFloat)(a);return c&&!(0,window.isNaN)(b)?b-a:a};$.Eo=function(a){switch(a){case $.Co:return"hovered";case $.Do:return"selected";default:return"normal"}};$.Bo=function(a){return $.z(a)&&$.fc(a,"%")&&!(0,window.isNaN)((0,window.parseFloat)(a))};$.Fo=function(a,b){if(null===a)return null;a=$.p(a)?a:0;b=$.p(b)?b:0;var c=$.Bo(a),d=(0,window.parseFloat)(a);return(0,window.isNaN)(d)?b:c?a:d}; +$.Go=function(a,b){if($.Bo(a))return a;$.ea(a)||(a=(0,window.parseFloat)(a));return(0,window.isNaN)(a)?b?window.NaN:"0%":a+"%"};$.Ho=function(a){return $.Bo(a)?(0,window.parseFloat)(a)/100:+a};$.N=function(a){return null==a||$.da(a)?window.NaN:+a};$.Io=function(a){return $.z(a)?a:$.N(a)};Jo=function(a){return $.ea(a)&&!(0,window.isNaN)(a)||$.z(a)&&""!=(0,$.vc)(a)?a:null};$.Ko=function(a){return(0,window.isNaN)($.N(a))}; +$.P=function(a,b,c){$.ea(a)||(a=(0,window.parseFloat)(a));a=Math.round(a);return!(0,window.isNaN)(a)&&(0=d?0:f:"center"==e?c=d*f/2:"inside"==e&&(c=0<=d?0:-f)}return c};$.Qo=function(a,b){var c=$.ab(-b)/90;if(c){var d=(0,$.za)($.Mo,a);0<=d&&(c!=~~c&&(c=Math.round(c-.5)+.5),a=$.Mo[(d+(c+c))%$.Mo.length])}return a};$.Ro=function(a){return"left-top"==a||"center-top"==a||"right-top"==a}; +$.So=function(a){return"left-bottom"==a||"center-bottom"==a||"right-bottom"==a};$.To=function(a){return"left-top"==a||"left-center"==a||"left-bottom"==a};$.Uo=function(a){return"right-top"==a||"right-center"==a||"right-bottom"==a};$.Vo=function(a,b,c,d){c=c||0;d=7<=d?d:7;return $.$m(b*Math.floor($.$m((a-c)/b,d))+c,d)};$.Wo=function(a,b,c,d){c=c||0;d=7<=d?d:7;return $.$m(b*Math.ceil($.$m((a-c)/b,d))+c,d)}; +$.Zo=function(a,b,c){var d=new Date(a),e=d.getUTCFullYear(),f=d.getUTCMonth(),h=d.getUTCDate(),k=d.getUTCHours(),l=d.getUTCMinutes(),m=d.getUTCSeconds(),n=d.getUTCMilliseconds();return b.ai?(e=$.Vo(e,b.ai,(new Date(c)).getUTCFullYear()),Date.UTC(e,0)):b.pg?(f=$.Vo(f,b.pg),Date.UTC(e,f)):b.xg&&0==b.xg%7?(a=$.Xo($.Yo()),$.Vo(d.getTime(),864E5*b.xg,Date.UTC(2E3,0,2+(a?a.firstDayOfWeek:0)))):b.xg?(h=$.Vo(h,b.xg),Date.UTC(e,f,h)):b.Th?(k=$.Vo(k,b.Th),Date.UTC(e,f,h,k)):b.Bj?(l=$.Vo(l,b.Bj),Date.UTC(e, +f,h,k,l)):1<=b.wh?(m=$.Vo(m,b.wh),Date.UTC(e,f,h,k,l,m)):b.wh?(n=$.Vo(n,1E3*b.wh),Date.UTC(e,f,h,k,l,m,n)):a};$o=function(a){return $.p(a)?$.uc(a,2):a}; +Yba=function(a,b,c,d,e,f,h){var k=$.p(b)?b+1:b,l=$.uc(a,4)||"2000";k=$o(k)||"01";var m=$o(c)||"01",n=$o(d)||"00",q=$o(e)||"00",r=$o(f)||"00",t=$o(h)||"0";switch(arguments.length){case 2:l=l+"-"+k;break;case 3:l=l+"-"+k+"-"+m;break;case 4:case 5:l=l+"-"+k+"-"+m+"T"+n+":"+q;break;case 6:l=l+"-"+k+"-"+m+"T"+n+":"+q+":"+r;break;case 7:l=l+"-"+k+"-"+m+"T"+n+":"+q+":"+r+"."+t}return(new Date(l)).getTime()}; +$.ap=function(a,b,c,d){var e=new Date(a),f=e.getUTCFullYear(),h=e.getUTCMonth(),k=e.getUTCDate(),l=e.getUTCHours(),m=e.getUTCMinutes(),n=e.getUTCSeconds(),q=e.getUTCMilliseconds(),r=100>f&&-1a?Math.floor(a):Math.ceil(a)};$.dp=function(a,b){var c=a.left+a.width,d=a.top+a.height;a.left=$.R(a.left,b);a.top=$.R(a.top,b);a.width=$.R(c,b)-a.left;a.height=$.R(d,b)-a.top;return a}; +$.ep=function(a,b,c,d){switch(b){case "left-top":case "left-center":case "center-top":case "center":a.x+=c;a.y+=d;break;case "left-bottom":case "center-bottom":a.x+=c;a.y-=d;break;case "right-center":case "right-top":a.x-=c;a.y+=d;break;case "right-bottom":a.x-=c,a.y-=d}};$.fp=function(a){for(var b=0,c=arguments.length;b=+m||1<=+m)?m:+m,f=!1));return f?0d;d++){b=d;for(var e=0;8>e;e++)b=b&1?3988292384^b>>>1:b>>>1;c[d]=b}yp=c}b=-1;for(c=0;c>>8^yp[(b^a.charCodeAt(c++))&255];return((b^-1)>>>0).toString(16)};Cp=function(){if(Ap)return Ap;var a=Bp.length,b=0==a%2?a/2:a+.5;return Ap=(0,$.Wa)((0,$.Wa)(Bp,function(a,d){return a+d%b*(d%2?-1:1)}),function(a){return String.fromCharCode(a)}).join("")}; +$.Dp=function(a,b){switch(a){case "year":return 315576E5*b;case "semester":return 315576E5*b/2;case "quarter":return 315576E5*b/4;case "month":return 315576E5*b/12;case "third-of-month":return 315576E5*b/36;case "week":return 6048E5*b;case "day":return 864E5*b;case "hour":return 36E5*b;case "minute":return 6E4*b;case "second":return 1E3*b;default:return b}};$.Fp=function(a,b){for(var c=0;c<$.Ep.length&&$.Ep[c].Dg!=a;c++);return $.Ep[$.Za(c-(b||1),0,$.Ep.length)].Dg}; +Gp=function(a){var b=a.ai;b=365.25*b+a.pg;b=365.25*b/12+a.xg;b=24*b+a.Th;b=60*b+a.Bj;b=60*b+a.wh;return 1E3*b}; +$.Jp=function(a){a=String(a).toLowerCase();switch(a){case "arrowhead":return function(a,c,d,e){var b=c-e/2,h=d-e/3,k=c-e/2,l=d+e/3;a.moveTo(c+e/2,d).lineTo(b,h).lineTo(k,l).close();return a};case "star4":return hi;case "star6":return ji;case "star7":return ki;case "star10":return li;case "diamond":return qi;case "triangle-up":return mi;case "triangle-down":return ni;case "triangle-right":return oi;case "triangle-left":return pi;case "cross":return ri;case "diagonal-cross":return si;case "circle":return function(a, +c,d,e){return vi(a,c,d,e,0,360)};case "trapezium":return function(a,c,d,e){var b=e/3;c-=e/2;d-=e/2;a.moveTo(c+b,d+e);a.lineTo(c+e-b,d+e);a.lineTo(c+e,d);a.lineTo(c,d);a.close();return a};case "pentagon":return function(a,c,d,e){c-=e;d-=e;a.moveTo(c+e*Hp[0],d+e*Ip[0]);for(var b=1;5>b;b++)a.lineTo(c+e*Hp[b],d+e*Ip[b]);a.lineTo(c+e*Hp[0],d+e*Ip[0]);a.close();return a};case "square":return function(a,c,d,e,f){var b=c-e,k=d-e;c+=e;d+=e;$.p(f)&&(f=f||0,b=$.R(b,f),k=$.R(k,f),c=$.R(c,f),d=$.R(d,f));a.moveTo(b, +k).lineTo(c,k).lineTo(c,d).lineTo(b,d).lineTo(b,k).close();return a};case "v-line":case "line":return function(a,c,d,e,f){e*=2;var b=e/2;c-=b/2;d-=e/2;b=c+b;e=d+e;$.p(f)&&(f=f||0,c=$.R(c,f),d=$.R(d,f),b=$.R(b,f),e=$.R(e,f));a.moveTo(c,d).lineTo(b,d).lineTo(b,e).lineTo(c,e).lineTo(c,d).close();return a};case "arrow-up":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var n=c+k;k=c-k;$.p(f)&&(f=f||0,e=$.R(e,f),l=$.R(l,f),m=$.R(m,f),b=$.R(b,f),n=$.R(n,f),k=$.R(k,f),c=$.R(c,f),d= +$.R(d,f));a.moveTo(c,b);a.lineTo(e,d,n,d,n,m,k,m,k,d,l,d);a.close();return a};case "arrow-down":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var n=c+k;k=c-k;$.p(f)&&(f=f||0,e=$.R(e,f),l=$.R(l,f),m=$.R(m,f),b=$.R(b,f),n=$.R(n,f),k=$.R(k,f),c=$.R(c,f),d=$.R(d,f));a.moveTo(c,m);a.lineTo(e,d,n,d,n,b,k,b,k,d,l,d);a.close();return a};case "arrow-left":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var n=d+k;k=d-k;$.p(f)&&(f=f||0,e=$.R(e,f),l=$.R(l,f),m= +$.R(m,f),b=$.R(b,f),n=$.R(n,f),k=$.R(k,f),c=$.R(c,f),d=$.R(d,f));a.moveTo(l,d);a.lineTo(c,m,c,n,e,n,e,k,c,k,c,b);a.close();return a};case "arrow-right":return function(a,c,d,e,f){var b=e/2,k=b/2;e=c+b;var l=c-b,m=d+b;b=d-b;var n=d+k;k=d-k;$.p(f)&&(f=f||0,e=$.R(e,f),l=$.R(l,f),m=$.R(m,f),b=$.R(b,f),n=$.R(n,f),k=$.R(k,f),c=$.R(c,f),d=$.R(d,f));a.moveTo(e,d);a.lineTo(c,m,c,n,l,n,l,k,c,k,c,b);a.close();return a};default:return ii}}; +Kp=function(a,b,c,d){var e=new $.Sm;c=!0;$.C(d)&&(e.lJ(d.rowsSeparator),e.gG(d.columnsSeparator),e.NH(d.ignoreTrailingSpaces),c=!d.ignoreFirstRow,e.LH(c));if(a=e.pC(a)){d=$.Me("table");b&&(e=$.Me("caption"),Ue(e,b),d.appendChild(e));if(c){var f=$.Me("thead");var h=$.Me("tr");f.appendChild(h)}b=$.Me("tbody");for(e=0;e=a||96<=a&&106>=a||65<=a&&90>=a||($.xd||$.Rp)&&0==a)return!0;switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}};Qp=function(a){if($.gd)a=dca(a);else if($.Ad&&$.xd)switch(a){case 93:a=91}return a}; +dca=function(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};$.Tp=function(a,b){$.qf.call(this);a&&this.VM(a,b)};Up=function(a,b,c,d){$.Bd.call(this,d);this.type="key";this.keyCode=a;this.f=b;this.repeat=c};$.Wp=function(a){$.p(a)&&($.ll=$.fa=a,$.Vp=a.document);return $.fa};$.Yp=function(a){$.p(a)&&(Xp=a);return Xp};aq=function(a,b){$.Zp?$p.push((0,$.pa)(a,b)):a.apply(b)}; +$.bq=function(){$.Zp--;if(!$.Zp)for(var a=$p.slice(0),b=$p.length=0;bc;c++)a.push(("0000"+c.toString(2)).slice(-4));b=a.map(function(a){return zp(a)}).indexOf(b.slice(-1)[0]);if(-1===b)return!1;eca(a[b]);return!0}return!1};eca=function(a){for(var b={},c=Object.keys(zl),d=0;dk||bc)var d=this.f.mF[c];else 8>c?d=this.f.rF[c-4]:(d=this.f.sQ[c-8],d=d.replace("{1}",this.f.mF[c-8]),d=d.replace("{0}",this.f.rF[c-8]));cs(this,d)}else cs(this,a)}; +cs=function(a,b){for(var c=!1,d="",e=0;e=a.count)return!1;var b="MydhHmsSDkK".indexOf(a.text.charAt(0));return 0a.count};es=function(a,b){var c=a.substring(b[0]).match(/^\s+/);c&&(b[0]+=c[0].length)}; +hs=function(a,b,c,d,e,f){es(b,c);var h=c[0],k=d.text.charAt(0),l=-1;if(ds(d))if(0b.length)return!1;l=fs(a,b.substring(0,h+e),c)}else l=fs(a,b,c);switch(k){case "G":return l=gs(b,c,a.f.wQ),0<=l&&(f.era=l),!0;case "M":case "L":a:{d=l;if(0>d){a=a.f.BQ.concat(a.f.MQ).concat(a.f.IQ).concat(a.f.NQ);d=gs(b,c,a);if(0>d){f=!1;break a}f.month=d%12}else f.month=d-1;f=!0}return f;case "E":return d=gs(b,c,a.f.RQ),0>d&&(d=gs(b,c,a.f.KQ)),0>d?f=!1:(f.b=d,f=!0),f;case "a":return l=gs(b,c,a.f.oQ),0<=l&& +(f.i=l),!0;case "y":a:{if(0>l){var m=b.charAt(c[0]);if("+"!=m&&"-"!=m){f=!1;break a}c[0]++;l=fs(a,b,c);if(0>l){f=!1;break a}"-"==m&&(l=-l)}m||2!=c[0]-h||2!=d.count?f.year=l:(b=l,c=(new Date).getFullYear()-80,a=c%100,f.F=b==a,b+=100*Math.floor(c/100)+(bl?(d=gs(b,c,a.f.EQ),0>d&&(d=gs(b,c,a.f.JQ)),0>d?f=!1:(f.month=3*d,f.day=1,f=!0)):f=!1,f;case "d":return 0<=l&&(f.day=l),!0;case "S":return b=c[0]-h,f.j=3>b?l*Math.pow(10,3-b):Math.round(l/Math.pow(10, +b-3)),!0;case "h":12==l&&(l=0);case "K":case "H":case "k":return 0<=l&&(f.Th=l),!0;case "m":return 0<=l&&(f.Bj=l),!0;case "s":return 0<=l&&(f.wh=l),!0;case "z":case "Z":case "v":b.indexOf("GMT",c[0])==c[0]&&(c[0]+=3);a:if(c[0]>=b.length)f.f=0,f=!0;else{d=1;switch(b.charAt(c[0])){case "-":d=-1;case "+":c[0]++}h=c[0];l=fs(a,b,c);if(0>l)f=!1;else{if(c[0]l){f=!1;break a}m+=l}else m=l,m=24>m&&2>=c[0]-h?60*m:m%100+m/100*60;f.f=-(m*d);f=!0}}return f; +default:return!1}};fs=function(a,b,c){if(a.f.SQ){for(var d=[],e=c[0];e=f?String.fromCharCode(f+48):b.charAt(e))}b=d.join("")}else b=b.substring(c[0]);a=b.match(/^\d+/);if(!a)return-1;c[0]+=a[0].length;return(0,window.parseInt)(a[0],10)};gs=function(a,b,c){var d=0,e=-1;a=a.substring(b[0]).toLowerCase();for(var f=0;fd&&0==a.indexOf(c[f].toLowerCase())&&(e=f,d=h)}0<=e&&(b[0]+=d);return e};jca=function(){}; +js=function(a){$.C(a)||(a=String(a),a=is[a]||$.oq.format.locales[a]);return a||null};$.Xo=function(a){return(a=js(a))&&a.dateTimeLocale||null};ks=function(a){return(a=js(a))&&a.numberLocale||null};ls=function(a,b){var c=$.Xo(a);return c&&c[b||"dateTimeFormat"]||null}; +ns=function(a){if(!a)return ao;var b=$.oa(a);b in ms||(ms[b]={wQ:a.eras,cZ:a.eraNames,gZ:a.narrowMonths,vZ:a.standaloneNarrowMonths,BQ:a.months,MQ:a.standaloneMonths,IQ:a.shortMonths,NQ:a.standaloneShortMonths,RQ:a.weekdays,yZ:a.standaloneWeekdays,KQ:a.shortWeekdays,xZ:a.standaloneShortWeekdays,e9:a.narrowWeekdays,wZ:a.standaloneNarrowWeekdays,JQ:a.shortQuarters,EQ:a.quarters,oQ:a.ampms||a.amPmS,mF:a.dateFormats||[],rF:a.timeFormats||[],sQ:a.dateTimeFormats||[],fK:a.firstDayOfWeek,u$:a.weekendRange, +gK:a.firstWeekCutOffDay||a.firstWeekCutOfDay});return ms[b]};os=function(a,b){var c=js(a);if(c){var d="object"==$.ka(a);is[d?b:a]=kp($.oq.format.locales["default"],c)}};qs=function(a){$.p(a)&&(ps=$.ma(a)?a.getTime():$.N(a));return(0,window.isNaN)(ps)?(a=new Date,a.setTime(Date.UTC(a.getUTCFullYear(),a.getUTCMonth())),a):new Date(ps)};$.Yo=function(a){if($.p(a)){var b=$.z(a),c="object"==$.ka(a);b||c?(c=c?"output":a,os(a,c),rs=b?c:is[c]||is.output||a):rs="default"}return rs}; +ts=function(a){$.p(a)&&($.z(a)?ss=a:ss=null);return ss||ls(rs)||ls("output")||ls("default")||"yyyy.MM.dd"};vs=function(a){$.p(a)&&($.z(a)?us=a:us=null);return us||ls(rs,"dateFormat")||ls("output","dateFormat")||ls("default","dateFormat")||"yyyy.MM.dd"};xs=function(a){$.p(a)&&($.z(a)?ws=a:ws=null);return ws||ls(rs,"timeFormat")||ls("output","timeFormat")||ls("default","timeFormat")||"HH:mm:ss"}; +$.zs=function(a,b,c,d){return $.ma(a)?a:$.ea(a)?(0,window.isNaN)(a)?null:new Date(a):$.z(a)?ys(a,b,c,d):null};$.As=function(a){var b=js(rs);return(b=b&&b.messages)&&a in b?b[a]:a};$.Bs=function(a,b,c){b=$.Zk(b);a=$.Zk(a);return((c?c+"_":"")+(a==b?a:b+"_"+a)).replace(/-/g,"_")};$.Cs=function(a,b,c){a=(c=$.Xo(c)||$.Xo(rs)||$.Xo("output")||$.Xo("default"))&&c.formats&&c.formats[a];return($.A(a)?a[Math.min(a.length-1,b||0)]:$.z(a)?a:"")||"yyyy/MM/dd'T'HH:mm:ss.SSS"}; +$.Ds=function(a,b){var c=$.Xo(b)||$.Xo(rs)||$.Xo("output")||$.Xo("default");c=c&&c.formats&&c.formats[a];return $.A(c)?c:$.z(c)?[c]:[]};$.Fs=function(a,b,c){return $.Es(a,vs(),b,c)};Gs=function(a,b,c){return $.Es(a,xs(),b,c)}; +$.Es=function(a,b,c,d){a=$.J(a,Date)?a:new Date(a);if((0,window.isNaN)(a.getTime()))return String(a);d=$.Xo(d)||$.Xo(rs)||$.Xo("output")||$.Xo("default");b=b||ss||ts()||"yyyy.MM.dd";var e=b+$.oa(d);e in Hs||(d=ns(d),Hs[e]=new $.eo(b,d));d=Hs[e];c=c||Is;c in Ms||(Ms[c]=Zn(c));return d.format(a,Ms[c])}; +$.Os=function(a,b,c,d,e,f,h,k){var l;$.z(b)?l=ks(b):$.C(b)&&(l=b);var m=ks(rs)||ks("default");b=$.ea(b)?b:l&&$.ea(l.decimalsCount)?l.decimalsCount:m.decimalsCount;c=$.z(c)?c:l&&$.z(l.decimalPoint)?l.decimalPoint:m.decimalPoint;d=$.z(d)?d:l&&$.z(l.groupsSeparator)?l.groupsSeparator:m.groupsSeparator;e=$.C(e)||$.da(e)?e:l&&($.C(l.scale)||$.da(l.scale))?l.scale:m.scale;f=$.da(f)?f:l&&$.da(l.zeroFillDecimals)?l.zeroFillDecimals:m.zeroFillDecimals;h=$.z(h)?h:l&&$.z(l.scaleSuffixSeparator)?l.scaleSuffixSeparator: +m.scaleSuffixSeparator;k=$.da(k)?k:l&&$.da(l.useBracketsForNegative)?l.useBracketsForNegative:m.useBracketsForNegative;!0===e&&(e=Ns);a=Number(a);(l=0>a)&&(a=-a);m="";if($.C(e)&&$.A(e.factors)&&$.A(e.suffixes)){var n=1,q=e.factors;e=e.suffixes;for(var r=Math.min(q.length,e.length),t=0;t=n||1>=n&&a>.1*n){m=e[t];break}m?m=h+m:n=1;a/=n}f=f?a.toFixed(b):$.$m(a,b).toString();a="";/(e+|e-)/.test(f)&&(b=f.split("e"),f=b[0],a="e"+b[1]);b=f.split(".");if(d){f=b[0];for(h=[];0<(e=f.substr(0, +f.length-3)).length;)h.unshift(f.substr(-3)),f=e;f&&h.unshift(f);b[0]=h.join(d)}d=l?"-":"";c=b.join(c)+a+m;l&&k&&(c=["(",c,")"].join(""),d="");return d+c}; +ys=function(a,b,c,d){if(b=($.p(b)?b:Ps)||null){d=$.Xo(d)||$.Xo(Qs)||$.Xo("input")||$.Xo("default");var e=$.oa(d);e=b+e;e in Rs||(d=ns(d),Rs[e]=new hca(b,d));var f=Rs[e];c=$.ma(c)?c:qs();(b=-1==b.replace(/'.+?'/g,"").search(/z+/i))&&c.setTime(c.getTime()+6E4*c.getTimezoneOffset());d=a.length;a:{var h=new jca;e=[0];for(var k=-1,l=0,m=0,n=0;nk&&f.b[n].fC&&(k=n,m=l=0),0<=k){var q=f.b[n].count;if(n==k&&(q-=m,m++,0==q)){a=0;break a}hs(f,a,e,f.b[n],q,h)||(n=k-1,e[0]= +l)}else{if(k=-1,!hs(f,a,e,f.b[n],0,h)){a=0;break a}}else{k=-1;if(" "==f.b[n].text.charAt(0)){if(q=e[0],es(a,e),e[0]>q)continue}else if(a.indexOf(f.b[n].text,e[0])==e[0]){e[0]+=f.b[n].text.length;continue}a=0;break a}b:{if(null==c)throw Error("Parameter 'date' should not be null.");void 0!=h.era&&void 0!=h.year&&0==h.era&&0f?f:a));$.D(c.setHours)&&(void 0==h.Th&&(h.Th=c.getHours()),void 0!=h.i&&0h.Th&&(h.Th+=12),c.setHours(h.Th));$.D(c.setMinutes)&&void 0!=h.Bj&&c.setMinutes(h.Bj);$.D(c.setSeconds)&&void 0!=h.wh&&c.setSeconds(h.wh);$.D(c.setMilliseconds)&&void 0!=h.j&&c.setMilliseconds(h.j);void 0!=h.f&&c.setTime(c.getTime()+6E4*(h.f-c.getTimezoneOffset()));h.F&&(a=new Date,a.setFullYear(a.getFullYear()-80),c.getTime()a[h]&&(a=$.Ja(a,0).reverse(),b=$.Ja(b,0).reverse());for(var k=[],l=[],m=0;mc&&(c=~c);c=$.Za(c,1,h)-1;b=k[c](b);return l[c](b)}}; +et=function(a){$.V.call(this);this.scale=a;this.j=lca;this.i=mca;this.f=nca};ft=function(a,b,c,d){b=Math.abs(c-b)/a.qn;c=a.f.length;for(var e=0;e=a*b)return 0;d&&(a=$.bn(b),c=+("1e-"+(Math.min($.an(a),$.an(b))+1)),a>b&&(a+=e*c),b=a);return b};$.xt=function(){$.vt.call(this);this.Ga("defaultScaleSettings.dateTime");this.Di=this.xh=null};$.st=function(){var a=new $.xt;a.N(a.oa);return a}; +zt=function(){$.V.call(this);this.f=this.b=null;this.i={SY:{},JS:{}};var a=$.Xo($.Yo());this.G=$.Ha(a.weekendRange);this.j=yt(this.G);this.F={}};yt=function(a){var b=a[1],c={};for(a=a[0];a<=b;a++)c[String((a+1)%7)]=!0;return c};At=function(a,b,c,d){c=oca.b(c);b.add(c);b=b.getTime();d.push({from:a,to:b-1});return b}; +$.Ct=function(){$.V.call(this);this.Jo=this.Ko=this.Zm=this.$m=this.N6=this.O6=this.Oh=this.Ph=this.Fj=this.Gj=this.Ze=this.$e=window.NaN;this.bm={value:.01,isPixels:!1};this.am={value:.01,isPixels:!1};this.IS=window.NaN;this.Kc=!1;this.pT=this.kM=window.NaN;this.jd=Bt(pca);this.Qv=1;this.WG=0;this.dl=qca;this.Xq=this.je=null;this.eQ=this.gF=!1}; +Dt=function(a){var b=new Date;(0,window.isNaN)(a.kM)&&(a.kM=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()));(0,window.isNaN)(a.pT)&&(a.pT=a.kM+864E5);return{min:a.kM,max:a.pT}};$.Et=function(a,b,c){b=$.Xk(b);c=$.Xk(c);if(a.Ph!=b||a.Oh!=c)a.Ph=b,a.Oh=c,a.Gj=window.NaN,a.Fj=window.NaN,a.Kc=!1,a.pb(),a.va(4)}; +Gt=function(a){var b=a.Xq.ob().width,c=$.Ft(a.bm.value,b),d=$.Ft(a.am.value,b),e=a.Oh-a.Ph;a.Gj=(0,window.isNaN)(a.$m)?(0,window.isNaN)(a.Ko)?Math.round(a.Ph-(Math.max(e*c/(b-c-d),0)||0)):Math.min(a.Ko,a.Ph):a.$m;a.Fj=(0,window.isNaN)(a.Zm)?(0,window.isNaN)(a.Jo)?Math.round(a.Oh+(Math.max(e*d/(b-c-d),0)||0)):Math.max(a.Jo,a.Oh):a.Zm}; +Ht=function(a,b){var c=b?a.bm:a.am,d=b?a.am:a.bm,e=a.Xq.ob().width,f=a.Oh-a.Ph;d=f*d.value;c=$.Ft(c.value,e);e=c*(f+d)/(e-c)||0;a.Gj=(0,window.isNaN)(a.$m)?(0,window.isNaN)(a.Ko)?b?a.Ph-e:a.Ph-d:Math.min(a.Ko,a.Ph):a.$m;a.Fj=(0,window.isNaN)(a.Zm)?(0,window.isNaN)(a.Jo)?b?a.Oh+d:a.Oh+e:Math.max(a.Jo,a.Oh):a.Zm};$.It=function(a){if(a.Uj())return!0;var b=a.uj();return a.$e<=b.min};$.Jt=function(a){if(a.Uj())return!0;var b=a.uj();return a.Ze>=b.max}; +Bt=function(a){var b=[];if($.A(a)){for(var c=0;ca?-m(-a+e-1):a?m(a+e-1):0}function l(a){return-m(a)}function m(a){return en(d,a)}var n=$.dn(Math.abs(b),d),q=$.dn(Math.abs(c),d),r=b*c,t=!1;0r?Tt(a,-(n-(e-1)),q-(e-1),f,h):c?Tt(a,0,q-(e-1),f,h):Tt(a,-(n-(e-1)),0,f,h);a.Ya=(0,$.Wa)(a.Ya,k);a.result=(0,$.Wa)(a.result,k);t&&(a.Ya.reverse(),t=a.result[0],a.result[0]=a.result[1],a.result[1]=t,t=a.result[2],a.result[2]= +a.result[3],a.result[3]=t);a.result[4]=e;return a}; +Tt=function(a,b,c,d,e,f,h){h=h||0;var k=a.Jl,l=a.lh,m=a.qm,n=c-b;!(0,window.isNaN)(k)&&n/k>a.pa.an()&&($.kl(20,null,[n,k]),k=window.NaN,l=4,m=6);if((0,window.isNaN)(k)){var q=window.NaN;for(a=window.NaN;l<=m;l++){var r=l-1;q=$.bn(n/r);0==q&&(q=$.bn(n/r,10));var t=Math.log(q);r=Math.pow(10,Math.floor(t*Math.LOG10E));t=Math.pow(10,Math.ceil(t*Math.LOG10E));var u=$.dn(q/t,2);r=[r,t,q=b;h=$.$m(h-d,7)){e!=h&&$.Da(f,h);if(k&&a==h)break;k++}else for(h=a=$.$m(b,7);h<=c;h=$.$m(h+d,7)){e!=h&&f.push(h);if(k&&a==h)break;k++}return f};Vt=function(a,b,c,d){a=a.Jl;(0,window.isNaN)(a)&&(a=(c-b)/(d-1));return Math.max(a,1E-7)}; +$.Wt=function(){$.vt.call(this);this.Ga("defaultScaleSettings.linear");this.Di=this.xh=null;this.dS=!0;this.xw=10;this.GJ=!0;this.RK=this.J3};$.qt=function(){var a=new $.Wt;a.N(a.oa);return a};Xt=function(){$.Wt.call(this);this.Ga("defaultScaleSettings.log")};$.rt=function(){var a=new Xt;a.N(a.oa);a.Ya().N(a.Ya().oa);a.yb().N(a.yb().oa);return a};$.Yt=function(a){$.V.call(this);this.scale=a};$.Zt=function(a){a.Iz=null;a.Cx=null;a.Ok=null}; +$.$t=function(){this.ih=[];this.Wf=[];this.Or=[];this.Vw=[];this.oz=[];this.TR=!0;this.XB={};this.q4=null;this.TF=!0;this.mb=null;gt.call(this);this.Ga("defaultScaleSettings.ordinal")};$.au=function(a,b){null===b?a.Or.length=0:$.A(b)&&(a.Or=$.Ha(b));a.Ox()||(a.Or.length=0);a.Vw.length=0;a.oz.length=0;$.Zt(a.Ya());a.va(2)}; +$.bu=function(a){if(!a.oz||a.oz.length!=a.ih.length){var b=a.KY(),c=0,d;for(d in b)c+=b[d];a.oz=b.map(function(a){return a/c});a.YJ=[0];for(b=0;ba?$.Da(d,c,~a):(a=d[a],$.A(a.value)?$.Ba(a.value,b):a.value!=b&&(a.value=[a.value],a.value.push(b)))}else for(e in a.Bd)ru(a,b,e,d)}; +su=function(a,b,c,d){if(c){if(d)for(var e=b.cc();e--;)su(a,b.yd(e),c,d);if(d=a.Bd[c])e=b.get(c),a.cI[c]&&(e=String(e)),b.get(c),e=$.Na(d,e,a.PH[c]),(d=d[e])&&($.A(d.value)&&1h.KH&&(e.__original_id__=c.length,e.__original_parent__=c.length+1,c.push("__original_id__","__original_parent__"));for(f=0;f=h.KH){var q=n[0];var r=n[1]}else q=m.id,r=n[2];for(e=0;ea.length?a[0]:a[b],Math.min(d,c))||0}; +Ku=function(a,b,c,d,e,f,h){switch(a.g("cornerType")){case "round":b.Ff(e,f,h,h,!1,!0);break;case "round-inner":b.Ff(e,f,h,h,!1,!1);break;case "cut":b.lineTo(e,f);break;default:b.lineTo(c,d).lineTo(e,f)}};Lu=function(){$.Iu.call(this)};Mu=function(){this.P=$.mg();this.kc="";this.f={};this.b=0};Nu=function(a,b){return null!=b&&a.length>b?a.slice(0,b)+"...":a}; +Ou=function(a,b,c,d){$.V.call(this);this.Xb=this.Y=null;($.p(a)||$.p(b)||$.p(c)||$.p(d))&&this.set.apply(this,arguments);$.T(this.ua,[["left"],["top"],["bottom"],["right"]])}; +$.Nm=function(a){var b=arguments[0],c=arguments[1],d=arguments[2],e=arguments[3];if($.A(b)){var f=b;b=f[0];c=f[1];d=f[2];e=f[3];f=f.length}else f=arguments.length;if(!f)return{};if("object"==$.ka(b)){var h=b.top||0;var k=b.right||0;var l=b.bottom||0;var m=b.left||0}else 1==f?m=l=k=h=b||0:2==f?(l=h=b||0,m=k=c||0):3==f?(h=b||0,m=k=c||0,l=d||0):4<=f&&(h=b||0,k=c||0,l=d||0,m=e||0);return{top:h,left:m,bottom:l,right:k}};Qu=function(a,b){for(var c in Pu){var d=b[c];$.p(d)&&(a.oa[c]=d)}}; +$.Ru=function(a,b,c,d){Ou.call(this,a,b,c,d)};$.Uu=function(a,b){var c=b.top||0,d=b.left||0,e=Su(a.height,c,b.bottom||0),f=Tu(a.width,d,b.right||0);d=$.L(d,f);c=$.L(c,e);return new $.I(a.left-d,a.top-c,f,e)};Su=function(a,b,c){var d=1;$.Bo(b)?d-=(0,window.parseFloat)(b)/100:a+=$.ea(b)?b:(0,window.parseFloat)(b);$.Bo(c)?d-=(0,window.parseFloat)(c)/100:a+=$.ea(c)?c:(0,window.parseFloat)(c);d||(d=1E-7);return a/d}; +Tu=function(a,b,c){var d=1;$.Bo(b)?d-=(0,window.parseFloat)(b)/100:a+=$.ea(b)?b:(0,window.parseFloat)(b);$.Bo(c)?d-=(0,window.parseFloat)(c)/100:a+=$.ea(c)?c:(0,window.parseFloat)(c);d||(d=1E-7);return a/d};$.Vu=function(){this.b={}}; +sca=function(a){function b(a){var b=[],c,d;for(d in a)if(a.hasOwnProperty(d)){var e=a[d];if(d in l){var f=l[d];"number"==f&&(e=$.N(e));"boolean"==f&&(e=k[op(e).toLowerCase()],e="useNegativeSign"==d?!e:e);if("scale"==f){var h=op(e);if(h in k)e=k[h];else{e={};h=h.split("|");var n=function(a,b){return 0!=b%2};f=(0,$.Ye)(h[0].split(/\(([ \w\+\-]*)\)/),n);h=(0,$.Ye)(h[1].split(/\(([^\)]*)\)/),n);f=(0,$.Wa)(f,function(a){return+a});var q=f[0];n=[q];for(c=1;cb||h&&d>c?-1:f&&a==b||h&&d==c?0:1});0>d&&(d=~d-1);return a[$.Za(d,0,a.length)]}; +wca=function(a){var b=$.dv(a),c=b.useHtml,d=a.Hf();a.J(1024)&&($.hv(a.gp,a.ma()),a.I(1024));b=a.uk(b.format,d,a.ma());a.Rv||(a.Rv=$.sk(),a.Rv.Dd("aria-hidden","true"));c?a.Rv.htmlText($.p(b)?String(b):""):a.Rv.text($.p(b)?String(b):"");ev(a,function(a,b,c){a=0==c;$.J(b,$.Zu)||$.J(b,$.cv)?this.bi.call(b,this.Rv,a):this.bi(this.Rv,a,b)});return a.Rv}; +bv=function(a){if($.da(a.xr))return a.xr;var b=$.dv(a),c=null!==b.width,d=null!==b.height,e=b.useHtml,f=a.xb?!!a.xb.path():!1;a=String(a.uk(b.format,a.Hf(),a.ma()));a=$.hc(ic(a));return 1!=a.split(/\n/g).length||c||d||e||f};tv=function(a){var b=bv(a),c=$.J(a.xb,Mu),d=$.J(a.xb,$.Qh);return!a.xb||b&&c||!b&&d};uv=function(){$.Zu.call(this)};vv=function(){$.cv.call(this)}; +wv=function(a,b,c){this.qc={values:a||{},lg:b||null,Li:c||[],Im:{},Dl:{}};this.qc.Im["%Value"]="value";this.qc.Im["%YValue"]="value";this.qc.Im["%Index"]="index"};$.xv=function(a){return $.p(void 0)?(a.qc.values=void 0,a):a.qc.values};$.yv=function(a,b){var c;if($.p(b)){for(c in a)a.hasOwnProperty(c)&&!$.D(a[c])&&a[c]!=a.qc&&delete a[c];a.qc.values=b}for(c in a.qc.values)a[c]=a.qc.values[c].value;return a};$.zv=function(a){$.V.call(this);this.b=a}; +Av=function(a){this.ra=a;$.V.call(this);$.T(this.ua,[["text",16,2],["url",16,2],["alt",16,2],["imgAlt",16,2],["logoSrc",16,2],["enabled",16,2]])}; +Bv=function(){$.Y.call(this);this.Y=null;this.Uc={};this.Xb=null;$.T(this.ua,[["fontSize",20,9],["fontFamily",20,9],["fontColor",16,1],["fontOpacity",16,1],["fontDecoration",20,9],["fontStyle",20,9],["fontVariant",20,9],["fontWeight",20,9],["letterSpacing",20,9],["textDirection",20,9],["lineHeight",20,9],["textIndent",20,9],["textShadow",16,1],["vAlign",20,9],["hAlign",20,9],["wordWrap",20,9],["wordBreak",20,9],["textOverflow",20,9],["selectable",16,1],["disablePointerEvents",16,1],["useHtml",20, +9]])};Cv=function(){Bv.call(this);this.Ia=null;this.K=void 0;this.xb=this.Wa=null;this.Oa=$.ok();$.Bu(this,this.Oa);$.T(this.ua,[["text",20,9],["position",4,9],["width",4,9],["height",4,9],["anchor",4,9],["offsetX",4,9],["offsetY",4,9],["rotation",4,9],["adjustFontSize",4,9],["minFontSize",0,0,0,this.ea],["maxFontSize",0,0,0,this.ea]]);this.ua.disablePointerEvents.e0=function(){this.background().disablePointerEvents(this.nd("disablePointerEvents"))}}; +Dv=function(a){var b=a.ja(),c;var d=a.g("width");var e=a.g("height");var f=a.X1();b&&f?(null!=d?(a.Oi=d=$.L(d,f.width),b=!1):(d=0,b=!0),null!=e?(a.Ni=c=$.L(e,f.height),f=!1):(c=0,f=!0)):($.Ko(d)?(b=!0,d=0):(b=!1,a.Oi=d=$.N(d)),$.Ko(e)?(f=!0,c=0):(f=!1,a.Ni=c=$.N(e)));e=a.padding();a.xb.width(null);a.xb.height(null);b?(d+=a.xb.sb().width,a.nn=d,a.Oi=e.Lk(d)):d=a.nn=e.Ng(d);a.xb.width(a.nn);f?(c+=a.xb.sb().height,a.ln=c,a.Ni=e.$j(c)):c=a.ln=e.Yh(c);a.xb.height(a.ln);var h=!b,k=!f,l=a.g("adjustFontSize"); +h=l&&(h&&l.width||k&&l.height);a.ka();h?(d=a.aS(d,c),a.fontSize(d),a.xb.fontSize(d),b&&(a.xb.width(null),a.nn=a.xb.sb().width,a.xb.width(a.nn),a.Oi=e.Lk(a.nn)),f&&(a.xb.height(null),a.ln=a.xb.sb().height,a.xb.height(a.ln),a.Ni=e.$j(a.ln))):l&&(l.width||l.height)&&(a.fontSize(a.g("minFontSize")),a.xb.fontSize(a.g("minFontSize")),b&&(a.xb.width(null),a.nn=a.xb.sb().width,a.xb.width(a.nn),a.Oi=e.Lk(a.nn)),f&&(a.xb.height(null),a.ln=a.xb.sb().height,a.xb.height(a.ln),a.Ni=e.$j(a.ln)));a.da(!1);a.Lg=$.L(e.g("left"), +a.Oi);a.Mg=$.L(e.g("top"),a.Ni)};Ev=function(a){var b;if(b=!a.xb)a.xb=$.sk(),a.xb.Dd("aria-hidden","true");return b};$.Fv=function(){Cv.call(this);$.T(this.ua,[["visible",128,1]]);this.oa.visible=!0};Gv=function(){$.Fv.call(this)}; +Hv=function(){function a(){this.Zy=!0}function b(){this.ac=null}Bv.call(this);this.Ga($.Er.legendItem);this.wb=$.ok();this.ad=this.wb.text();this.ad.Dd("aria-hidden","true");this.VW=this.WW=null;this.RF=window.NaN;this.n4={line:"black",spline:"black","step-line":"black",ohlc:"black",candlestick:"black"};this.vka={line:!0,spline:!0,"step-line":!0,ohlc:!0};this.ZC={iconStroke:"#999",iconFill:"#999",iconHatchFill:"none",iconMarkerStroke:"#999",iconMarkerFill:"#999",fontColor:"#999"};$.T(this.ua,[["text", +20,9],["x",4,9,0,b],["y",4,9,0,b],["iconType",16,1,0,a],["iconTextSpacing",4,9,0,b],["maxWidth",4,9,0,b],["maxHeight",4,9,0,b],["iconFill",17,0,a],["iconStroke",16,1,0,a],["iconHatchFill",16,1,0,a]]);this.TK()};Jv=function(a,b,c){a.$l?a.$l.clear():a.$l=b.parent().path();a.jw&&(Iv(a,a.za),b=a.jw,($.z(b)?$.Jp(b):b).call(a,a.$l,c/2,c/2,c/6))}; +xca=function(a){switch(a){case "step-area":a=function(a,b){a.moveTo(0,.6*b).lineTo(.5*b,.6*b).lineTo(.5*b,.1*b).lineTo(b,.1*b).lineTo(b,b).lineTo(0,b).lineTo(0,.6*b).close()};break;case "area":a=function(a,b){a.moveTo(0,.7*b).lineTo(.35*b,.3*b).lineTo(.5*b,.5*b).lineTo(b,0).lineTo(b,b).lineTo(0,b).lineTo(0,.7*b).close()};break;case "range-step-area":case "range-spline-area":case "range-area":a=function(a,b){a.moveTo(0,.2*b).lineTo(.5*b,.4*b).lineTo(b,.2*b).lineTo(b,.8*b).lineTo(.5*b,.6*b).lineTo(0, +.8*b).close()};break;case "spline-area":a=function(a,b){var c=b/2;a.moveTo(b,.6*c).lineTo(b,b).lineTo(0,b).lineTo(0,1.3*c).Fe(0,c,c,.3*c,90,-90).Fe(b,c,c,.4*c,180,90).moveTo(0,0).close()};break;case "range-bar":a=function(a,b){a.moveTo(.35*b,0).lineTo(.65*b,0).lineTo(.65*b,.15*b).lineTo(.35*b,.15*b).close().moveTo(.1*b,.4*b).lineTo(.9*b,.4*b).lineTo(.9*b,.55*b).lineTo(.1*b,.55*b).close().moveTo(.25*b,.8*b).lineTo(.75*b,.8*b).lineTo(.75*b,.95*b).lineTo(.25*b,.95*b).close()};break;case "range-column":a= +function(a,b){a.moveTo(0,.6*b).lineTo(0,.4*b).lineTo(.15*b,.4*b).lineTo(.15*b,.6*b).lineTo(0,.6*b).close().moveTo(.4*b,.9*b).lineTo(.4*b,.1*b).lineTo(.55*b,.1*b).lineTo(.55*b,.9*b).lineTo(.4*b,.9*b).close().moveTo(.8*b,.7*b).lineTo(.8*b,.3*b).lineTo(.95*b,.3*b).lineTo(.95*b,.7*b).lineTo(.8*b,.7*b).close()};break;case "bar":a=function(a,b){a.moveTo(0,0).lineTo(.6*b,0).lineTo(.6*b,.15*b).lineTo(0,.15*b).close().moveTo(0,.4*b).lineTo(b,.4*b).lineTo(b,.55*b).lineTo(0,.55*b).close().moveTo(0,.8*b).lineTo(.8* +b,.8*b).lineTo(.8*b,.95*b).lineTo(0,.95*b).close()};break;case "column":a=function(a,b){a.moveTo(0,b).lineTo(0,.4*b).lineTo(.15*b,.4*b).lineTo(.15*b,b).close().moveTo(.4*b,b).lineTo(.4*b,0).lineTo(.55*b,0).lineTo(.55*b,b).close().moveTo(.8*b,b).lineTo(.8*b,.2*b).lineTo(.95*b,.2*b).lineTo(.95*b,b).close()};break;case "step-line":a=function(a,b){a.moveTo(0,.8*b).lineTo(.5*b,.8*b).lineTo(.5*b,.2*b).lineTo(b,.2*b).moveTo(0,0).close();Jv(this,a,b)};break;case "line":a=function(a,b){a.moveTo(0,.5*b).lineTo(b, +.5*b).close();Jv(this,a,b)};break;case "spline":a=function(a,b){var c=b/2;a.Fe(0,c,c,.8*c,90,-90).Fe(b,c,c,.6*c,180,90).moveTo(0,0).close();Jv(this,a,b)};break;case "bubble":case "circle":a=function(a,b){var c=b/2;a.Fe(c,c,c,c,0,360).close()};break;case "candlestick":a=function(a,b){a.moveTo(.5*b,0).lineTo(.5*b,b).moveTo(0,.3*b).lineTo(b,.3*b).lineTo(b,.7*b).lineTo(0,.7*b).lineTo(0,.3*b).close()};break;case "ohlc":a=function(a,b){a.moveTo(0,.2*b).lineTo(.5*b,.2*b).moveTo(.5*b,0).lineTo(.5*b,b).moveTo(.5* +b,.8*b).lineTo(b,.8*b).close()};break;case "triangle-up":case "triangle-down":case "triangle-right":case "triangle-left":case "diamond":case "cross":case "diagonal-cross":case "star4":case "star5":case "star6":case "star7":case "star10":case "pentagon":case "trapezium":case "arrowhead":case "v-line":a=$.Ok(a);var b=$.Jp(a);a=function(a,d){return b(a,d/2,d/2,d/2)};break;default:a=function(a,b){a.moveTo(0,0).lineTo(b,0).lineTo(b,b).lineTo(0,b).close()}}return a}; +Kv=function(a,b){a.$l&&a.$l.clear();a.Fs?(b.call(a,a.lw.clear(),a.op),a.Es&&b.call(a,a.Es.clear(),a.op)):(a.lw.clear(),a.Es&&a.Es.clear())};Lv=function(a,b,c){a.bi(a.ad,!!c);c=a.g("fontColor");b=a.fq?a.ZC.fontColor:b?$.Wl(c):c;(0,window.isNaN)(a.RF)?(a.ad.color(b),a.ad.fill(b)):(c=a.g("fontOpacity"),c=$.p(c)?c:1,b={keys:Mp(a.RF,c,b)},a.Rh().fill(b))};Mv=function(a,b){a.lw.stroke(yca(a,b));a.lw.fill(zca(a,b));a.Es&&a.Es.fill(a.fq?a.ZC.iconHatchFill:a.g("iconHatchFill"))}; +Iv=function(a,b){a.$l&&(a.$l.fill(Aca(a,b)),a.$l.stroke(Bca(a,b)))};yca=function(a,b){if(a.fq)return a.ZC.iconStroke;var c=a.g("iconType");return $.lp(a.g("iconStroke"))&&c in a.n4?a.n4[c]:b?$.Wl(a.g("iconStroke")):a.g("iconStroke")};zca=function(a,b){return a.g("iconType")in a.vka?null:a.fq?a.ZC.iconFill:b?$.Wl(a.g("iconFill")):a.g("iconFill")};Bca=function(a,b){return a.fq?a.ZC.iconMarkerStroke:b?$.Wl(a.hw):a.hw};Aca=function(a,b){return a.fq?a.ZC.iconMarkerFill:b?$.Wl(a.gw):a.gw}; +Nv=function(a,b){return $.p(b)?(a.WW=b,a):a.WW};$.Pv=function(){Bv.call(this);this.Jf=this.Yf=null;this.ec=Ov;this.qE=this.kL=!1;this.SH();$.T(this.ua,[["text",20,9]]);this.B(4294967295)}; +Qv=function(a){var b=a.ja();if(b){var c=b.width;var d=b.height}else c=d=void 0;var e=!!a.xb;if(e){var f=a.xb.sb();var h=f.width;var k=f.height}var l=null!=a.Yf,m=null!=a.Jf;f=a.padding();l?(h=$.Bo(a.Yf)&&!$.p(c)?e?h:0:$.L(a.Yf,c),e&&(a.Lg=$.L(f.g("left"),h))):(h=e?h:0,e&&(a.Lg=$.L(f.g("left"),h)),h=f.Lk(h));b&&cb?null:b;$.p(a.width())||a.B(4)};$.lw=function(a,b){if($.p(b)){var c=a.g("orientation")!=b;a.Od.orientation=b;c&&a.B(4);return a}return a.Od.orientation};$.mw=function(a,b){if($.p(b)){var c=null==b?"":String(b);a.aa!=c&&(a.aa=c,a.B(20,9));return a}return a.aa};nw=function(a){var b=!1;a.wb||(b=!0,a.wb=$.ok(),a.background().O(a.wb),a.kc=a.wb.text(),a.kc.zIndex(.1),a.kc.Dd("aria-hidden","true"),$.Bu(a,a.wb));return b}; +ow=function(a){var b=a.padding(),c=a.margin(),d=a.ja(),e=a.g("orientation"),f=0==a.AA()%180;var h=0==(a.AA()+90)%180;if(d)if(h){var k=d.height;h=d.width}else k=d.width,h=d.height;else k=h=void 0;var l=nw(a);if(l||a.J(16))a.bi(l),a.I(16);a.kc.width(null);a.kc.height(null);a.kc.pc(1,0,0,1,0,0);l=a.kc.sb();var m=a.ph("width")?a.nd("width"):a.ba||null;null===m?(a.G=l.width,a.f=b.Lk(a.G)):(a.f=$.L(m,k),a.G=b.Ng(a.f));d&&kd.left-q+k&&(b-=d.left-q+k);0>d.top-m+n&&(c-=d.top-m+n);d.cb()-q+k>r.width&&(b-=d.cb()-q+k-r.width);d.Va()-m+n>r.height&&(c-=d.Va()-m+n-r.height)}h||(a.x(b),a.y(c),d=a.ob(),d.lefte.width+q&& +(b-=d.cb()-e.width-q),d.Va()>e.height+m&&(c-=d.Va()-e.height-m));l||(a.x(b),a.y(c),d=a.ob(),d.leftf.cb()+q&&(b-=d.cb()-q-f.cb()),d.Va()>f.Va()+m&&(c-=d.Va()-m-f.Va()));a.x(b);a.y(c)}}; +Jw=function(a,b,c,d,e){var f=b.parent()?Hw(b):a,h=f.g("positionMode")||"float";f=f.ya()||$.Iw(a);a=f.ob();var k=f.O().Ka();f=$.Zj(k);k=k.sb();var l=Fw(b),m=b.g("position");switch(h){case "float":var n=l?c:c-f.x;var q=l?d:d-f.y;break;case "point":var r;e&&e.Bh?r=e.Bh(m,!0).value:r={x:c,y:d};n=l?r.x+f.x:r.x;q=l?r.y+f.y:r.y;break;case "chart":c=$.Lo(a,m),n=c.x+(l?f.x:0),q=c.y+(l?f.y:0)}Gw(b,n,q,f,k,a)}; +Eca=function(a,b,c,d,e,f){if(a.check(Cw|Dw)&&(a.b=e?e.Ua():a,$.Kw(a,[a.b]),a.b.enabled())){for(var h={clientX:{value:c,type:"number"},clientY:{value:d,type:"number"},formattedValues:{value:[],type:""},points:{value:[],type:""}},k=[],l=0;l":"\n",h.joinedFormattedValues={value:h.formattedValues.value.join(k),type:"string"},f&&$.Sc(h,f),k=e&&e.xc&&e.xc()||b[0]&&b[0].series&&b[0].series.xc&&b[0].series.xc()||void 0,f=[],!e&&b[0]&&b[0].series&&f.push(b[0].series),e&&f.push(e),k&&f.push(k),b=new $.Nw(h),b.Li(f),e&&b.lg(e.$()), +$.yv(b),a.b.Ri().text(Mw(a,b,!0)),$.mw(a.b.title(),Ow(a,b)),$.Kw(a.b),a.b.g("useHtml")&&tw(a.b.i),Pw(a.b).parent()||a.b.B(2),Qw(a,a.b),Jw(a,a.b,c,d,e),Rw(a.b,c,d))}};Lw=function(a,b){return!a.enabled()||b.nearestPointToCursor&&!(0,window.isFinite)(b.nearestPointToCursor.distance)}; +$.Vw=function(a,b,c,d,e,f,h){if(!a.f||a.f.NA()||!a.f.Hm()||a.check(Cw)||b.length){$.Sw(a);var k=a.g("displayMode");if("single"==k)e=b[0],b=e.series,a.b=f?a:b.Ua(),!Lw(a.b,e)&&$.p(b.Rk)&&(f=b.Rk(),h&&($.Sc($.xv(f),h),$.yv(f)),f.clientX=c,f.clientY=d,$.mw(a.b.title(),Ow(a.b,f)),a.b.Ri().text(Mw(a.b,f)),a.b==a?$.Kw(a):(Tw(a),$.Kw(a,[a.b])),((h=a.g("useHtml"))&&!a.b.i.O()||!Pw(a.b).parent())&&a.b.B(2),h&&tw(a.b.i),Qw(a,a.b),Jw(a,a.b,c,d,b),Rw(a.b,c,d));else if("union"==k)Eca(a,b,c,d,e,h);else if("separated"== +k)for(Tw(a),h=0;hd.Va()?(e=d.tb(),f=d.cb(),h=d.Vb(),k=d.Va(),c+=2):(e=f=d.tb()+2,h=d.Vb(),k=d.Va(),b-=2);else if(b>d.cb())cd.Va()?(e=d.tb(),f=d.cb(),h=d.Va(),k=d.Vb(),c+=2):(e=f=d.cb()-2,h=d.Vb(),k=d.Va(),b+= +2);else if(cd.Va())h=k=d.Va()-2,e=d.tb(),f=d.cb(),c+=2;else break a;a.K=[e,h,f,k,b,c]}$.Yd(window.document,"mousemove",a.ZN,!1,a)}else e&&d.Ed(!0)}};$.Ww=function(a,b,c,d){$.Sw(a);a.b=a;d&&(d.clientX=b,d.clientY=c,$.mw(a.title(),Ow(a,d)),a.Ri().text(Mw(a,d)));a.g("useHtml")&&!a.b.i.O()&&a.b.B(2);Qw(a,a);Jw(a,a,b,c);Rw(a,b,c)}; +Ow=function(a,b){$.xv(b).titleText={value:a.jb.g("text"),type:"string"};$.yv(b);var c=a.g("titleFormat");$.z(c)&&(c=$.Xu($.Vu.vd(),c));return c.call(b,b)};Mw=function(a,b,c){$.xv(b).valuePrefix={value:a.g("valuePrefix")||"",type:"string"};$.xv(b).valuePostfix={value:a.g("valuePostfix")||"",type:"string"};$.yv(b);c=c?a.g("unionFormat"):a.g("format");$.z(c)&&(c=$.Xu($.Vu.vd(),c));a=a.g("maxLength");b=c.call(b,b);return b=Nu(b,a)}; +Tw=function(a,b,c){if(b)return a.F&&a.F.stop(),a.remove(),!0;if(a.g("selectable")&&c){b=c.originalEvent.clientX;c=c.originalEvent.clientY;var d=a.ob().Tf(new $.gb(b,c)),e=Pw(a).ia();if(e&&!d)return $.Ld(e,"mouseleave",a.eN,!1,a),a.K=null,!1;if(Xw(a,b,c))return $.Ld(window.document,"mousemove",a.ZN,!1,a),e&&($.Ld(Pw(a).ia(),"mouseenter",a.vY,!1,a),$.Ld(Pw(a).ia(),"mouseleave",a.wY,!1,a)),!1;a.K=null}if(a.g("hideDelay"))return a.tL(),a.F.uq()||a.F.start(),!1;a.remove();return!0}; +$.Sw=function(a){var b=a.Wj();a.title().Wj(b);a.$r().Wj(b);a.background().Wj(b);a.padding().Wj(b)};Pw=function(a){if(!a.Oa){a.Oa=$.ok();$.Bu(a,a.Oa);var b=a.background(),c=a.title(),d=a.$r(),e=a.Ri();b.O(a.Oa);c.O(a.Oa);d.O(a.Oa);e.O(a.Oa)}return a.Oa};$.Iw=function(a,b){return $.p(b)?(a.Ba=b,a):a.Ba};Fw=function(a){return Fca&&a.g("allowLeaveStage")&&a.g("allowLeaveChart")};$.Kw=function(a,b){b=b||[];for(var c in a.j)(0,$.Yw)(b,function(a){return String($.oa(a))==c})||a.j[c].Lc(!0)}; +Zw=function(a){if(a.g("useHtml"))a.P=a.i.sb();else if(!a.P){a.Ri().ka();a.bi();a.Ri().da(!1);var b=a.g("width"),c=a.g("height"),d=(a.ra||$.Iw(a)).ob();b=$.L(b,d.width);c=$.L(c,d.height);d=!(0,window.isNaN)(b);var e=!(0,window.isNaN)(c),f=new $.I(0,0,0,0),h=null,k=null,l=a.title(),m=a.$r(),n=a.Ri();l.ka();m.ka();n.ka();if(!d||!e){if(l.enabled()){"svg"==$.kk?l.ja(null):l.ja(a.ra&&a.ra.O()?a.ra.O().Ka().sb():null);var q=l.g("width");var r=null!=l.nd("width");var t=l.g("height");var u=null!=l.nd("height"); +$.Bo(q)&&(h=q,d?(q=a.padding().Ng(b),l.width(q)):l.width(null));$.Bo(t)&&(k=t,e?(q=a.padding().Yh(c),l.height(q)):l.height(null));t=l.yi();f.width=b||Math.max(f.width,t.width);r?l.width(h):delete l.Pa.width;u?l.height(k):delete l.Pa.height;k=h=null;e||(f.height+=t.height)}if(n.enabled()){var v=(r=a.Y?a.Y.Ri():null)?r.width():void 0;r=r?r.height():void 0;n.ja(null);v=n.width()||v;r=n.height()||r;$.Bo(v)&&(h=v,d?(q=a.padding().Ng(b),n.width(q)):n.width(null));$.Bo(r)&&(k=r,e?(q=a.padding().Yh(c),n.height(q)): +n.height(null));v=n.yi();f.width=b||Math.max(f.width,v.width);h&&n.width(h);k&&n.height(k);e||(f.height+=v.height)}l.enabled()&&l.ja(new $.I(0,0,f.width,t.height));n.enabled()&&n.ja(new $.I(0,0,f.width,v.height));m.enabled()&&(m.ja(l.enabled()||n.enabled()?f:null),t=m.yi(),f.width=b||Math.max(f.width,t.width),e||(f.height+=t.height))}f=a.padding().LY(f);d&&(f.width=b);e&&(f.height=c);f.left=0;f.top=0;a.P=f;l.da(!1);m.da(!1);n.da(!1)}}; +$w=function(a){Zw(a);if(!a.G){var b=a.g("anchor"),c=a.g("useHtml"),d=c?0:a.g("offsetX"),e=c?0:a.g("offsetY");c=c?$.Uf(a.i.Za(),"margin"):new $.kb(0,0,0,0);var f=a.g("x"),h=a.g("y");f=new $.gb(f,h);$.ep(f,b,d+c.left,e+c.top);b=$.Lo(a.P,b);f.x-=b.x;f.y-=b.y;a.G=f}}; +Uw=function(a,b,c,d,e){var f=c,h=d,k=a.g("positionMode")||"float",l=a.g("displayMode"),m=(a.ya()||$.Iw(a)).ob(),n=a.Ba.O().Ka(),q=n.sb();n=$.Zj(n);var r=Fw(b);"float"==k?(f=r?c:c-n.x,h=r?d:d-n.y):"point"==k?(a="union"==l?a.g("position"):b.g("position"),a=e.Bh(a,!0).value,f=r?a.x+n.x:a.x,h=r?a.y+n.y:a.y):"chart"==k&&(f=a.ya().ob(),a="union"==l?a.g("position"):b.g("position"),a=$.Lo(f,a),f=a.x+(r?n.x:0),h=a.y+(r?n.y:0));Gw(b,f,h,n,q,m)}; +ax=function(a){var b=null;$.Iw(a)?b=$.Iw(a).O():a.ya()?b=a.ya().O():a.parent()&&(a=Hw(a),$.Iw(a)?b=$.Iw(a).O():a.ya()&&(b=a.ya().O()));return b};Hw=function(a){for(;a.parent();)a=a.parent();return a}; +Qw=function(a,b){if(b.J(2))if(Fw(b)||"vml"==$.kk){if(b.g("useHtml"))b.i.O($.Vp.body);else{var c=zw.vd();a.f&&a.f.NA()&&b.f.O(null);b.f=c;b.f.O(window.document.body);b.O(c.b);Pw(b).parent(b.O())}b.I(2)}else if(c=ax(b)){var d=c.Ka().Tl();if(b.g("useHtml"))b.i.O(d);else{var e=bx(b);c=cx[e];c||(c=new uw,cx[e]=c);b.f=c;Pw(b).parent(b.O());c.O(d);b.O(c.b)}b.I(2)}}; +Xw=function(a,b,c){if(!a.K)return!1;var d=a.K[0],e=a.K[1],f=a.K[2],h=a.K[3],k=a.K[4],l=a.K[5];a=$.kn(f,h,k,l,b,c);k=$.kn(k,l,d,e,b,c);return $.kn(d,e,f,h,b,c)==a&&a==k};bx=function(a){a=ax(a).Ka();return"stg"+$.oa(a)}; +$.dx=function(){Bv.call(this);this.Ga($.Er.legend);this.ba=this.Ub=null;this.Xa=window.NaN;this.$a=!0;this.B(4294967295);$.Cu(this,this,null,null,null,null,this.Caa,null);$.T(this.ua,[["inverted",16,1],["itemsLayout",4,9],["iconSize",4,9,0,function(){if(null!=this.Ub)for(var a=0,b=this.Ub.length;ab?(v=Math.max(v,n),w+=m,q++,n=e+y,m=k+y):(n+=e+y,m=Math.max(m,k+y)):"vertical-expandable"==x&&(r+k>c?(w=Math.max(w,r),v+=t,u++,t=e+y,r=k+y):(r+=k+y,t=Math.max(t, +e+y))));!d||0>f?f=d=0:d-=y;!h||0>l?l=h=0:h-=y;a.me=u;return"vertical"==x?$.rn(0,0,Math.max(0,f),Math.max(0,h)):"horizontal"==x?$.rn(0,0,Math.max(0,d),Math.max(0,l)):"vertical-expandable"==x?(w=Math.max(w,r)-y,$.rn(0,0,Math.max(0,v+(t-y)),Math.max(0,w))):"horizontal-expandable"==x?(v=Math.max(v,n)-y,$.rn(0,0,Math.max(0,v),Math.max(0,w+(m-y)))):$.rn(0,0,0,0)}; +Hca=function(a){if($.A(a.Ja))return a.Ja;if(null!=a.f){for(var b,c=[],d=0;dc.width&&(f+=h,h=e=0);hx(m,e,f,c);e+=m.ob().Ad()+k;h=Math.max(h,n.qd()+k)}break;case "vertical-expandable":for(h=f=e=0,k=a.g("itemsSpacing"),l=0;lc.height&&(e+=h,h=f=0),hx(m,e,f,c), +f+=m.ob().qd()+k,h=Math.max(h,n.Ad()+k)}if((c=$.Gr(a,"title"))&&c.enabled()&&(c=c.g("orientation")||$.lw(c),"top"!=c&&"bottom"!=c)){d=c=0;if(e=a.Na.Qd)c=e.Kd,d=e.Gd;e=a.jb.yi();e.top+=d;e.left+=c}}a.Xa=b}; +ix=function(a,b){var c=$.N(b.itemIndex);if((0,window.isNaN)(c))return null;var d=b.type;switch(d){case "mouseout":d="legenditemmouseout";break;case "mouseover":d="legenditemmouseover";break;case "mousemove":d="legenditemmousemove";break;case "mousedown":d="legenditemmousedown";break;case "mouseup":d="legenditemmouseup";break;case "click":d="legenditemclick";break;case "dblclick":d="legenditemdblclick";break;default:return null}c=a.g("inverted")?a.Ub.length-1-c:c;var e=null,f=window.NaN,h=a.Ub[c]; +if(h&&a.f)for(var k=0;kf?($.Da(a.f,c,~f),$.Da(a.b,b,~f)):(h=!(a.b[f]&b))?a.b[f]|=b:$.p(d)&&(a.b[f]=d);a.target.enabled()&&a.target.$().select(c)&&(a.target.eh()||"single"!=a.target.Xl()||(k?a.target.nl(b):$.p(d)&&!k&&$.sx(a,window.NaN)&&a.target.nl(d)),h?e=a.target.qk(b,e):$.p(d)&&(e=a.target.qk(d,e)))}return e}; +$.sx=function(a,b){if($.p(b)){if((0,window.isNaN)(b))return!$.ux(a,$.Do)&&!(a.Gc&$.Do);var c=$.vx(a,+b)}else c=a.Gc;return!(c&$.Do)};wx=function(a,b,c,d){if(!a.target.$().select(c))return d;var e=$.Na(a.f,c);b!=$.nm&&(0>e?($.Da(a.f,c,~e),$.Da(a.b,b,~e),a.Gc==$.nm&&(d=a.target.qk(b,d)),$.sx(a,window.NaN)&&!a.target.eh()&&"single"==a.target.Xl()&&a.target.nl(b)):a.b[e]|=b);return d}; +$.yx=function(a,b){var c=$.Co,d;if($.p(b)){if(!(b>=a.target.$().Hb())){var e=a.target.pq();if($.A(b))for($.Pa(b),d=b.length;d--;)e=wx(a,c,+b[d],e);else e=wx(a,c,+b,e);a.target.wm(e)}}else if(a.Gc&c)if(c==$.Co){for(d=a.b.length;d--;)$.xx(a,c,d)&&($.Ca(a.b,d,1),$.Ca(a.f,d,1));a.Gc=$.nm}else c==$.Do&&(a.b.length=0,a.f.length=0,a.Gc=$.nm);else{for(d=a.b.length;d--;)$.xx(a,c,d)&&($.Ca(a.b,d,1),$.Ca(a.f,d,1));a.Gc=c}};$.xx=function(a,b,c){return!(a.b[c]&=~b)}; +$.rx=function(a,b,c,d){var e=a.f[c];$.xx(a,b,c)?($.Ca(a.f,c,1),$.Ca(a.b,c,1),a.target.enabled()&&a.target.$().select(e)&&a.Gc==$.nm&&(d=a.target.qk($.nm,d))):a.target.enabled()&&a.target.$().select(e)&&a.Gc==$.nm&&(d=a.target.qk(a.b[c],d));return d};$.zx=function(a,b,c,d){if((0,window.isNaN)(c))return d;c=$.Na(a.f,c);0<=c&&(d=$.rx(a,b,c,d));return d};$.Ax=function(a,b){for(var c=[],d=0,e=a.b.length;dd){t?r=l[t-1]:r=f;f=new $.Qx;var u=r.kc.replace(q,"");q=r.kc+(c?" ":"");f.text(u);f.style(a.f);n=r.width();u=new $.I(h.left,h.top,n-m,h.height);m=n+=+e;f.Ta=u;f.eb=e;f.j=a.j;a.b.push(f);a.Ta.width=Math.max(a.Ta.width,u.width);a.Ta.height+=u.height}(f=l[l.length-1])&&1<=l.length&&f!= +r&&(u=f.kc.replace(q,""),h=f.Ta,l=new $.I(h.left,h.top,h.width-n,h.height),a.Ta.width=Math.max(a.Ta.width,l.width),a.Ta.height+=l.height,f=new $.Qx,f.text(u),f.Ta=l,f.style(a.f),f.j=a.j,a.b.push(f))}by(a,b)}; +by=function(a,b){var c,d=0;for(c=0;ch&&(d=a.g("from"),e=a.g("to"));f=b.transform(e,0);b=b.transform(d,1);e=Math.min(b,f);var k=Math.max(b,f);(0,window.isNaN)(e)||(0,window.isNaN)(k)||!(0<=k&&1>=e||a.i)||(a.i||(e=$.Za(e,0,1),k=$.Za(k,0,1)),b=a.ja(),d=a.Pp(),a.Ob()?(f=Math.floor(b.Va()-b.height*k),e=Math.ceil(b.Va()-b.height*e),h=b.tb(),k=b.cb(),c.moveTo(h,f).lineTo(k,f).lineTo(k,e).lineTo(h,e).close()):(f= +b.Va(),h=b.Vb(),e=Math.floor(b.tb()+b.width*e),k=Math.ceil(b.tb()+b.width*k),c.moveTo(e,f).lineTo(e,h).lineTo(k,h).lineTo(k,f).close()),a.i||c.clip(d.Ej(b)))}else $.il(2)};$.Wy=function(a){a.F||(a.F=$.qk(),$.Bu(a,a.F));return a.F};$.Yy=function(){$.Y.call(this);$.T(this.ua,[["stroke",0,1],["length",0,9],["position",0,9]]);this.path=$.qk();$.Bu(this,this.path)}; +$.Zy=function(a){if(!a.cp)switch(a.vh){case "top":a.cp=a.f1;break;case "right":a.cp=a.kT;break;case "bottom":a.cp=a.eT;break;case "left":a.cp=a.iT}return a.cp}; +$.$y=function(){this.ka();$.Y.call(this);this.Ga($.Er.axis);this.ci=[];this.Gk=[];this.Od={};this.Od.orientation="top";this.se=980;$.T(this.ua,[["width",this.se,9],["drawFirstLabel",this.se,9,0,function(){this.$d();this.ns()},this],["drawLastLabel",this.se,9,0,function(){this.$d();this.ns()},this],["staggerMode",this.se,9,0,this.$d,this],["overlapMode",this.se,9],["staggerMaxLines",0,0,0,function(){this.$d();this.ns();this.g("staggerMode")&&this.B(this.se,9)},this],["staggerLines",0,0,0,function(){this.$d(); +this.ns();this.g("staggerMode")&&this.B(this.se,9)},this],["orientation",this.se,9,0,this.ns,this],["stroke",this.se,9],["value",this.se,9,void 0,function(){null===this.g("value")?this.zh=void 0:this.zh=25;this.B(8)},this]]);this.da(!1)};$.az=function(a,b){if($.p(b)){var c=a.g("orientation")!=b;a.Od.orientation=b;c&&a.B(a.se)}}; +cz=function(a,b){var c=a.labels().enabled(),d=a.qb().enabled(),e=a.g("staggerMode");if(c||d)if(e)if(a.na)c=a.na;else if(e=a.labels(),(c=a.scale())&&e.enabled()){a.AJ=1;a.G=1;c=c.Ya().get();d=c.length;for(var f,h,k,l,m=0;m$.Oo(e)?a.TH:null,q=a.g("staggerMaxLines"),r=a.g("staggerLines"),t=a.g("drawFirstLabel"),u=a.g("drawLastLabel");e=[];for(m=0;mq?q:a.AJ}else a.G=r;if((null!==r||null!==q&&a.AJ>q)&&"no-overlap"==a.g("overlapMode")){for(f=0;fe&&(e=t);if(m&&!r)for(m=$.C(q)?q.qb:!q,c=k.yb().get(),l=0,b=m.length;lf&&(f=t);return a.j0(e,f,d)+h}; +ez=function(a,b){var c=a.scale();return $.A(b)?(c.transform(b[0],0)+c.transform(b[1],1))/2:c.transform(b,.5)};Tca=function(a,b,c,d,e){var f=$.p(e)?e:a.ob();e=$.p(e)?e:a.line.sb();var h=c?a.Ya():a.yb(),k=c?a.labels():a.qb();c=a.g("stroke");c=$.mp(c);b=ez(a,d[b]);d=k.g("position");h=$.Po(h,$.Oo(d));a=a.GM(f,b,c,h,e);return{value:{x:a.x,y:a.y}}}; +bz=function(a,b,c){var d=!1;switch(a.g("orientation")){case "top":case "bottom":d=b.left>c[0]||b.cb()c[1]||b.Va()c.start?1:a.startc.end?1:a.endc.start?a.sourceIndex>c.sourceIndex?c.end=a.start:(a.start=c.end,a.start>=a.end&&(a.enabled=!1)):a.startc.sourceIndex?(c.start=a.end,c.start>=c.end&&(c.enabled=!1)):a.end=c.start:a.sourceIndex>c.sourceIndex?(c.start=a.end,c.start>=c.end&&(c.enabled= +!1)):(a.end=c.start,a.start>=a.end&&(a.enabled=!1));return b})};$.rz=function(a){var b=new $.qz;b.N(b.oa);b.Yy(a);return b};$.sz=function(){$.Y.call(this);this.Ga("defaultGridSettings");this.j=null;this.GL="horizontal";this.Fa=this.Xb=this.Y=null;this.F={};this.aa=null;$.T(this.ua,[["stroke",16],["fill",4],["drawFirstLine",64],["drawLastLine",64],["isMinor",80,9]])};tz=function(a,b){$.J(b,$.Ws)||$.C(b)&&"range"==b.type?a.Hc($.Ws):($.J(b,$.Ts)||$.C(b)||null==a.Fa)&&a.Hc($.Ts)}; +$.uz=function(a,b){var c=!a.f&&a.GL!=b;a.GL=b;c&&a.B(64)};vz=function(a,b,c){var d=b?a.aa:a.pa;if($.p(c)){var e=c&&$.D(c.Ma)&&c.Ma(),f=(e="stock-scatter-date-time"==e||"stock-ordinal-date-time"==e)?c==d?null:c:$.ut(d,c,null,15,null,a.zg,a);if(f||null===c&&d)c=d==f,f||$.ur(d,a.zg,a),d=f,b?a.aa=d:a.pa=d,f&&!e&&f.da(c),c||a.B(20,9)}}; +$.wz=function(a,b){var c=a.g("fill");if($.D(c)){var d={index:b,grid:a,palette:a.dc()||a.Y.dc()};c=c.call(d)}d=b in a.F?a.F[b.toString()]:a.F[b.toString()]=a.b_();d.fill(c);return d};xz=function(){$.sz.call(this)};yz=function(){$.sz.call(this)};Az=function(){$.qf.call(this);this.ec=$.zz;this.F=this.j=null};$.Dz=function(a){a=$.oa(a);delete Bz[a];$.Jc(Bz)&&Cz&&Cz.stop()};Ez=function(){Cz||(Cz=new vw(function(){Wca()},20));var a=Cz;a.uq()||a.start()}; +Wca=function(){var a=(0,$.Sn)();$.Dc(Bz,function(b){b.tG(a)});$.Jc(Bz)||Ez()};$.Fz=function(a,b,c,d){Az.call(this);if(!$.A(a)||!$.A(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.b=a;this.f=b;this.duration=c;this.K=d;this.coords=[];this.Ld=0};Gz=function(a,b){$.D(a.K)&&(b=a.K(b));a.coords=Array(a.b.length);for(var c=0;cd.bP&&(d.bP=h),he&&(e=~e-1);e=$.Za(e,0,d-1);c=$.Na(c,f,h);0>c&&(c=~c);c=$.Za(c,0,d-1);b.inverted()&&(d=e,e=c,c=d)}else e=c=window.NaN;return[e,c,e,c]};cA=function(a){var b=[],c;for(c in a)b.push(a[c]);return b}; +eA=function(a,b,c){var d=a.fc||$.rn(0,0,0,0),e=d.left,f=d.top,h=d.width,k=d.height;d=$.Zj(a.O().Ka());b-=d.x;c-=d.y;d=a.Ks?(k-(c-f))/k:(b-e)/h;if(be+h||cf+k)return null;e=[];var l=a.nU();f=0;for(h=l.length;f=-e&&c<=1-e}; +$.JA=function(a,b){var c=a.bu(),d=$.p(b)?b:a.oa,e=$.p(b);a.im(d.xGrids,a.lm,c,e);a.im(d.yGrids,a.nm,c,e);a.im(d.xMinorGrids,a.Qr,c,e);a.im(d.yMinorGrids,a.Tr,c,e)};KA=function(a,b){for(var c=0;c(a.prevValue-a.aa||1)*(b-a.aa||1)};bA=function(a,b){return!!((Number(a)||0)&(b||255))}; +TA=function(a){$.V.call(this);this.Sa=a;this.b=null;$.T(this.ua,[["start",0,1],["point",0,1],["updatePoint",0,1],["finish",0,1],["needsZero",0,4],["needsWidth",0,4],["yValues",0,4]])};WA=function(a,b,c,d,e){if(a){var f=void 0;if(e&&(f=c.o("shapes"),!f))return;b=c?new UA(b,c,d||$.nm,f):new VA(b);a.call(b,b)}};VA=function(a){this.series=a;this.seriesState=a.fk()}; +UA=function(a,b,c,d){VA.call(this,a);this.b=b;for(var e=a.Be(),f=0;fn.G[w]?m=n.F[w][n.G[w]]:n.F[w].push(m=v.kS());n.G[w]++;n.i[w].push(m);m=aB(n,q,r,t,u,m,!0);f[l]=m}a.Jb(a.X,f,b);return f}; +cB=function(a,b,c){for(var d in c){var e=a.f[d],f=c[d],h=e.fill(a.X,b),k=e.stroke(a.X,b);f.fill(h);f.stroke(k);e.Ib&&("none"==f.fill()&&"none"==f.stroke()?f.visible(!1):f.visible(!0));e.Ib||$A(a,h,k)}a.Jb(a.X,c,b)};$A=function(a,b,c){a=a.X.$();$.p(b)&&a.o("fill",b);$.p(c)&&a.o("stroke",c)};$.dB=function(a,b,c,d,e,f){$.YA.call(this,a,b,c,d,e,f)};$.eB=function(a,b,c,d,e,f){$.YA.call(this,a,b,c,d,e,f);this.j={}}; +fB=function(a,b,c,d,e){var f=void 0;if(d){var h=a.X.$();f=$.Eo(c);var k=h.get(f);(h=k?k[d]:h.get($.om(c,d)))?f=h:(k=a.X.kd(),h=a.X[f]()[d](),$.D(h)||k?h!=$.oq.themes.defaultTheme.chart.defaultSeriesSettings.base[f][d]||k?f=e?b.fill(a.X,c):b.stroke(a.X,c):(a={sourceColor:a.X.g("color")},f=h.call(a)):f=h)}return f}; +gB=function(a,b,c){c=c||a.f;var d=a.X.$(),e,f,h="",k;for(k in c){var l=a.f[k];var m=l.Zb;var n=fB(a,l,b,l.Yb,!0);m=fB(a,l,b,m);l.Ib||(n&&$.km(n)&&(e=n),m&&$.km(m)&&(f=m));h+=k+$.$l(n)+$.$l(m)}$A(a,e,f);d.o("shapeNames",c);return h};hB=function(a){$.V.call(this);this.Sa=a;this.Fm="both";this.ba=null;this.i=this.j=void 0;this.K=null;this.b=this.f=void 0;this.G=this.aa=10;this.F=this.P="#1D8BD1"};iB=function(a){return $.J(a,$.vt)&&!$.J(a,$.xt)&&"none"==a.jn()}; +jB=function(a){var b=a.hF(),c=a.iF(),d=a.jF(),e=a.bF(),f=a.cF();a=a.fF();e=$.p(f)||$.p(a)||$.Bo(e)||!$.Ko(e);return $.p(c)||$.p(d)||$.Bo(b)||!$.Ko(b)||e};$.kB=function(){Bv.call(this);this.Pa={};$.T(this.ua,[["text",20,9]])}; +$.mB=function(a,b,c,d){$.Y.call(this);this.ya=a;this.jf=b;this.Od={};this.Od.pointWidth="90%";this.Od.isVertical=this.ya.xa();this.Od.minPointLength=0;this.gg=!1;this.kn={};this.eD=this.nA=null;this.re=c;this.ti=null;this.Qx=0;this.kl=null;this.Vj=[];this.eq=!1;this.Cu=new TA(this);$.K(this.Cu,this.Vja,this);$.T(this.ua,[["color",2048,65,4294967295],["xPointPosition",1024,1,4294967295],["pointWidth",1024,1,1024],["maxPointWidth",1024,1,1024],["minPointLength",1024,5,1024,this.yE],["connectMissingPoints", +1024,1,$.lB],["displayNegative",1024,5,2],["stepDirection",1024,1,131072],["isVertical",1024,5,4294967295]]);this.SH();this.Mz(d,!0)};$.nB=function(a){var b=1E-5*a.Wq;b=a.jf.yM(a)+b;a.zh=b}; +oB=function(){return[["fill",0,0,4294967295],["negativeFill",0,0,4294967295],["risingFill",0,0,4294967295],["fallingFill",0,0,4294967295],["stroke",0,0,4294967295],["lowStroke",0,0,4294967295],["highStroke",0,0,4294967295],["lowFill",0,0,4294967295],["highFill",0,0,4294967295],["negativeStroke",0,0,4294967295],["risingStroke",0,0,4294967295],["fallingStroke",0,0,4294967295],["medianStroke",0,0,4294967295],["stemStroke",0,0,4294967295],["whiskerStroke",0,0,4294967295],["hatchFill",0,0,4294967295], +["negativeHatchFill",0,0,4294967295],["risingHatchFill",0,0,4294967295],["fallingHatchFill",0,0,4294967295],["highHatchFill",0,0,4294967295],["lowHatchFill",0,0,4294967295],["whiskerWidth",0,0,256],["type",0,0,8192],["size",0,0,8192],["labels",0,0],["minLabels",0,0],["maxLabels",0,0],["markers",0,0],["outlierMarkers",0,0]]};pB=function(a){return a.check(128)&&a.check(2097152)};$.XA=function(a){return!!a.Cu.g("needsZero")};$.qB=function(a,b){a.Od.pointWidth=String(100*b)+"%"}; +$.rB=function(a,b){a.Od.xPointPosition=b};$.sB=function(a,b){a.Od.type=b;a.ca.Eb().VF=b;a.check(8192)&&a.B(1024)};$.tB=function(a){a.pe||(a.pe=new $.Nw);return a.pe};$.vB=function(a,b,c,d){if(!a)return ada;var e=$.oa(b)+"|"+a+"|"+c+(d?"|"+d:"");d=d||a;var f=uB[e];f||(uB[e]=f=function(e,f,l){l=$.lm(l);return l!=$.nm&&c&&(l=e.sc(a,l,f,b,!1,d),$.p(l))?l:e.sc(a,0,f,b,!1,d)});return f};ada=function(){}; +wB=function(a,b,c,d,e,f){b.ka();if(a.check(e)&&(!1!==b.enabled()||c||d)){if(b.O(a.S1()),a.J(f))return b.clear(),b.ja(a.fa),!0}else b.clear(),b.O(null);b.W();b.da(!1);return!1};xB=function(a,b){var c=b[0],d=b[1]||c;return c.oH()[a]||d.oH()[a]||b[2]&&$.p(b[2][a])||b[3]&&$.p(b[3][a])}; +zB=function(a,b,c,d){var e=b[0],f=e.ip(c);f||(f=e.add(void 0,c));f.jc(d);f.Hi();c=b[1]||e;d=a.$();var h=d.o($.J(a.Rf,$.dB)?"shapes":"shapeNames"),k=a.rr(d.ma());a.Rf.VB(k,h);d=d.o(a.check(8)?"markerStroke":"markerFill");$.p(d)&&(a=e==a.ca.el()?yB(a,d):a.Zv(d),!xB("fill",b)&&$.km(a)&&(f.oJ(a),a=$.Xl(a),!xB("stroke",b)&&$.km(a)&&f.pJ(a)));$.oy(f,c);f.td(b[2],b[3]);return f};bda=function(a,b){(0,$.Pe)(b,function(a){$.J(a,$.Zu)?this.hT(a):a.W();a.da(!1)},a)}; +cda=function(a,b,c,d,e,f,h){c=zB(a,b,c,e);a=zB(a,b,d,f);h&&(c.W(),a.W());return[c,a]};yB=function(a,b){return $.p(b)?b:$.jm("fill",1,!1)(a,$.nm,!0)};dda=function(a,b){return+$.Hc(a.QH,function(a){return(0,$.Yw)(a,function(a){return a==b})})};AB=function(a){a&&(a=a.o("shared"))&&(a.jB=window.NaN,a.dB=window.NaN)}; +CB=function(a){var b=a.gg;if($.da(b)){b=a.Lx.clone();b=$.dp(b,1);var c=b.top,d=b.Va();c=Math.floor(c);d=Math.ceil(d);b.top=c;b.height=d-c;c=b.left;d=b.cb();c=Math.floor(c);d=Math.ceil(d);b.left=c;b.width=d-c;a.check($.BB)&&(b=b.clone(),a=a.ya,c=a.Mh,b.top-=c,b.height+=c,b.width+=a.oi)}return b};$.DB=function(a,b,c){c=c||a.$();b.Li(a.DS(c)).lg(c).Im(a.sF).Dl(a.YT(c));return $.yv(b,a.ym(b,c))};EB=function(a){this.Sa=a;$.Lr.call(this,a.data())}; +$.FB=function(a,b,c,d,e){$.mB.call(this,a,b,c,d);this.state=new $.qx(this);this.Bka=e;$.Dq(this.ua,"xMode",1024,5,4294967295);this.data(null)}; +$.GB=function(a,b,c){if(b){var d={},e=-window.Infinity;b=function(a,b){var c=b.data.x;if(c in d){var h=a[d[c]];a[d[c]]=b}else d[c]=a.length,a.push(b),cc&&(c=~c,0b-a.pd.data[c-1].data.x&&c--)),c):-1}return a.vG.find("x",b)}; +$.KB=function(a,b,c,d,e){var f=a.$();f.reset();for(var h=[];f.advance();){var k=void 0,l=a,m=f,n=b,q=c,r=d,t=e;if($.J(l.Rf,$.dB)&&(k=m.o(l.Rf.P)))a:{var u=void 0;var v=k,w=n;l=q;var x=r,y=t;for(u in v){var B=v[u];if($.J(B,$.hg)&&(B=B.sb(),B.left<=w+x&&w<=B.left+B.width&&B.top<=l+y&&l<=B.top+B.height)){u=!0;break a}}u=!1}else u=m.o(l.Ah.zb+"X"),v=m.o(l.Ah.zb),l.Ah.zb==l.Ah.Ab?u=n<=u&&u<=n+r&&q<=v&&v<=q+t:(w=m.o(l.Ah.Ab+"X"),l=m.o(l.Ah.Ab),u=$.jn([u,v,w,l],[n,q,n+r,q,n+r,q+t,n,q+t]));!u&&(k=m.o("marker"))&& +(u=k.Vd().sb().so(new $.I(n,q,r,t)));u&&h.push(f.ma())}return h};LB=function(a,b){return $.p(b)?(a.pka=!!b,a):a.pka||!1};$.MB=function(a,b,c){if(!a.enabled())return a;$.A(b)?(c||a.ie(),a.state.Lh($.Do,b,c?void 0:$.Co)):$.ea(b)&&a.state.Lh($.Do,b,c?void 0:$.Co);return a}; +$.OB=function(a){$.Y.call(this);this.Ga($.Er.scroller);this.Ja=!1;this.vB=this.dO=this.G=this.ba=this.P=this.b=this.f=this.Aa=null;this.F=0;this.j=NB;this.fa=new $.I(0,0,0,0);this.i=new $.I(0,0,0,0);this.na=this.ea=this.Ba=null;this.Ha=0;this.Xa=this.eb=this.$a=!1;this.Wa=this.aa=null;this.rb=!!a;$.T(this.ua,[["height",4,9],["minHeight",4,9],["maxHeight",4,9],["orientation",196,9],["inverted",16,1],["autoHide",256,9],["fill",16,1],["selectedFill",16,1],["outlineStroke",16,1],["allowRangeChange",0, +0]])};PB=function(a){return a.Ob()?"ew-resize":"ns-resize"};$.QB=function(a,b,c){b=$.Za(Math.round(b*NB),0,NB);c=$.Za(Math.round(c*NB),0,NB);if(b>c){var d=b;b=c;c=d}if(b!=a.F||c!=a.j)a.F=b,a.j=c,a.B(16,1)};RB=function(a){a.Ja||(a.Aa.hc(a.f),a.Aa.hc(a.b),a.Ja=!0)};SB=function(a){a.Ja&&a.K().g("autoHide")&&!a.Ha&&!a.$a&&(a.Aa.removeChild(a.f),a.Aa.removeChild(a.b),a.Ja=!1)}; +TB=function(a,b,c){a=a.K();a.g("enabled")?c?(c=a.lb().g("fill"),a=a.lb().g("stroke")):(c=a.Qa().g("fill"),a=a.Qa().g("stroke")):(c=$.im,a="none");b.fill(c);b.stroke(a)};UB=function(a,b,c,d,e){return a.dispatchEvent(a.L3(c,($.p(d)?d:a.F)/NB,($.p(e)?e:a.j)/NB,b))}; +WB=function(a,b,c){c=VB(a,b,c);var d=a.fa;switch(a.g("orientation")){case "right":case "left":d=(d.top+d.height-c)/d.height;break;default:d=(c-d.left)/d.width}a.g("inverted")&&(d=1-d);if((c=a.g("allowRangeChange"))&&b==a.f)c=d,d=a.j/NB,b="thumb-drag";else if(c&&b==a.b)c=a.F/NB,b="thumb-drag";else{var e=(a.j-a.F)/NB/2;c=d-e;d+=e;b=!0===b?"selected-range-drag":"background-click"}c=$.Za(Math.round(c*NB),0,NB);d=$.Za(Math.round(d*NB),0,NB);c==d&&(d+=dd&&(e=a.f,a.f=a.b,a.b=e,e=a.Ba,a.Ba=a.ea, +a.ea=e,e=c,c=d,d=e);c==a.F&&d==a.j||!UB(a,b,"scrollerchange",c,d)||(a.F=c,a.j=d,a.B(16,1))};VB=function(a,b,c){var d=a.fa,e=a.Ob();a=$.da(b)||!a.g("allowRangeChange")?(a.j-a.F)/NB*(e?d.width:d.height)/2:0;return e?$.Za(c,d.left+a,d.left+d.width-a):$.Za(c,d.top+a,d.top+d.height-a)};XB=function(a,b){var c=(c=a.g("allowRangeChange"))&&b==a.f?a.F:c&&b==a.b?a.j:(a.F+a.j)/2;c/=NB;a.g("inverted")&&(c=1-c);var d=a.fa;return a.Ob()?d.left+d.width*c:d.top+d.height*(1-c)}; +YB=function(a,b,c){$.ag.call(this,b.ia());this.i=a;this.b=c?b:null;this.Qj=void 0;this.rs=(0,$.pa)(function(){this.Qj=void 0;WB(this.i,this.b||!0,this.ba)},this);$.bg(this);this.wa("end",this.Daa)};ZB=function(a){$.V.call(this);this.Ga($.Er.thumbs);this.i=a;$.T(this.ua,[["enabled",80,1],["autoHide",16,1]]);a={};$.T(a,[["fill",16,1],["stroke",16,1]]);this.ca=new $.uy(this,a,$.nm);$.W(this,"normal",this.ca);this.za=new $.uy(this,a,$.Co);$.W(this,"hovered",this.za)};$B=function(){$.OB.call(this)}; +$.aC=function(){$.OB.call(this,!0);this.af="after-axes";$.Dq(this.ua,"position",20,9)};bC=function(a,b){this.F=b;this.ra=a;this.i=0;this.b=1;this.j=!0;this.f=null}; +cC=function(a){var b=a.ra;$z(b);b.J(65536)&&(b.Tq().f||b.Uq().f)&&b.pb();if(a.f)if((b=a.f.scale)||(b=a.ra,b=a.F?b.Ra():b.bb()),a.f.count&&$.J(b,$.$t))b=a.f.count/b.values().length,a.f.ofa?a.BB(1-b,1):a.BB(0,b);else if($.p(a.f.start)&&$.p(a.f.end)&&b){var c=it(b,b.transform(a.f.start,0)),d=it(b,b.transform(a.f.end,1));c>d&&(c=it(b,b.transform(a.f.end,0)),d=it(b,b.transform(a.f.start,1)));a.BB(c,d)}else a.f=null}; +$.dC=function(a){$.EA.call(this,$.p(a)?a:!0);this.Ga("cartesianBase");this.Uc=new bC(this,!0);this.bg=new bC(this,!1);$.T(this.ua,[["zAngle",4,9],["zAspect",4,9],["zDistribution",131076,9],["zPadding",4,9]])};eC=function(a,b){var c="before-axes"==a.g("position");a.padding(0);a.ja(b);var d=a.Ob(),e=window.NaN;c?e=d?b.height-a.zd().height:b.width-a.zd().width:b=a.zd();return{y0:b,C5:e}}; +fC=function(a,b,c,d){if("before-axes"==c.g("position"))switch(c.g("orientation")){case "top":c.padding().top(b[0]+(a.eb||0));c.padding().bottom(0);b[0]+=d;break;case "bottom":c.padding().top(0);c.padding().bottom(b[2]+(a.Ha||0));b[2]+=d;break;case "left":c.padding().left(b[3]+(a.Ja||0));c.padding().right(0);b[3]+=d;break;case "right":c.padding().left(0),c.padding().right(b[1]+(a.$a||0)),b[1]+=d}c.Ob()?(c.padding().left(b[3]),c.padding().right(b[1])):(c.padding().top(b[0]),c.padding().bottom(b[2])); +return b};$.gC=function(a,b){this.f={};this.b=[];this.i=0;var c=arguments.length;if(1=a.b||e>=a.b&&u<=a.b;v?(v=FC(a,d,e,m,n,t,u),l=v.dP,a.f("c",l[2],l[3],l[4],l[5],"bc",l[4],a.i), +GC(a,v),DC(a),a.f("bs",l[4],a.i,l[4],l[5],"c",l[6],l[7],l[8],l[9],"c",q,r,f,h),k.push(l[0],l[1],l[2],l[3],l[4],l[5]),k.push(l[4],l[5],l[6],l[7],l[8],l[9]),k.push(t,u,q,r,f,h)):(v=FC(a,t,u,q,r,f,h),l=v.dP,a.f("c",m,n,t,u,"c",l[2],l[3],l[4],l[5],"bc",l[4],a.i),GC(a,v),DC(a),a.f("bs",l[4],a.i,l[4],l[5],"c",l[6],l[7],l[8],l[9]),k.push(d,e,m,n,t,u),k.push(l[0],l[1],l[2],l[3],l[4],l[5]),k.push(l[4],l[5],l[6],l[7],l[8],l[9]))}else a.f("c",m,n,t,u,"c",q,r,f,h),k.push(d,e,m,n,t,u,t,u,q,r,f,h);a.ba=(b-f)*a.Ja; +a.ea[0]=a.j[0]*a.ba;a.ea[1]=a.j[1]*a.ba;d=k;a.na=a.F;a.Ba=a.G;a.F=b;a.G=c;break;case 2:if(a.F==b&&a.G==c)break;f=a.na;h=a.Ba;d=a.F;k=a.G;EC(a,f,h,d,k,b,c);e=[];n=(d-f)*a.Ja;m=d-a.j[0]*n;n=k-a.j[1]*n;a.P?(f=FC(a,f,h,m,n,d,k),h=f.dP,a.f("bs",h[0],a.i,h[0],h[1],"c",h[2],h[3],h[4],h[5],"bc",h[4],a.i),GC(a,f),DC(a),a.f("bs",h[4],a.i,h[4],h[5],"c",h[6],h[7],h[8],h[9]),e.push(h[0],h[1],h[2],h[3],h[4],h[5]),e.push(h[4],h[5],h[6],h[7],h[8],h[9])):(a.f("bs",f,a.i,f,h,"c",m,n,d,k),e.push(f,h,m,n,d,k));a.ba= +(b-d)*a.Ja;a.ea[0]=a.j[0]*a.ba;a.ea[1]=a.j[1]*a.ba;d=e;a.na=a.F;a.Ba=a.G;a.F=b;a.G=c;a.ec=3;break;case 1:if(a.na==b&&a.Ba==c)break;a.F=b;a.G=c;a.ec=2;break;case 0:a.na=b,a.Ba=c,a.ec=1}return d}; +IC=function(a){var b=null;switch(a.ec){case 3:var c=a.na,d=a.Ba,e=a.F,f=a.G;b=[];var h=c+a.ea[0];var k=d+a.ea[1];a.P?(c=FC(a,c,d,h,k,e,f),d=c.dP,a.f("c",d[2],d[3],d[4],d[5],"bc",d[4],a.i),GC(a,c),DC(a),a.f("bs",d[4],a.i,d[4],d[5],"c",d[6],d[7],d[8],d[9],"bc",d[8],a.i),b.push(d[0],d[1],d[2],d[3],d[4],d[5]),b.push(d[4],d[5],d[6],d[7],d[8],d[9])):(a.f("c",h,k,e,f,"bc",e,a.i),b.push(c,d,h,k,e,f));if(a.Wh.length){for(c=0;ca.Ja?-1:1,a.j[1]=0):KC(a.j,a.Xa[0],a.Xa[1],a.$a[0],a.$a[1])}; +FC=function(a,b,c,d,e,f,h){var k=0,l=0,m=0,n=0,q=0,r=0,t={};if($.A(a.b)){var u=[];var v=!1;for(var w=a.b.length-1;0=wa&&(wa=xn(xn(O,x,wa),xn(x,y,wa),wa),B.x==F.x?G.y<=wa.y&&wa.y<=M.y&&w.push(wa):B.y==F.y?G.x<=wa.x&&wa.x<=M.x&&w.push(wa):wa.x>=G.x&&wa.y>=G.y&&wa.x<=M.x&&wa.y<=M.y&&w.push(wa));F=(O=w[0])?nn(b,c,d,e,f,h,O.x,O.y):.5}G=1-F;x=b*G+d*F;y=c*G+e*F;B=d*G+f*F;F=e*G+h*F;O?(d=O.x,e=O.y):e=d=window.NaN;t.dP=[b,c,x,y,d,e,B,F,f,h];$.A(a.b)&&(G=1-v,x=k*G+m*v,y=l*G+n*v,O?(d=O.x,e=O.y):e=d=window.NaN,u.push(d,e,m*G+q*v,n*G+r*v,q,r),t.$da=u,t.Wh||(t.Wh=[]),t.Wh.push(k,l,x,y, +d,e));return t};GC=function(a,b){var c=b.$da,d=b.Wh;if(c)for(var e=c.length-1;0>>0);aaa=0;$.Sn=Date.now||function(){return+new Date};var jk,wk=null;$.H(ta,Error);ta.prototype.name="CustomError";var ue;$.za=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if($.z(a))return $.z(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;cc&&(c=Math.max(0,a.length+c));if($.z(a))return $.z(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1}; +$.Pe=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=$.z(a)?a.split(""):a,f=0;f>>0).toString(16);$.ac.prototype.b="ac_uid_"+(1E9*Math.random()>>>0);var iaa,jaa,kaa,laa,maa,naa,haa,rc,qc,oaa;$.vc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};iaa=/&/g;jaa=//g;laa=/"/g;maa=/'/g;naa=/\x00/g;haa=/[\x00&<>"']/;rc={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"};qc={"'":"\\'"};oaa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Bc;a:{var YD=$.fa.navigator;if(YD){var ZD=YD.userAgent;if(ZD){Bc=ZD;break a}}Bc=""};var Rc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Yc[" "]=$.ia;var Nca,lda,mda,nda,oda;$.yd=$.Cc("Opera");$.hd=$.Uc();$.Rp=$.Cc("Edge");$.kda=$.Rp||$.hd;$.gd=$.Cc("Gecko")&&!(-1!=Bc.toLowerCase().indexOf("webkit")&&!$.Cc("Edge"))&&!($.Cc("Trident")||$.Cc("MSIE"))&&!$.Cc("Edge");$.xd=-1!=Bc.toLowerCase().indexOf("webkit")&&!$.Cc("Edge");$.Ad=$.Cc("Macintosh");$.ZC=$.Cc("Windows");Nca=$.Cc("Linux")||$.Cc("CrOS");lda=$.Cc("Android");mda=Wc();nda=$.Cc("iPad");oda=$.Cc("iPod");$.pda=Xc(); +a:{var $D="",aE=function(){var a=Bc;if($.gd)return/rv:([^\);]+)(\)|;)/.exec(a);if($.Rp)return/Edge\/([\d\.]+)/.exec(a);if($.hd)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if($.xd)return/WebKit\/(\S+)/.exec(a);if($.yd)return/(?:Version)[ \/]?(\S+)/.exec(a)}();aE&&($D=aE?aE[1]:"");if($.hd){var bE=$c();if(null!=bE&&bE>(0,window.parseFloat)($D)){$.ad=String(bE);break a}}$.ad=$D}var qaa={},cE;var dE=$.fa.document;cE=dE&&$.hd?$c()||("CSS1Compat"==dE.compatMode?(0,window.parseInt)($.ad,10):5):void 0; +var cd=cE;var saa={0:"Can't find an error message that corresponds to the specified error code",1:"Requested stage type is not supported",2:"Container should be defined to render stage",3:"Stage should have a DOM element",4:"Unable to set the parent component",5:"Trying to perform an operation with the disposed element",6:"Synchronous rendering didn't clean up all dirty states",7:"Can't add an element constructed by another Stage",8:"Wrong arguments passed to swapChildren",9:"Path must start with moveTo command", +10:"Method must be implemented",11:"Missing required parameter",12:"Parameter type mismatch",13:"Required parameter is null or undefined",14:"Invalid number of parameters",15:"Sorry, this feature in not supported in VML oriented browsers"};var uaa=!$.hd||$.dd(9),Xd=!$.hd||$.dd(9),qda=$.hd&&!$.bd("9"),zaa=function(){if(!$.fa.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});$.fa.addEventListener("test",$.ia,b);$.fa.removeEventListener("test",$.ia,b);return a}();var md=0,nd={};$.od.prototype.md=!1;$.od.prototype.ld=function(){if(!this.md&&(this.md=!0,this.R(),0!=md)){var a=$.oa(this);if(0!=md&&this.bv&&0=a.keyCode)a.keyCode=-1}catch(b){}};$.Bd.prototype.H1=ba(0);var Dd="closure_listenable_"+(1E6*Math.random()|0),waa=0;Hd.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.b[f];a||(a=this.b[f]=[],this.f++);var h=Jd(a,b,d,e);-1>>0);$.E("acgraph.events.listen",$.Ld);$.E("acgraph.events.listenOnce",Kd);$.E("acgraph.events.unlisten",$.Yd);$.E("acgraph.events.unlistenByKey",Zd);$.E("acgraph.events.removeAll",$.$d);var Baa=!$.hd||$.dd(9),Caa=!$.gd&&!$.hd||$.hd&&$.dd(9)||$.gd&&$.bd("1.9.1"),eE=$.hd&&!$.bd("9"),Daa=$.hd||$.yd||$.xd;$.he.prototype.Ay=!0;$.he.prototype.cu=function(){return this.b};$.he.prototype.toString=function(){return"Const{"+this.b+"}"};$.ge={};$.ie("");$.ke.prototype.Ay=!0;$.ke.prototype.cu=function(){return this.f};$.ke.prototype.gV=!0;$.ke.prototype.b=ba(2);$.je={};$.le("about:blank");$.ne.prototype.Ay=!0;$.me={};$.ne.prototype.cu=function(){return this.b};$.rda=$.oe("");$.fE=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g");$.sda=RegExp("\\b(hsl|hsla|rgb|rgba|matrix|(rotate|scale|translate)(X|Y|Z|3d)?)\\([-0-9a-z.%, ]+\\)","g");$.qe.prototype.gV=!0;$.qe.prototype.b=ba(1);$.qe.prototype.Ay=!0;$.qe.prototype.cu=function(){return this.f};$.pe={};$.re("",0);$.re("",0);$.re("
",0);var Be={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},Eaa={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},mf={IMG:" ",BR:"\n"};$.g=se.prototype;$.g.Za=function(a){return $.ze(this.b,a)};$.g.getElementsByTagName=function(a,b){return(b||this.b).getElementsByTagName(String(a))}; +$.g.Ac=function(a,b,c){return Le(this.b,arguments)};$.g.createElement=function(a){return $.Re(this.b,a)};$.g.appendChild=$.Se;$.g.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; +$.g.Gi=$.Ve;$.g.Wga=$.We;$.g.Sl=$.Ze;$.g.U1=$.$e;$.g.ZH=$.af;$.H(nf,$.od);var gE=[];$.g=nf.prototype;$.g.wa=function(a,b,c,d){$.A(b)||(b&&(gE[0]=b.toString()),b=gE);for(var e=0;ethis.P)if(this.dispatchEvent(new dg("start",this,a.clientX,a.clientY,a)))this.kp=!0;else{this.md||this.dy(a);return}}c=cg(this,b,c);b=c.x;c=c.y;this.kp&&this.dispatchEvent(new dg("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(eg(this,a,b,c),a.preventDefault())}}; +$.g.cja=function(a){var b=cg(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;eg(this,a,b.x,b.y)};$.g.VA=function(a){var b=this.f,c=(0,window.isNaN)(b.left)?null:b.left;b=(0,window.isNaN)(b.width)?0:b.width;return Math.min(null!=c?c+b:window.Infinity,Math.max(null!=c?c:-window.Infinity,a))};$.g.My=function(a){var b=this.f,c=(0,window.isNaN)(b.top)?null:b.top;b=(0,window.isNaN)(b.height)?0:b.height;return Math.min(null!=c?c+b:window.Infinity,Math.max(null!=c?c:-window.Infinity,a))}; +$.g.ar=function(){this.deltaX=this.target.offsetLeft;this.deltaY=this.target.offsetTop};$.g.ls=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};$.H(dg,td);$.H(fg,$.ag);$.g=fg.prototype;$.g.Tja=function(){return this.i.dispatchEvent("earlycancel")};$.g.LO=function(a){return this.i.dispatchEvent(new dg(a.type,this,a.clientX,a.clientY,a.EC,a.left,a.top,a.j))};$.g.LX=function(a){this.f=a||new $.I(window.NaN,window.NaN,window.NaN,window.NaN)};$.g.ar=function(){this.deltaX=this.i.E1();this.deltaY=this.i.G1()}; +$.g.VA=function(){this.b[0]=this.deltaX;this.b[1]=this.deltaY;if(!(0,window.isNaN)(this.f.left)||!(0,window.isNaN)(this.f.top)){var a=this.i.parent().Ig();a&&og(this.i.parent()).transform(this.b,0,this.b,0,1);var b=this.f,c=(0,window.isNaN)(b.left)?null:b.left,d=(0,window.isNaN)(b.width)?0:b.width,e=(0,window.isNaN)(b.top)?null:b.top;b=(0,window.isNaN)(b.height)?0:b.height;d-=this.i.Ad();b-=this.i.qd();b=null!=e?e+b:window.Infinity;e=null!=e?e:-window.Infinity;this.b[0]=Math.min(null!=c?c+d:window.Infinity, +Math.max(null!=c?c:-window.Infinity,this.b[0]));this.b[1]=Math.min(b,Math.max(e,this.b[1]));a&&a.transform(this.b,0,this.b,0,1)}return this.b[0]};$.g.My=function(){return this.b[1]};$.g.ls=function(a,b){var c=og(this.i.parent());if(c){var d=[a,b];c.transform(d,0,d,0,1);a=d[0];b=d[1]}this.i.setPosition(a,b)};$.H($.hg,$.qf);var gg=4294967295;$.g=$.hg.prototype;$.g.DG=!1;$.g.YC=!1;$.g.mx=null;$.g.nx=null;$.g.zv=null;$.g.Av=null;$.g.rw=!1;$.g.VC=null;$.g.iE=null;$.g.Jd=null;$.g.Y=null;$.g.lB=null;$.g.hj=!0;$.g.ti=null;$.g.QL=!1;$.g.Qd=null;$.g.XG=null;$.g.UY=0;$.g.jl=506631;$.g.XC=0;$.g.id=function(a){if($.p(a))return a=a||"",this.fe!=a&&(this.fe=a,this.Qb(2048)),this;$.p(this.fe)||this.id(bc($.ac.vd(),this));return this.fe};$.g.Ka=function(){var a=this.parent();return a?a.Ka():null};$.g.ia=function(){return this.Jd}; +$.g.parent=function(a){if($.p(a)){if(a){if(a!=this.Y){var b=this.Ka();b=b&&b!=a.Ka();a.hc(this);b&&this.EO()}}else this.remove();return this}return this.Y};$.g.EO=function(){var a=this.clip();a&&a.id(null);this.Qb(536)};$.g.dN=function(){return!!this.Y};$.g.remove=function(){this.Y&&this.Y.removeChild(this);return this};$.g.title=function(a){return $.p(a)?(this.nx!=a&&(this.nx=a,this.Qb(65536)),this):this.nx};$.g.ZS=function(a){return $.p(a)?(this.Av!=a&&(this.Av=a,this.Qb(131072)),this):this.Av}; +$.g.Dd=function(a,b){return $.p(b)?(this.BC[a]!==b&&(this.BC[a]=b,this.Qb(262144)),this):a in this.BC?this.BC[a]:$.mg().getAttribute(this.Jd,a)};$.g.cursor=function(a){return $.p(a)?(this.VC=a,this.sG(),this):this.VC};$.g.sG=function(){this.Qb(4096)};$.g.yr=function(){return!!this.XC};$.g.Vf=function(a){return!!(this.XC&a)};$.g.suspend=function(){this.FV=!0};$.g.resume=function(){this.FV=!1;this.Qb(this.FP);this.FP=0}; +$.g.Qb=function(a){if(a&=this.jl)this.FV?this.FP|=a:(this.XC|=a,this.Y&&this.Y.Qb(64),a=this.Ka(),!a||a.yf()||a.wN()||this.wN()||this.Td())};$.g.gl=function(a){this.Y&&this.Y==a||(this.lB?this.lB==a&&(this.lB=null):this.lB=this.Y,this.Y=a,this.kb(a));return this};$.g.qv=$.ia;$.g.Mr=function(){this.sV=this.XG=null;this.$d();this.Qb(4);ng(this)};$.g.Uy=function(){this.XG=null;this.$d();$.mg().OI()&&this.Qb(256);ng(this)};$.g.Ig=function(){if(!this.XG){var a=this.Y?this.Y.Ig():null;this.XG=yb(a,this.Qd)}return this.XG}; +$.g.rotate=function(a,b,c){this.qv();a=$.Kb($.bb(a),b||0,c||0);this.Qd?$.Hb(this.Qd,a):this.Qd=a;this.Mr();return this};$.g.Du=function(a,b){var c=Lb(this.sb(),b||"center");return this.rotate(a,c[0],c[1])};$.g.JE=function(a,b,c){return this.rotate(a-this.tD(),b,c)};$.g.gP=function(a,b){return this.Du(a-this.tD(),b)};$.g.translate=function(a,b){this.qv();this.Qd?this.Qd.translate(a,b):this.Qd=(new $.Db).setTransform(1,0,0,1,a,b);this.Mr();return this}; +$.g.setPosition=function(a,b){var c=[a,b,this.Gh(),this.As()];this.Qd&&$.Jb(this.Qd).transform(c,0,c,0,2);return this.translate(c[0]-c[2],c[1]-c[3])};$.g.uka=function(a,b){this.qv();if(this.Qd){var c=this.Qd.Kd,d=this.Qd.Gd;if(a==c&&b==d)return this;$.Fb(this.Qd,a-c,b-d)}else this.Qd=(new $.Db).setTransform(1,0,0,1,a,b);this.Mr();return this};$.g.scale=function(a,b,c,d){this.qv();this.Qd||(this.Qd=new $.Db);$.Eb(this.Qd,a,b);$.Fb(this.Qd,(c||0)*(1-a),(d||0)*(1-b));this.Mr();return this}; +$.g.XO=function(a,b,c){c=Lb(this.sb(),c||"center");return this.scale(a,b,c[0],c[1])};$.g.QF=function(a,b,c,d,e,f){this.qv();this.Qd?$.wb(this.Qd,new $.Db(a,b,c,d,e,f)):this.Qd=new $.Db(a,b,c,d,e,f);this.Mr();return this};$.g.pc=function(a,b,c,d,e,f){this.qv();this.Qd?this.Qd.setTransform(a,b,c,d,e,f):this.Qd=new $.Db(a,b,c,d,e,f);this.Mr();return this};$.g.tD=function(){return $.Cb(this.Qd)}; +$.g.jp=function(){return this.Qd?[this.Qd.od,this.Qd.We,this.Qd.gf,this.Qd.Ke,this.Qd.Kd,this.Qd.Gd]:[1,0,0,1,0,0]};$.g.Ac=function(a){var b=this.Ka(),c;if(c=b)c=kE,c=c==kE||2==c||3==c?0f;n+=m)switch((Math.floor(n/90)+4)%4){case 0:h.push(a+c);break;case 1:k.push(b+d);break;case 2:h.push(a-c);break;case 3:k.push(b-d)}l.left=Math.min.apply(null,h);l.width=Math.max.apply(null,h)-l.left;l.top=Math.min.apply(null,k);l.height=Math.max.apply(null,k)-l.top;$.pb(this.rect,l)};qE=sE; +$.sg.prototype.Jg=function(){var a=0;if(this.Uj())return a;var b=[];this.LT(function(c,d){if(1!=c){var e=$.Ja(b,b.length-2);if(4==c){var f=6;d=$.tb(e[0]-$.db(d[2],d[0]),e[1]-$.eb(d[2],d[1]),d[0],d[1],d[2],d[3])}else 2==c?f=2:3==c&&(f=6);for(var h=0,k=d.length-(f-1);h=q;q++){m=q/100;var u={x:0,y:0};if(0===m)n.push(t[0]);else if(1===m)n.push(t[r]); +else{var v=t,w=1-m;if(1===r)m={x:w*v[0].x+m*v[1].x,y:w*v[0].y+m*v[1].y},n.push(m);else if(4>r){var x=w*w,y=m*m,B=0;if(2===r){v=[v[0],v[1],v[2],u];var F=x;var G=w*m*2;var M=y}else 3===r&&(F=x*w,G=x*m*3,M=w*y*3,B=m*y);m={x:F*v[0].x+G*v[1].x+M*v[2].x+B*v[3].x,y:F*v[0].y+G*v[1].y+M*v[2].y+B*v[3].y};n.push(m)}else{for(v=JSON.parse(JSON.stringify(t));1d.length?d=c=f=e=(0,window.parseFloat)(d[0]):(e=(0,window.parseFloat)(d[0]),f=(0,window.parseFloat)(d[1]),c=(0,window.parseFloat)(d[2]),d=(0,window.parseFloat)(d[3]));this.P[0]=e?e:0;this.K[0]=e?a:void 0;this.P[1]=f?f:0;this.K[1]=f?a:void 0;this.P[2]=c?c:0;this.K[2]=c?a:void 0;this.P[3]=d?d:0;this.K[3]=d?a:void 0};$.g.round=function(a,b,c,d){$.Ca(arguments,0,0,"round");this.GX.apply(this,arguments);Bg(this);return this}; +$.g.eka=function(a,b,c,d){$.Ca(arguments,0,0,"round-inner");this.GX.apply(this,arguments);Bg(this);return this};$.g.bea=function(a,b,c,d){$.Ca(arguments,0,0,"cut");this.GX.apply(this,arguments);Bg(this);return this};$.g.qe=function(a){Cg.u.qe.call(this,a);this.Ho(a.x).Io(a.y).Go(a.width).Fo(a.height);a.cornerTypes&&(this.K=Vb(a.cornerTypes,4),a=Vb(a.cornerSizes,4),(0,$.Pe)(a,function(a,c,d){d[c]=(0,window.parseFloat)(a)}),this.P=a,Bg(this))}; +$.g.D=function(){var a=Cg.u.D.call(this);a.type="rect";a.x=this.b.left;a.y=this.b.top;a.width=this.b.width;a.height=this.b.height;a.cornerTypes=this.K.join(" ");a.cornerSizes=this.P.join(" ");return a};$.g.R=function(){this.b=this.K=this.P=null;this.$d();Cg.u.R.call(this)};var uE=Cg.prototype;$.E("acgraph.vector.Rect",Cg);uE.setX=uE.Ho;uE.setY=uE.Io;uE.setWidth=uE.Go;uE.setHeight=uE.Fo;uE.setBounds=uE.Qf;uE.cut=uE.bea;uE.round=uE.round;uE.roundInner=uE.eka;$.H($.Dg,$.od);$.Dg.prototype.j=function(a){return $.p(a)?(this.f=a,this.i&&(a=this.f,a.yf()?a.Px.push(this):this.Td()),this):this.f};var vE={rect:Cg,circle:$.rg,ellipse:qg,path:$.Ag};$.g=$.Dg.prototype; +$.g.shape=function(a,b,c,d){if(arguments.length){if($.J(a,$.pg))if(this.b){var e=!1;for(h in vE){var f=vE[h];if($.J(this.b,f)&&$.J(a,f)){e=!0;break}}e?this.b.qe(a.D()):(this.b.parent(null),this.b=a,this.b.parent(this))}else this.b=a,this.b.parent(this);else{if($.J(a,$.I)){e=a.left;var h=a.top;f=a.width;var k=a.height}else $.A(a)?(e=null!=a[0]?a[0]:0,h=null!=a[1]?a[1]:0,f=null!=a[2]?a[2]:0,k=null!=a[3]?a[3]:0):$.C(a)?(e=null!=a.left?a.left:0,h=null!=a.top?a.top:0,f=null!=a.width?a.width:0,k=null!= +a.height?a.height:0):(e=null!=a?a:0,h=null!=b?b:0,f=null!=c?c:0,k=null!=d?d:0);this.b?$.J(this.b,Cg)?this.b.Ho(e).Io(h).Go(f).Fo(k):(this.b.parent(null),this.b=$.mk(e,h,f,k),this.b.parent(this)):(this.b=$.mk(e,h,f,k),this.b.parent(this))}return this}return this.b};$.g.yr=function(){return this.i};$.g.id=function(a){return $.p(a)?(this.fe=a,this):this.fe};$.g.Td=function(){this.i=!1;if(this.fe){$.mg();var a=this.shape();if(a.ia())this.shape().Td();else{var b=ck(this.Ka().vn,this);a.Td();a=a.ia();b.appendChild(a)}}}; +$.g.D=function(){return this.b.D()};$.g.qe=function(a){var b=vE[a.type];b&&(b=new b,b.qe(a),this.shape(b))};$.g.hc=function(a){a.remove();a.gl(this);Eg(this);kg(a,!0);return this};$.g.removeChild=function(a){a.gl(null);var b=a.ia();b&&$.Xe(b);Eg(this);kg(a,!1);return a};$.g.Ig=function(){return null};$.g.UI=function(){};$.g.Ka=function(){return this.j()};$.g.Qb=function(){Eg(this)};$.g.ld=function(){$.Dg.u.ld.call(this)}; +$.g.R=function(){this.f&&$.Fa(this.f.Px,this);$.mg().X0(this);this.b.ld();delete this.f;delete this.fe;delete this.elements;delete this.i;delete this.b;$.Dg.u.R.call(this)};var wE=$.Dg.prototype;wE.shape=wE.shape;wE.dispose=wE.ld;$.H($.Fg,$.hg);$.g=$.Fg.prototype;$.g.Sm=function(){return"layer"};$.g.jl=$.hg.prototype.jl|224;$.g.EO=function(){for(var a=0;aa||a>=this.cc()||0>b||b>=this.cc())throw $.ld(8);if(a!=b){var c=this.children[a];this.children[a]=this.children[b];this.children[b]=c;this.Qb(128)}return this};$.g.bN=function(a){return!!a&&$.Aa(this.children,a)};$.g.cc=function(){return this.children.length};$.g.Pj=function(a,b){$.p(b)||(b=this);(0,$.Pe)(this.children,a,b);return this};$.g.Cd=function(){var a=$.ok();a.parent(this);return a};$.g.UP=function(){var a=$.uk();a.parent(this);return a}; +$.g.text=function(a,b,c,d){a=$.sk(a,b);d&&a.style(d);c&&a.text(c);a.parent(this);return a};$.g.hN=function(a,b,c,d){a=$.sk(a,b);d&&a.style(d);c&&a.htmlText(c);a.parent(this);return a};$.g.rect=function(a,b,c,d){a=$.mk(a,b,c,d);a.parent(this);return a};$.g.xk=function(a,b,c,d,e){a=rk(a,b,c,d,e);a.parent(this);return a};$.g.RO=function(a,b){$.Da(arguments,this.path(),0);return zi.apply(this,arguments).parent(this)};$.g.QO=function(a,b){$.Da(arguments,this.path(),0);return Ai.apply(this,arguments).parent(this)}; +$.g.SP=function(a,b){$.Da(arguments,this.path(),0);return yi.apply(this,arguments).parent(this)};$.g.rn=function(a,b,c){a=$.nk(a,b,c);a.parent(this);return a};$.g.ellipse=function(a,b,c,d){a=$.pk(a,b,c,d);a.parent(this);return a};$.g.path=function(){return $.qk().parent(this)};$.g.tP=function(a,b,c,d,e,f,h){return gi(this.path(),a,b,c,d,e,f,h).parent(this)};$.g.vP=function(a,b,c){return hi(this.path(),a,b,c).parent(this)};$.g.wP=function(a,b,c){return ii(this.path(),a,b,c).parent(this)}; +$.g.xP=function(a,b,c){return ji(this.path(),a,b,c).parent(this)};$.g.yP=function(a,b,c){return ki(this.path(),a,b,c).parent(this)};$.g.uP=function(a,b,c){return li(this.path(),a,b,c).parent(this)};$.g.RP=function(a,b,c){return mi(this.path(),a,b,c).parent(this)};$.g.OP=function(a,b,c){return ni(this.path(),a,b,c).parent(this)};$.g.QP=function(a,b,c){return oi(this.path(),a,b,c).parent(this)};$.g.PP=function(a,b,c){return pi(this.path(),a,b,c).parent(this)}; +$.g.PL=function(a,b,c){return qi(this.path(),a,b,c).parent(this)};$.g.xL=function(a,b,c){return ri(this.path(),a,b,c).parent(this)};$.g.OL=function(a,b,c){return si(this.path(),a,b,c).parent(this)};$.g.$M=function(a,b,c){return ti(this.path(),a,b,c).parent(this)};$.g.YP=function(a,b,c){return ui(this.path(),a,b,c).parent(this)};$.g.qg=function(a,b,c,d,e){return vi(this.path(),a,b,c,d,e).parent(this)};$.g.UL=function(a,b,c,d,e,f){return $.wi(this.path(),a,b,c,d,e,f).parent(this)};$.g.Ft=function(){return $.mg().Wo()}; +$.g.jk=function(){this.Vf(32)&&this.Dp();var a=this.Ka();a=a.xF(Math.floor(Math.max(500-a.ks,0)/3));this.Vf(64)&&Hg(this);var b=this.Ka();b.ks-=a;if(this.Vf(128)&&(a=this.Ka().xF(this.children.length+this.ir.length+1),b=Haa(this,a),bd;d++){c=!1;for(var e=0;4>e;e++){c=!c;for(var f=0;4>f;f++)c&&Pg(this,a,a,e*a+d*this.size/2,f*a+this.size/2),c=!c}}},"solid-diamond":function(){Xg(this,[[this.size/2,0,0,this.size/2,this.size/2,this.size,this.size,this.size/2,this.size/2,0]],!0,!0)},"dashed-forward-diagonal":function(){Yg(this,[0,0,this.size/2,this.size/2,this.Ef])},"dashed-backward-diagonal":function(){Yg(this,[this.size/2,0,0,this.size/ +2,this.Ef])},"dashed-horizontal":function(){Yg(this,[0,0,this.size/2,0,this.Ef,this.size/2,this.size/2,this.size,this.size/2,this.Ef])},"dashed-vertical":function(){Yg(this,[0,0,0,this.size/2,this.Ef,this.size/2,this.size/2,this.size/2,this.size,this.Ef])},divot:function(){var a=.1*this.size,c=this.size*(.8-.2)/2;Xg(this,[[a+c,a,a,a+c/2,a+c,a+c],[this.size-a-c,this.size-a-c,this.size-a,this.size-a-c/2,this.size-a-c,this.size-a]])},"zig-zag":function(){Xg(this,[[0,0,this.size/2,this.size/2,this.size, +0],[0,this.size/2,this.size/2,this.size,this.size,this.size/2]])},weave:function(){Xg(this,[[0,0,this.size/2,this.size/2,this.size,0],[0,this.size/2,this.size/2,this.size,this.size,this.size/2],[this.size/2,this.size/2,3*this.size/4,3*this.size/4],[this.size,this.size/2,3*this.size/4,this.size/4]])}};a["percent-05"]=$.qa(Og,8,8,[0,0,4,4]);a["percent-10"]=$.qa(Og,8,4,[0,0,4,2]);a["percent-20"]=$.qa(Og,4,4,[0,0,2,2]);a["percent-25"]=$.qa(Og,4,2,[0,0,2,1]);a["percent-30"]=$.qa(Og,4,4,[0,0,2,0,3,1,0, +2,2,2,1,3]);a["percent-40"]=$.qa(Og,4,8,[0,0,2,0,3,1,0,2,2,2,1,3,3,3,0,4,2,4,1,5,3,5,0,6,2,6,1,7,3,7]);a["percent-50"]=$.qa(Og,2,2,[0,0,1,1]);a["percent-60"]=$.qa(Og,4,4,[0,0,2,0,0,1,1,1,3,1,0,2,2,2,1,3,2,3,3,3]);a["percent-70"]=$.qa(Og,4,4,[0,0,2,0,3,0,0,1,1,1,2,1,0,2,2,2,3,2,0,3,1,3,2,3]);a["percent-75"]=$.qa(Vg,4,4,[0,0,2,2]);a["percent-80"]=$.qa(Vg,8,4,[0,0,4,2]);a["percent-90"]=$.qa(Vg,8,8,[7,7,4,3]);return a}();Kg.prototype.Sm=function(){return"hatch-fill"}; +Kg.prototype.R=function(){if(this.Ka()){var a=this.Ka().vn,b=[this.type,this.color,this.Ef,this.size].join();$.Gc(a.i,b)&&$.Lc(a.i,b);a=$.ze(window.document,this.id());$.Xe(a)}Kg.u.R.call(this)};var zE=Kg.prototype;zE.dispose=zE.ld;$.H(bh,$.hg);$.ah="meet";$.$g="none";$.g=bh.prototype;$.g.jl=$.hg.prototype.jl|32;$.g.Sm=function(){return"image"};$.g.jD=function(a){return null!=a?(a!=this.f&&(this.f=a,this.Qb(32)),this):this.f};$.g.align=function(a){return null!=a?(a!=this.b&&(this.b=a,this.Qb(32)),this):this.b};$.g.x=function(a){return null!=a?(a!=this.Bb.left&&(this.Bb.left=a,this.Qb(32),this.$d()),this):this.Bb.left};$.g.y=function(a){return null!=a?(a!=this.Bb.top&&(this.Bb.top=a,this.Qb(32),this.$d()),this):this.Bb.top}; +$.g.width=function(a){return null!=a?(a!=this.Bb.width&&(this.Bb.width=a,this.Qb(32),this.$d()),this):this.Bb.width};$.g.height=function(a){return null!=a?(a!=this.Bb.height&&(this.Bb.height=a,this.Qb(32),this.$d()),this):this.Bb.height};$.g.src=function(a){return $.p(a)?(a!=this.j&&(this.j=a,this.Qb(32)),this):this.j};$.g.opacity=function(a){return $.p(a)?(a!=this.i&&(this.i=a,this.Qb(32)),this):this.i};$.g.ck=function(){return this.Bb.clone()};$.g.Ft=function(){return $.mg().H0()}; +$.g.jk=function(){this.Vf(32)&&($.mg().OI()&&this.Qb(4),this.Dp());bh.u.jk.call(this)};$.g.Uw=function(){$.mg().L5(this);$.jg(this,4);$.jg(this,256)};$.g.Dp=function(){$.mg().K5(this);$.jg(this,32)};$.g.qe=function(a){var b=a.bounds;this.x(b.left).y(b.top).width(b.width).height(b.height).src(a.src).align(a.align).jD(a.fittingMode);bh.u.qe.call(this,a)};$.g.D=function(){var a=bh.u.D.call(this);a.type="image";a.bounds=this.ck();a.src=this.src();a.align=this.align();a.fittingMode=this.jD();return a}; +$.g.R=function(){this.Bb=null;this.$d();bh.u.R.call(this)};$.E("acgraph.vector.Image",bh);var AE=bh.prototype;AE.fittingMode=AE.jD;AE.align=AE.align;AE.x=AE.x;AE.y=AE.y;AE.width=AE.width;AE.height=AE.height;AE.src=AE.src;$.H(ch,$.qf);var eh=[$.hd&&!$.bd("11")?"readystatechange":"load","abort","error"];ch.prototype.start=function(){var a=this.f;(0,$.Pe)($.Fc(a),function(b){var c=a[b];if(c&&(delete a[b],!this.md)){var d;this.Y?d=$.ye(this.Y).Ac("IMG"):d=new window.Image;c.A0&&(d.crossOrigin=c.A0);this.qo.wa(d,eh,this.i);this.b[b]=d;d.id=b;d.src=c.src}},this)}; +ch.prototype.i=function(a){var b=a.currentTarget;if(b){if("readystatechange"==a.type)if("complete"==b.readyState)a.type="load";else return;"undefined"==typeof b.naturalWidth&&("load"==a.type?(b.naturalWidth=b.width,b.naturalHeight=b.height):(b.naturalWidth=0,b.naturalHeight=0));this.dispatchEvent({type:a.type,target:b});this.md||fh(this,b.id)}};ch.prototype.R=function(){delete this.f;delete this.b;$.qd(this.qo);ch.u.R.call(this)};$.ja($.gh);$.g=$.gh.prototype;$.g.H5=$.ia;$.g.PX=$.ia;$.g.HX=$.ia;$.g.getAttribute=function(a,b){return a?a.getAttribute(b):void 0};$.g.lc=function(a,b,c){a.setAttribute(b,c)};$.g.U4=function(a,b){var c=b[3];a.push(b[0],b[1],0,180this.Xa&&!this.mc;){var f=Th(this,a,b,e+this.P,this.Xa,d);1>f&&0==this.f.length&&(f=1);0!=f&&(e=$.nc(a.substring(0,f)),d=this.Vm(e,b),Uh(this,e,b,d));this.oM();1==a.length&&(this.mc=!0);e=0;a=$.nc(a.substring(f,a.length));d=this.Vm(a,b)}this.mc||!a.length&&!c||Uh(this,a,b,d)}}; +$.g.oM=function(){if(!this.mc&&0!=this.f.length){var a=0==this.ea.length;if(this.Jf&&this.F+this.Ba>this.Jf&&0!=this.ea.length)Vh(this),this.mc=!0;else{this.Ba=$.z(this.rb)?(0,window.parseInt)(this.rb,0)+this.Ba:this.rb*this.Ba;if($.mg().j4()){var b;var c=this.K&&this.yc.hAlign==$.Ph||!this.K&&"end"==this.yc.hAlign||"right"==this.yc.hAlign;var d="center"==this.yc.hAlign;if(this.K&&"end"==this.yc.hAlign||!this.K&&this.yc.hAlign==$.Ph||"left"==this.yc.hAlign){d=this.K?0:this.j&&a?this.j:0;var e=0;for(b= +this.f.length;ethis.Xa&&(1a&&!(0,window.isNaN)(this.JC)&&(0,window.clearTimeout)(this.JC),this.RN=a,this.Dt(!0)),this):this.RN};$.g.O=function(a){return $.p(a)?(a=$.ze(window.document,a||null),this.Jc!=a&&(this.Jc=a,Xj(this),this.Dt(!0),this.Td()),this):this.Jc?this.pp:null};$.g.Afa=function(){return this.Jc};$.g.Tl=function(){return this.pp};$.g.suspend=function(){this.JJ++;return this}; +$.g.resume=function(a){this.JJ=a?0:Math.max(this.JJ-1,0);this.Td();return this};$.g.uda=function(a){return $.p(a)?(this.NR=!!a,this):this.NR};$.g.yf=function(){return!!this.JJ};$.g.wN=function(){return this.rw};$.g.title=function(a){return $.p(a)?(this.nx!=a&&(this.nx=a,$.mg().PX(this,this.nx)),this):this.nx};$.g.ZS=function(a){return $.p(a)?(this.Av!=a&&(this.Av=a,$.mg().HX(this,this.Av)),this):this.Av};$.g.visible=function(a){if(0==arguments.length)return this.Oa.visible();this.Oa.visible(a);return this}; +$.g.data=function(a){if(0==arguments.length)return this.D();var b=a.type;if(b)switch(b){case "rect":var c=this.rect();break;case "circle":c=this.rn();break;case "ellipse":c=this.ellipse();break;case "image":c=this.xk();break;case "text":c=this.text();break;case "path":c=this.path();break;case "layer":c=this.Cd();break;default:c=null}else this.qe(a);c&&c.qe(a);return this};$.g.remove=function(){return this.O(null)};$.g.Gh=function(){return 0};$.g.As=function(){return 0}; +$.g.sb=function(){return new $.I(0,0,this.width(),this.height())};$.g.clip=function(a){return this.Oa.clip(a)};$.g.AM=function(){return this.q0}; +$.g.fullScreen=function(a){var b=this.Tl();if($.p(a))return b&&this.Jy()&&(a=!!a,this.fullScreen()!=a&&(a?b.mozRequestFullScreenWithKeys?b.mozRequestFullScreenWithKeys():b.webkitRequestFullscreen?b.webkitRequestFullscreen():b.webkitRequestFullscreen?b.webkitRequestFullscreen():b.mozRequestFullScreen?b.mozRequestFullScreen():b.msRequestFullscreen?b.msRequestFullscreen():b.requestFullscreen&&b.requestFullscreen():(b=$.ye().b,b.webkitCancelFullScreen?b.webkitCancelFullScreen():b.mozCancelFullScreen? +b.mozCancelFullScreen():b.msExitFullscreen?b.msExitFullscreen():b.exitFullscreen&&b.exitFullscreen()))),this;if(!(a=!b)){a:{a=$.ye().b;a=[a.webkitFullscreenElement,a.mozFullScreenElement,a.msFullscreenElement,a.fullscreenElement];for(var c=0;ca++;){if(this.md)return;this.sp.Sw();b=Xm(this)}b&&this.sp.Sw();this.md||(b?(this.sp.Ld(this.ah),this.dX=(0,window.setTimeout)(this.DO,0)):this.sp.zK())};$.g.R4=function(a,b){this.sp.cX(a,b)};$.g.Nja=$.ia;$.g.R=function(){(0,window.clearTimeout)(this.dX);this.f=this.i=this.sp=null;$.Sm.u.R.call(this)};var dF=$.Sm.prototype;$.E("anychart.data.csv.parser",$.Ym);dF.parse=dF.pC;dF.rowsSeparator=dF.lJ; +dF.columnsSeparator=dF.gG;dF.ignoreTrailingSpaces=dF.NH;dF.ignoreFirstRow=dF.LH;$.I.prototype.D=function(){return{left:this.left,top:this.top,width:this.width,height:this.height}};$.vn.prototype.add=function(a){return new $.vn(this.x+a.x,this.y+a.y)};$.vn.prototype.min=function(a){return new $.vn(Math.min(this.x,a.x),Math.min(this.y,a.y))};$.vn.prototype.max=function(a){return new $.vn(Math.max(this.x,a.x),Math.max(this.y,a.y))};yn.prototype.tJ=function(){for(var a=this.b.length-1;0<=a;a--)if(1E-6>=Math.abs(this.b[a]))this.b.pop();else break};$.E("anychart.math.rect",$.rn);var eF={wQ:["BC","AD"],cZ:["Before Christ","Anno Domini"],gZ:"JFMAMJJASOND".split(""),vZ:"JFMAMJJASOND".split(""),BQ:"January February March April May June July August September October November December".split(" "),MQ:"January February March April May June July August September October November December".split(" "),IQ:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),NQ:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),RQ:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), +yZ:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),KQ:"Sun Mon Tue Wed Thu Fri Sat".split(" "),xZ:"Sun Mon Tue Wed Thu Fri Sat".split(" "),e9:"SMTWTFS".split(""),wZ:"SMTWTFS".split(""),JQ:["Q1","Q2","Q3","Q4"],EQ:["1st quarter","2nd quarter","3rd quarter","4th quarter"],oQ:["AM","PM"],mF:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],rF:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],sQ:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],fK:6,u$:[5,6],gK:5},ao=eF; +ao=eF;var Oba=/^(-)?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)?(T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+(?:\.\d+)?)S)?)?$/;$.Nn.prototype.clone=function(){return new $.Nn(this.ai,this.pg,this.xg,this.Th,this.Bj,this.wh)};var Fn="y",Gn="m",Jn="d",Kn="h",Ln="n",Mn="s";$.Nn.prototype.b=function(a){return new $.Nn(this.ai*a,this.pg*a,this.xg*a,this.Th*a,this.Bj*a,this.wh*a)};$.Nn.prototype.add=function(a){this.ai+=a.ai;this.pg+=a.pg;this.xg+=a.xg;this.Th+=a.Th;this.Bj+=a.Bj;this.wh+=a.wh};$.g=$.Tn.prototype;$.g.hD=ao.fK; +$.g.iD=ao.gK;$.g.clone=function(){var a=new $.Tn(this.b);a.hD=this.hD;a.iD=this.iD;return a};$.g.getFullYear=function(){return this.b.getFullYear()};$.g.getMonth=function(){return this.b.getMonth()};$.g.getDate=function(){return this.b.getDate()};$.g.getTime=function(){return this.b.getTime()};$.g.getDay=function(){return this.b.getDay()};$.g.getUTCFullYear=function(){return this.b.getUTCFullYear()};$.g.getUTCMonth=function(){return this.b.getUTCMonth()};$.g.getUTCDate=function(){return this.b.getUTCDate()}; +$.g.TM=function(){return this.b.getDay()};$.g.getUTCHours=function(){return this.b.getUTCHours()};$.g.getUTCMinutes=function(){return this.b.getUTCMinutes()};$.g.getTimezoneOffset=function(){return this.b.getTimezoneOffset()};$.g.set=function(a){this.b=new Date(a.getFullYear(),a.getMonth(),a.getDate())};$.g.setFullYear=function(a){this.b.setFullYear(a)};$.g.setMonth=function(a){this.b.setMonth(a)};$.g.setDate=function(a){this.b.setDate(a)};$.g.setTime=function(a){this.b.setTime(a)};$.g.zU=function(a){this.b.setUTCFullYear(a)}; +$.g.Qfa=function(a){this.b.setUTCMonth(a)};$.g.Pfa=function(a){this.b.setUTCDate(a)}; +$.g.add=function(a){if(a.ai||a.pg){var b=this.getMonth()+a.pg+12*a.ai,c=this.getFullYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);var d=Math.min(Dn(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.xg&&(b=new Date(this.getFullYear(),this.getMonth(),this.getDate(),12),a=new Date(b.getTime()+864E5*a.xg),this.setDate(1),this.setFullYear(a.getFullYear()),this.setMonth(a.getMonth()),this.setDate(a.getDate()),Rn(this,a.getDate()))}; +$.g.UM=function(a){return[this.getFullYear(),$.uc(this.getMonth()+1,2),$.uc(this.getDate(),2)].join(a?"-":"")};$.g.NJ=ba(6);$.g.toString=function(){return this.UM()};$.g.valueOf=function(){return this.b.valueOf()};$.H($.Un,$.Tn);$.g=$.Un.prototype;$.g.getHours=function(){return this.b.getHours()};$.g.getMinutes=function(){return this.b.getMinutes()};$.g.getSeconds=function(){return this.b.getSeconds()};$.g.getMilliseconds=function(){return this.b.getMilliseconds()};$.g.TM=function(){return this.b.getUTCDay()}; +$.g.getUTCHours=function(){return this.b.getUTCHours()};$.g.getUTCMinutes=function(){return this.b.getUTCMinutes()};$.g.yU=function(){return this.b.getUTCSeconds()};$.g.Nfa=function(){return this.b.getUTCMilliseconds()};$.g.setHours=function(a){this.b.setHours(a)};$.g.setMinutes=function(a){this.b.setMinutes(a)};$.g.setSeconds=function(a){this.b.setSeconds(a)};$.g.setMilliseconds=function(a){this.b.setMilliseconds(a)};$.g.q2=function(a){this.b.setUTCHours(a)};$.g.r2=function(a){this.b.setUTCMinutes(a)}; +$.g.s2=function(a){this.b.setUTCSeconds(a)};$.g.Ofa=function(a){this.b.setUTCMilliseconds(a)};$.g.add=function(a){$.Tn.prototype.add.call(this,a);a.Th&&this.q2(this.b.getUTCHours()+a.Th);a.Bj&&this.r2(this.b.getUTCMinutes()+a.Bj);a.wh&&this.s2(this.b.getUTCSeconds()+a.wh)}; +$.g.UM=function(a){var b=$.Tn.prototype.UM.call(this,a);return a?b+" "+$.uc(this.getHours(),2)+":"+$.uc(this.getMinutes(),2)+":"+$.uc(this.getSeconds(),2):b+"T"+$.uc(this.getHours(),2)+$.uc(this.getMinutes(),2)+$.uc(this.getSeconds(),2)};$.g.NJ=ba(5);$.g.toString=function(){return this.UM()};$.g.clone=function(){var a=new $.Un(this.b);a.hD=this.hD;a.iD=this.iD;return a};$.H($.Vn,$.Un);$.g=$.Vn.prototype;$.g.clone=function(){var a=new $.Vn(this.b);a.hD=this.hD;a.iD=this.iD;return a};$.g.add=function(a){(a.ai||a.pg)&&$.Tn.prototype.add.call(this,new $.Nn(a.ai,a.pg));this.b=new Date(this.b.getTime()+1E3*(a.wh+60*(a.Bj+60*(a.Th+24*a.xg))))};$.g.getTimezoneOffset=function(){return 0};$.g.getFullYear=$.Un.prototype.getUTCFullYear;$.g.getMonth=$.Un.prototype.getUTCMonth;$.g.getDate=$.Un.prototype.getUTCDate;$.g.getHours=$.Un.prototype.getUTCHours;$.g.getMinutes=$.Un.prototype.getUTCMinutes; +$.g.getSeconds=$.Un.prototype.yU;$.g.getMilliseconds=$.Un.prototype.Nfa;$.g.getDay=$.Un.prototype.TM;$.g.setFullYear=$.Un.prototype.zU;$.g.setMonth=$.Un.prototype.Qfa;$.g.setDate=$.Un.prototype.Pfa;$.g.setHours=$.Un.prototype.q2;$.g.setMinutes=$.Un.prototype.r2;$.g.setSeconds=$.Un.prototype.s2;$.g.setMilliseconds=$.Un.prototype.Ofa;var sp=$.hd&&Pba();Xn.prototype.rD=function(a){return this.F-$n(this,a)};var go=[/^'(?:[^']|'')*('|$)/,/^(?:G+|y+|Y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyYMkSEahKHcLQdmsvVwzZ]+/]; +$.eo.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-b.rD(a)):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+6E4*(d.getTimezoneOffset()-a.getTimezoneOffset())),e=new Date(a.getTime()+(c+(0b.charCode&&Pp(d)?b.charCode:0):$.yd&&!$.xd?(d=this.SA,e=Pp(d)?b.keyCode:0):(d=b.keyCode||this.SA,e=b.charCode||0,jF&&"keypress"==a.type&&(c=this.$Q),$.Ad&&63==e&&224==d&&(d=191));var f=d=Qp(d);d?63232<=d&&d in gF?f=gF[d]:25==d&&a.shiftKey&&(f=9):b.keyIdentifier&&b.keyIdentifier in hF&&(f=hF[b.keyIdentifier]); +$.gd&&iF&&"keypress"==a.type&&!Sp(f,this.qq,a.shiftKey,a.ctrlKey,c,a.metaKey)||(a=f==this.qq,this.qq=f,b=new Up(f,e,a,b),b.altKey=c,this.dispatchEvent(b))};$.g.Za=function(){return this.Fd};$.g.VM=function(a,b){this.IN&&this.vH();this.Fd=a;this.HN=$.Ld(this.Fd,"keypress",this,b);this.JV=$.Ld(this.Fd,"keydown",this.Rfa,b,this);this.IN=$.Ld(this.Fd,"keyup",this.uga,b,this)};$.g.vH=function(){this.HN&&(Zd(this.HN),Zd(this.JV),Zd(this.IN),this.IN=this.JV=this.HN=null);this.Fd=null;this.SA=this.qq=-1}; +$.g.R=function(){$.Tp.u.R.call(this);this.vH()};$.H(Up,$.Bd);var Xp,mq,zl,$p,jq,lq,nq,pq,sq,tq,yq;$.kF=$.fa.acgraph;Xp=!1;mq={}; +zl={chart:"area vertical-area area-3d bar bar-3d box bubble bullet calendar candlestick cartesian cartesian-3d circle-packing column column-3d financial funnel line line-3d vertical-line marker pie pie-3d polar ohlc pyramid radar scatter step-line sparkline heat-map tree-map pert resource jump-line stick pareto quadrant mekko mosaic barmekko tag-cloud timeline venn hilo waterfall sunburst sankey surface wordtree graph circular-gauge linear-gauge tank thermometer led".split(" "),stock:["stock"],map:"map choropleth bubble marker connector seat-map".split(" "), +gantt:["gantt-resource","gantt-project"]};$.Yj.prototype.zx=!1;$.Yj.prototype.Xp=function(a){this.sm||(this.sm=new ql(this,this.zx),this.sm.N($.Gm("stageCredits")));return $.p(a)?(this.sm.N(a),this):this.sm};$.Zp=0;$p=[];$.cq={};$.dq={};$.fq={};$.eq={};jq=!1;lq=null;nq=[];pq=[];sq=[];tq=[];$.Cl=new Bl;yq={}; +(function(){for(var a=["ms","moz","webkit","o"],b=0,c;c=a[b]&&!$.fa.requestAnimationFrame;++b)$.fa.requestAnimationFrame=$.fa[c+"RequestAnimationFrame"],$.fa.cancelAnimationFrame=$.fa[c+"CancelAnimationFrame"]||$.fa[c+"CancelRequestAnimationFrame"];if(!$.fa.requestAnimationFrame){var d=0;$.fa.requestAnimationFrame=function(a){var b=(new Date).getTime(),c=Math.max(0,16-(b-d));d=b+c;return $.fa.setTimeout(function(){a(b+c)},c)};$.fa.cancelAnimationFrame||($.fa.cancelAnimationFrame=function(a){(0,window.clearTimeout)(a)})}})(); +$.E("anychart.graphics",$.kF);$.E("anychart.fromJson",$.gq);$.E("anychart.fromXml",function(a){return $.gq($.up(a))});$.E("anychart.onDocumentLoad",function(a,b){KE||(KE=[]);KE.push([a,b]);$.Ld($.ll,"load",function(){for(var a=0,b=KE.length;a=this.Hb()))return this.view.Ul(this.i).dk(this.f,this.i,a)};$.g.lr=function(a){return this.get(a)};$.g.ma=function(){return this.i};$.g.Gh=function(){return this.get("x")}; +$.g.Hb=function(){return this.view.Hb()};$.g.o=function(a,b){return 1b){var e=a;a=b;b=e}e=this.$();var f=[];for(e.reset();e.advance();){var h=e.ma();var k=c?h:e.get("x");k>=a&&k<=b&&f.push(h)}return this.ZF[d]=f};$.g.get=function(a,b){if(!(a>=this.Hb()))return this.Ul(a).dk(this.Af(a),a,b)};$.g.set=function(a,b,c){var d=this.Af(a);$.p(d)&&this.Af(a,fca(this.Ul(a),d,b,c));return this};$.g.$=function(){$.Nr(this);return new $.Lr(this)}; +$.g.FC=function(){return null};$.g.XI=function(a){this.ZF=this.Ct=null;$.X(a,16)&&this.B(1,16)};$.g.o=function(a,b,c){if(this.xY)return this.tO.apply(this,arguments);this.aE||(this.aE=[]);var d=this.aE[a];d||(this.aE[a]=d={});return 2a:!(!this.At||!this.At[a.split(".")[0]])}; +$.g.wO=function(a,b){function c(c){c in a||(a[c]=b++)}var d;for(d=0;d=d)return[];a=new $.Wr(a);c=[];if(1==b)for(b=0;b=c&&0=h&&0=d&&0= +c[l].offset&&(d=c[l]),h<=c[l].offset&&null==f&&(f=c[l]);d||(d=c[0]);f||(f=c[c.length-1]);f.offset==d.offset?this.f[k]={color:d.color}:(h=1-(h-d.offset)/(f.offset-d.offset),this.f[k]={color:$.Tb($.Ol($.Ll(d.color),$.Ll(f.color),h))})}}}this.I(16)}c=$.A(this.Xe)?this.Xe:this.Xe.keys;if(1>c.length)return null;c=this.b||this.i||c.length;if(!c)return null;if($.p(b))return this.f[a]=b,this.va(2),this;a>c-1&&(a=c-1);0>a&&(a=0);return(c=this.f[a])?c:null}; +$.g.Fp=function(a){this.b=window.NaN;this.Xe="#1D8BD1 #F1683C #2AD62A #DBDC25 #8FBC8B #D2B48C #FAF0E6 #20B2AA #B0C4DE #DDA0DD #9C9AFF #9C3063 #FFFFCE #CEFFFF #630063 #FF8284 #0065CE #CECFFF #000084 #FF00FF #FFFF00 #00FFFF #840084 #840000 #008284 #0000FF #00CFFF #CEFFFF #CEFFCE #FFFF9C #9CCFFF #FF9ACE #CE9AFF #FFCF9C #3165FF #31CFCE #9CCF00 #FFCF00 #FF9A00 #FF6500".split(" ");this.B(16);a&&this.va(2)}; +$.g.D=function(){var a=$.Ws.u.D.call(this);a.type="range";for(var b=[],c=0;ca?4:Math.ceil(+a),this.jv=this.pm=null,this.va(2)),this):this.qn}; +$.g.set=function(a){if(this.pm!=a){this.qn=window.NaN;this.Op=null;this.pm=(0,$.Wa)(a,function(a){return $.zs(a)});$.Pa(this.pm);for(var b=this.pm[0],c=1,d=1;da||1this.scale.an()&&($.kl(20,null,[d-c,Gp(f)]),f=null,this.qn=4);f||(f=ft(this,a,b,!0));a=new $.Vn(new Date(c));d=new $.Vn(new Date(d));for(b=0;0>=a.getTime()-d.getTime()&&bthis.scale.an()&&($.kl(20,null,[b-a,Gp(h)]),h=null,this.qn=4);h||(h=ft(this,a,b,!1));var l=$.Zo(a,h,0),m=new $.Vn(new Date(l));c?e[0]=l:l=m.getTime()-a.getTime()&&bthis.cA&&(this.cA=c,this.Kc=!1))}return this}; +$.g.IC=function(a){var b=this.yia!=this.dA||this.xia!=this.cA;b&&(this.Kc=!1,a||this.va(2));return b};$.g.Of=function(){return this.Pn||this.Nn};$.g.transform=function(a){this.pb();return Number(this.Oq.transform(a))};$.g.pb=function(){this.Kc||(this.Kc=!0,this.aT(),this.sJ(),this.dx())};$.g.sJ=function(){};$.g.dx=function(){this.Oq||(this.Oq=new Zs);var a=this.cK*this.$B;a=[-a,this.$B-a];this.PD&&a.reverse();this.Oq.xe(a)}; +$.g.aT=function(){var a=!this.Pn;var b=!this.Nn,c="percent"==this.jn();a&&this.Xc(this.min);b&&this.Xc(this.max);this.AX||(this.dA=0,this.cA=c?100:1);var d=a?this.min:this.dA,e=b?this.max:this.cA;!a&&d>=this.jt&&(d=this.jt,a=!0);!b&&e<=this.Lq&&(e=this.Lq,b=!0);if($.cn(d,e,1E-6)){if(d==e)var f=.5;else f=d.toExponential().split("e")[1],f=+("1e-"+Math.max(Math.abs(f)+1,5));b?d-=2*f:a?e+=2*f:(d-=f,e+=f)}c&&(a=b=!0);a=this.Nz(d,e,!a,!b,this.GJ,!0);this.min=a.min;this.max=a.max;this.Kx=a.Kx||0}; +$.g.Nz=function(a,b,c,d,e,f){var h=b-a,k=h*this.HI;h*=this.BI;return{max:d?wt(b,h,e,f,1):b,min:c?wt(a,k,e,f,-1):a}};$.g.Mc=function(a){this.pb();return this.Oq.Mc(a)}; +$.g.D=function(){var a=$.vt.u.D.call(this);a.maximum=this.Nn?null:this.max;a.minimum=this.Pn?null:this.min;a.minimumGap=this.Qs();a.maximumGap=this.Os();a.softMinimum=(0,window.isNaN)(this.jt)?null:this.jt;a.softMaximum=(0,window.isNaN)(this.Lq)?null:this.Lq;a.softMaximum=(0,window.isNaN)(this.Lq)?null:this.Lq;a.alignMinimum=this.BF;a.alignMaximum=this.AF;a.maxTicksCount=this.dl;return a}; +$.g.U=function(a,b){$.vt.u.U.call(this,a,b);this.Qs(a.minimumGap);this.Os(a.maximumGap);this.KB(a.softMinimum);this.JB(a.softMaximum);this.uh(a.minimum);this.di(a.maximum);this.XQ(a.alignMinimum);this.WQ(a.alignMaximum);this.an(a.maxTicksCount)};var zF=$.vt.prototype;zF.maxTicksCount=zF.an;zF.minimum=zF.uh;zF.maximum=zF.di;zF.extendDataRange=zF.Xc;$.H($.xt,$.vt);$.g=$.xt.prototype;$.g.Ak=function(a){return!$.zs(a)};$.g.Ma=function(){return"date-time"};$.g.Ya=function(a){this.xh||(this.xh=new et(this),$.W(this,"ticks",this.xh),$.K(this.xh,this.li,this));return $.p(a)?(this.xh.N(a),this):this.xh};$.g.yb=function(a){this.Di||(this.Di=new et(this),$.W(this,"minorTicks",this.Di),$.K(this.Di,this.li,this));return $.p(a)?(this.Di.N(a),this):this.Di};$.g.Xc=function(a){for(var b=0;bc;c++){b:{var d=a[c];if("object"===$.ka(d)&&"from"in d&&"to"in d){var e=+d.from;d=+d.to;if(ee&&0=d){e={from:e,to:d};break b}}e=null}b.push(e)}a=b.length?b:null}else a=null;this.b=a;this.F={};this.j={};if(this.b)for(a=0;af){e={day:e,month:f};"year"in d&&(f=+d.year,(0,window.isNaN)(f)||(e.year=f));"label"in d&&(e.label=String(d.label));d=e;break b}}d=null}d&&b.push(d)}a=b.length?b:null}else a=null;this.f=a;this.i={SY:{},JS:{}};this.F={};if(this.f)for(a=0;a=Math.abs(f-c)&&(c=(this.$e+this.Ze)/2,f=c-3E4,c+=3E4);this.Jr(f,c)}return this}; +$.g.Wr=function(a,b){var c=a||1.25,d=$.p(b)?b:.5;$.Ot(this);if(!$.It(this)||!$.Jt(this)){var e=this.$e-Math.round((this.Ze-this.$e)*(c-1)*d);c=this.Ze+Math.round((this.Ze-this.$e)*(c-1)*(1-d));this.uj();if($.Nt(this)){d=this.Xq.ob().width;if(this.bm.isPixels){var f=$.Ft(this.bm.value,d);this.Gj=this.Ph-Math.round((f/d||0)*(c-e))}this.am.isPixels&&(f=$.Ft(this.am.value,d),this.Fj=this.Oh+Math.round((f/d||0)*(c-e)))}if(ethis.Fj){if(ethis.Fj)return this.Qm(),this;ethis.Fj&&this.Jr(e-(c-this.Fj),this.Fj)}else this.Jr(e,c)}return this}; +$.g.kj=function(a,b,c){if($.Nt(this)&&$.ea(a)&&$.ea(b)){c=this.bm.isPixels;var d=this.am.isPixels;c&&d?Gt(this):c?Ht(this,!0):d&&Ht(this,!1);d=this.Oh-this.Ph;c=b-a;if(c>=this.Fj-this.Gj)this.$e=this.Gj,this.Ze=this.Fj;else{this.$e=Math.min(a,b);this.Ze=Math.max(a,b);var e=$.Kt(this,d,this.bm),f=$.Kt(this,d,this.am);e=(0,window.isNaN)(this.$m)?(0,window.isNaN)(this.Ko)?this.Ph-e:Math.min(this.Ko,this.Ph):this.$m;f=(0,window.isNaN)(this.Zm)?(0,window.isNaN)(this.Jo)?this.Oh+f:Math.max(this.Jo,this.Oh): +this.Zm;af&&(this.Ze=f,this.$e=this.Ze-c)}this.Gj=e;this.Fj=f;this.Kc=!0;this.Uj()&&(this.QI=!0,this.MI=[a,b]);this.va(4);a=this}else a:{this.pb();if($.z(a)){if(0===b){a=this;break a}f=$.zk(Cda,c,$.p(void 0)?void 0:"first-visible-date");e=$.bp($.Zk(a,"day"),b||1);switch(f){case "first-date":d=this.Ph;break;case "last-date":d=this.Oh;e=e.b(-1);break;case "last-visible-date":d=this.Ze;e=e.b(-1);break;case "first-visible-date":d=this.$e}d=new $.Vn($.zs(d));f=$.Xk(d); +d.add(e);d=$.Xk(d);e=Math.min(f,d);d=Math.max(f,d);f=d-e}else e=a,d=b,$.p(b)?f=b-a:(f=this.Ze-this.$e,d=a+f);var h=this.uj();f=Math.min(h.max-h.min,f);d>h.max&&(d=h.max,e=d-f);ethis.Ze){var c=this.$e-this.Ze;this.$e=Math.max(this.Ze,b);this.Ze=Math.min(this.$e+c,a)}}}; +$.g.Fn=function(a,b,c,d,e){b=e||this.sj();a=this.sj();e=a.min;var f=a.max;a=new $.Vn(new Date(e));e=f-e;do{f=$.bp(c,d);var h=a.clone();a.add(f);f=Math.ceil(e/(a.getTime()-h.getTime()));if(f>this.dl)switch(c){case "millisecond":c="second";d=1;break;case "second":59>d?d++:(d=1,c="minute");break;case "minute":59>d?d++:(d=1,c="hour");break;case "hour":23>d?d++:(d=1,c="day");break;case "day":29>d?d++:(d=1,c="month");break;case "month":11>d?d++:(d=1,c="year");break;default:d++}}while(f>this.dl);if(a="week"=== +c&&(this.eQ||this.gF)){e=b.min;f=d;var k=this.Qv,l=this.gF,m=new Date(e),n=1!==k;h=m.getMonth();var q=m=m.getFullYear();l?k=h:n?(--k,0<=h&&hf){h=d.b(-1);var r= +new $.Vn(new Date(c));do r.add(h),c=r.getTime();while(c>f)}}else r=new $.Vn(new Date(f));c=r.getTime();for(f=d;c=a?(this.lh=4,this.qm=6,this.Jl=window.NaN):(this.qm=this.lh=window.NaN,this.Jl=+a),this.Hl=this.Il=null,this.va(2)),this):this.Jl}; +$.g.count=function(a,b){return $.p(a)?(this.lh!=a&&(this.Jl=window.NaN,this.lh=Math.ceil($.N(a)),this.qm=Math.ceil($.N(b)),2<=this.lh||(this.lh=4),this.qm>=this.lh||(this.qm=this.lh),this.Hl=this.Il=null,this.va(2)),this):[this.lh,this.qm]};$.g.eF=ba(9);$.g.WF=function(a){return $.p(a)?(a=+a||0,this.Vc!=a&&(this.Vc=a,this.Hl=null,this.Il||this.va(2)),this):this.Vc}; +$.g.set=function(a){$.Ta(this.Il,a)||(this.Jl=this.qm=this.lh=window.NaN,this.Il=$.Ja(a,0),$.Ka(this.Il),$.Pa(this.Il,$.wo),this.Hl=null,this.va(2));return this};$.g.get=function(){var a=this.dk();return(0,$.Ye)(a,function(a){a=this.transform(a);return 0<=a&&1>=a},this.pa)};$.g.dk=function(){if(this.Il)var a=this.Il;else this.pa.pb(),a=this.Hl;return a||[]}; +$.g.mode=function(a){return $.p(a)?(a=String(a).toLowerCase(),a="log"==a||"logarithmic"==a?"logarithmic":"linear",this.Fm!=a&&(this.Hl=null,this.Fm=a,this.Il||this.va(2)),this):this.Fm};$.g.DB=function(a,b,c,d,e,f){this.Il?(this.Hl=null,e=[a,b],c&&(e[0]=Math.min(a,this.Il[0]||0)),d&&(e[1]=Math.max(b,this.Il[this.Il.length-1]||0))):(a="logarithmic"==this.Fm?rca(this,a,b,e||10,f||0,!!c,!!d):Tt(this,a,b,!!c,!!d,this.b,this.Vc),this.Hl=a.Ya,e=a.result);return e}; +$.g.EB=function(a,b,c,d,e){if(this.Il)this.Hl=null;else if(this.Hl?this.Hl.length=0:this.Hl=[],!(2>a.length)){b=b||10;var f="logarithmic"==this.Fm,h=f?this.P$:this.Lba,k=a.length-1,l=this.Jl,m=this.lh;if(!(0,window.isNaN)(this.Jl)){var n=a[k];var q=a[0];f&&(q=$.dn(q,b),n=$.dn(n,b));(n-q)/this.Jl>this.pa.an()&&($.kl(20,null,[n-q,this.Jl]),this.Jl=window.NaN,this.lh=4)}$.p(c)?(q=a[0],n=a[1],h.call(this,q,n,c,n,this.lh,b,e||0,!0),q=1):q=0;$.p(d)&&k--;for(c=q;c<=k-1;c++)q=a[c],n=a[c+1],h.call(this,q, +n,q,n,this.lh,b,e||0);$.p(d)&&(q=a[k],n=a[k+1],h.call(this,q,n,q,d,this.lh,b,e||0));this.Jl=l;this.lh=m}};$.g.Lba=function(a,b,c,d,e,f,h,k){Ut(this,a,b,Vt(this,c,d,e),this.Hl[this.Hl.length-1],this.Hl,k)}; +$.g.P$=function(a,b,c,d,e,f,h){function k(a){return 0>a?-m(-a+h-1):a?m(a+h-1):0}function l(a){return-m(a)}function m(a){return en(f,a)}var n=$.dn(Math.abs(c),f),q=$.dn(Math.abs(d),f),r=$.dn(Math.abs(a),f),t=$.dn(Math.abs(b),f);d*=c;c=!1;0=this.lh||(this.qm=this.lh))};var DF=$.St.prototype; +DF.interval=DF.Mba;DF.allowFractional=DF.PZ;DF.count=DF.count;DF.base=DF.WF;DF.set=DF.set;DF.get=DF.get;DF.mode=DF.mode;$.H($.Wt,$.vt);$.g=$.Wt.prototype;$.g.oL="none";$.g.pS="first-visible";$.g.Ma=function(){return"linear"};$.g.CE=function(a,b){for(var c=this.Ya().dk(),d=0,e=0;eb?(a=[a,-c,c,-a],d=[0,f(h),f(h-2),f(h-2-d)]):(a=[-b,-c,c,b],d=[f(h-2-e),f(h-2),f(h),1])):0>f?(e=e-h+d-h+2,a=[a,-c,c,b],d=[0,(d-h)/e,(d-h+2)/e,1]):(e=e-h+d-h+1,b?(a=[-b,-c,c,b],d=[-(e+1)/e,-1/e,1/e,1]):(a=[a,-c,c,-a],d=[0,(e-1)/e,(e+1)/e,(e+e+1)/e]));h=this.Oq.xe();f=ct[Ys](h[0],h[1]);d=(0,$.Wa)(d,function(a){return $.bn(a)}); +$s(this.Oq,a);this.Oq.xe((0,$.Wa)(d,f));at(this.Oq,[2,Ys,2])}; +$.g.Nz=function(a,b,c,d,e,f){e=this.pI();var h=$.dn(Math.abs(a),e),k=$.dn(Math.abs(b),e),l=Math.min(Math.floor(h),Math.floor(k),0);if(c||d){var m=a*b;0m?(2>k-l+h-l&&l--,c=Xt.u.Nz.call(this,-(h-(l-1)),k-(l-1),c,d,!1,!1),c.min=-c.min+l-1,c.max+=l-1):b?(c=Xt.u.Nz.call(this,0,k-(l-1),!1,d,!1,!1),c.max+=l-1):(c=Xt.u.Nz.call(this,-(h-(l-1)),0,c,!1,!1,!1),c.min=-c.min+l-1);c={max:en(e,c.max)*$.fb(b), +min:en(e,c.min)*$.fb(a),Kx:l};f&&(c.min=$.bn(c.min),c.max=$.bn(c.max))}else c={min:a,max:b,Kx:l};return c};$.g.D=function(){var a=Xt.u.D.call(this);a.logBase=this.pI();return a};$.g.U=function(a,b){Xt.u.U.call(this,a,b);this.pI(a.logBase)};var FF=Xt.prototype;$.E("anychart.scales.log",$.rt);FF.getType=FF.Ma;FF.transform=FF.transform;FF.inverseTransform=FF.Mc;FF.logBase=FF.pI;$.H($.Yt,$.V);$.g=$.Yt.prototype;$.g.qa=2;$.g.Dx=window.NaN;$.g.Wf=null;$.g.Iz=null;$.g.jq=null;$.g.Cx=null;$.g.Ok=null;$.g.Jz=100;$.g.HK=function(a){return $.p(a)?(a=$.P(a,window.NaN),(0,window.isNaN)(a)||this.Dx==a||(this.Dx=a,this.Jz=window.NaN,this.Ok=this.Cx=this.jq=this.Iz=null,this.va(2)),this):this.Dx};$.g.gW=function(a){return $.p(a)?(a=$.P(a,window.NaN),(0,window.isNaN)(a)||this.Jz==a||(this.Jz=a,this.Dx=window.NaN,this.Ok=this.Cx=this.jq=this.Iz=null,this.va(2)),this):this.Jz}; +$.g.set=function(a){$.Ta(this.jq,a)||(this.jq=$.Ha(a),this.jq=(0,$.Wa)(this.jq,function(a){return $.N(a)}),$.Pa(this.jq),$.Ka(this.jq),this.jq[0]=0,this.Ok=this.Cx=this.Iz=null,this.va(2));return this}; +$.g.names=function(a){if($.p(a))return this.Wf!=a&&(this.Wf=a,this.va(2)),this;a=this.dk();var b;if(this.Wf&&this.Wf.lengthh&&0>f||1b&&0>a||1=d?(l=d-1,f=!0):l--;e.push(k==l?c[k]:[c[k],c[l]])}return e};$.g.eF=ba(8); +$.g.D=function(){var a=$.Yt.u.D.call(this);this.jq?a.explicit=this.jq:(0,window.isNaN)(this.Jz)?(0,window.isNaN)(this.Dx)||(a.interval=this.Dx):a.maxCount=this.Jz;this.Wf&&(a.names=this.Wf);return a};$.g.Le=function(a,b){return $.A(b)?(this.set(b),!0):!1};$.g.U=function(a,b){$.Yt.u.U.call(this,a,b);"explicit"in a&&a.explicit?this.set(a.explicit):"interval"in a?this.HK(a.interval):"maxCount"in a&&this.gW(a.maxCount);this.Wf=a.names||null;this.Ok=this.Cx=null};var GF=$.Yt.prototype;GF.interval=GF.HK; +GF.maxCount=GF.gW;GF.set=GF.set;GF.get=GF.get;GF.names=GF.names;$.H($.$t,gt);$.g=$.$t.prototype;$.g.Ma=function(){return"ordinal"};$.g.Ak=function(a){return!$.p(a)};$.g.Ya=function(a){this.mb||(this.mb=new $.Yt(this),$.W(this,"ticks",this.mb),$.K(this.mb,this.li,this));return $.p(a)?(this.mb.N(a),this):this.mb};$.g.values=function(a,b){if(!$.p(a))return this.ih;if(null===a)this.TF||(this.TF=!0,this.va(4));else{this.TF=!1;var c=$.A(a);this.Co();c&&a.length?this.Xc.apply(this,a):this.Xc.apply(this,arguments);this.IC(!0)&&this.va(6)}return this}; +$.g.names=function(a){if($.p(a)){if(null===a)this.Wf=[];else if($.A(a))this.Wf=$.Ha(a);else{if(!$.z(a)||this.Wf==a)return this;this.Wf=a}this.Sn=null;$.Zt(this.Ya());this.va(2);return this}if($.A(this.Wf)){this.Sn||(this.Sn=$.Ha(this.Wf));if(this.Sn.lengthk){var n=~k;$.Da(d,m,n);(k=this.search("id",m))?(k=$.J(k,$.nu)?k:k[0],$.Da(e,k,n),k.o("nc",!0),$.kl(1,null,[m])):$.Da(e,l,n)}else $.kl(2,null,[m])}for(b=0;bk?((k=this.search("id",l))?(k=$.J(k,$.nu)?k:k[0],pu(k,f)):(this.Iq.push(f),$.kl(3,null,[l])),tu(this,f)):(k=e[k],pu(k,f),k.o("nc")&&tu(this,f))):(this.Iq.push(f), +tu(this,f));h.length&&this.va(16);this.da(!0);break;default:this.ka();b=0;for(d=a.length;bc||b>d)return 1;if(ac)return 1}else if(e.height){if(bd)return 1}return 0}; +$.g.aS=function(a,b){var c=this.g("minFontSize"),d=this.g("maxFontSize"),e=Math.round((d+c)/2),f=d,h=$.sk();h.Dd("aria-hidden","true");this.bi(h,!0);h.fontSize(d);if(0>=this.fo(h.sb().width,h.sb().height,a,b))return d;h.fontSize(e);for(var k=d=this.fo(h.sb().width,h.sb().height,a,b);c!=f;){if(0>d)c=Math.min(e+1,f),e+=Math.floor((f-e)/2);else if(0=k*d)break}if(!d)return $.qd(h),e;do e+= +k,h.fontSize(e),d=this.fo(h.sb().width,h.sb().height,a,b);while(0>k*d);$.qd(h);0b.indexOf("\n"))&&!this.g("useHtml")?this.VW:this.ad.sb();var c=b.width,d=b.height,e=$.$b(this.g("iconStroke")),f=this.op+e;if(a){var h=a.width;var k=a.height}else h=k=void 0;var l=$.L(this.g("maxWidth"),h);e=h?$.L(this.g("x"),h):0;k=k?$.L(this.g("y"),k):0;var m=this.Fs?f+this.g("iconTextSpacing"):0;this.RF=window.NaN;l?(h=l-m,c&&c>h&&"..."==this.ad.textOverflow()?this.RF=h/c:(this.ad.width(h),b=this.ad.sb()),c=l):(l=h?Math.min(h-m,c): +c,l=Math.max(l,1E-5),"..."==this.ad.textOverflow()&&c&&c>l&&(this.RF=l/c),c=l+m);l=this.ad.ea;if(1a?null:a;$.p(this.height())||this.B(4)};$.g.margin=function(a,b,c,d){this.Qc||(this.Qc=new $.Uv,$.K(this.Qc,this.Pk,this),$.W(this,"margin",this.Qc));return $.p(a)?(this.Qc.N.apply(this.Qc,arguments),this):this.Qc}; +$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.W(this,"padding",this.Wa),$.K(this.Wa,this.Pk,this));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa};$.g.Zd=function(a,b){if($.p(a)){if($.z(a))if($.p(b)){if(a in this.j)this[a](b)}else return this.nd(a);else if($.C(a))for(var c in a)if(c in this.j)this[c](a[c]);return this}c={};for(var d in this.j){var e=this.g(d);$.p(e)&&(c[d]=e)}return c}; +$.g.W=function(){if(!this.zc())return this;var a=nw(this),b=this.O();this.ka();this.J(2)&&(this.wb.parent(b),this.I(2));this.J(8)&&(this.wb.zIndex(this.zIndex()),this.I(8));this.J(16)&&(this.bi(a),this.I(16));this.J(4)&&(ow(this),this.kc.x($.L(this.padding().g("left"),this.f)),this.kc.y($.L(this.padding().g("top"),this.b)),this.wb.pc(this.i.od,this.i.We,this.i.gf,this.i.Ke,this.i.Kd,this.i.Gd),this.B(64),this.I(4));this.J(64)&&(a=this.background(),a.ka(),a.ja(0,0,this.f,this.b),a.W(),a.da(!1),this.I(64)); +this.da(!1);return this};$.g.remove=function(){this.wb?this.wb.parent(null):this.kc&&this.kc.parent(null)};$.g.zd=function(){var a=this.ja();a=a?a.clone():$.rn(0,0,0,0);if(!this.enabled())return a;this.ac&&!this.J(4)||ow(this);switch(this.g("orientation")){case "top":a.top+=this.ac.height;a.height-=this.ac.height;break;case "right":a.width-=this.ac.width;break;case "bottom":a.height-=this.ac.height;break;case "left":a.left+=this.ac.width,a.width-=this.ac.width}return a};$.g.gH=ba(3); +$.g.yi=function(){if(!this.enabled())return new $.I(0,0,0,0);this.ac&&!this.J(4)||ow(this);return this.ac.clone()};$.g.uk=function(){var a=this.g("text"),b=$.mw(this);if($.p(a)||$.p(b))return a=!a&&$.p(b)?b:a,b=this.g("maxLength"),a=Nu(a,b)}; +$.g.bi=function(a){var b=this.g("useHtml"),c=this.uk();if(a||$.p(c)||$.p(b))b?this.kc.htmlText(c):this.kc.text(c);this.kc.fontSize(this.g("fontSize"));this.kc.fontFamily(this.g("fontFamily"));this.kc.color(this.g("fontColor"));this.kc.direction(this.g("textDirection"));this.kc.Xu(this.g("wordBreak"));this.kc.wordWrap(this.g("wordWrap"));this.kc.opacity(this.g("fontOpacity"));this.kc.er(this.g("fontDecoration"));this.kc.fontStyle(this.g("fontStyle"));this.kc.fontVariant(this.g("fontVariant"));this.kc.fontWeight(this.g("fontWeight")); +this.kc.letterSpacing(this.g("letterSpacing"));this.kc.lineHeight(this.g("lineHeight"));this.kc.textIndent(this.g("textIndent"));this.kc.textShadow(this.g("textShadow"));this.kc.vAlign(this.g("vAlign"));this.kc.Bm(this.g("hAlign"));this.kc.textOverflow(this.g("textOverflow"));this.kc.Hm(this.g("selectable"));this.kc.Ed(this.g("disablePointerEvents"))}; +$.g.AA=function(){var a=this.nd("rotation");delete this.Od.rotation;a=$.p(a)?a:this.g("rotation");if($.p(a))return a;switch(this.g("orientation")){case "left":return this.Od.rotation=-90;case "right":return this.Od.rotation=90;default:return this.Od.rotation=0}};$.g.vg=function(a){$.X(a,1)&&this.B(64,1)};$.g.Pk=function(a){$.X(a,2)&&this.B(4,9)};$.g.clear=function(){this.wb&&this.wb.Gi()}; +$.g.D=function(){var a={},b=$.V.prototype.g.call(this,"zIndex");$.p(b)&&(a.zIndex=b);b=$.V.prototype.g.call(this,"enabled");$.p(b)&&(a.enabled=b);$.cr(this,this.j,a,"Title text");$.cr(this,this.K,a,"Title props");b=this.margin().D();$.Jc(b)||(a.margin=b);b=this.padding().D();$.Jc(b)||(a.padding=b);b=this.background().D();$.Jc(b)||(a.background=b);return a};$.g.he=function(a){return $.z(a)?{text:a,enabled:!0}:$.da(a)||null===a?{enabled:!!a}:null}; +$.g.Le=function(a,b){var c=this.he(b);return c?(a?(this.oa.enabled=c.enabled,"text"in c&&(this.oa.text=c.text)):(this.enabled(c.enabled),"text"in c&&this.text(c.text)),!0):!1};$.g.U=function(a,b){$.iw.u.U.call(this,a,b);$.Vq(this,this.j,a,b);$.Vq(this,this.K,a,b);"padding"in a&&this.padding().ga(!!b,a.padding);"margin"in a&&this.margin().ga(!!b,a.margin);"background"in a&&this.background().ga(!!b,a.background)}; +$.g.R=function(){$.sd(this.Ia,this.Qc,this.Wa,this.wb);this.wb=this.Wa=this.Qc=this.Ia=null;$.iw.u.R.call(this)};$.H(pw,$.iw);$.Hu(pw,$.iw);pw.prototype.gr=function(){var a=this.width(),b=this.height();return $.Bo(a)||$.Bo(b)||null===a||null===b};var jG=$.iw.prototype;jG.textSettings=jG.Zd;jG.background=jG.background;jG.margin=jG.margin;jG.padding=jG.padding;jG.getRemainingBounds=jG.zd;jG=pw.prototype;$.E("anychart.standalones.title",function(){var a=new pw;a.ga(!0,$.um("standalones.title"));return a}); +jG.draw=jG.W;jG.parentBounds=jG.ja;jG.container=jG.O;$.H(qw,$.od);$.g=qw.prototype;$.g.getContext=function(){return{parentElement:this.b,titleElement:this.j,separatorElement:this.f,contentElement:this.i}};$.g.Za=function(){sw(this);return this.b};$.g.WP=function(){var a=$.Uf(this.Za(),"margin");$.Cf(this.Za(),this.gb.G.x-a.left,this.gb.G.y-a.top)};$.g.visible=function(a){return $.p(a)?($.Pf(this.Za(),!!a),this):"none"!=this.Za().style.display};$.g.sb=function(){var a=$.Kf(this.Za());return new $.I(0,0,a.width,a.height)}; +$.g.O=function(a){if($.p(a)&&this.Jc!=a)if(null===a)this.remove();else return this.Jc=a,a=this.Za(),this.Jc.appendChild(a),this;return this.Jc};$.g.remove=function(){this.b&&($.Xe(this.b),this.Jc=null)};$.g.R=function(){this.remove();this.b=this.j=this.f=this.i=this.gb=null;qw.u.R.call(this)};$.H(uw,$.od);var Uda={position:"absolute","z-index":9999,left:0,top:0,width:"100%",height:"100%","pointer-events":"none"},kG={position:"relative",left:0,top:0,overflow:"hidden",width:"100%",height:"100%"},Vda={position:"relative",left:0,top:0,opacity:1,"pointer-events":"none"};$.g=uw.prototype;$.g.R_=function(){$.uf(this.Ir,Uda);$.uf(this.b.Tl(),kG);$.uf(this.b.ia(),Vda)}; +$.g.O=function(a){return $.p(a)?(a!=this.Jc&&((this.Jc=a)?(this.Jc.appendChild(this.Ir),this.R_(),this.b.Dt()):$.Xe(this.Ir)),this):this.Jc};$.g.Ka=function(){return this.b};$.g.NA=function(){return!0};$.g.Hm=function(a){return $.p(a)?(this.j=a,this):this.j};$.g.R=function(){$.qd(this.b);this.b=null;$.Xe(this.Ir);this.Ir=null};$.H(vw,$.od);$.g=vw.prototype;$.g.fe=0;$.g.R=function(){vw.u.R.call(this);this.stop();delete this.b;delete this.qo};$.g.start=function(a){this.stop();this.fe=$.Dj(this.f,$.p(a)?a:this.i)};$.g.stop=function(){this.uq()&&$.Ej(this.fe);this.fe=0};$.g.uq=function(){return 0!=this.fe};$.g.Mfa=function(){this.fe=0;this.b&&this.b.call(this.qo)};$.H(xw,$.qf);xw.prototype.R=function(){Zd(this.j);xw.u.R.call(this)};xw.prototype.F=function(){this.f||(this.f=new vw(this.G,this.K,this),$.rd(this,this.f));this.f.start()};xw.prototype.G=function(){if(!this.i.md){var a=this.b,b=ww(this.i);this.b=b;if(a){var c=!1;a.width!=b.width&&(this.dispatchEvent("b"),c=!0);a.height!=b.height&&(this.dispatchEvent("a"),c=!0);c&&this.dispatchEvent("resize")}else this.dispatchEvent("a"),this.dispatchEvent("b"),this.dispatchEvent("resize")}};$.H(yw,$.qf);yw.prototype.R=function(){yw.u.R.call(this);this.i&&(Zd(this.i),this.i=null);this.b=this.f=null};yw.prototype.j=function(){var a=$.Ee(this.f||window);$.mb(a,this.b)||(this.b=a,this.dispatchEvent("resize"))};$.H(zw,uw);$.ja(zw);var Wda={position:"absolute","z-index":9999,left:"-10000px",top:"-10000px"},Xda={position:"absolute","z-index":9999,left:0,top:0},Yda={position:"fixed",left:0,top:0,opacity:1,"pointer-events":"none"},Zda={position:"fixed",left:0,top:0,opacity:1,width:"1px",height:"1px"},$da={position:"fixed",left:0,top:0,opacity:1,"pointer-events":"none",overflow:"",display:"",width:"",height:""}; +zw.prototype.R_=function(){var a=window.document;$.hd&&(!$.bd("7")||a.documentMode&&6>=a.documentMode)?$.uf(this.Ir,Xda):$.uf(this.Ir,Wda);"svg"==$.kk?($.uf(this.Ka().Tl(),kG),$.uf(this.Ka().ia(),Yda)):($.uf(this.Ka().Tl(),Zda),$.uf(this.Ka().ia(),$da));this.F()};zw.prototype.F=function(){if("svg"==$.kk){var a=this.f;a=a.b?a.b.clone():null;this.Ka().resize(a.width,a.height)}};zw.prototype.NA=function(){return!1};zw.prototype.R=function(){$.sd(this.i,this.f);this.f=this.i=null;zw.u.R.call(this)};$.H($.Ew,$.Y);$.Ew.prototype.sa=$.Y.prototype.sa|6080;var Bw=1988;$.Ew.prototype.qa=$.Y.prototype.qa|49152;var Cw=1,Dw=2;$.Ew.prototype.ba=$.Fq();$.U($.Ew,$.Ew.prototype.ba);var aea=$.Ew.prototype,lG={}; +$.Cq(lG,[[0,"width",$.lr],[0,"height",$.lr],[0,"titleFormat",$.kr],[0,"format",$.kr],[0,"unionFormat",$.kr],[0,"valuePrefix",$.Mq],[0,"valuePostfix",$.Mq],[0,"position",$.Ek],[0,"anchor",$.Dk],[0,"offsetX",$.Oq],[0,"offsetY",$.Oq],[0,"x",$.Oq],[0,"y",$.Oq],[0,"allowLeaveScreen",$.Qq],[0,"allowLeaveChart",$.Qq],[0,"allowLeaveStage",$.Qq],[0,"displayMode",function(a){return $.zk(Fda,a,"single")}],[0,"positionMode",function(a){return $.zk(Gda,a,"float")}],[0,"onDomReady",$.qr],[0,"onBeforeTitleChange", +$.qr],[0,"onTitleChanged",$.qr],[0,"onBeforeContentChange",$.qr],[0,"onContentChanged",$.qr],[0,"hideDelay",$.Oq]]);aea.OQ=lG;$.U($.Ew,$.Ew.prototype.OQ);$.g=$.Ew.prototype;$.g.Lc=function(a,b){for(var c in this.j){var d=this.j[c];d&&d.Lc(a,b)}return Tw(this,a,b)}; +$.g.Zd=function(a,b){if($.p(a)){if($.z(a))if($.p(b)&&a in this.ba)this[a](b);else return this.g(a);else{this.ka();for(var c in a)if(c in this.ba)this[c](a[c]);this.da(!0)}return this}var d={};for(c in this.ba){var e=this.g(c);$.p(e)&&(d[c]=e)}return d};$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.K(this.Wa,this.Wia,this),$.W(this,"padding",this.Wa));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa};$.g.Wia=function(a){$.X(a,2)&&(this.xE(),this.B(Bw,1))}; +$.g.background=function(a){this.Ia||(this.Ia=new $.Iu,$.K(this.Ia,this.vg,this),this.Ia.kb(this),$.W(this,"background",this.Ia));return $.p(a)?(this.Ia.N(a),this):this.Ia};$.g.vg=function(a){$.X(a,1)&&this.B(1024,1)};$.g.title=function(a){this.jb||(this.jb=new $.iw,$.K(this.jb,this.gB,this),this.jb.kb(this),$.W(this,"title",this.jb));return $.p(a)?(this.jb.N(a),this):this.jb};$.g.gB=function(a){$.X(a,8)?(this.xE(),this.B(Bw,1)):$.X(a,1)&&this.B(128,1)}; +$.g.$r=function(a){this.aa||(this.aa=new gw,$.K(this.aa,this.jja,this),this.aa.kb(this),$.W(this,"separator",this.aa));return $.p(a)?(this.aa.N(a),this):this.aa};$.g.jja=function(a){$.X(a,8)?(this.xE(),this.B(Bw,1)):$.X(a,1)&&this.B(256,1)}; +$.g.W=function(){$.Sw(this);var a=this.g("useHtml");if(a){if(this.pf()||this.md)return this;if(!this.enabled())return this.J(1)&&(this.remove(),this.I(1),this.B(2)),this;if(!this.i.O())return this.remove(),this.I(2),this;this.I(1)}else if(!this.zc())return this;var b=this.background(),c=this.title(),d=this.$r(),e=this.Ri();Qw(this,this);this.J(8)&&(Pw(this).zIndex(this.zIndex()),this.I(8));if(this.J(4)){Zw(this);var f=this.P;this.na=this.padding().Ej(f);this.Ja=this.ea=null;this.I(4)}this.J(64)&& +(this.G=null,$w(this),a?this.i.WP():Pw(this).pc(1,0,0,1,this.G.x,this.G.y),this.I(64));a?tw(this.i):(this.J(1024)&&(b.ka(),b.ja(this.P),b.O(Pw(this)),b.W(),b.da(!1),this.I(1024)),this.J(128)&&(c.ka(),c.ja(this.na),c.W(),c.da(!1),!this.ea&&c.enabled()&&(this.ea=c.zd()),this.I(128)),this.J(256)&&(d.ka(),d.ja(this.ea||this.na),d.W(),d.da(!1),!this.Ja&&d.enabled()&&(this.Ja=d.zd()),this.I(256)),this.J(512)&&(a=this.Ja||this.ea||this.na,e.ka(),this.bi(),e.ja(a),e.W(),e.da(!1),this.I(512)),this.J(4096)&& +this.I(4096));return this};$.g.ya=function(a){return $.p(a)?(this.ra=a,this):this.ra};$.g.WP=function(a,b){var c=this.g("displayMode");"single"==c&&(Jw(this,this.b,a,b),Rw(this.b,a,b));if("union"==c)Jw(this,this.b,a,b),Rw(this.b,a,b);else if("separated"==c)for(var d in this.j)if(c=this.j[d])Uw(this,c,a,b),Rw(c,a,b)}; +$.g.Ri=function(a){this.Rd||(this.Rd=new $.Fv,$.K(this.Rd,this.Kia,this),this.Rd.kb(this),this.Rd.width("100%").height("100%"),$.W(this,"contentInternal",this.Rd));return $.p(a)?(this.Rd.N(a),this):this.Rd};$.g.Kia=function(a){$.X(a,8)?(this.xE(),this.B(Bw,1)):$.X(a,1)&&this.B(512,1)};$.g.xE=function(){this.G=this.P=null};$.g.remove=function(){this.g("useHtml")&&this.i&&this.i.remove();Pw(this).parent(null)};$.g.Wj=function(){return this.Xa||this.check(Cw)&&!$.Jc(this.j)}; +$.g.ob=function(){this.G=null;$w(this);var a=this.g("useHtml"),b=a?0:this.g("offsetX");a=a?0:this.g("offsetY");return new $.I(this.G.x+b,this.G.y+a,this.P.width,this.P.height)};$.g.yi=function(){Zw(this);return this.P};$.g.bi=function(){if(this.J(512)){this.Ri().ka();for(var a in this.ba){var b=this.g(a);$.p(b)&&this.Ri().Zd(a,b)}this.Ri().adjustFontSize(this.g("adjustFontSize"));this.Ri().minFontSize(this.g("minFontSize"));this.Ri().maxFontSize(this.g("maxFontSize"));this.Ri().da(!1)}}; +$.g.tL=function(){this.F&&this.F.uq()?this.$a=!0:($.qd(this.F),this.F=new vw(function(){this.remove();this.$a&&(this.$a=!1,this.tL())},this.g("hideDelay"),this))};$.g.ZN=function(a){if(Xw(this,a.clientX,a.clientY))this.f.NA()||this.f.Hm(!0);else{$.Yd(window.document,"mousemove",this.ZN,!1,this);var b=Pw(this).ia();b&&($.Yd(b,"mouseenter",this.vY,!1,this),$.Yd(b,"mouseleave",this.wY,!1,this));this.eN(a)}}; +$.g.vY=function(){$.Yd(window.document,"mousemove",this.ZN,!1,this);Pw(this).ia()&&$.Yd(Pw(this).ia(),"mouseenter",this.vY,!1,this);this.K=null};$.g.wY=function(a){Pw(this).ia()&&$.Yd(Pw(this).ia(),"mouseleave",this.wY,!1,this);this.eN(a)};$.g.eN=function(a){if(2==a.kf.buttons)return!0;this.f.NA()||this.f.Hm(!1);Pw(this).ia()&&$.Yd(Pw(this).ia(),"mouseleave",this.eN,!1,this);this.K=null;this.g("hideDelay")?(this.tL(),this.F.uq()||this.F.start()):this.Lc(!0)}; +$.g.parent=function(a){if($.p(a)){if(this.Y!=a){var b=String($.oa(this));null===a?($.ur(this.Y,this.Tc,this),this.title().parent(null),this.$r().parent(null),this.background().parent(null),this.padding().parent(null),this.Ri().parent(null),this.Ri().padding().parent(null),delete this.Y.j[b],this.Y=null):(this.Y&&$.ur(this.Y,this.Tc,this),this.Y=a,this.title().df().parent(this.Y.title()),this.$r().df().parent(this.Y.$r()),this.background().df().parent(this.Y.background()),this.padding().parent(this.Y.padding()), +this.Ri().parent(this.Y.Ri()),this.Ri().padding().parent(this.Y.Ri().padding()),this.Y.j[b]=this,this.aL(),$.K(this.Y,this.Tc,this))}return this}return this.Y};$.g.Tc=function(a){var b=0,c=0;this.aL();if($.X(a,8)||$.X(a,1))b|=Bw,c|=8,this.xE();$.X(a,32768)&&(b|=1,c|=1);this.Xb=null;this.B(b,c)};$.g.ph=function(a){return null!=this.Pa[a]};$.g.g=$.sr;$.g.check=function(a){return $.p(a)?!!(a&this.eb):!0}; +$.g.aL=function(){if(this.g("useHtml")){if(!fF){fF=!0;var a=$.ye(),b=$.Ae(a.b,"HEAD",void 0,void 0)[0];if(!b){var c=$.Ae(a.b,"BODY",void 0,void 0)[0];b=a.Ac("HEAD");c.parentNode.insertBefore(b,c)}c=a.Ac("STYLE");c.innerHTML=".anychart-tooltip {border-radius: 3px;padding: 5px 10px;background: rgba(33, 33, 33, 0.7);border: none;display: inline-block;box-sizing: border-box;letter-spacing: normal;color: #fff;font-family: Verdana, Helvetica, Arial, 'sans-serif';font-size: 12px;position: absolute;pointer-events: none;margin: 10px 0px 10px 10px;}.anychart-tooltip-separator {color: rgba(206, 206, 206, 0.3);border: none;height: 1px;margin: 5px 0;}.anychart-tooltip-title{font-size: 14px;}"; +a.Wga(b,c,0)}this.i||(this.i=new qw(this))}else this.i&&this.i.remove();for(var d in this.j)this.j[d].aL();this.G=this.P=null};$.g.jg=function(a){$.p(a)&&(this.Xb=a);return this.Xb};$.g.bh=function(){var a=this.jg();a||(a=$.Ga(this.Wd(),[this.Ha],this.Xd()),this.jg(a));return a};$.g.Xd=function(){var a=[this.oa];this.Y&&(a=$.Ga(a,this.Y.Xd()));return a};$.g.Wd=function(){var a=[this.Pa];this.Y&&(a=$.Ga(a,this.Y.Wd()));return a}; +$.g.D=function(){var a=$.Ew.u.D.call(this);$.cr(this,this.ba,a,void 0,void 0,!0);$.cr(this,this.OQ,a,void 0,void 0,!0);delete a.x;delete a.y;delete a.zIndex;var b=this.title().D();$.Jc(b)||(a.title=b);b=this.$r().D();$.Jc(b)||(a.separator=b);b=this.background().D();$.Jc(b)||(a.background=b);b=this.padding().Pa;$.Jc(b)||(a.padding=b);return a}; +$.g.U=function(a,b){$.Ew.u.U.call(this,a,b);$.Vq(this,this.ba,a,b);$.Vq(this,this.OQ,a,b);this.title().ga(!!b,a.title);this.$r().ga(!!b,a.separator);this.background().ga(!!b,a.background);this.padding().ga(!!b,a.padding);var c=a.contentInternal||{};c.position=c.position?c.position:"left-top";c.anchor=c.anchor?c.anchor:"left-top";this.Ri(c)}; +$.g.R=function(){delete this.Pa;delete this.oa;if(this.Y){var a=String($.oa(this));$.ur(this.Y,this.Tc,this);delete this.Y.j[a]}for(var b in this.j)(a=this.j[b])&&$.qd(a);this.f&&!this.f.NA()&&this.O(null);$.sd(this.jb,this.aa,this.Rd,this.Ia,this.Wa,this.Oa,this.F,this.i);this.i=this.F=this.Oa=this.Wa=this.Ia=this.Rd=this.aa=this.jb=null;if(this.f&&this.f.NA()&&ax(this)){a=!0;for(b in Aw)if(Aw.hasOwnProperty(b)){var c=Aw[b];if(c!=this&&this.f==c.f){a=!1;break}}a&&(b=bx(this),delete cx[b],$.qd(this.f))}delete this.f; +delete Aw[String($.oa(this))];$.Ew.u.R.call(this)};var mG=$.Ew.prototype;mG.title=mG.title;mG.separator=mG.$r;mG.background=mG.background;mG.padding=mG.padding;mG.hide=mG.Lc;mG.textSettings=mG.Zd;$.H($.dx,Bv);$.dx.prototype.qa=Bv.prototype.qa; +var nG=function(){function a(a){return function(b){var c="itemsSpacing"==a?(0,window.parseFloat)(b):Number(b);return null===b?this.vf(a):(0,window.isNaN)(c)?this.g(a):c}}var b={};$.Cq(b,[[0,"inverted",$.Qq],[0,"itemsLayout",eba],[0,"iconSize",$.N],[0,"width",$.Pq],[0,"height",$.Pq],[0,"maxWidth",$.Pq],[0,"maxHeight",$.Pq],[0,"position",function(a){return $.C(a)?(a.x=$.L(a.x)||0,a.y=$.L(a.y)||0,a):$.Hk(a)}],[0,"positionMode",hba],[0,"drag",$.Qq],[0,"itemsFormat",$.Pq],[0,"titleFormat",$.Pq],[0,"itemsHAlign", +Fk],[0,"itemsSpacing",a("itemsSpacing")],[0,"itemsSourceMode",pba],[0,"hoverCursor",Ck],[0,"iconTextSpacing",a("iconTextSpacing")],$.Z.eK]);return b}();$.U($.dx,nG);$.g=$.dx.prototype;$.g.sa=Bv.prototype.sa|4032;$.g.items=function(a){return $.p(a)?(this.Ja!=a&&(this.Ja=a,this.B(1040,1)),this):this.Ja};$.g.RA=function(a){return $.p(a)?(a=$.A(a)?$.Ja(a,0):null===a?a:[a],ex(this,a)||(this.f=a,this.B(1040,1)),this):this.f}; +$.g.qR=function(a){return $.p(a)?(this.aa!=a&&(this.aa=a,this.B(1040,1)),this):this.aa};$.g.margin=function(a,b,c,d){this.Qc||(this.Qc=new $.Uv,$.K(this.Qc,this.Pk,this),$.W(this,"margin",this.Qc));return $.p(a)?(this.Qc.N.apply(this.Qc,arguments),this):this.Qc};$.g.Pk=function(a){$.X(a,2)&&this.B(4,9)};$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.K(this.Wa,this.Pk,this),$.W(this,"padding",this.Wa));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa}; +$.g.background=function(a){this.Ia||(this.Ia=new $.Iu,$.K(this.Ia,this.vg,this),$.W(this,"background",this.Ia));return $.p(a)?(this.Ia.N(a),this):this.Ia};$.g.vg=function(a){$.X(a,1)&&this.B(64,1)};$.g.title=function(a){this.jb||(this.jb=new $.iw,$.K(this.jb,this.Mq,this),this.jb.kb(this),$.W(this,"title",this.jb));return $.p(a)?(this.jb.N(a),this):this.jb};$.g.Mq=function(a){var b=0,c=0;$.X(a,1)&&(b|=128,c|=1);$.X(a,8)&&(b|=4,c|=8);this.B(b,c)}; +$.g.uY=function(a){this.i||(this.i=new gw,$.K(this.i,this.fla,this),$.W(this,"titleSeparator",this.i));return $.p(a)?(this.i.N(a),this):this.i};$.g.fla=function(a){var b=0,c=0;$.X(a,1)&&(b|=256,c|=1);$.X(a,8)&&(b|=4,c|=8);this.B(b,c)};$.g.WI=function(a){this.K||(this.K=new $v,$.K(this.K,this.tja,this),$.W(this,"paginator",this.K));return $.p(a)?(this.K.N(a),this):this.K};$.g.tja=function(a){var b=0,c=0;$.X(a,1)&&(b|=512,c|=1);$.X(a,8)&&(b|=4,c|=8);this.B(b,c)}; +$.g.Ua=function(a){this.gb||(this.gb=new $.Ew(0),$.K(this.gb,this.Ap,this),$.Iw(this.gb,this),this.gb.Ga($.Er.tooltip),$.W(this,"tooltip",this.gb),this.gb.ga(!0,this.gb.oa));return $.p(a)?(this.gb.N(a),this):this.gb};$.g.Ap=function(){var a=this.Ua();a.O()&&a.W()};$.g.ja=function(a,b,c,d){return $.dx.u.ja.call(this,a,b,c,d)}; +$.g.zd=function(){var a=this.ja()||$.rn(0,0,0,0);if(!this.enabled()||"inside"==this.g("positionMode"))return a;this.ac&&!this.J(4)||this.Mm();var b=this.g("position");if($.C(b))return a;switch(b){case "top":a.top+=this.ac.height;a.height-=this.ac.height;break;case "right":a.width-=this.ac.width;break;default:case "bottom":a.height-=this.ac.height;break;case "left":a.left+=this.ac.width,a.width-=this.ac.width}return a};$.g.ob=function(){this.ac&&!this.J(4)||this.Mm();return this.ac}; +$.g.R5=function(a){if(void 0===this.Na)this.AW=!0,this.zW=[a];else{this.AW=!1;this.zW=null;var b=this.ob(),c=this.ja();this.ea=a.x;this.na=a.y;this.EG=!0;this.Lb=(this.ea-c.left)/c.width;this.mc=(this.na-c.top)/c.height;this.$b=(c.width-(this.ea-c.left+b.width))/c.width;this.rb=(c.height-(this.na-c.top+b.height))/c.height;this.B(4,1)}};$.g.Baa=function(){if(void 0===this.Na)return null;var a=this.Na.Qd;return{x:a.Kd,y:a.Gd}}; +$.g.Mm=function(){var a=this.ja();null!=a&&0>=a.width&&0>=a.height&&(a=null);var b=this.margin(),c=this.padding(),d=0,e=0,f=this.g("width"),h=this.g("height"),k=this.g("maxWidth"),l=this.g("maxHeight");if(a){var m=a.width;var n=a.height;if(null!=f){var q=Math.min(m,$.L(f,m),null!=k?$.L(k,m):m);k=c.Ng(b.Ng(q))}else k=null!=k?c.Ng(b.Ng($.L(k,m))):c.Ng(b.Ng(m));if(null!=h){var r=Math.min(n,$.L(h,n),null!=l?$.L(l,n):n);var t=c.Yh(b.Yh(r))}else t=null!=l?c.Yh(b.Yh($.L(l,n))):c.Yh(b.Yh(n))}else $.ea(f)&& +!(0,window.isNaN)(f)?(q=f,k=c.Ng(f)):k=$.ea(k)&&!(0,window.isNaN)(k)?c.Ng(k):window.Infinity,$.ea(h)&&!(0,window.isNaN)(h)?(r=h,t=c.Yh(h)):t=$.ea(l)&&!(0,window.isNaN)(l)?c.Yh(l):window.Infinity;var u,v;h=$.Gr(this,"titleSeparator");l=$.Gr(this,"paginator");f=$.Gr(this,"title");var w=l&&l.g("orientation"),x="bottom"==w||"top"==w,y=f&&(f.g("orientation")||$.lw(f));y=y&&("bottom"==y||"top"==y);var B=f?0==f.AA()%180:0,F=h&&h.Ob();h&&h.ka();l&&l.ka();f&&f.ka();var G=u=null;do{u&&(G=u);var M=v=0,O=0,Q= +0;if(f&&f.enabled()){f.ja(null);kw(f,null);f.zB(null);var S=f.yi();y?(S.width>k&&(B?kw(f,k):f.zB(k),S=f.yi()),Q=S.width,v+=S.height):(S.height>t&&(B?f.zB(t):kw(f,t),S=f.yi()),O=S.height,M+=S.width)}else S=null;h&&h.enabled()?(h.ja(null),u=h.yi(),F?v+=u.height:M+=u.width):u=null;var wa=k-M;var sa=Gca(this,wa,t-v);var Qa=sa.width;sa=sa.height;v+=sa;M+=Qa;O=Math.max(O,sa);Q=Math.max(Q,Qa);M=Math.max(Q,M);Q=Math.max(O,v);O=t;y&&(O-=S?S.height:0);F&&(O-=u?u.height:0);l.ja(null);v=fw(l,1);var xb=this.g("itemsLayout"); +if("horizontal"==xb)Qa>wa&&this.Ub&&1wa&&1O&&this.Ub&&1=k-S.width?mc=hb:mc=Qa;S=Math.max(Math.min(f.text().length,1),f.margin().Ng(M-xb<=mc?M-mc:xb));kw(f,S)}else if(!B&&Q>t){S=0;u&&F&&(S+=u.height);if("top"==w||"bottom"==w)S+=v.height;Qa=dw(l)&&!x?v.height:0;Qa=Math.max(this.Ub&&this.Ub.length?this.Ub[0].ob().height:0,Qa);S=Math.max(1,f.margin().Yh(t-S-Qa));B?f.zB(S):kw(f,S)}S=f.yi();h&&(h.width(wa),u=h.yi())}else S=f.yi(),h&&(h.width(sa),u=h.yi());y?O-=S.height:M-=S.width}h&&h.enabled()&&(F?O-=u.height:M-=u.width);S=M;u=O;dw(l)&&(x?u=O-v.height: +S=M-v.width);Qa=S;M=u;this.b=[];u=0;O=this.Ub&&this.Ub.length;v=this.g("itemsSpacing");for(S=0;SQa?(u++,this.b[u]=[],this.b[u][0]=this.Ub[S],M=this.Ub[S].ob().Ad()):(M=M+v+this.Ub[S].ob().Ad(),this.b[u].push(this.Ub[S])));break;case "vertical":Qa=this.Ub[S].ob().qd();S+=1;for(O=this.Ub.length;S< +O;S++)S in this.G||(Qa+v+this.Ub[S].ob().qd()>M?(u++,this.b[u]=[],this.b[u][0]=this.Ub[S],Qa=this.Ub[S].ob().qd()):(Qa=Qa+v+this.Ub[S].ob().qd(),this.b[u].push(this.Ub[S])));break;case "horizontal-expandable":var dc=this.Ub[S].ob().Ad()+v,Ib=this.Ub[S].ob().qd()+v,Ac=0;for(S+=1;SQa?(Ac+=Ib,Ac+Q>M?(u++,this.b[u]=[],this.b[u][0]=hb,Ac=0):this.b[u].push(hb),dc=xb+v,Ib=Q+v):(dc+=xb+v,Ib=Math.max(Ib,Q+v),this.b[u].push(hb)));break; +case "vertical-expandable":for(dc=this.Ub[S].ob().Ad()+v,Ib=this.Ub[S].ob().qd()+v,Ac=0,S+=1;SM?(Ac+=dc,Ac+xb>Qa?(u++,this.b[u]=[],this.b[u][0]=hb,Ac=0):this.b[u].push(hb),dc=xb+v,Ib=Q+v):(dc=Math.max(dc,xb+v),Ib+=Q+v,this.b[u].push(hb)))}(v=$.Gr(this,"paginator"))&&Vv(v,u+1);l.ja(null);u=l.ob()}while(!$.nb(G,u));q||(q=wa);r||(r=sa);this.ac=new $.I(d,e,q,r);if(this.EG)d=this.Lba.cb()&&(d=a.cb()-q),ea.Va()&&(e=a.Va()-r));else if(a){b=this.g("position");c=this.g("align");d=a.tb();e=a.Vb();switch(b){case "left":case "right":switch(c){case "center":e+=(n-r)/2;break;case "right":case "bottom":e=a.Va()-r}break;case "top":case "bottom":switch(c){case "center":d+=(m-q)/2;break;case "right":case "bottom":d= +a.cb()-q}}switch(b){case "right":d=a.cb()-q;break;case "bottom":e=a.Va()-r}}else d=$.L(b.g("left"),0),e=$.L(b.g("top"),0);this.ac.left=d;this.ac.top=e;this.padding().Ej(this.margin().Ej(this.ac));a=this.ac.clone();a.left=0;a.top=0;this.Ha=this.margin().Ej(a);this.Pd=this.padding().Ej(this.Ha);h&&h.da(!1);l&&l.da(!1);f&&f.da(!1);this.I(4)};$.g.remove=function(){this.Na&&this.Na.parent(null)}; +$.g.W=function(){if(!this.zc())return this;this.Na||(this.Na=$.ok(),$.Bu(this,this.Na),this.ba||(this.ba=$.ok(),this.ba.parent(this.Na).zIndex(20)));this.J(8)&&(this.Na.zIndex(this.zIndex()),this.I(8));var a=this.O(),b=a?a.Ka():null;this.J(2)&&(this.Na.parent(a),this.I(2),"svg"==$.kk&&(this.P=$.mg(),a=this.P.Wp(),this.F=this.P.Wo(),a.appendChild(this.F)));(a=b&&!b.yf())&&b.suspend();this.J(1024)&&(this.$a=!0,this.I(1024));if(this.J(16)){var c=this.qR(),d=Hca(this);this.g("inverted")&&(d=d.reverse()); +d=$.D(c)?c(d):d;this.Ub&&this.Ub.length!=d.length&&(this.$a=!0);c=Ica(this,d);Jca(this,c);this.I(16)}this.AW&&this.R5.apply(this,this.zW);Kca(this);if(this.J(4)){if(this.Ub&&"..."==this.g("textOverflow"))for(c=0,d=this.Ub.length;ca.nearestPointToCursor.distance&&(a.series.$().select(a.nearestPointToCursor.index),f=a)});"single"==this.gb.g("displayMode")?$.Vw(this.gb,[f],a.originalEvent.clientX, +a.originalEvent.clientY,f.series,this.Uu()):$.Vw(this.gb,b,a.originalEvent.clientX,a.originalEvent.clientY,f.series,this.Uu())}}};$.g.QJ=function(a){this.gb.WP(a.clientX,a.clientY)};$.g.Uu=function(){return!1};$.g.contextMenu=function(a){this.sk||(this.sk=$.oq.ui.contextMenu(!!$.C(a)&&a.fromTheme))&&this.sk.itemsProvider(this.sS);return $.p(a)?(this.sk&&this.sk.setup(a),this):this.sk}; +$.g.sS=function(a){var b=a.event?a.event.target.Zi():null,c=a.event?$.zo(a.event.domTarget):null;b=$.C(c)&&$.p(c.X)&&c.X.seriesType&&$.p(c.index)||b&&b.seriesType;c={};$.oq.exports&&$.Sc(c,$.Zl($.tG.exporting));$.Tj()&&a.menuParent&&$.Sc(c,$.Zl($.tG[a.menuParent.fullScreen()?"full-screen-exit":"full-screen-enter"]));$.Sc(c,$.Zl($.tG.main));return a.menuParent.ix(c,a,b)};$.g.ix=function(a){return a};$.g.uO=ba(16); +$.g.MM=function(){var a=[],b,c,d,e=this.Ue();for(c=0;cn.Tf||!d)d=m.X,e=n.index,f=$.Aa(m.wd,n.index),h=n.Tf}}a={index:e,series:d};a[b]=c?!f:f;return a}; +$.g.cl=function(a,b,c,d,e){var f=this.XD(c,a,d),h=[];if(!d)for(var k=0;ky.De.Tf&&(x=y))}r=x.X;l=$.Ax(r.state,$.Do);v=1==l.length&&l[0]==x.De.index;k=!v||v&&f;if(d=f)d=!!(r.state.fk()&$.Do);!d&&f||v||r.ie();r.Ii(x.De.index,a);l=$.Ax(r.state,$.Do);if(l.length)for(e.push({X:r,wd:[x.De.index],De:x.De}),m=b.Ue(),h=0;he?c+e:c,l=0>f?d+f:d;return{type:a,offsetX:h.offsetX,offsetY:h.offsetY,clientX:h.clientX,clientY:h.clientY,screenX:h.screenX,screenY:h.screenY,button:h.button,actionButton:h.actionButton,keyCode:h.keyCode,charCode:h.charCode,ctrlKey:h.ctrlKey,altKey:h.altKey,shiftKey:h.shiftKey,metaKey:h.metaKey,platformModifierKey:h.platformModifierKey,clientStartX:c+b.x,clientStartY:d+b.y,clientLeft:k+b.x,clientTop:l+b.y,startX:c,startY:d,left:k,top:l, +width:Math.abs(e),height:Math.abs(f)}};$.g.fja=function(a,b,c,d,e,f){return this.dispatchEvent(this.aA("selectmarqueestart",a,b,c,d,e,f))};$.g.dja=function(a,b,c,d,e,f){return this.dispatchEvent(this.aA("selectmarqueechange",a,b,c,d,e,f))};$.g.eja=function(a,b,c,d,e,f){a=this.aA("selectmarqueefinish",a,b,c,d,e,f);(b=this.dispatchEvent(a))&&this.$O(a);this.nB=!1;return b};$.g.$O=function(){}; +$.g.fullScreen=function(a){var b=this.O();b=b?b.Ka():null;return $.p(a)?(b&&b.fullScreen(a),this):b?b.fullScreen():!1};$.g.Jy=function(){var a=this.O();return(a=a?a.Ka():null)?a.Jy():!1};$.g.RG=function(a){var b=$.fa.anychart.exports;b?this.Tt||(this.Tt=b.create()):$.il(4,null,["Exporting"]);return $.p(a)&&this.Tt?(this.Tt.U(a),this):this.Tt};$.g.ts=function(){return this.Ue()};$.g.k2=function(){var a=$.Ga.apply(null,(0,$.Wa)(this.ts(),function(a){return a.data().Wv()}));$.Ka(a,a,$.xo);return a}; +$.g.SW=function(a,b,c){var d;if($.A(b))for(d=0;da&&(a=-3),$.p(d.axis)&&d.axis===d.HORIZONTAL_AXIS?b=a:c=a);$.ea(this.i)&&(b=$.Za(b,-this.i,this.i));$.ea(this.j)&&(c=$.Za(c,-this.j,this.j));this.F&&(b=-b);b=new Ox(a,d,b,c);this.dispatchEvent(b)};$.Mx.prototype.R=function(){$.Mx.u.R.call(this);Zd(this.f);this.f=null};$.H(Ox,$.Bd);$.H($.Px,$.V);$.Px.prototype.qa=$.V.prototype.qa|32779;$.Px.prototype.ys=function(a){var b=$.Px.u.ys.call(this,a),c=this.flatten().enabled;"enabled"==a?(b=32768,c&&(b|=this.f,this.f=0)):c||(this.f|=b);return b};var zG={}; +$.Cq(zG,[[0,"format",$.kr],[1,"adjustFontSize",Iq],[0,"fontVariant",$.dl],[0,"letterSpacing",$.Gq],[0,"textDirection",$.el],[0,"textIndent",$.Oq],[0,"textShadow",$.Zb],[0,"textOverflow",$.ir],[0,"useHtml",$.Qq],[0,"wordBreak",$.Pq],[0,"wordWrap",$.Pq],[0,"fontColor",$.Nq],[0,"fontDecoration",$.bl],[0,"fontFamily",$.Mq],[0,"fontOpacity",$.Oq],[0,"fontSize",$.Gq],[0,"fontStyle",$.cl],[0,"fontWeight",$.Gq],[0,"hAlign",$.$k],[0,"lineHeight",$.Gq],[0,"minFontSize",$.Gq],[0,"maxFontSize",$.Gq],[0,"maxLength", +$.Hq],[0,"vAlign",$.al],[0,"anchor",$.Dk],[0,"height",$.lr],[0,"offsetX",$.lr],[0,"offsetY",$.lr],[0,"position",$.Ek],[0,"rotation",$.Oq],[0,"width",$.lr],[0,"zIndex",$.Oq],[0,"allowMultiline",$.ir],[0,"clip",$.Pq],[0,"enabled",$.ir],[0,"selectable",$.Qq],[0,"disablePointerEvents",$.Qq],[0,"autoRotate",$.Qq]]);$.U($.Px,zG);$.g=$.Px.prototype; +$.g.parent=function(a){return $.p(a)?(this.Y!=a&&(null===a?($.ur(this.Y,this.Tc,this),this.padding().parent(null),this.Y=null):(this.Y&&$.ur(this.Y,this.Tc,this),this.Y=a,this.padding().parent(this.Y.padding()),$.K(this.Y,this.Tc,this),this.Ug())),this):this.Y};$.g.Tc=function(a){this.Ug();this.va(a.f)};$.g.g=$.sr;$.g.jg=function(a){$.p(a)&&(this.Xb=a);return this.Xb};$.g.bh=$.rr;$.g.Xd=function(){var a=[this.oa];this.Y&&(a=$.Ga(a,this.Y.Xd()));return a}; +$.g.Wd=function(){var a=[this.Pa];this.Y&&(a=$.Ga(a,this.Y.Wd()));return a};$.g.Ug=function(){this.b=null};$.g.flatten=function(){if(!this.b){this.b={};for(var a in zG)zG.hasOwnProperty(a)&&(this.b[a]=this.g(a))}return this.b};$.g.UK=function(a){var b=this.flatten().maxLength;return a=Nu(a,b)};$.g.uk=function(a){var b=this.g("format")||$.np;$.z(b)&&(b=$.Xu($.Vu.vd(),b));a=b.call(a,a);a=$.p(a)?String(a):"";return this.UK(a)}; +$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.W(this,"padding",this.Wa),$.K(this.Wa,this.fm,this));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa};$.g.fm=function(){this.va(2)};$.g.background=function(a){this.Ia||(this.Ia=new $.Iu);return $.p(a)?this:this.Ia};$.g.Le=function(a,b){return $.da(b)?(this.enabled(b),!0):!1};$.g.U=function(a,b){$.Px.u.U.call(this,a,b);$.Vq(this,zG,a,b);this.padding().ga(!!b,a.padding)}; +$.g.D=function(){var a=$.Px.u.D.call(this);$.cr(this,zG,a,void 0,void 0,!0);var b=$.Gr(this,"padding");b&&(b=$.Qc(b.Pa),$.Jc(b)||(a.padding=b));return a};$.g.R=function(){this.b=null;this.parent(null);$.sd(this.Wa,this.Ia);this.Ia=this.Wa=null;$.Px.u.R.call(this)};var AG=$.Px.prototype;AG.padding=AG.padding;AG.background=AG.background;$.g=$.Qx.prototype;$.g.width=function(){return this.Ta?this.Ta.width:0};$.g.height=function(){if(this.Ta)var a=this.Ta.height;else if(this.b.length)for(var b=a=0;ba?a+3:Math.round(1.2*a),this.aa=Math.round(.8*this.Ha)));return this}return this.f};$.g.nK=function(a){this.Ba+=a};$.g.mK=function(){this.Ba+="\n"};$.g.oM=function(){this.text(this.Ba);this.Ba="";Tx(this)}; +$.g.text=function(a){return $.p(a)?(a=ic(a),a=$.hc(a),this.kc!=a&&(this.ho.text=!0,this.kc=a),this):this.kc};$.g.Ac=function(){this.ia=this.P.Ux()};$.g.Vd=function(){this.ia||this.Ac();return this.ia}; +$.g.Ij=function(){var a;if(this.na||this.ea)for(this.G&&this.G.Ij(),this.K&&this.K.Ij(),a=0;ae?h+e+270:h+e+90:h,h=$.p(c)&&c.anchor||this.g("anchor");a=$.gv(this,a,b,c,d);b=f;c=$.Lo(a,h);b=$.Kb($.bb(b),c.x,c.y);a=$.sn(a)||[];b.transform(a, +0,a,0,4);return a};$.jy.prototype.uL=function(){return new $.ky};$.H($.ky,$.cv);var cea=$.ky.prototype,CG=$.Qc($.cv.prototype.oC);$.Bq(CG,0,"autoRotate",$.Qq);cea.oC=CG;$.U($.ky,$.ky.prototype.oC);$.ky.prototype.AA=function(a){var b=this.ic("rotation");return this.ic("autoRotate")?0a?b+a+270:b+a+90:b}; +$.ky.prototype.tf=function(a,b){this.b||$.dv(this);var c=this.b.positionFormatter,d=this.xb.path()?"center":$u(this.b.anchor)||"left-top",e=this.b.offsetX||0,f=this.b.offsetY||0,h=this.gp,k=this.jc(),l=$.Qc(c.call(k,k));c=l.angle;k=l.radius;l=$.p(l.radiusY)?l.radiusY:k;var m=0,n=0,q=h.Dc(),r=h.uc(),t=h.fz();h=h.Ty();if(b||!(0,window.isNaN)(q)&&!(0,window.isNaN)(r)){m=b.left;n=b.top;var u=b.width,v=b.height;m=(0,window.isNaN)(q)?m+u/2:q;n=(0,window.isNaN)(r)?n+v/2:r;f=$.p(h)&&!(0,window.isNaN)(h)? +$.L(f,h):b?$.L(f,Math.min(u,v)/2):0;c+=$.L(e,null!=t?t:360);k+=f;l+=f}e=m+$.db(c,k);f=n+$.eb(c,l);d=$.Lo(new $.I(0,0,a.width,a.height),d);e-=d.x;f-=d.y;this.Lg+=e;this.Mg+=f;a.left=e;a.top=f;this.b.rotation=this.AA(c);this.xr?this.xb.x(this.Lg).y(this.Mg):this.xb.setPosition(this.Lg,this.Mg)};$.H($.ly,$.Y);var dea=function(){var a={};$.Cq(a,[$.Z.yz,$.Z.Yn,$.Z.CQ,$.Z.DQ,$.Z.lZ,$.Z.HQ,[0,"position",$.Nq],[0,"size",$.Hq],[0,"anchor",function(a){return null===a?a:$.Dk(a)}],[0,"type",function(a){$.D(a)||(a=$.Ok(a));return a}]]);return a}();$.U($.ly,dea);$.g=$.ly.prototype;$.g.qa=$.Y.prototype.qa;$.g.sa=$.Y.prototype.sa|80;$.g.JT=function(){$.ly.u.JT.call(this);for(var a in this.oa)a in this.ua&&(this.b[a]=!0)}; +$.g.enabled=function(a){return $.p(a)?(null===this.j&&a&&this.B(1,this.mr()),this.j=a,this.WE=null!==this.Pa.enabled,$.ly.u.enabled.call(this,a),this):this.j};$.g.Ma=function(){return this.Pa.type||this.oa.type};$.g.Tm=function(){return $.p(this.Pa.fill)?this.Pa.fill:this.oa.fill};$.g.oJ=function(a){this.F=a};$.g.g=function(a){var b=$.ly.u.g.call(this,a);b||("stroke"==a?b=this.G||"none":"fill"==a?b=this.F||"black":"type"==a&&(b=this.VF||"diagonal-cross"));return b}; +$.g.ta=function(a,b){$.ly.u.ta.call(this,a,b);this.b[a]=!0};$.g.gk=function(){return $.p(this.Pa.stroke)?this.Pa.stroke:this.oa.stroke};$.g.pJ=function(a){this.G=a};$.g.Ed=function(a){return $.p(a)?(this.QL=a,this.B(16,1),this):this.QL}; +$.g.measure=function(a){this.i||(this.i=$.qk());var b=this.ja();if(b){var c=b.width;var d=b.height}var e=this.g("type");var f=this.g("size");b=this.g("anchor");var h=this.g("offsetX"),k=this.g("offsetY");e=$.z(e)?$.Jp(e):e;this.i.clear();e.call(this,this.i,0,0,f);f=this.i.sb();a=$.Qc(this.g("positionFormatter").call(a,a));a=new $.gb(a.x,a.y);e=$.Lo(new $.I(0,0,f.width,f.height),b);a.x-=e.x;a.y-=e.y;$.ep(a,b,$.p(h)?$.L(h,c):0,$.p(k)?$.L(k,d):0);f.left=a.x;f.top=a.y;return f}; +$.g.clear=function(a){this.f||(this.f=[]);if(this.Bc&&this.Bc.length)if($.p(a))this.Bc[a]&&(this.Bc[a].clear(),this.f.push(this.Bc[a]),delete this.Bc[a]);else{for(a=this.Bc.length;a--;){var b=this.Bc[a];b&&(b.clear(),this.f.push(b))}this.Bc.length=0;this.B(64,1)}else this.Bc=[];return this};$.g.ip=function(a){a=+a;return this.Bc&&this.Bc[a]?this.Bc[a]:null};$.g.oH=function(){return this.b};$.g.Vd=function(){return this.wb}; +$.g.add=function(a,b){$.p(this.Bc)||(this.Bc=[]);if($.p(b)){var c=+b;var d=this.Bc[c]}d?d.clear():(d=this.f&&0b||b>$.Ny(this))throw Error("Child component index out of bounds");this.F&&this.j||(this.F={},this.j=[]);if(a.getParent()==this){var d=a.ny();this.F[d]=a;$.Fa(this.j,a)}else $.Mc(this.F,a.ny(),a);a.gl(this);$.Da(this.j,a,b);a.xf&&this.xf&&a.getParent()==this?(c=this.AD(),b=c.childNodes[b]||null,b!=a.Za()&&c.insertBefore(a.Za(),b)):c?(this.Fd||this.Ac(),b=this.yd(b+1),a.vE(this.AD(),b?b.Fd:null)):this.xf&& +!a.xf&&a.Fd&&a.Fd.parentNode&&1==a.Fd.parentNode.nodeType&&a.Gg()};$.g.AD=function(){return this.Fd};$.g.yd=function(a){return this.j?this.j[a]||null:null};$.g.Pj=function(a,b){this.j&&(0,$.Pe)(this.j,a,b)};$.g.Kf=function(a){return this.j&&a?(0,$.za)(this.j,a):-1};$.g.removeChild=function(a,b){if(a){var c=$.z(a)?a:a.ny();a=$.Oy(this,c);c&&a&&($.Lc(this.F,c),$.Fa(this.j,a),b&&(a.Dh(),a.Fd&&$.Xe(a.Fd)),a.gl(null))}if(!a)throw Error("Child is not in parent component");return a}; +$.g.Cj=function(a,b){return this.removeChild(this.yd(a),b)};$.g.Gi=function(a){for(var b=[];this.j&&0!=this.j.length;)b.push(this.Cj(0,a));return b};var Qy;$.H($.Py,$.Jy);$.g=$.Py.prototype;$.g.Ut=null;$.g.FH=!1;$.g.Ac=function(){this.Fd=this.f.Ac("INPUT",{type:"text"})};$.g.ql=ba(21);$.g.Gg=function(){$.Py.u.Gg.call(this);var a=new nf(this);a.wa(this.Za(),"focus",this.SU);a.wa(this.Za(),"blur",this.gga);if($.Ry())this.Qg=a;else{$.gd&&a.wa(this.Za(),["keypress","keydown","keyup"],this.qga);var b=$.te(this.Za());a.wa(b?$.Ge(b):window,"load",this.Gga);this.Qg=a;Sy(this)}this.fo();this.Za().s3=this}; +$.g.Dh=function(){$.Py.u.Dh.call(this);this.Qg&&(this.Qg.ld(),this.Qg=null);this.Za().s3=null};$.g.R=function(){$.Py.u.R.call(this);this.Qg&&(this.Qg.ld(),this.Qg=null)};$.g.SU=function(){this.FH=!0;var a=this.Za();$.Sj(a,"label-input-label");if(!$.Ry()&&!$.Ty(this)&&!this.b){var b=this;a=function(){b.Za()&&(b.Za().value="")};$.hd?$.Dj(a,10):a()}};$.g.gga=function(){$.Ry()||(this.Qg.gc(this.Za(),"click",this.SU),this.Ut=null);this.FH=!1;this.fo()}; +$.g.qga=function(a){27==a.keyCode&&("keydown"==a.type?this.Ut=this.Za().value:"keypress"==a.type?this.Za().value=this.Ut:"keyup"==a.type&&(this.Ut=null),a.preventDefault())};$.g.rga=function(){$.Ty(this)||(this.Za().value="",$.Dj(this.cga,10,this))};$.g.cga=function(){$.Ty(this)||(this.Za().value=this.i)};$.g.Gga=function(){this.fo()};$.g.clear=function(){this.Za().value="";null!=this.Ut&&(this.Ut="")};$.g.reset=function(){$.Ty(this)&&(this.clear(),this.fo())}; +$.g.vj=function(){return null!=this.Ut?this.Ut:$.Ty(this)?this.Za().value:""};$.g.ae=function(){return this.i};$.g.fo=function(){var a=this.Za();$.Ry()?this.Za().placeholder!=this.i&&(this.Za().placeholder=this.i):Sy(this);$.Hy(a,"label",this.i);$.Ty(this)?(a=this.Za(),$.Sj(a,"label-input-label")):(this.b||this.FH||(a=this.Za(),$.Qj(a,"label-input-label")),$.Ry()||$.Dj(this.$ja,10,this))};$.g.Dj=function(a){this.Za().disabled=!a;var b=this.Za();a?$.Sj(b,"label-input-label-disabled"):$.Qj(b,"label-input-label-disabled")}; +$.g.isEnabled=function(){return!this.Za().disabled};$.g.z1=ba(23);$.g.$ja=function(){!this.Za()||$.Ty(this)||this.FH||(this.Za().value=this.i)};$.H($.Vy,$.Y);$.g=$.Vy.prototype;$.g.Ih=function(a){a:{var b=a.type;switch(b){case "mouseout":b="axismarkerout";break;case "mouseover":b="axismarkerover";break;case "mousemove":b="axismarkermove";break;default:a=null;break a}a={type:b,target:this,originalEvent:a,rawValue:this.tK(),formattedValue:this.kR(),offsetX:a.offsetX,offsetY:a.offsetY}}a&&this.dispatchEvent(a)};$.g.kR=function(){return"Value: "+this.tK()};$.g.qa=$.Y.prototype.qa|4;$.g.sa=$.Y.prototype.sa|20;$.g.xc=function(){return this.ra}; +$.g.VK=function(a){if($.p(a)){var b="gantt"==(a&&$.D(a.Ma)&&a.Ma());if(a=b?a==this.j?null:a:$.ut(this.j,a,null,15,null,this.zg,this)){var c=this.j==a;this.j=a;var d=this.pa||this.b&&this.b.scale();d?a.da(!1):b||a.da(c);c||d||this.B(4,13)}}}; +$.g.Po=function(a){if($.p(a)){var b="gantt"==(a&&$.D(a.Ma)&&a.Ma()),c=b?a==this.pa?null:a:$.ut(this.pa,a,null,15,null,this.zg,this);if(c||null===a&&this.pa){a=this.pa==c;var d=b&&!this.pa;c||$.ur(this.pa,this.zg,this);this.pa=c;d&&$.K(this.pa,this.zg,this);c&&!b&&c.da(a);a||this.B(4,13)}return this}return this.pa||this.b&&this.b.scale()||this.j};$.g.n3=function(){return!!this.pa};$.g.zg=function(a){var b=0;$.X(a,4)&&(b|=4);$.X(a,2)&&(b|=1);this.B(4,b|8)}; +$.g.tK=function(){return $.p(void 0)?(void 0!==this.g("value")&&this.value(void 0),this):this.g("value")};$.g.uD=function(){var a=9;"consider"==this.g("scaleRangeMode")&&(a|=4);return a};$.g.mr=function(){return $.Vy.u.mr.call(this)|4};$.g.xs=function(){return[this.tK()]};$.g.c_=function(){this.B(4,9)};$.g.axis=function(a){return $.p(a)?(this.b!=a&&(this.b&&$.ur(this.b,this.c_,this),this.b=a,$.K(this.b,this.c_,this),this.B(4,13)),this):this.b}; +$.g.Pp=function(a,b,c,d){this.$g||(this.$g=new $.Ru);return $.p(a)?(this.$g.N.apply(this.$g,arguments),this):this.$g};$.g.Ob=function(){return"horizontal"==this.we()};$.g.fs=void 0;$.g.kv=void 0;$.g.W=function(){if(!this.scale())return $.il(2),this;if(!this.zc())return this;if(this.J(8)){var a=this.zIndex();$.Wy(this).zIndex(a);this.I(8)}this.J(2)&&(a=this.O(),$.Wy(this).parent(a),this.I(2));this.J(16)&&(this.kv(),this.I(16));this.J(4)&&(this.fs(),this.I(4));return this}; +$.g.lo=function(){var a=this.scale();if(a){var b=$.Wy(this),c=a.transform(this.g("value"),.5);b.clear();if(!(0,window.isNaN)(c)&&(0<=c&&1>=c||this.i)){a=this.ja();var d=this.Pp(),e=b.hl();this.Ob()?(c=a.Vb()+a.height-c*a.height,c=$.R(c,e),b.moveTo(a.tb(),c),b.lineTo(a.cb(),c)):(c=a.tb()+c*a.width,c=$.R(c,e),b.moveTo(c,a.Vb()),b.lineTo(c,a.Va()));this.i||b.clip(d.Ej(a))}}else $.il(2)};$.g.remove=function(){$.Wy(this).parent(null)};var JG={};$.Cq(JG,[[0,"scaleRangeMode",gl]]);$.U($.Vy,JG); +$.Vy.prototype.U=function(a,b){$.Vy.u.U.call(this,a,b);"layout"in a&&a.layout&&this.we(a.layout);if("axis"in a){var c=a.axis;$.ea(c)?this.ra&&this.axis(this.ra.YG(c)):c.Hy&&c.Hy()&&this.axis(c)}$.Vq(this,JG,a,b)};$.Vy.prototype.D=function(){var a=$.Vy.u.D.call(this);$.cr(this,JG,a);return a};$.Vy.prototype.R=function(){this.ra=this.b=null;$.sd(this.F,this.$g);this.$g=this.F=null;$.Vy.u.R.call(this)};$.H($.Yy,$.Y);$.Yy.prototype.qa=$.Y.prototype.qa;$.Yy.prototype.sa=$.Y.prototype.sa;var gea=$.Yy.prototype,KG={};$.Cq(KG,[[1,"stroke",$.Zq],[0,"length",$.Fo],[0,"position",$.Wk]]);gea.dR=KG;$.U($.Yy,$.Yy.prototype.dR);$.g=$.Yy.prototype;$.g.orientation=function(a){return $.p(a)?(a=$.Hk(a),this.vh!=a&&(this.vh=a,this.cp=null),this):this.vh};$.g.remove=function(){this.path&&this.path.parent(null)}; +$.g.W=function(){this.path.clear();this.path.stroke(this.g("stroke"));if(!this.zc())return this;this.J(8)&&(this.path.zIndex(this.zIndex()),this.I(8));this.J(2)&&(this.path.parent(this.O()),this.I(2));return this};$.g.f1=function(a,b,c,d){a=b.left+a*b.width;var e=c.top;a=$.R(a,this.path.hl());var f=this.g("position");b=$.L(this.g("length"),b.height);"outside"==f?(e-=d/2,c=-b):(e="center"==f?e+(c.height-b)/2:e+d/2,c=b);this.path.moveTo(a,e);this.path.lineTo(a,e+c)}; +$.g.kT=function(a,b,c,d){c=c.left;a=b.top+b.height-a*b.height;a=$.R(a,this.path.hl());var e=this.g("position");b=$.L(this.g("length"),b.width);"outside"==e?(c+=d/2,d=b):"center"==e?(c-=b/2,d=b):(c-=d/2,d=-b);this.path.moveTo(c,a);this.path.lineTo(c+d,a)};$.g.eT=function(a,b,c,d){a=b.left+a*b.width;c=c.top;a=$.R(a,this.path.hl());var e=this.g("position");b=$.L(this.g("length"),b.height);"outside"==e?(c+=d/2,d=b):"center"==e?(c-=b/2,d=b):(c-=d/2,d=-b);this.path.moveTo(a,c);this.path.lineTo(a,c+d)}; +$.g.iT=function(a,b,c,d){c=c.left;a=b.top+b.height-a*b.height;a=$.R(a,this.path.hl());var e=this.g("position");b=$.L(this.g("length"),b.width);"outside"==e?(c-=d/2,d=-b):(c="center"==e?c-b/2:c+d/2,d=b);this.path.moveTo(c,a);this.path.lineTo(c+d,a)};$.g.D=function(){var a=$.Yy.u.D.call(this);$.cr(this,this.dR,a,"AxisTicks");return a};$.g.U=function(a,b){$.Yy.u.U.call(this,a,b);$.Vq(this,this.dR,a,b)};$.g.R=function(){$.qd(this.path);this.path=null;$.Yy.u.R.call(this)};$.H($.$y,$.Y);$.$y.prototype.g=function(a){var b=$.$y.u.g.call(this,a);if("orientation"==a&&null==b||!$.p(b))b=this.Od[a];return b};var LG={};$.Cq(LG,[$.Z.jK,$.Z.tQ,$.Z.uQ,$.Z.dC,$.Z.Yn,[0,"staggerMode",$.Qq],[0,"staggerMaxLines",$.Hq],[0,"staggerLines",$.Hq],[0,"orientation",nr],[0,"value",Jo]]);$.U($.$y,LG);$.g=$.$y.prototype;$.g.sa=$.Y.prototype.sa|976;$.g.qa=$.Y.prototype.qa;$.g.Pc=null;$.g.Er="axis";$.g.jb=null;$.g.Da=null;$.g.rc=null;$.g.mb=null;$.g.Rc=null;$.g.In=null;$.g.AJ=1;$.g.Hq=null; +$.g.TH=null;$.g.Wa=null;$.g.ci=null;$.g.Gk=null;$.g.title=function(a){this.jb||(this.jb=new $.iw,$.W(this,"title",this.jb),this.jb.kb(this),$.K(this.jb,this.Mq,this));return $.p(a)?(this.jb.N(a),this):this.jb};$.g.Mq=function(a){var b=0,c=0;$.X(a,8)?(b=this.se,c=9):$.X(a,1)&&(b=64,c=1);this.B(b,c)};$.g.labels=function(a){this.Da||(this.Da=new $.Zu,$.W(this,"labels",this.Da),this.Da.kb(this),$.K(this.Da,this.ce,this));return $.p(a)?(!$.C(a)||"enabled"in a||(a.enabled=!0),this.Da.N(a),this):this.Da}; +$.g.ce=function(a){var b=0,c=0;$.X(a,8)?(b=this.se,c=9):$.X(a,1)&&(b=384,c=1);this.labels().clear();this.ns();this.ik=null;this.$d();this.B(b,c)};$.g.qb=function(a){this.rc||(this.rc=new $.Zu,$.W(this,"minorLabels",this.rc),this.rc.kb(this),$.K(this.rc,this.zaa,this));return $.p(a)?(!$.C(a)||"enabled"in a||(a.enabled=!0),this.rc.N(a),this):this.rc};$.g.zaa=function(a){var b=0,c=0;$.X(a,8)?(b=this.se,c=9):$.X(a,1)&&(b=128,c=1);this.ik=null;this.$d();this.qb().clear();this.B(b,c)};$.g.pl=function(){return new $.Yy}; +$.g.Bz=function(){return this.line?this.line:this.line=$.qk()};$.g.Ya=function(a){this.mb||(this.mb=this.pl(),$.W(this,"ticks",this.mb),this.mb.kb(this),$.K(this.mb,this.XZ,this));return $.p(a)?(this.mb.N(a),this):this.mb};$.g.yb=function(a){this.Rc||(this.Rc=this.pl(),$.W(this,"minorTicks",this.Rc),this.Rc.kb(this),$.K(this.Rc,this.XZ,this));return $.p(a)?(this.Rc.N(a),this):this.Rc};$.g.XZ=function(a){var b=0,c=0;$.X(a,8)?(b=this.se,c=9,this.$d()):$.X(a,1)&&(b=256,c=1);this.B(b,c)}; +$.g.scale=function(a){if($.p(a)){if(this.In!=a&&(a=$.ut(this.scale(),a,null,this.TT(),null,this.zg,this))){var b=this.In==a;this.In=a;this.ns();this.ik=null;this.$d();this.labels().clear();this.qb().clear();a.da(b);b||this.B(this.se,9)}return this}return this.In};$.g.TT=function(){return 15};$.g.zg=function(a){$.X(a,2)&&(this.ns(),this.ik=null,this.$d(),this.labels().clear(),this.qb().clear(),this.B(this.se,9))}; +$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.W(this,"padding",this.Wa),$.K(this.Wa,this.fm,this));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa};$.g.dF=function(a){if($.ea(a)||$.J(a,$.$y))this.Ba=a,this.B(this.se,9);return this.Ba};$.g.fm=function(a){$.X(a,2)&&(this.ns(),this.ik=null,this.$d(),this.B(this.se,9))};$.g.Hy=function(){return!0};$.g.ns=function(){this.na=null}; +$.g.qy=function(a){if(!this.ik||this.J(512)){var b=this.scale();if(b){var c=this.labels();var d=c.enabled();var e=b.Ya().get();var f=e.length;if(d){var h;var k=0;for(h=f;k$.Oo(k)?this.TH:null,B=this.g("drawFirstLabel"),F=this.g("drawLastLabel");if($.J(b,$.vt)){c=k=0;for(var G;k=S&&B||1<=S&&F?t=x:0S&& +(t=x));x++}Q<=G&&k=S&&B||1<=S&&F?(u=c,q.push(!0)):0S?(u=c,q.push(!0)):q.push(!1))):q.push(!1),c++)}m||(q=!1)}else if($.J(b,gt))for(F? +(v=this.rd(f-1,!0,e,a),v=y?bz(this,y,v)?null:v:v):v=null,k=0;ka)return null;var e=b?this.ci:this.Gk;if($.p(e[a]))return e[a];var f=ez(this,c[a]);if(0>f||1=S&&h.call(f,S,m,r,t,l),v==e-1&&(S=a.transform(O,1),0<=S&&1>=S&&h.call(f,S,m,r,t,l))),wa=$.A(w)?w[v]:w,this.ke(k,n,v,l,!0,b,wa&&0<=n&&1>=n);this.labels().W()}this.title().da(!1);this.labels().da(!1);this.qb().da(!1);c.da(!1); +d.da(!1);return this};$.g.remove=function(){this.jb&&this.jb.remove();this.line&&this.line.parent(null);this.Ya().remove();this.yb().remove();this.Da&&this.Da.remove();this.rc&&this.rc.remove()};$.g.uo=function(){this.ns();this.ik=null;this.$d();this.B(this.se,9)}; +$.g.nq=function(a,b){var c=this.scale(),d,e=!0,f=!1;if($.J(c,$.$t)){var h=c.Ya().names()[a];var k=b;var l=d="string";e=!1}else $.J(c,$.xt)?(h=$.Fs(b),d="string",l="date-time",k=b,f=!0):(h=(0,window.parseFloat)(b),k=(0,window.parseFloat)(b),d=l="number");h={axis:{value:this,type:""},index:{value:a,type:"number"},value:{value:h,type:d},tickValue:{value:k,type:l},scale:{value:c,type:""}};e&&(h.max={value:$.p(c.max)?c.max:null,type:"number"},h.min={value:$.p(c.min)?c.min:null,type:"number"});f&&(e=c.Ya(), +h.intervalUnit={value:e.aU(),type:"string"},h.intervalUnitCount={value:e.bU(),type:"number"},e=c.yb(),h.minorIntervalUnit={value:e.aU(),type:"string"},h.minorIntervalUnitCount={value:e.bU(),type:"number"});c={};c["%AxisName"]={value:this.title().text(),type:"string"};e=new $.Nw(h);e.Im({"%AxisScaleMax":"max","%AxisScaleMin":"min"});e.Dl(c);return $.yv(e)};$.g.Ob=function(){var a=this.g("orientation");return"top"==a||"bottom"==a}; +$.g.D=function(){var a=$.$y.u.D.call(this);$.cr(this,LG,a);this.ph("zIndex")||delete a.zIndex;a.title=this.title().D();a.labels=this.labels().D();a.minorLabels=this.qb().D();a.ticks=this.Ya().D();a.minorTicks=this.yb().D();return a};$.g.U=function(a,b){$.$y.u.U.call(this,a,b);$.Vq(this,LG,a,b);"title"in a&&this.title().ga(!!b,a.title);"padding"in a&&this.padding(a.padding);this.labels().ga(!!b,a.labels);this.qb().ga(!!b,a.minorLabels);this.Ya(a.ticks);this.yb(a.minorTicks)}; +$.g.R=function(){this.In&&$.ur(this.In,this.zg,this);this.In=null;$.sd(this.jb,this.Wa,this.line,this.Da,this.rc,this.mb,this.Rc);this.Rc=this.mb=this.rc=this.Da=this.line=this.Wa=this.jb=null;this.ci.length=0;this.Gk.length=0;this.Hq=null;$.$y.u.R.call(this)};$.H(fz,$.$y);$.Hu(fz,$.$y);var MG=$.$y.prototype;MG.title=MG.title;MG.labels=MG.labels;MG.minorLabels=MG.qb;MG.ticks=MG.Ya;MG.minorTicks=MG.yb;MG.scale=MG.scale;MG.getRemainingBounds=MG.zd;MG.isHorizontal=MG.Ob;MG.padding=MG.padding; +MG.getPixelBounds=MG.ob;MG.valueTarget=MG.dF;MG=fz.prototype;$.E("anychart.standalones.axes.linear",function(){var a=new fz;a.Ga("standalones.linearAxis");return a});MG.padding=MG.padding;MG.draw=MG.W;MG.parentBounds=MG.ja;MG.container=MG.O;$.H($.gz,Cv);$.gz.prototype.Ih=function(a){a:{var b=a.type;switch(b){case "mouseout":b="axismarkerout";break;case "mouseover":b="axismarkerover";break;case "mousemove":b="axismarkermove";break;default:a=null;break a}a={type:b,target:this,originalEvent:a,rawValue:iz(this),formattedValue:"Value: "+iz(this),offsetX:a.offsetX,offsetY:a.offsetY}}a&&this.dispatchEvent(a)};$.gz.prototype.qa=Cv.prototype.qa|4;$.gz.prototype.sa=Cv.prototype.sa;var NG={};$.Cq(NG,[$.Z.eK,[0,"scaleRangeMode",gl]]);$.U($.gz,NG); +$.g=$.gz.prototype;$.g.xc=function(){return this.ra};$.g.VK=function(a){if($.p(a)){var b="gantt"==(a&&$.D(a.Ma)&&a.Ma());if(a=b?a==this.j?null:a:$.ut(this.j,a,null,15,null,this.zg,this)){var c=this.j==a;this.j=a;var d=this.pa||this.b&&this.b.scale();d?a.da(!1):b||a.da(c);c||d||this.B(4,13)}}}; +$.g.Po=function(a){if($.p(a)){var b="gantt"==(a&&$.D(a.Ma)&&a.Ma());if(a=b?a==this.pa?null:a:$.ut(this.pa,a,null,15,null,this.zg,this)){var c=this.pa==a;this.pa=a;b||a.da(c);c||this.B(4,13)}return this}return this.pa||this.b&&this.b.scale()||this.j};$.g.n3=function(){return!!this.pa};$.g.zg=function(a){if(a.target==this.Po()){var b=0;$.X(a,4)&&(b|=4);$.X(a,2)&&(b|=1);this.B(4,b|8)}};$.g.d_=function(){this.B(4,9)}; +$.g.axis=function(a){return $.p(a)?(this.b!=a&&(this.b&&$.ur(this.b,this.d_,this),this.b=a,$.K(this.b,this.d_,this),this.B(4,13)),this):this.b};$.g.Pp=function(a,b,c,d){this.$g||(this.$g=new $.Ru);return $.p(a)?(this.$g.N.apply(this.$g,arguments),this):this.$g};$.g.we=function(a){return $.p(a)?(a=$.Gk(a),this.f!=a&&(this.f=a,this.B(4,9)),this):this.f?this.f:this.b?(a=this.b.g("orientation"),"left"==a||"right"==a?"horizontal":"vertical"):this.F};$.g.Ob=function(){return"horizontal"==this.we()}; +$.g.zc=function(){var a=$.gz.u.zc.call(this)&&!(null==iz(this)||!this.Po());if(!a)return a;a=this.scale().transform(iz(this),.5);if(0<=a&&1>=a||this.G)return this.B(6),!0;this.remove();this.I(6);return!1};$.g.T1=function(){var a=this.g("rotation");return null==a||(0,window.isNaN)(a)?this.Ob()?0:-90:a};$.g.oR=function(){var a=this.g("align");if(this.Ob()){if("left"==a)return"left-center";if("right"==a)return"right-center"}else{if("top"==a)return"center-top";if("bottom"==a)return"center-bottom"}return"center"}; +$.g.vA=function(){var a=this.g("anchor");if(!a||"auto"==a)switch(this.oR()){case "center-top":case "right-center":a="right-center";break;case "center-bottom":case "left-center":a="left-center";break;default:a="center"}return a};$.g.X1=function(){return this.i}; +$.g.ja=function(a,b,c,d){return $.p(a)?(null===a||$.J(a,$.I)?this.i=a:"object"==$.ka(a)?this.i=new $.I(a.left,a.top,a.width,a.height):this.i=new $.I(a||0,b||0,c||0,d||0),this.uo(),this):null!=iz(this)&&this.Po()&&this.i?(a=this.i.clone(),b=this.scale().transform(iz(this),.5),this.Ob()?(a.height=0,a.top=Math.round(this.i.top+this.i.height-b*this.i.height)):(a.width=0,a.left=Math.round(this.i.left+b*this.i.width)),a):null};$.g.uD=function(){var a=9;"consider"==this.g("scaleRangeMode")&&(a|=4);return a}; +$.g.mr=function(){return $.gz.u.mr.call(this)|4};$.g.xs=function(){return[iz(this)]};$.g.D=function(){var a=$.gz.u.D.call(this);$.cr(this,NG,a,"TextBase");this.f&&(a.layout=this.f);return a};$.g.U=function(a,b){$.gz.u.U.call(this,a,b);$.Vq(this,NG,a,b);"layout"in a&&a.layout&&this.we(a.layout);if("axis"in a){var c=a.axis;$.ea(c)?this.ra&&this.axis(this.ra.YG(c)):c.Hy&&c.Hy()&&this.axis(c)}};$.g.R=function(){$.qd(this.$g);this.b=this.ra=this.$g=null;$.gz.u.R.call(this)};$.H($.jz,$.V);$.jz.prototype.sa=$.V.prototype.sa;$.jz.prototype.qa=$.V.prototype.qa|$.RE|$.SE;var Uca=Date.UTC(2E3,10,29,23,59,59,999);$.g=$.jz.prototype;$.g.Tw=function(){return this.ye};$.g.labels=function(a){return $.p(a)&&this.Da!=a?(this.Da&&$.ur(this.Da,this.Kn,this),this.Da=a,$.K(this.Da,this.Kn,this),this):this.Da};$.g.Kn=function(){this.ye.length||$.lz(this);for(var a=this.labels().flatten(),b=0;b=f.offset?b=f:c=f}var h;b?c?h=$.Rl(c.color,b.color,(a-b.offset)/(c.offset-b.offset)):h=b.color:h=c.color;return $.A(h)?$.Tb(h):h.color}; +$.g.mS=function(a){this.pb();a=$.Ll($.Sl(a).wk);var b;var c=0;for(b=this.Xe.length;c=d?(l=d-1,f=!0):l--;var m=c[k].fp;if($.da(m)){m=(c[k].start+c[k].end)/2;var n=(c[l].start+c[l].end)/2}else n=c[l].fp;e.push(k==l?m:[m,n])}return e};$.H($.qz,gt);$.g=$.qz.prototype;$.g.Ma=function(){return"ordinal-color"};$.g.oN=function(){this.Co()};$.g.Jj=function(a){if($.p(a))return null===a?this.Xe=[]:$.A(a)&&(this.Xe=$.Ha(a)),this.Co(),this.va(2),this;if($.A(this.Xe)){this.tB||(this.tB=$.Ha(this.Xe));if(this.tB.length= "+c.start:"<= "+c.end:(0,window.isFinite)(c.start)?"> "+c.start:"< "+c.end;d||(d="default");c.name||(c.name=d);this.Ok.push(d)}}return this.Ok}; +$.g.Yy=function(a){return $.p(a)?(this.jd!=a&&(this.jd=a,a=a[a.length-1],null===a.equal&&null===a.from&&null===a.to&&null===a.greater&&null===a.less||this.jd.push({equal:null,less:null,greater:null,from:null,to:null}),this.bW||(this.bo=$.Gm("defaultOrdinalColorScale").autoColors(this.jd.length-1),this.bo.push("#000")),this.Co(),$.Zt(this.Ya()),this.va(4)),this):this.jd};$.g.sr=function(){this.pb();this.names();return this.yk}; +$.g.Dn=function(a){this.pb();var b=this.yk[this.yk.length-1];if(this.yk)for(var c=0;c=d.start&&a<=d.end&&-1d.start&&ad.length-1?d[d.length-1]:d[c])}}return b}; +$.g.mS=function(a){this.pb();a=$.Sl(a).wk;for(var b=window.NaN,c=0,d=this.yk.length;cb?-1E-5:0);this.f.push(b);b=a.o("x");var c=a.o("value"),d;if(d=a.o("label"))d=d.jc().value,this.b.push(b,c),this.f.push(d.x,d.y);if(d=a.o("marker"))d=d.jc().value,this.b.push(b,c),this.f.push(d.x,d.y)}}; +Nz.prototype.en=function(){for(var a=this.X.cg(),b=0;a.advance();)if(!a.o("missing")){a.o("size",this.coords[b++]);this.X.bf.yt(a);var c=a.o("label");c&&(c.jc({value:{x:this.coords[b++],y:this.coords[b++]}}),c.W());if(c=a.o("marker"))c.jc({value:{x:this.coords[b++],y:this.coords[b++]}}),c.W()}};Nz.prototype.cm=function(){this.en()};$.H(Oz,$.Mz);Oz.prototype.update=function(){this.i=CB(this.X);this.xa=this.X.g("isVertical");var a=this.X.clip();$.da(a)&&!a&&(this.i=this.X.xc().ob());this.xa?(this.b[0]=this.i.top,this.X.Ra().Ne()||(this.b[0]+=this.i.height),this.b[1]=0,(0,window.isNaN)(this.G)&&(this.G=this.i.height),this.f[0]=this.i.top):(this.b[0]=this.i.left,this.X.Ra().Ne()&&(this.b[0]+=this.i.width),this.b[1]=0,(0,window.isNaN)(this.G)&&(this.G=this.i.width),this.f[0]=this.i.left);this.f[1]=this.G}; +Oz.prototype.en=function(){this.xa?(this.i.top=this.coords[0],this.i.height=this.coords[1]):(this.i.left=this.coords[0],this.i.width=this.coords[1]);this.X.bs(this.i)};Oz.prototype.cm=function(){this.xa?(this.i.top=this.coords[0],this.i.height=this.coords[1]):(this.i.left=this.coords[0],this.i.width=this.coords[1]);this.X.bs(this.i);this.G=window.NaN};$.H(Pz,$.Mz); +Pz.prototype.update=function(){this.i=this.X.g("isVertical");this.b.length=this.f.length=0;for(var a=this.X.cg();a.advance();)if(!a.o("missing")){var b=a.o("x");(0,window.isNaN)(a.o("destinationValue"))&&a.o("destinationValue",a.o("value"));var c=a.o("destinationValue"),d=a.o("zero");this.b.push(d);this.f.push(c);if(c=a.o("label"))c=c.jc().value,this.i?this.b.push(d,b):this.b.push(b,d),this.f.push(c.x,c.y);if(c=a.o("marker"))c=c.jc().value,this.i?this.b.push(d,b):this.b.push(b,d),this.f.push(c.x,c.y)}}; +Pz.prototype.en=function(){for(var a=this.X.cg(),b=0;a.advance();)if(!a.o("missing")){a.o("value",this.coords[b++]);this.X.bf.yt(a);var c=a.o("label");c&&(c.jc({value:{x:this.coords[b++],y:this.coords[b++]}}),c.W());if(c=a.o("marker"))c.jc({value:{x:this.coords[b++],y:this.coords[b++]}}),c.W()}};Pz.prototype.cm=function(){this.en()};var TG={};TG.bar=Pz;TG.bubble=Nz;TG.area=Oz;TG.line=Oz;TG["range-area"]=Oz;TG["range-spline-area"]=Oz;TG["range-step-area"]=Oz;TG.spline=Oz;TG["spline-area"]=Oz;TG["step-area"]=Oz;TG["step-line"]=Oz;TG.column=Pz;TG["jump-line"]=Pz;TG.stick=Pz;TG.mekko=Pz;$.H($.Sz,$.V);$.V.prototype.l2=function(a,b){if(!$.p(this.PB[a])){a=$.wm(a);var c=$.Cr(this);this.PB[a]=$.Dr(c,"base");if(!b)for(var d=0;d=k;f.push(r?q:k);r&&(h++,q=h=k,u.push(r?q:k),r&&(h++,q=h=e&&t<=l&&(b.uu>r&&(b.uu=r),b.tu=e&&t<=l)for(F=0;Fr&&(b.uu=r),b.tuc&&(h.uu=c);h.tuc&&(h.uu=c),h.tuc){c=hb;var Lf=S}if(mce){e=dc;var Lg=S}if(dck){k=vb;var Mg=S}if(vem){m=Gd;var kd=S}if(Gdf+k||eh+l)return null;b=[];var m=this.gd();if("by-spot"==m.g("hoverMode"))for(c=m.g("spotRadius"),this.Ks?(d=(l-(e-c-h))/l,f=(l-(e+c-h))/l,h=a,a=e,e=h):(d=(a-c-f)/k,f=(a+c-f)/k),h=0,k=this.hb.length;h=$.Do});d=d&&f;e.push({series:k,pointsInRect:c,allPointsAreSelected:f})}a.seriesStatus=e;a.allPointsAreSelected=d;return a}; +$.g.$O=function(a){var b=a.shiftKey||a.ctrlKey||a.metaKey,c=a.seriesStatus;if(b&&a.allPointsAreSelected)for(a=0;ac.length&&(c=$.Ga(c,$.Ja(a.scales,c.length)))}d={};if($.A(c))for(b=0;bthis.LL()&&f.Ra(b[e.xScale]),"yScale"in e&&e.yScale>this.LL()&&f.bb(b[e.yScale]))}};$.g.eP=function(a,b,c){var d,e=[];for(d=0;dthis.LL()&&h.scale(c[f]))}};$.g.R=function(){$.qd(this.Og);$.Yz.u.R.call(this)};$.H($.hA,$.Vy);var dH={};$.Cq(dH,[[1,"stroke",$.Zq],[0,"value",$.Pq]]);$.U($.hA,dH);$.g=$.hA.prototype;$.g.qa=$.Vy.prototype.qa;$.g.sa=$.Vy.prototype.sa;$.g.we=function(a){return $.p(a)?(a=$.Gk(a),this.f!=a&&(this.f=a,this.B(4,9)),this):this.f?this.f:this.axis()?(a=this.axis().orientation(),"left"==a||"right"==a?"horizontal":"vertical"):this.G};$.g.scale=function(a){return this.Po(a)};$.g.fs=function(){this.lo()};$.g.kv=function(){$.Wy(this).stroke(this.g("stroke"))}; +$.g.R=function(){this.ta("stroke",null);$.hA.u.R.call(this)};$.g.D=function(){var a=$.hA.u.D.call(this);$.cr(this,dH,a);this.f&&(a.layout=this.f);return a};$.g.U=function(a,b){$.hA.u.U.call(this,a,b);$.Vq(this,dH,a)};$.H(jA,$.hA);$.Hu(jA,$.hA);var eH=$.hA.prototype;eH.scale=eH.scale;eH.axis=eH.axis;eH.layout=eH.we;eH.isHorizontal=eH.Ob;eH=jA.prototype;$.E("anychart.standalones.axisMarkers.line",function(){return new jA});eH.draw=eH.W;eH.parentBounds=eH.ja;eH.container=eH.O;$.H($.kA,$.Vy);$.fH={};$.Cq($.fH,[[1,"fill",$.$q],[0,"from",$.Pq],[0,"to",$.Pq]]);$.U($.kA,$.fH);$.g=$.kA.prototype;$.g.kR=function(){return"From: "+this.g("from")+" to: "+this.g("to")};$.g.qa=$.Vy.prototype.qa;$.g.sa=$.Vy.prototype.sa;$.g.we=function(a){return $.p(a)?(a=$.Gk(a),this.f!=a&&(this.f=a,this.B(4,9)),this):this.f?this.f:this.axis()?(a=this.axis().orientation(),"left"==a||"right"==a?"horizontal":"vertical"):this.G};$.g.scale=function(a){return this.Po(a)}; +$.g.xs=function(){return[this.g("from"),this.g("to")]};$.g.tK=function(){$.p(void 0)&&($.p((void 0).from)&&this.from((void 0).from),$.p((void 0).to)&&this.to((void 0).to));return{from:this.g("from"),to:this.g("to")}};$.g.fs=function(){$.Xy(this)};$.g.kv=function(){$.Wy(this).stroke(null).fill(this.g("fill"))};$.g.R=function(){this.ta("fill",null);$.kA.u.R.call(this)};$.g.D=function(){var a=$.kA.u.D.call(this);$.cr(this,$.fH,a,void 0,void 0,!0);this.f&&(a.layout=this.f);return a}; +$.g.U=function(a,b){$.kA.u.U.call(this,a,b);$.Vq(this,$.fH,a)};$.H(mA,$.kA);$.Hu(mA,$.kA);var gH=$.kA.prototype;gH.scale=gH.scale;gH.axis=gH.axis;gH.layout=gH.we;gH.isHorizontal=gH.Ob;gH=mA.prototype;$.E("anychart.standalones.axisMarkers.range",function(){return new mA});gH.draw=gH.W;gH.parentBounds=gH.ja;gH.container=gH.O;$.H($.nA,$.gz);var hH={};$.Cq(hH,[[0,"value",$.Pq]]);$.U($.nA,hH);$.g=$.nA.prototype;$.g.qa=$.gz.prototype.qa;$.g.sa=$.gz.prototype.sa;$.g.scale=function(a){return this.Po(a)};$.g.D=function(){var a=$.nA.u.D.call(this);$.cr(this,hH,a);return a};$.g.U=function(a,b){$.nA.u.U.call(this,a,b);$.Vq(this,hH,a,b)};$.H(oA,$.nA);$.Hu(oA,$.nA);var iH=$.nA.prototype;iH.scale=iH.scale;iH.axis=iH.axis;iH.layout=iH.we;iH.background=iH.background;iH.padding=iH.padding;iH.isHorizontal=iH.Ob;iH=oA.prototype; +$.E("anychart.standalones.axisMarkers.text",function(){return new oA});iH.draw=iH.W;iH.parentBounds=iH.ja;iH.container=iH.O;$.H(pA,Cv);pA.prototype.qa=Cv.prototype.qa|2;var jH={};$.Cq(jH,[[0,"format",$.kr],[0,"axisIndex",$.Pq]]);$.U(pA,jH);$.g=pA.prototype;$.g.Hf=function(a){return $.p(a)?(this.i!=a&&(this.i=a,this.B(16,1)),this):this.i};$.g.x=function(a){$.p(a)&&this.No!=a&&(this.No=a,this.B(4,9));return this};$.g.y=function(a){$.p(a)&&this.Oo!=a&&(this.Oo=a,this.B(4,9));return this}; +$.g.tf=function(){if(this.ja())var a=this.ja();else{a=new $.I(0,0,0,0);var b=this.xb.sb();a.width=this.padding().Lk(b.width);a.height=this.padding().$j(b.height)}b=a.width;var c=a.height;a=new $.I(0,0,this.Oi,this.Ni);var d=new $.gb(0,0);d.x=this.No;d.y=this.Oo;var e=this.vA(),f=$.Lo(new $.I(0,0,this.Oi,this.Ni),e);d.x-=f.x;d.y-=f.y;f=this.g("offsetX");var h=this.g("offsetY");$.ep(d,e,$.p(f)?$.L(f,b):0,$.p(h)?$.L(h,c):0);this.Lg+=d.x;this.Mg+=d.y;a.left=d.x;a.top=d.y;this.xb.x(this.Lg).y(this.Mg); +(b=this.xb.clip())?b.shape(this.Lg,this.Mg,this.nn,this.ln):(b=$.tk(this.Lg,this.Mg,this.nn,this.ln),this.xb.clip(b));return a};$.g.D=function(){var a=pA.u.D.call(this);$.cr(this,jH,a,"Crosshair Label");return a};$.g.U=function(a,b){pA.u.U.call(this,a,b);$.Vq(this,jH,a,b)};var kH=pA.prototype;kH.background=kH.background;kH.padding=kH.padding;$.H($.qA,$.Y);$.qA.prototype.qa=$.Y.prototype.qa|2;$.qA.prototype.sa=$.Y.prototype.sa|16;var lH={};$.Bq(lH,1,"xStroke",$.Zq);$.Bq(lH,1,"yStroke",$.Zq);$.Bq(lH,0,"displayMode",function(a){return $.zk(Hda,a,"float")});$.U($.qA,lH);$.g=$.qA.prototype;$.g.g=$.sr;$.g.jg=function(a){$.p(a)&&(this.Xb=a);return this.Xb};$.g.bh=$.rr;$.g.Xd=function(){var a=[this.oa];this.Y&&(a=$.Ga(a,this.Y.Xd()));return a};$.g.Wd=function(){var a=[this.Pa];this.Y&&(a=$.Ga(a,this.Y.Wd()));return a}; +$.g.parent=function(a){if($.p(a)){if(this.Y!=a){var b=String($.oa(this));if(null===a){$.ur(this.Y,this.Tc,this);a=$.rA(this);var c=$.sA(this);a=$.Ga(a,c);for(c=0;c=l.tb()&&a<=l.cb()&&d>=l.Vb()&&d<=l.Va()?(this.ka(), +l=$.rA(this),k=$.sA(this),this.Kt(l,!0,a,d),this.Kt(k,!1,a,d),this.da(!0)):this.Lc()}}; +$.g.Yx=function(a,b,c,d){var e=b?this.Pr:this.Sr;if((b=this.g(b?"xStroke":"yStroke"))&&!$.lp(b)){b=this.ja();var f=b.cb()-b.tb(),h=b.Va()-b.Vb();c-=b.tb();var k=d-b.Vb();d=a.Ob();var l;a=a.scale();c=d?c:k;f=d?f:h;h=d?b.tb():b.Vb();k=a.Ma();"linear"==k||"datetime"==k||"log"==k?l=c/f:l=a.transform(a.Mc(c/f),.5);0>l||1e||1=b.cb()||a<=b.Vb()||a>=b.Va())&&this.Lc()};$.g.remove=function(){this.Lc()};$.g.R=function(){this.Yl&&(this.Yl.gc("mouseover",this.If,!1,this),this.Yl.gc("mousemove",this.If,!1,this),this.Yl.gc("mouseout",this.hg,!1,this),this.Yl=null);$.sd(this.Pr,this.Sr,this.hQ,this.kQ);this.Pr=this.Sr=this.hQ=this.kQ=null;$.qA.u.R.call(this)}; +$.g.enabled=function(a){return $.p(a)?(this.Pa.enabled!=a&&(this.Pa.enabled=a,this.B(1,32777),this.Pa.enabled?this.da(!0):(0,window.isNaN)(this.Lo)&&this.ka()),this):this.g("enabled")};$.g.D=function(){var a=$.qA.u.D.call(this);$.cr(this,lH,a,"Crosshair");var b;var c=[];var d=$.rA(this),e=$.sA(this);for(b=0;b=this.b.length?this.qf[a-this.b.length]:this.b[a]};$.g.ty=function(a){return this.b[a]};$.g.vy=function(a){return this.qf[a]};$.g.V5=function(a){a.scale(this.bb())};$.g.mH=function(){return 2097152};$.g.ZZ=function(){return new $.hA}; +$.g.Ym=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.og[c];if(!e){e=this.ZZ();var f=$.Dr($.Cr(this),"defaultLineMarkerSettings");e.Ga(f);e.ra=this;$.iA(e,this.xa()?"vertical":"horizontal");this.og[c]=e;e.kb(this);$.K(e,this.Jw,this);this.B(5242880,1)}return $.p(d)?(e.N(d),this):e};$.g.$Z=function(){return new $.kA}; +$.g.gn=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.rg[c];if(!e){e=this.$Z();var f=$.Dr($.Cr(this),"defaultRangeMarkerSettings");e.Ga(f);e.ra=this;$.lA(e,this.xa()?"vertical":"horizontal");this.rg[c]=e;e.kb(this);$.K(e,this.Jw,this);this.B(5242880,1)}return $.p(d)?(e.N(d),this):e};$.g.a_=function(){return new $.nA}; +$.g.mn=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.tg[c];if(!e){e=this.a_();var f=$.Dr($.Cr(this),"defaultTextMarkerSettings");e.Ga(f);e.ra=this;$.hz(e,this.xa()?"vertical":"horizontal");this.tg[c]=e;e.kb(this);$.K(e,this.Jw,this);this.B(5242880,1)}return $.p(d)?(e.N(d),this):e};$.g.Jw=function(a){var b=4227072;$.X(a,4)&&(b|=327680);this.B(b,1)}; +$.g.qV=function(a){for(var b=0,c=$.Ga(this.og,this.rg,this.tg),d=0;dc.top&&(e=new $.I(c.left,c.top,c.width,u.top-c.top));break;case "bottom":Gc.left&&(e=new $.I(c.left,v,u.left-c.left,x));break;case "right":Fh);q=0;for(d=f.length;qd?("layout"in e||(e.layout=a.Ob()?"horizontal":"vertical"),"scale"in e||$.gA(e,"scale",a.scale(),b,c)):e.axis=d;return e}; +$.g.DX=function(a,b,c,d){var e=a.D();a.n3()&&$.gA(e,"scale",a.Po(),b,c);if(a=a.axis())d=(0,$.za)(d,$.oa(a)),0>d?("layout"in e||(e.layout=a.Ob()?"horizontal":"vertical"),"scale"in e||$.gA(e,"scale",a.scale(),b,c)):e.axis=d;return e};$.g.R=function(){$.sd(this.b,this.qf,this.og,this.rg,this.tg,this.Yg,this.Zg,this.jh,this.kh,this.Xa,this.ea,this.ud);delete this.b;delete this.qf;this.ud=this.ea=this.Xa=this.kh=this.jh=this.Zg=this.Yg=this.tg=this.rg=this.og=null;$.EA.u.R.call(this)};var qH=$.EA.prototype; +qH.isVertical=qH.xa;$.g=$.MA.prototype;$.g.ma=function(){return this.index};$.g.xc=function(){return this.ya};$.g.get=function(a){return this.ya.data().get(this.index,a)};$.g.set=function(a,b){this.ya.data().set(this.index,a,b);return this};$.g.lb=function(a){var b=this.xc(),c=$.Bx(b.state,$.Co,this.index);return $.p(a)&&c!=a?(a?b.Tj(this.index):b.Nd(this.index),this):c};$.g.selected=function(a){var b=this.xc(),c=$.Bx(b.state,$.Do,this.index);return $.p(a)&&c!=a?(a?b.select(this.index):b.ie(this.index),this):c}; +$.g.hy=function(){return this.indexb?this.Id&&(n="high",k="highHatchFill"):this.Pd&&(n="low",k="lowHatchFill"),h.path=n,h.oe=k):f?(this.X.gh()||(this.ba?ab||(0,window.isNaN)(b)?(n="rising",k="risingHatchFill"):ab||(0,window.isNaN)(b)?(l="risingStroke",m="risingFill",k="risingHatchFill"):aa;a=Math.abs(a);a=(a-this.pW)/(this.T3-this.pW);if((0,window.isNaN)(a)||!(0,window.isFinite)(a))a=.5;a=this.qW+a*(this.U3-this.qW);return b?-a:a};$.g.Be=function(){return this.Cu.g("yValues")};$.g.sl=function(){return this.Aa};$.g.xc=function(){return this.ya};$.g.$=function(){return this.iterator||this.Ec()}; +$.g.Ec=function(){return this.iterator=this.cg()};$.g.tl=function(){return this.ya.Ra()};$.g.bb=function(a){if($.p(a)){if(a){if(a=$.ut(this.Fc,a,null,15,null,this.zg,this)){var b=this.Fc==a;this.Fc=a;this.Fc.da(b);b||this.B(1024,5)}}else this.Fc&&(this.Fc&&$.ur(this.Fc,this.zg,this),this.Fc=null,this.B(1024,5));return this}return this.Fc||this.jf.bb()};$.g.zg=function(a){var b=0;$.X(a,4)&&(b|=4);$.X(a,2)?this.B(1024,b|1):this.va(b)};$.g.Lr=function(a,b){return this.Qe(this.tl().transform(a,b),!0)}; +$.g.Ip=function(a,b){return this.Qe(this.bb().transform(a,b),!1)};$.g.hi=function(a){return $.p(a)?(this.Cu.N(a),this):this.Cu};$.g.error=function(a){pB(this)||$.kl(12,void 0,[this.kk()]);this.Lv||(this.Lv=new hB(this),$.K(this.Lv,this.Pia,this));return $.p(a)?(this.Lv.N(a),this):this.Lv};$.g.Pia=function(a){var b=0;$.X(a,1)&&(b|=1);$.X(a,4)&&(b|=4);this.B(1024,b)};$.g.vs=function(a){return this.error().vs(a)}; +$.g.$T=function(a){var b=a?this.error().$J():this.error().SJ();if($.D(b)){var c=this.Ge();b=$.Wb(b.call(c,c))}if(this.kt()){var d=this.i2(a?"xErrorStroke":"valueErrorStroke");$.D(d)?(c=this.Ge(b),d=$.Wb(d.call(c,c))):d&&(d=$.Wb(d))}return d||b}; +$.g.gT=function(a){if(a=!a.o("missing")){var b=this.error(),c=b.Sa.$();a=c.get("xError")||b.hF();var d=c.get("xLowerError")||b.iF(),e=c.get("xUpperError")||b.jF(),f=c.get("valueError")||b.bF(),h=c.get("valueLowerError")||b.cF();b=c.get("valueUpperError")||b.fF();f=$.p(h)||$.p(b)||$.Bo(f)||!$.Ko(f);a=$.p(d)||$.p(e)||$.Bo(a)||!$.Ko(a)||f}if(a)switch(a=this.error(),d=a.mode(),e=this.g("isVertical"),d){case "x":a.W(!0,e);break;case "value":a.W(!1,e);break;case "both":a.W(!0,e),a.W(!1,e)}}; +$.g.clip=function(a){return $.p(a)?(null===a&&(a=!1),this.gg!=a&&(this.gg=a,this.B(4096,1)),this):this.gg};$.g.Ls=function(a){this.tp||(this.tp=new $.kB,$.K(this.tp,this.KW,this));return $.p(a)?(this.tp.N(a),this):this.tp};$.g.KW=function(a){var b=64,c=!1;$.X(a,8)&&(b|=8,c=!0);this.va(b,c)}; +$.g.qD=function(a){var b=this.Ls();b.I(b.sa);var c=Bv.prototype.D.call(b);$.p(b.GD())&&(c.iconTextSpacing=b.GD());var d=b.g("text");$.p(d)&&(c.text=d);$.p(b.zy())&&(c.iconEnabled=b.zy());$.p(b.HD())&&(c.iconType=b.HD());$.p(b.kw())&&(c.iconSize=b.kw());$.p(b.Gs())&&(c.iconFill=b.Gs());$.p(b.Is())&&(c.iconStroke=b.Is());$.p(b.Hs())&&(c.iconHatchFill=b.Hs());$.p(b.iw())&&(c.iconMarkerType=b.iw());$.p(b.gu())&&(c.iconMarkerFill=b.gu());$.p(b.hu())&&(c.iconMarkerStroke=b.hu());$.p(b.disabled())&&(c.disabled= +b.disabled());b=this.g("color");d=this.RC();a=c.text||a;$.z(a)&&(a=$.Xu($.Vu.vd(),a));c.text=$.D(a)?a.call(d,d):this.c2(d);c.disabled="disabled"in c?!!c.disabled:!this.enabled();c.meta=this.o();"marker"!=c.iconType||this.check(8192)||(c.iconFill=this.ca.Eb().g("fill"),c.iconStroke=this.ca.Eb().g("stroke"));c.iconType=this.pD(c.iconType,d);c.iconEnabled="iconEnabled"in c?!!c.iconEnabled:!0;c.iconStroke=this.dH(c.iconStroke,2,b,d);c.iconFill=this.dH(c.iconFill,1,b,d);c.iconHatchFill=this.dH(c.iconHatchFill, +3,this.Eh(),d);this.check(4194304)&&this.ca.Eb().enabled()?(c.iconMarkerType=c.iconMarkerType||this.ca.Eb().type(),c.iconMarkerFill=c.iconMarkerFill||this.ca.Eb().g("fill"),c.iconMarkerStroke=c.iconMarkerStroke||this.ca.Eb().g("stroke")):(c.iconMarkerType=null,c.iconMarkerFill=null,c.iconMarkerStroke=null);return c};$.g.pD=function(a){"marker"==a?(this.check(8192)?a=this.g("type"):this.check(4194304)?a=this.ca.Eb().type():a="square","line"==a&&(a="v-line")):$.D(a)||(a=$.Vk(a));return a}; +$.g.dH=function(a,b,c){if(a)$.D(a)?(b={sourceColor:c},a=a.call(b,b)):a=$.Yl(a);else{if(2==b)var d="stroke";else if(3==b){if(this.check(8))return null;d="hatchFill"}else this.check(8)?(d="stroke",b=2):d="fill";a=this.ca.g(d);var e=this.ca.oa[d];if($.D(a)&&a==e)return b=this.RC([{sourceColor:{value:c,type:"string"}}]),a.call(b,b);a=$.jm(d,b,!1)(this,$.nm,!0)}return a};$.g.c2=function(){return this.name()}; +$.g.Ua=function(a){if(!this.ox&&(this.ox=new $.Ew(0),this.ox.df(),this.ya.p6())){var b=this.ya,c=b.Ua();this.ox.parent(c);this.ox.ya(b);$.W(this,"tooltip",this.ox)}return $.p(a)?(this.ox.N(a),this):this.ox};$.g.kd=function(a){if($.p(a)){if(null===a&&this.vb)this.vb=null,this.B(65536,129);else if(a=$.ut(this.vb,a,null,48,null,this.Vp,this)){var b=this.vb==a;this.vb=a;this.vb.da(b);b||this.B(65536,129)}return this}return this.vb};$.g.Bn=ba(28);$.g.Vp=function(a){$.X(a,6)&&this.B(65536,129)}; +$.g.Qa=function(a){return $.p(a)?(this.ca.N(a),this):this.ca};$.g.lb=function(a){return $.p(a)?(this.za.N(a),this):this.za};$.g.selected=function(a){return $.p(a)?(this.Ea.N(a),this):this.Ea};$.g.i2=function(a){return this.kt()?this.$().get(a):void 0};$.g.ph=function(a){return null!=this.Pa[a]};$.g.g=function(a){var b=this.Pa[a];null==b&&(b=this.oa[a],null!=b||(b=this.Od[a]));return b}; +$.g.cH=function(a){return null!=this.Pa[a]?this.Pa[a]:null!=this.jf.Pa[a]?this.jf.Pa[a]:null!=this.ya.Pa[a]?this.ya.Pa[a]:null!=this.oa[a]?this.oa[a]:null!=this.jf.oa[a]?this.jf.oa[a]:null!=this.ya.oa[a]?this.ya.oa[a]:this.Od[a]}; +$.g.sc=function(a,b,c,d,e,f,h){var k=0==b?this.ca:1==b?this.za:this.Ea;if(h)return d(k.g(a));if(this.kt()){h=c.get(0==b?"normal":1==b?"hovered":"selected");var l=$.fp($.p(h)?h[a]:void 0,c.get($.om(b,a)),k.g(a))}if($.p(l))l=d(l);else{a=f||a;if(a in this.ua&&(l=this.g(a),$.p(l)))return d(l);e&&(k=this.Ea);l=k.Pa[a];null==l&&(l=k.oa[a],null!=l||b||(l=this.Od[a]),$.p(l)&&(l=d(l)))}return l};$.g.S1=function(){return this.O()}; +$.g.iA=function(a,b,c,d,e,f,h,k,l){var m;var n=h.ma();if((0,window.isNaN)(n))return null;f&&((m=this.QH[n])||(m=this.QH[n]=[]));var q;a[0]&&(q=a[0].call(this.ca));var r,t,u,v,w,x,y;if(h.o("missing")||h.o("skipDrawing"))a=!1;else{k=$.lm(k);var B=d&&this.kt();b[0]&&(r=b[0].call(this.ya.ca));var F=q;if(B)var G=(d=h.get("normal"))?d[c[0]]:h.get(c[0]);if(3this.fa.left+this.fa.width){var f=d;d=(0,$.za)($.Mo,f);0<=d&&(f=$.Mo.length,f=$.Mo[(f-d)%f]);d=f}if($.So(d)&&c.topthis.fa.top+this.fa.height)c=(0,$.za)($.Mo,d),0<=c&&(d=$.Mo.length,d=$.Mo[(d-c+4)%d]);d=$.Qo(d,e);b.rk(d)}; +$.g.SX=function(a,b,c,d,e,f,h,k,l,m,n,q,r){$.nv(a,$.uo([r,0,h,0,q,$.qo,f,$.qo,n,$.qo,e,$.qo,m,0,d,0,l,$.qo,c,$.qo,k,$.qo,b,$.qo,q,$.ro,f,$.ro,e,$.ro,a,$.qo,a,$.so,l,$.ro,c,$.ro,b,$.ro]))};$.g.M_=$.ia; +$.g.$L=function(a,b,c,d,e,f,h){if(e){a=a[0];var k=d;(d=a.ae(c))||(d=a.add(void 0,void 0,c));d.Hf(e);k=this.XN(d,k);d.jc(k);d.Hi();b.unshift(d);this.SX.apply(this,b);b=d.ic("anchor");pv(d,this.g("isVertical"));$.p(h)&&"auto"==b&&(h=this.AE(h,Number(d.ic("rotation"))||0),d.rk(h),this.r0(a,d));this.M_(d,c);c=d}else c=zB(this,a,c,d);f&&c.W();return c};$.g.labels=function(a){return $.p(a)?(this.ca.labels(a),this):this.ca.labels()};$.g.th=function(a){return $.p(a)?(this.ca.th(a),this):this.ca.th()}; +$.g.sh=function(a){return $.p(a)?(this.ca.sh(a),this):this.ca.sh()};$.g.ce=function(a){$.X(a,1)&&this.B(256,1025)}; +$.g.tf=function(a,b,c){var d=this.xc(),e=[this.ca.labels,this.za.labels,this.Ea.labels],f=this.iL()?[d.Qa().labels,d.lb().labels,d.selected().labels]:[],h=["label","hoverLabel","selectLabel"];a.o("isMaxPoint")?(e.push(this.ca.sh,this.za.sh,this.Ea.sh),this.iL()&&f.push(d.Qa().sh,d.lb().sh,d.selected().sh),h.push("maxLabel","hoverMaxLabel","selectMaxLabel")):a.o("isMinPoint")&&(e.push(this.ca.th,this.za.th,this.Ea.th),this.iL()&&f.push(d.Qa().th,d.lb().th,d.selected().th),h.push("minLabel","hoverMinLabel", +"selectMinLabel"));a.o("label",this.iA(e,f,h,this.kE(),!0,null,a,b,c))};$.g.TQ=function(){};$.g.hT=function(a){a.W()};$.g.XN=function(a,b){return b};$.g.Eb=function(a){return $.p(a)?(this.ca.Eb(a),this):this.ca.Eb()};$.g.Mn=function(a){$.X(a,1)&&this.B(128,65)};$.g.gq=function(a,b,c){a.o("marker",this.iA([this.ca.Eb,this.za.Eb,this.Ea.Eb],[],["marker","hoverMarker","selectMarker"],this.vO(),!1,null,a,b,c))}; +$.g.Zv=function(a){a=$.p(a)?a:$.jm(this.check(8)?"stroke":"fill",1,!1)(this,$.nm,!0,!0);return $.am(a,1,!0)};$.g.py=function(){return $.Xl(this.ca.Eb().g("fill"))};$.g.el=function(a){return $.p(a)?(this.ca.el(a),this):this.ca.el()};$.g.rja=function(a){$.X(a,1)&&this.B(128,1)};$.g.ZL=function(a,b,c){var d=a.o("outliers");d&&d.length&&this.iA([this.ca.el,this.za.el,this.Ea.el],[],["outlierMarker","hoverOutlierMarker","selectOutlierMarker"],this.RW(),!1,d,a,b,c)};$.g.kE=function(){return!1};$.g.vO=function(){return!1}; +$.g.RW=function(){return!1};$.g.G4=function(){return!1};$.g.gh=function(){return!1};$.g.iB=function(){return!1};$.g.yE=function(){if(this.gh()&&this.eh()&&this.rp()){var a=this.$();for(a.reset();a.advance();)AB(a);AB(this.KM());AB(this.JM())}};$.g.remove=function(){this.check(4)?$.ZA(this.Rf,null):this.Aa&&this.Aa.remove();var a=this.ca.labels();a.Vd()&&(a.Vd().remove(),a.B(2));if(a=this.ca.Eb())a.remove(),a.B(2);if(a=this.ca.el())a.remove(),a.B(2)}; +$.g.ut=function(a){this.kl||(this.kl=new ox(this),$.K(this.kl,this.GW,this),$.J(this.ya,$.Cx)&&(mx(this.kl,this.ya.ut()),mx(this.kl).va(2)));return $.p(a)?(this.kl.N.apply(this.kl,arguments),this):this.kl};$.g.GW=function(){this.B(32,1)}; +$.g.W=function(){if(!this.zc())return this;this.ka();$.p(this.Od.color)&&this.J(16768)&&this.Kq(this.Od.color);this.J(32768)&&(this.rE(),this.I(32768));if(this.J(4)){this.fa=this.ob();this.Lx=this.$g?this.$g.Ej(this.fa):this.fa;var a=Math.min(this.fa.height,this.fa.width);this.qW=$.L(this.Tha,a);this.U3=$.L(this.Mha,a);this.B(7168)}this.J(512)&&(this.Ec(),this.ZW(),this.B(68640,2049),this.I(512));this.i0();this.J(1024)&&this.B(24960);a=[];var b=[],c=!1;this.J(1026)&&(this.$W(),this.nE());if(this.J(1282)){var d= +this.ca.labels();var e=this.ca.th().enabled()||this.ca.sh().enabled()||this.za.labels().enabled()||this.Ea.labels().enabled()||this.za.th().enabled()||this.Ea.th().enabled()||this.za.sh().enabled()||this.Ea.sh().enabled();wB(this,d,e,this.kE(),$.XG,256)&&(e=this.zIndex()+this.zQ+(this.gh()?1:0),d.zh=e,d.B(8),this.check($.XG)&&a.push(this.tf),b.push(d),c=!0);this.ca.th().I(4294967295);this.ca.sh().I(4294967295);this.za.th().I(4294967295);this.za.sh().I(4294967295);this.Ea.th().I(4294967295);this.Ea.sh().I(4294967295); +this.I(256)}this.J(1154)&&(d=this.ca.Eb(),e=this.za.Eb().enabled()||this.Ea.Eb().enabled(),wB(this,d,e,this.vO(),4194304,128)&&(e=this.zIndex()+1.2E-5+(this.gh()?1:0),d.zh=e,this.check(4194304)&&a.push(this.gq),b.push(d)),this.I(128));if(this.J(9218)){this.eD||(this.eD=[]);if(this.nA)for(;this.nA.length;)d=this.nA.pop(),d.clear(),d.parent(null),this.eD.push(d);else this.nA=[];pB(this)&&"none"!=this.error().mode()&&(this.G4()||jB(this.error()))&&a.push(this.gT);this.I(8192)}this.J(17410)&&(d=this.ca.el(), +e=this.za.el().enabled()||this.Ea.el().enabled(),wB(this,d,e,this.RW(),256,16384)&&(e=this.zIndex()+1.1E-5,d.zh=e,this.check(256)&&a.push(this.ZL),b.push(d)),this.I(16384));d=a.length;if(this.J(1024)){if(e=this.rX()){var f=this.Be();this.bJ(e,f);c&&this.TQ();if(this.ya.g("categorizedBySeries")){c=this.Ec();var h=this.Gha;var k=this.ya.g("barsPadding");var l=this.ya.g("barGroupsPadding");var m=c.Sa.pd.cO;this.Pz=1/(l+k*(m-1)+m);$.qB(this,this.Pz);this.nE();this.Hd(!1)}else h=this.XA,this.Hd(),c=this.Ec(); +if(k=this.KM())this.XA(k,f,e),this.wn(k,this.rr(k.ma()));for(c.reset();c.advance();)for(c.o("destinationValue",window.NaN),l=this.rr(c.ma()),h.call(this,c,f,e),this.wn(c,l),k=0;k=e;if(null===h?0:!(0,window.isNaN)(k)&&0==k)e=this.g("isVertical"),h=this.bb().Ne(),e=!(e^h);h=b.cN;k=a.o("valueRatio");k=$.p(k)?!k:!c;e?(c=-c,(0,window.isNaN)(b.jB)?(b.jB=f+c,c=b.jB,h||(k=!1)):(f=Math.min(f,b.jB),c=f+c,b.jB=c)):(0,window.isNaN)(b.dB)?(b.dB=f+c,c=b.dB,h||(k=!1)):(f=Math.max(f,b.dB),c=f+c,b.dB=c);a.o("value",c);a.o("zero",f); +a.o("skipDrawing",k)}return d};$.g.Eha=function(a,b,c,d){if(!a.o("missing")){var e=a.o("value");b=a.o("zero");var f=this.jH(a),h=Number(f);c=Math.max(Math.abs(e-b),this.oW);e=b>=e;if(null===f?0:!(0,window.isNaN)(h)&&0==h)f=this.g("isVertical"),h=this.bb().Ne(),e=!(f^h);e&&(c=-c);a.o("value",b+c)}return d};$.g.Cha=function(a,b,c,d){if(!a.o("missing")){b=a.o("high");c=a.o("low");var e=(b+c)/2,f=Math.max(Math.abs(c-b),this.oW)/2;b>=c&&(f=-f);a.o("high",e-f);a.o("low",e+f)}return d}; +$.g.Iha=function(a,b,c,d,e){b=this.bb();b={value:$.Za(b.transform(a.o("stackedValue"),.5),0,1),zero:$.Za(b.transform(a.o("stackedZero"),.5),0,1),prevValue:b.transform(a.o("stackedValuePrev"),.5),prevZero:b.transform(a.o("stackedZeroPrev"),.5),nextValue:b.transform(a.o("stackedValueNext"),.5),nextZero:b.transform(a.o("stackedZeroNext"),.5)};this.YA(a,b,e);a.o("zeroMissing",a.o("stackedMissing"));if(e=a.o("shared")){c=Math.abs(b.value-b.zero);b=e.cN;var f=a.o("valueRatio");c=$.p(f)?!f:!c;e.g1||b||(c= +!1,e.g1=!0);a.o("skipDrawing",c)}return d};$.g.zha=function(a,b,c,d){for(var e,f,h=this.bb(),k=0;k=e){f=window.Infinity;e=-window.Infinity;var h=Math.min.apply(null,this.d5);b=Math.max.apply(null,this.d5);var k;for(k=0;kl&&(f=l))}f=(0,window.isFinite)(f)&&h>=f;b=(0,window.isFinite)(e)&&b<=e}a.o("isMinPoint", +f);a.o("isMaxPoint",b);return d};$.g.M3=function(a,b,c,d,e){for(var f=this.bb(),h={},k=0;kf&&k>h?d+=h-f:k>e&&f=this.pd.rj&&a<=this.pd.lastIndex}; +$.g.ZT=function(a,b,c,d){var e=this.data(),f=e.$(),h=this.bb(),k=!1,l=!1,m=this.Bk(),n,q=[];this.eh()&&this.kt()&&q.push("zIndex");m&&q.push("size");this.check(256)&&q.push("outliers");pB(this)&&(iB(this.Ra())&&(e.hd("xError")&&(q.push("xError"),k=!0),e.hd("xLowerError")&&(q.push("xLowerError"),k=!0),e.hd("xUpperError")&&(q.push("xUpperError"),k=!0)),iB(this.bb())&&(e.hd("valueError")&&(q.push("valueError"),l=!0),e.hd("valueLowerError")&&(q.push("valueLowerError"),l=!0),e.hd("valueUpperError")&&(q.push("valueUpperError"), +l=!0)));$.J(h,$.$t)&&(n=$.cu(h))&&e.hd(n)&&q.push(n);var r=this.Ra();$.J(r,$.$t)&&(n=$.cu(r))&&e.hd(n)&&q.push(n);var t=this.lV();for(r=0;f.advance();){var u=c(f.get("x"));if(!d(u)){var v={};v.x=u;var w;u=!1;var x=this.Be();var y=0;for(w=x.length;yy&&!this.g("displayNegative"))&&(u=!0);y={};u?y.missing=1:(y.missing=0,r++);y.rawIndex=f.ma(); +y.ordinalIndex=r-1;v={data:v,o:y};this.UW(f,v,t);b(a,v)}}if(this.check($.lB)&&this.g("connectMissingPoints")&&r!==a.length)for(c=b=null,f=d=window.NaN,m=h=!1,q=0;qe&&(e=~e),f=$.Oa(this.pd.data,function(a){return b-a.data.x}),0>f&&(f=~f);if(!(0,window.isNaN)(e)&&!(0,window.isNaN)(f)){if(e>f){var h=e;e=f;f=h}if(d)for(h=this.pd.data,d=0;d=e&&l<=f&&c.push(k.o.rawIndex)}else for(f=Math.min(f,this.pd.data.length- +1),d=e;d<=f;d++)c.push(d)}return c}c=this.Ra();if(e=$.J(c,$.$t))a=c.Yv(a),b=c.Yv(b);return this.vG.pM(a,b,e)};$.g.qk=function(a,b){if(LB(this)){var c=this.$();if(8===c.o("missing"))return b;var d=c.o("shapes");this.eh()&&(this.Rf.Mo(a,d),this.Rf.VB(a,d));this.check(256)&&this.ZL(c,a,!0);this.bf.aF(c,a);this.check(4194304)&&this.gq(c,a,!0);this.check($.XG)&&this.tf(c,a,!0);return b}};$.g.wm=$.ia; +$.g.nl=function(a){if(LB(this)){var b=this.$(),c=b.o("shapes");this.Rf.Mo(a,c);this.bf.aF(b,a);this.check(256)&&this.ZL(b,a,!0)}};$.g.pq=$.ia;$.g.ej=function(a){return $.p(a)?(a=null===a?null:$.Bk(a),a!=this.et&&(this.et=a),this):this.et};$.g.Xl=function(a){return $.p(a)?this:this.ya.gd().g("hoverMode")};$.g.Tj=function(a){$.p(a)?this.$i(a):this.$k();return this}; +$.g.Nd=function(a){var b;if(b=!$.ux(this.state,$.Co))b=!(this.state.fk()&$.Co);if(b||!this.enabled())return this;var c;$.p(a)?c=a:c=this.state.Gc==$.nm?window.NaN:void 0;this.state.Vh($.Co,c);return this};$.g.$i=function(a){if(!this.enabled())return this;if($.A(a)){for(var b=$.Ax(this.state,$.Co),c=0;cc&& +(c=window.NaN);a.pointIndex=c}return a};$.g.Ih=function(a){(a=this.Tg(a))&&this.dispatchEvent(a)}; +$.g.Tg=function(a){var b=a.type;switch(b){case "mouseout":b="pointmouseout";break;case "mouseover":b="pointmouseover";break;case "mousemove":b="pointmousemove";break;case "mousedown":b="pointmousedown";break;case "mouseup":b="pointmouseup";break;case "click":case "touchstart":b="pointclick";break;case "dblclick":b="pointdblclick";break;default:return null}var c;a.target!=this.Qa().el()||(0,window.isNaN)(a.markerIndex)?"pointIndex"in a?c=a.pointIndex:"labelIndex"in a?c=a.labelIndex:"markerIndex"in +a&&(c=a.markerIndex):c=dda(this,a.markerIndex);c=$.N(c);a.pointIndex=c;var d=this.cg();d.select(c)||d.reset();return{type:b,actualTarget:a.target,series:this,iterator:d,pointIndex:c,target:this,originalEvent:a,point:this.be(c)}};$.g.be=function(a){var b;this.Bk()?b=new OA(this,a):b=new $.NA(this,a);return b}; +$.g.D=function(){var a=$.FB.u.D.call(this);$.cr(this,hI,a);if(this.pd){for(var b=[],c=this.data(),d=new EB(this);d.advance();){var e=d.o("rawIndex");(0,window.isNaN)(e)?b.push({x:d.get("x")}):b.push(Pr(c,e))}a.data=b}else a.data=this.data().D();$.p(this.ej())&&(a.selectionMode=this.ej());return a};$.g.U=function(a,b){$.FB.u.U.call(this,a,b);$.Vq(this,hI,a,b);"data"in a&&this.data(a.data||null);this.ej(a.selectionMode)}; +$.g.R=function(){$.qd(this.gm);delete this.vG;this.fb=this.pd=this.state=this.de=this.gm=null;$.FB.u.R.call(this)};var iI=$.FB.prototype;iI.data=iI.data;iI.xScale=iI.Ra;iI.hover=iI.Tj;iI.unhover=iI.Nd;iI.select=iI.select;iI.unselect=iI.ie;iI.selectionMode=iI.ej;iI.getPoint=iI.be;iI.excludePoint=iI.t1;iI.includePoint=iI.iV;iI.keepOnlyPoints=iI.r3;iI.includeAllPoints=iI.hV;iI.getExcludedPoints=iI.EM;$.H($.OB,$.Y);var NB=1E6;$.OB.prototype.qa=$.Y.prototype.qa;$.OB.prototype.sa=$.Y.prototype.sa|464;$.OB.prototype.K=function(a){this.aa||(this.aa=new ZB(this),$.W(this,"thumbs",this.aa));return $.p(a)?(this.aa.N(a),this):this.aa}; +var jI=function(){function a(a){return function(b){var c=$.Fo(b,null);return null===b?this.vf(a):null===c?this.g(a):c}}var b={};$.Cq(b,[[0,"height",a("height")],[0,"minHeight",a("minHeight")],[0,"maxHeight",a("maxHeight")],[0,"orientation",nr],[0,"inverted",$.Qq],[0,"autoHide",$.Qq],[1,"fill",$.$q],[1,"selectedFill",$.$q],[1,"outlineStroke",$.Zq],[0,"allowRangeChange",$.Qq]]);return b}();$.U($.OB,jI);$.g=$.OB.prototype; +$.g.padding=function(a,b,c,d){this.Wa||(this.Wa=new $.Ru,$.K(this.Wa,this.fm,this),$.W(this,"padding",this.Wa));return $.p(a)?(this.Wa.N.apply(this.Wa,arguments),this):this.Wa};$.g.fm=function(a){$.X(a,2)&&this.B(4,9)};$.g.Ob=function(){return"bottom"==this.g("orientation")||"top"==this.g("orientation")};$.g.remove=function(){this.Aa&&this.Aa.remove()};$.g.Oe=function(){return this.enabled()&&(!this.g("autoHide")||this.g("allowRangeChange")||0!=this.F||this.j!=NB)}; +$.g.W=function(){if(!this.zc())return this;this.I(256);if(!this.Oe())return this.remove(),this.B(2),this;if(this.pf())return this;this.Aa||(this.Aa=$.ok(),this.f=$.qk(),this.f.zIndex(100),this.b=$.qk(),this.b.zIndex(100),this.ba=this.Aa.rect(),this.ba.zIndex(1),this.dO=$.tk(),this.ba.clip(this.dO),this.G=this.Aa.rect(),this.G.zIndex(50),this.vB=$.tk(),this.G.clip(this.vB),this.P=this.Aa.path(),this.P.zIndex(99),$.Bu(this,this.Aa,this.Gaa,this.$ha),this.wc.wa(this.f,"mouseover",this.A6),this.wc.wa(this.f, +"mouseout",this.z6),this.wc.Ce(this.f,"mousedown",this.ZE),this.wc.Ce(this.f,"touchstart",this.ZE),this.wc.wa(this.b,"mouseover",this.A6),this.wc.wa(this.b,"mouseout",this.z6),this.wc.Ce(this.b,"mousedown",this.ZE),this.wc.Ce(this.b,"touchstart",this.ZE),this.wc.Ce(this.G,"mousedown",this.ZE),this.wc.Ce(this.G,"touchstart",this.ZE),this.wc.wa(this.ba,"click",this.via));this.J(2)&&(this.Aa.parent(this.O()),this.I(2));this.J(8)&&(this.Aa.zIndex(this.zIndex()),this.I(8));this.J(128)&&(this.f.cursor(PB(this)), +this.b.cursor(PB(this)),this.G.cursor(PB(this)),this.B(84),this.I(128));this.J(4)&&(this.VP(),this.I(4));if(this.J(64)){var a=(Math.max($.$b(this.g("outlineStroke")),5)-1)/2;if(this.Ob()){var b=this.fa.top;if(this.K().g("enabled"))a=b+this.fa.height/2,this.f.clear().moveTo(-4,a-6).lineTo(-2,a-8).lineTo(2,a-8).lineTo(4,a-6).lineTo(4,a+6).lineTo(2,a+8).lineTo(-2,a+8).lineTo(-4,a+6).close().moveTo(-1,a-5).lineTo(-1,a+5).moveTo(1,a-5).lineTo(1,a+5),this.b.clear().moveTo(-4,a-6).lineTo(-2,a-8).lineTo(2, +a-8).lineTo(4,a-6).lineTo(4,a+6).lineTo(2,a+8).lineTo(-2,a+8).lineTo(-4,a+6).close().moveTo(-1,a-5).lineTo(-1,a+5).moveTo(1,a-5).lineTo(1,a+5);else{var c=b+this.fa.height;this.f.clear().moveTo(-a,b).lineTo(a,b).lineTo(a,c).lineTo(-a,c).close();this.b.clear().moveTo(-a,b).lineTo(a,b).lineTo(a,c).lineTo(-a,c).close()}}else b=this.fa.left,this.K().g("enabled")?(a=b+this.fa.width/2,this.f.clear().moveTo(a-6,-4).lineTo(a-8,-2).lineTo(a-8,2).lineTo(a-6,4).lineTo(a+6,4).lineTo(a+8,2).lineTo(a+8,-2).lineTo(a+ +6,-4).close().moveTo(a-5,-1).lineTo(a+5,-1).moveTo(a-5,1).lineTo(a+5,1),this.b.clear().moveTo(a-6,-4).lineTo(a-8,-2).lineTo(a-8,2).lineTo(a-6,4).lineTo(a+6,4).lineTo(a+8,2).lineTo(a+8,-2).lineTo(a+6,-4).close().moveTo(a-5,-1).lineTo(a+5,-1).moveTo(a-5,1).lineTo(a+5,1)):(c=b+this.fa.height,this.f.clear().moveTo(b,-a).lineTo(b,a).lineTo(c,a).lineTo(c,-a).close(),this.b.clear().moveTo(b,-a).lineTo(b,a).lineTo(c,a).lineTo(c,-a).close());this.B(16);this.I(64)}if(this.J(16)){this.ba.Qf(this.fa);this.G.Qf(this.fa); +this.dO.shape(this.fa);a=this.g("fill");this.ba.fill("none"==a?$.im:a).stroke(null);a=this.g("selectedFill");this.G.fill("none"==a?$.im:a).stroke(null);this.P.stroke(this.g("outlineStroke")).fill(null);TB(this,this.f,this.eb);TB(this,this.b,this.Xa);switch(this.g("orientation")){case "top":a=this.fa;c=this.F;b=this.j;this.g("inverted")&&(c=NB-c,b=NB-b);c=a.left+c/NB*a.width;var d=a.left+b/NB*a.width;this.f.pc(1,0,0,1,c,0);this.b.pc(1,0,0,1,d,0);b=Math.min(c,d);c=Math.max(c,d);this.vB.shape(b,a.top, +c-b,a.height);b=$.R(b,1);c=$.R(c,1);d=$.R(a.top,1);var e=$.R(a.top+a.height,1);this.P.clear().moveTo(a.left,d).lineTo(b,d).lineTo(b,e).lineTo(c,e).lineTo(c,d).lineTo(a.left+a.width,d);break;case "right":a=this.fa;b=this.F;c=this.j;this.g("inverted")||(b=NB-b,c=NB-c);b=a.top+b/NB*a.height;d=a.top+c/NB*a.height;this.f.pc(1,0,0,1,0,b);this.b.pc(1,0,0,1,0,d);c=Math.min(b,d);b=Math.max(b,d);this.vB.shape(a.left,c,a.width,b-c);this.P.clear().moveTo(a.left,a.top).lineTo(a.left,c).lineTo(a.left+a.width,c).lineTo(a.left+ +a.width,b).lineTo(a.left,b).lineTo(a.left,a.top+a.height);break;case "bottom":a=this.fa;c=this.F;b=this.j;this.g("inverted")&&(c=NB-c,b=NB-b);c=a.left+c/NB*a.width;d=a.left+b/NB*a.width;this.f.pc(1,0,0,1,c,0);this.b.pc(1,0,0,1,d,0);b=Math.min(c,d);c=Math.max(c,d);this.vB.shape(b,a.top,c-b,a.height);b=$.R(b,1);c=$.R(c,1);d=$.R(a.top,1);e=$.R(a.top+a.height,1);this.P.clear().moveTo(a.left,d).lineTo(b,d).lineTo(b,e).lineTo(c,e).lineTo(c,d).lineTo(a.left+a.width,d);break;case "left":a=this.fa,b=this.F, +c=this.j,this.g("inverted")||(b=NB-b,c=NB-c),b=a.top+b/NB*a.height,d=a.top+c/NB*a.height,this.f.pc(1,0,0,1,0,b),this.b.pc(1,0,0,1,0,d),c=Math.min(b,d),b=Math.max(b,d),this.vB.shape(a.left,c,a.width,b-c),this.P.clear().moveTo(a.left+a.width,a.top).lineTo(a.left+a.width,c).lineTo(a.left,c).lineTo(a.left,b).lineTo(a.left+a.width,b).lineTo(a.left+a.width,a.top+a.height)}this.K().g("autoHide")||RB(this);this.I(16)}return this}; +$.g.zd=function(){var a=this.ja();a=a?a.clone():$.rn(0,0,0,0);this.Oe()&&(this.J(4)&&(this.VP(),this.I(4)),this.Ob()?(a.height-=this.i.height,"top"==this.g("orientation")&&(a.top+=this.i.height)):(a.width-=this.i.width,"left"==this.g("orientation")&&(a.left+=this.i.width)));return a}; +$.g.VP=function(){var a=this.ja(),b=this.Ob()?a.height:a.width,c=$.L(this.g("height"),b),d=$.L(this.g("maxHeight"),b),e=$.L(this.g("minHeight"),b);b=c;(0,window.isNaN)(e)||(b=Math.max(b,e));(0,window.isNaN)(d)||(b=Math.min(c,d));b=this.Ob()?this.padding().$j(b):this.padding().Lk(b);this.i.left=a.left;this.i.top=a.top;c=this.g("orientation");this.Ob()?(this.i.width=a.width,this.i.height=b,"bottom"==c&&(this.i.top+=a.height-b)):(this.i.width=b,this.i.height=a.height,"right"==c&&(this.i.left+=a.width- +b));this.rb||this.Ob()?this.fa=this.padding().Ej(this.i):(b=this.padding(),"left"==c?(c=$.L(b.g("left"),this.i.width),a=$.L(b.g("top"),this.i.height),d=$.L(b.g("right"),this.i.width),b=$.L(b.g("bottom"),this.i.height)):(c=$.L(b.g("right"),this.i.width),a=$.L(b.g("bottom"),this.i.height),d=$.L(b.g("left"),this.i.width),b=$.L(b.g("top"),this.i.height)),this.fa.left=this.i.left+b,this.fa.top=this.i.top+c,this.fa.width=this.i.width-b-a,this.fa.height=this.i.height-c-d);this.B(80)}; +$.g.Gaa=function(a){a.Ju();!$.Ao(this.Aa,a.relatedTarget)&&this.oh(a)&&(this.$a=!0,RB(this))};$.g.$ha=function(a){a.Ju();!$.Ao(this.Aa,a.relatedTarget)&&this.oh(a)&&(this.$a=!1,SB(this))};$.g.A6=function(a){a=a.target;$.J(a,$.Ag)&&(a==this.f?TB(this,this.f,this.eb=!0):a==this.b&&TB(this,this.b,this.Xa=!0))};$.g.z6=function(a){a=a.target;$.J(a,$.Ag)&&(a==this.f?TB(this,this.f,this.eb=!1):a==this.b&&TB(this,this.b,this.Xa=!1))}; +$.g.ZE=function(a){if($.J(a.currentTarget,$.hg)){var b=a.currentTarget,c;b!=this.f||this.Ba?b!=this.b||this.ea?b!=this.G||this.na||(this.na=c=new YB(this,this.G,!1)):this.ea=c=new YB(this,this.b,!0):this.Ba=c=new YB(this,this.f,!0);c&&(this.wc.wa(c,"start",this.Faa),this.wc.wa(c,"end",this.Eaa),c.mk(a.kf))}};$.g.via=function(a){var b=$.Zj(this.Aa.Ka());a=this.Ob()?a.clientX-b.x:a.clientY-b.y;UB(this,"background-click","scrollerchangestart")&&(WB(this,!1,a),UB(this,"background-click","scrollerchangefinish"))}; +$.g.Faa=function(a){if(this.g("allowRangeChange")&&a.f!=this.na){a=PB(this);var b="thumb-drag"}else a=PB(this),b="selected-range-drag";if(b=UB(this,b,"scrollerchangestart"))this.Ha++,this.f.cursor(null),this.b.cursor(null),this.G.cursor(null),$.uf(window.document.body,"cursor",a);return b}; +$.g.Eaa=function(a){this.Ha=Math.max(this.Ha-1,0);SB(this);this.f.cursor(PB(this));this.b.cursor(PB(this));this.G.cursor(PB(this));$.uf(window.document.body,"cursor","");a=this.g("allowRangeChange")&&a.f!=this.na?"thumb-drag":"selected-range-drag";UB(this,a,"scrollerchangefinish")};$.g.L3=function(a,b,c,d){return{type:a,startRatio:b,endRatio:c,source:d}}; +$.g.R=function(){$.qd(this.Aa);this.G=this.ba=this.P=this.b=this.f=this.Aa=null;$.qd(this.Ba);this.Ba=null;$.qd(this.ea);this.ea=null;$.qd(this.na);this.na=null;$.qd(this.aa);this.aa=null;$.qd(this.Wa);this.Wa=null;$.OB.u.R.call(this)};$.g.D=function(){var a=$.OB.u.D.call(this);$.cr(this,jI,a,"Scroller");a.thumbs=this.K().D();return a};$.g.U=function(a,b){$.OB.u.U.call(this,a,b);$.Vq(this,jI,a,b);"thumbs"in a&&this.K().ga(!!b,a.thumbs)};$.H(YB,$.ag);$.g=YB.prototype; +$.g.Daa=function(){$.p(this.Qj)&&($.ll.cancelAnimationFrame(this.Qj),this.rs(0))};$.g.ar=function(){this.i.Ob()?(this.deltaX=XB(this.i,this.b),this.deltaY=0):(this.deltaX=0,this.deltaY=XB(this.i,this.b))};$.g.ls=function(a,b){this.ba=this.i.Ob()?a:b;$.p(this.Qj)||(this.Qj=$.ll.requestAnimationFrame(this.rs))};$.g.VA=function(a){return this.i.Ob()?VB(this.i,this.b,a):0};$.g.My=function(a){return this.i.Ob()?0:VB(this.i,this.b,a)};$.H(ZB,$.V);$.Tq(ZB,["fill","stroke"],"normal"); +ZB.prototype.B=function(a,b){return this.i.B(a,b)};ZB.prototype.Qa=function(a){return $.p(a)?(this.ca.N(a),this):this.ca};ZB.prototype.lb=function(a){return $.p(a)?(this.za.N(a),this):this.za};var kI={};$.Cq(kI,[[0,"enabled",$.Pq],[0,"autoHide",$.Pq]]);$.U(ZB,kI);$.g=ZB.prototype;$.g.D=function(){var a={};a.normal=this.Qa().D();a.hovered=this.lb().D();$.cr(this,kI,a,"Scroller thumbs");return a};$.g.U=function(a,b){this.ca.ga(!!b,a);this.ca.ga(!!b,a.normal);this.za.ga(!!b,a.hovered);$.Vq(this,kI,a)}; +$.g.he=function(a){return $.da(a)||null===a?{enabled:!!a}:null};$.g.Le=function(a,b){var c=this.he(b);return c?(this.enabled(c.enabled),!0):!1};$.g.R=function(){$.sd(this.ca,this.za);this.za=this.ca=null;ZB.u.R.call(this)};$.H($B,$.OB);$.Hu($B,$.OB);$B.prototype.Jr=function(a,b){$.QB(this,a,b);return this};$B.prototype.$b=function(a){return $.p(a)?($.QB(this,a,this.j/NB),this):this.F/NB};$B.prototype.Lb=function(a){return $.p(a)?($.QB(this,this.F/NB,a),this):this.j/NB};var lI=$.OB.prototype; +lI.thumbs=lI.K;lI=ZB.prototype;lI.normal=lI.Qa;lI.hovered=lI.lb;lI=$B.prototype;$.E("anychart.standalones.scroller",function(){var a=new $B;a.N($.um("standalones.scroller"));return a});lI.setRange=lI.Jr;lI.startRatio=lI.$b;lI.endRatio=lI.Lb;lI.parentBounds=lI.ja;lI.getRemainingBounds=lI.zd;lI.container=lI.O;lI.padding=lI.padding;lI.draw=lI.W;$.H($.aC,$.OB);var mI={};$.Bq(mI,0,"position",function(a,b){return $.zk(yda,a,b||"after-axes")});$.U($.aC,mI);$.aC.prototype.D=function(){var a=$.aC.u.D.call(this);$.cr(this,mI,a);return a};$.aC.prototype.U=function(a,b){$.aC.u.U.call(this,a,b);$.Vq(this,mI,a,b)};$.g=bC.prototype;$.g.BB=function(a,b){a=$.Za($.N(a),0,1);(0,window.isNaN)(a)&&(a=this.i);b=$.Za($.N(b),0,1);(0,window.isNaN)(b)&&(b=this.b);this.f=null;if(this.i!=a||this.b!=b)this.i=a,this.b=b,this.ra.B(268435456,1);return this};$.g.U5=function(a,b,c){this.f={start:a,end:b,scale:c};this.ra.B(268435456,1);return this};$.g.T5=function(a,b,c){this.f={count:$.P(a),scale:c,ofa:!!b};this.ra.B(268435456,1);return this};$.g.Fz=function(){cC(this);return this.i};$.g.Ez=function(){cC(this);return this.b}; +$.g.tS=function(a){return $.p(a)?(a=!!a,this.j!=a&&(this.j=a),this):this.j};$.g.N=function(a){$.p(a)&&((0,window.isNaN)(+a)?$.C(a)&&(this.tS(a.continuous),$.p(a.startValue)&&$.p(a.endValue)?this.U5(a.startValue,a.endValue,$.J(a.scale,gt)?a.scale:void 0):$.p(a.pointsCount)?this.T5(a.pointsCount,a.fromEnd,$.J(a.scale,gt)?a.scale:void 0):this.BB(a.startRatio,a.endRatio)):this.BB(0,1/Math.abs(+a||1)));return this};$.g.D=function(){return{startRatio:this.Fz(),endRatio:this.Ez(),continuous:this.j}}; +var nI=bC.prototype;nI.setTo=nI.BB;nI.setToValues=nI.U5;nI.setToPointsCount=nI.T5;nI.getStartRatio=nI.Fz;nI.getEndRatio=nI.Ez;nI.continuous=nI.tS;$.H($.dC,$.EA);var oI=function(){var a={};$.Cq(a,[[0,"zAngle",function(a){return $.Za($.N(a),0,90)}],[0,"zAspect",function(a){return $.ea(a)?Math.max(a,0):a}],[0,"zDistribution",$.Qq],[0,"zPadding",function(a){return Math.max($.N(a),0)||0}]]);return a}();$.U($.dC,oI);$.g=$.dC.prototype;$.g.sa=$.EA.prototype.sa|1879048192;$.g.Tq=function(a){return $.p(a)?(this.ka(),this.Uc.N(a),this.da(!0),this):this.Uc};$.g.Uq=function(a){return $.p(a)?(this.ka(),this.bg.N(a),this.da(!0),this):this.bg}; +$.g.Lp=function(a){this.F||(this.F=new $.aC,this.F.kb(this),$.K(this.F,this.YZ,this),this.wc.wa(this.F,"scrollerchange",this.qK),this.wc.wa(this.F,"scrollerchangefinish",this.qK),this.B(536870916,1),$.W(this,"xScroller",this.F));return $.p(a)?(this.F.N(a),this):this.F}; +$.g.Ur=function(a){this.G||(this.G=new $.aC,this.G.kb(this),$.K(this.G,this.YZ,this),this.wc.wa(this.G,"scrollerchange",this.qK),this.wc.wa(this.G,"scrollerchangefinish",this.qK),this.B(1073741828,1),$.W(this,"yScroller",this.G));return $.p(a)?(this.G.N(a),this):this.G};$.g.YZ=function(a){var b=a.target==this.Lp()?536870912:1073741824,c=1;$.X(a,8)&&(b|=4,c|=8);this.B(b,c)}; +$.g.qK=function(a){var b=a.target==this.Lp()?this.Uc:this.bg;b.tS()^"scrollerchangefinish"==a.type&&(a.preventDefault(),this.ka(),b.BB(a.startRatio,a.endRatio),this.da(!0))};$.g.Gt=function(a,b){return new $.FB(this,this,a,b,!0)};$.g.Ss=function(a){return $.zk(Bda,a,"line")};$.g.mD=function(a){a=eC(this.Ur(),a);this.Ek=a.C5;a=eC(this.Lp(),a.y0);return $.dC.u.mD.call(this,a.y0,a.C5)};$.g.Q_=function(a,b){var c=fC(this,a,this.Lp(),b),d=this.Ur();return fC(this,c,d,this.Ek)}; +$.g.HR=function(a){if(this.J(268435456)){for(var b in this.mm){var c=this.Tq().Fz(),d=1/(this.Tq().Ez()-c);ht(this.mm[b],d,c)}$.QB(this.Lp(),this.Tq().Fz(),this.Tq().Ez());a||this.B(570687488)}};$.g.IR=function(a){if(this.J(268435456)){for(var b in this.pn){var c=this.Uq().Fz(),d=1/(this.Uq().Ez()-c);ht(this.pn[b],d,c)}$.QB(this.Ur(),this.Uq().Fz(),this.Uq().Ez());a||this.B(1107296256)}};$.g.O_=function(){this.J(268435456)&&(this.HR(!0),this.IR(!0),this.B(1644167168))}; +$.g.pb=function(){$.dC.u.pb.call(this);this.I(268435456)};$.g.p2=function(){return this.Uc.Fz()};$.g.o2=function(){return this.Uc.Ez()};$.g.UT=function(){return $.dC.u.UT.call(this)|1610612736};$.g.jR=function(){$.dC.u.jR.call(this);this.J(536870912)&&(this.Lp().O(this.Na),this.Lp().W(),this.I(536870912));this.J(1073741824)&&(this.Ur().O(this.Na),this.Ur().W(),this.I(1073741824))}; +$.g.Z5=function(a,b,c){var d=this.N1(b);b=d.transform(c,0);c=d.transform(c,1);return"selected"!=a||1>=Math.min(b,c)&&0<=Math.max(b,c)};$.g.N1=function(a){return a.tl()}; +$.g.ht=function(a,b,c){$.dC.u.ht.call(this,a,b,c);$.Vq(this,oI,a);"xScroller"in a&&this.Lp().ga(!!c,a.xScroller);"yScroller"in a&&this.Ur().ga(!!c,a.yScroller);var d=a.xZoom;$.C(d)&&($.ea(d.scale)||$.z(d.scale))?(c=d.scale,d.scale=b[d.scale],this.Tq(d),d.scale=c):this.Tq(d);a=a.yZoom;$.C(a)&&($.ea(a.scale)||$.z(a.scale))?(c=a.scale,a.scale=b[a.scale],this.Uq(a),a.scale=c):this.Uq(a)}; +$.g.D=function(){var a=$.dC.u.D.call(this);$.cr(this,oI,a);a.xScroller=this.Lp().D();a.yScroller=this.Ur().D();a.xZoom=this.Tq().D();a.yZoom=this.Uq().D();return{chart:a}};$.g.R=function(){$.dC.u.R.call(this);$.sd(this.F,this.G);this.G=this.F=null};$.g=$.gC.prototype;$.g.zs=ba(29);$.g.Yt=function(){$.iC(this);return this.b.concat()};$.g.Uj=function(){return 0==this.i};$.g.clear=function(){this.f={};this.i=this.b.length=0};$.g.remove=function(a){return $.hC(this.f,a)?(delete this.f[a],this.i--,this.b.length>2*this.i&&$.iC(this),!0):!1};$.g.get=function(a,b){return $.hC(this.f,a)?this.f[a]:b};$.g.set=function(a,b){$.hC(this.f,a)||(this.i++,this.b.push(a));this.f[a]=b}; +$.g.forEach=function(a,b){for(var c=this.Yt(),d=0;da.o("size")){var c="negative";var d="negativeHatchFill"}else c="circle",d="hatchFill";var e={};e[c]=!0;e[d]=!0;c=this.bd.ed(b,e);rC(this,a,c)};$.g.yt=function(a){var b=a.o("shapes");rC(this,a,b)};$.H(sC,$.RA);$.WG[5]=sC;$.g=sC.prototype;$.g.type=5;$.g.flags=$.aH|263744;$.g.Kh={rising:"path",risingHatchFill:"path",falling:"path",fallingHatchFill:"path"};$.g.Mp=["open","high","low","close"];$.g.El="close"; +$.g.ug=function(a,b){var c=Number(a.get("open"))b?this.mc&&(d="highFill",e="highHatchFill"):this.Uc&&(d="lowFill",e="lowHatchFill");c.ZU="highStroke";c.XV="lowStroke";c.fill=d;c.oe=e;return c}; +$.g.Qo=function(a){var b=this.bd,c=this.X.Be(),d=a.get(c[1]);c=a.get(c[0]);d=this.nh(d,c);c={};c[d.ZU]=!0;c[d.XV]=!0;c=b.ed(this.Gc,c);this.P=c[d.ZU];this.ea=c[d.XV];c={};c[d.fill]=!0;c[d.oe]=!0;this.b=b.ed(this.Gc,c);b=a.o("x");c=a.o("high");a=a.o("low");var e=this.b[d.fill],f=this.b[d.oe];$.PA(e,this.xa,b,a);$.QA(e,this.xa,b,c);$.PA(f,this.xa,b,a);$.QA(f,this.xa,b,c);$.PA(this.P,this.xa,b,c);this.f=[b,a,e,f];this.i=b;this.j=c;this.K=a;this.na=d}; +$.g.ug=function(a){var b=this.bd,c=this.X.Be(),d=a.get(c[1]);c=a.get(c[0]);d=this.nh(d,c);c={};c[d.fill]=!0;c[d.oe]=!0;b=b.ed(this.Gc,c);c=a.o("x");var e=a.o("high");a=a.o("low");if(this.b!=b){var f=Cn(this.i,this.j,c,e,this.i,this.K,c,a);if(f){var h=this.b[this.na.fill];var k=this.b[this.na.oe];$.QA(h,this.xa,f.x,f.y);$.QA(k,this.xa,f.x,f.y);this.f.push(f.x,f.y,h,k);this.b=b;h=this.b[d.fill];k=this.b[d.oe];$.PA(h,this.xa,f.x,f.y);$.PA(k,this.xa,f.x,f.y);this.f.push(f.x,f.y,h,k)}else{h=this.i;k=this.j; +f=this.i;var l=this.K;h=$.cn((a-l)*(c-h)-(c-f)*(e-k),0)&&($.cn((c-f)*(k-l)-(a-l)*(h-f),0)||$.cn((c-h)*(k-l)-(e-k)*(h-f),0))?!0:!1;h&&(this.b=b,h=this.b[d.fill],k=this.b[d.oe],$.PA(h,this.xa,this.i,this.j),$.PA(k,this.xa,this.i,this.j),this.f.push(this.i,this.j,h,k))}}h=this.b[d.fill];k=this.b[d.oe];$.QA(h,this.xa,c,e);$.QA(k,this.xa,c,e);$.QA(this.P,this.xa,c,e);this.f.push(c,a,h,k);this.i=c;this.j=e;this.K=a;this.na=d}; +$.g.Km=function(){if(this.G&&this.f){for(var a=!0,b=null,c=this.f.length-1;0<=c;c-=4){var d=this.f[c-3],e=this.f[c-2],f=this.f[c-1],h=this.f[c];b&&f!=b?($.PA(f,this.xa,d,e),$.PA(h,this.xa,d,e)):($.QA(f,this.xa,d,e),$.QA(h,this.xa,d,e));a?($.PA(this.ea,this.xa,d,e),a=!1):$.QA(this.ea,this.xa,d,e);b=f}this.f=null}};$.H($.BC,$.RA);$.WG[12]=$.BC;$.g=$.BC.prototype;$.g.type=12;$.g.flags=$.mm|263680;$.g.Kh={path:"path",hatchFill:"path"};$.g.Mp=["low","high"];$.g.El="high"; +$.g.ug=function(a,b){if(!a.o("skipDrawing")){var c=this.X.Be(),d=a.get(c[1]);c=a.get(c[0]);d=this.nh(d,c);c={};c[d.path]=!0;c[d.oe]=!0;a.o("name",d.path);c=this.bd.ed(b,c);var e=a.o("x"),f=a.o("high"),h=a.o("low");e-=this.F/2;var k=e+this.F,l=$.$b(c[d.path].stroke());this.wv&&(e=$.R(e,l),k=$.R(k,l));f=$.R(f,l);h=$.R(h,l);l=c[d.path];$.PA(l,this.xa,e,h);$.QA(l,this.xa,k,h);$.QA(l,this.xa,k,f);$.QA(l,this.xa,e,f);l.close();l=c[d.oe];$.PA(l,this.xa,e,h);$.QA(l,this.xa,k,h);$.QA(l,this.xa,k,f);$.QA(l, +this.xa,e,f);l.close()}};CC.prototype.xa=function(a){return $.p(a)?(this.K=a,this):this.K};CC.prototype.aa=function(a){return $.p(a)?(this.i=a,this):this.i}; +CC.prototype.f=function(a){var b,c,d=arguments;for(b=0;bb?this.mc&&(d="highFill",e="highHatchFill"):this.Uc&&(d="lowFill",e="lowHatchFill");c.ZU="highStroke";c.XV="lowStroke";c.fill=d;c.oe=e;return c}; +$.g.Hd=function(a){LC.u.Hd.call(this,a);this.i.xa(this.xa);a=this.X.iB();$.p(a)&&(this.i.Ha=a);this.j.xa(this.xa);a=this.X.iB();$.p(a)&&(this.j.Ha=a);this.K=[]}; +$.g.Qo=function(a){var b=this.bd,c=this.X.Be(),d=a.get(c[1]);c=a.get(c[0]);var e={highStroke:!0,lowStroke:!0};e=b.ed(this.Gc,e);this.P=e.highStroke;this.ea=e.lowStroke;var f=this.nh(d,c);e={};e[f.fill]=!0;e[f.oe]=!0;b.ed(this.Gc,e);b=a.o("x");e=a.o("high");a=a.o("low");JC(this.i,!1);this.i.Ca=[this.P];(e=HC(this.i,b,e))&&this.K.push.apply(this.K,e);e=this.X.$().current();f=this.X.$().ma();this.f=[b,a,d,c,e,f]}; +$.g.ug=function(a){var b=this.bd,c=this.X.Be(),d=a.get(c[1]);c=a.get(c[0]);var e=this.nh(d,c),f={};f[e.fill]=!0;f[e.oe]=!0;b.ed(this.Gc,f);b=a.o("x");e=a.o("high");a=a.o("low");(e=HC(this.i,b,e))&&this.K.push.apply(this.K,e);e=this.X.$().current();f=this.X.$().ma();this.f.push(b,a,d,c,e,f)}; +$.g.Km=function(){var a=this.bd;if(this.G){var b=IC(this.i);b&&this.K.push.apply(this.K,b);this.i.Ca=[this.ea];JC(this.i,!0);JC(this.j,!0);b=[];if(this.f){for(var c=!0,d=this.X.cg(),e=this.f.length-1;0<=e;e-=6){var f=this.f[e-2],h=this.f[e-3];var k=this.f[e-4];var l=this.f[e-5];d.Iu(this.f[e-1],this.f[e]);h=this.nh(h,f);f=a.ed(this.Gc,d.o("shapeNames"));HC(this.j,l,k);HC(this.i,l,k);c?(this.b=f,k=f[h.fill],l=f[h.oe],this.j.Ca=[k,l],c=!1):(k=e==this.f.length-7||5==e?6:12,k=$.Ca(this.K,this.K.length- +k,k),$.qa($.Ca,b,void 0,0).apply(null,k),this.b!=f&&(k=f[h.fill],l=f[h.oe],h=this.j,k=[k,l],h.b=b.slice(),h.P=k,b.length=0,this.b=f))}$.qa($.Ca,this.j.Wh,void 0,0).apply(null,b);IC(this.j);IC(this.i);this.f=null}}};$.H(MC,$.RA);$.WG[14]=MC;$.g=MC.prototype;$.g.type=14;$.g.flags=$.lB|$.mm|131072;$.g.Kh={fill:"path",hatchFill:"path",highStroke:"path",lowStroke:"path"};$.g.Mp=["low","high"];$.g.El="high";$.g.Hd=function(a){MC.u.Hd.call(this,a);this.P=this.X.g("stepDirection")||"center"}; +$.g.Qo=function(a){var b=this.bd.ed(this.Gc),c=a.o("x"),d=a.o("high");a=a.o("low");$.PA(b.fill,this.xa,c,a);$.QA(b.fill,this.xa,c,d);$.PA(b.hatchFill,this.xa,c,a);$.QA(b.hatchFill,this.xa,c,d);$.PA(b.highStroke,this.xa,c,d);this.i=c;this.j=d;this.f=[c,a]}; +$.g.ug=function(a){var b=this.bd.ed(this.Gc),c=a.o("x"),d=a.o("high");a=a.o("low");var e=b.fill,f=b.hatchFill;b=b.highStroke;switch(this.P){case "forward":$.QA(e,this.xa,c,this.j);$.QA(f,this.xa,c,this.j);$.QA(b,this.xa,c,this.j);break;case "backward":$.QA(e,this.xa,this.i,d);$.QA(f,this.xa,this.i,d);$.QA(b,this.xa,this.i,d);break;default:var h=(c+this.i)/2;$.QA(e,this.xa,h,this.j,h,d);$.QA(f,this.xa,h,this.j,h,d);$.QA(b,this.xa,h,this.j,h,d)}$.QA(e,this.xa,c,d);$.QA(f,this.xa,c,d);$.QA(b,this.xa, +c,d);this.i=c;this.j=d;this.f.push(c,a)}; +$.g.Km=function(){if(this.G&&this.f){var a=this.bd.ed(this.Gc),b=a.fill,c=a.hatchFill;a=a.lowStroke;for(var d=window.NaN,e=window.NaN,f=!0,h=this.f.length-1;0<=h;h-=2){var k=this.f[h-1],l=this.f[h];if(f)$.PA(a,this.xa,k,l),f=!1;else switch(this.P){case "forward":$.QA(b,this.xa,d,l);$.QA(c,this.xa,d,l);$.QA(a,this.xa,d,l);break;case "backward":$.QA(b,this.xa,k,e);$.QA(c,this.xa,k,e);$.QA(a,this.xa,k,e);break;default:d=(k+d)/2,$.QA(b,this.xa,d,e,d,l),$.QA(c,this.xa,d,e,d,l),$.QA(a,this.xa,d,e,d,l)}$.QA(b, +this.xa,k,l);$.QA(c,this.xa,k,l);$.QA(a,this.xa,k,l);d=k;e=l}b.close();c.close();this.f=null}};$.H(NC,$.RA);$.WG[31]=NC;$.g=NC.prototype;$.g.type=31;$.g.flags=$.mm|295433;$.g.Kh={stroke:"path"};$.g.Hd=function(a){NC.u.Hd.call(this,a);this.wv=2e?this.Id&&(c="highStroke"):this.Pd&&(c="lowStroke");f[c]=!0;a.o("name",c);d=this.bd.ed(b,f);OC(this,a,d,c)};$.g.yt=function(a){var b=a.o("shapes"),c=a.o("name"),d;for(d in b)b[d].clear();OC(this,a,b,c)};$.H(PC,$.RA);$.WG[15]=PC;$.g=PC.prototype;$.g.type=15;$.g.flags=$.lB|32969;$.g.Kh={stroke:"path"};$.g.Hd=function(a){PC.u.Hd.call(this,a);this.f.xa(this.xa);a=this.X.iB();$.p(a)&&(this.f.Ha=a)};$.g.Qo=function(a){var b=a.get(this.X.Be()[0]),c=this.nh(b,this.prevValue),d=a.o("x");a=a.o("value");var e={};e[c.stroke]=!0;this.b=this.bd.ed(this.Gc,e);this.f.Ca=[this.b[c.stroke]];JC(this.f,!1);HC(this.f,d,a);this.P=a;this.prevValue=b}; +$.g.ug=function(a){var b=a.get(this.X.Be()[0]),c=this.bd,d=this.nh(b,this.prevValue),e={};e[d.stroke]=!0;c=c.ed(this.Gc,e);var f=a.o("x");e=a.o("value");HC(this.f,f,e);if(c!=this.b){var h;f=this.P;var k=SA(this,b);this.ba&&k?h=a.o("zero"):this.Ha&&!this.ba?h=f:h="middle";a=this.f;d=[c[d.stroke]];a.b=h;a.P=d;this.b=c}this.P=e;this.prevValue=b};$.g.Km=function(){this.G&&IC(this.f)};$.g.R=function(){this.f.Ca=null;PC.u.R.call(this)};$.H(QC,$.RA);$.WG[16]=QC;$.g=QC.prototype;$.g.type=16;$.g.flags=$.lB|225;$.g.Kh={fill:"path",hatchFill:"path",stroke:"path"};$.g.Hd=function(a){QC.u.Hd.call(this,a);this.i.xa(this.xa);a=this.X.iB();$.p(a)&&(this.i.Ha=a)};$.g.jA=function(a){if(this.Ba){if(this.X.gh()){var b=a.o("x"),c=a.o("zero");a=a.o("zeroMissing");this.f.push(b,c,a)}}else this.Km()}; +$.g.Qo=function(a){var b=a.get(this.X.Be()[0]),c=this.nh(b,this.prevValue),d=a.o("x"),e=a.o("zero"),f=a.o("zeroMissing");a=a.o("value");e=cp(e);a=cp(a);JC(this.i,!1);this.i.aa(e);HC(this.i,d,a);var h={};h[c.stroke]=!0;h[c.fill]=!0;h[c.oe]=!0;this.b=this.bd.ed(this.Gc,h);h=this.b[c.fill];h.b=!0;var k=this.b[c.oe];k.b=!0;c=this.b[c.stroke];c.b=!1;this.i.Ca=[h,c,k];this.X.gh()?this.f=[d,e,f]:this.Mi=e;this.P=a;this.prevValue=b}; +$.g.ug=function(a){var b=this.bd,c=a.get(this.X.Be()[0]),d=this.j=this.nh(c,this.prevValue),e=a.o("x"),f=a.o("zero"),h=a.o("zeroMissing");a=a.o("value");f=cp(f);a=cp(a);HC(this.i,e,a);var k={};k[d.stroke]=!0;k[d.fill]=!0;k[d.oe]=!0;b=b.ed(this.Gc,k);if(b!=this.b){var l;k=this.P;var m=SA(this,c);this.ba&&m?l=f:this.Ha&&!this.ba?l=k:l="middle";k=b[d.fill];k.b=!0;m=b[d.oe];m.b=!0;var n=b[d.stroke];n.b=!1;d=this.i;k=[k,n,m];d.b=l;d.P=k;this.i.aa(f);this.b=b}this.X.gh()&&this.f.push(e,f,h);this.P=a;this.prevValue= +c}; +$.g.Km=function(){if(this.G&&(IC(this.i),this.f)){var a=this.j,b={};b[a.stroke]=!0;b[a.fill]=!0;b[a.oe]=!0;this.b=this.bd.ed(this.Gc,b);b=this.b[a.fill];b.b=!1;var c=this.b[a.oe];c.b=!1;a=this.b[a.stroke];a.b=!1;this.i.Ca=[b,a,c];JC(this.i,!0);for(var d=a=window.NaN,e=!1,f=!0,h=this.f.length-1;0<=h;h-=3){var k=this.f[h-2],l=this.f[h-1],m=this.f[h];f?($.QA(b,this.xa,k,l),$.QA(c,this.xa,k,l),m||HC(this.i,k,l),f=!1):m&&e?($.QA(b,this.xa,k,l),$.QA(c,this.xa,k,l)):m?(IC(this.i),JC(this.i,!0),$.QA(b,this.xa, +a,l,k,l),$.QA(c,this.xa,a,l,k,l)):(e&&($.QA(b,this.xa,k,d,k,l),$.QA(c,this.xa,k,d,k,l)),HC(this.i,k,l));a=k;d=l;e=m}IC(this.i);this.f=null}};$.g.R=function(){this.i.Ca=null;QC.u.R.call(this)};$.H(RC,$.RA);$.WG[17]=RC;$.g=RC.prototype;$.g.type=17;$.g.flags=$.lB|131297;$.g.Kh={fill:"path",hatchFill:"path",stroke:"path"};$.g.Hd=function(a){RC.u.Hd.call(this,a);this.P=this.X.g("stepDirection")||"center"}; +$.g.Qo=function(a){var b=a.get(this.X.Be()[0]),c=this.bd,d=this.nh(b,this.prevValue),e={};e[d.stroke]=!0;e[d.fill]=!0;e[d.oe]=!0;c=this.b=c.ed(this.Gc,e);e=a.o("x");a.o("zeroX");var f=a.o("zero"),h=a.o("value");if(this.X.gh()){var k=a.o("nextZero");a=a.o("nextValue");if((0,window.isNaN)(k)||(0,window.isNaN)(a))TC(this,c,d,e,h,f),this.f=[e,f],this.j=h;else{var l=c.stroke;$.PA(l,this.xa,e,h);$.QA(l,this.xa,e,h);TC(this,c,d,e,a,k);this.f=[e,k];this.j=a}}else TC(this,c,d,e,h,f),this.ea=e,this.Mi=f,this.j= +h;this.i=e;this.prevValue=b;this.Ja=f;this.K=d}; +$.g.ug=function(a){var b=a.get(this.X.Be()[0]),c=this.bd,d=this.nh(b,this.prevValue),e={};e[d.stroke]=!0;e[d.fill]=!0;e[d.oe]=!0;c=c.ed(this.Gc,e);e=a.o("x");a.o("zeroX");var f=a.o("zero"),h=a.o("value");if(this.X.gh()){var k=a.o("prevZero"),l=a.o("prevValue"),m=a.o("nextZero");a=a.o("nextValue");(0,window.isNaN)(k)||(0,window.isNaN)(l)?(UC(this,c,d,b,e,h,f),this.f.push(e,f)):(UC(this,c,d,b,e,l,f),this.f.push(e,k),this.i=e,this.j=l,this.Km(),TC(this,c,d,e,h,f),this.f=[e,f]);(0,window.isNaN)(m)||(0,window.isNaN)(a)? +this.j=h:($.QA(c.stroke,this.xa,e,h),this.Km(),TC(this,c,d,e,a,m),this.f=[e,m],this.j=a)}else UC(this,c,d,b,e,h,f),this.ea=e,this.j=h;this.i=e;this.prevValue=b;this.Ja=f;this.K=d}; +$.g.Km=function(){if(this.G){var a=this.b,b=this.K,c=a[b.fill];a=a[b.oe];if(!(0,window.isNaN)(this.ea))$.QA(c,this.xa,this.ea,this.Mi),$.QA(a,this.xa,this.ea,this.Mi),c.close(),a.close();else if(this.f){var d=window.NaN;b=window.NaN;for(var e=this.f.length-1;0<=e;e-=2){var f=this.f[e-1],h=this.f[e];if(!(0,window.isNaN)(b))switch(this.P){case "forward":$.QA(c,this.xa,d,h);$.QA(a,this.xa,d,h);break;case "backward":$.QA(c,this.xa,f,b);$.QA(a,this.xa,f,b);break;default:d=(f+d)/2,$.QA(c,this.xa,d,b,d, +h),$.QA(a,this.xa,d,b,d,h)}$.QA(c,this.xa,f,h);$.QA(a,this.xa,f,h);d=f;b=h}c.close();a.close();this.f=null}}};$.H(VC,$.RA);$.WG[18]=VC;$.g=VC.prototype;$.g.type=18;$.g.flags=$.lB|164041;$.g.Kh={stroke:"path"};$.g.Hd=function(a){VC.u.Hd.call(this,a);this.P=this.X.g("stepDirection")||"center"};$.g.Qo=function(a){var b=a.get(this.X.Be()[0]),c=this.nh(b,this.prevValue),d={};d[c.stroke]=!0;this.b=this.bd.ed(this.Gc,d);d=a.o("x");a=a.o("value");$.PA(this.b[c.stroke],this.xa,d,a);this.i=d;this.j=a;this.prevValue=b;this.K=c}; +$.g.ug=function(a){var b=this.bd,c=a.get(this.X.Be()[0]),d=this.nh(c,this.prevValue),e={};e[d.stroke]=!0;b=b.ed(this.Gc,e);e=a.o("x");var f=a.o("value"),h=this.j;if(b!=this.b){var k=SA(this,c);this.ba&&k&&(h=a.o("zero"));a=WC(this,this.K,e,this.j,h);this.b=b;$.PA(this.b[d.stroke],this.xa,a,h)}WC(this,d,e,h,f);$.QA(this.b[d.stroke],this.xa,e,f);this.i=e;this.j=f;this.prevValue=c;this.K=d};$.H(XC,$.RA);$.WG[20]=XC;$.g=XC.prototype;$.g.type=20;$.g.flags=296681;$.g.Kh={stroke:"path"};$.g.Hd=function(a){XC.u.Hd.call(this,a);this.wv=2=this.Hb())&&$.p(a)&&this.f){if(this.f.o){var b=this.f.o("treemap_type");if(1==b||3==b||4==b)return;if(b=this.f.o(a))return b}if(this.f.get)return this.f.get(a)}};$.g.ma=function(){return this.i};$.g.Hb=function(){return this.b.length};$.g.o=function(a,b){if(this.f&&this.f.o)return 1c*c}return e},Mea=function(){return new $.jy},EO=function(a,b,c){$.Mz.call(this,null,[],[],b,c);this.ya=a},GO=function(a,b,c,d,e,f){$.Mr.call(this,a);this.i=b;this.f=d||null;this.j=e||function(a, +b){a.value+=Math.max(0,+b)||0;return a};this.F=f||function(){return{value:0}};this.b=new FO;this.b.o(0,"groupedPoint",!0);this.b.o(0,"name",c)},FO=function(){$.V.call(this);$.Sr(this);this.f=void 0},IO=function(a,b,c){$.Mz.call(this,null,[],[],b,c);this.ya=a;this.G=HO(this.ya);this.i=this.ya.g("connectorStroke")},JO=function(a,b){$.MA.call(this,a,b)},LO=function(a,b){$.Jx.call(this);this.Ga("pieFunnelPyramidBase","pie");this.contextMenu(this.oa.contextMenu);this.ka();this.Yc=this.i=this.fd=this.Fa= +this.Uc=null;this.nf=!0;this.Lb={};this.Ek=function(){var a=this.sourceColor,b=this.aquaStyleObj;return{keys:[{offset:0,color:$.Wl(a,.5)},{offset:.95,color:$.Xl(a,.4)},{offset:1,color:$.Xl(a,.4)}],cx:.5,cy:.5,fx:b.fx,fy:b.fy,mode:b.mode}};this.F=[];this.state=new $.qx(this);this.data(a||null,b);this.B(4294967295);$.T(this.ua,[["overlapMode",4096,1],["radius",4,1],["innerRadius",4,1],["startAngle",4112,1],["sort",16,1,0,function(){KO(this)}],["insideLabelsOffset",4100,9],["connectorLength",4100,9], +["outsideLabelsCriticalAngle",4096,1],["forceHoverLabels",4096,1],["connectorStroke",16,1],["mode3d",4116,1],["sliceDrawer",16,1]]);var c={};$.T(c,[["explode",4116,1],["fill",528,1],["stroke",528,1],["hatchFill",528,1],["labels",0,0],["outline",0,0]]);this.ca=new $.uy(this,c,$.nm,[[1,"fill",function(a){var b=!1;$.z(a[0])&&(a[0]=a[0].toLowerCase(),b="aquastyle"==a[0]);return this.g("mode3d")&&b?this.g("fill"):$.D(a[0])||b?a[0]:$.Ub.apply(null,a)}]]);this.ca.ta("labelsFactoryConstructor",Mea);this.ca.ta("labelsAfterInitCallback", +function(a){$.K(a,this.ce,this);a.kb(this);this.B(4096,1)});this.ca.ta("outlineAfterInitCallback",function(a){$.K(a,this.sja,this);this.B(16,1)});c={};$.T(c,[["explode",4116,1],["fill",16,1],["stroke",16,1],["hatchFill",0,0],["labels",0,0],["outline",16,1]]);this.za=new $.uy(this,c,$.Co);this.za.ta("labelsFactoryConstructor",$.xy);c={};$.T(c,[["explode",4116,1],["fill",16,1],["stroke",16,1],["hatchFill",0,0],["labels",0,0],["outline",16,1]]);this.Ea=new $.uy(this,c,$.Do);this.Ea.ta("labelsFactoryConstructor", +$.xy);this.da(!1)},KO=function(a){$.qd(a.P);delete a.sd;a.P=Nea(a,a.i);$.K(a.P,a.dd,a);a.B(13104,17)},Nea=function(a,b){if(null!=a.Uc){var c=b;b=new GO(b,"value",a.yo,a.Uc,void 0,function(){return{value:0}});$.rd(c,b);b.xY=!0}c=a.g("sort");"none"!=c&&null!=c&&(b="asc"==c?b.sort("value",function(a,b){return a-b}):b.sort("value",function(a,b){return b-a}),b.xY=!0);return b},NO=function(a,b,c){if(!a)return $.dm;var d=b+"|"+a+"|"+c,e=MO[d];if(!e){switch(b){case 2:e=$.fm;break;case 3:e=$.gm;break;default:case 1:e= +$.hm}MO[d]=e=$.qa(Oea,a,e,3==b,c)}return e},Oea=function(a,b,c,d,e,f,h,k){if(f!=$.nm&&d){var l=e.sc(a,f,e.$(),b,!1,void 0,h);c&&!0===l&&(l=b(e.Eh()));if($.p(l)){if(!$.D(l))return l;if(c)return c=e.Yi(h),b(l.call(c,c))}}a=e.sc(a,0,e.$(),b,!1,void 0,h);d=$.p(k)?k:a;k=$.z(a)&&"aquastyle"==a;c&&!0===a&&(a=b(e.Eh()));$.D(a)&&(c=c?e.Yi(h):e.Ge(d,h),a=b(a.call(c,c)));k&&(c=e.$(),c={aquaStyleObj:e.Lb,sourceColor:e.dc().oc(c.ma())},a=e.Ek.call(c));l&&(c=e.Ge(a,h),a=b(l.call(c,c)));return a},OO=function(a, +b,c){c=a.$().o(c||"hatchSlice");null!=c&&(a=NO("hatchFill",3,!0)(a,b,!1),c.stroke(null).fill(a))},PO=function(a){return $.C(a)&&a.hasOwnProperty("mode")&&a.hasOwnProperty("cx")},QO=function(a){a=null===a?window.NaN:+a;return!($.ea(a)&&!(0,window.isNaN)(a)&&0q||270=n:!1:4==l?4==m?h>=n:!0:!1}if(h)for(l=eP(d,f),h=a.F.length,n=l.length,a.F.length=h+n,m=0;md&&(d=0);0>e&&(e=0);if(d=e?360==Math.abs(h)?l.Fe(b,c,d,.45*d,f,h,!1):l.moveTo(b,c).Fe(b,c,d,.45*d,f,h,!0).close():(m=360>Math.abs(h),l.Fe(b,c,d,.45*d,f,h).Fe(b,c,e,.45*e,f+h,-h,m),m&&l.close()),YO(a,n,k)},lP=function(a,b){var c=a.$(),d=c.ma(),e=c.get("normal"),f=$.fp($.p(e)?e.fill:void 0,c.get("fill"),a.fill());b=$.lm(b);b==$.Do?(e=c.get("selected"),c=$.fp($.p(e)?e.fill:void 0,c.get("selectFill"),a.selected().fill(),f),f=a.DK(c,f)):b==$.Co?(e=c.get("hovered"),c=$.fp($.p(e)? +e.fill:void 0,c.get("hoverFill"),a.lb().fill(),f),f=a.DK(c,f)):f=a.DK(f);f=$.z(f)?$.Sl(f):$.Sl(f.color);d=a.dc().oc(d);var h;$.C(d)&&(d.color?h=$.Sl(d.color):d.keys&&d.keys.length&&(h=$.Sl(d.keys[0].color)));h=h?h.wk:d;return f?f.wk:h},YO=function(a,b,c){var d=a.$(),e=d.ma(),f=lP(a,c),h=$.Ll(f),k=d.o(b);k.tag={X:a,index:e};var l,m=$.Pl(h,.3),n=$.Ol([255,255,255],h,.1),q=$.Tb($.Ol(h,m,.7));n=$.Tb($.Ol(m,n,.1));var r=$.Tb($.Ol(h,m,.8)),t=$.Tb($.Ol(h,m,.2));h=$.Tb($.Ol(h,m,.1));var u=$.lm(c);m=u==$.Co; +u=u==$.Do;var v=$.bm(m?a.lb().fill():u?a.selected().fill():a.fill());t={color:m||u?$.Wl(t,.2):t,opacity:v};n={angle:45,keys:[{position:0,opacity:v,color:m||u?$.Wl(f,.2):$.Wl(f,.1)},{position:.19,opacity:v,color:m||u?$.Wl(n,.2):n},{position:1,opacity:v,color:m||u?$.Wl(r,.2):r}]};q=f={angle:-50,keys:[{position:0,opacity:v,color:m||u?$.Wl(f,.3):f},{position:1,opacity:v,color:m||u?$.Wl(q,.2):q}]};"topPath"==b?l=f:"bottomPath"==b?l=q:$.ec(b,"outer")?l=n:$.ec(b,"inner")?l=t:l={color:m||u?$.Wl(h,.2):h,opacity:v}; +var w;u&&$.km(a.selected().stroke())?w=a.selected().stroke():$.km(a.stroke())?w=a.stroke():w=l;k.fill(l);k.stroke(w);b="hatch"+String(b.charAt(0)).toUpperCase()+b.substr(1);if(d=d.o(b))d.qe(k.D()),d.tag={X:a,index:e},OO(a,c,b)},dP=function(a,b){return 0<=a&&0<=b?1:0>=a&&0<=b?2:0>=a&&0>b?3:4},eP=function(a,b){var c=$.$m(Math.cos($.bb(a)),7),d=$.$m(Math.cos($.bb(b)),7),e=dP(c,Math.sin($.bb(a))),f=dP(d,Math.sin($.bb(b))),h=[];if(1==e)switch(f){case 1:c>=d?h.push({start:a,end:b}):(h.push({start:a,end:180, +Jn:!0}),h.push({start:360,end:b}));break;case 2:h.push({start:a,end:b,Jn:!0});break;case 3:case 4:h.push({start:a,end:180,Jn:!0})}else if(2==e)switch(f){case 1:h.push({start:a,end:180});h.push({start:360,end:b});break;case 2:c>=d?h.push({start:a,end:b}):(h.push({start:a,end:180}),h.push({start:360,end:b,Jn:!0}));break;case 3:case 4:h.push({start:a,end:180})}else if(3==e)switch(f){case 1:h.push({start:360,end:b});break;case 2:h.push({start:360,end:b,Jn:!0});break;case 3:c>=d&&h.push({start:0,end:180, +Jn:!0})}else if(4==e)switch(f){case 1:h.push({start:360,end:b});break;case 2:h.push({start:360,end:b,Jn:!0});break;case 3:h.push({start:360,end:180,Jn:!0});break;case 4:c>=d&&h.push({start:0,end:180,Jn:!0})}return h},fP=function(a,b){var c=$.$m(Math.cos($.bb(a)),7),d=$.$m(Math.cos($.bb(b)),7),e=dP(c,Math.sin($.bb(a))),f=dP(d,Math.sin($.bb(b))),h=[];if(1==e)switch(f){case 1:c<=d&&h.push({start:180,end:360});break;case 3:h.push({start:180,end:b});break;case 4:h.push({start:180,end:b,Jn:!0})}else if(2== +e)switch(f){case 1:h.push({start:180,end:360,Jn:!0});break;case 2:c<=d&&h.push({start:180,end:360,Jn:!0});break;case 3:h.push({start:180,end:b});break;case 4:h.push({start:180,end:b,Jn:!0})}else if(3==e)switch(f){case 1:case 2:h.push({start:a,end:360,Jn:!0});break;case 3:c>=d?(h.push({start:a,end:360}),h.push({start:180,end:b})):h.push({start:a,end:b});break;case 4:h.push({start:a,end:b,Jn:!0})}else if(4==e)switch(f){case 1:case 2:h.push({start:a,end:360});break;case 3:h.push({start:a,end:360});h.push({start:180, +end:b});break;case 4:c>=d?(h.push({start:a,end:360}),h.push({start:180,end:b})):h.push({start:a,end:b})}return h},SO=function(a,b){var c=a.$();c.select(b);var d=a.Dc,e=a.uc,f=$.vx(a.state,b);if(f=TO(a,f)){var h=a.g("mode3d"),k=c.o("start");c=c.o("sweep");c=(k+c/2)*Math.PI/180;h=(h?.45*f:f)*Math.sin(c);d+=f*Math.cos(c);e+=h}return[d,e]},iP=function(a,b){bd)throw Error("Index can not be masked by this View");return a>=d?(a-=d,2b.ma()?1:a.ma()this.Ja&& +(this.dn=t),this.Ja=Math.max(this.Ja,sa);this.aa[t]||(sa=this.$a[2*t+1]-.2*this.b/2,sa=w&&saa.width&&(a.width=0);0>a.height&&(a.height=0);this.Lb.fx=!(0,window.isNaN)(e)&&(0,window.isFinite)(e)?e:0;this.Lb.fy=!(0,window.isNaN)(b)&&(0,window.isFinite)(b)?b:0;this.Lb.mode=a;WO(this)}; +$.g.pb=function(){if(this.J(8192)){this.hJ();for(var a=this.data().$(),b,c=0,d=Number.MAX_VALUE,e=-Number.MAX_VALUE,f=0;a.advance();)b=a.get("value"),QO(b)?c++:(b=+b,d=Math.min(b,d),e=Math.max(b,e),f+=b);a=a.Hb()-c;var h;a?h=f/a:d=e=f=h=void 0;this.La("count",a);this.La("min",d);this.La("max",e);this.La("sum",f);this.La("average",h);this.I(8192)}};$.g.pv=function(){this.Fa&&$.J(this.Fa,$.Ws)&&$.Xs(this.Fa,this.$().Hb())};$.g.kK=function(){var a=this.f.gi.sb();$.nb(a,this.Ba)||XO(this,a)}; +$.g.jL=function(){this.B(4,1)}; +$.g.Qh=function(a){this.pb();$.hv(this.labels());var b=this.$();b.Hb();var c=this.g("mode3d"),d=this.Sp();this.J(16384)&&(d&&d.ak&&(this.f.dG(),this.f.ak.parent(this.Na),this.f.ak.zIndex(25),this.f.ak&&($.J(this.f.gi,$.hg)?this.f.ak.Ka().wa("renderfinish",this.kK,!1,this):$.J(this.f.gi,$.Y)&&this.f.ak.wa("chartdraw",this.jL,!1,this))),this.I(16384));this.J(4)&&(this.nf=!0,this.Mm(a),this.B(4112));if(this.J(16)){this.yg=!0;var e=this.Vl();var f=0;for(b.reset();b.advance();)if(f=b.get("value"),QO(f))b.o("missing", +!0);else{f=+f;f=f/this.Rg("sum")*360;var h=b.get("state");h="selected"==h?$.Do:"hovered"==h?$.Co:"normal"==h?$.nm:window.NaN;(0,window.isNaN)(h)||this.state.Lh(h,b.ma());b.o("start",e).o("sweep",f).o("explode",TO(this,h));e+=f}}if(this.J(4096)){this.labels().O()||this.labels().O(this.Na);this.labels().clear();this.mc&&(this.mc.length=0);this.Id&&(this.Id.length=0);this.ba&&(this.ba.clear(),c&&this.$b.clear());if(this.labels().enabled()){var k=HO(this)?"outsideLabels":"insideLabels";e=$.Gr(this,k, +!0,function(){var a=new $.V;$.rd(this,a);$.W(this,k,a);return a}).oa;this.labels().Kq(e.autoColor);this.labels().disablePointerEvents(e.disablePointerEvents);if(HO(this)){if(this.yg||this.nf)this.b=this.zp,this.Ja=Number.NEGATIVE_INFINITY;VO(this);if(this.yg||this.nf){for(e=5;this.Ja&&(0,window.isFinite)(this.Ja)&&e&&10h&&(a=h,this.y=h-this.height);0!=this.labels.length&& +(e=this.qg.ek(this.labels[0]).height,this.y+eM&&(M=Math.abs(t-d));M=G*Math.sqrt(Math.pow(M,2)-Math.pow(t-d,2))/M;G=c+(this.f?1:-1)*Math.abs(M);x=c+x*Math.cos(w);B=d+B*Math.sin(w);var O=c+y*Math.cos(w);w=d+F*Math.sin(w);F=Math.floor($.on(G, +t,c,d))+v;v=Math.abs($.Bb(G-x,t-B,O-x,w-B));y=0>M||F>y;if(v>this.j||(0,window.isNaN)(this.j)||y){this.j=0>M?Number.POSITIVE_INFINITY:v;M=window.Infinity;for(F=w=0;Fh||y)this.YH=!0;u=G+u;G=this.f?u:u-e.width;this.x=(0,window.isNaN)(this.x)?G:this.x>G?G:this.x;G=this.f?u+e.width:u;this.width=(0,window.isNaN)(this.width)?G:this.widtht?y=$.cb(Math.atan(t/u))+360:0>u?y=$.cb(Math.atan(t/u))+180:!u&&0t&&(y=270);y-=r;this.b.push(y,G,n);a-=e.height/2+q/2}this.width-=this.x}; +$.g.pb=function(){this.Mx();if(this.YH){var a=this.K,b=this.F;(0,window.isNaN)(b)||(a.enabled(!1),this.ep||(this.ep=[]),this.ep.push(a),$.Ca(this.labels,b,1));var c=this.qg;a=this.labels;var d=this.i,e,f,h=d[d.length-1];if(h!=this){var k=null;b=a.slice();var l=d.length,m=!1;var n=0;for(e=a.length;nb.length){c.push(hia(a)+"(");for(var d=a.arguments,e=0;d&&eb)throw Error("Bad port number "+b);a.G=b}else a.G=null};Gia=function(a,b,c){b instanceof FW?(a.f=b,Iia(a.f,a.b)):(c||(b=GW(b,Jia)),a.f=new FW(b,a.b))};EW=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""}; +GW=function(a,b,c){return $.z(a)?(a=(0,window.encodeURI)(a).replace(b,Kia),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};Kia=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};FW=function(a,b){this.f=this.b=null;this.i=a||null;this.j=!!b};HW=function(a){a.b||(a.b=new $.gC,a.f=0,a.i&&Dia(a.i,function(b,c){a.add((0,window.decodeURIComponent)(b.replace(/\+/g," ")),c)}))}; +Mia=function(a){var b=Bia(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new FW(null,void 0);a=Aia(a);for(var d=0;dNumber($.ad)&&(c.vl.src='javascript:""');d=c.vl.style;d.visibility="hidden";d.width=d.height="10px";d.display="none";$.xd?d.marginTop=d.marginLeft="-10px":(d.position="absolute",d.top=d.left="-10px");if($.hd&&!$.bd("11")){c.Uk.target=c.LA||"";$.ye(c.Uk).b.body.appendChild(c.vl);$.Ld(c.vl,"readystatechange",c.IW,!1,c);try{c.b=!1,c.Uk.submit()}catch(Ib){$.Yd(c.vl,"readystatechange",c.IW,!1,c),LW(c)}}else{$.ye(c.Uk).b.body.appendChild(c.vl);d=c.LA+"_inner";e=BW(c.vl);if(window.document.baseURI){var f= +$.pc(d);$.ie("Short HTML snippet, input escaped, safe URL, for performance");f='';f=$.re(f,null)}else f=$.pc(d),$.ie("Short HTML snippet, input escaped, for performance"),f=$.re('',null);$.yd&&!$.xd?e.documentElement.innerHTML=yW(f):e.write(yW(f));$.Ld(e.getElementById(d),"load",c.jO,!1,c);var h=AW("TEXTAREA",c.Uk);f=0;for(var k=h.length;f.");if("A"in Sia)throw Error("Tag name is not allowed for SafeHtml.");w=null;x="";if(u)for(var S in u){if(!Ria.test(S))throw Error('Invalid attribute name "'+ +S+'".');var wa=u[S];if(null!=wa){G=x;y=S;B=wa;if(B instanceof $.he)B=tW(B);else if("style"==y.toLowerCase())B=via(B);else{if(/^on/i.test(y))throw Error('Attribute "'+y+'" requires goog.string.Const value, "'+B+'" given.');if(y.toLowerCase()in Tia)if(B instanceof vW)B=mia(B);else if(B instanceof $.ke)B=wW(B);else if($.z(B))B=xW(B).cu();else throw Error('Attribute "'+y+'" on tag "a" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+B+'" given.');}B.Ay&&(B=B.cu());var sa=y+'="'+$.pc(String(B))+ +'"';x=G+(" "+sa)}}var Qa="";else{var xb=wia(Q);Qa+=">"+yW(xb)+"";w=xb.b()}var mc=u&&u.dir;mc&&(/^(ltr|rtl|auto)$/i.test(mc)?w=0:w=null);var hb=$.re(Qa,w);var dc=wia(O,hb,zW("\nLine: "+v.lineNumber+"\n\nBrowser stack:\n"+v.stack+"-> [end]\n\nJS stack traversal:\n"+jia(void 0)+"-> "))}catch(Ac){dc=zW("Exception trying to expose exception! You win, we lose. "+Ac)}yW(dc);$.Yd(e.getElementById(d),"load",c.jO,!1,c);e.close();LW(c)}}MW(c)}; +Qia=function(a,b){var c=$.ye(a);Cia(b,function(b,e){$.A(b)||(b=[b]);(0,$.Pe)(b,function(b){b=c.Ac("INPUT",{type:"hidden",name:e,value:b});a.appendChild(b)})})};Via=function(a,b){a.iG=!0;a.cw=!1;var c,d;c||"function"!=typeof a.i||(d=a.i(b))&&(c=4);c?LW(a):(a.dispatchEvent("complete"),a.dispatchEvent("success"),OW(a))};LW=function(a){a.b||(a.cw=!1,a.iG=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"),OW(a),a.b=!0)};OW=function(a){Wia(a);MW(a);a.Uk=null;a.dispatchEvent("ready")}; +Wia=function(a){var b=a.vl;b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,a.f.push(b));a.KA&&($.Ej(a.KA),a.KA=null);$.gd||$.yd&&!$.xd?a.KA=$.Dj(a.Y0,2E3,a):a.Y0();a.vl=null;a.LA=null};MW=function(a){a.Uk&&a.Uk==KW&&$.Ve(a.Uk)};PW=function(a){return a.vl?$.hd&&!$.bd("11")?a.vl:BW(a.vl).getElementById(a.LA+"_inner"):null};Xia=function(){};Zia=function(a){var b;(b=a.b)||(b={},Yia(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b};$ia=function(){}; +aja=function(a){return(a=Yia(a))?new window.ActiveXObject(a):new window.XMLHttpRequest};Yia=function(a){if(!a.f&&"undefined"==typeof window.XMLHttpRequest&&"undefined"!=typeof window.ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;ck?[k/h*d,k]:[c,k],k[0]-=e||0, +k[1]-=f||0,a=a.Nq(k[0],k[1])):a=a.Nq(b["pdf-width"],b["pdf-height"]);b.data=a;b.dataType="svg";b.responseType="file"};fX=function(a,b,c,d,e){if("svg"==$.kk){var f={};aX(a,f,b,c,d,e);NW(ZW+"/png",f)}else(0,window.alert)($.ld(15))};gX=function(a,b,c,d,e,f){if("svg"==$.kk){var h={};bX(a,h,b,c,d,e,f);NW(ZW+"/jpg",h)}else(0,window.alert)($.ld(15))};hX=function(a,b,c,d,e,f){if("svg"==$.kk){var h={};eX(a,h,b,c,d,e,f);NW(ZW+"/pdf",h)}else(0,window.alert)($.ld(15))}; +iX=function(a,b,c,d){if("svg"==$.kk){var e={};cX(a,e,b,c,d);NW(ZW+"/svg",e)}else(0,window.alert)($.ld(15))};mja=function(a){var b="";a&&(b=(new window.XMLSerializer).serializeToString(a));return b};jX=function(){this.b={};this.i={};this.G={};this.j={};this.F={};this.ea=["svg2pdf.min.js","jspdf.min.js","canvg.min.js","xlsx.core.min.js"];this.i3=!1;this.K={}}; +nja=function(a){var b=kX,c=$.fa.anychart.exports;if(c.i3)return zia();var d=b.ea,e=c.ic(a,"clientside").path;e+=$.fc(e,"/")?"":"/";a=[];for(var f=0;fn||!f&&qu?"l":"p","pt",[t,u]);$.z(b)? +r.addImage(b,"png",h,k,t,u):$.fa.svg2pdf(b,r,{xOffset:h,yOffset:k,scale:1})}r.save(l)}catch(v){d(c)}}; +oX=function(a,b,c,d,e,f,h){var k=nX[c],l=$.Re(window.document,"canvas");l.width=d;l.height=e;$.uf(l,{width:d,height:e,visibility:"hidden",position:"fixed",right:0,bottom:0});$.Vp.body.appendChild(l);var m=l.getContext("2d"),n=new window.Image,q=b.quality||.92;a.setAttribute("width",d);a.setAttribute("height",e);var r=(new window.XMLSerializer).serializeToString(a),t=kia(new window.Blob([r],{type:"image/svg+xml"}));n.onload=function(){try{if(l.msToBlob&&m.drawSvg){m.drawSvg(r,0,0,d,e);var a=l.toDataURL(k, +q)}else m.drawImage(n,0,0,d,e),a=l.toDataURL(k,q);f(a);$.Xe(l);uW().revokeObjectURL(t)}catch(v){h(b)}};n.src=t}; +qja=function(a,b,c,d,e,f,h){function k(a){mX(a,l,c)}var l=d.filename||"anychart",m=0m||!l&&n'+c};$.E("acgraph.server",function(a){$.p(a)&&(ZW=a);return ZW});var qX=$.Yj.prototype;qX.useAnychartExporting=qX.wla;qX.saveAsPNG=qX.Eu; +qX.saveAsJPG=qX.Xw;qX.saveAsPDF=qX.Yw;qX.saveAsSVG=qX.Zw;qX.saveAsPng=qX.Eu;qX.saveAsJpg=qX.Xw;qX.saveAsPdf=qX.Yw;qX.saveAsSvg=qX.Zw;qX.shareAsPng=qX.Hu;qX.shareAsJpg=qX.FB;qX.shareAsPdf=qX.GB;qX.shareAsSvg=qX.HB;qX.getPngBase64String=qX.zA;qX.getJpgBase64String=qX.wA;qX.getSvgBase64String=qX.BA;qX.getPdfBase64String=qX.yA;qX.print=qX.print;qX.toSvg=qX.Nq;$.g=jX.prototype;$.g.u0=function(a){return"object"==$.ka(a)?($.ra(this.K,a),this):this.K};$.g.filename=function(a){$.p(a)&&(this.aa=a);return this.aa};$.g.xk=function(a,b){return this.b=CW({width:a,height:b},a,this.b)};$.g.v1=function(a,b,c,d,e,f,h){return this.i=CW({caption:a,link:b,name:c,description:d,width:e,height:f,appId:h},a,this.i)};$.g.R6=function(a,b,c){return this.G=CW({url:a,width:b,height:c},a,this.G)}; +$.g.G3=function(a,b,c,d){return this.j=CW({caption:a,description:b,width:c,height:d},a,this.j)};$.g.D4=function(a,b,c,d){return this.F=CW({link:a,description:b,width:c,height:d},a,this.F)}; +$.g.TK=function(){this.aa="anychart";this.b={width:void 0,height:void 0};this.i={caption:$.ll.location?$.ll.location.hostname:"",link:void 0,name:void 0,description:void 0,appId:0x42607363aa4b7,width:1200,height:630};this.G={url:"https://export.anychart.com/sharing/twitter",width:1024,height:800};this.j={caption:"AnyChart",description:void 0,width:1200,height:630};this.F={link:void 0,description:void 0,width:1200,height:800};this.K={path:"https://cdn.anychart.com/3rd/",enabled:!0,fallback:!0}}; +$.g.D=function(){var a={};lX(a,"filename",this.aa);lX(a,"image",this.b);lX(a,"facebook",this.i);lX(a,"twitter",this.G);lX(a,"linkedin",this.j);lX(a,"pinterest",this.F);lX(a,"clientside",this.K);return a};$.g.U=function(a){this.filename(a.filename);this.xk(a.image);this.v1(a.facebook);this.R6(a.twitter);this.G3(a.linkedin);this.D4(a.pinterest);this.u0(a.clientside)};var rX=jX.prototype;rX.filename=rX.filename;rX.image=rX.xk;rX.facebook=rX.v1;rX.twitter=rX.R6;rX.linkedin=rX.G3;rX.pinterest=rX.D4; +rX.clientside=rX.u0;var nX={png:"image/png",jpg:"image/jpeg",svg:"image/svg+xml",csv:"text/csv",pdf:"application/pdf",json:"application/json",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xml:"text/xml"};var kX=new jX;kX.TK();kX.create=function(){return new jX};kX.ic=function(a,b){var c=a&&a.exports?a.exports()[b]():void 0,d=$.fa.anychart.exports[b](),e;"object"==$.ka(c)?e=CW(d,c,d):e=$.p(c)?c:d;return e};kX.na=$.fa.IS_ANYCHART_AMD?$.oq.acgraph.server:$.ll.acgraph.server;kX.ba=function(a,b,c){return function(){NW(ZW+"/"+c,{"file-name":b,data:a,dataType:c,responseType:"file"})}};kX.f=function(a,b){return function(c){a.fallback?($.kl(1E3,null,[],!0),b.call(null,arguments)):$.kl(1002,null,[],!0)}}; +kX.Eu=function(a,b,c,d,e,f){var h=b?b.Ka():null;h&&(b=kX.ic(a,"image"),c=CW({width:c,height:d,quality:e,filename:f},c,{width:b.width,height:b.height,filename:kX.ic(a,"filename")}),d=kX.ic(a,"clientside"),e=kX.f(d,function(a){fX(h,a.width,a.height,a.quality,a.filename)}),d.enabled?pX(a,"png",c,e):d.fallback?fX(h,c.width,c.height,c.quality,c.filename):$.kl(1001,null,[],!0))}; +kX.Xw=function(a,b,c,d,e,f,h){var k=b?b.Ka():null;k&&(b=kX.ic(a,"image"),c=CW({width:c,height:d,quality:e,forceTransparentWhite:f,filename:h},c,{width:b.width,height:b.height,filename:kX.ic(a,"filename")}),d=kX.ic(a,"clientside"),e=kX.f(d,function(a){gX(k,a.width,a.height,a.quality,a.forceTransparentWhite,a.filename)}),d.enabled?pX(a,"jpg",c,e):d.fallback?gX(k,c.width,c.height,c.quality,c.forceTransparentWhite,c.filename):$.kl(1001,null,[],!0))}; +kX.Yw=function(a,b,c,d,e,f,h){var k=b?b.Ka():null;k&&(b=kX.ic(a,"image"),c=CW({paperSize:c,width:c,landscape:d,height:d,x:e,y:f,filename:h},c,{width:b.width,height:b.height,filename:kX.ic(a,"filename")}),d=kX.ic(a,"clientside"),e=kX.f(d,function(a){hX(k,a.paperSize||a.width,a.landscape||a.height,a.x,a.y,a.filename)}),d.enabled?pX(a,"pdf",c,e):d.fallback?hX(k,c.paperSize||c.width,c.landscape||c.height,c.x,c.y,c.filename):$.kl(1001,null,[],!0))}; +kX.Zw=function(a,b,c,d,e){var f=b?b.Ka():null;f&&(b=kX.ic(a,"image"),c=CW({paperSize:c,width:c,landscape:d,height:d,filename:e},c,{width:b.width,height:b.height,filename:kX.ic(a,"filename")}),d=kX.ic(a,"clientside"),e=kX.f(d,function(a){iX(f,a.paperSize||a.width,a.landscape||a.height,a.filename)}),d.enabled?pX(a,"svg",c,e):d.fallback?iX(f,c.paperSize||c.width,c.landscape||c.height,c.filename):$.kl(1001,null,[],!0))}; +kX.Nq=function(a,b,c,d){return(b=b?b.Ka():null)?(a=kX.ic(a,"image"),c=CW({paperSize:c,width:c,landscape:d,height:d},c,{width:a.width,height:a.height}),b.Nq(c.paperSize||c.width,c.landscape||c.height)):""};kX.P=function(a,b,c,d){d=d||kX.ic(a,"filename");a=kX.ic(a,"clientside");var e=kX.ba(b,d,c),f=kX.f(a,e);if(a.enabled)try{mX(new window.Blob([b],{type:nX[c]||""}),d,c)}catch(h){f()}else a.fallback?e():$.kl(1001,null,[],!0)};kX.WO=function(a,b,c){kX.P(a,b,"xml",c)}; +kX.VO=function(a,b,c){kX.P(a,b,"json",c)};kX.cz=function(a,b,c){kX.P(a,b,"csv",c)};kX.dz=function(a,b,c){var d=kX.ic(a,"clientside");c=c||kX.ic(a,"filename");var e=kX.ba(b,c,"xlsx"),f=kX.f(d,e);d.enabled?oja(a,b,c,f):d.fallback?e():$.kl(1001,null,[],!0)}; +kX.Hu=function(a,b,c,d,e,f,h,k,l){if(b=b?b.Ka():null){var m=kX.ic(a,"image");a=CW({onSuccess:c,onError:d,asBase64:e,width:f,height:h,quality:k,filename:l},c,{width:m.width,height:m.height,filename:kX.ic(a,"filename")});b.Hu(a.onSuccess,a.onError,a.asBase64,a.width,a.height,a.quality,a.filename)}}; +kX.FB=function(a,b,c,d,e,f,h,k,l,m){if(b=b?b.Ka():null){var n=kX.ic(a,"image");a=CW({onSuccess:c,onError:d,asBase64:e,width:f,height:h,quality:k,forceTransparentWhite:l,filename:m},c,{width:n.width,height:n.height,filename:kX.ic(a,"filename")});b.FB(a.onSuccess,a.onError,a.asBase64,a.width,a.height,a.quality,a.forceTransparentWhite,a.filename)}}; +kX.HB=function(a,b,c,d,e,f,h,k){if(b=b?b.Ka():null){var l=kX.ic(a,"image");a=CW({onSuccess:c,onError:d,asBase64:e,paperSize:f,width:f,landscape:h,height:h,filename:k},c,{width:l.width,height:l.height,filename:kX.ic(a,"filename")});b.HB(a.onSuccess,a.onError,a.asBase64,a.paperSize||a.width,a.landscape||a.height,a.filename)}}; +kX.GB=function(a,b,c,d,e,f,h,k,l,m){if(b=b?b.Ka():null){var n=kX.ic(a,"image");a=CW({onSuccess:c,onError:d,asBase64:e,paperSize:f,width:f,landscape:h,height:h,x:k,y:l,filename:m},c,{width:n.width,height:n.height,filename:kX.ic(a,"filename")});b.GB(a.onSuccess,a.onError,a.asBase64,a.paperSize||a.width,a.landscape||a.height,a.x,a.y,a.filename)}}; +kX.zA=function(a,b,c,d,e,f,h){if(b=b?b.Ka():null)a=kX.ic(a,"image"),c=CW({onSuccess:c,onError:d,width:e,height:f,quality:h},c,{width:a.width,height:a.height}),b.zA(c.onSuccess,c.onError,c.width,c.height,c.quality)};kX.wA=function(a,b,c,d,e,f,h,k){if(b=b?b.Ka():null)a=kX.ic(a,"image"),c=CW({onSuccess:c,onError:d,width:e,height:f,quality:h,forceTransparentWhite:k},c,{width:a.width,height:a.height}),b.wA(c.onSuccess,c.onError,c.width,c.height,c.quality,c.forceTransparentWhite)}; +kX.BA=function(a,b,c,d,e,f){if(b=b?b.Ka():null)a=kX.ic(a,"image"),c=CW({onSuccess:c,onError:d,paperSize:e,width:e,landscape:f,height:f},c,{width:a.width,height:a.height}),b.BA(c.onSuccess,c.onError,c.paperSize||c.width,c.landscape||c.height)};kX.yA=function(a,b,c,d,e,f,h,k){if(b=b?b.Ka():null)a=kX.ic(a,"image"),c=CW({onSuccess:c,onError:d,paperSize:e,width:e,landscape:f,height:f,x:h,y:k},c,{width:a.width,height:a.height}),b.yA(c.onSuccess,c.onError,c.paperSize||c.width,c.landscape||c.height,c.x,c.y)}; +kX.print=function(a,b,c,d){if(a=b?b.Ka():null)c=CW({paperSize:c,landscape:d},c),a.print(c.paperSize,c.landscape)}; +kX.LE=function(a,b,c,d,e,f){var h=kX.ic(a,"facebook"),k=CW({caption:c,link:d,name:e,description:f},c,h),l=$.ll.open("","_blank","scrollbars=yes, width=550, height=550, top="+Number(window.screen.height/2-275)+", left="+Number(window.screen.width/2-275));kX.Hu(a,b,function(a){a={app_id:h.appId,display:"popup",picture:a};a.caption=k.caption;k.link&&(a.link=k.link,k.name&&(a.name=k.name),k.description&&(a.description=k.description));var b="",c;for(c in a)b+=b?"&":"",b+=c+"="+a[c];l.location.href="https://www.facebook.com/dialog/feed?"+ +b},void 0,!1,h.width,h.height)}; +kX.OE=function(a,b){var c=kX.ic(a,"twitter"),d=Number(window.screen.width/2-300),e=Number(window.screen.height/2-260);var f=$.Ae(window.document,"INPUT","ac-share-twitter-data-input",void 0);if(0b.length){c.push(hia(a)+"(");for(var d=a.arguments,e=0;d&&eb)throw Error("Bad port number "+b);a.G=b}else a.G=null};Gia=function(a,b,c){b instanceof FW?(a.f=b,Iia(a.f,a.b)):(c||(b=GW(b,Jia)),a.f=new FW(b,a.b))};EW=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""}; +GW=function(a,b,c){return $.z(a)?(a=(0,window.encodeURI)(a).replace(b,Kia),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};Kia=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};FW=function(a,b){this.f=this.b=null;this.i=a||null;this.j=!!b};HW=function(a){a.b||(a.b=new $.gC,a.f=0,a.i&&Dia(a.i,function(b,c){a.add((0,window.decodeURIComponent)(b.replace(/\+/g," ")),c)}))}; +Mia=function(a){var b=Bia(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new FW(null,void 0);a=Aia(a);for(var d=0;dNumber($.ad)&&(c.vl.src='javascript:""');d=c.vl.style;d.visibility="hidden";d.width=d.height="10px";d.display="none";$.xd?d.marginTop=d.marginLeft="-10px":(d.position="absolute",d.top=d.left="-10px");if($.hd&&!$.bd("11")){c.Uk.target=c.LA||"";$.ye(c.Uk).b.body.appendChild(c.vl);$.Ld(c.vl,"readystatechange",c.IW,!1,c);try{c.b=!1,c.Uk.submit()}catch(Ib){$.Yd(c.vl,"readystatechange",c.IW,!1,c),LW(c)}}else{$.ye(c.Uk).b.body.appendChild(c.vl);d=c.LA+"_inner";e=BW(c.vl);if(window.document.baseURI){var f= +$.pc(d);$.ie("Short HTML snippet, input escaped, safe URL, for performance");f='';f=$.re(f,null)}else f=$.pc(d),$.ie("Short HTML snippet, input escaped, for performance"),f=$.re('',null);$.yd&&!$.xd?e.documentElement.innerHTML=yW(f):e.write(yW(f));$.Ld(e.getElementById(d),"load",c.jO,!1,c);var h=AW("TEXTAREA",c.Uk);f=0;for(var k=h.length;f.");if("A"in Sia)throw Error("Tag name is not allowed for SafeHtml.");w=null;x="";if(u)for(var S in u){if(!Ria.test(S))throw Error('Invalid attribute name "'+ +S+'".');var wa=u[S];if(null!=wa){G=x;y=S;B=wa;if(B instanceof $.he)B=tW(B);else if("style"==y.toLowerCase())B=via(B);else{if(/^on/i.test(y))throw Error('Attribute "'+y+'" requires goog.string.Const value, "'+B+'" given.');if(y.toLowerCase()in Tia)if(B instanceof vW)B=mia(B);else if(B instanceof $.ke)B=wW(B);else if($.z(B))B=xW(B).cu();else throw Error('Attribute "'+y+'" on tag "a" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+B+'" given.');}B.Ay&&(B=B.cu());var sa=y+'="'+$.pc(String(B))+ +'"';x=G+(" "+sa)}}var Qa="";else{var xb=wia(Q);Qa+=">"+yW(xb)+"";w=xb.b()}var mc=u&&u.dir;mc&&(/^(ltr|rtl|auto)$/i.test(mc)?w=0:w=null);var hb=$.re(Qa,w);var dc=wia(O,hb,zW("\nLine: "+v.lineNumber+"\n\nBrowser stack:\n"+v.stack+"-> [end]\n\nJS stack traversal:\n"+jia(void 0)+"-> "))}catch(Ac){dc=zW("Exception trying to expose exception! You win, we lose. "+Ac)}yW(dc);$.Yd(e.getElementById(d),"load",c.jO,!1,c);e.close();LW(c)}}MW(c)}; +Qia=function(a,b){var c=$.ye(a);Cia(b,function(b,e){$.A(b)||(b=[b]);(0,$.Pe)(b,function(b){b=c.Ac("INPUT",{type:"hidden",name:e,value:b});a.appendChild(b)})})};Via=function(a,b){a.iG=!0;a.cw=!1;var c,d;c||"function"!=typeof a.i||(d=a.i(b))&&(c=4);c?LW(a):(a.dispatchEvent("complete"),a.dispatchEvent("success"),OW(a))};LW=function(a){a.b||(a.cw=!1,a.iG=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"),OW(a),a.b=!0)};OW=function(a){Wia(a);MW(a);a.Uk=null;a.dispatchEvent("ready")}; +Wia=function(a){var b=a.vl;b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,a.f.push(b));a.KA&&($.Ej(a.KA),a.KA=null);$.gd||$.yd&&!$.xd?a.KA=$.Dj(a.Y0,2E3,a):a.Y0();a.vl=null;a.LA=null};MW=function(a){a.Uk&&a.Uk==KW&&$.Ve(a.Uk)};PW=function(a){return a.vl?$.hd&&!$.bd("11")?a.vl:BW(a.vl).getElementById(a.LA+"_inner"):null};Xia=function(){};Zia=function(a){var b;(b=a.b)||(b={},Yia(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b};$ia=function(){}; +aja=function(a){return(a=Yia(a))?new window.ActiveXObject(a):new window.XMLHttpRequest};Yia=function(a){if(!a.f&&"undefined"==typeof window.XMLHttpRequest&&"undefined"!=typeof window.ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;ck?[k/h*d,k]:[c,k],k[0]-=e||0, +k[1]-=f||0,a=a.Nq(k[0],k[1])):a=a.Nq(b["pdf-width"],b["pdf-height"]);b.data=a;b.dataType="svg";b.responseType="file"};fX=function(a,b,c,d,e){if("svg"==$.kk){var f={};aX(a,f,b,c,d,e);NW(ZW+"/png",f)}else(0,window.alert)($.ld(15))};gX=function(a,b,c,d,e,f){if("svg"==$.kk){var h={};bX(a,h,b,c,d,e,f);NW(ZW+"/jpg",h)}else(0,window.alert)($.ld(15))};hX=function(a,b,c,d,e,f){if("svg"==$.kk){var h={};eX(a,h,b,c,d,e,f);NW(ZW+"/pdf",h)}else(0,window.alert)($.ld(15))}; +iX=function(a,b,c,d){if("svg"==$.kk){var e={};cX(a,e,b,c,d);NW(ZW+"/svg",e)}else(0,window.alert)($.ld(15))};mja=function(a){var b="";a&&(b=(new window.XMLSerializer).serializeToString(a));return b};jX=function(){this.b={};this.i={};this.G={};this.j={};this.F={};this.ea=["svg2pdf.min.js","jspdf.min.js","canvg.min.js","xlsx.core.min.js"];this.i3=!1;this.K={}}; +nja=function(a){var b=kX,c=$.fa.anychart.exports;if(c.i3)return zia();var d=b.ea,e=c.ic(a,"clientside").path;e+=$.fc(e,"/")?"":"/";a=[];for(var f=0;fn||!f&&qu?"l":"p","pt",[t,u]);$.z(b)? +r.addImage(b,"png",h,k,t,u):$.fa.svg2pdf(b,r,{xOffset:h,yOffset:k,scale:1})}r.save(l)}catch(v){d(c)}}; +oX=function(a,b,c,d,e,f,h){var k=nX[c],l=$.Re(window.document,"canvas");l.width=d;l.height=e;$.uf(l,{width:d,height:e,visibility:"hidden",position:"fixed",right:0,bottom:0});$.Vp.body.appendChild(l);var m=l.getContext("2d"),n=new window.Image,q=b.quality||.92;a.setAttribute("width",d);a.setAttribute("height",e);var r=(new window.XMLSerializer).serializeToString(a),t=kia(new window.Blob([r],{type:"image/svg+xml"}));n.onload=function(){try{if(l.msToBlob&&m.drawSvg){m.drawSvg(r,0,0,d,e);var a=l.toDataURL(k, +q)}else m.drawImage(n,0,0,d,e),a=l.toDataURL(k,q);f(a);$.Xe(l);uW().revokeObjectURL(t)}catch(v){h(b)}};n.src=t}; +qja=function(a,b,c,d,e,f,h){function k(a){mX(a,l,c)}var l=d.filename||"anychart",m=0m||!l&&n'+c};$.E("acgraph.server",function(a){$.p(a)&&(ZW=a);return ZW});var qX=$.Yj.prototype;qX.useAnychartExporting=qX.wla;qX.saveAsPNG=qX.Eu; +qX.saveAsJPG=qX.Xw;qX.saveAsPDF=qX.Yw;qX.saveAsSVG=qX.Zw;qX.saveAsPng=qX.Eu;qX.saveAsJpg=qX.Xw;qX.saveAsPdf=qX.Yw;qX.saveAsSvg=qX.Zw;qX.shareAsPng=qX.Hu;qX.shareAsJpg=qX.FB;qX.shareAsPdf=qX.GB;qX.shareAsSvg=qX.HB;qX.getPngBase64String=qX.zA;qX.getJpgBase64String=qX.wA;qX.getSvgBase64String=qX.BA;qX.getPdfBase64String=qX.yA;qX.print=qX.print;qX.toSvg=qX.Nq;$.g=jX.prototype;$.g.u0=function(a){return"object"==$.ka(a)?($.ra(this.K,a),this):this.K};$.g.filename=function(a){$.p(a)&&(this.aa=a);return this.aa};$.g.xk=function(a,b){return this.b=CW({width:a,height:b},a,this.b)};$.g.v1=function(a,b,c,d,e,f,h){return this.i=CW({caption:a,link:b,name:c,description:d,width:e,height:f,appId:h},a,this.i)};$.g.R6=function(a,b,c){return this.G=CW({url:a,width:b,height:c},a,this.G)}; +$.g.G3=function(a,b,c,d){return this.j=CW({caption:a,description:b,width:c,height:d},a,this.j)};$.g.D4=function(a,b,c,d){return this.F=CW({link:a,description:b,width:c,height:d},a,this.F)}; +$.g.TK=function(){this.aa="anychart";this.b={width:void 0,height:void 0};this.i={caption:$.ll.location?$.ll.location.hostname:"",link:void 0,name:void 0,description:void 0,appId:0x42607363aa4b7,width:1200,height:630};this.G={url:"https://export.anychart.com/sharing/twitter",width:1024,height:800};this.j={caption:"AnyChart",description:void 0,width:1200,height:630};this.F={link:void 0,description:void 0,width:1200,height:800};this.K={path:"https://cdn.anychart.com/3rd/",enabled:!0,fallback:!0}}; +$.g.D=function(){var a={};lX(a,"filename",this.aa);lX(a,"image",this.b);lX(a,"facebook",this.i);lX(a,"twitter",this.G);lX(a,"linkedin",this.j);lX(a,"pinterest",this.F);lX(a,"clientside",this.K);return a};$.g.U=function(a){this.filename(a.filename);this.xk(a.image);this.v1(a.facebook);this.R6(a.twitter);this.G3(a.linkedin);this.D4(a.pinterest);this.u0(a.clientside)};var rX=jX.prototype;rX.filename=rX.filename;rX.image=rX.xk;rX.facebook=rX.v1;rX.twitter=rX.R6;rX.linkedin=rX.G3;rX.pinterest=rX.D4; +rX.clientside=rX.u0;var nX={png:"image/png",jpg:"image/jpeg",svg:"image/svg+xml",csv:"text/csv",pdf:"application/pdf",json:"application/json",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xml:"text/xml"};var kX=new jX;kX.TK();kX.create=function(){return new jX};kX.ic=function(a,b){var c=a&&a.exports?a.exports()[b]():void 0,d=$.fa.anychart.exports[b](),e;"object"==$.ka(c)?e=CW(d,c,d):e=$.p(c)?c:d;return e};kX.na=$.fa.IS_ANYCHART_AMD?$.oq.acgraph.server:$.ll.acgraph.server;kX.ba=function(a,b,c){return function(){NW(ZW+"/"+c,{"file-name":b,data:a,dataType:c,responseType:"file"})}};kX.f=function(a,b){return function(c){a.fallback?($.kl(1E3,null,[],!0),b.call(null,arguments)):$.kl(1002,null,[],!0)}}; +kX.Eu=function(a,b,c,d,e,f){var h=b?b.Ka():null;h&&(b=kX.ic(a,"image"),c=CW({width:c,height:d,quality:e,filename:f},c,{width:b.width,height:b.height,filename:kX.ic(a,"filename")}),d=kX.ic(a,"clientside"),e=kX.f(d,function(a){fX(h,a.width,a.height,a.quality,a.filename)}),d.enabled?pX(a,"png",c,e):d.fallback?fX(h,c.width,c.height,c.quality,c.filename):$.kl(1001,null,[],!0))}; +kX.Xw=function(a,b,c,d,e,f,h){var k=b?b.Ka():null;k&&(b=kX.ic(a,"image"),c=CW({width:c,height:d,quality:e,forceTransparentWhite:f,filename:h},c,{width:b.width,height:b.height,filename:kX.ic(a,"filename")}),d=kX.ic(a,"clientside"),e=kX.f(d,function(a){gX(k,a.width,a.height,a.quality,a.forceTransparentWhite,a.filename)}),d.enabled?pX(a,"jpg",c,e):d.fallback?gX(k,c.width,c.height,c.quality,c.forceTransparentWhite,c.filename):$.kl(1001,null,[],!0))}; +kX.Yw=function(a,b,c,d,e,f,h){var k=b?b.Ka():null;k&&(b=kX.ic(a,"image"),c=CW({paperSize:c,width:c,landscape:d,height:d,x:e,y:f,filename:h},c,{width:b.width,height:b.height,filename:kX.ic(a,"filename")}),d=kX.ic(a,"clientside"),e=kX.f(d,function(a){hX(k,a.paperSize||a.width,a.landscape||a.height,a.x,a.y,a.filename)}),d.enabled?pX(a,"pdf",c,e):d.fallback?hX(k,c.paperSize||c.width,c.landscape||c.height,c.x,c.y,c.filename):$.kl(1001,null,[],!0))}; +kX.Zw=function(a,b,c,d,e){var f=b?b.Ka():null;f&&(b=kX.ic(a,"image"),c=CW({paperSize:c,width:c,landscape:d,height:d,filename:e},c,{width:b.width,height:b.height,filename:kX.ic(a,"filename")}),d=kX.ic(a,"clientside"),e=kX.f(d,function(a){iX(f,a.paperSize||a.width,a.landscape||a.height,a.filename)}),d.enabled?pX(a,"svg",c,e):d.fallback?iX(f,c.paperSize||c.width,c.landscape||c.height,c.filename):$.kl(1001,null,[],!0))}; +kX.Nq=function(a,b,c,d){return(b=b?b.Ka():null)?(a=kX.ic(a,"image"),c=CW({paperSize:c,width:c,landscape:d,height:d},c,{width:a.width,height:a.height}),b.Nq(c.paperSize||c.width,c.landscape||c.height)):""};kX.P=function(a,b,c,d){d=d||kX.ic(a,"filename");a=kX.ic(a,"clientside");var e=kX.ba(b,d,c),f=kX.f(a,e);if(a.enabled)try{mX(new window.Blob([b],{type:nX[c]||""}),d,c)}catch(h){f()}else a.fallback?e():$.kl(1001,null,[],!0)};kX.WO=function(a,b,c){kX.P(a,b,"xml",c)}; +kX.VO=function(a,b,c){kX.P(a,b,"json",c)};kX.cz=function(a,b,c){kX.P(a,b,"csv",c)};kX.dz=function(a,b,c){var d=kX.ic(a,"clientside");c=c||kX.ic(a,"filename");var e=kX.ba(b,c,"xlsx"),f=kX.f(d,e);d.enabled?oja(a,b,c,f):d.fallback?e():$.kl(1001,null,[],!0)}; +kX.Hu=function(a,b,c,d,e,f,h,k,l){if(b=b?b.Ka():null){var m=kX.ic(a,"image");a=CW({onSuccess:c,onError:d,asBase64:e,width:f,height:h,quality:k,filename:l},c,{width:m.width,height:m.height,filename:kX.ic(a,"filename")});b.Hu(a.onSuccess,a.onError,a.asBase64,a.width,a.height,a.quality,a.filename)}}; +kX.FB=function(a,b,c,d,e,f,h,k,l,m){if(b=b?b.Ka():null){var n=kX.ic(a,"image");a=CW({onSuccess:c,onError:d,asBase64:e,width:f,height:h,quality:k,forceTransparentWhite:l,filename:m},c,{width:n.width,height:n.height,filename:kX.ic(a,"filename")});b.FB(a.onSuccess,a.onError,a.asBase64,a.width,a.height,a.quality,a.forceTransparentWhite,a.filename)}}; +kX.HB=function(a,b,c,d,e,f,h,k){if(b=b?b.Ka():null){var l=kX.ic(a,"image");a=CW({onSuccess:c,onError:d,asBase64:e,paperSize:f,width:f,landscape:h,height:h,filename:k},c,{width:l.width,height:l.height,filename:kX.ic(a,"filename")});b.HB(a.onSuccess,a.onError,a.asBase64,a.paperSize||a.width,a.landscape||a.height,a.filename)}}; +kX.GB=function(a,b,c,d,e,f,h,k,l,m){if(b=b?b.Ka():null){var n=kX.ic(a,"image");a=CW({onSuccess:c,onError:d,asBase64:e,paperSize:f,width:f,landscape:h,height:h,x:k,y:l,filename:m},c,{width:n.width,height:n.height,filename:kX.ic(a,"filename")});b.GB(a.onSuccess,a.onError,a.asBase64,a.paperSize||a.width,a.landscape||a.height,a.x,a.y,a.filename)}}; +kX.zA=function(a,b,c,d,e,f,h){if(b=b?b.Ka():null)a=kX.ic(a,"image"),c=CW({onSuccess:c,onError:d,width:e,height:f,quality:h},c,{width:a.width,height:a.height}),b.zA(c.onSuccess,c.onError,c.width,c.height,c.quality)};kX.wA=function(a,b,c,d,e,f,h,k){if(b=b?b.Ka():null)a=kX.ic(a,"image"),c=CW({onSuccess:c,onError:d,width:e,height:f,quality:h,forceTransparentWhite:k},c,{width:a.width,height:a.height}),b.wA(c.onSuccess,c.onError,c.width,c.height,c.quality,c.forceTransparentWhite)}; +kX.BA=function(a,b,c,d,e,f){if(b=b?b.Ka():null)a=kX.ic(a,"image"),c=CW({onSuccess:c,onError:d,paperSize:e,width:e,landscape:f,height:f},c,{width:a.width,height:a.height}),b.BA(c.onSuccess,c.onError,c.paperSize||c.width,c.landscape||c.height)};kX.yA=function(a,b,c,d,e,f,h,k){if(b=b?b.Ka():null)a=kX.ic(a,"image"),c=CW({onSuccess:c,onError:d,paperSize:e,width:e,landscape:f,height:f,x:h,y:k},c,{width:a.width,height:a.height}),b.yA(c.onSuccess,c.onError,c.paperSize||c.width,c.landscape||c.height,c.x,c.y)}; +kX.print=function(a,b,c,d){if(a=b?b.Ka():null)c=CW({paperSize:c,landscape:d},c),a.print(c.paperSize,c.landscape)}; +kX.LE=function(a,b,c,d,e,f){var h=kX.ic(a,"facebook"),k=CW({caption:c,link:d,name:e,description:f},c,h),l=$.ll.open("","_blank","scrollbars=yes, width=550, height=550, top="+Number(window.screen.height/2-275)+", left="+Number(window.screen.width/2-275));kX.Hu(a,b,function(a){a={app_id:h.appId,display:"popup",picture:a};a.caption=k.caption;k.link&&(a.link=k.link,k.name&&(a.name=k.name),k.description&&(a.description=k.description));var b="",c;for(c in a)b+=b?"&":"",b+=c+"="+a[c];l.location.href="https://www.facebook.com/dialog/feed?"+ +b},void 0,!1,h.width,h.height)}; +kX.OE=function(a,b){var c=kX.ic(a,"twitter"),d=Number(window.screen.width/2-300),e=Number(window.screen.height/2-260);var f=$.Ae(window.document,"INPUT","ac-share-twitter-data-input",void 0);if(0b){q-=u[m];v++;delete M[m];d=!0;break}}else{if(m in t&&t[m]>b){q+=M[m]=t[m];v--;d=!0;break}if(m in u&&u[m]< +b){q+=M[m]=u[m];v--;d=!0;break}}while(d&&0f;f++)this.nb(HT[f],null,256);this.i.da(!0);return this}return this.P||(this.P=new IT(this,!1))}; +$.g.PW=function(a,b,c,d){if($.p(a)){var e,f,h;if($.A(a)){var k=a;a=k[0];b=k[1];c=k[2];d=k[3];k=k.length}else k=arguments.length;if(k)$.C(a)?(e=$.Io(a.top)||0,f=$.Io(a.right)||0,h=$.Io(a.bottom)||0,l=$.Io(a.left)||0):1==k?l=h=f=e=$.Io(a)||0:2==k?(h=e=$.Io(a)||0,l=f=$.Io(b)||0):3==k?(e=$.Io(a)||0,l=f=$.Io(b)||0,h=$.Io(c)||0):4<=k&&(e=$.Io(a)||0,f=$.Io(b)||0,h=$.Io(c)||0,l=$.Io(d)||0);else var l=h=f=e=0;this.i.ka();this.nb(VT[0],e,1024);this.nb(VT[1],f,1024);this.nb(VT[2],h,1024);this.nb(VT[3],l,1024); +this.i.da(!0);return this}return this.aa||(this.aa=new JT(this))};var XT=KT.prototype;XT.fontSize=XT.fontSize;XT.fontFamily=XT.fontFamily;XT.fontColor=XT.Gca;XT.fontOpacity=XT.Ica;XT.fontDecoration=XT.Hca;XT.fontStyle=XT.fontStyle;XT.fontVariant=XT.fontVariant;XT.fontWeight=XT.fontWeight;XT.letterSpacing=XT.letterSpacing;XT.textDirection=XT.Jca;XT.lineHeight=XT.lineHeight;XT.textIndent=XT.textIndent;XT.vAlign=XT.vAlign;XT.hAlign=XT.Bm;XT.wordWrap=XT.wordWrap;XT.wordBreak=XT.Xu;XT.textOverflow=XT.textOverflow; +XT.selectable=XT.Hm;XT.disablePointerEvents=XT.Ed;XT.useHtml=XT.Kca;XT.border=XT.Fca;$.H(LT,KT);$.g=LT.prototype;$.g.reset=function(a,b){($.ea(this.Rd)||$.z(this.Rd))&&$.qd(this.gi);this.G=this.K=1;this.f=a;this.F=b;this.gi=this.Rd=null;this.b=window.NaN;delete this.j;return this}; +$.g.content=function(a){if($.p(a)){if(this.Rd!=a){this.Rd=a;this.gi&&this.i.dG(this.gi);if($.ea(a)||$.z(a)){var b=this.i;b.rh||(b.rh=new $.Zu,b.rh.N($.um("standalones.labelsFactory")),b.rh.anchor("center"),b.rh.position("center"));this.gi=b.rh.add({value:String(a)},{value:{x:0,y:0}})}else $.J(a,$.hg)?(this.gi=$.ok(),this.gi.hc(a)):this.gi=a;this.i.B(1024,1)}return this}return this.Rd};$.g.Ex=function(a){return $.p(a)?(a=$.P(a,this.G),a!=this.G&&(this.G=a,this.i.B(128,1)),this):this.G}; +$.g.Fx=function(a){return $.p(a)?(a=$.P(a,this.K),a!=this.K&&(this.K=a,this.i.B(128,1)),this):this.K};$.g.Nca=function(){return this.f};$.g.Mca=function(){return this.F};$.g.En=function(){return this.i.En(this.f)};$.g.Lca=function(){return this.i.C_(this.F)};$.g.sb=function(){return QT(this.i,this.f,this.F,this.K,this.G)};$.g.fill=function(a,b,c,d,e,f,h){null!=a&&(a=$.Ub.apply(null,arguments));return this.nb("fill",a,512)};$.g.padding=function(a,b,c,d){return this.PW.apply(this,arguments)}; +$.g.R=function(){($.ea(this.Rd)||$.z(this.Rd))&&$.qd(this.gi);LT.u.R.call(this)};var YT=LT.prototype;YT.content=YT.content;YT.rowSpan=YT.Fx;YT.colSpan=YT.Ex;YT.padding=YT.padding;YT.getBounds=YT.sb;YT.getRowNum=YT.Nca;YT.getColNum=YT.Mca;YT.getRow=YT.En;YT.getCol=YT.Lca;YT.fill=YT.fill;$.H(MT,KT);$.g=MT.prototype;$.g.Rca=function(){return this.Bd};$.g.Qca=function(a){return this.i.Kz(a,this.Bd)};$.g.width=function(a){return $.p(a)?(Mga(this.i,this.Bd,a),this):Mga(this.i,this.Bd)};$.g.minWidth=function(a){return $.p(a)?(Nga(this.i,this.Bd,a),this):Nga(this.i,this.Bd)};$.g.maxWidth=function(a){return $.p(a)?(Oga(this.i,this.Bd,a),this):Oga(this.i,this.Bd)};$.g.E_=function(a,b,c,d,e,f,h){null!=a&&(a=$.Ub.apply(null,arguments));return this.nb("fill",a,512)}; +$.g.Oca=function(a,b,c,d,e){if($.p(a)){null===a||(a=$.Wb.apply(null,arguments));this.i.ka();this.nb("cellBorder",a,256);for(var f=0;4>f;f++)this.nb(GT[f],null,256);this.i.da(!0);return this}return this.b||(this.b=new IT(this,!0))};$.g.Pca=function(a,b,c,d){return this.PW.apply(this,arguments)};var ZT=MT.prototype;ZT.width=ZT.width;ZT.maxWidth=ZT.maxWidth;ZT.minWidth=ZT.minWidth;ZT.getCell=ZT.Qca;ZT.getColNum=ZT.Rca;ZT.cellFill=ZT.E_;ZT.cellBorder=ZT.Oca;ZT.cellPadding=ZT.Pca;$.H(NT,KT);$.g=NT.prototype;$.g.Vca=function(){return this.Bd};$.g.Uca=function(a){return this.i.Kz(this.Bd,a)};$.g.height=function(a){return $.p(a)?(this.i.w5(this.Bd,a),this):this.i.w5(this.Bd)};$.g.minHeight=function(a){return $.p(a)?(Kga(this.i,this.Bd,a),this):Kga(this.i,this.Bd)};$.g.maxHeight=function(a){return $.p(a)?(Lga(this.i,this.Bd,a),this):Lga(this.i,this.Bd)};$.g.F_=function(a,b,c,d,e,f,h){null!=a&&(a=$.Ub.apply(null,arguments));return this.nb("fill",a,512)}; +$.g.Sca=function(a,b,c,d,e){if($.p(a)){null===a||(a=$.Wb.apply(null,arguments));this.i.ka();this.nb("cellBorder",a,256);for(var f=0;4>f;f++)this.nb(GT[f],null,256);this.i.da(!0);return this}return this.b||(this.b=new IT(this,!0))};$.g.Tca=function(a,b,c,d){return this.PW.apply(this,arguments)};var $T=NT.prototype;$T.height=$T.height;$T.maxHeight=$T.maxHeight;$T.minHeight=$T.minHeight;$T.getCell=$T.Uca;$T.getRowNum=$T.Vca;$T.cellFill=$T.F_;$T.cellBorder=$T.Sca;$T.cellPadding=$T.Tca;$.H(OT,$.Gu);$.g=OT.prototype;$.g.qa=$.Gu.prototype.qa;$.g.sa=$.Gu.prototype.sa|4032;$.g.rh=null;$.g.wb=null;$.g.OF=null;$.g.rv=null;$.g.Ov=null;$.g.Qn=null;$.g.QC=null;$.g.A_=null;$.g.B_=null;$.g.D_=null;$.g.Un=null;$.g.sn=null;$.g.dt=null;$.g.ct=null;$.g.hs=null;$.g.gs=null;$.g.LK=null;$.g.KL=null;$.g.JL=null;$.g.FL=null;$.g.EL=null;$.g.DL=null;$.g.tX=function(a){return $.p(a)?(a=$.P(a,this.i),this.i!=a&&((0,window.isNaN)(this.j)&&(this.j=this.f),this.i=a,this.B(2176,1)),this):this.i}; +$.g.nS=function(a){return $.p(a)?(a=$.P(a,this.f),this.f!=a&&((0,window.isNaN)(this.j)&&(this.j=this.f),this.f=a,this.B(2176,1)),this):this.f};$.g.Kz=function(a,b){PT(this);a=$.P(a,window.NaN,!0);b=$.P(b,window.NaN,!0);return this.b[a*this.f+b]||null};$.g.En=function(a){PT(this);a=$.P(a,window.NaN,!0);if((0,window.isNaN)(a)||a>=this.i)return null;this.Un||(this.Un=[]);a in this.Un||(this.Un[a]=new NT(this,a));return this.Un[a]}; +$.g.C_=function(a){PT(this);a=$.P(a,window.NaN,!0);if((0,window.isNaN)(a)||a>=this.f)return null;this.sn||(this.sn=[]);a in this.sn||(this.sn[a]=new MT(this,a));return this.sn[a]};$.g.fka=function(a){return $.p(a)?(this.LK!=a&&(this.LK=a,this.B(64,1)),this):this.LK};$.g.hka=function(a){return $.p(a)?(this.KL!=a&&(this.KL=a,this.B(64,1)),this):this.KL};$.g.gka=function(a){return $.p(a)?(this.JL!=a&&(this.JL=a,this.B(64,1)),this):this.JL}; +$.g.Pda=function(a){return $.p(a)?(this.FL!=a&&(this.FL=a,this.B(64,1)),this):this.FL};$.g.Oda=function(a){return $.p(a)?(this.EL!=a&&(this.EL=a,this.B(64,1)),this):this.EL};$.g.Nda=function(a){return $.p(a)?(this.DL!=a&&(this.DL=a,this.B(64,1)),this):this.DL};$.g.wca=function(a,b,c,d,e){if($.p(a)){null===a||(a=$.Wb.apply(null,arguments));this.ka();this.nb("border",a,256);for(var f=0;4>f;f++)this.nb(HT[f],null,256);this.da(!0);return this}return this.A_||(this.A_=new IT(this,!1))}; +$.g.Wda=function(a,b){var c;if($.p(a)){var d=!$.A(a);var e=0;if(!d){var f=a.length;for(c=0;ce&&(e=h.length);else{d=!0;break}}}if(!d&&f&&e){this.ka();this.tX(f);this.nS(e);if(b)for(c=0;ce;)for(d=Math.min(this.f,f+k.Ex());d-- >f;)this.b[c*this.f+d].b=h;k.b=window.NaN}}this.I(128);this.B(1792)}if(this.J(512)){this.Qn||(this.Qn=[]);if(this.Ov)for(var l in this.Ov)c=this.Ov[l],c.clear(),c.parent(null),this.Qn.push(c),delete this.Ov[l];else this.Ov={};for(l=0;lf;f++)this.nb(GT[f],null,256);this.da(!0);return this}return this.B_||(this.B_=new IT(this,!0))}; +$.g.zca=function(a,b,c,d){if($.p(a)){var e,f,h;if($.A(a)){var k=a;a=k[0];b=k[1];c=k[2];d=k[3];k=k.length}else k=arguments.length;if(k)$.C(a)?(e=$.Io(a.top)||0,f=$.Io(a.right)||0,h=$.Io(a.bottom)||0,l=$.Io(a.left)||0):1==k?l=h=f=e=$.Io(a)||0:2==k?(h=e=$.Io(a)||0,l=f=$.Io(b)||0):3==k?(e=$.Io(a)||0,l=f=$.Io(b)||0,h=$.Io(c)||0):4<=k&&(e=$.Io(a)||0,f=$.Io(b)||0,h=$.Io(c)||0,l=$.Io(d)||0);else var l=h=f=e=0;this.ka();this.nb(VT[0],e,1024);this.nb(VT[1],f,1024);this.nb(VT[2],h,1024);this.nb(VT[3],l,1024); +this.da(!0);return this}return this.D_||(this.D_=new JT(this))};$.g.NU=function(a){$.D(a.target.W)&&a.target.W()};$.g.nb=function(a,b,c){if($.p(a)){if($.p(b)){var d=!1;null===b?this.F[a]&&(delete this.F[a],d=!0):this.F[a]!=b&&(this.F[a]=b,d=!0);d&&this.B(+c||1024,1);return this}return this.F&&this.F[a]}return this.F||{}};$.g.w5=function(a,b){return $.p(b)?(this.K[a]!=b&&(null===b?delete this.K[a]:this.K[a]=b,this.B(64,1)),this):a in this.K?this.K[a]:null};$.g.dG=function(a){this.QC=this.QC||[];this.QC.push(a)}; +$.g.IM=function(a,b){for(var c=1;c +a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null},i8=function(a){for(var b=new $.kb(0,window.Infinity,window.Infinity,0),c=$.ye(a),d=c.b.body,e=c.b.documentElement,f=$.Fe(c.b);a=Msa(a);)if(!($.hd&&0==a.clientWidth||$.xd&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=$.Af(a,"overflow")){var h=$.Ff(a),k=new $.gb(a.clientLeft,a.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom, +h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=$.Ee($.Ge(c.b)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null},Nsa=function(a,b){var c=b||$.Fe(window.document);var d=c||$.Fe(window.document);var e=$.Ff(a),f=$.Ff(d),h=$.Vf(d);if(d==$.Fe(window.document)){var k=e.x-d.scrollLeft;e=e.y-d.scrollTop;$.hd&&!$.dd(10)&&(k+=h.left, +e+=h.top)}else k=e.x-f.x-h.left,e=e.y-f.y-h.top;h=$.Jf(a);f=d.clientHeight-h.height;var l=d.scrollLeft,m=d.scrollTop;l+=Math.min(k,Math.max(k-(d.clientWidth-h.width),0));m+=Math.min(e,Math.max(e-f,0));d=new $.gb(l,m);c.scrollLeft=d.x;c.scrollTop=d.y},j8=function(a,b){$.qf.call(this);this.f=a||1;this.b=b||$.Cj;this.i=(0,$.pa)(this.cla,this);this.j=(0,$.Sn)()},Osa=function(a,b){var c="";b&&(c=b.id);$.Hy(a,"activedescendant",c)},k8=function(){this.f=[]},l8=function(a,b){var c=a.f[b];if(!c){switch(b){case 0:c= +a.Hh()+"-highlight";break;case 1:c=a.Hh()+"-checkbox";break;case 2:c=a.Hh()+"-content"}a.f[b]=c}return c},Psa=function(a,b,c){a=l8(a,2);return c.Ac("DIV",a,b)},m8=function(a,b){var c=a.Gn(b);if(c){c=c.firstChild;var d=l8(a,1);return!!c&&$.af(c)&&$.Lj(c,d)}return!1},n8=function(a,b,c,d){$.oD(a,c,b.kH());$.rD(a,b,c);d!=m8(a,c)&&(d?$.Qj(c,"anychart-option"):$.Sj(c,"anychart-option"),c=a.Gn(c),d?(a=l8(a,1),c.insertBefore(b.f.Ac("DIV",a),c.firstChild||null)):c.removeChild(c.firstChild))},o8=function(a, +b,c,d){$.AD.call(this,a,d||k8.vd(),c);this.dh=b},p8=function(a,b,c,d){o8.call(this,a,b,c,d);this.P=!1},q8=function(a){this.b=a},r8=function(a,b){a&&(a.tabIndex=b?0:-1)},Ssa=function(a,b,c){c.id&&f8(b,c.id);var d=a.BD(),e=!1,f=$.Kj(c);f&&(0,$.Pe)(f,function(a){a==d?e=!0:a&&(a==d+"-disabled"?b.Dj(!1):a==d+"-horizontal"?Qsa(b,s8):a==d+"-vertical"&&Qsa(b,t8))},a);e||$.Qj(c,d);Rsa(a,b,c);return c},Rsa=function(a,b,c){if(c)for(var d=c.firstChild,e;d&&d.parentNode==c;){e=d.nextSibling;if(1==d.nodeType){var f= +a.aH(d);f&&(f.Fd=d,b.isEnabled()||f.Dj(!1),b.hc(f),f.Bs(d))}else d.nodeValue&&""!=(0,$.vc)(d.nodeValue)||c.removeChild(d);d=e}},Tsa=function(a,b){var c=a.BD(),d=[c,b.vh==s8?c+"-horizontal":c+"-vertical"];b.isEnabled()||d.push(c+"-disabled");return d},u8=function(a,b,c){$.Jy.call(this,c);this.dw=b||q8.vd();this.vh=a||this.dw.P1()},v8=function(a){return a.KV||a.Za()},Usa=function(a,b){var c=$.Ly(a),d=v8(a);b?c.wa(d,"focus",a.XM).wa(d,"blur",a.WM).wa(a.Zl||(a.Zl=new $.Tp(v8(a))),"key",a.oo):c.gc(d,"focus", +a.XM).gc(d,"blur",a.WM).gc(a.Zl||(a.Zl=new $.Tp(v8(a))),"key",a.oo)},Vsa=function(a,b){var c=b.Za();c=c.id||(c.id=b.ny());a.tv||(a.tv={});a.tv[c]=b},Qsa=function(a,b){if(a.Za())throw Error("Component already rendered");a.vh=b},w8=function(a,b){b!=a.kD&&a.xf&&Usa(a,b);a.kD=b;a.DA&&a.hj&&r8(v8(a),b)},x8=function(a){return a.yd(a.ul)},z8=function(a){y8(a,function(a,c){return(a+1)%c},$.Ny(a)-1)},Wsa=function(a){y8(a,function(a,c){a--;return 0>a?c-1:a},0)},A8=function(a){y8(a,function(a,c){return(a+1)% +c},a.ul)},B8=function(a){y8(a,function(a,c){a--;return 0>a?c-1:a},a.ul)},y8=function(a,b,c){c=0>c?a.Kf(a.dm):c;var d=$.Ny(a);c=b.call(a,c,d);for(var e=0;e<=d;){var f=a.yd(c);if(f&&a.n0(f)){a.Wn(c);break}e++;c=b.call(a,c,d)}},C8=function(){},Xsa=function(a,b,c){$.AD.call(this,a,c||C8.vd(),b);this.hn(1,!1);this.hn(2,!1);this.hn(4,!1);this.hn(32,!1);this.ec=1},D8=function(){},E8=function(a,b){$.AD.call(this,null,a||D8.vd(),b);this.hn(1,!1);this.hn(2,!1);this.hn(4,!1);this.hn(32,!1);this.ec=1},F8=function(a){this.b= +a||"menu"},G8=function(a){E8.call(this,D8.vd(),a)},H8=function(a,b){u8.call(this,t8,b||F8.vd(),a);w8(this,!1)},I8=function(a,b){(a.CF=b)&&w8(a,!0)},J8=function(a,b){H8.call(this,a,b);this.P=null},L8=function(a,b,c,d,e,f,h,k,l){var m=Ysa(c),n=$.Mf(a),q=i8(a);if(q){var r=new $.I(q.left,q.top,q.right-q.left,q.bottom-q.top);q=Math.max(n.left,r.left);var t=Math.min(n.left+n.width,r.left+r.width);if(q<=t){var u=Math.max(n.top,r.top);r=Math.min(n.top+n.height,r.top+r.height);u<=r&&(n.left=q,n.top=u,n.width= +t-q,n.height=r-u)}}q=$.ye(a);u=$.ye(c);if(q.b!=u.b){t=q.b.body;u=$.Ge(u.b);r=new $.gb(0,0);var v=(v=$.te(t))?$.Ge(v):window;if($.Zc(v,"parent")){var w=t;do{var x=v==u?$.Ff(w):$.Gf(w);r.x+=x.x;r.y+=x.y}while(v&&v!=u&&v!=v.parent&&(w=v.frameElement)&&(v=v.parent))}t=h8(r,$.Ff(t));!$.hd||$.dd(9)||$.De(q.b)||(t=h8(t,$.He(q.b)));n.left+=t.x;n.top+=t.y}a=Zsa(a,b);b=n.left;a&4?b+=n.width:a&2&&(b+=n.width/2);n=new $.gb(b,n.top+(a&1?n.height:0));n=h8(n,m);e&&(n.x+=(a&4?-1:1)*e.x,n.y+=(a&1?-1:1)*e.y);if(h)if(l)var y= +l;else if(y=i8(c))y.top-=m.y,y.right-=m.x,y.bottom-=m.y,y.left-=m.x;return K8(n,c,d,f,y,h,k)},Ysa=function(a){if(a=a.offsetParent){var b="HTML"==a.tagName||"BODY"==a.tagName;if(!b||"static"!=$.Af(a,"position")){var c=$.Ff(a);if(!b){b=$.Qf(a);var d;if(d=b){d=$.jE&&0<=$.xc($.xda,10);var e=$.pda&&0<=$.xc($.tda,10);d=$.gd||d||e}b=d?-a.scrollLeft:!b||$.kda&&$.bd("8")||"visible"==$.Af(a,"overflowX")?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft;c=h8(c,new $.gb(b,a.scrollTop))}}}return c||new $.gb}, +K8=function(a,b,c,d,e,f,h){a=a.clone();var k=Zsa(b,c);c=$.Kf(b);h=h?h.clone():c.clone();a=a.clone();h=h.clone();var l=0;if(d||0!=k)k&4?a.x-=h.width+(d?d.right:0):k&2?a.x-=h.width/2:d&&(a.x+=d.left),k&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);if(f){if(e){d=a;k=h;l=0;65==(f&65)&&(d.x=e.right)&&(f&=-2);132==(f&132)&&(d.y=e.bottom)&&(f&=-5);d.xe.right&&(k.width=Math.min(e.right-d.x, +m+k.width-e.left),k.width=Math.max(k.width,0),l|=4)}d.x+k.width>e.right&&f&1&&(d.x=Math.max(e.right-k.width,e.left),l|=1);f&2&&(l|=(d.xe.right?32:0));d.ye.bottom&&(k.height=Math.min(e.bottom-d.y,m+k.height-e.top),k.height=Math.max(k.height,0),l|=8));d.y+k.height>e.bottom&&f&4&&(d.y=Math.max(e.bottom-k.height,e.top),l|=2);f&8&&(l|=(d.ye.bottom?128:0));e=l}else e= +256;l=e}f=new $.I(0,0,0,0);f.left=a.x;f.top=a.y;f.width=h.width;f.height=h.height;e=l;if(e&496)return e;$.Cf(b,new $.gb(f.left,f.top));h=new $.lb(f.width,f.height);$.mb(c,h)||(c=h,a=$.De($.ye($.te(b)).b),!$.hd||$.bd("10")||a&&$.bd("8")?(b=b.style,$.gd?b.MozBoxSizing="border-box":$.xd?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(c.width,0)+"px",b.height=Math.max(c.height,0)+"px"):(h=b.style,a?(a=$.Uf(b,"padding"),b=$.Vf(b),h.pixelWidth=c.width-b.left-a.left-a.right-b.right, +h.pixelHeight=c.height-b.top-a.top-a.bottom-b.bottom):(h.pixelWidth=c.width,h.pixelHeight=c.height)));return e},Zsa=function(a,b){return(b&8&&$.Qf(a)?b^4:b)&-9},M8=function(){},N8=function(a,b,c){this.element=a;this.i=b;this.K=c},O8=function(a,b,c,d){N8.call(this,a,b);this.j=c?5:0;this.F=d||void 0},P8=function(a,b){a&48&&(b^=4);a&192&&(b^=1);return b},Q8=function(){this.f=[]},ata=function(a,b,c){var d=b.f.Ac("SPAN");d.className="anychart-submenu-arrow";$sa(b,d);a.Gn(c).appendChild(d)},$sa=function(a, +b){$.My(a)?($.Qj(b,"anychart-submenu-arrow-rtl"),$.df(b,"â—„")):($.Sj(b,"anychart-submenu-arrow-rtl"),$.df(b,"â–º"))},R8=function(a,b,c,d){o8.call(this,a,b,c,d||Q8.vd())},bta=function(a){a.getParent().Pj(function(a){a!=this&&"function"==typeof a.Pl&&(a.Pl(),a.Tp())},a)},cta=function(a,b){!b&&S8(a)&&S8(a).Wn(-1);a.dispatchEvent($.Ky(64,b));var c=S8(a);if(b!=a.JU){var d=a.Za();b?$.Qj(d,"anychart-submenu-open"):$.Sj(d,"anychart-submenu-open")}if(b!=c.Oe()&&(b&&(c.xf||c.Td(),c.Wn(-1)),c.Ji(b),b)){c=new O8(a.Za(), +12,!1);d=S8(a);var e=d.Za();d.Oe()||(e.style.visibility="hidden",$.Pf(e,!0));c.b(e,8);d.Oe()||($.Pf(e,!1),e.style.visibility="visible")}a.JU=b},T8=function(a,b,c){var d=$.Ly(a);(c?d.wa:d.gc).call(d,b,"enter",a.Zfa)},S8=function(a){a.Wl?a.ZM&&a.Wl.getParent()!=a&&a.Wl.gl(a):U8(a,new H8(a.f));a.Wl.Za()||a.Wl.Ac();return a.Wl},U8=function(a,b){var c=a.Wl;b!=c&&(c&&(a.Pl(),a.xf&&T8(a,c,!1)),a.Wl=b,a.ZM=!1,b&&(b.gl(a),b.Ji(!1,!0),I8(b,!1),w8(b,!1),a.xf&&T8(a,b,!0)))},V8=function(){this.f=[]},dta=function(a, +b,c){b=b.f.Ac("span");b.className="anychart-submenu-arrow";b.innerHTML=" ";a.Gn(c).appendChild(b)},W8=function(a,b,c){o8.call(this,a,void 0,void 0,V8.vd());this.P=c||!1;this.b=b||null},eta=function(a){a.getParent().Pj(function(a){a!=this&&"function"==typeof a.Pl&&(a.Pl(),a.Tp())},a)},fta=function(a,b){!b&&X8(a)&&X8(a).Wn(-1);a.dispatchEvent($.Ky(64,b));var c=X8(a);if(b!=a.CR){var d=a.Za();b?$.Qj(d,"anychart-submenu-open"):$.Sj(d,"anychart-submenu-open")}if(b!=c.Oe()&&(b&&(c.xf||c.Td(a.b),c.Wn(-1)), +c.Ji(b),b)){c=new O8(a.Za(),12,!1);var e=X8(a),f=e.Za();e.Oe()||(f.style.visibility="hidden",$.Pf(f,!0));c.b(f,8);e.Oe()||($.Pf(f,!1),f.style.visibility="visible");c=$.Ee(window);d=$.Mf(f);f=$.Hf(f);e=e.P;var h=$.Mf(e);e.style.maxHeight=c.height-f.y-(d.height-h.height)-15+"px"}a.CR=b},Y8=function(a,b,c){var d=$.Ly(a);(c?d.wa:d.gc).call(d,b,"enter",a.fda)},X8=function(a){if(a.Kl)a.QK&&a.Kl.getParent()!=a&&a.Kl.gl(a);else{var b=a.P?Z8.vd():void 0;b=new J8(a.f,b);var c=a.Kl;b!=c&&(c&&(a.Pl(),a.xf&&Y8(a, +c,!1)),a.Kl=b,a.QK=!1,b&&(b.gl(a),b.Ji(!1,!0),I8(b,!1),w8(b,!1),a.xf&&Y8(a,b,!0)))}a.Kl.Za()||a.Kl.Ac();return a.Kl},$8=function(a,b){this.i=a instanceof $.gb?a:new $.gb(a,b)},a9=function(a,b){$8.call(this,a,b)},gta=function(a,b,c,d){O8.call(this,a,b,c||d);(c||d)&&this.f(65|(d?32:132))},b9=function(a,b){H8.call(this,a,b);I8(this,!0);this.Ji(!1,!0);this.i=new $.gC},hta=function(a,b,c,d){var e=a.Oe();a.Oe()||(0,$.Sn)();a.dispatchEvent("beforeshow")&&(c="undefined"!=typeof c?c:8,e||(a.Za().style.visibility= +"hidden"),$.Pf(a.Za(),!0),b.b(a.Za(),c,d),e||(a.Za().style.visibility="visible"),a.Wn(-1),a.Ji(!0))},ita=function(a,b){for(var c=a.i.Yt(),d=0;dthis.ul&&b<=this.ul?this.ul++:athis.ul&&this.ul--}; +$.g.removeChild=function(a,b){if(a=$.z(a)?$.Oy(this,a):a){var c=this.Kf(a);-1!=c&&(c==this.ul?(a.rq(!1),this.ul=-1):cb&&this.b.padding().bottom(b+a)}this.b.listen("selectedrangechange",this.AR,!1,this);a=$.Ly(this);a.wa(this.i.Za(),"blur",this.JW);a.wa(this.K.Za(),"blur",this.JW);this.aa||(this.aa=new $.Tp(this.i.Za()),a.wa(this.aa,"key",this.lO));this.ea||(this.ea=new $.Tp(this.K.Za()),a.wa(this.ea,"key",this.lO))}}; +$.g.JW=function(){var a=this.i.vj(),b=this.K.vj(),c=this.format();a=$.oq.format.parseDateTime(a,c);b=$.oq.format.parseDateTime(b,c);if(a&&b){c=a.getTime();var d=b.getTime();c>d&&(a=[b,b=a][0],c=[d,d=c][0]);if(c!=this.Ba||d!=this.Ja){this.Ba=c;this.Ja=d;this.b.selectRange(a,b,!0);return}}$.Uy(this.i,$.oq.format.dateTime(this.Ba,this.format()));$.Uy(this.K,$.oq.format.dateTime(this.Ja,this.format()))}; +$.g.lO=function(a){if(13==a.keyCode){a=a.target.s3.Za();var b;a:{var c=b=0;if(uta(a))b=a.selectionStart,c=-1;else if($.hd&&!$.bd("9")){var d=a.ownerDocument||a.document;var e=d.selection.createRange();"textarea"==a.type?(d=d.body.createTextRange(),d.moveToElementText(a)):d=a.createTextRange();d=[d,e];e=d[0];d=d[1];if(e.inRange(d)){e.setEndPoint("EndToStart",d);if("textarea"==a.type){d.duplicate();c=b=e.text;for(d=!1;!d;)0==e.compareEndPoints("StartToEnd",e)?d=!0:(e.moveEnd("character",-1),e.text== +b?c+="\r\n":d=!0);b=[c.length,-1];break a}b=e.text.length;c=-1}}b=[b,c]}b=b[0];this.JW();uta(a)?(a.selectionStart=b,a.selectionEnd=b):$.hd&&!$.bd("9")&&("textarea"==a.type&&(b=$.hc(a.value.substring(0,b)).length),a=a.createTextRange(),a.collapse(!0),a.move("character",b),a.select())}};$.g.Dh=function(){C9.u.Dh.call(this)}; +$.g.R=function(){this.b.unlisten("selectedrangechange",this.AR,!1,this);this.b=null;this.P&&($.Xe(this.ba),this.ba=null);this.P&&($.Xe(this.P),this.P=null);this.aa&&($.Ly(this).gc(this.aa,"key",this.lO),this.aa.ld(),this.aa=null);this.ea&&($.Ly(this).gc(this.ea,"key",this.lO),this.ea.ld(),this.ea=null);C9.u.R.call(this)};var L9=C9.prototype;$.E("anychart.ui.rangePicker",function(){return new C9});L9.render=L9.Td;L9.decorate=L9.Bs;L9.target=L9.target;L9.format=L9.format;L9.dispose=L9.ld; +L9.getElement=L9.Za;L9.toLabelText=L9.kla;L9.fromLabelText=L9.sfa;$.H(zta,$.TD);var yta="anychart-button-toggle";$.H(D9,$.qf);$.g=D9.prototype;$.g.BH=null;$.g.IU=null;$.g.oy=function(a){return this.Ub[a]||null};$.g.zm=function(){return $.Ha(this.Ub)};$.g.clear=function(){var a=this.Ub;if(!$.A(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0;this.BH=null};$.g.R=function(){D9.u.R.call(this);delete this.Ub;this.BH=null};$.H(G9,$.Jy);$.g=G9.prototype;$.g.target=function(a){this.b=a};$.g.OK=function(a){if(a.firstSelected==a.firstKey&&a.lastSelected==a.lastKey&&(a=$.Oy(this,"max"))){F9(this.i,a);return}F9(this.i,null)};$.g.cda=function(a,b){a&&$.KD(a,b)}; +$.g.Yy=function(a){$.p(a)&&$.A(a)&&(this.jd=(0,$.Gg)(a,function(a,c){c=$.Qc(c);var b=$.p(c.startDate)&&$.p(c.endDate);"unit"==c.type||"points"==c.type?(c.count=c.count||1,c.anchor=$.fl(c.anchor),a.push(c)):b?(c.type="range",a.push(c)):"range"!=c.type&&a.push(c);return a},[]),this.update());return this.jd};$.g.Ac=function(){G9.u.Ac.call(this);Bta(this)};$.g.ql=function(a){Cta(a)?this.Td(a):(G9.u.ql.call(this,a),Bta(this))}; +$.g.update=function(){this.xf&&(this.Gi(!0),this.i.clear(),(0,$.Pe)(this.jd,function(a,b){var c=new zta(a.text);c.dh=a;"max"==a.type&&f8(c,"max");c.mv&=-17;var d=this.i,e=d.Ub.length;c&&(E9(d,c,!1),$.Da(d.Ub,c,e));b?b==this.jd.length-1?$.SD(c,1):$.SD(c,3):$.SD(c,2);this.hc(c,!0)},this))};$.g.Pla=function(a){return $.p(a)?(this.P!=a&&(this.P=a,this.K&&$.df(this.K,$.oq.format.getMessage(this.P))),this):this.P};$.g.ada=function(a){this.Td(a)}; +$.g.Td=function(a){a=a||this.b;if(Cta(a)){this.target(a);this.aa=!0;var b=this.b.container()?this.b.container().getStage():null;b&&b.container()?a=b.container():a=null}b=this.b?!(0,window.isNaN)(this.b.getSelectedRange().firstSelected):!1;a&&b?(G9.u.Td.call(this,a),(a=this.b?this.b.bH():null)&&this.OK({firstKey:a.On,lastKey:a.wp,firstSelected:a.qs,lastSelected:a.uw})):(a=(0,$.pa)(this.ada,this,a||this.b),this.b.Ce("chartdraw",a,!1,this))}; +$.g.Bs=function(a){G9.u.Bs.call(this,a);this.b&&(a=this.b?this.b.bH():null)&&this.OK({firstKey:a.On,lastKey:a.wp,firstSelected:a.qs,lastSelected:a.uw})};$.g.Gg=function(){G9.u.Gg.call(this);if(this.b){this.update();if(this.aa){var a=($.Wf(this.Za()).height||21)+15,b=this.b.padding().bottom();a>b&&this.b.padding().bottom(b+a)}this.b.listen("selectedrangechange",this.OK,!1,this);$.Ly(this).wa(this,"action",this.bda)}}; +$.g.bda=function(a){var b=a.target.dh,c=$.zk($.NE,b.type,$.p(null)?null:"max");"unit"==c?this.b.selectRange(b.unit,b.count,b.anchor,!0):"points"==c?this.b.selectRange("points",b.count,b.anchor,!0):"ytd"==c||"qtd"==c||"mtd"==c||"max"==c?this.b.selectRange(c,!0):(c=$.oq.format.parseDateTime(b.startDate),b=$.oq.format.parseDateTime(b.endDate),c&&b&&this.b.selectRange(c,b,!0));F9(this.i,a.target)};$.g.Dh=function(){G9.u.Dh.call(this)}; +$.g.R=function(){this.b.unlisten("selectedrangechange",this.OK,!1,this);this.b=null;this.i.clear();this.K&&($.Xe(this.K),this.K=null);G9.u.R.call(this)};var M9=G9.prototype;$.E("anychart.ui.rangeSelector",function(){return new G9});M9.render=M9.Td;M9.decorate=M9.Bs;M9.target=M9.target;M9.ranges=M9.Yy;M9.dispose=M9.ld;M9.getElement=M9.Za;M9.zoomLabelText=M9.Pla;$.H(H9,$.Jy);$.g=H9.prototype;$.g.target=function(a){this.b=a};$.g.Ac=function(){H9.u.Ac.call(this);Dta(this)};$.g.ql=function(a){Eta(a)?this.Td(a):(H9.u.ql.call(this,a),Dta(this))};$.g.dda=function(a){this.Td(a)}; +$.g.Td=function(a){a=a||this.b;var b;(b=Eta(a))||(b=(b=a)&&$.D(b.getType)&&"timeline"==b.getType());b||(b=(b=a)&&$.D(b.getType)&&"graph"==b.getType());b&&(this.target(a),(b=this.b.container()?this.b.container().getStage():null)&&b.container()?a=b.container():a=null);a?H9.u.Td.call(this,a):(a=(0,$.pa)(this.dda,this,a||this.b),this.b.listenOnce("chartdraw",a,!1,this))};$.g.Gg=function(){H9.u.Gg.call(this);this.b&&$.Ly(this).wa(this,"action",this.eda)}; +$.g.eda=function(a){a=a.target.dh;this.b.Fl=100;var b=this.b.getCurrentScene();switch(a.type){case "fitAll":b.fitAll();break;case "zoomIn":b.zoomIn();break;case "zoomOut":b.zoomOut()}};$.g.Dh=function(){H9.u.Dh.call(this)};$.g.R=function(){this.b=null;this.i.ld();this.i=null;this.K.ld();this.K=null;this.P.ld();this.P=null;H9.u.R.call(this)};var N9=H9.prototype;$.E("anychart.ui.zoom",function(){return new H9});N9.render=N9.Td;N9.decorate=N9.Bs;N9.target=N9.target;N9.dispose=N9.ld;}).call(this,$)} +$_=window.anychart;$_.$=$;$_._=_}); diff --git a/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.14.1/js/anychart-ui.min_qe95e7e741b.js b/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.14.1/js/anychart-ui.min_qe95e7e741b.js new file mode 100644 index 0000000000000000000000000000000000000000..fc5e1de2144aa8b327441ec9cd3ffdc27637d822 --- /dev/null +++ b/web/AnyChart/line/_deps/cdn.anychart.com/releases/8.14.1/js/anychart-ui.min_qe95e7e741b.js @@ -0,0 +1,121 @@ +/** + * AnyChart is lightweight robust charting library with great API and Docs, that works with your stack and has tons of chart types and features. + * + * Modules: ui + * Version: 8.14.1.1941 (2026-01-19) + * License: https://www.anychart.com/buy/ + * Contact: sales@anychart.com + * Copyright: AnyChart.com 2026. All rights reserved. + */ +(function(global,factory){if(typeof module==='object'&&typeof module.exports==='object'){var wrapper=function(w){if(!w.document){throw Error('AnyChart requires a window with a document');}factory.call(w,w,w.document);try{w.acgraph.isNodeJS=Object.prototype.toString.call(global.process)=="[object process]";}catch(e){};return w.anychart;};module.exports=global.document?wrapper(global):wrapper;}else{factory.call(global,window,document)}})(typeof window!=='undefined'?window:this,function(window,document,opt_noGlobal){var $,_,$_=this.anychart;if($_&&(_=$_._)){$=$_.$}else{throw Error('anychart-base.min.js module should be included first. See modules explanation at https://docs.anychart.com/Quick_Start/Modules for details');$={};_={}}if(!_.ui){_.ui=1;(function($){var f8=function(a,b){a.Y&&a.Y.F&&($.Lc(a.Y.F,a.fe),$.Mc(a.Y.F,b,a));a.fe=b},Ksa=function(a,b){a.Rd=b},Lsa=function(a,b){a.dh=b},g8=function(a,b){a.i.ew(a.Za(),b);a.Rd=b},h8=function(a,b){return new $.gb(a.x-b.x,a.y-b.y)},Msa=function(a){if($.hd&&!$.dd(8))return a.offsetParent;var b=$.te(a),c=$.Af(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=$.Af(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth> +a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null},i8=function(a){for(var b=new $.kb(0,window.Infinity,window.Infinity,0),c=$.ye(a),d=c.b.body,e=c.b.documentElement,f=$.Fe(c.b);a=Msa(a);)if(!($.hd&&0==a.clientWidth||$.xd&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=$.Af(a,"overflow")){var h=$.Ff(a),k=new $.gb(a.clientLeft,a.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom, +h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=$.Ee($.Ge(c.b)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null},Nsa=function(a,b){var c=b||$.Fe(window.document);var d=c||$.Fe(window.document);var e=$.Ff(a),f=$.Ff(d),h=$.Vf(d);if(d==$.Fe(window.document)){var k=e.x-d.scrollLeft;e=e.y-d.scrollTop;$.hd&&!$.dd(10)&&(k+=h.left, +e+=h.top)}else k=e.x-f.x-h.left,e=e.y-f.y-h.top;h=$.Jf(a);f=d.clientHeight-h.height;var l=d.scrollLeft,m=d.scrollTop;l+=Math.min(k,Math.max(k-(d.clientWidth-h.width),0));m+=Math.min(e,Math.max(e-f,0));d=new $.gb(l,m);c.scrollLeft=d.x;c.scrollTop=d.y},j8=function(a,b){$.qf.call(this);this.f=a||1;this.b=b||$.Cj;this.i=(0,$.pa)(this.cla,this);this.j=(0,$.Sn)()},Osa=function(a,b){var c="";b&&(c=b.id);$.Hy(a,"activedescendant",c)},k8=function(){this.f=[]},l8=function(a,b){var c=a.f[b];if(!c){switch(b){case 0:c= +a.Hh()+"-highlight";break;case 1:c=a.Hh()+"-checkbox";break;case 2:c=a.Hh()+"-content"}a.f[b]=c}return c},Psa=function(a,b,c){a=l8(a,2);return c.Ac("DIV",a,b)},m8=function(a,b){var c=a.Gn(b);if(c){c=c.firstChild;var d=l8(a,1);return!!c&&$.af(c)&&$.Lj(c,d)}return!1},n8=function(a,b,c,d){$.oD(a,c,b.kH());$.rD(a,b,c);d!=m8(a,c)&&(d?$.Qj(c,"anychart-option"):$.Sj(c,"anychart-option"),c=a.Gn(c),d?(a=l8(a,1),c.insertBefore(b.f.Ac("DIV",a),c.firstChild||null)):c.removeChild(c.firstChild))},o8=function(a, +b,c,d){$.AD.call(this,a,d||k8.vd(),c);this.dh=b},p8=function(a,b,c,d){o8.call(this,a,b,c,d);this.P=!1},q8=function(a){this.b=a},r8=function(a,b){a&&(a.tabIndex=b?0:-1)},Ssa=function(a,b,c){c.id&&f8(b,c.id);var d=a.BD(),e=!1,f=$.Kj(c);f&&(0,$.Pe)(f,function(a){a==d?e=!0:a&&(a==d+"-disabled"?b.Dj(!1):a==d+"-horizontal"?Qsa(b,s8):a==d+"-vertical"&&Qsa(b,t8))},a);e||$.Qj(c,d);Rsa(a,b,c);return c},Rsa=function(a,b,c){if(c)for(var d=c.firstChild,e;d&&d.parentNode==c;){e=d.nextSibling;if(1==d.nodeType){var f= +a.aH(d);f&&(f.Fd=d,b.isEnabled()||f.Dj(!1),b.hc(f),f.Bs(d))}else d.nodeValue&&""!=(0,$.vc)(d.nodeValue)||c.removeChild(d);d=e}},Tsa=function(a,b){var c=a.BD(),d=[c,b.vh==s8?c+"-horizontal":c+"-vertical"];b.isEnabled()||d.push(c+"-disabled");return d},u8=function(a,b,c){$.Jy.call(this,c);this.dw=b||q8.vd();this.vh=a||this.dw.P1()},v8=function(a){return a.KV||a.Za()},Usa=function(a,b){var c=$.Ly(a),d=v8(a);b?c.wa(d,"focus",a.XM).wa(d,"blur",a.WM).wa(a.Zl||(a.Zl=new $.Tp(v8(a))),"key",a.oo):c.gc(d,"focus", +a.XM).gc(d,"blur",a.WM).gc(a.Zl||(a.Zl=new $.Tp(v8(a))),"key",a.oo)},Vsa=function(a,b){var c=b.Za();c=c.id||(c.id=b.ny());a.tv||(a.tv={});a.tv[c]=b},Qsa=function(a,b){if(a.Za())throw Error("Component already rendered");a.vh=b},w8=function(a,b){b!=a.kD&&a.xf&&Usa(a,b);a.kD=b;a.DA&&a.hj&&r8(v8(a),b)},x8=function(a){return a.yd(a.ul)},z8=function(a){y8(a,function(a,c){return(a+1)%c},$.Ny(a)-1)},Wsa=function(a){y8(a,function(a,c){a--;return 0>a?c-1:a},0)},A8=function(a){y8(a,function(a,c){return(a+1)% +c},a.ul)},B8=function(a){y8(a,function(a,c){a--;return 0>a?c-1:a},a.ul)},y8=function(a,b,c){c=0>c?a.Kf(a.dm):c;var d=$.Ny(a);c=b.call(a,c,d);for(var e=0;e<=d;){var f=a.yd(c);if(f&&a.n0(f)){a.Wn(c);break}e++;c=b.call(a,c,d)}},C8=function(){},Xsa=function(a,b,c){$.AD.call(this,a,c||C8.vd(),b);this.hn(1,!1);this.hn(2,!1);this.hn(4,!1);this.hn(32,!1);this.ec=1},D8=function(){},E8=function(a,b){$.AD.call(this,null,a||D8.vd(),b);this.hn(1,!1);this.hn(2,!1);this.hn(4,!1);this.hn(32,!1);this.ec=1},F8=function(a){this.b= +a||"menu"},G8=function(a){E8.call(this,D8.vd(),a)},H8=function(a,b){u8.call(this,t8,b||F8.vd(),a);w8(this,!1)},I8=function(a,b){(a.CF=b)&&w8(a,!0)},J8=function(a,b){H8.call(this,a,b);this.P=null},L8=function(a,b,c,d,e,f,h,k,l){var m=Ysa(c),n=$.Mf(a),q=i8(a);if(q){var r=new $.I(q.left,q.top,q.right-q.left,q.bottom-q.top);q=Math.max(n.left,r.left);var t=Math.min(n.left+n.width,r.left+r.width);if(q<=t){var u=Math.max(n.top,r.top);r=Math.min(n.top+n.height,r.top+r.height);u<=r&&(n.left=q,n.top=u,n.width= +t-q,n.height=r-u)}}q=$.ye(a);u=$.ye(c);if(q.b!=u.b){t=q.b.body;u=$.Ge(u.b);r=new $.gb(0,0);var v=(v=$.te(t))?$.Ge(v):window;if($.Zc(v,"parent")){var w=t;do{var x=v==u?$.Ff(w):$.Gf(w);r.x+=x.x;r.y+=x.y}while(v&&v!=u&&v!=v.parent&&(w=v.frameElement)&&(v=v.parent))}t=h8(r,$.Ff(t));!$.hd||$.dd(9)||$.De(q.b)||(t=h8(t,$.He(q.b)));n.left+=t.x;n.top+=t.y}a=Zsa(a,b);b=n.left;a&4?b+=n.width:a&2&&(b+=n.width/2);n=new $.gb(b,n.top+(a&1?n.height:0));n=h8(n,m);e&&(n.x+=(a&4?-1:1)*e.x,n.y+=(a&1?-1:1)*e.y);if(h)if(l)var y= +l;else if(y=i8(c))y.top-=m.y,y.right-=m.x,y.bottom-=m.y,y.left-=m.x;return K8(n,c,d,f,y,h,k)},Ysa=function(a){if(a=a.offsetParent){var b="HTML"==a.tagName||"BODY"==a.tagName;if(!b||"static"!=$.Af(a,"position")){var c=$.Ff(a);if(!b){b=$.Qf(a);var d;if(d=b){d=$.jE&&0<=$.xc($.xda,10);var e=$.pda&&0<=$.xc($.tda,10);d=$.gd||d||e}b=d?-a.scrollLeft:!b||$.kda&&$.bd("8")||"visible"==$.Af(a,"overflowX")?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft;c=h8(c,new $.gb(b,a.scrollTop))}}}return c||new $.gb}, +K8=function(a,b,c,d,e,f,h){a=a.clone();var k=Zsa(b,c);c=$.Kf(b);h=h?h.clone():c.clone();a=a.clone();h=h.clone();var l=0;if(d||0!=k)k&4?a.x-=h.width+(d?d.right:0):k&2?a.x-=h.width/2:d&&(a.x+=d.left),k&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);if(f){if(e){d=a;k=h;l=0;65==(f&65)&&(d.x=e.right)&&(f&=-2);132==(f&132)&&(d.y=e.bottom)&&(f&=-5);d.xe.right&&(k.width=Math.min(e.right-d.x, +m+k.width-e.left),k.width=Math.max(k.width,0),l|=4)}d.x+k.width>e.right&&f&1&&(d.x=Math.max(e.right-k.width,e.left),l|=1);f&2&&(l|=(d.xe.right?32:0));d.ye.bottom&&(k.height=Math.min(e.bottom-d.y,m+k.height-e.top),k.height=Math.max(k.height,0),l|=8));d.y+k.height>e.bottom&&f&4&&(d.y=Math.max(e.bottom-k.height,e.top),l|=2);f&8&&(l|=(d.ye.bottom?128:0));e=l}else e= +256;l=e}f=new $.I(0,0,0,0);f.left=a.x;f.top=a.y;f.width=h.width;f.height=h.height;e=l;if(e&496)return e;$.Cf(b,new $.gb(f.left,f.top));h=new $.lb(f.width,f.height);$.mb(c,h)||(c=h,a=$.De($.ye($.te(b)).b),!$.hd||$.bd("10")||a&&$.bd("8")?(b=b.style,$.gd?b.MozBoxSizing="border-box":$.xd?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(c.width,0)+"px",b.height=Math.max(c.height,0)+"px"):(h=b.style,a?(a=$.Uf(b,"padding"),b=$.Vf(b),h.pixelWidth=c.width-b.left-a.left-a.right-b.right, +h.pixelHeight=c.height-b.top-a.top-a.bottom-b.bottom):(h.pixelWidth=c.width,h.pixelHeight=c.height)));return e},Zsa=function(a,b){return(b&8&&$.Qf(a)?b^4:b)&-9},M8=function(){},N8=function(a,b,c){this.element=a;this.i=b;this.K=c},O8=function(a,b,c,d){N8.call(this,a,b);this.j=c?5:0;this.F=d||void 0},P8=function(a,b){a&48&&(b^=4);a&192&&(b^=1);return b},Q8=function(){this.f=[]},ata=function(a,b,c){var d=b.f.Ac("SPAN");d.className="anychart-submenu-arrow";$sa(b,d);a.Gn(c).appendChild(d)},$sa=function(a, +b){$.My(a)?($.Qj(b,"anychart-submenu-arrow-rtl"),$.df(b,"â—„")):($.Sj(b,"anychart-submenu-arrow-rtl"),$.df(b,"â–º"))},R8=function(a,b,c,d){o8.call(this,a,b,c,d||Q8.vd())},bta=function(a){a.getParent().Pj(function(a){a!=this&&"function"==typeof a.Pl&&(a.Pl(),a.Tp())},a)},cta=function(a,b){!b&&S8(a)&&S8(a).Wn(-1);a.dispatchEvent($.Ky(64,b));var c=S8(a);if(b!=a.JU){var d=a.Za();b?$.Qj(d,"anychart-submenu-open"):$.Sj(d,"anychart-submenu-open")}if(b!=c.Oe()&&(b&&(c.xf||c.Td(),c.Wn(-1)),c.Ji(b),b)){c=new O8(a.Za(), +12,!1);d=S8(a);var e=d.Za();d.Oe()||(e.style.visibility="hidden",$.Pf(e,!0));c.b(e,8);d.Oe()||($.Pf(e,!1),e.style.visibility="visible")}a.JU=b},T8=function(a,b,c){var d=$.Ly(a);(c?d.wa:d.gc).call(d,b,"enter",a.Zfa)},S8=function(a){a.Wl?a.ZM&&a.Wl.getParent()!=a&&a.Wl.gl(a):U8(a,new H8(a.f));a.Wl.Za()||a.Wl.Ac();return a.Wl},U8=function(a,b){var c=a.Wl;b!=c&&(c&&(a.Pl(),a.xf&&T8(a,c,!1)),a.Wl=b,a.ZM=!1,b&&(b.gl(a),b.Ji(!1,!0),I8(b,!1),w8(b,!1),a.xf&&T8(a,b,!0)))},V8=function(){this.f=[]},dta=function(a, +b,c){b=b.f.Ac("span");b.className="anychart-submenu-arrow";b.innerHTML=" ";a.Gn(c).appendChild(b)},W8=function(a,b,c){o8.call(this,a,void 0,void 0,V8.vd());this.P=c||!1;this.b=b||null},eta=function(a){a.getParent().Pj(function(a){a!=this&&"function"==typeof a.Pl&&(a.Pl(),a.Tp())},a)},fta=function(a,b){!b&&X8(a)&&X8(a).Wn(-1);a.dispatchEvent($.Ky(64,b));var c=X8(a);if(b!=a.CR){var d=a.Za();b?$.Qj(d,"anychart-submenu-open"):$.Sj(d,"anychart-submenu-open")}if(b!=c.Oe()&&(b&&(c.xf||c.Td(a.b),c.Wn(-1)), +c.Ji(b),b)){c=new O8(a.Za(),12,!1);var e=X8(a),f=e.Za();e.Oe()||(f.style.visibility="hidden",$.Pf(f,!0));c.b(f,8);e.Oe()||($.Pf(f,!1),f.style.visibility="visible");c=$.Ee(window);d=$.Mf(f);f=$.Hf(f);e=e.P;var h=$.Mf(e);e.style.maxHeight=c.height-f.y-(d.height-h.height)-15+"px"}a.CR=b},Y8=function(a,b,c){var d=$.Ly(a);(c?d.wa:d.gc).call(d,b,"enter",a.fda)},X8=function(a){if(a.Kl)a.QK&&a.Kl.getParent()!=a&&a.Kl.gl(a);else{var b=a.P?Z8.vd():void 0;b=new J8(a.f,b);var c=a.Kl;b!=c&&(c&&(a.Pl(),a.xf&&Y8(a, +c,!1)),a.Kl=b,a.QK=!1,b&&(b.gl(a),b.Ji(!1,!0),I8(b,!1),w8(b,!1),a.xf&&Y8(a,b,!0)))}a.Kl.Za()||a.Kl.Ac();return a.Kl},$8=function(a,b){this.i=a instanceof $.gb?a:new $.gb(a,b)},a9=function(a,b){$8.call(this,a,b)},gta=function(a,b,c,d){O8.call(this,a,b,c||d);(c||d)&&this.f(65|(d?32:132))},b9=function(a,b){H8.call(this,a,b);I8(this,!0);this.Ji(!1,!0);this.i=new $.gC},hta=function(a,b,c,d){var e=a.Oe();a.Oe()||(0,$.Sn)();a.dispatchEvent("beforeshow")&&(c="undefined"!=typeof c?c:8,e||(a.Za().style.visibility= +"hidden"),$.Pf(a.Za(),!0),b.b(a.Za(),c,d),e||(a.Za().style.visibility="visible"),a.Wn(-1),a.Ji(!0))},ita=function(a,b){for(var c=a.i.Yt(),d=0;dthis.ul&&b<=this.ul?this.ul++:athis.ul&&this.ul--}; +$.g.removeChild=function(a,b){if(a=$.z(a)?$.Oy(this,a):a){var c=this.Kf(a);-1!=c&&(c==this.ul?(a.rq(!1),this.ul=-1):cb&&this.b.padding().bottom(b+a)}this.b.listen("selectedrangechange",this.AR,!1,this);a=$.Ly(this);a.wa(this.i.Za(),"blur",this.JW);a.wa(this.K.Za(),"blur",this.JW);this.aa||(this.aa=new $.Tp(this.i.Za()),a.wa(this.aa,"key",this.lO));this.ea||(this.ea=new $.Tp(this.K.Za()),a.wa(this.ea,"key",this.lO))}}; +$.g.JW=function(){var a=this.i.vj(),b=this.K.vj(),c=this.format();a=$.oq.format.parseDateTime(a,c);b=$.oq.format.parseDateTime(b,c);if(a&&b){c=a.getTime();var d=b.getTime();c>d&&(a=[b,b=a][0],c=[d,d=c][0]);if(c!=this.Ba||d!=this.Ja){this.Ba=c;this.Ja=d;this.b.selectRange(a,b,!0);return}}$.Uy(this.i,$.oq.format.dateTime(this.Ba,this.format()));$.Uy(this.K,$.oq.format.dateTime(this.Ja,this.format()))}; +$.g.lO=function(a){if(13==a.keyCode){a=a.target.s3.Za();var b;a:{var c=b=0;if(uta(a))b=a.selectionStart,c=-1;else if($.hd&&!$.bd("9")){var d=a.ownerDocument||a.document;var e=d.selection.createRange();"textarea"==a.type?(d=d.body.createTextRange(),d.moveToElementText(a)):d=a.createTextRange();d=[d,e];e=d[0];d=d[1];if(e.inRange(d)){e.setEndPoint("EndToStart",d);if("textarea"==a.type){d.duplicate();c=b=e.text;for(d=!1;!d;)0==e.compareEndPoints("StartToEnd",e)?d=!0:(e.moveEnd("character",-1),e.text== +b?c+="\r\n":d=!0);b=[c.length,-1];break a}b=e.text.length;c=-1}}b=[b,c]}b=b[0];this.JW();uta(a)?(a.selectionStart=b,a.selectionEnd=b):$.hd&&!$.bd("9")&&("textarea"==a.type&&(b=$.hc(a.value.substring(0,b)).length),a=a.createTextRange(),a.collapse(!0),a.move("character",b),a.select())}};$.g.Dh=function(){C9.u.Dh.call(this)}; +$.g.R=function(){this.b.unlisten("selectedrangechange",this.AR,!1,this);this.b=null;this.P&&($.Xe(this.ba),this.ba=null);this.P&&($.Xe(this.P),this.P=null);this.aa&&($.Ly(this).gc(this.aa,"key",this.lO),this.aa.ld(),this.aa=null);this.ea&&($.Ly(this).gc(this.ea,"key",this.lO),this.ea.ld(),this.ea=null);C9.u.R.call(this)};var L9=C9.prototype;$.E("anychart.ui.rangePicker",function(){return new C9});L9.render=L9.Td;L9.decorate=L9.Bs;L9.target=L9.target;L9.format=L9.format;L9.dispose=L9.ld; +L9.getElement=L9.Za;L9.toLabelText=L9.kla;L9.fromLabelText=L9.sfa;$.H(zta,$.TD);var yta="anychart-button-toggle";$.H(D9,$.qf);$.g=D9.prototype;$.g.BH=null;$.g.IU=null;$.g.oy=function(a){return this.Ub[a]||null};$.g.zm=function(){return $.Ha(this.Ub)};$.g.clear=function(){var a=this.Ub;if(!$.A(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0;this.BH=null};$.g.R=function(){D9.u.R.call(this);delete this.Ub;this.BH=null};$.H(G9,$.Jy);$.g=G9.prototype;$.g.target=function(a){this.b=a};$.g.OK=function(a){if(a.firstSelected==a.firstKey&&a.lastSelected==a.lastKey&&(a=$.Oy(this,"max"))){F9(this.i,a);return}F9(this.i,null)};$.g.cda=function(a,b){a&&$.KD(a,b)}; +$.g.Yy=function(a){$.p(a)&&$.A(a)&&(this.jd=(0,$.Gg)(a,function(a,c){c=$.Qc(c);var b=$.p(c.startDate)&&$.p(c.endDate);"unit"==c.type||"points"==c.type?(c.count=c.count||1,c.anchor=$.fl(c.anchor),a.push(c)):b?(c.type="range",a.push(c)):"range"!=c.type&&a.push(c);return a},[]),this.update());return this.jd};$.g.Ac=function(){G9.u.Ac.call(this);Bta(this)};$.g.ql=function(a){Cta(a)?this.Td(a):(G9.u.ql.call(this,a),Bta(this))}; +$.g.update=function(){this.xf&&(this.Gi(!0),this.i.clear(),(0,$.Pe)(this.jd,function(a,b){var c=new zta(a.text);c.dh=a;"max"==a.type&&f8(c,"max");c.mv&=-17;var d=this.i,e=d.Ub.length;c&&(E9(d,c,!1),$.Da(d.Ub,c,e));b?b==this.jd.length-1?$.SD(c,1):$.SD(c,3):$.SD(c,2);this.hc(c,!0)},this))};$.g.Pla=function(a){return $.p(a)?(this.P!=a&&(this.P=a,this.K&&$.df(this.K,$.oq.format.getMessage(this.P))),this):this.P};$.g.ada=function(a){this.Td(a)}; +$.g.Td=function(a){a=a||this.b;if(Cta(a)){this.target(a);this.aa=!0;var b=this.b.container()?this.b.container().getStage():null;b&&b.container()?a=b.container():a=null}b=this.b?!(0,window.isNaN)(this.b.getSelectedRange().firstSelected):!1;a&&b?(G9.u.Td.call(this,a),(a=this.b?this.b.bH():null)&&this.OK({firstKey:a.On,lastKey:a.wp,firstSelected:a.qs,lastSelected:a.uw})):(a=(0,$.pa)(this.ada,this,a||this.b),this.b.Ce("chartdraw",a,!1,this))}; +$.g.Bs=function(a){G9.u.Bs.call(this,a);this.b&&(a=this.b?this.b.bH():null)&&this.OK({firstKey:a.On,lastKey:a.wp,firstSelected:a.qs,lastSelected:a.uw})};$.g.Gg=function(){G9.u.Gg.call(this);if(this.b){this.update();if(this.aa){var a=($.Wf(this.Za()).height||21)+15,b=this.b.padding().bottom();a>b&&this.b.padding().bottom(b+a)}this.b.listen("selectedrangechange",this.OK,!1,this);$.Ly(this).wa(this,"action",this.bda)}}; +$.g.bda=function(a){var b=a.target.dh,c=$.zk($.NE,b.type,$.p(null)?null:"max");"unit"==c?this.b.selectRange(b.unit,b.count,b.anchor,!0):"points"==c?this.b.selectRange("points",b.count,b.anchor,!0):"ytd"==c||"qtd"==c||"mtd"==c||"max"==c?this.b.selectRange(c,!0):(c=$.oq.format.parseDateTime(b.startDate),b=$.oq.format.parseDateTime(b.endDate),c&&b&&this.b.selectRange(c,b,!0));F9(this.i,a.target)};$.g.Dh=function(){G9.u.Dh.call(this)}; +$.g.R=function(){this.b.unlisten("selectedrangechange",this.OK,!1,this);this.b=null;this.i.clear();this.K&&($.Xe(this.K),this.K=null);G9.u.R.call(this)};var M9=G9.prototype;$.E("anychart.ui.rangeSelector",function(){return new G9});M9.render=M9.Td;M9.decorate=M9.Bs;M9.target=M9.target;M9.ranges=M9.Yy;M9.dispose=M9.ld;M9.getElement=M9.Za;M9.zoomLabelText=M9.Pla;$.H(H9,$.Jy);$.g=H9.prototype;$.g.target=function(a){this.b=a};$.g.Ac=function(){H9.u.Ac.call(this);Dta(this)};$.g.ql=function(a){Eta(a)?this.Td(a):(H9.u.ql.call(this,a),Dta(this))};$.g.dda=function(a){this.Td(a)}; +$.g.Td=function(a){a=a||this.b;var b;(b=Eta(a))||(b=(b=a)&&$.D(b.getType)&&"timeline"==b.getType());b||(b=(b=a)&&$.D(b.getType)&&"graph"==b.getType());b&&(this.target(a),(b=this.b.container()?this.b.container().getStage():null)&&b.container()?a=b.container():a=null);a?H9.u.Td.call(this,a):(a=(0,$.pa)(this.dda,this,a||this.b),this.b.listenOnce("chartdraw",a,!1,this))};$.g.Gg=function(){H9.u.Gg.call(this);this.b&&$.Ly(this).wa(this,"action",this.eda)}; +$.g.eda=function(a){a=a.target.dh;this.b.Fl=100;var b=this.b.getCurrentScene();switch(a.type){case "fitAll":b.fitAll();break;case "zoomIn":b.zoomIn();break;case "zoomOut":b.zoomOut()}};$.g.Dh=function(){H9.u.Dh.call(this)};$.g.R=function(){this.b=null;this.i.ld();this.i=null;this.K.ld();this.K=null;this.P.ld();this.P=null;H9.u.R.call(this)};var N9=H9.prototype;$.E("anychart.ui.zoom",function(){return new H9});N9.render=N9.Td;N9.decorate=N9.Bs;N9.target=N9.target;N9.dispose=N9.ld;}).call(this,$)} +$_=window.anychart;$_.$=$;$_._=_}); diff --git a/web/amCharts/bar/chart_0074_bar.html b/web/amCharts/bar/chart_0074_bar.html new file mode 100644 index 0000000000000000000000000000000000000000..022b23bd690f433f4b3ac4180c3f1a85b842b3b6 --- /dev/null +++ b/web/amCharts/bar/chart_0074_bar.html @@ -0,0 +1,108 @@ + + + + + + bar-2 + + + +
+ + + + diff --git a/web/amCharts/bar/chart_0075_bar.html b/web/amCharts/bar/chart_0075_bar.html new file mode 100644 index 0000000000000000000000000000000000000000..3fa33d4a26881b4caead0d345dad63a51720bda9 --- /dev/null +++ b/web/amCharts/bar/chart_0075_bar.html @@ -0,0 +1,109 @@ + + + + + + bar-3 + + + +
+ + + + diff --git a/web/amCharts/bar/chart_0076_bar.html b/web/amCharts/bar/chart_0076_bar.html new file mode 100644 index 0000000000000000000000000000000000000000..de565635aaf591801de6ac1cc68cc94dbb374c3b --- /dev/null +++ b/web/amCharts/bar/chart_0076_bar.html @@ -0,0 +1,87 @@ + + + + + + bar-4 + + + +
+ + + + diff --git a/web/amCharts/bar/chart_0077_bar.html b/web/amCharts/bar/chart_0077_bar.html new file mode 100644 index 0000000000000000000000000000000000000000..7e4b20dc9485d98561ba4f479fa78b74079458f0 --- /dev/null +++ b/web/amCharts/bar/chart_0077_bar.html @@ -0,0 +1,109 @@ + + + + + + bar-5 + + + +
+ + + + diff --git a/web/amCharts/bar/chart_0078_bar.html b/web/amCharts/bar/chart_0078_bar.html new file mode 100644 index 0000000000000000000000000000000000000000..3ede45651badfcc39d6193682eb7f18e401a7c11 --- /dev/null +++ b/web/amCharts/bar/chart_0078_bar.html @@ -0,0 +1,107 @@ + + + + + + bar-6 + + + +
+ + + + diff --git a/web/amCharts/bar/chart_0078_bar.inline01.js b/web/amCharts/bar/chart_0078_bar.inline01.js new file mode 100644 index 0000000000000000000000000000000000000000..193a3ea379022e219dfdcb693e91c289b4cf8ad2 --- /dev/null +++ b/web/amCharts/bar/chart_0078_bar.inline01.js @@ -0,0 +1,26683 @@ +(() => { +// node_modules/tslib/tslib.es6.mjs + function __awaiter(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Percent.js + var Percent = class _Percent { + /** + * Constructor. + * + * @param percent Percent value + */ + constructor(percent2) { + this._value = percent2; + } + /** + * Relative value. + * + * E.g. 100% is 1, 50% is 0.5, etc. + * + * This is useful to apply transformations to other values. E.g.: + * + * ```TypeScript + * let value = 256; + * let percent = new am5.p50; + * console.log(value * percent.value); // outputs 128 + * ``` + * ```JavaScript + * var value = 256; + * var percent = new am5.p50; + * console.log(value * percent.value); // outputs 128 + * ``` + * + * Alternatively, you can use `am5.percent()` helper function: + * + * ```TypeScript + * let value = 256; + * let percent = am5.p50; + * console.log(value * percent.value); // outputs 128 + * ``` + * ```JavaScript + * var value = 256; + * var percent = am5.p50; + * console.log(value * percent.value); // outputs 128 + * ``` + * + * @readonly + * @return Relative value + */ + get value() { + return this._value / 100; + } + /** + * Value in percent. + * + * @readonly + * @return Percent + */ + get percent() { + return this._value; + } + toString() { + return "" + this._value + "%"; + } + interpolate(min2, max2) { + return min2 + this.value * (max2 - min2); + } + static normalize(percent2, min2, max2) { + if (percent2 instanceof _Percent) { + return percent2; + } else { + if (min2 === max2) { + return new _Percent(0); + } else { + return new _Percent(Math.min(Math.max((percent2 - min2) * (1 / (max2 - min2)), 0), 1) * 100); + } + } + } + }; + function percent(value) { + return new Percent(value); + } + var p0 = percent(0); + var p100 = percent(100); + var p50 = percent(50); + function isPercent(value) { + return value instanceof Percent; + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Type.js + function isNaN2(value) { + return Number(value) !== value; + } + function getType(value) { + return {}.toString.call(value); + } + function toNumber(value) { + if (value != null && !isNumber(value)) { + let converted = Number(value); + if (isNaN2(converted) && isString(value) && value != "" && value.match(/[0-9]+/)) { + const newValue = value.replace(/[^0-9.\-]+/g, ""); + return value === newValue ? converted : toNumber(newValue); + } + return converted; + } + return value; + } + function toDate(value) { + if (isDate(value)) { + return new Date(value); + } else if (isNumber(value)) { + return new Date(value); + } else { + let num = Number(value); + if (!isNumber(num)) { + return new Date(value); + } else { + return new Date(num); + } + } + } + function numberToString(value) { + if (isNaN2(value)) { + return "NaN"; + } + if (value === Infinity) { + return "Infinity"; + } + if (value === -Infinity) { + return "-Infinity"; + } + if (value === 0 && 1 / value === -Infinity) { + return "-0"; + } + let negative = value < 0; + value = Math.abs(value); + let parsed = /^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec("" + value); + let digits = parsed[1]; + let decimals = parsed[2] || ""; + let res; + if (parsed[3] === void 0) { + res = decimals === "" ? digits : digits + "." + decimals; + } else { + let exponent = +parsed[3]; + if (value < 1) { + let zeros = exponent - 1; + res = "0." + repeat("0", zeros) + digits + decimals; + } else { + let zeros = exponent - decimals.length; + if (zeros === 0) { + res = digits + decimals; + } else if (zeros < 0) { + res = digits + decimals.slice(0, zeros) + "." + decimals.slice(zeros); + } else { + res = digits + decimals + repeat("0", zeros); + } + } + } + return negative ? "-" + res : res; + } + function repeat(string, amount) { + return new Array(amount + 1).join(string); + } + function isDate(value) { + return getType(value) === "[object Date]"; + } + function isString(value) { + return typeof value === "string"; + } + function isNumber(value) { + return typeof value === "number" && Number(value) == value; + } + function isObject(value) { + return typeof value === "object" && value !== null; + } + var PLACEHOLDER = "__\xA7\xA7\xA7__"; + var PLACEHOLDER2 = "__\xA7\xA7\xA7\xA7__"; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Array.js + function indexOf(array, value) { + const length = array.length; + for (let i = 0; i < length; ++i) { + if (array[i] === value) { + return i; + } + } + return -1; + } + function any(array, test) { + const length = array.length; + for (let i = 0; i < length; ++i) { + if (test(array[i])) { + return true; + } + } + return false; + } + function map(array, fn) { + const length = array.length; + const output = new Array(length); + for (let i = 0; i < length; ++i) { + output[i] = fn(array[i], i); + } + return output; + } + function each(array, fn) { + const length = array.length; + for (let i = 0; i < length; ++i) { + fn(array[i], i); + } + } + function eachReverse(array, fn) { + let i = array.length; + while (i > 0) { + --i; + fn(array[i], i); + } + } + function eachContinue(array, fn) { + const length = array.length; + for (let i = 0; i < length; ++i) { + if (!fn(array[i], i)) { + break; + } + } + } + function remove(array, element) { + let found = false; + let index = 0; + for (; ; ) { + index = array.indexOf(element, index); + if (index === -1) { + return found; + } else { + found = true; + array.splice(index, 1); + } + } + } + function removeFirst(array, element) { + let index = array.indexOf(element); + if (index !== -1) { + array.splice(index, 1); + return true; + } else { + return false; + } + } + function move(array, element, toIndex) { + let index = indexOf(array, element); + if (index !== -1) { + removeIndex(array, index); + } + if (toIndex == null) { + array.push(element); + } else { + insertIndex(array, toIndex, element); + } + } + function pushOne(array, element) { + if (array.indexOf(element) === -1) { + array.push(element); + } + } + function copy(array) { + const length = array.length; + const output = new Array(length); + for (let i = 0; i < length; ++i) { + output[i] = array[i]; + } + return output; + } + function insertIndex(array, index, value) { + array.splice(index, 0, value); + } + function removeIndex(array, index) { + array.splice(index, 1); + } + function findIndex(array, matches) { + const length = array.length; + for (let i = 0; i < length; ++i) { + if (matches(array[i], i)) { + return i; + } + } + return -1; + } + function findIndexReverse(array, matches) { + let i = array.length; + while (i > 0) { + --i; + if (matches(array[i], i)) { + return i; + } + } + return -1; + } + function find(array, matches) { + const index = findIndex(array, matches); + if (index !== -1) { + return array[index]; + } + } + function findReverse(array, matches) { + const index = findIndexReverse(array, matches); + if (index !== -1) { + return array[index]; + } + } + function getSortedIndex(array, ordering) { + let start = 0; + let end = array.length; + let found = false; + while (start < end) { + const pivot = start + end >> 1; + const order = ordering(array[pivot]); + if (order < 0) { + start = pivot + 1; + } else if (order === 0) { + found = true; + start = pivot + 1; + } else { + end = pivot; + } + } + return { + found, + index: found ? start - 1 : start + }; + } + function getFirstSortedIndex(array, ordering) { + let start = 0; + let end = array.length; + let found = false; + while (start < end) { + const pivot = start + end >> 1; + const order = ordering(array[pivot]); + if (order < 0) { + start = pivot + 1; + } else if (order === 0) { + found = true; + end = pivot; + } else { + end = pivot; + } + } + return { + found, + index: start + }; + } + function keepIf(array, keep) { + let i = array.length; + while (i > 0) { + --i; + if (!keep(array[i])) { + array.splice(i, 1); + } + } + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Object.js + function keys(object) { + return Object.keys(object); + } + function entries(object) { + return Object.entries(object); + } + function keysOrdered(object, order) { + return keys(object).sort(order); + } + function copy2(object) { + return Object.assign({}, object); + } + function each2(object, f) { + keys(object).forEach((key) => { + f(key, object[key]); + }); + } + function eachContinue2(object, fn) { + for (let key in object) { + if (hasKey(object, key)) { + if (!fn(key, object[key])) { + break; + } + } + } + } + function hasKey(object, key) { + return {}.hasOwnProperty.call(object, key); + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Disposer.js + var DisposerClass = class { + /** + * Constructor. + */ + constructor() { + this._disposed = false; + } + /** + * Checks if object is disposed. + * + * @return Disposed? + */ + isDisposed() { + return this._disposed; + } + /** + * Disposes the object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + this._dispose(); + } + } + }; + var Disposer = class { + /** + * Constructor. + * + * @param dispose Function that disposes object + */ + constructor(dispose) { + this._disposed = false; + this._dispose = dispose; + } + /** + * Checks if object is disposed. + * + * @return Disposed? + */ + isDisposed() { + return this._disposed; + } + /** + * Disposes the object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + this._dispose(); + } + } + }; + var ArrayDisposer = class extends DisposerClass { + constructor() { + super(...arguments); + this._disposers = []; + } + _dispose() { + each(this._disposers, (x) => { + x.dispose(); + }); + } + }; + var MultiDisposer = class extends DisposerClass { + constructor(disposers) { + super(); + this._disposers = disposers; + } + _dispose() { + each(this._disposers, (x) => { + x.dispose(); + }); + } + get disposers() { + return this._disposers; + } + }; + var CounterDisposer = class extends Disposer { + constructor() { + super(...arguments); + this._counter = 0; + } + /** + * [increment description] + * + * @todo Description + */ + increment() { + ++this._counter; + return new Disposer(() => { + --this._counter; + if (this._counter === 0) { + this.dispose(); + } + }); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Utils.js + function removeElement(el) { + if (el.parentNode) { + el.parentNode.removeChild(el); + } + } + function addEventListener(dom, type, listener, options) { + dom.addEventListener(type, listener, options || false); + return new Disposer(() => { + dom.removeEventListener(type, listener, options || false); + }); + } + function onZoom(listener) { + return addEventListener(window, "resize", (_ev) => { + listener(); + }); + } + function supports(cap) { + switch (cap) { + case "touchevents": + return window.hasOwnProperty("TouchEvent"); + case "pointerevents": + return window.hasOwnProperty("PointerEvent"); + case "mouseevents": + return window.hasOwnProperty("MouseEvent"); + case "wheelevents": + return window.hasOwnProperty("WheelEvent"); + case "keyboardevents": + return window.hasOwnProperty("KeyboardEvent"); + } + return false; + } + function getPointerId(event) { + let id = event.pointerId || 0; + return id; + } + function blur() { + if (document.activeElement && document.activeElement != document.body) { + if (document.activeElement.blur) { + document.activeElement.blur(); + } else { + let input = document.createElement("button"); + input.style.position = "fixed"; + input.style.top = "0px"; + input.style.left = "-10000px"; + document.body.appendChild(input); + input.focus(); + input.blur(); + document.body.removeChild(input); + } + } + } + function focus(el) { + if (el) { + el.focus(); + } + } + function getRendererEvent(key) { + if (supports("pointerevents")) { + return key; + } else if (supports("touchevents")) { + switch (key) { + case "pointerover": + return "touchstart"; + case "pointerout": + return "touchend"; + case "pointerleave": + return "touchend"; + case "pointerdown": + return "touchstart"; + case "pointermove": + return "touchmove"; + case "pointerup": + return "touchend"; + case "click": + return "click"; + case "dblclick": + return "dblclick"; + } + } else if (supports("mouseevents")) { + switch (key) { + case "pointerover": + return "mouseover"; + case "pointerout": + return "mouseout"; + case "pointerleave": + return "mouseleave"; + case "pointerdown": + return "mousedown"; + case "pointermove": + return "mousemove"; + case "pointerup": + return "mouseup"; + case "click": + return "click"; + case "dblclick": + return "dblclick"; + } + } + return key; + } + function isTouchEvent(ev) { + if (typeof Touch !== "undefined" && ev instanceof Touch) { + return true; + } else if (typeof PointerEvent !== "undefined" && ev instanceof PointerEvent && ev.pointerType != null) { + switch (ev.pointerType) { + case "touch": + case "pen": + case 2: + return true; + case "mouse": + case 4: + return false; + default: + return !(ev instanceof MouseEvent); + } + } else if (ev.type != null) { + if (ev.type.match(/^mouse/)) { + return false; + } + } + return true; + } + function setStyle(dom, property, value) { + dom.style[property] = value; + } + function getStyle(dom, property) { + return dom.style[property]; + } + function getEventTarget(event) { + if (event.composedPath) { + const path = event.composedPath(); + if (path.length === 0) { + return null; + } else { + return path[0]; + } + } else { + return event.target; + } + } + function contains(a, b) { + let cursor = b; + while (true) { + if (a === cursor) { + return true; + } else if (cursor.parentNode === null) { + if (cursor.host == null) { + return false; + } else { + cursor = cursor.host; + } + } else { + cursor = cursor.parentNode; + } + } + } + function isLocalEvent(event, target) { + return event.target && contains(target.root.dom, event.target); + } + function setInteractive(target, interactive) { + if (interactive) { + target.style.pointerEvents = "auto"; + } else { + target.style.pointerEvents = "none"; + } + } + function getEventKey(event) { + if (event.key !== void 0) { + return event.key; + } + switch (event.keyCode) { + case 9: + return "Tab"; + case 13: + return "Enter"; + case 16: + return "Shift"; + case 17: + return "Control"; + case 27: + return "Escape"; + case 32: + return " "; + case 37: + return "ArrowLeft"; + case 38: + return "ArrowUp"; + case 39: + return "ArrowRight"; + case 40: + return "ArrowDown"; + case 46: + return "Delete"; + } + return "" + event.keyCode; + } + function iOS() { + return /apple/i.test(navigator.vendor) && "ontouchend" in document; + } + function getSafeResolution() { + return iOS() ? 1 : void 0; + } + function relativeToValue(percent2, full) { + if (isNumber(percent2)) { + return percent2; + } else if (percent2 != null && isNumber(percent2.value) && isNumber(full)) { + return full * percent2.value; + } else { + return 0; + } + } + function decimalPlaces(number) { + let match = ("" + number).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/); + if (!match) { + return 0; + } + return Math.max(0, (match[1] ? match[1].length : 0) - (match[2] ? +match[2] : 0)); + } + function padString(value, len = 0, char = "0") { + if (typeof value !== "string") { + value = value.toString(); + } + return len > value.length ? Array(len - value.length + 1).join(char) + value : value; + } + function trimLeft(text) { + return text.replace(/^[\s]*/, ""); + } + function trimRight(text) { + return text.replace(/[\s]*$/, ""); + } + function trim(text) { + return trimLeft(trimRight(text)); + } + function truncateTextWithEllipsis(text, maxLength, breakWords = false, ellipsis = "...") { + if (text.length > maxLength) { + let lastNonAlphanumericIndex = maxLength - 1; + while (lastNonAlphanumericIndex >= 0 && text.charAt(lastNonAlphanumericIndex).match(/\w/)) { + lastNonAlphanumericIndex--; + } + if (lastNonAlphanumericIndex >= 0 && breakWords == false) { + return text.substring(0, lastNonAlphanumericIndex + 1) + "..."; + } else { + return text.substring(0, maxLength) + ellipsis; + } + } else { + return text; + } + } + function getFormat(format) { + if (typeof format === "undefined") { + return "string"; + } + format = format.toLowerCase().replace(/^\[[^\]]*\]/, ""); + format = format.replace(/\[[^\]]+\]/, ""); + format = format.trim(); + let hints = format.match(/\/(date|number|duration)$/); + if (hints) { + return hints[1]; + } + if (format === "number") { + return "number"; + } + if (format === "date") { + return "date"; + } + if (format === "duration") { + return "duration"; + } + if (format.match(/[#0]/)) { + return "number"; + } + if (format.match(/[ymwdhnsqaxkzgtei]/)) { + return "date"; + } + return "string"; + } + function cleanFormat(format) { + return format.replace(/\/(date|number|duration)$/i, ""); + } + function stripTags(text) { + return text ? text.replace(/<[^>]*>/g, "") : text; + } + function escapeForRgex(value) { + return value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); + } + function splitString(source) { + const rtlChar = /[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/; + const splitPattern = /([^اأدذرزو]*[اأدذرزو])/gi; + let segments = source.split(/(\s+)/); + let result = []; + segments.forEach((segment) => { + if (segment.match(/^\s+$/)) { + if (segment = " ") { + segment = " "; + } + result.push(segment); + } else if (rtlChar.test(segment)) { + let parts = segment.split(splitPattern).filter((part) => part !== ""); + result = result.concat(parts); + } else { + result = result.concat([...segment]); + } + }); + return result; + } + function getYearDay(date, utc = false) { + utc; + const start = new Date(date.getFullYear(), 0, 0); + const diff = date.getTime() - start.getTime() + (start.getTimezoneOffset() - date.getTimezoneOffset()) * 60 * 1e3; + const oneDay = 1e3 * 60 * 60 * 24; + return Math.floor(diff / oneDay); + } + function getWeek(date, _utc = false) { + const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())); + const day = d.getUTCDay() || 7; + d.setUTCDate(d.getUTCDate() + 4 - day); + const firstDay = new Date(Date.UTC(d.getUTCFullYear(), 0, 1)); + return Math.ceil(((d.getTime() - firstDay.getTime()) / 864e5 + 1) / 7); + } + function getWeekYear(date, _utc = false) { + const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())); + const day = d.getUTCDay() || 7; + d.setUTCDate(d.getUTCDate() + 4 - day); + const firstDay = new Date(Date.UTC(d.getUTCFullYear(), 0, 1)); + return firstDay.getFullYear(); + } + function getMonthWeek(date, utc = false) { + const firstWeek = getWeek(new Date(date.getFullYear(), date.getMonth(), 1), utc); + let currentWeek = getWeek(date, utc); + if (currentWeek == 1) { + currentWeek = 53; + } + return currentWeek - firstWeek + 1; + } + function getDayFromWeek(week, year, weekday = 1, utc = false) { + let date = new Date(year, 0, 4, 0, 0, 0, 0); + if (utc) { + date.setUTCFullYear(year); + } + let day = week * 7 + weekday - ((date.getDay() || 7) + 3); + return day; + } + function get12Hours(hours, base) { + if (hours > 12) { + hours -= 12; + } else if (hours === 0) { + hours = 12; + } + return base != null ? hours + (base - 1) : hours; + } + function getTimeZone(date, long = false, savings = false, utc = false, timezone) { + if (utc) { + return long ? "Coordinated Universal Time" : "UTC"; + } else if (timezone) { + const d1 = date.toLocaleString("en-US", { timeZone: timezone }); + const d2 = date.toLocaleString("en-US", { timeZone: timezone, timeZoneName: long ? "long" : "short" }); + return trim(d2.substr(d1.length)); + } + let wotz = date.toLocaleString("UTC"); + let wtz = date.toLocaleString("UTC", { timeZoneName: long ? "long" : "short" }).substr(wotz.length); + if (savings === false) { + wtz = wtz.replace(/ (standard|daylight|summer|winter) /i, " "); + } + return trim(wtz); + } + function getTimezoneOffset(timezone, targetDate) { + const date = targetDate || new Date(Date.UTC(2012, 0, 1, 0, 0, 0, 0)); + const utcDate = new Date(date.toLocaleString("en-US", { timeZone: "UTC" })); + const tzDate = new Date(date.toLocaleString("en-US", { timeZone: timezone })); + return (tzDate.getTime() - utcDate.getTime()) / 6e4 * -1; + } + function capitalizeFirst(text) { + return text.charAt(0).toUpperCase() + text.slice(1); + } + function hslToRgb(color2) { + let r, g, b; + let h = color2.h; + let s2 = color2.s; + let l = color2.l; + if (s2 == 0) { + r = g = b = l; + } else { + let hue2rgb = function hue2rgb2(p2, q2, t) { + if (t < 0) { + t += 1; + } + if (t > 1) { + t -= 1; + } + if (t < 1 / 6) { + return p2 + (q2 - p2) * 6 * t; + } + if (t < 1 / 2) { + return q2; + } + if (t < 2 / 3) { + return p2 + (q2 - p2) * (2 / 3 - t) * 6; + } + return p2; + }; + let q = l < 0.5 ? l * (1 + s2) : l + s2 - l * s2; + let p = 2 * l - q; + r = hue2rgb(p, q, h + 1 / 3); + g = hue2rgb(p, q, h); + b = hue2rgb(p, q, h - 1 / 3); + } + return { + r: Math.round(r * 255), + g: Math.round(g * 255), + b: Math.round(b * 255) + }; + } + function rgbToHsl(color2) { + let r = color2.r / 255; + let g = color2.g / 255; + let b = color2.b / 255; + let max2 = Math.max(r, g, b); + let min2 = Math.min(r, g, b); + let h = 0; + let s2 = 0; + let l = (max2 + min2) / 2; + if (max2 === min2) { + h = s2 = 0; + } else { + let d = max2 - min2; + s2 = l > 0.5 ? d / (2 - max2 - min2) : d / (max2 + min2); + switch (max2) { + case r: + h = (g - b) / d + (g < b ? 6 : 0); + break; + case g: + h = (b - r) / d + 2; + break; + case b: + h = (r - g) / d + 4; + break; + } + h /= 6; + } + return { + h, + s: s2, + l + }; + } + function lighten(rgb, percent2) { + if (rgb) { + return { + r: Math.max(0, Math.min(255, rgb.r + getLightnessStep(rgb.r, percent2))), + g: Math.max(0, Math.min(255, rgb.g + getLightnessStep(rgb.g, percent2))), + b: Math.max(0, Math.min(255, rgb.b + getLightnessStep(rgb.b, percent2))), + a: rgb.a + }; + } else { + return rgb; + } + } + function getLightnessStep(value, percent2) { + let base = percent2 > 0 ? 255 - value : value; + return Math.round(base * percent2); + } + function brighten(rgb, percent2) { + if (rgb) { + let base = Math.min(Math.max(rgb.r, rgb.g, rgb.b), 230); + let step = getLightnessStep(base, percent2); + return { + r: Math.max(0, Math.min(255, Math.round(rgb.r + step))), + g: Math.max(0, Math.min(255, Math.round(rgb.g + step))), + b: Math.max(0, Math.min(255, Math.round(rgb.b + step))), + a: rgb.a + }; + } else { + return rgb; + } + } + function isLight(color2) { + return (color2.r * 299 + color2.g * 587 + color2.b * 114) / 1e3 >= 128; + } + function saturate(rgb, saturation) { + if (rgb === void 0 || saturation == 1) { + return rgb; + } + let hsl = rgbToHsl(rgb); + hsl.s = saturation; + return hslToRgb(hsl); + } + function alternativeColor(color2, lightAlternative = { r: 255, g: 255, b: 255 }, darkAlternative = { r: 255, g: 255, b: 255 }) { + let light = lightAlternative; + let dark = darkAlternative; + if (isLight(darkAlternative)) { + light = darkAlternative; + dark = lightAlternative; + } + return isLight(color2) ? dark : light; + } + function mergeTags(tags1, tags2) { + if (!tags1) { + tags1 = []; + } + return [...tags1, ...tags2].filter((value, index, self) => { + return self.indexOf(value) === index; + }); + } + function sameBounds(a, b) { + if (!b) { + return false; + } + if (a.left != b.left) { + return false; + } + if (a.right != b.right) { + return false; + } + if (a.top != b.top) { + return false; + } + if (a.bottom != b.bottom) { + return false; + } + return true; + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Color.js + function string2hex(string) { + if (string[0] === "#") { + string = string.substr(1); + } + if (string.length == 3) { + string = string[0].repeat(2) + string[1].repeat(2) + string[2].repeat(2); + } + return parseInt(string, 16); + } + function rgba2hex(color2) { + color2 = color2.replace(/[ ]/g, ""); + let matches = color2.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i); + if (matches) { + matches.push("1"); + } else { + matches = color2.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i); + if (!matches) { + return 0; + } + } + let hex = ""; + for (let i = 1; i <= 3; i++) { + let val = parseInt(matches[i]).toString(16); + if (val.length == 1) { + val = "0" + val; + } + hex += val; + } + return string2hex(hex); + } + function color(input) { + return Color.fromAny(input); + } + var Color = class _Color { + constructor(hex) { + this._hex = hex | 0; + } + /** + * Color numeric value. + */ + get hex() { + return this._hex; + } + /** + * Value of color's R channel. + * @return R value + */ + get r() { + return this._hex >>> 16; + } + /** + * Value of color's G channel. + * @return G value + */ + get g() { + return this._hex >> 8 & 255; + } + /** + * Value of color's B channel. + * @return B value + */ + get b() { + return this._hex & 255; + } + /** + * Returns color CSS representation in form of `rgba(r, g, b, a)` string. + * + * @param alpha Opacity + * @return CSS string + */ + toCSS(alpha = 1) { + return "rgba(" + this.r + ", " + this.g + ", " + this.b + ", " + alpha + ")"; + } + /** + * Returns color CSS representation in form of `#rgb` string. + * + * @return CSS string + */ + toCSSHex() { + return "#" + padString(this.r.toString(16), 2) + padString(this.g.toString(16), 2) + padString(this.b.toString(16), 2); + } + /** + * Returns color's HSL info. + * @param alpha Opacity + * @return HSL info + */ + toHSL(alpha = 1) { + return rgbToHsl({ + r: this.r, + g: this.g, + b: this.b, + a: alpha + }); + } + /** + * Converts HSL values into a new [[Color]] object. + * + * @param h H value + * @param s S value + * @param l L value + * @return Color object + */ + static fromHSL(h, s2, l) { + const rgb = hslToRgb({ + h, + s: s2, + l + }); + return this.fromRGB(rgb.r, rgb.g, rgb.b); + } + toString() { + return this.toCSSHex(); + } + /** + * Converts hex number into a new [[Color]] object. + * + * ```TypeScript + * Color.fromHex(0xff0000) // red + * ``` + * ```JavaScript + * Color.fromHex(0xff0000) // red + * ``` + * + * @param hex Hex color + * @return Color + */ + static fromHex(hex) { + return new _Color(hex); + } + /** + * Converts RGB values to a new [[Color]] object. + * + * @param r R value + * @param g G value + * @param b B value + * @return Color + */ + static fromRGB(r, g, b) { + return new _Color((b | 0) + (g << 8) + (r << 16)); + } + /** + * Converts RGB string to a new [[Color]] object. + * + * ```TypeScript + * Color.fromString("#ff0000") // red + * ``` + * ```JavaScript + * Color.fromString("#ff0000") // red + * ``` + * + * @param s RGB string + * @return Color + */ + static fromString(s2) { + return new _Color(string2hex(s2)); + } + /** + * Converts CSS rgba() syntax to a new [[Color]] object. + * + * ```TypeScript + * Color.fromCSS("rgba(255, 0, 0, 1)") // red + * ``` + * ```JavaScript + * Color.fromCSS("rgba(255, 0, 0, 1)") // red + * ``` + * + * @param {string} s [description] + * @return {Color} [description] + */ + static fromCSS(s2) { + return new _Color(rgba2hex(s2)); + } + /** + * Convert to color from virtually anything. + * + * Will throw an exception if unable to resolve the color. + * + * @param s Source + * @return Color + */ + static fromAny(s2) { + if (isString(s2)) { + if (s2[0] == "#") { + return _Color.fromString(s2); + } else if (s2.substr(0, 3) == "rgb") { + return _Color.fromCSS(s2); + } + } else if (isNumber(s2)) { + return _Color.fromHex(s2); + } else if (s2 instanceof _Color) { + return _Color.fromHex(s2.hex); + } + throw new Error("Unknown color syntax: " + s2); + } + /** + * Returns a new [[Color]] object based on either `lightAlternative` or + * `darkAlternative` depending on which one is more contrasting with + * the `color`. + * + * @param color Reference color + * @param lightAlternative Light color + * @param darkAlternative Dark color + * @return Alternative color + */ + static alternative(color2, lightAlternative, darkAlternative) { + const rgb = alternativeColor({ r: color2.r, g: color2.g, b: color2.b }, lightAlternative ? { r: lightAlternative.r, g: lightAlternative.g, b: lightAlternative.b } : void 0, darkAlternative ? { r: darkAlternative.r, g: darkAlternative.g, b: darkAlternative.b } : void 0); + return this.fromRGB(rgb.r, rgb.g, rgb.b); + } + /** + * Returns an intermediate Color between two reference colors depending on + * the progress (`diff`) between the two. + * + * @param diff Progress + * @param from Source color + * @param to Target color + * @param mode Interpolation mode + * @return Color + */ + static interpolate(diff, from, to, mode = "rgb") { + if (mode == "hsl") { + const fromHSL = from.toHSL(); + const toHSL = to.toHSL(); + return _Color.fromHSL(range(diff, fromHSL.h, toHSL.h), range(diff, fromHSL.s, toHSL.s), range(diff, fromHSL.l, toHSL.l)); + } else { + return _Color.fromRGB(range(diff, from.r, to.r), range(diff, from.g, to.g), range(diff, from.b, to.b)); + } + } + /** + * Returns a new [[Color]] lightened by `percent` value. + * + * Use negative value to darken the color. + * + * @param color Source color + * @param percent Percent + * @return New color + */ + static lighten(color2, percent2) { + const rgb = lighten({ r: color2.r, g: color2.g, b: color2.b }, percent2); + return _Color.fromRGB(rgb.r, rgb.g, rgb.b); + } + /** + * Returns a new [[Color]] brightened by `percent` value. + * + * Use negative value to dim the color. + * + * @param color Source color + * @param percent Percent + * @return New color + */ + static brighten(color2, percent2) { + const rgb = brighten({ r: color2.r, g: color2.g, b: color2.b }, percent2); + return _Color.fromRGB(rgb.r, rgb.g, rgb.b); + } + /** + * Returns a new [[Color]] saturated by `percent` value. + * + * Value range is between `0` (fully desaturated), to `1` (full color). + * + * @param color Source color + * @param percent Percent + * @return New color + */ + static saturate(color2, percent2) { + const rgb = saturate({ r: color2.r, g: color2.g, b: color2.b }, percent2); + return _Color.fromRGB(rgb.r, rgb.g, rgb.b); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/EventDispatcher.js + var EventDispatcher = class { + /** + * Constructor + */ + constructor() { + this._listeners = []; + this._killed = []; + this._disabled = {}; + this._iterating = 0; + this._enabled = true; + this._disposed = false; + } + /** + * Returns if this object has been already disposed. + * + * @return Disposed? + */ + isDisposed() { + return this._disposed; + } + /** + * Dispose (destroy) this object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + const a = this._listeners; + this._iterating = 1; + this._listeners = null; + this._disabled = null; + try { + each(a, (x) => { + x.disposer.dispose(); + }); + } finally { + this._killed = null; + this._iterating = null; + } + } + } + /** + * Checks if this particular event dispatcher has any listeners set. + * + * @return Has listeners? + */ + hasListeners() { + return this._listeners.length !== 0; + } + /** + * Checks if this particular event dispatcher has any particular listeners set. + * + * @return Has particular event listeners? + */ + hasListenersByType(type) { + return any(this._listeners, (x) => (x.type === null || x.type === type) && !x.killed); + } + /** + * Enable dispatching of events if they were previously disabled by + * `disable()`. + */ + enable() { + this._enabled = true; + } + /** + * Disable dispatching of events until re-enabled by `enable()`. + */ + disable() { + this._enabled = false; + } + /** + * Enable dispatching particular event, if it was disabled before by + * `disableType()`. + * + * @param type Event type + */ + enableType(type) { + delete this._disabled[type]; + } + /** + * Disable dispatching of events for a certain event type. + * + * Optionally, can set how many dispatches to skip before automatically + * re-enabling the dispatching. + * + * @param type Event type + * @param amount Number of event dispatches to skip + */ + disableType(type, amount = Infinity) { + this._disabled[type] = amount; + } + /** + * Removes listener from dispatcher. + * + * Will throw an exception if such listener does not exists. + * + * @param listener Listener to remove + */ + _removeListener(listener) { + if (this._iterating === 0) { + const index = this._listeners.indexOf(listener); + if (index === -1) { + throw new Error("Invalid state: could not remove listener"); + } + this._listeners.splice(index, 1); + } else { + this._killed.push(listener); + } + } + /** + * Removes existing listener by certain parameters. + * + * @param once Listener's once setting + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + */ + _removeExistingListener(once, type, callback, context) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + this._eachListener((info) => { + if (info.once === once && // TODO is this correct ? + info.type === type && (callback === void 0 || info.callback === callback) && info.context === context) { + info.disposer.dispose(); + } + }); + } + /** + * Checks if dispatching for particular event type is enabled. + * + * @param type Event type + * @return Enabled? + */ + isEnabled(type) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + return this._enabled && this._listeners.length > 0 && this.hasListenersByType(type) && this._disabled[type] === void 0; + } + /** + * Removes all listeners of a particular event type + * + * @param type Listener's type + */ + removeType(type) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + this._eachListener((info) => { + if (info.type === type) { + info.disposer.dispose(); + } + }); + } + /** + * Checks if there's already a listener with specific parameters. + * + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + * @return Has listener? + */ + has(type, callback, context) { + const index = findIndex(this._listeners, (info) => { + return info.once !== true && // Ignoring "once" listeners + info.type === type && (callback === void 0 || info.callback === callback) && info.context === context; + }); + return index !== -1; + } + /** + * Checks whether event of the particular type should be dispatched. + * + * @param type Event type + * @return Dispatch? + */ + _shouldDispatch(type) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + const count = this._disabled[type]; + if (!isNumber(count)) { + return this._enabled; + } else { + if (count <= 1) { + delete this._disabled[type]; + } else { + --this._disabled[type]; + } + return false; + } + } + /** + * [_eachListener description] + * + * All of this extra code is needed when a listener is removed while iterating + * + * @todo Description + * @param fn [description] + */ + _eachListener(fn) { + ++this._iterating; + try { + each(this._listeners, fn); + } finally { + --this._iterating; + if (this._iterating === 0 && this._killed.length !== 0) { + each(this._killed, (killed) => { + this._removeListener(killed); + }); + this._killed.length = 0; + } + } + } + /** + * Dispatches an event immediately without waiting for next cycle. + * + * @param type Event type + * @param event Event object + * @todo automatically add in type and target properties if they are missing + */ + dispatch(type, event) { + if (this._shouldDispatch(type)) { + this._eachListener((listener) => { + if (!listener.killed && (listener.type === null || listener.type === type)) { + if (listener._debounceDelay) { + if (listener._debounceTimeout) { + window.clearTimeout(listener._debounceTimeout); + } + listener._debounceTimeout = window.setTimeout(() => { + listener._debounceTimeout = void 0; + if (!listener.killed) { + listener.dispatch(type, event); + } + }, listener._debounceDelay); + } else { + listener.dispatch(type, event); + } + } + }); + } + } + /** + * Shelves the event to be dispatched within next update cycle. + * + * @param type Event type + * @param event Event object + * @todo automatically add in type and target properties if they are missing + */ + /*public dispatchLater(type: Key, event: T[Key]): void { + if (this._shouldDispatch(type)) { + this._eachListener((listener) => { + // TODO check if it's faster to use an object of listeners rather than a single big array + if (!listener.killed && (listener.type === null || listener.type === type)) { + // TODO if the function throws, maybe it should keep going ? + // TODO dispatch during the update cycle, rather than using whenIdle + $async.whenIdle(() => { + if (!listener.killed) { + listener.dispatch(type, event); + } + }); + } + }); + } + }*/ + /** + * Creates, catalogs and returns an [[EventListener]]. + * + * Event listener can be disposed. + * + * @param once Listener's once setting + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @param dispatch + * @returns An event listener + */ + _on(once, type, callback, context, shouldClone, dispatch, debounceDelay) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + this._removeExistingListener(once, type, callback, context); + const info = { + type, + callback, + context, + shouldClone, + dispatch, + killed: false, + once, + disposer: new Disposer(() => { + info.killed = true; + if (info._debounceTimeout) { + window.clearTimeout(info._debounceTimeout); + } + this._removeListener(info); + }), + _debounceDelay: debounceDelay + }; + this._listeners.push(info); + return info; + } + /** + * Creates an event listener to be invoked on **any** event. + * + * @param callback Callback function + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @returns A disposable event listener + */ + onAll(callback, context, shouldClone = true) { + return this._on(false, null, callback, context, shouldClone, (_type, event) => callback.call(context, event)).disposer; + } + /** + * Creates an event listener to be invoked on a specific event type. + * + * ```TypeScript + * button.events.once("click", (ev) => { + * console.log("Button clicked"); + * }, this); + * ``` + * ```JavaScript + * button.events.once("click", function(ev) { + * console.log("Button clicked"); + * }, this); + * ``` + * + * The above will invoke our custom event handler whenever series we put + * event on is hidden. + * + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @returns A disposable event listener + */ + on(type, callback, context, shouldClone = true) { + return this._on(false, type, callback, context, shouldClone, (_type, event) => callback.call(context, event)).disposer; + } + /** + * Creates a debounced event listener to be invoked on a specific event type. + * + * ```TypeScript + * button.events.onDebounced("click", (ev) => { + * console.log("Button clicked"); + * }, 500, this); + * ``` + * ```JavaScript + * button.events.onDebounced("click", function(ev) { + * console.log("Button clicked"); + * }, 500, this); + * ``` + * + * The above will invoke our custom event handler whenever series we put + * event on is hidden. + * + * @param type Listener's type + * @param callback Callback function + * @param debounceDelay Debounce delay in milliseconds + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @returns A disposable event listener + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Debounced_events} for more info + * @since 5.14.0 + */ + onDebounced(type, callback, debounceDelay, context, shouldClone = true) { + return this._on(false, type, callback, context, shouldClone, (_type, event) => callback.call(context, event), debounceDelay).disposer; + } + /** + * Creates an event listener to be invoked on a specific event type once. + * + * Once the event listener is invoked, it is automatically disposed. + * + * ```TypeScript + * button.events.once("click", (ev) => { + * console.log("Button clicked"); + * }, this); + * ``` + * ```JavaScript + * button.events.once("click", function(ev) { + * console.log("Button clicked"); + * }, this); + * ``` + * + * The above will invoke our custom event handler the first time series we + * put event on is hidden. + * + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @returns A disposable event listener + */ + once(type, callback, context, shouldClone = true) { + const x = this._on(true, type, callback, context, shouldClone, (_type, event) => { + x.disposer.dispose(); + callback.call(context, event); + }); + return x.disposer; + } + /** + * Removes the event listener with specific parameters. + * + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + */ + off(type, callback, context) { + this._removeExistingListener(false, type, callback, context); + } + /** + * Copies all dispatcher parameters, including listeners, from another event + * dispatcher. + * + * @param source Source event dispatcher + * @ignore + */ + copyFrom(source) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + if (source === this) { + throw new Error("Cannot copyFrom the same TargetedEventDispatcher"); + } + const disposers = []; + each(source._listeners, (x) => { + if (!x.killed && x.shouldClone) { + if (x.type === null) { + disposers.push(this.onAll(x.callback, x.context)); + } else if (x.once) { + disposers.push(this.once(x.type, x.callback, x.context)); + } else { + disposers.push(this.on(x.type, x.callback, x.context)); + } + } + }); + return new MultiDisposer(disposers); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Animation.js + function waitForAnimations(animations) { + return __awaiter(this, void 0, void 0, function* () { + if (animations !== void 0) { + const promises = []; + each2(animations, (_, animation) => { + promises.push(animation.waitForStop()); + }); + yield Promise.all(promises); + } + }); + } + function range(diff, from, to) { + return from + diff * (to - from); + } + function defaultInterpolate(diff, from, to) { + if (diff >= 1) { + return to; + } else { + return from; + } + } + function percentInterpolate(diff, from, to) { + return new Percent(range(diff, from.percent, to.percent)); + } + function colorInterpolate(diff, from, to) { + return Color.interpolate(diff, from, to); + } + function getInterpolate(from, to) { + if (typeof from === "number" && typeof to === "number") { + return range; + } + if (from instanceof Percent && to instanceof Percent) { + return percentInterpolate; + } + if (from instanceof Color && to instanceof Color) { + return colorInterpolate; + } + return defaultInterpolate; + } + var AnimationState; + (function(AnimationState2) { + AnimationState2[AnimationState2["Stopped"] = 0] = "Stopped"; + AnimationState2[AnimationState2["Playing"] = 1] = "Playing"; + AnimationState2[AnimationState2["Paused"] = 2] = "Paused"; + })(AnimationState || (AnimationState = {})); + + // node_modules/@amcharts/amcharts5/.internal/core/util/List.js + function checkBounds(index, len) { + if (!(index >= 0 && index < len)) { + throw new Error("Index out of bounds: " + index); + } + } + var List = class { + /** + * Constructor + * + * @param initial Inital list of values to add to list + */ + constructor(initial = []) { + this.events = new EventDispatcher(); + this._values = initial; + } + /** + * An array of values in the list. + * + * Do not use this property to add values. Rather use dedicated methods, like + * `push()`, `removeIndex()`, etc. + * + * @readonly + * @return List values + */ + get values() { + return this._values; + } + /** + * Checks if list contains specific item reference. + * + * @param item Item to search for + * @return `true` if found, `false` if not found + */ + contains(value) { + return this._values.indexOf(value) !== -1; + } + /** + * Removes specific item from the list. + * + * @param item An item to remove + */ + removeValue(value) { + let i = 0; + let length = this._values.length; + while (i < length) { + if (this._values[i] === value) { + this.removeIndex(i); + --length; + } else { + ++i; + } + } + } + /** + * Searches the list for specific item and returns its index. + * + * @param item An item to search for + * @return Index or -1 if not found + */ + indexOf(value) { + return indexOf(this._values, value); + } + /** + * Number of items in list. + * + * @readonly + * @return Number of items + */ + get length() { + return this._values.length; + } + /** + * Checks if there's a value at specific index. + * + * @param index Index + * @return Value exists? + */ + hasIndex(index) { + return index >= 0 && index < this._values.length; + } + /** + * Returns an item at specified index. + * + * @param index Index + * @return List item + */ + getIndex(index) { + return this._values[index]; + } + _onPush(newValue) { + if (this.events.isEnabled("push")) { + this.events.dispatch("push", { + type: "push", + target: this, + newValue + }); + } + } + _onInsertIndex(index, newValue) { + if (this.events.isEnabled("insertIndex")) { + this.events.dispatch("insertIndex", { + type: "insertIndex", + target: this, + index, + newValue + }); + } + } + _onSetIndex(index, oldValue, newValue) { + if (this.events.isEnabled("setIndex")) { + this.events.dispatch("setIndex", { + type: "setIndex", + target: this, + index, + oldValue, + newValue + }); + } + } + _onSwap(a, b) { + if (this.events.isEnabled("swap")) { + this.events.dispatch("swap", { + type: "swap", + target: this, + a, + b + }); + } + } + _onRemoveIndex(index, oldValue) { + if (this.events.isEnabled("removeIndex")) { + this.events.dispatch("removeIndex", { + type: "removeIndex", + target: this, + index, + oldValue + }); + } + } + _onMoveIndex(oldIndex, newIndex, value) { + if (this.events.isEnabled("moveIndex")) { + this.events.dispatch("moveIndex", { + type: "moveIndex", + target: this, + oldIndex, + newIndex, + value + }); + } + } + _onClear(oldValues) { + if (this.events.isEnabled("clear")) { + this.events.dispatch("clear", { + type: "clear", + target: this, + oldValues + }); + } + } + /** + * Sets value at specific index. + * + * If there's already a value at the index, it is overwritten. + * + * @param index Index + * @param value New value + * @return New value + */ + setIndex(index, value) { + checkBounds(index, this._values.length); + const oldValue = this._values[index]; + if (oldValue !== value) { + this._values[index] = value; + this._onSetIndex(index, oldValue, value); + } + return oldValue; + } + /** + * Adds an item to the list at a specific index, which pushes all the other + * items further down the list. + * + * @param index Index + * @param item An item to add + */ + insertIndex(index, value) { + checkBounds(index, this._values.length + 1); + insertIndex(this._values, index, value); + this._onInsertIndex(index, value); + return value; + } + /** + * Swaps indexes of two items in the list. + * + * @param a Item 1 + * @param b Item 2 + */ + swap(a, b) { + const len = this._values.length; + checkBounds(a, len); + checkBounds(b, len); + if (a !== b) { + const value_a = this._values[a]; + const value_b = this._values[b]; + this._values[a] = value_b; + this._values[b] = value_a; + this._onSwap(value_a, value_b); + } + } + /** + * Removes a value at specific index. + * + * @param index Index of value to remove + * @return Removed value + */ + removeIndex(index) { + checkBounds(index, this._values.length); + const oldValue = this._values[index]; + removeIndex(this._values, index); + this._onRemoveIndex(index, oldValue); + return oldValue; + } + /** + * Moves an item to a specific index within the list. + * + * If the index is not specified it will move the item to the end of the + * list. + * + * @param value Item to move + * @param index Index to place item at + */ + moveValue(value, toIndex) { + let index = this.indexOf(value); + if (index !== -1) { + removeIndex(this._values, index); + if (toIndex == null) { + const toIndex2 = this._values.length; + this._values.push(value); + this._onMoveIndex(index, toIndex2, value); + } else { + insertIndex(this._values, toIndex, value); + this._onMoveIndex(index, toIndex, value); + } + } else if (toIndex == null) { + this._values.push(value); + this._onPush(value); + } else { + insertIndex(this._values, toIndex, value); + this._onInsertIndex(toIndex, value); + } + return value; + } + /** + * Adds an item to the end of the list. + * + * @param item An item to add + */ + push(value) { + this._values.push(value); + this._onPush(value); + return value; + } + /** + * Adds an item as a first item in the list. + * + * @param item An item to add + */ + unshift(value) { + this.insertIndex(0, value); + return value; + } + /** + * Adds multiple items to the list. + * + * @param items An Array of items to add + */ + pushAll(values) { + each(values, (value) => { + this.push(value); + }); + } + /** + * Copies and adds items from abother list. + * + * @param source A list top copy items from + */ + copyFrom(source) { + this.pushAll(source._values); + } + /** + * Returns the last item from the list, and removes it. + * + * @return Item + */ + pop() { + let index = this._values.length - 1; + return index < 0 ? void 0 : this.removeIndex(this._values.length - 1); + } + /** + * Returns the first item from the list, and removes it. + * + * @return Item + */ + shift() { + return this._values.length ? this.removeIndex(0) : void 0; + } + /** + * Sets multiple items to the list. + * + * All current items are removed. + * + * @param newArray New items + */ + setAll(newArray) { + const old = this._values; + this._values = []; + this._onClear(old); + each(newArray, (value) => { + this._values.push(value); + this._onPush(value); + }); + } + /** + * Removes all items from the list. + */ + clear() { + this.setAll([]); + } + /** + * Returns an ES6 iterator for the list. + */ + *[Symbol.iterator]() { + const length = this._values.length; + for (let i = 0; i < length; ++i) { + yield this._values[i]; + } + } + /** + * Calls `f` for each element in the list. + * + * `f` should have at least one parameter defined which will get a current + * item, with optional second argument - index. + */ + each(f) { + each(this._values, f); + } + /** + * Calls `f` for each element in the list, from right to left. + * + * `f` should have at least one parameter defined which will get a current + * item, with optional second argument - index. + */ + eachReverse(f) { + eachReverse(this._values, f); + } + }; + var ListAutoDispose = class extends List { + constructor() { + super(...arguments); + this.autoDispose = true; + this._disposed = false; + } + /** + * Swaps indexes of two items in the list. + * + * @param a Item 1 + * @param b Item 2 + */ + swap(a, b) { + const currentAutoDispose = this.autoDispose; + this.autoDispose = false; + super.swap(a, b); + this.autoDispose = currentAutoDispose; + } + _onSetIndex(index, oldValue, newValue) { + if (this.autoDispose) { + oldValue.dispose(); + } + super._onSetIndex(index, oldValue, newValue); + } + _onRemoveIndex(index, oldValue) { + if (this.autoDispose) { + oldValue.dispose(); + } + super._onRemoveIndex(index, oldValue); + } + _onClear(oldValues) { + if (this.autoDispose) { + each(oldValues, (x) => { + x.dispose(); + }); + } + super._onClear(oldValues); + } + _dispose() { + if (this.autoDispose) { + each(this._values, (x) => { + x.dispose(); + }); + } + } + isDisposed() { + return this._disposed; + } + dispose() { + if (!this._disposed) { + this._disposed = true; + this._dispose(); + } + } + }; + var ListTemplate = class extends ListAutoDispose { + constructor(template, make) { + super(); + this.template = template; + this.make = make; + } + _dispose() { + super._dispose(); + if (this.autoDispose) { + this.template.dispose(); + } + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Children.js + var Children = class extends List { + constructor(container) { + super(); + this._disposed = false; + this._container = container; + this._events = this.events.onAll((change) => { + if (change.type === "clear") { + each(change.oldValues, (x) => { + this._onRemoved(x); + }); + } else if (change.type === "push") { + this._onInserted(change.newValue); + } else if (change.type === "setIndex") { + this._onRemoved(change.oldValue); + this._onInserted(change.newValue, change.index); + } else if (change.type === "insertIndex") { + this._onInserted(change.newValue, change.index); + } else if (change.type === "removeIndex") { + this._onRemoved(change.oldValue); + } else if (change.type === "moveIndex") { + this._onRemoved(change.value); + this._onInserted(change.value, change.newIndex); + } else { + throw new Error("Unknown IListEvent type"); + } + }); + } + _onInserted(child, index) { + child._setParent(this._container, true); + const childrenDisplay = this._container._childrenDisplay; + if (index === void 0) { + childrenDisplay.addChild(child._display); + } else { + childrenDisplay.addChildAt(child._display, index); + } + } + _onRemoved(child) { + this._container._childrenDisplay.removeChild(child._display); + this._container.markDirtyBounds(); + this._container.markDirty(); + } + /** + * Returns `true` if obejct is disposed. + */ + isDisposed() { + return this._disposed; + } + /** + * Permanently dispose this object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + this._events.dispose(); + each(this.values, (child) => { + child.dispose(); + }); + } + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Math.js + var PI = Math.PI; + var HALFPI = PI / 2; + var RADIANS = PI / 180; + var DEGREES = 180 / PI; + function round(value, precision, floor) { + if (!isNumber(precision) || precision <= 0) { + let rounded = Math.round(value); + if (floor) { + if (rounded - value == 0.5) { + rounded--; + } + } + return rounded; + } else { + let d = Math.pow(10, precision); + return Math.round(value * d) / d; + } + } + function ceil(value, precision) { + if (!isNumber(precision) || precision <= 0) { + return Math.ceil(value); + } else { + let d = Math.pow(10, precision); + return Math.ceil(value * d) / d; + } + } + function fitToRange(value, min2, max2) { + return Math.min(Math.max(value, min2), max2); + } + function sin(angle) { + return Math.sin(RADIANS * angle); + } + function cos(angle) { + return Math.cos(RADIANS * angle); + } + function normalizeAngle(value) { + value = value % 360; + if (value < 0) { + value += 360; + } + return value; + } + function getArcBounds(cx, cy, startAngle, endAngle, radius) { + let minX = Number.MAX_VALUE; + let minY = Number.MAX_VALUE; + let maxX = -Number.MAX_VALUE; + let maxY = -Number.MAX_VALUE; + let bpoints = []; + bpoints.push(getArcPoint(radius, startAngle)); + bpoints.push(getArcPoint(radius, endAngle)); + let fromAngle = Math.min(Math.floor(startAngle / 90) * 90, Math.floor(endAngle / 90) * 90); + let toAngle = Math.max(Math.ceil(startAngle / 90) * 90, Math.ceil(endAngle / 90) * 90); + for (let angle = fromAngle; angle <= toAngle; angle += 90) { + if (angle >= startAngle && angle <= endAngle) { + bpoints.push(getArcPoint(radius, angle)); + } + } + for (let i = 0; i < bpoints.length; i++) { + let pt = bpoints[i]; + if (pt.x < minX) { + minX = pt.x; + } + if (pt.y < minY) { + minY = pt.y; + } + if (pt.x > maxX) { + maxX = pt.x; + } + if (pt.y > maxY) { + maxY = pt.y; + } + } + return { left: cx + minX, top: cy + minY, right: cx + maxX, bottom: cy + maxY }; + } + function getArcPoint(radius, arc) { + return { x: radius * cos(arc), y: radius * sin(arc) }; + } + function inBounds(point, bounds) { + if (point.x >= bounds.left && point.y >= bounds.top && point.x <= bounds.right && point.y <= bounds.bottom) { + return true; + } + return false; + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Ease.js + function linear(t) { + return t; + } + function cubic(t) { + return t * t * t; + } + function out(ease) { + return function(t) { + return 1 - ease(1 - t); + }; + } + var b1 = 4 / 11; + var b2 = 6 / 11; + var b3 = 8 / 11; + var b4 = 3 / 4; + var b5 = 9 / 11; + var b6 = 10 / 11; + var b7 = 15 / 16; + var b8 = 21 / 22; + var b9 = 63 / 64; + var b0 = 1 / b1 / b1; + var tau = 2 * Math.PI; + var amplitude = 1; + var period = 0.3 / tau; + var s = Math.asin(1 / amplitude) * period; + + // node_modules/@amcharts/amcharts5/.internal/core/util/States.js + var State = class { + constructor(entity, settings) { + this._userSettings = {}; + this._entity = entity; + this._settings = settings; + each2(settings, (key) => { + this._userSettings[key] = true; + }); + } + get(key, fallback) { + const value = this._settings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + /** + * @ignore + */ + setRaw(key, value) { + this._settings[key] = value; + } + /** + * Sets a setting `value` for the specified `key` to be set when the state + * is applied. + * + * @param key Setting key + * @param value Setting value + * @return Setting value + */ + set(key, value) { + this._userSettings[key] = true; + this.setRaw(key, value); + } + /** + * Removes a setting value for the specified `key`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + */ + remove(key) { + delete this._userSettings[key]; + delete this._settings[key]; + } + /** + * Sets multiple settings at once. + * + * `settings` must be an object with key: value pairs. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param settings Settings + */ + setAll(settings) { + entries(settings).forEach(([key, value]) => { + this.set(key, value); + }); + } + _eachSetting(f) { + each2(this._settings, f); + } + /** + * Applies the state to the target element. + * + * All setting values are set immediately. + */ + apply() { + const seen = {}; + seen["stateAnimationEasing"] = true; + seen["stateAnimationDuration"] = true; + const defaultState = this._entity.states.lookup("default"); + this._eachSetting((key, value) => { + if (!seen[key]) { + seen[key] = true; + if (this !== defaultState) { + if (!(key in defaultState._settings)) { + defaultState._settings[key] = this._entity.get(key); + } + } + this._entity.set(key, value); + } + }); + } + /** + * Applies the state to the target element. + * + * Returns an object representing all [[Animation]] objects created for + * each setting key transition. + * + * @return Animations + */ + applyAnimate(duration) { + if (duration == null) { + duration = this._settings.stateAnimationDuration; + } + if (duration == null) { + duration = this.get("stateAnimationDuration", this._entity.get("stateAnimationDuration", 0)); + } + let easing = this._settings.stateAnimationEasing; + if (easing == null) { + easing = this.get("stateAnimationEasing", this._entity.get("stateAnimationEasing", cubic)); + } + const defaultState = this._entity.states.lookup("default"); + const seen = {}; + seen["stateAnimationEasing"] = true; + seen["stateAnimationDuration"] = true; + const animations = {}; + this._eachSetting((key, value) => { + if (!seen[key]) { + seen[key] = true; + if (this != defaultState) { + if (!(key in defaultState._settings)) { + defaultState._settings[key] = this._entity.get(key); + } + } + const animation = this._entity.animate({ + key, + to: value, + duration, + easing + }); + if (animation) { + animations[key] = animation; + } + } + }); + return animations; + } + }; + var States = class { + constructor(entity) { + this._states = {}; + this._entity = entity; + } + /** + * Checks if a state by `name` exists. Returns it there is one. + * + * @param name State name + * @return State + */ + lookup(name) { + return this._states[name]; + } + /** + * Sets supplied `settings` on a state by the `name`. + * + * If such state does not yet exists, it is created. + * + * @param name State name + * @param settings Settings + * @return New State + */ + create(name, settings) { + const state = this._states[name]; + if (state) { + state.setAll(settings); + return state; + } else { + const state2 = new State(this._entity, settings); + this._states[name] = state2; + return state2; + } + } + /** + * Removes the state called `name`. + * + * @param name State name + */ + remove(name) { + delete this._states[name]; + } + /** + * Applies a named state to the target element. + * + * @param newState State name + */ + apply(newState) { + const state = this._states[newState]; + if (state) { + state.apply(); + } + this._entity._applyState(newState); + } + /** + * Applies a named state to the element. + * + * Returns an object representing all [[Animation]] objects created for + * each setting key transition. + * + * @param newState State name + * @return Animations + */ + applyAnimate(newState, duration) { + let animations; + const state = this._states[newState]; + if (state) { + animations = state.applyAnimate(duration); + } + this._entity._applyStateAnimated(newState, duration); + return animations; + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/Registry.js + var Registry = class { + constructor() { + this.version = "5.16.0"; + this.licenses = []; + this.entitiesById = {}; + this.rootElements = []; + this.autoDispose = false; + } + }; + var registry = new Registry(); + + // node_modules/@amcharts/amcharts5/.internal/core/util/Order.js + function compare(left, right) { + if (left === right) { + return 0; + } else if (left < right) { + return -1; + } else { + return 1; + } + } + function compareArray(left, right, f) { + const leftLength = left.length; + const rightLength = right.length; + const length = Math.min(leftLength, rightLength); + for (let i = 0; i < length; ++i) { + const order = f(left[i], right[i]); + if (order !== 0) { + return order; + } + } + return compare(leftLength, rightLength); + } + function compareNumber(a, b) { + if (a === b) { + return 0; + } else if (a < b) { + return -1; + } else { + return 1; + } + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Entity.js + var Adapters = class { + constructor(entity) { + this._callbacks = {}; + this._disabled = {}; + this._entity = entity; + } + /** + * Add a function (`callback`) that will modify value for setting `key`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/adapters/} for more info + */ + add(key, callback) { + let callbacks = this._callbacks[key]; + if (callbacks === void 0) { + callbacks = this._callbacks[key] = []; + } + callbacks.push(callback); + this._entity._markDirtyKey(key); + return new Disposer(() => { + if (removeFirst(callbacks, callback)) { + this._entity._markDirtyKey(key); + } + }); + } + /** + * Removes all adapters for the specific key. + * + * @since 5.1.0 + */ + remove(key) { + const callbacks = this._callbacks[key]; + if (callbacks !== void 0) { + delete this._callbacks[key]; + if (callbacks.length !== 0) { + this._entity._markDirtyKey(key); + } + } + } + /** + * Enables (previously disabled) adapters for specific key. + * + * @since 5.1.0 + */ + enable(key) { + if (this._disabled[key]) { + delete this._disabled[key]; + this._entity._markDirtyKey(key); + } + } + /** + * Disables all adapters for specific key. + * + * @since 5.1.0 + */ + disable(key) { + if (!this._disabled[key]) { + this._disabled[key] = true; + this._entity._markDirtyKey(key); + } + } + /** + * @ignore + */ + fold(key, value) { + if (!this._disabled[key]) { + const callbacks = this._callbacks[key]; + if (callbacks !== void 0) { + for (let i = 0, len = callbacks.length; i < len; ++i) { + value = callbacks[i](value, this._entity, key); + } + } + } + return value; + } + }; + var Animation = class { + constructor(animation, from, to, duration, easing, loops, startingTime) { + this._time = 0; + this._stopped = false; + this._playing = true; + this.events = new EventDispatcher(); + this._animation = animation; + this._from = from; + this._to = to; + this._duration = duration; + this._easing = easing; + this._loops = loops; + this._interpolate = getInterpolate(from, to); + this._oldTime = startingTime; + } + get to() { + return this._to; + } + get from() { + return this._from; + } + get playing() { + return this._playing; + } + get stopped() { + return this._stopped; + } + stop() { + if (!this._stopped) { + this._stopped = true; + this._playing = false; + if (this.events.isEnabled("stopped")) { + this.events.dispatch("stopped", { + type: "stopped", + target: this + }); + } + } + } + pause() { + this._playing = false; + this._oldTime = null; + } + play() { + if (!this._stopped && !this._playing) { + this._playing = true; + this._animation._startAnimation(); + } + } + get percentage() { + return this._time / this._duration; + } + waitForStop() { + return new Promise((resolve, _reject) => { + if (this._stopped) { + resolve(); + } else { + const listener = () => { + stopped.dispose(); + resolve(); + }; + const stopped = this.events.on("stopped", listener); + } + }); + } + _checkEnded() { + if (this._loops > 1) { + --this._loops; + return false; + } else { + return true; + } + } + _run(currentTime) { + if (this._oldTime !== null) { + this._time += currentTime - this._oldTime; + if (this._time > this._duration) { + this._time = this._duration; + } + } + this._oldTime = currentTime; + } + _reset(currentTime) { + this._oldTime = currentTime; + this._time = 0; + } + _value(diff) { + return this._interpolate(this._easing(diff), this._from, this._to); + } + }; + var counter = 0; + var Settings = class { + constructor(settings) { + this.uid = ++counter; + this._privateSettings = {}; + this._settingEvents = {}; + this._privateSettingEvents = {}; + this._prevSettings = {}; + this._prevPrivateSettings = {}; + this._animatingSettings = {}; + this._animatingPrivateSettings = {}; + this._disposed = false; + this._userProperties = {}; + this.enableDispose = true; + this._settings = settings; + } + _checkDirty() { + keys(this._settings).forEach((key) => { + this._userProperties[key] = true; + this._markDirtyKey(key); + }); + } + /** + * @ignore + */ + resetUserSettings() { + this._userProperties = {}; + } + _runAnimation(currentTime) { + let state = AnimationState.Stopped; + if (!this.isDisposed()) { + let playing = false; + let paused = false; + each2(this._animatingSettings, (key, animation) => { + if (animation.stopped) { + this._stopAnimation(key); + } else if (animation.playing) { + animation._run(currentTime); + const diff = animation.percentage; + if (diff >= 1) { + if (animation._checkEnded()) { + this.set(key, animation._value(1)); + } else { + playing = true; + animation._reset(currentTime); + this._set(key, animation._value(1)); + } + } else { + playing = true; + this._set(key, animation._value(diff)); + } + } else { + paused = true; + } + }); + each2(this._animatingPrivateSettings, (key, animation) => { + if (animation.stopped) { + this._stopAnimationPrivate(key); + } else if (animation.playing) { + animation._run(currentTime); + const diff = animation.percentage; + if (diff >= 1) { + if (animation._checkEnded()) { + this.setPrivate(key, animation._value(1)); + } else { + playing = true; + animation._reset(currentTime); + this._setPrivate(key, animation._value(1)); + } + } else { + playing = true; + this._setPrivate(key, animation._value(diff)); + } + } else { + paused = true; + } + }); + if (playing) { + state = AnimationState.Playing; + } else if (paused) { + state = AnimationState.Paused; + } + } + return state; + } + _markDirtyKey(_key) { + this.markDirty(); + } + _markDirtyPrivateKey(_key) { + this.markDirty(); + } + /** + * Sets a callback function to invoke when specific key of settings changes + * or is set. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Settings_value_change} for more info + * @param key Settings key + * @param callback Callback + * @return Disposer for event + */ + on(key, callback) { + let events = this._settingEvents[key]; + if (events === void 0) { + events = this._settingEvents[key] = []; + } + events.push(callback); + return new Disposer(() => { + removeFirst(events, callback); + if (events.length === 0) { + delete this._settingEvents[key]; + } + }); + } + /** + * Removes a callback for when value of a setting changes. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Settings_value_change} for more info + * @param key Private settings key + * @param callback Callback + * @since 5.9.2 + */ + off(key, callback) { + let events = this._settingEvents[key]; + if (events !== void 0 && callback !== void 0) { + removeFirst(events, callback); + } else { + delete this._settingEvents[key]; + } + } + /** + * Sets a callback function to invoke when specific key of private settings + * changes or is set. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Settings_value_change} for more info + * @param key Private settings key + * @param callback Callback + * @return Disposer for event + */ + onPrivate(key, callback) { + let events = this._privateSettingEvents[key]; + if (events === void 0) { + events = this._privateSettingEvents[key] = []; + } + events.push(callback); + return new Disposer(() => { + removeFirst(events, callback); + if (events.length === 0) { + delete this._privateSettingEvents[key]; + } + }); + } + /** + * Removes a callback for when value of a private setting changes. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Settings_value_change} for more info + * @param key Private settings key + * @param callback Callback + * @since 5.9.2 + */ + offPrivate(key, callback) { + let events = this._privateSettingEvents[key]; + if (events !== void 0 && callback !== void 0) { + removeFirst(events, callback); + } else { + delete this._privateSettingEvents[key]; + } + } + /** + * @ignore + */ + getRaw(key, fallback) { + const value = this._settings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + /** + * Returns `true` if the setting exists. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Settings key + * @return {boolean} Key exists + */ + has(key) { + return key in this._settings; + } + get(key, fallback) { + return this.getRaw(key, fallback); + } + _sendKeyEvent(key, value) { + const events = this._settingEvents[key]; + if (events !== void 0) { + each(events, (callback) => { + callback(value, this, key); + }); + } + } + _sendPrivateKeyEvent(key, value) { + const events = this._privateSettingEvents[key]; + if (events !== void 0) { + each(events, (callback) => { + callback(value, this, key); + }); + } + } + /** + * @ignore + */ + _setRaw(key, old, value) { + this._prevSettings[key] = old; + this._sendKeyEvent(key, value); + } + /** + * @ignore + */ + setRaw(key, value) { + const old = this._settings[key]; + this._settings[key] = value; + if (old !== value) { + this._setRaw(key, old, value); + } + } + /** + * @ignore + */ + _set(key, value) { + const old = this._settings[key]; + this._settings[key] = value; + if (old !== value) { + this._setRaw(key, old, value); + this._markDirtyKey(key); + } + } + _stopAnimation(key) { + const animation = this._animatingSettings[key]; + if (animation) { + delete this._animatingSettings[key]; + animation.stop(); + } + } + /** + * Sets a setting `value` for the specified `key`, and returns the same `value`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + * @param value Setting value + * @return Setting value + */ + set(key, value) { + this._set(key, value); + this._stopAnimation(key); + return value; + } + /** + * Removes a setting value for the specified `key`; + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + */ + remove(key) { + if (key in this._settings) { + this._prevSettings[key] = this._settings[key]; + delete this._settings[key]; + this._sendKeyEvent(key, void 0); + this._markDirtyKey(key); + } + this._stopAnimation(key); + } + /** + * Removes all keys; + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + */ + removeAll() { + each(keys(this._settings), (key) => { + this.remove(key); + }); + } + /** + * Returns a value of a private setting. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/#Private_settings} for more info + */ + getPrivate(key, fallback) { + const value = this._privateSettings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + /** + * @ignore + */ + _setPrivateRaw(key, old, value) { + this._prevPrivateSettings[key] = old; + this._sendPrivateKeyEvent(key, value); + } + /** + * @ignore + */ + setPrivateRaw(key, value) { + const old = this._privateSettings[key]; + this._privateSettings[key] = value; + if (old !== value) { + this._setPrivateRaw(key, old, value); + } + } + /** + * @ignore + */ + _setPrivate(key, value) { + const old = this._privateSettings[key]; + this._privateSettings[key] = value; + if (old !== value) { + this._setPrivateRaw(key, old, value); + this._markDirtyPrivateKey(key); + } + } + _stopAnimationPrivate(key) { + const animation = this._animatingPrivateSettings[key]; + if (animation) { + animation.stop(); + delete this._animatingPrivateSettings[key]; + } + } + /** + * @ignore + */ + setPrivate(key, value) { + this._setPrivate(key, value); + this._stopAnimationPrivate(key); + return value; + } + /** + * @ignore + */ + removePrivate(key) { + if (key in this._privateSettings) { + this._prevPrivateSettings[key] = this._privateSettings[key]; + delete this._privateSettings[key]; + this._markDirtyPrivateKey(key); + } + this._stopAnimationPrivate(key); + } + /** + * Sets multiple settings at once. + * + * `settings` must be an object with key: value pairs. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param settings Settings + */ + setAll(settings) { + each2(settings, (key, value) => { + this.set(key, value); + }); + } + /** + * Animates setting values from current/start values to new ones. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/animations/#Animating_settings} for more info + * @param options Animation options + * @return Animation object + */ + animate(options) { + const key = options.key; + const to = options.to; + const duration = options.duration || 0; + const loops = options.loops || 1; + const from = options.from === void 0 ? this.get(key) : options.from; + const easing = options.easing === void 0 ? linear : options.easing; + if (duration === 0) { + this.set(key, to); + } else { + if (from === void 0 || from === to) { + this.set(key, to); + } else { + this.set(key, from); + const animation2 = this._animatingSettings[key] = new Animation(this, from, to, duration, easing, loops, this._animationTime()); + this._startAnimation(); + return animation2; + } + } + const animation = new Animation(this, from, to, duration, easing, loops, null); + animation.stop(); + return animation; + } + /** + * @ignore + */ + animatePrivate(options) { + const key = options.key; + const to = options.to; + const duration = options.duration || 0; + const loops = options.loops || 1; + const from = options.from === void 0 ? this.getPrivate(key) : options.from; + const easing = options.easing === void 0 ? linear : options.easing; + if (duration === 0) { + this.setPrivate(key, to); + } else { + if (from === void 0 || from === to) { + this.setPrivate(key, to); + } else { + this.setPrivate(key, from); + const animation2 = this._animatingPrivateSettings[key] = new Animation(this, from, to, duration, easing, loops, this._animationTime()); + this._startAnimation(); + return animation2; + } + } + const animation = new Animation(this, from, to, duration, easing, loops, null); + animation.stop(); + return animation; + } + _dispose() { + } + /** + * Returns `true` if this element is disposed. + * + * @return Disposed + */ + isDisposed() { + return this._disposed; + } + /** + * Disposes this object. + */ + dispose() { + if (this.enableDispose && !this._disposed) { + this._disposed = true; + this._dispose(); + } + } + }; + var Entity = class extends Settings { + /** + * IMPORTANT! Do not instantiate this class via `new Class()` syntax. + * + * Use static method `Class.new()` instead. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @ignore + */ + constructor(root2, settings, isReal, templates = []) { + super(settings); + this.states = new States(this); + this.adapters = new Adapters(this); + this.events = this._createEvents(); + this._userPrivateProperties = {}; + this._dirty = {}; + this._dirtyPrivate = {}; + this._templates = []; + this._defaultThemes = []; + this._templateDisposers = []; + this._disposers = []; + this._runSetup = true; + this._disposerProperties = {}; + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + this._root = root2; + this._internalTemplates = templates; + if (settings.id) { + this._registerId(settings.id); + } + } + /** + * Use this method to create an instance of this class. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @param root Root element + * @param settings Settings + * @param template Template + * @return Instantiated object + */ + static new(root2, settings, template) { + const x = new this(root2, settings, true); + x._template = template; + x._afterNew(); + return x; + } + static _new(root2, settings, templates = []) { + const x = new this(root2, settings, true, templates); + x._afterNew(); + return x; + } + _afterNew() { + this._checkDirty(); + let shouldApply = false; + const template = this._template; + if (template) { + shouldApply = true; + template._setObjectTemplate(this); + } + each(this._internalTemplates, (template2) => { + shouldApply = true; + template2._setObjectTemplate(this); + }); + if (shouldApply) { + this._applyTemplates(false); + } + this.states.create("default", {}); + this._setDefaults(); + } + // This is the same as _afterNew, except it also applies the themes. + // This should only be used for classes which don't have a parent (because they extend from Entity and not Sprite). + _afterNewApplyThemes() { + this._checkDirty(); + const template = this._template; + if (template) { + template._setObjectTemplate(this); + } + each(this._internalTemplates, (template2) => { + template2._setObjectTemplate(this); + }); + this.states.create("default", {}); + this._setDefaults(); + this._applyThemes(); + } + _createEvents() { + return new EventDispatcher(); + } + /** + * @ignore + */ + get classNames() { + return this.constructor.classNames; + } + /** + * @ignore + */ + get className() { + return this.constructor.className; + } + _setDefaults() { + } + _setDefaultFn(key, f) { + const value = this.get(key); + if (value) { + return value; + } else { + const value2 = f(); + this.set(key, value2); + return value2; + } + } + _setDefault(key, value) { + if (!this.has(key)) { + super.set(key, value); + } + } + _setRawDefault(key, value) { + if (!this.has(key)) { + super.setRaw(key, value); + } + } + _clearDirty() { + keys(this._dirty).forEach((key) => { + this._dirty[key] = false; + }); + keys(this._dirtyPrivate).forEach((key) => { + this._dirtyPrivate[key] = false; + }); + } + /** + * @ignore + */ + isDirty(key) { + return !!this._dirty[key]; + } + /** + * @ignore + */ + isPrivateDirty(key) { + return !!this._dirtyPrivate[key]; + } + _markDirtyKey(key) { + this._dirty[key] = true; + super._markDirtyKey(key); + } + _markDirtyPrivateKey(key) { + this._dirtyPrivate[key] = true; + super._markDirtyKey(key); + } + /** + * Checks if element is of certain class (or inherits one). + * + * @param type Class name to check + * @return {boolean} Is of class? + */ + isType(type) { + return this.classNames.indexOf(type) !== -1; + } + _pushPropertyDisposer(key, disposer) { + let disposers = this._disposerProperties[key]; + if (disposers === void 0) { + disposers = this._disposerProperties[key] = []; + } + disposers.push(disposer); + return disposer; + } + _disposeProperty(key) { + const disposers = this._disposerProperties[key]; + if (disposers !== void 0) { + each(disposers, (disposer) => { + disposer.dispose(); + }); + delete this._disposerProperties[key]; + } + } + /** + * @todo needs description + * @param value Template + */ + set template(value) { + const template = this._template; + if (template !== value) { + this._template = value; + if (template) { + template._removeObjectTemplate(this); + } + if (value) { + value._setObjectTemplate(this); + } + this._applyTemplates(); + } + } + get template() { + return this._template; + } + /** + * @ignore + */ + markDirty() { + this._root._addDirtyEntity(this); + } + _startAnimation() { + this._root._addAnimation(this); + } + _animationTime() { + return this._root.animationTime; + } + _applyState(_name) { + } + _applyStateAnimated(_name, _duration) { + } + get(key, fallback) { + const value = this.adapters.fold(key, this._settings[key]); + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + /** + * @ignore + */ + isUserSetting(key) { + return this._userProperties[key] || false; + } + /** + * Sets a setting `value` for the specified `key`, and returns the same `value`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + * @param value Setting value + * @return Setting value + */ + set(key, value) { + this._userProperties[key] = true; + return super.set(key, value); + } + /** + * @ignore + */ + setRaw(key, value) { + this._userProperties[key] = true; + super.setRaw(key, value); + } + /** + * Sets a setting `value` for the specified `key` only if the value for this key was not set previously using set method, and returns the same `value`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + * @param value Setting value + * @return Setting value + */ + _setSoft(key, value) { + if (!this._userProperties[key]) { + return super.set(key, value); + } + return value; + } + /** + * Removes a setting value for the specified `key`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + */ + remove(key) { + delete this._userProperties[key]; + this._removeTemplateProperty(key); + } + /** + * @ignore + */ + setPrivate(key, value) { + this._userPrivateProperties[key] = true; + return super.setPrivate(key, value); + } + /** + * @ignore + */ + setPrivateRaw(key, value) { + this._userPrivateProperties[key] = true; + super.setPrivateRaw(key, value); + } + /** + * @ignore + */ + removePrivate(key) { + delete this._userPrivateProperties[key]; + this._removeTemplatePrivateProperty(key); + } + _setTemplateProperty(template, key, value) { + if (!this._userProperties[key]) { + const match = this._findTemplateByKey(key); + if (template === match) { + super.set(key, value); + } + } + } + _setTemplatePrivateProperty(template, key, value) { + if (!this._userPrivateProperties[key]) { + const match = this._findTemplateByPrivateKey(key); + if (template === match) { + super.setPrivate(key, value); + } + } + } + _removeTemplateProperty(key) { + if (!this._userProperties[key]) { + const match = this._findTemplateByKey(key); + if (match) { + super.set(key, match._settings[key]); + } else { + super.remove(key); + } + } + } + _removeTemplatePrivateProperty(key) { + if (!this._userPrivateProperties[key]) { + const match = this._findTemplateByPrivateKey(key); + if (match) { + super.setPrivate(key, match._privateSettings[key]); + } else { + super.removePrivate(key); + } + } + } + _walkParents(f) { + f(this._root._rootContainer); + f(this); + } + // TODO faster version of this method which is specialized to just 1 key + _applyStateByKey(name) { + const other = this.states.create(name, {}); + const seen = {}; + this._eachTemplate((template) => { + const state = template.states.lookup(name); + if (state) { + state._apply(other, seen); + } + }); + each2(other._settings, (key) => { + if (!seen[key] && !other._userSettings[key]) { + other.remove(key); + } + }); + } + _applyTemplate(template, state) { + this._templateDisposers.push(template._apply(this, state)); + each2(template._settings, (key, value) => { + if (!state.settings[key] && !this._userProperties[key]) { + state.settings[key] = true; + super.set(key, value); + } + }); + each2(template._privateSettings, (key, value) => { + if (!state.privateSettings[key] && !this._userPrivateProperties[key]) { + state.privateSettings[key] = true; + super.setPrivate(key, value); + } + }); + if (this._runSetup && template.setup) { + this._runSetup = false; + template.setup(this); + } + } + /** + * Calls the closure with each template and returns the first template which is true + */ + _findStaticTemplate(f) { + if (this._template) { + if (f(this._template)) { + return this._template; + } + } + } + _eachTemplate(f) { + this._findStaticTemplate((template) => { + f(template); + return false; + }); + eachReverse(this._internalTemplates, f); + each(this._templates, f); + } + _applyTemplates(remove2 = true) { + if (remove2) { + this._disposeTemplates(); + } + const state = { + settings: {}, + privateSettings: {}, + states: {} + }; + this._eachTemplate((template) => { + this._applyTemplate(template, state); + }); + if (remove2) { + each2(this._settings, (key) => { + if (!this._userProperties[key] && !state.settings[key]) { + super.remove(key); + } + }); + each2(this._privateSettings, (key) => { + if (!this._userPrivateProperties[key] && !state.privateSettings[key]) { + super.removePrivate(key); + } + }); + } + } + _findTemplate(f) { + const value = this._findStaticTemplate(f); + if (value === void 0) { + const value2 = findReverse(this._internalTemplates, f); + if (value2 === void 0) { + return find(this._templates, f); + } else { + return value2; + } + } else { + return value; + } + } + _findTemplateByKey(key) { + return this._findTemplate((template) => { + return key in template._settings; + }); + } + _findTemplateByPrivateKey(key) { + return this._findTemplate((template) => { + return key in template._privateSettings; + }); + } + _disposeTemplates() { + each(this._templateDisposers, (disposer) => { + disposer.dispose(); + }); + this._templateDisposers.length = 0; + } + _removeTemplates() { + each(this._templates, (template) => { + template._removeObjectTemplate(this); + }); + this._templates.length = 0; + } + _applyThemes(force = false) { + if (this.get("ignoreThemes")) { + return false; + } + let isConnected = false; + const defaults = []; + let themes = []; + const themeTags = /* @__PURE__ */ new Set(); + const tags = this.get("themeTagsSelf"); + if (tags) { + each(tags, (tag) => { + themeTags.add(tag); + }); + } + this._walkParents((entity) => { + if (entity === this._root._rootContainer) { + isConnected = true; + } + if (entity._defaultThemes.length > 0) { + defaults.push(entity._defaultThemes); + } + const theme = entity.get("themes"); + if (theme) { + themes.push(theme); + } + const tags2 = entity.get("themeTags"); + if (tags2) { + each(tags2, (tag) => { + themeTags.add(tag); + }); + } + }); + themes = defaults.concat(themes); + this._removeTemplates(); + if (isConnected || force) { + eachReverse(this.classNames, (name) => { + const allRules = []; + each(themes, (themes2) => { + each(themes2, (theme) => { + const rules = theme._lookupRules(name); + if (rules) { + eachReverse(rules, (rule) => { + const matches = rule.tags.every((tag) => { + return themeTags.has(tag); + }); + if (matches) { + const result = getFirstSortedIndex(allRules, (x) => { + const order = compare(rule.tags.length, x.tags.length); + if (order === 0) { + return compareArray(rule.tags, x.tags, compare); + } else { + return order; + } + }); + allRules.splice(result.index, 0, rule); + } + }); + } + }); + }); + each(allRules, (rule) => { + this._templates.push(rule.template); + rule.template._setObjectTemplate(this); + }); + }); + } + this._applyTemplates(); + if (isConnected || force) { + this._runSetup = false; + } + return isConnected || force; + } + _changed() { + } + _beforeChanged() { + if (this.isDirty("id")) { + const id = this.get("id"); + if (id) { + this._registerId(id); + } + const prevId = this._prevSettings.id; + if (prevId) { + delete this._root.entitiesById[prevId]; + delete registry.entitiesById[prevId]; + } + } + } + _registerId(id) { + if (this._root.entitiesById[id] && this._root.entitiesById[id] !== this) { + throw new Error('An entity with id "' + id + '" already exists.'); + } + this._root.entitiesById[id] = this; + registry.entitiesById[id] = this; + } + _afterChanged() { + } + /** + * @ignore + */ + addDisposer(disposer) { + this._disposers.push(disposer); + return disposer; + } + _dispose() { + super._dispose(); + const template = this._template; + if (template) { + template._removeObjectTemplate(this); + } + each(this._internalTemplates, (template2) => { + template2._removeObjectTemplate(this); + }); + this._removeTemplates(); + this._disposeTemplates(); + this.events.dispose(); + this._disposers.forEach((x) => { + x.dispose(); + }); + each2(this._disposerProperties, (_, disposers) => { + each(disposers, (disposer) => { + disposer.dispose(); + }); + }); + const id = this.get("id"); + if (id) { + delete this._root.entitiesById[id]; + delete registry.entitiesById[id]; + } + } + /** + * Creates and returns a "disposable" timeout. + * + * @param fn Callback + * @param delay Delay in milliseconds + * @return Timeout disposer + */ + setTimeout(fn, delay) { + const id = setTimeout(() => { + this.removeDispose(disposer); + fn(); + }, delay); + const disposer = new Disposer(() => { + clearTimeout(id); + }); + this._disposers.push(disposer); + return disposer; + } + /** + * @ignore + */ + removeDispose(target) { + if (!this.isDisposed()) { + let index = indexOf(this._disposers, target); + if (index > -1) { + this._disposers.splice(index, 1); + } + } + target.dispose(); + } + /** + * @ignore + */ + hasTag(tag) { + return indexOf(this.get("themeTags", []), tag) !== -1; + } + /** + * @ignore + */ + addTag(tag) { + if (!this.hasTag(tag)) { + const tags = this.get("themeTags", []); + tags.push(tag); + this.set("themeTags", tags); + } + } + /** + * @ignore + */ + removeTag(tag) { + if (this.hasTag(tag)) { + const tags = this.get("themeTags", []); + remove(tags, tag); + this.set("themeTags", tags); + } + } + _t(text, locale, ...rest) { + return this._root.language.translate(text, locale, ...rest); + } + /** + * An instance of [[Root]] object. + * + * @readonly + * @since 5.0.6 + * @return Root object + */ + get root() { + return this._root; + } + }; + Entity.className = "Entity"; + Entity.classNames = ["Entity"]; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Template.js + function disposeSettings(settings) { + each2(settings, (_key, value) => { + if (isObject(value) && typeof value.dispose === "function") { + value.enableDispose = true; + value.dispose(); + } + }); + } + var TemplateState = class { + constructor(name, template, settings) { + this._name = name; + this._template = template; + this._settings = settings; + } + _dispose() { + disposeSettings(this._settings); + } + get(key, fallback) { + const value = this._settings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + set(key, value) { + this._settings[key] = value; + this._template._stateChanged(this._name); + } + remove(key) { + delete this._settings[key]; + this._template._stateChanged(this._name); + } + setAll(settings) { + keys(settings).forEach((key) => { + this._settings[key] = settings[key]; + }); + this._template._stateChanged(this._name); + } + _apply(other, seen) { + each2(this._settings, (key, value) => { + if (!seen[key] && !other._userSettings[key]) { + seen[key] = true; + other.setRaw(key, value); + } + }); + } + }; + var TemplateStates = class { + constructor(template) { + this._states = {}; + this._template = template; + } + _dispose() { + each2(this._states, (_key, state) => { + state._dispose(); + }); + } + lookup(name) { + return this._states[name]; + } + create(name, settings) { + const state = this._states[name]; + if (state) { + state.setAll(settings); + return state; + } else { + const state2 = new TemplateState(name, this._template, settings); + this._states[name] = state2; + this._template._stateChanged(name); + return state2; + } + } + remove(name) { + delete this._states[name]; + this._template._stateChanged(name); + } + _apply(entity, state) { + each2(this._states, (key, value) => { + let seen = state.states[key]; + if (seen == null) { + seen = state.states[key] = {}; + } + const other = entity.states.create(key, {}); + value._apply(other, seen); + }); + } + }; + var TemplateAdapters = class { + constructor() { + this._callbacks = {}; + } + add(key, callback) { + let callbacks = this._callbacks[key]; + if (callbacks === void 0) { + callbacks = this._callbacks[key] = []; + } + callbacks.push(callback); + return new Disposer(() => { + removeFirst(callbacks, callback); + if (callbacks.length === 0) { + delete this._callbacks[key]; + } + }); + } + remove(key) { + const callbacks = this._callbacks[key]; + if (callbacks !== void 0) { + delete this._callbacks[key]; + } + } + _apply(entity) { + const disposers = []; + each2(this._callbacks, (key, callbacks) => { + each(callbacks, (callback) => { + disposers.push(entity.adapters.add(key, callback)); + }); + }); + return new MultiDisposer(disposers); + } + }; + var Template = class _Template { + constructor(settings, isReal) { + this._disposed = false; + this._privateSettings = {}; + this._settingEvents = {}; + this._privateSettingEvents = {}; + this._entities = []; + this.states = new TemplateStates(this); + this.adapters = new TemplateAdapters(); + this.events = new EventDispatcher(); + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + this._settings = settings; + } + /** + * Use this method to create an instance of this class. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @param root Root element + * @param settings Settings + * @param template Template + * @return Instantiated object + */ + static new(settings) { + return new _Template(settings, true); + } + _dispose() { + disposeSettings(this._settings); + disposeSettings(this._privateSettings); + } + /** + * Returns `true` if this element is disposed. + * + * @return Disposed + */ + isDisposed() { + return this._disposed; + } + /** + * Disposes this object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + this._dispose(); + } + } + _checkDisposed() { + if (this._disposed) { + throw new Error("Template is disposed"); + } + } + /** + * Array of all entities using this template. + */ + get entities() { + return this._entities; + } + get(key, fallback) { + this._checkDisposed(); + const value = this._settings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + setRaw(key, value) { + this._checkDisposed(); + this._settings[key] = value; + } + set(key, value) { + this._checkDisposed(); + if (this._settings[key] !== value) { + this.setRaw(key, value); + this._entities.forEach((entity) => { + entity._setTemplateProperty(this, key, value); + }); + } + } + remove(key) { + this._checkDisposed(); + if (key in this._settings) { + delete this._settings[key]; + this._entities.forEach((entity) => { + entity._removeTemplateProperty(key); + }); + } + } + removeAll() { + this._checkDisposed(); + each2(this._settings, (key, _value) => { + this.remove(key); + }); + } + getPrivate(key, fallback) { + this._checkDisposed(); + const value = this._privateSettings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + setPrivateRaw(key, value) { + this._checkDisposed(); + this._privateSettings[key] = value; + return value; + } + setPrivate(key, value) { + this._checkDisposed(); + if (this._privateSettings[key] !== value) { + this.setPrivateRaw(key, value); + this._entities.forEach((entity) => { + entity._setTemplatePrivateProperty(this, key, value); + }); + } + return value; + } + removePrivate(key) { + this._checkDisposed(); + if (key in this._privateSettings) { + delete this._privateSettings[key]; + this._entities.forEach((entity) => { + entity._removeTemplatePrivateProperty(key); + }); + } + } + setAll(value) { + this._checkDisposed(); + each2(value, (key, value2) => { + this.set(key, value2); + }); + } + // TODO code duplication with Properties + on(key, callback) { + this._checkDisposed(); + let events = this._settingEvents[key]; + if (events === void 0) { + events = this._settingEvents[key] = []; + } + events.push(callback); + return new Disposer(() => { + removeFirst(events, callback); + if (events.length === 0) { + delete this._settingEvents[key]; + } + }); + } + // TODO code duplication with Properties + onPrivate(key, callback) { + this._checkDisposed(); + let events = this._privateSettingEvents[key]; + if (events === void 0) { + events = this._privateSettingEvents[key] = []; + } + events.push(callback); + return new Disposer(() => { + removeFirst(events, callback); + if (events.length === 0) { + delete this._privateSettingEvents[key]; + } + }); + } + _apply(entity, state) { + this._checkDisposed(); + const disposers = []; + each2(this._settingEvents, (key, events) => { + each(events, (event) => { + disposers.push(entity.on(key, event)); + }); + }); + each2(this._privateSettingEvents, (key, events) => { + each(events, (event) => { + disposers.push(entity.onPrivate(key, event)); + }); + }); + this.states._apply(entity, state); + disposers.push(this.adapters._apply(entity)); + disposers.push(entity.events.copyFrom(this.events)); + return new MultiDisposer(disposers); + } + _setObjectTemplate(entity) { + this._checkDisposed(); + this._entities.push(entity); + } + _removeObjectTemplate(entity) { + remove(this._entities, entity); + } + _stateChanged(name) { + this._checkDisposed(); + this._entities.forEach((entity) => { + entity._applyStateByKey(name); + }); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js + var SpriteEventDispatcher = class _SpriteEventDispatcher extends EventDispatcher { + constructor(sprite) { + super(); + this._rendererDisposers = {}; + this._dispatchParents = true; + this._sprite = sprite; + } + _makePointerEvent(key, event) { + return { + type: key, + originalEvent: event.event, + point: event.point, + simulated: event.simulated, + native: event.native, + target: this._sprite + }; + } + _onRenderer(key, dispatch) { + this._sprite.set("interactive", true); + this._sprite._display.interactive = true; + let events = this._rendererDisposers[key]; + if (events === void 0) { + const disposer = this._sprite._display.on(key, (e) => { + dispatch.call(this, e); + }); + events = this._rendererDisposers[key] = new CounterDisposer(() => { + delete this._rendererDisposers[key]; + disposer.dispose(); + }); + } + return events.increment(); + } + _on(once, type, callback, context, shouldClone, dispatch, debounceDelay) { + const info = super._on(once, type, callback, context, shouldClone, dispatch, debounceDelay); + const rendererEvent = _SpriteEventDispatcher.RENDERER_EVENTS[type]; + if (rendererEvent !== void 0) { + info.disposer = new MultiDisposer([ + info.disposer, + this._onRenderer(type, rendererEvent) + ]); + } + return info; + } + /** + * Will stop any bubbling up of the event to element's parents. + * + * Should be called in an event handler, e.g.: + * + * ```TypeScript + * element.events.on("pointerdown", function(ev) { + * // Do something here and prevent from "pointerdown" bubbling up + * // ... + * ev.target.events.stopParentDispatch(); + * }); + * ``` + * ```JavaScript + * element.events.on("pointerdown", function(ev) { + * // Do something here and prevent from "pointerdown" bubbling up + * // ... + * ev.target.events.stopParentDispatch(); + * }); + * ``` + */ + stopParentDispatch() { + this._dispatchParents = false; + } + /** + * @ignore + */ + dispatchParents(type, event) { + const old = this._dispatchParents; + this._dispatchParents = true; + try { + this.dispatch(type, event); + if (this._dispatchParents && this._sprite.parent) { + this._sprite.parent.events.dispatchParents(type, event); + } + } finally { + this._dispatchParents = old; + } + } + }; + SpriteEventDispatcher.RENDERER_EVENTS = { + "click": function(event) { + if (this.isEnabled("click") && !this._sprite.isDragging() && this._sprite._hasDown() && !this._sprite._hasMoved(this._makePointerEvent("click", event))) { + this.dispatch("click", this._makePointerEvent("click", event)); + } + }, + "rightclick": function(event) { + if (this.isEnabled("rightclick")) { + this.dispatch("rightclick", this._makePointerEvent("rightclick", event)); + } + }, + "middleclick": function(event) { + if (this.isEnabled("middleclick")) { + this.dispatch("middleclick", this._makePointerEvent("middleclick", event)); + } + }, + "dblclick": function(event) { + this.dispatchParents("dblclick", this._makePointerEvent("dblclick", event)); + }, + "pointerover": function(event) { + const sprite = this._sprite; + let dispatch = true; + if (sprite.getPrivate("trustBounds")) { + sprite._getBounds(); + const bounds = sprite.globalBounds(); + if (sprite.isType("Graphics")) { + const strokeWidth = sprite.get("strokeWidth", 1) / 2; + if (strokeWidth >= 1) { + bounds.left -= strokeWidth; + bounds.right += strokeWidth; + bounds.top -= strokeWidth; + bounds.bottom += strokeWidth; + } + } + if (!inBounds(event.point, bounds)) { + dispatch = false; + sprite._root._renderer.removeHovering(sprite._display); + } + } + if (dispatch && this.isEnabled("pointerover")) { + this.dispatch("pointerover", this._makePointerEvent("pointerover", event)); + } + }, + "pointerout": function(event) { + if (this.isEnabled("pointerout")) { + this.dispatch("pointerout", this._makePointerEvent("pointerout", event)); + } + }, + "pointerdown": function(event) { + this.dispatchParents("pointerdown", this._makePointerEvent("pointerdown", event)); + }, + "pointerup": function(event) { + if (this.isEnabled("pointerup")) { + this.dispatch("pointerup", this._makePointerEvent("pointerup", event)); + } + }, + "globalpointerup": function(event) { + if (this.isEnabled("globalpointerup")) { + this.dispatch("globalpointerup", this._makePointerEvent("globalpointerup", event)); + } + }, + "globalpointermove": function(event) { + if (this.isEnabled("globalpointermove")) { + this.dispatch("globalpointermove", this._makePointerEvent("globalpointermove", event)); + } + }, + "wheel": function(event) { + this.dispatchParents("wheel", { + type: "wheel", + target: this._sprite, + originalEvent: event.event, + point: event.point + }); + } + }; + var Sprite = class extends Entity { + constructor() { + super(...arguments); + this._adjustedLocalBounds = { left: 0, right: 0, top: 0, bottom: 0 }; + this._localBounds = { left: 0, right: 0, top: 0, bottom: 0 }; + this._sizeDirty = false; + this._isDragging = false; + this._isHidden = false; + this._isShowing = false; + this._isHiding = false; + this._isDown = false; + this._downPoints = {}; + } + _afterNew() { + this.setPrivateRaw("visible", true); + super._afterNew(); + } + /** + * Marks some setting as dirty. Could be used to trigger adapter. + * @param key + */ + markDirtyKey(key) { + this._markDirtyKey(key); + } + _markDirtyKey(key) { + super._markDirtyKey(key); + if (key == "x" || key == "y" || key == "dx" || key == "dy") { + this.markDirtyBounds(); + this._addPercentagePositionChildren(); + this.markDirtyPosition(); + } + } + _markDirtyPrivateKey(key) { + super._markDirtyPrivateKey(key); + if (key == "x" || key == "y") { + this.markDirtyPosition(); + } + } + _removeTemplateField() { + if (this._templateField) { + this._templateField._removeObjectTemplate(this); + } + } + _createEvents() { + return new SpriteEventDispatcher(this); + } + _processTemplateField() { + let template; + const field = this.get("templateField"); + if (field) { + const dataItem = this.dataItem; + if (dataItem) { + const context = dataItem.dataContext; + if (context) { + template = context[field]; + if (!(template instanceof Template) && template) { + template = Template.new(template); + } + } + } + } + if (this._templateField !== template) { + this._removeTemplateField(); + this._templateField = template; + if (template) { + template._setObjectTemplate(this); + } + this._applyTemplates(); + } + } + // TODO change this to run before the element is added to the parent, so that way + // it doesn't need to apply the themes twice + _setDataItem(dataItem) { + const oldDataItem = this._dataItem; + this._dataItem = dataItem; + this._processTemplateField(); + const eventType = "dataitemchanged"; + if (dataItem != oldDataItem) { + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { + type: eventType, + target: this, + oldDataItem, + newDataItem: dataItem + }); + } + } + } + /** + * A [[DataItem]] used for this element. + * + * NOTE: data item is being assigned automatically in most cases where it + * matters. Use this accessor to set data item only if you know what you're + * doing. + * + * @param value Data item + */ + set dataItem(value) { + this._setDataItem(value); + } + /** + * @return DataItem + */ + get dataItem() { + if (this._dataItem) { + return this._dataItem; + } else { + let parent = this._parent; + while (parent) { + if (parent._dataItem) { + return parent._dataItem; + } else { + parent = parent._parent; + } + } + } + } + _addPercentageSizeChildren() { + let parent = this.parent; + if (parent) { + if (this.get("width") instanceof Percent || this.get("height") instanceof Percent) { + pushOne(parent._percentageSizeChildren, this); + } else { + removeFirst(parent._percentageSizeChildren, this); + } + } + } + _addPercentagePositionChildren() { + let parent = this.parent; + if (parent) { + if (this.get("x") instanceof Percent || this.get("y") instanceof Percent) { + pushOne(parent._percentagePositionChildren, this); + } else { + removeFirst(parent._percentagePositionChildren, this); + } + } + } + /** + * @ignore + */ + markDirtyPosition() { + this._root._addDirtyPosition(this); + } + updatePivotPoint() { + const bounds = this._localBounds; + if (bounds) { + const centerX = this.get("centerX"); + if (centerX != null) { + this._display.pivot.x = bounds.left + relativeToValue(centerX, bounds.right - bounds.left); + } + const centerY = this.get("centerY"); + if (centerY != null) { + this._display.pivot.y = bounds.top + relativeToValue(centerY, bounds.bottom - bounds.top); + } + } + } + _beforeChanged() { + super._beforeChanged(); + this._handleStates(); + if (this.isDirty("tooltip")) { + const previous = this._prevSettings.tooltip; + if (previous) { + previous.dispose(); + } + } + if (this.isDirty("layer") || this.isDirty("layerMargin")) { + this._display.setLayer(this.get("layer"), this.get("layerMargin")); + this.markDirtyLayer(); + } + if (this.isDirty("tooltipPosition")) { + const tooltipMoveDp = this._tooltipMoveDp; + if (tooltipMoveDp) { + tooltipMoveDp.dispose(); + this._tooltipMoveDp = void 0; + } + const tooltipPointerDp = this._tooltipPointerDp; + if (tooltipPointerDp) { + tooltipPointerDp.dispose(); + this._tooltipPointerDp = void 0; + } + if (this.get("tooltipPosition") == "pointer") { + if (this.isHover()) { + this._tooltipMoveDp = this.events.on("globalpointermove", (e) => { + this.showTooltip(e.point); + }); + } + this._tooltipPointerDp = new MultiDisposer([ + this.events.on("pointerover", () => { + this._tooltipMoveDp = this.events.on("globalpointermove", (e) => { + this.showTooltip(e.point); + }); + }), + this.events.on("pointerout", () => { + const tooltipMoveDp2 = this._tooltipMoveDp; + if (tooltipMoveDp2) { + tooltipMoveDp2.dispose(); + this._tooltipMoveDp = void 0; + } + }) + ]); + } + } + } + _handleStates() { + if (this.isDirty("active")) { + if (this.get("active")) { + this.states.applyAnimate("active"); + this.set("ariaChecked", true); + } else { + if (!this.isHidden()) { + this.states.applyAnimate("default"); + } + this.set("ariaChecked", false); + } + this.markDirtyAccessibility(); + } + if (this.isDirty("disabled")) { + if (this.get("disabled")) { + this.states.applyAnimate("disabled"); + this.set("ariaChecked", false); + } else { + if (!this.isHidden()) { + this.states.applyAnimate("default"); + } + this.set("ariaChecked", true); + } + this.markDirtyAccessibility(); + } + } + _changed() { + super._changed(); + const display = this._display; + const events = this.events; + if (this.isDirty("draggable")) { + const draggable = this.get("draggable"); + if (draggable) { + this.set("interactive", true); + this._dragDp = new MultiDisposer([ + events.on("pointerdown", (ev) => { + this.dragStart(ev); + }), + events.on("globalpointermove", (ev) => { + this.dragMove(ev); + }), + events.on("globalpointerup", (ev) => { + this.dragStop(ev); + }) + ]); + } else { + if (this._dragDp) { + this._dragDp.dispose(); + this._dragDp = void 0; + } + } + display.cancelTouch = draggable ? true : false; + } + if (this.isDirty("tooltipText") || this.isDirty("tooltipHTML") || this.isDirty("showTooltipOn")) { + const tooltipText = this.get("tooltipText"); + const tooltipHTML = this.get("tooltipHTML"); + const showTooltipOn = this.get("showTooltipOn", "hover"); + if (this._tooltipDp) { + this._tooltipDp.dispose(); + this._tooltipDp = void 0; + } + if (tooltipText || tooltipHTML) { + if (showTooltipOn == "click") { + this._tooltipDp = new MultiDisposer([ + events.on("click", () => { + this.setTimeout(() => { + const tooltip = this.getTooltip(); + if (tooltip && !tooltip.isHidden() && tooltip.get("tooltipTarget") === this) { + this.hideTooltip(); + } else { + this.showTooltip(); + } + }, 10); + }), + addEventListener(document, "click", (_ev) => { + this.hideTooltip(); + }) + ]); + this._disposers.push(this._tooltipDp); + } else if (showTooltipOn == "always") { + } else { + this._tooltipDp = new MultiDisposer([ + events.on("pointerover", () => { + this.showTooltip(); + }), + events.on("pointerout", () => { + this.hideTooltip(); + }) + ]); + this._disposers.push(this._tooltipDp); + } + } + } + if (this.isDirty("toggleKey")) { + let toggleKey = this.get("toggleKey"); + if (toggleKey && toggleKey != "none") { + this._toggleDp = events.on("click", () => { + if (!this._isDragging) { + this.set(toggleKey, !this.get(toggleKey)); + } + }); + } else { + if (this._toggleDp) { + this._toggleDp.dispose(); + this._toggleDp = void 0; + } + } + } + if (this.isDirty("opacity")) { + display.alpha = Math.max(0, this.get("opacity", 1)); + if (this.get("focusable")) { + this.markDirtyAccessibility(); + } + } + if (this.isDirty("rotation")) { + this.markDirtyBounds(); + display.angle = this.get("rotation", 0); + } + if (this.isDirty("scale")) { + this.markDirtyBounds(); + display.scale = this.get("scale", 0); + } + if (this.isDirty("centerX") || this.isDirty("centerY")) { + this.markDirtyBounds(); + this.updatePivotPoint(); + } + if (this.isDirty("visible") || this.isPrivateDirty("visible") || this.isDirty("forceHidden")) { + if (!this.get("visible") || !this.getPrivate("visible") || this.get("forceHidden")) { + display.visible = false; + this.hideTooltip(); + } else { + display.visible = true; + } + this.markDirtyBounds(); + if (this.get("focusable")) { + this.markDirtyAccessibility(); + } + } + if (this.isDirty("width") || this.isDirty("height")) { + this.markDirtyBounds(); + this._addPercentageSizeChildren(); + const parent = this.parent; + if (parent) { + if (this.isDirty("width") && this.get("width") instanceof Percent || this.isDirty("height") && this.get("height") instanceof Percent) { + parent.markDirty(); + parent._prevWidth = 0; + } + } + this._sizeDirty = true; + } + if (this.isDirty("maxWidth") || this.isDirty("maxHeight") || this.isPrivateDirty("width") || this.isPrivateDirty("height") || this.isDirty("minWidth") || this.isDirty("minHeight") || this.isPrivateDirty("maxWidth") || this.isPrivateDirty("maxHeight") || this.isPrivateDirty("minWidth") || this.isPrivateDirty("minHeight") || this.isDirty("marginLeft") || this.isDirty("marginTop") || this.isDirty("marginRight") || this.isDirty("marginBottom")) { + this.markDirtyBounds(); + this._sizeDirty = true; + } + if (this._sizeDirty) { + this._updateSize(); + } + if (this.isDirty("wheelable")) { + const wheelable = this.get("wheelable"); + if (wheelable) { + this.set("interactive", true); + } + display.wheelable = wheelable ? true : false; + } + if (this.isDirty("tabindexOrder") || this.isDirty("focusableGroup")) { + if (this.get("focusable")) { + this._root._registerTabindexOrder(this); + } else { + this._root._unregisterTabindexOrder(this); + } + } + if (this.isDirty("filter")) { + display.filter = this.get("filter"); + } + let filter = this.get("filter", ""); + if (this.isDirty("blur")) { + const blur2 = this.get("blur", 0); + if (blur2 != 0) { + filter += " blur(" + blur2 + "px)"; + } + } + if (this.isDirty("saturate")) { + const saturate2 = this.get("saturate", 1); + if (saturate2 != 1) { + filter += " saturate(" + saturate2 + ")"; + } + } + if (this.isDirty("brightness")) { + const brightness = this.get("brightness", 1); + if (brightness != 1) { + filter += " brightness(" + brightness + ")"; + } + } + if (this.isDirty("contrast")) { + const contrast = this.get("contrast", 1); + if (contrast != 1) { + filter += " contrast(" + contrast + ")"; + } + } + if (this.isDirty("sepia")) { + const sepia = this.get("sepia", 0); + if (sepia != 0) { + filter += " sepia(" + sepia + ")"; + } + } + if (this.isDirty("hue")) { + const hue = this.get("hue", 0); + if (hue != 0) { + filter += " hue-rotate(" + hue + "deg)"; + } + } + if (this.isDirty("invert")) { + const invert = this.get("invert", 0); + if (invert != 0) { + filter += " invert(" + invert + ")"; + } + } + if (filter) { + display.filter = filter; + } + if (this.isDirty("cursorOverStyle")) { + display.cursorOverStyle = this.get("cursorOverStyle"); + } + if (this.isDirty("hoverOnFocus")) { + if (this.get("hoverOnFocus")) { + this._focusDp = new MultiDisposer([ + events.on("focus", () => { + this.showTooltip(); + }), + events.on("blur", () => { + this.hideTooltip(); + }) + ]); + } else { + if (this._focusDp) { + this._focusDp.dispose(); + this._focusDp = void 0; + } + } + } + if (this.isDirty("focusable")) { + if (this.get("focusable")) { + this._root._registerTabindexOrder(this); + } else { + this._root._unregisterTabindexOrder(this); + } + this.markDirtyAccessibility(); + this._disposers.push(events.on("blur", () => { + this.setPrivateRaw("touchHovering", false); + })); + this._disposers.push(events.once("boundschanged", () => { + this.markDirtyAccessibility(); + })); + } + if (this.isPrivateDirty("focusable")) { + this.markDirtyAccessibility(); + } + if (this.isDirty("role") || this.isDirty("ariaLive") || this.isDirty("ariaChecked") || this.isDirty("ariaHidden") || this.isDirty("ariaOrientation") || this.isDirty("ariaValueNow") || this.isDirty("ariaValueMin") || this.isDirty("ariaValueMax") || this.isDirty("ariaValueText") || this.isDirty("ariaLabel") || this.isDirty("ariaControls")) { + this.markDirtyAccessibility(); + } + if (this.isDirty("exportable")) { + display.exportable = this.get("exportable"); + } + if (this.isDirty("interactive")) { + const events2 = this.events; + if (this.get("interactive") && !events2.isDisposed()) { + this._hoverDp = new MultiDisposer([ + events2.on("click", (ev) => { + if (isTouchEvent(ev.originalEvent)) { + if (!this.getPrivate("touchHovering")) { + this.setTimeout(() => { + this._handleOver(); + if (this.get("tooltipText") || this.get("tooltipHTML")) { + this.showTooltip(); + } + this.setPrivateRaw("touchHovering", true); + this.events.dispatch("pointerover", { + type: "pointerover", + target: ev.target, + originalEvent: ev.originalEvent, + point: ev.point, + simulated: ev.simulated + }); + }, 10); + } + } + }), + events2.on("globalpointerup", (ev) => { + if (isTouchEvent(ev.originalEvent)) { + if (this.getPrivate("touchHovering")) { + this._handleOut(); + if (this.get("tooltipText") || this.get("tooltipHTML")) { + this.hideTooltip(); + } + this.setPrivateRaw("touchHovering", false); + this.events.dispatch("pointerout", { + type: "pointerout", + target: ev.target, + originalEvent: ev.originalEvent, + point: ev.point, + simulated: ev.simulated + }); + } + } + if (this._isDown) { + this._handleUp(ev); + } + }), + events2.on("pointerover", () => { + this._handleOver(); + }), + events2.on("pointerout", () => { + this._handleOut(); + }), + events2.on("pointerdown", (e) => { + this._handleDown(e); + }) + ]); + } else { + this._display.interactive = false; + if (this._hoverDp) { + this._hoverDp.dispose(); + this._hoverDp = void 0; + } + } + } + if (this.isDirty("forceInactive")) { + this._display.inactive = this.get("forceInactive", null); + } + if (this.get("showTooltipOn") == "always" && this._display.visible) { + this.showTooltip(); + } + } + /** + * @ignore + * @todo should this be user-accessible? + */ + dragStart(e) { + this._dragEvent = e; + this.events.stopParentDispatch(); + } + /** + * @ignore + * @todo should this be user-accessible? + */ + dragStop(e) { + this._dragEvent = void 0; + this._dragPoint = void 0; + this.events.stopParentDispatch(); + if (this._isDragging) { + this._isDragging = false; + const type = "dragstop"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { + type, + target: this, + originalEvent: e.originalEvent, + point: e.point, + simulated: e.simulated + }); + } + } + } + _handleOver() { + if (!this.isHidden()) { + if (this.get("active") && this.states.lookup("hoverActive")) { + this.states.applyAnimate("hoverActive"); + } else if (this.get("disabled") && this.states.lookup("hoverDisabled")) { + this.states.applyAnimate("hoverDisabled"); + } else { + this.states.applyAnimate("hover"); + } + if (this.get("draggable") && this._isDown && this.states.lookup("down")) { + this.states.applyAnimate("down"); + } + } + } + _handleOut() { + if (!this.isHidden()) { + if (this.get("active") && this.states.lookup("active")) { + this.states.applyAnimate("active"); + } else if (this.get("disabled") && this.states.lookup("disabled")) { + this.states.applyAnimate("disabled"); + } else { + if (this.states.lookup("hover") || this.states.lookup("hoverActive")) { + this.states.applyAnimate("default"); + } + } + if (this.get("draggable") && this._isDown && this.states.lookup("down")) { + this.states.applyAnimate("down"); + } + } + } + _handleUp(e) { + if (!this.isHidden()) { + if (this.get("active") && this.states.lookup("active")) { + this.states.applyAnimate("active"); + } else if (this.get("disabled") && this.states.lookup("disabled")) { + this.states.applyAnimate("disabled"); + } else if (this.states.lookup("down")) { + if (this.isHover()) { + this.states.applyAnimate("hover"); + } else { + this.states.applyAnimate("default"); + } + } + this._downPoint = void 0; + const pointerId = getPointerId(e.originalEvent); + delete this._downPoints[pointerId]; + if (keys(this._downPoints).length == 0) { + this._isDown = false; + } + } + } + _hasMoved(e) { + const pointerId = getPointerId(e.originalEvent); + const downPoint = this._downPoints[pointerId]; + if (downPoint) { + const x = Math.abs(downPoint.x - e.point.x); + const y = Math.abs(downPoint.y - e.point.y); + return x > 5 || y > 5; + } + return false; + } + _hasDown() { + return keys(this._downPoints).length > 0; + } + _handleDown(e) { + const parent = this.parent; + if (parent && !this.get("draggable")) { + parent._handleDown(e); + } + if (this.get("interactive") && !this.isHidden()) { + if (this.states.lookup("down")) { + this.states.applyAnimate("down"); + } + this._downPoint = { + x: e.point.x, + y: e.point.y + }; + this._isDown = true; + const pointerId = getPointerId(e.originalEvent); + this._downPoints[pointerId] = { + x: e.point.x, + y: e.point.y + }; + } + } + /** + * @ignore + * @todo should this be user-accessible? + */ + dragMove(e) { + let dragEvent = this._dragEvent; + if (dragEvent) { + if (dragEvent.simulated && !e.simulated) { + return true; + } + let angle = 0; + let parent = this.parent; + let scale = 1; + while (parent != null) { + angle += parent.get("rotation", 0); + parent = parent.parent; + if (parent) { + scale *= parent.get("scale", 1); + } + } + let x = (e.point.x - dragEvent.point.x) / scale; + let y = (e.point.y - dragEvent.point.y) / scale; + const events = this.events; + if (dragEvent.simulated && !this._isDragging) { + this._isDragging = true; + this._dragEvent = e; + this._dragPoint = { + x: this.x(), + y: this.y() + }; + const type = "dragstart"; + if (events.isEnabled(type)) { + events.dispatch(type, { + type, + target: this, + originalEvent: e.originalEvent, + point: e.point, + simulated: e.simulated + }); + } + } + if (this._isDragging) { + let dragPoint = this._dragPoint; + this.set("x", dragPoint.x + x * cos(angle) + y * sin(angle)); + this.set("y", dragPoint.y + y * cos(angle) - x * sin(angle)); + const type = "dragged"; + if (events.isEnabled(type)) { + events.dispatch(type, { + type, + target: this, + originalEvent: e.originalEvent, + point: e.point, + simulated: e.simulated + }); + } + } else { + if (Math.hypot(x, y) > 5) { + this._isDragging = true; + this._dragEvent = e; + this._dragPoint = { + x: this.x(), + y: this.y() + }; + const type = "dragstart"; + if (events.isEnabled(type)) { + events.dispatch(type, { + type, + target: this, + originalEvent: e.originalEvent, + point: e.point, + simulated: e.simulated + }); + } + } + } + } + } + _updateSize() { + } + _getBounds() { + this._localBounds = this._display.getLocalBounds(); + } + /** + * Returns depth (how deep in the hierachy of the content tree) of this + * element. + * + * @return Depth + */ + depth() { + let self = this.parent; + let depth = 0; + while (true) { + if (self) { + ++depth; + self = self.parent; + } else { + return depth; + } + } + } + /** + * @ignore + */ + markDirtySize() { + this._sizeDirty = true; + this.markDirty(); + } + /** + * @ignore + */ + markDirtyBounds() { + const display = this._display; + if (this.get("isMeasured")) { + this._root._addDirtyBounds(this); + display.isMeasured = true; + display.invalidateBounds(); + const parent = this.parent; + if (parent && this.get("position") != "absolute") { + if (parent.get("width") == null || parent.get("height") == null || parent.get("layout")) { + parent.markDirtyBounds(); + } + } + if (this.get("focusable")) { + this.markDirtyAccessibility(); + } + } + } + /** + * @ignore + */ + markDirtyAccessibility() { + this._root._invalidateAccessibility(this); + } + /** + * @ignore + */ + markDirtyLayer() { + this._display.markDirtyLayer(true); + } + /** + * @ignore + */ + markDirty() { + super.markDirty(); + this.markDirtyLayer(); + } + _updateBounds() { + const oldBounds = this._adjustedLocalBounds; + let newBounds; + if (!this.get("visible") || !this.getPrivate("visible") || this.get("forceHidden")) { + newBounds = { + left: 0, + right: 0, + top: 0, + bottom: 0 + }; + this._localBounds = newBounds; + this._adjustedLocalBounds = newBounds; + } else { + this._getBounds(); + this._fixMinBounds(this._localBounds); + this.updatePivotPoint(); + this._adjustedLocalBounds = this._display.getAdjustedBounds(this._localBounds); + newBounds = this._adjustedLocalBounds; + } + if (!oldBounds || (oldBounds.left !== newBounds.left || oldBounds.top !== newBounds.top || oldBounds.right !== newBounds.right || oldBounds.bottom !== newBounds.bottom)) { + const eventType = "boundschanged"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this }); + } + if (this.parent) { + this.parent.markDirty(); + this.parent.markDirtyBounds(); + } + if (this.getPrivate("showingTooltip")) { + this.showTooltip(); + } + } + } + _fixMinBounds(bounds) { + let minWidth = this.get("minWidth", this.getPrivate("minWidth")); + let minHeight = this.get("minHeight", this.getPrivate("minHeight")); + if (isNumber(minWidth)) { + if (bounds.right - bounds.left < minWidth) { + bounds.right = bounds.left + minWidth; + } + } + if (isNumber(minHeight)) { + if (bounds.bottom - bounds.top < minHeight) { + bounds.bottom = bounds.top + minHeight; + } + } + let privateWidth = this.getPrivate("width"); + let privateHeight = this.getPrivate("height"); + if (isNumber(privateWidth)) { + if (privateWidth > 0) { + bounds.right = bounds.left + privateWidth; + } else { + bounds.left = bounds.right + privateWidth; + } + } + if (isNumber(privateHeight)) { + if (privateHeight > 0) { + bounds.bottom = bounds.top + privateHeight; + } else { + bounds.top = bounds.bottom + privateHeight; + } + } + } + _removeParent(parent) { + if (parent) { + parent.children.removeValue(this); + removeFirst(parent._percentageSizeChildren, this); + removeFirst(parent._percentagePositionChildren, this); + } + } + _clearDirty() { + super._clearDirty(); + this._sizeDirty = false; + } + /** + * Simulate hover over element. + */ + hover() { + if (!this.isDisposed()) { + this.showTooltip(); + this._handleOver(); + } + } + /** + * Simulate unhover over element. + */ + unhover() { + if (!this.isDisposed()) { + this.hideTooltip(); + this._handleOut(); + } + } + /** + * Shows element's [[Tooltip]]. + */ + showTooltip(point) { + if (!this.isDisposed()) { + const tooltip = this.getTooltip(); + const tooltipText = this.get("tooltipText"); + const tooltipHTML = this.get("tooltipHTML"); + if ((tooltipText || tooltipHTML) && tooltip) { + const tooltipPosition = this.get("tooltipPosition"); + const tooltipTarget = this.getPrivate("tooltipTarget", this); + if (tooltipPosition == "fixed" || !point) { + this._display._setMatrix(); + point = this.toGlobal(tooltipTarget._getTooltipPoint()); + } + if (tooltipPosition == "pointer") { + const lastTooltipCoords = this.getPrivate("lastTooltipCoords"); + if (lastTooltipCoords && lastTooltipCoords.x == point.x && lastTooltipCoords.y == point.y) { + return; + } else { + this.setPrivate("lastTooltipCoords", point); + } + } + tooltip.set("pointTo", point); + tooltip.set("tooltipTarget", tooltipTarget); + if (!tooltip.get("x")) { + tooltip.set("x", point.x); + } + if (!tooltip.get("y")) { + tooltip.set("y", point.y); + } + if (tooltipText) { + tooltip.label.set("text", tooltipText); + } + if (tooltipHTML) { + tooltip.label.set("html", tooltipHTML); + } + const dataItem = this.dataItem; + if (dataItem) { + tooltip.label._setDataItem(dataItem); + } + if (this.get("showTooltipOn") == "always" && (point.x < 0 || point.x > this._root.width() || point.y < 0 || point.y > this._root.height())) { + this.hideTooltip(); + return; + } + tooltip.label.text.markDirtyText(); + const promise = tooltip.show(); + this.setPrivateRaw("showingTooltip", true); + return promise; + } + } + } + /** + * Hides element's [[Tooltip]]. + */ + hideTooltip() { + const tooltip = this.getTooltip(); + if (tooltip) { + this.removePrivate("lastTooltipCoords"); + if (tooltip.get("tooltipTarget") == this.getPrivate("tooltipTarget", this) || this.get("tooltip") == tooltip) { + let timeout = tooltip.get("keepTargetHover") && tooltip.get("stateAnimationDuration", 0) == 0 ? 400 : void 0; + const promise = tooltip.hide(timeout); + this.setPrivateRaw("showingTooltip", false); + return promise; + } + } + } + _getTooltipPoint() { + const bounds = this._localBounds; + if (bounds) { + let x = 0; + let y = 0; + if (!this.get("isMeasured")) { + x = relativeToValue(this.get("tooltipX", 0), this.width()); + y = relativeToValue(this.get("tooltipY", 0), this.height()); + } else { + x = bounds.left + relativeToValue(this.get("tooltipX", 0), bounds.right - bounds.left); + y = bounds.top + relativeToValue(this.get("tooltipY", 0), bounds.bottom - bounds.top); + } + return { x, y }; + } + return { x: 0, y: 0 }; + } + /** + * Returns [[Tooltip]] used for this element. + * + * @return Tooltip + */ + getTooltip() { + let tooltip = this.get("tooltip"); + if (!tooltip) { + let parent = this.parent; + if (parent) { + return parent.getTooltip(); + } + } else { + return tooltip; + } + } + _updatePosition() { + const parent = this.parent; + let dx = this.get("dx", 0); + let dy = this.get("dy", 0); + let x = this.get("x"); + let _x = this.getPrivate("x"); + let xx = 0; + let yy = 0; + const position = this.get("position"); + if (x instanceof Percent) { + if (parent) { + x = parent.innerWidth() * x.value + parent.get("paddingLeft", 0); + } else { + x = 0; + } + } + if (isNumber(x)) { + xx = x + dx; + } else { + if (_x != null) { + xx = _x; + } else if (parent) { + if (position == "relative") { + xx = parent.get("paddingLeft", 0) + dx; + } + } + } + let y = this.get("y"); + let _y = this.getPrivate("y"); + if (y instanceof Percent) { + if (parent) { + y = parent.innerHeight() * y.value + parent.get("paddingTop", 0); + } else { + y = 0; + } + } + if (isNumber(y)) { + yy = y + dy; + } else { + if (_y != null) { + yy = _y; + } else if (parent) { + if (position == "relative") { + yy = parent.get("paddingTop", 0) + dy; + } + } + } + const display = this._display; + if (display.x != xx || display.y != yy) { + display.invalidateBounds(); + display.x = xx; + display.y = yy; + const eventType = "positionchanged"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this }); + } + } + if (this.getPrivate("showingTooltip")) { + this.showTooltip(); + } + } + /** + * Returns element's actual X position in pixels. + * + * @return X (px) + */ + x() { + let x = this.get("x"); + let _x = this.getPrivate("x"); + const parent = this.parent; + if (parent) { + if (x instanceof Percent) { + return relativeToValue(x, parent.innerWidth()) + parent.get("paddingLeft", 0); + } else { + if (!isNumber(x)) { + if (_x != null) { + return _x; + } else { + return parent.get("paddingLeft", this._display.x); + } + } else { + return x; + } + } + } + return this._display.x; + } + /** + * Returns element's actual Y position in pixels. + * + * @return Y (px) + */ + y() { + let _y = this.getPrivate("y"); + if (_y != null) { + return _y; + } + let y = this.get("y"); + const parent = this.parent; + if (parent) { + if (y instanceof Percent) { + return relativeToValue(y, parent.innerHeight()) + parent.get("paddingTop", 0); + } else { + if (!isNumber(y)) { + if (_y != null) { + return _y; + } else { + return parent.get("paddingTop", this._display.y); + } + } else { + return y; + } + } + } + return this._display.y; + } + _dispose() { + super._dispose(); + this._display.dispose(); + this._removeTemplateField(); + this._removeParent(this.parent); + this._root._removeFocusElement(this); + const tooltip = this.get("tooltip"); + if (tooltip) { + tooltip.dispose(); + } + this.markDirty(); + } + /** + * @ignore + */ + adjustedLocalBounds() { + this._fixMinBounds(this._adjustedLocalBounds); + return this._adjustedLocalBounds; + } + /** + * Returns local coordinates of the element's bounds. + * + * @ignore + * @return Global bounds + */ + localBounds() { + return this._localBounds; + } + /** + * Returns adjusted local coordinates of the element's bounds. + * + * @ignore + * @return Global bounds + */ + bounds() { + const bounds = this._adjustedLocalBounds; + const x = this.x(); + const y = this.y(); + return { left: bounds.left + x, right: bounds.right + x, top: bounds.top + y, bottom: bounds.bottom + y }; + } + /** + * Returns global coordinates of the element's bounds. + * + * @ignore + * @return Global bounds + */ + globalBounds() { + const bounds = this.localBounds(); + const p02 = this.toGlobal({ x: bounds.left, y: bounds.top }); + const p1 = this.toGlobal({ x: bounds.right, y: bounds.top }); + const p2 = this.toGlobal({ x: bounds.right, y: bounds.bottom }); + const p3 = this.toGlobal({ x: bounds.left, y: bounds.bottom }); + return { + left: Math.min(p02.x, p1.x, p2.x, p3.x), + top: Math.min(p02.y, p1.y, p2.y, p3.y), + right: Math.max(p02.x, p1.x, p2.x, p3.x), + bottom: Math.max(p02.y, p1.y, p2.y, p3.y) + }; + } + _onShow(_duration) { + } + _onHide(_duration) { + } + /** + * Plays initial reveal animation regardless if element is currently hidden + * or visible. + * + * @param duration Duration of the animation in milliseconds + * @param delay Delay showing of the element by X milliseconds + * @return Promise + */ + appear(duration, delay) { + return __awaiter(this, void 0, void 0, function* () { + yield this.hide(0); + if (delay) { + return new Promise((success, _error) => { + this.setTimeout(() => { + success(this.show(duration)); + }, delay); + }); + } else { + return this.show(duration); + } + }); + } + /** + * Shows currently hidden element and returns a `Promise` which completes + * when all showing animations are finished. + * + * ```TypeScript + * series.show().then(function(ev) { + * console.log("Series is now fully visible"); + * }) + * ``` + * ```JavaScript + * series.show().then(function(ev) { + * console.log("Series is now fully visible"); + * }) + * ``` + * + * @return Promise + */ + show(duration) { + return __awaiter(this, void 0, void 0, function* () { + if (!this._isShowing) { + this._isHidden = false; + this._isShowing = true; + this._isHiding = false; + if (this.states.lookup("default").get("visible")) { + this.set("visible", true); + } + this._onShow(duration); + const animations = this.states.applyAnimate("default", duration); + yield waitForAnimations(animations); + this._isShowing = false; + } + }); + } + /** + * Hides the element and returns a `Promise` which completes when all hiding + * animations are finished. + * + * ```TypeScript + * series.hide().then(function(ev) { + * console.log("Series finished hiding"); + * }) + * ``` + * ```JavaScript + * series.hide().then(function(ev) { + * console.log("Series finished hiding"); + * }) + * ``` + * + * @return Promise + */ + hide(duration) { + return __awaiter(this, void 0, void 0, function* () { + if (!this._isHiding && !this._isHidden) { + this._isHiding = true; + this._isShowing = false; + let state = this.states.lookup("hidden"); + if (!state) { + state = this.states.create("hidden", { + "opacity": 0, + "visible": false + }); + } + this._isHidden = true; + this._onHide(duration); + const animations = this.states.applyAnimate("hidden", duration); + yield waitForAnimations(animations); + this._isHiding = false; + } + }); + } + /** + * Returns `true` if this element is currently hidden. + * + * @return Is hidden? + */ + isHidden() { + return this._isHidden; + } + /** + * Returns `true` if this element is currently animating to a default state. + * + * @return Is showing? + */ + isShowing() { + return this._isShowing; + } + /** + * Returns `true` if this element is currently animating to a hidden state. + * + * @return Is hiding? + */ + isHiding() { + return this._isHiding; + } + /** + * Returns `true` if this element is currently hovered by a pointer. + * + * @return Is hovered? + */ + isHover() { + return this._display.hovering(); + } + /** + * Returns `true` if this element does currently have focus. + * + * @return Is focused? + */ + isFocus() { + return this._root.focused(this); + } + /** + * Returns `true` if this element is currently being dragged. + * + * @return Is dragged? + */ + isDragging() { + return this._isDragging; + } + /** + * Returns `false` if if either public or private setting `visible` is set + * to `false`, or `forceHidden` is set to `true`. + * + * @return Visible? + */ + isVisible() { + if (this.get("visible") && this.getPrivate("visible") && !this.get("forceHidden")) { + return true; + } + return false; + } + /** + * Same as `isVisible()`, except it checks all ascendants, too. + * + * @since 5.2.7 + * @return Visible? + */ + isVisibleDeep() { + return this._parent ? this._parent.isVisibleDeep() && this.isVisible() : this.isVisible(); + } + /** + * Returns an actual opacity of the element, taking into account all parents. + * + * @return Opacity + * @since 5.2.11 + */ + compositeOpacity() { + const opacity = this.get("opacity", 1); + return this._parent ? this._parent.compositeOpacity() * opacity : opacity; + } + /** + * Returns an actual scale of the element, taking into account all parents. + * + * @return Opacity + * @since 5.9.2 + */ + compositeScale() { + const scale = this.get("scale", 1); + return this._parent ? this._parent.compositeScale() * scale : scale; + } + /** + * Returns an actual roation of the element, taking into account all parents. + * + * @return Opacity + * @since 5.9.2 + */ + compositeRotation() { + const rotation = this.get("rotation", 0); + return this._parent ? this._parent.compositeRotation() + rotation : rotation; + } + /** + * Returns width of this element in pixels. + * + * @return Width (px) + */ + width() { + let width = this.get("width"); + let maxWidth = this.get("maxWidth", this.getPrivate("maxWidth")); + let minWidth = this.get("minWidth", this.getPrivate("minWidth")); + let privateWidth = this.getPrivate("width"); + let w = 0; + if (isNumber(privateWidth)) { + w = privateWidth; + } else { + if (width == null) { + if (this._adjustedLocalBounds) { + w = this._adjustedLocalBounds.right - this._adjustedLocalBounds.left; + } + } else { + if (width instanceof Percent) { + const parent = this.parent; + if (parent) { + w = parent.innerWidth() * width.value; + } else { + w = this._root.width() * width.value; + } + } else if (isNumber(width)) { + w = width; + } + } + } + if (isNumber(minWidth)) { + w = Math.max(minWidth, w); + } + if (isNumber(maxWidth)) { + w = Math.min(maxWidth, w); + } + return w; + } + /** + * Returns maximum allowed width of this element in pixels. + * + * @return Maximum width (px) + */ + maxWidth() { + let maxWidth = this.get("maxWidth", this.getPrivate("maxWidth")); + if (isNumber(maxWidth)) { + return maxWidth; + } else { + let width = this.get("width"); + if (isNumber(width)) { + return width; + } + } + const parent = this.parent; + if (parent) { + return parent.innerWidth(); + } + return this._root.width(); + } + /** + * Returns maximum allowed height of this element in pixels. + * + * @return Maximum height (px) + */ + maxHeight() { + let maxHeight = this.get("maxHeight", this.getPrivate("maxHeight")); + if (isNumber(maxHeight)) { + return maxHeight; + } else { + let height = this.get("height"); + if (isNumber(height)) { + return height; + } + } + const parent = this.parent; + if (parent) { + return parent.innerHeight(); + } + return this._root.height(); + } + /** + * Returns height of this element in pixels. + * + * @return Height (px) + */ + height() { + let height = this.get("height"); + let maxHeight = this.get("maxHeight", this.getPrivate("maxHeight")); + let minHeight = this.get("minHeight", this.getPrivate("minHeight")); + let privateHeight = this.getPrivate("height"); + let h = 0; + if (isNumber(privateHeight)) { + h = privateHeight; + } else { + if (height == null) { + if (this._adjustedLocalBounds) { + h = this._adjustedLocalBounds.bottom - this._adjustedLocalBounds.top; + } + } else { + if (height instanceof Percent) { + const parent = this.parent; + if (parent) { + h = parent.innerHeight() * height.value; + } else { + h = this._root.height() * height.value; + } + } else if (isNumber(height)) { + h = height; + } + } + } + if (isNumber(minHeight)) { + h = Math.max(minHeight, h); + } + if (isNumber(maxHeight)) { + h = Math.min(maxHeight, h); + } + return h; + } + _findStaticTemplate(f) { + if (this._templateField && f(this._templateField)) { + return this._templateField; + } + return super._findStaticTemplate(f); + } + _walkParents(f) { + if (this._parent || this._virtualParent) { + this._walkParent(f); + } + } + _walkParent(f) { + if (this._parent) { + this._parent._walkParent(f); + } else { + if (this._virtualParent) { + this._virtualParent._walkParent(f); + } + } + f(this); + } + set virtualParent(parent) { + if (this._virtualParent !== parent) { + this._virtualParent = parent; + this._applyThemes(); + } + } + /** + * Parent [[Container]] of this element. + * + * @return Parent container + */ + get parent() { + return this._parent; + } + _setParent(parent, updateChildren = false) { + const prevParent = this._parent; + if (parent !== prevParent) { + this.markDirtyBounds(); + parent.markDirty(); + this._parent = parent; + if (updateChildren) { + this._removeParent(prevParent); + if (parent) { + this._addPercentageSizeChildren(); + this._addPercentagePositionChildren(); + } + } + this.markDirtyPosition(); + this._applyThemes(); + } + } + /** + * Returns an instance of [[NumberFormatter]] used in this element. + * + * If this element does not have it set, global one form [[Root]] is used. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/using-formatters/} for more info + * @return NumberFormatter instace + */ + getNumberFormatter() { + return this.get("numberFormatter", this._root.numberFormatter); + } + /** + * Returns an instance of [[DateFormatter]] used in this element. + * + * If this element does not have it set, global one form [[Root]] is used. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/using-formatters/} for more info + * @return DateFormatter instace + */ + getDateFormatter() { + return this.get("dateFormatter", this._root.dateFormatter); + } + /** + * Returns an instance of [[DurationFormatter]] used in this element. + * + * If this element does not have it set, global one form [[Root]] is used. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/using-formatters/} for more info + * @return DurationFormatter instace + */ + getDurationFormatter() { + return this.get("durationFormatter", this._root.durationFormatter); + } + /** + * Converts X/Y coordinate within this element to a global coordinate. + * + * @param point Local coordinate + * @return Global coordinate + */ + toGlobal(point) { + return this._display.toGlobal(point); + } + /** + * Converts global X/Y coordinate to a coordinate within this element. + * + * @param point Global coordinate + * @return Local coordinate + */ + toLocal(point) { + return this._display.toLocal(point); + } + _getDownPoint() { + const id = this._getDownPointId(); + if (id) { + return this._downPoints[id]; + } + } + _getDownPointId() { + if (this._downPoints) { + return keysOrdered(this._downPoints, (a, b) => { + if (a > b) { + return 1; + } + if (a < b) { + return -1; + } + return 0; + })[0]; + } + } + /** + * Moves sprite to the end of the parent's children array. + * + * Depending on `layout` setting of the parten container, it may effect the + * positioning or overlapping order of the elements. + */ + toFront() { + const parent = this.parent; + if (parent) { + parent.children.moveValue(this, parent.children.length - 1); + } + } + /** + * Moves sprite to the beginning of the parent's children array. + * + * Depending on `layout` setting of the parten container, it may effect the + * positioning or overlapping order of the elements. + */ + toBack() { + const parent = this.parent; + if (parent) { + parent.children.moveValue(this, 0); + } + } + }; + Sprite.className = "Sprite"; + Sprite.classNames = Entity.classNames.concat([Sprite.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/patterns/Pattern.js + var Pattern = class extends Entity { + constructor() { + super(...arguments); + this._display = this._root._renderer.makeGraphics(); + this._backgroundDisplay = this._root._renderer.makeGraphics(); + this._clear = false; + } + _afterNew() { + super._afterNewApplyThemes(); + } + get pattern() { + return this._pattern; + } + _draw() { + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("repetition") || this.isDirty("width") || this.isDirty("height") || this.isDirty("rotation") || this.isDirty("strokeWidth") || this.isDirty("strokeDasharray") || this.isDirty("strokeDashoffset") || this.isDirty("colorOpacity") || this.isDirty("fillOpacity")) { + this._clear = true; + } + this._checkDirtyFill(); + } + _checkDirtyFill() { + if (this.isDirty("color") || this.isDirty("fill")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear) { + const repetition = this.get("repetition", ""); + const width = this.get("width", 100); + const height = this.get("height", 100); + const fill = this.get("fill"); + const fillOpacity = this.get("fillOpacity", 1); + const backgroundDisplay = this._backgroundDisplay; + const display = this._display; + display.clear(); + backgroundDisplay.clear(); + if (fill && fillOpacity > 0) { + backgroundDisplay.beginFill(fill, fillOpacity); + backgroundDisplay.drawRect(0, 0, width, height); + backgroundDisplay.endFill(); + } + display.angle = this.get("rotation", 0); + this._draw(); + this._pattern = this._root._renderer.createPattern(display, backgroundDisplay, repetition, width, height); + } + this._clear = false; + } + }; + Pattern.className = "Pattern"; + Pattern.classNames = Entity.classNames.concat([Pattern.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/patterns/PicturePattern.js + var PicturePattern = class extends Pattern { + _beforeChanged() { + super._beforeChanged(); + this._clear = true; + if (this.isDirty("src")) { + this._load(); + } + const canvas = this.get("canvas"); + if (canvas) { + this.set("width", canvas.width); + this.set("height", canvas.height); + } + } + _draw() { + super._draw(); + const colorOpacity = this.get("colorOpacity"); + if (colorOpacity !== void 0) { + this._display.alpha = Math.max(0, colorOpacity); + } + const image = this._image; + if (image) { + const patternWidth = this.get("width", 100); + const patternHeight = this.get("height", 100); + const fit = this.get("fit", "image"); + let width = 0; + let height = 0; + if (fit == "pattern") { + width = patternWidth; + height = patternHeight; + this.markDirty(); + } else { + width = image.width; + height = image.height; + if (fit == "image") { + this.set("width", width); + this.set("height", height); + } + } + const centered = this.get("centered", true); + let x = 0; + let y = 0; + if (centered) { + x = patternWidth / 2 - width / 2; + y = patternHeight / 2 - height / 2; + } + this._display.image(image, width, height, x, y); + } + const canvas = this.get("canvas"); + if (canvas) { + this._display.image(canvas, canvas.width, canvas.height, 0, 0); + } + } + _load() { + const src = this.get("src"); + if (src) { + const image = new Image(); + image.src = src; + image.decode().then(() => { + this._image = image; + this._draw(); + if (this.events.isEnabled("loaded")) { + this.events.dispatch("loaded", { type: "loaded", target: this }); + } + }).catch((_error) => { + }); + } + } + }; + PicturePattern.className = "PicturePattern"; + PicturePattern.classNames = Pattern.classNames.concat([PicturePattern.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/backend/Renderer.js + var BlendMode; + (function(BlendMode2) { + BlendMode2["ADD"] = "lighter"; + BlendMode2["COLOR"] = "color"; + BlendMode2["COLOR_BURN"] = "color-burn"; + BlendMode2["COLOR_DODGE"] = "color-dodge"; + BlendMode2["DARKEN"] = "darken"; + BlendMode2["DIFFERENCE"] = "difference"; + BlendMode2["DST_OVER"] = "destination-over"; + BlendMode2["EXCLUSION"] = "exclusion"; + BlendMode2["HARD_LIGHT"] = "hard-light"; + BlendMode2["HUE"] = "hue"; + BlendMode2["LIGHTEN"] = "lighten"; + BlendMode2["LUMINOSITY"] = "luminosity"; + BlendMode2["MULTIPLY"] = "multiply"; + BlendMode2["NORMAL"] = "source-over"; + BlendMode2["OVERLAY"] = "overlay"; + BlendMode2["SATURATION"] = "saturation"; + BlendMode2["SCREEN"] = "screen"; + BlendMode2["SOFT_LIGHT"] = "soft-light"; + BlendMode2["SRC_ATOP"] = "source-atop"; + BlendMode2["XOR"] = "xor"; + })(BlendMode || (BlendMode = {})); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Graphics.js + var visualSettings = ["fill", "fillOpacity", "stroke", "strokeWidth", "strokeOpacity", "fillPattern", "strokePattern", "fillGradient", "strokeGradient", "strokeDasharray", "strokeDashoffset", "shadowBlur", "shadowColor", "shadowOpacity", "shadowOffsetX", "shadowOffsetY", "blur", "sepia", "invert", "brightness", "hue", "contrast", "saturate"]; + var Graphics = class extends Sprite { + constructor() { + super(...arguments); + this._display = this._root._renderer.makeGraphics(); + this._clear = false; + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("draw") || this.isDirty("svgPath")) { + this.markDirtyBounds(); + } + if (this.isDirty("fill") || this.isDirty("stroke") || this.isDirty("visible") || this.isDirty("forceHidden") || this.isDirty("scale") || this.isDirty("fillGradient") || this.isDirty("strokeGradient") || this.isDirty("fillPattern") || this.isDirty("strokePattern") || this.isDirty("fillOpacity") || this.isDirty("strokeOpacity") || this.isDirty("strokeWidth") || this.isDirty("draw") || this.isDirty("blendMode") || this.isDirty("strokeDasharray") || this.isDirty("strokeDashoffset") || this.isDirty("svgPath") || this.isDirty("lineJoin") || this.isDirty("lineCap") || this.isDirty("shadowColor") || this.isDirty("shadowBlur") || this.isDirty("shadowOffsetX") || this.isDirty("shadowOffsetY")) { + this._clear = true; + } + this._display.crisp = this.get("crisp", false); + if (this.isDirty("fillGradient")) { + const gradient = this.get("fillGradient"); + if (gradient) { + this._display.isMeasured = true; + const gradientTarget = gradient.get("target"); + if (gradientTarget) { + this._disposers.push(gradientTarget.events.on("boundschanged", () => { + this._markDirtyKey("fill"); + })); + this._disposers.push(gradientTarget.events.on("positionchanged", () => { + this._markDirtyKey("fill"); + })); + } + } + } + if (this.isDirty("strokeGradient")) { + const gradient = this.get("strokeGradient"); + if (gradient) { + this._display.isMeasured = true; + const gradientTarget = gradient.get("target"); + if (gradientTarget) { + this._disposers.push(gradientTarget.events.on("boundschanged", () => { + this._markDirtyKey("stroke"); + })); + this._disposers.push(gradientTarget.events.on("positionchanged", () => { + this._markDirtyKey("stroke"); + })); + } + } + } + } + _changed() { + super._changed(); + if (this._clear) { + this.markDirtyBounds(); + this.markDirtyLayer(); + this._display.clear(); + let strokeDasharray = this.get("strokeDasharray"); + if (isNumber(strokeDasharray)) { + if (strokeDasharray < 0.5) { + strokeDasharray = [0]; + } else { + strokeDasharray = [strokeDasharray]; + } + } + this._display.setLineDash(strokeDasharray); + const strokeDashoffset = this.get("strokeDashoffset"); + if (strokeDashoffset) { + this._display.setLineDashOffset(strokeDashoffset); + } + const blendMode = this.get("blendMode", BlendMode.NORMAL); + this._display.blendMode = blendMode; + const draw = this.get("draw"); + if (draw && typeof draw === "function") { + draw(this._display, this); + } + const svgPath = this.get("svgPath"); + if (svgPath != null) { + this._display.svgPath(svgPath); + } + } + } + _afterChanged() { + super._afterChanged(); + if (this._clear) { + const fill = this.get("fill"); + const fillGradient = this.get("fillGradient"); + const fillPattern = this.get("fillPattern"); + const fillOpacity = this.get("fillOpacity"); + const stroke = this.get("stroke"); + const strokeGradient = this.get("strokeGradient"); + const strokePattern = this.get("strokePattern"); + const shadowColor = this.get("shadowColor"); + const shadowBlur = this.get("shadowBlur"); + const shadowOffsetX = this.get("shadowOffsetX"); + const shadowOffsetY = this.get("shadowOffsetY"); + const shadowOpacity = this.get("shadowOpacity"); + if (shadowColor && (shadowBlur || shadowOffsetX || shadowOffsetY)) { + this._display.shadow(shadowColor, shadowBlur, shadowOffsetX, shadowOffsetY, shadowOpacity); + } + if (fill && !fillGradient) { + this._display.beginFill(fill, fillOpacity); + this._display.endFill(); + } + if (fillGradient) { + if (fill) { + const stops = fillGradient.get("stops", []); + if (stops.length) { + each(stops, (stop) => { + if ((!stop.color || stop.colorInherited) && fill) { + stop.color = fill; + stop.colorInherited = true; + } + if (stop.opacity == null || stop.opacityInherited) { + stop.opacity = fillOpacity; + stop.opacityInherited = true; + } + }); + } + } + const gradient = fillGradient.getFill(this); + if (gradient) { + this._display.beginFill(gradient, fillOpacity); + this._display.endFill(); + } + } + if (fillPattern) { + const pattern = fillPattern.pattern; + if (pattern) { + this._display.beginFill(pattern, fillOpacity); + this._display.endFill(); + if (fillPattern instanceof PicturePattern) { + fillPattern.events.once("loaded", () => { + this._clear = true; + this.markDirty(); + }); + } + } + } + if (stroke || strokeGradient || strokePattern) { + const strokeOpacity = this.get("strokeOpacity"); + let strokeWidth = this.get("strokeWidth", 1); + if (this.get("nonScalingStroke")) { + strokeWidth = strokeWidth / this.get("scale", 1); + } + if (this.get("crisp")) { + strokeWidth /= this._root._renderer.resolution; + } + const lineJoin = this.get("lineJoin"); + const lineCap = this.get("lineCap"); + if (stroke && !strokeGradient) { + this._display.lineStyle(strokeWidth, stroke, strokeOpacity, lineJoin, lineCap); + this._display.endStroke(); + } + if (strokeGradient) { + const stops = strokeGradient.get("stops", []); + if (stops.length) { + each(stops, (stop) => { + if ((!stop.color || stop.colorInherited) && stroke) { + stop.color = stroke; + stop.colorInherited = true; + } + if (stop.opacity == null || stop.opacityInherited) { + stop.opacity = strokeOpacity; + stop.opacityInherited = true; + } + }); + } + const gradient = strokeGradient.getFill(this); + if (gradient) { + this._display.lineStyle(strokeWidth, gradient, strokeOpacity, lineJoin, lineCap); + this._display.endStroke(); + } + } + if (strokePattern) { + let pattern = strokePattern.pattern; + if (pattern) { + this._display.lineStyle(strokeWidth, pattern, strokeOpacity, lineJoin, lineCap); + this._display.endStroke(); + if (strokePattern instanceof PicturePattern) { + strokePattern.events.once("loaded", () => { + this._clear = true; + this.markDirty(); + }); + } + } + } + } + if (this.getPrivate("showingTooltip")) { + this.showTooltip(); + } + } + this._clear = false; + } + }; + Graphics.className = "Graphics"; + Graphics.classNames = Sprite.classNames.concat([Graphics.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Rectangle.js + var Rectangle = class extends Graphics { + _afterNew() { + super._afterNew(); + this._display.isMeasured = true; + this.setPrivateRaw("trustBounds", true); + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("width") || this.isDirty("height") || this.isPrivateDirty("width") || this.isPrivateDirty("height")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear && !this.get("draw")) { + this._draw(); + } + } + _draw() { + let w = this.width(); + let h = this.height(); + let x = 0; + let y = 0; + let wSign = w / Math.abs(w); + let hSign = h / Math.abs(h); + if (this.get("containStroke", false)) { + const strokeWidth = this.get("strokeWidth", 0); + w -= strokeWidth * wSign; + h -= strokeWidth * hSign; + x += strokeWidth / 2 * wSign; + y += strokeWidth / 2 * hSign; + } + this._display.drawRect(x, y, w, h); + } + _updateSize() { + this.markDirty(); + this._clear = true; + } + }; + Rectangle.className = "Rectangle"; + Rectangle.classNames = Graphics.classNames.concat([Rectangle.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Layout.js + function eachChildren(container, f) { + if (container.get("reverseChildren", false)) { + container.children.eachReverse(f); + } else { + container.children.each(f); + } + } + var Layout = class extends Entity { + }; + Layout.className = "Layout"; + Layout.classNames = Entity.classNames.concat([Layout.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/HorizontalLayout.js + var HorizontalLayout = class extends Layout { + /** + * @ignore + */ + updateContainer(container) { + let paddingLeft = container.get("paddingLeft", 0); + let availableWidth = container.innerWidth(); + let totalPercent = 0; + eachChildren(container, (child) => { + if (child.isVisible()) { + if (child.get("position") == "relative") { + let childWidth = child.get("width"); + if (childWidth instanceof Percent) { + totalPercent += childWidth.value; + let w = availableWidth * childWidth.value; + let minWidth = child.get("minWidth", child.getPrivate("minWidth", -Infinity)); + if (minWidth > w) { + availableWidth -= minWidth; + totalPercent -= childWidth.value; + } + let maxWidth = child.get("maxWidth", child.getPrivate("maxWidth", Infinity)); + if (w > maxWidth) { + availableWidth -= maxWidth; + totalPercent -= childWidth.value; + } + } else { + if (!isNumber(childWidth)) { + childWidth = child.width(); + } + availableWidth -= childWidth + child.get("marginLeft", 0) + child.get("marginRight", 0); + } + } + } + }); + if (availableWidth <= 0 || availableWidth == Infinity) { + availableWidth = 0.1; + } + eachChildren(container, (child) => { + if (child.isVisible()) { + if (child.get("position") == "relative") { + let childWidth = child.get("width"); + if (childWidth instanceof Percent) { + let privateWidth = availableWidth * childWidth.value / totalPercent - child.get("marginLeft", 0) - child.get("marginRight", 0); + let minWidth = child.get("minWidth", child.getPrivate("minWidth", -Infinity)); + let maxWidth = child.get("maxWidth", child.getPrivate("maxWidth", Infinity)); + privateWidth = Math.min(Math.max(minWidth, privateWidth), maxWidth); + child.setPrivate("width", privateWidth); + } else { + if (child._prevSettings.width instanceof Percent) { + child.setPrivate("width", void 0); + } + } + } + } + }); + let prevX = paddingLeft; + eachChildren(container, (child) => { + if (child.get("position") == "relative") { + if (child.isVisible()) { + let bounds = child.adjustedLocalBounds(); + let marginLeft = child.get("marginLeft", 0); + let marginRight = child.get("marginRight", 0); + let maxWidth = child.get("maxWidth"); + let left = bounds.left; + let right = bounds.right; + if (maxWidth) { + if (right - left > maxWidth) { + right = left + maxWidth; + } + } + let x = prevX + marginLeft - left; + child.setPrivate("x", x); + prevX = x + right + marginRight; + } else { + child.setPrivate("x", void 0); + } + } + }); + } + }; + HorizontalLayout.className = "HorizontalLayout"; + HorizontalLayout.classNames = Layout.classNames.concat([HorizontalLayout.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/VerticalLayout.js + var VerticalLayout = class extends Layout { + /** + * @ignore + */ + updateContainer(container) { + let paddingTop = container.get("paddingTop", 0); + let availableHeight = container.innerHeight(); + let totalPercent = 0; + eachChildren(container, (child) => { + if (child.isVisible()) { + if (child.get("position") == "relative") { + let childHeight = child.get("height"); + if (childHeight instanceof Percent) { + totalPercent += childHeight.value; + let h = availableHeight * childHeight.value; + let minHeight = child.get("minHeight", child.getPrivate("minHeight", -Infinity)); + if (minHeight > h) { + availableHeight -= minHeight; + totalPercent -= childHeight.value; + } + let maxHeight = child.get("maxHeight", child.getPrivate("maxHeight", Infinity)); + if (h > maxHeight) { + availableHeight -= maxHeight; + totalPercent -= childHeight.value; + } + } else { + if (!isNumber(childHeight)) { + childHeight = child.height(); + } + availableHeight -= childHeight + child.get("marginTop", 0) + child.get("marginBottom", 0); + } + } + } + }); + if (availableHeight <= 0 || availableHeight == Infinity) { + availableHeight = 0.1; + } + eachChildren(container, (child) => { + if (child.isVisible()) { + if (child.get("position") == "relative") { + let childHeight = child.get("height"); + if (childHeight instanceof Percent) { + let privateHeight = availableHeight * childHeight.value / totalPercent - child.get("marginTop", 0) - child.get("marginBottom", 0); + let minHeight = child.get("minHeight", child.getPrivate("minHeight", -Infinity)); + let maxHeight = child.get("maxHeight", child.getPrivate("maxHeight", Infinity)); + privateHeight = Math.min(Math.max(minHeight, privateHeight), maxHeight); + child.setPrivate("height", privateHeight); + } else { + if (child._prevSettings.height instanceof Percent) { + child.setPrivate("height", void 0); + } + } + } + } + }); + let prevY = paddingTop; + eachChildren(container, (child) => { + if (child.get("position") == "relative") { + if (child.isVisible()) { + let bounds = child.adjustedLocalBounds(); + let marginTop = child.get("marginTop", 0); + let top = bounds.top; + let bottom = bounds.bottom; + let maxHeight = child.get("maxHeight"); + if (maxHeight) { + if (bottom - top > maxHeight) { + bottom = top + maxHeight; + } + } + let marginBottom = child.get("marginBottom", 0); + let y = prevY + marginTop - top; + child.setPrivate("y", y); + prevY = y + bottom + marginBottom; + } else { + child.setPrivate("y", void 0); + } + } + }); + } + }; + VerticalLayout.className = "VerticalLayout"; + VerticalLayout.classNames = Layout.classNames.concat([VerticalLayout.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/GridLayout.js + var GridLayout = class extends Layout { + _afterNew() { + this._setRawDefault("maxColumns", Number.MAX_VALUE); + super._afterNew(); + } + /** + * @ignore + */ + updateContainer(container) { + let paddingLeft = container.get("paddingLeft", 0); + let paddingRight = container.get("paddingRight", 0); + let paddingTop = container.get("paddingTop", 0); + let availableWidth = container.maxWidth() - paddingLeft - paddingRight; + let minCellWidth = availableWidth; + let maxCellWidth = 1; + eachChildren(container, (child) => { + if (child.get("visible") && child.getPrivate("visible") && !child.get("forceHidden")) { + if (child.get("position") != "absolute") { + let childWidth = child.width(); + if (childWidth < minCellWidth) { + minCellWidth = childWidth; + } + if (childWidth > maxCellWidth) { + maxCellWidth = childWidth; + } + } + } + }); + minCellWidth = fitToRange(minCellWidth, 1, availableWidth); + maxCellWidth = fitToRange(maxCellWidth, 1, availableWidth); + let columnCount = 1; + if (this.get("fixedWidthGrid")) { + columnCount = availableWidth / maxCellWidth; + } else { + columnCount = availableWidth / minCellWidth; + } + columnCount = Math.max(1, Math.floor(columnCount)); + columnCount = Math.min(this.get("maxColumns", Number.MAX_VALUE), columnCount); + let columnWidths = this.getColumnWidths(container, columnCount, maxCellWidth, availableWidth); + let prevY = paddingTop; + let column = 0; + let maxRowHeight = 0; + columnCount = columnWidths.length; + let prevX = paddingLeft; + eachChildren(container, (child) => { + if (child.get("position") == "relative" && child.isVisible()) { + const marginTop = child.get("marginTop", 0); + const marginBottom = child.get("marginBottom", 0); + let bounds = child.adjustedLocalBounds(); + let marginLeft = child.get("marginLeft", 0); + let marginRight = child.get("marginRight", 0); + let x = prevX + marginLeft - bounds.left; + let y = prevY + marginTop - bounds.top; + child.setPrivate("x", x); + child.setPrivate("y", y); + prevX += columnWidths[column] + marginRight; + maxRowHeight = Math.max(maxRowHeight, child.height() + marginTop + marginBottom); + column++; + if (column >= columnCount) { + column = 0; + prevX = paddingLeft; + prevY += maxRowHeight; + maxRowHeight = 0; + } + } + }); + } + /** + * @ignore + */ + getColumnWidths(container, columnCount, maxCellWidth, availableWidth) { + let totalWidth = 0; + let columnWidths = []; + let column = 0; + eachChildren(container, (child) => { + let bounds = child.adjustedLocalBounds(); + if (child.get("position") != "absolute" && child.isVisible()) { + if (this.get("fixedWidthGrid")) { + columnWidths[column] = maxCellWidth; + } else { + columnWidths[column] = Math.max(columnWidths[column] | 0, bounds.right - bounds.left + child.get("marginLeft", 0) + child.get("marginRight", 0)); + } + if (column < container.children.length - 1) { + column++; + if (column == columnCount) { + column = 0; + } + } + } + }); + each(columnWidths, (w) => { + totalWidth += w; + }); + if (totalWidth > availableWidth) { + if (columnCount > 2) { + columnCount -= 1; + return this.getColumnWidths(container, columnCount, maxCellWidth, availableWidth); + } else { + return [availableWidth]; + } + } + return columnWidths; + } + }; + GridLayout.className = "GridLayout"; + GridLayout.classNames = Layout.classNames.concat([GridLayout.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/TextFormatter.js + var TextFormatter = class { + /** + * Replaces brackets with temporary placeholders. + * + * @ignore Exclude from docs + * @param text Input text + * @return Escaped text + */ + static escape(text) { + return text.replace(/\[\[/g, this.prefix + "1").replace(/([^\/\]]{1})\]\]/g, "$1" + this.prefix + "2").replace(/\]\]/g, this.prefix + "2").replace(/\{\{/g, this.prefix + "3").replace(/\}\}/g, this.prefix + "4").replace(/\'\'/g, this.prefix + "5"); + } + /** + * Replaces placeholders back to brackets. + * + * @ignore Exclude from docs + * @param text Escaped text + * @return Unescaped text + */ + static unescape(text) { + return text.replace(new RegExp(this.prefix + "1", "g"), "[[").replace(new RegExp(this.prefix + "2", "g"), "]]").replace(new RegExp(this.prefix + "3", "g"), "{{").replace(new RegExp(this.prefix + "4", "g"), "}}").replace(new RegExp(this.prefix + "5", "g"), "''"); + } + /** + * Cleans up the text text for leftover double square brackets. + * + * @ignore Exclude from docs + * @param text Input text + * @return Cleaned up text + */ + static cleanUp(text) { + return text.replace(/\[\[/g, "[").replace(/\]\]/g, "]").replace(/\{\{/g, "{").replace(/\}\}/g, "}").replace(/\'\'/g, "'"); + } + /** + * Splits string into chunks. (style blocks, quoted blocks, regular blocks) + * + * If the second parameter `quotedBlocks` is set to `true` this method will + * also single out text blocks enclosed within single quotes that no + * formatting should be applied to, and they should be displayed as is. + * + * Default for the above is `false`, so that you can use single quote in text + * without escaping it. + * + * If enabled, single quotes can be escaped by doubling it - adding two + * single quotes, which will be replaced by a one single quote in the final + * output. + * + * @ignore Exclude from docs + * @param text Text to chunk + * @param quotedBlocks Use quoted blocks + * @param noFormatting Formatting blocks will be treated as regular text + * @return Array of string chunks + */ + static chunk(text, quotedBlocks = false, noFormatting = false) { + let res = []; + text = this.escape(text); + let chunks = quotedBlocks ? text.split("'") : [text]; + for (let i = 0; i < chunks.length; i++) { + let chunk = chunks[i]; + if (chunk === "") { + continue; + } + if (i % 2 === 0) { + chunk = chunk.replace(/\]\[/g, "]" + PLACEHOLDER + "["); + chunk = chunk.replace(/\[\]/g, "[ ]"); + let chunks2 = chunk.split(/[\[\]]+/); + for (let i2 = 0; i2 < chunks2.length; i2++) { + let chunk2 = this.cleanUp(this.unescape(chunks2[i2])); + if (chunk2 === PLACEHOLDER) { + continue; + } + if (chunk2 === "") { + continue; + } + if (i2 % 2 === 0) { + res.push({ + "type": "value", + "text": chunk2 + }); + } else { + res.push({ + "type": noFormatting ? "value" : "format", + "text": "[" + chunk2 + "]" + }); + } + } + } else { + let chunks2 = chunk.split(/[\[\]]+/); + for (let i2 = 0; i2 < chunks2.length; i2++) { + let chunk2 = this.cleanUp(this.unescape(chunks2[i2])); + if (chunk2 === "") { + continue; + } + if (i2 % 2 === 0) { + res.push({ + "type": "text", + "text": chunk2 + }); + } else if (this.isImage(chunk2)) { + res.push({ + "type": "image", + "text": "[" + chunk2 + "]" + }); + } else { + res.push({ + "type": "format", + "text": "[" + chunk2 + "]" + }); + } + } + } + } + return res; + } + /** + * Checks if supplied format contains image information and should be + * formatted as such. + * I.e.: `[img: myImage.png]` + * + * @ignore + * @param text Format + * @return true if it is an image + */ + static isImage(text) { + return text.match(/img[ ]?:/) ? true : false; + } + static getTextStyle(style) { + let format = {}; + if (style == "" || style == "[ ]") { + return {}; + } + const q = style.match(/('[^']*')|("[^"]*")/gi); + if (q) { + for (let i = 0; i < q.length; i++) { + style = style.replace(q[i], q[i].replace(/['"]*/g, "").replace(/[ ]+/g, "+")); + } + } + let b = style.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w\-]+)|(\/)/gi); + if (!b) { + return {}; + } + for (let i = 0; i < b.length; i++) { + if (b[i].match(/^(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)$/i)) { + format.fontWeight = b[i]; + } else if (b[i].match(/^(underline|line-through)$/i)) { + format.textDecoration = b[i]; + } else if (b[i] == "/") { + } else if (!b[i].match(/:/)) { + format.fill = Color.fromString(b[i]); + } else { + const p = b[i].replace("+", " ").split(/:[ ]*/); + format[p[0]] = p[1]; + } + } + return format; + } + }; + TextFormatter.prefix = "__amcharts__"; + + // node_modules/@amcharts/amcharts5/.internal/core/util/PopulateString.js + function populateString(target, string) { + if (string != null) { + string = "" + string; + string = TextFormatter.escape(string); + let tags = string.match(/\{([^}]+)\}/g); + let i; + if (tags) { + for (i = 0; i < tags.length; i++) { + let tag = tags[i].replace(/\{([^}]+)\}/, "$1"); + let value = getTagValue(target, tag, ""); + if (value == null) { + value = ""; + } + string = string.split(tags[i]).join(value); + } + } + string = TextFormatter.unescape(string); + } else { + string = ""; + } + return string; + } + function getTagValue(target, tagName, format) { + let value; + const dataItem = target.dataItem; + let parts = []; + let reg = /(format[a-zA-Z]*)\((.*)\)|([^.]+)/g; + let matches; + while (true) { + matches = reg.exec(tagName); + if (matches === null) { + break; + } + if (matches[3]) { + parts.push({ + prop: matches[3] + }); + const dateFields = target.getDateFormatter().get("dateFields", []); + const numericFields = target.getNumberFormatter().get("numericFields", []); + const durationFields = target.getDurationFormatter().get("durationFields", []); + if (dateFields.indexOf(matches[3]) !== -1) { + parts.push({ + method: "formatDate", + params: [] + }); + } else if (numericFields.indexOf(matches[3]) !== -1) { + parts.push({ + method: "formatNumber", + params: [] + }); + } else if (durationFields.indexOf(matches[3]) !== -1) { + parts.push({ + method: "formatDuration", + params: [] + }); + } + } else { + let params = []; + if (trim(matches[2]) != "") { + let reg2 = /'([^']*)'|"([^"]*)"|([0-9\-]+)/g; + let matches2; + while (true) { + matches2 = reg2.exec(matches[2]); + if (matches2 === null) { + break; + } + params.push(matches2[1] || matches2[2] || matches2[3]); + } + } + parts.push({ + method: matches[1], + params + }); + } + } + if (dataItem) { + value = getTagValueFromObject(target, parts, dataItem._settings); + if (value == null || isObject(value)) { + value = getTagValueFromObject(target, parts, dataItem); + } + let dataContext = dataItem.dataContext; + if (value == null && dataContext) { + value = getTagValueFromObject(target, parts, dataContext); + if (value == null) { + value = getTagValueFromObject(target, [{ + prop: tagName + }], dataContext); + } + if (value == null && dataContext.dataContext) { + value = getTagValueFromObject(target, parts, dataContext.dataContext); + } + } + if (value == null && dataItem.component && dataItem.component.dataItem !== dataItem) { + value = getTagValue(dataItem.component, tagName, format); + } + } + if (value == null) { + value = getTagValueFromObject(target, parts, target); + } + if (value == null && target.parent) { + value = getTagValue(target.parent, tagName, format); + } + return value; + } + function getCustomDataValue(target, prop) { + const customData = target.getPrivate("customData"); + if (isObject(customData)) { + return customData[prop]; + } + } + function getTagValueFromObject(target, parts, object, format) { + let current = object; + let formatApplied = false; + for (let i = 0, len = parts.length; i < len; i++) { + let part = parts[i]; + if (part.prop) { + if (current instanceof Sprite) { + let tmp = current.get(part.prop); + if (tmp == null) + tmp = current.getPrivate(part.prop); + if (tmp == null) + tmp = getCustomDataValue(current, part.prop); + if (tmp == null) + tmp = current[part.prop]; + current = tmp; + } else if (current.get) { + let tmp = current.get(part.prop); + if (tmp == null) + tmp = current[part.prop]; + current = tmp; + } else { + current = current[part.prop]; + } + if (current == null) { + return; + } + } else { + switch (part.method) { + case "formatNumber": + let numberValue = toNumber(current); + if (numberValue != null) { + current = target.getNumberFormatter().format(numberValue, format || part.params[0] || void 0); + formatApplied = true; + } + break; + case "formatDate": + let dateValue = toDate(current); + if (!isDate(dateValue) || isNaN2(dateValue.getTime())) { + return; + } + if (dateValue != null) { + current = target.getDateFormatter().format(dateValue, format || part.params[0] || void 0); + formatApplied = true; + } + break; + case "formatDuration": + let durationValue = toNumber(current); + if (durationValue != null) { + current = target.getDurationFormatter().format(durationValue, format || part.params[0] || void 0, part.params[1] || void 0); + formatApplied = true; + } + break; + case "urlEncode": + case "encodeURIComponent": + current = encodeURIComponent(current); + break; + default: + if (current[part.method]) { + current[part.method].apply(object, part.params); + } + break; + } + } + } + if (!formatApplied) { + let formatParts = [{ + method: "", + params: format + }]; + if (format == null) { + if (isNumber(current)) { + formatParts[0].method = "formatNumber"; + formatParts[0].params = ""; + } else if (isDate(current)) { + formatParts[0].method = "formatDate"; + formatParts[0].params = ""; + } + } else { + let formatterType = getFormat(format); + if (formatterType === "number") { + formatParts[0].method = "formatNumber"; + } else if (formatterType === "date") { + formatParts[0].method = "formatDate"; + } else if (formatterType === "duration") { + formatParts[0].method = "formatDuration"; + } + } + if (formatParts[0].method) { + current = getTagValueFromObject(target, formatParts, current); + } + } + return current; + } + + // node_modules/@amcharts/amcharts5/.internal/core/render/Container.js + var Container = class _Container extends Sprite { + constructor() { + super(...arguments); + this._display = this._root._renderer.makeContainer(); + this._childrenDisplay = this._root._renderer.makeContainer(); + this.children = new Children(this); + this._percentageSizeChildren = []; + this._percentagePositionChildren = []; + this._prevWidth = 0; + this._prevHeight = 0; + this._contentWidth = 0; + this._contentHeight = 0; + this._childrenPrep = false; + this._childrenUpdt = false; + } + _afterNew() { + super._afterNew(); + this._display.addChild(this._childrenDisplay); + } + _afterChanged() { + super._afterChanged(); + this._childrenPrep = false; + this._childrenUpdt = false; + } + _dispose() { + eachReverse(this.allChildren(), (child) => { + child.dispose(); + }); + if (this.getPrivate("htmlElement")) { + this._root._removeHTMLContent(this); + } + super._dispose(); + } + _beforeChanged() { + if (!this._childrenPrep) { + this._prepareChildren(); + } + if (!this._childrenUpdt) { + this._updateChildren(); + } + super._beforeChanged(); + } + _changed() { + super._changed(); + if (this.isDirty("interactiveChildren")) { + this._display.interactiveChildren = this.get("interactiveChildren", false); + } + if (this.isDirty("layout")) { + this._prevWidth = 0; + this._prevHeight = 0; + this.markDirtyBounds(); + if (this._prevSettings.layout) { + this.children.each((child) => { + child.removePrivate("x"); + child.removePrivate("y"); + }); + } + } + if (this.isDirty("paddingTop") || this.isDirty("paddingBottom") || this.isDirty("paddingLeft") || this.isDirty("paddingRight")) { + this.children.each((child) => { + child.markDirtyPosition(); + }); + } + if (this.isDirty("maskContent")) { + const childrenDisplay = this._childrenDisplay; + let contentMask = this._contentMask; + if (this.get("maskContent")) { + if (!contentMask) { + contentMask = Rectangle.new(this._root, { + x: -0.5, + y: -0.5, + width: this.width() + 1, + height: this.height() + 1 + }); + this._contentMask = contentMask; + childrenDisplay.addChildAt(contentMask._display, 0); + childrenDisplay.mask = contentMask._display; + } + } else { + if (contentMask) { + childrenDisplay.removeChild(contentMask._display); + childrenDisplay.mask = null; + contentMask.dispose(); + this._contentMask = void 0; + } + } + } + } + _updateSize() { + super._updateSize(); + each(this._percentageSizeChildren, (child) => { + child._updateSize(); + }); + each(this._percentagePositionChildren, (child) => { + child.markDirtyPosition(); + child._updateSize(); + }); + this.updateBackground(); + } + updateBackground() { + const background = this.get("background"); + let bounds = this._localBounds; + if (bounds && !this.isHidden()) { + let x = bounds.left; + let y = bounds.top; + let w = bounds.right - x; + let h = bounds.bottom - y; + let maxWidth = this.get("maxWidth"); + let maxHeight = this.get("maxHeight"); + if (maxHeight) { + if (h > maxHeight) { + h = maxHeight; + } + } + if (maxWidth) { + if (w > maxWidth) { + w = maxWidth; + } + } + let width = this.width(); + let height = this.height(); + if (background) { + background.setAll({ width: w, height: h, x, y }); + if (this._display.interactive) { + background._display.interactive = true; + } + } + const contentMask = this._contentMask; + if (contentMask) { + contentMask.setAll({ width: width + 1, height: height + 1 }); + } + const verticalScrollbar = this.get("verticalScrollbar"); + if (verticalScrollbar) { + verticalScrollbar.set("height", height); + verticalScrollbar.set("x", width - verticalScrollbar.width() - verticalScrollbar.get("marginRight", 0)); + verticalScrollbar.set("end", verticalScrollbar.get("start", 0) + height / this._contentHeight); + const bg = verticalScrollbar.get("background"); + if (bg) { + bg.setAll({ width: verticalScrollbar.width(), height }); + } + let visible = true; + if (this._contentHeight <= height) { + visible = false; + } + verticalScrollbar.setPrivate("visible", visible); + } + } + } + _applyThemes(force = false) { + if (super._applyThemes(force)) { + this.eachChildren((child) => { + child._applyThemes(force); + }); + return true; + } else { + return false; + } + } + _applyState(name) { + super._applyState(name); + if (this.get("setStateOnChildren")) { + this.eachChildren((child) => { + child.states.apply(name); + }); + } + } + _applyStateAnimated(name, duration) { + super._applyStateAnimated(name, duration); + if (this.get("setStateOnChildren")) { + this.eachChildren((child) => { + child.states.applyAnimate(name, duration); + }); + } + } + /** + * Returns container's inner width (width without padding) in pixels. + * + * @return Inner width (px) + */ + innerWidth() { + return this.width() - this.get("paddingRight", 0) - this.get("paddingLeft", 0); + } + /** + * Returns container's inner height (height without padding) in pixels. + * + * @return Inner height (px) + */ + innerHeight() { + return this.height() - this.get("paddingTop", 0) - this.get("paddingBottom", 0); + } + _getBounds() { + if (!this.get("html")) { + let width = this.get("width"); + let height = this.get("height"); + let pWidth = this.getPrivate("width"); + let pHeight = this.getPrivate("height"); + let bounds = { + left: 0, + top: 0, + right: this.width(), + bottom: this.height() + }; + let layout = this.get("layout"); + let horizontal = false; + let vertical = false; + if (layout instanceof HorizontalLayout || layout instanceof GridLayout) { + horizontal = true; + } + if (layout instanceof VerticalLayout) { + vertical = true; + } + if ((width != null || pWidth != null) && (height != null || pHeight != null) && !this.get("verticalScrollbar")) { + } else { + let m = Number.MAX_VALUE; + let l = m; + let r = -m; + let t = m; + let b = -m; + const paddingLeft = this.get("paddingLeft", 0); + const paddingTop = this.get("paddingTop", 0); + const paddingRight = this.get("paddingRight", 0); + const paddingBottom = this.get("paddingBottom", 0); + this.children.each((child) => { + if (child.get("position") != "absolute" && child.get("isMeasured")) { + let childBounds = child.adjustedLocalBounds(); + let childX = child.x(); + let childY = child.y(); + let cl = childX + childBounds.left; + let cr = childX + childBounds.right; + let ct = childY + childBounds.top; + let cb = childY + childBounds.bottom; + if (horizontal) { + cl -= child.get("marginLeft", 0); + cr += child.get("marginRight", 0); + } + if (vertical) { + ct -= child.get("marginTop", 0); + cb += child.get("marginBottom", 0); + } + if (cl < l) { + l = cl; + } + if (cr > r) { + r = cr; + } + if (ct < t) { + t = ct; + } + if (cb > b) { + b = cb; + } + } + }); + if (l == m) { + l = 0; + } + if (r == -m) { + r = 0; + } + if (t == m) { + t = 0; + } + if (b == -m) { + b = 0; + } + bounds.left = l - paddingLeft; + bounds.top = t - paddingTop; + bounds.right = r + paddingRight; + bounds.bottom = b + paddingBottom; + const minWidth = this.get("minWidth"); + if (isNumber(minWidth) && minWidth > 0) { + if (bounds.right - bounds.left < minWidth) { + if (bounds.right >= minWidth) { + bounds.left = bounds.right - minWidth; + } else { + bounds.right = bounds.left + minWidth; + } + } + } + const minHeight = this.get("minHeight"); + if (isNumber(minHeight) && minHeight > 0) { + if (bounds.bottom - bounds.top < minHeight) { + if (bounds.bottom >= minHeight) { + bounds.top = bounds.bottom - minHeight; + } else { + bounds.bottom = bounds.top + minHeight; + } + } + } + } + this._contentWidth = bounds.right - bounds.left; + this._contentHeight = bounds.bottom - bounds.top; + if (isNumber(width)) { + bounds.left = 0; + bounds.right = width; + } + if (isNumber(pWidth)) { + bounds.left = 0; + bounds.right = pWidth; + } + if (isNumber(height)) { + bounds.top = 0; + bounds.bottom = height; + } + if (isNumber(pHeight)) { + bounds.top = 0; + bounds.bottom = pHeight; + } + this._localBounds = bounds; + } else { + let bounds = this._localBounds; + if (bounds) { + this._contentWidth = bounds.right - bounds.left; + this._contentHeight = bounds.bottom - bounds.top; + } + } + } + _updateBounds() { + const layout = this.get("layout"); + if (layout) { + layout.updateContainer(this); + } + super._updateBounds(); + this.updateBackground(); + } + /** + * @ignore + */ + markDirty() { + super.markDirty(); + this._root._addDirtyParent(this); + } + _prepareChildren() { + this._childrenPrep = true; + const innerWidth = this.innerWidth(); + const innerHeight = this.innerHeight(); + if (innerWidth != this._prevWidth || innerHeight != this._prevHeight) { + let layout = this.get("layout"); + let horizontal = false; + let vertical = false; + if (layout) { + if (layout instanceof HorizontalLayout || layout instanceof GridLayout) { + horizontal = true; + } + if (layout instanceof VerticalLayout) { + vertical = true; + } + } + each(this._percentageSizeChildren, (child) => { + if (!horizontal) { + let width = child.get("width"); + if (width instanceof Percent) { + child.setPrivate("width", width.value * innerWidth); + } + } + if (!vertical) { + let height = child.get("height"); + if (height instanceof Percent) { + child.setPrivate("height", height.value * innerHeight); + } + } + }); + each(this._percentagePositionChildren, (child) => { + child.markDirtyPosition(); + child.markDirtyBounds(); + }); + this._prevWidth = innerWidth; + this._prevHeight = innerHeight; + this._sizeDirty = true; + this.updateBackground(); + } + } + _updateHTMLContent() { + const html = this.get("html", ""); + if (html && html !== "") { + this._root._setHTMLContent(this, populateString(this, html)); + } else { + this._root._removeHTMLContent(this); + } + this._root._positionHTMLElement(this); + } + /** + * If scrolling is enabled on the Container (by adding `verticalScrollbar`) + * the Container will scroll in such way so that target element becomes + * visible if its currently outside of view. + * + * @param child Target child + * @since 5.10.5 + */ + scrollToChild(child) { + const verticalScrollbar = this.get("verticalScrollbar"); + if (verticalScrollbar) { + let y = child.y(); + let h = this.innerHeight(); + let ch = child.height(); + let contentH = this._contentHeight; + let max2 = 1 - (h - ch / 2) / contentH; + if (y + ch * 0.7 + this._childrenDisplay.y > h || y - ch * 0.3 + this._childrenDisplay.y < 0) { + let pos = Math.max(0, Math.min(max2, (y - ch / 2) / contentH)); + verticalScrollbar.animate({ key: "start", to: pos, duration: verticalScrollbar.get("animationDuration", 0), easing: verticalScrollbar.get("animationEasing") }); + } + } + } + _updateChildren() { + this._childrenUpdt = true; + if (this.isDirty("html")) { + this._updateHTMLContent(); + } + if (this.isDirty("verticalScrollbar")) { + const verticalScrollbar = this.get("verticalScrollbar"); + if (verticalScrollbar) { + verticalScrollbar._setParent(this); + verticalScrollbar.startGrip.setPrivate("visible", false); + verticalScrollbar.endGrip.setPrivate("visible", false); + this.set("maskContent", true); + this.set("paddingRight", verticalScrollbar.width() + verticalScrollbar.get("marginRight", 0) + verticalScrollbar.get("marginLeft", 0)); + let background = this.get("background"); + if (!background) { + background = this.set("background", Rectangle.new(this._root, { + themeTags: ["background"], + fillOpacity: 0, + fill: this._root.interfaceColors.get("alternativeBackground") + })); + } + this._vsbd0 = this.events.on("wheel", (event) => { + const wheelEvent = event.originalEvent; + if (isLocalEvent(wheelEvent, this)) { + wheelEvent.preventDefault(); + } else { + return; + } + let shiftY = wheelEvent.deltaY / 5e3; + const start = verticalScrollbar.get("start", 0); + const end = verticalScrollbar.get("end", 1); + if (start + shiftY <= 0) { + shiftY = -start; + } + if (end + shiftY >= 1) { + shiftY = 1 - end; + } + if (start + shiftY >= 0 && end + shiftY <= 1) { + verticalScrollbar.set("start", start + shiftY); + verticalScrollbar.set("end", end + shiftY); + } + }); + this._disposers.push(this._vsbd0); + this._vsbd1 = verticalScrollbar.events.on("rangechanged", () => { + let h = this._contentHeight; + const childrenDisplay = this._childrenDisplay; + const contentMask = this._contentMask; + childrenDisplay.y = -verticalScrollbar.get("start", 0) * h; + childrenDisplay.markDirtyLayer(); + if (contentMask) { + contentMask._display.y = -childrenDisplay.y; + childrenDisplay.mask = contentMask._display; + } + }); + this._disposers.push(this._vsbd1); + this._display.addChild(verticalScrollbar._display); + } else { + const previous = this._prevSettings.verticalScrollbar; + if (previous) { + this._display.removeChild(previous._display); + if (this._vsbd0) { + this._vsbd0.dispose(); + } + if (this._vsbd1) { + this._vsbd1.dispose(); + } + const childrenDisplay = this._childrenDisplay; + childrenDisplay.y = 0; + this.setPrivate("height", void 0); + this.set("maskContent", false); + this.set("paddingRight", void 0); + } + } + } + if (this.isDirty("background")) { + const previous = this._prevSettings["background"]; + if (previous) { + this._display.removeChild(previous._display); + } + const background = this.get("background"); + if (background instanceof Sprite) { + background.set("isMeasured", false); + background._setParent(this); + this._display.addChildAt(background._display, 0); + } + } + if (this.isDirty("mask")) { + const mask = this.get("mask"); + const previous = this._prevSettings["mask"]; + if (previous) { + this._display.removeChild(previous._display); + if (previous != mask) { + previous.dispose(); + } + } + if (mask) { + const parent = mask.parent; + if (parent) { + parent.children.removeValue(mask); + } + mask._setParent(this); + this._display.addChildAt(mask._display, 0); + this._childrenDisplay.mask = mask._display; + } + } + } + _processTemplateField() { + super._processTemplateField(); + this.children.each((child) => { + child._processTemplateField(); + }); + } + /** + * @ignore + */ + walkChildren(f) { + this.children.each((child, index) => { + if (child instanceof _Container) { + child.walkChildren(f); + } + f(child, index); + }); + } + eachChildren(f) { + const background = this.get("background"); + if (background) { + f(background); + } + const verticalScrollbar = this.get("verticalScrollbar"); + if (verticalScrollbar) { + f(verticalScrollbar); + } + const mask = this.get("mask"); + if (mask) { + f(mask); + } + this.children.values.forEach((child) => { + f(child); + }); + } + allChildren() { + const output = []; + this.eachChildren((x) => { + output.push(x); + }); + return output; + } + _setDataItem(dataItem) { + const updated = dataItem !== this._dataItem; + super._setDataItem(dataItem); + const html = this.get("html", ""); + if (html && html !== "" && updated) { + this._root._setHTMLContent(this, populateString(this, html)); + } + } + contentWidth() { + return this._contentWidth; + } + contentHeight() { + return this._contentHeight; + } + }; + Container.className = "Container"; + Container.classNames = Sprite.classNames.concat([Container.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Text.js + var Text = class extends Sprite { + constructor() { + super(...arguments); + this.textStyle = this._root._renderer.makeTextStyle(); + this._display = this._root._renderer.makeText("", this.textStyle); + this._textStyles = [ + "textAlign", + "fontFamily", + "fontSize", + "fontStyle", + "fontWeight", + "fontStyle", + "fontVariant", + "textDecoration", + "shadowColor", + "shadowBlur", + "shadowOffsetX", + "shadowOffsetY", + "shadowOpacity", + // "leading", + // "letterSpacing", + "lineHeight", + "baselineRatio", + //"padding", + // "stroke", + // "strokeThickness", + // "trim", + // "wordWrap", + "direction", + "textBaseline", + "oversizedBehavior", + "breakWords", + "ellipsis", + "minScale", + "maxChars" + ]; + } + _updateBounds() { + if (!this.get("text")) { + let newBounds = { + left: 0, + right: 0, + top: 0, + bottom: 0 + }; + this._adjustedLocalBounds = newBounds; + } else { + super._updateBounds(); + let fillGradient = this.get("fillGradient"); + if (fillGradient) { + this._display.style.fill = fillGradient.getFill(this); + } + } + } + _changed() { + super._changed(); + this._display.clear(); + let textStyle = this.textStyle; + if (this.isDirty("opacity")) { + let opacity = this.get("opacity", 1); + this._display.alpha = opacity; + } + if (this.isDirty("text") || this.isDirty("populateText")) { + this._display.text = this._getText(); + this.markDirtyBounds(); + if (this.get("role") == "tooltip") { + this._root.updateTooltip(this); + } + } + if (this.isPrivateDirty("tooltipElement")) { + const tooltipElement = this.getPrivate("tooltipElement"); + if (tooltipElement) { + this._disposers.push(new Disposer(() => { + this._root._removeTooltipElement(this); + })); + } + } + if (this.isDirty("width")) { + textStyle.wordWrapWidth = this.width(); + this.markDirtyBounds(); + } + if (this.isDirty("oversizedBehavior")) { + textStyle.oversizedBehavior = this.get("oversizedBehavior", "none"); + this._display.invalidateVisibility(); + this.markDirtyBounds(); + } + if (this.isDirty("breakWords")) { + textStyle.breakWords = this.get("breakWords", false); + this.markDirtyBounds(); + } + if (this.isDirty("ellipsis")) { + textStyle.ellipsis = this.get("ellipsis"); + this.markDirtyBounds(); + } + if (this.isDirty("ignoreFormatting")) { + textStyle.ignoreFormatting = this.get("ignoreFormatting", false); + this.markDirtyBounds(); + } + if (this.isDirty("minScale")) { + textStyle.minScale = this.get("minScale", 0); + this.markDirtyBounds(); + } + if (this.isDirty("fill") || this.isDirty("fillGradient")) { + const fill = this.get("fill"); + const fillGradient = this.get("fillGradient"); + const fillOpacity = this.get("fillOpacity"); + if (fillGradient) { + if (fill) { + const stops = fillGradient.get("stops", []); + if (stops.length) { + each(stops, (stop) => { + if ((!stop.color || stop.colorInherited) && fill) { + stop.color = fill; + stop.colorInherited = true; + } + if (stop.opacity == null || stop.opacityInherited) { + stop.opacity = fillOpacity; + stop.opacityInherited = true; + } + }); + } + } + textStyle.fill = fillGradient.getFill(this); + } else if (fill) { + textStyle.fill = fill; + } + } + if (this.isDirty("fillOpacity")) { + let fillOpacity = this.get("fillOpacity", 1); + if (fillOpacity) { + textStyle.fillOpacity = fillOpacity; + } + } + if (this.isDirty("maxWidth") || this.isPrivateDirty("maxWidth")) { + textStyle.maxWidth = this.get("maxWidth", this.getPrivate("maxWidth")); + this.markDirtyBounds(); + } + if (this.isDirty("maxHeight") || this.isPrivateDirty("maxHeight")) { + textStyle.maxHeight = this.get("maxHeight", this.getPrivate("maxHeight")); + this.markDirtyBounds(); + } + each(this._textStyles, (styleName) => { + if (this._dirty[styleName]) { + textStyle[styleName] = this.get(styleName); + this.markDirtyBounds(); + } + }); + textStyle["fontSize"] = this.get("fontSize"); + textStyle["fontFamily"] = this.get("fontFamily"); + this._display.style = textStyle; + if (this.isDirty("role") && this.get("role") == "tooltip") { + this._root.updateTooltip(this); + } + } + _getText() { + let text = this.get("text", ""); + if (this.get("maxChars")) { + text = truncateTextWithEllipsis(text, this.get("maxChars", 1e8), this.get("breakWords"), this.get("ellipsis")); + } + return this.get("populateText") ? populateString(this, text) : text; + } + _getAccessibleText() { + const ariaLabel = this.get("ariaLabel"); + if (ariaLabel !== void 0) { + return this.get("populateText") ? populateString(this, ariaLabel) : ariaLabel; + } + return this._getText(); + } + /** + * Forces the text to be re-evaluated and re-populated. + */ + markDirtyText() { + this._display.text = this._getText(); + if (this.get("role") == "tooltip") { + this._root.updateTooltip(this); + } + this.markDirtyBounds(); + this.markDirty(); + } + _setDataItem(dataItem) { + super._setDataItem(dataItem); + if (this.get("populateText")) { + this.markDirtyText(); + } + } + getNumberFormatter() { + if (this.parent) { + return this.parent.getNumberFormatter(); + } else { + return super.getNumberFormatter(); + } + } + getDateFormatter() { + if (this.parent) { + return this.parent.getDateFormatter(); + } else { + return super.getDateFormatter(); + } + } + getDurationFormatter() { + if (this.parent) { + return this.parent.getDurationFormatter(); + } else { + return super.getDurationFormatter(); + } + } + }; + Text.className = "Text"; + Text.classNames = Sprite.classNames.concat([Text.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/ResizeSensor.js + var Native = class { + constructor() { + this._targets = []; + this._observer = new ResizeObserver((entries2) => { + each(entries2, (entry) => { + each(this._targets, (x) => { + if (x.target === entry.target) { + x.callback(); + } + }); + }); + }); + } + addTarget(target, callback) { + this._observer.observe(target, { box: "border-box" }); + this._targets.push({ target, callback }); + } + removeTarget(target) { + this._observer.unobserve(target); + keepIf(this._targets, (x) => { + return x.target !== target; + }); + } + }; + var Raf = class _Raf { + constructor() { + this._timer = null; + this._targets = []; + } + addTarget(target, callback) { + if (this._timer === null) { + let lastTime = null; + const loop = () => { + const currentTime = Date.now(); + if (lastTime === null || currentTime > lastTime + _Raf.delay) { + lastTime = currentTime; + each(this._targets, (x) => { + let newSize = x.target.getBoundingClientRect(); + if (newSize.width !== x.size.width || newSize.height !== x.size.height) { + x.size = newSize; + x.callback(); + } + }); + } + if (this._targets.length === 0) { + this._timer = null; + } else { + this._timer = requestAnimationFrame(loop); + } + }; + this._timer = requestAnimationFrame(loop); + } + let size = { width: 0, height: 0, left: 0, right: 0, top: 0, bottom: 0, x: 0, y: 0 }; + this._targets.push({ target, callback, size }); + } + removeTarget(target) { + keepIf(this._targets, (x) => { + return x.target !== target; + }); + if (this._targets.length === 0) { + if (this._timer !== null) { + cancelAnimationFrame(this._timer); + this._timer = null; + } + } + } + }; + Raf.delay = 200; + var observer = null; + function makeSensor() { + if (observer === null) { + if (typeof ResizeObserver !== "undefined") { + observer = new Native(); + } else { + observer = new Raf(); + } + } + return observer; + } + var ResizeSensor = class { + constructor(element, callback) { + this._disposed = false; + this._sensor = makeSensor(); + this._element = element; + this._listener = onZoom(callback); + this._sensor.addTarget(element, callback); + } + isDisposed() { + return this._disposed; + } + dispose() { + if (!this._disposed) { + this._disposed = true; + this._sensor.removeTarget(this._element); + this._listener.dispose(); + } + } + get sensor() { + return this._sensor; + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/InterfaceColors.js + var InterfaceColors = class extends Entity { + }; + InterfaceColors.className = "InterfaceColors"; + InterfaceColors.classNames = Entity.classNames.concat([InterfaceColors.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Label.js + var Label = class extends Container { + constructor() { + super(...arguments); + this._textKeys = [ + "text", + "fill", + "fillGradient", + "fillOpacity", + "textAlign", + "fontFamily", + "fontSize", + "fontStyle", + "fontWeight", + "fontStyle", + "fontVariant", + "textDecoration", + "shadowColor", + "shadowBlur", + "shadowOffsetX", + "shadowOffsetY", + "shadowOpacity", + // "leading", + // "letterSpacing", + "lineHeight", + "baselineRatio", + //"padding", + // "stroke", + // "strokeThickness", + // "trim", + // "wordWrap", + "direction", + "textBaseline", + "oversizedBehavior", + "breakWords", + "ellipsis", + "minScale", + "populateText", + "role", + "ignoreFormatting", + "maxChars", + "ariaLabel" + ]; + } + /** + * @ignore Text is not to be used directly + */ + get text() { + return this._text; + } + _afterNew() { + super._afterNew(); + this._makeText(); + each(this._textKeys, (property) => { + const propValue = this.get(property); + if (propValue != void 0) { + this._text.set(property, propValue); + } + }); + if (this.get("html", "") !== "") { + this._text.set("text", ""); + } + this.onPrivate("maxWidth", () => { + this._setMaxDimentions(); + }); + this.onPrivate("maxHeight", () => { + this._setMaxDimentions(); + }); + } + _makeText() { + this._text = this.children.push(Text.new(this._root, {})); + } + _updateChildren() { + super._updateChildren(); + const text = this._text; + each(this._textKeys, (property) => { + this._text.set(property, this.get(property)); + }); + if (this.isDirty("maxWidth") || this.isDirty("maxHeight") || this.isDirty("rotation")) { + this._setMaxDimentions(); + } + if (this.get("html", "") !== "") { + text.set("text", ""); + } else { + text.set("text", this.get("text")); + this._maybeUpdateHTMLColor(); + } + if (this.isDirty("fill") || this.isDirty("fillGradient")) { + this._maybeUpdateHTMLColor(); + } + if (this.isDirty("textAlign") || this.isDirty("width")) { + const textAlign = this.get("textAlign"); + let x; + if (this.get("width") != null) { + if (textAlign == "right") { + x = p100; + } else if (textAlign == "center") { + x = p50; + } else { + x = 0; + } + } else { + if (textAlign == "left" || textAlign == "start") { + x = this.get("paddingLeft", 0); + } else if (textAlign == "right" || textAlign == "end") { + x = -this.get("paddingRight", 0); + } + } + text.set("x", x); + } + const background = this.get("background"); + if (background) { + background.setPrivate("visible", text._display.textVisible); + } + } + _maybeUpdateHTMLColor() { + const htmlElement = this.getPrivate("htmlElement"); + if (htmlElement && this.get("fill")) { + htmlElement.style.color = this.get("fill").toCSSHex(); + } + } + _setMaxDimentions() { + const rotation = this.get("rotation"); + const vertical = rotation == 90 || rotation == 270 || rotation == -90; + const text = this._text; + const maxWidth = this.get("maxWidth", this.getPrivate("maxWidth", Infinity)); + if (isNumber(maxWidth)) { + text.set(vertical ? "maxHeight" : "maxWidth", maxWidth - this.get("paddingTop", 0) - this.get("paddingBottom", 0)); + } else { + text.set(vertical ? "maxHeight" : "maxWidth", void 0); + } + const maxHeight = this.get("maxHeight", this.getPrivate("maxHeight", Infinity)); + if (isNumber(maxHeight)) { + text.set(vertical ? "maxWidth" : "maxHeight", maxHeight - this.get("paddingLeft", 0) - this.get("paddingRight", 0)); + } else { + text.set(vertical ? "maxWidth" : "maxHeight", void 0); + } + this.root.events.once("frameended", () => { + text.markDirtyBounds(); + }); + } + _setDataItem(dataItem) { + super._setDataItem(dataItem); + this._markDirtyKey("text"); + this._markDirtyKey("html"); + const text = this._text; + if (text.get("populateText")) { + text.markDirtyText(); + } + const html = this.get("html"); + if (html && html !== "") { + this._updateHTMLContent(); + } + } + /** + * Returns text with populated placeholders and formatting if `populateText` is + * set to `true`. + * + * @return Populated text + */ + getText() { + return this._text._getText(); + } + /** + * Returns "aria-label" text with populated placeholders and formatting + * if `populateText` is set to `true`. + * + * @return Populated text + */ + getAccessibleText() { + return this._text._getAccessibleText(); + } + }; + Label.className = "Label"; + Label.classNames = Container.classNames.concat([Label.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/PointedRectangle.js + var PointedRectangle = class extends Graphics { + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("pointerBaseWidth") || this.isDirty("cornerRadius") || this.isDirty("pointerLength") || this.isDirty("pointerX") || this.isDirty("pointerY") || this.isDirty("width") || this.isDirty("height")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear) { + this.markDirtyBounds(); + let w = this.width(); + let h = this.height(); + if (w > 0 && h > 0) { + let cr = this.get("cornerRadius", 8); + cr = fitToRange(cr, 0, Math.min(w / 2, h / 2)); + let x = this.get("pointerX", 0); + let y = this.get("pointerY", 0); + let bwh = this.get("pointerBaseWidth", 15) / 2; + let xtl = 0; + let ytl = 0; + let xtr = w; + let ytr = 0; + let xbr = w; + let ybr = h; + let xbl = 0; + let ybl = h; + let d1 = (x - xtl) * (ybr - ytl) - (y - ytl) * (xbr - xtl); + let d2 = (x - xbl) * (ytr - ybl) - (y - ybl) * (xtr - xbl); + const display = this._display; + display.moveTo(cr, 0); + if (d1 > 0 && d2 > 0) { + let stemX = Math.round(fitToRange(x, cr + bwh, w - bwh - cr)); + y = fitToRange(y, -Infinity, 0); + display.lineTo(stemX - bwh, 0); + display.lineTo(x, y); + display.lineTo(stemX + bwh, 0); + } + display.lineTo(w - cr, 0); + display.arcTo(w, 0, w, cr, cr); + if (d1 > 0 && d2 < 0) { + let stemY = Math.round(fitToRange(y, cr + bwh, h - bwh - cr)); + x = fitToRange(x, w, Infinity); + display.lineTo(w, cr); + display.lineTo(w, Math.max(stemY - bwh, cr)); + display.lineTo(x, y); + display.lineTo(w, stemY + bwh); + } + display.lineTo(w, h - cr); + display.arcTo(w, h, w - cr, h, cr); + if (d1 < 0 && d2 < 0) { + let stemX = Math.round(fitToRange(x, cr + bwh, w - bwh - cr)); + y = fitToRange(y, h, Infinity); + display.lineTo(w - cr, h); + display.lineTo(stemX + bwh, h); + display.lineTo(x, y); + display.lineTo(stemX - bwh, h); + } + display.lineTo(cr, h); + display.arcTo(0, h, 0, h - cr, cr); + if (d1 < 0 && d2 > 0) { + let stemY = Math.round(fitToRange(y, cr + bwh, h - cr - bwh)); + x = fitToRange(x, -Infinity, 0); + display.lineTo(0, h - cr); + display.lineTo(0, stemY + bwh); + display.lineTo(x, y); + display.lineTo(0, Math.max(stemY - bwh, cr)); + } + display.lineTo(0, cr); + display.arcTo(0, 0, cr, 0, cr); + display.closePath(); + } + } + } + }; + PointedRectangle.className = "PointedRectangle"; + PointedRectangle.classNames = Graphics.classNames.concat([PointedRectangle.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Tooltip.js + var Tooltip = class extends Container { + constructor(root2, settings, isReal, templates = []) { + super(root2, settings, isReal, templates); + this._fx = 0; + this._fy = 0; + this._w = 0; + this._h = 0; + this._htmlContentHovered = false; + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["tooltip"]); + super._afterNew(); + const background = this._setDefaultFn("background", () => { + return PointedRectangle.new(this._root, {}); + }); + background.set("themeTags", ["tooltip", "background"]); + this._label = this.children.push(Label.new(this._root, {})); + this._disposers.push(this._label.events.on("boundschanged", () => { + this._updateBackground(); + })); + this._disposers.push(this.on("bounds", () => { + this._updateBackground(); + })); + this._updateTextColor(); + this._root.tooltipContainer.children.push(this); + this.hide(0); + this._disposers.push(this.label.onPrivate("htmlElement", (htmlElement) => { + if (htmlElement) { + this._disposers.push(addEventListener(htmlElement, "pointerover", (_ev) => { + this._htmlContentHovered = true; + })); + this._disposers.push(addEventListener(htmlElement, "pointerout", (_ev) => { + this._htmlContentHovered = false; + })); + } + })); + this.on("visible", (_ev) => { + this._handleReaderAnnouncement(); + }); + this.label.events.on("dataitemchanged", (_ev) => { + this._handleReaderAnnouncement(); + }); + this._root._tooltips.push(this); + } + _handleReaderAnnouncement() { + if (this.get("readerAnnounce") && this.isVisibleDeep()) { + this._root.readerAlert(this.label.getAccessibleText()); + } + } + /** + * A [[Label]] element for the tooltip. + * + * @readonly + * @return Label + */ + get label() { + return this._label; + } + /** + * Permanently disposes the tooltip. + */ + _dispose() { + super._dispose(); + remove(this._root._tooltips, this); + } + _updateChildren() { + super._updateChildren(); + if (this.isDirty("pointerOrientation") || this.isPrivateDirty("minWidth") || this.isPrivateDirty("minHeight")) { + this.get("background")._markDirtyKey("width"); + } + const labelText = this.get("labelText"); + if (labelText != null) { + this.label.set("text", this.get("labelText")); + } + const labelHTML = this.get("labelHTML"); + if (labelHTML != null) { + this.label.set("html", this.get("labelHTML")); + } + const labelAriaLabel = this.get("labelAriaLabel"); + if (labelAriaLabel != null) { + this.label.set("ariaLabel", this.get("labelAriaLabel")); + } + } + _changed() { + super._changed(); + if (this.isDirty("pointTo") || this.isDirty("pointerOrientation")) { + this._updateBackground(); + } + if (this.isDirty("tooltipTarget")) { + this.updateBackgroundColor(); + } + if (this.isDirty("keepTargetHover")) { + const keephover = this.get("keepTargetHover"); + if (keephover) { + const bg = this.get("background"); + this._keepHoverDp = new MultiDisposer([ + bg.events.on("pointerover", (_ev) => { + let target = this.get("tooltipTarget"); + if (target) { + if (target.parent && target.parent.getPrivate("tooltipTarget") == target) { + target = target.parent; + } + target.hover(); + } + }), + bg.events.on("pointerout", (_ev) => { + let target = this.get("tooltipTarget"); + if (target) { + if (target.parent && target.parent.getPrivate("tooltipTarget") == target) { + target = target.parent; + } + if (!this._htmlContentHovered) { + target.unhover(); + } + } + }) + ]); + this.label.onPrivate("htmlElement", (htmlElement) => { + if (this._keepHoverDp && htmlElement) { + this._keepHoverDp.disposers.push(addEventListener(htmlElement, "pointerleave", (ev) => { + const outEvent = this.root._renderer.getEvent(ev); + bg.events.dispatch("pointerout", { + type: "pointerout", + originalEvent: outEvent.event, + point: outEvent.point, + simulated: false, + target: bg + }); + })); + } + }); + } else { + if (this._keepHoverDp) { + this._keepHoverDp.dispose(); + this._keepHoverDp = void 0; + } + } + } + } + _onShow() { + super._onShow(); + this.updateBackgroundColor(); + } + updateBackgroundColor() { + let tooltipTarget = this.get("tooltipTarget"); + const background = this.get("background"); + let fill; + let stroke; + if (tooltipTarget && background) { + fill = tooltipTarget.get("fill"); + stroke = tooltipTarget.get("stroke"); + if (fill == null) { + fill = stroke; + } + if (this.get("getFillFromSprite")) { + if (this._fillDp) { + this._fillDp.dispose(); + } + if (fill != null) { + background.set("fill", fill); + } + this._fillDp = tooltipTarget.on("fill", (fill2) => { + if (fill2 != null) { + background.set("fill", fill2); + this._updateTextColor(fill2); + } + }); + this._disposers.push(this._fillDp); + } + if (this.get("getFillGradientFromSprite")) { + if (this._fillGrDp) { + this._fillGrDp.dispose(); + } + let fillGradient = tooltipTarget.get("fillGradient"); + if (fillGradient != null) { + background.set("fillGradient", fillGradient); + } + this._fillGrDp = tooltipTarget.on("fillGradient", (fillGradient2) => { + if (fillGradient2 != null) { + background.set("fillGradient", fillGradient2); + } + }); + this._disposers.push(this._fillGrDp); + } + if (this.get("getStrokeFromSprite")) { + if (this._strokeDp) { + this._strokeDp.dispose(); + } + if (fill != null) { + background.set("stroke", fill); + } + this._strokeDp = tooltipTarget.on("fill", (fill2) => { + if (fill2 != null) { + background.set("stroke", fill2); + } + }); + this._disposers.push(this._strokeDp); + } + if (this.get("getLabelFillFromSprite")) { + if (this._labelDp) { + this._labelDp.dispose(); + } + if (fill != null) { + this.label.set("fill", fill); + } + this._labelDp = tooltipTarget.on("fill", (fill2) => { + if (fill2 != null) { + this.label.set("fill", fill2); + } + }); + this._disposers.push(this._labelDp); + } + } + this._updateTextColor(fill); + } + _updateTextColor(fill) { + if (this.get("autoTextColor")) { + if (fill == null) { + fill = this.get("background").get("fill"); + } + if (fill == null) { + fill = this._root.interfaceColors.get("background"); + } + if (fill instanceof Color) { + this.label.set("fill", Color.alternative(fill, this._root.interfaceColors.get("alternativeText"), this._root.interfaceColors.get("text"))); + } + } + } + _setDataItem(dataItem) { + super._setDataItem(dataItem); + this.label._setDataItem(dataItem); + } + _updateBackground() { + super.updateBackground(); + const parent = this._root.container; + if (parent) { + let cw = 0.5; + let ch = 0.5; + let centerX = this.get("centerX"); + if (centerX instanceof Percent) { + cw = centerX.value; + } + let centerY = this.get("centerY"); + if (centerY instanceof Percent) { + ch = centerY.value; + } + let parentW = parent.width(); + let parentH = parent.height(); + let tooltipContainer = this.parent; + let xx = 0; + let yy = 0; + if (tooltipContainer) { + xx = tooltipContainer.x(); + yy = tooltipContainer.y(); + const layerMargin = tooltipContainer.get("layerMargin"); + if (layerMargin) { + xx += layerMargin.left || 0; + yy += layerMargin.top || 0; + parentW += (layerMargin.left || 0) + (layerMargin.right || 0); + parentH += (layerMargin.top || 0) + (layerMargin.bottom || 0); + } + } + const bounds = this.get("bounds", { left: -xx, top: -yy, right: parentW - xx, bottom: parentH - yy }); + this._updateBounds(); + let w = this.width(); + let h = this.height(); + if (w === 0) { + w = this._w; + } + if (h === 0) { + h = this._h; + } + let pointTo = this.get("pointTo", { x: parentW / 2, y: parentH / 2 }); + let x = pointTo.x; + let y = pointTo.y; + let pointerOrientation = this.get("pointerOrientation"); + let background = this.get("background"); + let pointerLength = 0; + let bgStrokeSizeY = 0; + let bgStrokeSizeX = 0; + if (background instanceof PointedRectangle) { + pointerLength = background.get("pointerLength", 0); + bgStrokeSizeY = background.get("strokeWidth", 0) / 2; + bgStrokeSizeX = bgStrokeSizeY; + background.set("width", w); + background.set("height", h); + } + let pointerX = 0; + let pointerY = 0; + let boundsW = bounds.right - bounds.left; + let boundsH = bounds.bottom - bounds.top; + if (pointerOrientation == "horizontal" || pointerOrientation == "left" || pointerOrientation == "right") { + bgStrokeSizeY = 0; + if (pointerOrientation == "horizontal") { + if (x > bounds.left + boundsW / 2) { + x -= w * (1 - cw) + pointerLength; + bgStrokeSizeX *= -1; + } else { + x += w * cw + pointerLength; + } + } else if (pointerOrientation == "left") { + x += w * (1 - cw) + pointerLength; + } else { + x -= w * cw + pointerLength; + bgStrokeSizeX *= -1; + } + } else { + bgStrokeSizeX = 0; + if (pointerOrientation == "vertical") { + if (y > bounds.top + h / 2 + pointerLength) { + y -= h * (1 - ch) + pointerLength; + } else { + y += h * ch + pointerLength; + bgStrokeSizeY *= -1; + } + } else if (pointerOrientation == "down") { + y -= h * (1 - ch) + pointerLength; + } else { + y += h * ch + pointerLength; + bgStrokeSizeY *= -1; + } + } + x = fitToRange(x, bounds.left + w * cw, bounds.left + boundsW - w * (1 - cw)) + bgStrokeSizeX; + y = fitToRange(y, bounds.top + h * ch, bounds.top + boundsH - h * (1 - ch)) - bgStrokeSizeY; + pointerX = pointTo.x - x + w * cw + bgStrokeSizeX; + pointerY = pointTo.y - y + h * ch - bgStrokeSizeY; + this._fx = x; + this._fy = y; + const animationDuration = this.get("animationDuration", 0); + if (animationDuration > 0 && this.get("visible") && this.get("opacity") > 0.1) { + const animationEasing = this.get("animationEasing"); + this.animate({ key: "x", to: x, duration: animationDuration, easing: animationEasing }); + this.animate({ key: "y", to: y, duration: animationDuration, easing: animationEasing }); + } else { + this.set("x", x); + this.set("y", y); + } + if (background instanceof PointedRectangle) { + background.set("pointerX", pointerX); + background.set("pointerY", pointerY); + } + if (w > 0) { + this._w = w; + } + if (h > 0) { + this._h = h; + } + } + } + }; + Tooltip.className = "Tooltip"; + Tooltip.classNames = Container.classNames.concat([Tooltip.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/NumberFormatter.js + var NumberFormatter = class extends Entity { + _setDefaults() { + this._setDefault("negativeBase", 0); + this._setDefault("numberFormat", "#,###.#####"); + this._setDefault("smallNumberThreshold", 1); + const bns = "_big_number_suffix_"; + const sns = "_small_number_suffix_"; + const bs = "_byte_suffix_"; + this._setDefault("bigNumberPrefixes", [ + { "number": 1e3, "suffix": this._t(bns + "3") }, + { "number": 1e6, "suffix": this._t(bns + "6") }, + { "number": 1e9, "suffix": this._t(bns + "9") }, + { "number": 1e12, "suffix": this._t(bns + "12") }, + { "number": 1e15, "suffix": this._t(bns + "15") }, + { "number": 1e18, "suffix": this._t(bns + "18") }, + { "number": 1e21, "suffix": this._t(bns + "21") }, + { "number": 1e24, "suffix": this._t(bns + "24") } + ]); + this._setDefault("smallNumberPrefixes", [ + { "number": 1e-24, "suffix": this._t(sns + "24") }, + { "number": 1e-21, "suffix": this._t(sns + "21") }, + { "number": 1e-18, "suffix": this._t(sns + "18") }, + { "number": 1e-15, "suffix": this._t(sns + "15") }, + { "number": 1e-12, "suffix": this._t(sns + "12") }, + { "number": 1e-9, "suffix": this._t(sns + "9") }, + { "number": 1e-6, "suffix": this._t(sns + "6") }, + { "number": 1e-3, "suffix": this._t(sns + "3") } + ]); + this._setDefault("bytePrefixes", [ + { "number": 1, suffix: this._t(bs + "B") }, + { "number": 1024, suffix: this._t(bs + "KB") }, + { "number": 1048576, suffix: this._t(bs + "MB") }, + { "number": 1073741824, suffix: this._t(bs + "GB") }, + { "number": 1099511627776, suffix: this._t(bs + "TB") }, + { "number": 1125899906842624, suffix: this._t(bs + "PB") } + ]); + super._setDefaults(); + } + _beforeChanged() { + super._beforeChanged(); + } + /** + * Formats the number according to specific format. + * + * @param value Value to format + * @param format Format to apply + * @return Formatted number + */ + format(value, format, precision) { + if (format == null || isString(format) && format.toLowerCase() === "number") { + format = this.get("numberFormat", ""); + } + let formatted; + let source = Number(value); + if (isObject(format)) { + try { + if (this.get("intlLocales")) { + return new Intl.NumberFormat(this.get("intlLocales"), format).format(source); + } else { + return new Intl.NumberFormat(void 0, format).format(source); + } + } catch (e) { + return "Invalid"; + } + } else { + format = cleanFormat(format); + let info = this.parseFormat(format, this._root.language); + let details; + if (source > this.get("negativeBase")) { + details = info.positive; + } else if (source < this.get("negativeBase")) { + details = info.negative; + } else { + details = info.zero; + } + if (precision != null && !details.mod) { + details = copy2(details); + details.decimals.active = source == 0 ? 0 : precision; + } + formatted = details.template.split(PLACEHOLDER).join(this.applyFormat(source, details)); + } + if (this.get("forceLTR") === true) { + formatted = "\u200E" + formatted; + } + return formatted; + } + /** + * Parses supplied format into structured object which can be used to format + * the number. + * + * @param format Format string, i.e. "#,###.00" + * @param language Language + * @ignore + */ + parseFormat(format, language) { + const thousandSeparator = language.translateEmpty("_thousandSeparator"); + const decimalSeparator = language.translateEmpty("_decimalSeparator"); + let info = { + "positive": { + "thousands": { + "active": -1, + "passive": -1, + "interval": -1, + "separator": thousandSeparator + }, + "decimals": { + "active": -1, + "passive": -1, + "separator": decimalSeparator + }, + "template": "", + "source": "", + "parsed": false + }, + "negative": { + "thousands": { + "active": -1, + "passive": -1, + "interval": -1, + "separator": thousandSeparator + }, + "decimals": { + "active": -1, + "passive": -1, + "separator": decimalSeparator + }, + "template": "", + "source": "", + "parsed": false + }, + "zero": { + "thousands": { + "active": -1, + "passive": -1, + "interval": -1, + "separator": thousandSeparator + }, + "decimals": { + "active": -1, + "passive": -1, + "separator": decimalSeparator + }, + "template": "", + "source": "", + "parsed": false + } + }; + format = format.replace("||", PLACEHOLDER2); + let parts = format.split("|"); + info.positive.source = parts[0]; + if (typeof parts[2] === "undefined") { + info.zero = info.positive; + } else { + info.zero.source = parts[2]; + } + if (typeof parts[1] === "undefined") { + info.negative = info.positive; + } else { + info.negative.source = parts[1]; + } + each2(info, (_part, item) => { + if (item.parsed) { + return; + } + let partFormat = item.source; + if (partFormat.toLowerCase() === "number") { + partFormat = this.get("numberFormat", "#,###.#####"); + } + let chunks = TextFormatter.chunk(partFormat, true); + for (let i = 0; i < chunks.length; i++) { + let chunk = chunks[i]; + chunk.text = chunk.text.replace(PLACEHOLDER2, "|"); + if (chunk.type === "value") { + let matches = chunk.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESP‰!]?/); + if (matches) { + if (matches === null || matches[0] === "") { + item.template += chunk.text; + } else { + let mods = matches[0].match(/[abespABESP%‰!]{2}|[abespABESP%‰]{1}$/); + if (mods) { + item.mod = mods[0].toLowerCase(); + item.modSpacing = matches[0].match(/[ ]{1}[abespABESP%‰!]{1}$/) ? true : false; + } + let a = matches[0].split("."); + if (a[0] === "") { + } else { + item.thousands.active = (a[0].match(/0/g) || []).length; + item.thousands.passive = (a[0].match(/\#/g) || []).length + item.thousands.active; + let b = a[0].split(","); + if (b.length === 1) { + } else { + item.thousands.interval = (b.pop() || "").length; + if (item.thousands.interval === 0) { + item.thousands.interval = -1; + } + } + } + if (typeof a[1] === "undefined") { + } else { + item.decimals.active = (a[1].match(/0/g) || []).length; + item.decimals.passive = (a[1].match(/\#/g) || []).length + item.decimals.active; + } + item.template += chunk.text.split(matches[0]).join(PLACEHOLDER); + } + } + } else { + item.template += chunk.text; + } + } + item.parsed = true; + }); + return info; + } + /** + * Applies parsed format to a numeric value. + * + * @param value Value + * @param details Parsed format as returned by parseFormat() + * @return Formatted number + * @ignore + */ + applyFormat(value, details) { + let negative = value < 0; + value = Math.abs(value); + let prefix = "", suffix = ""; + let mods = details.mod ? details.mod.split("") : []; + if (mods.indexOf("b") !== -1) { + let a2 = this.applyPrefix(value, this.get("bytePrefixes"), mods.indexOf("!") !== -1); + value = a2[0]; + prefix = a2[1]; + suffix = a2[2]; + if (details.modSpacing) { + suffix = " " + suffix; + } + } else if (mods.indexOf("a") !== -1) { + let a2 = this.applyPrefix(value, value < this.get("smallNumberThreshold") ? this.get("smallNumberPrefixes") : this.get("bigNumberPrefixes"), mods.indexOf("!") !== -1); + value = a2[0]; + prefix = a2[1]; + suffix = a2[2]; + if (details.modSpacing) { + suffix = " " + suffix; + } + } else if (mods.indexOf("p") !== -1) { + let ol = Math.min(value.toString().length + 2, 21); + value = parseFloat(value.toPrecision(ol)); + prefix = this._root.language.translate("_percentPrefix"); + suffix = this._root.language.translate("_percentSuffix"); + if (prefix == "" && suffix == "") { + suffix = "%"; + } + } else if (mods.indexOf("%") !== -1) { + let ol = Math.min(value.toString().length + 2, 21); + value *= 100; + value = parseFloat(value.toPrecision(ol)); + suffix = "%"; + } else if (mods.indexOf("\u2030") !== -1) { + let ol = Math.min(value.toString().length + 3, 21); + value *= 1e3; + value = parseFloat(value.toPrecision(ol)); + suffix = "\u2030"; + } + if (mods.indexOf("e") !== -1) { + let exp; + if (details.decimals.passive >= 0) { + exp = value.toExponential(details.decimals.passive).split("e"); + } else { + exp = value.toExponential().split("e"); + } + value = Number(exp[0]); + suffix = "e" + exp[1]; + if (details.modSpacing) { + suffix = " " + suffix; + } + } else if (details.decimals.passive === 0) { + value = Math.round(value); + } else if (details.decimals.passive > 0) { + const decimals = decimalPlaces(value); + if (decimals > 0) { + const d = Math.pow(10, details.decimals.passive); + value = Math.round(parseFloat((value * d).toFixed(decimals))) / d; + } + } + let res = ""; + let a = numberToString(value).split("."); + let ints = a[0]; + if (ints.length < details.thousands.active) { + ints = Array(details.thousands.active - ints.length + 1).join("0") + ints; + } + if (details.thousands.interval > 0) { + let ip = []; + let intsr = ints.split("").reverse().join(""); + for (let i = 0, len = ints.length; i <= len; i += details.thousands.interval) { + let c = intsr.substr(i, details.thousands.interval).split("").reverse().join(""); + if (c !== "") { + ip.unshift(c); + } + } + ints = ip.join(details.thousands.separator); + } + res += ints; + if (a.length === 1) { + a.push(""); + } + let decs = a[1]; + if (decs.length < details.decimals.active) { + decs += Array(details.decimals.active - decs.length + 1).join("0"); + } + if (decs !== "") { + res += details.decimals.separator + decs; + } + if (res === "") { + res = "0"; + } + if (value !== 0 && negative && mods.indexOf("s") === -1) { + res = "-" + res; + } + if (prefix) { + res = prefix + res; + } + if (suffix) { + res += suffix; + } + return res; + } + applyPrefix(value, prefixes, force = false) { + let newvalue = value; + let prefix = ""; + let suffix = ""; + let applied = false; + let k = 1; + for (let i = 0, len = prefixes.length; i < len; i++) { + if (prefixes[i].number <= value) { + if (prefixes[i].number === 0) { + newvalue = 0; + } else { + newvalue = value / prefixes[i].number; + k = prefixes[i].number; + } + prefix = prefixes[i].prefix; + suffix = prefixes[i].suffix; + applied = true; + } + } + if (!applied && force && prefixes.length && value != 0) { + newvalue = value / prefixes[0].number; + prefix = prefixes[0].prefix; + suffix = prefixes[0].suffix; + applied = true; + } + if (applied) { + newvalue = parseFloat(newvalue.toPrecision(Math.min(k.toString().length + Math.floor(newvalue).toString().replace(/[^0-9]*/g, "").length, 21))); + } + return [newvalue, prefix, suffix]; + } + /** + * Replaces brackets with temporary placeholders. + * + * @ignore Exclude from docs + * @param text Input text + * @return Escaped text + */ + escape(text) { + return text.replace("||", PLACEHOLDER2); + } + /** + * Replaces placeholders back to brackets. + * + * @ignore Exclude from docs + * @param text Escaped text + * @return Unescaped text + */ + unescape(text) { + return text.replace(PLACEHOLDER2, "|"); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Timezone.js + function parseDate(timezone, date) { + let year = 0; + let month = 0; + let day = 1; + let hour = 0; + let minute = 0; + let second = 0; + let millisecond = 0; + let weekday = 0; + timezone.formatToParts(date).forEach((x) => { + switch (x.type) { + case "year": + year = +x.value; + break; + case "month": + month = +x.value - 1; + break; + case "day": + day = +x.value; + break; + case "hour": + hour = +x.value; + break; + case "minute": + minute = +x.value; + break; + case "second": + second = +x.value; + break; + case "fractionalSecond": + millisecond = +x.value; + break; + case "weekday": + switch (x.value) { + case "Sun": + weekday = 0; + break; + case "Mon": + weekday = 1; + break; + case "Tue": + weekday = 2; + break; + case "Wed": + weekday = 3; + break; + case "Thu": + weekday = 4; + break; + case "Fri": + weekday = 5; + break; + case "Sat": + weekday = 6; + break; + } + } + }); + if (hour === 24) { + hour = 0; + } + return { year, month, day, hour, minute, second, millisecond, weekday }; + } + function toUTCDate(timezone, date) { + const { year, month, day, hour, minute, second, millisecond } = parseDate(timezone, date); + return Date.UTC(year, month, day, hour, minute, second, millisecond); + } + var Timezone = class { + constructor(timezone, isReal) { + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + this.name = timezone; + this._utc = new Intl.DateTimeFormat("en-US", { + hour12: false, + timeZone: "UTC", + year: "numeric", + month: "2-digit", + day: "2-digit", + hour: "2-digit", + minute: "2-digit", + second: "2-digit", + weekday: "short", + fractionalSecondDigits: 3 + }); + this._dtf = new Intl.DateTimeFormat("en-US", { + hour12: false, + timeZone: timezone, + year: "numeric", + month: "2-digit", + day: "2-digit", + hour: "2-digit", + minute: "2-digit", + second: "2-digit", + weekday: "short", + fractionalSecondDigits: 3 + }); + } + /** + * Use this method to create an instance of this class. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @param timezone IANA timezone + * @return Instantiated object + */ + static new(timezone) { + return new this(timezone, true); + } + convertLocal(date) { + const offset = this.offsetUTC(date); + const userOffset = date.getTimezoneOffset(); + const output = new Date(date); + output.setUTCMinutes(output.getUTCMinutes() - (offset - userOffset)); + const newUserOffset = output.getTimezoneOffset(); + if (userOffset != newUserOffset) { + output.setUTCMinutes(output.getUTCMinutes() + newUserOffset - userOffset); + } + return output; + } + offsetUTC(date) { + const utc = toUTCDate(this._utc, date); + const dtf = toUTCDate(this._dtf, date); + return (utc - dtf) / 6e4; + } + parseDate(date) { + return parseDate(this._dtf, date); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/DateFormatter.js + var DateFormatter = class extends Entity { + _setDefaults() { + this._setDefault("capitalize", true); + this._setDefault("dateFormat", "yyyy-MM-dd"); + super._setDefaults(); + } + _beforeChanged() { + super._beforeChanged(); + } + /** + * Formats a source `Date` object into string format + * @param source inpout date + * @param format Output format + * @param ignoreTimezone Ignore timezone? + * @return Formatted date + */ + format(source, format, ignoreTimezone = false) { + if (typeof format === "undefined" || format === "") { + format = this.get("dateFormat", "yyyy-MM-dd"); + } + let formatted; + let date = source; + if (isObject(format)) { + try { + const locales = this.get("intlLocales"); + if (locales) { + return new Intl.DateTimeFormat(locales, format).format(date); + } else { + return new Intl.DateTimeFormat(void 0, format).format(date); + } + } catch (e) { + return "Invalid"; + } + } + let info = this.parseFormat(format); + const timezone = this._root.timezone; + let originalDate = date; + if (timezone && !this._root.utc && !ignoreTimezone) { + date = timezone.convertLocal(date); + } + if (!isNumber(date.getTime())) { + return "Invalid date"; + } + formatted = this.applyFormat(date, info, ignoreTimezone, originalDate); + if (this.get("capitalize")) { + formatted = formatted.replace(/^.{1}/, formatted.substr(0, 1).toUpperCase()); + } + return formatted; + } + /** + * Applies format to Date. + * + * @param date Date object + * @param info Parsed format information + * @return Formatted date string + */ + applyFormat(date, info, ignoreTimezone = false, originalDate) { + let res = info.template; + let fullYear, month, weekday, day, hours, minutes, seconds, milliseconds, timestamp = date.getTime(); + if (this._root.utc && !ignoreTimezone) { + fullYear = date.getUTCFullYear(); + month = date.getUTCMonth(); + weekday = date.getUTCDay(); + day = date.getUTCDate(); + hours = date.getUTCHours(); + minutes = date.getUTCMinutes(); + seconds = date.getUTCSeconds(); + milliseconds = date.getUTCMilliseconds(); + } else { + fullYear = date.getFullYear(); + month = date.getMonth(); + weekday = date.getDay(); + day = date.getDate(); + hours = date.getHours(); + minutes = date.getMinutes(); + seconds = date.getSeconds(); + milliseconds = date.getMilliseconds(); + } + for (let i = 0, len = info.parts.length; i < len; i++) { + let value = ""; + switch (info.parts[i]) { + case "G": + value = this._t(fullYear < 0 ? "_era_bc" : "_era_ad"); + break; + case "yyyy": + value = Math.abs(fullYear).toString(); + if (fullYear < 0) { + value += this._t("_era_bc"); + } + break; + case "yyy": + case "yy": + case "y": + value = Math.abs(fullYear).toString().substr(-info.parts[i].length); + if (fullYear < 0) { + value += this._t("_era_bc"); + } + break; + case "YYYY": + case "YYY": + case "YY": + case "Y": + let year = getWeekYear(date, this._root.utc); + if (info.parts[i] == "YYYY") { + value = Math.abs(year).toString(); + } else { + value = Math.abs(year).toString().substr(-info.parts[i].length); + } + if (year < 0) { + value += this._t("_era_bc"); + } + break; + case "u": + break; + case "q": + value = "" + Math.ceil((date.getMonth() + 1) / 3); + break; + case "MMMMM": + value = this._t(this._getMonth(month)).substr(0, 1); + break; + case "MMMM": + value = this._t(this._getMonth(month)); + break; + case "MMM": + value = this._t(this._getShortMonth(month)); + break; + case "MM": + value = padString(month + 1, 2, "0"); + break; + case "M": + value = (month + 1).toString(); + break; + case "ww": + value = padString(getWeek(date, this._root.utc), 2, "0"); + break; + case "w": + value = getWeek(date, this._root.utc).toString(); + break; + case "W": + value = getMonthWeek(date, this._root.utc).toString(); + break; + case "dd": + value = padString(day, 2, "0"); + break; + case "d": + value = day.toString(); + break; + case "DD": + case "DDD": + value = padString(getYearDay(date, this._root.utc).toString(), info.parts[i].length, "0"); + break; + case "D": + value = getYearDay(date, this._root.utc).toString(); + break; + case "F": + break; + case "g": + break; + case "t": + value = this._root.language.translateFunc("_dateOrd").call(this, day); + break; + case "E": + value = (weekday || 7).toString(); + break; + case "EE": + value = padString((weekday || 7).toString(), 2, "0"); + break; + case "EEE": + case "eee": + value = this._t(this._getShortWeekday(weekday)); + break; + case "EEEE": + case "eeee": + value = this._t(this._getWeekday(weekday)); + break; + case "EEEEE": + case "eeeee": + value = this._t(this._getShortWeekday(weekday)).substr(0, 1); + break; + case "e": + case "ee": + value = (weekday - (this._root.locale.firstDayOfWeek || 1) + 1).toString(); + if (info.parts[i] == "ee") { + value = padString(value, 2, "0"); + } + break; + case "a": + if (hours >= 12) { + value = this._t("PM"); + } else { + value = this._t("AM"); + } + break; + case "aa": + if (hours >= 12) { + value = this._t("P.M."); + } else { + value = this._t("A.M."); + } + break; + case "aaa": + if (hours >= 12) { + value = this._t("P"); + } else { + value = this._t("A"); + } + break; + case "h": + value = get12Hours(hours).toString(); + break; + case "hh": + value = padString(get12Hours(hours), 2, "0"); + break; + case "H": + value = hours.toString(); + break; + case "HH": + value = padString(hours, 2, "0"); + break; + case "K": + value = get12Hours(hours, 0).toString(); + break; + case "KK": + value = padString(get12Hours(hours, 0), 2, "0"); + break; + case "k": + value = (hours + 1).toString(); + break; + case "kk": + value = padString(hours + 1, 2, "0"); + break; + case "m": + value = minutes.toString(); + break; + case "mm": + value = padString(minutes, 2, "0"); + break; + case "s": + value = seconds.toString(); + break; + case "ss": + value = padString(seconds, 2, "0"); + break; + case "S": + case "SS": + case "SSS": + value = Math.round(milliseconds / 1e3 * Math.pow(10, info.parts[i].length)).toString(); + break; + case "x": + value = timestamp.toString(); + break; + case "n": + case "nn": + case "nnn": + value = padString(milliseconds, info.parts[i].length, "0"); + break; + case "z": + value = getTimeZone(originalDate || date, false, false, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0).replace(/[+-]+[0-9]+$/, ""); + break; + case "zz": + value = getTimeZone(originalDate || date, true, false, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0); + break; + case "zzz": + value = getTimeZone(originalDate || date, false, true, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0).replace(/[+-]+[0-9]+$/, ""); + break; + case "zzzz": + value = getTimeZone(originalDate || date, true, true, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0); + break; + case "Z": + case "ZZ": + let timezone = this._root.utc ? "UTC" : this._root.timezone; + if (timezone instanceof Timezone) { + timezone = timezone.name; + } + const offset = timezone ? getTimezoneOffset(timezone, originalDate || date) : date.getTimezoneOffset(); + let tz = Math.abs(offset) / 60; + let tzh = Math.floor(tz); + let tzm = tz * 60 - tzh * 60; + if (this._root.utc) { + tzh = 0; + tzm = 0; + } + if (info.parts[i] == "Z") { + value = "GMT"; + value += offset > 0 ? "-" : "+"; + value += padString(tzh, 2) + ":" + padString(tzm, 2); + } else { + value = offset > 0 ? "-" : "+"; + value += padString(tzh, 2) + padString(tzm, 2); + } + break; + case "i": + value = date.toISOString(); + break; + case "I": + value = date.toUTCString(); + break; + } + res = res.replace(PLACEHOLDER, value); + } + return res; + } + /** + * Parses format into structured infromation. + * + * @param format Format template + */ + parseFormat(format) { + let info = { + "template": "", + "parts": [] + }; + let chunks = TextFormatter.chunk(format, true); + for (let i = 0; i < chunks.length; i++) { + let chunk = chunks[i]; + if (chunk.type === "value") { + if (chunk.text.match(/^date$/i)) { + let dateFormat = this.get("dateFormat", "yyyy-MM-dd"); + if (!isString(dateFormat)) { + dateFormat = "yyyy-MM-dd"; + } + chunk.text = dateFormat; + } + let matches = chunk.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g); + if (matches) { + for (let x = 0; x < matches.length; x++) { + info.parts.push(matches[x]); + chunk.text = chunk.text.replace(matches[x], PLACEHOLDER); + } + } + } + info.template += chunk.text; + } + return info; + } + _months() { + return ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; + } + _getMonth(index) { + return this._months()[index]; + } + _shortMonths() { + return ["Jan", "Feb", "Mar", "Apr", "May(short)", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; + } + _getShortMonth(index) { + return this._shortMonths()[index]; + } + _weekdays() { + return ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; + } + _getWeekday(index) { + return this._weekdays()[index]; + } + _shortWeekdays() { + return ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; + } + _getShortWeekday(index) { + return this._shortWeekdays()[index]; + } + parse(source, format, utc) { + if (typeof utc === "undefined") { + utc = this._root.utc; + } + if (source instanceof Date) { + return source; + } + if (isNumber(source)) { + return new Date(source); + } + if (format == "x") { + return new Date(parseInt(source)); + } + if (!isString(source)) { + source = source.toString(); + } + let res; + let reg = ""; + format = cleanFormat(format); + format = format.substr(0, source.length); + let info = this.parseFormat(format); + let parsedIndexes = { + "year": -1, + "year3": -1, + "year2": -1, + "year1": -1, + "month": -1, + "monthShort": -1, + "monthLong": -1, + "weekdayShort": -1, + "weekdayLong": -1, + "day": -1, + "yearDay": -1, + "week": -1, + "hourBase0": -1, + "hour12Base0": -1, + "hourBase1": -1, + "hour12Base1": -1, + "minute": -1, + "second": -1, + "millisecond": -1, + "millisecondDigits": -1, + "am": -1, + "zone": -1, + "timestamp": -1, + "iso": -1 + }; + let resValues = { + "year": 1970, + "month": 0, + "day": 1, + "hour": 0, + "minute": 0, + "second": 0, + "millisecond": 0, + "timestamp": null, + "offset": 0, + "utc": utc + }; + let indexAdjust = 0; + let index = 0; + for (let i = 0; i < info.parts.length; i++) { + index = i + indexAdjust + 1; + switch (info.parts[i]) { + case "yyyy": + case "YYYY": + reg += "([0-9]{4})"; + parsedIndexes.year = index; + break; + case "yyy": + case "YYY": + reg += "([0-9]{3})"; + parsedIndexes.year3 = index; + break; + case "yy": + case "YY": + reg += "([0-9]{2})"; + parsedIndexes.year2 = index; + break; + case "y": + case "Y": + reg += "([0-9]{1})"; + parsedIndexes.year1 = index; + break; + case "MMMM": + reg += "(" + this.getStringList(this._months()).join("|") + ")"; + parsedIndexes.monthLong = index; + break; + case "MMM": + reg += "(" + this.getStringList(this._shortMonths()).join("|") + ")"; + parsedIndexes.monthShort = index; + break; + case "MM": + case "M": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.month = index; + break; + case "ww": + case "w": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.week = index; + break; + case "dd": + case "d": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.day = index; + break; + case "DDD": + case "DD": + case "D": + reg += "([0-9]{3}|[0-9]{2}|[0-9]{1})"; + parsedIndexes.yearDay = index; + break; + case "dddd": + reg += "(" + this.getStringList(this._weekdays()).join("|") + ")"; + parsedIndexes.weekdayLong = index; + break; + case "ddd": + reg += "(" + this.getStringList(this._shortWeekdays()).join("|") + ")"; + parsedIndexes.weekdayShort = index; + break; + case "aaa": + case "aa": + case "a": + reg += "(" + this.getStringList(["AM", "PM", "A.M.", "P.M.", "A", "P"]).join("|") + ")"; + parsedIndexes.am = index; + break; + case "hh": + case "h": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.hour12Base1 = index; + break; + case "HH": + case "H": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.hourBase0 = index; + break; + case "KK": + case "K": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.hour12Base0 = index; + break; + case "kk": + case "k": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.hourBase1 = index; + break; + case "mm": + case "m": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.minute = index; + break; + case "ss": + case "s": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.second = index; + break; + case "SSS": + case "SS": + case "S": + reg += "([0-9]{3}|[0-9]{2}|[0-9]{1})"; + parsedIndexes.millisecond = index; + parsedIndexes.millisecondDigits = info.parts[i].length; + break; + case "nnn": + case "nn": + case "n": + reg += "([0-9]{3}|[0-9]{2}|[0-9]{1})"; + parsedIndexes.millisecond = index; + break; + case "x": + reg += "([0-9]{1,})"; + parsedIndexes.timestamp = index; + break; + case "Z": + reg += "GMT([-+]+[0-9]{2}:[0-9]{2})"; + parsedIndexes.zone = index; + break; + case "ZZ": + reg += "([\\-+]+[0-9]{2}[0-9]{2})"; + parsedIndexes.zone = index; + break; + case "i": + reg += "([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2})\\.?([0-9]{0,3})([zZ]|[+\\-][0-9]{2}:?[0-9]{2}|$)"; + parsedIndexes.iso = index; + indexAdjust += 7; + break; + case "G": + case "YYYY": + case "YYY": + case "YY": + case "Y": + case "MMMMM": + case "W": + case "EEEEE": + case "EEEE": + case "EEE": + case "EE": + case "E": + case "eeeee": + case "eeee": + case "eee": + case "ee": + case "e": + case "zzzz": + case "zzz": + case "zz": + case "z": + case "t": + indexAdjust--; + break; + } + reg += "[^0-9]*"; + } + let regex = new RegExp(reg); + let matches = source.match(regex); + if (matches) { + if (parsedIndexes.year > -1) { + resValues.year = parseInt(matches[parsedIndexes.year]); + } + if (parsedIndexes.year3 > -1) { + let val = parseInt(matches[parsedIndexes.year3]); + val += 1e3; + resValues.year = val; + } + if (parsedIndexes.year2 > -1) { + let val = parseInt(matches[parsedIndexes.year2]); + if (val > 50) { + val += 1e3; + } else { + val += 2e3; + } + resValues.year = val; + } + if (parsedIndexes.year1 > -1) { + let val = parseInt(matches[parsedIndexes.year1]); + val = Math.floor((/* @__PURE__ */ new Date()).getFullYear() / 10) * 10 + val; + resValues.year = val; + } + if (parsedIndexes.monthLong > -1) { + resValues.month = this.resolveMonth(matches[parsedIndexes.monthLong]); + } + if (parsedIndexes.monthShort > -1) { + resValues.month = this.resolveShortMonth(matches[parsedIndexes.monthShort]); + } + if (parsedIndexes.month > -1) { + resValues.month = parseInt(matches[parsedIndexes.month]) - 1; + } + if (parsedIndexes.week > -1 && parsedIndexes.day === -1) { + resValues.month = 0; + resValues.day = getDayFromWeek(parseInt(matches[parsedIndexes.week]), resValues.year, 1, utc); + } + if (parsedIndexes.day > -1) { + resValues.day = parseInt(matches[parsedIndexes.day]); + } + if (parsedIndexes.yearDay > -1) { + resValues.month = 0; + resValues.day = parseInt(matches[parsedIndexes.yearDay]); + } + if (parsedIndexes.hourBase0 > -1) { + resValues.hour = parseInt(matches[parsedIndexes.hourBase0]); + } + if (parsedIndexes.hourBase1 > -1) { + resValues.hour = parseInt(matches[parsedIndexes.hourBase1]) - 1; + } + if (parsedIndexes.hour12Base0 > -1) { + let val = parseInt(matches[parsedIndexes.hour12Base0]); + if (val == 11) { + val = 0; + } + if (parsedIndexes.am > -1 && !this.isAm(matches[parsedIndexes.am])) { + val += 12; + } + resValues.hour = val; + } + if (parsedIndexes.hour12Base1 > -1) { + let val = parseInt(matches[parsedIndexes.hour12Base1]); + if (val == 12) { + val = 0; + } + if (parsedIndexes.am > -1 && !this.isAm(matches[parsedIndexes.am])) { + val += 12; + } + resValues.hour = val; + } + if (parsedIndexes.minute > -1) { + resValues.minute = parseInt(matches[parsedIndexes.minute]); + } + if (parsedIndexes.second > -1) { + resValues.second = parseInt(matches[parsedIndexes.second]); + } + if (parsedIndexes.millisecond > -1) { + let val = parseInt(matches[parsedIndexes.millisecond]); + if (parsedIndexes.millisecondDigits == 2) { + val *= 10; + } else if (parsedIndexes.millisecondDigits == 1) { + val *= 100; + } + resValues.millisecond = val; + } + if (parsedIndexes.timestamp > -1) { + resValues.timestamp = parseInt(matches[parsedIndexes.timestamp]); + const ts = new Date(resValues.timestamp); + resValues.year = ts.getUTCFullYear(); + resValues.month = ts.getUTCMonth(); + resValues.day = ts.getUTCDate(); + resValues.hour = ts.getUTCHours(); + resValues.minute = ts.getUTCMinutes(); + resValues.second = ts.getUTCSeconds(); + resValues.millisecond = ts.getUTCMilliseconds(); + } + if (parsedIndexes.zone > -1) { + resValues.offset = this.resolveTimezoneOffset(new Date(resValues.year, resValues.month, resValues.day), matches[parsedIndexes.zone]); + } + if (parsedIndexes.iso > -1) { + resValues.year = toNumber(matches[parsedIndexes.iso + 0]); + resValues.month = toNumber(matches[parsedIndexes.iso + 1]) - 1; + resValues.day = toNumber(matches[parsedIndexes.iso + 2]); + resValues.hour = toNumber(matches[parsedIndexes.iso + 3]); + resValues.minute = toNumber(matches[parsedIndexes.iso + 4]); + resValues.second = toNumber(matches[parsedIndexes.iso + 5]); + resValues.millisecond = toNumber(matches[parsedIndexes.iso + 6]); + if (matches[parsedIndexes.iso + 7] == "Z" || matches[parsedIndexes.iso + 7] == "z") { + resValues.utc = true; + } else if (matches[parsedIndexes.iso + 7] != "") { + resValues.offset = this.resolveTimezoneOffset(new Date(resValues.year, resValues.month, resValues.day), matches[parsedIndexes.iso + 7]); + } + } + if (resValues.utc) { + res = new Date(Date.UTC(resValues.year, resValues.month, resValues.day, resValues.hour, resValues.minute, resValues.second, resValues.millisecond)); + } else { + res = new Date(resValues.year, resValues.month, resValues.day, resValues.hour, resValues.minute + resValues.offset, resValues.second, resValues.millisecond); + } + } else { + res = new Date(source); + } + return res; + } + resolveTimezoneOffset(date, zone) { + let value = zone.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/); + if (value) { + let match = zone.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/); + let dir = match[1]; + let hour = match[2]; + let minute = match[3]; + let offset = parseInt(hour) * 60 + parseInt(minute); + if (dir == "+") { + offset *= -1; + } + let originalOffset = (date || /* @__PURE__ */ new Date()).getTimezoneOffset(); + let diff = offset - originalOffset; + return diff; + } + return 0; + } + /** + * Resolves month name (i.e. "December") into a month number (11). + * + * @param value Month name + * @return Month number + */ + resolveMonth(value) { + let month = this._months().indexOf(value); + if (month > -1) { + return month; + } + if (!this._root.language.isDefault()) { + month = this._root.language.translateAll(this._months()).indexOf(value); + if (month > -1) { + return month; + } + } + return 0; + } + /** + * Resolves short month name (i.e. "Dec") into a month number. + * + * @param value Short month name + * @return Month number + */ + resolveShortMonth(value) { + let month = this._shortMonths().indexOf(value); + if (month > -1) { + return month; + } + month = this._months().indexOf(value); + if (month > -1) { + return month; + } + if (this._root.language && !this._root.language.isDefault()) { + month = this._root.language.translateAll(this._shortMonths()).indexOf(value); + if (month > -1) { + return month; + } + } + return 0; + } + /** + * Checks if passed in string represents AM/PM notation in many of its + * versions. + * + * @param value Source string + * @return Is it AM/PM? + */ + isAm(value) { + let list = this.getStringList(["AM", "A.M.", "A"]); + return list.indexOf(value.toUpperCase()) > -1; + } + /** + * Translates list of strings. + * + * @param list Source strings + * @return Translated strings + */ + getStringList(list) { + let res = []; + for (let i = 0; i < list.length; i++) { + if (this._root.language) { + res.push(escapeForRgex(this._t(list[i]))); + } else { + res.push(escapeForRgex(list[i])); + } + } + return res; + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/DurationFormatter.js + var DurationFormatter = class extends Entity { + constructor() { + super(...arguments); + this._unitAliases = { + "Y": "y", + "D": "d", + "H": "h", + "K": "h", + "k": "h", + "n": "S" + }; + } + _setDefaults() { + const dmillisecond = "_duration_millisecond"; + const dsecond = "_duration_second"; + const dminute = "_duration_minute"; + const dhour = "_duration_hour"; + const dday = "_duration_day"; + const dweek = "_duration_week"; + const dmonth = "_duration_month"; + const dyear = "_duration_year"; + const asecond = "_second"; + const aminute = "_minute"; + const ahour = "_hour"; + const aday = "_day"; + const aweek = "_week"; + const amonth = "_week"; + const ayear = "_year"; + this._setDefault("negativeBase", 0); + this._setDefault("baseUnit", "second"); + this._setDefault("durationFormats", { + "millisecond": { + "millisecond": this._t(dmillisecond), + "second": this._t(dmillisecond + asecond), + "minute": this._t(dmillisecond + aminute), + "hour": this._t(dmillisecond + ahour), + "day": this._t(dmillisecond + aday), + "week": this._t(dmillisecond + aweek), + "month": this._t(dmillisecond + amonth), + "year": this._t(dmillisecond + ayear) + }, + "second": { + "second": this._t(dsecond), + "minute": this._t(dsecond + aminute), + "hour": this._t(dsecond + ahour), + "day": this._t(dsecond + aday), + "week": this._t(dsecond + aweek), + "month": this._t(dsecond + amonth), + "year": this._t(dsecond + ayear) + }, + "minute": { + "minute": this._t(dminute), + "hour": this._t(dminute + ahour), + "day": this._t(dminute + aday), + "week": this._t(dminute + aweek), + "month": this._t(dminute + amonth), + "year": this._t(dminute + ayear) + }, + "hour": { + "hour": this._t(dhour), + "day": this._t(dhour + aday), + "week": this._t(dhour + aweek), + "month": this._t(dhour + amonth), + "year": this._t(dhour + ayear) + }, + "day": { + "day": this._t(dday), + "week": this._t(dday + aweek), + "month": this._t(dday + amonth), + "year": this._t(dday + ayear) + }, + "week": { + "week": this._t(dweek), + "month": this._t(dweek + amonth), + "year": this._t(dweek + ayear) + }, + "month": { + "month": this._t(dmonth), + "year": this._t(dmonth + ayear) + }, + "year": { + "year": this._t(dyear) + } + }); + super._setDefaults(); + } + _beforeChanged() { + super._beforeChanged(); + } + /** + * Formats the number as duration. + * + * For example `1000` (base unit seconds) would be converted to `16:40` as in + * 16 minutes and 40 seconds. + * + * @param value Value to format + * @param format Format to apply + * @param base Override base unit + * @return Formatted number + */ + format(value, format, base) { + let baseUnit = base || this.get("baseUnit"); + if (typeof format === "undefined" || format === "") { + if (this.get("durationFormat") != null) { + format = this.get("durationFormat"); + } else { + format = this.getFormat(toNumber(value), void 0, baseUnit); + } + } + format = cleanFormat(format); + let info = this.parseFormat(format, baseUnit); + let source = Number(value); + let details; + if (source > this.get("negativeBase")) { + details = info.positive; + } else if (source < this.get("negativeBase")) { + details = info.negative; + } else { + details = info.zero; + } + let formatted = this.applyFormat(source, details); + if (details.color !== "") { + formatted = "[" + details.color + "]" + formatted + "[/]"; + } + return formatted; + } + /** + * Parses supplied format into structured object which can be used to format + * the number. + * + * @param format Format string, i.e. "#,###.00" + * @param base Override base unit + * @return Parsed information + */ + parseFormat(format, base) { + let baseUnit = base || this.get("baseUnit"); + let info = { + "positive": { + "color": "", + "template": "", + "parts": [], + "source": "", + "baseUnit": baseUnit, + "parsed": false, + "absolute": false + }, + "negative": { + "color": "", + "template": "", + "parts": [], + "source": "", + "baseUnit": baseUnit, + "parsed": false, + "absolute": false + }, + "zero": { + "color": "", + "template": "", + "parts": [], + "source": "", + "baseUnit": baseUnit, + "parsed": false, + "absolute": false + } + }; + format = format.replace("||", PLACEHOLDER2); + let parts = format.split("|"); + info.positive.source = parts[0]; + if (typeof parts[2] === "undefined") { + info.zero = info.positive; + } else { + info.zero.source = parts[2]; + } + if (typeof parts[1] === "undefined") { + info.negative = info.positive; + } else { + info.negative.source = parts[1]; + } + each2(info, (_part, item) => { + if (item.parsed) { + return; + } + let partFormat = item.source; + let dirs = []; + dirs = item.source.match(/^\[([^\]]*)\]/); + if (dirs && dirs.length && dirs[0] !== "") { + partFormat = item.source.substr(dirs[0].length); + item.color = dirs[1]; + } + let chunks = TextFormatter.chunk(partFormat, true); + for (let i = 0; i < chunks.length; i++) { + let chunk = chunks[i]; + chunk.text = chunk.text.replace(PLACEHOLDER2, "|"); + if (chunk.type === "value") { + if (chunk.text.match(/[yYMdDwhHKkmsSn]+a/)) { + item.absolute = true; + chunk.text = chunk.text.replace(/([yYMdDwhHKkmsSn]+)a/, "$1"); + } + let matches = chunk.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g); + if (matches) { + for (let x = 0; x < matches.length; x++) { + if (matches[x] == null) { + matches[x] = this._unitAliases[matches[x]]; + } + item.parts.push(matches[x]); + chunk.text = chunk.text.replace(matches[x], PLACEHOLDER); + } + } + } + item.template += chunk.text; + } + item.parsed = true; + }); + return info; + } + /** + * Applies parsed format to a numeric value. + * + * @param value Value + * @param details Parsed format as returned by {parseFormat} + * @return Formatted duration + */ + applyFormat(value, details) { + let negative = !details.absolute && value < this.get("negativeBase"); + value = Math.abs(value); + let tstamp = this.toTimeStamp(value, details.baseUnit); + let res = details.template; + const values = { + millisecond: 0, + second: 0, + minute: 0, + hour: 0, + day: 0, + week: 0, + month: 0, + year: 0 + }; + for (let i = 0, len = details.parts.length; i < len; i++) { + let part = details.parts[i]; + let unit = this._toTimeUnit(part.substr(0, 1)); + let ints; + const unitValue = this._getUnitValue(unit); + if (i < len - 1) { + ints = Math.floor(tstamp / unitValue); + } else { + ints = Math.round(tstamp / unitValue); + } + values[unit] += ints; + tstamp -= ints * unitValue; + } + each2(values, (unit, value2) => { + if (unit == "millisecond" && value2 == 1e3) { + values["second"]++; + values["millisecond"] = 0; + } else if (unit == "second" && value2 == 60) { + values["minute"]++; + values["second"] = 0; + } else if (unit == "minute" && value2 == 60) { + values["hour"]++; + values["minute"] = 0; + } else if (unit == "hour" && value2 == 24) { + values["day"]++; + values["hour"] = 0; + } else if (unit == "day" && value2 == 7 && details.parts.indexOf("w") !== -1) { + values["week"]++; + values["day"] = 0; + } else if (unit == "day" && value2 == 30) { + values["month"]++; + values["day"] = 0; + } else if (unit == "month" && value2 == 12) { + values["year"]++; + values["month"] = 0; + } + }); + for (let i = 0, len = details.parts.length; i < len; i++) { + let part = details.parts[i]; + let unit = this._toTimeUnit(part.substr(0, 1)); + let digits = part.length; + res = res.replace(PLACEHOLDER, padString(values[unit], digits, "0")); + } + if (negative) { + res = "-" + res; + } + return res; + } + /** + * Converts numeric value to timestamp in milliseconds. + * + * @param value A source value + * @param baseUnit Base unit the source value is in: "q", "s", "i", "h", "d", "w", "m", "y" + * @return Value representation as a timestamp in milliseconds + */ + toTimeStamp(value, baseUnit) { + return value * this._getUnitValue(baseUnit); + } + _toTimeUnit(code) { + switch (code) { + case "S": + return "millisecond"; + case "s": + return "second"; + case "m": + return "minute"; + case "h": + return "hour"; + case "d": + return "day"; + case "w": + return "week"; + case "M": + return "month"; + case "y": + return "year"; + } + ; + } + /** + * Returns appropriate default format for the value. + * + * If `maxValue` is sepcified, it will use that value to determine the time + * unit for the format. + * + * For example if your `baseUnit` is `"second"` and you pass in `10`, you + * will get `"10"`. + * + * However, you might want it to be formatted in the context of bigger scale, + * say 10 minutes (600 seconds). If you pass in `600` as `maxValue`, all + * values, including small ones will use format with minutes, e.g.: + * `00:10`, `00:50`, `12: 30`, etc. + * + * @param value Value to format + * @param maxValue Maximum value to be used to determine format + * @param baseUnit Base unit of the value + * @return Format + */ + getFormat(value, maxValue, baseUnit) { + if (this.get("durationFormat") != null) { + return this.get("durationFormat"); + } + if (!baseUnit) { + baseUnit = this.get("baseUnit"); + } + if (maxValue != null && value != maxValue) { + value = Math.abs(value); + maxValue = Math.abs(maxValue); + let maxUnit = this.getValueUnit(Math.max(value, maxValue), baseUnit); + return this.get("durationFormats")[baseUnit][maxUnit]; + } else { + let unit = this.getValueUnit(value, baseUnit); + return this.get("durationFormats")[baseUnit][unit]; + } + } + /** + * Returns value's closest denominator time unit, e.g 100 seconds is + * `"minute"`, while 59 seconds would still be `second`. + * + * @param value Source duration value + * @param baseUnit Base unit + * @return Denominator + */ + getValueUnit(value, baseUnit) { + if (!baseUnit) { + baseUnit = this.get("baseUnit"); + } + let currentUnit; + let ms = this.getMilliseconds(value, baseUnit); + eachContinue2(this._getUnitValues(), (key, val) => { + if (key == baseUnit || currentUnit) { + let num = ms / val; + if (num <= 1) { + if (!currentUnit) { + currentUnit = key; + } + return false; + } + currentUnit = key; + } + return true; + }); + return currentUnit; + } + /** + * Converts value to milliseconds according to `baseUnit`. + * + * @param value Source duration value + * @param baseUnit Base unit + * @return Value in milliseconds + */ + getMilliseconds(value, baseUnit) { + if (!baseUnit) { + baseUnit = this.get("baseUnit"); + } + return value * this._getUnitValue(baseUnit); + } + _getUnitValue(timeUnit) { + return this._getUnitValues()[timeUnit]; + } + _getUnitValues() { + return { + "millisecond": 1, + "second": 1e3, + "minute": 6e4, + "hour": 36e5, + "day": 864e5, + "week": 6048e5, + "month": 2592e6, + "year": 31536e6 + }; + } + }; + + // node_modules/@amcharts/amcharts5/locales/en.js + var en_default = { + "firstDayOfWeek": 1, + // Number formatting options. + // + // Please check with the local standards which separator is accepted to be + // used for separating decimals, and which for thousands. + "_decimalSeparator": ".", + "_thousandSeparator": ",", + // Position of the percent sign in numbers + "_percentPrefix": null, + "_percentSuffix": "%", + // Suffixes for numbers + // When formatting numbers, big or small numers might be reformatted to + // shorter version, by applying a suffix. + // + // For example, 1000000 might become "1m". + // Or 1024 might become "1KB" if we're formatting byte numbers. + // + // This section defines such suffixes for all such cases. + "_big_number_suffix_3": "k", + "_big_number_suffix_6": "M", + "_big_number_suffix_9": "G", + "_big_number_suffix_12": "T", + "_big_number_suffix_15": "P", + "_big_number_suffix_18": "E", + "_big_number_suffix_21": "Z", + "_big_number_suffix_24": "Y", + "_small_number_suffix_3": "m", + "_small_number_suffix_6": "\u03BC", + "_small_number_suffix_9": "n", + "_small_number_suffix_12": "p", + "_small_number_suffix_15": "f", + "_small_number_suffix_18": "a", + "_small_number_suffix_21": "z", + "_small_number_suffix_24": "y", + "_byte_suffix_B": "B", + "_byte_suffix_KB": "KB", + "_byte_suffix_MB": "MB", + "_byte_suffix_GB": "GB", + "_byte_suffix_TB": "TB", + "_byte_suffix_PB": "PB", + // Default date formats for various periods. + // + // This should reflect official or de facto formatting universally accepted + // in the country translation is being made for + // Available format codes here: + // https://www.amcharts.com/docs/v5/concepts/formatters/formatting-dates/#Format_codes + // + // This will be used when formatting date/time for particular granularity, + // e.g. "_date_hour" will be shown whenever we need to show time as hours. + // + // "date" is used as in default date format when showing standalone dates. + "_date": "yyyy-MM-dd", + "_date_millisecond": "mm:ss SSS", + "_date_millisecond_full": "HH:mm:ss SSS", + "_date_second": "HH:mm:ss", + "_date_second_full": "HH:mm:ss", + "_date_minute": "HH:mm", + "_date_minute_full": "HH:mm - MMM dd, yyyy", + "_date_hour": "HH:mm", + "_date_hour_short": "HH", + "_date_hour_full": "HH:mm - MMM dd, yyyy", + "_date_day": "MMM dd", + "_date_day_full": "MMM dd, yyyy", + "_date_week": "ww", + "_date_week_full": "MMM dd, yyyy", + "_date_month": "MMM", + "_date_month_full": "MMM, yyyy", + "_date_year": "yyyy", + // Default duration formats for various base units. + // + // This will be used by DurationFormatter to format numeric values into + // duration. + // + // Notice how each duration unit comes in several versions. This is to ensure + // that each base unit is shown correctly. + // + // For example, if we have baseUnit set to "second", meaning our duration is + // in seconds. + // + // If we pass in `50` to formatter, it will know that we have just 50 seconds + // (less than a minute) so it will use format in `"_duration_second"` ("ss"), + // and the formatted result will be in like `"50"`. + // + // If we pass in `70`, which is more than a minute, the formatter will switch + // to `"_duration_second_minute"` ("mm:ss"), resulting in "01:10" formatted + // text. + // + // Available codes here: + // https://www.amcharts.com/docs/v4/concepts/formatters/formatting-duration/#Available_Codes + "_duration_millisecond": "SSS", + "_duration_millisecond_second": "ss.SSS", + "_duration_millisecond_minute": "mm:ss SSS", + "_duration_millisecond_hour": "hh:mm:ss SSS", + "_duration_millisecond_day": "d'd' mm:ss SSS", + "_duration_millisecond_week": "d'd' mm:ss SSS", + "_duration_millisecond_month": "M'm' dd'd' mm:ss SSS", + "_duration_millisecond_year": "y'y' MM'm' dd'd' mm:ss SSS", + "_duration_second": "ss", + "_duration_second_minute": "mm:ss", + "_duration_second_hour": "hh:mm:ss", + "_duration_second_day": "d'd' hh:mm:ss", + "_duration_second_week": "d'd' hh:mm:ss", + "_duration_second_month": "M'm' dd'd' hh:mm:ss", + "_duration_second_year": "y'y' MM'm' dd'd' hh:mm:ss", + "_duration_minute": "mm", + "_duration_minute_hour": "hh:mm", + "_duration_minute_day": "d'd' hh:mm", + "_duration_minute_week": "d'd' hh:mm", + "_duration_minute_month": "M'm' dd'd' hh:mm", + "_duration_minute_year": "y'y' MM'm' dd'd' hh:mm", + "_duration_hour": "hh'h'", + "_duration_hour_day": "d'd' hh'h'", + "_duration_hour_week": "d'd' hh'h'", + "_duration_hour_month": "M'm' dd'd' hh'h'", + "_duration_hour_year": "y'y' MM'm' dd'd' hh'h'", + "_duration_day": "d'd'", + "_duration_day_week": "d'd'", + "_duration_day_month": "M'm' dd'd'", + "_duration_day_year": "y'y' MM'm' dd'd'", + "_duration_week": "w'w'", + "_duration_week_month": "w'w'", + "_duration_week_year": "w'w'", + "_duration_month": "M'm'", + "_duration_month_year": "y'y' MM'm'", + "_duration_year": "y'y'", + // Era translations + "_era_ad": "AD", + "_era_bc": "BC", + // Day part, used in 12-hour formats, e.g. 5 P.M. + // Please note that these come in 3 variants: + // * one letter (e.g. "A") + // * two letters (e.g. "AM") + // * two letters with dots (e.g. "A.M.") + // + // All three need to to be translated even if they are all the same. Some + // users might use one, some the other. + "A": "", + "P": "", + "AM": "", + "PM": "", + "A.M.": "", + "P.M.": "", + // Date-related stuff. + // + // When translating months, if there's a difference, use the form which is + // best for a full date, e.g. as you would use it in "2018 January 1". + // + // Note that May is listed twice. This is because in English May is the same + // in both long and short forms, while in other languages it may not be the + // case. Translate "May" to full word, while "May(short)" to shortened + // version. + // + // Should month names and weekdays be capitalized or not? + // + // Rule of thumb is this: if the names should always be capitalized, + // regardless of name position within date ("January", "21st January 2018", + // etc.) use capitalized names. Otherwise enter all lowercase. + // + // The date formatter will automatically capitalize names if they are the + // first (or only) word in resulting date. + "January": "", + "February": "", + "March": "", + "April": "", + "May": "", + "June": "", + "July": "", + "August": "", + "September": "", + "October": "", + "November": "", + "December": "", + "Jan": "", + "Feb": "", + "Mar": "", + "Apr": "", + "May(short)": "May", + "Jun": "", + "Jul": "", + "Aug": "", + "Sep": "", + "Oct": "", + "Nov": "", + "Dec": "", + // Weekdays. + "Sunday": "", + "Monday": "", + "Tuesday": "", + "Wednesday": "", + "Thursday": "", + "Friday": "", + "Saturday": "", + "Sun": "", + "Mon": "", + "Tue": "", + "Wed": "", + "Thu": "", + "Fri": "", + "Sat": "", + // Date ordinal function. + // + // This is used when adding number ordinal when formatting days in dates. + // + // E.g. "January 1st", "February 2nd". + // + // The function accepts day number, and returns a string to be added to the + // day, like in default English translation, if we pass in 2, we will receive + // "nd" back. + "_dateOrd": function(day) { + let res = "th"; + if (day < 11 || day > 13) { + switch (day % 10) { + case 1: + res = "st"; + break; + case 2: + res = "nd"; + break; + case 3: + res = "rd"; + break; + } + } + return res; + }, + // Various chart controls. + // Shown as a tooltip on zoom out button. + "Zoom Out": "", + // Timeline buttons + "Play": "", + "Stop": "", + // Chart's Legend screen reader title. + "Legend": "", + // Legend's item screen reader indicator. + "Press ENTER to toggle": "", + // Shown when the chart is busy loading something. + "Loading": "", + // Shown as the first button in the breadcrumb navigation, e.g.: + // Home > First level > ... + "Home": "", + // Chart types. + // Those are used as default screen reader titles for the main chart element + // unless developer has set some more descriptive title. + "Chart": "", + "Serial chart": "", + "X/Y chart": "", + "Pie chart": "", + "Gauge chart": "", + "Radar chart": "", + "Sankey diagram": "", + "Flow diagram": "", + "Chord diagram": "", + "TreeMap chart": "", + "Force directed tree": "", + "Sliced chart": "", + // Series types. + // Used to name series by type for screen readers if they do not have their + // name set. + "Series": "", + "Candlestick Series": "", + "OHLC Series": "", + "Column Series": "", + "Line Series": "", + "Pie Slice Series": "", + "Funnel Series": "", + "Pyramid Series": "", + "X/Y Series": "", + // Map-related stuff. + "Map": "", + "Press ENTER to zoom in": "", + "Press ENTER to zoom out": "", + "Use arrow keys to zoom in and out": "", + "Use plus and minus keys on your keyboard to zoom in and out": "", + // Export-related stuff. + // These prompts are used in Export menu labels. + // + // "Export" is the top-level menu item. + // + // "Image", "Data", "Print" as second-level indicating type of export + // operation. + // + // Leave actual format untranslated, unless you absolutely know that they + // would convey more meaning in some other way. + "Export": "", + "Image": "", + "Data": "", + "Print": "", + "Press ENTER or use arrow keys to navigate": "", + "Press ENTER to open": "", + "Press ENTER to print.": "", + "Press ENTER to export as %1.": "", + "(Press ESC to close this message)": "", + "Image Export Complete": "", + "Export operation took longer than expected. Something might have gone wrong.": "", + "Saved from": "", + "PNG": "", + "JPG": "", + "GIF": "", + "SVG": "", + "PDF": "", + "JSON": "", + "CSV": "", + "XLSX": "", + "HTML": "", + // Scrollbar-related stuff. + // + // Scrollbar is a control which can zoom and pan the axes on the chart. + // + // Each scrollbar has two grips: left or right (for horizontal scrollbar) or + // upper and lower (for vertical one). + // + // Prompts change in relation to whether Scrollbar is vertical or horizontal. + // + // The final section is used to indicate the current range of selection. + "Use TAB to select grip buttons or left and right arrows to change selection": "", + "Use left and right arrows to move selection": "", + "Use left and right arrows to move left selection": "", + "Use left and right arrows to move right selection": "", + "Use TAB select grip buttons or up and down arrows to change selection": "", + "Use up and down arrows to move selection": "", + "Use up and down arrows to move lower selection": "", + "Use up and down arrows to move upper selection": "", + "From %1 to %2": "", + "From %1": "", + "To %1": "", + // Data loader-related. + "No parser available for file: %1": "", + "Error parsing file: %1": "", + "Unable to load file: %1": "", + "Invalid date": "", + // Common actions + "Close": "", + "Minimize": "", + "Confirm": "" + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Language.js + var Language = class extends Entity { + _setDefaults() { + this.setPrivate("defaultLocale", en_default); + super._setDefaults(); + } + /** + * Returns a prompt translation. + * + * @param prompt Prompt to translate + * @param locale Target locale + * @param ...rest Parameters + * @return Translation + */ + translate(prompt, locale, ...rest) { + if (!locale) { + locale = this._root.locale || this.getPrivate("defaultLocale"); + } + let translation = prompt; + let value = locale[prompt]; + if (value === null) { + translation = ""; + } else if (value != null) { + if (value) { + translation = value; + } + } else if (locale !== this.getPrivate("defaultLocale")) { + return this.translate(prompt, this.getPrivate("defaultLocale"), ...rest); + } + if (rest.length) { + for (let len = rest.length, i = 0; i < len; ++i) { + translation = translation.split("%" + (i + 1)).join(rest[i]); + } + } + return translation; + } + /** + * Returns a prompt translation, including custom prompts. + * + * @param prompt Prompt to translate + * @param locale Target locale + * @param ...rest Parameters + * @return Translation + */ + translateAny(prompt, locale, ...rest) { + return this.translate(prompt, locale, ...rest); + } + /** + * Add a custom prompt to locale. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/locales/creating-translations/#Extending_locale_with_custom_prompts} + * @param prompt Source prompt + * @param translation Tanslation + * @param locale Target locale + */ + setTranslationAny(prompt, translation, locale) { + const localeTarget = locale || this._root.locale; + localeTarget[prompt] = translation; + } + /** + * Add a batch of custom prompts. + * + * @since 5.3.3 + * @see {@link https://www.amcharts.com/docs/v5/concepts/locales/creating-translations/#Extending_locale_with_custom_prompts} + * @param translations Translations + * @param locale Target locale + */ + setTranslationsAny(translations, locale) { + each2(translations, (key, val) => { + this.setTranslationAny(key, val, locale); + }); + } + translateEmpty(prompt, locale, ...rest) { + let translation = this.translate(prompt, locale, ...rest); + return translation == prompt ? "" : translation; + } + translateFunc(prompt, locale) { + if (this._root.locale[prompt]) { + return this._root.locale[prompt]; + } + if (locale !== this.getPrivate("defaultLocale")) { + return this.translateFunc(prompt, this.getPrivate("defaultLocale")); + } + return () => { + return ""; + }; + } + /** + * Translates a btach of prompts. + * + * @param list Array of prompts to translate + * @param locale Target locale + * @return Array of translations + */ + translateAll(list, locale) { + if (!this.isDefault()) { + return map(list, (x) => this.translate(x, locale)); + } else { + return list; + } + } + /** + * Returns `true` if the currently selected locale is a default locale. + * + * @return `true` if locale is default; `false` if it is not. + */ + isDefault() { + return this.getPrivate("defaultLocale") === this._root.locale; + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/Theme.js + var Theme = class { + constructor(root2, isReal) { + this._rules = {}; + this._root = root2; + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + } + /** + * Use this method to create an instance of this class. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @param root Root element + * @param settings Settings + * @param template Template + * @return Instantiated object + */ + static new(root2) { + const x = new this(root2, true); + x.setupDefaultRules(); + return x; + } + setupDefaultRules() { + } + /** + * Looks up the rules for a specific theme class. + * + * @see {@link https://www.amcharts.com/docs/v5/themes/} for more info + * @param themeClass Theme class + * @return Array> + */ + _lookupRules(themeClass) { + return this._rules[themeClass]; + } + /** + * Creates a [[Template]] for specific theme class and tags. + * + * NOTE: the difference from `rule()` is that `ruleRaw()` does not do any + * type checks. + * + * @see {@link https://www.amcharts.com/docs/v5/themes/} for more info + * @param themeClass Theme class + * @param themeTags Theme tags + * @return Template + */ + ruleRaw(themeClass, themeTags = []) { + let rules = this._rules[themeClass]; + if (!rules) { + rules = this._rules[themeClass] = []; + } + themeTags.sort(compare); + const { index, found } = getSortedIndex(rules, (x) => { + const order = compare(x.tags.length, themeTags.length); + if (order === 0) { + return compareArray(x.tags, themeTags, compare); + } else { + return order; + } + }); + if (found) { + return rules[index].template; + } else { + const template = Template.new({}); + rules.splice(index, 0, { + tags: themeTags, + template + }); + return template; + } + } + /** + * Creates a [[Template]] for specific theme class and tags. + * + * @see {@link https://www.amcharts.com/docs/v5/themes/} for more info + * @param themeClass Theme class + * @param themeTags Theme tags + * @return Template + */ + rule(themeClass, themeTags = []) { + return this.ruleRaw(themeClass, themeTags); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/themes/DefaultTheme.js + function setColor(rule, key, ic, name) { + rule.set(key, ic.get(name)); + ic.on(name, (value) => { + rule.set(key, value); + }); + } + var DefaultTheme = class extends Theme { + setupDefaultRules() { + super.setupDefaultRules(); + const language = this._root.language; + const ic = this._root.interfaceColors; + const horizontalLayout = this._root.horizontalLayout; + const verticalLayout = this._root.verticalLayout; + const r = this.rule.bind(this); + r("InterfaceColors").setAll({ + stroke: Color.fromHex(15066597), + fill: Color.fromHex(15987699), + primaryButton: Color.fromHex(6788316), + primaryButtonHover: Color.fromHex(6779356), + primaryButtonDown: Color.fromHex(6872182), + primaryButtonActive: Color.fromHex(6872182), + primaryButtonDisabled: Color.fromHex(14342874), + primaryButtonTextDisabled: Color.fromHex(16777215), + primaryButtonText: Color.fromHex(16777215), + primaryButtonStroke: Color.fromHex(16777215), + secondaryButton: Color.fromHex(14277081), + secondaryButtonHover: Color.fromHex(10724259), + secondaryButtonDown: Color.fromHex(9276813), + secondaryButtonActive: Color.fromHex(15132390), + secondaryButtonText: Color.fromHex(0), + secondaryButtonStroke: Color.fromHex(16777215), + grid: Color.fromHex(0), + background: Color.fromHex(16777215), + alternativeBackground: Color.fromHex(0), + text: Color.fromHex(0), + alternativeText: Color.fromHex(16777215), + disabled: Color.fromHex(11382189), + positive: Color.fromHex(5288704), + negative: Color.fromHex(11730944) + }); + { + const rule = r("ColorSet"); + rule.setAll({ + passOptions: { + hue: 0.05, + saturation: 0, + lightness: 0 + }, + colors: [ + Color.fromHex(6797276) + ], + step: 1, + //baseColor: Color.fromRGB(103, 183, 220), + //count: 20, + reuse: false, + startIndex: 0 + }); + rule.setPrivate("currentStep", 0); + rule.setPrivate("currentPass", 0); + } + r("Entity").setAll({ + stateAnimationDuration: 0, + stateAnimationEasing: out(cubic) + }); + r("Component").setAll({ + interpolationDuration: 0, + interpolationEasing: out(cubic) + }); + r("Sprite").setAll({ + visible: true, + scale: 1, + opacity: 1, + rotation: 0, + position: "relative", + tooltipX: p50, + tooltipY: p50, + tooltipPosition: "fixed", + isMeasured: true + }); + r("Sprite").states.create("default", { "visible": true, opacity: 1 }); + r("Container").setAll({ + interactiveChildren: true, + setStateOnChildren: false + }); + r("Graphics").setAll({ + strokeWidth: 1 + }); + r("Chart").setAll({ + width: p100, + height: p100, + interactiveChildren: false + }); + r("ZoomableContainer").setAll({ + width: p100, + height: p100, + wheelable: true, + pinchZoom: true, + maxZoomLevel: 32, + minZoomLevel: 1, + zoomStep: 2, + animationEasing: out(cubic), + animationDuration: 600, + maxPanOut: 0.4 + }); + r("Sprite", ["horizontal", "center"]).setAll({ + centerX: p50, + x: p50 + }); + r("Sprite", ["vertical", "center"]).setAll({ + centerY: p50, + y: p50 + }); + r("Container", ["horizontal", "layout"]).setAll({ + layout: horizontalLayout + }); + r("Container", ["vertical", "layout"]).setAll({ + layout: verticalLayout + }); + r("Pattern").setAll({ + repetition: "repeat", + width: 50, + height: 50, + rotation: 0, + fillOpacity: 1 + }); + r("LinePattern").setAll({ + gap: 6, + colorOpacity: 1, + width: 49, + height: 49 + }); + r("RectanglePattern").setAll({ + gap: 6, + checkered: false, + centered: true, + maxWidth: 5, + maxHeight: 5, + width: 48, + height: 48, + strokeWidth: 0 + }); + r("CirclePattern").setAll({ + gap: 5, + checkered: false, + centered: false, + radius: 3, + strokeWidth: 0, + width: 45, + height: 45 + }); + r("GrainPattern").setAll({ + width: 200, + height: 200, + colors: [Color.fromHex(0)], + size: 1, + horizontalGap: 0, + verticalGap: 0, + density: 1, + minOpacity: 0, + maxOpacity: 0.2 + }); + { + const rule = r("PatternSet"); + rule.setAll({ + step: 1 + }); + setColor(rule, "color", ic, "stroke"); + } + r("LinearGradient").setAll({ + rotation: 90 + }); + r("Legend").setAll({ + fillField: "fill", + strokeField: "stroke", + nameField: "name", + layout: GridLayout.new(this._root, {}), + layer: 30, + clickTarget: "itemContainer" + }); + r("Container", ["legend", "item", "itemcontainer"]).setAll({ + paddingLeft: 5, + paddingRight: 5, + paddingBottom: 5, + paddingTop: 5, + layout: horizontalLayout, + setStateOnChildren: true, + interactiveChildren: false, + ariaChecked: true, + focusable: true, + ariaLabel: language.translate("Press ENTER to toggle"), + role: "checkbox" + }); + { + const rule = r("Rectangle", ["legend", "item", "background"]); + rule.setAll({ + fillOpacity: 0 + }); + setColor(rule, "fill", ic, "background"); + } + r("Container", ["legend", "marker"]).setAll({ + setStateOnChildren: true, + centerY: p50, + paddingLeft: 0, + paddingRight: 0, + paddingBottom: 0, + paddingTop: 0, + width: 18, + height: 18 + }); + r("RoundedRectangle", ["legend", "marker", "rectangle"]).setAll({ + width: p100, + height: p100, + cornerRadiusBL: 3, + cornerRadiusTL: 3, + cornerRadiusBR: 3, + cornerRadiusTR: 3 + }); + { + const rule = r("RoundedRectangle", ["legend", "marker", "rectangle"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "disabled"); + setColor(rule, "stroke", ic, "disabled"); + } + r("Label", ["legend", "label"]).setAll({ + centerY: p50, + marginLeft: 5, + paddingRight: 0, + paddingLeft: 0, + paddingTop: 0, + paddingBottom: 0, + populateText: true + }); + { + const rule = r("Label", ["legend", "label"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "disabled"); + } + r("Label", ["legend", "value", "label"]).setAll({ + centerY: p50, + marginLeft: 5, + paddingRight: 0, + paddingLeft: 0, + paddingTop: 0, + paddingBottom: 0, + width: 50, + centerX: p100, + populateText: true + }); + { + const rule = r("Label", ["legend", "value", "label"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "disabled"); + } + r("HeatLegend").setAll({ + stepCount: 1 + }); + r("RoundedRectangle", ["heatlegend", "marker"]).setAll({ + cornerRadiusTR: 0, + cornerRadiusBR: 0, + cornerRadiusTL: 0, + cornerRadiusBL: 0 + }); + r("RoundedRectangle", ["vertical", "heatlegend", "marker"]).setAll({ + height: p100, + width: 15 + }); + r("RoundedRectangle", ["horizontal", "heatlegend", "marker"]).setAll({ + width: p100, + height: 15 + }); + r("HeatLegend", ["vertical"]).setAll({ + height: p100 + }); + r("HeatLegend", ["horizontal"]).setAll({ + width: p100 + }); + r("Label", ["heatlegend", "start"]).setAll({ + paddingLeft: 5, + paddingRight: 5, + paddingTop: 5, + paddingBottom: 5 + }); + r("Label", ["heatlegend", "end"]).setAll({ + paddingLeft: 5, + paddingRight: 5, + paddingTop: 5, + paddingBottom: 5 + }); + { + const rule = r("Label"); + rule.setAll({ + paddingTop: 8, + paddingBottom: 8, + paddingLeft: 10, + paddingRight: 10, + fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', + fontSize: "1em", + populateText: false + }); + setColor(rule, "fill", ic, "text"); + } + r("RadialLabel").setAll({ + textType: "regular", + centerY: p50, + centerX: p50, + inside: false, + radius: 0, + baseRadius: p100, + orientation: "auto", + textAlign: "center" + }); + r("EditableLabel").setAll({ + editOn: "click", + //setStateOnChildren: true, + themeTags: ["editablelabel"], + multiLine: true + }); + r("RoundedRectangle", ["editablelabel", "background"]).setAll({ + fillOpacity: 0, + fill: Color.fromHex(0), + cornerRadiusBL: 3, + cornerRadiusBR: 3, + cornerRadiusTL: 3, + cornerRadiusTR: 3, + strokeOpacity: 0, + stroke: Color.fromHex(0) + }); + { + r("RoundedRectangle", ["editablelabel", "background"]).states.create("active", { + strokeOpacity: 0.2 + }); + } + r("RoundedRectangle").setAll({ + cornerRadiusTL: 8, + cornerRadiusBL: 8, + cornerRadiusTR: 8, + cornerRadiusBR: 8 + }); + r("PointedRectangle").setAll({ + pointerBaseWidth: 15, + pointerLength: 10, + cornerRadius: 8 + }); + r("Slice").setAll({ + shiftRadius: 0, + dRadius: 0, + dInnerRadius: 0 + }); + { + const rule = r("Tick"); + rule.setAll({ + strokeOpacity: 0.15, + isMeasured: false, + length: 4.5, + position: "absolute", + crisp: true + }); + setColor(rule, "stroke", ic, "grid"); + } + r("Bullet").setAll({ + locationX: 0.5, + locationY: 0.5 + }); + r("Tooltip").setAll({ + position: "absolute", + getFillFromSprite: true, + getStrokeFromSprite: false, + autoTextColor: true, + paddingTop: 9, + paddingBottom: 8, + paddingLeft: 10, + paddingRight: 10, + marginBottom: 5, + pointerOrientation: "vertical", + centerX: p50, + centerY: p50, + animationEasing: out(cubic), + exportable: false + //layer: 100 + }); + r("Tooltip", ["system"]).setAll({ + pointerOrientation: "horizontal", + paddingTop: 4, + paddingRight: 7, + paddingBottom: 4, + paddingLeft: 7 + }); + { + const rule = r("PointedRectangle", ["tooltip", "system", "background"]); + rule.setAll({ + strokeOpacity: 0.3 + }); + setColor(rule, "fill", ic, "background"); + setColor(rule, "stroke", ic, "grid"); + } + r("Label", ["tooltip", "system"]).setAll({ + fontSize: 12, + fill: ic.get("background") + }); + r("Polygon").setAll({ + animationEasing: out(cubic) + }); + r("Link").setAll({ + cornerRadius: 8, + setStateOnChildren: true + }); + { + const rule = r("OrthogonalLine", ["link", "line"]); + rule.setAll({ + isMeasured: false, + crisp: true + }); + const stateActive = rule.states.create("active", { + strokeWidth: 2 + }); + setColor(stateActive, "stroke", ic, "negative"); + } + r("OrthogonalLine", ["link", "hit"]).setAll({ + strokeWidth: 10, + opacity: 0, + strokeOpacity: 0 + }); + { + const rule = r("OrthogonalLine"); + rule.setAll({ + strokeWidth: 1, + strokeOpacity: 1, + cornerRadius: 10 + }); + setColor(rule, "stroke", ic, "grid"); + } + { + const rule = r("Triangle", ["link"]); + rule.setAll({ + width: 14, + height: 10, + centerY: 0 + }); + setColor(rule, "fill", ic, "grid"); + setColor(rule, "stroke", ic, "grid"); + rule.states.create("default", { + stateAnimationDuration: 0 + }); + const state = rule.states.create("active", { + stateAnimationDuration: 0, + stroke: color(16777215), + strokeWidth: 2 + }); + state.set("draw", (display) => { + display.arc(0, 0, 11, 0, Math.PI * 2); + display.moveTo(-4, -4); + display.lineTo(4, 4); + display.moveTo(4, -4); + display.lineTo(-4, 4); + }); + setColor(state, "fill", ic, "negative"); + } + { + const rule = r("PointedRectangle", ["tooltip", "background"]); + rule.setAll({ + strokeOpacity: 0.9, + cornerRadius: 4, + pointerLength: 4, + pointerBaseWidth: 8, + fillOpacity: 0.9, + stroke: Color.fromHex(16777215) + }); + } + { + const rule = r("Label", ["tooltip"]); + rule.setAll({ + role: "tooltip", + populateText: true, + paddingRight: 0, + paddingTop: 0, + paddingLeft: 0, + paddingBottom: 0 + }); + setColor(rule, "fill", ic, "alternativeText"); + } + r("Button").setAll({ + paddingTop: 8, + paddingBottom: 8, + paddingLeft: 10, + paddingRight: 10, + interactive: true, + layout: horizontalLayout, + interactiveChildren: false, + setStateOnChildren: true, + focusable: true + }); + r("Button").states.create("hover", {}); + r("Button").states.create("down", { stateAnimationDuration: 0 }); + r("Button").states.create("active", {}); + r("Button").states.create("disabled", { + forceInactive: true + }); + { + const rule = r("RoundedRectangle", ["button", "background"]); + setColor(rule, "fill", ic, "primaryButton"); + setColor(rule, "stroke", ic, "primaryButtonStroke"); + } + { + const rule = r("RoundedRectangle", ["button", "background"]).states.create("hover", {}); + setColor(rule, "fill", ic, "primaryButtonHover"); + } + { + const rule = r("RoundedRectangle", ["button", "background"]).states.create("down", { stateAnimationDuration: 0 }); + setColor(rule, "fill", ic, "primaryButtonDown"); + } + { + const rule = r("RoundedRectangle", ["button", "background"]).states.create("active", {}); + setColor(rule, "fill", ic, "primaryButtonActive"); + } + { + const rule = r("RoundedRectangle", ["button", "background"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "primaryButtonDisabled"); + } + { + const rule = r("Graphics", ["button", "icon"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "primaryButtonTextDisabled"); + } + { + const rule = r("Label", ["button"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "primaryButtonTextDisabled"); + } + { + const rule = r("Graphics", ["button", "icon"]); + rule.setAll({ + forceInactive: true + }); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + { + const rule = r("Label", ["button"]); + setColor(rule, "fill", ic, "primaryButtonText"); + } + r("ConfirmButton").setAll({ + toggleKey: "active", + setStateOnChildren: true, + label: Label.new(this._root, { + text: language.translate("Confirm"), + forceHidden: true + }) + }); + { + const rule = r("RoundedRectangle", ["button", "background", "confirm"]).states.create("active", {}); + setColor(rule, "fill", ic, "negative"); + } + r("Label", ["button", "confirm"]).setAll({ + paddingTop: 0, + paddingBottom: 0, + paddingRight: 3, + paddingLeft: 5 + }); + r("Label", ["button", "confirm"]).states.create("default", { + stateAnimationDuration: 0 + }); + r("Label", ["button", "confirm"]).states.create("active", { + forceHidden: false, + stateAnimationDuration: 0 + }); + { + const rule = r("Graphics", ["icon", "confirm", "button"]); + rule.setAll({ + stateAnimationDuration: 0 + }); + rule.states.create("default", { + stateAnimationDuration: 0 + }); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + { + const rule = r("Graphics", ["icon", "confirm", "button"]).states.create("active", { + svgPath: "M -5 1 L 0 6 L 8 -5", + strokeWidth: 2 + }); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + { + const rule = r("Graphics", ["icon", "confirm", "button", "secondary"]).states.create("active", {}); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + { + const rule = r("RoundedRectangle", ["button", "background", "confirm", "secondary"]).states.create("active", { + fillOpacity: 1 + }); + setColor(rule, "fill", ic, "negative"); + } + { + const rule = r("RoundedRectangle", ["button", "background", "confirm", "secondary"]).states.create("hoverActive", { + fillOpacity: 1 + }); + setColor(rule, "fill", ic, "negative"); + } + r("Button", ["button", "confirm"]).states.create("hoverActive", {}); + r("Button", ["zoom"]).setAll({ + paddingTop: 18, + paddingBottom: 18, + paddingLeft: 12, + paddingRight: 12, + centerX: 46, + centerY: -10, + y: 0, + x: p100, + role: "button", + ariaLabel: language.translate("Zoom Out"), + layer: 30 + }); + { + const rule = r("RoundedRectangle", ["background", "button", "zoom"]); + rule.setAll({ + cornerRadiusBL: 40, + cornerRadiusBR: 40, + cornerRadiusTL: 40, + cornerRadiusTR: 40 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("RoundedRectangle", ["background", "button", "zoom"]).states.create("hover", {}); + setColor(rule, "fill", ic, "primaryButtonHover"); + } + { + const rule = r("RoundedRectangle", ["background", "button", "zoom"]).states.create("down", { stateAnimationDuration: 0 }); + setColor(rule, "fill", ic, "primaryButtonDown"); + } + { + const rule = r("Graphics", ["icon", "button", "zoom"]); + rule.setAll({ + crisp: true, + strokeOpacity: 0.7, + draw: (display) => { + display.moveTo(0, 0); + display.lineTo(12, 0); + } + }); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + r("Button", ["resize"]).setAll({ + paddingTop: 9, + paddingBottom: 9, + paddingLeft: 13, + paddingRight: 13, + draggable: true, + centerX: p50, + centerY: p50, + position: "absolute", + role: "slider", + ariaValueMin: "0", + ariaValueMax: "100", + ariaLabel: language.translate("Use up and down arrows to move selection") + }); + { + const rule = r("RoundedRectangle", ["background", "resize", "button"]); + rule.setAll({ + cornerRadiusBL: 40, + cornerRadiusBR: 40, + cornerRadiusTL: 40, + cornerRadiusTR: 40 + }); + setColor(rule, "fill", ic, "secondaryButton"); + setColor(rule, "stroke", ic, "secondaryButtonStroke"); + } + { + const rule = r("RoundedRectangle", ["background", "resize", "button"]).states.create("hover", {}); + setColor(rule, "fill", ic, "secondaryButtonHover"); + } + { + const rule = r("RoundedRectangle", ["background", "resize", "button"]).states.create("down", { stateAnimationDuration: 0 }); + setColor(rule, "fill", ic, "secondaryButtonDown"); + } + { + const rule = r("Graphics", ["resize", "button", "icon"]); + rule.setAll({ + interactive: false, + crisp: true, + strokeOpacity: 0.5, + draw: (display) => { + display.moveTo(0, 0.5); + display.lineTo(0, 12.5); + display.moveTo(4, 0.5); + display.lineTo(4, 12.5); + } + }); + setColor(rule, "stroke", ic, "secondaryButtonText"); + } + r("Button", ["resize", "vertical"]).setAll({ + rotation: 90, + cursorOverStyle: "ns-resize" + }); + r("Button", ["resize", "horizontal"]).setAll({ + cursorOverStyle: "ew-resize" + }); + r("Button", ["play"]).setAll({ + paddingTop: 13, + paddingBottom: 13, + paddingLeft: 14, + paddingRight: 14, + ariaLabel: language.translate("Play"), + toggleKey: "active" + }); + { + const rule = r("RoundedRectangle", ["play", "background"]); + rule.setAll({ + strokeOpacity: 0.5, + cornerRadiusBL: 100, + cornerRadiusBR: 100, + cornerRadiusTL: 100, + cornerRadiusTR: 100 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("Graphics", ["play", "icon"]); + rule.setAll({ + stateAnimationDuration: 0, + dx: 1, + draw: (display) => { + display.moveTo(0, -5); + display.lineTo(8, 0); + display.lineTo(0, 5); + display.lineTo(0, -5); + } + }); + setColor(rule, "fill", ic, "primaryButtonText"); + } + r("Graphics", ["play", "icon"]).states.create("default", { + stateAnimationDuration: 0 + }); + r("Graphics", ["play", "icon"]).states.create("active", { + stateAnimationDuration: 0, + draw: (display) => { + display.moveTo(-4, -5); + display.lineTo(-1, -5); + display.lineTo(-1, 5); + display.lineTo(-4, 5); + display.lineTo(-4, -5); + display.moveTo(4, -5); + display.lineTo(1, -5); + display.lineTo(1, 5); + display.lineTo(4, 5); + display.lineTo(4, -5); + } + }); + r("Button", ["switch"]).setAll({ + paddingTop: 4, + paddingBottom: 4, + paddingLeft: 4, + paddingRight: 4, + ariaLabel: language.translate("Press ENTER to toggle"), + toggleKey: "active", + width: 40, + height: 24, + layout: null + }); + { + const rule = r("RoundedRectangle", ["switch", "background"]); + rule.setAll({ + strokeOpacity: 0.5, + cornerRadiusBL: 100, + cornerRadiusBR: 100, + cornerRadiusTL: 100, + cornerRadiusTR: 100 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("Circle", ["switch", "icon"]); + rule.setAll({ + radius: 8, + centerY: 0, + centerX: 0, + dx: 0 + }); + setColor(rule, "fill", ic, "primaryButtonText"); + } + r("Graphics", ["switch", "icon"]).states.create("active", { + dx: 16 + }); + r("Scrollbar").setAll({ + start: 0, + end: 1, + layer: 30, + animationEasing: out(cubic) + }); + r("Scrollbar", ["vertical"]).setAll({ + marginRight: 13, + marginLeft: 13, + minWidth: 12, + height: p100 + }); + r("Scrollbar", ["horizontal"]).setAll({ + marginTop: 13, + marginBottom: 13, + minHeight: 12, + width: p100 + }); + this.rule("Button", ["scrollbar"]).setAll({ + exportable: false + }); + { + const rule = r("RoundedRectangle", ["scrollbar", "main", "background"]); + rule.setAll({ + cornerRadiusTL: 8, + cornerRadiusBL: 8, + cornerRadiusTR: 8, + cornerRadiusBR: 8, + fillOpacity: 0.8 + }); + setColor(rule, "fill", ic, "fill"); + } + { + const rule = r("RoundedRectangle", ["scrollbar", "thumb"]); + rule.setAll({ + role: "slider", + ariaLive: "polite", + position: "absolute", + draggable: true + }); + setColor(rule, "fill", ic, "secondaryButton"); + } + { + const rule = r("RoundedRectangle", ["scrollbar", "thumb"]).states.create("hover", {}); + setColor(rule, "fill", ic, "secondaryButtonHover"); + } + { + const rule = r("RoundedRectangle", ["scrollbar", "thumb"]).states.create("down", { stateAnimationDuration: 0 }); + setColor(rule, "fill", ic, "secondaryButtonDown"); + } + r("RoundedRectangle", ["scrollbar", "thumb", "vertical"]).setAll({ + x: p50, + width: p100, + centerX: p50, + ariaLabel: language.translate("Use up and down arrows to move selection") + }); + r("RoundedRectangle", ["scrollbar", "thumb", "horizontal"]).setAll({ + y: p50, + centerY: p50, + height: p100, + ariaLabel: language.translate("Use left and right arrows to move selection") + }); + { + const rule = r("PointedRectangle", ["axis", "tooltip", "background"]); + rule.setAll({ + cornerRadius: 0 + }); + setColor(rule, "fill", ic, "alternativeBackground"); + } + r("Label", ["axis", "tooltip"]).setAll({ + role: void 0 + }); + r("Label", ["axis", "tooltip", "y"]).setAll({ + textAlign: "right" + }); + r("Label", ["axis", "tooltip", "y", "opposite"]).setAll({ + textAlign: "left" + }); + r("Label", ["axis", "tooltip", "x"]).setAll({ + textAlign: "center" + }); + r("Tooltip", ["categoryaxis"]).setAll({ + labelText: "{category}" + }); + r("Star").setAll({ + spikes: 5, + innerRadius: 5, + radius: 10 + }); + r("Tooltip", ["stock"]).setAll({ + paddingTop: 6, + paddingBottom: 5, + paddingLeft: 7, + paddingRight: 7 + }); + r("Tooltip", ["indicator"]).setAll({ + forceHidden: true + }); + r("PointedRectangle", ["tooltip", "stock", "axis"]).setAll({ + pointerLength: 0, + pointerBaseWidth: 0, + cornerRadius: 3 + }); + r("Label", ["tooltip", "stock"]).setAll({ + fontSize: "0.8em" + }); + r("SpriteResizer").setAll({ + rotationStep: 10, + isMeasured: false + }); + { + const rule = r("Container", ["resizer", "grip"]); + rule.states.create("hover", {}); + } + { + const rule = r("RoundedRectangle", ["resizer", "grip"]); + rule.setAll({ + strokeOpacity: 0.7, + strokeWidth: 1, + fillOpacity: 1, + width: 12, + height: 12 + }); + setColor(rule, "fill", ic, "background"); + setColor(rule, "stroke", ic, "alternativeBackground"); + } + { + const rule = r("RoundedRectangle", ["resizer", "grip", "outline"]); + rule.setAll({ + strokeOpacity: 0, + fillOpacity: 0, + width: 20, + height: 20 + }); + rule.states.create("hover", { + fillOpacity: 0.3 + }); + setColor(rule, "fill", ic, "alternativeBackground"); + } + r("RoundedRectangle", ["resizer", "grip", "left"]).setAll({ + cornerRadiusBL: 0, + cornerRadiusBR: 0, + cornerRadiusTL: 0, + cornerRadiusTR: 0 + }); + r("RoundedRectangle", ["resizer", "grip", "right"]).setAll({ + cornerRadiusBL: 0, + cornerRadiusBR: 0, + cornerRadiusTL: 0, + cornerRadiusTR: 0 + }); + { + const rule = r("Rectangle", ["resizer", "rectangle"]); + rule.setAll({ + strokeDasharray: [2, 2], + strokeOpacity: 0.5, + strokeWidth: 1 + }); + setColor(rule, "stroke", ic, "alternativeBackground"); + } + r("Graphics", ["button", "plus", "icon"]).setAll({ + x: p50, + y: p50, + draw: (display) => { + display.moveTo(-4, 0); + display.lineTo(4, 0); + display.moveTo(0, -4); + display.lineTo(0, 4); + } + }); + r("Graphics", ["button", "minus", "icon"]).setAll({ + x: p50, + y: p50, + draw: (display) => { + display.moveTo(-4, 0); + display.lineTo(4, 0); + } + }); + r("Graphics", ["button", "home", "icon"]).setAll({ + x: p50, + y: p50, + svgPath: "M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1" + }); + r("Button", ["zoomtools"]).setAll({ + marginTop: 1, + marginBottom: 2 + }); + r("ZoomTools").setAll({ + x: p100, + centerX: p100, + y: p100, + centerY: p100, + paddingRight: 10, + paddingBottom: 10 + }); + r("ProgressPie").setAll({ + radius: p100, + width: 50, + height: 50, + centerX: percent(-50), + centerY: percent(-50), + innerRadius: percent(85), + numberFormat: "#." + }); + { + const rule = r("Label", ["progresspie"]); + rule.setAll({ + centerX: p50, + centerY: p50, + fontSize: "0.75em" + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("Circle", ["progresspie"]); + rule.setAll({ + fillOpacity: 0.5 + }); + setColor(rule, "fill", ic, "background"); + } + { + const rule = r("Slice", ["progresspie"]); + rule.setAll({ + startAngle: -90 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("Slice", ["progresspie", "background"]); + rule.setAll({ + fillOpacity: 0.2, + arc: 360 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + r("EditableLabel", ["numericstepper"]).setAll({ + y: p50, + centerY: p50, + multiLine: false, + marginRight: 2 + }); + { + const rule = r("Container", ["numericstepper", "buttons"]); + rule.setAll({ + layout: this._root.verticalLayout, + centerY: p50, + y: p50, + marginRight: 10, + opacity: 0 + }); + rule.states.create("active", { + opacity: 1 + }); + rule.states.create("default", { + opacity: 0 + }); + } + { + const rule = r("Triangle", ["numericstepper"]); + rule.setAll({ + width: 17, + height: 11, + marginTop: 3, + marginBottom: 3, + strokeWidth: 5, + strokeOpacity: 0, + cursorOverStyle: "pointer" + }); + setColor(rule, "fill", ic, "secondaryButton"); + } + { + const rule = r("Triangle", ["downbutton"]); + rule.setAll({ + rotation: 180 + }); + } + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Matrix.js + var Matrix = class { + constructor(a = 1, b = 0, c = 0, d = 1, tx = 0, ty = 0) { + this.a = a; + this.b = b; + this.c = c; + this.d = d; + this.tx = tx; + this.ty = ty; + } + /** + * Sets the matrix based on all the available properties + */ + setTransform(x, y, pivotX, pivotY, rotation, scale = 1) { + this.a = Math.cos(rotation) * scale; + this.b = Math.sin(rotation) * scale; + this.c = -Math.sin(rotation) * scale; + this.d = Math.cos(rotation) * scale; + this.tx = x - (pivotX * this.a + pivotY * this.c); + this.ty = y - (pivotX * this.b + pivotY * this.d); + } + /** + * Get a new position with the current transformation applied. + * Can be used to go from a child's coordinate space to the world coordinate space. (e.g. rendering) + */ + apply(origin) { + return { + x: this.a * origin.x + this.c * origin.y + this.tx, + y: this.b * origin.x + this.d * origin.y + this.ty + }; + } + /** + * Get a new position with the inverse of the current transformation applied. + * Can be used to go from the world coordinate space to a child's coordinate space. (e.g. input) + */ + applyInverse(origin) { + const id = 1 / (this.a * this.d + this.c * -this.b); + return { + x: this.d * id * origin.x + -this.c * id * origin.y + (this.ty * this.c - this.tx * this.d) * id, + y: this.a * id * origin.y + -this.b * id * origin.x + (-this.ty * this.a + this.tx * this.b) * id + }; + } + /** + * Appends the given Matrix to this Matrix. + */ + append(matrix) { + const a1 = this.a; + const b12 = this.b; + const c1 = this.c; + const d1 = this.d; + this.a = matrix.a * a1 + matrix.b * c1; + this.b = matrix.a * b12 + matrix.b * d1; + this.c = matrix.c * a1 + matrix.d * c1; + this.d = matrix.c * b12 + matrix.d * d1; + this.tx = matrix.tx * a1 + matrix.ty * c1 + this.tx; + this.ty = matrix.tx * b12 + matrix.ty * d1 + this.ty; + } + /** + * Prepends the given Matrix to this Matrix. + */ + prepend(matrix) { + const tx1 = this.tx; + if (matrix.a !== 1 || matrix.b !== 0 || matrix.c !== 0 || matrix.d !== 1) { + const a1 = this.a; + const c1 = this.c; + this.a = a1 * matrix.a + this.b * matrix.c; + this.b = a1 * matrix.b + this.b * matrix.d; + this.c = c1 * matrix.a + this.d * matrix.c; + this.d = c1 * matrix.b + this.d * matrix.d; + } + this.tx = tx1 * matrix.a + this.ty * matrix.c + matrix.tx; + this.ty = tx1 * matrix.b + this.ty * matrix.d + matrix.ty; + } + /** + * Copies the other matrix's properties into this matrix + */ + copyFrom(matrix) { + this.a = matrix.a; + this.b = matrix.b; + this.c = matrix.c; + this.d = matrix.d; + this.tx = matrix.tx; + this.ty = matrix.ty; + } + }; + + // node_modules/svg-arc-to-cubic-bezier/modules/index.js + var _slicedToArray = /* @__PURE__ */ (function() { + function sliceIterator(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = void 0; + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"]) _i["return"](); + } finally { + if (_d) throw _e; + } + } + return _arr; + } + return function(arr, i) { + if (Array.isArray(arr)) { + return arr; + } else if (Symbol.iterator in Object(arr)) { + return sliceIterator(arr, i); + } else { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); + } + }; + })(); + var TAU = Math.PI * 2; + var mapToEllipse = function mapToEllipse2(_ref, rx, ry, cosphi, sinphi, centerx, centery) { + var x = _ref.x, y = _ref.y; + x *= rx; + y *= ry; + var xp = cosphi * x - sinphi * y; + var yp = sinphi * x + cosphi * y; + return { + x: xp + centerx, + y: yp + centery + }; + }; + var approxUnitArc = function approxUnitArc2(ang1, ang2) { + var a = ang2 === 1.5707963267948966 ? 0.551915024494 : ang2 === -1.5707963267948966 ? -0.551915024494 : 4 / 3 * Math.tan(ang2 / 4); + var x1 = Math.cos(ang1); + var y1 = Math.sin(ang1); + var x2 = Math.cos(ang1 + ang2); + var y2 = Math.sin(ang1 + ang2); + return [{ + x: x1 - y1 * a, + y: y1 + x1 * a + }, { + x: x2 + y2 * a, + y: y2 - x2 * a + }, { + x: x2, + y: y2 + }]; + }; + var vectorAngle = function vectorAngle2(ux, uy, vx, vy) { + var sign = ux * vy - uy * vx < 0 ? -1 : 1; + var dot = ux * vx + uy * vy; + if (dot > 1) { + dot = 1; + } + if (dot < -1) { + dot = -1; + } + return sign * Math.acos(dot); + }; + var getArcCenter = function getArcCenter2(px, py, cx, cy, rx, ry, largeArcFlag, sweepFlag, sinphi, cosphi, pxp, pyp) { + var rxsq = Math.pow(rx, 2); + var rysq = Math.pow(ry, 2); + var pxpsq = Math.pow(pxp, 2); + var pypsq = Math.pow(pyp, 2); + var radicant = rxsq * rysq - rxsq * pypsq - rysq * pxpsq; + if (radicant < 0) { + radicant = 0; + } + radicant /= rxsq * pypsq + rysq * pxpsq; + radicant = Math.sqrt(radicant) * (largeArcFlag === sweepFlag ? -1 : 1); + var centerxp = radicant * rx / ry * pyp; + var centeryp = radicant * -ry / rx * pxp; + var centerx = cosphi * centerxp - sinphi * centeryp + (px + cx) / 2; + var centery = sinphi * centerxp + cosphi * centeryp + (py + cy) / 2; + var vx1 = (pxp - centerxp) / rx; + var vy1 = (pyp - centeryp) / ry; + var vx2 = (-pxp - centerxp) / rx; + var vy2 = (-pyp - centeryp) / ry; + var ang1 = vectorAngle(1, 0, vx1, vy1); + var ang2 = vectorAngle(vx1, vy1, vx2, vy2); + if (sweepFlag === 0 && ang2 > 0) { + ang2 -= TAU; + } + if (sweepFlag === 1 && ang2 < 0) { + ang2 += TAU; + } + return [centerx, centery, ang1, ang2]; + }; + var arcToBezier = function arcToBezier2(_ref2) { + var px = _ref2.px, py = _ref2.py, cx = _ref2.cx, cy = _ref2.cy, rx = _ref2.rx, ry = _ref2.ry, _ref2$xAxisRotation = _ref2.xAxisRotation, xAxisRotation = _ref2$xAxisRotation === void 0 ? 0 : _ref2$xAxisRotation, _ref2$largeArcFlag = _ref2.largeArcFlag, largeArcFlag = _ref2$largeArcFlag === void 0 ? 0 : _ref2$largeArcFlag, _ref2$sweepFlag = _ref2.sweepFlag, sweepFlag = _ref2$sweepFlag === void 0 ? 0 : _ref2$sweepFlag; + var curves = []; + if (rx === 0 || ry === 0) { + return []; + } + var sinphi = Math.sin(xAxisRotation * TAU / 360); + var cosphi = Math.cos(xAxisRotation * TAU / 360); + var pxp = cosphi * (px - cx) / 2 + sinphi * (py - cy) / 2; + var pyp = -sinphi * (px - cx) / 2 + cosphi * (py - cy) / 2; + if (pxp === 0 && pyp === 0) { + return []; + } + rx = Math.abs(rx); + ry = Math.abs(ry); + var lambda = Math.pow(pxp, 2) / Math.pow(rx, 2) + Math.pow(pyp, 2) / Math.pow(ry, 2); + if (lambda > 1) { + rx *= Math.sqrt(lambda); + ry *= Math.sqrt(lambda); + } + var _getArcCenter = getArcCenter(px, py, cx, cy, rx, ry, largeArcFlag, sweepFlag, sinphi, cosphi, pxp, pyp), _getArcCenter2 = _slicedToArray(_getArcCenter, 4), centerx = _getArcCenter2[0], centery = _getArcCenter2[1], ang1 = _getArcCenter2[2], ang2 = _getArcCenter2[3]; + var ratio = Math.abs(ang2) / (TAU / 4); + if (Math.abs(1 - ratio) < 1e-7) { + ratio = 1; + } + var segments = Math.max(Math.ceil(ratio), 1); + ang2 /= segments; + for (var i = 0; i < segments; i++) { + curves.push(approxUnitArc(ang1, ang2)); + ang1 += ang2; + } + return curves.map(function(curve) { + var _mapToEllipse = mapToEllipse(curve[0], rx, ry, cosphi, sinphi, centerx, centery), x1 = _mapToEllipse.x, y1 = _mapToEllipse.y; + var _mapToEllipse2 = mapToEllipse(curve[1], rx, ry, cosphi, sinphi, centerx, centery), x2 = _mapToEllipse2.x, y2 = _mapToEllipse2.y; + var _mapToEllipse3 = mapToEllipse(curve[2], rx, ry, cosphi, sinphi, centerx, centery), x = _mapToEllipse3.x, y = _mapToEllipse3.y; + return { x1, y1, x2, y2, x, y }; + }); + }; + var modules_default = arcToBezier; + + // node_modules/@amcharts/amcharts5/.internal/core/render/backend/CanvasRenderer.js + function checkArgs(name, actual, expected) { + if (actual !== expected) { + throw new Error("Required " + expected + " arguments for " + name + " but got " + actual); + } + } + function checkMinArgs(name, actual, expected) { + if (actual < expected) { + throw new Error("Required at least " + expected + " arguments for " + name + " but got " + actual); + } + } + function checkEvenArgs(name, actual, expected) { + checkMinArgs(name, actual, expected); + if (actual % expected !== 0) { + throw new Error("Arguments for " + name + " must be in pairs of " + expected); + } + } + function splitArcFlags(args) { + for (let i = 0; i < args.length; i += 7) { + let index = i + 3; + let flag = args[index]; + if (flag.length > 1) { + const a = /^([01])([01])(.*)$/.exec(flag); + if (a !== null) { + args.splice(index, 0, a[1]); + ++index; + args.splice(index, 0, a[2]); + ++index; + if (a[3].length > 0) { + args[index] = a[3]; + } else { + args.splice(index, 1); + } + } + } + ++index; + flag = args[index]; + if (flag.length > 1) { + const a = /^([01])(.+)$/.exec(flag); + if (a !== null) { + args.splice(index, 0, a[1]); + ++index; + args[index] = a[2]; + } + } + } + } + function assertBinary(value) { + if (value === 0 || value === 1) { + return value; + } else { + throw new Error("Flag must be 0 or 1"); + } + } + function distributeId(id) { + const rgb = [0, 0, 0]; + for (let i = 0; i < 24; i++) { + rgb[i % 3] <<= 1; + rgb[i % 3] |= id & 1; + id >>= 1; + } + return (rgb[0] | 0) + (rgb[1] << 8) + (rgb[2] << 16); + } + function eachTargets(hitTarget, f) { + for (; ; ) { + if (hitTarget.interactive) { + if (!f(hitTarget)) { + break; + } + } + if (hitTarget._parent) { + hitTarget = hitTarget._parent; + } else { + break; + } + } + } + function onPointerEvent(element, name, f) { + return addEventListener(element, getRendererEvent(name), (event) => { + const target = getEventTarget(event); + let touches = event.touches; + if (touches) { + if (touches.length == 0) { + touches = event.changedTouches; + } + f(copy(touches), target); + } else { + f([event], target); + } + }); + } + function isTainted(image) { + const canvas = document.createElement("canvas"); + canvas.width = 1; + canvas.height = 1; + const context = canvas.getContext("2d", { willReadFrequently: true }); + context.drawImage(image, 0, 0, 1, 1); + try { + context.getImageData(0, 0, 1, 1); + return false; + } catch (err) { + console.warn('Image "' + image.src + '" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'); + return true; + } + } + function clearCanvas(view) { + view.width = 0; + view.height = 0; + view.style.width = "0px"; + view.style.height = "0px"; + } + function crisp(x) { + return Math.floor(x) + 0.5; + } + var CanvasPivot = class { + constructor() { + this._x = 0; + this._y = 0; + } + get x() { + return this._x; + } + get y() { + return this._y; + } + set x(value) { + this._x = value; + } + set y(value) { + this._y = value; + } + }; + var CanvasDisplayObject = class extends DisposerClass { + constructor(renderer) { + super(); + this.mask = null; + this.visible = true; + this.exportable = true; + this.interactive = false; + this.inactive = null; + this.wheelable = false; + this.cancelTouch = false; + this.isMeasured = false; + this.buttonMode = false; + this.alpha = 1; + this.compoundAlpha = 1; + this.angle = 0; + this.scale = 1; + this.x = 0; + this.y = 0; + this.crisp = false; + this.pivot = new CanvasPivot(); + this._localMatrix = new Matrix(); + this._matrix = new Matrix(); + this._uMatrix = new Matrix(); + this._renderer = renderer; + } + subStatus(status) { + return { + inactive: this.inactive == null ? status.inactive : this.inactive, + layer: this._layer || status.layer + }; + } + _dispose() { + this._renderer._removeObject(this); + this.getLayer().dirty = true; + } + getCanvas() { + return this.getLayer().view; + } + getLayer() { + let self = this; + for (; ; ) { + if (self._layer) { + return self._layer; + } else if (self._parent) { + self = self._parent; + } else { + return this._renderer.defaultLayer; + } + } + } + setLayer(order, margin) { + if (order == null) { + this._layer = void 0; + } else { + const visible = true; + this._layer = this._renderer.getLayer(order, visible); + this._layer.visible = visible; + this._layer.margin = margin; + if (margin) { + setInteractive(this._layer.view, false); + } + this._renderer._ghostLayer.setMargin(this._renderer.layers); + if (this._parent) { + this._parent.registerChildLayer(this._layer); + } + this._layer.dirty = true; + this._renderer.resizeLayer(this._layer); + this._renderer.resizeGhost(); + } + } + markDirtyLayer() { + this.getLayer().dirty = true; + } + clear() { + this.invalidateBounds(); + } + invalidateBounds() { + this._localBounds = void 0; + } + _addBounds(_bounds) { + } + _getColorId() { + if (this._colorId === void 0) { + this._colorId = this._renderer.paintId(this); + } + return this._colorId; + } + _isInteractive(status) { + return !status.inactive && (this.interactive || this._renderer._forceInteractive > 0); + } + _isInteractiveMask(status) { + return this._isInteractive(status); + } + contains(child) { + for (; ; ) { + if (child === this) { + return true; + } else if (child._parent) { + child = child._parent; + } else { + return false; + } + } + } + toGlobal(point) { + return this._matrix.apply(point); + } + toLocal(point) { + return this._matrix.applyInverse(point); + } + getLocalMatrix() { + this._uMatrix.setTransform(0, 0, this.pivot.x, this.pivot.y, this.angle * Math.PI / 180, this.scale); + return this._uMatrix; + } + getLocalBounds() { + if (!this._localBounds) { + const bn = 1e7; + this._localBounds = { + left: bn, + top: bn, + right: -bn, + bottom: -bn + }; + this._addBounds(this._localBounds); + } + return this._localBounds; + } + getAdjustedBounds(bounds) { + this._setMatrix(); + const matrix = this.getLocalMatrix(); + const p02 = matrix.apply({ x: bounds.left, y: bounds.top }); + const p1 = matrix.apply({ x: bounds.right, y: bounds.top }); + const p2 = matrix.apply({ x: bounds.right, y: bounds.bottom }); + const p3 = matrix.apply({ x: bounds.left, y: bounds.bottom }); + return { + left: Math.min(p02.x, p1.x, p2.x, p3.x), + top: Math.min(p02.y, p1.y, p2.y, p3.y), + right: Math.max(p02.x, p1.x, p2.x, p3.x), + bottom: Math.max(p02.y, p1.y, p2.y, p3.y) + }; + } + on(key, callback, context) { + if (this.interactive) { + return this._renderer._addEvent(this, key, callback, context); + } else { + return new Disposer(() => { + }); + } + } + _setMatrix() { + this._localMatrix.setTransform( + this.x, + this.y, + this.pivot.x, + this.pivot.y, + // Converts degrees to radians + this.angle * Math.PI / 180, + this.scale + ); + this._matrix.copyFrom(this._localMatrix); + if (this._parent) { + this._matrix.prepend(this._parent._matrix); + } + } + _transform(context, resolution) { + const m = this._matrix; + let tx = m.tx * resolution; + let ty = m.ty * resolution; + if (this.crisp) { + tx = crisp(tx); + ty = crisp(ty); + } + context.setTransform(m.a * resolution, m.b * resolution, m.c * resolution, m.d * resolution, tx, ty); + } + _transformMargin(context, resolution, margin) { + const m = this._matrix; + context.setTransform(m.a * resolution, m.b * resolution, m.c * resolution, m.d * resolution, (m.tx + margin.left) * resolution, (m.ty + margin.top) * resolution); + } + _transformLayer(context, resolution, layer) { + if (layer.margin) { + this._transformMargin(context, layer.scale || resolution, layer.margin); + } else { + this._transform(context, layer.scale || resolution); + } + } + render(status, targetGhostLayer = 0) { + if (this.visible && (this.exportable !== false || !this._renderer._omitTainted)) { + this._setMatrix(); + const subStatus = this.subStatus(status); + const resolution = this._renderer.resolution; + const layers = this._renderer.layers; + const ghostLayer = this._renderer._ghostLayer; + const ghostContext = ghostLayer.context; + const mask = this.mask; + if (mask) { + mask._setMatrix(); + } + each(layers, (layer) => { + if (layer) { + const context = layer.context; + context.save(); + if (mask) { + mask._transformLayer(context, resolution, layer); + mask._runPath(context); + context.clip(); + } + context.globalAlpha = this.compoundAlpha * this.alpha; + this._transformLayer(context, resolution, layer); + if (this.filter) { + context.filter = this.filter; + } + } + }); + ghostContext.save(); + if (mask && this._isInteractiveMask(subStatus)) { + mask._transformMargin(ghostContext, resolution, ghostLayer.margin); + mask._runPath(ghostContext); + ghostContext.clip(); + } + this._transformMargin(ghostContext, resolution, ghostLayer.margin); + if (subStatus.layer.order > 0 && !targetGhostLayer) { + move(this._renderer._deferredGhostLayers, subStatus.layer.order); + } + this._render(subStatus, targetGhostLayer); + ghostContext.restore(); + each(layers, (layer) => { + if (layer) { + layer.context.restore(); + } + }); + } + } + _render(status, _targetGhostLayer = 0) { + if (this.exportable === false) { + status.layer.tainted = true; + } + } + _ghostOnly(targetGhostLayer = 0) { + return targetGhostLayer > 0 ? true : false; + } + _drawGhost(status, targetGhostLayer = 0) { + const interactive = this._isInteractive(status); + const order = status.layer.order || 0; + return interactive && (order == 0 && !this._ghostOnly(targetGhostLayer) || order == targetGhostLayer) ? true : false; + } + hovering() { + return this._renderer._hovering.has(this); + } + dragging() { + return this._renderer._dragging.some((x) => x.value === this); + } + shouldCancelTouch() { + const renderer = this._renderer; + if (renderer.tapToActivate && !renderer._touchActive) { + return false; + } + if (this.cancelTouch) { + return true; + } else if (this._parent) { + return this._parent.shouldCancelTouch(); + } + return false; + } + }; + var CanvasContainer = class extends CanvasDisplayObject { + constructor() { + super(...arguments); + this.interactiveChildren = true; + this._children = []; + } + _isInteractiveMask(status) { + return this.interactiveChildren || super._isInteractiveMask(status); + } + addChild(child) { + child._parent = this; + this._children.push(child); + if (child._layer) { + this.registerChildLayer(child._layer); + } + } + addChildAt(child, index) { + child._parent = this; + this._children.splice(index, 0, child); + if (child._layer) { + this.registerChildLayer(child._layer); + } + } + removeChild(child) { + child._parent = void 0; + removeFirst(this._children, child); + } + _render(status, targetGhostLayer) { + super._render(status); + const renderer = this._renderer; + if (this.interactive && this.interactiveChildren) { + ++renderer._forceInteractive; + } + each(this._children, (child) => { + child.compoundAlpha = this.compoundAlpha * this.alpha; + child.render(status, targetGhostLayer); + }); + if (this.interactive && this.interactiveChildren) { + --renderer._forceInteractive; + } + } + registerChildLayer(layer) { + if (!this._childLayers) { + this._childLayers = []; + } + pushOne(this._childLayers, layer); + if (this._parent) { + this._parent.registerChildLayer(layer); + } + } + markDirtyLayer(deep = false) { + super.markDirtyLayer(); + if (deep && this._childLayers) { + each(this._childLayers, (layer) => layer.dirty = true); + } + } + _dispose() { + super._dispose(); + if (this._childLayers) { + each(this._childLayers, (layer) => { + layer.dirty = true; + }); + } + } + }; + function setPoint(bounds, point) { + bounds.left = Math.min(bounds.left, point.x); + bounds.top = Math.min(bounds.top, point.y); + bounds.right = Math.max(bounds.right, point.x); + bounds.bottom = Math.max(bounds.bottom, point.y); + } + var Op = class { + colorize(_context, _forceColor) { + } + colorizeGhost(context, forceColor) { + this.colorize(context, forceColor); + } + path(_context) { + } + pathGhost(context) { + this.path(context); + } + addBounds(_bounds) { + } + }; + var BeginPath = class extends Op { + colorize(context, _forceColor) { + context.beginPath(); + } + }; + var BeginFill = class extends Op { + constructor(color2) { + super(); + this.color = color2; + } + colorize(context, forceColor) { + if (forceColor !== void 0) { + context.fillStyle = forceColor; + } else { + context.fillStyle = this.color; + } + } + }; + var EndFill = class extends Op { + constructor(clearShadow) { + super(); + this.clearShadow = clearShadow; + } + colorize(context, _forceColor) { + context.fill(); + if (this.clearShadow) { + context.shadowColor = ""; + context.shadowBlur = 0; + context.shadowOffsetX = 0; + context.shadowOffsetY = 0; + } + } + }; + var EndStroke = class extends Op { + colorize(context, _forceColor) { + context.stroke(); + } + }; + var LineStyle = class extends Op { + constructor(width, color2, lineJoin, lineCap) { + super(); + this.width = width; + this.color = color2; + this.lineJoin = lineJoin; + this.lineCap = lineCap; + } + colorize(context, forceColor) { + if (forceColor !== void 0) { + context.strokeStyle = forceColor; + } else { + context.strokeStyle = this.color; + } + context.lineWidth = this.width; + if (this.lineJoin) { + context.lineJoin = this.lineJoin; + } + if (this.lineCap) { + context.lineCap = this.lineCap; + } + } + }; + var LineDash = class extends Op { + constructor(dash) { + super(); + this.dash = dash; + } + colorize(context, _forceColor) { + context.setLineDash(this.dash); + } + }; + var LineDashOffset = class extends Op { + constructor(dashOffset) { + super(); + this.dashOffset = dashOffset; + } + colorize(context, _forceColor) { + context.lineDashOffset = this.dashOffset; + } + }; + var DrawRect = class extends Op { + constructor(x, y, width, height) { + super(); + this.x = x; + this.y = y; + this.width = width; + this.height = height; + } + path(context) { + context.rect(this.x, this.y, this.width, this.height); + } + addBounds(bounds) { + const l = this.x; + const t = this.y; + const r = l + this.width; + const b = t + this.height; + setPoint(bounds, { x: l, y: t }); + setPoint(bounds, { x: r, y: t }); + setPoint(bounds, { x: l, y: b }); + setPoint(bounds, { x: r, y: b }); + } + }; + var DrawCircle = class extends Op { + constructor(x, y, radius) { + super(); + this.x = x; + this.y = y; + this.radius = radius; + } + path(context) { + context.moveTo(this.x + this.radius, this.y); + context.arc(this.x, this.y, this.radius, 0, 2 * Math.PI); + } + // TODO handle skewing and rotation + addBounds(bounds) { + setPoint(bounds, { x: this.x - this.radius, y: this.y - this.radius }); + setPoint(bounds, { x: this.x + this.radius, y: this.y + this.radius }); + } + }; + var DrawEllipse = class extends Op { + constructor(x, y, radiusX, radiusY) { + super(); + this.x = x; + this.y = y; + this.radiusX = radiusX; + this.radiusY = radiusY; + } + path(context) { + context.ellipse(0, 0, this.radiusX, this.radiusY, 0, 0, Math.PI * 2); + } + // TODO handle skewing and rotation + addBounds(bounds) { + setPoint(bounds, { x: this.x - this.radiusX, y: this.y - this.radiusY }); + setPoint(bounds, { x: this.x + this.radiusX, y: this.y + this.radiusY }); + } + }; + var Arc = class extends Op { + constructor(cx, cy, radius, startAngle, endAngle, anticlockwise) { + super(); + this.cx = cx; + this.cy = cy; + this.radius = radius; + this.startAngle = startAngle; + this.endAngle = endAngle; + this.anticlockwise = anticlockwise; + } + path(context) { + if (this.radius > 0) { + context.arc(this.cx, this.cy, this.radius, this.startAngle, this.endAngle, this.anticlockwise); + } + } + addBounds(bounds) { + let arcBounds = getArcBounds(this.cx, this.cy, this.startAngle * DEGREES, this.endAngle * DEGREES, this.radius); + setPoint(bounds, { x: arcBounds.left, y: arcBounds.top }); + setPoint(bounds, { x: arcBounds.right, y: arcBounds.bottom }); + } + }; + var ArcTo = class extends Op { + constructor(x1, y1, x2, y2, radius) { + super(); + this.x1 = x1; + this.y1 = y1; + this.x2 = x2; + this.y2 = y2; + this.radius = radius; + } + path(context) { + if (this.radius > 0) { + context.arcTo(this.x1, this.y1, this.x2, this.y2, this.radius); + } + } + // TODO: add points + addBounds(_bounds) { + } + }; + var LineTo = class extends Op { + constructor(x, y) { + super(); + this.x = x; + this.y = y; + } + path(context) { + context.lineTo(this.x, this.y); + } + addBounds(bounds) { + setPoint(bounds, { x: this.x, y: this.y }); + } + }; + var MoveTo = class extends Op { + constructor(x, y) { + super(); + this.x = x; + this.y = y; + } + path(context) { + context.moveTo(this.x, this.y); + } + addBounds(bounds) { + setPoint(bounds, { x: this.x, y: this.y }); + } + }; + var ClosePath = class extends Op { + path(context) { + context.closePath(); + } + }; + var BezierCurveTo = class extends Op { + constructor(cpX, cpY, cpX2, cpY2, toX, toY) { + super(); + this.cpX = cpX; + this.cpY = cpY; + this.cpX2 = cpX2; + this.cpY2 = cpY2; + this.toX = toX; + this.toY = toY; + } + path(context) { + context.bezierCurveTo(this.cpX, this.cpY, this.cpX2, this.cpY2, this.toX, this.toY); + } + // TODO: OK? + addBounds(bounds) { + setPoint(bounds, { x: this.cpX, y: this.cpY }); + setPoint(bounds, { x: this.cpX2, y: this.cpY2 }); + setPoint(bounds, { x: this.toX, y: this.toY }); + } + }; + var QuadraticCurveTo = class extends Op { + constructor(cpX, cpY, toX, toY) { + super(); + this.cpX = cpX; + this.cpY = cpY; + this.toX = toX; + this.toY = toY; + } + path(context) { + context.quadraticCurveTo(this.cpX, this.cpY, this.toX, this.toY); + } + // TODO: OK? + addBounds(bounds) { + setPoint(bounds, { x: this.cpX, y: this.cpY }); + setPoint(bounds, { x: this.toX, y: this.toY }); + } + }; + var Shadow = class extends Op { + constructor(color2, blur2, offsetX, offsetY, opacity) { + super(); + this.color = color2; + this.blur = blur2; + this.offsetX = offsetX; + this.offsetY = offsetY; + this.opacity = opacity; + } + colorize(context, _forceColor) { + if (this.opacity) { + context.fillStyle = this.color; + } + context.shadowColor = this.color; + context.shadowBlur = this.blur; + context.shadowOffsetX = this.offsetX; + context.shadowOffsetY = this.offsetY; + } + colorizeGhost(_context, _forceColor) { + } + }; + var GraphicsImage = class extends Op { + constructor(image, width, height, x, y) { + super(); + this.image = image; + this.width = width; + this.height = height; + this.x = x; + this.y = y; + } + path(context) { + context.drawImage(this.image, this.x, this.y, this.width, this.height); + } + // TODO: OK? + addBounds(bounds) { + setPoint(bounds, { x: this.x, y: this.y }); + setPoint(bounds, { x: this.width, y: this.height }); + } + }; + var CanvasGraphics = class extends CanvasDisplayObject { + constructor() { + super(...arguments); + this._operations = []; + this.blendMode = BlendMode.NORMAL; + this._hasShadows = false; + } + clear() { + super.clear(); + this._operations.length = 0; + } + _pushOp(op) { + this._operations.push(op); + } + beginFill(color2, alpha = 1) { + this._fillAlpha = alpha; + if (color2) { + if (color2 instanceof Color) { + this._pushOp(new BeginFill(color2.toCSS(alpha))); + } else { + this.isMeasured = true; + this._pushOp(new BeginFill(color2)); + } + } else { + this._pushOp(new BeginFill("rgba(0, 0, 0, " + alpha + ")")); + } + } + endFill() { + this._pushOp(new EndFill(this._hasShadows)); + } + endStroke() { + this._pushOp(new EndStroke()); + } + beginPath() { + this._pushOp(new BeginPath()); + } + lineStyle(width = 0, color2, alpha = 1, lineJoin, lineCap) { + this._strokeAlpha = alpha; + if (color2) { + if (color2 instanceof Color) { + this._pushOp(new LineStyle(width, color2.toCSS(alpha), lineJoin, lineCap)); + } else { + this._pushOp(new LineStyle(width, color2, lineJoin, lineCap)); + } + } else { + this._pushOp(new LineStyle(width, "rgba(0, 0, 0, " + alpha + ")", lineJoin, lineCap)); + } + } + setLineDash(dash) { + this._pushOp(new LineDash(dash ? dash : [])); + } + setLineDashOffset(dashOffset = 0) { + this._pushOp(new LineDashOffset(dashOffset)); + } + drawRect(x, y, width, height) { + this._pushOp(new DrawRect(x, y, width, height)); + } + drawCircle(x, y, radius) { + this._pushOp(new DrawCircle(x, y, radius)); + } + drawEllipse(x, y, radiusX, radiusY) { + this._pushOp(new DrawEllipse(x, y, radiusX, radiusY)); + } + arc(cx, cy, radius, startAngle, endAngle, anticlockwise = false) { + this._pushOp(new Arc(cx, cy, radius, startAngle, endAngle, anticlockwise)); + } + arcTo(x1, y1, x2, y2, radius) { + this._pushOp(new ArcTo(x1, y1, x2, y2, radius)); + } + lineTo(x, y) { + this._pushOp(new LineTo(x, y)); + } + moveTo(x, y) { + this._pushOp(new MoveTo(x, y)); + } + bezierCurveTo(cpX, cpY, cpX2, cpY2, toX, toY) { + this._pushOp(new BezierCurveTo(cpX, cpY, cpX2, cpY2, toX, toY)); + } + quadraticCurveTo(cpX, cpY, toX, toY) { + this._pushOp(new QuadraticCurveTo(cpX, cpY, toX, toY)); + } + closePath() { + this._pushOp(new ClosePath()); + } + shadow(color2, blur2 = 0, offsetX = 0, offsetY = 0, opacity) { + this._hasShadows = true; + this._pushOp(new Shadow(opacity ? color2.toCSS(opacity) : color2.toCSS(this._fillAlpha || this._strokeAlpha), blur2, offsetX, offsetY)); + } + image(image, width, height, x, y) { + this._pushOp(new GraphicsImage(image, width, height, x, y)); + } + // https://svgwg.org/svg2-draft/paths.html#DProperty + // TODO better error checking + svgPath(path) { + let x = 0; + let y = 0; + let cpx = null; + let cpy = null; + let qcpx = null; + let qcpy = null; + const SEGMENTS_REGEXP = /([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g; + const ARGS_REGEXP = /[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g; + const length = this._operations.length; + try { + let match; + while ((match = SEGMENTS_REGEXP.exec(path)) !== null) { + const name = match[1]; + const rest = match[2]; + const args = []; + while ((match = ARGS_REGEXP.exec(rest)) !== null) { + args.push(match[1]); + } + if (name !== "S" && name !== "s" && name !== "C" && name !== "c") { + cpx = null; + cpy = null; + } + if (name !== "Q" && name !== "q" && name !== "T" && name !== "t") { + qcpx = null; + qcpy = null; + } + switch (name) { + case "M": + checkEvenArgs(name, args.length, 2); + x = +args[0]; + y = +args[1]; + this.moveTo(x, y); + for (let i = 2; i < args.length; i += 2) { + x = +args[i]; + y = +args[i + 1]; + this.lineTo(x, y); + } + break; + case "m": + checkEvenArgs(name, args.length, 2); + x += +args[0]; + y += +args[1]; + this.moveTo(x, y); + for (let i = 2; i < args.length; i += 2) { + x += +args[i]; + y += +args[i + 1]; + this.lineTo(x, y); + } + break; + case "L": + checkEvenArgs(name, args.length, 2); + for (let i = 0; i < args.length; i += 2) { + x = +args[i]; + y = +args[i + 1]; + this.lineTo(x, y); + } + break; + case "l": + checkEvenArgs(name, args.length, 2); + for (let i = 0; i < args.length; i += 2) { + x += +args[i]; + y += +args[i + 1]; + this.lineTo(x, y); + } + break; + case "H": + checkMinArgs(name, args.length, 1); + for (let i = 0; i < args.length; ++i) { + x = +args[i]; + this.lineTo(x, y); + } + break; + case "h": + checkMinArgs(name, args.length, 1); + for (let i = 0; i < args.length; ++i) { + x += +args[i]; + this.lineTo(x, y); + } + break; + case "V": + checkMinArgs(name, args.length, 1); + for (let i = 0; i < args.length; ++i) { + y = +args[i]; + this.lineTo(x, y); + } + break; + case "v": + checkMinArgs(name, args.length, 1); + for (let i = 0; i < args.length; ++i) { + y += +args[i]; + this.lineTo(x, y); + } + break; + case "C": + checkEvenArgs(name, args.length, 6); + for (let i = 0; i < args.length; i += 6) { + const x1 = +args[i]; + const y1 = +args[i + 1]; + cpx = +args[i + 2]; + cpy = +args[i + 3]; + x = +args[i + 4]; + y = +args[i + 5]; + this.bezierCurveTo(x1, y1, cpx, cpy, x, y); + } + break; + case "c": + checkEvenArgs(name, args.length, 6); + for (let i = 0; i < args.length; i += 6) { + const x1 = +args[i] + x; + const y1 = +args[i + 1] + y; + cpx = +args[i + 2] + x; + cpy = +args[i + 3] + y; + x += +args[i + 4]; + y += +args[i + 5]; + this.bezierCurveTo(x1, y1, cpx, cpy, x, y); + } + break; + case "S": + checkEvenArgs(name, args.length, 4); + if (cpx === null || cpy === null) { + cpx = x; + cpy = y; + } + for (let i = 0; i < args.length; i += 4) { + const x1 = 2 * x - cpx; + const y1 = 2 * y - cpy; + cpx = +args[i]; + cpy = +args[i + 1]; + x = +args[i + 2]; + y = +args[i + 3]; + this.bezierCurveTo(x1, y1, cpx, cpy, x, y); + } + break; + case "s": + checkEvenArgs(name, args.length, 4); + if (cpx === null || cpy === null) { + cpx = x; + cpy = y; + } + for (let i = 0; i < args.length; i += 4) { + const x1 = 2 * x - cpx; + const y1 = 2 * y - cpy; + cpx = +args[i] + x; + cpy = +args[i + 1] + y; + x += +args[i + 2]; + y += +args[i + 3]; + this.bezierCurveTo(x1, y1, cpx, cpy, x, y); + } + break; + case "Q": + checkEvenArgs(name, args.length, 4); + for (let i = 0; i < args.length; i += 4) { + qcpx = +args[i]; + qcpy = +args[i + 1]; + x = +args[i + 2]; + y = +args[i + 3]; + this.quadraticCurveTo(qcpx, qcpy, x, y); + } + break; + case "q": + checkEvenArgs(name, args.length, 4); + for (let i = 0; i < args.length; i += 4) { + qcpx = +args[i] + x; + qcpy = +args[i + 1] + y; + x += +args[i + 2]; + y += +args[i + 3]; + this.quadraticCurveTo(qcpx, qcpy, x, y); + } + break; + case "T": + checkEvenArgs(name, args.length, 2); + if (qcpx === null || qcpy === null) { + qcpx = x; + qcpy = y; + } + for (let i = 0; i < args.length; i += 2) { + qcpx = 2 * x - qcpx; + qcpy = 2 * y - qcpy; + x = +args[i]; + y = +args[i + 1]; + this.quadraticCurveTo(qcpx, qcpy, x, y); + } + break; + case "t": + checkEvenArgs(name, args.length, 2); + if (qcpx === null || qcpy === null) { + qcpx = x; + qcpy = y; + } + for (let i = 0; i < args.length; i += 2) { + qcpx = 2 * x - qcpx; + qcpy = 2 * y - qcpy; + x += +args[i]; + y += +args[i + 1]; + this.quadraticCurveTo(qcpx, qcpy, x, y); + } + break; + case "A": + case "a": + const relative = name === "a"; + splitArcFlags(args); + checkEvenArgs(name, args.length, 7); + for (let i = 0; i < args.length; i += 7) { + let cx = +args[i + 5]; + let cy = +args[i + 6]; + if (relative) { + cx += x; + cy += y; + } + const bs = modules_default({ + px: x, + py: y, + rx: +args[i], + ry: +args[i + 1], + xAxisRotation: +args[i + 2], + largeArcFlag: assertBinary(+args[i + 3]), + sweepFlag: assertBinary(+args[i + 4]), + cx, + cy + }); + each(bs, (b) => { + this.bezierCurveTo(b.x1, b.y1, b.x2, b.y2, b.x, b.y); + x = b.x; + y = b.y; + }); + } + break; + case "Z": + case "z": + checkArgs(name, args.length, 0); + this.closePath(); + break; + } + } + } catch (e) { + this._operations.length = length; + console.warn("Error when parsing svgPath:\n " + e.message + "\n" + path); + } + } + _runPath(context) { + context.beginPath(); + each(this._operations, (op) => { + op.path(context); + }); + } + _render(status, targetGhostLayer = 0) { + super._render(status); + const layerDirty = status.layer.dirty; + const interactive = this._isInteractive(status); + const ghostOnly = this._ghostOnly(targetGhostLayer); + const drawGhost = this._drawGhost(status, targetGhostLayer); + if (layerDirty || interactive || ghostOnly) { + const context = status.layer.context; + const ghostContext = this._renderer._ghostLayer.context; + if (layerDirty && !ghostOnly) { + context.globalCompositeOperation = this.blendMode; + context.beginPath(); + } + let color2; + if (drawGhost) { + ghostContext.beginPath(); + color2 = this._getColorId(); + } + each(this._operations, (op) => { + if (layerDirty && !ghostOnly) { + op.path(context); + op.colorize(context, void 0); + } + if (drawGhost) { + op.pathGhost(ghostContext); + op.colorizeGhost(ghostContext, color2); + } + }); + } + } + renderDetached(context) { + if (this.visible) { + this._setMatrix(); + context.save(); + const mask = this.mask; + if (mask) { + mask._setMatrix(); + mask._transform(context, 1); + mask._runPath(context); + context.clip(); + } + context.globalAlpha = this.compoundAlpha * this.alpha; + this._transform(context, 1); + if (this.filter) { + context.filter = this.filter; + } + context.globalCompositeOperation = this.blendMode; + context.beginPath(); + each(this._operations, (op) => { + op.path(context); + op.colorize(context, void 0); + }); + context.restore(); + } + } + _addBounds(bounds) { + if (this.visible && this.isMeasured) { + each(this._operations, (op) => { + op.addBounds(bounds); + }); + } + } + }; + var CanvasText = class extends CanvasDisplayObject { + constructor(renderer, text, style) { + super(renderer); + this.resolution = 1; + this.textVisible = true; + this._originalScale = 1; + this.text = text; + this.style = style; + } + invalidateBounds() { + super.invalidateBounds(); + this._textInfo = void 0; + } + invalidateVisibility() { + this.textVisible = true; + this.scale = this._originalScale || 1; + } + _shared(context) { + if (this.style.textAlign) { + context.textAlign = this.style.textAlign; + } + if (this.style.direction) { + context.direction = this.style.direction; + } + if (this.style.textBaseline) { + context.textBaseline = this.style.textBaseline; + } + } + _prerender(status, ignoreGhost = false, ignoreFontWeight = false) { + super._render(status); + const context = status.layer.context; + const ghostContext = this._renderer._ghostLayer.context; + const style = this.style; + let fontStyle = this._getFontStyle(void 0, ignoreFontWeight); + context.font = fontStyle; + if (this._isInteractive(status) && !ignoreGhost) { + ghostContext.font = fontStyle; + } + if (style.fill) { + if (style.fill instanceof Color) { + context.fillStyle = style.fill.toCSS(style.fillOpacity != void 0 ? style.fillOpacity : 1); + } else { + context.fillStyle = style.fill; + } + } + if (style.shadowColor) { + status.layer.context.shadowColor = style.shadowColor.toCSS(style.shadowOpacity || 1); + } + if (style.shadowBlur) { + status.layer.context.shadowBlur = style.shadowBlur; + } + if (style.shadowOffsetX) { + status.layer.context.shadowOffsetX = style.shadowOffsetX; + } + if (style.shadowOffsetY) { + status.layer.context.shadowOffsetY = style.shadowOffsetY; + } + this._shared(context); + if (this._isInteractive(status) && !ignoreGhost) { + ghostContext.fillStyle = this._getColorId(); + this._shared(ghostContext); + } + } + _getFontStyle(style2, ignoreFontWeight = false) { + const style = this.style; + let fontStyle = []; + if (style2 && style2.fontVariant) { + fontStyle.push(style2.fontVariant); + } else if (style.fontVariant) { + fontStyle.push(style.fontVariant); + } + if (!ignoreFontWeight) { + if (style2 && style2.fontWeight) { + fontStyle.push(style2.fontWeight); + } else if (style.fontWeight) { + fontStyle.push(style.fontWeight); + } + } + if (style2 && style2.fontStyle) { + fontStyle.push(style2.fontStyle); + } else if (style.fontStyle) { + fontStyle.push(style.fontStyle); + } + if (style2 && style2.fontSize) { + if (isNumber(style2.fontSize)) { + style2.fontSize = style2.fontSize + "px"; + } + fontStyle.push(style2.fontSize); + } else if (style.fontSize) { + if (isNumber(style.fontSize)) { + style.fontSize = style.fontSize + "px"; + } + fontStyle.push(style.fontSize); + } + if (style2 && style2.fontFamily) { + fontStyle.push(style2.fontFamily); + } else if (style.fontFamily) { + fontStyle.push(style.fontFamily); + } else if (fontStyle.length) { + fontStyle.push("Arial"); + } + return fontStyle.join(" "); + } + _render(status, targetGhostLayer = 0) { + if (!this._textInfo) { + this._measure(status); + } + if (this.textVisible) { + const interactive = this._isInteractive(status); + const context = status.layer.context; + const layerDirty = status.layer.dirty; + const ghostContext = this._renderer._ghostLayer.context; + const ghostOnly = this._ghostOnly(targetGhostLayer); + const drawGhost = this._drawGhost(status, targetGhostLayer); + context.save(); + ghostContext.save(); + this._prerender(status); + each(this._textInfo, (line2, _index) => { + each(line2.textChunks, (chunk, _index2) => { + if (chunk.style) { + context.save(); + ghostContext.save(); + if (!ghostOnly) { + context.font = chunk.style; + } + if (this._isInteractive(status)) { + ghostContext.font = chunk.style; + } + } + if (chunk.fill) { + context.save(); + if (!ghostOnly) { + context.fillStyle = chunk.fill.toCSS(); + } + } + if (layerDirty && !ghostOnly) { + context.fillText(chunk.text, chunk.offsetX, line2.offsetY + chunk.offsetY); + } + if (chunk.textDecoration == "underline" || chunk.textDecoration == "line-through") { + let thickness = 1; + let offset = 1; + let fontSize = chunk.height; + const oversizedBehavior = this.style.oversizedBehavior || ""; + if (["truncate", "wrap", "wrap-no-break"].indexOf(oversizedBehavior) > -1) { + const metrics = this._measureText(chunk.text, context); + chunk.width = metrics.actualBoundingBoxLeft + metrics.actualBoundingBoxRight; + } + let offsetX = chunk.offsetX; + switch (this.style.textAlign) { + case "right": + case "end": + offsetX -= chunk.width; + break; + case "center": + offsetX -= chunk.width / 2; + break; + } + if (chunk.style) { + const format = TextFormatter.getTextStyle(chunk.style); + switch (format.fontWeight) { + case "bolder": + case "bold": + case "700": + case "800": + case "900": + thickness = 2; + break; + } + } + if (fontSize) { + offset = fontSize / 20; + } + let y; + if (chunk.textDecoration == "line-through") { + y = thickness + line2.offsetY + chunk.offsetY - chunk.height / 2; + } else { + y = thickness + offset * 1.5 + line2.offsetY + chunk.offsetY; + } + if (!ghostOnly) { + context.save(); + context.beginPath(); + if (chunk.fill) { + context.strokeStyle = chunk.fill.toCSS(); + } else if (this.style.fill && this.style.fill instanceof Color) { + context.strokeStyle = this.style.fill.toCSS(); + } + context.lineWidth = thickness * offset; + context.moveTo(offsetX, y); + context.lineTo(offsetX + chunk.width, y); + context.stroke(); + context.restore(); + } + } + if (interactive && this.interactive && drawGhost) { + ghostContext.fillText(chunk.text, chunk.offsetX, line2.offsetY + chunk.offsetY); + } + if (chunk.fill) { + context.restore(); + } + if (chunk.style) { + context.restore(); + ghostContext.restore(); + } + }); + }); + context.restore(); + ghostContext.restore(); + } + } + _addBounds(bounds) { + if (this.visible && this.isMeasured) { + const x = this._measure({ + inactive: this.inactive, + layer: this.getLayer() + }); + setPoint(bounds, { x: x.left, y: x.top }); + setPoint(bounds, { x: x.right, y: x.bottom }); + } + } + _ignoreFontWeight() { + return /apple/i.test(navigator.vendor); + } + _measure(status) { + const context = status.layer.context; + const ghostContext = this._renderer._ghostLayer.context; + const rtl = this.style.direction == "rtl"; + this._textInfo = []; + const oversizedBehavior = this.style.oversizedBehavior; + const maxWidth = this.style.maxWidth; + const truncate = isNumber(maxWidth) && oversizedBehavior == "truncate"; + const wrap = isNumber(maxWidth) && (oversizedBehavior == "wrap" || oversizedBehavior == "wrap-no-break"); + context.save(); + ghostContext.save(); + this._prerender(status, true, this._ignoreFontWeight()); + const refText = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 "; + const lines = this.text.toString().replace(/\r/g, "").split(/\n/); + let styleRestored = true; + let minX = 0; + let maxX = 0; + let offsetY = 0; + let currentStyle; + each(lines, (line2, _index) => { + let chunks; + if (line2 == "") { + chunks = [{ + type: "value", + text: "" + }]; + } else { + chunks = TextFormatter.chunk(line2, false, this.style.ignoreFormatting); + } + while (chunks.length > 0) { + let lineInfo = { + offsetY, + ascent: 0, + width: 0, + height: 0, + left: 0, + right: 0, + textChunks: [] + }; + const metrics = this._measureText(refText, context); + const height = metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent; + lineInfo.height = height; + lineInfo.ascent = metrics.actualBoundingBoxAscent; + let currentFormat; + let currentDecoration = this.style.textDecoration; + let currentFill; + let currentChunkWidth; + let skipFurtherText = false; + let firstTextChunk = true; + let leftoverChunks = []; + let currentVerticalAlign; + eachContinue(chunks, (chunk, index) => { + if (chunk.type == "format") { + if (chunk.text == "[/]") { + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + styleRestored = true; + } + currentFill = void 0; + currentStyle = void 0; + currentChunkWidth = void 0; + currentDecoration = this.style.textDecoration; + currentVerticalAlign = void 0; + currentFormat = chunk.text; + } else { + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + } + let format = TextFormatter.getTextStyle(chunk.text); + const fontStyle = this._getFontStyle(format); + context.save(); + ghostContext.save(); + context.font = fontStyle; + currentStyle = fontStyle; + currentFormat = chunk.text; + if (format.textDecoration) { + currentDecoration = format.textDecoration; + } + if (format.fill) { + currentFill = format.fill; + } + if (format.width) { + currentChunkWidth = toNumber(format.width); + } + if (format.verticalAlign) { + currentVerticalAlign = format.verticalAlign; + } + styleRestored = false; + const metrics2 = this._measureText(refText, context); + const height2 = metrics2.actualBoundingBoxAscent + metrics2.actualBoundingBoxDescent; + if (height2 > lineInfo.height) { + lineInfo.height = height2; + } + if (metrics2.actualBoundingBoxAscent > lineInfo.ascent) { + lineInfo.ascent = metrics2.actualBoundingBoxAscent; + } + } + } else if (chunk.type == "value" && !skipFurtherText) { + const metrics2 = this._measureText(chunk.text, context); + let chunkWidth = metrics2.actualBoundingBoxLeft + metrics2.actualBoundingBoxRight; + if (truncate) { + this.truncated = void 0; + let breakWords = firstTextChunk || this.style.breakWords || false; + const ellipsis = this.style.ellipsis || ""; + const ellipsisMetrics = this._measureText(ellipsis, context); + const ellipsisWidth = ellipsisMetrics.actualBoundingBoxLeft + ellipsisMetrics.actualBoundingBoxRight; + if (lineInfo.width + chunkWidth > maxWidth) { + const excessWidth = maxWidth - lineInfo.width - ellipsisWidth; + chunk.text = this._truncateText(context, chunk.text, excessWidth, breakWords); + chunk.text += ellipsis; + skipFurtherText = true; + this.truncated = true; + } + } else if (wrap) { + if (lineInfo.width + chunkWidth > maxWidth) { + const excessWidth = maxWidth - lineInfo.width; + const tmpText = this._truncateText(context, chunk.text, excessWidth, false, firstTextChunk && this.style.oversizedBehavior != "wrap-no-break"); + if (tmpText == "") { + this.textVisible = true; + return false; + } + leftoverChunks = chunks.slice(index + 1); + if (trim(tmpText) != trim(chunk.text)) { + leftoverChunks.unshift({ + type: "value", + text: chunk.text.substr(tmpText.length) + }); + if (currentFormat) { + leftoverChunks.unshift({ + type: "format", + text: currentFormat + }); + } + } + chunk.text = trim(tmpText); + chunks = []; + skipFurtherText = true; + } + } + let leftBoundMod = 1; + let rightBoundMod = 1; + if (currentStyle && currentChunkWidth && currentChunkWidth > chunkWidth) { + const boundsMod = chunkWidth / currentChunkWidth; + switch (this.style.textAlign) { + case "right": + case "end": + leftBoundMod = boundsMod; + break; + case "center": + leftBoundMod = boundsMod; + rightBoundMod = boundsMod; + break; + default: + rightBoundMod = boundsMod; + } + chunkWidth = currentChunkWidth; + } + const chunkHeight = metrics2.actualBoundingBoxAscent + metrics2.actualBoundingBoxDescent; + if (chunkHeight > lineInfo.height) { + lineInfo.height = chunkHeight; + } + if (metrics2.actualBoundingBoxAscent > lineInfo.ascent) { + lineInfo.ascent = metrics2.actualBoundingBoxAscent; + } + lineInfo.width += chunkWidth; + lineInfo.left += metrics2.actualBoundingBoxLeft / leftBoundMod; + lineInfo.right += metrics2.actualBoundingBoxRight / rightBoundMod; + lineInfo.textChunks.push({ + style: currentStyle, + fill: currentFill, + text: chunk.text, + width: chunkWidth, + height: chunkHeight, + left: metrics2.actualBoundingBoxLeft, + right: metrics2.actualBoundingBoxRight, + ascent: metrics2.actualBoundingBoxAscent, + offsetX: 0, + offsetY: 0, + textDecoration: currentDecoration, + verticalAlign: currentVerticalAlign + }); + firstTextChunk = false; + } + if (leftoverChunks) { + } + return true; + }); + if (this.style.lineHeight instanceof Percent) { + lineInfo.height *= this.style.lineHeight.value; + lineInfo.ascent *= this.style.lineHeight.value; + } else { + lineInfo.height *= this.style.lineHeight || 1.2; + lineInfo.ascent *= this.style.lineHeight || 1.2; + } + if (minX < lineInfo.left) { + minX = lineInfo.left; + } + if (maxX < lineInfo.right) { + maxX = lineInfo.right; + } + this._textInfo.push(lineInfo); + offsetY += lineInfo.height; + chunks = leftoverChunks || []; + } + }); + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + } + each(this._textInfo, (lineInfo, _index) => { + let currentChunkOffset = 0; + each(lineInfo.textChunks, (chunk) => { + chunk.offsetX = currentChunkOffset + chunk.left - lineInfo.left; + chunk.offsetY += lineInfo.height - lineInfo.height * (this.style.baselineRatio || 0.19); + currentChunkOffset += chunk.width * (rtl ? -1 : 1); + if (chunk.verticalAlign) { + switch (chunk.verticalAlign) { + case "super": + chunk.offsetY -= lineInfo.height / 2 - chunk.height / 2; + break; + case "sub": + chunk.offsetY += chunk.height / 2; + break; + } + } + }); + }); + const bounds = { + left: rtl ? -maxX : -minX, + top: 0, + right: rtl ? minX : maxX, + bottom: offsetY + }; + if (oversizedBehavior !== "none") { + const ratio = this._fitRatio(bounds); + if (ratio < 1) { + if (oversizedBehavior == "fit") { + if (isNumber(this.style.minScale) && ratio < this.style.minScale) { + this.textVisible = false; + bounds.left = 0; + bounds.top = 0; + bounds.right = 0; + bounds.bottom = 0; + } else { + if (!this._originalScale) { + this._originalScale = this.scale; + } + this.scale = ratio; + this.textVisible = true; + } + } else if (oversizedBehavior == "hide") { + this.textVisible = false; + bounds.left = 0; + bounds.top = 0; + bounds.right = 0; + bounds.bottom = 0; + } else { + switch (this.style.textAlign) { + case "right": + case "end": + bounds.left = rtl ? maxWidth : -maxWidth; + bounds.right = 0; + break; + case "center": + bounds.left = -maxWidth / 2; + bounds.right = maxWidth / 2; + break; + default: + bounds.left = 0; + bounds.right = rtl ? -maxWidth : maxWidth; + } + this.scale = this._originalScale || 1; + this._originalScale = void 0; + this.textVisible = true; + } + } else { + this.scale = this._originalScale || 1; + this._originalScale = void 0; + this.textVisible = true; + } + } + context.restore(); + ghostContext.restore(); + return bounds; + } + _fitRatio(bounds) { + const maxW = this.style.maxWidth; + const maxH = this.style.maxHeight; + if (!isNumber(maxW) && !isNumber(maxH)) { + return 1; + } + const w = bounds.right - bounds.left; + const h = bounds.bottom - bounds.top; + return Math.min(maxW / w || 1, maxH / h || 1); + } + _truncateText(context, text, maxWidth, breakWords = false, fallbackBreakWords = true) { + let width; + do { + if (breakWords) { + text = text.slice(0, -1); + } else { + let tmp = text.replace(/[^,;:!?\\\/\s​]+[,;:!?\\\/\s​]*$/g, ""); + if ((tmp == "" || tmp === text) && fallbackBreakWords) { + breakWords = true; + } else if (tmp == "") { + return text; + } else { + text = tmp; + } + } + const metrics = this._measureText(text, context); + width = metrics.actualBoundingBoxLeft + metrics.actualBoundingBoxRight; + } while (width > maxWidth && text != ""); + return text; + } + _measureText(text, context) { + let metrics = context.measureText(text); + let fakeMetrics = {}; + if (metrics.actualBoundingBoxAscent == null) { + const div = document.createElement("div"); + div.innerText = text; + div.style.visibility = "hidden"; + div.style.position = "absolute"; + div.style.top = "-1000000px;"; + div.style.fontFamily = this.style.fontFamily || ""; + div.style.fontSize = this.style.fontSize + ""; + document.body.appendChild(div); + const bbox = div.getBoundingClientRect(); + document.body.removeChild(div); + const h = bbox.height; + const w2 = metrics.width; + let left = 0; + let right = w2; + fakeMetrics = { + actualBoundingBoxAscent: h, + actualBoundingBoxDescent: 0, + actualBoundingBoxLeft: left, + actualBoundingBoxRight: right, + fontBoundingBoxAscent: h, + fontBoundingBoxDescent: 0, + width: w2 + }; + } else { + fakeMetrics = { + actualBoundingBoxAscent: metrics.actualBoundingBoxAscent, + actualBoundingBoxDescent: metrics.actualBoundingBoxDescent, + actualBoundingBoxLeft: metrics.actualBoundingBoxLeft, + actualBoundingBoxRight: metrics.actualBoundingBoxRight, + fontBoundingBoxAscent: metrics.actualBoundingBoxAscent, + fontBoundingBoxDescent: metrics.actualBoundingBoxDescent, + width: metrics.width + }; + } + const w = metrics.width; + switch (this.style.textAlign) { + case "right": + case "end": + fakeMetrics.actualBoundingBoxLeft = w; + fakeMetrics.actualBoundingBoxRight = 0; + break; + case "center": + fakeMetrics.actualBoundingBoxLeft = w / 2; + fakeMetrics.actualBoundingBoxRight = w / 2; + break; + default: + fakeMetrics.actualBoundingBoxLeft = 0; + fakeMetrics.actualBoundingBoxRight = w; + } + return fakeMetrics; + } + }; + var CanvasTextStyle = class { + constructor() { + this.lineHeight = percent(120); + this.baselineRatio = 0.19; + this.oversizedBehavior = "none"; + this.breakWords = false; + this.ellipsis = "\u2026"; + this.ignoreFormatting = false; + } + }; + var CanvasRadialText = class extends CanvasText { + constructor() { + super(...arguments); + this.textType = "circular"; + this.inside = false; + this.orientation = "auto"; + this.kerning = 0; + this._textReversed = false; + } + _render(status, targetGhostLayer = 0) { + switch (this.textType) { + case "circular": + this._renderCircular(status, targetGhostLayer); + break; + default: + super._render(status, targetGhostLayer); + break; + } + } + _renderCircular(status, targetGhostLayer = 0) { + if (this.textVisible) { + this._prerender(status); + const interactive = this._isInteractive(status); + const context = status.layer.context; + const layerDirty = status.layer.dirty; + const ghostContext = this._renderer._ghostLayer.context; + context.save(); + if (interactive) { + ghostContext.save(); + } + if (!this._textInfo) { + this._measure(status); + } + let radius = this.radius || 0; + let startAngle = this.startAngle || 0; + let deltaAngle = 0; + let orientation = this.orientation; + let inward = orientation == "auto" ? "auto" : orientation == "inward"; + const inside = this.inside; + const align = this.style.textAlign || "left"; + const kerning = this.kerning || 0; + let clockwise = align == "left" ? 1 : -1; + const shouldReverse = !this._textReversed; + const ghostOnly = this._ghostOnly(targetGhostLayer); + const drawGhost = this._drawGhost(status, targetGhostLayer); + if (inward == "auto") { + let maxAngle = 0; + let midAngle = 0; + each(this._textInfo, (line2, _index) => { + const deltaAngle2 = startAngle + line2.width / (radius - line2.height) / 2 * -clockwise; + if (deltaAngle2 > maxAngle) { + maxAngle = deltaAngle2; + } + }); + if (align == "left") { + midAngle = (maxAngle + deltaAngle / 2) * DEGREES; + } else if (align == "right") { + midAngle = (maxAngle - deltaAngle / 2) * DEGREES; + } else { + midAngle = startAngle * DEGREES; + } + midAngle = normalizeAngle(midAngle); + inward = midAngle >= 270 || midAngle <= 90; + } + if (inward == true && shouldReverse) { + this._textInfo.reverse(); + this._textReversed = true; + } + each(this._textInfo, (line2, _index) => { + const textHeight = line2.height; + if (!inside) { + radius += textHeight; + } + if ((clockwise == -1 && inward || clockwise == 1 && !inward) && shouldReverse) { + line2.textChunks.reverse(); + } + let lineStartAngle = startAngle; + deltaAngle = 0; + if (align == "center") { + lineStartAngle += line2.width / (radius - textHeight) / 2 * -clockwise; + deltaAngle = lineStartAngle - startAngle; + } + lineStartAngle += Math.PI * (inward ? 0 : 1); + context.save(); + if (interactive) { + ghostContext.save(); + } + if (!ghostOnly) { + context.rotate(lineStartAngle); + } + if (interactive) { + ghostContext.rotate(lineStartAngle); + } + let angleShift = 0; + each(line2.textChunks, (chunk, _index2) => { + const char = chunk.text; + const charWidth = chunk.width; + angleShift = charWidth / 2 / (radius - textHeight) * clockwise; + if (!ghostOnly) { + context.rotate(angleShift); + } + if (interactive) { + ghostContext.rotate(angleShift); + } + if (chunk.style) { + context.save(); + ghostContext.save(); + if (!ghostOnly) { + context.font = chunk.style; + } + if (interactive) { + ghostContext.font = chunk.style; + } + } + if (chunk.fill) { + context.save(); + if (!ghostOnly) { + context.fillStyle = chunk.fill.toCSS(); + } + } + if (!ghostOnly) { + context.textBaseline = "middle"; + context.textAlign = "center"; + } + if (interactive) { + ghostContext.textBaseline = "middle"; + ghostContext.textAlign = "center"; + } + if (layerDirty && !ghostOnly) { + context.fillText(char, 0, (inward ? 1 : -1) * (0 - radius + textHeight / 2)); + } + if (interactive && drawGhost) { + ghostContext.fillText(char, 0, (inward ? 1 : -1) * (0 - radius + textHeight / 2)); + } + if (chunk.fill) { + context.restore(); + } + if (chunk.style) { + context.restore(); + ghostContext.restore(); + } + angleShift = (charWidth / 2 + kerning) / (radius - textHeight) * clockwise; + if (!ghostOnly) { + context.rotate(angleShift); + } + if (interactive) { + ghostContext.rotate(angleShift); + } + }); + context.restore(); + if (interactive) { + ghostContext.restore(); + } + if (inside) { + radius -= textHeight; + } + }); + context.restore(); + if (interactive) { + ghostContext.restore(); + } + } + } + _measure(status) { + switch (this.textType) { + case "circular": + return this._measureCircular(status); + default: + return super._measure(status); + } + } + _measureCircular(status) { + const context = status.layer.context; + const ghostContext = this._renderer._ghostLayer.context; + const rtl = this.style.direction == "rtl"; + const oversizedBehavior = this.style.oversizedBehavior; + const maxWidth = this.style.maxWidth; + const truncate = isNumber(maxWidth) && oversizedBehavior == "truncate"; + const ellipsis = this.style.ellipsis || ""; + let ellipsisMetrics; + this.textVisible = true; + this._textInfo = []; + this._textReversed = false; + context.save(); + ghostContext.save(); + this._prerender(status, true); + const lines = this.text.toString().replace(/\r/g, "").split(/\n/); + let styleRestored = true; + let totalWidth = 0; + let offsetY = 0; + each(lines, (line2, _index) => { + let chunks = TextFormatter.chunk(line2, false, this.style.ignoreFormatting); + let lineInfo = { + offsetY, + ascent: 0, + width: 0, + height: 0, + left: 0, + right: 0, + textChunks: [] + }; + let currentStyle; + let currentFill; + let currentChunkWidth; + each(chunks, (chunk, _index2) => { + if (chunk.type == "format") { + if (chunk.text == "[/]") { + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + styleRestored = true; + } + currentFill = void 0; + currentStyle = void 0; + currentChunkWidth = void 0; + } else { + let format = TextFormatter.getTextStyle(chunk.text); + const fontStyle = this._getFontStyle(format); + context.save(); + ghostContext.save(); + context.font = fontStyle; + currentStyle = fontStyle; + if (format.fill) { + currentFill = format.fill; + } + if (format.width) { + currentChunkWidth = toNumber(format.width); + } + styleRestored = false; + } + if (truncate) { + ellipsisMetrics = this._measureText(ellipsis, context); + } + } else if (chunk.type == "value") { + let chars = chunk.text.match(/./ug) || []; + if (rtl) { + chars = splitString(chunk.text); + chars.reverse(); + } + for (let i = 0; i < chars.length; i++) { + const char = chars[i]; + const metrics = this._measureText(char, context); + let chunkWidth = metrics.width; + if (currentStyle && currentChunkWidth && currentChunkWidth > chunkWidth) { + chunkWidth = currentChunkWidth; + } + const chunkHeight = metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent; + if (chunkHeight > lineInfo.height) { + lineInfo.height = chunkHeight; + } + if (metrics.actualBoundingBoxAscent > lineInfo.ascent) { + lineInfo.ascent = metrics.actualBoundingBoxAscent; + } + totalWidth += chunkWidth; + if (truncate) { + if (!ellipsisMetrics) { + ellipsisMetrics = this._measureText(ellipsis, context); + } + const ellipsisWidth = ellipsisMetrics.actualBoundingBoxLeft + ellipsisMetrics.actualBoundingBoxRight; + if (totalWidth + ellipsisWidth > maxWidth) { + if (lineInfo.textChunks.length == 1) { + this.textVisible = false; + } else { + lineInfo.width += ellipsisWidth; + lineInfo.left += ellipsisMetrics.actualBoundingBoxLeft; + lineInfo.right += ellipsisMetrics.actualBoundingBoxRight; + lineInfo.textChunks.push({ + style: currentStyle, + fill: currentFill, + text: ellipsis, + width: ellipsisWidth, + height: chunkHeight + ellipsisMetrics.actualBoundingBoxDescent, + left: ellipsisMetrics.actualBoundingBoxLeft, + right: ellipsisMetrics.actualBoundingBoxRight, + ascent: ellipsisMetrics.actualBoundingBoxAscent, + offsetX: 0, + offsetY: chunkHeight, + textDecoration: void 0 + }); + } + break; + } + } + lineInfo.width += chunkWidth; + lineInfo.left += metrics.actualBoundingBoxLeft; + lineInfo.right += metrics.actualBoundingBoxRight; + lineInfo.textChunks.push({ + style: currentStyle, + fill: currentFill, + text: char, + width: chunkWidth, + height: chunkHeight + metrics.actualBoundingBoxDescent, + left: metrics.actualBoundingBoxLeft, + right: metrics.actualBoundingBoxRight, + ascent: metrics.actualBoundingBoxAscent, + offsetX: 0, + offsetY: chunkHeight, + textDecoration: void 0 + }); + if (rtl) { + } + } + } + }); + if (this.style.lineHeight instanceof Percent) { + lineInfo.height *= this.style.lineHeight.value; + } else { + lineInfo.height *= this.style.lineHeight || 1.2; + } + this._textInfo.push(lineInfo); + offsetY += lineInfo.height; + }); + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + } + if (oversizedBehavior == "hide" && totalWidth > maxWidth) { + this.textVisible = false; + } + each(this._textInfo, (lineInfo) => { + each(lineInfo.textChunks, (chunk) => { + chunk.offsetY += Math.round((lineInfo.height - chunk.height + (lineInfo.ascent - chunk.ascent)) / 2); + }); + }); + context.restore(); + ghostContext.restore(); + return { + left: 0, + top: 0, + right: 0, + bottom: 0 + }; + } + }; + var CanvasImage = class extends CanvasDisplayObject { + constructor(renderer, image) { + super(renderer); + this.image = image; + } + _dispose() { + super._dispose(); + if (this._imageMask) { + clearCanvas(this._imageMask); + } + } + getLocalBounds() { + if (!this._localBounds) { + let w = 0; + let h = 0; + if (this.width) { + w = this.width; + } + if (this.height) { + h = this.height; + } + this._localBounds = { + left: 0, + top: 0, + right: w, + bottom: h + }; + this._addBounds(this._localBounds); + } + return this._localBounds; + } + _render(status, targetGhostLayer = 0) { + super._render(status); + if (this.image) { + if (this.tainted === void 0) { + this.tainted = isTainted(this.image); + status.layer.tainted = true; + } + if (this.tainted && this._renderer._omitTainted) { + return; + } + const ghostOnly = this._ghostOnly(targetGhostLayer); + const drawGhost = this._drawGhost(status, targetGhostLayer); + if (status.layer.dirty && !ghostOnly) { + if (this.shadowColor) { + status.layer.context.shadowColor = this.shadowColor.toCSS(this.shadowOpacity || 1); + } + if (this.shadowBlur) { + status.layer.context.shadowBlur = this.shadowBlur; + } + if (this.shadowOffsetX) { + status.layer.context.shadowOffsetX = this.shadowOffsetX; + } + if (this.shadowOffsetY) { + status.layer.context.shadowOffsetY = this.shadowOffsetY; + } + const width = this.width || this.image.naturalWidth; + const height = this.height || this.image.naturalHeight; + status.layer.context.drawImage(this.image, 0, 0, width, height); + } + if (this.interactive && this._isInteractive(status) && drawGhost) { + const mask = this._getMask(this.image); + this._renderer._ghostLayer.context.drawImage(mask, 0, 0); + } + } + } + clear() { + super.clear(); + this.image = void 0; + this._imageMask = void 0; + } + _getMask(image) { + if (this._imageMask === void 0) { + const width = this.width || image.naturalWidth; + const height = this.height || image.naturalHeight; + const canvas = document.createElement("canvas"); + canvas.width = width; + canvas.height = height; + const context = canvas.getContext("2d"); + context.imageSmoothingEnabled = false; + context.fillStyle = this._getColorId(); + context.fillRect(0, 0, width, height); + if (!isTainted(image)) { + context.globalCompositeOperation = "destination-in"; + context.drawImage(image, 0, 0, width, height); + } + this._imageMask = canvas; + } + return this._imageMask; + } + }; + var CanvasRendererEvent = class { + constructor(event, originalPoint, point, bbox) { + this.event = event; + this.originalPoint = originalPoint; + this.point = point; + this.bbox = bbox; + this.simulated = false; + this.native = true; + if (supports("touchevents") && event instanceof Touch) { + this.id = event.identifier; + } else { + this.id = null; + } + } + }; + var CanvasRenderer = class extends ArrayDisposer { + constructor(resolution) { + super(); + this.view = document.createElement("div"); + this._layerDom = document.createElement("div"); + this.layers = []; + this._dirtyLayers = []; + this.defaultLayer = this.getLayer(0); + this._ghostLayer = new GhostLayer(); + this._deferredGhostLayers = []; + this._patternCanvas = document.createElement("canvas"); + this._patternContext = this._patternCanvas.getContext("2d"); + this._realWidth = 0; + this._realHeight = 0; + this._calculatedWidth = 0; + this._calculatedHeight = 0; + this.interactionsEnabled = true; + this._listeners = {}; + this._events = {}; + this._colorId = 0; + this._colorMap = {}; + this._forceInteractive = 0; + this._omitTainted = false; + this._hovering = /* @__PURE__ */ new Set(); + this._dragging = []; + this._mousedown = []; + this.tapToActivate = false; + this.tapToActivateTimeout = 3e3; + this._touchActive = false; + if (resolution == null) { + this.resolution = window.devicePixelRatio; + } else { + this.resolution = resolution; + } + this.view.style.position = "absolute"; + this.view.setAttribute("aria-hidden", "true"); + this.view.appendChild(this._layerDom); + this._disposers.push(new Disposer(() => { + each2(this._events, (_key, events) => { + events.disposer.dispose(); + }); + each(this.layers, (layer) => { + clearCanvas(layer.view); + if (layer.exportableView) { + clearCanvas(layer.exportableView); + } + }); + clearCanvas(this._ghostLayer.view); + clearCanvas(this._patternCanvas); + })); + this._disposers.push(onZoom(() => { + if (resolution == null) { + this.resolution = window.devicePixelRatio; + } + })); + if (supports("touchevents")) { + const listener = (ev) => { + if (this._dragging.length !== 0) { + eachContinue(this._dragging, (item) => { + if (item.value.shouldCancelTouch()) { + ev.preventDefault(); + return false; + } + return true; + }); + } + if (this._touchActiveTimeout) { + this._delayTouchDeactivate(); + } + }; + this._disposers.push(addEventListener(window, "touchstart", listener, { passive: false })); + this._disposers.push(addEventListener(this.view, "touchstart", listener, { passive: false })); + this._disposers.push(addEventListener(this.view, "touchmove", () => { + if (this._touchActiveTimeout) { + this._delayTouchDeactivate(); + } + }, { passive: true })); + this._disposers.push(addEventListener(window, "click", (_ev) => { + this._touchActive = false; + }, { passive: true })); + this._disposers.push(addEventListener(this.view, "click", (_ev) => { + window.setTimeout(() => { + this._touchActive = true; + this._delayTouchDeactivate(); + }, 100); + }, { passive: true })); + } + if (supports("wheelevents")) { + this._disposers.push(addEventListener(this.view, "wheel", (ev) => { + let prevent = false; + this._hovering.forEach((obj) => { + if (obj.wheelable) { + prevent = true; + return false; + } + }); + if (prevent) { + ev.preventDefault(); + } + }, { passive: false })); + } + } + /*protected _mouseMoveThrottler: Throttler = new Throttler(() => { + this._dispatchGlobalMousemove(this._lastPointerMoveEvent.event, this._lastPointerMoveEvent.native); + }); + */ + resetImageArray() { + this._ghostLayer.imageArray = void 0; + } + _delayTouchDeactivate() { + if (this._touchActiveTimeout) { + clearTimeout(this._touchActiveTimeout); + } + if (this.tapToActivateTimeout > 0) { + this._touchActiveTimeout = window.setTimeout(() => { + this._touchActive = false; + }, this.tapToActivateTimeout); + } + } + get debugGhostView() { + return !!this._ghostLayer.view.parentNode; + } + set debugGhostView(value) { + if (value) { + if (!this._ghostLayer.view.parentNode) { + this.view.appendChild(this._ghostLayer.view); + } + } else { + if (this._ghostLayer.view.parentNode) { + this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view); + } + } + } + createLinearGradient(x1, y1, x2, y2) { + return this.defaultLayer.context.createLinearGradient(x1, y1, x2, y2); + } + createRadialGradient(x1, y1, radius1, x2, y2, radius2) { + return this.defaultLayer.context.createRadialGradient(x1, y1, radius1, x2, y2, radius2); + } + createPattern(graphics, background, repetition, width, height) { + this._patternCanvas.width = width; + this._patternCanvas.height = height; + this._patternContext.clearRect(0, 0, width, height); + background.renderDetached(this._patternContext); + graphics.renderDetached(this._patternContext); + return this._patternContext.createPattern(this._patternCanvas, repetition); + } + makeContainer() { + return new CanvasContainer(this); + } + makeGraphics() { + return new CanvasGraphics(this); + } + makeText(text, style) { + return new CanvasText(this, text, style); + } + makeTextStyle() { + return new CanvasTextStyle(); + } + makeRadialText(text, style) { + return new CanvasRadialText(this, text, style); + } + makePicture(image) { + return new CanvasImage(this, image); + } + resizeLayer(layer) { + layer.resize(this._calculatedWidth, this._calculatedHeight, this._calculatedWidth, this._calculatedHeight, this.resolution); + } + resizeGhost() { + this._ghostLayer.resize(this._calculatedWidth, this._calculatedHeight, this._calculatedWidth, this._calculatedHeight, this.resolution); + } + resize(realWidth, realHeight, calculatedWidth, calculatedHeight) { + this._realWidth = realWidth; + this._realHeight = realHeight; + this._calculatedWidth = calculatedWidth; + this._calculatedHeight = calculatedHeight; + each(this.layers, (layer) => { + if (layer) { + layer.dirty = true; + this.resizeLayer(layer); + } + }); + this.resizeGhost(); + this.view.style.width = calculatedWidth + "px"; + this.view.style.height = calculatedHeight + "px"; + } + createDetachedLayer(willReadFrequently = false) { + const view = document.createElement("canvas"); + const context = view.getContext("2d", { willReadFrequently }); + const layer = new CanvasLayer(view, context); + view.style.position = "absolute"; + view.style.top = "0px"; + view.style.left = "0px"; + return layer; + } + getLayerByOrder(order) { + const layers = this.layers; + const length = layers.length; + for (let i = 0; i < length; i++) { + const layer = layers[i]; + if (layer.order == order) { + return layer; + } + } + } + getLayer(order, visible = true) { + let existingLayer = this.getLayerByOrder(order); + if (existingLayer) { + return existingLayer; + } + const layer = this.createDetachedLayer(order == 99); + layer.order = order; + layer.visible = visible; + layer.view.className = "am5-layer-" + order; + if (layer.visible) { + this.resizeLayer(layer); + } + const layers = this.layers; + layers.push(layer); + layers.sort((a, b) => { + if (a.order > b.order) { + return 1; + } else if (a.order < b.order) { + return -1; + } else { + return 0; + } + }); + const length = layers.length; + const layerIndex = indexOf(layers, layer); + let next; + for (let i = layerIndex + 1; i < length; i++) { + if (layers[i].visible) { + next = layers[i]; + break; + } + } + if (layer.visible) { + if (next === void 0) { + this._layerDom.appendChild(layer.view); + } else { + this._layerDom.insertBefore(layer.view, next.view); + } + } + return layer; + } + render(root2) { + this._dirtyLayers.length = 0; + this._deferredGhostLayers = []; + each(this.layers, (layer) => { + if (layer) { + if (layer.dirty && layer.visible) { + this._dirtyLayers.push(layer); + layer.clear(); + } + } + }); + this._ghostLayer.clear(); + root2.render({ + inactive: null, + layer: this.defaultLayer + }); + const deferredGhostLayers = this._deferredGhostLayers; + if (deferredGhostLayers.length) { + deferredGhostLayers.sort((a, b) => a - b); + each(deferredGhostLayers, (layerx) => { + root2.render({ + inactive: null, + layer: this.defaultLayer + }, layerx); + }); + } + this._ghostLayer.context.restore(); + each(this.layers, (layer) => { + if (layer) { + const context = layer.context; + context.beginPath(); + context.moveTo(0, 0); + context.stroke(); + } + }); + each(this._dirtyLayers, (layer) => { + layer.context.restore(); + layer.dirty = false; + }); + if (this._hovering.size && this._lastPointerMoveEvent) { + const { events, target, native } = this._lastPointerMoveEvent; + each(events, (event) => { + this._dispatchGlobalMousemove(event, target, native); + }); + } + } + paintId(obj) { + const id = distributeId(++this._colorId); + const color2 = Color.fromHex(id).toCSS(); + this._colorMap[color2] = obj; + return color2; + } + _removeObject(obj) { + if (obj._colorId !== void 0) { + delete this._colorMap[obj._colorId]; + } + } + // protected _identifyObjectByColor(colorId: number): CanvasDisplayObject | undefined { + // return this._colorMap[colorId]; + // } + _adjustBoundingBox(bbox) { + const margin = this._ghostLayer.margin; + return new DOMRect(-margin.left, -margin.top, bbox.width + margin.left + margin.right, bbox.height + margin.top + margin.bottom); + } + getEvent(originalEvent, adjustPoint = true) { + const bbox = this.view.getBoundingClientRect(); + const x = originalEvent.clientX || 0; + const y = originalEvent.clientY || 0; + const widthScale = this._calculatedWidth / this._realWidth; + const heightScale = this._calculatedHeight / this._realHeight; + const originalPoint = { + x: x - bbox.left, + y: y - bbox.top + }; + const point = { + x: (x - (adjustPoint ? bbox.left : 0)) * widthScale, + y: (y - (adjustPoint ? bbox.top : 0)) * heightScale + }; + return new CanvasRendererEvent(originalEvent, originalPoint, point, this._adjustBoundingBox(bbox)); + } + _getHitTarget(point, bbox, target) { + if (bbox.width === 0 || bbox.height === 0 || point.x < bbox.left || point.x > bbox.right || point.y < bbox.top || point.y > bbox.bottom) { + return; + } + if (!target || !this._layerDom.contains(target)) { + return; + } + const pixel = this._ghostLayer.getImageData(point, bbox); + if (pixel.data[0] === 0 && pixel.data[1] === 0 && pixel.data[2] === 0) { + return false; + } + const colorId = Color.fromRGB(pixel.data[0], pixel.data[1], pixel.data[2]).toCSS(); + const hit = this._colorMap[colorId]; + return hit; + } + getObjectAtPoint(point) { + const data2 = this._ghostLayer.getImageArray(point); + if (data2[0] === 0 && data2[1] === 0 && data2[2] === 0) { + return void 0; + } + const colorId = Color.fromRGB(data2[0], data2[1], data2[2]).toCSS(); + const hit = this._colorMap[colorId]; + return hit; + } + _withEvents(key, f) { + const events = this._events[key]; + if (events !== void 0) { + events.dispatching = true; + try { + f(events); + } finally { + events.dispatching = false; + if (events.cleanup) { + events.cleanup = false; + keepIf(events.callbacks, (callback) => { + return !callback.disposed; + }); + if (events.callbacks.length === 0) { + events.disposer.dispose(); + delete this._events[key]; + } + } + } + } + } + _dispatchEventAll(key, event) { + if (!this.interactionsEnabled) { + return; + } + this._withEvents(key, (events) => { + each(events.callbacks, (callback) => { + if (!callback.disposed) { + callback.callback.call(callback.context, event); + } + }); + }); + } + _dispatchEvent(key, target, event) { + if (!this.interactionsEnabled) { + return false; + } + let dispatched = false; + this._withEvents(key, (events) => { + each(events.callbacks, (callback) => { + if (!callback.disposed && callback.object === target) { + callback.callback.call(callback.context, event); + dispatched = true; + } + }); + }); + return dispatched; + } + _dispatchMousedown(originalEvent, originalTarget) { + const button = originalEvent.button; + if (button != 0 && button != 2 && button != 1 && button !== void 0) { + return; + } + const event = this.getEvent(originalEvent); + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + if (target) { + const id = event.id; + let dragged = false; + eachTargets(target, (obj) => { + const info = { id, value: obj }; + this._mousedown.push(info); + if (!dragged && this._dispatchEvent("pointerdown", obj, event)) { + dragged = true; + const has = this._dragging.some((x) => { + return x.value === obj && x.id === id; + }); + if (!has) { + this._dragging.push(info); + } + } + return true; + }); + } + } + _dispatchGlobalMousemove(originalEvent, originalTarget, native) { + const event = this.getEvent(originalEvent); + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + event.native = native; + if (target) { + this._hovering.forEach((obj) => { + if (!obj.contains(target)) { + this._hovering.delete(obj); + if (obj.cursorOverStyle) { + setStyle(document.body, "cursor", obj._replacedCursorStyle); + } + this._dispatchEvent("pointerout", obj, event); + } + }); + if (event.native) { + eachTargets(target, (obj) => { + if (!this._hovering.has(obj)) { + this._hovering.add(obj); + if (obj.cursorOverStyle) { + obj._replacedCursorStyle = getStyle(document.body, "cursor"); + setStyle(document.body, "cursor", obj.cursorOverStyle); + } + this._dispatchEvent("pointerover", obj, event); + } + return true; + }); + } + } else { + this._hovering.forEach((obj) => { + if (obj.cursorOverStyle) { + setStyle(document.body, "cursor", obj._replacedCursorStyle); + } + this._dispatchEvent("pointerout", obj, event); + }); + this._hovering.clear(); + } + this._dispatchEventAll("globalpointermove", event); + } + removeHovering(graphics) { + this._hovering.delete(graphics); + if (graphics.cursorOverStyle) { + setStyle(document.body, "cursor", graphics._replacedCursorStyle); + } + } + _dispatchGlobalMouseup(originalEvent, native) { + const event = this.getEvent(originalEvent); + event.native = native; + this._dispatchEventAll("globalpointerup", event); + } + _dispatchDragMove(originalEvent) { + if (this._dragging.length !== 0) { + const event = this.getEvent(originalEvent); + const id = event.id; + this._dragging.forEach((obj) => { + if (obj.id === id) { + this._dispatchEvent("pointermove", obj.value, event); + } + }); + } + } + _dispatchDragEnd(originalEvent, originalTarget) { + const button = originalEvent.button; + let clickevent; + if (button == 0 || button === void 0) { + clickevent = "click"; + } else if (button == 2) { + clickevent = "rightclick"; + } else if (button == 1) { + clickevent = "middleclick"; + } else { + return; + } + const event = this.getEvent(originalEvent); + const id = event.id; + if (this._mousedown.length !== 0) { + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + if (target) { + this._mousedown.forEach((obj) => { + if (obj.id === id && obj.value.contains(target)) { + this._dispatchEvent(clickevent, obj.value, event); + } + }); + } + this._mousedown.length = 0; + } + if (this._dragging.length !== 0) { + this._dragging.forEach((obj) => { + if (obj.id === id) { + this._dispatchEvent("pointerup", obj.value, event); + } + }); + this._dragging.length = 0; + } + } + _dispatchDoubleClick(originalEvent, originalTarget) { + const event = this.getEvent(originalEvent); + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + if (target) { + eachTargets(target, (obj) => { + if (this._dispatchEvent("dblclick", obj, event)) { + return false; + } else { + return true; + } + }); + } + } + _dispatchWheel(originalEvent, originalTarget) { + const event = this.getEvent(originalEvent); + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + if (target) { + eachTargets(target, (obj) => { + if (this._dispatchEvent("wheel", obj, event)) { + return false; + } else { + return true; + } + }); + } + } + _makeSharedEvent(key, f) { + if (this._listeners[key] === void 0) { + const listener = f(); + this._listeners[key] = new CounterDisposer(() => { + delete this._listeners[key]; + listener.dispose(); + }); + } + return this._listeners[key].increment(); + } + _onPointerEvent(name, f) { + let native = false; + let timer = null; + function clear() { + timer = null; + native = false; + } + return new MultiDisposer([ + new Disposer(() => { + if (timer !== null) { + clearTimeout(timer); + } + clear(); + }), + addEventListener(this.view, getRendererEvent(name), (_) => { + native = true; + if (timer !== null) { + clearTimeout(timer); + } + timer = window.setTimeout(clear, 0); + }), + onPointerEvent(window, name, (ev, target) => { + if (timer !== null) { + clearTimeout(timer); + timer = null; + } + f(ev, target, native); + native = false; + }) + ]); + } + // This ensures that only a single DOM event is added (e.g. only a single mousemove event listener) + _initEvent(key) { + switch (key) { + case "globalpointermove": + case "pointerover": + case "pointerout": + return this._makeSharedEvent("pointermove", () => { + const listener = (events, target, native) => { + this._lastPointerMoveEvent = { events, target, native }; + each(events, (event) => { + this._dispatchGlobalMousemove(event, target, native); + }); + }; + return new MultiDisposer([ + this._onPointerEvent("pointerdown", listener), + this._onPointerEvent("pointermove", listener) + ]); + }); + case "globalpointerup": + return this._makeSharedEvent("pointerup", () => { + const mouseup = this._onPointerEvent("pointerup", (events, target, native) => { + each(events, (event) => { + this._dispatchGlobalMouseup(event, native); + }); + this._lastPointerMoveEvent = { events, target, native }; + }); + const pointercancel = this._onPointerEvent("pointercancel", (events, target, native) => { + each(events, (event) => { + this._dispatchGlobalMouseup(event, native); + }); + this._lastPointerMoveEvent = { events, target, native }; + }); + return new Disposer(() => { + mouseup.dispose(); + pointercancel.dispose(); + }); + }); + case "click": + case "rightclick": + case "middleclick": + case "pointerdown": + /* + return this._makeSharedEvent("pointerdown", () => { + return this._onPointerEvent("pointerdown", (event, target, native) => { + this._lastPointerMoveEvent = { event, target, native }; + this._dispatchMousedown(event) + }); + }); + */ + case "pointermove": + case "pointerup": + return this._makeSharedEvent("pointerdown", () => { + const mousedown = this._onPointerEvent("pointerdown", (events, target) => { + each(events, (ev) => { + this._dispatchMousedown(ev, target); + }); + }); + const mousemove = this._onPointerEvent("pointermove", (ev) => { + each(ev, (ev2) => { + this._dispatchDragMove(ev2); + }); + }); + const mouseup = this._onPointerEvent("pointerup", (ev, target) => { + each(ev, (ev2) => { + this._dispatchDragEnd(ev2, target); + }); + }); + const pointercancel = this._onPointerEvent("pointercancel", (ev, target) => { + each(ev, (ev2) => { + this._dispatchDragEnd(ev2, target); + }); + }); + return new Disposer(() => { + mousedown.dispose(); + mousemove.dispose(); + mouseup.dispose(); + pointercancel.dispose(); + }); + }); + case "dblclick": + return this._makeSharedEvent("dblclick", () => { + return this._onPointerEvent("dblclick", (ev, target) => { + each(ev, (ev2) => { + this._dispatchDoubleClick(ev2, target); + }); + }); + }); + case "wheel": + return this._makeSharedEvent("wheel", () => { + return addEventListener(this.view, getRendererEvent("wheel"), (event) => { + this._dispatchWheel(event, getEventTarget(event)); + }, { passive: false }); + }); + } + } + _addEvent(object, key, callback, context) { + let events = this._events[key]; + if (events === void 0) { + events = this._events[key] = { + disposer: this._initEvent(key), + callbacks: [], + dispatching: false, + cleanup: false + }; + } + const listener = { object, context, callback, disposed: false }; + events.callbacks.push(listener); + return new Disposer(() => { + listener.disposed = true; + if (events.dispatching) { + events.cleanup = true; + } else { + removeFirst(events.callbacks, listener); + if (events.callbacks.length === 0) { + events.disposer.dispose(); + delete this._events[key]; + } + } + }); + } + getCanvas(root2, options) { + this.render(root2); + if (!options) { + options = {}; + } + let scale = this.resolution; + let canvasWidth = Math.floor(this._calculatedWidth * this.resolution); + let canvasHeight = Math.floor(this._calculatedHeight * this.resolution); + if (options.minWidth && options.minWidth > canvasWidth) { + let minScale = options.minWidth / canvasWidth; + if (minScale > scale) { + scale = minScale * this.resolution; + } + } + if (options.minHeight && options.minHeight > canvasHeight) { + let minScale = options.minHeight / canvasHeight; + if (minScale > scale) { + scale = minScale * this.resolution; + } + } + if (options.maxWidth && options.maxWidth < canvasWidth) { + let maxScale = options.maxWidth / canvasWidth; + if (maxScale < scale) { + scale = maxScale * this.resolution; + } + } + if (options.maxHeight && options.maxHeight > canvasHeight) { + let maxScale = options.maxHeight / canvasHeight; + if (maxScale < scale) { + scale = maxScale * this.resolution; + } + } + if (options.maintainPixelRatio) { + scale /= this.resolution; + } + const canvases = []; + let forceRender = false; + const canvas = document.createElement("canvas"); + if (scale != this.resolution) { + forceRender = true; + canvasWidth = canvasWidth * scale / this.resolution; + canvasHeight = canvasHeight * scale / this.resolution; + } + canvas.width = canvasWidth; + canvas.height = canvasHeight; + canvas.style.position = "fixed"; + canvas.style.top = "-10000px"; + this.view.appendChild(canvas); + canvases.push(canvas); + const context = canvas.getContext("2d"); + let width = 0; + let height = 0; + let needRerender = false; + each(this.layers, (layer) => { + if (layer && layer.visible) { + if (layer.tainted || forceRender) { + needRerender = true; + layer.exportableView = layer.view; + layer.exportableContext = layer.context; + layer.view = document.createElement("canvas"); + layer.view.style.position = "fixed"; + layer.view.style.top = "-10000px"; + this.view.appendChild(layer.view); + canvases.push(layer.view); + let extraX = 0; + let extraY = 0; + if (layer.margin) { + extraX += layer.margin.left || 0 + layer.margin.right || 0; + extraY += layer.margin.top || 0 + layer.margin.bottom || 0; + } + layer.view.width = canvasWidth + extraX; + layer.view.height = canvasHeight + extraY; + layer.context = layer.view.getContext("2d"); + layer.dirty = true; + layer.scale = scale; + } + } + }); + if (needRerender) { + this._omitTainted = true; + this.render(root2); + this._omitTainted = false; + } + each(this.layers, (layer) => { + if (layer && layer.visible) { + let x = 0; + let y = 0; + if (layer.margin) { + x = -(layer.margin.left || 0) * this.resolution; + y = -(layer.margin.top || 0) * this.resolution; + } + context.drawImage(layer.view, x, y); + if (layer.exportableView) { + layer.view = layer.exportableView; + layer.exportableView = void 0; + } + if (layer.exportableContext) { + layer.context = layer.exportableContext; + layer.exportableContext = void 0; + } + if (width < layer.view.clientWidth) { + width = layer.view.clientWidth; + } + if (height < layer.view.clientHeight) { + height = layer.view.clientHeight; + } + layer.scale = void 0; + } + }); + canvas.style.width = width + "px"; + canvas.style.height = height + "px"; + each(canvases, (canvas2) => { + canvas2.style.position = ""; + canvas2.style.top = ""; + this.view.removeChild(canvas2); + }); + return canvas; + } + }; + var GhostLayer = class { + constructor() { + this.margin = { + left: 0, + right: 0, + top: 0, + bottom: 0 + }; + this._resolution = 1; + this._width = 0; + this._height = 0; + this.view = document.createElement("canvas"); + this.context = this.view.getContext("2d", { alpha: false, willReadFrequently: true }); + this.context.imageSmoothingEnabled = false; + this.view.style.position = "absolute"; + this.view.style.top = "0px"; + this.view.style.left = "0px"; + } + resize(canvasWidth, canvasHeight, domWidth, domHeight, resolution) { + this._resolution = resolution; + canvasWidth += this.margin.left + this.margin.right; + canvasHeight += this.margin.top + this.margin.bottom; + domWidth += this.margin.left + this.margin.right; + domHeight += this.margin.top + this.margin.bottom; + this.view.style.left = -this.margin.left + "px"; + this.view.style.top = -this.margin.top + "px"; + this._width = Math.floor(canvasWidth * resolution); + this._height = Math.floor(canvasHeight * resolution); + this.view.width = this._width; + this.view.style.width = domWidth + "px"; + this.view.height = this._height; + this.view.style.height = domHeight + "px"; + } + getImageData(point, bbox) { + return this.context.getImageData( + // TODO should this round ? + Math.round((point.x - bbox.left) / bbox.width * this._width), + Math.round((point.y - bbox.top) / bbox.height * this._height), + 1, + 1 + ); + } + getImageArray(point) { + if (!this.imageArray) { + this.imageArray = this.context.getImageData(0, 0, this._width, this._height).data; + } + const data2 = this.imageArray; + const x = Math.round(point.x * this._resolution); + const y = Math.round(point.y * this._resolution); + const i = (y * this._width + x) * 4; + return [data2[i], data2[i + 1], data2[i + 2], data2[i + 3]]; + } + setMargin(layers) { + this.margin.left = 0; + this.margin.right = 0; + this.margin.top = 0; + this.margin.bottom = 0; + each(layers, (layer) => { + if (layer.margin) { + this.margin.left = Math.max(this.margin.left, layer.margin.left); + this.margin.right = Math.max(this.margin.right, layer.margin.right); + this.margin.top = Math.max(this.margin.top, layer.margin.top); + this.margin.bottom = Math.max(this.margin.bottom, layer.margin.bottom); + } + }); + } + clear() { + this.context.save(); + this.context.fillStyle = "#000"; + this.context.fillRect(0, 0, this._width, this._height); + } + }; + var CanvasLayer = class { + constructor(view, context) { + this.tainted = true; + this.order = 0; + this.visible = true; + this.dirty = true; + this._width = 0; + this._height = 0; + this.view = view; + this.context = context; + } + resize(canvasWidth, canvasHeight, domWidth, domHeight, resolution) { + if (this.width != null) { + canvasWidth = this.width; + domWidth = this.width; + } + if (this.height != null) { + canvasHeight = this.height; + domHeight = this.height; + } + if (this.margin) { + canvasWidth += this.margin.left + this.margin.right; + canvasHeight += this.margin.top + this.margin.bottom; + domWidth += this.margin.left + this.margin.right; + domHeight += this.margin.top + this.margin.bottom; + this.view.style.left = -this.margin.left + "px"; + this.view.style.top = -this.margin.top + "px"; + } else { + this.view.style.left = "0px"; + this.view.style.top = "0px"; + } + this._width = Math.floor(canvasWidth * resolution); + this._height = Math.floor(canvasHeight * resolution); + this.view.width = this._width; + this.view.style.width = domWidth + "px"; + this.view.height = this._height; + this.view.style.height = domHeight + "px"; + } + clear() { + this.context.save(); + this.context.clearRect(0, 0, this._width, this._height); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/Root.js + function rAF(fps, callback) { + if (fps == null) { + requestAnimationFrame(callback); + } else { + setTimeout(() => { + requestAnimationFrame(callback); + }, 1e3 / fps); + } + } + var Root = class _Root { + constructor(id, settings = {}, isReal) { + this._isDirty = false; + this._isDirtyParents = false; + this._isDirtyAnimation = false; + this._dirty = {}; + this._dirtyParents = {}; + this._dirtyBounds = {}; + this._dirtyPositions = {}; + this._ticker = null; + this._tickers = []; + this._updateTick = true; + this.skipRenderFrame = false; + this.events = new EventDispatcher(); + this.animationTime = null; + this._animations = []; + this.language = Language.new(this, {}); + this.locale = en_default; + this.utc = false; + this.numberFormatter = NumberFormatter.new(this, {}); + this.dateFormatter = DateFormatter.new(this, {}); + this.durationFormatter = DurationFormatter.new(this, {}); + this.tabindex = 0; + this._tabindexes = []; + this._a11yD = false; + this._focusElementDirty = false; + this._skipNextGroupJump = true; + this.verticalLayout = VerticalLayout.new(this, {}); + this.horizontalLayout = HorizontalLayout.new(this, {}); + this.gridLayout = GridLayout.new(this, {}); + this._paused = false; + this.autoResize = true; + this._fontHash = ""; + this._isDisposed = false; + this._disposers = []; + this._tooltips = []; + this._htmlEnabledContainers = []; + this.entitiesById = {}; + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + this._settings = settings; + if (settings.accessible == false) { + this._a11yD = true; + } + if (settings.useSafeResolution == null) { + settings.useSafeResolution = true; + } + let resolution; + if (settings.useSafeResolution) { + resolution = getSafeResolution(); + } + this._renderer = new CanvasRenderer(resolution); + let dom; + if (id instanceof HTMLElement) { + dom = id; + } else { + dom = document.getElementById(id); + } + each(registry.rootElements, (root2) => { + if (root2.dom === dom) { + if (registry.autoDispose) { + root2.dispose(); + } else { + throw new Error("You cannot have multiple Roots on the same DOM node"); + } + } + }); + this.interfaceColors = InterfaceColors.new(this, {}); + if (dom === null) { + throw new Error("Could not find HTML element with id `" + id + "`"); + } + this.dom = dom; + let inner = document.createElement("div"); + inner.style.position = "relative"; + inner.style.width = "100%"; + inner.style.height = "100%"; + dom.appendChild(inner); + const tooltipContainerBounds = settings.tooltipContainerBounds; + if (tooltipContainerBounds) { + this._tooltipContainerSettings = tooltipContainerBounds; + } + this._inner = inner; + this._updateComputedStyles(); + registry.rootElements.push(this); + } + static new(id, settings) { + const root2 = new _Root(id, settings, true); + root2._init(); + return root2; + } + moveDOM(id) { + let dom; + if (id instanceof HTMLElement) { + dom = id; + } else { + dom = document.getElementById(id); + } + if (dom) { + while (this.dom.childNodes.length > 0) { + dom.appendChild(this.dom.childNodes[0]); + } + this.dom = dom; + this._initResizeSensor(); + this.resize(); + } + } + _handleLogo() { + if (this._logo) { + const w = this.dom.offsetWidth; + const h = this.dom.offsetHeight; + if (w <= 150 || h <= 60) { + this._logo.hide(); + } else { + this._logo.show(); + } + } + } + _showBranding() { + if (!this._logo) { + const logo = this.tooltipContainer.children.push(Container.new(this, { + interactive: true, + interactiveChildren: false, + position: "absolute", + setStateOnChildren: true, + paddingTop: 9, + paddingRight: 9, + paddingBottom: 9, + paddingLeft: 9, + scale: 0.6, + y: percent(100), + centerY: p100, + tooltipY: 10, + tooltipText: "Created using amCharts 5", + tooltipX: p100, + cursorOverStyle: "pointer", + background: Rectangle.new(this, { + fill: color(4671320), + fillOpacity: 0, + tooltipY: 5 + }) + })); + logo.set("tooltip", this.systemTooltip); + logo.events.on("click", () => { + window.open("https://www.amcharts.com/", "_blank"); + }); + logo.states.create("hover", {}); + const m = logo.children.push(Graphics.new(this, { + stroke: color(13421772), + strokeWidth: 3, + svgPath: "M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6", + dx: -50, + strokeOpacity: 0 + })); + m.states.create("hover", { stroke: color(3976191) }); + const a = logo.children.push(Graphics.new(this, { + stroke: color(8947848), + strokeWidth: 3, + svgPath: "M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0", + dx: 50, + strokeOpacity: 0 + })); + const easing = out(cubic); + const duration = 1500; + logo.setTimeout(() => { + a.animate({ + key: "strokeOpacity", + to: 1, + duration, + easing + }); + a.animate({ + key: "dx", + to: 0, + duration, + easing + }); + m.animate({ + key: "dx", + to: 0, + duration, + easing + }); + m.animate({ + key: "strokeOpacity", + to: 1, + duration, + easing + }); + }, 3e3); + a.states.create("hover", { stroke: color(4671320) }); + this._logo = logo; + this._handleLogo(); + } + } + _getRealSize() { + return this.dom.getBoundingClientRect(); + } + _getCalculatedSize(rect) { + if (this._settings.calculateSize) { + return this._settings.calculateSize(rect); + } else { + return { + width: rect.width, + height: rect.height + }; + } + } + _init() { + const settings = this._settings; + if (settings.accessible !== false) { + if (settings.focusable) { + this._inner.setAttribute("focusable", "true"); + this._inner.setAttribute("tabindex", this.tabindex + ""); + } + if (settings.ariaLabel) { + this._inner.setAttribute("aria-label", settings.ariaLabel); + } + if (settings.role) { + this._inner.setAttribute("role", settings.role); + } + } + const renderer = this._renderer; + const rect = this._getRealSize(); + const size = this._getCalculatedSize(rect); + const width = Math.floor(size.width); + const height = Math.floor(size.height); + const realWidth = Math.floor(rect.width); + const realHeight = Math.floor(rect.height); + const rootContainer = Container.new(this, { + visible: true, + width, + height + }); + this._rootContainer = rootContainer; + this._rootContainer._defaultThemes.push(DefaultTheme.new(this)); + const container = rootContainer.children.push(Container.new(this, { visible: true, width: p100, height: p100 })); + this.container = container; + renderer.resize(realWidth, realHeight, width, height); + this._inner.appendChild(renderer.view); + this._initResizeSensor(); + const htmlElementContainer = document.createElement("div"); + this._htmlElementContainer = htmlElementContainer; + htmlElementContainer.className = "am5-html-container"; + htmlElementContainer.style.position = "absolute"; + htmlElementContainer.style.pointerEvents = "none"; + if (!this._tooltipContainerSettings) { + htmlElementContainer.style.overflow = "hidden"; + } + this._inner.appendChild(htmlElementContainer); + if (this._a11yD !== true) { + const readerAlertElement = document.createElement("div"); + readerAlertElement.className = "am5-reader-container"; + readerAlertElement.setAttribute("role", "alert"); + readerAlertElement.style.position = "absolute"; + readerAlertElement.style.width = "1px"; + readerAlertElement.style.height = "1px"; + readerAlertElement.style.overflow = "hidden"; + readerAlertElement.style.clip = "rect(1px, 1px, 1px, 1px)"; + this._readerAlertElement = readerAlertElement; + this._inner.appendChild(this._readerAlertElement); + const focusElementContainer = document.createElement("div"); + focusElementContainer.className = "am5-focus-container"; + focusElementContainer.style.position = "absolute"; + focusElementContainer.style.pointerEvents = "none"; + focusElementContainer.style.top = "0px"; + focusElementContainer.style.left = "0px"; + focusElementContainer.style.overflow = "hidden"; + focusElementContainer.style.width = width + "px"; + focusElementContainer.style.height = height + "px"; + focusElementContainer.setAttribute("role", "graphics-document"); + setInteractive(focusElementContainer, false); + this._focusElementContainer = focusElementContainer; + this._inner.appendChild(this._focusElementContainer); + const tooltipElementContainer = document.createElement("div"); + this._tooltipElementContainer = tooltipElementContainer; + tooltipElementContainer.className = "am5-tooltip-container"; + this._inner.appendChild(tooltipElementContainer); + if (supports("keyboardevents")) { + this._disposers.push(addEventListener(window, "keydown", (ev) => { + const eventKey = getEventKey(ev); + if (eventKey == "Shift") { + this._isShift = true; + } else if (eventKey == "Tab") { + this._isShift = ev.shiftKey; + } + })); + this._disposers.push(addEventListener(window, "keyup", (ev) => { + const eventKey = getEventKey(ev); + if (eventKey == "Shift") { + this._isShift = false; + } + })); + this._disposers.push(addEventListener(focusElementContainer, "click", () => { + const focusedSprite = this._focusedSprite; + if (focusedSprite) { + const announceText = focusedSprite.get("clickAnnounceText", ""); + if (announceText !== "") { + this.readerAlert(announceText); + } + const downEvent = renderer.getEvent(new MouseEvent("click")); + focusedSprite.events.dispatch("click", { + type: "click", + originalEvent: downEvent.event, + point: downEvent.point, + simulated: true, + target: focusedSprite + }); + } + })); + this._disposers.push(addEventListener(focusElementContainer, "keydown", (ev) => { + const focusedSprite = this._focusedSprite; + if (focusedSprite) { + if (ev.key == "Escape") { + blur(); + this._focusedSprite = void 0; + } + let dragOffsetX = 0; + let dragOffsetY = 0; + const eventKey = getEventKey(ev); + switch (eventKey) { + case "Enter": + case " ": + const announceText = focusedSprite.get("clickAnnounceText", ""); + if (announceText !== "") { + this.readerAlert(announceText); + } + if (eventKey == " " && focusedSprite.get("role") != "checkbox") { + return; + } + ev.preventDefault(); + const downEvent = renderer.getEvent(new MouseEvent("mouse")); + focusedSprite.events.dispatch("click", { + type: "click", + originalEvent: downEvent.event, + point: downEvent.point, + simulated: true, + target: focusedSprite + }); + return; + case "ArrowLeft": + dragOffsetX = -6; + break; + case "ArrowRight": + dragOffsetX = 6; + break; + case "ArrowUp": + dragOffsetY = -6; + break; + case "ArrowDown": + dragOffsetY = 6; + break; + default: + return; + } + if (dragOffsetX != 0 || dragOffsetY != 0) { + ev.preventDefault(); + if (!focusedSprite.isDragging()) { + this._keyboardDragPoint = { + x: 0, + y: 0 + }; + const downEvent = renderer.getEvent(new MouseEvent("mousedown", { + clientX: 0, + clientY: 0 + })); + downEvent.point = { + x: 0, + y: 0 + }; + if (focusedSprite.events.isEnabled("pointerdown")) { + focusedSprite.events.dispatch("pointerdown", { + type: "pointerdown", + originalEvent: downEvent.event, + point: downEvent.point, + simulated: true, + target: focusedSprite + }); + } + } else { + } + const dragPoint = this._keyboardDragPoint; + dragPoint.x += dragOffsetX; + dragPoint.y += dragOffsetY; + const moveEvent = renderer.getEvent(new MouseEvent("mousemove", { + clientX: dragPoint.x, + clientY: dragPoint.y + }), false); + if (focusedSprite.events.isEnabled("globalpointermove")) { + focusedSprite.events.dispatch("globalpointermove", { + type: "globalpointermove", + originalEvent: moveEvent.event, + point: moveEvent.point, + simulated: true, + target: focusedSprite + }); + } + } + } + })); + this._disposers.push(addEventListener(focusElementContainer, "keyup", (ev) => { + if (this._focusedSprite) { + const focusedSprite = this._focusedSprite; + const eventKey = getEventKey(ev); + switch (eventKey) { + case "ArrowLeft": + case "ArrowRight": + case "ArrowUp": + case "ArrowDown": + if (focusedSprite.isDragging()) { + const dragPoint = this._keyboardDragPoint; + const upEvent = renderer.getEvent(new MouseEvent("mouseup", { + clientX: dragPoint.x, + clientY: dragPoint.y + })); + if (focusedSprite.events.isEnabled("globalpointerup")) { + focusedSprite.events.dispatch("globalpointerup", { + type: "globalpointerup", + originalEvent: upEvent.event, + point: upEvent.point, + simulated: true, + target: focusedSprite + }); + } + this._keyboardDragPoint = void 0; + return; + } else if (focusedSprite.get("focusableGroup")) { + const group2 = focusedSprite.get("focusableGroup"); + const items = this._tabindexes.filter((item) => { + return item.get("focusableGroup") == group2 && item.getPrivate("focusable") !== false && item.isVisibleDeep() ? true : false; + }); + let index = items.indexOf(focusedSprite); + const lastIndex = items.length - 1; + index += eventKey == "ArrowRight" || eventKey == "ArrowDown" ? 1 : -1; + if (index < 0) { + index = lastIndex; + } else if (index > lastIndex) { + index = 0; + } + focus(items[index].getPrivate("focusElement").dom); + } + break; + case "Tab": + const group = focusedSprite.get("focusableGroup"); + if (group && this._isShift) { + if (!this._skipNextGroupJump) { + this._focusNext(focusedSprite.getPrivate("focusElement").dom, -1, group); + this._skipNextGroupJump = true; + } + return; + } + break; + } + } + })); + } + } + this._startTicker(); + this.setThemes([]); + this._addTooltip(); + if (!this._hasLicense()) { + this._showBranding(); + } + } + /** + * Returns an instance of a universal [[Tooltip]] instance. + * @since 5.14.0 + */ + get systemTooltip() { + if (!this._systemTooltip) { + const tooltip = Tooltip.new(this, { + themeTags: ["system"] + }); + this._systemTooltip = tooltip; + } + return this._systemTooltip; + } + _initResizeSensor() { + if (this._resizeSensorDisposer) { + this._resizeSensorDisposer.dispose(); + } + this._resizeSensorDisposer = new ResizeSensor(this.dom, () => { + if (this.autoResize) { + this.resize(); + } + }); + this._disposers.push(this._resizeSensorDisposer); + } + /** + * If automatic resizing of char is disabled (`root.autoResize = false`), it + * can be resized manually by calling this method. + */ + resize() { + const rect = this._getRealSize(); + const size = this._getCalculatedSize(rect); + const w = Math.floor(size.width); + const h = Math.floor(size.height); + if (w > 0 && h > 0) { + const realWidth = Math.floor(rect.width); + const realHeight = Math.floor(rect.height); + const htmlElementContainer = this._htmlElementContainer; + htmlElementContainer.style.width = w + "px"; + htmlElementContainer.style.height = h + "px"; + if (this._a11yD !== true) { + const focusElementContainer = this._focusElementContainer; + focusElementContainer.style.width = w + "px"; + focusElementContainer.style.height = h + "px"; + } + this._renderer.resize(realWidth, realHeight, w, h); + const rootContainer = this._rootContainer; + rootContainer.setPrivate("width", w); + rootContainer.setPrivate("height", h); + this._render(); + this._handleLogo(); + } + } + _render() { + if (this.skipRenderFrame) { + this.skipRenderFrame = false; + return; + } + this._renderer.render(this._rootContainer._display); + if (this._focusElementDirty) { + this._updateCurrentFocus(); + this._focusElementDirty = false; + } + } + _runTickers(currentTime) { + each(this._tickers, (f) => { + f(currentTime); + }); + } + _runAnimations(currentTime) { + let running = 0; + keepIf(this._animations, (animation) => { + const state = animation._runAnimation(currentTime); + if (state === AnimationState.Stopped) { + return false; + } else if (state === AnimationState.Playing) { + ++running; + return true; + } else { + return true; + } + }); + this._isDirtyAnimation = false; + return running === 0; + } + _runDirties() { + let allParents = {}; + while (this._isDirtyParents) { + this._isDirtyParents = false; + entries(this._dirtyParents).forEach(([key, parent]) => { + delete this._dirtyParents[key]; + if (!parent.isDisposed()) { + allParents[parent.uid] = parent; + parent._prepareChildren(); + } + }); + } + entries(allParents).forEach(([_key, parent]) => { + parent._updateChildren(); + }); + const objects = []; + entries(this._dirty).forEach(([key, entity]) => { + if (entity.isDisposed()) { + delete this._dirty[key]; + } else { + objects.push(entity); + entity._beforeChanged(); + } + }); + objects.forEach((entity) => { + entity._changed(); + delete this._dirty[entity.uid]; + entity._clearDirty(); + }); + this._isDirty = false; + const depths = {}; + const bounds = []; + entries(this._dirtyBounds).forEach(([key, entity]) => { + delete this._dirtyBounds[key]; + if (!entity.isDisposed()) { + depths[entity.uid] = entity.depth(); + bounds.push(entity); + } + }); + this._positionHTMLElements(); + bounds.sort((x, y) => { + return compare(depths[y.uid], depths[x.uid]); + }); + bounds.forEach((entity) => { + entity._updateBounds(); + }); + const dirtyPositions = this._dirtyPositions; + entries(dirtyPositions).forEach(([key, sprite]) => { + delete dirtyPositions[key]; + if (!sprite.isDisposed()) { + sprite._updatePosition(); + } + }); + objects.forEach((entity) => { + entity._afterChanged(); + }); + entries(allParents).forEach(([_key, parent]) => { + parent._childrenPrep = false; + parent._childrenUpdt = false; + }); + } + _renderFrame(currentTime) { + if (this._updateTick) { + if (this.events.isEnabled("framestarted")) { + this.events.dispatch("framestarted", { + type: "framestarted", + target: this, + timestamp: currentTime + }); + } + this._checkComputedStyles(); + this._runTickers(currentTime); + const animationDone = this._runAnimations(currentTime); + this._runDirties(); + this._render(); + this._renderer.resetImageArray(); + this._positionHTMLElements(); + if (this.events.isEnabled("frameended")) { + this.events.dispatch("frameended", { + type: "frameended", + target: this, + timestamp: currentTime + }); + } + return this._tickers.length === 0 && animationDone && !this._isDirtyAnimation && !this._isDirty; + } else { + return true; + } + } + _runTicker(currentTime, now) { + if (!this.isDisposed()) { + this.animationTime = currentTime; + const done = this._renderFrame(currentTime); + if (done) { + this._ticker = null; + this.animationTime = null; + } else { + if (!this._paused) { + if (now) { + this._ticker; + } else { + rAF(this.fps, this._ticker); + } + } + } + } + } + _runTickerNow(timeout = 1e4) { + if (!this.isDisposed()) { + const endTime = performance.now() + timeout; + for (; ; ) { + const currentTime = performance.now(); + if (currentTime >= endTime) { + this.animationTime = null; + break; + } + this.animationTime = currentTime; + const done = this._renderFrame(currentTime); + if (done) { + this.animationTime = null; + break; + } + } + } + } + _startTicker() { + if (this._ticker === null) { + this.animationTime = null; + this._ticker = (currentTime) => { + this._runTicker(currentTime); + }; + rAF(this.fps, this._ticker); + } + } + /** + * Returns whether the root is updating or not. + */ + get updateTick() { + return this._updateTick; + } + /** + * Enables or disables the root updating. + */ + set updateTick(value) { + this._updateTick = value; + if (value) { + this._startTicker(); + } + } + _addDirtyEntity(entity) { + this._isDirty = true; + if (this._dirty[entity.uid] === void 0) { + this._dirty[entity.uid] = entity; + } + this._startTicker(); + } + _addDirtyParent(parent) { + this._isDirty = true; + this._isDirtyParents = true; + if (this._dirtyParents[parent.uid] === void 0) { + this._dirtyParents[parent.uid] = parent; + } + this._startTicker(); + } + _addDirtyBounds(entity) { + this._isDirty = true; + if (this._dirtyBounds[entity.uid] === void 0) { + this._dirtyBounds[entity.uid] = entity; + } + this._startTicker(); + } + _addDirtyPosition(sprite) { + this._isDirty = true; + if (this._dirtyPositions[sprite.uid] === void 0) { + this._dirtyPositions[sprite.uid] = sprite; + } + this._startTicker(); + } + _addAnimation(animation) { + this._isDirtyAnimation = true; + if (this._animations.indexOf(animation) === -1) { + this._animations.push(animation); + } + this._startTicker(); + } + _markDirty() { + this._isDirty = true; + } + _markDirtyRedraw() { + this.events.once("frameended", () => { + this._isDirty = true; + this._startTicker(); + }); + } + eachFrame(f) { + this._tickers.push(f); + this._startTicker(); + return new Disposer(() => { + removeFirst(this._tickers, f); + }); + } + markDirtyGlobal(container) { + if (!container) { + container = this.container; + } + container.walkChildren((child) => { + if (child instanceof Container) { + this.markDirtyGlobal(child); + } + child.markDirty(); + child.markDirtyBounds(); + }); + } + /** + * Returns width of the target container, in pixels. + * + * @return Width + */ + width() { + return Math.floor(this._getCalculatedSize(this._getRealSize()).width); + } + /** + * Returns height of the target container, in pixels. + * + * @return Height + */ + height() { + return Math.floor(this._getCalculatedSize(this._getRealSize()).height); + } + /** + * Disposes root and all the content in it. + */ + dispose() { + if (!this._isDisposed) { + this._isDisposed = true; + this._rootContainer.dispose(); + this._renderer.dispose(); + this.horizontalLayout.dispose(); + this.verticalLayout.dispose(); + this.interfaceColors.dispose(); + each(this._disposers, (x) => { + x.dispose(); + }); + if (this._inner) { + removeElement(this._inner); + } + remove(registry.rootElements, this); + } + } + /** + * Returns `true` if root element is disposed. + * + * @return Disposed? + */ + isDisposed() { + return this._isDisposed; + } + /** + * Triggers screen reader read out a message. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/accessibility/} for more info + * @param text Alert text + */ + readerAlert(text) { + if (this._a11yD !== true) { + const element = this._readerAlertElement; + text = stripTags(text); + if (element.innerHTML == text) { + element.innerHTML = ""; + } + element.innerHTML = text; + } + } + /** + * Sets themes to be used for the chart. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/themes/} for more info + * @param themes A list of themes + */ + setThemes(themes) { + this._rootContainer.set("themes", themes); + const tooltipContainer = this.tooltipContainer; + if (tooltipContainer) { + tooltipContainer._applyThemes(); + } + const interfaceColors = this.interfaceColors; + if (interfaceColors) { + interfaceColors._applyThemes(); + } + } + _addTooltip() { + if (!this.tooltipContainer) { + const tooltipContainerSettings = this._tooltipContainerSettings; + const tooltipContainer = this._rootContainer.children.push(Container.new(this, { + position: "absolute", + isMeasured: false, + width: p100, + height: p100, + layer: tooltipContainerSettings ? 35 : 30, + layerMargin: tooltipContainerSettings ? tooltipContainerSettings : void 0 + })); + this.tooltipContainer = tooltipContainer; + const tooltip = Tooltip.new(this, {}); + this.container.set("tooltip", tooltip); + tooltip.hide(0); + this._tooltip = tooltip; + } + } + /** + * Accesibility + */ + _registerTabindexOrder(target) { + if (this._a11yD == true) { + return; + } + if (target.get("focusable")) { + pushOne(this._tabindexes, target); + } else { + remove(this._tabindexes, target); + } + this._invalidateTabindexes(); + } + _unregisterTabindexOrder(target) { + if (this._a11yD == true) { + return; + } + remove(this._tabindexes, target); + this._invalidateTabindexes(); + } + _invalidateTabindexes() { + if (this._a11yD == true) { + return; + } + this._tabindexes.sort((a, b) => { + const aindex = a.get("tabindexOrder", 0); + const bindex = b.get("tabindexOrder", 0); + if (aindex == bindex) { + return 0; + } else if (aindex > bindex) { + return 1; + } else { + return -1; + } + }); + const groups = []; + each(this._tabindexes, (item, index) => { + if (!item.getPrivate("focusElement")) { + this._makeFocusElement(index, item); + } else { + this._moveFocusElement(index, item); + } + const group = item.get("focusableGroup"); + if (group && item.getPrivate("focusable") !== false) { + if (groups.indexOf(group) !== -1) { + item.getPrivate("focusElement").dom.setAttribute("tabindex", "-1"); + } else { + groups.push(group); + } + } + }); + } + _updateCurrentFocus() { + if (this._a11yD == true) { + return; + } + if (this._focusedSprite) { + this._decorateFocusElement(this._focusedSprite); + this._positionFocusElement(this._focusedSprite); + } + } + _decorateFocusElement(target, focusElement) { + if (this._a11yD == true) { + return; + } + if (!focusElement) { + focusElement = target.getPrivate("focusElement").dom; + } + if (!focusElement) { + return; + } + const role = target.get("role"); + if (role) { + focusElement.setAttribute("role", role); + } else { + focusElement.removeAttribute("role"); + } + const ariaLabel = target.get("ariaLabel"); + if (ariaLabel) { + const label = populateString(target, ariaLabel); + focusElement.setAttribute("aria-label", label); + } else { + focusElement.removeAttribute("aria-label"); + } + const ariaLive = target.get("ariaLive"); + if (ariaLive) { + focusElement.setAttribute("aria-live", ariaLive); + } else { + focusElement.removeAttribute("aria-live"); + } + const ariaChecked = target.get("ariaChecked"); + if (ariaChecked != null && role && ["checkbox", "option", "radio", "menuitemcheckbox", "menuitemradio", "treeitem"].indexOf(role) !== -1) { + focusElement.setAttribute("aria-checked", ariaChecked ? "true" : "false"); + } else { + focusElement.removeAttribute("aria-checked"); + } + const ariaCurrent = target.get("ariaCurrent"); + if (ariaCurrent != null) { + focusElement.setAttribute("aria-current", ariaCurrent); + } else { + focusElement.removeAttribute("aria-current"); + } + const ariaSelected = target.get("ariaSelected"); + if (ariaSelected != null && role && ["gridcell", "option", "row", "tab", "columnheader", "rowheader", "treeitem"].indexOf(role) !== -1) { + focusElement.setAttribute("aria-selected", ariaSelected ? "true" : "false"); + } else { + focusElement.removeAttribute("aria-selected"); + } + if (target.get("ariaHidden")) { + focusElement.setAttribute("aria-hidden", "true"); + } else { + focusElement.removeAttribute("aria-hidden"); + } + const ariaOrientation = target.get("ariaOrientation"); + if (ariaOrientation) { + focusElement.setAttribute("aria-orientation", ariaOrientation); + } else { + focusElement.removeAttribute("aria-orientation"); + } + const ariaValueNow = target.get("ariaValueNow"); + if (ariaValueNow) { + focusElement.setAttribute("aria-valuenow", ariaValueNow); + } else { + focusElement.removeAttribute("aria-valuenow"); + } + const ariaValueMin = target.get("ariaValueMin"); + if (ariaValueMin) { + focusElement.setAttribute("aria-valuemin", ariaValueMin); + } else { + focusElement.removeAttribute("aria-valuemin"); + } + const ariaValueMax = target.get("ariaValueMax"); + if (ariaValueMax) { + focusElement.setAttribute("aria-valuemax", ariaValueMax); + } else { + focusElement.removeAttribute("aria-valuemax"); + } + const ariaValueText = target.get("ariaValueText"); + if (ariaValueText) { + focusElement.setAttribute("aria-valuetext", ariaValueText); + } else { + focusElement.removeAttribute("aria-valuetext"); + } + const ariaControls = target.get("ariaControls"); + if (ariaControls) { + focusElement.setAttribute("aria-controls", ariaControls); + } else { + focusElement.removeAttribute("aria-controls"); + } + if (target.get("visible") && target.get("opacity") !== 0 && target.get("role") != "tooltip" && !target.isHidden() && target.getPrivate("focusable") !== false && (target.height() || target.width())) { + if (focusElement.getAttribute("tabindex") != "-1") { + focusElement.setAttribute("tabindex", "" + this.tabindex); + } + focusElement.removeAttribute("aria-hidden"); + } else { + focusElement.removeAttribute("tabindex"); + focusElement.setAttribute("aria-hidden", "true"); + } + } + _makeFocusElement(index, target) { + if (target.getPrivate("focusElement") || this._a11yD == true) { + return; + } + const focusElement = document.createElement("div"); + if (target.get("role") != "tooltip") { + focusElement.tabIndex = this.tabindex; + } + focusElement.style.position = "absolute"; + setInteractive(focusElement, false); + const disposers = []; + target.setPrivate("focusElement", { + dom: focusElement, + disposers + }); + this._decorateFocusElement(target); + disposers.push(addEventListener(focusElement, "focus", (ev) => { + this._handleFocus(ev); + })); + disposers.push(addEventListener(focusElement, "blur", (ev) => { + this._handleBlur(ev); + })); + this._moveFocusElement(index, target); + } + _removeFocusElement(target) { + if (this._a11yD == true) { + return; + } + remove(this._tabindexes, target); + const focusElement = target.getPrivate("focusElement"); + if (focusElement) { + const container = this._focusElementContainer; + container.removeChild(focusElement.dom); + each(focusElement.disposers, (x) => { + x.dispose(); + }); + } + } + _hideFocusElement(target) { + if (this._a11yD == true) { + return; + } + const focusElement = target.getPrivate("focusElement"); + focusElement.dom.style.display = "none"; + } + _moveFocusElement(index, target) { + if (this._a11yD == true) { + return; + } + const container = this._focusElementContainer; + const focusElement = target.getPrivate("focusElement").dom; + if (focusElement === this._focusElementContainer.children[index]) { + return; + } + const next = this._focusElementContainer.children[index + 1]; + if (next) { + container.insertBefore(focusElement, next); + } else { + container.append(focusElement); + } + } + _positionFocusElement(target) { + if (this._a11yD == true || target == void 0) { + return; + } + this._focusElementContainer.scrollTop = 0; + const bounds = target.globalBounds(); + let width = bounds.right == bounds.left ? target.width() : bounds.right - bounds.left; + let height = bounds.top == bounds.bottom ? target.height() : bounds.bottom - bounds.top; + const padding = this._settings.focusPadding !== void 0 ? this._settings.focusPadding : 2; + let x = bounds.left - padding; + let y = bounds.top - padding; + if (width < 0) { + x += width; + width = Math.abs(width); + } + if (height < 0) { + y += height; + height = Math.abs(height); + } + const focusElement = target.getPrivate("focusElement").dom; + focusElement.style.top = y + "px"; + focusElement.style.left = x + "px"; + focusElement.style.width = width + padding * 2 + "px"; + focusElement.style.height = height + padding * 2 + "px"; + } + _getSpriteByFocusElement(target) { + let found; + eachContinue(this._tabindexes, (item, _index) => { + if (item.getPrivate("focusElement").dom === target) { + found = item; + return false; + } + return true; + }); + return found; + } + _handleFocus(ev) { + if (this._a11yD == true) { + return; + } + const focused = this._getSpriteByFocusElement(ev.target); + if (!focused) { + return; + } + if (!focused.isVisibleDeep()) { + this._focusNext(ev.target, this._isShift ? -1 : 1); + return; + } + this._positionFocusElement(focused); + this._focusedSprite = focused; + if (focused.events.isEnabled("focus")) { + focused.events.dispatch("focus", { + type: "focus", + originalEvent: ev, + target: focused + }); + } + if (focused.getPrivate("focusElement").dom.tabIndex == -1) { + this._skipNextGroupJump = false; + } + } + _focusNext(el, direction, group) { + if (this._a11yD == true) { + return; + } + const focusableElements = Array.from(document.querySelectorAll([ + "a[href]", + "area[href]", + "button:not([disabled])", + "details", + "input:not([disabled])", + "iframe:not([disabled])", + "select:not([disabled])", + "textarea:not([disabled])", + '[contentEditable=""]', + '[contentEditable="true"]', + '[contentEditable="TRUE"]', + '[tabindex]:not([tabindex^="-"])' + //':not([disabled])' + ].join(","))); + let index = focusableElements.indexOf(el) + direction; + if (index < 0) { + index = focusableElements.length - 1; + } else if (index >= focusableElements.length) { + index = 0; + } + const targetElement = focusableElements[index]; + if (group && direction == -1) { + const target = this._getSpriteByFocusElement(targetElement); + if (target && target.get("focusableGroup") == group) { + this._focusNext(targetElement, direction); + return; + } + } + targetElement.focus(); + } + _handleBlur(ev) { + if (this._a11yD == true) { + return; + } + const focused = this._focusedSprite; + if (focused && !focused.isDisposed() && focused.events.isEnabled("blur")) { + focused.events.dispatch("blur", { + type: "blur", + originalEvent: ev, + target: focused + }); + } + this._focusedSprite = void 0; + } + /** + * @ignore + */ + updateTooltip(target) { + if (this._a11yD == true) { + return; + } + const text = stripTags(target._getText()); + let tooltipElement = target.getPrivate("tooltipElement"); + if (target.get("role") == "tooltip" && text != "") { + if (!tooltipElement) { + tooltipElement = this._makeTooltipElement(target); + } + if (tooltipElement.innerHTML != text) { + tooltipElement.innerHTML = text; + } + tooltipElement.setAttribute("aria-hidden", target.isVisibleDeep() ? "false" : "true"); + } else if (tooltipElement) { + tooltipElement.remove(); + target.removePrivate("tooltipElement"); + } + } + _makeTooltipElement(target) { + const container = this._tooltipElementContainer; + const tooltipElement = document.createElement("div"); + tooltipElement.style.position = "absolute"; + tooltipElement.style.width = "1px"; + tooltipElement.style.height = "1px"; + tooltipElement.style.overflow = "hidden"; + tooltipElement.style.clip = "rect(1px, 1px, 1px, 1px)"; + setInteractive(tooltipElement, false); + this._decorateFocusElement(target, tooltipElement); + container.append(tooltipElement); + target.setPrivate("tooltipElement", tooltipElement); + return tooltipElement; + } + _removeTooltipElement(target) { + if (this._a11yD == true) { + return; + } + const tooltipElement = target.getPrivate("tooltipElement"); + if (tooltipElement) { + const parent = tooltipElement.parentElement; + if (parent) { + parent.removeChild(tooltipElement); + } + } + } + _invalidateAccessibility(target) { + if (this._a11yD == true) { + return; + } + this._focusElementDirty = true; + const focusElement = target.getPrivate("focusElement"); + if (target.get("focusable")) { + if (focusElement) { + this._decorateFocusElement(target); + this._positionFocusElement(target); + } + } else if (focusElement) { + this._removeFocusElement(target); + } + } + /** + * Returns `true` if `target` is currently focused. + * + * @param target Target + * @return Focused? + */ + focused(target) { + return this._focusedSprite === target; + } + /** + * Converts document coordinates to coordinates withing root element. + * + * @param point Document point + * @return Root point + */ + documentPointToRoot(point) { + const rect = this._getRealSize(); + const size = this._getCalculatedSize(rect); + const scaleWidth = size.width / rect.width; + const scaleHeight = size.height / rect.height; + return { + x: (point.x - rect.left) * scaleWidth, + y: (point.y - rect.top) * scaleHeight + }; + } + /** + * Converts root coordinates to document + * + * @param point Document point + * @return Root point + */ + rootPointToDocument(point) { + const rect = this._getRealSize(); + const size = this._getCalculatedSize(rect); + const scaleWidth = size.width / rect.width; + const scaleHeight = size.height / rect.height; + return { + x: point.x / scaleWidth + rect.left, + y: point.y / scaleHeight + rect.top + }; + } + /** + * @ignore + */ + addDisposer(disposer) { + this._disposers.push(disposer); + return disposer; + } + _updateComputedStyles() { + const styles = window.getComputedStyle(this.dom); + let fontHash = ""; + each2(styles, (key, val) => { + if (isString(key) && key.match(/^font/)) { + fontHash += val; + } + }); + const changed = fontHash != this._fontHash; + if (changed) { + this._fontHash = fontHash; + } + return changed; + } + _checkComputedStyles() { + if (this._updateComputedStyles()) { + this._invalidateLabelBounds(this.container); + } + } + _invalidateLabelBounds(target) { + if (target instanceof Container) { + target.children.each((child) => { + this._invalidateLabelBounds(child); + }); + } else if (target instanceof Text) { + target.markDirtyBounds(); + } + } + /** + * To all the clever heads out there. Yes, we did not make any attempts to + * scramble this. + * + * This is a part of a tool meant for our users to manage their commercial + * licenses for removal of amCharts branding from charts. + * + * The only legit way to do so is to purchase a commercial license for amCharts: + * https://www.amcharts.com/online-store/ + * + * Removing or altering this code, or disabling amCharts branding in any other + * way is against the license and thus illegal. + */ + _hasLicense() { + for (let i = 0; i < registry.licenses.length; i++) { + if (registry.licenses[i].match(/^AM5C.{5,}/i)) { + return true; + } + } + return false; + } + _licenseApplied() { + if (this._logo) { + this._logo.set("forceHidden", true); + } + } + /** + * @ignore + */ + get debugGhostView() { + return this._renderer.debugGhostView; + } + /** + * @ignore + */ + set debugGhostView(value) { + this._renderer.debugGhostView = value; + } + /** + * Set this to `true` if you need chart to require first a tap onto it before + * touch gesture related functionality like zoom/pan is turned on. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/root-element/#Touch_related_options} for more info + * @default false + * @since 5.2.9 + * @param value Needs a tap to activate touch functions + */ + set tapToActivate(value) { + this._renderer.tapToActivate = value; + } + /** + * @return Needs a tap to activate touch functions + */ + get tapToActivate() { + return this._renderer.tapToActivate; + } + /** + * If `tapToActivate` is set to `true`, this setting will determine number + * of milliseconds the chart will stay "active", before releasing the + * controls back to the page. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/root-element/#Touch_related_options} for more info + * @default 3000 + * @since 5.2.9 + * @param value Timeout + */ + set tapToActivateTimeout(value) { + this._renderer.tapToActivateTimeout = value; + } + /** + * @return Timeout + */ + get tapToActivateTimeout() { + return this._renderer.tapToActivateTimeout; + } + _makeHTMLElement(target) { + const container = this._htmlElementContainer; + const htmlElement = document.createElement("div"); + target.setPrivate("htmlElement", htmlElement); + let needWrapper = false; + let wrapperTarget; + target._walkParents((parent) => { + if (parent.get("verticalScrollbar")) { + needWrapper = true; + wrapperTarget = parent; + return false; + } + }); + let htmlElementWrapper; + if (needWrapper) { + htmlElementWrapper = document.createElement("div"); + target.setPrivate("htmlElementWrapper", htmlElementWrapper); + target.setPrivate("wrapperContainer", wrapperTarget); + htmlElementWrapper.style.position = "absolute"; + htmlElementWrapper.style.overflow = "hidden"; + htmlElementWrapper.style.boxSizing = "border-box"; + htmlElementWrapper.style.top = "0px"; + htmlElementWrapper.style.left = "0px"; + htmlElementWrapper.style.width = "100%"; + htmlElementWrapper.style.height = "100%"; + wrapperTarget.events.on("boundschanged", () => { + this._positionHTMLElement(target); + }); + } + htmlElement.style.position = "absolute"; + htmlElement.style.overflow = "auto"; + htmlElement.style.boxSizing = "border-box"; + setInteractive(htmlElement, target.get("interactive", false)); + if (target.events.isEnabled("click")) { + setInteractive(htmlElement, true); + this._disposers.push(addEventListener(htmlElement, "click", (ev) => { + const downEvent = this._renderer.getEvent(ev); + target.events.dispatch("click", { + type: "click", + originalEvent: downEvent.event, + point: downEvent.point, + simulated: false, + target + }); + })); + } + this._positionHTMLElement(target); + if (needWrapper) { + htmlElementWrapper.append(htmlElement); + container.append(htmlElementWrapper); + } else { + container.append(htmlElement); + } + pushOne(this._htmlEnabledContainers, target); + return htmlElement; + } + _positionHTMLElements() { + each(this._htmlEnabledContainers, (target) => { + this._positionHTMLElement(target); + }); + } + _positionHTMLElement(target) { + const htmlElementWrapper = target.getPrivate("htmlElementWrapper"); + if (htmlElementWrapper) { + const wrapperTarget = target.getPrivate("wrapperContainer"); + if (wrapperTarget) { + const bounds = wrapperTarget.globalBounds(); + htmlElementWrapper.style.clipPath = "rect(" + bounds.top + "px " + bounds.right + "px " + bounds.bottom + "px " + bounds.left + "px)"; + } + } + const htmlElement = target.getPrivate("htmlElement"); + if (htmlElement) { + const visualSettings2 = [ + "paddingTop", + "paddingRight", + "paddingBottom", + "paddingLeft", + "minWidth", + "minHeight", + "maxWidth", + "maxHeight" + ]; + each(visualSettings2, (setting) => { + const value = target.get(setting); + if (value) { + htmlElement.style[setting] = value + "px"; + } else { + htmlElement.style[setting] = ""; + } + }); + const strtingSettings = [ + "fontFamily", + "fontSize", + "fontStyle", + "fontWeight", + "fontStyle", + "fontVariant", + "textDecoration" + ]; + each(strtingSettings, (setting) => { + const value = target.get(setting); + if (value) { + if (setting == "fontSize" && !isString(value)) { + htmlElement.style[setting] = value + "px"; + } else { + htmlElement.style[setting] = value + ""; + } + } else { + htmlElement.style[setting] = ""; + } + }); + const scale = target.compositeScale() || 1; + const rotation = target.compositeRotation() || 0; + htmlElement.style.transform = ""; + htmlElement.style.transformOrigin = ""; + const opacity = target.compositeOpacity(); + setTimeout(() => { + htmlElement.style.opacity = opacity + ""; + }, 10); + const visible = target.isVisibleDeep(); + if (visible) { + htmlElement.style.display = "block"; + } + let pos = { + x: target.x() + target.get("dx", 0), + y: target.y() + target.get("dy", 0) + }; + if (target.parent) { + pos = target.parent.toGlobal(pos); + } + htmlElement.style.top = pos.y + "px"; + htmlElement.style.left = pos.x + "px"; + const width = target.get("width"); + const height = target.get("height"); + let w = 0; + let h = 0; + if (width) { + w = target.width(); + } + if (height) { + h = target.height(); + } + if (!width || !height) { + htmlElement.style.position = "fixed"; + htmlElement.style.width = ""; + htmlElement.style.height = ""; + const bbox = htmlElement.getBoundingClientRect(); + htmlElement.style.position = "absolute"; + if (!width) + w = bbox.width; + if (!height) + h = bbox.height; + let lw = w / scale; + let lh = h / scale; + let cx = target.get("centerX", 0); + let cy = target.get("centerY", 0); + let ll = 0; + let lr = 0; + let lt = 0; + let lb = 0; + if (cx instanceof Percent) { + ll = -cx.value * lw; + lr = (1 - cx.value) * lw; + } else { + ll = -cx; + lr = lw - cx; + } + if (cy instanceof Percent) { + lt = -cy.value * lh; + lb = (1 - cy.value) * lh; + } else { + lt = -cy; + lb = lh - cy; + } + target._localBounds = { left: ll, right: lr, top: lt, bottom: lb }; + let previousBounds = target._adjustedLocalBounds; + let newBounds = target._display.getAdjustedBounds(target._localBounds); + target._adjustedLocalBounds = newBounds; + if (previousBounds.left !== newBounds.left || previousBounds.right !== newBounds.right || previousBounds.top !== newBounds.top || previousBounds.bottom !== newBounds.bottom) { + target.markDirtyBounds(); + } + } + if (w > 0) { + htmlElement.style.minWidth = w + "px"; + } + if (h > 0) { + htmlElement.style.minHeight = h + "px"; + } + if (!visible || opacity == 0) { + htmlElement.style.display = "none"; + } + const x = target.get("centerX", 0); + const originX = isPercent(x) ? x.percent + "%" : x + "px"; + const y = target.get("centerY", 0); + const originY = isPercent(y) ? y.percent + "%" : y + "px"; + if (x || y) { + htmlElement.style.transform = "translate(-" + originX + ", -" + originY + ")" + htmlElement.style.transform; + } + if (scale != 1) { + htmlElement.style.transform += "scale(" + scale + ")"; + } + if (rotation != 0) { + htmlElement.style.transform += " rotate(" + rotation + "deg)"; + } + if (htmlElement.style.transform != "") { + htmlElement.style.transformOrigin = originX + " " + originY; + } + } + } + _setHTMLContent(target, html) { + let htmlElement = target.getPrivate("htmlElement"); + if (!htmlElement) { + htmlElement = this._makeHTMLElement(target); + if (!this.autoResize) { + this.resize(); + } + } + if (htmlElement.innerHTML != html) { + htmlElement.innerHTML = html; + } + } + _removeHTMLContent(target) { + const htmlElementWrapper = target.getPrivate("htmlElementWrapper"); + const htmlElement = target.getPrivate("htmlElement"); + if (htmlElementWrapper) { + this._htmlElementContainer.removeChild(htmlElementWrapper); + target.removePrivate("htmlElement"); + target.removePrivate("htmlElementWrapper"); + target.removePrivate("wrapperContainer"); + } else if (htmlElement) { + this._htmlElementContainer.removeChild(htmlElement); + target.removePrivate("htmlElement"); + target.removePrivate("wrapperContainer"); + } + remove(this._htmlEnabledContainers, target); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/render/Bullet.js + var Bullet = class extends Entity { + _afterNew() { + super._afterNewApplyThemes(); + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("sprite")) { + const sprite = this.get("sprite"); + if (sprite) { + sprite.setAll({ position: "absolute", role: "figure" }); + this._disposers.push(sprite); + } + } + if (this.isDirty("locationX") || this.isDirty("locationY")) { + if (this.series) { + this.series._positionBullet(this); + } + } + } + }; + Bullet.className = "Bullet"; + Bullet.classNames = Entity.classNames.concat([Bullet.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/RoundedRectangle.js + var RoundedRectangle = class extends Rectangle { + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("cornerRadiusTL") || this.isDirty("cornerRadiusTR") || this.isDirty("cornerRadiusBR") || this.isDirty("cornerRadiusBL")) { + this._clear = true; + } + } + _draw() { + let width = this.width(); + let height = this.height(); + let wSign = width / Math.abs(width); + let hSign = height / Math.abs(height); + let x = 0; + let y = 0; + const strokeWidth = this.get("strokeWidth", 0); + if (this.get("containStroke", false)) { + width -= wSign * strokeWidth; + height -= hSign * strokeWidth; + x += wSign * strokeWidth / 2; + y += hSign * strokeWidth / 2; + } + let w = width; + let h = height; + if (isNumber(w) && isNumber(h)) { + let minSide = Math.min(w, h) / 2; + let crtl = relativeToValue(this.get("cornerRadiusTL", 8), minSide); + let crtr = relativeToValue(this.get("cornerRadiusTR", 8), minSide); + let crbr = relativeToValue(this.get("cornerRadiusBR", 8), minSide); + let crbl = relativeToValue(this.get("cornerRadiusBL", 8), minSide); + let maxcr = Math.min(Math.abs(w / 2), Math.abs(h / 2)); + crtl = fitToRange(crtl, 0, maxcr); + crtr = fitToRange(crtr, 0, maxcr); + crbr = fitToRange(crbr, 0, maxcr); + crbl = fitToRange(crbl, 0, maxcr); + const display = this._display; + display.moveTo(x + crtl * wSign, y); + display.lineTo(x + w - crtr * wSign, y); + if (crtr > 0) { + display.arcTo(x + w, y, x + w, y + crtr * hSign, crtr); + } + display.lineTo(x + w, y + h - crbr * hSign); + if (crbr > 0) { + display.arcTo(x + w, y + h, x + w - crbr * wSign, y + h, crbr); + } + display.lineTo(x + crbl * wSign, y + h); + if (crbl > 0) { + display.arcTo(x, y + h, x, y + h - crbl * hSign, crbl); + } + display.lineTo(x, y + crtl * hSign); + if (crtl > 0) { + display.arcTo(x, y, x + crtl * wSign, y, crtl); + } + display.closePath(); + } + } + }; + RoundedRectangle.className = "RoundedRectangle"; + RoundedRectangle.classNames = Rectangle.classNames.concat([RoundedRectangle.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Button.js + var Button = class extends Container { + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["button"]); + super._afterNew(); + if (!this._settings.background) { + this.set("background", RoundedRectangle.new(this._root, { + themeTags: mergeTags(this._settings.themeTags, ["background"]) + })); + } + this.setPrivate("trustBounds", true); + } + _prepareChildren() { + super._prepareChildren(); + if (this.isDirty("icon")) { + const previous = this._prevSettings.icon; + const icon = this.get("icon"); + if (icon !== previous) { + this._disposeProperty("icon"); + if (previous) { + previous.dispose(); + } + if (icon) { + this.children.push(icon); + } + this._prevSettings.icon = icon; + } + } + if (this.isDirty("label")) { + const previous = this._prevSettings.label; + const label = this.get("label"); + if (label !== previous) { + this._disposeProperty("label"); + if (previous) { + previous.dispose(); + } + if (label) { + this.children.push(label); + } + this._prevSettings.label = label; + } + } + } + }; + Button.className = "Button"; + Button.classNames = Container.classNames.concat([Button.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/Data.js + var ListData = class extends List { + /** + * @ignore + */ + incrementRef() { + } + /** + * @ignore + */ + decrementRef() { + } + _onPush(newValue) { + if (this.processor) { + this.processor.processRow(newValue); + } + super._onPush(newValue); + } + _onInsertIndex(index, newValue) { + if (this.processor) { + this.processor.processRow(newValue); + } + super._onInsertIndex(index, newValue); + } + _onSetIndex(index, oldValue, newValue) { + if (this.processor) { + this.processor.processRow(newValue); + } + super._onSetIndex(index, oldValue, newValue); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/render/Component.js + var DataItem = class extends Settings { + constructor(component, dataContext, settings) { + super(settings); + this.dataContext = dataContext; + this.component = component; + this._settings.visible = true; + this._checkDirty(); + } + /** + * @ignore + */ + markDirty() { + this.component.markDirtyValues(this); + } + _startAnimation() { + this.component._root._addAnimation(this); + } + _animationTime() { + return this.component._root.animationTime; + } + _dispose() { + if (this.component) { + this.component.disposeDataItem(this); + } + super._dispose(); + } + /** + * Shows a data item that's currently hidden. + */ + show(duration) { + this.setRaw("visible", true); + if (this.component) { + this.component.showDataItem(this, duration); + } + } + /** + * Hides a data item that's currently visible. + */ + hide(duration) { + this.setRaw("visible", false); + if (this.component) { + this.component.hideDataItem(this, duration); + } + } + isHidden() { + return !this.get("visible"); + } + }; + var Component = class extends Container { + constructor() { + super(...arguments); + this._data = new ListData(); + this._dataItems = []; + this._mainDataItems = this._dataItems; + this.valueFields = []; + this.fields = ["id"]; + this._valuesDirty = false; + this._dataChanged = false; + this._dataGrouped = false; + this.inited = false; + } + /** + * Component's data. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/data/} for more info + */ + set data(data2) { + data2.incrementRef(); + this._data.decrementRef(); + this._data = data2; + } + /** + * @return Data + */ + get data() { + return this._data; + } + _dispose() { + super._dispose(); + this._data.decrementRef(); + } + _onDataClear() { + } + _afterNew() { + super._afterNew(); + this._data.incrementRef(); + this._updateFields(); + this._disposers.push(this.data.events.onAll((change) => { + const dataItems = this._mainDataItems; + this.markDirtyValues(); + this._markDirtyGroup(); + this._dataChanged = true; + if (change.type === "clear") { + each(dataItems, (dataItem) => { + dataItem.dispose(); + }); + dataItems.length = 0; + this._onDataClear(); + } else if (change.type === "push") { + const dataItem = new DataItem(this, change.newValue, this._makeDataItem(change.newValue)); + dataItems.push(dataItem); + this.processDataItem(dataItem); + } else if (change.type === "setIndex") { + const dataItem = dataItems[change.index]; + const properties = this._makeDataItem(change.newValue); + if (dataItem.bullets && dataItem.bullets.length == 0) { + dataItem.bullets = void 0; + } + entries(properties).forEach(([key, value]) => { + if (dataItem.get(key) == value) { + return; + } + dataItem.animate({ + key, + to: value, + duration: this.get("interpolationDuration", 0), + easing: this.get("interpolationEasing") + }); + }); + dataItem.dataContext = change.newValue; + } else if (change.type === "insertIndex") { + const dataItem = new DataItem(this, change.newValue, this._makeDataItem(change.newValue)); + dataItems.splice(change.index, 0, dataItem); + this.processDataItem(dataItem); + } else if (change.type === "removeIndex") { + const dataItem = dataItems[change.index]; + dataItem.dispose(); + dataItems.splice(change.index, 1); + } else if (change.type === "moveIndex") { + const dataItem = dataItems[change.oldIndex]; + dataItems.splice(change.oldIndex, 1); + dataItems.splice(change.newIndex, 0, dataItem); + } else { + throw new Error("Unknown IStreamEvent type"); + } + this._afterDataChange(); + })); + } + _postUpdateData() { + } + /** + * Updates existing data in the component without disposing old data items. If there are more data items than before, new ones will be created. If there are less, old ones will be removed. + * @param data + */ + updateData(data2) { + let ii = 0; + each(data2, (dataObject, index) => { + const dataItem = this.dataItems[index]; + if (!dataItem) { + this.data.push(dataObject); + } else { + const dataContext = dataItem.dataContext; + if (dataContext) { + entries(dataObject).forEach(([key, value]) => { + dataContext[key] = value; + }); + } + const properties = this._makeDataItem(dataContext); + entries(properties).forEach(([key, value]) => { + var _a; + if (dataItem.get(key) != value) { + dataItem.set(key, value); + const workingKey = (_a = this._valueFieldsF[key]) === null || _a === void 0 ? void 0 : _a.workingKey; + if (workingKey) { + dataItem.set(workingKey, value); + } + } + }); + } + ii = index; + }); + for (let i = this.dataItems.length - 1; i > ii; i--) { + const dataItem = this.dataItems[i]; + remove(this.dataItems, dataItem); + dataItem.dispose(); + } + this._postUpdateData(); + } + _updateFields() { + if (this.valueFields) { + this._valueFields = []; + this._valueFieldsF = {}; + each(this.valueFields, (key) => { + const field = this.get(key + "Field"); + if (field) { + this._valueFields.push(key); + this._valueFieldsF[key] = { fieldKey: key + "Field", workingKey: key + "Working" }; + } + }); + } + if (this.fields) { + this._fields = []; + this._fieldsF = {}; + each(this.fields, (key) => { + const field = this.get(key + "Field"); + if (field) { + this._fields.push(key); + this._fieldsF[key] = key + "Field"; + } + }); + } + } + /** + * A list of component's data items. + * + * @return Data items + */ + get dataItems() { + return this._dataItems; + } + processDataItem(_dataItem) { + } + _makeDataItem(data2) { + const output = {}; + if (this._valueFields) { + each(this._valueFields, (key) => { + const field = this.get(this._valueFieldsF[key].fieldKey); + output[key] = data2[field]; + output[this._valueFieldsF[key].workingKey] = output[key]; + }); + } + if (this._fields) { + each(this._fields, (key) => { + const field = this.get(this._fieldsF[key]); + output[key] = data2[field]; + }); + } + return output; + } + /** + * Creates a new data item and processes it. + * + * @param data Data item settings + * @param dataContext Data context + * @return New data item + */ + makeDataItem(data2, dataContext) { + let dataItem = new DataItem(this, dataContext, data2); + this.processDataItem(dataItem); + return dataItem; + } + /** + * Adds new explicit data item to series. + * + * @param data Data item settings + * @param dataContext Data context + * @return New data item + */ + pushDataItem(data2, dataContext) { + const dataItem = this.makeDataItem(data2, dataContext); + this._mainDataItems.push(dataItem); + return dataItem; + } + /** + * @ignore + */ + disposeDataItem(_dataItem) { + } + /** + * Shows component's data item. + * + * @param dataItem Data item + * @param _duration Animation duration in milliseconds + * @return Promise + */ + showDataItem(dataItem, _duration) { + return __awaiter(this, void 0, void 0, function* () { + dataItem.set("visible", true); + }); + } + /** + * Hides component's data item. + * + * @param dataItem Data item + * @param _duration Animation duration in milliseconds + * @return Promise + */ + hideDataItem(dataItem, _duration) { + return __awaiter(this, void 0, void 0, function* () { + dataItem.set("visible", false); + }); + } + _clearDirty() { + super._clearDirty(); + this._valuesDirty = false; + } + _afterDataChange() { + } + _afterChanged() { + super._afterChanged(); + if (this._dataChanged) { + const type = "datavalidated"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this }); + } + this._dataChanged = false; + } + if (this._valuesDirty) { + const type = "valueschanged"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this }); + } + } + this.inited = true; + } + /** + * Forces a repaint of the element which relies on data. + * + * @since 5.0.21 + */ + markDirtyValues(_dataItem) { + this.markDirty(); + this._valuesDirty = true; + } + _markDirtyGroup() { + this._dataGrouped = false; + } + /** + * @ignore + */ + markDirtySize() { + this._sizeDirty = true; + this.markDirty(); + } + /** + * Looks up and returns a data item by its ID. + * + * @param id ID + * @return Data item + */ + getDataItemById(id) { + return find(this.dataItems, (dataItem) => { + return dataItem.get("id") == id; + }); + } + }; + Component.className = "Component"; + Component.classNames = Container.classNames.concat([Component.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/Time.js + function sleep(ms) { + return new Promise((resolve, _reject) => { + setTimeout(resolve, ms); + }); + } + var timeUnitDurations = { + millisecond: 1, + second: 1e3, + minute: 6e4, + hour: 36e5, + day: 864e5, + week: 6048e5, + month: 365.242 / 12 * 864e5, + year: 31536e6 + }; + function getDuration(unit, count) { + if (count == null) { + count = 1; + } + return timeUnitDurations[unit] * count; + } + function round2(date, unit, count, firstDateOfWeek, utc, firstDate, timezone) { + if (!timezone || utc) { + let timeZoneOffset = 0; + if (!utc && unit != "millisecond") { + timeZoneOffset = date.getTimezoneOffset(); + date.setUTCMinutes(date.getUTCMinutes() - timeZoneOffset); + } + switch (unit) { + case "day": + let day = date.getUTCDate(); + if (count > 1) { + if (firstDate) { + firstDate = round2(firstDate, "day", 1); + let difference = date.getTime() - firstDate.getTime(); + let unitCount = Math.floor(difference / getDuration("day") / count); + let duration = getDuration("day", unitCount * count); + date.setTime(firstDate.getTime() + duration - timeZoneOffset * getDuration("minute")); + } + } else { + date.setUTCDate(day); + } + date.setUTCHours(0, 0, 0, 0); + break; + case "second": + let seconds = date.getUTCSeconds(); + if (count > 1) { + seconds = Math.floor(seconds / count) * count; + } + date.setUTCSeconds(seconds, 0); + break; + case "millisecond": + if (count == 1) { + return date; + } + let milliseconds = date.getUTCMilliseconds(); + milliseconds = Math.floor(milliseconds / count) * count; + date.setUTCMilliseconds(milliseconds); + break; + case "hour": + let hours = date.getUTCHours(); + if (count > 1) { + hours = Math.floor(hours / count) * count; + } + date.setUTCHours(hours, 0, 0, 0); + break; + case "minute": + let minutes = date.getUTCMinutes(); + if (count > 1) { + minutes = Math.floor(minutes / count) * count; + } + date.setUTCMinutes(minutes, 0, 0); + break; + case "month": + let month = date.getUTCMonth(); + if (count > 1) { + if (count == 2 || count == 3 || count == 4 || count == 6) { + month = Math.floor(month / count) * count; + } + } + date.setUTCMonth(month, 1); + date.setUTCHours(0, 0, 0, 0); + break; + case "year": + let year = date.getUTCFullYear(); + if (count > 1) { + year = Math.floor(year / count) * count; + } + date.setUTCFullYear(year, 0, 1); + date.setUTCHours(0, 0, 0, 0); + break; + case "week": + if (count > 1) { + if (firstDate) { + firstDate = round2(firstDate, "week", 1); + let difference = date.getTime() - firstDate.getTime(); + let unitCount = Math.floor(difference / getDuration("week") / count); + let duration = getDuration("week", unitCount * count); + date.setTime(firstDate.getTime() + duration - timeZoneOffset * getDuration("minute")); + } + } + let wday = date.getUTCDate(); + let weekDay = date.getUTCDay(); + if (!isNumber(firstDateOfWeek)) { + firstDateOfWeek = 1; + } + if (weekDay >= firstDateOfWeek) { + wday = wday - weekDay + firstDateOfWeek; + } else { + wday = wday - (7 + weekDay) + firstDateOfWeek; + } + date.setUTCDate(wday); + date.setUTCHours(0, 0, 0, 0); + break; + } + if (!utc && unit != "millisecond") { + date.setUTCMinutes(date.getUTCMinutes() + timeZoneOffset); + if (unit == "day" || unit == "week" || unit == "month" || unit == "year") { + let newTimeZoneOffset = date.getTimezoneOffset(); + if (newTimeZoneOffset != timeZoneOffset) { + let diff = newTimeZoneOffset - timeZoneOffset; + date.setUTCMinutes(date.getUTCMinutes() + diff); + } + } + } + return date; + } else { + if (isNaN(date.getTime())) { + return date; + } + let initialTime = date.getTime(); + let tzoffset = timezone.offsetUTC(date); + let timeZoneOffset = date.getTimezoneOffset(); + let parsedDate = timezone.parseDate(date); + let year = parsedDate.year; + let month = parsedDate.month; + let day = parsedDate.day; + let hour = parsedDate.hour; + let minute = parsedDate.minute; + let second = parsedDate.second; + let millisecond = parsedDate.millisecond; + let weekday = parsedDate.weekday; + let offsetDif = tzoffset - timeZoneOffset; + switch (unit) { + case "day": + if (count > 1 && firstDate) { + firstDate = round2(firstDate, "day", 1, firstDateOfWeek, utc, void 0, timezone); + let difference = date.getTime() - firstDate.getTime(); + let unitCount = Math.floor(difference / getDuration("day") / count); + let duration = getDuration("day", unitCount * count); + date.setTime(firstDate.getTime() + duration); + parsedDate = timezone.parseDate(date); + year = parsedDate.year; + month = parsedDate.month; + day = parsedDate.day; + } + hour = 0; + minute = offsetDif; + second = 0; + millisecond = 0; + break; + case "second": + minute += offsetDif; + if (count > 1) { + second = Math.floor(second / count) * count; + } + millisecond = 0; + break; + case "millisecond": + minute += offsetDif; + if (count > 1) { + millisecond = Math.floor(millisecond / count) * count; + } + break; + case "hour": + if (count > 1) { + hour = Math.floor(hour / count) * count; + } + minute = offsetDif; + second = 0; + millisecond = 0; + break; + case "minute": + if (count > 1) { + minute = Math.floor(minute / count) * count; + } + minute += offsetDif; + second = 0; + millisecond = 0; + break; + case "month": + if (count > 1) { + month = Math.floor(month / count) * count; + } + day = 1; + hour = 0; + minute = offsetDif; + second = 0; + millisecond = 0; + break; + case "year": + if (count > 1) { + year = Math.floor(year / count) * count; + } + month = 0; + day = 1; + hour = 0; + minute = offsetDif; + second = 0; + millisecond = 0; + break; + case "week": + if (!isNumber(firstDateOfWeek)) { + firstDateOfWeek = 1; + } + if (weekday >= firstDateOfWeek) { + day = day - weekday + firstDateOfWeek; + } else { + day = day - (7 + weekday) + firstDateOfWeek; + } + hour = 0; + minute = offsetDif; + second = 0; + millisecond = 0; + break; + } + date = new Date(year, month, day, hour, minute, second, millisecond); + const newTime = date.getTime(); + let hDuration = 36e5; + if (unit == "hour") { + hDuration = 36e5 * count; + } + if (newTime + hDuration <= initialTime) { + if (unit == "hour" || unit == "minute" || unit == "second" || unit == "millisecond") { + date = new Date(newTime + hDuration); + } + } + let newTimeZoneOffset = date.getTimezoneOffset(); + let newTzoffset = timezone.offsetUTC(date); + let newDiff = newTzoffset - newTimeZoneOffset; + if (newDiff != offsetDif) { + date.setTime(date.getTime() + (newDiff - offsetDif) * 6e4); + } + return date; + } + } + + // node_modules/@amcharts/amcharts5/.internal/core/render/Series.js + var Series = class extends Component { + constructor() { + super(...arguments); + this._aggregatesCalculated = false; + this._selectionAggregatesCalculated = false; + this._dataProcessed = false; + this._baseSeriesDirty = false; + this.bullets = new List(); + this.bulletsContainer = Container.new(this._root, { width: p100, height: p100, position: "absolute" }); + } + _afterNew() { + this.valueFields.push("value", "customValue"); + super._afterNew(); + this.setPrivate("customData", {}); + this._disposers.push(this.bullets.events.onAll(() => { + this._handleBullets(this.dataItems); + })); + } + _dispose() { + this.bulletsContainer.dispose(); + super._dispose(); + } + startIndex() { + let len = this.dataItems.length; + return Math.min(this.getPrivate("startIndex", 0), len); + } + endIndex() { + let len = this.dataItems.length; + return Math.max(0, Math.min(this.getPrivate("endIndex", len), len)); + } + _handleBullets(dataItems) { + each(dataItems, (dataItem) => { + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + bullet.dispose(); + }); + dataItem.bullets = void 0; + } + }); + this.markDirtyValues(); + } + _makeBullets(dataItem) { + if (this._shouldMakeBullet(dataItem)) { + dataItem.bullets = []; + this.bullets.each((bulletFunction) => { + this._makeBullet(dataItem, bulletFunction); + }); + } + } + _shouldMakeBullet(_dataItem) { + return true; + } + _makeBullet(dataItem, bulletFunction, index) { + const bullet = bulletFunction(this._root, this, dataItem); + if (bullet) { + bullet._index = index; + this._makeBulletReal(dataItem, bullet); + } + return bullet; + } + _makeBulletReal(dataItem, bullet) { + let sprite = bullet.get("sprite"); + if (sprite) { + sprite._setDataItem(dataItem); + sprite.setRaw("position", "absolute"); + this.bulletsContainer.children.push(sprite); + } + bullet.series = this; + dataItem.bullets.push(bullet); + } + /** + * Adds bullet directly to a data item. + * + * Please note: method accepts [[Bullet]] instance as a paramter, not a + * reference to a function. + * + * You should add Bullet instance, not a method like you do it on series. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/common-elements/bullets/#Adding_directly_to_data_item} for more info + * @since 5.6.0 + * + * @param dataItem Target data item + * @param bullet Bullet instance + */ + addBullet(dataItem, bullet) { + if (!dataItem.bullets) { + dataItem.bullets = []; + } + if (bullet) { + this._makeBulletReal(dataItem, bullet); + } + } + _clearDirty() { + super._clearDirty(); + this._aggregatesCalculated = false; + this._baseSeriesDirty = false; + this._selectionAggregatesCalculated = false; + } + _prepareChildren() { + super._prepareChildren(); + const dataItems = this.dataItems; + const count = dataItems.length; + let startIndex = this.startIndex(); + let endIndex = this.endIndex(); + if (this.isDirty("name")) { + this.updateLegendValue(); + } + if (this.isDirty("heatRules")) { + this._valuesDirty = true; + } + if (this.isPrivateDirty("baseValueSeries")) { + const baseValueSeries = this.getPrivate("baseValueSeries"); + if (baseValueSeries) { + this._disposers.push(baseValueSeries.onPrivate("startIndex", () => { + this._baseSeriesDirty = true; + this.markDirtyValues(); + })); + } + } + const calculateAggregates = this.get("calculateAggregates"); + if (calculateAggregates) { + if (this._valuesDirty && !this._dataProcessed) { + if (!this._aggregatesCalculated) { + this._calculateAggregates(0, count); + this._aggregatesCalculated = true; + if (startIndex != 0) { + this._psi = void 0; + } + } + } + if ((this._psi != startIndex || this._pei != endIndex || this.isPrivateDirty("adjustedStartIndex")) && !this._selectionAggregatesCalculated) { + if (startIndex === 0 && endIndex === count && this._aggregatesCalculated) { + } else { + this._calculateAggregates(startIndex, endIndex); + } + this._selectionAggregatesCalculated = true; + } + } + if (this.isDirty("tooltip")) { + let tooltip = this.get("tooltip"); + if (tooltip) { + tooltip.hide(0); + tooltip.set("tooltipTarget", this); + } + } + if (this.isDirty("fill") || this.isDirty("stroke")) { + let markerRectangle; + const legendDataItem = this.get("legendDataItem"); + if (legendDataItem) { + markerRectangle = legendDataItem.get("markerRectangle"); + if (markerRectangle) { + if (this.isVisible()) { + if (this.isDirty("stroke")) { + let stroke = this.get("stroke"); + markerRectangle.set("stroke", stroke); + } + if (this.isDirty("fill")) { + let fill = this.get("fill"); + markerRectangle.set("fill", fill); + } + } + } + } + this.updateLegendMarker(void 0); + } + if (this.bullets.length > 0) { + let startIndex2 = this.startIndex(); + let endIndex2 = this.endIndex(); + if (endIndex2 < count) { + endIndex2++; + } + for (let i = startIndex2; i < endIndex2; i++) { + let dataItem = dataItems[i]; + if (!dataItem.bullets) { + this._makeBullets(dataItem); + } + } + } + } + _handleRemoved() { + } + /** + * @ignore + */ + _adjustStartIndex(index) { + return index; + } + _calculateAggregates(startIndex, endIndex) { + let fields = this._valueFields; + if (!fields) { + throw new Error("No value fields are set for the series."); + } + const excludeFromAggregate = this.get("excludeFromAggregate"); + if (excludeFromAggregate) { + fields = fields.filter((field) => { + return excludeFromAggregate.indexOf(field) == -1; + }); + } + const sum = {}; + const absSum = {}; + const count = {}; + const low = {}; + const high = {}; + const open = {}; + const close = {}; + const average = {}; + const previous = {}; + for (let f = 0, flen = fields.length; f < flen; f++) { + let key = fields[f]; + sum[key] = 0; + absSum[key] = 0; + count[key] = 0; + } + const dataItems = this.dataItems; + const len = dataItems.length; + for (let f = 0, flen = fields.length; f < flen; f++) { + let key = fields[f]; + let change = key + "Change"; + let changePercent = key + "ChangePercent"; + let changePrevious = key + "ChangePrevious"; + let changePreviousPercent = key + "ChangePreviousPercent"; + let changeSelection = key + "ChangeSelection"; + let changeSelectionPercent = key + "ChangeSelectionPercent"; + let openKey = "valueY"; + if (key === "valueX" || key.endsWith("ValueX")) { + openKey = "valueX"; + } + const baseValueSeries = this.getPrivate("baseValueSeries"); + const adjustedStartIndex = this.getPrivate("adjustedStartIndex", startIndex); + const calculateChangesForItem = (dataItem, value, key2) => { + if (startIndex === 0) { + const openValue = open[openKey]; + const changeValue = value - openValue; + dataItem.setRaw(change, changeValue); + dataItem.setRaw(changePercent, changeValue / openValue * 100); + } + const changePreviousValue = value - previous[openKey]; + const changeSelectionValue = value - open[openKey]; + dataItem.setRaw(changePrevious, changePreviousValue); + dataItem.setRaw(changePreviousPercent, changePreviousValue / previous[openKey] * 100); + dataItem.setRaw(changeSelection, changeSelectionValue); + dataItem.setRaw(changeSelectionPercent, changeSelectionValue / open[openKey] * 100); + previous[key2] = value; + }; + for (let i = adjustedStartIndex; i < endIndex; i++) { + const dataItem = dataItems[i]; + if (dataItem) { + let value = dataItem.get(key); + if (value != null) { + if (low[key] == null) { + low[key] = value; + } + if (high[key] == null) { + high[key] = value; + } + if (open[key] == null) { + open[key] = value; + previous[key] = value; + if (baseValueSeries) { + open[openKey] = baseValueSeries._getBase(openKey); + } + } + break; + } + } + } + for (let i = adjustedStartIndex; i < endIndex; i++) { + const dataItem = dataItems[i]; + if (dataItem) { + let value = dataItem._settings[key]; + if (value != null) { + count[key]++; + sum[key] += value; + absSum[key] += Math.abs(value); + if (low[key] > value) { + low[key] = value; + } + if (high[key] < value) { + high[key] = value; + } + close[key] = value; + calculateChangesForItem(dataItem, value, key); + } + } + } + average[key] = sum[key] / count[key]; + if (endIndex < len) { + const dataItem = dataItems[endIndex]; + if (dataItem) { + let value = dataItem.get(key); + if (value != null) { + calculateChangesForItem(dataItem, value, key); + } + } + } + if (endIndex + 1 < len) { + const dataItem = dataItems[endIndex + 1]; + if (dataItem) { + let value = dataItem.get(key); + if (value != null) { + calculateChangesForItem(dataItem, value, key); + } + } + } + if (startIndex > 0) { + startIndex--; + } + delete previous[key]; + for (let i = startIndex; i < adjustedStartIndex; i++) { + const dataItem = dataItems[i]; + if (dataItem) { + let value = dataItem.get(key); + if (previous[key] == null) { + previous[key] = value; + } + if (value != null) { + calculateChangesForItem(dataItem, value, key); + } + } + } + } + for (let f = 0, flen = fields.length; f < flen; f++) { + let key = fields[f]; + this.setPrivate(key + "AverageSelection", average[key]); + this.setPrivate(key + "CountSelection", count[key]); + this.setPrivate(key + "SumSelection", sum[key]); + this.setPrivate(key + "AbsoluteSumSelection", absSum[key]); + this.setPrivate(key + "LowSelection", low[key]); + this.setPrivate(key + "HighSelection", high[key]); + this.setPrivate(key + "OpenSelection", open[key]); + this.setPrivate(key + "CloseSelection", close[key]); + } + if (startIndex === 0 && endIndex === len) { + for (let f = 0, flen = fields.length; f < flen; f++) { + let key = fields[f]; + this.setPrivate(key + "Average", average[key]); + this.setPrivate(key + "Count", count[key]); + this.setPrivate(key + "Sum", sum[key]); + this.setPrivate(key + "AbsoluteSum", absSum[key]); + this.setPrivate(key + "Low", low[key]); + this.setPrivate(key + "High", high[key]); + this.setPrivate(key + "Open", open[key]); + this.setPrivate(key + "Close", close[key]); + } + } + } + _updateChildren() { + super._updateChildren(); + this._psi = this.startIndex(); + this._pei = this.endIndex(); + if (this.isDirty("visible")) { + this.bulletsContainer.set("visible", this.get("visible")); + } + const rules = this.get("heatRules"); + if (this._valuesDirty && rules && rules.length > 0) { + each(rules, (rule) => { + const minValue = rule.minValue || this.getPrivate(rule.dataField + "Low") || 0; + const maxValue = rule.maxValue || this.getPrivate(rule.dataField + "High") || 0; + each(rule.target._entities, (target) => { + const value = target.dataItem.get(rule.dataField); + if (!isNumber(value)) { + if (rule.neutral) { + target.set(rule.key, rule.neutral); + } + const states = target.states; + if (states) { + const defaultState = states.lookup("default"); + if (defaultState && rule.neutral) { + defaultState.set(rule.key, rule.neutral); + } + } + if (!rule.customFunction) { + return; + } + } + if (rule.customFunction) { + rule.customFunction.call(this, target, minValue, maxValue, value); + } else { + let percent2; + if (rule.logarithmic) { + percent2 = (Math.log(value) * Math.LOG10E - Math.log(minValue) * Math.LOG10E) / (Math.log(maxValue) * Math.LOG10E - Math.log(minValue) * Math.LOG10E); + } else { + percent2 = (value - minValue) / (maxValue - minValue); + } + if (isNumber(value) && (!isNumber(percent2) || Math.abs(percent2) == Infinity)) { + percent2 = 0.5; + } + let propertyValue; + if (isNumber(rule.min)) { + propertyValue = rule.min + (rule.max - rule.min) * percent2; + } else if (rule.min instanceof Color) { + propertyValue = Color.interpolate(percent2, rule.min, rule.max); + } else if (rule.min instanceof Percent) { + propertyValue = percentInterpolate(percent2, rule.min, rule.max); + } + target.set(rule.key, propertyValue); + const states = target.states; + if (states) { + const defaultState = states.lookup("default"); + if (defaultState) { + defaultState.set(rule.key, propertyValue); + } + } + } + }); + }); + } + if (this.get("visible")) { + const dataItems = this.dataItems; + let count = dataItems.length; + let startIndex = this.startIndex(); + let endIndex = this.endIndex(); + if (endIndex < count) { + endIndex++; + } + if (startIndex > 0) { + startIndex--; + } + for (let i = 0; i < startIndex; i++) { + this._hideBullets(dataItems[i]); + } + for (let i = startIndex; i < endIndex; i++) { + this._positionBullets(dataItems[i]); + } + for (let i = endIndex; i < count; i++) { + this._hideBullets(dataItems[i]); + } + } + } + _positionBullets(dataItem) { + if (dataItem.bullets) { + each(dataItem.bullets, (bullet) => { + this._positionBullet(bullet); + const sprite = bullet.get("sprite"); + if (bullet.get("dynamic")) { + if (sprite) { + sprite._markDirtyKey("fill"); + sprite.markDirtySize(); + } + if (sprite instanceof Container) { + sprite.walkChildren((child) => { + child._markDirtyKey("fill"); + child.markDirtySize(); + if (child instanceof Label) { + child.text.markDirtyText(); + } + }); + } + } + if (sprite instanceof Label && sprite.get("populateText")) { + sprite.text.markDirtyText(); + } + }); + } + } + _hideBullets(dataItem) { + if (dataItem.bullets) { + each(dataItem.bullets, (bullet) => { + let sprite = bullet.get("sprite"); + if (sprite) { + sprite.setPrivate("visible", false); + } + }); + } + } + _positionBullet(_bullet) { + } + _placeBulletsContainer(chart2) { + chart2.bulletsContainer.children.moveValue(this.bulletsContainer); + } + _removeBulletsContainer() { + const bulletsContainer = this.bulletsContainer; + if (bulletsContainer.parent) { + bulletsContainer.parent.children.removeValue(bulletsContainer); + } + } + /** + * @ignore + */ + disposeDataItem(dataItem) { + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + bullet.dispose(); + }); + dataItem.bullets = void 0; + } + } + _getItemReaderLabel() { + return ""; + } + /** + * Shows series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + showDataItem(dataItem, duration) { + const _super = Object.create(null, { + showDataItem: { get: () => super.showDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.showDataItem.call(this, dataItem, duration)]; + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + const sprite = bullet.get("sprite"); + if (sprite) { + promises.push(sprite.show(duration)); + } + }); + } + yield Promise.all(promises); + }); + } + /** + * Hides series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + hideDataItem(dataItem, duration) { + const _super = Object.create(null, { + hideDataItem: { get: () => super.hideDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.hideDataItem.call(this, dataItem, duration)]; + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + const sprite = bullet.get("sprite"); + if (sprite) { + promises.push(sprite.hide(duration)); + } + }); + } + yield Promise.all(promises); + }); + } + _sequencedShowHide(show, duration) { + return __awaiter(this, void 0, void 0, function* () { + if (this.get("sequencedInterpolation")) { + if (!isNumber(duration)) { + duration = this.get("interpolationDuration", 0); + } + if (duration > 0) { + const startIndex = this.startIndex(); + const endIndex = this.endIndex(); + yield Promise.all(map(this.dataItems, (dataItem, i) => __awaiter(this, void 0, void 0, function* () { + let realDuration = duration || 0; + if (i < startIndex - 10 || i > endIndex + 10) { + realDuration = 0; + } + let delay = this.get("sequencedDelay", 0) + realDuration / (endIndex - startIndex); + yield sleep(delay * (i - startIndex)); + if (show) { + yield this.showDataItem(dataItem, realDuration); + } else { + yield this.hideDataItem(dataItem, realDuration); + } + }))); + } else { + yield Promise.all(map(this.dataItems, (dataItem) => { + if (show) { + return this.showDataItem(dataItem, 0); + } else { + return this.hideDataItem(dataItem, 0); + } + })); + } + } + }); + } + /** + * @ignore + */ + updateLegendValue(dataItem) { + if (dataItem) { + const legendDataItem = dataItem.get("legendDataItem"); + if (legendDataItem) { + const valueLabel = legendDataItem.get("valueLabel"); + if (valueLabel) { + const text = valueLabel.text; + let txt = ""; + valueLabel._setDataItem(dataItem); + txt = this.get("legendValueText", text.get("text", "")); + valueLabel.set("text", txt); + text.markDirtyText(); + } + const label = legendDataItem.get("label"); + if (label) { + const text = label.text; + let txt = ""; + label._setDataItem(dataItem); + txt = this.get("legendLabelText", text.get("text", "")); + label.set("text", txt); + text.markDirtyText(); + } + } + } + } + /** + * @ignore + */ + updateLegendMarker(_dataItem) { + } + _onHide() { + super._onHide(); + const tooltip = this.getTooltip(); + if (tooltip) { + tooltip.hide(); + } + } + /** + * @ignore + */ + hoverDataItem(_dataItem) { + } + /** + * @ignore + */ + unhoverDataItem(_dataItem) { + } + /** + * @ignore + */ + _getBase(key) { + const dataItem = this.dataItems[this.startIndex()]; + if (dataItem) { + return dataItem.get(key); + } + return 0; + } + }; + Series.className = "Series"; + Series.classNames = Component.classNames.concat([Series.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Legend.js + var Legend = class extends Series { + constructor() { + super(...arguments); + this.itemContainers = this.addDisposer(new ListTemplate(Template.new({}), () => Container._new(this._root, { + themeTags: mergeTags(this.itemContainers.template.get("themeTags", []), ["legend", "item"]), + themeTagsSelf: mergeTags(this.itemContainers.template.get("themeTagsSelf", []), ["itemcontainer"]), + background: RoundedRectangle.new(this._root, { + themeTags: mergeTags(this.itemContainers.template.get("themeTags", []), ["legend", "item", "background"]), + themeTagsSelf: mergeTags(this.itemContainers.template.get("themeTagsSelf", []), ["itemcontainer"]) + }) + }, [this.itemContainers.template]))); + this.markers = this.addDisposer(new ListTemplate(Template.new({}), () => Container._new(this._root, { + themeTags: mergeTags(this.markers.template.get("themeTags", []), ["legend", "marker"]) + }, [this.markers.template]))); + this.labels = this.addDisposer(new ListTemplate(Template.new({}), () => Label._new(this._root, { + themeTags: mergeTags(this.labels.template.get("themeTags", []), ["legend", "label"]) + }, [this.labels.template]))); + this.valueLabels = this.addDisposer(new ListTemplate(Template.new({}), () => Label._new(this._root, { + themeTags: mergeTags(this.valueLabels.template.get("themeTags", []), ["legend", "label", "value"]) + }, [this.valueLabels.template]))); + this.markerRectangles = this.addDisposer(new ListTemplate(Template.new({}), () => RoundedRectangle._new(this._root, { + themeTags: mergeTags(this.markerRectangles.template.get("themeTags", []), ["legend", "marker", "rectangle"]) + }, [this.markerRectangles.template]))); + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["legend"]); + this.fields.push("name", "stroke", "fill"); + super._afterNew(); + } + /** + * @ignore + */ + makeItemContainer(dataItem) { + const itemContainer = this.children.push(this.itemContainers.make()); + itemContainer._setDataItem(dataItem); + this.itemContainers.push(itemContainer); + itemContainer.states.create("disabled", {}); + return itemContainer; + } + /** + * @ignore + */ + makeMarker() { + const marker = this.markers.make(); + this.markers.push(marker); + marker.states.create("disabled", {}); + return marker; + } + /** + * @ignore + */ + makeLabel() { + const label = this.labels.make(); + label.states.create("disabled", {}); + return label; + } + /** + * @ignore + */ + makeValueLabel() { + const valueLabel = this.valueLabels.make(); + valueLabel.states.create("disabled", {}); + return valueLabel; + } + /** + * @ignore + */ + makeMarkerRectangle() { + const markerRectangle = this.markerRectangles.make(); + markerRectangle.states.create("disabled", {}); + return markerRectangle; + } + processDataItem(dataItem) { + super.processDataItem(dataItem); + const itemContainer = this.makeItemContainer(dataItem); + const nameField = this.get("nameField"); + const fillField = this.get("fillField"); + const strokeField = this.get("strokeField"); + if (itemContainer) { + const clickTarget = this.get("clickTarget", "itemContainer"); + const item = dataItem.dataContext; + if (item && item.set) { + item.set("legendDataItem", dataItem); + } + itemContainer._setDataItem(dataItem); + dataItem.set("itemContainer", itemContainer); + const marker = this.makeMarker(); + if (marker) { + itemContainer.children.push(marker); + marker._setDataItem(dataItem); + dataItem.set("marker", marker); + const useDefaultMarker = this.get("useDefaultMarker"); + const markerRectangle = marker.children.push(this.makeMarkerRectangle()); + let fill = dataItem.get("fill"); + let stroke = dataItem.get("stroke"); + dataItem.set("markerRectangle", markerRectangle); + if (item && item.get) { + fill = item.get(fillField, fill); + stroke = item.get(strokeField, stroke); + } + if (!stroke) { + stroke = fill; + } + if (!useDefaultMarker) { + if (item && item.createLegendMarker) { + item.createLegendMarker(); + } + } else { + if (item.on) { + item.on(fillField, () => { + markerRectangle.set("fill", item.get(fillField)); + }); + item.on(strokeField, () => { + markerRectangle.set("stroke", item.get(strokeField)); + }); + } + } + markerRectangle.setAll({ fill, stroke }); + const component = item.component; + if (component && component.updateLegendMarker) { + component.updateLegendMarker(item); + } + } + const label = this.makeLabel(); + if (label) { + itemContainer.children.push(label); + label._setDataItem(dataItem); + dataItem.set("label", label); + label.text.on("text", () => { + itemContainer.setRaw("ariaLabel", label.text._getText() + (this.get("clickTarget") !== "none" ? "; " + this._t("Press ENTER to toggle") : "")); + itemContainer.markDirtyAccessibility(); + }); + if (item && item.get) { + dataItem.set("name", item.get(nameField)); + } + let name = dataItem.get("name"); + if (name) { + label.set("text", name); + } + } + const valueLabel = this.makeValueLabel(); + if (valueLabel) { + itemContainer.children.push(valueLabel); + valueLabel._setDataItem(dataItem); + dataItem.set("valueLabel", valueLabel); + } + if (item && item.show) { + item.on("visible", (visible) => { + itemContainer.set("disabled", !visible); + }); + if (!item.get("visible")) { + itemContainer.set("disabled", true); + } + if (clickTarget != "none") { + let clickContainer = itemContainer; + if (clickTarget == "marker") { + clickContainer = marker; + } + this._addClickEvents(clickContainer, item, dataItem); + } + } + this.children.values.sort((a, b) => { + const targetA = a.dataItem.dataContext; + const targetB = b.dataItem.dataContext; + if (targetA && targetB) { + const indexA = this.data.indexOf(targetA); + const indexB = this.data.indexOf(targetB); + if (indexA > indexB) { + return 1; + } else if (indexA < indexB) { + return -1; + } + } + return 0; + }); + if (item && item.updateLegendValue) { + item.updateLegendValue(); + } + } + } + _addClickEvents(container, item, dataItem) { + container.set("cursorOverStyle", "pointer"); + container.events.on("pointerover", () => { + const component = item.component; + if (component && component.hoverDataItem) { + component.hoverDataItem(item); + } + }); + container.events.on("pointerout", () => { + const component = item.component; + if (component && component.hoverDataItem) { + component.unhoverDataItem(item); + } + }); + container.events.on("click", () => { + const labelText = dataItem.get("label").text._getText(); + if (item.show && item.isHidden && (item.isHidden() || item.get("visible") === false)) { + item.show(); + container.set("disabled", false); + this._root.readerAlert(this._t("%1 shown", this._root.locale, labelText)); + } else if (item.hide) { + item.hide(); + container.set("disabled", true); + this._root.readerAlert(this._t("%1 hidden", this._root.locale, labelText)); + } + }); + } + /** + * @ignore + */ + disposeDataItem(dataItem) { + super.disposeDataItem(dataItem); + const dataContext = dataItem.dataContext; + if (dataContext && dataContext.get) { + const di = dataContext.get("legendDataItem"); + if (di == dataItem) { + dataContext.set("legendDataItem", void 0); + } + } + let itemContainer = dataItem.get("itemContainer"); + if (itemContainer) { + this.itemContainers.removeValue(itemContainer); + itemContainer.dispose(); + } + let marker = dataItem.get("marker"); + if (marker) { + this.markers.removeValue(marker); + marker.dispose(); + } + let markerRectangle = dataItem.get("markerRectangle"); + if (markerRectangle) { + this.markerRectangles.removeValue(markerRectangle); + markerRectangle.dispose(); + } + let label = dataItem.get("label"); + if (label) { + this.labels.removeValue(label); + label.dispose(); + } + let valueLabel = dataItem.get("valueLabel"); + if (valueLabel) { + this.valueLabels.removeValue(valueLabel); + valueLabel.dispose(); + } + } + }; + Legend.className = "Legend"; + Legend.classNames = Series.classNames.concat([Legend.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/Draw.js + function segmentedLine(display, segments) { + for (let s2 = 0, len = segments.length; s2 < len; s2++) { + const groups = segments[s2]; + if (groups.length > 0) { + let firstGroup = groups[0]; + if (firstGroup.length > 0) { + let firstPoint = firstGroup[0]; + display.moveTo(firstPoint.x, firstPoint.y); + for (let g = 0, len2 = groups.length; g < len2; g++) { + line(display, groups[g]); + } + } + } + } + } + function line(display, points) { + for (let p = 0, len = points.length; p < len; p++) { + const point = points[p]; + display.lineTo(point.x, point.y); + } + } + + // node_modules/@amcharts/amcharts5/.internal/core/render/Line.js + var Line = class extends Graphics { + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("points") || this.isDirty("segments") || this._sizeDirty || this.isPrivateDirty("width") || this.isPrivateDirty("height")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear) { + const points = this.get("points"); + const segments = this.get("segments"); + if (points && points.length > 0) { + let point = points[0]; + this._display.moveTo(point.x, point.y); + segmentedLine(this._display, [[points]]); + } else if (segments) { + segmentedLine(this._display, segments); + } else if (!this.get("draw")) { + let w = this.width(); + let h = this.height(); + this._display.moveTo(0, 0); + this._display.lineTo(w, h); + } + } + } + }; + Line.className = "Line"; + Line.classNames = Graphics.classNames.concat([Line.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Scrollbar.js + var Scrollbar = class extends Container { + constructor() { + super(...arguments); + this.thumb = this._makeThumb(); + this.startGrip = this._makeButton(); + this.endGrip = this._makeButton(); + this._thumbBusy = false; + this._startDown = false; + this._endDown = false; + this._thumbDown = false; + } + _addOrientationClass() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["scrollbar", this._settings.orientation]); + if (!this._settings.background) { + this._settings.background = RoundedRectangle.new(this._root, { + themeTags: mergeTags(this._settings.themeTags, ["main", "background"]) + }); + } + } + _makeButton() { + return this.children.push(Button.new(this._root, { + themeTags: ["resize", "button", this.get("orientation")], + icon: Graphics.new(this._root, { + themeTags: ["icon"] + }) + })); + } + _makeThumb() { + return this.children.push(RoundedRectangle.new(this._root, { + themeTags: ["thumb", this.get("orientation")] + })); + } + _handleAnimation(animation) { + if (animation) { + this._disposers.push(animation.events.on("stopped", () => { + this.setPrivateRaw("isBusy", false); + this._thumbBusy = false; + })); + } + } + _afterNew() { + this._addOrientationClass(); + super._afterNew(); + const startGrip = this.startGrip; + const endGrip = this.endGrip; + const thumb = this.thumb; + const background = this.get("background"); + if (background) { + this._disposers.push(background.events.on("click", (event) => { + this.setPrivateRaw("isBusy", true); + const point = this._display.toLocal(event.point); + const w = this.width(); + const h = this.height(); + const orientation = this.get("orientation"); + let newMiddle; + if (orientation == "vertical") { + newMiddle = (point.y - thumb.height() / 2) / h; + } else { + newMiddle = (point.x - thumb.width() / 2) / w; + } + let newCoordinate; + let key; + if (orientation == "vertical") { + newCoordinate = newMiddle * h; + key = "y"; + } else { + newCoordinate = newMiddle * w; + key = "x"; + } + const duration = this.get("animationDuration", 0); + if (duration > 0) { + this._thumbBusy = true; + this._handleAnimation(this.thumb.animate({ key, to: newCoordinate, duration, easing: this.get("animationEasing") })); + } else { + this.thumb.set(key, newCoordinate); + this._root.events.once("frameended", () => { + this.setPrivateRaw("isBusy", false); + }); + } + })); + } + this._disposers.push(thumb.events.on("dblclick", (event) => { + if (!isLocalEvent(event.originalEvent, this)) { + return; + } + const duration = this.get("animationDuration", 0); + const easing = this.get("animationEasing"); + this.animate({ key: "start", to: 0, duration, easing }); + this.animate({ key: "end", to: 1, duration, easing }); + })); + this._disposers.push(startGrip.events.on("pointerdown", () => { + this.setPrivateRaw("isBusy", true); + this._startDown = true; + this._gripDown = "start"; + })); + this._disposers.push(endGrip.events.on("pointerdown", () => { + this.setPrivateRaw("isBusy", true); + this._endDown = true; + this._gripDown = "end"; + })); + this._disposers.push(thumb.events.on("pointerdown", () => { + this.setPrivateRaw("isBusy", true); + this._thumbDown = true; + this._gripDown = void 0; + })); + this._disposers.push(startGrip.events.on("globalpointerup", () => { + if (this._startDown) { + this.setPrivateRaw("isBusy", false); + this._released(); + } + this._startDown = false; + })); + this._disposers.push(endGrip.events.on("globalpointerup", () => { + if (this._endDown) { + this.setPrivateRaw("isBusy", false); + this._released(); + } + this._endDown = false; + })); + this._disposers.push(thumb.events.on("globalpointerup", () => { + if (this._thumbDown) { + this.setPrivateRaw("isBusy", false); + this._released(); + } + this._thumbDown = false; + })); + this._disposers.push(startGrip.on("x", () => { + this._updateThumb(); + })); + this._disposers.push(endGrip.on("x", () => { + this._updateThumb(); + })); + this._disposers.push(startGrip.on("y", () => { + this._updateThumb(); + })); + this._disposers.push(endGrip.on("y", () => { + this._updateThumb(); + })); + this._disposers.push(thumb.events.on("positionchanged", () => { + this._updateGripsByThumb(); + })); + if (this.get("orientation") == "vertical") { + startGrip.set("x", 0); + endGrip.set("x", 0); + this._disposers.push(thumb.adapters.add("y", (value) => { + return Math.max(Math.min(Number(value), this.height() - thumb.height()), 0); + })); + this._disposers.push(thumb.adapters.add("x", (_value) => { + return this.width() / 2; + })); + this._disposers.push(startGrip.adapters.add("x", (_value) => { + return this.width() / 2; + })); + this._disposers.push(endGrip.adapters.add("x", (_value) => { + return this.width() / 2; + })); + this._disposers.push(startGrip.adapters.add("y", (value) => { + return Math.max(Math.min(Number(value), this.height()), 0); + })); + this._disposers.push(endGrip.adapters.add("y", (value) => { + return Math.max(Math.min(Number(value), this.height()), 0); + })); + } else { + startGrip.set("y", 0); + endGrip.set("y", 0); + this._disposers.push(thumb.adapters.add("x", (value) => { + return Math.max(Math.min(Number(value), this.width() - thumb.width()), 0); + })); + this._disposers.push(thumb.adapters.add("y", (_value) => { + return this.height() / 2; + })); + this._disposers.push(startGrip.adapters.add("y", (_value) => { + return this.height() / 2; + })); + this._disposers.push(endGrip.adapters.add("y", (_value) => { + return this.height() / 2; + })); + this._disposers.push(startGrip.adapters.add("x", (value) => { + return Math.max(Math.min(Number(value), this.width()), 0); + })); + this._disposers.push(endGrip.adapters.add("x", (value) => { + return Math.max(Math.min(Number(value), this.width()), 0); + })); + } + } + _updateChildren() { + super._updateChildren(); + if (this.isDirty("end") || this.isDirty("start") || this._sizeDirty) { + this.updateGrips(); + } + } + _changed() { + super._changed(); + if (this.isDirty("start") || this.isDirty("end")) { + const eventType = "rangechanged"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this, start: this.get("start", 0), end: this.get("end", 1), grip: this._gripDown }); + } + } + } + _released() { + const eventType = "released"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this }); + } + } + /** + * @ignore + */ + updateGrips() { + const startGrip = this.startGrip; + const endGrip = this.endGrip; + const orientation = this.get("orientation"); + const height = this.height(); + const width = this.width(); + if (orientation == "vertical") { + startGrip.set("y", height * this.get("start", 0)); + endGrip.set("y", height * this.get("end", 1)); + } else { + startGrip.set("x", width * this.get("start", 0)); + endGrip.set("x", width * this.get("end", 1)); + } + const valueFunction = this.getPrivate("positionTextFunction"); + const from = Math.round(this.get("start", 0) * 100); + const to = Math.round(this.get("end", 0) * 100); + let fromValue; + let toValue; + if (valueFunction) { + fromValue = valueFunction.call(this, this.get("start", 0)); + toValue = valueFunction.call(this, this.get("end", 0)); + } else { + fromValue = from + "%"; + toValue = to + "%"; + } + startGrip.set("ariaLabel", this._t("From %1", void 0, fromValue)); + startGrip.set("ariaValueNow", "" + from); + startGrip.set("ariaValueText", from + "%"); + startGrip.set("ariaValueMin", "0"); + startGrip.set("ariaValueMax", "100"); + endGrip.set("ariaLabel", this._t("To %1", void 0, toValue)); + endGrip.set("ariaValueNow", "" + to); + endGrip.set("ariaValueText", to + "%"); + endGrip.set("ariaValueMin", "0"); + endGrip.set("ariaValueMax", "100"); + } + _updateThumb() { + const thumb = this.thumb; + const startGrip = this.startGrip; + const endGrip = this.endGrip; + const height = this.height(); + const width = this.width(); + let x0 = startGrip.x(); + let x1 = endGrip.x(); + let y0 = startGrip.y(); + let y1 = endGrip.y(); + let start = 0; + let end = 1; + if (this.get("orientation") == "vertical") { + if (isNumber(y0) && isNumber(y1)) { + if (!this._thumbBusy && !thumb.isDragging()) { + thumb.set("height", y1 - y0); + thumb.set("y", y0); + } + start = y0 / height; + end = y1 / height; + } + } else { + if (isNumber(x0) && isNumber(x1)) { + if (!this._thumbBusy && !thumb.isDragging()) { + thumb.set("width", x1 - x0); + thumb.set("x", x0); + } + start = x0 / width; + end = x1 / width; + } + } + if (this.getPrivate("isBusy") && (this.get("start") != start || this.get("end") != end)) { + this.set("start", start); + this.set("end", end); + } + const valueFunction = this.getPrivate("positionTextFunction"); + const from = Math.round(this.get("start", 0) * 100); + const to = Math.round(this.get("end", 0) * 100); + let fromValue; + let toValue; + if (valueFunction) { + fromValue = valueFunction.call(this, this.get("start", 0)); + toValue = valueFunction.call(this, this.get("end", 0)); + } else { + fromValue = from + "%"; + toValue = to + "%"; + } + thumb.set("ariaLabel", this._t("From %1 to %2", void 0, fromValue, toValue)); + thumb.set("ariaValueNow", "" + from); + thumb.set("ariaValueText", from + "%"); + } + _updateGripsByThumb() { + const thumb = this.thumb; + const startGrip = this.startGrip; + const endGrip = this.endGrip; + if (this.get("orientation") == "vertical") { + const thumbSize = thumb.height(); + startGrip.set("y", thumb.y()); + endGrip.set("y", thumb.y() + thumbSize); + } else { + const thumbSize = thumb.width(); + startGrip.set("x", thumb.x()); + endGrip.set("x", thumb.x() + thumbSize); + } + } + }; + Scrollbar.className = "Scrollbar"; + Scrollbar.classNames = Container.classNames.concat([Scrollbar.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Chart.js + var Chart = class extends Container { + constructor() { + super(...arguments); + this.chartContainer = this.children.push(Container.new(this._root, { width: p100, height: p100, interactiveChildren: false })); + this.bulletsContainer = Container.new(this._root, { interactiveChildren: false, isMeasured: false, position: "absolute", width: p100, height: p100 }); + } + }; + Chart.className = "Chart"; + Chart.classNames = Container.classNames.concat([Chart.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/SerialChart.js + var SerialChart = class extends Chart { + constructor() { + super(...arguments); + this.seriesContainer = Container.new(this._root, { width: p100, height: p100, isMeasured: false }); + this.series = new ListAutoDispose(); + } + _afterNew() { + super._afterNew(); + this._disposers.push(this.series); + const children = this.seriesContainer.children; + this._disposers.push(this.series.events.onAll((change) => { + if (change.type === "clear") { + each(change.oldValues, (series) => { + this._removeSeries(series); + }); + const colors = this.get("colors"); + if (colors) { + colors.reset(); + } + const patterns = this.get("patterns"); + if (patterns) { + patterns.reset(); + } + } else if (change.type === "push") { + children.moveValue(change.newValue); + this._processSeries(change.newValue); + } else if (change.type === "setIndex") { + children.setIndex(change.index, change.newValue); + this._processSeries(change.newValue); + } else if (change.type === "insertIndex") { + children.insertIndex(change.index, change.newValue); + this._processSeries(change.newValue); + } else if (change.type === "removeIndex") { + this._removeSeries(change.oldValue); + } else if (change.type === "moveIndex") { + children.moveValue(change.value, change.newIndex); + this._processSeries(change.value); + } else if (change.type === "swap") { + const a = change.a; + const b = change.b; + const aIndex = this.series.indexOf(a); + const bIndex = this.series.indexOf(b); + children.moveValue(a, bIndex); + children.moveValue(b, aIndex); + this.series.each((series) => { + this._processSeries(series); + series.markDirtyValues(); + }); + } else { + throw new Error("Unknown IListEvent type"); + } + })); + } + _processSeries(series) { + series.chart = this; + series._placeBulletsContainer(this); + } + _removeSeries(series) { + series._handleRemoved(); + if (!series.isDisposed()) { + this.seriesContainer.children.removeValue(series); + series._removeBulletsContainer(); + } + } + }; + SerialChart.className = "SerialChart"; + SerialChart.classNames = Chart.classNames.concat([SerialChart.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Tick.js + var Tick = class extends Line { + }; + Tick.className = "Tick"; + Tick.classNames = Line.classNames.concat([Tick.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/ColorSet.js + var ColorSet = class extends Entity { + //protected _currentPass: number = 0; + _afterNew() { + super._afterNewApplyThemes(); + this._dirty["colors"] = false; + } + _beforeChanged() { + if (this.isDirty("colors")) { + this.reset(); + } + } + /** + * @ignore + */ + generateColors() { + this.setPrivate("currentPass", this.getPrivate("currentPass", 0) + 1); + const pass = this.getPrivate("currentPass"); + const colors = this.get("colors", [this.get("baseColor", Color.fromHex(16711680))]); + if (!this.getPrivate("numColors")) { + this.setPrivate("numColors", colors.length); + } + const len = this.getPrivate("numColors"); + const start = 0; + const passOptions = this.get("passOptions"); + const reuse = this.get("reuse"); + for (let i = start; i < len; i++) { + if (reuse) { + colors.push(colors[i]); + } else { + const hsl = colors[i].toHSL(); + let h = hsl.h + (passOptions.hue || 0) * pass; + while (h > 1) + h -= 1; + let s2 = hsl.s + (passOptions.saturation || 0) * pass; + if (s2 > 1) + s2 = 1; + if (s2 < 0) + s2 = 0; + let l = hsl.l + (passOptions.lightness || 0) * pass; + while (l > 1) + l -= 1; + colors.push(Color.fromHSL(h, s2, l)); + } + } + } + /** + * Returns a [[Color]] at specific index. + * + * If there's no color at this index, a new color is generated. + * + * @param index Index + * @return Color + */ + getIndex(index) { + const colors = this.get("colors", []); + const saturation = this.get("saturation"); + if (index >= colors.length) { + this.generateColors(); + return this.getIndex(index); + } + return saturation != null ? Color.saturate(colors[index], saturation) : colors[index]; + } + /** + * Returns next [[Color]] in the list. + * + * If the list is out of colors, new ones are generated dynamically. + */ + next() { + let currentStep = this.getPrivate("currentStep", this.get("startIndex", 0)); + this.setPrivate("currentStep", currentStep + this.get("step", 1)); + return this.getIndex(currentStep); + } + /** + * Resets counter to the start of the list, so the next call for `next()` will + * return the first color. + */ + reset() { + this.setPrivate("currentStep", this.get("startIndex", 0)); + this.setPrivate("currentPass", 0); + } + }; + ColorSet.className = "ColorSet"; + ColorSet.classNames = Entity.classNames.concat([ColorSet.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/XYChartDefaultTheme.js + var XYChartDefaultTheme = class extends Theme { + setupDefaultRules() { + super.setupDefaultRules(); + const ic = this._root.interfaceColors; + const language = this._root.language; + const r = this.rule.bind(this); + r("XYChart").setAll({ + colors: ColorSet.new(this._root, {}), + paddingLeft: 20, + paddingRight: 20, + paddingTop: 16, + paddingBottom: 16, + panX: false, + panY: false, + wheelStep: 0.25, + arrangeTooltips: true, + pinchZoomX: false, + pinchZoomY: false + }); + r("XYSeries").setAll({ + legendLabelText: "{name}" + }); + r("Rectangle", ["plotbackground", "xy", "background"]).setAll({ + fill: Color.fromHex(0), + fillOpacity: 0 + }); + r("XYChart", ["scrollbar", "chart"]).setAll({ + paddingBottom: 0, + paddingLeft: 0, + paddingTop: 0, + paddingRight: 0, + colors: ColorSet.new(this._root, { + saturation: 0 + }) + }); + { + const rule = r("Graphics", ["scrollbar", "overlay"]); + rule.setAll({ + fillOpacity: 0.5 + }); + setColor(rule, "fill", ic, "background"); + } + r("RoundedRectangle", ["xy", "scrollbar", "thumb"]).setAll({ + cornerRadiusTR: 0, + cornerRadiusTL: 0, + cornerRadiusBR: 0, + cornerRadiusBL: 0, + fillOpacity: 0, + focusable: true + }); + r("RoundedRectangle", ["xy", "scrollbar", "thumb"]).states.create("hover", { fillOpacity: 0.4 }); + r("RoundedRectangle", ["xy", "scrollbar", "chart", "background"]).setAll({ + cornerRadiusTL: 0, + cornerRadiusBL: 0, + cornerRadiusTR: 0, + cornerRadiusBR: 0 + }); + r("RoundedRectangle", ["xy", "scrollbar", "chart", "background", "resize", "button"]).setAll({ + cornerRadiusBL: 40, + cornerRadiusBR: 40, + cornerRadiusTL: 40, + cornerRadiusTR: 40 + }); + r("AxisRendererX", ["xy", "chart", "scrollbar"]).setAll({ + strokeOpacity: 0, + inside: true + }); + r("AxisRendererY", ["xy", "chart", "scrollbar"]).setAll({ + strokeOpacity: 0, + inside: true, + minGridDistance: 5 + }); + r("AxisLabel", ["xy", "scrollbar", "x"]).setAll({ + opacity: 0.5, + centerY: p100, + minPosition: 0.01, + maxPosition: 0.99, + fontSize: "0.8em" + }); + r("AxisLabel", ["category"]).setAll({ + text: "{category}", + populateText: true + }); + r("AxisLabel", ["x"]).setAll({ + centerY: 0 + }); + r("AxisLabel", ["x", "inside"]).setAll({ + centerY: p100 + }); + r("AxisLabel", ["x", "inside", "opposite"]).setAll({ + centerY: 0 + }); + r("AxisLabel", ["x", "opposite"]).setAll({ + centerY: p100 + }); + r("AxisLabel", ["y"]).setAll({ + centerX: p100 + }); + r("AxisLabel", ["y", "inside"]).setAll({ + centerX: 0 + }); + r("AxisLabel", ["y", "inside", "opposite"]).setAll({ + centerX: p100 + }); + r("AxisLabel", ["y", "opposite"]).setAll({ + centerX: 0 + }); + r("AxisLabel", ["minor"]).setAll({ + fontSize: "0.6em" + }); + r("AxisLabel", ["xy", "scrollbar", "y"]).setAll({ + visible: false + }); + r("Grid", ["xy", "scrollbar", "y"]).setAll({ + visible: false + }); + r("Grid", ["xy", "scrollbar", "x"]).setAll({ + opacity: 0.5 + }); + r("XYCursor").setAll({ + behavior: "none", + layer: 30, + exportable: false, + snapToSeriesBy: "xy", + moveThreshold: 1 + }); + { + const rule = r("Grid", ["cursor", "x"]); + rule.setAll({ + forceInactive: true, + strokeOpacity: 0.8, + strokeDasharray: [2, 2], + role: "slider", + ariaLabel: language.translate("Use left and right arrows to move selection") + }); + setColor(rule, "stroke", ic, "alternativeBackground"); + } + { + const rule = r("Grid", ["cursor", "y"]); + rule.setAll({ + forceInactive: true, + strokeOpacity: 0.8, + strokeDasharray: [2, 2], + role: "slider", + ariaLabel: language.translate("Use up and down arrows to move selection") + }); + setColor(rule, "stroke", ic, "alternativeBackground"); + } + { + const rule = r("Graphics", ["cursor", "selection"]); + rule.setAll({ + fillOpacity: 0.15 + }); + setColor(rule, "fill", ic, "alternativeBackground"); + } + r("Axis").setAll({ + zoomOut: true, + start: 0, + end: 1, + minZoomCount: 1, + maxZoomCount: Infinity, + maxZoomFactor: 1e3, + maxDeviation: 0.1, + snapTooltip: true, + tooltipLocation: 0.5, + panX: true, + panY: true, + zoomX: true, + zoomY: true, + fixAxisSize: true + }); + r("AxisLabel").setAll({ + location: 0.5, + multiLocation: 0, + centerX: p50, + centerY: p50, + paddingTop: 3, + paddingBottom: 3, + paddingLeft: 5, + paddingRight: 5 + }); + r("Container", ["axis", "header"]).setAll({ + layer: 30 + }); + r("Rectangle", ["axis", "header", "background"]).setAll({ + crisp: true + }); + { + const rule = r("AxisRenderer"); + rule.setAll({ + crisp: true, + strokeOpacity: 0 + }); + setColor(rule, "stroke", ic, "grid"); + } + r("AxisRendererX").setAll({ + minGridDistance: 120, + opposite: false, + inversed: false, + cellStartLocation: 0, + cellEndLocation: 1, + width: p100 + }); + r("AxisRendererY").setAll({ + minGridDistance: 40, + opposite: false, + inversed: false, + cellStartLocation: 0, + cellEndLocation: 1, + height: p100 + }); + { + const rule = r("Rectangle", ["axis", "thumb", "zoomgrip"]); + rule.setAll({ + fillOpacity: 0 + }); + setColor(rule, "fill", ic, "alternativeBackground"); + rule.states.create("hover", { fillOpacity: 0.1 }); + } + r("Rectangle", ["axis", "thumb", "x", "zoomgrip"]).setAll({ + cursorOverStyle: "ew-resize" + }); + r("Rectangle", ["axis", "thumb", "y", "zoomgrip"]).setAll({ + cursorOverStyle: "ns-resize" + }); + { + const rule = r("Grid"); + rule.setAll({ + location: 0, + strokeOpacity: 0.15, + crisp: true + }); + setColor(rule, "stroke", ic, "grid"); + } + { + const rule = r("Grid", ["minor"]); + rule.setAll({ + location: 0, + strokeOpacity: 0.07, + crisp: true + }); + setColor(rule, "stroke", ic, "grid"); + } + r("Grid", ["base"]).setAll({ + strokeOpacity: 0.3 + }); + { + const rule = r("Graphics", ["axis", "fill"]); + rule.setAll({ + visible: false, + isMeasured: false, + position: "absolute", + fillOpacity: 0.05 + }); + setColor(rule, "fill", ic, "alternativeBackground"); + } + r("Graphics", ["axis", "fill", "range"]).setAll({ + isMeasured: true + }); + r("Graphics", ["series", "fill", "range"]).setAll({ + visible: false, + isMeasured: true + }); + r("Grid", ["series", "range"]).setAll({ + visible: false + }); + r("AxisTick", ["series", "range"]).setAll({ + visible: false + }); + r("AxisLabel", ["series", "range"]).setAll({ + visible: false + }); + { + const rule = r("AxisTick"); + rule.setAll({ + location: 0.5, + multiLocation: 0, + strokeOpacity: 1, + isMeasured: false, + position: "absolute", + visible: false + }); + setColor(rule, "stroke", ic, "grid"); + } + r("CategoryAxis").setAll({ + startLocation: 0, + endLocation: 1, + fillRule: (dataItem, index) => { + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + if (!isNumber(index) || index % 2 == 0) { + axisFill.setPrivate("visible", true); + } else { + axisFill.setPrivate("visible", false); + } + } + } + }); + const gridIntervals = [ + { timeUnit: "millisecond", count: 1 }, + { timeUnit: "millisecond", count: 5 }, + { timeUnit: "millisecond", count: 10 }, + { timeUnit: "millisecond", count: 50 }, + { timeUnit: "millisecond", count: 100 }, + { timeUnit: "millisecond", count: 500 }, + { timeUnit: "second", count: 1 }, + { timeUnit: "second", count: 5 }, + { timeUnit: "second", count: 10 }, + { timeUnit: "second", count: 30 }, + { timeUnit: "minute", count: 1 }, + { timeUnit: "minute", count: 5 }, + { timeUnit: "minute", count: 10 }, + { timeUnit: "minute", count: 15 }, + { timeUnit: "minute", count: 30 }, + { timeUnit: "hour", count: 1 }, + { timeUnit: "hour", count: 3 }, + { timeUnit: "hour", count: 6 }, + { timeUnit: "hour", count: 12 }, + { timeUnit: "day", count: 1 }, + { timeUnit: "day", count: 2 }, + { timeUnit: "day", count: 3 }, + { timeUnit: "day", count: 4 }, + { timeUnit: "day", count: 5 }, + { timeUnit: "week", count: 1 }, + { timeUnit: "month", count: 1 }, + { timeUnit: "month", count: 2 }, + { timeUnit: "month", count: 3 }, + { timeUnit: "month", count: 6 }, + { timeUnit: "year", count: 1 }, + { timeUnit: "year", count: 2 }, + { timeUnit: "year", count: 5 }, + { timeUnit: "year", count: 10 }, + { timeUnit: "year", count: 50 }, + { timeUnit: "year", count: 100 }, + { timeUnit: "year", count: 200 }, + { timeUnit: "year", count: 500 }, + { timeUnit: "year", count: 1e3 }, + { timeUnit: "year", count: 2e3 }, + { timeUnit: "year", count: 5e3 }, + { timeUnit: "year", count: 1e4 }, + { timeUnit: "year", count: 1e5 } + ]; + const dateFormats = { + "millisecond": language.translate("_date_millisecond"), + "second": language.translate("_date_second"), + "minute": language.translate("_date_minute"), + "hour": language.translate("_date_hour"), + "day": language.translate("_date_day"), + "week": language.translate("_date_day"), + "month": language.translate("_date_month"), + "year": language.translate("_date_year") + }; + const periodChangeDateFormats = { + "millisecond": language.translate("_date_millisecond"), + "second": language.translate("_date_second"), + "minute": language.translate("_date_minute"), + "hour": language.translate("_date_day"), + "day": language.translate("_date_day"), + "week": language.translate("_date_day"), + "month": language.translate("_date_month") + " " + language.translate("_date_year"), + "year": language.translate("_date_year") + }; + const tooltipDateFormats = { + "millisecond": language.translate("_date_millisecond_full"), + "second": language.translate("_date_second_full"), + "minute": language.translate("_date_minute_full"), + "hour": language.translate("_date_hour_full"), + "day": language.translate("_date_day_full"), + "week": language.translate("_date_week_full"), + "month": language.translate("_date_month_full"), + "year": language.translate("_date_year") + }; + r("CategoryDateAxis").setAll({ + markUnitChange: true, + gridIntervals: copy(gridIntervals), + dateFormats: copy2(dateFormats), + periodChangeDateFormats: copy2(periodChangeDateFormats) + }); + r("DateAxis").setAll({ + maxZoomFactor: null, + strictMinMax: true, + startLocation: 0, + endLocation: 1, + markUnitChange: true, + groupData: false, + groupCount: 500, + skipFirstMinor: true, + weekLabelLocation: 0, + gridIntervals: copy(gridIntervals), + dateFormats: copy2(dateFormats), + periodChangeDateFormats: copy2(periodChangeDateFormats), + tooltipDateFormats, + groupIntervals: [ + { timeUnit: "millisecond", count: 1 }, + { timeUnit: "millisecond", count: 10 }, + { timeUnit: "millisecond", count: 100 }, + { timeUnit: "second", count: 1 }, + { timeUnit: "second", count: 10 }, + { timeUnit: "minute", count: 1 }, + { timeUnit: "minute", count: 10 }, + { timeUnit: "hour", count: 1 }, + { timeUnit: "day", count: 1 }, + { timeUnit: "week", count: 1 }, + { timeUnit: "month", count: 1 }, + { timeUnit: "year", count: 1 } + ], + fillRule: (dataItem) => { + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + const axis = dataItem.component; + const value = dataItem.get("value"); + const endValue = dataItem.get("endValue"); + const intervalDuration = axis.intervalDuration(); + const baseInterval = axis.getPrivate("baseInterval"); + const gridInterval = axis.getPrivate("gridInterval", baseInterval); + let min2 = axis.getPrivate("min", 0); + min2 = round2(new Date(min2), gridInterval.timeUnit, gridInterval.count, this._root.locale.firstDayOfWeek, this._root.utc, void 0, this._root.timezone).getTime(); + if (value != null && endValue != null) { + const val = Math.round(Math.round((value - min2) / intervalDuration)) / 2; + if (val == Math.round(val)) { + axisFill.setPrivate("visible", true); + } else { + axisFill.setPrivate("visible", false); + } + } + } + } + }); + r("GaplessDateAxis").setAll({ + fillRule: (dataItem) => { + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + const index = dataItem.get("index"); + let visible = false; + if (!isNumber(index) || index % 2 == 0) { + visible = true; + } + axisFill.setPrivate("visible", visible); + } + } + }); + r("ValueAxis").setAll({ + baseValue: 0, + logarithmic: false, + strictMinMax: false, + autoZoom: true, + fillRule: (dataItem) => { + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + const axis = dataItem.component; + const value = dataItem.get("value"); + const step = axis.getPrivate("step"); + if (isNumber(value) && isNumber(step)) { + if (round(value / step / 2, 5) == Math.round(value / step / 2)) { + axisFill.setPrivate("visible", false); + } else { + axisFill.setPrivate("visible", true); + } + } + } + } + }); + r("DurationAxis").setAll({ + baseUnit: "second" + }); + r("XYSeries").setAll({ + maskBullets: true, + stackToNegative: true, + locationX: 0.5, + locationY: 0.5, + snapTooltip: false, + openValueXGrouped: "open", + openValueYGrouped: "open", + valueXGrouped: "close", + valueYGrouped: "close", + seriesTooltipTarget: "series" + }); + r("BaseColumnSeries").setAll({ + adjustBulletPosition: true + }); + r("ColumnSeries").setAll({ + clustered: true + }); + r("RoundedRectangle", ["series", "column"]).setAll({ + position: "absolute", + isMeasured: false, + width: percent(70), + height: percent(70), + strokeWidth: 1, + strokeOpacity: 1, + cornerRadiusBL: 0, + cornerRadiusTL: 0, + cornerRadiusBR: 0, + cornerRadiusTR: 0, + fillOpacity: 1, + role: "figure" + }); + r("LineSeries").setAll({ + connect: true, + autoGapCount: 1.1, + stackToNegative: false + }); + r("Graphics", ["series", "stroke"]).setAll({ + position: "absolute", + strokeWidth: 1, + strokeOpacity: 1, + isMeasured: false + }); + r("Graphics", ["series", "fill"]).setAll({ + visible: false, + fillOpacity: 0, + position: "absolute", + strokeWidth: 0, + strokeOpacity: 0, + isMeasured: false + }); + r("Graphics", ["line", "series", "legend", "marker", "stroke"]).setAll({ + draw: (display, sprite) => { + const parent = sprite.parent; + if (parent) { + const h = parent.height(); + const w = parent.width(); + display.moveTo(0, h / 2); + display.lineTo(w, h / 2); + } + } + }); + { + const rule = r("Graphics", ["line", "series", "legend", "marker", "stroke"]).states.create("disabled", {}); + setColor(rule, "stroke", ic, "disabled"); + } + r("Graphics", ["line", "series", "legend", "marker", "fill"]).setAll({ + draw: (display, sprite) => { + const parent = sprite.parent; + if (parent) { + const h = parent.height(); + const w = parent.width(); + display.moveTo(0, 0); + display.lineTo(w, 0); + display.lineTo(w, h); + display.lineTo(0, h); + display.lineTo(0, 0); + } + } + }); + { + const rule = r("Graphics", ["line", "series", "legend", "marker", "fill"]).states.create("disabled", {}); + setColor(rule, "stroke", ic, "disabled"); + } + r("SmoothedXYLineSeries").setAll({ + tension: 0.5 + }); + r("SmoothedXLineSeries").setAll({ + tension: 0.5 + }); + r("SmoothedYLineSeries").setAll({ + tension: 0.5 + }); + r("Candlestick").setAll({ + position: "absolute", + isMeasured: false, + width: percent(50), + height: percent(50), + strokeWidth: 1, + strokeOpacity: 1, + cornerRadiusBL: 0, + cornerRadiusTL: 0, + cornerRadiusBR: 0, + cornerRadiusTR: 0, + fillOpacity: 1, + role: "figure" + }); + r("OHLC").setAll({ + width: percent(80), + height: percent(80) + }); + r("CandlestickSeries").setAll({ + lowValueXGrouped: "low", + lowValueYGrouped: "low", + highValueXGrouped: "high", + highValueYGrouped: "high", + openValueXGrouped: "open", + openValueYGrouped: "open", + valueXGrouped: "close", + valueYGrouped: "close" + }); + { + const rule = r("Rectangle", ["column", "autocolor"]).states.create("riseFromOpen", {}); + setColor(rule, "fill", ic, "positive"); + setColor(rule, "stroke", ic, "positive"); + } + { + const rule = r("Rectangle", ["column", "autocolor"]).states.create("dropFromOpen", {}); + setColor(rule, "fill", ic, "negative"); + setColor(rule, "stroke", ic, "negative"); + } + r("Rectangle", ["column", "autocolor", "pro"]).states.create("riseFromOpen", { fillOpacity: 0 }); + r("Rectangle", ["column", "autocolor", "pro"]).states.create("dropFromOpen", { fillOpacity: 1 }); + { + const rule = r("Rectangle", ["column", "autocolor", "pro"]).states.create("riseFromPrevious", {}); + setColor(rule, "fill", ic, "positive"); + setColor(rule, "stroke", ic, "positive"); + } + { + const rule = r("Rectangle", ["column", "autocolor", "pro"]).states.create("dropFromPrevious", {}); + setColor(rule, "fill", ic, "negative"); + setColor(rule, "stroke", ic, "negative"); + } + { + const rule = r("RoundedRectangle", ["rangegrip"]); + rule.setAll({ + strokeOpacity: 0, + fillOpacity: 0, + strokeWidth: 1, + width: 12, + height: 12 + }); + } + { + const rule = r("Graphics", ["rangegrip", "button", "icon"]); + rule.setAll({ + interactive: false, + crisp: true, + strokeOpacity: 0.5, + draw: (display) => { + display.moveTo(0, 0.5); + display.lineTo(0, 12.5); + display.moveTo(2, 0.5); + display.lineTo(2, 12.5); + display.moveTo(4, 0.5); + display.lineTo(4, 12.5); + } + }); + setColor(rule, "stroke", ic, "secondaryButtonText"); + } + r("Button", ["rangegrip"]).setAll({ + draggable: true, + paddingTop: 0, + paddingBottom: 0 + }); + r("Button", ["rangegrip", "vertical"]).setAll({ + rotation: 90, + cursorOverStyle: "ns-resize", + centerX: p50 + }); + r("Button", ["rangegrip", "horizontal"]).setAll({ + cursorOverStyle: "ew-resize", + centerX: p50 + }); + r("Button", ["rangegrip", "vertical", "left"]).setAll({ + centerY: p100 + }); + r("Button", ["rangegrip", "vertical", "right"]).setAll({ + centerY: 0 + }); + r("Button", ["rangegrip", "horizontal", "top"]).setAll({ + centerY: 0 + }); + r("Button", ["rangegrip", "horizontal", "bottom"]).setAll({ + centerY: p100 + }); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/XYChart.js + var XYChart = class extends SerialChart { + constructor() { + super(...arguments); + this.xAxes = new ListAutoDispose(); + this.yAxes = new ListAutoDispose(); + this.topAxesContainer = this.chartContainer.children.push(Container.new(this._root, { width: p100, layout: this._root.verticalLayout })); + this.yAxesAndPlotContainer = this.chartContainer.children.push(Container.new(this._root, { width: p100, height: p100, layout: this._root.horizontalLayout })); + this.bottomAxesContainer = this.chartContainer.children.push(Container.new(this._root, { width: p100, layout: this._root.verticalLayout })); + this.leftAxesContainer = this.yAxesAndPlotContainer.children.push(Container.new(this._root, { height: p100, layout: this._root.horizontalLayout })); + this.plotsContainer = this.yAxesAndPlotContainer.children.push(Container.new(this._root, { width: p100, height: p100, maskContent: false })); + this.plotContainer = this.plotsContainer.children.push(Container.new(this._root, { width: p100, height: p100 })); + this.topPlotContainer = this.plotsContainer.children.push(Container.new(this._root, { width: p100, height: p100 })); + this.gridContainer = this.plotContainer.children.push(Container.new(this._root, { width: p100, height: p100, isMeasured: false })); + this.topGridContainer = Container.new(this._root, { width: p100, height: p100, isMeasured: false }); + this.rightAxesContainer = this.yAxesAndPlotContainer.children.push(Container.new(this._root, { height: p100, layout: this._root.horizontalLayout })); + this.axisHeadersContainer = this.plotContainer.children.push(Container.new(this._root, {})); + this.zoomOutButton = this.topPlotContainer.children.push(Button.new(this._root, { + themeTags: ["zoom"], + icon: Graphics.new(this._root, { + themeTags: ["button", "icon"] + }) + })); + this._movePoint = { x: 0, y: 0 }; + this._movePoints = {}; + } + _afterNew() { + this._defaultThemes.push(XYChartDefaultTheme.new(this._root)); + super._afterNew(); + this._disposers.push(this.xAxes); + this._disposers.push(this.yAxes); + const root2 = this._root; + let verticalLayout = this._root.verticalLayout; + const zoomOutButton = this.zoomOutButton; + zoomOutButton.events.on("click", () => { + this.zoomOut(); + }); + zoomOutButton.hide(0); + zoomOutButton.states.lookup("default").set("opacity", 1); + this.chartContainer.set("layout", verticalLayout); + const plotContainer = this.plotContainer; + plotContainer.children.push(this.seriesContainer); + this._disposers.push(this._processAxis(this.xAxes, this.bottomAxesContainer)); + this._disposers.push(this._processAxis(this.yAxes, this.leftAxesContainer)); + plotContainer.children.push(this.topGridContainer); + plotContainer.children.push(this.bulletsContainer); + plotContainer.set("interactive", true); + plotContainer.set("interactiveChildren", false); + plotContainer.set("background", Rectangle.new(root2, { + themeTags: ["plotbackground", "xy", "background"] + })); + this._disposers.push(plotContainer.events.on("pointerdown", (event) => { + this._handlePlotDown(event); + })); + this._disposers.push(plotContainer.events.on("globalpointerup", (event) => { + this._handlePlotUp(event); + })); + this._disposers.push(plotContainer.events.on("globalpointermove", (event) => { + this._handlePlotMove(event); + })); + this._maskGrid(); + this._setUpTouch(); + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("pinchZoomX") || this.isDirty("pinchZoomY") || this.get("panX") || this.get("panY")) { + this._setUpTouch(); + } + } + _setUpTouch() { + if (!this.plotContainer._display.cancelTouch) { + this.plotContainer._display.cancelTouch = this.get("pinchZoomX") || this.get("pinchZoomY") || this.get("panX") || this.get("panY") ? true : false; + } + } + _maskGrid() { + this.gridContainer.set("maskContent", true); + this.topGridContainer.set("maskContent", true); + } + _removeSeries(series) { + series._unstack(); + if (series._posXDp) { + series._posXDp.dispose(); + } + if (series._posYDp) { + series._posYDp.dispose(); + } + series.set("baseAxis", void 0); + const xAxis2 = series.get("xAxis"); + if (xAxis2) { + remove(xAxis2.series, series); + xAxis2.markDirtyExtremes(); + } + const yAxis2 = series.get("yAxis"); + if (yAxis2) { + remove(yAxis2.series, series); + yAxis2.markDirtyExtremes(); + } + const cursor = this.get("cursor"); + if (cursor) { + const snapToSeries = cursor.get("snapToSeries"); + if (snapToSeries) { + remove(snapToSeries, series); + } + } + super._removeSeries(series); + } + _applyThemes(force = false) { + const colors = this.get("colors"); + if (colors) { + colors.reset(); + } + const changed = super._applyThemes(force); + return changed; + } + /** + * This method is invoked when mouse wheel is used over chart's plot + * container, and handles zooming/pan. + * + * You can invoke this method manually, if you need to mimic chart's wheel + * behavior over other elements of the chart. + */ + handleWheel(event) { + const wheelX = this.get("wheelX"); + const wheelY = this.get("wheelY"); + const plotContainer = this.plotContainer; + const wheelEvent = event.originalEvent; + let prevent = false; + if (isLocalEvent(wheelEvent, this)) { + prevent = true; + } else { + return; + } + const plotPoint = plotContainer.toLocal(event.point); + const wheelStep = this.get("wheelStep", 0.2); + const shiftY = wheelEvent.deltaY / 100; + const shiftX = wheelEvent.deltaX / 100; + const wheelZoomPositionX = this.get("wheelZoomPositionX"); + const wheelZoomPositionY = this.get("wheelZoomPositionY"); + if ((wheelX === "zoomX" || wheelX === "zoomXY") && shiftX != 0) { + this.xAxes.each((axis) => { + if (axis.get("zoomX")) { + let start = axis.get("start"); + let end = axis.get("end"); + let position = axis.fixPosition(plotPoint.x / plotContainer.width()); + if (wheelZoomPositionX != null) { + position = wheelZoomPositionX; + } + let maxDeviation = axis.get("maxDeviation", 0); + let newStart = Math.min(1 + maxDeviation, Math.max(-maxDeviation, start - wheelStep * (end - start) * shiftX * position)); + let newEnd = Math.max(-maxDeviation, Math.min(1 + maxDeviation, end + wheelStep * (end - start) * shiftX * (1 - position))); + if (newStart == start && newEnd == end) { + prevent = false; + } + if (1 / (newEnd - newStart) < axis.getPrivate("maxZoomFactor", Infinity) / axis.get("minZoomCount", 1)) { + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } else { + prevent = false; + } + } + }); + } + if ((wheelY === "zoomX" || wheelY === "zoomXY") && shiftY != 0) { + this.xAxes.each((axis) => { + if (axis.get("zoomX")) { + let start = axis.get("start"); + let end = axis.get("end"); + let position = axis.fixPosition(plotPoint.x / plotContainer.width()); + if (wheelZoomPositionX != null) { + position = wheelZoomPositionX; + } + let maxDeviation = axis.get("maxDeviation", 0); + let newStart = Math.min(1 + maxDeviation, Math.max(-maxDeviation, start - wheelStep * (end - start) * shiftY * position)); + let newEnd = Math.max(-maxDeviation, Math.min(1 + maxDeviation, end + wheelStep * (end - start) * shiftY * (1 - position))); + if (newStart == start && newEnd == end) { + prevent = false; + } + if (1 / (newEnd - newStart) < axis.getPrivate("maxZoomFactor", Infinity) / axis.get("minZoomCount", 1)) { + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } else { + prevent = false; + } + } + }); + } + if ((wheelX === "zoomY" || wheelX === "zoomXY") && shiftX != 0) { + this.yAxes.each((axis) => { + if (axis.get("zoomY")) { + let start = axis.get("start"); + let end = axis.get("end"); + let position = axis.fixPosition(plotPoint.y / plotContainer.height()); + if (wheelZoomPositionY != null) { + position = wheelZoomPositionY; + } + let maxDeviation = axis.get("maxDeviation", 0); + let newStart = Math.min(1 + maxDeviation, Math.max(-maxDeviation, start - wheelStep * (end - start) * shiftX * position)); + let newEnd = Math.max(-maxDeviation, Math.min(1 + maxDeviation, end + wheelStep * (end - start) * shiftX * (1 - position))); + if (newStart == start && newEnd == end) { + prevent = false; + } + if (1 / (newEnd - newStart) < axis.getPrivate("maxZoomFactor", Infinity) / axis.get("minZoomCount", 1)) { + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } else { + prevent = false; + } + } + }); + } + if ((wheelY === "zoomY" || wheelY === "zoomXY") && shiftY != 0) { + this.yAxes.each((axis) => { + if (axis.get("zoomY")) { + let start = axis.get("start"); + let end = axis.get("end"); + let position = axis.fixPosition(plotPoint.y / plotContainer.height()); + if (wheelZoomPositionY != null) { + position = wheelZoomPositionY; + } + let maxDeviation = axis.get("maxDeviation", 0); + let newStart = Math.min(1 + maxDeviation, Math.max(-maxDeviation, start - wheelStep * (end - start) * shiftY * position)); + let newEnd = Math.max(-maxDeviation, Math.min(1 + maxDeviation, end + wheelStep * (end - start) * shiftY * (1 - position))); + if (newStart == start && newEnd == end) { + prevent = false; + } + if (1 / (newEnd - newStart) < axis.getPrivate("maxZoomFactor", Infinity) / axis.get("minZoomCount", 1)) { + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } else { + prevent = false; + } + } + }); + } + if ((wheelX === "panX" || wheelX === "panXY") && shiftX != 0) { + this.xAxes.each((axis) => { + if (axis.get("panX")) { + let start = axis.get("start"); + let end = axis.get("end"); + let delta = this._getWheelSign(axis) * wheelStep * (end - start) * shiftX; + let newStart = start + delta; + let newEnd = end + delta; + let se = this._fixWheel(newStart, newEnd); + newStart = se[0]; + newEnd = se[1]; + if (newStart == start && newEnd == end) { + prevent = false; + } + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } + }); + } + if ((wheelY === "panX" || wheelY === "panXY") && shiftY != 0) { + this.xAxes.each((axis) => { + if (axis.get("panX")) { + let start = axis.get("start"); + let end = axis.get("end"); + let delta = this._getWheelSign(axis) * wheelStep * (end - start) * shiftY; + let newStart = start + delta; + let newEnd = end + delta; + let se = this._fixWheel(newStart, newEnd); + newStart = se[0]; + newEnd = se[1]; + if (newStart == start && newEnd == end) { + prevent = false; + } + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } + }); + } + if ((wheelX === "panY" || wheelX === "panXY") && shiftX != 0) { + this.yAxes.each((axis) => { + if (axis.get("panY")) { + let start = axis.get("start"); + let end = axis.get("end"); + let delta = this._getWheelSign(axis) * wheelStep * (end - start) * shiftX; + let newStart = start + delta; + let newEnd = end + delta; + let se = this._fixWheel(newStart, newEnd); + newStart = se[0]; + newEnd = se[1]; + if (newStart == start && newEnd == end) { + prevent = false; + } + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } + }); + } + if ((wheelY === "panY" || wheelY === "panXY") && shiftY != 0) { + this.yAxes.each((axis) => { + if (axis.get("panY")) { + let start = axis.get("start"); + let end = axis.get("end"); + let delta = this._getWheelSign(axis) * wheelStep * (end - start) * shiftY; + let newStart = start - delta; + let newEnd = end - delta; + let se = this._fixWheel(newStart, newEnd); + newStart = se[0]; + newEnd = se[1]; + if (newStart == start && newEnd == end) { + prevent = false; + } + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } + }); + } + if (prevent) { + wheelEvent.preventDefault(); + } + } + _handleSetWheel() { + const wheelX = this.get("wheelX"); + const wheelY = this.get("wheelY"); + const plotContainer = this.plotContainer; + if (wheelX !== "none" || wheelY !== "none") { + this._wheelDp = plotContainer.events.on("wheel", (event) => { + const wheelEvent = event.originalEvent; + if (wheelX !== "none" && Math.abs(wheelEvent.deltaX) != 0 || wheelY !== "none" && Math.abs(wheelEvent.deltaY) != 0) { + this.handleWheel(event); + } + }); + this._disposers.push(this._wheelDp); + } else { + if (this._wheelDp) { + this._wheelDp.dispose(); + } + } + } + _getWheelSign(axis) { + let sign = 1; + if (axis.get("renderer").get("inversed")) { + sign = -1; + } + return sign; + } + _fixWheel(start, end) { + const diff = end - start; + if (start < 0) { + start = 0; + end = start + diff; + } + if (end > 1) { + end = 1; + start = end - diff; + } + return [start, end]; + } + _handlePlotDown(event) { + const originalEvent = event.originalEvent; + if (originalEvent.button == 2) { + return; + } + const plotContainer = this.plotContainer; + let local = plotContainer.toLocal(event.point); + if (this.get("pinchZoomX") || this.get("pinchZoomY")) { + const pointerId = originalEvent.pointerId; + if (pointerId) { + if (keys(plotContainer._downPoints).length > 0) { + const xAxis2 = this.xAxes.getIndex(0); + const yAxis2 = this.yAxes.getIndex(0); + if (xAxis2) { + this._downStartX = xAxis2.get("start", 0); + this._downEndX = xAxis2.get("end", 1); + } + if (yAxis2) { + this._downStartY = yAxis2.get("start", 0); + this._downEndY = yAxis2.get("end", 1); + } + } + } + } + if (this.get("panX") || this.get("panY")) { + if (local.x >= 0 && local.y >= 0 && local.x <= plotContainer.width() && local.y <= this.height()) { + this._downPoint = { x: originalEvent.clientX, y: originalEvent.clientY }; + const panX = this.get("panX"); + const panY = this.get("panY"); + if (panX) { + this.xAxes.each((axis) => { + axis._panStart = axis.get("start"); + axis._panEnd = axis.get("end"); + }); + } + if (panY) { + this.yAxes.each((axis) => { + axis._panStart = axis.get("start"); + axis._panEnd = axis.get("end"); + }); + } + const eventType = "panstarted"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this, originalEvent: event.originalEvent }); + } + } + } + } + _handleWheelAnimation(animation) { + if (animation) { + animation.events.on("stopped", () => { + this._dispatchWheelAnimation(); + }); + } else { + this._dispatchWheelAnimation(); + } + } + _dispatchWheelAnimation() { + const eventType = "wheelended"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this }); + } + } + _handlePlotUp(event) { + const downPoint = this._downPoint; + if (downPoint) { + if (this.get("panX") || this.get("panY")) { + if (event.originalEvent.clientX == downPoint.x && event.originalEvent.clientY == downPoint.y) { + const eventType2 = "pancancelled"; + if (this.events.isEnabled(eventType2)) { + this.events.dispatch(eventType2, { type: eventType2, target: this, originalEvent: event.originalEvent }); + } + } + const eventType = "panended"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this, originalEvent: event.originalEvent }); + } + } + } + this._downPoint = void 0; + this.xAxes.each((xAxis2) => { + xAxis2._isPanning = false; + }); + this.yAxes.each((yAxis2) => { + yAxis2._isPanning = false; + }); + } + _handlePlotMove(event) { + const plotContainer = this.plotContainer; + if (this.get("pinchZoomX") || this.get("pinchZoomY")) { + const touchEvent = event.originalEvent; + const pointerId = touchEvent.pointerId; + if (pointerId) { + this._movePoints[pointerId] = event.point; + if (keys(plotContainer._downPoints).length > 1) { + this._handlePinch(); + return; + } + } + } + let downPoint = this._downPoint; + if (downPoint) { + downPoint = plotContainer.toLocal(this._root.documentPointToRoot(downPoint)); + let local = plotContainer.toLocal(event.point); + const panX = this.get("panX"); + const panY = this.get("panY"); + if (panX) { + let scrollbarX = this.get("scrollbarX"); + if (scrollbarX) { + scrollbarX.events.disableType("rangechanged"); + } + this.xAxes.each((axis) => { + if (axis.get("panX")) { + axis._isPanning = true; + let panStart = axis._panStart; + let panEnd = axis._panEnd; + let difference = panEnd - panStart; + let deltaX = difference * (downPoint.x - local.x) / plotContainer.width(); + if (axis.get("renderer").get("inversed")) { + deltaX *= -1; + } + let start = panStart + deltaX; + let end = panEnd + deltaX; + if (end - start < 1 + axis.get("maxDeviation", 1) * 2) { + axis.set("start", start); + axis.set("end", end); + } + } + }); + if (scrollbarX) { + scrollbarX.events.enableType("rangechanged"); + } + } + if (panY) { + let scrollbarY = this.get("scrollbarY"); + if (scrollbarY) { + scrollbarY.events.disableType("rangechanged"); + } + this.yAxes.each((axis) => { + if (axis.get("panY")) { + axis._isPanning = true; + let panStart = axis._panStart; + let panEnd = axis._panEnd; + let difference = panEnd - panStart; + let deltaY = difference * (downPoint.y - local.y) / plotContainer.height(); + if (axis.get("renderer").get("inversed")) { + deltaY *= -1; + } + let start = panStart - deltaY; + let end = panEnd - deltaY; + if (end - start < 1 + axis.get("maxDeviation", 1) * 2) { + axis.set("start", start); + axis.set("end", end); + } + } + }); + if (scrollbarY) { + scrollbarY.events.enableType("rangechanged"); + } + } + } + } + _handlePinch() { + const plotContainer = this.plotContainer; + let i = 0; + let downPoints = []; + let movePoints = []; + each2(plotContainer._downPoints, (k, point) => { + downPoints[i] = point; + let movePoint = this._movePoints[k]; + if (movePoint) { + movePoints[i] = movePoint; + } + i++; + }); + if (downPoints.length > 1 && movePoints.length > 1) { + const w = plotContainer.width(); + const h = plotContainer.height(); + let downPoint0 = downPoints[0]; + let downPoint1 = downPoints[1]; + let movePoint0 = movePoints[0]; + let movePoint1 = movePoints[1]; + if (downPoint0 && downPoint1 && movePoint0 && movePoint1) { + movePoint0 = plotContainer.toLocal(movePoint0); + movePoint1 = plotContainer.toLocal(movePoint1); + downPoint0 = plotContainer.toLocal(downPoint0); + downPoint1 = plotContainer.toLocal(downPoint1); + if (this.get("pinchZoomX")) { + const downStartX = this._downStartX; + const downEndX = this._downEndX; + if (downStartX != null && downEndX != null) { + if (downPoint0.x > downPoint1.x) { + [downPoint0, downPoint1] = [downPoint1, downPoint0]; + [movePoint0, movePoint1] = [movePoint1, movePoint0]; + } + let downPos0 = downStartX + downPoint0.x / w * (downEndX - downStartX); + let downPos1 = downStartX + downPoint1.x / w * (downEndX - downStartX); + let movePos0 = downStartX + movePoint0.x / w * (downEndX - downStartX); + let movePos1 = downStartX + movePoint1.x / w * (downEndX - downStartX); + let initialDistance = Math.max(1e-3, downPos1 - downPos0); + let currentDistance = Math.max(1e-3, movePos1 - movePos0); + let d = initialDistance / currentDistance; + let s2 = downStartX * d + downPos0 - movePos0 * d; + let e = downEndX * d + downPos1 - movePos1 * d; + this.xAxes.each((xAxis2) => { + let sa = xAxis2.fixPosition(s2); + let ea = xAxis2.fixPosition(e); + xAxis2.zoom(sa, ea, 0); + }); + } + } + if (this.get("pinchZoomY")) { + const downStartY = this._downStartY; + const downEndY = this._downEndY; + if (downStartY != null && downEndY != null) { + if (downPoint0.y < downPoint1.y) { + [downPoint0, downPoint1] = [downPoint1, downPoint0]; + [movePoint0, movePoint1] = [movePoint1, movePoint0]; + } + let downPos0 = downStartY + (1 - downPoint0.y / h) * (downEndY - downStartY); + let downPos1 = downStartY + (1 - downPoint1.y / h) * (downEndY - downStartY); + let movePos0 = downStartY + (1 - movePoint0.y / h) * (downEndY - downStartY); + let movePos1 = downStartY + (1 - movePoint1.y / h) * (downEndY - downStartY); + let initialDistance = Math.max(1e-3, downPos1 - downPos0); + let currentDistance = Math.max(1e-3, movePos1 - movePos0); + let d = initialDistance / currentDistance; + let s2 = downStartY * d + downPos0 - movePos0 * d; + let e = downEndY * d + downPos1 - movePos1 * d; + this.yAxes.each((yAxis2) => { + let sa = yAxis2.fixPosition(s2); + let ea = yAxis2.fixPosition(e); + yAxis2.zoom(sa, ea, 0); + }); + } + } + } + } + } + _handleCursorPosition() { + const cursor = this.get("cursor"); + if (cursor) { + const cursorPoint = cursor.getPrivate("point"); + let snapToSeries = cursor.get("snapToSeries"); + if (cursor._downPoint) { + snapToSeries = void 0; + } + if (snapToSeries && cursorPoint) { + const snapToSeriesBy = cursor.get("snapToSeriesBy"); + const dataItems = []; + each(snapToSeries, (series) => { + if (!series.isHidden() && !series.isHiding()) { + if (snapToSeriesBy != "x!" && snapToSeriesBy != "y!") { + const startIndex = series.startIndex(); + const endIndex = series.endIndex(); + for (let i = startIndex; i < endIndex; i++) { + const dataItem = series.dataItems[i]; + if (dataItem && !dataItem.isHidden()) { + dataItems.push(dataItem); + } + } + } else { + const tooltipDataItem = series.get("tooltipDataItem"); + if (tooltipDataItem) { + dataItems.push(tooltipDataItem); + } + } + } + }); + let minDistance = Infinity; + let closestItem; + each(dataItems, (dataItem) => { + const point = dataItem.get("point"); + if (point) { + let distance = 0; + if (snapToSeriesBy == "x" || snapToSeriesBy == "x!") { + distance = Math.abs(cursorPoint.x - point.x); + } else if (snapToSeriesBy == "y" || snapToSeriesBy == "y!") { + distance = Math.abs(cursorPoint.y - point.y); + } else { + distance = Math.hypot(cursorPoint.x - point.x, cursorPoint.y - point.y); + } + if (distance < minDistance) { + minDistance = distance; + closestItem = dataItem; + } + } + }); + each(snapToSeries, (series) => { + const tooltip = series.get("tooltip"); + if (tooltip) { + tooltip._setDataItem(void 0); + } + }); + if (closestItem) { + let series = closestItem.component; + series.showDataItemTooltip(closestItem); + series.setRaw("tooltipDataItem", closestItem); + const point = closestItem.get("point"); + if (point) { + cursor.handleMove(series.toGlobal({ x: point.x - series.x(), y: point.y - series.y() }), true); + } + } + } + } + } + _updateCursor() { + let cursor = this.get("cursor"); + if (cursor) { + cursor.updateCursor(); + } + } + _addCursor(cursor) { + this.plotContainer.children.push(cursor); + } + _prepareChildren() { + super._prepareChildren(); + this.series.each((series) => { + this._colorize(series); + }); + if (this.isDirty("wheelX") || this.isDirty("wheelY")) { + this._handleSetWheel(); + } + if (this.isDirty("cursor")) { + const previous = this._prevSettings.cursor; + const cursor = this.get("cursor"); + if (cursor !== previous) { + this._disposeProperty("cursor"); + if (previous) { + previous.dispose(); + } + if (cursor) { + cursor._setChart(this); + this._addCursor(cursor); + this._pushPropertyDisposer("cursor", cursor.events.on("selectended", () => { + this._handleCursorSelectEnd(); + })); + } + this._prevSettings.cursor = cursor; + } + } + if (this.isDirty("scrollbarX")) { + const previous = this._prevSettings.scrollbarX; + const scrollbarX = this.get("scrollbarX"); + if (scrollbarX !== previous) { + this._disposeProperty("scrollbarX"); + if (previous) { + previous.dispose(); + } + if (scrollbarX) { + if (!scrollbarX.parent) { + this.topAxesContainer.children.push(scrollbarX); + } + this._pushPropertyDisposer("scrollbarX", scrollbarX.events.on("rangechanged", (e) => { + this._handleScrollbar(this.xAxes, e.start, e.end, e.grip); + })); + this._pushPropertyDisposer("scrollbarX", scrollbarX.events.on("released", () => { + this.xAxes.each((axis) => { + if (axis.get("zoomable")) { + this._handleAxisSelection(axis); + } + }); + })); + scrollbarX.setPrivate("positionTextFunction", (position) => { + const axis = this.xAxes.getIndex(0); + return axis ? axis.getTooltipText(position, false) || "" : ""; + }); + } + this._prevSettings.scrollbarX = scrollbarX; + } + } + if (this.isDirty("scrollbarY")) { + const previous = this._prevSettings.scrollbarY; + const scrollbarY = this.get("scrollbarY"); + if (scrollbarY !== previous) { + this._disposeProperty("scrollbarY"); + if (previous) { + previous.dispose(); + } + if (scrollbarY) { + if (!scrollbarY.parent) { + this.rightAxesContainer.children.push(scrollbarY); + } + this._pushPropertyDisposer("scrollbarY", scrollbarY.events.on("rangechanged", (e) => { + this._handleScrollbar(this.yAxes, e.start, e.end, e.grip); + })); + this._pushPropertyDisposer("scrollbarY", scrollbarY.events.on("released", () => { + this.yAxes.each((axis) => { + if (axis.get("zoomable")) { + this._handleAxisSelection(axis); + } + }); + })); + scrollbarY.setPrivate("positionTextFunction", (position) => { + const axis = this.yAxes.getIndex(0); + return axis ? axis.getTooltipText(position, false) || "" : ""; + }); + } + this._prevSettings.scrollbarY = scrollbarY; + } + } + this._handleZoomOut(); + } + _processSeries(series) { + super._processSeries(series); + const xAxis2 = series.get("xAxis"); + const yAxis2 = series.get("yAxis"); + move(xAxis2.series, series); + move(yAxis2.series, series); + series._posXDp = series.addDisposer(xAxis2.events.on("positionchanged", () => { + series._fixPosition(); + })); + series._posXDp = series.addDisposer(yAxis2.events.on("positionchanged", () => { + series._fixPosition(); + })); + if (!series.get("baseAxis")) { + if (yAxis2.isType("CategoryAxis") || yAxis2.isType("DateAxis")) { + series.set("baseAxis", yAxis2); + } else { + series.set("baseAxis", xAxis2); + } + } + if (series.get("stacked")) { + series._markDirtyKey("stacked"); + each(series.dataItems, (dataItem) => { + dataItem.set("stackToItemY", void 0); + dataItem.set("stackToItemX", void 0); + }); + } + series._markDirtyAxes(); + yAxis2.markDirtyExtremes(); + xAxis2.markDirtyExtremes(); + xAxis2._seriesAdded = true; + yAxis2._seriesAdded = true; + this._colorize(series); + } + _colorize(series) { + const colorSet = this.get("colors"); + if (colorSet) { + if (series.get("fill") == null) { + const color2 = colorSet.next(); + series._setSoft("stroke", color2); + series._setSoft("fill", color2); + } + } + const patternSet = this.get("patterns"); + if (patternSet) { + if (series.get("fillPattern") == null) { + const pattern = patternSet.next(); + series._setSoft("fillPattern", pattern); + } + } + } + _handleCursorSelectEnd() { + const cursor = this.get("cursor"); + const behavior = cursor.get("behavior"); + const downPositionX = cursor.getPrivate("downPositionX", 0); + const downPositionY = cursor.getPrivate("downPositionY", 0); + const positionX = Math.min(1, Math.max(0, cursor.getPrivate("positionX", 0.5))); + const positionY = Math.min(1, Math.max(0, cursor.getPrivate("positionY", 0.5))); + this.xAxes.each((axis) => { + if (behavior === "zoomX" || behavior === "zoomXY") { + let position0 = axis.toAxisPosition(downPositionX); + let position1 = axis.toAxisPosition(positionX); + axis.zoom(position0, position1); + } + axis.setPrivate("updateScrollbar", true); + }); + this.yAxes.each((axis) => { + if (behavior === "zoomY" || behavior === "zoomXY") { + let position0 = axis.toAxisPosition(downPositionY); + let position1 = axis.toAxisPosition(positionY); + axis.zoom(position0, position1); + } + axis.setPrivate("updateScrollbar", true); + }); + } + _handleScrollbar(axes, start, end, priority) { + axes.each((axis) => { + let axisStart = axis.fixPosition(start); + let axisEnd = axis.fixPosition(end); + let zoomAnimation = axis.zoom(axisStart, axisEnd, void 0, priority); + const updateScrollbar = "updateScrollbar"; + axis.setPrivateRaw(updateScrollbar, false); + if (zoomAnimation) { + zoomAnimation.events.on("stopped", () => { + axis.setPrivateRaw(updateScrollbar, true); + }); + } else { + axis.setPrivateRaw(updateScrollbar, true); + } + }); + } + _processAxis(axes, container) { + return axes.events.onAll((change) => { + if (change.type === "clear") { + each(change.oldValues, (axis) => { + this._removeAxis(axis); + }); + } else if (change.type === "push") { + container.children.push(change.newValue); + change.newValue.processChart(this); + } else if (change.type === "setIndex") { + container.children.setIndex(change.index, change.newValue); + change.newValue.processChart(this); + } else if (change.type === "insertIndex") { + container.children.insertIndex(change.index, change.newValue); + change.newValue.processChart(this); + } else if (change.type === "removeIndex") { + this._removeAxis(change.oldValue); + } else if (change.type === "moveIndex") { + container.children.moveValue(change.value, change.newIndex); + change.value.processChart(this); + } else { + throw new Error("Unknown IListEvent type"); + } + }); + } + _removeAxis(axis) { + if (!axis.isDisposed()) { + const axisParent = axis.parent; + if (axisParent) { + axisParent.children.removeValue(axis); + } + const gridContainer = axis.gridContainer; + const gridParent = gridContainer.parent; + if (gridParent) { + gridParent.children.removeValue(gridContainer); + } + const topGridContainer = axis.topGridContainer; + const topGridParent = topGridContainer.parent; + if (topGridParent) { + topGridParent.children.removeValue(topGridContainer); + } + } + } + _updateChartLayout() { + const left = this.leftAxesContainer.width(); + const right = this.rightAxesContainer.width(); + const bottomAxesContainer = this.bottomAxesContainer; + bottomAxesContainer.set("paddingLeft", left); + bottomAxesContainer.set("paddingRight", right); + const topAxesContainer = this.topAxesContainer; + topAxesContainer.set("paddingLeft", left); + topAxesContainer.set("paddingRight", right); + } + /** + * @ignore + */ + processAxis(axis) { + var cursor = this.get("cursor"); + if (cursor) { + this.addDisposer(axis.on("start", () => { + this._updateCursor(); + })); + this.addDisposer(axis.on("end", () => { + this._updateCursor(); + })); + } + } + _handleAxisSelection(axis, force) { + let start = axis.fixPosition(axis.get("start", 0)); + let end = axis.fixPosition(axis.get("end", 1)); + if (start > end) { + [start, end] = [end, start]; + } + if (this.xAxes.indexOf(axis) != -1) { + if (force || axis.getPrivate("updateScrollbar")) { + let scrollbarX = this.get("scrollbarX"); + if (scrollbarX && (!scrollbarX.getPrivate("isBusy") || force)) { + scrollbarX.setRaw("start", start); + scrollbarX.setRaw("end", end); + scrollbarX.updateGrips(); + } + } + } else if (this.yAxes.indexOf(axis) != -1) { + if (force || axis.getPrivate("updateScrollbar")) { + let scrollbarY = this.get("scrollbarY"); + if (scrollbarY && (!scrollbarY.getPrivate("isBusy") || force)) { + scrollbarY.setRaw("start", start); + scrollbarY.setRaw("end", end); + scrollbarY.updateGrips(); + } + } + } + this._handleZoomOut(); + } + _handleZoomOut() { + let zoomOutButton = this.zoomOutButton; + if (zoomOutButton && zoomOutButton.parent) { + let visible = false; + this.xAxes.each((axis) => { + if (axis.get("zoomOut", true)) { + if (round(axis.get("start", 0), 5) != 0 || round(axis.get("end", 1), 5) != 1) { + visible = true; + } + } + }); + this.yAxes.each((axis) => { + if (axis.get("zoomOut", true)) { + if (round(axis.get("start", 0), 5) != 0 || round(axis.get("end", 1), 5) != 1) { + visible = true; + } + } + }); + if (visible) { + if (zoomOutButton.isHidden()) { + zoomOutButton.show(); + } + } else { + zoomOutButton.hide(); + } + } + } + /** + * Checks if point is within plot area. + * + * @param point Reference point + * @return Is within plot area? + */ + inPlot(point) { + const plotContainer = this.plotContainer; + const otherCharts = this.getPrivate("otherCharts", this._otherCharts); + const global = plotContainer.toGlobal(point); + if (point.x >= -0.5 && point.y >= -0.5 && point.x <= plotContainer.width() + 0.5 && point.y <= plotContainer.height() + 0.5) { + return true; + } + if (otherCharts) { + for (let i = otherCharts.length - 1; i >= 0; i--) { + const chart2 = otherCharts[i]; + if (chart2 != this) { + const chartPlotContainer = chart2.plotContainer; + const documentPoint = this._root.rootPointToDocument(global); + const chartRoot = chart2._root.documentPointToRoot(documentPoint); + const local = chartPlotContainer.toLocal(chartRoot); + if (local.x >= -0.1 && local.y >= -0.1 && local.x <= chartPlotContainer.width() + 0.1 && local.y <= chartPlotContainer.height() + 0.1) { + return true; + } + } + } + } + return false; + } + /** + * @ignore + */ + arrangeTooltips() { + const plotContainer = this.plotContainer; + const w = plotContainer.width(); + const h = plotContainer.height(); + let hh = this.height(); + const bounds = this._root.tooltipContainer.get("layerMargin"); + if (bounds) { + if (bounds.bottom > hh) { + hh = bounds.bottom; + } + } + let plotT = plotContainer._display.toGlobal({ x: 0, y: 0 }); + let plotB = plotContainer._display.toGlobal({ x: w, y: h }); + const tooltips = []; + let sum = 0; + let minDistance = Infinity; + let movePoint = this._movePoint; + let maxTooltipDistance = this.get("maxTooltipDistance"); + let maxTooltipDistanceBy = this.get("maxTooltipDistanceBy", "xy"); + let closest; + let closestPoint; + if (isNumber(maxTooltipDistance)) { + this.series.each((series) => { + if (!series.isHidden()) { + const tooltip = series.get("tooltip"); + if (tooltip) { + let point = tooltip.get("pointTo"); + if (point) { + let distance = Math.hypot(movePoint.x - point.x, movePoint.y - point.y); + if (maxTooltipDistanceBy == "x") { + distance = Math.abs(movePoint.x - point.x); + } else if (maxTooltipDistanceBy == "y") { + distance = Math.abs(movePoint.y - point.y); + } + if (distance < minDistance) { + minDistance = distance; + closest = series; + closestPoint = point; + } + } + } + } + }); + } + const tooltipSeries = []; + this.series.each((series) => { + const tooltip = series.get("tooltip"); + if (tooltip && !tooltip.get("forceHidden")) { + let hidden = false; + let point = tooltip.get("pointTo"); + if (point) { + if (maxTooltipDistance >= 0) { + let point2 = tooltip.get("pointTo"); + if (point2 && closestPoint) { + if (series != closest) { + let distance = Math.hypot(closestPoint.x - point2.x, closestPoint.y - point2.y); + if (maxTooltipDistanceBy == "x") { + distance = Math.abs(closestPoint.x - point2.x); + } else if (maxTooltipDistanceBy == "y") { + distance = Math.abs(closestPoint.y - point2.y); + } + if (distance > maxTooltipDistance) { + hidden = true; + } + } + } + } else if (maxTooltipDistance == -1) { + if (series != closest) { + hidden = true; + } + } + if (!this.inPlot(this._tooltipToLocal(point)) || !tooltip.dataItem) { + hidden = true; + } else { + if (!hidden) { + sum += point.y; + } + } + if (hidden || series.isHidden() || series.isHiding()) { + tooltip.hide(0); + } else { + tooltip.show(); + tooltips.push(tooltip); + tooltipSeries.push(series); + } + } + } + }); + this.setPrivate("tooltipSeries", tooltipSeries); + if (this.get("arrangeTooltips")) { + let totalTooltipH = 0; + let tooltipCount = 0; + const tooltipContainer = this._root.tooltipContainer; + const count = tooltips.length; + const average = sum / count; + if (average > h / 2 + plotT.y) { + tooltips.sort((a, b) => compareNumber(b.get("pointTo").y, a.get("pointTo").y)); + let prevY = plotB.y; + each(tooltips, (tooltip) => { + let height = tooltip.height(); + tooltipCount++; + totalTooltipH += height; + let centerY = tooltip.get("centerY"); + if (centerY instanceof Percent) { + height *= centerY.value; + } + height += tooltip.get("marginBottom", 0); + tooltip.set("bounds", { left: plotT.x, top: plotT.y, right: plotB.x, bottom: prevY }); + tooltip.setPrivate("customData", { left: plotT.x, top: plotT.y, right: plotB.x, bottom: prevY }); + prevY = Math.min(prevY - height, tooltip._fy - height); + if (tooltip.parent == tooltipContainer) { + tooltipContainer.children.moveValue(tooltip, 0); + } + }); + if (prevY < 0) { + tooltips.reverse(); + let prevBottom = prevY; + each(tooltips, (tooltip) => { + tooltipCount++; + let bounds2 = tooltip.get("bounds"); + if (bounds2) { + let top = bounds2.top - prevY; + let bottom = bounds2.bottom - prevY; + if (top < prevBottom) { + top = prevBottom; + bottom = top + tooltip.height(); + } + tooltip.set("bounds", { left: bounds2.left, top, right: bounds2.right, bottom }); + prevBottom = bounds2.bottom - prevY + tooltip.get("marginBottom", 0); + } + }); + } + } else { + tooltips.reverse(); + tooltips.sort((a, b) => compareNumber(a.get("pointTo").y, b.get("pointTo").y)); + let prevY = 0; + each(tooltips, (tooltip) => { + tooltipCount++; + let height = tooltip.height(); + totalTooltipH += height; + let centerY = tooltip.get("centerY"); + if (centerY instanceof Percent) { + height *= centerY.value; + } + height += tooltip.get("marginBottom", 0); + tooltip.set("bounds", { left: plotT.x, top: prevY, right: plotB.x, bottom: Math.max(plotT.y + hh, prevY + height) }); + if (tooltip.parent == tooltipContainer) { + tooltipContainer.children.moveValue(tooltip, 0); + } + prevY = Math.max(prevY + height, tooltip._fy + height); + }); + if (prevY > hh) { + tooltips.reverse(); + let prevBottom = hh; + each(tooltips, (tooltip) => { + tooltipCount++; + let bounds2 = tooltip.get("bounds"); + if (bounds2) { + let top = bounds2.top - (hh - prevY); + let bottom = bounds2.bottom - (hh - prevY); + if (bottom > prevBottom) { + bottom = prevBottom; + top = bottom - tooltip.height(); + } + tooltip.set("bounds", { left: bounds2.left, top, right: bounds2.right, bottom }); + prevBottom = bottom - tooltip.height() - tooltip.get("marginBottom", 0); + } + }); + } + } + if (totalTooltipH == 0 && tooltipCount > 0) { + this._disposers.push(this.root.events.once("frameended", () => { + this.arrangeTooltips(); + })); + } + } + } + _tooltipToLocal(point) { + return this.plotContainer.toLocal(point); + } + /** + * Fully zooms out the chart. + */ + zoomOut() { + this.xAxes.each((axis) => { + if (axis.get("zoomOut", true)) { + axis.setPrivate("updateScrollbar", true); + axis.zoom(0, 1); + } + }); + this.yAxes.each((axis) => { + if (axis.get("zoomOut", true)) { + axis.setPrivate("updateScrollbar", true); + axis.zoom(0, 1); + } + }); + } + _dispose() { + super._dispose(); + const cursor = this.get("cursor"); + if (cursor) { + cursor.dispose(); + } + } + }; + XYChart.className = "XYChart"; + XYChart.classNames = SerialChart.classNames.concat([XYChart.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/Grid.js + var Grid = class extends Graphics { + _beforeChanged() { + super._beforeChanged(); + if (this.isPrivateDirty("width") || this.isPrivateDirty("height")) { + this._clear = true; + } + } + }; + Grid.className = "Grid"; + Grid.classNames = Graphics.classNames.concat([Grid.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/series/XYSeries.js + function min(left, right) { + if (left == null) + return right; + if (right == null) + return left; + return right < left ? right : left; + } + function max(left, right) { + if (left == null) + return right; + if (right == null) + return left; + return left > right ? left : right; + } + var XYSeries = class extends Series { + constructor() { + super(...arguments); + this._axesDirty = false; + this._stackDirty = false; + this._selectionProcessed = false; + this._dataSets = {}; + this._x = 0; + this._y = 0; + this._bullets = {}; + this.mainContainer = this.children.push(Container.new(this._root, {})); + this.axisRanges = new List(); + this._skipped = false; + this._couldStackTo = []; + this._reallyStackedTo = {}; + this._stackedSeries = {}; + this._aLocationX0 = 0; + this._aLocationX1 = 1; + this._aLocationY0 = 0; + this._aLocationY1 = 1; + this._showBullets = true; + this.valueXFields = [ + "valueX", + "openValueX", + "lowValueX", + "highValueX" + ]; + this.valueYFields = [ + "valueY", + "openValueY", + "lowValueY", + "highValueY" + ]; + this._emptyDataItem = new DataItem(this, void 0, {}); + } + _afterNew() { + this.fields.push("categoryX", "categoryY", "openCategoryX", "openCategoryY"); + this.valueFields.push("valueX", "valueY", "openValueX", "openValueY", "lowValueX", "lowValueY", "highValueX", "highValueY"); + this._setRawDefault("vcx", 1); + this._setRawDefault("vcy", 1); + this._setRawDefault("valueXShow", "valueXWorking"); + this._setRawDefault("valueYShow", "valueYWorking"); + this._setRawDefault("openValueXShow", "openValueXWorking"); + this._setRawDefault("openValueYShow", "openValueYWorking"); + this._setRawDefault("lowValueXShow", "lowValueXWorking"); + this._setRawDefault("lowValueYShow", "lowValueYWorking"); + this._setRawDefault("highValueXShow", "highValueXWorking"); + this._setRawDefault("highValueYShow", "highValueYWorking"); + this._setRawDefault("lowValueXGrouped", "low"); + this._setRawDefault("lowValueYGrouped", "low"); + this._setRawDefault("highValueXGrouped", "high"); + this._setRawDefault("highValueYGrouped", "high"); + const xAxis2 = this.get("xAxis"); + if (xAxis2) { + this._xRenderer = xAxis2.get("renderer"); + } + const yAxis2 = this.get("yAxis"); + if (yAxis2) { + this._yRenderer = yAxis2.get("renderer"); + } + super._afterNew(); + this.set("maskContent", true); + this._disposers.push(this.axisRanges.events.onAll((change) => { + if (change.type === "clear") { + each(change.oldValues, (axisRange) => { + this._removeAxisRange(axisRange); + }); + } else if (change.type === "push") { + this._processAxisRange(change.newValue); + } else if (change.type === "setIndex") { + this._processAxisRange(change.newValue); + } else if (change.type === "insertIndex") { + this._processAxisRange(change.newValue); + } else if (change.type === "removeIndex") { + this._removeAxisRange(change.oldValue); + } else if (change.type === "moveIndex") { + this._processAxisRange(change.value); + } else { + throw new Error("Unknown IStreamEvent type"); + } + })); + this.states.create("hidden", { opacity: 1, visible: false }); + this.onPrivate("startIndex", () => { + this.root.events.once("frameended", () => { + this.updateLegendValue(); + }); + }); + this.onPrivate("endIndex", () => { + this.root.events.once("frameended", () => { + this.updateLegendValue(); + }); + }); + this._makeFieldNames(); + } + _processAxisRange(axisRange) { + const container = Container.new(this._root, {}); + axisRange.container = container; + this.children.push(container); + axisRange.series = this; + const axisDataItem = axisRange.axisDataItem; + axisDataItem.setRaw("isRange", true); + const axis = axisDataItem.component; + if (axis) { + axis._processAxisRange(axisDataItem, ["range", "series"]); + const bullet = axisDataItem.get("bullet"); + if (bullet) { + const sprite = bullet.get("sprite"); + if (sprite) { + sprite.setPrivate("visible", false); + } + } + const axisFill = axisDataItem.get("axisFill"); + if (axisFill) { + container.set("mask", axisFill); + } + axis._seriesAxisRanges.push(axisDataItem); + } + } + _onDataClear() { + super._onDataClear(); + each2(this._dataSets, (_key, dataItems) => { + each(dataItems, (dataItem) => { + dataItem.dispose(); + }); + dataItems.length = 0; + }); + } + _removeAxisRange(axisRange) { + const axisDataItem = axisRange.axisDataItem; + const axis = axisDataItem.component; + axisDataItem.dispose(); + remove(axis._seriesAxisRanges, axisDataItem); + const container = axisRange.container; + if (container) { + container.dispose(); + } + } + _updateFields() { + super._updateFields(); + this._valueXFields = []; + this._valueYFields = []; + this._valueXShowFields = []; + this._valueYShowFields = []; + this.__valueXShowFields = []; + this.__valueYShowFields = []; + if (this.valueXFields) { + each(this.valueXFields, (key) => { + const field = this.get(key + "Field"); + if (field) { + this._valueXFields.push(key); + let field2 = this.get(key + "Show"); + this.__valueXShowFields.push(field2); + if (field2.indexOf("Working") != -1) { + this._valueXShowFields.push(field2.split("Working")[0]); + } else { + this._valueXShowFields.push(field2); + } + } + }); + } + if (this.valueYFields) { + each(this.valueYFields, (key) => { + const field = this.get(key + "Field"); + if (field) { + this._valueYFields.push(key); + let field2 = this.get(key + "Show"); + this.__valueYShowFields.push(field2); + if (field2.indexOf("Working") != -1) { + this._valueYShowFields.push(field2.split("Working")[0]); + } else { + this._valueYShowFields.push(field2); + } + } + }); + } + } + _dispose() { + super._dispose(); + this._bullets = {}; + const chart2 = this.chart; + if (chart2) { + chart2.series.removeValue(this); + } + removeFirst(this.get("xAxis").series, this); + removeFirst(this.get("yAxis").series, this); + } + // TODO use SelectKeys + _min(key, value) { + let newValue = min(this.getPrivate(key), value); + this.setPrivate(key, newValue); + } + // TODO use SelectKeys + _max(key, value) { + let newValue = max(this.getPrivate(key), value); + this.setPrivate(key, newValue); + } + _shouldMakeBullet(dataItem) { + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const baseAxis = this.get("baseAxis"); + if (!xAxis2.inited || !yAxis2.inited) { + return false; + } + const minBulletDistance = this.get("minBulletDistance", 0); + if (minBulletDistance > 0) { + let startIndex = this.startIndex(); + let endIndex = this.endIndex(); + let count = endIndex - startIndex; + if (xAxis2 == baseAxis) { + if (this._xRenderer.axisLength() / count < minBulletDistance / 5) { + return false; + } + } else if (yAxis2 == baseAxis) { + if (this._yRenderer.axisLength() / count < minBulletDistance / 5) { + return false; + } + } + } + if (dataItem.get(this._xField) != null && dataItem.get(this._yField) != null) { + return true; + } + return false; + } + _makeFieldNames() { + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const xName = xAxis2.getPrivate("name"); + const xCapName = capitalizeFirst(xName); + const yName = yAxis2.getPrivate("name"); + const yCapName = capitalizeFirst(yName); + const xLetter = xAxis2.get("renderer").getPrivate("letter"); + const yLetter = yAxis2.get("renderer").getPrivate("letter"); + const open = "open"; + const low = "low"; + const high = "high"; + const show = "Show"; + if (xAxis2.className === "ValueAxis") { + this._xField = this.get(xName + xLetter + show); + this._xOpenField = this.get(open + xCapName + xLetter + show); + this._xLowField = this.get(low + xCapName + xLetter + show); + this._xHighField = this.get(high + xCapName + xLetter + show); + } else { + this._xField = xName + xLetter; + this._xOpenField = open + xCapName + xLetter; + this._xLowField = low + xCapName + xLetter; + this._xHighField = high + xCapName + xLetter; + } + if (yAxis2.className === "ValueAxis") { + this._yField = this.get(yName + yLetter + show); + this._yOpenField = this.get(open + yCapName + yLetter + show); + this._yLowField = this.get(low + yCapName + yLetter + show); + this._yHighField = this.get(high + yCapName + yLetter + show); + } else { + this._yField = yName + yLetter; + this._yOpenField = open + yCapName + yLetter; + this._yLowField = low + yCapName + yLetter; + this._yHighField = high + yCapName + yLetter; + } + } + _fixVC() { + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const baseAxis = this.get("baseAxis"); + const hiddenState = this.states.lookup("hidden"); + const sequencedInterpolation = this.get("sequencedInterpolation"); + if (hiddenState) { + let value = 0; + if (sequencedInterpolation) { + value = 0.999999999999; + } + if (xAxis2 === baseAxis) { + hiddenState.set("vcy", value); + } else if (yAxis2 === baseAxis) { + hiddenState.set("vcx", value); + } else { + hiddenState.set("vcy", value); + hiddenState.set("vcx", value); + } + } + } + _handleMaskBullets() { + if (this.isDirty("maskBullets")) { + this.bulletsContainer.set("maskContent", this.get("maskBullets")); + } + } + _fixPosition() { + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + this.set("x", xAxis2.x() - relativeToValue(xAxis2.get("centerX", 0), xAxis2.width()) - xAxis2.parent.get("paddingLeft", 0)); + this.set("y", yAxis2.y() - relativeToValue(yAxis2.get("centerY", 0), yAxis2.height()) - yAxis2.parent.get("paddingTop", 0)); + this.bulletsContainer.set("y", this.y()); + this.bulletsContainer.set("x", this.x()); + } + _prepareChildren() { + super._prepareChildren(); + this._xRenderer = this.get("xAxis").get("renderer"); + this._yRenderer = this.get("yAxis").get("renderer"); + this._bullets = {}; + if (this.isDirty("valueYShow") || this.isDirty("valueXShow") || this.isDirty("openValueYShow") || this.isDirty("openValueXShow") || this.isDirty("lowValueYShow") || this.isDirty("lowValueXShow") || this.isDirty("highValueYShow") || this.isDirty("highValueXShow")) { + this._updateFields(); + this._makeFieldNames(); + this._valuesDirty = true; + } + if (this.isDirty("xAxis") || this.isDirty("yAxis")) { + this._valuesDirty = true; + } + this.set("width", this.get("xAxis").width()); + this.set("height", this.get("yAxis").height()); + this._handleMaskBullets(); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const baseAxis = this.get("baseAxis"); + const tooltipPositionX = this.get("tooltipPositionX"); + let tooltipFieldX; + switch (tooltipPositionX) { + case "open": + tooltipFieldX = this._xOpenField; + break; + case "low": + tooltipFieldX = this._xLowField; + break; + case "high": + tooltipFieldX = this._xHighField; + break; + default: + tooltipFieldX = this._xField; + } + this._tooltipFieldX = tooltipFieldX; + const tooltipPositionY = this.get("tooltipPositionY"); + let tooltipFieldY; + switch (tooltipPositionY) { + case "open": + tooltipFieldY = this._yOpenField; + break; + case "low": + tooltipFieldY = this._yLowField; + break; + case "high": + tooltipFieldY = this._yHighField; + break; + default: + tooltipFieldY = this._yField; + } + this._tooltipFieldY = tooltipFieldY; + if (this.isDirty("baseAxis")) { + this._fixVC(); + } + this._fixPosition(); + const stacked = this.get("stacked"); + if (this.isDirty("stacked")) { + if (stacked) { + if (this._valuesDirty && !this._dataProcessed) { + } else { + this._stack(); + } + } else { + this._unstack(); + } + } + if (this._valuesDirty && !this._dataProcessed) { + this._dataProcessed = true; + if (stacked) { + this._stack(); + } + each(this.dataItems, (dataItem) => { + each(this._valueXShowFields, (key) => { + let value = dataItem.get(key); + if (value != null) { + if (stacked) { + value += this.getStackedXValue(dataItem, key); + } + this._min("minX", value); + this._max("maxX", value); + } + }); + each(this._valueYShowFields, (key) => { + let value = dataItem.get(key); + if (value != null) { + if (stacked) { + value += this.getStackedYValue(dataItem, key); + } + this._min("minY", value); + this._max("maxY", value); + } + }); + xAxis2.processSeriesDataItem(dataItem, this._valueXFields); + yAxis2.processSeriesDataItem(dataItem, this._valueYFields); + }); + xAxis2._seriesValuesDirty = true; + yAxis2._seriesValuesDirty = true; + if (!this.get("ignoreMinMax")) { + if (this.isPrivateDirty("minX") || this.isPrivateDirty("maxX")) { + xAxis2.markDirtyExtremes(); + } + if (this.isPrivateDirty("minY") || this.isPrivateDirty("maxY")) { + yAxis2.markDirtyExtremes(); + } + } + this._markStakedDirtyStack(); + if (!this.get("tooltipDataItem")) { + this.updateLegendValue(void 0); + } + } + if (this.isDirty("vcx") || this.isDirty("vcy")) { + this._markStakedDirtyStack(); + } + if (!this._dataGrouped) { + xAxis2._groupSeriesData(this); + yAxis2._groupSeriesData(this); + this._dataGrouped = true; + } + if (this._valuesDirty || this.isPrivateDirty("startIndex") || this.isPrivateDirty("adjustedStartIndex") || this.isPrivateDirty("endIndex") || this.isDirty("vcx") || this.isDirty("vcy") || this._stackDirty || this._sizeDirty) { + let startIndex = this.startIndex(); + let endIndex = this.endIndex(); + let minBulletDistance = this.get("minBulletDistance", 0); + if (minBulletDistance > 0 && baseAxis) { + if (baseAxis.get("renderer").axisLength() / (endIndex - startIndex) > minBulletDistance) { + this._showBullets = true; + } else { + this._showBullets = false; + } + } + if ((this._psi != startIndex || this._pei != endIndex || this.isDirty("vcx") || this.isDirty("vcy") || this.isPrivateDirty("adjustedStartIndex") || this._stackDirty || this._valuesDirty) && !this._selectionProcessed) { + this._selectionProcessed = true; + const vcx = this.get("vcx", 1); + const vcy = this.get("vcy", 1); + const stacked2 = this.get("stacked", false); + const outOfSelection = this.getPrivate("outOfSelection"); + if (baseAxis === xAxis2 || !baseAxis) { + yAxis2._calculateTotals(); + this.setPrivateRaw("selectionMinY", void 0); + this.setPrivateRaw("selectionMaxY", void 0); + if (!outOfSelection) { + for (let i = startIndex; i < endIndex; i++) { + this.processYSelectionDataItem(this.dataItems[i], vcy, stacked2); + } + } else { + yAxis2.markDirtySelectionExtremes(); + } + } + if (baseAxis === yAxis2 || !baseAxis) { + xAxis2._calculateTotals(); + this.setPrivateRaw("selectionMinX", void 0); + this.setPrivateRaw("selectionMaxX", void 0); + if (!outOfSelection) { + for (let i = startIndex; i < endIndex; i++) { + this.processXSelectionDataItem(this.dataItems[i], vcx, stacked2); + } + } else { + yAxis2.markDirtySelectionExtremes(); + } + } + if (baseAxis === xAxis2 || !baseAxis) { + if (this.get("valueYShow") !== "valueYWorking" || this.get("useSelectionExtremes")) { + const selectionMinY = this.getPrivate("selectionMinY"); + if (selectionMinY != null) { + this.setPrivateRaw("minY", selectionMinY); + yAxis2.markDirtyExtremes(); + } + const selectionMaxY = this.getPrivate("selectionMaxY"); + if (selectionMaxY != null) { + this.setPrivateRaw("maxY", selectionMaxY); + yAxis2.markDirtyExtremes(); + } + } + } + if (baseAxis === yAxis2 || !baseAxis) { + if (this.get("valueXShow") !== "valueXWorking" || this.get("useSelectionExtremes")) { + const selectionMinX = this.getPrivate("selectionMinX"); + if (selectionMinX != null) { + this.setPrivateRaw("minX", selectionMinX); + yAxis2.markDirtyExtremes(); + } + const selectionMaxX = this.getPrivate("selectionMaxX"); + if (selectionMaxX != null) { + this.setPrivateRaw("maxX", selectionMaxX); + xAxis2.markDirtyExtremes(); + } + } + } + if (this.isPrivateDirty("selectionMinX") || this.isPrivateDirty("selectionMaxX")) { + xAxis2.markDirtySelectionExtremes(); + } + if (this.isPrivateDirty("selectionMinY") || this.isPrivateDirty("selectionMaxY")) { + yAxis2.markDirtySelectionExtremes(); + } + } + } + } + _postUpdateData() { + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + xAxis2._seriesValuesDirty = true; + yAxis2._seriesValuesDirty = true; + each(this.dataItems, (dataItem) => { + dataItem.open = void 0; + dataItem.close = void 0; + xAxis2.processSeriesDataItem(dataItem, this._valueXFields); + yAxis2.processSeriesDataItem(dataItem, this._valueYFields); + }); + } + _makeRangeMask() { + if (this.axisRanges.length > 0) { + let mainContainerMask = this._mainContainerMask; + if (mainContainerMask == null) { + mainContainerMask = this.children.push(Graphics.new(this._root, {})); + this._mainContainerMask = mainContainerMask; + mainContainerMask.set("draw", (display, target) => { + const parent = this.parent; + if (parent) { + const w = this._root.container.width(); + const h = this._root.container.height(); + display.moveTo(-w, -h); + display.lineTo(-w, h * 2); + display.lineTo(w * 2, h * 2); + display.lineTo(w * 2, -h); + display.lineTo(-w, -h); + this.axisRanges.each((axisRange) => { + const fill = axisRange.axisDataItem.get("axisFill"); + if (parent) { + if (fill) { + let draw = fill.get("draw"); + if (draw) { + draw(display, target); + } + } + } + }); + } + this.mainContainer._display.mask = mainContainerMask._display; + }); + } + mainContainerMask.markDirty(); + mainContainerMask._markDirtyKey("fill"); + } else { + this.mainContainer._display.mask = null; + } + } + _updateChildren() { + super._updateChildren(); + this._x = this.x(); + this._y = this.y(); + this._makeRangeMask(); + } + _stack() { + const chart2 = this.chart; + if (chart2) { + const seriesIndex = chart2.series.indexOf(this); + this._couldStackTo = []; + if (seriesIndex > 0) { + let series; + for (let i = seriesIndex - 1; i >= 0; i--) { + series = chart2.series.getIndex(i); + if (series.get("xAxis") === this.get("xAxis") && series.get("yAxis") === this.get("yAxis") && series.className === this.className) { + this._couldStackTo.push(series); + if (!series.get("stacked")) { + break; + } + } + } + } + this._stackDataItems(); + } + } + _unstack() { + each2(this._reallyStackedTo, (_key, value) => { + delete value._stackedSeries[this.uid]; + }); + this._reallyStackedTo = {}; + each(this.dataItems, (dataItem) => { + dataItem.setRaw("stackToItemY", void 0); + dataItem.setRaw("stackToItemX", void 0); + }); + } + _handleRemoved() { + const xAxis2 = this.get("xAxis"); + if (xAxis2) { + xAxis2._handleSeriesRemoved(); + } + const yAxis2 = this.get("yAxis"); + if (yAxis2) { + yAxis2._handleSeriesRemoved(); + } + } + _stackDataItems() { + const baseAxis = this.get("baseAxis"); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + let field; + let stackToItemKey; + if (baseAxis === xAxis2) { + field = "valueY"; + stackToItemKey = "stackToItemY"; + } else if (baseAxis === yAxis2) { + field = "valueX"; + stackToItemKey = "stackToItemX"; + } + let len = this._couldStackTo.length; + let index = 0; + const stackToNegative = this.get("stackToNegative"); + this._reallyStackedTo = {}; + each(this.dataItems, (dataItem) => { + for (let s2 = 0; s2 < len; s2++) { + let stackToSeries = this._couldStackTo[s2]; + let stackToItem = stackToSeries.dataItems[index]; + let value = dataItem.get(field); + if (stackToItem) { + let stackValue = stackToItem.get(field); + if (stackToNegative) { + if (isNumber(value)) { + if (isNumber(stackValue)) { + if (s2 == len - 1) { + dataItem.setRaw(stackToItemKey, void 0); + } + if (value >= 0 && stackValue >= 0) { + dataItem.setRaw(stackToItemKey, stackToItem); + this._reallyStackedTo[stackToSeries.uid] = stackToSeries; + stackToSeries._stackedSeries[this.uid] = this; + break; + } + if (value < 0 && stackValue < 0) { + dataItem.setRaw(stackToItemKey, stackToItem); + this._reallyStackedTo[stackToSeries.uid] = stackToSeries; + stackToSeries._stackedSeries[this.uid] = this; + break; + } + } + } else { + break; + } + } else { + if (isNumber(value) && isNumber(stackValue)) { + dataItem.setRaw(stackToItemKey, stackToItem); + this._reallyStackedTo[stackToSeries.uid] = stackToSeries; + stackToSeries._stackedSeries[this.uid] = this; + break; + } + } + } + } + index++; + }); + } + processXSelectionDataItem(dataItem, vcx, stacked) { + each(this.__valueXShowFields, (key) => { + let value = dataItem.get(key); + if (value != null) { + if (stacked) { + value += this.getStackedXValueWorking(dataItem, key); + } + this._min("selectionMinX", value); + this._max("selectionMaxX", value * vcx); + } + }); + } + processYSelectionDataItem(dataItem, vcy, stacked) { + each(this.__valueYShowFields, (key) => { + let value = dataItem.get(key); + if (value != null) { + if (stacked) { + value += this.getStackedYValueWorking(dataItem, key); + } + this._min("selectionMinY", value); + this._max("selectionMaxY", value * vcy); + } + }); + } + /** + * @ignore + */ + getStackedYValueWorking(dataItem, key) { + const stackToItem = dataItem.get("stackToItemY"); + if (stackToItem) { + const stackedToSeries = stackToItem.component; + return stackToItem.get(key, 0) * stackedToSeries.get("vcy", 1) + this.getStackedYValueWorking(stackToItem, key); + } + return 0; + } + /** + * @ignore + */ + getStackedXValueWorking(dataItem, key) { + const stackToItem = dataItem.get("stackToItemX"); + if (stackToItem) { + const stackedToSeries = stackToItem.component; + return stackToItem.get(key, 0) * stackedToSeries.get("vcx", 1) + this.getStackedXValueWorking(stackToItem, key); + } + return 0; + } + /** + * @ignore + */ + getStackedYValue(dataItem, key) { + const stackToItem = dataItem.get("stackToItemY"); + if (stackToItem) { + return stackToItem.get(key, 0) + this.getStackedYValue(stackToItem, key); + } + return 0; + } + /** + * @ignore + */ + getStackedXValue(dataItem, key) { + const stackToItem = dataItem.get("stackToItemX"); + if (stackToItem) { + return stackToItem.get(key, 0) + this.getStackedXValue(stackToItem, key); + } + return 0; + } + /** + * @ignore + */ + createLegendMarker(_dataItem) { + this.updateLegendMarker(); + } + _markDirtyAxes() { + this._axesDirty = true; + this.markDirty(); + } + _markDataSetDirty() { + this._afterDataChange(); + this._valuesDirty = true; + this._dataProcessed = false; + this._aggregatesCalculated = false; + this.markDirty(); + } + _clearDirty() { + super._clearDirty(); + this._axesDirty = false; + this._selectionProcessed = false; + this._stackDirty = false; + this._dataProcessed = false; + } + _positionBullet(bullet) { + let sprite = bullet.get("sprite"); + if (sprite) { + let dataItem = sprite.dataItem; + let locationX = bullet.get("locationX", dataItem.get("locationX", 0.5)); + let locationY = bullet.get("locationY", dataItem.get("locationY", 0.5)); + let xAxis2 = this.get("xAxis"); + let yAxis2 = this.get("yAxis"); + let exactLocationX = this.get("exactLocationX", false); + let exactLocationY = this.get("exactLocationY", false); + let positionX = xAxis2.getDataItemPositionX(dataItem, this._xField, locationX, this.get("vcx", 1), exactLocationX); + let positionY = yAxis2.getDataItemPositionY(dataItem, this._yField, locationY, this.get("vcy", 1), exactLocationY); + let point = this.getPoint(positionX, positionY); + let left = dataItem.get("left", point.x); + let right = dataItem.get("right", point.x); + let top = dataItem.get("top", point.y); + let bottom = dataItem.get("bottom", point.y); + let x = 0; + let y = 0; + let w = right - left; + let h = bottom - top; + if (this._shouldShowBullet(positionX, positionY)) { + sprite.setPrivate("visible", !bullet.getPrivate("hidden")); + let field = bullet.get("field"); + const baseAxis = this.get("baseAxis"); + const xAxis3 = this.get("xAxis"); + const yAxis3 = this.get("yAxis"); + if (field != void 0) { + let realField; + if (baseAxis == xAxis3) { + if (field == "value") { + realField = this._yField; + } else if (field == "open") { + realField = this._yOpenField; + } else if (field == "high") { + realField = this._yHighField; + } else if (field == "low") { + realField = this._yLowField; + } + if (realField) { + positionY = yAxis3.getDataItemPositionY(dataItem, realField, 0, this.get("vcy", 1), exactLocationY); + point = this._yRenderer.positionToPoint(positionY); + y = point.y; + x = left + w * locationX; + } + } else { + if (field == "value") { + realField = this._xField; + } else if (field == "open") { + realField = this._xOpenField; + } else if (field == "high") { + realField = this._xHighField; + } else if (field == "low") { + realField = this._xLowField; + } + if (realField) { + positionX = xAxis3.getDataItemPositionX(dataItem, realField, 0, this.get("vcx", 1), exactLocationX); + point = this._xRenderer.positionToPoint(positionX); + x = point.x; + y = bottom - h * locationY; + } + } + } else { + x = left + w * locationX; + y = bottom - h * locationY; + } + const stacked = bullet.get("stacked"); + if (stacked) { + const chart2 = this.chart; + if (baseAxis == xAxis3) { + let previousBullet = this._bullets[positionX + "_" + positionY]; + if (previousBullet) { + let previousBounds = previousBullet.bounds(); + let bounds = sprite.localBounds(); + let yo = y; + y = previousBounds.top; + if (stacked == "down") { + y = previousBounds.bottom - bounds.top; + } else if (stacked == "auto") { + if (chart2) { + if (yo < chart2.plotContainer.height() / 2) { + y = previousBounds.bottom - bounds.top; + } else { + y += bounds.bottom; + } + } + } else { + y += bounds.bottom; + } + } + this._bullets[positionX + "_" + positionY] = sprite; + } else { + let previousBullet = this._bullets[positionX + "_" + positionY]; + if (previousBullet) { + let previousBounds = previousBullet.bounds(); + let bounds = sprite.localBounds(); + let xo = x; + x = previousBounds.right; + if (stacked == "down") { + x = previousBounds.left - bounds.right; + } else if (stacked == "auto") { + if (chart2) { + if (xo < chart2.plotContainer.width() / 2) { + x = previousBounds.left - bounds.right; + } else { + x -= bounds.left; + } + } + } else { + x -= bounds.left; + } + } + this._bullets[positionX + "_" + positionY] = sprite; + } + } + if (sprite.isType("Label")) { + sprite.setPrivate("maxWidth", Math.abs(w)); + sprite.setPrivate("maxHeight", Math.abs(h)); + } + sprite.setAll({ x, y }); + } else { + sprite.setPrivate("visible", false); + } + } + } + _shouldShowBullet(_positionX, _positionY) { + return this._showBullets; + } + /** + * @ignore + */ + setDataSet(id) { + if (this._dataSets[id]) { + this._handleDataSetChange(); + this._dataItems = this._dataSets[id]; + this._markDataSetDirty(); + this._dataSetId = id; + const type = "datasetchanged"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this, id }); + } + } + } + /** + * @ignore + */ + resetGrouping() { + each2(this._dataSets, (_key, dataSet) => { + if (dataSet != this._mainDataItems) { + each(dataSet, (dataItem) => { + dataItem.dispose(); + }); + } + }); + this._dataSets = {}; + this._dataItems = this.mainDataItems; + } + _handleDataSetChange() { + each(this._dataItems, (dataItem) => { + let bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + if (bullet) { + let sprite = bullet.get("sprite"); + if (sprite) { + sprite.setPrivate("visible", false); + } + } + }); + } + }); + this._selectionProcessed = false; + } + /** + * Shows hidden series. + * + * @param duration Duration of animation in milliseconds + * @return Animation promise + */ + show(duration) { + const _super = Object.create(null, { + show: { get: () => super.show } + }); + return __awaiter(this, void 0, void 0, function* () { + this._fixVC(); + let promises = []; + promises.push(_super.show.call(this, duration).then(() => { + this._isShowing = false; + let xAxis2 = this.get("xAxis"); + let yAxis2 = this.get("yAxis"); + let baseAxis = this.get("baseAxis"); + if (yAxis2 !== baseAxis) { + yAxis2.markDirtySelectionExtremes(); + } + if (xAxis2 !== baseAxis) { + xAxis2.markDirtySelectionExtremes(); + } + })); + promises.push(this.bulletsContainer.show(duration)); + promises.push(this._sequencedShowHide(true, duration)); + yield Promise.all(promises); + }); + } + /** + * Hides series. + * + * @param duration Duration of animation in milliseconds + * @return Animation promise + */ + hide(duration) { + const _super = Object.create(null, { + hide: { get: () => super.hide } + }); + return __awaiter(this, void 0, void 0, function* () { + this._fixVC(); + let promises = []; + promises.push(_super.hide.call(this, duration).then(() => { + this._isHiding = false; + })); + promises.push(this.bulletsContainer.hide(duration)); + promises.push(this._sequencedShowHide(false, duration)); + yield Promise.all(promises); + }); + } + /** + * Shows series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + showDataItem(dataItem, duration) { + const _super = Object.create(null, { + showDataItem: { get: () => super.showDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.showDataItem.call(this, dataItem, duration)]; + if (!isNumber(duration)) { + duration = this.get("stateAnimationDuration", 0); + } + const easing = this.get("stateAnimationEasing"); + each(this._valueFields, (key) => { + promises.push(dataItem.animate({ key: key + "Working", to: dataItem.get(key), duration, easing }).waitForStop()); + }); + yield Promise.all(promises); + }); + } + /** + * Hides series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + hideDataItem(dataItem, duration) { + const _super = Object.create(null, { + hideDataItem: { get: () => super.hideDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.hideDataItem.call(this, dataItem, duration)]; + let hiddenState = this.states.lookup("hidden"); + if (!hiddenState) { + hiddenState = this.states.create("hidden", {}); + } + if (!isNumber(duration)) { + duration = hiddenState.get("stateAnimationDuration", this.get("stateAnimationDuration", 0)); + } + const easing = hiddenState.get("stateAnimationEasing", this.get("stateAnimationEasing")); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const baseAxis = this.get("baseAxis"); + const stacked = this.get("stacked"); + if (baseAxis === xAxis2 || !baseAxis) { + each(this._valueYFields, (key) => { + let min2 = yAxis2.getPrivate("min"); + let baseValue = yAxis2.baseValue(); + if (isNumber(min2) && min2 > baseValue) { + baseValue = min2; + } + if (stacked) { + baseValue = 0; + } + let value = dataItem.get(key); + if (value != null) { + promises.push(dataItem.animate({ key: key + "Working", to: baseValue, duration, easing }).waitForStop()); + } + }); + } + if (baseAxis === yAxis2 || !baseAxis) { + let min2 = xAxis2.getPrivate("min"); + let baseValue = xAxis2.baseValue(); + if (isNumber(min2) && min2 > baseValue) { + baseValue = min2; + } + if (stacked) { + baseValue = 0; + } + each(this._valueXFields, (key) => { + let value = dataItem.get(key); + if (value != null) { + promises.push(dataItem.animate({ key: key + "Working", to: baseValue, duration, easing }).waitForStop()); + } + }); + } + yield Promise.all(promises); + }); + } + _markDirtyStack() { + this._stackDirty = true; + this.markDirty(); + this._markStakedDirtyStack(); + } + _markStakedDirtyStack() { + const stackedSeries = this._stackedSeries; + if (stackedSeries) { + each2(stackedSeries, (_key, value) => { + if (!value._stackDirty) { + value._markDirtyStack(); + } + }); + } + } + _afterChanged() { + super._afterChanged(); + if (this._skipped) { + this._markDirtyAxes(); + this._skipped = false; + } + } + /** + * Shows a tooltip for specific data item. + * + * @param dataItem Data item + */ + showDataItemTooltip(dataItem) { + if (!this.getPrivate("doNotUpdateLegend")) { + this.updateLegendMarker(dataItem); + this.updateLegendValue(dataItem); + } + const tooltip = this.get("tooltip"); + const exactLocationX = this.get("exactLocationX", false); + const exactLocationY = this.get("exactLocationY", false); + if (tooltip) { + if (!this.isHidden() && this.get("visible")) { + tooltip._setDataItem(dataItem); + if (dataItem) { + let locationX = this.get("locationX", 0); + let locationY = this.get("locationY", 1); + let itemLocationX = dataItem.get("locationX", locationX); + let itemLocationY = dataItem.get("locationY", locationY); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const vcx = this.get("vcx", 1); + const vcy = this.get("vcy", 1); + const xPos = xAxis2.getDataItemPositionX(dataItem, this._tooltipFieldX, this._aLocationX0 + (this._aLocationX1 - this._aLocationX0) * itemLocationX, vcx, exactLocationX); + const yPos = yAxis2.getDataItemPositionY(dataItem, this._tooltipFieldY, this._aLocationY0 + (this._aLocationY1 - this._aLocationY0) * itemLocationY, vcy, exactLocationY); + const point = this.getPoint(xPos, yPos); + let show = true; + each(this._valueFields, (field) => { + if (dataItem.get(field) == null) { + show = false; + } + }); + if (show) { + const chart2 = this.chart; + if (chart2 && chart2.inPlot(point)) { + tooltip.label.text.markDirtyText(); + tooltip.set("tooltipTarget", this._getTooltipTarget(dataItem)); + tooltip.set("pointTo", this._display.toGlobal({ x: point.x, y: point.y })); + } else { + tooltip._setDataItem(void 0); + } + } else { + tooltip._setDataItem(void 0); + } + } + } else { + this.hideTooltip(); + } + } + } + hideTooltip() { + const tooltip = this.get("tooltip"); + if (tooltip) { + tooltip.set("tooltipTarget", this); + } + return super.hideTooltip(); + } + _getTooltipTarget(dataItem) { + if (this.get("seriesTooltipTarget") == "bullet") { + const bullets = dataItem.bullets; + if (bullets && bullets.length > 0) { + const bullet = bullets[0]; + const sprite = bullet.get("sprite"); + if (sprite) { + return sprite; + } + } + } + return this; + } + /** + * @ignore + */ + updateLegendValue(dataItem) { + const legendDataItem = this.get("legendDataItem"); + if (legendDataItem) { + const label = legendDataItem.get("label"); + if (label) { + let txt = ""; + if (dataItem) { + label._setDataItem(dataItem); + txt = this.get("legendLabelText", label.get("text", this.get("name", ""))); + } else { + label._setDataItem(this._emptyDataItem); + txt = this.get("legendRangeLabelText", this.get("legendLabelText", label.get("text", this.get("name", "")))); + } + label.set("text", txt); + } + const valueLabel = legendDataItem.get("valueLabel"); + if (valueLabel) { + let txt = ""; + if (dataItem) { + valueLabel._setDataItem(dataItem); + txt = this.get("legendValueText", valueLabel.get("text", "")); + } else { + valueLabel._setDataItem(this._emptyDataItem); + txt = this.get("legendRangeValueText", valueLabel.get("text", "")); + } + valueLabel.set("text", txt); + } + } + } + _getItemReaderLabel() { + let text = "X: {" + this._xField; + if (this.get("xAxis").isType("DateAxis")) { + text += ".formatDate()"; + } + text += "}; Y: {" + this._yField; + if (this.get("yAxis").isType("DateAxis")) { + text += ".formatDate()"; + } + text += "}"; + return text; + } + /** + * @ignore + */ + getPoint(positionX, positionY) { + let x = this._xRenderer.positionToCoordinate(positionX); + let y = this._yRenderer.positionToCoordinate(positionY); + let max2 = 999999999; + if (y < -max2) { + y = -max2; + } else if (y > max2) { + y = max2; + } + if (x < -max2) { + x = -max2; + } else if (x > max2) { + x = max2; + } + return { x, y }; + } + _shouldInclude(_position) { + return true; + } + /** + * @ignore + */ + handleCursorHide() { + this.hideTooltip(); + this.updateLegendValue(void 0); + this.updateLegendMarker(void 0); + } + _afterDataChange() { + super._afterDataChange(); + this.get("xAxis")._markDirtyKey("start"); + this.get("yAxis")._markDirtyKey("start"); + this.resetExtremes(); + } + /** + * Resets cached axis scale values. + */ + resetExtremes() { + this.setPrivate("selectionMinX", void 0); + this.setPrivate("selectionMaxX", void 0); + this.setPrivate("selectionMinY", void 0); + this.setPrivate("selectionMaxY", void 0); + this.setPrivate("minX", void 0); + this.setPrivate("minY", void 0); + this.setPrivate("maxX", void 0); + this.setPrivate("maxY", void 0); + } + /** + * Creates and returns an axis range object. + * + * @see {@link https://www.amcharts.com/docs/v5/charts/xy-chart/axes/axis-ranges/} for more info + * @param axisDataItem Axis data item + * @return Axis range + */ + createAxisRange(axisDataItem) { + return this.axisRanges.push({ + axisDataItem + }); + } + /** + * A list of series's main (ungrouped) data items. + * + * @return Data items + */ + get mainDataItems() { + return this._mainDataItems; + } + /** + * @ignore + */ + _adjustStartIndex(index) { + const xAxis2 = this.get("xAxis"); + const baseAxis = this.get("baseAxis"); + if (baseAxis == xAxis2 && xAxis2.isType("DateAxis")) { + const baseDuration = xAxis2.baseDuration(); + const minSelection = xAxis2.getPrivate("selectionMin", xAxis2.getPrivate("min", 0)); + const dl = baseDuration * this.get("locationX", 0.5); + let value = -Infinity; + while (value < minSelection) { + const dataItem = this.dataItems[index]; + if (dataItem) { + const open = dataItem.open; + if (open) { + value = open["valueX"]; + } else { + value = dataItem.get("valueX", 0); + } + value += dl; + if (value < minSelection) { + index++; + } else { + break; + } + } else { + break; + } + } + } + return index; + } + }; + XYSeries.className = "XYSeries"; + XYSeries.classNames = Series.classNames.concat([XYSeries.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/series/BaseColumnSeries.js + var BaseColumnSeries = class _BaseColumnSeries extends XYSeries { + constructor() { + super(...arguments); + this._ph = 0; + this._pw = 0; + this._columnsUpdated = false; + } + _makeGraphics(listTemplate, dataItem) { + return this.makeColumn(dataItem, listTemplate); + } + _makeFieldNames() { + super._makeFieldNames(); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const categoryAxis = "CategoryAxis"; + const valueAxis = "ValueAxis"; + if (xAxis2.isType(categoryAxis)) { + if (!this.get("openCategoryXField")) { + this._xOpenField = this._xField; + } + } + if (xAxis2.isType(valueAxis)) { + if (!this.get("openValueXField")) { + this._xOpenField = this._xField; + } + } + if (yAxis2.isType(categoryAxis)) { + if (!this.get("openCategoryYField")) { + this._yOpenField = this._yField; + } + } + if (yAxis2.isType(valueAxis)) { + if (!this.get("openValueYField")) { + this._yOpenField = this._yField; + } + } + } + _prepareChildren() { + super._prepareChildren(); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const len = this.dataItems.length; + const startIndex = Math.max(0, this.startIndex() - 2); + const endIndex = Math.min(this.endIndex() + 2, len - 1); + if (xAxis2.inited && yAxis2.inited) { + for (let i = startIndex; i <= endIndex; i++) { + let dataItem = this.dataItems[i]; + this._createGraphics(dataItem); + } + } + } + _updateChildren() { + const chart2 = this.chart; + if (chart2) { + this._ph = chart2.plotContainer.height(); + this._pw = chart2.plotContainer.width(); + } + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const baseAxis = this.get("baseAxis"); + const columnsTemplate = this.columns.template; + if (this.isDirty("fill")) { + if (columnsTemplate.get("fill") == null) { + columnsTemplate.set("fill", this.get("fill")); + } + } + if (this.isDirty("fillPattern")) { + if (columnsTemplate.get("fillPattern") == null) { + columnsTemplate.set("fillPattern", this.get("fillPattern")); + } + } + if (this.isDirty("stroke")) { + if (columnsTemplate.get("stroke") == null) { + columnsTemplate.set("stroke", this.get("stroke")); + } + } + let index = 0; + let clusterCount = 0; + let i = 0; + if (baseAxis) { + each(baseAxis.series, (series) => { + if (series instanceof _BaseColumnSeries) { + const stacked = series.get("stacked"); + if (stacked && i == 0) { + clusterCount++; + } + if (!stacked && series.get("clustered")) { + clusterCount++; + } + } + if (series === this) { + index = clusterCount - 1; + } + i++; + }); + } + if (!this.get("clustered")) { + index = 0; + clusterCount = 1; + } + if (clusterCount === 0) { + clusterCount = 1; + index = 0; + } + const cellStartLocation = "cellStartLocation"; + const cellEndLocation = "cellEndLocation"; + const cellLocationX0 = this._xRenderer.get(cellStartLocation, 0); + const cellLocationX1 = this._xRenderer.get(cellEndLocation, 1); + const cellLocationY0 = this._yRenderer.get(cellStartLocation, 0); + const cellLocationY1 = this._yRenderer.get(cellEndLocation, 1); + this._aLocationX0 = cellLocationX0 + index / clusterCount * (cellLocationX1 - cellLocationX0); + this._aLocationX1 = cellLocationX0 + (index + 1) / clusterCount * (cellLocationX1 - cellLocationX0); + ; + this._aLocationY0 = cellLocationY0 + index / clusterCount * (cellLocationY1 - cellLocationY0); + this._aLocationY1 = cellLocationY0 + (index + 1) / clusterCount * (cellLocationY1 - cellLocationY0); + if (xAxis2.inited && yAxis2.inited) { + if (this._axesDirty || this._valuesDirty || this._stackDirty || this.isDirty("vcx") || this.isDirty("vcy") || this._sizeDirty) { + const len = this.dataItems.length; + let startIndex = Math.max(0, this.startIndex() - 2); + let endIndex = Math.min(this.endIndex() + 2, len - 1); + for (let i2 = 0; i2 < startIndex; i2++) { + this._toggleColumn(this.dataItems[i2], false); + } + let previous = this.dataItems[startIndex]; + for (let i2 = startIndex; i2 <= endIndex; i2++) { + let dataItem = this.dataItems[i2]; + if (dataItem.get("valueX") != null && dataItem.get("valueY") != null) { + previous = dataItem; + if (i2 > 0 && startIndex > 0) { + for (let j = i2 - 1; j >= 0; j--) { + let dataItem2 = this.dataItems[j]; + if (dataItem2.get("valueX") != null && dataItem2.get("valueY") != null) { + previous = dataItem2; + break; + } + } + } + break; + } else { + this._toggleColumn(dataItem, false); + } + } + this._beforeColumnsDraw(); + let axisCase = 0; + if (yAxis2.isType("CategoryAxis") && xAxis2.isType("CategoryAxis")) { + axisCase = 2; + } else if (xAxis2 === baseAxis) { + axisCase = 0; + } else if (yAxis2 === baseAxis) { + axisCase = 1; + } + for (let i2 = startIndex; i2 <= endIndex; i2++) { + let dataItem = this.dataItems[i2]; + this._updateGraphics(dataItem, previous, axisCase); + if (dataItem.get("valueX") != null && dataItem.get("valueY") != null) { + previous = dataItem; + } + } + this._afterColumnsDraw(); + for (let i2 = endIndex + 1; i2 < len; i2++) { + this._toggleColumn(this.dataItems[i2], false); + } + this._columnsUpdated = true; + } + } else { + this._skipped = true; + } + if (!this.getPrivate("doNotUpdateLegend")) { + this.updateLegendMarker(this.get("tooltipDataItem")); + } + super._updateChildren(); + } + _afterChanged() { + super._afterChanged(); + this._columnsUpdated = false; + } + _beforeColumnsDraw() { + } + _afterColumnsDraw() { + } + _createGraphics(dataItem) { + let graphics = dataItem.get("graphics"); + if (!graphics) { + graphics = this._makeGraphics(this.columns, dataItem); + dataItem.set("graphics", graphics); + graphics._setDataItem(dataItem); + const legendDataItem = dataItem.get("legendDataItem"); + if (legendDataItem) { + const markerRectangle = legendDataItem.get("markerRectangle"); + if (markerRectangle) { + const ds = markerRectangle.states.lookup("default"); + each(visualSettings, (setting) => { + const value = graphics.get(setting, this.get(setting)); + markerRectangle.set(setting, value); + ds.set(setting, value); + }); + } + } + let graphicsArray = dataItem.get("rangeGraphics"); + if (graphicsArray) { + each(graphicsArray, (graphics2) => { + graphics2.dispose(); + }); + } + graphicsArray = []; + dataItem.setRaw("rangeGraphics", graphicsArray); + this.axisRanges.each((axisRange) => { + const container = axisRange.container; + const rangeGraphics = this._makeGraphics(axisRange.columns, dataItem); + if (graphicsArray) { + graphicsArray.push(rangeGraphics); + } + rangeGraphics.setPrivate("list", axisRange.columns); + container.children.push(rangeGraphics); + }); + } + } + createAxisRange(axisDataItem) { + each(this.dataItems, (dataItem) => { + const graphics = dataItem.get("graphics"); + if (graphics) { + graphics.dispose(); + dataItem.set("graphics", void 0); + } + }); + return super.createAxisRange(axisDataItem); + } + _updateGraphics(dataItem, previousDataItem, axisCase) { + let graphics = dataItem.get("graphics"); + const xField = this._xField; + const yField = this._yField; + const valueX = dataItem.get(xField); + const valueY = dataItem.get(yField); + const exactLocationX = this.get("exactLocationX", false); + if (valueX != null && valueY != null) { + const xOpenField = this._xOpenField; + const yOpenField = this._yOpenField; + const locationX = this.get("locationX", dataItem.get("locationX", 0.5)); + const locationY = this.get("locationY", dataItem.get("locationY", 0.5)); + const openLocationX = this.get("openLocationX", dataItem.get("openLocationX", locationX)); + const openLocationY = this.get("openLocationY", dataItem.get("openLocationY", locationY)); + const width = graphics.get("width"); + const height = graphics.get("height"); + const stacked = this.get("stacked"); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const xStart = xAxis2.get("start"); + const xEnd = xAxis2.get("end"); + const yStart = yAxis2.get("start"); + const yEnd = yAxis2.get("end"); + let l; + let r; + let t; + let b; + let vcy = this.get("vcy", 1); + let vcx = this.get("vcx", 1); + let fitW = false; + let fitH = false; + if (axisCase == 0) { + let startLocation = this._aLocationX0 + openLocationX - 0.5; + let endLocation = this._aLocationX1 + locationX - 0.5; + if (width instanceof Percent) { + let offset = (endLocation - startLocation) * (1 - width.value) / 2; + startLocation += offset; + endLocation -= offset; + } + l = xAxis2.getDataItemPositionX(dataItem, xOpenField, startLocation, vcx, exactLocationX); + r = xAxis2.getDataItemPositionX(dataItem, xField, endLocation, vcx, exactLocationX); + t = yAxis2.getDataItemPositionY(dataItem, yField, locationY, vcy); + if (this._yOpenField !== this._yField) { + b = yAxis2.getDataItemPositionY(dataItem, yOpenField, openLocationY, vcy); + } else { + if (stacked) { + let stackToItemY = dataItem.get("stackToItemY"); + if (stackToItemY) { + b = yAxis2.getDataItemPositionY(stackToItemY, yField, openLocationY, stackToItemY.component.get("vcy")); + } else { + b = yAxis2.basePosition(); + } + } else { + b = yAxis2.basePosition(); + } + } + dataItem.setRaw("point", { x: l + (r - l) / 2, y: t }); + fitH = true; + } else if (axisCase == 1) { + let startLocation = this._aLocationY0 + openLocationY - 0.5; + let endLocation = this._aLocationY1 + locationY - 0.5; + if (height instanceof Percent) { + let offset = (endLocation - startLocation) * (1 - height.value) / 2; + startLocation += offset; + endLocation -= offset; + } + t = yAxis2.getDataItemPositionY(dataItem, yOpenField, startLocation, vcy); + b = yAxis2.getDataItemPositionY(dataItem, yField, endLocation, vcy); + r = xAxis2.getDataItemPositionX(dataItem, xField, locationX, vcx, exactLocationX); + if (this._xOpenField !== this._xField) { + l = xAxis2.getDataItemPositionX(dataItem, xOpenField, openLocationX, vcx, exactLocationX); + } else { + if (stacked) { + let stackToItemX = dataItem.get("stackToItemX"); + if (stackToItemX) { + l = xAxis2.getDataItemPositionX(stackToItemX, xField, openLocationX, stackToItemX.component.get("vcx"), exactLocationX); + } else { + l = xAxis2.basePosition(); + } + } else { + l = xAxis2.basePosition(); + } + } + fitW = true; + dataItem.setRaw("point", { x: r, y: t + (b - t) / 2 }); + } else if (axisCase == 2) { + let startLocation = this._aLocationX0 + openLocationX - 0.5; + let endLocation = this._aLocationX1 + locationX - 0.5; + if (width instanceof Percent) { + let offset = (endLocation - startLocation) * (1 - width.value) / 2; + startLocation += offset; + endLocation -= offset; + } + l = xAxis2.getDataItemPositionX(dataItem, xOpenField, startLocation, vcx); + r = xAxis2.getDataItemPositionX(dataItem, xField, endLocation, vcx); + startLocation = this._aLocationY0 + openLocationY - 0.5; + endLocation = this._aLocationY1 + locationY - 0.5; + if (height instanceof Percent) { + let offset = (endLocation - startLocation) * (1 - height.value) / 2; + startLocation += offset; + endLocation -= offset; + } + t = yAxis2.getDataItemPositionY(dataItem, yOpenField, startLocation, vcy); + b = yAxis2.getDataItemPositionY(dataItem, yField, endLocation, vcy); + dataItem.setRaw("point", { x: l + (r - l) / 2, y: t + (b - t) / 2 }); + } + this._applyGraphicsStates(dataItem, previousDataItem); + this._updateSeriesGraphics(dataItem, graphics, l, r, t, b, fitW, fitH); + if (l < xStart && r < xStart || l > xEnd && r > xEnd || t < yStart && b <= yStart || t >= yEnd && b > yEnd || isNaN2(l) || isNaN2(t)) { + this._toggleColumn(dataItem, false); + } else { + this._toggleColumn(dataItem, true); + } + let rangeGraphics = dataItem.get("rangeGraphics"); + if (rangeGraphics) { + each(rangeGraphics, (graphics2) => { + this._updateSeriesGraphics(dataItem, graphics2, l, r, t, b, fitW, fitH); + }); + } + } else { + this._toggleColumn(dataItem, false); + } + } + _updateSeriesGraphics(dataItem, graphics, l, r, t, b, fitW, fitH) { + const width = graphics.get("width"); + const height = graphics.get("height"); + const maxWidth = graphics.get("maxWidth"); + const maxHeight = graphics.get("maxHeight"); + const ptl = this.getPoint(l, t); + const pbr = this.getPoint(r, b); + const tooltipPoint = dataItem.get("point"); + if (tooltipPoint) { + const point = this.getPoint(tooltipPoint.x, tooltipPoint.y); + tooltipPoint.x = point.x + this._x; + tooltipPoint.y = point.y + this._y; + } + l = ptl.x; + r = pbr.x; + t = ptl.y; + b = pbr.y; + if (isNumber(width)) { + const offset = (r - l - width) / 2; + l += offset; + r -= offset; + } + if (isNumber(maxWidth) && maxWidth < Math.abs(r - l)) { + const offset = (r - l - maxWidth) / 2; + l += offset; + r -= offset; + } + if (isNumber(height)) { + const offset = (b - t - height) / 2; + t += offset; + b -= offset; + } + if (isNumber(maxHeight) && maxHeight < Math.abs(b - t)) { + const offset = (b - t - maxHeight) / 2; + t += offset; + b -= offset; + } + if (this.get("adjustBulletPosition")) { + if (fitW) { + r = Math.min(Math.max(0, r), this._pw); + l = Math.min(Math.max(0, l), this._pw); + } + if (fitH) { + t = Math.min(Math.max(0, t), this._ph); + b = Math.min(Math.max(0, b), this._ph); + } + } + dataItem.setRaw("left", l); + dataItem.setRaw("right", r); + dataItem.setRaw("top", t); + dataItem.setRaw("bottom", b); + graphics.setPrivate("width", r - l); + graphics.setPrivate("height", b - t); + graphics.set("x", l); + graphics.set("y", b - (b - t)); + } + _handleDataSetChange() { + super._handleDataSetChange(); + each(this._dataItems, (dataItem) => { + this._toggleColumn(dataItem, false); + }); + } + _applyGraphicsStates(dataItem, previousDataItem) { + const graphics = dataItem.get("graphics"); + const dropFromOpen = graphics.states.lookup("dropFromOpen"); + const riseFromOpen = graphics.states.lookup("riseFromOpen"); + const dropFromPrevious = graphics.states.lookup("dropFromPrevious"); + const riseFromPrevious = graphics.states.lookup("riseFromPrevious"); + if (dropFromOpen || dropFromPrevious || riseFromOpen || riseFromPrevious) { + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const baseAxis = this.get("baseAxis"); + let open; + let close; + let previousClose; + if (baseAxis === xAxis2 && yAxis2.isType("ValueAxis")) { + open = dataItem.get(this._yOpenField); + close = dataItem.get(this._yField); + previousClose = previousDataItem.get(this._yField); + } else if (baseAxis === yAxis2 && xAxis2.isType("ValueAxis")) { + open = dataItem.get(this._xOpenField); + close = dataItem.get(this._xField); + previousClose = previousDataItem.get(this._xField); + } + if (isNumber(open) && isNumber(close)) { + if (close < open) { + if (dropFromOpen) { + dropFromOpen.apply(); + } + } else { + if (riseFromOpen) { + riseFromOpen.apply(); + } + } + if (isNumber(previousClose)) { + if (close < previousClose) { + if (dropFromPrevious) { + dropFromPrevious.apply(); + } + } else { + if (riseFromPrevious) { + riseFromPrevious.apply(); + } + } + } + } + } + } + /** + * @ignore + */ + disposeDataItem(dataItem) { + super.disposeDataItem(dataItem); + const graphics = dataItem.get("graphics"); + if (graphics) { + this.columns.removeValue(graphics); + graphics.dispose(); + } + const rangeGraphics = dataItem.get("rangeGraphics"); + if (rangeGraphics) { + each(rangeGraphics, (graphics2) => { + const list = graphics2.getPrivate("list"); + if (list) { + list.removeValue(graphics2); + } + graphics2.dispose(); + }); + } + } + /** + * Hides series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + hideDataItem(dataItem, duration) { + const _super = Object.create(null, { + hideDataItem: { get: () => super.hideDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.hideDataItem.call(this, dataItem, duration)]; + const graphics = dataItem.get("graphics"); + if (graphics) { + promises.push(graphics.hide(duration)); + } + const rangeGraphics = dataItem.get("rangeGraphics"); + if (rangeGraphics) { + each(rangeGraphics, (graphics2) => { + promises.push(graphics2.hide(duration)); + }); + } + yield Promise.all(promises); + }); + } + _toggleColumn(dataItem, visible) { + const graphics = dataItem.get("graphics"); + if (graphics) { + graphics.setPrivate("visible", visible); + } + const rangeGraphics = dataItem.get("rangeGraphics"); + if (rangeGraphics) { + each(rangeGraphics, (graphics2) => { + graphics2.setPrivate("visible", visible); + }); + } + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + bullet.setPrivate("hidden", !visible); + }); + } + } + /** + * Shows series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + showDataItem(dataItem, duration) { + const _super = Object.create(null, { + showDataItem: { get: () => super.showDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.showDataItem.call(this, dataItem, duration)]; + const graphics = dataItem.get("graphics"); + if (graphics) { + promises.push(graphics.show(duration)); + } + const rangeGraphics = dataItem.get("rangeGraphics"); + if (rangeGraphics) { + each(rangeGraphics, (graphics2) => { + promises.push(graphics2.show(duration)); + }); + } + yield Promise.all(promises); + }); + } + /** + * @ignore + */ + updateLegendMarker(dataItem) { + let legendDataItem = this.get("legendDataItem"); + if (this.get("useLastColorForLegendMarker")) { + if (!dataItem) { + const lastDataItem = this.dataItems[this.endIndex() - 1]; + if (lastDataItem) { + dataItem = lastDataItem; + } + } + } + if (legendDataItem) { + let graphics = this.columns.template; + if (dataItem) { + let column = dataItem.get("graphics"); + if (column) { + graphics = column; + } + } + const markerRectangle = legendDataItem.get("markerRectangle"); + if (markerRectangle) { + if (!legendDataItem.get("itemContainer").get("disabled")) { + const ds = markerRectangle.states.lookup("default"); + each(visualSettings, (setting) => { + const value = graphics.get(setting, this.get(setting)); + markerRectangle.set(setting, value); + ds.set(setting, value); + }); + } + } + } + } + _getTooltipTarget(dataItem) { + if (this.get("seriesTooltipTarget") == "bullet") { + return super._getTooltipTarget(dataItem); + } + let column = dataItem.get("graphics"); + if (column) { + return column; + } + return this; + } + }; + BaseColumnSeries.className = "BaseColumnSeries"; + BaseColumnSeries.classNames = XYSeries.classNames.concat([BaseColumnSeries.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/Axis.js + var Axis = class extends Component { + constructor() { + super(...arguments); + this._series = []; + this._isPanning = false; + this.minorDataItems = []; + this.labelsContainer = this.children.push(Container.new(this._root, {})); + this.gridContainer = Container.new(this._root, { width: p100, height: p100 }); + this.topGridContainer = Container.new(this._root, { width: p100, height: p100 }); + this.bulletsContainer = this.children.push(Container.new(this._root, { isMeasured: false, width: p100, height: p100, position: "absolute" })); + this._rangesDirty = false; + this._panStart = 0; + this._panEnd = 1; + this._skipSync = false; + this.axisRanges = new List(); + this._seriesAxisRanges = []; + this._cursorPosition = -1; + this._seriesValuesDirty = false; + this._seriesAdded = false; + this.axisHeader = this.children.push(Container.new(this._root, { + themeTags: ["axis", "header"], + position: "absolute", + background: Rectangle.new(this._root, { + themeTags: ["header", "background"], + fill: this._root.interfaceColors.get("background") + }) + })); + this._bullets = {}; + } + _dispose() { + this.gridContainer.dispose(); + this.topGridContainer.dispose(); + this.bulletsContainer.dispose(); + this.labelsContainer.dispose(); + this.axisHeader.dispose(); + super._dispose(); + } + _afterNew() { + super._afterNew(); + this.setPrivate("updateScrollbar", true); + this._disposers.push(this.axisRanges.events.onAll((change) => { + if (change.type === "clear") { + each(change.oldValues, (dataItem) => { + dataItem.dispose(); + }); + } else if (change.type === "push") { + this._processAxisRange(change.newValue, ["range"]); + } else if (change.type === "setIndex") { + this._processAxisRange(change.newValue, ["range"]); + } else if (change.type === "insertIndex") { + this._processAxisRange(change.newValue, ["range"]); + } else if (change.type === "removeIndex") { + this.disposeDataItem(change.oldValue); + } else if (change.type === "moveIndex") { + this._processAxisRange(change.value, ["range"]); + } else { + throw new Error("Unknown IStreamEvent type"); + } + })); + const renderer = this.get("renderer"); + if (renderer) { + renderer.axis = this; + renderer.processAxis(); + } + this.children.push(renderer); + this._createGhostLabel(); + } + _createGhostLabel() { + const renderer = this.get("renderer"); + const ghostLabel = renderer.makeLabel(new DataItem(this, void 0, {}), []); + ghostLabel.adapters.disable("text"); + ghostLabel.setAll({ opacity: 0, tooltipText: void 0, tooltipHTML: void 0, interactive: false }); + ghostLabel.events.disable(); + this.ghostLabel = ghostLabel; + } + _updateFinals(_start, _end) { + } + /** + * Zooms the axis to relative locations. + * + * Both `start` and `end` are relative: 0 means start of the axis, 1 - end. + * + * @param start Relative start + * @param end Relative end + * @param duration Duration of the zoom animation in milliseconds + * @return Zoom animation + */ + zoom(start, end, duration, priority) { + if (this.get("zoomable", true)) { + this._updateFinals(start, end); + if (this.get("start") !== start || this.get("end") != end) { + let sAnimation = this._sAnimation; + let eAnimation = this._eAnimation; + if (start > end) { + [start, end] = [end, start]; + } + let maxDeviation = this.get("maxDeviation", 0.5) * Math.min(1, end - start); + if (start < -maxDeviation) { + start = -maxDeviation; + } + if (end > 1 + maxDeviation) { + end = 1 + maxDeviation; + } + let maxZoomFactor = this.getPrivate("maxZoomFactor", this.get("maxZoomFactor", 100)); + let maxZoomFactorReal = maxZoomFactor; + if (!isNumber(duration)) { + duration = this.get("interpolationDuration", 0); + } + if (!priority) { + priority = "end"; + } + if (end === 1 && start !== 0) { + if (start < this.get("start", 0)) { + priority = "start"; + } else { + priority = "end"; + } + } + if (start === 0 && end !== 1) { + if (end > this.get("end", 1)) { + priority = "end"; + } else { + priority = "start"; + } + } + let minZoomCount = this.get("minZoomCount", 0); + const dataItems = this.dataItems; + if (dataItems && dataItems.length < minZoomCount) { + minZoomCount = dataItems.length; + } + let maxZoomCount = this.get("maxZoomCount", Infinity); + if (isNumber(minZoomCount)) { + maxZoomFactor = maxZoomFactorReal / minZoomCount; + } + let minZoomFactor = 1; + if (isNumber(maxZoomCount)) { + minZoomFactor = maxZoomFactorReal / maxZoomCount; + } + if (start > end) { + [start, end] = [end, start]; + } + if (priority === "start") { + if (maxZoomCount > 0) { + if (1 / (end - start) < minZoomFactor) { + end = start + 1 / minZoomFactor; + } + } + if (1 / (end - start) > maxZoomFactor) { + end = start + 1 / maxZoomFactor; + } + if (end > 1 && end - start < 1 / maxZoomFactor) { + start = end - 1 / maxZoomFactor; + } + } else { + if (maxZoomCount > 0) { + if (1 / (end - start) < minZoomFactor) { + start = end - 1 / minZoomFactor; + } + } + if (1 / (end - start) > maxZoomFactor) { + start = end - 1 / maxZoomFactor; + } + if (start < 0 && end - start < 1 / maxZoomFactor) { + end = start + 1 / maxZoomFactor; + } + } + if (1 / (end - start) > maxZoomFactor) { + end = start + 1 / maxZoomFactor; + } + if (1 / (end - start) > maxZoomFactor) { + start = end - 1 / maxZoomFactor; + } + if (maxZoomCount != null && minZoomCount != null && (start == this.get("start") && end == this.get("end"))) { + const chart2 = this.chart; + if (chart2) { + chart2._handleAxisSelection(this, true); + } + } + if ((sAnimation && sAnimation.playing && sAnimation.to == start || this.get("start") == start) && (eAnimation && eAnimation.playing && eAnimation.to == end || this.get("end") == end)) { + return; + } + if (duration > 0) { + let easing = this.get("interpolationEasing"); + let sAnimation2, eAnimation2; + if (this.get("start") != start) { + sAnimation2 = this.animate({ key: "start", to: start, duration, easing }); + } + if (this.get("end") != end) { + eAnimation2 = this.animate({ key: "end", to: end, duration, easing }); + } + this._sAnimation = sAnimation2; + this._eAnimation = eAnimation2; + if (sAnimation2) { + return sAnimation2; + } else if (eAnimation2) { + return eAnimation2; + } + } else { + this.set("start", start); + this.set("end", end); + this.root.events.once("frameended", () => { + this.markDirtyKey("start"); + }); + } + } else { + if (this._sAnimation) { + this._sAnimation.stop(); + } + if (this._eAnimation) { + this._eAnimation.stop(); + } + } + } + } + /** + * A list of series using this axis. + * + * @return Series + */ + get series() { + return this._series; + } + _processAxisRange(dataItem, themeTags) { + dataItem.setRaw("isRange", true); + this._createAssets(dataItem, themeTags); + this._rangesDirty = true; + this._prepareDataItem(dataItem); + const above = dataItem.get("above"); + const container = this.topGridContainer; + const grid = dataItem.get("grid"); + if (above && grid) { + container.children.moveValue(grid); + } + const fill = dataItem.get("axisFill"); + if (above && fill) { + container.children.moveValue(fill); + } + } + _prepareDataItem(_dataItem, _index) { + } + /** + * @ignore + */ + markDirtyExtremes() { + } + /** + * @ignore + */ + markDirtySelectionExtremes() { + } + _calculateTotals() { + } + _updateAxisRanges() { + this._bullets = {}; + this.axisRanges.each((axisRange) => { + this._prepareDataItem(axisRange); + }); + each(this._seriesAxisRanges, (axisRange) => { + this._prepareDataItem(axisRange); + }); + } + _prepareChildren() { + super._prepareChildren(); + const ghostLabel = this.ghostLabel; + if (ghostLabel) { + if (this.get("fixAxisSize")) { + ghostLabel.set("visible", true); + } else { + ghostLabel.set("visible", false); + } + } + if (this.isDirty("start") || this.isDirty("end")) { + const chart2 = this.chart; + if (chart2) { + chart2._updateCursor(); + } + let start = this.get("start", 0); + let end = this.get("end", 1); + let maxDeviation = this.get("maxDeviation", 0.5) * Math.min(1, end - start); + if (start < -maxDeviation) { + let delta = start + maxDeviation; + start = -maxDeviation; + this.setRaw("start", start); + if (this.isDirty("end")) { + this.setRaw("end", end - delta); + } + } + if (end > 1 + maxDeviation) { + let delta = end - 1 - maxDeviation; + end = 1 + maxDeviation; + this.setRaw("end", end); + if (this.isDirty("start")) { + this.setRaw("start", start - delta); + } + } + } + const renderer = this.get("renderer"); + renderer._start = this.get("start"); + renderer._end = this.get("end"); + renderer._inversed = renderer.get("inversed", false); + renderer._axisLength = renderer.axisLength() / (renderer._end - renderer._start); + renderer._updateLC(); + if (this.isDirty("tooltip")) { + const tooltip = this.get("tooltip"); + if (tooltip) { + const rendererTags = renderer.get("themeTags"); + tooltip.addTag("axis"); + tooltip.addTag(this.className.toLowerCase()); + tooltip._applyThemes(); + if (rendererTags) { + tooltip.set("themeTags", mergeTags(tooltip.get("themeTags"), rendererTags)); + tooltip.label._applyThemes(); + } + } + } + } + _updateTooltipBounds() { + const tooltip = this.get("tooltip"); + if (tooltip) { + this.get("renderer").updateTooltipBounds(tooltip); + } + } + _updateBounds() { + super._updateBounds(); + this._updateTooltipBounds(); + } + /** + * @ignore + */ + processChart(chart2) { + this.chart = chart2; + const renderer = this.get("renderer"); + renderer.chart = chart2; + chart2.gridContainer.children.push(this.gridContainer); + chart2.topGridContainer.children.push(this.topGridContainer); + chart2.axisHeadersContainer.children.push(this.axisHeader); + this.on("start", () => { + chart2._handleAxisSelection(this); + }); + this.on("end", () => { + chart2._handleAxisSelection(this); + }); + chart2.plotContainer.onPrivate("width", () => { + this.markDirtySize(); + }); + chart2.plotContainer.onPrivate("height", () => { + this.markDirtySize(); + }); + chart2.processAxis(this); + } + /** + * @ignore + */ + hideDataItem(dataItem) { + this._toggleFHDataItem(dataItem, true); + return super.hideDataItem(dataItem); + } + /** + * @ignore + */ + showDataItem(dataItem) { + this._toggleFHDataItem(dataItem, false); + return super.showDataItem(dataItem); + } + _toggleFHDataItem(dataItem, forceHidden) { + const fh = "forceHidden"; + const label = dataItem.get("label"); + if (label) { + label.set(fh, forceHidden); + } + const grid = dataItem.get("grid"); + if (grid) { + grid.set(fh, forceHidden); + } + const tick = dataItem.get("tick"); + if (tick) { + tick.set(fh, forceHidden); + } + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + axisFill.set(fh, forceHidden); + } + const bullet = dataItem.get("bullet"); + if (bullet) { + const sprite = bullet.get("sprite"); + if (sprite) { + sprite.set(fh, forceHidden); + } + } + } + _toggleDataItem(dataItem, visible) { + const label = dataItem.get("label"); + const v = "visible"; + if (label) { + label.setPrivate(v, visible); + } + const grid = dataItem.get("grid"); + if (grid) { + grid.setPrivate(v, visible); + } + const tick = dataItem.get("tick"); + if (tick) { + tick.setPrivate(v, visible); + } + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + axisFill.setPrivate(v, visible); + } + const bullet = dataItem.get("bullet"); + if (bullet) { + const sprite = bullet.get("sprite"); + if (sprite) { + sprite.setPrivate(v, visible); + } + } + } + _createAssets(dataItem, tags, minor) { + var _a, _b, _c; + const renderer = this.get("renderer"); + let m = "minor"; + const label = dataItem.get("label"); + if (!label) { + renderer.makeLabel(dataItem, tags); + } else { + let themeTags = label.get("themeTags"); + let remove2 = false; + if (minor) { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) == -1) { + remove2 = true; + } + } else { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) != -1) { + remove2 = true; + } + } + if (remove2) { + (_a = label.parent) === null || _a === void 0 ? void 0 : _a.children.removeValue(label); + renderer.makeLabel(dataItem, tags); + label.dispose(); + renderer.labels.removeValue(label); + } + } + const grid = dataItem.get("grid"); + if (!grid) { + renderer.makeGrid(dataItem, tags); + } else { + let themeTags = grid.get("themeTags"); + let remove2 = false; + if (minor) { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) == -1) { + remove2 = true; + } + } else { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) != -1) { + remove2 = true; + } + } + if (remove2) { + (_b = grid.parent) === null || _b === void 0 ? void 0 : _b.children.removeValue(grid); + renderer.makeGrid(dataItem, tags); + grid.dispose(); + renderer.grid.removeValue(grid); + } + } + const tick = dataItem.get("tick"); + if (!tick) { + renderer.makeTick(dataItem, tags); + } else { + let remove2 = false; + let themeTags = tick.get("themeTags"); + if (minor) { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) == -1) { + remove2 = true; + } + } else { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) != -1) { + remove2 = true; + } + } + if (remove2) { + (_c = tick.parent) === null || _c === void 0 ? void 0 : _c.children.removeValue(tick); + renderer.makeTick(dataItem, tags); + tick.dispose(); + renderer.ticks.removeValue(tick); + } + } + if (!minor && !dataItem.get("axisFill")) { + renderer.makeAxisFill(dataItem, tags); + } else if (minor && !dataItem.get("axisFill") && this.get("minorAxisFillsEnabled")) { + renderer.makeAxisFill(dataItem, tags); + } + this._processBullet(dataItem); + } + _processBullet(dataItem) { + let bullet = dataItem.get("bullet"); + let axisBullet = this.get("bullet"); + if (!bullet && axisBullet && !dataItem.get("isRange")) { + bullet = axisBullet(this._root, this, dataItem); + } + if (bullet) { + bullet.axis = this; + const sprite = bullet.get("sprite"); + if (sprite) { + sprite._setDataItem(dataItem); + dataItem.setRaw("bullet", bullet); + if (!sprite.parent) { + this.bulletsContainer.children.push(sprite); + } + } + } + } + _afterChanged() { + super._afterChanged(); + const chart2 = this.chart; + if (chart2) { + chart2._updateChartLayout(); + chart2.axisHeadersContainer.markDirtySize(); + } + this.get("renderer")._updatePositions(); + this._seriesAdded = false; + } + /** + * @ignore + */ + disposeDataItem(dataItem) { + super.disposeDataItem(dataItem); + const renderer = this.get("renderer"); + const label = dataItem.get("label"); + if (label) { + renderer.labels.removeValue(label); + label.dispose(); + } + const tick = dataItem.get("tick"); + if (tick) { + renderer.ticks.removeValue(tick); + tick.dispose(); + } + const grid = dataItem.get("grid"); + if (grid) { + renderer.grid.removeValue(grid); + grid.dispose(); + } + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + renderer.axisFills.removeValue(axisFill); + axisFill.dispose(); + } + const bullet = dataItem.get("bullet"); + if (bullet) { + bullet.dispose(); + } + } + _updateGhost() { + this.setPrivate("cellWidth", this.getCellWidthPosition() * this.get("renderer").axisLength()); + const ghostLabel = this.ghostLabel; + if (ghostLabel) { + if (!ghostLabel.isHidden()) { + const bounds = ghostLabel.localBounds(); + const gWidth = Math.ceil(bounds.right - bounds.left); + let text = ghostLabel.get("text"); + each(this.dataItems, (dataItem) => { + const label = dataItem.get("label"); + if (label && !label.isHidden()) { + const bounds2 = label.localBounds(); + const w = Math.ceil(bounds2.right - bounds2.left); + if (w > gWidth) { + text = label.text._getText(); + } + } + }); + ghostLabel.set("text", text); + } + let start = this.get("start", 0); + let end = this.get("end", 1); + this.get("renderer").updateLabel(ghostLabel, start + (end - start) * 0.5); + } + } + _handleCursorPosition(position, snapToSeries) { + const renderer = this.get("renderer"); + position = renderer.toAxisPosition(position); + this._cursorPosition = position; + this._snapToSeries = snapToSeries; + this.updateTooltip(); + } + /** + * Can be called when axis zoom changes and you need to update tooltip + * position. + */ + updateTooltip() { + const snapToSeries = this._snapToSeries; + let position = this._cursorPosition; + const tooltip = this.get("tooltip"); + const renderer = this.get("renderer"); + if (isNumber(position)) { + each(this.series, (series) => { + if (series.get("baseAxis") === this) { + const dataItem = this.getSeriesItem(series, position, this.get("tooltipLocation")); + if (snapToSeries && snapToSeries.indexOf(series) != -1) { + series.updateLegendMarker(dataItem); + series.updateLegendValue(dataItem); + series._settings.tooltipDataItem = dataItem; + } else { + series.showDataItemTooltip(dataItem); + series.setRaw("tooltipDataItem", dataItem); + } + } + }); + if (this.get("snapTooltip")) { + position = this.roundAxisPosition(position, this.get("tooltipLocation", 0.5)); + } + this.setPrivateRaw("tooltipPosition", position); + if (tooltip) { + renderer.updateTooltipBounds(tooltip); + if (!isNaN2(position)) { + this._updateTooltipText(tooltip, position); + renderer.positionTooltip(tooltip, position); + if (position < this.get("start", 0) || position > this.get("end", 1)) { + tooltip.hide(0); + } else { + tooltip.show(0); + } + } else { + tooltip.hide(0); + } + } + } + } + _updateTooltipText(tooltip, position) { + tooltip.label.set("text", this.getTooltipText(position)); + } + /** + * @ignore + */ + roundAxisPosition(position, _location) { + return position; + } + _handleSeriesRemoved() { + } + /** + * @ignore + */ + handleCursorShow() { + let tooltip = this.get("tooltip"); + if (tooltip) { + tooltip.show(); + } + } + /** + * @ignore + */ + handleCursorHide() { + let tooltip = this.get("tooltip"); + if (tooltip) { + tooltip.hide(); + } + } + /** + * @ignore + */ + processSeriesDataItem(_dataItem, _fields) { + } + _clearDirty() { + super._clearDirty(); + this._sizeDirty = false; + this._rangesDirty = false; + } + /** + * Converts pixel coordinate to a relative position on axis. + * + * @param coordinate Coordinate + * @return Relative position + */ + coordinateToPosition(coordinate) { + const renderer = this.get("renderer"); + return renderer.toAxisPosition(coordinate / renderer.axisLength()); + } + /** + * Converts relative position of the plot area to relative position of the + * axis with zoom taken into account. + * + * @param position Position + * @return Relative position + */ + toAxisPosition(position) { + return this.get("renderer").toAxisPosition(position); + } + /** + * Converts relative position of the axis to a global position taking current + * zoom into account (opposite to what `toAxisPosition` does). + * + * @since 5.4.2 + * @param position Position + * @return Global position + */ + toGlobalPosition(position) { + return this.get("renderer").toGlobalPosition(position); + } + /** + * Adjusts position with inversed taken into account. + * + * @ignore + */ + fixPosition(position) { + return this.get("renderer").fixPosition(position); + } + /** + * @ignore + */ + shouldGap(_dataItem, _nextItem, _autoGapCount, _fieldName) { + return false; + } + /** + * Creates and returns an axis range object. + * + * @see {@link https://www.amcharts.com/docs/v5/charts/xy-chart/axes/axis-ranges/} for more info + * @param axisDataItem Axis data item + * @return Axis range + */ + createAxisRange(axisDataItem) { + return this.axisRanges.push(axisDataItem); + } + /** + * @ignore + */ + _groupSeriesData(_series) { + } + /** + * Returns relative position between two grid lines of the axis. + * + * @return Position + */ + getCellWidthPosition() { + return 0.05; + } + }; + Axis.className = "Axis"; + Axis.classNames = Component.classNames.concat([Axis.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/ValueAxis.js + var ValueAxis = class extends Axis { + constructor() { + super(...arguments); + this._dirtyExtremes = false; + this._dirtySelectionExtremes = false; + this._dseHandled = false; + this._deltaMinMax = 1; + this._baseValue = 0; + this._minLogAdjusted = 1; + } + /** + * @ignore + */ + markDirtyExtremes() { + this._dirtyExtremes = true; + this.markDirty(); + } + /** + * @ignore + */ + markDirtySelectionExtremes() { + this._dirtySelectionExtremes = true; + this.markDirty(); + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["axis"]); + this.setPrivateRaw("name", "value"); + this.addTag("value"); + super._afterNew(); + } + _prepareChildren() { + var _a; + super._prepareChildren(); + if (this.isDirty("syncWithAxis")) { + let previousValue = this._prevSettings.syncWithAxis; + if (previousValue) { + if (this._syncDp) { + this._syncDp.dispose(); + } + } + let syncWithAxis = this.get("syncWithAxis"); + if (syncWithAxis) { + this._syncDp = new MultiDisposer([ + syncWithAxis.onPrivate("selectionMinFinal", () => { + this._dirtySelectionExtremes = true; + }), + syncWithAxis.onPrivate("selectionMaxFinal", () => { + this._dirtySelectionExtremes = true; + }) + ]); + } + } + let someDirty = false; + if (this.isDirty("min") || this.isDirty("max") || this.isDirty("maxPrecision") || this.isDirty("numberFormat")) { + someDirty = true; + (_a = this.ghostLabel) === null || _a === void 0 ? void 0 : _a.set("text", ""); + } + if (this._sizeDirty || this._dirtyExtremes || this._valuesDirty || someDirty || this.isPrivateDirty("width") || this.isPrivateDirty("height") || this.isDirty("extraMin") || this.isDirty("extraMax") || this.isDirty("logarithmic") || this.isDirty("treatZeroAs") || this.isDirty("baseValue") || this.isDirty("strictMinMax") || this.isDirty("strictMinMaxSelection")) { + this._getMinMax(); + this._dirtyExtremes = false; + } + this._handleSizeDirty(); + if (this._dirtySelectionExtremes && !this._isPanning && this.get("autoZoom", true)) { + const chart2 = this.chart; + let getMM = false; + if (chart2) { + const letter = this.get("renderer").getPrivate("letter"); + if (letter == "Y") { + chart2.xAxes.each((axis) => { + if (axis.className != "ValueAxis") { + getMM = true; + } + }); + } else if (letter == "X") { + chart2.yAxes.each((axis) => { + if (axis.className != "ValueAxis") { + getMM = true; + } + }); + } + } + if (getMM) { + this._getSelectionMinMax(); + } + this._dirtySelectionExtremes = false; + } + this._groupData(); + if (this._sizeDirty || this._valuesDirty || this.isDirty("start") || this.isDirty("end") || this.isPrivateDirty("min") || this.isPrivateDirty("selectionMax") || this.isPrivateDirty("selectionMin") || this.isPrivateDirty("max") || this.isPrivateDirty("step") || this.isPrivateDirty("width") || this.isPrivateDirty("height") || this.isDirty("logarithmic")) { + this._handleRangeChange(); + this._prepareAxisItems(); + this._updateAxisRanges(); + } + this._baseValue = this.baseValue(); + } + _handleSizeDirty() { + if (this._sizeDirty && !this._dseHandled) { + this._dirtySelectionExtremes = true; + this._dseHandled = true; + if (this.getPrivate("selectionMinFinal") != this.getPrivate("selectionMin") || this.getPrivate("selectionMaxFinal") != this.getPrivate("selectionMax")) { + this._dirtySelectionExtremes = false; + } + } + } + _clearDirty() { + super._clearDirty(); + this._dseHandled = false; + } + _groupData() { + } + _formatText(value) { + const numberFormat = this.get("numberFormat"); + const formatter = this.getNumberFormatter(); + let text = ""; + if (numberFormat) { + text = formatter.format(value, numberFormat); + } else { + text = formatter.format(value, void 0, this.getPrivate("stepDecimalPlaces")); + } + return text; + } + _prepareAxisItems() { + const min2 = this.getPrivate("min"); + const max2 = this.getPrivate("max"); + if (isNumber(min2) && isNumber(max2)) { + const logarithmic = this.get("logarithmic"); + const step = this.getPrivate("step"); + const selectionMin = this.getPrivate("selectionMin"); + const selectionMax = this.getPrivate("selectionMax") + step; + let value = selectionMin - step; + let differencePower = 1; + let minLog = min2; + if (logarithmic) { + value = this._minLogAdjusted; + if (value < selectionMin) { + while (value < selectionMin) { + value += step; + } + } + minLog = value; + if (minLog <= 0) { + let minRealLog = this._minRealLog; + if (!isNumber(minRealLog)) { + minRealLog = 1; + } + minLog = Math.pow(10, Math.log(minRealLog) * Math.LOG10E); + if (step < 1) { + if (isNumber(this._minRealLog)) { + minLog = this._minRealLog; + } else { + minLog = Math.pow(10, -50); + } + } + } + differencePower = Math.log(selectionMax - step) * Math.LOG10E - Math.log(minLog) * Math.LOG10E; + if (differencePower > 2) { + value = Math.pow(10, Math.log(minLog) * Math.LOG10E - 50); + } + } + const renderer = this.get("renderer"); + const minorLabelsEnabled = renderer.get("minorLabelsEnabled"); + const minorGridEnabled = renderer.get("minorGridEnabled", minorLabelsEnabled); + let stepPower = Math.pow(10, Math.floor(Math.log(Math.abs(step)) * Math.LOG10E)); + const stepAdjusted = Math.round(step / stepPower); + let minorGridCount = 2; + if (round(stepAdjusted / 5, 10) % 1 == 0) { + minorGridCount = 5; + } + if (round(stepAdjusted / 10, 10) % 1 == 0) { + minorGridCount = 10; + } + let minorStep = step / minorGridCount; + let i = 0; + let m = 0; + let previous = -Infinity; + const gridCount = this.get("renderer").gridCount(); + while (value < selectionMax) { + let dataItem; + if (this.dataItems.length < i + 1) { + dataItem = new DataItem(this, void 0, {}); + this._dataItems.push(dataItem); + this.processDataItem(dataItem); + } else { + dataItem = this.dataItems[i]; + } + this._createAssets(dataItem, []); + this._toggleDataItem(dataItem, true); + dataItem.setRaw("value", value); + const label = dataItem.get("label"); + if (label) { + label.set("text", this._formatText(value)); + } + this._prepareDataItem(dataItem); + let nextValue = value; + if (!logarithmic) { + nextValue += step; + } else { + if (differencePower > 2) { + const targetGridCount = Math.max(1, gridCount); + const x = Math.max(1, Math.ceil(differencePower / targetGridCount)); + const exponent = Math.log(minLog) * Math.LOG10E + (i + 1) * x - 50; + nextValue = Math.pow(10, exponent); + } else { + nextValue += step; + } + } + if (minorGridEnabled) { + let minorValue = value + minorStep; + if (logarithmic) { + if (differencePower > 2) { + let minorMinMaxStep = this._adjustMinMax(value, nextValue, 10); + minorStep = minorMinMaxStep.step; + } + minorValue = value + minorStep; + } + while (minorValue < nextValue - step * 1e-11) { + let minorDataItem; + if (this.minorDataItems.length < m + 1) { + minorDataItem = new DataItem(this, void 0, {}); + this.minorDataItems.push(minorDataItem); + this.processDataItem(minorDataItem); + } else { + minorDataItem = this.minorDataItems[m]; + } + this._createAssets(minorDataItem, ["minor"], true); + this._toggleDataItem(minorDataItem, true); + minorDataItem.setRaw("value", minorValue); + const minorLabel = minorDataItem.get("label"); + if (minorLabel) { + if (minorLabelsEnabled) { + minorLabel.set("text", this._formatText(minorValue)); + } else { + minorLabel.setPrivate("visible", false); + } + } + this._prepareDataItem(minorDataItem); + minorValue += minorStep; + m++; + } + } + value = nextValue; + if (previous == value) { + break; + } + let stepPower2 = Math.pow(10, Math.floor(Math.log(Math.abs(step)) * Math.LOG10E)); + if (stepPower2 < 1 && !logarithmic) { + let decCount = Math.round(Math.abs(Math.log(Math.abs(stepPower2)) * Math.LOG10E)) + 2; + value = round(value, decCount); + } + i++; + if (logarithmic && differencePower <= 2) { + if (value - step < step) { + value = step; + } + } + previous = value; + } + for (let j = i; j < this.dataItems.length; j++) { + this._toggleDataItem(this.dataItems[j], false); + } + for (let j = m; j < this.minorDataItems.length; j++) { + this._toggleDataItem(this.minorDataItems[j], false); + } + each(this.series, (series) => { + if (series.inited) { + series._markDirtyAxes(); + } + }); + this._updateGhost(); + } + } + _prepareDataItem(dataItem, count) { + let renderer = this.get("renderer"); + let value = dataItem.get("value"); + let endValue = dataItem.get("endValue"); + let position = this.valueToPosition(value); + let endPosition = position; + let fillEndPosition = this.valueToPosition(value + this.getPrivate("step")); + if (isNumber(endValue)) { + endPosition = this.valueToPosition(endValue); + fillEndPosition = endPosition; + } + if (dataItem.get("isRange")) { + if (endValue == null) { + fillEndPosition = position; + } + } + let labelEndPosition = endPosition; + let labelEndValue = dataItem.get("labelEndValue"); + if (labelEndValue != null) { + labelEndPosition = this.valueToPosition(labelEndValue); + } + renderer.updateLabel(dataItem.get("label"), position, labelEndPosition, count); + const grid = dataItem.get("grid"); + renderer.updateGrid(grid, position, endPosition); + if (grid) { + if (value == this.get("baseValue", 0)) { + grid.addTag("base"); + grid._applyThemes(); + } else if (grid.hasTag("base")) { + grid.removeTag("base"); + grid._applyThemes(); + } + } + renderer.updateTick(dataItem.get("tick"), position, labelEndPosition, count); + renderer.updateFill(dataItem.get("axisFill"), position, fillEndPosition); + this._processBullet(dataItem); + renderer.updateBullet(dataItem.get("bullet"), position, endPosition); + if (!dataItem.get("isRange")) { + const fillRule = this.get("fillRule"); + if (fillRule) { + fillRule(dataItem); + } + } + } + _handleRangeChange() { + let selectionMin = this.positionToValue(this.get("start", 0)); + let selectionMax = this.positionToValue(this.get("end", 1)); + const gridCount = this.get("renderer").gridCount(); + let minMaxStep = this._adjustMinMax(selectionMin, selectionMax, gridCount, true); + let stepDecimalPlaces = decimalPlaces(minMaxStep.step); + this.setPrivateRaw("stepDecimalPlaces", stepDecimalPlaces); + selectionMin = round(selectionMin, stepDecimalPlaces); + selectionMax = round(selectionMax, stepDecimalPlaces); + minMaxStep = this._adjustMinMax(selectionMin, selectionMax, gridCount, true); + let step = minMaxStep.step; + selectionMin = minMaxStep.min; + selectionMax = minMaxStep.max; + if (this.getPrivate("selectionMin") !== selectionMin || this.getPrivate("selectionMax") !== selectionMax || this.getPrivate("step") !== step) { + this.setPrivateRaw("selectionMin", selectionMin); + this.setPrivateRaw("selectionMax", selectionMax); + this.setPrivateRaw("step", step); + } + } + /** + * Converts a relative position to a corresponding numeric value from axis + * scale. + * + * @param position Relative position + * @return Value + */ + positionToValue(position) { + const min2 = this.getPrivate("min"); + const max2 = this.getPrivate("max"); + if (!this.get("logarithmic")) { + return position * (max2 - min2) + min2; + } else { + return Math.pow(Math.E, (position * (Math.log(max2) * Math.LOG10E - Math.log(min2) * Math.LOG10E) + Math.log(min2) * Math.LOG10E) / Math.LOG10E); + } + } + /** + * Convers value to a relative position on axis. + * + * @param value Value + * @return Relative position + */ + valueToPosition(value) { + const min2 = this.getPrivate("min"); + const max2 = this.getPrivate("max"); + if (!this.get("logarithmic")) { + return (value - min2) / (max2 - min2); + } else { + if (value <= 0) { + let treatZeroAs = this.get("treatZeroAs"); + if (isNumber(treatZeroAs)) { + value = treatZeroAs; + } + } + return (Math.log(value) * Math.LOG10E - Math.log(min2) * Math.LOG10E) / (Math.log(max2) * Math.LOG10E - Math.log(min2) * Math.LOG10E); + } + } + /** + * @ignore + */ + valueToFinalPosition(value) { + const min2 = this.getPrivate("minFinal"); + const max2 = this.getPrivate("maxFinal"); + if (!this.get("logarithmic")) { + return (value - min2) / (max2 - min2); + } else { + if (value <= 0) { + let treatZeroAs = this.get("treatZeroAs"); + if (isNumber(treatZeroAs)) { + value = treatZeroAs; + } + } + return (Math.log(value) * Math.LOG10E - Math.log(min2) * Math.LOG10E) / (Math.log(max2) * Math.LOG10E - Math.log(min2) * Math.LOG10E); + } + } + /** + * Returns X coordinate in pixels corresponding to specific value. + * + * @param value Numeric value + * @param location Location + * @param baseValue Base value + * @return X coordinate + */ + getX(value, location, baseValue) { + value = baseValue + (value - baseValue) * location; + const position = this.valueToPosition(value); + return this._settings.renderer.positionToCoordinate(position); + } + /** + * Returns X coordinate in pixels corresponding to specific value. + * + * @param value Numeric value + * @param location Location + * @param baseValue Base value + * @return X coordinate + */ + getY(value, location, baseValue) { + value = baseValue + (value - baseValue) * location; + const position = this.valueToPosition(value); + return this._settings.renderer.positionToCoordinate(position); + } + /** + * @ignore + */ + getDataItemCoordinateX(dataItem, field, _cellLocation, axisLocation) { + return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(dataItem, field, _cellLocation, axisLocation)); + } + /** + * @ignore + */ + getDataItemPositionX(dataItem, field, _cellLocation, axisLocation) { + let value = dataItem.get(field); + const stackToItem = dataItem.get("stackToItemX"); + if (stackToItem) { + const series = dataItem.component; + value = value * axisLocation + series.getStackedXValueWorking(dataItem, field); + } else { + value = this._baseValue + (value - this._baseValue) * axisLocation; + } + return this.valueToPosition(value); + } + /** + * @ignore + */ + getDataItemCoordinateY(dataItem, field, _cellLocation, axisLocation) { + return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(dataItem, field, _cellLocation, axisLocation)); + } + /** + * @ignore + */ + getDataItemPositionY(dataItem, field, _cellLocation, axisLocation) { + let value = dataItem.get(field); + const stackToItem = dataItem.get("stackToItemY"); + if (stackToItem) { + const series = dataItem.component; + value = value * axisLocation + series.getStackedYValueWorking(dataItem, field); + } else { + value = this._baseValue + (value - this._baseValue) * axisLocation; + } + return this.valueToPosition(value); + } + /** + * Returns relative position of axis' `baseValue`. + * + * @return Base value position + */ + basePosition() { + return this.valueToPosition(this.baseValue()); + } + /** + * Base value of the [[ValueAxis]], which determines positive and negative + * values. + * + * @return Base value + */ + baseValue() { + const min2 = Math.min(this.getPrivate("minFinal", -Infinity), this.getPrivate("selectionMin", -Infinity)); + const max2 = Math.max(this.getPrivate("maxFinal", Infinity), this.getPrivate("selectionMax", Infinity)); + let baseValue = this.get("baseValue", 0); + if (baseValue < min2) { + baseValue = min2; + } + if (baseValue > max2) { + baseValue = max2; + } + return baseValue; + } + /** + * @ignore + */ + cellEndValue(value) { + return value; + } + fixSmallStep(step) { + if (1 + step === 1) { + step *= 2; + return this.fixSmallStep(step); + } + return step; + } + _fixMin(min2) { + return min2; + } + _fixMax(max2) { + return max2; + } + _calculateTotals() { + if (this.get("calculateTotals")) { + let series = this.series[0]; + if (series) { + let startIndex = series.startIndex(); + if (series.dataItems.length > 0) { + if (startIndex > 0) { + startIndex--; + } + let endIndex = series.endIndex(); + if (endIndex < series.dataItems.length) { + endIndex++; + } + let field; + let vc; + if (series.get("yAxis") == this) { + field = "valueY"; + vc = "vcy"; + } else if (series.get("xAxis") == this) { + field = "valueX"; + vc = "vcx"; + } + let fieldWorking = field + "Working"; + if (field) { + for (let i = startIndex; i < endIndex; i++) { + let sum = 0; + let total = 0; + each(this.series, (series2) => { + if (!series2.get("excludeFromTotal")) { + let dataItem = series2.dataItems[i]; + if (dataItem) { + let value = dataItem.get(fieldWorking) * series2.get(vc); + if (!isNaN2(value)) { + sum += value; + total += Math.abs(value); + } + } + } + }); + each(this.series, (series2) => { + if (!series2.get("excludeFromTotal")) { + let dataItem = series2.dataItems[i]; + if (dataItem) { + let value = dataItem.get(fieldWorking) * series2.get(vc); + if (!isNaN2(value)) { + dataItem.set(field + "Total", total); + dataItem.set(field + "Sum", sum); + let totalPercent = value / total * 100; + if (total == 0) { + totalPercent = 0; + } + dataItem.set(field + "TotalPercent", totalPercent); + } + } + } + }); + } + } + } + } + } + } + _getSelectionMinMax() { + const min2 = this.getPrivate("minFinal"); + const max2 = this.getPrivate("maxFinal"); + const minDefined = this.get("min"); + const maxDefined = this.get("max"); + let extraMin = this.get("extraMin", 0); + let extraMax = this.get("extraMax", 0); + if (this.get("logarithmic")) { + if (this.get("extraMin") == null) { + extraMin = 0.1; + } + if (this.get("extraMax") == null) { + extraMax = 0.2; + } + } + const gridCount = this.get("renderer").gridCount(); + const selectionStrictMinMax = this.get("strictMinMaxSelection"); + let strictMinMax = this.get("strictMinMax"); + if (isNumber(min2) && isNumber(max2)) { + let selectionMin = max2; + let selectionMax = min2; + each(this.series, (series) => { + if (!series.get("ignoreMinMax")) { + let seriesMin; + let seriesMax; + const outOfSelection = series.getPrivate("outOfSelection"); + if (series.get("xAxis") === this) { + if (!outOfSelection) { + let minX = series.getPrivate("minX"); + let maxX = series.getPrivate("maxX"); + if (series.startIndex() != 0 || series.endIndex() != series.dataItems.length) { + minX = void 0; + maxX = void 0; + } + seriesMin = series.getPrivate("selectionMinX", minX); + seriesMax = series.getPrivate("selectionMaxX", maxX); + } + } else if (series.get("yAxis") === this) { + if (!outOfSelection) { + let minY = series.getPrivate("minY"); + let maxY = series.getPrivate("maxY"); + if (series.startIndex() != 0 || series.endIndex() != series.dataItems.length) { + minY = void 0; + maxY = void 0; + } + seriesMin = series.getPrivate("selectionMinY", minY); + seriesMax = series.getPrivate("selectionMaxY", maxY); + } + } + if (!series.isHidden() && !series.isShowing()) { + if (isNumber(seriesMin)) { + selectionMin = Math.min(selectionMin, seriesMin); + } + if (isNumber(seriesMax)) { + selectionMax = Math.max(selectionMax, seriesMax); + } + } + } + }); + this.axisRanges.each((range2) => { + if (range2.get("affectsMinMax")) { + let value = range2.get("value"); + if (value != null) { + selectionMin = Math.min(selectionMin, value); + selectionMax = Math.max(selectionMax, value); + } + value = range2.get("endValue"); + if (value != null) { + selectionMin = Math.min(selectionMin, value); + selectionMax = Math.max(selectionMax, value); + } + } + }); + if (selectionMin > selectionMax) { + [selectionMin, selectionMax] = [selectionMax, selectionMin]; + } + if (isNumber(minDefined)) { + if (strictMinMax) { + selectionMin = minDefined; + } else { + selectionMin = min2; + } + } else if (strictMinMax) { + if (isNumber(this._minReal)) { + selectionMin = this._minReal; + } + } + if (isNumber(maxDefined)) { + if (strictMinMax) { + selectionMax = maxDefined; + } else { + selectionMax = max2; + } + } else if (strictMinMax) { + if (isNumber(this._maxReal)) { + selectionMax = this._maxReal; + } + } + if (selectionMin === selectionMax) { + let smin = selectionMin; + selectionMin -= this._deltaMinMax; + selectionMax += this._deltaMinMax; + if (selectionMin < min2) { + let d = smin - min2; + if (d == 0) { + d = this._deltaMinMax; + } + selectionMin = smin - d; + selectionMax = smin + d; + strictMinMax = true; + } + let minMaxStep2 = this._adjustMinMax(selectionMin, selectionMax, gridCount, strictMinMax); + selectionMin = minMaxStep2.min; + selectionMax = minMaxStep2.max; + } + let selectionMinReal = selectionMin; + let selectionMaxReal = selectionMax; + let delta = selectionMax - selectionMin; + selectionMin -= delta * extraMin; + selectionMax += delta * extraMax; + let minMaxStep = this._adjustMinMax(selectionMin, selectionMax, gridCount); + selectionMin = minMaxStep.min; + selectionMax = minMaxStep.max; + selectionMin = fitToRange(selectionMin, min2, max2); + selectionMax = fitToRange(selectionMax, min2, max2); + minMaxStep = this._adjustMinMax(selectionMin, selectionMax, gridCount, true); + if (!strictMinMax) { + selectionMin = minMaxStep.min; + selectionMax = minMaxStep.max; + } + const syncWithAxis = this.get("syncWithAxis"); + if (syncWithAxis) { + minMaxStep = this._syncAxes(selectionMin, selectionMax, minMaxStep.step, syncWithAxis.getPrivate("selectionMinFinal", syncWithAxis.getPrivate("minFinal", 0)), syncWithAxis.getPrivate("selectionMaxFinal", syncWithAxis.getPrivate("maxFinal", 1)), syncWithAxis.getPrivate("selectionStepFinal", syncWithAxis.getPrivate("step", 1))); + if (minMaxStep.min < min2) { + minMaxStep.min = min2; + } + if (minMaxStep.max > max2) { + minMaxStep.max = max2; + } + selectionMin = minMaxStep.min; + selectionMax = minMaxStep.max; + } + if (strictMinMax) { + if (isNumber(minDefined)) { + selectionMin = Math.max(selectionMin, minDefined); + } + if (isNumber(maxDefined)) { + selectionMax = Math.min(selectionMax, maxDefined); + } + } + if (selectionStrictMinMax) { + selectionMin = selectionMinReal - (selectionMaxReal - selectionMinReal) * extraMin; + selectionMax = selectionMaxReal + (selectionMaxReal - selectionMinReal) * extraMax; + } + if (strictMinMax) { + if (isNumber(minDefined)) { + selectionMin = minDefined; + } else { + selectionMin = selectionMinReal; + } + if (isNumber(maxDefined)) { + selectionMax = maxDefined; + } else { + selectionMax = selectionMaxReal; + } + if (selectionMax - selectionMin <= 1e-8) { + selectionMin -= this._deltaMinMax; + selectionMax += this._deltaMinMax; + } + let delta2 = selectionMax - selectionMin; + selectionMin -= delta2 * extraMin; + selectionMax += delta2 * extraMax; + } + if (this.get("logarithmic")) { + if (selectionMin <= 0) { + selectionMin = selectionMinReal * (1 - Math.min(extraMin, 0.99)); + } + if (selectionMin < min2) { + selectionMin = min2; + } + if (selectionMax > max2) { + selectionMax = max2; + } + } + let len = Math.min(20, Math.ceil(Math.log(this.getPrivate("maxZoomFactor", 100) + 1) / Math.LN10) + 2); + let start = round(this.valueToFinalPosition(selectionMin), len); + let end = round(this.valueToFinalPosition(selectionMax), len); + this.setPrivateRaw("selectionMinFinal", selectionMin); + this.setPrivateRaw("selectionMaxFinal", selectionMax); + this.setPrivateRaw("selectionStepFinal", minMaxStep.step); + this.zoom(start, end); + } + } + _getMinMax() { + let minDefined = this.get("min"); + let maxDefined = this.get("max"); + let min2 = Infinity; + let max2 = -Infinity; + let extraMin = this.get("extraMin", 0); + let extraMax = this.get("extraMax", 0); + if (this.get("logarithmic")) { + if (!this.get("strictMinMax")) { + if (this.get("extraMin") == null) { + extraMin = 0.1; + } + if (this.get("extraMax") == null) { + extraMax = 0.2; + } + } + } + let minDiff = Infinity; + each(this.series, (series) => { + if (!series.get("ignoreMinMax")) { + let seriesMin; + let seriesMax; + if (series.get("xAxis") === this) { + seriesMin = series.getPrivate("minX"); + seriesMax = series.getPrivate("maxX"); + } else if (series.get("yAxis") === this) { + seriesMin = series.getPrivate("minY"); + seriesMax = series.getPrivate("maxY"); + } + if (isNumber(seriesMin) && isNumber(seriesMax)) { + min2 = Math.min(min2, seriesMin); + max2 = Math.max(max2, seriesMax); + let diff = seriesMax - seriesMin; + if (diff <= 0) { + diff = Math.abs(seriesMax / 100); + } + if (diff < minDiff) { + minDiff = diff; + } + } + } + }); + this.axisRanges.each((range2) => { + if (range2.get("affectsMinMax")) { + let value = range2.get("value"); + if (value != null) { + min2 = Math.min(min2, value); + max2 = Math.max(max2, value); + } + value = range2.get("endValue"); + if (value != null) { + min2 = Math.min(min2, value); + max2 = Math.max(max2, value); + } + } + }); + if (this.get("logarithmic")) { + let treatZeroAs = this.get("treatZeroAs"); + if (isNumber(treatZeroAs)) { + if (min2 <= 0) { + min2 = treatZeroAs; + } + } + if (min2 <= 0) { + new Error("Logarithmic value axis can not have values <= 0."); + } + } + if (min2 === 0 && max2 === 0) { + max2 = 0.9; + min2 = -0.9; + } + if (isNumber(minDefined)) { + min2 = minDefined; + } + if (isNumber(maxDefined)) { + max2 = maxDefined; + } + if (min2 === Infinity || max2 === -Infinity) { + this.setPrivate("minFinal", void 0); + this.setPrivate("maxFinal", void 0); + return; + } + if (min2 > max2) { + [min2, max2] = [max2, min2]; + } + const initialMin = min2; + const initialMax = max2; + let minAdapted = this.adapters.fold("min", min2); + let maxAdapted = this.adapters.fold("max", max2); + this._minRealLog = min2; + if (isNumber(minAdapted)) { + min2 = minAdapted; + } + if (isNumber(maxAdapted)) { + max2 = maxAdapted; + } + min2 = this._fixMin(min2); + max2 = this._fixMax(max2); + if (max2 - min2 <= 1 / Math.pow(10, 15)) { + if (max2 - min2 !== 0) { + this._deltaMinMax = (max2 - min2) / 2; + } else { + this._getDelta(max2); + } + min2 -= this._deltaMinMax; + max2 += this._deltaMinMax; + } + min2 -= (max2 - min2) * extraMin; + max2 += (max2 - min2) * extraMax; + if (this.get("logarithmic")) { + if (min2 < 0 && initialMin >= 0) { + min2 = 0; + } + if (max2 > 0 && initialMax <= 0) { + max2 = 0; + } + } + this._minReal = min2; + this._maxReal = max2; + let strictMinMax = this.get("strictMinMax"); + let strictMinMaxSelection = this.get("strictMinMaxSelection", false); + if (strictMinMaxSelection) { + strictMinMax = strictMinMaxSelection; + } + let strict = strictMinMax; + if (isNumber(maxDefined)) { + strict = true; + } + let gridCount = this.get("renderer").gridCount(); + let minMaxStep = this._adjustMinMax(min2, max2, gridCount, strict); + min2 = minMaxStep.min; + max2 = minMaxStep.max; + minMaxStep = this._adjustMinMax(min2, max2, gridCount, true); + min2 = minMaxStep.min; + max2 = minMaxStep.max; + if (strictMinMax) { + if (isNumber(minDefined)) { + min2 = minDefined; + } else { + min2 = this._minReal; + } + if (isNumber(maxDefined)) { + max2 = maxDefined; + } else { + max2 = this._maxReal; + } + if (max2 - min2 <= 1e-8) { + min2 -= this._deltaMinMax; + max2 += this._deltaMinMax; + } + let delta = max2 - min2; + min2 -= delta * extraMin; + max2 += delta * extraMax; + } + minAdapted = this.adapters.fold("min", min2); + maxAdapted = this.adapters.fold("max", max2); + if (isNumber(minAdapted)) { + min2 = minAdapted; + } + if (isNumber(maxAdapted)) { + max2 = maxAdapted; + } + if (minDiff == Infinity) { + minDiff = max2 - min2; + } + let decCount = Math.round(Math.abs(Math.log(Math.abs(max2 - min2)) * Math.LOG10E)) + 5; + min2 = round(min2, decCount); + max2 = round(max2, decCount); + const syncWithAxis = this.get("syncWithAxis"); + if (syncWithAxis) { + minMaxStep = this._syncAxes(min2, max2, minMaxStep.step, syncWithAxis.getPrivate("minFinal", syncWithAxis.getPrivate("min", 0)), syncWithAxis.getPrivate("maxFinal", syncWithAxis.getPrivate("max", 1)), syncWithAxis.getPrivate("step", 1)); + min2 = minMaxStep.min; + max2 = minMaxStep.max; + } + this.setPrivateRaw("maxZoomFactor", Math.max(1, Math.ceil((max2 - min2) / minDiff * this.get("maxZoomFactor", 100)))); + this._fixZoomFactor(); + if (this.get("logarithmic")) { + this._minLogAdjusted = min2; + min2 = this._minReal; + max2 = this._maxReal; + if (min2 <= 0) { + min2 = initialMin * (1 - Math.min(extraMin, 0.99)); + } + } + if (isNumber(min2) && isNumber(max2)) { + if (this.getPrivate("minFinal") !== min2 || this.getPrivate("maxFinal") !== max2) { + this.setPrivate("minFinal", min2); + this.setPrivate("maxFinal", max2); + this._saveMinMax(min2, max2); + const duration = this.get("interpolationDuration", 0); + const easing = this.get("interpolationEasing"); + this.animatePrivate({ key: "min", to: min2, duration, easing }); + this.animatePrivate({ key: "max", to: max2, duration, easing }); + } + } + } + _fixZoomFactor() { + } + _getDelta(max2) { + let exponent = Math.log(Math.abs(max2)) * Math.LOG10E; + let power = Math.pow(10, Math.floor(exponent)); + power = power / 10; + this._deltaMinMax = power; + } + _saveMinMax(_min, _max) { + } + _adjustMinMax(min2, max2, gridCount, strictMode) { + if (gridCount <= 1) { + gridCount = 1; + } + gridCount = Math.round(gridCount); + let initialMin = min2; + let initialMax = max2; + let difference = max2 - min2; + if (difference === 0) { + difference = Math.abs(max2); + } + let exponent = Math.log(Math.abs(difference)) * Math.LOG10E; + let power = Math.pow(10, Math.floor(exponent)); + power = power / 10; + let extra = power; + if (strictMode) { + extra = 0; + } + if (strictMode) { + min2 = Math.floor(min2 / power) * power; + max2 = Math.ceil(max2 / power) * power; + } else { + min2 = Math.ceil(min2 / power) * power - extra; + max2 = Math.floor(max2 / power) * power + extra; + } + if (min2 < 0 && initialMin >= 0) { + min2 = 0; + } + if (max2 > 0 && initialMax <= 0) { + max2 = 0; + } + exponent = Math.log(Math.abs(difference)) * Math.LOG10E; + power = Math.pow(10, Math.floor(exponent)); + power = power / 100; + let step = Math.ceil(difference / gridCount / power) * power; + let stepPower = Math.pow(10, Math.floor(Math.log(Math.abs(step)) * Math.LOG10E)); + let stepDivisor = Math.ceil(step / stepPower); + if (stepDivisor > 5) { + stepDivisor = 10; + } else if (stepDivisor <= 5 && stepDivisor > 2) { + stepDivisor = 5; + } + step = Math.ceil(step / (stepPower * stepDivisor)) * stepPower * stepDivisor; + let maxPrecision = this.get("maxPrecision"); + if (isNumber(maxPrecision)) { + let ceiledStep = ceil(step, maxPrecision); + if (maxPrecision < Number.MAX_VALUE && step !== ceiledStep) { + step = ceiledStep; + if (step == 0) { + step = 1; + } + } + } + let decCount = 0; + if (stepPower < 1) { + decCount = Math.round(Math.abs(Math.log(Math.abs(stepPower)) * Math.LOG10E)) + 1; + step = round(step, decCount); + } + let minCount = Math.floor(min2 / step); + min2 = round(step * minCount, decCount); + let maxCount; + if (!strictMode) { + maxCount = Math.ceil(max2 / step); + } else { + maxCount = Math.floor(max2 / step); + } + if (maxCount === minCount) { + maxCount++; + } + max2 = round(step * maxCount, decCount); + if (max2 < initialMax) { + max2 = max2 + step; + } + if (min2 > initialMin) { + min2 = min2 - step; + } + step = this.fixSmallStep(step); + return { min: min2, max: max2, step }; + } + /** + * Returns text to be used in an axis tooltip for specific relative position. + * + * @param position Position + * @return Tooltip text + */ + getTooltipText(position, _adjustPosition) { + const numberFormat = this.get("tooltipNumberFormat", this.get("numberFormat")); + const formatter = this.getNumberFormatter(); + const extraDecimals = this.get("extraTooltipPrecision", 0); + const decimals = this.getPrivate("stepDecimalPlaces", 0) + extraDecimals; + const value = round(this.positionToValue(position), decimals); + if (numberFormat) { + return formatter.format(value, numberFormat); + } else { + return formatter.format(value, void 0, decimals); + } + } + /** + * Returns a data item from series that is closest to the `position`. + * + * @param series Series + * @param position Relative position + * @return Data item + */ + getSeriesItem(series, position) { + let fieldName = this.getPrivate("name") + this.get("renderer").getPrivate("letter"); + let value = this.positionToValue(position); + let index = void 0; + let oldDiff; + each(series.dataItems, (dataItem, i) => { + const diff = Math.abs(dataItem.get(fieldName) - value); + if (index === void 0 || diff < oldDiff) { + index = i; + oldDiff = diff; + } + }); + if (index != null) { + return series.dataItems[index]; + } + } + /** + * Zooms the axis to specific `start` and `end` values. + * + * Optional `duration` specifies duration of zoom animation in milliseconds. + * + * @param start Start value + * @param end End value + * @param duration Duration in milliseconds + */ + zoomToValues(start, end, duration) { + const min2 = this.getPrivate("minFinal", this.getPrivate("min", 0)); + const max2 = this.getPrivate("maxFinal", this.getPrivate("max", 1)); + if (this.getPrivate("min") != null && this.getPrivate("max") != null) { + this.zoom((start - min2) / (max2 - min2), (end - min2) / (max2 - min2), duration); + } + } + /** + * Syncs with a target axis. + * + * @param min Min + * @param max Max + * @param step Step + */ + _syncAxes(min2, max2, step, syncMin, syncMax, syncStep) { + let axis = this.get("syncWithAxis"); + if (axis) { + let count = Math.round(syncMax - syncMin) / syncStep; + let currentCount = Math.round((max2 - min2) / step); + let gridCount = this.get("renderer").gridCount(); + if (isNumber(count) && isNumber(currentCount)) { + let synced = false; + let c = 0; + let diff = (max2 - min2) * 0.01; + let omin = min2; + let omax = max2; + let ostep = step; + while (synced != true) { + synced = this._checkSync(omin, omax, ostep, count); + c++; + if (c > 500) { + synced = true; + } + if (!synced) { + if (c / 3 == Math.round(c / 3)) { + omin = min2 - diff * c; + if (min2 >= 0 && omin < 0) { + omin = 0; + } + } else { + omax = max2 + diff * c; + if (omax <= 0 && omax > 0) { + omax = 0; + } + } + let minMaxStep = this._adjustMinMax(omin, omax, gridCount, true); + omin = minMaxStep.min; + omax = minMaxStep.max; + ostep = minMaxStep.step; + } else { + min2 = omin; + max2 = omax; + step = ostep; + } + } + } + } + return { min: min2, max: max2, step }; + } + /** + * Returns `true` if axis needs to be resunced with some other axis. + */ + _checkSync(min2, max2, step, count) { + let currentCount = (max2 - min2) / step; + for (let i = 1; i < count; i++) { + if (round(currentCount / i, 1) == count || currentCount * i == count) { + return true; + } + } + return false; + } + /** + * Returns relative position between two grid lines of the axis. + * + * @return Position + */ + getCellWidthPosition() { + let max2 = this.getPrivate("selectionMax", this.getPrivate("max")); + let min2 = this.getPrivate("selectionMin", this.getPrivate("min")); + if (isNumber(max2) && isNumber(min2)) { + return this.getPrivate("step", 1) / (max2 - min2); + } + return 0.05; + } + /** + * @ignore + */ + nextPosition(count) { + if (count == null) { + count = 1; + } + if (this.get("renderer").getPrivate("letter") == "Y") { + count *= -1; + } + let value = this.positionToValue(this.getPrivate("tooltipPosition", 0)); + value += this.getPrivate("step", 1) * count; + value = fitToRange(value, this.getPrivate("selectionMin", 0), this.getPrivate("selectionMax", 1)); + return this.toGlobalPosition(this.valueToPosition(value)); + } + }; + ValueAxis.className = "ValueAxis"; + ValueAxis.classNames = Axis.classNames.concat([ValueAxis.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/CategoryAxis.js + var CategoryAxis = class _CategoryAxis extends Axis { + constructor() { + super(...arguments); + this._frequency = 1; + this._itemMap = {}; + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["axis"]); + this.fields.push("category", "id", "cellSize"); + this.setPrivateRaw("name", "category"); + this.addTag("category"); + super._afterNew(); + } + _afterDataChange() { + super._afterDataChange(); + const len = this.dataItems.length; + if (len > 0) { + this.setPrivateRaw("maxZoomFactor", len); + } + this.setPrivateRaw("startIndex", Math.min(this.getPrivate("startIndex", 0), len)); + this.setPrivateRaw("endIndex", Math.min(this.getPrivate("endIndex", len), 1)); + } + _prepareChildren() { + super._prepareChildren(); + const len = this.dataItems.length; + let i = 0; + if (this._valuesDirty) { + this._itemMap = {}; + each(this.dataItems, (dataItem) => { + dataItem.setRaw("index", i); + this._itemMap[dataItem.get("category")] = dataItem; + i++; + }); + this.setPrivateRaw("maxZoomFactor", len); + } + let start = this.get("start", 0); + let end = this.get("end", 1); + let indices = this._getIndices(start, end); + this.setPrivateRaw("startIndex", indices.startIndex); + this.setPrivateRaw("endIndex", indices.endIndex); + if (this._sizeDirty || this._valuesDirty || (this.isDirty("start") || this.isDirty("end") || this.isPrivateDirty("endIndex") || this.isPrivateDirty("startIndex") || this.isPrivateDirty("width") || this.isPrivateDirty("height"))) { + if (this.dataItems.length > 0) { + this._handleRangeChange(); + this._prepareAxisItems(); + this._updateAxisRanges(); + } + } + } + /** + * @ignore + */ + adjustZoom() { + const len = this.dataItems.length; + if (len > 1) { + let maxZoomCount = this.get("maxZoomCount", this.dataItems.length); + let minZoomCount = this.get("minZoomCount", 1); + let count = 0; + let startIndex = this.getPrivate("startIndex", 0); + let endIndex = this.getPrivate("endIndex", 0); + const sAnimation = this._sAnimation; + const eAnimation = this._eAnimation; + let start = this.get("start", 0); + let getIndices = false; + if (sAnimation && !sAnimation.stopped) { + start = Number(sAnimation.to); + getIndices = true; + } + let end = this.get("end", 1); + if (eAnimation && !eAnimation.stopped) { + end = Number(eAnimation.to); + getIndices = true; + } + if (getIndices) { + const indices = this._getIndices(start, end); + startIndex = indices.startIndex; + endIndex = indices.endIndex; + } + for (let i = startIndex; i < endIndex; i++) { + const dataItem = this.dataItems[i]; + count += dataItem.get("finalCellSize", 1); + } + ; + if (count <= minZoomCount) { + let c = 0; + for (let i = startIndex; i < len; i++) { + const dataItem = this.dataItems[i]; + c += dataItem.get("finalCellSize", 1); + endIndex = i + 1; + if (c >= minZoomCount) { + break; + } + } + if (c < minZoomCount) { + for (let i = startIndex - 1; i >= 0; i--) { + const dataItem = this.dataItems[i]; + c += dataItem.get("finalCellSize", 1); + startIndex = i; + if (c >= minZoomCount) { + break; + } + } + } + this.zoomToIndexes(startIndex, endIndex); + } else if (count >= maxZoomCount) { + let c = count; + for (let i = endIndex - 1; i >= startIndex; i--) { + const dataItem = this.dataItems[i]; + c -= dataItem.get("finalCellSize", 1); + if (c <= maxZoomCount) { + endIndex = i + 1; + break; + } + } + this.zoomToIndexes(startIndex, endIndex); + } + } + } + _handleRangeChange() { + each(this.series, (series) => { + let startCategory = this.dataItems[this.startIndex()].get("category"); + let endCategory = this.dataItems[this.endIndex() - 1].get("category"); + let baseAxis = series.get("baseAxis"); + let xAxis2 = series.get("xAxis"); + let yAxis2 = series.get("yAxis"); + if (xAxis2 instanceof _CategoryAxis && yAxis2 instanceof _CategoryAxis) { + series._markDirtyAxes(); + } else if (baseAxis === this) { + let key; + let openKey; + let otherAxis = yAxis2; + if (xAxis2 === baseAxis) { + if (series.get("categoryXField")) { + key = "categoryX"; + } + if (series.get("openCategoryXField")) { + openKey = "openCategoryX"; + } + } else if (yAxis2 === baseAxis) { + if (series.get("categoryYField")) { + key = "categoryY"; + } + if (series.get("openCategoryYField")) { + openKey = "openCategoryY"; + } + otherAxis = xAxis2; + } + if (otherAxis instanceof ValueAxis) { + if (key || openKey) { + let findDataItem = function(series2, categoryAxis, key2, openKey2, category, direction) { + let dataItem; + let idx = categoryAxis.categoryToIndex(category); + while (!dataItem && idx >= 0 && idx < categoryAxis.dataItems.length) { + let searchCategory = categoryAxis.dataItems[idx].get("category"); + if (direction == "previous") { + for (let i = series2.dataItems.length - 1; i >= 0; i--) { + let item = series2.dataItems[i]; + if (key2 && item.get(key2) === searchCategory) { + dataItem = item; + break; + } + if (openKey2 && item.get(openKey2) === searchCategory) { + dataItem = item; + break; + } + } + } else { + for (let i = 0, len = series2.dataItems.length; i < len; i++) { + let item = series2.dataItems[i]; + if (key2 && item.get(key2) === searchCategory) { + dataItem = item; + break; + } + if (openKey2 && item.get(openKey2) === searchCategory) { + dataItem = item; + break; + } + } + } + if (!dataItem) { + idx += direction === "previous" ? -1 : 1; + } + } + return dataItem; + }; + let startDataItem; + let endDataItem; + startDataItem = findDataItem(series, this, key, openKey, startCategory, "next"); + endDataItem = findDataItem(series, this, key, openKey, endCategory, "previous"); + let startIndex = 0; + let endIndex = series.dataItems.length; + if (startDataItem) { + startIndex = series.dataItems.indexOf(startDataItem); + } + if (endDataItem) { + endIndex = series.dataItems.indexOf(endDataItem) + 1; + } + series.setPrivate("startIndex", startIndex); + series.setPrivate("endIndex", endIndex); + let hasValue = false; + for (let i = startIndex; i < endIndex; i++) { + const dataItem = series.dataItems[i]; + each(series.__valueXShowFields, (key2) => { + let value = dataItem.get(key2); + if (value != null) { + hasValue = true; + } + }); + each(series.__valueYShowFields, (key2) => { + let value = dataItem.get(key2); + if (value != null) { + hasValue = true; + } + }); + if (hasValue) { + break; + } + } + series.setPrivate("outOfSelection", !hasValue); + } + } + series._markDirtyAxes(); + } + }); + } + _prepareAxisItems() { + var _a; + const renderer = this.get("renderer"); + const len = this.dataItems.length; + let startIndex = this.startIndex(); + if (startIndex > 0) { + startIndex--; + } + let endIndex = this.endIndex(); + if (endIndex < len) { + endIndex++; + } + const minorLabelsEnabled = renderer.get("minorLabelsEnabled"); + const minorGridEnabled = renderer.get("minorGridEnabled", minorLabelsEnabled); + let maxCount = renderer.axisLength() / Math.max(renderer.get("minGridDistance"), 1); + let frequency = Math.max(1, Math.min(len, Math.ceil((endIndex - startIndex) / maxCount))); + startIndex = Math.floor(startIndex / frequency) * frequency; + this._frequency = frequency; + for (let j = 0; j < len; j++) { + this._toggleDataItem(this.dataItems[j], false); + } + let f = this.dataItems[startIndex].get("index", 0); + for (let i = startIndex; i < endIndex; i = i + frequency) { + let dataItem = this.dataItems[i]; + this._createAssets(dataItem, []); + this._toggleDataItem(dataItem, true); + let count = frequency; + if (minorGridEnabled) { + count = 1; + } + this._prepareDataItem(dataItem, f, count); + f++; + } + if (renderer.get("minorGridEnabled")) { + for (let i = startIndex; i < endIndex; i++) { + let dataItem = this.dataItems[i]; + if (i % frequency != 0) { + this._createAssets(dataItem, ["minor"], true); + this._toggleDataItem(dataItem, true); + this._prepareDataItem(dataItem, 0, 1); + if (!minorLabelsEnabled) { + (_a = dataItem.get("label")) === null || _a === void 0 ? void 0 : _a.setPrivate("visible", false); + } + } + } + } + this._updateGhost(); + } + _prepareDataItem(dataItem, fillIndex, count) { + let renderer = this.get("renderer"); + let categoryLocation = dataItem.get("categoryLocation", 0); + let endCategoryLocation = dataItem.get("endCategoryLocation", 1); + let index = dataItem.get("index"); + if (!isNumber(index)) { + index = this.categoryToIndex(dataItem.get("category")); + } + let position = this.indexToPosition(index, categoryLocation); + let endCategory = dataItem.get("endCategory"); + let endIndex; + if (endCategory) { + endIndex = this.categoryToIndex(endCategory); + if (!isNumber(endIndex)) { + endIndex = index; + } + } else { + endIndex = index; + } + let endPosition = this.indexToPosition(endIndex, endCategoryLocation); + let fillEndIndex; + let fillEndPosition; + if (dataItem.get("isRange")) { + fillEndIndex = endIndex; + if (!isNumber(index)) { + this._toggleDataItem(dataItem, false); + return; + } + } else { + fillEndIndex = index + this._frequency - 1; + } + fillEndPosition = this.indexToPosition(fillEndIndex, endCategoryLocation); + renderer.updateLabel(dataItem.get("label"), position, endPosition, count); + renderer.updateGrid(dataItem.get("grid"), position, endPosition); + renderer.updateTick(dataItem.get("tick"), position, endPosition, count); + renderer.updateFill(dataItem.get("axisFill"), position, fillEndPosition); + this._processBullet(dataItem); + renderer.updateBullet(dataItem.get("bullet"), position, endPosition); + const fillRule = this.get("fillRule"); + if (fillRule) { + fillRule(dataItem, fillIndex); + } + } + startIndex() { + let len = this.dataItems.length; + return Math.min(Math.max(this.getPrivate("startIndex", 0), 0), len - 1); + } + endIndex() { + let len = this.dataItems.length; + return Math.max(1, Math.min(this.getPrivate("endIndex", len), len)); + } + /** + * @ignore + */ + baseValue() { + } + /** + * @ignore + */ + basePosition() { + return 0; + } + /** + * Returns X coordinate in pixels corresponding to specific category index. + * + * @param value Index + * @return X coordinate + */ + getX(value) { + let axisDataItem = this._itemMap[value]; + if (axisDataItem) { + return this._settings.renderer.positionToCoordinate(this.indexToPosition(axisDataItem.get("index", 0))); + } + return NaN; + } + /** + * Returns Y coordinate in pixels corresponding to specific category index. + * + * @param value Index + * @return Y coordinate + */ + getY(value) { + let axisDataItem = this._itemMap[value]; + if (axisDataItem) { + return this._settings.renderer.positionToCoordinate(this.indexToPosition(axisDataItem.get("index", 0))); + } + return NaN; + } + /** + * @ignore + */ + getDataItemPositionX(dataItem, field, cellLocation, _axisLocation) { + const category = dataItem.get(field); + const axisDataItem = this._itemMap[category]; + if (axisDataItem) { + return this.indexToPosition(axisDataItem.get("index", 0), cellLocation); + } + return NaN; + } + /** + * @ignore + */ + getDataItemCoordinateX(dataItem, field, cellLocation, _axisLocation) { + return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(dataItem, field, cellLocation, _axisLocation)); + } + /** + * @ignore + */ + getDataItemPositionY(dataItem, field, cellLocation, _axisLocation) { + const category = dataItem.get(field); + const axisDataItem = this._itemMap[category]; + if (axisDataItem) { + return this.indexToPosition(axisDataItem.get("index", 0), cellLocation); + } + return NaN; + } + /** + * @ignore + */ + getDataItemCoordinateY(dataItem, field, cellLocation, _axisLocation) { + return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(dataItem, field, cellLocation, _axisLocation)); + } + /** + * Converts category index to a relative position. + * + * `location` indicates relative position within category: 0 - start, 1 - end. + * + * If not set, will use middle (0.5) of the category. + * + * @param index Index + * @param location Location + * @return Index + */ + indexToPosition(index, location, final) { + let len = this.dataItems.length; + let position = 0; + if (len == 0) { + return 0; + } + if (index >= len) { + index = len - 1; + location = 1; + } + if (!isNumber(location)) { + location = 0.5; + } + if (!isNumber(index)) { + return 0; + } + let startLocation = this.get("startLocation", 0); + let endLocation = this.get("endLocation", 1); + if (!this.get("cellSizeField")) { + len -= startLocation; + len -= 1 - endLocation; + position = (index + location - startLocation) / len; + } else { + let name = final ? "finalCellSize" : "cellSize"; + const dataItems = this.dataItems; + let modCount = 0; + each(this.dataItems, (dataItem) => { + modCount += dataItem.get(name, 1); + }); + modCount -= startLocation * dataItems[0].get(name, 1); + modCount -= (1 - endLocation) * dataItems[dataItems.length - 1].get(name, 1); + let acc = 0; + for (let i = 0; i < index; i++) { + acc += dataItems[i].get(name, 1); + } + let cellSizeAtIndex = dataItems[index].get(name, 1); + position = (acc + location * cellSizeAtIndex - startLocation * dataItems[0].get(name, 1)) / modCount; + } + if (!final) { + let dataItem = this.dataItems[index]; + if (dataItem) { + position += dataItem.get("deltaPosition", 0); + } + } + return position; + } + /** + * Returns a position of a category. + * + * @param category Category to look up + * @return Position + */ + categoryToPosition(category) { + let dataItem = this._itemMap[category]; + if (dataItem) { + return this.indexToPosition(dataItem.get("index")); + } + return NaN; + } + /** + * Returns an index of a category. + * + * @param category Category to look up + * @return Index + */ + categoryToIndex(category) { + let dataItem = this._itemMap[category]; + if (dataItem) { + return dataItem.get("index"); + } + return NaN; + } + /** + * @ignore + */ + dataItemToPosition(dataItem) { + return this.indexToPosition(dataItem.get("index")); + } + /** + * @ignore + */ + roundAxisPosition(position, location) { + position += (0.5 - location) / this.dataItems.length; + return this.indexToPosition(this.axisPositionToIndex(position), location); + } + /** + * Returns an index of the category that corresponds to specific pixel + * position within axis. + * + * @param position Position (px) + * @return Category index + */ + axisPositionToIndex(position) { + let len = this.dataItems.length; + if (len === 0) { + return 0; + } + if (this.get("cellSizeField")) { + let modifiedLen = 0; + let cellSizes = []; + each(this.dataItems, (dataItem) => { + const cellSize = dataItem.get("cellSize", 1); + cellSizes.push(cellSize); + modifiedLen += cellSize; + }); + let startLocation = this.get("startLocation", 0); + let endLocation = this.get("endLocation", 1); + modifiedLen -= startLocation; + modifiedLen -= 1 - endLocation; + let rel = position * modifiedLen + startLocation; + let acc = 0; + for (let i = 0; i < len; i++) { + const cellSize = cellSizes[i]; + if (rel < acc + cellSize) { + return i; + } + acc += cellSize; + } + return len - 1; + } else { + return fitToRange(Math.floor(position * len), 0, len - 1); + } + } + /** + * Returns text to be used in an axis tooltip for specific relative position. + * + * @param position Position + * @return Tooltip text + */ + getTooltipText(position, _adjustPosition) { + const dataItem = this.dataItems[this.axisPositionToIndex(position)]; + if (dataItem) { + const label = dataItem.get("label"); + if (label) { + return populateString(label, this.get("tooltipText", "")); + } + } + } + _updateTooltipText(tooltip, position) { + tooltip._setDataItem(this.dataItems[this.axisPositionToIndex(position)]); + tooltip.label.text.markDirtyText(); + } + /** + * Returns a data item from series that is closest to the `position`. + * + * @param series Series + * @param position Relative position + * @return Data item + */ + getSeriesItem(series, position) { + if (this.dataItems.length > 0) { + let fieldName = this.getPrivate("name") + this.get("renderer").getPrivate("letter"); + let index = this.axisPositionToIndex(position); + let seriesDataItem = series.dataItems[index]; + let axisDataItem = this.dataItems[index]; + let category = axisDataItem.get("category"); + if (seriesDataItem && axisDataItem) { + if (seriesDataItem.get(fieldName) === category) { + return seriesDataItem; + } + } + for (let i = 0, len = series.dataItems.length; i < len; i++) { + let dataItem = series.dataItems[i]; + if (dataItem.get(fieldName) === category) { + return dataItem; + } + } + } + } + _getIndices(start, end) { + let len = this.dataItems.length; + let startIndex = 0; + let endIndex = len; + let name = "cellSize"; + if (this.get("cellSizeField")) { + let count = 0; + const dataItems = this.dataItems; + if (dataItems.length == 0) { + return { startIndex: 0, endIndex: 0 }; + } + each(dataItems, (dataItem) => { + count += dataItem.get(name, 1); + }); + count -= this.get("startLocation", 0) * dataItems[0].get(name, 1); + count -= (1 - this.get("endLocation", 1)) * dataItems[dataItems.length - 1].get(name, 1); + let c = 0; + for (let i = 0; i < len; i++) { + c += this.dataItems[i].get(name, 1); + if (Math.round(c) > Math.round(start * count)) { + startIndex = i; + break; + } + } + for (let i = startIndex + 1; i < len; i++) { + c += this.dataItems[i].get(name, 1); + if (Math.round(c) >= Math.round(end * count)) { + endIndex = i + 1; + break; + } + } + startIndex = Math.max(startIndex, 0); + endIndex = Math.min(endIndex, len); + } else { + startIndex = Math.max(Math.round(this.get("start", 0) * len), 0); + endIndex = Math.min(Math.round(this.get("end", 1) * len), len); + } + return { startIndex, endIndex }; + } + /** + * Zooms the axis to specific `start` and `end` indexes. + * + * Optional `duration` specifies duration of zoom animation in milliseconds. + * + * @param start Start index + * @param end End index + * @param duration Duration in milliseconds + */ + zoomToIndexes(start, end, duration) { + let len = this.dataItems.length; + if (this.get("cellSizeField")) { + start = Math.min(Math.max(start, 0), len); + end = Math.max(Math.min(end, len), 1); + this.setPrivateRaw("startIndex", start); + this.setPrivateRaw("endIndex", end); + this.zoom(this.indexToPosition(start, 0, true), this.indexToPosition(end, 0, true), duration); + } else { + this.zoom(start / len, end / len, duration); + } + } + zoomToCategories(startCategory, endCategory, duration) { + this.zoomToIndexes(this.categoryToIndex(startCategory), this.categoryToIndex(endCategory) + 1, duration); + } + /** + * Returns position span between start and end of a single cell in axis. + * + * @since 5.2.30 + * @return Position + */ + getCellWidthPosition() { + return this._frequency / this.dataItems.length / (this.get("end", 1) - this.get("start", 0)); + } + /** + * @ignore + */ + nextPosition(count) { + if (count == null) { + count = 1; + } + if (this.get("renderer").getPrivate("letter") == "Y") { + count *= -1; + } + const position = this.getPrivate("tooltipPosition", 0); + const index = fitToRange(this.axisPositionToIndex(position) + count, 0, this.dataItems.length - 1); + return this.toGlobalPosition(this.indexToPosition(index)); + } + }; + CategoryAxis.className = "CategoryAxis"; + CategoryAxis.classNames = Axis.classNames.concat([CategoryAxis.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/AxisLabel.js + var AxisLabel = class extends Label { + constructor() { + super(...arguments); + this._tickPoints = []; + } + }; + AxisLabel.className = "AxisLabel"; + AxisLabel.classNames = Label.classNames.concat([AxisLabel.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/AxisTick.js + var AxisTick = class extends Tick { + constructor() { + super(...arguments); + this._tickPoints = []; + } + }; + AxisTick.className = "AxisTick"; + AxisTick.classNames = Tick.classNames.concat([AxisTick.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/AxisRenderer.js + var AxisRenderer = class extends Graphics { + constructor() { + super(...arguments); + this._axisLength = 100; + this._start = 0; + this._end = 1; + this._inversed = false; + this._minSize = 0; + this._lc = 1; + this._ls = 0; + this.ticks = this.addDisposer(new ListTemplate(Template.new({}), () => AxisTick._new(this._root, { + themeTags: mergeTags(this.ticks.template.get("themeTags", []), this.get("themeTags", [])) + }, [this.ticks.template]))); + this.grid = this.addDisposer(new ListTemplate(Template.new({}), () => Grid._new(this._root, { + themeTags: mergeTags(this.grid.template.get("themeTags", []), this.get("themeTags", [])) + }, [this.grid.template]))); + this.axisFills = this.addDisposer(new ListTemplate(Template.new({}), () => Graphics._new(this._root, { + themeTags: mergeTags(this.axisFills.template.get("themeTags", ["axis", "fill"]), this.get("themeTags", [])) + }, [this.axisFills.template]))); + this.labels = this.addDisposer(new ListTemplate(Template.new({}), () => AxisLabel._new(this._root, { + themeTags: mergeTags(this.labels.template.get("themeTags", []), this.get("themeTags", [])) + }, [this.labels.template]))); + } + /** + * @ignore + */ + makeTick(dataItem, themeTags) { + const tick = this.ticks.make(); + tick._setDataItem(dataItem); + dataItem.setRaw("tick", tick); + tick.set("themeTags", mergeTags(tick.get("themeTags"), themeTags)); + this.axis.labelsContainer.children.push(tick); + this.ticks.push(tick); + return tick; + } + /** + * @ignore + */ + makeGrid(dataItem, themeTags) { + const grid = this.grid.make(); + grid._setDataItem(dataItem); + dataItem.setRaw("grid", grid); + grid.set("themeTags", mergeTags(grid.get("themeTags"), themeTags)); + this.axis.gridContainer.children.push(grid); + this.grid.push(grid); + return grid; + } + /** + * @ignore + */ + makeAxisFill(dataItem, themeTags) { + const axisFill = this.axisFills.make(); + axisFill._setDataItem(dataItem); + axisFill.set("themeTags", mergeTags(axisFill.get("themeTags"), themeTags)); + this.axis.gridContainer.children.push(axisFill); + dataItem.setRaw("axisFill", axisFill); + this.axisFills.push(axisFill); + return axisFill; + } + /** + * @ignore + */ + makeLabel(dataItem, themeTags) { + const label = this.labels.make(); + label.set("themeTags", mergeTags(label.get("themeTags"), themeTags)); + if (dataItem.get("isRange")) { + this.axis.labelsContainer.children.push(label); + } else { + this.axis.labelsContainer.children.moveValue(label, 0); + } + label._setDataItem(dataItem); + dataItem.setRaw("label", label); + this.labels.push(label); + return label; + } + axisLength() { + return 0; + } + /** + * @ignore + */ + gridCount() { + return this.axisLength() / this.get("minGridDistance", 50); + } + _updatePositions() { + } + _afterNew() { + super._afterNew(); + this.set("isMeasured", false); + const thumb = this.thumb; + if (thumb) { + this._disposers.push(thumb.events.on("pointerdown", (event) => { + this._handleThumbDown(event); + })); + this._disposers.push(thumb.events.on("globalpointerup", (event) => { + this._handleThumbUp(event); + })); + this._disposers.push(thumb.events.on("globalpointermove", (event) => { + this._handleThumbMove(event); + })); + } + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("minGridDistance")) { + this.root.events.once("frameended", () => { + this.axis.markDirtySize(); + }); + } + } + _changed() { + super._changed(); + if (this.isDirty("pan")) { + const thumb = this.thumb; + if (thumb) { + const labelsContainer = this.axis.labelsContainer; + const pan = this.get("pan"); + if (pan == "zoom") { + labelsContainer.children.push(thumb); + } else if (pan == "none") { + labelsContainer.children.removeValue(thumb); + } + } + } + } + _handleThumbDown(event) { + this._thumbDownPoint = this.toLocal(event.point); + const axis = this.axis; + this._downStart = axis.get("start"); + this._downEnd = axis.get("end"); + } + _handleThumbUp(_event) { + this._thumbDownPoint = void 0; + } + _handleThumbMove(event) { + const downPoint = this._thumbDownPoint; + if (downPoint) { + const point = this.toLocal(event.point); + const downStart = this._downStart; + const downEnd = this._downEnd; + const extra = this._getPan(point, downPoint) * Math.min(1, downEnd - downStart) / 2 * this.get("panSensitivity", 1); + this.axis.zoom(downStart - extra, downEnd + extra, 0); + } + } + _getPan(_point1, _point2) { + return 0; + } + /** + * Converts relative position (0-1) on axis to a pixel coordinate. + * + * @param position Position (0-1) + * @return Coordinate (px) + */ + positionToCoordinate(position) { + if (this._inversed) { + return (this._end - position) * this._axisLength; + } else { + return (position - this._start) * this._axisLength; + } + } + /** + * @ignore + */ + updateTooltipBounds(_tooltip) { + } + _updateSize() { + this.markDirty(); + this._clear = true; + } + /** + * @ignore + */ + toAxisPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + position = position * (end - start); + if (!this.get("inversed")) { + position = start + position; + } else { + position = end - position; + } + return position; + } + /** + * @ignore + */ + toGlobalPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + if (!this.get("inversed")) { + position = position - start; + } else { + position = end - position; + } + position = position / (end - start); + return position; + } + /** + * @ignore + */ + fixPosition(position) { + if (this.get("inversed")) { + return 1 - position; + } + return position; + } + /** + * @ignore + */ + _updateLC() { + } + toggleVisibility(sprite, position, minPosition, maxPosition) { + let axis = this.axis; + const start = axis.get("start", 0); + const end = axis.get("end", 1); + let updatedStart = start + (end - start) * (minPosition - 1e-4); + let updatedEnd = start + (end - start) * (maxPosition + 1e-4); + if (position < updatedStart || position > updatedEnd) { + sprite.setPrivate("visible", false); + } else { + sprite.setPrivate("visible", true); + } + } + _positionTooltip(tooltip, point) { + const chart2 = this.chart; + if (chart2) { + tooltip.set("pointTo", this._display.toGlobal(point)); + if (!chart2.inPlot(point)) { + tooltip.hide(); + } + } + } + processAxis() { + } + }; + AxisRenderer.className = "AxisRenderer"; + AxisRenderer.classNames = Graphics.classNames.concat([AxisRenderer.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/AxisRendererX.js + var AxisRendererX = class extends AxisRenderer { + constructor() { + super(...arguments); + this.thumb = Rectangle.new(this._root, { width: p100, isMeasured: false, themeTags: ["axis", "x", "thumb", "zoomgrip"] }); + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["renderer", "x"]); + super._afterNew(); + this.setPrivateRaw("letter", "X"); + const gridTemplate = this.grid.template; + gridTemplate.set("height", p100); + gridTemplate.set("width", 0); + gridTemplate.set("draw", (display, graphics) => { + display.moveTo(0, 0); + display.lineTo(0, graphics.height()); + }); + this.set("draw", (display, graphics) => { + display.moveTo(0, 0); + display.lineTo(graphics.width(), 0); + }); + } + _changed() { + var _a; + super._changed(); + const axis = this.axis; + const ghostLabel = axis.ghostLabel; + if (ghostLabel) { + ghostLabel.setPrivate("visible", !this.get("inside")); + ghostLabel.set("x", -1e3); + } + const opposite = "opposite"; + const inside = "inside"; + if (this.isDirty(opposite) || this.isDirty(inside)) { + const chart2 = this.chart; + const axisChildren = axis.children; + if (this.get(inside)) { + axis.addTag(inside); + } else { + axis.removeTag(inside); + } + if (chart2) { + if (this.get(opposite)) { + const children = chart2.topAxesContainer.children; + if (children.indexOf(axis) == -1) { + children.insertIndex(0, axis); + } + axis.addTag(opposite); + axisChildren.moveValue(this); + } else { + const children = chart2.bottomAxesContainer.children; + if (children.indexOf(axis) == -1) { + children.moveValue(axis); + } + axis.removeTag(opposite); + axisChildren.moveValue(this, 0); + } + (_a = axis.ghostLabel) === null || _a === void 0 ? void 0 : _a._applyThemes(); + this.labels.each((label) => { + label._applyThemes(); + }); + this.root._markDirtyRedraw(); + } + axis.markDirtySize(); + } + this.thumb.setPrivate("height", axis.labelsContainer.height()); + } + _getPan(point1, point2) { + return (point2.x - point1.x) / this.width(); + } + /** + * @ignore + */ + toAxisPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + position -= this._ls; + position = position * (end - start) / this._lc; + if (!this.get("inversed")) { + position = start + position; + } else { + position = end - position; + } + return position; + } + /** + * @ignore + */ + toGlobalPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + if (!this.get("inversed")) { + position = position - start; + } else { + position = end - position; + } + position = position / (end - start) * this._lc; + position += this._ls; + return position; + } + /** + * @ignore + */ + _updateLC() { + const axis = this.axis; + const parent = axis.parent; + if (parent) { + const w = parent.innerWidth(); + this._lc = this.axisLength() / w; + this._ls = (axis.x() - parent.get("paddingLeft", 0)) / w; + } + } + /** + * @ignore + */ + _updatePositions() { + const axis = this.axis; + const x = axis.x() - relativeToValue(axis.get("centerX", 0), axis.width()) - axis.parent.get("paddingLeft", 0); + axis.gridContainer.set("x", x); + axis.topGridContainer.set("x", x); + axis.bulletsContainer.set("y", this.y()); + const chart2 = axis.chart; + if (chart2) { + const plotContainer = chart2.plotContainer; + const axisHeader = axis.axisHeader; + let width = axis.get("marginLeft", 0); + let x2 = axis.x() - width; + const parent = axis.parent; + if (parent) { + x2 -= parent.get("paddingLeft", 0); + } + if (axisHeader.children.length > 0) { + width = axis.axisHeader.width(); + axis.set("marginLeft", width + 1); + } else { + axisHeader.set("width", width); + } + axisHeader.setAll({ x: x2, y: -1, height: plotContainer.height() + 2 }); + } + } + /** + * @ignore + */ + processAxis() { + super.processAxis(); + const axis = this.axis; + if (axis.get("width") == null) { + axis.set("width", p100); + } + ; + const verticalLayout = this._root.verticalLayout; + axis.set("layout", verticalLayout); + axis.labelsContainer.set("width", p100); + axis.axisHeader.setAll({ layout: verticalLayout }); + } + /** + * @ignore + */ + axisLength() { + return this.axis.width(); + } + /** + * Converts axis relative position to actual coordinate in pixels. + * + * @param position Position + * @return Point + */ + positionToPoint(position) { + return { x: this.positionToCoordinate(position), y: 0 }; + } + /** + * @ignore + */ + updateTick(tick, position, endPosition, count) { + if (tick) { + if (!isNumber(position)) { + position = 0; + } + let location = 0.5; + if (isNumber(count) && count > 1) { + location = tick.get("multiLocation", location); + } else { + location = tick.get("location", location); + } + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + tick.set("x", this.positionToCoordinate(position)); + let length = tick.get("length", 0); + const inside = tick.get("inside", this.get("inside", false)); + if (this.get("opposite")) { + tick.set("y", p100); + if (!inside) { + length *= -1; + } + } else { + tick.set("y", 0); + if (inside) { + length *= -1; + } + } + tick.set("draw", (display) => { + display.moveTo(0, 0); + display.lineTo(0, length); + }); + this.toggleVisibility(tick, position, tick.get("minPosition", 0), tick.get("maxPosition", 1)); + } + } + /** + * @ignore + */ + updateLabel(label, position, endPosition, count) { + if (label) { + let location = 0.5; + if (isNumber(count) && count > 1) { + location = label.get("multiLocation", location); + } else { + location = label.get("location", location); + } + if (!isNumber(position)) { + position = 0; + } + const inside = label.get("inside", this.get("inside", false)); + const opposite = this.get("opposite"); + if (opposite) { + if (!inside) { + label.set("position", "relative"); + label.set("y", p100); + } else { + label.set("position", "absolute"); + label.set("y", 0); + } + } else { + if (!inside) { + label.set("y", void 0); + label.set("position", "relative"); + } else { + label.set("y", 0); + label.set("position", "absolute"); + } + } + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + label.set("x", this.positionToCoordinate(position)); + this.toggleVisibility(label, position, label.get("minPosition", 0), label.get("maxPosition", 1)); + } + } + /** + * @ignore + */ + updateGrid(grid, position, endPosition) { + if (grid) { + if (!isNumber(position)) { + position = 0; + } + let location = grid.get("location", 0.5); + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + grid.set("x", this.positionToCoordinate(position)); + this.toggleVisibility(grid, position, 0, 1); + } + } + /** + * @ignore + */ + updateBullet(bullet, position, endPosition) { + if (bullet) { + const sprite = bullet.get("sprite"); + if (sprite) { + if (!isNumber(position)) { + position = 0; + } + let location = bullet.get("location", 0.5); + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + let bulletPosition = this.axis.roundAxisPosition(position, location); + let previousBullet = this.axis._bullets[bulletPosition]; + let d = -1; + if (this.get("opposite")) { + d = 1; + } + if (bullet.get("stacked")) { + if (previousBullet) { + let previousSprite = previousBullet.get("sprite"); + if (previousSprite) { + sprite.set("y", previousSprite.y() + previousSprite.height() * d); + } + } else { + sprite.set("y", 0); + } + } + this.axis._bullets[bulletPosition] = bullet; + sprite.set("x", this.positionToCoordinate(position)); + this.toggleVisibility(sprite, position, 0, 1); + } + } + } + /** + * @ignore + */ + updateFill(fill, position, endPosition) { + if (fill) { + if (!isNumber(position)) { + position = 0; + } + if (!isNumber(endPosition)) { + endPosition = 1; + } + let x0 = this.positionToCoordinate(position); + let x1 = this.positionToCoordinate(endPosition); + this.fillDrawMethod(fill, x0, x1); + } + } + fillDrawMethod(fill, x0, x1) { + fill.set("draw", (display) => { + const h = this.axis.gridContainer.height(); + const w = this.width(); + if (x1 < x0) { + [x1, x0] = [x0, x1]; + } + if (x0 > w || x1 < 0) { + return; + } + display.moveTo(x0, 0); + display.lineTo(x1, 0); + display.lineTo(x1, h); + display.lineTo(x0, h); + display.lineTo(x0, 0); + }); + } + /** + * @ignore + */ + positionTooltip(tooltip, position) { + this._positionTooltip(tooltip, { x: this.positionToCoordinate(position), y: 0 }); + } + /** + * @ignore + */ + updateTooltipBounds(tooltip) { + const inside = this.get("inside"); + const num = 1e5; + let global = this._display.toGlobal({ x: 0, y: 0 }); + let x = global.x; + let y = 0; + let w = this.axisLength(); + let h = num; + let pointerOrientation = "up"; + if (this.get("opposite")) { + if (inside) { + pointerOrientation = "up"; + y = global.y; + h = num; + } else { + pointerOrientation = "down"; + y = global.y - num; + h = num; + } + } else { + if (inside) { + pointerOrientation = "down"; + y = global.y - num; + h = num; + } else { + pointerOrientation = "up"; + y = global.y; + h = num; + } + } + const bounds = { left: x, right: x + w, top: y, bottom: y + h }; + const oldBounds = tooltip.get("bounds"); + if (!sameBounds(bounds, oldBounds)) { + tooltip.set("bounds", bounds); + tooltip.set("pointerOrientation", pointerOrientation); + } + } + }; + AxisRendererX.className = "AxisRendererX"; + AxisRendererX.classNames = AxisRenderer.classNames.concat([AxisRendererX.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/AxisRendererY.js + var AxisRendererY = class extends AxisRenderer { + constructor() { + super(...arguments); + this.thumb = Rectangle.new(this._root, { height: p100, isMeasured: false, themeTags: ["axis", "y", "thumb", "zoomgrip"] }); + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["renderer", "y"]); + if (this._settings.opposite) { + this._settings.themeTags.push("opposite"); + } + super._afterNew(); + this.setPrivateRaw("letter", "Y"); + const gridTemplate = this.grid.template; + gridTemplate.set("width", p100); + gridTemplate.set("height", 0); + gridTemplate.set("draw", (display, graphics) => { + display.moveTo(0, 0); + display.lineTo(graphics.width(), 0); + }); + this.set("draw", (display, renderer) => { + display.moveTo(0, 0); + display.lineTo(0, renderer.height()); + }); + } + _getPan(point1, point2) { + return (point1.y - point2.y) / this.height(); + } + _changed() { + var _a; + super._changed(); + const axis = this.axis; + const ghostLabel = axis.ghostLabel; + if (ghostLabel) { + ghostLabel.setPrivate("visible", !this.get("inside")); + ghostLabel.set("y", -1e3); + } + const thumb = this.thumb; + const opposite = "opposite"; + const inside = "inside"; + const chart2 = this.chart; + if (this.isDirty(opposite) || this.isDirty(inside)) { + const axisChildren = axis.children; + if (this.get(inside)) { + axis.addTag(inside); + } else { + axis.removeTag(inside); + } + if (chart2) { + if (this.get(opposite)) { + const children = chart2.rightAxesContainer.children; + if (children.indexOf(axis) == -1) { + children.moveValue(axis, 0); + } + axis.addTag(opposite); + axisChildren.moveValue(this, 0); + } else { + const children = chart2.leftAxesContainer.children; + if (children.indexOf(axis) == -1) { + children.moveValue(axis); + } + axis.removeTag(opposite); + axisChildren.moveValue(this); + } + (_a = axis.ghostLabel) === null || _a === void 0 ? void 0 : _a._applyThemes(); + this.labels.each((label) => { + label._applyThemes(); + }); + this.root._markDirtyRedraw(); + } + axis.markDirtySize(); + } + const w = axis.labelsContainer.width(); + if (chart2) { + if (this.get(opposite)) { + thumb.set("centerX", 0); + } else { + thumb.set("centerX", w); + } + } + thumb.setPrivate("width", w); + } + /** + * @ignore + */ + processAxis() { + super.processAxis(); + const axis = this.axis; + if (axis.get("height") == null) { + axis.set("height", p100); + } + const horizontalLayout = this._root.horizontalLayout; + axis.set("layout", horizontalLayout); + axis.labelsContainer.set("height", p100); + axis.axisHeader.set("layout", horizontalLayout); + } + _updatePositions() { + const axis = this.axis; + const y = axis.y() - relativeToValue(axis.get("centerY", 0), axis.height()); + axis.gridContainer.set("y", y); + axis.topGridContainer.set("y", y); + axis.bulletsContainer.set("x", this.x()); + const chart2 = axis.chart; + if (chart2) { + const plotContainer = chart2.plotContainer; + const axisHeader = axis.axisHeader; + let height = axis.get("marginTop", 0); + if (axisHeader.children.length > 0) { + height = axis.axisHeader.height(); + axis.set("marginTop", height + 1); + } else { + axisHeader.set("height", height); + } + axisHeader.setAll({ y: axis.y() - height, x: -1, width: plotContainer.width() + 2 }); + } + } + /** + * @ignore + */ + axisLength() { + return this.axis.innerHeight(); + } + /** + * Converts axis relative position to actual coordinate in pixels. + * + * @param position Position + * @return Point + */ + positionToPoint(position) { + return { x: 0, y: this.positionToCoordinate(position) }; + } + /** + * @ignore + */ + updateLabel(label, position, endPosition, count) { + if (label) { + if (!isNumber(position)) { + position = 0; + } + let location = 0.5; + if (isNumber(count) && count > 1) { + location = label.get("multiLocation", location); + } else { + location = label.get("location", location); + } + const opposite = this.get("opposite"); + const inside = label.get("inside", this.get("inside", false)); + if (opposite) { + label.set("x", 0); + if (inside) { + label.set("position", "absolute"); + } else { + label.set("position", "relative"); + } + } else { + if (inside) { + label.set("x", 0); + label.set("position", "absolute"); + } else { + label.set("x", void 0); + label.set("position", "relative"); + } + } + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + label.set("y", this.positionToCoordinate(position)); + this.toggleVisibility(label, position, label.get("minPosition", 0), label.get("maxPosition", 1)); + } + } + /** + * @ignore + */ + updateGrid(grid, position, endPosition) { + if (grid) { + if (!isNumber(position)) { + position = 0; + } + let location = grid.get("location", 0.5); + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + grid.set("y", this.positionToCoordinate(position)); + this.toggleVisibility(grid, position, 0, 1); + } + } + /** + * @ignore + */ + updateTick(tick, position, endPosition, count) { + if (tick) { + if (!isNumber(position)) { + position = 0; + } + let location = 0.5; + if (isNumber(count) && count > 1) { + location = tick.get("multiLocation", location); + } else { + location = tick.get("location", location); + } + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + tick.set("y", this.positionToCoordinate(position)); + let length = tick.get("length", 0); + const inside = tick.get("inside", this.get("inside", false)); + if (this.get("opposite")) { + tick.set("x", 0); + if (inside) { + length *= -1; + } + } else { + if (!inside) { + length *= -1; + } + } + tick.set("draw", (display) => { + display.moveTo(0, 0); + display.lineTo(length, 0); + }); + this.toggleVisibility(tick, position, tick.get("minPosition", 0), tick.get("maxPosition", 1)); + } + } + /** + * @ignore + */ + updateBullet(bullet, position, endPosition) { + if (bullet) { + const sprite = bullet.get("sprite"); + if (sprite) { + if (!isNumber(position)) { + position = 0; + } + let location = bullet.get("location", 0.5); + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + let bulletPosition = this.axis.roundAxisPosition(position, location); + let previousBullet = this.axis._bullets[bulletPosition]; + let d = 1; + if (this.get("opposite")) { + d = -1; + } + if (bullet.get("stacked")) { + if (previousBullet) { + let previousSprite = previousBullet.get("sprite"); + if (previousSprite) { + sprite.set("x", previousSprite.x() + previousSprite.width() * d); + } + } else { + sprite.set("x", 0); + } + } + this.axis._bullets[bulletPosition] = bullet; + sprite.set("y", this.positionToCoordinate(position)); + this.toggleVisibility(sprite, position, 0, 1); + } + } + } + /** + * @ignore + */ + updateFill(fill, position, endPosition) { + if (fill) { + if (!isNumber(position)) { + position = 0; + } + if (!isNumber(endPosition)) { + endPosition = 1; + } + let y0 = this.positionToCoordinate(position); + let y1 = this.positionToCoordinate(endPosition); + this.fillDrawMethod(fill, y0, y1); + } + } + fillDrawMethod(fill, y0, y1) { + fill.set("draw", (display) => { + const w = this.axis.gridContainer.width(); + const h = this.height(); + if (y1 < y0) { + [y1, y0] = [y0, y1]; + } + if (y0 > h || y1 < 0) { + return; + } + display.moveTo(0, y0); + display.lineTo(w, y0); + display.lineTo(w, y1); + display.lineTo(0, y1); + display.lineTo(0, y0); + }); + } + /** + * Converts relative position (0-1) on axis to a pixel coordinate. + * + * @param position Position (0-1) + * @return Coordinate (px) + */ + positionToCoordinate(position) { + if (!this._inversed) { + return (this._end - position) * this._axisLength; + } else { + return (position - this._start) * this._axisLength; + } + } + /** + * @ignore + */ + positionTooltip(tooltip, position) { + this._positionTooltip(tooltip, { x: 0, y: this.positionToCoordinate(position) }); + } + /** + * @ignore + */ + updateTooltipBounds(tooltip) { + const inside = this.get("inside"); + const num = 1e5; + let global = this._display.toGlobal({ x: 0, y: 0 }); + let y = global.y; + let x = 0; + let h = this.axisLength(); + let w = num; + let pointerOrientation = "right"; + if (this.get("opposite")) { + if (inside) { + pointerOrientation = "right"; + x = global.x - num; + w = num; + } else { + pointerOrientation = "left"; + x = global.x; + w = num; + } + } else { + if (inside) { + pointerOrientation = "left"; + x = global.x; + w = num; + } else { + pointerOrientation = "right"; + x = global.x - num; + w = num; + } + } + const bounds = { left: x, right: x + w, top: y, bottom: y + h }; + const oldBounds = tooltip.get("bounds"); + if (!sameBounds(bounds, oldBounds)) { + tooltip.set("bounds", bounds); + tooltip.set("pointerOrientation", pointerOrientation); + } + } + /** + * @ignore + */ + _updateLC() { + const axis = this.axis; + const parent = axis.parent; + if (parent) { + const h = parent.innerHeight(); + this._lc = this.axisLength() / h; + this._ls = axis.y() / h; + } + } + /** + * @ignore + */ + toAxisPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + position -= this._ls; + position = position * (end - start) / this._lc; + if (this.get("inversed")) { + position = start + position; + } else { + position = end - position; + } + return position; + } + /** + * @ignore + */ + toGlobalPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + if (this.get("inversed")) { + position = position - start; + } else { + position = end - position; + } + position = position / (end - start) * this._lc; + position += this._ls; + return position; + } + /** + * @ignore + */ + fixPosition(position) { + if (!this.get("inversed")) { + return 1 - position; + } + return position; + } + }; + AxisRendererY.className = "AxisRendererY"; + AxisRendererY.classNames = AxisRenderer.classNames.concat([AxisRendererY.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/series/ColumnSeries.js + var ColumnSeries = class extends BaseColumnSeries { + constructor() { + super(...arguments); + this.allColumns = this.children.push(Graphics.new(this._root, {})); + this.allColumnsData = []; + this.columns = this.addDisposer(new ListTemplate(Template.new({}), () => RoundedRectangle._new(this._root, { + position: "absolute", + themeTags: mergeTags(this.columns.template.get("themeTags", []), ["series", "column"]) + }, [this.columns.template]))); + } + /** + * @ignore + */ + makeColumn(dataItem, listTemplate) { + const column = listTemplate.make(); + if (!this.get("turboMode")) { + this.mainContainer.children.push(column); + } else { + column.virtualParent = this.chart; + } + column._setDataItem(dataItem); + listTemplate.push(column); + return column; + } + _processAxisRange(axisRange) { + super._processAxisRange(axisRange); + axisRange.columns = new ListTemplate(Template.new({}), () => RoundedRectangle._new(this._root, { + position: "absolute", + themeTags: mergeTags(axisRange.columns.template.get("themeTags", []), ["series", "column"]) + }, [this.columns.template, axisRange.columns.template])); + } + _beforeColumnsDraw() { + this.allColumnsData = []; + } + _afterColumnsDraw() { + if (this.get("turboMode")) { + this.allColumns.set("draw", (display) => { + display.clear(); + each(this.allColumnsData, (column) => { + const w = column.width; + const h = column.height; + const x = column.x; + const y = column.y; + const stroke = column.stroke; + const fill = column.fill; + const strokeWidth = column.strokeWidth; + const strokeOpacity = column.strokeOpacity; + const fillOpacity = column.fillOpacity; + display.beginFill(fill, fillOpacity); + display.beginPath(); + display.lineStyle(strokeWidth, stroke, strokeOpacity); + display.drawRect(x, y, w, h); + display.endStroke(); + display.endFill(); + }); + }); + } + } + _updateChildren() { + if (this.isDirty("turboMode")) { + this.markDirtyValues(); + if (!this.get("turboMode")) { + this.allColumns.set("draw", void 0); + } + } + super._updateChildren(); + } + _updateSeriesGraphics(dataItem, graphics, l, r, t, b, fitW, fitH) { + if (this.get("turboMode")) { + graphics.virtualParent = this.chart; + if (graphics.parent) { + this.mainContainer.children.removeValue(graphics); + graphics._parent = void 0; + } + const stroke = graphics.get("stroke"); + const fillOpacity = graphics.get("fillOpacity", 1); + const strokeOpacity = graphics.get("strokeOpacity", 1); + const strokWidth = graphics.get("strokeWidth", 1); + const fill = graphics.get("fill"); + const ptl = this.getPoint(l, t); + const pbr = this.getPoint(r, b); + const tooltipPoint = dataItem.get("point"); + if (tooltipPoint) { + const point = this.getPoint(tooltipPoint.x, tooltipPoint.y); + tooltipPoint.x = point.x + this._x; + tooltipPoint.y = point.y + this._y; + } + l = ptl.x; + r = pbr.x; + t = ptl.y; + b = pbr.y; + dataItem.setRaw("left", l); + dataItem.setRaw("right", r); + dataItem.setRaw("top", t); + dataItem.setRaw("bottom", b); + this.allColumnsData.push({ width: r - l, height: b - t, x: l, y: t, stroke, fill, strokeWidth: strokWidth, strokeOpacity, fillOpacity }); + } else { + if (!graphics.parent) { + this.mainContainer.children.push(graphics); + } + super._updateSeriesGraphics(dataItem, graphics, l, r, t, b, fitW, fitH); + } + } + }; + ColumnSeries.className = "ColumnSeries"; + ColumnSeries.classNames = BaseColumnSeries.classNames.concat([ColumnSeries.className]); + + // node_modules/@amcharts/amcharts5/.internal/themes/AnimatedTheme.js + var AnimatedTheme = class extends Theme { + setupDefaultRules() { + super.setupDefaultRules(); + this.rule("Component").setAll({ + interpolationDuration: 600 + }); + this.rule("Hierarchy").set("animationDuration", 600); + this.rule("Scrollbar").set("animationDuration", 600); + this.rule("Tooltip").set("animationDuration", 300); + this.rule("MapChart").set("animationDuration", 1e3); + this.rule("MapChart").set("wheelDuration", 300); + this.rule("Entity").setAll({ + stateAnimationDuration: 600 + }); + this.rule("Sprite").states.create("default", { stateAnimationDuration: 600 }); + this.rule("Tooltip", ["axis"]).setAll({ + animationDuration: 200 + }); + this.rule("WordCloud").set("animationDuration", 500); + this.rule("Polygon").set("animationDuration", 600); + this.rule("ArcDiagram").set("animationDuration", 600); + } + }; + + // node_modules/@amcharts/amcharts5/themes/Animated.js + var Animated_default = AnimatedTheme; + +// .build_tmp/bar_6_xy-stacked-column/index.ts + var root = Root.new("chartdiv"); + root.setThemes([ + Animated_default.new(root) + ]); + var chart = root.container.children.push(XYChart.new(root, { + panX: false, + panY: false, + wheelX: "panX", + wheelY: "zoomX", + layout: root.verticalLayout + })); + chart.set("scrollbarX", Scrollbar.new(root, { + orientation: "horizontal" + })); + var data = [{ + "year": "2021", + "europe": 2.5, + "namerica": 2.5, + "asia": 2.1, + "lamerica": 1, + "meast": 0.8, + "africa": 0.4 + }, { + "year": "2022", + "europe": 2.6, + "namerica": 2.7, + "asia": 2.2, + "lamerica": 0.5, + "meast": 0.4, + "africa": 0.3 + }, { + "year": "2023", + "europe": 2.8, + "namerica": 2.9, + "asia": 2.4, + "lamerica": 0.3, + "meast": 0.9, + "africa": 0.5 + }]; + var xAxis = chart.xAxes.push(CategoryAxis.new(root, { + categoryField: "year", + renderer: AxisRendererX.new(root, {}), + tooltip: Tooltip.new(root, {}) + })); + xAxis.data.setAll(data); + var yAxis = chart.yAxes.push(ValueAxis.new(root, { + min: 0, + renderer: AxisRendererY.new(root, {}) + })); + var legend = chart.children.push(Legend.new(root, { + centerX: p50, + x: p50 + })); + function makeSeries(name, fieldName) { + var series = chart.series.push(ColumnSeries.new(root, { + name, + stacked: true, + xAxis, + yAxis, + valueYField: fieldName, + categoryXField: "year" + })); + series.columns.template.setAll({ + tooltipText: "{name}, {categoryX}: {valueY}", + tooltipY: percent(10) + }); + series.data.setAll(data); + series.appear(); + series.bullets.push(function() { + return Bullet.new(root, { + sprite: Label.new(root, { + text: "{valueY}", + fill: root.interfaceColors.get("alternativeText"), + centerY: p50, + centerX: p50, + populateText: true + }) + }); + }); + legend.data.push(series); + } + makeSeries("Europe", "europe"); + makeSeries("North America", "namerica"); + makeSeries("Asia", "asia"); + makeSeries("Latin America", "lamerica"); + makeSeries("Middle East", "meast"); + makeSeries("Africa", "africa"); + chart.appear(1e3, 100); +})(); diff --git a/web/amCharts/bar/chart_0079_bar.html b/web/amCharts/bar/chart_0079_bar.html new file mode 100644 index 0000000000000000000000000000000000000000..436775c2c95b7828ac9e1d627a3c46fbd68dedf1 --- /dev/null +++ b/web/amCharts/bar/chart_0079_bar.html @@ -0,0 +1,165 @@ + + + + + + Columns with Grainy Gradients + + + +
+ + + + + + diff --git a/web/amCharts/bar/chart_0079_bar.inline01.js b/web/amCharts/bar/chart_0079_bar.inline01.js new file mode 100644 index 0000000000000000000000000000000000000000..3fe3e3caca2e468e70f044c7aaeaa49dfcb8d974 --- /dev/null +++ b/web/amCharts/bar/chart_0079_bar.inline01.js @@ -0,0 +1,2 @@ +!function(){var t,e,i,s,n,r={3145:function(t,e,i){"use strict";i.d(e,{UZ:function(){return r},cP:function(){return n},f_:function(){return o},i_:function(){return s}});const s=new class{constructor(){this.version="5.16.0",this.licenses=[],this.entitiesById={},this.rootElements=[],this.autoDispose=!1}};function n(t){s.licenses.push(t)}function r(){let t;for(;t=s.rootElements.pop();)t.dispose()}function o(t){let e;return s.rootElements.forEach((i=>{i.dom.id==t&&(e=i)})),e}},2855:function(t,e,i){"use strict";i.d(e,{f:function(){return F}});var s=i(6490),n=i(8777),r=i(2036),o=i(4431),a=i(1706),h=i(6881),l=i(7449),c=i(5071),u=i(7652);class d{constructor(){this._targets=[],this._observer=new ResizeObserver((t=>{c.each(t,(t=>{c.each(this._targets,(e=>{e.target===t.target&&e.callback()}))}))}))}addTarget(t,e){this._observer.observe(t,{box:"border-box"}),this._targets.push({target:t,callback:e})}removeTarget(t){this._observer.unobserve(t),c.keepIf(this._targets,(e=>e.target!==t))}}class p{constructor(){this._timer=null,this._targets=[]}addTarget(t,e){if(null===this._timer){let t=null;const e=()=>{const i=Date.now();(null===t||i>t+p.delay)&&(t=i,c.each(this._targets,(t=>{let e=t.target.getBoundingClientRect();e.width===t.size.width&&e.height===t.size.height||(t.size=e,t.callback())}))),0===this._targets.length?this._timer=null:this._timer=requestAnimationFrame(e)};this._timer=requestAnimationFrame(e)}this._targets.push({target:t,callback:e,size:{width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0}})}removeTarget(t){c.keepIf(this._targets,(e=>e.target!==t)),0===this._targets.length&&null!==this._timer&&(cancelAnimationFrame(this._timer),this._timer=null)}}p.delay=200;let g=null;class f{constructor(t,e){this._disposed=!1,this._sensor=(null===g&&(g="undefined"!=typeof ResizeObserver?new d:new p),g),this._element=t,this._listener=u.onZoom(e),this._sensor.addTarget(t,e)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}var _=i(9821),m=i(1479),y=i(7142),v=i(2876),w=i(780),b=i(6460),x=i(798),D=i(6331),k=i(256),T=i(3100);class M extends D.JH{_setDefaults(){this.setPrivate("defaultLocale",T.Z),super._setDefaults()}translate(t,e,...i){e||(e=this._root.locale||this.getPrivate("defaultLocale"));let s=t,n=e[t];if(null===n)s="";else if(null!=n)n&&(s=n);else if(e!==this.getPrivate("defaultLocale"))return this.translate(t,this.getPrivate("defaultLocale"),...i);if(i.length)for(let t=i.length,e=0;e{this.setTranslationAny(t,i,e)}))}translateEmpty(t,e,...i){let s=this.translate(t,e,...i);return s==t?"":s}translateFunc(t,e){return this._root.locale[t]?this._root.locale[t]:e!==this.getPrivate("defaultLocale")?this.translateFunc(t,this.getPrivate("defaultLocale")):()=>""}translateAll(t,e){return this.isDefault()?t:c.map(t,(t=>this.translate(t,e)))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}var E=i(9770),O=i(3783),P=i(4102),S=i(6245),N=i(1112),C=i(2132),L=i(3145),A=i(3540),R=i(5040),U=i(9395);function B(t,e){null==t?requestAnimationFrame(e):setTimeout((()=>{requestAnimationFrame(e)}),1e3/t)}class F{constructor(t,e={},i){if(this._isDirty=!1,this._isDirtyParents=!1,this._isDirtyAnimation=!1,this._dirty={},this._dirtyParents={},this._dirtyBounds={},this._dirtyPositions={},this._ticker=null,this._tickers=[],this._updateTick=!0,this.skipRenderFrame=!1,this.events=new E.p,this.animationTime=null,this._animations=[],this.language=M.new(this,{}),this.locale=T.Z,this.utc=!1,this.numberFormatter=w.e.new(this,{}),this.dateFormatter=b.C.new(this,{}),this.durationFormatter=x.$.new(this,{}),this.tabindex=0,this._tabindexes=[],this._a11yD=!1,this._focusElementDirty=!1,this._skipNextGroupJump=!0,this.verticalLayout=a.Z.new(this,{}),this.horizontalLayout=o.G.new(this,{}),this.gridLayout=h.M.new(this,{}),this._paused=!1,this.autoResize=!0,this._fontHash="",this._isDisposed=!1,this._disposers=[],this._tooltips=[],this._htmlEnabledContainers=[],this.entitiesById={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");let s,n;if(this._settings=e,0==e.accessible&&(this._a11yD=!0),null==e.useSafeResolution&&(e.useSafeResolution=!0),e.useSafeResolution&&(s=u.getSafeResolution()),this._renderer=new P.uK(s),n=t instanceof HTMLElement?t:document.getElementById(t),c.each(L.i_.rootElements,(t=>{if(t.dom===n){if(!L.i_.autoDispose)throw new Error("You cannot have multiple Roots on the same DOM node");t.dispose()}})),this.interfaceColors=_.v.new(this,{}),null===n)throw new Error("Could not find HTML element with id `"+t+"`");this.dom=n;let r=document.createElement("div");r.style.position="relative",r.style.width="100%",r.style.height="100%",n.appendChild(r);const l=e.tooltipContainerBounds;l&&(this._tooltipContainerSettings=l),this._inner=r,this._updateComputedStyles(),L.i_.rootElements.push(this)}static new(t,e){const i=new F(t,e,!0);return i._init(),i}moveDOM(t){let e;if(e=t instanceof HTMLElement?t:document.getElementById(t),e){for(;this.dom.childNodes.length>0;)e.appendChild(this.dom.childNodes[0]);this.dom=e,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const t=this.dom.offsetWidth,e=this.dom.offsetHeight;t<=150||e<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const t=this.tooltipContainer.children.push(n.W.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:(0,S.aQ)(100),centerY:S.AQ,tooltipY:10,tooltipText:"Created using amCharts 5",tooltipX:S.AQ,cursorOverStyle:"pointer",background:y.A.new(this,{fill:(0,N.$_)(4671320),fillOpacity:0,tooltipY:5})}));t.set("tooltip",this.systemTooltip),t.events.on("click",(()=>{window.open("https://www.amcharts.com/","_blank")})),t.states.create("hover",{});const e=t.children.push(m.T.new(this,{stroke:(0,N.$_)(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6",dx:-50,strokeOpacity:0}));e.states.create("hover",{stroke:(0,N.$_)(3976191)});const i=t.children.push(m.T.new(this,{stroke:(0,N.$_)(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0",dx:50,strokeOpacity:0})),s=U.out(U.cubic),r=1500;t.setTimeout((()=>{i.animate({key:"strokeOpacity",to:1,duration:r,easing:s}),i.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"strokeOpacity",to:1,duration:r,easing:s})}),3e3),i.states.create("hover",{stroke:(0,N.$_)(4671320)}),this._logo=t,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(t){return this._settings.calculateSize?this._settings.calculateSize(t):{width:t.width,height:t.height}}_init(){const t=this._settings;!1!==t.accessible&&(t.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),t.ariaLabel&&this._inner.setAttribute("aria-label",t.ariaLabel),t.role&&this._inner.setAttribute("role",t.role));const e=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),r=Math.floor(s.width),o=Math.floor(s.height),a=Math.floor(i.width),h=Math.floor(i.height),l=n.W.new(this,{visible:!0,width:r,height:o});this._rootContainer=l,this._rootContainer._defaultThemes.push(O.X.new(this));const c=l.children.push(n.W.new(this,{visible:!0,width:S.AQ,height:S.AQ}));this.container=c,e.resize(a,h,r,o),this._inner.appendChild(e.view),this._initResizeSensor();const d=document.createElement("div");if(this._htmlElementContainer=d,d.className="am5-html-container",d.style.position="absolute",d.style.pointerEvents="none",this._tooltipContainerSettings||(d.style.overflow="hidden"),this._inner.appendChild(d),!0!==this._a11yD){const t=document.createElement("div");t.className="am5-reader-container",t.setAttribute("role","alert"),t.style.position="absolute",t.style.width="1px",t.style.height="1px",t.style.overflow="hidden",t.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=t,this._inner.appendChild(this._readerAlertElement);const i=document.createElement("div");i.className="am5-focus-container",i.style.position="absolute",i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.width=r+"px",i.style.height=o+"px",i.setAttribute("role","graphics-document"),u.setInteractive(i,!1),this._focusElementContainer=i,this._inner.appendChild(this._focusElementContainer);const s=document.createElement("div");this._tooltipElementContainer=s,s.className="am5-tooltip-container",this._inner.appendChild(s),u.supports("keyboardevents")&&(this._disposers.push(u.addEventListener(window,"keydown",(t=>{const e=u.getEventKey(t);"Shift"==e?this._isShift=!0:"Tab"==e&&(this._isShift=t.shiftKey)}))),this._disposers.push(u.addEventListener(window,"keyup",(t=>{"Shift"==u.getEventKey(t)&&(this._isShift=!1)}))),this._disposers.push(u.addEventListener(i,"click",(()=>{const t=this._focusedSprite;if(t){const i=t.get("clickAnnounceText","");""!==i&&this.readerAlert(i);const s=e.getEvent(new MouseEvent("click"));t.events.dispatch("click",{type:"click",originalEvent:s.event,point:s.point,simulated:!0,target:t})}}))),this._disposers.push(u.addEventListener(i,"keydown",(t=>{const i=this._focusedSprite;if(i){"Escape"==t.key&&(u.blur(),this._focusedSprite=void 0);let s=0,n=0;const r=u.getEventKey(t);switch(r){case"Enter":case" ":const o=i.get("clickAnnounceText","");if(""!==o&&this.readerAlert(o)," "==r&&"checkbox"!=i.get("role"))return;t.preventDefault();const a=e.getEvent(new MouseEvent("mouse"));return void i.events.dispatch("click",{type:"click",originalEvent:a.event,point:a.point,simulated:!0,target:i});case"ArrowLeft":s=-6;break;case"ArrowRight":s=6;break;case"ArrowUp":n=-6;break;case"ArrowDown":n=6;break;default:return}if(0!=s||0!=n){if(t.preventDefault(),!i.isDragging()){this._keyboardDragPoint={x:0,y:0};const t=e.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));t.point={x:0,y:0},i.events.isEnabled("pointerdown")&&i.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:t.event,point:t.point,simulated:!0,target:i})}const r=this._keyboardDragPoint;r.x+=s,r.y+=n;const o=e.getEvent(new MouseEvent("mousemove",{clientX:r.x,clientY:r.y}),!1);i.events.isEnabled("globalpointermove")&&i.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:o.event,point:o.point,simulated:!0,target:i})}}}))),this._disposers.push(u.addEventListener(i,"keyup",(t=>{if(this._focusedSprite){const i=this._focusedSprite,s=u.getEventKey(t);switch(s){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(i.isDragging()){const t=this._keyboardDragPoint,s=e.getEvent(new MouseEvent("mouseup",{clientX:t.x,clientY:t.y}));return i.events.isEnabled("globalpointerup")&&i.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:s.event,point:s.point,simulated:!0,target:i}),void(this._keyboardDragPoint=void 0)}if(i.get("focusableGroup")){const t=i.get("focusableGroup"),e=this._tabindexes.filter((e=>!(e.get("focusableGroup")!=t||!1===e.getPrivate("focusable")||!e.isVisibleDeep())));let n=e.indexOf(i);const r=e.length-1;n+="ArrowRight"==s||"ArrowDown"==s?1:-1,n<0?n=r:n>r&&(n=0),u.focus(e[n].getPrivate("focusElement").dom)}break;case"Tab":const t=i.get("focusableGroup");if(t&&this._isShift)return void(this._skipNextGroupJump||(this._focusNext(i.getPrivate("focusElement").dom,-1,t),this._skipNextGroupJump=!0))}}}))))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}get systemTooltip(){if(!this._systemTooltip){const t=v.u.new(this,{themeTags:["system"]});this._systemTooltip=t}return this._systemTooltip}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new f(this.dom,(()=>{this.autoResize&&this.resize()})),this._disposers.push(this._resizeSensorDisposer)}resize(){const t=this._getRealSize(),e=this._getCalculatedSize(t),i=Math.floor(e.width),s=Math.floor(e.height);if(i>0&&s>0){const e=Math.floor(t.width),n=Math.floor(t.height),r=this._htmlElementContainer;if(r.style.width=i+"px",r.style.height=s+"px",!0!==this._a11yD){const t=this._focusElementContainer;t.style.width=i+"px",t.style.height=s+"px"}this._renderer.resize(e,n,i,s);const o=this._rootContainer;o.setPrivate("width",i),o.setPrivate("height",s),this._render(),this._handleLogo()}}_render(){this.skipRenderFrame?this.skipRenderFrame=!1:(this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1))}_runTickers(t){c.each(this._tickers,(e=>{e(t)}))}_runAnimations(t){let e=0;return c.keepIf(this._animations,(i=>{const n=i._runAnimation(t);return n!==s.SR.Stopped&&(n!==s.SR.Playing||(++e,!0))})),this._isDirtyAnimation=!1,0===e}_runDirties(){let t={};for(;this._isDirtyParents;)this._isDirtyParents=!1,k.entries(this._dirtyParents).forEach((([e,i])=>{delete this._dirtyParents[e],i.isDisposed()||(t[i.uid]=i,i._prepareChildren())}));k.entries(t).forEach((([t,e])=>{e._updateChildren()}));const e=[];k.entries(this._dirty).forEach((([t,i])=>{i.isDisposed()?delete this._dirty[t]:(e.push(i),i._beforeChanged())})),e.forEach((t=>{t._changed(),delete this._dirty[t.uid],t._clearDirty()})),this._isDirty=!1;const i={},s=[];k.entries(this._dirtyBounds).forEach((([t,e])=>{delete this._dirtyBounds[t],e.isDisposed()||(i[e.uid]=e.depth(),s.push(e))})),this._positionHTMLElements(),s.sort(((t,e)=>A.qu(i[e.uid],i[t.uid]))),s.forEach((t=>{t._updateBounds()}));const n=this._dirtyPositions;k.entries(n).forEach((([t,e])=>{delete n[t],e.isDisposed()||e._updatePosition()})),e.forEach((t=>{t._afterChanged()})),k.entries(t).forEach((([t,e])=>{e._childrenPrep=!1,e._childrenUpdt=!1}))}_renderFrame(t){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:t}),this._checkComputedStyles(),this._runTickers(t);const e=this._runAnimations(t);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:t}),0===this._tickers.length&&e&&!this._isDirtyAnimation&&!this._isDirty}return!0}_runTicker(t,e){this.isDisposed()||(this.animationTime=t,this._renderFrame(t)?(this._ticker=null,this.animationTime=null):this._paused||(e?this._ticker:B(this.fps,this._ticker)))}_runTickerNow(t=1e4){if(!this.isDisposed()){const e=performance.now()+t;for(;;){const t=performance.now();if(t>=e){this.animationTime=null;break}if(this.animationTime=t,this._renderFrame(t)){this.animationTime=null;break}}}}_startTicker(){null===this._ticker&&(this.animationTime=null,this._ticker=t=>{this._runTicker(t)},B(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(t){this._updateTick=t,t&&this._startTicker()}_addDirtyEntity(t){this._isDirty=!0,void 0===this._dirty[t.uid]&&(this._dirty[t.uid]=t),this._startTicker()}_addDirtyParent(t){this._isDirty=!0,this._isDirtyParents=!0,void 0===this._dirtyParents[t.uid]&&(this._dirtyParents[t.uid]=t),this._startTicker()}_addDirtyBounds(t){this._isDirty=!0,void 0===this._dirtyBounds[t.uid]&&(this._dirtyBounds[t.uid]=t),this._startTicker()}_addDirtyPosition(t){this._isDirty=!0,void 0===this._dirtyPositions[t.uid]&&(this._dirtyPositions[t.uid]=t),this._startTicker()}_addAnimation(t){this._isDirtyAnimation=!0,-1===this._animations.indexOf(t)&&this._animations.push(t),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",(()=>{this._isDirty=!0,this._startTicker()}))}eachFrame(t){return this._tickers.push(t),this._startTicker(),new l.ku((()=>{c.removeFirst(this._tickers,t)}))}markDirtyGlobal(t){t||(t=this.container),t.walkChildren((t=>{t instanceof n.W&&this.markDirtyGlobal(t),t.markDirty(),t.markDirtyBounds()}))}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),c.each(this._disposers,(t=>{t.dispose()})),this._inner&&u.removeElement(this._inner),c.remove(L.i_.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(t){if(!0!==this._a11yD){const e=this._readerAlertElement;t=u.stripTags(t),e.innerHTML==t&&(e.innerHTML=""),e.innerHTML=t}}setThemes(t){this._rootContainer.set("themes",t);const e=this.tooltipContainer;e&&e._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const t=this._tooltipContainerSettings,e=this._rootContainer.children.push(n.W.new(this,{position:"absolute",isMeasured:!1,width:S.AQ,height:S.AQ,layer:t?35:30,layerMargin:t||void 0}));this.tooltipContainer=e;const i=v.u.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(t){1!=this._a11yD&&(t.get("focusable")?c.pushOne(this._tabindexes,t):c.remove(this._tabindexes,t),this._invalidateTabindexes())}_unregisterTabindexOrder(t){1!=this._a11yD&&(c.remove(this._tabindexes,t),this._invalidateTabindexes())}_invalidateTabindexes(){if(1==this._a11yD)return;this._tabindexes.sort(((t,e)=>{const i=t.get("tabindexOrder",0),s=e.get("tabindexOrder",0);return i==s?0:i>s?1:-1}));const t=[];c.each(this._tabindexes,((e,i)=>{e.getPrivate("focusElement")?this._moveFocusElement(i,e):this._makeFocusElement(i,e);const s=e.get("focusableGroup");s&&!1!==e.getPrivate("focusable")&&(-1!==t.indexOf(s)?e.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):t.push(s))}))}_updateCurrentFocus(){1!=this._a11yD&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(t,e){if(1==this._a11yD)return;if(e||(e=t.getPrivate("focusElement").dom),!e)return;const i=t.get("role");i?e.setAttribute("role",i):e.removeAttribute("role");const s=t.get("ariaLabel");if(s){const i=(0,C.q)(t,s);e.setAttribute("aria-label",i)}else e.removeAttribute("aria-label");const n=t.get("ariaLive");n?e.setAttribute("aria-live",n):e.removeAttribute("aria-live");const r=t.get("ariaChecked");null!=r&&i&&-1!==["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)?e.setAttribute("aria-checked",r?"true":"false"):e.removeAttribute("aria-checked");const o=t.get("ariaCurrent");null!=o?e.setAttribute("aria-current",o):e.removeAttribute("aria-current");const a=t.get("ariaSelected");null!=a&&i&&-1!==["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)?e.setAttribute("aria-selected",a?"true":"false"):e.removeAttribute("aria-selected"),t.get("ariaHidden")?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden");const h=t.get("ariaOrientation");h?e.setAttribute("aria-orientation",h):e.removeAttribute("aria-orientation");const l=t.get("ariaValueNow");l?e.setAttribute("aria-valuenow",l):e.removeAttribute("aria-valuenow");const c=t.get("ariaValueMin");c?e.setAttribute("aria-valuemin",c):e.removeAttribute("aria-valuemin");const u=t.get("ariaValueMax");u?e.setAttribute("aria-valuemax",u):e.removeAttribute("aria-valuemax");const d=t.get("ariaValueText");d?e.setAttribute("aria-valuetext",d):e.removeAttribute("aria-valuetext");const p=t.get("ariaControls");p?e.setAttribute("aria-controls",p):e.removeAttribute("aria-controls"),t.get("visible")&&0!==t.get("opacity")&&"tooltip"!=t.get("role")&&!t.isHidden()&&!1!==t.getPrivate("focusable")&&(t.height()||t.width())?("-1"!=e.getAttribute("tabindex")&&e.setAttribute("tabindex",""+this.tabindex),e.removeAttribute("aria-hidden")):(e.removeAttribute("tabindex"),e.setAttribute("aria-hidden","true"))}_makeFocusElement(t,e){if(e.getPrivate("focusElement")||1==this._a11yD)return;const i=document.createElement("div");"tooltip"!=e.get("role")&&(i.tabIndex=this.tabindex),i.style.position="absolute",u.setInteractive(i,!1);const s=[];e.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(e),s.push(u.addEventListener(i,"focus",(t=>{this._handleFocus(t)}))),s.push(u.addEventListener(i,"blur",(t=>{this._handleBlur(t)}))),this._moveFocusElement(t,e)}_removeFocusElement(t){if(1==this._a11yD)return;c.remove(this._tabindexes,t);const e=t.getPrivate("focusElement");e&&(this._focusElementContainer.removeChild(e.dom),c.each(e.disposers,(t=>{t.dispose()})))}_hideFocusElement(t){1!=this._a11yD&&(t.getPrivate("focusElement").dom.style.display="none")}_moveFocusElement(t,e){if(1==this._a11yD)return;const i=this._focusElementContainer,s=e.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[t])return;const n=this._focusElementContainer.children[t+1];n?i.insertBefore(s,n):i.append(s)}_positionFocusElement(t){if(1==this._a11yD||null==t)return;this._focusElementContainer.scrollTop=0;const e=t.globalBounds();let i=e.right==e.left?t.width():e.right-e.left,s=e.top==e.bottom?t.height():e.bottom-e.top;const n=void 0!==this._settings.focusPadding?this._settings.focusPadding:2;let r=e.left-n,o=e.top-n;i<0&&(r+=i,i=Math.abs(i)),s<0&&(o+=s,s=Math.abs(s));const a=t.getPrivate("focusElement").dom;a.style.top=o+"px",a.style.left=r+"px",a.style.width=i+2*n+"px",a.style.height=s+2*n+"px"}_getSpriteByFocusElement(t){let e;return c.eachContinue(this._tabindexes,((i,s)=>i.getPrivate("focusElement").dom!==t||(e=i,!1))),e}_handleFocus(t){if(1==this._a11yD)return;const e=this._getSpriteByFocusElement(t.target);e&&(e.isVisibleDeep()?(this._positionFocusElement(e),this._focusedSprite=e,e.events.isEnabled("focus")&&e.events.dispatch("focus",{type:"focus",originalEvent:t,target:e}),-1==e.getPrivate("focusElement").dom.tabIndex&&(this._skipNextGroupJump=!1)):this._focusNext(t.target,this._isShift?-1:1))}_focusNext(t,e,i){if(1==this._a11yD)return;const s=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(",")));let n=s.indexOf(t)+e;n<0?n=s.length-1:n>=s.length&&(n=0);const r=s[n];if(i&&-1==e){const t=this._getSpriteByFocusElement(r);if(t&&t.get("focusableGroup")==i)return void this._focusNext(r,e)}r.focus()}_handleBlur(t){if(1==this._a11yD)return;const e=this._focusedSprite;e&&!e.isDisposed()&&e.events.isEnabled("blur")&&e.events.dispatch("blur",{type:"blur",originalEvent:t,target:e}),this._focusedSprite=void 0}updateTooltip(t){if(1==this._a11yD)return;const e=u.stripTags(t._getText());let i=t.getPrivate("tooltipElement");"tooltip"==t.get("role")&&""!=e?(i||(i=this._makeTooltipElement(t)),i.innerHTML!=e&&(i.innerHTML=e),i.setAttribute("aria-hidden",t.isVisibleDeep()?"false":"true")):i&&(i.remove(),t.removePrivate("tooltipElement"))}_makeTooltipElement(t){const e=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",u.setInteractive(i,!1),this._decorateFocusElement(t,i),e.append(i),t.setPrivate("tooltipElement",i),i}_removeTooltipElement(t){if(1==this._a11yD)return;const e=t.getPrivate("tooltipElement");if(e){const t=e.parentElement;t&&t.removeChild(e)}}_invalidateAccessibility(t){if(1==this._a11yD)return;this._focusElementDirty=!0;const e=t.getPrivate("focusElement");t.get("focusable")?e&&(this._decorateFocusElement(t),this._positionFocusElement(t)):e&&this._removeFocusElement(t)}focused(t){return this._focusedSprite===t}documentPointToRoot(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:(t.x-e.left)*s,y:(t.y-e.top)*n}}rootPointToDocument(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:t.x/s+e.left,y:t.y/n+e.top}}addDisposer(t){return this._disposers.push(t),t}_updateComputedStyles(){const t=window.getComputedStyle(this.dom);let e="";k.each(t,((t,i)=>{R.isString(t)&&t.match(/^font/)&&(e+=i)}));const i=e!=this._fontHash;return i&&(this._fontHash=e),i}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(t){t instanceof n.W?t.children.each((t=>{this._invalidateLabelBounds(t)})):t instanceof r.x&&t.markDirtyBounds()}_hasLicense(){for(let t=0;t{if(t.get("verticalScrollbar"))return r=!0,s=t,!1})),r&&(n=document.createElement("div"),t.setPrivate("htmlElementWrapper",n),t.setPrivate("wrapperContainer",s),n.style.position="absolute",n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",s.events.on("boundschanged",(()=>{this._positionHTMLElement(t)}))),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",u.setInteractive(i,t.get("interactive",!1)),t.events.isEnabled("click")&&(u.setInteractive(i,!0),this._disposers.push(u.addEventListener(i,"click",(e=>{const i=this._renderer.getEvent(e);t.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))),this._positionHTMLElement(t),r?(n.append(i),e.append(n)):e.append(i),c.pushOne(this._htmlEnabledContainers,t),i}_positionHTMLElements(){c.each(this._htmlEnabledContainers,(t=>{this._positionHTMLElement(t)}))}_positionHTMLElement(t){const e=t.getPrivate("htmlElementWrapper");if(e){const i=t.getPrivate("wrapperContainer");if(i){const t=i.globalBounds();e.style.clipPath="rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"}}const i=t.getPrivate("htmlElement");if(i){const e=["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"];c.each(e,(e=>{const s=t.get(e);i.style[e]=s?s+"px":""}));const s=["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"];c.each(s,(e=>{const s=t.get(e);s?"fontSize"!=e||R.isString(s)?i.style[e]=s+"":i.style[e]=s+"px":i.style[e]=""}));const n=t.compositeScale()||1,r=t.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";const o=t.compositeOpacity();setTimeout((()=>{i.style.opacity=o+""}),10);const a=t.isVisibleDeep();a&&(i.style.display="block");let h={x:t.x()+t.get("dx",0),y:t.y()+t.get("dy",0)};t.parent&&(h=t.parent.toGlobal(h)),i.style.top=h.y+"px",i.style.left=h.x+"px";const l=t.get("width"),u=t.get("height");let d=0,p=0;if(l&&(d=t.width()),u&&(p=t.height()),!l||!u){i.style.position="fixed",i.style.width="",i.style.height="";const e=i.getBoundingClientRect();i.style.position="absolute",l||(d=e.width),u||(p=e.height);let s=d/n,r=p/n,o=t.get("centerX",0),a=t.get("centerY",0),h=0,c=0,g=0,f=0;o instanceof S.gG?(h=-o.value*s,c=(1-o.value)*s):(h=-o,c=s-o),a instanceof S.gG?(g=-a.value*r,f=(1-a.value)*r):(g=-a,f=r-a),t._localBounds={left:h,right:c,top:g,bottom:f};let _=t._adjustedLocalBounds,m=t._display.getAdjustedBounds(t._localBounds);t._adjustedLocalBounds=m,_.left===m.left&&_.right===m.right&&_.top===m.top&&_.bottom===m.bottom||t.markDirtyBounds()}d>0&&(i.style.minWidth=d+"px"),p>0&&(i.style.minHeight=p+"px"),a&&0!=o||(i.style.display="none");const g=t.get("centerX",0),f=(0,S.hU)(g)?g.percent+"%":g+"px",_=t.get("centerY",0),m=(0,S.hU)(_)?_.percent+"%":_+"px";(g||_)&&(i.style.transform="translate(-"+f+", -"+m+")"+i.style.transform),1!=n&&(i.style.transform+="scale("+n+")"),0!=r&&(i.style.transform+=" rotate("+r+"deg)"),""!=i.style.transform&&(i.style.transformOrigin=f+" "+m)}}_setHTMLContent(t,e){let i=t.getPrivate("htmlElement");i||(i=this._makeHTMLElement(t),this.autoResize||this.resize()),i.innerHTML!=e&&(i.innerHTML=e)}_removeHTMLContent(t){const e=t.getPrivate("htmlElementWrapper"),i=t.getPrivate("htmlElement");e?(this._htmlElementContainer.removeChild(e),t.removePrivate("htmlElement"),t.removePrivate("htmlElementWrapper"),t.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),t.removePrivate("htmlElement"),t.removePrivate("wrapperContainer")),c.remove(this._htmlEnabledContainers,t)}}},3409:function(t,e,i){"use strict";i.d(e,{Q:function(){return o}});var s=i(5769),n=i(3540),r=i(5071);class o{constructor(t,e){if(this._rules={},this._root=t,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(t){const e=new this(t,!0);return e.setupDefaultRules(),e}setupDefaultRules(){}_lookupRules(t){return this._rules[t]}ruleRaw(t,e=[]){let i=this._rules[t];i||(i=this._rules[t]=[]),e.sort(n.qu);const{index:o,found:a}=r.getSortedIndex(i,(t=>{const i=n.qu(t.tags.length,e.length);return 0===i?n.wq(t.tags,e,n.qu):i}));if(a)return i[o].template;{const t=s.YS.new({});return i.splice(o,0,{tags:e,template:t}),t}}rule(t,e=[]){return this.ruleRaw(t,e)}}},5108:function(t,e,i){"use strict";i.d(e,{g:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){const t=this.get("sprite");t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}}n.className="Bullet",n.classNames=s.JH.classNames.concat([n.className])},8054:function(t,e,i){"use strict";i.d(e,{z:function(){return o}});var s=i(3497),n=i(8777),r=i(7652);class o extends n.W{_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",s.c.new(this._root,{themeTags:r.mergeTags(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const t=this._prevSettings.icon,e=this.get("icon");e!==t&&(this._disposeProperty("icon"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.icon=e)}if(this.isDirty("label")){const t=this._prevSettings.label,e=this.get("label");e!==t&&(this._disposeProperty("label"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.label=e)}}}o.className="Button",o.classNames=n.W.classNames.concat([o.className])},1337:function(t,e,i){"use strict";i.d(e,{k:function(){return r}});var s=i(8777),n=i(6245);class r extends s.W{constructor(){super(...arguments),this.chartContainer=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,interactiveChildren:!1})),this.bulletsContainer=s.W.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:n.AQ,height:n.AQ})}}r.className="Chart",r.classNames=s.W.classNames.concat([r.className])},8035:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,Math.abs(this.get("radius",10)))}}n.className="Circle",n.classNames=s.T.classNames.concat([n.className])},9361:function(t,e,i){"use strict";i.d(e,{w:function(){return c},z:function(){return l}});var s=i(7582),n=i(6331),r=i(8777),o=i(9582),a=i(5071),h=i(256);class l extends n.Zr{constructor(t,e,i){super(i),this.dataContext=e,this.component=t,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(t){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,t)}hide(t){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,t)}isHidden(){return!this.get("visible")}}class c extends r.W{constructor(){super(...arguments),this._data=new o.k,this._dataItems=[],this._mainDataItems=this._dataItems,this.valueFields=[],this.fields=["id"],this._valuesDirty=!1,this._dataChanged=!1,this._dataGrouped=!1,this.inited=!1}set data(t){t.incrementRef(),this._data.decrementRef(),this._data=t}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((t=>{const e=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===t.type)a.each(e,(t=>{t.dispose()})),e.length=0,this._onDataClear();else if("push"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.push(i),this.processDataItem(i)}else if("setIndex"===t.type){const i=e[t.index],s=this._makeDataItem(t.newValue);i.bullets&&0==i.bullets.length&&(i.bullets=void 0),h.entries(s).forEach((([t,e])=>{i.get(t)!=e&&i.animate({key:t,to:e,duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})})),i.dataContext=t.newValue}else if("insertIndex"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.splice(t.index,0,i),this.processDataItem(i)}else if("removeIndex"===t.type)e[t.index].dispose(),e.splice(t.index,1);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");{const i=e[t.oldIndex];e.splice(t.oldIndex,1),e.splice(t.newIndex,0,i)}}this._afterDataChange()})))}_postUpdateData(){}updateData(t){let e=0;a.each(t,((t,i)=>{const s=this.dataItems[i];if(s){const e=s.dataContext;e&&h.entries(t).forEach((([t,i])=>{e[t]=i}));const i=this._makeDataItem(e);h.entries(i).forEach((([t,e])=>{var i;if(s.get(t)!=e){s.set(t,e);const n=null===(i=this._valueFieldsF[t])||void 0===i?void 0:i.workingKey;n&&s.set(n,e)}}))}else this.data.push(t);e=i}));for(let t=this.dataItems.length-1;t>e;t--){const e=this.dataItems[t];a.remove(this.dataItems,e),e.dispose()}this._postUpdateData()}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},a.each(this.valueFields,(t=>{this.get(t+"Field")&&(this._valueFields.push(t),this._valueFieldsF[t]={fieldKey:t+"Field",workingKey:t+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},a.each(this.fields,(t=>{this.get(t+"Field")&&(this._fields.push(t),this._fieldsF[t]=t+"Field")})))}get dataItems(){return this._dataItems}processDataItem(t){}_makeDataItem(t){const e={};return this._valueFields&&a.each(this._valueFields,(i=>{const s=this.get(this._valueFieldsF[i].fieldKey);e[i]=t[s],e[this._valueFieldsF[i].workingKey]=e[i]})),this._fields&&a.each(this._fields,(i=>{const s=this.get(this._fieldsF[i]);e[i]=t[s]})),e}makeDataItem(t,e){let i=new l(this,e,t);return this.processDataItem(i),i}pushDataItem(t,e){const i=this.makeDataItem(t,e);return this._mainDataItems.push(i),i}disposeDataItem(t){}showDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!0)}))}hideDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const t="datavalidated";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this._dataChanged=!1}if(this._valuesDirty){const t="valueschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.inited=!0}markDirtyValues(t){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}getDataItemById(t){return a.find(this.dataItems,(e=>e.get("id")==t))}}c.className="Component",c.classNames=r.W.classNames.concat([c.className])},2936:function(t,e,i){"use strict";i.d(e,{p:function(){return r}});var s=i(8054),n=i(7652);class r extends s.z{_afterNew(){super._afterNew(),this.addTag("confirm"),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{const e=n.getEventKey(t);this.get("active")&&"Escape"==e&&this._cancel()}))),this._disposers.push(n.addEventListener(document,"click",(()=>{this._ignoreClick||this._cancel(),this._ignoreClick=!1}))),this.events.on("click",(()=>{this.get("active")||(this._ignoreClick=!0),this._confirm()}))}_cancel(){this.get("active")&&(this.events.dispatch("cancelled",{type:"cancelled",target:this}),this.set("active",!1))}_confirm(){this.get("active")&&(this.events.dispatch("confirmed",{type:"confirmed",target:this}),this.set("active",!1),this.isFocus()&&this.setTimeout((()=>{this.set("active",!1),n.blur()}),10))}_prepareChildren(){super._prepareChildren()}}r.className="ConfirmButton",r.classNames=s.z.classNames.concat([r.className])},8777:function(t,e,i){"use strict";i.d(e,{W:function(){return f}});var s=i(7144),n=i(5071);class r extends s.aV{constructor(t){super(),this._disposed=!1,this._container=t,this._events=this.events.onAll((t=>{if("clear"===t.type)n.each(t.oldValues,(t=>{this._onRemoved(t)}));else if("push"===t.type)this._onInserted(t.newValue);else if("setIndex"===t.type)this._onRemoved(t.oldValue),this._onInserted(t.newValue,t.index);else if("insertIndex"===t.type)this._onInserted(t.newValue,t.index);else if("removeIndex"===t.type)this._onRemoved(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");this._onRemoved(t.value),this._onInserted(t.value,t.newIndex)}}))}_onInserted(t,e){t._setParent(this._container,!0);const i=this._container._childrenDisplay;void 0===e?i.addChild(t._display):i.addChildAt(t._display,e)}_onRemoved(t){this._container._childrenDisplay.removeChild(t._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),n.each(this.values,(t=>{t.dispose()})))}}var o=i(6245),a=i(4596),h=i(7142),l=i(4431),c=i(1706),u=i(6881),d=i(2132),p=i(5040),g=i(7652);class f extends a.j{constructor(){super(...arguments),this._display=this._root._renderer.makeContainer(),this._childrenDisplay=this._root._renderer.makeContainer(),this.children=new r(this),this._percentageSizeChildren=[],this._percentagePositionChildren=[],this._prevWidth=0,this._prevHeight=0,this._contentWidth=0,this._contentHeight=0,this._childrenPrep=!1,this._childrenUpdt=!1}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){n.eachReverse(this.allChildren(),(t=>{t.dispose()})),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_beforeChanged(){this._childrenPrep||this._prepareChildren(),this._childrenUpdt||this._updateChildren(),super._beforeChanged()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each((t=>{t.removePrivate("x"),t.removePrivate("y")}))),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each((t=>{t.markDirtyPosition()})),this.isDirty("maskContent")){const t=this._childrenDisplay;let e=this._contentMask;this.get("maskContent")?e||(e=h.A.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=e,t.addChildAt(e._display,0),t.mask=e._display):e&&(t.removeChild(e._display),t.mask=null,e.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),n.each(this._percentageSizeChildren,(t=>{t._updateSize()})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t._updateSize()})),this.updateBackground()}updateBackground(){const t=this.get("background");let e=this._localBounds;if(e&&!this.isHidden()){let i=e.left,s=e.top,n=e.right-i,r=e.bottom-s,o=this.get("maxWidth"),a=this.get("maxHeight");a&&r>a&&(r=a),o&&n>o&&(n=o);let h=this.width(),l=this.height();t&&(t.setAll({width:n,height:r,x:i,y:s}),this._display.interactive&&(t._display.interactive=!0));const c=this._contentMask;c&&c.setAll({width:h+1,height:l+1});const u=this.get("verticalScrollbar");if(u){u.set("height",l),u.set("x",h-u.width()-u.get("marginRight",0)),u.set("end",u.get("start",0)+l/this._contentHeight);const t=u.get("background");t&&t.setAll({width:u.width(),height:l});let e=!0;this._contentHeight<=l&&(e=!1),u.setPrivate("visible",e)}}}_applyThemes(t=!1){return!!super._applyThemes(t)&&(this.eachChildren((e=>{e._applyThemes(t)})),!0)}_applyState(t){super._applyState(t),this.get("setStateOnChildren")&&this.eachChildren((e=>{e.states.apply(t)}))}_applyStateAnimated(t,e){super._applyStateAnimated(t,e),this.get("setStateOnChildren")&&this.eachChildren((i=>{i.states.applyAnimate(t,e)}))}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let t=this._localBounds;t&&(this._contentWidth=t.right-t.left,this._contentHeight=t.bottom-t.top)}else{let t=this.get("width"),e=this.get("height"),i=this.getPrivate("width"),s=this.getPrivate("height"),n={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),o=!1,a=!1;if((r instanceof l.G||r instanceof u.M)&&(o=!0),r instanceof c.Z&&(a=!0),null==t&&null==i||null==e&&null==s||this.get("verticalScrollbar")){let t=Number.MAX_VALUE,e=t,i=-t,s=t,r=-t;const h=this.get("paddingLeft",0),l=this.get("paddingTop",0),c=this.get("paddingRight",0),u=this.get("paddingBottom",0);this.children.each((t=>{if("absolute"!=t.get("position")&&t.get("isMeasured")){let n=t.adjustedLocalBounds(),h=t.x(),l=t.y(),c=h+n.left,u=h+n.right,d=l+n.top,p=l+n.bottom;o&&(c-=t.get("marginLeft",0),u+=t.get("marginRight",0)),a&&(d-=t.get("marginTop",0),p+=t.get("marginBottom",0)),ci&&(i=u),dr&&(r=p)}})),e==t&&(e=0),i==-t&&(i=0),s==t&&(s=0),r==-t&&(r=0),n.left=e-h,n.top=s-l,n.right=i+c,n.bottom=r+u;const d=this.get("minWidth");p.isNumber(d)&&d>0&&n.right-n.left=d?n.left=n.right-d:n.right=n.left+d);const g=this.get("minHeight");p.isNumber(g)&&g>0&&n.bottom-n.top=g?n.top=n.bottom-g:n.bottom=n.top+g)}this._contentWidth=n.right-n.left,this._contentHeight=n.bottom-n.top,p.isNumber(t)&&(n.left=0,n.right=t),p.isNumber(i)&&(n.left=0,n.right=i),p.isNumber(e)&&(n.top=0,n.bottom=e),p.isNumber(s)&&(n.top=0,n.bottom=s),this._localBounds=n}}_updateBounds(){const t=this.get("layout");t&&t.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){this._childrenPrep=!0;const t=this.innerWidth(),e=this.innerHeight();if(t!=this._prevWidth||e!=this._prevHeight){let i=this.get("layout"),s=!1,r=!1;i&&((i instanceof l.G||i instanceof u.M)&&(s=!0),i instanceof c.Z&&(r=!0)),n.each(this._percentageSizeChildren,(i=>{if(!s){let e=i.get("width");e instanceof o.gG&&i.setPrivate("width",e.value*t)}if(!r){let t=i.get("height");t instanceof o.gG&&i.setPrivate("height",t.value*e)}})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t.markDirtyBounds()})),this._prevWidth=t,this._prevHeight=e,this._sizeDirty=!0,this.updateBackground()}}_updateHTMLContent(){const t=this.get("html","");t&&""!==t?this._root._setHTMLContent(this,(0,d.q)(this,t)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(t){const e=this.get("verticalScrollbar");if(e){let i=t.y(),s=this.innerHeight(),n=t.height(),r=this._contentHeight,o=1-(s-n/2)/r;if(i+.7*n+this._childrenDisplay.y>s||i-.3*n+this._childrenDisplay.y<0){let t=Math.max(0,Math.min(o,(i-n/2)/r));e.animate({key:"start",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")})}}}_updateChildren(){if(this._childrenUpdt=!0,this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){const t=this.get("verticalScrollbar");if(t){t._setParent(this),t.startGrip.setPrivate("visible",!1),t.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",t.width()+t.get("marginRight",0)+t.get("marginLeft",0));let e=this.get("background");e||(e=this.set("background",h.A.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",(e=>{const i=e.originalEvent;if(!g.isLocalEvent(i,this))return;i.preventDefault();let s=i.deltaY/5e3;const n=t.get("start",0),r=t.get("end",1);n+s<=0&&(s=-n),r+s>=1&&(s=1-r),n+s>=0&&r+s<=1&&(t.set("start",n+s),t.set("end",r+s))})),this._disposers.push(this._vsbd0),this._vsbd1=t.events.on("rangechanged",(()=>{let e=this._contentHeight;const i=this._childrenDisplay,s=this._contentMask;i.y=-t.get("start",0)*e,i.markDirtyLayer(),s&&(s._display.y=-i.y,i.mask=s._display)})),this._disposers.push(this._vsbd1),this._display.addChild(t._display)}else{const t=this._prevSettings.verticalScrollbar;t&&(this._display.removeChild(t._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose(),this._childrenDisplay.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0))}}if(this.isDirty("background")){const t=this._prevSettings.background;t&&this._display.removeChild(t._display);const e=this.get("background");e instanceof a.j&&(e.set("isMeasured",!1),e._setParent(this),this._display.addChildAt(e._display,0))}if(this.isDirty("mask")){const t=this.get("mask"),e=this._prevSettings.mask;if(e&&(this._display.removeChild(e._display),e!=t&&e.dispose()),t){const e=t.parent;e&&e.children.removeValue(t),t._setParent(this),this._display.addChildAt(t._display,0),this._childrenDisplay.mask=t._display}}}_processTemplateField(){super._processTemplateField(),this.children.each((t=>{t._processTemplateField()}))}walkChildren(t){this.children.each(((e,i)=>{e instanceof f&&e.walkChildren(t),t(e,i)}))}eachChildren(t){const e=this.get("background");e&&t(e);const i=this.get("verticalScrollbar");i&&t(i);const s=this.get("mask");s&&t(s),this.children.values.forEach((e=>{t(e)}))}allChildren(){const t=[];return this.eachChildren((e=>{t.push(e)})),t}_setDataItem(t){const e=t!==this._dataItem;super._setDataItem(t);const i=this.get("html","");i&&""!==i&&e&&this._root._setHTMLContent(this,(0,d.q)(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}}f.className="Container",f.classNames=a.j.classNames.concat([f.className])},6691:function(t,e,i){"use strict";i.d(e,{Y:function(){return d}});var s=i(962),n=i(8777),r=i(3497),o=i(6245),a=i(1112),h=i(7449),l=i(7652),c=i(5040),u=i(5071);class d extends s._{_afterNew(){super._afterNew();const t=this.children.push(n.W.new(this._root,{html:'',isMeasured:!1}));t.hide(),this.setPrivate("input",t);let e=this.get("background");e?e.set("themeTags",["editablelabel","background"]):e=this.set("background",r.c.new(this._root,{themeTags:["editablelabel","background"]}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();const t=this.get("editOn","click");"none"!=t&&(this._editOnEvents=new h.FV([this.getPrivate("input").events.on(t,(t=>{})),this.events.on(t,(t=>{this.set("active",!0)}))]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){const t=this.get("active",!1);t?this._startEditing():this._stopEditing();const e=this.get("background");e&&e.set("active",t)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){const t=this.getPrivate("input");if(t&&t.getPrivate("htmlElement")){const e=t.getPrivate("htmlElement").querySelector(".am5-editable-label");e&&(this.setPrivate("textarea",e),e.addEventListener("input",(t=>{!1===this.get("multiLine")&&(e.value=e.value.replace(/\n/g," ")),this.set("text",e.value),this._syncStyle()})),e.addEventListener("blur",(t=>this.set("active",!1))),l.supports("keyboardevents")&&this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Escape"==l.getEventKey(t)&&this.set("active",!1)}))),this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Enter"==l.getEventKey(t)&&!1===this.get("multiLine")&&(t.preventDefault(),this.set("active",!1))}))),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._startEditing()}));this._text.set("opacity",0);const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(""==this.get("text","")&&this.set("text"," "),t.show(0),this.setTimeout((()=>{this._syncStyle(),e.focus()}),100))}_stopEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._stopEditing()}));const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(this.set("text",e.value),t.hide(0),this._text.set("opacity",1))}_syncStyle(){const t=this.getPrivate("input"),e=this.getPrivate("textarea"),i=t.getPrivate("htmlElement");if(e&&i){const t=window.getComputedStyle(e);u.each(t,(t=>{e.style[t]="initial"})),e.style.color=this.get("fill",(0,a.$_)(0)).toCSS(this.get("fillOpacity",1)),e.style.backgroundColor="rgba(0, 0, 0, 0)",e.style.border="none",e.style.outline="none",e.style.padding="0",e.wrap="off",e.style.resize="none",e.style.overflow="hidden";const s=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);s>0?e.style.maxWidth=s+"px":e.style.minWidth="",e.style.height="auto",e.style.minHeight=e.scrollHeight+"px",this.get("width")&&(e.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",e.style.minWidth="");const n=this.get("lineHeight");n?n instanceof o.gG?e.style.lineHeight=n.value+"":c.isNumber(n)&&(e.style.lineHeight=n+""):e.style.lineHeight="1.2";let r=this.get("fontFamily");r||(r=getComputedStyle(i,"font-family").getPropertyValue("font-family")),e.style.fontFamily=r;let h=this.get("fontSize");h?c.isNumber(h)&&(h+="px"):h=getComputedStyle(i,"font-size").getPropertyValue("font-size"),e.style.fontSize=h;let l=this.get("fontWeight");l||(l=getComputedStyle(i,"font-weight").getPropertyValue("font-weight")),e.style.fontWeight=l;let d=this.get("fontStyle");d||(d=getComputedStyle(i,"font-style").getPropertyValue("font-style")),e.style.fontStyle=d;const p=this.get("oversizedBehavior");e.style.whiteSpace="wrap"==p?"pre-wrap":"nowrap",this._root.events.on("frameended",(()=>{""==e.style.minWidth&&(e.style.minWidth=e.scrollWidth+20+"px");const t=this.get("textAlign","start");"center"==t?(e.style.textAlign="center",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-50%)")):"end"==t?(e.style.textAlign="right",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-100%)")):e.style.textAlign=t}))}}_syncText(){const t=this.getPrivate("textarea");let e=this.get("text","");" "==e&&(e=""),t&&(t.value=e)}}d.className="EditableLabel",d.classNames=s._.classNames.concat([d.className])},2433:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radiusX")||this.isDirty("radiusY")||this.isDirty("rotation"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawEllipse(0,0,Math.abs(this.get("radiusX")),Math.abs(this.get("radiusY")))}}n.className="Ellipse",n.classNames=s.T.classNames.concat([n.className])},1479:function(t,e,i){"use strict";i.d(e,{T:function(){return l},u:function(){return h}});var s=i(4429),n=i(4596),r=i(4680),o=i(5040),a=i(5071);const h=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"];class l extends n.j{constructor(){super(...arguments),this._display=this._root._renderer.makeGraphics(),this._clear=!1}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const t=this.get("fillGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("fill")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("fill")}))))}}if(this.isDirty("strokeGradient")){const t=this.get("strokeGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("stroke")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("stroke")}))))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let t=this.get("strokeDasharray");o.isNumber(t)&&(t=t<.5?[0]:[t]),this._display.setLineDash(t);const e=this.get("strokeDashoffset");e&&this._display.setLineDashOffset(e);const i=this.get("blendMode",r.b.NORMAL);this._display.blendMode=i;const s=this.get("draw");s&&"function"==typeof s&&s(this._display,this);const n=this.get("svgPath");null!=n&&this._display.svgPath(n)}}_afterChanged(){if(super._afterChanged(),this._clear){const t=this.get("fill"),e=this.get("fillGradient"),i=this.get("fillPattern"),n=this.get("fillOpacity"),r=this.get("stroke"),o=this.get("strokeGradient"),h=this.get("strokePattern"),l=this.get("shadowColor"),c=this.get("shadowBlur"),u=this.get("shadowOffsetX"),d=this.get("shadowOffsetY"),p=this.get("shadowOpacity");if(l&&(c||u||d)&&this._display.shadow(l,c,u,d,p),t&&!e&&(this._display.beginFill(t,n),this._display.endFill()),e){if(t){const i=e.get("stops",[]);i.length&&a.each(i,(e=>{e.color&&!e.colorInherited||!t||(e.color=t,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=n,e.opacityInherited=!0)}))}const i=e.getFill(this);i&&(this._display.beginFill(i,n),this._display.endFill())}if(i){const t=i.pattern;t&&(this._display.beginFill(t,n),this._display.endFill(),i instanceof s.v&&i.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}if(r||o||h){const t=this.get("strokeOpacity");let e=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(e/=this.get("scale",1)),this.get("crisp")&&(e/=this._root._renderer.resolution);const i=this.get("lineJoin"),n=this.get("lineCap");if(r&&!o&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke()),o){const s=o.get("stops",[]);s.length&&a.each(s,(e=>{e.color&&!e.colorInherited||!r||(e.color=r,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=t,e.opacityInherited=!0)}));const h=o.getFill(this);h&&(this._display.lineStyle(e,h,t,i,n),this._display.endStroke())}if(h){let r=h.pattern;r&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke(),h instanceof s.v&&h.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}l.className="Graphics",l.classNames=n.j.classNames.concat([l.className])},6881:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var s=i(2010),n=i(5071),r=i(751);class o extends s.A{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(t){let e=t.get("paddingLeft",0),i=t.get("paddingRight",0),n=t.get("paddingTop",0),o=t.maxWidth()-e-i,a=o,h=1;(0,s.j)(t,(t=>{if(t.get("visible")&&t.getPrivate("visible")&&!t.get("forceHidden")&&"absolute"!=t.get("position")){let e=t.width();eh&&(h=e)}})),a=r.fitToRange(a,1,o),h=r.fitToRange(h,1,o);let l=1;l=this.get("fixedWidthGrid")?o/h:o/a,l=Math.max(1,Math.floor(l)),l=Math.min(this.get("maxColumns",Number.MAX_VALUE),l);let c=this.getColumnWidths(t,l,h,o),u=n,d=0,p=0;l=c.length;let g=e;(0,s.j)(t,(t=>{if("relative"==t.get("position")&&t.isVisible()){const i=t.get("marginTop",0),s=t.get("marginBottom",0);let n=t.adjustedLocalBounds(),r=t.get("marginLeft",0),o=t.get("marginRight",0),a=g+r-n.left,h=u+i-n.top;t.setPrivate("x",a),t.setPrivate("y",h),g+=c[d]+o,p=Math.max(p,t.height()+i+s),d++,d>=l&&(d=0,g=e,u+=p,p=0)}}))}getColumnWidths(t,e,i,r){let o=0,a=[],h=0;return(0,s.j)(t,(s=>{let n=s.adjustedLocalBounds();"absolute"!=s.get("position")&&s.isVisible()&&(this.get("fixedWidthGrid")?a[h]=i:a[h]=Math.max(0|a[h],n.right-n.left+s.get("marginLeft",0)+s.get("marginRight",0)),h{o+=t})),o>r?e>2?(e-=1,this.getColumnWidths(t,e,i,r)):[r]:a}}o.className="GridLayout",o.classNames=s.A.classNames.concat([o.className])},4431:function(t,e,i){"use strict";i.d(e,{G:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingLeft",0),i=t.innerWidth(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minWidth",t.getPrivate("minWidth",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.width()),i-=e+t.get("marginLeft",0)+t.get("marginRight",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginLeft",0)-t.get("marginRight",0),n=t.get("minWidth",t.getPrivate("minWidth",-1/0)),r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("width",s)}else t._prevSettings.width instanceof r.gG&&t.setPrivate("width",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginLeft",0),s=t.get("marginRight",0),n=t.get("maxWidth"),r=e.left,o=e.right;n&&o-r>n&&(o=r+n);let h=a+i-r;t.setPrivate("x",h),a=h+o+s}else t.setPrivate("x",void 0)}))}}o.className="HorizontalLayout",o.classNames=s.A.classNames.concat([o.className])},962:function(t,e,i){"use strict";i.d(e,{_:function(){return h}});var s=i(2036),n=i(6245),r=i(8777),o=i(5071),a=i(5040);class h extends r.W{constructor(){super(...arguments),this._textKeys=["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),o.each(this._textKeys,(t=>{const e=this.get(t);null!=e&&this._text.set(t,e)})),""!==this.get("html","")&&this._text.set("text",""),this.onPrivate("maxWidth",(()=>{this._setMaxDimentions()})),this.onPrivate("maxHeight",(()=>{this._setMaxDimentions()}))}_makeText(){this._text=this.children.push(s.x.new(this._root,{}))}_updateChildren(){super._updateChildren();const t=this._text;if(o.each(this._textKeys,(t=>{this._text.set(t,this.get(t))})),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),""!==this.get("html","")?t.set("text",""):(t.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){const e=this.get("textAlign");let i;null!=this.get("width")?i="right"==e?n.AQ:"center"==e?n.CI:0:"left"==e||"start"==e?i=this.get("paddingLeft",0):"right"!=e&&"end"!=e||(i=-this.get("paddingRight",0)),t.set("x",i)}const e=this.get("background");e&&e.setPrivate("visible",t._display.textVisible)}_maybeUpdateHTMLColor(){const t=this.getPrivate("htmlElement");t&&this.get("fill")&&(t.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){const t=this.get("rotation"),e=90==t||270==t||-90==t,i=this._text,s=this.get("maxWidth",this.getPrivate("maxWidth",1/0));a.isNumber(s)?i.set(e?"maxHeight":"maxWidth",s-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(e?"maxHeight":"maxWidth",void 0);const n=this.get("maxHeight",this.getPrivate("maxHeight",1/0));a.isNumber(n)?i.set(e?"maxWidth":"maxHeight",n-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(e?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",(()=>{i.markDirtyBounds()}))}_setDataItem(t){super._setDataItem(t),this._markDirtyKey("text"),this._markDirtyKey("html");const e=this._text;e.get("populateText")&&e.markDirtyText();const i=this.get("html");i&&""!==i&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}}h.className="Label",h.classNames=r.W.classNames.concat([h.className])},2010:function(t,e,i){"use strict";i.d(e,{A:function(){return r},j:function(){return n}});var s=i(6331);function n(t,e){t.get("reverseChildren",!1)?t.children.eachReverse(e):t.children.each(e)}class r extends s.JH{}r.className="Layout",r.classNames=s.JH.classNames.concat([r.className])},3105:function(t,e,i){"use strict";i.d(e,{D:function(){return c}});var s=i(3399),n=i(8777),r=i(962),o=i(3497),a=i(5769),h=i(7144),l=i(7652);class c extends s.F{constructor(){super(...arguments),this.itemContainers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:o.c.new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template])))),this.markers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template])))),this.labels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template])))),this.valueLabels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template])))),this.markerRectangles=this.addDisposer(new h.o(a.YS.new({}),(()=>o.c._new(this._root,{themeTags:l.mergeTags(this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template]))))}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(t){const e=this.children.push(this.itemContainers.make());return e._setDataItem(t),this.itemContainers.push(e),e.states.create("disabled",{}),e}makeMarker(){const t=this.markers.make();return this.markers.push(t),t.states.create("disabled",{}),t}makeLabel(){const t=this.labels.make();return t.states.create("disabled",{}),t}makeValueLabel(){const t=this.valueLabels.make();return t.states.create("disabled",{}),t}makeMarkerRectangle(){const t=this.markerRectangles.make();return t.states.create("disabled",{}),t}processDataItem(t){super.processDataItem(t);const e=this.makeItemContainer(t),i=this.get("nameField"),s=this.get("fillField"),n=this.get("strokeField");if(e){const r=this.get("clickTarget","itemContainer"),o=t.dataContext;o&&o.set&&o.set("legendDataItem",t),e._setDataItem(t),t.set("itemContainer",e);const a=this.makeMarker();if(a){e.children.push(a),a._setDataItem(t),t.set("marker",a);const i=this.get("useDefaultMarker"),r=a.children.push(this.makeMarkerRectangle());let h=t.get("fill"),l=t.get("stroke");t.set("markerRectangle",r),o&&o.get&&(h=o.get(s,h),l=o.get(n,l)),l||(l=h),i?o.on&&(o.on(s,(()=>{r.set("fill",o.get(s))})),o.on(n,(()=>{r.set("stroke",o.get(n))}))):o&&o.createLegendMarker&&o.createLegendMarker(),r.setAll({fill:h,stroke:l});const c=o.component;c&&c.updateLegendMarker&&c.updateLegendMarker(o)}const h=this.makeLabel();if(h){e.children.push(h),h._setDataItem(t),t.set("label",h),h.text.on("text",(()=>{e.setRaw("ariaLabel",h.text._getText()+("none"!==this.get("clickTarget")?"; "+this._t("Press ENTER to toggle"):"")),e.markDirtyAccessibility()})),o&&o.get&&t.set("name",o.get(i));let s=t.get("name");s&&h.set("text",s)}const l=this.makeValueLabel();if(l&&(e.children.push(l),l._setDataItem(t),t.set("valueLabel",l)),o&&o.show&&(o.on("visible",(t=>{e.set("disabled",!t)})),o.get("visible")||e.set("disabled",!0),"none"!=r)){let i=e;"marker"==r&&(i=a),this._addClickEvents(i,o,t)}this.children.values.sort(((t,e)=>{const i=t.dataItem.dataContext,s=e.dataItem.dataContext;if(i&&s){const t=this.data.indexOf(i),e=this.data.indexOf(s);if(t>e)return 1;if(t{const t=e.component;t&&t.hoverDataItem&&t.hoverDataItem(e)})),t.events.on("pointerout",(()=>{const t=e.component;t&&t.hoverDataItem&&t.unhoverDataItem(e)})),t.events.on("click",(()=>{const s=i.get("label").text._getText();e.show&&e.isHidden&&(e.isHidden()||!1===e.get("visible"))?(e.show(),t.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,s))):e.hide&&(e.hide(),t.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,s)))}))}disposeDataItem(t){super.disposeDataItem(t);const e=t.dataContext;e&&e.get&&e.get("legendDataItem")==t&&e.set("legendDataItem",void 0);let i=t.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let s=t.get("marker");s&&(this.markers.removeValue(s),s.dispose());let n=t.get("markerRectangle");n&&(this.markerRectangles.removeValue(n),n.dispose());let r=t.get("label");r&&(this.labels.removeValue(r),r.dispose());let o=t.get("valueLabel");o&&(this.valueLabels.removeValue(o),o.dispose())}}c.className="Legend",c.classNames=s.F.classNames.concat([c.className])},2077:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var s=i(1479);function n(t,e){for(let i=0,s=e.length;i0){let e=s[0];if(e.length>0){let i=e[0];t.moveTo(i.x,i.y);for(let e=0,i=s.length;e0){let e=t[0];this._display.moveTo(e.x,e.y),n(this._display,[[t]])}else if(e)n(this._display,e);else if(!this.get("draw")){let t=this.width(),e=this.height();this._display.moveTo(0,0),this._display.lineTo(t,e)}}}}o.className="Line",o.classNames=s.T.classNames.concat([o.className])},5812:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var s=i(8777),n=i(941),r=i(6387),o=i(751);class a extends s.W{constructor(){super(...arguments),this.line=this.children.push(r.P.new(this._root,{themeTags:["line"]})),this.hitLine=this.children.push(r.P.new(this._root,{themeTags:["hit"]})),this.startArrow=this.children.push(n.C.new(this._root,{themeTags:["start","arrow"]})),this.endArrow=this.children.push(n.C.new(this._root,{themeTags:["end","arrow"]}))}_afterNew(){this.addTag("link"),super._afterNew()}_updateChildren(){if(super._updateChildren(),this.isDirty("points")){let t=r.P.makeOrthogonal(this.get("points",[]));this.line.set("points",t),this.hitLine.set("points",t);const e=this.startArrow,i=this.endArrow,s=t.length;if(s>1){const[n,r]=t;e.setAll({x:n.x,y:n.y,rotation:o.getAngle(n,r)-90});const a=t[s-1],h=t[s-2];i.setAll({x:a.x,y:a.y,rotation:o.getAngle(h,a)+90})}else if(1===s){const[s]=t;e.setAll({x:s.x,y:s.y,rotation:0}),i.setAll({x:s.x,y:s.y,rotation:0})}}}}a.className="Link",a.classNames=s.W.classNames.concat([a.className])},8289:function(t,e,i){"use strict";i.d(e,{G:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){return function(e){return new s(e,t)}}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(s+a,n+a*e,r-a,o-a*i,r,o)}},5892:function(t,e,i){"use strict";i.d(e,{$:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){[t,e]=[e,t];let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){function e(e){return new s(e,t)}return e.tension=function(t){return n(+t)},e}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(n+a*e,s+a,o-a*i,r-a,o,r)}},7049:function(t,e,i){"use strict";i.d(e,{l:function(){return h}});var s=i(8777),n=i(6691),r=i(7142),o=i(941),a=i(1112);class h extends s.W{constructor(){super(...arguments),this.label=this.children.push(n.Y.new(this._root,{})),this.buttonsContainer=this.children.push(s.W.new(this._root,{themeTags:["buttons"]})),this.upButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["upbutton"]})),this.downButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["downbutton"]}))}_afterNew(){this.addTag("numericstepper"),this.set("layout",this._root.horizontalLayout),this.label.adapters.add("text",(t=>(t&&t.replace(/\D/g,""),""===t&&(t="0"),t))),this.set("background",r.A.new(this._root,{fillOpacity:0,fill:(0,a.$_)(16777215)})),this.buttonsContainer.states.create("hidden",{opacity:0,visible:!0}),this.events.on("pointerover",(()=>{this.buttonsContainer.set("active",!0)})),this.events.on("pointerout",(()=>{this.buttonsContainer.set("active",!1)})),this.label.on("text",(t=>{if(t){const e=parseFloat(t);isNaN(e)||this.set("value",e)}})),this.upButton.events.on("click",(()=>{this.set("value",this.get("value",0)+1)})),this.downButton.events.on("click",(()=>{this.set("value",Math.max(0,this.get("value",0)-1))})),super._afterNew()}_updateChildren(){super._updateChildren();const t=this.get("value",0),e=this.label;if(this.isDirty("value")&&e.set("text",t.toString()),this.isDirty("disabled")){const t=this.get("disabled",!1);this.set("interactive",!t),this.upButton.set("interactive",!t),this.downButton.set("interactive",!t),t?(this.label.set("editOn","none"),this.buttonsContainer.hide(0)):(this.label.set("editOn","click"),this.buttonsContainer.show(0))}}}h.className="NumericStepper",h.classNames=s.W.classNames.concat([h.className])},6387:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),this.isDirty("points")&&(this._clear=!0)}static makeOrthogonal(t){if(t.length>1){const e=[];for(let i=0;i0&&o&&l){if(h){s=Math.min(s,Math.abs(r.x-o.x)/2,Math.abs(r.y-n.y)/2);const e=Math.sign(r.y-n.y);t.lineTo(r.x,r.y-s*e);const i=o.x{this._display.image=e,this._updateSize(),!i.isDisposed()&&i.isEnabled("loaded")&&i.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{!i.isDisposed()&&i.isEnabled("loaderror")&&i.dispatch("loaderror",{type:"loaderror",target:this})}))}}_updateSize(){super._updateSize();const t=this._display.image;if(t){let e=this.getPrivate("width",this.get("width")),i=this.getPrivate("height",this.get("height"));const s=t.width&&t.height?t.width/t.height:0;n.isNumber(e)&&n.isNumber(i)?(this._display.width=e,this._display.height=i):n.isNumber(e)&&s?i=e/s:n.isNumber(i)&&s?e=i*s:(e=t.width,i=t.height),n.isNumber(e)&&(this._display.width=e),n.isNumber(i)&&(this._display.height=i),this.markDirtyBounds(),this.markDirty()}}}r.className="Picture",r.classNames=s.j.classNames.concat([r.className])},8931:function(t,e,i){"use strict";i.d(e,{i:function(){return r}});var s=i(1479),n=i(751);class r extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let t=this.width(),e=this.height();if(t>0&&e>0){let i=this.get("cornerRadius",8);i=n.fitToRange(i,0,Math.min(t/2,e/2));let s=this.get("pointerX",0),r=this.get("pointerY",0),o=this.get("pointerBaseWidth",15)/2,a=0,h=0,l=0,c=(s-a)*(e-h)-(r-h)*(t-a),u=(s-l)*(0-e)-(r-e)*(t-l);const d=this._display;if(d.moveTo(i,0),c>0&&u>0){let e=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,-1/0,0),d.lineTo(e-o,0),d.lineTo(s,r),d.lineTo(e+o,0)}if(d.lineTo(t-i,0),d.arcTo(t,0,t,i,i),c>0&&u<0){let a=Math.round(n.fitToRange(r,i+o,e-o-i));s=n.fitToRange(s,t,1/0),d.lineTo(t,i),d.lineTo(t,Math.max(a-o,i)),d.lineTo(s,r),d.lineTo(t,a+o)}if(d.lineTo(t,e-i),d.arcTo(t,e,t-i,e,i),c<0&&u<0){let a=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,e,1/0),d.lineTo(t-i,e),d.lineTo(a+o,e),d.lineTo(s,r),d.lineTo(a-o,e)}if(d.lineTo(i,e),d.arcTo(0,e,0,e-i,i),c<0&&u>0){let t=Math.round(n.fitToRange(r,i+o,e-i-o));s=n.fitToRange(s,-1/0,0),d.lineTo(0,e-i),d.lineTo(0,t+o),d.lineTo(s,r),d.lineTo(0,Math.max(t-o,i))}d.lineTo(0,i),d.arcTo(0,0,i,0,i),d.closePath()}}}}r.className="PointedRectangle",r.classNames=s.T.classNames.concat([r.className])},7770:function(t,e,i){"use strict";i.d(e,{m:function(){return r}});var s=i(1479),n=i(5071);class r extends s.T{_beforeChanged(){if(super._beforeChanged(),this.isDirty("coordinates")){const t=[],e=this.get("coordinates");e&&n.each(e,(e=>{t.push({x:e[0],y:e[1]})})),this.set("points",t)}if(this.isPrivateDirty("points")&&(this._clear=!0),this.isDirty("points")){this._clear=!0;const t=this.get("points"),e=this._prevSettings.points;if(e){if(t){let i=n.copy(t),s=n.copy(e),r=i.length,o=s.length;if(r>o){let t=n.copy(i);for(let e=0;er){let t=n.copy(s);for(let e=0;e{this._markDirtyPrivateKey("morphProgress")}))}}else this.setPrivateRaw("previousPoints",t),this.setPrivateRaw("points",t);let i=1/0,s=-1/0,r=1/0,o=-1/0;if(t)for(let e=1,n=t.length;e{this.label.markDirtyKey("text")}))}}}l.className="ProgressPie",l.classNames=n.W.classNames.concat([l.className])},815:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(6245),n=i(962),r=i(4244),o=i(751),a=i(7652);class h extends n._{constructor(){super(...arguments),this._flipped=!1}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(r.f.new(this._root,{}))}baseRadius(){const t=this.getPrivate("radius",0),e=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return e+a.relativeToValue(i,t-e)}radius(){const t=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(t?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){const t=this.get("textType","adjusted"),e=this.get("inside",!1),i=this.get("orientation");let n=o.normalizeAngle(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",e);const r=o.sin(n),a=o.cos(n);let h=this.baseRadius(),l=this.radius();if(this._display.angle=0,"circular"==t)this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",l);else{0==h&&(n=0,l=0);let e=l*a,o=l*r;"radial"==t?(this.setRaw("x",e),this.setRaw("y",o),n<90||n>270||"auto"!=i?(this._display.angle=n,this._flipped=!1):(this._display.angle=n+180,this._flipped=!0),this._dirty.rotation=!1):"adjusted"==t?(this.setRaw("centerX",s.CI),this.setRaw("centerY",s.CI),this.setRaw("x",e),this.setRaw("y",o)):"regular"==t&&(this.setRaw("x",e),this.setRaw("y",o))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){const t=this.get("textType","regular"),e=this.get("inside",!1);let i=0,n=0,r=this.get("labelAngle",0),a=this.localBounds(),h=a.right-a.left,l=a.bottom-a.top;if("radial"==t){if(this._flipped){let t=this.get("centerX");t instanceof s.gG&&(h*=1-2*t.value),i=h*o.cos(r),n=h*o.sin(r)}}else e||"adjusted"!=t||(i=h/2*o.cos(r),n=l/2*o.sin(r));this.setRaw("dx",i),this.setRaw("dy",n),super._updatePosition()}get text(){return this._text}}h.className="RadialLabel",h.classNames=n._.classNames.concat([h.className])},4244:function(t,e,i){"use strict";i.d(e,{f:function(){return r}});var s=i(2036),n=i(751);class r extends s.x{constructor(){super(...arguments),this._display=this._root._renderer.makeRadialText("",this.textStyle)}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*n.RADIANS,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}r.className="RadialText",r.classNames=s.x.classNames.concat([r.className])},7142:function(t,e,i){"use strict";i.d(e,{A:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let t=this.width(),e=this.height(),i=0,s=0,n=t/Math.abs(t),r=e/Math.abs(e);if(this.get("containStroke",!1)){const o=this.get("strokeWidth",0);t-=o*n,e-=o*r,i+=o/2*n,s+=o/2*r}this._display.drawRect(i,s,t,e)}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Rectangle",n.classNames=s.T.classNames.concat([n.className])},3497:function(t,e,i){"use strict";i.d(e,{c:function(){return a}});var s=i(5040),n=i(751),r=i(7652),o=i(7142);class a extends o.A{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let t=this.width(),e=this.height(),i=t/Math.abs(t),o=e/Math.abs(e),a=0,h=0;const l=this.get("strokeWidth",0);this.get("containStroke",!1)&&(t-=i*l,e-=o*l,a+=i*l/2,h+=o*l/2);let c=t,u=e;if(s.isNumber(c)&&s.isNumber(u)){let t=Math.min(c,u)/2,e=r.relativeToValue(this.get("cornerRadiusTL",8),t),s=r.relativeToValue(this.get("cornerRadiusTR",8),t),l=r.relativeToValue(this.get("cornerRadiusBR",8),t),d=r.relativeToValue(this.get("cornerRadiusBL",8),t),p=Math.min(Math.abs(c/2),Math.abs(u/2));e=n.fitToRange(e,0,p),s=n.fitToRange(s,0,p),l=n.fitToRange(l,0,p),d=n.fitToRange(d,0,p);const g=this._display;g.moveTo(a+e*i,h),g.lineTo(a+c-s*i,h),s>0&&g.arcTo(a+c,h,a+c,h+s*o,s),g.lineTo(a+c,h+u-l*o),l>0&&g.arcTo(a+c,h+u,a+c-l*i,h+u,l),g.lineTo(a+d*i,h+u),d>0&&g.arcTo(a,h+u,a,h+u-d*o,d),g.lineTo(a,h+e*o),e>0&&g.arcTo(a,h,a+e*i,h,e),g.closePath()}}}a.className="RoundedRectangle",a.classNames=o.A.classNames.concat([a.className])},6001:function(t,e,i){"use strict";i.d(e,{L:function(){return l}});var s=i(3497),n=i(8777),r=i(1479),o=i(8054),a=i(5040),h=i(7652);class l extends n.W{constructor(){super(...arguments),this.thumb=this._makeThumb(),this.startGrip=this._makeButton(),this.endGrip=this._makeButton(),this._thumbBusy=!1,this._startDown=!1,this._endDown=!1,this._thumbDown=!1}_addOrientationClass(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=s.c.new(this._root,{themeTags:h.mergeTags(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(o.z.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:r.T.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(s.c.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(t){t&&this._disposers.push(t.events.on("stopped",(()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1})))}_afterNew(){this._addOrientationClass(),super._afterNew();const t=this.startGrip,e=this.endGrip,i=this.thumb,s=this.get("background");s&&this._disposers.push(s.events.on("click",(t=>{this.setPrivateRaw("isBusy",!0);const e=this._display.toLocal(t.point),s=this.width(),n=this.height(),r=this.get("orientation");let o,a,h;o="vertical"==r?(e.y-i.height()/2)/n:(e.x-i.width()/2)/s,"vertical"==r?(a=o*n,h="y"):(a=o*s,h="x");const l=this.get("animationDuration",0);l>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:h,to:a,duration:l,easing:this.get("animationEasing")}))):(this.thumb.set(h,a),this._root.events.once("frameended",(()=>{this.setPrivateRaw("isBusy",!1)})))}))),this._disposers.push(i.events.on("dblclick",(t=>{if(!h.isLocalEvent(t.originalEvent,this))return;const e=this.get("animationDuration",0),i=this.get("animationEasing");this.animate({key:"start",to:0,duration:e,easing:i}),this.animate({key:"end",to:1,duration:e,easing:i})}))),this._disposers.push(t.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"}))),this._disposers.push(e.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"}))),this._disposers.push(i.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0}))),this._disposers.push(t.events.on("globalpointerup",(()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1}))),this._disposers.push(e.events.on("globalpointerup",(()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1}))),this._disposers.push(i.events.on("globalpointerup",(()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1}))),this._disposers.push(t.on("x",(()=>{this._updateThumb()}))),this._disposers.push(e.on("x",(()=>{this._updateThumb()}))),this._disposers.push(t.on("y",(()=>{this._updateThumb()}))),this._disposers.push(e.on("y",(()=>{this._updateThumb()}))),this._disposers.push(i.events.on("positionchanged",(()=>{this._updateGripsByThumb()}))),"vertical"==this.get("orientation")?(t.set("x",0),e.set("x",0),this._disposers.push(i.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()-i.height()),0)))),this._disposers.push(i.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("x",(t=>this.width()/2))),this._disposers.push(e.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0)))),this._disposers.push(e.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0))))):(t.set("y",0),e.set("y",0),this._disposers.push(i.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()-i.width()),0)))),this._disposers.push(i.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("y",(t=>this.height()/2))),this._disposers.push(e.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))),this._disposers.push(e.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){const t="rangechanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){const t="released";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}updateGrips(){const t=this.startGrip,e=this.endGrip,i=this.get("orientation"),s=this.height(),n=this.width();"vertical"==i?(t.set("y",s*this.get("start",0)),e.set("y",s*this.get("end",1))):(t.set("x",n*this.get("start",0)),e.set("x",n*this.get("end",1)));const r=this.getPrivate("positionTextFunction"),o=Math.round(100*this.get("start",0)),a=Math.round(100*this.get("end",0));let h,l;r?(h=r.call(this,this.get("start",0)),l=r.call(this,this.get("end",0))):(h=o+"%",l=a+"%"),t.set("ariaLabel",this._t("From %1",void 0,h)),t.set("ariaValueNow",""+o),t.set("ariaValueText",o+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100"),e.set("ariaLabel",this._t("To %1",void 0,l)),e.set("ariaValueNow",""+a),e.set("ariaValueText",a+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100")}_updateThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip,s=this.height(),n=this.width();let r=e.x(),o=i.x(),h=e.y(),l=i.y(),c=0,u=1;"vertical"==this.get("orientation")?a.isNumber(h)&&a.isNumber(l)&&(this._thumbBusy||t.isDragging()||(t.set("height",l-h),t.set("y",h)),c=h/s,u=l/s):a.isNumber(r)&&a.isNumber(o)&&(this._thumbBusy||t.isDragging()||(t.set("width",o-r),t.set("x",r)),c=r/n,u=o/n),!this.getPrivate("isBusy")||this.get("start")==c&&this.get("end")==u||(this.set("start",c),this.set("end",u));const d=this.getPrivate("positionTextFunction"),p=Math.round(100*this.get("start",0)),g=Math.round(100*this.get("end",0));let f,_;d?(f=d.call(this,this.get("start",0)),_=d.call(this,this.get("end",0))):(f=p+"%",_=g+"%"),t.set("ariaLabel",this._t("From %1 to %2",void 0,f,_)),t.set("ariaValueNow",""+p),t.set("ariaValueText",p+"%")}_updateGripsByThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip;if("vertical"==this.get("orientation")){const s=t.height();e.set("y",t.y()),i.set("y",t.y()+s)}else{const s=t.width();e.set("x",t.x()),i.set("x",t.x()+s)}}}l.className="Scrollbar",l.classNames=n.W.classNames.concat([l.className])},5829:function(t,e,i){"use strict";i.d(e,{j:function(){return h}});var s=i(1337),n=i(8777),r=i(7144),o=i(6245),a=i(5071);class h extends s.k{constructor(){super(...arguments),this.seriesContainer=n.W.new(this._root,{width:o.AQ,height:o.AQ,isMeasured:!1}),this.series=new r.dn}_afterNew(){super._afterNew(),this._disposers.push(this.series);const t=this.seriesContainer.children;this._disposers.push(this.series.events.onAll((e=>{if("clear"===e.type){a.each(e.oldValues,(t=>{this._removeSeries(t)}));const t=this.get("colors");t&&t.reset();const i=this.get("patterns");i&&i.reset()}else if("push"===e.type)t.moveValue(e.newValue),this._processSeries(e.newValue);else if("setIndex"===e.type)t.setIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("insertIndex"===e.type)t.insertIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("removeIndex"===e.type)this._removeSeries(e.oldValue);else if("moveIndex"===e.type)t.moveValue(e.value,e.newIndex),this._processSeries(e.value);else{if("swap"!==e.type)throw new Error("Unknown IListEvent type");{const i=e.a,s=e.b,n=this.series.indexOf(i),r=this.series.indexOf(s);t.moveValue(i,r),t.moveValue(s,n),this.series.each((t=>{this._processSeries(t),t.markDirtyValues()}))}}})))}_processSeries(t){t.chart=this,t._placeBulletsContainer(this)}_removeSeries(t){t._handleRemoved(),t.isDisposed()||(this.seriesContainer.children.removeValue(t),t._removeBulletsContainer())}}h.className="SerialChart",h.classNames=s.k.classNames.concat([h.className])},3399:function(t,e,i){"use strict";i.d(e,{F:function(){return g}});var s=i(7582),n=i(9361),r=i(7144),o=i(1112),a=i(6490),h=i(6245),l=i(8777),c=i(962),u=i(5071),d=i(5040),p=i(1926);class g extends n.w{constructor(){super(...arguments),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1,this._dataProcessed=!1,this._baseSeriesDirty=!1,this.bullets=new r.aV,this.bulletsContainer=l.W.new(this._root,{width:h.AQ,height:h.AQ,position:"absolute"})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll((()=>{this._handleBullets(this.dataItems)})))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let t=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),t)}endIndex(){let t=this.dataItems.length;return Math.max(0,Math.min(this.getPrivate("endIndex",t),t))}_handleBullets(t){u.each(t,(t=>{const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)})),this.markDirtyValues()}_makeBullets(t){this._shouldMakeBullet(t)&&(t.bullets=[],this.bullets.each((e=>{this._makeBullet(t,e)})))}_shouldMakeBullet(t){return!0}_makeBullet(t,e,i){const s=e(this._root,this,t);return s&&(s._index=i,this._makeBulletReal(t,s)),s}_makeBulletReal(t,e){let i=e.get("sprite");i&&(i._setDataItem(t),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),e.series=this,t.bullets.push(e)}addBullet(t,e){t.bullets||(t.bullets=[]),e&&this._makeBulletReal(t,e)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();const t=this.dataItems,e=t.length;let i=this.startIndex(),s=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const t=this.getPrivate("baseValueSeries");t&&this._disposers.push(t.onPrivate("startIndex",(()=>{this._baseSeriesDirty=!0,this.markDirtyValues()})))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,e),this._aggregatesCalculated=!0,0!=i&&(this._psi=void 0))),this._psi==i&&this._pei==s&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===i&&s===e&&this._aggregatesCalculated||this._calculateAggregates(i,s),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let t=this.get("tooltip");t&&(t.hide(0),t.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let t;const e=this.get("legendDataItem");if(e&&(t=e.get("markerRectangle"),t&&this.isVisible())){if(this.isDirty("stroke")){let e=this.get("stroke");t.set("stroke",e)}if(this.isDirty("fill")){let e=this.get("fill");t.set("fill",e)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let i=this.startIndex(),s=this.endIndex();s-1==s.indexOf(t))));const n={},r={},o={},a={},h={},l={},c={},u={},d={};for(let t=0,e=i.length;t{if(0===t){const t=l[x],s=i-t;e.setRaw(_,s),e.setRaw(m,s/t*100)}const n=i-d[x],r=i-l[x];e.setRaw(y,n),e.setRaw(v,n/d[x]*100),e.setRaw(w,r),e.setRaw(b,r/l[x]*100),d[s]=i};for(let t=k;tt&&(a[f]=t),h[f]0&&t--,delete d[f];for(let e=t;e0&&u.each(t,(t=>{const e=t.minValue||this.getPrivate(t.dataField+"Low")||0,i=t.maxValue||this.getPrivate(t.dataField+"High")||0;u.each(t.target._entities,(s=>{const n=s.dataItem.get(t.dataField);if(!d.isNumber(n)){t.neutral&&s.set(t.key,t.neutral);const e=s.states;if(e){const i=e.lookup("default");i&&t.neutral&&i.set(t.key,t.neutral)}if(!t.customFunction)return}if(t.customFunction)t.customFunction.call(this,s,e,i,n);else{let r,l;r=t.logarithmic?(Math.log(n)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E):(n-e)/(i-e),!d.isNumber(n)||d.isNumber(r)&&Math.abs(r)!=1/0||(r=.5),d.isNumber(t.min)?l=t.min+(t.max-t.min)*r:t.min instanceof o.Il?l=o.Il.interpolate(r,t.min,t.max):t.min instanceof h.gG&&(l=(0,a.Wn)(r,t.min,t.max)),s.set(t.key,l);const c=s.states;if(c){const e=c.lookup("default");e&&e.set(t.key,l)}}}))})),this.get("visible")){const t=this.dataItems;let e=t.length,i=this.startIndex(),s=this.endIndex();s0&&i--;for(let e=0;e{this._positionBullet(t);const e=t.get("sprite");t.get("dynamic")&&(e&&(e._markDirtyKey("fill"),e.markDirtySize()),e instanceof l.W&&e.walkChildren((t=>{t._markDirtyKey("fill"),t.markDirtySize(),t instanceof c._&&t.text.markDirtyText()}))),e instanceof c._&&e.get("populateText")&&e.text.markDirtyText()}))}_hideBullets(t){t.bullets&&u.each(t.bullets,(t=>{let e=t.get("sprite");e&&e.setPrivate("visible",!1)}))}_positionBullet(t){}_placeBulletsContainer(t){t.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const t=this.bulletsContainer;t.parent&&t.parent.children.removeValue(t)}disposeDataItem(t){const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.show(e))})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.hide(e))})),yield Promise.all(s)}))}_sequencedShowHide(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(d.isNumber(e)||(e=this.get("interpolationDuration",0)),e>0){const i=this.startIndex(),n=this.endIndex();yield Promise.all(u.map(this.dataItems,((r,o)=>(0,s.mG)(this,void 0,void 0,(function*(){let s=e||0;(on+10)&&(s=0);let a=this.get("sequencedDelay",0)+s/(n-i);yield p.sleep(a*(o-i)),t?yield this.showDataItem(r,s):yield this.hideDataItem(r,s)})))))}else yield Promise.all(u.map(this.dataItems,(e=>t?this.showDataItem(e,0):this.hideDataItem(e,0))))}))}updateLegendValue(t){if(t){const e=t.get("legendDataItem");if(e){const i=e.get("valueLabel");if(i){const e=i.text;let s="";i._setDataItem(t),s=this.get("legendValueText",e.get("text","")),i.set("text",s),e.markDirtyText()}const s=e.get("label");if(s){const e=s.text;let i="";s._setDataItem(t),i=this.get("legendLabelText",e.get("text","")),s.set("text",i),e.markDirtyText()}}}}updateLegendMarker(t){}_onHide(){super._onHide();const t=this.getTooltip();t&&t.hide()}hoverDataItem(t){}unhoverDataItem(t){}_getBase(t){const e=this.dataItems[this.startIndex()];return e?e.get(t):0}}g.className="Series",g.classNames=n.w.classNames.concat([g.className])},5863:function(t,e,i){"use strict";i.d(e,{p:function(){return h}});var s=i(1479),n=i(5040),r=i(6245),o=i(832),a=i(751);class h extends s.T{constructor(){super(...arguments),this.ix=0,this.iy=0,this._generator=(0,o.Z)()}_getTooltipPoint(){let t=this.get("tooltipX"),e=this.get("tooltipY"),i=0,s=0;n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e);let o=this.get("radius",0),a=this.get("innerRadius",0);return o+=this.get("dRadius",0),a+=this.get("dInnerRadius",0),a<0&&(a=o+a),t instanceof r.gG&&(i=this.ix*(a+(o-a)*t.value)),e instanceof r.gG&&(s=this.iy*(a+(o-a)*e.value)),this.get("arc")>=360&&0==a&&(i=0,s=0),{x:i,y:s}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this.get("startAngle",0),e=this.get("arc",0);const i=this._generator;e<0&&(t+=e,e*=-1),e>.1&&i.cornerRadius(this.get("cornerRadius",0)),i.context(this._display);let s=this.get("radius",0),n=this.get("innerRadius",0);s+=this.get("dRadius",0),n+=this.get("dInnerRadius",0),n<0&&(n=s+n),i({innerRadius:n,outerRadius:s,startAngle:(t+90)*a.RADIANS,endAngle:(t+e+90)*a.RADIANS});let r=t+e/2;this.ix=a.cos(r),this.iy=a.sin(r);const o=this.get("shiftRadius",0);this.setRaw("dx",this.ix*o),this.setRaw("dy",this.iy*o),this.markDirtyPosition()}}}h.className="Slice",h.classNames=s.T.classNames.concat([h.className])},2162:function(t,e,i){"use strict";i.d(e,{i:function(){return n}});var s=i(6001);class n extends s.L{_afterNew(){this._addOrientationClass(),super._afterNew(),this.endGrip.setPrivate("visible",!1),this.thumb.setPrivate("visible",!1)}updateGrips(){super.updateGrips();const t=this.startGrip;this.endGrip.setAll({x:t.x(),y:t.y()}),this.setRaw("end",this.get("start"))}}n.className="Slider",n.classNames=s.L.classNames.concat([n.className])},4596:function(t,e,i){"use strict";i.d(e,{j:function(){return _}});var s=i(7582),n=i(6331),r=i(5769),o=i(6245),a=i(9770),h=i(7449),l=i(6490),c=i(7652),u=i(5071),d=i(5040),p=i(256),g=i(751);class f extends a.p{constructor(t){super(),this._rendererDisposers={},this._dispatchParents=!0,this._sprite=t}_makePointerEvent(t,e){return{type:t,originalEvent:e.event,point:e.point,simulated:e.simulated,native:e.native,target:this._sprite}}_onRenderer(t,e){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[t];if(void 0===i){const s=this._sprite._display.on(t,(t=>{e.call(this,t)}));i=this._rendererDisposers[t]=new h.DM((()=>{delete this._rendererDisposers[t],s.dispose()}))}return i.increment()}_on(t,e,i,s,n,r,o){const a=super._on(t,e,i,s,n,r,o),l=f.RENDERER_EVENTS[e];return void 0!==l&&(a.disposer=new h.FV([a.disposer,this._onRenderer(e,l)])),a}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(t,e){const i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(t,e),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(t,e)}finally{this._dispatchParents=i}}}f.RENDERER_EVENTS={click:function(t){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",t))&&this.dispatch("click",this._makePointerEvent("click",t))},rightclick:function(t){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",t))},middleclick:function(t){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",t))},dblclick:function(t){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",t))},pointerover:function(t){const e=this._sprite;let i=!0;if(e.getPrivate("trustBounds")){e._getBounds();const s=e.globalBounds();if(e.isType("Graphics")){const t=e.get("strokeWidth",1)/2;t>=1&&(s.left-=t,s.right+=t,s.top-=t,s.bottom+=t)}g.inBounds(t.point,s)||(i=!1,e._root._renderer.removeHovering(e._display))}i&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",t))},pointerout:function(t){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",t))},pointerdown:function(t){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",t))},pointerup:function(t){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",t))},globalpointerup:function(t){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",t))},globalpointermove:function(t){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",t))},wheel:function(t){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:t.event,point:t.point})}};class _ extends n.JH{constructor(){super(...arguments),this._adjustedLocalBounds={left:0,right:0,top:0,bottom:0},this._localBounds={left:0,right:0,top:0,bottom:0},this._sizeDirty=!1,this._isDragging=!1,this._isHidden=!1,this._isShowing=!1,this._isHiding=!1,this._isDown=!1,this._downPoints={}}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(t){this._markDirtyKey(t)}_markDirtyKey(t){super._markDirtyKey(t),"x"!=t&&"y"!=t&&"dx"!=t&&"dy"!=t||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(t){super._markDirtyPrivateKey(t),"x"!=t&&"y"!=t||this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new f(this)}_processTemplateField(){let t;const e=this.get("templateField");if(e){const i=this.dataItem;if(i){const s=i.dataContext;s&&(t=s[e],t instanceof r.YS||!t||(t=r.YS.new(t)))}}this._templateField!==t&&(this._removeTemplateField(),this._templateField=t,t&&t._setObjectTemplate(this),this._applyTemplates())}_setDataItem(t){const e=this._dataItem;this._dataItem=t,this._processTemplateField();const i="dataitemchanged";t!=e&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:e,newDataItem:t})}set dataItem(t){this._setDataItem(t)}get dataItem(){if(this._dataItem)return this._dataItem;{let t=this._parent;for(;t;){if(t._dataItem)return t._dataItem;t=t._parent}}}_addPercentageSizeChildren(){let t=this.parent;t&&(this.get("width")instanceof o.gG||this.get("height")instanceof o.gG?u.pushOne(t._percentageSizeChildren,this):u.removeFirst(t._percentageSizeChildren,this))}_addPercentagePositionChildren(){let t=this.parent;t&&(this.get("x")instanceof o.gG||this.get("y")instanceof o.gG?u.pushOne(t._percentagePositionChildren,this):u.removeFirst(t._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const t=this._localBounds;if(t){const e=this.get("centerX");null!=e&&(this._display.pivot.x=t.left+c.relativeToValue(e,t.right-t.left));const i=this.get("centerY");null!=i&&(this._display.pivot.y=t.top+c.relativeToValue(i,t.bottom-t.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const t=this._prevSettings.tooltip;t&&t.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0);const e=this._tooltipPointerDp;e&&(e.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))),this._tooltipPointerDp=new h.FV([this.events.on("pointerover",(()=>{this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))})),this.events.on("pointerout",(()=>{const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0)}))]))}}_handleStates(){this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();const t=this._display,e=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new h.FV([e.on("pointerdown",(t=>{this.dragStart(t)})),e.on("globalpointermove",(t=>{this.dragMove(t)})),e.on("globalpointerup",(t=>{this.dragStop(t)}))])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),t.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const t=this.get("tooltipText"),i=this.get("tooltipHTML"),s=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(t||i)&&("click"==s?(this._tooltipDp=new h.FV([e.on("click",(()=>{this.setTimeout((()=>{const t=this.getTooltip();t&&!t.isHidden()&&t.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()}),10)})),c.addEventListener(document,"click",(t=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)):"always"==s||(this._tooltipDp=new h.FV([e.on("pointerover",(()=>{this.showTooltip()})),e.on("pointerout",(()=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let t=this.get("toggleKey");t&&"none"!=t?this._toggleDp=e.on("click",(()=>{this._isDragging||this.set(t,!this.get(t))})):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(t.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),t.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),t.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?t.visible=!0:(t.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const t=this.parent;t&&(this.isDirty("width")&&this.get("width")instanceof o.gG||this.isDirty("height")&&this.get("height")instanceof o.gG)&&(t.markDirty(),t._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const e=this.get("wheelable");e&&this.set("interactive",!0),t.wheelable=!!e}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(t.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){const t=this.get("blur",0);0!=t&&(i+=" blur("+t+"px)")}if(this.isDirty("saturate")){const t=this.get("saturate",1);1!=t&&(i+=" saturate("+t+")")}if(this.isDirty("brightness")){const t=this.get("brightness",1);1!=t&&(i+=" brightness("+t+")")}if(this.isDirty("contrast")){const t=this.get("contrast",1);1!=t&&(i+=" contrast("+t+")")}if(this.isDirty("sepia")){const t=this.get("sepia",0);0!=t&&(i+=" sepia("+t+")")}if(this.isDirty("hue")){const t=this.get("hue",0);0!=t&&(i+=" hue-rotate("+t+"deg)")}if(this.isDirty("invert")){const t=this.get("invert",0);0!=t&&(i+=" invert("+t+")")}if(i&&(t.filter=i),this.isDirty("cursorOverStyle")&&(t.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new h.FV([e.on("focus",(()=>{this.showTooltip()})),e.on("blur",(()=>{this.hideTooltip()}))]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(e.on("blur",(()=>{this.setPrivateRaw("touchHovering",!1)}))),this._disposers.push(e.once("boundschanged",(()=>{this.markDirtyAccessibility()})))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(t.exportable=this.get("exportable")),this.isDirty("interactive")){const t=this.events;this.get("interactive")&&!t.isDisposed()?this._hoverDp=new h.FV([t.on("click",(t=>{c.isTouchEvent(t.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout((()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}),10))})),t.on("globalpointerup",(t=>{c.isTouchEvent(t.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})),this._isDown&&this._handleUp(t)})),t.on("pointerover",(()=>{this._handleOver()})),t.on("pointerout",(()=>{this._handleOut()})),t.on("pointerdown",(t=>{this._handleDown(t)}))]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}dragStart(t){this._dragEvent=t,this.events.stopParentDispatch()}dragStop(t){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const e="dragstop";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(t){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const e=c.getPointerId(t.originalEvent);delete this._downPoints[e],0==p.keys(this._downPoints).length&&(this._isDown=!1)}}_hasMoved(t){const e=c.getPointerId(t.originalEvent),i=this._downPoints[e];if(i){const e=Math.abs(i.x-t.point.x),s=Math.abs(i.y-t.point.y);return e>5||s>5}return!1}_hasDown(){return p.keys(this._downPoints).length>0}_handleDown(t){const e=this.parent;if(e&&!this.get("draggable")&&e._handleDown(t),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:t.point.x,y:t.point.y},this._isDown=!0;const e=c.getPointerId(t.originalEvent);this._downPoints[e]={x:t.point.x,y:t.point.y}}}dragMove(t){let e=this._dragEvent;if(e){if(e.simulated&&!t.simulated)return!0;let i=0,s=this.parent,n=1;for(;null!=s;)i+=s.get("rotation",0),s=s.parent,s&&(n*=s.get("scale",1));let r=(t.point.x-e.point.x)/n,o=(t.point.y-e.point.y)/n;const a=this.events;if(e.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}if(this._isDragging){let e=this._dragPoint;this.set("x",e.x+r*g.cos(i)+o*g.sin(i)),this.set("y",e.y+o*g.cos(i)-r*g.sin(i));const s="dragged";a.isEnabled(s)&&a.dispatch(s,{type:s,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}else if(Math.hypot(r,o)>5){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let t=this.parent,e=0;for(;;){if(!t)return e;++e,t=t.parent}}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const t=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),t.isMeasured=!0,t.invalidateBounds();const e=this.parent;e&&"absolute"!=this.get("position")&&(null==e.get("width")||null==e.get("height")||e.get("layout"))&&e.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const t=this._adjustedLocalBounds;let e;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),e=this._adjustedLocalBounds):(e={left:0,right:0,top:0,bottom:0},this._localBounds=e,this._adjustedLocalBounds=e),!t||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom){const t="boundschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(t){let e=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));d.isNumber(e)&&t.right-t.left0?t.right=t.left+s:t.left=t.right+s),d.isNumber(n)&&(n>0?t.bottom=t.top+n:t.top=t.bottom+n)}_removeParent(t){t&&(t.children.removeValue(this),u.removeFirst(t._percentageSizeChildren,this),u.removeFirst(t._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(t){if(!this.isDisposed()){const e=this.getTooltip(),i=this.get("tooltipText"),s=this.get("tooltipHTML");if((i||s)&&e){const n=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);if("fixed"!=n&&t||(this._display._setMatrix(),t=this.toGlobal(r._getTooltipPoint())),"pointer"==n){const e=this.getPrivate("lastTooltipCoords");if(e&&e.x==t.x&&e.y==t.y)return;this.setPrivate("lastTooltipCoords",t)}e.set("pointTo",t),e.set("tooltipTarget",r),e.get("x")||e.set("x",t.x),e.get("y")||e.set("y",t.y),i&&e.label.set("text",i),s&&e.label.set("html",s);const o=this.dataItem;if(o&&e.label._setDataItem(o),"always"==this.get("showTooltipOn")&&(t.x<0||t.x>this._root.width()||t.y<0||t.y>this._root.height()))return void this.hideTooltip();e.label.text.markDirtyText();const a=e.show();return this.setPrivateRaw("showingTooltip",!0),a}}}hideTooltip(){const t=this.getTooltip();if(t&&(this.removePrivate("lastTooltipCoords"),t.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==t)){let e=t.get("keepTargetHover")&&0==t.get("stateAnimationDuration",0)?400:void 0;const i=t.hide(e);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){const t=this._localBounds;if(t){let e=0,i=0;return this.get("isMeasured")?(e=t.left+c.relativeToValue(this.get("tooltipX",0),t.right-t.left),i=t.top+c.relativeToValue(this.get("tooltipY",0),t.bottom-t.top)):(e=c.relativeToValue(this.get("tooltipX",0),this.width()),i=c.relativeToValue(this.get("tooltipY",0),this.height())),{x:e,y:i}}return{x:0,y:0}}getTooltip(){let t=this.get("tooltip");if(t)return t;{let t=this.parent;if(t)return t.getTooltip()}}_updatePosition(){const t=this.parent;let e=this.get("dx",0),i=this.get("dy",0),s=this.get("x"),n=this.getPrivate("x"),r=0,a=0;const h=this.get("position");s instanceof o.gG&&(s=t?t.innerWidth()*s.value+t.get("paddingLeft",0):0),d.isNumber(s)?r=s+e:null!=n?r=n:t&&"relative"==h&&(r=t.get("paddingLeft",0)+e);let l=this.get("y"),c=this.getPrivate("y");l instanceof o.gG&&(l=t?t.innerHeight()*l.value+t.get("paddingTop",0):0),d.isNumber(l)?a=l+i:null!=c?a=c:t&&"relative"==h&&(a=t.get("paddingTop",0)+i);const u=this._display;if(u.x!=r||u.y!=a){u.invalidateBounds(),u.x=r,u.y=a;const t="positionchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let t=this.get("x"),e=this.getPrivate("x");const i=this.parent;return i?t instanceof o.gG?c.relativeToValue(t,i.innerWidth())+i.get("paddingLeft",0):d.isNumber(t)?t:null!=e?e:i.get("paddingLeft",this._display.x):this._display.x}y(){let t=this.getPrivate("y");if(null!=t)return t;let e=this.get("y");const i=this.parent;return i?e instanceof o.gG?c.relativeToValue(e,i.innerHeight())+i.get("paddingTop",0):d.isNumber(e)?e:null!=t?t:i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const t=this.get("tooltip");t&&t.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const t=this._adjustedLocalBounds,e=this.x(),i=this.y();return{left:t.left+e,right:t.right+e,top:t.top+i,bottom:t.bottom+i}}globalBounds(){const t=this.localBounds(),e=this.toGlobal({x:t.left,y:t.top}),i=this.toGlobal({x:t.right,y:t.top}),s=this.toGlobal({x:t.right,y:t.bottom}),n=this.toGlobal({x:t.left,y:t.bottom});return{left:Math.min(e.x,i.x,s.x,n.x),top:Math.min(e.y,i.y,s.y,n.y),right:Math.max(e.x,i.x,s.x,n.x),bottom:Math.max(e.y,i.y,s.y,n.y)}}_onShow(t){}_onHide(t){}appear(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.hide(0),e?new Promise(((i,s)=>{this.setTimeout((()=>{i(this.show(t))}),e)})):this.show(t)}))}show(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(t);const e=this.states.applyAnimate("default",t);yield(0,l.ne)(e),this._isShowing=!1}}))}hide(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let e=this.states.lookup("hidden");e||(e=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(t);const i=this.states.applyAnimate("hidden",t);yield(0,l.ne)(i),this._isHiding=!1}}))}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const t=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*t:t}compositeScale(){const t=this.get("scale",1);return this._parent?this._parent.compositeScale()*t:t}compositeRotation(){const t=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+t:t}width(){let t=this.get("width"),e=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),s=this.getPrivate("width"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerWidth()*t.value:this._root.width()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}maxWidth(){let t=this.get("maxWidth",this.getPrivate("maxWidth"));if(d.isNumber(t))return t;{let t=this.get("width");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerWidth():this._root.width()}maxHeight(){let t=this.get("maxHeight",this.getPrivate("maxHeight"));if(d.isNumber(t))return t;{let t=this.get("height");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerHeight():this._root.height()}height(){let t=this.get("height"),e=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),s=this.getPrivate("height"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerHeight()*t.value:this._root.height()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}_findStaticTemplate(t){return this._templateField&&t(this._templateField)?this._templateField:super._findStaticTemplate(t)}_walkParents(t){(this._parent||this._virtualParent)&&this._walkParent(t)}_walkParent(t){this._parent?this._parent._walkParent(t):this._virtualParent&&this._virtualParent._walkParent(t),t(this)}set virtualParent(t){this._virtualParent!==t&&(this._virtualParent=t,this._applyThemes())}get parent(){return this._parent}_setParent(t,e=!1){const i=this._parent;t!==i&&(this.markDirtyBounds(),t.markDirty(),this._parent=t,e&&(this._removeParent(i),t&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(t){return this._display.toGlobal(t)}toLocal(t){return this._display.toLocal(t)}_getDownPoint(){const t=this._getDownPointId();if(t)return this._downPoints[t]}_getDownPointId(){if(this._downPoints)return p.keysOrdered(this._downPoints,((t,e)=>t>e?1:t{this._resize(t.target,-1)})),this.gripR.events.on("dragged",(t=>{this._resize(t.target,1)})),this.gripL.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripR.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripT.events.on("dragged",(t=>{this._rotate(t,90)})),this.gripB.events.on("dragged",(t=>{this._rotate(t,-90)})),this.gripT.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripB.events.on("dragstart",(t=>{this._resizeStart(t.target)}))}_resizeStart(t){const e=this.get("sprite");e&&(this._is=e.get("scale",1),this._ix=t.x(),this._iw=this.width()/2)}_resize(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=Math.max(.01,this._is*(1+e*(t.x()-this._ix)/this._iw));s?s.set("scale",n):i.set("scale",n),i.states.lookup("default").set("scale",n),this._updatePositions()}}_rotate(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=this.parent;if(n){const r=this.get("rotationStep",10);let o=Math.round((h.getAngle({x:this.x(),y:this.y()},n.toLocal(t.point))+e)/r)*r;s?s.set("rotation",o):i.set("rotation",o),i.states.lookup("default").set("rotation",o),this._updatePositions()}}}_createGrip(t){const e=this.children.push(s.W.new(this._root,{themeTags:["grip",t],setStateOnChildren:!0,draggable:!0}));return e.children.push(r.c.new(this._root,{themeTags:["outline"],centerX:n.CI,centerY:n.CI})),e.children.push(r.c.new(this._root,{centerX:n.CI,centerY:n.CI})),e}_updateChildren(){if(super._updateChildren(),this.isDirty("sprite")){const t=this.get("sprite");if(t){this.show(0),this.setPrivate("visible",!0),this._updatePositions();const e=t.parent;e&&e.children.moveValue(this,0),this._positionDP=t.events.on("positionchanged",(()=>{this._updatePositions()})),this._positionDP=t.events.on("boundschanged",(()=>{this._updatePositions()}))}else this.hide(0),this.setPrivate("visible",!1),this._positionDP&&this._positionDP.dispose()}(this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation"))&&this._updatePositions()}_updatePositions(){const t=this.get("sprite");if(t){let e=t.localBounds(),i=t.get("scale",1),s=20,r=(e.right-e.left)*i+s,o=(e.bottom-e.top)*i+s,a=t.get("rotation",0);const l=this.rectangle;let c=t.get("centerX",n.CI),u=t.get("centerY",n.CI),d=0;c instanceof n.gG&&(d=c.value);let p=0;u instanceof n.gG&&(p=u.value),l.setAll({centerX:c,centerY:u,width:r,height:o}),this.setAll({x:t.x()+s*(d-.5)*h.cos(a)-s*(p-.5)*h.sin(a),y:t.y()+s*(p-.5)*h.cos(a)+s*(d-.5)*h.sin(a),width:r,height:o,rotation:a}),this.gripT.setAll({x:(.5-d)*r,y:-p*o}),this.gripB.setAll({x:(.5-d)*r,y:(1-p)*o}),this.gripL.setAll({x:-d*r,y:(.5-p)*o}),this.gripR.setAll({x:(1-d)*r,y:(.5-p)*o}),this.rectangle.setAll({width:r,height:o})}}}l.className="SpriteResizer",l.classNames=s.W.classNames.concat([l.className])},2036:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(4596),n=i(2132),r=i(5071),o=i(7652),a=i(7449);class h extends s.j{constructor(){super(...arguments),this.textStyle=this._root._renderer.makeTextStyle(),this._display=this._root._renderer.makeText("",this.textStyle),this._textStyles=["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}_updateBounds(){if(this.get("text")){super._updateBounds();let t=this.get("fillGradient");t&&(this._display.style.fill=t.getFill(this))}else{let t={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=t}}_changed(){super._changed(),this._display.clear();let t=this.textStyle;if(this.isDirty("opacity")){let t=this.get("opacity",1);this._display.alpha=t}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),"tooltip"==this.get("role")&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new a.ku((()=>{this._root._removeTooltipElement(this)}))),this.isDirty("width")&&(t.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(t.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(t.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(t.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(t.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(t.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){const e=this.get("fill"),i=this.get("fillGradient"),s=this.get("fillOpacity");if(i){if(e){const t=i.get("stops",[]);t.length&&r.each(t,(t=>{t.color&&!t.colorInherited||!e||(t.color=e,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=s,t.opacityInherited=!0)}))}t.fill=i.getFill(this)}else e&&(t.fill=e)}if(this.isDirty("fillOpacity")){let e=this.get("fillOpacity",1);e&&(t.fillOpacity=e)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(t.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(t.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),r.each(this._textStyles,(e=>{this._dirty[e]&&(t[e]=this.get(e),this.markDirtyBounds())})),t.fontSize=this.get("fontSize"),t.fontFamily=this.get("fontFamily"),this._display.style=t,this.isDirty("role")&&"tooltip"==this.get("role")&&this._root.updateTooltip(this)}_getText(){let t=this.get("text","");return this.get("maxChars")&&(t=o.truncateTextWithEllipsis(t,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?(0,n.q)(this,t):t}_getAccessibleText(){const t=this.get("ariaLabel");return void 0!==t?this.get("populateText")?(0,n.q)(this,t):t:this._getText()}markDirtyText(){this._display.text=this._getText(),"tooltip"==this.get("role")&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(t){super._setDataItem(t),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}h.className="Text",h.classNames=s.j.classNames.concat([h.className])},2438:function(t,e,i){"use strict";i.d(e,{d:function(){return n}});var s=i(2077);class n extends s.x{}n.className="Tick",n.classNames=s.x.classNames.concat([n.className])},2876:function(t,e,i){"use strict";i.d(e,{u:function(){return d}});var s=i(7449),n=i(962),r=i(8931),o=i(8777),a=i(6245),h=i(1112),l=i(751),c=i(5071),u=i(7652);class d extends o.W{constructor(t,e,i,s=[]){super(t,e,i,s),this._fx=0,this._fy=0,this._w=0,this._h=0,this._htmlContentHovered=!1}_afterNew(){this._settings.themeTags=u.mergeTags(this._settings.themeTags,["tooltip"]),super._afterNew(),this._setDefaultFn("background",(()=>r.i.new(this._root,{}))).set("themeTags",["tooltip","background"]),this._label=this.children.push(n._.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",(()=>{this._updateBackground()}))),this._disposers.push(this.on("bounds",(()=>{this._updateBackground()}))),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",(t=>{t&&(this._disposers.push(u.addEventListener(t,"pointerover",(t=>{this._htmlContentHovered=!0}))),this._disposers.push(u.addEventListener(t,"pointerout",(t=>{this._htmlContentHovered=!1}))))}))),this.on("visible",(t=>{this._handleReaderAnnouncement()})),this.label.events.on("dataitemchanged",(t=>{this._handleReaderAnnouncement()})),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),c.remove(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width"),null!=this.get("labelText")&&this.label.set("text",this.get("labelText")),null!=this.get("labelHTML")&&this.label.set("html",this.get("labelHTML")),null!=this.get("labelAriaLabel")&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover"))if(this.get("keepTargetHover")){const t=this.get("background");this._keepHoverDp=new s.FV([t.events.on("pointerover",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),e.hover())})),t.events.on("pointerout",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),this._htmlContentHovered||e.unhover())}))]),this.label.onPrivate("htmlElement",(e=>{this._keepHoverDp&&e&&this._keepHoverDp.disposers.push(u.addEventListener(e,"pointerleave",(e=>{const i=this.root._renderer.getEvent(e);t.events.dispatch("pointerout",{type:"pointerout",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))}))}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let t=this.get("tooltipTarget");const e=this.get("background");let i,s;if(t&&e){if(i=t.get("fill"),s=t.get("stroke"),null==i&&(i=s),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),null!=i&&e.set("fill",i),this._fillDp=t.on("fill",(t=>{null!=t&&(e.set("fill",t),this._updateTextColor(t))})),this._disposers.push(this._fillDp)),this.get("getFillGradientFromSprite")){this._fillGrDp&&this._fillGrDp.dispose();let i=t.get("fillGradient");null!=i&&e.set("fillGradient",i),this._fillGrDp=t.on("fillGradient",(t=>{null!=t&&e.set("fillGradient",t)})),this._disposers.push(this._fillGrDp)}this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),null!=i&&e.set("stroke",i),this._strokeDp=t.on("fill",(t=>{null!=t&&e.set("stroke",t)})),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),null!=i&&this.label.set("fill",i),this._labelDp=t.on("fill",(t=>{null!=t&&this.label.set("fill",t)})),this._disposers.push(this._labelDp))}this._updateTextColor(i)}_updateTextColor(t){this.get("autoTextColor")&&(null==t&&(t=this.get("background").get("fill")),null==t&&(t=this._root.interfaceColors.get("background")),t instanceof h.Il&&this.label.set("fill",h.Il.alternative(t,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(t){super._setDataItem(t),this.label._setDataItem(t)}_updateBackground(){super.updateBackground();const t=this._root.container;if(t){let e=.5,i=.5,s=this.get("centerX");s instanceof a.gG&&(e=s.value);let n=this.get("centerY");n instanceof a.gG&&(i=n.value);let o=t.width(),h=t.height(),c=this.parent,u=0,d=0;if(c){u=c.x(),d=c.y();const t=c.get("layerMargin");t&&(u+=t.left||0,d+=t.top||0,o+=(t.left||0)+(t.right||0),h+=(t.top||0)+(t.bottom||0))}const p=this.get("bounds",{left:-u,top:-d,right:o-u,bottom:h-d});this._updateBounds();let g=this.width(),f=this.height();0===g&&(g=this._w),0===f&&(f=this._h);let _=this.get("pointTo",{x:o/2,y:h/2}),m=_.x,y=_.y,v=this.get("pointerOrientation"),w=this.get("background"),b=0,x=0,D=0;w instanceof r.i&&(b=w.get("pointerLength",0),x=w.get("strokeWidth",0)/2,D=x,w.set("width",g),w.set("height",f));let k=0,T=0,M=p.right-p.left,E=p.bottom-p.top;"horizontal"==v||"left"==v||"right"==v?(x=0,"horizontal"==v?m>p.left+M/2?(m-=g*(1-e)+b,D*=-1):m+=g*e+b:"left"==v?m+=g*(1-e)+b:(m-=g*e+b,D*=-1)):(D=0,"vertical"==v?y>p.top+f/2+b?y-=f*(1-i)+b:(y+=f*i+b,x*=-1):"down"==v?y-=f*(1-i)+b:(y+=f*i+b,x*=-1)),m=l.fitToRange(m,p.left+g*e,p.left+M-g*(1-e))+D,y=l.fitToRange(y,p.top+f*i,p.top+E-f*(1-i))-x,k=_.x-m+g*e+D,T=_.y-y+f*i-x,this._fx=m,this._fy=y;const O=this.get("animationDuration",0);if(O>0&&this.get("visible")&&this.get("opacity")>.1){const t=this.get("animationEasing");this.animate({key:"x",to:m,duration:O,easing:t}),this.animate({key:"y",to:y,duration:O,easing:t})}else this.set("x",m),this.set("y",y);w instanceof r.i&&(w.set("pointerX",k),w.set("pointerY",T)),g>0&&(this._w=g),f>0&&(this._h=f)}}}d.className="Tooltip",d.classNames=o.W.classNames.concat([d.className])},941:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){const t=this.width(),e=this.height(),i=this._display;i.moveTo(-t/2,e/2),i.lineTo(0,-e/2),i.lineTo(t/2,e/2),i.lineTo(-t/2,e/2),i.closePath()}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Triangle",n.classNames=s.T.classNames.concat([n.className])},1706:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingTop",0),i=t.innerHeight(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minHeight",t.getPrivate("minHeight",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.height()),i-=e+t.get("marginTop",0)+t.get("marginBottom",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginTop",0)-t.get("marginBottom",0),n=t.get("minHeight",t.getPrivate("minHeight",-1/0)),r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("height",s)}else t._prevSettings.height instanceof r.gG&&t.setPrivate("height",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginTop",0),s=e.top,n=e.bottom,r=t.get("maxHeight");r&&n-s>r&&(n=s+r);let o=t.get("marginBottom",0),h=a+i-s;t.setPrivate("y",h),a=h+n+o}else t.setPrivate("y",void 0)}))}}o.className="VerticalLayout",o.classNames=s.A.classNames.concat([o.className])},6044:function(t,e,i){"use strict";i.d(e,{H:function(){return h}});var s=i(8777),n=i(8054),r=i(1479),o=i(7449),a=i(2647);class h extends s.W{constructor(){super(...arguments),this.homeButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["home"]})),this.plusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["plus"]})),this.minusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["minus"]}))}_afterNew(){super._afterNew(),this.set("position","absolute"),this.set("layout",this._root.verticalLayout),this.addTag("zoomtools"),this.plusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.minusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.homeButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("target")){const t=this.get("target"),e=this._prevSettings.target;t&&(t instanceof a.Y&&(this._targetDisposer=this.addDisposer(t.contents.on("scale",(e=>{e==t.get("minZoomLevel")?this.minusButton.set("disabled",!0):this.minusButton.set("disabled",!1),e==t.get("maxZoomLevel")?this.plusButton.set("disabled",!0):this.plusButton.set("disabled",!1)}))),this.root.events.once("frameended",(()=>{t.get("scale")==t.get("minZoomLevel")&&this.minusButton.set("disabled",!0)}))),this._disposer=new o.FV([this.plusButton.events.on("click",(()=>{t.zoomIn()})),this.minusButton.events.on("click",(()=>{t.zoomOut()})),this.homeButton.events.on("click",(()=>{t.goHome()}))])),e&&(this._disposer&&this._disposer.dispose(),this._targetDisposer&&this._targetDisposer.dispose())}}}h.className="ZoomTools",h.classNames=s.W.classNames.concat([h.className])},2647:function(t,e,i){"use strict";i.d(e,{Y:function(){return u}});var s=i(8777),n=i(6245),r=i(7142),o=i(1112),a=i(7652),h=i(751),l=i(256),c=i(5040);class u extends s.W{constructor(){super(...arguments),this._movePoints={},this._downScale=1,this._downX=0,this._downY=0,this.contents=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,x:0,y:0,draggable:!0,background:r.A.new(this._root,{fill:(0,o.$_)(16777215),fillOpacity:0})}))}_afterNew(){super._afterNew();const t=this.contents.events;this._disposers.push(t.on("pointerdown",(t=>{this._handleThisDown(t)}))),this._disposers.push(t.on("globalpointerup",(t=>{this._handleThisUp(t)}))),this._disposers.push(t.on("globalpointermove",(t=>{this._handleThisMove(t)})));const e=this.contents.get("background");e&&(e.adapters.add("width",(t=>20*Number(t))),e.adapters.add("height",(t=>20*Number(t))),e.adapters.add("x",(t=>Number(t)-e.width()/2)),e.adapters.add("y",(t=>Number(t)-e.height()/2)));const i=this.contents;i.adapters.add("x",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.width();t=Math.min(n*s,t),t=Math.max(this.width()-n*e*(1+s),t)}return t})),i.adapters.add("y",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.height();t=Math.min(n*s,t),t=Math.max(this.height()-n*e*(1+s),t)}return t}))}_prepareChildren(){super._prepareChildren(),this.isDirty("wheelable")&&this._handleSetWheel(),this.contents._display.cancelTouch=this.get("pinchZoom",!1)}_handleSetWheel(){this.get("wheelable")?(this._wheelDp&&this._wheelDp.dispose(),this._wheelDp=this.events.on("wheel",(t=>{const e=t.originalEvent;if(!a.isLocalEvent(e,this))return;e.preventDefault();const i=this.toLocal(t.point);this._handleWheelZoom(e.deltaY,i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_handleWheelZoom(t,e){let i=this.get("zoomStep",2),s=this.contents.get("scale",1),n=s;t>0?n=s/i:t<0&&(n=s*i),n!=s&&this.zoomToPoint(e,n)}zoomToPoint(t,e){e&&(e=h.fitToRange(e,this.get("minZoomLevel",1),this.get("maxZoomLevel",32)));const i=this.contents.get("scale",1);let s=t.x,n=t.y,r=s,o=n;const a=this.contents;let l=r-(s-a.x())/i*e,c=o-(n-a.y())/i*e;return this._animateTo(l,c,e),this._za}zoomIn(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)*this.get("zoomStep",2))}zoomOut(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)/this.get("zoomStep",2))}goHome(){return this._animateTo(0,0,1)}_animateTo(t,e,i){const s=this.get("animationDuration",0),n=this.get("animationEasing"),r=this.contents;this._txa=r.animate({key:"x",to:t,duration:s,easing:n}),this._tya=r.animate({key:"y",to:e,duration:s,easing:n}),this._za=r.animate({key:"scale",to:i,duration:s,easing:n})}_handleThisUp(t){this._downPoints={}}_handleThisDown(t){const e=this.contents;this._downScale=e.get("scale",1);const i=e._downPoints;let s=l.keys(i).length;if(1==s){let e=i[1];e||(e=i[0]),e&&e.x==t.point.x&&e.y==t.point.y&&(s=0)}if(s>0){this._downX=e.x(),this._downY=e.y();const t=e._getDownPointId();if(t){let i=this._movePoints[t];i&&(e._downPoints[t]=i)}}}_handleThisMove(t){const e=t.originalEvent.pointerId;this.get("pinchZoom")&&e&&(this._movePoints[e]=t.point,l.keys(this.contents._downPoints).length>1)&&this._handlePinch()}_handlePinch(){let t=0,e=[],i=[];if(l.each(this.contents._downPoints,((s,n)=>{e[t]=n;let r=this._movePoints[s];r&&(i[t]=r),t++})),e.length>1&&i.length>1){this.contents._isDragging=!1;let t=e[0],s=e[1],n=i[0],r=i[1];if(t&&s&&n&&r){t=this.toLocal(t),s=this.toLocal(s),n=this.toLocal(n),r=this.toLocal(r);let e=Math.hypot(s.x-t.x,s.y-t.y),i=Math.hypot(r.x-n.x,r.y-n.y)/e*this._downScale,o={x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2},a={x:t.x+(s.x-t.x)/2,y:t.y+(s.y-t.y)/2},h=this._downX||0,l=this._downY||0,c=this._downScale,u=o.x-(-h+a.x)/c*i,d=o.y-(-l+a.y)/c*i;this.contents.setAll({x:u,y:d,scale:i})}}}}u.className="ZoomableContainer",u.classNames=s.W.classNames.concat([u.className])},4102:function(t,e,i){"use strict";i.d(e,{mM:function(){return at},uK:function(){return rt}});var s=i(4680),n=i(1112);class r{constructor(t=1,e=0,i=0,s=1,n=0,r=0){this.a=t,this.b=e,this.c=i,this.d=s,this.tx=n,this.ty=r}setTransform(t,e,i,s,n,r=1){this.a=Math.cos(n)*r,this.b=Math.sin(n)*r,this.c=-Math.sin(n)*r,this.d=Math.cos(n)*r,this.tx=t-(i*this.a+s*this.c),this.ty=e-(i*this.b+s*this.d)}apply(t){return{x:this.a*t.x+this.c*t.y+this.tx,y:this.b*t.x+this.d*t.y+this.ty}}applyInverse(t){const e=1/(this.a*this.d+this.c*-this.b);return{x:this.d*e*t.x+-this.c*e*t.y+(this.ty*this.c-this.tx*this.d)*e,y:this.a*e*t.y+-this.b*e*t.x+(-this.ty*this.a+this.tx*this.b)*e}}append(t){const e=this.a,i=this.b,s=this.c,n=this.d;this.a=t.a*e+t.b*s,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*s,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*s+this.tx,this.ty=t.tx*i+t.ty*n+this.ty}prepend(t){const e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){const e=this.a,i=this.c;this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty}copyFrom(t){this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty}}var o=i(6245),a=i(7449),h=i(7255),l=i(7652),c=i(5071),u=i(256),d=i(5040),p=i(751),g=2*Math.PI,f=function(t,e,i,s,n,r,o){var a=t.x,h=t.y;return{x:s*(a*=e)-n*(h*=i)+r,y:n*a+s*h+o}},_=function(t,e){var i=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),s=Math.cos(t),n=Math.sin(t),r=Math.cos(t+e),o=Math.sin(t+e);return[{x:s-n*i,y:n+s*i},{x:r+o*i,y:o-r*i},{x:r,y:o}]},m=function(t,e,i,s){var n=t*i+e*s;return n>1&&(n=1),n<-1&&(n=-1),(t*s-e*i<0?-1:1)*Math.acos(n)},y=function(t){var e=t.px,i=t.py,s=t.cx,n=t.cy,r=t.rx,o=t.ry,a=t.xAxisRotation,h=void 0===a?0:a,l=t.largeArcFlag,c=void 0===l?0:l,u=t.sweepFlag,d=void 0===u?0:u,p=[];if(0===r||0===o)return[];var y=Math.sin(h*g/360),v=Math.cos(h*g/360),w=v*(e-s)/2+y*(i-n)/2,b=-y*(e-s)/2+v*(i-n)/2;if(0===w&&0===b)return[];r=Math.abs(r),o=Math.abs(o);var x=Math.pow(w,2)/Math.pow(r,2)+Math.pow(b,2)/Math.pow(o,2);x>1&&(r*=Math.sqrt(x),o*=Math.sqrt(x));var D=function(t,e,i,s,n,r,o,a,h,l,c,u){var d=Math.pow(n,2),p=Math.pow(r,2),f=Math.pow(c,2),_=Math.pow(u,2),y=d*p-d*_-p*f;y<0&&(y=0),y/=d*_+p*f;var v=(y=Math.sqrt(y)*(o===a?-1:1))*n/r*u,w=y*-r/n*c,b=l*v-h*w+(t+i)/2,x=h*v+l*w+(e+s)/2,D=(c-v)/n,k=(u-w)/r,T=(-c-v)/n,M=(-u-w)/r,E=m(1,0,D,k),O=m(D,k,T,M);return 0===a&&O>0&&(O-=g),1===a&&O<0&&(O+=g),[b,x,E,O]}(e,i,s,n,r,o,c,d,y,v,w,b),k=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],s=!0,n=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);s=!0);}catch(t){n=!0,r=t}finally{try{!s&&a.return&&a.return()}finally{if(n)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(D,4),T=k[0],M=k[1],E=k[2],O=k[3],P=Math.abs(O)/(g/4);Math.abs(1-P)<1e-7&&(P=1);var S=Math.max(Math.ceil(P),1);O/=S;for(var N=0;N1){const e=/^([01])([01])(.*)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t.splice(i,0,e[2]),++i,e[3].length>0?t[i]=e[3]:t.splice(i,1))}if(++i,s=t[i],s.length>1){const e=/^([01])(.+)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t[i]=e[2])}}}function D(t){if(0===t||1===t)return t;throw new Error("Flag must be 0 or 1")}function k(t,e){for(;(!t.interactive||e(t))&&t._parent;)t=t._parent}function T(t,e,i){return l.addEventListener(t,l.getRendererEvent(e),(t=>{const e=l.getEventTarget(t);let s=t.touches;s?(0==s.length&&(s=t.changedTouches),i(c.copy(s),e)):i([t],e)}))}function M(t){const e=document.createElement("canvas");e.width=1,e.height=1;const i=e.getContext("2d",{willReadFrequently:!0});i.drawImage(t,0,0,1,1);try{return i.getImageData(0,0,1,1),!1}catch(e){return console.warn('Image "'+t.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function E(t){t.width=0,t.height=0,t.style.width="0px",t.style.height="0px"}function O(t){return Math.floor(t)+.5}class P{constructor(){this._x=0,this._y=0}get x(){return this._x}get y(){return this._y}set x(t){this._x=t}set y(t){this._y=t}}class S extends a.KK{constructor(t){super(),this.mask=null,this.visible=!0,this.exportable=!0,this.interactive=!1,this.inactive=null,this.wheelable=!1,this.cancelTouch=!1,this.isMeasured=!1,this.buttonMode=!1,this.alpha=1,this.compoundAlpha=1,this.angle=0,this.scale=1,this.x=0,this.y=0,this.crisp=!1,this.pivot=new P,this._localMatrix=new r,this._matrix=new r,this._uMatrix=new r,this._renderer=t}subStatus(t){return{inactive:null==this.inactive?t.inactive:this.inactive,layer:this._layer||t.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let t=this;for(;;){if(t._layer)return t._layer;if(!t._parent)return this._renderer.defaultLayer;t=t._parent}}setLayer(t,e){if(null==t)this._layer=void 0;else{const i=!0;this._layer=this._renderer.getLayer(t,i),this._layer.visible=i,this._layer.margin=e,e&&l.setInteractive(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost()}}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(t){}_getColorId(){return void 0===this._colorId&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(t){return!t.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(t){return this._isInteractive(t)}contains(t){for(;;){if(t===this)return!0;if(!t._parent)return!1;t=t._parent}}toGlobal(t){return this._matrix.apply(t)}toLocal(t){return this._matrix.applyInverse(t)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){if(!this._localBounds){const t=1e7;this._localBounds={left:t,top:t,right:-t,bottom:-t},this._addBounds(this._localBounds)}return this._localBounds}getAdjustedBounds(t){this._setMatrix();const e=this.getLocalMatrix(),i=e.apply({x:t.left,y:t.top}),s=e.apply({x:t.right,y:t.top}),n=e.apply({x:t.right,y:t.bottom}),r=e.apply({x:t.left,y:t.bottom});return{left:Math.min(i.x,s.x,n.x,r.x),top:Math.min(i.y,s.y,n.y,r.y),right:Math.max(i.x,s.x,n.x,r.x),bottom:Math.max(i.y,s.y,n.y,r.y)}}on(t,e,i){return this.interactive?this._renderer._addEvent(this,t,e,i):new a.ku((()=>{}))}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(t,e){const i=this._matrix;let s=i.tx*e,n=i.ty*e;this.crisp&&(s=O(s),n=O(n)),t.setTransform(i.a*e,i.b*e,i.c*e,i.d*e,s,n)}_transformMargin(t,e,i){const s=this._matrix;t.setTransform(s.a*e,s.b*e,s.c*e,s.d*e,(s.tx+i.left)*e,(s.ty+i.top)*e)}_transformLayer(t,e,i){i.margin?this._transformMargin(t,i.scale||e,i.margin):this._transform(t,i.scale||e)}render(t,e=0){if(this.visible&&(!1!==this.exportable||!this._renderer._omitTainted)){this._setMatrix();const i=this.subStatus(t),s=this._renderer.resolution,n=this._renderer.layers,r=this._renderer._ghostLayer,o=r.context,a=this.mask;a&&a._setMatrix(),c.each(n,(t=>{if(t){const e=t.context;e.save(),a&&(a._transformLayer(e,s,t),a._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(e,s,t),this.filter&&(e.filter=this.filter)}})),o.save(),a&&this._isInteractiveMask(i)&&(a._transformMargin(o,s,r.margin),a._runPath(o),o.clip()),this._transformMargin(o,s,r.margin),i.layer.order>0&&!e&&c.move(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,e),o.restore(),c.each(n,(t=>{t&&t.context.restore()}))}}_render(t,e=0){!1===this.exportable&&(t.layer.tainted=!0)}_ghostOnly(t=0){return t>0}_drawGhost(t,e=0){const i=this._isInteractive(t),s=t.layer.order||0;return!(!i||(0!=s||this._ghostOnly(e))&&s!=e)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some((t=>t.value===this))}shouldCancelTouch(){const t=this._renderer;return!(t.tapToActivate&&!t._touchActive)&&(!!this.cancelTouch||!!this._parent&&this._parent.shouldCancelTouch())}}class N extends S{constructor(){super(...arguments),this.interactiveChildren=!0,this._children=[]}_isInteractiveMask(t){return this.interactiveChildren||super._isInteractiveMask(t)}addChild(t){t._parent=this,this._children.push(t),t._layer&&this.registerChildLayer(t._layer)}addChildAt(t,e){t._parent=this,this._children.splice(e,0,t),t._layer&&this.registerChildLayer(t._layer)}removeChild(t){t._parent=void 0,c.removeFirst(this._children,t)}_render(t,e){super._render(t);const i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,c.each(this._children,(i=>{i.compoundAlpha=this.compoundAlpha*this.alpha,i.render(t,e)})),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(t){this._childLayers||(this._childLayers=[]),c.pushOne(this._childLayers,t),this._parent&&this._parent.registerChildLayer(t)}markDirtyLayer(t=!1){super.markDirtyLayer(),t&&this._childLayers&&c.each(this._childLayers,(t=>t.dirty=!0))}_dispose(){super._dispose(),this._childLayers&&c.each(this._childLayers,(t=>{t.dirty=!0}))}}function C(t,e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.right=Math.max(t.right,e.x),t.bottom=Math.max(t.bottom,e.y)}class L{colorize(t,e){}colorizeGhost(t,e){this.colorize(t,e)}path(t){}pathGhost(t){this.path(t)}addBounds(t){}}class A extends L{colorize(t,e){t.beginPath()}}class R extends L{constructor(t){super(),this.color=t}colorize(t,e){t.fillStyle=void 0!==e?e:this.color}}class U extends L{constructor(t){super(),this.clearShadow=t}colorize(t,e){t.fill(),this.clearShadow&&(t.shadowColor="",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}}class B extends L{colorize(t,e){t.stroke()}}class F extends L{constructor(t,e,i,s){super(),this.width=t,this.color=e,this.lineJoin=i,this.lineCap=s}colorize(t,e){t.strokeStyle=void 0!==e?e:this.color,t.lineWidth=this.width,this.lineJoin&&(t.lineJoin=this.lineJoin),this.lineCap&&(t.lineCap=this.lineCap)}}class I extends L{constructor(t){super(),this.dash=t}colorize(t,e){t.setLineDash(this.dash)}}class H extends L{constructor(t){super(),this.dashOffset=t}colorize(t,e){t.lineDashOffset=this.dashOffset}}class z extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.width=i,this.height=s}path(t){t.rect(this.x,this.y,this.width,this.height)}addBounds(t){const e=this.x,i=this.y,s=e+this.width,n=i+this.height;C(t,{x:e,y:i}),C(t,{x:s,y:i}),C(t,{x:e,y:n}),C(t,{x:s,y:n})}}class G extends L{constructor(t,e,i){super(),this.x=t,this.y=e,this.radius=i}path(t){t.moveTo(this.x+this.radius,this.y),t.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radius,y:this.y-this.radius}),C(t,{x:this.x+this.radius,y:this.y+this.radius})}}class V extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.radiusX=i,this.radiusY=s}path(t){t.ellipse(0,0,this.radiusX,this.radiusY,0,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radiusX,y:this.y-this.radiusY}),C(t,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class W extends L{constructor(t,e,i,s,n,r){super(),this.cx=t,this.cy=e,this.radius=i,this.startAngle=s,this.endAngle=n,this.anticlockwise=r}path(t){this.radius>0&&t.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(t){let e=p.getArcBounds(this.cx,this.cy,this.startAngle*p.DEGREES,this.endAngle*p.DEGREES,this.radius);C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}class Y extends L{constructor(t,e,i,s,n){super(),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.radius=n}path(t){this.radius>0&&t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(t){}}class j extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.lineTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class X extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.moveTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class $ extends L{path(t){t.closePath()}}class Z extends L{constructor(t,e,i,s,n,r){super(),this.cpX=t,this.cpY=e,this.cpX2=i,this.cpY2=s,this.toX=n,this.toY=r}path(t){t.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.cpX2,y:this.cpY2}),C(t,{x:this.toX,y:this.toY})}}class K extends L{constructor(t,e,i,s){super(),this.cpX=t,this.cpY=e,this.toX=i,this.toY=s}path(t){t.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.toX,y:this.toY})}}class q extends L{constructor(t,e,i,s,n){super(),this.color=t,this.blur=e,this.offsetX=i,this.offsetY=s,this.opacity=n}colorize(t,e){this.opacity&&(t.fillStyle=this.color),t.shadowColor=this.color,t.shadowBlur=this.blur,t.shadowOffsetX=this.offsetX,t.shadowOffsetY=this.offsetY}colorizeGhost(t,e){}}class Q extends L{constructor(t,e,i,s,n){super(),this.image=t,this.width=e,this.height=i,this.x=s,this.y=n}path(t){t.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(t){C(t,{x:this.x,y:this.y}),C(t,{x:this.width,y:this.height})}}class J extends S{constructor(){super(...arguments),this._operations=[],this.blendMode=s.b.NORMAL,this._hasShadows=!1}clear(){super.clear(),this._operations.length=0}_pushOp(t){this._operations.push(t)}beginFill(t,e=1){this._fillAlpha=e,t?t instanceof n.Il?this._pushOp(new R(t.toCSS(e))):(this.isMeasured=!0,this._pushOp(new R(t))):this._pushOp(new R("rgba(0, 0, 0, "+e+")"))}endFill(){this._pushOp(new U(this._hasShadows))}endStroke(){this._pushOp(new B)}beginPath(){this._pushOp(new A)}lineStyle(t=0,e,i=1,s,r){this._strokeAlpha=i,e?e instanceof n.Il?this._pushOp(new F(t,e.toCSS(i),s,r)):this._pushOp(new F(t,e,s,r)):this._pushOp(new F(t,"rgba(0, 0, 0, "+i+")",s,r))}setLineDash(t){this._pushOp(new I(t||[]))}setLineDashOffset(t=0){this._pushOp(new H(t))}drawRect(t,e,i,s){this._pushOp(new z(t,e,i,s))}drawCircle(t,e,i){this._pushOp(new G(t,e,i))}drawEllipse(t,e,i,s){this._pushOp(new V(t,e,i,s))}arc(t,e,i,s,n,r=!1){this._pushOp(new W(t,e,i,s,n,r))}arcTo(t,e,i,s,n){this._pushOp(new Y(t,e,i,s,n))}lineTo(t,e){this._pushOp(new j(t,e))}moveTo(t,e){this._pushOp(new X(t,e))}bezierCurveTo(t,e,i,s,n,r){this._pushOp(new Z(t,e,i,s,n,r))}quadraticCurveTo(t,e,i,s){this._pushOp(new K(t,e,i,s))}closePath(){this._pushOp(new $)}shadow(t,e=0,i=0,s=0,n){this._hasShadows=!0,this._pushOp(new q(n?t.toCSS(n):t.toCSS(this._fillAlpha||this._strokeAlpha),e,i,s))}image(t,e,i,s,n){this._pushOp(new Q(t,e,i,s,n))}svgPath(t){let e=0,i=0,s=null,n=null,r=null,o=null;const a=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,h=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g,l=this._operations.length;try{let l;for(;null!==(l=a.exec(t));){const t=l[1],a=l[2],u=[];for(;null!==(l=h.exec(a));)u.push(l[1]);switch("S"!==t&&"s"!==t&&"C"!==t&&"c"!==t&&(s=null,n=null),"Q"!==t&&"q"!==t&&"T"!==t&&"t"!==t&&(r=null,o=null),t){case"M":b(t,u.length,2),e=+u[0],i=+u[1],this.moveTo(e,i);for(let t=2;t{this.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y),e=t.x,i=t.y}))}break;case"Z":case"z":v(t,u.length,0),this.closePath()}}}catch(e){this._operations.length=l,console.warn("Error when parsing svgPath:\n "+e.message+"\n"+t)}}_runPath(t){t.beginPath(),c.each(this._operations,(e=>{e.path(t)}))}_render(t,e=0){super._render(t);const i=t.layer.dirty,s=this._isInteractive(t),n=this._ghostOnly(e),r=this._drawGhost(t,e);if(i||s||n){const e=t.layer.context,s=this._renderer._ghostLayer.context;let o;i&&!n&&(e.globalCompositeOperation=this.blendMode,e.beginPath()),r&&(s.beginPath(),o=this._getColorId()),c.each(this._operations,(t=>{i&&!n&&(t.path(e),t.colorize(e,void 0)),r&&(t.pathGhost(s),t.colorizeGhost(s,o))}))}}renderDetached(t){if(this.visible){this._setMatrix(),t.save();const e=this.mask;e&&(e._setMatrix(),e._transform(t,1),e._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transform(t,1),this.filter&&(t.filter=this.filter),t.globalCompositeOperation=this.blendMode,t.beginPath(),c.each(this._operations,(e=>{e.path(t),e.colorize(t,void 0)})),t.restore()}}_addBounds(t){this.visible&&this.isMeasured&&c.each(this._operations,(e=>{e.addBounds(t)}))}}class tt extends S{constructor(t,e,i){super(t),this.resolution=1,this.textVisible=!0,this._originalScale=1,this.text=e,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_shared(t){this.style.textAlign&&(t.textAlign=this.style.textAlign),this.style.direction&&(t.direction=this.style.direction),this.style.textBaseline&&(t.textBaseline=this.style.textBaseline)}_prerender(t,e=!1,i=!1){super._render(t);const s=t.layer.context,r=this._renderer._ghostLayer.context,o=this.style;let a=this._getFontStyle(void 0,i);s.font=a,this._isInteractive(t)&&!e&&(r.font=a),o.fill&&(o.fill instanceof n.Il?s.fillStyle=o.fill.toCSS(null!=o.fillOpacity?o.fillOpacity:1):s.fillStyle=o.fill),o.shadowColor&&(t.layer.context.shadowColor=o.shadowColor.toCSS(o.shadowOpacity||1)),o.shadowBlur&&(t.layer.context.shadowBlur=o.shadowBlur),o.shadowOffsetX&&(t.layer.context.shadowOffsetX=o.shadowOffsetX),o.shadowOffsetY&&(t.layer.context.shadowOffsetY=o.shadowOffsetY),this._shared(s),this._isInteractive(t)&&!e&&(r.fillStyle=this._getColorId(),this._shared(r))}_getFontStyle(t,e=!1){const i=this.style;let s=[];return t&&t.fontVariant?s.push(t.fontVariant):i.fontVariant&&s.push(i.fontVariant),e||(t&&t.fontWeight?s.push(t.fontWeight):i.fontWeight&&s.push(i.fontWeight)),t&&t.fontStyle?s.push(t.fontStyle):i.fontStyle&&s.push(i.fontStyle),t&&t.fontSize?(d.isNumber(t.fontSize)&&(t.fontSize=t.fontSize+"px"),s.push(t.fontSize)):i.fontSize&&(d.isNumber(i.fontSize)&&(i.fontSize=i.fontSize+"px"),s.push(i.fontSize)),t&&t.fontFamily?s.push(t.fontFamily):i.fontFamily?s.push(i.fontFamily):s.length&&s.push("Arial"),s.join(" ")}_render(t,e=0){if(this._textInfo||this._measure(t),this.textVisible){const i=this._isInteractive(t),s=t.layer.context,r=t.layer.dirty,o=this._renderer._ghostLayer.context,a=this._ghostOnly(e),l=this._drawGhost(t,e);s.save(),o.save(),this._prerender(t),c.each(this._textInfo,((e,u)=>{c.each(e.textChunks,((c,u)=>{if(c.style&&(s.save(),o.save(),a||(s.font=c.style),this._isInteractive(t)&&(o.font=c.style)),c.fill&&(s.save(),a||(s.fillStyle=c.fill.toCSS())),r&&!a&&s.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),"underline"==c.textDecoration||"line-through"==c.textDecoration){let t=1,i=1,r=c.height;const o=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(o)>-1){const t=this._measureText(c.text,s);c.width=t.actualBoundingBoxLeft+t.actualBoundingBoxRight}let l,u=c.offsetX;switch(this.style.textAlign){case"right":case"end":u-=c.width;break;case"center":u-=c.width/2}if(c.style)switch(h.V.getTextStyle(c.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":t=2}r&&(i=r/20),l="line-through"==c.textDecoration?t+e.offsetY+c.offsetY-c.height/2:t+1.5*i+e.offsetY+c.offsetY,a||(s.save(),s.beginPath(),c.fill?s.strokeStyle=c.fill.toCSS():this.style.fill&&this.style.fill instanceof n.Il&&(s.strokeStyle=this.style.fill.toCSS()),s.lineWidth=t*i,s.moveTo(u,l),s.lineTo(u+c.width,l),s.stroke(),s.restore())}i&&this.interactive&&l&&o.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),c.fill&&s.restore(),c.style&&(s.restore(),o.restore())}))})),s.restore(),o.restore()}}_addBounds(t){if(this.visible&&this.isMeasured){const e=this._measure({inactive:this.inactive,layer:this.getLayer()});C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction;this._textInfo=[];const n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=d.isNumber(r)&&("wrap"==n||"wrap-no-break"==n);e.save(),i.save(),this._prerender(t,!0,this._ignoreFontWeight());const p="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",g=this.text.toString().replace(/\r/g,"").split(/\n/);let f,_=!0,m=0,y=0,v=0;c.each(g,((t,s)=>{let n;for(n=""==t?[{type:"value",text:""}]:h.V.chunk(t,!1,this.style.ignoreFormatting);n.length>0;){let t={offsetY:v,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const s=this._measureText(p,e),g=s.actualBoundingBoxAscent+s.actualBoundingBoxDescent;let w;t.height=g,t.ascent=s.actualBoundingBoxAscent;let b,x,D,k=this.style.textDecoration,T=!1,M=!0,E=[];c.eachContinue(n,((s,o)=>{if("format"==s.type)if("[/]"==s.text)_||(e.restore(),i.restore(),_=!0),b=void 0,f=void 0,x=void 0,k=this.style.textDecoration,D=void 0,w=s.text;else{_||(e.restore(),i.restore());let n=h.V.getTextStyle(s.text);const r=this._getFontStyle(n);e.save(),i.save(),e.font=r,f=r,w=s.text,n.textDecoration&&(k=n.textDecoration),n.fill&&(b=n.fill),n.width&&(x=d.toNumber(n.width)),n.verticalAlign&&(D=n.verticalAlign),_=!1;const o=this._measureText(p,e),a=o.actualBoundingBoxAscent+o.actualBoundingBoxDescent;a>t.height&&(t.height=a),o.actualBoundingBoxAscent>t.ascent&&(t.ascent=o.actualBoundingBoxAscent)}else if("value"==s.type&&!T){const i=this._measureText(s.text,e);let h=i.actualBoundingBoxLeft+i.actualBoundingBoxRight;if(a){this.truncated=void 0;let i=M||this.style.breakWords||!1;const n=this.style.ellipsis||"",o=this._measureText(n,e),a=o.actualBoundingBoxLeft+o.actualBoundingBoxRight;if(t.width+h>r){const o=r-t.width-a;s.text=this._truncateText(e,s.text,o,i),s.text+=n,T=!0,this.truncated=!0}}else if(u&&t.width+h>r){const i=r-t.width,a=this._truncateText(e,s.text,i,!1,M&&"wrap-no-break"!=this.style.oversizedBehavior);if(""==a)return this.textVisible=!0,!1;E=n.slice(o+1),l.trim(a)!=l.trim(s.text)&&(E.unshift({type:"value",text:s.text.substr(a.length)}),w&&E.unshift({type:"format",text:w})),s.text=l.trim(a),n=[],T=!0}let c=1,d=1;if(f&&x&&x>h){const t=h/x;switch(this.style.textAlign){case"right":case"end":c=t;break;case"center":c=t,d=t;break;default:d=t}h=x}const p=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent;p>t.height&&(t.height=p),i.actualBoundingBoxAscent>t.ascent&&(t.ascent=i.actualBoundingBoxAscent),t.width+=h,t.left+=i.actualBoundingBoxLeft/c,t.right+=i.actualBoundingBoxRight/d,t.textChunks.push({style:f,fill:b,text:s.text,width:h,height:p,left:i.actualBoundingBoxLeft,right:i.actualBoundingBoxRight,ascent:i.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:k,verticalAlign:D}),M=!1}return!0})),this.style.lineHeight instanceof o.gG?(t.height*=this.style.lineHeight.value,t.ascent*=this.style.lineHeight.value):(t.height*=this.style.lineHeight||1.2,t.ascent*=this.style.lineHeight||1.2),m{let i=0;c.each(t.textChunks,(e=>{if(e.offsetX=i+e.left-t.left,e.offsetY+=t.height-t.height*(this.style.baselineRatio||.19),i+=e.width*(s?-1:1),e.verticalAlign)switch(e.verticalAlign){case"super":e.offsetY-=t.height/2-e.height/2;break;case"sub":e.offsetY+=e.height/2}}))}));const w={left:s?-y:-m,top:0,right:s?m:y,bottom:v};if("none"!==n){const t=this._fitRatio(w);if(t<1)if("fit"==n)d.isNumber(this.style.minScale)&&ti&&""!=e);return e}_measureText(t,e){let i=e.measureText(t),s={};if(null==i.actualBoundingBoxAscent){const e=document.createElement("div");e.innerText=t,e.style.visibility="hidden",e.style.position="absolute",e.style.top="-1000000px;",e.style.fontFamily=this.style.fontFamily||"",e.style.fontSize=this.style.fontSize+"",document.body.appendChild(e);const n=e.getBoundingClientRect();document.body.removeChild(e);const r=n.height,o=i.width;s={actualBoundingBoxAscent:r,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:o,fontBoundingBoxAscent:r,fontBoundingBoxDescent:0,width:o}}else s={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const n=i.width;switch(this.style.textAlign){case"right":case"end":s.actualBoundingBoxLeft=n,s.actualBoundingBoxRight=0;break;case"center":s.actualBoundingBoxLeft=n/2,s.actualBoundingBoxRight=n/2;break;default:s.actualBoundingBoxLeft=0,s.actualBoundingBoxRight=n}return s}}class et{constructor(){this.lineHeight=(0,o.aQ)(120),this.baselineRatio=.19,this.oversizedBehavior="none",this.breakWords=!1,this.ellipsis="…",this.ignoreFormatting=!1}}class it extends tt{constructor(){super(...arguments),this.textType="circular",this.inside=!1,this.orientation="auto",this.kerning=0,this._textReversed=!1}_render(t,e=0){"circular"===this.textType?this._renderCircular(t,e):super._render(t,e)}_renderCircular(t,e=0){if(this.textVisible){this._prerender(t);const i=this._isInteractive(t),s=t.layer.context,n=t.layer.dirty,r=this._renderer._ghostLayer.context;s.save(),i&&r.save(),this._textInfo||this._measure(t);let o=this.radius||0,a=this.startAngle||0,h=0,l=this.orientation,u="auto"==l?"auto":"inward"==l;const d=this.inside,g=this.style.textAlign||"left",f=this.kerning||0;let _="left"==g?1:-1;const m=!this._textReversed,y=this._ghostOnly(e),v=this._drawGhost(t,e);if("auto"==u){let t=0,e=0;c.each(this._textInfo,((e,i)=>{const s=a+e.width/(o-e.height)/2*-_;s>t&&(t=s)})),e="left"==g?(t+h/2)*p.DEGREES:"right"==g?(t-h/2)*p.DEGREES:a*p.DEGREES,e=p.normalizeAngle(e),u=e>=270||e<=90}1==u&&m&&(this._textInfo.reverse(),this._textReversed=!0),c.each(this._textInfo,((t,e)=>{const l=t.height;d||(o+=l),(-1==_&&u||1==_&&!u)&&m&&t.textChunks.reverse();let p=a;h=0,"center"==g&&(p+=t.width/(o-l)/2*-_,h=p-a),p+=Math.PI*(u?0:1),s.save(),i&&r.save(),y||s.rotate(p),i&&r.rotate(p);let w=0;c.each(t.textChunks,((t,e)=>{const a=t.text,h=t.width;w=h/2/(o-l)*_,y||s.rotate(w),i&&r.rotate(w),t.style&&(s.save(),r.save(),y||(s.font=t.style),i&&(r.font=t.style)),t.fill&&(s.save(),y||(s.fillStyle=t.fill.toCSS())),y||(s.textBaseline="middle",s.textAlign="center"),i&&(r.textBaseline="middle",r.textAlign="center"),n&&!y&&s.fillText(a,0,(u?1:-1)*(0-o+l/2)),i&&v&&r.fillText(a,0,(u?1:-1)*(0-o+l/2)),t.fill&&s.restore(),t.style&&(s.restore(),r.restore()),w=(h/2+f)/(o-l)*_,y||s.rotate(w),i&&r.rotate(w)})),s.restore(),i&&r.restore(),d&&(o-=l)})),s.restore(),i&&r.restore()}}_measure(t){return"circular"===this.textType?this._measureCircular(t):super._measure(t)}_measureCircular(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction,n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=this.style.ellipsis||"";let p;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,e.save(),i.save(),this._prerender(t,!0);const g=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,_=0,m=0;return c.each(g,((t,n)=>{let g,y,v,w=h.V.chunk(t,!1,this.style.ignoreFormatting),b={offsetY:m,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};c.each(w,((t,n)=>{if("format"==t.type){if("[/]"==t.text)f||(e.restore(),i.restore(),f=!0),y=void 0,g=void 0,v=void 0;else{let s=h.V.getTextStyle(t.text);const n=this._getFontStyle(s);e.save(),i.save(),e.font=n,g=n,s.fill&&(y=s.fill),s.width&&(v=d.toNumber(s.width)),f=!1}a&&(p=this._measureText(u,e))}else if("value"==t.type){let i=t.text.match(/./gu)||[];s&&(i=l.splitString(t.text),i.reverse());for(let t=0;to&&(o=v);const h=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;if(h>b.height&&(b.height=h),n.actualBoundingBoxAscent>b.ascent&&(b.ascent=n.actualBoundingBoxAscent),_+=o,a){p||(p=this._measureText(u,e));const t=p.actualBoundingBoxLeft+p.actualBoundingBoxRight;if(_+t>r){1==b.textChunks.length?this.textVisible=!1:(b.width+=t,b.left+=p.actualBoundingBoxLeft,b.right+=p.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:u,width:t,height:h+p.actualBoundingBoxDescent,left:p.actualBoundingBoxLeft,right:p.actualBoundingBoxRight,ascent:p.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0}));break}}b.width+=o,b.left+=n.actualBoundingBoxLeft,b.right+=n.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:s,width:o,height:h+n.actualBoundingBoxDescent,left:n.actualBoundingBoxLeft,right:n.actualBoundingBoxRight,ascent:n.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0})}}})),this.style.lineHeight instanceof o.gG?b.height*=this.style.lineHeight.value:b.height*=this.style.lineHeight||1.2,this._textInfo.push(b),m+=b.height})),f||(e.restore(),i.restore()),"hide"==n&&_>r&&(this.textVisible=!1),c.each(this._textInfo,(t=>{c.each(t.textChunks,(e=>{e.offsetY+=Math.round((t.height-e.height+(t.ascent-e.ascent))/2)}))})),e.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class st extends S{constructor(t,e){super(t),this.image=e}_dispose(){super._dispose(),this._imageMask&&E(this._imageMask)}getLocalBounds(){if(!this._localBounds){let t=0,e=0;this.width&&(t=this.width),this.height&&(e=this.height),this._localBounds={left:0,top:0,right:t,bottom:e},this._addBounds(this._localBounds)}return this._localBounds}_render(t,e=0){if(super._render(t),this.image){if(void 0===this.tainted&&(this.tainted=M(this.image),t.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;const i=this._ghostOnly(e),s=this._drawGhost(t,e);if(t.layer.dirty&&!i){this.shadowColor&&(t.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(t.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(t.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(t.layer.context.shadowOffsetY=this.shadowOffsetY);const e=this.width||this.image.naturalWidth,i=this.height||this.image.naturalHeight;t.layer.context.drawImage(this.image,0,0,e,i)}if(this.interactive&&this._isInteractive(t)&&s){const t=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(t,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(t){if(void 0===this._imageMask){const e=this.width||t.naturalWidth,i=this.height||t.naturalHeight,s=document.createElement("canvas");s.width=e,s.height=i;const n=s.getContext("2d");n.imageSmoothingEnabled=!1,n.fillStyle=this._getColorId(),n.fillRect(0,0,e,i),M(t)||(n.globalCompositeOperation="destination-in",n.drawImage(t,0,0,e,i)),this._imageMask=s}return this._imageMask}}class nt{constructor(t,e,i,s){this.event=t,this.originalPoint=e,this.point=i,this.bbox=s,this.simulated=!1,this.native=!0,l.supports("touchevents")&&t instanceof Touch?this.id=t.identifier:this.id=null}}class rt extends a.rk{constructor(t){if(super(),this.view=document.createElement("div"),this._layerDom=document.createElement("div"),this.layers=[],this._dirtyLayers=[],this.defaultLayer=this.getLayer(0),this._ghostLayer=new ot,this._deferredGhostLayers=[],this._patternCanvas=document.createElement("canvas"),this._patternContext=this._patternCanvas.getContext("2d"),this._realWidth=0,this._realHeight=0,this._calculatedWidth=0,this._calculatedHeight=0,this.interactionsEnabled=!0,this._listeners={},this._events={},this._colorId=0,this._colorMap={},this._forceInteractive=0,this._omitTainted=!1,this._hovering=new Set,this._dragging=[],this._mousedown=[],this.tapToActivate=!1,this.tapToActivateTimeout=3e3,this._touchActive=!1,this.resolution=null==t?window.devicePixelRatio:t,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new a.ku((()=>{u.each(this._events,((t,e)=>{e.disposer.dispose()})),c.each(this.layers,(t=>{E(t.view),t.exportableView&&E(t.exportableView)})),E(this._ghostLayer.view),E(this._patternCanvas)}))),this._disposers.push(l.onZoom((()=>{null==t&&(this.resolution=window.devicePixelRatio)}))),l.supports("touchevents")){const t=t=>{0!==this._dragging.length&&c.eachContinue(this._dragging,(e=>!e.value.shouldCancelTouch()||(t.preventDefault(),!1))),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(l.addEventListener(window,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchmove",(()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()}),{passive:!0})),this._disposers.push(l.addEventListener(window,"click",(t=>{this._touchActive=!1}),{passive:!0})),this._disposers.push(l.addEventListener(this.view,"click",(t=>{window.setTimeout((()=>{this._touchActive=!0,this._delayTouchDeactivate()}),100)}),{passive:!0}))}l.supports("wheelevents")&&this._disposers.push(l.addEventListener(this.view,"wheel",(t=>{let e=!1;this._hovering.forEach((t=>{if(t.wheelable)return e=!0,!1})),e&&t.preventDefault()}),{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout((()=>{this._touchActive=!1}),this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(t){t?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(t,e,i,s){return this.defaultLayer.context.createLinearGradient(t,e,i,s)}createRadialGradient(t,e,i,s,n,r){return this.defaultLayer.context.createRadialGradient(t,e,i,s,n,r)}createPattern(t,e,i,s,n){return this._patternCanvas.width=s,this._patternCanvas.height=n,this._patternContext.clearRect(0,0,s,n),e.renderDetached(this._patternContext),t.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new N(this)}makeGraphics(){return new J(this)}makeText(t,e){return new tt(this,t,e)}makeTextStyle(){return new et}makeRadialText(t,e){return new it(this,t,e)}makePicture(t){return new st(this,t)}resizeLayer(t){t.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(t,e,i,s){this._realWidth=t,this._realHeight=e,this._calculatedWidth=i,this._calculatedHeight=s,c.each(this.layers,(t=>{t&&(t.dirty=!0,this.resizeLayer(t))})),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(t=!1){const e=document.createElement("canvas"),i=e.getContext("2d",{willReadFrequently:t}),s=new at(e,i);return e.style.position="absolute",e.style.top="0px",e.style.left="0px",s}getLayerByOrder(t){const e=this.layers,i=e.length;for(let s=0;st.order>e.order?1:t.order{t&&t.dirty&&t.visible&&(this._dirtyLayers.push(t),t.clear())})),this._ghostLayer.clear(),t.render({inactive:null,layer:this.defaultLayer});const e=this._deferredGhostLayers;if(e.length&&(e.sort(((t,e)=>t-e)),c.each(e,(e=>{t.render({inactive:null,layer:this.defaultLayer},e)}))),this._ghostLayer.context.restore(),c.each(this.layers,(t=>{if(t){const e=t.context;e.beginPath(),e.moveTo(0,0),e.stroke()}})),c.each(this._dirtyLayers,(t=>{t.context.restore(),t.dirty=!1})),this._hovering.size&&this._lastPointerMoveEvent){const{events:t,target:e,native:i}=this._lastPointerMoveEvent;c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))}}paintId(t){const e=function(t){const e=[0,0,0];for(let i=0;i<24;i++)e[i%3]<<=1,e[i%3]|=1&t,t>>=1;return(0|e[0])+(e[1]<<8)+(e[2]<<16)}(++this._colorId),i=n.Il.fromHex(e).toCSS();return this._colorMap[i]=t,i}_removeObject(t){void 0!==t._colorId&&delete this._colorMap[t._colorId]}_adjustBoundingBox(t){const e=this._ghostLayer.margin;return new DOMRect(-e.left,-e.top,t.width+e.left+e.right,t.height+e.top+e.bottom)}getEvent(t,e=!0){const i=this.view.getBoundingClientRect(),s=t.clientX||0,n=t.clientY||0,r=this._calculatedWidth/this._realWidth,o=this._calculatedHeight/this._realHeight,a={x:s-i.left,y:n-i.top},h={x:(s-(e?i.left:0))*r,y:(n-(e?i.top:0))*o};return new nt(t,a,h,this._adjustBoundingBox(i))}_getHitTarget(t,e,i){if(0===e.width||0===e.height||t.xe.right||t.ye.bottom)return;if(!i||!this._layerDom.contains(i))return;const s=this._ghostLayer.getImageData(t,e);if(0===s.data[0]&&0===s.data[1]&&0===s.data[2])return!1;const r=n.Il.fromRGB(s.data[0],s.data[1],s.data[2]).toCSS();return this._colorMap[r]}getObjectAtPoint(t){const e=this._ghostLayer.getImageArray(t);if(0===e[0]&&0===e[1]&&0===e[2])return;const i=n.Il.fromRGB(e[0],e[1],e[2]).toCSS();return this._colorMap[i]}_withEvents(t,e){const i=this._events[t];if(void 0!==i){i.dispatching=!0;try{e(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,c.keepIf(i.callbacks,(t=>!t.disposed)),0===i.callbacks.length&&(i.disposer.dispose(),delete this._events[t]))}}}_dispatchEventAll(t,e){this.interactionsEnabled&&this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.callback.call(t.context,e)}))}))}_dispatchEvent(t,e,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.object!==e||(t.callback.call(t.context,i),s=!0)}))})),s}_dispatchMousedown(t,e){const i=t.button;if(0!=i&&2!=i&&1!=i&&void 0!==i)return;const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);if(n){const t=s.id;let e=!1;k(n,(i=>{const n={id:t,value:i};return this._mousedown.push(n),!e&&this._dispatchEvent("pointerdown",i,s)&&(e=!0,this._dragging.some((e=>e.value===i&&e.id===t))||this._dragging.push(n)),!0}))}}_dispatchGlobalMousemove(t,e,i){const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);s.native=i,n?(this._hovering.forEach((t=>{t.contains(n)||(this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s))})),s.native&&k(n,(t=>(this._hovering.has(t)||(this._hovering.add(t),t.cursorOverStyle&&(t._replacedCursorStyle=l.getStyle(document.body,"cursor"),l.setStyle(document.body,"cursor",t.cursorOverStyle)),this._dispatchEvent("pointerover",t,s)),!0)))):(this._hovering.forEach((t=>{t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s)})),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(t){this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle)}_dispatchGlobalMouseup(t,e){const i=this.getEvent(t);i.native=e,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(t){if(0!==this._dragging.length){const e=this.getEvent(t),i=e.id;this._dragging.forEach((t=>{t.id===i&&this._dispatchEvent("pointermove",t.value,e)}))}}_dispatchDragEnd(t,e){const i=t.button;let s;if(0==i||void 0===i)s="click";else if(2==i)s="rightclick";else{if(1!=i)return;s="middleclick"}const n=this.getEvent(t),r=n.id;if(0!==this._mousedown.length){const t=this._getHitTarget(n.originalPoint,n.bbox,e);t&&this._mousedown.forEach((e=>{e.id===r&&e.value.contains(t)&&this._dispatchEvent(s,e.value,n)})),this._mousedown.length=0}0!==this._dragging.length&&(this._dragging.forEach((t=>{t.id===r&&this._dispatchEvent("pointerup",t.value,n)})),this._dragging.length=0)}_dispatchDoubleClick(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("dblclick",t,i)))}_dispatchWheel(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("wheel",t,i)))}_makeSharedEvent(t,e){if(void 0===this._listeners[t]){const i=e();this._listeners[t]=new a.DM((()=>{delete this._listeners[t],i.dispose()}))}return this._listeners[t].increment()}_onPointerEvent(t,e){let i=!1,s=null;function n(){s=null,i=!1}return new a.FV([new a.ku((()=>{null!==s&&clearTimeout(s),n()})),l.addEventListener(this.view,l.getRendererEvent(t),(t=>{i=!0,null!==s&&clearTimeout(s),s=window.setTimeout(n,0)})),T(window,t,((t,n)=>{null!==s&&(clearTimeout(s),s=null),e(t,n,i),i=!1}))])}_initEvent(t){switch(t){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",(()=>{const t=(t,e,i)=>{this._lastPointerMoveEvent={events:t,target:e,native:i},c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))};return new a.FV([this._onPointerEvent("pointerdown",t),this._onPointerEvent("pointermove",t)])}));case"globalpointerup":return this._makeSharedEvent("pointerup",(()=>{const t=this._onPointerEvent("pointerup",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}})),e=this._onPointerEvent("pointercancel",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}}));return new a.ku((()=>{t.dispose(),e.dispose()}))}));case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",(()=>{const t=this._onPointerEvent("pointerdown",((t,e)=>{c.each(t,(t=>{this._dispatchMousedown(t,e)}))})),e=this._onPointerEvent("pointermove",(t=>{c.each(t,(t=>{this._dispatchDragMove(t)}))})),i=this._onPointerEvent("pointerup",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))})),s=this._onPointerEvent("pointercancel",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))}));return new a.ku((()=>{t.dispose(),e.dispose(),i.dispose(),s.dispose()}))}));case"dblclick":return this._makeSharedEvent("dblclick",(()=>this._onPointerEvent("dblclick",((t,e)=>{c.each(t,(t=>{this._dispatchDoubleClick(t,e)}))}))));case"wheel":return this._makeSharedEvent("wheel",(()=>l.addEventListener(this.view,l.getRendererEvent("wheel"),(t=>{this._dispatchWheel(t,l.getEventTarget(t))}),{passive:!1})))}}_addEvent(t,e,i,s){let n=this._events[e];void 0===n&&(n=this._events[e]={disposer:this._initEvent(e),callbacks:[],dispatching:!1,cleanup:!1});const r={object:t,context:s,callback:i,disposed:!1};return n.callbacks.push(r),new a.ku((()=>{r.disposed=!0,n.dispatching?n.cleanup=!0:(c.removeFirst(n.callbacks,r),0===n.callbacks.length&&(n.disposer.dispose(),delete this._events[e]))}))}getCanvas(t,e){this.render(t),e||(e={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),n=Math.floor(this._calculatedHeight*this.resolution);if(e.minWidth&&e.minWidth>s){let t=e.minWidth/s;t>i&&(i=t*this.resolution)}if(e.minHeight&&e.minHeight>n){let t=e.minHeight/n;t>i&&(i=t*this.resolution)}if(e.maxWidth&&e.maxWidthn){let t=e.maxHeight/n;t{if(t&&t.visible&&(t.tainted||o)){d=!0,t.exportableView=t.view,t.exportableContext=t.context,t.view=document.createElement("canvas"),t.view.style.position="fixed",t.view.style.top="-10000px",this.view.appendChild(t.view),r.push(t.view);let e=0,o=0;t.margin&&(e+=t.margin.left||0+t.margin.right||0,o+=t.margin.top||0+t.margin.bottom||0),t.view.width=s+e,t.view.height=n+o,t.context=t.view.getContext("2d"),t.dirty=!0,t.scale=i}})),d&&(this._omitTainted=!0,this.render(t),this._omitTainted=!1),c.each(this.layers,(t=>{if(t&&t.visible){let e=0,i=0;t.margin&&(e=-(t.margin.left||0)*this.resolution,i=-(t.margin.top||0)*this.resolution),h.drawImage(t.view,e,i),t.exportableView&&(t.view=t.exportableView,t.exportableView=void 0),t.exportableContext&&(t.context=t.exportableContext,t.exportableContext=void 0),l{t.style.position="",t.style.top="",this.view.removeChild(t)})),a}}class ot{constructor(){this.margin={left:0,right:0,top:0,bottom:0},this._resolution=1,this._width=0,this._height=0,this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(t,e,i,s,n){this._resolution=n,t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(t,e){return this.context.getImageData(Math.round((t.x-e.left)/e.width*this._width),Math.round((t.y-e.top)/e.height*this._height),1,1)}getImageArray(t){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const e=this.imageArray,i=Math.round(t.x*this._resolution),s=4*(Math.round(t.y*this._resolution)*this._width+i);return[e[s],e[s+1],e[s+2],e[s+3]]}setMargin(t){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,c.each(t,(t=>{t.margin&&(this.margin.left=Math.max(this.margin.left,t.margin.left),this.margin.right=Math.max(this.margin.right,t.margin.right),this.margin.top=Math.max(this.margin.top,t.margin.top),this.margin.bottom=Math.max(this.margin.bottom,t.margin.bottom))}))}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class at{constructor(t,e){this.tainted=!0,this.order=0,this.visible=!0,this.dirty=!0,this._width=0,this._height=0,this.view=t,this.context=e}resize(t,e,i,s,n){null!=this.width&&(t=this.width,i=this.width),null!=this.height&&(e=this.height,s=this.height),this.margin?(t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}},4680:function(t,e,i){"use strict";var s;i.d(e,{b:function(){return s}}),function(t){t.ADD="lighter",t.COLOR="color",t.COLOR_BURN="color-burn",t.COLOR_DODGE="color-dodge",t.DARKEN="darken",t.DIFFERENCE="difference",t.DST_OVER="destination-over",t.EXCLUSION="exclusion",t.HARD_LIGHT="hard-light",t.HUE="hue",t.LIGHTEN="lighten",t.LUMINOSITY="luminosity",t.MULTIPLY="multiply",t.NORMAL="source-over",t.OVERLAY="overlay",t.SATURATION="saturation",t.SCREEN="screen",t.SOFT_LIGHT="soft-light",t.SRC_ATOP="source-atop",t.XOR="xor"}(s||(s={}))},1437:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}getFill(t){return{addColorStop:(t,e)=>{}}}_changed(){super._changed()}getBounds(t){const e=this.get("target");if(e){let i=e.globalBounds();const s=t.toLocal({x:i.left,y:i.top}),n=t.toLocal({x:i.right,y:i.top}),r=t.toLocal({x:i.right,y:i.bottom}),o=t.toLocal({x:i.left,y:i.bottom});return{left:Math.min(s.x,n.x,r.x,o.x),top:Math.min(s.y,n.y,r.y,o.y),right:Math.max(s.x,n.x,r.x,o.x),bottom:Math.max(s.y,n.y,r.y,o.y)}}return t._display.getLocalBounds()}}n.className="Gradient",n.classNames=s.JH.classNames.concat([n.className])},1747:function(t,e,i){"use strict";i.d(e,{o:function(){return h}});var s=i(1437),n=i(1112),r=i(5071),o=i(5040),a=i(751);class h extends s.p{getFill(t){const e=this.get("rotation",0);let i=this.getBounds(t),s=i.left||0,h=i.right||0,l=i.top||0,c=i.bottom||0,u=a.cos(e),d=a.sin(e),p=u*(h-s),g=d*(c-l);0==p&&(p=1),0==g&&(g=1);let f=Math.max(p,g);const _=this._root._renderer.createLinearGradient(s,l,s+f*u,l+f*d),m=this.get("stops");if(m){let t=0;r.each(m,(e=>{let i=e.offset;o.isNumber(i)||(i=t/(m.length-1));let s=e.opacity;o.isNumber(s)||(s=1);let r=e.color;if(r){const t=e.lighten;t&&(r=n.Il.lighten(r,t));const o=e.brighten;o&&(r=n.Il.brighten(r,o)),_.addColorStop(i,"rgba("+r.r+","+r.g+","+r.b+","+s+")")}t++}))}return _}}h.className="LinearGradient",h.classNames=s.p.classNames.concat([h.className])},3035:function(t,e,i){"use strict";i.d(e,{y:function(){return r}});var s=i(3437),n=i(5040);class r extends s.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("width",100),e=this.get("height",100),i=this.get("gap",0),s=this.get("strokeWidth",1);if(i){let n=i+s,r=e/n,o=this.get("angle",0)*Math.PI/180;if(0===o)for(let e=-r;e<2*r;e++){const i=Math.round(e*n-n/2)+.5;this._display.moveTo(-t,i),this._display.lineTo(2*t,i)}else{const i=Math.cos(o),s=Math.sin(o),r=2*Math.sqrt(t*t+e*e),a=n/Math.max(Math.abs(i),Math.abs(s)),h=2*Math.ceil(r/a);for(let t=-h;t0&&(r.beginFill(s,n),r.drawRect(0,0,e,i),r.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,r,t,e,i)}this._clear=!1}}n.className="Pattern",n.classNames=s.JH.classNames.concat([n.className])},4429:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(3437);class n extends s.c{_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const t=this.get("canvas");t&&(this.set("width",t.width),this.set("height",t.height))}_draw(){super._draw();const t=this.get("colorOpacity");void 0!==t&&(this._display.alpha=Math.max(0,t));const e=this._image;if(e){const t=this.get("width",100),i=this.get("height",100),s=this.get("fit","image");let n=0,r=0;"pattern"==s?(n=t,r=i,this.markDirty()):(n=e.width,r=e.height,"image"==s&&(this.set("width",n),this.set("height",r)));let o=0,a=0;this.get("centered",!0)&&(o=t/2-n/2,a=i/2-r/2),this._display.image(e,n,r,o,a)}const i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){const t=this.get("src");if(t){const e=new Image;e.src=t,e.decode().then((()=>{this._image=e,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{}))}}}n.className="PicturePattern",n.classNames=s.c.classNames.concat([n.className])},6490:function(t,e,i){"use strict";i.d(e,{SR:function(){return s},Wn:function(){return u},XG:function(){return p},ne:function(){return h},w6:function(){return l}});var s,n=i(7582),r=i(6245),o=i(1112),a=i(256);function h(t){return(0,n.mG)(this,void 0,void 0,(function*(){if(void 0!==t){const e=[];a.each(t,((t,i)=>{e.push(i.waitForStop())})),yield Promise.all(e)}}))}function l(t,e,i){return e+t*(i-e)}function c(t,e,i){return t>=1?i:e}function u(t,e,i){return new r.gG(l(t,e.percent,i.percent))}function d(t,e,i){return o.Il.interpolate(t,e,i)}function p(t,e){return"number"==typeof t&&"number"==typeof e?l:t instanceof r.gG&&e instanceof r.gG?u:t instanceof o.Il&&e instanceof o.Il?d:c}!function(t){t[t.Stopped=0]="Stopped",t[t.Playing=1]="Playing",t[t.Paused=2]="Paused"}(s||(s={}))},5071:function(t,e,i){"use strict";i.r(e),i.d(e,{add:function(){return v},any:function(){return r},copy:function(){return k},each:function(){return a},eachContinue:function(){return l},eachReverse:function(){return h},find:function(){return S},findIndex:function(){return O},findIndexReverse:function(){return P},findMap:function(){return C},findReverse:function(){return N},first:function(){return d},getFirstSortedIndex:function(){return R},getSortedIndex:function(){return A},has:function(){return D},indexOf:function(){return n},insert:function(){return p},insertIndex:function(){return M},keepIf:function(){return U},last:function(){return u},map:function(){return o},move:function(){return y},pushAll:function(){return f},pushOne:function(){return w},remove:function(){return _},removeFirst:function(){return m},removeIndex:function(){return E},replace:function(){return b},setIndex:function(){return g},shiftLeft:function(){return c},shuffle:function(){return L},slice:function(){return T},toArray:function(){return x}});var s=i(5040);function n(t,e){const i=t.length;for(let s=0;s0;)--i,e(t[i],i)}function l(t,e){const i=t.length;for(let s=0;s0;)if(--i,e(t[i],i))return i;return-1}function S(t,e){const i=O(t,e);if(-1!==i)return t[i]}function N(t,e){const i=P(t,e);if(-1!==i)return t[i]}function C(t,e){const i=t.length;for(let s=0;s>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,i=r+1):s=r}return{found:n,index:n?i-1:i}}function R(t,e){let i=0,s=t.length,n=!1;for(;i>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,s=r):s=r}return{found:n,index:i}}function U(t,e){let i=t.length;for(;i>0;)--i,e(t[i])||t.splice(i,1)}},1112:function(t,e,i){"use strict";i.d(e,{$_:function(){return a},Il:function(){return h}});var s=i(6490),n=i(7652),r=i(5040);function o(t){return"#"===t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0].repeat(2)+t[1].repeat(2)+t[2].repeat(2)),parseInt(t,16)}function a(t){return h.fromAny(t)}class h{constructor(t){this._hex=0|t}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return 255&this._hex}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+n.padString(this.r.toString(16),2)+n.padString(this.g.toString(16),2)+n.padString(this.b.toString(16),2)}toHSL(t=1){return n.rgbToHsl({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,e,i){const s=n.hslToRgb({h:t,s:e,l:i});return this.fromRGB(s.r,s.g,s.b)}toString(){return this.toCSSHex()}static fromHex(t){return new h(t)}static fromRGB(t,e,i){return new h((0|i)+(e<<8)+(t<<16))}static fromString(t){return new h(o(t))}static fromCSS(t){return new h(function(t){let e=(t=t.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return 0;let i="";for(let t=1;t<=3;t++){let s=parseInt(e[t]).toString(16);1==s.length&&(s="0"+s),i+=s}return o(i)}(t))}static fromAny(t){if(r.isString(t)){if("#"==t[0])return h.fromString(t);if("rgb"==t.substr(0,3))return h.fromCSS(t)}else{if(r.isNumber(t))return h.fromHex(t);if(t instanceof h)return h.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,e,i){const s=n.alternativeColor({r:t.r,g:t.g,b:t.b},e?{r:e.r,g:e.g,b:e.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(s.r,s.g,s.b)}static interpolate(t,e,i,n="rgb"){if("hsl"==n){const n=e.toHSL(),r=i.toHSL();return h.fromHSL((0,s.w6)(t,n.h,r.h),(0,s.w6)(t,n.s,r.s),(0,s.w6)(t,n.l,r.l))}return h.fromRGB((0,s.w6)(t,e.r,i.r),(0,s.w6)(t,e.g,i.g),(0,s.w6)(t,e.b,i.b))}static lighten(t,e){const i=n.lighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static brighten(t,e){const i=n.brighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static saturate(t,e){const i=n.saturate({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}}},2754:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});var s=i(6331),n=i(1112);class r extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const t=this.getPrivate("currentPass"),e=this.get("colors",[this.get("baseColor",n.Il.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",e.length);const i=this.getPrivate("numColors"),s=this.get("passOptions"),r=this.get("reuse");for(let o=0;o1;)r-=1;let a=i.s+(s.saturation||0)*t;a>1&&(a=1),a<0&&(a=0);let h=i.l+(s.lightness||0)*t;for(;h>1;)h-=1;e.push(n.Il.fromHSL(r,a,h))}}getIndex(t){const e=this.get("colors",[]),i=this.get("saturation");return t>=e.length?(this.generateColors(),this.getIndex(t)):null!=i?n.Il.saturate(e[t],i):e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}r.className="ColorSet",r.classNames=s.JH.classNames.concat([r.className])},9582:function(t,e,i){"use strict";i.d(e,{Q:function(){return r},k:function(){return n}});var s=i(7144);class n extends s.aV{incrementRef(){}decrementRef(){}_onPush(t){this.processor&&this.processor.processRow(t),super._onPush(t)}_onInsertIndex(t,e){this.processor&&this.processor.processRow(e),super._onInsertIndex(t,e)}_onSetIndex(t,e,i){this.processor&&this.processor.processRow(i),super._onSetIndex(t,e,i)}}class r{constructor(t){this._value=t}incrementRef(){}decrementRef(){}}},6460:function(t,e,i){"use strict";i.d(e,{C:function(){return h}});var s=i(6331),n=i(7255),r=i(462),o=i(5040),a=i(7652);class h extends s.JH{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i=!1){let s;void 0!==e&&""!==e||(e=this.get("dateFormat","yyyy-MM-dd"));let n=t;if(o.isObject(e))try{const t=this.get("intlLocales");return t?new Intl.DateTimeFormat(t,e).format(n):new Intl.DateTimeFormat(void 0,e).format(n)}catch(t){return"Invalid"}let r=this.parseFormat(e);const a=this._root.timezone;let h=n;return!a||this._root.utc||i||(n=a.convertLocal(n)),o.isNumber(n.getTime())?(s=this.applyFormat(n,r,i,h),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s):"Invalid date"}applyFormat(t,e,i=!1,s){let n,h,l,c,u,d,p,g,f=e.template,_=t.getTime();this._root.utc&&!i?(n=t.getUTCFullYear(),h=t.getUTCMonth(),l=t.getUTCDay(),c=t.getUTCDate(),u=t.getUTCHours(),d=t.getUTCMinutes(),p=t.getUTCSeconds(),g=t.getUTCMilliseconds()):(n=t.getFullYear(),h=t.getMonth(),l=t.getDay(),c=t.getDate(),u=t.getHours(),d=t.getMinutes(),p=t.getSeconds(),g=t.getMilliseconds());for(let i=0,m=e.parts.length;i=12?this._t("PM"):this._t("AM");break;case"aa":m=u>=12?this._t("P.M."):this._t("A.M.");break;case"aaa":m=u>=12?this._t("P"):this._t("A");break;case"h":m=a.get12Hours(u).toString();break;case"hh":m=a.padString(a.get12Hours(u),2,"0");break;case"H":m=u.toString();break;case"HH":m=a.padString(u,2,"0");break;case"K":m=a.get12Hours(u,0).toString();break;case"KK":m=a.padString(a.get12Hours(u,0),2,"0");break;case"k":m=(u+1).toString();break;case"kk":m=a.padString(u+1,2,"0");break;case"m":m=d.toString();break;case"mm":m=a.padString(d,2,"0");break;case"s":m=p.toString();break;case"ss":m=a.padString(p,2,"0");break;case"S":case"SS":case"SSS":m=Math.round(g/1e3*Math.pow(10,e.parts[i].length)).toString();break;case"x":m=_.toString();break;case"n":case"nn":case"nnn":m=a.padString(g,e.parts[i].length,"0");break;case"z":m=a.getTimeZone(s||t,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":m=a.getTimeZone(s||t,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":m=a.getTimeZone(s||t,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":m=a.getTimeZone(s||t,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let f=this._root.utc?"UTC":this._root.timezone;f instanceof r.r&&(f=f.name);const y=f?a.getTimezoneOffset(f,s||t):t.getTimezoneOffset();let v=Math.abs(y)/60,w=Math.floor(v),b=60*v-60*w;this._root.utc&&(w=0,b=0),"Z"==e.parts[i]?(m="GMT",m+=y>0?"-":"+",m+=a.padString(w,2)+":"+a.padString(b,2)):(m=y>0?"-":"+",m+=a.padString(w,2)+a.padString(b,2));break;case"i":m=t.toISOString();break;case"I":m=t.toUTCString()}f=f.replace(o.PLACEHOLDER,m)}return f}parseFormat(t){let e={template:"",parts:[]},i=n.V.chunk(t,!0);for(let t=0;t-1&&(l.year=parseInt(p[h.year])),h.year3>-1){let t=parseInt(p[h.year3]);t+=1e3,l.year=t}if(h.year2>-1){let t=parseInt(p[h.year2]);t+=t>50?1e3:2e3,l.year=t}if(h.year1>-1){let t=parseInt(p[h.year1]);t=10*Math.floor((new Date).getFullYear()/10)+t,l.year=t}if(h.monthLong>-1&&(l.month=this.resolveMonth(p[h.monthLong])),h.monthShort>-1&&(l.month=this.resolveShortMonth(p[h.monthShort])),h.month>-1&&(l.month=parseInt(p[h.month])-1),h.week>-1&&-1===h.day&&(l.month=0,l.day=a.getDayFromWeek(parseInt(p[h.week]),l.year,1,i)),h.day>-1&&(l.day=parseInt(p[h.day])),h.yearDay>-1&&(l.month=0,l.day=parseInt(p[h.yearDay])),h.hourBase0>-1&&(l.hour=parseInt(p[h.hourBase0])),h.hourBase1>-1&&(l.hour=parseInt(p[h.hourBase1])-1),h.hour12Base0>-1){let t=parseInt(p[h.hour12Base0]);11==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.hour12Base1>-1){let t=parseInt(p[h.hour12Base1]);12==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.minute>-1&&(l.minute=parseInt(p[h.minute])),h.second>-1&&(l.second=parseInt(p[h.second])),h.millisecond>-1){let t=parseInt(p[h.millisecond]);2==h.millisecondDigits?t*=10:1==h.millisecondDigits&&(t*=100),l.millisecond=t}if(h.timestamp>-1){l.timestamp=parseInt(p[h.timestamp]);const t=new Date(l.timestamp);l.year=t.getUTCFullYear(),l.month=t.getUTCMonth(),l.day=t.getUTCDate(),l.hour=t.getUTCHours(),l.minute=t.getUTCMinutes(),l.second=t.getUTCSeconds(),l.millisecond=t.getUTCMilliseconds()}h.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.zone])),h.iso>-1&&(l.year=o.toNumber(p[h.iso+0]),l.month=o.toNumber(p[h.iso+1])-1,l.day=o.toNumber(p[h.iso+2]),l.hour=o.toNumber(p[h.iso+3]),l.minute=o.toNumber(p[h.iso+4]),l.second=o.toNumber(p[h.iso+5]),l.millisecond=o.toNumber(p[h.iso+6]),"Z"==p[h.iso+7]||"z"==p[h.iso+7]?l.utc=!0:""!=p[h.iso+7]&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.iso+7]))),s=l.utc?new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else s=new Date(t);return s}resolveTimezoneOffset(t,e){if(e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let i=e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),s=i[1],n=i[2],r=i[3],o=60*parseInt(n)+parseInt(r);return"+"==s&&(o*=-1),o-(t||new Date).getTimezoneOffset()}return 0}resolveMonth(t){let e=this._months().indexOf(t);return e>-1||!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._months()).indexOf(t),e>-1)?e:0}resolveShortMonth(t){let e=this._shortMonths().indexOf(t);return e>-1?e:(e=this._months().indexOf(t),e>-1||this._root.language&&!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._shortMonths()).indexOf(t),e>-1)?e:0)}isAm(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1}getStringList(t){let e=[];for(let i=0;i{t.dispose()}))}}class a extends n{constructor(t){super(),this._disposers=t}_dispose(){s.each(this._disposers,(t=>{t.dispose()}))}get disposers(){return this._disposers}}class h extends n{_dispose(){null!=this._disposer&&(this._disposer.dispose(),this._disposer=void 0)}get(){return this._value}set(t,e){null!=this._disposer&&this._disposer.dispose(),this._disposer=e,this._value=t}reset(){this.set(void 0,void 0)}}class l extends r{constructor(){super(...arguments),this._counter=0}increment(){return++this._counter,new r((()=>{--this._counter,0===this._counter&&this.dispose()}))}}},798:function(t,e,i){"use strict";i.d(e,{$:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{constructor(){super(...arguments),this._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}}_setDefaults(){const t="_duration_millisecond",e="_duration_second",i="_duration_minute",s="_duration_hour",n="_duration_day",r="_duration_week",o="_duration_month",a="_minute",h="_hour",l="_day",c="_week",u="_week",d="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(t),second:this._t(t+"_second"),minute:this._t(t+a),hour:this._t(t+h),day:this._t(t+l),week:this._t(t+c),month:this._t(t+u),year:this._t(t+d)},second:{second:this._t(e),minute:this._t(e+a),hour:this._t(e+h),day:this._t(e+l),week:this._t(e+c),month:this._t(e+u),year:this._t(e+d)},minute:{minute:this._t(i),hour:this._t(i+h),day:this._t(i+l),week:this._t(i+c),month:this._t(i+u),year:this._t(i+d)},hour:{hour:this._t(s),day:this._t(s+l),week:this._t(s+c),month:this._t(s+u),year:this._t(s+d)},day:{day:this._t(n),week:this._t(n+c),month:this._t(n+u),year:this._t(n+d)},week:{week:this._t(r),month:this._t(r+u),year:this._t(r+d)},month:{month:this._t(o),year:this._t(o+d)},year:{year:this._t("_duration_year")}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s=i||this.get("baseUnit");void 0!==e&&""!==e||(e=null!=this.get("durationFormat")?this.get("durationFormat"):this.getFormat(a.toNumber(t),void 0,s)),e=o.cleanFormat(e);let n,r=this.parseFormat(e,s),h=Number(t);n=h>this.get("negativeBase")?r.positive:h{if(e.parsed)return;let i=e.source,s=[];s=e.source.match(/^\[([^\]]*)\]/),s&&s.length&&""!==s[0]&&(i=e.source.substr(s[0].length),e.color=s[1]);let r=n.V.chunk(i,!0);for(let t=0;t{"millisecond"==t&&1e3==i?(h.second++,h.millisecond=0):"second"==t&&60==i?(h.minute++,h.second=0):"minute"==t&&60==i?(h.hour++,h.minute=0):"hour"==t&&24==i?(h.day++,h.hour=0):"day"==t&&7==i&&-1!==e.parts.indexOf("w")?(h.week++,h.day=0):"day"==t&&30==i?(h.month++,h.day=0):"month"==t&&12==i&&(h.year++,h.month=0)}));for(let t=0,i=e.parts.length;t{if(t==e||i){if(s/n<=1)return i||(i=t),!1;i=t}return!0})),i}getMilliseconds(t,e){return e||(e=this.get("baseUnit")),t*this._getUnitValue(e)}_getUnitValue(t){return this._getUnitValues()[t]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}},9395:function(t,e,i){"use strict";i.r(e),i.d(e,{bounce:function(){return k},circle:function(){return c},cubic:function(){return o},elastic:function(){return P},exp:function(){return h},inOut:function(){return p},linear:function(){return n},out:function(){return d},pow:function(){return a},quad:function(){return r},sine:function(){return l},yoyo:function(){return u}});var s=i(751);function n(t){return t}function r(t){return t*t}function o(t){return t*t*t}function a(t,e){return Math.pow(t,e)}function h(t){return Math.pow(2,10*t-10)}function l(t){return 1-Math.cos(t*s.HALFPI)}function c(t){return 1-Math.sqrt(1-t*t)}function u(t){return function(e){return t(e<.5?2*e:2*(1-e))}}function d(t){return function(e){return 1-t(1-e)}}function p(t){return function(e){return e<=.5?t(2*e)/2:1-t(2*(1-e))/2}}let g=4/11,f=6/11,_=8/11,m=3/4,y=9/11,v=10/11,w=15/16,b=21/22,x=63/64,D=1/g/g;function k(t){return 1-function(t){return t{this._userSettings[t]=!0}))}get(t,e){const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._settings[t]=e}set(t,e){this._userSettings[t]=!0,this.setRaw(t,e)}remove(t){delete this._userSettings[t],delete this._settings[t]}setAll(t){o.entries(t).forEach((([t,e])=>{this.set(t,e)}))}_eachSetting(t){o.each(this._settings,t)}apply(){const t={stateAnimationEasing:!0,stateAnimationDuration:!0},e=this._entity.states.lookup("default");this._eachSetting(((i,s)=>{t[i]||(t[i]=!0,this!==e&&(i in e._settings||(e._settings[i]=this._entity.get(i))),this._entity.set(i,s))}))}applyAnimate(t){null==t&&(t=this._settings.stateAnimationDuration),null==t&&(t=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let e=this._settings.stateAnimationEasing;null==e&&(e=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",a.cubic)));const i=this._entity.states.lookup("default"),s={stateAnimationEasing:!0,stateAnimationDuration:!0},n={};return this._eachSetting(((r,o)=>{if(!s[r]){s[r]=!0,this!=i&&(r in i._settings||(i._settings[r]=this._entity.get(r)));const a=this._entity.animate({key:r,to:o,duration:t,easing:e});a&&(n[r]=a)}})),n}}class l{constructor(t){this._states={},this._entity=t}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new h(this._entity,e);return this._states[t]=i,i}}remove(t){delete this._states[t]}apply(t){const e=this._states[t];e&&e.apply(),this._entity._applyState(t)}applyAnimate(t,e){let i;const s=this._states[t];return s&&(i=s.applyAnimate(e)),this._entity._applyStateAnimated(t,e),i}}var c=i(3145),u=i(5071),d=i(3540);class p{constructor(t){this._callbacks={},this._disabled={},this._entity=t}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),this._entity._markDirtyKey(t),new s.ku((()=>{u.removeFirst(i,e)&&this._entity._markDirtyKey(t)}))}remove(t){const e=this._callbacks[t];void 0!==e&&(delete this._callbacks[t],0!==e.length&&this._entity._markDirtyKey(t))}enable(t){this._disabled[t]&&(delete this._disabled[t],this._entity._markDirtyKey(t))}disable(t){this._disabled[t]||(this._disabled[t]=!0,this._entity._markDirtyKey(t))}fold(t,e){if(!this._disabled[t]){const i=this._callbacks[t];if(void 0!==i)for(let s=0,n=i.length;s{if(this._stopped)t();else{const e=()=>{i.dispose(),t()},i=this.events.on("stopped",e)}}))}_checkEnded(){return!(this._loops>1&&(--this._loops,1))}_run(t){null!==this._oldTime&&(this._time+=t-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=t}_reset(t){this._oldTime=t,this._time=0}_value(t){return this._interpolate(this._easing(t),this._from,this._to)}}let f=0;class _{constructor(t){this.uid=++f,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._prevSettings={},this._prevPrivateSettings={},this._animatingSettings={},this._animatingPrivateSettings={},this._disposed=!1,this._userProperties={},this.enableDispose=!0,this._settings=t}_checkDirty(){o.keys(this._settings).forEach((t=>{this._userProperties[t]=!0,this._markDirtyKey(t)}))}resetUserSettings(){this._userProperties={}}_runAnimation(t){let e=r.SR.Stopped;if(!this.isDisposed()){let i=!1,s=!1;o.each(this._animatingSettings,((e,n)=>{if(n.stopped)this._stopAnimation(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.set(e,n._value(1)):(i=!0,n._reset(t),this._set(e,n._value(1))):(i=!0,this._set(e,n._value(s)))}else s=!0})),o.each(this._animatingPrivateSettings,((e,n)=>{if(n.stopped)this._stopAnimationPrivate(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.setPrivate(e,n._value(1)):(i=!0,n._reset(t),this._setPrivate(e,n._value(1))):(i=!0,this._setPrivate(e,n._value(s)))}else s=!0})),i?e=r.SR.Playing:s&&(e=r.SR.Paused)}return e}_markDirtyKey(t){this.markDirty()}_markDirtyPrivateKey(t){this.markDirty()}on(t,e){let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}off(t,e){let i=this._settingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._settingEvents[t]}onPrivate(t,e){let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}offPrivate(t,e){let i=this._privateSettingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._privateSettingEvents[t]}getRaw(t,e){const i=this._settings[t];return void 0!==i?i:e}has(t){return t in this._settings}get(t,e){return this.getRaw(t,e)}_sendKeyEvent(t,e){const i=this._settingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_sendPrivateKeyEvent(t,e){const i=this._privateSettingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_setRaw(t,e,i){this._prevSettings[t]=e,this._sendKeyEvent(t,i)}setRaw(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&this._setRaw(t,i,e)}_set(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&(this._setRaw(t,i,e),this._markDirtyKey(t))}_stopAnimation(t){const e=this._animatingSettings[t];e&&(delete this._animatingSettings[t],e.stop())}set(t,e){return this._set(t,e),this._stopAnimation(t),e}remove(t){t in this._settings&&(this._prevSettings[t]=this._settings[t],delete this._settings[t],this._sendKeyEvent(t,void 0),this._markDirtyKey(t)),this._stopAnimation(t)}removeAll(){u.each(o.keys(this._settings),(t=>{this.remove(t)}))}getPrivate(t,e){const i=this._privateSettings[t];return void 0!==i?i:e}_setPrivateRaw(t,e,i){this._prevPrivateSettings[t]=e,this._sendPrivateKeyEvent(t,i)}setPrivateRaw(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&this._setPrivateRaw(t,i,e)}_setPrivate(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&(this._setPrivateRaw(t,i,e),this._markDirtyPrivateKey(t))}_stopAnimationPrivate(t){const e=this._animatingPrivateSettings[t];e&&(e.stop(),delete this._animatingPrivateSettings[t])}setPrivate(t,e){return this._setPrivate(t,e),this._stopAnimationPrivate(t),e}removePrivate(t){t in this._privateSettings&&(this._prevPrivateSettings[t]=this._privateSettings[t],delete this._privateSettings[t],this._markDirtyPrivateKey(t)),this._stopAnimationPrivate(t)}setAll(t){o.each(t,((t,e)=>{this.set(t,e)}))}animate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.get(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.set(e,i);else{if(void 0!==r&&r!==i){this.set(e,r);const t=this._animatingSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.set(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}animatePrivate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.getPrivate(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.setPrivate(e,i);else{if(void 0!==r&&r!==i){this.setPrivate(e,r);const t=this._animatingPrivateSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.setPrivate(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}}class m extends _{constructor(t,e,i,s=[]){if(super(e),this.states=new l(this),this.adapters=new p(this),this.events=this._createEvents(),this._userPrivateProperties={},this._dirty={},this._dirtyPrivate={},this._templates=[],this._defaultThemes=[],this._templateDisposers=[],this._disposers=[],this._runSetup=!0,this._disposerProperties={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t,this._internalTemplates=s,e.id&&this._registerId(e.id)}static new(t,e,i){const s=new this(t,e,!0);return s._template=i,s._afterNew(),s}static _new(t,e,i=[]){const s=new this(t,e,!0,i);return s._afterNew(),s}_afterNew(){this._checkDirty();let t=!1;const e=this._template;e&&(t=!0,e._setObjectTemplate(this)),u.each(this._internalTemplates,(e=>{t=!0,e._setObjectTemplate(this)})),t&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const t=this._template;t&&t._setObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._setObjectTemplate(this)})),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new n.p}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(t,e){const i=this.get(t);if(i)return i;{const i=e();return this.set(t,i),i}}_setDefault(t,e){this.has(t)||super.set(t,e)}_setRawDefault(t,e){this.has(t)||super.setRaw(t,e)}_clearDirty(){o.keys(this._dirty).forEach((t=>{this._dirty[t]=!1})),o.keys(this._dirtyPrivate).forEach((t=>{this._dirtyPrivate[t]=!1}))}isDirty(t){return!!this._dirty[t]}isPrivateDirty(t){return!!this._dirtyPrivate[t]}_markDirtyKey(t){this._dirty[t]=!0,super._markDirtyKey(t)}_markDirtyPrivateKey(t){this._dirtyPrivate[t]=!0,super._markDirtyKey(t)}isType(t){return-1!==this.classNames.indexOf(t)}_pushPropertyDisposer(t,e){let i=this._disposerProperties[t];return void 0===i&&(i=this._disposerProperties[t]=[]),i.push(e),e}_disposeProperty(t){const e=this._disposerProperties[t];void 0!==e&&(u.each(e,(t=>{t.dispose()})),delete this._disposerProperties[t])}set template(t){const e=this._template;e!==t&&(this._template=t,e&&e._removeObjectTemplate(this),t&&t._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(t){}_applyStateAnimated(t,e){}get(t,e){const i=this.adapters.fold(t,this._settings[t]);return void 0!==i?i:e}isUserSetting(t){return this._userProperties[t]||!1}set(t,e){return this._userProperties[t]=!0,super.set(t,e)}setRaw(t,e){this._userProperties[t]=!0,super.setRaw(t,e)}_setSoft(t,e){return this._userProperties[t]?e:super.set(t,e)}remove(t){delete this._userProperties[t],this._removeTemplateProperty(t)}setPrivate(t,e){return this._userPrivateProperties[t]=!0,super.setPrivate(t,e)}setPrivateRaw(t,e){this._userPrivateProperties[t]=!0,super.setPrivateRaw(t,e)}removePrivate(t){delete this._userPrivateProperties[t],this._removeTemplatePrivateProperty(t)}_setTemplateProperty(t,e,i){this._userProperties[e]||t===this._findTemplateByKey(e)&&super.set(e,i)}_setTemplatePrivateProperty(t,e,i){this._userPrivateProperties[e]||t===this._findTemplateByPrivateKey(e)&&super.setPrivate(e,i)}_removeTemplateProperty(t){if(!this._userProperties[t]){const e=this._findTemplateByKey(t);e?super.set(t,e._settings[t]):super.remove(t)}}_removeTemplatePrivateProperty(t){if(!this._userPrivateProperties[t]){const e=this._findTemplateByPrivateKey(t);e?super.setPrivate(t,e._privateSettings[t]):super.removePrivate(t)}}_walkParents(t){t(this._root._rootContainer),t(this)}_applyStateByKey(t){const e=this.states.create(t,{}),i={};this._eachTemplate((s=>{const n=s.states.lookup(t);n&&n._apply(e,i)})),o.each(e._settings,(t=>{i[t]||e._userSettings[t]||e.remove(t)}))}_applyTemplate(t,e){this._templateDisposers.push(t._apply(this,e)),o.each(t._settings,((t,i)=>{e.settings[t]||this._userProperties[t]||(e.settings[t]=!0,super.set(t,i))})),o.each(t._privateSettings,((t,i)=>{e.privateSettings[t]||this._userPrivateProperties[t]||(e.privateSettings[t]=!0,super.setPrivate(t,i))})),this._runSetup&&t.setup&&(this._runSetup=!1,t.setup(this))}_findStaticTemplate(t){if(this._template&&t(this._template))return this._template}_eachTemplate(t){this._findStaticTemplate((e=>(t(e),!1))),u.eachReverse(this._internalTemplates,t),u.each(this._templates,t)}_applyTemplates(t=!0){t&&this._disposeTemplates();const e={settings:{},privateSettings:{},states:{}};this._eachTemplate((t=>{this._applyTemplate(t,e)})),t&&(o.each(this._settings,(t=>{this._userProperties[t]||e.settings[t]||super.remove(t)})),o.each(this._privateSettings,(t=>{this._userPrivateProperties[t]||e.privateSettings[t]||super.removePrivate(t)})))}_findTemplate(t){const e=this._findStaticTemplate(t);if(void 0===e){const e=u.findReverse(this._internalTemplates,t);return void 0===e?u.find(this._templates,t):e}return e}_findTemplateByKey(t){return this._findTemplate((e=>t in e._settings))}_findTemplateByPrivateKey(t){return this._findTemplate((e=>t in e._privateSettings))}_disposeTemplates(){u.each(this._templateDisposers,(t=>{t.dispose()})),this._templateDisposers.length=0}_removeTemplates(){u.each(this._templates,(t=>{t._removeObjectTemplate(this)})),this._templates.length=0}_applyThemes(t=!1){if(this.get("ignoreThemes"))return!1;let e=!1;const i=[];let s=[];const n=new Set,r=this.get("themeTagsSelf");return r&&u.each(r,(t=>{n.add(t)})),this._walkParents((t=>{t===this._root._rootContainer&&(e=!0),t._defaultThemes.length>0&&i.push(t._defaultThemes);const r=t.get("themes");r&&s.push(r);const o=t.get("themeTags");o&&u.each(o,(t=>{n.add(t)}))})),s=i.concat(s),this._removeTemplates(),(e||t)&&u.eachReverse(this.classNames,(t=>{const e=[];u.each(s,(i=>{u.each(i,(i=>{const s=i._lookupRules(t);s&&u.eachReverse(s,(t=>{if(t.tags.every((t=>n.has(t)))){const i=u.getFirstSortedIndex(e,(e=>{const i=d.qu(t.tags.length,e.tags.length);return 0===i?d.wq(t.tags,e.tags,d.qu):i}));e.splice(i.index,0,t)}}))}))})),u.each(e,(t=>{this._templates.push(t.template),t.template._setObjectTemplate(this)}))})),this._applyTemplates(),(e||t)&&(this._runSetup=!1),e||t}_changed(){}_beforeChanged(){if(this.isDirty("id")){const t=this.get("id");t&&this._registerId(t);const e=this._prevSettings.id;e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}}_registerId(t){if(this._root.entitiesById[t]&&this._root.entitiesById[t]!==this)throw new Error('An entity with id "'+t+'" already exists.');this._root.entitiesById[t]=this,c.i_.entitiesById[t]=this}_afterChanged(){}addDisposer(t){return this._disposers.push(t),t}_dispose(){super._dispose();const t=this._template;t&&t._removeObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._removeObjectTemplate(this)})),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach((t=>{t.dispose()})),o.each(this._disposerProperties,((t,e)=>{u.each(e,(t=>{t.dispose()}))}));const e=this.get("id");e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}setTimeout(t,e){const i=setTimeout((()=>{this.removeDispose(n),t()}),e),n=new s.ku((()=>{clearTimeout(i)}));return this._disposers.push(n),n}removeDispose(t){if(!this.isDisposed()){let e=u.indexOf(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()}hasTag(t){return-1!==u.indexOf(this.get("themeTags",[]),t)}addTag(t){if(!this.hasTag(t)){const e=this.get("themeTags",[]);e.push(t),this.set("themeTags",e)}}removeTag(t){if(this.hasTag(t)){const e=this.get("themeTags",[]);u.remove(e,t),this.set("themeTags",e)}}_t(t,e,...i){return this._root.language.translate(t,e,...i)}get root(){return this._root}}m.className="Entity",m.classNames=["Entity"]},9770:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var s=i(7449),n=i(5071),r=i(5040);class o{constructor(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{n.each(t,(t=>{t.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}}hasListeners(){return 0!==this._listeners.length}hasListenersByType(t){return n.any(this._listeners,(e=>(null===e.type||e.type===t)&&!e.killed))}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(t){delete this._disabled[t]}disableType(t,e=1/0){this._disabled[t]=e}_removeListener(t){if(0===this._iterating){const e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)}_removeExistingListener(t,e,i,s){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((n=>{n.once!==t||n.type!==e||void 0!==i&&n.callback!==i||n.context!==s||n.disposer.dispose()}))}isEnabled(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&void 0===this._disabled[t]}removeType(t){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((e=>{e.type===t&&e.disposer.dispose()}))}has(t,e,i){return-1!==n.findIndex(this._listeners,(s=>!0!==s.once&&s.type===t&&(void 0===e||s.callback===e)&&s.context===i))}_shouldDispatch(t){if(this._disposed)throw new Error("EventDispatcher is disposed");const e=this._disabled[t];return r.isNumber(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled}_eachListener(t){++this._iterating;try{n.each(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(n.each(this._killed,(t=>{this._removeListener(t)})),this._killed.length=0)}}dispatch(t,e){this._shouldDispatch(t)&&this._eachListener((i=>{i.killed||null!==i.type&&i.type!==t||(i._debounceDelay?(i._debounceTimeout&&window.clearTimeout(i._debounceTimeout),i._debounceTimeout=window.setTimeout((()=>{i._debounceTimeout=void 0,i.killed||i.dispatch(t,e)}),i._debounceDelay)):i.dispatch(t,e))}))}_on(t,e,i,n,r,o,a){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);const h={type:e,callback:i,context:n,shouldClone:r,dispatch:o,killed:!1,once:t,disposer:new s.ku((()=>{h.killed=!0,h._debounceTimeout&&window.clearTimeout(h._debounceTimeout),this._removeListener(h)})),_debounceDelay:a};return this._listeners.push(h),h}onAll(t,e,i=!0){return this._on(!1,null,t,e,i,((i,s)=>t.call(e,s))).disposer}on(t,e,i,s=!0){return this._on(!1,t,e,i,s,((t,s)=>e.call(i,s))).disposer}onDebounced(t,e,i,s,n=!0){return this._on(!1,t,e,s,n,((t,i)=>e.call(s,i)),i).disposer}once(t,e,i,s=!0){const n=this._on(!0,t,e,i,s,((t,s)=>{n.disposer.dispose(),e.call(i,s)}));return n.disposer}off(t,e,i){this._removeExistingListener(!1,t,e,i)}copyFrom(t){if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const e=[];return n.each(t._listeners,(t=>{!t.killed&&t.shouldClone&&(null===t.type?e.push(this.onAll(t.callback,t.context)):t.once?e.push(this.once(t.type,t.callback,t.context)):e.push(this.on(t.type,t.callback,t.context)))})),new s.FV(e)}}},9821:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(6331);class n extends s.JH{}n.className="InterfaceColors",n.classNames=s.JH.classNames.concat([n.className])},7144:function(t,e,i){"use strict";i.d(e,{aV:function(){return o},dn:function(){return a},o:function(){return h}});var s=i(9770),n=i(5071);function r(t,e){if(!(t>=0&&t=0&&t{this.push(t)}))}copyFrom(t){this.pushAll(t._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(t){const e=this._values;this._values=[],this._onClear(e),n.each(t,(t=>{this._values.push(t),this._onPush(t)}))}clear(){this.setAll([])}*[Symbol.iterator](){const t=this._values.length;for(let e=0;e{t.dispose()})),super._onClear(t)}_dispose(){this.autoDispose&&n.each(this._values,(t=>{t.dispose()}))}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class h extends a{constructor(t,e){super(),this.template=t,this.make=e}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}}},751:function(t,e,i){"use strict";i.r(e),i.d(e,{DEGREES:function(){return a},HALFPI:function(){return r},PI:function(){return n},RADIANS:function(){return o},boundsOverlap:function(){return M},ceil:function(){return l},circlesOverlap:function(){return O},closest:function(){return T},cos:function(){return f},fitAngleToRange:function(){return w},fitToRange:function(){return d},getAngle:function(){return x},getArcBounds:function(){return m},getArcPoint:function(){return y},getCubicControlPointA:function(){return c},getCubicControlPointB:function(){return u},getPointOnLine:function(){return k},getPointOnQuadraticCurve:function(){return D},inBounds:function(){return b},mergeBounds:function(){return v},normalizeAngle:function(){return _},round:function(){return h},sin:function(){return p},spiralPoints:function(){return E},tan:function(){return g}});var s=i(5040);const n=Math.PI,r=n/2,o=n/180,a=180/n;function h(t,e,i){if(!(0,s.isNumber)(e)||e<=0){let e=Math.round(t);return i&&e-t==.5&&e--,e}{let i=Math.pow(10,e);return Math.round(t*i)/i}}function l(t,e){if(!(0,s.isNumber)(e)||e<=0)return Math.ceil(t);{let i=Math.pow(10,e);return Math.ceil(t*i)/i}}function c(t,e,i,s,n){return{x:(-t.x+e.x/s+i.x)*s,y:(-t.y+e.y/n+i.y)*n}}function u(t,e,i,s,n){return{x:(t.x+e.x/s-i.x)*s,y:(t.y+e.y/n-i.y)*n}}function d(t,e,i){return Math.min(Math.max(t,e),i)}function p(t){return Math.sin(o*t)}function g(t){return Math.tan(o*t)}function f(t){return Math.cos(o*t)}function _(t){return(t%=360)<0&&(t+=360),t}function m(t,e,i,s,n){let r=Number.MAX_VALUE,o=Number.MAX_VALUE,a=-Number.MAX_VALUE,h=-Number.MAX_VALUE,l=[];l.push(y(n,i)),l.push(y(n,s));let c=Math.min(90*Math.floor(i/90),90*Math.floor(s/90)),u=Math.max(90*Math.ceil(i/90),90*Math.ceil(s/90));for(let t=c;t<=u;t+=90)t>=i&&t<=s&&l.push(y(n,t));for(let t=0;ta&&(a=e.x),e.y>h&&(h=e.y)}return{left:t+r,top:e+o,right:t+a,bottom:e+h}}function y(t,e){return{x:t*f(e),y:t*p(e)}}function v(t){const e=t.length;if(e>0){let i=t[0],s=i.left,n=i.top,r=i.right,o=i.bottom;if(e>1)for(let a=1;ai){let t=e;e=i,i=t}t=_(t);let s=(e-_(e))/360;return ti&&(t-360>e?t-=360:t=te+(i-e)/2-180?e:i),t}function b(t,e){return t.x>=e.left&&t.y>=e.top&&t.x<=e.right&&t.y<=e.bottom}function x(t,e){e||(e={x:2*t.x,y:2*t.y});let i=e.x-t.x,s=e.y-t.y,n=Math.atan2(s,i)*a;return n<0&&(n+=360),_(n)}function D(t,e,i,s){return{x:(1-s)*(1-s)*t.x+2*(1-s)*s*i.x+s*s*e.x,y:(1-s)*(1-s)*t.y+2*(1-s)*s*i.y+s*s*e.y}}function k(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function T(t,e){return t.reduce((function(t,i){return Math.abs(i-e)e.left,s=t.tope.top;return i&&s}function E(t,e,i,s,n,r,h,l,c){let u=n+.01;l=_(l),c=_(c);let d=l*o;cu&&(o=2*u),o*=Math.max(.01,Math.min(1,u/200));let g=d*a,f={x:t+u*Math.cos(d),y:e+u*s/i*Math.sin(d)};if(p.push(f),u=n+.01+(g-l)/360*h,d+=2*Math.asin(o/2/u),d*a>c+360*Math.ceil((i-n)/h))break}return p.shift(),p}function O(t,e){return Math.hypot(t.x-e.x,t.y-e.y)<=t.radius+e.radius}},8219:function(t,e,i){"use strict";i.d(e,{u:function(){return a}});var s=i(6331),n=i(7652),r=i(7449);let o;class a extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._setRawDefault("deactivateRoot",!0),function(t,e,i){const s=e.interfaceColors,a=s.get("secondaryButton").toCSS(),h=s.get("text").toCSS(),l=s.get("alternativeBackground").toCSS(.45);if(!o){const i=new r.FV([new n.StyleRule(t,".am5-modal",{width:"100%",height:"100%",position:"absolute","z-index":"100000",top:"0",left:"0"},e.nonce),new n.StyleRule(t,".am5-modal-curtain",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute",background:s.get("background").toCSS(.5),"z-index":"100"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute","text-align":"center","white-space":"nowrap",background:s.get("background").toCSS(.5),"z-index":"101"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper:before",{content:"''",display:"inline-block",height:"100%","vertical-align":"middle","margin-right":"-0.25em"},e.nonce),new n.StyleRule(t,".am5-modal-content",{display:"inline-block",padding:"1.2em","vertical-align":"middle","text-align":"start","white-space":"normal",background:s.get("background").toCSS(),"border-radius":"4px","-webkit-box-shadow":"0px 0px 36px 0px "+l,"box-shadow":"0px 0px 36px 0px "+l,color:h},e.nonce),new n.StyleRule(t,".am5-modal-content h1",{"font-size":"1em",margin:"0 0 0.5em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table",{display:"table",margin:"1em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-row",{display:"table-row"},e.nonce),new n.StyleRule(t,".am5-modal-table-heading",{display:"table-heading",padding:"3px 10px 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell",{display:"table-cell",padding:"3px 0 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell > *",{"vertical-align":"middle"},e.nonce),new n.StyleRule(t,".am5-modal-content input[type=text], .am5-modal-content input[type=number], .am5-modal-content select",{border:"1px solid "+a,"border-radius":"4px",padding:"3px 5px",margin:"2px"},e.nonce),new n.StyleRule(t,".am5-modal-input-narrow",{width:"50px"},e.nonce),new n.StyleRule(t,".am5-modal-button",{"font-weight":"400",color:s.get("secondaryButtonText").toCSS(),"line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer",padding:"0.2em 0.8em","font-size":"1em","border-radius":"0.25em",margin:"0 0.25em 0 0",border:"1px solid "+s.get("secondaryButtonStroke").toCSS(),background:s.get("secondaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button:hover",{background:s.get("secondaryButtonHover").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary",{color:s.get("primaryButtonText").toCSS(),border:"1px solid "+s.get("primaryButtonStroke").toCSS(),background:s.get("primaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary:hover",{background:s.get("primaryButtonHover").toCSS()},e.nonce)]);o=new r.DM((()=>{o=void 0,i.dispose()}))}o.increment()}(n.getShadowRoot(this._root.dom),this._root);const t=document.createElement("div");t.className="am5-modal",t.style.display="none",this.root._inner.appendChild(t),this.setPrivate("container",t);const e=document.createElement("div");e.className="am5-modal-curtain",t.appendChild(e),this.setPrivate("curtain",e),this._disposers.push(n.addEventListener(e,"click",(()=>{this.cancel()})));const i=document.createElement("div");i.className="am5-modal-wrapper",t.appendChild(i),this.setPrivate("wrapper",i);const s=document.createElement("div");s.className="am5-modal-content",i.appendChild(s),this.setPrivate("content",s);const a=this.get("content");a&&(s.innerHTML=a),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{this.isOpen()&&"Escape"==n.getEventKey(t)&&this.cancel()})))}_beforeChanged(){super._beforeChanged(),this.isDirty("content")&&(this.getPrivate("content").innerHTML=this.get("content",""))}isOpen(){return"none"!=this.getPrivate("container").style.display}open(){this.getPrivate("container").style.display="block",this.get("deactivateRoot")&&this.setTimeout((()=>{this._root._renderer.interactionsEnabled=!1}),10),this.events.dispatch("opened",{type:"opened",target:this})}close(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("closed",{type:"closed",target:this})}cancel(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("cancelled",{type:"cancelled",target:this})}_dispose(){super._dispose();const t=this.getPrivate("container");t.parentElement&&t.parentElement.removeChild(t)}}a.className="Modal",a.classNames=s.JH.classNames.concat([a.className])},780:function(t,e,i){"use strict";i.d(e,{e:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const t="_big_number_suffix_",e="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(t+"3")},{number:1e6,suffix:this._t(t+"6")},{number:1e9,suffix:this._t(t+"9")},{number:1e12,suffix:this._t(t+"12")},{number:1e15,suffix:this._t(t+"15")},{number:1e18,suffix:this._t(t+"18")},{number:1e21,suffix:this._t(t+"21")},{number:1e24,suffix:this._t(t+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(e+"24")},{number:1e-21,suffix:this._t(e+"21")},{number:1e-18,suffix:this._t(e+"18")},{number:1e-15,suffix:this._t(e+"15")},{number:1e-12,suffix:this._t(e+"12")},{number:1e-9,suffix:this._t(e+"9")},{number:1e-6,suffix:this._t(e+"6")},{number:.001,suffix:this._t(e+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s;(null==e||a.isString(e)&&"number"===e.toLowerCase())&&(e=this.get("numberFormat",""));let n=Number(t);if(a.isObject(e))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),e).format(n):new Intl.NumberFormat(void 0,e).format(n)}catch(t){return"Invalid"}else{e=o.cleanFormat(e);let t,h=this.parseFormat(e,this._root.language);t=n>this.get("negativeBase")?h.positive:n{if(e.parsed)return;let i=e.source;"number"===i.toLowerCase()&&(i=this.get("numberFormat","#,###.#####"));let s=n.V.chunk(i,!0);for(let t=0;t=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(i[0]),n="e"+i[1],e.modSpacing&&(n=" "+n)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){const i=o.decimalPlaces(t);if(i>0){const s=Math.pow(10,e.decimals.passive);t=Math.round(parseFloat((t*s).toFixed(i)))/s}}let h="",l=a.numberToString(t).split("."),c=l[0];if(c.length0){let t=[],i=c.split("").reverse().join("");for(let s=0,n=c.length;s<=n;s+=e.thousands.interval){let n=i.substr(s,e.thousands.interval).split("").reverse().join("");""!==n&&t.unshift(n)}c=t.join(e.thousands.separator)}h+=c,1===l.length&&l.push("");let u=l[1];return u.length{e(i,t[i])}))}function l(t,e){for(let i in t)if(u(t,i)&&!e(i,t[i]))break}function c(t,e,i){s.each(o(t,i),(i=>{e(i,t[i])}))}function u(t,e){return{}.hasOwnProperty.call(t,e)}function d(t,e){return h(t,((t,i)=>{null!=i&&null==e[t]&&(e[t]=i)})),e}},3540:function(t,e,i){"use strict";function s(t,e){return t===e?0:t{a.isObject(e)&&"function"==typeof e.dispose&&(e.enableDispose=!0,e.dispose())}))}class l{constructor(t,e,i){this._name=t,this._template=e,this._settings=i}_dispose(){h(this._settings)}get(t,e){const i=this._settings[t];return void 0!==i?i:e}set(t,e){this._settings[t]=e,this._template._stateChanged(this._name)}remove(t){delete this._settings[t],this._template._stateChanged(this._name)}setAll(t){o.keys(t).forEach((e=>{this._settings[e]=t[e]})),this._template._stateChanged(this._name)}_apply(t,e){o.each(this._settings,((i,s)=>{e[i]||t._userSettings[i]||(e[i]=!0,t.setRaw(i,s))}))}}class c{constructor(t){this._states={},this._template=t}_dispose(){o.each(this._states,((t,e)=>{e._dispose()}))}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new l(t,this._template,e);return this._states[t]=i,this._template._stateChanged(t),i}}remove(t){delete this._states[t],this._template._stateChanged(t)}_apply(t,e){o.each(this._states,((i,s)=>{let n=e.states[i];null==n&&(n=e.states[i]={});const r=t.states.create(i,{});s._apply(r,n)}))}}class u{constructor(){this._callbacks={}}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._callbacks[t]}))}remove(t){void 0!==this._callbacks[t]&&delete this._callbacks[t]}_apply(t){const e=[];return o.each(this._callbacks,((i,s)=>{r.each(s,(s=>{e.push(t.adapters.add(i,s))}))})),new n.FV(e)}}class d{constructor(t,e){if(this._disposed=!1,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._entities=[],this.states=new c(this),this.adapters=new u,this.events=new s.p,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=t}static new(t){return new d(t,!0)}_dispose(){h(this._settings),h(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(t,e){this._checkDisposed();const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._checkDisposed(),this._settings[t]=e}set(t,e){this._checkDisposed(),this._settings[t]!==e&&(this.setRaw(t,e),this._entities.forEach((i=>{i._setTemplateProperty(this,t,e)})))}remove(t){this._checkDisposed(),t in this._settings&&(delete this._settings[t],this._entities.forEach((e=>{e._removeTemplateProperty(t)})))}removeAll(){this._checkDisposed(),o.each(this._settings,((t,e)=>{this.remove(t)}))}getPrivate(t,e){this._checkDisposed();const i=this._privateSettings[t];return void 0!==i?i:e}setPrivateRaw(t,e){return this._checkDisposed(),this._privateSettings[t]=e,e}setPrivate(t,e){return this._checkDisposed(),this._privateSettings[t]!==e&&(this.setPrivateRaw(t,e),this._entities.forEach((i=>{i._setTemplatePrivateProperty(this,t,e)}))),e}removePrivate(t){this._checkDisposed(),t in this._privateSettings&&(delete this._privateSettings[t],this._entities.forEach((e=>{e._removeTemplatePrivateProperty(t)})))}setAll(t){this._checkDisposed(),o.each(t,((t,e)=>{this.set(t,e)}))}on(t,e){this._checkDisposed();let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}onPrivate(t,e){this._checkDisposed();let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}_apply(t,e){this._checkDisposed();const i=[];return o.each(this._settingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.on(e,s))}))})),o.each(this._privateSettingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.onPrivate(e,s))}))})),this.states._apply(t,e),i.push(this.adapters._apply(t)),i.push(t.events.copyFrom(this.events)),new n.FV(i)}_setObjectTemplate(t){this._checkDisposed(),this._entities.push(t)}_removeObjectTemplate(t){r.remove(this._entities,t)}_stateChanged(t){this._checkDisposed(),this._entities.forEach((e=>{e._applyStateByKey(t)}))}}},7255:function(t,e,i){"use strict";i.d(e,{V:function(){return r}});var s=i(1112),n=i(5040);class r{static escape(t){return t.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(t){return t.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(t,e=!1,i=!1){let s=[];t=this.escape(t);let r=e?t.split("'"):[t];for(let t=0;t{setTimeout(e,t)}))}let o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629742400,year:31536e6};function a(t){switch(t){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function h(t,e){return null==e&&(e=1),o[t]*e}function l(t){return t?o[t.timeUnit]*t.count:0}function c(t,e,i,s,n){const r=t.timeUnit,a=t.count;if("hour"==r||"minute"==r||"second"==r||"millisecond"==r)return o[t.timeUnit]*t.count;{const t=m(new Date(e.getTime()),r,a,i,s,void 0,n).getTime();let o=t+a*h(r)*1.05;return o=m(new Date(o),r,1,i,s,void 0,n).getTime(),o-t}}function u(){return new Date}function d(){return u().getTime()}function p(t){return new Date(t.getTime())}function g(t,e,i,s,n){if(e-t>h(i,1.2))return!0;let r=new Date(t),o=new Date(e);n&&(r=n.convertLocal(r),o=n.convertLocal(o));let l=0,c=0;s||"millisecond"==i||(l=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-l),c=o.getTimezoneOffset(),o.setUTCMinutes(o.getUTCMinutes()-c));let u=!1;switch(i){case"year":r.getUTCFullYear()!=o.getUTCFullYear()&&(u=!0);break;case"month":(r.getUTCFullYear()!=o.getUTCFullYear()||r.getUTCMonth()!=o.getUTCMonth())&&(u=!0);break;case"day":(r.getUTCMonth()!=o.getUTCMonth()||r.getUTCDate()!=o.getUTCDate())&&(u=!0);break;case"hour":r.getUTCHours()!=o.getUTCHours()&&(u=!0);break;case"minute":r.getUTCMinutes()!=o.getUTCMinutes()&&(u=!0);break;case"second":r.getUTCSeconds()!=o.getUTCSeconds()&&(u=!0);break;case"millisecond":r.getTime()!=o.getTime()&&(u=!0)}if(u)return u;let d=a(i);return!!d&&g(t,e,d,s,n)}function f(t,e,i,s,n){let r=0;switch(s||"millisecond"==e||(r=t.getTimezoneOffset(),n&&(r-=n.offsetUTC(t)),t.setUTCMinutes(t.getUTCMinutes()-r)),e){case"day":let e=t.getUTCDate();t.setUTCDate(e+i);break;case"second":let s=t.getUTCSeconds();t.setUTCSeconds(s+i);break;case"millisecond":let n=t.getUTCMilliseconds();t.setUTCMilliseconds(n+i);break;case"hour":let r=t.getUTCHours();t.setUTCHours(r+i);break;case"minute":let o=t.getUTCMinutes();t.setUTCMinutes(o+i);break;case"year":let a=t.getUTCFullYear();t.setUTCFullYear(a+i);break;case"month":const h=t.getUTCDate(),l=new Date(t.getUTCFullYear(),t.getUTCMonth(),0).getUTCDate();let c=t.getUTCMonth();h>l?t.setUTCMonth(c+i,l):t.setUTCMonth(c+i);break;case"week":let u=t.getUTCDate();t.setUTCDate(u+7*i)}if(!s&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+r),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(n&&(e+=n.offsetUTC(t)),e!=r){let i=e-r;t.setUTCMinutes(t.getUTCMinutes()+i),t.getTimezoneOffset()!=e&&t.setUTCMinutes(t.getUTCMinutes()-i)}}return t}function _(t,e,i,s,n){let r;return null!=n&&(r=new Date(n)),m(new Date(t),e,i,s.locale.firstDayOfWeek,s.utc,r,s.timezone).getTime()}function m(t,e,i,n,r,o,a){if(!a||r){let a=0;switch(r||"millisecond"==e||(a=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-a)),e){case"day":let e=t.getUTCDate();if(i>1){if(o){o=m(o,"day",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),n=h("day",s*i);t.setTime(o.getTime()+n-a*h("minute"))}}else t.setUTCDate(e);t.setUTCHours(0,0,0,0);break;case"second":let r=t.getUTCSeconds();i>1&&(r=Math.floor(r/i)*i),t.setUTCSeconds(r,0);break;case"millisecond":if(1==i)return t;let l=t.getUTCMilliseconds();l=Math.floor(l/i)*i,t.setUTCMilliseconds(l);break;case"hour":let c=t.getUTCHours();i>1&&(c=Math.floor(c/i)*i),t.setUTCHours(c,0,0,0);break;case"minute":let u=t.getUTCMinutes();i>1&&(u=Math.floor(u/i)*i),t.setUTCMinutes(u,0,0);break;case"month":let d=t.getUTCMonth();i>1&&(2!=i&&3!=i&&4!=i&&6!=i||(d=Math.floor(d/i)*i)),t.setUTCMonth(d,1),t.setUTCHours(0,0,0,0);break;case"year":let p=t.getUTCFullYear();i>1&&(p=Math.floor(p/i)*i),t.setUTCFullYear(p,0,1),t.setUTCHours(0,0,0,0);break;case"week":if(i>1&&o){o=m(o,"week",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("week")/i),n=h("week",s*i);t.setTime(o.getTime()+n-a*h("minute"))}let g=t.getUTCDate(),f=t.getUTCDay();s.isNumber(n)||(n=1),g=f>=n?g-f+n:g-(7+f)+n,t.setUTCDate(g),t.setUTCHours(0,0,0,0)}if(!r&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+a),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(e!=a){let i=e-a;t.setUTCMinutes(t.getUTCMinutes()+i)}}return t}{if(isNaN(t.getTime()))return t;let l=t.getTime(),c=a.offsetUTC(t),u=t.getTimezoneOffset(),d=a.parseDate(t),p=d.year,g=d.month,f=d.day,_=d.hour,y=d.minute,v=d.second,w=d.millisecond,b=d.weekday,x=c-u;switch(e){case"day":if(i>1&&o){o=m(o,"day",1,n,r,void 0,a);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),l=h("day",s*i);t.setTime(o.getTime()+l),d=a.parseDate(t),p=d.year,g=d.month,f=d.day}_=0,y=x,v=0,w=0;break;case"second":y+=x,i>1&&(v=Math.floor(v/i)*i),w=0;break;case"millisecond":y+=x,i>1&&(w=Math.floor(w/i)*i);break;case"hour":i>1&&(_=Math.floor(_/i)*i),y=x,v=0,w=0;break;case"minute":i>1&&(y=Math.floor(y/i)*i),y+=x,v=0,w=0;break;case"month":i>1&&(g=Math.floor(g/i)*i),f=1,_=0,y=x,v=0,w=0;break;case"year":i>1&&(p=Math.floor(p/i)*i),g=0,f=1,_=0,y=x,v=0,w=0;break;case"week":s.isNumber(n)||(n=1),f=b>=n?f-b+n:f-(7+b)+n,_=0,y=x,v=0,w=0}const D=(t=new Date(p,g,f,_,y,v,w)).getTime();let k=36e5;"hour"==e&&(k=36e5*i),D+k<=l&&("hour"!=e&&"minute"!=e&&"second"!=e&&"millisecond"!=e||(t=new Date(D+k)));let T=t.getTimezoneOffset(),M=a.offsetUTC(t)-T;return M!=x&&t.setTime(t.getTime()+6e4*(M-x)),t}}function y(t,e,i,s){let n=l(s[t]),r=s.length-1;if(t>=r)return Object.assign({},s[r]);let o=Math.ceil(e/n);return e0?Object.assign({},s[t-1]):o<=i?Object.assign({},s[t]):t+1{switch(t.type){case"year":i=+t.value;break;case"month":s=+t.value-1;break;case"day":n=+t.value;break;case"hour":r=+t.value;break;case"minute":o=+t.value;break;case"second":a=+t.value;break;case"fractionalSecond":h=+t.value;break;case"weekday":switch(t.value){case"Sun":l=0;break;case"Mon":l=1;break;case"Tue":l=2;break;case"Wed":l=3;break;case"Thu":l=4;break;case"Fri":l=5;break;case"Sat":l=6}}})),24===r&&(r=0),{year:i,month:s,day:n,hour:r,minute:o,second:a,millisecond:h,weekday:l}}function n(t,e){const{year:i,month:n,day:r,hour:o,minute:a,second:h,millisecond:l}=s(t,e);return Date.UTC(i,n,r,o,a,h,l)}i.d(e,{r:function(){return r}});class r{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=t,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(t){return new this(t,!0)}convertLocal(t){const e=this.offsetUTC(t),i=t.getTimezoneOffset(),s=new Date(t);s.setUTCMinutes(s.getUTCMinutes()-(e-i));const n=s.getTimezoneOffset();return i!=n&&s.setUTCMinutes(s.getUTCMinutes()+n-i),s}offsetUTC(t){return(n(this._utc,t)-n(this._dtf,t))/6e4}parseDate(t){return s(this._dtf,t)}}},5040:function(t,e,i){"use strict";function s(t){return Number(t)!==t}function n(t){return{}.toString.call(t)}function r(t,e="Assertion failed"){if(!t)throw new Error(e)}function o(t){if(null!=t&&!d(t)){let e=Number(t);if(s(e)&&u(t)&&""!=t&&t.match(/[0-9]+/)){const i=t.replace(/[^0-9.\-]+/g,"");return t===i?e:o(i)}return e}return t}function a(t){if(c(t))return new Date(t);if(d(t))return new Date(t);{let e=Number(t);return d(e)?new Date(e):new Date(t)}}function h(t){if(s(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t==-1/0)return"-0";let e=t<0;t=Math.abs(t);let i,n=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t),r=n[1],o=n[2]||"";if(void 0===n[3])i=""===o?r:r+"."+o;else{let e=+n[3];if(t<1)i="0."+l("0",e-1)+r+o;else{let t=e-o.length;i=0===t?r+o:t<0?r+o.slice(0,t)+"."+o.slice(t):r+o+l("0",t)}}return e?"-"+i:i}function l(t,e){return new Array(e+1).join(t)}function c(t){return"[object Date]"===n(t)}function u(t){return"string"==typeof t}function d(t){return"number"==typeof t&&Number(t)==t}function p(t){return"object"==typeof t&&null!==t}function g(t){return Array.isArray(t)}i.r(e),i.d(e,{PLACEHOLDER:function(){return f},PLACEHOLDER2:function(){return _},assert:function(){return r},getType:function(){return n},isArray:function(){return g},isDate:function(){return c},isNaN:function(){return s},isNumber:function(){return d},isObject:function(){return p},isString:function(){return u},numberToString:function(){return h},repeat:function(){return l},toDate:function(){return a},toNumber:function(){return o}});const f="__§§§__",_="__§§§§__"},7652:function(t,e,i){"use strict";i.r(e),i.d(e,{StyleRule:function(){return E},StyleSheet:function(){return O},addClass:function(){return P},addEventListener:function(){return l},addSpacing:function(){return Y},alternativeColor:function(){return dt},blur:function(){return p},brighten:function(){return ht},capitalizeFirst:function(){return et},cleanFormat:function(){return z},contains:function(){return w},decimalPlaces:function(){return A},escapeForRgex:function(){return W},focus:function(){return g},get12Hours:function(){return Q},getBrightnessStep:function(){return lt},getDayFromWeek:function(){return q},getEventKey:function(){return D},getEventTarget:function(){return v},getFormat:function(){return H},getLightnessStep:function(){return at},getMonthWeek:function(){return K},getPointerId:function(){return d},getRendererEvent:function(){return f},getSafeResolution:function(){return C},getShadowRoot:function(){return k},getStyle:function(){return y},getTimeZone:function(){return J},getTimezoneOffset:function(){return tt},getWeek:function(){return $},getWeekYear:function(){return Z},getYearDay:function(){return X},hslToHsv:function(){return rt},hslToRgb:function(){return it},hsvToHsl:function(){return nt},iOS:function(){return N},isLight:function(){return ct},isLocalEvent:function(){return b},isTouchEvent:function(){return _},lighten:function(){return ot},mergeTags:function(){return pt},onZoom:function(){return c},padString:function(){return R},plainText:function(){return V},ready:function(){return a},relativeToValue:function(){return L},removeClass:function(){return S},removeElement:function(){return h},rgbToHsl:function(){return st},sameBounds:function(){return gt},saturate:function(){return ut},setInteractive:function(){return x},setStyle:function(){return m},splitString:function(){return j},stripTags:function(){return G},supports:function(){return u},trim:function(){return F},trimLeft:function(){return U},trimRight:function(){return B},truncateTextWithEllipsis:function(){return I}});var s=i(5040),n=i(5071),r=i(256),o=i(7449);function a(t){if("loading"!==document.readyState)t();else{const e=()=>{"loading"!==document.readyState&&(document.removeEventListener("readystatechange",e),t())};document.addEventListener("readystatechange",e)}}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function l(t,e,i,s){return t.addEventListener(e,i,s||!1),new o.ku((()=>{t.removeEventListener(e,i,s||!1)}))}function c(t){return l(window,"resize",(e=>{t()}))}function u(t){switch(t){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function d(t){return t.pointerId||0}function p(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let t=document.createElement("button");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}}function g(t){t&&t.focus()}function f(t){if(u("pointerevents"))return t;if(u("touchevents"))switch(t){case"pointerover":case"pointerdown":return"touchstart";case"pointerout":case"pointerleave":case"pointerup":return"touchend";case"pointermove":return"touchmove";case"click":return"click";case"dblclick":return"dblclick"}else if(u("mouseevents"))switch(t){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return t}function _(t){if("undefined"!=typeof Touch&&t instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&t instanceof PointerEvent&&null!=t.pointerType)switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(null!=t.type&&t.type.match(/^mouse/))return!1;return!0}function m(t,e,i){t.style[e]=i}function y(t,e){return t.style[e]}function v(t){if(t.composedPath){const e=t.composedPath();return 0===e.length?null:e[0]}return t.target}function w(t,e){let i=e;for(;;){if(t===i)return!0;if(null===i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function b(t,e){return t.target&&w(e.root.dom,t.target)}function x(t,e){t.style.pointerEvents=e?"auto":"none"}function D(t){if(void 0!==t.key)return t.key;switch(t.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+t.keyCode}function k(t){let e=t;for(;;){if(null===e.parentNode)return null!=e.host?e:null;e=e.parentNode}}let T;function M(t,e){const i=t.cssRules.length;return t.insertRule(e+"{}",i),t.cssRules[i]}class E extends o.KK{constructor(t,e,i,s=""){super(),this._root=function(t,e=""){if(null===t){if(null==T){const t=document.createElement("style");t.type="text/css",""!=e&&t.setAttribute("nonce",e),document.head.appendChild(t),T=t.sheet}return T}{const i=document.createElement("style");return i.type="text/css",""!=e&&i.setAttribute("nonce",e),t.appendChild(i),i.sheet}}(t,s);try{this._rule=M(this._root,e)}catch(t){this._rule=M(this._root,":not(*)")}r.each(i,((t,e)=>{this.setStyle(t,e)}))}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){const t=n.indexOf(this._root.cssRules,this._rule);if(-1===t)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,e){const i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")}setStyle(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")}}class O extends o.KK{constructor(t,e,i=""){super(),this._element=function(t,e,i=""){const s=document.createElement("style");return s.type="text/css",""!=i&&s.setAttribute("nonce",i),s.textContent=e,null===t?document.head.appendChild(s):t.appendChild(s),s}(t,e,i)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}}function P(t,e){if(t)if(t.classList){const i=e.split(" ");n.each(i,(e=>{t.classList.add(e)}))}else{let i=t.getAttribute("class");i?t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" ")+" "+e):t.setAttribute("class",e)}}function S(t,e){if(t)if(t.classList)t.classList.remove(e);else{let i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" "))}}function N(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function C(){return N()?1:void 0}function L(t,e){return s.isNumber(t)?t:null!=t&&s.isNumber(t.value)&&s.isNumber(e)?e*t.value:0}function A(t){let e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function R(t,e=0,i="0"){return"string"!=typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t}function U(t){return t.replace(/^[\s]*/,"")}function B(t){return t.replace(/[\s]*$/,"")}function F(t){return U(B(t))}function I(t,e,i=!1,s="..."){if(t.length>e){let n=e-1;for(;n>=0&&t.charAt(n).match(/\w/);)n--;return n>=0&&0==i?t.substring(0,n+1)+"...":t.substring(0,e)+s}return t}function H(t){if(void 0===t)return"string";let e=(t=(t=(t=t.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return e?e[1]:"number"===t?"number":"date"===t?"date":"duration"===t?"duration":t.match(/[#0]/)?"number":t.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function z(t){return t.replace(/\/(date|number|duration)$/i,"")}function G(t){return t?t.replace(/<[^>]*>/g,""):t}function V(t){return t?G((""+t).replace(/[\n\r]+/g,". ")):t}function W(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Y(t){let e="";for(let i=0;i{if(t.match(/^\s+$/))(t=" ")&&(t=" "),n.push(t);else if(e.test(t)){let e=t.split(i).filter((t=>""!==t));n=n.concat(e)}else n=n.concat([...t])})),n}function X(t,e=!1){const i=new Date(t.getFullYear(),0,0),s=t.getTime()-i.getTime()+60*(i.getTimezoneOffset()-t.getTimezoneOffset())*1e3;return Math.floor(s/864e5)}function $(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-s);const n=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-n.getTime())/864e5+1)/7)}function Z(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;return i.setUTCDate(i.getUTCDate()+4-s),new Date(Date.UTC(i.getUTCFullYear(),0,1)).getFullYear()}function K(t,e=!1){const i=$(new Date(t.getFullYear(),t.getMonth(),1),e);let s=$(t,e);return 1==s&&(s=53),s-i+1}function q(t,e,i=1,s=!1){let n=new Date(e,0,4,0,0,0,0);return s&&n.setUTCFullYear(e),7*t+i-((n.getDay()||7)+3)}function Q(t,e){return t>12?t-=12:0===t&&(t=12),null!=e?t+(e-1):t}function J(t,e=!1,i=!1,s=!1,n){if(s)return e?"Coordinated Universal Time":"UTC";if(n){const i=t.toLocaleString("en-US",{timeZone:n});return F(t.toLocaleString("en-US",{timeZone:n,timeZoneName:e?"long":"short"}).substr(i.length))}let r=t.toLocaleString("UTC"),o=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(o=o.replace(/ (standard|daylight|summer|winter) /i," ")),F(o)}function tt(t,e){const i=e||new Date(Date.UTC(2012,0,1,0,0,0,0)),s=new Date(i.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(i.toLocaleString("en-US",{timeZone:t})).getTime()-s.getTime())/6e4*-1}function et(t){return t.charAt(0).toUpperCase()+t.slice(1)}function it(t){let e,i,s,n=t.h,r=t.s,o=t.l;if(0==r)e=i=s=o;else{let t=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},a=o<.5?o*(1+r):o+r-o*r,h=2*o-a;e=t(h,a,n+1/3),i=t(h,a,n),s=t(h,a,n-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*s)}}function st(t){let e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),r=Math.min(e,i,s),o=0,a=0,h=(n+r)/2;if(n===r)o=a=0;else{let t=n-r;switch(a=h>.5?t/(2-n-r):t/(n+r),n){case e:o=(i-s)/t+(i0?255-t:t;return Math.round(i*e)}function ht(t,e){if(t){let i=at(Math.min(Math.max(t.r,t.g,t.b),230),e);return{r:Math.max(0,Math.min(255,Math.round(t.r+i))),g:Math.max(0,Math.min(255,Math.round(t.g+i))),b:Math.max(0,Math.min(255,Math.round(t.b+i))),a:t.a}}return t}function lt(t,e){return Math.round(255*e)}function ct(t){return(299*t.r+587*t.g+114*t.b)/1e3>=128}function ut(t,e){if(void 0===t||1==e)return t;let i=st(t);return i.s=e,it(i)}function dt(t,e={r:255,g:255,b:255},i={r:255,g:255,b:255}){let s=e,n=i;return ct(i)&&(s=i,n=e),ct(t)?n:s}function pt(t,e){return t||(t=[]),[...t,...e].filter(((t,e,i)=>i.indexOf(t)===e))}function gt(t,e){return!!e&&t.left==e.left&&t.right==e.right&&t.top==e.top&&t.bottom==e.bottom}},3360:function(t,e,i){"use strict";i.d(e,{z:function(){return D},m:function(){return k}});var s=i(7582),n=i(6331),r=i(4596),o=i(8777),a=i(1112),h=i(6245),l=i(5769),c=i(9582),u=i(5040),d=i(5071),p=i(256),g={AccelerationBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccelerationBands)),AccumulationDistribution:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulationDistribution)),AccumulativeSwingIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulativeSwingIndex)),Annotator:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Annotator)),ArcDiagram:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagram)),ArcDiagramLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramLink)),ArcDiagramNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramNodes)),Aroon:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Aroon)),AverageSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageSeries)),AverageTrueRange:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageTrueRange)),AwesomeOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AwesomeOscillator)),Axis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Axis)),AxisBullet:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisBullet)),AxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabel)),AxisLabelRadial:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabelRadial)),AxisRenderer:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRenderer)),AxisRendererCircular:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererCircular)),AxisRendererCurveX:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveX)),AxisRendererCurveY:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveY)),AxisRendererRadial:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererRadial)),AxisRendererX:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererX)),AxisRendererY:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererY)),AxisTick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisTick)),BaseColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.BaseColumnSeries)),BollingerBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BollingerBands)),BreadcrumbBar:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.BreadcrumbBar)),BullBearPower:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BullBearPower)),Bullet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Bullet)),Button:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Button)),CalloutSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CalloutSeries)),Candlestick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Candlestick)),CandlestickSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CandlestickSeries)),CategoryAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryAxis)),CategoryDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryDateAxis)),ChaikinMoneyFlow:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinMoneyFlow)),ChaikinOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinOscillator)),Chart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Chart)),ChartIndicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChartIndicator)),Chord:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Chord)),ChordDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordDirected)),ChordLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLink)),ChordLinkDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLinkDirected)),ChordNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNodes)),ChordNonRibbon:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNonRibbon)),Circle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Circle)),CirclePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.CirclePattern)),ClockHand:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.ClockHand)),ClusteredPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ClusteredPointSeries)),ColorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ColorControl)),ColorPicker:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPicker)),ColorPickerButton:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPickerButton)),ColorSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ColorSet)),ColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ColumnSeries)),CommodityChannelIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CommodityChannelIndex)),ComparisonControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ComparisonControl)),Component:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Component)),ConfirmButton:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ConfirmButton)),Container:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Container)),CurveChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveChart)),CurveColumnSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveColumnSeries)),CurveCursor:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveCursor)),CurveLineSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveLineSeries)),DataSaveControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DataSaveControl)),DateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DateAxis)),DateRangeSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DateRangeSelector)),DisparityIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DisparityIndex)),DoodleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DoodleSeries)),DrawingControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingControl)),DrawingSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingSeries)),DrawingToolControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingToolControl)),Dropdown:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Dropdown)),DropdownColors:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownColors)),DropdownControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownControl)),DropdownList:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownList)),DropdownListControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownListControl)),DurationAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DurationAxis)),EditableAxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.EditableAxisLabel)),EditableLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.EditableLabel)),Ellipse:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Ellipse)),EllipseSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.EllipseSeries)),Entity:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Entity)),Exporting:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Exporting)),ExportingMenu:()=>Promise.resolve().then((()=>i(396))).then((t=>t.ExportingMenu)),FibonacciSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciSeries)),FibonacciTimezoneSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciTimezoneSeries)),Flow:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Flow)),FlowLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowLink)),FlowNode:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNode)),FlowNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNodes)),ForceDirected:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.ForceDirected)),FunnelSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSeries)),FunnelSlice:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSlice)),Gantt:()=>Promise.resolve().then((()=>i(133))).then((t=>t.Gantt)),GanttCategoryAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxis)),GanttCategoryAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxisRenderer)),GanttDateAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxis)),GanttDateAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxisRenderer)),GanttSeries:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttSeries)),GaplessDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.GaplessDateAxis)),Gradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Gradient)),GrainPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GrainPattern)),Graphics:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Graphics)),GraticuleSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.GraticuleSeries)),Grid:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Grid)),GridLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GridLayout)),HeatLegend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HeatLegend)),HeikinAshi:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HeikinAshi)),Hierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Hierarchy)),HierarchyLink:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyLink)),HierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyNode)),HorizontalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HorizontalLayout)),HorizontalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalLineSeries)),HorizontalRaySeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalRaySeries)),IconControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconControl)),IconSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconSeries)),Indicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Indicator)),IndicatorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IndicatorControl)),InterfaceColors:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.InterfaceColors)),IntervalControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IntervalControl)),Label:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Label)),LabelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LabelSeries)),Layout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Layout)),Legend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Legend)),Line:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Line)),LineArrowSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LineArrowSeries)),LinePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinePattern)),LineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.LineSeries)),LinearGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinearGradient)),Link:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Link)),LinkedHierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchy)),LinkedHierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchyNode)),MACD:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACD)),MACross:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACross)),MapChart:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapChart)),MapLine:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLine)),MapLineSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLineSeries)),MapPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPointSeries)),MapPolygon:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygon)),MapPolygonSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygonSeries)),MapSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapSeries)),Measure:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Measure)),MedianPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MedianPrice)),Modal:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Modal)),Momentum:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Momentum)),MovingAverage:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverage)),MovingAverageDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageDeviation)),MovingAverageEnvelope:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageEnvelope)),NumericStepper:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.NumericStepper)),OHLC:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLC)),OHLCSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLCSeries)),OnBalanceVolume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OnBalanceVolume)),OrthogonalLine:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.OrthogonalLine)),OverboughtOversold:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OverboughtOversold)),PVT:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PVT)),Pack:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Pack)),PanelControls:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PanelControls)),ParallelChannelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ParallelChannelSeries)),Partition:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Partition)),PathPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PathPattern)),Pattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Pattern)),PatternSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PatternSet)),PercentChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentChart)),PercentSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentSeries)),PeriodSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PeriodSelector)),PictorialStackedSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PictorialStackedSeries)),Picture:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Picture)),PicturePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PicturePattern)),PieChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieChart)),PieSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieSeries)),PointedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PointedRectangle)),Polygon:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Polygon)),PolylineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PolylineSeries)),ProgressPie:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ProgressPie)),PyramidSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PyramidSeries)),QuadrantLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.QuadrantLineSeries)),RadarChart:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarChart)),RadarColumnSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarColumnSeries)),RadarCursor:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarCursor)),RadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarLineSeries)),RadialGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialGradient)),RadialLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialLabel)),RadialText:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialText)),Rectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Rectangle)),RectanglePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RectanglePattern)),RectangleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RectangleSeries)),RegressionSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RegressionSeries)),RelativeStrengthIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RelativeStrengthIndex)),ResetControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ResetControl)),RoundedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RoundedRectangle)),Sankey:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Sankey)),SankeyLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyLink)),SankeyNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyNodes)),Scrollbar:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Scrollbar)),SerialChart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SerialChart)),Serializer:()=>Promise.resolve().then((()=>i(5362))).then((t=>t.Serializer)),Series:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Series)),SeriesTypeControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SeriesTypeControl)),SerpentineChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SerpentineChart)),SettingsControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsControl)),SettingsModal:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsModal)),SimpleLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SimpleLineSeries)),Slice:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slice)),SliceGrouper:()=>Promise.resolve().then((()=>i(1790))).then((t=>t.SliceGrouper)),SlicedChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.SlicedChart)),Slider:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slider)),SmoothedRadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.SmoothedRadarLineSeries)),SmoothedXLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXLineSeries)),SmoothedXYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXYLineSeries)),SmoothedYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedYLineSeries)),SpiralChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SpiralChart)),Sprite:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Sprite)),SpriteResizer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SpriteResizer)),StandardDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StandardDeviation)),Star:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Star)),StepLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.StepLineSeries)),StochasticMomentumIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticMomentumIndex)),StochasticOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticOscillator)),StockChart:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockChart)),StockControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockControl)),StockLegend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockLegend)),StockPanel:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockPanel)),StockToolbar:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockToolbar)),Sunburst:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Sunburst)),SuperTrend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SuperTrend)),Text:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Text)),Tick:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tick)),Tooltip:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tooltip)),Tree:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Tree)),Treemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Treemap)),TrendLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TrendLineSeries)),Triangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Triangle)),Trix:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Trix)),TypicalPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TypicalPrice)),VWAP:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VWAP)),ValueAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ValueAxis)),Venn:()=>Promise.resolve().then((()=>i(8034))).then((t=>t.Venn)),VerticalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.VerticalLayout)),VerticalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VerticalLineSeries)),Volume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Volume)),VolumeProfile:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VolumeProfile)),VoronoiTreemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.VoronoiTreemap)),WilliamsR:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.WilliamsR)),WordCloud:()=>Promise.resolve().then((()=>i(6769))).then((t=>t.WordCloud)),XYChart:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChart)),XYChartScrollbar:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChartScrollbar)),XYCursor:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYCursor)),XYSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYSeries)),ZigZag:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ZigZag)),ZoomControl:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ZoomControl)),ZoomTools:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomTools)),ZoomableContainer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomableContainer))};function f(t){return u.isObject(t)}function _(t){return t instanceof n.JH||t instanceof a.Il||t instanceof h.gG||t instanceof l.YS}function m(t,e){let i=t.length;for(;i--;){const s=t[i];if(e in s)return s[e]}throw new Error("Could not find ref "+e)}function y(t,e){if("#"===t[0]||"@"===t[0]){if(t[1]===t[0])return{isValue:!0,value:t.slice(1)};{const i=t.split(/\./g);let s=m(e,i[0]);for(let t=1;t{e(t)}))}function w(t,e){v(t,e),e.adapters&&d.each(e.adapters,(e=>{t.adapters.add(e.key,e.callback)})),e.states&&d.each(e.states,(e=>{t.states.create(e.key,e.settings)})),t instanceof o.W&&e.children&&e.children.forEach((e=>{null==e.index||e.index>=t.children.length?t.children.push(e.value):t.children.insertIndex(e.index,e.value)}))}function b(t,e){if(!e.construct)return e.value;const i=e.construct.new(t,e.settings||{});return w(i,e),i}class x{constructor(){this._caching={},this._cache={},this._delayed=[]}afterParse(){this._delayed.forEach((t=>{t()}))}getClass(t){return this._cache[t]}storeClass(t){return(0,s.mG)(this,void 0,void 0,(function*(){if("Template"===t)return;const e=g[t];if(null==e)throw new Error("Unknown object type `"+t+"`");this._cache[t]=yield e()}))}cacheClass(t){let e=this._caching[t];return null==e&&(e=this._caching[t]=this.storeClass(t)),e}parseAsyncArray(t){return(0,s.mG)(this,void 0,void 0,(function*(){yield Promise.all(d.map(t,(t=>this.parseAsync(t))))}))}parseAsyncObjectKey(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){"type"===t?u.isString(e)?yield this.cacheClass(e):yield this.parseAsync(e):"geoJSON"===t||"geometry"===t||(yield this.parseAsync(e))}))}parseAsyncObject(t){return(0,s.mG)(this,void 0,void 0,(function*(){switch(t.type){case"Color":case"Percent":break;default:yield Promise.all(d.map(p.keys(t),(e=>this.parseAsyncObjectKey(e,t[e]))))}}))}parseAsync(t){return(0,s.mG)(this,void 0,void 0,(function*(){u.isArray(t)?yield this.parseAsyncArray(t):f(t)&&(_(t)||!0!==t.__parse&&!1===t.__parse||(yield this.parseAsyncObject(t)))}))}parseObject(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parse(t,e[n],i)})),s}parseArray(t,e,i){return d.map(e,(e=>this.parse(t,e,i)))}parseChildren(t,e,i){return d.map(e,(e=>this.parseChild(t,e,i)))}parseStops(t,e,i){return d.map(e,(e=>this.parseObject(t,e,i)))}parseSetting(t,e,i,s){if("layout"===e)switch(i){case"horizontal":return t.horizontalLayout;case"vertical":return t.verticalLayout;case"grid":return t.gridLayout}return"clusteredBullet"===e?(e,n)=>{const r=s.concat([{"@series":n}]);return this.parse(t,i,r)}:"projection"===e||"geoJSON"===e?i:"stops"===e?this.parseStops(t,i,s):this.parse(t,i,s)}parseSettings(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parseSetting(t,n,e[n],i)})),s}parseState(t,e,i){return{key:e.key,settings:this.parseSettings(t,e.settings,i)}}parseAdapter(t,e,i){return{key:e.key,callback:this.parse(t,e.callback,i)}}parseProperties(t,e,i){return d.map(p.keys(e),(s=>{const r=e[s];return e=>{const o=()=>{const o=this.parseValue(t,r,i),a=e[s];a?o.isValue?u.isArray(o.value)?a instanceof c.k?a.setAll(o.value):d.each(o.value,(t=>{a.push(t)})):e[s]=o.value:o.construct?e[s]=b(t,o):a instanceof n.JH||a instanceof l.YS?function(t,e){e.settings&&t.setAll(e.settings),w(t,e)}(a,o):v(a,o):o.isValue?e[s]=o.value:e[s]=b(t,o)};if("data"===s)this._delayed.push(o);else if("bullets"===s){const n=e[s];u.assert(null!=n),u.assert(u.isArray(r)),d.each(r,(e=>{n.push(((s,n)=>{const r=i.concat([{"@series":n}]);return this.parse(t,e,r)}))}))}else"bullet"===s?e.set("bullet",((e,s)=>{const n=i.concat([{"@axis":s}]);return this.parse(t,r,n)})):o()}}))}parseAxisRange(t,e,i){return{isValue:!1,type:void 0,construct:void 0,settings:this.parseSettings(t,e.settings,i),adapters:void 0,states:void 0,children:void 0,properties:void 0,index:void 0,value:e}}parseRefsObject(t,e,i){const s={};return p.each(e,((e,r)=>{if("axisRange"==r.__parseLogic||"seriesAxisRange"==r.__parseLogic){const e=this.parseAxisRange(t,r,i),s=m(i,r.axis),o=s.makeDataItem({});let a;const h=r.series?m(i,r.series):void 0;h?a=h.createAxisRange(o):s.createAxisRange(o),function(t,e){e.settings&&p.each(e.settings,((e,i)=>{if(i instanceof n.JH){const s=t.get(e);s instanceof n.JH?s.setAll(i._settings):t.set(e,i)}else t.set(e,i)})),w(t,e)}(o,e),a&&["fills","strokes","graphics"].forEach((e=>{if(void 0!==a[e]&&void 0!==r[e]){r[e].__parse=!0;const s=this.parse(t,r[e],i);a[e].template.setAll(s)}}))}else s["#"+e]=this.parse(t,r,i)})),s}parseRefs(t,e,i){if(u.isArray(e)){const s=e.length;for(let n=0;nthis.parseState(t,e,i))):void 0,h=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0,l=null==e.index?void 0:e.index;return{isValue:!1,type:e.type,construct:s,settings:n,adapters:h,states:a,children:o,properties:r,index:l,value:e}}parseTemplate(t,e,i){e.refs&&(i=this.parseRefs(t,e.refs,i));const s=e.settings?this.parseSettings(t,e.settings,i):{},n=l.YS.new(s),r=e.states?d.map(e.states,(e=>this.parseState(t,e,i))):void 0,o=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0;return o&&d.each(o,(t=>{n.adapters.add(t.key,t.callback)})),r&&d.each(r,(t=>{n.states.create(t.key,t.settings)})),{isValue:!0,value:n}}parseValue(t,e,i){return e instanceof n.JH?{isValue:!0,value:e}:u.isArray(e)?{isValue:!0,value:this.parseArray(t,e,i)}:f(e)?_(e)?{isValue:!0,value:e}:"Color"===e.type?{isValue:!0,value:a.Il.fromAny(e.value)}:"Percent"===e.type?{isValue:!0,value:new h.gG(e.value)}:"Template"===e.type?this.parseTemplate(t,e,i):!0===e.__parse?{isValue:!0,value:this.parseObject(t,e,i)}:!1===e.__parse?{isValue:!0,value:e}:this.parseEntity(t,e,i):u.isString(e)?y(e,i):{isValue:!0,value:e}}parse(t,e,i){const s=this.parseValue(t,e,i);return s.isValue?s.value:b(t,s)}}class D{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t}static new(t){return new this(t,!0)}parse(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){const i=new x;yield i.parseAsync(t);const s=i.parse(this._root,t,[]);if(e.parent){if(!(s instanceof r.j))throw new Error("When using the parent setting, the entity must be a Sprite");e.parent.children.push(s)}else s instanceof n.JH&&s._applyThemes(!0);return i.afterParse(),s}))}parseString(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.parse(JSON.parse(t),e)}))}}function k(t,e){g[t]||(g[t]=()=>new Promise((t=>{t(e)})))}},6890:function(t,e,i){"use strict";i.d(e,{e:function(){return p}});var s=i(6331),n=i(9361),r=i(1112),o=i(1437),a=i(6245),h=i(5769),l=i(9582),c=i(5040),u=i(5071),d=i(256);class p extends s.JH{constructor(){super(...arguments),this._refs={}}serialize(t,e=0,i=!1,p=!1){if(e>this.get("maxDepth",2))return;if(!1===t||!0===t)return t;if(c.isArray(t)){const s=[];return u.each(t,(t=>{s.push(this.serialize(t,e,i,p))})),s}if(t instanceof l.k){const s=[];return u.each(t.values,(t=>{s.push(this.serialize(t,e,i,p))})),s}const g={},f=t instanceof s.JH||t instanceof h.YS||t instanceof r.Il||t instanceof a.gG,_=this.get("fullSettings",[]);if(t instanceof s.JH){g.type=t.className;let s=this._filterSettings(d.keys(t._settings));s=s.filter((e=>t.isUserSetting(e))),s.length&&(g.settings={},u.each(s,(s=>{const n=t.get(s);void 0!==n&&(g.settings[s]=this.serialize(n,e+1,i||-1!==_.indexOf(s)),t instanceof o.p&&"stops"===s&&(g.settings[s]=this.serialize(n,0,!0)))}))),this._processAdapters(t,g),this._processStates(t,g)}else if(t instanceof h.YS){g.type="Template";let i=this._filterSettings(d.keys(t._settings));return i.length&&(g.settings={},u.each(i,(i=>{void 0!==t._settings[i]&&(g.settings[i]=this.serialize(t.get(i),e+1,-1!==_.indexOf(i)))}))),this._processAdapters(t,g),this._processStates(t,g),g}if(t instanceof n.w&&t.data.length&&-1===(this.get("excludeProperties")||[]).indexOf("data")&&(g.properties={data:this.serialize(t.data.values,e,!0)}),t instanceof r.Il)return{type:"Color",value:t.toCSSHex()};if(t instanceof a.gG)return{type:"Percent",value:t.percent};if(c.isString(t))return this._escapeRefs(t);if(c.isNumber(t))return t;if(c.isObject(t))if(i&&!f){const s=this.get("excludeProperties",[]);d.each(t,((t,n)=>{-1===s.indexOf(t)&&void 0!==n&&(g[t]=this.serialize(n,e+1,i,p))})),p&&d.each(g,((t,e)=>{c.isObject(e)&&(g.__parse=!0)}))}else if(f){const s=this.get("includeProperties",[]);u.each(s,(s=>{const n=t[s];void 0!==n&&(void 0===g.properties&&(g.properties={}),g.properties[s]=this.serialize(n,e+1,i,p))}))}return 0==e&&d.keys(this._refs).length&&(g.refs=this._refs),g}_processAdapters(t,e){if(this.get("includeAdapters",!1)){const i="string"==this.get("functionsAs","string"),s=t.adapters._callbacks;Object.keys(s).length>0&&(e.adapters=[],d.each(s,((t,s)=>{s.forEach((s=>{e.adapters.push({key:t,callback:i?s.toString():s})}))})))}}_processStates(t,e){if(this.get("includeStates",!1)){const i=t.states._states;Object.keys(i).length>0&&(e.states=[],d.each(i,((t,i)=>{Object.keys(i._settings).length>0&&e.states.push({key:t,settings:this.serialize(i._settings,0,!0)})})))}}_filterSettings(t){const e=this.get("includeSettings",[]),i=this.get("excludeSettings",[]);return e.length?t=e:i.length&&(t=t.filter((t=>-1===i.indexOf(t)))),t}_escapeRefs(t){return t.replace(/^#/,"##").replace(/^@/,"@@")}}p.className="Serializer",p.classNames=s.JH.classNames.concat([p.className])},3783:function(t,e,i){"use strict";i.d(e,{X:function(){return c},v:function(){return l}});var s=i(3409),n=i(6245),r=i(1112),o=i(6881),a=i(962),h=i(9395);function l(t,e,i,s){t.set(e,i.get(s)),i.on(s,(i=>{t.set(e,i)}))}class c extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.language,e=this._root.interfaceColors,i=this._root.horizontalLayout,s=this._root.verticalLayout,c=this.rule.bind(this);c("InterfaceColors").setAll({stroke:r.Il.fromHex(15066597),fill:r.Il.fromHex(15987699),primaryButton:r.Il.fromHex(6788316),primaryButtonHover:r.Il.fromHex(6779356),primaryButtonDown:r.Il.fromHex(6872182),primaryButtonActive:r.Il.fromHex(6872182),primaryButtonDisabled:r.Il.fromHex(14342874),primaryButtonTextDisabled:r.Il.fromHex(16777215),primaryButtonText:r.Il.fromHex(16777215),primaryButtonStroke:r.Il.fromHex(16777215),secondaryButton:r.Il.fromHex(14277081),secondaryButtonHover:r.Il.fromHex(10724259),secondaryButtonDown:r.Il.fromHex(9276813),secondaryButtonActive:r.Il.fromHex(15132390),secondaryButtonText:r.Il.fromHex(0),secondaryButtonStroke:r.Il.fromHex(16777215),grid:r.Il.fromHex(0),background:r.Il.fromHex(16777215),alternativeBackground:r.Il.fromHex(0),text:r.Il.fromHex(0),alternativeText:r.Il.fromHex(16777215),disabled:r.Il.fromHex(11382189),positive:r.Il.fromHex(5288704),negative:r.Il.fromHex(11730944)});{const t=c("ColorSet");t.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[r.Il.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),t.setPrivate("currentStep",0),t.setPrivate("currentPass",0)}c("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:h.out(h.cubic)}),c("Component").setAll({interpolationDuration:0,interpolationEasing:h.out(h.cubic)}),c("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:n.CI,tooltipY:n.CI,tooltipPosition:"fixed",isMeasured:!0}),c("Sprite").states.create("default",{visible:!0,opacity:1}),c("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),c("Graphics").setAll({strokeWidth:1}),c("Chart").setAll({width:n.AQ,height:n.AQ,interactiveChildren:!1}),c("ZoomableContainer").setAll({width:n.AQ,height:n.AQ,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:h.out(h.cubic),animationDuration:600,maxPanOut:.4}),c("Sprite",["horizontal","center"]).setAll({centerX:n.CI,x:n.CI}),c("Sprite",["vertical","center"]).setAll({centerY:n.CI,y:n.CI}),c("Container",["horizontal","layout"]).setAll({layout:i}),c("Container",["vertical","layout"]).setAll({layout:s}),c("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),c("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),c("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),c("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),c("GrainPattern").setAll({width:200,height:200,colors:[r.Il.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const t=c("PatternSet");t.setAll({step:1}),l(t,"color",e,"stroke")}c("LinearGradient").setAll({rotation:90}),c("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:o.M.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),c("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:t.translate("Press ENTER to toggle"),role:"checkbox"});{const t=c("Rectangle",["legend","item","background"]);t.setAll({fillOpacity:0}),l(t,"fill",e,"background")}c("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:n.CI,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),c("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:n.AQ,height:n.AQ,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const t=c("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});l(t,"fill",e,"disabled"),l(t,"stroke",e,"disabled")}c("Label",["legend","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0}),l(c("Label",["legend","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("Label",["legend","value","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:n.AQ,populateText:!0}),l(c("Label",["legend","value","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("HeatLegend").setAll({stepCount:1}),c("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),c("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:n.AQ,width:15}),c("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:n.AQ,height:15}),c("HeatLegend",["vertical"]).setAll({height:n.AQ}),c("HeatLegend",["horizontal"]).setAll({width:n.AQ}),c("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),c("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const t=c("Label");t.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),l(t,"fill",e,"text")}c("RadialLabel").setAll({textType:"regular",centerY:n.CI,centerX:n.CI,inside:!1,radius:0,baseRadius:n.AQ,orientation:"auto",textAlign:"center"}),c("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),c("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:r.Il.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:r.Il.fromHex(0)}),c("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),c("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),c("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),c("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const t=c("Tick");t.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),l(t,"stroke",e,"grid")}c("Bullet").setAll({locationX:.5,locationY:.5}),c("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:n.CI,centerY:n.CI,animationEasing:h.out(h.cubic),exportable:!1}),c("Tooltip",["system"]).setAll({pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});{const t=c("PointedRectangle",["tooltip","system","background"]);t.setAll({strokeOpacity:.3}),l(t,"fill",e,"background"),l(t,"stroke",e,"grid")}c("Label",["tooltip","system"]).setAll({fontSize:12,fill:e.get("background")}),c("Polygon").setAll({animationEasing:h.out(h.cubic)}),c("Link").setAll({cornerRadius:8,setStateOnChildren:!0});{const t=c("OrthogonalLine",["link","line"]);t.setAll({isMeasured:!1,crisp:!0}),l(t.states.create("active",{strokeWidth:2}),"stroke",e,"negative")}c("OrthogonalLine",["link","hit"]).setAll({strokeWidth:10,opacity:0,strokeOpacity:0});{const t=c("OrthogonalLine");t.setAll({strokeWidth:1,strokeOpacity:1,cornerRadius:10}),l(t,"stroke",e,"grid")}{const t=c("Triangle",["link"]);t.setAll({width:14,height:10,centerY:0}),l(t,"fill",e,"grid"),l(t,"stroke",e,"grid"),t.states.create("default",{stateAnimationDuration:0});const i=t.states.create("active",{stateAnimationDuration:0,stroke:(0,r.$_)(16777215),strokeWidth:2});i.set("draw",(t=>{t.arc(0,0,11,0,2*Math.PI),t.moveTo(-4,-4),t.lineTo(4,4),t.moveTo(4,-4),t.lineTo(-4,4)})),l(i,"fill",e,"negative")}c("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:r.Il.fromHex(16777215)});{const t=c("Label",["tooltip"]);t.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),l(t,"fill",e,"alternativeText")}c("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),c("Button").states.create("hover",{}),c("Button").states.create("down",{stateAnimationDuration:0}),c("Button").states.create("active",{}),c("Button").states.create("disabled",{forceInactive:!0});{const t=c("RoundedRectangle",["button","background"]);l(t,"fill",e,"primaryButton"),l(t,"stroke",e,"primaryButtonStroke")}l(c("RoundedRectangle",["button","background"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown"),l(c("RoundedRectangle",["button","background"]).states.create("active",{}),"fill",e,"primaryButtonActive"),l(c("RoundedRectangle",["button","background"]).states.create("disabled",{}),"fill",e,"primaryButtonDisabled"),l(c("Graphics",["button","icon"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled"),l(c("Label",["button"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled");{const t=c("Graphics",["button","icon"]);t.setAll({forceInactive:!0}),l(t,"stroke",e,"primaryButtonText")}l(c("Label",["button"]),"fill",e,"primaryButtonText"),c("ConfirmButton").setAll({toggleKey:"active",setStateOnChildren:!0,label:a._.new(this._root,{text:t.translate("Confirm"),forceHidden:!0})}),l(c("RoundedRectangle",["button","background","confirm"]).states.create("active",{}),"fill",e,"negative"),c("Label",["button","confirm"]).setAll({paddingTop:0,paddingBottom:0,paddingRight:3,paddingLeft:5}),c("Label",["button","confirm"]).states.create("default",{stateAnimationDuration:0}),c("Label",["button","confirm"]).states.create("active",{forceHidden:!1,stateAnimationDuration:0});{const t=c("Graphics",["icon","confirm","button"]);t.setAll({stateAnimationDuration:0}),t.states.create("default",{stateAnimationDuration:0}),l(t,"stroke",e,"primaryButtonText")}l(c("Graphics",["icon","confirm","button"]).states.create("active",{svgPath:"M -5 1 L 0 6 L 8 -5",strokeWidth:2}),"stroke",e,"primaryButtonText"),l(c("Graphics",["icon","confirm","button","secondary"]).states.create("active",{}),"stroke",e,"primaryButtonText"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1}),"fill",e,"negative"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1}),"fill",e,"negative"),c("Button",["button","confirm"]).states.create("hoverActive",{}),c("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:n.AQ,role:"button",ariaLabel:t.translate("Zoom Out"),layer:30});{const t=c("RoundedRectangle",["background","button","zoom"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"primaryButton")}l(c("RoundedRectangle",["background","button","zoom"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown");{const t=c("Graphics",["icon","button","zoom"]);t.setAll({crisp:!0,strokeOpacity:.7,draw:t=>{t.moveTo(0,0),t.lineTo(12,0)}}),l(t,"stroke",e,"primaryButtonText")}c("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:n.CI,centerY:n.CI,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:t.translate("Use up and down arrows to move selection")});{const t=c("RoundedRectangle",["background","resize","button"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"secondaryButton"),l(t,"stroke",e,"secondaryButtonStroke")}l(c("RoundedRectangle",["background","resize","button"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown");{const t=c("Graphics",["resize","button","icon"]);t.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),l(t,"stroke",e,"secondaryButtonText")}c("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),c("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),c("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:t.translate("Play"),toggleKey:"active"});{const t=c("RoundedRectangle",["play","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Graphics",["play","icon"]);t.setAll({stateAnimationDuration:0,dx:1,draw:t=>{t.moveTo(0,-5),t.lineTo(8,0),t.lineTo(0,5),t.lineTo(0,-5)}}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),c("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:t=>{t.moveTo(-4,-5),t.lineTo(-1,-5),t.lineTo(-1,5),t.lineTo(-4,5),t.lineTo(-4,-5),t.moveTo(4,-5),t.lineTo(1,-5),t.lineTo(1,5),t.lineTo(4,5),t.lineTo(4,-5)}}),c("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:t.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const t=c("RoundedRectangle",["switch","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["switch","icon"]);t.setAll({radius:8,centerY:0,centerX:0,dx:0}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["switch","icon"]).states.create("active",{dx:16}),c("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:h.out(h.cubic)}),c("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:n.AQ}),c("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:n.AQ}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const t=c("RoundedRectangle",["scrollbar","main","background"]);t.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),l(t,"fill",e,"fill")}{const t=c("RoundedRectangle",["scrollbar","thumb"]);t.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),l(t,"fill",e,"secondaryButton")}l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown"),c("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:n.CI,width:n.AQ,centerX:n.CI,ariaLabel:t.translate("Use up and down arrows to move selection")}),c("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:n.CI,centerY:n.CI,height:n.AQ,ariaLabel:t.translate("Use left and right arrows to move selection")});{const t=c("PointedRectangle",["axis","tooltip","background"]);t.setAll({cornerRadius:0}),l(t,"fill",e,"alternativeBackground")}c("Label",["axis","tooltip"]).setAll({role:void 0}),c("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),c("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),c("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),c("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),c("Star").setAll({spikes:5,innerRadius:5,radius:10}),c("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),c("Tooltip",["indicator"]).setAll({forceHidden:!0}),c("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),c("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),c("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),c("Container",["resizer","grip"]).states.create("hover",{});{const t=c("RoundedRectangle",["resizer","grip"]);t.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),l(t,"fill",e,"background"),l(t,"stroke",e,"alternativeBackground")}{const t=c("RoundedRectangle",["resizer","grip","outline"]);t.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),t.states.create("hover",{fillOpacity:.3}),l(t,"fill",e,"alternativeBackground")}c("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),c("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const t=c("Rectangle",["resizer","rectangle"]);t.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),l(t,"stroke",e,"alternativeBackground")}c("Graphics",["button","plus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0),t.moveTo(0,-4),t.lineTo(0,4)}}),c("Graphics",["button","minus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0)}}),c("Graphics",["button","home","icon"]).setAll({x:n.CI,y:n.CI,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),c("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),c("ZoomTools").setAll({x:n.AQ,centerX:n.AQ,y:n.AQ,centerY:n.AQ,paddingRight:10,paddingBottom:10}),c("ProgressPie").setAll({radius:n.AQ,width:50,height:50,centerX:(0,n.aQ)(-50),centerY:(0,n.aQ)(-50),innerRadius:(0,n.aQ)(85),numberFormat:"#."});{const t=c("Label",["progresspie"]);t.setAll({centerX:n.CI,centerY:n.CI,fontSize:"0.75em"}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["progresspie"]);t.setAll({fillOpacity:.5}),l(t,"fill",e,"background")}{const t=c("Slice",["progresspie"]);t.setAll({startAngle:-90}),l(t,"fill",e,"primaryButton")}{const t=c("Slice",["progresspie","background"]);t.setAll({fillOpacity:.2,arc:360}),l(t,"fill",e,"primaryButton")}c("EditableLabel",["numericstepper"]).setAll({y:n.CI,centerY:n.CI,multiLine:!1,marginRight:2});{const t=c("Container",["numericstepper","buttons"]);t.setAll({layout:this._root.verticalLayout,centerY:n.CI,y:n.CI,marginRight:10,opacity:0}),t.states.create("active",{opacity:1}),t.states.create("default",{opacity:0})}{const t=c("Triangle",["numericstepper"]);t.setAll({width:17,height:11,marginTop:3,marginBottom:3,strokeWidth:5,strokeOpacity:0,cursorOverStyle:"pointer"}),l(t,"fill",e,"secondaryButton")}c("Triangle",["downbutton"]).setAll({rotation:180})}}},5322:function(t,e,i){"use strict";i.r(e),i.d(e,{ArrayDisposer:function(){return c.rk},BlendMode:function(){return ot.b},Bullet:function(){return u.g},Button:function(){return d.z},CSVParser:function(){return bt},CanvasLayer:function(){return Pt.mM},CanvasRenderer:function(){return Pt.uK},Chart:function(){return q.k},Circle:function(){return g.C},CirclePattern:function(){return ut},Color:function(){return O.Il},ColorSet:function(){return mt.U},Component:function(){return v.w},ConfirmButton:function(){return p.p},Container:function(){return w.W},CounterDisposer:function(){return c.DM},DataItem:function(){return v.z},DataProcessor:function(){return xt},DateFormatter:function(){return Dt.C},Disposer:function(){return c.ku},DurationFormatter:function(){return kt.$},EditableLabel:function(){return A.Y},Ellipse:function(){return _.P},Entity:function(){return l.JH},Gradient:function(){return at.p},GrainPattern:function(){return rt},Graphics:function(){return m.T},GridLayout:function(){return x.M},HeatLegend:function(){return C},HorizontalLayout:function(){return L.G},InterfaceColors:function(){return Tt.v},JSONParser:function(){return wt},JsonData:function(){return yt.Q},Label:function(){return D._},Layout:function(){return R.A},Legend:function(){return U.D},Line:function(){return B.x},LinePattern:function(){return dt.y},LinearGradient:function(){return S.o},Link:function(){return F.r},ListData:function(){return yt.k},ListTemplate:function(){return E.o},Modal:function(){return h.u},MultiDisposer:function(){return c.FV},MutableValueDisposer:function(){return c.cx},NumberFormatter:function(){return Mt.e},NumericStepper:function(){return St.l},OrthogonalLine:function(){return I.P},PathPattern:function(){return ft},Pattern:function(){return nt.c},PatternSet:function(){return _t},Percent:function(){return k.gG},Picture:function(){return H.t},PicturePattern:function(){return pt.v},PointedRectangle:function(){return z.i},Polygon:function(){return f.m},ProgressPie:function(){return Nt.w},RadialGradient:function(){return lt},RadialLabel:function(){return G.x},RadialText:function(){return V.f},Rectangle:function(){return W.A},RectanglePattern:function(){return gt},Root:function(){return n.f},RoundedRectangle:function(){return T.c},Scrollbar:function(){return j.L},SerialChart:function(){return Q.j},Series:function(){return K.F},Slice:function(){return $.p},Slider:function(){return X.i},Sprite:function(){return Z.j},SpriteResizer:function(){return Ot.b},Star:function(){return y},Template:function(){return M.YS},Text:function(){return J.x},TextFormatter:function(){return Et.V},Theme:function(){return r.Q},Tick:function(){return tt.d},Timezone:function(){return it.r},Tooltip:function(){return P.u},Triangle:function(){return Y.C},VerticalLayout:function(){return et.Z},ZoomTools:function(){return st.H},ZoomableContainer:function(){return b.Y},addLicense:function(){return o.cP},array:function(){return ht},color:function(){return O.$_},disposeAllRootElements:function(){return o.UZ},ease:function(){return Ct},getRootById:function(){return o.f_},math:function(){return ct},net:function(){return s},object:function(){return vt},p0:function(){return k.p0},p100:function(){return k.AQ},p50:function(){return k.CI},percent:function(){return k.aQ},ready:function(){return a.ready},registry:function(){return o.i_},time:function(){return Rt},type:function(){return N},utils:function(){return a}});var s={};i.r(s),i.d(s,{load:function(){return Lt},readBlob:function(){return At}});var n=i(2855),r=i(3409),o=i(3145),a=i(7652),h=i(8219),l=i(6331),c=i(7449),u=i(5108),d=i(8054),p=i(2936),g=i(8035),f=i(7770),_=i(2433),m=i(1479);class y extends m.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("spikes"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const t=this._display,e=this.get("radius",0),i=a.relativeToValue(this.get("innerRadius",0),e),s=this.get("spikes",0),n=Math.PI/s;let r=Math.PI/2*3;t.moveTo(0,-e);for(let o=0;oT.c._new(this._root,{themeTags:a.mergeTags(this.markers.template.get("themeTags",[]),[this.get("orientation"),"heatlegend","marker"])},[this.markers.template]))))}_afterNew(){this._settings.themeTags=a.mergeTags(this._settings.themeTags,["heatlegend",this._settings.orientation]),super._afterNew(),this.set("tooltip",P.u.new(this._root,{themeTags:["heatlegend"]}))}makeMarker(){const t=this.markers.make();return t.states.create("disabled",{}),t}showValue(t,e,i){const s=this.getTooltip();if(s&&N.isNumber(t)){const n=this.get("startValue",0);let r=(t-n)/(this.get("endValue",1)-n);(r==1/0||r==-1/0||isNaN(r))&&(r=.5);const o=this.get("startColor"),a=this.get("endColor");let h;e||(e=this.getNumberFormatter().format(t)),i||(i=O.Il.interpolate(r,o,a)),s.label.set("text",e),h="vertical"==this.get("orientation")?this.markerContainer.toGlobal({x:0,y:this.innerHeight()*(1-r)}):this.markerContainer.toGlobal({x:this.innerWidth()*r,y:0});let l=s.get("background");l&&l.set("fill",i),s.set("pointTo",h),s.show()}}_prepareChildren(){super._prepareChildren();const t=this.labelContainer,e=this.get("orientation"),i=this.startLabel,s=this.endLabel,n=this.getTooltip();if(this.isDirty("orientation")&&("vertical"==e?(this.markerContainer.setAll({layout:this._root.verticalLayout,height:k.AQ}),this.set("layout",this._root.horizontalLayout),i.setAll({y:k.AQ,x:void 0,centerY:k.AQ,centerX:k.AQ}),s.setAll({y:0,x:void 0,centerY:0,centerX:k.AQ}),t.setAll({height:k.AQ,width:void 0}),n&&n.set("pointerOrientation","horizontal")):(this.markerContainer.setAll({layout:this._root.horizontalLayout,width:k.AQ}),this.set("layout",this._root.verticalLayout),i.setAll({x:0,y:void 0,centerX:0,centerY:0}),s.setAll({x:k.AQ,y:void 0,centerX:k.AQ,centerY:0}),t.setAll({width:k.AQ,height:void 0}),n&&n.set("pointerOrientation","vertical"))),this.isDirty("stepCount")){const t=this.get("stepCount",1),i=this.get("startColor"),s=this.get("endColor"),n=this.get("startOpacity",1),r=this.get("endOpacity",1);if(this.markerContainer.children.clear(),t>1)for(let o=0;o0&&e/u!=Math.round(e/u)))for(let h=0;h0&&h/c!=Math.round(h/c)||d{let i=e.offset;N.isNumber(i)||(i=t/(g.length-1));let s=e.opacity;N.isNumber(s)||(s=1);let n=e.color;if(n){const t=e.lighten;t&&(n=O.Il.lighten(n,t));const r=e.brighten;r&&(n=O.Il.brighten(n,r)),p.addColorStop(i,"rgba("+n.r+","+n.g+","+n.b+","+s+")")}t++}))}return p}}lt.className="RadialGradient",lt.classNames=at.p.classNames.concat([lt.className]);var ct=i(751);class ut extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("radius",3),a=2*o+i,h=2*o+i,l=Math.round(n/a),c=Math.round(r/h);a=n/l,h=r/c,0!=s&&(this._display.x=a*ct.cos(s),this._display.y=h*ct.sin(s));const u=this.get("color"),d=this.get("colorOpacity");(u||d)&&this._display.beginFill(u,d);for(let n=0==s?0:2*-c;n<2*c;n++)for(let r=0==s?0:2*-l;r<2*l;r++)if(!t||1!=(1&n)&&1!=(1&r)||1==(1&n)&&1==(1&r)){let t=r*a,s=n*h;e&&(t+=a+i/2,s+=h+i/2),this._display.drawCircle(t-o,s-o,o)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i),(u||d)&&this._display.endFill()}}ut.className="CirclePattern",ut.classNames=nt.c.classNames.concat([ut.className]);var dt=i(3035),pt=i(4429);class gt extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("maxWidth",5),a=this.get("maxHeight",5);const h=this._display;let l=o+i,c=a+i,u=Math.round(n/l),d=Math.round(r/c);l=n/u,c=r/d,0!=s&&(h.x=l/2*ct.cos(s),h.y=-c/2*ct.sin(s));for(let i=0==s?0:2*-d;i<2*d;i++)for(let n=0==s?0:2*-u;n<2*u;n++)if(!t||1!=(1&i)&&1!=(1&n)||1==(1&i)&&1==(1&n)){let t=n*l,s=i*c;e&&(t+=(l-o)/2,s+=(c-a)/2),h.drawRect(t,s,o,a)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i);const p=this.get("color"),g=this.get("colorOpacity");(p||g)&&(h.beginFill(p,g),h.endFill())}}gt.className="RectanglePattern",gt.classNames=nt.c.classNames.concat([gt.className]);class ft extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("svgPath")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("svgPath");null!=t&&this._display.svgPath(t);const e=this.get("color"),i=this.get("colorOpacity");(e||i)&&(this._display.beginFill(e,i),this._display.endFill())}}ft.className="PathPattern",ft.classNames=nt.c.classNames.concat([ft.className]);class _t extends l.JH{_afterNew(){if(super._afterNewApplyThemes(),0===this.get("patterns",[]).length){const t=this.get("color",this.root.interfaceColors.get("stroke"));this.set("patterns",[this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:1,color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,maxWidth:4,maxHeight:4,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:1,gap:6,color:t}),this.getCirclePattern({width:11,height:11,radius:2,color:t}),this.getLinePattern({width:6,height:6,rotation:90,strokeWidth:1,color:t}),this.getRectanglePattern({width:14,height:14,rotation:45,gap:4,maxWidth:6,maxHeight:6,checkered:!0,color:t}),this.getLinePattern({width:6,height:6,rotation:0,strokeWidth:1,color:t}),this.getRectanglePattern({width:15,height:15,rotation:0,gap:5,maxWidth:5,maxHeight:5,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getCirclePattern({width:20,height:20,radius:3,gap:4,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,gap:1,maxWidth:9,maxHeight:9,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:0,strokeWidth:3,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:90,strokeWidth:3,gap:1,color:t})])}this._dirty.patterns=!1}_beforeChanged(){this.isDirty("patterns")&&this.reset()}getIndex(t){const e=this.get("patterns",[]);return te.length-1?e[t-Math.floor(t*(t/e.length))]:e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0))}getLinePattern(t){return dt.y.new(this.root,t)}getRectanglePattern(t){return gt.new(this.root,t)}getCirclePattern(t){return ut.new(this.root,t)}}_t.className="PatternSet",_t.classNames=l.JH.classNames.concat([_t.className]);var mt=i(2754),yt=i(9582),vt=i(256);class wt{static parse(t,e){e=this._applyDefaults(e);try{if(N.isString(t)){let i=JSON.parse(t);return e.reverse&&N.isArray(i)&&i.reverse(),i}if(N.isArray(t)||N.isObject(t))return t;throw"Unable to parse JSON data"}catch(t){return}}static _applyDefaults(t){const e={};return t||(t={}),vt.each({reverse:!1},((i,s)=>{e[i]=t[i]||s})),e}}class bt{static parse(t,e){e=this._applyDefaults(e);let i,s,n,r=this.CSVToArray(t,e.delimiter),o=[],a=[];for(s=0;s{e[i]=t[i]||s})),e}}class xt extends l.JH{constructor(){super(...arguments),this._checkDates=!1,this._checkNumbers=!1,this._checkColors=!1,this._checkEmpty=!1,this._checkDeep=!1}_afterNew(){super._afterNew(),this._checkFeatures(),this.on("dateFields",(()=>this._checkFeatures())),this.on("dateFormat",(()=>this._checkFeatures())),this.on("numericFields",(()=>this._checkFeatures())),this.on("colorFields",(()=>this._checkFeatures())),this.on("emptyAs",(()=>this._checkFeatures()))}_checkFeatures(){(this.isDirty("dateFields")||this.isDirty("dateFormat"))&&(this._checkDates=this.get("dateFields")&&this.get("dateFields").length>0),this.isDirty("numericFields")&&(this._checkNumbers=this.get("numericFields")&&this.get("numericFields").length>0),this.isDirty("colorFields")&&(this._checkColors=this.get("colorFields")&&this.get("colorFields").length>0),this.isDirty("emptyAs")&&(this._checkEmpty=null!=this.get("emptyAs")),this._checkDeepFeatures()}_checkDeepFeatures(){const t=[];ht.each(["dateFields","numericFields","colorFields"],(e=>{ht.each(this.get(e,[]),(e=>{const i=e.split(".");for(i.pop();i.length>0;)t.push(i.join(".")),i.pop()}))})),this._checkDeep=t.length>0,this.setPrivate("deepFields",t)}processMany(t){N.isArray(t)&&(this._checkDates||this._checkNumbers||this._checkColors||this._checkEmpty)&&ht.each(t,(t=>{this.processRow(t)}))}processRow(t,e=""){vt.each(t,((i,s)=>{const n=e+i;this._checkEmpty&&(t[i]=this._maybeToEmpty(t[i])),this._checkNumbers&&(t[i]=this._maybeToNumber(n,t[i])),this._checkDates&&(t[i]=this._maybeToDate(n,t[i])),this._checkColors&&(t[i]=this._maybeToColor(n,t[i])),this._checkDeep&&-1!==this.getPrivate("deepFields",[]).indexOf(n)&&N.isObject(t[i])&&this.processRow(t[i],n+".")}))}_maybeToNumber(t,e){return-1!==this.get("numericFields").indexOf(t)?N.toNumber(e):e}_maybeToDate(t,e){return-1!==this.get("dateFields").indexOf(t)?this._root.dateFormatter.parse(e,this.get("dateFormat","")).getTime():e}_maybeToEmpty(t){return null!=t&&""!=t||null==this.get("emptyAs")?t:this.get("emptyAs")}_maybeToColor(t,e){return-1!==this.get("colorFields").indexOf(t)?O.Il.fromAny(e):e}}var Dt=i(6460),kt=i(798),Tt=i(9821),Mt=i(780),Et=i(7255),Ot=i(1195),Pt=i(4102),St=i(7049),Nt=i(6312),Ct=i(9395);function Lt(t,e,i){return new Promise(((s,n)=>{let r=null!=i&&"blob"==i.responseType,o=new XMLHttpRequest;if(o.onload=()=>{if(200===o.status){let t,i;if(r)return i=o.response,void At(i).then((t=>{let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}));t=o.responseText||o.response;let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}else n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.onerror=()=>{n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.open("GET",t,!0),i&&i.withCredentials&&(o.withCredentials=!0),null!=i){if(null!=i.requestHeaders)for(let t=0;t{const s=new FileReader;s.onload=t=>{e(s.result)},s.onerror=t=>{i(t)},s.readAsText(t)}))}var Rt=i(1926)},3100:function(t,e){"use strict";e.Z={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(t){let e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""}},9629:function(t){var e=function(t){"use strict";var e,i=Object.prototype,s=i.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",h=r.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,s){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new S(s||[]);return n(o,"_invoke",{value:M(t,i,a)}),o}function u(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",g="executing",f="completed",_={};function m(){}function y(){}function v(){}var w={};l(w,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==i&&s.call(x,o)&&(w=x);var D=v.prototype=m.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function i(n,r,o,a){var h=u(t[n],t,r);if("throw"!==h.type){var l=h.arg,c=l.value;return c&&"object"==typeof c&&s.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,o,a)}),(function(t){i("throw",t,o,a)})):e.resolve(c).then((function(t){l.value=t,o(l)}),(function(t){return i("throw",t,o,a)}))}a(h.arg)}var r;n(this,"_invoke",{value:function(t,s){function n(){return new e((function(e,n){i(t,s,e,n)}))}return r=r?r.then(n,n):n()}})}function M(t,e,i){var s=d;return function(n,r){if(s===g)throw new Error("Generator is already running");if(s===f){if("throw"===n)throw r;return C()}for(i.method=n,i.arg=r;;){var o=i.delegate;if(o){var a=E(o,i);if(a){if(a===_)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===d)throw s=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=g;var h=u(t,e,i);if("normal"===h.type){if(s=i.done?f:p,h.arg===_)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(s=f,i.method="throw",i.arg=h.arg)}}}function E(t,i){var s=i.method,n=t.iterator[s];if(n===e)return i.delegate=null,"throw"===s&&t.iterator.return&&(i.method="return",i.arg=e,E(t,i),"throw"===i.method)||"return"!==s&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),_;var r=u(n,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,_;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,_):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,_)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var h=s.call(o,"catchLoc"),l=s.call(o,"finallyLoc");if(h&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var s=i.completion;if("throw"===s.type){var n=s.arg;P(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,s){return this.delegate={iterator:N(t),resultName:i,nextLoc:s},"next"===this.method&&(this.arg=e),_}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},8494:function(t,e,i){"use strict";i.r(e),i.d(e,{am5:function(){return f}});const s=window.Promise,n=s&&s.prototype.then,r=s&&s.prototype.catch,o=s&&s.prototype.finally,a=s&&s.reject,h=s&&s.resolve,l=s&&s.allSettled,c=s&&s.all,u=s&&s.race,d=window.fetch,p=String.prototype.startsWith,g=String.prototype.endsWith;i(9629);const f=i(5322);var _;i.p=(_=function(){if(document.currentScript)return document.currentScript;var t=document.getElementsByTagName("script");return t[t.length-1]}().src,((/(.*\/)[^\/]*$/.exec(_)||[])[1]||"./")),s&&(window.Promise=s,n&&(s.prototype.then=n),r&&(s.prototype.catch=r),o&&(s.prototype.finally=o),a&&(s.reject=a),h&&(s.resolve=h),l&&(s.allSettled=l),c&&(s.all=c),u&&(s.race=u)),d&&(window.fetch=d),p&&(String.prototype.startsWith=p),g&&(String.prototype.endsWith=g)},4138:function(t,e){"use strict";var i={value:()=>{}};function s(){for(var t,e=0,i=arguments.length,s={};e=0&&(e=t.slice(i+1),t=t.slice(0,i)),t&&!s.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),h=-1,l=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++h0)for(var i,s,n=new Array(i),r=0;r0&&i*i>s*s+n*n}function u(t,e){for(var i=0;i1e-6?(E+Math.sqrt(E*E-4*M*O))/(2*M):O/E);return{x:s+x+D*P,y:n+k+T*P,r:P}}function f(t,e,i){var s,n,r,o,a=t.x-e.x,h=t.y-e.y,l=a*a+h*h;l?(n=e.r+i.r,n*=n,o=t.r+i.r,n>(o*=o)?(s=(l+o-n)/(2*l),r=Math.sqrt(Math.max(0,o/l-s*s)),i.x=t.x-s*a-r*h,i.y=t.y-s*h+r*a):(s=(l+n-o)/(2*l),r=Math.sqrt(Math.max(0,n/l-s*s)),i.x=e.x+s*a-r*h,i.y=e.y+s*h+r*a)):(i.x=e.x+i.r,i.y=e.y)}function _(t,e){var i=t.r+e.r-1e-6,s=e.x-t.x,n=e.y-t.y;return i>0&&i*i>s*s+n*n}function m(t){var e=t._,i=t.next._,s=e.r+i.r,n=(e.x*i.r+i.x*e.r)/s,r=(e.y*i.r+i.y*e.r)/s;return n*n+r*r}function y(t){this._=t,this.next=null,this.previous=null}function v(t,e){if(!(o=(i=t,t="object"==typeof i&&"length"in i?i:Array.from(i)).length))return 0;var i,s,n,r,o,a,l,u,p,g,v,w;if((s=t[0]).x=0,s.y=0,!(o>1))return s.r;if(n=t[1],s.x=-n.r,n.x=s.r,n.y=0,!(o>2))return s.r+n.r;f(n,s,r=t[2]),s=new y(s),n=new y(n),r=new y(r),s.next=r.previous=n,n.next=s.previous=r,r.next=n.previous=s;t:for(u=3;u(t=(r*t+o)%a)/a}();return s.x=e/2,s.y=i/2,t?s.eachBefore(x(t)).eachAfter(D(h,.5,l)).eachBefore(k(1)):s.eachBefore(x(w)).eachAfter(D(n.G,1,l)).eachAfter(D(h,s.r/Math.min(e,i),l)).eachBefore(k(Math.min(e,i)/(2*s.r))),s}return l.radius=function(e){return arguments.length?(t=(0,s.j)(e),l):t},l.size=function(t){return arguments.length?(e=+t[0],i=+t[1],l):[e,i]},l.padding=function(t){return arguments.length?(h="function"==typeof t?t:(0,n.Z)(+t),l):h},l}function x(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function D(t,e,i){return function(s){if(n=s.children){var n,r,o,a=n.length,h=t(s)*e||0;if(h)for(r=0;r=0))throw new Error(`invalid digits: ${t}`);if(e>15)return a;const i=10**e;return function(t){this._+=t[0];for(let e=1,s=t.length;er)if(Math.abs(d*l-c*u)>r&&o){let g=i-a,f=n-h,_=l*l+c*c,m=g*g+f*f,y=Math.sqrt(_),v=Math.sqrt(p),w=o*Math.tan((s-Math.acos((_+p-m)/(2*y*v)))/2),b=w/v,x=w/y;Math.abs(b-1)>r&&this._append`L${t+b*u},${e+b*d}`,this._append`A${o},${o},0,0,${+(d*g>u*f)},${this._x1=t+x*l},${this._y1=e+x*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,i,a,h,l){if(t=+t,e=+e,l=!!l,(i=+i)<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(a),u=i*Math.sin(a),d=t+c,p=e+u,g=1^l,f=l?a-h:h-a;null===this._x1?this._append`M${d},${p}`:(Math.abs(this._x1-d)>r||Math.abs(this._y1-p)>r)&&this._append`L${d},${p}`,i&&(f<0&&(f=f%n+n),f>o?this._append`A${i},${i},0,1,${g},${t-c},${e-u}A${i},${i},0,1,${g},${this._x1=d},${this._y1=p}`:f>r&&this._append`A${i},${i},0,${+(f>=s)},${g},${this._x1=t+i*Math.cos(h)},${this._y1=e+i*Math.sin(h)}`)}rect(t,e,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function l(){return new h}l.prototype=h.prototype},832:function(t,e,i){"use strict";i.d(e,{Z:function(){return D}});var s=i(3141);const n=Math.abs,r=Math.atan2,o=Math.cos,a=Math.max,h=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,d=Math.PI,p=d/2,g=2*d;function f(t){return t>=1?p:t<=-1?-p:Math.asin(t)}var _=i(5987);function m(t){return t.innerRadius}function y(t){return t.outerRadius}function v(t){return t.startAngle}function w(t){return t.endAngle}function b(t){return t&&t.padAngle}function x(t,e,i,s,n,r,o){var h=t-i,l=e-s,u=(o?r:-r)/c(h*h+l*l),d=u*l,p=-u*h,g=t+d,f=e+p,_=i+d,m=s+p,y=(g+_)/2,v=(f+m)/2,w=_-g,b=m-f,x=w*w+b*b,D=n-r,k=g*m-_*f,T=(b<0?-1:1)*c(a(0,D*D*x-k*k)),M=(k*b-w*T)/x,E=(-k*w-b*T)/x,O=(k*b+w*T)/x,P=(-k*w+b*T)/x,S=M-y,N=E-v,C=O-y,L=P-v;return S*S+N*N>C*C+L*L&&(M=O,E=P),{cx:M,cy:E,x01:-d,y01:-p,x11:M*(n/D-1),y11:E*(n/D-1)}}function D(){var t=m,e=y,i=(0,s.Z)(0),a=null,D=v,k=w,T=b,M=null,E=(0,_.d)(O);function O(){var s,_,m,y=+t.apply(this,arguments),v=+e.apply(this,arguments),w=D.apply(this,arguments)-p,b=k.apply(this,arguments)-p,O=n(b-w),P=b>w;if(M||(M=s=E()),vu)if(O>g-u)M.moveTo(v*o(w),v*l(w)),M.arc(0,0,v,w,b,!P),y>u&&(M.moveTo(y*o(b),y*l(b)),M.arc(0,0,y,b,w,P));else{var S,N,C=w,L=b,A=w,R=b,U=O,B=O,F=T.apply(this,arguments)/2,I=F>u&&(a?+a.apply(this,arguments):c(y*y+v*v)),H=h(n(v-y)/2,+i.apply(this,arguments)),z=H,G=H;if(I>u){var V=f(I/y*l(F)),W=f(I/v*l(F));(U-=2*V)>u?(A+=V*=P?1:-1,R-=V):(U=0,A=R=(w+b)/2),(B-=2*W)>u?(C+=W*=P?1:-1,L-=W):(B=0,C=L=(w+b)/2)}var Y=v*o(C),j=v*l(C),X=y*o(R),$=y*l(R);if(H>u){var Z,K=v*o(L),q=v*l(L),Q=y*o(A),J=y*l(A);if(O1?0:m<-1?d:Math.acos(m))/2),rt=c(Z[0]*Z[0]+Z[1]*Z[1]);z=h(H,(y-rt)/(nt-1)),G=h(H,(v-rt)/(nt+1))}else z=G=0}B>u?G>u?(S=x(Q,J,Y,j,v,G,P),N=x(K,q,X,$,v,G,P),M.moveTo(S.cx+S.x01,S.cy+S.y01),Gu&&U>u?z>u?(S=x(X,$,K,q,y,-z,P),N=x(Y,j,Q,J,y,-z,P),M.lineTo(S.cx+S.x01,S.cy+S.y01),z=o;--a)p.point(y[a],v[a]);p.lineEnd(),p.areaEnd()}m&&(y[r]=+t(h,r,n),v[r]=+e(h,r,n),p.point(l?+l(h,r,n):y[r],i?+i(h,r,n):v[r]))}if(f)return p=null,f+""||null}function _(){return(0,o.Z)().defined(c).curve(d).context(u)}return t="function"==typeof t?t:void 0===t?h.x:(0,n.Z)(+t),e="function"==typeof e?e:void 0===e?(0,n.Z)(0):(0,n.Z)(+e),i="function"==typeof i?i:void 0===i?h.y:(0,n.Z)(+i),f.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),l=null,f):t},f.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),f):t},f.x1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):l},f.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),i=null,f):e},f.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),f):e},f.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):i},f.lineX0=f.lineY0=function(){return _().x(t).y(e)},f.lineY1=function(){return _().x(t).y(i)},f.lineX1=function(){return _().x(l).y(e)},f.defined=function(t){return arguments.length?(c="function"==typeof t?t:(0,n.Z)(!!t),f):c},f.curve=function(t){return arguments.length?(d=t,null!=u&&(p=d(u)),f):d},f.context=function(t){return arguments.length?(null==t?u=p=null:p=d(u=t),f):u},f}},8457:function(t,e,i){"use strict";function s(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}i.d(e,{Z:function(){return s}}),Array.prototype.slice},3141:function(t,e,i){"use strict";function s(t){return function(){return t}}i.d(e,{Z:function(){return s}})},964:function(t,e,i){"use strict";function s(t){this._context=t}function n(t){return new s(t)}i.d(e,{Z:function(){return n}}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},774:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var s=i(8457),n=i(3141),r=i(964),o=i(5987),a=i(6758);function h(t,e){var i=(0,n.Z)(!0),h=null,l=r.Z,c=null,u=(0,o.d)(d);function d(n){var r,o,a,d=(n=(0,s.Z)(n)).length,p=!1;for(null==h&&(c=l(a=u())),r=0;r<=d;++r)!(r=0))throw new RangeError(`invalid digits: ${i}`);e=t}return t},()=>new s.y$(e)}},6758:function(t,e,i){"use strict";function s(t){return t[0]}function n(t){return t[1]}i.d(e,{x:function(){return s},y:function(){return n}})},7738:function(t,e,i){"use strict";i.d(e,{B7:function(){return _},HT:function(){return m},zO:function(){return g}});var s,n,r=0,o=0,a=0,h=1e3,l=0,c=0,u=0,d="object"==typeof performance&&performance.now?performance:Date,p="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return c||(p(f),c=d.now()+u)}function f(){c=0}function _(){this._call=this._time=this._next=null}function m(t,e,i){var s=new _;return s.restart(t,e,i),s}function y(){c=(l=d.now())+u,r=o=0;try{!function(){g(),++r;for(var t,e=s;e;)(t=c-e._time)>=0&&e._call.call(void 0,t),e=e._next;--r}()}finally{r=0,function(){for(var t,e,i=s,r=1/0;i;)i._call?(r>i._time&&(r=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:s=e);n=t,w(r)}(),c=0}}function v(){var t=d.now(),e=t-l;e>h&&(u-=e,l=t)}function w(t){r||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(y,t-d.now()-u)),a&&(a=clearInterval(a))):(a||(l=d.now(),a=setInterval(v,h)),r=1,p(y)))}_.prototype=m.prototype={constructor:_,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?g():+i)+(null==e?0:+e),this._next||n===this||(n?n._next=this:s=this,n=this),this._call=t,this._time=i,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},7896:function(t,e,i){"use strict";function s(){}function n(t){return null==t?s:function(){return this.querySelector(t)}}function r(){return[]}function o(t){return null==t?r:function(){return this.querySelectorAll(t)}}function a(t){return function(){return this.matches(t)}}function h(t){return function(e){return e.matches(t)}}var l=Array.prototype.find;function c(){return this.firstElementChild}var u=Array.prototype.filter;function d(){return Array.from(this.children)}function p(t){return new Array(t.length)}function g(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function f(t,e,i,s,n,r){for(var o,a=0,h=e.length,l=r.length;ae?1:t>=e?0:NaN}g.prototype={constructor:g,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var w="http://www.w3.org/1999/xhtml",b={svg:"http://www.w3.org/2000/svg",xhtml:w,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function x(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),b.hasOwnProperty(e)?{space:b[e],local:t}:t}function D(t){return function(){this.removeAttribute(t)}}function k(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T(t,e){return function(){this.setAttribute(t,e)}}function M(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function O(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function P(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function S(t){return function(){this.style.removeProperty(t)}}function N(t,e,i){return function(){this.style.setProperty(t,e,i)}}function C(t,e,i){return function(){var s=e.apply(this,arguments);null==s?this.style.removeProperty(t):this.style.setProperty(t,s,i)}}function L(t,e){return t.style.getPropertyValue(e)||P(t).getComputedStyle(t,null).getPropertyValue(e)}function A(t){return function(){delete this[t]}}function R(t,e){return function(){this[t]=e}}function U(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function B(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new I(t)}function I(t){this._node=t,this._names=B(t.getAttribute("class")||"")}function H(t,e){for(var i=F(t),s=-1,n=e.length;++s=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ut=[null];function dt(t,e){this._groups=t,this._parents=e}function pt(){return new dt([[document.documentElement]],ut)}dt.prototype=pt.prototype={constructor:dt,select:function(t){"function"!=typeof t&&(t=n(t));for(var e=this._groups,i=e.length,s=new Array(i),r=0;r=T&&(T=k+1);!(D=b[T])&&++T=0;)(s=n[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=v);for(var i=this._groups,s=i.length,n=new Array(s),r=0;r1?this.each((null==e?S:"function"==typeof e?C:N)(t,e,null==i?"":i)):L(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?A:"function"==typeof e?U:R)(t,e)):this.node()[t]},classed:function(t,e){var i=B(t+"");if(arguments.length<2){for(var s=F(this.node()),n=-1,r=i.length;++n=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}))}(t+""),o=r.length;if(!(arguments.length<2)){for(a=e?at:ot,s=0;s{s.stop(),t(i+e)}),e,i),s}var yt=(0,ft.Z)("start","end","cancel","interrupt"),vt=[],wt=0,bt=3;function xt(t,e,i,s,n,r){var o=t.__transition;if(o){if(i in o)return}else t.__transition={};!function(t,e,i){var s,n=t.__transition;function r(h){var l,c,u,d;if(1!==i.state)return a();for(l in n)if((d=n[l]).name===i.name){if(d.state===bt)return mt(r);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[l]):+lwt)throw new Error("too late; already scheduled");return i}function kt(t,e){var i=Tt(t,e);if(i.state>bt)throw new Error("too late; already running");return i}function Tt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Mt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Et,Ot=180/Math.PI,Pt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function St(t,e,i,s,n,r){var o,a,h;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(h=t*i+e*s)&&(i-=t*h,s-=e*h),(a=Math.sqrt(i*i+s*s))&&(i/=a,s/=a,h/=a),t*s180?e+=360:e-t>180&&(t+=360),r.push({i:i.push(n(i)+"rotate(",null,s)-2,x:Mt(t,e)})):e&&i.push(n(i)+"rotate("+e+s)}(r.rotate,o.rotate,a,h),function(t,e,i,r){t!==e?r.push({i:i.push(n(i)+"skewX(",null,s)-2,x:Mt(t,e)}):e&&i.push(n(i)+"skewX("+e+s)}(r.skewX,o.skewX,a,h),function(t,e,i,s,r,o){if(t!==i||e!==s){var a=r.push(n(r)+"scale(",null,",",null,")");o.push({i:a-4,x:Mt(t,i)},{i:a-2,x:Mt(e,s)})}else 1===i&&1===s||r.push(n(r)+"scale("+i+","+s+")")}(r.scaleX,r.scaleY,o.scaleX,o.scaleY,a,h),r=o=null,function(t){for(var e,i=-1,s=h.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?se(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?se(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jt.exec(t))?new re(e[1],e[2],e[3],1):(e=Xt.exec(t))?new re(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$t.exec(t))?se(e[1],e[2],e[3],e[4]):(e=Zt.exec(t))?se(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Kt.exec(t))?ue(e[1],e[2]/100,e[3]/100,1):(e=qt.exec(t))?ue(e[1],e[2]/100,e[3]/100,e[4]):Qt.hasOwnProperty(t)?ie(Qt[t]):"transparent"===t?new re(NaN,NaN,NaN,0):null}function ie(t){return new re(t>>16&255,t>>8&255,255&t,1)}function se(t,e,i,s){return s<=0&&(t=e=i=NaN),new re(t,e,i,s)}function ne(t,e,i,s){return 1===arguments.length?((n=t)instanceof It||(n=ee(n)),n?new re((n=n.rgb()).r,n.g,n.b,n.opacity):new re):new re(t,e,i,null==s?1:s);var n}function re(t,e,i,s){this.r=+t,this.g=+e,this.b=+i,this.opacity=+s}function oe(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}`}function ae(){const t=he(this.opacity);return`${1===t?"rgb(":"rgba("}${le(this.r)}, ${le(this.g)}, ${le(this.b)}${1===t?")":`, ${t})`}`}function he(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function le(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ce(t){return((t=le(t))<16?"0":"")+t.toString(16)}function ue(t,e,i,s){return s<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new pe(t,e,i,s)}function de(t){if(t instanceof pe)return new pe(t.h,t.s,t.l,t.opacity);if(t instanceof It||(t=ee(t)),!t)return new pe;if(t instanceof pe)return t;var e=(t=t.rgb()).r/255,i=t.g/255,s=t.b/255,n=Math.min(e,i,s),r=Math.max(e,i,s),o=NaN,a=r-n,h=(r+n)/2;return a?(o=e===r?(i-s)/a+6*(i0&&h<1?0:o,new pe(o,a,h,t.opacity)}function pe(t,e,i,s){this.h=+t,this.s=+e,this.l=+i,this.opacity=+s}function ge(t){return(t=(t||0)%360)<0?t+360:t}function fe(t){return Math.max(0,Math.min(1,t||0))}function _e(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function me(t,e,i,s,n){var r=t*t,o=r*t;return((1-3*t+3*r-o)*e+(4-6*r+3*o)*i+(1+3*t+3*r-3*o)*s+o*n)/6}Bt(It,ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return de(this).formatHsl()},formatRgb:te,toString:te}),Bt(re,ne,Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new re(le(this.r),le(this.g),le(this.b),he(this.opacity))},displayable(){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:oe,formatHex:oe,formatHex8:function(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}${ce(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ae,toString:ae})),Bt(pe,(function(t,e,i,s){return 1===arguments.length?de(t):new pe(t,e,i,null==s?1:s)}),Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new pe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new pe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*e,n=2*i-s;return new re(_e(t>=240?t-240:t+120,n,s),_e(t,n,s),_e(t<120?t+240:t-120,n,s),this.opacity)},clamp(){return new pe(ge(this.h),fe(this.s),fe(this.l),he(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=he(this.opacity);return`${1===t?"hsl(":"hsla("}${ge(this.h)}, ${100*fe(this.s)}%, ${100*fe(this.l)}%${1===t?")":`, ${t})`}`}}));var ye=t=>()=>t;function ve(t,e){var i=e-t;return i?function(t,e){return function(i){return t+i*e}}(t,i):ye(isNaN(t)?e:t)}var we=function t(e){var i=function(t){return 1==(t=+t)?ve:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(s){return Math.pow(t+s*e,i)}}(e,i,t):ye(isNaN(e)?i:e)}}(e);function s(t,e){var s=i((t=ne(t)).r,(e=ne(e)).r),n=i(t.g,e.g),r=i(t.b,e.b),o=ve(t.opacity,e.opacity);return function(e){return t.r=s(e),t.g=n(e),t.b=r(e),t.opacity=o(e),t+""}}return s.gamma=t,s}(1);function be(t){return function(e){var i,s,n=e.length,r=new Array(n),o=new Array(n),a=new Array(n);for(i=0;i=1?(i=1,e-1):Math.floor(i*e),n=t[s],r=t[s+1],o=s>0?t[s-1]:2*n-r,a=sr&&(n=e.slice(r,n),a[o]?a[o]+=n:a[++o]=n),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,h.push({i:o,x:Mt(i,s)})),r=De.lastIndex;return r=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Dt:kt;return function(){var o=r(this,t),a=o.on;a!==s&&(n=(s=a).copy()).on(e,i),o.on=n}}(i,t,e))},attr:function(t,e){var i=x(t),s="transform"===i?Lt:Te;return this.attrTween(t,"function"==typeof e?(i.local?Ne:Se)(i,s,Ut(this,"attr."+t,e)):null==e?(i.local?Ee:Me)(i):(i.local?Pe:Oe)(i,s,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;var s=x(t);return this.tween(i,(s.local?Ce:Le)(s,e))},style:function(t,e,i){var s="transform"==(t+="")?Ct:Te;return null==e?this.styleTween(t,function(t,e){var i,s,n;return function(){var r=L(this,t),o=(this.style.removeProperty(t),L(this,t));return r===o?null:r===i&&o===s?n:n=e(i=r,s=o)}}(t,s)).on("end.style."+t,Ie(t)):"function"==typeof e?this.styleTween(t,function(t,e,i){var s,n,r;return function(){var o=L(this,t),a=i(this),h=a+"";return null==a&&(this.style.removeProperty(t),h=a=L(this,t)),o===h?null:o===s&&h===n?r:(n=h,r=e(s=o,a))}}(t,s,Ut(this,"style."+t,e))).each(function(t,e){var i,s,n,r,o="style."+e,a="end."+o;return function(){var h=kt(this,t),l=h.on,c=null==h.value[o]?r||(r=Ie(e)):void 0;l===i&&n===c||(s=(i=l).copy()).on(a,n=c),h.on=s}}(this._id,t)):this.styleTween(t,function(t,e,i){var s,n,r=i+"";return function(){var o=L(this,t);return o===r?null:o===s?n:n=e(s=o,i)}}(t,s,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var s="style."+(t+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(null==e)return this.tween(s,null);if("function"!=typeof e)throw new Error;return this.tween(s,function(t,e,i){var s,n;function r(){var r=e.apply(this,arguments);return r!==n&&(s=(n=r)&&function(t,e,i){return function(s){this.style.setProperty(t,e.call(this,s),i)}}(t,r,i)),s}return r._value=e,r}(t,e,null==i?"":i))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ut(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,i;function s(){var s=t.apply(this,arguments);return s!==i&&(e=(i=s)&&function(t){return function(e){this.textContent=t.call(this,e)}}(s)),e}return s._value=t,s}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var s,n=Tt(this.node(),i).tween,r=0,o=n.length;r2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[n]):o=!1;o&&delete t.__transition}}(this,t)}))},gt.prototype.transition=function(t){var e,i;t instanceof ze?(e=t._id,t=t._name):(e=Ge(),(i=We).time=(0,_t.zO)(),t=null==t?null:t+"");for(var s=this._groups,n=s.length,r=0;r=n)&&Object.keys(a.O).every((function(t){return a.O[t](i[h])}))?i.splice(h--,1):(o=!1,n0&&t[c-1][2]>n;c--)t[c]=t[c-1];t[c]=[i,s,n]},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},i=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(t,s){if(1&s&&(t=this(t)),8&s)return t;if("object"==typeof t&&t){if(4&s&&t.__esModule)return t;if(16&s&&"function"==typeof t.then)return t}var n=Object.create(null);a.r(n);var r={};e=e||[null,i({}),i([]),i(i)];for(var o=2&s&&t;"object"==typeof o&&!~e.indexOf(o);o=i(o))Object.getOwnPropertyNames(o).forEach((function(e){r[e]=function(){return t[e]}}));return r.default=function(){return t},a.d(n,r),n},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,i){return a.f[i](t,e),e}),[]))},a.u=function(t){return"deps/"+{643:"pdfmake",4297:"xlsx",4384:"markerjs2"}[t]+".js"},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s={},n="@amcharts/amcharts5:",a.l=function(t,e,i,r){if(s[t])s[t].push(e);else{var o,h;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c{this.zoomOut()})),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",e);const a=this.plotContainer;a.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),a.children.push(this.topGridContainer),a.children.push(this.bulletsContainer),a.set("interactive",!0),a.set("interactiveChildren",!1),a.set("background",o.A.new(t,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(a.events.on("pointerdown",(t=>{this._handlePlotDown(t)}))),this._disposers.push(a.events.on("globalpointerup",(t=>{this._handlePlotUp(t)}))),this._disposers.push(a.events.on("globalpointermove",(t=>{this._handlePlotMove(t)}))),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(t){t._unstack(),t._posXDp&&t._posXDp.dispose(),t._posYDp&&t._posYDp.dispose(),t.set("baseAxis",void 0);const e=t.get("xAxis");e&&(g.remove(e.series,t),e.markDirtyExtremes());const i=t.get("yAxis");i&&(g.remove(i.series,t),i.markDirtyExtremes());const s=this.get("cursor");if(s){const e=s.get("snapToSeries");e&&g.remove(e,t)}super._removeSeries(t)}_applyThemes(t=!1){const e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}handleWheel(t){const e=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=t.originalEvent;let o=!1;if(!p.isLocalEvent(a,this))return;o=!0;const n=s.toLocal(t.point),r=this.get("wheelStep",.2),h=a.deltaY/100,l=a.deltaX/100,d=this.get("wheelZoomPositionX"),g=this.get("wheelZoomPositionY");"zoomX"!==e&&"zoomXY"!==e||0==l||this.xAxes.each((t=>{if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let h=t.get("maxDeviation",0),g=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let l=t.get("maxDeviation",0),g=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let h=t.get("maxDeviation",0),d=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let l=t.get("maxDeviation",0),d=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panX"!==i&&"panXY"!==i||0==h||this.xAxes.each((t=>{if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e+s,n=i+s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==e&&"panXY"!==e||0==l||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==i&&"panXY"!==i||0==h||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e-s,n=i-s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),o&&a.preventDefault()}_handleSetWheel(){const t=this.get("wheelX"),e=this.get("wheelY"),i=this.plotContainer;"none"!==t||"none"!==e?(this._wheelDp=i.events.on("wheel",(i=>{const s=i.originalEvent;("none"!==t&&0!=Math.abs(s.deltaX)||"none"!==e&&0!=Math.abs(s.deltaY))&&this.handleWheel(i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(t){let e=1;return t.get("renderer").get("inversed")&&(e=-1),e}_fixWheel(t,e){const i=e-t;return t<0&&(e=(t=0)+i),e>1&&(t=(e=1)-i),[t,e]}_handlePlotDown(t){const e=t.originalEvent;if(2==e.button)return;const i=this.plotContainer;let s=i.toLocal(t.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&e.pointerId&&m.keys(i._downPoints).length>0){const t=this.xAxes.getIndex(0),e=this.yAxes.getIndex(0);t&&(this._downStartX=t.get("start",0),this._downEndX=t.get("end",1)),e&&(this._downStartY=e.get("start",0),this._downEndY=e.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:e.clientX,y:e.clientY};const i=this.get("panX"),s=this.get("panY");i&&this.xAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")})),s&&this.yAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")}));const a="panstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:t.originalEvent})}}_handleWheelAnimation(t){t?t.events.on("stopped",(()=>{this._dispatchWheelAnimation()})):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const t="wheelended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}_handlePlotUp(t){const e=this._downPoint;if(e&&(this.get("panX")||this.get("panY"))){if(t.originalEvent.clientX==e.x&&t.originalEvent.clientY==e.y){const e="pancancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:t.originalEvent})}this._downPoint=void 0,this.xAxes.each((t=>{t._isPanning=!1})),this.yAxes.each((t=>{t._isPanning=!1}))}_handlePlotMove(t){const e=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const i=t.originalEvent.pointerId;if(i&&(this._movePoints[i]=t.point,m.keys(e._downPoints).length>1))return void this._handlePinch()}let i=this._downPoint;if(i){i=e.toLocal(this._root.documentPointToRoot(i));let s=e.toLocal(t.point);const a=this.get("panX"),o=this.get("panY");if(a){let t=this.get("scrollbarX");t&&t.events.disableType("rangechanged"),this.xAxes.each((t=>{if(t.get("panX")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.x-s.x)/e.width();t.get("renderer").get("inversed")&&(n*=-1);let r=a+n,h=o+n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}if(o){let t=this.get("scrollbarY");t&&t.events.disableType("rangechanged"),this.yAxes.each((t=>{if(t.get("panY")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.y-s.y)/e.height();t.get("renderer").get("inversed")&&(n*=-1);let r=a-n,h=o-n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}}}_handlePinch(){const t=this.plotContainer;let e=0,i=[],s=[];if(m.each(t._downPoints,((t,a)=>{i[e]=a;let o=this._movePoints[t];o&&(s[e]=o),e++})),i.length>1&&s.length>1){const e=t.width(),a=t.height();let o=i[0],n=i[1],r=s[0],h=s[1];if(o&&n&&r&&h){if(r=t.toLocal(r),h=t.toLocal(h),o=t.toLocal(o),n=t.toLocal(n),this.get("pinchZoomX")){const t=this._downStartX,i=this._downEndX;if(null!=t&&null!=i){o.x>n.x&&([o,n]=[n,o],[r,h]=[h,r]);let s=t+o.x/e*(i-t),a=t+n.x/e*(i-t),l=t+r.x/e*(i-t),d=t+h.x/e*(i-t),g=Math.max(.001,a-s)/Math.max(.001,d-l),c=t*g+s-l*g,u=i*g+a-d*g;this.xAxes.each((t=>{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}if(this.get("pinchZoomY")){const t=this._downStartY,e=this._downEndY;if(null!=t&&null!=e){o.y{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}}}}_handleCursorPosition(){const t=this.get("cursor");if(t){const e=t.getPrivate("point");let i=t.get("snapToSeries");if(t._downPoint&&(i=void 0),i&&e){const s=t.get("snapToSeriesBy"),a=[];g.each(i,(t=>{if(!t.isHidden()&&!t.isHiding())if("x!"!=s&&"y!"!=s){const e=t.startIndex(),i=t.endIndex();for(let s=e;s{const i=t.get("point");if(i){let a=0;a="x"==s||"x!"==s?Math.abs(e.x-i.x):"y"==s||"y!"==s?Math.abs(e.y-i.y):Math.hypot(e.x-i.x,e.y-i.y),a{const e=t.get("tooltip");e&&e._setDataItem(void 0)})),o){let e=o.component;e.showDataItemTooltip(o),e.setRaw("tooltipDataItem",o);const i=o.get("point");i&&t.handleMove(e.toGlobal({x:i.x-e.x(),y:i.y-e.y()}),!0)}}}}_updateCursor(){let t=this.get("cursor");t&&t.updateCursor()}_addCursor(t){this.plotContainer.children.push(t)}_prepareChildren(){if(super._prepareChildren(),this.series.each((t=>{this._colorize(t)})),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const t=this._prevSettings.cursor,e=this.get("cursor");e!==t&&(this._disposeProperty("cursor"),t&&t.dispose(),e&&(e._setChart(this),this._addCursor(e),this._pushPropertyDisposer("cursor",e.events.on("selectended",(()=>{this._handleCursorSelectEnd()})))),this._prevSettings.cursor=e)}if(this.isDirty("scrollbarX")){const t=this._prevSettings.scrollbarX,e=this.get("scrollbarX");e!==t&&(this._disposeProperty("scrollbarX"),t&&t.dispose(),e&&(e.parent||this.topAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarX",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.xAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarX",e.events.on("released",(()=>{this.xAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.xAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarX=e)}if(this.isDirty("scrollbarY")){const t=this._prevSettings.scrollbarY,e=this.get("scrollbarY");e!==t&&(this._disposeProperty("scrollbarY"),t&&t.dispose(),e&&(e.parent||this.rightAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarY",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.yAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarY",e.events.on("released",(()=>{this.yAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.yAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarY=e)}this._handleZoomOut()}_processSeries(t){super._processSeries(t);const e=t.get("xAxis"),i=t.get("yAxis");g.move(e.series,t),g.move(i.series,t),t._posXDp=t.addDisposer(e.events.on("positionchanged",(()=>{t._fixPosition()}))),t._posXDp=t.addDisposer(i.events.on("positionchanged",(()=>{t._fixPosition()}))),t.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?t.set("baseAxis",i):t.set("baseAxis",e)),t.get("stacked")&&(t._markDirtyKey("stacked"),g.each(t.dataItems,(t=>{t.set("stackToItemY",void 0),t.set("stackToItemX",void 0)}))),t._markDirtyAxes(),i.markDirtyExtremes(),e.markDirtyExtremes(),e._seriesAdded=!0,i._seriesAdded=!0,this._colorize(t)}_colorize(t){const e=this.get("colors");if(e&&null==t.get("fill")){const i=e.next();t._setSoft("stroke",i),t._setSoft("fill",i)}const i=this.get("patterns");if(i&&null==t.get("fillPattern")){const e=i.next();t._setSoft("fillPattern",e)}}_handleCursorSelectEnd(){const t=this.get("cursor"),e=t.get("behavior"),i=t.getPrivate("downPositionX",0),s=t.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,t.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,t.getPrivate("positionY",.5)));this.xAxes.each((t=>{if("zoomX"===e||"zoomXY"===e){let e=t.toAxisPosition(i),s=t.toAxisPosition(a);t.zoom(e,s)}t.setPrivate("updateScrollbar",!0)})),this.yAxes.each((t=>{if("zoomY"===e||"zoomXY"===e){let e=t.toAxisPosition(s),i=t.toAxisPosition(o);t.zoom(e,i)}t.setPrivate("updateScrollbar",!0)}))}_handleScrollbar(t,e,i,s){t.each((t=>{let a=t.fixPosition(e),o=t.fixPosition(i),n=t.zoom(a,o,void 0,s);const r="updateScrollbar";t.setPrivateRaw(r,!1),n?n.events.on("stopped",(()=>{t.setPrivateRaw(r,!0)})):t.setPrivateRaw(r,!0)}))}_processAxis(t,e){return t.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxis(t)}));else if("push"===t.type)e.children.push(t.newValue),t.newValue.processChart(this);else if("setIndex"===t.type)e.children.setIndex(t.index,t.newValue),t.newValue.processChart(this);else if("insertIndex"===t.type)e.children.insertIndex(t.index,t.newValue),t.newValue.processChart(this);else if("removeIndex"===t.type)this._removeAxis(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");e.children.moveValue(t.value,t.newIndex),t.value.processChart(this)}}))}_removeAxis(t){if(!t.isDisposed()){const e=t.parent;e&&e.children.removeValue(t);const i=t.gridContainer,s=i.parent;s&&s.children.removeValue(i);const a=t.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){const t=this.leftAxesContainer.width(),e=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",t),i.set("paddingRight",e);const s=this.topAxesContainer;s.set("paddingLeft",t),s.set("paddingRight",e)}processAxis(t){this.get("cursor")&&(this.addDisposer(t.on("start",(()=>{this._updateCursor()}))),this.addDisposer(t.on("end",(()=>{this._updateCursor()}))))}_handleAxisSelection(t,e){let i=t.fixPosition(t.get("start",0)),s=t.fixPosition(t.get("end",1));if(i>s&&([i,s]=[s,i]),-1!=this.xAxes.indexOf(t)){if(e||t.getPrivate("updateScrollbar")){let t=this.get("scrollbarX");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}}else if(-1!=this.yAxes.indexOf(t)&&(e||t.getPrivate("updateScrollbar"))){let t=this.get("scrollbarY");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let t=this.zoomOutButton;if(t&&t.parent){let e=!1;this.xAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),e?t.isHidden()&&t.show():t.hide()}}inPlot(t){const e=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=e.toGlobal(t);if(t.x>=-.5&&t.y>=-.5&&t.x<=e.width()+.5&&t.y<=e.height()+.5)return!0;if(i)for(let t=i.length-1;t>=0;t--){const e=i[t];if(e!=this){const t=e.plotContainer,i=this._root.rootPointToDocument(s),a=e._root.documentPointToRoot(i),o=t.toLocal(a);if(o.x>=-.1&&o.y>=-.1&&o.x<=t.width()+.1&&o.y<=t.height()+.1)return!0}}return!1}arrangeTooltips(){const t=this.plotContainer,e=t.width(),i=t.height();let s=this.height();const a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=t._display.toGlobal({x:0,y:0}),n=t._display.toGlobal({x:e,y:i});const r=[];let l,d,m=0,p=1/0,_=this._movePoint,x=this.get("maxTooltipDistance"),v=this.get("maxTooltipDistanceBy","xy");c.isNumber(x)&&this.series.each((t=>{if(!t.isHidden()){const e=t.get("tooltip");if(e){let i=e.get("pointTo");if(i){let e=Math.hypot(_.x-i.x,_.y-i.y);"x"==v?e=Math.abs(_.x-i.x):"y"==v&&(e=Math.abs(_.y-i.y)),e{const e=t.get("tooltip");if(e&&!e.get("forceHidden")){let i=!1,s=e.get("pointTo");if(s){if(x>=0){let s=e.get("pointTo");if(s&&d&&t!=l){let t=Math.hypot(d.x-s.x,d.y-s.y);"x"==v?t=Math.abs(d.x-s.x):"y"==v&&(t=Math.abs(d.y-s.y)),t>x&&(i=!0)}}else-1==x&&t!=l&&(i=!0);this.inPlot(this._tooltipToLocal(s))&&e.dataItem?i||(m+=s.y):i=!0,i||t.isHidden()||t.isHiding()?e.hide(0):(e.show(),r.push(e),y.push(t))}}})),this.setPrivate("tooltipSeries",y),this.get("arrangeTooltips")){let t=0,e=0;const a=this._root.tooltipContainer,l=r.length;if(m/l>i/2+o.y){r.sort(((t,e)=>u.HO(e.get("pointTo").y,t.get("pointTo").y)));let i=n.y;if(g.each(r,(s=>{let r=s.height();e++,t+=r;let l=s.get("centerY");l instanceof h.gG&&(r*=l.value),r+=s.get("marginBottom",0),s.set("bounds",{left:o.x,top:o.y,right:n.x,bottom:i}),s.setPrivate("customData",{left:o.x,top:o.y,right:n.x,bottom:i}),i=Math.min(i-r,s._fy-r),s.parent==a&&a.children.moveValue(s,0)})),i<0){r.reverse();let t=i;g.each(r,(s=>{e++;let a=s.get("bounds");if(a){let e=a.top-i,o=a.bottom-i;eu.HO(t.get("pointTo").y,e.get("pointTo").y)));let i=0;if(g.each(r,(r=>{e++;let l=r.height();t+=l;let d=r.get("centerY");d instanceof h.gG&&(l*=d.value),l+=r.get("marginBottom",0),r.set("bounds",{left:o.x,top:i,right:n.x,bottom:Math.max(o.y+s,i+l)}),r.parent==a&&a.children.moveValue(r,0),i=Math.max(i+l,r._fy+l)})),i>s){r.reverse();let t=s;g.each(r,(a=>{e++;let o=a.get("bounds");if(o){let e=o.top-(s-i),n=o.bottom-(s-i);n>t&&(n=t,e=n-a.height()),a.set("bounds",{left:o.left,top:e,right:o.right,bottom:n}),t=n-a.height()-a.get("marginBottom",0)}}))}}0==t&&e>0&&this._disposers.push(this.root.events.once("frameended",(()=>{this.arrangeTooltips()})))}}_tooltipToLocal(t){return this.plotContainer.toLocal(t)}zoomOut(){this.xAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))}))}_dispose(){super._dispose();const t=this.get("cursor");t&&t.dispose()}}x.className="XYChart",x.classNames=n.j.classNames.concat([x.className])},55:function(t,e,i){i.d(e,{l:function(){return u}});var s=i(3409),a=i(6245),o=i(1112),n=i(2754),r=i(3783),h=i(1926),l=i(5040),d=i(751),g=i(256),c=i(5071);class u extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.interfaceColors,e=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:n.U.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:o.Il.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:n.U.new(this._root,{saturation:0})});{const e=i("Graphics",["scrollbar","overlay"]);e.setAll({fillOpacity:.5}),(0,r.v)(e,"fill",t,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:a.AQ,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:a.AQ}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:a.AQ}),i("AxisLabel",["y"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const s=i("Grid",["cursor","x"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use left and right arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const s=i("Grid",["cursor","y"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use up and down arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const e=i("Graphics",["cursor","selection"]);e.setAll({fillOpacity:.15}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:a.CI,centerY:a.CI,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const e=i("AxisRenderer");e.setAll({crisp:!0,strokeOpacity:0}),(0,r.v)(e,"stroke",t,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:a.AQ}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:a.AQ});{const e=i("Rectangle",["axis","thumb","zoomgrip"]);e.setAll({fillOpacity:0}),(0,r.v)(e,"fill",t,"alternativeBackground"),e.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{const e=i("Grid");e.setAll({location:0,strokeOpacity:.15,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}{const e=i("Grid",["minor"]);e.setAll({location:0,strokeOpacity:.07,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{const e=i("Graphics",["axis","fill"]);e.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{const e=i("AxisTick");e.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),(0,r.v)(e,"stroke",t,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(t,e)=>{const i=t.get("axisFill");i&&(l.isNumber(e)&&e%2!=0?i.setPrivate("visible",!1):i.setPrivate("visible",!0))}});const s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],u={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_hour"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month"),year:e.translate("_date_year")},m={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_day"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month")+" "+e.translate("_date_year"),year:e.translate("_date_year")},p={millisecond:e.translate("_date_millisecond_full"),second:e.translate("_date_second_full"),minute:e.translate("_date_minute_full"),hour:e.translate("_date_hour_full"),day:e.translate("_date_day_full"),week:e.translate("_date_week_full"),month:e.translate("_date_month_full"),year:e.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m),tooltipDateFormats:p,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=t.get("endValue"),o=i.intervalDuration(),n=i.getPrivate("baseInterval"),r=i.getPrivate("gridInterval",n);let l=i.getPrivate("min",0);if(l=h.round(new Date(l),r.timeUnit,r.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),null!=s&&null!=a){const t=Math.round(Math.round((s-l)/o))/2;t==Math.round(t)?e.setPrivate("visible",!0):e.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.get("index");let s=!1;l.isNumber(i)&&i%2!=0||(s=!0),e.setPrivate("visible",s)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=i.getPrivate("step");l.isNumber(s)&&l.isNumber(a)&&(d.round(s/a/2,5)==Math.round(s/a/2)?e.setPrivate("visible",!1):e.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(70),height:(0,a.aQ)(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,e/2),t.lineTo(s,e/2)}}});{const e=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,e),t.lineTo(0,e),t.lineTo(0,0)}}});{const e=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(50),height:(0,a.aQ)(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:(0,a.aQ)(80),height:(0,a.aQ)(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const e=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const e=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const e=i("Graphics",["rangegrip","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(2,.5),t.lineTo(2,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),(0,r.v)(e,"stroke",t,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:a.CI}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:a.CI}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:a.AQ}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:a.AQ})}}},3355:function(t,e,i){i.d(e,{L:function(){return c}});var s=i(8777),a=i(6245),o=i(1479),n=i(8943),r=i(5040),h=i(7652),l=i(751),d=i(5071),g=i(256);class c extends s.W{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(n.r.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(n.r.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(o.T.new(this._root,{themeTags:["selection","cursor"],layer:30})),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:a.AQ,height:a.AQ,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout((()=>{this.setPrivate("visible",!0)}),500)),this._disposers.push(this.lineX.events.on("positionchanged",(()=>{this._handleXLine()}))),this._disposers.push(this.lineY.events.on("positionchanged",(()=>{this._handleYLine()}))),this._disposers.push(this.lineX.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineX.events.on("blur",(()=>this._handleLineBlur()))),this._disposers.push(this.lineY.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineY.events.on("blur",(()=>this._handleLineBlur()))),h.supports("keyboardevents")&&this._disposers.push(h.addEventListener(document,"keydown",(t=>{this._handleLineMove(h.getEventKey(t),t.ctrlKey)})))}_setUpTouch(){const t=this.chart;t&&(t.plotContainer._display.cancelTouch="none"!=this.get("behavior"))}_handleXLine(){let t=this.lineX.x(),e=!0;(t<0||t>this.width())&&(e=!1),this.lineX.setPrivate("visible",e)}_handleYLine(){let t=this.lineY.y(),e=!0;(t<0||t>this.height())&&(e=!1),this.lineY.setPrivate("visible",e)}_handleLineMove(t,e){let i="";const s=this.chart;let a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(e&&(o=5),a){let e,s=a.get("renderer").get("inversed",!1);"ArrowRight"==t||"ArrowDown"==t?e=1:"ArrowLeft"==t||"ArrowUp"==t?e=-1:"Tab"==t&&(e=0),null!=e&&(s&&(e*=-1),this.set(i,a.nextPosition(e*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const t=this.get("xAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipX=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateXLine(e)}))))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const t=this.get("yAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipY=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateYLine(e)}))))}}}_handleSyncWith(){const t=this.chart;if(t){const e=this.get("syncWith"),i=[];e&&d.each(e,(t=>{const e=t.chart;e&&i.push(e)})),t._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const t=this.get("positionX"),e=this.get("positionY");null==t&&null==e?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).x,3);this._toX!=e&&(this.lineX.animate({key:"x",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toX=e)}_updateYLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).y,3);this._toY!=e&&(this.lineY.animate({key:"y",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toY=e)}_drawLines(){this.lineX.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,this.height())})),this.lineY.set("draw",(t=>{t.moveTo(0,0),t.lineTo(this.width(),0)}))}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(t){this.chart=t,this._handleSyncWith();const e=t.plotContainer;this.events.on("boundschanged",(()=>{this._disposers.push(this.setTimeout((()=>{this.updateCursor()}),50))})),h.supports("touchevents")&&(this._disposers.push(e.events.on("click",(t=>{h.isTouchEvent(t.originalEvent)&&this._handleMove(t)}))),this._setUpTouch()),this._disposers.push(e.events.on("pointerdown",(t=>{this._handleCursorDown(t)}))),this._disposers.push(e.events.on("globalpointerup",(t=>{this._handleCursorUp(t),t.native||this.isHidden()||this._handleMove(t)}))),this._disposers.push(e.events.on("globalpointermove",(t=>{(this.get("syncWith")||0!=g.keys(e._downPoints).length||t.native||!this.isHidden())&&(this._handleMove(t),Math.hypot(this._lastPoint2.x-t.point.x,this._lastPoint2.y-t.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=t.point))})));const i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(t){const e=this.chart;return!!e&&e.inPlot(t)}_handleCursorDown(t){if(2==t.originalEvent.button)return;const e=t.point;let i=this._display.toLocal(e);const s=this.chart;if(this.selection.set("draw",(()=>{})),s&&this._inPlot(i)){if(this._downPoint=i,"none"!=this.get("behavior")){this.selection.show();const e="selectstarted";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}let e=this._getPosition(i).x,s=this._getPosition(i).y;this.setPrivate("downPositionX",e),this.setPrivate("downPositionY",s)}}_handleCursorUp(t){if(this._downPoint){const e=this.get("behavior","none");if("none"!=e){"z"===e.charAt(0)&&this.selection.hide();const i=t.point;let s=this._display.toLocal(i);const a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let i=!1;if("zoomX"!==e&&"zoomXY"!==e&&"selectX"!==e&&"selectXY"!==e||Math.abs(s.x-a.x)>o&&(i=!0),"zoomY"!==e&&"zoomXY"!==e&&"selectY"!==e&&"selectXY"!==e||Math.abs(s.y-a.y)>o&&(i=!0),i){const e="selectended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}else{const e="selectcancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}}}}this._downPoint=void 0}_handleMove(t){if(this.getPrivate("visible")){const e=this.chart;if(e&&g.keys(e.plotContainer._downPoints).length>1)return void this.set("forceHidden",!0);this.set("forceHidden",!1);const i=t.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,t.originalEvent)}}_getPosition(t){return{x:t.x/this.width(),y:t.y/this.height()}}handleMove(t,e,i){t||(t=this._movePoint);const s=this.get("alwaysShow");if(!t)return void this.hide(0);this._movePoint=t;let a=this._display.toLocal(t),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=t,this.isHidden()&&(this.show(),"z"==this.get("behavior","").charAt(0)&&this.selection.set("draw",(()=>{})));let n=a.x,h=a.y,l=this._getPosition(a);this.setPrivate("point",a);let d=this.get("snapToSeries");this._downPoint&&(d=void 0);let g=this.get("positionX"),c=l.x;r.isNumber(g)&&(c=g);let u=this.get("positionY"),m=l.y;r.isNumber(u)&&(m=u),this.setPrivate("positionX",c),this.setPrivate("positionY",m);const p=this._getPoint(c,m);if(n=p.x,h=p.y,o.xAxes.each((t=>{t._handleCursorPosition(c,d),s&&t.handleCursorShow()})),o.yAxes.each((t=>{t._handleCursorPosition(m,d),s&&t.handleCursorShow()})),!e){o._handleCursorPosition();const e="cursormoved";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,point:t,originalEvent:i})}this._updateLines(n,h),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);const t="cursorhidden";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this._downPoint&&"none"!=this.get("behavior")&&this._updateSelection(a)}_getPoint(t,e){return{x:this.width()*t,y:this.height()*e}}_updateLines(t,e){this._tooltipX||this.lineX.set("x",t),this._tooltipY||this.lineY.set("y",e),this._drawLines()}_updateSelection(t){const e=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();t.x<0&&(t.x=0),t.x>s&&(t.x=s),t.y<0&&(t.y=0),t.y>a&&(t.y=a),e.set("draw",(e=>{const o=this._downPoint;o&&("zoomXY"===i||"selectXY"===i?(e.moveTo(o.x,o.y),e.lineTo(o.x,t.y),e.lineTo(t.x,t.y),e.lineTo(t.x,o.y),e.lineTo(o.x,o.y)):"zoomX"===i||"selectX"===i?(e.moveTo(o.x,0),e.lineTo(o.x,a),e.lineTo(t.x,a),e.lineTo(t.x,0),e.lineTo(o.x,0)):"zoomY"!==i&&"selectY"!==i||(e.moveTo(0,o.y),e.lineTo(s,o.y),e.lineTo(s,t.y),e.lineTo(0,t.y),e.lineTo(0,o.y)))}))}_onHide(){if(this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorHide()})),t.yAxes.each((t=>{t.handleCursorHide()})),t.series.each((t=>{t.handleCursorHide()})))}super._onHide()}_onShow(){if(!this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorShow()})),t.yAxes.each((t=>{t.handleCursorShow()})))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}c.className="XYCursor",c.classNames=s.W.classNames.concat([c.className])},6515:function(t,e,i){i.d(e,{R:function(){return g}});var s=i(9361),a=i(8777),o=i(6245),n=i(7144),r=i(7142),h=i(5071),l=i(5040),d=i(7652);class g extends s.w{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(a.W.new(this._root,{})),this.gridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.topGridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.bulletsContainer=this.children.push(a.W.new(this._root,{isMeasured:!1,width:o.AQ,height:o.AQ,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new n.aV,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(a.W.new(this._root,{themeTags:["axis","header"],position:"absolute",background:r.A.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)h.each(t.oldValues,(t=>{t.dispose()}));else if("push"===t.type)this._processAxisRange(t.newValue,["range"]);else if("setIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("insertIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("removeIndex"===t.type)this.disposeDataItem(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value,["range"])}})));const t=this.get("renderer");t&&(t.axis=this,t.processAxis()),this.children.push(t),this._createGhostLabel()}_createGhostLabel(){const t=this.get("renderer").makeLabel(new s.z(this,void 0,{}),[]);t.adapters.disable("text"),t.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),t.events.disable(),this.ghostLabel=t}_updateFinals(t,e){}zoom(t,e,i,s){if(this.get("zoomable",!0))if(this._updateFinals(t,e),this.get("start")!==t||this.get("end")!=e){let a=this._sAnimation,o=this._eAnimation;t>e&&([t,e]=[e,t]);let n=this.get("maxDeviation",.5)*Math.min(1,e-t);t<-n&&(t=-n),e>1+n&&(e=1+n);let r=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),h=r;l.isNumber(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),1===e&&0!==t&&(s=tthis.get("end",1)?"end":"start");let d=this.get("minZoomCount",0);const g=this.dataItems;g&&g.lengthe&&([t,e]=[e,t]),"start"===s?(c>0&&1/(e-t)r&&(e=t+1/r),e>1&&e-t<1/r&&(t=e-1/r)):(c>0&&1/(e-t)r&&(t=e-1/r),t<0&&e-t<1/r&&(e=t+1/r)),1/(e-t)>r&&(e=t+1/r),1/(e-t)>r&&(t=e-1/r),null!=c&&null!=d&&t==this.get("start")&&e==this.get("end")){const t=this.chart;t&&t._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==t||this.get("start")==t)&&(o&&o.playing&&o.to==e||this.get("end")==e))return;if(i>0){let s,a,o=this.get("interpolationEasing");if(this.get("start")!=t&&(s=this.animate({key:"start",to:t,duration:i,easing:o})),this.get("end")!=e&&(a=this.animate({key:"end",to:e,duration:i,easing:o})),this._sAnimation=s,this._eAnimation=a,s)return s;if(a)return a}else this.set("start",t),this.set("end",e),this.root.events.once("frameended",(()=>{this.markDirtyKey("start")}))}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(t,e){t.setRaw("isRange",!0),this._createAssets(t,e),this._rangesDirty=!0,this._prepareDataItem(t);const i=t.get("above"),s=this.topGridContainer,a=t.get("grid");i&&a&&s.children.moveValue(a);const o=t.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(t,e){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each((t=>{this._prepareDataItem(t)})),h.each(this._seriesAxisRanges,(t=>{this._prepareDataItem(t)}))}_prepareChildren(){super._prepareChildren();const t=this.ghostLabel;if(t&&(this.get("fixAxisSize")?t.set("visible",!0):t.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){const t=this.chart;t&&t._updateCursor();let e=this.get("start",0),i=this.get("end",1),s=this.get("maxDeviation",.5)*Math.min(1,i-e);if(e<-s){let t=e+s;e=-s,this.setRaw("start",e),this.isDirty("end")&&this.setRaw("end",i-t)}if(i>1+s){let t=i-1-s;i=1+s,this.setRaw("end",i),this.isDirty("start")&&this.setRaw("start",e-t)}}const e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){const t=this.get("tooltip");if(t){const i=e.get("themeTags");t.addTag("axis"),t.addTag(this.className.toLowerCase()),t._applyThemes(),i&&(t.set("themeTags",d.mergeTags(t.get("themeTags"),i)),t.label._applyThemes())}}}_updateTooltipBounds(){const t=this.get("tooltip");t&&this.get("renderer").updateTooltipBounds(t)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(t){this.chart=t,this.get("renderer").chart=t,t.gridContainer.children.push(this.gridContainer),t.topGridContainer.children.push(this.topGridContainer),t.axisHeadersContainer.children.push(this.axisHeader),this.on("start",(()=>{t._handleAxisSelection(this)})),this.on("end",(()=>{t._handleAxisSelection(this)})),t.plotContainer.onPrivate("width",(()=>{this.markDirtySize()})),t.plotContainer.onPrivate("height",(()=>{this.markDirtySize()})),t.processAxis(this)}hideDataItem(t){return this._toggleFHDataItem(t,!0),super.hideDataItem(t)}showDataItem(t){return this._toggleFHDataItem(t,!1),super.showDataItem(t)}_toggleFHDataItem(t,e){const i="forceHidden",s=t.get("label");s&&s.set(i,e);const a=t.get("grid");a&&a.set(i,e);const o=t.get("tick");o&&o.set(i,e);const n=t.get("axisFill");n&&n.set(i,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.set(i,e)}}_toggleDataItem(t,e){const i=t.get("label"),s="visible";i&&i.setPrivate(s,e);const a=t.get("grid");a&&a.setPrivate(s,e);const o=t.get("tick");o&&o.setPrivate(s,e);const n=t.get("axisFill");n&&n.setPrivate(s,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.setPrivate(s,e)}}_createAssets(t,e,i){var s,a,o;const n=this.get("renderer");let r="minor";const h=t.get("label");if(h){let a=h.get("themeTags"),o=!1;i?-1==(null==a?void 0:a.indexOf(r))&&(o=!0):-1!=(null==a?void 0:a.indexOf(r))&&(o=!0),o&&(null===(s=h.parent)||void 0===s||s.children.removeValue(h),n.makeLabel(t,e),h.dispose(),n.labels.removeValue(h))}else n.makeLabel(t,e);const l=t.get("grid");if(l){let s=l.get("themeTags"),o=!1;i?-1==(null==s?void 0:s.indexOf(r))&&(o=!0):-1!=(null==s?void 0:s.indexOf(r))&&(o=!0),o&&(null===(a=l.parent)||void 0===a||a.children.removeValue(l),n.makeGrid(t,e),l.dispose(),n.grid.removeValue(l))}else n.makeGrid(t,e);const d=t.get("tick");if(d){let s=!1,a=d.get("themeTags");i?-1==(null==a?void 0:a.indexOf(r))&&(s=!0):-1!=(null==a?void 0:a.indexOf(r))&&(s=!0),s&&(null===(o=d.parent)||void 0===o||o.children.removeValue(d),n.makeTick(t,e),d.dispose(),n.ticks.removeValue(d))}else n.makeTick(t,e);i||t.get("axisFill")?i&&!t.get("axisFill")&&this.get("minorAxisFillsEnabled")&&n.makeAxisFill(t,e):n.makeAxisFill(t,e),this._processBullet(t)}_processBullet(t){let e=t.get("bullet"),i=this.get("bullet");if(e||!i||t.get("isRange")||(e=i(this._root,this,t)),e){e.axis=this;const i=e.get("sprite");i&&(i._setDataItem(t),t.setRaw("bullet",e),i.parent||this.bulletsContainer.children.push(i))}}_afterChanged(){super._afterChanged();const t=this.chart;t&&(t._updateChartLayout(),t.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(t){super.disposeDataItem(t);const e=this.get("renderer"),i=t.get("label");i&&(e.labels.removeValue(i),i.dispose());const s=t.get("tick");s&&(e.ticks.removeValue(s),s.dispose());const a=t.get("grid");a&&(e.grid.removeValue(a),a.dispose());const o=t.get("axisFill");o&&(e.axisFills.removeValue(o),o.dispose());const n=t.get("bullet");n&&n.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const t=this.ghostLabel;if(t){if(!t.isHidden()){const e=t.localBounds(),i=Math.ceil(e.right-e.left);let s=t.get("text");h.each(this.dataItems,(t=>{const e=t.get("label");if(e&&!e.isHidden()){const t=e.localBounds();Math.ceil(t.right-t.left)>i&&(s=e.text._getText())}})),t.set("text",s)}let e=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(t,e+.5*(i-e))}}_handleCursorPosition(t,e){t=this.get("renderer").toAxisPosition(t),this._cursorPosition=t,this._snapToSeries=e,this.updateTooltip()}updateTooltip(){const t=this._snapToSeries;let e=this._cursorPosition;const i=this.get("tooltip"),s=this.get("renderer");l.isNumber(e)&&(h.each(this.series,(i=>{if(i.get("baseAxis")===this){const s=this.getSeriesItem(i,e,this.get("tooltipLocation"));t&&-1!=t.indexOf(i)?(i.updateLegendMarker(s),i.updateLegendValue(s),i._settings.tooltipDataItem=s):(i.showDataItemTooltip(s),i.setRaw("tooltipDataItem",s))}})),this.get("snapTooltip")&&(e=this.roundAxisPosition(e,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",e),i&&(s.updateTooltipBounds(i),l.isNaN(e)?i.hide(0):(this._updateTooltipText(i,e),s.positionTooltip(i,e),ethis.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}roundAxisPosition(t,e){return t}_handleSeriesRemoved(){}handleCursorShow(){let t=this.get("tooltip");t&&t.show()}handleCursorHide(){let t=this.get("tooltip");t&&t.hide()}processSeriesDataItem(t,e){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(t){const e=this.get("renderer");return e.toAxisPosition(t/e.axisLength())}toAxisPosition(t){return this.get("renderer").toAxisPosition(t)}toGlobalPosition(t){return this.get("renderer").toGlobalPosition(t)}fixPosition(t){return this.get("renderer").fixPosition(t)}shouldGap(t,e,i,s){return!1}createAxisRange(t){return this.axisRanges.push(t)}_groupSeriesData(t){}getCellWidthPosition(){return.05}}g.className="Axis",g.classNames=s.w.classNames.concat([g.className])},2586:function(t,e,i){i.d(e,{_:function(){return o}});var s=i(6331),a=i(256);class o extends s.JH{_beforeChanged(){super._beforeChanged();const t=this.get("sprite");if(this.isDirty("sprite")&&t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t)),this.isDirty("location")){const e=t.dataItem;this.axis&&t&&e&&this.axis._prepareDataItem(e)}}_dispose(){const t=this.axis;t&&a.each(t._bullets,((e,i)=>{i.uid==this.uid&&delete t._bullets[e]})),super._dispose()}}o.className="AxisBullet",o.classNames=s.JH.classNames.concat([o.className])},6293:function(t,e,i){i.d(e,{k:function(){return a}});var s=i(962);class a extends s._{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabel",a.classNames=s._.classNames.concat([a.className])},9084:function(t,e,i){i.d(e,{p:function(){return a}});var s=i(815);class a extends s.x{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabelRadial",a.classNames=s.x.classNames.concat([a.className])},6275:function(t,e,i){i.d(e,{Y:function(){return d}});var s=i(1479),a=i(5769),o=i(7144),n=i(4714),r=i(8943),h=i(6293),l=i(7652);class d extends s.T{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new o.o(a.YS.new({}),(()=>n.T._new(this._root,{themeTags:l.mergeTags(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template])))),this.grid=this.addDisposer(new o.o(a.YS.new({}),(()=>r.r._new(this._root,{themeTags:l.mergeTags(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template])))),this.axisFills=this.addDisposer(new o.o(a.YS.new({}),(()=>s.T._new(this._root,{themeTags:l.mergeTags(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template])))),this.labels=this.addDisposer(new o.o(a.YS.new({}),(()=>h.k._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template]))))}makeTick(t,e){const i=this.ticks.make();return i._setDataItem(t),t.setRaw("tick",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(t,e){const i=this.grid.make();return i._setDataItem(t),t.setRaw("grid",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(t,e){const i=this.axisFills.make();return i._setDataItem(t),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),t.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(t,e){const i=this.labels.make();return i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),t.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(t),t.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const t=this.thumb;t&&(this._disposers.push(t.events.on("pointerdown",(t=>{this._handleThumbDown(t)}))),this._disposers.push(t.events.on("globalpointerup",(t=>{this._handleThumbUp(t)}))),this._disposers.push(t.events.on("globalpointermove",(t=>{this._handleThumbMove(t)}))))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",(()=>{this.axis.markDirtySize()}))}_changed(){if(super._changed(),this.isDirty("pan")){const t=this.thumb;if(t){const e=this.axis.labelsContainer,i=this.get("pan");"zoom"==i?e.children.push(t):"none"==i&&e.children.removeValue(t)}}}_handleThumbDown(t){this._thumbDownPoint=this.toLocal(t.point);const e=this.axis;this._downStart=e.get("start"),this._downEnd=e.get("end")}_handleThumbUp(t){this._thumbDownPoint=void 0}_handleThumbMove(t){const e=this._thumbDownPoint;if(e){const i=this.toLocal(t.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,e)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(t,e){return 0}positionToCoordinate(t){return this._inversed?(this._end-t)*this._axisLength:(t-this._start)*this._axisLength}updateTooltipBounds(t){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t*=i-e,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,t/(i-e)}fixPosition(t){return this.get("inversed")?1-t:t}_updateLC(){}toggleVisibility(t,e,i,s){let a=this.axis;const o=a.get("start",0),n=a.get("end",1);eo+(n-o)*(s+1e-4)?t.setPrivate("visible",!1):t.setPrivate("visible",!0)}_positionTooltip(t,e){const i=this.chart;i&&(t.set("pointTo",this._display.toGlobal(e)),i.inPlot(e)||t.hide())}processAxis(){}}d.className="AxisRenderer",d.classNames=s.T.classNames.concat([d.className])},6284:function(t,e,i){i.d(e,{n:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{width:a.AQ,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const t=this.grid.template;t.set("height",a.AQ),t.set("width",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)}))}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("x",-1e3));const s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){const i=this.chart,o=e.children;if(this.get(a)?e.addTag(a):e.removeTag(a),i){if(this.get(s)){const t=i.topAxesContainer.children;-1==t.indexOf(e)&&t.insertIndex(0,e),e.addTag(s),o.moveValue(this)}else{const t=i.bottomAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(s),o.moveValue(this,0)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(t,e){return(e.x-t.x)/this.width()}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,(t=t/(i-e)*this._lc)+this._ls}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerWidth();this._lc=this.axisLength()/i,this._ls=(t.x()-e.get("paddingLeft",0))/i}}_updatePositions(){const t=this.axis,e=t.x()-r.relativeToValue(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0);t.gridContainer.set("x",e),t.topGridContainer.set("x",e),t.bulletsContainer.set("y",this.y());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginLeft",0),o=t.x()-a;const n=t.parent;n&&(o-=n.get("paddingLeft",0)),s.children.length>0?(a=t.axisHeader.width(),t.set("marginLeft",a+1)):s.set("width",a),s.setAll({x:o,y:-1,height:e.height()+2})}}processAxis(){super.processAxis();const t=this.axis;null==t.get("width")&&t.set("width",a.AQ);const e=this._root.verticalLayout;t.set("layout",e),t.labelsContainer.set("width",a.AQ),t.axisHeader.setAll({layout:e})}axisLength(){return this.axis.width()}positionToPoint(t){return{x:this.positionToCoordinate(t),y:0}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e));let r=t.get("length",0);const h=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("y",a.AQ),h||(r*=-1)):(t.set("y",0),h&&(r*=-1)),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,r)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateLabel(t,e,i,s){if(t){let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(e)||(e=0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?r?(t.set("position","absolute"),t.set("y",0)):(t.set("position","relative"),t.set("y",a.AQ)):r?(t.set("y",0),t.set("position","absolute")):(t.set("y",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=-1;if(this.get("opposite")&&(h=1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("y",t.y()+t.height()*h)}else s.set("y",0);this.axis._bullets[o]=t,s.set("x",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.height(),a=this.width();ia||i<0||(t.moveTo(e,0),t.lineTo(i,0),t.lineTo(i,s),t.lineTo(e,s),t.lineTo(e,0))}))}positionTooltip(t,e){this._positionTooltip(t,{x:this.positionToCoordinate(e),y:0})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,n=this.axisLength(),h=i,l="up";this.get("opposite")?e?(l="up",o=s.y,h=i):(l="down",o=s.y-i,h=i):e?(l="down",o=s.y-i,h=i):(l="up",o=s.y,h=i);const d={left:a,right:a+n,top:o,bottom:o+h},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}}h.className="AxisRendererX",h.classNames=s.Y.classNames.concat([h.className])},7909:function(t,e,i){i.d(e,{j:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{height:a.AQ,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const t=this.grid.template;t.set("width",a.AQ),t.set("height",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())}))}_getPan(t,e){return(t.y-e.y)/this.height()}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("y",-1e3));const s=this.thumb,a="opposite",o="inside",n=this.chart;if(this.isDirty(a)||this.isDirty(o)){const i=e.children;if(this.get(o)?e.addTag(o):e.removeTag(o),n){if(this.get(a)){const t=n.rightAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e,0),e.addTag(a),i.moveValue(this,0)}else{const t=n.leftAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(a),i.moveValue(this)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}const r=e.labelsContainer.width();n&&(this.get(a)?s.set("centerX",0):s.set("centerX",r)),s.setPrivate("width",r)}processAxis(){super.processAxis();const t=this.axis;null==t.get("height")&&t.set("height",a.AQ);const e=this._root.horizontalLayout;t.set("layout",e),t.labelsContainer.set("height",a.AQ),t.axisHeader.set("layout",e)}_updatePositions(){const t=this.axis,e=t.y()-r.relativeToValue(t.get("centerY",0),t.height());t.gridContainer.set("y",e),t.topGridContainer.set("y",e),t.bulletsContainer.set("x",this.x());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginTop",0);s.children.length>0?(a=t.axisHeader.height(),t.set("marginTop",a+1)):s.set("height",a),s.setAll({y:t.y()-a,x:-1,width:e.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(t){return{x:0,y:this.positionToCoordinate(t)}}updateLabel(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a);const o=this.get("opposite"),r=t.get("inside",this.get("inside",!1));o?(t.set("x",0),r?t.set("position","absolute"):t.set("position","relative")):r?(t.set("x",0),t.set("position","absolute")):(t.set("x",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e));let o=t.get("length",0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("x",0),r&&(o*=-1)):r||(o*=-1),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(o,0)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=1;if(this.get("opposite")&&(h=-1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("x",t.x()+t.width()*h)}else s.set("x",0);this.axis._bullets[o]=t,s.set("y",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.width(),a=this.height();ia||i<0||(t.moveTo(0,e),t.lineTo(s,e),t.lineTo(s,i),t.lineTo(0,i),t.lineTo(0,e))}))}positionToCoordinate(t){return this._inversed?(t-this._start)*this._axisLength:(this._end-t)*this._axisLength}positionTooltip(t,e){this._positionTooltip(t,{x:0,y:this.positionToCoordinate(e)})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,n=this.axisLength(),h=i,l="right";this.get("opposite")?e?(l="right",o=s.x-i,h=i):(l="left",o=s.x,h=i):e?(l="left",o=s.x,h=i):(l="right",o=s.x-i,h=i);const d={left:o,right:o+h,top:a,bottom:a+n},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerHeight();this._lc=this.axisLength()/i,this._ls=t.y()/i}}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?e+t:i-t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t-=e:t=i-t,(t=t/(i-e)*this._lc)+this._ls}fixPosition(t){return this.get("inversed")?t:1-t}}h.className="AxisRendererY",h.classNames=s.Y.classNames.concat([h.className])},4714:function(t,e,i){i.d(e,{T:function(){return a}});var s=i(2438);class a extends s.d{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisTick",a.classNames=s.d.classNames.concat([a.className])},7497:function(t,e,i){i.d(e,{$:function(){return d}});var s=i(6515),a=i(2132),o=i(7261),n=i(5071),r=i(5040),h=i(751),l=i(7652);class d extends s.R{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();const t=this.dataItems.length;t>0&&this.setPrivateRaw("maxZoomFactor",t),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),t)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",t),1))}_prepareChildren(){super._prepareChildren();const t=this.dataItems.length;let e=0;this._valuesDirty&&(this._itemMap={},n.each(this.dataItems,(t=>{t.setRaw("index",e),this._itemMap[t.get("category")]=t,e++})),this.setPrivateRaw("maxZoomFactor",t));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){const t=this.dataItems.length;if(t>1){let e=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0);const n=this._sAnimation,r=this._eAnimation;let h=this.get("start",0),l=!1;n&&!n.stopped&&(h=Number(n.to),l=!0);let d=this.get("end",1);if(r&&!r.stopped&&(d=Number(r.to),l=!0),l){const t=this._getIndices(h,d);a=t.startIndex,o=t.endIndex}for(let t=a;t=i));s++);if(e=0&&(e+=this.dataItems[t].get("finalCellSize",1),a=t,!(e>=i));t--);this.zoomToIndexes(a,o)}else if(s>=e){let t=s;for(let i=o-1;i>=a;i--)if(t-=this.dataItems[i].get("finalCellSize",1),t<=e){o=i+1;break}this.zoomToIndexes(a,o)}}}_handleRangeChange(){n.each(this.series,(t=>{let e=this.dataItems[this.startIndex()].get("category"),i=this.dataItems[this.endIndex()-1].get("category"),s=t.get("baseAxis"),a=t.get("xAxis"),r=t.get("yAxis");if(a instanceof d&&r instanceof d)t._markDirtyAxes();else if(s===this){let h,l,g=r;if(a===s?(t.get("categoryXField")&&(h="categoryX"),t.get("openCategoryXField")&&(l="openCategoryX")):r===s&&(t.get("categoryYField")&&(h="categoryY"),t.get("openCategoryYField")&&(l="openCategoryY"),g=a),g instanceof o.m&&(h||l)){let c,u;function m(t,e,i,s,a,o){let n,r=e.categoryToIndex(a);for(;!n&&r>=0&&r=0;e--){let o=t.dataItems[e];if(i&&o.get(i)===a){n=o;break}if(s&&o.get(s)===a){n=o;break}}else for(let e=0,o=t.dataItems.length;e{null!=y.get(t)&&(x=!0)})),n.each(t.__valueYShowFields,(t=>{null!=y.get(t)&&(x=!0)})),x)break}t.setPrivate("outOfSelection",!x)}t._markDirtyAxes()}}))}_prepareAxisItems(){var t;const e=this.get("renderer"),i=this.dataItems.length;let s=this.startIndex();s>0&&s--;let a=this.endIndex();a=s&&(t=s-1,e=1),r.isNumber(e)||(e=.5),!r.isNumber(t))return 0;let o=this.get("startLocation",0),h=this.get("endLocation",1);if(this.get("cellSizeField")){let s=i?"finalCellSize":"cellSize";const r=this.dataItems;let l=0;n.each(this.dataItems,(t=>{l+=t.get(s,1)})),l-=o*r[0].get(s,1),l-=(1-h)*r[r.length-1].get(s,1);let d=0;for(let e=0;e{const e=t.get("cellSize",1);s.push(e),i+=e}));let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=t*i+a,h=0;for(let t=0;t0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(e),a=t.dataItems[s],o=this.dataItems[s],n=o.get("category");if(a&&o&&a.get(i)===n)return a;for(let e=0,s=t.dataItems.length;e{r+=t.get(o,1)})),r-=this.get("startLocation",0)*h[0].get(o,1),r-=(1-this.get("endLocation",1))*h[h.length-1].get(o,1);let l=0;for(let e=0;eMath.round(t*r)){s=e;break}for(let t=s+1;t=Math.round(e*r)){a=t+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(t,e,i){let s=this.dataItems.length;this.get("cellSizeField")?(t=Math.min(Math.max(t,0),s),e=Math.max(Math.min(e,s),1),this.setPrivateRaw("startIndex",t),this.setPrivateRaw("endIndex",e),this.zoom(this.indexToPosition(t,0,!0),this.indexToPosition(e,0,!0),i)):this.zoom(t/s,e/s,i)}zoomToCategories(t,e,i){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(t){null==t&&(t=1),"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);const e=this.getPrivate("tooltipPosition",0),i=h.fitToRange(this.axisPositionToIndex(e)+t,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}}d.className="CategoryAxis",d.classNames=s.R.classNames.concat([d.className])},5638:function(t,e,i){i.d(e,{S:function(){return c}});var s=i(9361),a=i(7261),o=i(5040),n=i(751),r=i(3540),h=i(5071),l=i(256),d=i(7652),g=i(1926);class c extends a.m{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=d.mergeTags(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",(()=>{this._setBaseInterval(this.get("baseInterval"))}))}_setBaseInterval(t){this.setPrivateRaw("baseInterval",t),this._baseDuration=g.getIntervalDuration(t)}_fixZoomFactor(){const t=this.get("maxZoomFactor");null!=t&&t!=1/0?this.setPrivateRaw("maxZoomFactor",t):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){this._fixZoomFactor();const t=this.getPrivate("groupInterval");if(t?this._setBaseInterval(t):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let t=this.get("groupInterval");t&&(this.setRaw("groupIntervals",[t]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))h.each(this.series,(t=>{this._groupSeriesData(t)})),this._handleRangeChange();else{let t=this.get("baseInterval"),e=t.timeUnit+t.count;h.each(this.series,(t=>{t.setDataSet(e),t.resetGrouping()})),this._setBaseInterval(t),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(t){if(this.get("groupData")&&!t.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let e=[],i=this.baseMainDuration(),a=this.get("groupIntervals");h.each(a,(t=>{g.getIntervalDuration(t)>i&&e.push(t)})),t._dataSets={};const n=this.getPrivate("name")+this.get("renderer").getPrivate("letter");let r;const d=t.get("baseAxis");t.get("xAxis")===d?r=t._valueYFields:t.get("yAxis")===d&&(r=t._valueXFields);let c=t._mainDataItems,u=this.get("baseInterval"),m=u.timeUnit+u.count;t._dataSets[m]=c;const p=t.get("groupDataCallback");let _=t.get("groupDataWithOriginals",!1);p&&(_=!0),h.each(e,(e=>{let i,a=-1/0,d=e.timeUnit+e.count;t._dataSets[d]=[];let u={},m={},x={},v={};h.each(r,(e=>{u[e]=0,m[e]=0,x[e]=t.get(e+"Grouped"),v[e]=e+"Working"}));let y,f,b=g.getDuration(e.timeUnit);c[0]&&(y=c[0].get(n)),h.each(c,(c=>{let D,P=c.get(n),w=g.roun(P,e.timeUnit,e.count,this._root,y);a{let e=c.get(t);o.isNumber(e)?(i.setRaw(t,e),i.setRaw(v[t],e),m[t]=1,u[t]=e):(u[t]=0,m[t]=0)})),_&&i.set("originals",[c]),p&&f&&p(f,e),f=i):(h.each(r,(t=>{let e=x[t],s=c.get(t);if(null!=s){let a=i.get(t);switch(e){case"close":i.setRaw(t,s);break;case"sum":i.setRaw(t,a+s);break;case"open":break;case"low":sa&&i.setRaw(t,s);break;case"average":m[t]++,u[t]+=s;let e=u[t]/m[t];i.setRaw(t,e);break;case"extreme":Math.abs(s)>Math.abs(a)&&i.setRaw(t,s)}i.setRaw(v[t],i.get(t));let o=l.copy(c.dataContext);o[n]=w,i.dataContext=o}})),_&&i.get("originals").push(c)),a=w})),p&&f&&p(f,e)})),t._dataSetId&&t.setDataSet(t._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",(()=>{this.markDirtySize()}))}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(t){let e=this.get("baseInterval"),i=g.chooseInterval(0,t,this.get("groupCount",1/0),this.get("groupIntervals"));return g.getIntervalDuration(i){e.get("baseAxis")===this&&e.setDataSet(t)})),this.markDirtyExtremes(),this._root.events.once("frameended",(()=>{this._root.events.once("frameended",(()=>{const t="groupintervalchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}))}))}}h.each(this.series,(i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),a=h.getFirstSortedIndex(i.dataItems,(e=>r.qu(e.get(s),t))).index;a>0&&(a-=1),e+=this._baseDuration*(1-this.get("endLocation",1));let o=h.getSortedIndex(i.dataItems,(t=>r.qu(t.get(s),e))).index,n=o;n>1&&n--;const l=i.dataItems[a],d=i.dataItems[n];let g,c;l&&(c=l.get(s)),d&&(g=d.get(s));let u=!1;null!=g&&null!=c&&(ge)&&(u=!0),i.setPrivate("outOfSelection",u),i.setPrivate("startIndex",a);let m=i._adjustStartIndex(a);i.getPrivate("adjustedStartIndex")!==m&&(i.setPrivate("adjustedStartIndex",m),this.root.events.once("frameended",(()=>{i._markDirtyPrivateKey("adjustedStartIndex")}))),i.setPrivate("endIndex",o)}}))}}_adjustMinMax(t,e,i,s){return{min:t,max:e,step:(e-t)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(t,e){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=t,this._intervalMax[s]=e}_getM(t){return"day"==t||"month"==t||"year"==t?1.05:1.01}_getMinorInterval(t){var e;let i,s=t.count,a=t.timeUnit;return s>1&&(10==s||15==s?s=5:12==s?s=2:6==s?s=1:30==s?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),"week"==a&&(i="week"!=(null===(e=this.getPrivate("baseInterval"))||void 0===e?void 0:e.timeUnit)?{timeUnit:"day",count:1}:{timeUnit:"week",count:1}),"year"==a&&1==s&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<1264896e5&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){const e=this._root,i=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),n=this.get("renderer"),r=this.getPrivate("baseInterval");let l=i,d=0;const c=this.get("gridIntervals");let u=g.chooseInterval(0,a-i,n.gridCount(),c);g.getIntervalDuration(u){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_updateFinals(t,e){this.setPrivateRaw("selectionMinFinal",this.positionToValue(t)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(e))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(t,e){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return g.getIntervalDuration(this.get("baseInterval"))}processSeriesDataItem(t,e){const i=this.getPrivate("baseInterval");t.open||(t.open={}),t.close||(t.close={}),h.each(e,(e=>{let s=t.get(e);if(o.isNumber(s)){let a=t.open[e],o=t.close[e];if(s>=a&&s<=o);else{const n=i.timeUnit,r=i.count;a=g.roun(s,n,r,this._root),o=a+g.getDuration(n,r*this._getM(n)),o=g.roun(o,n,1,this._root),t.open[e]=a,t.close[e]=o}this._updateDates(a,t.component)}}))}_handleSizeDirty(){}getDataItemPositionX(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}roundAxisPosition(t,e){let i=this.positionToValue(t);i-=(e-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!o.isNaN(i)){const t=this._root.locale.firstDayOfWeek,a=s.timeUnit,o=this._root.utc,n=this._root.timezone,r=s.count;i=g.roun(i,a,r,this._root,this.getPrivate("min",0));let h=g.getDateIntervalDuration(s,new Date(i),t,o,n);return n&&(i=g.roun(i+.05*this._baseDuration,a,r,this._root,this.getPrivate("min",0)),h=g.getDateIntervalDuration(s,new Date(i+h*e),t,o,n)),this.valueToPosition(i+h*e)}return NaN}getTooltipText(t,e){if(null!=this.getPrivate("min")){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(t);if(o.isNumber(s)){let t=new Date(s),a=this.getPrivate("baseInterval"),o=g.getDateIntervalDuration(a,t,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return!1!==e&&(t=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*o)),this._root.dateFormatter.format(t,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(t,e,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);null==i&&(i=.5),o-=(i-.5)*this._baseDuration;const n=h.getSortedIndex(t.dataItems,(t=>{let e=0;return t.open&&(e=t.open[a]),r.qu(e,o)}));if(s||t.get("snapTooltip")){let e=t.dataItems[n.index-1],i=t.dataItems[n.index];if(e&&i&&e.open&&i.close){let t=e.open[a],s=i.close[a];if(Math.abs(o-t)>Math.abs(o-s))return i}if(e)return e;if(i)return i}else{const e=t.dataItems[n.index-1];if(e&&e.open&&e.close){let t=e.open[a],i=e.close[a];if(o>=t&&o<=i)return e}}}shouldGap(t,e,i,s){const a=t.get(s);return e.get(s)-a>this._baseDuration*i}zoomToDates(t,e,i){this.zoomToValues(t.getTime(),e.getTime(),i)}zoomToValues(t,e,i){const s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(null!=this.getPrivate("min")&&null!=this.getPrivate("max"))if(this.get("groupData")){const s=this.getGroupInterval(e-t),a=this.get("baseInterval");let o=this.getIntervalMin(a),n=this.getIntervalMax(a)-1;n=g.roun(n,s.timeUnit,s.count,this.root),n+=this._getM(s.timeUnit)*g.getIntervalDuration(s),n=g.roun(n,s.timeUnit,s.count,this.root);let r=g.roun(o,s.timeUnit,s.count,this.root),h=g.roun(n,s.timeUnit,s.count,this.root),l=(t-r)/(h-r),d=(e-r)/(h-r);this.zoom(l,d,i)}else this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}positionToDate(t){return new Date(this.positionToValue(t))}dateToPosition(t){return this.valueToPosition(t.getTime())}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return o.isNumber(t)&&o.isNumber(e)?this._intervalDuration/(t-e):.05}nextPosition(t){null==t&&(t=1);let e=this.get("tooltipLocation",.5)*this._baseDuration;"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0));const s=this.getPrivate("baseInterval");let a=this._nextTime(i,t,s),o=this.getPrivate("selectionMin",0),r=this.getPrivate("selectionMax",0),h=g.roun(o,s.timeUnit,s.count,this._root),l=g.roun(r,s.timeUnit,s.count,this._root);return a+=e,a=n.fitToRange(a,h+e,l-e),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(t,e,i){return g.roun(t+e*this._baseDuration,i.timeUnit,i.count,this._root)}}c.className="DateAxis",c.classNames=a.m.classNames.concat([c.className])},7109:function(t,e,i){i.d(e,{L:function(){return a}});var s=i(6691);class a extends s.Y{constructor(){super(...arguments),this._tickPoints=[]}}a.className="EditableAxisLabel",a.classNames=s.Y.classNames.concat([a.className])},8701:function(t,e,i){i.d(e,{J:function(){return d}});var s=i(5638),a=i(9361),o=i(5071),n=i(3540),r=i(1926),h=i(5040),l=i(751);class d extends s.S{constructor(){super(...arguments),this._frequency=1,this._m=0,this._dates=[]}_afterNew(){this.valueFields.push("date"),this.addTag("gapless"),super._afterNew()}_getDates(){return this._customDates?this._customDates:this._dates}_updateDates(t,e){if(!e.get("ignoreMinMax")){const e=this._getDates(),i=o.getSortedIndex(e,(e=>n.qu(e,t)));i.found||o.insertIndex(e,i.index,t)}}_updateAllDates(){if(!this._customDates){const t=this._dates;t.length=0,o.each(this.series,(t=>{let e="valueX";t.get("yAxis")==this&&(e="valueY"),o.each(t.dataItems,(i=>{let s=i.get(e);h.isNumber(s)&&i.open&&this._updateDates(i.open[e],t)}))}));const e=this.get("extraMax",0),i=this.get("extraMin",0);let s=t.length;const a=this.getPrivate("baseInterval"),n=a.count,l=a.timeUnit;if(e>0){const i=s*e;let a=t[s-1];if(h.isNumber(a))for(let e=s-1;e0){const e=s*i;let a=t[0];if(h.isNumber(a))for(let i=0;in.qu(e,t)));let h=r.index;if(r.found)return(h-i)/a;{h>0&&(h-=1);let s=e[h];const o=e[h+1];if(o){let e=o;Math.abs(e-t)n.qu(e,t)));let s=i.index;return i.found||s>0&&(s-=1),s}positionToValue(t){const e=this.get("startLocation",0),i=this.get("endLocation",1),s=this._getDates();let a=Math.round(s.length-e-(1-i)),o=t*a,n=Math.floor(o);return n<0&&(n=0),n>a-1&&(n=a-1),s[n]+(o-n+e)*this._baseDuration}_fixZoomFactor(){this.setPrivateRaw("maxZoomFactor",this._getDates().length-this.get("startLocation",0)-(1-this.get("endLocation",1)))}zoomToDates(t,e,i){const s=this._getDates(),a=s.length;let r=o.getSortedIndex(s,(e=>n.qu(e,t.getTime()))),h=s[Math.min(r.index,a-1)];r=o.getSortedIndex(s,(t=>n.qu(t,e.getTime())));let l=s[r.index];r.index>=a&&(l=s[a-1]+this._baseDuration),this.zoomToValues(h,l,i)}zoomToValues(t,e,i){const s=this.getPrivate("min",0),a=this.getPrivate("max",0);t=l.fitToRange(t,s,a),e=l.fitToRange(e,s,a),this.zoom(this.valueToPosition(t),this.valueToPosition(e),i)}_prepareAxisItems(){let t=this.getPrivate("selectionMin",0),e=this.getPrivate("selectionMax",0);if(h.isNumber(t)&&h.isNumber(e)){this._seriesValuesDirty&&(this._seriesValuesDirty=!1,this._updateAllDates());const i=this._root,s=i.utc,n=i.timezone,l=this._getDates(),d=this.get("renderer"),g=l.length,c=this._baseDuration;let u=this.valueToIndex(t);u>0&&u--;let m=this.valueToIndex(e);m{this._toggleDataItem(t,!1)})),o.each(this.minorDataItems,(t=>{this._toggleDataItem(t,!1)}));let x=e-t-((e-t)/c-(m-u))*c,v=r.chooseInterval(0,x,p,this.get("gridIntervals"));const y=this.getPrivate("baseInterval");let f=r.getIntervalDuration(v);f0){let t=0;this._m=0;let e=w-10*f;const g=r.getNextUnit(b);if(I){let t=l[C[0]];this._addMinorGrid(t-f,t,k,I)}let c=d.axisLength()/d.gridCount()*.5;o.each(C,(o=>{var u;let m;this.dataItems.length1||"week"==v.timeUnit){let e=r.roun(p,t,1,i)+r.getDuration(t,this._getM(t)),s=this.valueToIndex(e);if(e=l[s],e==p){let t=l[s+1];t?e=t:e+=k}m.setRaw("labelEndValue",e)}w=1}if(this._prepareDataItem(m,w),P&&M&&"X"==d.getPrivate("letter")){let t=M.get("label");if(t&&P.x()-t.x(){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_pickWorse(t,e,i){const s=i.timeUnit,a=t.get("value",0),o=e.get("value",0);return"hour"==s&&new Date(a).getDate()!=new Date(o).getDate()?t:e}_addMinorGrid(t,e,i,s){const n=this.get("minorDateFormats",this.get("dateFormats")),h=s.timeUnit;let l=t+r.getDuration(h,this._getM(h));l=r.roun(l,h,1,this._root);let d=e-.5*i,g=this._getIndexes(l,d,s,l);const c=this._getDates();o.each(g,(t=>{let e;this.minorDataItems.length=x-2*_&&o.move(a,e),u=0),t+=p,t=r.roun(t,n,1,g);else{if(i=t){e=s;break}o.move(a,e),t+=_,t=r.roun(t,n,h,g)}if(t==m&&(t+=_+p,t=r.roun(t,n,h,g)),t==m)break;m=t}return a}_hasDate(t){return o.getSortedIndex(this._getDates(),(e=>n.HO(e,t))).found}_nextTime(t,e,i){let s=l.fitToRange(this.valueToIndex(t)+e,0,this._dates.length-1);return this._dates[s]}}d.className="GaplessDateAxis",d.classNames=s.S.classNames.concat([d.className])},8943:function(t,e,i){i.d(e,{r:function(){return a}});var s=i(1479);class a extends s.T{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}a.className="Grid",a.classNames=s.T.classNames.concat([a.className])},7261:function(t,e,i){i.d(e,{m:function(){return d}});var s=i(9361),a=i(6515),o=i(7449),n=i(5040),r=i(5071),h=i(751),l=i(7652);class d extends a.R{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var t;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let t=this.get("syncWithAxis");t&&(this._syncDp=new o.FV([t.onPrivate("selectionMinFinal",(()=>{this._dirtySelectionExtremes=!0})),t.onPrivate("selectionMaxFinal",(()=>{this._dirtySelectionExtremes=!0}))]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,null===(t=this.ghostLabel)||void 0===t||t.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){const t=this.chart;let e=!1;if(t){const i=this.get("renderer").getPrivate("letter");"Y"==i?t.xAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)})):"X"==i&&t.yAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)}))}e&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,this.getPrivate("selectionMinFinal")==this.getPrivate("selectionMin")&&this.getPrivate("selectionMaxFinal")==this.getPrivate("selectionMax")||(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(t){const e=this.get("numberFormat"),i=this.getNumberFormatter();let s="";return s=e?i.format(t,e):i.format(t,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(n.isNumber(t)&&n.isNumber(e)){const e=this.get("logarithmic"),i=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+i;let l=a-i,d=1,g=t;if(e){if(l=this._minLogAdjusted,l2&&(l=Math.pow(10,Math.log(g)*Math.LOG10E-50))}const c=this.get("renderer"),u=c.get("minorLabelsEnabled"),m=c.get("minorGridEnabled",u);let p=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));const _=Math.round(i/p);let x=2;h.round(_/5,10)%1==0&&(x=5),h.round(_/10,10)%1==0&&(x=10);let v=i/x,y=0,f=0,b=-1/0;const D=this.get("renderer").gridCount();for(;l2){const t=Math.max(1,D),e=Math.max(1,Math.ceil(d/t)),i=Math.log(g)*Math.LOG10E+(y+1)*e-50;o=Math.pow(10,i)}else o+=i;else o+=i;if(m){let t=l+v;for(e&&(d>2&&(v=this._adjustMinMax(l,o,10).step),t=l+v);t{t.inited&&t._markDirtyAxes()})),this._updateGhost()}}_prepareDataItem(t,e){let i=this.get("renderer"),s=t.get("value"),a=t.get("endValue"),o=this.valueToPosition(s),r=o,h=this.valueToPosition(s+this.getPrivate("step"));n.isNumber(a)&&(r=this.valueToPosition(a),h=r),t.get("isRange")&&null==a&&(h=o);let l=r,d=t.get("labelEndValue");null!=d&&(l=this.valueToPosition(d)),i.updateLabel(t.get("label"),o,l,e);const g=t.get("grid");if(i.updateGrid(g,o,r),g&&(s==this.get("baseValue",0)?(g.addTag("base"),g._applyThemes()):g.hasTag("base")&&(g.removeTag("base"),g._applyThemes())),i.updateTick(t.get("tick"),o,l,e),i.updateFill(t.get("axisFill"),o,h),this._processBullet(t),i.updateBullet(t.get("bullet"),o,r),!t.get("isRange")){const e=this.get("fillRule");e&&e(t)}}_handleRangeChange(){let t=this.positionToValue(this.get("start",0)),e=this.positionToValue(this.get("end",1));const i=this.get("renderer").gridCount();let s=this._adjustMinMax(t,e,i,!0),a=l.decimalPlaces(s.step);this.setPrivateRaw("stepDecimalPlaces",a),t=h.round(t,a),e=h.round(e,a),s=this._adjustMinMax(t,e,i,!0);let o=s.step;t=s.min,e=s.max,this.getPrivate("selectionMin")===t&&this.getPrivate("selectionMax")===e&&this.getPrivate("step")===o||(this.setPrivateRaw("selectionMin",t),this.setPrivateRaw("selectionMax",e),this.setPrivateRaw("step",o))}positionToValue(t){const e=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(t*(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)+Math.log(e)*Math.LOG10E)/Math.LOG10E):t*(i-e)+e}valueToPosition(t){const e=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}valueToFinalPosition(t){const e=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}getX(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getY(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionX(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemX")?a*s+t.component.getStackedXValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemY")?a*s+t.component.getStackedYValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const t=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),e=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let i=this.get("baseValue",0);return ie&&(i=e),i}cellEndValue(t){return t}fixSmallStep(t){return 1+t===1?(t*=2,this.fixSmallStep(t)):t}_fixMin(t){return t}_fixMax(t){return t}_calculateTotals(){if(this.get("calculateTotals")){let t=this.series[0];if(t){let e=t.startIndex();if(t.dataItems.length>0){e>0&&e--;let i,s,a=t.endIndex();a{if(!i.get("excludeFromTotal")){let r=i.dataItems[t];if(r){let t=r.get(o)*i.get(s);n.isNaN(t)||(e+=t,a+=Math.abs(t))}}})),r.each(this.series,(r=>{if(!r.get("excludeFromTotal")){let h=r.dataItems[t];if(h){let t=h.get(o)*r.get(s);if(!n.isNaN(t)){h.set(i+"Total",a),h.set(i+"Sum",e);let s=t/a*100;0==a&&(s=0),h.set(i+"TotalPercent",s)}}}}))}}}}}_getSelectionMinMax(){const t=this.getPrivate("minFinal"),e=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max");let a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2));const l=this.get("renderer").gridCount(),d=this.get("strictMinMaxSelection");let g=this.get("strictMinMax");if(n.isNumber(t)&&n.isNumber(e)){let c=e,u=t;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,i;const s=t.getPrivate("outOfSelection");if(t.get("xAxis")===this){if(!s){let s=t.getPrivate("minX"),a=t.getPrivate("maxX");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinX",s),i=t.getPrivate("selectionMaxX",a)}}else if(t.get("yAxis")===this&&!s){let s=t.getPrivate("minY"),a=t.getPrivate("maxY");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinY",s),i=t.getPrivate("selectionMaxY",a)}t.isHidden()||t.isShowing()||(n.isNumber(e)&&(c=Math.min(c,e)),n.isNumber(i)&&(u=Math.max(u,i)))}})),this.axisRanges.each((t=>{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(c=Math.min(c,e),u=Math.max(u,e)),e=t.get("endValue"),null!=e&&(c=Math.min(c,e),u=Math.max(u,e))}})),c>u&&([c,u]=[u,c]),n.isNumber(i)?c=g?i:t:g&&n.isNumber(this._minReal)&&(c=this._minReal),n.isNumber(s)?u=g?s:e:g&&n.isNumber(this._maxReal)&&(u=this._maxReal),c===u){let e=c;if(c-=this._deltaMinMax,u+=this._deltaMinMax,ce&&(x.max=e),c=x.min,u=x.max),g&&(n.isNumber(i)&&(c=Math.max(c,i)),n.isNumber(s)&&(u=Math.min(u,s))),d&&(c=m-(p-m)*a,u=p+(p-m)*o),g){c=n.isNumber(i)?i:m,u=n.isNumber(s)?s:p,u-c<=1e-8&&(c-=this._deltaMinMax,u+=this._deltaMinMax);let t=u-c;c-=t*a,u+=t*o}this.get("logarithmic")&&(c<=0&&(c=m*(1-Math.min(a,.99))),ce&&(u=e));let y=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),f=h.round(this.valueToFinalPosition(c),y),b=h.round(this.valueToFinalPosition(u),y);this.setPrivateRaw("selectionMinFinal",c),this.setPrivateRaw("selectionMaxFinal",u),this.setPrivateRaw("selectionStepFinal",x.step),this.zoom(f,b)}}_getMinMax(){let t=this.get("min"),e=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2)));let l=1/0;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,a;if(t.get("xAxis")===this?(e=t.getPrivate("minX"),a=t.getPrivate("maxX")):t.get("yAxis")===this&&(e=t.getPrivate("minY"),a=t.getPrivate("maxY")),n.isNumber(e)&&n.isNumber(a)){i=Math.min(i,e),s=Math.max(s,a);let t=a-e;t<=0&&(t=Math.abs(a/100)),t{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(i=Math.min(i,e),s=Math.max(s,e)),e=t.get("endValue"),null!=e&&(i=Math.min(i,e),s=Math.max(s,e))}})),this.get("logarithmic")){let t=this.get("treatZeroAs");n.isNumber(t)&&i<=0&&(i=t),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(0===i&&0===s&&(s=.9,i=-.9),n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e),i===1/0||s===-1/0)return this.setPrivate("minFinal",void 0),void this.setPrivate("maxFinal",void 0);i>s&&([i,s]=[s,i]);const d=i,g=s;let c=this.adapters.fold("min",i),u=this.adapters.fold("max",s);this._minRealLog=i,n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!=0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&d>=0&&(i=0),s>0&&g<=0&&(s=0)),this._minReal=i,this._maxReal=s;let m=this.get("strictMinMax"),p=this.get("strictMinMaxSelection",!1);p&&(m=p);let _=m;n.isNumber(e)&&(_=!0);let x=this.get("renderer").gridCount(),v=this._adjustMinMax(i,s,x,_);if(i=v.min,s=v.max,v=this._adjustMinMax(i,s,x,!0),i=v.min,s=v.max,m){i=n.isNumber(t)?t:this._minReal,s=n.isNumber(e)?e:this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let r=s-i;i-=r*a,s+=r*o}c=this.adapters.fold("min",i),u=this.adapters.fold("max",s),n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),l==1/0&&(l=s-i);let y=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=h.round(i,y),s=h.round(s,y);const f=this.get("syncWithAxis");if(f&&(v=this._syncAxes(i,s,v.step,f.getPrivate("minFinal",f.getPrivate("min",0)),f.getPrivate("maxFinal",f.getPrivate("max",1)),f.getPrivate("step",1)),i=v.min,s=v.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/l*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=d*(1-Math.min(a,.99)))),n.isNumber(i)&&n.isNumber(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);const t=this.get("interpolationDuration",0),e=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:t,easing:e}),this.animatePrivate({key:"max",to:s,duration:t,easing:e})}}_fixZoomFactor(){}_getDelta(t){let e=Math.log(Math.abs(t))*Math.LOG10E,i=Math.pow(10,Math.floor(e));i/=10,this._deltaMinMax=i}_saveMinMax(t,e){}_adjustMinMax(t,e,i,s){i<=1&&(i=1),i=Math.round(i);let a=t,o=e,r=e-t;0===r&&(r=Math.abs(e));let l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l));d/=10;let g=d;s&&(g=0),s?(t=Math.floor(t/d)*d,e=Math.ceil(e/d)*d):(t=Math.ceil(t/d)*d-g,e=Math.floor(e/d)*d+g),t<0&&a>=0&&(t=0),e>0&&o<=0&&(e=0),l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l)),d/=100;let c=Math.ceil(r/i/d)*d,u=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),m=Math.ceil(c/u);m>5?m=10:m<=5&&m>2&&(m=5),c=Math.ceil(c/(u*m))*u*m;let p=this.get("maxPrecision");if(n.isNumber(p)){let t=h.ceil(c,p);pa&&(t-=c),c=this.fixSmallStep(c),{min:t,max:e,step:c}}getTooltipText(t,e){const i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,n=h.round(this.positionToValue(t),o);return i?s.format(n,i):s.format(n,void 0,o)}getSeriesItem(t,e){let i,s,a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);if(r.each(t.dataItems,((t,e)=>{const n=Math.abs(t.get(a)-o);(void 0===i||n500&&(s=!0),s)t=n,e=h,i=d;else{a/3==Math.round(a/3)?(n=t-o*a,t>=0&&n<0&&(n=0)):(h=e+o*a,h<=0&&h>0&&(h=0));let i=this._adjustMinMax(n,h,l,!0);n=i.min,h=i.max,d=i.step}}}return{min:t,max:e,step:i}}_checkSync(t,e,i,s){let a=(e-t)/i;for(let t=1;t{if(t instanceof l){const e=t.get("stacked");e&&0==h&&n++,!e&&t.get("clustered")&&n++}t===this&&(o=n-1),h++})),this.get("clustered")||(o=0,n=1),0===n&&(n=1,o=0);const d="cellStartLocation",g="cellEndLocation",c=this._xRenderer.get(d,0),u=this._xRenderer.get(g,1),m=this._yRenderer.get(d,0),p=this._yRenderer.get(g,1);if(this._aLocationX0=c+o/n*(u-c),this._aLocationX1=c+(o+1)/n*(u-c),this._aLocationY0=m+o/n*(p-m),this._aLocationY1=m+(o+1)/n*(p-m),e.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){const t=this.dataItems.length;let a=Math.max(0,this.startIndex()-2),o=Math.min(this.endIndex()+2,t-1);for(let t=0;t0&&a>0)for(let e=t-1;e>=0;e--){let t=this.dataItems[e];if(null!=t.get("valueX")&&null!=t.get("valueY")){n=t;break}}break}this._toggleColumn(e,!1)}this._beforeColumnsDraw();let r=0;i.isType("CategoryAxis")&&e.isType("CategoryAxis")?r=2:e===s?r=0:i===s&&(r=1);for(let t=a;t<=o;t++){let e=this.dataItems[t];this._updateGraphics(e,n,r),null!=e.get("valueX")&&null!=e.get("valueY")&&(n=e)}this._afterColumnsDraw();for(let e=o+1;e{const a=e.get(s,this.get(s));t.set(s,a),i.set(s,a)}))}}let s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.dispose()})),s=[],t.setRaw("rangeGraphics",s),this.axisRanges.each((e=>{const i=e.container,a=this._makeGraphics(e.columns,t);s&&s.push(a),a.setPrivate("list",e.columns),i.children.push(a)}))}}createAxisRange(t){return r.each(this.dataItems,(t=>{const e=t.get("graphics");e&&(e.dispose(),t.set("graphics",void 0))})),super.createAxisRange(t)}_updateGraphics(t,e,i){let s=t.get("graphics");const a=this._xField,n=this._yField,l=t.get(a),d=t.get(n),g=this.get("exactLocationX",!1);if(null!=l&&null!=d){const l=this._xOpenField,d=this._yOpenField,c=this.get("locationX",t.get("locationX",.5)),u=this.get("locationY",t.get("locationY",.5)),m=this.get("openLocationX",t.get("openLocationX",c)),p=this.get("openLocationY",t.get("openLocationY",u)),_=s.get("width"),x=s.get("height"),v=this.get("stacked"),y=this.get("xAxis"),f=this.get("yAxis"),b=y.get("start"),D=y.get("end"),P=f.get("start"),w=f.get("end");let T,A,I,M,k=this.get("vcy",1),C=this.get("vcx",1),S=!1,Y=!1;if(0==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C,g),A=y.getDataItemPositionX(t,a,i,C,g),I=f.getDataItemPositionY(t,n,u,k),this._yOpenField!==this._yField)M=f.getDataItemPositionY(t,d,p,k);else if(v){let e=t.get("stackToItemY");M=e?f.getDataItemPositionY(e,n,p,e.component.get("vcy")):f.basePosition()}else M=f.basePosition();t.setRaw("point",{x:T+(A-T)/2,y:I}),Y=!0}else if(1==i){let e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5;if(x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}if(I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),A=y.getDataItemPositionX(t,a,c,C,g),this._xOpenField!==this._xField)T=y.getDataItemPositionX(t,l,m,C,g);else if(v){let e=t.get("stackToItemX");T=e?y.getDataItemPositionX(e,a,m,e.component.get("vcx"),g):y.basePosition()}else T=y.basePosition();S=!0,t.setRaw("point",{x:A,y:I+(M-I)/2})}else if(2==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C),A=y.getDataItemPositionX(t,a,i,C),e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5,x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),t.setRaw("point",{x:T+(A-T)/2,y:I+(M-I)/2})}this._applyGraphicsStates(t,e),this._updateSeriesGraphics(t,s,T,A,I,M,S,Y),TD&&A>D||I=w&&M>w||h.isNaN(T)||h.isNaN(I)?this._toggleColumn(t,!1):this._toggleColumn(t,!0);let F=t.get("rangeGraphics");F&&r.each(F,(e=>{this._updateSeriesGraphics(t,e,T,A,I,M,S,Y)}))}else this._toggleColumn(t,!1)}_updateSeriesGraphics(t,e,i,s,a,o,n,r){const l=e.get("width"),d=e.get("height"),g=e.get("maxWidth"),c=e.get("maxHeight"),u=this.getPoint(i,a),m=this.getPoint(s,o),p=t.get("point");if(p){const t=this.getPoint(p.x,p.y);p.x=t.x+this._x,p.y=t.y+this._y}if(i=u.x,s=m.x,a=u.y,o=m.y,h.isNumber(l)){const t=(s-i-l)/2;i+=t,s-=t}if(h.isNumber(g)&&g{this._toggleColumn(t,!1)}))}_applyGraphicsStates(t,e){const i=t.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),n=i.states.lookup("riseFromPrevious");if(s||o||a||n){const i=this.get("xAxis"),r=this.get("yAxis"),l=this.get("baseAxis");let d,g,c;l===i&&r.isType("ValueAxis")?(d=t.get(this._yOpenField),g=t.get(this._yField),c=e.get(this._yField)):l===r&&i.isType("ValueAxis")&&(d=t.get(this._xOpenField),g=t.get(this._xField),c=e.get(this._xField)),h.isNumber(d)&&h.isNumber(g)&&(g{const e=t.getPrivate("list");e&&e.removeValue(t),t.dispose()}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.hide(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.hide(e))})),yield Promise.all(s)}))}_toggleColumn(t,e){const i=t.get("graphics");i&&i.setPrivate("visible",e);const s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.setPrivate("visible",e)}));const a=t.bullets;a&&r.each(a,(t=>{t.setPrivate("hidden",!e)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.show(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.show(e))})),yield Promise.all(s)}))}updateLegendMarker(t){let e=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!t){const e=this.dataItems[this.endIndex()-1];e&&(t=e)}if(e){let i=this.columns.template;if(t){let e=t.get("graphics");e&&(i=e)}const s=e.get("markerRectangle");if(s&&!e.get("itemContainer").get("disabled")){const t=s.states.lookup("default");r.each(n.u,(e=>{const a=i.get(e,this.get(e));s.set(e,a),t.set(e,a)}))}}}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget"))return super._getTooltipTarget(t);return t.get("graphics")||this}}l.className="BaseColumnSeries",l.classNames=a.o.classNames.concat([l.className])},2976:function(t,e,i){i.d(e,{j:function(){return a}});var s=i(3497);class a extends s.c{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();const t=this._display;t.moveTo(this.get("lowX0",0),this.get("lowY0",0)),t.lineTo(this.get("lowX1",0),this.get("lowY1",0)),t.moveTo(this.get("highX0",0),this.get("highY0",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0))}}a.className="Candlestick",a.classNames=s.c.classNames.concat([a.className])},2312:function(t,e,i){i.d(e,{$:function(){return l}});var s=i(62),a=i(2976),o=i(5769),n=i(7144),r=i(7652),h=i(5071);class l extends s.d{constructor(){super(...arguments),this.columns=this.addDisposer(new n.o(o.YS.new({themeTags:["autocolor"]}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_updateGraphics(t,e,i){super._updateGraphics(t,e,i);const s=this.getRaw("xAxis"),a=this.getRaw("yAxis");let o,n,r,h,l,d,g,c,u,m=this.get("vcy",1),p=this.get("vcx",1),_=this.get("locationX",t.get("locationX",.5)),x=this.get("locationY",t.get("locationY",.5)),v=this.get("openLocationX",t.get("openLocationX",_)),y=this.get("openLocationY",t.get("openLocationY",x));if(0==i){let e=a.getDataItemPositionY(t,this._yOpenField,1,m),i=a.getDataItemPositionY(t,this._yField,1,m);h=a.getDataItemPositionY(t,this._yLowField,1,m),c=a.getDataItemPositionY(t,this._yHighField,1,m),g=Math.max(e,i),r=Math.min(e,i);let x=this._aLocationX0+v-.5,y=this._aLocationX1+_-.5;o=s.getDataItemPositionX(t,this._xField,x+(y-x)/2,p),n=o,l=o,d=o,u="vertical"}else{let e=s.getDataItemPositionX(t,this._xOpenField,1,p),i=s.getDataItemPositionX(t,this._xField,1,p);n=s.getDataItemPositionX(t,this._xLowField,1,p),d=s.getDataItemPositionX(t,this._xHighField,1,p),l=Math.max(e,i),o=Math.min(e,i);let _=this._aLocationY0+y-.5,v=this._aLocationY1+x-.5;r=a.getDataItemPositionY(t,this._yField,_+(v-_)/2,m),h=r,g=r,c=r,u="horizontal"}this._updateCandleGraphics(t,o,n,r,h,l,d,g,c,u)}_updateCandleGraphics(t,e,i,s,a,o,n,r,l,d){let g=t.get("graphics");if(g){let c=this.getPoint(e,s),u=this.getPoint(i,a),m=this.getPoint(o,r),p=this.getPoint(n,l);if(this.get("turboMode")){const t=this.allColumnsData[this.allColumnsData.length-1];t.lowX0=c.x,t.lowY0=c.y,t.lowX1=u.x,t.lowY1=u.y,t.highX0=m.x,t.highY0=m.y,t.highX1=p.x,t.highY1=p.y}else{let e=g.x(),i=g.y();g.set("lowX0",c.x-e),g.set("lowY0",c.y-i),g.set("lowX1",u.x-e),g.set("lowY1",u.y-i),g.set("highX0",m.x-e),g.set("highY0",m.y-i),g.set("highX1",p.x-e),g.set("highY1",p.y-i),g.set("orientation",d);let s=t.get("rangeGraphics");s&&h.each(s,(t=>{t.set("lowX0",c.x-e),t.set("lowY0",c.y-i),t.set("lowX1",u.x-e),t.set("lowY1",u.y-i),t.set("highX0",m.x-e),t.set("highY0",m.y-i),t.set("highX1",p.x-e),t.set("highY1",p.y-i),t.set("orientation",d)}))}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),h.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity,g=e.lowX0,c=e.lowY0,u=e.lowX1,m=e.lowY1,p=e.highX0,_=e.highY0,x=e.highX1,v=e.highY1;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.moveTo(g,c),t.lineTo(u,m),t.moveTo(p,_),t.lineTo(x,v),t.endStroke(),t.endFill()}))}))}_processAxisRange(t){super._processAxisRange(t),t.columns=new n.o(o.YS.new({}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(t.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,t.columns.template])))}}l.className="CandlestickSeries",l.classNames=s.d.classNames.concat([l.className])},62:function(t,e,i){i.d(e,{d:function(){return d}});var s=i(757),a=i(5769),o=i(7144),n=i(3497),r=i(1479),h=i(7652),l=i(5071);class d extends s.d{constructor(){super(...arguments),this.allColumns=this.children.push(r.T.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(t.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,t.columns.template])))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),l.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.endStroke(),t.endFill()}))}))}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(t,e,i,s,a,o,n,r){if(this.get("turboMode")){e.virtualParent=this.chart,e.parent&&(this.mainContainer.children.removeValue(e),e._parent=void 0);const n=e.get("stroke"),r=e.get("fillOpacity",1),h=e.get("strokeOpacity",1),l=e.get("strokeWidth",1),d=e.get("fill"),g=this.getPoint(i,a),c=this.getPoint(s,o),u=t.get("point");if(u){const t=this.getPoint(u.x,u.y);u.x=t.x+this._x,u.y=t.y+this._y}i=g.x,s=c.x,a=g.y,o=c.y,t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:n,fill:d,strokeWidth:l,strokeOpacity:h,fillOpacity:r})}else e.parent||this.mainContainer.children.push(e),super._updateSeriesGraphics(t,e,i,s,a,o,n,r)}}d.className="ColumnSeries",d.classNames=s.d.classNames.concat([d.className])},2338:function(t,e,i){i.d(e,{e:function(){return p}});var s=i(4604),a=i(1479),o=i(774),n=i(3794),r=i(5769),h=i(7144),l=i(1112),d=i(9361),g=i(7142),c=i(5040),u=i(5071),m=i(7652);class p extends s.o{constructor(){super(...arguments),this._strokeGenerator=(0,o.Z)(),this._fillGenerator=(0,n.Z)(),this.strokes=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template])))),this.fills=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template])))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0((function(t){return t[3]})),this._fillGenerator.x0((function(t){return t[2]})),this._fillGenerator.y1((function(t){return t[1]})),this._fillGenerator.x1((function(t){return t[0]})),super._afterNew()}makeStroke(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}makeFill(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let t=this.get("xAxis"),e=this.get("yAxis");if(this.isDirty("stroke")){const t=this.get("stroke");this.strokes.template.set("stroke",t);const e=this._legendStroke;e&&e.states.lookup("default").set("stroke",t)}if(this.isDirty("fill")){const t=this.get("fill");this.fills.template.set("fill",t);const e=this._legendFill;e&&e.states.lookup("default").set("fill",t)}if(this.isDirty("fillPattern")){const t=this.get("fillPattern");this.fills.template.set("fillPattern",t);const e=this._legendFill;e&&e.states.lookup("default").set("fillPattern",t)}if(this.isDirty("curveFactory")){const t=this.get("curveFactory");t&&(this._strokeGenerator.curve(t),this._fillGenerator.curve(t))}if(t.inited&&e.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){const t=this.dataItems;this.fills.each((t=>{t.setPrivate("visible",!1)})),this.strokes.each((t=>{t.setPrivate("visible",!1)})),this.axisRanges.each((t=>{let e=t.fills;e&&e.each((t=>{t.setPrivate("visible",!1)}));let i=t.strokes;i&&i.each((t=>{t.setPrivate("visible",!1)}))}));let e=this.startIndex(),i=this.strokes.template.get("templateField"),s=this.fills.template.get("templateField"),a=!0,o=!0;i&&(a=!1),s&&(o=!1);for(let n=e-1;n>=0;n--){let r=t[n],h=!0,l=r.dataContext;if(i&&l[i]&&(a=!0),s&&l[s]&&(o=!0),u.each(this._valueFields,(t=>{c.isNumber(r.get(t))||(h=!1)})),h&&a&&o){e=n;break}}let n=t.length,r=this.endIndex();if(r{c.isNumber(i.get(t))||(s=!1)})),s){r=e+1;break}}}if(e>0&&e--,this._endIndex=r,this._clearGraphics(),this._sindex=0,this._dindex=e,1==n)this._startSegment(0);else for(;this._dindex{t.fills.clear(),t.strokes.clear()}))}_startSegment(t){const e=this.dataItems;let i=this._endIndex,s=i;const a=this.get("autoGapCount"),o=this.get("connect"),n=this.makeFill(this.fills),h=this._fillTemplate,l=this.fills.template;h&&h!=l&&(n.template=h),n.setPrivate("visible",!0);const d=this.makeStroke(this.strokes),g=this._strokeTemplate;g&&g!=this.strokes.template&&(d.template=g),d.setPrivate("visible",!0);let c=this.get("xAxis"),u=this.get("yAxis"),m=this.get("baseAxis"),p=this.get("vcx",1),_=this.get("vcy",1),x=this._xField,v=this._yField,y=this._xOpenField,f=this._yOpenField;const b=this.get("openValueXField"),D=this.get("openValueYField");b||(y=this._xField),D||(f=this._yField);const P=this.get("stacked"),w=c.basePosition(),T=u.basePosition();let A;A=m===u?this._yField:this._xField;const I=[];let M=[];I.push(M);const k=this.strokes.template.get("templateField"),C=this.fills.template.get("templateField");let S=this.get("locationX",.5),Y=this.get("locationY",.5),F=this.get("openLocationX",S),X=this.get("openLocationY",Y);const L=this.get("minDistance",0);let N,R=this.fills.template.get("visible");this.axisRanges.length>0&&(R=!0);let V=!1;(P||b||D)&&(V=!0);const G={points:M,segments:I,stacked:P,getOpen:V,basePosX:w,basePosY:T,fillVisible:R,xField:x,yField:v,xOpenField:y,yOpenField:f,vcx:p,vcy:_,baseAxis:m,xAxis:c,yAxis:u,locationX:S,locationY:Y,openLocationX:F,openLocationY:X,minDistance:L};let O=this._strokeTemplate,E=this._fillTemplate;for(N=t;Nt){s=N;break}O=e,d.template=e}}if(C){let e=i.dataContext[C];if(e){if(e instanceof r.YS||(e=r.YS.new(e)),this._fillTemplate=e,N>t){s=N;break}E=e,n.template=e}}if(!o){let t=e[N+1];t&&m.shouldGap(i,t,a,A)&&(M=[],I.push(M),G.points=M)}}n.setRaw("userData",[t,N]),d.setRaw("userData",[t,N]),N===i&&this._endLine(M,I[0][0]),d&&this._drawStroke(d,I),n&&this._drawFill(n,I),this.axisRanges.each((e=>{const i=e.container,s=e.fills,a=this.makeFill(s);i&&i.children.push(a),a.setPrivate("visible",!0),this._drawFill(a,I);const o=e.strokes,n=this.makeStroke(o);i&&i.children.push(n),O&&O!=this.strokes.template&&(n.template=O),E&&E!=this.fills.template&&(a.template=E),n.setPrivate("visible",!0),this._drawStroke(n,I),a.setRaw("userData",[t,N]),n.setRaw("userData",[t,N])}))}_getPoints(t,e){let i=e.points,s=t.get("locationX",e.locationX),a=t.get("locationY",e.locationY);const o=this.get("exactLocationX",!1),n=this.get("exactLocationY",!1);let r=e.xAxis.getDataItemPositionX(t,e.xField,s,e.vcx,o),h=e.yAxis.getDataItemPositionY(t,e.yField,a,e.vcy,n);if(this._shouldInclude(r)){const s=this.getPoint(r,h),a=[s.x,s.y];if(s.x+=this._x,s.y+=this._y,t.set("point",s),e.fillVisible){let i=r,s=h;if(e.baseAxis===e.xAxis?s=e.basePosY:e.baseAxis===e.yAxis&&(i=e.basePosX),e.getOpen){let a=t.get(e.xOpenField),r=t.get(e.yOpenField);if(null!=a&&null!=r){let a=t.get("openLocationX",e.openLocationX),r=t.get("openLocationY",e.openLocationY);if(e.stacked){let h=t.get("stackToItemX"),l=t.get("stackToItemY");h?(i=e.xAxis.getDataItemPositionX(h,e.xField,a,h.component.get("vcx"),o),c.isNaN(i)&&(i=e.basePosX)):i=e.yAxis===e.baseAxis?e.basePosX:e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),l?(s=e.yAxis.getDataItemPositionY(l,e.yField,r,l.component.get("vcy"),n),c.isNaN(s)&&(s=e.basePosY)):s=e.xAxis===e.baseAxis?e.basePosY:e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),s=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}}let l=this.getPoint(i,s);a[2]=l.x,a[3]=l.y}if(e.minDistance>0){const t=a[0],s=a[1],o=a[2],n=a[3],r=this._previousPoint,h=r[0],l=r[1],d=r[2],g=r[3];(Math.hypot(t-h,s-l)>e.minDistance||o&&n&&Math.hypot(o-d,n-g)>e.minDistance)&&(i.push(a),this._previousPoint=a)}else i.push(a)}}_endLine(t,e){}_drawStroke(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._strokeGenerator.context(t),this._strokeGenerator(e)}))}))}_drawFill(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._fillGenerator.context(t),this._fillGenerator(e)}))}))}_processAxisRange(t){super._processAxisRange(t),t.fills=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,t.fills.template]))),t.strokes=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,t.strokes.template])))}createLegendMarker(t){const e=this.get("legendDataItem");if(e){const t=e.get("marker"),i=e.get("markerRectangle");i&&i.setPrivate("visible",!1),t.set("background",g.A.new(t._root,{fillOpacity:0,fill:(0,l.$_)(0)}));const s=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=s;const o=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;const n=this._root.interfaceColors.get("disabled");if(s.states.create("disabled",{fill:n,stroke:n}),o.states.create("disabled",{fill:n,stroke:n}),this.bullets.length>0){const e=this.bullets.getIndex(0);if(e){const i=e(t._root,this,new d.z(this,{legend:!0},{}));if(i){const e=i.get("sprite");e instanceof a.T&&e.states.create("disabled",{fill:n,stroke:n}),e&&(e.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),t.children.push(e),e.setAll({x:t.width()/2,y:t.height()/2}),t.events.on("boundschanged",(()=>{e.setAll({x:t.width()/2,y:t.height()/2})})))}}}}}}p.className="LineSeries",p.classNames=s.o.classNames.concat([p.className])},4604:function(t,e,i){i.d(e,{o:function(){return u}});var s=i(7582),a=i(9361),o=i(3399),n=i(7144),r=i(8777),h=i(1479),l=i(5040),d=i(256),g=i(5071),c=i(7652);class u extends o.F{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(r.W.new(this._root,{})),this.axisRanges=new n.aV,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new a.z(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");const t=this.get("xAxis");t&&(this._xRenderer=t.get("renderer"));const e=this.get("yAxis");e&&(this._yRenderer=e.get("renderer")),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxisRange(t)}));else if("push"===t.type)this._processAxisRange(t.newValue);else if("setIndex"===t.type)this._processAxisRange(t.newValue);else if("insertIndex"===t.type)this._processAxisRange(t.newValue);else if("removeIndex"===t.type)this._removeAxisRange(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value)}}))),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this.onPrivate("endIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this._makeFieldNames()}_processAxisRange(t){const e=r.W.new(this._root,{});t.container=e,this.children.push(e),t.series=this;const i=t.axisDataItem;i.setRaw("isRange",!0);const s=i.component;if(s){s._processAxisRange(i,["range","series"]);const t=i.get("bullet");if(t){const e=t.get("sprite");e&&e.setPrivate("visible",!1)}const a=i.get("axisFill");a&&e.set("mask",a),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),d.each(this._dataSets,((t,e)=>{g.each(e,(t=>{t.dispose()})),e.length=0}))}_removeAxisRange(t){const e=t.axisDataItem,i=e.component;e.dispose(),g.remove(i._seriesAxisRanges,e);const s=t.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&g.each(this.valueXFields,(t=>{if(this.get(t+"Field")){this._valueXFields.push(t);let e=this.get(t+"Show");this.__valueXShowFields.push(e),-1!=e.indexOf("Working")?this._valueXShowFields.push(e.split("Working")[0]):this._valueXShowFields.push(e)}})),this.valueYFields&&g.each(this.valueYFields,(t=>{if(this.get(t+"Field")){this._valueYFields.push(t);let e=this.get(t+"Show");this.__valueYShowFields.push(e),-1!=e.indexOf("Working")?this._valueYShowFields.push(e.split("Working")[0]):this._valueYShowFields.push(e)}}))}_dispose(){super._dispose(),this._bullets={};const t=this.chart;t&&t.series.removeValue(this),g.removeFirst(this.get("xAxis").series,this),g.removeFirst(this.get("yAxis").series,this)}_min(t,e){let i=(a=e,null==(s=this.getPrivate(t))?a:null==a?s:aa?s:a);var s,a;this.setPrivate(t,i)}_shouldMakeBullet(t){const e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!e.inited||!i.inited)return!1;const a=this.get("minBulletDistance",0);if(a>0){let t=this.startIndex(),o=this.endIndex()-t;if(e==s){if(this._xRenderer.axisLength()/o{g.each(this._valueXShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedXValue(i,t)),this._min("minX",e),this._max("maxX",e))})),g.each(this._valueYShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedYValue(i,t)),this._min("minY",e),this._max("maxY",e))})),t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)})),t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&t.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&e.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(t._groupSeriesData(this),e._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let s=this.startIndex(),a=this.endIndex(),o=this.get("minBulletDistance",0);if(o>0&&i&&(i.get("renderer").axisLength()/(a-s)>o?this._showBullets=!0:this._showBullets=!1),(this._psi!=s||this._pei!=a||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const o=this.get("vcx",1),n=this.get("vcy",1),r=this.get("stacked",!1),h=this.getPrivate("outOfSelection");if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),h)e.markDirtySelectionExtremes();else for(let t=s;t{i.open=void 0,i.close=void 0,t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)}))}_makeRangeMask(){if(this.axisRanges.length>0){let t=this._mainContainerMask;null==t&&(t=this.children.push(h.T.new(this._root,{})),this._mainContainerMask=t,t.set("draw",((e,i)=>{const s=this.parent;if(s){const t=this._root.container.width(),a=this._root.container.height();e.moveTo(-t,-a),e.lineTo(-t,2*a),e.lineTo(2*t,2*a),e.lineTo(2*t,-a),e.lineTo(-t,-a),this.axisRanges.each((t=>{const a=t.axisDataItem.get("axisFill");if(s&&a){let t=a.get("draw");t&&t(e,i)}}))}this.mainContainer._display.mask=t._display}))),t.markDirty(),t._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const t=this.chart;if(t){const e=t.series.indexOf(this);if(this._couldStackTo=[],e>0){let i;for(let s=e-1;s>=0&&(i=t.series.getIndex(s),i.get("xAxis")!==this.get("xAxis")||i.get("yAxis")!==this.get("yAxis")||i.className!==this.className||(this._couldStackTo.push(i),i.get("stacked")));s--);}this._stackDataItems()}}_unstack(){d.each(this._reallyStackedTo,((t,e)=>{delete e._stackedSeries[this.uid]})),this._reallyStackedTo={},g.each(this.dataItems,(t=>{t.setRaw("stackToItemY",void 0),t.setRaw("stackToItemX",void 0)}))}_handleRemoved(){const t=this.get("xAxis");t&&t._handleSeriesRemoved();const e=this.get("yAxis");e&&e._handleSeriesRemoved()}_stackDataItems(){const t=this.get("baseAxis"),e=this.get("xAxis"),i=this.get("yAxis");let s,a;t===e?(s="valueY",a="stackToItemY"):t===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,n=0;const r=this.get("stackToNegative");this._reallyStackedTo={},g.each(this.dataItems,(t=>{for(let e=0;e=0&&n>=0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}if(d<0&&n<0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}else if(l.isNumber(d)&&l.isNumber(n)){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}n++}))}processXSelectionDataItem(t,e,i){g.each(this.__valueXShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedXValueWorking(t,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*e))}))}processYSelectionDataItem(t,e,i){g.each(this.__valueYShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedYValueWorking(t,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*e))}))}getStackedYValueWorking(t,e){const i=t.get("stackToItemY");if(i){const t=i.component;return i.get(e,0)*t.get("vcy",1)+this.getStackedYValueWorking(i,e)}return 0}getStackedXValueWorking(t,e){const i=t.get("stackToItemX");if(i){const t=i.component;return i.get(e,0)*t.get("vcx",1)+this.getStackedXValueWorking(i,e)}return 0}getStackedYValue(t,e){const i=t.get("stackToItemY");return i?i.get(e,0)+this.getStackedYValue(i,e):0}getStackedXValue(t,e){const i=t.get("stackToItemX");return i?i.get(e,0)+this.getStackedXValue(i,e):0}createLegendMarker(t){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(t){let e=t.get("sprite");if(e){let i=e.dataItem,s=t.get("locationX",i.get("locationX",.5)),a=t.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),n=this.get("yAxis"),r=this.get("exactLocationX",!1),h=this.get("exactLocationY",!1),l=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),r),d=n.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),h),g=this.getPoint(l,d),c=i.get("left",g.x),u=i.get("right",g.x),m=i.get("top",g.y),p=i.get("bottom",g.y),_=0,x=0,v=u-c,y=p-m;if(this._shouldShowBullet(l,d)){e.setPrivate("visible",!t.getPrivate("hidden"));let o=t.get("field");const n=this.get("baseAxis"),u=this.get("xAxis"),m=this.get("yAxis");if(null!=o){let t;n==u?("value"==o?t=this._yField:"open"==o?t=this._yOpenField:"high"==o?t=this._yHighField:"low"==o&&(t=this._yLowField),t&&(d=m.getDataItemPositionY(i,t,0,this.get("vcy",1),h),g=this._yRenderer.positionToPoint(d),x=g.y,_=c+v*s)):("value"==o?t=this._xField:"open"==o?t=this._xOpenField:"high"==o?t=this._xHighField:"low"==o&&(t=this._xLowField),t&&(l=u.getDataItemPositionX(i,t,0,this.get("vcx",1),r),g=this._xRenderer.positionToPoint(l),_=g.x,x=p-y*a))}else _=c+v*s,x=p-y*a;const f=t.get("stacked");if(f){const t=this.chart;if(n==u){let i=this._bullets[l+"_"+d];if(i){let s=i.bounds(),a=e.localBounds(),o=x;x=s.top,"down"==f?x=s.bottom-a.top:"auto"==f?t&&(o{e!=this._mainDataItems&&g.each(e,(t=>{t.dispose()}))})),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){g.each(this._dataItems,(t=>{let e=t.bullets;e&&g.each(e,(t=>{if(t){let e=t.get("sprite");e&&e.setPrivate("visible",!1)}}))})),this._selectionProcessed=!1}show(t){const e=Object.create(null,{show:{get:()=>super.show}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.show.call(this,t).then((()=>{this._isShowing=!1;let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis");e!==i&&e.markDirtySelectionExtremes(),t!==i&&t.markDirtySelectionExtremes()}))),i.push(this.bulletsContainer.show(t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)}))}hide(t){const e=Object.create(null,{hide:{get:()=>super.hide}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.hide.call(this,t).then((()=>{this._isHiding=!1}))),i.push(this.bulletsContainer.hide(t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)];l.isNumber(e)||(e=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");g.each(this._valueFields,(i=>{s.push(t.animate({key:i+"Working",to:t.get(i),duration:e,easing:a}).waitForStop())})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)];let a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),l.isNumber(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),n=this.get("xAxis"),r=this.get("yAxis"),h=this.get("baseAxis"),d=this.get("stacked");if(h!==n&&h||g.each(this._valueYFields,(i=>{let a=r.getPrivate("min"),n=r.baseValue();l.isNumber(a)&&a>n&&(n=a),d&&(n=0),null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:n,duration:e,easing:o}).waitForStop())})),h===r||!h){let i=n.getPrivate("min"),a=n.baseValue();l.isNumber(i)&&i>a&&(a=i),d&&(a=0),g.each(this._valueXFields,(i=>{null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:a,duration:e,easing:o}).waitForStop())}))}yield Promise.all(s)}))}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const t=this._stackedSeries;t&&d.each(t,((t,e)=>{e._stackDirty||e._markDirtyStack()}))}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(t){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(t),this.updateLegendValue(t));const e=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(e)if(!this.isHidden()&&this.get("visible")){if(e._setDataItem(t),t){let a=this.get("locationX",0),o=this.get("locationY",1),n=t.get("locationX",a),r=t.get("locationY",o);const h=this.get("xAxis"),l=this.get("yAxis"),d=this.get("vcx",1),c=this.get("vcy",1),u=h.getDataItemPositionX(t,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*n,d,i),m=l.getDataItemPositionY(t,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*r,c,s),p=this.getPoint(u,m);let _=!0;if(g.each(this._valueFields,(e=>{null==t.get(e)&&(_=!1)})),_){const i=this.chart;i&&i.inPlot(p)?(e.label.text.markDirtyText(),e.set("tooltipTarget",this._getTooltipTarget(t)),e.set("pointTo",this._display.toGlobal({x:p.x,y:p.y}))):e._setDataItem(void 0)}else e._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const t=this.get("tooltip");return t&&t.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget")){const e=t.bullets;if(e&&e.length>0){const t=e[0].get("sprite");if(t)return t}}return this}updateLegendValue(t){const e=this.get("legendDataItem");if(e){const i=e.get("label");if(i){let e="";t?(i._setDataItem(t),e=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),e=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",e)}const s=e.get("valueLabel");if(s){let e="";t?(s._setDataItem(t),e=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),e=this.get("legendRangeValueText",s.get("text",""))),s.set("text",e)}}}_getItemReaderLabel(){let t="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}",t}getPoint(t,e){let i=this._xRenderer.positionToCoordinate(t),s=this._yRenderer.positionToCoordinate(e),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(t){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(t){return this.axisRanges.push({axisDataItem:t})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(t){const e=this.get("xAxis");if(this.get("baseAxis")==e&&e.isType("DateAxis")){const i=e.baseDuration(),s=e.getPrivate("selectionMin",e.getPrivate("min",0)),a=i*this.get("locationX",.5);let o=-1/0;for(;o{const e=this.startGrip,i=this.endGrip;let s=e.x(),a=e.y(),o=i.x(),n=i.y();const r=this.height(),h=this.width();s>o&&([s,o]=[o,s]),a>n&&([a,n]=[n,a]),"horizontal"===this.get("orientation")?(t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,r),t.lineTo(0,r),t.lineTo(0,0),t.moveTo(o,0),t.lineTo(h,0),t.lineTo(h,r),t.lineTo(o,r),t.lineTo(o,0)):(t.moveTo(0,0),t.lineTo(0,a),t.lineTo(h,a),t.lineTo(h,0),t.lineTo(0,0),t.moveTo(0,n),t.lineTo(0,r),t.lineTo(h,r),t.lineTo(h,n),t.lineTo(0,n))}))}}r.className="XYChartScrollbar",r.classNames=a.L.classNames.concat([r.className]);var h=i(3355),l=i(757),d=i(6515),g=i(7497),c=i(1926),u=i(5040),m=i(5071);class p extends g.${constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category"),super._afterNew()}_prepareAxisItems(){this.setPrivateRaw("baseInterval",this.get("baseInterval"));const t=this.get("renderer"),e=this.dataItems.length;let i=this.startIndex();i>0&&i--;let s=this.endIndex();s=o&&(g=!0):r%l.count==0&&r!=y&&(g=!0),!h&&g&&(i-.7*o0){let t=f[0].dataItem.get("index",0);m.each(f,(e=>{const i=e.dataItem,s=e.format;this._createAssets(i,[]),this._toggleDataItem(i,!0);let a=Number(i.get("category")),n=new Date(a);const r=i.get("label");r&&r.set("text",this._root.dateFormatter.format(n,s)),t++,this._prepareDataItem(i,t,o)}))}}baseDuration(){return c.getIntervalDuration(this.getPrivate("baseInterval"))}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let t=this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];return this._root.dateFormatter.format(new Date(i.get("category",0)),this.get("tooltipDateFormat",t))}}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}}p.className="CategoryDateAxis",p.classNames=g.$.classNames.concat([p.className]);var _=i(5638),x=i(8701),v=i(7261),y=i(751);class f extends v.m{constructor(){super(...arguments),this._dataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),super._afterNew()}_adjustMinMax(t,e,i,s){let a;const o=this.getDurationFormatter(),n=this.get("baseUnit");if(this.setRaw("maxPrecision",0),"millisecond"==n||"second"==n||"minute"==n||"hour"==n){i<=1&&(i=1),i=Math.round(i);let s=e-t;0===s&&(s=Math.abs(e));let o=s/i,r=[60,30,20,15,10,2,1],h=1;"hour"==n&&(r=[24,12,6,4,2,1]);for(let t of r)if(s/t>i){h=t;break}let l=Math.ceil((e-t)/h/i),d=Math.log(Math.abs(l))*Math.LOG10E,g=Math.pow(10,Math.floor(d))/10,c=l/g;l=y.closest(r,c)*g,o=h*l,a={min:t=Math.floor(t/o)*o,max:e=Math.ceil(e/o)*o,step:o}}else a=super._adjustMinMax(t,e,i,s);return this.setPrivateRaw("durationFormat",o.getFormat(a.step,a.max,n)),a}_formatText(t){return this.getDurationFormatter().format(t,this.getPrivate("durationFormat"),this.get("baseUnit"))}getTooltipText(t,e){const i=this.getDurationFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=y.round(this.positionToValue(t),a);return i.format(o,this.getPrivate("durationFormat"),this.get("baseUnit"))}}f.className="DurationAxis",f.classNames=v.m.classNames.concat([f.className]);var b=i(2586),D=i(6293),P=i(9084),w=i(4714),T=i(8943),A=i(7109),I=i(6275),M=i(6284),k=i(7909),C=i(4604),S=i(2976),Y=i(2312);class F extends S.j{_draw(){const t=this._display;t.moveTo(this.get("lowX1",0),this.get("lowY1",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0));let e=this.width(),i=this.height();if("vertical"==this.get("orientation")){let s=i,a=0;t.moveTo(0,s),t.lineTo(e/2,s),t.moveTo(e/2,a),t.lineTo(e,a)}else{let s=0,a=e;t.moveTo(s,0),t.lineTo(s,i/2),t.moveTo(a,i/2),t.lineTo(a,i)}}}F.className="OHLC",F.classNames=S.j.classNames.concat([F.className]);var X=i(5769),L=i(7144);class N extends Y.${constructor(){super(...arguments),this.columns=this.addDisposer(new L.o(X.YS.new({themeTags:["autocolor"]}),(()=>F._new(this._root,{themeTags:n.mergeTags(this.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=this.mainContainer.children.push(e.make());return i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new L.o(X.YS.new({}),(()=>F._new(this._root,{themeTags:n.mergeTags(t.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template,t.columns.template])))}}N.className="OHLCSeries",N.classNames=Y.$.classNames.concat([N.className]);var R=i(62),V=i(2338),G=i(5892);class O extends V.e{_afterNew(){this._setDefault("curveFactory",(0,G.$)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,G.$)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}O.className="SmoothedYLineSeries",O.classNames=V.e.classNames.concat([O.className]);var E=i(8289);class z extends V.e{_afterNew(){this._setDefault("curveFactory",(0,E.G)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,E.G)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}z.className="SmoothedXLineSeries",z.classNames=V.e.classNames.concat([z.className]);var U=i(2818);class W extends V.e{_afterNew(){this._setDefault("curveFactory",U.ZP.tension(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",U.ZP.tension(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}W.className="SmoothedXYLineSeries",W.classNames=V.e.classNames.concat([W.className]);var B=i(6245);function H(t,e){this._context=t,this._t=e}function Z(t){return new H(t,1)}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}};class Q extends V.e{_afterNew(){this._setDefault("curveFactory",Z),super._afterNew()}_getPoints(t,e){let i=e.points,s=this.get("stepWidth",B.AQ).value/2,a=t.get("locationX",e.locationX),o=t.get("locationY",e.locationY),n=a,r=o;e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s);let h=e.xAxis.getDataItemPositionX(t,e.xField,a,e.vcx),l=e.yAxis.getDataItemPositionY(t,e.yField,o,e.vcy),d=e.xAxis.getDataItemPositionX(t,e.xField,n,e.vcx),g=e.yAxis.getDataItemPositionY(t,e.yField,r,e.vcy);if(this._shouldInclude(h)){const c=this.getPoint(h,l),u=[c.x,c.y],m=this.getPoint(d,g),p=[m.x,m.y];if(e.fillVisible){let i=h,c=l,m=d,_=g;if(e.baseAxis===e.xAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(i=e.basePosX,m=e.basePosX),e.getOpen){let h=t.get(e.xOpenField),l=t.get(e.yOpenField);if(null!=h&&null!=l)if(a=t.get("openLocationX",e.openLocationX),o=t.get("openLocationY",e.openLocationY),n=a,r=o,e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s),e.stacked){let s=t.get("stackToItemX"),h=t.get("stackToItemY");s?(i=e.xAxis.getDataItemPositionX(s,e.xField,a,s.component.get("vcx")),m=e.xAxis.getDataItemPositionX(s,e.xField,n,s.component.get("vcx"))):e.yAxis===e.baseAxis?(i=e.basePosX,m=e.basePosX):e.baseAxis===e.yAxis&&(i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx)),h?(c=e.yAxis.getDataItemPositionY(h,e.yField,o,h.component.get("vcy")),_=e.yAxis.getDataItemPositionY(h,e.yField,r,h.component.get("vcy"))):e.xAxis===e.baseAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy))}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy)}let x=this.getPoint(i,c),v=this.getPoint(m,_);u[2]=x.x,u[3]=x.y,p[2]=v.x,p[3]=v.y}i.push(u),i.push(p),t.set("point",{x:u[0]+(p[0]-u[0])/2,y:u[1]+(p[1]-u[1])/2})}this.get("noRisers")&&(e.points=[],e.segments.push(i))}}Q.className="StepLineSeries",Q.classNames=V.e.classNames.concat([Q.className]);var j=i(55)},7825:function(t,e,i){i.r(e),i.d(e,{am5xy:function(){return s}});const s=i(778)},2818:function(t,e,i){function s(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function a(t,e){this._context=t,this._k=(1-e)/6}i.d(e,{xm:function(){return s}}),a.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:s(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:s(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.ZP=function t(e){function i(t){return new a(t,e)}return i.tension=function(e){return t(+e)},i}(0)}},function(t){var e=(7825,t(t.s=7825)),i=window;for(var s in e)i[s]=e[s];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=xy.js.map diff --git a/web/amCharts/bar/chart_0079_bar.inline03.js b/web/amCharts/bar/chart_0079_bar.inline03.js new file mode 100644 index 0000000000000000000000000000000000000000..c27a274e7972e9ecbd57d20b441e60fc864ffc7d --- /dev/null +++ b/web/amCharts/bar/chart_0079_bar.inline03.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=Animated.js.map diff --git a/web/amCharts/bar/chart_0080_bar.html b/web/amCharts/bar/chart_0080_bar.html new file mode 100644 index 0000000000000000000000000000000000000000..c311a210334815b2e1e2f25b47b08ad57624ef02 --- /dev/null +++ b/web/amCharts/bar/chart_0080_bar.html @@ -0,0 +1,173 @@ + + + + + + Images as Categories + + + +
+ + + + + + diff --git a/web/amCharts/bar/chart_0080_bar.inline01.js b/web/amCharts/bar/chart_0080_bar.inline01.js new file mode 100644 index 0000000000000000000000000000000000000000..3fe3e3caca2e468e70f044c7aaeaa49dfcb8d974 --- /dev/null +++ b/web/amCharts/bar/chart_0080_bar.inline01.js @@ -0,0 +1,2 @@ +!function(){var t,e,i,s,n,r={3145:function(t,e,i){"use strict";i.d(e,{UZ:function(){return r},cP:function(){return n},f_:function(){return o},i_:function(){return s}});const s=new class{constructor(){this.version="5.16.0",this.licenses=[],this.entitiesById={},this.rootElements=[],this.autoDispose=!1}};function n(t){s.licenses.push(t)}function r(){let t;for(;t=s.rootElements.pop();)t.dispose()}function o(t){let e;return s.rootElements.forEach((i=>{i.dom.id==t&&(e=i)})),e}},2855:function(t,e,i){"use strict";i.d(e,{f:function(){return F}});var s=i(6490),n=i(8777),r=i(2036),o=i(4431),a=i(1706),h=i(6881),l=i(7449),c=i(5071),u=i(7652);class d{constructor(){this._targets=[],this._observer=new ResizeObserver((t=>{c.each(t,(t=>{c.each(this._targets,(e=>{e.target===t.target&&e.callback()}))}))}))}addTarget(t,e){this._observer.observe(t,{box:"border-box"}),this._targets.push({target:t,callback:e})}removeTarget(t){this._observer.unobserve(t),c.keepIf(this._targets,(e=>e.target!==t))}}class p{constructor(){this._timer=null,this._targets=[]}addTarget(t,e){if(null===this._timer){let t=null;const e=()=>{const i=Date.now();(null===t||i>t+p.delay)&&(t=i,c.each(this._targets,(t=>{let e=t.target.getBoundingClientRect();e.width===t.size.width&&e.height===t.size.height||(t.size=e,t.callback())}))),0===this._targets.length?this._timer=null:this._timer=requestAnimationFrame(e)};this._timer=requestAnimationFrame(e)}this._targets.push({target:t,callback:e,size:{width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0}})}removeTarget(t){c.keepIf(this._targets,(e=>e.target!==t)),0===this._targets.length&&null!==this._timer&&(cancelAnimationFrame(this._timer),this._timer=null)}}p.delay=200;let g=null;class f{constructor(t,e){this._disposed=!1,this._sensor=(null===g&&(g="undefined"!=typeof ResizeObserver?new d:new p),g),this._element=t,this._listener=u.onZoom(e),this._sensor.addTarget(t,e)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}var _=i(9821),m=i(1479),y=i(7142),v=i(2876),w=i(780),b=i(6460),x=i(798),D=i(6331),k=i(256),T=i(3100);class M extends D.JH{_setDefaults(){this.setPrivate("defaultLocale",T.Z),super._setDefaults()}translate(t,e,...i){e||(e=this._root.locale||this.getPrivate("defaultLocale"));let s=t,n=e[t];if(null===n)s="";else if(null!=n)n&&(s=n);else if(e!==this.getPrivate("defaultLocale"))return this.translate(t,this.getPrivate("defaultLocale"),...i);if(i.length)for(let t=i.length,e=0;e{this.setTranslationAny(t,i,e)}))}translateEmpty(t,e,...i){let s=this.translate(t,e,...i);return s==t?"":s}translateFunc(t,e){return this._root.locale[t]?this._root.locale[t]:e!==this.getPrivate("defaultLocale")?this.translateFunc(t,this.getPrivate("defaultLocale")):()=>""}translateAll(t,e){return this.isDefault()?t:c.map(t,(t=>this.translate(t,e)))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}var E=i(9770),O=i(3783),P=i(4102),S=i(6245),N=i(1112),C=i(2132),L=i(3145),A=i(3540),R=i(5040),U=i(9395);function B(t,e){null==t?requestAnimationFrame(e):setTimeout((()=>{requestAnimationFrame(e)}),1e3/t)}class F{constructor(t,e={},i){if(this._isDirty=!1,this._isDirtyParents=!1,this._isDirtyAnimation=!1,this._dirty={},this._dirtyParents={},this._dirtyBounds={},this._dirtyPositions={},this._ticker=null,this._tickers=[],this._updateTick=!0,this.skipRenderFrame=!1,this.events=new E.p,this.animationTime=null,this._animations=[],this.language=M.new(this,{}),this.locale=T.Z,this.utc=!1,this.numberFormatter=w.e.new(this,{}),this.dateFormatter=b.C.new(this,{}),this.durationFormatter=x.$.new(this,{}),this.tabindex=0,this._tabindexes=[],this._a11yD=!1,this._focusElementDirty=!1,this._skipNextGroupJump=!0,this.verticalLayout=a.Z.new(this,{}),this.horizontalLayout=o.G.new(this,{}),this.gridLayout=h.M.new(this,{}),this._paused=!1,this.autoResize=!0,this._fontHash="",this._isDisposed=!1,this._disposers=[],this._tooltips=[],this._htmlEnabledContainers=[],this.entitiesById={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");let s,n;if(this._settings=e,0==e.accessible&&(this._a11yD=!0),null==e.useSafeResolution&&(e.useSafeResolution=!0),e.useSafeResolution&&(s=u.getSafeResolution()),this._renderer=new P.uK(s),n=t instanceof HTMLElement?t:document.getElementById(t),c.each(L.i_.rootElements,(t=>{if(t.dom===n){if(!L.i_.autoDispose)throw new Error("You cannot have multiple Roots on the same DOM node");t.dispose()}})),this.interfaceColors=_.v.new(this,{}),null===n)throw new Error("Could not find HTML element with id `"+t+"`");this.dom=n;let r=document.createElement("div");r.style.position="relative",r.style.width="100%",r.style.height="100%",n.appendChild(r);const l=e.tooltipContainerBounds;l&&(this._tooltipContainerSettings=l),this._inner=r,this._updateComputedStyles(),L.i_.rootElements.push(this)}static new(t,e){const i=new F(t,e,!0);return i._init(),i}moveDOM(t){let e;if(e=t instanceof HTMLElement?t:document.getElementById(t),e){for(;this.dom.childNodes.length>0;)e.appendChild(this.dom.childNodes[0]);this.dom=e,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const t=this.dom.offsetWidth,e=this.dom.offsetHeight;t<=150||e<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const t=this.tooltipContainer.children.push(n.W.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:(0,S.aQ)(100),centerY:S.AQ,tooltipY:10,tooltipText:"Created using amCharts 5",tooltipX:S.AQ,cursorOverStyle:"pointer",background:y.A.new(this,{fill:(0,N.$_)(4671320),fillOpacity:0,tooltipY:5})}));t.set("tooltip",this.systemTooltip),t.events.on("click",(()=>{window.open("https://www.amcharts.com/","_blank")})),t.states.create("hover",{});const e=t.children.push(m.T.new(this,{stroke:(0,N.$_)(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6",dx:-50,strokeOpacity:0}));e.states.create("hover",{stroke:(0,N.$_)(3976191)});const i=t.children.push(m.T.new(this,{stroke:(0,N.$_)(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0",dx:50,strokeOpacity:0})),s=U.out(U.cubic),r=1500;t.setTimeout((()=>{i.animate({key:"strokeOpacity",to:1,duration:r,easing:s}),i.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"strokeOpacity",to:1,duration:r,easing:s})}),3e3),i.states.create("hover",{stroke:(0,N.$_)(4671320)}),this._logo=t,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(t){return this._settings.calculateSize?this._settings.calculateSize(t):{width:t.width,height:t.height}}_init(){const t=this._settings;!1!==t.accessible&&(t.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),t.ariaLabel&&this._inner.setAttribute("aria-label",t.ariaLabel),t.role&&this._inner.setAttribute("role",t.role));const e=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),r=Math.floor(s.width),o=Math.floor(s.height),a=Math.floor(i.width),h=Math.floor(i.height),l=n.W.new(this,{visible:!0,width:r,height:o});this._rootContainer=l,this._rootContainer._defaultThemes.push(O.X.new(this));const c=l.children.push(n.W.new(this,{visible:!0,width:S.AQ,height:S.AQ}));this.container=c,e.resize(a,h,r,o),this._inner.appendChild(e.view),this._initResizeSensor();const d=document.createElement("div");if(this._htmlElementContainer=d,d.className="am5-html-container",d.style.position="absolute",d.style.pointerEvents="none",this._tooltipContainerSettings||(d.style.overflow="hidden"),this._inner.appendChild(d),!0!==this._a11yD){const t=document.createElement("div");t.className="am5-reader-container",t.setAttribute("role","alert"),t.style.position="absolute",t.style.width="1px",t.style.height="1px",t.style.overflow="hidden",t.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=t,this._inner.appendChild(this._readerAlertElement);const i=document.createElement("div");i.className="am5-focus-container",i.style.position="absolute",i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.width=r+"px",i.style.height=o+"px",i.setAttribute("role","graphics-document"),u.setInteractive(i,!1),this._focusElementContainer=i,this._inner.appendChild(this._focusElementContainer);const s=document.createElement("div");this._tooltipElementContainer=s,s.className="am5-tooltip-container",this._inner.appendChild(s),u.supports("keyboardevents")&&(this._disposers.push(u.addEventListener(window,"keydown",(t=>{const e=u.getEventKey(t);"Shift"==e?this._isShift=!0:"Tab"==e&&(this._isShift=t.shiftKey)}))),this._disposers.push(u.addEventListener(window,"keyup",(t=>{"Shift"==u.getEventKey(t)&&(this._isShift=!1)}))),this._disposers.push(u.addEventListener(i,"click",(()=>{const t=this._focusedSprite;if(t){const i=t.get("clickAnnounceText","");""!==i&&this.readerAlert(i);const s=e.getEvent(new MouseEvent("click"));t.events.dispatch("click",{type:"click",originalEvent:s.event,point:s.point,simulated:!0,target:t})}}))),this._disposers.push(u.addEventListener(i,"keydown",(t=>{const i=this._focusedSprite;if(i){"Escape"==t.key&&(u.blur(),this._focusedSprite=void 0);let s=0,n=0;const r=u.getEventKey(t);switch(r){case"Enter":case" ":const o=i.get("clickAnnounceText","");if(""!==o&&this.readerAlert(o)," "==r&&"checkbox"!=i.get("role"))return;t.preventDefault();const a=e.getEvent(new MouseEvent("mouse"));return void i.events.dispatch("click",{type:"click",originalEvent:a.event,point:a.point,simulated:!0,target:i});case"ArrowLeft":s=-6;break;case"ArrowRight":s=6;break;case"ArrowUp":n=-6;break;case"ArrowDown":n=6;break;default:return}if(0!=s||0!=n){if(t.preventDefault(),!i.isDragging()){this._keyboardDragPoint={x:0,y:0};const t=e.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));t.point={x:0,y:0},i.events.isEnabled("pointerdown")&&i.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:t.event,point:t.point,simulated:!0,target:i})}const r=this._keyboardDragPoint;r.x+=s,r.y+=n;const o=e.getEvent(new MouseEvent("mousemove",{clientX:r.x,clientY:r.y}),!1);i.events.isEnabled("globalpointermove")&&i.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:o.event,point:o.point,simulated:!0,target:i})}}}))),this._disposers.push(u.addEventListener(i,"keyup",(t=>{if(this._focusedSprite){const i=this._focusedSprite,s=u.getEventKey(t);switch(s){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(i.isDragging()){const t=this._keyboardDragPoint,s=e.getEvent(new MouseEvent("mouseup",{clientX:t.x,clientY:t.y}));return i.events.isEnabled("globalpointerup")&&i.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:s.event,point:s.point,simulated:!0,target:i}),void(this._keyboardDragPoint=void 0)}if(i.get("focusableGroup")){const t=i.get("focusableGroup"),e=this._tabindexes.filter((e=>!(e.get("focusableGroup")!=t||!1===e.getPrivate("focusable")||!e.isVisibleDeep())));let n=e.indexOf(i);const r=e.length-1;n+="ArrowRight"==s||"ArrowDown"==s?1:-1,n<0?n=r:n>r&&(n=0),u.focus(e[n].getPrivate("focusElement").dom)}break;case"Tab":const t=i.get("focusableGroup");if(t&&this._isShift)return void(this._skipNextGroupJump||(this._focusNext(i.getPrivate("focusElement").dom,-1,t),this._skipNextGroupJump=!0))}}}))))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}get systemTooltip(){if(!this._systemTooltip){const t=v.u.new(this,{themeTags:["system"]});this._systemTooltip=t}return this._systemTooltip}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new f(this.dom,(()=>{this.autoResize&&this.resize()})),this._disposers.push(this._resizeSensorDisposer)}resize(){const t=this._getRealSize(),e=this._getCalculatedSize(t),i=Math.floor(e.width),s=Math.floor(e.height);if(i>0&&s>0){const e=Math.floor(t.width),n=Math.floor(t.height),r=this._htmlElementContainer;if(r.style.width=i+"px",r.style.height=s+"px",!0!==this._a11yD){const t=this._focusElementContainer;t.style.width=i+"px",t.style.height=s+"px"}this._renderer.resize(e,n,i,s);const o=this._rootContainer;o.setPrivate("width",i),o.setPrivate("height",s),this._render(),this._handleLogo()}}_render(){this.skipRenderFrame?this.skipRenderFrame=!1:(this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1))}_runTickers(t){c.each(this._tickers,(e=>{e(t)}))}_runAnimations(t){let e=0;return c.keepIf(this._animations,(i=>{const n=i._runAnimation(t);return n!==s.SR.Stopped&&(n!==s.SR.Playing||(++e,!0))})),this._isDirtyAnimation=!1,0===e}_runDirties(){let t={};for(;this._isDirtyParents;)this._isDirtyParents=!1,k.entries(this._dirtyParents).forEach((([e,i])=>{delete this._dirtyParents[e],i.isDisposed()||(t[i.uid]=i,i._prepareChildren())}));k.entries(t).forEach((([t,e])=>{e._updateChildren()}));const e=[];k.entries(this._dirty).forEach((([t,i])=>{i.isDisposed()?delete this._dirty[t]:(e.push(i),i._beforeChanged())})),e.forEach((t=>{t._changed(),delete this._dirty[t.uid],t._clearDirty()})),this._isDirty=!1;const i={},s=[];k.entries(this._dirtyBounds).forEach((([t,e])=>{delete this._dirtyBounds[t],e.isDisposed()||(i[e.uid]=e.depth(),s.push(e))})),this._positionHTMLElements(),s.sort(((t,e)=>A.qu(i[e.uid],i[t.uid]))),s.forEach((t=>{t._updateBounds()}));const n=this._dirtyPositions;k.entries(n).forEach((([t,e])=>{delete n[t],e.isDisposed()||e._updatePosition()})),e.forEach((t=>{t._afterChanged()})),k.entries(t).forEach((([t,e])=>{e._childrenPrep=!1,e._childrenUpdt=!1}))}_renderFrame(t){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:t}),this._checkComputedStyles(),this._runTickers(t);const e=this._runAnimations(t);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:t}),0===this._tickers.length&&e&&!this._isDirtyAnimation&&!this._isDirty}return!0}_runTicker(t,e){this.isDisposed()||(this.animationTime=t,this._renderFrame(t)?(this._ticker=null,this.animationTime=null):this._paused||(e?this._ticker:B(this.fps,this._ticker)))}_runTickerNow(t=1e4){if(!this.isDisposed()){const e=performance.now()+t;for(;;){const t=performance.now();if(t>=e){this.animationTime=null;break}if(this.animationTime=t,this._renderFrame(t)){this.animationTime=null;break}}}}_startTicker(){null===this._ticker&&(this.animationTime=null,this._ticker=t=>{this._runTicker(t)},B(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(t){this._updateTick=t,t&&this._startTicker()}_addDirtyEntity(t){this._isDirty=!0,void 0===this._dirty[t.uid]&&(this._dirty[t.uid]=t),this._startTicker()}_addDirtyParent(t){this._isDirty=!0,this._isDirtyParents=!0,void 0===this._dirtyParents[t.uid]&&(this._dirtyParents[t.uid]=t),this._startTicker()}_addDirtyBounds(t){this._isDirty=!0,void 0===this._dirtyBounds[t.uid]&&(this._dirtyBounds[t.uid]=t),this._startTicker()}_addDirtyPosition(t){this._isDirty=!0,void 0===this._dirtyPositions[t.uid]&&(this._dirtyPositions[t.uid]=t),this._startTicker()}_addAnimation(t){this._isDirtyAnimation=!0,-1===this._animations.indexOf(t)&&this._animations.push(t),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",(()=>{this._isDirty=!0,this._startTicker()}))}eachFrame(t){return this._tickers.push(t),this._startTicker(),new l.ku((()=>{c.removeFirst(this._tickers,t)}))}markDirtyGlobal(t){t||(t=this.container),t.walkChildren((t=>{t instanceof n.W&&this.markDirtyGlobal(t),t.markDirty(),t.markDirtyBounds()}))}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),c.each(this._disposers,(t=>{t.dispose()})),this._inner&&u.removeElement(this._inner),c.remove(L.i_.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(t){if(!0!==this._a11yD){const e=this._readerAlertElement;t=u.stripTags(t),e.innerHTML==t&&(e.innerHTML=""),e.innerHTML=t}}setThemes(t){this._rootContainer.set("themes",t);const e=this.tooltipContainer;e&&e._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const t=this._tooltipContainerSettings,e=this._rootContainer.children.push(n.W.new(this,{position:"absolute",isMeasured:!1,width:S.AQ,height:S.AQ,layer:t?35:30,layerMargin:t||void 0}));this.tooltipContainer=e;const i=v.u.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(t){1!=this._a11yD&&(t.get("focusable")?c.pushOne(this._tabindexes,t):c.remove(this._tabindexes,t),this._invalidateTabindexes())}_unregisterTabindexOrder(t){1!=this._a11yD&&(c.remove(this._tabindexes,t),this._invalidateTabindexes())}_invalidateTabindexes(){if(1==this._a11yD)return;this._tabindexes.sort(((t,e)=>{const i=t.get("tabindexOrder",0),s=e.get("tabindexOrder",0);return i==s?0:i>s?1:-1}));const t=[];c.each(this._tabindexes,((e,i)=>{e.getPrivate("focusElement")?this._moveFocusElement(i,e):this._makeFocusElement(i,e);const s=e.get("focusableGroup");s&&!1!==e.getPrivate("focusable")&&(-1!==t.indexOf(s)?e.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):t.push(s))}))}_updateCurrentFocus(){1!=this._a11yD&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(t,e){if(1==this._a11yD)return;if(e||(e=t.getPrivate("focusElement").dom),!e)return;const i=t.get("role");i?e.setAttribute("role",i):e.removeAttribute("role");const s=t.get("ariaLabel");if(s){const i=(0,C.q)(t,s);e.setAttribute("aria-label",i)}else e.removeAttribute("aria-label");const n=t.get("ariaLive");n?e.setAttribute("aria-live",n):e.removeAttribute("aria-live");const r=t.get("ariaChecked");null!=r&&i&&-1!==["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)?e.setAttribute("aria-checked",r?"true":"false"):e.removeAttribute("aria-checked");const o=t.get("ariaCurrent");null!=o?e.setAttribute("aria-current",o):e.removeAttribute("aria-current");const a=t.get("ariaSelected");null!=a&&i&&-1!==["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)?e.setAttribute("aria-selected",a?"true":"false"):e.removeAttribute("aria-selected"),t.get("ariaHidden")?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden");const h=t.get("ariaOrientation");h?e.setAttribute("aria-orientation",h):e.removeAttribute("aria-orientation");const l=t.get("ariaValueNow");l?e.setAttribute("aria-valuenow",l):e.removeAttribute("aria-valuenow");const c=t.get("ariaValueMin");c?e.setAttribute("aria-valuemin",c):e.removeAttribute("aria-valuemin");const u=t.get("ariaValueMax");u?e.setAttribute("aria-valuemax",u):e.removeAttribute("aria-valuemax");const d=t.get("ariaValueText");d?e.setAttribute("aria-valuetext",d):e.removeAttribute("aria-valuetext");const p=t.get("ariaControls");p?e.setAttribute("aria-controls",p):e.removeAttribute("aria-controls"),t.get("visible")&&0!==t.get("opacity")&&"tooltip"!=t.get("role")&&!t.isHidden()&&!1!==t.getPrivate("focusable")&&(t.height()||t.width())?("-1"!=e.getAttribute("tabindex")&&e.setAttribute("tabindex",""+this.tabindex),e.removeAttribute("aria-hidden")):(e.removeAttribute("tabindex"),e.setAttribute("aria-hidden","true"))}_makeFocusElement(t,e){if(e.getPrivate("focusElement")||1==this._a11yD)return;const i=document.createElement("div");"tooltip"!=e.get("role")&&(i.tabIndex=this.tabindex),i.style.position="absolute",u.setInteractive(i,!1);const s=[];e.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(e),s.push(u.addEventListener(i,"focus",(t=>{this._handleFocus(t)}))),s.push(u.addEventListener(i,"blur",(t=>{this._handleBlur(t)}))),this._moveFocusElement(t,e)}_removeFocusElement(t){if(1==this._a11yD)return;c.remove(this._tabindexes,t);const e=t.getPrivate("focusElement");e&&(this._focusElementContainer.removeChild(e.dom),c.each(e.disposers,(t=>{t.dispose()})))}_hideFocusElement(t){1!=this._a11yD&&(t.getPrivate("focusElement").dom.style.display="none")}_moveFocusElement(t,e){if(1==this._a11yD)return;const i=this._focusElementContainer,s=e.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[t])return;const n=this._focusElementContainer.children[t+1];n?i.insertBefore(s,n):i.append(s)}_positionFocusElement(t){if(1==this._a11yD||null==t)return;this._focusElementContainer.scrollTop=0;const e=t.globalBounds();let i=e.right==e.left?t.width():e.right-e.left,s=e.top==e.bottom?t.height():e.bottom-e.top;const n=void 0!==this._settings.focusPadding?this._settings.focusPadding:2;let r=e.left-n,o=e.top-n;i<0&&(r+=i,i=Math.abs(i)),s<0&&(o+=s,s=Math.abs(s));const a=t.getPrivate("focusElement").dom;a.style.top=o+"px",a.style.left=r+"px",a.style.width=i+2*n+"px",a.style.height=s+2*n+"px"}_getSpriteByFocusElement(t){let e;return c.eachContinue(this._tabindexes,((i,s)=>i.getPrivate("focusElement").dom!==t||(e=i,!1))),e}_handleFocus(t){if(1==this._a11yD)return;const e=this._getSpriteByFocusElement(t.target);e&&(e.isVisibleDeep()?(this._positionFocusElement(e),this._focusedSprite=e,e.events.isEnabled("focus")&&e.events.dispatch("focus",{type:"focus",originalEvent:t,target:e}),-1==e.getPrivate("focusElement").dom.tabIndex&&(this._skipNextGroupJump=!1)):this._focusNext(t.target,this._isShift?-1:1))}_focusNext(t,e,i){if(1==this._a11yD)return;const s=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(",")));let n=s.indexOf(t)+e;n<0?n=s.length-1:n>=s.length&&(n=0);const r=s[n];if(i&&-1==e){const t=this._getSpriteByFocusElement(r);if(t&&t.get("focusableGroup")==i)return void this._focusNext(r,e)}r.focus()}_handleBlur(t){if(1==this._a11yD)return;const e=this._focusedSprite;e&&!e.isDisposed()&&e.events.isEnabled("blur")&&e.events.dispatch("blur",{type:"blur",originalEvent:t,target:e}),this._focusedSprite=void 0}updateTooltip(t){if(1==this._a11yD)return;const e=u.stripTags(t._getText());let i=t.getPrivate("tooltipElement");"tooltip"==t.get("role")&&""!=e?(i||(i=this._makeTooltipElement(t)),i.innerHTML!=e&&(i.innerHTML=e),i.setAttribute("aria-hidden",t.isVisibleDeep()?"false":"true")):i&&(i.remove(),t.removePrivate("tooltipElement"))}_makeTooltipElement(t){const e=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",u.setInteractive(i,!1),this._decorateFocusElement(t,i),e.append(i),t.setPrivate("tooltipElement",i),i}_removeTooltipElement(t){if(1==this._a11yD)return;const e=t.getPrivate("tooltipElement");if(e){const t=e.parentElement;t&&t.removeChild(e)}}_invalidateAccessibility(t){if(1==this._a11yD)return;this._focusElementDirty=!0;const e=t.getPrivate("focusElement");t.get("focusable")?e&&(this._decorateFocusElement(t),this._positionFocusElement(t)):e&&this._removeFocusElement(t)}focused(t){return this._focusedSprite===t}documentPointToRoot(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:(t.x-e.left)*s,y:(t.y-e.top)*n}}rootPointToDocument(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:t.x/s+e.left,y:t.y/n+e.top}}addDisposer(t){return this._disposers.push(t),t}_updateComputedStyles(){const t=window.getComputedStyle(this.dom);let e="";k.each(t,((t,i)=>{R.isString(t)&&t.match(/^font/)&&(e+=i)}));const i=e!=this._fontHash;return i&&(this._fontHash=e),i}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(t){t instanceof n.W?t.children.each((t=>{this._invalidateLabelBounds(t)})):t instanceof r.x&&t.markDirtyBounds()}_hasLicense(){for(let t=0;t{if(t.get("verticalScrollbar"))return r=!0,s=t,!1})),r&&(n=document.createElement("div"),t.setPrivate("htmlElementWrapper",n),t.setPrivate("wrapperContainer",s),n.style.position="absolute",n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",s.events.on("boundschanged",(()=>{this._positionHTMLElement(t)}))),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",u.setInteractive(i,t.get("interactive",!1)),t.events.isEnabled("click")&&(u.setInteractive(i,!0),this._disposers.push(u.addEventListener(i,"click",(e=>{const i=this._renderer.getEvent(e);t.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))),this._positionHTMLElement(t),r?(n.append(i),e.append(n)):e.append(i),c.pushOne(this._htmlEnabledContainers,t),i}_positionHTMLElements(){c.each(this._htmlEnabledContainers,(t=>{this._positionHTMLElement(t)}))}_positionHTMLElement(t){const e=t.getPrivate("htmlElementWrapper");if(e){const i=t.getPrivate("wrapperContainer");if(i){const t=i.globalBounds();e.style.clipPath="rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"}}const i=t.getPrivate("htmlElement");if(i){const e=["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"];c.each(e,(e=>{const s=t.get(e);i.style[e]=s?s+"px":""}));const s=["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"];c.each(s,(e=>{const s=t.get(e);s?"fontSize"!=e||R.isString(s)?i.style[e]=s+"":i.style[e]=s+"px":i.style[e]=""}));const n=t.compositeScale()||1,r=t.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";const o=t.compositeOpacity();setTimeout((()=>{i.style.opacity=o+""}),10);const a=t.isVisibleDeep();a&&(i.style.display="block");let h={x:t.x()+t.get("dx",0),y:t.y()+t.get("dy",0)};t.parent&&(h=t.parent.toGlobal(h)),i.style.top=h.y+"px",i.style.left=h.x+"px";const l=t.get("width"),u=t.get("height");let d=0,p=0;if(l&&(d=t.width()),u&&(p=t.height()),!l||!u){i.style.position="fixed",i.style.width="",i.style.height="";const e=i.getBoundingClientRect();i.style.position="absolute",l||(d=e.width),u||(p=e.height);let s=d/n,r=p/n,o=t.get("centerX",0),a=t.get("centerY",0),h=0,c=0,g=0,f=0;o instanceof S.gG?(h=-o.value*s,c=(1-o.value)*s):(h=-o,c=s-o),a instanceof S.gG?(g=-a.value*r,f=(1-a.value)*r):(g=-a,f=r-a),t._localBounds={left:h,right:c,top:g,bottom:f};let _=t._adjustedLocalBounds,m=t._display.getAdjustedBounds(t._localBounds);t._adjustedLocalBounds=m,_.left===m.left&&_.right===m.right&&_.top===m.top&&_.bottom===m.bottom||t.markDirtyBounds()}d>0&&(i.style.minWidth=d+"px"),p>0&&(i.style.minHeight=p+"px"),a&&0!=o||(i.style.display="none");const g=t.get("centerX",0),f=(0,S.hU)(g)?g.percent+"%":g+"px",_=t.get("centerY",0),m=(0,S.hU)(_)?_.percent+"%":_+"px";(g||_)&&(i.style.transform="translate(-"+f+", -"+m+")"+i.style.transform),1!=n&&(i.style.transform+="scale("+n+")"),0!=r&&(i.style.transform+=" rotate("+r+"deg)"),""!=i.style.transform&&(i.style.transformOrigin=f+" "+m)}}_setHTMLContent(t,e){let i=t.getPrivate("htmlElement");i||(i=this._makeHTMLElement(t),this.autoResize||this.resize()),i.innerHTML!=e&&(i.innerHTML=e)}_removeHTMLContent(t){const e=t.getPrivate("htmlElementWrapper"),i=t.getPrivate("htmlElement");e?(this._htmlElementContainer.removeChild(e),t.removePrivate("htmlElement"),t.removePrivate("htmlElementWrapper"),t.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),t.removePrivate("htmlElement"),t.removePrivate("wrapperContainer")),c.remove(this._htmlEnabledContainers,t)}}},3409:function(t,e,i){"use strict";i.d(e,{Q:function(){return o}});var s=i(5769),n=i(3540),r=i(5071);class o{constructor(t,e){if(this._rules={},this._root=t,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(t){const e=new this(t,!0);return e.setupDefaultRules(),e}setupDefaultRules(){}_lookupRules(t){return this._rules[t]}ruleRaw(t,e=[]){let i=this._rules[t];i||(i=this._rules[t]=[]),e.sort(n.qu);const{index:o,found:a}=r.getSortedIndex(i,(t=>{const i=n.qu(t.tags.length,e.length);return 0===i?n.wq(t.tags,e,n.qu):i}));if(a)return i[o].template;{const t=s.YS.new({});return i.splice(o,0,{tags:e,template:t}),t}}rule(t,e=[]){return this.ruleRaw(t,e)}}},5108:function(t,e,i){"use strict";i.d(e,{g:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){const t=this.get("sprite");t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}}n.className="Bullet",n.classNames=s.JH.classNames.concat([n.className])},8054:function(t,e,i){"use strict";i.d(e,{z:function(){return o}});var s=i(3497),n=i(8777),r=i(7652);class o extends n.W{_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",s.c.new(this._root,{themeTags:r.mergeTags(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const t=this._prevSettings.icon,e=this.get("icon");e!==t&&(this._disposeProperty("icon"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.icon=e)}if(this.isDirty("label")){const t=this._prevSettings.label,e=this.get("label");e!==t&&(this._disposeProperty("label"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.label=e)}}}o.className="Button",o.classNames=n.W.classNames.concat([o.className])},1337:function(t,e,i){"use strict";i.d(e,{k:function(){return r}});var s=i(8777),n=i(6245);class r extends s.W{constructor(){super(...arguments),this.chartContainer=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,interactiveChildren:!1})),this.bulletsContainer=s.W.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:n.AQ,height:n.AQ})}}r.className="Chart",r.classNames=s.W.classNames.concat([r.className])},8035:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,Math.abs(this.get("radius",10)))}}n.className="Circle",n.classNames=s.T.classNames.concat([n.className])},9361:function(t,e,i){"use strict";i.d(e,{w:function(){return c},z:function(){return l}});var s=i(7582),n=i(6331),r=i(8777),o=i(9582),a=i(5071),h=i(256);class l extends n.Zr{constructor(t,e,i){super(i),this.dataContext=e,this.component=t,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(t){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,t)}hide(t){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,t)}isHidden(){return!this.get("visible")}}class c extends r.W{constructor(){super(...arguments),this._data=new o.k,this._dataItems=[],this._mainDataItems=this._dataItems,this.valueFields=[],this.fields=["id"],this._valuesDirty=!1,this._dataChanged=!1,this._dataGrouped=!1,this.inited=!1}set data(t){t.incrementRef(),this._data.decrementRef(),this._data=t}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((t=>{const e=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===t.type)a.each(e,(t=>{t.dispose()})),e.length=0,this._onDataClear();else if("push"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.push(i),this.processDataItem(i)}else if("setIndex"===t.type){const i=e[t.index],s=this._makeDataItem(t.newValue);i.bullets&&0==i.bullets.length&&(i.bullets=void 0),h.entries(s).forEach((([t,e])=>{i.get(t)!=e&&i.animate({key:t,to:e,duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})})),i.dataContext=t.newValue}else if("insertIndex"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.splice(t.index,0,i),this.processDataItem(i)}else if("removeIndex"===t.type)e[t.index].dispose(),e.splice(t.index,1);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");{const i=e[t.oldIndex];e.splice(t.oldIndex,1),e.splice(t.newIndex,0,i)}}this._afterDataChange()})))}_postUpdateData(){}updateData(t){let e=0;a.each(t,((t,i)=>{const s=this.dataItems[i];if(s){const e=s.dataContext;e&&h.entries(t).forEach((([t,i])=>{e[t]=i}));const i=this._makeDataItem(e);h.entries(i).forEach((([t,e])=>{var i;if(s.get(t)!=e){s.set(t,e);const n=null===(i=this._valueFieldsF[t])||void 0===i?void 0:i.workingKey;n&&s.set(n,e)}}))}else this.data.push(t);e=i}));for(let t=this.dataItems.length-1;t>e;t--){const e=this.dataItems[t];a.remove(this.dataItems,e),e.dispose()}this._postUpdateData()}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},a.each(this.valueFields,(t=>{this.get(t+"Field")&&(this._valueFields.push(t),this._valueFieldsF[t]={fieldKey:t+"Field",workingKey:t+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},a.each(this.fields,(t=>{this.get(t+"Field")&&(this._fields.push(t),this._fieldsF[t]=t+"Field")})))}get dataItems(){return this._dataItems}processDataItem(t){}_makeDataItem(t){const e={};return this._valueFields&&a.each(this._valueFields,(i=>{const s=this.get(this._valueFieldsF[i].fieldKey);e[i]=t[s],e[this._valueFieldsF[i].workingKey]=e[i]})),this._fields&&a.each(this._fields,(i=>{const s=this.get(this._fieldsF[i]);e[i]=t[s]})),e}makeDataItem(t,e){let i=new l(this,e,t);return this.processDataItem(i),i}pushDataItem(t,e){const i=this.makeDataItem(t,e);return this._mainDataItems.push(i),i}disposeDataItem(t){}showDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!0)}))}hideDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const t="datavalidated";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this._dataChanged=!1}if(this._valuesDirty){const t="valueschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.inited=!0}markDirtyValues(t){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}getDataItemById(t){return a.find(this.dataItems,(e=>e.get("id")==t))}}c.className="Component",c.classNames=r.W.classNames.concat([c.className])},2936:function(t,e,i){"use strict";i.d(e,{p:function(){return r}});var s=i(8054),n=i(7652);class r extends s.z{_afterNew(){super._afterNew(),this.addTag("confirm"),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{const e=n.getEventKey(t);this.get("active")&&"Escape"==e&&this._cancel()}))),this._disposers.push(n.addEventListener(document,"click",(()=>{this._ignoreClick||this._cancel(),this._ignoreClick=!1}))),this.events.on("click",(()=>{this.get("active")||(this._ignoreClick=!0),this._confirm()}))}_cancel(){this.get("active")&&(this.events.dispatch("cancelled",{type:"cancelled",target:this}),this.set("active",!1))}_confirm(){this.get("active")&&(this.events.dispatch("confirmed",{type:"confirmed",target:this}),this.set("active",!1),this.isFocus()&&this.setTimeout((()=>{this.set("active",!1),n.blur()}),10))}_prepareChildren(){super._prepareChildren()}}r.className="ConfirmButton",r.classNames=s.z.classNames.concat([r.className])},8777:function(t,e,i){"use strict";i.d(e,{W:function(){return f}});var s=i(7144),n=i(5071);class r extends s.aV{constructor(t){super(),this._disposed=!1,this._container=t,this._events=this.events.onAll((t=>{if("clear"===t.type)n.each(t.oldValues,(t=>{this._onRemoved(t)}));else if("push"===t.type)this._onInserted(t.newValue);else if("setIndex"===t.type)this._onRemoved(t.oldValue),this._onInserted(t.newValue,t.index);else if("insertIndex"===t.type)this._onInserted(t.newValue,t.index);else if("removeIndex"===t.type)this._onRemoved(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");this._onRemoved(t.value),this._onInserted(t.value,t.newIndex)}}))}_onInserted(t,e){t._setParent(this._container,!0);const i=this._container._childrenDisplay;void 0===e?i.addChild(t._display):i.addChildAt(t._display,e)}_onRemoved(t){this._container._childrenDisplay.removeChild(t._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),n.each(this.values,(t=>{t.dispose()})))}}var o=i(6245),a=i(4596),h=i(7142),l=i(4431),c=i(1706),u=i(6881),d=i(2132),p=i(5040),g=i(7652);class f extends a.j{constructor(){super(...arguments),this._display=this._root._renderer.makeContainer(),this._childrenDisplay=this._root._renderer.makeContainer(),this.children=new r(this),this._percentageSizeChildren=[],this._percentagePositionChildren=[],this._prevWidth=0,this._prevHeight=0,this._contentWidth=0,this._contentHeight=0,this._childrenPrep=!1,this._childrenUpdt=!1}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){n.eachReverse(this.allChildren(),(t=>{t.dispose()})),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_beforeChanged(){this._childrenPrep||this._prepareChildren(),this._childrenUpdt||this._updateChildren(),super._beforeChanged()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each((t=>{t.removePrivate("x"),t.removePrivate("y")}))),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each((t=>{t.markDirtyPosition()})),this.isDirty("maskContent")){const t=this._childrenDisplay;let e=this._contentMask;this.get("maskContent")?e||(e=h.A.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=e,t.addChildAt(e._display,0),t.mask=e._display):e&&(t.removeChild(e._display),t.mask=null,e.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),n.each(this._percentageSizeChildren,(t=>{t._updateSize()})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t._updateSize()})),this.updateBackground()}updateBackground(){const t=this.get("background");let e=this._localBounds;if(e&&!this.isHidden()){let i=e.left,s=e.top,n=e.right-i,r=e.bottom-s,o=this.get("maxWidth"),a=this.get("maxHeight");a&&r>a&&(r=a),o&&n>o&&(n=o);let h=this.width(),l=this.height();t&&(t.setAll({width:n,height:r,x:i,y:s}),this._display.interactive&&(t._display.interactive=!0));const c=this._contentMask;c&&c.setAll({width:h+1,height:l+1});const u=this.get("verticalScrollbar");if(u){u.set("height",l),u.set("x",h-u.width()-u.get("marginRight",0)),u.set("end",u.get("start",0)+l/this._contentHeight);const t=u.get("background");t&&t.setAll({width:u.width(),height:l});let e=!0;this._contentHeight<=l&&(e=!1),u.setPrivate("visible",e)}}}_applyThemes(t=!1){return!!super._applyThemes(t)&&(this.eachChildren((e=>{e._applyThemes(t)})),!0)}_applyState(t){super._applyState(t),this.get("setStateOnChildren")&&this.eachChildren((e=>{e.states.apply(t)}))}_applyStateAnimated(t,e){super._applyStateAnimated(t,e),this.get("setStateOnChildren")&&this.eachChildren((i=>{i.states.applyAnimate(t,e)}))}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let t=this._localBounds;t&&(this._contentWidth=t.right-t.left,this._contentHeight=t.bottom-t.top)}else{let t=this.get("width"),e=this.get("height"),i=this.getPrivate("width"),s=this.getPrivate("height"),n={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),o=!1,a=!1;if((r instanceof l.G||r instanceof u.M)&&(o=!0),r instanceof c.Z&&(a=!0),null==t&&null==i||null==e&&null==s||this.get("verticalScrollbar")){let t=Number.MAX_VALUE,e=t,i=-t,s=t,r=-t;const h=this.get("paddingLeft",0),l=this.get("paddingTop",0),c=this.get("paddingRight",0),u=this.get("paddingBottom",0);this.children.each((t=>{if("absolute"!=t.get("position")&&t.get("isMeasured")){let n=t.adjustedLocalBounds(),h=t.x(),l=t.y(),c=h+n.left,u=h+n.right,d=l+n.top,p=l+n.bottom;o&&(c-=t.get("marginLeft",0),u+=t.get("marginRight",0)),a&&(d-=t.get("marginTop",0),p+=t.get("marginBottom",0)),ci&&(i=u),dr&&(r=p)}})),e==t&&(e=0),i==-t&&(i=0),s==t&&(s=0),r==-t&&(r=0),n.left=e-h,n.top=s-l,n.right=i+c,n.bottom=r+u;const d=this.get("minWidth");p.isNumber(d)&&d>0&&n.right-n.left=d?n.left=n.right-d:n.right=n.left+d);const g=this.get("minHeight");p.isNumber(g)&&g>0&&n.bottom-n.top=g?n.top=n.bottom-g:n.bottom=n.top+g)}this._contentWidth=n.right-n.left,this._contentHeight=n.bottom-n.top,p.isNumber(t)&&(n.left=0,n.right=t),p.isNumber(i)&&(n.left=0,n.right=i),p.isNumber(e)&&(n.top=0,n.bottom=e),p.isNumber(s)&&(n.top=0,n.bottom=s),this._localBounds=n}}_updateBounds(){const t=this.get("layout");t&&t.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){this._childrenPrep=!0;const t=this.innerWidth(),e=this.innerHeight();if(t!=this._prevWidth||e!=this._prevHeight){let i=this.get("layout"),s=!1,r=!1;i&&((i instanceof l.G||i instanceof u.M)&&(s=!0),i instanceof c.Z&&(r=!0)),n.each(this._percentageSizeChildren,(i=>{if(!s){let e=i.get("width");e instanceof o.gG&&i.setPrivate("width",e.value*t)}if(!r){let t=i.get("height");t instanceof o.gG&&i.setPrivate("height",t.value*e)}})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t.markDirtyBounds()})),this._prevWidth=t,this._prevHeight=e,this._sizeDirty=!0,this.updateBackground()}}_updateHTMLContent(){const t=this.get("html","");t&&""!==t?this._root._setHTMLContent(this,(0,d.q)(this,t)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(t){const e=this.get("verticalScrollbar");if(e){let i=t.y(),s=this.innerHeight(),n=t.height(),r=this._contentHeight,o=1-(s-n/2)/r;if(i+.7*n+this._childrenDisplay.y>s||i-.3*n+this._childrenDisplay.y<0){let t=Math.max(0,Math.min(o,(i-n/2)/r));e.animate({key:"start",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")})}}}_updateChildren(){if(this._childrenUpdt=!0,this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){const t=this.get("verticalScrollbar");if(t){t._setParent(this),t.startGrip.setPrivate("visible",!1),t.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",t.width()+t.get("marginRight",0)+t.get("marginLeft",0));let e=this.get("background");e||(e=this.set("background",h.A.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",(e=>{const i=e.originalEvent;if(!g.isLocalEvent(i,this))return;i.preventDefault();let s=i.deltaY/5e3;const n=t.get("start",0),r=t.get("end",1);n+s<=0&&(s=-n),r+s>=1&&(s=1-r),n+s>=0&&r+s<=1&&(t.set("start",n+s),t.set("end",r+s))})),this._disposers.push(this._vsbd0),this._vsbd1=t.events.on("rangechanged",(()=>{let e=this._contentHeight;const i=this._childrenDisplay,s=this._contentMask;i.y=-t.get("start",0)*e,i.markDirtyLayer(),s&&(s._display.y=-i.y,i.mask=s._display)})),this._disposers.push(this._vsbd1),this._display.addChild(t._display)}else{const t=this._prevSettings.verticalScrollbar;t&&(this._display.removeChild(t._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose(),this._childrenDisplay.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0))}}if(this.isDirty("background")){const t=this._prevSettings.background;t&&this._display.removeChild(t._display);const e=this.get("background");e instanceof a.j&&(e.set("isMeasured",!1),e._setParent(this),this._display.addChildAt(e._display,0))}if(this.isDirty("mask")){const t=this.get("mask"),e=this._prevSettings.mask;if(e&&(this._display.removeChild(e._display),e!=t&&e.dispose()),t){const e=t.parent;e&&e.children.removeValue(t),t._setParent(this),this._display.addChildAt(t._display,0),this._childrenDisplay.mask=t._display}}}_processTemplateField(){super._processTemplateField(),this.children.each((t=>{t._processTemplateField()}))}walkChildren(t){this.children.each(((e,i)=>{e instanceof f&&e.walkChildren(t),t(e,i)}))}eachChildren(t){const e=this.get("background");e&&t(e);const i=this.get("verticalScrollbar");i&&t(i);const s=this.get("mask");s&&t(s),this.children.values.forEach((e=>{t(e)}))}allChildren(){const t=[];return this.eachChildren((e=>{t.push(e)})),t}_setDataItem(t){const e=t!==this._dataItem;super._setDataItem(t);const i=this.get("html","");i&&""!==i&&e&&this._root._setHTMLContent(this,(0,d.q)(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}}f.className="Container",f.classNames=a.j.classNames.concat([f.className])},6691:function(t,e,i){"use strict";i.d(e,{Y:function(){return d}});var s=i(962),n=i(8777),r=i(3497),o=i(6245),a=i(1112),h=i(7449),l=i(7652),c=i(5040),u=i(5071);class d extends s._{_afterNew(){super._afterNew();const t=this.children.push(n.W.new(this._root,{html:'',isMeasured:!1}));t.hide(),this.setPrivate("input",t);let e=this.get("background");e?e.set("themeTags",["editablelabel","background"]):e=this.set("background",r.c.new(this._root,{themeTags:["editablelabel","background"]}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();const t=this.get("editOn","click");"none"!=t&&(this._editOnEvents=new h.FV([this.getPrivate("input").events.on(t,(t=>{})),this.events.on(t,(t=>{this.set("active",!0)}))]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){const t=this.get("active",!1);t?this._startEditing():this._stopEditing();const e=this.get("background");e&&e.set("active",t)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){const t=this.getPrivate("input");if(t&&t.getPrivate("htmlElement")){const e=t.getPrivate("htmlElement").querySelector(".am5-editable-label");e&&(this.setPrivate("textarea",e),e.addEventListener("input",(t=>{!1===this.get("multiLine")&&(e.value=e.value.replace(/\n/g," ")),this.set("text",e.value),this._syncStyle()})),e.addEventListener("blur",(t=>this.set("active",!1))),l.supports("keyboardevents")&&this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Escape"==l.getEventKey(t)&&this.set("active",!1)}))),this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Enter"==l.getEventKey(t)&&!1===this.get("multiLine")&&(t.preventDefault(),this.set("active",!1))}))),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._startEditing()}));this._text.set("opacity",0);const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(""==this.get("text","")&&this.set("text"," "),t.show(0),this.setTimeout((()=>{this._syncStyle(),e.focus()}),100))}_stopEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._stopEditing()}));const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(this.set("text",e.value),t.hide(0),this._text.set("opacity",1))}_syncStyle(){const t=this.getPrivate("input"),e=this.getPrivate("textarea"),i=t.getPrivate("htmlElement");if(e&&i){const t=window.getComputedStyle(e);u.each(t,(t=>{e.style[t]="initial"})),e.style.color=this.get("fill",(0,a.$_)(0)).toCSS(this.get("fillOpacity",1)),e.style.backgroundColor="rgba(0, 0, 0, 0)",e.style.border="none",e.style.outline="none",e.style.padding="0",e.wrap="off",e.style.resize="none",e.style.overflow="hidden";const s=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);s>0?e.style.maxWidth=s+"px":e.style.minWidth="",e.style.height="auto",e.style.minHeight=e.scrollHeight+"px",this.get("width")&&(e.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",e.style.minWidth="");const n=this.get("lineHeight");n?n instanceof o.gG?e.style.lineHeight=n.value+"":c.isNumber(n)&&(e.style.lineHeight=n+""):e.style.lineHeight="1.2";let r=this.get("fontFamily");r||(r=getComputedStyle(i,"font-family").getPropertyValue("font-family")),e.style.fontFamily=r;let h=this.get("fontSize");h?c.isNumber(h)&&(h+="px"):h=getComputedStyle(i,"font-size").getPropertyValue("font-size"),e.style.fontSize=h;let l=this.get("fontWeight");l||(l=getComputedStyle(i,"font-weight").getPropertyValue("font-weight")),e.style.fontWeight=l;let d=this.get("fontStyle");d||(d=getComputedStyle(i,"font-style").getPropertyValue("font-style")),e.style.fontStyle=d;const p=this.get("oversizedBehavior");e.style.whiteSpace="wrap"==p?"pre-wrap":"nowrap",this._root.events.on("frameended",(()=>{""==e.style.minWidth&&(e.style.minWidth=e.scrollWidth+20+"px");const t=this.get("textAlign","start");"center"==t?(e.style.textAlign="center",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-50%)")):"end"==t?(e.style.textAlign="right",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-100%)")):e.style.textAlign=t}))}}_syncText(){const t=this.getPrivate("textarea");let e=this.get("text","");" "==e&&(e=""),t&&(t.value=e)}}d.className="EditableLabel",d.classNames=s._.classNames.concat([d.className])},2433:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radiusX")||this.isDirty("radiusY")||this.isDirty("rotation"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawEllipse(0,0,Math.abs(this.get("radiusX")),Math.abs(this.get("radiusY")))}}n.className="Ellipse",n.classNames=s.T.classNames.concat([n.className])},1479:function(t,e,i){"use strict";i.d(e,{T:function(){return l},u:function(){return h}});var s=i(4429),n=i(4596),r=i(4680),o=i(5040),a=i(5071);const h=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"];class l extends n.j{constructor(){super(...arguments),this._display=this._root._renderer.makeGraphics(),this._clear=!1}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const t=this.get("fillGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("fill")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("fill")}))))}}if(this.isDirty("strokeGradient")){const t=this.get("strokeGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("stroke")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("stroke")}))))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let t=this.get("strokeDasharray");o.isNumber(t)&&(t=t<.5?[0]:[t]),this._display.setLineDash(t);const e=this.get("strokeDashoffset");e&&this._display.setLineDashOffset(e);const i=this.get("blendMode",r.b.NORMAL);this._display.blendMode=i;const s=this.get("draw");s&&"function"==typeof s&&s(this._display,this);const n=this.get("svgPath");null!=n&&this._display.svgPath(n)}}_afterChanged(){if(super._afterChanged(),this._clear){const t=this.get("fill"),e=this.get("fillGradient"),i=this.get("fillPattern"),n=this.get("fillOpacity"),r=this.get("stroke"),o=this.get("strokeGradient"),h=this.get("strokePattern"),l=this.get("shadowColor"),c=this.get("shadowBlur"),u=this.get("shadowOffsetX"),d=this.get("shadowOffsetY"),p=this.get("shadowOpacity");if(l&&(c||u||d)&&this._display.shadow(l,c,u,d,p),t&&!e&&(this._display.beginFill(t,n),this._display.endFill()),e){if(t){const i=e.get("stops",[]);i.length&&a.each(i,(e=>{e.color&&!e.colorInherited||!t||(e.color=t,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=n,e.opacityInherited=!0)}))}const i=e.getFill(this);i&&(this._display.beginFill(i,n),this._display.endFill())}if(i){const t=i.pattern;t&&(this._display.beginFill(t,n),this._display.endFill(),i instanceof s.v&&i.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}if(r||o||h){const t=this.get("strokeOpacity");let e=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(e/=this.get("scale",1)),this.get("crisp")&&(e/=this._root._renderer.resolution);const i=this.get("lineJoin"),n=this.get("lineCap");if(r&&!o&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke()),o){const s=o.get("stops",[]);s.length&&a.each(s,(e=>{e.color&&!e.colorInherited||!r||(e.color=r,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=t,e.opacityInherited=!0)}));const h=o.getFill(this);h&&(this._display.lineStyle(e,h,t,i,n),this._display.endStroke())}if(h){let r=h.pattern;r&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke(),h instanceof s.v&&h.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}l.className="Graphics",l.classNames=n.j.classNames.concat([l.className])},6881:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var s=i(2010),n=i(5071),r=i(751);class o extends s.A{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(t){let e=t.get("paddingLeft",0),i=t.get("paddingRight",0),n=t.get("paddingTop",0),o=t.maxWidth()-e-i,a=o,h=1;(0,s.j)(t,(t=>{if(t.get("visible")&&t.getPrivate("visible")&&!t.get("forceHidden")&&"absolute"!=t.get("position")){let e=t.width();eh&&(h=e)}})),a=r.fitToRange(a,1,o),h=r.fitToRange(h,1,o);let l=1;l=this.get("fixedWidthGrid")?o/h:o/a,l=Math.max(1,Math.floor(l)),l=Math.min(this.get("maxColumns",Number.MAX_VALUE),l);let c=this.getColumnWidths(t,l,h,o),u=n,d=0,p=0;l=c.length;let g=e;(0,s.j)(t,(t=>{if("relative"==t.get("position")&&t.isVisible()){const i=t.get("marginTop",0),s=t.get("marginBottom",0);let n=t.adjustedLocalBounds(),r=t.get("marginLeft",0),o=t.get("marginRight",0),a=g+r-n.left,h=u+i-n.top;t.setPrivate("x",a),t.setPrivate("y",h),g+=c[d]+o,p=Math.max(p,t.height()+i+s),d++,d>=l&&(d=0,g=e,u+=p,p=0)}}))}getColumnWidths(t,e,i,r){let o=0,a=[],h=0;return(0,s.j)(t,(s=>{let n=s.adjustedLocalBounds();"absolute"!=s.get("position")&&s.isVisible()&&(this.get("fixedWidthGrid")?a[h]=i:a[h]=Math.max(0|a[h],n.right-n.left+s.get("marginLeft",0)+s.get("marginRight",0)),h{o+=t})),o>r?e>2?(e-=1,this.getColumnWidths(t,e,i,r)):[r]:a}}o.className="GridLayout",o.classNames=s.A.classNames.concat([o.className])},4431:function(t,e,i){"use strict";i.d(e,{G:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingLeft",0),i=t.innerWidth(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minWidth",t.getPrivate("minWidth",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.width()),i-=e+t.get("marginLeft",0)+t.get("marginRight",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginLeft",0)-t.get("marginRight",0),n=t.get("minWidth",t.getPrivate("minWidth",-1/0)),r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("width",s)}else t._prevSettings.width instanceof r.gG&&t.setPrivate("width",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginLeft",0),s=t.get("marginRight",0),n=t.get("maxWidth"),r=e.left,o=e.right;n&&o-r>n&&(o=r+n);let h=a+i-r;t.setPrivate("x",h),a=h+o+s}else t.setPrivate("x",void 0)}))}}o.className="HorizontalLayout",o.classNames=s.A.classNames.concat([o.className])},962:function(t,e,i){"use strict";i.d(e,{_:function(){return h}});var s=i(2036),n=i(6245),r=i(8777),o=i(5071),a=i(5040);class h extends r.W{constructor(){super(...arguments),this._textKeys=["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),o.each(this._textKeys,(t=>{const e=this.get(t);null!=e&&this._text.set(t,e)})),""!==this.get("html","")&&this._text.set("text",""),this.onPrivate("maxWidth",(()=>{this._setMaxDimentions()})),this.onPrivate("maxHeight",(()=>{this._setMaxDimentions()}))}_makeText(){this._text=this.children.push(s.x.new(this._root,{}))}_updateChildren(){super._updateChildren();const t=this._text;if(o.each(this._textKeys,(t=>{this._text.set(t,this.get(t))})),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),""!==this.get("html","")?t.set("text",""):(t.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){const e=this.get("textAlign");let i;null!=this.get("width")?i="right"==e?n.AQ:"center"==e?n.CI:0:"left"==e||"start"==e?i=this.get("paddingLeft",0):"right"!=e&&"end"!=e||(i=-this.get("paddingRight",0)),t.set("x",i)}const e=this.get("background");e&&e.setPrivate("visible",t._display.textVisible)}_maybeUpdateHTMLColor(){const t=this.getPrivate("htmlElement");t&&this.get("fill")&&(t.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){const t=this.get("rotation"),e=90==t||270==t||-90==t,i=this._text,s=this.get("maxWidth",this.getPrivate("maxWidth",1/0));a.isNumber(s)?i.set(e?"maxHeight":"maxWidth",s-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(e?"maxHeight":"maxWidth",void 0);const n=this.get("maxHeight",this.getPrivate("maxHeight",1/0));a.isNumber(n)?i.set(e?"maxWidth":"maxHeight",n-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(e?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",(()=>{i.markDirtyBounds()}))}_setDataItem(t){super._setDataItem(t),this._markDirtyKey("text"),this._markDirtyKey("html");const e=this._text;e.get("populateText")&&e.markDirtyText();const i=this.get("html");i&&""!==i&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}}h.className="Label",h.classNames=r.W.classNames.concat([h.className])},2010:function(t,e,i){"use strict";i.d(e,{A:function(){return r},j:function(){return n}});var s=i(6331);function n(t,e){t.get("reverseChildren",!1)?t.children.eachReverse(e):t.children.each(e)}class r extends s.JH{}r.className="Layout",r.classNames=s.JH.classNames.concat([r.className])},3105:function(t,e,i){"use strict";i.d(e,{D:function(){return c}});var s=i(3399),n=i(8777),r=i(962),o=i(3497),a=i(5769),h=i(7144),l=i(7652);class c extends s.F{constructor(){super(...arguments),this.itemContainers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:o.c.new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template])))),this.markers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template])))),this.labels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template])))),this.valueLabels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template])))),this.markerRectangles=this.addDisposer(new h.o(a.YS.new({}),(()=>o.c._new(this._root,{themeTags:l.mergeTags(this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template]))))}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(t){const e=this.children.push(this.itemContainers.make());return e._setDataItem(t),this.itemContainers.push(e),e.states.create("disabled",{}),e}makeMarker(){const t=this.markers.make();return this.markers.push(t),t.states.create("disabled",{}),t}makeLabel(){const t=this.labels.make();return t.states.create("disabled",{}),t}makeValueLabel(){const t=this.valueLabels.make();return t.states.create("disabled",{}),t}makeMarkerRectangle(){const t=this.markerRectangles.make();return t.states.create("disabled",{}),t}processDataItem(t){super.processDataItem(t);const e=this.makeItemContainer(t),i=this.get("nameField"),s=this.get("fillField"),n=this.get("strokeField");if(e){const r=this.get("clickTarget","itemContainer"),o=t.dataContext;o&&o.set&&o.set("legendDataItem",t),e._setDataItem(t),t.set("itemContainer",e);const a=this.makeMarker();if(a){e.children.push(a),a._setDataItem(t),t.set("marker",a);const i=this.get("useDefaultMarker"),r=a.children.push(this.makeMarkerRectangle());let h=t.get("fill"),l=t.get("stroke");t.set("markerRectangle",r),o&&o.get&&(h=o.get(s,h),l=o.get(n,l)),l||(l=h),i?o.on&&(o.on(s,(()=>{r.set("fill",o.get(s))})),o.on(n,(()=>{r.set("stroke",o.get(n))}))):o&&o.createLegendMarker&&o.createLegendMarker(),r.setAll({fill:h,stroke:l});const c=o.component;c&&c.updateLegendMarker&&c.updateLegendMarker(o)}const h=this.makeLabel();if(h){e.children.push(h),h._setDataItem(t),t.set("label",h),h.text.on("text",(()=>{e.setRaw("ariaLabel",h.text._getText()+("none"!==this.get("clickTarget")?"; "+this._t("Press ENTER to toggle"):"")),e.markDirtyAccessibility()})),o&&o.get&&t.set("name",o.get(i));let s=t.get("name");s&&h.set("text",s)}const l=this.makeValueLabel();if(l&&(e.children.push(l),l._setDataItem(t),t.set("valueLabel",l)),o&&o.show&&(o.on("visible",(t=>{e.set("disabled",!t)})),o.get("visible")||e.set("disabled",!0),"none"!=r)){let i=e;"marker"==r&&(i=a),this._addClickEvents(i,o,t)}this.children.values.sort(((t,e)=>{const i=t.dataItem.dataContext,s=e.dataItem.dataContext;if(i&&s){const t=this.data.indexOf(i),e=this.data.indexOf(s);if(t>e)return 1;if(t{const t=e.component;t&&t.hoverDataItem&&t.hoverDataItem(e)})),t.events.on("pointerout",(()=>{const t=e.component;t&&t.hoverDataItem&&t.unhoverDataItem(e)})),t.events.on("click",(()=>{const s=i.get("label").text._getText();e.show&&e.isHidden&&(e.isHidden()||!1===e.get("visible"))?(e.show(),t.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,s))):e.hide&&(e.hide(),t.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,s)))}))}disposeDataItem(t){super.disposeDataItem(t);const e=t.dataContext;e&&e.get&&e.get("legendDataItem")==t&&e.set("legendDataItem",void 0);let i=t.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let s=t.get("marker");s&&(this.markers.removeValue(s),s.dispose());let n=t.get("markerRectangle");n&&(this.markerRectangles.removeValue(n),n.dispose());let r=t.get("label");r&&(this.labels.removeValue(r),r.dispose());let o=t.get("valueLabel");o&&(this.valueLabels.removeValue(o),o.dispose())}}c.className="Legend",c.classNames=s.F.classNames.concat([c.className])},2077:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var s=i(1479);function n(t,e){for(let i=0,s=e.length;i0){let e=s[0];if(e.length>0){let i=e[0];t.moveTo(i.x,i.y);for(let e=0,i=s.length;e0){let e=t[0];this._display.moveTo(e.x,e.y),n(this._display,[[t]])}else if(e)n(this._display,e);else if(!this.get("draw")){let t=this.width(),e=this.height();this._display.moveTo(0,0),this._display.lineTo(t,e)}}}}o.className="Line",o.classNames=s.T.classNames.concat([o.className])},5812:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var s=i(8777),n=i(941),r=i(6387),o=i(751);class a extends s.W{constructor(){super(...arguments),this.line=this.children.push(r.P.new(this._root,{themeTags:["line"]})),this.hitLine=this.children.push(r.P.new(this._root,{themeTags:["hit"]})),this.startArrow=this.children.push(n.C.new(this._root,{themeTags:["start","arrow"]})),this.endArrow=this.children.push(n.C.new(this._root,{themeTags:["end","arrow"]}))}_afterNew(){this.addTag("link"),super._afterNew()}_updateChildren(){if(super._updateChildren(),this.isDirty("points")){let t=r.P.makeOrthogonal(this.get("points",[]));this.line.set("points",t),this.hitLine.set("points",t);const e=this.startArrow,i=this.endArrow,s=t.length;if(s>1){const[n,r]=t;e.setAll({x:n.x,y:n.y,rotation:o.getAngle(n,r)-90});const a=t[s-1],h=t[s-2];i.setAll({x:a.x,y:a.y,rotation:o.getAngle(h,a)+90})}else if(1===s){const[s]=t;e.setAll({x:s.x,y:s.y,rotation:0}),i.setAll({x:s.x,y:s.y,rotation:0})}}}}a.className="Link",a.classNames=s.W.classNames.concat([a.className])},8289:function(t,e,i){"use strict";i.d(e,{G:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){return function(e){return new s(e,t)}}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(s+a,n+a*e,r-a,o-a*i,r,o)}},5892:function(t,e,i){"use strict";i.d(e,{$:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){[t,e]=[e,t];let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){function e(e){return new s(e,t)}return e.tension=function(t){return n(+t)},e}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(n+a*e,s+a,o-a*i,r-a,o,r)}},7049:function(t,e,i){"use strict";i.d(e,{l:function(){return h}});var s=i(8777),n=i(6691),r=i(7142),o=i(941),a=i(1112);class h extends s.W{constructor(){super(...arguments),this.label=this.children.push(n.Y.new(this._root,{})),this.buttonsContainer=this.children.push(s.W.new(this._root,{themeTags:["buttons"]})),this.upButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["upbutton"]})),this.downButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["downbutton"]}))}_afterNew(){this.addTag("numericstepper"),this.set("layout",this._root.horizontalLayout),this.label.adapters.add("text",(t=>(t&&t.replace(/\D/g,""),""===t&&(t="0"),t))),this.set("background",r.A.new(this._root,{fillOpacity:0,fill:(0,a.$_)(16777215)})),this.buttonsContainer.states.create("hidden",{opacity:0,visible:!0}),this.events.on("pointerover",(()=>{this.buttonsContainer.set("active",!0)})),this.events.on("pointerout",(()=>{this.buttonsContainer.set("active",!1)})),this.label.on("text",(t=>{if(t){const e=parseFloat(t);isNaN(e)||this.set("value",e)}})),this.upButton.events.on("click",(()=>{this.set("value",this.get("value",0)+1)})),this.downButton.events.on("click",(()=>{this.set("value",Math.max(0,this.get("value",0)-1))})),super._afterNew()}_updateChildren(){super._updateChildren();const t=this.get("value",0),e=this.label;if(this.isDirty("value")&&e.set("text",t.toString()),this.isDirty("disabled")){const t=this.get("disabled",!1);this.set("interactive",!t),this.upButton.set("interactive",!t),this.downButton.set("interactive",!t),t?(this.label.set("editOn","none"),this.buttonsContainer.hide(0)):(this.label.set("editOn","click"),this.buttonsContainer.show(0))}}}h.className="NumericStepper",h.classNames=s.W.classNames.concat([h.className])},6387:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),this.isDirty("points")&&(this._clear=!0)}static makeOrthogonal(t){if(t.length>1){const e=[];for(let i=0;i0&&o&&l){if(h){s=Math.min(s,Math.abs(r.x-o.x)/2,Math.abs(r.y-n.y)/2);const e=Math.sign(r.y-n.y);t.lineTo(r.x,r.y-s*e);const i=o.x{this._display.image=e,this._updateSize(),!i.isDisposed()&&i.isEnabled("loaded")&&i.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{!i.isDisposed()&&i.isEnabled("loaderror")&&i.dispatch("loaderror",{type:"loaderror",target:this})}))}}_updateSize(){super._updateSize();const t=this._display.image;if(t){let e=this.getPrivate("width",this.get("width")),i=this.getPrivate("height",this.get("height"));const s=t.width&&t.height?t.width/t.height:0;n.isNumber(e)&&n.isNumber(i)?(this._display.width=e,this._display.height=i):n.isNumber(e)&&s?i=e/s:n.isNumber(i)&&s?e=i*s:(e=t.width,i=t.height),n.isNumber(e)&&(this._display.width=e),n.isNumber(i)&&(this._display.height=i),this.markDirtyBounds(),this.markDirty()}}}r.className="Picture",r.classNames=s.j.classNames.concat([r.className])},8931:function(t,e,i){"use strict";i.d(e,{i:function(){return r}});var s=i(1479),n=i(751);class r extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let t=this.width(),e=this.height();if(t>0&&e>0){let i=this.get("cornerRadius",8);i=n.fitToRange(i,0,Math.min(t/2,e/2));let s=this.get("pointerX",0),r=this.get("pointerY",0),o=this.get("pointerBaseWidth",15)/2,a=0,h=0,l=0,c=(s-a)*(e-h)-(r-h)*(t-a),u=(s-l)*(0-e)-(r-e)*(t-l);const d=this._display;if(d.moveTo(i,0),c>0&&u>0){let e=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,-1/0,0),d.lineTo(e-o,0),d.lineTo(s,r),d.lineTo(e+o,0)}if(d.lineTo(t-i,0),d.arcTo(t,0,t,i,i),c>0&&u<0){let a=Math.round(n.fitToRange(r,i+o,e-o-i));s=n.fitToRange(s,t,1/0),d.lineTo(t,i),d.lineTo(t,Math.max(a-o,i)),d.lineTo(s,r),d.lineTo(t,a+o)}if(d.lineTo(t,e-i),d.arcTo(t,e,t-i,e,i),c<0&&u<0){let a=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,e,1/0),d.lineTo(t-i,e),d.lineTo(a+o,e),d.lineTo(s,r),d.lineTo(a-o,e)}if(d.lineTo(i,e),d.arcTo(0,e,0,e-i,i),c<0&&u>0){let t=Math.round(n.fitToRange(r,i+o,e-i-o));s=n.fitToRange(s,-1/0,0),d.lineTo(0,e-i),d.lineTo(0,t+o),d.lineTo(s,r),d.lineTo(0,Math.max(t-o,i))}d.lineTo(0,i),d.arcTo(0,0,i,0,i),d.closePath()}}}}r.className="PointedRectangle",r.classNames=s.T.classNames.concat([r.className])},7770:function(t,e,i){"use strict";i.d(e,{m:function(){return r}});var s=i(1479),n=i(5071);class r extends s.T{_beforeChanged(){if(super._beforeChanged(),this.isDirty("coordinates")){const t=[],e=this.get("coordinates");e&&n.each(e,(e=>{t.push({x:e[0],y:e[1]})})),this.set("points",t)}if(this.isPrivateDirty("points")&&(this._clear=!0),this.isDirty("points")){this._clear=!0;const t=this.get("points"),e=this._prevSettings.points;if(e){if(t){let i=n.copy(t),s=n.copy(e),r=i.length,o=s.length;if(r>o){let t=n.copy(i);for(let e=0;er){let t=n.copy(s);for(let e=0;e{this._markDirtyPrivateKey("morphProgress")}))}}else this.setPrivateRaw("previousPoints",t),this.setPrivateRaw("points",t);let i=1/0,s=-1/0,r=1/0,o=-1/0;if(t)for(let e=1,n=t.length;e{this.label.markDirtyKey("text")}))}}}l.className="ProgressPie",l.classNames=n.W.classNames.concat([l.className])},815:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(6245),n=i(962),r=i(4244),o=i(751),a=i(7652);class h extends n._{constructor(){super(...arguments),this._flipped=!1}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(r.f.new(this._root,{}))}baseRadius(){const t=this.getPrivate("radius",0),e=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return e+a.relativeToValue(i,t-e)}radius(){const t=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(t?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){const t=this.get("textType","adjusted"),e=this.get("inside",!1),i=this.get("orientation");let n=o.normalizeAngle(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",e);const r=o.sin(n),a=o.cos(n);let h=this.baseRadius(),l=this.radius();if(this._display.angle=0,"circular"==t)this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",l);else{0==h&&(n=0,l=0);let e=l*a,o=l*r;"radial"==t?(this.setRaw("x",e),this.setRaw("y",o),n<90||n>270||"auto"!=i?(this._display.angle=n,this._flipped=!1):(this._display.angle=n+180,this._flipped=!0),this._dirty.rotation=!1):"adjusted"==t?(this.setRaw("centerX",s.CI),this.setRaw("centerY",s.CI),this.setRaw("x",e),this.setRaw("y",o)):"regular"==t&&(this.setRaw("x",e),this.setRaw("y",o))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){const t=this.get("textType","regular"),e=this.get("inside",!1);let i=0,n=0,r=this.get("labelAngle",0),a=this.localBounds(),h=a.right-a.left,l=a.bottom-a.top;if("radial"==t){if(this._flipped){let t=this.get("centerX");t instanceof s.gG&&(h*=1-2*t.value),i=h*o.cos(r),n=h*o.sin(r)}}else e||"adjusted"!=t||(i=h/2*o.cos(r),n=l/2*o.sin(r));this.setRaw("dx",i),this.setRaw("dy",n),super._updatePosition()}get text(){return this._text}}h.className="RadialLabel",h.classNames=n._.classNames.concat([h.className])},4244:function(t,e,i){"use strict";i.d(e,{f:function(){return r}});var s=i(2036),n=i(751);class r extends s.x{constructor(){super(...arguments),this._display=this._root._renderer.makeRadialText("",this.textStyle)}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*n.RADIANS,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}r.className="RadialText",r.classNames=s.x.classNames.concat([r.className])},7142:function(t,e,i){"use strict";i.d(e,{A:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let t=this.width(),e=this.height(),i=0,s=0,n=t/Math.abs(t),r=e/Math.abs(e);if(this.get("containStroke",!1)){const o=this.get("strokeWidth",0);t-=o*n,e-=o*r,i+=o/2*n,s+=o/2*r}this._display.drawRect(i,s,t,e)}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Rectangle",n.classNames=s.T.classNames.concat([n.className])},3497:function(t,e,i){"use strict";i.d(e,{c:function(){return a}});var s=i(5040),n=i(751),r=i(7652),o=i(7142);class a extends o.A{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let t=this.width(),e=this.height(),i=t/Math.abs(t),o=e/Math.abs(e),a=0,h=0;const l=this.get("strokeWidth",0);this.get("containStroke",!1)&&(t-=i*l,e-=o*l,a+=i*l/2,h+=o*l/2);let c=t,u=e;if(s.isNumber(c)&&s.isNumber(u)){let t=Math.min(c,u)/2,e=r.relativeToValue(this.get("cornerRadiusTL",8),t),s=r.relativeToValue(this.get("cornerRadiusTR",8),t),l=r.relativeToValue(this.get("cornerRadiusBR",8),t),d=r.relativeToValue(this.get("cornerRadiusBL",8),t),p=Math.min(Math.abs(c/2),Math.abs(u/2));e=n.fitToRange(e,0,p),s=n.fitToRange(s,0,p),l=n.fitToRange(l,0,p),d=n.fitToRange(d,0,p);const g=this._display;g.moveTo(a+e*i,h),g.lineTo(a+c-s*i,h),s>0&&g.arcTo(a+c,h,a+c,h+s*o,s),g.lineTo(a+c,h+u-l*o),l>0&&g.arcTo(a+c,h+u,a+c-l*i,h+u,l),g.lineTo(a+d*i,h+u),d>0&&g.arcTo(a,h+u,a,h+u-d*o,d),g.lineTo(a,h+e*o),e>0&&g.arcTo(a,h,a+e*i,h,e),g.closePath()}}}a.className="RoundedRectangle",a.classNames=o.A.classNames.concat([a.className])},6001:function(t,e,i){"use strict";i.d(e,{L:function(){return l}});var s=i(3497),n=i(8777),r=i(1479),o=i(8054),a=i(5040),h=i(7652);class l extends n.W{constructor(){super(...arguments),this.thumb=this._makeThumb(),this.startGrip=this._makeButton(),this.endGrip=this._makeButton(),this._thumbBusy=!1,this._startDown=!1,this._endDown=!1,this._thumbDown=!1}_addOrientationClass(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=s.c.new(this._root,{themeTags:h.mergeTags(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(o.z.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:r.T.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(s.c.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(t){t&&this._disposers.push(t.events.on("stopped",(()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1})))}_afterNew(){this._addOrientationClass(),super._afterNew();const t=this.startGrip,e=this.endGrip,i=this.thumb,s=this.get("background");s&&this._disposers.push(s.events.on("click",(t=>{this.setPrivateRaw("isBusy",!0);const e=this._display.toLocal(t.point),s=this.width(),n=this.height(),r=this.get("orientation");let o,a,h;o="vertical"==r?(e.y-i.height()/2)/n:(e.x-i.width()/2)/s,"vertical"==r?(a=o*n,h="y"):(a=o*s,h="x");const l=this.get("animationDuration",0);l>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:h,to:a,duration:l,easing:this.get("animationEasing")}))):(this.thumb.set(h,a),this._root.events.once("frameended",(()=>{this.setPrivateRaw("isBusy",!1)})))}))),this._disposers.push(i.events.on("dblclick",(t=>{if(!h.isLocalEvent(t.originalEvent,this))return;const e=this.get("animationDuration",0),i=this.get("animationEasing");this.animate({key:"start",to:0,duration:e,easing:i}),this.animate({key:"end",to:1,duration:e,easing:i})}))),this._disposers.push(t.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"}))),this._disposers.push(e.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"}))),this._disposers.push(i.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0}))),this._disposers.push(t.events.on("globalpointerup",(()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1}))),this._disposers.push(e.events.on("globalpointerup",(()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1}))),this._disposers.push(i.events.on("globalpointerup",(()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1}))),this._disposers.push(t.on("x",(()=>{this._updateThumb()}))),this._disposers.push(e.on("x",(()=>{this._updateThumb()}))),this._disposers.push(t.on("y",(()=>{this._updateThumb()}))),this._disposers.push(e.on("y",(()=>{this._updateThumb()}))),this._disposers.push(i.events.on("positionchanged",(()=>{this._updateGripsByThumb()}))),"vertical"==this.get("orientation")?(t.set("x",0),e.set("x",0),this._disposers.push(i.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()-i.height()),0)))),this._disposers.push(i.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("x",(t=>this.width()/2))),this._disposers.push(e.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0)))),this._disposers.push(e.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0))))):(t.set("y",0),e.set("y",0),this._disposers.push(i.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()-i.width()),0)))),this._disposers.push(i.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("y",(t=>this.height()/2))),this._disposers.push(e.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))),this._disposers.push(e.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){const t="rangechanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){const t="released";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}updateGrips(){const t=this.startGrip,e=this.endGrip,i=this.get("orientation"),s=this.height(),n=this.width();"vertical"==i?(t.set("y",s*this.get("start",0)),e.set("y",s*this.get("end",1))):(t.set("x",n*this.get("start",0)),e.set("x",n*this.get("end",1)));const r=this.getPrivate("positionTextFunction"),o=Math.round(100*this.get("start",0)),a=Math.round(100*this.get("end",0));let h,l;r?(h=r.call(this,this.get("start",0)),l=r.call(this,this.get("end",0))):(h=o+"%",l=a+"%"),t.set("ariaLabel",this._t("From %1",void 0,h)),t.set("ariaValueNow",""+o),t.set("ariaValueText",o+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100"),e.set("ariaLabel",this._t("To %1",void 0,l)),e.set("ariaValueNow",""+a),e.set("ariaValueText",a+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100")}_updateThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip,s=this.height(),n=this.width();let r=e.x(),o=i.x(),h=e.y(),l=i.y(),c=0,u=1;"vertical"==this.get("orientation")?a.isNumber(h)&&a.isNumber(l)&&(this._thumbBusy||t.isDragging()||(t.set("height",l-h),t.set("y",h)),c=h/s,u=l/s):a.isNumber(r)&&a.isNumber(o)&&(this._thumbBusy||t.isDragging()||(t.set("width",o-r),t.set("x",r)),c=r/n,u=o/n),!this.getPrivate("isBusy")||this.get("start")==c&&this.get("end")==u||(this.set("start",c),this.set("end",u));const d=this.getPrivate("positionTextFunction"),p=Math.round(100*this.get("start",0)),g=Math.round(100*this.get("end",0));let f,_;d?(f=d.call(this,this.get("start",0)),_=d.call(this,this.get("end",0))):(f=p+"%",_=g+"%"),t.set("ariaLabel",this._t("From %1 to %2",void 0,f,_)),t.set("ariaValueNow",""+p),t.set("ariaValueText",p+"%")}_updateGripsByThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip;if("vertical"==this.get("orientation")){const s=t.height();e.set("y",t.y()),i.set("y",t.y()+s)}else{const s=t.width();e.set("x",t.x()),i.set("x",t.x()+s)}}}l.className="Scrollbar",l.classNames=n.W.classNames.concat([l.className])},5829:function(t,e,i){"use strict";i.d(e,{j:function(){return h}});var s=i(1337),n=i(8777),r=i(7144),o=i(6245),a=i(5071);class h extends s.k{constructor(){super(...arguments),this.seriesContainer=n.W.new(this._root,{width:o.AQ,height:o.AQ,isMeasured:!1}),this.series=new r.dn}_afterNew(){super._afterNew(),this._disposers.push(this.series);const t=this.seriesContainer.children;this._disposers.push(this.series.events.onAll((e=>{if("clear"===e.type){a.each(e.oldValues,(t=>{this._removeSeries(t)}));const t=this.get("colors");t&&t.reset();const i=this.get("patterns");i&&i.reset()}else if("push"===e.type)t.moveValue(e.newValue),this._processSeries(e.newValue);else if("setIndex"===e.type)t.setIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("insertIndex"===e.type)t.insertIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("removeIndex"===e.type)this._removeSeries(e.oldValue);else if("moveIndex"===e.type)t.moveValue(e.value,e.newIndex),this._processSeries(e.value);else{if("swap"!==e.type)throw new Error("Unknown IListEvent type");{const i=e.a,s=e.b,n=this.series.indexOf(i),r=this.series.indexOf(s);t.moveValue(i,r),t.moveValue(s,n),this.series.each((t=>{this._processSeries(t),t.markDirtyValues()}))}}})))}_processSeries(t){t.chart=this,t._placeBulletsContainer(this)}_removeSeries(t){t._handleRemoved(),t.isDisposed()||(this.seriesContainer.children.removeValue(t),t._removeBulletsContainer())}}h.className="SerialChart",h.classNames=s.k.classNames.concat([h.className])},3399:function(t,e,i){"use strict";i.d(e,{F:function(){return g}});var s=i(7582),n=i(9361),r=i(7144),o=i(1112),a=i(6490),h=i(6245),l=i(8777),c=i(962),u=i(5071),d=i(5040),p=i(1926);class g extends n.w{constructor(){super(...arguments),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1,this._dataProcessed=!1,this._baseSeriesDirty=!1,this.bullets=new r.aV,this.bulletsContainer=l.W.new(this._root,{width:h.AQ,height:h.AQ,position:"absolute"})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll((()=>{this._handleBullets(this.dataItems)})))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let t=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),t)}endIndex(){let t=this.dataItems.length;return Math.max(0,Math.min(this.getPrivate("endIndex",t),t))}_handleBullets(t){u.each(t,(t=>{const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)})),this.markDirtyValues()}_makeBullets(t){this._shouldMakeBullet(t)&&(t.bullets=[],this.bullets.each((e=>{this._makeBullet(t,e)})))}_shouldMakeBullet(t){return!0}_makeBullet(t,e,i){const s=e(this._root,this,t);return s&&(s._index=i,this._makeBulletReal(t,s)),s}_makeBulletReal(t,e){let i=e.get("sprite");i&&(i._setDataItem(t),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),e.series=this,t.bullets.push(e)}addBullet(t,e){t.bullets||(t.bullets=[]),e&&this._makeBulletReal(t,e)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();const t=this.dataItems,e=t.length;let i=this.startIndex(),s=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const t=this.getPrivate("baseValueSeries");t&&this._disposers.push(t.onPrivate("startIndex",(()=>{this._baseSeriesDirty=!0,this.markDirtyValues()})))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,e),this._aggregatesCalculated=!0,0!=i&&(this._psi=void 0))),this._psi==i&&this._pei==s&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===i&&s===e&&this._aggregatesCalculated||this._calculateAggregates(i,s),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let t=this.get("tooltip");t&&(t.hide(0),t.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let t;const e=this.get("legendDataItem");if(e&&(t=e.get("markerRectangle"),t&&this.isVisible())){if(this.isDirty("stroke")){let e=this.get("stroke");t.set("stroke",e)}if(this.isDirty("fill")){let e=this.get("fill");t.set("fill",e)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let i=this.startIndex(),s=this.endIndex();s-1==s.indexOf(t))));const n={},r={},o={},a={},h={},l={},c={},u={},d={};for(let t=0,e=i.length;t{if(0===t){const t=l[x],s=i-t;e.setRaw(_,s),e.setRaw(m,s/t*100)}const n=i-d[x],r=i-l[x];e.setRaw(y,n),e.setRaw(v,n/d[x]*100),e.setRaw(w,r),e.setRaw(b,r/l[x]*100),d[s]=i};for(let t=k;tt&&(a[f]=t),h[f]0&&t--,delete d[f];for(let e=t;e0&&u.each(t,(t=>{const e=t.minValue||this.getPrivate(t.dataField+"Low")||0,i=t.maxValue||this.getPrivate(t.dataField+"High")||0;u.each(t.target._entities,(s=>{const n=s.dataItem.get(t.dataField);if(!d.isNumber(n)){t.neutral&&s.set(t.key,t.neutral);const e=s.states;if(e){const i=e.lookup("default");i&&t.neutral&&i.set(t.key,t.neutral)}if(!t.customFunction)return}if(t.customFunction)t.customFunction.call(this,s,e,i,n);else{let r,l;r=t.logarithmic?(Math.log(n)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E):(n-e)/(i-e),!d.isNumber(n)||d.isNumber(r)&&Math.abs(r)!=1/0||(r=.5),d.isNumber(t.min)?l=t.min+(t.max-t.min)*r:t.min instanceof o.Il?l=o.Il.interpolate(r,t.min,t.max):t.min instanceof h.gG&&(l=(0,a.Wn)(r,t.min,t.max)),s.set(t.key,l);const c=s.states;if(c){const e=c.lookup("default");e&&e.set(t.key,l)}}}))})),this.get("visible")){const t=this.dataItems;let e=t.length,i=this.startIndex(),s=this.endIndex();s0&&i--;for(let e=0;e{this._positionBullet(t);const e=t.get("sprite");t.get("dynamic")&&(e&&(e._markDirtyKey("fill"),e.markDirtySize()),e instanceof l.W&&e.walkChildren((t=>{t._markDirtyKey("fill"),t.markDirtySize(),t instanceof c._&&t.text.markDirtyText()}))),e instanceof c._&&e.get("populateText")&&e.text.markDirtyText()}))}_hideBullets(t){t.bullets&&u.each(t.bullets,(t=>{let e=t.get("sprite");e&&e.setPrivate("visible",!1)}))}_positionBullet(t){}_placeBulletsContainer(t){t.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const t=this.bulletsContainer;t.parent&&t.parent.children.removeValue(t)}disposeDataItem(t){const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.show(e))})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.hide(e))})),yield Promise.all(s)}))}_sequencedShowHide(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(d.isNumber(e)||(e=this.get("interpolationDuration",0)),e>0){const i=this.startIndex(),n=this.endIndex();yield Promise.all(u.map(this.dataItems,((r,o)=>(0,s.mG)(this,void 0,void 0,(function*(){let s=e||0;(on+10)&&(s=0);let a=this.get("sequencedDelay",0)+s/(n-i);yield p.sleep(a*(o-i)),t?yield this.showDataItem(r,s):yield this.hideDataItem(r,s)})))))}else yield Promise.all(u.map(this.dataItems,(e=>t?this.showDataItem(e,0):this.hideDataItem(e,0))))}))}updateLegendValue(t){if(t){const e=t.get("legendDataItem");if(e){const i=e.get("valueLabel");if(i){const e=i.text;let s="";i._setDataItem(t),s=this.get("legendValueText",e.get("text","")),i.set("text",s),e.markDirtyText()}const s=e.get("label");if(s){const e=s.text;let i="";s._setDataItem(t),i=this.get("legendLabelText",e.get("text","")),s.set("text",i),e.markDirtyText()}}}}updateLegendMarker(t){}_onHide(){super._onHide();const t=this.getTooltip();t&&t.hide()}hoverDataItem(t){}unhoverDataItem(t){}_getBase(t){const e=this.dataItems[this.startIndex()];return e?e.get(t):0}}g.className="Series",g.classNames=n.w.classNames.concat([g.className])},5863:function(t,e,i){"use strict";i.d(e,{p:function(){return h}});var s=i(1479),n=i(5040),r=i(6245),o=i(832),a=i(751);class h extends s.T{constructor(){super(...arguments),this.ix=0,this.iy=0,this._generator=(0,o.Z)()}_getTooltipPoint(){let t=this.get("tooltipX"),e=this.get("tooltipY"),i=0,s=0;n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e);let o=this.get("radius",0),a=this.get("innerRadius",0);return o+=this.get("dRadius",0),a+=this.get("dInnerRadius",0),a<0&&(a=o+a),t instanceof r.gG&&(i=this.ix*(a+(o-a)*t.value)),e instanceof r.gG&&(s=this.iy*(a+(o-a)*e.value)),this.get("arc")>=360&&0==a&&(i=0,s=0),{x:i,y:s}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this.get("startAngle",0),e=this.get("arc",0);const i=this._generator;e<0&&(t+=e,e*=-1),e>.1&&i.cornerRadius(this.get("cornerRadius",0)),i.context(this._display);let s=this.get("radius",0),n=this.get("innerRadius",0);s+=this.get("dRadius",0),n+=this.get("dInnerRadius",0),n<0&&(n=s+n),i({innerRadius:n,outerRadius:s,startAngle:(t+90)*a.RADIANS,endAngle:(t+e+90)*a.RADIANS});let r=t+e/2;this.ix=a.cos(r),this.iy=a.sin(r);const o=this.get("shiftRadius",0);this.setRaw("dx",this.ix*o),this.setRaw("dy",this.iy*o),this.markDirtyPosition()}}}h.className="Slice",h.classNames=s.T.classNames.concat([h.className])},2162:function(t,e,i){"use strict";i.d(e,{i:function(){return n}});var s=i(6001);class n extends s.L{_afterNew(){this._addOrientationClass(),super._afterNew(),this.endGrip.setPrivate("visible",!1),this.thumb.setPrivate("visible",!1)}updateGrips(){super.updateGrips();const t=this.startGrip;this.endGrip.setAll({x:t.x(),y:t.y()}),this.setRaw("end",this.get("start"))}}n.className="Slider",n.classNames=s.L.classNames.concat([n.className])},4596:function(t,e,i){"use strict";i.d(e,{j:function(){return _}});var s=i(7582),n=i(6331),r=i(5769),o=i(6245),a=i(9770),h=i(7449),l=i(6490),c=i(7652),u=i(5071),d=i(5040),p=i(256),g=i(751);class f extends a.p{constructor(t){super(),this._rendererDisposers={},this._dispatchParents=!0,this._sprite=t}_makePointerEvent(t,e){return{type:t,originalEvent:e.event,point:e.point,simulated:e.simulated,native:e.native,target:this._sprite}}_onRenderer(t,e){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[t];if(void 0===i){const s=this._sprite._display.on(t,(t=>{e.call(this,t)}));i=this._rendererDisposers[t]=new h.DM((()=>{delete this._rendererDisposers[t],s.dispose()}))}return i.increment()}_on(t,e,i,s,n,r,o){const a=super._on(t,e,i,s,n,r,o),l=f.RENDERER_EVENTS[e];return void 0!==l&&(a.disposer=new h.FV([a.disposer,this._onRenderer(e,l)])),a}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(t,e){const i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(t,e),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(t,e)}finally{this._dispatchParents=i}}}f.RENDERER_EVENTS={click:function(t){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",t))&&this.dispatch("click",this._makePointerEvent("click",t))},rightclick:function(t){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",t))},middleclick:function(t){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",t))},dblclick:function(t){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",t))},pointerover:function(t){const e=this._sprite;let i=!0;if(e.getPrivate("trustBounds")){e._getBounds();const s=e.globalBounds();if(e.isType("Graphics")){const t=e.get("strokeWidth",1)/2;t>=1&&(s.left-=t,s.right+=t,s.top-=t,s.bottom+=t)}g.inBounds(t.point,s)||(i=!1,e._root._renderer.removeHovering(e._display))}i&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",t))},pointerout:function(t){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",t))},pointerdown:function(t){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",t))},pointerup:function(t){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",t))},globalpointerup:function(t){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",t))},globalpointermove:function(t){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",t))},wheel:function(t){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:t.event,point:t.point})}};class _ extends n.JH{constructor(){super(...arguments),this._adjustedLocalBounds={left:0,right:0,top:0,bottom:0},this._localBounds={left:0,right:0,top:0,bottom:0},this._sizeDirty=!1,this._isDragging=!1,this._isHidden=!1,this._isShowing=!1,this._isHiding=!1,this._isDown=!1,this._downPoints={}}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(t){this._markDirtyKey(t)}_markDirtyKey(t){super._markDirtyKey(t),"x"!=t&&"y"!=t&&"dx"!=t&&"dy"!=t||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(t){super._markDirtyPrivateKey(t),"x"!=t&&"y"!=t||this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new f(this)}_processTemplateField(){let t;const e=this.get("templateField");if(e){const i=this.dataItem;if(i){const s=i.dataContext;s&&(t=s[e],t instanceof r.YS||!t||(t=r.YS.new(t)))}}this._templateField!==t&&(this._removeTemplateField(),this._templateField=t,t&&t._setObjectTemplate(this),this._applyTemplates())}_setDataItem(t){const e=this._dataItem;this._dataItem=t,this._processTemplateField();const i="dataitemchanged";t!=e&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:e,newDataItem:t})}set dataItem(t){this._setDataItem(t)}get dataItem(){if(this._dataItem)return this._dataItem;{let t=this._parent;for(;t;){if(t._dataItem)return t._dataItem;t=t._parent}}}_addPercentageSizeChildren(){let t=this.parent;t&&(this.get("width")instanceof o.gG||this.get("height")instanceof o.gG?u.pushOne(t._percentageSizeChildren,this):u.removeFirst(t._percentageSizeChildren,this))}_addPercentagePositionChildren(){let t=this.parent;t&&(this.get("x")instanceof o.gG||this.get("y")instanceof o.gG?u.pushOne(t._percentagePositionChildren,this):u.removeFirst(t._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const t=this._localBounds;if(t){const e=this.get("centerX");null!=e&&(this._display.pivot.x=t.left+c.relativeToValue(e,t.right-t.left));const i=this.get("centerY");null!=i&&(this._display.pivot.y=t.top+c.relativeToValue(i,t.bottom-t.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const t=this._prevSettings.tooltip;t&&t.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0);const e=this._tooltipPointerDp;e&&(e.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))),this._tooltipPointerDp=new h.FV([this.events.on("pointerover",(()=>{this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))})),this.events.on("pointerout",(()=>{const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0)}))]))}}_handleStates(){this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();const t=this._display,e=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new h.FV([e.on("pointerdown",(t=>{this.dragStart(t)})),e.on("globalpointermove",(t=>{this.dragMove(t)})),e.on("globalpointerup",(t=>{this.dragStop(t)}))])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),t.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const t=this.get("tooltipText"),i=this.get("tooltipHTML"),s=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(t||i)&&("click"==s?(this._tooltipDp=new h.FV([e.on("click",(()=>{this.setTimeout((()=>{const t=this.getTooltip();t&&!t.isHidden()&&t.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()}),10)})),c.addEventListener(document,"click",(t=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)):"always"==s||(this._tooltipDp=new h.FV([e.on("pointerover",(()=>{this.showTooltip()})),e.on("pointerout",(()=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let t=this.get("toggleKey");t&&"none"!=t?this._toggleDp=e.on("click",(()=>{this._isDragging||this.set(t,!this.get(t))})):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(t.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),t.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),t.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?t.visible=!0:(t.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const t=this.parent;t&&(this.isDirty("width")&&this.get("width")instanceof o.gG||this.isDirty("height")&&this.get("height")instanceof o.gG)&&(t.markDirty(),t._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const e=this.get("wheelable");e&&this.set("interactive",!0),t.wheelable=!!e}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(t.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){const t=this.get("blur",0);0!=t&&(i+=" blur("+t+"px)")}if(this.isDirty("saturate")){const t=this.get("saturate",1);1!=t&&(i+=" saturate("+t+")")}if(this.isDirty("brightness")){const t=this.get("brightness",1);1!=t&&(i+=" brightness("+t+")")}if(this.isDirty("contrast")){const t=this.get("contrast",1);1!=t&&(i+=" contrast("+t+")")}if(this.isDirty("sepia")){const t=this.get("sepia",0);0!=t&&(i+=" sepia("+t+")")}if(this.isDirty("hue")){const t=this.get("hue",0);0!=t&&(i+=" hue-rotate("+t+"deg)")}if(this.isDirty("invert")){const t=this.get("invert",0);0!=t&&(i+=" invert("+t+")")}if(i&&(t.filter=i),this.isDirty("cursorOverStyle")&&(t.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new h.FV([e.on("focus",(()=>{this.showTooltip()})),e.on("blur",(()=>{this.hideTooltip()}))]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(e.on("blur",(()=>{this.setPrivateRaw("touchHovering",!1)}))),this._disposers.push(e.once("boundschanged",(()=>{this.markDirtyAccessibility()})))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(t.exportable=this.get("exportable")),this.isDirty("interactive")){const t=this.events;this.get("interactive")&&!t.isDisposed()?this._hoverDp=new h.FV([t.on("click",(t=>{c.isTouchEvent(t.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout((()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}),10))})),t.on("globalpointerup",(t=>{c.isTouchEvent(t.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})),this._isDown&&this._handleUp(t)})),t.on("pointerover",(()=>{this._handleOver()})),t.on("pointerout",(()=>{this._handleOut()})),t.on("pointerdown",(t=>{this._handleDown(t)}))]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}dragStart(t){this._dragEvent=t,this.events.stopParentDispatch()}dragStop(t){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const e="dragstop";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(t){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const e=c.getPointerId(t.originalEvent);delete this._downPoints[e],0==p.keys(this._downPoints).length&&(this._isDown=!1)}}_hasMoved(t){const e=c.getPointerId(t.originalEvent),i=this._downPoints[e];if(i){const e=Math.abs(i.x-t.point.x),s=Math.abs(i.y-t.point.y);return e>5||s>5}return!1}_hasDown(){return p.keys(this._downPoints).length>0}_handleDown(t){const e=this.parent;if(e&&!this.get("draggable")&&e._handleDown(t),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:t.point.x,y:t.point.y},this._isDown=!0;const e=c.getPointerId(t.originalEvent);this._downPoints[e]={x:t.point.x,y:t.point.y}}}dragMove(t){let e=this._dragEvent;if(e){if(e.simulated&&!t.simulated)return!0;let i=0,s=this.parent,n=1;for(;null!=s;)i+=s.get("rotation",0),s=s.parent,s&&(n*=s.get("scale",1));let r=(t.point.x-e.point.x)/n,o=(t.point.y-e.point.y)/n;const a=this.events;if(e.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}if(this._isDragging){let e=this._dragPoint;this.set("x",e.x+r*g.cos(i)+o*g.sin(i)),this.set("y",e.y+o*g.cos(i)-r*g.sin(i));const s="dragged";a.isEnabled(s)&&a.dispatch(s,{type:s,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}else if(Math.hypot(r,o)>5){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let t=this.parent,e=0;for(;;){if(!t)return e;++e,t=t.parent}}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const t=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),t.isMeasured=!0,t.invalidateBounds();const e=this.parent;e&&"absolute"!=this.get("position")&&(null==e.get("width")||null==e.get("height")||e.get("layout"))&&e.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const t=this._adjustedLocalBounds;let e;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),e=this._adjustedLocalBounds):(e={left:0,right:0,top:0,bottom:0},this._localBounds=e,this._adjustedLocalBounds=e),!t||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom){const t="boundschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(t){let e=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));d.isNumber(e)&&t.right-t.left0?t.right=t.left+s:t.left=t.right+s),d.isNumber(n)&&(n>0?t.bottom=t.top+n:t.top=t.bottom+n)}_removeParent(t){t&&(t.children.removeValue(this),u.removeFirst(t._percentageSizeChildren,this),u.removeFirst(t._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(t){if(!this.isDisposed()){const e=this.getTooltip(),i=this.get("tooltipText"),s=this.get("tooltipHTML");if((i||s)&&e){const n=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);if("fixed"!=n&&t||(this._display._setMatrix(),t=this.toGlobal(r._getTooltipPoint())),"pointer"==n){const e=this.getPrivate("lastTooltipCoords");if(e&&e.x==t.x&&e.y==t.y)return;this.setPrivate("lastTooltipCoords",t)}e.set("pointTo",t),e.set("tooltipTarget",r),e.get("x")||e.set("x",t.x),e.get("y")||e.set("y",t.y),i&&e.label.set("text",i),s&&e.label.set("html",s);const o=this.dataItem;if(o&&e.label._setDataItem(o),"always"==this.get("showTooltipOn")&&(t.x<0||t.x>this._root.width()||t.y<0||t.y>this._root.height()))return void this.hideTooltip();e.label.text.markDirtyText();const a=e.show();return this.setPrivateRaw("showingTooltip",!0),a}}}hideTooltip(){const t=this.getTooltip();if(t&&(this.removePrivate("lastTooltipCoords"),t.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==t)){let e=t.get("keepTargetHover")&&0==t.get("stateAnimationDuration",0)?400:void 0;const i=t.hide(e);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){const t=this._localBounds;if(t){let e=0,i=0;return this.get("isMeasured")?(e=t.left+c.relativeToValue(this.get("tooltipX",0),t.right-t.left),i=t.top+c.relativeToValue(this.get("tooltipY",0),t.bottom-t.top)):(e=c.relativeToValue(this.get("tooltipX",0),this.width()),i=c.relativeToValue(this.get("tooltipY",0),this.height())),{x:e,y:i}}return{x:0,y:0}}getTooltip(){let t=this.get("tooltip");if(t)return t;{let t=this.parent;if(t)return t.getTooltip()}}_updatePosition(){const t=this.parent;let e=this.get("dx",0),i=this.get("dy",0),s=this.get("x"),n=this.getPrivate("x"),r=0,a=0;const h=this.get("position");s instanceof o.gG&&(s=t?t.innerWidth()*s.value+t.get("paddingLeft",0):0),d.isNumber(s)?r=s+e:null!=n?r=n:t&&"relative"==h&&(r=t.get("paddingLeft",0)+e);let l=this.get("y"),c=this.getPrivate("y");l instanceof o.gG&&(l=t?t.innerHeight()*l.value+t.get("paddingTop",0):0),d.isNumber(l)?a=l+i:null!=c?a=c:t&&"relative"==h&&(a=t.get("paddingTop",0)+i);const u=this._display;if(u.x!=r||u.y!=a){u.invalidateBounds(),u.x=r,u.y=a;const t="positionchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let t=this.get("x"),e=this.getPrivate("x");const i=this.parent;return i?t instanceof o.gG?c.relativeToValue(t,i.innerWidth())+i.get("paddingLeft",0):d.isNumber(t)?t:null!=e?e:i.get("paddingLeft",this._display.x):this._display.x}y(){let t=this.getPrivate("y");if(null!=t)return t;let e=this.get("y");const i=this.parent;return i?e instanceof o.gG?c.relativeToValue(e,i.innerHeight())+i.get("paddingTop",0):d.isNumber(e)?e:null!=t?t:i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const t=this.get("tooltip");t&&t.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const t=this._adjustedLocalBounds,e=this.x(),i=this.y();return{left:t.left+e,right:t.right+e,top:t.top+i,bottom:t.bottom+i}}globalBounds(){const t=this.localBounds(),e=this.toGlobal({x:t.left,y:t.top}),i=this.toGlobal({x:t.right,y:t.top}),s=this.toGlobal({x:t.right,y:t.bottom}),n=this.toGlobal({x:t.left,y:t.bottom});return{left:Math.min(e.x,i.x,s.x,n.x),top:Math.min(e.y,i.y,s.y,n.y),right:Math.max(e.x,i.x,s.x,n.x),bottom:Math.max(e.y,i.y,s.y,n.y)}}_onShow(t){}_onHide(t){}appear(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.hide(0),e?new Promise(((i,s)=>{this.setTimeout((()=>{i(this.show(t))}),e)})):this.show(t)}))}show(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(t);const e=this.states.applyAnimate("default",t);yield(0,l.ne)(e),this._isShowing=!1}}))}hide(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let e=this.states.lookup("hidden");e||(e=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(t);const i=this.states.applyAnimate("hidden",t);yield(0,l.ne)(i),this._isHiding=!1}}))}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const t=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*t:t}compositeScale(){const t=this.get("scale",1);return this._parent?this._parent.compositeScale()*t:t}compositeRotation(){const t=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+t:t}width(){let t=this.get("width"),e=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),s=this.getPrivate("width"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerWidth()*t.value:this._root.width()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}maxWidth(){let t=this.get("maxWidth",this.getPrivate("maxWidth"));if(d.isNumber(t))return t;{let t=this.get("width");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerWidth():this._root.width()}maxHeight(){let t=this.get("maxHeight",this.getPrivate("maxHeight"));if(d.isNumber(t))return t;{let t=this.get("height");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerHeight():this._root.height()}height(){let t=this.get("height"),e=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),s=this.getPrivate("height"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerHeight()*t.value:this._root.height()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}_findStaticTemplate(t){return this._templateField&&t(this._templateField)?this._templateField:super._findStaticTemplate(t)}_walkParents(t){(this._parent||this._virtualParent)&&this._walkParent(t)}_walkParent(t){this._parent?this._parent._walkParent(t):this._virtualParent&&this._virtualParent._walkParent(t),t(this)}set virtualParent(t){this._virtualParent!==t&&(this._virtualParent=t,this._applyThemes())}get parent(){return this._parent}_setParent(t,e=!1){const i=this._parent;t!==i&&(this.markDirtyBounds(),t.markDirty(),this._parent=t,e&&(this._removeParent(i),t&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(t){return this._display.toGlobal(t)}toLocal(t){return this._display.toLocal(t)}_getDownPoint(){const t=this._getDownPointId();if(t)return this._downPoints[t]}_getDownPointId(){if(this._downPoints)return p.keysOrdered(this._downPoints,((t,e)=>t>e?1:t{this._resize(t.target,-1)})),this.gripR.events.on("dragged",(t=>{this._resize(t.target,1)})),this.gripL.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripR.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripT.events.on("dragged",(t=>{this._rotate(t,90)})),this.gripB.events.on("dragged",(t=>{this._rotate(t,-90)})),this.gripT.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripB.events.on("dragstart",(t=>{this._resizeStart(t.target)}))}_resizeStart(t){const e=this.get("sprite");e&&(this._is=e.get("scale",1),this._ix=t.x(),this._iw=this.width()/2)}_resize(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=Math.max(.01,this._is*(1+e*(t.x()-this._ix)/this._iw));s?s.set("scale",n):i.set("scale",n),i.states.lookup("default").set("scale",n),this._updatePositions()}}_rotate(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=this.parent;if(n){const r=this.get("rotationStep",10);let o=Math.round((h.getAngle({x:this.x(),y:this.y()},n.toLocal(t.point))+e)/r)*r;s?s.set("rotation",o):i.set("rotation",o),i.states.lookup("default").set("rotation",o),this._updatePositions()}}}_createGrip(t){const e=this.children.push(s.W.new(this._root,{themeTags:["grip",t],setStateOnChildren:!0,draggable:!0}));return e.children.push(r.c.new(this._root,{themeTags:["outline"],centerX:n.CI,centerY:n.CI})),e.children.push(r.c.new(this._root,{centerX:n.CI,centerY:n.CI})),e}_updateChildren(){if(super._updateChildren(),this.isDirty("sprite")){const t=this.get("sprite");if(t){this.show(0),this.setPrivate("visible",!0),this._updatePositions();const e=t.parent;e&&e.children.moveValue(this,0),this._positionDP=t.events.on("positionchanged",(()=>{this._updatePositions()})),this._positionDP=t.events.on("boundschanged",(()=>{this._updatePositions()}))}else this.hide(0),this.setPrivate("visible",!1),this._positionDP&&this._positionDP.dispose()}(this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation"))&&this._updatePositions()}_updatePositions(){const t=this.get("sprite");if(t){let e=t.localBounds(),i=t.get("scale",1),s=20,r=(e.right-e.left)*i+s,o=(e.bottom-e.top)*i+s,a=t.get("rotation",0);const l=this.rectangle;let c=t.get("centerX",n.CI),u=t.get("centerY",n.CI),d=0;c instanceof n.gG&&(d=c.value);let p=0;u instanceof n.gG&&(p=u.value),l.setAll({centerX:c,centerY:u,width:r,height:o}),this.setAll({x:t.x()+s*(d-.5)*h.cos(a)-s*(p-.5)*h.sin(a),y:t.y()+s*(p-.5)*h.cos(a)+s*(d-.5)*h.sin(a),width:r,height:o,rotation:a}),this.gripT.setAll({x:(.5-d)*r,y:-p*o}),this.gripB.setAll({x:(.5-d)*r,y:(1-p)*o}),this.gripL.setAll({x:-d*r,y:(.5-p)*o}),this.gripR.setAll({x:(1-d)*r,y:(.5-p)*o}),this.rectangle.setAll({width:r,height:o})}}}l.className="SpriteResizer",l.classNames=s.W.classNames.concat([l.className])},2036:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(4596),n=i(2132),r=i(5071),o=i(7652),a=i(7449);class h extends s.j{constructor(){super(...arguments),this.textStyle=this._root._renderer.makeTextStyle(),this._display=this._root._renderer.makeText("",this.textStyle),this._textStyles=["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}_updateBounds(){if(this.get("text")){super._updateBounds();let t=this.get("fillGradient");t&&(this._display.style.fill=t.getFill(this))}else{let t={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=t}}_changed(){super._changed(),this._display.clear();let t=this.textStyle;if(this.isDirty("opacity")){let t=this.get("opacity",1);this._display.alpha=t}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),"tooltip"==this.get("role")&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new a.ku((()=>{this._root._removeTooltipElement(this)}))),this.isDirty("width")&&(t.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(t.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(t.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(t.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(t.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(t.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){const e=this.get("fill"),i=this.get("fillGradient"),s=this.get("fillOpacity");if(i){if(e){const t=i.get("stops",[]);t.length&&r.each(t,(t=>{t.color&&!t.colorInherited||!e||(t.color=e,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=s,t.opacityInherited=!0)}))}t.fill=i.getFill(this)}else e&&(t.fill=e)}if(this.isDirty("fillOpacity")){let e=this.get("fillOpacity",1);e&&(t.fillOpacity=e)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(t.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(t.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),r.each(this._textStyles,(e=>{this._dirty[e]&&(t[e]=this.get(e),this.markDirtyBounds())})),t.fontSize=this.get("fontSize"),t.fontFamily=this.get("fontFamily"),this._display.style=t,this.isDirty("role")&&"tooltip"==this.get("role")&&this._root.updateTooltip(this)}_getText(){let t=this.get("text","");return this.get("maxChars")&&(t=o.truncateTextWithEllipsis(t,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?(0,n.q)(this,t):t}_getAccessibleText(){const t=this.get("ariaLabel");return void 0!==t?this.get("populateText")?(0,n.q)(this,t):t:this._getText()}markDirtyText(){this._display.text=this._getText(),"tooltip"==this.get("role")&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(t){super._setDataItem(t),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}h.className="Text",h.classNames=s.j.classNames.concat([h.className])},2438:function(t,e,i){"use strict";i.d(e,{d:function(){return n}});var s=i(2077);class n extends s.x{}n.className="Tick",n.classNames=s.x.classNames.concat([n.className])},2876:function(t,e,i){"use strict";i.d(e,{u:function(){return d}});var s=i(7449),n=i(962),r=i(8931),o=i(8777),a=i(6245),h=i(1112),l=i(751),c=i(5071),u=i(7652);class d extends o.W{constructor(t,e,i,s=[]){super(t,e,i,s),this._fx=0,this._fy=0,this._w=0,this._h=0,this._htmlContentHovered=!1}_afterNew(){this._settings.themeTags=u.mergeTags(this._settings.themeTags,["tooltip"]),super._afterNew(),this._setDefaultFn("background",(()=>r.i.new(this._root,{}))).set("themeTags",["tooltip","background"]),this._label=this.children.push(n._.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",(()=>{this._updateBackground()}))),this._disposers.push(this.on("bounds",(()=>{this._updateBackground()}))),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",(t=>{t&&(this._disposers.push(u.addEventListener(t,"pointerover",(t=>{this._htmlContentHovered=!0}))),this._disposers.push(u.addEventListener(t,"pointerout",(t=>{this._htmlContentHovered=!1}))))}))),this.on("visible",(t=>{this._handleReaderAnnouncement()})),this.label.events.on("dataitemchanged",(t=>{this._handleReaderAnnouncement()})),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),c.remove(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width"),null!=this.get("labelText")&&this.label.set("text",this.get("labelText")),null!=this.get("labelHTML")&&this.label.set("html",this.get("labelHTML")),null!=this.get("labelAriaLabel")&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover"))if(this.get("keepTargetHover")){const t=this.get("background");this._keepHoverDp=new s.FV([t.events.on("pointerover",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),e.hover())})),t.events.on("pointerout",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),this._htmlContentHovered||e.unhover())}))]),this.label.onPrivate("htmlElement",(e=>{this._keepHoverDp&&e&&this._keepHoverDp.disposers.push(u.addEventListener(e,"pointerleave",(e=>{const i=this.root._renderer.getEvent(e);t.events.dispatch("pointerout",{type:"pointerout",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))}))}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let t=this.get("tooltipTarget");const e=this.get("background");let i,s;if(t&&e){if(i=t.get("fill"),s=t.get("stroke"),null==i&&(i=s),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),null!=i&&e.set("fill",i),this._fillDp=t.on("fill",(t=>{null!=t&&(e.set("fill",t),this._updateTextColor(t))})),this._disposers.push(this._fillDp)),this.get("getFillGradientFromSprite")){this._fillGrDp&&this._fillGrDp.dispose();let i=t.get("fillGradient");null!=i&&e.set("fillGradient",i),this._fillGrDp=t.on("fillGradient",(t=>{null!=t&&e.set("fillGradient",t)})),this._disposers.push(this._fillGrDp)}this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),null!=i&&e.set("stroke",i),this._strokeDp=t.on("fill",(t=>{null!=t&&e.set("stroke",t)})),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),null!=i&&this.label.set("fill",i),this._labelDp=t.on("fill",(t=>{null!=t&&this.label.set("fill",t)})),this._disposers.push(this._labelDp))}this._updateTextColor(i)}_updateTextColor(t){this.get("autoTextColor")&&(null==t&&(t=this.get("background").get("fill")),null==t&&(t=this._root.interfaceColors.get("background")),t instanceof h.Il&&this.label.set("fill",h.Il.alternative(t,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(t){super._setDataItem(t),this.label._setDataItem(t)}_updateBackground(){super.updateBackground();const t=this._root.container;if(t){let e=.5,i=.5,s=this.get("centerX");s instanceof a.gG&&(e=s.value);let n=this.get("centerY");n instanceof a.gG&&(i=n.value);let o=t.width(),h=t.height(),c=this.parent,u=0,d=0;if(c){u=c.x(),d=c.y();const t=c.get("layerMargin");t&&(u+=t.left||0,d+=t.top||0,o+=(t.left||0)+(t.right||0),h+=(t.top||0)+(t.bottom||0))}const p=this.get("bounds",{left:-u,top:-d,right:o-u,bottom:h-d});this._updateBounds();let g=this.width(),f=this.height();0===g&&(g=this._w),0===f&&(f=this._h);let _=this.get("pointTo",{x:o/2,y:h/2}),m=_.x,y=_.y,v=this.get("pointerOrientation"),w=this.get("background"),b=0,x=0,D=0;w instanceof r.i&&(b=w.get("pointerLength",0),x=w.get("strokeWidth",0)/2,D=x,w.set("width",g),w.set("height",f));let k=0,T=0,M=p.right-p.left,E=p.bottom-p.top;"horizontal"==v||"left"==v||"right"==v?(x=0,"horizontal"==v?m>p.left+M/2?(m-=g*(1-e)+b,D*=-1):m+=g*e+b:"left"==v?m+=g*(1-e)+b:(m-=g*e+b,D*=-1)):(D=0,"vertical"==v?y>p.top+f/2+b?y-=f*(1-i)+b:(y+=f*i+b,x*=-1):"down"==v?y-=f*(1-i)+b:(y+=f*i+b,x*=-1)),m=l.fitToRange(m,p.left+g*e,p.left+M-g*(1-e))+D,y=l.fitToRange(y,p.top+f*i,p.top+E-f*(1-i))-x,k=_.x-m+g*e+D,T=_.y-y+f*i-x,this._fx=m,this._fy=y;const O=this.get("animationDuration",0);if(O>0&&this.get("visible")&&this.get("opacity")>.1){const t=this.get("animationEasing");this.animate({key:"x",to:m,duration:O,easing:t}),this.animate({key:"y",to:y,duration:O,easing:t})}else this.set("x",m),this.set("y",y);w instanceof r.i&&(w.set("pointerX",k),w.set("pointerY",T)),g>0&&(this._w=g),f>0&&(this._h=f)}}}d.className="Tooltip",d.classNames=o.W.classNames.concat([d.className])},941:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){const t=this.width(),e=this.height(),i=this._display;i.moveTo(-t/2,e/2),i.lineTo(0,-e/2),i.lineTo(t/2,e/2),i.lineTo(-t/2,e/2),i.closePath()}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Triangle",n.classNames=s.T.classNames.concat([n.className])},1706:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingTop",0),i=t.innerHeight(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minHeight",t.getPrivate("minHeight",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.height()),i-=e+t.get("marginTop",0)+t.get("marginBottom",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginTop",0)-t.get("marginBottom",0),n=t.get("minHeight",t.getPrivate("minHeight",-1/0)),r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("height",s)}else t._prevSettings.height instanceof r.gG&&t.setPrivate("height",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginTop",0),s=e.top,n=e.bottom,r=t.get("maxHeight");r&&n-s>r&&(n=s+r);let o=t.get("marginBottom",0),h=a+i-s;t.setPrivate("y",h),a=h+n+o}else t.setPrivate("y",void 0)}))}}o.className="VerticalLayout",o.classNames=s.A.classNames.concat([o.className])},6044:function(t,e,i){"use strict";i.d(e,{H:function(){return h}});var s=i(8777),n=i(8054),r=i(1479),o=i(7449),a=i(2647);class h extends s.W{constructor(){super(...arguments),this.homeButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["home"]})),this.plusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["plus"]})),this.minusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["minus"]}))}_afterNew(){super._afterNew(),this.set("position","absolute"),this.set("layout",this._root.verticalLayout),this.addTag("zoomtools"),this.plusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.minusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.homeButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("target")){const t=this.get("target"),e=this._prevSettings.target;t&&(t instanceof a.Y&&(this._targetDisposer=this.addDisposer(t.contents.on("scale",(e=>{e==t.get("minZoomLevel")?this.minusButton.set("disabled",!0):this.minusButton.set("disabled",!1),e==t.get("maxZoomLevel")?this.plusButton.set("disabled",!0):this.plusButton.set("disabled",!1)}))),this.root.events.once("frameended",(()=>{t.get("scale")==t.get("minZoomLevel")&&this.minusButton.set("disabled",!0)}))),this._disposer=new o.FV([this.plusButton.events.on("click",(()=>{t.zoomIn()})),this.minusButton.events.on("click",(()=>{t.zoomOut()})),this.homeButton.events.on("click",(()=>{t.goHome()}))])),e&&(this._disposer&&this._disposer.dispose(),this._targetDisposer&&this._targetDisposer.dispose())}}}h.className="ZoomTools",h.classNames=s.W.classNames.concat([h.className])},2647:function(t,e,i){"use strict";i.d(e,{Y:function(){return u}});var s=i(8777),n=i(6245),r=i(7142),o=i(1112),a=i(7652),h=i(751),l=i(256),c=i(5040);class u extends s.W{constructor(){super(...arguments),this._movePoints={},this._downScale=1,this._downX=0,this._downY=0,this.contents=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,x:0,y:0,draggable:!0,background:r.A.new(this._root,{fill:(0,o.$_)(16777215),fillOpacity:0})}))}_afterNew(){super._afterNew();const t=this.contents.events;this._disposers.push(t.on("pointerdown",(t=>{this._handleThisDown(t)}))),this._disposers.push(t.on("globalpointerup",(t=>{this._handleThisUp(t)}))),this._disposers.push(t.on("globalpointermove",(t=>{this._handleThisMove(t)})));const e=this.contents.get("background");e&&(e.adapters.add("width",(t=>20*Number(t))),e.adapters.add("height",(t=>20*Number(t))),e.adapters.add("x",(t=>Number(t)-e.width()/2)),e.adapters.add("y",(t=>Number(t)-e.height()/2)));const i=this.contents;i.adapters.add("x",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.width();t=Math.min(n*s,t),t=Math.max(this.width()-n*e*(1+s),t)}return t})),i.adapters.add("y",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.height();t=Math.min(n*s,t),t=Math.max(this.height()-n*e*(1+s),t)}return t}))}_prepareChildren(){super._prepareChildren(),this.isDirty("wheelable")&&this._handleSetWheel(),this.contents._display.cancelTouch=this.get("pinchZoom",!1)}_handleSetWheel(){this.get("wheelable")?(this._wheelDp&&this._wheelDp.dispose(),this._wheelDp=this.events.on("wheel",(t=>{const e=t.originalEvent;if(!a.isLocalEvent(e,this))return;e.preventDefault();const i=this.toLocal(t.point);this._handleWheelZoom(e.deltaY,i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_handleWheelZoom(t,e){let i=this.get("zoomStep",2),s=this.contents.get("scale",1),n=s;t>0?n=s/i:t<0&&(n=s*i),n!=s&&this.zoomToPoint(e,n)}zoomToPoint(t,e){e&&(e=h.fitToRange(e,this.get("minZoomLevel",1),this.get("maxZoomLevel",32)));const i=this.contents.get("scale",1);let s=t.x,n=t.y,r=s,o=n;const a=this.contents;let l=r-(s-a.x())/i*e,c=o-(n-a.y())/i*e;return this._animateTo(l,c,e),this._za}zoomIn(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)*this.get("zoomStep",2))}zoomOut(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)/this.get("zoomStep",2))}goHome(){return this._animateTo(0,0,1)}_animateTo(t,e,i){const s=this.get("animationDuration",0),n=this.get("animationEasing"),r=this.contents;this._txa=r.animate({key:"x",to:t,duration:s,easing:n}),this._tya=r.animate({key:"y",to:e,duration:s,easing:n}),this._za=r.animate({key:"scale",to:i,duration:s,easing:n})}_handleThisUp(t){this._downPoints={}}_handleThisDown(t){const e=this.contents;this._downScale=e.get("scale",1);const i=e._downPoints;let s=l.keys(i).length;if(1==s){let e=i[1];e||(e=i[0]),e&&e.x==t.point.x&&e.y==t.point.y&&(s=0)}if(s>0){this._downX=e.x(),this._downY=e.y();const t=e._getDownPointId();if(t){let i=this._movePoints[t];i&&(e._downPoints[t]=i)}}}_handleThisMove(t){const e=t.originalEvent.pointerId;this.get("pinchZoom")&&e&&(this._movePoints[e]=t.point,l.keys(this.contents._downPoints).length>1)&&this._handlePinch()}_handlePinch(){let t=0,e=[],i=[];if(l.each(this.contents._downPoints,((s,n)=>{e[t]=n;let r=this._movePoints[s];r&&(i[t]=r),t++})),e.length>1&&i.length>1){this.contents._isDragging=!1;let t=e[0],s=e[1],n=i[0],r=i[1];if(t&&s&&n&&r){t=this.toLocal(t),s=this.toLocal(s),n=this.toLocal(n),r=this.toLocal(r);let e=Math.hypot(s.x-t.x,s.y-t.y),i=Math.hypot(r.x-n.x,r.y-n.y)/e*this._downScale,o={x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2},a={x:t.x+(s.x-t.x)/2,y:t.y+(s.y-t.y)/2},h=this._downX||0,l=this._downY||0,c=this._downScale,u=o.x-(-h+a.x)/c*i,d=o.y-(-l+a.y)/c*i;this.contents.setAll({x:u,y:d,scale:i})}}}}u.className="ZoomableContainer",u.classNames=s.W.classNames.concat([u.className])},4102:function(t,e,i){"use strict";i.d(e,{mM:function(){return at},uK:function(){return rt}});var s=i(4680),n=i(1112);class r{constructor(t=1,e=0,i=0,s=1,n=0,r=0){this.a=t,this.b=e,this.c=i,this.d=s,this.tx=n,this.ty=r}setTransform(t,e,i,s,n,r=1){this.a=Math.cos(n)*r,this.b=Math.sin(n)*r,this.c=-Math.sin(n)*r,this.d=Math.cos(n)*r,this.tx=t-(i*this.a+s*this.c),this.ty=e-(i*this.b+s*this.d)}apply(t){return{x:this.a*t.x+this.c*t.y+this.tx,y:this.b*t.x+this.d*t.y+this.ty}}applyInverse(t){const e=1/(this.a*this.d+this.c*-this.b);return{x:this.d*e*t.x+-this.c*e*t.y+(this.ty*this.c-this.tx*this.d)*e,y:this.a*e*t.y+-this.b*e*t.x+(-this.ty*this.a+this.tx*this.b)*e}}append(t){const e=this.a,i=this.b,s=this.c,n=this.d;this.a=t.a*e+t.b*s,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*s,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*s+this.tx,this.ty=t.tx*i+t.ty*n+this.ty}prepend(t){const e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){const e=this.a,i=this.c;this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty}copyFrom(t){this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty}}var o=i(6245),a=i(7449),h=i(7255),l=i(7652),c=i(5071),u=i(256),d=i(5040),p=i(751),g=2*Math.PI,f=function(t,e,i,s,n,r,o){var a=t.x,h=t.y;return{x:s*(a*=e)-n*(h*=i)+r,y:n*a+s*h+o}},_=function(t,e){var i=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),s=Math.cos(t),n=Math.sin(t),r=Math.cos(t+e),o=Math.sin(t+e);return[{x:s-n*i,y:n+s*i},{x:r+o*i,y:o-r*i},{x:r,y:o}]},m=function(t,e,i,s){var n=t*i+e*s;return n>1&&(n=1),n<-1&&(n=-1),(t*s-e*i<0?-1:1)*Math.acos(n)},y=function(t){var e=t.px,i=t.py,s=t.cx,n=t.cy,r=t.rx,o=t.ry,a=t.xAxisRotation,h=void 0===a?0:a,l=t.largeArcFlag,c=void 0===l?0:l,u=t.sweepFlag,d=void 0===u?0:u,p=[];if(0===r||0===o)return[];var y=Math.sin(h*g/360),v=Math.cos(h*g/360),w=v*(e-s)/2+y*(i-n)/2,b=-y*(e-s)/2+v*(i-n)/2;if(0===w&&0===b)return[];r=Math.abs(r),o=Math.abs(o);var x=Math.pow(w,2)/Math.pow(r,2)+Math.pow(b,2)/Math.pow(o,2);x>1&&(r*=Math.sqrt(x),o*=Math.sqrt(x));var D=function(t,e,i,s,n,r,o,a,h,l,c,u){var d=Math.pow(n,2),p=Math.pow(r,2),f=Math.pow(c,2),_=Math.pow(u,2),y=d*p-d*_-p*f;y<0&&(y=0),y/=d*_+p*f;var v=(y=Math.sqrt(y)*(o===a?-1:1))*n/r*u,w=y*-r/n*c,b=l*v-h*w+(t+i)/2,x=h*v+l*w+(e+s)/2,D=(c-v)/n,k=(u-w)/r,T=(-c-v)/n,M=(-u-w)/r,E=m(1,0,D,k),O=m(D,k,T,M);return 0===a&&O>0&&(O-=g),1===a&&O<0&&(O+=g),[b,x,E,O]}(e,i,s,n,r,o,c,d,y,v,w,b),k=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],s=!0,n=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);s=!0);}catch(t){n=!0,r=t}finally{try{!s&&a.return&&a.return()}finally{if(n)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(D,4),T=k[0],M=k[1],E=k[2],O=k[3],P=Math.abs(O)/(g/4);Math.abs(1-P)<1e-7&&(P=1);var S=Math.max(Math.ceil(P),1);O/=S;for(var N=0;N1){const e=/^([01])([01])(.*)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t.splice(i,0,e[2]),++i,e[3].length>0?t[i]=e[3]:t.splice(i,1))}if(++i,s=t[i],s.length>1){const e=/^([01])(.+)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t[i]=e[2])}}}function D(t){if(0===t||1===t)return t;throw new Error("Flag must be 0 or 1")}function k(t,e){for(;(!t.interactive||e(t))&&t._parent;)t=t._parent}function T(t,e,i){return l.addEventListener(t,l.getRendererEvent(e),(t=>{const e=l.getEventTarget(t);let s=t.touches;s?(0==s.length&&(s=t.changedTouches),i(c.copy(s),e)):i([t],e)}))}function M(t){const e=document.createElement("canvas");e.width=1,e.height=1;const i=e.getContext("2d",{willReadFrequently:!0});i.drawImage(t,0,0,1,1);try{return i.getImageData(0,0,1,1),!1}catch(e){return console.warn('Image "'+t.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function E(t){t.width=0,t.height=0,t.style.width="0px",t.style.height="0px"}function O(t){return Math.floor(t)+.5}class P{constructor(){this._x=0,this._y=0}get x(){return this._x}get y(){return this._y}set x(t){this._x=t}set y(t){this._y=t}}class S extends a.KK{constructor(t){super(),this.mask=null,this.visible=!0,this.exportable=!0,this.interactive=!1,this.inactive=null,this.wheelable=!1,this.cancelTouch=!1,this.isMeasured=!1,this.buttonMode=!1,this.alpha=1,this.compoundAlpha=1,this.angle=0,this.scale=1,this.x=0,this.y=0,this.crisp=!1,this.pivot=new P,this._localMatrix=new r,this._matrix=new r,this._uMatrix=new r,this._renderer=t}subStatus(t){return{inactive:null==this.inactive?t.inactive:this.inactive,layer:this._layer||t.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let t=this;for(;;){if(t._layer)return t._layer;if(!t._parent)return this._renderer.defaultLayer;t=t._parent}}setLayer(t,e){if(null==t)this._layer=void 0;else{const i=!0;this._layer=this._renderer.getLayer(t,i),this._layer.visible=i,this._layer.margin=e,e&&l.setInteractive(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost()}}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(t){}_getColorId(){return void 0===this._colorId&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(t){return!t.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(t){return this._isInteractive(t)}contains(t){for(;;){if(t===this)return!0;if(!t._parent)return!1;t=t._parent}}toGlobal(t){return this._matrix.apply(t)}toLocal(t){return this._matrix.applyInverse(t)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){if(!this._localBounds){const t=1e7;this._localBounds={left:t,top:t,right:-t,bottom:-t},this._addBounds(this._localBounds)}return this._localBounds}getAdjustedBounds(t){this._setMatrix();const e=this.getLocalMatrix(),i=e.apply({x:t.left,y:t.top}),s=e.apply({x:t.right,y:t.top}),n=e.apply({x:t.right,y:t.bottom}),r=e.apply({x:t.left,y:t.bottom});return{left:Math.min(i.x,s.x,n.x,r.x),top:Math.min(i.y,s.y,n.y,r.y),right:Math.max(i.x,s.x,n.x,r.x),bottom:Math.max(i.y,s.y,n.y,r.y)}}on(t,e,i){return this.interactive?this._renderer._addEvent(this,t,e,i):new a.ku((()=>{}))}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(t,e){const i=this._matrix;let s=i.tx*e,n=i.ty*e;this.crisp&&(s=O(s),n=O(n)),t.setTransform(i.a*e,i.b*e,i.c*e,i.d*e,s,n)}_transformMargin(t,e,i){const s=this._matrix;t.setTransform(s.a*e,s.b*e,s.c*e,s.d*e,(s.tx+i.left)*e,(s.ty+i.top)*e)}_transformLayer(t,e,i){i.margin?this._transformMargin(t,i.scale||e,i.margin):this._transform(t,i.scale||e)}render(t,e=0){if(this.visible&&(!1!==this.exportable||!this._renderer._omitTainted)){this._setMatrix();const i=this.subStatus(t),s=this._renderer.resolution,n=this._renderer.layers,r=this._renderer._ghostLayer,o=r.context,a=this.mask;a&&a._setMatrix(),c.each(n,(t=>{if(t){const e=t.context;e.save(),a&&(a._transformLayer(e,s,t),a._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(e,s,t),this.filter&&(e.filter=this.filter)}})),o.save(),a&&this._isInteractiveMask(i)&&(a._transformMargin(o,s,r.margin),a._runPath(o),o.clip()),this._transformMargin(o,s,r.margin),i.layer.order>0&&!e&&c.move(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,e),o.restore(),c.each(n,(t=>{t&&t.context.restore()}))}}_render(t,e=0){!1===this.exportable&&(t.layer.tainted=!0)}_ghostOnly(t=0){return t>0}_drawGhost(t,e=0){const i=this._isInteractive(t),s=t.layer.order||0;return!(!i||(0!=s||this._ghostOnly(e))&&s!=e)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some((t=>t.value===this))}shouldCancelTouch(){const t=this._renderer;return!(t.tapToActivate&&!t._touchActive)&&(!!this.cancelTouch||!!this._parent&&this._parent.shouldCancelTouch())}}class N extends S{constructor(){super(...arguments),this.interactiveChildren=!0,this._children=[]}_isInteractiveMask(t){return this.interactiveChildren||super._isInteractiveMask(t)}addChild(t){t._parent=this,this._children.push(t),t._layer&&this.registerChildLayer(t._layer)}addChildAt(t,e){t._parent=this,this._children.splice(e,0,t),t._layer&&this.registerChildLayer(t._layer)}removeChild(t){t._parent=void 0,c.removeFirst(this._children,t)}_render(t,e){super._render(t);const i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,c.each(this._children,(i=>{i.compoundAlpha=this.compoundAlpha*this.alpha,i.render(t,e)})),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(t){this._childLayers||(this._childLayers=[]),c.pushOne(this._childLayers,t),this._parent&&this._parent.registerChildLayer(t)}markDirtyLayer(t=!1){super.markDirtyLayer(),t&&this._childLayers&&c.each(this._childLayers,(t=>t.dirty=!0))}_dispose(){super._dispose(),this._childLayers&&c.each(this._childLayers,(t=>{t.dirty=!0}))}}function C(t,e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.right=Math.max(t.right,e.x),t.bottom=Math.max(t.bottom,e.y)}class L{colorize(t,e){}colorizeGhost(t,e){this.colorize(t,e)}path(t){}pathGhost(t){this.path(t)}addBounds(t){}}class A extends L{colorize(t,e){t.beginPath()}}class R extends L{constructor(t){super(),this.color=t}colorize(t,e){t.fillStyle=void 0!==e?e:this.color}}class U extends L{constructor(t){super(),this.clearShadow=t}colorize(t,e){t.fill(),this.clearShadow&&(t.shadowColor="",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}}class B extends L{colorize(t,e){t.stroke()}}class F extends L{constructor(t,e,i,s){super(),this.width=t,this.color=e,this.lineJoin=i,this.lineCap=s}colorize(t,e){t.strokeStyle=void 0!==e?e:this.color,t.lineWidth=this.width,this.lineJoin&&(t.lineJoin=this.lineJoin),this.lineCap&&(t.lineCap=this.lineCap)}}class I extends L{constructor(t){super(),this.dash=t}colorize(t,e){t.setLineDash(this.dash)}}class H extends L{constructor(t){super(),this.dashOffset=t}colorize(t,e){t.lineDashOffset=this.dashOffset}}class z extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.width=i,this.height=s}path(t){t.rect(this.x,this.y,this.width,this.height)}addBounds(t){const e=this.x,i=this.y,s=e+this.width,n=i+this.height;C(t,{x:e,y:i}),C(t,{x:s,y:i}),C(t,{x:e,y:n}),C(t,{x:s,y:n})}}class G extends L{constructor(t,e,i){super(),this.x=t,this.y=e,this.radius=i}path(t){t.moveTo(this.x+this.radius,this.y),t.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radius,y:this.y-this.radius}),C(t,{x:this.x+this.radius,y:this.y+this.radius})}}class V extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.radiusX=i,this.radiusY=s}path(t){t.ellipse(0,0,this.radiusX,this.radiusY,0,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radiusX,y:this.y-this.radiusY}),C(t,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class W extends L{constructor(t,e,i,s,n,r){super(),this.cx=t,this.cy=e,this.radius=i,this.startAngle=s,this.endAngle=n,this.anticlockwise=r}path(t){this.radius>0&&t.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(t){let e=p.getArcBounds(this.cx,this.cy,this.startAngle*p.DEGREES,this.endAngle*p.DEGREES,this.radius);C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}class Y extends L{constructor(t,e,i,s,n){super(),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.radius=n}path(t){this.radius>0&&t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(t){}}class j extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.lineTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class X extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.moveTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class $ extends L{path(t){t.closePath()}}class Z extends L{constructor(t,e,i,s,n,r){super(),this.cpX=t,this.cpY=e,this.cpX2=i,this.cpY2=s,this.toX=n,this.toY=r}path(t){t.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.cpX2,y:this.cpY2}),C(t,{x:this.toX,y:this.toY})}}class K extends L{constructor(t,e,i,s){super(),this.cpX=t,this.cpY=e,this.toX=i,this.toY=s}path(t){t.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.toX,y:this.toY})}}class q extends L{constructor(t,e,i,s,n){super(),this.color=t,this.blur=e,this.offsetX=i,this.offsetY=s,this.opacity=n}colorize(t,e){this.opacity&&(t.fillStyle=this.color),t.shadowColor=this.color,t.shadowBlur=this.blur,t.shadowOffsetX=this.offsetX,t.shadowOffsetY=this.offsetY}colorizeGhost(t,e){}}class Q extends L{constructor(t,e,i,s,n){super(),this.image=t,this.width=e,this.height=i,this.x=s,this.y=n}path(t){t.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(t){C(t,{x:this.x,y:this.y}),C(t,{x:this.width,y:this.height})}}class J extends S{constructor(){super(...arguments),this._operations=[],this.blendMode=s.b.NORMAL,this._hasShadows=!1}clear(){super.clear(),this._operations.length=0}_pushOp(t){this._operations.push(t)}beginFill(t,e=1){this._fillAlpha=e,t?t instanceof n.Il?this._pushOp(new R(t.toCSS(e))):(this.isMeasured=!0,this._pushOp(new R(t))):this._pushOp(new R("rgba(0, 0, 0, "+e+")"))}endFill(){this._pushOp(new U(this._hasShadows))}endStroke(){this._pushOp(new B)}beginPath(){this._pushOp(new A)}lineStyle(t=0,e,i=1,s,r){this._strokeAlpha=i,e?e instanceof n.Il?this._pushOp(new F(t,e.toCSS(i),s,r)):this._pushOp(new F(t,e,s,r)):this._pushOp(new F(t,"rgba(0, 0, 0, "+i+")",s,r))}setLineDash(t){this._pushOp(new I(t||[]))}setLineDashOffset(t=0){this._pushOp(new H(t))}drawRect(t,e,i,s){this._pushOp(new z(t,e,i,s))}drawCircle(t,e,i){this._pushOp(new G(t,e,i))}drawEllipse(t,e,i,s){this._pushOp(new V(t,e,i,s))}arc(t,e,i,s,n,r=!1){this._pushOp(new W(t,e,i,s,n,r))}arcTo(t,e,i,s,n){this._pushOp(new Y(t,e,i,s,n))}lineTo(t,e){this._pushOp(new j(t,e))}moveTo(t,e){this._pushOp(new X(t,e))}bezierCurveTo(t,e,i,s,n,r){this._pushOp(new Z(t,e,i,s,n,r))}quadraticCurveTo(t,e,i,s){this._pushOp(new K(t,e,i,s))}closePath(){this._pushOp(new $)}shadow(t,e=0,i=0,s=0,n){this._hasShadows=!0,this._pushOp(new q(n?t.toCSS(n):t.toCSS(this._fillAlpha||this._strokeAlpha),e,i,s))}image(t,e,i,s,n){this._pushOp(new Q(t,e,i,s,n))}svgPath(t){let e=0,i=0,s=null,n=null,r=null,o=null;const a=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,h=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g,l=this._operations.length;try{let l;for(;null!==(l=a.exec(t));){const t=l[1],a=l[2],u=[];for(;null!==(l=h.exec(a));)u.push(l[1]);switch("S"!==t&&"s"!==t&&"C"!==t&&"c"!==t&&(s=null,n=null),"Q"!==t&&"q"!==t&&"T"!==t&&"t"!==t&&(r=null,o=null),t){case"M":b(t,u.length,2),e=+u[0],i=+u[1],this.moveTo(e,i);for(let t=2;t{this.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y),e=t.x,i=t.y}))}break;case"Z":case"z":v(t,u.length,0),this.closePath()}}}catch(e){this._operations.length=l,console.warn("Error when parsing svgPath:\n "+e.message+"\n"+t)}}_runPath(t){t.beginPath(),c.each(this._operations,(e=>{e.path(t)}))}_render(t,e=0){super._render(t);const i=t.layer.dirty,s=this._isInteractive(t),n=this._ghostOnly(e),r=this._drawGhost(t,e);if(i||s||n){const e=t.layer.context,s=this._renderer._ghostLayer.context;let o;i&&!n&&(e.globalCompositeOperation=this.blendMode,e.beginPath()),r&&(s.beginPath(),o=this._getColorId()),c.each(this._operations,(t=>{i&&!n&&(t.path(e),t.colorize(e,void 0)),r&&(t.pathGhost(s),t.colorizeGhost(s,o))}))}}renderDetached(t){if(this.visible){this._setMatrix(),t.save();const e=this.mask;e&&(e._setMatrix(),e._transform(t,1),e._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transform(t,1),this.filter&&(t.filter=this.filter),t.globalCompositeOperation=this.blendMode,t.beginPath(),c.each(this._operations,(e=>{e.path(t),e.colorize(t,void 0)})),t.restore()}}_addBounds(t){this.visible&&this.isMeasured&&c.each(this._operations,(e=>{e.addBounds(t)}))}}class tt extends S{constructor(t,e,i){super(t),this.resolution=1,this.textVisible=!0,this._originalScale=1,this.text=e,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_shared(t){this.style.textAlign&&(t.textAlign=this.style.textAlign),this.style.direction&&(t.direction=this.style.direction),this.style.textBaseline&&(t.textBaseline=this.style.textBaseline)}_prerender(t,e=!1,i=!1){super._render(t);const s=t.layer.context,r=this._renderer._ghostLayer.context,o=this.style;let a=this._getFontStyle(void 0,i);s.font=a,this._isInteractive(t)&&!e&&(r.font=a),o.fill&&(o.fill instanceof n.Il?s.fillStyle=o.fill.toCSS(null!=o.fillOpacity?o.fillOpacity:1):s.fillStyle=o.fill),o.shadowColor&&(t.layer.context.shadowColor=o.shadowColor.toCSS(o.shadowOpacity||1)),o.shadowBlur&&(t.layer.context.shadowBlur=o.shadowBlur),o.shadowOffsetX&&(t.layer.context.shadowOffsetX=o.shadowOffsetX),o.shadowOffsetY&&(t.layer.context.shadowOffsetY=o.shadowOffsetY),this._shared(s),this._isInteractive(t)&&!e&&(r.fillStyle=this._getColorId(),this._shared(r))}_getFontStyle(t,e=!1){const i=this.style;let s=[];return t&&t.fontVariant?s.push(t.fontVariant):i.fontVariant&&s.push(i.fontVariant),e||(t&&t.fontWeight?s.push(t.fontWeight):i.fontWeight&&s.push(i.fontWeight)),t&&t.fontStyle?s.push(t.fontStyle):i.fontStyle&&s.push(i.fontStyle),t&&t.fontSize?(d.isNumber(t.fontSize)&&(t.fontSize=t.fontSize+"px"),s.push(t.fontSize)):i.fontSize&&(d.isNumber(i.fontSize)&&(i.fontSize=i.fontSize+"px"),s.push(i.fontSize)),t&&t.fontFamily?s.push(t.fontFamily):i.fontFamily?s.push(i.fontFamily):s.length&&s.push("Arial"),s.join(" ")}_render(t,e=0){if(this._textInfo||this._measure(t),this.textVisible){const i=this._isInteractive(t),s=t.layer.context,r=t.layer.dirty,o=this._renderer._ghostLayer.context,a=this._ghostOnly(e),l=this._drawGhost(t,e);s.save(),o.save(),this._prerender(t),c.each(this._textInfo,((e,u)=>{c.each(e.textChunks,((c,u)=>{if(c.style&&(s.save(),o.save(),a||(s.font=c.style),this._isInteractive(t)&&(o.font=c.style)),c.fill&&(s.save(),a||(s.fillStyle=c.fill.toCSS())),r&&!a&&s.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),"underline"==c.textDecoration||"line-through"==c.textDecoration){let t=1,i=1,r=c.height;const o=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(o)>-1){const t=this._measureText(c.text,s);c.width=t.actualBoundingBoxLeft+t.actualBoundingBoxRight}let l,u=c.offsetX;switch(this.style.textAlign){case"right":case"end":u-=c.width;break;case"center":u-=c.width/2}if(c.style)switch(h.V.getTextStyle(c.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":t=2}r&&(i=r/20),l="line-through"==c.textDecoration?t+e.offsetY+c.offsetY-c.height/2:t+1.5*i+e.offsetY+c.offsetY,a||(s.save(),s.beginPath(),c.fill?s.strokeStyle=c.fill.toCSS():this.style.fill&&this.style.fill instanceof n.Il&&(s.strokeStyle=this.style.fill.toCSS()),s.lineWidth=t*i,s.moveTo(u,l),s.lineTo(u+c.width,l),s.stroke(),s.restore())}i&&this.interactive&&l&&o.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),c.fill&&s.restore(),c.style&&(s.restore(),o.restore())}))})),s.restore(),o.restore()}}_addBounds(t){if(this.visible&&this.isMeasured){const e=this._measure({inactive:this.inactive,layer:this.getLayer()});C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction;this._textInfo=[];const n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=d.isNumber(r)&&("wrap"==n||"wrap-no-break"==n);e.save(),i.save(),this._prerender(t,!0,this._ignoreFontWeight());const p="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",g=this.text.toString().replace(/\r/g,"").split(/\n/);let f,_=!0,m=0,y=0,v=0;c.each(g,((t,s)=>{let n;for(n=""==t?[{type:"value",text:""}]:h.V.chunk(t,!1,this.style.ignoreFormatting);n.length>0;){let t={offsetY:v,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const s=this._measureText(p,e),g=s.actualBoundingBoxAscent+s.actualBoundingBoxDescent;let w;t.height=g,t.ascent=s.actualBoundingBoxAscent;let b,x,D,k=this.style.textDecoration,T=!1,M=!0,E=[];c.eachContinue(n,((s,o)=>{if("format"==s.type)if("[/]"==s.text)_||(e.restore(),i.restore(),_=!0),b=void 0,f=void 0,x=void 0,k=this.style.textDecoration,D=void 0,w=s.text;else{_||(e.restore(),i.restore());let n=h.V.getTextStyle(s.text);const r=this._getFontStyle(n);e.save(),i.save(),e.font=r,f=r,w=s.text,n.textDecoration&&(k=n.textDecoration),n.fill&&(b=n.fill),n.width&&(x=d.toNumber(n.width)),n.verticalAlign&&(D=n.verticalAlign),_=!1;const o=this._measureText(p,e),a=o.actualBoundingBoxAscent+o.actualBoundingBoxDescent;a>t.height&&(t.height=a),o.actualBoundingBoxAscent>t.ascent&&(t.ascent=o.actualBoundingBoxAscent)}else if("value"==s.type&&!T){const i=this._measureText(s.text,e);let h=i.actualBoundingBoxLeft+i.actualBoundingBoxRight;if(a){this.truncated=void 0;let i=M||this.style.breakWords||!1;const n=this.style.ellipsis||"",o=this._measureText(n,e),a=o.actualBoundingBoxLeft+o.actualBoundingBoxRight;if(t.width+h>r){const o=r-t.width-a;s.text=this._truncateText(e,s.text,o,i),s.text+=n,T=!0,this.truncated=!0}}else if(u&&t.width+h>r){const i=r-t.width,a=this._truncateText(e,s.text,i,!1,M&&"wrap-no-break"!=this.style.oversizedBehavior);if(""==a)return this.textVisible=!0,!1;E=n.slice(o+1),l.trim(a)!=l.trim(s.text)&&(E.unshift({type:"value",text:s.text.substr(a.length)}),w&&E.unshift({type:"format",text:w})),s.text=l.trim(a),n=[],T=!0}let c=1,d=1;if(f&&x&&x>h){const t=h/x;switch(this.style.textAlign){case"right":case"end":c=t;break;case"center":c=t,d=t;break;default:d=t}h=x}const p=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent;p>t.height&&(t.height=p),i.actualBoundingBoxAscent>t.ascent&&(t.ascent=i.actualBoundingBoxAscent),t.width+=h,t.left+=i.actualBoundingBoxLeft/c,t.right+=i.actualBoundingBoxRight/d,t.textChunks.push({style:f,fill:b,text:s.text,width:h,height:p,left:i.actualBoundingBoxLeft,right:i.actualBoundingBoxRight,ascent:i.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:k,verticalAlign:D}),M=!1}return!0})),this.style.lineHeight instanceof o.gG?(t.height*=this.style.lineHeight.value,t.ascent*=this.style.lineHeight.value):(t.height*=this.style.lineHeight||1.2,t.ascent*=this.style.lineHeight||1.2),m{let i=0;c.each(t.textChunks,(e=>{if(e.offsetX=i+e.left-t.left,e.offsetY+=t.height-t.height*(this.style.baselineRatio||.19),i+=e.width*(s?-1:1),e.verticalAlign)switch(e.verticalAlign){case"super":e.offsetY-=t.height/2-e.height/2;break;case"sub":e.offsetY+=e.height/2}}))}));const w={left:s?-y:-m,top:0,right:s?m:y,bottom:v};if("none"!==n){const t=this._fitRatio(w);if(t<1)if("fit"==n)d.isNumber(this.style.minScale)&&ti&&""!=e);return e}_measureText(t,e){let i=e.measureText(t),s={};if(null==i.actualBoundingBoxAscent){const e=document.createElement("div");e.innerText=t,e.style.visibility="hidden",e.style.position="absolute",e.style.top="-1000000px;",e.style.fontFamily=this.style.fontFamily||"",e.style.fontSize=this.style.fontSize+"",document.body.appendChild(e);const n=e.getBoundingClientRect();document.body.removeChild(e);const r=n.height,o=i.width;s={actualBoundingBoxAscent:r,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:o,fontBoundingBoxAscent:r,fontBoundingBoxDescent:0,width:o}}else s={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const n=i.width;switch(this.style.textAlign){case"right":case"end":s.actualBoundingBoxLeft=n,s.actualBoundingBoxRight=0;break;case"center":s.actualBoundingBoxLeft=n/2,s.actualBoundingBoxRight=n/2;break;default:s.actualBoundingBoxLeft=0,s.actualBoundingBoxRight=n}return s}}class et{constructor(){this.lineHeight=(0,o.aQ)(120),this.baselineRatio=.19,this.oversizedBehavior="none",this.breakWords=!1,this.ellipsis="…",this.ignoreFormatting=!1}}class it extends tt{constructor(){super(...arguments),this.textType="circular",this.inside=!1,this.orientation="auto",this.kerning=0,this._textReversed=!1}_render(t,e=0){"circular"===this.textType?this._renderCircular(t,e):super._render(t,e)}_renderCircular(t,e=0){if(this.textVisible){this._prerender(t);const i=this._isInteractive(t),s=t.layer.context,n=t.layer.dirty,r=this._renderer._ghostLayer.context;s.save(),i&&r.save(),this._textInfo||this._measure(t);let o=this.radius||0,a=this.startAngle||0,h=0,l=this.orientation,u="auto"==l?"auto":"inward"==l;const d=this.inside,g=this.style.textAlign||"left",f=this.kerning||0;let _="left"==g?1:-1;const m=!this._textReversed,y=this._ghostOnly(e),v=this._drawGhost(t,e);if("auto"==u){let t=0,e=0;c.each(this._textInfo,((e,i)=>{const s=a+e.width/(o-e.height)/2*-_;s>t&&(t=s)})),e="left"==g?(t+h/2)*p.DEGREES:"right"==g?(t-h/2)*p.DEGREES:a*p.DEGREES,e=p.normalizeAngle(e),u=e>=270||e<=90}1==u&&m&&(this._textInfo.reverse(),this._textReversed=!0),c.each(this._textInfo,((t,e)=>{const l=t.height;d||(o+=l),(-1==_&&u||1==_&&!u)&&m&&t.textChunks.reverse();let p=a;h=0,"center"==g&&(p+=t.width/(o-l)/2*-_,h=p-a),p+=Math.PI*(u?0:1),s.save(),i&&r.save(),y||s.rotate(p),i&&r.rotate(p);let w=0;c.each(t.textChunks,((t,e)=>{const a=t.text,h=t.width;w=h/2/(o-l)*_,y||s.rotate(w),i&&r.rotate(w),t.style&&(s.save(),r.save(),y||(s.font=t.style),i&&(r.font=t.style)),t.fill&&(s.save(),y||(s.fillStyle=t.fill.toCSS())),y||(s.textBaseline="middle",s.textAlign="center"),i&&(r.textBaseline="middle",r.textAlign="center"),n&&!y&&s.fillText(a,0,(u?1:-1)*(0-o+l/2)),i&&v&&r.fillText(a,0,(u?1:-1)*(0-o+l/2)),t.fill&&s.restore(),t.style&&(s.restore(),r.restore()),w=(h/2+f)/(o-l)*_,y||s.rotate(w),i&&r.rotate(w)})),s.restore(),i&&r.restore(),d&&(o-=l)})),s.restore(),i&&r.restore()}}_measure(t){return"circular"===this.textType?this._measureCircular(t):super._measure(t)}_measureCircular(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction,n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=this.style.ellipsis||"";let p;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,e.save(),i.save(),this._prerender(t,!0);const g=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,_=0,m=0;return c.each(g,((t,n)=>{let g,y,v,w=h.V.chunk(t,!1,this.style.ignoreFormatting),b={offsetY:m,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};c.each(w,((t,n)=>{if("format"==t.type){if("[/]"==t.text)f||(e.restore(),i.restore(),f=!0),y=void 0,g=void 0,v=void 0;else{let s=h.V.getTextStyle(t.text);const n=this._getFontStyle(s);e.save(),i.save(),e.font=n,g=n,s.fill&&(y=s.fill),s.width&&(v=d.toNumber(s.width)),f=!1}a&&(p=this._measureText(u,e))}else if("value"==t.type){let i=t.text.match(/./gu)||[];s&&(i=l.splitString(t.text),i.reverse());for(let t=0;to&&(o=v);const h=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;if(h>b.height&&(b.height=h),n.actualBoundingBoxAscent>b.ascent&&(b.ascent=n.actualBoundingBoxAscent),_+=o,a){p||(p=this._measureText(u,e));const t=p.actualBoundingBoxLeft+p.actualBoundingBoxRight;if(_+t>r){1==b.textChunks.length?this.textVisible=!1:(b.width+=t,b.left+=p.actualBoundingBoxLeft,b.right+=p.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:u,width:t,height:h+p.actualBoundingBoxDescent,left:p.actualBoundingBoxLeft,right:p.actualBoundingBoxRight,ascent:p.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0}));break}}b.width+=o,b.left+=n.actualBoundingBoxLeft,b.right+=n.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:s,width:o,height:h+n.actualBoundingBoxDescent,left:n.actualBoundingBoxLeft,right:n.actualBoundingBoxRight,ascent:n.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0})}}})),this.style.lineHeight instanceof o.gG?b.height*=this.style.lineHeight.value:b.height*=this.style.lineHeight||1.2,this._textInfo.push(b),m+=b.height})),f||(e.restore(),i.restore()),"hide"==n&&_>r&&(this.textVisible=!1),c.each(this._textInfo,(t=>{c.each(t.textChunks,(e=>{e.offsetY+=Math.round((t.height-e.height+(t.ascent-e.ascent))/2)}))})),e.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class st extends S{constructor(t,e){super(t),this.image=e}_dispose(){super._dispose(),this._imageMask&&E(this._imageMask)}getLocalBounds(){if(!this._localBounds){let t=0,e=0;this.width&&(t=this.width),this.height&&(e=this.height),this._localBounds={left:0,top:0,right:t,bottom:e},this._addBounds(this._localBounds)}return this._localBounds}_render(t,e=0){if(super._render(t),this.image){if(void 0===this.tainted&&(this.tainted=M(this.image),t.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;const i=this._ghostOnly(e),s=this._drawGhost(t,e);if(t.layer.dirty&&!i){this.shadowColor&&(t.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(t.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(t.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(t.layer.context.shadowOffsetY=this.shadowOffsetY);const e=this.width||this.image.naturalWidth,i=this.height||this.image.naturalHeight;t.layer.context.drawImage(this.image,0,0,e,i)}if(this.interactive&&this._isInteractive(t)&&s){const t=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(t,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(t){if(void 0===this._imageMask){const e=this.width||t.naturalWidth,i=this.height||t.naturalHeight,s=document.createElement("canvas");s.width=e,s.height=i;const n=s.getContext("2d");n.imageSmoothingEnabled=!1,n.fillStyle=this._getColorId(),n.fillRect(0,0,e,i),M(t)||(n.globalCompositeOperation="destination-in",n.drawImage(t,0,0,e,i)),this._imageMask=s}return this._imageMask}}class nt{constructor(t,e,i,s){this.event=t,this.originalPoint=e,this.point=i,this.bbox=s,this.simulated=!1,this.native=!0,l.supports("touchevents")&&t instanceof Touch?this.id=t.identifier:this.id=null}}class rt extends a.rk{constructor(t){if(super(),this.view=document.createElement("div"),this._layerDom=document.createElement("div"),this.layers=[],this._dirtyLayers=[],this.defaultLayer=this.getLayer(0),this._ghostLayer=new ot,this._deferredGhostLayers=[],this._patternCanvas=document.createElement("canvas"),this._patternContext=this._patternCanvas.getContext("2d"),this._realWidth=0,this._realHeight=0,this._calculatedWidth=0,this._calculatedHeight=0,this.interactionsEnabled=!0,this._listeners={},this._events={},this._colorId=0,this._colorMap={},this._forceInteractive=0,this._omitTainted=!1,this._hovering=new Set,this._dragging=[],this._mousedown=[],this.tapToActivate=!1,this.tapToActivateTimeout=3e3,this._touchActive=!1,this.resolution=null==t?window.devicePixelRatio:t,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new a.ku((()=>{u.each(this._events,((t,e)=>{e.disposer.dispose()})),c.each(this.layers,(t=>{E(t.view),t.exportableView&&E(t.exportableView)})),E(this._ghostLayer.view),E(this._patternCanvas)}))),this._disposers.push(l.onZoom((()=>{null==t&&(this.resolution=window.devicePixelRatio)}))),l.supports("touchevents")){const t=t=>{0!==this._dragging.length&&c.eachContinue(this._dragging,(e=>!e.value.shouldCancelTouch()||(t.preventDefault(),!1))),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(l.addEventListener(window,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchmove",(()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()}),{passive:!0})),this._disposers.push(l.addEventListener(window,"click",(t=>{this._touchActive=!1}),{passive:!0})),this._disposers.push(l.addEventListener(this.view,"click",(t=>{window.setTimeout((()=>{this._touchActive=!0,this._delayTouchDeactivate()}),100)}),{passive:!0}))}l.supports("wheelevents")&&this._disposers.push(l.addEventListener(this.view,"wheel",(t=>{let e=!1;this._hovering.forEach((t=>{if(t.wheelable)return e=!0,!1})),e&&t.preventDefault()}),{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout((()=>{this._touchActive=!1}),this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(t){t?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(t,e,i,s){return this.defaultLayer.context.createLinearGradient(t,e,i,s)}createRadialGradient(t,e,i,s,n,r){return this.defaultLayer.context.createRadialGradient(t,e,i,s,n,r)}createPattern(t,e,i,s,n){return this._patternCanvas.width=s,this._patternCanvas.height=n,this._patternContext.clearRect(0,0,s,n),e.renderDetached(this._patternContext),t.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new N(this)}makeGraphics(){return new J(this)}makeText(t,e){return new tt(this,t,e)}makeTextStyle(){return new et}makeRadialText(t,e){return new it(this,t,e)}makePicture(t){return new st(this,t)}resizeLayer(t){t.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(t,e,i,s){this._realWidth=t,this._realHeight=e,this._calculatedWidth=i,this._calculatedHeight=s,c.each(this.layers,(t=>{t&&(t.dirty=!0,this.resizeLayer(t))})),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(t=!1){const e=document.createElement("canvas"),i=e.getContext("2d",{willReadFrequently:t}),s=new at(e,i);return e.style.position="absolute",e.style.top="0px",e.style.left="0px",s}getLayerByOrder(t){const e=this.layers,i=e.length;for(let s=0;st.order>e.order?1:t.order{t&&t.dirty&&t.visible&&(this._dirtyLayers.push(t),t.clear())})),this._ghostLayer.clear(),t.render({inactive:null,layer:this.defaultLayer});const e=this._deferredGhostLayers;if(e.length&&(e.sort(((t,e)=>t-e)),c.each(e,(e=>{t.render({inactive:null,layer:this.defaultLayer},e)}))),this._ghostLayer.context.restore(),c.each(this.layers,(t=>{if(t){const e=t.context;e.beginPath(),e.moveTo(0,0),e.stroke()}})),c.each(this._dirtyLayers,(t=>{t.context.restore(),t.dirty=!1})),this._hovering.size&&this._lastPointerMoveEvent){const{events:t,target:e,native:i}=this._lastPointerMoveEvent;c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))}}paintId(t){const e=function(t){const e=[0,0,0];for(let i=0;i<24;i++)e[i%3]<<=1,e[i%3]|=1&t,t>>=1;return(0|e[0])+(e[1]<<8)+(e[2]<<16)}(++this._colorId),i=n.Il.fromHex(e).toCSS();return this._colorMap[i]=t,i}_removeObject(t){void 0!==t._colorId&&delete this._colorMap[t._colorId]}_adjustBoundingBox(t){const e=this._ghostLayer.margin;return new DOMRect(-e.left,-e.top,t.width+e.left+e.right,t.height+e.top+e.bottom)}getEvent(t,e=!0){const i=this.view.getBoundingClientRect(),s=t.clientX||0,n=t.clientY||0,r=this._calculatedWidth/this._realWidth,o=this._calculatedHeight/this._realHeight,a={x:s-i.left,y:n-i.top},h={x:(s-(e?i.left:0))*r,y:(n-(e?i.top:0))*o};return new nt(t,a,h,this._adjustBoundingBox(i))}_getHitTarget(t,e,i){if(0===e.width||0===e.height||t.xe.right||t.ye.bottom)return;if(!i||!this._layerDom.contains(i))return;const s=this._ghostLayer.getImageData(t,e);if(0===s.data[0]&&0===s.data[1]&&0===s.data[2])return!1;const r=n.Il.fromRGB(s.data[0],s.data[1],s.data[2]).toCSS();return this._colorMap[r]}getObjectAtPoint(t){const e=this._ghostLayer.getImageArray(t);if(0===e[0]&&0===e[1]&&0===e[2])return;const i=n.Il.fromRGB(e[0],e[1],e[2]).toCSS();return this._colorMap[i]}_withEvents(t,e){const i=this._events[t];if(void 0!==i){i.dispatching=!0;try{e(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,c.keepIf(i.callbacks,(t=>!t.disposed)),0===i.callbacks.length&&(i.disposer.dispose(),delete this._events[t]))}}}_dispatchEventAll(t,e){this.interactionsEnabled&&this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.callback.call(t.context,e)}))}))}_dispatchEvent(t,e,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.object!==e||(t.callback.call(t.context,i),s=!0)}))})),s}_dispatchMousedown(t,e){const i=t.button;if(0!=i&&2!=i&&1!=i&&void 0!==i)return;const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);if(n){const t=s.id;let e=!1;k(n,(i=>{const n={id:t,value:i};return this._mousedown.push(n),!e&&this._dispatchEvent("pointerdown",i,s)&&(e=!0,this._dragging.some((e=>e.value===i&&e.id===t))||this._dragging.push(n)),!0}))}}_dispatchGlobalMousemove(t,e,i){const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);s.native=i,n?(this._hovering.forEach((t=>{t.contains(n)||(this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s))})),s.native&&k(n,(t=>(this._hovering.has(t)||(this._hovering.add(t),t.cursorOverStyle&&(t._replacedCursorStyle=l.getStyle(document.body,"cursor"),l.setStyle(document.body,"cursor",t.cursorOverStyle)),this._dispatchEvent("pointerover",t,s)),!0)))):(this._hovering.forEach((t=>{t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s)})),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(t){this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle)}_dispatchGlobalMouseup(t,e){const i=this.getEvent(t);i.native=e,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(t){if(0!==this._dragging.length){const e=this.getEvent(t),i=e.id;this._dragging.forEach((t=>{t.id===i&&this._dispatchEvent("pointermove",t.value,e)}))}}_dispatchDragEnd(t,e){const i=t.button;let s;if(0==i||void 0===i)s="click";else if(2==i)s="rightclick";else{if(1!=i)return;s="middleclick"}const n=this.getEvent(t),r=n.id;if(0!==this._mousedown.length){const t=this._getHitTarget(n.originalPoint,n.bbox,e);t&&this._mousedown.forEach((e=>{e.id===r&&e.value.contains(t)&&this._dispatchEvent(s,e.value,n)})),this._mousedown.length=0}0!==this._dragging.length&&(this._dragging.forEach((t=>{t.id===r&&this._dispatchEvent("pointerup",t.value,n)})),this._dragging.length=0)}_dispatchDoubleClick(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("dblclick",t,i)))}_dispatchWheel(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("wheel",t,i)))}_makeSharedEvent(t,e){if(void 0===this._listeners[t]){const i=e();this._listeners[t]=new a.DM((()=>{delete this._listeners[t],i.dispose()}))}return this._listeners[t].increment()}_onPointerEvent(t,e){let i=!1,s=null;function n(){s=null,i=!1}return new a.FV([new a.ku((()=>{null!==s&&clearTimeout(s),n()})),l.addEventListener(this.view,l.getRendererEvent(t),(t=>{i=!0,null!==s&&clearTimeout(s),s=window.setTimeout(n,0)})),T(window,t,((t,n)=>{null!==s&&(clearTimeout(s),s=null),e(t,n,i),i=!1}))])}_initEvent(t){switch(t){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",(()=>{const t=(t,e,i)=>{this._lastPointerMoveEvent={events:t,target:e,native:i},c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))};return new a.FV([this._onPointerEvent("pointerdown",t),this._onPointerEvent("pointermove",t)])}));case"globalpointerup":return this._makeSharedEvent("pointerup",(()=>{const t=this._onPointerEvent("pointerup",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}})),e=this._onPointerEvent("pointercancel",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}}));return new a.ku((()=>{t.dispose(),e.dispose()}))}));case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",(()=>{const t=this._onPointerEvent("pointerdown",((t,e)=>{c.each(t,(t=>{this._dispatchMousedown(t,e)}))})),e=this._onPointerEvent("pointermove",(t=>{c.each(t,(t=>{this._dispatchDragMove(t)}))})),i=this._onPointerEvent("pointerup",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))})),s=this._onPointerEvent("pointercancel",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))}));return new a.ku((()=>{t.dispose(),e.dispose(),i.dispose(),s.dispose()}))}));case"dblclick":return this._makeSharedEvent("dblclick",(()=>this._onPointerEvent("dblclick",((t,e)=>{c.each(t,(t=>{this._dispatchDoubleClick(t,e)}))}))));case"wheel":return this._makeSharedEvent("wheel",(()=>l.addEventListener(this.view,l.getRendererEvent("wheel"),(t=>{this._dispatchWheel(t,l.getEventTarget(t))}),{passive:!1})))}}_addEvent(t,e,i,s){let n=this._events[e];void 0===n&&(n=this._events[e]={disposer:this._initEvent(e),callbacks:[],dispatching:!1,cleanup:!1});const r={object:t,context:s,callback:i,disposed:!1};return n.callbacks.push(r),new a.ku((()=>{r.disposed=!0,n.dispatching?n.cleanup=!0:(c.removeFirst(n.callbacks,r),0===n.callbacks.length&&(n.disposer.dispose(),delete this._events[e]))}))}getCanvas(t,e){this.render(t),e||(e={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),n=Math.floor(this._calculatedHeight*this.resolution);if(e.minWidth&&e.minWidth>s){let t=e.minWidth/s;t>i&&(i=t*this.resolution)}if(e.minHeight&&e.minHeight>n){let t=e.minHeight/n;t>i&&(i=t*this.resolution)}if(e.maxWidth&&e.maxWidthn){let t=e.maxHeight/n;t{if(t&&t.visible&&(t.tainted||o)){d=!0,t.exportableView=t.view,t.exportableContext=t.context,t.view=document.createElement("canvas"),t.view.style.position="fixed",t.view.style.top="-10000px",this.view.appendChild(t.view),r.push(t.view);let e=0,o=0;t.margin&&(e+=t.margin.left||0+t.margin.right||0,o+=t.margin.top||0+t.margin.bottom||0),t.view.width=s+e,t.view.height=n+o,t.context=t.view.getContext("2d"),t.dirty=!0,t.scale=i}})),d&&(this._omitTainted=!0,this.render(t),this._omitTainted=!1),c.each(this.layers,(t=>{if(t&&t.visible){let e=0,i=0;t.margin&&(e=-(t.margin.left||0)*this.resolution,i=-(t.margin.top||0)*this.resolution),h.drawImage(t.view,e,i),t.exportableView&&(t.view=t.exportableView,t.exportableView=void 0),t.exportableContext&&(t.context=t.exportableContext,t.exportableContext=void 0),l{t.style.position="",t.style.top="",this.view.removeChild(t)})),a}}class ot{constructor(){this.margin={left:0,right:0,top:0,bottom:0},this._resolution=1,this._width=0,this._height=0,this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(t,e,i,s,n){this._resolution=n,t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(t,e){return this.context.getImageData(Math.round((t.x-e.left)/e.width*this._width),Math.round((t.y-e.top)/e.height*this._height),1,1)}getImageArray(t){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const e=this.imageArray,i=Math.round(t.x*this._resolution),s=4*(Math.round(t.y*this._resolution)*this._width+i);return[e[s],e[s+1],e[s+2],e[s+3]]}setMargin(t){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,c.each(t,(t=>{t.margin&&(this.margin.left=Math.max(this.margin.left,t.margin.left),this.margin.right=Math.max(this.margin.right,t.margin.right),this.margin.top=Math.max(this.margin.top,t.margin.top),this.margin.bottom=Math.max(this.margin.bottom,t.margin.bottom))}))}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class at{constructor(t,e){this.tainted=!0,this.order=0,this.visible=!0,this.dirty=!0,this._width=0,this._height=0,this.view=t,this.context=e}resize(t,e,i,s,n){null!=this.width&&(t=this.width,i=this.width),null!=this.height&&(e=this.height,s=this.height),this.margin?(t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}},4680:function(t,e,i){"use strict";var s;i.d(e,{b:function(){return s}}),function(t){t.ADD="lighter",t.COLOR="color",t.COLOR_BURN="color-burn",t.COLOR_DODGE="color-dodge",t.DARKEN="darken",t.DIFFERENCE="difference",t.DST_OVER="destination-over",t.EXCLUSION="exclusion",t.HARD_LIGHT="hard-light",t.HUE="hue",t.LIGHTEN="lighten",t.LUMINOSITY="luminosity",t.MULTIPLY="multiply",t.NORMAL="source-over",t.OVERLAY="overlay",t.SATURATION="saturation",t.SCREEN="screen",t.SOFT_LIGHT="soft-light",t.SRC_ATOP="source-atop",t.XOR="xor"}(s||(s={}))},1437:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}getFill(t){return{addColorStop:(t,e)=>{}}}_changed(){super._changed()}getBounds(t){const e=this.get("target");if(e){let i=e.globalBounds();const s=t.toLocal({x:i.left,y:i.top}),n=t.toLocal({x:i.right,y:i.top}),r=t.toLocal({x:i.right,y:i.bottom}),o=t.toLocal({x:i.left,y:i.bottom});return{left:Math.min(s.x,n.x,r.x,o.x),top:Math.min(s.y,n.y,r.y,o.y),right:Math.max(s.x,n.x,r.x,o.x),bottom:Math.max(s.y,n.y,r.y,o.y)}}return t._display.getLocalBounds()}}n.className="Gradient",n.classNames=s.JH.classNames.concat([n.className])},1747:function(t,e,i){"use strict";i.d(e,{o:function(){return h}});var s=i(1437),n=i(1112),r=i(5071),o=i(5040),a=i(751);class h extends s.p{getFill(t){const e=this.get("rotation",0);let i=this.getBounds(t),s=i.left||0,h=i.right||0,l=i.top||0,c=i.bottom||0,u=a.cos(e),d=a.sin(e),p=u*(h-s),g=d*(c-l);0==p&&(p=1),0==g&&(g=1);let f=Math.max(p,g);const _=this._root._renderer.createLinearGradient(s,l,s+f*u,l+f*d),m=this.get("stops");if(m){let t=0;r.each(m,(e=>{let i=e.offset;o.isNumber(i)||(i=t/(m.length-1));let s=e.opacity;o.isNumber(s)||(s=1);let r=e.color;if(r){const t=e.lighten;t&&(r=n.Il.lighten(r,t));const o=e.brighten;o&&(r=n.Il.brighten(r,o)),_.addColorStop(i,"rgba("+r.r+","+r.g+","+r.b+","+s+")")}t++}))}return _}}h.className="LinearGradient",h.classNames=s.p.classNames.concat([h.className])},3035:function(t,e,i){"use strict";i.d(e,{y:function(){return r}});var s=i(3437),n=i(5040);class r extends s.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("width",100),e=this.get("height",100),i=this.get("gap",0),s=this.get("strokeWidth",1);if(i){let n=i+s,r=e/n,o=this.get("angle",0)*Math.PI/180;if(0===o)for(let e=-r;e<2*r;e++){const i=Math.round(e*n-n/2)+.5;this._display.moveTo(-t,i),this._display.lineTo(2*t,i)}else{const i=Math.cos(o),s=Math.sin(o),r=2*Math.sqrt(t*t+e*e),a=n/Math.max(Math.abs(i),Math.abs(s)),h=2*Math.ceil(r/a);for(let t=-h;t0&&(r.beginFill(s,n),r.drawRect(0,0,e,i),r.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,r,t,e,i)}this._clear=!1}}n.className="Pattern",n.classNames=s.JH.classNames.concat([n.className])},4429:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(3437);class n extends s.c{_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const t=this.get("canvas");t&&(this.set("width",t.width),this.set("height",t.height))}_draw(){super._draw();const t=this.get("colorOpacity");void 0!==t&&(this._display.alpha=Math.max(0,t));const e=this._image;if(e){const t=this.get("width",100),i=this.get("height",100),s=this.get("fit","image");let n=0,r=0;"pattern"==s?(n=t,r=i,this.markDirty()):(n=e.width,r=e.height,"image"==s&&(this.set("width",n),this.set("height",r)));let o=0,a=0;this.get("centered",!0)&&(o=t/2-n/2,a=i/2-r/2),this._display.image(e,n,r,o,a)}const i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){const t=this.get("src");if(t){const e=new Image;e.src=t,e.decode().then((()=>{this._image=e,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{}))}}}n.className="PicturePattern",n.classNames=s.c.classNames.concat([n.className])},6490:function(t,e,i){"use strict";i.d(e,{SR:function(){return s},Wn:function(){return u},XG:function(){return p},ne:function(){return h},w6:function(){return l}});var s,n=i(7582),r=i(6245),o=i(1112),a=i(256);function h(t){return(0,n.mG)(this,void 0,void 0,(function*(){if(void 0!==t){const e=[];a.each(t,((t,i)=>{e.push(i.waitForStop())})),yield Promise.all(e)}}))}function l(t,e,i){return e+t*(i-e)}function c(t,e,i){return t>=1?i:e}function u(t,e,i){return new r.gG(l(t,e.percent,i.percent))}function d(t,e,i){return o.Il.interpolate(t,e,i)}function p(t,e){return"number"==typeof t&&"number"==typeof e?l:t instanceof r.gG&&e instanceof r.gG?u:t instanceof o.Il&&e instanceof o.Il?d:c}!function(t){t[t.Stopped=0]="Stopped",t[t.Playing=1]="Playing",t[t.Paused=2]="Paused"}(s||(s={}))},5071:function(t,e,i){"use strict";i.r(e),i.d(e,{add:function(){return v},any:function(){return r},copy:function(){return k},each:function(){return a},eachContinue:function(){return l},eachReverse:function(){return h},find:function(){return S},findIndex:function(){return O},findIndexReverse:function(){return P},findMap:function(){return C},findReverse:function(){return N},first:function(){return d},getFirstSortedIndex:function(){return R},getSortedIndex:function(){return A},has:function(){return D},indexOf:function(){return n},insert:function(){return p},insertIndex:function(){return M},keepIf:function(){return U},last:function(){return u},map:function(){return o},move:function(){return y},pushAll:function(){return f},pushOne:function(){return w},remove:function(){return _},removeFirst:function(){return m},removeIndex:function(){return E},replace:function(){return b},setIndex:function(){return g},shiftLeft:function(){return c},shuffle:function(){return L},slice:function(){return T},toArray:function(){return x}});var s=i(5040);function n(t,e){const i=t.length;for(let s=0;s0;)--i,e(t[i],i)}function l(t,e){const i=t.length;for(let s=0;s0;)if(--i,e(t[i],i))return i;return-1}function S(t,e){const i=O(t,e);if(-1!==i)return t[i]}function N(t,e){const i=P(t,e);if(-1!==i)return t[i]}function C(t,e){const i=t.length;for(let s=0;s>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,i=r+1):s=r}return{found:n,index:n?i-1:i}}function R(t,e){let i=0,s=t.length,n=!1;for(;i>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,s=r):s=r}return{found:n,index:i}}function U(t,e){let i=t.length;for(;i>0;)--i,e(t[i])||t.splice(i,1)}},1112:function(t,e,i){"use strict";i.d(e,{$_:function(){return a},Il:function(){return h}});var s=i(6490),n=i(7652),r=i(5040);function o(t){return"#"===t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0].repeat(2)+t[1].repeat(2)+t[2].repeat(2)),parseInt(t,16)}function a(t){return h.fromAny(t)}class h{constructor(t){this._hex=0|t}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return 255&this._hex}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+n.padString(this.r.toString(16),2)+n.padString(this.g.toString(16),2)+n.padString(this.b.toString(16),2)}toHSL(t=1){return n.rgbToHsl({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,e,i){const s=n.hslToRgb({h:t,s:e,l:i});return this.fromRGB(s.r,s.g,s.b)}toString(){return this.toCSSHex()}static fromHex(t){return new h(t)}static fromRGB(t,e,i){return new h((0|i)+(e<<8)+(t<<16))}static fromString(t){return new h(o(t))}static fromCSS(t){return new h(function(t){let e=(t=t.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return 0;let i="";for(let t=1;t<=3;t++){let s=parseInt(e[t]).toString(16);1==s.length&&(s="0"+s),i+=s}return o(i)}(t))}static fromAny(t){if(r.isString(t)){if("#"==t[0])return h.fromString(t);if("rgb"==t.substr(0,3))return h.fromCSS(t)}else{if(r.isNumber(t))return h.fromHex(t);if(t instanceof h)return h.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,e,i){const s=n.alternativeColor({r:t.r,g:t.g,b:t.b},e?{r:e.r,g:e.g,b:e.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(s.r,s.g,s.b)}static interpolate(t,e,i,n="rgb"){if("hsl"==n){const n=e.toHSL(),r=i.toHSL();return h.fromHSL((0,s.w6)(t,n.h,r.h),(0,s.w6)(t,n.s,r.s),(0,s.w6)(t,n.l,r.l))}return h.fromRGB((0,s.w6)(t,e.r,i.r),(0,s.w6)(t,e.g,i.g),(0,s.w6)(t,e.b,i.b))}static lighten(t,e){const i=n.lighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static brighten(t,e){const i=n.brighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static saturate(t,e){const i=n.saturate({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}}},2754:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});var s=i(6331),n=i(1112);class r extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const t=this.getPrivate("currentPass"),e=this.get("colors",[this.get("baseColor",n.Il.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",e.length);const i=this.getPrivate("numColors"),s=this.get("passOptions"),r=this.get("reuse");for(let o=0;o1;)r-=1;let a=i.s+(s.saturation||0)*t;a>1&&(a=1),a<0&&(a=0);let h=i.l+(s.lightness||0)*t;for(;h>1;)h-=1;e.push(n.Il.fromHSL(r,a,h))}}getIndex(t){const e=this.get("colors",[]),i=this.get("saturation");return t>=e.length?(this.generateColors(),this.getIndex(t)):null!=i?n.Il.saturate(e[t],i):e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}r.className="ColorSet",r.classNames=s.JH.classNames.concat([r.className])},9582:function(t,e,i){"use strict";i.d(e,{Q:function(){return r},k:function(){return n}});var s=i(7144);class n extends s.aV{incrementRef(){}decrementRef(){}_onPush(t){this.processor&&this.processor.processRow(t),super._onPush(t)}_onInsertIndex(t,e){this.processor&&this.processor.processRow(e),super._onInsertIndex(t,e)}_onSetIndex(t,e,i){this.processor&&this.processor.processRow(i),super._onSetIndex(t,e,i)}}class r{constructor(t){this._value=t}incrementRef(){}decrementRef(){}}},6460:function(t,e,i){"use strict";i.d(e,{C:function(){return h}});var s=i(6331),n=i(7255),r=i(462),o=i(5040),a=i(7652);class h extends s.JH{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i=!1){let s;void 0!==e&&""!==e||(e=this.get("dateFormat","yyyy-MM-dd"));let n=t;if(o.isObject(e))try{const t=this.get("intlLocales");return t?new Intl.DateTimeFormat(t,e).format(n):new Intl.DateTimeFormat(void 0,e).format(n)}catch(t){return"Invalid"}let r=this.parseFormat(e);const a=this._root.timezone;let h=n;return!a||this._root.utc||i||(n=a.convertLocal(n)),o.isNumber(n.getTime())?(s=this.applyFormat(n,r,i,h),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s):"Invalid date"}applyFormat(t,e,i=!1,s){let n,h,l,c,u,d,p,g,f=e.template,_=t.getTime();this._root.utc&&!i?(n=t.getUTCFullYear(),h=t.getUTCMonth(),l=t.getUTCDay(),c=t.getUTCDate(),u=t.getUTCHours(),d=t.getUTCMinutes(),p=t.getUTCSeconds(),g=t.getUTCMilliseconds()):(n=t.getFullYear(),h=t.getMonth(),l=t.getDay(),c=t.getDate(),u=t.getHours(),d=t.getMinutes(),p=t.getSeconds(),g=t.getMilliseconds());for(let i=0,m=e.parts.length;i=12?this._t("PM"):this._t("AM");break;case"aa":m=u>=12?this._t("P.M."):this._t("A.M.");break;case"aaa":m=u>=12?this._t("P"):this._t("A");break;case"h":m=a.get12Hours(u).toString();break;case"hh":m=a.padString(a.get12Hours(u),2,"0");break;case"H":m=u.toString();break;case"HH":m=a.padString(u,2,"0");break;case"K":m=a.get12Hours(u,0).toString();break;case"KK":m=a.padString(a.get12Hours(u,0),2,"0");break;case"k":m=(u+1).toString();break;case"kk":m=a.padString(u+1,2,"0");break;case"m":m=d.toString();break;case"mm":m=a.padString(d,2,"0");break;case"s":m=p.toString();break;case"ss":m=a.padString(p,2,"0");break;case"S":case"SS":case"SSS":m=Math.round(g/1e3*Math.pow(10,e.parts[i].length)).toString();break;case"x":m=_.toString();break;case"n":case"nn":case"nnn":m=a.padString(g,e.parts[i].length,"0");break;case"z":m=a.getTimeZone(s||t,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":m=a.getTimeZone(s||t,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":m=a.getTimeZone(s||t,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":m=a.getTimeZone(s||t,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let f=this._root.utc?"UTC":this._root.timezone;f instanceof r.r&&(f=f.name);const y=f?a.getTimezoneOffset(f,s||t):t.getTimezoneOffset();let v=Math.abs(y)/60,w=Math.floor(v),b=60*v-60*w;this._root.utc&&(w=0,b=0),"Z"==e.parts[i]?(m="GMT",m+=y>0?"-":"+",m+=a.padString(w,2)+":"+a.padString(b,2)):(m=y>0?"-":"+",m+=a.padString(w,2)+a.padString(b,2));break;case"i":m=t.toISOString();break;case"I":m=t.toUTCString()}f=f.replace(o.PLACEHOLDER,m)}return f}parseFormat(t){let e={template:"",parts:[]},i=n.V.chunk(t,!0);for(let t=0;t-1&&(l.year=parseInt(p[h.year])),h.year3>-1){let t=parseInt(p[h.year3]);t+=1e3,l.year=t}if(h.year2>-1){let t=parseInt(p[h.year2]);t+=t>50?1e3:2e3,l.year=t}if(h.year1>-1){let t=parseInt(p[h.year1]);t=10*Math.floor((new Date).getFullYear()/10)+t,l.year=t}if(h.monthLong>-1&&(l.month=this.resolveMonth(p[h.monthLong])),h.monthShort>-1&&(l.month=this.resolveShortMonth(p[h.monthShort])),h.month>-1&&(l.month=parseInt(p[h.month])-1),h.week>-1&&-1===h.day&&(l.month=0,l.day=a.getDayFromWeek(parseInt(p[h.week]),l.year,1,i)),h.day>-1&&(l.day=parseInt(p[h.day])),h.yearDay>-1&&(l.month=0,l.day=parseInt(p[h.yearDay])),h.hourBase0>-1&&(l.hour=parseInt(p[h.hourBase0])),h.hourBase1>-1&&(l.hour=parseInt(p[h.hourBase1])-1),h.hour12Base0>-1){let t=parseInt(p[h.hour12Base0]);11==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.hour12Base1>-1){let t=parseInt(p[h.hour12Base1]);12==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.minute>-1&&(l.minute=parseInt(p[h.minute])),h.second>-1&&(l.second=parseInt(p[h.second])),h.millisecond>-1){let t=parseInt(p[h.millisecond]);2==h.millisecondDigits?t*=10:1==h.millisecondDigits&&(t*=100),l.millisecond=t}if(h.timestamp>-1){l.timestamp=parseInt(p[h.timestamp]);const t=new Date(l.timestamp);l.year=t.getUTCFullYear(),l.month=t.getUTCMonth(),l.day=t.getUTCDate(),l.hour=t.getUTCHours(),l.minute=t.getUTCMinutes(),l.second=t.getUTCSeconds(),l.millisecond=t.getUTCMilliseconds()}h.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.zone])),h.iso>-1&&(l.year=o.toNumber(p[h.iso+0]),l.month=o.toNumber(p[h.iso+1])-1,l.day=o.toNumber(p[h.iso+2]),l.hour=o.toNumber(p[h.iso+3]),l.minute=o.toNumber(p[h.iso+4]),l.second=o.toNumber(p[h.iso+5]),l.millisecond=o.toNumber(p[h.iso+6]),"Z"==p[h.iso+7]||"z"==p[h.iso+7]?l.utc=!0:""!=p[h.iso+7]&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.iso+7]))),s=l.utc?new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else s=new Date(t);return s}resolveTimezoneOffset(t,e){if(e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let i=e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),s=i[1],n=i[2],r=i[3],o=60*parseInt(n)+parseInt(r);return"+"==s&&(o*=-1),o-(t||new Date).getTimezoneOffset()}return 0}resolveMonth(t){let e=this._months().indexOf(t);return e>-1||!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._months()).indexOf(t),e>-1)?e:0}resolveShortMonth(t){let e=this._shortMonths().indexOf(t);return e>-1?e:(e=this._months().indexOf(t),e>-1||this._root.language&&!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._shortMonths()).indexOf(t),e>-1)?e:0)}isAm(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1}getStringList(t){let e=[];for(let i=0;i{t.dispose()}))}}class a extends n{constructor(t){super(),this._disposers=t}_dispose(){s.each(this._disposers,(t=>{t.dispose()}))}get disposers(){return this._disposers}}class h extends n{_dispose(){null!=this._disposer&&(this._disposer.dispose(),this._disposer=void 0)}get(){return this._value}set(t,e){null!=this._disposer&&this._disposer.dispose(),this._disposer=e,this._value=t}reset(){this.set(void 0,void 0)}}class l extends r{constructor(){super(...arguments),this._counter=0}increment(){return++this._counter,new r((()=>{--this._counter,0===this._counter&&this.dispose()}))}}},798:function(t,e,i){"use strict";i.d(e,{$:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{constructor(){super(...arguments),this._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}}_setDefaults(){const t="_duration_millisecond",e="_duration_second",i="_duration_minute",s="_duration_hour",n="_duration_day",r="_duration_week",o="_duration_month",a="_minute",h="_hour",l="_day",c="_week",u="_week",d="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(t),second:this._t(t+"_second"),minute:this._t(t+a),hour:this._t(t+h),day:this._t(t+l),week:this._t(t+c),month:this._t(t+u),year:this._t(t+d)},second:{second:this._t(e),minute:this._t(e+a),hour:this._t(e+h),day:this._t(e+l),week:this._t(e+c),month:this._t(e+u),year:this._t(e+d)},minute:{minute:this._t(i),hour:this._t(i+h),day:this._t(i+l),week:this._t(i+c),month:this._t(i+u),year:this._t(i+d)},hour:{hour:this._t(s),day:this._t(s+l),week:this._t(s+c),month:this._t(s+u),year:this._t(s+d)},day:{day:this._t(n),week:this._t(n+c),month:this._t(n+u),year:this._t(n+d)},week:{week:this._t(r),month:this._t(r+u),year:this._t(r+d)},month:{month:this._t(o),year:this._t(o+d)},year:{year:this._t("_duration_year")}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s=i||this.get("baseUnit");void 0!==e&&""!==e||(e=null!=this.get("durationFormat")?this.get("durationFormat"):this.getFormat(a.toNumber(t),void 0,s)),e=o.cleanFormat(e);let n,r=this.parseFormat(e,s),h=Number(t);n=h>this.get("negativeBase")?r.positive:h{if(e.parsed)return;let i=e.source,s=[];s=e.source.match(/^\[([^\]]*)\]/),s&&s.length&&""!==s[0]&&(i=e.source.substr(s[0].length),e.color=s[1]);let r=n.V.chunk(i,!0);for(let t=0;t{"millisecond"==t&&1e3==i?(h.second++,h.millisecond=0):"second"==t&&60==i?(h.minute++,h.second=0):"minute"==t&&60==i?(h.hour++,h.minute=0):"hour"==t&&24==i?(h.day++,h.hour=0):"day"==t&&7==i&&-1!==e.parts.indexOf("w")?(h.week++,h.day=0):"day"==t&&30==i?(h.month++,h.day=0):"month"==t&&12==i&&(h.year++,h.month=0)}));for(let t=0,i=e.parts.length;t{if(t==e||i){if(s/n<=1)return i||(i=t),!1;i=t}return!0})),i}getMilliseconds(t,e){return e||(e=this.get("baseUnit")),t*this._getUnitValue(e)}_getUnitValue(t){return this._getUnitValues()[t]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}},9395:function(t,e,i){"use strict";i.r(e),i.d(e,{bounce:function(){return k},circle:function(){return c},cubic:function(){return o},elastic:function(){return P},exp:function(){return h},inOut:function(){return p},linear:function(){return n},out:function(){return d},pow:function(){return a},quad:function(){return r},sine:function(){return l},yoyo:function(){return u}});var s=i(751);function n(t){return t}function r(t){return t*t}function o(t){return t*t*t}function a(t,e){return Math.pow(t,e)}function h(t){return Math.pow(2,10*t-10)}function l(t){return 1-Math.cos(t*s.HALFPI)}function c(t){return 1-Math.sqrt(1-t*t)}function u(t){return function(e){return t(e<.5?2*e:2*(1-e))}}function d(t){return function(e){return 1-t(1-e)}}function p(t){return function(e){return e<=.5?t(2*e)/2:1-t(2*(1-e))/2}}let g=4/11,f=6/11,_=8/11,m=3/4,y=9/11,v=10/11,w=15/16,b=21/22,x=63/64,D=1/g/g;function k(t){return 1-function(t){return t{this._userSettings[t]=!0}))}get(t,e){const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._settings[t]=e}set(t,e){this._userSettings[t]=!0,this.setRaw(t,e)}remove(t){delete this._userSettings[t],delete this._settings[t]}setAll(t){o.entries(t).forEach((([t,e])=>{this.set(t,e)}))}_eachSetting(t){o.each(this._settings,t)}apply(){const t={stateAnimationEasing:!0,stateAnimationDuration:!0},e=this._entity.states.lookup("default");this._eachSetting(((i,s)=>{t[i]||(t[i]=!0,this!==e&&(i in e._settings||(e._settings[i]=this._entity.get(i))),this._entity.set(i,s))}))}applyAnimate(t){null==t&&(t=this._settings.stateAnimationDuration),null==t&&(t=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let e=this._settings.stateAnimationEasing;null==e&&(e=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",a.cubic)));const i=this._entity.states.lookup("default"),s={stateAnimationEasing:!0,stateAnimationDuration:!0},n={};return this._eachSetting(((r,o)=>{if(!s[r]){s[r]=!0,this!=i&&(r in i._settings||(i._settings[r]=this._entity.get(r)));const a=this._entity.animate({key:r,to:o,duration:t,easing:e});a&&(n[r]=a)}})),n}}class l{constructor(t){this._states={},this._entity=t}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new h(this._entity,e);return this._states[t]=i,i}}remove(t){delete this._states[t]}apply(t){const e=this._states[t];e&&e.apply(),this._entity._applyState(t)}applyAnimate(t,e){let i;const s=this._states[t];return s&&(i=s.applyAnimate(e)),this._entity._applyStateAnimated(t,e),i}}var c=i(3145),u=i(5071),d=i(3540);class p{constructor(t){this._callbacks={},this._disabled={},this._entity=t}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),this._entity._markDirtyKey(t),new s.ku((()=>{u.removeFirst(i,e)&&this._entity._markDirtyKey(t)}))}remove(t){const e=this._callbacks[t];void 0!==e&&(delete this._callbacks[t],0!==e.length&&this._entity._markDirtyKey(t))}enable(t){this._disabled[t]&&(delete this._disabled[t],this._entity._markDirtyKey(t))}disable(t){this._disabled[t]||(this._disabled[t]=!0,this._entity._markDirtyKey(t))}fold(t,e){if(!this._disabled[t]){const i=this._callbacks[t];if(void 0!==i)for(let s=0,n=i.length;s{if(this._stopped)t();else{const e=()=>{i.dispose(),t()},i=this.events.on("stopped",e)}}))}_checkEnded(){return!(this._loops>1&&(--this._loops,1))}_run(t){null!==this._oldTime&&(this._time+=t-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=t}_reset(t){this._oldTime=t,this._time=0}_value(t){return this._interpolate(this._easing(t),this._from,this._to)}}let f=0;class _{constructor(t){this.uid=++f,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._prevSettings={},this._prevPrivateSettings={},this._animatingSettings={},this._animatingPrivateSettings={},this._disposed=!1,this._userProperties={},this.enableDispose=!0,this._settings=t}_checkDirty(){o.keys(this._settings).forEach((t=>{this._userProperties[t]=!0,this._markDirtyKey(t)}))}resetUserSettings(){this._userProperties={}}_runAnimation(t){let e=r.SR.Stopped;if(!this.isDisposed()){let i=!1,s=!1;o.each(this._animatingSettings,((e,n)=>{if(n.stopped)this._stopAnimation(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.set(e,n._value(1)):(i=!0,n._reset(t),this._set(e,n._value(1))):(i=!0,this._set(e,n._value(s)))}else s=!0})),o.each(this._animatingPrivateSettings,((e,n)=>{if(n.stopped)this._stopAnimationPrivate(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.setPrivate(e,n._value(1)):(i=!0,n._reset(t),this._setPrivate(e,n._value(1))):(i=!0,this._setPrivate(e,n._value(s)))}else s=!0})),i?e=r.SR.Playing:s&&(e=r.SR.Paused)}return e}_markDirtyKey(t){this.markDirty()}_markDirtyPrivateKey(t){this.markDirty()}on(t,e){let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}off(t,e){let i=this._settingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._settingEvents[t]}onPrivate(t,e){let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}offPrivate(t,e){let i=this._privateSettingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._privateSettingEvents[t]}getRaw(t,e){const i=this._settings[t];return void 0!==i?i:e}has(t){return t in this._settings}get(t,e){return this.getRaw(t,e)}_sendKeyEvent(t,e){const i=this._settingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_sendPrivateKeyEvent(t,e){const i=this._privateSettingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_setRaw(t,e,i){this._prevSettings[t]=e,this._sendKeyEvent(t,i)}setRaw(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&this._setRaw(t,i,e)}_set(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&(this._setRaw(t,i,e),this._markDirtyKey(t))}_stopAnimation(t){const e=this._animatingSettings[t];e&&(delete this._animatingSettings[t],e.stop())}set(t,e){return this._set(t,e),this._stopAnimation(t),e}remove(t){t in this._settings&&(this._prevSettings[t]=this._settings[t],delete this._settings[t],this._sendKeyEvent(t,void 0),this._markDirtyKey(t)),this._stopAnimation(t)}removeAll(){u.each(o.keys(this._settings),(t=>{this.remove(t)}))}getPrivate(t,e){const i=this._privateSettings[t];return void 0!==i?i:e}_setPrivateRaw(t,e,i){this._prevPrivateSettings[t]=e,this._sendPrivateKeyEvent(t,i)}setPrivateRaw(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&this._setPrivateRaw(t,i,e)}_setPrivate(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&(this._setPrivateRaw(t,i,e),this._markDirtyPrivateKey(t))}_stopAnimationPrivate(t){const e=this._animatingPrivateSettings[t];e&&(e.stop(),delete this._animatingPrivateSettings[t])}setPrivate(t,e){return this._setPrivate(t,e),this._stopAnimationPrivate(t),e}removePrivate(t){t in this._privateSettings&&(this._prevPrivateSettings[t]=this._privateSettings[t],delete this._privateSettings[t],this._markDirtyPrivateKey(t)),this._stopAnimationPrivate(t)}setAll(t){o.each(t,((t,e)=>{this.set(t,e)}))}animate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.get(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.set(e,i);else{if(void 0!==r&&r!==i){this.set(e,r);const t=this._animatingSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.set(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}animatePrivate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.getPrivate(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.setPrivate(e,i);else{if(void 0!==r&&r!==i){this.setPrivate(e,r);const t=this._animatingPrivateSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.setPrivate(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}}class m extends _{constructor(t,e,i,s=[]){if(super(e),this.states=new l(this),this.adapters=new p(this),this.events=this._createEvents(),this._userPrivateProperties={},this._dirty={},this._dirtyPrivate={},this._templates=[],this._defaultThemes=[],this._templateDisposers=[],this._disposers=[],this._runSetup=!0,this._disposerProperties={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t,this._internalTemplates=s,e.id&&this._registerId(e.id)}static new(t,e,i){const s=new this(t,e,!0);return s._template=i,s._afterNew(),s}static _new(t,e,i=[]){const s=new this(t,e,!0,i);return s._afterNew(),s}_afterNew(){this._checkDirty();let t=!1;const e=this._template;e&&(t=!0,e._setObjectTemplate(this)),u.each(this._internalTemplates,(e=>{t=!0,e._setObjectTemplate(this)})),t&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const t=this._template;t&&t._setObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._setObjectTemplate(this)})),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new n.p}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(t,e){const i=this.get(t);if(i)return i;{const i=e();return this.set(t,i),i}}_setDefault(t,e){this.has(t)||super.set(t,e)}_setRawDefault(t,e){this.has(t)||super.setRaw(t,e)}_clearDirty(){o.keys(this._dirty).forEach((t=>{this._dirty[t]=!1})),o.keys(this._dirtyPrivate).forEach((t=>{this._dirtyPrivate[t]=!1}))}isDirty(t){return!!this._dirty[t]}isPrivateDirty(t){return!!this._dirtyPrivate[t]}_markDirtyKey(t){this._dirty[t]=!0,super._markDirtyKey(t)}_markDirtyPrivateKey(t){this._dirtyPrivate[t]=!0,super._markDirtyKey(t)}isType(t){return-1!==this.classNames.indexOf(t)}_pushPropertyDisposer(t,e){let i=this._disposerProperties[t];return void 0===i&&(i=this._disposerProperties[t]=[]),i.push(e),e}_disposeProperty(t){const e=this._disposerProperties[t];void 0!==e&&(u.each(e,(t=>{t.dispose()})),delete this._disposerProperties[t])}set template(t){const e=this._template;e!==t&&(this._template=t,e&&e._removeObjectTemplate(this),t&&t._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(t){}_applyStateAnimated(t,e){}get(t,e){const i=this.adapters.fold(t,this._settings[t]);return void 0!==i?i:e}isUserSetting(t){return this._userProperties[t]||!1}set(t,e){return this._userProperties[t]=!0,super.set(t,e)}setRaw(t,e){this._userProperties[t]=!0,super.setRaw(t,e)}_setSoft(t,e){return this._userProperties[t]?e:super.set(t,e)}remove(t){delete this._userProperties[t],this._removeTemplateProperty(t)}setPrivate(t,e){return this._userPrivateProperties[t]=!0,super.setPrivate(t,e)}setPrivateRaw(t,e){this._userPrivateProperties[t]=!0,super.setPrivateRaw(t,e)}removePrivate(t){delete this._userPrivateProperties[t],this._removeTemplatePrivateProperty(t)}_setTemplateProperty(t,e,i){this._userProperties[e]||t===this._findTemplateByKey(e)&&super.set(e,i)}_setTemplatePrivateProperty(t,e,i){this._userPrivateProperties[e]||t===this._findTemplateByPrivateKey(e)&&super.setPrivate(e,i)}_removeTemplateProperty(t){if(!this._userProperties[t]){const e=this._findTemplateByKey(t);e?super.set(t,e._settings[t]):super.remove(t)}}_removeTemplatePrivateProperty(t){if(!this._userPrivateProperties[t]){const e=this._findTemplateByPrivateKey(t);e?super.setPrivate(t,e._privateSettings[t]):super.removePrivate(t)}}_walkParents(t){t(this._root._rootContainer),t(this)}_applyStateByKey(t){const e=this.states.create(t,{}),i={};this._eachTemplate((s=>{const n=s.states.lookup(t);n&&n._apply(e,i)})),o.each(e._settings,(t=>{i[t]||e._userSettings[t]||e.remove(t)}))}_applyTemplate(t,e){this._templateDisposers.push(t._apply(this,e)),o.each(t._settings,((t,i)=>{e.settings[t]||this._userProperties[t]||(e.settings[t]=!0,super.set(t,i))})),o.each(t._privateSettings,((t,i)=>{e.privateSettings[t]||this._userPrivateProperties[t]||(e.privateSettings[t]=!0,super.setPrivate(t,i))})),this._runSetup&&t.setup&&(this._runSetup=!1,t.setup(this))}_findStaticTemplate(t){if(this._template&&t(this._template))return this._template}_eachTemplate(t){this._findStaticTemplate((e=>(t(e),!1))),u.eachReverse(this._internalTemplates,t),u.each(this._templates,t)}_applyTemplates(t=!0){t&&this._disposeTemplates();const e={settings:{},privateSettings:{},states:{}};this._eachTemplate((t=>{this._applyTemplate(t,e)})),t&&(o.each(this._settings,(t=>{this._userProperties[t]||e.settings[t]||super.remove(t)})),o.each(this._privateSettings,(t=>{this._userPrivateProperties[t]||e.privateSettings[t]||super.removePrivate(t)})))}_findTemplate(t){const e=this._findStaticTemplate(t);if(void 0===e){const e=u.findReverse(this._internalTemplates,t);return void 0===e?u.find(this._templates,t):e}return e}_findTemplateByKey(t){return this._findTemplate((e=>t in e._settings))}_findTemplateByPrivateKey(t){return this._findTemplate((e=>t in e._privateSettings))}_disposeTemplates(){u.each(this._templateDisposers,(t=>{t.dispose()})),this._templateDisposers.length=0}_removeTemplates(){u.each(this._templates,(t=>{t._removeObjectTemplate(this)})),this._templates.length=0}_applyThemes(t=!1){if(this.get("ignoreThemes"))return!1;let e=!1;const i=[];let s=[];const n=new Set,r=this.get("themeTagsSelf");return r&&u.each(r,(t=>{n.add(t)})),this._walkParents((t=>{t===this._root._rootContainer&&(e=!0),t._defaultThemes.length>0&&i.push(t._defaultThemes);const r=t.get("themes");r&&s.push(r);const o=t.get("themeTags");o&&u.each(o,(t=>{n.add(t)}))})),s=i.concat(s),this._removeTemplates(),(e||t)&&u.eachReverse(this.classNames,(t=>{const e=[];u.each(s,(i=>{u.each(i,(i=>{const s=i._lookupRules(t);s&&u.eachReverse(s,(t=>{if(t.tags.every((t=>n.has(t)))){const i=u.getFirstSortedIndex(e,(e=>{const i=d.qu(t.tags.length,e.tags.length);return 0===i?d.wq(t.tags,e.tags,d.qu):i}));e.splice(i.index,0,t)}}))}))})),u.each(e,(t=>{this._templates.push(t.template),t.template._setObjectTemplate(this)}))})),this._applyTemplates(),(e||t)&&(this._runSetup=!1),e||t}_changed(){}_beforeChanged(){if(this.isDirty("id")){const t=this.get("id");t&&this._registerId(t);const e=this._prevSettings.id;e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}}_registerId(t){if(this._root.entitiesById[t]&&this._root.entitiesById[t]!==this)throw new Error('An entity with id "'+t+'" already exists.');this._root.entitiesById[t]=this,c.i_.entitiesById[t]=this}_afterChanged(){}addDisposer(t){return this._disposers.push(t),t}_dispose(){super._dispose();const t=this._template;t&&t._removeObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._removeObjectTemplate(this)})),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach((t=>{t.dispose()})),o.each(this._disposerProperties,((t,e)=>{u.each(e,(t=>{t.dispose()}))}));const e=this.get("id");e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}setTimeout(t,e){const i=setTimeout((()=>{this.removeDispose(n),t()}),e),n=new s.ku((()=>{clearTimeout(i)}));return this._disposers.push(n),n}removeDispose(t){if(!this.isDisposed()){let e=u.indexOf(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()}hasTag(t){return-1!==u.indexOf(this.get("themeTags",[]),t)}addTag(t){if(!this.hasTag(t)){const e=this.get("themeTags",[]);e.push(t),this.set("themeTags",e)}}removeTag(t){if(this.hasTag(t)){const e=this.get("themeTags",[]);u.remove(e,t),this.set("themeTags",e)}}_t(t,e,...i){return this._root.language.translate(t,e,...i)}get root(){return this._root}}m.className="Entity",m.classNames=["Entity"]},9770:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var s=i(7449),n=i(5071),r=i(5040);class o{constructor(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{n.each(t,(t=>{t.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}}hasListeners(){return 0!==this._listeners.length}hasListenersByType(t){return n.any(this._listeners,(e=>(null===e.type||e.type===t)&&!e.killed))}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(t){delete this._disabled[t]}disableType(t,e=1/0){this._disabled[t]=e}_removeListener(t){if(0===this._iterating){const e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)}_removeExistingListener(t,e,i,s){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((n=>{n.once!==t||n.type!==e||void 0!==i&&n.callback!==i||n.context!==s||n.disposer.dispose()}))}isEnabled(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&void 0===this._disabled[t]}removeType(t){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((e=>{e.type===t&&e.disposer.dispose()}))}has(t,e,i){return-1!==n.findIndex(this._listeners,(s=>!0!==s.once&&s.type===t&&(void 0===e||s.callback===e)&&s.context===i))}_shouldDispatch(t){if(this._disposed)throw new Error("EventDispatcher is disposed");const e=this._disabled[t];return r.isNumber(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled}_eachListener(t){++this._iterating;try{n.each(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(n.each(this._killed,(t=>{this._removeListener(t)})),this._killed.length=0)}}dispatch(t,e){this._shouldDispatch(t)&&this._eachListener((i=>{i.killed||null!==i.type&&i.type!==t||(i._debounceDelay?(i._debounceTimeout&&window.clearTimeout(i._debounceTimeout),i._debounceTimeout=window.setTimeout((()=>{i._debounceTimeout=void 0,i.killed||i.dispatch(t,e)}),i._debounceDelay)):i.dispatch(t,e))}))}_on(t,e,i,n,r,o,a){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);const h={type:e,callback:i,context:n,shouldClone:r,dispatch:o,killed:!1,once:t,disposer:new s.ku((()=>{h.killed=!0,h._debounceTimeout&&window.clearTimeout(h._debounceTimeout),this._removeListener(h)})),_debounceDelay:a};return this._listeners.push(h),h}onAll(t,e,i=!0){return this._on(!1,null,t,e,i,((i,s)=>t.call(e,s))).disposer}on(t,e,i,s=!0){return this._on(!1,t,e,i,s,((t,s)=>e.call(i,s))).disposer}onDebounced(t,e,i,s,n=!0){return this._on(!1,t,e,s,n,((t,i)=>e.call(s,i)),i).disposer}once(t,e,i,s=!0){const n=this._on(!0,t,e,i,s,((t,s)=>{n.disposer.dispose(),e.call(i,s)}));return n.disposer}off(t,e,i){this._removeExistingListener(!1,t,e,i)}copyFrom(t){if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const e=[];return n.each(t._listeners,(t=>{!t.killed&&t.shouldClone&&(null===t.type?e.push(this.onAll(t.callback,t.context)):t.once?e.push(this.once(t.type,t.callback,t.context)):e.push(this.on(t.type,t.callback,t.context)))})),new s.FV(e)}}},9821:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(6331);class n extends s.JH{}n.className="InterfaceColors",n.classNames=s.JH.classNames.concat([n.className])},7144:function(t,e,i){"use strict";i.d(e,{aV:function(){return o},dn:function(){return a},o:function(){return h}});var s=i(9770),n=i(5071);function r(t,e){if(!(t>=0&&t=0&&t{this.push(t)}))}copyFrom(t){this.pushAll(t._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(t){const e=this._values;this._values=[],this._onClear(e),n.each(t,(t=>{this._values.push(t),this._onPush(t)}))}clear(){this.setAll([])}*[Symbol.iterator](){const t=this._values.length;for(let e=0;e{t.dispose()})),super._onClear(t)}_dispose(){this.autoDispose&&n.each(this._values,(t=>{t.dispose()}))}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class h extends a{constructor(t,e){super(),this.template=t,this.make=e}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}}},751:function(t,e,i){"use strict";i.r(e),i.d(e,{DEGREES:function(){return a},HALFPI:function(){return r},PI:function(){return n},RADIANS:function(){return o},boundsOverlap:function(){return M},ceil:function(){return l},circlesOverlap:function(){return O},closest:function(){return T},cos:function(){return f},fitAngleToRange:function(){return w},fitToRange:function(){return d},getAngle:function(){return x},getArcBounds:function(){return m},getArcPoint:function(){return y},getCubicControlPointA:function(){return c},getCubicControlPointB:function(){return u},getPointOnLine:function(){return k},getPointOnQuadraticCurve:function(){return D},inBounds:function(){return b},mergeBounds:function(){return v},normalizeAngle:function(){return _},round:function(){return h},sin:function(){return p},spiralPoints:function(){return E},tan:function(){return g}});var s=i(5040);const n=Math.PI,r=n/2,o=n/180,a=180/n;function h(t,e,i){if(!(0,s.isNumber)(e)||e<=0){let e=Math.round(t);return i&&e-t==.5&&e--,e}{let i=Math.pow(10,e);return Math.round(t*i)/i}}function l(t,e){if(!(0,s.isNumber)(e)||e<=0)return Math.ceil(t);{let i=Math.pow(10,e);return Math.ceil(t*i)/i}}function c(t,e,i,s,n){return{x:(-t.x+e.x/s+i.x)*s,y:(-t.y+e.y/n+i.y)*n}}function u(t,e,i,s,n){return{x:(t.x+e.x/s-i.x)*s,y:(t.y+e.y/n-i.y)*n}}function d(t,e,i){return Math.min(Math.max(t,e),i)}function p(t){return Math.sin(o*t)}function g(t){return Math.tan(o*t)}function f(t){return Math.cos(o*t)}function _(t){return(t%=360)<0&&(t+=360),t}function m(t,e,i,s,n){let r=Number.MAX_VALUE,o=Number.MAX_VALUE,a=-Number.MAX_VALUE,h=-Number.MAX_VALUE,l=[];l.push(y(n,i)),l.push(y(n,s));let c=Math.min(90*Math.floor(i/90),90*Math.floor(s/90)),u=Math.max(90*Math.ceil(i/90),90*Math.ceil(s/90));for(let t=c;t<=u;t+=90)t>=i&&t<=s&&l.push(y(n,t));for(let t=0;ta&&(a=e.x),e.y>h&&(h=e.y)}return{left:t+r,top:e+o,right:t+a,bottom:e+h}}function y(t,e){return{x:t*f(e),y:t*p(e)}}function v(t){const e=t.length;if(e>0){let i=t[0],s=i.left,n=i.top,r=i.right,o=i.bottom;if(e>1)for(let a=1;ai){let t=e;e=i,i=t}t=_(t);let s=(e-_(e))/360;return ti&&(t-360>e?t-=360:t=te+(i-e)/2-180?e:i),t}function b(t,e){return t.x>=e.left&&t.y>=e.top&&t.x<=e.right&&t.y<=e.bottom}function x(t,e){e||(e={x:2*t.x,y:2*t.y});let i=e.x-t.x,s=e.y-t.y,n=Math.atan2(s,i)*a;return n<0&&(n+=360),_(n)}function D(t,e,i,s){return{x:(1-s)*(1-s)*t.x+2*(1-s)*s*i.x+s*s*e.x,y:(1-s)*(1-s)*t.y+2*(1-s)*s*i.y+s*s*e.y}}function k(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function T(t,e){return t.reduce((function(t,i){return Math.abs(i-e)e.left,s=t.tope.top;return i&&s}function E(t,e,i,s,n,r,h,l,c){let u=n+.01;l=_(l),c=_(c);let d=l*o;cu&&(o=2*u),o*=Math.max(.01,Math.min(1,u/200));let g=d*a,f={x:t+u*Math.cos(d),y:e+u*s/i*Math.sin(d)};if(p.push(f),u=n+.01+(g-l)/360*h,d+=2*Math.asin(o/2/u),d*a>c+360*Math.ceil((i-n)/h))break}return p.shift(),p}function O(t,e){return Math.hypot(t.x-e.x,t.y-e.y)<=t.radius+e.radius}},8219:function(t,e,i){"use strict";i.d(e,{u:function(){return a}});var s=i(6331),n=i(7652),r=i(7449);let o;class a extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._setRawDefault("deactivateRoot",!0),function(t,e,i){const s=e.interfaceColors,a=s.get("secondaryButton").toCSS(),h=s.get("text").toCSS(),l=s.get("alternativeBackground").toCSS(.45);if(!o){const i=new r.FV([new n.StyleRule(t,".am5-modal",{width:"100%",height:"100%",position:"absolute","z-index":"100000",top:"0",left:"0"},e.nonce),new n.StyleRule(t,".am5-modal-curtain",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute",background:s.get("background").toCSS(.5),"z-index":"100"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute","text-align":"center","white-space":"nowrap",background:s.get("background").toCSS(.5),"z-index":"101"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper:before",{content:"''",display:"inline-block",height:"100%","vertical-align":"middle","margin-right":"-0.25em"},e.nonce),new n.StyleRule(t,".am5-modal-content",{display:"inline-block",padding:"1.2em","vertical-align":"middle","text-align":"start","white-space":"normal",background:s.get("background").toCSS(),"border-radius":"4px","-webkit-box-shadow":"0px 0px 36px 0px "+l,"box-shadow":"0px 0px 36px 0px "+l,color:h},e.nonce),new n.StyleRule(t,".am5-modal-content h1",{"font-size":"1em",margin:"0 0 0.5em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table",{display:"table",margin:"1em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-row",{display:"table-row"},e.nonce),new n.StyleRule(t,".am5-modal-table-heading",{display:"table-heading",padding:"3px 10px 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell",{display:"table-cell",padding:"3px 0 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell > *",{"vertical-align":"middle"},e.nonce),new n.StyleRule(t,".am5-modal-content input[type=text], .am5-modal-content input[type=number], .am5-modal-content select",{border:"1px solid "+a,"border-radius":"4px",padding:"3px 5px",margin:"2px"},e.nonce),new n.StyleRule(t,".am5-modal-input-narrow",{width:"50px"},e.nonce),new n.StyleRule(t,".am5-modal-button",{"font-weight":"400",color:s.get("secondaryButtonText").toCSS(),"line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer",padding:"0.2em 0.8em","font-size":"1em","border-radius":"0.25em",margin:"0 0.25em 0 0",border:"1px solid "+s.get("secondaryButtonStroke").toCSS(),background:s.get("secondaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button:hover",{background:s.get("secondaryButtonHover").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary",{color:s.get("primaryButtonText").toCSS(),border:"1px solid "+s.get("primaryButtonStroke").toCSS(),background:s.get("primaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary:hover",{background:s.get("primaryButtonHover").toCSS()},e.nonce)]);o=new r.DM((()=>{o=void 0,i.dispose()}))}o.increment()}(n.getShadowRoot(this._root.dom),this._root);const t=document.createElement("div");t.className="am5-modal",t.style.display="none",this.root._inner.appendChild(t),this.setPrivate("container",t);const e=document.createElement("div");e.className="am5-modal-curtain",t.appendChild(e),this.setPrivate("curtain",e),this._disposers.push(n.addEventListener(e,"click",(()=>{this.cancel()})));const i=document.createElement("div");i.className="am5-modal-wrapper",t.appendChild(i),this.setPrivate("wrapper",i);const s=document.createElement("div");s.className="am5-modal-content",i.appendChild(s),this.setPrivate("content",s);const a=this.get("content");a&&(s.innerHTML=a),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{this.isOpen()&&"Escape"==n.getEventKey(t)&&this.cancel()})))}_beforeChanged(){super._beforeChanged(),this.isDirty("content")&&(this.getPrivate("content").innerHTML=this.get("content",""))}isOpen(){return"none"!=this.getPrivate("container").style.display}open(){this.getPrivate("container").style.display="block",this.get("deactivateRoot")&&this.setTimeout((()=>{this._root._renderer.interactionsEnabled=!1}),10),this.events.dispatch("opened",{type:"opened",target:this})}close(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("closed",{type:"closed",target:this})}cancel(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("cancelled",{type:"cancelled",target:this})}_dispose(){super._dispose();const t=this.getPrivate("container");t.parentElement&&t.parentElement.removeChild(t)}}a.className="Modal",a.classNames=s.JH.classNames.concat([a.className])},780:function(t,e,i){"use strict";i.d(e,{e:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const t="_big_number_suffix_",e="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(t+"3")},{number:1e6,suffix:this._t(t+"6")},{number:1e9,suffix:this._t(t+"9")},{number:1e12,suffix:this._t(t+"12")},{number:1e15,suffix:this._t(t+"15")},{number:1e18,suffix:this._t(t+"18")},{number:1e21,suffix:this._t(t+"21")},{number:1e24,suffix:this._t(t+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(e+"24")},{number:1e-21,suffix:this._t(e+"21")},{number:1e-18,suffix:this._t(e+"18")},{number:1e-15,suffix:this._t(e+"15")},{number:1e-12,suffix:this._t(e+"12")},{number:1e-9,suffix:this._t(e+"9")},{number:1e-6,suffix:this._t(e+"6")},{number:.001,suffix:this._t(e+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s;(null==e||a.isString(e)&&"number"===e.toLowerCase())&&(e=this.get("numberFormat",""));let n=Number(t);if(a.isObject(e))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),e).format(n):new Intl.NumberFormat(void 0,e).format(n)}catch(t){return"Invalid"}else{e=o.cleanFormat(e);let t,h=this.parseFormat(e,this._root.language);t=n>this.get("negativeBase")?h.positive:n{if(e.parsed)return;let i=e.source;"number"===i.toLowerCase()&&(i=this.get("numberFormat","#,###.#####"));let s=n.V.chunk(i,!0);for(let t=0;t=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(i[0]),n="e"+i[1],e.modSpacing&&(n=" "+n)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){const i=o.decimalPlaces(t);if(i>0){const s=Math.pow(10,e.decimals.passive);t=Math.round(parseFloat((t*s).toFixed(i)))/s}}let h="",l=a.numberToString(t).split("."),c=l[0];if(c.length0){let t=[],i=c.split("").reverse().join("");for(let s=0,n=c.length;s<=n;s+=e.thousands.interval){let n=i.substr(s,e.thousands.interval).split("").reverse().join("");""!==n&&t.unshift(n)}c=t.join(e.thousands.separator)}h+=c,1===l.length&&l.push("");let u=l[1];return u.length{e(i,t[i])}))}function l(t,e){for(let i in t)if(u(t,i)&&!e(i,t[i]))break}function c(t,e,i){s.each(o(t,i),(i=>{e(i,t[i])}))}function u(t,e){return{}.hasOwnProperty.call(t,e)}function d(t,e){return h(t,((t,i)=>{null!=i&&null==e[t]&&(e[t]=i)})),e}},3540:function(t,e,i){"use strict";function s(t,e){return t===e?0:t{a.isObject(e)&&"function"==typeof e.dispose&&(e.enableDispose=!0,e.dispose())}))}class l{constructor(t,e,i){this._name=t,this._template=e,this._settings=i}_dispose(){h(this._settings)}get(t,e){const i=this._settings[t];return void 0!==i?i:e}set(t,e){this._settings[t]=e,this._template._stateChanged(this._name)}remove(t){delete this._settings[t],this._template._stateChanged(this._name)}setAll(t){o.keys(t).forEach((e=>{this._settings[e]=t[e]})),this._template._stateChanged(this._name)}_apply(t,e){o.each(this._settings,((i,s)=>{e[i]||t._userSettings[i]||(e[i]=!0,t.setRaw(i,s))}))}}class c{constructor(t){this._states={},this._template=t}_dispose(){o.each(this._states,((t,e)=>{e._dispose()}))}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new l(t,this._template,e);return this._states[t]=i,this._template._stateChanged(t),i}}remove(t){delete this._states[t],this._template._stateChanged(t)}_apply(t,e){o.each(this._states,((i,s)=>{let n=e.states[i];null==n&&(n=e.states[i]={});const r=t.states.create(i,{});s._apply(r,n)}))}}class u{constructor(){this._callbacks={}}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._callbacks[t]}))}remove(t){void 0!==this._callbacks[t]&&delete this._callbacks[t]}_apply(t){const e=[];return o.each(this._callbacks,((i,s)=>{r.each(s,(s=>{e.push(t.adapters.add(i,s))}))})),new n.FV(e)}}class d{constructor(t,e){if(this._disposed=!1,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._entities=[],this.states=new c(this),this.adapters=new u,this.events=new s.p,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=t}static new(t){return new d(t,!0)}_dispose(){h(this._settings),h(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(t,e){this._checkDisposed();const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._checkDisposed(),this._settings[t]=e}set(t,e){this._checkDisposed(),this._settings[t]!==e&&(this.setRaw(t,e),this._entities.forEach((i=>{i._setTemplateProperty(this,t,e)})))}remove(t){this._checkDisposed(),t in this._settings&&(delete this._settings[t],this._entities.forEach((e=>{e._removeTemplateProperty(t)})))}removeAll(){this._checkDisposed(),o.each(this._settings,((t,e)=>{this.remove(t)}))}getPrivate(t,e){this._checkDisposed();const i=this._privateSettings[t];return void 0!==i?i:e}setPrivateRaw(t,e){return this._checkDisposed(),this._privateSettings[t]=e,e}setPrivate(t,e){return this._checkDisposed(),this._privateSettings[t]!==e&&(this.setPrivateRaw(t,e),this._entities.forEach((i=>{i._setTemplatePrivateProperty(this,t,e)}))),e}removePrivate(t){this._checkDisposed(),t in this._privateSettings&&(delete this._privateSettings[t],this._entities.forEach((e=>{e._removeTemplatePrivateProperty(t)})))}setAll(t){this._checkDisposed(),o.each(t,((t,e)=>{this.set(t,e)}))}on(t,e){this._checkDisposed();let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}onPrivate(t,e){this._checkDisposed();let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}_apply(t,e){this._checkDisposed();const i=[];return o.each(this._settingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.on(e,s))}))})),o.each(this._privateSettingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.onPrivate(e,s))}))})),this.states._apply(t,e),i.push(this.adapters._apply(t)),i.push(t.events.copyFrom(this.events)),new n.FV(i)}_setObjectTemplate(t){this._checkDisposed(),this._entities.push(t)}_removeObjectTemplate(t){r.remove(this._entities,t)}_stateChanged(t){this._checkDisposed(),this._entities.forEach((e=>{e._applyStateByKey(t)}))}}},7255:function(t,e,i){"use strict";i.d(e,{V:function(){return r}});var s=i(1112),n=i(5040);class r{static escape(t){return t.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(t){return t.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(t,e=!1,i=!1){let s=[];t=this.escape(t);let r=e?t.split("'"):[t];for(let t=0;t{setTimeout(e,t)}))}let o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629742400,year:31536e6};function a(t){switch(t){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function h(t,e){return null==e&&(e=1),o[t]*e}function l(t){return t?o[t.timeUnit]*t.count:0}function c(t,e,i,s,n){const r=t.timeUnit,a=t.count;if("hour"==r||"minute"==r||"second"==r||"millisecond"==r)return o[t.timeUnit]*t.count;{const t=m(new Date(e.getTime()),r,a,i,s,void 0,n).getTime();let o=t+a*h(r)*1.05;return o=m(new Date(o),r,1,i,s,void 0,n).getTime(),o-t}}function u(){return new Date}function d(){return u().getTime()}function p(t){return new Date(t.getTime())}function g(t,e,i,s,n){if(e-t>h(i,1.2))return!0;let r=new Date(t),o=new Date(e);n&&(r=n.convertLocal(r),o=n.convertLocal(o));let l=0,c=0;s||"millisecond"==i||(l=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-l),c=o.getTimezoneOffset(),o.setUTCMinutes(o.getUTCMinutes()-c));let u=!1;switch(i){case"year":r.getUTCFullYear()!=o.getUTCFullYear()&&(u=!0);break;case"month":(r.getUTCFullYear()!=o.getUTCFullYear()||r.getUTCMonth()!=o.getUTCMonth())&&(u=!0);break;case"day":(r.getUTCMonth()!=o.getUTCMonth()||r.getUTCDate()!=o.getUTCDate())&&(u=!0);break;case"hour":r.getUTCHours()!=o.getUTCHours()&&(u=!0);break;case"minute":r.getUTCMinutes()!=o.getUTCMinutes()&&(u=!0);break;case"second":r.getUTCSeconds()!=o.getUTCSeconds()&&(u=!0);break;case"millisecond":r.getTime()!=o.getTime()&&(u=!0)}if(u)return u;let d=a(i);return!!d&&g(t,e,d,s,n)}function f(t,e,i,s,n){let r=0;switch(s||"millisecond"==e||(r=t.getTimezoneOffset(),n&&(r-=n.offsetUTC(t)),t.setUTCMinutes(t.getUTCMinutes()-r)),e){case"day":let e=t.getUTCDate();t.setUTCDate(e+i);break;case"second":let s=t.getUTCSeconds();t.setUTCSeconds(s+i);break;case"millisecond":let n=t.getUTCMilliseconds();t.setUTCMilliseconds(n+i);break;case"hour":let r=t.getUTCHours();t.setUTCHours(r+i);break;case"minute":let o=t.getUTCMinutes();t.setUTCMinutes(o+i);break;case"year":let a=t.getUTCFullYear();t.setUTCFullYear(a+i);break;case"month":const h=t.getUTCDate(),l=new Date(t.getUTCFullYear(),t.getUTCMonth(),0).getUTCDate();let c=t.getUTCMonth();h>l?t.setUTCMonth(c+i,l):t.setUTCMonth(c+i);break;case"week":let u=t.getUTCDate();t.setUTCDate(u+7*i)}if(!s&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+r),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(n&&(e+=n.offsetUTC(t)),e!=r){let i=e-r;t.setUTCMinutes(t.getUTCMinutes()+i),t.getTimezoneOffset()!=e&&t.setUTCMinutes(t.getUTCMinutes()-i)}}return t}function _(t,e,i,s,n){let r;return null!=n&&(r=new Date(n)),m(new Date(t),e,i,s.locale.firstDayOfWeek,s.utc,r,s.timezone).getTime()}function m(t,e,i,n,r,o,a){if(!a||r){let a=0;switch(r||"millisecond"==e||(a=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-a)),e){case"day":let e=t.getUTCDate();if(i>1){if(o){o=m(o,"day",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),n=h("day",s*i);t.setTime(o.getTime()+n-a*h("minute"))}}else t.setUTCDate(e);t.setUTCHours(0,0,0,0);break;case"second":let r=t.getUTCSeconds();i>1&&(r=Math.floor(r/i)*i),t.setUTCSeconds(r,0);break;case"millisecond":if(1==i)return t;let l=t.getUTCMilliseconds();l=Math.floor(l/i)*i,t.setUTCMilliseconds(l);break;case"hour":let c=t.getUTCHours();i>1&&(c=Math.floor(c/i)*i),t.setUTCHours(c,0,0,0);break;case"minute":let u=t.getUTCMinutes();i>1&&(u=Math.floor(u/i)*i),t.setUTCMinutes(u,0,0);break;case"month":let d=t.getUTCMonth();i>1&&(2!=i&&3!=i&&4!=i&&6!=i||(d=Math.floor(d/i)*i)),t.setUTCMonth(d,1),t.setUTCHours(0,0,0,0);break;case"year":let p=t.getUTCFullYear();i>1&&(p=Math.floor(p/i)*i),t.setUTCFullYear(p,0,1),t.setUTCHours(0,0,0,0);break;case"week":if(i>1&&o){o=m(o,"week",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("week")/i),n=h("week",s*i);t.setTime(o.getTime()+n-a*h("minute"))}let g=t.getUTCDate(),f=t.getUTCDay();s.isNumber(n)||(n=1),g=f>=n?g-f+n:g-(7+f)+n,t.setUTCDate(g),t.setUTCHours(0,0,0,0)}if(!r&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+a),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(e!=a){let i=e-a;t.setUTCMinutes(t.getUTCMinutes()+i)}}return t}{if(isNaN(t.getTime()))return t;let l=t.getTime(),c=a.offsetUTC(t),u=t.getTimezoneOffset(),d=a.parseDate(t),p=d.year,g=d.month,f=d.day,_=d.hour,y=d.minute,v=d.second,w=d.millisecond,b=d.weekday,x=c-u;switch(e){case"day":if(i>1&&o){o=m(o,"day",1,n,r,void 0,a);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),l=h("day",s*i);t.setTime(o.getTime()+l),d=a.parseDate(t),p=d.year,g=d.month,f=d.day}_=0,y=x,v=0,w=0;break;case"second":y+=x,i>1&&(v=Math.floor(v/i)*i),w=0;break;case"millisecond":y+=x,i>1&&(w=Math.floor(w/i)*i);break;case"hour":i>1&&(_=Math.floor(_/i)*i),y=x,v=0,w=0;break;case"minute":i>1&&(y=Math.floor(y/i)*i),y+=x,v=0,w=0;break;case"month":i>1&&(g=Math.floor(g/i)*i),f=1,_=0,y=x,v=0,w=0;break;case"year":i>1&&(p=Math.floor(p/i)*i),g=0,f=1,_=0,y=x,v=0,w=0;break;case"week":s.isNumber(n)||(n=1),f=b>=n?f-b+n:f-(7+b)+n,_=0,y=x,v=0,w=0}const D=(t=new Date(p,g,f,_,y,v,w)).getTime();let k=36e5;"hour"==e&&(k=36e5*i),D+k<=l&&("hour"!=e&&"minute"!=e&&"second"!=e&&"millisecond"!=e||(t=new Date(D+k)));let T=t.getTimezoneOffset(),M=a.offsetUTC(t)-T;return M!=x&&t.setTime(t.getTime()+6e4*(M-x)),t}}function y(t,e,i,s){let n=l(s[t]),r=s.length-1;if(t>=r)return Object.assign({},s[r]);let o=Math.ceil(e/n);return e0?Object.assign({},s[t-1]):o<=i?Object.assign({},s[t]):t+1{switch(t.type){case"year":i=+t.value;break;case"month":s=+t.value-1;break;case"day":n=+t.value;break;case"hour":r=+t.value;break;case"minute":o=+t.value;break;case"second":a=+t.value;break;case"fractionalSecond":h=+t.value;break;case"weekday":switch(t.value){case"Sun":l=0;break;case"Mon":l=1;break;case"Tue":l=2;break;case"Wed":l=3;break;case"Thu":l=4;break;case"Fri":l=5;break;case"Sat":l=6}}})),24===r&&(r=0),{year:i,month:s,day:n,hour:r,minute:o,second:a,millisecond:h,weekday:l}}function n(t,e){const{year:i,month:n,day:r,hour:o,minute:a,second:h,millisecond:l}=s(t,e);return Date.UTC(i,n,r,o,a,h,l)}i.d(e,{r:function(){return r}});class r{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=t,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(t){return new this(t,!0)}convertLocal(t){const e=this.offsetUTC(t),i=t.getTimezoneOffset(),s=new Date(t);s.setUTCMinutes(s.getUTCMinutes()-(e-i));const n=s.getTimezoneOffset();return i!=n&&s.setUTCMinutes(s.getUTCMinutes()+n-i),s}offsetUTC(t){return(n(this._utc,t)-n(this._dtf,t))/6e4}parseDate(t){return s(this._dtf,t)}}},5040:function(t,e,i){"use strict";function s(t){return Number(t)!==t}function n(t){return{}.toString.call(t)}function r(t,e="Assertion failed"){if(!t)throw new Error(e)}function o(t){if(null!=t&&!d(t)){let e=Number(t);if(s(e)&&u(t)&&""!=t&&t.match(/[0-9]+/)){const i=t.replace(/[^0-9.\-]+/g,"");return t===i?e:o(i)}return e}return t}function a(t){if(c(t))return new Date(t);if(d(t))return new Date(t);{let e=Number(t);return d(e)?new Date(e):new Date(t)}}function h(t){if(s(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t==-1/0)return"-0";let e=t<0;t=Math.abs(t);let i,n=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t),r=n[1],o=n[2]||"";if(void 0===n[3])i=""===o?r:r+"."+o;else{let e=+n[3];if(t<1)i="0."+l("0",e-1)+r+o;else{let t=e-o.length;i=0===t?r+o:t<0?r+o.slice(0,t)+"."+o.slice(t):r+o+l("0",t)}}return e?"-"+i:i}function l(t,e){return new Array(e+1).join(t)}function c(t){return"[object Date]"===n(t)}function u(t){return"string"==typeof t}function d(t){return"number"==typeof t&&Number(t)==t}function p(t){return"object"==typeof t&&null!==t}function g(t){return Array.isArray(t)}i.r(e),i.d(e,{PLACEHOLDER:function(){return f},PLACEHOLDER2:function(){return _},assert:function(){return r},getType:function(){return n},isArray:function(){return g},isDate:function(){return c},isNaN:function(){return s},isNumber:function(){return d},isObject:function(){return p},isString:function(){return u},numberToString:function(){return h},repeat:function(){return l},toDate:function(){return a},toNumber:function(){return o}});const f="__§§§__",_="__§§§§__"},7652:function(t,e,i){"use strict";i.r(e),i.d(e,{StyleRule:function(){return E},StyleSheet:function(){return O},addClass:function(){return P},addEventListener:function(){return l},addSpacing:function(){return Y},alternativeColor:function(){return dt},blur:function(){return p},brighten:function(){return ht},capitalizeFirst:function(){return et},cleanFormat:function(){return z},contains:function(){return w},decimalPlaces:function(){return A},escapeForRgex:function(){return W},focus:function(){return g},get12Hours:function(){return Q},getBrightnessStep:function(){return lt},getDayFromWeek:function(){return q},getEventKey:function(){return D},getEventTarget:function(){return v},getFormat:function(){return H},getLightnessStep:function(){return at},getMonthWeek:function(){return K},getPointerId:function(){return d},getRendererEvent:function(){return f},getSafeResolution:function(){return C},getShadowRoot:function(){return k},getStyle:function(){return y},getTimeZone:function(){return J},getTimezoneOffset:function(){return tt},getWeek:function(){return $},getWeekYear:function(){return Z},getYearDay:function(){return X},hslToHsv:function(){return rt},hslToRgb:function(){return it},hsvToHsl:function(){return nt},iOS:function(){return N},isLight:function(){return ct},isLocalEvent:function(){return b},isTouchEvent:function(){return _},lighten:function(){return ot},mergeTags:function(){return pt},onZoom:function(){return c},padString:function(){return R},plainText:function(){return V},ready:function(){return a},relativeToValue:function(){return L},removeClass:function(){return S},removeElement:function(){return h},rgbToHsl:function(){return st},sameBounds:function(){return gt},saturate:function(){return ut},setInteractive:function(){return x},setStyle:function(){return m},splitString:function(){return j},stripTags:function(){return G},supports:function(){return u},trim:function(){return F},trimLeft:function(){return U},trimRight:function(){return B},truncateTextWithEllipsis:function(){return I}});var s=i(5040),n=i(5071),r=i(256),o=i(7449);function a(t){if("loading"!==document.readyState)t();else{const e=()=>{"loading"!==document.readyState&&(document.removeEventListener("readystatechange",e),t())};document.addEventListener("readystatechange",e)}}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function l(t,e,i,s){return t.addEventListener(e,i,s||!1),new o.ku((()=>{t.removeEventListener(e,i,s||!1)}))}function c(t){return l(window,"resize",(e=>{t()}))}function u(t){switch(t){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function d(t){return t.pointerId||0}function p(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let t=document.createElement("button");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}}function g(t){t&&t.focus()}function f(t){if(u("pointerevents"))return t;if(u("touchevents"))switch(t){case"pointerover":case"pointerdown":return"touchstart";case"pointerout":case"pointerleave":case"pointerup":return"touchend";case"pointermove":return"touchmove";case"click":return"click";case"dblclick":return"dblclick"}else if(u("mouseevents"))switch(t){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return t}function _(t){if("undefined"!=typeof Touch&&t instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&t instanceof PointerEvent&&null!=t.pointerType)switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(null!=t.type&&t.type.match(/^mouse/))return!1;return!0}function m(t,e,i){t.style[e]=i}function y(t,e){return t.style[e]}function v(t){if(t.composedPath){const e=t.composedPath();return 0===e.length?null:e[0]}return t.target}function w(t,e){let i=e;for(;;){if(t===i)return!0;if(null===i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function b(t,e){return t.target&&w(e.root.dom,t.target)}function x(t,e){t.style.pointerEvents=e?"auto":"none"}function D(t){if(void 0!==t.key)return t.key;switch(t.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+t.keyCode}function k(t){let e=t;for(;;){if(null===e.parentNode)return null!=e.host?e:null;e=e.parentNode}}let T;function M(t,e){const i=t.cssRules.length;return t.insertRule(e+"{}",i),t.cssRules[i]}class E extends o.KK{constructor(t,e,i,s=""){super(),this._root=function(t,e=""){if(null===t){if(null==T){const t=document.createElement("style");t.type="text/css",""!=e&&t.setAttribute("nonce",e),document.head.appendChild(t),T=t.sheet}return T}{const i=document.createElement("style");return i.type="text/css",""!=e&&i.setAttribute("nonce",e),t.appendChild(i),i.sheet}}(t,s);try{this._rule=M(this._root,e)}catch(t){this._rule=M(this._root,":not(*)")}r.each(i,((t,e)=>{this.setStyle(t,e)}))}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){const t=n.indexOf(this._root.cssRules,this._rule);if(-1===t)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,e){const i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")}setStyle(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")}}class O extends o.KK{constructor(t,e,i=""){super(),this._element=function(t,e,i=""){const s=document.createElement("style");return s.type="text/css",""!=i&&s.setAttribute("nonce",i),s.textContent=e,null===t?document.head.appendChild(s):t.appendChild(s),s}(t,e,i)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}}function P(t,e){if(t)if(t.classList){const i=e.split(" ");n.each(i,(e=>{t.classList.add(e)}))}else{let i=t.getAttribute("class");i?t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" ")+" "+e):t.setAttribute("class",e)}}function S(t,e){if(t)if(t.classList)t.classList.remove(e);else{let i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" "))}}function N(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function C(){return N()?1:void 0}function L(t,e){return s.isNumber(t)?t:null!=t&&s.isNumber(t.value)&&s.isNumber(e)?e*t.value:0}function A(t){let e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function R(t,e=0,i="0"){return"string"!=typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t}function U(t){return t.replace(/^[\s]*/,"")}function B(t){return t.replace(/[\s]*$/,"")}function F(t){return U(B(t))}function I(t,e,i=!1,s="..."){if(t.length>e){let n=e-1;for(;n>=0&&t.charAt(n).match(/\w/);)n--;return n>=0&&0==i?t.substring(0,n+1)+"...":t.substring(0,e)+s}return t}function H(t){if(void 0===t)return"string";let e=(t=(t=(t=t.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return e?e[1]:"number"===t?"number":"date"===t?"date":"duration"===t?"duration":t.match(/[#0]/)?"number":t.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function z(t){return t.replace(/\/(date|number|duration)$/i,"")}function G(t){return t?t.replace(/<[^>]*>/g,""):t}function V(t){return t?G((""+t).replace(/[\n\r]+/g,". ")):t}function W(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Y(t){let e="";for(let i=0;i{if(t.match(/^\s+$/))(t=" ")&&(t=" "),n.push(t);else if(e.test(t)){let e=t.split(i).filter((t=>""!==t));n=n.concat(e)}else n=n.concat([...t])})),n}function X(t,e=!1){const i=new Date(t.getFullYear(),0,0),s=t.getTime()-i.getTime()+60*(i.getTimezoneOffset()-t.getTimezoneOffset())*1e3;return Math.floor(s/864e5)}function $(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-s);const n=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-n.getTime())/864e5+1)/7)}function Z(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;return i.setUTCDate(i.getUTCDate()+4-s),new Date(Date.UTC(i.getUTCFullYear(),0,1)).getFullYear()}function K(t,e=!1){const i=$(new Date(t.getFullYear(),t.getMonth(),1),e);let s=$(t,e);return 1==s&&(s=53),s-i+1}function q(t,e,i=1,s=!1){let n=new Date(e,0,4,0,0,0,0);return s&&n.setUTCFullYear(e),7*t+i-((n.getDay()||7)+3)}function Q(t,e){return t>12?t-=12:0===t&&(t=12),null!=e?t+(e-1):t}function J(t,e=!1,i=!1,s=!1,n){if(s)return e?"Coordinated Universal Time":"UTC";if(n){const i=t.toLocaleString("en-US",{timeZone:n});return F(t.toLocaleString("en-US",{timeZone:n,timeZoneName:e?"long":"short"}).substr(i.length))}let r=t.toLocaleString("UTC"),o=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(o=o.replace(/ (standard|daylight|summer|winter) /i," ")),F(o)}function tt(t,e){const i=e||new Date(Date.UTC(2012,0,1,0,0,0,0)),s=new Date(i.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(i.toLocaleString("en-US",{timeZone:t})).getTime()-s.getTime())/6e4*-1}function et(t){return t.charAt(0).toUpperCase()+t.slice(1)}function it(t){let e,i,s,n=t.h,r=t.s,o=t.l;if(0==r)e=i=s=o;else{let t=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},a=o<.5?o*(1+r):o+r-o*r,h=2*o-a;e=t(h,a,n+1/3),i=t(h,a,n),s=t(h,a,n-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*s)}}function st(t){let e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),r=Math.min(e,i,s),o=0,a=0,h=(n+r)/2;if(n===r)o=a=0;else{let t=n-r;switch(a=h>.5?t/(2-n-r):t/(n+r),n){case e:o=(i-s)/t+(i0?255-t:t;return Math.round(i*e)}function ht(t,e){if(t){let i=at(Math.min(Math.max(t.r,t.g,t.b),230),e);return{r:Math.max(0,Math.min(255,Math.round(t.r+i))),g:Math.max(0,Math.min(255,Math.round(t.g+i))),b:Math.max(0,Math.min(255,Math.round(t.b+i))),a:t.a}}return t}function lt(t,e){return Math.round(255*e)}function ct(t){return(299*t.r+587*t.g+114*t.b)/1e3>=128}function ut(t,e){if(void 0===t||1==e)return t;let i=st(t);return i.s=e,it(i)}function dt(t,e={r:255,g:255,b:255},i={r:255,g:255,b:255}){let s=e,n=i;return ct(i)&&(s=i,n=e),ct(t)?n:s}function pt(t,e){return t||(t=[]),[...t,...e].filter(((t,e,i)=>i.indexOf(t)===e))}function gt(t,e){return!!e&&t.left==e.left&&t.right==e.right&&t.top==e.top&&t.bottom==e.bottom}},3360:function(t,e,i){"use strict";i.d(e,{z:function(){return D},m:function(){return k}});var s=i(7582),n=i(6331),r=i(4596),o=i(8777),a=i(1112),h=i(6245),l=i(5769),c=i(9582),u=i(5040),d=i(5071),p=i(256),g={AccelerationBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccelerationBands)),AccumulationDistribution:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulationDistribution)),AccumulativeSwingIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulativeSwingIndex)),Annotator:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Annotator)),ArcDiagram:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagram)),ArcDiagramLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramLink)),ArcDiagramNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramNodes)),Aroon:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Aroon)),AverageSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageSeries)),AverageTrueRange:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageTrueRange)),AwesomeOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AwesomeOscillator)),Axis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Axis)),AxisBullet:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisBullet)),AxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabel)),AxisLabelRadial:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabelRadial)),AxisRenderer:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRenderer)),AxisRendererCircular:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererCircular)),AxisRendererCurveX:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveX)),AxisRendererCurveY:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveY)),AxisRendererRadial:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererRadial)),AxisRendererX:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererX)),AxisRendererY:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererY)),AxisTick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisTick)),BaseColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.BaseColumnSeries)),BollingerBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BollingerBands)),BreadcrumbBar:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.BreadcrumbBar)),BullBearPower:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BullBearPower)),Bullet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Bullet)),Button:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Button)),CalloutSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CalloutSeries)),Candlestick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Candlestick)),CandlestickSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CandlestickSeries)),CategoryAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryAxis)),CategoryDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryDateAxis)),ChaikinMoneyFlow:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinMoneyFlow)),ChaikinOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinOscillator)),Chart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Chart)),ChartIndicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChartIndicator)),Chord:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Chord)),ChordDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordDirected)),ChordLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLink)),ChordLinkDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLinkDirected)),ChordNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNodes)),ChordNonRibbon:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNonRibbon)),Circle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Circle)),CirclePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.CirclePattern)),ClockHand:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.ClockHand)),ClusteredPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ClusteredPointSeries)),ColorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ColorControl)),ColorPicker:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPicker)),ColorPickerButton:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPickerButton)),ColorSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ColorSet)),ColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ColumnSeries)),CommodityChannelIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CommodityChannelIndex)),ComparisonControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ComparisonControl)),Component:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Component)),ConfirmButton:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ConfirmButton)),Container:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Container)),CurveChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveChart)),CurveColumnSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveColumnSeries)),CurveCursor:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveCursor)),CurveLineSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveLineSeries)),DataSaveControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DataSaveControl)),DateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DateAxis)),DateRangeSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DateRangeSelector)),DisparityIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DisparityIndex)),DoodleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DoodleSeries)),DrawingControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingControl)),DrawingSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingSeries)),DrawingToolControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingToolControl)),Dropdown:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Dropdown)),DropdownColors:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownColors)),DropdownControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownControl)),DropdownList:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownList)),DropdownListControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownListControl)),DurationAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DurationAxis)),EditableAxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.EditableAxisLabel)),EditableLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.EditableLabel)),Ellipse:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Ellipse)),EllipseSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.EllipseSeries)),Entity:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Entity)),Exporting:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Exporting)),ExportingMenu:()=>Promise.resolve().then((()=>i(396))).then((t=>t.ExportingMenu)),FibonacciSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciSeries)),FibonacciTimezoneSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciTimezoneSeries)),Flow:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Flow)),FlowLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowLink)),FlowNode:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNode)),FlowNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNodes)),ForceDirected:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.ForceDirected)),FunnelSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSeries)),FunnelSlice:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSlice)),Gantt:()=>Promise.resolve().then((()=>i(133))).then((t=>t.Gantt)),GanttCategoryAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxis)),GanttCategoryAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxisRenderer)),GanttDateAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxis)),GanttDateAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxisRenderer)),GanttSeries:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttSeries)),GaplessDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.GaplessDateAxis)),Gradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Gradient)),GrainPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GrainPattern)),Graphics:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Graphics)),GraticuleSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.GraticuleSeries)),Grid:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Grid)),GridLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GridLayout)),HeatLegend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HeatLegend)),HeikinAshi:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HeikinAshi)),Hierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Hierarchy)),HierarchyLink:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyLink)),HierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyNode)),HorizontalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HorizontalLayout)),HorizontalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalLineSeries)),HorizontalRaySeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalRaySeries)),IconControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconControl)),IconSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconSeries)),Indicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Indicator)),IndicatorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IndicatorControl)),InterfaceColors:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.InterfaceColors)),IntervalControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IntervalControl)),Label:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Label)),LabelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LabelSeries)),Layout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Layout)),Legend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Legend)),Line:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Line)),LineArrowSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LineArrowSeries)),LinePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinePattern)),LineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.LineSeries)),LinearGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinearGradient)),Link:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Link)),LinkedHierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchy)),LinkedHierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchyNode)),MACD:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACD)),MACross:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACross)),MapChart:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapChart)),MapLine:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLine)),MapLineSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLineSeries)),MapPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPointSeries)),MapPolygon:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygon)),MapPolygonSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygonSeries)),MapSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapSeries)),Measure:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Measure)),MedianPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MedianPrice)),Modal:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Modal)),Momentum:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Momentum)),MovingAverage:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverage)),MovingAverageDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageDeviation)),MovingAverageEnvelope:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageEnvelope)),NumericStepper:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.NumericStepper)),OHLC:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLC)),OHLCSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLCSeries)),OnBalanceVolume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OnBalanceVolume)),OrthogonalLine:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.OrthogonalLine)),OverboughtOversold:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OverboughtOversold)),PVT:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PVT)),Pack:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Pack)),PanelControls:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PanelControls)),ParallelChannelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ParallelChannelSeries)),Partition:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Partition)),PathPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PathPattern)),Pattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Pattern)),PatternSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PatternSet)),PercentChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentChart)),PercentSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentSeries)),PeriodSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PeriodSelector)),PictorialStackedSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PictorialStackedSeries)),Picture:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Picture)),PicturePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PicturePattern)),PieChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieChart)),PieSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieSeries)),PointedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PointedRectangle)),Polygon:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Polygon)),PolylineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PolylineSeries)),ProgressPie:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ProgressPie)),PyramidSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PyramidSeries)),QuadrantLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.QuadrantLineSeries)),RadarChart:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarChart)),RadarColumnSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarColumnSeries)),RadarCursor:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarCursor)),RadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarLineSeries)),RadialGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialGradient)),RadialLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialLabel)),RadialText:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialText)),Rectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Rectangle)),RectanglePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RectanglePattern)),RectangleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RectangleSeries)),RegressionSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RegressionSeries)),RelativeStrengthIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RelativeStrengthIndex)),ResetControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ResetControl)),RoundedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RoundedRectangle)),Sankey:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Sankey)),SankeyLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyLink)),SankeyNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyNodes)),Scrollbar:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Scrollbar)),SerialChart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SerialChart)),Serializer:()=>Promise.resolve().then((()=>i(5362))).then((t=>t.Serializer)),Series:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Series)),SeriesTypeControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SeriesTypeControl)),SerpentineChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SerpentineChart)),SettingsControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsControl)),SettingsModal:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsModal)),SimpleLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SimpleLineSeries)),Slice:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slice)),SliceGrouper:()=>Promise.resolve().then((()=>i(1790))).then((t=>t.SliceGrouper)),SlicedChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.SlicedChart)),Slider:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slider)),SmoothedRadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.SmoothedRadarLineSeries)),SmoothedXLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXLineSeries)),SmoothedXYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXYLineSeries)),SmoothedYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedYLineSeries)),SpiralChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SpiralChart)),Sprite:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Sprite)),SpriteResizer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SpriteResizer)),StandardDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StandardDeviation)),Star:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Star)),StepLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.StepLineSeries)),StochasticMomentumIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticMomentumIndex)),StochasticOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticOscillator)),StockChart:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockChart)),StockControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockControl)),StockLegend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockLegend)),StockPanel:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockPanel)),StockToolbar:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockToolbar)),Sunburst:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Sunburst)),SuperTrend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SuperTrend)),Text:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Text)),Tick:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tick)),Tooltip:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tooltip)),Tree:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Tree)),Treemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Treemap)),TrendLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TrendLineSeries)),Triangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Triangle)),Trix:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Trix)),TypicalPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TypicalPrice)),VWAP:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VWAP)),ValueAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ValueAxis)),Venn:()=>Promise.resolve().then((()=>i(8034))).then((t=>t.Venn)),VerticalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.VerticalLayout)),VerticalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VerticalLineSeries)),Volume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Volume)),VolumeProfile:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VolumeProfile)),VoronoiTreemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.VoronoiTreemap)),WilliamsR:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.WilliamsR)),WordCloud:()=>Promise.resolve().then((()=>i(6769))).then((t=>t.WordCloud)),XYChart:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChart)),XYChartScrollbar:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChartScrollbar)),XYCursor:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYCursor)),XYSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYSeries)),ZigZag:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ZigZag)),ZoomControl:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ZoomControl)),ZoomTools:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomTools)),ZoomableContainer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomableContainer))};function f(t){return u.isObject(t)}function _(t){return t instanceof n.JH||t instanceof a.Il||t instanceof h.gG||t instanceof l.YS}function m(t,e){let i=t.length;for(;i--;){const s=t[i];if(e in s)return s[e]}throw new Error("Could not find ref "+e)}function y(t,e){if("#"===t[0]||"@"===t[0]){if(t[1]===t[0])return{isValue:!0,value:t.slice(1)};{const i=t.split(/\./g);let s=m(e,i[0]);for(let t=1;t{e(t)}))}function w(t,e){v(t,e),e.adapters&&d.each(e.adapters,(e=>{t.adapters.add(e.key,e.callback)})),e.states&&d.each(e.states,(e=>{t.states.create(e.key,e.settings)})),t instanceof o.W&&e.children&&e.children.forEach((e=>{null==e.index||e.index>=t.children.length?t.children.push(e.value):t.children.insertIndex(e.index,e.value)}))}function b(t,e){if(!e.construct)return e.value;const i=e.construct.new(t,e.settings||{});return w(i,e),i}class x{constructor(){this._caching={},this._cache={},this._delayed=[]}afterParse(){this._delayed.forEach((t=>{t()}))}getClass(t){return this._cache[t]}storeClass(t){return(0,s.mG)(this,void 0,void 0,(function*(){if("Template"===t)return;const e=g[t];if(null==e)throw new Error("Unknown object type `"+t+"`");this._cache[t]=yield e()}))}cacheClass(t){let e=this._caching[t];return null==e&&(e=this._caching[t]=this.storeClass(t)),e}parseAsyncArray(t){return(0,s.mG)(this,void 0,void 0,(function*(){yield Promise.all(d.map(t,(t=>this.parseAsync(t))))}))}parseAsyncObjectKey(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){"type"===t?u.isString(e)?yield this.cacheClass(e):yield this.parseAsync(e):"geoJSON"===t||"geometry"===t||(yield this.parseAsync(e))}))}parseAsyncObject(t){return(0,s.mG)(this,void 0,void 0,(function*(){switch(t.type){case"Color":case"Percent":break;default:yield Promise.all(d.map(p.keys(t),(e=>this.parseAsyncObjectKey(e,t[e]))))}}))}parseAsync(t){return(0,s.mG)(this,void 0,void 0,(function*(){u.isArray(t)?yield this.parseAsyncArray(t):f(t)&&(_(t)||!0!==t.__parse&&!1===t.__parse||(yield this.parseAsyncObject(t)))}))}parseObject(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parse(t,e[n],i)})),s}parseArray(t,e,i){return d.map(e,(e=>this.parse(t,e,i)))}parseChildren(t,e,i){return d.map(e,(e=>this.parseChild(t,e,i)))}parseStops(t,e,i){return d.map(e,(e=>this.parseObject(t,e,i)))}parseSetting(t,e,i,s){if("layout"===e)switch(i){case"horizontal":return t.horizontalLayout;case"vertical":return t.verticalLayout;case"grid":return t.gridLayout}return"clusteredBullet"===e?(e,n)=>{const r=s.concat([{"@series":n}]);return this.parse(t,i,r)}:"projection"===e||"geoJSON"===e?i:"stops"===e?this.parseStops(t,i,s):this.parse(t,i,s)}parseSettings(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parseSetting(t,n,e[n],i)})),s}parseState(t,e,i){return{key:e.key,settings:this.parseSettings(t,e.settings,i)}}parseAdapter(t,e,i){return{key:e.key,callback:this.parse(t,e.callback,i)}}parseProperties(t,e,i){return d.map(p.keys(e),(s=>{const r=e[s];return e=>{const o=()=>{const o=this.parseValue(t,r,i),a=e[s];a?o.isValue?u.isArray(o.value)?a instanceof c.k?a.setAll(o.value):d.each(o.value,(t=>{a.push(t)})):e[s]=o.value:o.construct?e[s]=b(t,o):a instanceof n.JH||a instanceof l.YS?function(t,e){e.settings&&t.setAll(e.settings),w(t,e)}(a,o):v(a,o):o.isValue?e[s]=o.value:e[s]=b(t,o)};if("data"===s)this._delayed.push(o);else if("bullets"===s){const n=e[s];u.assert(null!=n),u.assert(u.isArray(r)),d.each(r,(e=>{n.push(((s,n)=>{const r=i.concat([{"@series":n}]);return this.parse(t,e,r)}))}))}else"bullet"===s?e.set("bullet",((e,s)=>{const n=i.concat([{"@axis":s}]);return this.parse(t,r,n)})):o()}}))}parseAxisRange(t,e,i){return{isValue:!1,type:void 0,construct:void 0,settings:this.parseSettings(t,e.settings,i),adapters:void 0,states:void 0,children:void 0,properties:void 0,index:void 0,value:e}}parseRefsObject(t,e,i){const s={};return p.each(e,((e,r)=>{if("axisRange"==r.__parseLogic||"seriesAxisRange"==r.__parseLogic){const e=this.parseAxisRange(t,r,i),s=m(i,r.axis),o=s.makeDataItem({});let a;const h=r.series?m(i,r.series):void 0;h?a=h.createAxisRange(o):s.createAxisRange(o),function(t,e){e.settings&&p.each(e.settings,((e,i)=>{if(i instanceof n.JH){const s=t.get(e);s instanceof n.JH?s.setAll(i._settings):t.set(e,i)}else t.set(e,i)})),w(t,e)}(o,e),a&&["fills","strokes","graphics"].forEach((e=>{if(void 0!==a[e]&&void 0!==r[e]){r[e].__parse=!0;const s=this.parse(t,r[e],i);a[e].template.setAll(s)}}))}else s["#"+e]=this.parse(t,r,i)})),s}parseRefs(t,e,i){if(u.isArray(e)){const s=e.length;for(let n=0;nthis.parseState(t,e,i))):void 0,h=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0,l=null==e.index?void 0:e.index;return{isValue:!1,type:e.type,construct:s,settings:n,adapters:h,states:a,children:o,properties:r,index:l,value:e}}parseTemplate(t,e,i){e.refs&&(i=this.parseRefs(t,e.refs,i));const s=e.settings?this.parseSettings(t,e.settings,i):{},n=l.YS.new(s),r=e.states?d.map(e.states,(e=>this.parseState(t,e,i))):void 0,o=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0;return o&&d.each(o,(t=>{n.adapters.add(t.key,t.callback)})),r&&d.each(r,(t=>{n.states.create(t.key,t.settings)})),{isValue:!0,value:n}}parseValue(t,e,i){return e instanceof n.JH?{isValue:!0,value:e}:u.isArray(e)?{isValue:!0,value:this.parseArray(t,e,i)}:f(e)?_(e)?{isValue:!0,value:e}:"Color"===e.type?{isValue:!0,value:a.Il.fromAny(e.value)}:"Percent"===e.type?{isValue:!0,value:new h.gG(e.value)}:"Template"===e.type?this.parseTemplate(t,e,i):!0===e.__parse?{isValue:!0,value:this.parseObject(t,e,i)}:!1===e.__parse?{isValue:!0,value:e}:this.parseEntity(t,e,i):u.isString(e)?y(e,i):{isValue:!0,value:e}}parse(t,e,i){const s=this.parseValue(t,e,i);return s.isValue?s.value:b(t,s)}}class D{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t}static new(t){return new this(t,!0)}parse(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){const i=new x;yield i.parseAsync(t);const s=i.parse(this._root,t,[]);if(e.parent){if(!(s instanceof r.j))throw new Error("When using the parent setting, the entity must be a Sprite");e.parent.children.push(s)}else s instanceof n.JH&&s._applyThemes(!0);return i.afterParse(),s}))}parseString(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.parse(JSON.parse(t),e)}))}}function k(t,e){g[t]||(g[t]=()=>new Promise((t=>{t(e)})))}},6890:function(t,e,i){"use strict";i.d(e,{e:function(){return p}});var s=i(6331),n=i(9361),r=i(1112),o=i(1437),a=i(6245),h=i(5769),l=i(9582),c=i(5040),u=i(5071),d=i(256);class p extends s.JH{constructor(){super(...arguments),this._refs={}}serialize(t,e=0,i=!1,p=!1){if(e>this.get("maxDepth",2))return;if(!1===t||!0===t)return t;if(c.isArray(t)){const s=[];return u.each(t,(t=>{s.push(this.serialize(t,e,i,p))})),s}if(t instanceof l.k){const s=[];return u.each(t.values,(t=>{s.push(this.serialize(t,e,i,p))})),s}const g={},f=t instanceof s.JH||t instanceof h.YS||t instanceof r.Il||t instanceof a.gG,_=this.get("fullSettings",[]);if(t instanceof s.JH){g.type=t.className;let s=this._filterSettings(d.keys(t._settings));s=s.filter((e=>t.isUserSetting(e))),s.length&&(g.settings={},u.each(s,(s=>{const n=t.get(s);void 0!==n&&(g.settings[s]=this.serialize(n,e+1,i||-1!==_.indexOf(s)),t instanceof o.p&&"stops"===s&&(g.settings[s]=this.serialize(n,0,!0)))}))),this._processAdapters(t,g),this._processStates(t,g)}else if(t instanceof h.YS){g.type="Template";let i=this._filterSettings(d.keys(t._settings));return i.length&&(g.settings={},u.each(i,(i=>{void 0!==t._settings[i]&&(g.settings[i]=this.serialize(t.get(i),e+1,-1!==_.indexOf(i)))}))),this._processAdapters(t,g),this._processStates(t,g),g}if(t instanceof n.w&&t.data.length&&-1===(this.get("excludeProperties")||[]).indexOf("data")&&(g.properties={data:this.serialize(t.data.values,e,!0)}),t instanceof r.Il)return{type:"Color",value:t.toCSSHex()};if(t instanceof a.gG)return{type:"Percent",value:t.percent};if(c.isString(t))return this._escapeRefs(t);if(c.isNumber(t))return t;if(c.isObject(t))if(i&&!f){const s=this.get("excludeProperties",[]);d.each(t,((t,n)=>{-1===s.indexOf(t)&&void 0!==n&&(g[t]=this.serialize(n,e+1,i,p))})),p&&d.each(g,((t,e)=>{c.isObject(e)&&(g.__parse=!0)}))}else if(f){const s=this.get("includeProperties",[]);u.each(s,(s=>{const n=t[s];void 0!==n&&(void 0===g.properties&&(g.properties={}),g.properties[s]=this.serialize(n,e+1,i,p))}))}return 0==e&&d.keys(this._refs).length&&(g.refs=this._refs),g}_processAdapters(t,e){if(this.get("includeAdapters",!1)){const i="string"==this.get("functionsAs","string"),s=t.adapters._callbacks;Object.keys(s).length>0&&(e.adapters=[],d.each(s,((t,s)=>{s.forEach((s=>{e.adapters.push({key:t,callback:i?s.toString():s})}))})))}}_processStates(t,e){if(this.get("includeStates",!1)){const i=t.states._states;Object.keys(i).length>0&&(e.states=[],d.each(i,((t,i)=>{Object.keys(i._settings).length>0&&e.states.push({key:t,settings:this.serialize(i._settings,0,!0)})})))}}_filterSettings(t){const e=this.get("includeSettings",[]),i=this.get("excludeSettings",[]);return e.length?t=e:i.length&&(t=t.filter((t=>-1===i.indexOf(t)))),t}_escapeRefs(t){return t.replace(/^#/,"##").replace(/^@/,"@@")}}p.className="Serializer",p.classNames=s.JH.classNames.concat([p.className])},3783:function(t,e,i){"use strict";i.d(e,{X:function(){return c},v:function(){return l}});var s=i(3409),n=i(6245),r=i(1112),o=i(6881),a=i(962),h=i(9395);function l(t,e,i,s){t.set(e,i.get(s)),i.on(s,(i=>{t.set(e,i)}))}class c extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.language,e=this._root.interfaceColors,i=this._root.horizontalLayout,s=this._root.verticalLayout,c=this.rule.bind(this);c("InterfaceColors").setAll({stroke:r.Il.fromHex(15066597),fill:r.Il.fromHex(15987699),primaryButton:r.Il.fromHex(6788316),primaryButtonHover:r.Il.fromHex(6779356),primaryButtonDown:r.Il.fromHex(6872182),primaryButtonActive:r.Il.fromHex(6872182),primaryButtonDisabled:r.Il.fromHex(14342874),primaryButtonTextDisabled:r.Il.fromHex(16777215),primaryButtonText:r.Il.fromHex(16777215),primaryButtonStroke:r.Il.fromHex(16777215),secondaryButton:r.Il.fromHex(14277081),secondaryButtonHover:r.Il.fromHex(10724259),secondaryButtonDown:r.Il.fromHex(9276813),secondaryButtonActive:r.Il.fromHex(15132390),secondaryButtonText:r.Il.fromHex(0),secondaryButtonStroke:r.Il.fromHex(16777215),grid:r.Il.fromHex(0),background:r.Il.fromHex(16777215),alternativeBackground:r.Il.fromHex(0),text:r.Il.fromHex(0),alternativeText:r.Il.fromHex(16777215),disabled:r.Il.fromHex(11382189),positive:r.Il.fromHex(5288704),negative:r.Il.fromHex(11730944)});{const t=c("ColorSet");t.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[r.Il.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),t.setPrivate("currentStep",0),t.setPrivate("currentPass",0)}c("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:h.out(h.cubic)}),c("Component").setAll({interpolationDuration:0,interpolationEasing:h.out(h.cubic)}),c("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:n.CI,tooltipY:n.CI,tooltipPosition:"fixed",isMeasured:!0}),c("Sprite").states.create("default",{visible:!0,opacity:1}),c("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),c("Graphics").setAll({strokeWidth:1}),c("Chart").setAll({width:n.AQ,height:n.AQ,interactiveChildren:!1}),c("ZoomableContainer").setAll({width:n.AQ,height:n.AQ,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:h.out(h.cubic),animationDuration:600,maxPanOut:.4}),c("Sprite",["horizontal","center"]).setAll({centerX:n.CI,x:n.CI}),c("Sprite",["vertical","center"]).setAll({centerY:n.CI,y:n.CI}),c("Container",["horizontal","layout"]).setAll({layout:i}),c("Container",["vertical","layout"]).setAll({layout:s}),c("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),c("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),c("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),c("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),c("GrainPattern").setAll({width:200,height:200,colors:[r.Il.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const t=c("PatternSet");t.setAll({step:1}),l(t,"color",e,"stroke")}c("LinearGradient").setAll({rotation:90}),c("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:o.M.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),c("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:t.translate("Press ENTER to toggle"),role:"checkbox"});{const t=c("Rectangle",["legend","item","background"]);t.setAll({fillOpacity:0}),l(t,"fill",e,"background")}c("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:n.CI,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),c("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:n.AQ,height:n.AQ,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const t=c("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});l(t,"fill",e,"disabled"),l(t,"stroke",e,"disabled")}c("Label",["legend","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0}),l(c("Label",["legend","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("Label",["legend","value","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:n.AQ,populateText:!0}),l(c("Label",["legend","value","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("HeatLegend").setAll({stepCount:1}),c("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),c("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:n.AQ,width:15}),c("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:n.AQ,height:15}),c("HeatLegend",["vertical"]).setAll({height:n.AQ}),c("HeatLegend",["horizontal"]).setAll({width:n.AQ}),c("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),c("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const t=c("Label");t.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),l(t,"fill",e,"text")}c("RadialLabel").setAll({textType:"regular",centerY:n.CI,centerX:n.CI,inside:!1,radius:0,baseRadius:n.AQ,orientation:"auto",textAlign:"center"}),c("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),c("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:r.Il.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:r.Il.fromHex(0)}),c("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),c("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),c("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),c("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const t=c("Tick");t.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),l(t,"stroke",e,"grid")}c("Bullet").setAll({locationX:.5,locationY:.5}),c("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:n.CI,centerY:n.CI,animationEasing:h.out(h.cubic),exportable:!1}),c("Tooltip",["system"]).setAll({pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});{const t=c("PointedRectangle",["tooltip","system","background"]);t.setAll({strokeOpacity:.3}),l(t,"fill",e,"background"),l(t,"stroke",e,"grid")}c("Label",["tooltip","system"]).setAll({fontSize:12,fill:e.get("background")}),c("Polygon").setAll({animationEasing:h.out(h.cubic)}),c("Link").setAll({cornerRadius:8,setStateOnChildren:!0});{const t=c("OrthogonalLine",["link","line"]);t.setAll({isMeasured:!1,crisp:!0}),l(t.states.create("active",{strokeWidth:2}),"stroke",e,"negative")}c("OrthogonalLine",["link","hit"]).setAll({strokeWidth:10,opacity:0,strokeOpacity:0});{const t=c("OrthogonalLine");t.setAll({strokeWidth:1,strokeOpacity:1,cornerRadius:10}),l(t,"stroke",e,"grid")}{const t=c("Triangle",["link"]);t.setAll({width:14,height:10,centerY:0}),l(t,"fill",e,"grid"),l(t,"stroke",e,"grid"),t.states.create("default",{stateAnimationDuration:0});const i=t.states.create("active",{stateAnimationDuration:0,stroke:(0,r.$_)(16777215),strokeWidth:2});i.set("draw",(t=>{t.arc(0,0,11,0,2*Math.PI),t.moveTo(-4,-4),t.lineTo(4,4),t.moveTo(4,-4),t.lineTo(-4,4)})),l(i,"fill",e,"negative")}c("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:r.Il.fromHex(16777215)});{const t=c("Label",["tooltip"]);t.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),l(t,"fill",e,"alternativeText")}c("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),c("Button").states.create("hover",{}),c("Button").states.create("down",{stateAnimationDuration:0}),c("Button").states.create("active",{}),c("Button").states.create("disabled",{forceInactive:!0});{const t=c("RoundedRectangle",["button","background"]);l(t,"fill",e,"primaryButton"),l(t,"stroke",e,"primaryButtonStroke")}l(c("RoundedRectangle",["button","background"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown"),l(c("RoundedRectangle",["button","background"]).states.create("active",{}),"fill",e,"primaryButtonActive"),l(c("RoundedRectangle",["button","background"]).states.create("disabled",{}),"fill",e,"primaryButtonDisabled"),l(c("Graphics",["button","icon"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled"),l(c("Label",["button"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled");{const t=c("Graphics",["button","icon"]);t.setAll({forceInactive:!0}),l(t,"stroke",e,"primaryButtonText")}l(c("Label",["button"]),"fill",e,"primaryButtonText"),c("ConfirmButton").setAll({toggleKey:"active",setStateOnChildren:!0,label:a._.new(this._root,{text:t.translate("Confirm"),forceHidden:!0})}),l(c("RoundedRectangle",["button","background","confirm"]).states.create("active",{}),"fill",e,"negative"),c("Label",["button","confirm"]).setAll({paddingTop:0,paddingBottom:0,paddingRight:3,paddingLeft:5}),c("Label",["button","confirm"]).states.create("default",{stateAnimationDuration:0}),c("Label",["button","confirm"]).states.create("active",{forceHidden:!1,stateAnimationDuration:0});{const t=c("Graphics",["icon","confirm","button"]);t.setAll({stateAnimationDuration:0}),t.states.create("default",{stateAnimationDuration:0}),l(t,"stroke",e,"primaryButtonText")}l(c("Graphics",["icon","confirm","button"]).states.create("active",{svgPath:"M -5 1 L 0 6 L 8 -5",strokeWidth:2}),"stroke",e,"primaryButtonText"),l(c("Graphics",["icon","confirm","button","secondary"]).states.create("active",{}),"stroke",e,"primaryButtonText"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1}),"fill",e,"negative"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1}),"fill",e,"negative"),c("Button",["button","confirm"]).states.create("hoverActive",{}),c("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:n.AQ,role:"button",ariaLabel:t.translate("Zoom Out"),layer:30});{const t=c("RoundedRectangle",["background","button","zoom"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"primaryButton")}l(c("RoundedRectangle",["background","button","zoom"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown");{const t=c("Graphics",["icon","button","zoom"]);t.setAll({crisp:!0,strokeOpacity:.7,draw:t=>{t.moveTo(0,0),t.lineTo(12,0)}}),l(t,"stroke",e,"primaryButtonText")}c("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:n.CI,centerY:n.CI,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:t.translate("Use up and down arrows to move selection")});{const t=c("RoundedRectangle",["background","resize","button"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"secondaryButton"),l(t,"stroke",e,"secondaryButtonStroke")}l(c("RoundedRectangle",["background","resize","button"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown");{const t=c("Graphics",["resize","button","icon"]);t.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),l(t,"stroke",e,"secondaryButtonText")}c("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),c("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),c("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:t.translate("Play"),toggleKey:"active"});{const t=c("RoundedRectangle",["play","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Graphics",["play","icon"]);t.setAll({stateAnimationDuration:0,dx:1,draw:t=>{t.moveTo(0,-5),t.lineTo(8,0),t.lineTo(0,5),t.lineTo(0,-5)}}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),c("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:t=>{t.moveTo(-4,-5),t.lineTo(-1,-5),t.lineTo(-1,5),t.lineTo(-4,5),t.lineTo(-4,-5),t.moveTo(4,-5),t.lineTo(1,-5),t.lineTo(1,5),t.lineTo(4,5),t.lineTo(4,-5)}}),c("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:t.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const t=c("RoundedRectangle",["switch","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["switch","icon"]);t.setAll({radius:8,centerY:0,centerX:0,dx:0}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["switch","icon"]).states.create("active",{dx:16}),c("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:h.out(h.cubic)}),c("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:n.AQ}),c("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:n.AQ}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const t=c("RoundedRectangle",["scrollbar","main","background"]);t.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),l(t,"fill",e,"fill")}{const t=c("RoundedRectangle",["scrollbar","thumb"]);t.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),l(t,"fill",e,"secondaryButton")}l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown"),c("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:n.CI,width:n.AQ,centerX:n.CI,ariaLabel:t.translate("Use up and down arrows to move selection")}),c("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:n.CI,centerY:n.CI,height:n.AQ,ariaLabel:t.translate("Use left and right arrows to move selection")});{const t=c("PointedRectangle",["axis","tooltip","background"]);t.setAll({cornerRadius:0}),l(t,"fill",e,"alternativeBackground")}c("Label",["axis","tooltip"]).setAll({role:void 0}),c("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),c("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),c("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),c("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),c("Star").setAll({spikes:5,innerRadius:5,radius:10}),c("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),c("Tooltip",["indicator"]).setAll({forceHidden:!0}),c("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),c("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),c("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),c("Container",["resizer","grip"]).states.create("hover",{});{const t=c("RoundedRectangle",["resizer","grip"]);t.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),l(t,"fill",e,"background"),l(t,"stroke",e,"alternativeBackground")}{const t=c("RoundedRectangle",["resizer","grip","outline"]);t.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),t.states.create("hover",{fillOpacity:.3}),l(t,"fill",e,"alternativeBackground")}c("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),c("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const t=c("Rectangle",["resizer","rectangle"]);t.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),l(t,"stroke",e,"alternativeBackground")}c("Graphics",["button","plus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0),t.moveTo(0,-4),t.lineTo(0,4)}}),c("Graphics",["button","minus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0)}}),c("Graphics",["button","home","icon"]).setAll({x:n.CI,y:n.CI,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),c("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),c("ZoomTools").setAll({x:n.AQ,centerX:n.AQ,y:n.AQ,centerY:n.AQ,paddingRight:10,paddingBottom:10}),c("ProgressPie").setAll({radius:n.AQ,width:50,height:50,centerX:(0,n.aQ)(-50),centerY:(0,n.aQ)(-50),innerRadius:(0,n.aQ)(85),numberFormat:"#."});{const t=c("Label",["progresspie"]);t.setAll({centerX:n.CI,centerY:n.CI,fontSize:"0.75em"}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["progresspie"]);t.setAll({fillOpacity:.5}),l(t,"fill",e,"background")}{const t=c("Slice",["progresspie"]);t.setAll({startAngle:-90}),l(t,"fill",e,"primaryButton")}{const t=c("Slice",["progresspie","background"]);t.setAll({fillOpacity:.2,arc:360}),l(t,"fill",e,"primaryButton")}c("EditableLabel",["numericstepper"]).setAll({y:n.CI,centerY:n.CI,multiLine:!1,marginRight:2});{const t=c("Container",["numericstepper","buttons"]);t.setAll({layout:this._root.verticalLayout,centerY:n.CI,y:n.CI,marginRight:10,opacity:0}),t.states.create("active",{opacity:1}),t.states.create("default",{opacity:0})}{const t=c("Triangle",["numericstepper"]);t.setAll({width:17,height:11,marginTop:3,marginBottom:3,strokeWidth:5,strokeOpacity:0,cursorOverStyle:"pointer"}),l(t,"fill",e,"secondaryButton")}c("Triangle",["downbutton"]).setAll({rotation:180})}}},5322:function(t,e,i){"use strict";i.r(e),i.d(e,{ArrayDisposer:function(){return c.rk},BlendMode:function(){return ot.b},Bullet:function(){return u.g},Button:function(){return d.z},CSVParser:function(){return bt},CanvasLayer:function(){return Pt.mM},CanvasRenderer:function(){return Pt.uK},Chart:function(){return q.k},Circle:function(){return g.C},CirclePattern:function(){return ut},Color:function(){return O.Il},ColorSet:function(){return mt.U},Component:function(){return v.w},ConfirmButton:function(){return p.p},Container:function(){return w.W},CounterDisposer:function(){return c.DM},DataItem:function(){return v.z},DataProcessor:function(){return xt},DateFormatter:function(){return Dt.C},Disposer:function(){return c.ku},DurationFormatter:function(){return kt.$},EditableLabel:function(){return A.Y},Ellipse:function(){return _.P},Entity:function(){return l.JH},Gradient:function(){return at.p},GrainPattern:function(){return rt},Graphics:function(){return m.T},GridLayout:function(){return x.M},HeatLegend:function(){return C},HorizontalLayout:function(){return L.G},InterfaceColors:function(){return Tt.v},JSONParser:function(){return wt},JsonData:function(){return yt.Q},Label:function(){return D._},Layout:function(){return R.A},Legend:function(){return U.D},Line:function(){return B.x},LinePattern:function(){return dt.y},LinearGradient:function(){return S.o},Link:function(){return F.r},ListData:function(){return yt.k},ListTemplate:function(){return E.o},Modal:function(){return h.u},MultiDisposer:function(){return c.FV},MutableValueDisposer:function(){return c.cx},NumberFormatter:function(){return Mt.e},NumericStepper:function(){return St.l},OrthogonalLine:function(){return I.P},PathPattern:function(){return ft},Pattern:function(){return nt.c},PatternSet:function(){return _t},Percent:function(){return k.gG},Picture:function(){return H.t},PicturePattern:function(){return pt.v},PointedRectangle:function(){return z.i},Polygon:function(){return f.m},ProgressPie:function(){return Nt.w},RadialGradient:function(){return lt},RadialLabel:function(){return G.x},RadialText:function(){return V.f},Rectangle:function(){return W.A},RectanglePattern:function(){return gt},Root:function(){return n.f},RoundedRectangle:function(){return T.c},Scrollbar:function(){return j.L},SerialChart:function(){return Q.j},Series:function(){return K.F},Slice:function(){return $.p},Slider:function(){return X.i},Sprite:function(){return Z.j},SpriteResizer:function(){return Ot.b},Star:function(){return y},Template:function(){return M.YS},Text:function(){return J.x},TextFormatter:function(){return Et.V},Theme:function(){return r.Q},Tick:function(){return tt.d},Timezone:function(){return it.r},Tooltip:function(){return P.u},Triangle:function(){return Y.C},VerticalLayout:function(){return et.Z},ZoomTools:function(){return st.H},ZoomableContainer:function(){return b.Y},addLicense:function(){return o.cP},array:function(){return ht},color:function(){return O.$_},disposeAllRootElements:function(){return o.UZ},ease:function(){return Ct},getRootById:function(){return o.f_},math:function(){return ct},net:function(){return s},object:function(){return vt},p0:function(){return k.p0},p100:function(){return k.AQ},p50:function(){return k.CI},percent:function(){return k.aQ},ready:function(){return a.ready},registry:function(){return o.i_},time:function(){return Rt},type:function(){return N},utils:function(){return a}});var s={};i.r(s),i.d(s,{load:function(){return Lt},readBlob:function(){return At}});var n=i(2855),r=i(3409),o=i(3145),a=i(7652),h=i(8219),l=i(6331),c=i(7449),u=i(5108),d=i(8054),p=i(2936),g=i(8035),f=i(7770),_=i(2433),m=i(1479);class y extends m.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("spikes"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const t=this._display,e=this.get("radius",0),i=a.relativeToValue(this.get("innerRadius",0),e),s=this.get("spikes",0),n=Math.PI/s;let r=Math.PI/2*3;t.moveTo(0,-e);for(let o=0;oT.c._new(this._root,{themeTags:a.mergeTags(this.markers.template.get("themeTags",[]),[this.get("orientation"),"heatlegend","marker"])},[this.markers.template]))))}_afterNew(){this._settings.themeTags=a.mergeTags(this._settings.themeTags,["heatlegend",this._settings.orientation]),super._afterNew(),this.set("tooltip",P.u.new(this._root,{themeTags:["heatlegend"]}))}makeMarker(){const t=this.markers.make();return t.states.create("disabled",{}),t}showValue(t,e,i){const s=this.getTooltip();if(s&&N.isNumber(t)){const n=this.get("startValue",0);let r=(t-n)/(this.get("endValue",1)-n);(r==1/0||r==-1/0||isNaN(r))&&(r=.5);const o=this.get("startColor"),a=this.get("endColor");let h;e||(e=this.getNumberFormatter().format(t)),i||(i=O.Il.interpolate(r,o,a)),s.label.set("text",e),h="vertical"==this.get("orientation")?this.markerContainer.toGlobal({x:0,y:this.innerHeight()*(1-r)}):this.markerContainer.toGlobal({x:this.innerWidth()*r,y:0});let l=s.get("background");l&&l.set("fill",i),s.set("pointTo",h),s.show()}}_prepareChildren(){super._prepareChildren();const t=this.labelContainer,e=this.get("orientation"),i=this.startLabel,s=this.endLabel,n=this.getTooltip();if(this.isDirty("orientation")&&("vertical"==e?(this.markerContainer.setAll({layout:this._root.verticalLayout,height:k.AQ}),this.set("layout",this._root.horizontalLayout),i.setAll({y:k.AQ,x:void 0,centerY:k.AQ,centerX:k.AQ}),s.setAll({y:0,x:void 0,centerY:0,centerX:k.AQ}),t.setAll({height:k.AQ,width:void 0}),n&&n.set("pointerOrientation","horizontal")):(this.markerContainer.setAll({layout:this._root.horizontalLayout,width:k.AQ}),this.set("layout",this._root.verticalLayout),i.setAll({x:0,y:void 0,centerX:0,centerY:0}),s.setAll({x:k.AQ,y:void 0,centerX:k.AQ,centerY:0}),t.setAll({width:k.AQ,height:void 0}),n&&n.set("pointerOrientation","vertical"))),this.isDirty("stepCount")){const t=this.get("stepCount",1),i=this.get("startColor"),s=this.get("endColor"),n=this.get("startOpacity",1),r=this.get("endOpacity",1);if(this.markerContainer.children.clear(),t>1)for(let o=0;o0&&e/u!=Math.round(e/u)))for(let h=0;h0&&h/c!=Math.round(h/c)||d{let i=e.offset;N.isNumber(i)||(i=t/(g.length-1));let s=e.opacity;N.isNumber(s)||(s=1);let n=e.color;if(n){const t=e.lighten;t&&(n=O.Il.lighten(n,t));const r=e.brighten;r&&(n=O.Il.brighten(n,r)),p.addColorStop(i,"rgba("+n.r+","+n.g+","+n.b+","+s+")")}t++}))}return p}}lt.className="RadialGradient",lt.classNames=at.p.classNames.concat([lt.className]);var ct=i(751);class ut extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("radius",3),a=2*o+i,h=2*o+i,l=Math.round(n/a),c=Math.round(r/h);a=n/l,h=r/c,0!=s&&(this._display.x=a*ct.cos(s),this._display.y=h*ct.sin(s));const u=this.get("color"),d=this.get("colorOpacity");(u||d)&&this._display.beginFill(u,d);for(let n=0==s?0:2*-c;n<2*c;n++)for(let r=0==s?0:2*-l;r<2*l;r++)if(!t||1!=(1&n)&&1!=(1&r)||1==(1&n)&&1==(1&r)){let t=r*a,s=n*h;e&&(t+=a+i/2,s+=h+i/2),this._display.drawCircle(t-o,s-o,o)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i),(u||d)&&this._display.endFill()}}ut.className="CirclePattern",ut.classNames=nt.c.classNames.concat([ut.className]);var dt=i(3035),pt=i(4429);class gt extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("maxWidth",5),a=this.get("maxHeight",5);const h=this._display;let l=o+i,c=a+i,u=Math.round(n/l),d=Math.round(r/c);l=n/u,c=r/d,0!=s&&(h.x=l/2*ct.cos(s),h.y=-c/2*ct.sin(s));for(let i=0==s?0:2*-d;i<2*d;i++)for(let n=0==s?0:2*-u;n<2*u;n++)if(!t||1!=(1&i)&&1!=(1&n)||1==(1&i)&&1==(1&n)){let t=n*l,s=i*c;e&&(t+=(l-o)/2,s+=(c-a)/2),h.drawRect(t,s,o,a)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i);const p=this.get("color"),g=this.get("colorOpacity");(p||g)&&(h.beginFill(p,g),h.endFill())}}gt.className="RectanglePattern",gt.classNames=nt.c.classNames.concat([gt.className]);class ft extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("svgPath")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("svgPath");null!=t&&this._display.svgPath(t);const e=this.get("color"),i=this.get("colorOpacity");(e||i)&&(this._display.beginFill(e,i),this._display.endFill())}}ft.className="PathPattern",ft.classNames=nt.c.classNames.concat([ft.className]);class _t extends l.JH{_afterNew(){if(super._afterNewApplyThemes(),0===this.get("patterns",[]).length){const t=this.get("color",this.root.interfaceColors.get("stroke"));this.set("patterns",[this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:1,color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,maxWidth:4,maxHeight:4,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:1,gap:6,color:t}),this.getCirclePattern({width:11,height:11,radius:2,color:t}),this.getLinePattern({width:6,height:6,rotation:90,strokeWidth:1,color:t}),this.getRectanglePattern({width:14,height:14,rotation:45,gap:4,maxWidth:6,maxHeight:6,checkered:!0,color:t}),this.getLinePattern({width:6,height:6,rotation:0,strokeWidth:1,color:t}),this.getRectanglePattern({width:15,height:15,rotation:0,gap:5,maxWidth:5,maxHeight:5,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getCirclePattern({width:20,height:20,radius:3,gap:4,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,gap:1,maxWidth:9,maxHeight:9,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:0,strokeWidth:3,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:90,strokeWidth:3,gap:1,color:t})])}this._dirty.patterns=!1}_beforeChanged(){this.isDirty("patterns")&&this.reset()}getIndex(t){const e=this.get("patterns",[]);return te.length-1?e[t-Math.floor(t*(t/e.length))]:e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0))}getLinePattern(t){return dt.y.new(this.root,t)}getRectanglePattern(t){return gt.new(this.root,t)}getCirclePattern(t){return ut.new(this.root,t)}}_t.className="PatternSet",_t.classNames=l.JH.classNames.concat([_t.className]);var mt=i(2754),yt=i(9582),vt=i(256);class wt{static parse(t,e){e=this._applyDefaults(e);try{if(N.isString(t)){let i=JSON.parse(t);return e.reverse&&N.isArray(i)&&i.reverse(),i}if(N.isArray(t)||N.isObject(t))return t;throw"Unable to parse JSON data"}catch(t){return}}static _applyDefaults(t){const e={};return t||(t={}),vt.each({reverse:!1},((i,s)=>{e[i]=t[i]||s})),e}}class bt{static parse(t,e){e=this._applyDefaults(e);let i,s,n,r=this.CSVToArray(t,e.delimiter),o=[],a=[];for(s=0;s{e[i]=t[i]||s})),e}}class xt extends l.JH{constructor(){super(...arguments),this._checkDates=!1,this._checkNumbers=!1,this._checkColors=!1,this._checkEmpty=!1,this._checkDeep=!1}_afterNew(){super._afterNew(),this._checkFeatures(),this.on("dateFields",(()=>this._checkFeatures())),this.on("dateFormat",(()=>this._checkFeatures())),this.on("numericFields",(()=>this._checkFeatures())),this.on("colorFields",(()=>this._checkFeatures())),this.on("emptyAs",(()=>this._checkFeatures()))}_checkFeatures(){(this.isDirty("dateFields")||this.isDirty("dateFormat"))&&(this._checkDates=this.get("dateFields")&&this.get("dateFields").length>0),this.isDirty("numericFields")&&(this._checkNumbers=this.get("numericFields")&&this.get("numericFields").length>0),this.isDirty("colorFields")&&(this._checkColors=this.get("colorFields")&&this.get("colorFields").length>0),this.isDirty("emptyAs")&&(this._checkEmpty=null!=this.get("emptyAs")),this._checkDeepFeatures()}_checkDeepFeatures(){const t=[];ht.each(["dateFields","numericFields","colorFields"],(e=>{ht.each(this.get(e,[]),(e=>{const i=e.split(".");for(i.pop();i.length>0;)t.push(i.join(".")),i.pop()}))})),this._checkDeep=t.length>0,this.setPrivate("deepFields",t)}processMany(t){N.isArray(t)&&(this._checkDates||this._checkNumbers||this._checkColors||this._checkEmpty)&&ht.each(t,(t=>{this.processRow(t)}))}processRow(t,e=""){vt.each(t,((i,s)=>{const n=e+i;this._checkEmpty&&(t[i]=this._maybeToEmpty(t[i])),this._checkNumbers&&(t[i]=this._maybeToNumber(n,t[i])),this._checkDates&&(t[i]=this._maybeToDate(n,t[i])),this._checkColors&&(t[i]=this._maybeToColor(n,t[i])),this._checkDeep&&-1!==this.getPrivate("deepFields",[]).indexOf(n)&&N.isObject(t[i])&&this.processRow(t[i],n+".")}))}_maybeToNumber(t,e){return-1!==this.get("numericFields").indexOf(t)?N.toNumber(e):e}_maybeToDate(t,e){return-1!==this.get("dateFields").indexOf(t)?this._root.dateFormatter.parse(e,this.get("dateFormat","")).getTime():e}_maybeToEmpty(t){return null!=t&&""!=t||null==this.get("emptyAs")?t:this.get("emptyAs")}_maybeToColor(t,e){return-1!==this.get("colorFields").indexOf(t)?O.Il.fromAny(e):e}}var Dt=i(6460),kt=i(798),Tt=i(9821),Mt=i(780),Et=i(7255),Ot=i(1195),Pt=i(4102),St=i(7049),Nt=i(6312),Ct=i(9395);function Lt(t,e,i){return new Promise(((s,n)=>{let r=null!=i&&"blob"==i.responseType,o=new XMLHttpRequest;if(o.onload=()=>{if(200===o.status){let t,i;if(r)return i=o.response,void At(i).then((t=>{let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}));t=o.responseText||o.response;let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}else n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.onerror=()=>{n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.open("GET",t,!0),i&&i.withCredentials&&(o.withCredentials=!0),null!=i){if(null!=i.requestHeaders)for(let t=0;t{const s=new FileReader;s.onload=t=>{e(s.result)},s.onerror=t=>{i(t)},s.readAsText(t)}))}var Rt=i(1926)},3100:function(t,e){"use strict";e.Z={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(t){let e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""}},9629:function(t){var e=function(t){"use strict";var e,i=Object.prototype,s=i.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",h=r.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,s){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new S(s||[]);return n(o,"_invoke",{value:M(t,i,a)}),o}function u(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",g="executing",f="completed",_={};function m(){}function y(){}function v(){}var w={};l(w,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==i&&s.call(x,o)&&(w=x);var D=v.prototype=m.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function i(n,r,o,a){var h=u(t[n],t,r);if("throw"!==h.type){var l=h.arg,c=l.value;return c&&"object"==typeof c&&s.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,o,a)}),(function(t){i("throw",t,o,a)})):e.resolve(c).then((function(t){l.value=t,o(l)}),(function(t){return i("throw",t,o,a)}))}a(h.arg)}var r;n(this,"_invoke",{value:function(t,s){function n(){return new e((function(e,n){i(t,s,e,n)}))}return r=r?r.then(n,n):n()}})}function M(t,e,i){var s=d;return function(n,r){if(s===g)throw new Error("Generator is already running");if(s===f){if("throw"===n)throw r;return C()}for(i.method=n,i.arg=r;;){var o=i.delegate;if(o){var a=E(o,i);if(a){if(a===_)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===d)throw s=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=g;var h=u(t,e,i);if("normal"===h.type){if(s=i.done?f:p,h.arg===_)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(s=f,i.method="throw",i.arg=h.arg)}}}function E(t,i){var s=i.method,n=t.iterator[s];if(n===e)return i.delegate=null,"throw"===s&&t.iterator.return&&(i.method="return",i.arg=e,E(t,i),"throw"===i.method)||"return"!==s&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),_;var r=u(n,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,_;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,_):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,_)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var h=s.call(o,"catchLoc"),l=s.call(o,"finallyLoc");if(h&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var s=i.completion;if("throw"===s.type){var n=s.arg;P(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,s){return this.delegate={iterator:N(t),resultName:i,nextLoc:s},"next"===this.method&&(this.arg=e),_}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},8494:function(t,e,i){"use strict";i.r(e),i.d(e,{am5:function(){return f}});const s=window.Promise,n=s&&s.prototype.then,r=s&&s.prototype.catch,o=s&&s.prototype.finally,a=s&&s.reject,h=s&&s.resolve,l=s&&s.allSettled,c=s&&s.all,u=s&&s.race,d=window.fetch,p=String.prototype.startsWith,g=String.prototype.endsWith;i(9629);const f=i(5322);var _;i.p=(_=function(){if(document.currentScript)return document.currentScript;var t=document.getElementsByTagName("script");return t[t.length-1]}().src,((/(.*\/)[^\/]*$/.exec(_)||[])[1]||"./")),s&&(window.Promise=s,n&&(s.prototype.then=n),r&&(s.prototype.catch=r),o&&(s.prototype.finally=o),a&&(s.reject=a),h&&(s.resolve=h),l&&(s.allSettled=l),c&&(s.all=c),u&&(s.race=u)),d&&(window.fetch=d),p&&(String.prototype.startsWith=p),g&&(String.prototype.endsWith=g)},4138:function(t,e){"use strict";var i={value:()=>{}};function s(){for(var t,e=0,i=arguments.length,s={};e=0&&(e=t.slice(i+1),t=t.slice(0,i)),t&&!s.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),h=-1,l=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++h0)for(var i,s,n=new Array(i),r=0;r0&&i*i>s*s+n*n}function u(t,e){for(var i=0;i1e-6?(E+Math.sqrt(E*E-4*M*O))/(2*M):O/E);return{x:s+x+D*P,y:n+k+T*P,r:P}}function f(t,e,i){var s,n,r,o,a=t.x-e.x,h=t.y-e.y,l=a*a+h*h;l?(n=e.r+i.r,n*=n,o=t.r+i.r,n>(o*=o)?(s=(l+o-n)/(2*l),r=Math.sqrt(Math.max(0,o/l-s*s)),i.x=t.x-s*a-r*h,i.y=t.y-s*h+r*a):(s=(l+n-o)/(2*l),r=Math.sqrt(Math.max(0,n/l-s*s)),i.x=e.x+s*a-r*h,i.y=e.y+s*h+r*a)):(i.x=e.x+i.r,i.y=e.y)}function _(t,e){var i=t.r+e.r-1e-6,s=e.x-t.x,n=e.y-t.y;return i>0&&i*i>s*s+n*n}function m(t){var e=t._,i=t.next._,s=e.r+i.r,n=(e.x*i.r+i.x*e.r)/s,r=(e.y*i.r+i.y*e.r)/s;return n*n+r*r}function y(t){this._=t,this.next=null,this.previous=null}function v(t,e){if(!(o=(i=t,t="object"==typeof i&&"length"in i?i:Array.from(i)).length))return 0;var i,s,n,r,o,a,l,u,p,g,v,w;if((s=t[0]).x=0,s.y=0,!(o>1))return s.r;if(n=t[1],s.x=-n.r,n.x=s.r,n.y=0,!(o>2))return s.r+n.r;f(n,s,r=t[2]),s=new y(s),n=new y(n),r=new y(r),s.next=r.previous=n,n.next=s.previous=r,r.next=n.previous=s;t:for(u=3;u(t=(r*t+o)%a)/a}();return s.x=e/2,s.y=i/2,t?s.eachBefore(x(t)).eachAfter(D(h,.5,l)).eachBefore(k(1)):s.eachBefore(x(w)).eachAfter(D(n.G,1,l)).eachAfter(D(h,s.r/Math.min(e,i),l)).eachBefore(k(Math.min(e,i)/(2*s.r))),s}return l.radius=function(e){return arguments.length?(t=(0,s.j)(e),l):t},l.size=function(t){return arguments.length?(e=+t[0],i=+t[1],l):[e,i]},l.padding=function(t){return arguments.length?(h="function"==typeof t?t:(0,n.Z)(+t),l):h},l}function x(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function D(t,e,i){return function(s){if(n=s.children){var n,r,o,a=n.length,h=t(s)*e||0;if(h)for(r=0;r=0))throw new Error(`invalid digits: ${t}`);if(e>15)return a;const i=10**e;return function(t){this._+=t[0];for(let e=1,s=t.length;er)if(Math.abs(d*l-c*u)>r&&o){let g=i-a,f=n-h,_=l*l+c*c,m=g*g+f*f,y=Math.sqrt(_),v=Math.sqrt(p),w=o*Math.tan((s-Math.acos((_+p-m)/(2*y*v)))/2),b=w/v,x=w/y;Math.abs(b-1)>r&&this._append`L${t+b*u},${e+b*d}`,this._append`A${o},${o},0,0,${+(d*g>u*f)},${this._x1=t+x*l},${this._y1=e+x*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,i,a,h,l){if(t=+t,e=+e,l=!!l,(i=+i)<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(a),u=i*Math.sin(a),d=t+c,p=e+u,g=1^l,f=l?a-h:h-a;null===this._x1?this._append`M${d},${p}`:(Math.abs(this._x1-d)>r||Math.abs(this._y1-p)>r)&&this._append`L${d},${p}`,i&&(f<0&&(f=f%n+n),f>o?this._append`A${i},${i},0,1,${g},${t-c},${e-u}A${i},${i},0,1,${g},${this._x1=d},${this._y1=p}`:f>r&&this._append`A${i},${i},0,${+(f>=s)},${g},${this._x1=t+i*Math.cos(h)},${this._y1=e+i*Math.sin(h)}`)}rect(t,e,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function l(){return new h}l.prototype=h.prototype},832:function(t,e,i){"use strict";i.d(e,{Z:function(){return D}});var s=i(3141);const n=Math.abs,r=Math.atan2,o=Math.cos,a=Math.max,h=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,d=Math.PI,p=d/2,g=2*d;function f(t){return t>=1?p:t<=-1?-p:Math.asin(t)}var _=i(5987);function m(t){return t.innerRadius}function y(t){return t.outerRadius}function v(t){return t.startAngle}function w(t){return t.endAngle}function b(t){return t&&t.padAngle}function x(t,e,i,s,n,r,o){var h=t-i,l=e-s,u=(o?r:-r)/c(h*h+l*l),d=u*l,p=-u*h,g=t+d,f=e+p,_=i+d,m=s+p,y=(g+_)/2,v=(f+m)/2,w=_-g,b=m-f,x=w*w+b*b,D=n-r,k=g*m-_*f,T=(b<0?-1:1)*c(a(0,D*D*x-k*k)),M=(k*b-w*T)/x,E=(-k*w-b*T)/x,O=(k*b+w*T)/x,P=(-k*w+b*T)/x,S=M-y,N=E-v,C=O-y,L=P-v;return S*S+N*N>C*C+L*L&&(M=O,E=P),{cx:M,cy:E,x01:-d,y01:-p,x11:M*(n/D-1),y11:E*(n/D-1)}}function D(){var t=m,e=y,i=(0,s.Z)(0),a=null,D=v,k=w,T=b,M=null,E=(0,_.d)(O);function O(){var s,_,m,y=+t.apply(this,arguments),v=+e.apply(this,arguments),w=D.apply(this,arguments)-p,b=k.apply(this,arguments)-p,O=n(b-w),P=b>w;if(M||(M=s=E()),vu)if(O>g-u)M.moveTo(v*o(w),v*l(w)),M.arc(0,0,v,w,b,!P),y>u&&(M.moveTo(y*o(b),y*l(b)),M.arc(0,0,y,b,w,P));else{var S,N,C=w,L=b,A=w,R=b,U=O,B=O,F=T.apply(this,arguments)/2,I=F>u&&(a?+a.apply(this,arguments):c(y*y+v*v)),H=h(n(v-y)/2,+i.apply(this,arguments)),z=H,G=H;if(I>u){var V=f(I/y*l(F)),W=f(I/v*l(F));(U-=2*V)>u?(A+=V*=P?1:-1,R-=V):(U=0,A=R=(w+b)/2),(B-=2*W)>u?(C+=W*=P?1:-1,L-=W):(B=0,C=L=(w+b)/2)}var Y=v*o(C),j=v*l(C),X=y*o(R),$=y*l(R);if(H>u){var Z,K=v*o(L),q=v*l(L),Q=y*o(A),J=y*l(A);if(O1?0:m<-1?d:Math.acos(m))/2),rt=c(Z[0]*Z[0]+Z[1]*Z[1]);z=h(H,(y-rt)/(nt-1)),G=h(H,(v-rt)/(nt+1))}else z=G=0}B>u?G>u?(S=x(Q,J,Y,j,v,G,P),N=x(K,q,X,$,v,G,P),M.moveTo(S.cx+S.x01,S.cy+S.y01),Gu&&U>u?z>u?(S=x(X,$,K,q,y,-z,P),N=x(Y,j,Q,J,y,-z,P),M.lineTo(S.cx+S.x01,S.cy+S.y01),z=o;--a)p.point(y[a],v[a]);p.lineEnd(),p.areaEnd()}m&&(y[r]=+t(h,r,n),v[r]=+e(h,r,n),p.point(l?+l(h,r,n):y[r],i?+i(h,r,n):v[r]))}if(f)return p=null,f+""||null}function _(){return(0,o.Z)().defined(c).curve(d).context(u)}return t="function"==typeof t?t:void 0===t?h.x:(0,n.Z)(+t),e="function"==typeof e?e:void 0===e?(0,n.Z)(0):(0,n.Z)(+e),i="function"==typeof i?i:void 0===i?h.y:(0,n.Z)(+i),f.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),l=null,f):t},f.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),f):t},f.x1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):l},f.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),i=null,f):e},f.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),f):e},f.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):i},f.lineX0=f.lineY0=function(){return _().x(t).y(e)},f.lineY1=function(){return _().x(t).y(i)},f.lineX1=function(){return _().x(l).y(e)},f.defined=function(t){return arguments.length?(c="function"==typeof t?t:(0,n.Z)(!!t),f):c},f.curve=function(t){return arguments.length?(d=t,null!=u&&(p=d(u)),f):d},f.context=function(t){return arguments.length?(null==t?u=p=null:p=d(u=t),f):u},f}},8457:function(t,e,i){"use strict";function s(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}i.d(e,{Z:function(){return s}}),Array.prototype.slice},3141:function(t,e,i){"use strict";function s(t){return function(){return t}}i.d(e,{Z:function(){return s}})},964:function(t,e,i){"use strict";function s(t){this._context=t}function n(t){return new s(t)}i.d(e,{Z:function(){return n}}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},774:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var s=i(8457),n=i(3141),r=i(964),o=i(5987),a=i(6758);function h(t,e){var i=(0,n.Z)(!0),h=null,l=r.Z,c=null,u=(0,o.d)(d);function d(n){var r,o,a,d=(n=(0,s.Z)(n)).length,p=!1;for(null==h&&(c=l(a=u())),r=0;r<=d;++r)!(r=0))throw new RangeError(`invalid digits: ${i}`);e=t}return t},()=>new s.y$(e)}},6758:function(t,e,i){"use strict";function s(t){return t[0]}function n(t){return t[1]}i.d(e,{x:function(){return s},y:function(){return n}})},7738:function(t,e,i){"use strict";i.d(e,{B7:function(){return _},HT:function(){return m},zO:function(){return g}});var s,n,r=0,o=0,a=0,h=1e3,l=0,c=0,u=0,d="object"==typeof performance&&performance.now?performance:Date,p="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return c||(p(f),c=d.now()+u)}function f(){c=0}function _(){this._call=this._time=this._next=null}function m(t,e,i){var s=new _;return s.restart(t,e,i),s}function y(){c=(l=d.now())+u,r=o=0;try{!function(){g(),++r;for(var t,e=s;e;)(t=c-e._time)>=0&&e._call.call(void 0,t),e=e._next;--r}()}finally{r=0,function(){for(var t,e,i=s,r=1/0;i;)i._call?(r>i._time&&(r=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:s=e);n=t,w(r)}(),c=0}}function v(){var t=d.now(),e=t-l;e>h&&(u-=e,l=t)}function w(t){r||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(y,t-d.now()-u)),a&&(a=clearInterval(a))):(a||(l=d.now(),a=setInterval(v,h)),r=1,p(y)))}_.prototype=m.prototype={constructor:_,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?g():+i)+(null==e?0:+e),this._next||n===this||(n?n._next=this:s=this,n=this),this._call=t,this._time=i,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},7896:function(t,e,i){"use strict";function s(){}function n(t){return null==t?s:function(){return this.querySelector(t)}}function r(){return[]}function o(t){return null==t?r:function(){return this.querySelectorAll(t)}}function a(t){return function(){return this.matches(t)}}function h(t){return function(e){return e.matches(t)}}var l=Array.prototype.find;function c(){return this.firstElementChild}var u=Array.prototype.filter;function d(){return Array.from(this.children)}function p(t){return new Array(t.length)}function g(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function f(t,e,i,s,n,r){for(var o,a=0,h=e.length,l=r.length;ae?1:t>=e?0:NaN}g.prototype={constructor:g,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var w="http://www.w3.org/1999/xhtml",b={svg:"http://www.w3.org/2000/svg",xhtml:w,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function x(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),b.hasOwnProperty(e)?{space:b[e],local:t}:t}function D(t){return function(){this.removeAttribute(t)}}function k(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T(t,e){return function(){this.setAttribute(t,e)}}function M(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function O(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function P(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function S(t){return function(){this.style.removeProperty(t)}}function N(t,e,i){return function(){this.style.setProperty(t,e,i)}}function C(t,e,i){return function(){var s=e.apply(this,arguments);null==s?this.style.removeProperty(t):this.style.setProperty(t,s,i)}}function L(t,e){return t.style.getPropertyValue(e)||P(t).getComputedStyle(t,null).getPropertyValue(e)}function A(t){return function(){delete this[t]}}function R(t,e){return function(){this[t]=e}}function U(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function B(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new I(t)}function I(t){this._node=t,this._names=B(t.getAttribute("class")||"")}function H(t,e){for(var i=F(t),s=-1,n=e.length;++s=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ut=[null];function dt(t,e){this._groups=t,this._parents=e}function pt(){return new dt([[document.documentElement]],ut)}dt.prototype=pt.prototype={constructor:dt,select:function(t){"function"!=typeof t&&(t=n(t));for(var e=this._groups,i=e.length,s=new Array(i),r=0;r=T&&(T=k+1);!(D=b[T])&&++T=0;)(s=n[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=v);for(var i=this._groups,s=i.length,n=new Array(s),r=0;r1?this.each((null==e?S:"function"==typeof e?C:N)(t,e,null==i?"":i)):L(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?A:"function"==typeof e?U:R)(t,e)):this.node()[t]},classed:function(t,e){var i=B(t+"");if(arguments.length<2){for(var s=F(this.node()),n=-1,r=i.length;++n=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}))}(t+""),o=r.length;if(!(arguments.length<2)){for(a=e?at:ot,s=0;s{s.stop(),t(i+e)}),e,i),s}var yt=(0,ft.Z)("start","end","cancel","interrupt"),vt=[],wt=0,bt=3;function xt(t,e,i,s,n,r){var o=t.__transition;if(o){if(i in o)return}else t.__transition={};!function(t,e,i){var s,n=t.__transition;function r(h){var l,c,u,d;if(1!==i.state)return a();for(l in n)if((d=n[l]).name===i.name){if(d.state===bt)return mt(r);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[l]):+lwt)throw new Error("too late; already scheduled");return i}function kt(t,e){var i=Tt(t,e);if(i.state>bt)throw new Error("too late; already running");return i}function Tt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Mt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Et,Ot=180/Math.PI,Pt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function St(t,e,i,s,n,r){var o,a,h;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(h=t*i+e*s)&&(i-=t*h,s-=e*h),(a=Math.sqrt(i*i+s*s))&&(i/=a,s/=a,h/=a),t*s180?e+=360:e-t>180&&(t+=360),r.push({i:i.push(n(i)+"rotate(",null,s)-2,x:Mt(t,e)})):e&&i.push(n(i)+"rotate("+e+s)}(r.rotate,o.rotate,a,h),function(t,e,i,r){t!==e?r.push({i:i.push(n(i)+"skewX(",null,s)-2,x:Mt(t,e)}):e&&i.push(n(i)+"skewX("+e+s)}(r.skewX,o.skewX,a,h),function(t,e,i,s,r,o){if(t!==i||e!==s){var a=r.push(n(r)+"scale(",null,",",null,")");o.push({i:a-4,x:Mt(t,i)},{i:a-2,x:Mt(e,s)})}else 1===i&&1===s||r.push(n(r)+"scale("+i+","+s+")")}(r.scaleX,r.scaleY,o.scaleX,o.scaleY,a,h),r=o=null,function(t){for(var e,i=-1,s=h.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?se(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?se(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jt.exec(t))?new re(e[1],e[2],e[3],1):(e=Xt.exec(t))?new re(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$t.exec(t))?se(e[1],e[2],e[3],e[4]):(e=Zt.exec(t))?se(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Kt.exec(t))?ue(e[1],e[2]/100,e[3]/100,1):(e=qt.exec(t))?ue(e[1],e[2]/100,e[3]/100,e[4]):Qt.hasOwnProperty(t)?ie(Qt[t]):"transparent"===t?new re(NaN,NaN,NaN,0):null}function ie(t){return new re(t>>16&255,t>>8&255,255&t,1)}function se(t,e,i,s){return s<=0&&(t=e=i=NaN),new re(t,e,i,s)}function ne(t,e,i,s){return 1===arguments.length?((n=t)instanceof It||(n=ee(n)),n?new re((n=n.rgb()).r,n.g,n.b,n.opacity):new re):new re(t,e,i,null==s?1:s);var n}function re(t,e,i,s){this.r=+t,this.g=+e,this.b=+i,this.opacity=+s}function oe(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}`}function ae(){const t=he(this.opacity);return`${1===t?"rgb(":"rgba("}${le(this.r)}, ${le(this.g)}, ${le(this.b)}${1===t?")":`, ${t})`}`}function he(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function le(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ce(t){return((t=le(t))<16?"0":"")+t.toString(16)}function ue(t,e,i,s){return s<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new pe(t,e,i,s)}function de(t){if(t instanceof pe)return new pe(t.h,t.s,t.l,t.opacity);if(t instanceof It||(t=ee(t)),!t)return new pe;if(t instanceof pe)return t;var e=(t=t.rgb()).r/255,i=t.g/255,s=t.b/255,n=Math.min(e,i,s),r=Math.max(e,i,s),o=NaN,a=r-n,h=(r+n)/2;return a?(o=e===r?(i-s)/a+6*(i0&&h<1?0:o,new pe(o,a,h,t.opacity)}function pe(t,e,i,s){this.h=+t,this.s=+e,this.l=+i,this.opacity=+s}function ge(t){return(t=(t||0)%360)<0?t+360:t}function fe(t){return Math.max(0,Math.min(1,t||0))}function _e(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function me(t,e,i,s,n){var r=t*t,o=r*t;return((1-3*t+3*r-o)*e+(4-6*r+3*o)*i+(1+3*t+3*r-3*o)*s+o*n)/6}Bt(It,ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return de(this).formatHsl()},formatRgb:te,toString:te}),Bt(re,ne,Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new re(le(this.r),le(this.g),le(this.b),he(this.opacity))},displayable(){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:oe,formatHex:oe,formatHex8:function(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}${ce(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ae,toString:ae})),Bt(pe,(function(t,e,i,s){return 1===arguments.length?de(t):new pe(t,e,i,null==s?1:s)}),Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new pe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new pe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*e,n=2*i-s;return new re(_e(t>=240?t-240:t+120,n,s),_e(t,n,s),_e(t<120?t+240:t-120,n,s),this.opacity)},clamp(){return new pe(ge(this.h),fe(this.s),fe(this.l),he(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=he(this.opacity);return`${1===t?"hsl(":"hsla("}${ge(this.h)}, ${100*fe(this.s)}%, ${100*fe(this.l)}%${1===t?")":`, ${t})`}`}}));var ye=t=>()=>t;function ve(t,e){var i=e-t;return i?function(t,e){return function(i){return t+i*e}}(t,i):ye(isNaN(t)?e:t)}var we=function t(e){var i=function(t){return 1==(t=+t)?ve:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(s){return Math.pow(t+s*e,i)}}(e,i,t):ye(isNaN(e)?i:e)}}(e);function s(t,e){var s=i((t=ne(t)).r,(e=ne(e)).r),n=i(t.g,e.g),r=i(t.b,e.b),o=ve(t.opacity,e.opacity);return function(e){return t.r=s(e),t.g=n(e),t.b=r(e),t.opacity=o(e),t+""}}return s.gamma=t,s}(1);function be(t){return function(e){var i,s,n=e.length,r=new Array(n),o=new Array(n),a=new Array(n);for(i=0;i=1?(i=1,e-1):Math.floor(i*e),n=t[s],r=t[s+1],o=s>0?t[s-1]:2*n-r,a=sr&&(n=e.slice(r,n),a[o]?a[o]+=n:a[++o]=n),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,h.push({i:o,x:Mt(i,s)})),r=De.lastIndex;return r=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Dt:kt;return function(){var o=r(this,t),a=o.on;a!==s&&(n=(s=a).copy()).on(e,i),o.on=n}}(i,t,e))},attr:function(t,e){var i=x(t),s="transform"===i?Lt:Te;return this.attrTween(t,"function"==typeof e?(i.local?Ne:Se)(i,s,Ut(this,"attr."+t,e)):null==e?(i.local?Ee:Me)(i):(i.local?Pe:Oe)(i,s,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;var s=x(t);return this.tween(i,(s.local?Ce:Le)(s,e))},style:function(t,e,i){var s="transform"==(t+="")?Ct:Te;return null==e?this.styleTween(t,function(t,e){var i,s,n;return function(){var r=L(this,t),o=(this.style.removeProperty(t),L(this,t));return r===o?null:r===i&&o===s?n:n=e(i=r,s=o)}}(t,s)).on("end.style."+t,Ie(t)):"function"==typeof e?this.styleTween(t,function(t,e,i){var s,n,r;return function(){var o=L(this,t),a=i(this),h=a+"";return null==a&&(this.style.removeProperty(t),h=a=L(this,t)),o===h?null:o===s&&h===n?r:(n=h,r=e(s=o,a))}}(t,s,Ut(this,"style."+t,e))).each(function(t,e){var i,s,n,r,o="style."+e,a="end."+o;return function(){var h=kt(this,t),l=h.on,c=null==h.value[o]?r||(r=Ie(e)):void 0;l===i&&n===c||(s=(i=l).copy()).on(a,n=c),h.on=s}}(this._id,t)):this.styleTween(t,function(t,e,i){var s,n,r=i+"";return function(){var o=L(this,t);return o===r?null:o===s?n:n=e(s=o,i)}}(t,s,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var s="style."+(t+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(null==e)return this.tween(s,null);if("function"!=typeof e)throw new Error;return this.tween(s,function(t,e,i){var s,n;function r(){var r=e.apply(this,arguments);return r!==n&&(s=(n=r)&&function(t,e,i){return function(s){this.style.setProperty(t,e.call(this,s),i)}}(t,r,i)),s}return r._value=e,r}(t,e,null==i?"":i))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ut(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,i;function s(){var s=t.apply(this,arguments);return s!==i&&(e=(i=s)&&function(t){return function(e){this.textContent=t.call(this,e)}}(s)),e}return s._value=t,s}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var s,n=Tt(this.node(),i).tween,r=0,o=n.length;r2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[n]):o=!1;o&&delete t.__transition}}(this,t)}))},gt.prototype.transition=function(t){var e,i;t instanceof ze?(e=t._id,t=t._name):(e=Ge(),(i=We).time=(0,_t.zO)(),t=null==t?null:t+"");for(var s=this._groups,n=s.length,r=0;r=n)&&Object.keys(a.O).every((function(t){return a.O[t](i[h])}))?i.splice(h--,1):(o=!1,n0&&t[c-1][2]>n;c--)t[c]=t[c-1];t[c]=[i,s,n]},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},i=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(t,s){if(1&s&&(t=this(t)),8&s)return t;if("object"==typeof t&&t){if(4&s&&t.__esModule)return t;if(16&s&&"function"==typeof t.then)return t}var n=Object.create(null);a.r(n);var r={};e=e||[null,i({}),i([]),i(i)];for(var o=2&s&&t;"object"==typeof o&&!~e.indexOf(o);o=i(o))Object.getOwnPropertyNames(o).forEach((function(e){r[e]=function(){return t[e]}}));return r.default=function(){return t},a.d(n,r),n},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,i){return a.f[i](t,e),e}),[]))},a.u=function(t){return"deps/"+{643:"pdfmake",4297:"xlsx",4384:"markerjs2"}[t]+".js"},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s={},n="@amcharts/amcharts5:",a.l=function(t,e,i,r){if(s[t])s[t].push(e);else{var o,h;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c + + + + + Column with Rotated Labels + + + +
+ + + + + + diff --git a/web/amCharts/bar/chart_0081_bar.inline02.js b/web/amCharts/bar/chart_0081_bar.inline02.js new file mode 100644 index 0000000000000000000000000000000000000000..7d639bfbccafb0629413627a65767ed75fa6b94c --- /dev/null +++ b/web/amCharts/bar/chart_0081_bar.inline02.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[6450],{6901:function(t,e,i){i.d(e,{z:function(){return x}});var s=i(55),a=i(8777),o=i(7142),n=i(5829),r=i(7144),h=i(6245),l=i(8054),d=i(1479),g=i(5071),c=i(5040),u=i(3540),m=i(256),p=i(7652),_=i(751);class x extends n.j{constructor(){super(...arguments),this.xAxes=new r.dn,this.yAxes=new r.dn,this.topAxesContainer=this.chartContainer.children.push(a.W.new(this._root,{width:h.AQ,layout:this._root.verticalLayout})),this.yAxesAndPlotContainer=this.chartContainer.children.push(a.W.new(this._root,{width:h.AQ,height:h.AQ,layout:this._root.horizontalLayout})),this.bottomAxesContainer=this.chartContainer.children.push(a.W.new(this._root,{width:h.AQ,layout:this._root.verticalLayout})),this.leftAxesContainer=this.yAxesAndPlotContainer.children.push(a.W.new(this._root,{height:h.AQ,layout:this._root.horizontalLayout})),this.plotsContainer=this.yAxesAndPlotContainer.children.push(a.W.new(this._root,{width:h.AQ,height:h.AQ,maskContent:!1})),this.plotContainer=this.plotsContainer.children.push(a.W.new(this._root,{width:h.AQ,height:h.AQ})),this.topPlotContainer=this.plotsContainer.children.push(a.W.new(this._root,{width:h.AQ,height:h.AQ})),this.gridContainer=this.plotContainer.children.push(a.W.new(this._root,{width:h.AQ,height:h.AQ,isMeasured:!1})),this.topGridContainer=a.W.new(this._root,{width:h.AQ,height:h.AQ,isMeasured:!1}),this.rightAxesContainer=this.yAxesAndPlotContainer.children.push(a.W.new(this._root,{height:h.AQ,layout:this._root.horizontalLayout})),this.axisHeadersContainer=this.plotContainer.children.push(a.W.new(this._root,{})),this.zoomOutButton=this.topPlotContainer.children.push(l.z.new(this._root,{themeTags:["zoom"],icon:d.T.new(this._root,{themeTags:["button","icon"]})})),this._movePoint={x:0,y:0},this._movePoints={}}_afterNew(){this._defaultThemes.push(s.l.new(this._root)),super._afterNew(),this._disposers.push(this.xAxes),this._disposers.push(this.yAxes);const t=this._root;let e=this._root.verticalLayout;const i=this.zoomOutButton;i.events.on("click",(()=>{this.zoomOut()})),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",e);const a=this.plotContainer;a.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),a.children.push(this.topGridContainer),a.children.push(this.bulletsContainer),a.set("interactive",!0),a.set("interactiveChildren",!1),a.set("background",o.A.new(t,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(a.events.on("pointerdown",(t=>{this._handlePlotDown(t)}))),this._disposers.push(a.events.on("globalpointerup",(t=>{this._handlePlotUp(t)}))),this._disposers.push(a.events.on("globalpointermove",(t=>{this._handlePlotMove(t)}))),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(t){t._unstack(),t._posXDp&&t._posXDp.dispose(),t._posYDp&&t._posYDp.dispose(),t.set("baseAxis",void 0);const e=t.get("xAxis");e&&(g.remove(e.series,t),e.markDirtyExtremes());const i=t.get("yAxis");i&&(g.remove(i.series,t),i.markDirtyExtremes());const s=this.get("cursor");if(s){const e=s.get("snapToSeries");e&&g.remove(e,t)}super._removeSeries(t)}_applyThemes(t=!1){const e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}handleWheel(t){const e=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=t.originalEvent;let o=!1;if(!p.isLocalEvent(a,this))return;o=!0;const n=s.toLocal(t.point),r=this.get("wheelStep",.2),h=a.deltaY/100,l=a.deltaX/100,d=this.get("wheelZoomPositionX"),g=this.get("wheelZoomPositionY");"zoomX"!==e&&"zoomXY"!==e||0==l||this.xAxes.each((t=>{if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let h=t.get("maxDeviation",0),g=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let l=t.get("maxDeviation",0),g=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let h=t.get("maxDeviation",0),d=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let l=t.get("maxDeviation",0),d=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panX"!==i&&"panXY"!==i||0==h||this.xAxes.each((t=>{if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e+s,n=i+s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==e&&"panXY"!==e||0==l||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==i&&"panXY"!==i||0==h||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e-s,n=i-s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),o&&a.preventDefault()}_handleSetWheel(){const t=this.get("wheelX"),e=this.get("wheelY"),i=this.plotContainer;"none"!==t||"none"!==e?(this._wheelDp=i.events.on("wheel",(i=>{const s=i.originalEvent;("none"!==t&&0!=Math.abs(s.deltaX)||"none"!==e&&0!=Math.abs(s.deltaY))&&this.handleWheel(i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(t){let e=1;return t.get("renderer").get("inversed")&&(e=-1),e}_fixWheel(t,e){const i=e-t;return t<0&&(e=(t=0)+i),e>1&&(t=(e=1)-i),[t,e]}_handlePlotDown(t){const e=t.originalEvent;if(2==e.button)return;const i=this.plotContainer;let s=i.toLocal(t.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&e.pointerId&&m.keys(i._downPoints).length>0){const t=this.xAxes.getIndex(0),e=this.yAxes.getIndex(0);t&&(this._downStartX=t.get("start",0),this._downEndX=t.get("end",1)),e&&(this._downStartY=e.get("start",0),this._downEndY=e.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:e.clientX,y:e.clientY};const i=this.get("panX"),s=this.get("panY");i&&this.xAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")})),s&&this.yAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")}));const a="panstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:t.originalEvent})}}_handleWheelAnimation(t){t?t.events.on("stopped",(()=>{this._dispatchWheelAnimation()})):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const t="wheelended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}_handlePlotUp(t){const e=this._downPoint;if(e&&(this.get("panX")||this.get("panY"))){if(t.originalEvent.clientX==e.x&&t.originalEvent.clientY==e.y){const e="pancancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:t.originalEvent})}this._downPoint=void 0,this.xAxes.each((t=>{t._isPanning=!1})),this.yAxes.each((t=>{t._isPanning=!1}))}_handlePlotMove(t){const e=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const i=t.originalEvent.pointerId;if(i&&(this._movePoints[i]=t.point,m.keys(e._downPoints).length>1))return void this._handlePinch()}let i=this._downPoint;if(i){i=e.toLocal(this._root.documentPointToRoot(i));let s=e.toLocal(t.point);const a=this.get("panX"),o=this.get("panY");if(a){let t=this.get("scrollbarX");t&&t.events.disableType("rangechanged"),this.xAxes.each((t=>{if(t.get("panX")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.x-s.x)/e.width();t.get("renderer").get("inversed")&&(n*=-1);let r=a+n,h=o+n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}if(o){let t=this.get("scrollbarY");t&&t.events.disableType("rangechanged"),this.yAxes.each((t=>{if(t.get("panY")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.y-s.y)/e.height();t.get("renderer").get("inversed")&&(n*=-1);let r=a-n,h=o-n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}}}_handlePinch(){const t=this.plotContainer;let e=0,i=[],s=[];if(m.each(t._downPoints,((t,a)=>{i[e]=a;let o=this._movePoints[t];o&&(s[e]=o),e++})),i.length>1&&s.length>1){const e=t.width(),a=t.height();let o=i[0],n=i[1],r=s[0],h=s[1];if(o&&n&&r&&h){if(r=t.toLocal(r),h=t.toLocal(h),o=t.toLocal(o),n=t.toLocal(n),this.get("pinchZoomX")){const t=this._downStartX,i=this._downEndX;if(null!=t&&null!=i){o.x>n.x&&([o,n]=[n,o],[r,h]=[h,r]);let s=t+o.x/e*(i-t),a=t+n.x/e*(i-t),l=t+r.x/e*(i-t),d=t+h.x/e*(i-t),g=Math.max(.001,a-s)/Math.max(.001,d-l),c=t*g+s-l*g,u=i*g+a-d*g;this.xAxes.each((t=>{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}if(this.get("pinchZoomY")){const t=this._downStartY,e=this._downEndY;if(null!=t&&null!=e){o.y{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}}}}_handleCursorPosition(){const t=this.get("cursor");if(t){const e=t.getPrivate("point");let i=t.get("snapToSeries");if(t._downPoint&&(i=void 0),i&&e){const s=t.get("snapToSeriesBy"),a=[];g.each(i,(t=>{if(!t.isHidden()&&!t.isHiding())if("x!"!=s&&"y!"!=s){const e=t.startIndex(),i=t.endIndex();for(let s=e;s{const i=t.get("point");if(i){let a=0;a="x"==s||"x!"==s?Math.abs(e.x-i.x):"y"==s||"y!"==s?Math.abs(e.y-i.y):Math.hypot(e.x-i.x,e.y-i.y),a{const e=t.get("tooltip");e&&e._setDataItem(void 0)})),o){let e=o.component;e.showDataItemTooltip(o),e.setRaw("tooltipDataItem",o);const i=o.get("point");i&&t.handleMove(e.toGlobal({x:i.x-e.x(),y:i.y-e.y()}),!0)}}}}_updateCursor(){let t=this.get("cursor");t&&t.updateCursor()}_addCursor(t){this.plotContainer.children.push(t)}_prepareChildren(){if(super._prepareChildren(),this.series.each((t=>{this._colorize(t)})),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const t=this._prevSettings.cursor,e=this.get("cursor");e!==t&&(this._disposeProperty("cursor"),t&&t.dispose(),e&&(e._setChart(this),this._addCursor(e),this._pushPropertyDisposer("cursor",e.events.on("selectended",(()=>{this._handleCursorSelectEnd()})))),this._prevSettings.cursor=e)}if(this.isDirty("scrollbarX")){const t=this._prevSettings.scrollbarX,e=this.get("scrollbarX");e!==t&&(this._disposeProperty("scrollbarX"),t&&t.dispose(),e&&(e.parent||this.topAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarX",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.xAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarX",e.events.on("released",(()=>{this.xAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.xAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarX=e)}if(this.isDirty("scrollbarY")){const t=this._prevSettings.scrollbarY,e=this.get("scrollbarY");e!==t&&(this._disposeProperty("scrollbarY"),t&&t.dispose(),e&&(e.parent||this.rightAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarY",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.yAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarY",e.events.on("released",(()=>{this.yAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.yAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarY=e)}this._handleZoomOut()}_processSeries(t){super._processSeries(t);const e=t.get("xAxis"),i=t.get("yAxis");g.move(e.series,t),g.move(i.series,t),t._posXDp=t.addDisposer(e.events.on("positionchanged",(()=>{t._fixPosition()}))),t._posXDp=t.addDisposer(i.events.on("positionchanged",(()=>{t._fixPosition()}))),t.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?t.set("baseAxis",i):t.set("baseAxis",e)),t.get("stacked")&&(t._markDirtyKey("stacked"),g.each(t.dataItems,(t=>{t.set("stackToItemY",void 0),t.set("stackToItemX",void 0)}))),t._markDirtyAxes(),i.markDirtyExtremes(),e.markDirtyExtremes(),e._seriesAdded=!0,i._seriesAdded=!0,this._colorize(t)}_colorize(t){const e=this.get("colors");if(e&&null==t.get("fill")){const i=e.next();t._setSoft("stroke",i),t._setSoft("fill",i)}const i=this.get("patterns");if(i&&null==t.get("fillPattern")){const e=i.next();t._setSoft("fillPattern",e)}}_handleCursorSelectEnd(){const t=this.get("cursor"),e=t.get("behavior"),i=t.getPrivate("downPositionX",0),s=t.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,t.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,t.getPrivate("positionY",.5)));this.xAxes.each((t=>{if("zoomX"===e||"zoomXY"===e){let e=t.toAxisPosition(i),s=t.toAxisPosition(a);t.zoom(e,s)}t.setPrivate("updateScrollbar",!0)})),this.yAxes.each((t=>{if("zoomY"===e||"zoomXY"===e){let e=t.toAxisPosition(s),i=t.toAxisPosition(o);t.zoom(e,i)}t.setPrivate("updateScrollbar",!0)}))}_handleScrollbar(t,e,i,s){t.each((t=>{let a=t.fixPosition(e),o=t.fixPosition(i),n=t.zoom(a,o,void 0,s);const r="updateScrollbar";t.setPrivateRaw(r,!1),n?n.events.on("stopped",(()=>{t.setPrivateRaw(r,!0)})):t.setPrivateRaw(r,!0)}))}_processAxis(t,e){return t.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxis(t)}));else if("push"===t.type)e.children.push(t.newValue),t.newValue.processChart(this);else if("setIndex"===t.type)e.children.setIndex(t.index,t.newValue),t.newValue.processChart(this);else if("insertIndex"===t.type)e.children.insertIndex(t.index,t.newValue),t.newValue.processChart(this);else if("removeIndex"===t.type)this._removeAxis(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");e.children.moveValue(t.value,t.newIndex),t.value.processChart(this)}}))}_removeAxis(t){if(!t.isDisposed()){const e=t.parent;e&&e.children.removeValue(t);const i=t.gridContainer,s=i.parent;s&&s.children.removeValue(i);const a=t.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){const t=this.leftAxesContainer.width(),e=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",t),i.set("paddingRight",e);const s=this.topAxesContainer;s.set("paddingLeft",t),s.set("paddingRight",e)}processAxis(t){this.get("cursor")&&(this.addDisposer(t.on("start",(()=>{this._updateCursor()}))),this.addDisposer(t.on("end",(()=>{this._updateCursor()}))))}_handleAxisSelection(t,e){let i=t.fixPosition(t.get("start",0)),s=t.fixPosition(t.get("end",1));if(i>s&&([i,s]=[s,i]),-1!=this.xAxes.indexOf(t)){if(e||t.getPrivate("updateScrollbar")){let t=this.get("scrollbarX");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}}else if(-1!=this.yAxes.indexOf(t)&&(e||t.getPrivate("updateScrollbar"))){let t=this.get("scrollbarY");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let t=this.zoomOutButton;if(t&&t.parent){let e=!1;this.xAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),e?t.isHidden()&&t.show():t.hide()}}inPlot(t){const e=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=e.toGlobal(t);if(t.x>=-.5&&t.y>=-.5&&t.x<=e.width()+.5&&t.y<=e.height()+.5)return!0;if(i)for(let t=i.length-1;t>=0;t--){const e=i[t];if(e!=this){const t=e.plotContainer,i=this._root.rootPointToDocument(s),a=e._root.documentPointToRoot(i),o=t.toLocal(a);if(o.x>=-.1&&o.y>=-.1&&o.x<=t.width()+.1&&o.y<=t.height()+.1)return!0}}return!1}arrangeTooltips(){const t=this.plotContainer,e=t.width(),i=t.height();let s=this.height();const a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=t._display.toGlobal({x:0,y:0}),n=t._display.toGlobal({x:e,y:i});const r=[];let l,d,m=0,p=1/0,_=this._movePoint,x=this.get("maxTooltipDistance"),v=this.get("maxTooltipDistanceBy","xy");c.isNumber(x)&&this.series.each((t=>{if(!t.isHidden()){const e=t.get("tooltip");if(e){let i=e.get("pointTo");if(i){let e=Math.hypot(_.x-i.x,_.y-i.y);"x"==v?e=Math.abs(_.x-i.x):"y"==v&&(e=Math.abs(_.y-i.y)),e{const e=t.get("tooltip");if(e&&!e.get("forceHidden")){let i=!1,s=e.get("pointTo");if(s){if(x>=0){let s=e.get("pointTo");if(s&&d&&t!=l){let t=Math.hypot(d.x-s.x,d.y-s.y);"x"==v?t=Math.abs(d.x-s.x):"y"==v&&(t=Math.abs(d.y-s.y)),t>x&&(i=!0)}}else-1==x&&t!=l&&(i=!0);this.inPlot(this._tooltipToLocal(s))&&e.dataItem?i||(m+=s.y):i=!0,i||t.isHidden()||t.isHiding()?e.hide(0):(e.show(),r.push(e),y.push(t))}}})),this.setPrivate("tooltipSeries",y),this.get("arrangeTooltips")){let t=0,e=0;const a=this._root.tooltipContainer,l=r.length;if(m/l>i/2+o.y){r.sort(((t,e)=>u.HO(e.get("pointTo").y,t.get("pointTo").y)));let i=n.y;if(g.each(r,(s=>{let r=s.height();e++,t+=r;let l=s.get("centerY");l instanceof h.gG&&(r*=l.value),r+=s.get("marginBottom",0),s.set("bounds",{left:o.x,top:o.y,right:n.x,bottom:i}),s.setPrivate("customData",{left:o.x,top:o.y,right:n.x,bottom:i}),i=Math.min(i-r,s._fy-r),s.parent==a&&a.children.moveValue(s,0)})),i<0){r.reverse();let t=i;g.each(r,(s=>{e++;let a=s.get("bounds");if(a){let e=a.top-i,o=a.bottom-i;eu.HO(t.get("pointTo").y,e.get("pointTo").y)));let i=0;if(g.each(r,(r=>{e++;let l=r.height();t+=l;let d=r.get("centerY");d instanceof h.gG&&(l*=d.value),l+=r.get("marginBottom",0),r.set("bounds",{left:o.x,top:i,right:n.x,bottom:Math.max(o.y+s,i+l)}),r.parent==a&&a.children.moveValue(r,0),i=Math.max(i+l,r._fy+l)})),i>s){r.reverse();let t=s;g.each(r,(a=>{e++;let o=a.get("bounds");if(o){let e=o.top-(s-i),n=o.bottom-(s-i);n>t&&(n=t,e=n-a.height()),a.set("bounds",{left:o.left,top:e,right:o.right,bottom:n}),t=n-a.height()-a.get("marginBottom",0)}}))}}0==t&&e>0&&this._disposers.push(this.root.events.once("frameended",(()=>{this.arrangeTooltips()})))}}_tooltipToLocal(t){return this.plotContainer.toLocal(t)}zoomOut(){this.xAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))}))}_dispose(){super._dispose();const t=this.get("cursor");t&&t.dispose()}}x.className="XYChart",x.classNames=n.j.classNames.concat([x.className])},55:function(t,e,i){i.d(e,{l:function(){return u}});var s=i(3409),a=i(6245),o=i(1112),n=i(2754),r=i(3783),h=i(1926),l=i(5040),d=i(751),g=i(256),c=i(5071);class u extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.interfaceColors,e=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:n.U.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:o.Il.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:n.U.new(this._root,{saturation:0})});{const e=i("Graphics",["scrollbar","overlay"]);e.setAll({fillOpacity:.5}),(0,r.v)(e,"fill",t,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:a.AQ,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:a.AQ}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:a.AQ}),i("AxisLabel",["y"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const s=i("Grid",["cursor","x"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use left and right arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const s=i("Grid",["cursor","y"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use up and down arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const e=i("Graphics",["cursor","selection"]);e.setAll({fillOpacity:.15}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:a.CI,centerY:a.CI,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const e=i("AxisRenderer");e.setAll({crisp:!0,strokeOpacity:0}),(0,r.v)(e,"stroke",t,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:a.AQ}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:a.AQ});{const e=i("Rectangle",["axis","thumb","zoomgrip"]);e.setAll({fillOpacity:0}),(0,r.v)(e,"fill",t,"alternativeBackground"),e.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{const e=i("Grid");e.setAll({location:0,strokeOpacity:.15,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}{const e=i("Grid",["minor"]);e.setAll({location:0,strokeOpacity:.07,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{const e=i("Graphics",["axis","fill"]);e.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{const e=i("AxisTick");e.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),(0,r.v)(e,"stroke",t,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(t,e)=>{const i=t.get("axisFill");i&&(l.isNumber(e)&&e%2!=0?i.setPrivate("visible",!1):i.setPrivate("visible",!0))}});const s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],u={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_hour"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month"),year:e.translate("_date_year")},m={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_day"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month")+" "+e.translate("_date_year"),year:e.translate("_date_year")},p={millisecond:e.translate("_date_millisecond_full"),second:e.translate("_date_second_full"),minute:e.translate("_date_minute_full"),hour:e.translate("_date_hour_full"),day:e.translate("_date_day_full"),week:e.translate("_date_week_full"),month:e.translate("_date_month_full"),year:e.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m),tooltipDateFormats:p,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=t.get("endValue"),o=i.intervalDuration(),n=i.getPrivate("baseInterval"),r=i.getPrivate("gridInterval",n);let l=i.getPrivate("min",0);if(l=h.round(new Date(l),r.timeUnit,r.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),null!=s&&null!=a){const t=Math.round(Math.round((s-l)/o))/2;t==Math.round(t)?e.setPrivate("visible",!0):e.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.get("index");let s=!1;l.isNumber(i)&&i%2!=0||(s=!0),e.setPrivate("visible",s)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=i.getPrivate("step");l.isNumber(s)&&l.isNumber(a)&&(d.round(s/a/2,5)==Math.round(s/a/2)?e.setPrivate("visible",!1):e.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(70),height:(0,a.aQ)(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,e/2),t.lineTo(s,e/2)}}});{const e=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,e),t.lineTo(0,e),t.lineTo(0,0)}}});{const e=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(50),height:(0,a.aQ)(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:(0,a.aQ)(80),height:(0,a.aQ)(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const e=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const e=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const e=i("Graphics",["rangegrip","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(2,.5),t.lineTo(2,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),(0,r.v)(e,"stroke",t,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:a.CI}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:a.CI}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:a.AQ}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:a.AQ})}}},3355:function(t,e,i){i.d(e,{L:function(){return c}});var s=i(8777),a=i(6245),o=i(1479),n=i(8943),r=i(5040),h=i(7652),l=i(751),d=i(5071),g=i(256);class c extends s.W{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(n.r.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(n.r.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(o.T.new(this._root,{themeTags:["selection","cursor"],layer:30})),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:a.AQ,height:a.AQ,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout((()=>{this.setPrivate("visible",!0)}),500)),this._disposers.push(this.lineX.events.on("positionchanged",(()=>{this._handleXLine()}))),this._disposers.push(this.lineY.events.on("positionchanged",(()=>{this._handleYLine()}))),this._disposers.push(this.lineX.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineX.events.on("blur",(()=>this._handleLineBlur()))),this._disposers.push(this.lineY.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineY.events.on("blur",(()=>this._handleLineBlur()))),h.supports("keyboardevents")&&this._disposers.push(h.addEventListener(document,"keydown",(t=>{this._handleLineMove(h.getEventKey(t),t.ctrlKey)})))}_setUpTouch(){const t=this.chart;t&&(t.plotContainer._display.cancelTouch="none"!=this.get("behavior"))}_handleXLine(){let t=this.lineX.x(),e=!0;(t<0||t>this.width())&&(e=!1),this.lineX.setPrivate("visible",e)}_handleYLine(){let t=this.lineY.y(),e=!0;(t<0||t>this.height())&&(e=!1),this.lineY.setPrivate("visible",e)}_handleLineMove(t,e){let i="";const s=this.chart;let a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(e&&(o=5),a){let e,s=a.get("renderer").get("inversed",!1);"ArrowRight"==t||"ArrowDown"==t?e=1:"ArrowLeft"==t||"ArrowUp"==t?e=-1:"Tab"==t&&(e=0),null!=e&&(s&&(e*=-1),this.set(i,a.nextPosition(e*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const t=this.get("xAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipX=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateXLine(e)}))))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const t=this.get("yAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipY=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateYLine(e)}))))}}}_handleSyncWith(){const t=this.chart;if(t){const e=this.get("syncWith"),i=[];e&&d.each(e,(t=>{const e=t.chart;e&&i.push(e)})),t._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const t=this.get("positionX"),e=this.get("positionY");null==t&&null==e?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).x,3);this._toX!=e&&(this.lineX.animate({key:"x",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toX=e)}_updateYLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).y,3);this._toY!=e&&(this.lineY.animate({key:"y",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toY=e)}_drawLines(){this.lineX.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,this.height())})),this.lineY.set("draw",(t=>{t.moveTo(0,0),t.lineTo(this.width(),0)}))}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(t){this.chart=t,this._handleSyncWith();const e=t.plotContainer;this.events.on("boundschanged",(()=>{this._disposers.push(this.setTimeout((()=>{this.updateCursor()}),50))})),h.supports("touchevents")&&(this._disposers.push(e.events.on("click",(t=>{h.isTouchEvent(t.originalEvent)&&this._handleMove(t)}))),this._setUpTouch()),this._disposers.push(e.events.on("pointerdown",(t=>{this._handleCursorDown(t)}))),this._disposers.push(e.events.on("globalpointerup",(t=>{this._handleCursorUp(t),t.native||this.isHidden()||this._handleMove(t)}))),this._disposers.push(e.events.on("globalpointermove",(t=>{(this.get("syncWith")||0!=g.keys(e._downPoints).length||t.native||!this.isHidden())&&(this._handleMove(t),Math.hypot(this._lastPoint2.x-t.point.x,this._lastPoint2.y-t.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=t.point))})));const i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(t){const e=this.chart;return!!e&&e.inPlot(t)}_handleCursorDown(t){if(2==t.originalEvent.button)return;const e=t.point;let i=this._display.toLocal(e);const s=this.chart;if(this.selection.set("draw",(()=>{})),s&&this._inPlot(i)){if(this._downPoint=i,"none"!=this.get("behavior")){this.selection.show();const e="selectstarted";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}let e=this._getPosition(i).x,s=this._getPosition(i).y;this.setPrivate("downPositionX",e),this.setPrivate("downPositionY",s)}}_handleCursorUp(t){if(this._downPoint){const e=this.get("behavior","none");if("none"!=e){"z"===e.charAt(0)&&this.selection.hide();const i=t.point;let s=this._display.toLocal(i);const a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let i=!1;if("zoomX"!==e&&"zoomXY"!==e&&"selectX"!==e&&"selectXY"!==e||Math.abs(s.x-a.x)>o&&(i=!0),"zoomY"!==e&&"zoomXY"!==e&&"selectY"!==e&&"selectXY"!==e||Math.abs(s.y-a.y)>o&&(i=!0),i){const e="selectended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}else{const e="selectcancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}}}}this._downPoint=void 0}_handleMove(t){if(this.getPrivate("visible")){const e=this.chart;if(e&&g.keys(e.plotContainer._downPoints).length>1)return void this.set("forceHidden",!0);this.set("forceHidden",!1);const i=t.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,t.originalEvent)}}_getPosition(t){return{x:t.x/this.width(),y:t.y/this.height()}}handleMove(t,e,i){t||(t=this._movePoint);const s=this.get("alwaysShow");if(!t)return void this.hide(0);this._movePoint=t;let a=this._display.toLocal(t),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=t,this.isHidden()&&(this.show(),"z"==this.get("behavior","").charAt(0)&&this.selection.set("draw",(()=>{})));let n=a.x,h=a.y,l=this._getPosition(a);this.setPrivate("point",a);let d=this.get("snapToSeries");this._downPoint&&(d=void 0);let g=this.get("positionX"),c=l.x;r.isNumber(g)&&(c=g);let u=this.get("positionY"),m=l.y;r.isNumber(u)&&(m=u),this.setPrivate("positionX",c),this.setPrivate("positionY",m);const p=this._getPoint(c,m);if(n=p.x,h=p.y,o.xAxes.each((t=>{t._handleCursorPosition(c,d),s&&t.handleCursorShow()})),o.yAxes.each((t=>{t._handleCursorPosition(m,d),s&&t.handleCursorShow()})),!e){o._handleCursorPosition();const e="cursormoved";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,point:t,originalEvent:i})}this._updateLines(n,h),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);const t="cursorhidden";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this._downPoint&&"none"!=this.get("behavior")&&this._updateSelection(a)}_getPoint(t,e){return{x:this.width()*t,y:this.height()*e}}_updateLines(t,e){this._tooltipX||this.lineX.set("x",t),this._tooltipY||this.lineY.set("y",e),this._drawLines()}_updateSelection(t){const e=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();t.x<0&&(t.x=0),t.x>s&&(t.x=s),t.y<0&&(t.y=0),t.y>a&&(t.y=a),e.set("draw",(e=>{const o=this._downPoint;o&&("zoomXY"===i||"selectXY"===i?(e.moveTo(o.x,o.y),e.lineTo(o.x,t.y),e.lineTo(t.x,t.y),e.lineTo(t.x,o.y),e.lineTo(o.x,o.y)):"zoomX"===i||"selectX"===i?(e.moveTo(o.x,0),e.lineTo(o.x,a),e.lineTo(t.x,a),e.lineTo(t.x,0),e.lineTo(o.x,0)):"zoomY"!==i&&"selectY"!==i||(e.moveTo(0,o.y),e.lineTo(s,o.y),e.lineTo(s,t.y),e.lineTo(0,t.y),e.lineTo(0,o.y)))}))}_onHide(){if(this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorHide()})),t.yAxes.each((t=>{t.handleCursorHide()})),t.series.each((t=>{t.handleCursorHide()})))}super._onHide()}_onShow(){if(!this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorShow()})),t.yAxes.each((t=>{t.handleCursorShow()})))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}c.className="XYCursor",c.classNames=s.W.classNames.concat([c.className])},6515:function(t,e,i){i.d(e,{R:function(){return g}});var s=i(9361),a=i(8777),o=i(6245),n=i(7144),r=i(7142),h=i(5071),l=i(5040),d=i(7652);class g extends s.w{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(a.W.new(this._root,{})),this.gridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.topGridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.bulletsContainer=this.children.push(a.W.new(this._root,{isMeasured:!1,width:o.AQ,height:o.AQ,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new n.aV,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(a.W.new(this._root,{themeTags:["axis","header"],position:"absolute",background:r.A.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)h.each(t.oldValues,(t=>{t.dispose()}));else if("push"===t.type)this._processAxisRange(t.newValue,["range"]);else if("setIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("insertIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("removeIndex"===t.type)this.disposeDataItem(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value,["range"])}})));const t=this.get("renderer");t&&(t.axis=this,t.processAxis()),this.children.push(t),this._createGhostLabel()}_createGhostLabel(){const t=this.get("renderer").makeLabel(new s.z(this,void 0,{}),[]);t.adapters.disable("text"),t.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),t.events.disable(),this.ghostLabel=t}_updateFinals(t,e){}zoom(t,e,i,s){if(this.get("zoomable",!0))if(this._updateFinals(t,e),this.get("start")!==t||this.get("end")!=e){let a=this._sAnimation,o=this._eAnimation;t>e&&([t,e]=[e,t]);let n=this.get("maxDeviation",.5)*Math.min(1,e-t);t<-n&&(t=-n),e>1+n&&(e=1+n);let r=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),h=r;l.isNumber(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),1===e&&0!==t&&(s=tthis.get("end",1)?"end":"start");let d=this.get("minZoomCount",0);const g=this.dataItems;g&&g.lengthe&&([t,e]=[e,t]),"start"===s?(c>0&&1/(e-t)r&&(e=t+1/r),e>1&&e-t<1/r&&(t=e-1/r)):(c>0&&1/(e-t)r&&(t=e-1/r),t<0&&e-t<1/r&&(e=t+1/r)),1/(e-t)>r&&(e=t+1/r),1/(e-t)>r&&(t=e-1/r),null!=c&&null!=d&&t==this.get("start")&&e==this.get("end")){const t=this.chart;t&&t._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==t||this.get("start")==t)&&(o&&o.playing&&o.to==e||this.get("end")==e))return;if(i>0){let s,a,o=this.get("interpolationEasing");if(this.get("start")!=t&&(s=this.animate({key:"start",to:t,duration:i,easing:o})),this.get("end")!=e&&(a=this.animate({key:"end",to:e,duration:i,easing:o})),this._sAnimation=s,this._eAnimation=a,s)return s;if(a)return a}else this.set("start",t),this.set("end",e),this.root.events.once("frameended",(()=>{this.markDirtyKey("start")}))}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(t,e){t.setRaw("isRange",!0),this._createAssets(t,e),this._rangesDirty=!0,this._prepareDataItem(t);const i=t.get("above"),s=this.topGridContainer,a=t.get("grid");i&&a&&s.children.moveValue(a);const o=t.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(t,e){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each((t=>{this._prepareDataItem(t)})),h.each(this._seriesAxisRanges,(t=>{this._prepareDataItem(t)}))}_prepareChildren(){super._prepareChildren();const t=this.ghostLabel;if(t&&(this.get("fixAxisSize")?t.set("visible",!0):t.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){const t=this.chart;t&&t._updateCursor();let e=this.get("start",0),i=this.get("end",1),s=this.get("maxDeviation",.5)*Math.min(1,i-e);if(e<-s){let t=e+s;e=-s,this.setRaw("start",e),this.isDirty("end")&&this.setRaw("end",i-t)}if(i>1+s){let t=i-1-s;i=1+s,this.setRaw("end",i),this.isDirty("start")&&this.setRaw("start",e-t)}}const e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){const t=this.get("tooltip");if(t){const i=e.get("themeTags");t.addTag("axis"),t.addTag(this.className.toLowerCase()),t._applyThemes(),i&&(t.set("themeTags",d.mergeTags(t.get("themeTags"),i)),t.label._applyThemes())}}}_updateTooltipBounds(){const t=this.get("tooltip");t&&this.get("renderer").updateTooltipBounds(t)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(t){this.chart=t,this.get("renderer").chart=t,t.gridContainer.children.push(this.gridContainer),t.topGridContainer.children.push(this.topGridContainer),t.axisHeadersContainer.children.push(this.axisHeader),this.on("start",(()=>{t._handleAxisSelection(this)})),this.on("end",(()=>{t._handleAxisSelection(this)})),t.plotContainer.onPrivate("width",(()=>{this.markDirtySize()})),t.plotContainer.onPrivate("height",(()=>{this.markDirtySize()})),t.processAxis(this)}hideDataItem(t){return this._toggleFHDataItem(t,!0),super.hideDataItem(t)}showDataItem(t){return this._toggleFHDataItem(t,!1),super.showDataItem(t)}_toggleFHDataItem(t,e){const i="forceHidden",s=t.get("label");s&&s.set(i,e);const a=t.get("grid");a&&a.set(i,e);const o=t.get("tick");o&&o.set(i,e);const n=t.get("axisFill");n&&n.set(i,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.set(i,e)}}_toggleDataItem(t,e){const i=t.get("label"),s="visible";i&&i.setPrivate(s,e);const a=t.get("grid");a&&a.setPrivate(s,e);const o=t.get("tick");o&&o.setPrivate(s,e);const n=t.get("axisFill");n&&n.setPrivate(s,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.setPrivate(s,e)}}_createAssets(t,e,i){var s,a,o;const n=this.get("renderer");let r="minor";const h=t.get("label");if(h){let a=h.get("themeTags"),o=!1;i?-1==(null==a?void 0:a.indexOf(r))&&(o=!0):-1!=(null==a?void 0:a.indexOf(r))&&(o=!0),o&&(null===(s=h.parent)||void 0===s||s.children.removeValue(h),n.makeLabel(t,e),h.dispose(),n.labels.removeValue(h))}else n.makeLabel(t,e);const l=t.get("grid");if(l){let s=l.get("themeTags"),o=!1;i?-1==(null==s?void 0:s.indexOf(r))&&(o=!0):-1!=(null==s?void 0:s.indexOf(r))&&(o=!0),o&&(null===(a=l.parent)||void 0===a||a.children.removeValue(l),n.makeGrid(t,e),l.dispose(),n.grid.removeValue(l))}else n.makeGrid(t,e);const d=t.get("tick");if(d){let s=!1,a=d.get("themeTags");i?-1==(null==a?void 0:a.indexOf(r))&&(s=!0):-1!=(null==a?void 0:a.indexOf(r))&&(s=!0),s&&(null===(o=d.parent)||void 0===o||o.children.removeValue(d),n.makeTick(t,e),d.dispose(),n.ticks.removeValue(d))}else n.makeTick(t,e);i||t.get("axisFill")?i&&!t.get("axisFill")&&this.get("minorAxisFillsEnabled")&&n.makeAxisFill(t,e):n.makeAxisFill(t,e),this._processBullet(t)}_processBullet(t){let e=t.get("bullet"),i=this.get("bullet");if(e||!i||t.get("isRange")||(e=i(this._root,this,t)),e){e.axis=this;const i=e.get("sprite");i&&(i._setDataItem(t),t.setRaw("bullet",e),i.parent||this.bulletsContainer.children.push(i))}}_afterChanged(){super._afterChanged();const t=this.chart;t&&(t._updateChartLayout(),t.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(t){super.disposeDataItem(t);const e=this.get("renderer"),i=t.get("label");i&&(e.labels.removeValue(i),i.dispose());const s=t.get("tick");s&&(e.ticks.removeValue(s),s.dispose());const a=t.get("grid");a&&(e.grid.removeValue(a),a.dispose());const o=t.get("axisFill");o&&(e.axisFills.removeValue(o),o.dispose());const n=t.get("bullet");n&&n.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const t=this.ghostLabel;if(t){if(!t.isHidden()){const e=t.localBounds(),i=Math.ceil(e.right-e.left);let s=t.get("text");h.each(this.dataItems,(t=>{const e=t.get("label");if(e&&!e.isHidden()){const t=e.localBounds();Math.ceil(t.right-t.left)>i&&(s=e.text._getText())}})),t.set("text",s)}let e=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(t,e+.5*(i-e))}}_handleCursorPosition(t,e){t=this.get("renderer").toAxisPosition(t),this._cursorPosition=t,this._snapToSeries=e,this.updateTooltip()}updateTooltip(){const t=this._snapToSeries;let e=this._cursorPosition;const i=this.get("tooltip"),s=this.get("renderer");l.isNumber(e)&&(h.each(this.series,(i=>{if(i.get("baseAxis")===this){const s=this.getSeriesItem(i,e,this.get("tooltipLocation"));t&&-1!=t.indexOf(i)?(i.updateLegendMarker(s),i.updateLegendValue(s),i._settings.tooltipDataItem=s):(i.showDataItemTooltip(s),i.setRaw("tooltipDataItem",s))}})),this.get("snapTooltip")&&(e=this.roundAxisPosition(e,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",e),i&&(s.updateTooltipBounds(i),l.isNaN(e)?i.hide(0):(this._updateTooltipText(i,e),s.positionTooltip(i,e),ethis.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}roundAxisPosition(t,e){return t}_handleSeriesRemoved(){}handleCursorShow(){let t=this.get("tooltip");t&&t.show()}handleCursorHide(){let t=this.get("tooltip");t&&t.hide()}processSeriesDataItem(t,e){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(t){const e=this.get("renderer");return e.toAxisPosition(t/e.axisLength())}toAxisPosition(t){return this.get("renderer").toAxisPosition(t)}toGlobalPosition(t){return this.get("renderer").toGlobalPosition(t)}fixPosition(t){return this.get("renderer").fixPosition(t)}shouldGap(t,e,i,s){return!1}createAxisRange(t){return this.axisRanges.push(t)}_groupSeriesData(t){}getCellWidthPosition(){return.05}}g.className="Axis",g.classNames=s.w.classNames.concat([g.className])},2586:function(t,e,i){i.d(e,{_:function(){return o}});var s=i(6331),a=i(256);class o extends s.JH{_beforeChanged(){super._beforeChanged();const t=this.get("sprite");if(this.isDirty("sprite")&&t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t)),this.isDirty("location")){const e=t.dataItem;this.axis&&t&&e&&this.axis._prepareDataItem(e)}}_dispose(){const t=this.axis;t&&a.each(t._bullets,((e,i)=>{i.uid==this.uid&&delete t._bullets[e]})),super._dispose()}}o.className="AxisBullet",o.classNames=s.JH.classNames.concat([o.className])},6293:function(t,e,i){i.d(e,{k:function(){return a}});var s=i(962);class a extends s._{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabel",a.classNames=s._.classNames.concat([a.className])},9084:function(t,e,i){i.d(e,{p:function(){return a}});var s=i(815);class a extends s.x{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabelRadial",a.classNames=s.x.classNames.concat([a.className])},6275:function(t,e,i){i.d(e,{Y:function(){return d}});var s=i(1479),a=i(5769),o=i(7144),n=i(4714),r=i(8943),h=i(6293),l=i(7652);class d extends s.T{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new o.o(a.YS.new({}),(()=>n.T._new(this._root,{themeTags:l.mergeTags(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template])))),this.grid=this.addDisposer(new o.o(a.YS.new({}),(()=>r.r._new(this._root,{themeTags:l.mergeTags(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template])))),this.axisFills=this.addDisposer(new o.o(a.YS.new({}),(()=>s.T._new(this._root,{themeTags:l.mergeTags(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template])))),this.labels=this.addDisposer(new o.o(a.YS.new({}),(()=>h.k._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template]))))}makeTick(t,e){const i=this.ticks.make();return i._setDataItem(t),t.setRaw("tick",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(t,e){const i=this.grid.make();return i._setDataItem(t),t.setRaw("grid",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(t,e){const i=this.axisFills.make();return i._setDataItem(t),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),t.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(t,e){const i=this.labels.make();return i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),t.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(t),t.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const t=this.thumb;t&&(this._disposers.push(t.events.on("pointerdown",(t=>{this._handleThumbDown(t)}))),this._disposers.push(t.events.on("globalpointerup",(t=>{this._handleThumbUp(t)}))),this._disposers.push(t.events.on("globalpointermove",(t=>{this._handleThumbMove(t)}))))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",(()=>{this.axis.markDirtySize()}))}_changed(){if(super._changed(),this.isDirty("pan")){const t=this.thumb;if(t){const e=this.axis.labelsContainer,i=this.get("pan");"zoom"==i?e.children.push(t):"none"==i&&e.children.removeValue(t)}}}_handleThumbDown(t){this._thumbDownPoint=this.toLocal(t.point);const e=this.axis;this._downStart=e.get("start"),this._downEnd=e.get("end")}_handleThumbUp(t){this._thumbDownPoint=void 0}_handleThumbMove(t){const e=this._thumbDownPoint;if(e){const i=this.toLocal(t.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,e)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(t,e){return 0}positionToCoordinate(t){return this._inversed?(this._end-t)*this._axisLength:(t-this._start)*this._axisLength}updateTooltipBounds(t){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t*=i-e,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,t/(i-e)}fixPosition(t){return this.get("inversed")?1-t:t}_updateLC(){}toggleVisibility(t,e,i,s){let a=this.axis;const o=a.get("start",0),n=a.get("end",1);eo+(n-o)*(s+1e-4)?t.setPrivate("visible",!1):t.setPrivate("visible",!0)}_positionTooltip(t,e){const i=this.chart;i&&(t.set("pointTo",this._display.toGlobal(e)),i.inPlot(e)||t.hide())}processAxis(){}}d.className="AxisRenderer",d.classNames=s.T.classNames.concat([d.className])},6284:function(t,e,i){i.d(e,{n:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{width:a.AQ,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const t=this.grid.template;t.set("height",a.AQ),t.set("width",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)}))}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("x",-1e3));const s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){const i=this.chart,o=e.children;if(this.get(a)?e.addTag(a):e.removeTag(a),i){if(this.get(s)){const t=i.topAxesContainer.children;-1==t.indexOf(e)&&t.insertIndex(0,e),e.addTag(s),o.moveValue(this)}else{const t=i.bottomAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(s),o.moveValue(this,0)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(t,e){return(e.x-t.x)/this.width()}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,(t=t/(i-e)*this._lc)+this._ls}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerWidth();this._lc=this.axisLength()/i,this._ls=(t.x()-e.get("paddingLeft",0))/i}}_updatePositions(){const t=this.axis,e=t.x()-r.relativeToValue(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0);t.gridContainer.set("x",e),t.topGridContainer.set("x",e),t.bulletsContainer.set("y",this.y());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginLeft",0),o=t.x()-a;const n=t.parent;n&&(o-=n.get("paddingLeft",0)),s.children.length>0?(a=t.axisHeader.width(),t.set("marginLeft",a+1)):s.set("width",a),s.setAll({x:o,y:-1,height:e.height()+2})}}processAxis(){super.processAxis();const t=this.axis;null==t.get("width")&&t.set("width",a.AQ);const e=this._root.verticalLayout;t.set("layout",e),t.labelsContainer.set("width",a.AQ),t.axisHeader.setAll({layout:e})}axisLength(){return this.axis.width()}positionToPoint(t){return{x:this.positionToCoordinate(t),y:0}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e));let r=t.get("length",0);const h=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("y",a.AQ),h||(r*=-1)):(t.set("y",0),h&&(r*=-1)),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,r)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateLabel(t,e,i,s){if(t){let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(e)||(e=0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?r?(t.set("position","absolute"),t.set("y",0)):(t.set("position","relative"),t.set("y",a.AQ)):r?(t.set("y",0),t.set("position","absolute")):(t.set("y",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=-1;if(this.get("opposite")&&(h=1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("y",t.y()+t.height()*h)}else s.set("y",0);this.axis._bullets[o]=t,s.set("x",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.height(),a=this.width();ia||i<0||(t.moveTo(e,0),t.lineTo(i,0),t.lineTo(i,s),t.lineTo(e,s),t.lineTo(e,0))}))}positionTooltip(t,e){this._positionTooltip(t,{x:this.positionToCoordinate(e),y:0})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,n=this.axisLength(),h=i,l="up";this.get("opposite")?e?(l="up",o=s.y,h=i):(l="down",o=s.y-i,h=i):e?(l="down",o=s.y-i,h=i):(l="up",o=s.y,h=i);const d={left:a,right:a+n,top:o,bottom:o+h},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}}h.className="AxisRendererX",h.classNames=s.Y.classNames.concat([h.className])},7909:function(t,e,i){i.d(e,{j:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{height:a.AQ,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const t=this.grid.template;t.set("width",a.AQ),t.set("height",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())}))}_getPan(t,e){return(t.y-e.y)/this.height()}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("y",-1e3));const s=this.thumb,a="opposite",o="inside",n=this.chart;if(this.isDirty(a)||this.isDirty(o)){const i=e.children;if(this.get(o)?e.addTag(o):e.removeTag(o),n){if(this.get(a)){const t=n.rightAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e,0),e.addTag(a),i.moveValue(this,0)}else{const t=n.leftAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(a),i.moveValue(this)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}const r=e.labelsContainer.width();n&&(this.get(a)?s.set("centerX",0):s.set("centerX",r)),s.setPrivate("width",r)}processAxis(){super.processAxis();const t=this.axis;null==t.get("height")&&t.set("height",a.AQ);const e=this._root.horizontalLayout;t.set("layout",e),t.labelsContainer.set("height",a.AQ),t.axisHeader.set("layout",e)}_updatePositions(){const t=this.axis,e=t.y()-r.relativeToValue(t.get("centerY",0),t.height());t.gridContainer.set("y",e),t.topGridContainer.set("y",e),t.bulletsContainer.set("x",this.x());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginTop",0);s.children.length>0?(a=t.axisHeader.height(),t.set("marginTop",a+1)):s.set("height",a),s.setAll({y:t.y()-a,x:-1,width:e.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(t){return{x:0,y:this.positionToCoordinate(t)}}updateLabel(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a);const o=this.get("opposite"),r=t.get("inside",this.get("inside",!1));o?(t.set("x",0),r?t.set("position","absolute"):t.set("position","relative")):r?(t.set("x",0),t.set("position","absolute")):(t.set("x",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e));let o=t.get("length",0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("x",0),r&&(o*=-1)):r||(o*=-1),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(o,0)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=1;if(this.get("opposite")&&(h=-1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("x",t.x()+t.width()*h)}else s.set("x",0);this.axis._bullets[o]=t,s.set("y",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.width(),a=this.height();ia||i<0||(t.moveTo(0,e),t.lineTo(s,e),t.lineTo(s,i),t.lineTo(0,i),t.lineTo(0,e))}))}positionToCoordinate(t){return this._inversed?(t-this._start)*this._axisLength:(this._end-t)*this._axisLength}positionTooltip(t,e){this._positionTooltip(t,{x:0,y:this.positionToCoordinate(e)})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,n=this.axisLength(),h=i,l="right";this.get("opposite")?e?(l="right",o=s.x-i,h=i):(l="left",o=s.x,h=i):e?(l="left",o=s.x,h=i):(l="right",o=s.x-i,h=i);const d={left:o,right:o+h,top:a,bottom:a+n},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerHeight();this._lc=this.axisLength()/i,this._ls=t.y()/i}}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?e+t:i-t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t-=e:t=i-t,(t=t/(i-e)*this._lc)+this._ls}fixPosition(t){return this.get("inversed")?t:1-t}}h.className="AxisRendererY",h.classNames=s.Y.classNames.concat([h.className])},4714:function(t,e,i){i.d(e,{T:function(){return a}});var s=i(2438);class a extends s.d{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisTick",a.classNames=s.d.classNames.concat([a.className])},7497:function(t,e,i){i.d(e,{$:function(){return d}});var s=i(6515),a=i(2132),o=i(7261),n=i(5071),r=i(5040),h=i(751),l=i(7652);class d extends s.R{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();const t=this.dataItems.length;t>0&&this.setPrivateRaw("maxZoomFactor",t),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),t)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",t),1))}_prepareChildren(){super._prepareChildren();const t=this.dataItems.length;let e=0;this._valuesDirty&&(this._itemMap={},n.each(this.dataItems,(t=>{t.setRaw("index",e),this._itemMap[t.get("category")]=t,e++})),this.setPrivateRaw("maxZoomFactor",t));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){const t=this.dataItems.length;if(t>1){let e=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0);const n=this._sAnimation,r=this._eAnimation;let h=this.get("start",0),l=!1;n&&!n.stopped&&(h=Number(n.to),l=!0);let d=this.get("end",1);if(r&&!r.stopped&&(d=Number(r.to),l=!0),l){const t=this._getIndices(h,d);a=t.startIndex,o=t.endIndex}for(let t=a;t=i));s++);if(e=0&&(e+=this.dataItems[t].get("finalCellSize",1),a=t,!(e>=i));t--);this.zoomToIndexes(a,o)}else if(s>=e){let t=s;for(let i=o-1;i>=a;i--)if(t-=this.dataItems[i].get("finalCellSize",1),t<=e){o=i+1;break}this.zoomToIndexes(a,o)}}}_handleRangeChange(){n.each(this.series,(t=>{let e=this.dataItems[this.startIndex()].get("category"),i=this.dataItems[this.endIndex()-1].get("category"),s=t.get("baseAxis"),a=t.get("xAxis"),r=t.get("yAxis");if(a instanceof d&&r instanceof d)t._markDirtyAxes();else if(s===this){let h,l,g=r;if(a===s?(t.get("categoryXField")&&(h="categoryX"),t.get("openCategoryXField")&&(l="openCategoryX")):r===s&&(t.get("categoryYField")&&(h="categoryY"),t.get("openCategoryYField")&&(l="openCategoryY"),g=a),g instanceof o.m&&(h||l)){let c,u;function m(t,e,i,s,a,o){let n,r=e.categoryToIndex(a);for(;!n&&r>=0&&r=0;e--){let o=t.dataItems[e];if(i&&o.get(i)===a){n=o;break}if(s&&o.get(s)===a){n=o;break}}else for(let e=0,o=t.dataItems.length;e{null!=y.get(t)&&(x=!0)})),n.each(t.__valueYShowFields,(t=>{null!=y.get(t)&&(x=!0)})),x)break}t.setPrivate("outOfSelection",!x)}t._markDirtyAxes()}}))}_prepareAxisItems(){var t;const e=this.get("renderer"),i=this.dataItems.length;let s=this.startIndex();s>0&&s--;let a=this.endIndex();a=s&&(t=s-1,e=1),r.isNumber(e)||(e=.5),!r.isNumber(t))return 0;let o=this.get("startLocation",0),h=this.get("endLocation",1);if(this.get("cellSizeField")){let s=i?"finalCellSize":"cellSize";const r=this.dataItems;let l=0;n.each(this.dataItems,(t=>{l+=t.get(s,1)})),l-=o*r[0].get(s,1),l-=(1-h)*r[r.length-1].get(s,1);let d=0;for(let e=0;e{const e=t.get("cellSize",1);s.push(e),i+=e}));let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=t*i+a,h=0;for(let t=0;t0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(e),a=t.dataItems[s],o=this.dataItems[s],n=o.get("category");if(a&&o&&a.get(i)===n)return a;for(let e=0,s=t.dataItems.length;e{r+=t.get(o,1)})),r-=this.get("startLocation",0)*h[0].get(o,1),r-=(1-this.get("endLocation",1))*h[h.length-1].get(o,1);let l=0;for(let e=0;eMath.round(t*r)){s=e;break}for(let t=s+1;t=Math.round(e*r)){a=t+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(t,e,i){let s=this.dataItems.length;this.get("cellSizeField")?(t=Math.min(Math.max(t,0),s),e=Math.max(Math.min(e,s),1),this.setPrivateRaw("startIndex",t),this.setPrivateRaw("endIndex",e),this.zoom(this.indexToPosition(t,0,!0),this.indexToPosition(e,0,!0),i)):this.zoom(t/s,e/s,i)}zoomToCategories(t,e,i){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(t){null==t&&(t=1),"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);const e=this.getPrivate("tooltipPosition",0),i=h.fitToRange(this.axisPositionToIndex(e)+t,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}}d.className="CategoryAxis",d.classNames=s.R.classNames.concat([d.className])},5638:function(t,e,i){i.d(e,{S:function(){return c}});var s=i(9361),a=i(7261),o=i(5040),n=i(751),r=i(3540),h=i(5071),l=i(256),d=i(7652),g=i(1926);class c extends a.m{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=d.mergeTags(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",(()=>{this._setBaseInterval(this.get("baseInterval"))}))}_setBaseInterval(t){this.setPrivateRaw("baseInterval",t),this._baseDuration=g.getIntervalDuration(t)}_fixZoomFactor(){const t=this.get("maxZoomFactor");null!=t&&t!=1/0?this.setPrivateRaw("maxZoomFactor",t):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){this._fixZoomFactor();const t=this.getPrivate("groupInterval");if(t?this._setBaseInterval(t):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let t=this.get("groupInterval");t&&(this.setRaw("groupIntervals",[t]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))h.each(this.series,(t=>{this._groupSeriesData(t)})),this._handleRangeChange();else{let t=this.get("baseInterval"),e=t.timeUnit+t.count;h.each(this.series,(t=>{t.setDataSet(e),t.resetGrouping()})),this._setBaseInterval(t),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(t){if(this.get("groupData")&&!t.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let e=[],i=this.baseMainDuration(),a=this.get("groupIntervals");h.each(a,(t=>{g.getIntervalDuration(t)>i&&e.push(t)})),t._dataSets={};const n=this.getPrivate("name")+this.get("renderer").getPrivate("letter");let r;const d=t.get("baseAxis");t.get("xAxis")===d?r=t._valueYFields:t.get("yAxis")===d&&(r=t._valueXFields);let c=t._mainDataItems,u=this.get("baseInterval"),m=u.timeUnit+u.count;t._dataSets[m]=c;const p=t.get("groupDataCallback");let _=t.get("groupDataWithOriginals",!1);p&&(_=!0),h.each(e,(e=>{let i,a=-1/0,d=e.timeUnit+e.count;t._dataSets[d]=[];let u={},m={},x={},v={};h.each(r,(e=>{u[e]=0,m[e]=0,x[e]=t.get(e+"Grouped"),v[e]=e+"Working"}));let y,f,b=g.getDuration(e.timeUnit);c[0]&&(y=c[0].get(n)),h.each(c,(c=>{let D,P=c.get(n),w=g.roun(P,e.timeUnit,e.count,this._root,y);a{let e=c.get(t);o.isNumber(e)?(i.setRaw(t,e),i.setRaw(v[t],e),m[t]=1,u[t]=e):(u[t]=0,m[t]=0)})),_&&i.set("originals",[c]),p&&f&&p(f,e),f=i):(h.each(r,(t=>{let e=x[t],s=c.get(t);if(null!=s){let a=i.get(t);switch(e){case"close":i.setRaw(t,s);break;case"sum":i.setRaw(t,a+s);break;case"open":break;case"low":sa&&i.setRaw(t,s);break;case"average":m[t]++,u[t]+=s;let e=u[t]/m[t];i.setRaw(t,e);break;case"extreme":Math.abs(s)>Math.abs(a)&&i.setRaw(t,s)}i.setRaw(v[t],i.get(t));let o=l.copy(c.dataContext);o[n]=w,i.dataContext=o}})),_&&i.get("originals").push(c)),a=w})),p&&f&&p(f,e)})),t._dataSetId&&t.setDataSet(t._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",(()=>{this.markDirtySize()}))}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(t){let e=this.get("baseInterval"),i=g.chooseInterval(0,t,this.get("groupCount",1/0),this.get("groupIntervals"));return g.getIntervalDuration(i){e.get("baseAxis")===this&&e.setDataSet(t)})),this.markDirtyExtremes(),this._root.events.once("frameended",(()=>{this._root.events.once("frameended",(()=>{const t="groupintervalchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}))}))}}h.each(this.series,(i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),a=h.getFirstSortedIndex(i.dataItems,(e=>r.qu(e.get(s),t))).index;a>0&&(a-=1),e+=this._baseDuration*(1-this.get("endLocation",1));let o=h.getSortedIndex(i.dataItems,(t=>r.qu(t.get(s),e))).index,n=o;n>1&&n--;const l=i.dataItems[a],d=i.dataItems[n];let g,c;l&&(c=l.get(s)),d&&(g=d.get(s));let u=!1;null!=g&&null!=c&&(ge)&&(u=!0),i.setPrivate("outOfSelection",u),i.setPrivate("startIndex",a);let m=i._adjustStartIndex(a);i.getPrivate("adjustedStartIndex")!==m&&(i.setPrivate("adjustedStartIndex",m),this.root.events.once("frameended",(()=>{i._markDirtyPrivateKey("adjustedStartIndex")}))),i.setPrivate("endIndex",o)}}))}}_adjustMinMax(t,e,i,s){return{min:t,max:e,step:(e-t)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(t,e){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=t,this._intervalMax[s]=e}_getM(t){return"day"==t||"month"==t||"year"==t?1.05:1.01}_getMinorInterval(t){var e;let i,s=t.count,a=t.timeUnit;return s>1&&(10==s||15==s?s=5:12==s?s=2:6==s?s=1:30==s?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),"week"==a&&(i="week"!=(null===(e=this.getPrivate("baseInterval"))||void 0===e?void 0:e.timeUnit)?{timeUnit:"day",count:1}:{timeUnit:"week",count:1}),"year"==a&&1==s&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<1264896e5&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){const e=this._root,i=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),n=this.get("renderer"),r=this.getPrivate("baseInterval");let l=i,d=0;const c=this.get("gridIntervals");let u=g.chooseInterval(0,a-i,n.gridCount(),c);g.getIntervalDuration(u){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_updateFinals(t,e){this.setPrivateRaw("selectionMinFinal",this.positionToValue(t)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(e))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(t,e){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return g.getIntervalDuration(this.get("baseInterval"))}processSeriesDataItem(t,e){const i=this.getPrivate("baseInterval");t.open||(t.open={}),t.close||(t.close={}),h.each(e,(e=>{let s=t.get(e);if(o.isNumber(s)){let a=t.open[e],o=t.close[e];if(s>=a&&s<=o);else{const n=i.timeUnit,r=i.count;a=g.roun(s,n,r,this._root),o=a+g.getDuration(n,r*this._getM(n)),o=g.roun(o,n,1,this._root),t.open[e]=a,t.close[e]=o}this._updateDates(a,t.component)}}))}_handleSizeDirty(){}getDataItemPositionX(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}roundAxisPosition(t,e){let i=this.positionToValue(t);i-=(e-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!o.isNaN(i)){const t=this._root.locale.firstDayOfWeek,a=s.timeUnit,o=this._root.utc,n=this._root.timezone,r=s.count;i=g.roun(i,a,r,this._root,this.getPrivate("min",0));let h=g.getDateIntervalDuration(s,new Date(i),t,o,n);return n&&(i=g.roun(i+.05*this._baseDuration,a,r,this._root,this.getPrivate("min",0)),h=g.getDateIntervalDuration(s,new Date(i+h*e),t,o,n)),this.valueToPosition(i+h*e)}return NaN}getTooltipText(t,e){if(null!=this.getPrivate("min")){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(t);if(o.isNumber(s)){let t=new Date(s),a=this.getPrivate("baseInterval"),o=g.getDateIntervalDuration(a,t,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return!1!==e&&(t=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*o)),this._root.dateFormatter.format(t,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(t,e,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);null==i&&(i=.5),o-=(i-.5)*this._baseDuration;const n=h.getSortedIndex(t.dataItems,(t=>{let e=0;return t.open&&(e=t.open[a]),r.qu(e,o)}));if(s||t.get("snapTooltip")){let e=t.dataItems[n.index-1],i=t.dataItems[n.index];if(e&&i&&e.open&&i.close){let t=e.open[a],s=i.close[a];if(Math.abs(o-t)>Math.abs(o-s))return i}if(e)return e;if(i)return i}else{const e=t.dataItems[n.index-1];if(e&&e.open&&e.close){let t=e.open[a],i=e.close[a];if(o>=t&&o<=i)return e}}}shouldGap(t,e,i,s){const a=t.get(s);return e.get(s)-a>this._baseDuration*i}zoomToDates(t,e,i){this.zoomToValues(t.getTime(),e.getTime(),i)}zoomToValues(t,e,i){const s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(null!=this.getPrivate("min")&&null!=this.getPrivate("max"))if(this.get("groupData")){const s=this.getGroupInterval(e-t),a=this.get("baseInterval");let o=this.getIntervalMin(a),n=this.getIntervalMax(a)-1;n=g.roun(n,s.timeUnit,s.count,this.root),n+=this._getM(s.timeUnit)*g.getIntervalDuration(s),n=g.roun(n,s.timeUnit,s.count,this.root);let r=g.roun(o,s.timeUnit,s.count,this.root),h=g.roun(n,s.timeUnit,s.count,this.root),l=(t-r)/(h-r),d=(e-r)/(h-r);this.zoom(l,d,i)}else this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}positionToDate(t){return new Date(this.positionToValue(t))}dateToPosition(t){return this.valueToPosition(t.getTime())}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return o.isNumber(t)&&o.isNumber(e)?this._intervalDuration/(t-e):.05}nextPosition(t){null==t&&(t=1);let e=this.get("tooltipLocation",.5)*this._baseDuration;"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0));const s=this.getPrivate("baseInterval");let a=this._nextTime(i,t,s),o=this.getPrivate("selectionMin",0),r=this.getPrivate("selectionMax",0),h=g.roun(o,s.timeUnit,s.count,this._root),l=g.roun(r,s.timeUnit,s.count,this._root);return a+=e,a=n.fitToRange(a,h+e,l-e),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(t,e,i){return g.roun(t+e*this._baseDuration,i.timeUnit,i.count,this._root)}}c.className="DateAxis",c.classNames=a.m.classNames.concat([c.className])},7109:function(t,e,i){i.d(e,{L:function(){return a}});var s=i(6691);class a extends s.Y{constructor(){super(...arguments),this._tickPoints=[]}}a.className="EditableAxisLabel",a.classNames=s.Y.classNames.concat([a.className])},8701:function(t,e,i){i.d(e,{J:function(){return d}});var s=i(5638),a=i(9361),o=i(5071),n=i(3540),r=i(1926),h=i(5040),l=i(751);class d extends s.S{constructor(){super(...arguments),this._frequency=1,this._m=0,this._dates=[]}_afterNew(){this.valueFields.push("date"),this.addTag("gapless"),super._afterNew()}_getDates(){return this._customDates?this._customDates:this._dates}_updateDates(t,e){if(!e.get("ignoreMinMax")){const e=this._getDates(),i=o.getSortedIndex(e,(e=>n.qu(e,t)));i.found||o.insertIndex(e,i.index,t)}}_updateAllDates(){if(!this._customDates){const t=this._dates;t.length=0,o.each(this.series,(t=>{let e="valueX";t.get("yAxis")==this&&(e="valueY"),o.each(t.dataItems,(i=>{let s=i.get(e);h.isNumber(s)&&i.open&&this._updateDates(i.open[e],t)}))}));const e=this.get("extraMax",0),i=this.get("extraMin",0);let s=t.length;const a=this.getPrivate("baseInterval"),n=a.count,l=a.timeUnit;if(e>0){const i=s*e;let a=t[s-1];if(h.isNumber(a))for(let e=s-1;e0){const e=s*i;let a=t[0];if(h.isNumber(a))for(let i=0;in.qu(e,t)));let h=r.index;if(r.found)return(h-i)/a;{h>0&&(h-=1);let s=e[h];const o=e[h+1];if(o){let e=o;Math.abs(e-t)n.qu(e,t)));let s=i.index;return i.found||s>0&&(s-=1),s}positionToValue(t){const e=this.get("startLocation",0),i=this.get("endLocation",1),s=this._getDates();let a=Math.round(s.length-e-(1-i)),o=t*a,n=Math.floor(o);return n<0&&(n=0),n>a-1&&(n=a-1),s[n]+(o-n+e)*this._baseDuration}_fixZoomFactor(){this.setPrivateRaw("maxZoomFactor",this._getDates().length-this.get("startLocation",0)-(1-this.get("endLocation",1)))}zoomToDates(t,e,i){const s=this._getDates(),a=s.length;let r=o.getSortedIndex(s,(e=>n.qu(e,t.getTime()))),h=s[Math.min(r.index,a-1)];r=o.getSortedIndex(s,(t=>n.qu(t,e.getTime())));let l=s[r.index];r.index>=a&&(l=s[a-1]+this._baseDuration),this.zoomToValues(h,l,i)}zoomToValues(t,e,i){const s=this.getPrivate("min",0),a=this.getPrivate("max",0);t=l.fitToRange(t,s,a),e=l.fitToRange(e,s,a),this.zoom(this.valueToPosition(t),this.valueToPosition(e),i)}_prepareAxisItems(){let t=this.getPrivate("selectionMin",0),e=this.getPrivate("selectionMax",0);if(h.isNumber(t)&&h.isNumber(e)){this._seriesValuesDirty&&(this._seriesValuesDirty=!1,this._updateAllDates());const i=this._root,s=i.utc,n=i.timezone,l=this._getDates(),d=this.get("renderer"),g=l.length,c=this._baseDuration;let u=this.valueToIndex(t);u>0&&u--;let m=this.valueToIndex(e);m{this._toggleDataItem(t,!1)})),o.each(this.minorDataItems,(t=>{this._toggleDataItem(t,!1)}));let x=e-t-((e-t)/c-(m-u))*c,v=r.chooseInterval(0,x,p,this.get("gridIntervals"));const y=this.getPrivate("baseInterval");let f=r.getIntervalDuration(v);f0){let t=0;this._m=0;let e=w-10*f;const g=r.getNextUnit(b);if(I){let t=l[C[0]];this._addMinorGrid(t-f,t,k,I)}let c=d.axisLength()/d.gridCount()*.5;o.each(C,(o=>{var u;let m;this.dataItems.length1||"week"==v.timeUnit){let e=r.roun(p,t,1,i)+r.getDuration(t,this._getM(t)),s=this.valueToIndex(e);if(e=l[s],e==p){let t=l[s+1];t?e=t:e+=k}m.setRaw("labelEndValue",e)}w=1}if(this._prepareDataItem(m,w),P&&M&&"X"==d.getPrivate("letter")){let t=M.get("label");if(t&&P.x()-t.x(){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_pickWorse(t,e,i){const s=i.timeUnit,a=t.get("value",0),o=e.get("value",0);return"hour"==s&&new Date(a).getDate()!=new Date(o).getDate()?t:e}_addMinorGrid(t,e,i,s){const n=this.get("minorDateFormats",this.get("dateFormats")),h=s.timeUnit;let l=t+r.getDuration(h,this._getM(h));l=r.roun(l,h,1,this._root);let d=e-.5*i,g=this._getIndexes(l,d,s,l);const c=this._getDates();o.each(g,(t=>{let e;this.minorDataItems.length=x-2*_&&o.move(a,e),u=0),t+=p,t=r.roun(t,n,1,g);else{if(i=t){e=s;break}o.move(a,e),t+=_,t=r.roun(t,n,h,g)}if(t==m&&(t+=_+p,t=r.roun(t,n,h,g)),t==m)break;m=t}return a}_hasDate(t){return o.getSortedIndex(this._getDates(),(e=>n.HO(e,t))).found}_nextTime(t,e,i){let s=l.fitToRange(this.valueToIndex(t)+e,0,this._dates.length-1);return this._dates[s]}}d.className="GaplessDateAxis",d.classNames=s.S.classNames.concat([d.className])},8943:function(t,e,i){i.d(e,{r:function(){return a}});var s=i(1479);class a extends s.T{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}a.className="Grid",a.classNames=s.T.classNames.concat([a.className])},7261:function(t,e,i){i.d(e,{m:function(){return d}});var s=i(9361),a=i(6515),o=i(7449),n=i(5040),r=i(5071),h=i(751),l=i(7652);class d extends a.R{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var t;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let t=this.get("syncWithAxis");t&&(this._syncDp=new o.FV([t.onPrivate("selectionMinFinal",(()=>{this._dirtySelectionExtremes=!0})),t.onPrivate("selectionMaxFinal",(()=>{this._dirtySelectionExtremes=!0}))]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,null===(t=this.ghostLabel)||void 0===t||t.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){const t=this.chart;let e=!1;if(t){const i=this.get("renderer").getPrivate("letter");"Y"==i?t.xAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)})):"X"==i&&t.yAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)}))}e&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,this.getPrivate("selectionMinFinal")==this.getPrivate("selectionMin")&&this.getPrivate("selectionMaxFinal")==this.getPrivate("selectionMax")||(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(t){const e=this.get("numberFormat"),i=this.getNumberFormatter();let s="";return s=e?i.format(t,e):i.format(t,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(n.isNumber(t)&&n.isNumber(e)){const e=this.get("logarithmic"),i=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+i;let l=a-i,d=1,g=t;if(e){if(l=this._minLogAdjusted,l2&&(l=Math.pow(10,Math.log(g)*Math.LOG10E-50))}const c=this.get("renderer"),u=c.get("minorLabelsEnabled"),m=c.get("minorGridEnabled",u);let p=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));const _=Math.round(i/p);let x=2;h.round(_/5,10)%1==0&&(x=5),h.round(_/10,10)%1==0&&(x=10);let v=i/x,y=0,f=0,b=-1/0;const D=this.get("renderer").gridCount();for(;l2){const t=Math.max(1,D),e=Math.max(1,Math.ceil(d/t)),i=Math.log(g)*Math.LOG10E+(y+1)*e-50;o=Math.pow(10,i)}else o+=i;else o+=i;if(m){let t=l+v;for(e&&(d>2&&(v=this._adjustMinMax(l,o,10).step),t=l+v);t{t.inited&&t._markDirtyAxes()})),this._updateGhost()}}_prepareDataItem(t,e){let i=this.get("renderer"),s=t.get("value"),a=t.get("endValue"),o=this.valueToPosition(s),r=o,h=this.valueToPosition(s+this.getPrivate("step"));n.isNumber(a)&&(r=this.valueToPosition(a),h=r),t.get("isRange")&&null==a&&(h=o);let l=r,d=t.get("labelEndValue");null!=d&&(l=this.valueToPosition(d)),i.updateLabel(t.get("label"),o,l,e);const g=t.get("grid");if(i.updateGrid(g,o,r),g&&(s==this.get("baseValue",0)?(g.addTag("base"),g._applyThemes()):g.hasTag("base")&&(g.removeTag("base"),g._applyThemes())),i.updateTick(t.get("tick"),o,l,e),i.updateFill(t.get("axisFill"),o,h),this._processBullet(t),i.updateBullet(t.get("bullet"),o,r),!t.get("isRange")){const e=this.get("fillRule");e&&e(t)}}_handleRangeChange(){let t=this.positionToValue(this.get("start",0)),e=this.positionToValue(this.get("end",1));const i=this.get("renderer").gridCount();let s=this._adjustMinMax(t,e,i,!0),a=l.decimalPlaces(s.step);this.setPrivateRaw("stepDecimalPlaces",a),t=h.round(t,a),e=h.round(e,a),s=this._adjustMinMax(t,e,i,!0);let o=s.step;t=s.min,e=s.max,this.getPrivate("selectionMin")===t&&this.getPrivate("selectionMax")===e&&this.getPrivate("step")===o||(this.setPrivateRaw("selectionMin",t),this.setPrivateRaw("selectionMax",e),this.setPrivateRaw("step",o))}positionToValue(t){const e=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(t*(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)+Math.log(e)*Math.LOG10E)/Math.LOG10E):t*(i-e)+e}valueToPosition(t){const e=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}valueToFinalPosition(t){const e=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}getX(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getY(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionX(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemX")?a*s+t.component.getStackedXValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemY")?a*s+t.component.getStackedYValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const t=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),e=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let i=this.get("baseValue",0);return ie&&(i=e),i}cellEndValue(t){return t}fixSmallStep(t){return 1+t===1?(t*=2,this.fixSmallStep(t)):t}_fixMin(t){return t}_fixMax(t){return t}_calculateTotals(){if(this.get("calculateTotals")){let t=this.series[0];if(t){let e=t.startIndex();if(t.dataItems.length>0){e>0&&e--;let i,s,a=t.endIndex();a{if(!i.get("excludeFromTotal")){let r=i.dataItems[t];if(r){let t=r.get(o)*i.get(s);n.isNaN(t)||(e+=t,a+=Math.abs(t))}}})),r.each(this.series,(r=>{if(!r.get("excludeFromTotal")){let h=r.dataItems[t];if(h){let t=h.get(o)*r.get(s);if(!n.isNaN(t)){h.set(i+"Total",a),h.set(i+"Sum",e);let s=t/a*100;0==a&&(s=0),h.set(i+"TotalPercent",s)}}}}))}}}}}_getSelectionMinMax(){const t=this.getPrivate("minFinal"),e=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max");let a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2));const l=this.get("renderer").gridCount(),d=this.get("strictMinMaxSelection");let g=this.get("strictMinMax");if(n.isNumber(t)&&n.isNumber(e)){let c=e,u=t;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,i;const s=t.getPrivate("outOfSelection");if(t.get("xAxis")===this){if(!s){let s=t.getPrivate("minX"),a=t.getPrivate("maxX");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinX",s),i=t.getPrivate("selectionMaxX",a)}}else if(t.get("yAxis")===this&&!s){let s=t.getPrivate("minY"),a=t.getPrivate("maxY");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinY",s),i=t.getPrivate("selectionMaxY",a)}t.isHidden()||t.isShowing()||(n.isNumber(e)&&(c=Math.min(c,e)),n.isNumber(i)&&(u=Math.max(u,i)))}})),this.axisRanges.each((t=>{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(c=Math.min(c,e),u=Math.max(u,e)),e=t.get("endValue"),null!=e&&(c=Math.min(c,e),u=Math.max(u,e))}})),c>u&&([c,u]=[u,c]),n.isNumber(i)?c=g?i:t:g&&n.isNumber(this._minReal)&&(c=this._minReal),n.isNumber(s)?u=g?s:e:g&&n.isNumber(this._maxReal)&&(u=this._maxReal),c===u){let e=c;if(c-=this._deltaMinMax,u+=this._deltaMinMax,ce&&(x.max=e),c=x.min,u=x.max),g&&(n.isNumber(i)&&(c=Math.max(c,i)),n.isNumber(s)&&(u=Math.min(u,s))),d&&(c=m-(p-m)*a,u=p+(p-m)*o),g){c=n.isNumber(i)?i:m,u=n.isNumber(s)?s:p,u-c<=1e-8&&(c-=this._deltaMinMax,u+=this._deltaMinMax);let t=u-c;c-=t*a,u+=t*o}this.get("logarithmic")&&(c<=0&&(c=m*(1-Math.min(a,.99))),ce&&(u=e));let y=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),f=h.round(this.valueToFinalPosition(c),y),b=h.round(this.valueToFinalPosition(u),y);this.setPrivateRaw("selectionMinFinal",c),this.setPrivateRaw("selectionMaxFinal",u),this.setPrivateRaw("selectionStepFinal",x.step),this.zoom(f,b)}}_getMinMax(){let t=this.get("min"),e=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2)));let l=1/0;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,a;if(t.get("xAxis")===this?(e=t.getPrivate("minX"),a=t.getPrivate("maxX")):t.get("yAxis")===this&&(e=t.getPrivate("minY"),a=t.getPrivate("maxY")),n.isNumber(e)&&n.isNumber(a)){i=Math.min(i,e),s=Math.max(s,a);let t=a-e;t<=0&&(t=Math.abs(a/100)),t{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(i=Math.min(i,e),s=Math.max(s,e)),e=t.get("endValue"),null!=e&&(i=Math.min(i,e),s=Math.max(s,e))}})),this.get("logarithmic")){let t=this.get("treatZeroAs");n.isNumber(t)&&i<=0&&(i=t),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(0===i&&0===s&&(s=.9,i=-.9),n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e),i===1/0||s===-1/0)return this.setPrivate("minFinal",void 0),void this.setPrivate("maxFinal",void 0);i>s&&([i,s]=[s,i]);const d=i,g=s;let c=this.adapters.fold("min",i),u=this.adapters.fold("max",s);this._minRealLog=i,n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!=0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&d>=0&&(i=0),s>0&&g<=0&&(s=0)),this._minReal=i,this._maxReal=s;let m=this.get("strictMinMax"),p=this.get("strictMinMaxSelection",!1);p&&(m=p);let _=m;n.isNumber(e)&&(_=!0);let x=this.get("renderer").gridCount(),v=this._adjustMinMax(i,s,x,_);if(i=v.min,s=v.max,v=this._adjustMinMax(i,s,x,!0),i=v.min,s=v.max,m){i=n.isNumber(t)?t:this._minReal,s=n.isNumber(e)?e:this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let r=s-i;i-=r*a,s+=r*o}c=this.adapters.fold("min",i),u=this.adapters.fold("max",s),n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),l==1/0&&(l=s-i);let y=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=h.round(i,y),s=h.round(s,y);const f=this.get("syncWithAxis");if(f&&(v=this._syncAxes(i,s,v.step,f.getPrivate("minFinal",f.getPrivate("min",0)),f.getPrivate("maxFinal",f.getPrivate("max",1)),f.getPrivate("step",1)),i=v.min,s=v.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/l*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=d*(1-Math.min(a,.99)))),n.isNumber(i)&&n.isNumber(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);const t=this.get("interpolationDuration",0),e=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:t,easing:e}),this.animatePrivate({key:"max",to:s,duration:t,easing:e})}}_fixZoomFactor(){}_getDelta(t){let e=Math.log(Math.abs(t))*Math.LOG10E,i=Math.pow(10,Math.floor(e));i/=10,this._deltaMinMax=i}_saveMinMax(t,e){}_adjustMinMax(t,e,i,s){i<=1&&(i=1),i=Math.round(i);let a=t,o=e,r=e-t;0===r&&(r=Math.abs(e));let l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l));d/=10;let g=d;s&&(g=0),s?(t=Math.floor(t/d)*d,e=Math.ceil(e/d)*d):(t=Math.ceil(t/d)*d-g,e=Math.floor(e/d)*d+g),t<0&&a>=0&&(t=0),e>0&&o<=0&&(e=0),l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l)),d/=100;let c=Math.ceil(r/i/d)*d,u=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),m=Math.ceil(c/u);m>5?m=10:m<=5&&m>2&&(m=5),c=Math.ceil(c/(u*m))*u*m;let p=this.get("maxPrecision");if(n.isNumber(p)){let t=h.ceil(c,p);pa&&(t-=c),c=this.fixSmallStep(c),{min:t,max:e,step:c}}getTooltipText(t,e){const i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,n=h.round(this.positionToValue(t),o);return i?s.format(n,i):s.format(n,void 0,o)}getSeriesItem(t,e){let i,s,a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);if(r.each(t.dataItems,((t,e)=>{const n=Math.abs(t.get(a)-o);(void 0===i||n500&&(s=!0),s)t=n,e=h,i=d;else{a/3==Math.round(a/3)?(n=t-o*a,t>=0&&n<0&&(n=0)):(h=e+o*a,h<=0&&h>0&&(h=0));let i=this._adjustMinMax(n,h,l,!0);n=i.min,h=i.max,d=i.step}}}return{min:t,max:e,step:i}}_checkSync(t,e,i,s){let a=(e-t)/i;for(let t=1;t{if(t instanceof l){const e=t.get("stacked");e&&0==h&&n++,!e&&t.get("clustered")&&n++}t===this&&(o=n-1),h++})),this.get("clustered")||(o=0,n=1),0===n&&(n=1,o=0);const d="cellStartLocation",g="cellEndLocation",c=this._xRenderer.get(d,0),u=this._xRenderer.get(g,1),m=this._yRenderer.get(d,0),p=this._yRenderer.get(g,1);if(this._aLocationX0=c+o/n*(u-c),this._aLocationX1=c+(o+1)/n*(u-c),this._aLocationY0=m+o/n*(p-m),this._aLocationY1=m+(o+1)/n*(p-m),e.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){const t=this.dataItems.length;let a=Math.max(0,this.startIndex()-2),o=Math.min(this.endIndex()+2,t-1);for(let t=0;t0&&a>0)for(let e=t-1;e>=0;e--){let t=this.dataItems[e];if(null!=t.get("valueX")&&null!=t.get("valueY")){n=t;break}}break}this._toggleColumn(e,!1)}this._beforeColumnsDraw();let r=0;i.isType("CategoryAxis")&&e.isType("CategoryAxis")?r=2:e===s?r=0:i===s&&(r=1);for(let t=a;t<=o;t++){let e=this.dataItems[t];this._updateGraphics(e,n,r),null!=e.get("valueX")&&null!=e.get("valueY")&&(n=e)}this._afterColumnsDraw();for(let e=o+1;e{const a=e.get(s,this.get(s));t.set(s,a),i.set(s,a)}))}}let s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.dispose()})),s=[],t.setRaw("rangeGraphics",s),this.axisRanges.each((e=>{const i=e.container,a=this._makeGraphics(e.columns,t);s&&s.push(a),a.setPrivate("list",e.columns),i.children.push(a)}))}}createAxisRange(t){return r.each(this.dataItems,(t=>{const e=t.get("graphics");e&&(e.dispose(),t.set("graphics",void 0))})),super.createAxisRange(t)}_updateGraphics(t,e,i){let s=t.get("graphics");const a=this._xField,n=this._yField,l=t.get(a),d=t.get(n),g=this.get("exactLocationX",!1);if(null!=l&&null!=d){const l=this._xOpenField,d=this._yOpenField,c=this.get("locationX",t.get("locationX",.5)),u=this.get("locationY",t.get("locationY",.5)),m=this.get("openLocationX",t.get("openLocationX",c)),p=this.get("openLocationY",t.get("openLocationY",u)),_=s.get("width"),x=s.get("height"),v=this.get("stacked"),y=this.get("xAxis"),f=this.get("yAxis"),b=y.get("start"),D=y.get("end"),P=f.get("start"),w=f.get("end");let T,A,I,M,k=this.get("vcy",1),C=this.get("vcx",1),S=!1,Y=!1;if(0==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C,g),A=y.getDataItemPositionX(t,a,i,C,g),I=f.getDataItemPositionY(t,n,u,k),this._yOpenField!==this._yField)M=f.getDataItemPositionY(t,d,p,k);else if(v){let e=t.get("stackToItemY");M=e?f.getDataItemPositionY(e,n,p,e.component.get("vcy")):f.basePosition()}else M=f.basePosition();t.setRaw("point",{x:T+(A-T)/2,y:I}),Y=!0}else if(1==i){let e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5;if(x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}if(I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),A=y.getDataItemPositionX(t,a,c,C,g),this._xOpenField!==this._xField)T=y.getDataItemPositionX(t,l,m,C,g);else if(v){let e=t.get("stackToItemX");T=e?y.getDataItemPositionX(e,a,m,e.component.get("vcx"),g):y.basePosition()}else T=y.basePosition();S=!0,t.setRaw("point",{x:A,y:I+(M-I)/2})}else if(2==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C),A=y.getDataItemPositionX(t,a,i,C),e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5,x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),t.setRaw("point",{x:T+(A-T)/2,y:I+(M-I)/2})}this._applyGraphicsStates(t,e),this._updateSeriesGraphics(t,s,T,A,I,M,S,Y),TD&&A>D||I=w&&M>w||h.isNaN(T)||h.isNaN(I)?this._toggleColumn(t,!1):this._toggleColumn(t,!0);let F=t.get("rangeGraphics");F&&r.each(F,(e=>{this._updateSeriesGraphics(t,e,T,A,I,M,S,Y)}))}else this._toggleColumn(t,!1)}_updateSeriesGraphics(t,e,i,s,a,o,n,r){const l=e.get("width"),d=e.get("height"),g=e.get("maxWidth"),c=e.get("maxHeight"),u=this.getPoint(i,a),m=this.getPoint(s,o),p=t.get("point");if(p){const t=this.getPoint(p.x,p.y);p.x=t.x+this._x,p.y=t.y+this._y}if(i=u.x,s=m.x,a=u.y,o=m.y,h.isNumber(l)){const t=(s-i-l)/2;i+=t,s-=t}if(h.isNumber(g)&&g{this._toggleColumn(t,!1)}))}_applyGraphicsStates(t,e){const i=t.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),n=i.states.lookup("riseFromPrevious");if(s||o||a||n){const i=this.get("xAxis"),r=this.get("yAxis"),l=this.get("baseAxis");let d,g,c;l===i&&r.isType("ValueAxis")?(d=t.get(this._yOpenField),g=t.get(this._yField),c=e.get(this._yField)):l===r&&i.isType("ValueAxis")&&(d=t.get(this._xOpenField),g=t.get(this._xField),c=e.get(this._xField)),h.isNumber(d)&&h.isNumber(g)&&(g{const e=t.getPrivate("list");e&&e.removeValue(t),t.dispose()}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.hide(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.hide(e))})),yield Promise.all(s)}))}_toggleColumn(t,e){const i=t.get("graphics");i&&i.setPrivate("visible",e);const s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.setPrivate("visible",e)}));const a=t.bullets;a&&r.each(a,(t=>{t.setPrivate("hidden",!e)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.show(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.show(e))})),yield Promise.all(s)}))}updateLegendMarker(t){let e=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!t){const e=this.dataItems[this.endIndex()-1];e&&(t=e)}if(e){let i=this.columns.template;if(t){let e=t.get("graphics");e&&(i=e)}const s=e.get("markerRectangle");if(s&&!e.get("itemContainer").get("disabled")){const t=s.states.lookup("default");r.each(n.u,(e=>{const a=i.get(e,this.get(e));s.set(e,a),t.set(e,a)}))}}}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget"))return super._getTooltipTarget(t);return t.get("graphics")||this}}l.className="BaseColumnSeries",l.classNames=a.o.classNames.concat([l.className])},2976:function(t,e,i){i.d(e,{j:function(){return a}});var s=i(3497);class a extends s.c{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();const t=this._display;t.moveTo(this.get("lowX0",0),this.get("lowY0",0)),t.lineTo(this.get("lowX1",0),this.get("lowY1",0)),t.moveTo(this.get("highX0",0),this.get("highY0",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0))}}a.className="Candlestick",a.classNames=s.c.classNames.concat([a.className])},2312:function(t,e,i){i.d(e,{$:function(){return l}});var s=i(62),a=i(2976),o=i(5769),n=i(7144),r=i(7652),h=i(5071);class l extends s.d{constructor(){super(...arguments),this.columns=this.addDisposer(new n.o(o.YS.new({themeTags:["autocolor"]}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_updateGraphics(t,e,i){super._updateGraphics(t,e,i);const s=this.getRaw("xAxis"),a=this.getRaw("yAxis");let o,n,r,h,l,d,g,c,u,m=this.get("vcy",1),p=this.get("vcx",1),_=this.get("locationX",t.get("locationX",.5)),x=this.get("locationY",t.get("locationY",.5)),v=this.get("openLocationX",t.get("openLocationX",_)),y=this.get("openLocationY",t.get("openLocationY",x));if(0==i){let e=a.getDataItemPositionY(t,this._yOpenField,1,m),i=a.getDataItemPositionY(t,this._yField,1,m);h=a.getDataItemPositionY(t,this._yLowField,1,m),c=a.getDataItemPositionY(t,this._yHighField,1,m),g=Math.max(e,i),r=Math.min(e,i);let x=this._aLocationX0+v-.5,y=this._aLocationX1+_-.5;o=s.getDataItemPositionX(t,this._xField,x+(y-x)/2,p),n=o,l=o,d=o,u="vertical"}else{let e=s.getDataItemPositionX(t,this._xOpenField,1,p),i=s.getDataItemPositionX(t,this._xField,1,p);n=s.getDataItemPositionX(t,this._xLowField,1,p),d=s.getDataItemPositionX(t,this._xHighField,1,p),l=Math.max(e,i),o=Math.min(e,i);let _=this._aLocationY0+y-.5,v=this._aLocationY1+x-.5;r=a.getDataItemPositionY(t,this._yField,_+(v-_)/2,m),h=r,g=r,c=r,u="horizontal"}this._updateCandleGraphics(t,o,n,r,h,l,d,g,c,u)}_updateCandleGraphics(t,e,i,s,a,o,n,r,l,d){let g=t.get("graphics");if(g){let c=this.getPoint(e,s),u=this.getPoint(i,a),m=this.getPoint(o,r),p=this.getPoint(n,l);if(this.get("turboMode")){const t=this.allColumnsData[this.allColumnsData.length-1];t.lowX0=c.x,t.lowY0=c.y,t.lowX1=u.x,t.lowY1=u.y,t.highX0=m.x,t.highY0=m.y,t.highX1=p.x,t.highY1=p.y}else{let e=g.x(),i=g.y();g.set("lowX0",c.x-e),g.set("lowY0",c.y-i),g.set("lowX1",u.x-e),g.set("lowY1",u.y-i),g.set("highX0",m.x-e),g.set("highY0",m.y-i),g.set("highX1",p.x-e),g.set("highY1",p.y-i),g.set("orientation",d);let s=t.get("rangeGraphics");s&&h.each(s,(t=>{t.set("lowX0",c.x-e),t.set("lowY0",c.y-i),t.set("lowX1",u.x-e),t.set("lowY1",u.y-i),t.set("highX0",m.x-e),t.set("highY0",m.y-i),t.set("highX1",p.x-e),t.set("highY1",p.y-i),t.set("orientation",d)}))}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),h.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity,g=e.lowX0,c=e.lowY0,u=e.lowX1,m=e.lowY1,p=e.highX0,_=e.highY0,x=e.highX1,v=e.highY1;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.moveTo(g,c),t.lineTo(u,m),t.moveTo(p,_),t.lineTo(x,v),t.endStroke(),t.endFill()}))}))}_processAxisRange(t){super._processAxisRange(t),t.columns=new n.o(o.YS.new({}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(t.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,t.columns.template])))}}l.className="CandlestickSeries",l.classNames=s.d.classNames.concat([l.className])},62:function(t,e,i){i.d(e,{d:function(){return d}});var s=i(757),a=i(5769),o=i(7144),n=i(3497),r=i(1479),h=i(7652),l=i(5071);class d extends s.d{constructor(){super(...arguments),this.allColumns=this.children.push(r.T.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(t.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,t.columns.template])))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),l.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.endStroke(),t.endFill()}))}))}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(t,e,i,s,a,o,n,r){if(this.get("turboMode")){e.virtualParent=this.chart,e.parent&&(this.mainContainer.children.removeValue(e),e._parent=void 0);const n=e.get("stroke"),r=e.get("fillOpacity",1),h=e.get("strokeOpacity",1),l=e.get("strokeWidth",1),d=e.get("fill"),g=this.getPoint(i,a),c=this.getPoint(s,o),u=t.get("point");if(u){const t=this.getPoint(u.x,u.y);u.x=t.x+this._x,u.y=t.y+this._y}i=g.x,s=c.x,a=g.y,o=c.y,t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:n,fill:d,strokeWidth:l,strokeOpacity:h,fillOpacity:r})}else e.parent||this.mainContainer.children.push(e),super._updateSeriesGraphics(t,e,i,s,a,o,n,r)}}d.className="ColumnSeries",d.classNames=s.d.classNames.concat([d.className])},2338:function(t,e,i){i.d(e,{e:function(){return p}});var s=i(4604),a=i(1479),o=i(774),n=i(3794),r=i(5769),h=i(7144),l=i(1112),d=i(9361),g=i(7142),c=i(5040),u=i(5071),m=i(7652);class p extends s.o{constructor(){super(...arguments),this._strokeGenerator=(0,o.Z)(),this._fillGenerator=(0,n.Z)(),this.strokes=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template])))),this.fills=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template])))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0((function(t){return t[3]})),this._fillGenerator.x0((function(t){return t[2]})),this._fillGenerator.y1((function(t){return t[1]})),this._fillGenerator.x1((function(t){return t[0]})),super._afterNew()}makeStroke(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}makeFill(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let t=this.get("xAxis"),e=this.get("yAxis");if(this.isDirty("stroke")){const t=this.get("stroke");this.strokes.template.set("stroke",t);const e=this._legendStroke;e&&e.states.lookup("default").set("stroke",t)}if(this.isDirty("fill")){const t=this.get("fill");this.fills.template.set("fill",t);const e=this._legendFill;e&&e.states.lookup("default").set("fill",t)}if(this.isDirty("fillPattern")){const t=this.get("fillPattern");this.fills.template.set("fillPattern",t);const e=this._legendFill;e&&e.states.lookup("default").set("fillPattern",t)}if(this.isDirty("curveFactory")){const t=this.get("curveFactory");t&&(this._strokeGenerator.curve(t),this._fillGenerator.curve(t))}if(t.inited&&e.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){const t=this.dataItems;this.fills.each((t=>{t.setPrivate("visible",!1)})),this.strokes.each((t=>{t.setPrivate("visible",!1)})),this.axisRanges.each((t=>{let e=t.fills;e&&e.each((t=>{t.setPrivate("visible",!1)}));let i=t.strokes;i&&i.each((t=>{t.setPrivate("visible",!1)}))}));let e=this.startIndex(),i=this.strokes.template.get("templateField"),s=this.fills.template.get("templateField"),a=!0,o=!0;i&&(a=!1),s&&(o=!1);for(let n=e-1;n>=0;n--){let r=t[n],h=!0,l=r.dataContext;if(i&&l[i]&&(a=!0),s&&l[s]&&(o=!0),u.each(this._valueFields,(t=>{c.isNumber(r.get(t))||(h=!1)})),h&&a&&o){e=n;break}}let n=t.length,r=this.endIndex();if(r{c.isNumber(i.get(t))||(s=!1)})),s){r=e+1;break}}}if(e>0&&e--,this._endIndex=r,this._clearGraphics(),this._sindex=0,this._dindex=e,1==n)this._startSegment(0);else for(;this._dindex{t.fills.clear(),t.strokes.clear()}))}_startSegment(t){const e=this.dataItems;let i=this._endIndex,s=i;const a=this.get("autoGapCount"),o=this.get("connect"),n=this.makeFill(this.fills),h=this._fillTemplate,l=this.fills.template;h&&h!=l&&(n.template=h),n.setPrivate("visible",!0);const d=this.makeStroke(this.strokes),g=this._strokeTemplate;g&&g!=this.strokes.template&&(d.template=g),d.setPrivate("visible",!0);let c=this.get("xAxis"),u=this.get("yAxis"),m=this.get("baseAxis"),p=this.get("vcx",1),_=this.get("vcy",1),x=this._xField,v=this._yField,y=this._xOpenField,f=this._yOpenField;const b=this.get("openValueXField"),D=this.get("openValueYField");b||(y=this._xField),D||(f=this._yField);const P=this.get("stacked"),w=c.basePosition(),T=u.basePosition();let A;A=m===u?this._yField:this._xField;const I=[];let M=[];I.push(M);const k=this.strokes.template.get("templateField"),C=this.fills.template.get("templateField");let S=this.get("locationX",.5),Y=this.get("locationY",.5),F=this.get("openLocationX",S),X=this.get("openLocationY",Y);const L=this.get("minDistance",0);let N,R=this.fills.template.get("visible");this.axisRanges.length>0&&(R=!0);let V=!1;(P||b||D)&&(V=!0);const G={points:M,segments:I,stacked:P,getOpen:V,basePosX:w,basePosY:T,fillVisible:R,xField:x,yField:v,xOpenField:y,yOpenField:f,vcx:p,vcy:_,baseAxis:m,xAxis:c,yAxis:u,locationX:S,locationY:Y,openLocationX:F,openLocationY:X,minDistance:L};let O=this._strokeTemplate,E=this._fillTemplate;for(N=t;Nt){s=N;break}O=e,d.template=e}}if(C){let e=i.dataContext[C];if(e){if(e instanceof r.YS||(e=r.YS.new(e)),this._fillTemplate=e,N>t){s=N;break}E=e,n.template=e}}if(!o){let t=e[N+1];t&&m.shouldGap(i,t,a,A)&&(M=[],I.push(M),G.points=M)}}n.setRaw("userData",[t,N]),d.setRaw("userData",[t,N]),N===i&&this._endLine(M,I[0][0]),d&&this._drawStroke(d,I),n&&this._drawFill(n,I),this.axisRanges.each((e=>{const i=e.container,s=e.fills,a=this.makeFill(s);i&&i.children.push(a),a.setPrivate("visible",!0),this._drawFill(a,I);const o=e.strokes,n=this.makeStroke(o);i&&i.children.push(n),O&&O!=this.strokes.template&&(n.template=O),E&&E!=this.fills.template&&(a.template=E),n.setPrivate("visible",!0),this._drawStroke(n,I),a.setRaw("userData",[t,N]),n.setRaw("userData",[t,N])}))}_getPoints(t,e){let i=e.points,s=t.get("locationX",e.locationX),a=t.get("locationY",e.locationY);const o=this.get("exactLocationX",!1),n=this.get("exactLocationY",!1);let r=e.xAxis.getDataItemPositionX(t,e.xField,s,e.vcx,o),h=e.yAxis.getDataItemPositionY(t,e.yField,a,e.vcy,n);if(this._shouldInclude(r)){const s=this.getPoint(r,h),a=[s.x,s.y];if(s.x+=this._x,s.y+=this._y,t.set("point",s),e.fillVisible){let i=r,s=h;if(e.baseAxis===e.xAxis?s=e.basePosY:e.baseAxis===e.yAxis&&(i=e.basePosX),e.getOpen){let a=t.get(e.xOpenField),r=t.get(e.yOpenField);if(null!=a&&null!=r){let a=t.get("openLocationX",e.openLocationX),r=t.get("openLocationY",e.openLocationY);if(e.stacked){let h=t.get("stackToItemX"),l=t.get("stackToItemY");h?(i=e.xAxis.getDataItemPositionX(h,e.xField,a,h.component.get("vcx"),o),c.isNaN(i)&&(i=e.basePosX)):i=e.yAxis===e.baseAxis?e.basePosX:e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),l?(s=e.yAxis.getDataItemPositionY(l,e.yField,r,l.component.get("vcy"),n),c.isNaN(s)&&(s=e.basePosY)):s=e.xAxis===e.baseAxis?e.basePosY:e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),s=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}}let l=this.getPoint(i,s);a[2]=l.x,a[3]=l.y}if(e.minDistance>0){const t=a[0],s=a[1],o=a[2],n=a[3],r=this._previousPoint,h=r[0],l=r[1],d=r[2],g=r[3];(Math.hypot(t-h,s-l)>e.minDistance||o&&n&&Math.hypot(o-d,n-g)>e.minDistance)&&(i.push(a),this._previousPoint=a)}else i.push(a)}}_endLine(t,e){}_drawStroke(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._strokeGenerator.context(t),this._strokeGenerator(e)}))}))}_drawFill(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._fillGenerator.context(t),this._fillGenerator(e)}))}))}_processAxisRange(t){super._processAxisRange(t),t.fills=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,t.fills.template]))),t.strokes=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,t.strokes.template])))}createLegendMarker(t){const e=this.get("legendDataItem");if(e){const t=e.get("marker"),i=e.get("markerRectangle");i&&i.setPrivate("visible",!1),t.set("background",g.A.new(t._root,{fillOpacity:0,fill:(0,l.$_)(0)}));const s=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=s;const o=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;const n=this._root.interfaceColors.get("disabled");if(s.states.create("disabled",{fill:n,stroke:n}),o.states.create("disabled",{fill:n,stroke:n}),this.bullets.length>0){const e=this.bullets.getIndex(0);if(e){const i=e(t._root,this,new d.z(this,{legend:!0},{}));if(i){const e=i.get("sprite");e instanceof a.T&&e.states.create("disabled",{fill:n,stroke:n}),e&&(e.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),t.children.push(e),e.setAll({x:t.width()/2,y:t.height()/2}),t.events.on("boundschanged",(()=>{e.setAll({x:t.width()/2,y:t.height()/2})})))}}}}}}p.className="LineSeries",p.classNames=s.o.classNames.concat([p.className])},4604:function(t,e,i){i.d(e,{o:function(){return u}});var s=i(7582),a=i(9361),o=i(3399),n=i(7144),r=i(8777),h=i(1479),l=i(5040),d=i(256),g=i(5071),c=i(7652);class u extends o.F{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(r.W.new(this._root,{})),this.axisRanges=new n.aV,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new a.z(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");const t=this.get("xAxis");t&&(this._xRenderer=t.get("renderer"));const e=this.get("yAxis");e&&(this._yRenderer=e.get("renderer")),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxisRange(t)}));else if("push"===t.type)this._processAxisRange(t.newValue);else if("setIndex"===t.type)this._processAxisRange(t.newValue);else if("insertIndex"===t.type)this._processAxisRange(t.newValue);else if("removeIndex"===t.type)this._removeAxisRange(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value)}}))),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this.onPrivate("endIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this._makeFieldNames()}_processAxisRange(t){const e=r.W.new(this._root,{});t.container=e,this.children.push(e),t.series=this;const i=t.axisDataItem;i.setRaw("isRange",!0);const s=i.component;if(s){s._processAxisRange(i,["range","series"]);const t=i.get("bullet");if(t){const e=t.get("sprite");e&&e.setPrivate("visible",!1)}const a=i.get("axisFill");a&&e.set("mask",a),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),d.each(this._dataSets,((t,e)=>{g.each(e,(t=>{t.dispose()})),e.length=0}))}_removeAxisRange(t){const e=t.axisDataItem,i=e.component;e.dispose(),g.remove(i._seriesAxisRanges,e);const s=t.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&g.each(this.valueXFields,(t=>{if(this.get(t+"Field")){this._valueXFields.push(t);let e=this.get(t+"Show");this.__valueXShowFields.push(e),-1!=e.indexOf("Working")?this._valueXShowFields.push(e.split("Working")[0]):this._valueXShowFields.push(e)}})),this.valueYFields&&g.each(this.valueYFields,(t=>{if(this.get(t+"Field")){this._valueYFields.push(t);let e=this.get(t+"Show");this.__valueYShowFields.push(e),-1!=e.indexOf("Working")?this._valueYShowFields.push(e.split("Working")[0]):this._valueYShowFields.push(e)}}))}_dispose(){super._dispose(),this._bullets={};const t=this.chart;t&&t.series.removeValue(this),g.removeFirst(this.get("xAxis").series,this),g.removeFirst(this.get("yAxis").series,this)}_min(t,e){let i=(a=e,null==(s=this.getPrivate(t))?a:null==a?s:aa?s:a);var s,a;this.setPrivate(t,i)}_shouldMakeBullet(t){const e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!e.inited||!i.inited)return!1;const a=this.get("minBulletDistance",0);if(a>0){let t=this.startIndex(),o=this.endIndex()-t;if(e==s){if(this._xRenderer.axisLength()/o
{g.each(this._valueXShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedXValue(i,t)),this._min("minX",e),this._max("maxX",e))})),g.each(this._valueYShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedYValue(i,t)),this._min("minY",e),this._max("maxY",e))})),t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)})),t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&t.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&e.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(t._groupSeriesData(this),e._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let s=this.startIndex(),a=this.endIndex(),o=this.get("minBulletDistance",0);if(o>0&&i&&(i.get("renderer").axisLength()/(a-s)>o?this._showBullets=!0:this._showBullets=!1),(this._psi!=s||this._pei!=a||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const o=this.get("vcx",1),n=this.get("vcy",1),r=this.get("stacked",!1),h=this.getPrivate("outOfSelection");if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),h)e.markDirtySelectionExtremes();else for(let t=s;t{i.open=void 0,i.close=void 0,t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)}))}_makeRangeMask(){if(this.axisRanges.length>0){let t=this._mainContainerMask;null==t&&(t=this.children.push(h.T.new(this._root,{})),this._mainContainerMask=t,t.set("draw",((e,i)=>{const s=this.parent;if(s){const t=this._root.container.width(),a=this._root.container.height();e.moveTo(-t,-a),e.lineTo(-t,2*a),e.lineTo(2*t,2*a),e.lineTo(2*t,-a),e.lineTo(-t,-a),this.axisRanges.each((t=>{const a=t.axisDataItem.get("axisFill");if(s&&a){let t=a.get("draw");t&&t(e,i)}}))}this.mainContainer._display.mask=t._display}))),t.markDirty(),t._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const t=this.chart;if(t){const e=t.series.indexOf(this);if(this._couldStackTo=[],e>0){let i;for(let s=e-1;s>=0&&(i=t.series.getIndex(s),i.get("xAxis")!==this.get("xAxis")||i.get("yAxis")!==this.get("yAxis")||i.className!==this.className||(this._couldStackTo.push(i),i.get("stacked")));s--);}this._stackDataItems()}}_unstack(){d.each(this._reallyStackedTo,((t,e)=>{delete e._stackedSeries[this.uid]})),this._reallyStackedTo={},g.each(this.dataItems,(t=>{t.setRaw("stackToItemY",void 0),t.setRaw("stackToItemX",void 0)}))}_handleRemoved(){const t=this.get("xAxis");t&&t._handleSeriesRemoved();const e=this.get("yAxis");e&&e._handleSeriesRemoved()}_stackDataItems(){const t=this.get("baseAxis"),e=this.get("xAxis"),i=this.get("yAxis");let s,a;t===e?(s="valueY",a="stackToItemY"):t===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,n=0;const r=this.get("stackToNegative");this._reallyStackedTo={},g.each(this.dataItems,(t=>{for(let e=0;e=0&&n>=0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}if(d<0&&n<0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}else if(l.isNumber(d)&&l.isNumber(n)){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}n++}))}processXSelectionDataItem(t,e,i){g.each(this.__valueXShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedXValueWorking(t,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*e))}))}processYSelectionDataItem(t,e,i){g.each(this.__valueYShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedYValueWorking(t,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*e))}))}getStackedYValueWorking(t,e){const i=t.get("stackToItemY");if(i){const t=i.component;return i.get(e,0)*t.get("vcy",1)+this.getStackedYValueWorking(i,e)}return 0}getStackedXValueWorking(t,e){const i=t.get("stackToItemX");if(i){const t=i.component;return i.get(e,0)*t.get("vcx",1)+this.getStackedXValueWorking(i,e)}return 0}getStackedYValue(t,e){const i=t.get("stackToItemY");return i?i.get(e,0)+this.getStackedYValue(i,e):0}getStackedXValue(t,e){const i=t.get("stackToItemX");return i?i.get(e,0)+this.getStackedXValue(i,e):0}createLegendMarker(t){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(t){let e=t.get("sprite");if(e){let i=e.dataItem,s=t.get("locationX",i.get("locationX",.5)),a=t.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),n=this.get("yAxis"),r=this.get("exactLocationX",!1),h=this.get("exactLocationY",!1),l=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),r),d=n.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),h),g=this.getPoint(l,d),c=i.get("left",g.x),u=i.get("right",g.x),m=i.get("top",g.y),p=i.get("bottom",g.y),_=0,x=0,v=u-c,y=p-m;if(this._shouldShowBullet(l,d)){e.setPrivate("visible",!t.getPrivate("hidden"));let o=t.get("field");const n=this.get("baseAxis"),u=this.get("xAxis"),m=this.get("yAxis");if(null!=o){let t;n==u?("value"==o?t=this._yField:"open"==o?t=this._yOpenField:"high"==o?t=this._yHighField:"low"==o&&(t=this._yLowField),t&&(d=m.getDataItemPositionY(i,t,0,this.get("vcy",1),h),g=this._yRenderer.positionToPoint(d),x=g.y,_=c+v*s)):("value"==o?t=this._xField:"open"==o?t=this._xOpenField:"high"==o?t=this._xHighField:"low"==o&&(t=this._xLowField),t&&(l=u.getDataItemPositionX(i,t,0,this.get("vcx",1),r),g=this._xRenderer.positionToPoint(l),_=g.x,x=p-y*a))}else _=c+v*s,x=p-y*a;const f=t.get("stacked");if(f){const t=this.chart;if(n==u){let i=this._bullets[l+"_"+d];if(i){let s=i.bounds(),a=e.localBounds(),o=x;x=s.top,"down"==f?x=s.bottom-a.top:"auto"==f?t&&(o{e!=this._mainDataItems&&g.each(e,(t=>{t.dispose()}))})),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){g.each(this._dataItems,(t=>{let e=t.bullets;e&&g.each(e,(t=>{if(t){let e=t.get("sprite");e&&e.setPrivate("visible",!1)}}))})),this._selectionProcessed=!1}show(t){const e=Object.create(null,{show:{get:()=>super.show}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.show.call(this,t).then((()=>{this._isShowing=!1;let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis");e!==i&&e.markDirtySelectionExtremes(),t!==i&&t.markDirtySelectionExtremes()}))),i.push(this.bulletsContainer.show(t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)}))}hide(t){const e=Object.create(null,{hide:{get:()=>super.hide}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.hide.call(this,t).then((()=>{this._isHiding=!1}))),i.push(this.bulletsContainer.hide(t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)];l.isNumber(e)||(e=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");g.each(this._valueFields,(i=>{s.push(t.animate({key:i+"Working",to:t.get(i),duration:e,easing:a}).waitForStop())})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)];let a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),l.isNumber(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),n=this.get("xAxis"),r=this.get("yAxis"),h=this.get("baseAxis"),d=this.get("stacked");if(h!==n&&h||g.each(this._valueYFields,(i=>{let a=r.getPrivate("min"),n=r.baseValue();l.isNumber(a)&&a>n&&(n=a),d&&(n=0),null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:n,duration:e,easing:o}).waitForStop())})),h===r||!h){let i=n.getPrivate("min"),a=n.baseValue();l.isNumber(i)&&i>a&&(a=i),d&&(a=0),g.each(this._valueXFields,(i=>{null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:a,duration:e,easing:o}).waitForStop())}))}yield Promise.all(s)}))}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const t=this._stackedSeries;t&&d.each(t,((t,e)=>{e._stackDirty||e._markDirtyStack()}))}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(t){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(t),this.updateLegendValue(t));const e=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(e)if(!this.isHidden()&&this.get("visible")){if(e._setDataItem(t),t){let a=this.get("locationX",0),o=this.get("locationY",1),n=t.get("locationX",a),r=t.get("locationY",o);const h=this.get("xAxis"),l=this.get("yAxis"),d=this.get("vcx",1),c=this.get("vcy",1),u=h.getDataItemPositionX(t,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*n,d,i),m=l.getDataItemPositionY(t,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*r,c,s),p=this.getPoint(u,m);let _=!0;if(g.each(this._valueFields,(e=>{null==t.get(e)&&(_=!1)})),_){const i=this.chart;i&&i.inPlot(p)?(e.label.text.markDirtyText(),e.set("tooltipTarget",this._getTooltipTarget(t)),e.set("pointTo",this._display.toGlobal({x:p.x,y:p.y}))):e._setDataItem(void 0)}else e._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const t=this.get("tooltip");return t&&t.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget")){const e=t.bullets;if(e&&e.length>0){const t=e[0].get("sprite");if(t)return t}}return this}updateLegendValue(t){const e=this.get("legendDataItem");if(e){const i=e.get("label");if(i){let e="";t?(i._setDataItem(t),e=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),e=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",e)}const s=e.get("valueLabel");if(s){let e="";t?(s._setDataItem(t),e=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),e=this.get("legendRangeValueText",s.get("text",""))),s.set("text",e)}}}_getItemReaderLabel(){let t="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}",t}getPoint(t,e){let i=this._xRenderer.positionToCoordinate(t),s=this._yRenderer.positionToCoordinate(e),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(t){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(t){return this.axisRanges.push({axisDataItem:t})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(t){const e=this.get("xAxis");if(this.get("baseAxis")==e&&e.isType("DateAxis")){const i=e.baseDuration(),s=e.getPrivate("selectionMin",e.getPrivate("min",0)),a=i*this.get("locationX",.5);let o=-1/0;for(;o{const e=this.startGrip,i=this.endGrip;let s=e.x(),a=e.y(),o=i.x(),n=i.y();const r=this.height(),h=this.width();s>o&&([s,o]=[o,s]),a>n&&([a,n]=[n,a]),"horizontal"===this.get("orientation")?(t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,r),t.lineTo(0,r),t.lineTo(0,0),t.moveTo(o,0),t.lineTo(h,0),t.lineTo(h,r),t.lineTo(o,r),t.lineTo(o,0)):(t.moveTo(0,0),t.lineTo(0,a),t.lineTo(h,a),t.lineTo(h,0),t.lineTo(0,0),t.moveTo(0,n),t.lineTo(0,r),t.lineTo(h,r),t.lineTo(h,n),t.lineTo(0,n))}))}}r.className="XYChartScrollbar",r.classNames=a.L.classNames.concat([r.className]);var h=i(3355),l=i(757),d=i(6515),g=i(7497),c=i(1926),u=i(5040),m=i(5071);class p extends g.${constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category"),super._afterNew()}_prepareAxisItems(){this.setPrivateRaw("baseInterval",this.get("baseInterval"));const t=this.get("renderer"),e=this.dataItems.length;let i=this.startIndex();i>0&&i--;let s=this.endIndex();s=o&&(g=!0):r%l.count==0&&r!=y&&(g=!0),!h&&g&&(i-.7*o0){let t=f[0].dataItem.get("index",0);m.each(f,(e=>{const i=e.dataItem,s=e.format;this._createAssets(i,[]),this._toggleDataItem(i,!0);let a=Number(i.get("category")),n=new Date(a);const r=i.get("label");r&&r.set("text",this._root.dateFormatter.format(n,s)),t++,this._prepareDataItem(i,t,o)}))}}baseDuration(){return c.getIntervalDuration(this.getPrivate("baseInterval"))}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let t=this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];return this._root.dateFormatter.format(new Date(i.get("category",0)),this.get("tooltipDateFormat",t))}}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}}p.className="CategoryDateAxis",p.classNames=g.$.classNames.concat([p.className]);var _=i(5638),x=i(8701),v=i(7261),y=i(751);class f extends v.m{constructor(){super(...arguments),this._dataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),super._afterNew()}_adjustMinMax(t,e,i,s){let a;const o=this.getDurationFormatter(),n=this.get("baseUnit");if(this.setRaw("maxPrecision",0),"millisecond"==n||"second"==n||"minute"==n||"hour"==n){i<=1&&(i=1),i=Math.round(i);let s=e-t;0===s&&(s=Math.abs(e));let o=s/i,r=[60,30,20,15,10,2,1],h=1;"hour"==n&&(r=[24,12,6,4,2,1]);for(let t of r)if(s/t>i){h=t;break}let l=Math.ceil((e-t)/h/i),d=Math.log(Math.abs(l))*Math.LOG10E,g=Math.pow(10,Math.floor(d))/10,c=l/g;l=y.closest(r,c)*g,o=h*l,a={min:t=Math.floor(t/o)*o,max:e=Math.ceil(e/o)*o,step:o}}else a=super._adjustMinMax(t,e,i,s);return this.setPrivateRaw("durationFormat",o.getFormat(a.step,a.max,n)),a}_formatText(t){return this.getDurationFormatter().format(t,this.getPrivate("durationFormat"),this.get("baseUnit"))}getTooltipText(t,e){const i=this.getDurationFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=y.round(this.positionToValue(t),a);return i.format(o,this.getPrivate("durationFormat"),this.get("baseUnit"))}}f.className="DurationAxis",f.classNames=v.m.classNames.concat([f.className]);var b=i(2586),D=i(6293),P=i(9084),w=i(4714),T=i(8943),A=i(7109),I=i(6275),M=i(6284),k=i(7909),C=i(4604),S=i(2976),Y=i(2312);class F extends S.j{_draw(){const t=this._display;t.moveTo(this.get("lowX1",0),this.get("lowY1",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0));let e=this.width(),i=this.height();if("vertical"==this.get("orientation")){let s=i,a=0;t.moveTo(0,s),t.lineTo(e/2,s),t.moveTo(e/2,a),t.lineTo(e,a)}else{let s=0,a=e;t.moveTo(s,0),t.lineTo(s,i/2),t.moveTo(a,i/2),t.lineTo(a,i)}}}F.className="OHLC",F.classNames=S.j.classNames.concat([F.className]);var X=i(5769),L=i(7144);class N extends Y.${constructor(){super(...arguments),this.columns=this.addDisposer(new L.o(X.YS.new({themeTags:["autocolor"]}),(()=>F._new(this._root,{themeTags:n.mergeTags(this.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=this.mainContainer.children.push(e.make());return i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new L.o(X.YS.new({}),(()=>F._new(this._root,{themeTags:n.mergeTags(t.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template,t.columns.template])))}}N.className="OHLCSeries",N.classNames=Y.$.classNames.concat([N.className]);var R=i(62),V=i(2338),G=i(5892);class O extends V.e{_afterNew(){this._setDefault("curveFactory",(0,G.$)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,G.$)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}O.className="SmoothedYLineSeries",O.classNames=V.e.classNames.concat([O.className]);var E=i(8289);class z extends V.e{_afterNew(){this._setDefault("curveFactory",(0,E.G)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,E.G)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}z.className="SmoothedXLineSeries",z.classNames=V.e.classNames.concat([z.className]);var U=i(2818);class W extends V.e{_afterNew(){this._setDefault("curveFactory",U.ZP.tension(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",U.ZP.tension(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}W.className="SmoothedXYLineSeries",W.classNames=V.e.classNames.concat([W.className]);var B=i(6245);function H(t,e){this._context=t,this._t=e}function Z(t){return new H(t,1)}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}};class Q extends V.e{_afterNew(){this._setDefault("curveFactory",Z),super._afterNew()}_getPoints(t,e){let i=e.points,s=this.get("stepWidth",B.AQ).value/2,a=t.get("locationX",e.locationX),o=t.get("locationY",e.locationY),n=a,r=o;e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s);let h=e.xAxis.getDataItemPositionX(t,e.xField,a,e.vcx),l=e.yAxis.getDataItemPositionY(t,e.yField,o,e.vcy),d=e.xAxis.getDataItemPositionX(t,e.xField,n,e.vcx),g=e.yAxis.getDataItemPositionY(t,e.yField,r,e.vcy);if(this._shouldInclude(h)){const c=this.getPoint(h,l),u=[c.x,c.y],m=this.getPoint(d,g),p=[m.x,m.y];if(e.fillVisible){let i=h,c=l,m=d,_=g;if(e.baseAxis===e.xAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(i=e.basePosX,m=e.basePosX),e.getOpen){let h=t.get(e.xOpenField),l=t.get(e.yOpenField);if(null!=h&&null!=l)if(a=t.get("openLocationX",e.openLocationX),o=t.get("openLocationY",e.openLocationY),n=a,r=o,e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s),e.stacked){let s=t.get("stackToItemX"),h=t.get("stackToItemY");s?(i=e.xAxis.getDataItemPositionX(s,e.xField,a,s.component.get("vcx")),m=e.xAxis.getDataItemPositionX(s,e.xField,n,s.component.get("vcx"))):e.yAxis===e.baseAxis?(i=e.basePosX,m=e.basePosX):e.baseAxis===e.yAxis&&(i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx)),h?(c=e.yAxis.getDataItemPositionY(h,e.yField,o,h.component.get("vcy")),_=e.yAxis.getDataItemPositionY(h,e.yField,r,h.component.get("vcy"))):e.xAxis===e.baseAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy))}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy)}let x=this.getPoint(i,c),v=this.getPoint(m,_);u[2]=x.x,u[3]=x.y,p[2]=v.x,p[3]=v.y}i.push(u),i.push(p),t.set("point",{x:u[0]+(p[0]-u[0])/2,y:u[1]+(p[1]-u[1])/2})}this.get("noRisers")&&(e.points=[],e.segments.push(i))}}Q.className="StepLineSeries",Q.classNames=V.e.classNames.concat([Q.className]);var j=i(55)},7825:function(t,e,i){i.r(e),i.d(e,{am5xy:function(){return s}});const s=i(778)},2818:function(t,e,i){function s(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function a(t,e){this._context=t,this._k=(1-e)/6}i.d(e,{xm:function(){return s}}),a.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:s(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:s(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.ZP=function t(e){function i(t){return new a(t,e)}return i.tension=function(e){return t(+e)},i}(0)}},function(t){var e=(7825,t(t.s=7825)),i=window;for(var s in e)i[s]=e[s];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=xy.js.map diff --git a/web/amCharts/bar/chart_0081_bar.inline03.js b/web/amCharts/bar/chart_0081_bar.inline03.js new file mode 100644 index 0000000000000000000000000000000000000000..c27a274e7972e9ecbd57d20b441e60fc864ffc7d --- /dev/null +++ b/web/amCharts/bar/chart_0081_bar.inline03.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=Animated.js.map diff --git a/web/amCharts/bar/chart_0082_bar.inline03.js b/web/amCharts/bar/chart_0082_bar.inline03.js new file mode 100644 index 0000000000000000000000000000000000000000..c27a274e7972e9ecbd57d20b441e60fc864ffc7d --- /dev/null +++ b/web/amCharts/bar/chart_0082_bar.inline03.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=Animated.js.map diff --git a/web/amCharts/bar/chart_0083_bar.inline01.js b/web/amCharts/bar/chart_0083_bar.inline01.js new file mode 100644 index 0000000000000000000000000000000000000000..3fe3e3caca2e468e70f044c7aaeaa49dfcb8d974 --- /dev/null +++ b/web/amCharts/bar/chart_0083_bar.inline01.js @@ -0,0 +1,2 @@ +!function(){var t,e,i,s,n,r={3145:function(t,e,i){"use strict";i.d(e,{UZ:function(){return r},cP:function(){return n},f_:function(){return o},i_:function(){return s}});const s=new class{constructor(){this.version="5.16.0",this.licenses=[],this.entitiesById={},this.rootElements=[],this.autoDispose=!1}};function n(t){s.licenses.push(t)}function r(){let t;for(;t=s.rootElements.pop();)t.dispose()}function o(t){let e;return s.rootElements.forEach((i=>{i.dom.id==t&&(e=i)})),e}},2855:function(t,e,i){"use strict";i.d(e,{f:function(){return F}});var s=i(6490),n=i(8777),r=i(2036),o=i(4431),a=i(1706),h=i(6881),l=i(7449),c=i(5071),u=i(7652);class d{constructor(){this._targets=[],this._observer=new ResizeObserver((t=>{c.each(t,(t=>{c.each(this._targets,(e=>{e.target===t.target&&e.callback()}))}))}))}addTarget(t,e){this._observer.observe(t,{box:"border-box"}),this._targets.push({target:t,callback:e})}removeTarget(t){this._observer.unobserve(t),c.keepIf(this._targets,(e=>e.target!==t))}}class p{constructor(){this._timer=null,this._targets=[]}addTarget(t,e){if(null===this._timer){let t=null;const e=()=>{const i=Date.now();(null===t||i>t+p.delay)&&(t=i,c.each(this._targets,(t=>{let e=t.target.getBoundingClientRect();e.width===t.size.width&&e.height===t.size.height||(t.size=e,t.callback())}))),0===this._targets.length?this._timer=null:this._timer=requestAnimationFrame(e)};this._timer=requestAnimationFrame(e)}this._targets.push({target:t,callback:e,size:{width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0}})}removeTarget(t){c.keepIf(this._targets,(e=>e.target!==t)),0===this._targets.length&&null!==this._timer&&(cancelAnimationFrame(this._timer),this._timer=null)}}p.delay=200;let g=null;class f{constructor(t,e){this._disposed=!1,this._sensor=(null===g&&(g="undefined"!=typeof ResizeObserver?new d:new p),g),this._element=t,this._listener=u.onZoom(e),this._sensor.addTarget(t,e)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}var _=i(9821),m=i(1479),y=i(7142),v=i(2876),w=i(780),b=i(6460),x=i(798),D=i(6331),k=i(256),T=i(3100);class M extends D.JH{_setDefaults(){this.setPrivate("defaultLocale",T.Z),super._setDefaults()}translate(t,e,...i){e||(e=this._root.locale||this.getPrivate("defaultLocale"));let s=t,n=e[t];if(null===n)s="";else if(null!=n)n&&(s=n);else if(e!==this.getPrivate("defaultLocale"))return this.translate(t,this.getPrivate("defaultLocale"),...i);if(i.length)for(let t=i.length,e=0;e{this.setTranslationAny(t,i,e)}))}translateEmpty(t,e,...i){let s=this.translate(t,e,...i);return s==t?"":s}translateFunc(t,e){return this._root.locale[t]?this._root.locale[t]:e!==this.getPrivate("defaultLocale")?this.translateFunc(t,this.getPrivate("defaultLocale")):()=>""}translateAll(t,e){return this.isDefault()?t:c.map(t,(t=>this.translate(t,e)))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}var E=i(9770),O=i(3783),P=i(4102),S=i(6245),N=i(1112),C=i(2132),L=i(3145),A=i(3540),R=i(5040),U=i(9395);function B(t,e){null==t?requestAnimationFrame(e):setTimeout((()=>{requestAnimationFrame(e)}),1e3/t)}class F{constructor(t,e={},i){if(this._isDirty=!1,this._isDirtyParents=!1,this._isDirtyAnimation=!1,this._dirty={},this._dirtyParents={},this._dirtyBounds={},this._dirtyPositions={},this._ticker=null,this._tickers=[],this._updateTick=!0,this.skipRenderFrame=!1,this.events=new E.p,this.animationTime=null,this._animations=[],this.language=M.new(this,{}),this.locale=T.Z,this.utc=!1,this.numberFormatter=w.e.new(this,{}),this.dateFormatter=b.C.new(this,{}),this.durationFormatter=x.$.new(this,{}),this.tabindex=0,this._tabindexes=[],this._a11yD=!1,this._focusElementDirty=!1,this._skipNextGroupJump=!0,this.verticalLayout=a.Z.new(this,{}),this.horizontalLayout=o.G.new(this,{}),this.gridLayout=h.M.new(this,{}),this._paused=!1,this.autoResize=!0,this._fontHash="",this._isDisposed=!1,this._disposers=[],this._tooltips=[],this._htmlEnabledContainers=[],this.entitiesById={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");let s,n;if(this._settings=e,0==e.accessible&&(this._a11yD=!0),null==e.useSafeResolution&&(e.useSafeResolution=!0),e.useSafeResolution&&(s=u.getSafeResolution()),this._renderer=new P.uK(s),n=t instanceof HTMLElement?t:document.getElementById(t),c.each(L.i_.rootElements,(t=>{if(t.dom===n){if(!L.i_.autoDispose)throw new Error("You cannot have multiple Roots on the same DOM node");t.dispose()}})),this.interfaceColors=_.v.new(this,{}),null===n)throw new Error("Could not find HTML element with id `"+t+"`");this.dom=n;let r=document.createElement("div");r.style.position="relative",r.style.width="100%",r.style.height="100%",n.appendChild(r);const l=e.tooltipContainerBounds;l&&(this._tooltipContainerSettings=l),this._inner=r,this._updateComputedStyles(),L.i_.rootElements.push(this)}static new(t,e){const i=new F(t,e,!0);return i._init(),i}moveDOM(t){let e;if(e=t instanceof HTMLElement?t:document.getElementById(t),e){for(;this.dom.childNodes.length>0;)e.appendChild(this.dom.childNodes[0]);this.dom=e,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const t=this.dom.offsetWidth,e=this.dom.offsetHeight;t<=150||e<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const t=this.tooltipContainer.children.push(n.W.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:(0,S.aQ)(100),centerY:S.AQ,tooltipY:10,tooltipText:"Created using amCharts 5",tooltipX:S.AQ,cursorOverStyle:"pointer",background:y.A.new(this,{fill:(0,N.$_)(4671320),fillOpacity:0,tooltipY:5})}));t.set("tooltip",this.systemTooltip),t.events.on("click",(()=>{window.open("https://www.amcharts.com/","_blank")})),t.states.create("hover",{});const e=t.children.push(m.T.new(this,{stroke:(0,N.$_)(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6",dx:-50,strokeOpacity:0}));e.states.create("hover",{stroke:(0,N.$_)(3976191)});const i=t.children.push(m.T.new(this,{stroke:(0,N.$_)(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0",dx:50,strokeOpacity:0})),s=U.out(U.cubic),r=1500;t.setTimeout((()=>{i.animate({key:"strokeOpacity",to:1,duration:r,easing:s}),i.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"strokeOpacity",to:1,duration:r,easing:s})}),3e3),i.states.create("hover",{stroke:(0,N.$_)(4671320)}),this._logo=t,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(t){return this._settings.calculateSize?this._settings.calculateSize(t):{width:t.width,height:t.height}}_init(){const t=this._settings;!1!==t.accessible&&(t.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),t.ariaLabel&&this._inner.setAttribute("aria-label",t.ariaLabel),t.role&&this._inner.setAttribute("role",t.role));const e=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),r=Math.floor(s.width),o=Math.floor(s.height),a=Math.floor(i.width),h=Math.floor(i.height),l=n.W.new(this,{visible:!0,width:r,height:o});this._rootContainer=l,this._rootContainer._defaultThemes.push(O.X.new(this));const c=l.children.push(n.W.new(this,{visible:!0,width:S.AQ,height:S.AQ}));this.container=c,e.resize(a,h,r,o),this._inner.appendChild(e.view),this._initResizeSensor();const d=document.createElement("div");if(this._htmlElementContainer=d,d.className="am5-html-container",d.style.position="absolute",d.style.pointerEvents="none",this._tooltipContainerSettings||(d.style.overflow="hidden"),this._inner.appendChild(d),!0!==this._a11yD){const t=document.createElement("div");t.className="am5-reader-container",t.setAttribute("role","alert"),t.style.position="absolute",t.style.width="1px",t.style.height="1px",t.style.overflow="hidden",t.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=t,this._inner.appendChild(this._readerAlertElement);const i=document.createElement("div");i.className="am5-focus-container",i.style.position="absolute",i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.width=r+"px",i.style.height=o+"px",i.setAttribute("role","graphics-document"),u.setInteractive(i,!1),this._focusElementContainer=i,this._inner.appendChild(this._focusElementContainer);const s=document.createElement("div");this._tooltipElementContainer=s,s.className="am5-tooltip-container",this._inner.appendChild(s),u.supports("keyboardevents")&&(this._disposers.push(u.addEventListener(window,"keydown",(t=>{const e=u.getEventKey(t);"Shift"==e?this._isShift=!0:"Tab"==e&&(this._isShift=t.shiftKey)}))),this._disposers.push(u.addEventListener(window,"keyup",(t=>{"Shift"==u.getEventKey(t)&&(this._isShift=!1)}))),this._disposers.push(u.addEventListener(i,"click",(()=>{const t=this._focusedSprite;if(t){const i=t.get("clickAnnounceText","");""!==i&&this.readerAlert(i);const s=e.getEvent(new MouseEvent("click"));t.events.dispatch("click",{type:"click",originalEvent:s.event,point:s.point,simulated:!0,target:t})}}))),this._disposers.push(u.addEventListener(i,"keydown",(t=>{const i=this._focusedSprite;if(i){"Escape"==t.key&&(u.blur(),this._focusedSprite=void 0);let s=0,n=0;const r=u.getEventKey(t);switch(r){case"Enter":case" ":const o=i.get("clickAnnounceText","");if(""!==o&&this.readerAlert(o)," "==r&&"checkbox"!=i.get("role"))return;t.preventDefault();const a=e.getEvent(new MouseEvent("mouse"));return void i.events.dispatch("click",{type:"click",originalEvent:a.event,point:a.point,simulated:!0,target:i});case"ArrowLeft":s=-6;break;case"ArrowRight":s=6;break;case"ArrowUp":n=-6;break;case"ArrowDown":n=6;break;default:return}if(0!=s||0!=n){if(t.preventDefault(),!i.isDragging()){this._keyboardDragPoint={x:0,y:0};const t=e.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));t.point={x:0,y:0},i.events.isEnabled("pointerdown")&&i.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:t.event,point:t.point,simulated:!0,target:i})}const r=this._keyboardDragPoint;r.x+=s,r.y+=n;const o=e.getEvent(new MouseEvent("mousemove",{clientX:r.x,clientY:r.y}),!1);i.events.isEnabled("globalpointermove")&&i.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:o.event,point:o.point,simulated:!0,target:i})}}}))),this._disposers.push(u.addEventListener(i,"keyup",(t=>{if(this._focusedSprite){const i=this._focusedSprite,s=u.getEventKey(t);switch(s){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(i.isDragging()){const t=this._keyboardDragPoint,s=e.getEvent(new MouseEvent("mouseup",{clientX:t.x,clientY:t.y}));return i.events.isEnabled("globalpointerup")&&i.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:s.event,point:s.point,simulated:!0,target:i}),void(this._keyboardDragPoint=void 0)}if(i.get("focusableGroup")){const t=i.get("focusableGroup"),e=this._tabindexes.filter((e=>!(e.get("focusableGroup")!=t||!1===e.getPrivate("focusable")||!e.isVisibleDeep())));let n=e.indexOf(i);const r=e.length-1;n+="ArrowRight"==s||"ArrowDown"==s?1:-1,n<0?n=r:n>r&&(n=0),u.focus(e[n].getPrivate("focusElement").dom)}break;case"Tab":const t=i.get("focusableGroup");if(t&&this._isShift)return void(this._skipNextGroupJump||(this._focusNext(i.getPrivate("focusElement").dom,-1,t),this._skipNextGroupJump=!0))}}}))))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}get systemTooltip(){if(!this._systemTooltip){const t=v.u.new(this,{themeTags:["system"]});this._systemTooltip=t}return this._systemTooltip}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new f(this.dom,(()=>{this.autoResize&&this.resize()})),this._disposers.push(this._resizeSensorDisposer)}resize(){const t=this._getRealSize(),e=this._getCalculatedSize(t),i=Math.floor(e.width),s=Math.floor(e.height);if(i>0&&s>0){const e=Math.floor(t.width),n=Math.floor(t.height),r=this._htmlElementContainer;if(r.style.width=i+"px",r.style.height=s+"px",!0!==this._a11yD){const t=this._focusElementContainer;t.style.width=i+"px",t.style.height=s+"px"}this._renderer.resize(e,n,i,s);const o=this._rootContainer;o.setPrivate("width",i),o.setPrivate("height",s),this._render(),this._handleLogo()}}_render(){this.skipRenderFrame?this.skipRenderFrame=!1:(this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1))}_runTickers(t){c.each(this._tickers,(e=>{e(t)}))}_runAnimations(t){let e=0;return c.keepIf(this._animations,(i=>{const n=i._runAnimation(t);return n!==s.SR.Stopped&&(n!==s.SR.Playing||(++e,!0))})),this._isDirtyAnimation=!1,0===e}_runDirties(){let t={};for(;this._isDirtyParents;)this._isDirtyParents=!1,k.entries(this._dirtyParents).forEach((([e,i])=>{delete this._dirtyParents[e],i.isDisposed()||(t[i.uid]=i,i._prepareChildren())}));k.entries(t).forEach((([t,e])=>{e._updateChildren()}));const e=[];k.entries(this._dirty).forEach((([t,i])=>{i.isDisposed()?delete this._dirty[t]:(e.push(i),i._beforeChanged())})),e.forEach((t=>{t._changed(),delete this._dirty[t.uid],t._clearDirty()})),this._isDirty=!1;const i={},s=[];k.entries(this._dirtyBounds).forEach((([t,e])=>{delete this._dirtyBounds[t],e.isDisposed()||(i[e.uid]=e.depth(),s.push(e))})),this._positionHTMLElements(),s.sort(((t,e)=>A.qu(i[e.uid],i[t.uid]))),s.forEach((t=>{t._updateBounds()}));const n=this._dirtyPositions;k.entries(n).forEach((([t,e])=>{delete n[t],e.isDisposed()||e._updatePosition()})),e.forEach((t=>{t._afterChanged()})),k.entries(t).forEach((([t,e])=>{e._childrenPrep=!1,e._childrenUpdt=!1}))}_renderFrame(t){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:t}),this._checkComputedStyles(),this._runTickers(t);const e=this._runAnimations(t);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:t}),0===this._tickers.length&&e&&!this._isDirtyAnimation&&!this._isDirty}return!0}_runTicker(t,e){this.isDisposed()||(this.animationTime=t,this._renderFrame(t)?(this._ticker=null,this.animationTime=null):this._paused||(e?this._ticker:B(this.fps,this._ticker)))}_runTickerNow(t=1e4){if(!this.isDisposed()){const e=performance.now()+t;for(;;){const t=performance.now();if(t>=e){this.animationTime=null;break}if(this.animationTime=t,this._renderFrame(t)){this.animationTime=null;break}}}}_startTicker(){null===this._ticker&&(this.animationTime=null,this._ticker=t=>{this._runTicker(t)},B(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(t){this._updateTick=t,t&&this._startTicker()}_addDirtyEntity(t){this._isDirty=!0,void 0===this._dirty[t.uid]&&(this._dirty[t.uid]=t),this._startTicker()}_addDirtyParent(t){this._isDirty=!0,this._isDirtyParents=!0,void 0===this._dirtyParents[t.uid]&&(this._dirtyParents[t.uid]=t),this._startTicker()}_addDirtyBounds(t){this._isDirty=!0,void 0===this._dirtyBounds[t.uid]&&(this._dirtyBounds[t.uid]=t),this._startTicker()}_addDirtyPosition(t){this._isDirty=!0,void 0===this._dirtyPositions[t.uid]&&(this._dirtyPositions[t.uid]=t),this._startTicker()}_addAnimation(t){this._isDirtyAnimation=!0,-1===this._animations.indexOf(t)&&this._animations.push(t),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",(()=>{this._isDirty=!0,this._startTicker()}))}eachFrame(t){return this._tickers.push(t),this._startTicker(),new l.ku((()=>{c.removeFirst(this._tickers,t)}))}markDirtyGlobal(t){t||(t=this.container),t.walkChildren((t=>{t instanceof n.W&&this.markDirtyGlobal(t),t.markDirty(),t.markDirtyBounds()}))}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),c.each(this._disposers,(t=>{t.dispose()})),this._inner&&u.removeElement(this._inner),c.remove(L.i_.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(t){if(!0!==this._a11yD){const e=this._readerAlertElement;t=u.stripTags(t),e.innerHTML==t&&(e.innerHTML=""),e.innerHTML=t}}setThemes(t){this._rootContainer.set("themes",t);const e=this.tooltipContainer;e&&e._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const t=this._tooltipContainerSettings,e=this._rootContainer.children.push(n.W.new(this,{position:"absolute",isMeasured:!1,width:S.AQ,height:S.AQ,layer:t?35:30,layerMargin:t||void 0}));this.tooltipContainer=e;const i=v.u.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(t){1!=this._a11yD&&(t.get("focusable")?c.pushOne(this._tabindexes,t):c.remove(this._tabindexes,t),this._invalidateTabindexes())}_unregisterTabindexOrder(t){1!=this._a11yD&&(c.remove(this._tabindexes,t),this._invalidateTabindexes())}_invalidateTabindexes(){if(1==this._a11yD)return;this._tabindexes.sort(((t,e)=>{const i=t.get("tabindexOrder",0),s=e.get("tabindexOrder",0);return i==s?0:i>s?1:-1}));const t=[];c.each(this._tabindexes,((e,i)=>{e.getPrivate("focusElement")?this._moveFocusElement(i,e):this._makeFocusElement(i,e);const s=e.get("focusableGroup");s&&!1!==e.getPrivate("focusable")&&(-1!==t.indexOf(s)?e.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):t.push(s))}))}_updateCurrentFocus(){1!=this._a11yD&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(t,e){if(1==this._a11yD)return;if(e||(e=t.getPrivate("focusElement").dom),!e)return;const i=t.get("role");i?e.setAttribute("role",i):e.removeAttribute("role");const s=t.get("ariaLabel");if(s){const i=(0,C.q)(t,s);e.setAttribute("aria-label",i)}else e.removeAttribute("aria-label");const n=t.get("ariaLive");n?e.setAttribute("aria-live",n):e.removeAttribute("aria-live");const r=t.get("ariaChecked");null!=r&&i&&-1!==["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)?e.setAttribute("aria-checked",r?"true":"false"):e.removeAttribute("aria-checked");const o=t.get("ariaCurrent");null!=o?e.setAttribute("aria-current",o):e.removeAttribute("aria-current");const a=t.get("ariaSelected");null!=a&&i&&-1!==["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)?e.setAttribute("aria-selected",a?"true":"false"):e.removeAttribute("aria-selected"),t.get("ariaHidden")?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden");const h=t.get("ariaOrientation");h?e.setAttribute("aria-orientation",h):e.removeAttribute("aria-orientation");const l=t.get("ariaValueNow");l?e.setAttribute("aria-valuenow",l):e.removeAttribute("aria-valuenow");const c=t.get("ariaValueMin");c?e.setAttribute("aria-valuemin",c):e.removeAttribute("aria-valuemin");const u=t.get("ariaValueMax");u?e.setAttribute("aria-valuemax",u):e.removeAttribute("aria-valuemax");const d=t.get("ariaValueText");d?e.setAttribute("aria-valuetext",d):e.removeAttribute("aria-valuetext");const p=t.get("ariaControls");p?e.setAttribute("aria-controls",p):e.removeAttribute("aria-controls"),t.get("visible")&&0!==t.get("opacity")&&"tooltip"!=t.get("role")&&!t.isHidden()&&!1!==t.getPrivate("focusable")&&(t.height()||t.width())?("-1"!=e.getAttribute("tabindex")&&e.setAttribute("tabindex",""+this.tabindex),e.removeAttribute("aria-hidden")):(e.removeAttribute("tabindex"),e.setAttribute("aria-hidden","true"))}_makeFocusElement(t,e){if(e.getPrivate("focusElement")||1==this._a11yD)return;const i=document.createElement("div");"tooltip"!=e.get("role")&&(i.tabIndex=this.tabindex),i.style.position="absolute",u.setInteractive(i,!1);const s=[];e.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(e),s.push(u.addEventListener(i,"focus",(t=>{this._handleFocus(t)}))),s.push(u.addEventListener(i,"blur",(t=>{this._handleBlur(t)}))),this._moveFocusElement(t,e)}_removeFocusElement(t){if(1==this._a11yD)return;c.remove(this._tabindexes,t);const e=t.getPrivate("focusElement");e&&(this._focusElementContainer.removeChild(e.dom),c.each(e.disposers,(t=>{t.dispose()})))}_hideFocusElement(t){1!=this._a11yD&&(t.getPrivate("focusElement").dom.style.display="none")}_moveFocusElement(t,e){if(1==this._a11yD)return;const i=this._focusElementContainer,s=e.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[t])return;const n=this._focusElementContainer.children[t+1];n?i.insertBefore(s,n):i.append(s)}_positionFocusElement(t){if(1==this._a11yD||null==t)return;this._focusElementContainer.scrollTop=0;const e=t.globalBounds();let i=e.right==e.left?t.width():e.right-e.left,s=e.top==e.bottom?t.height():e.bottom-e.top;const n=void 0!==this._settings.focusPadding?this._settings.focusPadding:2;let r=e.left-n,o=e.top-n;i<0&&(r+=i,i=Math.abs(i)),s<0&&(o+=s,s=Math.abs(s));const a=t.getPrivate("focusElement").dom;a.style.top=o+"px",a.style.left=r+"px",a.style.width=i+2*n+"px",a.style.height=s+2*n+"px"}_getSpriteByFocusElement(t){let e;return c.eachContinue(this._tabindexes,((i,s)=>i.getPrivate("focusElement").dom!==t||(e=i,!1))),e}_handleFocus(t){if(1==this._a11yD)return;const e=this._getSpriteByFocusElement(t.target);e&&(e.isVisibleDeep()?(this._positionFocusElement(e),this._focusedSprite=e,e.events.isEnabled("focus")&&e.events.dispatch("focus",{type:"focus",originalEvent:t,target:e}),-1==e.getPrivate("focusElement").dom.tabIndex&&(this._skipNextGroupJump=!1)):this._focusNext(t.target,this._isShift?-1:1))}_focusNext(t,e,i){if(1==this._a11yD)return;const s=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(",")));let n=s.indexOf(t)+e;n<0?n=s.length-1:n>=s.length&&(n=0);const r=s[n];if(i&&-1==e){const t=this._getSpriteByFocusElement(r);if(t&&t.get("focusableGroup")==i)return void this._focusNext(r,e)}r.focus()}_handleBlur(t){if(1==this._a11yD)return;const e=this._focusedSprite;e&&!e.isDisposed()&&e.events.isEnabled("blur")&&e.events.dispatch("blur",{type:"blur",originalEvent:t,target:e}),this._focusedSprite=void 0}updateTooltip(t){if(1==this._a11yD)return;const e=u.stripTags(t._getText());let i=t.getPrivate("tooltipElement");"tooltip"==t.get("role")&&""!=e?(i||(i=this._makeTooltipElement(t)),i.innerHTML!=e&&(i.innerHTML=e),i.setAttribute("aria-hidden",t.isVisibleDeep()?"false":"true")):i&&(i.remove(),t.removePrivate("tooltipElement"))}_makeTooltipElement(t){const e=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",u.setInteractive(i,!1),this._decorateFocusElement(t,i),e.append(i),t.setPrivate("tooltipElement",i),i}_removeTooltipElement(t){if(1==this._a11yD)return;const e=t.getPrivate("tooltipElement");if(e){const t=e.parentElement;t&&t.removeChild(e)}}_invalidateAccessibility(t){if(1==this._a11yD)return;this._focusElementDirty=!0;const e=t.getPrivate("focusElement");t.get("focusable")?e&&(this._decorateFocusElement(t),this._positionFocusElement(t)):e&&this._removeFocusElement(t)}focused(t){return this._focusedSprite===t}documentPointToRoot(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:(t.x-e.left)*s,y:(t.y-e.top)*n}}rootPointToDocument(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:t.x/s+e.left,y:t.y/n+e.top}}addDisposer(t){return this._disposers.push(t),t}_updateComputedStyles(){const t=window.getComputedStyle(this.dom);let e="";k.each(t,((t,i)=>{R.isString(t)&&t.match(/^font/)&&(e+=i)}));const i=e!=this._fontHash;return i&&(this._fontHash=e),i}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(t){t instanceof n.W?t.children.each((t=>{this._invalidateLabelBounds(t)})):t instanceof r.x&&t.markDirtyBounds()}_hasLicense(){for(let t=0;t{if(t.get("verticalScrollbar"))return r=!0,s=t,!1})),r&&(n=document.createElement("div"),t.setPrivate("htmlElementWrapper",n),t.setPrivate("wrapperContainer",s),n.style.position="absolute",n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",s.events.on("boundschanged",(()=>{this._positionHTMLElement(t)}))),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",u.setInteractive(i,t.get("interactive",!1)),t.events.isEnabled("click")&&(u.setInteractive(i,!0),this._disposers.push(u.addEventListener(i,"click",(e=>{const i=this._renderer.getEvent(e);t.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))),this._positionHTMLElement(t),r?(n.append(i),e.append(n)):e.append(i),c.pushOne(this._htmlEnabledContainers,t),i}_positionHTMLElements(){c.each(this._htmlEnabledContainers,(t=>{this._positionHTMLElement(t)}))}_positionHTMLElement(t){const e=t.getPrivate("htmlElementWrapper");if(e){const i=t.getPrivate("wrapperContainer");if(i){const t=i.globalBounds();e.style.clipPath="rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"}}const i=t.getPrivate("htmlElement");if(i){const e=["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"];c.each(e,(e=>{const s=t.get(e);i.style[e]=s?s+"px":""}));const s=["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"];c.each(s,(e=>{const s=t.get(e);s?"fontSize"!=e||R.isString(s)?i.style[e]=s+"":i.style[e]=s+"px":i.style[e]=""}));const n=t.compositeScale()||1,r=t.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";const o=t.compositeOpacity();setTimeout((()=>{i.style.opacity=o+""}),10);const a=t.isVisibleDeep();a&&(i.style.display="block");let h={x:t.x()+t.get("dx",0),y:t.y()+t.get("dy",0)};t.parent&&(h=t.parent.toGlobal(h)),i.style.top=h.y+"px",i.style.left=h.x+"px";const l=t.get("width"),u=t.get("height");let d=0,p=0;if(l&&(d=t.width()),u&&(p=t.height()),!l||!u){i.style.position="fixed",i.style.width="",i.style.height="";const e=i.getBoundingClientRect();i.style.position="absolute",l||(d=e.width),u||(p=e.height);let s=d/n,r=p/n,o=t.get("centerX",0),a=t.get("centerY",0),h=0,c=0,g=0,f=0;o instanceof S.gG?(h=-o.value*s,c=(1-o.value)*s):(h=-o,c=s-o),a instanceof S.gG?(g=-a.value*r,f=(1-a.value)*r):(g=-a,f=r-a),t._localBounds={left:h,right:c,top:g,bottom:f};let _=t._adjustedLocalBounds,m=t._display.getAdjustedBounds(t._localBounds);t._adjustedLocalBounds=m,_.left===m.left&&_.right===m.right&&_.top===m.top&&_.bottom===m.bottom||t.markDirtyBounds()}d>0&&(i.style.minWidth=d+"px"),p>0&&(i.style.minHeight=p+"px"),a&&0!=o||(i.style.display="none");const g=t.get("centerX",0),f=(0,S.hU)(g)?g.percent+"%":g+"px",_=t.get("centerY",0),m=(0,S.hU)(_)?_.percent+"%":_+"px";(g||_)&&(i.style.transform="translate(-"+f+", -"+m+")"+i.style.transform),1!=n&&(i.style.transform+="scale("+n+")"),0!=r&&(i.style.transform+=" rotate("+r+"deg)"),""!=i.style.transform&&(i.style.transformOrigin=f+" "+m)}}_setHTMLContent(t,e){let i=t.getPrivate("htmlElement");i||(i=this._makeHTMLElement(t),this.autoResize||this.resize()),i.innerHTML!=e&&(i.innerHTML=e)}_removeHTMLContent(t){const e=t.getPrivate("htmlElementWrapper"),i=t.getPrivate("htmlElement");e?(this._htmlElementContainer.removeChild(e),t.removePrivate("htmlElement"),t.removePrivate("htmlElementWrapper"),t.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),t.removePrivate("htmlElement"),t.removePrivate("wrapperContainer")),c.remove(this._htmlEnabledContainers,t)}}},3409:function(t,e,i){"use strict";i.d(e,{Q:function(){return o}});var s=i(5769),n=i(3540),r=i(5071);class o{constructor(t,e){if(this._rules={},this._root=t,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(t){const e=new this(t,!0);return e.setupDefaultRules(),e}setupDefaultRules(){}_lookupRules(t){return this._rules[t]}ruleRaw(t,e=[]){let i=this._rules[t];i||(i=this._rules[t]=[]),e.sort(n.qu);const{index:o,found:a}=r.getSortedIndex(i,(t=>{const i=n.qu(t.tags.length,e.length);return 0===i?n.wq(t.tags,e,n.qu):i}));if(a)return i[o].template;{const t=s.YS.new({});return i.splice(o,0,{tags:e,template:t}),t}}rule(t,e=[]){return this.ruleRaw(t,e)}}},5108:function(t,e,i){"use strict";i.d(e,{g:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){const t=this.get("sprite");t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}}n.className="Bullet",n.classNames=s.JH.classNames.concat([n.className])},8054:function(t,e,i){"use strict";i.d(e,{z:function(){return o}});var s=i(3497),n=i(8777),r=i(7652);class o extends n.W{_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",s.c.new(this._root,{themeTags:r.mergeTags(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const t=this._prevSettings.icon,e=this.get("icon");e!==t&&(this._disposeProperty("icon"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.icon=e)}if(this.isDirty("label")){const t=this._prevSettings.label,e=this.get("label");e!==t&&(this._disposeProperty("label"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.label=e)}}}o.className="Button",o.classNames=n.W.classNames.concat([o.className])},1337:function(t,e,i){"use strict";i.d(e,{k:function(){return r}});var s=i(8777),n=i(6245);class r extends s.W{constructor(){super(...arguments),this.chartContainer=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,interactiveChildren:!1})),this.bulletsContainer=s.W.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:n.AQ,height:n.AQ})}}r.className="Chart",r.classNames=s.W.classNames.concat([r.className])},8035:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,Math.abs(this.get("radius",10)))}}n.className="Circle",n.classNames=s.T.classNames.concat([n.className])},9361:function(t,e,i){"use strict";i.d(e,{w:function(){return c},z:function(){return l}});var s=i(7582),n=i(6331),r=i(8777),o=i(9582),a=i(5071),h=i(256);class l extends n.Zr{constructor(t,e,i){super(i),this.dataContext=e,this.component=t,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(t){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,t)}hide(t){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,t)}isHidden(){return!this.get("visible")}}class c extends r.W{constructor(){super(...arguments),this._data=new o.k,this._dataItems=[],this._mainDataItems=this._dataItems,this.valueFields=[],this.fields=["id"],this._valuesDirty=!1,this._dataChanged=!1,this._dataGrouped=!1,this.inited=!1}set data(t){t.incrementRef(),this._data.decrementRef(),this._data=t}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((t=>{const e=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===t.type)a.each(e,(t=>{t.dispose()})),e.length=0,this._onDataClear();else if("push"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.push(i),this.processDataItem(i)}else if("setIndex"===t.type){const i=e[t.index],s=this._makeDataItem(t.newValue);i.bullets&&0==i.bullets.length&&(i.bullets=void 0),h.entries(s).forEach((([t,e])=>{i.get(t)!=e&&i.animate({key:t,to:e,duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})})),i.dataContext=t.newValue}else if("insertIndex"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.splice(t.index,0,i),this.processDataItem(i)}else if("removeIndex"===t.type)e[t.index].dispose(),e.splice(t.index,1);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");{const i=e[t.oldIndex];e.splice(t.oldIndex,1),e.splice(t.newIndex,0,i)}}this._afterDataChange()})))}_postUpdateData(){}updateData(t){let e=0;a.each(t,((t,i)=>{const s=this.dataItems[i];if(s){const e=s.dataContext;e&&h.entries(t).forEach((([t,i])=>{e[t]=i}));const i=this._makeDataItem(e);h.entries(i).forEach((([t,e])=>{var i;if(s.get(t)!=e){s.set(t,e);const n=null===(i=this._valueFieldsF[t])||void 0===i?void 0:i.workingKey;n&&s.set(n,e)}}))}else this.data.push(t);e=i}));for(let t=this.dataItems.length-1;t>e;t--){const e=this.dataItems[t];a.remove(this.dataItems,e),e.dispose()}this._postUpdateData()}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},a.each(this.valueFields,(t=>{this.get(t+"Field")&&(this._valueFields.push(t),this._valueFieldsF[t]={fieldKey:t+"Field",workingKey:t+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},a.each(this.fields,(t=>{this.get(t+"Field")&&(this._fields.push(t),this._fieldsF[t]=t+"Field")})))}get dataItems(){return this._dataItems}processDataItem(t){}_makeDataItem(t){const e={};return this._valueFields&&a.each(this._valueFields,(i=>{const s=this.get(this._valueFieldsF[i].fieldKey);e[i]=t[s],e[this._valueFieldsF[i].workingKey]=e[i]})),this._fields&&a.each(this._fields,(i=>{const s=this.get(this._fieldsF[i]);e[i]=t[s]})),e}makeDataItem(t,e){let i=new l(this,e,t);return this.processDataItem(i),i}pushDataItem(t,e){const i=this.makeDataItem(t,e);return this._mainDataItems.push(i),i}disposeDataItem(t){}showDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!0)}))}hideDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const t="datavalidated";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this._dataChanged=!1}if(this._valuesDirty){const t="valueschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.inited=!0}markDirtyValues(t){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}getDataItemById(t){return a.find(this.dataItems,(e=>e.get("id")==t))}}c.className="Component",c.classNames=r.W.classNames.concat([c.className])},2936:function(t,e,i){"use strict";i.d(e,{p:function(){return r}});var s=i(8054),n=i(7652);class r extends s.z{_afterNew(){super._afterNew(),this.addTag("confirm"),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{const e=n.getEventKey(t);this.get("active")&&"Escape"==e&&this._cancel()}))),this._disposers.push(n.addEventListener(document,"click",(()=>{this._ignoreClick||this._cancel(),this._ignoreClick=!1}))),this.events.on("click",(()=>{this.get("active")||(this._ignoreClick=!0),this._confirm()}))}_cancel(){this.get("active")&&(this.events.dispatch("cancelled",{type:"cancelled",target:this}),this.set("active",!1))}_confirm(){this.get("active")&&(this.events.dispatch("confirmed",{type:"confirmed",target:this}),this.set("active",!1),this.isFocus()&&this.setTimeout((()=>{this.set("active",!1),n.blur()}),10))}_prepareChildren(){super._prepareChildren()}}r.className="ConfirmButton",r.classNames=s.z.classNames.concat([r.className])},8777:function(t,e,i){"use strict";i.d(e,{W:function(){return f}});var s=i(7144),n=i(5071);class r extends s.aV{constructor(t){super(),this._disposed=!1,this._container=t,this._events=this.events.onAll((t=>{if("clear"===t.type)n.each(t.oldValues,(t=>{this._onRemoved(t)}));else if("push"===t.type)this._onInserted(t.newValue);else if("setIndex"===t.type)this._onRemoved(t.oldValue),this._onInserted(t.newValue,t.index);else if("insertIndex"===t.type)this._onInserted(t.newValue,t.index);else if("removeIndex"===t.type)this._onRemoved(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");this._onRemoved(t.value),this._onInserted(t.value,t.newIndex)}}))}_onInserted(t,e){t._setParent(this._container,!0);const i=this._container._childrenDisplay;void 0===e?i.addChild(t._display):i.addChildAt(t._display,e)}_onRemoved(t){this._container._childrenDisplay.removeChild(t._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),n.each(this.values,(t=>{t.dispose()})))}}var o=i(6245),a=i(4596),h=i(7142),l=i(4431),c=i(1706),u=i(6881),d=i(2132),p=i(5040),g=i(7652);class f extends a.j{constructor(){super(...arguments),this._display=this._root._renderer.makeContainer(),this._childrenDisplay=this._root._renderer.makeContainer(),this.children=new r(this),this._percentageSizeChildren=[],this._percentagePositionChildren=[],this._prevWidth=0,this._prevHeight=0,this._contentWidth=0,this._contentHeight=0,this._childrenPrep=!1,this._childrenUpdt=!1}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){n.eachReverse(this.allChildren(),(t=>{t.dispose()})),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_beforeChanged(){this._childrenPrep||this._prepareChildren(),this._childrenUpdt||this._updateChildren(),super._beforeChanged()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each((t=>{t.removePrivate("x"),t.removePrivate("y")}))),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each((t=>{t.markDirtyPosition()})),this.isDirty("maskContent")){const t=this._childrenDisplay;let e=this._contentMask;this.get("maskContent")?e||(e=h.A.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=e,t.addChildAt(e._display,0),t.mask=e._display):e&&(t.removeChild(e._display),t.mask=null,e.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),n.each(this._percentageSizeChildren,(t=>{t._updateSize()})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t._updateSize()})),this.updateBackground()}updateBackground(){const t=this.get("background");let e=this._localBounds;if(e&&!this.isHidden()){let i=e.left,s=e.top,n=e.right-i,r=e.bottom-s,o=this.get("maxWidth"),a=this.get("maxHeight");a&&r>a&&(r=a),o&&n>o&&(n=o);let h=this.width(),l=this.height();t&&(t.setAll({width:n,height:r,x:i,y:s}),this._display.interactive&&(t._display.interactive=!0));const c=this._contentMask;c&&c.setAll({width:h+1,height:l+1});const u=this.get("verticalScrollbar");if(u){u.set("height",l),u.set("x",h-u.width()-u.get("marginRight",0)),u.set("end",u.get("start",0)+l/this._contentHeight);const t=u.get("background");t&&t.setAll({width:u.width(),height:l});let e=!0;this._contentHeight<=l&&(e=!1),u.setPrivate("visible",e)}}}_applyThemes(t=!1){return!!super._applyThemes(t)&&(this.eachChildren((e=>{e._applyThemes(t)})),!0)}_applyState(t){super._applyState(t),this.get("setStateOnChildren")&&this.eachChildren((e=>{e.states.apply(t)}))}_applyStateAnimated(t,e){super._applyStateAnimated(t,e),this.get("setStateOnChildren")&&this.eachChildren((i=>{i.states.applyAnimate(t,e)}))}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let t=this._localBounds;t&&(this._contentWidth=t.right-t.left,this._contentHeight=t.bottom-t.top)}else{let t=this.get("width"),e=this.get("height"),i=this.getPrivate("width"),s=this.getPrivate("height"),n={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),o=!1,a=!1;if((r instanceof l.G||r instanceof u.M)&&(o=!0),r instanceof c.Z&&(a=!0),null==t&&null==i||null==e&&null==s||this.get("verticalScrollbar")){let t=Number.MAX_VALUE,e=t,i=-t,s=t,r=-t;const h=this.get("paddingLeft",0),l=this.get("paddingTop",0),c=this.get("paddingRight",0),u=this.get("paddingBottom",0);this.children.each((t=>{if("absolute"!=t.get("position")&&t.get("isMeasured")){let n=t.adjustedLocalBounds(),h=t.x(),l=t.y(),c=h+n.left,u=h+n.right,d=l+n.top,p=l+n.bottom;o&&(c-=t.get("marginLeft",0),u+=t.get("marginRight",0)),a&&(d-=t.get("marginTop",0),p+=t.get("marginBottom",0)),ci&&(i=u),dr&&(r=p)}})),e==t&&(e=0),i==-t&&(i=0),s==t&&(s=0),r==-t&&(r=0),n.left=e-h,n.top=s-l,n.right=i+c,n.bottom=r+u;const d=this.get("minWidth");p.isNumber(d)&&d>0&&n.right-n.left=d?n.left=n.right-d:n.right=n.left+d);const g=this.get("minHeight");p.isNumber(g)&&g>0&&n.bottom-n.top=g?n.top=n.bottom-g:n.bottom=n.top+g)}this._contentWidth=n.right-n.left,this._contentHeight=n.bottom-n.top,p.isNumber(t)&&(n.left=0,n.right=t),p.isNumber(i)&&(n.left=0,n.right=i),p.isNumber(e)&&(n.top=0,n.bottom=e),p.isNumber(s)&&(n.top=0,n.bottom=s),this._localBounds=n}}_updateBounds(){const t=this.get("layout");t&&t.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){this._childrenPrep=!0;const t=this.innerWidth(),e=this.innerHeight();if(t!=this._prevWidth||e!=this._prevHeight){let i=this.get("layout"),s=!1,r=!1;i&&((i instanceof l.G||i instanceof u.M)&&(s=!0),i instanceof c.Z&&(r=!0)),n.each(this._percentageSizeChildren,(i=>{if(!s){let e=i.get("width");e instanceof o.gG&&i.setPrivate("width",e.value*t)}if(!r){let t=i.get("height");t instanceof o.gG&&i.setPrivate("height",t.value*e)}})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t.markDirtyBounds()})),this._prevWidth=t,this._prevHeight=e,this._sizeDirty=!0,this.updateBackground()}}_updateHTMLContent(){const t=this.get("html","");t&&""!==t?this._root._setHTMLContent(this,(0,d.q)(this,t)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(t){const e=this.get("verticalScrollbar");if(e){let i=t.y(),s=this.innerHeight(),n=t.height(),r=this._contentHeight,o=1-(s-n/2)/r;if(i+.7*n+this._childrenDisplay.y>s||i-.3*n+this._childrenDisplay.y<0){let t=Math.max(0,Math.min(o,(i-n/2)/r));e.animate({key:"start",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")})}}}_updateChildren(){if(this._childrenUpdt=!0,this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){const t=this.get("verticalScrollbar");if(t){t._setParent(this),t.startGrip.setPrivate("visible",!1),t.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",t.width()+t.get("marginRight",0)+t.get("marginLeft",0));let e=this.get("background");e||(e=this.set("background",h.A.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",(e=>{const i=e.originalEvent;if(!g.isLocalEvent(i,this))return;i.preventDefault();let s=i.deltaY/5e3;const n=t.get("start",0),r=t.get("end",1);n+s<=0&&(s=-n),r+s>=1&&(s=1-r),n+s>=0&&r+s<=1&&(t.set("start",n+s),t.set("end",r+s))})),this._disposers.push(this._vsbd0),this._vsbd1=t.events.on("rangechanged",(()=>{let e=this._contentHeight;const i=this._childrenDisplay,s=this._contentMask;i.y=-t.get("start",0)*e,i.markDirtyLayer(),s&&(s._display.y=-i.y,i.mask=s._display)})),this._disposers.push(this._vsbd1),this._display.addChild(t._display)}else{const t=this._prevSettings.verticalScrollbar;t&&(this._display.removeChild(t._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose(),this._childrenDisplay.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0))}}if(this.isDirty("background")){const t=this._prevSettings.background;t&&this._display.removeChild(t._display);const e=this.get("background");e instanceof a.j&&(e.set("isMeasured",!1),e._setParent(this),this._display.addChildAt(e._display,0))}if(this.isDirty("mask")){const t=this.get("mask"),e=this._prevSettings.mask;if(e&&(this._display.removeChild(e._display),e!=t&&e.dispose()),t){const e=t.parent;e&&e.children.removeValue(t),t._setParent(this),this._display.addChildAt(t._display,0),this._childrenDisplay.mask=t._display}}}_processTemplateField(){super._processTemplateField(),this.children.each((t=>{t._processTemplateField()}))}walkChildren(t){this.children.each(((e,i)=>{e instanceof f&&e.walkChildren(t),t(e,i)}))}eachChildren(t){const e=this.get("background");e&&t(e);const i=this.get("verticalScrollbar");i&&t(i);const s=this.get("mask");s&&t(s),this.children.values.forEach((e=>{t(e)}))}allChildren(){const t=[];return this.eachChildren((e=>{t.push(e)})),t}_setDataItem(t){const e=t!==this._dataItem;super._setDataItem(t);const i=this.get("html","");i&&""!==i&&e&&this._root._setHTMLContent(this,(0,d.q)(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}}f.className="Container",f.classNames=a.j.classNames.concat([f.className])},6691:function(t,e,i){"use strict";i.d(e,{Y:function(){return d}});var s=i(962),n=i(8777),r=i(3497),o=i(6245),a=i(1112),h=i(7449),l=i(7652),c=i(5040),u=i(5071);class d extends s._{_afterNew(){super._afterNew();const t=this.children.push(n.W.new(this._root,{html:'',isMeasured:!1}));t.hide(),this.setPrivate("input",t);let e=this.get("background");e?e.set("themeTags",["editablelabel","background"]):e=this.set("background",r.c.new(this._root,{themeTags:["editablelabel","background"]}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();const t=this.get("editOn","click");"none"!=t&&(this._editOnEvents=new h.FV([this.getPrivate("input").events.on(t,(t=>{})),this.events.on(t,(t=>{this.set("active",!0)}))]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){const t=this.get("active",!1);t?this._startEditing():this._stopEditing();const e=this.get("background");e&&e.set("active",t)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){const t=this.getPrivate("input");if(t&&t.getPrivate("htmlElement")){const e=t.getPrivate("htmlElement").querySelector(".am5-editable-label");e&&(this.setPrivate("textarea",e),e.addEventListener("input",(t=>{!1===this.get("multiLine")&&(e.value=e.value.replace(/\n/g," ")),this.set("text",e.value),this._syncStyle()})),e.addEventListener("blur",(t=>this.set("active",!1))),l.supports("keyboardevents")&&this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Escape"==l.getEventKey(t)&&this.set("active",!1)}))),this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Enter"==l.getEventKey(t)&&!1===this.get("multiLine")&&(t.preventDefault(),this.set("active",!1))}))),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._startEditing()}));this._text.set("opacity",0);const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(""==this.get("text","")&&this.set("text"," "),t.show(0),this.setTimeout((()=>{this._syncStyle(),e.focus()}),100))}_stopEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._stopEditing()}));const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(this.set("text",e.value),t.hide(0),this._text.set("opacity",1))}_syncStyle(){const t=this.getPrivate("input"),e=this.getPrivate("textarea"),i=t.getPrivate("htmlElement");if(e&&i){const t=window.getComputedStyle(e);u.each(t,(t=>{e.style[t]="initial"})),e.style.color=this.get("fill",(0,a.$_)(0)).toCSS(this.get("fillOpacity",1)),e.style.backgroundColor="rgba(0, 0, 0, 0)",e.style.border="none",e.style.outline="none",e.style.padding="0",e.wrap="off",e.style.resize="none",e.style.overflow="hidden";const s=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);s>0?e.style.maxWidth=s+"px":e.style.minWidth="",e.style.height="auto",e.style.minHeight=e.scrollHeight+"px",this.get("width")&&(e.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",e.style.minWidth="");const n=this.get("lineHeight");n?n instanceof o.gG?e.style.lineHeight=n.value+"":c.isNumber(n)&&(e.style.lineHeight=n+""):e.style.lineHeight="1.2";let r=this.get("fontFamily");r||(r=getComputedStyle(i,"font-family").getPropertyValue("font-family")),e.style.fontFamily=r;let h=this.get("fontSize");h?c.isNumber(h)&&(h+="px"):h=getComputedStyle(i,"font-size").getPropertyValue("font-size"),e.style.fontSize=h;let l=this.get("fontWeight");l||(l=getComputedStyle(i,"font-weight").getPropertyValue("font-weight")),e.style.fontWeight=l;let d=this.get("fontStyle");d||(d=getComputedStyle(i,"font-style").getPropertyValue("font-style")),e.style.fontStyle=d;const p=this.get("oversizedBehavior");e.style.whiteSpace="wrap"==p?"pre-wrap":"nowrap",this._root.events.on("frameended",(()=>{""==e.style.minWidth&&(e.style.minWidth=e.scrollWidth+20+"px");const t=this.get("textAlign","start");"center"==t?(e.style.textAlign="center",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-50%)")):"end"==t?(e.style.textAlign="right",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-100%)")):e.style.textAlign=t}))}}_syncText(){const t=this.getPrivate("textarea");let e=this.get("text","");" "==e&&(e=""),t&&(t.value=e)}}d.className="EditableLabel",d.classNames=s._.classNames.concat([d.className])},2433:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radiusX")||this.isDirty("radiusY")||this.isDirty("rotation"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawEllipse(0,0,Math.abs(this.get("radiusX")),Math.abs(this.get("radiusY")))}}n.className="Ellipse",n.classNames=s.T.classNames.concat([n.className])},1479:function(t,e,i){"use strict";i.d(e,{T:function(){return l},u:function(){return h}});var s=i(4429),n=i(4596),r=i(4680),o=i(5040),a=i(5071);const h=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"];class l extends n.j{constructor(){super(...arguments),this._display=this._root._renderer.makeGraphics(),this._clear=!1}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const t=this.get("fillGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("fill")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("fill")}))))}}if(this.isDirty("strokeGradient")){const t=this.get("strokeGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("stroke")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("stroke")}))))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let t=this.get("strokeDasharray");o.isNumber(t)&&(t=t<.5?[0]:[t]),this._display.setLineDash(t);const e=this.get("strokeDashoffset");e&&this._display.setLineDashOffset(e);const i=this.get("blendMode",r.b.NORMAL);this._display.blendMode=i;const s=this.get("draw");s&&"function"==typeof s&&s(this._display,this);const n=this.get("svgPath");null!=n&&this._display.svgPath(n)}}_afterChanged(){if(super._afterChanged(),this._clear){const t=this.get("fill"),e=this.get("fillGradient"),i=this.get("fillPattern"),n=this.get("fillOpacity"),r=this.get("stroke"),o=this.get("strokeGradient"),h=this.get("strokePattern"),l=this.get("shadowColor"),c=this.get("shadowBlur"),u=this.get("shadowOffsetX"),d=this.get("shadowOffsetY"),p=this.get("shadowOpacity");if(l&&(c||u||d)&&this._display.shadow(l,c,u,d,p),t&&!e&&(this._display.beginFill(t,n),this._display.endFill()),e){if(t){const i=e.get("stops",[]);i.length&&a.each(i,(e=>{e.color&&!e.colorInherited||!t||(e.color=t,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=n,e.opacityInherited=!0)}))}const i=e.getFill(this);i&&(this._display.beginFill(i,n),this._display.endFill())}if(i){const t=i.pattern;t&&(this._display.beginFill(t,n),this._display.endFill(),i instanceof s.v&&i.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}if(r||o||h){const t=this.get("strokeOpacity");let e=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(e/=this.get("scale",1)),this.get("crisp")&&(e/=this._root._renderer.resolution);const i=this.get("lineJoin"),n=this.get("lineCap");if(r&&!o&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke()),o){const s=o.get("stops",[]);s.length&&a.each(s,(e=>{e.color&&!e.colorInherited||!r||(e.color=r,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=t,e.opacityInherited=!0)}));const h=o.getFill(this);h&&(this._display.lineStyle(e,h,t,i,n),this._display.endStroke())}if(h){let r=h.pattern;r&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke(),h instanceof s.v&&h.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}l.className="Graphics",l.classNames=n.j.classNames.concat([l.className])},6881:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var s=i(2010),n=i(5071),r=i(751);class o extends s.A{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(t){let e=t.get("paddingLeft",0),i=t.get("paddingRight",0),n=t.get("paddingTop",0),o=t.maxWidth()-e-i,a=o,h=1;(0,s.j)(t,(t=>{if(t.get("visible")&&t.getPrivate("visible")&&!t.get("forceHidden")&&"absolute"!=t.get("position")){let e=t.width();eh&&(h=e)}})),a=r.fitToRange(a,1,o),h=r.fitToRange(h,1,o);let l=1;l=this.get("fixedWidthGrid")?o/h:o/a,l=Math.max(1,Math.floor(l)),l=Math.min(this.get("maxColumns",Number.MAX_VALUE),l);let c=this.getColumnWidths(t,l,h,o),u=n,d=0,p=0;l=c.length;let g=e;(0,s.j)(t,(t=>{if("relative"==t.get("position")&&t.isVisible()){const i=t.get("marginTop",0),s=t.get("marginBottom",0);let n=t.adjustedLocalBounds(),r=t.get("marginLeft",0),o=t.get("marginRight",0),a=g+r-n.left,h=u+i-n.top;t.setPrivate("x",a),t.setPrivate("y",h),g+=c[d]+o,p=Math.max(p,t.height()+i+s),d++,d>=l&&(d=0,g=e,u+=p,p=0)}}))}getColumnWidths(t,e,i,r){let o=0,a=[],h=0;return(0,s.j)(t,(s=>{let n=s.adjustedLocalBounds();"absolute"!=s.get("position")&&s.isVisible()&&(this.get("fixedWidthGrid")?a[h]=i:a[h]=Math.max(0|a[h],n.right-n.left+s.get("marginLeft",0)+s.get("marginRight",0)),h{o+=t})),o>r?e>2?(e-=1,this.getColumnWidths(t,e,i,r)):[r]:a}}o.className="GridLayout",o.classNames=s.A.classNames.concat([o.className])},4431:function(t,e,i){"use strict";i.d(e,{G:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingLeft",0),i=t.innerWidth(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minWidth",t.getPrivate("minWidth",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.width()),i-=e+t.get("marginLeft",0)+t.get("marginRight",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginLeft",0)-t.get("marginRight",0),n=t.get("minWidth",t.getPrivate("minWidth",-1/0)),r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("width",s)}else t._prevSettings.width instanceof r.gG&&t.setPrivate("width",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginLeft",0),s=t.get("marginRight",0),n=t.get("maxWidth"),r=e.left,o=e.right;n&&o-r>n&&(o=r+n);let h=a+i-r;t.setPrivate("x",h),a=h+o+s}else t.setPrivate("x",void 0)}))}}o.className="HorizontalLayout",o.classNames=s.A.classNames.concat([o.className])},962:function(t,e,i){"use strict";i.d(e,{_:function(){return h}});var s=i(2036),n=i(6245),r=i(8777),o=i(5071),a=i(5040);class h extends r.W{constructor(){super(...arguments),this._textKeys=["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),o.each(this._textKeys,(t=>{const e=this.get(t);null!=e&&this._text.set(t,e)})),""!==this.get("html","")&&this._text.set("text",""),this.onPrivate("maxWidth",(()=>{this._setMaxDimentions()})),this.onPrivate("maxHeight",(()=>{this._setMaxDimentions()}))}_makeText(){this._text=this.children.push(s.x.new(this._root,{}))}_updateChildren(){super._updateChildren();const t=this._text;if(o.each(this._textKeys,(t=>{this._text.set(t,this.get(t))})),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),""!==this.get("html","")?t.set("text",""):(t.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){const e=this.get("textAlign");let i;null!=this.get("width")?i="right"==e?n.AQ:"center"==e?n.CI:0:"left"==e||"start"==e?i=this.get("paddingLeft",0):"right"!=e&&"end"!=e||(i=-this.get("paddingRight",0)),t.set("x",i)}const e=this.get("background");e&&e.setPrivate("visible",t._display.textVisible)}_maybeUpdateHTMLColor(){const t=this.getPrivate("htmlElement");t&&this.get("fill")&&(t.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){const t=this.get("rotation"),e=90==t||270==t||-90==t,i=this._text,s=this.get("maxWidth",this.getPrivate("maxWidth",1/0));a.isNumber(s)?i.set(e?"maxHeight":"maxWidth",s-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(e?"maxHeight":"maxWidth",void 0);const n=this.get("maxHeight",this.getPrivate("maxHeight",1/0));a.isNumber(n)?i.set(e?"maxWidth":"maxHeight",n-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(e?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",(()=>{i.markDirtyBounds()}))}_setDataItem(t){super._setDataItem(t),this._markDirtyKey("text"),this._markDirtyKey("html");const e=this._text;e.get("populateText")&&e.markDirtyText();const i=this.get("html");i&&""!==i&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}}h.className="Label",h.classNames=r.W.classNames.concat([h.className])},2010:function(t,e,i){"use strict";i.d(e,{A:function(){return r},j:function(){return n}});var s=i(6331);function n(t,e){t.get("reverseChildren",!1)?t.children.eachReverse(e):t.children.each(e)}class r extends s.JH{}r.className="Layout",r.classNames=s.JH.classNames.concat([r.className])},3105:function(t,e,i){"use strict";i.d(e,{D:function(){return c}});var s=i(3399),n=i(8777),r=i(962),o=i(3497),a=i(5769),h=i(7144),l=i(7652);class c extends s.F{constructor(){super(...arguments),this.itemContainers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:o.c.new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template])))),this.markers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template])))),this.labels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template])))),this.valueLabels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template])))),this.markerRectangles=this.addDisposer(new h.o(a.YS.new({}),(()=>o.c._new(this._root,{themeTags:l.mergeTags(this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template]))))}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(t){const e=this.children.push(this.itemContainers.make());return e._setDataItem(t),this.itemContainers.push(e),e.states.create("disabled",{}),e}makeMarker(){const t=this.markers.make();return this.markers.push(t),t.states.create("disabled",{}),t}makeLabel(){const t=this.labels.make();return t.states.create("disabled",{}),t}makeValueLabel(){const t=this.valueLabels.make();return t.states.create("disabled",{}),t}makeMarkerRectangle(){const t=this.markerRectangles.make();return t.states.create("disabled",{}),t}processDataItem(t){super.processDataItem(t);const e=this.makeItemContainer(t),i=this.get("nameField"),s=this.get("fillField"),n=this.get("strokeField");if(e){const r=this.get("clickTarget","itemContainer"),o=t.dataContext;o&&o.set&&o.set("legendDataItem",t),e._setDataItem(t),t.set("itemContainer",e);const a=this.makeMarker();if(a){e.children.push(a),a._setDataItem(t),t.set("marker",a);const i=this.get("useDefaultMarker"),r=a.children.push(this.makeMarkerRectangle());let h=t.get("fill"),l=t.get("stroke");t.set("markerRectangle",r),o&&o.get&&(h=o.get(s,h),l=o.get(n,l)),l||(l=h),i?o.on&&(o.on(s,(()=>{r.set("fill",o.get(s))})),o.on(n,(()=>{r.set("stroke",o.get(n))}))):o&&o.createLegendMarker&&o.createLegendMarker(),r.setAll({fill:h,stroke:l});const c=o.component;c&&c.updateLegendMarker&&c.updateLegendMarker(o)}const h=this.makeLabel();if(h){e.children.push(h),h._setDataItem(t),t.set("label",h),h.text.on("text",(()=>{e.setRaw("ariaLabel",h.text._getText()+("none"!==this.get("clickTarget")?"; "+this._t("Press ENTER to toggle"):"")),e.markDirtyAccessibility()})),o&&o.get&&t.set("name",o.get(i));let s=t.get("name");s&&h.set("text",s)}const l=this.makeValueLabel();if(l&&(e.children.push(l),l._setDataItem(t),t.set("valueLabel",l)),o&&o.show&&(o.on("visible",(t=>{e.set("disabled",!t)})),o.get("visible")||e.set("disabled",!0),"none"!=r)){let i=e;"marker"==r&&(i=a),this._addClickEvents(i,o,t)}this.children.values.sort(((t,e)=>{const i=t.dataItem.dataContext,s=e.dataItem.dataContext;if(i&&s){const t=this.data.indexOf(i),e=this.data.indexOf(s);if(t>e)return 1;if(t{const t=e.component;t&&t.hoverDataItem&&t.hoverDataItem(e)})),t.events.on("pointerout",(()=>{const t=e.component;t&&t.hoverDataItem&&t.unhoverDataItem(e)})),t.events.on("click",(()=>{const s=i.get("label").text._getText();e.show&&e.isHidden&&(e.isHidden()||!1===e.get("visible"))?(e.show(),t.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,s))):e.hide&&(e.hide(),t.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,s)))}))}disposeDataItem(t){super.disposeDataItem(t);const e=t.dataContext;e&&e.get&&e.get("legendDataItem")==t&&e.set("legendDataItem",void 0);let i=t.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let s=t.get("marker");s&&(this.markers.removeValue(s),s.dispose());let n=t.get("markerRectangle");n&&(this.markerRectangles.removeValue(n),n.dispose());let r=t.get("label");r&&(this.labels.removeValue(r),r.dispose());let o=t.get("valueLabel");o&&(this.valueLabels.removeValue(o),o.dispose())}}c.className="Legend",c.classNames=s.F.classNames.concat([c.className])},2077:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var s=i(1479);function n(t,e){for(let i=0,s=e.length;i0){let e=s[0];if(e.length>0){let i=e[0];t.moveTo(i.x,i.y);for(let e=0,i=s.length;e0){let e=t[0];this._display.moveTo(e.x,e.y),n(this._display,[[t]])}else if(e)n(this._display,e);else if(!this.get("draw")){let t=this.width(),e=this.height();this._display.moveTo(0,0),this._display.lineTo(t,e)}}}}o.className="Line",o.classNames=s.T.classNames.concat([o.className])},5812:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var s=i(8777),n=i(941),r=i(6387),o=i(751);class a extends s.W{constructor(){super(...arguments),this.line=this.children.push(r.P.new(this._root,{themeTags:["line"]})),this.hitLine=this.children.push(r.P.new(this._root,{themeTags:["hit"]})),this.startArrow=this.children.push(n.C.new(this._root,{themeTags:["start","arrow"]})),this.endArrow=this.children.push(n.C.new(this._root,{themeTags:["end","arrow"]}))}_afterNew(){this.addTag("link"),super._afterNew()}_updateChildren(){if(super._updateChildren(),this.isDirty("points")){let t=r.P.makeOrthogonal(this.get("points",[]));this.line.set("points",t),this.hitLine.set("points",t);const e=this.startArrow,i=this.endArrow,s=t.length;if(s>1){const[n,r]=t;e.setAll({x:n.x,y:n.y,rotation:o.getAngle(n,r)-90});const a=t[s-1],h=t[s-2];i.setAll({x:a.x,y:a.y,rotation:o.getAngle(h,a)+90})}else if(1===s){const[s]=t;e.setAll({x:s.x,y:s.y,rotation:0}),i.setAll({x:s.x,y:s.y,rotation:0})}}}}a.className="Link",a.classNames=s.W.classNames.concat([a.className])},8289:function(t,e,i){"use strict";i.d(e,{G:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){return function(e){return new s(e,t)}}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(s+a,n+a*e,r-a,o-a*i,r,o)}},5892:function(t,e,i){"use strict";i.d(e,{$:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){[t,e]=[e,t];let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){function e(e){return new s(e,t)}return e.tension=function(t){return n(+t)},e}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(n+a*e,s+a,o-a*i,r-a,o,r)}},7049:function(t,e,i){"use strict";i.d(e,{l:function(){return h}});var s=i(8777),n=i(6691),r=i(7142),o=i(941),a=i(1112);class h extends s.W{constructor(){super(...arguments),this.label=this.children.push(n.Y.new(this._root,{})),this.buttonsContainer=this.children.push(s.W.new(this._root,{themeTags:["buttons"]})),this.upButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["upbutton"]})),this.downButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["downbutton"]}))}_afterNew(){this.addTag("numericstepper"),this.set("layout",this._root.horizontalLayout),this.label.adapters.add("text",(t=>(t&&t.replace(/\D/g,""),""===t&&(t="0"),t))),this.set("background",r.A.new(this._root,{fillOpacity:0,fill:(0,a.$_)(16777215)})),this.buttonsContainer.states.create("hidden",{opacity:0,visible:!0}),this.events.on("pointerover",(()=>{this.buttonsContainer.set("active",!0)})),this.events.on("pointerout",(()=>{this.buttonsContainer.set("active",!1)})),this.label.on("text",(t=>{if(t){const e=parseFloat(t);isNaN(e)||this.set("value",e)}})),this.upButton.events.on("click",(()=>{this.set("value",this.get("value",0)+1)})),this.downButton.events.on("click",(()=>{this.set("value",Math.max(0,this.get("value",0)-1))})),super._afterNew()}_updateChildren(){super._updateChildren();const t=this.get("value",0),e=this.label;if(this.isDirty("value")&&e.set("text",t.toString()),this.isDirty("disabled")){const t=this.get("disabled",!1);this.set("interactive",!t),this.upButton.set("interactive",!t),this.downButton.set("interactive",!t),t?(this.label.set("editOn","none"),this.buttonsContainer.hide(0)):(this.label.set("editOn","click"),this.buttonsContainer.show(0))}}}h.className="NumericStepper",h.classNames=s.W.classNames.concat([h.className])},6387:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),this.isDirty("points")&&(this._clear=!0)}static makeOrthogonal(t){if(t.length>1){const e=[];for(let i=0;i0&&o&&l){if(h){s=Math.min(s,Math.abs(r.x-o.x)/2,Math.abs(r.y-n.y)/2);const e=Math.sign(r.y-n.y);t.lineTo(r.x,r.y-s*e);const i=o.x{this._display.image=e,this._updateSize(),!i.isDisposed()&&i.isEnabled("loaded")&&i.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{!i.isDisposed()&&i.isEnabled("loaderror")&&i.dispatch("loaderror",{type:"loaderror",target:this})}))}}_updateSize(){super._updateSize();const t=this._display.image;if(t){let e=this.getPrivate("width",this.get("width")),i=this.getPrivate("height",this.get("height"));const s=t.width&&t.height?t.width/t.height:0;n.isNumber(e)&&n.isNumber(i)?(this._display.width=e,this._display.height=i):n.isNumber(e)&&s?i=e/s:n.isNumber(i)&&s?e=i*s:(e=t.width,i=t.height),n.isNumber(e)&&(this._display.width=e),n.isNumber(i)&&(this._display.height=i),this.markDirtyBounds(),this.markDirty()}}}r.className="Picture",r.classNames=s.j.classNames.concat([r.className])},8931:function(t,e,i){"use strict";i.d(e,{i:function(){return r}});var s=i(1479),n=i(751);class r extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let t=this.width(),e=this.height();if(t>0&&e>0){let i=this.get("cornerRadius",8);i=n.fitToRange(i,0,Math.min(t/2,e/2));let s=this.get("pointerX",0),r=this.get("pointerY",0),o=this.get("pointerBaseWidth",15)/2,a=0,h=0,l=0,c=(s-a)*(e-h)-(r-h)*(t-a),u=(s-l)*(0-e)-(r-e)*(t-l);const d=this._display;if(d.moveTo(i,0),c>0&&u>0){let e=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,-1/0,0),d.lineTo(e-o,0),d.lineTo(s,r),d.lineTo(e+o,0)}if(d.lineTo(t-i,0),d.arcTo(t,0,t,i,i),c>0&&u<0){let a=Math.round(n.fitToRange(r,i+o,e-o-i));s=n.fitToRange(s,t,1/0),d.lineTo(t,i),d.lineTo(t,Math.max(a-o,i)),d.lineTo(s,r),d.lineTo(t,a+o)}if(d.lineTo(t,e-i),d.arcTo(t,e,t-i,e,i),c<0&&u<0){let a=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,e,1/0),d.lineTo(t-i,e),d.lineTo(a+o,e),d.lineTo(s,r),d.lineTo(a-o,e)}if(d.lineTo(i,e),d.arcTo(0,e,0,e-i,i),c<0&&u>0){let t=Math.round(n.fitToRange(r,i+o,e-i-o));s=n.fitToRange(s,-1/0,0),d.lineTo(0,e-i),d.lineTo(0,t+o),d.lineTo(s,r),d.lineTo(0,Math.max(t-o,i))}d.lineTo(0,i),d.arcTo(0,0,i,0,i),d.closePath()}}}}r.className="PointedRectangle",r.classNames=s.T.classNames.concat([r.className])},7770:function(t,e,i){"use strict";i.d(e,{m:function(){return r}});var s=i(1479),n=i(5071);class r extends s.T{_beforeChanged(){if(super._beforeChanged(),this.isDirty("coordinates")){const t=[],e=this.get("coordinates");e&&n.each(e,(e=>{t.push({x:e[0],y:e[1]})})),this.set("points",t)}if(this.isPrivateDirty("points")&&(this._clear=!0),this.isDirty("points")){this._clear=!0;const t=this.get("points"),e=this._prevSettings.points;if(e){if(t){let i=n.copy(t),s=n.copy(e),r=i.length,o=s.length;if(r>o){let t=n.copy(i);for(let e=0;er){let t=n.copy(s);for(let e=0;e{this._markDirtyPrivateKey("morphProgress")}))}}else this.setPrivateRaw("previousPoints",t),this.setPrivateRaw("points",t);let i=1/0,s=-1/0,r=1/0,o=-1/0;if(t)for(let e=1,n=t.length;e{this.label.markDirtyKey("text")}))}}}l.className="ProgressPie",l.classNames=n.W.classNames.concat([l.className])},815:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(6245),n=i(962),r=i(4244),o=i(751),a=i(7652);class h extends n._{constructor(){super(...arguments),this._flipped=!1}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(r.f.new(this._root,{}))}baseRadius(){const t=this.getPrivate("radius",0),e=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return e+a.relativeToValue(i,t-e)}radius(){const t=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(t?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){const t=this.get("textType","adjusted"),e=this.get("inside",!1),i=this.get("orientation");let n=o.normalizeAngle(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",e);const r=o.sin(n),a=o.cos(n);let h=this.baseRadius(),l=this.radius();if(this._display.angle=0,"circular"==t)this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",l);else{0==h&&(n=0,l=0);let e=l*a,o=l*r;"radial"==t?(this.setRaw("x",e),this.setRaw("y",o),n<90||n>270||"auto"!=i?(this._display.angle=n,this._flipped=!1):(this._display.angle=n+180,this._flipped=!0),this._dirty.rotation=!1):"adjusted"==t?(this.setRaw("centerX",s.CI),this.setRaw("centerY",s.CI),this.setRaw("x",e),this.setRaw("y",o)):"regular"==t&&(this.setRaw("x",e),this.setRaw("y",o))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){const t=this.get("textType","regular"),e=this.get("inside",!1);let i=0,n=0,r=this.get("labelAngle",0),a=this.localBounds(),h=a.right-a.left,l=a.bottom-a.top;if("radial"==t){if(this._flipped){let t=this.get("centerX");t instanceof s.gG&&(h*=1-2*t.value),i=h*o.cos(r),n=h*o.sin(r)}}else e||"adjusted"!=t||(i=h/2*o.cos(r),n=l/2*o.sin(r));this.setRaw("dx",i),this.setRaw("dy",n),super._updatePosition()}get text(){return this._text}}h.className="RadialLabel",h.classNames=n._.classNames.concat([h.className])},4244:function(t,e,i){"use strict";i.d(e,{f:function(){return r}});var s=i(2036),n=i(751);class r extends s.x{constructor(){super(...arguments),this._display=this._root._renderer.makeRadialText("",this.textStyle)}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*n.RADIANS,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}r.className="RadialText",r.classNames=s.x.classNames.concat([r.className])},7142:function(t,e,i){"use strict";i.d(e,{A:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let t=this.width(),e=this.height(),i=0,s=0,n=t/Math.abs(t),r=e/Math.abs(e);if(this.get("containStroke",!1)){const o=this.get("strokeWidth",0);t-=o*n,e-=o*r,i+=o/2*n,s+=o/2*r}this._display.drawRect(i,s,t,e)}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Rectangle",n.classNames=s.T.classNames.concat([n.className])},3497:function(t,e,i){"use strict";i.d(e,{c:function(){return a}});var s=i(5040),n=i(751),r=i(7652),o=i(7142);class a extends o.A{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let t=this.width(),e=this.height(),i=t/Math.abs(t),o=e/Math.abs(e),a=0,h=0;const l=this.get("strokeWidth",0);this.get("containStroke",!1)&&(t-=i*l,e-=o*l,a+=i*l/2,h+=o*l/2);let c=t,u=e;if(s.isNumber(c)&&s.isNumber(u)){let t=Math.min(c,u)/2,e=r.relativeToValue(this.get("cornerRadiusTL",8),t),s=r.relativeToValue(this.get("cornerRadiusTR",8),t),l=r.relativeToValue(this.get("cornerRadiusBR",8),t),d=r.relativeToValue(this.get("cornerRadiusBL",8),t),p=Math.min(Math.abs(c/2),Math.abs(u/2));e=n.fitToRange(e,0,p),s=n.fitToRange(s,0,p),l=n.fitToRange(l,0,p),d=n.fitToRange(d,0,p);const g=this._display;g.moveTo(a+e*i,h),g.lineTo(a+c-s*i,h),s>0&&g.arcTo(a+c,h,a+c,h+s*o,s),g.lineTo(a+c,h+u-l*o),l>0&&g.arcTo(a+c,h+u,a+c-l*i,h+u,l),g.lineTo(a+d*i,h+u),d>0&&g.arcTo(a,h+u,a,h+u-d*o,d),g.lineTo(a,h+e*o),e>0&&g.arcTo(a,h,a+e*i,h,e),g.closePath()}}}a.className="RoundedRectangle",a.classNames=o.A.classNames.concat([a.className])},6001:function(t,e,i){"use strict";i.d(e,{L:function(){return l}});var s=i(3497),n=i(8777),r=i(1479),o=i(8054),a=i(5040),h=i(7652);class l extends n.W{constructor(){super(...arguments),this.thumb=this._makeThumb(),this.startGrip=this._makeButton(),this.endGrip=this._makeButton(),this._thumbBusy=!1,this._startDown=!1,this._endDown=!1,this._thumbDown=!1}_addOrientationClass(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=s.c.new(this._root,{themeTags:h.mergeTags(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(o.z.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:r.T.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(s.c.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(t){t&&this._disposers.push(t.events.on("stopped",(()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1})))}_afterNew(){this._addOrientationClass(),super._afterNew();const t=this.startGrip,e=this.endGrip,i=this.thumb,s=this.get("background");s&&this._disposers.push(s.events.on("click",(t=>{this.setPrivateRaw("isBusy",!0);const e=this._display.toLocal(t.point),s=this.width(),n=this.height(),r=this.get("orientation");let o,a,h;o="vertical"==r?(e.y-i.height()/2)/n:(e.x-i.width()/2)/s,"vertical"==r?(a=o*n,h="y"):(a=o*s,h="x");const l=this.get("animationDuration",0);l>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:h,to:a,duration:l,easing:this.get("animationEasing")}))):(this.thumb.set(h,a),this._root.events.once("frameended",(()=>{this.setPrivateRaw("isBusy",!1)})))}))),this._disposers.push(i.events.on("dblclick",(t=>{if(!h.isLocalEvent(t.originalEvent,this))return;const e=this.get("animationDuration",0),i=this.get("animationEasing");this.animate({key:"start",to:0,duration:e,easing:i}),this.animate({key:"end",to:1,duration:e,easing:i})}))),this._disposers.push(t.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"}))),this._disposers.push(e.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"}))),this._disposers.push(i.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0}))),this._disposers.push(t.events.on("globalpointerup",(()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1}))),this._disposers.push(e.events.on("globalpointerup",(()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1}))),this._disposers.push(i.events.on("globalpointerup",(()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1}))),this._disposers.push(t.on("x",(()=>{this._updateThumb()}))),this._disposers.push(e.on("x",(()=>{this._updateThumb()}))),this._disposers.push(t.on("y",(()=>{this._updateThumb()}))),this._disposers.push(e.on("y",(()=>{this._updateThumb()}))),this._disposers.push(i.events.on("positionchanged",(()=>{this._updateGripsByThumb()}))),"vertical"==this.get("orientation")?(t.set("x",0),e.set("x",0),this._disposers.push(i.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()-i.height()),0)))),this._disposers.push(i.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("x",(t=>this.width()/2))),this._disposers.push(e.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0)))),this._disposers.push(e.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0))))):(t.set("y",0),e.set("y",0),this._disposers.push(i.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()-i.width()),0)))),this._disposers.push(i.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("y",(t=>this.height()/2))),this._disposers.push(e.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))),this._disposers.push(e.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){const t="rangechanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){const t="released";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}updateGrips(){const t=this.startGrip,e=this.endGrip,i=this.get("orientation"),s=this.height(),n=this.width();"vertical"==i?(t.set("y",s*this.get("start",0)),e.set("y",s*this.get("end",1))):(t.set("x",n*this.get("start",0)),e.set("x",n*this.get("end",1)));const r=this.getPrivate("positionTextFunction"),o=Math.round(100*this.get("start",0)),a=Math.round(100*this.get("end",0));let h,l;r?(h=r.call(this,this.get("start",0)),l=r.call(this,this.get("end",0))):(h=o+"%",l=a+"%"),t.set("ariaLabel",this._t("From %1",void 0,h)),t.set("ariaValueNow",""+o),t.set("ariaValueText",o+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100"),e.set("ariaLabel",this._t("To %1",void 0,l)),e.set("ariaValueNow",""+a),e.set("ariaValueText",a+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100")}_updateThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip,s=this.height(),n=this.width();let r=e.x(),o=i.x(),h=e.y(),l=i.y(),c=0,u=1;"vertical"==this.get("orientation")?a.isNumber(h)&&a.isNumber(l)&&(this._thumbBusy||t.isDragging()||(t.set("height",l-h),t.set("y",h)),c=h/s,u=l/s):a.isNumber(r)&&a.isNumber(o)&&(this._thumbBusy||t.isDragging()||(t.set("width",o-r),t.set("x",r)),c=r/n,u=o/n),!this.getPrivate("isBusy")||this.get("start")==c&&this.get("end")==u||(this.set("start",c),this.set("end",u));const d=this.getPrivate("positionTextFunction"),p=Math.round(100*this.get("start",0)),g=Math.round(100*this.get("end",0));let f,_;d?(f=d.call(this,this.get("start",0)),_=d.call(this,this.get("end",0))):(f=p+"%",_=g+"%"),t.set("ariaLabel",this._t("From %1 to %2",void 0,f,_)),t.set("ariaValueNow",""+p),t.set("ariaValueText",p+"%")}_updateGripsByThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip;if("vertical"==this.get("orientation")){const s=t.height();e.set("y",t.y()),i.set("y",t.y()+s)}else{const s=t.width();e.set("x",t.x()),i.set("x",t.x()+s)}}}l.className="Scrollbar",l.classNames=n.W.classNames.concat([l.className])},5829:function(t,e,i){"use strict";i.d(e,{j:function(){return h}});var s=i(1337),n=i(8777),r=i(7144),o=i(6245),a=i(5071);class h extends s.k{constructor(){super(...arguments),this.seriesContainer=n.W.new(this._root,{width:o.AQ,height:o.AQ,isMeasured:!1}),this.series=new r.dn}_afterNew(){super._afterNew(),this._disposers.push(this.series);const t=this.seriesContainer.children;this._disposers.push(this.series.events.onAll((e=>{if("clear"===e.type){a.each(e.oldValues,(t=>{this._removeSeries(t)}));const t=this.get("colors");t&&t.reset();const i=this.get("patterns");i&&i.reset()}else if("push"===e.type)t.moveValue(e.newValue),this._processSeries(e.newValue);else if("setIndex"===e.type)t.setIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("insertIndex"===e.type)t.insertIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("removeIndex"===e.type)this._removeSeries(e.oldValue);else if("moveIndex"===e.type)t.moveValue(e.value,e.newIndex),this._processSeries(e.value);else{if("swap"!==e.type)throw new Error("Unknown IListEvent type");{const i=e.a,s=e.b,n=this.series.indexOf(i),r=this.series.indexOf(s);t.moveValue(i,r),t.moveValue(s,n),this.series.each((t=>{this._processSeries(t),t.markDirtyValues()}))}}})))}_processSeries(t){t.chart=this,t._placeBulletsContainer(this)}_removeSeries(t){t._handleRemoved(),t.isDisposed()||(this.seriesContainer.children.removeValue(t),t._removeBulletsContainer())}}h.className="SerialChart",h.classNames=s.k.classNames.concat([h.className])},3399:function(t,e,i){"use strict";i.d(e,{F:function(){return g}});var s=i(7582),n=i(9361),r=i(7144),o=i(1112),a=i(6490),h=i(6245),l=i(8777),c=i(962),u=i(5071),d=i(5040),p=i(1926);class g extends n.w{constructor(){super(...arguments),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1,this._dataProcessed=!1,this._baseSeriesDirty=!1,this.bullets=new r.aV,this.bulletsContainer=l.W.new(this._root,{width:h.AQ,height:h.AQ,position:"absolute"})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll((()=>{this._handleBullets(this.dataItems)})))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let t=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),t)}endIndex(){let t=this.dataItems.length;return Math.max(0,Math.min(this.getPrivate("endIndex",t),t))}_handleBullets(t){u.each(t,(t=>{const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)})),this.markDirtyValues()}_makeBullets(t){this._shouldMakeBullet(t)&&(t.bullets=[],this.bullets.each((e=>{this._makeBullet(t,e)})))}_shouldMakeBullet(t){return!0}_makeBullet(t,e,i){const s=e(this._root,this,t);return s&&(s._index=i,this._makeBulletReal(t,s)),s}_makeBulletReal(t,e){let i=e.get("sprite");i&&(i._setDataItem(t),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),e.series=this,t.bullets.push(e)}addBullet(t,e){t.bullets||(t.bullets=[]),e&&this._makeBulletReal(t,e)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();const t=this.dataItems,e=t.length;let i=this.startIndex(),s=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const t=this.getPrivate("baseValueSeries");t&&this._disposers.push(t.onPrivate("startIndex",(()=>{this._baseSeriesDirty=!0,this.markDirtyValues()})))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,e),this._aggregatesCalculated=!0,0!=i&&(this._psi=void 0))),this._psi==i&&this._pei==s&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===i&&s===e&&this._aggregatesCalculated||this._calculateAggregates(i,s),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let t=this.get("tooltip");t&&(t.hide(0),t.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let t;const e=this.get("legendDataItem");if(e&&(t=e.get("markerRectangle"),t&&this.isVisible())){if(this.isDirty("stroke")){let e=this.get("stroke");t.set("stroke",e)}if(this.isDirty("fill")){let e=this.get("fill");t.set("fill",e)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let i=this.startIndex(),s=this.endIndex();s-1==s.indexOf(t))));const n={},r={},o={},a={},h={},l={},c={},u={},d={};for(let t=0,e=i.length;t{if(0===t){const t=l[x],s=i-t;e.setRaw(_,s),e.setRaw(m,s/t*100)}const n=i-d[x],r=i-l[x];e.setRaw(y,n),e.setRaw(v,n/d[x]*100),e.setRaw(w,r),e.setRaw(b,r/l[x]*100),d[s]=i};for(let t=k;tt&&(a[f]=t),h[f]0&&t--,delete d[f];for(let e=t;e0&&u.each(t,(t=>{const e=t.minValue||this.getPrivate(t.dataField+"Low")||0,i=t.maxValue||this.getPrivate(t.dataField+"High")||0;u.each(t.target._entities,(s=>{const n=s.dataItem.get(t.dataField);if(!d.isNumber(n)){t.neutral&&s.set(t.key,t.neutral);const e=s.states;if(e){const i=e.lookup("default");i&&t.neutral&&i.set(t.key,t.neutral)}if(!t.customFunction)return}if(t.customFunction)t.customFunction.call(this,s,e,i,n);else{let r,l;r=t.logarithmic?(Math.log(n)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E):(n-e)/(i-e),!d.isNumber(n)||d.isNumber(r)&&Math.abs(r)!=1/0||(r=.5),d.isNumber(t.min)?l=t.min+(t.max-t.min)*r:t.min instanceof o.Il?l=o.Il.interpolate(r,t.min,t.max):t.min instanceof h.gG&&(l=(0,a.Wn)(r,t.min,t.max)),s.set(t.key,l);const c=s.states;if(c){const e=c.lookup("default");e&&e.set(t.key,l)}}}))})),this.get("visible")){const t=this.dataItems;let e=t.length,i=this.startIndex(),s=this.endIndex();s0&&i--;for(let e=0;e{this._positionBullet(t);const e=t.get("sprite");t.get("dynamic")&&(e&&(e._markDirtyKey("fill"),e.markDirtySize()),e instanceof l.W&&e.walkChildren((t=>{t._markDirtyKey("fill"),t.markDirtySize(),t instanceof c._&&t.text.markDirtyText()}))),e instanceof c._&&e.get("populateText")&&e.text.markDirtyText()}))}_hideBullets(t){t.bullets&&u.each(t.bullets,(t=>{let e=t.get("sprite");e&&e.setPrivate("visible",!1)}))}_positionBullet(t){}_placeBulletsContainer(t){t.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const t=this.bulletsContainer;t.parent&&t.parent.children.removeValue(t)}disposeDataItem(t){const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.show(e))})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.hide(e))})),yield Promise.all(s)}))}_sequencedShowHide(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(d.isNumber(e)||(e=this.get("interpolationDuration",0)),e>0){const i=this.startIndex(),n=this.endIndex();yield Promise.all(u.map(this.dataItems,((r,o)=>(0,s.mG)(this,void 0,void 0,(function*(){let s=e||0;(on+10)&&(s=0);let a=this.get("sequencedDelay",0)+s/(n-i);yield p.sleep(a*(o-i)),t?yield this.showDataItem(r,s):yield this.hideDataItem(r,s)})))))}else yield Promise.all(u.map(this.dataItems,(e=>t?this.showDataItem(e,0):this.hideDataItem(e,0))))}))}updateLegendValue(t){if(t){const e=t.get("legendDataItem");if(e){const i=e.get("valueLabel");if(i){const e=i.text;let s="";i._setDataItem(t),s=this.get("legendValueText",e.get("text","")),i.set("text",s),e.markDirtyText()}const s=e.get("label");if(s){const e=s.text;let i="";s._setDataItem(t),i=this.get("legendLabelText",e.get("text","")),s.set("text",i),e.markDirtyText()}}}}updateLegendMarker(t){}_onHide(){super._onHide();const t=this.getTooltip();t&&t.hide()}hoverDataItem(t){}unhoverDataItem(t){}_getBase(t){const e=this.dataItems[this.startIndex()];return e?e.get(t):0}}g.className="Series",g.classNames=n.w.classNames.concat([g.className])},5863:function(t,e,i){"use strict";i.d(e,{p:function(){return h}});var s=i(1479),n=i(5040),r=i(6245),o=i(832),a=i(751);class h extends s.T{constructor(){super(...arguments),this.ix=0,this.iy=0,this._generator=(0,o.Z)()}_getTooltipPoint(){let t=this.get("tooltipX"),e=this.get("tooltipY"),i=0,s=0;n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e);let o=this.get("radius",0),a=this.get("innerRadius",0);return o+=this.get("dRadius",0),a+=this.get("dInnerRadius",0),a<0&&(a=o+a),t instanceof r.gG&&(i=this.ix*(a+(o-a)*t.value)),e instanceof r.gG&&(s=this.iy*(a+(o-a)*e.value)),this.get("arc")>=360&&0==a&&(i=0,s=0),{x:i,y:s}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this.get("startAngle",0),e=this.get("arc",0);const i=this._generator;e<0&&(t+=e,e*=-1),e>.1&&i.cornerRadius(this.get("cornerRadius",0)),i.context(this._display);let s=this.get("radius",0),n=this.get("innerRadius",0);s+=this.get("dRadius",0),n+=this.get("dInnerRadius",0),n<0&&(n=s+n),i({innerRadius:n,outerRadius:s,startAngle:(t+90)*a.RADIANS,endAngle:(t+e+90)*a.RADIANS});let r=t+e/2;this.ix=a.cos(r),this.iy=a.sin(r);const o=this.get("shiftRadius",0);this.setRaw("dx",this.ix*o),this.setRaw("dy",this.iy*o),this.markDirtyPosition()}}}h.className="Slice",h.classNames=s.T.classNames.concat([h.className])},2162:function(t,e,i){"use strict";i.d(e,{i:function(){return n}});var s=i(6001);class n extends s.L{_afterNew(){this._addOrientationClass(),super._afterNew(),this.endGrip.setPrivate("visible",!1),this.thumb.setPrivate("visible",!1)}updateGrips(){super.updateGrips();const t=this.startGrip;this.endGrip.setAll({x:t.x(),y:t.y()}),this.setRaw("end",this.get("start"))}}n.className="Slider",n.classNames=s.L.classNames.concat([n.className])},4596:function(t,e,i){"use strict";i.d(e,{j:function(){return _}});var s=i(7582),n=i(6331),r=i(5769),o=i(6245),a=i(9770),h=i(7449),l=i(6490),c=i(7652),u=i(5071),d=i(5040),p=i(256),g=i(751);class f extends a.p{constructor(t){super(),this._rendererDisposers={},this._dispatchParents=!0,this._sprite=t}_makePointerEvent(t,e){return{type:t,originalEvent:e.event,point:e.point,simulated:e.simulated,native:e.native,target:this._sprite}}_onRenderer(t,e){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[t];if(void 0===i){const s=this._sprite._display.on(t,(t=>{e.call(this,t)}));i=this._rendererDisposers[t]=new h.DM((()=>{delete this._rendererDisposers[t],s.dispose()}))}return i.increment()}_on(t,e,i,s,n,r,o){const a=super._on(t,e,i,s,n,r,o),l=f.RENDERER_EVENTS[e];return void 0!==l&&(a.disposer=new h.FV([a.disposer,this._onRenderer(e,l)])),a}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(t,e){const i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(t,e),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(t,e)}finally{this._dispatchParents=i}}}f.RENDERER_EVENTS={click:function(t){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",t))&&this.dispatch("click",this._makePointerEvent("click",t))},rightclick:function(t){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",t))},middleclick:function(t){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",t))},dblclick:function(t){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",t))},pointerover:function(t){const e=this._sprite;let i=!0;if(e.getPrivate("trustBounds")){e._getBounds();const s=e.globalBounds();if(e.isType("Graphics")){const t=e.get("strokeWidth",1)/2;t>=1&&(s.left-=t,s.right+=t,s.top-=t,s.bottom+=t)}g.inBounds(t.point,s)||(i=!1,e._root._renderer.removeHovering(e._display))}i&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",t))},pointerout:function(t){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",t))},pointerdown:function(t){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",t))},pointerup:function(t){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",t))},globalpointerup:function(t){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",t))},globalpointermove:function(t){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",t))},wheel:function(t){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:t.event,point:t.point})}};class _ extends n.JH{constructor(){super(...arguments),this._adjustedLocalBounds={left:0,right:0,top:0,bottom:0},this._localBounds={left:0,right:0,top:0,bottom:0},this._sizeDirty=!1,this._isDragging=!1,this._isHidden=!1,this._isShowing=!1,this._isHiding=!1,this._isDown=!1,this._downPoints={}}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(t){this._markDirtyKey(t)}_markDirtyKey(t){super._markDirtyKey(t),"x"!=t&&"y"!=t&&"dx"!=t&&"dy"!=t||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(t){super._markDirtyPrivateKey(t),"x"!=t&&"y"!=t||this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new f(this)}_processTemplateField(){let t;const e=this.get("templateField");if(e){const i=this.dataItem;if(i){const s=i.dataContext;s&&(t=s[e],t instanceof r.YS||!t||(t=r.YS.new(t)))}}this._templateField!==t&&(this._removeTemplateField(),this._templateField=t,t&&t._setObjectTemplate(this),this._applyTemplates())}_setDataItem(t){const e=this._dataItem;this._dataItem=t,this._processTemplateField();const i="dataitemchanged";t!=e&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:e,newDataItem:t})}set dataItem(t){this._setDataItem(t)}get dataItem(){if(this._dataItem)return this._dataItem;{let t=this._parent;for(;t;){if(t._dataItem)return t._dataItem;t=t._parent}}}_addPercentageSizeChildren(){let t=this.parent;t&&(this.get("width")instanceof o.gG||this.get("height")instanceof o.gG?u.pushOne(t._percentageSizeChildren,this):u.removeFirst(t._percentageSizeChildren,this))}_addPercentagePositionChildren(){let t=this.parent;t&&(this.get("x")instanceof o.gG||this.get("y")instanceof o.gG?u.pushOne(t._percentagePositionChildren,this):u.removeFirst(t._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const t=this._localBounds;if(t){const e=this.get("centerX");null!=e&&(this._display.pivot.x=t.left+c.relativeToValue(e,t.right-t.left));const i=this.get("centerY");null!=i&&(this._display.pivot.y=t.top+c.relativeToValue(i,t.bottom-t.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const t=this._prevSettings.tooltip;t&&t.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0);const e=this._tooltipPointerDp;e&&(e.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))),this._tooltipPointerDp=new h.FV([this.events.on("pointerover",(()=>{this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))})),this.events.on("pointerout",(()=>{const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0)}))]))}}_handleStates(){this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();const t=this._display,e=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new h.FV([e.on("pointerdown",(t=>{this.dragStart(t)})),e.on("globalpointermove",(t=>{this.dragMove(t)})),e.on("globalpointerup",(t=>{this.dragStop(t)}))])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),t.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const t=this.get("tooltipText"),i=this.get("tooltipHTML"),s=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(t||i)&&("click"==s?(this._tooltipDp=new h.FV([e.on("click",(()=>{this.setTimeout((()=>{const t=this.getTooltip();t&&!t.isHidden()&&t.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()}),10)})),c.addEventListener(document,"click",(t=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)):"always"==s||(this._tooltipDp=new h.FV([e.on("pointerover",(()=>{this.showTooltip()})),e.on("pointerout",(()=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let t=this.get("toggleKey");t&&"none"!=t?this._toggleDp=e.on("click",(()=>{this._isDragging||this.set(t,!this.get(t))})):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(t.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),t.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),t.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?t.visible=!0:(t.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const t=this.parent;t&&(this.isDirty("width")&&this.get("width")instanceof o.gG||this.isDirty("height")&&this.get("height")instanceof o.gG)&&(t.markDirty(),t._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const e=this.get("wheelable");e&&this.set("interactive",!0),t.wheelable=!!e}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(t.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){const t=this.get("blur",0);0!=t&&(i+=" blur("+t+"px)")}if(this.isDirty("saturate")){const t=this.get("saturate",1);1!=t&&(i+=" saturate("+t+")")}if(this.isDirty("brightness")){const t=this.get("brightness",1);1!=t&&(i+=" brightness("+t+")")}if(this.isDirty("contrast")){const t=this.get("contrast",1);1!=t&&(i+=" contrast("+t+")")}if(this.isDirty("sepia")){const t=this.get("sepia",0);0!=t&&(i+=" sepia("+t+")")}if(this.isDirty("hue")){const t=this.get("hue",0);0!=t&&(i+=" hue-rotate("+t+"deg)")}if(this.isDirty("invert")){const t=this.get("invert",0);0!=t&&(i+=" invert("+t+")")}if(i&&(t.filter=i),this.isDirty("cursorOverStyle")&&(t.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new h.FV([e.on("focus",(()=>{this.showTooltip()})),e.on("blur",(()=>{this.hideTooltip()}))]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(e.on("blur",(()=>{this.setPrivateRaw("touchHovering",!1)}))),this._disposers.push(e.once("boundschanged",(()=>{this.markDirtyAccessibility()})))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(t.exportable=this.get("exportable")),this.isDirty("interactive")){const t=this.events;this.get("interactive")&&!t.isDisposed()?this._hoverDp=new h.FV([t.on("click",(t=>{c.isTouchEvent(t.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout((()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}),10))})),t.on("globalpointerup",(t=>{c.isTouchEvent(t.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})),this._isDown&&this._handleUp(t)})),t.on("pointerover",(()=>{this._handleOver()})),t.on("pointerout",(()=>{this._handleOut()})),t.on("pointerdown",(t=>{this._handleDown(t)}))]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}dragStart(t){this._dragEvent=t,this.events.stopParentDispatch()}dragStop(t){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const e="dragstop";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(t){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const e=c.getPointerId(t.originalEvent);delete this._downPoints[e],0==p.keys(this._downPoints).length&&(this._isDown=!1)}}_hasMoved(t){const e=c.getPointerId(t.originalEvent),i=this._downPoints[e];if(i){const e=Math.abs(i.x-t.point.x),s=Math.abs(i.y-t.point.y);return e>5||s>5}return!1}_hasDown(){return p.keys(this._downPoints).length>0}_handleDown(t){const e=this.parent;if(e&&!this.get("draggable")&&e._handleDown(t),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:t.point.x,y:t.point.y},this._isDown=!0;const e=c.getPointerId(t.originalEvent);this._downPoints[e]={x:t.point.x,y:t.point.y}}}dragMove(t){let e=this._dragEvent;if(e){if(e.simulated&&!t.simulated)return!0;let i=0,s=this.parent,n=1;for(;null!=s;)i+=s.get("rotation",0),s=s.parent,s&&(n*=s.get("scale",1));let r=(t.point.x-e.point.x)/n,o=(t.point.y-e.point.y)/n;const a=this.events;if(e.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}if(this._isDragging){let e=this._dragPoint;this.set("x",e.x+r*g.cos(i)+o*g.sin(i)),this.set("y",e.y+o*g.cos(i)-r*g.sin(i));const s="dragged";a.isEnabled(s)&&a.dispatch(s,{type:s,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}else if(Math.hypot(r,o)>5){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let t=this.parent,e=0;for(;;){if(!t)return e;++e,t=t.parent}}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const t=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),t.isMeasured=!0,t.invalidateBounds();const e=this.parent;e&&"absolute"!=this.get("position")&&(null==e.get("width")||null==e.get("height")||e.get("layout"))&&e.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const t=this._adjustedLocalBounds;let e;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),e=this._adjustedLocalBounds):(e={left:0,right:0,top:0,bottom:0},this._localBounds=e,this._adjustedLocalBounds=e),!t||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom){const t="boundschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(t){let e=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));d.isNumber(e)&&t.right-t.left0?t.right=t.left+s:t.left=t.right+s),d.isNumber(n)&&(n>0?t.bottom=t.top+n:t.top=t.bottom+n)}_removeParent(t){t&&(t.children.removeValue(this),u.removeFirst(t._percentageSizeChildren,this),u.removeFirst(t._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(t){if(!this.isDisposed()){const e=this.getTooltip(),i=this.get("tooltipText"),s=this.get("tooltipHTML");if((i||s)&&e){const n=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);if("fixed"!=n&&t||(this._display._setMatrix(),t=this.toGlobal(r._getTooltipPoint())),"pointer"==n){const e=this.getPrivate("lastTooltipCoords");if(e&&e.x==t.x&&e.y==t.y)return;this.setPrivate("lastTooltipCoords",t)}e.set("pointTo",t),e.set("tooltipTarget",r),e.get("x")||e.set("x",t.x),e.get("y")||e.set("y",t.y),i&&e.label.set("text",i),s&&e.label.set("html",s);const o=this.dataItem;if(o&&e.label._setDataItem(o),"always"==this.get("showTooltipOn")&&(t.x<0||t.x>this._root.width()||t.y<0||t.y>this._root.height()))return void this.hideTooltip();e.label.text.markDirtyText();const a=e.show();return this.setPrivateRaw("showingTooltip",!0),a}}}hideTooltip(){const t=this.getTooltip();if(t&&(this.removePrivate("lastTooltipCoords"),t.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==t)){let e=t.get("keepTargetHover")&&0==t.get("stateAnimationDuration",0)?400:void 0;const i=t.hide(e);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){const t=this._localBounds;if(t){let e=0,i=0;return this.get("isMeasured")?(e=t.left+c.relativeToValue(this.get("tooltipX",0),t.right-t.left),i=t.top+c.relativeToValue(this.get("tooltipY",0),t.bottom-t.top)):(e=c.relativeToValue(this.get("tooltipX",0),this.width()),i=c.relativeToValue(this.get("tooltipY",0),this.height())),{x:e,y:i}}return{x:0,y:0}}getTooltip(){let t=this.get("tooltip");if(t)return t;{let t=this.parent;if(t)return t.getTooltip()}}_updatePosition(){const t=this.parent;let e=this.get("dx",0),i=this.get("dy",0),s=this.get("x"),n=this.getPrivate("x"),r=0,a=0;const h=this.get("position");s instanceof o.gG&&(s=t?t.innerWidth()*s.value+t.get("paddingLeft",0):0),d.isNumber(s)?r=s+e:null!=n?r=n:t&&"relative"==h&&(r=t.get("paddingLeft",0)+e);let l=this.get("y"),c=this.getPrivate("y");l instanceof o.gG&&(l=t?t.innerHeight()*l.value+t.get("paddingTop",0):0),d.isNumber(l)?a=l+i:null!=c?a=c:t&&"relative"==h&&(a=t.get("paddingTop",0)+i);const u=this._display;if(u.x!=r||u.y!=a){u.invalidateBounds(),u.x=r,u.y=a;const t="positionchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let t=this.get("x"),e=this.getPrivate("x");const i=this.parent;return i?t instanceof o.gG?c.relativeToValue(t,i.innerWidth())+i.get("paddingLeft",0):d.isNumber(t)?t:null!=e?e:i.get("paddingLeft",this._display.x):this._display.x}y(){let t=this.getPrivate("y");if(null!=t)return t;let e=this.get("y");const i=this.parent;return i?e instanceof o.gG?c.relativeToValue(e,i.innerHeight())+i.get("paddingTop",0):d.isNumber(e)?e:null!=t?t:i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const t=this.get("tooltip");t&&t.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const t=this._adjustedLocalBounds,e=this.x(),i=this.y();return{left:t.left+e,right:t.right+e,top:t.top+i,bottom:t.bottom+i}}globalBounds(){const t=this.localBounds(),e=this.toGlobal({x:t.left,y:t.top}),i=this.toGlobal({x:t.right,y:t.top}),s=this.toGlobal({x:t.right,y:t.bottom}),n=this.toGlobal({x:t.left,y:t.bottom});return{left:Math.min(e.x,i.x,s.x,n.x),top:Math.min(e.y,i.y,s.y,n.y),right:Math.max(e.x,i.x,s.x,n.x),bottom:Math.max(e.y,i.y,s.y,n.y)}}_onShow(t){}_onHide(t){}appear(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.hide(0),e?new Promise(((i,s)=>{this.setTimeout((()=>{i(this.show(t))}),e)})):this.show(t)}))}show(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(t);const e=this.states.applyAnimate("default",t);yield(0,l.ne)(e),this._isShowing=!1}}))}hide(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let e=this.states.lookup("hidden");e||(e=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(t);const i=this.states.applyAnimate("hidden",t);yield(0,l.ne)(i),this._isHiding=!1}}))}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const t=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*t:t}compositeScale(){const t=this.get("scale",1);return this._parent?this._parent.compositeScale()*t:t}compositeRotation(){const t=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+t:t}width(){let t=this.get("width"),e=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),s=this.getPrivate("width"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerWidth()*t.value:this._root.width()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}maxWidth(){let t=this.get("maxWidth",this.getPrivate("maxWidth"));if(d.isNumber(t))return t;{let t=this.get("width");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerWidth():this._root.width()}maxHeight(){let t=this.get("maxHeight",this.getPrivate("maxHeight"));if(d.isNumber(t))return t;{let t=this.get("height");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerHeight():this._root.height()}height(){let t=this.get("height"),e=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),s=this.getPrivate("height"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerHeight()*t.value:this._root.height()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}_findStaticTemplate(t){return this._templateField&&t(this._templateField)?this._templateField:super._findStaticTemplate(t)}_walkParents(t){(this._parent||this._virtualParent)&&this._walkParent(t)}_walkParent(t){this._parent?this._parent._walkParent(t):this._virtualParent&&this._virtualParent._walkParent(t),t(this)}set virtualParent(t){this._virtualParent!==t&&(this._virtualParent=t,this._applyThemes())}get parent(){return this._parent}_setParent(t,e=!1){const i=this._parent;t!==i&&(this.markDirtyBounds(),t.markDirty(),this._parent=t,e&&(this._removeParent(i),t&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(t){return this._display.toGlobal(t)}toLocal(t){return this._display.toLocal(t)}_getDownPoint(){const t=this._getDownPointId();if(t)return this._downPoints[t]}_getDownPointId(){if(this._downPoints)return p.keysOrdered(this._downPoints,((t,e)=>t>e?1:t{this._resize(t.target,-1)})),this.gripR.events.on("dragged",(t=>{this._resize(t.target,1)})),this.gripL.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripR.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripT.events.on("dragged",(t=>{this._rotate(t,90)})),this.gripB.events.on("dragged",(t=>{this._rotate(t,-90)})),this.gripT.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripB.events.on("dragstart",(t=>{this._resizeStart(t.target)}))}_resizeStart(t){const e=this.get("sprite");e&&(this._is=e.get("scale",1),this._ix=t.x(),this._iw=this.width()/2)}_resize(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=Math.max(.01,this._is*(1+e*(t.x()-this._ix)/this._iw));s?s.set("scale",n):i.set("scale",n),i.states.lookup("default").set("scale",n),this._updatePositions()}}_rotate(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=this.parent;if(n){const r=this.get("rotationStep",10);let o=Math.round((h.getAngle({x:this.x(),y:this.y()},n.toLocal(t.point))+e)/r)*r;s?s.set("rotation",o):i.set("rotation",o),i.states.lookup("default").set("rotation",o),this._updatePositions()}}}_createGrip(t){const e=this.children.push(s.W.new(this._root,{themeTags:["grip",t],setStateOnChildren:!0,draggable:!0}));return e.children.push(r.c.new(this._root,{themeTags:["outline"],centerX:n.CI,centerY:n.CI})),e.children.push(r.c.new(this._root,{centerX:n.CI,centerY:n.CI})),e}_updateChildren(){if(super._updateChildren(),this.isDirty("sprite")){const t=this.get("sprite");if(t){this.show(0),this.setPrivate("visible",!0),this._updatePositions();const e=t.parent;e&&e.children.moveValue(this,0),this._positionDP=t.events.on("positionchanged",(()=>{this._updatePositions()})),this._positionDP=t.events.on("boundschanged",(()=>{this._updatePositions()}))}else this.hide(0),this.setPrivate("visible",!1),this._positionDP&&this._positionDP.dispose()}(this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation"))&&this._updatePositions()}_updatePositions(){const t=this.get("sprite");if(t){let e=t.localBounds(),i=t.get("scale",1),s=20,r=(e.right-e.left)*i+s,o=(e.bottom-e.top)*i+s,a=t.get("rotation",0);const l=this.rectangle;let c=t.get("centerX",n.CI),u=t.get("centerY",n.CI),d=0;c instanceof n.gG&&(d=c.value);let p=0;u instanceof n.gG&&(p=u.value),l.setAll({centerX:c,centerY:u,width:r,height:o}),this.setAll({x:t.x()+s*(d-.5)*h.cos(a)-s*(p-.5)*h.sin(a),y:t.y()+s*(p-.5)*h.cos(a)+s*(d-.5)*h.sin(a),width:r,height:o,rotation:a}),this.gripT.setAll({x:(.5-d)*r,y:-p*o}),this.gripB.setAll({x:(.5-d)*r,y:(1-p)*o}),this.gripL.setAll({x:-d*r,y:(.5-p)*o}),this.gripR.setAll({x:(1-d)*r,y:(.5-p)*o}),this.rectangle.setAll({width:r,height:o})}}}l.className="SpriteResizer",l.classNames=s.W.classNames.concat([l.className])},2036:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(4596),n=i(2132),r=i(5071),o=i(7652),a=i(7449);class h extends s.j{constructor(){super(...arguments),this.textStyle=this._root._renderer.makeTextStyle(),this._display=this._root._renderer.makeText("",this.textStyle),this._textStyles=["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}_updateBounds(){if(this.get("text")){super._updateBounds();let t=this.get("fillGradient");t&&(this._display.style.fill=t.getFill(this))}else{let t={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=t}}_changed(){super._changed(),this._display.clear();let t=this.textStyle;if(this.isDirty("opacity")){let t=this.get("opacity",1);this._display.alpha=t}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),"tooltip"==this.get("role")&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new a.ku((()=>{this._root._removeTooltipElement(this)}))),this.isDirty("width")&&(t.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(t.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(t.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(t.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(t.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(t.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){const e=this.get("fill"),i=this.get("fillGradient"),s=this.get("fillOpacity");if(i){if(e){const t=i.get("stops",[]);t.length&&r.each(t,(t=>{t.color&&!t.colorInherited||!e||(t.color=e,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=s,t.opacityInherited=!0)}))}t.fill=i.getFill(this)}else e&&(t.fill=e)}if(this.isDirty("fillOpacity")){let e=this.get("fillOpacity",1);e&&(t.fillOpacity=e)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(t.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(t.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),r.each(this._textStyles,(e=>{this._dirty[e]&&(t[e]=this.get(e),this.markDirtyBounds())})),t.fontSize=this.get("fontSize"),t.fontFamily=this.get("fontFamily"),this._display.style=t,this.isDirty("role")&&"tooltip"==this.get("role")&&this._root.updateTooltip(this)}_getText(){let t=this.get("text","");return this.get("maxChars")&&(t=o.truncateTextWithEllipsis(t,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?(0,n.q)(this,t):t}_getAccessibleText(){const t=this.get("ariaLabel");return void 0!==t?this.get("populateText")?(0,n.q)(this,t):t:this._getText()}markDirtyText(){this._display.text=this._getText(),"tooltip"==this.get("role")&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(t){super._setDataItem(t),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}h.className="Text",h.classNames=s.j.classNames.concat([h.className])},2438:function(t,e,i){"use strict";i.d(e,{d:function(){return n}});var s=i(2077);class n extends s.x{}n.className="Tick",n.classNames=s.x.classNames.concat([n.className])},2876:function(t,e,i){"use strict";i.d(e,{u:function(){return d}});var s=i(7449),n=i(962),r=i(8931),o=i(8777),a=i(6245),h=i(1112),l=i(751),c=i(5071),u=i(7652);class d extends o.W{constructor(t,e,i,s=[]){super(t,e,i,s),this._fx=0,this._fy=0,this._w=0,this._h=0,this._htmlContentHovered=!1}_afterNew(){this._settings.themeTags=u.mergeTags(this._settings.themeTags,["tooltip"]),super._afterNew(),this._setDefaultFn("background",(()=>r.i.new(this._root,{}))).set("themeTags",["tooltip","background"]),this._label=this.children.push(n._.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",(()=>{this._updateBackground()}))),this._disposers.push(this.on("bounds",(()=>{this._updateBackground()}))),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",(t=>{t&&(this._disposers.push(u.addEventListener(t,"pointerover",(t=>{this._htmlContentHovered=!0}))),this._disposers.push(u.addEventListener(t,"pointerout",(t=>{this._htmlContentHovered=!1}))))}))),this.on("visible",(t=>{this._handleReaderAnnouncement()})),this.label.events.on("dataitemchanged",(t=>{this._handleReaderAnnouncement()})),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),c.remove(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width"),null!=this.get("labelText")&&this.label.set("text",this.get("labelText")),null!=this.get("labelHTML")&&this.label.set("html",this.get("labelHTML")),null!=this.get("labelAriaLabel")&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover"))if(this.get("keepTargetHover")){const t=this.get("background");this._keepHoverDp=new s.FV([t.events.on("pointerover",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),e.hover())})),t.events.on("pointerout",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),this._htmlContentHovered||e.unhover())}))]),this.label.onPrivate("htmlElement",(e=>{this._keepHoverDp&&e&&this._keepHoverDp.disposers.push(u.addEventListener(e,"pointerleave",(e=>{const i=this.root._renderer.getEvent(e);t.events.dispatch("pointerout",{type:"pointerout",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))}))}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let t=this.get("tooltipTarget");const e=this.get("background");let i,s;if(t&&e){if(i=t.get("fill"),s=t.get("stroke"),null==i&&(i=s),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),null!=i&&e.set("fill",i),this._fillDp=t.on("fill",(t=>{null!=t&&(e.set("fill",t),this._updateTextColor(t))})),this._disposers.push(this._fillDp)),this.get("getFillGradientFromSprite")){this._fillGrDp&&this._fillGrDp.dispose();let i=t.get("fillGradient");null!=i&&e.set("fillGradient",i),this._fillGrDp=t.on("fillGradient",(t=>{null!=t&&e.set("fillGradient",t)})),this._disposers.push(this._fillGrDp)}this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),null!=i&&e.set("stroke",i),this._strokeDp=t.on("fill",(t=>{null!=t&&e.set("stroke",t)})),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),null!=i&&this.label.set("fill",i),this._labelDp=t.on("fill",(t=>{null!=t&&this.label.set("fill",t)})),this._disposers.push(this._labelDp))}this._updateTextColor(i)}_updateTextColor(t){this.get("autoTextColor")&&(null==t&&(t=this.get("background").get("fill")),null==t&&(t=this._root.interfaceColors.get("background")),t instanceof h.Il&&this.label.set("fill",h.Il.alternative(t,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(t){super._setDataItem(t),this.label._setDataItem(t)}_updateBackground(){super.updateBackground();const t=this._root.container;if(t){let e=.5,i=.5,s=this.get("centerX");s instanceof a.gG&&(e=s.value);let n=this.get("centerY");n instanceof a.gG&&(i=n.value);let o=t.width(),h=t.height(),c=this.parent,u=0,d=0;if(c){u=c.x(),d=c.y();const t=c.get("layerMargin");t&&(u+=t.left||0,d+=t.top||0,o+=(t.left||0)+(t.right||0),h+=(t.top||0)+(t.bottom||0))}const p=this.get("bounds",{left:-u,top:-d,right:o-u,bottom:h-d});this._updateBounds();let g=this.width(),f=this.height();0===g&&(g=this._w),0===f&&(f=this._h);let _=this.get("pointTo",{x:o/2,y:h/2}),m=_.x,y=_.y,v=this.get("pointerOrientation"),w=this.get("background"),b=0,x=0,D=0;w instanceof r.i&&(b=w.get("pointerLength",0),x=w.get("strokeWidth",0)/2,D=x,w.set("width",g),w.set("height",f));let k=0,T=0,M=p.right-p.left,E=p.bottom-p.top;"horizontal"==v||"left"==v||"right"==v?(x=0,"horizontal"==v?m>p.left+M/2?(m-=g*(1-e)+b,D*=-1):m+=g*e+b:"left"==v?m+=g*(1-e)+b:(m-=g*e+b,D*=-1)):(D=0,"vertical"==v?y>p.top+f/2+b?y-=f*(1-i)+b:(y+=f*i+b,x*=-1):"down"==v?y-=f*(1-i)+b:(y+=f*i+b,x*=-1)),m=l.fitToRange(m,p.left+g*e,p.left+M-g*(1-e))+D,y=l.fitToRange(y,p.top+f*i,p.top+E-f*(1-i))-x,k=_.x-m+g*e+D,T=_.y-y+f*i-x,this._fx=m,this._fy=y;const O=this.get("animationDuration",0);if(O>0&&this.get("visible")&&this.get("opacity")>.1){const t=this.get("animationEasing");this.animate({key:"x",to:m,duration:O,easing:t}),this.animate({key:"y",to:y,duration:O,easing:t})}else this.set("x",m),this.set("y",y);w instanceof r.i&&(w.set("pointerX",k),w.set("pointerY",T)),g>0&&(this._w=g),f>0&&(this._h=f)}}}d.className="Tooltip",d.classNames=o.W.classNames.concat([d.className])},941:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){const t=this.width(),e=this.height(),i=this._display;i.moveTo(-t/2,e/2),i.lineTo(0,-e/2),i.lineTo(t/2,e/2),i.lineTo(-t/2,e/2),i.closePath()}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Triangle",n.classNames=s.T.classNames.concat([n.className])},1706:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingTop",0),i=t.innerHeight(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minHeight",t.getPrivate("minHeight",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.height()),i-=e+t.get("marginTop",0)+t.get("marginBottom",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginTop",0)-t.get("marginBottom",0),n=t.get("minHeight",t.getPrivate("minHeight",-1/0)),r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("height",s)}else t._prevSettings.height instanceof r.gG&&t.setPrivate("height",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginTop",0),s=e.top,n=e.bottom,r=t.get("maxHeight");r&&n-s>r&&(n=s+r);let o=t.get("marginBottom",0),h=a+i-s;t.setPrivate("y",h),a=h+n+o}else t.setPrivate("y",void 0)}))}}o.className="VerticalLayout",o.classNames=s.A.classNames.concat([o.className])},6044:function(t,e,i){"use strict";i.d(e,{H:function(){return h}});var s=i(8777),n=i(8054),r=i(1479),o=i(7449),a=i(2647);class h extends s.W{constructor(){super(...arguments),this.homeButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["home"]})),this.plusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["plus"]})),this.minusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["minus"]}))}_afterNew(){super._afterNew(),this.set("position","absolute"),this.set("layout",this._root.verticalLayout),this.addTag("zoomtools"),this.plusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.minusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.homeButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("target")){const t=this.get("target"),e=this._prevSettings.target;t&&(t instanceof a.Y&&(this._targetDisposer=this.addDisposer(t.contents.on("scale",(e=>{e==t.get("minZoomLevel")?this.minusButton.set("disabled",!0):this.minusButton.set("disabled",!1),e==t.get("maxZoomLevel")?this.plusButton.set("disabled",!0):this.plusButton.set("disabled",!1)}))),this.root.events.once("frameended",(()=>{t.get("scale")==t.get("minZoomLevel")&&this.minusButton.set("disabled",!0)}))),this._disposer=new o.FV([this.plusButton.events.on("click",(()=>{t.zoomIn()})),this.minusButton.events.on("click",(()=>{t.zoomOut()})),this.homeButton.events.on("click",(()=>{t.goHome()}))])),e&&(this._disposer&&this._disposer.dispose(),this._targetDisposer&&this._targetDisposer.dispose())}}}h.className="ZoomTools",h.classNames=s.W.classNames.concat([h.className])},2647:function(t,e,i){"use strict";i.d(e,{Y:function(){return u}});var s=i(8777),n=i(6245),r=i(7142),o=i(1112),a=i(7652),h=i(751),l=i(256),c=i(5040);class u extends s.W{constructor(){super(...arguments),this._movePoints={},this._downScale=1,this._downX=0,this._downY=0,this.contents=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,x:0,y:0,draggable:!0,background:r.A.new(this._root,{fill:(0,o.$_)(16777215),fillOpacity:0})}))}_afterNew(){super._afterNew();const t=this.contents.events;this._disposers.push(t.on("pointerdown",(t=>{this._handleThisDown(t)}))),this._disposers.push(t.on("globalpointerup",(t=>{this._handleThisUp(t)}))),this._disposers.push(t.on("globalpointermove",(t=>{this._handleThisMove(t)})));const e=this.contents.get("background");e&&(e.adapters.add("width",(t=>20*Number(t))),e.adapters.add("height",(t=>20*Number(t))),e.adapters.add("x",(t=>Number(t)-e.width()/2)),e.adapters.add("y",(t=>Number(t)-e.height()/2)));const i=this.contents;i.adapters.add("x",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.width();t=Math.min(n*s,t),t=Math.max(this.width()-n*e*(1+s),t)}return t})),i.adapters.add("y",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.height();t=Math.min(n*s,t),t=Math.max(this.height()-n*e*(1+s),t)}return t}))}_prepareChildren(){super._prepareChildren(),this.isDirty("wheelable")&&this._handleSetWheel(),this.contents._display.cancelTouch=this.get("pinchZoom",!1)}_handleSetWheel(){this.get("wheelable")?(this._wheelDp&&this._wheelDp.dispose(),this._wheelDp=this.events.on("wheel",(t=>{const e=t.originalEvent;if(!a.isLocalEvent(e,this))return;e.preventDefault();const i=this.toLocal(t.point);this._handleWheelZoom(e.deltaY,i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_handleWheelZoom(t,e){let i=this.get("zoomStep",2),s=this.contents.get("scale",1),n=s;t>0?n=s/i:t<0&&(n=s*i),n!=s&&this.zoomToPoint(e,n)}zoomToPoint(t,e){e&&(e=h.fitToRange(e,this.get("minZoomLevel",1),this.get("maxZoomLevel",32)));const i=this.contents.get("scale",1);let s=t.x,n=t.y,r=s,o=n;const a=this.contents;let l=r-(s-a.x())/i*e,c=o-(n-a.y())/i*e;return this._animateTo(l,c,e),this._za}zoomIn(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)*this.get("zoomStep",2))}zoomOut(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)/this.get("zoomStep",2))}goHome(){return this._animateTo(0,0,1)}_animateTo(t,e,i){const s=this.get("animationDuration",0),n=this.get("animationEasing"),r=this.contents;this._txa=r.animate({key:"x",to:t,duration:s,easing:n}),this._tya=r.animate({key:"y",to:e,duration:s,easing:n}),this._za=r.animate({key:"scale",to:i,duration:s,easing:n})}_handleThisUp(t){this._downPoints={}}_handleThisDown(t){const e=this.contents;this._downScale=e.get("scale",1);const i=e._downPoints;let s=l.keys(i).length;if(1==s){let e=i[1];e||(e=i[0]),e&&e.x==t.point.x&&e.y==t.point.y&&(s=0)}if(s>0){this._downX=e.x(),this._downY=e.y();const t=e._getDownPointId();if(t){let i=this._movePoints[t];i&&(e._downPoints[t]=i)}}}_handleThisMove(t){const e=t.originalEvent.pointerId;this.get("pinchZoom")&&e&&(this._movePoints[e]=t.point,l.keys(this.contents._downPoints).length>1)&&this._handlePinch()}_handlePinch(){let t=0,e=[],i=[];if(l.each(this.contents._downPoints,((s,n)=>{e[t]=n;let r=this._movePoints[s];r&&(i[t]=r),t++})),e.length>1&&i.length>1){this.contents._isDragging=!1;let t=e[0],s=e[1],n=i[0],r=i[1];if(t&&s&&n&&r){t=this.toLocal(t),s=this.toLocal(s),n=this.toLocal(n),r=this.toLocal(r);let e=Math.hypot(s.x-t.x,s.y-t.y),i=Math.hypot(r.x-n.x,r.y-n.y)/e*this._downScale,o={x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2},a={x:t.x+(s.x-t.x)/2,y:t.y+(s.y-t.y)/2},h=this._downX||0,l=this._downY||0,c=this._downScale,u=o.x-(-h+a.x)/c*i,d=o.y-(-l+a.y)/c*i;this.contents.setAll({x:u,y:d,scale:i})}}}}u.className="ZoomableContainer",u.classNames=s.W.classNames.concat([u.className])},4102:function(t,e,i){"use strict";i.d(e,{mM:function(){return at},uK:function(){return rt}});var s=i(4680),n=i(1112);class r{constructor(t=1,e=0,i=0,s=1,n=0,r=0){this.a=t,this.b=e,this.c=i,this.d=s,this.tx=n,this.ty=r}setTransform(t,e,i,s,n,r=1){this.a=Math.cos(n)*r,this.b=Math.sin(n)*r,this.c=-Math.sin(n)*r,this.d=Math.cos(n)*r,this.tx=t-(i*this.a+s*this.c),this.ty=e-(i*this.b+s*this.d)}apply(t){return{x:this.a*t.x+this.c*t.y+this.tx,y:this.b*t.x+this.d*t.y+this.ty}}applyInverse(t){const e=1/(this.a*this.d+this.c*-this.b);return{x:this.d*e*t.x+-this.c*e*t.y+(this.ty*this.c-this.tx*this.d)*e,y:this.a*e*t.y+-this.b*e*t.x+(-this.ty*this.a+this.tx*this.b)*e}}append(t){const e=this.a,i=this.b,s=this.c,n=this.d;this.a=t.a*e+t.b*s,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*s,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*s+this.tx,this.ty=t.tx*i+t.ty*n+this.ty}prepend(t){const e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){const e=this.a,i=this.c;this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty}copyFrom(t){this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty}}var o=i(6245),a=i(7449),h=i(7255),l=i(7652),c=i(5071),u=i(256),d=i(5040),p=i(751),g=2*Math.PI,f=function(t,e,i,s,n,r,o){var a=t.x,h=t.y;return{x:s*(a*=e)-n*(h*=i)+r,y:n*a+s*h+o}},_=function(t,e){var i=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),s=Math.cos(t),n=Math.sin(t),r=Math.cos(t+e),o=Math.sin(t+e);return[{x:s-n*i,y:n+s*i},{x:r+o*i,y:o-r*i},{x:r,y:o}]},m=function(t,e,i,s){var n=t*i+e*s;return n>1&&(n=1),n<-1&&(n=-1),(t*s-e*i<0?-1:1)*Math.acos(n)},y=function(t){var e=t.px,i=t.py,s=t.cx,n=t.cy,r=t.rx,o=t.ry,a=t.xAxisRotation,h=void 0===a?0:a,l=t.largeArcFlag,c=void 0===l?0:l,u=t.sweepFlag,d=void 0===u?0:u,p=[];if(0===r||0===o)return[];var y=Math.sin(h*g/360),v=Math.cos(h*g/360),w=v*(e-s)/2+y*(i-n)/2,b=-y*(e-s)/2+v*(i-n)/2;if(0===w&&0===b)return[];r=Math.abs(r),o=Math.abs(o);var x=Math.pow(w,2)/Math.pow(r,2)+Math.pow(b,2)/Math.pow(o,2);x>1&&(r*=Math.sqrt(x),o*=Math.sqrt(x));var D=function(t,e,i,s,n,r,o,a,h,l,c,u){var d=Math.pow(n,2),p=Math.pow(r,2),f=Math.pow(c,2),_=Math.pow(u,2),y=d*p-d*_-p*f;y<0&&(y=0),y/=d*_+p*f;var v=(y=Math.sqrt(y)*(o===a?-1:1))*n/r*u,w=y*-r/n*c,b=l*v-h*w+(t+i)/2,x=h*v+l*w+(e+s)/2,D=(c-v)/n,k=(u-w)/r,T=(-c-v)/n,M=(-u-w)/r,E=m(1,0,D,k),O=m(D,k,T,M);return 0===a&&O>0&&(O-=g),1===a&&O<0&&(O+=g),[b,x,E,O]}(e,i,s,n,r,o,c,d,y,v,w,b),k=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],s=!0,n=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);s=!0);}catch(t){n=!0,r=t}finally{try{!s&&a.return&&a.return()}finally{if(n)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(D,4),T=k[0],M=k[1],E=k[2],O=k[3],P=Math.abs(O)/(g/4);Math.abs(1-P)<1e-7&&(P=1);var S=Math.max(Math.ceil(P),1);O/=S;for(var N=0;N1){const e=/^([01])([01])(.*)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t.splice(i,0,e[2]),++i,e[3].length>0?t[i]=e[3]:t.splice(i,1))}if(++i,s=t[i],s.length>1){const e=/^([01])(.+)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t[i]=e[2])}}}function D(t){if(0===t||1===t)return t;throw new Error("Flag must be 0 or 1")}function k(t,e){for(;(!t.interactive||e(t))&&t._parent;)t=t._parent}function T(t,e,i){return l.addEventListener(t,l.getRendererEvent(e),(t=>{const e=l.getEventTarget(t);let s=t.touches;s?(0==s.length&&(s=t.changedTouches),i(c.copy(s),e)):i([t],e)}))}function M(t){const e=document.createElement("canvas");e.width=1,e.height=1;const i=e.getContext("2d",{willReadFrequently:!0});i.drawImage(t,0,0,1,1);try{return i.getImageData(0,0,1,1),!1}catch(e){return console.warn('Image "'+t.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function E(t){t.width=0,t.height=0,t.style.width="0px",t.style.height="0px"}function O(t){return Math.floor(t)+.5}class P{constructor(){this._x=0,this._y=0}get x(){return this._x}get y(){return this._y}set x(t){this._x=t}set y(t){this._y=t}}class S extends a.KK{constructor(t){super(),this.mask=null,this.visible=!0,this.exportable=!0,this.interactive=!1,this.inactive=null,this.wheelable=!1,this.cancelTouch=!1,this.isMeasured=!1,this.buttonMode=!1,this.alpha=1,this.compoundAlpha=1,this.angle=0,this.scale=1,this.x=0,this.y=0,this.crisp=!1,this.pivot=new P,this._localMatrix=new r,this._matrix=new r,this._uMatrix=new r,this._renderer=t}subStatus(t){return{inactive:null==this.inactive?t.inactive:this.inactive,layer:this._layer||t.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let t=this;for(;;){if(t._layer)return t._layer;if(!t._parent)return this._renderer.defaultLayer;t=t._parent}}setLayer(t,e){if(null==t)this._layer=void 0;else{const i=!0;this._layer=this._renderer.getLayer(t,i),this._layer.visible=i,this._layer.margin=e,e&&l.setInteractive(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost()}}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(t){}_getColorId(){return void 0===this._colorId&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(t){return!t.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(t){return this._isInteractive(t)}contains(t){for(;;){if(t===this)return!0;if(!t._parent)return!1;t=t._parent}}toGlobal(t){return this._matrix.apply(t)}toLocal(t){return this._matrix.applyInverse(t)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){if(!this._localBounds){const t=1e7;this._localBounds={left:t,top:t,right:-t,bottom:-t},this._addBounds(this._localBounds)}return this._localBounds}getAdjustedBounds(t){this._setMatrix();const e=this.getLocalMatrix(),i=e.apply({x:t.left,y:t.top}),s=e.apply({x:t.right,y:t.top}),n=e.apply({x:t.right,y:t.bottom}),r=e.apply({x:t.left,y:t.bottom});return{left:Math.min(i.x,s.x,n.x,r.x),top:Math.min(i.y,s.y,n.y,r.y),right:Math.max(i.x,s.x,n.x,r.x),bottom:Math.max(i.y,s.y,n.y,r.y)}}on(t,e,i){return this.interactive?this._renderer._addEvent(this,t,e,i):new a.ku((()=>{}))}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(t,e){const i=this._matrix;let s=i.tx*e,n=i.ty*e;this.crisp&&(s=O(s),n=O(n)),t.setTransform(i.a*e,i.b*e,i.c*e,i.d*e,s,n)}_transformMargin(t,e,i){const s=this._matrix;t.setTransform(s.a*e,s.b*e,s.c*e,s.d*e,(s.tx+i.left)*e,(s.ty+i.top)*e)}_transformLayer(t,e,i){i.margin?this._transformMargin(t,i.scale||e,i.margin):this._transform(t,i.scale||e)}render(t,e=0){if(this.visible&&(!1!==this.exportable||!this._renderer._omitTainted)){this._setMatrix();const i=this.subStatus(t),s=this._renderer.resolution,n=this._renderer.layers,r=this._renderer._ghostLayer,o=r.context,a=this.mask;a&&a._setMatrix(),c.each(n,(t=>{if(t){const e=t.context;e.save(),a&&(a._transformLayer(e,s,t),a._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(e,s,t),this.filter&&(e.filter=this.filter)}})),o.save(),a&&this._isInteractiveMask(i)&&(a._transformMargin(o,s,r.margin),a._runPath(o),o.clip()),this._transformMargin(o,s,r.margin),i.layer.order>0&&!e&&c.move(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,e),o.restore(),c.each(n,(t=>{t&&t.context.restore()}))}}_render(t,e=0){!1===this.exportable&&(t.layer.tainted=!0)}_ghostOnly(t=0){return t>0}_drawGhost(t,e=0){const i=this._isInteractive(t),s=t.layer.order||0;return!(!i||(0!=s||this._ghostOnly(e))&&s!=e)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some((t=>t.value===this))}shouldCancelTouch(){const t=this._renderer;return!(t.tapToActivate&&!t._touchActive)&&(!!this.cancelTouch||!!this._parent&&this._parent.shouldCancelTouch())}}class N extends S{constructor(){super(...arguments),this.interactiveChildren=!0,this._children=[]}_isInteractiveMask(t){return this.interactiveChildren||super._isInteractiveMask(t)}addChild(t){t._parent=this,this._children.push(t),t._layer&&this.registerChildLayer(t._layer)}addChildAt(t,e){t._parent=this,this._children.splice(e,0,t),t._layer&&this.registerChildLayer(t._layer)}removeChild(t){t._parent=void 0,c.removeFirst(this._children,t)}_render(t,e){super._render(t);const i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,c.each(this._children,(i=>{i.compoundAlpha=this.compoundAlpha*this.alpha,i.render(t,e)})),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(t){this._childLayers||(this._childLayers=[]),c.pushOne(this._childLayers,t),this._parent&&this._parent.registerChildLayer(t)}markDirtyLayer(t=!1){super.markDirtyLayer(),t&&this._childLayers&&c.each(this._childLayers,(t=>t.dirty=!0))}_dispose(){super._dispose(),this._childLayers&&c.each(this._childLayers,(t=>{t.dirty=!0}))}}function C(t,e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.right=Math.max(t.right,e.x),t.bottom=Math.max(t.bottom,e.y)}class L{colorize(t,e){}colorizeGhost(t,e){this.colorize(t,e)}path(t){}pathGhost(t){this.path(t)}addBounds(t){}}class A extends L{colorize(t,e){t.beginPath()}}class R extends L{constructor(t){super(),this.color=t}colorize(t,e){t.fillStyle=void 0!==e?e:this.color}}class U extends L{constructor(t){super(),this.clearShadow=t}colorize(t,e){t.fill(),this.clearShadow&&(t.shadowColor="",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}}class B extends L{colorize(t,e){t.stroke()}}class F extends L{constructor(t,e,i,s){super(),this.width=t,this.color=e,this.lineJoin=i,this.lineCap=s}colorize(t,e){t.strokeStyle=void 0!==e?e:this.color,t.lineWidth=this.width,this.lineJoin&&(t.lineJoin=this.lineJoin),this.lineCap&&(t.lineCap=this.lineCap)}}class I extends L{constructor(t){super(),this.dash=t}colorize(t,e){t.setLineDash(this.dash)}}class H extends L{constructor(t){super(),this.dashOffset=t}colorize(t,e){t.lineDashOffset=this.dashOffset}}class z extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.width=i,this.height=s}path(t){t.rect(this.x,this.y,this.width,this.height)}addBounds(t){const e=this.x,i=this.y,s=e+this.width,n=i+this.height;C(t,{x:e,y:i}),C(t,{x:s,y:i}),C(t,{x:e,y:n}),C(t,{x:s,y:n})}}class G extends L{constructor(t,e,i){super(),this.x=t,this.y=e,this.radius=i}path(t){t.moveTo(this.x+this.radius,this.y),t.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radius,y:this.y-this.radius}),C(t,{x:this.x+this.radius,y:this.y+this.radius})}}class V extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.radiusX=i,this.radiusY=s}path(t){t.ellipse(0,0,this.radiusX,this.radiusY,0,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radiusX,y:this.y-this.radiusY}),C(t,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class W extends L{constructor(t,e,i,s,n,r){super(),this.cx=t,this.cy=e,this.radius=i,this.startAngle=s,this.endAngle=n,this.anticlockwise=r}path(t){this.radius>0&&t.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(t){let e=p.getArcBounds(this.cx,this.cy,this.startAngle*p.DEGREES,this.endAngle*p.DEGREES,this.radius);C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}class Y extends L{constructor(t,e,i,s,n){super(),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.radius=n}path(t){this.radius>0&&t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(t){}}class j extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.lineTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class X extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.moveTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class $ extends L{path(t){t.closePath()}}class Z extends L{constructor(t,e,i,s,n,r){super(),this.cpX=t,this.cpY=e,this.cpX2=i,this.cpY2=s,this.toX=n,this.toY=r}path(t){t.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.cpX2,y:this.cpY2}),C(t,{x:this.toX,y:this.toY})}}class K extends L{constructor(t,e,i,s){super(),this.cpX=t,this.cpY=e,this.toX=i,this.toY=s}path(t){t.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.toX,y:this.toY})}}class q extends L{constructor(t,e,i,s,n){super(),this.color=t,this.blur=e,this.offsetX=i,this.offsetY=s,this.opacity=n}colorize(t,e){this.opacity&&(t.fillStyle=this.color),t.shadowColor=this.color,t.shadowBlur=this.blur,t.shadowOffsetX=this.offsetX,t.shadowOffsetY=this.offsetY}colorizeGhost(t,e){}}class Q extends L{constructor(t,e,i,s,n){super(),this.image=t,this.width=e,this.height=i,this.x=s,this.y=n}path(t){t.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(t){C(t,{x:this.x,y:this.y}),C(t,{x:this.width,y:this.height})}}class J extends S{constructor(){super(...arguments),this._operations=[],this.blendMode=s.b.NORMAL,this._hasShadows=!1}clear(){super.clear(),this._operations.length=0}_pushOp(t){this._operations.push(t)}beginFill(t,e=1){this._fillAlpha=e,t?t instanceof n.Il?this._pushOp(new R(t.toCSS(e))):(this.isMeasured=!0,this._pushOp(new R(t))):this._pushOp(new R("rgba(0, 0, 0, "+e+")"))}endFill(){this._pushOp(new U(this._hasShadows))}endStroke(){this._pushOp(new B)}beginPath(){this._pushOp(new A)}lineStyle(t=0,e,i=1,s,r){this._strokeAlpha=i,e?e instanceof n.Il?this._pushOp(new F(t,e.toCSS(i),s,r)):this._pushOp(new F(t,e,s,r)):this._pushOp(new F(t,"rgba(0, 0, 0, "+i+")",s,r))}setLineDash(t){this._pushOp(new I(t||[]))}setLineDashOffset(t=0){this._pushOp(new H(t))}drawRect(t,e,i,s){this._pushOp(new z(t,e,i,s))}drawCircle(t,e,i){this._pushOp(new G(t,e,i))}drawEllipse(t,e,i,s){this._pushOp(new V(t,e,i,s))}arc(t,e,i,s,n,r=!1){this._pushOp(new W(t,e,i,s,n,r))}arcTo(t,e,i,s,n){this._pushOp(new Y(t,e,i,s,n))}lineTo(t,e){this._pushOp(new j(t,e))}moveTo(t,e){this._pushOp(new X(t,e))}bezierCurveTo(t,e,i,s,n,r){this._pushOp(new Z(t,e,i,s,n,r))}quadraticCurveTo(t,e,i,s){this._pushOp(new K(t,e,i,s))}closePath(){this._pushOp(new $)}shadow(t,e=0,i=0,s=0,n){this._hasShadows=!0,this._pushOp(new q(n?t.toCSS(n):t.toCSS(this._fillAlpha||this._strokeAlpha),e,i,s))}image(t,e,i,s,n){this._pushOp(new Q(t,e,i,s,n))}svgPath(t){let e=0,i=0,s=null,n=null,r=null,o=null;const a=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,h=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g,l=this._operations.length;try{let l;for(;null!==(l=a.exec(t));){const t=l[1],a=l[2],u=[];for(;null!==(l=h.exec(a));)u.push(l[1]);switch("S"!==t&&"s"!==t&&"C"!==t&&"c"!==t&&(s=null,n=null),"Q"!==t&&"q"!==t&&"T"!==t&&"t"!==t&&(r=null,o=null),t){case"M":b(t,u.length,2),e=+u[0],i=+u[1],this.moveTo(e,i);for(let t=2;t{this.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y),e=t.x,i=t.y}))}break;case"Z":case"z":v(t,u.length,0),this.closePath()}}}catch(e){this._operations.length=l,console.warn("Error when parsing svgPath:\n "+e.message+"\n"+t)}}_runPath(t){t.beginPath(),c.each(this._operations,(e=>{e.path(t)}))}_render(t,e=0){super._render(t);const i=t.layer.dirty,s=this._isInteractive(t),n=this._ghostOnly(e),r=this._drawGhost(t,e);if(i||s||n){const e=t.layer.context,s=this._renderer._ghostLayer.context;let o;i&&!n&&(e.globalCompositeOperation=this.blendMode,e.beginPath()),r&&(s.beginPath(),o=this._getColorId()),c.each(this._operations,(t=>{i&&!n&&(t.path(e),t.colorize(e,void 0)),r&&(t.pathGhost(s),t.colorizeGhost(s,o))}))}}renderDetached(t){if(this.visible){this._setMatrix(),t.save();const e=this.mask;e&&(e._setMatrix(),e._transform(t,1),e._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transform(t,1),this.filter&&(t.filter=this.filter),t.globalCompositeOperation=this.blendMode,t.beginPath(),c.each(this._operations,(e=>{e.path(t),e.colorize(t,void 0)})),t.restore()}}_addBounds(t){this.visible&&this.isMeasured&&c.each(this._operations,(e=>{e.addBounds(t)}))}}class tt extends S{constructor(t,e,i){super(t),this.resolution=1,this.textVisible=!0,this._originalScale=1,this.text=e,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_shared(t){this.style.textAlign&&(t.textAlign=this.style.textAlign),this.style.direction&&(t.direction=this.style.direction),this.style.textBaseline&&(t.textBaseline=this.style.textBaseline)}_prerender(t,e=!1,i=!1){super._render(t);const s=t.layer.context,r=this._renderer._ghostLayer.context,o=this.style;let a=this._getFontStyle(void 0,i);s.font=a,this._isInteractive(t)&&!e&&(r.font=a),o.fill&&(o.fill instanceof n.Il?s.fillStyle=o.fill.toCSS(null!=o.fillOpacity?o.fillOpacity:1):s.fillStyle=o.fill),o.shadowColor&&(t.layer.context.shadowColor=o.shadowColor.toCSS(o.shadowOpacity||1)),o.shadowBlur&&(t.layer.context.shadowBlur=o.shadowBlur),o.shadowOffsetX&&(t.layer.context.shadowOffsetX=o.shadowOffsetX),o.shadowOffsetY&&(t.layer.context.shadowOffsetY=o.shadowOffsetY),this._shared(s),this._isInteractive(t)&&!e&&(r.fillStyle=this._getColorId(),this._shared(r))}_getFontStyle(t,e=!1){const i=this.style;let s=[];return t&&t.fontVariant?s.push(t.fontVariant):i.fontVariant&&s.push(i.fontVariant),e||(t&&t.fontWeight?s.push(t.fontWeight):i.fontWeight&&s.push(i.fontWeight)),t&&t.fontStyle?s.push(t.fontStyle):i.fontStyle&&s.push(i.fontStyle),t&&t.fontSize?(d.isNumber(t.fontSize)&&(t.fontSize=t.fontSize+"px"),s.push(t.fontSize)):i.fontSize&&(d.isNumber(i.fontSize)&&(i.fontSize=i.fontSize+"px"),s.push(i.fontSize)),t&&t.fontFamily?s.push(t.fontFamily):i.fontFamily?s.push(i.fontFamily):s.length&&s.push("Arial"),s.join(" ")}_render(t,e=0){if(this._textInfo||this._measure(t),this.textVisible){const i=this._isInteractive(t),s=t.layer.context,r=t.layer.dirty,o=this._renderer._ghostLayer.context,a=this._ghostOnly(e),l=this._drawGhost(t,e);s.save(),o.save(),this._prerender(t),c.each(this._textInfo,((e,u)=>{c.each(e.textChunks,((c,u)=>{if(c.style&&(s.save(),o.save(),a||(s.font=c.style),this._isInteractive(t)&&(o.font=c.style)),c.fill&&(s.save(),a||(s.fillStyle=c.fill.toCSS())),r&&!a&&s.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),"underline"==c.textDecoration||"line-through"==c.textDecoration){let t=1,i=1,r=c.height;const o=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(o)>-1){const t=this._measureText(c.text,s);c.width=t.actualBoundingBoxLeft+t.actualBoundingBoxRight}let l,u=c.offsetX;switch(this.style.textAlign){case"right":case"end":u-=c.width;break;case"center":u-=c.width/2}if(c.style)switch(h.V.getTextStyle(c.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":t=2}r&&(i=r/20),l="line-through"==c.textDecoration?t+e.offsetY+c.offsetY-c.height/2:t+1.5*i+e.offsetY+c.offsetY,a||(s.save(),s.beginPath(),c.fill?s.strokeStyle=c.fill.toCSS():this.style.fill&&this.style.fill instanceof n.Il&&(s.strokeStyle=this.style.fill.toCSS()),s.lineWidth=t*i,s.moveTo(u,l),s.lineTo(u+c.width,l),s.stroke(),s.restore())}i&&this.interactive&&l&&o.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),c.fill&&s.restore(),c.style&&(s.restore(),o.restore())}))})),s.restore(),o.restore()}}_addBounds(t){if(this.visible&&this.isMeasured){const e=this._measure({inactive:this.inactive,layer:this.getLayer()});C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction;this._textInfo=[];const n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=d.isNumber(r)&&("wrap"==n||"wrap-no-break"==n);e.save(),i.save(),this._prerender(t,!0,this._ignoreFontWeight());const p="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",g=this.text.toString().replace(/\r/g,"").split(/\n/);let f,_=!0,m=0,y=0,v=0;c.each(g,((t,s)=>{let n;for(n=""==t?[{type:"value",text:""}]:h.V.chunk(t,!1,this.style.ignoreFormatting);n.length>0;){let t={offsetY:v,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const s=this._measureText(p,e),g=s.actualBoundingBoxAscent+s.actualBoundingBoxDescent;let w;t.height=g,t.ascent=s.actualBoundingBoxAscent;let b,x,D,k=this.style.textDecoration,T=!1,M=!0,E=[];c.eachContinue(n,((s,o)=>{if("format"==s.type)if("[/]"==s.text)_||(e.restore(),i.restore(),_=!0),b=void 0,f=void 0,x=void 0,k=this.style.textDecoration,D=void 0,w=s.text;else{_||(e.restore(),i.restore());let n=h.V.getTextStyle(s.text);const r=this._getFontStyle(n);e.save(),i.save(),e.font=r,f=r,w=s.text,n.textDecoration&&(k=n.textDecoration),n.fill&&(b=n.fill),n.width&&(x=d.toNumber(n.width)),n.verticalAlign&&(D=n.verticalAlign),_=!1;const o=this._measureText(p,e),a=o.actualBoundingBoxAscent+o.actualBoundingBoxDescent;a>t.height&&(t.height=a),o.actualBoundingBoxAscent>t.ascent&&(t.ascent=o.actualBoundingBoxAscent)}else if("value"==s.type&&!T){const i=this._measureText(s.text,e);let h=i.actualBoundingBoxLeft+i.actualBoundingBoxRight;if(a){this.truncated=void 0;let i=M||this.style.breakWords||!1;const n=this.style.ellipsis||"",o=this._measureText(n,e),a=o.actualBoundingBoxLeft+o.actualBoundingBoxRight;if(t.width+h>r){const o=r-t.width-a;s.text=this._truncateText(e,s.text,o,i),s.text+=n,T=!0,this.truncated=!0}}else if(u&&t.width+h>r){const i=r-t.width,a=this._truncateText(e,s.text,i,!1,M&&"wrap-no-break"!=this.style.oversizedBehavior);if(""==a)return this.textVisible=!0,!1;E=n.slice(o+1),l.trim(a)!=l.trim(s.text)&&(E.unshift({type:"value",text:s.text.substr(a.length)}),w&&E.unshift({type:"format",text:w})),s.text=l.trim(a),n=[],T=!0}let c=1,d=1;if(f&&x&&x>h){const t=h/x;switch(this.style.textAlign){case"right":case"end":c=t;break;case"center":c=t,d=t;break;default:d=t}h=x}const p=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent;p>t.height&&(t.height=p),i.actualBoundingBoxAscent>t.ascent&&(t.ascent=i.actualBoundingBoxAscent),t.width+=h,t.left+=i.actualBoundingBoxLeft/c,t.right+=i.actualBoundingBoxRight/d,t.textChunks.push({style:f,fill:b,text:s.text,width:h,height:p,left:i.actualBoundingBoxLeft,right:i.actualBoundingBoxRight,ascent:i.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:k,verticalAlign:D}),M=!1}return!0})),this.style.lineHeight instanceof o.gG?(t.height*=this.style.lineHeight.value,t.ascent*=this.style.lineHeight.value):(t.height*=this.style.lineHeight||1.2,t.ascent*=this.style.lineHeight||1.2),m{let i=0;c.each(t.textChunks,(e=>{if(e.offsetX=i+e.left-t.left,e.offsetY+=t.height-t.height*(this.style.baselineRatio||.19),i+=e.width*(s?-1:1),e.verticalAlign)switch(e.verticalAlign){case"super":e.offsetY-=t.height/2-e.height/2;break;case"sub":e.offsetY+=e.height/2}}))}));const w={left:s?-y:-m,top:0,right:s?m:y,bottom:v};if("none"!==n){const t=this._fitRatio(w);if(t<1)if("fit"==n)d.isNumber(this.style.minScale)&&ti&&""!=e);return e}_measureText(t,e){let i=e.measureText(t),s={};if(null==i.actualBoundingBoxAscent){const e=document.createElement("div");e.innerText=t,e.style.visibility="hidden",e.style.position="absolute",e.style.top="-1000000px;",e.style.fontFamily=this.style.fontFamily||"",e.style.fontSize=this.style.fontSize+"",document.body.appendChild(e);const n=e.getBoundingClientRect();document.body.removeChild(e);const r=n.height,o=i.width;s={actualBoundingBoxAscent:r,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:o,fontBoundingBoxAscent:r,fontBoundingBoxDescent:0,width:o}}else s={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const n=i.width;switch(this.style.textAlign){case"right":case"end":s.actualBoundingBoxLeft=n,s.actualBoundingBoxRight=0;break;case"center":s.actualBoundingBoxLeft=n/2,s.actualBoundingBoxRight=n/2;break;default:s.actualBoundingBoxLeft=0,s.actualBoundingBoxRight=n}return s}}class et{constructor(){this.lineHeight=(0,o.aQ)(120),this.baselineRatio=.19,this.oversizedBehavior="none",this.breakWords=!1,this.ellipsis="…",this.ignoreFormatting=!1}}class it extends tt{constructor(){super(...arguments),this.textType="circular",this.inside=!1,this.orientation="auto",this.kerning=0,this._textReversed=!1}_render(t,e=0){"circular"===this.textType?this._renderCircular(t,e):super._render(t,e)}_renderCircular(t,e=0){if(this.textVisible){this._prerender(t);const i=this._isInteractive(t),s=t.layer.context,n=t.layer.dirty,r=this._renderer._ghostLayer.context;s.save(),i&&r.save(),this._textInfo||this._measure(t);let o=this.radius||0,a=this.startAngle||0,h=0,l=this.orientation,u="auto"==l?"auto":"inward"==l;const d=this.inside,g=this.style.textAlign||"left",f=this.kerning||0;let _="left"==g?1:-1;const m=!this._textReversed,y=this._ghostOnly(e),v=this._drawGhost(t,e);if("auto"==u){let t=0,e=0;c.each(this._textInfo,((e,i)=>{const s=a+e.width/(o-e.height)/2*-_;s>t&&(t=s)})),e="left"==g?(t+h/2)*p.DEGREES:"right"==g?(t-h/2)*p.DEGREES:a*p.DEGREES,e=p.normalizeAngle(e),u=e>=270||e<=90}1==u&&m&&(this._textInfo.reverse(),this._textReversed=!0),c.each(this._textInfo,((t,e)=>{const l=t.height;d||(o+=l),(-1==_&&u||1==_&&!u)&&m&&t.textChunks.reverse();let p=a;h=0,"center"==g&&(p+=t.width/(o-l)/2*-_,h=p-a),p+=Math.PI*(u?0:1),s.save(),i&&r.save(),y||s.rotate(p),i&&r.rotate(p);let w=0;c.each(t.textChunks,((t,e)=>{const a=t.text,h=t.width;w=h/2/(o-l)*_,y||s.rotate(w),i&&r.rotate(w),t.style&&(s.save(),r.save(),y||(s.font=t.style),i&&(r.font=t.style)),t.fill&&(s.save(),y||(s.fillStyle=t.fill.toCSS())),y||(s.textBaseline="middle",s.textAlign="center"),i&&(r.textBaseline="middle",r.textAlign="center"),n&&!y&&s.fillText(a,0,(u?1:-1)*(0-o+l/2)),i&&v&&r.fillText(a,0,(u?1:-1)*(0-o+l/2)),t.fill&&s.restore(),t.style&&(s.restore(),r.restore()),w=(h/2+f)/(o-l)*_,y||s.rotate(w),i&&r.rotate(w)})),s.restore(),i&&r.restore(),d&&(o-=l)})),s.restore(),i&&r.restore()}}_measure(t){return"circular"===this.textType?this._measureCircular(t):super._measure(t)}_measureCircular(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction,n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=this.style.ellipsis||"";let p;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,e.save(),i.save(),this._prerender(t,!0);const g=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,_=0,m=0;return c.each(g,((t,n)=>{let g,y,v,w=h.V.chunk(t,!1,this.style.ignoreFormatting),b={offsetY:m,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};c.each(w,((t,n)=>{if("format"==t.type){if("[/]"==t.text)f||(e.restore(),i.restore(),f=!0),y=void 0,g=void 0,v=void 0;else{let s=h.V.getTextStyle(t.text);const n=this._getFontStyle(s);e.save(),i.save(),e.font=n,g=n,s.fill&&(y=s.fill),s.width&&(v=d.toNumber(s.width)),f=!1}a&&(p=this._measureText(u,e))}else if("value"==t.type){let i=t.text.match(/./gu)||[];s&&(i=l.splitString(t.text),i.reverse());for(let t=0;to&&(o=v);const h=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;if(h>b.height&&(b.height=h),n.actualBoundingBoxAscent>b.ascent&&(b.ascent=n.actualBoundingBoxAscent),_+=o,a){p||(p=this._measureText(u,e));const t=p.actualBoundingBoxLeft+p.actualBoundingBoxRight;if(_+t>r){1==b.textChunks.length?this.textVisible=!1:(b.width+=t,b.left+=p.actualBoundingBoxLeft,b.right+=p.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:u,width:t,height:h+p.actualBoundingBoxDescent,left:p.actualBoundingBoxLeft,right:p.actualBoundingBoxRight,ascent:p.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0}));break}}b.width+=o,b.left+=n.actualBoundingBoxLeft,b.right+=n.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:s,width:o,height:h+n.actualBoundingBoxDescent,left:n.actualBoundingBoxLeft,right:n.actualBoundingBoxRight,ascent:n.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0})}}})),this.style.lineHeight instanceof o.gG?b.height*=this.style.lineHeight.value:b.height*=this.style.lineHeight||1.2,this._textInfo.push(b),m+=b.height})),f||(e.restore(),i.restore()),"hide"==n&&_>r&&(this.textVisible=!1),c.each(this._textInfo,(t=>{c.each(t.textChunks,(e=>{e.offsetY+=Math.round((t.height-e.height+(t.ascent-e.ascent))/2)}))})),e.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class st extends S{constructor(t,e){super(t),this.image=e}_dispose(){super._dispose(),this._imageMask&&E(this._imageMask)}getLocalBounds(){if(!this._localBounds){let t=0,e=0;this.width&&(t=this.width),this.height&&(e=this.height),this._localBounds={left:0,top:0,right:t,bottom:e},this._addBounds(this._localBounds)}return this._localBounds}_render(t,e=0){if(super._render(t),this.image){if(void 0===this.tainted&&(this.tainted=M(this.image),t.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;const i=this._ghostOnly(e),s=this._drawGhost(t,e);if(t.layer.dirty&&!i){this.shadowColor&&(t.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(t.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(t.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(t.layer.context.shadowOffsetY=this.shadowOffsetY);const e=this.width||this.image.naturalWidth,i=this.height||this.image.naturalHeight;t.layer.context.drawImage(this.image,0,0,e,i)}if(this.interactive&&this._isInteractive(t)&&s){const t=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(t,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(t){if(void 0===this._imageMask){const e=this.width||t.naturalWidth,i=this.height||t.naturalHeight,s=document.createElement("canvas");s.width=e,s.height=i;const n=s.getContext("2d");n.imageSmoothingEnabled=!1,n.fillStyle=this._getColorId(),n.fillRect(0,0,e,i),M(t)||(n.globalCompositeOperation="destination-in",n.drawImage(t,0,0,e,i)),this._imageMask=s}return this._imageMask}}class nt{constructor(t,e,i,s){this.event=t,this.originalPoint=e,this.point=i,this.bbox=s,this.simulated=!1,this.native=!0,l.supports("touchevents")&&t instanceof Touch?this.id=t.identifier:this.id=null}}class rt extends a.rk{constructor(t){if(super(),this.view=document.createElement("div"),this._layerDom=document.createElement("div"),this.layers=[],this._dirtyLayers=[],this.defaultLayer=this.getLayer(0),this._ghostLayer=new ot,this._deferredGhostLayers=[],this._patternCanvas=document.createElement("canvas"),this._patternContext=this._patternCanvas.getContext("2d"),this._realWidth=0,this._realHeight=0,this._calculatedWidth=0,this._calculatedHeight=0,this.interactionsEnabled=!0,this._listeners={},this._events={},this._colorId=0,this._colorMap={},this._forceInteractive=0,this._omitTainted=!1,this._hovering=new Set,this._dragging=[],this._mousedown=[],this.tapToActivate=!1,this.tapToActivateTimeout=3e3,this._touchActive=!1,this.resolution=null==t?window.devicePixelRatio:t,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new a.ku((()=>{u.each(this._events,((t,e)=>{e.disposer.dispose()})),c.each(this.layers,(t=>{E(t.view),t.exportableView&&E(t.exportableView)})),E(this._ghostLayer.view),E(this._patternCanvas)}))),this._disposers.push(l.onZoom((()=>{null==t&&(this.resolution=window.devicePixelRatio)}))),l.supports("touchevents")){const t=t=>{0!==this._dragging.length&&c.eachContinue(this._dragging,(e=>!e.value.shouldCancelTouch()||(t.preventDefault(),!1))),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(l.addEventListener(window,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchmove",(()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()}),{passive:!0})),this._disposers.push(l.addEventListener(window,"click",(t=>{this._touchActive=!1}),{passive:!0})),this._disposers.push(l.addEventListener(this.view,"click",(t=>{window.setTimeout((()=>{this._touchActive=!0,this._delayTouchDeactivate()}),100)}),{passive:!0}))}l.supports("wheelevents")&&this._disposers.push(l.addEventListener(this.view,"wheel",(t=>{let e=!1;this._hovering.forEach((t=>{if(t.wheelable)return e=!0,!1})),e&&t.preventDefault()}),{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout((()=>{this._touchActive=!1}),this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(t){t?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(t,e,i,s){return this.defaultLayer.context.createLinearGradient(t,e,i,s)}createRadialGradient(t,e,i,s,n,r){return this.defaultLayer.context.createRadialGradient(t,e,i,s,n,r)}createPattern(t,e,i,s,n){return this._patternCanvas.width=s,this._patternCanvas.height=n,this._patternContext.clearRect(0,0,s,n),e.renderDetached(this._patternContext),t.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new N(this)}makeGraphics(){return new J(this)}makeText(t,e){return new tt(this,t,e)}makeTextStyle(){return new et}makeRadialText(t,e){return new it(this,t,e)}makePicture(t){return new st(this,t)}resizeLayer(t){t.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(t,e,i,s){this._realWidth=t,this._realHeight=e,this._calculatedWidth=i,this._calculatedHeight=s,c.each(this.layers,(t=>{t&&(t.dirty=!0,this.resizeLayer(t))})),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(t=!1){const e=document.createElement("canvas"),i=e.getContext("2d",{willReadFrequently:t}),s=new at(e,i);return e.style.position="absolute",e.style.top="0px",e.style.left="0px",s}getLayerByOrder(t){const e=this.layers,i=e.length;for(let s=0;st.order>e.order?1:t.order{t&&t.dirty&&t.visible&&(this._dirtyLayers.push(t),t.clear())})),this._ghostLayer.clear(),t.render({inactive:null,layer:this.defaultLayer});const e=this._deferredGhostLayers;if(e.length&&(e.sort(((t,e)=>t-e)),c.each(e,(e=>{t.render({inactive:null,layer:this.defaultLayer},e)}))),this._ghostLayer.context.restore(),c.each(this.layers,(t=>{if(t){const e=t.context;e.beginPath(),e.moveTo(0,0),e.stroke()}})),c.each(this._dirtyLayers,(t=>{t.context.restore(),t.dirty=!1})),this._hovering.size&&this._lastPointerMoveEvent){const{events:t,target:e,native:i}=this._lastPointerMoveEvent;c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))}}paintId(t){const e=function(t){const e=[0,0,0];for(let i=0;i<24;i++)e[i%3]<<=1,e[i%3]|=1&t,t>>=1;return(0|e[0])+(e[1]<<8)+(e[2]<<16)}(++this._colorId),i=n.Il.fromHex(e).toCSS();return this._colorMap[i]=t,i}_removeObject(t){void 0!==t._colorId&&delete this._colorMap[t._colorId]}_adjustBoundingBox(t){const e=this._ghostLayer.margin;return new DOMRect(-e.left,-e.top,t.width+e.left+e.right,t.height+e.top+e.bottom)}getEvent(t,e=!0){const i=this.view.getBoundingClientRect(),s=t.clientX||0,n=t.clientY||0,r=this._calculatedWidth/this._realWidth,o=this._calculatedHeight/this._realHeight,a={x:s-i.left,y:n-i.top},h={x:(s-(e?i.left:0))*r,y:(n-(e?i.top:0))*o};return new nt(t,a,h,this._adjustBoundingBox(i))}_getHitTarget(t,e,i){if(0===e.width||0===e.height||t.xe.right||t.ye.bottom)return;if(!i||!this._layerDom.contains(i))return;const s=this._ghostLayer.getImageData(t,e);if(0===s.data[0]&&0===s.data[1]&&0===s.data[2])return!1;const r=n.Il.fromRGB(s.data[0],s.data[1],s.data[2]).toCSS();return this._colorMap[r]}getObjectAtPoint(t){const e=this._ghostLayer.getImageArray(t);if(0===e[0]&&0===e[1]&&0===e[2])return;const i=n.Il.fromRGB(e[0],e[1],e[2]).toCSS();return this._colorMap[i]}_withEvents(t,e){const i=this._events[t];if(void 0!==i){i.dispatching=!0;try{e(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,c.keepIf(i.callbacks,(t=>!t.disposed)),0===i.callbacks.length&&(i.disposer.dispose(),delete this._events[t]))}}}_dispatchEventAll(t,e){this.interactionsEnabled&&this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.callback.call(t.context,e)}))}))}_dispatchEvent(t,e,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.object!==e||(t.callback.call(t.context,i),s=!0)}))})),s}_dispatchMousedown(t,e){const i=t.button;if(0!=i&&2!=i&&1!=i&&void 0!==i)return;const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);if(n){const t=s.id;let e=!1;k(n,(i=>{const n={id:t,value:i};return this._mousedown.push(n),!e&&this._dispatchEvent("pointerdown",i,s)&&(e=!0,this._dragging.some((e=>e.value===i&&e.id===t))||this._dragging.push(n)),!0}))}}_dispatchGlobalMousemove(t,e,i){const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);s.native=i,n?(this._hovering.forEach((t=>{t.contains(n)||(this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s))})),s.native&&k(n,(t=>(this._hovering.has(t)||(this._hovering.add(t),t.cursorOverStyle&&(t._replacedCursorStyle=l.getStyle(document.body,"cursor"),l.setStyle(document.body,"cursor",t.cursorOverStyle)),this._dispatchEvent("pointerover",t,s)),!0)))):(this._hovering.forEach((t=>{t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s)})),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(t){this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle)}_dispatchGlobalMouseup(t,e){const i=this.getEvent(t);i.native=e,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(t){if(0!==this._dragging.length){const e=this.getEvent(t),i=e.id;this._dragging.forEach((t=>{t.id===i&&this._dispatchEvent("pointermove",t.value,e)}))}}_dispatchDragEnd(t,e){const i=t.button;let s;if(0==i||void 0===i)s="click";else if(2==i)s="rightclick";else{if(1!=i)return;s="middleclick"}const n=this.getEvent(t),r=n.id;if(0!==this._mousedown.length){const t=this._getHitTarget(n.originalPoint,n.bbox,e);t&&this._mousedown.forEach((e=>{e.id===r&&e.value.contains(t)&&this._dispatchEvent(s,e.value,n)})),this._mousedown.length=0}0!==this._dragging.length&&(this._dragging.forEach((t=>{t.id===r&&this._dispatchEvent("pointerup",t.value,n)})),this._dragging.length=0)}_dispatchDoubleClick(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("dblclick",t,i)))}_dispatchWheel(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("wheel",t,i)))}_makeSharedEvent(t,e){if(void 0===this._listeners[t]){const i=e();this._listeners[t]=new a.DM((()=>{delete this._listeners[t],i.dispose()}))}return this._listeners[t].increment()}_onPointerEvent(t,e){let i=!1,s=null;function n(){s=null,i=!1}return new a.FV([new a.ku((()=>{null!==s&&clearTimeout(s),n()})),l.addEventListener(this.view,l.getRendererEvent(t),(t=>{i=!0,null!==s&&clearTimeout(s),s=window.setTimeout(n,0)})),T(window,t,((t,n)=>{null!==s&&(clearTimeout(s),s=null),e(t,n,i),i=!1}))])}_initEvent(t){switch(t){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",(()=>{const t=(t,e,i)=>{this._lastPointerMoveEvent={events:t,target:e,native:i},c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))};return new a.FV([this._onPointerEvent("pointerdown",t),this._onPointerEvent("pointermove",t)])}));case"globalpointerup":return this._makeSharedEvent("pointerup",(()=>{const t=this._onPointerEvent("pointerup",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}})),e=this._onPointerEvent("pointercancel",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}}));return new a.ku((()=>{t.dispose(),e.dispose()}))}));case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",(()=>{const t=this._onPointerEvent("pointerdown",((t,e)=>{c.each(t,(t=>{this._dispatchMousedown(t,e)}))})),e=this._onPointerEvent("pointermove",(t=>{c.each(t,(t=>{this._dispatchDragMove(t)}))})),i=this._onPointerEvent("pointerup",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))})),s=this._onPointerEvent("pointercancel",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))}));return new a.ku((()=>{t.dispose(),e.dispose(),i.dispose(),s.dispose()}))}));case"dblclick":return this._makeSharedEvent("dblclick",(()=>this._onPointerEvent("dblclick",((t,e)=>{c.each(t,(t=>{this._dispatchDoubleClick(t,e)}))}))));case"wheel":return this._makeSharedEvent("wheel",(()=>l.addEventListener(this.view,l.getRendererEvent("wheel"),(t=>{this._dispatchWheel(t,l.getEventTarget(t))}),{passive:!1})))}}_addEvent(t,e,i,s){let n=this._events[e];void 0===n&&(n=this._events[e]={disposer:this._initEvent(e),callbacks:[],dispatching:!1,cleanup:!1});const r={object:t,context:s,callback:i,disposed:!1};return n.callbacks.push(r),new a.ku((()=>{r.disposed=!0,n.dispatching?n.cleanup=!0:(c.removeFirst(n.callbacks,r),0===n.callbacks.length&&(n.disposer.dispose(),delete this._events[e]))}))}getCanvas(t,e){this.render(t),e||(e={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),n=Math.floor(this._calculatedHeight*this.resolution);if(e.minWidth&&e.minWidth>s){let t=e.minWidth/s;t>i&&(i=t*this.resolution)}if(e.minHeight&&e.minHeight>n){let t=e.minHeight/n;t>i&&(i=t*this.resolution)}if(e.maxWidth&&e.maxWidthn){let t=e.maxHeight/n;t{if(t&&t.visible&&(t.tainted||o)){d=!0,t.exportableView=t.view,t.exportableContext=t.context,t.view=document.createElement("canvas"),t.view.style.position="fixed",t.view.style.top="-10000px",this.view.appendChild(t.view),r.push(t.view);let e=0,o=0;t.margin&&(e+=t.margin.left||0+t.margin.right||0,o+=t.margin.top||0+t.margin.bottom||0),t.view.width=s+e,t.view.height=n+o,t.context=t.view.getContext("2d"),t.dirty=!0,t.scale=i}})),d&&(this._omitTainted=!0,this.render(t),this._omitTainted=!1),c.each(this.layers,(t=>{if(t&&t.visible){let e=0,i=0;t.margin&&(e=-(t.margin.left||0)*this.resolution,i=-(t.margin.top||0)*this.resolution),h.drawImage(t.view,e,i),t.exportableView&&(t.view=t.exportableView,t.exportableView=void 0),t.exportableContext&&(t.context=t.exportableContext,t.exportableContext=void 0),l{t.style.position="",t.style.top="",this.view.removeChild(t)})),a}}class ot{constructor(){this.margin={left:0,right:0,top:0,bottom:0},this._resolution=1,this._width=0,this._height=0,this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(t,e,i,s,n){this._resolution=n,t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(t,e){return this.context.getImageData(Math.round((t.x-e.left)/e.width*this._width),Math.round((t.y-e.top)/e.height*this._height),1,1)}getImageArray(t){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const e=this.imageArray,i=Math.round(t.x*this._resolution),s=4*(Math.round(t.y*this._resolution)*this._width+i);return[e[s],e[s+1],e[s+2],e[s+3]]}setMargin(t){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,c.each(t,(t=>{t.margin&&(this.margin.left=Math.max(this.margin.left,t.margin.left),this.margin.right=Math.max(this.margin.right,t.margin.right),this.margin.top=Math.max(this.margin.top,t.margin.top),this.margin.bottom=Math.max(this.margin.bottom,t.margin.bottom))}))}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class at{constructor(t,e){this.tainted=!0,this.order=0,this.visible=!0,this.dirty=!0,this._width=0,this._height=0,this.view=t,this.context=e}resize(t,e,i,s,n){null!=this.width&&(t=this.width,i=this.width),null!=this.height&&(e=this.height,s=this.height),this.margin?(t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}},4680:function(t,e,i){"use strict";var s;i.d(e,{b:function(){return s}}),function(t){t.ADD="lighter",t.COLOR="color",t.COLOR_BURN="color-burn",t.COLOR_DODGE="color-dodge",t.DARKEN="darken",t.DIFFERENCE="difference",t.DST_OVER="destination-over",t.EXCLUSION="exclusion",t.HARD_LIGHT="hard-light",t.HUE="hue",t.LIGHTEN="lighten",t.LUMINOSITY="luminosity",t.MULTIPLY="multiply",t.NORMAL="source-over",t.OVERLAY="overlay",t.SATURATION="saturation",t.SCREEN="screen",t.SOFT_LIGHT="soft-light",t.SRC_ATOP="source-atop",t.XOR="xor"}(s||(s={}))},1437:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}getFill(t){return{addColorStop:(t,e)=>{}}}_changed(){super._changed()}getBounds(t){const e=this.get("target");if(e){let i=e.globalBounds();const s=t.toLocal({x:i.left,y:i.top}),n=t.toLocal({x:i.right,y:i.top}),r=t.toLocal({x:i.right,y:i.bottom}),o=t.toLocal({x:i.left,y:i.bottom});return{left:Math.min(s.x,n.x,r.x,o.x),top:Math.min(s.y,n.y,r.y,o.y),right:Math.max(s.x,n.x,r.x,o.x),bottom:Math.max(s.y,n.y,r.y,o.y)}}return t._display.getLocalBounds()}}n.className="Gradient",n.classNames=s.JH.classNames.concat([n.className])},1747:function(t,e,i){"use strict";i.d(e,{o:function(){return h}});var s=i(1437),n=i(1112),r=i(5071),o=i(5040),a=i(751);class h extends s.p{getFill(t){const e=this.get("rotation",0);let i=this.getBounds(t),s=i.left||0,h=i.right||0,l=i.top||0,c=i.bottom||0,u=a.cos(e),d=a.sin(e),p=u*(h-s),g=d*(c-l);0==p&&(p=1),0==g&&(g=1);let f=Math.max(p,g);const _=this._root._renderer.createLinearGradient(s,l,s+f*u,l+f*d),m=this.get("stops");if(m){let t=0;r.each(m,(e=>{let i=e.offset;o.isNumber(i)||(i=t/(m.length-1));let s=e.opacity;o.isNumber(s)||(s=1);let r=e.color;if(r){const t=e.lighten;t&&(r=n.Il.lighten(r,t));const o=e.brighten;o&&(r=n.Il.brighten(r,o)),_.addColorStop(i,"rgba("+r.r+","+r.g+","+r.b+","+s+")")}t++}))}return _}}h.className="LinearGradient",h.classNames=s.p.classNames.concat([h.className])},3035:function(t,e,i){"use strict";i.d(e,{y:function(){return r}});var s=i(3437),n=i(5040);class r extends s.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("width",100),e=this.get("height",100),i=this.get("gap",0),s=this.get("strokeWidth",1);if(i){let n=i+s,r=e/n,o=this.get("angle",0)*Math.PI/180;if(0===o)for(let e=-r;e<2*r;e++){const i=Math.round(e*n-n/2)+.5;this._display.moveTo(-t,i),this._display.lineTo(2*t,i)}else{const i=Math.cos(o),s=Math.sin(o),r=2*Math.sqrt(t*t+e*e),a=n/Math.max(Math.abs(i),Math.abs(s)),h=2*Math.ceil(r/a);for(let t=-h;t0&&(r.beginFill(s,n),r.drawRect(0,0,e,i),r.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,r,t,e,i)}this._clear=!1}}n.className="Pattern",n.classNames=s.JH.classNames.concat([n.className])},4429:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(3437);class n extends s.c{_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const t=this.get("canvas");t&&(this.set("width",t.width),this.set("height",t.height))}_draw(){super._draw();const t=this.get("colorOpacity");void 0!==t&&(this._display.alpha=Math.max(0,t));const e=this._image;if(e){const t=this.get("width",100),i=this.get("height",100),s=this.get("fit","image");let n=0,r=0;"pattern"==s?(n=t,r=i,this.markDirty()):(n=e.width,r=e.height,"image"==s&&(this.set("width",n),this.set("height",r)));let o=0,a=0;this.get("centered",!0)&&(o=t/2-n/2,a=i/2-r/2),this._display.image(e,n,r,o,a)}const i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){const t=this.get("src");if(t){const e=new Image;e.src=t,e.decode().then((()=>{this._image=e,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{}))}}}n.className="PicturePattern",n.classNames=s.c.classNames.concat([n.className])},6490:function(t,e,i){"use strict";i.d(e,{SR:function(){return s},Wn:function(){return u},XG:function(){return p},ne:function(){return h},w6:function(){return l}});var s,n=i(7582),r=i(6245),o=i(1112),a=i(256);function h(t){return(0,n.mG)(this,void 0,void 0,(function*(){if(void 0!==t){const e=[];a.each(t,((t,i)=>{e.push(i.waitForStop())})),yield Promise.all(e)}}))}function l(t,e,i){return e+t*(i-e)}function c(t,e,i){return t>=1?i:e}function u(t,e,i){return new r.gG(l(t,e.percent,i.percent))}function d(t,e,i){return o.Il.interpolate(t,e,i)}function p(t,e){return"number"==typeof t&&"number"==typeof e?l:t instanceof r.gG&&e instanceof r.gG?u:t instanceof o.Il&&e instanceof o.Il?d:c}!function(t){t[t.Stopped=0]="Stopped",t[t.Playing=1]="Playing",t[t.Paused=2]="Paused"}(s||(s={}))},5071:function(t,e,i){"use strict";i.r(e),i.d(e,{add:function(){return v},any:function(){return r},copy:function(){return k},each:function(){return a},eachContinue:function(){return l},eachReverse:function(){return h},find:function(){return S},findIndex:function(){return O},findIndexReverse:function(){return P},findMap:function(){return C},findReverse:function(){return N},first:function(){return d},getFirstSortedIndex:function(){return R},getSortedIndex:function(){return A},has:function(){return D},indexOf:function(){return n},insert:function(){return p},insertIndex:function(){return M},keepIf:function(){return U},last:function(){return u},map:function(){return o},move:function(){return y},pushAll:function(){return f},pushOne:function(){return w},remove:function(){return _},removeFirst:function(){return m},removeIndex:function(){return E},replace:function(){return b},setIndex:function(){return g},shiftLeft:function(){return c},shuffle:function(){return L},slice:function(){return T},toArray:function(){return x}});var s=i(5040);function n(t,e){const i=t.length;for(let s=0;s0;)--i,e(t[i],i)}function l(t,e){const i=t.length;for(let s=0;s0;)if(--i,e(t[i],i))return i;return-1}function S(t,e){const i=O(t,e);if(-1!==i)return t[i]}function N(t,e){const i=P(t,e);if(-1!==i)return t[i]}function C(t,e){const i=t.length;for(let s=0;s>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,i=r+1):s=r}return{found:n,index:n?i-1:i}}function R(t,e){let i=0,s=t.length,n=!1;for(;i>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,s=r):s=r}return{found:n,index:i}}function U(t,e){let i=t.length;for(;i>0;)--i,e(t[i])||t.splice(i,1)}},1112:function(t,e,i){"use strict";i.d(e,{$_:function(){return a},Il:function(){return h}});var s=i(6490),n=i(7652),r=i(5040);function o(t){return"#"===t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0].repeat(2)+t[1].repeat(2)+t[2].repeat(2)),parseInt(t,16)}function a(t){return h.fromAny(t)}class h{constructor(t){this._hex=0|t}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return 255&this._hex}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+n.padString(this.r.toString(16),2)+n.padString(this.g.toString(16),2)+n.padString(this.b.toString(16),2)}toHSL(t=1){return n.rgbToHsl({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,e,i){const s=n.hslToRgb({h:t,s:e,l:i});return this.fromRGB(s.r,s.g,s.b)}toString(){return this.toCSSHex()}static fromHex(t){return new h(t)}static fromRGB(t,e,i){return new h((0|i)+(e<<8)+(t<<16))}static fromString(t){return new h(o(t))}static fromCSS(t){return new h(function(t){let e=(t=t.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return 0;let i="";for(let t=1;t<=3;t++){let s=parseInt(e[t]).toString(16);1==s.length&&(s="0"+s),i+=s}return o(i)}(t))}static fromAny(t){if(r.isString(t)){if("#"==t[0])return h.fromString(t);if("rgb"==t.substr(0,3))return h.fromCSS(t)}else{if(r.isNumber(t))return h.fromHex(t);if(t instanceof h)return h.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,e,i){const s=n.alternativeColor({r:t.r,g:t.g,b:t.b},e?{r:e.r,g:e.g,b:e.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(s.r,s.g,s.b)}static interpolate(t,e,i,n="rgb"){if("hsl"==n){const n=e.toHSL(),r=i.toHSL();return h.fromHSL((0,s.w6)(t,n.h,r.h),(0,s.w6)(t,n.s,r.s),(0,s.w6)(t,n.l,r.l))}return h.fromRGB((0,s.w6)(t,e.r,i.r),(0,s.w6)(t,e.g,i.g),(0,s.w6)(t,e.b,i.b))}static lighten(t,e){const i=n.lighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static brighten(t,e){const i=n.brighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static saturate(t,e){const i=n.saturate({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}}},2754:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});var s=i(6331),n=i(1112);class r extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const t=this.getPrivate("currentPass"),e=this.get("colors",[this.get("baseColor",n.Il.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",e.length);const i=this.getPrivate("numColors"),s=this.get("passOptions"),r=this.get("reuse");for(let o=0;o1;)r-=1;let a=i.s+(s.saturation||0)*t;a>1&&(a=1),a<0&&(a=0);let h=i.l+(s.lightness||0)*t;for(;h>1;)h-=1;e.push(n.Il.fromHSL(r,a,h))}}getIndex(t){const e=this.get("colors",[]),i=this.get("saturation");return t>=e.length?(this.generateColors(),this.getIndex(t)):null!=i?n.Il.saturate(e[t],i):e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}r.className="ColorSet",r.classNames=s.JH.classNames.concat([r.className])},9582:function(t,e,i){"use strict";i.d(e,{Q:function(){return r},k:function(){return n}});var s=i(7144);class n extends s.aV{incrementRef(){}decrementRef(){}_onPush(t){this.processor&&this.processor.processRow(t),super._onPush(t)}_onInsertIndex(t,e){this.processor&&this.processor.processRow(e),super._onInsertIndex(t,e)}_onSetIndex(t,e,i){this.processor&&this.processor.processRow(i),super._onSetIndex(t,e,i)}}class r{constructor(t){this._value=t}incrementRef(){}decrementRef(){}}},6460:function(t,e,i){"use strict";i.d(e,{C:function(){return h}});var s=i(6331),n=i(7255),r=i(462),o=i(5040),a=i(7652);class h extends s.JH{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i=!1){let s;void 0!==e&&""!==e||(e=this.get("dateFormat","yyyy-MM-dd"));let n=t;if(o.isObject(e))try{const t=this.get("intlLocales");return t?new Intl.DateTimeFormat(t,e).format(n):new Intl.DateTimeFormat(void 0,e).format(n)}catch(t){return"Invalid"}let r=this.parseFormat(e);const a=this._root.timezone;let h=n;return!a||this._root.utc||i||(n=a.convertLocal(n)),o.isNumber(n.getTime())?(s=this.applyFormat(n,r,i,h),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s):"Invalid date"}applyFormat(t,e,i=!1,s){let n,h,l,c,u,d,p,g,f=e.template,_=t.getTime();this._root.utc&&!i?(n=t.getUTCFullYear(),h=t.getUTCMonth(),l=t.getUTCDay(),c=t.getUTCDate(),u=t.getUTCHours(),d=t.getUTCMinutes(),p=t.getUTCSeconds(),g=t.getUTCMilliseconds()):(n=t.getFullYear(),h=t.getMonth(),l=t.getDay(),c=t.getDate(),u=t.getHours(),d=t.getMinutes(),p=t.getSeconds(),g=t.getMilliseconds());for(let i=0,m=e.parts.length;i=12?this._t("PM"):this._t("AM");break;case"aa":m=u>=12?this._t("P.M."):this._t("A.M.");break;case"aaa":m=u>=12?this._t("P"):this._t("A");break;case"h":m=a.get12Hours(u).toString();break;case"hh":m=a.padString(a.get12Hours(u),2,"0");break;case"H":m=u.toString();break;case"HH":m=a.padString(u,2,"0");break;case"K":m=a.get12Hours(u,0).toString();break;case"KK":m=a.padString(a.get12Hours(u,0),2,"0");break;case"k":m=(u+1).toString();break;case"kk":m=a.padString(u+1,2,"0");break;case"m":m=d.toString();break;case"mm":m=a.padString(d,2,"0");break;case"s":m=p.toString();break;case"ss":m=a.padString(p,2,"0");break;case"S":case"SS":case"SSS":m=Math.round(g/1e3*Math.pow(10,e.parts[i].length)).toString();break;case"x":m=_.toString();break;case"n":case"nn":case"nnn":m=a.padString(g,e.parts[i].length,"0");break;case"z":m=a.getTimeZone(s||t,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":m=a.getTimeZone(s||t,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":m=a.getTimeZone(s||t,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":m=a.getTimeZone(s||t,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let f=this._root.utc?"UTC":this._root.timezone;f instanceof r.r&&(f=f.name);const y=f?a.getTimezoneOffset(f,s||t):t.getTimezoneOffset();let v=Math.abs(y)/60,w=Math.floor(v),b=60*v-60*w;this._root.utc&&(w=0,b=0),"Z"==e.parts[i]?(m="GMT",m+=y>0?"-":"+",m+=a.padString(w,2)+":"+a.padString(b,2)):(m=y>0?"-":"+",m+=a.padString(w,2)+a.padString(b,2));break;case"i":m=t.toISOString();break;case"I":m=t.toUTCString()}f=f.replace(o.PLACEHOLDER,m)}return f}parseFormat(t){let e={template:"",parts:[]},i=n.V.chunk(t,!0);for(let t=0;t-1&&(l.year=parseInt(p[h.year])),h.year3>-1){let t=parseInt(p[h.year3]);t+=1e3,l.year=t}if(h.year2>-1){let t=parseInt(p[h.year2]);t+=t>50?1e3:2e3,l.year=t}if(h.year1>-1){let t=parseInt(p[h.year1]);t=10*Math.floor((new Date).getFullYear()/10)+t,l.year=t}if(h.monthLong>-1&&(l.month=this.resolveMonth(p[h.monthLong])),h.monthShort>-1&&(l.month=this.resolveShortMonth(p[h.monthShort])),h.month>-1&&(l.month=parseInt(p[h.month])-1),h.week>-1&&-1===h.day&&(l.month=0,l.day=a.getDayFromWeek(parseInt(p[h.week]),l.year,1,i)),h.day>-1&&(l.day=parseInt(p[h.day])),h.yearDay>-1&&(l.month=0,l.day=parseInt(p[h.yearDay])),h.hourBase0>-1&&(l.hour=parseInt(p[h.hourBase0])),h.hourBase1>-1&&(l.hour=parseInt(p[h.hourBase1])-1),h.hour12Base0>-1){let t=parseInt(p[h.hour12Base0]);11==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.hour12Base1>-1){let t=parseInt(p[h.hour12Base1]);12==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.minute>-1&&(l.minute=parseInt(p[h.minute])),h.second>-1&&(l.second=parseInt(p[h.second])),h.millisecond>-1){let t=parseInt(p[h.millisecond]);2==h.millisecondDigits?t*=10:1==h.millisecondDigits&&(t*=100),l.millisecond=t}if(h.timestamp>-1){l.timestamp=parseInt(p[h.timestamp]);const t=new Date(l.timestamp);l.year=t.getUTCFullYear(),l.month=t.getUTCMonth(),l.day=t.getUTCDate(),l.hour=t.getUTCHours(),l.minute=t.getUTCMinutes(),l.second=t.getUTCSeconds(),l.millisecond=t.getUTCMilliseconds()}h.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.zone])),h.iso>-1&&(l.year=o.toNumber(p[h.iso+0]),l.month=o.toNumber(p[h.iso+1])-1,l.day=o.toNumber(p[h.iso+2]),l.hour=o.toNumber(p[h.iso+3]),l.minute=o.toNumber(p[h.iso+4]),l.second=o.toNumber(p[h.iso+5]),l.millisecond=o.toNumber(p[h.iso+6]),"Z"==p[h.iso+7]||"z"==p[h.iso+7]?l.utc=!0:""!=p[h.iso+7]&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.iso+7]))),s=l.utc?new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else s=new Date(t);return s}resolveTimezoneOffset(t,e){if(e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let i=e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),s=i[1],n=i[2],r=i[3],o=60*parseInt(n)+parseInt(r);return"+"==s&&(o*=-1),o-(t||new Date).getTimezoneOffset()}return 0}resolveMonth(t){let e=this._months().indexOf(t);return e>-1||!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._months()).indexOf(t),e>-1)?e:0}resolveShortMonth(t){let e=this._shortMonths().indexOf(t);return e>-1?e:(e=this._months().indexOf(t),e>-1||this._root.language&&!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._shortMonths()).indexOf(t),e>-1)?e:0)}isAm(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1}getStringList(t){let e=[];for(let i=0;i{t.dispose()}))}}class a extends n{constructor(t){super(),this._disposers=t}_dispose(){s.each(this._disposers,(t=>{t.dispose()}))}get disposers(){return this._disposers}}class h extends n{_dispose(){null!=this._disposer&&(this._disposer.dispose(),this._disposer=void 0)}get(){return this._value}set(t,e){null!=this._disposer&&this._disposer.dispose(),this._disposer=e,this._value=t}reset(){this.set(void 0,void 0)}}class l extends r{constructor(){super(...arguments),this._counter=0}increment(){return++this._counter,new r((()=>{--this._counter,0===this._counter&&this.dispose()}))}}},798:function(t,e,i){"use strict";i.d(e,{$:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{constructor(){super(...arguments),this._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}}_setDefaults(){const t="_duration_millisecond",e="_duration_second",i="_duration_minute",s="_duration_hour",n="_duration_day",r="_duration_week",o="_duration_month",a="_minute",h="_hour",l="_day",c="_week",u="_week",d="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(t),second:this._t(t+"_second"),minute:this._t(t+a),hour:this._t(t+h),day:this._t(t+l),week:this._t(t+c),month:this._t(t+u),year:this._t(t+d)},second:{second:this._t(e),minute:this._t(e+a),hour:this._t(e+h),day:this._t(e+l),week:this._t(e+c),month:this._t(e+u),year:this._t(e+d)},minute:{minute:this._t(i),hour:this._t(i+h),day:this._t(i+l),week:this._t(i+c),month:this._t(i+u),year:this._t(i+d)},hour:{hour:this._t(s),day:this._t(s+l),week:this._t(s+c),month:this._t(s+u),year:this._t(s+d)},day:{day:this._t(n),week:this._t(n+c),month:this._t(n+u),year:this._t(n+d)},week:{week:this._t(r),month:this._t(r+u),year:this._t(r+d)},month:{month:this._t(o),year:this._t(o+d)},year:{year:this._t("_duration_year")}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s=i||this.get("baseUnit");void 0!==e&&""!==e||(e=null!=this.get("durationFormat")?this.get("durationFormat"):this.getFormat(a.toNumber(t),void 0,s)),e=o.cleanFormat(e);let n,r=this.parseFormat(e,s),h=Number(t);n=h>this.get("negativeBase")?r.positive:h{if(e.parsed)return;let i=e.source,s=[];s=e.source.match(/^\[([^\]]*)\]/),s&&s.length&&""!==s[0]&&(i=e.source.substr(s[0].length),e.color=s[1]);let r=n.V.chunk(i,!0);for(let t=0;t{"millisecond"==t&&1e3==i?(h.second++,h.millisecond=0):"second"==t&&60==i?(h.minute++,h.second=0):"minute"==t&&60==i?(h.hour++,h.minute=0):"hour"==t&&24==i?(h.day++,h.hour=0):"day"==t&&7==i&&-1!==e.parts.indexOf("w")?(h.week++,h.day=0):"day"==t&&30==i?(h.month++,h.day=0):"month"==t&&12==i&&(h.year++,h.month=0)}));for(let t=0,i=e.parts.length;t{if(t==e||i){if(s/n<=1)return i||(i=t),!1;i=t}return!0})),i}getMilliseconds(t,e){return e||(e=this.get("baseUnit")),t*this._getUnitValue(e)}_getUnitValue(t){return this._getUnitValues()[t]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}},9395:function(t,e,i){"use strict";i.r(e),i.d(e,{bounce:function(){return k},circle:function(){return c},cubic:function(){return o},elastic:function(){return P},exp:function(){return h},inOut:function(){return p},linear:function(){return n},out:function(){return d},pow:function(){return a},quad:function(){return r},sine:function(){return l},yoyo:function(){return u}});var s=i(751);function n(t){return t}function r(t){return t*t}function o(t){return t*t*t}function a(t,e){return Math.pow(t,e)}function h(t){return Math.pow(2,10*t-10)}function l(t){return 1-Math.cos(t*s.HALFPI)}function c(t){return 1-Math.sqrt(1-t*t)}function u(t){return function(e){return t(e<.5?2*e:2*(1-e))}}function d(t){return function(e){return 1-t(1-e)}}function p(t){return function(e){return e<=.5?t(2*e)/2:1-t(2*(1-e))/2}}let g=4/11,f=6/11,_=8/11,m=3/4,y=9/11,v=10/11,w=15/16,b=21/22,x=63/64,D=1/g/g;function k(t){return 1-function(t){return t{this._userSettings[t]=!0}))}get(t,e){const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._settings[t]=e}set(t,e){this._userSettings[t]=!0,this.setRaw(t,e)}remove(t){delete this._userSettings[t],delete this._settings[t]}setAll(t){o.entries(t).forEach((([t,e])=>{this.set(t,e)}))}_eachSetting(t){o.each(this._settings,t)}apply(){const t={stateAnimationEasing:!0,stateAnimationDuration:!0},e=this._entity.states.lookup("default");this._eachSetting(((i,s)=>{t[i]||(t[i]=!0,this!==e&&(i in e._settings||(e._settings[i]=this._entity.get(i))),this._entity.set(i,s))}))}applyAnimate(t){null==t&&(t=this._settings.stateAnimationDuration),null==t&&(t=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let e=this._settings.stateAnimationEasing;null==e&&(e=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",a.cubic)));const i=this._entity.states.lookup("default"),s={stateAnimationEasing:!0,stateAnimationDuration:!0},n={};return this._eachSetting(((r,o)=>{if(!s[r]){s[r]=!0,this!=i&&(r in i._settings||(i._settings[r]=this._entity.get(r)));const a=this._entity.animate({key:r,to:o,duration:t,easing:e});a&&(n[r]=a)}})),n}}class l{constructor(t){this._states={},this._entity=t}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new h(this._entity,e);return this._states[t]=i,i}}remove(t){delete this._states[t]}apply(t){const e=this._states[t];e&&e.apply(),this._entity._applyState(t)}applyAnimate(t,e){let i;const s=this._states[t];return s&&(i=s.applyAnimate(e)),this._entity._applyStateAnimated(t,e),i}}var c=i(3145),u=i(5071),d=i(3540);class p{constructor(t){this._callbacks={},this._disabled={},this._entity=t}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),this._entity._markDirtyKey(t),new s.ku((()=>{u.removeFirst(i,e)&&this._entity._markDirtyKey(t)}))}remove(t){const e=this._callbacks[t];void 0!==e&&(delete this._callbacks[t],0!==e.length&&this._entity._markDirtyKey(t))}enable(t){this._disabled[t]&&(delete this._disabled[t],this._entity._markDirtyKey(t))}disable(t){this._disabled[t]||(this._disabled[t]=!0,this._entity._markDirtyKey(t))}fold(t,e){if(!this._disabled[t]){const i=this._callbacks[t];if(void 0!==i)for(let s=0,n=i.length;s{if(this._stopped)t();else{const e=()=>{i.dispose(),t()},i=this.events.on("stopped",e)}}))}_checkEnded(){return!(this._loops>1&&(--this._loops,1))}_run(t){null!==this._oldTime&&(this._time+=t-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=t}_reset(t){this._oldTime=t,this._time=0}_value(t){return this._interpolate(this._easing(t),this._from,this._to)}}let f=0;class _{constructor(t){this.uid=++f,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._prevSettings={},this._prevPrivateSettings={},this._animatingSettings={},this._animatingPrivateSettings={},this._disposed=!1,this._userProperties={},this.enableDispose=!0,this._settings=t}_checkDirty(){o.keys(this._settings).forEach((t=>{this._userProperties[t]=!0,this._markDirtyKey(t)}))}resetUserSettings(){this._userProperties={}}_runAnimation(t){let e=r.SR.Stopped;if(!this.isDisposed()){let i=!1,s=!1;o.each(this._animatingSettings,((e,n)=>{if(n.stopped)this._stopAnimation(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.set(e,n._value(1)):(i=!0,n._reset(t),this._set(e,n._value(1))):(i=!0,this._set(e,n._value(s)))}else s=!0})),o.each(this._animatingPrivateSettings,((e,n)=>{if(n.stopped)this._stopAnimationPrivate(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.setPrivate(e,n._value(1)):(i=!0,n._reset(t),this._setPrivate(e,n._value(1))):(i=!0,this._setPrivate(e,n._value(s)))}else s=!0})),i?e=r.SR.Playing:s&&(e=r.SR.Paused)}return e}_markDirtyKey(t){this.markDirty()}_markDirtyPrivateKey(t){this.markDirty()}on(t,e){let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}off(t,e){let i=this._settingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._settingEvents[t]}onPrivate(t,e){let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}offPrivate(t,e){let i=this._privateSettingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._privateSettingEvents[t]}getRaw(t,e){const i=this._settings[t];return void 0!==i?i:e}has(t){return t in this._settings}get(t,e){return this.getRaw(t,e)}_sendKeyEvent(t,e){const i=this._settingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_sendPrivateKeyEvent(t,e){const i=this._privateSettingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_setRaw(t,e,i){this._prevSettings[t]=e,this._sendKeyEvent(t,i)}setRaw(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&this._setRaw(t,i,e)}_set(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&(this._setRaw(t,i,e),this._markDirtyKey(t))}_stopAnimation(t){const e=this._animatingSettings[t];e&&(delete this._animatingSettings[t],e.stop())}set(t,e){return this._set(t,e),this._stopAnimation(t),e}remove(t){t in this._settings&&(this._prevSettings[t]=this._settings[t],delete this._settings[t],this._sendKeyEvent(t,void 0),this._markDirtyKey(t)),this._stopAnimation(t)}removeAll(){u.each(o.keys(this._settings),(t=>{this.remove(t)}))}getPrivate(t,e){const i=this._privateSettings[t];return void 0!==i?i:e}_setPrivateRaw(t,e,i){this._prevPrivateSettings[t]=e,this._sendPrivateKeyEvent(t,i)}setPrivateRaw(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&this._setPrivateRaw(t,i,e)}_setPrivate(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&(this._setPrivateRaw(t,i,e),this._markDirtyPrivateKey(t))}_stopAnimationPrivate(t){const e=this._animatingPrivateSettings[t];e&&(e.stop(),delete this._animatingPrivateSettings[t])}setPrivate(t,e){return this._setPrivate(t,e),this._stopAnimationPrivate(t),e}removePrivate(t){t in this._privateSettings&&(this._prevPrivateSettings[t]=this._privateSettings[t],delete this._privateSettings[t],this._markDirtyPrivateKey(t)),this._stopAnimationPrivate(t)}setAll(t){o.each(t,((t,e)=>{this.set(t,e)}))}animate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.get(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.set(e,i);else{if(void 0!==r&&r!==i){this.set(e,r);const t=this._animatingSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.set(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}animatePrivate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.getPrivate(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.setPrivate(e,i);else{if(void 0!==r&&r!==i){this.setPrivate(e,r);const t=this._animatingPrivateSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.setPrivate(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}}class m extends _{constructor(t,e,i,s=[]){if(super(e),this.states=new l(this),this.adapters=new p(this),this.events=this._createEvents(),this._userPrivateProperties={},this._dirty={},this._dirtyPrivate={},this._templates=[],this._defaultThemes=[],this._templateDisposers=[],this._disposers=[],this._runSetup=!0,this._disposerProperties={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t,this._internalTemplates=s,e.id&&this._registerId(e.id)}static new(t,e,i){const s=new this(t,e,!0);return s._template=i,s._afterNew(),s}static _new(t,e,i=[]){const s=new this(t,e,!0,i);return s._afterNew(),s}_afterNew(){this._checkDirty();let t=!1;const e=this._template;e&&(t=!0,e._setObjectTemplate(this)),u.each(this._internalTemplates,(e=>{t=!0,e._setObjectTemplate(this)})),t&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const t=this._template;t&&t._setObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._setObjectTemplate(this)})),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new n.p}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(t,e){const i=this.get(t);if(i)return i;{const i=e();return this.set(t,i),i}}_setDefault(t,e){this.has(t)||super.set(t,e)}_setRawDefault(t,e){this.has(t)||super.setRaw(t,e)}_clearDirty(){o.keys(this._dirty).forEach((t=>{this._dirty[t]=!1})),o.keys(this._dirtyPrivate).forEach((t=>{this._dirtyPrivate[t]=!1}))}isDirty(t){return!!this._dirty[t]}isPrivateDirty(t){return!!this._dirtyPrivate[t]}_markDirtyKey(t){this._dirty[t]=!0,super._markDirtyKey(t)}_markDirtyPrivateKey(t){this._dirtyPrivate[t]=!0,super._markDirtyKey(t)}isType(t){return-1!==this.classNames.indexOf(t)}_pushPropertyDisposer(t,e){let i=this._disposerProperties[t];return void 0===i&&(i=this._disposerProperties[t]=[]),i.push(e),e}_disposeProperty(t){const e=this._disposerProperties[t];void 0!==e&&(u.each(e,(t=>{t.dispose()})),delete this._disposerProperties[t])}set template(t){const e=this._template;e!==t&&(this._template=t,e&&e._removeObjectTemplate(this),t&&t._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(t){}_applyStateAnimated(t,e){}get(t,e){const i=this.adapters.fold(t,this._settings[t]);return void 0!==i?i:e}isUserSetting(t){return this._userProperties[t]||!1}set(t,e){return this._userProperties[t]=!0,super.set(t,e)}setRaw(t,e){this._userProperties[t]=!0,super.setRaw(t,e)}_setSoft(t,e){return this._userProperties[t]?e:super.set(t,e)}remove(t){delete this._userProperties[t],this._removeTemplateProperty(t)}setPrivate(t,e){return this._userPrivateProperties[t]=!0,super.setPrivate(t,e)}setPrivateRaw(t,e){this._userPrivateProperties[t]=!0,super.setPrivateRaw(t,e)}removePrivate(t){delete this._userPrivateProperties[t],this._removeTemplatePrivateProperty(t)}_setTemplateProperty(t,e,i){this._userProperties[e]||t===this._findTemplateByKey(e)&&super.set(e,i)}_setTemplatePrivateProperty(t,e,i){this._userPrivateProperties[e]||t===this._findTemplateByPrivateKey(e)&&super.setPrivate(e,i)}_removeTemplateProperty(t){if(!this._userProperties[t]){const e=this._findTemplateByKey(t);e?super.set(t,e._settings[t]):super.remove(t)}}_removeTemplatePrivateProperty(t){if(!this._userPrivateProperties[t]){const e=this._findTemplateByPrivateKey(t);e?super.setPrivate(t,e._privateSettings[t]):super.removePrivate(t)}}_walkParents(t){t(this._root._rootContainer),t(this)}_applyStateByKey(t){const e=this.states.create(t,{}),i={};this._eachTemplate((s=>{const n=s.states.lookup(t);n&&n._apply(e,i)})),o.each(e._settings,(t=>{i[t]||e._userSettings[t]||e.remove(t)}))}_applyTemplate(t,e){this._templateDisposers.push(t._apply(this,e)),o.each(t._settings,((t,i)=>{e.settings[t]||this._userProperties[t]||(e.settings[t]=!0,super.set(t,i))})),o.each(t._privateSettings,((t,i)=>{e.privateSettings[t]||this._userPrivateProperties[t]||(e.privateSettings[t]=!0,super.setPrivate(t,i))})),this._runSetup&&t.setup&&(this._runSetup=!1,t.setup(this))}_findStaticTemplate(t){if(this._template&&t(this._template))return this._template}_eachTemplate(t){this._findStaticTemplate((e=>(t(e),!1))),u.eachReverse(this._internalTemplates,t),u.each(this._templates,t)}_applyTemplates(t=!0){t&&this._disposeTemplates();const e={settings:{},privateSettings:{},states:{}};this._eachTemplate((t=>{this._applyTemplate(t,e)})),t&&(o.each(this._settings,(t=>{this._userProperties[t]||e.settings[t]||super.remove(t)})),o.each(this._privateSettings,(t=>{this._userPrivateProperties[t]||e.privateSettings[t]||super.removePrivate(t)})))}_findTemplate(t){const e=this._findStaticTemplate(t);if(void 0===e){const e=u.findReverse(this._internalTemplates,t);return void 0===e?u.find(this._templates,t):e}return e}_findTemplateByKey(t){return this._findTemplate((e=>t in e._settings))}_findTemplateByPrivateKey(t){return this._findTemplate((e=>t in e._privateSettings))}_disposeTemplates(){u.each(this._templateDisposers,(t=>{t.dispose()})),this._templateDisposers.length=0}_removeTemplates(){u.each(this._templates,(t=>{t._removeObjectTemplate(this)})),this._templates.length=0}_applyThemes(t=!1){if(this.get("ignoreThemes"))return!1;let e=!1;const i=[];let s=[];const n=new Set,r=this.get("themeTagsSelf");return r&&u.each(r,(t=>{n.add(t)})),this._walkParents((t=>{t===this._root._rootContainer&&(e=!0),t._defaultThemes.length>0&&i.push(t._defaultThemes);const r=t.get("themes");r&&s.push(r);const o=t.get("themeTags");o&&u.each(o,(t=>{n.add(t)}))})),s=i.concat(s),this._removeTemplates(),(e||t)&&u.eachReverse(this.classNames,(t=>{const e=[];u.each(s,(i=>{u.each(i,(i=>{const s=i._lookupRules(t);s&&u.eachReverse(s,(t=>{if(t.tags.every((t=>n.has(t)))){const i=u.getFirstSortedIndex(e,(e=>{const i=d.qu(t.tags.length,e.tags.length);return 0===i?d.wq(t.tags,e.tags,d.qu):i}));e.splice(i.index,0,t)}}))}))})),u.each(e,(t=>{this._templates.push(t.template),t.template._setObjectTemplate(this)}))})),this._applyTemplates(),(e||t)&&(this._runSetup=!1),e||t}_changed(){}_beforeChanged(){if(this.isDirty("id")){const t=this.get("id");t&&this._registerId(t);const e=this._prevSettings.id;e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}}_registerId(t){if(this._root.entitiesById[t]&&this._root.entitiesById[t]!==this)throw new Error('An entity with id "'+t+'" already exists.');this._root.entitiesById[t]=this,c.i_.entitiesById[t]=this}_afterChanged(){}addDisposer(t){return this._disposers.push(t),t}_dispose(){super._dispose();const t=this._template;t&&t._removeObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._removeObjectTemplate(this)})),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach((t=>{t.dispose()})),o.each(this._disposerProperties,((t,e)=>{u.each(e,(t=>{t.dispose()}))}));const e=this.get("id");e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}setTimeout(t,e){const i=setTimeout((()=>{this.removeDispose(n),t()}),e),n=new s.ku((()=>{clearTimeout(i)}));return this._disposers.push(n),n}removeDispose(t){if(!this.isDisposed()){let e=u.indexOf(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()}hasTag(t){return-1!==u.indexOf(this.get("themeTags",[]),t)}addTag(t){if(!this.hasTag(t)){const e=this.get("themeTags",[]);e.push(t),this.set("themeTags",e)}}removeTag(t){if(this.hasTag(t)){const e=this.get("themeTags",[]);u.remove(e,t),this.set("themeTags",e)}}_t(t,e,...i){return this._root.language.translate(t,e,...i)}get root(){return this._root}}m.className="Entity",m.classNames=["Entity"]},9770:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var s=i(7449),n=i(5071),r=i(5040);class o{constructor(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{n.each(t,(t=>{t.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}}hasListeners(){return 0!==this._listeners.length}hasListenersByType(t){return n.any(this._listeners,(e=>(null===e.type||e.type===t)&&!e.killed))}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(t){delete this._disabled[t]}disableType(t,e=1/0){this._disabled[t]=e}_removeListener(t){if(0===this._iterating){const e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)}_removeExistingListener(t,e,i,s){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((n=>{n.once!==t||n.type!==e||void 0!==i&&n.callback!==i||n.context!==s||n.disposer.dispose()}))}isEnabled(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&void 0===this._disabled[t]}removeType(t){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((e=>{e.type===t&&e.disposer.dispose()}))}has(t,e,i){return-1!==n.findIndex(this._listeners,(s=>!0!==s.once&&s.type===t&&(void 0===e||s.callback===e)&&s.context===i))}_shouldDispatch(t){if(this._disposed)throw new Error("EventDispatcher is disposed");const e=this._disabled[t];return r.isNumber(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled}_eachListener(t){++this._iterating;try{n.each(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(n.each(this._killed,(t=>{this._removeListener(t)})),this._killed.length=0)}}dispatch(t,e){this._shouldDispatch(t)&&this._eachListener((i=>{i.killed||null!==i.type&&i.type!==t||(i._debounceDelay?(i._debounceTimeout&&window.clearTimeout(i._debounceTimeout),i._debounceTimeout=window.setTimeout((()=>{i._debounceTimeout=void 0,i.killed||i.dispatch(t,e)}),i._debounceDelay)):i.dispatch(t,e))}))}_on(t,e,i,n,r,o,a){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);const h={type:e,callback:i,context:n,shouldClone:r,dispatch:o,killed:!1,once:t,disposer:new s.ku((()=>{h.killed=!0,h._debounceTimeout&&window.clearTimeout(h._debounceTimeout),this._removeListener(h)})),_debounceDelay:a};return this._listeners.push(h),h}onAll(t,e,i=!0){return this._on(!1,null,t,e,i,((i,s)=>t.call(e,s))).disposer}on(t,e,i,s=!0){return this._on(!1,t,e,i,s,((t,s)=>e.call(i,s))).disposer}onDebounced(t,e,i,s,n=!0){return this._on(!1,t,e,s,n,((t,i)=>e.call(s,i)),i).disposer}once(t,e,i,s=!0){const n=this._on(!0,t,e,i,s,((t,s)=>{n.disposer.dispose(),e.call(i,s)}));return n.disposer}off(t,e,i){this._removeExistingListener(!1,t,e,i)}copyFrom(t){if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const e=[];return n.each(t._listeners,(t=>{!t.killed&&t.shouldClone&&(null===t.type?e.push(this.onAll(t.callback,t.context)):t.once?e.push(this.once(t.type,t.callback,t.context)):e.push(this.on(t.type,t.callback,t.context)))})),new s.FV(e)}}},9821:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(6331);class n extends s.JH{}n.className="InterfaceColors",n.classNames=s.JH.classNames.concat([n.className])},7144:function(t,e,i){"use strict";i.d(e,{aV:function(){return o},dn:function(){return a},o:function(){return h}});var s=i(9770),n=i(5071);function r(t,e){if(!(t>=0&&t=0&&t{this.push(t)}))}copyFrom(t){this.pushAll(t._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(t){const e=this._values;this._values=[],this._onClear(e),n.each(t,(t=>{this._values.push(t),this._onPush(t)}))}clear(){this.setAll([])}*[Symbol.iterator](){const t=this._values.length;for(let e=0;e{t.dispose()})),super._onClear(t)}_dispose(){this.autoDispose&&n.each(this._values,(t=>{t.dispose()}))}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class h extends a{constructor(t,e){super(),this.template=t,this.make=e}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}}},751:function(t,e,i){"use strict";i.r(e),i.d(e,{DEGREES:function(){return a},HALFPI:function(){return r},PI:function(){return n},RADIANS:function(){return o},boundsOverlap:function(){return M},ceil:function(){return l},circlesOverlap:function(){return O},closest:function(){return T},cos:function(){return f},fitAngleToRange:function(){return w},fitToRange:function(){return d},getAngle:function(){return x},getArcBounds:function(){return m},getArcPoint:function(){return y},getCubicControlPointA:function(){return c},getCubicControlPointB:function(){return u},getPointOnLine:function(){return k},getPointOnQuadraticCurve:function(){return D},inBounds:function(){return b},mergeBounds:function(){return v},normalizeAngle:function(){return _},round:function(){return h},sin:function(){return p},spiralPoints:function(){return E},tan:function(){return g}});var s=i(5040);const n=Math.PI,r=n/2,o=n/180,a=180/n;function h(t,e,i){if(!(0,s.isNumber)(e)||e<=0){let e=Math.round(t);return i&&e-t==.5&&e--,e}{let i=Math.pow(10,e);return Math.round(t*i)/i}}function l(t,e){if(!(0,s.isNumber)(e)||e<=0)return Math.ceil(t);{let i=Math.pow(10,e);return Math.ceil(t*i)/i}}function c(t,e,i,s,n){return{x:(-t.x+e.x/s+i.x)*s,y:(-t.y+e.y/n+i.y)*n}}function u(t,e,i,s,n){return{x:(t.x+e.x/s-i.x)*s,y:(t.y+e.y/n-i.y)*n}}function d(t,e,i){return Math.min(Math.max(t,e),i)}function p(t){return Math.sin(o*t)}function g(t){return Math.tan(o*t)}function f(t){return Math.cos(o*t)}function _(t){return(t%=360)<0&&(t+=360),t}function m(t,e,i,s,n){let r=Number.MAX_VALUE,o=Number.MAX_VALUE,a=-Number.MAX_VALUE,h=-Number.MAX_VALUE,l=[];l.push(y(n,i)),l.push(y(n,s));let c=Math.min(90*Math.floor(i/90),90*Math.floor(s/90)),u=Math.max(90*Math.ceil(i/90),90*Math.ceil(s/90));for(let t=c;t<=u;t+=90)t>=i&&t<=s&&l.push(y(n,t));for(let t=0;ta&&(a=e.x),e.y>h&&(h=e.y)}return{left:t+r,top:e+o,right:t+a,bottom:e+h}}function y(t,e){return{x:t*f(e),y:t*p(e)}}function v(t){const e=t.length;if(e>0){let i=t[0],s=i.left,n=i.top,r=i.right,o=i.bottom;if(e>1)for(let a=1;ai){let t=e;e=i,i=t}t=_(t);let s=(e-_(e))/360;return ti&&(t-360>e?t-=360:t=te+(i-e)/2-180?e:i),t}function b(t,e){return t.x>=e.left&&t.y>=e.top&&t.x<=e.right&&t.y<=e.bottom}function x(t,e){e||(e={x:2*t.x,y:2*t.y});let i=e.x-t.x,s=e.y-t.y,n=Math.atan2(s,i)*a;return n<0&&(n+=360),_(n)}function D(t,e,i,s){return{x:(1-s)*(1-s)*t.x+2*(1-s)*s*i.x+s*s*e.x,y:(1-s)*(1-s)*t.y+2*(1-s)*s*i.y+s*s*e.y}}function k(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function T(t,e){return t.reduce((function(t,i){return Math.abs(i-e)e.left,s=t.tope.top;return i&&s}function E(t,e,i,s,n,r,h,l,c){let u=n+.01;l=_(l),c=_(c);let d=l*o;cu&&(o=2*u),o*=Math.max(.01,Math.min(1,u/200));let g=d*a,f={x:t+u*Math.cos(d),y:e+u*s/i*Math.sin(d)};if(p.push(f),u=n+.01+(g-l)/360*h,d+=2*Math.asin(o/2/u),d*a>c+360*Math.ceil((i-n)/h))break}return p.shift(),p}function O(t,e){return Math.hypot(t.x-e.x,t.y-e.y)<=t.radius+e.radius}},8219:function(t,e,i){"use strict";i.d(e,{u:function(){return a}});var s=i(6331),n=i(7652),r=i(7449);let o;class a extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._setRawDefault("deactivateRoot",!0),function(t,e,i){const s=e.interfaceColors,a=s.get("secondaryButton").toCSS(),h=s.get("text").toCSS(),l=s.get("alternativeBackground").toCSS(.45);if(!o){const i=new r.FV([new n.StyleRule(t,".am5-modal",{width:"100%",height:"100%",position:"absolute","z-index":"100000",top:"0",left:"0"},e.nonce),new n.StyleRule(t,".am5-modal-curtain",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute",background:s.get("background").toCSS(.5),"z-index":"100"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute","text-align":"center","white-space":"nowrap",background:s.get("background").toCSS(.5),"z-index":"101"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper:before",{content:"''",display:"inline-block",height:"100%","vertical-align":"middle","margin-right":"-0.25em"},e.nonce),new n.StyleRule(t,".am5-modal-content",{display:"inline-block",padding:"1.2em","vertical-align":"middle","text-align":"start","white-space":"normal",background:s.get("background").toCSS(),"border-radius":"4px","-webkit-box-shadow":"0px 0px 36px 0px "+l,"box-shadow":"0px 0px 36px 0px "+l,color:h},e.nonce),new n.StyleRule(t,".am5-modal-content h1",{"font-size":"1em",margin:"0 0 0.5em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table",{display:"table",margin:"1em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-row",{display:"table-row"},e.nonce),new n.StyleRule(t,".am5-modal-table-heading",{display:"table-heading",padding:"3px 10px 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell",{display:"table-cell",padding:"3px 0 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell > *",{"vertical-align":"middle"},e.nonce),new n.StyleRule(t,".am5-modal-content input[type=text], .am5-modal-content input[type=number], .am5-modal-content select",{border:"1px solid "+a,"border-radius":"4px",padding:"3px 5px",margin:"2px"},e.nonce),new n.StyleRule(t,".am5-modal-input-narrow",{width:"50px"},e.nonce),new n.StyleRule(t,".am5-modal-button",{"font-weight":"400",color:s.get("secondaryButtonText").toCSS(),"line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer",padding:"0.2em 0.8em","font-size":"1em","border-radius":"0.25em",margin:"0 0.25em 0 0",border:"1px solid "+s.get("secondaryButtonStroke").toCSS(),background:s.get("secondaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button:hover",{background:s.get("secondaryButtonHover").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary",{color:s.get("primaryButtonText").toCSS(),border:"1px solid "+s.get("primaryButtonStroke").toCSS(),background:s.get("primaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary:hover",{background:s.get("primaryButtonHover").toCSS()},e.nonce)]);o=new r.DM((()=>{o=void 0,i.dispose()}))}o.increment()}(n.getShadowRoot(this._root.dom),this._root);const t=document.createElement("div");t.className="am5-modal",t.style.display="none",this.root._inner.appendChild(t),this.setPrivate("container",t);const e=document.createElement("div");e.className="am5-modal-curtain",t.appendChild(e),this.setPrivate("curtain",e),this._disposers.push(n.addEventListener(e,"click",(()=>{this.cancel()})));const i=document.createElement("div");i.className="am5-modal-wrapper",t.appendChild(i),this.setPrivate("wrapper",i);const s=document.createElement("div");s.className="am5-modal-content",i.appendChild(s),this.setPrivate("content",s);const a=this.get("content");a&&(s.innerHTML=a),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{this.isOpen()&&"Escape"==n.getEventKey(t)&&this.cancel()})))}_beforeChanged(){super._beforeChanged(),this.isDirty("content")&&(this.getPrivate("content").innerHTML=this.get("content",""))}isOpen(){return"none"!=this.getPrivate("container").style.display}open(){this.getPrivate("container").style.display="block",this.get("deactivateRoot")&&this.setTimeout((()=>{this._root._renderer.interactionsEnabled=!1}),10),this.events.dispatch("opened",{type:"opened",target:this})}close(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("closed",{type:"closed",target:this})}cancel(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("cancelled",{type:"cancelled",target:this})}_dispose(){super._dispose();const t=this.getPrivate("container");t.parentElement&&t.parentElement.removeChild(t)}}a.className="Modal",a.classNames=s.JH.classNames.concat([a.className])},780:function(t,e,i){"use strict";i.d(e,{e:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const t="_big_number_suffix_",e="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(t+"3")},{number:1e6,suffix:this._t(t+"6")},{number:1e9,suffix:this._t(t+"9")},{number:1e12,suffix:this._t(t+"12")},{number:1e15,suffix:this._t(t+"15")},{number:1e18,suffix:this._t(t+"18")},{number:1e21,suffix:this._t(t+"21")},{number:1e24,suffix:this._t(t+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(e+"24")},{number:1e-21,suffix:this._t(e+"21")},{number:1e-18,suffix:this._t(e+"18")},{number:1e-15,suffix:this._t(e+"15")},{number:1e-12,suffix:this._t(e+"12")},{number:1e-9,suffix:this._t(e+"9")},{number:1e-6,suffix:this._t(e+"6")},{number:.001,suffix:this._t(e+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s;(null==e||a.isString(e)&&"number"===e.toLowerCase())&&(e=this.get("numberFormat",""));let n=Number(t);if(a.isObject(e))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),e).format(n):new Intl.NumberFormat(void 0,e).format(n)}catch(t){return"Invalid"}else{e=o.cleanFormat(e);let t,h=this.parseFormat(e,this._root.language);t=n>this.get("negativeBase")?h.positive:n{if(e.parsed)return;let i=e.source;"number"===i.toLowerCase()&&(i=this.get("numberFormat","#,###.#####"));let s=n.V.chunk(i,!0);for(let t=0;t=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(i[0]),n="e"+i[1],e.modSpacing&&(n=" "+n)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){const i=o.decimalPlaces(t);if(i>0){const s=Math.pow(10,e.decimals.passive);t=Math.round(parseFloat((t*s).toFixed(i)))/s}}let h="",l=a.numberToString(t).split("."),c=l[0];if(c.length0){let t=[],i=c.split("").reverse().join("");for(let s=0,n=c.length;s<=n;s+=e.thousands.interval){let n=i.substr(s,e.thousands.interval).split("").reverse().join("");""!==n&&t.unshift(n)}c=t.join(e.thousands.separator)}h+=c,1===l.length&&l.push("");let u=l[1];return u.length{e(i,t[i])}))}function l(t,e){for(let i in t)if(u(t,i)&&!e(i,t[i]))break}function c(t,e,i){s.each(o(t,i),(i=>{e(i,t[i])}))}function u(t,e){return{}.hasOwnProperty.call(t,e)}function d(t,e){return h(t,((t,i)=>{null!=i&&null==e[t]&&(e[t]=i)})),e}},3540:function(t,e,i){"use strict";function s(t,e){return t===e?0:t{a.isObject(e)&&"function"==typeof e.dispose&&(e.enableDispose=!0,e.dispose())}))}class l{constructor(t,e,i){this._name=t,this._template=e,this._settings=i}_dispose(){h(this._settings)}get(t,e){const i=this._settings[t];return void 0!==i?i:e}set(t,e){this._settings[t]=e,this._template._stateChanged(this._name)}remove(t){delete this._settings[t],this._template._stateChanged(this._name)}setAll(t){o.keys(t).forEach((e=>{this._settings[e]=t[e]})),this._template._stateChanged(this._name)}_apply(t,e){o.each(this._settings,((i,s)=>{e[i]||t._userSettings[i]||(e[i]=!0,t.setRaw(i,s))}))}}class c{constructor(t){this._states={},this._template=t}_dispose(){o.each(this._states,((t,e)=>{e._dispose()}))}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new l(t,this._template,e);return this._states[t]=i,this._template._stateChanged(t),i}}remove(t){delete this._states[t],this._template._stateChanged(t)}_apply(t,e){o.each(this._states,((i,s)=>{let n=e.states[i];null==n&&(n=e.states[i]={});const r=t.states.create(i,{});s._apply(r,n)}))}}class u{constructor(){this._callbacks={}}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._callbacks[t]}))}remove(t){void 0!==this._callbacks[t]&&delete this._callbacks[t]}_apply(t){const e=[];return o.each(this._callbacks,((i,s)=>{r.each(s,(s=>{e.push(t.adapters.add(i,s))}))})),new n.FV(e)}}class d{constructor(t,e){if(this._disposed=!1,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._entities=[],this.states=new c(this),this.adapters=new u,this.events=new s.p,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=t}static new(t){return new d(t,!0)}_dispose(){h(this._settings),h(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(t,e){this._checkDisposed();const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._checkDisposed(),this._settings[t]=e}set(t,e){this._checkDisposed(),this._settings[t]!==e&&(this.setRaw(t,e),this._entities.forEach((i=>{i._setTemplateProperty(this,t,e)})))}remove(t){this._checkDisposed(),t in this._settings&&(delete this._settings[t],this._entities.forEach((e=>{e._removeTemplateProperty(t)})))}removeAll(){this._checkDisposed(),o.each(this._settings,((t,e)=>{this.remove(t)}))}getPrivate(t,e){this._checkDisposed();const i=this._privateSettings[t];return void 0!==i?i:e}setPrivateRaw(t,e){return this._checkDisposed(),this._privateSettings[t]=e,e}setPrivate(t,e){return this._checkDisposed(),this._privateSettings[t]!==e&&(this.setPrivateRaw(t,e),this._entities.forEach((i=>{i._setTemplatePrivateProperty(this,t,e)}))),e}removePrivate(t){this._checkDisposed(),t in this._privateSettings&&(delete this._privateSettings[t],this._entities.forEach((e=>{e._removeTemplatePrivateProperty(t)})))}setAll(t){this._checkDisposed(),o.each(t,((t,e)=>{this.set(t,e)}))}on(t,e){this._checkDisposed();let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}onPrivate(t,e){this._checkDisposed();let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}_apply(t,e){this._checkDisposed();const i=[];return o.each(this._settingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.on(e,s))}))})),o.each(this._privateSettingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.onPrivate(e,s))}))})),this.states._apply(t,e),i.push(this.adapters._apply(t)),i.push(t.events.copyFrom(this.events)),new n.FV(i)}_setObjectTemplate(t){this._checkDisposed(),this._entities.push(t)}_removeObjectTemplate(t){r.remove(this._entities,t)}_stateChanged(t){this._checkDisposed(),this._entities.forEach((e=>{e._applyStateByKey(t)}))}}},7255:function(t,e,i){"use strict";i.d(e,{V:function(){return r}});var s=i(1112),n=i(5040);class r{static escape(t){return t.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(t){return t.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(t,e=!1,i=!1){let s=[];t=this.escape(t);let r=e?t.split("'"):[t];for(let t=0;t{setTimeout(e,t)}))}let o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629742400,year:31536e6};function a(t){switch(t){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function h(t,e){return null==e&&(e=1),o[t]*e}function l(t){return t?o[t.timeUnit]*t.count:0}function c(t,e,i,s,n){const r=t.timeUnit,a=t.count;if("hour"==r||"minute"==r||"second"==r||"millisecond"==r)return o[t.timeUnit]*t.count;{const t=m(new Date(e.getTime()),r,a,i,s,void 0,n).getTime();let o=t+a*h(r)*1.05;return o=m(new Date(o),r,1,i,s,void 0,n).getTime(),o-t}}function u(){return new Date}function d(){return u().getTime()}function p(t){return new Date(t.getTime())}function g(t,e,i,s,n){if(e-t>h(i,1.2))return!0;let r=new Date(t),o=new Date(e);n&&(r=n.convertLocal(r),o=n.convertLocal(o));let l=0,c=0;s||"millisecond"==i||(l=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-l),c=o.getTimezoneOffset(),o.setUTCMinutes(o.getUTCMinutes()-c));let u=!1;switch(i){case"year":r.getUTCFullYear()!=o.getUTCFullYear()&&(u=!0);break;case"month":(r.getUTCFullYear()!=o.getUTCFullYear()||r.getUTCMonth()!=o.getUTCMonth())&&(u=!0);break;case"day":(r.getUTCMonth()!=o.getUTCMonth()||r.getUTCDate()!=o.getUTCDate())&&(u=!0);break;case"hour":r.getUTCHours()!=o.getUTCHours()&&(u=!0);break;case"minute":r.getUTCMinutes()!=o.getUTCMinutes()&&(u=!0);break;case"second":r.getUTCSeconds()!=o.getUTCSeconds()&&(u=!0);break;case"millisecond":r.getTime()!=o.getTime()&&(u=!0)}if(u)return u;let d=a(i);return!!d&&g(t,e,d,s,n)}function f(t,e,i,s,n){let r=0;switch(s||"millisecond"==e||(r=t.getTimezoneOffset(),n&&(r-=n.offsetUTC(t)),t.setUTCMinutes(t.getUTCMinutes()-r)),e){case"day":let e=t.getUTCDate();t.setUTCDate(e+i);break;case"second":let s=t.getUTCSeconds();t.setUTCSeconds(s+i);break;case"millisecond":let n=t.getUTCMilliseconds();t.setUTCMilliseconds(n+i);break;case"hour":let r=t.getUTCHours();t.setUTCHours(r+i);break;case"minute":let o=t.getUTCMinutes();t.setUTCMinutes(o+i);break;case"year":let a=t.getUTCFullYear();t.setUTCFullYear(a+i);break;case"month":const h=t.getUTCDate(),l=new Date(t.getUTCFullYear(),t.getUTCMonth(),0).getUTCDate();let c=t.getUTCMonth();h>l?t.setUTCMonth(c+i,l):t.setUTCMonth(c+i);break;case"week":let u=t.getUTCDate();t.setUTCDate(u+7*i)}if(!s&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+r),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(n&&(e+=n.offsetUTC(t)),e!=r){let i=e-r;t.setUTCMinutes(t.getUTCMinutes()+i),t.getTimezoneOffset()!=e&&t.setUTCMinutes(t.getUTCMinutes()-i)}}return t}function _(t,e,i,s,n){let r;return null!=n&&(r=new Date(n)),m(new Date(t),e,i,s.locale.firstDayOfWeek,s.utc,r,s.timezone).getTime()}function m(t,e,i,n,r,o,a){if(!a||r){let a=0;switch(r||"millisecond"==e||(a=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-a)),e){case"day":let e=t.getUTCDate();if(i>1){if(o){o=m(o,"day",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),n=h("day",s*i);t.setTime(o.getTime()+n-a*h("minute"))}}else t.setUTCDate(e);t.setUTCHours(0,0,0,0);break;case"second":let r=t.getUTCSeconds();i>1&&(r=Math.floor(r/i)*i),t.setUTCSeconds(r,0);break;case"millisecond":if(1==i)return t;let l=t.getUTCMilliseconds();l=Math.floor(l/i)*i,t.setUTCMilliseconds(l);break;case"hour":let c=t.getUTCHours();i>1&&(c=Math.floor(c/i)*i),t.setUTCHours(c,0,0,0);break;case"minute":let u=t.getUTCMinutes();i>1&&(u=Math.floor(u/i)*i),t.setUTCMinutes(u,0,0);break;case"month":let d=t.getUTCMonth();i>1&&(2!=i&&3!=i&&4!=i&&6!=i||(d=Math.floor(d/i)*i)),t.setUTCMonth(d,1),t.setUTCHours(0,0,0,0);break;case"year":let p=t.getUTCFullYear();i>1&&(p=Math.floor(p/i)*i),t.setUTCFullYear(p,0,1),t.setUTCHours(0,0,0,0);break;case"week":if(i>1&&o){o=m(o,"week",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("week")/i),n=h("week",s*i);t.setTime(o.getTime()+n-a*h("minute"))}let g=t.getUTCDate(),f=t.getUTCDay();s.isNumber(n)||(n=1),g=f>=n?g-f+n:g-(7+f)+n,t.setUTCDate(g),t.setUTCHours(0,0,0,0)}if(!r&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+a),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(e!=a){let i=e-a;t.setUTCMinutes(t.getUTCMinutes()+i)}}return t}{if(isNaN(t.getTime()))return t;let l=t.getTime(),c=a.offsetUTC(t),u=t.getTimezoneOffset(),d=a.parseDate(t),p=d.year,g=d.month,f=d.day,_=d.hour,y=d.minute,v=d.second,w=d.millisecond,b=d.weekday,x=c-u;switch(e){case"day":if(i>1&&o){o=m(o,"day",1,n,r,void 0,a);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),l=h("day",s*i);t.setTime(o.getTime()+l),d=a.parseDate(t),p=d.year,g=d.month,f=d.day}_=0,y=x,v=0,w=0;break;case"second":y+=x,i>1&&(v=Math.floor(v/i)*i),w=0;break;case"millisecond":y+=x,i>1&&(w=Math.floor(w/i)*i);break;case"hour":i>1&&(_=Math.floor(_/i)*i),y=x,v=0,w=0;break;case"minute":i>1&&(y=Math.floor(y/i)*i),y+=x,v=0,w=0;break;case"month":i>1&&(g=Math.floor(g/i)*i),f=1,_=0,y=x,v=0,w=0;break;case"year":i>1&&(p=Math.floor(p/i)*i),g=0,f=1,_=0,y=x,v=0,w=0;break;case"week":s.isNumber(n)||(n=1),f=b>=n?f-b+n:f-(7+b)+n,_=0,y=x,v=0,w=0}const D=(t=new Date(p,g,f,_,y,v,w)).getTime();let k=36e5;"hour"==e&&(k=36e5*i),D+k<=l&&("hour"!=e&&"minute"!=e&&"second"!=e&&"millisecond"!=e||(t=new Date(D+k)));let T=t.getTimezoneOffset(),M=a.offsetUTC(t)-T;return M!=x&&t.setTime(t.getTime()+6e4*(M-x)),t}}function y(t,e,i,s){let n=l(s[t]),r=s.length-1;if(t>=r)return Object.assign({},s[r]);let o=Math.ceil(e/n);return e0?Object.assign({},s[t-1]):o<=i?Object.assign({},s[t]):t+1{switch(t.type){case"year":i=+t.value;break;case"month":s=+t.value-1;break;case"day":n=+t.value;break;case"hour":r=+t.value;break;case"minute":o=+t.value;break;case"second":a=+t.value;break;case"fractionalSecond":h=+t.value;break;case"weekday":switch(t.value){case"Sun":l=0;break;case"Mon":l=1;break;case"Tue":l=2;break;case"Wed":l=3;break;case"Thu":l=4;break;case"Fri":l=5;break;case"Sat":l=6}}})),24===r&&(r=0),{year:i,month:s,day:n,hour:r,minute:o,second:a,millisecond:h,weekday:l}}function n(t,e){const{year:i,month:n,day:r,hour:o,minute:a,second:h,millisecond:l}=s(t,e);return Date.UTC(i,n,r,o,a,h,l)}i.d(e,{r:function(){return r}});class r{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=t,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(t){return new this(t,!0)}convertLocal(t){const e=this.offsetUTC(t),i=t.getTimezoneOffset(),s=new Date(t);s.setUTCMinutes(s.getUTCMinutes()-(e-i));const n=s.getTimezoneOffset();return i!=n&&s.setUTCMinutes(s.getUTCMinutes()+n-i),s}offsetUTC(t){return(n(this._utc,t)-n(this._dtf,t))/6e4}parseDate(t){return s(this._dtf,t)}}},5040:function(t,e,i){"use strict";function s(t){return Number(t)!==t}function n(t){return{}.toString.call(t)}function r(t,e="Assertion failed"){if(!t)throw new Error(e)}function o(t){if(null!=t&&!d(t)){let e=Number(t);if(s(e)&&u(t)&&""!=t&&t.match(/[0-9]+/)){const i=t.replace(/[^0-9.\-]+/g,"");return t===i?e:o(i)}return e}return t}function a(t){if(c(t))return new Date(t);if(d(t))return new Date(t);{let e=Number(t);return d(e)?new Date(e):new Date(t)}}function h(t){if(s(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t==-1/0)return"-0";let e=t<0;t=Math.abs(t);let i,n=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t),r=n[1],o=n[2]||"";if(void 0===n[3])i=""===o?r:r+"."+o;else{let e=+n[3];if(t<1)i="0."+l("0",e-1)+r+o;else{let t=e-o.length;i=0===t?r+o:t<0?r+o.slice(0,t)+"."+o.slice(t):r+o+l("0",t)}}return e?"-"+i:i}function l(t,e){return new Array(e+1).join(t)}function c(t){return"[object Date]"===n(t)}function u(t){return"string"==typeof t}function d(t){return"number"==typeof t&&Number(t)==t}function p(t){return"object"==typeof t&&null!==t}function g(t){return Array.isArray(t)}i.r(e),i.d(e,{PLACEHOLDER:function(){return f},PLACEHOLDER2:function(){return _},assert:function(){return r},getType:function(){return n},isArray:function(){return g},isDate:function(){return c},isNaN:function(){return s},isNumber:function(){return d},isObject:function(){return p},isString:function(){return u},numberToString:function(){return h},repeat:function(){return l},toDate:function(){return a},toNumber:function(){return o}});const f="__§§§__",_="__§§§§__"},7652:function(t,e,i){"use strict";i.r(e),i.d(e,{StyleRule:function(){return E},StyleSheet:function(){return O},addClass:function(){return P},addEventListener:function(){return l},addSpacing:function(){return Y},alternativeColor:function(){return dt},blur:function(){return p},brighten:function(){return ht},capitalizeFirst:function(){return et},cleanFormat:function(){return z},contains:function(){return w},decimalPlaces:function(){return A},escapeForRgex:function(){return W},focus:function(){return g},get12Hours:function(){return Q},getBrightnessStep:function(){return lt},getDayFromWeek:function(){return q},getEventKey:function(){return D},getEventTarget:function(){return v},getFormat:function(){return H},getLightnessStep:function(){return at},getMonthWeek:function(){return K},getPointerId:function(){return d},getRendererEvent:function(){return f},getSafeResolution:function(){return C},getShadowRoot:function(){return k},getStyle:function(){return y},getTimeZone:function(){return J},getTimezoneOffset:function(){return tt},getWeek:function(){return $},getWeekYear:function(){return Z},getYearDay:function(){return X},hslToHsv:function(){return rt},hslToRgb:function(){return it},hsvToHsl:function(){return nt},iOS:function(){return N},isLight:function(){return ct},isLocalEvent:function(){return b},isTouchEvent:function(){return _},lighten:function(){return ot},mergeTags:function(){return pt},onZoom:function(){return c},padString:function(){return R},plainText:function(){return V},ready:function(){return a},relativeToValue:function(){return L},removeClass:function(){return S},removeElement:function(){return h},rgbToHsl:function(){return st},sameBounds:function(){return gt},saturate:function(){return ut},setInteractive:function(){return x},setStyle:function(){return m},splitString:function(){return j},stripTags:function(){return G},supports:function(){return u},trim:function(){return F},trimLeft:function(){return U},trimRight:function(){return B},truncateTextWithEllipsis:function(){return I}});var s=i(5040),n=i(5071),r=i(256),o=i(7449);function a(t){if("loading"!==document.readyState)t();else{const e=()=>{"loading"!==document.readyState&&(document.removeEventListener("readystatechange",e),t())};document.addEventListener("readystatechange",e)}}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function l(t,e,i,s){return t.addEventListener(e,i,s||!1),new o.ku((()=>{t.removeEventListener(e,i,s||!1)}))}function c(t){return l(window,"resize",(e=>{t()}))}function u(t){switch(t){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function d(t){return t.pointerId||0}function p(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let t=document.createElement("button");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}}function g(t){t&&t.focus()}function f(t){if(u("pointerevents"))return t;if(u("touchevents"))switch(t){case"pointerover":case"pointerdown":return"touchstart";case"pointerout":case"pointerleave":case"pointerup":return"touchend";case"pointermove":return"touchmove";case"click":return"click";case"dblclick":return"dblclick"}else if(u("mouseevents"))switch(t){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return t}function _(t){if("undefined"!=typeof Touch&&t instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&t instanceof PointerEvent&&null!=t.pointerType)switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(null!=t.type&&t.type.match(/^mouse/))return!1;return!0}function m(t,e,i){t.style[e]=i}function y(t,e){return t.style[e]}function v(t){if(t.composedPath){const e=t.composedPath();return 0===e.length?null:e[0]}return t.target}function w(t,e){let i=e;for(;;){if(t===i)return!0;if(null===i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function b(t,e){return t.target&&w(e.root.dom,t.target)}function x(t,e){t.style.pointerEvents=e?"auto":"none"}function D(t){if(void 0!==t.key)return t.key;switch(t.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+t.keyCode}function k(t){let e=t;for(;;){if(null===e.parentNode)return null!=e.host?e:null;e=e.parentNode}}let T;function M(t,e){const i=t.cssRules.length;return t.insertRule(e+"{}",i),t.cssRules[i]}class E extends o.KK{constructor(t,e,i,s=""){super(),this._root=function(t,e=""){if(null===t){if(null==T){const t=document.createElement("style");t.type="text/css",""!=e&&t.setAttribute("nonce",e),document.head.appendChild(t),T=t.sheet}return T}{const i=document.createElement("style");return i.type="text/css",""!=e&&i.setAttribute("nonce",e),t.appendChild(i),i.sheet}}(t,s);try{this._rule=M(this._root,e)}catch(t){this._rule=M(this._root,":not(*)")}r.each(i,((t,e)=>{this.setStyle(t,e)}))}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){const t=n.indexOf(this._root.cssRules,this._rule);if(-1===t)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,e){const i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")}setStyle(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")}}class O extends o.KK{constructor(t,e,i=""){super(),this._element=function(t,e,i=""){const s=document.createElement("style");return s.type="text/css",""!=i&&s.setAttribute("nonce",i),s.textContent=e,null===t?document.head.appendChild(s):t.appendChild(s),s}(t,e,i)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}}function P(t,e){if(t)if(t.classList){const i=e.split(" ");n.each(i,(e=>{t.classList.add(e)}))}else{let i=t.getAttribute("class");i?t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" ")+" "+e):t.setAttribute("class",e)}}function S(t,e){if(t)if(t.classList)t.classList.remove(e);else{let i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" "))}}function N(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function C(){return N()?1:void 0}function L(t,e){return s.isNumber(t)?t:null!=t&&s.isNumber(t.value)&&s.isNumber(e)?e*t.value:0}function A(t){let e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function R(t,e=0,i="0"){return"string"!=typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t}function U(t){return t.replace(/^[\s]*/,"")}function B(t){return t.replace(/[\s]*$/,"")}function F(t){return U(B(t))}function I(t,e,i=!1,s="..."){if(t.length>e){let n=e-1;for(;n>=0&&t.charAt(n).match(/\w/);)n--;return n>=0&&0==i?t.substring(0,n+1)+"...":t.substring(0,e)+s}return t}function H(t){if(void 0===t)return"string";let e=(t=(t=(t=t.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return e?e[1]:"number"===t?"number":"date"===t?"date":"duration"===t?"duration":t.match(/[#0]/)?"number":t.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function z(t){return t.replace(/\/(date|number|duration)$/i,"")}function G(t){return t?t.replace(/<[^>]*>/g,""):t}function V(t){return t?G((""+t).replace(/[\n\r]+/g,". ")):t}function W(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Y(t){let e="";for(let i=0;i{if(t.match(/^\s+$/))(t=" ")&&(t=" "),n.push(t);else if(e.test(t)){let e=t.split(i).filter((t=>""!==t));n=n.concat(e)}else n=n.concat([...t])})),n}function X(t,e=!1){const i=new Date(t.getFullYear(),0,0),s=t.getTime()-i.getTime()+60*(i.getTimezoneOffset()-t.getTimezoneOffset())*1e3;return Math.floor(s/864e5)}function $(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-s);const n=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-n.getTime())/864e5+1)/7)}function Z(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;return i.setUTCDate(i.getUTCDate()+4-s),new Date(Date.UTC(i.getUTCFullYear(),0,1)).getFullYear()}function K(t,e=!1){const i=$(new Date(t.getFullYear(),t.getMonth(),1),e);let s=$(t,e);return 1==s&&(s=53),s-i+1}function q(t,e,i=1,s=!1){let n=new Date(e,0,4,0,0,0,0);return s&&n.setUTCFullYear(e),7*t+i-((n.getDay()||7)+3)}function Q(t,e){return t>12?t-=12:0===t&&(t=12),null!=e?t+(e-1):t}function J(t,e=!1,i=!1,s=!1,n){if(s)return e?"Coordinated Universal Time":"UTC";if(n){const i=t.toLocaleString("en-US",{timeZone:n});return F(t.toLocaleString("en-US",{timeZone:n,timeZoneName:e?"long":"short"}).substr(i.length))}let r=t.toLocaleString("UTC"),o=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(o=o.replace(/ (standard|daylight|summer|winter) /i," ")),F(o)}function tt(t,e){const i=e||new Date(Date.UTC(2012,0,1,0,0,0,0)),s=new Date(i.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(i.toLocaleString("en-US",{timeZone:t})).getTime()-s.getTime())/6e4*-1}function et(t){return t.charAt(0).toUpperCase()+t.slice(1)}function it(t){let e,i,s,n=t.h,r=t.s,o=t.l;if(0==r)e=i=s=o;else{let t=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},a=o<.5?o*(1+r):o+r-o*r,h=2*o-a;e=t(h,a,n+1/3),i=t(h,a,n),s=t(h,a,n-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*s)}}function st(t){let e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),r=Math.min(e,i,s),o=0,a=0,h=(n+r)/2;if(n===r)o=a=0;else{let t=n-r;switch(a=h>.5?t/(2-n-r):t/(n+r),n){case e:o=(i-s)/t+(i0?255-t:t;return Math.round(i*e)}function ht(t,e){if(t){let i=at(Math.min(Math.max(t.r,t.g,t.b),230),e);return{r:Math.max(0,Math.min(255,Math.round(t.r+i))),g:Math.max(0,Math.min(255,Math.round(t.g+i))),b:Math.max(0,Math.min(255,Math.round(t.b+i))),a:t.a}}return t}function lt(t,e){return Math.round(255*e)}function ct(t){return(299*t.r+587*t.g+114*t.b)/1e3>=128}function ut(t,e){if(void 0===t||1==e)return t;let i=st(t);return i.s=e,it(i)}function dt(t,e={r:255,g:255,b:255},i={r:255,g:255,b:255}){let s=e,n=i;return ct(i)&&(s=i,n=e),ct(t)?n:s}function pt(t,e){return t||(t=[]),[...t,...e].filter(((t,e,i)=>i.indexOf(t)===e))}function gt(t,e){return!!e&&t.left==e.left&&t.right==e.right&&t.top==e.top&&t.bottom==e.bottom}},3360:function(t,e,i){"use strict";i.d(e,{z:function(){return D},m:function(){return k}});var s=i(7582),n=i(6331),r=i(4596),o=i(8777),a=i(1112),h=i(6245),l=i(5769),c=i(9582),u=i(5040),d=i(5071),p=i(256),g={AccelerationBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccelerationBands)),AccumulationDistribution:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulationDistribution)),AccumulativeSwingIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulativeSwingIndex)),Annotator:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Annotator)),ArcDiagram:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagram)),ArcDiagramLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramLink)),ArcDiagramNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramNodes)),Aroon:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Aroon)),AverageSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageSeries)),AverageTrueRange:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageTrueRange)),AwesomeOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AwesomeOscillator)),Axis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Axis)),AxisBullet:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisBullet)),AxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabel)),AxisLabelRadial:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabelRadial)),AxisRenderer:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRenderer)),AxisRendererCircular:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererCircular)),AxisRendererCurveX:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveX)),AxisRendererCurveY:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveY)),AxisRendererRadial:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererRadial)),AxisRendererX:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererX)),AxisRendererY:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererY)),AxisTick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisTick)),BaseColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.BaseColumnSeries)),BollingerBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BollingerBands)),BreadcrumbBar:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.BreadcrumbBar)),BullBearPower:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BullBearPower)),Bullet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Bullet)),Button:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Button)),CalloutSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CalloutSeries)),Candlestick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Candlestick)),CandlestickSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CandlestickSeries)),CategoryAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryAxis)),CategoryDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryDateAxis)),ChaikinMoneyFlow:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinMoneyFlow)),ChaikinOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinOscillator)),Chart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Chart)),ChartIndicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChartIndicator)),Chord:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Chord)),ChordDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordDirected)),ChordLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLink)),ChordLinkDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLinkDirected)),ChordNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNodes)),ChordNonRibbon:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNonRibbon)),Circle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Circle)),CirclePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.CirclePattern)),ClockHand:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.ClockHand)),ClusteredPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ClusteredPointSeries)),ColorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ColorControl)),ColorPicker:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPicker)),ColorPickerButton:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPickerButton)),ColorSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ColorSet)),ColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ColumnSeries)),CommodityChannelIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CommodityChannelIndex)),ComparisonControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ComparisonControl)),Component:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Component)),ConfirmButton:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ConfirmButton)),Container:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Container)),CurveChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveChart)),CurveColumnSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveColumnSeries)),CurveCursor:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveCursor)),CurveLineSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveLineSeries)),DataSaveControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DataSaveControl)),DateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DateAxis)),DateRangeSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DateRangeSelector)),DisparityIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DisparityIndex)),DoodleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DoodleSeries)),DrawingControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingControl)),DrawingSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingSeries)),DrawingToolControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingToolControl)),Dropdown:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Dropdown)),DropdownColors:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownColors)),DropdownControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownControl)),DropdownList:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownList)),DropdownListControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownListControl)),DurationAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DurationAxis)),EditableAxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.EditableAxisLabel)),EditableLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.EditableLabel)),Ellipse:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Ellipse)),EllipseSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.EllipseSeries)),Entity:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Entity)),Exporting:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Exporting)),ExportingMenu:()=>Promise.resolve().then((()=>i(396))).then((t=>t.ExportingMenu)),FibonacciSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciSeries)),FibonacciTimezoneSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciTimezoneSeries)),Flow:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Flow)),FlowLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowLink)),FlowNode:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNode)),FlowNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNodes)),ForceDirected:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.ForceDirected)),FunnelSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSeries)),FunnelSlice:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSlice)),Gantt:()=>Promise.resolve().then((()=>i(133))).then((t=>t.Gantt)),GanttCategoryAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxis)),GanttCategoryAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxisRenderer)),GanttDateAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxis)),GanttDateAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxisRenderer)),GanttSeries:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttSeries)),GaplessDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.GaplessDateAxis)),Gradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Gradient)),GrainPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GrainPattern)),Graphics:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Graphics)),GraticuleSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.GraticuleSeries)),Grid:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Grid)),GridLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GridLayout)),HeatLegend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HeatLegend)),HeikinAshi:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HeikinAshi)),Hierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Hierarchy)),HierarchyLink:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyLink)),HierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyNode)),HorizontalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HorizontalLayout)),HorizontalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalLineSeries)),HorizontalRaySeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalRaySeries)),IconControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconControl)),IconSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconSeries)),Indicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Indicator)),IndicatorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IndicatorControl)),InterfaceColors:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.InterfaceColors)),IntervalControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IntervalControl)),Label:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Label)),LabelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LabelSeries)),Layout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Layout)),Legend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Legend)),Line:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Line)),LineArrowSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LineArrowSeries)),LinePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinePattern)),LineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.LineSeries)),LinearGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinearGradient)),Link:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Link)),LinkedHierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchy)),LinkedHierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchyNode)),MACD:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACD)),MACross:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACross)),MapChart:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapChart)),MapLine:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLine)),MapLineSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLineSeries)),MapPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPointSeries)),MapPolygon:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygon)),MapPolygonSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygonSeries)),MapSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapSeries)),Measure:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Measure)),MedianPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MedianPrice)),Modal:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Modal)),Momentum:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Momentum)),MovingAverage:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverage)),MovingAverageDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageDeviation)),MovingAverageEnvelope:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageEnvelope)),NumericStepper:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.NumericStepper)),OHLC:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLC)),OHLCSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLCSeries)),OnBalanceVolume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OnBalanceVolume)),OrthogonalLine:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.OrthogonalLine)),OverboughtOversold:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OverboughtOversold)),PVT:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PVT)),Pack:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Pack)),PanelControls:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PanelControls)),ParallelChannelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ParallelChannelSeries)),Partition:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Partition)),PathPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PathPattern)),Pattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Pattern)),PatternSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PatternSet)),PercentChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentChart)),PercentSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentSeries)),PeriodSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PeriodSelector)),PictorialStackedSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PictorialStackedSeries)),Picture:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Picture)),PicturePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PicturePattern)),PieChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieChart)),PieSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieSeries)),PointedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PointedRectangle)),Polygon:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Polygon)),PolylineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PolylineSeries)),ProgressPie:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ProgressPie)),PyramidSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PyramidSeries)),QuadrantLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.QuadrantLineSeries)),RadarChart:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarChart)),RadarColumnSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarColumnSeries)),RadarCursor:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarCursor)),RadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarLineSeries)),RadialGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialGradient)),RadialLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialLabel)),RadialText:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialText)),Rectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Rectangle)),RectanglePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RectanglePattern)),RectangleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RectangleSeries)),RegressionSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RegressionSeries)),RelativeStrengthIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RelativeStrengthIndex)),ResetControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ResetControl)),RoundedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RoundedRectangle)),Sankey:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Sankey)),SankeyLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyLink)),SankeyNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyNodes)),Scrollbar:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Scrollbar)),SerialChart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SerialChart)),Serializer:()=>Promise.resolve().then((()=>i(5362))).then((t=>t.Serializer)),Series:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Series)),SeriesTypeControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SeriesTypeControl)),SerpentineChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SerpentineChart)),SettingsControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsControl)),SettingsModal:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsModal)),SimpleLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SimpleLineSeries)),Slice:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slice)),SliceGrouper:()=>Promise.resolve().then((()=>i(1790))).then((t=>t.SliceGrouper)),SlicedChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.SlicedChart)),Slider:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slider)),SmoothedRadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.SmoothedRadarLineSeries)),SmoothedXLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXLineSeries)),SmoothedXYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXYLineSeries)),SmoothedYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedYLineSeries)),SpiralChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SpiralChart)),Sprite:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Sprite)),SpriteResizer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SpriteResizer)),StandardDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StandardDeviation)),Star:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Star)),StepLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.StepLineSeries)),StochasticMomentumIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticMomentumIndex)),StochasticOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticOscillator)),StockChart:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockChart)),StockControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockControl)),StockLegend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockLegend)),StockPanel:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockPanel)),StockToolbar:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockToolbar)),Sunburst:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Sunburst)),SuperTrend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SuperTrend)),Text:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Text)),Tick:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tick)),Tooltip:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tooltip)),Tree:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Tree)),Treemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Treemap)),TrendLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TrendLineSeries)),Triangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Triangle)),Trix:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Trix)),TypicalPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TypicalPrice)),VWAP:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VWAP)),ValueAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ValueAxis)),Venn:()=>Promise.resolve().then((()=>i(8034))).then((t=>t.Venn)),VerticalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.VerticalLayout)),VerticalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VerticalLineSeries)),Volume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Volume)),VolumeProfile:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VolumeProfile)),VoronoiTreemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.VoronoiTreemap)),WilliamsR:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.WilliamsR)),WordCloud:()=>Promise.resolve().then((()=>i(6769))).then((t=>t.WordCloud)),XYChart:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChart)),XYChartScrollbar:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChartScrollbar)),XYCursor:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYCursor)),XYSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYSeries)),ZigZag:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ZigZag)),ZoomControl:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ZoomControl)),ZoomTools:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomTools)),ZoomableContainer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomableContainer))};function f(t){return u.isObject(t)}function _(t){return t instanceof n.JH||t instanceof a.Il||t instanceof h.gG||t instanceof l.YS}function m(t,e){let i=t.length;for(;i--;){const s=t[i];if(e in s)return s[e]}throw new Error("Could not find ref "+e)}function y(t,e){if("#"===t[0]||"@"===t[0]){if(t[1]===t[0])return{isValue:!0,value:t.slice(1)};{const i=t.split(/\./g);let s=m(e,i[0]);for(let t=1;t{e(t)}))}function w(t,e){v(t,e),e.adapters&&d.each(e.adapters,(e=>{t.adapters.add(e.key,e.callback)})),e.states&&d.each(e.states,(e=>{t.states.create(e.key,e.settings)})),t instanceof o.W&&e.children&&e.children.forEach((e=>{null==e.index||e.index>=t.children.length?t.children.push(e.value):t.children.insertIndex(e.index,e.value)}))}function b(t,e){if(!e.construct)return e.value;const i=e.construct.new(t,e.settings||{});return w(i,e),i}class x{constructor(){this._caching={},this._cache={},this._delayed=[]}afterParse(){this._delayed.forEach((t=>{t()}))}getClass(t){return this._cache[t]}storeClass(t){return(0,s.mG)(this,void 0,void 0,(function*(){if("Template"===t)return;const e=g[t];if(null==e)throw new Error("Unknown object type `"+t+"`");this._cache[t]=yield e()}))}cacheClass(t){let e=this._caching[t];return null==e&&(e=this._caching[t]=this.storeClass(t)),e}parseAsyncArray(t){return(0,s.mG)(this,void 0,void 0,(function*(){yield Promise.all(d.map(t,(t=>this.parseAsync(t))))}))}parseAsyncObjectKey(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){"type"===t?u.isString(e)?yield this.cacheClass(e):yield this.parseAsync(e):"geoJSON"===t||"geometry"===t||(yield this.parseAsync(e))}))}parseAsyncObject(t){return(0,s.mG)(this,void 0,void 0,(function*(){switch(t.type){case"Color":case"Percent":break;default:yield Promise.all(d.map(p.keys(t),(e=>this.parseAsyncObjectKey(e,t[e]))))}}))}parseAsync(t){return(0,s.mG)(this,void 0,void 0,(function*(){u.isArray(t)?yield this.parseAsyncArray(t):f(t)&&(_(t)||!0!==t.__parse&&!1===t.__parse||(yield this.parseAsyncObject(t)))}))}parseObject(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parse(t,e[n],i)})),s}parseArray(t,e,i){return d.map(e,(e=>this.parse(t,e,i)))}parseChildren(t,e,i){return d.map(e,(e=>this.parseChild(t,e,i)))}parseStops(t,e,i){return d.map(e,(e=>this.parseObject(t,e,i)))}parseSetting(t,e,i,s){if("layout"===e)switch(i){case"horizontal":return t.horizontalLayout;case"vertical":return t.verticalLayout;case"grid":return t.gridLayout}return"clusteredBullet"===e?(e,n)=>{const r=s.concat([{"@series":n}]);return this.parse(t,i,r)}:"projection"===e||"geoJSON"===e?i:"stops"===e?this.parseStops(t,i,s):this.parse(t,i,s)}parseSettings(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parseSetting(t,n,e[n],i)})),s}parseState(t,e,i){return{key:e.key,settings:this.parseSettings(t,e.settings,i)}}parseAdapter(t,e,i){return{key:e.key,callback:this.parse(t,e.callback,i)}}parseProperties(t,e,i){return d.map(p.keys(e),(s=>{const r=e[s];return e=>{const o=()=>{const o=this.parseValue(t,r,i),a=e[s];a?o.isValue?u.isArray(o.value)?a instanceof c.k?a.setAll(o.value):d.each(o.value,(t=>{a.push(t)})):e[s]=o.value:o.construct?e[s]=b(t,o):a instanceof n.JH||a instanceof l.YS?function(t,e){e.settings&&t.setAll(e.settings),w(t,e)}(a,o):v(a,o):o.isValue?e[s]=o.value:e[s]=b(t,o)};if("data"===s)this._delayed.push(o);else if("bullets"===s){const n=e[s];u.assert(null!=n),u.assert(u.isArray(r)),d.each(r,(e=>{n.push(((s,n)=>{const r=i.concat([{"@series":n}]);return this.parse(t,e,r)}))}))}else"bullet"===s?e.set("bullet",((e,s)=>{const n=i.concat([{"@axis":s}]);return this.parse(t,r,n)})):o()}}))}parseAxisRange(t,e,i){return{isValue:!1,type:void 0,construct:void 0,settings:this.parseSettings(t,e.settings,i),adapters:void 0,states:void 0,children:void 0,properties:void 0,index:void 0,value:e}}parseRefsObject(t,e,i){const s={};return p.each(e,((e,r)=>{if("axisRange"==r.__parseLogic||"seriesAxisRange"==r.__parseLogic){const e=this.parseAxisRange(t,r,i),s=m(i,r.axis),o=s.makeDataItem({});let a;const h=r.series?m(i,r.series):void 0;h?a=h.createAxisRange(o):s.createAxisRange(o),function(t,e){e.settings&&p.each(e.settings,((e,i)=>{if(i instanceof n.JH){const s=t.get(e);s instanceof n.JH?s.setAll(i._settings):t.set(e,i)}else t.set(e,i)})),w(t,e)}(o,e),a&&["fills","strokes","graphics"].forEach((e=>{if(void 0!==a[e]&&void 0!==r[e]){r[e].__parse=!0;const s=this.parse(t,r[e],i);a[e].template.setAll(s)}}))}else s["#"+e]=this.parse(t,r,i)})),s}parseRefs(t,e,i){if(u.isArray(e)){const s=e.length;for(let n=0;nthis.parseState(t,e,i))):void 0,h=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0,l=null==e.index?void 0:e.index;return{isValue:!1,type:e.type,construct:s,settings:n,adapters:h,states:a,children:o,properties:r,index:l,value:e}}parseTemplate(t,e,i){e.refs&&(i=this.parseRefs(t,e.refs,i));const s=e.settings?this.parseSettings(t,e.settings,i):{},n=l.YS.new(s),r=e.states?d.map(e.states,(e=>this.parseState(t,e,i))):void 0,o=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0;return o&&d.each(o,(t=>{n.adapters.add(t.key,t.callback)})),r&&d.each(r,(t=>{n.states.create(t.key,t.settings)})),{isValue:!0,value:n}}parseValue(t,e,i){return e instanceof n.JH?{isValue:!0,value:e}:u.isArray(e)?{isValue:!0,value:this.parseArray(t,e,i)}:f(e)?_(e)?{isValue:!0,value:e}:"Color"===e.type?{isValue:!0,value:a.Il.fromAny(e.value)}:"Percent"===e.type?{isValue:!0,value:new h.gG(e.value)}:"Template"===e.type?this.parseTemplate(t,e,i):!0===e.__parse?{isValue:!0,value:this.parseObject(t,e,i)}:!1===e.__parse?{isValue:!0,value:e}:this.parseEntity(t,e,i):u.isString(e)?y(e,i):{isValue:!0,value:e}}parse(t,e,i){const s=this.parseValue(t,e,i);return s.isValue?s.value:b(t,s)}}class D{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t}static new(t){return new this(t,!0)}parse(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){const i=new x;yield i.parseAsync(t);const s=i.parse(this._root,t,[]);if(e.parent){if(!(s instanceof r.j))throw new Error("When using the parent setting, the entity must be a Sprite");e.parent.children.push(s)}else s instanceof n.JH&&s._applyThemes(!0);return i.afterParse(),s}))}parseString(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.parse(JSON.parse(t),e)}))}}function k(t,e){g[t]||(g[t]=()=>new Promise((t=>{t(e)})))}},6890:function(t,e,i){"use strict";i.d(e,{e:function(){return p}});var s=i(6331),n=i(9361),r=i(1112),o=i(1437),a=i(6245),h=i(5769),l=i(9582),c=i(5040),u=i(5071),d=i(256);class p extends s.JH{constructor(){super(...arguments),this._refs={}}serialize(t,e=0,i=!1,p=!1){if(e>this.get("maxDepth",2))return;if(!1===t||!0===t)return t;if(c.isArray(t)){const s=[];return u.each(t,(t=>{s.push(this.serialize(t,e,i,p))})),s}if(t instanceof l.k){const s=[];return u.each(t.values,(t=>{s.push(this.serialize(t,e,i,p))})),s}const g={},f=t instanceof s.JH||t instanceof h.YS||t instanceof r.Il||t instanceof a.gG,_=this.get("fullSettings",[]);if(t instanceof s.JH){g.type=t.className;let s=this._filterSettings(d.keys(t._settings));s=s.filter((e=>t.isUserSetting(e))),s.length&&(g.settings={},u.each(s,(s=>{const n=t.get(s);void 0!==n&&(g.settings[s]=this.serialize(n,e+1,i||-1!==_.indexOf(s)),t instanceof o.p&&"stops"===s&&(g.settings[s]=this.serialize(n,0,!0)))}))),this._processAdapters(t,g),this._processStates(t,g)}else if(t instanceof h.YS){g.type="Template";let i=this._filterSettings(d.keys(t._settings));return i.length&&(g.settings={},u.each(i,(i=>{void 0!==t._settings[i]&&(g.settings[i]=this.serialize(t.get(i),e+1,-1!==_.indexOf(i)))}))),this._processAdapters(t,g),this._processStates(t,g),g}if(t instanceof n.w&&t.data.length&&-1===(this.get("excludeProperties")||[]).indexOf("data")&&(g.properties={data:this.serialize(t.data.values,e,!0)}),t instanceof r.Il)return{type:"Color",value:t.toCSSHex()};if(t instanceof a.gG)return{type:"Percent",value:t.percent};if(c.isString(t))return this._escapeRefs(t);if(c.isNumber(t))return t;if(c.isObject(t))if(i&&!f){const s=this.get("excludeProperties",[]);d.each(t,((t,n)=>{-1===s.indexOf(t)&&void 0!==n&&(g[t]=this.serialize(n,e+1,i,p))})),p&&d.each(g,((t,e)=>{c.isObject(e)&&(g.__parse=!0)}))}else if(f){const s=this.get("includeProperties",[]);u.each(s,(s=>{const n=t[s];void 0!==n&&(void 0===g.properties&&(g.properties={}),g.properties[s]=this.serialize(n,e+1,i,p))}))}return 0==e&&d.keys(this._refs).length&&(g.refs=this._refs),g}_processAdapters(t,e){if(this.get("includeAdapters",!1)){const i="string"==this.get("functionsAs","string"),s=t.adapters._callbacks;Object.keys(s).length>0&&(e.adapters=[],d.each(s,((t,s)=>{s.forEach((s=>{e.adapters.push({key:t,callback:i?s.toString():s})}))})))}}_processStates(t,e){if(this.get("includeStates",!1)){const i=t.states._states;Object.keys(i).length>0&&(e.states=[],d.each(i,((t,i)=>{Object.keys(i._settings).length>0&&e.states.push({key:t,settings:this.serialize(i._settings,0,!0)})})))}}_filterSettings(t){const e=this.get("includeSettings",[]),i=this.get("excludeSettings",[]);return e.length?t=e:i.length&&(t=t.filter((t=>-1===i.indexOf(t)))),t}_escapeRefs(t){return t.replace(/^#/,"##").replace(/^@/,"@@")}}p.className="Serializer",p.classNames=s.JH.classNames.concat([p.className])},3783:function(t,e,i){"use strict";i.d(e,{X:function(){return c},v:function(){return l}});var s=i(3409),n=i(6245),r=i(1112),o=i(6881),a=i(962),h=i(9395);function l(t,e,i,s){t.set(e,i.get(s)),i.on(s,(i=>{t.set(e,i)}))}class c extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.language,e=this._root.interfaceColors,i=this._root.horizontalLayout,s=this._root.verticalLayout,c=this.rule.bind(this);c("InterfaceColors").setAll({stroke:r.Il.fromHex(15066597),fill:r.Il.fromHex(15987699),primaryButton:r.Il.fromHex(6788316),primaryButtonHover:r.Il.fromHex(6779356),primaryButtonDown:r.Il.fromHex(6872182),primaryButtonActive:r.Il.fromHex(6872182),primaryButtonDisabled:r.Il.fromHex(14342874),primaryButtonTextDisabled:r.Il.fromHex(16777215),primaryButtonText:r.Il.fromHex(16777215),primaryButtonStroke:r.Il.fromHex(16777215),secondaryButton:r.Il.fromHex(14277081),secondaryButtonHover:r.Il.fromHex(10724259),secondaryButtonDown:r.Il.fromHex(9276813),secondaryButtonActive:r.Il.fromHex(15132390),secondaryButtonText:r.Il.fromHex(0),secondaryButtonStroke:r.Il.fromHex(16777215),grid:r.Il.fromHex(0),background:r.Il.fromHex(16777215),alternativeBackground:r.Il.fromHex(0),text:r.Il.fromHex(0),alternativeText:r.Il.fromHex(16777215),disabled:r.Il.fromHex(11382189),positive:r.Il.fromHex(5288704),negative:r.Il.fromHex(11730944)});{const t=c("ColorSet");t.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[r.Il.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),t.setPrivate("currentStep",0),t.setPrivate("currentPass",0)}c("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:h.out(h.cubic)}),c("Component").setAll({interpolationDuration:0,interpolationEasing:h.out(h.cubic)}),c("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:n.CI,tooltipY:n.CI,tooltipPosition:"fixed",isMeasured:!0}),c("Sprite").states.create("default",{visible:!0,opacity:1}),c("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),c("Graphics").setAll({strokeWidth:1}),c("Chart").setAll({width:n.AQ,height:n.AQ,interactiveChildren:!1}),c("ZoomableContainer").setAll({width:n.AQ,height:n.AQ,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:h.out(h.cubic),animationDuration:600,maxPanOut:.4}),c("Sprite",["horizontal","center"]).setAll({centerX:n.CI,x:n.CI}),c("Sprite",["vertical","center"]).setAll({centerY:n.CI,y:n.CI}),c("Container",["horizontal","layout"]).setAll({layout:i}),c("Container",["vertical","layout"]).setAll({layout:s}),c("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),c("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),c("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),c("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),c("GrainPattern").setAll({width:200,height:200,colors:[r.Il.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const t=c("PatternSet");t.setAll({step:1}),l(t,"color",e,"stroke")}c("LinearGradient").setAll({rotation:90}),c("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:o.M.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),c("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:t.translate("Press ENTER to toggle"),role:"checkbox"});{const t=c("Rectangle",["legend","item","background"]);t.setAll({fillOpacity:0}),l(t,"fill",e,"background")}c("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:n.CI,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),c("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:n.AQ,height:n.AQ,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const t=c("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});l(t,"fill",e,"disabled"),l(t,"stroke",e,"disabled")}c("Label",["legend","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0}),l(c("Label",["legend","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("Label",["legend","value","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:n.AQ,populateText:!0}),l(c("Label",["legend","value","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("HeatLegend").setAll({stepCount:1}),c("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),c("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:n.AQ,width:15}),c("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:n.AQ,height:15}),c("HeatLegend",["vertical"]).setAll({height:n.AQ}),c("HeatLegend",["horizontal"]).setAll({width:n.AQ}),c("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),c("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const t=c("Label");t.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),l(t,"fill",e,"text")}c("RadialLabel").setAll({textType:"regular",centerY:n.CI,centerX:n.CI,inside:!1,radius:0,baseRadius:n.AQ,orientation:"auto",textAlign:"center"}),c("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),c("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:r.Il.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:r.Il.fromHex(0)}),c("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),c("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),c("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),c("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const t=c("Tick");t.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),l(t,"stroke",e,"grid")}c("Bullet").setAll({locationX:.5,locationY:.5}),c("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:n.CI,centerY:n.CI,animationEasing:h.out(h.cubic),exportable:!1}),c("Tooltip",["system"]).setAll({pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});{const t=c("PointedRectangle",["tooltip","system","background"]);t.setAll({strokeOpacity:.3}),l(t,"fill",e,"background"),l(t,"stroke",e,"grid")}c("Label",["tooltip","system"]).setAll({fontSize:12,fill:e.get("background")}),c("Polygon").setAll({animationEasing:h.out(h.cubic)}),c("Link").setAll({cornerRadius:8,setStateOnChildren:!0});{const t=c("OrthogonalLine",["link","line"]);t.setAll({isMeasured:!1,crisp:!0}),l(t.states.create("active",{strokeWidth:2}),"stroke",e,"negative")}c("OrthogonalLine",["link","hit"]).setAll({strokeWidth:10,opacity:0,strokeOpacity:0});{const t=c("OrthogonalLine");t.setAll({strokeWidth:1,strokeOpacity:1,cornerRadius:10}),l(t,"stroke",e,"grid")}{const t=c("Triangle",["link"]);t.setAll({width:14,height:10,centerY:0}),l(t,"fill",e,"grid"),l(t,"stroke",e,"grid"),t.states.create("default",{stateAnimationDuration:0});const i=t.states.create("active",{stateAnimationDuration:0,stroke:(0,r.$_)(16777215),strokeWidth:2});i.set("draw",(t=>{t.arc(0,0,11,0,2*Math.PI),t.moveTo(-4,-4),t.lineTo(4,4),t.moveTo(4,-4),t.lineTo(-4,4)})),l(i,"fill",e,"negative")}c("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:r.Il.fromHex(16777215)});{const t=c("Label",["tooltip"]);t.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),l(t,"fill",e,"alternativeText")}c("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),c("Button").states.create("hover",{}),c("Button").states.create("down",{stateAnimationDuration:0}),c("Button").states.create("active",{}),c("Button").states.create("disabled",{forceInactive:!0});{const t=c("RoundedRectangle",["button","background"]);l(t,"fill",e,"primaryButton"),l(t,"stroke",e,"primaryButtonStroke")}l(c("RoundedRectangle",["button","background"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown"),l(c("RoundedRectangle",["button","background"]).states.create("active",{}),"fill",e,"primaryButtonActive"),l(c("RoundedRectangle",["button","background"]).states.create("disabled",{}),"fill",e,"primaryButtonDisabled"),l(c("Graphics",["button","icon"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled"),l(c("Label",["button"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled");{const t=c("Graphics",["button","icon"]);t.setAll({forceInactive:!0}),l(t,"stroke",e,"primaryButtonText")}l(c("Label",["button"]),"fill",e,"primaryButtonText"),c("ConfirmButton").setAll({toggleKey:"active",setStateOnChildren:!0,label:a._.new(this._root,{text:t.translate("Confirm"),forceHidden:!0})}),l(c("RoundedRectangle",["button","background","confirm"]).states.create("active",{}),"fill",e,"negative"),c("Label",["button","confirm"]).setAll({paddingTop:0,paddingBottom:0,paddingRight:3,paddingLeft:5}),c("Label",["button","confirm"]).states.create("default",{stateAnimationDuration:0}),c("Label",["button","confirm"]).states.create("active",{forceHidden:!1,stateAnimationDuration:0});{const t=c("Graphics",["icon","confirm","button"]);t.setAll({stateAnimationDuration:0}),t.states.create("default",{stateAnimationDuration:0}),l(t,"stroke",e,"primaryButtonText")}l(c("Graphics",["icon","confirm","button"]).states.create("active",{svgPath:"M -5 1 L 0 6 L 8 -5",strokeWidth:2}),"stroke",e,"primaryButtonText"),l(c("Graphics",["icon","confirm","button","secondary"]).states.create("active",{}),"stroke",e,"primaryButtonText"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1}),"fill",e,"negative"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1}),"fill",e,"negative"),c("Button",["button","confirm"]).states.create("hoverActive",{}),c("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:n.AQ,role:"button",ariaLabel:t.translate("Zoom Out"),layer:30});{const t=c("RoundedRectangle",["background","button","zoom"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"primaryButton")}l(c("RoundedRectangle",["background","button","zoom"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown");{const t=c("Graphics",["icon","button","zoom"]);t.setAll({crisp:!0,strokeOpacity:.7,draw:t=>{t.moveTo(0,0),t.lineTo(12,0)}}),l(t,"stroke",e,"primaryButtonText")}c("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:n.CI,centerY:n.CI,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:t.translate("Use up and down arrows to move selection")});{const t=c("RoundedRectangle",["background","resize","button"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"secondaryButton"),l(t,"stroke",e,"secondaryButtonStroke")}l(c("RoundedRectangle",["background","resize","button"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown");{const t=c("Graphics",["resize","button","icon"]);t.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),l(t,"stroke",e,"secondaryButtonText")}c("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),c("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),c("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:t.translate("Play"),toggleKey:"active"});{const t=c("RoundedRectangle",["play","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Graphics",["play","icon"]);t.setAll({stateAnimationDuration:0,dx:1,draw:t=>{t.moveTo(0,-5),t.lineTo(8,0),t.lineTo(0,5),t.lineTo(0,-5)}}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),c("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:t=>{t.moveTo(-4,-5),t.lineTo(-1,-5),t.lineTo(-1,5),t.lineTo(-4,5),t.lineTo(-4,-5),t.moveTo(4,-5),t.lineTo(1,-5),t.lineTo(1,5),t.lineTo(4,5),t.lineTo(4,-5)}}),c("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:t.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const t=c("RoundedRectangle",["switch","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["switch","icon"]);t.setAll({radius:8,centerY:0,centerX:0,dx:0}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["switch","icon"]).states.create("active",{dx:16}),c("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:h.out(h.cubic)}),c("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:n.AQ}),c("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:n.AQ}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const t=c("RoundedRectangle",["scrollbar","main","background"]);t.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),l(t,"fill",e,"fill")}{const t=c("RoundedRectangle",["scrollbar","thumb"]);t.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),l(t,"fill",e,"secondaryButton")}l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown"),c("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:n.CI,width:n.AQ,centerX:n.CI,ariaLabel:t.translate("Use up and down arrows to move selection")}),c("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:n.CI,centerY:n.CI,height:n.AQ,ariaLabel:t.translate("Use left and right arrows to move selection")});{const t=c("PointedRectangle",["axis","tooltip","background"]);t.setAll({cornerRadius:0}),l(t,"fill",e,"alternativeBackground")}c("Label",["axis","tooltip"]).setAll({role:void 0}),c("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),c("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),c("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),c("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),c("Star").setAll({spikes:5,innerRadius:5,radius:10}),c("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),c("Tooltip",["indicator"]).setAll({forceHidden:!0}),c("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),c("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),c("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),c("Container",["resizer","grip"]).states.create("hover",{});{const t=c("RoundedRectangle",["resizer","grip"]);t.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),l(t,"fill",e,"background"),l(t,"stroke",e,"alternativeBackground")}{const t=c("RoundedRectangle",["resizer","grip","outline"]);t.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),t.states.create("hover",{fillOpacity:.3}),l(t,"fill",e,"alternativeBackground")}c("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),c("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const t=c("Rectangle",["resizer","rectangle"]);t.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),l(t,"stroke",e,"alternativeBackground")}c("Graphics",["button","plus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0),t.moveTo(0,-4),t.lineTo(0,4)}}),c("Graphics",["button","minus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0)}}),c("Graphics",["button","home","icon"]).setAll({x:n.CI,y:n.CI,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),c("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),c("ZoomTools").setAll({x:n.AQ,centerX:n.AQ,y:n.AQ,centerY:n.AQ,paddingRight:10,paddingBottom:10}),c("ProgressPie").setAll({radius:n.AQ,width:50,height:50,centerX:(0,n.aQ)(-50),centerY:(0,n.aQ)(-50),innerRadius:(0,n.aQ)(85),numberFormat:"#."});{const t=c("Label",["progresspie"]);t.setAll({centerX:n.CI,centerY:n.CI,fontSize:"0.75em"}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["progresspie"]);t.setAll({fillOpacity:.5}),l(t,"fill",e,"background")}{const t=c("Slice",["progresspie"]);t.setAll({startAngle:-90}),l(t,"fill",e,"primaryButton")}{const t=c("Slice",["progresspie","background"]);t.setAll({fillOpacity:.2,arc:360}),l(t,"fill",e,"primaryButton")}c("EditableLabel",["numericstepper"]).setAll({y:n.CI,centerY:n.CI,multiLine:!1,marginRight:2});{const t=c("Container",["numericstepper","buttons"]);t.setAll({layout:this._root.verticalLayout,centerY:n.CI,y:n.CI,marginRight:10,opacity:0}),t.states.create("active",{opacity:1}),t.states.create("default",{opacity:0})}{const t=c("Triangle",["numericstepper"]);t.setAll({width:17,height:11,marginTop:3,marginBottom:3,strokeWidth:5,strokeOpacity:0,cursorOverStyle:"pointer"}),l(t,"fill",e,"secondaryButton")}c("Triangle",["downbutton"]).setAll({rotation:180})}}},5322:function(t,e,i){"use strict";i.r(e),i.d(e,{ArrayDisposer:function(){return c.rk},BlendMode:function(){return ot.b},Bullet:function(){return u.g},Button:function(){return d.z},CSVParser:function(){return bt},CanvasLayer:function(){return Pt.mM},CanvasRenderer:function(){return Pt.uK},Chart:function(){return q.k},Circle:function(){return g.C},CirclePattern:function(){return ut},Color:function(){return O.Il},ColorSet:function(){return mt.U},Component:function(){return v.w},ConfirmButton:function(){return p.p},Container:function(){return w.W},CounterDisposer:function(){return c.DM},DataItem:function(){return v.z},DataProcessor:function(){return xt},DateFormatter:function(){return Dt.C},Disposer:function(){return c.ku},DurationFormatter:function(){return kt.$},EditableLabel:function(){return A.Y},Ellipse:function(){return _.P},Entity:function(){return l.JH},Gradient:function(){return at.p},GrainPattern:function(){return rt},Graphics:function(){return m.T},GridLayout:function(){return x.M},HeatLegend:function(){return C},HorizontalLayout:function(){return L.G},InterfaceColors:function(){return Tt.v},JSONParser:function(){return wt},JsonData:function(){return yt.Q},Label:function(){return D._},Layout:function(){return R.A},Legend:function(){return U.D},Line:function(){return B.x},LinePattern:function(){return dt.y},LinearGradient:function(){return S.o},Link:function(){return F.r},ListData:function(){return yt.k},ListTemplate:function(){return E.o},Modal:function(){return h.u},MultiDisposer:function(){return c.FV},MutableValueDisposer:function(){return c.cx},NumberFormatter:function(){return Mt.e},NumericStepper:function(){return St.l},OrthogonalLine:function(){return I.P},PathPattern:function(){return ft},Pattern:function(){return nt.c},PatternSet:function(){return _t},Percent:function(){return k.gG},Picture:function(){return H.t},PicturePattern:function(){return pt.v},PointedRectangle:function(){return z.i},Polygon:function(){return f.m},ProgressPie:function(){return Nt.w},RadialGradient:function(){return lt},RadialLabel:function(){return G.x},RadialText:function(){return V.f},Rectangle:function(){return W.A},RectanglePattern:function(){return gt},Root:function(){return n.f},RoundedRectangle:function(){return T.c},Scrollbar:function(){return j.L},SerialChart:function(){return Q.j},Series:function(){return K.F},Slice:function(){return $.p},Slider:function(){return X.i},Sprite:function(){return Z.j},SpriteResizer:function(){return Ot.b},Star:function(){return y},Template:function(){return M.YS},Text:function(){return J.x},TextFormatter:function(){return Et.V},Theme:function(){return r.Q},Tick:function(){return tt.d},Timezone:function(){return it.r},Tooltip:function(){return P.u},Triangle:function(){return Y.C},VerticalLayout:function(){return et.Z},ZoomTools:function(){return st.H},ZoomableContainer:function(){return b.Y},addLicense:function(){return o.cP},array:function(){return ht},color:function(){return O.$_},disposeAllRootElements:function(){return o.UZ},ease:function(){return Ct},getRootById:function(){return o.f_},math:function(){return ct},net:function(){return s},object:function(){return vt},p0:function(){return k.p0},p100:function(){return k.AQ},p50:function(){return k.CI},percent:function(){return k.aQ},ready:function(){return a.ready},registry:function(){return o.i_},time:function(){return Rt},type:function(){return N},utils:function(){return a}});var s={};i.r(s),i.d(s,{load:function(){return Lt},readBlob:function(){return At}});var n=i(2855),r=i(3409),o=i(3145),a=i(7652),h=i(8219),l=i(6331),c=i(7449),u=i(5108),d=i(8054),p=i(2936),g=i(8035),f=i(7770),_=i(2433),m=i(1479);class y extends m.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("spikes"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const t=this._display,e=this.get("radius",0),i=a.relativeToValue(this.get("innerRadius",0),e),s=this.get("spikes",0),n=Math.PI/s;let r=Math.PI/2*3;t.moveTo(0,-e);for(let o=0;oT.c._new(this._root,{themeTags:a.mergeTags(this.markers.template.get("themeTags",[]),[this.get("orientation"),"heatlegend","marker"])},[this.markers.template]))))}_afterNew(){this._settings.themeTags=a.mergeTags(this._settings.themeTags,["heatlegend",this._settings.orientation]),super._afterNew(),this.set("tooltip",P.u.new(this._root,{themeTags:["heatlegend"]}))}makeMarker(){const t=this.markers.make();return t.states.create("disabled",{}),t}showValue(t,e,i){const s=this.getTooltip();if(s&&N.isNumber(t)){const n=this.get("startValue",0);let r=(t-n)/(this.get("endValue",1)-n);(r==1/0||r==-1/0||isNaN(r))&&(r=.5);const o=this.get("startColor"),a=this.get("endColor");let h;e||(e=this.getNumberFormatter().format(t)),i||(i=O.Il.interpolate(r,o,a)),s.label.set("text",e),h="vertical"==this.get("orientation")?this.markerContainer.toGlobal({x:0,y:this.innerHeight()*(1-r)}):this.markerContainer.toGlobal({x:this.innerWidth()*r,y:0});let l=s.get("background");l&&l.set("fill",i),s.set("pointTo",h),s.show()}}_prepareChildren(){super._prepareChildren();const t=this.labelContainer,e=this.get("orientation"),i=this.startLabel,s=this.endLabel,n=this.getTooltip();if(this.isDirty("orientation")&&("vertical"==e?(this.markerContainer.setAll({layout:this._root.verticalLayout,height:k.AQ}),this.set("layout",this._root.horizontalLayout),i.setAll({y:k.AQ,x:void 0,centerY:k.AQ,centerX:k.AQ}),s.setAll({y:0,x:void 0,centerY:0,centerX:k.AQ}),t.setAll({height:k.AQ,width:void 0}),n&&n.set("pointerOrientation","horizontal")):(this.markerContainer.setAll({layout:this._root.horizontalLayout,width:k.AQ}),this.set("layout",this._root.verticalLayout),i.setAll({x:0,y:void 0,centerX:0,centerY:0}),s.setAll({x:k.AQ,y:void 0,centerX:k.AQ,centerY:0}),t.setAll({width:k.AQ,height:void 0}),n&&n.set("pointerOrientation","vertical"))),this.isDirty("stepCount")){const t=this.get("stepCount",1),i=this.get("startColor"),s=this.get("endColor"),n=this.get("startOpacity",1),r=this.get("endOpacity",1);if(this.markerContainer.children.clear(),t>1)for(let o=0;o0&&e/u!=Math.round(e/u)))for(let h=0;h0&&h/c!=Math.round(h/c)||d{let i=e.offset;N.isNumber(i)||(i=t/(g.length-1));let s=e.opacity;N.isNumber(s)||(s=1);let n=e.color;if(n){const t=e.lighten;t&&(n=O.Il.lighten(n,t));const r=e.brighten;r&&(n=O.Il.brighten(n,r)),p.addColorStop(i,"rgba("+n.r+","+n.g+","+n.b+","+s+")")}t++}))}return p}}lt.className="RadialGradient",lt.classNames=at.p.classNames.concat([lt.className]);var ct=i(751);class ut extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("radius",3),a=2*o+i,h=2*o+i,l=Math.round(n/a),c=Math.round(r/h);a=n/l,h=r/c,0!=s&&(this._display.x=a*ct.cos(s),this._display.y=h*ct.sin(s));const u=this.get("color"),d=this.get("colorOpacity");(u||d)&&this._display.beginFill(u,d);for(let n=0==s?0:2*-c;n<2*c;n++)for(let r=0==s?0:2*-l;r<2*l;r++)if(!t||1!=(1&n)&&1!=(1&r)||1==(1&n)&&1==(1&r)){let t=r*a,s=n*h;e&&(t+=a+i/2,s+=h+i/2),this._display.drawCircle(t-o,s-o,o)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i),(u||d)&&this._display.endFill()}}ut.className="CirclePattern",ut.classNames=nt.c.classNames.concat([ut.className]);var dt=i(3035),pt=i(4429);class gt extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("maxWidth",5),a=this.get("maxHeight",5);const h=this._display;let l=o+i,c=a+i,u=Math.round(n/l),d=Math.round(r/c);l=n/u,c=r/d,0!=s&&(h.x=l/2*ct.cos(s),h.y=-c/2*ct.sin(s));for(let i=0==s?0:2*-d;i<2*d;i++)for(let n=0==s?0:2*-u;n<2*u;n++)if(!t||1!=(1&i)&&1!=(1&n)||1==(1&i)&&1==(1&n)){let t=n*l,s=i*c;e&&(t+=(l-o)/2,s+=(c-a)/2),h.drawRect(t,s,o,a)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i);const p=this.get("color"),g=this.get("colorOpacity");(p||g)&&(h.beginFill(p,g),h.endFill())}}gt.className="RectanglePattern",gt.classNames=nt.c.classNames.concat([gt.className]);class ft extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("svgPath")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("svgPath");null!=t&&this._display.svgPath(t);const e=this.get("color"),i=this.get("colorOpacity");(e||i)&&(this._display.beginFill(e,i),this._display.endFill())}}ft.className="PathPattern",ft.classNames=nt.c.classNames.concat([ft.className]);class _t extends l.JH{_afterNew(){if(super._afterNewApplyThemes(),0===this.get("patterns",[]).length){const t=this.get("color",this.root.interfaceColors.get("stroke"));this.set("patterns",[this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:1,color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,maxWidth:4,maxHeight:4,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:1,gap:6,color:t}),this.getCirclePattern({width:11,height:11,radius:2,color:t}),this.getLinePattern({width:6,height:6,rotation:90,strokeWidth:1,color:t}),this.getRectanglePattern({width:14,height:14,rotation:45,gap:4,maxWidth:6,maxHeight:6,checkered:!0,color:t}),this.getLinePattern({width:6,height:6,rotation:0,strokeWidth:1,color:t}),this.getRectanglePattern({width:15,height:15,rotation:0,gap:5,maxWidth:5,maxHeight:5,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getCirclePattern({width:20,height:20,radius:3,gap:4,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,gap:1,maxWidth:9,maxHeight:9,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:0,strokeWidth:3,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:90,strokeWidth:3,gap:1,color:t})])}this._dirty.patterns=!1}_beforeChanged(){this.isDirty("patterns")&&this.reset()}getIndex(t){const e=this.get("patterns",[]);return te.length-1?e[t-Math.floor(t*(t/e.length))]:e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0))}getLinePattern(t){return dt.y.new(this.root,t)}getRectanglePattern(t){return gt.new(this.root,t)}getCirclePattern(t){return ut.new(this.root,t)}}_t.className="PatternSet",_t.classNames=l.JH.classNames.concat([_t.className]);var mt=i(2754),yt=i(9582),vt=i(256);class wt{static parse(t,e){e=this._applyDefaults(e);try{if(N.isString(t)){let i=JSON.parse(t);return e.reverse&&N.isArray(i)&&i.reverse(),i}if(N.isArray(t)||N.isObject(t))return t;throw"Unable to parse JSON data"}catch(t){return}}static _applyDefaults(t){const e={};return t||(t={}),vt.each({reverse:!1},((i,s)=>{e[i]=t[i]||s})),e}}class bt{static parse(t,e){e=this._applyDefaults(e);let i,s,n,r=this.CSVToArray(t,e.delimiter),o=[],a=[];for(s=0;s{e[i]=t[i]||s})),e}}class xt extends l.JH{constructor(){super(...arguments),this._checkDates=!1,this._checkNumbers=!1,this._checkColors=!1,this._checkEmpty=!1,this._checkDeep=!1}_afterNew(){super._afterNew(),this._checkFeatures(),this.on("dateFields",(()=>this._checkFeatures())),this.on("dateFormat",(()=>this._checkFeatures())),this.on("numericFields",(()=>this._checkFeatures())),this.on("colorFields",(()=>this._checkFeatures())),this.on("emptyAs",(()=>this._checkFeatures()))}_checkFeatures(){(this.isDirty("dateFields")||this.isDirty("dateFormat"))&&(this._checkDates=this.get("dateFields")&&this.get("dateFields").length>0),this.isDirty("numericFields")&&(this._checkNumbers=this.get("numericFields")&&this.get("numericFields").length>0),this.isDirty("colorFields")&&(this._checkColors=this.get("colorFields")&&this.get("colorFields").length>0),this.isDirty("emptyAs")&&(this._checkEmpty=null!=this.get("emptyAs")),this._checkDeepFeatures()}_checkDeepFeatures(){const t=[];ht.each(["dateFields","numericFields","colorFields"],(e=>{ht.each(this.get(e,[]),(e=>{const i=e.split(".");for(i.pop();i.length>0;)t.push(i.join(".")),i.pop()}))})),this._checkDeep=t.length>0,this.setPrivate("deepFields",t)}processMany(t){N.isArray(t)&&(this._checkDates||this._checkNumbers||this._checkColors||this._checkEmpty)&&ht.each(t,(t=>{this.processRow(t)}))}processRow(t,e=""){vt.each(t,((i,s)=>{const n=e+i;this._checkEmpty&&(t[i]=this._maybeToEmpty(t[i])),this._checkNumbers&&(t[i]=this._maybeToNumber(n,t[i])),this._checkDates&&(t[i]=this._maybeToDate(n,t[i])),this._checkColors&&(t[i]=this._maybeToColor(n,t[i])),this._checkDeep&&-1!==this.getPrivate("deepFields",[]).indexOf(n)&&N.isObject(t[i])&&this.processRow(t[i],n+".")}))}_maybeToNumber(t,e){return-1!==this.get("numericFields").indexOf(t)?N.toNumber(e):e}_maybeToDate(t,e){return-1!==this.get("dateFields").indexOf(t)?this._root.dateFormatter.parse(e,this.get("dateFormat","")).getTime():e}_maybeToEmpty(t){return null!=t&&""!=t||null==this.get("emptyAs")?t:this.get("emptyAs")}_maybeToColor(t,e){return-1!==this.get("colorFields").indexOf(t)?O.Il.fromAny(e):e}}var Dt=i(6460),kt=i(798),Tt=i(9821),Mt=i(780),Et=i(7255),Ot=i(1195),Pt=i(4102),St=i(7049),Nt=i(6312),Ct=i(9395);function Lt(t,e,i){return new Promise(((s,n)=>{let r=null!=i&&"blob"==i.responseType,o=new XMLHttpRequest;if(o.onload=()=>{if(200===o.status){let t,i;if(r)return i=o.response,void At(i).then((t=>{let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}));t=o.responseText||o.response;let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}else n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.onerror=()=>{n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.open("GET",t,!0),i&&i.withCredentials&&(o.withCredentials=!0),null!=i){if(null!=i.requestHeaders)for(let t=0;t{const s=new FileReader;s.onload=t=>{e(s.result)},s.onerror=t=>{i(t)},s.readAsText(t)}))}var Rt=i(1926)},3100:function(t,e){"use strict";e.Z={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(t){let e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""}},9629:function(t){var e=function(t){"use strict";var e,i=Object.prototype,s=i.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",h=r.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,s){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new S(s||[]);return n(o,"_invoke",{value:M(t,i,a)}),o}function u(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",g="executing",f="completed",_={};function m(){}function y(){}function v(){}var w={};l(w,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==i&&s.call(x,o)&&(w=x);var D=v.prototype=m.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function i(n,r,o,a){var h=u(t[n],t,r);if("throw"!==h.type){var l=h.arg,c=l.value;return c&&"object"==typeof c&&s.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,o,a)}),(function(t){i("throw",t,o,a)})):e.resolve(c).then((function(t){l.value=t,o(l)}),(function(t){return i("throw",t,o,a)}))}a(h.arg)}var r;n(this,"_invoke",{value:function(t,s){function n(){return new e((function(e,n){i(t,s,e,n)}))}return r=r?r.then(n,n):n()}})}function M(t,e,i){var s=d;return function(n,r){if(s===g)throw new Error("Generator is already running");if(s===f){if("throw"===n)throw r;return C()}for(i.method=n,i.arg=r;;){var o=i.delegate;if(o){var a=E(o,i);if(a){if(a===_)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===d)throw s=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=g;var h=u(t,e,i);if("normal"===h.type){if(s=i.done?f:p,h.arg===_)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(s=f,i.method="throw",i.arg=h.arg)}}}function E(t,i){var s=i.method,n=t.iterator[s];if(n===e)return i.delegate=null,"throw"===s&&t.iterator.return&&(i.method="return",i.arg=e,E(t,i),"throw"===i.method)||"return"!==s&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),_;var r=u(n,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,_;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,_):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,_)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var h=s.call(o,"catchLoc"),l=s.call(o,"finallyLoc");if(h&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var s=i.completion;if("throw"===s.type){var n=s.arg;P(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,s){return this.delegate={iterator:N(t),resultName:i,nextLoc:s},"next"===this.method&&(this.arg=e),_}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},8494:function(t,e,i){"use strict";i.r(e),i.d(e,{am5:function(){return f}});const s=window.Promise,n=s&&s.prototype.then,r=s&&s.prototype.catch,o=s&&s.prototype.finally,a=s&&s.reject,h=s&&s.resolve,l=s&&s.allSettled,c=s&&s.all,u=s&&s.race,d=window.fetch,p=String.prototype.startsWith,g=String.prototype.endsWith;i(9629);const f=i(5322);var _;i.p=(_=function(){if(document.currentScript)return document.currentScript;var t=document.getElementsByTagName("script");return t[t.length-1]}().src,((/(.*\/)[^\/]*$/.exec(_)||[])[1]||"./")),s&&(window.Promise=s,n&&(s.prototype.then=n),r&&(s.prototype.catch=r),o&&(s.prototype.finally=o),a&&(s.reject=a),h&&(s.resolve=h),l&&(s.allSettled=l),c&&(s.all=c),u&&(s.race=u)),d&&(window.fetch=d),p&&(String.prototype.startsWith=p),g&&(String.prototype.endsWith=g)},4138:function(t,e){"use strict";var i={value:()=>{}};function s(){for(var t,e=0,i=arguments.length,s={};e=0&&(e=t.slice(i+1),t=t.slice(0,i)),t&&!s.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),h=-1,l=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++h0)for(var i,s,n=new Array(i),r=0;r0&&i*i>s*s+n*n}function u(t,e){for(var i=0;i1e-6?(E+Math.sqrt(E*E-4*M*O))/(2*M):O/E);return{x:s+x+D*P,y:n+k+T*P,r:P}}function f(t,e,i){var s,n,r,o,a=t.x-e.x,h=t.y-e.y,l=a*a+h*h;l?(n=e.r+i.r,n*=n,o=t.r+i.r,n>(o*=o)?(s=(l+o-n)/(2*l),r=Math.sqrt(Math.max(0,o/l-s*s)),i.x=t.x-s*a-r*h,i.y=t.y-s*h+r*a):(s=(l+n-o)/(2*l),r=Math.sqrt(Math.max(0,n/l-s*s)),i.x=e.x+s*a-r*h,i.y=e.y+s*h+r*a)):(i.x=e.x+i.r,i.y=e.y)}function _(t,e){var i=t.r+e.r-1e-6,s=e.x-t.x,n=e.y-t.y;return i>0&&i*i>s*s+n*n}function m(t){var e=t._,i=t.next._,s=e.r+i.r,n=(e.x*i.r+i.x*e.r)/s,r=(e.y*i.r+i.y*e.r)/s;return n*n+r*r}function y(t){this._=t,this.next=null,this.previous=null}function v(t,e){if(!(o=(i=t,t="object"==typeof i&&"length"in i?i:Array.from(i)).length))return 0;var i,s,n,r,o,a,l,u,p,g,v,w;if((s=t[0]).x=0,s.y=0,!(o>1))return s.r;if(n=t[1],s.x=-n.r,n.x=s.r,n.y=0,!(o>2))return s.r+n.r;f(n,s,r=t[2]),s=new y(s),n=new y(n),r=new y(r),s.next=r.previous=n,n.next=s.previous=r,r.next=n.previous=s;t:for(u=3;u(t=(r*t+o)%a)/a}();return s.x=e/2,s.y=i/2,t?s.eachBefore(x(t)).eachAfter(D(h,.5,l)).eachBefore(k(1)):s.eachBefore(x(w)).eachAfter(D(n.G,1,l)).eachAfter(D(h,s.r/Math.min(e,i),l)).eachBefore(k(Math.min(e,i)/(2*s.r))),s}return l.radius=function(e){return arguments.length?(t=(0,s.j)(e),l):t},l.size=function(t){return arguments.length?(e=+t[0],i=+t[1],l):[e,i]},l.padding=function(t){return arguments.length?(h="function"==typeof t?t:(0,n.Z)(+t),l):h},l}function x(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function D(t,e,i){return function(s){if(n=s.children){var n,r,o,a=n.length,h=t(s)*e||0;if(h)for(r=0;r=0))throw new Error(`invalid digits: ${t}`);if(e>15)return a;const i=10**e;return function(t){this._+=t[0];for(let e=1,s=t.length;er)if(Math.abs(d*l-c*u)>r&&o){let g=i-a,f=n-h,_=l*l+c*c,m=g*g+f*f,y=Math.sqrt(_),v=Math.sqrt(p),w=o*Math.tan((s-Math.acos((_+p-m)/(2*y*v)))/2),b=w/v,x=w/y;Math.abs(b-1)>r&&this._append`L${t+b*u},${e+b*d}`,this._append`A${o},${o},0,0,${+(d*g>u*f)},${this._x1=t+x*l},${this._y1=e+x*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,i,a,h,l){if(t=+t,e=+e,l=!!l,(i=+i)<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(a),u=i*Math.sin(a),d=t+c,p=e+u,g=1^l,f=l?a-h:h-a;null===this._x1?this._append`M${d},${p}`:(Math.abs(this._x1-d)>r||Math.abs(this._y1-p)>r)&&this._append`L${d},${p}`,i&&(f<0&&(f=f%n+n),f>o?this._append`A${i},${i},0,1,${g},${t-c},${e-u}A${i},${i},0,1,${g},${this._x1=d},${this._y1=p}`:f>r&&this._append`A${i},${i},0,${+(f>=s)},${g},${this._x1=t+i*Math.cos(h)},${this._y1=e+i*Math.sin(h)}`)}rect(t,e,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function l(){return new h}l.prototype=h.prototype},832:function(t,e,i){"use strict";i.d(e,{Z:function(){return D}});var s=i(3141);const n=Math.abs,r=Math.atan2,o=Math.cos,a=Math.max,h=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,d=Math.PI,p=d/2,g=2*d;function f(t){return t>=1?p:t<=-1?-p:Math.asin(t)}var _=i(5987);function m(t){return t.innerRadius}function y(t){return t.outerRadius}function v(t){return t.startAngle}function w(t){return t.endAngle}function b(t){return t&&t.padAngle}function x(t,e,i,s,n,r,o){var h=t-i,l=e-s,u=(o?r:-r)/c(h*h+l*l),d=u*l,p=-u*h,g=t+d,f=e+p,_=i+d,m=s+p,y=(g+_)/2,v=(f+m)/2,w=_-g,b=m-f,x=w*w+b*b,D=n-r,k=g*m-_*f,T=(b<0?-1:1)*c(a(0,D*D*x-k*k)),M=(k*b-w*T)/x,E=(-k*w-b*T)/x,O=(k*b+w*T)/x,P=(-k*w+b*T)/x,S=M-y,N=E-v,C=O-y,L=P-v;return S*S+N*N>C*C+L*L&&(M=O,E=P),{cx:M,cy:E,x01:-d,y01:-p,x11:M*(n/D-1),y11:E*(n/D-1)}}function D(){var t=m,e=y,i=(0,s.Z)(0),a=null,D=v,k=w,T=b,M=null,E=(0,_.d)(O);function O(){var s,_,m,y=+t.apply(this,arguments),v=+e.apply(this,arguments),w=D.apply(this,arguments)-p,b=k.apply(this,arguments)-p,O=n(b-w),P=b>w;if(M||(M=s=E()),vu)if(O>g-u)M.moveTo(v*o(w),v*l(w)),M.arc(0,0,v,w,b,!P),y>u&&(M.moveTo(y*o(b),y*l(b)),M.arc(0,0,y,b,w,P));else{var S,N,C=w,L=b,A=w,R=b,U=O,B=O,F=T.apply(this,arguments)/2,I=F>u&&(a?+a.apply(this,arguments):c(y*y+v*v)),H=h(n(v-y)/2,+i.apply(this,arguments)),z=H,G=H;if(I>u){var V=f(I/y*l(F)),W=f(I/v*l(F));(U-=2*V)>u?(A+=V*=P?1:-1,R-=V):(U=0,A=R=(w+b)/2),(B-=2*W)>u?(C+=W*=P?1:-1,L-=W):(B=0,C=L=(w+b)/2)}var Y=v*o(C),j=v*l(C),X=y*o(R),$=y*l(R);if(H>u){var Z,K=v*o(L),q=v*l(L),Q=y*o(A),J=y*l(A);if(O1?0:m<-1?d:Math.acos(m))/2),rt=c(Z[0]*Z[0]+Z[1]*Z[1]);z=h(H,(y-rt)/(nt-1)),G=h(H,(v-rt)/(nt+1))}else z=G=0}B>u?G>u?(S=x(Q,J,Y,j,v,G,P),N=x(K,q,X,$,v,G,P),M.moveTo(S.cx+S.x01,S.cy+S.y01),Gu&&U>u?z>u?(S=x(X,$,K,q,y,-z,P),N=x(Y,j,Q,J,y,-z,P),M.lineTo(S.cx+S.x01,S.cy+S.y01),z=o;--a)p.point(y[a],v[a]);p.lineEnd(),p.areaEnd()}m&&(y[r]=+t(h,r,n),v[r]=+e(h,r,n),p.point(l?+l(h,r,n):y[r],i?+i(h,r,n):v[r]))}if(f)return p=null,f+""||null}function _(){return(0,o.Z)().defined(c).curve(d).context(u)}return t="function"==typeof t?t:void 0===t?h.x:(0,n.Z)(+t),e="function"==typeof e?e:void 0===e?(0,n.Z)(0):(0,n.Z)(+e),i="function"==typeof i?i:void 0===i?h.y:(0,n.Z)(+i),f.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),l=null,f):t},f.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),f):t},f.x1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):l},f.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),i=null,f):e},f.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),f):e},f.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):i},f.lineX0=f.lineY0=function(){return _().x(t).y(e)},f.lineY1=function(){return _().x(t).y(i)},f.lineX1=function(){return _().x(l).y(e)},f.defined=function(t){return arguments.length?(c="function"==typeof t?t:(0,n.Z)(!!t),f):c},f.curve=function(t){return arguments.length?(d=t,null!=u&&(p=d(u)),f):d},f.context=function(t){return arguments.length?(null==t?u=p=null:p=d(u=t),f):u},f}},8457:function(t,e,i){"use strict";function s(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}i.d(e,{Z:function(){return s}}),Array.prototype.slice},3141:function(t,e,i){"use strict";function s(t){return function(){return t}}i.d(e,{Z:function(){return s}})},964:function(t,e,i){"use strict";function s(t){this._context=t}function n(t){return new s(t)}i.d(e,{Z:function(){return n}}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},774:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var s=i(8457),n=i(3141),r=i(964),o=i(5987),a=i(6758);function h(t,e){var i=(0,n.Z)(!0),h=null,l=r.Z,c=null,u=(0,o.d)(d);function d(n){var r,o,a,d=(n=(0,s.Z)(n)).length,p=!1;for(null==h&&(c=l(a=u())),r=0;r<=d;++r)!(r=0))throw new RangeError(`invalid digits: ${i}`);e=t}return t},()=>new s.y$(e)}},6758:function(t,e,i){"use strict";function s(t){return t[0]}function n(t){return t[1]}i.d(e,{x:function(){return s},y:function(){return n}})},7738:function(t,e,i){"use strict";i.d(e,{B7:function(){return _},HT:function(){return m},zO:function(){return g}});var s,n,r=0,o=0,a=0,h=1e3,l=0,c=0,u=0,d="object"==typeof performance&&performance.now?performance:Date,p="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return c||(p(f),c=d.now()+u)}function f(){c=0}function _(){this._call=this._time=this._next=null}function m(t,e,i){var s=new _;return s.restart(t,e,i),s}function y(){c=(l=d.now())+u,r=o=0;try{!function(){g(),++r;for(var t,e=s;e;)(t=c-e._time)>=0&&e._call.call(void 0,t),e=e._next;--r}()}finally{r=0,function(){for(var t,e,i=s,r=1/0;i;)i._call?(r>i._time&&(r=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:s=e);n=t,w(r)}(),c=0}}function v(){var t=d.now(),e=t-l;e>h&&(u-=e,l=t)}function w(t){r||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(y,t-d.now()-u)),a&&(a=clearInterval(a))):(a||(l=d.now(),a=setInterval(v,h)),r=1,p(y)))}_.prototype=m.prototype={constructor:_,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?g():+i)+(null==e?0:+e),this._next||n===this||(n?n._next=this:s=this,n=this),this._call=t,this._time=i,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},7896:function(t,e,i){"use strict";function s(){}function n(t){return null==t?s:function(){return this.querySelector(t)}}function r(){return[]}function o(t){return null==t?r:function(){return this.querySelectorAll(t)}}function a(t){return function(){return this.matches(t)}}function h(t){return function(e){return e.matches(t)}}var l=Array.prototype.find;function c(){return this.firstElementChild}var u=Array.prototype.filter;function d(){return Array.from(this.children)}function p(t){return new Array(t.length)}function g(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function f(t,e,i,s,n,r){for(var o,a=0,h=e.length,l=r.length;ae?1:t>=e?0:NaN}g.prototype={constructor:g,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var w="http://www.w3.org/1999/xhtml",b={svg:"http://www.w3.org/2000/svg",xhtml:w,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function x(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),b.hasOwnProperty(e)?{space:b[e],local:t}:t}function D(t){return function(){this.removeAttribute(t)}}function k(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T(t,e){return function(){this.setAttribute(t,e)}}function M(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function O(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function P(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function S(t){return function(){this.style.removeProperty(t)}}function N(t,e,i){return function(){this.style.setProperty(t,e,i)}}function C(t,e,i){return function(){var s=e.apply(this,arguments);null==s?this.style.removeProperty(t):this.style.setProperty(t,s,i)}}function L(t,e){return t.style.getPropertyValue(e)||P(t).getComputedStyle(t,null).getPropertyValue(e)}function A(t){return function(){delete this[t]}}function R(t,e){return function(){this[t]=e}}function U(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function B(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new I(t)}function I(t){this._node=t,this._names=B(t.getAttribute("class")||"")}function H(t,e){for(var i=F(t),s=-1,n=e.length;++s=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ut=[null];function dt(t,e){this._groups=t,this._parents=e}function pt(){return new dt([[document.documentElement]],ut)}dt.prototype=pt.prototype={constructor:dt,select:function(t){"function"!=typeof t&&(t=n(t));for(var e=this._groups,i=e.length,s=new Array(i),r=0;r=T&&(T=k+1);!(D=b[T])&&++T=0;)(s=n[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=v);for(var i=this._groups,s=i.length,n=new Array(s),r=0;r1?this.each((null==e?S:"function"==typeof e?C:N)(t,e,null==i?"":i)):L(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?A:"function"==typeof e?U:R)(t,e)):this.node()[t]},classed:function(t,e){var i=B(t+"");if(arguments.length<2){for(var s=F(this.node()),n=-1,r=i.length;++n=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}))}(t+""),o=r.length;if(!(arguments.length<2)){for(a=e?at:ot,s=0;s{s.stop(),t(i+e)}),e,i),s}var yt=(0,ft.Z)("start","end","cancel","interrupt"),vt=[],wt=0,bt=3;function xt(t,e,i,s,n,r){var o=t.__transition;if(o){if(i in o)return}else t.__transition={};!function(t,e,i){var s,n=t.__transition;function r(h){var l,c,u,d;if(1!==i.state)return a();for(l in n)if((d=n[l]).name===i.name){if(d.state===bt)return mt(r);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[l]):+lwt)throw new Error("too late; already scheduled");return i}function kt(t,e){var i=Tt(t,e);if(i.state>bt)throw new Error("too late; already running");return i}function Tt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Mt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Et,Ot=180/Math.PI,Pt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function St(t,e,i,s,n,r){var o,a,h;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(h=t*i+e*s)&&(i-=t*h,s-=e*h),(a=Math.sqrt(i*i+s*s))&&(i/=a,s/=a,h/=a),t*s180?e+=360:e-t>180&&(t+=360),r.push({i:i.push(n(i)+"rotate(",null,s)-2,x:Mt(t,e)})):e&&i.push(n(i)+"rotate("+e+s)}(r.rotate,o.rotate,a,h),function(t,e,i,r){t!==e?r.push({i:i.push(n(i)+"skewX(",null,s)-2,x:Mt(t,e)}):e&&i.push(n(i)+"skewX("+e+s)}(r.skewX,o.skewX,a,h),function(t,e,i,s,r,o){if(t!==i||e!==s){var a=r.push(n(r)+"scale(",null,",",null,")");o.push({i:a-4,x:Mt(t,i)},{i:a-2,x:Mt(e,s)})}else 1===i&&1===s||r.push(n(r)+"scale("+i+","+s+")")}(r.scaleX,r.scaleY,o.scaleX,o.scaleY,a,h),r=o=null,function(t){for(var e,i=-1,s=h.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?se(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?se(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jt.exec(t))?new re(e[1],e[2],e[3],1):(e=Xt.exec(t))?new re(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$t.exec(t))?se(e[1],e[2],e[3],e[4]):(e=Zt.exec(t))?se(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Kt.exec(t))?ue(e[1],e[2]/100,e[3]/100,1):(e=qt.exec(t))?ue(e[1],e[2]/100,e[3]/100,e[4]):Qt.hasOwnProperty(t)?ie(Qt[t]):"transparent"===t?new re(NaN,NaN,NaN,0):null}function ie(t){return new re(t>>16&255,t>>8&255,255&t,1)}function se(t,e,i,s){return s<=0&&(t=e=i=NaN),new re(t,e,i,s)}function ne(t,e,i,s){return 1===arguments.length?((n=t)instanceof It||(n=ee(n)),n?new re((n=n.rgb()).r,n.g,n.b,n.opacity):new re):new re(t,e,i,null==s?1:s);var n}function re(t,e,i,s){this.r=+t,this.g=+e,this.b=+i,this.opacity=+s}function oe(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}`}function ae(){const t=he(this.opacity);return`${1===t?"rgb(":"rgba("}${le(this.r)}, ${le(this.g)}, ${le(this.b)}${1===t?")":`, ${t})`}`}function he(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function le(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ce(t){return((t=le(t))<16?"0":"")+t.toString(16)}function ue(t,e,i,s){return s<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new pe(t,e,i,s)}function de(t){if(t instanceof pe)return new pe(t.h,t.s,t.l,t.opacity);if(t instanceof It||(t=ee(t)),!t)return new pe;if(t instanceof pe)return t;var e=(t=t.rgb()).r/255,i=t.g/255,s=t.b/255,n=Math.min(e,i,s),r=Math.max(e,i,s),o=NaN,a=r-n,h=(r+n)/2;return a?(o=e===r?(i-s)/a+6*(i0&&h<1?0:o,new pe(o,a,h,t.opacity)}function pe(t,e,i,s){this.h=+t,this.s=+e,this.l=+i,this.opacity=+s}function ge(t){return(t=(t||0)%360)<0?t+360:t}function fe(t){return Math.max(0,Math.min(1,t||0))}function _e(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function me(t,e,i,s,n){var r=t*t,o=r*t;return((1-3*t+3*r-o)*e+(4-6*r+3*o)*i+(1+3*t+3*r-3*o)*s+o*n)/6}Bt(It,ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return de(this).formatHsl()},formatRgb:te,toString:te}),Bt(re,ne,Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new re(le(this.r),le(this.g),le(this.b),he(this.opacity))},displayable(){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:oe,formatHex:oe,formatHex8:function(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}${ce(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ae,toString:ae})),Bt(pe,(function(t,e,i,s){return 1===arguments.length?de(t):new pe(t,e,i,null==s?1:s)}),Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new pe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new pe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*e,n=2*i-s;return new re(_e(t>=240?t-240:t+120,n,s),_e(t,n,s),_e(t<120?t+240:t-120,n,s),this.opacity)},clamp(){return new pe(ge(this.h),fe(this.s),fe(this.l),he(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=he(this.opacity);return`${1===t?"hsl(":"hsla("}${ge(this.h)}, ${100*fe(this.s)}%, ${100*fe(this.l)}%${1===t?")":`, ${t})`}`}}));var ye=t=>()=>t;function ve(t,e){var i=e-t;return i?function(t,e){return function(i){return t+i*e}}(t,i):ye(isNaN(t)?e:t)}var we=function t(e){var i=function(t){return 1==(t=+t)?ve:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(s){return Math.pow(t+s*e,i)}}(e,i,t):ye(isNaN(e)?i:e)}}(e);function s(t,e){var s=i((t=ne(t)).r,(e=ne(e)).r),n=i(t.g,e.g),r=i(t.b,e.b),o=ve(t.opacity,e.opacity);return function(e){return t.r=s(e),t.g=n(e),t.b=r(e),t.opacity=o(e),t+""}}return s.gamma=t,s}(1);function be(t){return function(e){var i,s,n=e.length,r=new Array(n),o=new Array(n),a=new Array(n);for(i=0;i=1?(i=1,e-1):Math.floor(i*e),n=t[s],r=t[s+1],o=s>0?t[s-1]:2*n-r,a=sr&&(n=e.slice(r,n),a[o]?a[o]+=n:a[++o]=n),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,h.push({i:o,x:Mt(i,s)})),r=De.lastIndex;return r=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Dt:kt;return function(){var o=r(this,t),a=o.on;a!==s&&(n=(s=a).copy()).on(e,i),o.on=n}}(i,t,e))},attr:function(t,e){var i=x(t),s="transform"===i?Lt:Te;return this.attrTween(t,"function"==typeof e?(i.local?Ne:Se)(i,s,Ut(this,"attr."+t,e)):null==e?(i.local?Ee:Me)(i):(i.local?Pe:Oe)(i,s,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;var s=x(t);return this.tween(i,(s.local?Ce:Le)(s,e))},style:function(t,e,i){var s="transform"==(t+="")?Ct:Te;return null==e?this.styleTween(t,function(t,e){var i,s,n;return function(){var r=L(this,t),o=(this.style.removeProperty(t),L(this,t));return r===o?null:r===i&&o===s?n:n=e(i=r,s=o)}}(t,s)).on("end.style."+t,Ie(t)):"function"==typeof e?this.styleTween(t,function(t,e,i){var s,n,r;return function(){var o=L(this,t),a=i(this),h=a+"";return null==a&&(this.style.removeProperty(t),h=a=L(this,t)),o===h?null:o===s&&h===n?r:(n=h,r=e(s=o,a))}}(t,s,Ut(this,"style."+t,e))).each(function(t,e){var i,s,n,r,o="style."+e,a="end."+o;return function(){var h=kt(this,t),l=h.on,c=null==h.value[o]?r||(r=Ie(e)):void 0;l===i&&n===c||(s=(i=l).copy()).on(a,n=c),h.on=s}}(this._id,t)):this.styleTween(t,function(t,e,i){var s,n,r=i+"";return function(){var o=L(this,t);return o===r?null:o===s?n:n=e(s=o,i)}}(t,s,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var s="style."+(t+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(null==e)return this.tween(s,null);if("function"!=typeof e)throw new Error;return this.tween(s,function(t,e,i){var s,n;function r(){var r=e.apply(this,arguments);return r!==n&&(s=(n=r)&&function(t,e,i){return function(s){this.style.setProperty(t,e.call(this,s),i)}}(t,r,i)),s}return r._value=e,r}(t,e,null==i?"":i))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ut(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,i;function s(){var s=t.apply(this,arguments);return s!==i&&(e=(i=s)&&function(t){return function(e){this.textContent=t.call(this,e)}}(s)),e}return s._value=t,s}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var s,n=Tt(this.node(),i).tween,r=0,o=n.length;r2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[n]):o=!1;o&&delete t.__transition}}(this,t)}))},gt.prototype.transition=function(t){var e,i;t instanceof ze?(e=t._id,t=t._name):(e=Ge(),(i=We).time=(0,_t.zO)(),t=null==t?null:t+"");for(var s=this._groups,n=s.length,r=0;r=n)&&Object.keys(a.O).every((function(t){return a.O[t](i[h])}))?i.splice(h--,1):(o=!1,n0&&t[c-1][2]>n;c--)t[c]=t[c-1];t[c]=[i,s,n]},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},i=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(t,s){if(1&s&&(t=this(t)),8&s)return t;if("object"==typeof t&&t){if(4&s&&t.__esModule)return t;if(16&s&&"function"==typeof t.then)return t}var n=Object.create(null);a.r(n);var r={};e=e||[null,i({}),i([]),i(i)];for(var o=2&s&&t;"object"==typeof o&&!~e.indexOf(o);o=i(o))Object.getOwnPropertyNames(o).forEach((function(e){r[e]=function(){return t[e]}}));return r.default=function(){return t},a.d(n,r),n},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,i){return a.f[i](t,e),e}),[]))},a.u=function(t){return"deps/"+{643:"pdfmake",4297:"xlsx",4384:"markerjs2"}[t]+".js"},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s={},n="@amcharts/amcharts5:",a.l=function(t,e,i,r){if(s[t])s[t].push(e);else{var o,h;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c + + + + + Drag and change column value + + + +
+ + + + + + + diff --git a/web/amCharts/bar/chart_0084_bar.inline01.js b/web/amCharts/bar/chart_0084_bar.inline01.js new file mode 100644 index 0000000000000000000000000000000000000000..3fe3e3caca2e468e70f044c7aaeaa49dfcb8d974 --- /dev/null +++ b/web/amCharts/bar/chart_0084_bar.inline01.js @@ -0,0 +1,2 @@ +!function(){var t,e,i,s,n,r={3145:function(t,e,i){"use strict";i.d(e,{UZ:function(){return r},cP:function(){return n},f_:function(){return o},i_:function(){return s}});const s=new class{constructor(){this.version="5.16.0",this.licenses=[],this.entitiesById={},this.rootElements=[],this.autoDispose=!1}};function n(t){s.licenses.push(t)}function r(){let t;for(;t=s.rootElements.pop();)t.dispose()}function o(t){let e;return s.rootElements.forEach((i=>{i.dom.id==t&&(e=i)})),e}},2855:function(t,e,i){"use strict";i.d(e,{f:function(){return F}});var s=i(6490),n=i(8777),r=i(2036),o=i(4431),a=i(1706),h=i(6881),l=i(7449),c=i(5071),u=i(7652);class d{constructor(){this._targets=[],this._observer=new ResizeObserver((t=>{c.each(t,(t=>{c.each(this._targets,(e=>{e.target===t.target&&e.callback()}))}))}))}addTarget(t,e){this._observer.observe(t,{box:"border-box"}),this._targets.push({target:t,callback:e})}removeTarget(t){this._observer.unobserve(t),c.keepIf(this._targets,(e=>e.target!==t))}}class p{constructor(){this._timer=null,this._targets=[]}addTarget(t,e){if(null===this._timer){let t=null;const e=()=>{const i=Date.now();(null===t||i>t+p.delay)&&(t=i,c.each(this._targets,(t=>{let e=t.target.getBoundingClientRect();e.width===t.size.width&&e.height===t.size.height||(t.size=e,t.callback())}))),0===this._targets.length?this._timer=null:this._timer=requestAnimationFrame(e)};this._timer=requestAnimationFrame(e)}this._targets.push({target:t,callback:e,size:{width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0}})}removeTarget(t){c.keepIf(this._targets,(e=>e.target!==t)),0===this._targets.length&&null!==this._timer&&(cancelAnimationFrame(this._timer),this._timer=null)}}p.delay=200;let g=null;class f{constructor(t,e){this._disposed=!1,this._sensor=(null===g&&(g="undefined"!=typeof ResizeObserver?new d:new p),g),this._element=t,this._listener=u.onZoom(e),this._sensor.addTarget(t,e)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}var _=i(9821),m=i(1479),y=i(7142),v=i(2876),w=i(780),b=i(6460),x=i(798),D=i(6331),k=i(256),T=i(3100);class M extends D.JH{_setDefaults(){this.setPrivate("defaultLocale",T.Z),super._setDefaults()}translate(t,e,...i){e||(e=this._root.locale||this.getPrivate("defaultLocale"));let s=t,n=e[t];if(null===n)s="";else if(null!=n)n&&(s=n);else if(e!==this.getPrivate("defaultLocale"))return this.translate(t,this.getPrivate("defaultLocale"),...i);if(i.length)for(let t=i.length,e=0;e{this.setTranslationAny(t,i,e)}))}translateEmpty(t,e,...i){let s=this.translate(t,e,...i);return s==t?"":s}translateFunc(t,e){return this._root.locale[t]?this._root.locale[t]:e!==this.getPrivate("defaultLocale")?this.translateFunc(t,this.getPrivate("defaultLocale")):()=>""}translateAll(t,e){return this.isDefault()?t:c.map(t,(t=>this.translate(t,e)))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}var E=i(9770),O=i(3783),P=i(4102),S=i(6245),N=i(1112),C=i(2132),L=i(3145),A=i(3540),R=i(5040),U=i(9395);function B(t,e){null==t?requestAnimationFrame(e):setTimeout((()=>{requestAnimationFrame(e)}),1e3/t)}class F{constructor(t,e={},i){if(this._isDirty=!1,this._isDirtyParents=!1,this._isDirtyAnimation=!1,this._dirty={},this._dirtyParents={},this._dirtyBounds={},this._dirtyPositions={},this._ticker=null,this._tickers=[],this._updateTick=!0,this.skipRenderFrame=!1,this.events=new E.p,this.animationTime=null,this._animations=[],this.language=M.new(this,{}),this.locale=T.Z,this.utc=!1,this.numberFormatter=w.e.new(this,{}),this.dateFormatter=b.C.new(this,{}),this.durationFormatter=x.$.new(this,{}),this.tabindex=0,this._tabindexes=[],this._a11yD=!1,this._focusElementDirty=!1,this._skipNextGroupJump=!0,this.verticalLayout=a.Z.new(this,{}),this.horizontalLayout=o.G.new(this,{}),this.gridLayout=h.M.new(this,{}),this._paused=!1,this.autoResize=!0,this._fontHash="",this._isDisposed=!1,this._disposers=[],this._tooltips=[],this._htmlEnabledContainers=[],this.entitiesById={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");let s,n;if(this._settings=e,0==e.accessible&&(this._a11yD=!0),null==e.useSafeResolution&&(e.useSafeResolution=!0),e.useSafeResolution&&(s=u.getSafeResolution()),this._renderer=new P.uK(s),n=t instanceof HTMLElement?t:document.getElementById(t),c.each(L.i_.rootElements,(t=>{if(t.dom===n){if(!L.i_.autoDispose)throw new Error("You cannot have multiple Roots on the same DOM node");t.dispose()}})),this.interfaceColors=_.v.new(this,{}),null===n)throw new Error("Could not find HTML element with id `"+t+"`");this.dom=n;let r=document.createElement("div");r.style.position="relative",r.style.width="100%",r.style.height="100%",n.appendChild(r);const l=e.tooltipContainerBounds;l&&(this._tooltipContainerSettings=l),this._inner=r,this._updateComputedStyles(),L.i_.rootElements.push(this)}static new(t,e){const i=new F(t,e,!0);return i._init(),i}moveDOM(t){let e;if(e=t instanceof HTMLElement?t:document.getElementById(t),e){for(;this.dom.childNodes.length>0;)e.appendChild(this.dom.childNodes[0]);this.dom=e,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const t=this.dom.offsetWidth,e=this.dom.offsetHeight;t<=150||e<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const t=this.tooltipContainer.children.push(n.W.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:(0,S.aQ)(100),centerY:S.AQ,tooltipY:10,tooltipText:"Created using amCharts 5",tooltipX:S.AQ,cursorOverStyle:"pointer",background:y.A.new(this,{fill:(0,N.$_)(4671320),fillOpacity:0,tooltipY:5})}));t.set("tooltip",this.systemTooltip),t.events.on("click",(()=>{window.open("https://www.amcharts.com/","_blank")})),t.states.create("hover",{});const e=t.children.push(m.T.new(this,{stroke:(0,N.$_)(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6",dx:-50,strokeOpacity:0}));e.states.create("hover",{stroke:(0,N.$_)(3976191)});const i=t.children.push(m.T.new(this,{stroke:(0,N.$_)(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0",dx:50,strokeOpacity:0})),s=U.out(U.cubic),r=1500;t.setTimeout((()=>{i.animate({key:"strokeOpacity",to:1,duration:r,easing:s}),i.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"strokeOpacity",to:1,duration:r,easing:s})}),3e3),i.states.create("hover",{stroke:(0,N.$_)(4671320)}),this._logo=t,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(t){return this._settings.calculateSize?this._settings.calculateSize(t):{width:t.width,height:t.height}}_init(){const t=this._settings;!1!==t.accessible&&(t.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),t.ariaLabel&&this._inner.setAttribute("aria-label",t.ariaLabel),t.role&&this._inner.setAttribute("role",t.role));const e=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),r=Math.floor(s.width),o=Math.floor(s.height),a=Math.floor(i.width),h=Math.floor(i.height),l=n.W.new(this,{visible:!0,width:r,height:o});this._rootContainer=l,this._rootContainer._defaultThemes.push(O.X.new(this));const c=l.children.push(n.W.new(this,{visible:!0,width:S.AQ,height:S.AQ}));this.container=c,e.resize(a,h,r,o),this._inner.appendChild(e.view),this._initResizeSensor();const d=document.createElement("div");if(this._htmlElementContainer=d,d.className="am5-html-container",d.style.position="absolute",d.style.pointerEvents="none",this._tooltipContainerSettings||(d.style.overflow="hidden"),this._inner.appendChild(d),!0!==this._a11yD){const t=document.createElement("div");t.className="am5-reader-container",t.setAttribute("role","alert"),t.style.position="absolute",t.style.width="1px",t.style.height="1px",t.style.overflow="hidden",t.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=t,this._inner.appendChild(this._readerAlertElement);const i=document.createElement("div");i.className="am5-focus-container",i.style.position="absolute",i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.width=r+"px",i.style.height=o+"px",i.setAttribute("role","graphics-document"),u.setInteractive(i,!1),this._focusElementContainer=i,this._inner.appendChild(this._focusElementContainer);const s=document.createElement("div");this._tooltipElementContainer=s,s.className="am5-tooltip-container",this._inner.appendChild(s),u.supports("keyboardevents")&&(this._disposers.push(u.addEventListener(window,"keydown",(t=>{const e=u.getEventKey(t);"Shift"==e?this._isShift=!0:"Tab"==e&&(this._isShift=t.shiftKey)}))),this._disposers.push(u.addEventListener(window,"keyup",(t=>{"Shift"==u.getEventKey(t)&&(this._isShift=!1)}))),this._disposers.push(u.addEventListener(i,"click",(()=>{const t=this._focusedSprite;if(t){const i=t.get("clickAnnounceText","");""!==i&&this.readerAlert(i);const s=e.getEvent(new MouseEvent("click"));t.events.dispatch("click",{type:"click",originalEvent:s.event,point:s.point,simulated:!0,target:t})}}))),this._disposers.push(u.addEventListener(i,"keydown",(t=>{const i=this._focusedSprite;if(i){"Escape"==t.key&&(u.blur(),this._focusedSprite=void 0);let s=0,n=0;const r=u.getEventKey(t);switch(r){case"Enter":case" ":const o=i.get("clickAnnounceText","");if(""!==o&&this.readerAlert(o)," "==r&&"checkbox"!=i.get("role"))return;t.preventDefault();const a=e.getEvent(new MouseEvent("mouse"));return void i.events.dispatch("click",{type:"click",originalEvent:a.event,point:a.point,simulated:!0,target:i});case"ArrowLeft":s=-6;break;case"ArrowRight":s=6;break;case"ArrowUp":n=-6;break;case"ArrowDown":n=6;break;default:return}if(0!=s||0!=n){if(t.preventDefault(),!i.isDragging()){this._keyboardDragPoint={x:0,y:0};const t=e.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));t.point={x:0,y:0},i.events.isEnabled("pointerdown")&&i.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:t.event,point:t.point,simulated:!0,target:i})}const r=this._keyboardDragPoint;r.x+=s,r.y+=n;const o=e.getEvent(new MouseEvent("mousemove",{clientX:r.x,clientY:r.y}),!1);i.events.isEnabled("globalpointermove")&&i.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:o.event,point:o.point,simulated:!0,target:i})}}}))),this._disposers.push(u.addEventListener(i,"keyup",(t=>{if(this._focusedSprite){const i=this._focusedSprite,s=u.getEventKey(t);switch(s){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(i.isDragging()){const t=this._keyboardDragPoint,s=e.getEvent(new MouseEvent("mouseup",{clientX:t.x,clientY:t.y}));return i.events.isEnabled("globalpointerup")&&i.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:s.event,point:s.point,simulated:!0,target:i}),void(this._keyboardDragPoint=void 0)}if(i.get("focusableGroup")){const t=i.get("focusableGroup"),e=this._tabindexes.filter((e=>!(e.get("focusableGroup")!=t||!1===e.getPrivate("focusable")||!e.isVisibleDeep())));let n=e.indexOf(i);const r=e.length-1;n+="ArrowRight"==s||"ArrowDown"==s?1:-1,n<0?n=r:n>r&&(n=0),u.focus(e[n].getPrivate("focusElement").dom)}break;case"Tab":const t=i.get("focusableGroup");if(t&&this._isShift)return void(this._skipNextGroupJump||(this._focusNext(i.getPrivate("focusElement").dom,-1,t),this._skipNextGroupJump=!0))}}}))))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}get systemTooltip(){if(!this._systemTooltip){const t=v.u.new(this,{themeTags:["system"]});this._systemTooltip=t}return this._systemTooltip}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new f(this.dom,(()=>{this.autoResize&&this.resize()})),this._disposers.push(this._resizeSensorDisposer)}resize(){const t=this._getRealSize(),e=this._getCalculatedSize(t),i=Math.floor(e.width),s=Math.floor(e.height);if(i>0&&s>0){const e=Math.floor(t.width),n=Math.floor(t.height),r=this._htmlElementContainer;if(r.style.width=i+"px",r.style.height=s+"px",!0!==this._a11yD){const t=this._focusElementContainer;t.style.width=i+"px",t.style.height=s+"px"}this._renderer.resize(e,n,i,s);const o=this._rootContainer;o.setPrivate("width",i),o.setPrivate("height",s),this._render(),this._handleLogo()}}_render(){this.skipRenderFrame?this.skipRenderFrame=!1:(this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1))}_runTickers(t){c.each(this._tickers,(e=>{e(t)}))}_runAnimations(t){let e=0;return c.keepIf(this._animations,(i=>{const n=i._runAnimation(t);return n!==s.SR.Stopped&&(n!==s.SR.Playing||(++e,!0))})),this._isDirtyAnimation=!1,0===e}_runDirties(){let t={};for(;this._isDirtyParents;)this._isDirtyParents=!1,k.entries(this._dirtyParents).forEach((([e,i])=>{delete this._dirtyParents[e],i.isDisposed()||(t[i.uid]=i,i._prepareChildren())}));k.entries(t).forEach((([t,e])=>{e._updateChildren()}));const e=[];k.entries(this._dirty).forEach((([t,i])=>{i.isDisposed()?delete this._dirty[t]:(e.push(i),i._beforeChanged())})),e.forEach((t=>{t._changed(),delete this._dirty[t.uid],t._clearDirty()})),this._isDirty=!1;const i={},s=[];k.entries(this._dirtyBounds).forEach((([t,e])=>{delete this._dirtyBounds[t],e.isDisposed()||(i[e.uid]=e.depth(),s.push(e))})),this._positionHTMLElements(),s.sort(((t,e)=>A.qu(i[e.uid],i[t.uid]))),s.forEach((t=>{t._updateBounds()}));const n=this._dirtyPositions;k.entries(n).forEach((([t,e])=>{delete n[t],e.isDisposed()||e._updatePosition()})),e.forEach((t=>{t._afterChanged()})),k.entries(t).forEach((([t,e])=>{e._childrenPrep=!1,e._childrenUpdt=!1}))}_renderFrame(t){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:t}),this._checkComputedStyles(),this._runTickers(t);const e=this._runAnimations(t);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:t}),0===this._tickers.length&&e&&!this._isDirtyAnimation&&!this._isDirty}return!0}_runTicker(t,e){this.isDisposed()||(this.animationTime=t,this._renderFrame(t)?(this._ticker=null,this.animationTime=null):this._paused||(e?this._ticker:B(this.fps,this._ticker)))}_runTickerNow(t=1e4){if(!this.isDisposed()){const e=performance.now()+t;for(;;){const t=performance.now();if(t>=e){this.animationTime=null;break}if(this.animationTime=t,this._renderFrame(t)){this.animationTime=null;break}}}}_startTicker(){null===this._ticker&&(this.animationTime=null,this._ticker=t=>{this._runTicker(t)},B(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(t){this._updateTick=t,t&&this._startTicker()}_addDirtyEntity(t){this._isDirty=!0,void 0===this._dirty[t.uid]&&(this._dirty[t.uid]=t),this._startTicker()}_addDirtyParent(t){this._isDirty=!0,this._isDirtyParents=!0,void 0===this._dirtyParents[t.uid]&&(this._dirtyParents[t.uid]=t),this._startTicker()}_addDirtyBounds(t){this._isDirty=!0,void 0===this._dirtyBounds[t.uid]&&(this._dirtyBounds[t.uid]=t),this._startTicker()}_addDirtyPosition(t){this._isDirty=!0,void 0===this._dirtyPositions[t.uid]&&(this._dirtyPositions[t.uid]=t),this._startTicker()}_addAnimation(t){this._isDirtyAnimation=!0,-1===this._animations.indexOf(t)&&this._animations.push(t),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",(()=>{this._isDirty=!0,this._startTicker()}))}eachFrame(t){return this._tickers.push(t),this._startTicker(),new l.ku((()=>{c.removeFirst(this._tickers,t)}))}markDirtyGlobal(t){t||(t=this.container),t.walkChildren((t=>{t instanceof n.W&&this.markDirtyGlobal(t),t.markDirty(),t.markDirtyBounds()}))}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),c.each(this._disposers,(t=>{t.dispose()})),this._inner&&u.removeElement(this._inner),c.remove(L.i_.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(t){if(!0!==this._a11yD){const e=this._readerAlertElement;t=u.stripTags(t),e.innerHTML==t&&(e.innerHTML=""),e.innerHTML=t}}setThemes(t){this._rootContainer.set("themes",t);const e=this.tooltipContainer;e&&e._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const t=this._tooltipContainerSettings,e=this._rootContainer.children.push(n.W.new(this,{position:"absolute",isMeasured:!1,width:S.AQ,height:S.AQ,layer:t?35:30,layerMargin:t||void 0}));this.tooltipContainer=e;const i=v.u.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(t){1!=this._a11yD&&(t.get("focusable")?c.pushOne(this._tabindexes,t):c.remove(this._tabindexes,t),this._invalidateTabindexes())}_unregisterTabindexOrder(t){1!=this._a11yD&&(c.remove(this._tabindexes,t),this._invalidateTabindexes())}_invalidateTabindexes(){if(1==this._a11yD)return;this._tabindexes.sort(((t,e)=>{const i=t.get("tabindexOrder",0),s=e.get("tabindexOrder",0);return i==s?0:i>s?1:-1}));const t=[];c.each(this._tabindexes,((e,i)=>{e.getPrivate("focusElement")?this._moveFocusElement(i,e):this._makeFocusElement(i,e);const s=e.get("focusableGroup");s&&!1!==e.getPrivate("focusable")&&(-1!==t.indexOf(s)?e.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):t.push(s))}))}_updateCurrentFocus(){1!=this._a11yD&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(t,e){if(1==this._a11yD)return;if(e||(e=t.getPrivate("focusElement").dom),!e)return;const i=t.get("role");i?e.setAttribute("role",i):e.removeAttribute("role");const s=t.get("ariaLabel");if(s){const i=(0,C.q)(t,s);e.setAttribute("aria-label",i)}else e.removeAttribute("aria-label");const n=t.get("ariaLive");n?e.setAttribute("aria-live",n):e.removeAttribute("aria-live");const r=t.get("ariaChecked");null!=r&&i&&-1!==["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)?e.setAttribute("aria-checked",r?"true":"false"):e.removeAttribute("aria-checked");const o=t.get("ariaCurrent");null!=o?e.setAttribute("aria-current",o):e.removeAttribute("aria-current");const a=t.get("ariaSelected");null!=a&&i&&-1!==["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)?e.setAttribute("aria-selected",a?"true":"false"):e.removeAttribute("aria-selected"),t.get("ariaHidden")?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden");const h=t.get("ariaOrientation");h?e.setAttribute("aria-orientation",h):e.removeAttribute("aria-orientation");const l=t.get("ariaValueNow");l?e.setAttribute("aria-valuenow",l):e.removeAttribute("aria-valuenow");const c=t.get("ariaValueMin");c?e.setAttribute("aria-valuemin",c):e.removeAttribute("aria-valuemin");const u=t.get("ariaValueMax");u?e.setAttribute("aria-valuemax",u):e.removeAttribute("aria-valuemax");const d=t.get("ariaValueText");d?e.setAttribute("aria-valuetext",d):e.removeAttribute("aria-valuetext");const p=t.get("ariaControls");p?e.setAttribute("aria-controls",p):e.removeAttribute("aria-controls"),t.get("visible")&&0!==t.get("opacity")&&"tooltip"!=t.get("role")&&!t.isHidden()&&!1!==t.getPrivate("focusable")&&(t.height()||t.width())?("-1"!=e.getAttribute("tabindex")&&e.setAttribute("tabindex",""+this.tabindex),e.removeAttribute("aria-hidden")):(e.removeAttribute("tabindex"),e.setAttribute("aria-hidden","true"))}_makeFocusElement(t,e){if(e.getPrivate("focusElement")||1==this._a11yD)return;const i=document.createElement("div");"tooltip"!=e.get("role")&&(i.tabIndex=this.tabindex),i.style.position="absolute",u.setInteractive(i,!1);const s=[];e.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(e),s.push(u.addEventListener(i,"focus",(t=>{this._handleFocus(t)}))),s.push(u.addEventListener(i,"blur",(t=>{this._handleBlur(t)}))),this._moveFocusElement(t,e)}_removeFocusElement(t){if(1==this._a11yD)return;c.remove(this._tabindexes,t);const e=t.getPrivate("focusElement");e&&(this._focusElementContainer.removeChild(e.dom),c.each(e.disposers,(t=>{t.dispose()})))}_hideFocusElement(t){1!=this._a11yD&&(t.getPrivate("focusElement").dom.style.display="none")}_moveFocusElement(t,e){if(1==this._a11yD)return;const i=this._focusElementContainer,s=e.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[t])return;const n=this._focusElementContainer.children[t+1];n?i.insertBefore(s,n):i.append(s)}_positionFocusElement(t){if(1==this._a11yD||null==t)return;this._focusElementContainer.scrollTop=0;const e=t.globalBounds();let i=e.right==e.left?t.width():e.right-e.left,s=e.top==e.bottom?t.height():e.bottom-e.top;const n=void 0!==this._settings.focusPadding?this._settings.focusPadding:2;let r=e.left-n,o=e.top-n;i<0&&(r+=i,i=Math.abs(i)),s<0&&(o+=s,s=Math.abs(s));const a=t.getPrivate("focusElement").dom;a.style.top=o+"px",a.style.left=r+"px",a.style.width=i+2*n+"px",a.style.height=s+2*n+"px"}_getSpriteByFocusElement(t){let e;return c.eachContinue(this._tabindexes,((i,s)=>i.getPrivate("focusElement").dom!==t||(e=i,!1))),e}_handleFocus(t){if(1==this._a11yD)return;const e=this._getSpriteByFocusElement(t.target);e&&(e.isVisibleDeep()?(this._positionFocusElement(e),this._focusedSprite=e,e.events.isEnabled("focus")&&e.events.dispatch("focus",{type:"focus",originalEvent:t,target:e}),-1==e.getPrivate("focusElement").dom.tabIndex&&(this._skipNextGroupJump=!1)):this._focusNext(t.target,this._isShift?-1:1))}_focusNext(t,e,i){if(1==this._a11yD)return;const s=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(",")));let n=s.indexOf(t)+e;n<0?n=s.length-1:n>=s.length&&(n=0);const r=s[n];if(i&&-1==e){const t=this._getSpriteByFocusElement(r);if(t&&t.get("focusableGroup")==i)return void this._focusNext(r,e)}r.focus()}_handleBlur(t){if(1==this._a11yD)return;const e=this._focusedSprite;e&&!e.isDisposed()&&e.events.isEnabled("blur")&&e.events.dispatch("blur",{type:"blur",originalEvent:t,target:e}),this._focusedSprite=void 0}updateTooltip(t){if(1==this._a11yD)return;const e=u.stripTags(t._getText());let i=t.getPrivate("tooltipElement");"tooltip"==t.get("role")&&""!=e?(i||(i=this._makeTooltipElement(t)),i.innerHTML!=e&&(i.innerHTML=e),i.setAttribute("aria-hidden",t.isVisibleDeep()?"false":"true")):i&&(i.remove(),t.removePrivate("tooltipElement"))}_makeTooltipElement(t){const e=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",u.setInteractive(i,!1),this._decorateFocusElement(t,i),e.append(i),t.setPrivate("tooltipElement",i),i}_removeTooltipElement(t){if(1==this._a11yD)return;const e=t.getPrivate("tooltipElement");if(e){const t=e.parentElement;t&&t.removeChild(e)}}_invalidateAccessibility(t){if(1==this._a11yD)return;this._focusElementDirty=!0;const e=t.getPrivate("focusElement");t.get("focusable")?e&&(this._decorateFocusElement(t),this._positionFocusElement(t)):e&&this._removeFocusElement(t)}focused(t){return this._focusedSprite===t}documentPointToRoot(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:(t.x-e.left)*s,y:(t.y-e.top)*n}}rootPointToDocument(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:t.x/s+e.left,y:t.y/n+e.top}}addDisposer(t){return this._disposers.push(t),t}_updateComputedStyles(){const t=window.getComputedStyle(this.dom);let e="";k.each(t,((t,i)=>{R.isString(t)&&t.match(/^font/)&&(e+=i)}));const i=e!=this._fontHash;return i&&(this._fontHash=e),i}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(t){t instanceof n.W?t.children.each((t=>{this._invalidateLabelBounds(t)})):t instanceof r.x&&t.markDirtyBounds()}_hasLicense(){for(let t=0;t{if(t.get("verticalScrollbar"))return r=!0,s=t,!1})),r&&(n=document.createElement("div"),t.setPrivate("htmlElementWrapper",n),t.setPrivate("wrapperContainer",s),n.style.position="absolute",n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",s.events.on("boundschanged",(()=>{this._positionHTMLElement(t)}))),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",u.setInteractive(i,t.get("interactive",!1)),t.events.isEnabled("click")&&(u.setInteractive(i,!0),this._disposers.push(u.addEventListener(i,"click",(e=>{const i=this._renderer.getEvent(e);t.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))),this._positionHTMLElement(t),r?(n.append(i),e.append(n)):e.append(i),c.pushOne(this._htmlEnabledContainers,t),i}_positionHTMLElements(){c.each(this._htmlEnabledContainers,(t=>{this._positionHTMLElement(t)}))}_positionHTMLElement(t){const e=t.getPrivate("htmlElementWrapper");if(e){const i=t.getPrivate("wrapperContainer");if(i){const t=i.globalBounds();e.style.clipPath="rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"}}const i=t.getPrivate("htmlElement");if(i){const e=["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"];c.each(e,(e=>{const s=t.get(e);i.style[e]=s?s+"px":""}));const s=["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"];c.each(s,(e=>{const s=t.get(e);s?"fontSize"!=e||R.isString(s)?i.style[e]=s+"":i.style[e]=s+"px":i.style[e]=""}));const n=t.compositeScale()||1,r=t.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";const o=t.compositeOpacity();setTimeout((()=>{i.style.opacity=o+""}),10);const a=t.isVisibleDeep();a&&(i.style.display="block");let h={x:t.x()+t.get("dx",0),y:t.y()+t.get("dy",0)};t.parent&&(h=t.parent.toGlobal(h)),i.style.top=h.y+"px",i.style.left=h.x+"px";const l=t.get("width"),u=t.get("height");let d=0,p=0;if(l&&(d=t.width()),u&&(p=t.height()),!l||!u){i.style.position="fixed",i.style.width="",i.style.height="";const e=i.getBoundingClientRect();i.style.position="absolute",l||(d=e.width),u||(p=e.height);let s=d/n,r=p/n,o=t.get("centerX",0),a=t.get("centerY",0),h=0,c=0,g=0,f=0;o instanceof S.gG?(h=-o.value*s,c=(1-o.value)*s):(h=-o,c=s-o),a instanceof S.gG?(g=-a.value*r,f=(1-a.value)*r):(g=-a,f=r-a),t._localBounds={left:h,right:c,top:g,bottom:f};let _=t._adjustedLocalBounds,m=t._display.getAdjustedBounds(t._localBounds);t._adjustedLocalBounds=m,_.left===m.left&&_.right===m.right&&_.top===m.top&&_.bottom===m.bottom||t.markDirtyBounds()}d>0&&(i.style.minWidth=d+"px"),p>0&&(i.style.minHeight=p+"px"),a&&0!=o||(i.style.display="none");const g=t.get("centerX",0),f=(0,S.hU)(g)?g.percent+"%":g+"px",_=t.get("centerY",0),m=(0,S.hU)(_)?_.percent+"%":_+"px";(g||_)&&(i.style.transform="translate(-"+f+", -"+m+")"+i.style.transform),1!=n&&(i.style.transform+="scale("+n+")"),0!=r&&(i.style.transform+=" rotate("+r+"deg)"),""!=i.style.transform&&(i.style.transformOrigin=f+" "+m)}}_setHTMLContent(t,e){let i=t.getPrivate("htmlElement");i||(i=this._makeHTMLElement(t),this.autoResize||this.resize()),i.innerHTML!=e&&(i.innerHTML=e)}_removeHTMLContent(t){const e=t.getPrivate("htmlElementWrapper"),i=t.getPrivate("htmlElement");e?(this._htmlElementContainer.removeChild(e),t.removePrivate("htmlElement"),t.removePrivate("htmlElementWrapper"),t.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),t.removePrivate("htmlElement"),t.removePrivate("wrapperContainer")),c.remove(this._htmlEnabledContainers,t)}}},3409:function(t,e,i){"use strict";i.d(e,{Q:function(){return o}});var s=i(5769),n=i(3540),r=i(5071);class o{constructor(t,e){if(this._rules={},this._root=t,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(t){const e=new this(t,!0);return e.setupDefaultRules(),e}setupDefaultRules(){}_lookupRules(t){return this._rules[t]}ruleRaw(t,e=[]){let i=this._rules[t];i||(i=this._rules[t]=[]),e.sort(n.qu);const{index:o,found:a}=r.getSortedIndex(i,(t=>{const i=n.qu(t.tags.length,e.length);return 0===i?n.wq(t.tags,e,n.qu):i}));if(a)return i[o].template;{const t=s.YS.new({});return i.splice(o,0,{tags:e,template:t}),t}}rule(t,e=[]){return this.ruleRaw(t,e)}}},5108:function(t,e,i){"use strict";i.d(e,{g:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){const t=this.get("sprite");t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}}n.className="Bullet",n.classNames=s.JH.classNames.concat([n.className])},8054:function(t,e,i){"use strict";i.d(e,{z:function(){return o}});var s=i(3497),n=i(8777),r=i(7652);class o extends n.W{_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",s.c.new(this._root,{themeTags:r.mergeTags(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const t=this._prevSettings.icon,e=this.get("icon");e!==t&&(this._disposeProperty("icon"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.icon=e)}if(this.isDirty("label")){const t=this._prevSettings.label,e=this.get("label");e!==t&&(this._disposeProperty("label"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.label=e)}}}o.className="Button",o.classNames=n.W.classNames.concat([o.className])},1337:function(t,e,i){"use strict";i.d(e,{k:function(){return r}});var s=i(8777),n=i(6245);class r extends s.W{constructor(){super(...arguments),this.chartContainer=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,interactiveChildren:!1})),this.bulletsContainer=s.W.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:n.AQ,height:n.AQ})}}r.className="Chart",r.classNames=s.W.classNames.concat([r.className])},8035:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,Math.abs(this.get("radius",10)))}}n.className="Circle",n.classNames=s.T.classNames.concat([n.className])},9361:function(t,e,i){"use strict";i.d(e,{w:function(){return c},z:function(){return l}});var s=i(7582),n=i(6331),r=i(8777),o=i(9582),a=i(5071),h=i(256);class l extends n.Zr{constructor(t,e,i){super(i),this.dataContext=e,this.component=t,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(t){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,t)}hide(t){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,t)}isHidden(){return!this.get("visible")}}class c extends r.W{constructor(){super(...arguments),this._data=new o.k,this._dataItems=[],this._mainDataItems=this._dataItems,this.valueFields=[],this.fields=["id"],this._valuesDirty=!1,this._dataChanged=!1,this._dataGrouped=!1,this.inited=!1}set data(t){t.incrementRef(),this._data.decrementRef(),this._data=t}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((t=>{const e=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===t.type)a.each(e,(t=>{t.dispose()})),e.length=0,this._onDataClear();else if("push"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.push(i),this.processDataItem(i)}else if("setIndex"===t.type){const i=e[t.index],s=this._makeDataItem(t.newValue);i.bullets&&0==i.bullets.length&&(i.bullets=void 0),h.entries(s).forEach((([t,e])=>{i.get(t)!=e&&i.animate({key:t,to:e,duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})})),i.dataContext=t.newValue}else if("insertIndex"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.splice(t.index,0,i),this.processDataItem(i)}else if("removeIndex"===t.type)e[t.index].dispose(),e.splice(t.index,1);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");{const i=e[t.oldIndex];e.splice(t.oldIndex,1),e.splice(t.newIndex,0,i)}}this._afterDataChange()})))}_postUpdateData(){}updateData(t){let e=0;a.each(t,((t,i)=>{const s=this.dataItems[i];if(s){const e=s.dataContext;e&&h.entries(t).forEach((([t,i])=>{e[t]=i}));const i=this._makeDataItem(e);h.entries(i).forEach((([t,e])=>{var i;if(s.get(t)!=e){s.set(t,e);const n=null===(i=this._valueFieldsF[t])||void 0===i?void 0:i.workingKey;n&&s.set(n,e)}}))}else this.data.push(t);e=i}));for(let t=this.dataItems.length-1;t>e;t--){const e=this.dataItems[t];a.remove(this.dataItems,e),e.dispose()}this._postUpdateData()}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},a.each(this.valueFields,(t=>{this.get(t+"Field")&&(this._valueFields.push(t),this._valueFieldsF[t]={fieldKey:t+"Field",workingKey:t+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},a.each(this.fields,(t=>{this.get(t+"Field")&&(this._fields.push(t),this._fieldsF[t]=t+"Field")})))}get dataItems(){return this._dataItems}processDataItem(t){}_makeDataItem(t){const e={};return this._valueFields&&a.each(this._valueFields,(i=>{const s=this.get(this._valueFieldsF[i].fieldKey);e[i]=t[s],e[this._valueFieldsF[i].workingKey]=e[i]})),this._fields&&a.each(this._fields,(i=>{const s=this.get(this._fieldsF[i]);e[i]=t[s]})),e}makeDataItem(t,e){let i=new l(this,e,t);return this.processDataItem(i),i}pushDataItem(t,e){const i=this.makeDataItem(t,e);return this._mainDataItems.push(i),i}disposeDataItem(t){}showDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!0)}))}hideDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const t="datavalidated";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this._dataChanged=!1}if(this._valuesDirty){const t="valueschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.inited=!0}markDirtyValues(t){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}getDataItemById(t){return a.find(this.dataItems,(e=>e.get("id")==t))}}c.className="Component",c.classNames=r.W.classNames.concat([c.className])},2936:function(t,e,i){"use strict";i.d(e,{p:function(){return r}});var s=i(8054),n=i(7652);class r extends s.z{_afterNew(){super._afterNew(),this.addTag("confirm"),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{const e=n.getEventKey(t);this.get("active")&&"Escape"==e&&this._cancel()}))),this._disposers.push(n.addEventListener(document,"click",(()=>{this._ignoreClick||this._cancel(),this._ignoreClick=!1}))),this.events.on("click",(()=>{this.get("active")||(this._ignoreClick=!0),this._confirm()}))}_cancel(){this.get("active")&&(this.events.dispatch("cancelled",{type:"cancelled",target:this}),this.set("active",!1))}_confirm(){this.get("active")&&(this.events.dispatch("confirmed",{type:"confirmed",target:this}),this.set("active",!1),this.isFocus()&&this.setTimeout((()=>{this.set("active",!1),n.blur()}),10))}_prepareChildren(){super._prepareChildren()}}r.className="ConfirmButton",r.classNames=s.z.classNames.concat([r.className])},8777:function(t,e,i){"use strict";i.d(e,{W:function(){return f}});var s=i(7144),n=i(5071);class r extends s.aV{constructor(t){super(),this._disposed=!1,this._container=t,this._events=this.events.onAll((t=>{if("clear"===t.type)n.each(t.oldValues,(t=>{this._onRemoved(t)}));else if("push"===t.type)this._onInserted(t.newValue);else if("setIndex"===t.type)this._onRemoved(t.oldValue),this._onInserted(t.newValue,t.index);else if("insertIndex"===t.type)this._onInserted(t.newValue,t.index);else if("removeIndex"===t.type)this._onRemoved(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");this._onRemoved(t.value),this._onInserted(t.value,t.newIndex)}}))}_onInserted(t,e){t._setParent(this._container,!0);const i=this._container._childrenDisplay;void 0===e?i.addChild(t._display):i.addChildAt(t._display,e)}_onRemoved(t){this._container._childrenDisplay.removeChild(t._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),n.each(this.values,(t=>{t.dispose()})))}}var o=i(6245),a=i(4596),h=i(7142),l=i(4431),c=i(1706),u=i(6881),d=i(2132),p=i(5040),g=i(7652);class f extends a.j{constructor(){super(...arguments),this._display=this._root._renderer.makeContainer(),this._childrenDisplay=this._root._renderer.makeContainer(),this.children=new r(this),this._percentageSizeChildren=[],this._percentagePositionChildren=[],this._prevWidth=0,this._prevHeight=0,this._contentWidth=0,this._contentHeight=0,this._childrenPrep=!1,this._childrenUpdt=!1}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){n.eachReverse(this.allChildren(),(t=>{t.dispose()})),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_beforeChanged(){this._childrenPrep||this._prepareChildren(),this._childrenUpdt||this._updateChildren(),super._beforeChanged()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each((t=>{t.removePrivate("x"),t.removePrivate("y")}))),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each((t=>{t.markDirtyPosition()})),this.isDirty("maskContent")){const t=this._childrenDisplay;let e=this._contentMask;this.get("maskContent")?e||(e=h.A.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=e,t.addChildAt(e._display,0),t.mask=e._display):e&&(t.removeChild(e._display),t.mask=null,e.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),n.each(this._percentageSizeChildren,(t=>{t._updateSize()})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t._updateSize()})),this.updateBackground()}updateBackground(){const t=this.get("background");let e=this._localBounds;if(e&&!this.isHidden()){let i=e.left,s=e.top,n=e.right-i,r=e.bottom-s,o=this.get("maxWidth"),a=this.get("maxHeight");a&&r>a&&(r=a),o&&n>o&&(n=o);let h=this.width(),l=this.height();t&&(t.setAll({width:n,height:r,x:i,y:s}),this._display.interactive&&(t._display.interactive=!0));const c=this._contentMask;c&&c.setAll({width:h+1,height:l+1});const u=this.get("verticalScrollbar");if(u){u.set("height",l),u.set("x",h-u.width()-u.get("marginRight",0)),u.set("end",u.get("start",0)+l/this._contentHeight);const t=u.get("background");t&&t.setAll({width:u.width(),height:l});let e=!0;this._contentHeight<=l&&(e=!1),u.setPrivate("visible",e)}}}_applyThemes(t=!1){return!!super._applyThemes(t)&&(this.eachChildren((e=>{e._applyThemes(t)})),!0)}_applyState(t){super._applyState(t),this.get("setStateOnChildren")&&this.eachChildren((e=>{e.states.apply(t)}))}_applyStateAnimated(t,e){super._applyStateAnimated(t,e),this.get("setStateOnChildren")&&this.eachChildren((i=>{i.states.applyAnimate(t,e)}))}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let t=this._localBounds;t&&(this._contentWidth=t.right-t.left,this._contentHeight=t.bottom-t.top)}else{let t=this.get("width"),e=this.get("height"),i=this.getPrivate("width"),s=this.getPrivate("height"),n={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),o=!1,a=!1;if((r instanceof l.G||r instanceof u.M)&&(o=!0),r instanceof c.Z&&(a=!0),null==t&&null==i||null==e&&null==s||this.get("verticalScrollbar")){let t=Number.MAX_VALUE,e=t,i=-t,s=t,r=-t;const h=this.get("paddingLeft",0),l=this.get("paddingTop",0),c=this.get("paddingRight",0),u=this.get("paddingBottom",0);this.children.each((t=>{if("absolute"!=t.get("position")&&t.get("isMeasured")){let n=t.adjustedLocalBounds(),h=t.x(),l=t.y(),c=h+n.left,u=h+n.right,d=l+n.top,p=l+n.bottom;o&&(c-=t.get("marginLeft",0),u+=t.get("marginRight",0)),a&&(d-=t.get("marginTop",0),p+=t.get("marginBottom",0)),ci&&(i=u),dr&&(r=p)}})),e==t&&(e=0),i==-t&&(i=0),s==t&&(s=0),r==-t&&(r=0),n.left=e-h,n.top=s-l,n.right=i+c,n.bottom=r+u;const d=this.get("minWidth");p.isNumber(d)&&d>0&&n.right-n.left=d?n.left=n.right-d:n.right=n.left+d);const g=this.get("minHeight");p.isNumber(g)&&g>0&&n.bottom-n.top=g?n.top=n.bottom-g:n.bottom=n.top+g)}this._contentWidth=n.right-n.left,this._contentHeight=n.bottom-n.top,p.isNumber(t)&&(n.left=0,n.right=t),p.isNumber(i)&&(n.left=0,n.right=i),p.isNumber(e)&&(n.top=0,n.bottom=e),p.isNumber(s)&&(n.top=0,n.bottom=s),this._localBounds=n}}_updateBounds(){const t=this.get("layout");t&&t.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){this._childrenPrep=!0;const t=this.innerWidth(),e=this.innerHeight();if(t!=this._prevWidth||e!=this._prevHeight){let i=this.get("layout"),s=!1,r=!1;i&&((i instanceof l.G||i instanceof u.M)&&(s=!0),i instanceof c.Z&&(r=!0)),n.each(this._percentageSizeChildren,(i=>{if(!s){let e=i.get("width");e instanceof o.gG&&i.setPrivate("width",e.value*t)}if(!r){let t=i.get("height");t instanceof o.gG&&i.setPrivate("height",t.value*e)}})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t.markDirtyBounds()})),this._prevWidth=t,this._prevHeight=e,this._sizeDirty=!0,this.updateBackground()}}_updateHTMLContent(){const t=this.get("html","");t&&""!==t?this._root._setHTMLContent(this,(0,d.q)(this,t)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(t){const e=this.get("verticalScrollbar");if(e){let i=t.y(),s=this.innerHeight(),n=t.height(),r=this._contentHeight,o=1-(s-n/2)/r;if(i+.7*n+this._childrenDisplay.y>s||i-.3*n+this._childrenDisplay.y<0){let t=Math.max(0,Math.min(o,(i-n/2)/r));e.animate({key:"start",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")})}}}_updateChildren(){if(this._childrenUpdt=!0,this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){const t=this.get("verticalScrollbar");if(t){t._setParent(this),t.startGrip.setPrivate("visible",!1),t.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",t.width()+t.get("marginRight",0)+t.get("marginLeft",0));let e=this.get("background");e||(e=this.set("background",h.A.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",(e=>{const i=e.originalEvent;if(!g.isLocalEvent(i,this))return;i.preventDefault();let s=i.deltaY/5e3;const n=t.get("start",0),r=t.get("end",1);n+s<=0&&(s=-n),r+s>=1&&(s=1-r),n+s>=0&&r+s<=1&&(t.set("start",n+s),t.set("end",r+s))})),this._disposers.push(this._vsbd0),this._vsbd1=t.events.on("rangechanged",(()=>{let e=this._contentHeight;const i=this._childrenDisplay,s=this._contentMask;i.y=-t.get("start",0)*e,i.markDirtyLayer(),s&&(s._display.y=-i.y,i.mask=s._display)})),this._disposers.push(this._vsbd1),this._display.addChild(t._display)}else{const t=this._prevSettings.verticalScrollbar;t&&(this._display.removeChild(t._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose(),this._childrenDisplay.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0))}}if(this.isDirty("background")){const t=this._prevSettings.background;t&&this._display.removeChild(t._display);const e=this.get("background");e instanceof a.j&&(e.set("isMeasured",!1),e._setParent(this),this._display.addChildAt(e._display,0))}if(this.isDirty("mask")){const t=this.get("mask"),e=this._prevSettings.mask;if(e&&(this._display.removeChild(e._display),e!=t&&e.dispose()),t){const e=t.parent;e&&e.children.removeValue(t),t._setParent(this),this._display.addChildAt(t._display,0),this._childrenDisplay.mask=t._display}}}_processTemplateField(){super._processTemplateField(),this.children.each((t=>{t._processTemplateField()}))}walkChildren(t){this.children.each(((e,i)=>{e instanceof f&&e.walkChildren(t),t(e,i)}))}eachChildren(t){const e=this.get("background");e&&t(e);const i=this.get("verticalScrollbar");i&&t(i);const s=this.get("mask");s&&t(s),this.children.values.forEach((e=>{t(e)}))}allChildren(){const t=[];return this.eachChildren((e=>{t.push(e)})),t}_setDataItem(t){const e=t!==this._dataItem;super._setDataItem(t);const i=this.get("html","");i&&""!==i&&e&&this._root._setHTMLContent(this,(0,d.q)(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}}f.className="Container",f.classNames=a.j.classNames.concat([f.className])},6691:function(t,e,i){"use strict";i.d(e,{Y:function(){return d}});var s=i(962),n=i(8777),r=i(3497),o=i(6245),a=i(1112),h=i(7449),l=i(7652),c=i(5040),u=i(5071);class d extends s._{_afterNew(){super._afterNew();const t=this.children.push(n.W.new(this._root,{html:'',isMeasured:!1}));t.hide(),this.setPrivate("input",t);let e=this.get("background");e?e.set("themeTags",["editablelabel","background"]):e=this.set("background",r.c.new(this._root,{themeTags:["editablelabel","background"]}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();const t=this.get("editOn","click");"none"!=t&&(this._editOnEvents=new h.FV([this.getPrivate("input").events.on(t,(t=>{})),this.events.on(t,(t=>{this.set("active",!0)}))]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){const t=this.get("active",!1);t?this._startEditing():this._stopEditing();const e=this.get("background");e&&e.set("active",t)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){const t=this.getPrivate("input");if(t&&t.getPrivate("htmlElement")){const e=t.getPrivate("htmlElement").querySelector(".am5-editable-label");e&&(this.setPrivate("textarea",e),e.addEventListener("input",(t=>{!1===this.get("multiLine")&&(e.value=e.value.replace(/\n/g," ")),this.set("text",e.value),this._syncStyle()})),e.addEventListener("blur",(t=>this.set("active",!1))),l.supports("keyboardevents")&&this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Escape"==l.getEventKey(t)&&this.set("active",!1)}))),this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Enter"==l.getEventKey(t)&&!1===this.get("multiLine")&&(t.preventDefault(),this.set("active",!1))}))),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._startEditing()}));this._text.set("opacity",0);const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(""==this.get("text","")&&this.set("text"," "),t.show(0),this.setTimeout((()=>{this._syncStyle(),e.focus()}),100))}_stopEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._stopEditing()}));const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(this.set("text",e.value),t.hide(0),this._text.set("opacity",1))}_syncStyle(){const t=this.getPrivate("input"),e=this.getPrivate("textarea"),i=t.getPrivate("htmlElement");if(e&&i){const t=window.getComputedStyle(e);u.each(t,(t=>{e.style[t]="initial"})),e.style.color=this.get("fill",(0,a.$_)(0)).toCSS(this.get("fillOpacity",1)),e.style.backgroundColor="rgba(0, 0, 0, 0)",e.style.border="none",e.style.outline="none",e.style.padding="0",e.wrap="off",e.style.resize="none",e.style.overflow="hidden";const s=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);s>0?e.style.maxWidth=s+"px":e.style.minWidth="",e.style.height="auto",e.style.minHeight=e.scrollHeight+"px",this.get("width")&&(e.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",e.style.minWidth="");const n=this.get("lineHeight");n?n instanceof o.gG?e.style.lineHeight=n.value+"":c.isNumber(n)&&(e.style.lineHeight=n+""):e.style.lineHeight="1.2";let r=this.get("fontFamily");r||(r=getComputedStyle(i,"font-family").getPropertyValue("font-family")),e.style.fontFamily=r;let h=this.get("fontSize");h?c.isNumber(h)&&(h+="px"):h=getComputedStyle(i,"font-size").getPropertyValue("font-size"),e.style.fontSize=h;let l=this.get("fontWeight");l||(l=getComputedStyle(i,"font-weight").getPropertyValue("font-weight")),e.style.fontWeight=l;let d=this.get("fontStyle");d||(d=getComputedStyle(i,"font-style").getPropertyValue("font-style")),e.style.fontStyle=d;const p=this.get("oversizedBehavior");e.style.whiteSpace="wrap"==p?"pre-wrap":"nowrap",this._root.events.on("frameended",(()=>{""==e.style.minWidth&&(e.style.minWidth=e.scrollWidth+20+"px");const t=this.get("textAlign","start");"center"==t?(e.style.textAlign="center",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-50%)")):"end"==t?(e.style.textAlign="right",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-100%)")):e.style.textAlign=t}))}}_syncText(){const t=this.getPrivate("textarea");let e=this.get("text","");" "==e&&(e=""),t&&(t.value=e)}}d.className="EditableLabel",d.classNames=s._.classNames.concat([d.className])},2433:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radiusX")||this.isDirty("radiusY")||this.isDirty("rotation"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawEllipse(0,0,Math.abs(this.get("radiusX")),Math.abs(this.get("radiusY")))}}n.className="Ellipse",n.classNames=s.T.classNames.concat([n.className])},1479:function(t,e,i){"use strict";i.d(e,{T:function(){return l},u:function(){return h}});var s=i(4429),n=i(4596),r=i(4680),o=i(5040),a=i(5071);const h=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"];class l extends n.j{constructor(){super(...arguments),this._display=this._root._renderer.makeGraphics(),this._clear=!1}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const t=this.get("fillGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("fill")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("fill")}))))}}if(this.isDirty("strokeGradient")){const t=this.get("strokeGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("stroke")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("stroke")}))))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let t=this.get("strokeDasharray");o.isNumber(t)&&(t=t<.5?[0]:[t]),this._display.setLineDash(t);const e=this.get("strokeDashoffset");e&&this._display.setLineDashOffset(e);const i=this.get("blendMode",r.b.NORMAL);this._display.blendMode=i;const s=this.get("draw");s&&"function"==typeof s&&s(this._display,this);const n=this.get("svgPath");null!=n&&this._display.svgPath(n)}}_afterChanged(){if(super._afterChanged(),this._clear){const t=this.get("fill"),e=this.get("fillGradient"),i=this.get("fillPattern"),n=this.get("fillOpacity"),r=this.get("stroke"),o=this.get("strokeGradient"),h=this.get("strokePattern"),l=this.get("shadowColor"),c=this.get("shadowBlur"),u=this.get("shadowOffsetX"),d=this.get("shadowOffsetY"),p=this.get("shadowOpacity");if(l&&(c||u||d)&&this._display.shadow(l,c,u,d,p),t&&!e&&(this._display.beginFill(t,n),this._display.endFill()),e){if(t){const i=e.get("stops",[]);i.length&&a.each(i,(e=>{e.color&&!e.colorInherited||!t||(e.color=t,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=n,e.opacityInherited=!0)}))}const i=e.getFill(this);i&&(this._display.beginFill(i,n),this._display.endFill())}if(i){const t=i.pattern;t&&(this._display.beginFill(t,n),this._display.endFill(),i instanceof s.v&&i.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}if(r||o||h){const t=this.get("strokeOpacity");let e=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(e/=this.get("scale",1)),this.get("crisp")&&(e/=this._root._renderer.resolution);const i=this.get("lineJoin"),n=this.get("lineCap");if(r&&!o&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke()),o){const s=o.get("stops",[]);s.length&&a.each(s,(e=>{e.color&&!e.colorInherited||!r||(e.color=r,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=t,e.opacityInherited=!0)}));const h=o.getFill(this);h&&(this._display.lineStyle(e,h,t,i,n),this._display.endStroke())}if(h){let r=h.pattern;r&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke(),h instanceof s.v&&h.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}l.className="Graphics",l.classNames=n.j.classNames.concat([l.className])},6881:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var s=i(2010),n=i(5071),r=i(751);class o extends s.A{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(t){let e=t.get("paddingLeft",0),i=t.get("paddingRight",0),n=t.get("paddingTop",0),o=t.maxWidth()-e-i,a=o,h=1;(0,s.j)(t,(t=>{if(t.get("visible")&&t.getPrivate("visible")&&!t.get("forceHidden")&&"absolute"!=t.get("position")){let e=t.width();eh&&(h=e)}})),a=r.fitToRange(a,1,o),h=r.fitToRange(h,1,o);let l=1;l=this.get("fixedWidthGrid")?o/h:o/a,l=Math.max(1,Math.floor(l)),l=Math.min(this.get("maxColumns",Number.MAX_VALUE),l);let c=this.getColumnWidths(t,l,h,o),u=n,d=0,p=0;l=c.length;let g=e;(0,s.j)(t,(t=>{if("relative"==t.get("position")&&t.isVisible()){const i=t.get("marginTop",0),s=t.get("marginBottom",0);let n=t.adjustedLocalBounds(),r=t.get("marginLeft",0),o=t.get("marginRight",0),a=g+r-n.left,h=u+i-n.top;t.setPrivate("x",a),t.setPrivate("y",h),g+=c[d]+o,p=Math.max(p,t.height()+i+s),d++,d>=l&&(d=0,g=e,u+=p,p=0)}}))}getColumnWidths(t,e,i,r){let o=0,a=[],h=0;return(0,s.j)(t,(s=>{let n=s.adjustedLocalBounds();"absolute"!=s.get("position")&&s.isVisible()&&(this.get("fixedWidthGrid")?a[h]=i:a[h]=Math.max(0|a[h],n.right-n.left+s.get("marginLeft",0)+s.get("marginRight",0)),h{o+=t})),o>r?e>2?(e-=1,this.getColumnWidths(t,e,i,r)):[r]:a}}o.className="GridLayout",o.classNames=s.A.classNames.concat([o.className])},4431:function(t,e,i){"use strict";i.d(e,{G:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingLeft",0),i=t.innerWidth(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minWidth",t.getPrivate("minWidth",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.width()),i-=e+t.get("marginLeft",0)+t.get("marginRight",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginLeft",0)-t.get("marginRight",0),n=t.get("minWidth",t.getPrivate("minWidth",-1/0)),r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("width",s)}else t._prevSettings.width instanceof r.gG&&t.setPrivate("width",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginLeft",0),s=t.get("marginRight",0),n=t.get("maxWidth"),r=e.left,o=e.right;n&&o-r>n&&(o=r+n);let h=a+i-r;t.setPrivate("x",h),a=h+o+s}else t.setPrivate("x",void 0)}))}}o.className="HorizontalLayout",o.classNames=s.A.classNames.concat([o.className])},962:function(t,e,i){"use strict";i.d(e,{_:function(){return h}});var s=i(2036),n=i(6245),r=i(8777),o=i(5071),a=i(5040);class h extends r.W{constructor(){super(...arguments),this._textKeys=["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),o.each(this._textKeys,(t=>{const e=this.get(t);null!=e&&this._text.set(t,e)})),""!==this.get("html","")&&this._text.set("text",""),this.onPrivate("maxWidth",(()=>{this._setMaxDimentions()})),this.onPrivate("maxHeight",(()=>{this._setMaxDimentions()}))}_makeText(){this._text=this.children.push(s.x.new(this._root,{}))}_updateChildren(){super._updateChildren();const t=this._text;if(o.each(this._textKeys,(t=>{this._text.set(t,this.get(t))})),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),""!==this.get("html","")?t.set("text",""):(t.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){const e=this.get("textAlign");let i;null!=this.get("width")?i="right"==e?n.AQ:"center"==e?n.CI:0:"left"==e||"start"==e?i=this.get("paddingLeft",0):"right"!=e&&"end"!=e||(i=-this.get("paddingRight",0)),t.set("x",i)}const e=this.get("background");e&&e.setPrivate("visible",t._display.textVisible)}_maybeUpdateHTMLColor(){const t=this.getPrivate("htmlElement");t&&this.get("fill")&&(t.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){const t=this.get("rotation"),e=90==t||270==t||-90==t,i=this._text,s=this.get("maxWidth",this.getPrivate("maxWidth",1/0));a.isNumber(s)?i.set(e?"maxHeight":"maxWidth",s-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(e?"maxHeight":"maxWidth",void 0);const n=this.get("maxHeight",this.getPrivate("maxHeight",1/0));a.isNumber(n)?i.set(e?"maxWidth":"maxHeight",n-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(e?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",(()=>{i.markDirtyBounds()}))}_setDataItem(t){super._setDataItem(t),this._markDirtyKey("text"),this._markDirtyKey("html");const e=this._text;e.get("populateText")&&e.markDirtyText();const i=this.get("html");i&&""!==i&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}}h.className="Label",h.classNames=r.W.classNames.concat([h.className])},2010:function(t,e,i){"use strict";i.d(e,{A:function(){return r},j:function(){return n}});var s=i(6331);function n(t,e){t.get("reverseChildren",!1)?t.children.eachReverse(e):t.children.each(e)}class r extends s.JH{}r.className="Layout",r.classNames=s.JH.classNames.concat([r.className])},3105:function(t,e,i){"use strict";i.d(e,{D:function(){return c}});var s=i(3399),n=i(8777),r=i(962),o=i(3497),a=i(5769),h=i(7144),l=i(7652);class c extends s.F{constructor(){super(...arguments),this.itemContainers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:o.c.new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template])))),this.markers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template])))),this.labels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template])))),this.valueLabels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template])))),this.markerRectangles=this.addDisposer(new h.o(a.YS.new({}),(()=>o.c._new(this._root,{themeTags:l.mergeTags(this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template]))))}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(t){const e=this.children.push(this.itemContainers.make());return e._setDataItem(t),this.itemContainers.push(e),e.states.create("disabled",{}),e}makeMarker(){const t=this.markers.make();return this.markers.push(t),t.states.create("disabled",{}),t}makeLabel(){const t=this.labels.make();return t.states.create("disabled",{}),t}makeValueLabel(){const t=this.valueLabels.make();return t.states.create("disabled",{}),t}makeMarkerRectangle(){const t=this.markerRectangles.make();return t.states.create("disabled",{}),t}processDataItem(t){super.processDataItem(t);const e=this.makeItemContainer(t),i=this.get("nameField"),s=this.get("fillField"),n=this.get("strokeField");if(e){const r=this.get("clickTarget","itemContainer"),o=t.dataContext;o&&o.set&&o.set("legendDataItem",t),e._setDataItem(t),t.set("itemContainer",e);const a=this.makeMarker();if(a){e.children.push(a),a._setDataItem(t),t.set("marker",a);const i=this.get("useDefaultMarker"),r=a.children.push(this.makeMarkerRectangle());let h=t.get("fill"),l=t.get("stroke");t.set("markerRectangle",r),o&&o.get&&(h=o.get(s,h),l=o.get(n,l)),l||(l=h),i?o.on&&(o.on(s,(()=>{r.set("fill",o.get(s))})),o.on(n,(()=>{r.set("stroke",o.get(n))}))):o&&o.createLegendMarker&&o.createLegendMarker(),r.setAll({fill:h,stroke:l});const c=o.component;c&&c.updateLegendMarker&&c.updateLegendMarker(o)}const h=this.makeLabel();if(h){e.children.push(h),h._setDataItem(t),t.set("label",h),h.text.on("text",(()=>{e.setRaw("ariaLabel",h.text._getText()+("none"!==this.get("clickTarget")?"; "+this._t("Press ENTER to toggle"):"")),e.markDirtyAccessibility()})),o&&o.get&&t.set("name",o.get(i));let s=t.get("name");s&&h.set("text",s)}const l=this.makeValueLabel();if(l&&(e.children.push(l),l._setDataItem(t),t.set("valueLabel",l)),o&&o.show&&(o.on("visible",(t=>{e.set("disabled",!t)})),o.get("visible")||e.set("disabled",!0),"none"!=r)){let i=e;"marker"==r&&(i=a),this._addClickEvents(i,o,t)}this.children.values.sort(((t,e)=>{const i=t.dataItem.dataContext,s=e.dataItem.dataContext;if(i&&s){const t=this.data.indexOf(i),e=this.data.indexOf(s);if(t>e)return 1;if(t{const t=e.component;t&&t.hoverDataItem&&t.hoverDataItem(e)})),t.events.on("pointerout",(()=>{const t=e.component;t&&t.hoverDataItem&&t.unhoverDataItem(e)})),t.events.on("click",(()=>{const s=i.get("label").text._getText();e.show&&e.isHidden&&(e.isHidden()||!1===e.get("visible"))?(e.show(),t.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,s))):e.hide&&(e.hide(),t.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,s)))}))}disposeDataItem(t){super.disposeDataItem(t);const e=t.dataContext;e&&e.get&&e.get("legendDataItem")==t&&e.set("legendDataItem",void 0);let i=t.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let s=t.get("marker");s&&(this.markers.removeValue(s),s.dispose());let n=t.get("markerRectangle");n&&(this.markerRectangles.removeValue(n),n.dispose());let r=t.get("label");r&&(this.labels.removeValue(r),r.dispose());let o=t.get("valueLabel");o&&(this.valueLabels.removeValue(o),o.dispose())}}c.className="Legend",c.classNames=s.F.classNames.concat([c.className])},2077:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var s=i(1479);function n(t,e){for(let i=0,s=e.length;i0){let e=s[0];if(e.length>0){let i=e[0];t.moveTo(i.x,i.y);for(let e=0,i=s.length;e0){let e=t[0];this._display.moveTo(e.x,e.y),n(this._display,[[t]])}else if(e)n(this._display,e);else if(!this.get("draw")){let t=this.width(),e=this.height();this._display.moveTo(0,0),this._display.lineTo(t,e)}}}}o.className="Line",o.classNames=s.T.classNames.concat([o.className])},5812:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var s=i(8777),n=i(941),r=i(6387),o=i(751);class a extends s.W{constructor(){super(...arguments),this.line=this.children.push(r.P.new(this._root,{themeTags:["line"]})),this.hitLine=this.children.push(r.P.new(this._root,{themeTags:["hit"]})),this.startArrow=this.children.push(n.C.new(this._root,{themeTags:["start","arrow"]})),this.endArrow=this.children.push(n.C.new(this._root,{themeTags:["end","arrow"]}))}_afterNew(){this.addTag("link"),super._afterNew()}_updateChildren(){if(super._updateChildren(),this.isDirty("points")){let t=r.P.makeOrthogonal(this.get("points",[]));this.line.set("points",t),this.hitLine.set("points",t);const e=this.startArrow,i=this.endArrow,s=t.length;if(s>1){const[n,r]=t;e.setAll({x:n.x,y:n.y,rotation:o.getAngle(n,r)-90});const a=t[s-1],h=t[s-2];i.setAll({x:a.x,y:a.y,rotation:o.getAngle(h,a)+90})}else if(1===s){const[s]=t;e.setAll({x:s.x,y:s.y,rotation:0}),i.setAll({x:s.x,y:s.y,rotation:0})}}}}a.className="Link",a.classNames=s.W.classNames.concat([a.className])},8289:function(t,e,i){"use strict";i.d(e,{G:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){return function(e){return new s(e,t)}}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(s+a,n+a*e,r-a,o-a*i,r,o)}},5892:function(t,e,i){"use strict";i.d(e,{$:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){[t,e]=[e,t];let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){function e(e){return new s(e,t)}return e.tension=function(t){return n(+t)},e}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(n+a*e,s+a,o-a*i,r-a,o,r)}},7049:function(t,e,i){"use strict";i.d(e,{l:function(){return h}});var s=i(8777),n=i(6691),r=i(7142),o=i(941),a=i(1112);class h extends s.W{constructor(){super(...arguments),this.label=this.children.push(n.Y.new(this._root,{})),this.buttonsContainer=this.children.push(s.W.new(this._root,{themeTags:["buttons"]})),this.upButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["upbutton"]})),this.downButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["downbutton"]}))}_afterNew(){this.addTag("numericstepper"),this.set("layout",this._root.horizontalLayout),this.label.adapters.add("text",(t=>(t&&t.replace(/\D/g,""),""===t&&(t="0"),t))),this.set("background",r.A.new(this._root,{fillOpacity:0,fill:(0,a.$_)(16777215)})),this.buttonsContainer.states.create("hidden",{opacity:0,visible:!0}),this.events.on("pointerover",(()=>{this.buttonsContainer.set("active",!0)})),this.events.on("pointerout",(()=>{this.buttonsContainer.set("active",!1)})),this.label.on("text",(t=>{if(t){const e=parseFloat(t);isNaN(e)||this.set("value",e)}})),this.upButton.events.on("click",(()=>{this.set("value",this.get("value",0)+1)})),this.downButton.events.on("click",(()=>{this.set("value",Math.max(0,this.get("value",0)-1))})),super._afterNew()}_updateChildren(){super._updateChildren();const t=this.get("value",0),e=this.label;if(this.isDirty("value")&&e.set("text",t.toString()),this.isDirty("disabled")){const t=this.get("disabled",!1);this.set("interactive",!t),this.upButton.set("interactive",!t),this.downButton.set("interactive",!t),t?(this.label.set("editOn","none"),this.buttonsContainer.hide(0)):(this.label.set("editOn","click"),this.buttonsContainer.show(0))}}}h.className="NumericStepper",h.classNames=s.W.classNames.concat([h.className])},6387:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),this.isDirty("points")&&(this._clear=!0)}static makeOrthogonal(t){if(t.length>1){const e=[];for(let i=0;i0&&o&&l){if(h){s=Math.min(s,Math.abs(r.x-o.x)/2,Math.abs(r.y-n.y)/2);const e=Math.sign(r.y-n.y);t.lineTo(r.x,r.y-s*e);const i=o.x{this._display.image=e,this._updateSize(),!i.isDisposed()&&i.isEnabled("loaded")&&i.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{!i.isDisposed()&&i.isEnabled("loaderror")&&i.dispatch("loaderror",{type:"loaderror",target:this})}))}}_updateSize(){super._updateSize();const t=this._display.image;if(t){let e=this.getPrivate("width",this.get("width")),i=this.getPrivate("height",this.get("height"));const s=t.width&&t.height?t.width/t.height:0;n.isNumber(e)&&n.isNumber(i)?(this._display.width=e,this._display.height=i):n.isNumber(e)&&s?i=e/s:n.isNumber(i)&&s?e=i*s:(e=t.width,i=t.height),n.isNumber(e)&&(this._display.width=e),n.isNumber(i)&&(this._display.height=i),this.markDirtyBounds(),this.markDirty()}}}r.className="Picture",r.classNames=s.j.classNames.concat([r.className])},8931:function(t,e,i){"use strict";i.d(e,{i:function(){return r}});var s=i(1479),n=i(751);class r extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let t=this.width(),e=this.height();if(t>0&&e>0){let i=this.get("cornerRadius",8);i=n.fitToRange(i,0,Math.min(t/2,e/2));let s=this.get("pointerX",0),r=this.get("pointerY",0),o=this.get("pointerBaseWidth",15)/2,a=0,h=0,l=0,c=(s-a)*(e-h)-(r-h)*(t-a),u=(s-l)*(0-e)-(r-e)*(t-l);const d=this._display;if(d.moveTo(i,0),c>0&&u>0){let e=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,-1/0,0),d.lineTo(e-o,0),d.lineTo(s,r),d.lineTo(e+o,0)}if(d.lineTo(t-i,0),d.arcTo(t,0,t,i,i),c>0&&u<0){let a=Math.round(n.fitToRange(r,i+o,e-o-i));s=n.fitToRange(s,t,1/0),d.lineTo(t,i),d.lineTo(t,Math.max(a-o,i)),d.lineTo(s,r),d.lineTo(t,a+o)}if(d.lineTo(t,e-i),d.arcTo(t,e,t-i,e,i),c<0&&u<0){let a=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,e,1/0),d.lineTo(t-i,e),d.lineTo(a+o,e),d.lineTo(s,r),d.lineTo(a-o,e)}if(d.lineTo(i,e),d.arcTo(0,e,0,e-i,i),c<0&&u>0){let t=Math.round(n.fitToRange(r,i+o,e-i-o));s=n.fitToRange(s,-1/0,0),d.lineTo(0,e-i),d.lineTo(0,t+o),d.lineTo(s,r),d.lineTo(0,Math.max(t-o,i))}d.lineTo(0,i),d.arcTo(0,0,i,0,i),d.closePath()}}}}r.className="PointedRectangle",r.classNames=s.T.classNames.concat([r.className])},7770:function(t,e,i){"use strict";i.d(e,{m:function(){return r}});var s=i(1479),n=i(5071);class r extends s.T{_beforeChanged(){if(super._beforeChanged(),this.isDirty("coordinates")){const t=[],e=this.get("coordinates");e&&n.each(e,(e=>{t.push({x:e[0],y:e[1]})})),this.set("points",t)}if(this.isPrivateDirty("points")&&(this._clear=!0),this.isDirty("points")){this._clear=!0;const t=this.get("points"),e=this._prevSettings.points;if(e){if(t){let i=n.copy(t),s=n.copy(e),r=i.length,o=s.length;if(r>o){let t=n.copy(i);for(let e=0;er){let t=n.copy(s);for(let e=0;e{this._markDirtyPrivateKey("morphProgress")}))}}else this.setPrivateRaw("previousPoints",t),this.setPrivateRaw("points",t);let i=1/0,s=-1/0,r=1/0,o=-1/0;if(t)for(let e=1,n=t.length;e{this.label.markDirtyKey("text")}))}}}l.className="ProgressPie",l.classNames=n.W.classNames.concat([l.className])},815:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(6245),n=i(962),r=i(4244),o=i(751),a=i(7652);class h extends n._{constructor(){super(...arguments),this._flipped=!1}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(r.f.new(this._root,{}))}baseRadius(){const t=this.getPrivate("radius",0),e=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return e+a.relativeToValue(i,t-e)}radius(){const t=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(t?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){const t=this.get("textType","adjusted"),e=this.get("inside",!1),i=this.get("orientation");let n=o.normalizeAngle(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",e);const r=o.sin(n),a=o.cos(n);let h=this.baseRadius(),l=this.radius();if(this._display.angle=0,"circular"==t)this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",l);else{0==h&&(n=0,l=0);let e=l*a,o=l*r;"radial"==t?(this.setRaw("x",e),this.setRaw("y",o),n<90||n>270||"auto"!=i?(this._display.angle=n,this._flipped=!1):(this._display.angle=n+180,this._flipped=!0),this._dirty.rotation=!1):"adjusted"==t?(this.setRaw("centerX",s.CI),this.setRaw("centerY",s.CI),this.setRaw("x",e),this.setRaw("y",o)):"regular"==t&&(this.setRaw("x",e),this.setRaw("y",o))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){const t=this.get("textType","regular"),e=this.get("inside",!1);let i=0,n=0,r=this.get("labelAngle",0),a=this.localBounds(),h=a.right-a.left,l=a.bottom-a.top;if("radial"==t){if(this._flipped){let t=this.get("centerX");t instanceof s.gG&&(h*=1-2*t.value),i=h*o.cos(r),n=h*o.sin(r)}}else e||"adjusted"!=t||(i=h/2*o.cos(r),n=l/2*o.sin(r));this.setRaw("dx",i),this.setRaw("dy",n),super._updatePosition()}get text(){return this._text}}h.className="RadialLabel",h.classNames=n._.classNames.concat([h.className])},4244:function(t,e,i){"use strict";i.d(e,{f:function(){return r}});var s=i(2036),n=i(751);class r extends s.x{constructor(){super(...arguments),this._display=this._root._renderer.makeRadialText("",this.textStyle)}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*n.RADIANS,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}r.className="RadialText",r.classNames=s.x.classNames.concat([r.className])},7142:function(t,e,i){"use strict";i.d(e,{A:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let t=this.width(),e=this.height(),i=0,s=0,n=t/Math.abs(t),r=e/Math.abs(e);if(this.get("containStroke",!1)){const o=this.get("strokeWidth",0);t-=o*n,e-=o*r,i+=o/2*n,s+=o/2*r}this._display.drawRect(i,s,t,e)}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Rectangle",n.classNames=s.T.classNames.concat([n.className])},3497:function(t,e,i){"use strict";i.d(e,{c:function(){return a}});var s=i(5040),n=i(751),r=i(7652),o=i(7142);class a extends o.A{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let t=this.width(),e=this.height(),i=t/Math.abs(t),o=e/Math.abs(e),a=0,h=0;const l=this.get("strokeWidth",0);this.get("containStroke",!1)&&(t-=i*l,e-=o*l,a+=i*l/2,h+=o*l/2);let c=t,u=e;if(s.isNumber(c)&&s.isNumber(u)){let t=Math.min(c,u)/2,e=r.relativeToValue(this.get("cornerRadiusTL",8),t),s=r.relativeToValue(this.get("cornerRadiusTR",8),t),l=r.relativeToValue(this.get("cornerRadiusBR",8),t),d=r.relativeToValue(this.get("cornerRadiusBL",8),t),p=Math.min(Math.abs(c/2),Math.abs(u/2));e=n.fitToRange(e,0,p),s=n.fitToRange(s,0,p),l=n.fitToRange(l,0,p),d=n.fitToRange(d,0,p);const g=this._display;g.moveTo(a+e*i,h),g.lineTo(a+c-s*i,h),s>0&&g.arcTo(a+c,h,a+c,h+s*o,s),g.lineTo(a+c,h+u-l*o),l>0&&g.arcTo(a+c,h+u,a+c-l*i,h+u,l),g.lineTo(a+d*i,h+u),d>0&&g.arcTo(a,h+u,a,h+u-d*o,d),g.lineTo(a,h+e*o),e>0&&g.arcTo(a,h,a+e*i,h,e),g.closePath()}}}a.className="RoundedRectangle",a.classNames=o.A.classNames.concat([a.className])},6001:function(t,e,i){"use strict";i.d(e,{L:function(){return l}});var s=i(3497),n=i(8777),r=i(1479),o=i(8054),a=i(5040),h=i(7652);class l extends n.W{constructor(){super(...arguments),this.thumb=this._makeThumb(),this.startGrip=this._makeButton(),this.endGrip=this._makeButton(),this._thumbBusy=!1,this._startDown=!1,this._endDown=!1,this._thumbDown=!1}_addOrientationClass(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=s.c.new(this._root,{themeTags:h.mergeTags(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(o.z.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:r.T.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(s.c.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(t){t&&this._disposers.push(t.events.on("stopped",(()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1})))}_afterNew(){this._addOrientationClass(),super._afterNew();const t=this.startGrip,e=this.endGrip,i=this.thumb,s=this.get("background");s&&this._disposers.push(s.events.on("click",(t=>{this.setPrivateRaw("isBusy",!0);const e=this._display.toLocal(t.point),s=this.width(),n=this.height(),r=this.get("orientation");let o,a,h;o="vertical"==r?(e.y-i.height()/2)/n:(e.x-i.width()/2)/s,"vertical"==r?(a=o*n,h="y"):(a=o*s,h="x");const l=this.get("animationDuration",0);l>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:h,to:a,duration:l,easing:this.get("animationEasing")}))):(this.thumb.set(h,a),this._root.events.once("frameended",(()=>{this.setPrivateRaw("isBusy",!1)})))}))),this._disposers.push(i.events.on("dblclick",(t=>{if(!h.isLocalEvent(t.originalEvent,this))return;const e=this.get("animationDuration",0),i=this.get("animationEasing");this.animate({key:"start",to:0,duration:e,easing:i}),this.animate({key:"end",to:1,duration:e,easing:i})}))),this._disposers.push(t.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"}))),this._disposers.push(e.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"}))),this._disposers.push(i.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0}))),this._disposers.push(t.events.on("globalpointerup",(()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1}))),this._disposers.push(e.events.on("globalpointerup",(()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1}))),this._disposers.push(i.events.on("globalpointerup",(()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1}))),this._disposers.push(t.on("x",(()=>{this._updateThumb()}))),this._disposers.push(e.on("x",(()=>{this._updateThumb()}))),this._disposers.push(t.on("y",(()=>{this._updateThumb()}))),this._disposers.push(e.on("y",(()=>{this._updateThumb()}))),this._disposers.push(i.events.on("positionchanged",(()=>{this._updateGripsByThumb()}))),"vertical"==this.get("orientation")?(t.set("x",0),e.set("x",0),this._disposers.push(i.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()-i.height()),0)))),this._disposers.push(i.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("x",(t=>this.width()/2))),this._disposers.push(e.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0)))),this._disposers.push(e.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0))))):(t.set("y",0),e.set("y",0),this._disposers.push(i.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()-i.width()),0)))),this._disposers.push(i.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("y",(t=>this.height()/2))),this._disposers.push(e.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))),this._disposers.push(e.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){const t="rangechanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){const t="released";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}updateGrips(){const t=this.startGrip,e=this.endGrip,i=this.get("orientation"),s=this.height(),n=this.width();"vertical"==i?(t.set("y",s*this.get("start",0)),e.set("y",s*this.get("end",1))):(t.set("x",n*this.get("start",0)),e.set("x",n*this.get("end",1)));const r=this.getPrivate("positionTextFunction"),o=Math.round(100*this.get("start",0)),a=Math.round(100*this.get("end",0));let h,l;r?(h=r.call(this,this.get("start",0)),l=r.call(this,this.get("end",0))):(h=o+"%",l=a+"%"),t.set("ariaLabel",this._t("From %1",void 0,h)),t.set("ariaValueNow",""+o),t.set("ariaValueText",o+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100"),e.set("ariaLabel",this._t("To %1",void 0,l)),e.set("ariaValueNow",""+a),e.set("ariaValueText",a+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100")}_updateThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip,s=this.height(),n=this.width();let r=e.x(),o=i.x(),h=e.y(),l=i.y(),c=0,u=1;"vertical"==this.get("orientation")?a.isNumber(h)&&a.isNumber(l)&&(this._thumbBusy||t.isDragging()||(t.set("height",l-h),t.set("y",h)),c=h/s,u=l/s):a.isNumber(r)&&a.isNumber(o)&&(this._thumbBusy||t.isDragging()||(t.set("width",o-r),t.set("x",r)),c=r/n,u=o/n),!this.getPrivate("isBusy")||this.get("start")==c&&this.get("end")==u||(this.set("start",c),this.set("end",u));const d=this.getPrivate("positionTextFunction"),p=Math.round(100*this.get("start",0)),g=Math.round(100*this.get("end",0));let f,_;d?(f=d.call(this,this.get("start",0)),_=d.call(this,this.get("end",0))):(f=p+"%",_=g+"%"),t.set("ariaLabel",this._t("From %1 to %2",void 0,f,_)),t.set("ariaValueNow",""+p),t.set("ariaValueText",p+"%")}_updateGripsByThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip;if("vertical"==this.get("orientation")){const s=t.height();e.set("y",t.y()),i.set("y",t.y()+s)}else{const s=t.width();e.set("x",t.x()),i.set("x",t.x()+s)}}}l.className="Scrollbar",l.classNames=n.W.classNames.concat([l.className])},5829:function(t,e,i){"use strict";i.d(e,{j:function(){return h}});var s=i(1337),n=i(8777),r=i(7144),o=i(6245),a=i(5071);class h extends s.k{constructor(){super(...arguments),this.seriesContainer=n.W.new(this._root,{width:o.AQ,height:o.AQ,isMeasured:!1}),this.series=new r.dn}_afterNew(){super._afterNew(),this._disposers.push(this.series);const t=this.seriesContainer.children;this._disposers.push(this.series.events.onAll((e=>{if("clear"===e.type){a.each(e.oldValues,(t=>{this._removeSeries(t)}));const t=this.get("colors");t&&t.reset();const i=this.get("patterns");i&&i.reset()}else if("push"===e.type)t.moveValue(e.newValue),this._processSeries(e.newValue);else if("setIndex"===e.type)t.setIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("insertIndex"===e.type)t.insertIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("removeIndex"===e.type)this._removeSeries(e.oldValue);else if("moveIndex"===e.type)t.moveValue(e.value,e.newIndex),this._processSeries(e.value);else{if("swap"!==e.type)throw new Error("Unknown IListEvent type");{const i=e.a,s=e.b,n=this.series.indexOf(i),r=this.series.indexOf(s);t.moveValue(i,r),t.moveValue(s,n),this.series.each((t=>{this._processSeries(t),t.markDirtyValues()}))}}})))}_processSeries(t){t.chart=this,t._placeBulletsContainer(this)}_removeSeries(t){t._handleRemoved(),t.isDisposed()||(this.seriesContainer.children.removeValue(t),t._removeBulletsContainer())}}h.className="SerialChart",h.classNames=s.k.classNames.concat([h.className])},3399:function(t,e,i){"use strict";i.d(e,{F:function(){return g}});var s=i(7582),n=i(9361),r=i(7144),o=i(1112),a=i(6490),h=i(6245),l=i(8777),c=i(962),u=i(5071),d=i(5040),p=i(1926);class g extends n.w{constructor(){super(...arguments),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1,this._dataProcessed=!1,this._baseSeriesDirty=!1,this.bullets=new r.aV,this.bulletsContainer=l.W.new(this._root,{width:h.AQ,height:h.AQ,position:"absolute"})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll((()=>{this._handleBullets(this.dataItems)})))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let t=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),t)}endIndex(){let t=this.dataItems.length;return Math.max(0,Math.min(this.getPrivate("endIndex",t),t))}_handleBullets(t){u.each(t,(t=>{const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)})),this.markDirtyValues()}_makeBullets(t){this._shouldMakeBullet(t)&&(t.bullets=[],this.bullets.each((e=>{this._makeBullet(t,e)})))}_shouldMakeBullet(t){return!0}_makeBullet(t,e,i){const s=e(this._root,this,t);return s&&(s._index=i,this._makeBulletReal(t,s)),s}_makeBulletReal(t,e){let i=e.get("sprite");i&&(i._setDataItem(t),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),e.series=this,t.bullets.push(e)}addBullet(t,e){t.bullets||(t.bullets=[]),e&&this._makeBulletReal(t,e)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();const t=this.dataItems,e=t.length;let i=this.startIndex(),s=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const t=this.getPrivate("baseValueSeries");t&&this._disposers.push(t.onPrivate("startIndex",(()=>{this._baseSeriesDirty=!0,this.markDirtyValues()})))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,e),this._aggregatesCalculated=!0,0!=i&&(this._psi=void 0))),this._psi==i&&this._pei==s&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===i&&s===e&&this._aggregatesCalculated||this._calculateAggregates(i,s),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let t=this.get("tooltip");t&&(t.hide(0),t.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let t;const e=this.get("legendDataItem");if(e&&(t=e.get("markerRectangle"),t&&this.isVisible())){if(this.isDirty("stroke")){let e=this.get("stroke");t.set("stroke",e)}if(this.isDirty("fill")){let e=this.get("fill");t.set("fill",e)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let i=this.startIndex(),s=this.endIndex();s-1==s.indexOf(t))));const n={},r={},o={},a={},h={},l={},c={},u={},d={};for(let t=0,e=i.length;t{if(0===t){const t=l[x],s=i-t;e.setRaw(_,s),e.setRaw(m,s/t*100)}const n=i-d[x],r=i-l[x];e.setRaw(y,n),e.setRaw(v,n/d[x]*100),e.setRaw(w,r),e.setRaw(b,r/l[x]*100),d[s]=i};for(let t=k;tt&&(a[f]=t),h[f]0&&t--,delete d[f];for(let e=t;e0&&u.each(t,(t=>{const e=t.minValue||this.getPrivate(t.dataField+"Low")||0,i=t.maxValue||this.getPrivate(t.dataField+"High")||0;u.each(t.target._entities,(s=>{const n=s.dataItem.get(t.dataField);if(!d.isNumber(n)){t.neutral&&s.set(t.key,t.neutral);const e=s.states;if(e){const i=e.lookup("default");i&&t.neutral&&i.set(t.key,t.neutral)}if(!t.customFunction)return}if(t.customFunction)t.customFunction.call(this,s,e,i,n);else{let r,l;r=t.logarithmic?(Math.log(n)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E):(n-e)/(i-e),!d.isNumber(n)||d.isNumber(r)&&Math.abs(r)!=1/0||(r=.5),d.isNumber(t.min)?l=t.min+(t.max-t.min)*r:t.min instanceof o.Il?l=o.Il.interpolate(r,t.min,t.max):t.min instanceof h.gG&&(l=(0,a.Wn)(r,t.min,t.max)),s.set(t.key,l);const c=s.states;if(c){const e=c.lookup("default");e&&e.set(t.key,l)}}}))})),this.get("visible")){const t=this.dataItems;let e=t.length,i=this.startIndex(),s=this.endIndex();s0&&i--;for(let e=0;e{this._positionBullet(t);const e=t.get("sprite");t.get("dynamic")&&(e&&(e._markDirtyKey("fill"),e.markDirtySize()),e instanceof l.W&&e.walkChildren((t=>{t._markDirtyKey("fill"),t.markDirtySize(),t instanceof c._&&t.text.markDirtyText()}))),e instanceof c._&&e.get("populateText")&&e.text.markDirtyText()}))}_hideBullets(t){t.bullets&&u.each(t.bullets,(t=>{let e=t.get("sprite");e&&e.setPrivate("visible",!1)}))}_positionBullet(t){}_placeBulletsContainer(t){t.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const t=this.bulletsContainer;t.parent&&t.parent.children.removeValue(t)}disposeDataItem(t){const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.show(e))})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.hide(e))})),yield Promise.all(s)}))}_sequencedShowHide(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(d.isNumber(e)||(e=this.get("interpolationDuration",0)),e>0){const i=this.startIndex(),n=this.endIndex();yield Promise.all(u.map(this.dataItems,((r,o)=>(0,s.mG)(this,void 0,void 0,(function*(){let s=e||0;(on+10)&&(s=0);let a=this.get("sequencedDelay",0)+s/(n-i);yield p.sleep(a*(o-i)),t?yield this.showDataItem(r,s):yield this.hideDataItem(r,s)})))))}else yield Promise.all(u.map(this.dataItems,(e=>t?this.showDataItem(e,0):this.hideDataItem(e,0))))}))}updateLegendValue(t){if(t){const e=t.get("legendDataItem");if(e){const i=e.get("valueLabel");if(i){const e=i.text;let s="";i._setDataItem(t),s=this.get("legendValueText",e.get("text","")),i.set("text",s),e.markDirtyText()}const s=e.get("label");if(s){const e=s.text;let i="";s._setDataItem(t),i=this.get("legendLabelText",e.get("text","")),s.set("text",i),e.markDirtyText()}}}}updateLegendMarker(t){}_onHide(){super._onHide();const t=this.getTooltip();t&&t.hide()}hoverDataItem(t){}unhoverDataItem(t){}_getBase(t){const e=this.dataItems[this.startIndex()];return e?e.get(t):0}}g.className="Series",g.classNames=n.w.classNames.concat([g.className])},5863:function(t,e,i){"use strict";i.d(e,{p:function(){return h}});var s=i(1479),n=i(5040),r=i(6245),o=i(832),a=i(751);class h extends s.T{constructor(){super(...arguments),this.ix=0,this.iy=0,this._generator=(0,o.Z)()}_getTooltipPoint(){let t=this.get("tooltipX"),e=this.get("tooltipY"),i=0,s=0;n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e);let o=this.get("radius",0),a=this.get("innerRadius",0);return o+=this.get("dRadius",0),a+=this.get("dInnerRadius",0),a<0&&(a=o+a),t instanceof r.gG&&(i=this.ix*(a+(o-a)*t.value)),e instanceof r.gG&&(s=this.iy*(a+(o-a)*e.value)),this.get("arc")>=360&&0==a&&(i=0,s=0),{x:i,y:s}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this.get("startAngle",0),e=this.get("arc",0);const i=this._generator;e<0&&(t+=e,e*=-1),e>.1&&i.cornerRadius(this.get("cornerRadius",0)),i.context(this._display);let s=this.get("radius",0),n=this.get("innerRadius",0);s+=this.get("dRadius",0),n+=this.get("dInnerRadius",0),n<0&&(n=s+n),i({innerRadius:n,outerRadius:s,startAngle:(t+90)*a.RADIANS,endAngle:(t+e+90)*a.RADIANS});let r=t+e/2;this.ix=a.cos(r),this.iy=a.sin(r);const o=this.get("shiftRadius",0);this.setRaw("dx",this.ix*o),this.setRaw("dy",this.iy*o),this.markDirtyPosition()}}}h.className="Slice",h.classNames=s.T.classNames.concat([h.className])},2162:function(t,e,i){"use strict";i.d(e,{i:function(){return n}});var s=i(6001);class n extends s.L{_afterNew(){this._addOrientationClass(),super._afterNew(),this.endGrip.setPrivate("visible",!1),this.thumb.setPrivate("visible",!1)}updateGrips(){super.updateGrips();const t=this.startGrip;this.endGrip.setAll({x:t.x(),y:t.y()}),this.setRaw("end",this.get("start"))}}n.className="Slider",n.classNames=s.L.classNames.concat([n.className])},4596:function(t,e,i){"use strict";i.d(e,{j:function(){return _}});var s=i(7582),n=i(6331),r=i(5769),o=i(6245),a=i(9770),h=i(7449),l=i(6490),c=i(7652),u=i(5071),d=i(5040),p=i(256),g=i(751);class f extends a.p{constructor(t){super(),this._rendererDisposers={},this._dispatchParents=!0,this._sprite=t}_makePointerEvent(t,e){return{type:t,originalEvent:e.event,point:e.point,simulated:e.simulated,native:e.native,target:this._sprite}}_onRenderer(t,e){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[t];if(void 0===i){const s=this._sprite._display.on(t,(t=>{e.call(this,t)}));i=this._rendererDisposers[t]=new h.DM((()=>{delete this._rendererDisposers[t],s.dispose()}))}return i.increment()}_on(t,e,i,s,n,r,o){const a=super._on(t,e,i,s,n,r,o),l=f.RENDERER_EVENTS[e];return void 0!==l&&(a.disposer=new h.FV([a.disposer,this._onRenderer(e,l)])),a}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(t,e){const i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(t,e),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(t,e)}finally{this._dispatchParents=i}}}f.RENDERER_EVENTS={click:function(t){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",t))&&this.dispatch("click",this._makePointerEvent("click",t))},rightclick:function(t){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",t))},middleclick:function(t){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",t))},dblclick:function(t){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",t))},pointerover:function(t){const e=this._sprite;let i=!0;if(e.getPrivate("trustBounds")){e._getBounds();const s=e.globalBounds();if(e.isType("Graphics")){const t=e.get("strokeWidth",1)/2;t>=1&&(s.left-=t,s.right+=t,s.top-=t,s.bottom+=t)}g.inBounds(t.point,s)||(i=!1,e._root._renderer.removeHovering(e._display))}i&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",t))},pointerout:function(t){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",t))},pointerdown:function(t){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",t))},pointerup:function(t){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",t))},globalpointerup:function(t){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",t))},globalpointermove:function(t){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",t))},wheel:function(t){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:t.event,point:t.point})}};class _ extends n.JH{constructor(){super(...arguments),this._adjustedLocalBounds={left:0,right:0,top:0,bottom:0},this._localBounds={left:0,right:0,top:0,bottom:0},this._sizeDirty=!1,this._isDragging=!1,this._isHidden=!1,this._isShowing=!1,this._isHiding=!1,this._isDown=!1,this._downPoints={}}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(t){this._markDirtyKey(t)}_markDirtyKey(t){super._markDirtyKey(t),"x"!=t&&"y"!=t&&"dx"!=t&&"dy"!=t||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(t){super._markDirtyPrivateKey(t),"x"!=t&&"y"!=t||this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new f(this)}_processTemplateField(){let t;const e=this.get("templateField");if(e){const i=this.dataItem;if(i){const s=i.dataContext;s&&(t=s[e],t instanceof r.YS||!t||(t=r.YS.new(t)))}}this._templateField!==t&&(this._removeTemplateField(),this._templateField=t,t&&t._setObjectTemplate(this),this._applyTemplates())}_setDataItem(t){const e=this._dataItem;this._dataItem=t,this._processTemplateField();const i="dataitemchanged";t!=e&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:e,newDataItem:t})}set dataItem(t){this._setDataItem(t)}get dataItem(){if(this._dataItem)return this._dataItem;{let t=this._parent;for(;t;){if(t._dataItem)return t._dataItem;t=t._parent}}}_addPercentageSizeChildren(){let t=this.parent;t&&(this.get("width")instanceof o.gG||this.get("height")instanceof o.gG?u.pushOne(t._percentageSizeChildren,this):u.removeFirst(t._percentageSizeChildren,this))}_addPercentagePositionChildren(){let t=this.parent;t&&(this.get("x")instanceof o.gG||this.get("y")instanceof o.gG?u.pushOne(t._percentagePositionChildren,this):u.removeFirst(t._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const t=this._localBounds;if(t){const e=this.get("centerX");null!=e&&(this._display.pivot.x=t.left+c.relativeToValue(e,t.right-t.left));const i=this.get("centerY");null!=i&&(this._display.pivot.y=t.top+c.relativeToValue(i,t.bottom-t.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const t=this._prevSettings.tooltip;t&&t.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0);const e=this._tooltipPointerDp;e&&(e.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))),this._tooltipPointerDp=new h.FV([this.events.on("pointerover",(()=>{this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))})),this.events.on("pointerout",(()=>{const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0)}))]))}}_handleStates(){this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();const t=this._display,e=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new h.FV([e.on("pointerdown",(t=>{this.dragStart(t)})),e.on("globalpointermove",(t=>{this.dragMove(t)})),e.on("globalpointerup",(t=>{this.dragStop(t)}))])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),t.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const t=this.get("tooltipText"),i=this.get("tooltipHTML"),s=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(t||i)&&("click"==s?(this._tooltipDp=new h.FV([e.on("click",(()=>{this.setTimeout((()=>{const t=this.getTooltip();t&&!t.isHidden()&&t.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()}),10)})),c.addEventListener(document,"click",(t=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)):"always"==s||(this._tooltipDp=new h.FV([e.on("pointerover",(()=>{this.showTooltip()})),e.on("pointerout",(()=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let t=this.get("toggleKey");t&&"none"!=t?this._toggleDp=e.on("click",(()=>{this._isDragging||this.set(t,!this.get(t))})):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(t.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),t.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),t.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?t.visible=!0:(t.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const t=this.parent;t&&(this.isDirty("width")&&this.get("width")instanceof o.gG||this.isDirty("height")&&this.get("height")instanceof o.gG)&&(t.markDirty(),t._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const e=this.get("wheelable");e&&this.set("interactive",!0),t.wheelable=!!e}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(t.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){const t=this.get("blur",0);0!=t&&(i+=" blur("+t+"px)")}if(this.isDirty("saturate")){const t=this.get("saturate",1);1!=t&&(i+=" saturate("+t+")")}if(this.isDirty("brightness")){const t=this.get("brightness",1);1!=t&&(i+=" brightness("+t+")")}if(this.isDirty("contrast")){const t=this.get("contrast",1);1!=t&&(i+=" contrast("+t+")")}if(this.isDirty("sepia")){const t=this.get("sepia",0);0!=t&&(i+=" sepia("+t+")")}if(this.isDirty("hue")){const t=this.get("hue",0);0!=t&&(i+=" hue-rotate("+t+"deg)")}if(this.isDirty("invert")){const t=this.get("invert",0);0!=t&&(i+=" invert("+t+")")}if(i&&(t.filter=i),this.isDirty("cursorOverStyle")&&(t.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new h.FV([e.on("focus",(()=>{this.showTooltip()})),e.on("blur",(()=>{this.hideTooltip()}))]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(e.on("blur",(()=>{this.setPrivateRaw("touchHovering",!1)}))),this._disposers.push(e.once("boundschanged",(()=>{this.markDirtyAccessibility()})))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(t.exportable=this.get("exportable")),this.isDirty("interactive")){const t=this.events;this.get("interactive")&&!t.isDisposed()?this._hoverDp=new h.FV([t.on("click",(t=>{c.isTouchEvent(t.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout((()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}),10))})),t.on("globalpointerup",(t=>{c.isTouchEvent(t.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})),this._isDown&&this._handleUp(t)})),t.on("pointerover",(()=>{this._handleOver()})),t.on("pointerout",(()=>{this._handleOut()})),t.on("pointerdown",(t=>{this._handleDown(t)}))]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}dragStart(t){this._dragEvent=t,this.events.stopParentDispatch()}dragStop(t){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const e="dragstop";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(t){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const e=c.getPointerId(t.originalEvent);delete this._downPoints[e],0==p.keys(this._downPoints).length&&(this._isDown=!1)}}_hasMoved(t){const e=c.getPointerId(t.originalEvent),i=this._downPoints[e];if(i){const e=Math.abs(i.x-t.point.x),s=Math.abs(i.y-t.point.y);return e>5||s>5}return!1}_hasDown(){return p.keys(this._downPoints).length>0}_handleDown(t){const e=this.parent;if(e&&!this.get("draggable")&&e._handleDown(t),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:t.point.x,y:t.point.y},this._isDown=!0;const e=c.getPointerId(t.originalEvent);this._downPoints[e]={x:t.point.x,y:t.point.y}}}dragMove(t){let e=this._dragEvent;if(e){if(e.simulated&&!t.simulated)return!0;let i=0,s=this.parent,n=1;for(;null!=s;)i+=s.get("rotation",0),s=s.parent,s&&(n*=s.get("scale",1));let r=(t.point.x-e.point.x)/n,o=(t.point.y-e.point.y)/n;const a=this.events;if(e.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}if(this._isDragging){let e=this._dragPoint;this.set("x",e.x+r*g.cos(i)+o*g.sin(i)),this.set("y",e.y+o*g.cos(i)-r*g.sin(i));const s="dragged";a.isEnabled(s)&&a.dispatch(s,{type:s,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}else if(Math.hypot(r,o)>5){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let t=this.parent,e=0;for(;;){if(!t)return e;++e,t=t.parent}}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const t=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),t.isMeasured=!0,t.invalidateBounds();const e=this.parent;e&&"absolute"!=this.get("position")&&(null==e.get("width")||null==e.get("height")||e.get("layout"))&&e.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const t=this._adjustedLocalBounds;let e;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),e=this._adjustedLocalBounds):(e={left:0,right:0,top:0,bottom:0},this._localBounds=e,this._adjustedLocalBounds=e),!t||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom){const t="boundschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(t){let e=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));d.isNumber(e)&&t.right-t.left0?t.right=t.left+s:t.left=t.right+s),d.isNumber(n)&&(n>0?t.bottom=t.top+n:t.top=t.bottom+n)}_removeParent(t){t&&(t.children.removeValue(this),u.removeFirst(t._percentageSizeChildren,this),u.removeFirst(t._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(t){if(!this.isDisposed()){const e=this.getTooltip(),i=this.get("tooltipText"),s=this.get("tooltipHTML");if((i||s)&&e){const n=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);if("fixed"!=n&&t||(this._display._setMatrix(),t=this.toGlobal(r._getTooltipPoint())),"pointer"==n){const e=this.getPrivate("lastTooltipCoords");if(e&&e.x==t.x&&e.y==t.y)return;this.setPrivate("lastTooltipCoords",t)}e.set("pointTo",t),e.set("tooltipTarget",r),e.get("x")||e.set("x",t.x),e.get("y")||e.set("y",t.y),i&&e.label.set("text",i),s&&e.label.set("html",s);const o=this.dataItem;if(o&&e.label._setDataItem(o),"always"==this.get("showTooltipOn")&&(t.x<0||t.x>this._root.width()||t.y<0||t.y>this._root.height()))return void this.hideTooltip();e.label.text.markDirtyText();const a=e.show();return this.setPrivateRaw("showingTooltip",!0),a}}}hideTooltip(){const t=this.getTooltip();if(t&&(this.removePrivate("lastTooltipCoords"),t.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==t)){let e=t.get("keepTargetHover")&&0==t.get("stateAnimationDuration",0)?400:void 0;const i=t.hide(e);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){const t=this._localBounds;if(t){let e=0,i=0;return this.get("isMeasured")?(e=t.left+c.relativeToValue(this.get("tooltipX",0),t.right-t.left),i=t.top+c.relativeToValue(this.get("tooltipY",0),t.bottom-t.top)):(e=c.relativeToValue(this.get("tooltipX",0),this.width()),i=c.relativeToValue(this.get("tooltipY",0),this.height())),{x:e,y:i}}return{x:0,y:0}}getTooltip(){let t=this.get("tooltip");if(t)return t;{let t=this.parent;if(t)return t.getTooltip()}}_updatePosition(){const t=this.parent;let e=this.get("dx",0),i=this.get("dy",0),s=this.get("x"),n=this.getPrivate("x"),r=0,a=0;const h=this.get("position");s instanceof o.gG&&(s=t?t.innerWidth()*s.value+t.get("paddingLeft",0):0),d.isNumber(s)?r=s+e:null!=n?r=n:t&&"relative"==h&&(r=t.get("paddingLeft",0)+e);let l=this.get("y"),c=this.getPrivate("y");l instanceof o.gG&&(l=t?t.innerHeight()*l.value+t.get("paddingTop",0):0),d.isNumber(l)?a=l+i:null!=c?a=c:t&&"relative"==h&&(a=t.get("paddingTop",0)+i);const u=this._display;if(u.x!=r||u.y!=a){u.invalidateBounds(),u.x=r,u.y=a;const t="positionchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let t=this.get("x"),e=this.getPrivate("x");const i=this.parent;return i?t instanceof o.gG?c.relativeToValue(t,i.innerWidth())+i.get("paddingLeft",0):d.isNumber(t)?t:null!=e?e:i.get("paddingLeft",this._display.x):this._display.x}y(){let t=this.getPrivate("y");if(null!=t)return t;let e=this.get("y");const i=this.parent;return i?e instanceof o.gG?c.relativeToValue(e,i.innerHeight())+i.get("paddingTop",0):d.isNumber(e)?e:null!=t?t:i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const t=this.get("tooltip");t&&t.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const t=this._adjustedLocalBounds,e=this.x(),i=this.y();return{left:t.left+e,right:t.right+e,top:t.top+i,bottom:t.bottom+i}}globalBounds(){const t=this.localBounds(),e=this.toGlobal({x:t.left,y:t.top}),i=this.toGlobal({x:t.right,y:t.top}),s=this.toGlobal({x:t.right,y:t.bottom}),n=this.toGlobal({x:t.left,y:t.bottom});return{left:Math.min(e.x,i.x,s.x,n.x),top:Math.min(e.y,i.y,s.y,n.y),right:Math.max(e.x,i.x,s.x,n.x),bottom:Math.max(e.y,i.y,s.y,n.y)}}_onShow(t){}_onHide(t){}appear(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.hide(0),e?new Promise(((i,s)=>{this.setTimeout((()=>{i(this.show(t))}),e)})):this.show(t)}))}show(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(t);const e=this.states.applyAnimate("default",t);yield(0,l.ne)(e),this._isShowing=!1}}))}hide(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let e=this.states.lookup("hidden");e||(e=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(t);const i=this.states.applyAnimate("hidden",t);yield(0,l.ne)(i),this._isHiding=!1}}))}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const t=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*t:t}compositeScale(){const t=this.get("scale",1);return this._parent?this._parent.compositeScale()*t:t}compositeRotation(){const t=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+t:t}width(){let t=this.get("width"),e=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),s=this.getPrivate("width"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerWidth()*t.value:this._root.width()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}maxWidth(){let t=this.get("maxWidth",this.getPrivate("maxWidth"));if(d.isNumber(t))return t;{let t=this.get("width");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerWidth():this._root.width()}maxHeight(){let t=this.get("maxHeight",this.getPrivate("maxHeight"));if(d.isNumber(t))return t;{let t=this.get("height");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerHeight():this._root.height()}height(){let t=this.get("height"),e=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),s=this.getPrivate("height"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerHeight()*t.value:this._root.height()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}_findStaticTemplate(t){return this._templateField&&t(this._templateField)?this._templateField:super._findStaticTemplate(t)}_walkParents(t){(this._parent||this._virtualParent)&&this._walkParent(t)}_walkParent(t){this._parent?this._parent._walkParent(t):this._virtualParent&&this._virtualParent._walkParent(t),t(this)}set virtualParent(t){this._virtualParent!==t&&(this._virtualParent=t,this._applyThemes())}get parent(){return this._parent}_setParent(t,e=!1){const i=this._parent;t!==i&&(this.markDirtyBounds(),t.markDirty(),this._parent=t,e&&(this._removeParent(i),t&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(t){return this._display.toGlobal(t)}toLocal(t){return this._display.toLocal(t)}_getDownPoint(){const t=this._getDownPointId();if(t)return this._downPoints[t]}_getDownPointId(){if(this._downPoints)return p.keysOrdered(this._downPoints,((t,e)=>t>e?1:t{this._resize(t.target,-1)})),this.gripR.events.on("dragged",(t=>{this._resize(t.target,1)})),this.gripL.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripR.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripT.events.on("dragged",(t=>{this._rotate(t,90)})),this.gripB.events.on("dragged",(t=>{this._rotate(t,-90)})),this.gripT.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripB.events.on("dragstart",(t=>{this._resizeStart(t.target)}))}_resizeStart(t){const e=this.get("sprite");e&&(this._is=e.get("scale",1),this._ix=t.x(),this._iw=this.width()/2)}_resize(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=Math.max(.01,this._is*(1+e*(t.x()-this._ix)/this._iw));s?s.set("scale",n):i.set("scale",n),i.states.lookup("default").set("scale",n),this._updatePositions()}}_rotate(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=this.parent;if(n){const r=this.get("rotationStep",10);let o=Math.round((h.getAngle({x:this.x(),y:this.y()},n.toLocal(t.point))+e)/r)*r;s?s.set("rotation",o):i.set("rotation",o),i.states.lookup("default").set("rotation",o),this._updatePositions()}}}_createGrip(t){const e=this.children.push(s.W.new(this._root,{themeTags:["grip",t],setStateOnChildren:!0,draggable:!0}));return e.children.push(r.c.new(this._root,{themeTags:["outline"],centerX:n.CI,centerY:n.CI})),e.children.push(r.c.new(this._root,{centerX:n.CI,centerY:n.CI})),e}_updateChildren(){if(super._updateChildren(),this.isDirty("sprite")){const t=this.get("sprite");if(t){this.show(0),this.setPrivate("visible",!0),this._updatePositions();const e=t.parent;e&&e.children.moveValue(this,0),this._positionDP=t.events.on("positionchanged",(()=>{this._updatePositions()})),this._positionDP=t.events.on("boundschanged",(()=>{this._updatePositions()}))}else this.hide(0),this.setPrivate("visible",!1),this._positionDP&&this._positionDP.dispose()}(this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation"))&&this._updatePositions()}_updatePositions(){const t=this.get("sprite");if(t){let e=t.localBounds(),i=t.get("scale",1),s=20,r=(e.right-e.left)*i+s,o=(e.bottom-e.top)*i+s,a=t.get("rotation",0);const l=this.rectangle;let c=t.get("centerX",n.CI),u=t.get("centerY",n.CI),d=0;c instanceof n.gG&&(d=c.value);let p=0;u instanceof n.gG&&(p=u.value),l.setAll({centerX:c,centerY:u,width:r,height:o}),this.setAll({x:t.x()+s*(d-.5)*h.cos(a)-s*(p-.5)*h.sin(a),y:t.y()+s*(p-.5)*h.cos(a)+s*(d-.5)*h.sin(a),width:r,height:o,rotation:a}),this.gripT.setAll({x:(.5-d)*r,y:-p*o}),this.gripB.setAll({x:(.5-d)*r,y:(1-p)*o}),this.gripL.setAll({x:-d*r,y:(.5-p)*o}),this.gripR.setAll({x:(1-d)*r,y:(.5-p)*o}),this.rectangle.setAll({width:r,height:o})}}}l.className="SpriteResizer",l.classNames=s.W.classNames.concat([l.className])},2036:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(4596),n=i(2132),r=i(5071),o=i(7652),a=i(7449);class h extends s.j{constructor(){super(...arguments),this.textStyle=this._root._renderer.makeTextStyle(),this._display=this._root._renderer.makeText("",this.textStyle),this._textStyles=["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}_updateBounds(){if(this.get("text")){super._updateBounds();let t=this.get("fillGradient");t&&(this._display.style.fill=t.getFill(this))}else{let t={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=t}}_changed(){super._changed(),this._display.clear();let t=this.textStyle;if(this.isDirty("opacity")){let t=this.get("opacity",1);this._display.alpha=t}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),"tooltip"==this.get("role")&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new a.ku((()=>{this._root._removeTooltipElement(this)}))),this.isDirty("width")&&(t.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(t.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(t.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(t.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(t.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(t.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){const e=this.get("fill"),i=this.get("fillGradient"),s=this.get("fillOpacity");if(i){if(e){const t=i.get("stops",[]);t.length&&r.each(t,(t=>{t.color&&!t.colorInherited||!e||(t.color=e,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=s,t.opacityInherited=!0)}))}t.fill=i.getFill(this)}else e&&(t.fill=e)}if(this.isDirty("fillOpacity")){let e=this.get("fillOpacity",1);e&&(t.fillOpacity=e)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(t.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(t.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),r.each(this._textStyles,(e=>{this._dirty[e]&&(t[e]=this.get(e),this.markDirtyBounds())})),t.fontSize=this.get("fontSize"),t.fontFamily=this.get("fontFamily"),this._display.style=t,this.isDirty("role")&&"tooltip"==this.get("role")&&this._root.updateTooltip(this)}_getText(){let t=this.get("text","");return this.get("maxChars")&&(t=o.truncateTextWithEllipsis(t,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?(0,n.q)(this,t):t}_getAccessibleText(){const t=this.get("ariaLabel");return void 0!==t?this.get("populateText")?(0,n.q)(this,t):t:this._getText()}markDirtyText(){this._display.text=this._getText(),"tooltip"==this.get("role")&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(t){super._setDataItem(t),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}h.className="Text",h.classNames=s.j.classNames.concat([h.className])},2438:function(t,e,i){"use strict";i.d(e,{d:function(){return n}});var s=i(2077);class n extends s.x{}n.className="Tick",n.classNames=s.x.classNames.concat([n.className])},2876:function(t,e,i){"use strict";i.d(e,{u:function(){return d}});var s=i(7449),n=i(962),r=i(8931),o=i(8777),a=i(6245),h=i(1112),l=i(751),c=i(5071),u=i(7652);class d extends o.W{constructor(t,e,i,s=[]){super(t,e,i,s),this._fx=0,this._fy=0,this._w=0,this._h=0,this._htmlContentHovered=!1}_afterNew(){this._settings.themeTags=u.mergeTags(this._settings.themeTags,["tooltip"]),super._afterNew(),this._setDefaultFn("background",(()=>r.i.new(this._root,{}))).set("themeTags",["tooltip","background"]),this._label=this.children.push(n._.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",(()=>{this._updateBackground()}))),this._disposers.push(this.on("bounds",(()=>{this._updateBackground()}))),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",(t=>{t&&(this._disposers.push(u.addEventListener(t,"pointerover",(t=>{this._htmlContentHovered=!0}))),this._disposers.push(u.addEventListener(t,"pointerout",(t=>{this._htmlContentHovered=!1}))))}))),this.on("visible",(t=>{this._handleReaderAnnouncement()})),this.label.events.on("dataitemchanged",(t=>{this._handleReaderAnnouncement()})),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),c.remove(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width"),null!=this.get("labelText")&&this.label.set("text",this.get("labelText")),null!=this.get("labelHTML")&&this.label.set("html",this.get("labelHTML")),null!=this.get("labelAriaLabel")&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover"))if(this.get("keepTargetHover")){const t=this.get("background");this._keepHoverDp=new s.FV([t.events.on("pointerover",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),e.hover())})),t.events.on("pointerout",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),this._htmlContentHovered||e.unhover())}))]),this.label.onPrivate("htmlElement",(e=>{this._keepHoverDp&&e&&this._keepHoverDp.disposers.push(u.addEventListener(e,"pointerleave",(e=>{const i=this.root._renderer.getEvent(e);t.events.dispatch("pointerout",{type:"pointerout",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))}))}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let t=this.get("tooltipTarget");const e=this.get("background");let i,s;if(t&&e){if(i=t.get("fill"),s=t.get("stroke"),null==i&&(i=s),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),null!=i&&e.set("fill",i),this._fillDp=t.on("fill",(t=>{null!=t&&(e.set("fill",t),this._updateTextColor(t))})),this._disposers.push(this._fillDp)),this.get("getFillGradientFromSprite")){this._fillGrDp&&this._fillGrDp.dispose();let i=t.get("fillGradient");null!=i&&e.set("fillGradient",i),this._fillGrDp=t.on("fillGradient",(t=>{null!=t&&e.set("fillGradient",t)})),this._disposers.push(this._fillGrDp)}this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),null!=i&&e.set("stroke",i),this._strokeDp=t.on("fill",(t=>{null!=t&&e.set("stroke",t)})),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),null!=i&&this.label.set("fill",i),this._labelDp=t.on("fill",(t=>{null!=t&&this.label.set("fill",t)})),this._disposers.push(this._labelDp))}this._updateTextColor(i)}_updateTextColor(t){this.get("autoTextColor")&&(null==t&&(t=this.get("background").get("fill")),null==t&&(t=this._root.interfaceColors.get("background")),t instanceof h.Il&&this.label.set("fill",h.Il.alternative(t,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(t){super._setDataItem(t),this.label._setDataItem(t)}_updateBackground(){super.updateBackground();const t=this._root.container;if(t){let e=.5,i=.5,s=this.get("centerX");s instanceof a.gG&&(e=s.value);let n=this.get("centerY");n instanceof a.gG&&(i=n.value);let o=t.width(),h=t.height(),c=this.parent,u=0,d=0;if(c){u=c.x(),d=c.y();const t=c.get("layerMargin");t&&(u+=t.left||0,d+=t.top||0,o+=(t.left||0)+(t.right||0),h+=(t.top||0)+(t.bottom||0))}const p=this.get("bounds",{left:-u,top:-d,right:o-u,bottom:h-d});this._updateBounds();let g=this.width(),f=this.height();0===g&&(g=this._w),0===f&&(f=this._h);let _=this.get("pointTo",{x:o/2,y:h/2}),m=_.x,y=_.y,v=this.get("pointerOrientation"),w=this.get("background"),b=0,x=0,D=0;w instanceof r.i&&(b=w.get("pointerLength",0),x=w.get("strokeWidth",0)/2,D=x,w.set("width",g),w.set("height",f));let k=0,T=0,M=p.right-p.left,E=p.bottom-p.top;"horizontal"==v||"left"==v||"right"==v?(x=0,"horizontal"==v?m>p.left+M/2?(m-=g*(1-e)+b,D*=-1):m+=g*e+b:"left"==v?m+=g*(1-e)+b:(m-=g*e+b,D*=-1)):(D=0,"vertical"==v?y>p.top+f/2+b?y-=f*(1-i)+b:(y+=f*i+b,x*=-1):"down"==v?y-=f*(1-i)+b:(y+=f*i+b,x*=-1)),m=l.fitToRange(m,p.left+g*e,p.left+M-g*(1-e))+D,y=l.fitToRange(y,p.top+f*i,p.top+E-f*(1-i))-x,k=_.x-m+g*e+D,T=_.y-y+f*i-x,this._fx=m,this._fy=y;const O=this.get("animationDuration",0);if(O>0&&this.get("visible")&&this.get("opacity")>.1){const t=this.get("animationEasing");this.animate({key:"x",to:m,duration:O,easing:t}),this.animate({key:"y",to:y,duration:O,easing:t})}else this.set("x",m),this.set("y",y);w instanceof r.i&&(w.set("pointerX",k),w.set("pointerY",T)),g>0&&(this._w=g),f>0&&(this._h=f)}}}d.className="Tooltip",d.classNames=o.W.classNames.concat([d.className])},941:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){const t=this.width(),e=this.height(),i=this._display;i.moveTo(-t/2,e/2),i.lineTo(0,-e/2),i.lineTo(t/2,e/2),i.lineTo(-t/2,e/2),i.closePath()}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Triangle",n.classNames=s.T.classNames.concat([n.className])},1706:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingTop",0),i=t.innerHeight(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minHeight",t.getPrivate("minHeight",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.height()),i-=e+t.get("marginTop",0)+t.get("marginBottom",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginTop",0)-t.get("marginBottom",0),n=t.get("minHeight",t.getPrivate("minHeight",-1/0)),r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("height",s)}else t._prevSettings.height instanceof r.gG&&t.setPrivate("height",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginTop",0),s=e.top,n=e.bottom,r=t.get("maxHeight");r&&n-s>r&&(n=s+r);let o=t.get("marginBottom",0),h=a+i-s;t.setPrivate("y",h),a=h+n+o}else t.setPrivate("y",void 0)}))}}o.className="VerticalLayout",o.classNames=s.A.classNames.concat([o.className])},6044:function(t,e,i){"use strict";i.d(e,{H:function(){return h}});var s=i(8777),n=i(8054),r=i(1479),o=i(7449),a=i(2647);class h extends s.W{constructor(){super(...arguments),this.homeButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["home"]})),this.plusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["plus"]})),this.minusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["minus"]}))}_afterNew(){super._afterNew(),this.set("position","absolute"),this.set("layout",this._root.verticalLayout),this.addTag("zoomtools"),this.plusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.minusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.homeButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("target")){const t=this.get("target"),e=this._prevSettings.target;t&&(t instanceof a.Y&&(this._targetDisposer=this.addDisposer(t.contents.on("scale",(e=>{e==t.get("minZoomLevel")?this.minusButton.set("disabled",!0):this.minusButton.set("disabled",!1),e==t.get("maxZoomLevel")?this.plusButton.set("disabled",!0):this.plusButton.set("disabled",!1)}))),this.root.events.once("frameended",(()=>{t.get("scale")==t.get("minZoomLevel")&&this.minusButton.set("disabled",!0)}))),this._disposer=new o.FV([this.plusButton.events.on("click",(()=>{t.zoomIn()})),this.minusButton.events.on("click",(()=>{t.zoomOut()})),this.homeButton.events.on("click",(()=>{t.goHome()}))])),e&&(this._disposer&&this._disposer.dispose(),this._targetDisposer&&this._targetDisposer.dispose())}}}h.className="ZoomTools",h.classNames=s.W.classNames.concat([h.className])},2647:function(t,e,i){"use strict";i.d(e,{Y:function(){return u}});var s=i(8777),n=i(6245),r=i(7142),o=i(1112),a=i(7652),h=i(751),l=i(256),c=i(5040);class u extends s.W{constructor(){super(...arguments),this._movePoints={},this._downScale=1,this._downX=0,this._downY=0,this.contents=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,x:0,y:0,draggable:!0,background:r.A.new(this._root,{fill:(0,o.$_)(16777215),fillOpacity:0})}))}_afterNew(){super._afterNew();const t=this.contents.events;this._disposers.push(t.on("pointerdown",(t=>{this._handleThisDown(t)}))),this._disposers.push(t.on("globalpointerup",(t=>{this._handleThisUp(t)}))),this._disposers.push(t.on("globalpointermove",(t=>{this._handleThisMove(t)})));const e=this.contents.get("background");e&&(e.adapters.add("width",(t=>20*Number(t))),e.adapters.add("height",(t=>20*Number(t))),e.adapters.add("x",(t=>Number(t)-e.width()/2)),e.adapters.add("y",(t=>Number(t)-e.height()/2)));const i=this.contents;i.adapters.add("x",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.width();t=Math.min(n*s,t),t=Math.max(this.width()-n*e*(1+s),t)}return t})),i.adapters.add("y",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.height();t=Math.min(n*s,t),t=Math.max(this.height()-n*e*(1+s),t)}return t}))}_prepareChildren(){super._prepareChildren(),this.isDirty("wheelable")&&this._handleSetWheel(),this.contents._display.cancelTouch=this.get("pinchZoom",!1)}_handleSetWheel(){this.get("wheelable")?(this._wheelDp&&this._wheelDp.dispose(),this._wheelDp=this.events.on("wheel",(t=>{const e=t.originalEvent;if(!a.isLocalEvent(e,this))return;e.preventDefault();const i=this.toLocal(t.point);this._handleWheelZoom(e.deltaY,i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_handleWheelZoom(t,e){let i=this.get("zoomStep",2),s=this.contents.get("scale",1),n=s;t>0?n=s/i:t<0&&(n=s*i),n!=s&&this.zoomToPoint(e,n)}zoomToPoint(t,e){e&&(e=h.fitToRange(e,this.get("minZoomLevel",1),this.get("maxZoomLevel",32)));const i=this.contents.get("scale",1);let s=t.x,n=t.y,r=s,o=n;const a=this.contents;let l=r-(s-a.x())/i*e,c=o-(n-a.y())/i*e;return this._animateTo(l,c,e),this._za}zoomIn(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)*this.get("zoomStep",2))}zoomOut(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)/this.get("zoomStep",2))}goHome(){return this._animateTo(0,0,1)}_animateTo(t,e,i){const s=this.get("animationDuration",0),n=this.get("animationEasing"),r=this.contents;this._txa=r.animate({key:"x",to:t,duration:s,easing:n}),this._tya=r.animate({key:"y",to:e,duration:s,easing:n}),this._za=r.animate({key:"scale",to:i,duration:s,easing:n})}_handleThisUp(t){this._downPoints={}}_handleThisDown(t){const e=this.contents;this._downScale=e.get("scale",1);const i=e._downPoints;let s=l.keys(i).length;if(1==s){let e=i[1];e||(e=i[0]),e&&e.x==t.point.x&&e.y==t.point.y&&(s=0)}if(s>0){this._downX=e.x(),this._downY=e.y();const t=e._getDownPointId();if(t){let i=this._movePoints[t];i&&(e._downPoints[t]=i)}}}_handleThisMove(t){const e=t.originalEvent.pointerId;this.get("pinchZoom")&&e&&(this._movePoints[e]=t.point,l.keys(this.contents._downPoints).length>1)&&this._handlePinch()}_handlePinch(){let t=0,e=[],i=[];if(l.each(this.contents._downPoints,((s,n)=>{e[t]=n;let r=this._movePoints[s];r&&(i[t]=r),t++})),e.length>1&&i.length>1){this.contents._isDragging=!1;let t=e[0],s=e[1],n=i[0],r=i[1];if(t&&s&&n&&r){t=this.toLocal(t),s=this.toLocal(s),n=this.toLocal(n),r=this.toLocal(r);let e=Math.hypot(s.x-t.x,s.y-t.y),i=Math.hypot(r.x-n.x,r.y-n.y)/e*this._downScale,o={x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2},a={x:t.x+(s.x-t.x)/2,y:t.y+(s.y-t.y)/2},h=this._downX||0,l=this._downY||0,c=this._downScale,u=o.x-(-h+a.x)/c*i,d=o.y-(-l+a.y)/c*i;this.contents.setAll({x:u,y:d,scale:i})}}}}u.className="ZoomableContainer",u.classNames=s.W.classNames.concat([u.className])},4102:function(t,e,i){"use strict";i.d(e,{mM:function(){return at},uK:function(){return rt}});var s=i(4680),n=i(1112);class r{constructor(t=1,e=0,i=0,s=1,n=0,r=0){this.a=t,this.b=e,this.c=i,this.d=s,this.tx=n,this.ty=r}setTransform(t,e,i,s,n,r=1){this.a=Math.cos(n)*r,this.b=Math.sin(n)*r,this.c=-Math.sin(n)*r,this.d=Math.cos(n)*r,this.tx=t-(i*this.a+s*this.c),this.ty=e-(i*this.b+s*this.d)}apply(t){return{x:this.a*t.x+this.c*t.y+this.tx,y:this.b*t.x+this.d*t.y+this.ty}}applyInverse(t){const e=1/(this.a*this.d+this.c*-this.b);return{x:this.d*e*t.x+-this.c*e*t.y+(this.ty*this.c-this.tx*this.d)*e,y:this.a*e*t.y+-this.b*e*t.x+(-this.ty*this.a+this.tx*this.b)*e}}append(t){const e=this.a,i=this.b,s=this.c,n=this.d;this.a=t.a*e+t.b*s,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*s,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*s+this.tx,this.ty=t.tx*i+t.ty*n+this.ty}prepend(t){const e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){const e=this.a,i=this.c;this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty}copyFrom(t){this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty}}var o=i(6245),a=i(7449),h=i(7255),l=i(7652),c=i(5071),u=i(256),d=i(5040),p=i(751),g=2*Math.PI,f=function(t,e,i,s,n,r,o){var a=t.x,h=t.y;return{x:s*(a*=e)-n*(h*=i)+r,y:n*a+s*h+o}},_=function(t,e){var i=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),s=Math.cos(t),n=Math.sin(t),r=Math.cos(t+e),o=Math.sin(t+e);return[{x:s-n*i,y:n+s*i},{x:r+o*i,y:o-r*i},{x:r,y:o}]},m=function(t,e,i,s){var n=t*i+e*s;return n>1&&(n=1),n<-1&&(n=-1),(t*s-e*i<0?-1:1)*Math.acos(n)},y=function(t){var e=t.px,i=t.py,s=t.cx,n=t.cy,r=t.rx,o=t.ry,a=t.xAxisRotation,h=void 0===a?0:a,l=t.largeArcFlag,c=void 0===l?0:l,u=t.sweepFlag,d=void 0===u?0:u,p=[];if(0===r||0===o)return[];var y=Math.sin(h*g/360),v=Math.cos(h*g/360),w=v*(e-s)/2+y*(i-n)/2,b=-y*(e-s)/2+v*(i-n)/2;if(0===w&&0===b)return[];r=Math.abs(r),o=Math.abs(o);var x=Math.pow(w,2)/Math.pow(r,2)+Math.pow(b,2)/Math.pow(o,2);x>1&&(r*=Math.sqrt(x),o*=Math.sqrt(x));var D=function(t,e,i,s,n,r,o,a,h,l,c,u){var d=Math.pow(n,2),p=Math.pow(r,2),f=Math.pow(c,2),_=Math.pow(u,2),y=d*p-d*_-p*f;y<0&&(y=0),y/=d*_+p*f;var v=(y=Math.sqrt(y)*(o===a?-1:1))*n/r*u,w=y*-r/n*c,b=l*v-h*w+(t+i)/2,x=h*v+l*w+(e+s)/2,D=(c-v)/n,k=(u-w)/r,T=(-c-v)/n,M=(-u-w)/r,E=m(1,0,D,k),O=m(D,k,T,M);return 0===a&&O>0&&(O-=g),1===a&&O<0&&(O+=g),[b,x,E,O]}(e,i,s,n,r,o,c,d,y,v,w,b),k=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],s=!0,n=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);s=!0);}catch(t){n=!0,r=t}finally{try{!s&&a.return&&a.return()}finally{if(n)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(D,4),T=k[0],M=k[1],E=k[2],O=k[3],P=Math.abs(O)/(g/4);Math.abs(1-P)<1e-7&&(P=1);var S=Math.max(Math.ceil(P),1);O/=S;for(var N=0;N1){const e=/^([01])([01])(.*)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t.splice(i,0,e[2]),++i,e[3].length>0?t[i]=e[3]:t.splice(i,1))}if(++i,s=t[i],s.length>1){const e=/^([01])(.+)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t[i]=e[2])}}}function D(t){if(0===t||1===t)return t;throw new Error("Flag must be 0 or 1")}function k(t,e){for(;(!t.interactive||e(t))&&t._parent;)t=t._parent}function T(t,e,i){return l.addEventListener(t,l.getRendererEvent(e),(t=>{const e=l.getEventTarget(t);let s=t.touches;s?(0==s.length&&(s=t.changedTouches),i(c.copy(s),e)):i([t],e)}))}function M(t){const e=document.createElement("canvas");e.width=1,e.height=1;const i=e.getContext("2d",{willReadFrequently:!0});i.drawImage(t,0,0,1,1);try{return i.getImageData(0,0,1,1),!1}catch(e){return console.warn('Image "'+t.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function E(t){t.width=0,t.height=0,t.style.width="0px",t.style.height="0px"}function O(t){return Math.floor(t)+.5}class P{constructor(){this._x=0,this._y=0}get x(){return this._x}get y(){return this._y}set x(t){this._x=t}set y(t){this._y=t}}class S extends a.KK{constructor(t){super(),this.mask=null,this.visible=!0,this.exportable=!0,this.interactive=!1,this.inactive=null,this.wheelable=!1,this.cancelTouch=!1,this.isMeasured=!1,this.buttonMode=!1,this.alpha=1,this.compoundAlpha=1,this.angle=0,this.scale=1,this.x=0,this.y=0,this.crisp=!1,this.pivot=new P,this._localMatrix=new r,this._matrix=new r,this._uMatrix=new r,this._renderer=t}subStatus(t){return{inactive:null==this.inactive?t.inactive:this.inactive,layer:this._layer||t.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let t=this;for(;;){if(t._layer)return t._layer;if(!t._parent)return this._renderer.defaultLayer;t=t._parent}}setLayer(t,e){if(null==t)this._layer=void 0;else{const i=!0;this._layer=this._renderer.getLayer(t,i),this._layer.visible=i,this._layer.margin=e,e&&l.setInteractive(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost()}}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(t){}_getColorId(){return void 0===this._colorId&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(t){return!t.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(t){return this._isInteractive(t)}contains(t){for(;;){if(t===this)return!0;if(!t._parent)return!1;t=t._parent}}toGlobal(t){return this._matrix.apply(t)}toLocal(t){return this._matrix.applyInverse(t)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){if(!this._localBounds){const t=1e7;this._localBounds={left:t,top:t,right:-t,bottom:-t},this._addBounds(this._localBounds)}return this._localBounds}getAdjustedBounds(t){this._setMatrix();const e=this.getLocalMatrix(),i=e.apply({x:t.left,y:t.top}),s=e.apply({x:t.right,y:t.top}),n=e.apply({x:t.right,y:t.bottom}),r=e.apply({x:t.left,y:t.bottom});return{left:Math.min(i.x,s.x,n.x,r.x),top:Math.min(i.y,s.y,n.y,r.y),right:Math.max(i.x,s.x,n.x,r.x),bottom:Math.max(i.y,s.y,n.y,r.y)}}on(t,e,i){return this.interactive?this._renderer._addEvent(this,t,e,i):new a.ku((()=>{}))}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(t,e){const i=this._matrix;let s=i.tx*e,n=i.ty*e;this.crisp&&(s=O(s),n=O(n)),t.setTransform(i.a*e,i.b*e,i.c*e,i.d*e,s,n)}_transformMargin(t,e,i){const s=this._matrix;t.setTransform(s.a*e,s.b*e,s.c*e,s.d*e,(s.tx+i.left)*e,(s.ty+i.top)*e)}_transformLayer(t,e,i){i.margin?this._transformMargin(t,i.scale||e,i.margin):this._transform(t,i.scale||e)}render(t,e=0){if(this.visible&&(!1!==this.exportable||!this._renderer._omitTainted)){this._setMatrix();const i=this.subStatus(t),s=this._renderer.resolution,n=this._renderer.layers,r=this._renderer._ghostLayer,o=r.context,a=this.mask;a&&a._setMatrix(),c.each(n,(t=>{if(t){const e=t.context;e.save(),a&&(a._transformLayer(e,s,t),a._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(e,s,t),this.filter&&(e.filter=this.filter)}})),o.save(),a&&this._isInteractiveMask(i)&&(a._transformMargin(o,s,r.margin),a._runPath(o),o.clip()),this._transformMargin(o,s,r.margin),i.layer.order>0&&!e&&c.move(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,e),o.restore(),c.each(n,(t=>{t&&t.context.restore()}))}}_render(t,e=0){!1===this.exportable&&(t.layer.tainted=!0)}_ghostOnly(t=0){return t>0}_drawGhost(t,e=0){const i=this._isInteractive(t),s=t.layer.order||0;return!(!i||(0!=s||this._ghostOnly(e))&&s!=e)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some((t=>t.value===this))}shouldCancelTouch(){const t=this._renderer;return!(t.tapToActivate&&!t._touchActive)&&(!!this.cancelTouch||!!this._parent&&this._parent.shouldCancelTouch())}}class N extends S{constructor(){super(...arguments),this.interactiveChildren=!0,this._children=[]}_isInteractiveMask(t){return this.interactiveChildren||super._isInteractiveMask(t)}addChild(t){t._parent=this,this._children.push(t),t._layer&&this.registerChildLayer(t._layer)}addChildAt(t,e){t._parent=this,this._children.splice(e,0,t),t._layer&&this.registerChildLayer(t._layer)}removeChild(t){t._parent=void 0,c.removeFirst(this._children,t)}_render(t,e){super._render(t);const i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,c.each(this._children,(i=>{i.compoundAlpha=this.compoundAlpha*this.alpha,i.render(t,e)})),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(t){this._childLayers||(this._childLayers=[]),c.pushOne(this._childLayers,t),this._parent&&this._parent.registerChildLayer(t)}markDirtyLayer(t=!1){super.markDirtyLayer(),t&&this._childLayers&&c.each(this._childLayers,(t=>t.dirty=!0))}_dispose(){super._dispose(),this._childLayers&&c.each(this._childLayers,(t=>{t.dirty=!0}))}}function C(t,e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.right=Math.max(t.right,e.x),t.bottom=Math.max(t.bottom,e.y)}class L{colorize(t,e){}colorizeGhost(t,e){this.colorize(t,e)}path(t){}pathGhost(t){this.path(t)}addBounds(t){}}class A extends L{colorize(t,e){t.beginPath()}}class R extends L{constructor(t){super(),this.color=t}colorize(t,e){t.fillStyle=void 0!==e?e:this.color}}class U extends L{constructor(t){super(),this.clearShadow=t}colorize(t,e){t.fill(),this.clearShadow&&(t.shadowColor="",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}}class B extends L{colorize(t,e){t.stroke()}}class F extends L{constructor(t,e,i,s){super(),this.width=t,this.color=e,this.lineJoin=i,this.lineCap=s}colorize(t,e){t.strokeStyle=void 0!==e?e:this.color,t.lineWidth=this.width,this.lineJoin&&(t.lineJoin=this.lineJoin),this.lineCap&&(t.lineCap=this.lineCap)}}class I extends L{constructor(t){super(),this.dash=t}colorize(t,e){t.setLineDash(this.dash)}}class H extends L{constructor(t){super(),this.dashOffset=t}colorize(t,e){t.lineDashOffset=this.dashOffset}}class z extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.width=i,this.height=s}path(t){t.rect(this.x,this.y,this.width,this.height)}addBounds(t){const e=this.x,i=this.y,s=e+this.width,n=i+this.height;C(t,{x:e,y:i}),C(t,{x:s,y:i}),C(t,{x:e,y:n}),C(t,{x:s,y:n})}}class G extends L{constructor(t,e,i){super(),this.x=t,this.y=e,this.radius=i}path(t){t.moveTo(this.x+this.radius,this.y),t.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radius,y:this.y-this.radius}),C(t,{x:this.x+this.radius,y:this.y+this.radius})}}class V extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.radiusX=i,this.radiusY=s}path(t){t.ellipse(0,0,this.radiusX,this.radiusY,0,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radiusX,y:this.y-this.radiusY}),C(t,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class W extends L{constructor(t,e,i,s,n,r){super(),this.cx=t,this.cy=e,this.radius=i,this.startAngle=s,this.endAngle=n,this.anticlockwise=r}path(t){this.radius>0&&t.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(t){let e=p.getArcBounds(this.cx,this.cy,this.startAngle*p.DEGREES,this.endAngle*p.DEGREES,this.radius);C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}class Y extends L{constructor(t,e,i,s,n){super(),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.radius=n}path(t){this.radius>0&&t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(t){}}class j extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.lineTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class X extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.moveTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class $ extends L{path(t){t.closePath()}}class Z extends L{constructor(t,e,i,s,n,r){super(),this.cpX=t,this.cpY=e,this.cpX2=i,this.cpY2=s,this.toX=n,this.toY=r}path(t){t.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.cpX2,y:this.cpY2}),C(t,{x:this.toX,y:this.toY})}}class K extends L{constructor(t,e,i,s){super(),this.cpX=t,this.cpY=e,this.toX=i,this.toY=s}path(t){t.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.toX,y:this.toY})}}class q extends L{constructor(t,e,i,s,n){super(),this.color=t,this.blur=e,this.offsetX=i,this.offsetY=s,this.opacity=n}colorize(t,e){this.opacity&&(t.fillStyle=this.color),t.shadowColor=this.color,t.shadowBlur=this.blur,t.shadowOffsetX=this.offsetX,t.shadowOffsetY=this.offsetY}colorizeGhost(t,e){}}class Q extends L{constructor(t,e,i,s,n){super(),this.image=t,this.width=e,this.height=i,this.x=s,this.y=n}path(t){t.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(t){C(t,{x:this.x,y:this.y}),C(t,{x:this.width,y:this.height})}}class J extends S{constructor(){super(...arguments),this._operations=[],this.blendMode=s.b.NORMAL,this._hasShadows=!1}clear(){super.clear(),this._operations.length=0}_pushOp(t){this._operations.push(t)}beginFill(t,e=1){this._fillAlpha=e,t?t instanceof n.Il?this._pushOp(new R(t.toCSS(e))):(this.isMeasured=!0,this._pushOp(new R(t))):this._pushOp(new R("rgba(0, 0, 0, "+e+")"))}endFill(){this._pushOp(new U(this._hasShadows))}endStroke(){this._pushOp(new B)}beginPath(){this._pushOp(new A)}lineStyle(t=0,e,i=1,s,r){this._strokeAlpha=i,e?e instanceof n.Il?this._pushOp(new F(t,e.toCSS(i),s,r)):this._pushOp(new F(t,e,s,r)):this._pushOp(new F(t,"rgba(0, 0, 0, "+i+")",s,r))}setLineDash(t){this._pushOp(new I(t||[]))}setLineDashOffset(t=0){this._pushOp(new H(t))}drawRect(t,e,i,s){this._pushOp(new z(t,e,i,s))}drawCircle(t,e,i){this._pushOp(new G(t,e,i))}drawEllipse(t,e,i,s){this._pushOp(new V(t,e,i,s))}arc(t,e,i,s,n,r=!1){this._pushOp(new W(t,e,i,s,n,r))}arcTo(t,e,i,s,n){this._pushOp(new Y(t,e,i,s,n))}lineTo(t,e){this._pushOp(new j(t,e))}moveTo(t,e){this._pushOp(new X(t,e))}bezierCurveTo(t,e,i,s,n,r){this._pushOp(new Z(t,e,i,s,n,r))}quadraticCurveTo(t,e,i,s){this._pushOp(new K(t,e,i,s))}closePath(){this._pushOp(new $)}shadow(t,e=0,i=0,s=0,n){this._hasShadows=!0,this._pushOp(new q(n?t.toCSS(n):t.toCSS(this._fillAlpha||this._strokeAlpha),e,i,s))}image(t,e,i,s,n){this._pushOp(new Q(t,e,i,s,n))}svgPath(t){let e=0,i=0,s=null,n=null,r=null,o=null;const a=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,h=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g,l=this._operations.length;try{let l;for(;null!==(l=a.exec(t));){const t=l[1],a=l[2],u=[];for(;null!==(l=h.exec(a));)u.push(l[1]);switch("S"!==t&&"s"!==t&&"C"!==t&&"c"!==t&&(s=null,n=null),"Q"!==t&&"q"!==t&&"T"!==t&&"t"!==t&&(r=null,o=null),t){case"M":b(t,u.length,2),e=+u[0],i=+u[1],this.moveTo(e,i);for(let t=2;t{this.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y),e=t.x,i=t.y}))}break;case"Z":case"z":v(t,u.length,0),this.closePath()}}}catch(e){this._operations.length=l,console.warn("Error when parsing svgPath:\n "+e.message+"\n"+t)}}_runPath(t){t.beginPath(),c.each(this._operations,(e=>{e.path(t)}))}_render(t,e=0){super._render(t);const i=t.layer.dirty,s=this._isInteractive(t),n=this._ghostOnly(e),r=this._drawGhost(t,e);if(i||s||n){const e=t.layer.context,s=this._renderer._ghostLayer.context;let o;i&&!n&&(e.globalCompositeOperation=this.blendMode,e.beginPath()),r&&(s.beginPath(),o=this._getColorId()),c.each(this._operations,(t=>{i&&!n&&(t.path(e),t.colorize(e,void 0)),r&&(t.pathGhost(s),t.colorizeGhost(s,o))}))}}renderDetached(t){if(this.visible){this._setMatrix(),t.save();const e=this.mask;e&&(e._setMatrix(),e._transform(t,1),e._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transform(t,1),this.filter&&(t.filter=this.filter),t.globalCompositeOperation=this.blendMode,t.beginPath(),c.each(this._operations,(e=>{e.path(t),e.colorize(t,void 0)})),t.restore()}}_addBounds(t){this.visible&&this.isMeasured&&c.each(this._operations,(e=>{e.addBounds(t)}))}}class tt extends S{constructor(t,e,i){super(t),this.resolution=1,this.textVisible=!0,this._originalScale=1,this.text=e,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_shared(t){this.style.textAlign&&(t.textAlign=this.style.textAlign),this.style.direction&&(t.direction=this.style.direction),this.style.textBaseline&&(t.textBaseline=this.style.textBaseline)}_prerender(t,e=!1,i=!1){super._render(t);const s=t.layer.context,r=this._renderer._ghostLayer.context,o=this.style;let a=this._getFontStyle(void 0,i);s.font=a,this._isInteractive(t)&&!e&&(r.font=a),o.fill&&(o.fill instanceof n.Il?s.fillStyle=o.fill.toCSS(null!=o.fillOpacity?o.fillOpacity:1):s.fillStyle=o.fill),o.shadowColor&&(t.layer.context.shadowColor=o.shadowColor.toCSS(o.shadowOpacity||1)),o.shadowBlur&&(t.layer.context.shadowBlur=o.shadowBlur),o.shadowOffsetX&&(t.layer.context.shadowOffsetX=o.shadowOffsetX),o.shadowOffsetY&&(t.layer.context.shadowOffsetY=o.shadowOffsetY),this._shared(s),this._isInteractive(t)&&!e&&(r.fillStyle=this._getColorId(),this._shared(r))}_getFontStyle(t,e=!1){const i=this.style;let s=[];return t&&t.fontVariant?s.push(t.fontVariant):i.fontVariant&&s.push(i.fontVariant),e||(t&&t.fontWeight?s.push(t.fontWeight):i.fontWeight&&s.push(i.fontWeight)),t&&t.fontStyle?s.push(t.fontStyle):i.fontStyle&&s.push(i.fontStyle),t&&t.fontSize?(d.isNumber(t.fontSize)&&(t.fontSize=t.fontSize+"px"),s.push(t.fontSize)):i.fontSize&&(d.isNumber(i.fontSize)&&(i.fontSize=i.fontSize+"px"),s.push(i.fontSize)),t&&t.fontFamily?s.push(t.fontFamily):i.fontFamily?s.push(i.fontFamily):s.length&&s.push("Arial"),s.join(" ")}_render(t,e=0){if(this._textInfo||this._measure(t),this.textVisible){const i=this._isInteractive(t),s=t.layer.context,r=t.layer.dirty,o=this._renderer._ghostLayer.context,a=this._ghostOnly(e),l=this._drawGhost(t,e);s.save(),o.save(),this._prerender(t),c.each(this._textInfo,((e,u)=>{c.each(e.textChunks,((c,u)=>{if(c.style&&(s.save(),o.save(),a||(s.font=c.style),this._isInteractive(t)&&(o.font=c.style)),c.fill&&(s.save(),a||(s.fillStyle=c.fill.toCSS())),r&&!a&&s.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),"underline"==c.textDecoration||"line-through"==c.textDecoration){let t=1,i=1,r=c.height;const o=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(o)>-1){const t=this._measureText(c.text,s);c.width=t.actualBoundingBoxLeft+t.actualBoundingBoxRight}let l,u=c.offsetX;switch(this.style.textAlign){case"right":case"end":u-=c.width;break;case"center":u-=c.width/2}if(c.style)switch(h.V.getTextStyle(c.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":t=2}r&&(i=r/20),l="line-through"==c.textDecoration?t+e.offsetY+c.offsetY-c.height/2:t+1.5*i+e.offsetY+c.offsetY,a||(s.save(),s.beginPath(),c.fill?s.strokeStyle=c.fill.toCSS():this.style.fill&&this.style.fill instanceof n.Il&&(s.strokeStyle=this.style.fill.toCSS()),s.lineWidth=t*i,s.moveTo(u,l),s.lineTo(u+c.width,l),s.stroke(),s.restore())}i&&this.interactive&&l&&o.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),c.fill&&s.restore(),c.style&&(s.restore(),o.restore())}))})),s.restore(),o.restore()}}_addBounds(t){if(this.visible&&this.isMeasured){const e=this._measure({inactive:this.inactive,layer:this.getLayer()});C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction;this._textInfo=[];const n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=d.isNumber(r)&&("wrap"==n||"wrap-no-break"==n);e.save(),i.save(),this._prerender(t,!0,this._ignoreFontWeight());const p="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",g=this.text.toString().replace(/\r/g,"").split(/\n/);let f,_=!0,m=0,y=0,v=0;c.each(g,((t,s)=>{let n;for(n=""==t?[{type:"value",text:""}]:h.V.chunk(t,!1,this.style.ignoreFormatting);n.length>0;){let t={offsetY:v,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const s=this._measureText(p,e),g=s.actualBoundingBoxAscent+s.actualBoundingBoxDescent;let w;t.height=g,t.ascent=s.actualBoundingBoxAscent;let b,x,D,k=this.style.textDecoration,T=!1,M=!0,E=[];c.eachContinue(n,((s,o)=>{if("format"==s.type)if("[/]"==s.text)_||(e.restore(),i.restore(),_=!0),b=void 0,f=void 0,x=void 0,k=this.style.textDecoration,D=void 0,w=s.text;else{_||(e.restore(),i.restore());let n=h.V.getTextStyle(s.text);const r=this._getFontStyle(n);e.save(),i.save(),e.font=r,f=r,w=s.text,n.textDecoration&&(k=n.textDecoration),n.fill&&(b=n.fill),n.width&&(x=d.toNumber(n.width)),n.verticalAlign&&(D=n.verticalAlign),_=!1;const o=this._measureText(p,e),a=o.actualBoundingBoxAscent+o.actualBoundingBoxDescent;a>t.height&&(t.height=a),o.actualBoundingBoxAscent>t.ascent&&(t.ascent=o.actualBoundingBoxAscent)}else if("value"==s.type&&!T){const i=this._measureText(s.text,e);let h=i.actualBoundingBoxLeft+i.actualBoundingBoxRight;if(a){this.truncated=void 0;let i=M||this.style.breakWords||!1;const n=this.style.ellipsis||"",o=this._measureText(n,e),a=o.actualBoundingBoxLeft+o.actualBoundingBoxRight;if(t.width+h>r){const o=r-t.width-a;s.text=this._truncateText(e,s.text,o,i),s.text+=n,T=!0,this.truncated=!0}}else if(u&&t.width+h>r){const i=r-t.width,a=this._truncateText(e,s.text,i,!1,M&&"wrap-no-break"!=this.style.oversizedBehavior);if(""==a)return this.textVisible=!0,!1;E=n.slice(o+1),l.trim(a)!=l.trim(s.text)&&(E.unshift({type:"value",text:s.text.substr(a.length)}),w&&E.unshift({type:"format",text:w})),s.text=l.trim(a),n=[],T=!0}let c=1,d=1;if(f&&x&&x>h){const t=h/x;switch(this.style.textAlign){case"right":case"end":c=t;break;case"center":c=t,d=t;break;default:d=t}h=x}const p=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent;p>t.height&&(t.height=p),i.actualBoundingBoxAscent>t.ascent&&(t.ascent=i.actualBoundingBoxAscent),t.width+=h,t.left+=i.actualBoundingBoxLeft/c,t.right+=i.actualBoundingBoxRight/d,t.textChunks.push({style:f,fill:b,text:s.text,width:h,height:p,left:i.actualBoundingBoxLeft,right:i.actualBoundingBoxRight,ascent:i.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:k,verticalAlign:D}),M=!1}return!0})),this.style.lineHeight instanceof o.gG?(t.height*=this.style.lineHeight.value,t.ascent*=this.style.lineHeight.value):(t.height*=this.style.lineHeight||1.2,t.ascent*=this.style.lineHeight||1.2),m{let i=0;c.each(t.textChunks,(e=>{if(e.offsetX=i+e.left-t.left,e.offsetY+=t.height-t.height*(this.style.baselineRatio||.19),i+=e.width*(s?-1:1),e.verticalAlign)switch(e.verticalAlign){case"super":e.offsetY-=t.height/2-e.height/2;break;case"sub":e.offsetY+=e.height/2}}))}));const w={left:s?-y:-m,top:0,right:s?m:y,bottom:v};if("none"!==n){const t=this._fitRatio(w);if(t<1)if("fit"==n)d.isNumber(this.style.minScale)&&ti&&""!=e);return e}_measureText(t,e){let i=e.measureText(t),s={};if(null==i.actualBoundingBoxAscent){const e=document.createElement("div");e.innerText=t,e.style.visibility="hidden",e.style.position="absolute",e.style.top="-1000000px;",e.style.fontFamily=this.style.fontFamily||"",e.style.fontSize=this.style.fontSize+"",document.body.appendChild(e);const n=e.getBoundingClientRect();document.body.removeChild(e);const r=n.height,o=i.width;s={actualBoundingBoxAscent:r,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:o,fontBoundingBoxAscent:r,fontBoundingBoxDescent:0,width:o}}else s={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const n=i.width;switch(this.style.textAlign){case"right":case"end":s.actualBoundingBoxLeft=n,s.actualBoundingBoxRight=0;break;case"center":s.actualBoundingBoxLeft=n/2,s.actualBoundingBoxRight=n/2;break;default:s.actualBoundingBoxLeft=0,s.actualBoundingBoxRight=n}return s}}class et{constructor(){this.lineHeight=(0,o.aQ)(120),this.baselineRatio=.19,this.oversizedBehavior="none",this.breakWords=!1,this.ellipsis="…",this.ignoreFormatting=!1}}class it extends tt{constructor(){super(...arguments),this.textType="circular",this.inside=!1,this.orientation="auto",this.kerning=0,this._textReversed=!1}_render(t,e=0){"circular"===this.textType?this._renderCircular(t,e):super._render(t,e)}_renderCircular(t,e=0){if(this.textVisible){this._prerender(t);const i=this._isInteractive(t),s=t.layer.context,n=t.layer.dirty,r=this._renderer._ghostLayer.context;s.save(),i&&r.save(),this._textInfo||this._measure(t);let o=this.radius||0,a=this.startAngle||0,h=0,l=this.orientation,u="auto"==l?"auto":"inward"==l;const d=this.inside,g=this.style.textAlign||"left",f=this.kerning||0;let _="left"==g?1:-1;const m=!this._textReversed,y=this._ghostOnly(e),v=this._drawGhost(t,e);if("auto"==u){let t=0,e=0;c.each(this._textInfo,((e,i)=>{const s=a+e.width/(o-e.height)/2*-_;s>t&&(t=s)})),e="left"==g?(t+h/2)*p.DEGREES:"right"==g?(t-h/2)*p.DEGREES:a*p.DEGREES,e=p.normalizeAngle(e),u=e>=270||e<=90}1==u&&m&&(this._textInfo.reverse(),this._textReversed=!0),c.each(this._textInfo,((t,e)=>{const l=t.height;d||(o+=l),(-1==_&&u||1==_&&!u)&&m&&t.textChunks.reverse();let p=a;h=0,"center"==g&&(p+=t.width/(o-l)/2*-_,h=p-a),p+=Math.PI*(u?0:1),s.save(),i&&r.save(),y||s.rotate(p),i&&r.rotate(p);let w=0;c.each(t.textChunks,((t,e)=>{const a=t.text,h=t.width;w=h/2/(o-l)*_,y||s.rotate(w),i&&r.rotate(w),t.style&&(s.save(),r.save(),y||(s.font=t.style),i&&(r.font=t.style)),t.fill&&(s.save(),y||(s.fillStyle=t.fill.toCSS())),y||(s.textBaseline="middle",s.textAlign="center"),i&&(r.textBaseline="middle",r.textAlign="center"),n&&!y&&s.fillText(a,0,(u?1:-1)*(0-o+l/2)),i&&v&&r.fillText(a,0,(u?1:-1)*(0-o+l/2)),t.fill&&s.restore(),t.style&&(s.restore(),r.restore()),w=(h/2+f)/(o-l)*_,y||s.rotate(w),i&&r.rotate(w)})),s.restore(),i&&r.restore(),d&&(o-=l)})),s.restore(),i&&r.restore()}}_measure(t){return"circular"===this.textType?this._measureCircular(t):super._measure(t)}_measureCircular(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction,n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=this.style.ellipsis||"";let p;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,e.save(),i.save(),this._prerender(t,!0);const g=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,_=0,m=0;return c.each(g,((t,n)=>{let g,y,v,w=h.V.chunk(t,!1,this.style.ignoreFormatting),b={offsetY:m,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};c.each(w,((t,n)=>{if("format"==t.type){if("[/]"==t.text)f||(e.restore(),i.restore(),f=!0),y=void 0,g=void 0,v=void 0;else{let s=h.V.getTextStyle(t.text);const n=this._getFontStyle(s);e.save(),i.save(),e.font=n,g=n,s.fill&&(y=s.fill),s.width&&(v=d.toNumber(s.width)),f=!1}a&&(p=this._measureText(u,e))}else if("value"==t.type){let i=t.text.match(/./gu)||[];s&&(i=l.splitString(t.text),i.reverse());for(let t=0;to&&(o=v);const h=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;if(h>b.height&&(b.height=h),n.actualBoundingBoxAscent>b.ascent&&(b.ascent=n.actualBoundingBoxAscent),_+=o,a){p||(p=this._measureText(u,e));const t=p.actualBoundingBoxLeft+p.actualBoundingBoxRight;if(_+t>r){1==b.textChunks.length?this.textVisible=!1:(b.width+=t,b.left+=p.actualBoundingBoxLeft,b.right+=p.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:u,width:t,height:h+p.actualBoundingBoxDescent,left:p.actualBoundingBoxLeft,right:p.actualBoundingBoxRight,ascent:p.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0}));break}}b.width+=o,b.left+=n.actualBoundingBoxLeft,b.right+=n.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:s,width:o,height:h+n.actualBoundingBoxDescent,left:n.actualBoundingBoxLeft,right:n.actualBoundingBoxRight,ascent:n.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0})}}})),this.style.lineHeight instanceof o.gG?b.height*=this.style.lineHeight.value:b.height*=this.style.lineHeight||1.2,this._textInfo.push(b),m+=b.height})),f||(e.restore(),i.restore()),"hide"==n&&_>r&&(this.textVisible=!1),c.each(this._textInfo,(t=>{c.each(t.textChunks,(e=>{e.offsetY+=Math.round((t.height-e.height+(t.ascent-e.ascent))/2)}))})),e.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class st extends S{constructor(t,e){super(t),this.image=e}_dispose(){super._dispose(),this._imageMask&&E(this._imageMask)}getLocalBounds(){if(!this._localBounds){let t=0,e=0;this.width&&(t=this.width),this.height&&(e=this.height),this._localBounds={left:0,top:0,right:t,bottom:e},this._addBounds(this._localBounds)}return this._localBounds}_render(t,e=0){if(super._render(t),this.image){if(void 0===this.tainted&&(this.tainted=M(this.image),t.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;const i=this._ghostOnly(e),s=this._drawGhost(t,e);if(t.layer.dirty&&!i){this.shadowColor&&(t.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(t.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(t.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(t.layer.context.shadowOffsetY=this.shadowOffsetY);const e=this.width||this.image.naturalWidth,i=this.height||this.image.naturalHeight;t.layer.context.drawImage(this.image,0,0,e,i)}if(this.interactive&&this._isInteractive(t)&&s){const t=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(t,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(t){if(void 0===this._imageMask){const e=this.width||t.naturalWidth,i=this.height||t.naturalHeight,s=document.createElement("canvas");s.width=e,s.height=i;const n=s.getContext("2d");n.imageSmoothingEnabled=!1,n.fillStyle=this._getColorId(),n.fillRect(0,0,e,i),M(t)||(n.globalCompositeOperation="destination-in",n.drawImage(t,0,0,e,i)),this._imageMask=s}return this._imageMask}}class nt{constructor(t,e,i,s){this.event=t,this.originalPoint=e,this.point=i,this.bbox=s,this.simulated=!1,this.native=!0,l.supports("touchevents")&&t instanceof Touch?this.id=t.identifier:this.id=null}}class rt extends a.rk{constructor(t){if(super(),this.view=document.createElement("div"),this._layerDom=document.createElement("div"),this.layers=[],this._dirtyLayers=[],this.defaultLayer=this.getLayer(0),this._ghostLayer=new ot,this._deferredGhostLayers=[],this._patternCanvas=document.createElement("canvas"),this._patternContext=this._patternCanvas.getContext("2d"),this._realWidth=0,this._realHeight=0,this._calculatedWidth=0,this._calculatedHeight=0,this.interactionsEnabled=!0,this._listeners={},this._events={},this._colorId=0,this._colorMap={},this._forceInteractive=0,this._omitTainted=!1,this._hovering=new Set,this._dragging=[],this._mousedown=[],this.tapToActivate=!1,this.tapToActivateTimeout=3e3,this._touchActive=!1,this.resolution=null==t?window.devicePixelRatio:t,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new a.ku((()=>{u.each(this._events,((t,e)=>{e.disposer.dispose()})),c.each(this.layers,(t=>{E(t.view),t.exportableView&&E(t.exportableView)})),E(this._ghostLayer.view),E(this._patternCanvas)}))),this._disposers.push(l.onZoom((()=>{null==t&&(this.resolution=window.devicePixelRatio)}))),l.supports("touchevents")){const t=t=>{0!==this._dragging.length&&c.eachContinue(this._dragging,(e=>!e.value.shouldCancelTouch()||(t.preventDefault(),!1))),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(l.addEventListener(window,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchmove",(()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()}),{passive:!0})),this._disposers.push(l.addEventListener(window,"click",(t=>{this._touchActive=!1}),{passive:!0})),this._disposers.push(l.addEventListener(this.view,"click",(t=>{window.setTimeout((()=>{this._touchActive=!0,this._delayTouchDeactivate()}),100)}),{passive:!0}))}l.supports("wheelevents")&&this._disposers.push(l.addEventListener(this.view,"wheel",(t=>{let e=!1;this._hovering.forEach((t=>{if(t.wheelable)return e=!0,!1})),e&&t.preventDefault()}),{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout((()=>{this._touchActive=!1}),this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(t){t?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(t,e,i,s){return this.defaultLayer.context.createLinearGradient(t,e,i,s)}createRadialGradient(t,e,i,s,n,r){return this.defaultLayer.context.createRadialGradient(t,e,i,s,n,r)}createPattern(t,e,i,s,n){return this._patternCanvas.width=s,this._patternCanvas.height=n,this._patternContext.clearRect(0,0,s,n),e.renderDetached(this._patternContext),t.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new N(this)}makeGraphics(){return new J(this)}makeText(t,e){return new tt(this,t,e)}makeTextStyle(){return new et}makeRadialText(t,e){return new it(this,t,e)}makePicture(t){return new st(this,t)}resizeLayer(t){t.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(t,e,i,s){this._realWidth=t,this._realHeight=e,this._calculatedWidth=i,this._calculatedHeight=s,c.each(this.layers,(t=>{t&&(t.dirty=!0,this.resizeLayer(t))})),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(t=!1){const e=document.createElement("canvas"),i=e.getContext("2d",{willReadFrequently:t}),s=new at(e,i);return e.style.position="absolute",e.style.top="0px",e.style.left="0px",s}getLayerByOrder(t){const e=this.layers,i=e.length;for(let s=0;st.order>e.order?1:t.order{t&&t.dirty&&t.visible&&(this._dirtyLayers.push(t),t.clear())})),this._ghostLayer.clear(),t.render({inactive:null,layer:this.defaultLayer});const e=this._deferredGhostLayers;if(e.length&&(e.sort(((t,e)=>t-e)),c.each(e,(e=>{t.render({inactive:null,layer:this.defaultLayer},e)}))),this._ghostLayer.context.restore(),c.each(this.layers,(t=>{if(t){const e=t.context;e.beginPath(),e.moveTo(0,0),e.stroke()}})),c.each(this._dirtyLayers,(t=>{t.context.restore(),t.dirty=!1})),this._hovering.size&&this._lastPointerMoveEvent){const{events:t,target:e,native:i}=this._lastPointerMoveEvent;c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))}}paintId(t){const e=function(t){const e=[0,0,0];for(let i=0;i<24;i++)e[i%3]<<=1,e[i%3]|=1&t,t>>=1;return(0|e[0])+(e[1]<<8)+(e[2]<<16)}(++this._colorId),i=n.Il.fromHex(e).toCSS();return this._colorMap[i]=t,i}_removeObject(t){void 0!==t._colorId&&delete this._colorMap[t._colorId]}_adjustBoundingBox(t){const e=this._ghostLayer.margin;return new DOMRect(-e.left,-e.top,t.width+e.left+e.right,t.height+e.top+e.bottom)}getEvent(t,e=!0){const i=this.view.getBoundingClientRect(),s=t.clientX||0,n=t.clientY||0,r=this._calculatedWidth/this._realWidth,o=this._calculatedHeight/this._realHeight,a={x:s-i.left,y:n-i.top},h={x:(s-(e?i.left:0))*r,y:(n-(e?i.top:0))*o};return new nt(t,a,h,this._adjustBoundingBox(i))}_getHitTarget(t,e,i){if(0===e.width||0===e.height||t.xe.right||t.ye.bottom)return;if(!i||!this._layerDom.contains(i))return;const s=this._ghostLayer.getImageData(t,e);if(0===s.data[0]&&0===s.data[1]&&0===s.data[2])return!1;const r=n.Il.fromRGB(s.data[0],s.data[1],s.data[2]).toCSS();return this._colorMap[r]}getObjectAtPoint(t){const e=this._ghostLayer.getImageArray(t);if(0===e[0]&&0===e[1]&&0===e[2])return;const i=n.Il.fromRGB(e[0],e[1],e[2]).toCSS();return this._colorMap[i]}_withEvents(t,e){const i=this._events[t];if(void 0!==i){i.dispatching=!0;try{e(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,c.keepIf(i.callbacks,(t=>!t.disposed)),0===i.callbacks.length&&(i.disposer.dispose(),delete this._events[t]))}}}_dispatchEventAll(t,e){this.interactionsEnabled&&this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.callback.call(t.context,e)}))}))}_dispatchEvent(t,e,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.object!==e||(t.callback.call(t.context,i),s=!0)}))})),s}_dispatchMousedown(t,e){const i=t.button;if(0!=i&&2!=i&&1!=i&&void 0!==i)return;const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);if(n){const t=s.id;let e=!1;k(n,(i=>{const n={id:t,value:i};return this._mousedown.push(n),!e&&this._dispatchEvent("pointerdown",i,s)&&(e=!0,this._dragging.some((e=>e.value===i&&e.id===t))||this._dragging.push(n)),!0}))}}_dispatchGlobalMousemove(t,e,i){const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);s.native=i,n?(this._hovering.forEach((t=>{t.contains(n)||(this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s))})),s.native&&k(n,(t=>(this._hovering.has(t)||(this._hovering.add(t),t.cursorOverStyle&&(t._replacedCursorStyle=l.getStyle(document.body,"cursor"),l.setStyle(document.body,"cursor",t.cursorOverStyle)),this._dispatchEvent("pointerover",t,s)),!0)))):(this._hovering.forEach((t=>{t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s)})),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(t){this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle)}_dispatchGlobalMouseup(t,e){const i=this.getEvent(t);i.native=e,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(t){if(0!==this._dragging.length){const e=this.getEvent(t),i=e.id;this._dragging.forEach((t=>{t.id===i&&this._dispatchEvent("pointermove",t.value,e)}))}}_dispatchDragEnd(t,e){const i=t.button;let s;if(0==i||void 0===i)s="click";else if(2==i)s="rightclick";else{if(1!=i)return;s="middleclick"}const n=this.getEvent(t),r=n.id;if(0!==this._mousedown.length){const t=this._getHitTarget(n.originalPoint,n.bbox,e);t&&this._mousedown.forEach((e=>{e.id===r&&e.value.contains(t)&&this._dispatchEvent(s,e.value,n)})),this._mousedown.length=0}0!==this._dragging.length&&(this._dragging.forEach((t=>{t.id===r&&this._dispatchEvent("pointerup",t.value,n)})),this._dragging.length=0)}_dispatchDoubleClick(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("dblclick",t,i)))}_dispatchWheel(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("wheel",t,i)))}_makeSharedEvent(t,e){if(void 0===this._listeners[t]){const i=e();this._listeners[t]=new a.DM((()=>{delete this._listeners[t],i.dispose()}))}return this._listeners[t].increment()}_onPointerEvent(t,e){let i=!1,s=null;function n(){s=null,i=!1}return new a.FV([new a.ku((()=>{null!==s&&clearTimeout(s),n()})),l.addEventListener(this.view,l.getRendererEvent(t),(t=>{i=!0,null!==s&&clearTimeout(s),s=window.setTimeout(n,0)})),T(window,t,((t,n)=>{null!==s&&(clearTimeout(s),s=null),e(t,n,i),i=!1}))])}_initEvent(t){switch(t){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",(()=>{const t=(t,e,i)=>{this._lastPointerMoveEvent={events:t,target:e,native:i},c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))};return new a.FV([this._onPointerEvent("pointerdown",t),this._onPointerEvent("pointermove",t)])}));case"globalpointerup":return this._makeSharedEvent("pointerup",(()=>{const t=this._onPointerEvent("pointerup",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}})),e=this._onPointerEvent("pointercancel",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}}));return new a.ku((()=>{t.dispose(),e.dispose()}))}));case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",(()=>{const t=this._onPointerEvent("pointerdown",((t,e)=>{c.each(t,(t=>{this._dispatchMousedown(t,e)}))})),e=this._onPointerEvent("pointermove",(t=>{c.each(t,(t=>{this._dispatchDragMove(t)}))})),i=this._onPointerEvent("pointerup",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))})),s=this._onPointerEvent("pointercancel",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))}));return new a.ku((()=>{t.dispose(),e.dispose(),i.dispose(),s.dispose()}))}));case"dblclick":return this._makeSharedEvent("dblclick",(()=>this._onPointerEvent("dblclick",((t,e)=>{c.each(t,(t=>{this._dispatchDoubleClick(t,e)}))}))));case"wheel":return this._makeSharedEvent("wheel",(()=>l.addEventListener(this.view,l.getRendererEvent("wheel"),(t=>{this._dispatchWheel(t,l.getEventTarget(t))}),{passive:!1})))}}_addEvent(t,e,i,s){let n=this._events[e];void 0===n&&(n=this._events[e]={disposer:this._initEvent(e),callbacks:[],dispatching:!1,cleanup:!1});const r={object:t,context:s,callback:i,disposed:!1};return n.callbacks.push(r),new a.ku((()=>{r.disposed=!0,n.dispatching?n.cleanup=!0:(c.removeFirst(n.callbacks,r),0===n.callbacks.length&&(n.disposer.dispose(),delete this._events[e]))}))}getCanvas(t,e){this.render(t),e||(e={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),n=Math.floor(this._calculatedHeight*this.resolution);if(e.minWidth&&e.minWidth>s){let t=e.minWidth/s;t>i&&(i=t*this.resolution)}if(e.minHeight&&e.minHeight>n){let t=e.minHeight/n;t>i&&(i=t*this.resolution)}if(e.maxWidth&&e.maxWidthn){let t=e.maxHeight/n;t{if(t&&t.visible&&(t.tainted||o)){d=!0,t.exportableView=t.view,t.exportableContext=t.context,t.view=document.createElement("canvas"),t.view.style.position="fixed",t.view.style.top="-10000px",this.view.appendChild(t.view),r.push(t.view);let e=0,o=0;t.margin&&(e+=t.margin.left||0+t.margin.right||0,o+=t.margin.top||0+t.margin.bottom||0),t.view.width=s+e,t.view.height=n+o,t.context=t.view.getContext("2d"),t.dirty=!0,t.scale=i}})),d&&(this._omitTainted=!0,this.render(t),this._omitTainted=!1),c.each(this.layers,(t=>{if(t&&t.visible){let e=0,i=0;t.margin&&(e=-(t.margin.left||0)*this.resolution,i=-(t.margin.top||0)*this.resolution),h.drawImage(t.view,e,i),t.exportableView&&(t.view=t.exportableView,t.exportableView=void 0),t.exportableContext&&(t.context=t.exportableContext,t.exportableContext=void 0),l{t.style.position="",t.style.top="",this.view.removeChild(t)})),a}}class ot{constructor(){this.margin={left:0,right:0,top:0,bottom:0},this._resolution=1,this._width=0,this._height=0,this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(t,e,i,s,n){this._resolution=n,t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(t,e){return this.context.getImageData(Math.round((t.x-e.left)/e.width*this._width),Math.round((t.y-e.top)/e.height*this._height),1,1)}getImageArray(t){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const e=this.imageArray,i=Math.round(t.x*this._resolution),s=4*(Math.round(t.y*this._resolution)*this._width+i);return[e[s],e[s+1],e[s+2],e[s+3]]}setMargin(t){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,c.each(t,(t=>{t.margin&&(this.margin.left=Math.max(this.margin.left,t.margin.left),this.margin.right=Math.max(this.margin.right,t.margin.right),this.margin.top=Math.max(this.margin.top,t.margin.top),this.margin.bottom=Math.max(this.margin.bottom,t.margin.bottom))}))}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class at{constructor(t,e){this.tainted=!0,this.order=0,this.visible=!0,this.dirty=!0,this._width=0,this._height=0,this.view=t,this.context=e}resize(t,e,i,s,n){null!=this.width&&(t=this.width,i=this.width),null!=this.height&&(e=this.height,s=this.height),this.margin?(t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}},4680:function(t,e,i){"use strict";var s;i.d(e,{b:function(){return s}}),function(t){t.ADD="lighter",t.COLOR="color",t.COLOR_BURN="color-burn",t.COLOR_DODGE="color-dodge",t.DARKEN="darken",t.DIFFERENCE="difference",t.DST_OVER="destination-over",t.EXCLUSION="exclusion",t.HARD_LIGHT="hard-light",t.HUE="hue",t.LIGHTEN="lighten",t.LUMINOSITY="luminosity",t.MULTIPLY="multiply",t.NORMAL="source-over",t.OVERLAY="overlay",t.SATURATION="saturation",t.SCREEN="screen",t.SOFT_LIGHT="soft-light",t.SRC_ATOP="source-atop",t.XOR="xor"}(s||(s={}))},1437:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}getFill(t){return{addColorStop:(t,e)=>{}}}_changed(){super._changed()}getBounds(t){const e=this.get("target");if(e){let i=e.globalBounds();const s=t.toLocal({x:i.left,y:i.top}),n=t.toLocal({x:i.right,y:i.top}),r=t.toLocal({x:i.right,y:i.bottom}),o=t.toLocal({x:i.left,y:i.bottom});return{left:Math.min(s.x,n.x,r.x,o.x),top:Math.min(s.y,n.y,r.y,o.y),right:Math.max(s.x,n.x,r.x,o.x),bottom:Math.max(s.y,n.y,r.y,o.y)}}return t._display.getLocalBounds()}}n.className="Gradient",n.classNames=s.JH.classNames.concat([n.className])},1747:function(t,e,i){"use strict";i.d(e,{o:function(){return h}});var s=i(1437),n=i(1112),r=i(5071),o=i(5040),a=i(751);class h extends s.p{getFill(t){const e=this.get("rotation",0);let i=this.getBounds(t),s=i.left||0,h=i.right||0,l=i.top||0,c=i.bottom||0,u=a.cos(e),d=a.sin(e),p=u*(h-s),g=d*(c-l);0==p&&(p=1),0==g&&(g=1);let f=Math.max(p,g);const _=this._root._renderer.createLinearGradient(s,l,s+f*u,l+f*d),m=this.get("stops");if(m){let t=0;r.each(m,(e=>{let i=e.offset;o.isNumber(i)||(i=t/(m.length-1));let s=e.opacity;o.isNumber(s)||(s=1);let r=e.color;if(r){const t=e.lighten;t&&(r=n.Il.lighten(r,t));const o=e.brighten;o&&(r=n.Il.brighten(r,o)),_.addColorStop(i,"rgba("+r.r+","+r.g+","+r.b+","+s+")")}t++}))}return _}}h.className="LinearGradient",h.classNames=s.p.classNames.concat([h.className])},3035:function(t,e,i){"use strict";i.d(e,{y:function(){return r}});var s=i(3437),n=i(5040);class r extends s.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("width",100),e=this.get("height",100),i=this.get("gap",0),s=this.get("strokeWidth",1);if(i){let n=i+s,r=e/n,o=this.get("angle",0)*Math.PI/180;if(0===o)for(let e=-r;e<2*r;e++){const i=Math.round(e*n-n/2)+.5;this._display.moveTo(-t,i),this._display.lineTo(2*t,i)}else{const i=Math.cos(o),s=Math.sin(o),r=2*Math.sqrt(t*t+e*e),a=n/Math.max(Math.abs(i),Math.abs(s)),h=2*Math.ceil(r/a);for(let t=-h;t0&&(r.beginFill(s,n),r.drawRect(0,0,e,i),r.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,r,t,e,i)}this._clear=!1}}n.className="Pattern",n.classNames=s.JH.classNames.concat([n.className])},4429:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(3437);class n extends s.c{_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const t=this.get("canvas");t&&(this.set("width",t.width),this.set("height",t.height))}_draw(){super._draw();const t=this.get("colorOpacity");void 0!==t&&(this._display.alpha=Math.max(0,t));const e=this._image;if(e){const t=this.get("width",100),i=this.get("height",100),s=this.get("fit","image");let n=0,r=0;"pattern"==s?(n=t,r=i,this.markDirty()):(n=e.width,r=e.height,"image"==s&&(this.set("width",n),this.set("height",r)));let o=0,a=0;this.get("centered",!0)&&(o=t/2-n/2,a=i/2-r/2),this._display.image(e,n,r,o,a)}const i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){const t=this.get("src");if(t){const e=new Image;e.src=t,e.decode().then((()=>{this._image=e,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{}))}}}n.className="PicturePattern",n.classNames=s.c.classNames.concat([n.className])},6490:function(t,e,i){"use strict";i.d(e,{SR:function(){return s},Wn:function(){return u},XG:function(){return p},ne:function(){return h},w6:function(){return l}});var s,n=i(7582),r=i(6245),o=i(1112),a=i(256);function h(t){return(0,n.mG)(this,void 0,void 0,(function*(){if(void 0!==t){const e=[];a.each(t,((t,i)=>{e.push(i.waitForStop())})),yield Promise.all(e)}}))}function l(t,e,i){return e+t*(i-e)}function c(t,e,i){return t>=1?i:e}function u(t,e,i){return new r.gG(l(t,e.percent,i.percent))}function d(t,e,i){return o.Il.interpolate(t,e,i)}function p(t,e){return"number"==typeof t&&"number"==typeof e?l:t instanceof r.gG&&e instanceof r.gG?u:t instanceof o.Il&&e instanceof o.Il?d:c}!function(t){t[t.Stopped=0]="Stopped",t[t.Playing=1]="Playing",t[t.Paused=2]="Paused"}(s||(s={}))},5071:function(t,e,i){"use strict";i.r(e),i.d(e,{add:function(){return v},any:function(){return r},copy:function(){return k},each:function(){return a},eachContinue:function(){return l},eachReverse:function(){return h},find:function(){return S},findIndex:function(){return O},findIndexReverse:function(){return P},findMap:function(){return C},findReverse:function(){return N},first:function(){return d},getFirstSortedIndex:function(){return R},getSortedIndex:function(){return A},has:function(){return D},indexOf:function(){return n},insert:function(){return p},insertIndex:function(){return M},keepIf:function(){return U},last:function(){return u},map:function(){return o},move:function(){return y},pushAll:function(){return f},pushOne:function(){return w},remove:function(){return _},removeFirst:function(){return m},removeIndex:function(){return E},replace:function(){return b},setIndex:function(){return g},shiftLeft:function(){return c},shuffle:function(){return L},slice:function(){return T},toArray:function(){return x}});var s=i(5040);function n(t,e){const i=t.length;for(let s=0;s0;)--i,e(t[i],i)}function l(t,e){const i=t.length;for(let s=0;s0;)if(--i,e(t[i],i))return i;return-1}function S(t,e){const i=O(t,e);if(-1!==i)return t[i]}function N(t,e){const i=P(t,e);if(-1!==i)return t[i]}function C(t,e){const i=t.length;for(let s=0;s>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,i=r+1):s=r}return{found:n,index:n?i-1:i}}function R(t,e){let i=0,s=t.length,n=!1;for(;i>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,s=r):s=r}return{found:n,index:i}}function U(t,e){let i=t.length;for(;i>0;)--i,e(t[i])||t.splice(i,1)}},1112:function(t,e,i){"use strict";i.d(e,{$_:function(){return a},Il:function(){return h}});var s=i(6490),n=i(7652),r=i(5040);function o(t){return"#"===t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0].repeat(2)+t[1].repeat(2)+t[2].repeat(2)),parseInt(t,16)}function a(t){return h.fromAny(t)}class h{constructor(t){this._hex=0|t}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return 255&this._hex}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+n.padString(this.r.toString(16),2)+n.padString(this.g.toString(16),2)+n.padString(this.b.toString(16),2)}toHSL(t=1){return n.rgbToHsl({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,e,i){const s=n.hslToRgb({h:t,s:e,l:i});return this.fromRGB(s.r,s.g,s.b)}toString(){return this.toCSSHex()}static fromHex(t){return new h(t)}static fromRGB(t,e,i){return new h((0|i)+(e<<8)+(t<<16))}static fromString(t){return new h(o(t))}static fromCSS(t){return new h(function(t){let e=(t=t.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return 0;let i="";for(let t=1;t<=3;t++){let s=parseInt(e[t]).toString(16);1==s.length&&(s="0"+s),i+=s}return o(i)}(t))}static fromAny(t){if(r.isString(t)){if("#"==t[0])return h.fromString(t);if("rgb"==t.substr(0,3))return h.fromCSS(t)}else{if(r.isNumber(t))return h.fromHex(t);if(t instanceof h)return h.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,e,i){const s=n.alternativeColor({r:t.r,g:t.g,b:t.b},e?{r:e.r,g:e.g,b:e.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(s.r,s.g,s.b)}static interpolate(t,e,i,n="rgb"){if("hsl"==n){const n=e.toHSL(),r=i.toHSL();return h.fromHSL((0,s.w6)(t,n.h,r.h),(0,s.w6)(t,n.s,r.s),(0,s.w6)(t,n.l,r.l))}return h.fromRGB((0,s.w6)(t,e.r,i.r),(0,s.w6)(t,e.g,i.g),(0,s.w6)(t,e.b,i.b))}static lighten(t,e){const i=n.lighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static brighten(t,e){const i=n.brighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static saturate(t,e){const i=n.saturate({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}}},2754:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});var s=i(6331),n=i(1112);class r extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const t=this.getPrivate("currentPass"),e=this.get("colors",[this.get("baseColor",n.Il.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",e.length);const i=this.getPrivate("numColors"),s=this.get("passOptions"),r=this.get("reuse");for(let o=0;o1;)r-=1;let a=i.s+(s.saturation||0)*t;a>1&&(a=1),a<0&&(a=0);let h=i.l+(s.lightness||0)*t;for(;h>1;)h-=1;e.push(n.Il.fromHSL(r,a,h))}}getIndex(t){const e=this.get("colors",[]),i=this.get("saturation");return t>=e.length?(this.generateColors(),this.getIndex(t)):null!=i?n.Il.saturate(e[t],i):e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}r.className="ColorSet",r.classNames=s.JH.classNames.concat([r.className])},9582:function(t,e,i){"use strict";i.d(e,{Q:function(){return r},k:function(){return n}});var s=i(7144);class n extends s.aV{incrementRef(){}decrementRef(){}_onPush(t){this.processor&&this.processor.processRow(t),super._onPush(t)}_onInsertIndex(t,e){this.processor&&this.processor.processRow(e),super._onInsertIndex(t,e)}_onSetIndex(t,e,i){this.processor&&this.processor.processRow(i),super._onSetIndex(t,e,i)}}class r{constructor(t){this._value=t}incrementRef(){}decrementRef(){}}},6460:function(t,e,i){"use strict";i.d(e,{C:function(){return h}});var s=i(6331),n=i(7255),r=i(462),o=i(5040),a=i(7652);class h extends s.JH{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i=!1){let s;void 0!==e&&""!==e||(e=this.get("dateFormat","yyyy-MM-dd"));let n=t;if(o.isObject(e))try{const t=this.get("intlLocales");return t?new Intl.DateTimeFormat(t,e).format(n):new Intl.DateTimeFormat(void 0,e).format(n)}catch(t){return"Invalid"}let r=this.parseFormat(e);const a=this._root.timezone;let h=n;return!a||this._root.utc||i||(n=a.convertLocal(n)),o.isNumber(n.getTime())?(s=this.applyFormat(n,r,i,h),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s):"Invalid date"}applyFormat(t,e,i=!1,s){let n,h,l,c,u,d,p,g,f=e.template,_=t.getTime();this._root.utc&&!i?(n=t.getUTCFullYear(),h=t.getUTCMonth(),l=t.getUTCDay(),c=t.getUTCDate(),u=t.getUTCHours(),d=t.getUTCMinutes(),p=t.getUTCSeconds(),g=t.getUTCMilliseconds()):(n=t.getFullYear(),h=t.getMonth(),l=t.getDay(),c=t.getDate(),u=t.getHours(),d=t.getMinutes(),p=t.getSeconds(),g=t.getMilliseconds());for(let i=0,m=e.parts.length;i=12?this._t("PM"):this._t("AM");break;case"aa":m=u>=12?this._t("P.M."):this._t("A.M.");break;case"aaa":m=u>=12?this._t("P"):this._t("A");break;case"h":m=a.get12Hours(u).toString();break;case"hh":m=a.padString(a.get12Hours(u),2,"0");break;case"H":m=u.toString();break;case"HH":m=a.padString(u,2,"0");break;case"K":m=a.get12Hours(u,0).toString();break;case"KK":m=a.padString(a.get12Hours(u,0),2,"0");break;case"k":m=(u+1).toString();break;case"kk":m=a.padString(u+1,2,"0");break;case"m":m=d.toString();break;case"mm":m=a.padString(d,2,"0");break;case"s":m=p.toString();break;case"ss":m=a.padString(p,2,"0");break;case"S":case"SS":case"SSS":m=Math.round(g/1e3*Math.pow(10,e.parts[i].length)).toString();break;case"x":m=_.toString();break;case"n":case"nn":case"nnn":m=a.padString(g,e.parts[i].length,"0");break;case"z":m=a.getTimeZone(s||t,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":m=a.getTimeZone(s||t,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":m=a.getTimeZone(s||t,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":m=a.getTimeZone(s||t,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let f=this._root.utc?"UTC":this._root.timezone;f instanceof r.r&&(f=f.name);const y=f?a.getTimezoneOffset(f,s||t):t.getTimezoneOffset();let v=Math.abs(y)/60,w=Math.floor(v),b=60*v-60*w;this._root.utc&&(w=0,b=0),"Z"==e.parts[i]?(m="GMT",m+=y>0?"-":"+",m+=a.padString(w,2)+":"+a.padString(b,2)):(m=y>0?"-":"+",m+=a.padString(w,2)+a.padString(b,2));break;case"i":m=t.toISOString();break;case"I":m=t.toUTCString()}f=f.replace(o.PLACEHOLDER,m)}return f}parseFormat(t){let e={template:"",parts:[]},i=n.V.chunk(t,!0);for(let t=0;t-1&&(l.year=parseInt(p[h.year])),h.year3>-1){let t=parseInt(p[h.year3]);t+=1e3,l.year=t}if(h.year2>-1){let t=parseInt(p[h.year2]);t+=t>50?1e3:2e3,l.year=t}if(h.year1>-1){let t=parseInt(p[h.year1]);t=10*Math.floor((new Date).getFullYear()/10)+t,l.year=t}if(h.monthLong>-1&&(l.month=this.resolveMonth(p[h.monthLong])),h.monthShort>-1&&(l.month=this.resolveShortMonth(p[h.monthShort])),h.month>-1&&(l.month=parseInt(p[h.month])-1),h.week>-1&&-1===h.day&&(l.month=0,l.day=a.getDayFromWeek(parseInt(p[h.week]),l.year,1,i)),h.day>-1&&(l.day=parseInt(p[h.day])),h.yearDay>-1&&(l.month=0,l.day=parseInt(p[h.yearDay])),h.hourBase0>-1&&(l.hour=parseInt(p[h.hourBase0])),h.hourBase1>-1&&(l.hour=parseInt(p[h.hourBase1])-1),h.hour12Base0>-1){let t=parseInt(p[h.hour12Base0]);11==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.hour12Base1>-1){let t=parseInt(p[h.hour12Base1]);12==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.minute>-1&&(l.minute=parseInt(p[h.minute])),h.second>-1&&(l.second=parseInt(p[h.second])),h.millisecond>-1){let t=parseInt(p[h.millisecond]);2==h.millisecondDigits?t*=10:1==h.millisecondDigits&&(t*=100),l.millisecond=t}if(h.timestamp>-1){l.timestamp=parseInt(p[h.timestamp]);const t=new Date(l.timestamp);l.year=t.getUTCFullYear(),l.month=t.getUTCMonth(),l.day=t.getUTCDate(),l.hour=t.getUTCHours(),l.minute=t.getUTCMinutes(),l.second=t.getUTCSeconds(),l.millisecond=t.getUTCMilliseconds()}h.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.zone])),h.iso>-1&&(l.year=o.toNumber(p[h.iso+0]),l.month=o.toNumber(p[h.iso+1])-1,l.day=o.toNumber(p[h.iso+2]),l.hour=o.toNumber(p[h.iso+3]),l.minute=o.toNumber(p[h.iso+4]),l.second=o.toNumber(p[h.iso+5]),l.millisecond=o.toNumber(p[h.iso+6]),"Z"==p[h.iso+7]||"z"==p[h.iso+7]?l.utc=!0:""!=p[h.iso+7]&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.iso+7]))),s=l.utc?new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else s=new Date(t);return s}resolveTimezoneOffset(t,e){if(e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let i=e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),s=i[1],n=i[2],r=i[3],o=60*parseInt(n)+parseInt(r);return"+"==s&&(o*=-1),o-(t||new Date).getTimezoneOffset()}return 0}resolveMonth(t){let e=this._months().indexOf(t);return e>-1||!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._months()).indexOf(t),e>-1)?e:0}resolveShortMonth(t){let e=this._shortMonths().indexOf(t);return e>-1?e:(e=this._months().indexOf(t),e>-1||this._root.language&&!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._shortMonths()).indexOf(t),e>-1)?e:0)}isAm(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1}getStringList(t){let e=[];for(let i=0;i{t.dispose()}))}}class a extends n{constructor(t){super(),this._disposers=t}_dispose(){s.each(this._disposers,(t=>{t.dispose()}))}get disposers(){return this._disposers}}class h extends n{_dispose(){null!=this._disposer&&(this._disposer.dispose(),this._disposer=void 0)}get(){return this._value}set(t,e){null!=this._disposer&&this._disposer.dispose(),this._disposer=e,this._value=t}reset(){this.set(void 0,void 0)}}class l extends r{constructor(){super(...arguments),this._counter=0}increment(){return++this._counter,new r((()=>{--this._counter,0===this._counter&&this.dispose()}))}}},798:function(t,e,i){"use strict";i.d(e,{$:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{constructor(){super(...arguments),this._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}}_setDefaults(){const t="_duration_millisecond",e="_duration_second",i="_duration_minute",s="_duration_hour",n="_duration_day",r="_duration_week",o="_duration_month",a="_minute",h="_hour",l="_day",c="_week",u="_week",d="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(t),second:this._t(t+"_second"),minute:this._t(t+a),hour:this._t(t+h),day:this._t(t+l),week:this._t(t+c),month:this._t(t+u),year:this._t(t+d)},second:{second:this._t(e),minute:this._t(e+a),hour:this._t(e+h),day:this._t(e+l),week:this._t(e+c),month:this._t(e+u),year:this._t(e+d)},minute:{minute:this._t(i),hour:this._t(i+h),day:this._t(i+l),week:this._t(i+c),month:this._t(i+u),year:this._t(i+d)},hour:{hour:this._t(s),day:this._t(s+l),week:this._t(s+c),month:this._t(s+u),year:this._t(s+d)},day:{day:this._t(n),week:this._t(n+c),month:this._t(n+u),year:this._t(n+d)},week:{week:this._t(r),month:this._t(r+u),year:this._t(r+d)},month:{month:this._t(o),year:this._t(o+d)},year:{year:this._t("_duration_year")}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s=i||this.get("baseUnit");void 0!==e&&""!==e||(e=null!=this.get("durationFormat")?this.get("durationFormat"):this.getFormat(a.toNumber(t),void 0,s)),e=o.cleanFormat(e);let n,r=this.parseFormat(e,s),h=Number(t);n=h>this.get("negativeBase")?r.positive:h{if(e.parsed)return;let i=e.source,s=[];s=e.source.match(/^\[([^\]]*)\]/),s&&s.length&&""!==s[0]&&(i=e.source.substr(s[0].length),e.color=s[1]);let r=n.V.chunk(i,!0);for(let t=0;t{"millisecond"==t&&1e3==i?(h.second++,h.millisecond=0):"second"==t&&60==i?(h.minute++,h.second=0):"minute"==t&&60==i?(h.hour++,h.minute=0):"hour"==t&&24==i?(h.day++,h.hour=0):"day"==t&&7==i&&-1!==e.parts.indexOf("w")?(h.week++,h.day=0):"day"==t&&30==i?(h.month++,h.day=0):"month"==t&&12==i&&(h.year++,h.month=0)}));for(let t=0,i=e.parts.length;t{if(t==e||i){if(s/n<=1)return i||(i=t),!1;i=t}return!0})),i}getMilliseconds(t,e){return e||(e=this.get("baseUnit")),t*this._getUnitValue(e)}_getUnitValue(t){return this._getUnitValues()[t]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}},9395:function(t,e,i){"use strict";i.r(e),i.d(e,{bounce:function(){return k},circle:function(){return c},cubic:function(){return o},elastic:function(){return P},exp:function(){return h},inOut:function(){return p},linear:function(){return n},out:function(){return d},pow:function(){return a},quad:function(){return r},sine:function(){return l},yoyo:function(){return u}});var s=i(751);function n(t){return t}function r(t){return t*t}function o(t){return t*t*t}function a(t,e){return Math.pow(t,e)}function h(t){return Math.pow(2,10*t-10)}function l(t){return 1-Math.cos(t*s.HALFPI)}function c(t){return 1-Math.sqrt(1-t*t)}function u(t){return function(e){return t(e<.5?2*e:2*(1-e))}}function d(t){return function(e){return 1-t(1-e)}}function p(t){return function(e){return e<=.5?t(2*e)/2:1-t(2*(1-e))/2}}let g=4/11,f=6/11,_=8/11,m=3/4,y=9/11,v=10/11,w=15/16,b=21/22,x=63/64,D=1/g/g;function k(t){return 1-function(t){return t{this._userSettings[t]=!0}))}get(t,e){const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._settings[t]=e}set(t,e){this._userSettings[t]=!0,this.setRaw(t,e)}remove(t){delete this._userSettings[t],delete this._settings[t]}setAll(t){o.entries(t).forEach((([t,e])=>{this.set(t,e)}))}_eachSetting(t){o.each(this._settings,t)}apply(){const t={stateAnimationEasing:!0,stateAnimationDuration:!0},e=this._entity.states.lookup("default");this._eachSetting(((i,s)=>{t[i]||(t[i]=!0,this!==e&&(i in e._settings||(e._settings[i]=this._entity.get(i))),this._entity.set(i,s))}))}applyAnimate(t){null==t&&(t=this._settings.stateAnimationDuration),null==t&&(t=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let e=this._settings.stateAnimationEasing;null==e&&(e=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",a.cubic)));const i=this._entity.states.lookup("default"),s={stateAnimationEasing:!0,stateAnimationDuration:!0},n={};return this._eachSetting(((r,o)=>{if(!s[r]){s[r]=!0,this!=i&&(r in i._settings||(i._settings[r]=this._entity.get(r)));const a=this._entity.animate({key:r,to:o,duration:t,easing:e});a&&(n[r]=a)}})),n}}class l{constructor(t){this._states={},this._entity=t}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new h(this._entity,e);return this._states[t]=i,i}}remove(t){delete this._states[t]}apply(t){const e=this._states[t];e&&e.apply(),this._entity._applyState(t)}applyAnimate(t,e){let i;const s=this._states[t];return s&&(i=s.applyAnimate(e)),this._entity._applyStateAnimated(t,e),i}}var c=i(3145),u=i(5071),d=i(3540);class p{constructor(t){this._callbacks={},this._disabled={},this._entity=t}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),this._entity._markDirtyKey(t),new s.ku((()=>{u.removeFirst(i,e)&&this._entity._markDirtyKey(t)}))}remove(t){const e=this._callbacks[t];void 0!==e&&(delete this._callbacks[t],0!==e.length&&this._entity._markDirtyKey(t))}enable(t){this._disabled[t]&&(delete this._disabled[t],this._entity._markDirtyKey(t))}disable(t){this._disabled[t]||(this._disabled[t]=!0,this._entity._markDirtyKey(t))}fold(t,e){if(!this._disabled[t]){const i=this._callbacks[t];if(void 0!==i)for(let s=0,n=i.length;s{if(this._stopped)t();else{const e=()=>{i.dispose(),t()},i=this.events.on("stopped",e)}}))}_checkEnded(){return!(this._loops>1&&(--this._loops,1))}_run(t){null!==this._oldTime&&(this._time+=t-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=t}_reset(t){this._oldTime=t,this._time=0}_value(t){return this._interpolate(this._easing(t),this._from,this._to)}}let f=0;class _{constructor(t){this.uid=++f,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._prevSettings={},this._prevPrivateSettings={},this._animatingSettings={},this._animatingPrivateSettings={},this._disposed=!1,this._userProperties={},this.enableDispose=!0,this._settings=t}_checkDirty(){o.keys(this._settings).forEach((t=>{this._userProperties[t]=!0,this._markDirtyKey(t)}))}resetUserSettings(){this._userProperties={}}_runAnimation(t){let e=r.SR.Stopped;if(!this.isDisposed()){let i=!1,s=!1;o.each(this._animatingSettings,((e,n)=>{if(n.stopped)this._stopAnimation(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.set(e,n._value(1)):(i=!0,n._reset(t),this._set(e,n._value(1))):(i=!0,this._set(e,n._value(s)))}else s=!0})),o.each(this._animatingPrivateSettings,((e,n)=>{if(n.stopped)this._stopAnimationPrivate(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.setPrivate(e,n._value(1)):(i=!0,n._reset(t),this._setPrivate(e,n._value(1))):(i=!0,this._setPrivate(e,n._value(s)))}else s=!0})),i?e=r.SR.Playing:s&&(e=r.SR.Paused)}return e}_markDirtyKey(t){this.markDirty()}_markDirtyPrivateKey(t){this.markDirty()}on(t,e){let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}off(t,e){let i=this._settingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._settingEvents[t]}onPrivate(t,e){let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}offPrivate(t,e){let i=this._privateSettingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._privateSettingEvents[t]}getRaw(t,e){const i=this._settings[t];return void 0!==i?i:e}has(t){return t in this._settings}get(t,e){return this.getRaw(t,e)}_sendKeyEvent(t,e){const i=this._settingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_sendPrivateKeyEvent(t,e){const i=this._privateSettingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_setRaw(t,e,i){this._prevSettings[t]=e,this._sendKeyEvent(t,i)}setRaw(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&this._setRaw(t,i,e)}_set(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&(this._setRaw(t,i,e),this._markDirtyKey(t))}_stopAnimation(t){const e=this._animatingSettings[t];e&&(delete this._animatingSettings[t],e.stop())}set(t,e){return this._set(t,e),this._stopAnimation(t),e}remove(t){t in this._settings&&(this._prevSettings[t]=this._settings[t],delete this._settings[t],this._sendKeyEvent(t,void 0),this._markDirtyKey(t)),this._stopAnimation(t)}removeAll(){u.each(o.keys(this._settings),(t=>{this.remove(t)}))}getPrivate(t,e){const i=this._privateSettings[t];return void 0!==i?i:e}_setPrivateRaw(t,e,i){this._prevPrivateSettings[t]=e,this._sendPrivateKeyEvent(t,i)}setPrivateRaw(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&this._setPrivateRaw(t,i,e)}_setPrivate(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&(this._setPrivateRaw(t,i,e),this._markDirtyPrivateKey(t))}_stopAnimationPrivate(t){const e=this._animatingPrivateSettings[t];e&&(e.stop(),delete this._animatingPrivateSettings[t])}setPrivate(t,e){return this._setPrivate(t,e),this._stopAnimationPrivate(t),e}removePrivate(t){t in this._privateSettings&&(this._prevPrivateSettings[t]=this._privateSettings[t],delete this._privateSettings[t],this._markDirtyPrivateKey(t)),this._stopAnimationPrivate(t)}setAll(t){o.each(t,((t,e)=>{this.set(t,e)}))}animate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.get(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.set(e,i);else{if(void 0!==r&&r!==i){this.set(e,r);const t=this._animatingSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.set(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}animatePrivate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.getPrivate(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.setPrivate(e,i);else{if(void 0!==r&&r!==i){this.setPrivate(e,r);const t=this._animatingPrivateSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.setPrivate(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}}class m extends _{constructor(t,e,i,s=[]){if(super(e),this.states=new l(this),this.adapters=new p(this),this.events=this._createEvents(),this._userPrivateProperties={},this._dirty={},this._dirtyPrivate={},this._templates=[],this._defaultThemes=[],this._templateDisposers=[],this._disposers=[],this._runSetup=!0,this._disposerProperties={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t,this._internalTemplates=s,e.id&&this._registerId(e.id)}static new(t,e,i){const s=new this(t,e,!0);return s._template=i,s._afterNew(),s}static _new(t,e,i=[]){const s=new this(t,e,!0,i);return s._afterNew(),s}_afterNew(){this._checkDirty();let t=!1;const e=this._template;e&&(t=!0,e._setObjectTemplate(this)),u.each(this._internalTemplates,(e=>{t=!0,e._setObjectTemplate(this)})),t&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const t=this._template;t&&t._setObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._setObjectTemplate(this)})),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new n.p}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(t,e){const i=this.get(t);if(i)return i;{const i=e();return this.set(t,i),i}}_setDefault(t,e){this.has(t)||super.set(t,e)}_setRawDefault(t,e){this.has(t)||super.setRaw(t,e)}_clearDirty(){o.keys(this._dirty).forEach((t=>{this._dirty[t]=!1})),o.keys(this._dirtyPrivate).forEach((t=>{this._dirtyPrivate[t]=!1}))}isDirty(t){return!!this._dirty[t]}isPrivateDirty(t){return!!this._dirtyPrivate[t]}_markDirtyKey(t){this._dirty[t]=!0,super._markDirtyKey(t)}_markDirtyPrivateKey(t){this._dirtyPrivate[t]=!0,super._markDirtyKey(t)}isType(t){return-1!==this.classNames.indexOf(t)}_pushPropertyDisposer(t,e){let i=this._disposerProperties[t];return void 0===i&&(i=this._disposerProperties[t]=[]),i.push(e),e}_disposeProperty(t){const e=this._disposerProperties[t];void 0!==e&&(u.each(e,(t=>{t.dispose()})),delete this._disposerProperties[t])}set template(t){const e=this._template;e!==t&&(this._template=t,e&&e._removeObjectTemplate(this),t&&t._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(t){}_applyStateAnimated(t,e){}get(t,e){const i=this.adapters.fold(t,this._settings[t]);return void 0!==i?i:e}isUserSetting(t){return this._userProperties[t]||!1}set(t,e){return this._userProperties[t]=!0,super.set(t,e)}setRaw(t,e){this._userProperties[t]=!0,super.setRaw(t,e)}_setSoft(t,e){return this._userProperties[t]?e:super.set(t,e)}remove(t){delete this._userProperties[t],this._removeTemplateProperty(t)}setPrivate(t,e){return this._userPrivateProperties[t]=!0,super.setPrivate(t,e)}setPrivateRaw(t,e){this._userPrivateProperties[t]=!0,super.setPrivateRaw(t,e)}removePrivate(t){delete this._userPrivateProperties[t],this._removeTemplatePrivateProperty(t)}_setTemplateProperty(t,e,i){this._userProperties[e]||t===this._findTemplateByKey(e)&&super.set(e,i)}_setTemplatePrivateProperty(t,e,i){this._userPrivateProperties[e]||t===this._findTemplateByPrivateKey(e)&&super.setPrivate(e,i)}_removeTemplateProperty(t){if(!this._userProperties[t]){const e=this._findTemplateByKey(t);e?super.set(t,e._settings[t]):super.remove(t)}}_removeTemplatePrivateProperty(t){if(!this._userPrivateProperties[t]){const e=this._findTemplateByPrivateKey(t);e?super.setPrivate(t,e._privateSettings[t]):super.removePrivate(t)}}_walkParents(t){t(this._root._rootContainer),t(this)}_applyStateByKey(t){const e=this.states.create(t,{}),i={};this._eachTemplate((s=>{const n=s.states.lookup(t);n&&n._apply(e,i)})),o.each(e._settings,(t=>{i[t]||e._userSettings[t]||e.remove(t)}))}_applyTemplate(t,e){this._templateDisposers.push(t._apply(this,e)),o.each(t._settings,((t,i)=>{e.settings[t]||this._userProperties[t]||(e.settings[t]=!0,super.set(t,i))})),o.each(t._privateSettings,((t,i)=>{e.privateSettings[t]||this._userPrivateProperties[t]||(e.privateSettings[t]=!0,super.setPrivate(t,i))})),this._runSetup&&t.setup&&(this._runSetup=!1,t.setup(this))}_findStaticTemplate(t){if(this._template&&t(this._template))return this._template}_eachTemplate(t){this._findStaticTemplate((e=>(t(e),!1))),u.eachReverse(this._internalTemplates,t),u.each(this._templates,t)}_applyTemplates(t=!0){t&&this._disposeTemplates();const e={settings:{},privateSettings:{},states:{}};this._eachTemplate((t=>{this._applyTemplate(t,e)})),t&&(o.each(this._settings,(t=>{this._userProperties[t]||e.settings[t]||super.remove(t)})),o.each(this._privateSettings,(t=>{this._userPrivateProperties[t]||e.privateSettings[t]||super.removePrivate(t)})))}_findTemplate(t){const e=this._findStaticTemplate(t);if(void 0===e){const e=u.findReverse(this._internalTemplates,t);return void 0===e?u.find(this._templates,t):e}return e}_findTemplateByKey(t){return this._findTemplate((e=>t in e._settings))}_findTemplateByPrivateKey(t){return this._findTemplate((e=>t in e._privateSettings))}_disposeTemplates(){u.each(this._templateDisposers,(t=>{t.dispose()})),this._templateDisposers.length=0}_removeTemplates(){u.each(this._templates,(t=>{t._removeObjectTemplate(this)})),this._templates.length=0}_applyThemes(t=!1){if(this.get("ignoreThemes"))return!1;let e=!1;const i=[];let s=[];const n=new Set,r=this.get("themeTagsSelf");return r&&u.each(r,(t=>{n.add(t)})),this._walkParents((t=>{t===this._root._rootContainer&&(e=!0),t._defaultThemes.length>0&&i.push(t._defaultThemes);const r=t.get("themes");r&&s.push(r);const o=t.get("themeTags");o&&u.each(o,(t=>{n.add(t)}))})),s=i.concat(s),this._removeTemplates(),(e||t)&&u.eachReverse(this.classNames,(t=>{const e=[];u.each(s,(i=>{u.each(i,(i=>{const s=i._lookupRules(t);s&&u.eachReverse(s,(t=>{if(t.tags.every((t=>n.has(t)))){const i=u.getFirstSortedIndex(e,(e=>{const i=d.qu(t.tags.length,e.tags.length);return 0===i?d.wq(t.tags,e.tags,d.qu):i}));e.splice(i.index,0,t)}}))}))})),u.each(e,(t=>{this._templates.push(t.template),t.template._setObjectTemplate(this)}))})),this._applyTemplates(),(e||t)&&(this._runSetup=!1),e||t}_changed(){}_beforeChanged(){if(this.isDirty("id")){const t=this.get("id");t&&this._registerId(t);const e=this._prevSettings.id;e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}}_registerId(t){if(this._root.entitiesById[t]&&this._root.entitiesById[t]!==this)throw new Error('An entity with id "'+t+'" already exists.');this._root.entitiesById[t]=this,c.i_.entitiesById[t]=this}_afterChanged(){}addDisposer(t){return this._disposers.push(t),t}_dispose(){super._dispose();const t=this._template;t&&t._removeObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._removeObjectTemplate(this)})),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach((t=>{t.dispose()})),o.each(this._disposerProperties,((t,e)=>{u.each(e,(t=>{t.dispose()}))}));const e=this.get("id");e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}setTimeout(t,e){const i=setTimeout((()=>{this.removeDispose(n),t()}),e),n=new s.ku((()=>{clearTimeout(i)}));return this._disposers.push(n),n}removeDispose(t){if(!this.isDisposed()){let e=u.indexOf(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()}hasTag(t){return-1!==u.indexOf(this.get("themeTags",[]),t)}addTag(t){if(!this.hasTag(t)){const e=this.get("themeTags",[]);e.push(t),this.set("themeTags",e)}}removeTag(t){if(this.hasTag(t)){const e=this.get("themeTags",[]);u.remove(e,t),this.set("themeTags",e)}}_t(t,e,...i){return this._root.language.translate(t,e,...i)}get root(){return this._root}}m.className="Entity",m.classNames=["Entity"]},9770:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var s=i(7449),n=i(5071),r=i(5040);class o{constructor(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{n.each(t,(t=>{t.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}}hasListeners(){return 0!==this._listeners.length}hasListenersByType(t){return n.any(this._listeners,(e=>(null===e.type||e.type===t)&&!e.killed))}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(t){delete this._disabled[t]}disableType(t,e=1/0){this._disabled[t]=e}_removeListener(t){if(0===this._iterating){const e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)}_removeExistingListener(t,e,i,s){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((n=>{n.once!==t||n.type!==e||void 0!==i&&n.callback!==i||n.context!==s||n.disposer.dispose()}))}isEnabled(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&void 0===this._disabled[t]}removeType(t){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((e=>{e.type===t&&e.disposer.dispose()}))}has(t,e,i){return-1!==n.findIndex(this._listeners,(s=>!0!==s.once&&s.type===t&&(void 0===e||s.callback===e)&&s.context===i))}_shouldDispatch(t){if(this._disposed)throw new Error("EventDispatcher is disposed");const e=this._disabled[t];return r.isNumber(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled}_eachListener(t){++this._iterating;try{n.each(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(n.each(this._killed,(t=>{this._removeListener(t)})),this._killed.length=0)}}dispatch(t,e){this._shouldDispatch(t)&&this._eachListener((i=>{i.killed||null!==i.type&&i.type!==t||(i._debounceDelay?(i._debounceTimeout&&window.clearTimeout(i._debounceTimeout),i._debounceTimeout=window.setTimeout((()=>{i._debounceTimeout=void 0,i.killed||i.dispatch(t,e)}),i._debounceDelay)):i.dispatch(t,e))}))}_on(t,e,i,n,r,o,a){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);const h={type:e,callback:i,context:n,shouldClone:r,dispatch:o,killed:!1,once:t,disposer:new s.ku((()=>{h.killed=!0,h._debounceTimeout&&window.clearTimeout(h._debounceTimeout),this._removeListener(h)})),_debounceDelay:a};return this._listeners.push(h),h}onAll(t,e,i=!0){return this._on(!1,null,t,e,i,((i,s)=>t.call(e,s))).disposer}on(t,e,i,s=!0){return this._on(!1,t,e,i,s,((t,s)=>e.call(i,s))).disposer}onDebounced(t,e,i,s,n=!0){return this._on(!1,t,e,s,n,((t,i)=>e.call(s,i)),i).disposer}once(t,e,i,s=!0){const n=this._on(!0,t,e,i,s,((t,s)=>{n.disposer.dispose(),e.call(i,s)}));return n.disposer}off(t,e,i){this._removeExistingListener(!1,t,e,i)}copyFrom(t){if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const e=[];return n.each(t._listeners,(t=>{!t.killed&&t.shouldClone&&(null===t.type?e.push(this.onAll(t.callback,t.context)):t.once?e.push(this.once(t.type,t.callback,t.context)):e.push(this.on(t.type,t.callback,t.context)))})),new s.FV(e)}}},9821:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(6331);class n extends s.JH{}n.className="InterfaceColors",n.classNames=s.JH.classNames.concat([n.className])},7144:function(t,e,i){"use strict";i.d(e,{aV:function(){return o},dn:function(){return a},o:function(){return h}});var s=i(9770),n=i(5071);function r(t,e){if(!(t>=0&&t=0&&t{this.push(t)}))}copyFrom(t){this.pushAll(t._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(t){const e=this._values;this._values=[],this._onClear(e),n.each(t,(t=>{this._values.push(t),this._onPush(t)}))}clear(){this.setAll([])}*[Symbol.iterator](){const t=this._values.length;for(let e=0;e{t.dispose()})),super._onClear(t)}_dispose(){this.autoDispose&&n.each(this._values,(t=>{t.dispose()}))}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class h extends a{constructor(t,e){super(),this.template=t,this.make=e}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}}},751:function(t,e,i){"use strict";i.r(e),i.d(e,{DEGREES:function(){return a},HALFPI:function(){return r},PI:function(){return n},RADIANS:function(){return o},boundsOverlap:function(){return M},ceil:function(){return l},circlesOverlap:function(){return O},closest:function(){return T},cos:function(){return f},fitAngleToRange:function(){return w},fitToRange:function(){return d},getAngle:function(){return x},getArcBounds:function(){return m},getArcPoint:function(){return y},getCubicControlPointA:function(){return c},getCubicControlPointB:function(){return u},getPointOnLine:function(){return k},getPointOnQuadraticCurve:function(){return D},inBounds:function(){return b},mergeBounds:function(){return v},normalizeAngle:function(){return _},round:function(){return h},sin:function(){return p},spiralPoints:function(){return E},tan:function(){return g}});var s=i(5040);const n=Math.PI,r=n/2,o=n/180,a=180/n;function h(t,e,i){if(!(0,s.isNumber)(e)||e<=0){let e=Math.round(t);return i&&e-t==.5&&e--,e}{let i=Math.pow(10,e);return Math.round(t*i)/i}}function l(t,e){if(!(0,s.isNumber)(e)||e<=0)return Math.ceil(t);{let i=Math.pow(10,e);return Math.ceil(t*i)/i}}function c(t,e,i,s,n){return{x:(-t.x+e.x/s+i.x)*s,y:(-t.y+e.y/n+i.y)*n}}function u(t,e,i,s,n){return{x:(t.x+e.x/s-i.x)*s,y:(t.y+e.y/n-i.y)*n}}function d(t,e,i){return Math.min(Math.max(t,e),i)}function p(t){return Math.sin(o*t)}function g(t){return Math.tan(o*t)}function f(t){return Math.cos(o*t)}function _(t){return(t%=360)<0&&(t+=360),t}function m(t,e,i,s,n){let r=Number.MAX_VALUE,o=Number.MAX_VALUE,a=-Number.MAX_VALUE,h=-Number.MAX_VALUE,l=[];l.push(y(n,i)),l.push(y(n,s));let c=Math.min(90*Math.floor(i/90),90*Math.floor(s/90)),u=Math.max(90*Math.ceil(i/90),90*Math.ceil(s/90));for(let t=c;t<=u;t+=90)t>=i&&t<=s&&l.push(y(n,t));for(let t=0;ta&&(a=e.x),e.y>h&&(h=e.y)}return{left:t+r,top:e+o,right:t+a,bottom:e+h}}function y(t,e){return{x:t*f(e),y:t*p(e)}}function v(t){const e=t.length;if(e>0){let i=t[0],s=i.left,n=i.top,r=i.right,o=i.bottom;if(e>1)for(let a=1;ai){let t=e;e=i,i=t}t=_(t);let s=(e-_(e))/360;return ti&&(t-360>e?t-=360:t=te+(i-e)/2-180?e:i),t}function b(t,e){return t.x>=e.left&&t.y>=e.top&&t.x<=e.right&&t.y<=e.bottom}function x(t,e){e||(e={x:2*t.x,y:2*t.y});let i=e.x-t.x,s=e.y-t.y,n=Math.atan2(s,i)*a;return n<0&&(n+=360),_(n)}function D(t,e,i,s){return{x:(1-s)*(1-s)*t.x+2*(1-s)*s*i.x+s*s*e.x,y:(1-s)*(1-s)*t.y+2*(1-s)*s*i.y+s*s*e.y}}function k(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function T(t,e){return t.reduce((function(t,i){return Math.abs(i-e)e.left,s=t.tope.top;return i&&s}function E(t,e,i,s,n,r,h,l,c){let u=n+.01;l=_(l),c=_(c);let d=l*o;cu&&(o=2*u),o*=Math.max(.01,Math.min(1,u/200));let g=d*a,f={x:t+u*Math.cos(d),y:e+u*s/i*Math.sin(d)};if(p.push(f),u=n+.01+(g-l)/360*h,d+=2*Math.asin(o/2/u),d*a>c+360*Math.ceil((i-n)/h))break}return p.shift(),p}function O(t,e){return Math.hypot(t.x-e.x,t.y-e.y)<=t.radius+e.radius}},8219:function(t,e,i){"use strict";i.d(e,{u:function(){return a}});var s=i(6331),n=i(7652),r=i(7449);let o;class a extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._setRawDefault("deactivateRoot",!0),function(t,e,i){const s=e.interfaceColors,a=s.get("secondaryButton").toCSS(),h=s.get("text").toCSS(),l=s.get("alternativeBackground").toCSS(.45);if(!o){const i=new r.FV([new n.StyleRule(t,".am5-modal",{width:"100%",height:"100%",position:"absolute","z-index":"100000",top:"0",left:"0"},e.nonce),new n.StyleRule(t,".am5-modal-curtain",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute",background:s.get("background").toCSS(.5),"z-index":"100"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute","text-align":"center","white-space":"nowrap",background:s.get("background").toCSS(.5),"z-index":"101"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper:before",{content:"''",display:"inline-block",height:"100%","vertical-align":"middle","margin-right":"-0.25em"},e.nonce),new n.StyleRule(t,".am5-modal-content",{display:"inline-block",padding:"1.2em","vertical-align":"middle","text-align":"start","white-space":"normal",background:s.get("background").toCSS(),"border-radius":"4px","-webkit-box-shadow":"0px 0px 36px 0px "+l,"box-shadow":"0px 0px 36px 0px "+l,color:h},e.nonce),new n.StyleRule(t,".am5-modal-content h1",{"font-size":"1em",margin:"0 0 0.5em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table",{display:"table",margin:"1em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-row",{display:"table-row"},e.nonce),new n.StyleRule(t,".am5-modal-table-heading",{display:"table-heading",padding:"3px 10px 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell",{display:"table-cell",padding:"3px 0 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell > *",{"vertical-align":"middle"},e.nonce),new n.StyleRule(t,".am5-modal-content input[type=text], .am5-modal-content input[type=number], .am5-modal-content select",{border:"1px solid "+a,"border-radius":"4px",padding:"3px 5px",margin:"2px"},e.nonce),new n.StyleRule(t,".am5-modal-input-narrow",{width:"50px"},e.nonce),new n.StyleRule(t,".am5-modal-button",{"font-weight":"400",color:s.get("secondaryButtonText").toCSS(),"line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer",padding:"0.2em 0.8em","font-size":"1em","border-radius":"0.25em",margin:"0 0.25em 0 0",border:"1px solid "+s.get("secondaryButtonStroke").toCSS(),background:s.get("secondaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button:hover",{background:s.get("secondaryButtonHover").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary",{color:s.get("primaryButtonText").toCSS(),border:"1px solid "+s.get("primaryButtonStroke").toCSS(),background:s.get("primaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary:hover",{background:s.get("primaryButtonHover").toCSS()},e.nonce)]);o=new r.DM((()=>{o=void 0,i.dispose()}))}o.increment()}(n.getShadowRoot(this._root.dom),this._root);const t=document.createElement("div");t.className="am5-modal",t.style.display="none",this.root._inner.appendChild(t),this.setPrivate("container",t);const e=document.createElement("div");e.className="am5-modal-curtain",t.appendChild(e),this.setPrivate("curtain",e),this._disposers.push(n.addEventListener(e,"click",(()=>{this.cancel()})));const i=document.createElement("div");i.className="am5-modal-wrapper",t.appendChild(i),this.setPrivate("wrapper",i);const s=document.createElement("div");s.className="am5-modal-content",i.appendChild(s),this.setPrivate("content",s);const a=this.get("content");a&&(s.innerHTML=a),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{this.isOpen()&&"Escape"==n.getEventKey(t)&&this.cancel()})))}_beforeChanged(){super._beforeChanged(),this.isDirty("content")&&(this.getPrivate("content").innerHTML=this.get("content",""))}isOpen(){return"none"!=this.getPrivate("container").style.display}open(){this.getPrivate("container").style.display="block",this.get("deactivateRoot")&&this.setTimeout((()=>{this._root._renderer.interactionsEnabled=!1}),10),this.events.dispatch("opened",{type:"opened",target:this})}close(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("closed",{type:"closed",target:this})}cancel(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("cancelled",{type:"cancelled",target:this})}_dispose(){super._dispose();const t=this.getPrivate("container");t.parentElement&&t.parentElement.removeChild(t)}}a.className="Modal",a.classNames=s.JH.classNames.concat([a.className])},780:function(t,e,i){"use strict";i.d(e,{e:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const t="_big_number_suffix_",e="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(t+"3")},{number:1e6,suffix:this._t(t+"6")},{number:1e9,suffix:this._t(t+"9")},{number:1e12,suffix:this._t(t+"12")},{number:1e15,suffix:this._t(t+"15")},{number:1e18,suffix:this._t(t+"18")},{number:1e21,suffix:this._t(t+"21")},{number:1e24,suffix:this._t(t+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(e+"24")},{number:1e-21,suffix:this._t(e+"21")},{number:1e-18,suffix:this._t(e+"18")},{number:1e-15,suffix:this._t(e+"15")},{number:1e-12,suffix:this._t(e+"12")},{number:1e-9,suffix:this._t(e+"9")},{number:1e-6,suffix:this._t(e+"6")},{number:.001,suffix:this._t(e+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s;(null==e||a.isString(e)&&"number"===e.toLowerCase())&&(e=this.get("numberFormat",""));let n=Number(t);if(a.isObject(e))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),e).format(n):new Intl.NumberFormat(void 0,e).format(n)}catch(t){return"Invalid"}else{e=o.cleanFormat(e);let t,h=this.parseFormat(e,this._root.language);t=n>this.get("negativeBase")?h.positive:n{if(e.parsed)return;let i=e.source;"number"===i.toLowerCase()&&(i=this.get("numberFormat","#,###.#####"));let s=n.V.chunk(i,!0);for(let t=0;t=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(i[0]),n="e"+i[1],e.modSpacing&&(n=" "+n)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){const i=o.decimalPlaces(t);if(i>0){const s=Math.pow(10,e.decimals.passive);t=Math.round(parseFloat((t*s).toFixed(i)))/s}}let h="",l=a.numberToString(t).split("."),c=l[0];if(c.length0){let t=[],i=c.split("").reverse().join("");for(let s=0,n=c.length;s<=n;s+=e.thousands.interval){let n=i.substr(s,e.thousands.interval).split("").reverse().join("");""!==n&&t.unshift(n)}c=t.join(e.thousands.separator)}h+=c,1===l.length&&l.push("");let u=l[1];return u.length{e(i,t[i])}))}function l(t,e){for(let i in t)if(u(t,i)&&!e(i,t[i]))break}function c(t,e,i){s.each(o(t,i),(i=>{e(i,t[i])}))}function u(t,e){return{}.hasOwnProperty.call(t,e)}function d(t,e){return h(t,((t,i)=>{null!=i&&null==e[t]&&(e[t]=i)})),e}},3540:function(t,e,i){"use strict";function s(t,e){return t===e?0:t{a.isObject(e)&&"function"==typeof e.dispose&&(e.enableDispose=!0,e.dispose())}))}class l{constructor(t,e,i){this._name=t,this._template=e,this._settings=i}_dispose(){h(this._settings)}get(t,e){const i=this._settings[t];return void 0!==i?i:e}set(t,e){this._settings[t]=e,this._template._stateChanged(this._name)}remove(t){delete this._settings[t],this._template._stateChanged(this._name)}setAll(t){o.keys(t).forEach((e=>{this._settings[e]=t[e]})),this._template._stateChanged(this._name)}_apply(t,e){o.each(this._settings,((i,s)=>{e[i]||t._userSettings[i]||(e[i]=!0,t.setRaw(i,s))}))}}class c{constructor(t){this._states={},this._template=t}_dispose(){o.each(this._states,((t,e)=>{e._dispose()}))}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new l(t,this._template,e);return this._states[t]=i,this._template._stateChanged(t),i}}remove(t){delete this._states[t],this._template._stateChanged(t)}_apply(t,e){o.each(this._states,((i,s)=>{let n=e.states[i];null==n&&(n=e.states[i]={});const r=t.states.create(i,{});s._apply(r,n)}))}}class u{constructor(){this._callbacks={}}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._callbacks[t]}))}remove(t){void 0!==this._callbacks[t]&&delete this._callbacks[t]}_apply(t){const e=[];return o.each(this._callbacks,((i,s)=>{r.each(s,(s=>{e.push(t.adapters.add(i,s))}))})),new n.FV(e)}}class d{constructor(t,e){if(this._disposed=!1,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._entities=[],this.states=new c(this),this.adapters=new u,this.events=new s.p,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=t}static new(t){return new d(t,!0)}_dispose(){h(this._settings),h(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(t,e){this._checkDisposed();const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._checkDisposed(),this._settings[t]=e}set(t,e){this._checkDisposed(),this._settings[t]!==e&&(this.setRaw(t,e),this._entities.forEach((i=>{i._setTemplateProperty(this,t,e)})))}remove(t){this._checkDisposed(),t in this._settings&&(delete this._settings[t],this._entities.forEach((e=>{e._removeTemplateProperty(t)})))}removeAll(){this._checkDisposed(),o.each(this._settings,((t,e)=>{this.remove(t)}))}getPrivate(t,e){this._checkDisposed();const i=this._privateSettings[t];return void 0!==i?i:e}setPrivateRaw(t,e){return this._checkDisposed(),this._privateSettings[t]=e,e}setPrivate(t,e){return this._checkDisposed(),this._privateSettings[t]!==e&&(this.setPrivateRaw(t,e),this._entities.forEach((i=>{i._setTemplatePrivateProperty(this,t,e)}))),e}removePrivate(t){this._checkDisposed(),t in this._privateSettings&&(delete this._privateSettings[t],this._entities.forEach((e=>{e._removeTemplatePrivateProperty(t)})))}setAll(t){this._checkDisposed(),o.each(t,((t,e)=>{this.set(t,e)}))}on(t,e){this._checkDisposed();let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}onPrivate(t,e){this._checkDisposed();let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}_apply(t,e){this._checkDisposed();const i=[];return o.each(this._settingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.on(e,s))}))})),o.each(this._privateSettingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.onPrivate(e,s))}))})),this.states._apply(t,e),i.push(this.adapters._apply(t)),i.push(t.events.copyFrom(this.events)),new n.FV(i)}_setObjectTemplate(t){this._checkDisposed(),this._entities.push(t)}_removeObjectTemplate(t){r.remove(this._entities,t)}_stateChanged(t){this._checkDisposed(),this._entities.forEach((e=>{e._applyStateByKey(t)}))}}},7255:function(t,e,i){"use strict";i.d(e,{V:function(){return r}});var s=i(1112),n=i(5040);class r{static escape(t){return t.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(t){return t.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(t,e=!1,i=!1){let s=[];t=this.escape(t);let r=e?t.split("'"):[t];for(let t=0;t{setTimeout(e,t)}))}let o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629742400,year:31536e6};function a(t){switch(t){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function h(t,e){return null==e&&(e=1),o[t]*e}function l(t){return t?o[t.timeUnit]*t.count:0}function c(t,e,i,s,n){const r=t.timeUnit,a=t.count;if("hour"==r||"minute"==r||"second"==r||"millisecond"==r)return o[t.timeUnit]*t.count;{const t=m(new Date(e.getTime()),r,a,i,s,void 0,n).getTime();let o=t+a*h(r)*1.05;return o=m(new Date(o),r,1,i,s,void 0,n).getTime(),o-t}}function u(){return new Date}function d(){return u().getTime()}function p(t){return new Date(t.getTime())}function g(t,e,i,s,n){if(e-t>h(i,1.2))return!0;let r=new Date(t),o=new Date(e);n&&(r=n.convertLocal(r),o=n.convertLocal(o));let l=0,c=0;s||"millisecond"==i||(l=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-l),c=o.getTimezoneOffset(),o.setUTCMinutes(o.getUTCMinutes()-c));let u=!1;switch(i){case"year":r.getUTCFullYear()!=o.getUTCFullYear()&&(u=!0);break;case"month":(r.getUTCFullYear()!=o.getUTCFullYear()||r.getUTCMonth()!=o.getUTCMonth())&&(u=!0);break;case"day":(r.getUTCMonth()!=o.getUTCMonth()||r.getUTCDate()!=o.getUTCDate())&&(u=!0);break;case"hour":r.getUTCHours()!=o.getUTCHours()&&(u=!0);break;case"minute":r.getUTCMinutes()!=o.getUTCMinutes()&&(u=!0);break;case"second":r.getUTCSeconds()!=o.getUTCSeconds()&&(u=!0);break;case"millisecond":r.getTime()!=o.getTime()&&(u=!0)}if(u)return u;let d=a(i);return!!d&&g(t,e,d,s,n)}function f(t,e,i,s,n){let r=0;switch(s||"millisecond"==e||(r=t.getTimezoneOffset(),n&&(r-=n.offsetUTC(t)),t.setUTCMinutes(t.getUTCMinutes()-r)),e){case"day":let e=t.getUTCDate();t.setUTCDate(e+i);break;case"second":let s=t.getUTCSeconds();t.setUTCSeconds(s+i);break;case"millisecond":let n=t.getUTCMilliseconds();t.setUTCMilliseconds(n+i);break;case"hour":let r=t.getUTCHours();t.setUTCHours(r+i);break;case"minute":let o=t.getUTCMinutes();t.setUTCMinutes(o+i);break;case"year":let a=t.getUTCFullYear();t.setUTCFullYear(a+i);break;case"month":const h=t.getUTCDate(),l=new Date(t.getUTCFullYear(),t.getUTCMonth(),0).getUTCDate();let c=t.getUTCMonth();h>l?t.setUTCMonth(c+i,l):t.setUTCMonth(c+i);break;case"week":let u=t.getUTCDate();t.setUTCDate(u+7*i)}if(!s&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+r),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(n&&(e+=n.offsetUTC(t)),e!=r){let i=e-r;t.setUTCMinutes(t.getUTCMinutes()+i),t.getTimezoneOffset()!=e&&t.setUTCMinutes(t.getUTCMinutes()-i)}}return t}function _(t,e,i,s,n){let r;return null!=n&&(r=new Date(n)),m(new Date(t),e,i,s.locale.firstDayOfWeek,s.utc,r,s.timezone).getTime()}function m(t,e,i,n,r,o,a){if(!a||r){let a=0;switch(r||"millisecond"==e||(a=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-a)),e){case"day":let e=t.getUTCDate();if(i>1){if(o){o=m(o,"day",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),n=h("day",s*i);t.setTime(o.getTime()+n-a*h("minute"))}}else t.setUTCDate(e);t.setUTCHours(0,0,0,0);break;case"second":let r=t.getUTCSeconds();i>1&&(r=Math.floor(r/i)*i),t.setUTCSeconds(r,0);break;case"millisecond":if(1==i)return t;let l=t.getUTCMilliseconds();l=Math.floor(l/i)*i,t.setUTCMilliseconds(l);break;case"hour":let c=t.getUTCHours();i>1&&(c=Math.floor(c/i)*i),t.setUTCHours(c,0,0,0);break;case"minute":let u=t.getUTCMinutes();i>1&&(u=Math.floor(u/i)*i),t.setUTCMinutes(u,0,0);break;case"month":let d=t.getUTCMonth();i>1&&(2!=i&&3!=i&&4!=i&&6!=i||(d=Math.floor(d/i)*i)),t.setUTCMonth(d,1),t.setUTCHours(0,0,0,0);break;case"year":let p=t.getUTCFullYear();i>1&&(p=Math.floor(p/i)*i),t.setUTCFullYear(p,0,1),t.setUTCHours(0,0,0,0);break;case"week":if(i>1&&o){o=m(o,"week",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("week")/i),n=h("week",s*i);t.setTime(o.getTime()+n-a*h("minute"))}let g=t.getUTCDate(),f=t.getUTCDay();s.isNumber(n)||(n=1),g=f>=n?g-f+n:g-(7+f)+n,t.setUTCDate(g),t.setUTCHours(0,0,0,0)}if(!r&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+a),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(e!=a){let i=e-a;t.setUTCMinutes(t.getUTCMinutes()+i)}}return t}{if(isNaN(t.getTime()))return t;let l=t.getTime(),c=a.offsetUTC(t),u=t.getTimezoneOffset(),d=a.parseDate(t),p=d.year,g=d.month,f=d.day,_=d.hour,y=d.minute,v=d.second,w=d.millisecond,b=d.weekday,x=c-u;switch(e){case"day":if(i>1&&o){o=m(o,"day",1,n,r,void 0,a);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),l=h("day",s*i);t.setTime(o.getTime()+l),d=a.parseDate(t),p=d.year,g=d.month,f=d.day}_=0,y=x,v=0,w=0;break;case"second":y+=x,i>1&&(v=Math.floor(v/i)*i),w=0;break;case"millisecond":y+=x,i>1&&(w=Math.floor(w/i)*i);break;case"hour":i>1&&(_=Math.floor(_/i)*i),y=x,v=0,w=0;break;case"minute":i>1&&(y=Math.floor(y/i)*i),y+=x,v=0,w=0;break;case"month":i>1&&(g=Math.floor(g/i)*i),f=1,_=0,y=x,v=0,w=0;break;case"year":i>1&&(p=Math.floor(p/i)*i),g=0,f=1,_=0,y=x,v=0,w=0;break;case"week":s.isNumber(n)||(n=1),f=b>=n?f-b+n:f-(7+b)+n,_=0,y=x,v=0,w=0}const D=(t=new Date(p,g,f,_,y,v,w)).getTime();let k=36e5;"hour"==e&&(k=36e5*i),D+k<=l&&("hour"!=e&&"minute"!=e&&"second"!=e&&"millisecond"!=e||(t=new Date(D+k)));let T=t.getTimezoneOffset(),M=a.offsetUTC(t)-T;return M!=x&&t.setTime(t.getTime()+6e4*(M-x)),t}}function y(t,e,i,s){let n=l(s[t]),r=s.length-1;if(t>=r)return Object.assign({},s[r]);let o=Math.ceil(e/n);return e0?Object.assign({},s[t-1]):o<=i?Object.assign({},s[t]):t+1{switch(t.type){case"year":i=+t.value;break;case"month":s=+t.value-1;break;case"day":n=+t.value;break;case"hour":r=+t.value;break;case"minute":o=+t.value;break;case"second":a=+t.value;break;case"fractionalSecond":h=+t.value;break;case"weekday":switch(t.value){case"Sun":l=0;break;case"Mon":l=1;break;case"Tue":l=2;break;case"Wed":l=3;break;case"Thu":l=4;break;case"Fri":l=5;break;case"Sat":l=6}}})),24===r&&(r=0),{year:i,month:s,day:n,hour:r,minute:o,second:a,millisecond:h,weekday:l}}function n(t,e){const{year:i,month:n,day:r,hour:o,minute:a,second:h,millisecond:l}=s(t,e);return Date.UTC(i,n,r,o,a,h,l)}i.d(e,{r:function(){return r}});class r{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=t,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(t){return new this(t,!0)}convertLocal(t){const e=this.offsetUTC(t),i=t.getTimezoneOffset(),s=new Date(t);s.setUTCMinutes(s.getUTCMinutes()-(e-i));const n=s.getTimezoneOffset();return i!=n&&s.setUTCMinutes(s.getUTCMinutes()+n-i),s}offsetUTC(t){return(n(this._utc,t)-n(this._dtf,t))/6e4}parseDate(t){return s(this._dtf,t)}}},5040:function(t,e,i){"use strict";function s(t){return Number(t)!==t}function n(t){return{}.toString.call(t)}function r(t,e="Assertion failed"){if(!t)throw new Error(e)}function o(t){if(null!=t&&!d(t)){let e=Number(t);if(s(e)&&u(t)&&""!=t&&t.match(/[0-9]+/)){const i=t.replace(/[^0-9.\-]+/g,"");return t===i?e:o(i)}return e}return t}function a(t){if(c(t))return new Date(t);if(d(t))return new Date(t);{let e=Number(t);return d(e)?new Date(e):new Date(t)}}function h(t){if(s(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t==-1/0)return"-0";let e=t<0;t=Math.abs(t);let i,n=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t),r=n[1],o=n[2]||"";if(void 0===n[3])i=""===o?r:r+"."+o;else{let e=+n[3];if(t<1)i="0."+l("0",e-1)+r+o;else{let t=e-o.length;i=0===t?r+o:t<0?r+o.slice(0,t)+"."+o.slice(t):r+o+l("0",t)}}return e?"-"+i:i}function l(t,e){return new Array(e+1).join(t)}function c(t){return"[object Date]"===n(t)}function u(t){return"string"==typeof t}function d(t){return"number"==typeof t&&Number(t)==t}function p(t){return"object"==typeof t&&null!==t}function g(t){return Array.isArray(t)}i.r(e),i.d(e,{PLACEHOLDER:function(){return f},PLACEHOLDER2:function(){return _},assert:function(){return r},getType:function(){return n},isArray:function(){return g},isDate:function(){return c},isNaN:function(){return s},isNumber:function(){return d},isObject:function(){return p},isString:function(){return u},numberToString:function(){return h},repeat:function(){return l},toDate:function(){return a},toNumber:function(){return o}});const f="__§§§__",_="__§§§§__"},7652:function(t,e,i){"use strict";i.r(e),i.d(e,{StyleRule:function(){return E},StyleSheet:function(){return O},addClass:function(){return P},addEventListener:function(){return l},addSpacing:function(){return Y},alternativeColor:function(){return dt},blur:function(){return p},brighten:function(){return ht},capitalizeFirst:function(){return et},cleanFormat:function(){return z},contains:function(){return w},decimalPlaces:function(){return A},escapeForRgex:function(){return W},focus:function(){return g},get12Hours:function(){return Q},getBrightnessStep:function(){return lt},getDayFromWeek:function(){return q},getEventKey:function(){return D},getEventTarget:function(){return v},getFormat:function(){return H},getLightnessStep:function(){return at},getMonthWeek:function(){return K},getPointerId:function(){return d},getRendererEvent:function(){return f},getSafeResolution:function(){return C},getShadowRoot:function(){return k},getStyle:function(){return y},getTimeZone:function(){return J},getTimezoneOffset:function(){return tt},getWeek:function(){return $},getWeekYear:function(){return Z},getYearDay:function(){return X},hslToHsv:function(){return rt},hslToRgb:function(){return it},hsvToHsl:function(){return nt},iOS:function(){return N},isLight:function(){return ct},isLocalEvent:function(){return b},isTouchEvent:function(){return _},lighten:function(){return ot},mergeTags:function(){return pt},onZoom:function(){return c},padString:function(){return R},plainText:function(){return V},ready:function(){return a},relativeToValue:function(){return L},removeClass:function(){return S},removeElement:function(){return h},rgbToHsl:function(){return st},sameBounds:function(){return gt},saturate:function(){return ut},setInteractive:function(){return x},setStyle:function(){return m},splitString:function(){return j},stripTags:function(){return G},supports:function(){return u},trim:function(){return F},trimLeft:function(){return U},trimRight:function(){return B},truncateTextWithEllipsis:function(){return I}});var s=i(5040),n=i(5071),r=i(256),o=i(7449);function a(t){if("loading"!==document.readyState)t();else{const e=()=>{"loading"!==document.readyState&&(document.removeEventListener("readystatechange",e),t())};document.addEventListener("readystatechange",e)}}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function l(t,e,i,s){return t.addEventListener(e,i,s||!1),new o.ku((()=>{t.removeEventListener(e,i,s||!1)}))}function c(t){return l(window,"resize",(e=>{t()}))}function u(t){switch(t){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function d(t){return t.pointerId||0}function p(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let t=document.createElement("button");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}}function g(t){t&&t.focus()}function f(t){if(u("pointerevents"))return t;if(u("touchevents"))switch(t){case"pointerover":case"pointerdown":return"touchstart";case"pointerout":case"pointerleave":case"pointerup":return"touchend";case"pointermove":return"touchmove";case"click":return"click";case"dblclick":return"dblclick"}else if(u("mouseevents"))switch(t){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return t}function _(t){if("undefined"!=typeof Touch&&t instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&t instanceof PointerEvent&&null!=t.pointerType)switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(null!=t.type&&t.type.match(/^mouse/))return!1;return!0}function m(t,e,i){t.style[e]=i}function y(t,e){return t.style[e]}function v(t){if(t.composedPath){const e=t.composedPath();return 0===e.length?null:e[0]}return t.target}function w(t,e){let i=e;for(;;){if(t===i)return!0;if(null===i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function b(t,e){return t.target&&w(e.root.dom,t.target)}function x(t,e){t.style.pointerEvents=e?"auto":"none"}function D(t){if(void 0!==t.key)return t.key;switch(t.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+t.keyCode}function k(t){let e=t;for(;;){if(null===e.parentNode)return null!=e.host?e:null;e=e.parentNode}}let T;function M(t,e){const i=t.cssRules.length;return t.insertRule(e+"{}",i),t.cssRules[i]}class E extends o.KK{constructor(t,e,i,s=""){super(),this._root=function(t,e=""){if(null===t){if(null==T){const t=document.createElement("style");t.type="text/css",""!=e&&t.setAttribute("nonce",e),document.head.appendChild(t),T=t.sheet}return T}{const i=document.createElement("style");return i.type="text/css",""!=e&&i.setAttribute("nonce",e),t.appendChild(i),i.sheet}}(t,s);try{this._rule=M(this._root,e)}catch(t){this._rule=M(this._root,":not(*)")}r.each(i,((t,e)=>{this.setStyle(t,e)}))}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){const t=n.indexOf(this._root.cssRules,this._rule);if(-1===t)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,e){const i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")}setStyle(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")}}class O extends o.KK{constructor(t,e,i=""){super(),this._element=function(t,e,i=""){const s=document.createElement("style");return s.type="text/css",""!=i&&s.setAttribute("nonce",i),s.textContent=e,null===t?document.head.appendChild(s):t.appendChild(s),s}(t,e,i)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}}function P(t,e){if(t)if(t.classList){const i=e.split(" ");n.each(i,(e=>{t.classList.add(e)}))}else{let i=t.getAttribute("class");i?t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" ")+" "+e):t.setAttribute("class",e)}}function S(t,e){if(t)if(t.classList)t.classList.remove(e);else{let i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" "))}}function N(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function C(){return N()?1:void 0}function L(t,e){return s.isNumber(t)?t:null!=t&&s.isNumber(t.value)&&s.isNumber(e)?e*t.value:0}function A(t){let e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function R(t,e=0,i="0"){return"string"!=typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t}function U(t){return t.replace(/^[\s]*/,"")}function B(t){return t.replace(/[\s]*$/,"")}function F(t){return U(B(t))}function I(t,e,i=!1,s="..."){if(t.length>e){let n=e-1;for(;n>=0&&t.charAt(n).match(/\w/);)n--;return n>=0&&0==i?t.substring(0,n+1)+"...":t.substring(0,e)+s}return t}function H(t){if(void 0===t)return"string";let e=(t=(t=(t=t.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return e?e[1]:"number"===t?"number":"date"===t?"date":"duration"===t?"duration":t.match(/[#0]/)?"number":t.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function z(t){return t.replace(/\/(date|number|duration)$/i,"")}function G(t){return t?t.replace(/<[^>]*>/g,""):t}function V(t){return t?G((""+t).replace(/[\n\r]+/g,". ")):t}function W(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Y(t){let e="";for(let i=0;i{if(t.match(/^\s+$/))(t=" ")&&(t=" "),n.push(t);else if(e.test(t)){let e=t.split(i).filter((t=>""!==t));n=n.concat(e)}else n=n.concat([...t])})),n}function X(t,e=!1){const i=new Date(t.getFullYear(),0,0),s=t.getTime()-i.getTime()+60*(i.getTimezoneOffset()-t.getTimezoneOffset())*1e3;return Math.floor(s/864e5)}function $(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-s);const n=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-n.getTime())/864e5+1)/7)}function Z(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;return i.setUTCDate(i.getUTCDate()+4-s),new Date(Date.UTC(i.getUTCFullYear(),0,1)).getFullYear()}function K(t,e=!1){const i=$(new Date(t.getFullYear(),t.getMonth(),1),e);let s=$(t,e);return 1==s&&(s=53),s-i+1}function q(t,e,i=1,s=!1){let n=new Date(e,0,4,0,0,0,0);return s&&n.setUTCFullYear(e),7*t+i-((n.getDay()||7)+3)}function Q(t,e){return t>12?t-=12:0===t&&(t=12),null!=e?t+(e-1):t}function J(t,e=!1,i=!1,s=!1,n){if(s)return e?"Coordinated Universal Time":"UTC";if(n){const i=t.toLocaleString("en-US",{timeZone:n});return F(t.toLocaleString("en-US",{timeZone:n,timeZoneName:e?"long":"short"}).substr(i.length))}let r=t.toLocaleString("UTC"),o=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(o=o.replace(/ (standard|daylight|summer|winter) /i," ")),F(o)}function tt(t,e){const i=e||new Date(Date.UTC(2012,0,1,0,0,0,0)),s=new Date(i.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(i.toLocaleString("en-US",{timeZone:t})).getTime()-s.getTime())/6e4*-1}function et(t){return t.charAt(0).toUpperCase()+t.slice(1)}function it(t){let e,i,s,n=t.h,r=t.s,o=t.l;if(0==r)e=i=s=o;else{let t=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},a=o<.5?o*(1+r):o+r-o*r,h=2*o-a;e=t(h,a,n+1/3),i=t(h,a,n),s=t(h,a,n-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*s)}}function st(t){let e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),r=Math.min(e,i,s),o=0,a=0,h=(n+r)/2;if(n===r)o=a=0;else{let t=n-r;switch(a=h>.5?t/(2-n-r):t/(n+r),n){case e:o=(i-s)/t+(i0?255-t:t;return Math.round(i*e)}function ht(t,e){if(t){let i=at(Math.min(Math.max(t.r,t.g,t.b),230),e);return{r:Math.max(0,Math.min(255,Math.round(t.r+i))),g:Math.max(0,Math.min(255,Math.round(t.g+i))),b:Math.max(0,Math.min(255,Math.round(t.b+i))),a:t.a}}return t}function lt(t,e){return Math.round(255*e)}function ct(t){return(299*t.r+587*t.g+114*t.b)/1e3>=128}function ut(t,e){if(void 0===t||1==e)return t;let i=st(t);return i.s=e,it(i)}function dt(t,e={r:255,g:255,b:255},i={r:255,g:255,b:255}){let s=e,n=i;return ct(i)&&(s=i,n=e),ct(t)?n:s}function pt(t,e){return t||(t=[]),[...t,...e].filter(((t,e,i)=>i.indexOf(t)===e))}function gt(t,e){return!!e&&t.left==e.left&&t.right==e.right&&t.top==e.top&&t.bottom==e.bottom}},3360:function(t,e,i){"use strict";i.d(e,{z:function(){return D},m:function(){return k}});var s=i(7582),n=i(6331),r=i(4596),o=i(8777),a=i(1112),h=i(6245),l=i(5769),c=i(9582),u=i(5040),d=i(5071),p=i(256),g={AccelerationBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccelerationBands)),AccumulationDistribution:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulationDistribution)),AccumulativeSwingIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulativeSwingIndex)),Annotator:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Annotator)),ArcDiagram:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagram)),ArcDiagramLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramLink)),ArcDiagramNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramNodes)),Aroon:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Aroon)),AverageSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageSeries)),AverageTrueRange:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageTrueRange)),AwesomeOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AwesomeOscillator)),Axis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Axis)),AxisBullet:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisBullet)),AxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabel)),AxisLabelRadial:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabelRadial)),AxisRenderer:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRenderer)),AxisRendererCircular:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererCircular)),AxisRendererCurveX:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveX)),AxisRendererCurveY:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveY)),AxisRendererRadial:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererRadial)),AxisRendererX:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererX)),AxisRendererY:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererY)),AxisTick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisTick)),BaseColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.BaseColumnSeries)),BollingerBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BollingerBands)),BreadcrumbBar:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.BreadcrumbBar)),BullBearPower:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BullBearPower)),Bullet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Bullet)),Button:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Button)),CalloutSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CalloutSeries)),Candlestick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Candlestick)),CandlestickSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CandlestickSeries)),CategoryAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryAxis)),CategoryDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryDateAxis)),ChaikinMoneyFlow:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinMoneyFlow)),ChaikinOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinOscillator)),Chart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Chart)),ChartIndicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChartIndicator)),Chord:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Chord)),ChordDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordDirected)),ChordLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLink)),ChordLinkDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLinkDirected)),ChordNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNodes)),ChordNonRibbon:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNonRibbon)),Circle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Circle)),CirclePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.CirclePattern)),ClockHand:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.ClockHand)),ClusteredPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ClusteredPointSeries)),ColorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ColorControl)),ColorPicker:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPicker)),ColorPickerButton:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPickerButton)),ColorSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ColorSet)),ColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ColumnSeries)),CommodityChannelIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CommodityChannelIndex)),ComparisonControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ComparisonControl)),Component:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Component)),ConfirmButton:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ConfirmButton)),Container:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Container)),CurveChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveChart)),CurveColumnSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveColumnSeries)),CurveCursor:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveCursor)),CurveLineSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveLineSeries)),DataSaveControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DataSaveControl)),DateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DateAxis)),DateRangeSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DateRangeSelector)),DisparityIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DisparityIndex)),DoodleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DoodleSeries)),DrawingControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingControl)),DrawingSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingSeries)),DrawingToolControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingToolControl)),Dropdown:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Dropdown)),DropdownColors:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownColors)),DropdownControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownControl)),DropdownList:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownList)),DropdownListControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownListControl)),DurationAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DurationAxis)),EditableAxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.EditableAxisLabel)),EditableLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.EditableLabel)),Ellipse:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Ellipse)),EllipseSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.EllipseSeries)),Entity:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Entity)),Exporting:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Exporting)),ExportingMenu:()=>Promise.resolve().then((()=>i(396))).then((t=>t.ExportingMenu)),FibonacciSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciSeries)),FibonacciTimezoneSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciTimezoneSeries)),Flow:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Flow)),FlowLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowLink)),FlowNode:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNode)),FlowNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNodes)),ForceDirected:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.ForceDirected)),FunnelSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSeries)),FunnelSlice:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSlice)),Gantt:()=>Promise.resolve().then((()=>i(133))).then((t=>t.Gantt)),GanttCategoryAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxis)),GanttCategoryAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxisRenderer)),GanttDateAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxis)),GanttDateAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxisRenderer)),GanttSeries:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttSeries)),GaplessDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.GaplessDateAxis)),Gradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Gradient)),GrainPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GrainPattern)),Graphics:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Graphics)),GraticuleSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.GraticuleSeries)),Grid:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Grid)),GridLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GridLayout)),HeatLegend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HeatLegend)),HeikinAshi:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HeikinAshi)),Hierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Hierarchy)),HierarchyLink:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyLink)),HierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyNode)),HorizontalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HorizontalLayout)),HorizontalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalLineSeries)),HorizontalRaySeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalRaySeries)),IconControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconControl)),IconSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconSeries)),Indicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Indicator)),IndicatorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IndicatorControl)),InterfaceColors:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.InterfaceColors)),IntervalControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IntervalControl)),Label:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Label)),LabelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LabelSeries)),Layout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Layout)),Legend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Legend)),Line:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Line)),LineArrowSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LineArrowSeries)),LinePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinePattern)),LineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.LineSeries)),LinearGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinearGradient)),Link:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Link)),LinkedHierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchy)),LinkedHierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchyNode)),MACD:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACD)),MACross:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACross)),MapChart:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapChart)),MapLine:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLine)),MapLineSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLineSeries)),MapPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPointSeries)),MapPolygon:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygon)),MapPolygonSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygonSeries)),MapSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapSeries)),Measure:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Measure)),MedianPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MedianPrice)),Modal:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Modal)),Momentum:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Momentum)),MovingAverage:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverage)),MovingAverageDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageDeviation)),MovingAverageEnvelope:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageEnvelope)),NumericStepper:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.NumericStepper)),OHLC:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLC)),OHLCSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLCSeries)),OnBalanceVolume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OnBalanceVolume)),OrthogonalLine:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.OrthogonalLine)),OverboughtOversold:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OverboughtOversold)),PVT:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PVT)),Pack:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Pack)),PanelControls:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PanelControls)),ParallelChannelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ParallelChannelSeries)),Partition:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Partition)),PathPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PathPattern)),Pattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Pattern)),PatternSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PatternSet)),PercentChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentChart)),PercentSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentSeries)),PeriodSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PeriodSelector)),PictorialStackedSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PictorialStackedSeries)),Picture:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Picture)),PicturePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PicturePattern)),PieChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieChart)),PieSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieSeries)),PointedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PointedRectangle)),Polygon:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Polygon)),PolylineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PolylineSeries)),ProgressPie:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ProgressPie)),PyramidSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PyramidSeries)),QuadrantLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.QuadrantLineSeries)),RadarChart:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarChart)),RadarColumnSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarColumnSeries)),RadarCursor:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarCursor)),RadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarLineSeries)),RadialGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialGradient)),RadialLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialLabel)),RadialText:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialText)),Rectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Rectangle)),RectanglePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RectanglePattern)),RectangleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RectangleSeries)),RegressionSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RegressionSeries)),RelativeStrengthIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RelativeStrengthIndex)),ResetControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ResetControl)),RoundedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RoundedRectangle)),Sankey:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Sankey)),SankeyLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyLink)),SankeyNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyNodes)),Scrollbar:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Scrollbar)),SerialChart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SerialChart)),Serializer:()=>Promise.resolve().then((()=>i(5362))).then((t=>t.Serializer)),Series:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Series)),SeriesTypeControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SeriesTypeControl)),SerpentineChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SerpentineChart)),SettingsControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsControl)),SettingsModal:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsModal)),SimpleLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SimpleLineSeries)),Slice:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slice)),SliceGrouper:()=>Promise.resolve().then((()=>i(1790))).then((t=>t.SliceGrouper)),SlicedChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.SlicedChart)),Slider:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slider)),SmoothedRadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.SmoothedRadarLineSeries)),SmoothedXLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXLineSeries)),SmoothedXYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXYLineSeries)),SmoothedYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedYLineSeries)),SpiralChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SpiralChart)),Sprite:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Sprite)),SpriteResizer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SpriteResizer)),StandardDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StandardDeviation)),Star:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Star)),StepLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.StepLineSeries)),StochasticMomentumIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticMomentumIndex)),StochasticOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticOscillator)),StockChart:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockChart)),StockControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockControl)),StockLegend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockLegend)),StockPanel:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockPanel)),StockToolbar:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockToolbar)),Sunburst:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Sunburst)),SuperTrend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SuperTrend)),Text:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Text)),Tick:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tick)),Tooltip:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tooltip)),Tree:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Tree)),Treemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Treemap)),TrendLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TrendLineSeries)),Triangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Triangle)),Trix:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Trix)),TypicalPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TypicalPrice)),VWAP:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VWAP)),ValueAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ValueAxis)),Venn:()=>Promise.resolve().then((()=>i(8034))).then((t=>t.Venn)),VerticalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.VerticalLayout)),VerticalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VerticalLineSeries)),Volume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Volume)),VolumeProfile:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VolumeProfile)),VoronoiTreemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.VoronoiTreemap)),WilliamsR:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.WilliamsR)),WordCloud:()=>Promise.resolve().then((()=>i(6769))).then((t=>t.WordCloud)),XYChart:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChart)),XYChartScrollbar:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChartScrollbar)),XYCursor:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYCursor)),XYSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYSeries)),ZigZag:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ZigZag)),ZoomControl:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ZoomControl)),ZoomTools:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomTools)),ZoomableContainer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomableContainer))};function f(t){return u.isObject(t)}function _(t){return t instanceof n.JH||t instanceof a.Il||t instanceof h.gG||t instanceof l.YS}function m(t,e){let i=t.length;for(;i--;){const s=t[i];if(e in s)return s[e]}throw new Error("Could not find ref "+e)}function y(t,e){if("#"===t[0]||"@"===t[0]){if(t[1]===t[0])return{isValue:!0,value:t.slice(1)};{const i=t.split(/\./g);let s=m(e,i[0]);for(let t=1;t{e(t)}))}function w(t,e){v(t,e),e.adapters&&d.each(e.adapters,(e=>{t.adapters.add(e.key,e.callback)})),e.states&&d.each(e.states,(e=>{t.states.create(e.key,e.settings)})),t instanceof o.W&&e.children&&e.children.forEach((e=>{null==e.index||e.index>=t.children.length?t.children.push(e.value):t.children.insertIndex(e.index,e.value)}))}function b(t,e){if(!e.construct)return e.value;const i=e.construct.new(t,e.settings||{});return w(i,e),i}class x{constructor(){this._caching={},this._cache={},this._delayed=[]}afterParse(){this._delayed.forEach((t=>{t()}))}getClass(t){return this._cache[t]}storeClass(t){return(0,s.mG)(this,void 0,void 0,(function*(){if("Template"===t)return;const e=g[t];if(null==e)throw new Error("Unknown object type `"+t+"`");this._cache[t]=yield e()}))}cacheClass(t){let e=this._caching[t];return null==e&&(e=this._caching[t]=this.storeClass(t)),e}parseAsyncArray(t){return(0,s.mG)(this,void 0,void 0,(function*(){yield Promise.all(d.map(t,(t=>this.parseAsync(t))))}))}parseAsyncObjectKey(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){"type"===t?u.isString(e)?yield this.cacheClass(e):yield this.parseAsync(e):"geoJSON"===t||"geometry"===t||(yield this.parseAsync(e))}))}parseAsyncObject(t){return(0,s.mG)(this,void 0,void 0,(function*(){switch(t.type){case"Color":case"Percent":break;default:yield Promise.all(d.map(p.keys(t),(e=>this.parseAsyncObjectKey(e,t[e]))))}}))}parseAsync(t){return(0,s.mG)(this,void 0,void 0,(function*(){u.isArray(t)?yield this.parseAsyncArray(t):f(t)&&(_(t)||!0!==t.__parse&&!1===t.__parse||(yield this.parseAsyncObject(t)))}))}parseObject(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parse(t,e[n],i)})),s}parseArray(t,e,i){return d.map(e,(e=>this.parse(t,e,i)))}parseChildren(t,e,i){return d.map(e,(e=>this.parseChild(t,e,i)))}parseStops(t,e,i){return d.map(e,(e=>this.parseObject(t,e,i)))}parseSetting(t,e,i,s){if("layout"===e)switch(i){case"horizontal":return t.horizontalLayout;case"vertical":return t.verticalLayout;case"grid":return t.gridLayout}return"clusteredBullet"===e?(e,n)=>{const r=s.concat([{"@series":n}]);return this.parse(t,i,r)}:"projection"===e||"geoJSON"===e?i:"stops"===e?this.parseStops(t,i,s):this.parse(t,i,s)}parseSettings(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parseSetting(t,n,e[n],i)})),s}parseState(t,e,i){return{key:e.key,settings:this.parseSettings(t,e.settings,i)}}parseAdapter(t,e,i){return{key:e.key,callback:this.parse(t,e.callback,i)}}parseProperties(t,e,i){return d.map(p.keys(e),(s=>{const r=e[s];return e=>{const o=()=>{const o=this.parseValue(t,r,i),a=e[s];a?o.isValue?u.isArray(o.value)?a instanceof c.k?a.setAll(o.value):d.each(o.value,(t=>{a.push(t)})):e[s]=o.value:o.construct?e[s]=b(t,o):a instanceof n.JH||a instanceof l.YS?function(t,e){e.settings&&t.setAll(e.settings),w(t,e)}(a,o):v(a,o):o.isValue?e[s]=o.value:e[s]=b(t,o)};if("data"===s)this._delayed.push(o);else if("bullets"===s){const n=e[s];u.assert(null!=n),u.assert(u.isArray(r)),d.each(r,(e=>{n.push(((s,n)=>{const r=i.concat([{"@series":n}]);return this.parse(t,e,r)}))}))}else"bullet"===s?e.set("bullet",((e,s)=>{const n=i.concat([{"@axis":s}]);return this.parse(t,r,n)})):o()}}))}parseAxisRange(t,e,i){return{isValue:!1,type:void 0,construct:void 0,settings:this.parseSettings(t,e.settings,i),adapters:void 0,states:void 0,children:void 0,properties:void 0,index:void 0,value:e}}parseRefsObject(t,e,i){const s={};return p.each(e,((e,r)=>{if("axisRange"==r.__parseLogic||"seriesAxisRange"==r.__parseLogic){const e=this.parseAxisRange(t,r,i),s=m(i,r.axis),o=s.makeDataItem({});let a;const h=r.series?m(i,r.series):void 0;h?a=h.createAxisRange(o):s.createAxisRange(o),function(t,e){e.settings&&p.each(e.settings,((e,i)=>{if(i instanceof n.JH){const s=t.get(e);s instanceof n.JH?s.setAll(i._settings):t.set(e,i)}else t.set(e,i)})),w(t,e)}(o,e),a&&["fills","strokes","graphics"].forEach((e=>{if(void 0!==a[e]&&void 0!==r[e]){r[e].__parse=!0;const s=this.parse(t,r[e],i);a[e].template.setAll(s)}}))}else s["#"+e]=this.parse(t,r,i)})),s}parseRefs(t,e,i){if(u.isArray(e)){const s=e.length;for(let n=0;nthis.parseState(t,e,i))):void 0,h=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0,l=null==e.index?void 0:e.index;return{isValue:!1,type:e.type,construct:s,settings:n,adapters:h,states:a,children:o,properties:r,index:l,value:e}}parseTemplate(t,e,i){e.refs&&(i=this.parseRefs(t,e.refs,i));const s=e.settings?this.parseSettings(t,e.settings,i):{},n=l.YS.new(s),r=e.states?d.map(e.states,(e=>this.parseState(t,e,i))):void 0,o=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0;return o&&d.each(o,(t=>{n.adapters.add(t.key,t.callback)})),r&&d.each(r,(t=>{n.states.create(t.key,t.settings)})),{isValue:!0,value:n}}parseValue(t,e,i){return e instanceof n.JH?{isValue:!0,value:e}:u.isArray(e)?{isValue:!0,value:this.parseArray(t,e,i)}:f(e)?_(e)?{isValue:!0,value:e}:"Color"===e.type?{isValue:!0,value:a.Il.fromAny(e.value)}:"Percent"===e.type?{isValue:!0,value:new h.gG(e.value)}:"Template"===e.type?this.parseTemplate(t,e,i):!0===e.__parse?{isValue:!0,value:this.parseObject(t,e,i)}:!1===e.__parse?{isValue:!0,value:e}:this.parseEntity(t,e,i):u.isString(e)?y(e,i):{isValue:!0,value:e}}parse(t,e,i){const s=this.parseValue(t,e,i);return s.isValue?s.value:b(t,s)}}class D{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t}static new(t){return new this(t,!0)}parse(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){const i=new x;yield i.parseAsync(t);const s=i.parse(this._root,t,[]);if(e.parent){if(!(s instanceof r.j))throw new Error("When using the parent setting, the entity must be a Sprite");e.parent.children.push(s)}else s instanceof n.JH&&s._applyThemes(!0);return i.afterParse(),s}))}parseString(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.parse(JSON.parse(t),e)}))}}function k(t,e){g[t]||(g[t]=()=>new Promise((t=>{t(e)})))}},6890:function(t,e,i){"use strict";i.d(e,{e:function(){return p}});var s=i(6331),n=i(9361),r=i(1112),o=i(1437),a=i(6245),h=i(5769),l=i(9582),c=i(5040),u=i(5071),d=i(256);class p extends s.JH{constructor(){super(...arguments),this._refs={}}serialize(t,e=0,i=!1,p=!1){if(e>this.get("maxDepth",2))return;if(!1===t||!0===t)return t;if(c.isArray(t)){const s=[];return u.each(t,(t=>{s.push(this.serialize(t,e,i,p))})),s}if(t instanceof l.k){const s=[];return u.each(t.values,(t=>{s.push(this.serialize(t,e,i,p))})),s}const g={},f=t instanceof s.JH||t instanceof h.YS||t instanceof r.Il||t instanceof a.gG,_=this.get("fullSettings",[]);if(t instanceof s.JH){g.type=t.className;let s=this._filterSettings(d.keys(t._settings));s=s.filter((e=>t.isUserSetting(e))),s.length&&(g.settings={},u.each(s,(s=>{const n=t.get(s);void 0!==n&&(g.settings[s]=this.serialize(n,e+1,i||-1!==_.indexOf(s)),t instanceof o.p&&"stops"===s&&(g.settings[s]=this.serialize(n,0,!0)))}))),this._processAdapters(t,g),this._processStates(t,g)}else if(t instanceof h.YS){g.type="Template";let i=this._filterSettings(d.keys(t._settings));return i.length&&(g.settings={},u.each(i,(i=>{void 0!==t._settings[i]&&(g.settings[i]=this.serialize(t.get(i),e+1,-1!==_.indexOf(i)))}))),this._processAdapters(t,g),this._processStates(t,g),g}if(t instanceof n.w&&t.data.length&&-1===(this.get("excludeProperties")||[]).indexOf("data")&&(g.properties={data:this.serialize(t.data.values,e,!0)}),t instanceof r.Il)return{type:"Color",value:t.toCSSHex()};if(t instanceof a.gG)return{type:"Percent",value:t.percent};if(c.isString(t))return this._escapeRefs(t);if(c.isNumber(t))return t;if(c.isObject(t))if(i&&!f){const s=this.get("excludeProperties",[]);d.each(t,((t,n)=>{-1===s.indexOf(t)&&void 0!==n&&(g[t]=this.serialize(n,e+1,i,p))})),p&&d.each(g,((t,e)=>{c.isObject(e)&&(g.__parse=!0)}))}else if(f){const s=this.get("includeProperties",[]);u.each(s,(s=>{const n=t[s];void 0!==n&&(void 0===g.properties&&(g.properties={}),g.properties[s]=this.serialize(n,e+1,i,p))}))}return 0==e&&d.keys(this._refs).length&&(g.refs=this._refs),g}_processAdapters(t,e){if(this.get("includeAdapters",!1)){const i="string"==this.get("functionsAs","string"),s=t.adapters._callbacks;Object.keys(s).length>0&&(e.adapters=[],d.each(s,((t,s)=>{s.forEach((s=>{e.adapters.push({key:t,callback:i?s.toString():s})}))})))}}_processStates(t,e){if(this.get("includeStates",!1)){const i=t.states._states;Object.keys(i).length>0&&(e.states=[],d.each(i,((t,i)=>{Object.keys(i._settings).length>0&&e.states.push({key:t,settings:this.serialize(i._settings,0,!0)})})))}}_filterSettings(t){const e=this.get("includeSettings",[]),i=this.get("excludeSettings",[]);return e.length?t=e:i.length&&(t=t.filter((t=>-1===i.indexOf(t)))),t}_escapeRefs(t){return t.replace(/^#/,"##").replace(/^@/,"@@")}}p.className="Serializer",p.classNames=s.JH.classNames.concat([p.className])},3783:function(t,e,i){"use strict";i.d(e,{X:function(){return c},v:function(){return l}});var s=i(3409),n=i(6245),r=i(1112),o=i(6881),a=i(962),h=i(9395);function l(t,e,i,s){t.set(e,i.get(s)),i.on(s,(i=>{t.set(e,i)}))}class c extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.language,e=this._root.interfaceColors,i=this._root.horizontalLayout,s=this._root.verticalLayout,c=this.rule.bind(this);c("InterfaceColors").setAll({stroke:r.Il.fromHex(15066597),fill:r.Il.fromHex(15987699),primaryButton:r.Il.fromHex(6788316),primaryButtonHover:r.Il.fromHex(6779356),primaryButtonDown:r.Il.fromHex(6872182),primaryButtonActive:r.Il.fromHex(6872182),primaryButtonDisabled:r.Il.fromHex(14342874),primaryButtonTextDisabled:r.Il.fromHex(16777215),primaryButtonText:r.Il.fromHex(16777215),primaryButtonStroke:r.Il.fromHex(16777215),secondaryButton:r.Il.fromHex(14277081),secondaryButtonHover:r.Il.fromHex(10724259),secondaryButtonDown:r.Il.fromHex(9276813),secondaryButtonActive:r.Il.fromHex(15132390),secondaryButtonText:r.Il.fromHex(0),secondaryButtonStroke:r.Il.fromHex(16777215),grid:r.Il.fromHex(0),background:r.Il.fromHex(16777215),alternativeBackground:r.Il.fromHex(0),text:r.Il.fromHex(0),alternativeText:r.Il.fromHex(16777215),disabled:r.Il.fromHex(11382189),positive:r.Il.fromHex(5288704),negative:r.Il.fromHex(11730944)});{const t=c("ColorSet");t.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[r.Il.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),t.setPrivate("currentStep",0),t.setPrivate("currentPass",0)}c("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:h.out(h.cubic)}),c("Component").setAll({interpolationDuration:0,interpolationEasing:h.out(h.cubic)}),c("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:n.CI,tooltipY:n.CI,tooltipPosition:"fixed",isMeasured:!0}),c("Sprite").states.create("default",{visible:!0,opacity:1}),c("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),c("Graphics").setAll({strokeWidth:1}),c("Chart").setAll({width:n.AQ,height:n.AQ,interactiveChildren:!1}),c("ZoomableContainer").setAll({width:n.AQ,height:n.AQ,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:h.out(h.cubic),animationDuration:600,maxPanOut:.4}),c("Sprite",["horizontal","center"]).setAll({centerX:n.CI,x:n.CI}),c("Sprite",["vertical","center"]).setAll({centerY:n.CI,y:n.CI}),c("Container",["horizontal","layout"]).setAll({layout:i}),c("Container",["vertical","layout"]).setAll({layout:s}),c("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),c("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),c("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),c("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),c("GrainPattern").setAll({width:200,height:200,colors:[r.Il.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const t=c("PatternSet");t.setAll({step:1}),l(t,"color",e,"stroke")}c("LinearGradient").setAll({rotation:90}),c("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:o.M.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),c("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:t.translate("Press ENTER to toggle"),role:"checkbox"});{const t=c("Rectangle",["legend","item","background"]);t.setAll({fillOpacity:0}),l(t,"fill",e,"background")}c("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:n.CI,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),c("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:n.AQ,height:n.AQ,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const t=c("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});l(t,"fill",e,"disabled"),l(t,"stroke",e,"disabled")}c("Label",["legend","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0}),l(c("Label",["legend","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("Label",["legend","value","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:n.AQ,populateText:!0}),l(c("Label",["legend","value","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("HeatLegend").setAll({stepCount:1}),c("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),c("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:n.AQ,width:15}),c("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:n.AQ,height:15}),c("HeatLegend",["vertical"]).setAll({height:n.AQ}),c("HeatLegend",["horizontal"]).setAll({width:n.AQ}),c("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),c("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const t=c("Label");t.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),l(t,"fill",e,"text")}c("RadialLabel").setAll({textType:"regular",centerY:n.CI,centerX:n.CI,inside:!1,radius:0,baseRadius:n.AQ,orientation:"auto",textAlign:"center"}),c("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),c("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:r.Il.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:r.Il.fromHex(0)}),c("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),c("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),c("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),c("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const t=c("Tick");t.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),l(t,"stroke",e,"grid")}c("Bullet").setAll({locationX:.5,locationY:.5}),c("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:n.CI,centerY:n.CI,animationEasing:h.out(h.cubic),exportable:!1}),c("Tooltip",["system"]).setAll({pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});{const t=c("PointedRectangle",["tooltip","system","background"]);t.setAll({strokeOpacity:.3}),l(t,"fill",e,"background"),l(t,"stroke",e,"grid")}c("Label",["tooltip","system"]).setAll({fontSize:12,fill:e.get("background")}),c("Polygon").setAll({animationEasing:h.out(h.cubic)}),c("Link").setAll({cornerRadius:8,setStateOnChildren:!0});{const t=c("OrthogonalLine",["link","line"]);t.setAll({isMeasured:!1,crisp:!0}),l(t.states.create("active",{strokeWidth:2}),"stroke",e,"negative")}c("OrthogonalLine",["link","hit"]).setAll({strokeWidth:10,opacity:0,strokeOpacity:0});{const t=c("OrthogonalLine");t.setAll({strokeWidth:1,strokeOpacity:1,cornerRadius:10}),l(t,"stroke",e,"grid")}{const t=c("Triangle",["link"]);t.setAll({width:14,height:10,centerY:0}),l(t,"fill",e,"grid"),l(t,"stroke",e,"grid"),t.states.create("default",{stateAnimationDuration:0});const i=t.states.create("active",{stateAnimationDuration:0,stroke:(0,r.$_)(16777215),strokeWidth:2});i.set("draw",(t=>{t.arc(0,0,11,0,2*Math.PI),t.moveTo(-4,-4),t.lineTo(4,4),t.moveTo(4,-4),t.lineTo(-4,4)})),l(i,"fill",e,"negative")}c("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:r.Il.fromHex(16777215)});{const t=c("Label",["tooltip"]);t.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),l(t,"fill",e,"alternativeText")}c("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),c("Button").states.create("hover",{}),c("Button").states.create("down",{stateAnimationDuration:0}),c("Button").states.create("active",{}),c("Button").states.create("disabled",{forceInactive:!0});{const t=c("RoundedRectangle",["button","background"]);l(t,"fill",e,"primaryButton"),l(t,"stroke",e,"primaryButtonStroke")}l(c("RoundedRectangle",["button","background"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown"),l(c("RoundedRectangle",["button","background"]).states.create("active",{}),"fill",e,"primaryButtonActive"),l(c("RoundedRectangle",["button","background"]).states.create("disabled",{}),"fill",e,"primaryButtonDisabled"),l(c("Graphics",["button","icon"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled"),l(c("Label",["button"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled");{const t=c("Graphics",["button","icon"]);t.setAll({forceInactive:!0}),l(t,"stroke",e,"primaryButtonText")}l(c("Label",["button"]),"fill",e,"primaryButtonText"),c("ConfirmButton").setAll({toggleKey:"active",setStateOnChildren:!0,label:a._.new(this._root,{text:t.translate("Confirm"),forceHidden:!0})}),l(c("RoundedRectangle",["button","background","confirm"]).states.create("active",{}),"fill",e,"negative"),c("Label",["button","confirm"]).setAll({paddingTop:0,paddingBottom:0,paddingRight:3,paddingLeft:5}),c("Label",["button","confirm"]).states.create("default",{stateAnimationDuration:0}),c("Label",["button","confirm"]).states.create("active",{forceHidden:!1,stateAnimationDuration:0});{const t=c("Graphics",["icon","confirm","button"]);t.setAll({stateAnimationDuration:0}),t.states.create("default",{stateAnimationDuration:0}),l(t,"stroke",e,"primaryButtonText")}l(c("Graphics",["icon","confirm","button"]).states.create("active",{svgPath:"M -5 1 L 0 6 L 8 -5",strokeWidth:2}),"stroke",e,"primaryButtonText"),l(c("Graphics",["icon","confirm","button","secondary"]).states.create("active",{}),"stroke",e,"primaryButtonText"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1}),"fill",e,"negative"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1}),"fill",e,"negative"),c("Button",["button","confirm"]).states.create("hoverActive",{}),c("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:n.AQ,role:"button",ariaLabel:t.translate("Zoom Out"),layer:30});{const t=c("RoundedRectangle",["background","button","zoom"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"primaryButton")}l(c("RoundedRectangle",["background","button","zoom"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown");{const t=c("Graphics",["icon","button","zoom"]);t.setAll({crisp:!0,strokeOpacity:.7,draw:t=>{t.moveTo(0,0),t.lineTo(12,0)}}),l(t,"stroke",e,"primaryButtonText")}c("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:n.CI,centerY:n.CI,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:t.translate("Use up and down arrows to move selection")});{const t=c("RoundedRectangle",["background","resize","button"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"secondaryButton"),l(t,"stroke",e,"secondaryButtonStroke")}l(c("RoundedRectangle",["background","resize","button"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown");{const t=c("Graphics",["resize","button","icon"]);t.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),l(t,"stroke",e,"secondaryButtonText")}c("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),c("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),c("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:t.translate("Play"),toggleKey:"active"});{const t=c("RoundedRectangle",["play","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Graphics",["play","icon"]);t.setAll({stateAnimationDuration:0,dx:1,draw:t=>{t.moveTo(0,-5),t.lineTo(8,0),t.lineTo(0,5),t.lineTo(0,-5)}}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),c("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:t=>{t.moveTo(-4,-5),t.lineTo(-1,-5),t.lineTo(-1,5),t.lineTo(-4,5),t.lineTo(-4,-5),t.moveTo(4,-5),t.lineTo(1,-5),t.lineTo(1,5),t.lineTo(4,5),t.lineTo(4,-5)}}),c("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:t.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const t=c("RoundedRectangle",["switch","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["switch","icon"]);t.setAll({radius:8,centerY:0,centerX:0,dx:0}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["switch","icon"]).states.create("active",{dx:16}),c("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:h.out(h.cubic)}),c("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:n.AQ}),c("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:n.AQ}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const t=c("RoundedRectangle",["scrollbar","main","background"]);t.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),l(t,"fill",e,"fill")}{const t=c("RoundedRectangle",["scrollbar","thumb"]);t.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),l(t,"fill",e,"secondaryButton")}l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown"),c("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:n.CI,width:n.AQ,centerX:n.CI,ariaLabel:t.translate("Use up and down arrows to move selection")}),c("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:n.CI,centerY:n.CI,height:n.AQ,ariaLabel:t.translate("Use left and right arrows to move selection")});{const t=c("PointedRectangle",["axis","tooltip","background"]);t.setAll({cornerRadius:0}),l(t,"fill",e,"alternativeBackground")}c("Label",["axis","tooltip"]).setAll({role:void 0}),c("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),c("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),c("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),c("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),c("Star").setAll({spikes:5,innerRadius:5,radius:10}),c("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),c("Tooltip",["indicator"]).setAll({forceHidden:!0}),c("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),c("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),c("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),c("Container",["resizer","grip"]).states.create("hover",{});{const t=c("RoundedRectangle",["resizer","grip"]);t.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),l(t,"fill",e,"background"),l(t,"stroke",e,"alternativeBackground")}{const t=c("RoundedRectangle",["resizer","grip","outline"]);t.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),t.states.create("hover",{fillOpacity:.3}),l(t,"fill",e,"alternativeBackground")}c("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),c("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const t=c("Rectangle",["resizer","rectangle"]);t.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),l(t,"stroke",e,"alternativeBackground")}c("Graphics",["button","plus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0),t.moveTo(0,-4),t.lineTo(0,4)}}),c("Graphics",["button","minus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0)}}),c("Graphics",["button","home","icon"]).setAll({x:n.CI,y:n.CI,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),c("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),c("ZoomTools").setAll({x:n.AQ,centerX:n.AQ,y:n.AQ,centerY:n.AQ,paddingRight:10,paddingBottom:10}),c("ProgressPie").setAll({radius:n.AQ,width:50,height:50,centerX:(0,n.aQ)(-50),centerY:(0,n.aQ)(-50),innerRadius:(0,n.aQ)(85),numberFormat:"#."});{const t=c("Label",["progresspie"]);t.setAll({centerX:n.CI,centerY:n.CI,fontSize:"0.75em"}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["progresspie"]);t.setAll({fillOpacity:.5}),l(t,"fill",e,"background")}{const t=c("Slice",["progresspie"]);t.setAll({startAngle:-90}),l(t,"fill",e,"primaryButton")}{const t=c("Slice",["progresspie","background"]);t.setAll({fillOpacity:.2,arc:360}),l(t,"fill",e,"primaryButton")}c("EditableLabel",["numericstepper"]).setAll({y:n.CI,centerY:n.CI,multiLine:!1,marginRight:2});{const t=c("Container",["numericstepper","buttons"]);t.setAll({layout:this._root.verticalLayout,centerY:n.CI,y:n.CI,marginRight:10,opacity:0}),t.states.create("active",{opacity:1}),t.states.create("default",{opacity:0})}{const t=c("Triangle",["numericstepper"]);t.setAll({width:17,height:11,marginTop:3,marginBottom:3,strokeWidth:5,strokeOpacity:0,cursorOverStyle:"pointer"}),l(t,"fill",e,"secondaryButton")}c("Triangle",["downbutton"]).setAll({rotation:180})}}},5322:function(t,e,i){"use strict";i.r(e),i.d(e,{ArrayDisposer:function(){return c.rk},BlendMode:function(){return ot.b},Bullet:function(){return u.g},Button:function(){return d.z},CSVParser:function(){return bt},CanvasLayer:function(){return Pt.mM},CanvasRenderer:function(){return Pt.uK},Chart:function(){return q.k},Circle:function(){return g.C},CirclePattern:function(){return ut},Color:function(){return O.Il},ColorSet:function(){return mt.U},Component:function(){return v.w},ConfirmButton:function(){return p.p},Container:function(){return w.W},CounterDisposer:function(){return c.DM},DataItem:function(){return v.z},DataProcessor:function(){return xt},DateFormatter:function(){return Dt.C},Disposer:function(){return c.ku},DurationFormatter:function(){return kt.$},EditableLabel:function(){return A.Y},Ellipse:function(){return _.P},Entity:function(){return l.JH},Gradient:function(){return at.p},GrainPattern:function(){return rt},Graphics:function(){return m.T},GridLayout:function(){return x.M},HeatLegend:function(){return C},HorizontalLayout:function(){return L.G},InterfaceColors:function(){return Tt.v},JSONParser:function(){return wt},JsonData:function(){return yt.Q},Label:function(){return D._},Layout:function(){return R.A},Legend:function(){return U.D},Line:function(){return B.x},LinePattern:function(){return dt.y},LinearGradient:function(){return S.o},Link:function(){return F.r},ListData:function(){return yt.k},ListTemplate:function(){return E.o},Modal:function(){return h.u},MultiDisposer:function(){return c.FV},MutableValueDisposer:function(){return c.cx},NumberFormatter:function(){return Mt.e},NumericStepper:function(){return St.l},OrthogonalLine:function(){return I.P},PathPattern:function(){return ft},Pattern:function(){return nt.c},PatternSet:function(){return _t},Percent:function(){return k.gG},Picture:function(){return H.t},PicturePattern:function(){return pt.v},PointedRectangle:function(){return z.i},Polygon:function(){return f.m},ProgressPie:function(){return Nt.w},RadialGradient:function(){return lt},RadialLabel:function(){return G.x},RadialText:function(){return V.f},Rectangle:function(){return W.A},RectanglePattern:function(){return gt},Root:function(){return n.f},RoundedRectangle:function(){return T.c},Scrollbar:function(){return j.L},SerialChart:function(){return Q.j},Series:function(){return K.F},Slice:function(){return $.p},Slider:function(){return X.i},Sprite:function(){return Z.j},SpriteResizer:function(){return Ot.b},Star:function(){return y},Template:function(){return M.YS},Text:function(){return J.x},TextFormatter:function(){return Et.V},Theme:function(){return r.Q},Tick:function(){return tt.d},Timezone:function(){return it.r},Tooltip:function(){return P.u},Triangle:function(){return Y.C},VerticalLayout:function(){return et.Z},ZoomTools:function(){return st.H},ZoomableContainer:function(){return b.Y},addLicense:function(){return o.cP},array:function(){return ht},color:function(){return O.$_},disposeAllRootElements:function(){return o.UZ},ease:function(){return Ct},getRootById:function(){return o.f_},math:function(){return ct},net:function(){return s},object:function(){return vt},p0:function(){return k.p0},p100:function(){return k.AQ},p50:function(){return k.CI},percent:function(){return k.aQ},ready:function(){return a.ready},registry:function(){return o.i_},time:function(){return Rt},type:function(){return N},utils:function(){return a}});var s={};i.r(s),i.d(s,{load:function(){return Lt},readBlob:function(){return At}});var n=i(2855),r=i(3409),o=i(3145),a=i(7652),h=i(8219),l=i(6331),c=i(7449),u=i(5108),d=i(8054),p=i(2936),g=i(8035),f=i(7770),_=i(2433),m=i(1479);class y extends m.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("spikes"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const t=this._display,e=this.get("radius",0),i=a.relativeToValue(this.get("innerRadius",0),e),s=this.get("spikes",0),n=Math.PI/s;let r=Math.PI/2*3;t.moveTo(0,-e);for(let o=0;oT.c._new(this._root,{themeTags:a.mergeTags(this.markers.template.get("themeTags",[]),[this.get("orientation"),"heatlegend","marker"])},[this.markers.template]))))}_afterNew(){this._settings.themeTags=a.mergeTags(this._settings.themeTags,["heatlegend",this._settings.orientation]),super._afterNew(),this.set("tooltip",P.u.new(this._root,{themeTags:["heatlegend"]}))}makeMarker(){const t=this.markers.make();return t.states.create("disabled",{}),t}showValue(t,e,i){const s=this.getTooltip();if(s&&N.isNumber(t)){const n=this.get("startValue",0);let r=(t-n)/(this.get("endValue",1)-n);(r==1/0||r==-1/0||isNaN(r))&&(r=.5);const o=this.get("startColor"),a=this.get("endColor");let h;e||(e=this.getNumberFormatter().format(t)),i||(i=O.Il.interpolate(r,o,a)),s.label.set("text",e),h="vertical"==this.get("orientation")?this.markerContainer.toGlobal({x:0,y:this.innerHeight()*(1-r)}):this.markerContainer.toGlobal({x:this.innerWidth()*r,y:0});let l=s.get("background");l&&l.set("fill",i),s.set("pointTo",h),s.show()}}_prepareChildren(){super._prepareChildren();const t=this.labelContainer,e=this.get("orientation"),i=this.startLabel,s=this.endLabel,n=this.getTooltip();if(this.isDirty("orientation")&&("vertical"==e?(this.markerContainer.setAll({layout:this._root.verticalLayout,height:k.AQ}),this.set("layout",this._root.horizontalLayout),i.setAll({y:k.AQ,x:void 0,centerY:k.AQ,centerX:k.AQ}),s.setAll({y:0,x:void 0,centerY:0,centerX:k.AQ}),t.setAll({height:k.AQ,width:void 0}),n&&n.set("pointerOrientation","horizontal")):(this.markerContainer.setAll({layout:this._root.horizontalLayout,width:k.AQ}),this.set("layout",this._root.verticalLayout),i.setAll({x:0,y:void 0,centerX:0,centerY:0}),s.setAll({x:k.AQ,y:void 0,centerX:k.AQ,centerY:0}),t.setAll({width:k.AQ,height:void 0}),n&&n.set("pointerOrientation","vertical"))),this.isDirty("stepCount")){const t=this.get("stepCount",1),i=this.get("startColor"),s=this.get("endColor"),n=this.get("startOpacity",1),r=this.get("endOpacity",1);if(this.markerContainer.children.clear(),t>1)for(let o=0;o0&&e/u!=Math.round(e/u)))for(let h=0;h0&&h/c!=Math.round(h/c)||d{let i=e.offset;N.isNumber(i)||(i=t/(g.length-1));let s=e.opacity;N.isNumber(s)||(s=1);let n=e.color;if(n){const t=e.lighten;t&&(n=O.Il.lighten(n,t));const r=e.brighten;r&&(n=O.Il.brighten(n,r)),p.addColorStop(i,"rgba("+n.r+","+n.g+","+n.b+","+s+")")}t++}))}return p}}lt.className="RadialGradient",lt.classNames=at.p.classNames.concat([lt.className]);var ct=i(751);class ut extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("radius",3),a=2*o+i,h=2*o+i,l=Math.round(n/a),c=Math.round(r/h);a=n/l,h=r/c,0!=s&&(this._display.x=a*ct.cos(s),this._display.y=h*ct.sin(s));const u=this.get("color"),d=this.get("colorOpacity");(u||d)&&this._display.beginFill(u,d);for(let n=0==s?0:2*-c;n<2*c;n++)for(let r=0==s?0:2*-l;r<2*l;r++)if(!t||1!=(1&n)&&1!=(1&r)||1==(1&n)&&1==(1&r)){let t=r*a,s=n*h;e&&(t+=a+i/2,s+=h+i/2),this._display.drawCircle(t-o,s-o,o)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i),(u||d)&&this._display.endFill()}}ut.className="CirclePattern",ut.classNames=nt.c.classNames.concat([ut.className]);var dt=i(3035),pt=i(4429);class gt extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("maxWidth",5),a=this.get("maxHeight",5);const h=this._display;let l=o+i,c=a+i,u=Math.round(n/l),d=Math.round(r/c);l=n/u,c=r/d,0!=s&&(h.x=l/2*ct.cos(s),h.y=-c/2*ct.sin(s));for(let i=0==s?0:2*-d;i<2*d;i++)for(let n=0==s?0:2*-u;n<2*u;n++)if(!t||1!=(1&i)&&1!=(1&n)||1==(1&i)&&1==(1&n)){let t=n*l,s=i*c;e&&(t+=(l-o)/2,s+=(c-a)/2),h.drawRect(t,s,o,a)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i);const p=this.get("color"),g=this.get("colorOpacity");(p||g)&&(h.beginFill(p,g),h.endFill())}}gt.className="RectanglePattern",gt.classNames=nt.c.classNames.concat([gt.className]);class ft extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("svgPath")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("svgPath");null!=t&&this._display.svgPath(t);const e=this.get("color"),i=this.get("colorOpacity");(e||i)&&(this._display.beginFill(e,i),this._display.endFill())}}ft.className="PathPattern",ft.classNames=nt.c.classNames.concat([ft.className]);class _t extends l.JH{_afterNew(){if(super._afterNewApplyThemes(),0===this.get("patterns",[]).length){const t=this.get("color",this.root.interfaceColors.get("stroke"));this.set("patterns",[this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:1,color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,maxWidth:4,maxHeight:4,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:1,gap:6,color:t}),this.getCirclePattern({width:11,height:11,radius:2,color:t}),this.getLinePattern({width:6,height:6,rotation:90,strokeWidth:1,color:t}),this.getRectanglePattern({width:14,height:14,rotation:45,gap:4,maxWidth:6,maxHeight:6,checkered:!0,color:t}),this.getLinePattern({width:6,height:6,rotation:0,strokeWidth:1,color:t}),this.getRectanglePattern({width:15,height:15,rotation:0,gap:5,maxWidth:5,maxHeight:5,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getCirclePattern({width:20,height:20,radius:3,gap:4,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,gap:1,maxWidth:9,maxHeight:9,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:0,strokeWidth:3,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:90,strokeWidth:3,gap:1,color:t})])}this._dirty.patterns=!1}_beforeChanged(){this.isDirty("patterns")&&this.reset()}getIndex(t){const e=this.get("patterns",[]);return te.length-1?e[t-Math.floor(t*(t/e.length))]:e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0))}getLinePattern(t){return dt.y.new(this.root,t)}getRectanglePattern(t){return gt.new(this.root,t)}getCirclePattern(t){return ut.new(this.root,t)}}_t.className="PatternSet",_t.classNames=l.JH.classNames.concat([_t.className]);var mt=i(2754),yt=i(9582),vt=i(256);class wt{static parse(t,e){e=this._applyDefaults(e);try{if(N.isString(t)){let i=JSON.parse(t);return e.reverse&&N.isArray(i)&&i.reverse(),i}if(N.isArray(t)||N.isObject(t))return t;throw"Unable to parse JSON data"}catch(t){return}}static _applyDefaults(t){const e={};return t||(t={}),vt.each({reverse:!1},((i,s)=>{e[i]=t[i]||s})),e}}class bt{static parse(t,e){e=this._applyDefaults(e);let i,s,n,r=this.CSVToArray(t,e.delimiter),o=[],a=[];for(s=0;s{e[i]=t[i]||s})),e}}class xt extends l.JH{constructor(){super(...arguments),this._checkDates=!1,this._checkNumbers=!1,this._checkColors=!1,this._checkEmpty=!1,this._checkDeep=!1}_afterNew(){super._afterNew(),this._checkFeatures(),this.on("dateFields",(()=>this._checkFeatures())),this.on("dateFormat",(()=>this._checkFeatures())),this.on("numericFields",(()=>this._checkFeatures())),this.on("colorFields",(()=>this._checkFeatures())),this.on("emptyAs",(()=>this._checkFeatures()))}_checkFeatures(){(this.isDirty("dateFields")||this.isDirty("dateFormat"))&&(this._checkDates=this.get("dateFields")&&this.get("dateFields").length>0),this.isDirty("numericFields")&&(this._checkNumbers=this.get("numericFields")&&this.get("numericFields").length>0),this.isDirty("colorFields")&&(this._checkColors=this.get("colorFields")&&this.get("colorFields").length>0),this.isDirty("emptyAs")&&(this._checkEmpty=null!=this.get("emptyAs")),this._checkDeepFeatures()}_checkDeepFeatures(){const t=[];ht.each(["dateFields","numericFields","colorFields"],(e=>{ht.each(this.get(e,[]),(e=>{const i=e.split(".");for(i.pop();i.length>0;)t.push(i.join(".")),i.pop()}))})),this._checkDeep=t.length>0,this.setPrivate("deepFields",t)}processMany(t){N.isArray(t)&&(this._checkDates||this._checkNumbers||this._checkColors||this._checkEmpty)&&ht.each(t,(t=>{this.processRow(t)}))}processRow(t,e=""){vt.each(t,((i,s)=>{const n=e+i;this._checkEmpty&&(t[i]=this._maybeToEmpty(t[i])),this._checkNumbers&&(t[i]=this._maybeToNumber(n,t[i])),this._checkDates&&(t[i]=this._maybeToDate(n,t[i])),this._checkColors&&(t[i]=this._maybeToColor(n,t[i])),this._checkDeep&&-1!==this.getPrivate("deepFields",[]).indexOf(n)&&N.isObject(t[i])&&this.processRow(t[i],n+".")}))}_maybeToNumber(t,e){return-1!==this.get("numericFields").indexOf(t)?N.toNumber(e):e}_maybeToDate(t,e){return-1!==this.get("dateFields").indexOf(t)?this._root.dateFormatter.parse(e,this.get("dateFormat","")).getTime():e}_maybeToEmpty(t){return null!=t&&""!=t||null==this.get("emptyAs")?t:this.get("emptyAs")}_maybeToColor(t,e){return-1!==this.get("colorFields").indexOf(t)?O.Il.fromAny(e):e}}var Dt=i(6460),kt=i(798),Tt=i(9821),Mt=i(780),Et=i(7255),Ot=i(1195),Pt=i(4102),St=i(7049),Nt=i(6312),Ct=i(9395);function Lt(t,e,i){return new Promise(((s,n)=>{let r=null!=i&&"blob"==i.responseType,o=new XMLHttpRequest;if(o.onload=()=>{if(200===o.status){let t,i;if(r)return i=o.response,void At(i).then((t=>{let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}));t=o.responseText||o.response;let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}else n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.onerror=()=>{n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.open("GET",t,!0),i&&i.withCredentials&&(o.withCredentials=!0),null!=i){if(null!=i.requestHeaders)for(let t=0;t{const s=new FileReader;s.onload=t=>{e(s.result)},s.onerror=t=>{i(t)},s.readAsText(t)}))}var Rt=i(1926)},3100:function(t,e){"use strict";e.Z={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(t){let e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""}},9629:function(t){var e=function(t){"use strict";var e,i=Object.prototype,s=i.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",h=r.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,s){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new S(s||[]);return n(o,"_invoke",{value:M(t,i,a)}),o}function u(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",g="executing",f="completed",_={};function m(){}function y(){}function v(){}var w={};l(w,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==i&&s.call(x,o)&&(w=x);var D=v.prototype=m.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function i(n,r,o,a){var h=u(t[n],t,r);if("throw"!==h.type){var l=h.arg,c=l.value;return c&&"object"==typeof c&&s.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,o,a)}),(function(t){i("throw",t,o,a)})):e.resolve(c).then((function(t){l.value=t,o(l)}),(function(t){return i("throw",t,o,a)}))}a(h.arg)}var r;n(this,"_invoke",{value:function(t,s){function n(){return new e((function(e,n){i(t,s,e,n)}))}return r=r?r.then(n,n):n()}})}function M(t,e,i){var s=d;return function(n,r){if(s===g)throw new Error("Generator is already running");if(s===f){if("throw"===n)throw r;return C()}for(i.method=n,i.arg=r;;){var o=i.delegate;if(o){var a=E(o,i);if(a){if(a===_)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===d)throw s=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=g;var h=u(t,e,i);if("normal"===h.type){if(s=i.done?f:p,h.arg===_)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(s=f,i.method="throw",i.arg=h.arg)}}}function E(t,i){var s=i.method,n=t.iterator[s];if(n===e)return i.delegate=null,"throw"===s&&t.iterator.return&&(i.method="return",i.arg=e,E(t,i),"throw"===i.method)||"return"!==s&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),_;var r=u(n,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,_;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,_):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,_)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var h=s.call(o,"catchLoc"),l=s.call(o,"finallyLoc");if(h&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var s=i.completion;if("throw"===s.type){var n=s.arg;P(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,s){return this.delegate={iterator:N(t),resultName:i,nextLoc:s},"next"===this.method&&(this.arg=e),_}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},8494:function(t,e,i){"use strict";i.r(e),i.d(e,{am5:function(){return f}});const s=window.Promise,n=s&&s.prototype.then,r=s&&s.prototype.catch,o=s&&s.prototype.finally,a=s&&s.reject,h=s&&s.resolve,l=s&&s.allSettled,c=s&&s.all,u=s&&s.race,d=window.fetch,p=String.prototype.startsWith,g=String.prototype.endsWith;i(9629);const f=i(5322);var _;i.p=(_=function(){if(document.currentScript)return document.currentScript;var t=document.getElementsByTagName("script");return t[t.length-1]}().src,((/(.*\/)[^\/]*$/.exec(_)||[])[1]||"./")),s&&(window.Promise=s,n&&(s.prototype.then=n),r&&(s.prototype.catch=r),o&&(s.prototype.finally=o),a&&(s.reject=a),h&&(s.resolve=h),l&&(s.allSettled=l),c&&(s.all=c),u&&(s.race=u)),d&&(window.fetch=d),p&&(String.prototype.startsWith=p),g&&(String.prototype.endsWith=g)},4138:function(t,e){"use strict";var i={value:()=>{}};function s(){for(var t,e=0,i=arguments.length,s={};e=0&&(e=t.slice(i+1),t=t.slice(0,i)),t&&!s.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),h=-1,l=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++h0)for(var i,s,n=new Array(i),r=0;r0&&i*i>s*s+n*n}function u(t,e){for(var i=0;i1e-6?(E+Math.sqrt(E*E-4*M*O))/(2*M):O/E);return{x:s+x+D*P,y:n+k+T*P,r:P}}function f(t,e,i){var s,n,r,o,a=t.x-e.x,h=t.y-e.y,l=a*a+h*h;l?(n=e.r+i.r,n*=n,o=t.r+i.r,n>(o*=o)?(s=(l+o-n)/(2*l),r=Math.sqrt(Math.max(0,o/l-s*s)),i.x=t.x-s*a-r*h,i.y=t.y-s*h+r*a):(s=(l+n-o)/(2*l),r=Math.sqrt(Math.max(0,n/l-s*s)),i.x=e.x+s*a-r*h,i.y=e.y+s*h+r*a)):(i.x=e.x+i.r,i.y=e.y)}function _(t,e){var i=t.r+e.r-1e-6,s=e.x-t.x,n=e.y-t.y;return i>0&&i*i>s*s+n*n}function m(t){var e=t._,i=t.next._,s=e.r+i.r,n=(e.x*i.r+i.x*e.r)/s,r=(e.y*i.r+i.y*e.r)/s;return n*n+r*r}function y(t){this._=t,this.next=null,this.previous=null}function v(t,e){if(!(o=(i=t,t="object"==typeof i&&"length"in i?i:Array.from(i)).length))return 0;var i,s,n,r,o,a,l,u,p,g,v,w;if((s=t[0]).x=0,s.y=0,!(o>1))return s.r;if(n=t[1],s.x=-n.r,n.x=s.r,n.y=0,!(o>2))return s.r+n.r;f(n,s,r=t[2]),s=new y(s),n=new y(n),r=new y(r),s.next=r.previous=n,n.next=s.previous=r,r.next=n.previous=s;t:for(u=3;u(t=(r*t+o)%a)/a}();return s.x=e/2,s.y=i/2,t?s.eachBefore(x(t)).eachAfter(D(h,.5,l)).eachBefore(k(1)):s.eachBefore(x(w)).eachAfter(D(n.G,1,l)).eachAfter(D(h,s.r/Math.min(e,i),l)).eachBefore(k(Math.min(e,i)/(2*s.r))),s}return l.radius=function(e){return arguments.length?(t=(0,s.j)(e),l):t},l.size=function(t){return arguments.length?(e=+t[0],i=+t[1],l):[e,i]},l.padding=function(t){return arguments.length?(h="function"==typeof t?t:(0,n.Z)(+t),l):h},l}function x(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function D(t,e,i){return function(s){if(n=s.children){var n,r,o,a=n.length,h=t(s)*e||0;if(h)for(r=0;r=0))throw new Error(`invalid digits: ${t}`);if(e>15)return a;const i=10**e;return function(t){this._+=t[0];for(let e=1,s=t.length;er)if(Math.abs(d*l-c*u)>r&&o){let g=i-a,f=n-h,_=l*l+c*c,m=g*g+f*f,y=Math.sqrt(_),v=Math.sqrt(p),w=o*Math.tan((s-Math.acos((_+p-m)/(2*y*v)))/2),b=w/v,x=w/y;Math.abs(b-1)>r&&this._append`L${t+b*u},${e+b*d}`,this._append`A${o},${o},0,0,${+(d*g>u*f)},${this._x1=t+x*l},${this._y1=e+x*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,i,a,h,l){if(t=+t,e=+e,l=!!l,(i=+i)<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(a),u=i*Math.sin(a),d=t+c,p=e+u,g=1^l,f=l?a-h:h-a;null===this._x1?this._append`M${d},${p}`:(Math.abs(this._x1-d)>r||Math.abs(this._y1-p)>r)&&this._append`L${d},${p}`,i&&(f<0&&(f=f%n+n),f>o?this._append`A${i},${i},0,1,${g},${t-c},${e-u}A${i},${i},0,1,${g},${this._x1=d},${this._y1=p}`:f>r&&this._append`A${i},${i},0,${+(f>=s)},${g},${this._x1=t+i*Math.cos(h)},${this._y1=e+i*Math.sin(h)}`)}rect(t,e,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function l(){return new h}l.prototype=h.prototype},832:function(t,e,i){"use strict";i.d(e,{Z:function(){return D}});var s=i(3141);const n=Math.abs,r=Math.atan2,o=Math.cos,a=Math.max,h=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,d=Math.PI,p=d/2,g=2*d;function f(t){return t>=1?p:t<=-1?-p:Math.asin(t)}var _=i(5987);function m(t){return t.innerRadius}function y(t){return t.outerRadius}function v(t){return t.startAngle}function w(t){return t.endAngle}function b(t){return t&&t.padAngle}function x(t,e,i,s,n,r,o){var h=t-i,l=e-s,u=(o?r:-r)/c(h*h+l*l),d=u*l,p=-u*h,g=t+d,f=e+p,_=i+d,m=s+p,y=(g+_)/2,v=(f+m)/2,w=_-g,b=m-f,x=w*w+b*b,D=n-r,k=g*m-_*f,T=(b<0?-1:1)*c(a(0,D*D*x-k*k)),M=(k*b-w*T)/x,E=(-k*w-b*T)/x,O=(k*b+w*T)/x,P=(-k*w+b*T)/x,S=M-y,N=E-v,C=O-y,L=P-v;return S*S+N*N>C*C+L*L&&(M=O,E=P),{cx:M,cy:E,x01:-d,y01:-p,x11:M*(n/D-1),y11:E*(n/D-1)}}function D(){var t=m,e=y,i=(0,s.Z)(0),a=null,D=v,k=w,T=b,M=null,E=(0,_.d)(O);function O(){var s,_,m,y=+t.apply(this,arguments),v=+e.apply(this,arguments),w=D.apply(this,arguments)-p,b=k.apply(this,arguments)-p,O=n(b-w),P=b>w;if(M||(M=s=E()),vu)if(O>g-u)M.moveTo(v*o(w),v*l(w)),M.arc(0,0,v,w,b,!P),y>u&&(M.moveTo(y*o(b),y*l(b)),M.arc(0,0,y,b,w,P));else{var S,N,C=w,L=b,A=w,R=b,U=O,B=O,F=T.apply(this,arguments)/2,I=F>u&&(a?+a.apply(this,arguments):c(y*y+v*v)),H=h(n(v-y)/2,+i.apply(this,arguments)),z=H,G=H;if(I>u){var V=f(I/y*l(F)),W=f(I/v*l(F));(U-=2*V)>u?(A+=V*=P?1:-1,R-=V):(U=0,A=R=(w+b)/2),(B-=2*W)>u?(C+=W*=P?1:-1,L-=W):(B=0,C=L=(w+b)/2)}var Y=v*o(C),j=v*l(C),X=y*o(R),$=y*l(R);if(H>u){var Z,K=v*o(L),q=v*l(L),Q=y*o(A),J=y*l(A);if(O1?0:m<-1?d:Math.acos(m))/2),rt=c(Z[0]*Z[0]+Z[1]*Z[1]);z=h(H,(y-rt)/(nt-1)),G=h(H,(v-rt)/(nt+1))}else z=G=0}B>u?G>u?(S=x(Q,J,Y,j,v,G,P),N=x(K,q,X,$,v,G,P),M.moveTo(S.cx+S.x01,S.cy+S.y01),Gu&&U>u?z>u?(S=x(X,$,K,q,y,-z,P),N=x(Y,j,Q,J,y,-z,P),M.lineTo(S.cx+S.x01,S.cy+S.y01),z=o;--a)p.point(y[a],v[a]);p.lineEnd(),p.areaEnd()}m&&(y[r]=+t(h,r,n),v[r]=+e(h,r,n),p.point(l?+l(h,r,n):y[r],i?+i(h,r,n):v[r]))}if(f)return p=null,f+""||null}function _(){return(0,o.Z)().defined(c).curve(d).context(u)}return t="function"==typeof t?t:void 0===t?h.x:(0,n.Z)(+t),e="function"==typeof e?e:void 0===e?(0,n.Z)(0):(0,n.Z)(+e),i="function"==typeof i?i:void 0===i?h.y:(0,n.Z)(+i),f.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),l=null,f):t},f.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),f):t},f.x1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):l},f.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),i=null,f):e},f.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),f):e},f.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):i},f.lineX0=f.lineY0=function(){return _().x(t).y(e)},f.lineY1=function(){return _().x(t).y(i)},f.lineX1=function(){return _().x(l).y(e)},f.defined=function(t){return arguments.length?(c="function"==typeof t?t:(0,n.Z)(!!t),f):c},f.curve=function(t){return arguments.length?(d=t,null!=u&&(p=d(u)),f):d},f.context=function(t){return arguments.length?(null==t?u=p=null:p=d(u=t),f):u},f}},8457:function(t,e,i){"use strict";function s(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}i.d(e,{Z:function(){return s}}),Array.prototype.slice},3141:function(t,e,i){"use strict";function s(t){return function(){return t}}i.d(e,{Z:function(){return s}})},964:function(t,e,i){"use strict";function s(t){this._context=t}function n(t){return new s(t)}i.d(e,{Z:function(){return n}}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},774:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var s=i(8457),n=i(3141),r=i(964),o=i(5987),a=i(6758);function h(t,e){var i=(0,n.Z)(!0),h=null,l=r.Z,c=null,u=(0,o.d)(d);function d(n){var r,o,a,d=(n=(0,s.Z)(n)).length,p=!1;for(null==h&&(c=l(a=u())),r=0;r<=d;++r)!(r=0))throw new RangeError(`invalid digits: ${i}`);e=t}return t},()=>new s.y$(e)}},6758:function(t,e,i){"use strict";function s(t){return t[0]}function n(t){return t[1]}i.d(e,{x:function(){return s},y:function(){return n}})},7738:function(t,e,i){"use strict";i.d(e,{B7:function(){return _},HT:function(){return m},zO:function(){return g}});var s,n,r=0,o=0,a=0,h=1e3,l=0,c=0,u=0,d="object"==typeof performance&&performance.now?performance:Date,p="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return c||(p(f),c=d.now()+u)}function f(){c=0}function _(){this._call=this._time=this._next=null}function m(t,e,i){var s=new _;return s.restart(t,e,i),s}function y(){c=(l=d.now())+u,r=o=0;try{!function(){g(),++r;for(var t,e=s;e;)(t=c-e._time)>=0&&e._call.call(void 0,t),e=e._next;--r}()}finally{r=0,function(){for(var t,e,i=s,r=1/0;i;)i._call?(r>i._time&&(r=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:s=e);n=t,w(r)}(),c=0}}function v(){var t=d.now(),e=t-l;e>h&&(u-=e,l=t)}function w(t){r||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(y,t-d.now()-u)),a&&(a=clearInterval(a))):(a||(l=d.now(),a=setInterval(v,h)),r=1,p(y)))}_.prototype=m.prototype={constructor:_,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?g():+i)+(null==e?0:+e),this._next||n===this||(n?n._next=this:s=this,n=this),this._call=t,this._time=i,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},7896:function(t,e,i){"use strict";function s(){}function n(t){return null==t?s:function(){return this.querySelector(t)}}function r(){return[]}function o(t){return null==t?r:function(){return this.querySelectorAll(t)}}function a(t){return function(){return this.matches(t)}}function h(t){return function(e){return e.matches(t)}}var l=Array.prototype.find;function c(){return this.firstElementChild}var u=Array.prototype.filter;function d(){return Array.from(this.children)}function p(t){return new Array(t.length)}function g(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function f(t,e,i,s,n,r){for(var o,a=0,h=e.length,l=r.length;ae?1:t>=e?0:NaN}g.prototype={constructor:g,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var w="http://www.w3.org/1999/xhtml",b={svg:"http://www.w3.org/2000/svg",xhtml:w,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function x(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),b.hasOwnProperty(e)?{space:b[e],local:t}:t}function D(t){return function(){this.removeAttribute(t)}}function k(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T(t,e){return function(){this.setAttribute(t,e)}}function M(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function O(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function P(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function S(t){return function(){this.style.removeProperty(t)}}function N(t,e,i){return function(){this.style.setProperty(t,e,i)}}function C(t,e,i){return function(){var s=e.apply(this,arguments);null==s?this.style.removeProperty(t):this.style.setProperty(t,s,i)}}function L(t,e){return t.style.getPropertyValue(e)||P(t).getComputedStyle(t,null).getPropertyValue(e)}function A(t){return function(){delete this[t]}}function R(t,e){return function(){this[t]=e}}function U(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function B(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new I(t)}function I(t){this._node=t,this._names=B(t.getAttribute("class")||"")}function H(t,e){for(var i=F(t),s=-1,n=e.length;++s=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ut=[null];function dt(t,e){this._groups=t,this._parents=e}function pt(){return new dt([[document.documentElement]],ut)}dt.prototype=pt.prototype={constructor:dt,select:function(t){"function"!=typeof t&&(t=n(t));for(var e=this._groups,i=e.length,s=new Array(i),r=0;r=T&&(T=k+1);!(D=b[T])&&++T=0;)(s=n[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=v);for(var i=this._groups,s=i.length,n=new Array(s),r=0;r1?this.each((null==e?S:"function"==typeof e?C:N)(t,e,null==i?"":i)):L(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?A:"function"==typeof e?U:R)(t,e)):this.node()[t]},classed:function(t,e){var i=B(t+"");if(arguments.length<2){for(var s=F(this.node()),n=-1,r=i.length;++n=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}))}(t+""),o=r.length;if(!(arguments.length<2)){for(a=e?at:ot,s=0;s{s.stop(),t(i+e)}),e,i),s}var yt=(0,ft.Z)("start","end","cancel","interrupt"),vt=[],wt=0,bt=3;function xt(t,e,i,s,n,r){var o=t.__transition;if(o){if(i in o)return}else t.__transition={};!function(t,e,i){var s,n=t.__transition;function r(h){var l,c,u,d;if(1!==i.state)return a();for(l in n)if((d=n[l]).name===i.name){if(d.state===bt)return mt(r);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[l]):+lwt)throw new Error("too late; already scheduled");return i}function kt(t,e){var i=Tt(t,e);if(i.state>bt)throw new Error("too late; already running");return i}function Tt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Mt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Et,Ot=180/Math.PI,Pt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function St(t,e,i,s,n,r){var o,a,h;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(h=t*i+e*s)&&(i-=t*h,s-=e*h),(a=Math.sqrt(i*i+s*s))&&(i/=a,s/=a,h/=a),t*s180?e+=360:e-t>180&&(t+=360),r.push({i:i.push(n(i)+"rotate(",null,s)-2,x:Mt(t,e)})):e&&i.push(n(i)+"rotate("+e+s)}(r.rotate,o.rotate,a,h),function(t,e,i,r){t!==e?r.push({i:i.push(n(i)+"skewX(",null,s)-2,x:Mt(t,e)}):e&&i.push(n(i)+"skewX("+e+s)}(r.skewX,o.skewX,a,h),function(t,e,i,s,r,o){if(t!==i||e!==s){var a=r.push(n(r)+"scale(",null,",",null,")");o.push({i:a-4,x:Mt(t,i)},{i:a-2,x:Mt(e,s)})}else 1===i&&1===s||r.push(n(r)+"scale("+i+","+s+")")}(r.scaleX,r.scaleY,o.scaleX,o.scaleY,a,h),r=o=null,function(t){for(var e,i=-1,s=h.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?se(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?se(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jt.exec(t))?new re(e[1],e[2],e[3],1):(e=Xt.exec(t))?new re(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$t.exec(t))?se(e[1],e[2],e[3],e[4]):(e=Zt.exec(t))?se(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Kt.exec(t))?ue(e[1],e[2]/100,e[3]/100,1):(e=qt.exec(t))?ue(e[1],e[2]/100,e[3]/100,e[4]):Qt.hasOwnProperty(t)?ie(Qt[t]):"transparent"===t?new re(NaN,NaN,NaN,0):null}function ie(t){return new re(t>>16&255,t>>8&255,255&t,1)}function se(t,e,i,s){return s<=0&&(t=e=i=NaN),new re(t,e,i,s)}function ne(t,e,i,s){return 1===arguments.length?((n=t)instanceof It||(n=ee(n)),n?new re((n=n.rgb()).r,n.g,n.b,n.opacity):new re):new re(t,e,i,null==s?1:s);var n}function re(t,e,i,s){this.r=+t,this.g=+e,this.b=+i,this.opacity=+s}function oe(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}`}function ae(){const t=he(this.opacity);return`${1===t?"rgb(":"rgba("}${le(this.r)}, ${le(this.g)}, ${le(this.b)}${1===t?")":`, ${t})`}`}function he(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function le(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ce(t){return((t=le(t))<16?"0":"")+t.toString(16)}function ue(t,e,i,s){return s<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new pe(t,e,i,s)}function de(t){if(t instanceof pe)return new pe(t.h,t.s,t.l,t.opacity);if(t instanceof It||(t=ee(t)),!t)return new pe;if(t instanceof pe)return t;var e=(t=t.rgb()).r/255,i=t.g/255,s=t.b/255,n=Math.min(e,i,s),r=Math.max(e,i,s),o=NaN,a=r-n,h=(r+n)/2;return a?(o=e===r?(i-s)/a+6*(i0&&h<1?0:o,new pe(o,a,h,t.opacity)}function pe(t,e,i,s){this.h=+t,this.s=+e,this.l=+i,this.opacity=+s}function ge(t){return(t=(t||0)%360)<0?t+360:t}function fe(t){return Math.max(0,Math.min(1,t||0))}function _e(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function me(t,e,i,s,n){var r=t*t,o=r*t;return((1-3*t+3*r-o)*e+(4-6*r+3*o)*i+(1+3*t+3*r-3*o)*s+o*n)/6}Bt(It,ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return de(this).formatHsl()},formatRgb:te,toString:te}),Bt(re,ne,Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new re(le(this.r),le(this.g),le(this.b),he(this.opacity))},displayable(){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:oe,formatHex:oe,formatHex8:function(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}${ce(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ae,toString:ae})),Bt(pe,(function(t,e,i,s){return 1===arguments.length?de(t):new pe(t,e,i,null==s?1:s)}),Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new pe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new pe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*e,n=2*i-s;return new re(_e(t>=240?t-240:t+120,n,s),_e(t,n,s),_e(t<120?t+240:t-120,n,s),this.opacity)},clamp(){return new pe(ge(this.h),fe(this.s),fe(this.l),he(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=he(this.opacity);return`${1===t?"hsl(":"hsla("}${ge(this.h)}, ${100*fe(this.s)}%, ${100*fe(this.l)}%${1===t?")":`, ${t})`}`}}));var ye=t=>()=>t;function ve(t,e){var i=e-t;return i?function(t,e){return function(i){return t+i*e}}(t,i):ye(isNaN(t)?e:t)}var we=function t(e){var i=function(t){return 1==(t=+t)?ve:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(s){return Math.pow(t+s*e,i)}}(e,i,t):ye(isNaN(e)?i:e)}}(e);function s(t,e){var s=i((t=ne(t)).r,(e=ne(e)).r),n=i(t.g,e.g),r=i(t.b,e.b),o=ve(t.opacity,e.opacity);return function(e){return t.r=s(e),t.g=n(e),t.b=r(e),t.opacity=o(e),t+""}}return s.gamma=t,s}(1);function be(t){return function(e){var i,s,n=e.length,r=new Array(n),o=new Array(n),a=new Array(n);for(i=0;i=1?(i=1,e-1):Math.floor(i*e),n=t[s],r=t[s+1],o=s>0?t[s-1]:2*n-r,a=sr&&(n=e.slice(r,n),a[o]?a[o]+=n:a[++o]=n),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,h.push({i:o,x:Mt(i,s)})),r=De.lastIndex;return r=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Dt:kt;return function(){var o=r(this,t),a=o.on;a!==s&&(n=(s=a).copy()).on(e,i),o.on=n}}(i,t,e))},attr:function(t,e){var i=x(t),s="transform"===i?Lt:Te;return this.attrTween(t,"function"==typeof e?(i.local?Ne:Se)(i,s,Ut(this,"attr."+t,e)):null==e?(i.local?Ee:Me)(i):(i.local?Pe:Oe)(i,s,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;var s=x(t);return this.tween(i,(s.local?Ce:Le)(s,e))},style:function(t,e,i){var s="transform"==(t+="")?Ct:Te;return null==e?this.styleTween(t,function(t,e){var i,s,n;return function(){var r=L(this,t),o=(this.style.removeProperty(t),L(this,t));return r===o?null:r===i&&o===s?n:n=e(i=r,s=o)}}(t,s)).on("end.style."+t,Ie(t)):"function"==typeof e?this.styleTween(t,function(t,e,i){var s,n,r;return function(){var o=L(this,t),a=i(this),h=a+"";return null==a&&(this.style.removeProperty(t),h=a=L(this,t)),o===h?null:o===s&&h===n?r:(n=h,r=e(s=o,a))}}(t,s,Ut(this,"style."+t,e))).each(function(t,e){var i,s,n,r,o="style."+e,a="end."+o;return function(){var h=kt(this,t),l=h.on,c=null==h.value[o]?r||(r=Ie(e)):void 0;l===i&&n===c||(s=(i=l).copy()).on(a,n=c),h.on=s}}(this._id,t)):this.styleTween(t,function(t,e,i){var s,n,r=i+"";return function(){var o=L(this,t);return o===r?null:o===s?n:n=e(s=o,i)}}(t,s,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var s="style."+(t+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(null==e)return this.tween(s,null);if("function"!=typeof e)throw new Error;return this.tween(s,function(t,e,i){var s,n;function r(){var r=e.apply(this,arguments);return r!==n&&(s=(n=r)&&function(t,e,i){return function(s){this.style.setProperty(t,e.call(this,s),i)}}(t,r,i)),s}return r._value=e,r}(t,e,null==i?"":i))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ut(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,i;function s(){var s=t.apply(this,arguments);return s!==i&&(e=(i=s)&&function(t){return function(e){this.textContent=t.call(this,e)}}(s)),e}return s._value=t,s}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var s,n=Tt(this.node(),i).tween,r=0,o=n.length;r2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[n]):o=!1;o&&delete t.__transition}}(this,t)}))},gt.prototype.transition=function(t){var e,i;t instanceof ze?(e=t._id,t=t._name):(e=Ge(),(i=We).time=(0,_t.zO)(),t=null==t?null:t+"");for(var s=this._groups,n=s.length,r=0;r=n)&&Object.keys(a.O).every((function(t){return a.O[t](i[h])}))?i.splice(h--,1):(o=!1,n0&&t[c-1][2]>n;c--)t[c]=t[c-1];t[c]=[i,s,n]},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},i=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(t,s){if(1&s&&(t=this(t)),8&s)return t;if("object"==typeof t&&t){if(4&s&&t.__esModule)return t;if(16&s&&"function"==typeof t.then)return t}var n=Object.create(null);a.r(n);var r={};e=e||[null,i({}),i([]),i(i)];for(var o=2&s&&t;"object"==typeof o&&!~e.indexOf(o);o=i(o))Object.getOwnPropertyNames(o).forEach((function(e){r[e]=function(){return t[e]}}));return r.default=function(){return t},a.d(n,r),n},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,i){return a.f[i](t,e),e}),[]))},a.u=function(t){return"deps/"+{643:"pdfmake",4297:"xlsx",4384:"markerjs2"}[t]+".js"},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s={},n="@amcharts/amcharts5:",a.l=function(t,e,i,r){if(s[t])s[t].push(e);else{var o,h;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c{this.zoomOut()})),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",e);const a=this.plotContainer;a.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),a.children.push(this.topGridContainer),a.children.push(this.bulletsContainer),a.set("interactive",!0),a.set("interactiveChildren",!1),a.set("background",o.A.new(t,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(a.events.on("pointerdown",(t=>{this._handlePlotDown(t)}))),this._disposers.push(a.events.on("globalpointerup",(t=>{this._handlePlotUp(t)}))),this._disposers.push(a.events.on("globalpointermove",(t=>{this._handlePlotMove(t)}))),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(t){t._unstack(),t._posXDp&&t._posXDp.dispose(),t._posYDp&&t._posYDp.dispose(),t.set("baseAxis",void 0);const e=t.get("xAxis");e&&(g.remove(e.series,t),e.markDirtyExtremes());const i=t.get("yAxis");i&&(g.remove(i.series,t),i.markDirtyExtremes());const s=this.get("cursor");if(s){const e=s.get("snapToSeries");e&&g.remove(e,t)}super._removeSeries(t)}_applyThemes(t=!1){const e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}handleWheel(t){const e=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=t.originalEvent;let o=!1;if(!p.isLocalEvent(a,this))return;o=!0;const n=s.toLocal(t.point),r=this.get("wheelStep",.2),h=a.deltaY/100,l=a.deltaX/100,d=this.get("wheelZoomPositionX"),g=this.get("wheelZoomPositionY");"zoomX"!==e&&"zoomXY"!==e||0==l||this.xAxes.each((t=>{if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let h=t.get("maxDeviation",0),g=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let l=t.get("maxDeviation",0),g=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let h=t.get("maxDeviation",0),d=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let l=t.get("maxDeviation",0),d=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panX"!==i&&"panXY"!==i||0==h||this.xAxes.each((t=>{if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e+s,n=i+s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==e&&"panXY"!==e||0==l||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==i&&"panXY"!==i||0==h||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e-s,n=i-s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),o&&a.preventDefault()}_handleSetWheel(){const t=this.get("wheelX"),e=this.get("wheelY"),i=this.plotContainer;"none"!==t||"none"!==e?(this._wheelDp=i.events.on("wheel",(i=>{const s=i.originalEvent;("none"!==t&&0!=Math.abs(s.deltaX)||"none"!==e&&0!=Math.abs(s.deltaY))&&this.handleWheel(i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(t){let e=1;return t.get("renderer").get("inversed")&&(e=-1),e}_fixWheel(t,e){const i=e-t;return t<0&&(e=(t=0)+i),e>1&&(t=(e=1)-i),[t,e]}_handlePlotDown(t){const e=t.originalEvent;if(2==e.button)return;const i=this.plotContainer;let s=i.toLocal(t.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&e.pointerId&&m.keys(i._downPoints).length>0){const t=this.xAxes.getIndex(0),e=this.yAxes.getIndex(0);t&&(this._downStartX=t.get("start",0),this._downEndX=t.get("end",1)),e&&(this._downStartY=e.get("start",0),this._downEndY=e.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:e.clientX,y:e.clientY};const i=this.get("panX"),s=this.get("panY");i&&this.xAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")})),s&&this.yAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")}));const a="panstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:t.originalEvent})}}_handleWheelAnimation(t){t?t.events.on("stopped",(()=>{this._dispatchWheelAnimation()})):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const t="wheelended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}_handlePlotUp(t){const e=this._downPoint;if(e&&(this.get("panX")||this.get("panY"))){if(t.originalEvent.clientX==e.x&&t.originalEvent.clientY==e.y){const e="pancancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:t.originalEvent})}this._downPoint=void 0,this.xAxes.each((t=>{t._isPanning=!1})),this.yAxes.each((t=>{t._isPanning=!1}))}_handlePlotMove(t){const e=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const i=t.originalEvent.pointerId;if(i&&(this._movePoints[i]=t.point,m.keys(e._downPoints).length>1))return void this._handlePinch()}let i=this._downPoint;if(i){i=e.toLocal(this._root.documentPointToRoot(i));let s=e.toLocal(t.point);const a=this.get("panX"),o=this.get("panY");if(a){let t=this.get("scrollbarX");t&&t.events.disableType("rangechanged"),this.xAxes.each((t=>{if(t.get("panX")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.x-s.x)/e.width();t.get("renderer").get("inversed")&&(n*=-1);let r=a+n,h=o+n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}if(o){let t=this.get("scrollbarY");t&&t.events.disableType("rangechanged"),this.yAxes.each((t=>{if(t.get("panY")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.y-s.y)/e.height();t.get("renderer").get("inversed")&&(n*=-1);let r=a-n,h=o-n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}}}_handlePinch(){const t=this.plotContainer;let e=0,i=[],s=[];if(m.each(t._downPoints,((t,a)=>{i[e]=a;let o=this._movePoints[t];o&&(s[e]=o),e++})),i.length>1&&s.length>1){const e=t.width(),a=t.height();let o=i[0],n=i[1],r=s[0],h=s[1];if(o&&n&&r&&h){if(r=t.toLocal(r),h=t.toLocal(h),o=t.toLocal(o),n=t.toLocal(n),this.get("pinchZoomX")){const t=this._downStartX,i=this._downEndX;if(null!=t&&null!=i){o.x>n.x&&([o,n]=[n,o],[r,h]=[h,r]);let s=t+o.x/e*(i-t),a=t+n.x/e*(i-t),l=t+r.x/e*(i-t),d=t+h.x/e*(i-t),g=Math.max(.001,a-s)/Math.max(.001,d-l),c=t*g+s-l*g,u=i*g+a-d*g;this.xAxes.each((t=>{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}if(this.get("pinchZoomY")){const t=this._downStartY,e=this._downEndY;if(null!=t&&null!=e){o.y{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}}}}_handleCursorPosition(){const t=this.get("cursor");if(t){const e=t.getPrivate("point");let i=t.get("snapToSeries");if(t._downPoint&&(i=void 0),i&&e){const s=t.get("snapToSeriesBy"),a=[];g.each(i,(t=>{if(!t.isHidden()&&!t.isHiding())if("x!"!=s&&"y!"!=s){const e=t.startIndex(),i=t.endIndex();for(let s=e;s{const i=t.get("point");if(i){let a=0;a="x"==s||"x!"==s?Math.abs(e.x-i.x):"y"==s||"y!"==s?Math.abs(e.y-i.y):Math.hypot(e.x-i.x,e.y-i.y),a{const e=t.get("tooltip");e&&e._setDataItem(void 0)})),o){let e=o.component;e.showDataItemTooltip(o),e.setRaw("tooltipDataItem",o);const i=o.get("point");i&&t.handleMove(e.toGlobal({x:i.x-e.x(),y:i.y-e.y()}),!0)}}}}_updateCursor(){let t=this.get("cursor");t&&t.updateCursor()}_addCursor(t){this.plotContainer.children.push(t)}_prepareChildren(){if(super._prepareChildren(),this.series.each((t=>{this._colorize(t)})),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const t=this._prevSettings.cursor,e=this.get("cursor");e!==t&&(this._disposeProperty("cursor"),t&&t.dispose(),e&&(e._setChart(this),this._addCursor(e),this._pushPropertyDisposer("cursor",e.events.on("selectended",(()=>{this._handleCursorSelectEnd()})))),this._prevSettings.cursor=e)}if(this.isDirty("scrollbarX")){const t=this._prevSettings.scrollbarX,e=this.get("scrollbarX");e!==t&&(this._disposeProperty("scrollbarX"),t&&t.dispose(),e&&(e.parent||this.topAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarX",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.xAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarX",e.events.on("released",(()=>{this.xAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.xAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarX=e)}if(this.isDirty("scrollbarY")){const t=this._prevSettings.scrollbarY,e=this.get("scrollbarY");e!==t&&(this._disposeProperty("scrollbarY"),t&&t.dispose(),e&&(e.parent||this.rightAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarY",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.yAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarY",e.events.on("released",(()=>{this.yAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.yAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarY=e)}this._handleZoomOut()}_processSeries(t){super._processSeries(t);const e=t.get("xAxis"),i=t.get("yAxis");g.move(e.series,t),g.move(i.series,t),t._posXDp=t.addDisposer(e.events.on("positionchanged",(()=>{t._fixPosition()}))),t._posXDp=t.addDisposer(i.events.on("positionchanged",(()=>{t._fixPosition()}))),t.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?t.set("baseAxis",i):t.set("baseAxis",e)),t.get("stacked")&&(t._markDirtyKey("stacked"),g.each(t.dataItems,(t=>{t.set("stackToItemY",void 0),t.set("stackToItemX",void 0)}))),t._markDirtyAxes(),i.markDirtyExtremes(),e.markDirtyExtremes(),e._seriesAdded=!0,i._seriesAdded=!0,this._colorize(t)}_colorize(t){const e=this.get("colors");if(e&&null==t.get("fill")){const i=e.next();t._setSoft("stroke",i),t._setSoft("fill",i)}const i=this.get("patterns");if(i&&null==t.get("fillPattern")){const e=i.next();t._setSoft("fillPattern",e)}}_handleCursorSelectEnd(){const t=this.get("cursor"),e=t.get("behavior"),i=t.getPrivate("downPositionX",0),s=t.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,t.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,t.getPrivate("positionY",.5)));this.xAxes.each((t=>{if("zoomX"===e||"zoomXY"===e){let e=t.toAxisPosition(i),s=t.toAxisPosition(a);t.zoom(e,s)}t.setPrivate("updateScrollbar",!0)})),this.yAxes.each((t=>{if("zoomY"===e||"zoomXY"===e){let e=t.toAxisPosition(s),i=t.toAxisPosition(o);t.zoom(e,i)}t.setPrivate("updateScrollbar",!0)}))}_handleScrollbar(t,e,i,s){t.each((t=>{let a=t.fixPosition(e),o=t.fixPosition(i),n=t.zoom(a,o,void 0,s);const r="updateScrollbar";t.setPrivateRaw(r,!1),n?n.events.on("stopped",(()=>{t.setPrivateRaw(r,!0)})):t.setPrivateRaw(r,!0)}))}_processAxis(t,e){return t.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxis(t)}));else if("push"===t.type)e.children.push(t.newValue),t.newValue.processChart(this);else if("setIndex"===t.type)e.children.setIndex(t.index,t.newValue),t.newValue.processChart(this);else if("insertIndex"===t.type)e.children.insertIndex(t.index,t.newValue),t.newValue.processChart(this);else if("removeIndex"===t.type)this._removeAxis(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");e.children.moveValue(t.value,t.newIndex),t.value.processChart(this)}}))}_removeAxis(t){if(!t.isDisposed()){const e=t.parent;e&&e.children.removeValue(t);const i=t.gridContainer,s=i.parent;s&&s.children.removeValue(i);const a=t.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){const t=this.leftAxesContainer.width(),e=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",t),i.set("paddingRight",e);const s=this.topAxesContainer;s.set("paddingLeft",t),s.set("paddingRight",e)}processAxis(t){this.get("cursor")&&(this.addDisposer(t.on("start",(()=>{this._updateCursor()}))),this.addDisposer(t.on("end",(()=>{this._updateCursor()}))))}_handleAxisSelection(t,e){let i=t.fixPosition(t.get("start",0)),s=t.fixPosition(t.get("end",1));if(i>s&&([i,s]=[s,i]),-1!=this.xAxes.indexOf(t)){if(e||t.getPrivate("updateScrollbar")){let t=this.get("scrollbarX");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}}else if(-1!=this.yAxes.indexOf(t)&&(e||t.getPrivate("updateScrollbar"))){let t=this.get("scrollbarY");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let t=this.zoomOutButton;if(t&&t.parent){let e=!1;this.xAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),e?t.isHidden()&&t.show():t.hide()}}inPlot(t){const e=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=e.toGlobal(t);if(t.x>=-.5&&t.y>=-.5&&t.x<=e.width()+.5&&t.y<=e.height()+.5)return!0;if(i)for(let t=i.length-1;t>=0;t--){const e=i[t];if(e!=this){const t=e.plotContainer,i=this._root.rootPointToDocument(s),a=e._root.documentPointToRoot(i),o=t.toLocal(a);if(o.x>=-.1&&o.y>=-.1&&o.x<=t.width()+.1&&o.y<=t.height()+.1)return!0}}return!1}arrangeTooltips(){const t=this.plotContainer,e=t.width(),i=t.height();let s=this.height();const a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=t._display.toGlobal({x:0,y:0}),n=t._display.toGlobal({x:e,y:i});const r=[];let l,d,m=0,p=1/0,_=this._movePoint,x=this.get("maxTooltipDistance"),v=this.get("maxTooltipDistanceBy","xy");c.isNumber(x)&&this.series.each((t=>{if(!t.isHidden()){const e=t.get("tooltip");if(e){let i=e.get("pointTo");if(i){let e=Math.hypot(_.x-i.x,_.y-i.y);"x"==v?e=Math.abs(_.x-i.x):"y"==v&&(e=Math.abs(_.y-i.y)),e{const e=t.get("tooltip");if(e&&!e.get("forceHidden")){let i=!1,s=e.get("pointTo");if(s){if(x>=0){let s=e.get("pointTo");if(s&&d&&t!=l){let t=Math.hypot(d.x-s.x,d.y-s.y);"x"==v?t=Math.abs(d.x-s.x):"y"==v&&(t=Math.abs(d.y-s.y)),t>x&&(i=!0)}}else-1==x&&t!=l&&(i=!0);this.inPlot(this._tooltipToLocal(s))&&e.dataItem?i||(m+=s.y):i=!0,i||t.isHidden()||t.isHiding()?e.hide(0):(e.show(),r.push(e),y.push(t))}}})),this.setPrivate("tooltipSeries",y),this.get("arrangeTooltips")){let t=0,e=0;const a=this._root.tooltipContainer,l=r.length;if(m/l>i/2+o.y){r.sort(((t,e)=>u.HO(e.get("pointTo").y,t.get("pointTo").y)));let i=n.y;if(g.each(r,(s=>{let r=s.height();e++,t+=r;let l=s.get("centerY");l instanceof h.gG&&(r*=l.value),r+=s.get("marginBottom",0),s.set("bounds",{left:o.x,top:o.y,right:n.x,bottom:i}),s.setPrivate("customData",{left:o.x,top:o.y,right:n.x,bottom:i}),i=Math.min(i-r,s._fy-r),s.parent==a&&a.children.moveValue(s,0)})),i<0){r.reverse();let t=i;g.each(r,(s=>{e++;let a=s.get("bounds");if(a){let e=a.top-i,o=a.bottom-i;eu.HO(t.get("pointTo").y,e.get("pointTo").y)));let i=0;if(g.each(r,(r=>{e++;let l=r.height();t+=l;let d=r.get("centerY");d instanceof h.gG&&(l*=d.value),l+=r.get("marginBottom",0),r.set("bounds",{left:o.x,top:i,right:n.x,bottom:Math.max(o.y+s,i+l)}),r.parent==a&&a.children.moveValue(r,0),i=Math.max(i+l,r._fy+l)})),i>s){r.reverse();let t=s;g.each(r,(a=>{e++;let o=a.get("bounds");if(o){let e=o.top-(s-i),n=o.bottom-(s-i);n>t&&(n=t,e=n-a.height()),a.set("bounds",{left:o.left,top:e,right:o.right,bottom:n}),t=n-a.height()-a.get("marginBottom",0)}}))}}0==t&&e>0&&this._disposers.push(this.root.events.once("frameended",(()=>{this.arrangeTooltips()})))}}_tooltipToLocal(t){return this.plotContainer.toLocal(t)}zoomOut(){this.xAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))}))}_dispose(){super._dispose();const t=this.get("cursor");t&&t.dispose()}}x.className="XYChart",x.classNames=n.j.classNames.concat([x.className])},55:function(t,e,i){i.d(e,{l:function(){return u}});var s=i(3409),a=i(6245),o=i(1112),n=i(2754),r=i(3783),h=i(1926),l=i(5040),d=i(751),g=i(256),c=i(5071);class u extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.interfaceColors,e=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:n.U.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:o.Il.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:n.U.new(this._root,{saturation:0})});{const e=i("Graphics",["scrollbar","overlay"]);e.setAll({fillOpacity:.5}),(0,r.v)(e,"fill",t,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:a.AQ,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:a.AQ}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:a.AQ}),i("AxisLabel",["y"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const s=i("Grid",["cursor","x"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use left and right arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const s=i("Grid",["cursor","y"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use up and down arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const e=i("Graphics",["cursor","selection"]);e.setAll({fillOpacity:.15}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:a.CI,centerY:a.CI,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const e=i("AxisRenderer");e.setAll({crisp:!0,strokeOpacity:0}),(0,r.v)(e,"stroke",t,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:a.AQ}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:a.AQ});{const e=i("Rectangle",["axis","thumb","zoomgrip"]);e.setAll({fillOpacity:0}),(0,r.v)(e,"fill",t,"alternativeBackground"),e.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{const e=i("Grid");e.setAll({location:0,strokeOpacity:.15,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}{const e=i("Grid",["minor"]);e.setAll({location:0,strokeOpacity:.07,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{const e=i("Graphics",["axis","fill"]);e.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{const e=i("AxisTick");e.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),(0,r.v)(e,"stroke",t,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(t,e)=>{const i=t.get("axisFill");i&&(l.isNumber(e)&&e%2!=0?i.setPrivate("visible",!1):i.setPrivate("visible",!0))}});const s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],u={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_hour"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month"),year:e.translate("_date_year")},m={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_day"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month")+" "+e.translate("_date_year"),year:e.translate("_date_year")},p={millisecond:e.translate("_date_millisecond_full"),second:e.translate("_date_second_full"),minute:e.translate("_date_minute_full"),hour:e.translate("_date_hour_full"),day:e.translate("_date_day_full"),week:e.translate("_date_week_full"),month:e.translate("_date_month_full"),year:e.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m),tooltipDateFormats:p,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=t.get("endValue"),o=i.intervalDuration(),n=i.getPrivate("baseInterval"),r=i.getPrivate("gridInterval",n);let l=i.getPrivate("min",0);if(l=h.round(new Date(l),r.timeUnit,r.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),null!=s&&null!=a){const t=Math.round(Math.round((s-l)/o))/2;t==Math.round(t)?e.setPrivate("visible",!0):e.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.get("index");let s=!1;l.isNumber(i)&&i%2!=0||(s=!0),e.setPrivate("visible",s)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=i.getPrivate("step");l.isNumber(s)&&l.isNumber(a)&&(d.round(s/a/2,5)==Math.round(s/a/2)?e.setPrivate("visible",!1):e.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(70),height:(0,a.aQ)(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,e/2),t.lineTo(s,e/2)}}});{const e=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,e),t.lineTo(0,e),t.lineTo(0,0)}}});{const e=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(50),height:(0,a.aQ)(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:(0,a.aQ)(80),height:(0,a.aQ)(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const e=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const e=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const e=i("Graphics",["rangegrip","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(2,.5),t.lineTo(2,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),(0,r.v)(e,"stroke",t,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:a.CI}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:a.CI}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:a.AQ}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:a.AQ})}}},3355:function(t,e,i){i.d(e,{L:function(){return c}});var s=i(8777),a=i(6245),o=i(1479),n=i(8943),r=i(5040),h=i(7652),l=i(751),d=i(5071),g=i(256);class c extends s.W{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(n.r.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(n.r.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(o.T.new(this._root,{themeTags:["selection","cursor"],layer:30})),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:a.AQ,height:a.AQ,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout((()=>{this.setPrivate("visible",!0)}),500)),this._disposers.push(this.lineX.events.on("positionchanged",(()=>{this._handleXLine()}))),this._disposers.push(this.lineY.events.on("positionchanged",(()=>{this._handleYLine()}))),this._disposers.push(this.lineX.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineX.events.on("blur",(()=>this._handleLineBlur()))),this._disposers.push(this.lineY.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineY.events.on("blur",(()=>this._handleLineBlur()))),h.supports("keyboardevents")&&this._disposers.push(h.addEventListener(document,"keydown",(t=>{this._handleLineMove(h.getEventKey(t),t.ctrlKey)})))}_setUpTouch(){const t=this.chart;t&&(t.plotContainer._display.cancelTouch="none"!=this.get("behavior"))}_handleXLine(){let t=this.lineX.x(),e=!0;(t<0||t>this.width())&&(e=!1),this.lineX.setPrivate("visible",e)}_handleYLine(){let t=this.lineY.y(),e=!0;(t<0||t>this.height())&&(e=!1),this.lineY.setPrivate("visible",e)}_handleLineMove(t,e){let i="";const s=this.chart;let a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(e&&(o=5),a){let e,s=a.get("renderer").get("inversed",!1);"ArrowRight"==t||"ArrowDown"==t?e=1:"ArrowLeft"==t||"ArrowUp"==t?e=-1:"Tab"==t&&(e=0),null!=e&&(s&&(e*=-1),this.set(i,a.nextPosition(e*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const t=this.get("xAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipX=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateXLine(e)}))))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const t=this.get("yAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipY=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateYLine(e)}))))}}}_handleSyncWith(){const t=this.chart;if(t){const e=this.get("syncWith"),i=[];e&&d.each(e,(t=>{const e=t.chart;e&&i.push(e)})),t._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const t=this.get("positionX"),e=this.get("positionY");null==t&&null==e?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).x,3);this._toX!=e&&(this.lineX.animate({key:"x",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toX=e)}_updateYLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).y,3);this._toY!=e&&(this.lineY.animate({key:"y",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toY=e)}_drawLines(){this.lineX.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,this.height())})),this.lineY.set("draw",(t=>{t.moveTo(0,0),t.lineTo(this.width(),0)}))}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(t){this.chart=t,this._handleSyncWith();const e=t.plotContainer;this.events.on("boundschanged",(()=>{this._disposers.push(this.setTimeout((()=>{this.updateCursor()}),50))})),h.supports("touchevents")&&(this._disposers.push(e.events.on("click",(t=>{h.isTouchEvent(t.originalEvent)&&this._handleMove(t)}))),this._setUpTouch()),this._disposers.push(e.events.on("pointerdown",(t=>{this._handleCursorDown(t)}))),this._disposers.push(e.events.on("globalpointerup",(t=>{this._handleCursorUp(t),t.native||this.isHidden()||this._handleMove(t)}))),this._disposers.push(e.events.on("globalpointermove",(t=>{(this.get("syncWith")||0!=g.keys(e._downPoints).length||t.native||!this.isHidden())&&(this._handleMove(t),Math.hypot(this._lastPoint2.x-t.point.x,this._lastPoint2.y-t.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=t.point))})));const i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(t){const e=this.chart;return!!e&&e.inPlot(t)}_handleCursorDown(t){if(2==t.originalEvent.button)return;const e=t.point;let i=this._display.toLocal(e);const s=this.chart;if(this.selection.set("draw",(()=>{})),s&&this._inPlot(i)){if(this._downPoint=i,"none"!=this.get("behavior")){this.selection.show();const e="selectstarted";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}let e=this._getPosition(i).x,s=this._getPosition(i).y;this.setPrivate("downPositionX",e),this.setPrivate("downPositionY",s)}}_handleCursorUp(t){if(this._downPoint){const e=this.get("behavior","none");if("none"!=e){"z"===e.charAt(0)&&this.selection.hide();const i=t.point;let s=this._display.toLocal(i);const a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let i=!1;if("zoomX"!==e&&"zoomXY"!==e&&"selectX"!==e&&"selectXY"!==e||Math.abs(s.x-a.x)>o&&(i=!0),"zoomY"!==e&&"zoomXY"!==e&&"selectY"!==e&&"selectXY"!==e||Math.abs(s.y-a.y)>o&&(i=!0),i){const e="selectended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}else{const e="selectcancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}}}}this._downPoint=void 0}_handleMove(t){if(this.getPrivate("visible")){const e=this.chart;if(e&&g.keys(e.plotContainer._downPoints).length>1)return void this.set("forceHidden",!0);this.set("forceHidden",!1);const i=t.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,t.originalEvent)}}_getPosition(t){return{x:t.x/this.width(),y:t.y/this.height()}}handleMove(t,e,i){t||(t=this._movePoint);const s=this.get("alwaysShow");if(!t)return void this.hide(0);this._movePoint=t;let a=this._display.toLocal(t),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=t,this.isHidden()&&(this.show(),"z"==this.get("behavior","").charAt(0)&&this.selection.set("draw",(()=>{})));let n=a.x,h=a.y,l=this._getPosition(a);this.setPrivate("point",a);let d=this.get("snapToSeries");this._downPoint&&(d=void 0);let g=this.get("positionX"),c=l.x;r.isNumber(g)&&(c=g);let u=this.get("positionY"),m=l.y;r.isNumber(u)&&(m=u),this.setPrivate("positionX",c),this.setPrivate("positionY",m);const p=this._getPoint(c,m);if(n=p.x,h=p.y,o.xAxes.each((t=>{t._handleCursorPosition(c,d),s&&t.handleCursorShow()})),o.yAxes.each((t=>{t._handleCursorPosition(m,d),s&&t.handleCursorShow()})),!e){o._handleCursorPosition();const e="cursormoved";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,point:t,originalEvent:i})}this._updateLines(n,h),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);const t="cursorhidden";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this._downPoint&&"none"!=this.get("behavior")&&this._updateSelection(a)}_getPoint(t,e){return{x:this.width()*t,y:this.height()*e}}_updateLines(t,e){this._tooltipX||this.lineX.set("x",t),this._tooltipY||this.lineY.set("y",e),this._drawLines()}_updateSelection(t){const e=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();t.x<0&&(t.x=0),t.x>s&&(t.x=s),t.y<0&&(t.y=0),t.y>a&&(t.y=a),e.set("draw",(e=>{const o=this._downPoint;o&&("zoomXY"===i||"selectXY"===i?(e.moveTo(o.x,o.y),e.lineTo(o.x,t.y),e.lineTo(t.x,t.y),e.lineTo(t.x,o.y),e.lineTo(o.x,o.y)):"zoomX"===i||"selectX"===i?(e.moveTo(o.x,0),e.lineTo(o.x,a),e.lineTo(t.x,a),e.lineTo(t.x,0),e.lineTo(o.x,0)):"zoomY"!==i&&"selectY"!==i||(e.moveTo(0,o.y),e.lineTo(s,o.y),e.lineTo(s,t.y),e.lineTo(0,t.y),e.lineTo(0,o.y)))}))}_onHide(){if(this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorHide()})),t.yAxes.each((t=>{t.handleCursorHide()})),t.series.each((t=>{t.handleCursorHide()})))}super._onHide()}_onShow(){if(!this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorShow()})),t.yAxes.each((t=>{t.handleCursorShow()})))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}c.className="XYCursor",c.classNames=s.W.classNames.concat([c.className])},6515:function(t,e,i){i.d(e,{R:function(){return g}});var s=i(9361),a=i(8777),o=i(6245),n=i(7144),r=i(7142),h=i(5071),l=i(5040),d=i(7652);class g extends s.w{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(a.W.new(this._root,{})),this.gridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.topGridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.bulletsContainer=this.children.push(a.W.new(this._root,{isMeasured:!1,width:o.AQ,height:o.AQ,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new n.aV,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(a.W.new(this._root,{themeTags:["axis","header"],position:"absolute",background:r.A.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)h.each(t.oldValues,(t=>{t.dispose()}));else if("push"===t.type)this._processAxisRange(t.newValue,["range"]);else if("setIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("insertIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("removeIndex"===t.type)this.disposeDataItem(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value,["range"])}})));const t=this.get("renderer");t&&(t.axis=this,t.processAxis()),this.children.push(t),this._createGhostLabel()}_createGhostLabel(){const t=this.get("renderer").makeLabel(new s.z(this,void 0,{}),[]);t.adapters.disable("text"),t.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),t.events.disable(),this.ghostLabel=t}_updateFinals(t,e){}zoom(t,e,i,s){if(this.get("zoomable",!0))if(this._updateFinals(t,e),this.get("start")!==t||this.get("end")!=e){let a=this._sAnimation,o=this._eAnimation;t>e&&([t,e]=[e,t]);let n=this.get("maxDeviation",.5)*Math.min(1,e-t);t<-n&&(t=-n),e>1+n&&(e=1+n);let r=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),h=r;l.isNumber(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),1===e&&0!==t&&(s=tthis.get("end",1)?"end":"start");let d=this.get("minZoomCount",0);const g=this.dataItems;g&&g.lengthe&&([t,e]=[e,t]),"start"===s?(c>0&&1/(e-t)r&&(e=t+1/r),e>1&&e-t<1/r&&(t=e-1/r)):(c>0&&1/(e-t)r&&(t=e-1/r),t<0&&e-t<1/r&&(e=t+1/r)),1/(e-t)>r&&(e=t+1/r),1/(e-t)>r&&(t=e-1/r),null!=c&&null!=d&&t==this.get("start")&&e==this.get("end")){const t=this.chart;t&&t._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==t||this.get("start")==t)&&(o&&o.playing&&o.to==e||this.get("end")==e))return;if(i>0){let s,a,o=this.get("interpolationEasing");if(this.get("start")!=t&&(s=this.animate({key:"start",to:t,duration:i,easing:o})),this.get("end")!=e&&(a=this.animate({key:"end",to:e,duration:i,easing:o})),this._sAnimation=s,this._eAnimation=a,s)return s;if(a)return a}else this.set("start",t),this.set("end",e),this.root.events.once("frameended",(()=>{this.markDirtyKey("start")}))}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(t,e){t.setRaw("isRange",!0),this._createAssets(t,e),this._rangesDirty=!0,this._prepareDataItem(t);const i=t.get("above"),s=this.topGridContainer,a=t.get("grid");i&&a&&s.children.moveValue(a);const o=t.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(t,e){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each((t=>{this._prepareDataItem(t)})),h.each(this._seriesAxisRanges,(t=>{this._prepareDataItem(t)}))}_prepareChildren(){super._prepareChildren();const t=this.ghostLabel;if(t&&(this.get("fixAxisSize")?t.set("visible",!0):t.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){const t=this.chart;t&&t._updateCursor();let e=this.get("start",0),i=this.get("end",1),s=this.get("maxDeviation",.5)*Math.min(1,i-e);if(e<-s){let t=e+s;e=-s,this.setRaw("start",e),this.isDirty("end")&&this.setRaw("end",i-t)}if(i>1+s){let t=i-1-s;i=1+s,this.setRaw("end",i),this.isDirty("start")&&this.setRaw("start",e-t)}}const e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){const t=this.get("tooltip");if(t){const i=e.get("themeTags");t.addTag("axis"),t.addTag(this.className.toLowerCase()),t._applyThemes(),i&&(t.set("themeTags",d.mergeTags(t.get("themeTags"),i)),t.label._applyThemes())}}}_updateTooltipBounds(){const t=this.get("tooltip");t&&this.get("renderer").updateTooltipBounds(t)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(t){this.chart=t,this.get("renderer").chart=t,t.gridContainer.children.push(this.gridContainer),t.topGridContainer.children.push(this.topGridContainer),t.axisHeadersContainer.children.push(this.axisHeader),this.on("start",(()=>{t._handleAxisSelection(this)})),this.on("end",(()=>{t._handleAxisSelection(this)})),t.plotContainer.onPrivate("width",(()=>{this.markDirtySize()})),t.plotContainer.onPrivate("height",(()=>{this.markDirtySize()})),t.processAxis(this)}hideDataItem(t){return this._toggleFHDataItem(t,!0),super.hideDataItem(t)}showDataItem(t){return this._toggleFHDataItem(t,!1),super.showDataItem(t)}_toggleFHDataItem(t,e){const i="forceHidden",s=t.get("label");s&&s.set(i,e);const a=t.get("grid");a&&a.set(i,e);const o=t.get("tick");o&&o.set(i,e);const n=t.get("axisFill");n&&n.set(i,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.set(i,e)}}_toggleDataItem(t,e){const i=t.get("label"),s="visible";i&&i.setPrivate(s,e);const a=t.get("grid");a&&a.setPrivate(s,e);const o=t.get("tick");o&&o.setPrivate(s,e);const n=t.get("axisFill");n&&n.setPrivate(s,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.setPrivate(s,e)}}_createAssets(t,e,i){var s,a,o;const n=this.get("renderer");let r="minor";const h=t.get("label");if(h){let a=h.get("themeTags"),o=!1;i?-1==(null==a?void 0:a.indexOf(r))&&(o=!0):-1!=(null==a?void 0:a.indexOf(r))&&(o=!0),o&&(null===(s=h.parent)||void 0===s||s.children.removeValue(h),n.makeLabel(t,e),h.dispose(),n.labels.removeValue(h))}else n.makeLabel(t,e);const l=t.get("grid");if(l){let s=l.get("themeTags"),o=!1;i?-1==(null==s?void 0:s.indexOf(r))&&(o=!0):-1!=(null==s?void 0:s.indexOf(r))&&(o=!0),o&&(null===(a=l.parent)||void 0===a||a.children.removeValue(l),n.makeGrid(t,e),l.dispose(),n.grid.removeValue(l))}else n.makeGrid(t,e);const d=t.get("tick");if(d){let s=!1,a=d.get("themeTags");i?-1==(null==a?void 0:a.indexOf(r))&&(s=!0):-1!=(null==a?void 0:a.indexOf(r))&&(s=!0),s&&(null===(o=d.parent)||void 0===o||o.children.removeValue(d),n.makeTick(t,e),d.dispose(),n.ticks.removeValue(d))}else n.makeTick(t,e);i||t.get("axisFill")?i&&!t.get("axisFill")&&this.get("minorAxisFillsEnabled")&&n.makeAxisFill(t,e):n.makeAxisFill(t,e),this._processBullet(t)}_processBullet(t){let e=t.get("bullet"),i=this.get("bullet");if(e||!i||t.get("isRange")||(e=i(this._root,this,t)),e){e.axis=this;const i=e.get("sprite");i&&(i._setDataItem(t),t.setRaw("bullet",e),i.parent||this.bulletsContainer.children.push(i))}}_afterChanged(){super._afterChanged();const t=this.chart;t&&(t._updateChartLayout(),t.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(t){super.disposeDataItem(t);const e=this.get("renderer"),i=t.get("label");i&&(e.labels.removeValue(i),i.dispose());const s=t.get("tick");s&&(e.ticks.removeValue(s),s.dispose());const a=t.get("grid");a&&(e.grid.removeValue(a),a.dispose());const o=t.get("axisFill");o&&(e.axisFills.removeValue(o),o.dispose());const n=t.get("bullet");n&&n.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const t=this.ghostLabel;if(t){if(!t.isHidden()){const e=t.localBounds(),i=Math.ceil(e.right-e.left);let s=t.get("text");h.each(this.dataItems,(t=>{const e=t.get("label");if(e&&!e.isHidden()){const t=e.localBounds();Math.ceil(t.right-t.left)>i&&(s=e.text._getText())}})),t.set("text",s)}let e=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(t,e+.5*(i-e))}}_handleCursorPosition(t,e){t=this.get("renderer").toAxisPosition(t),this._cursorPosition=t,this._snapToSeries=e,this.updateTooltip()}updateTooltip(){const t=this._snapToSeries;let e=this._cursorPosition;const i=this.get("tooltip"),s=this.get("renderer");l.isNumber(e)&&(h.each(this.series,(i=>{if(i.get("baseAxis")===this){const s=this.getSeriesItem(i,e,this.get("tooltipLocation"));t&&-1!=t.indexOf(i)?(i.updateLegendMarker(s),i.updateLegendValue(s),i._settings.tooltipDataItem=s):(i.showDataItemTooltip(s),i.setRaw("tooltipDataItem",s))}})),this.get("snapTooltip")&&(e=this.roundAxisPosition(e,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",e),i&&(s.updateTooltipBounds(i),l.isNaN(e)?i.hide(0):(this._updateTooltipText(i,e),s.positionTooltip(i,e),ethis.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}roundAxisPosition(t,e){return t}_handleSeriesRemoved(){}handleCursorShow(){let t=this.get("tooltip");t&&t.show()}handleCursorHide(){let t=this.get("tooltip");t&&t.hide()}processSeriesDataItem(t,e){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(t){const e=this.get("renderer");return e.toAxisPosition(t/e.axisLength())}toAxisPosition(t){return this.get("renderer").toAxisPosition(t)}toGlobalPosition(t){return this.get("renderer").toGlobalPosition(t)}fixPosition(t){return this.get("renderer").fixPosition(t)}shouldGap(t,e,i,s){return!1}createAxisRange(t){return this.axisRanges.push(t)}_groupSeriesData(t){}getCellWidthPosition(){return.05}}g.className="Axis",g.classNames=s.w.classNames.concat([g.className])},2586:function(t,e,i){i.d(e,{_:function(){return o}});var s=i(6331),a=i(256);class o extends s.JH{_beforeChanged(){super._beforeChanged();const t=this.get("sprite");if(this.isDirty("sprite")&&t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t)),this.isDirty("location")){const e=t.dataItem;this.axis&&t&&e&&this.axis._prepareDataItem(e)}}_dispose(){const t=this.axis;t&&a.each(t._bullets,((e,i)=>{i.uid==this.uid&&delete t._bullets[e]})),super._dispose()}}o.className="AxisBullet",o.classNames=s.JH.classNames.concat([o.className])},6293:function(t,e,i){i.d(e,{k:function(){return a}});var s=i(962);class a extends s._{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabel",a.classNames=s._.classNames.concat([a.className])},9084:function(t,e,i){i.d(e,{p:function(){return a}});var s=i(815);class a extends s.x{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabelRadial",a.classNames=s.x.classNames.concat([a.className])},6275:function(t,e,i){i.d(e,{Y:function(){return d}});var s=i(1479),a=i(5769),o=i(7144),n=i(4714),r=i(8943),h=i(6293),l=i(7652);class d extends s.T{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new o.o(a.YS.new({}),(()=>n.T._new(this._root,{themeTags:l.mergeTags(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template])))),this.grid=this.addDisposer(new o.o(a.YS.new({}),(()=>r.r._new(this._root,{themeTags:l.mergeTags(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template])))),this.axisFills=this.addDisposer(new o.o(a.YS.new({}),(()=>s.T._new(this._root,{themeTags:l.mergeTags(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template])))),this.labels=this.addDisposer(new o.o(a.YS.new({}),(()=>h.k._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template]))))}makeTick(t,e){const i=this.ticks.make();return i._setDataItem(t),t.setRaw("tick",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(t,e){const i=this.grid.make();return i._setDataItem(t),t.setRaw("grid",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(t,e){const i=this.axisFills.make();return i._setDataItem(t),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),t.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(t,e){const i=this.labels.make();return i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),t.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(t),t.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const t=this.thumb;t&&(this._disposers.push(t.events.on("pointerdown",(t=>{this._handleThumbDown(t)}))),this._disposers.push(t.events.on("globalpointerup",(t=>{this._handleThumbUp(t)}))),this._disposers.push(t.events.on("globalpointermove",(t=>{this._handleThumbMove(t)}))))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",(()=>{this.axis.markDirtySize()}))}_changed(){if(super._changed(),this.isDirty("pan")){const t=this.thumb;if(t){const e=this.axis.labelsContainer,i=this.get("pan");"zoom"==i?e.children.push(t):"none"==i&&e.children.removeValue(t)}}}_handleThumbDown(t){this._thumbDownPoint=this.toLocal(t.point);const e=this.axis;this._downStart=e.get("start"),this._downEnd=e.get("end")}_handleThumbUp(t){this._thumbDownPoint=void 0}_handleThumbMove(t){const e=this._thumbDownPoint;if(e){const i=this.toLocal(t.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,e)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(t,e){return 0}positionToCoordinate(t){return this._inversed?(this._end-t)*this._axisLength:(t-this._start)*this._axisLength}updateTooltipBounds(t){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t*=i-e,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,t/(i-e)}fixPosition(t){return this.get("inversed")?1-t:t}_updateLC(){}toggleVisibility(t,e,i,s){let a=this.axis;const o=a.get("start",0),n=a.get("end",1);eo+(n-o)*(s+1e-4)?t.setPrivate("visible",!1):t.setPrivate("visible",!0)}_positionTooltip(t,e){const i=this.chart;i&&(t.set("pointTo",this._display.toGlobal(e)),i.inPlot(e)||t.hide())}processAxis(){}}d.className="AxisRenderer",d.classNames=s.T.classNames.concat([d.className])},6284:function(t,e,i){i.d(e,{n:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{width:a.AQ,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const t=this.grid.template;t.set("height",a.AQ),t.set("width",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)}))}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("x",-1e3));const s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){const i=this.chart,o=e.children;if(this.get(a)?e.addTag(a):e.removeTag(a),i){if(this.get(s)){const t=i.topAxesContainer.children;-1==t.indexOf(e)&&t.insertIndex(0,e),e.addTag(s),o.moveValue(this)}else{const t=i.bottomAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(s),o.moveValue(this,0)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(t,e){return(e.x-t.x)/this.width()}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,(t=t/(i-e)*this._lc)+this._ls}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerWidth();this._lc=this.axisLength()/i,this._ls=(t.x()-e.get("paddingLeft",0))/i}}_updatePositions(){const t=this.axis,e=t.x()-r.relativeToValue(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0);t.gridContainer.set("x",e),t.topGridContainer.set("x",e),t.bulletsContainer.set("y",this.y());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginLeft",0),o=t.x()-a;const n=t.parent;n&&(o-=n.get("paddingLeft",0)),s.children.length>0?(a=t.axisHeader.width(),t.set("marginLeft",a+1)):s.set("width",a),s.setAll({x:o,y:-1,height:e.height()+2})}}processAxis(){super.processAxis();const t=this.axis;null==t.get("width")&&t.set("width",a.AQ);const e=this._root.verticalLayout;t.set("layout",e),t.labelsContainer.set("width",a.AQ),t.axisHeader.setAll({layout:e})}axisLength(){return this.axis.width()}positionToPoint(t){return{x:this.positionToCoordinate(t),y:0}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e));let r=t.get("length",0);const h=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("y",a.AQ),h||(r*=-1)):(t.set("y",0),h&&(r*=-1)),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,r)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateLabel(t,e,i,s){if(t){let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(e)||(e=0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?r?(t.set("position","absolute"),t.set("y",0)):(t.set("position","relative"),t.set("y",a.AQ)):r?(t.set("y",0),t.set("position","absolute")):(t.set("y",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=-1;if(this.get("opposite")&&(h=1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("y",t.y()+t.height()*h)}else s.set("y",0);this.axis._bullets[o]=t,s.set("x",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.height(),a=this.width();ia||i<0||(t.moveTo(e,0),t.lineTo(i,0),t.lineTo(i,s),t.lineTo(e,s),t.lineTo(e,0))}))}positionTooltip(t,e){this._positionTooltip(t,{x:this.positionToCoordinate(e),y:0})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,n=this.axisLength(),h=i,l="up";this.get("opposite")?e?(l="up",o=s.y,h=i):(l="down",o=s.y-i,h=i):e?(l="down",o=s.y-i,h=i):(l="up",o=s.y,h=i);const d={left:a,right:a+n,top:o,bottom:o+h},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}}h.className="AxisRendererX",h.classNames=s.Y.classNames.concat([h.className])},7909:function(t,e,i){i.d(e,{j:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{height:a.AQ,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const t=this.grid.template;t.set("width",a.AQ),t.set("height",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())}))}_getPan(t,e){return(t.y-e.y)/this.height()}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("y",-1e3));const s=this.thumb,a="opposite",o="inside",n=this.chart;if(this.isDirty(a)||this.isDirty(o)){const i=e.children;if(this.get(o)?e.addTag(o):e.removeTag(o),n){if(this.get(a)){const t=n.rightAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e,0),e.addTag(a),i.moveValue(this,0)}else{const t=n.leftAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(a),i.moveValue(this)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}const r=e.labelsContainer.width();n&&(this.get(a)?s.set("centerX",0):s.set("centerX",r)),s.setPrivate("width",r)}processAxis(){super.processAxis();const t=this.axis;null==t.get("height")&&t.set("height",a.AQ);const e=this._root.horizontalLayout;t.set("layout",e),t.labelsContainer.set("height",a.AQ),t.axisHeader.set("layout",e)}_updatePositions(){const t=this.axis,e=t.y()-r.relativeToValue(t.get("centerY",0),t.height());t.gridContainer.set("y",e),t.topGridContainer.set("y",e),t.bulletsContainer.set("x",this.x());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginTop",0);s.children.length>0?(a=t.axisHeader.height(),t.set("marginTop",a+1)):s.set("height",a),s.setAll({y:t.y()-a,x:-1,width:e.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(t){return{x:0,y:this.positionToCoordinate(t)}}updateLabel(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a);const o=this.get("opposite"),r=t.get("inside",this.get("inside",!1));o?(t.set("x",0),r?t.set("position","absolute"):t.set("position","relative")):r?(t.set("x",0),t.set("position","absolute")):(t.set("x",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e));let o=t.get("length",0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("x",0),r&&(o*=-1)):r||(o*=-1),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(o,0)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=1;if(this.get("opposite")&&(h=-1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("x",t.x()+t.width()*h)}else s.set("x",0);this.axis._bullets[o]=t,s.set("y",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.width(),a=this.height();ia||i<0||(t.moveTo(0,e),t.lineTo(s,e),t.lineTo(s,i),t.lineTo(0,i),t.lineTo(0,e))}))}positionToCoordinate(t){return this._inversed?(t-this._start)*this._axisLength:(this._end-t)*this._axisLength}positionTooltip(t,e){this._positionTooltip(t,{x:0,y:this.positionToCoordinate(e)})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,n=this.axisLength(),h=i,l="right";this.get("opposite")?e?(l="right",o=s.x-i,h=i):(l="left",o=s.x,h=i):e?(l="left",o=s.x,h=i):(l="right",o=s.x-i,h=i);const d={left:o,right:o+h,top:a,bottom:a+n},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerHeight();this._lc=this.axisLength()/i,this._ls=t.y()/i}}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?e+t:i-t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t-=e:t=i-t,(t=t/(i-e)*this._lc)+this._ls}fixPosition(t){return this.get("inversed")?t:1-t}}h.className="AxisRendererY",h.classNames=s.Y.classNames.concat([h.className])},4714:function(t,e,i){i.d(e,{T:function(){return a}});var s=i(2438);class a extends s.d{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisTick",a.classNames=s.d.classNames.concat([a.className])},7497:function(t,e,i){i.d(e,{$:function(){return d}});var s=i(6515),a=i(2132),o=i(7261),n=i(5071),r=i(5040),h=i(751),l=i(7652);class d extends s.R{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();const t=this.dataItems.length;t>0&&this.setPrivateRaw("maxZoomFactor",t),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),t)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",t),1))}_prepareChildren(){super._prepareChildren();const t=this.dataItems.length;let e=0;this._valuesDirty&&(this._itemMap={},n.each(this.dataItems,(t=>{t.setRaw("index",e),this._itemMap[t.get("category")]=t,e++})),this.setPrivateRaw("maxZoomFactor",t));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){const t=this.dataItems.length;if(t>1){let e=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0);const n=this._sAnimation,r=this._eAnimation;let h=this.get("start",0),l=!1;n&&!n.stopped&&(h=Number(n.to),l=!0);let d=this.get("end",1);if(r&&!r.stopped&&(d=Number(r.to),l=!0),l){const t=this._getIndices(h,d);a=t.startIndex,o=t.endIndex}for(let t=a;t=i));s++);if(e=0&&(e+=this.dataItems[t].get("finalCellSize",1),a=t,!(e>=i));t--);this.zoomToIndexes(a,o)}else if(s>=e){let t=s;for(let i=o-1;i>=a;i--)if(t-=this.dataItems[i].get("finalCellSize",1),t<=e){o=i+1;break}this.zoomToIndexes(a,o)}}}_handleRangeChange(){n.each(this.series,(t=>{let e=this.dataItems[this.startIndex()].get("category"),i=this.dataItems[this.endIndex()-1].get("category"),s=t.get("baseAxis"),a=t.get("xAxis"),r=t.get("yAxis");if(a instanceof d&&r instanceof d)t._markDirtyAxes();else if(s===this){let h,l,g=r;if(a===s?(t.get("categoryXField")&&(h="categoryX"),t.get("openCategoryXField")&&(l="openCategoryX")):r===s&&(t.get("categoryYField")&&(h="categoryY"),t.get("openCategoryYField")&&(l="openCategoryY"),g=a),g instanceof o.m&&(h||l)){let c,u;function m(t,e,i,s,a,o){let n,r=e.categoryToIndex(a);for(;!n&&r>=0&&r=0;e--){let o=t.dataItems[e];if(i&&o.get(i)===a){n=o;break}if(s&&o.get(s)===a){n=o;break}}else for(let e=0,o=t.dataItems.length;e{null!=y.get(t)&&(x=!0)})),n.each(t.__valueYShowFields,(t=>{null!=y.get(t)&&(x=!0)})),x)break}t.setPrivate("outOfSelection",!x)}t._markDirtyAxes()}}))}_prepareAxisItems(){var t;const e=this.get("renderer"),i=this.dataItems.length;let s=this.startIndex();s>0&&s--;let a=this.endIndex();a=s&&(t=s-1,e=1),r.isNumber(e)||(e=.5),!r.isNumber(t))return 0;let o=this.get("startLocation",0),h=this.get("endLocation",1);if(this.get("cellSizeField")){let s=i?"finalCellSize":"cellSize";const r=this.dataItems;let l=0;n.each(this.dataItems,(t=>{l+=t.get(s,1)})),l-=o*r[0].get(s,1),l-=(1-h)*r[r.length-1].get(s,1);let d=0;for(let e=0;e{const e=t.get("cellSize",1);s.push(e),i+=e}));let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=t*i+a,h=0;for(let t=0;t0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(e),a=t.dataItems[s],o=this.dataItems[s],n=o.get("category");if(a&&o&&a.get(i)===n)return a;for(let e=0,s=t.dataItems.length;e{r+=t.get(o,1)})),r-=this.get("startLocation",0)*h[0].get(o,1),r-=(1-this.get("endLocation",1))*h[h.length-1].get(o,1);let l=0;for(let e=0;eMath.round(t*r)){s=e;break}for(let t=s+1;t=Math.round(e*r)){a=t+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(t,e,i){let s=this.dataItems.length;this.get("cellSizeField")?(t=Math.min(Math.max(t,0),s),e=Math.max(Math.min(e,s),1),this.setPrivateRaw("startIndex",t),this.setPrivateRaw("endIndex",e),this.zoom(this.indexToPosition(t,0,!0),this.indexToPosition(e,0,!0),i)):this.zoom(t/s,e/s,i)}zoomToCategories(t,e,i){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(t){null==t&&(t=1),"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);const e=this.getPrivate("tooltipPosition",0),i=h.fitToRange(this.axisPositionToIndex(e)+t,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}}d.className="CategoryAxis",d.classNames=s.R.classNames.concat([d.className])},5638:function(t,e,i){i.d(e,{S:function(){return c}});var s=i(9361),a=i(7261),o=i(5040),n=i(751),r=i(3540),h=i(5071),l=i(256),d=i(7652),g=i(1926);class c extends a.m{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=d.mergeTags(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",(()=>{this._setBaseInterval(this.get("baseInterval"))}))}_setBaseInterval(t){this.setPrivateRaw("baseInterval",t),this._baseDuration=g.getIntervalDuration(t)}_fixZoomFactor(){const t=this.get("maxZoomFactor");null!=t&&t!=1/0?this.setPrivateRaw("maxZoomFactor",t):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){this._fixZoomFactor();const t=this.getPrivate("groupInterval");if(t?this._setBaseInterval(t):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let t=this.get("groupInterval");t&&(this.setRaw("groupIntervals",[t]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))h.each(this.series,(t=>{this._groupSeriesData(t)})),this._handleRangeChange();else{let t=this.get("baseInterval"),e=t.timeUnit+t.count;h.each(this.series,(t=>{t.setDataSet(e),t.resetGrouping()})),this._setBaseInterval(t),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(t){if(this.get("groupData")&&!t.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let e=[],i=this.baseMainDuration(),a=this.get("groupIntervals");h.each(a,(t=>{g.getIntervalDuration(t)>i&&e.push(t)})),t._dataSets={};const n=this.getPrivate("name")+this.get("renderer").getPrivate("letter");let r;const d=t.get("baseAxis");t.get("xAxis")===d?r=t._valueYFields:t.get("yAxis")===d&&(r=t._valueXFields);let c=t._mainDataItems,u=this.get("baseInterval"),m=u.timeUnit+u.count;t._dataSets[m]=c;const p=t.get("groupDataCallback");let _=t.get("groupDataWithOriginals",!1);p&&(_=!0),h.each(e,(e=>{let i,a=-1/0,d=e.timeUnit+e.count;t._dataSets[d]=[];let u={},m={},x={},v={};h.each(r,(e=>{u[e]=0,m[e]=0,x[e]=t.get(e+"Grouped"),v[e]=e+"Working"}));let y,f,b=g.getDuration(e.timeUnit);c[0]&&(y=c[0].get(n)),h.each(c,(c=>{let D,P=c.get(n),w=g.roun(P,e.timeUnit,e.count,this._root,y);a{let e=c.get(t);o.isNumber(e)?(i.setRaw(t,e),i.setRaw(v[t],e),m[t]=1,u[t]=e):(u[t]=0,m[t]=0)})),_&&i.set("originals",[c]),p&&f&&p(f,e),f=i):(h.each(r,(t=>{let e=x[t],s=c.get(t);if(null!=s){let a=i.get(t);switch(e){case"close":i.setRaw(t,s);break;case"sum":i.setRaw(t,a+s);break;case"open":break;case"low":sa&&i.setRaw(t,s);break;case"average":m[t]++,u[t]+=s;let e=u[t]/m[t];i.setRaw(t,e);break;case"extreme":Math.abs(s)>Math.abs(a)&&i.setRaw(t,s)}i.setRaw(v[t],i.get(t));let o=l.copy(c.dataContext);o[n]=w,i.dataContext=o}})),_&&i.get("originals").push(c)),a=w})),p&&f&&p(f,e)})),t._dataSetId&&t.setDataSet(t._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",(()=>{this.markDirtySize()}))}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(t){let e=this.get("baseInterval"),i=g.chooseInterval(0,t,this.get("groupCount",1/0),this.get("groupIntervals"));return g.getIntervalDuration(i){e.get("baseAxis")===this&&e.setDataSet(t)})),this.markDirtyExtremes(),this._root.events.once("frameended",(()=>{this._root.events.once("frameended",(()=>{const t="groupintervalchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}))}))}}h.each(this.series,(i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),a=h.getFirstSortedIndex(i.dataItems,(e=>r.qu(e.get(s),t))).index;a>0&&(a-=1),e+=this._baseDuration*(1-this.get("endLocation",1));let o=h.getSortedIndex(i.dataItems,(t=>r.qu(t.get(s),e))).index,n=o;n>1&&n--;const l=i.dataItems[a],d=i.dataItems[n];let g,c;l&&(c=l.get(s)),d&&(g=d.get(s));let u=!1;null!=g&&null!=c&&(ge)&&(u=!0),i.setPrivate("outOfSelection",u),i.setPrivate("startIndex",a);let m=i._adjustStartIndex(a);i.getPrivate("adjustedStartIndex")!==m&&(i.setPrivate("adjustedStartIndex",m),this.root.events.once("frameended",(()=>{i._markDirtyPrivateKey("adjustedStartIndex")}))),i.setPrivate("endIndex",o)}}))}}_adjustMinMax(t,e,i,s){return{min:t,max:e,step:(e-t)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(t,e){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=t,this._intervalMax[s]=e}_getM(t){return"day"==t||"month"==t||"year"==t?1.05:1.01}_getMinorInterval(t){var e;let i,s=t.count,a=t.timeUnit;return s>1&&(10==s||15==s?s=5:12==s?s=2:6==s?s=1:30==s?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),"week"==a&&(i="week"!=(null===(e=this.getPrivate("baseInterval"))||void 0===e?void 0:e.timeUnit)?{timeUnit:"day",count:1}:{timeUnit:"week",count:1}),"year"==a&&1==s&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<1264896e5&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){const e=this._root,i=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),n=this.get("renderer"),r=this.getPrivate("baseInterval");let l=i,d=0;const c=this.get("gridIntervals");let u=g.chooseInterval(0,a-i,n.gridCount(),c);g.getIntervalDuration(u){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_updateFinals(t,e){this.setPrivateRaw("selectionMinFinal",this.positionToValue(t)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(e))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(t,e){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return g.getIntervalDuration(this.get("baseInterval"))}processSeriesDataItem(t,e){const i=this.getPrivate("baseInterval");t.open||(t.open={}),t.close||(t.close={}),h.each(e,(e=>{let s=t.get(e);if(o.isNumber(s)){let a=t.open[e],o=t.close[e];if(s>=a&&s<=o);else{const n=i.timeUnit,r=i.count;a=g.roun(s,n,r,this._root),o=a+g.getDuration(n,r*this._getM(n)),o=g.roun(o,n,1,this._root),t.open[e]=a,t.close[e]=o}this._updateDates(a,t.component)}}))}_handleSizeDirty(){}getDataItemPositionX(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}roundAxisPosition(t,e){let i=this.positionToValue(t);i-=(e-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!o.isNaN(i)){const t=this._root.locale.firstDayOfWeek,a=s.timeUnit,o=this._root.utc,n=this._root.timezone,r=s.count;i=g.roun(i,a,r,this._root,this.getPrivate("min",0));let h=g.getDateIntervalDuration(s,new Date(i),t,o,n);return n&&(i=g.roun(i+.05*this._baseDuration,a,r,this._root,this.getPrivate("min",0)),h=g.getDateIntervalDuration(s,new Date(i+h*e),t,o,n)),this.valueToPosition(i+h*e)}return NaN}getTooltipText(t,e){if(null!=this.getPrivate("min")){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(t);if(o.isNumber(s)){let t=new Date(s),a=this.getPrivate("baseInterval"),o=g.getDateIntervalDuration(a,t,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return!1!==e&&(t=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*o)),this._root.dateFormatter.format(t,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(t,e,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);null==i&&(i=.5),o-=(i-.5)*this._baseDuration;const n=h.getSortedIndex(t.dataItems,(t=>{let e=0;return t.open&&(e=t.open[a]),r.qu(e,o)}));if(s||t.get("snapTooltip")){let e=t.dataItems[n.index-1],i=t.dataItems[n.index];if(e&&i&&e.open&&i.close){let t=e.open[a],s=i.close[a];if(Math.abs(o-t)>Math.abs(o-s))return i}if(e)return e;if(i)return i}else{const e=t.dataItems[n.index-1];if(e&&e.open&&e.close){let t=e.open[a],i=e.close[a];if(o>=t&&o<=i)return e}}}shouldGap(t,e,i,s){const a=t.get(s);return e.get(s)-a>this._baseDuration*i}zoomToDates(t,e,i){this.zoomToValues(t.getTime(),e.getTime(),i)}zoomToValues(t,e,i){const s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(null!=this.getPrivate("min")&&null!=this.getPrivate("max"))if(this.get("groupData")){const s=this.getGroupInterval(e-t),a=this.get("baseInterval");let o=this.getIntervalMin(a),n=this.getIntervalMax(a)-1;n=g.roun(n,s.timeUnit,s.count,this.root),n+=this._getM(s.timeUnit)*g.getIntervalDuration(s),n=g.roun(n,s.timeUnit,s.count,this.root);let r=g.roun(o,s.timeUnit,s.count,this.root),h=g.roun(n,s.timeUnit,s.count,this.root),l=(t-r)/(h-r),d=(e-r)/(h-r);this.zoom(l,d,i)}else this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}positionToDate(t){return new Date(this.positionToValue(t))}dateToPosition(t){return this.valueToPosition(t.getTime())}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return o.isNumber(t)&&o.isNumber(e)?this._intervalDuration/(t-e):.05}nextPosition(t){null==t&&(t=1);let e=this.get("tooltipLocation",.5)*this._baseDuration;"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0));const s=this.getPrivate("baseInterval");let a=this._nextTime(i,t,s),o=this.getPrivate("selectionMin",0),r=this.getPrivate("selectionMax",0),h=g.roun(o,s.timeUnit,s.count,this._root),l=g.roun(r,s.timeUnit,s.count,this._root);return a+=e,a=n.fitToRange(a,h+e,l-e),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(t,e,i){return g.roun(t+e*this._baseDuration,i.timeUnit,i.count,this._root)}}c.className="DateAxis",c.classNames=a.m.classNames.concat([c.className])},7109:function(t,e,i){i.d(e,{L:function(){return a}});var s=i(6691);class a extends s.Y{constructor(){super(...arguments),this._tickPoints=[]}}a.className="EditableAxisLabel",a.classNames=s.Y.classNames.concat([a.className])},8701:function(t,e,i){i.d(e,{J:function(){return d}});var s=i(5638),a=i(9361),o=i(5071),n=i(3540),r=i(1926),h=i(5040),l=i(751);class d extends s.S{constructor(){super(...arguments),this._frequency=1,this._m=0,this._dates=[]}_afterNew(){this.valueFields.push("date"),this.addTag("gapless"),super._afterNew()}_getDates(){return this._customDates?this._customDates:this._dates}_updateDates(t,e){if(!e.get("ignoreMinMax")){const e=this._getDates(),i=o.getSortedIndex(e,(e=>n.qu(e,t)));i.found||o.insertIndex(e,i.index,t)}}_updateAllDates(){if(!this._customDates){const t=this._dates;t.length=0,o.each(this.series,(t=>{let e="valueX";t.get("yAxis")==this&&(e="valueY"),o.each(t.dataItems,(i=>{let s=i.get(e);h.isNumber(s)&&i.open&&this._updateDates(i.open[e],t)}))}));const e=this.get("extraMax",0),i=this.get("extraMin",0);let s=t.length;const a=this.getPrivate("baseInterval"),n=a.count,l=a.timeUnit;if(e>0){const i=s*e;let a=t[s-1];if(h.isNumber(a))for(let e=s-1;e0){const e=s*i;let a=t[0];if(h.isNumber(a))for(let i=0;in.qu(e,t)));let h=r.index;if(r.found)return(h-i)/a;{h>0&&(h-=1);let s=e[h];const o=e[h+1];if(o){let e=o;Math.abs(e-t)n.qu(e,t)));let s=i.index;return i.found||s>0&&(s-=1),s}positionToValue(t){const e=this.get("startLocation",0),i=this.get("endLocation",1),s=this._getDates();let a=Math.round(s.length-e-(1-i)),o=t*a,n=Math.floor(o);return n<0&&(n=0),n>a-1&&(n=a-1),s[n]+(o-n+e)*this._baseDuration}_fixZoomFactor(){this.setPrivateRaw("maxZoomFactor",this._getDates().length-this.get("startLocation",0)-(1-this.get("endLocation",1)))}zoomToDates(t,e,i){const s=this._getDates(),a=s.length;let r=o.getSortedIndex(s,(e=>n.qu(e,t.getTime()))),h=s[Math.min(r.index,a-1)];r=o.getSortedIndex(s,(t=>n.qu(t,e.getTime())));let l=s[r.index];r.index>=a&&(l=s[a-1]+this._baseDuration),this.zoomToValues(h,l,i)}zoomToValues(t,e,i){const s=this.getPrivate("min",0),a=this.getPrivate("max",0);t=l.fitToRange(t,s,a),e=l.fitToRange(e,s,a),this.zoom(this.valueToPosition(t),this.valueToPosition(e),i)}_prepareAxisItems(){let t=this.getPrivate("selectionMin",0),e=this.getPrivate("selectionMax",0);if(h.isNumber(t)&&h.isNumber(e)){this._seriesValuesDirty&&(this._seriesValuesDirty=!1,this._updateAllDates());const i=this._root,s=i.utc,n=i.timezone,l=this._getDates(),d=this.get("renderer"),g=l.length,c=this._baseDuration;let u=this.valueToIndex(t);u>0&&u--;let m=this.valueToIndex(e);m{this._toggleDataItem(t,!1)})),o.each(this.minorDataItems,(t=>{this._toggleDataItem(t,!1)}));let x=e-t-((e-t)/c-(m-u))*c,v=r.chooseInterval(0,x,p,this.get("gridIntervals"));const y=this.getPrivate("baseInterval");let f=r.getIntervalDuration(v);f0){let t=0;this._m=0;let e=w-10*f;const g=r.getNextUnit(b);if(I){let t=l[C[0]];this._addMinorGrid(t-f,t,k,I)}let c=d.axisLength()/d.gridCount()*.5;o.each(C,(o=>{var u;let m;this.dataItems.length1||"week"==v.timeUnit){let e=r.roun(p,t,1,i)+r.getDuration(t,this._getM(t)),s=this.valueToIndex(e);if(e=l[s],e==p){let t=l[s+1];t?e=t:e+=k}m.setRaw("labelEndValue",e)}w=1}if(this._prepareDataItem(m,w),P&&M&&"X"==d.getPrivate("letter")){let t=M.get("label");if(t&&P.x()-t.x(){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_pickWorse(t,e,i){const s=i.timeUnit,a=t.get("value",0),o=e.get("value",0);return"hour"==s&&new Date(a).getDate()!=new Date(o).getDate()?t:e}_addMinorGrid(t,e,i,s){const n=this.get("minorDateFormats",this.get("dateFormats")),h=s.timeUnit;let l=t+r.getDuration(h,this._getM(h));l=r.roun(l,h,1,this._root);let d=e-.5*i,g=this._getIndexes(l,d,s,l);const c=this._getDates();o.each(g,(t=>{let e;this.minorDataItems.length=x-2*_&&o.move(a,e),u=0),t+=p,t=r.roun(t,n,1,g);else{if(i=t){e=s;break}o.move(a,e),t+=_,t=r.roun(t,n,h,g)}if(t==m&&(t+=_+p,t=r.roun(t,n,h,g)),t==m)break;m=t}return a}_hasDate(t){return o.getSortedIndex(this._getDates(),(e=>n.HO(e,t))).found}_nextTime(t,e,i){let s=l.fitToRange(this.valueToIndex(t)+e,0,this._dates.length-1);return this._dates[s]}}d.className="GaplessDateAxis",d.classNames=s.S.classNames.concat([d.className])},8943:function(t,e,i){i.d(e,{r:function(){return a}});var s=i(1479);class a extends s.T{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}a.className="Grid",a.classNames=s.T.classNames.concat([a.className])},7261:function(t,e,i){i.d(e,{m:function(){return d}});var s=i(9361),a=i(6515),o=i(7449),n=i(5040),r=i(5071),h=i(751),l=i(7652);class d extends a.R{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var t;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let t=this.get("syncWithAxis");t&&(this._syncDp=new o.FV([t.onPrivate("selectionMinFinal",(()=>{this._dirtySelectionExtremes=!0})),t.onPrivate("selectionMaxFinal",(()=>{this._dirtySelectionExtremes=!0}))]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,null===(t=this.ghostLabel)||void 0===t||t.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){const t=this.chart;let e=!1;if(t){const i=this.get("renderer").getPrivate("letter");"Y"==i?t.xAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)})):"X"==i&&t.yAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)}))}e&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,this.getPrivate("selectionMinFinal")==this.getPrivate("selectionMin")&&this.getPrivate("selectionMaxFinal")==this.getPrivate("selectionMax")||(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(t){const e=this.get("numberFormat"),i=this.getNumberFormatter();let s="";return s=e?i.format(t,e):i.format(t,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(n.isNumber(t)&&n.isNumber(e)){const e=this.get("logarithmic"),i=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+i;let l=a-i,d=1,g=t;if(e){if(l=this._minLogAdjusted,l2&&(l=Math.pow(10,Math.log(g)*Math.LOG10E-50))}const c=this.get("renderer"),u=c.get("minorLabelsEnabled"),m=c.get("minorGridEnabled",u);let p=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));const _=Math.round(i/p);let x=2;h.round(_/5,10)%1==0&&(x=5),h.round(_/10,10)%1==0&&(x=10);let v=i/x,y=0,f=0,b=-1/0;const D=this.get("renderer").gridCount();for(;l2){const t=Math.max(1,D),e=Math.max(1,Math.ceil(d/t)),i=Math.log(g)*Math.LOG10E+(y+1)*e-50;o=Math.pow(10,i)}else o+=i;else o+=i;if(m){let t=l+v;for(e&&(d>2&&(v=this._adjustMinMax(l,o,10).step),t=l+v);t{t.inited&&t._markDirtyAxes()})),this._updateGhost()}}_prepareDataItem(t,e){let i=this.get("renderer"),s=t.get("value"),a=t.get("endValue"),o=this.valueToPosition(s),r=o,h=this.valueToPosition(s+this.getPrivate("step"));n.isNumber(a)&&(r=this.valueToPosition(a),h=r),t.get("isRange")&&null==a&&(h=o);let l=r,d=t.get("labelEndValue");null!=d&&(l=this.valueToPosition(d)),i.updateLabel(t.get("label"),o,l,e);const g=t.get("grid");if(i.updateGrid(g,o,r),g&&(s==this.get("baseValue",0)?(g.addTag("base"),g._applyThemes()):g.hasTag("base")&&(g.removeTag("base"),g._applyThemes())),i.updateTick(t.get("tick"),o,l,e),i.updateFill(t.get("axisFill"),o,h),this._processBullet(t),i.updateBullet(t.get("bullet"),o,r),!t.get("isRange")){const e=this.get("fillRule");e&&e(t)}}_handleRangeChange(){let t=this.positionToValue(this.get("start",0)),e=this.positionToValue(this.get("end",1));const i=this.get("renderer").gridCount();let s=this._adjustMinMax(t,e,i,!0),a=l.decimalPlaces(s.step);this.setPrivateRaw("stepDecimalPlaces",a),t=h.round(t,a),e=h.round(e,a),s=this._adjustMinMax(t,e,i,!0);let o=s.step;t=s.min,e=s.max,this.getPrivate("selectionMin")===t&&this.getPrivate("selectionMax")===e&&this.getPrivate("step")===o||(this.setPrivateRaw("selectionMin",t),this.setPrivateRaw("selectionMax",e),this.setPrivateRaw("step",o))}positionToValue(t){const e=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(t*(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)+Math.log(e)*Math.LOG10E)/Math.LOG10E):t*(i-e)+e}valueToPosition(t){const e=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}valueToFinalPosition(t){const e=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}getX(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getY(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionX(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemX")?a*s+t.component.getStackedXValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemY")?a*s+t.component.getStackedYValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const t=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),e=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let i=this.get("baseValue",0);return ie&&(i=e),i}cellEndValue(t){return t}fixSmallStep(t){return 1+t===1?(t*=2,this.fixSmallStep(t)):t}_fixMin(t){return t}_fixMax(t){return t}_calculateTotals(){if(this.get("calculateTotals")){let t=this.series[0];if(t){let e=t.startIndex();if(t.dataItems.length>0){e>0&&e--;let i,s,a=t.endIndex();a{if(!i.get("excludeFromTotal")){let r=i.dataItems[t];if(r){let t=r.get(o)*i.get(s);n.isNaN(t)||(e+=t,a+=Math.abs(t))}}})),r.each(this.series,(r=>{if(!r.get("excludeFromTotal")){let h=r.dataItems[t];if(h){let t=h.get(o)*r.get(s);if(!n.isNaN(t)){h.set(i+"Total",a),h.set(i+"Sum",e);let s=t/a*100;0==a&&(s=0),h.set(i+"TotalPercent",s)}}}}))}}}}}_getSelectionMinMax(){const t=this.getPrivate("minFinal"),e=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max");let a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2));const l=this.get("renderer").gridCount(),d=this.get("strictMinMaxSelection");let g=this.get("strictMinMax");if(n.isNumber(t)&&n.isNumber(e)){let c=e,u=t;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,i;const s=t.getPrivate("outOfSelection");if(t.get("xAxis")===this){if(!s){let s=t.getPrivate("minX"),a=t.getPrivate("maxX");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinX",s),i=t.getPrivate("selectionMaxX",a)}}else if(t.get("yAxis")===this&&!s){let s=t.getPrivate("minY"),a=t.getPrivate("maxY");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinY",s),i=t.getPrivate("selectionMaxY",a)}t.isHidden()||t.isShowing()||(n.isNumber(e)&&(c=Math.min(c,e)),n.isNumber(i)&&(u=Math.max(u,i)))}})),this.axisRanges.each((t=>{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(c=Math.min(c,e),u=Math.max(u,e)),e=t.get("endValue"),null!=e&&(c=Math.min(c,e),u=Math.max(u,e))}})),c>u&&([c,u]=[u,c]),n.isNumber(i)?c=g?i:t:g&&n.isNumber(this._minReal)&&(c=this._minReal),n.isNumber(s)?u=g?s:e:g&&n.isNumber(this._maxReal)&&(u=this._maxReal),c===u){let e=c;if(c-=this._deltaMinMax,u+=this._deltaMinMax,ce&&(x.max=e),c=x.min,u=x.max),g&&(n.isNumber(i)&&(c=Math.max(c,i)),n.isNumber(s)&&(u=Math.min(u,s))),d&&(c=m-(p-m)*a,u=p+(p-m)*o),g){c=n.isNumber(i)?i:m,u=n.isNumber(s)?s:p,u-c<=1e-8&&(c-=this._deltaMinMax,u+=this._deltaMinMax);let t=u-c;c-=t*a,u+=t*o}this.get("logarithmic")&&(c<=0&&(c=m*(1-Math.min(a,.99))),ce&&(u=e));let y=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),f=h.round(this.valueToFinalPosition(c),y),b=h.round(this.valueToFinalPosition(u),y);this.setPrivateRaw("selectionMinFinal",c),this.setPrivateRaw("selectionMaxFinal",u),this.setPrivateRaw("selectionStepFinal",x.step),this.zoom(f,b)}}_getMinMax(){let t=this.get("min"),e=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2)));let l=1/0;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,a;if(t.get("xAxis")===this?(e=t.getPrivate("minX"),a=t.getPrivate("maxX")):t.get("yAxis")===this&&(e=t.getPrivate("minY"),a=t.getPrivate("maxY")),n.isNumber(e)&&n.isNumber(a)){i=Math.min(i,e),s=Math.max(s,a);let t=a-e;t<=0&&(t=Math.abs(a/100)),t{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(i=Math.min(i,e),s=Math.max(s,e)),e=t.get("endValue"),null!=e&&(i=Math.min(i,e),s=Math.max(s,e))}})),this.get("logarithmic")){let t=this.get("treatZeroAs");n.isNumber(t)&&i<=0&&(i=t),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(0===i&&0===s&&(s=.9,i=-.9),n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e),i===1/0||s===-1/0)return this.setPrivate("minFinal",void 0),void this.setPrivate("maxFinal",void 0);i>s&&([i,s]=[s,i]);const d=i,g=s;let c=this.adapters.fold("min",i),u=this.adapters.fold("max",s);this._minRealLog=i,n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!=0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&d>=0&&(i=0),s>0&&g<=0&&(s=0)),this._minReal=i,this._maxReal=s;let m=this.get("strictMinMax"),p=this.get("strictMinMaxSelection",!1);p&&(m=p);let _=m;n.isNumber(e)&&(_=!0);let x=this.get("renderer").gridCount(),v=this._adjustMinMax(i,s,x,_);if(i=v.min,s=v.max,v=this._adjustMinMax(i,s,x,!0),i=v.min,s=v.max,m){i=n.isNumber(t)?t:this._minReal,s=n.isNumber(e)?e:this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let r=s-i;i-=r*a,s+=r*o}c=this.adapters.fold("min",i),u=this.adapters.fold("max",s),n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),l==1/0&&(l=s-i);let y=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=h.round(i,y),s=h.round(s,y);const f=this.get("syncWithAxis");if(f&&(v=this._syncAxes(i,s,v.step,f.getPrivate("minFinal",f.getPrivate("min",0)),f.getPrivate("maxFinal",f.getPrivate("max",1)),f.getPrivate("step",1)),i=v.min,s=v.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/l*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=d*(1-Math.min(a,.99)))),n.isNumber(i)&&n.isNumber(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);const t=this.get("interpolationDuration",0),e=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:t,easing:e}),this.animatePrivate({key:"max",to:s,duration:t,easing:e})}}_fixZoomFactor(){}_getDelta(t){let e=Math.log(Math.abs(t))*Math.LOG10E,i=Math.pow(10,Math.floor(e));i/=10,this._deltaMinMax=i}_saveMinMax(t,e){}_adjustMinMax(t,e,i,s){i<=1&&(i=1),i=Math.round(i);let a=t,o=e,r=e-t;0===r&&(r=Math.abs(e));let l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l));d/=10;let g=d;s&&(g=0),s?(t=Math.floor(t/d)*d,e=Math.ceil(e/d)*d):(t=Math.ceil(t/d)*d-g,e=Math.floor(e/d)*d+g),t<0&&a>=0&&(t=0),e>0&&o<=0&&(e=0),l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l)),d/=100;let c=Math.ceil(r/i/d)*d,u=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),m=Math.ceil(c/u);m>5?m=10:m<=5&&m>2&&(m=5),c=Math.ceil(c/(u*m))*u*m;let p=this.get("maxPrecision");if(n.isNumber(p)){let t=h.ceil(c,p);pa&&(t-=c),c=this.fixSmallStep(c),{min:t,max:e,step:c}}getTooltipText(t,e){const i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,n=h.round(this.positionToValue(t),o);return i?s.format(n,i):s.format(n,void 0,o)}getSeriesItem(t,e){let i,s,a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);if(r.each(t.dataItems,((t,e)=>{const n=Math.abs(t.get(a)-o);(void 0===i||n500&&(s=!0),s)t=n,e=h,i=d;else{a/3==Math.round(a/3)?(n=t-o*a,t>=0&&n<0&&(n=0)):(h=e+o*a,h<=0&&h>0&&(h=0));let i=this._adjustMinMax(n,h,l,!0);n=i.min,h=i.max,d=i.step}}}return{min:t,max:e,step:i}}_checkSync(t,e,i,s){let a=(e-t)/i;for(let t=1;t{if(t instanceof l){const e=t.get("stacked");e&&0==h&&n++,!e&&t.get("clustered")&&n++}t===this&&(o=n-1),h++})),this.get("clustered")||(o=0,n=1),0===n&&(n=1,o=0);const d="cellStartLocation",g="cellEndLocation",c=this._xRenderer.get(d,0),u=this._xRenderer.get(g,1),m=this._yRenderer.get(d,0),p=this._yRenderer.get(g,1);if(this._aLocationX0=c+o/n*(u-c),this._aLocationX1=c+(o+1)/n*(u-c),this._aLocationY0=m+o/n*(p-m),this._aLocationY1=m+(o+1)/n*(p-m),e.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){const t=this.dataItems.length;let a=Math.max(0,this.startIndex()-2),o=Math.min(this.endIndex()+2,t-1);for(let t=0;t0&&a>0)for(let e=t-1;e>=0;e--){let t=this.dataItems[e];if(null!=t.get("valueX")&&null!=t.get("valueY")){n=t;break}}break}this._toggleColumn(e,!1)}this._beforeColumnsDraw();let r=0;i.isType("CategoryAxis")&&e.isType("CategoryAxis")?r=2:e===s?r=0:i===s&&(r=1);for(let t=a;t<=o;t++){let e=this.dataItems[t];this._updateGraphics(e,n,r),null!=e.get("valueX")&&null!=e.get("valueY")&&(n=e)}this._afterColumnsDraw();for(let e=o+1;e{const a=e.get(s,this.get(s));t.set(s,a),i.set(s,a)}))}}let s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.dispose()})),s=[],t.setRaw("rangeGraphics",s),this.axisRanges.each((e=>{const i=e.container,a=this._makeGraphics(e.columns,t);s&&s.push(a),a.setPrivate("list",e.columns),i.children.push(a)}))}}createAxisRange(t){return r.each(this.dataItems,(t=>{const e=t.get("graphics");e&&(e.dispose(),t.set("graphics",void 0))})),super.createAxisRange(t)}_updateGraphics(t,e,i){let s=t.get("graphics");const a=this._xField,n=this._yField,l=t.get(a),d=t.get(n),g=this.get("exactLocationX",!1);if(null!=l&&null!=d){const l=this._xOpenField,d=this._yOpenField,c=this.get("locationX",t.get("locationX",.5)),u=this.get("locationY",t.get("locationY",.5)),m=this.get("openLocationX",t.get("openLocationX",c)),p=this.get("openLocationY",t.get("openLocationY",u)),_=s.get("width"),x=s.get("height"),v=this.get("stacked"),y=this.get("xAxis"),f=this.get("yAxis"),b=y.get("start"),D=y.get("end"),P=f.get("start"),w=f.get("end");let T,A,I,M,k=this.get("vcy",1),C=this.get("vcx",1),S=!1,Y=!1;if(0==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C,g),A=y.getDataItemPositionX(t,a,i,C,g),I=f.getDataItemPositionY(t,n,u,k),this._yOpenField!==this._yField)M=f.getDataItemPositionY(t,d,p,k);else if(v){let e=t.get("stackToItemY");M=e?f.getDataItemPositionY(e,n,p,e.component.get("vcy")):f.basePosition()}else M=f.basePosition();t.setRaw("point",{x:T+(A-T)/2,y:I}),Y=!0}else if(1==i){let e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5;if(x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}if(I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),A=y.getDataItemPositionX(t,a,c,C,g),this._xOpenField!==this._xField)T=y.getDataItemPositionX(t,l,m,C,g);else if(v){let e=t.get("stackToItemX");T=e?y.getDataItemPositionX(e,a,m,e.component.get("vcx"),g):y.basePosition()}else T=y.basePosition();S=!0,t.setRaw("point",{x:A,y:I+(M-I)/2})}else if(2==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C),A=y.getDataItemPositionX(t,a,i,C),e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5,x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),t.setRaw("point",{x:T+(A-T)/2,y:I+(M-I)/2})}this._applyGraphicsStates(t,e),this._updateSeriesGraphics(t,s,T,A,I,M,S,Y),TD&&A>D||I=w&&M>w||h.isNaN(T)||h.isNaN(I)?this._toggleColumn(t,!1):this._toggleColumn(t,!0);let F=t.get("rangeGraphics");F&&r.each(F,(e=>{this._updateSeriesGraphics(t,e,T,A,I,M,S,Y)}))}else this._toggleColumn(t,!1)}_updateSeriesGraphics(t,e,i,s,a,o,n,r){const l=e.get("width"),d=e.get("height"),g=e.get("maxWidth"),c=e.get("maxHeight"),u=this.getPoint(i,a),m=this.getPoint(s,o),p=t.get("point");if(p){const t=this.getPoint(p.x,p.y);p.x=t.x+this._x,p.y=t.y+this._y}if(i=u.x,s=m.x,a=u.y,o=m.y,h.isNumber(l)){const t=(s-i-l)/2;i+=t,s-=t}if(h.isNumber(g)&&g{this._toggleColumn(t,!1)}))}_applyGraphicsStates(t,e){const i=t.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),n=i.states.lookup("riseFromPrevious");if(s||o||a||n){const i=this.get("xAxis"),r=this.get("yAxis"),l=this.get("baseAxis");let d,g,c;l===i&&r.isType("ValueAxis")?(d=t.get(this._yOpenField),g=t.get(this._yField),c=e.get(this._yField)):l===r&&i.isType("ValueAxis")&&(d=t.get(this._xOpenField),g=t.get(this._xField),c=e.get(this._xField)),h.isNumber(d)&&h.isNumber(g)&&(g{const e=t.getPrivate("list");e&&e.removeValue(t),t.dispose()}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.hide(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.hide(e))})),yield Promise.all(s)}))}_toggleColumn(t,e){const i=t.get("graphics");i&&i.setPrivate("visible",e);const s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.setPrivate("visible",e)}));const a=t.bullets;a&&r.each(a,(t=>{t.setPrivate("hidden",!e)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.show(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.show(e))})),yield Promise.all(s)}))}updateLegendMarker(t){let e=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!t){const e=this.dataItems[this.endIndex()-1];e&&(t=e)}if(e){let i=this.columns.template;if(t){let e=t.get("graphics");e&&(i=e)}const s=e.get("markerRectangle");if(s&&!e.get("itemContainer").get("disabled")){const t=s.states.lookup("default");r.each(n.u,(e=>{const a=i.get(e,this.get(e));s.set(e,a),t.set(e,a)}))}}}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget"))return super._getTooltipTarget(t);return t.get("graphics")||this}}l.className="BaseColumnSeries",l.classNames=a.o.classNames.concat([l.className])},2976:function(t,e,i){i.d(e,{j:function(){return a}});var s=i(3497);class a extends s.c{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();const t=this._display;t.moveTo(this.get("lowX0",0),this.get("lowY0",0)),t.lineTo(this.get("lowX1",0),this.get("lowY1",0)),t.moveTo(this.get("highX0",0),this.get("highY0",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0))}}a.className="Candlestick",a.classNames=s.c.classNames.concat([a.className])},2312:function(t,e,i){i.d(e,{$:function(){return l}});var s=i(62),a=i(2976),o=i(5769),n=i(7144),r=i(7652),h=i(5071);class l extends s.d{constructor(){super(...arguments),this.columns=this.addDisposer(new n.o(o.YS.new({themeTags:["autocolor"]}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_updateGraphics(t,e,i){super._updateGraphics(t,e,i);const s=this.getRaw("xAxis"),a=this.getRaw("yAxis");let o,n,r,h,l,d,g,c,u,m=this.get("vcy",1),p=this.get("vcx",1),_=this.get("locationX",t.get("locationX",.5)),x=this.get("locationY",t.get("locationY",.5)),v=this.get("openLocationX",t.get("openLocationX",_)),y=this.get("openLocationY",t.get("openLocationY",x));if(0==i){let e=a.getDataItemPositionY(t,this._yOpenField,1,m),i=a.getDataItemPositionY(t,this._yField,1,m);h=a.getDataItemPositionY(t,this._yLowField,1,m),c=a.getDataItemPositionY(t,this._yHighField,1,m),g=Math.max(e,i),r=Math.min(e,i);let x=this._aLocationX0+v-.5,y=this._aLocationX1+_-.5;o=s.getDataItemPositionX(t,this._xField,x+(y-x)/2,p),n=o,l=o,d=o,u="vertical"}else{let e=s.getDataItemPositionX(t,this._xOpenField,1,p),i=s.getDataItemPositionX(t,this._xField,1,p);n=s.getDataItemPositionX(t,this._xLowField,1,p),d=s.getDataItemPositionX(t,this._xHighField,1,p),l=Math.max(e,i),o=Math.min(e,i);let _=this._aLocationY0+y-.5,v=this._aLocationY1+x-.5;r=a.getDataItemPositionY(t,this._yField,_+(v-_)/2,m),h=r,g=r,c=r,u="horizontal"}this._updateCandleGraphics(t,o,n,r,h,l,d,g,c,u)}_updateCandleGraphics(t,e,i,s,a,o,n,r,l,d){let g=t.get("graphics");if(g){let c=this.getPoint(e,s),u=this.getPoint(i,a),m=this.getPoint(o,r),p=this.getPoint(n,l);if(this.get("turboMode")){const t=this.allColumnsData[this.allColumnsData.length-1];t.lowX0=c.x,t.lowY0=c.y,t.lowX1=u.x,t.lowY1=u.y,t.highX0=m.x,t.highY0=m.y,t.highX1=p.x,t.highY1=p.y}else{let e=g.x(),i=g.y();g.set("lowX0",c.x-e),g.set("lowY0",c.y-i),g.set("lowX1",u.x-e),g.set("lowY1",u.y-i),g.set("highX0",m.x-e),g.set("highY0",m.y-i),g.set("highX1",p.x-e),g.set("highY1",p.y-i),g.set("orientation",d);let s=t.get("rangeGraphics");s&&h.each(s,(t=>{t.set("lowX0",c.x-e),t.set("lowY0",c.y-i),t.set("lowX1",u.x-e),t.set("lowY1",u.y-i),t.set("highX0",m.x-e),t.set("highY0",m.y-i),t.set("highX1",p.x-e),t.set("highY1",p.y-i),t.set("orientation",d)}))}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),h.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity,g=e.lowX0,c=e.lowY0,u=e.lowX1,m=e.lowY1,p=e.highX0,_=e.highY0,x=e.highX1,v=e.highY1;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.moveTo(g,c),t.lineTo(u,m),t.moveTo(p,_),t.lineTo(x,v),t.endStroke(),t.endFill()}))}))}_processAxisRange(t){super._processAxisRange(t),t.columns=new n.o(o.YS.new({}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(t.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,t.columns.template])))}}l.className="CandlestickSeries",l.classNames=s.d.classNames.concat([l.className])},62:function(t,e,i){i.d(e,{d:function(){return d}});var s=i(757),a=i(5769),o=i(7144),n=i(3497),r=i(1479),h=i(7652),l=i(5071);class d extends s.d{constructor(){super(...arguments),this.allColumns=this.children.push(r.T.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(t.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,t.columns.template])))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),l.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.endStroke(),t.endFill()}))}))}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(t,e,i,s,a,o,n,r){if(this.get("turboMode")){e.virtualParent=this.chart,e.parent&&(this.mainContainer.children.removeValue(e),e._parent=void 0);const n=e.get("stroke"),r=e.get("fillOpacity",1),h=e.get("strokeOpacity",1),l=e.get("strokeWidth",1),d=e.get("fill"),g=this.getPoint(i,a),c=this.getPoint(s,o),u=t.get("point");if(u){const t=this.getPoint(u.x,u.y);u.x=t.x+this._x,u.y=t.y+this._y}i=g.x,s=c.x,a=g.y,o=c.y,t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:n,fill:d,strokeWidth:l,strokeOpacity:h,fillOpacity:r})}else e.parent||this.mainContainer.children.push(e),super._updateSeriesGraphics(t,e,i,s,a,o,n,r)}}d.className="ColumnSeries",d.classNames=s.d.classNames.concat([d.className])},2338:function(t,e,i){i.d(e,{e:function(){return p}});var s=i(4604),a=i(1479),o=i(774),n=i(3794),r=i(5769),h=i(7144),l=i(1112),d=i(9361),g=i(7142),c=i(5040),u=i(5071),m=i(7652);class p extends s.o{constructor(){super(...arguments),this._strokeGenerator=(0,o.Z)(),this._fillGenerator=(0,n.Z)(),this.strokes=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template])))),this.fills=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template])))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0((function(t){return t[3]})),this._fillGenerator.x0((function(t){return t[2]})),this._fillGenerator.y1((function(t){return t[1]})),this._fillGenerator.x1((function(t){return t[0]})),super._afterNew()}makeStroke(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}makeFill(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let t=this.get("xAxis"),e=this.get("yAxis");if(this.isDirty("stroke")){const t=this.get("stroke");this.strokes.template.set("stroke",t);const e=this._legendStroke;e&&e.states.lookup("default").set("stroke",t)}if(this.isDirty("fill")){const t=this.get("fill");this.fills.template.set("fill",t);const e=this._legendFill;e&&e.states.lookup("default").set("fill",t)}if(this.isDirty("fillPattern")){const t=this.get("fillPattern");this.fills.template.set("fillPattern",t);const e=this._legendFill;e&&e.states.lookup("default").set("fillPattern",t)}if(this.isDirty("curveFactory")){const t=this.get("curveFactory");t&&(this._strokeGenerator.curve(t),this._fillGenerator.curve(t))}if(t.inited&&e.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){const t=this.dataItems;this.fills.each((t=>{t.setPrivate("visible",!1)})),this.strokes.each((t=>{t.setPrivate("visible",!1)})),this.axisRanges.each((t=>{let e=t.fills;e&&e.each((t=>{t.setPrivate("visible",!1)}));let i=t.strokes;i&&i.each((t=>{t.setPrivate("visible",!1)}))}));let e=this.startIndex(),i=this.strokes.template.get("templateField"),s=this.fills.template.get("templateField"),a=!0,o=!0;i&&(a=!1),s&&(o=!1);for(let n=e-1;n>=0;n--){let r=t[n],h=!0,l=r.dataContext;if(i&&l[i]&&(a=!0),s&&l[s]&&(o=!0),u.each(this._valueFields,(t=>{c.isNumber(r.get(t))||(h=!1)})),h&&a&&o){e=n;break}}let n=t.length,r=this.endIndex();if(r{c.isNumber(i.get(t))||(s=!1)})),s){r=e+1;break}}}if(e>0&&e--,this._endIndex=r,this._clearGraphics(),this._sindex=0,this._dindex=e,1==n)this._startSegment(0);else for(;this._dindex{t.fills.clear(),t.strokes.clear()}))}_startSegment(t){const e=this.dataItems;let i=this._endIndex,s=i;const a=this.get("autoGapCount"),o=this.get("connect"),n=this.makeFill(this.fills),h=this._fillTemplate,l=this.fills.template;h&&h!=l&&(n.template=h),n.setPrivate("visible",!0);const d=this.makeStroke(this.strokes),g=this._strokeTemplate;g&&g!=this.strokes.template&&(d.template=g),d.setPrivate("visible",!0);let c=this.get("xAxis"),u=this.get("yAxis"),m=this.get("baseAxis"),p=this.get("vcx",1),_=this.get("vcy",1),x=this._xField,v=this._yField,y=this._xOpenField,f=this._yOpenField;const b=this.get("openValueXField"),D=this.get("openValueYField");b||(y=this._xField),D||(f=this._yField);const P=this.get("stacked"),w=c.basePosition(),T=u.basePosition();let A;A=m===u?this._yField:this._xField;const I=[];let M=[];I.push(M);const k=this.strokes.template.get("templateField"),C=this.fills.template.get("templateField");let S=this.get("locationX",.5),Y=this.get("locationY",.5),F=this.get("openLocationX",S),X=this.get("openLocationY",Y);const L=this.get("minDistance",0);let N,R=this.fills.template.get("visible");this.axisRanges.length>0&&(R=!0);let V=!1;(P||b||D)&&(V=!0);const G={points:M,segments:I,stacked:P,getOpen:V,basePosX:w,basePosY:T,fillVisible:R,xField:x,yField:v,xOpenField:y,yOpenField:f,vcx:p,vcy:_,baseAxis:m,xAxis:c,yAxis:u,locationX:S,locationY:Y,openLocationX:F,openLocationY:X,minDistance:L};let O=this._strokeTemplate,E=this._fillTemplate;for(N=t;Nt){s=N;break}O=e,d.template=e}}if(C){let e=i.dataContext[C];if(e){if(e instanceof r.YS||(e=r.YS.new(e)),this._fillTemplate=e,N>t){s=N;break}E=e,n.template=e}}if(!o){let t=e[N+1];t&&m.shouldGap(i,t,a,A)&&(M=[],I.push(M),G.points=M)}}n.setRaw("userData",[t,N]),d.setRaw("userData",[t,N]),N===i&&this._endLine(M,I[0][0]),d&&this._drawStroke(d,I),n&&this._drawFill(n,I),this.axisRanges.each((e=>{const i=e.container,s=e.fills,a=this.makeFill(s);i&&i.children.push(a),a.setPrivate("visible",!0),this._drawFill(a,I);const o=e.strokes,n=this.makeStroke(o);i&&i.children.push(n),O&&O!=this.strokes.template&&(n.template=O),E&&E!=this.fills.template&&(a.template=E),n.setPrivate("visible",!0),this._drawStroke(n,I),a.setRaw("userData",[t,N]),n.setRaw("userData",[t,N])}))}_getPoints(t,e){let i=e.points,s=t.get("locationX",e.locationX),a=t.get("locationY",e.locationY);const o=this.get("exactLocationX",!1),n=this.get("exactLocationY",!1);let r=e.xAxis.getDataItemPositionX(t,e.xField,s,e.vcx,o),h=e.yAxis.getDataItemPositionY(t,e.yField,a,e.vcy,n);if(this._shouldInclude(r)){const s=this.getPoint(r,h),a=[s.x,s.y];if(s.x+=this._x,s.y+=this._y,t.set("point",s),e.fillVisible){let i=r,s=h;if(e.baseAxis===e.xAxis?s=e.basePosY:e.baseAxis===e.yAxis&&(i=e.basePosX),e.getOpen){let a=t.get(e.xOpenField),r=t.get(e.yOpenField);if(null!=a&&null!=r){let a=t.get("openLocationX",e.openLocationX),r=t.get("openLocationY",e.openLocationY);if(e.stacked){let h=t.get("stackToItemX"),l=t.get("stackToItemY");h?(i=e.xAxis.getDataItemPositionX(h,e.xField,a,h.component.get("vcx"),o),c.isNaN(i)&&(i=e.basePosX)):i=e.yAxis===e.baseAxis?e.basePosX:e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),l?(s=e.yAxis.getDataItemPositionY(l,e.yField,r,l.component.get("vcy"),n),c.isNaN(s)&&(s=e.basePosY)):s=e.xAxis===e.baseAxis?e.basePosY:e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),s=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}}let l=this.getPoint(i,s);a[2]=l.x,a[3]=l.y}if(e.minDistance>0){const t=a[0],s=a[1],o=a[2],n=a[3],r=this._previousPoint,h=r[0],l=r[1],d=r[2],g=r[3];(Math.hypot(t-h,s-l)>e.minDistance||o&&n&&Math.hypot(o-d,n-g)>e.minDistance)&&(i.push(a),this._previousPoint=a)}else i.push(a)}}_endLine(t,e){}_drawStroke(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._strokeGenerator.context(t),this._strokeGenerator(e)}))}))}_drawFill(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._fillGenerator.context(t),this._fillGenerator(e)}))}))}_processAxisRange(t){super._processAxisRange(t),t.fills=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,t.fills.template]))),t.strokes=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,t.strokes.template])))}createLegendMarker(t){const e=this.get("legendDataItem");if(e){const t=e.get("marker"),i=e.get("markerRectangle");i&&i.setPrivate("visible",!1),t.set("background",g.A.new(t._root,{fillOpacity:0,fill:(0,l.$_)(0)}));const s=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=s;const o=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;const n=this._root.interfaceColors.get("disabled");if(s.states.create("disabled",{fill:n,stroke:n}),o.states.create("disabled",{fill:n,stroke:n}),this.bullets.length>0){const e=this.bullets.getIndex(0);if(e){const i=e(t._root,this,new d.z(this,{legend:!0},{}));if(i){const e=i.get("sprite");e instanceof a.T&&e.states.create("disabled",{fill:n,stroke:n}),e&&(e.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),t.children.push(e),e.setAll({x:t.width()/2,y:t.height()/2}),t.events.on("boundschanged",(()=>{e.setAll({x:t.width()/2,y:t.height()/2})})))}}}}}}p.className="LineSeries",p.classNames=s.o.classNames.concat([p.className])},4604:function(t,e,i){i.d(e,{o:function(){return u}});var s=i(7582),a=i(9361),o=i(3399),n=i(7144),r=i(8777),h=i(1479),l=i(5040),d=i(256),g=i(5071),c=i(7652);class u extends o.F{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(r.W.new(this._root,{})),this.axisRanges=new n.aV,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new a.z(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");const t=this.get("xAxis");t&&(this._xRenderer=t.get("renderer"));const e=this.get("yAxis");e&&(this._yRenderer=e.get("renderer")),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxisRange(t)}));else if("push"===t.type)this._processAxisRange(t.newValue);else if("setIndex"===t.type)this._processAxisRange(t.newValue);else if("insertIndex"===t.type)this._processAxisRange(t.newValue);else if("removeIndex"===t.type)this._removeAxisRange(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value)}}))),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this.onPrivate("endIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this._makeFieldNames()}_processAxisRange(t){const e=r.W.new(this._root,{});t.container=e,this.children.push(e),t.series=this;const i=t.axisDataItem;i.setRaw("isRange",!0);const s=i.component;if(s){s._processAxisRange(i,["range","series"]);const t=i.get("bullet");if(t){const e=t.get("sprite");e&&e.setPrivate("visible",!1)}const a=i.get("axisFill");a&&e.set("mask",a),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),d.each(this._dataSets,((t,e)=>{g.each(e,(t=>{t.dispose()})),e.length=0}))}_removeAxisRange(t){const e=t.axisDataItem,i=e.component;e.dispose(),g.remove(i._seriesAxisRanges,e);const s=t.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&g.each(this.valueXFields,(t=>{if(this.get(t+"Field")){this._valueXFields.push(t);let e=this.get(t+"Show");this.__valueXShowFields.push(e),-1!=e.indexOf("Working")?this._valueXShowFields.push(e.split("Working")[0]):this._valueXShowFields.push(e)}})),this.valueYFields&&g.each(this.valueYFields,(t=>{if(this.get(t+"Field")){this._valueYFields.push(t);let e=this.get(t+"Show");this.__valueYShowFields.push(e),-1!=e.indexOf("Working")?this._valueYShowFields.push(e.split("Working")[0]):this._valueYShowFields.push(e)}}))}_dispose(){super._dispose(),this._bullets={};const t=this.chart;t&&t.series.removeValue(this),g.removeFirst(this.get("xAxis").series,this),g.removeFirst(this.get("yAxis").series,this)}_min(t,e){let i=(a=e,null==(s=this.getPrivate(t))?a:null==a?s:aa?s:a);var s,a;this.setPrivate(t,i)}_shouldMakeBullet(t){const e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!e.inited||!i.inited)return!1;const a=this.get("minBulletDistance",0);if(a>0){let t=this.startIndex(),o=this.endIndex()-t;if(e==s){if(this._xRenderer.axisLength()/o
{g.each(this._valueXShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedXValue(i,t)),this._min("minX",e),this._max("maxX",e))})),g.each(this._valueYShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedYValue(i,t)),this._min("minY",e),this._max("maxY",e))})),t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)})),t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&t.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&e.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(t._groupSeriesData(this),e._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let s=this.startIndex(),a=this.endIndex(),o=this.get("minBulletDistance",0);if(o>0&&i&&(i.get("renderer").axisLength()/(a-s)>o?this._showBullets=!0:this._showBullets=!1),(this._psi!=s||this._pei!=a||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const o=this.get("vcx",1),n=this.get("vcy",1),r=this.get("stacked",!1),h=this.getPrivate("outOfSelection");if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),h)e.markDirtySelectionExtremes();else for(let t=s;t{i.open=void 0,i.close=void 0,t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)}))}_makeRangeMask(){if(this.axisRanges.length>0){let t=this._mainContainerMask;null==t&&(t=this.children.push(h.T.new(this._root,{})),this._mainContainerMask=t,t.set("draw",((e,i)=>{const s=this.parent;if(s){const t=this._root.container.width(),a=this._root.container.height();e.moveTo(-t,-a),e.lineTo(-t,2*a),e.lineTo(2*t,2*a),e.lineTo(2*t,-a),e.lineTo(-t,-a),this.axisRanges.each((t=>{const a=t.axisDataItem.get("axisFill");if(s&&a){let t=a.get("draw");t&&t(e,i)}}))}this.mainContainer._display.mask=t._display}))),t.markDirty(),t._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const t=this.chart;if(t){const e=t.series.indexOf(this);if(this._couldStackTo=[],e>0){let i;for(let s=e-1;s>=0&&(i=t.series.getIndex(s),i.get("xAxis")!==this.get("xAxis")||i.get("yAxis")!==this.get("yAxis")||i.className!==this.className||(this._couldStackTo.push(i),i.get("stacked")));s--);}this._stackDataItems()}}_unstack(){d.each(this._reallyStackedTo,((t,e)=>{delete e._stackedSeries[this.uid]})),this._reallyStackedTo={},g.each(this.dataItems,(t=>{t.setRaw("stackToItemY",void 0),t.setRaw("stackToItemX",void 0)}))}_handleRemoved(){const t=this.get("xAxis");t&&t._handleSeriesRemoved();const e=this.get("yAxis");e&&e._handleSeriesRemoved()}_stackDataItems(){const t=this.get("baseAxis"),e=this.get("xAxis"),i=this.get("yAxis");let s,a;t===e?(s="valueY",a="stackToItemY"):t===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,n=0;const r=this.get("stackToNegative");this._reallyStackedTo={},g.each(this.dataItems,(t=>{for(let e=0;e=0&&n>=0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}if(d<0&&n<0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}else if(l.isNumber(d)&&l.isNumber(n)){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}n++}))}processXSelectionDataItem(t,e,i){g.each(this.__valueXShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedXValueWorking(t,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*e))}))}processYSelectionDataItem(t,e,i){g.each(this.__valueYShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedYValueWorking(t,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*e))}))}getStackedYValueWorking(t,e){const i=t.get("stackToItemY");if(i){const t=i.component;return i.get(e,0)*t.get("vcy",1)+this.getStackedYValueWorking(i,e)}return 0}getStackedXValueWorking(t,e){const i=t.get("stackToItemX");if(i){const t=i.component;return i.get(e,0)*t.get("vcx",1)+this.getStackedXValueWorking(i,e)}return 0}getStackedYValue(t,e){const i=t.get("stackToItemY");return i?i.get(e,0)+this.getStackedYValue(i,e):0}getStackedXValue(t,e){const i=t.get("stackToItemX");return i?i.get(e,0)+this.getStackedXValue(i,e):0}createLegendMarker(t){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(t){let e=t.get("sprite");if(e){let i=e.dataItem,s=t.get("locationX",i.get("locationX",.5)),a=t.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),n=this.get("yAxis"),r=this.get("exactLocationX",!1),h=this.get("exactLocationY",!1),l=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),r),d=n.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),h),g=this.getPoint(l,d),c=i.get("left",g.x),u=i.get("right",g.x),m=i.get("top",g.y),p=i.get("bottom",g.y),_=0,x=0,v=u-c,y=p-m;if(this._shouldShowBullet(l,d)){e.setPrivate("visible",!t.getPrivate("hidden"));let o=t.get("field");const n=this.get("baseAxis"),u=this.get("xAxis"),m=this.get("yAxis");if(null!=o){let t;n==u?("value"==o?t=this._yField:"open"==o?t=this._yOpenField:"high"==o?t=this._yHighField:"low"==o&&(t=this._yLowField),t&&(d=m.getDataItemPositionY(i,t,0,this.get("vcy",1),h),g=this._yRenderer.positionToPoint(d),x=g.y,_=c+v*s)):("value"==o?t=this._xField:"open"==o?t=this._xOpenField:"high"==o?t=this._xHighField:"low"==o&&(t=this._xLowField),t&&(l=u.getDataItemPositionX(i,t,0,this.get("vcx",1),r),g=this._xRenderer.positionToPoint(l),_=g.x,x=p-y*a))}else _=c+v*s,x=p-y*a;const f=t.get("stacked");if(f){const t=this.chart;if(n==u){let i=this._bullets[l+"_"+d];if(i){let s=i.bounds(),a=e.localBounds(),o=x;x=s.top,"down"==f?x=s.bottom-a.top:"auto"==f?t&&(o{e!=this._mainDataItems&&g.each(e,(t=>{t.dispose()}))})),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){g.each(this._dataItems,(t=>{let e=t.bullets;e&&g.each(e,(t=>{if(t){let e=t.get("sprite");e&&e.setPrivate("visible",!1)}}))})),this._selectionProcessed=!1}show(t){const e=Object.create(null,{show:{get:()=>super.show}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.show.call(this,t).then((()=>{this._isShowing=!1;let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis");e!==i&&e.markDirtySelectionExtremes(),t!==i&&t.markDirtySelectionExtremes()}))),i.push(this.bulletsContainer.show(t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)}))}hide(t){const e=Object.create(null,{hide:{get:()=>super.hide}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.hide.call(this,t).then((()=>{this._isHiding=!1}))),i.push(this.bulletsContainer.hide(t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)];l.isNumber(e)||(e=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");g.each(this._valueFields,(i=>{s.push(t.animate({key:i+"Working",to:t.get(i),duration:e,easing:a}).waitForStop())})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)];let a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),l.isNumber(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),n=this.get("xAxis"),r=this.get("yAxis"),h=this.get("baseAxis"),d=this.get("stacked");if(h!==n&&h||g.each(this._valueYFields,(i=>{let a=r.getPrivate("min"),n=r.baseValue();l.isNumber(a)&&a>n&&(n=a),d&&(n=0),null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:n,duration:e,easing:o}).waitForStop())})),h===r||!h){let i=n.getPrivate("min"),a=n.baseValue();l.isNumber(i)&&i>a&&(a=i),d&&(a=0),g.each(this._valueXFields,(i=>{null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:a,duration:e,easing:o}).waitForStop())}))}yield Promise.all(s)}))}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const t=this._stackedSeries;t&&d.each(t,((t,e)=>{e._stackDirty||e._markDirtyStack()}))}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(t){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(t),this.updateLegendValue(t));const e=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(e)if(!this.isHidden()&&this.get("visible")){if(e._setDataItem(t),t){let a=this.get("locationX",0),o=this.get("locationY",1),n=t.get("locationX",a),r=t.get("locationY",o);const h=this.get("xAxis"),l=this.get("yAxis"),d=this.get("vcx",1),c=this.get("vcy",1),u=h.getDataItemPositionX(t,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*n,d,i),m=l.getDataItemPositionY(t,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*r,c,s),p=this.getPoint(u,m);let _=!0;if(g.each(this._valueFields,(e=>{null==t.get(e)&&(_=!1)})),_){const i=this.chart;i&&i.inPlot(p)?(e.label.text.markDirtyText(),e.set("tooltipTarget",this._getTooltipTarget(t)),e.set("pointTo",this._display.toGlobal({x:p.x,y:p.y}))):e._setDataItem(void 0)}else e._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const t=this.get("tooltip");return t&&t.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget")){const e=t.bullets;if(e&&e.length>0){const t=e[0].get("sprite");if(t)return t}}return this}updateLegendValue(t){const e=this.get("legendDataItem");if(e){const i=e.get("label");if(i){let e="";t?(i._setDataItem(t),e=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),e=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",e)}const s=e.get("valueLabel");if(s){let e="";t?(s._setDataItem(t),e=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),e=this.get("legendRangeValueText",s.get("text",""))),s.set("text",e)}}}_getItemReaderLabel(){let t="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}",t}getPoint(t,e){let i=this._xRenderer.positionToCoordinate(t),s=this._yRenderer.positionToCoordinate(e),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(t){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(t){return this.axisRanges.push({axisDataItem:t})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(t){const e=this.get("xAxis");if(this.get("baseAxis")==e&&e.isType("DateAxis")){const i=e.baseDuration(),s=e.getPrivate("selectionMin",e.getPrivate("min",0)),a=i*this.get("locationX",.5);let o=-1/0;for(;o{const e=this.startGrip,i=this.endGrip;let s=e.x(),a=e.y(),o=i.x(),n=i.y();const r=this.height(),h=this.width();s>o&&([s,o]=[o,s]),a>n&&([a,n]=[n,a]),"horizontal"===this.get("orientation")?(t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,r),t.lineTo(0,r),t.lineTo(0,0),t.moveTo(o,0),t.lineTo(h,0),t.lineTo(h,r),t.lineTo(o,r),t.lineTo(o,0)):(t.moveTo(0,0),t.lineTo(0,a),t.lineTo(h,a),t.lineTo(h,0),t.lineTo(0,0),t.moveTo(0,n),t.lineTo(0,r),t.lineTo(h,r),t.lineTo(h,n),t.lineTo(0,n))}))}}r.className="XYChartScrollbar",r.classNames=a.L.classNames.concat([r.className]);var h=i(3355),l=i(757),d=i(6515),g=i(7497),c=i(1926),u=i(5040),m=i(5071);class p extends g.${constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category"),super._afterNew()}_prepareAxisItems(){this.setPrivateRaw("baseInterval",this.get("baseInterval"));const t=this.get("renderer"),e=this.dataItems.length;let i=this.startIndex();i>0&&i--;let s=this.endIndex();s=o&&(g=!0):r%l.count==0&&r!=y&&(g=!0),!h&&g&&(i-.7*o0){let t=f[0].dataItem.get("index",0);m.each(f,(e=>{const i=e.dataItem,s=e.format;this._createAssets(i,[]),this._toggleDataItem(i,!0);let a=Number(i.get("category")),n=new Date(a);const r=i.get("label");r&&r.set("text",this._root.dateFormatter.format(n,s)),t++,this._prepareDataItem(i,t,o)}))}}baseDuration(){return c.getIntervalDuration(this.getPrivate("baseInterval"))}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let t=this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];return this._root.dateFormatter.format(new Date(i.get("category",0)),this.get("tooltipDateFormat",t))}}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}}p.className="CategoryDateAxis",p.classNames=g.$.classNames.concat([p.className]);var _=i(5638),x=i(8701),v=i(7261),y=i(751);class f extends v.m{constructor(){super(...arguments),this._dataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),super._afterNew()}_adjustMinMax(t,e,i,s){let a;const o=this.getDurationFormatter(),n=this.get("baseUnit");if(this.setRaw("maxPrecision",0),"millisecond"==n||"second"==n||"minute"==n||"hour"==n){i<=1&&(i=1),i=Math.round(i);let s=e-t;0===s&&(s=Math.abs(e));let o=s/i,r=[60,30,20,15,10,2,1],h=1;"hour"==n&&(r=[24,12,6,4,2,1]);for(let t of r)if(s/t>i){h=t;break}let l=Math.ceil((e-t)/h/i),d=Math.log(Math.abs(l))*Math.LOG10E,g=Math.pow(10,Math.floor(d))/10,c=l/g;l=y.closest(r,c)*g,o=h*l,a={min:t=Math.floor(t/o)*o,max:e=Math.ceil(e/o)*o,step:o}}else a=super._adjustMinMax(t,e,i,s);return this.setPrivateRaw("durationFormat",o.getFormat(a.step,a.max,n)),a}_formatText(t){return this.getDurationFormatter().format(t,this.getPrivate("durationFormat"),this.get("baseUnit"))}getTooltipText(t,e){const i=this.getDurationFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=y.round(this.positionToValue(t),a);return i.format(o,this.getPrivate("durationFormat"),this.get("baseUnit"))}}f.className="DurationAxis",f.classNames=v.m.classNames.concat([f.className]);var b=i(2586),D=i(6293),P=i(9084),w=i(4714),T=i(8943),A=i(7109),I=i(6275),M=i(6284),k=i(7909),C=i(4604),S=i(2976),Y=i(2312);class F extends S.j{_draw(){const t=this._display;t.moveTo(this.get("lowX1",0),this.get("lowY1",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0));let e=this.width(),i=this.height();if("vertical"==this.get("orientation")){let s=i,a=0;t.moveTo(0,s),t.lineTo(e/2,s),t.moveTo(e/2,a),t.lineTo(e,a)}else{let s=0,a=e;t.moveTo(s,0),t.lineTo(s,i/2),t.moveTo(a,i/2),t.lineTo(a,i)}}}F.className="OHLC",F.classNames=S.j.classNames.concat([F.className]);var X=i(5769),L=i(7144);class N extends Y.${constructor(){super(...arguments),this.columns=this.addDisposer(new L.o(X.YS.new({themeTags:["autocolor"]}),(()=>F._new(this._root,{themeTags:n.mergeTags(this.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=this.mainContainer.children.push(e.make());return i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new L.o(X.YS.new({}),(()=>F._new(this._root,{themeTags:n.mergeTags(t.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template,t.columns.template])))}}N.className="OHLCSeries",N.classNames=Y.$.classNames.concat([N.className]);var R=i(62),V=i(2338),G=i(5892);class O extends V.e{_afterNew(){this._setDefault("curveFactory",(0,G.$)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,G.$)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}O.className="SmoothedYLineSeries",O.classNames=V.e.classNames.concat([O.className]);var E=i(8289);class z extends V.e{_afterNew(){this._setDefault("curveFactory",(0,E.G)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,E.G)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}z.className="SmoothedXLineSeries",z.classNames=V.e.classNames.concat([z.className]);var U=i(2818);class W extends V.e{_afterNew(){this._setDefault("curveFactory",U.ZP.tension(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",U.ZP.tension(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}W.className="SmoothedXYLineSeries",W.classNames=V.e.classNames.concat([W.className]);var B=i(6245);function H(t,e){this._context=t,this._t=e}function Z(t){return new H(t,1)}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}};class Q extends V.e{_afterNew(){this._setDefault("curveFactory",Z),super._afterNew()}_getPoints(t,e){let i=e.points,s=this.get("stepWidth",B.AQ).value/2,a=t.get("locationX",e.locationX),o=t.get("locationY",e.locationY),n=a,r=o;e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s);let h=e.xAxis.getDataItemPositionX(t,e.xField,a,e.vcx),l=e.yAxis.getDataItemPositionY(t,e.yField,o,e.vcy),d=e.xAxis.getDataItemPositionX(t,e.xField,n,e.vcx),g=e.yAxis.getDataItemPositionY(t,e.yField,r,e.vcy);if(this._shouldInclude(h)){const c=this.getPoint(h,l),u=[c.x,c.y],m=this.getPoint(d,g),p=[m.x,m.y];if(e.fillVisible){let i=h,c=l,m=d,_=g;if(e.baseAxis===e.xAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(i=e.basePosX,m=e.basePosX),e.getOpen){let h=t.get(e.xOpenField),l=t.get(e.yOpenField);if(null!=h&&null!=l)if(a=t.get("openLocationX",e.openLocationX),o=t.get("openLocationY",e.openLocationY),n=a,r=o,e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s),e.stacked){let s=t.get("stackToItemX"),h=t.get("stackToItemY");s?(i=e.xAxis.getDataItemPositionX(s,e.xField,a,s.component.get("vcx")),m=e.xAxis.getDataItemPositionX(s,e.xField,n,s.component.get("vcx"))):e.yAxis===e.baseAxis?(i=e.basePosX,m=e.basePosX):e.baseAxis===e.yAxis&&(i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx)),h?(c=e.yAxis.getDataItemPositionY(h,e.yField,o,h.component.get("vcy")),_=e.yAxis.getDataItemPositionY(h,e.yField,r,h.component.get("vcy"))):e.xAxis===e.baseAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy))}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy)}let x=this.getPoint(i,c),v=this.getPoint(m,_);u[2]=x.x,u[3]=x.y,p[2]=v.x,p[3]=v.y}i.push(u),i.push(p),t.set("point",{x:u[0]+(p[0]-u[0])/2,y:u[1]+(p[1]-u[1])/2})}this.get("noRisers")&&(e.points=[],e.segments.push(i))}}Q.className="StepLineSeries",Q.classNames=V.e.classNames.concat([Q.className]);var j=i(55)},7825:function(t,e,i){i.r(e),i.d(e,{am5xy:function(){return s}});const s=i(778)},2818:function(t,e,i){function s(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function a(t,e){this._context=t,this._k=(1-e)/6}i.d(e,{xm:function(){return s}}),a.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:s(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:s(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.ZP=function t(e){function i(t){return new a(t,e)}return i.tension=function(e){return t(+e)},i}(0)}},function(t){var e=(7825,t(t.s=7825)),i=window;for(var s in e)i[s]=e[s];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=xy.js.map diff --git a/web/amCharts/bar/chart_0084_bar.inline04.js b/web/amCharts/bar/chart_0084_bar.inline04.js new file mode 100644 index 0000000000000000000000000000000000000000..943eae9bd53f39016fc98be10aecaa6354766a63 --- /dev/null +++ b/web/amCharts/bar/chart_0084_bar.inline04.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[3847],{307:function(e,t,i){i.r(t),i.d(t,{am5themes_Responsive:function(){return d}});var a=i(3409),n=i(7449),s=i(6245),r=i(5071);class l extends a.Q{constructor(e,t){super(e,t),this.responsiveRules=[],this._dp=new n.FV([this._root._rootContainer.onPrivate("width",(e=>{this._isUsed()&&this._maybeApplyRules()})),this._root._rootContainer.onPrivate("height",(e=>{this._isUsed()&&this._maybeApplyRules()}))])}static widthXXS(e,t){return e<=l.XXS}static widthXS(e,t){return e<=l.XS}static widthS(e,t){return e<=l.S}static widthM(e,t){return e<=l.M}static widthL(e,t){return e<=l.L}static widthXL(e,t){return e<=l.XL}static widthXXL(e,t){return e<=l.XXL}static heightXXS(e,t){return t<=l.XXS}static heightXS(e,t){return t<=l.XS}static heightS(e,t){return t<=l.S}static heightM(e,t){return t<=l.M}static heightL(e,t){return t<=l.L}static heightXL(e,t){return t<=l.XL}static heightXXL(e,t){return t<=l.XXL}static isXXS(e,t){return e<=l.XXS&&t<=l.XXS}static isXS(e,t){return e<=l.XS&&t<=l.XS}static isS(e,t){return e<=l.S&&t<=l.S}static isM(e,t){return e<=l.M&&t<=l.M}static isL(e,t){return e<=l.L&&t<=l.L}static isXL(e,t){return e<=l.XL&&t<=l.XL}static isXXL(e,t){return e<=l.XXL&&t<=l.XXL}static maybeXXS(e,t){return e<=l.XXS||t<=l.XXS}static maybeXS(e,t){return e<=l.XS||t<=l.XS}static maybeS(e,t){return e<=l.S||t<=l.S}static maybeM(e,t){return e<=l.M||t<=l.M}static maybeL(e,t){return e<=l.L||t<=l.L}static maybeXL(e,t){return e<=l.XL||t<=l.XL}static maybeXXL(e,t){return e<=l.XXL||t<=l.XXL}static newEmpty(e){return new this(e,!0)}addRule(e){return e.name&&!e.template&&(e.template=this.rule(e.name,e.tags)),this.responsiveRules.push(e),this._maybeApplyRule(e),e}removeRule(e){r.remove(this.responsiveRules,e)}dispose(){this._dp&&this._dp.dispose()}_isUsed(){return-1!==this._root._rootContainer.get("themes").indexOf(this)}_maybeApplyRules(){r.each(this.responsiveRules,(e=>{this._maybeUnapplyRule(e)})),r.each(this.responsiveRules,(e=>{this._maybeApplyRule(e)}))}_maybeApplyRule(e){if(e.applied)return;const t=this._root._rootContainer.getPrivate("width"),i=this._root._rootContainer.getPrivate("height");e.relevant.call(e,t,i)&&(e.applied=!0,e.template&&e.settings&&e.template.setAll(e.settings),e.applying&&e.applying.call(e))}_maybeUnapplyRule(e){if(!e.applied)return;const t=this._root._rootContainer.getPrivate("width"),i=this._root._rootContainer.getPrivate("height");e.relevant.call(e,t,i)||(e.applied=!1,e.template&&e.template.removeAll(),e.removing&&e.removing.call(e))}setupDefaultRules(){super.setupDefaultRules();const e=e=>this.addRule(e);e({name:"Chart",relevant:l.widthXXS,settings:{paddingLeft:0,paddingRight:0}}),e({name:"Chart",relevant:l.heightXXS,settings:{paddingTop:0,paddingBottom:0}}),e({name:"Bullet",relevant:l.isXS,settings:{forceHidden:!0}}),e({name:"Legend",relevant:l.isXS,settings:{forceHidden:!0}}),e({name:"HeatLegend",tags:["vertical"],relevant:l.widthXS,settings:{forceHidden:!0}}),e({name:"HeatLegend",tags:["horizontal"],relevant:l.heightXS,settings:{forceHidden:!0}}),e({name:"Label",tags:["heatlegend","start"],relevant:l.maybeXS,settings:{forceHidden:!0}}),e({name:"Label",tags:["heatlegend","end"],relevant:l.maybeXS,settings:{forceHidden:!0}}),e({name:"Button",tags:["resize"],relevant:l.maybeXS,settings:{forceHidden:!0}}),e({name:"AxisRendererX",relevant:l.heightXS,settings:{inside:!0}}),e({name:"AxisRendererY",relevant:l.widthXS,settings:{inside:!0}}),e({name:"AxisRendererXLabel",relevant:l.heightXS,settings:{minPosition:.1,maxPosition:.9}}),e({name:"AxisLabel",tags:["y"],relevant:l.widthXS,settings:{centerY:s.AQ,maxPosition:.9}}),e({name:"AxisLabel",tags:["x"],relevant:l.heightXXS,settings:{forceHidden:!0}}),e({name:"AxisLabel",tags:["x","minor"],relevant:l.widthXXL,settings:{forceHidden:!0}}),e({name:"AxisLabel",tags:["y"],relevant:l.widthXXS,settings:{forceHidden:!0}}),e({name:"AxisLabel",tags:["y","minor"],relevant:l.heightXXL,settings:{forceHidden:!0}}),e({name:"AxisTick",tags:["x"],relevant:l.heightXS,settings:{inside:!0,minPosition:.1,maxPosition:.9}}),e({name:"AxisTick",tags:["y"],relevant:l.widthXXS,settings:{inside:!0,minPosition:.1,maxPosition:.9}}),e({name:"Grid",relevant:l.maybeXXS,settings:{forceHidden:!0}}),e({name:"RadialLabel",tags:["radial"],relevant:l.maybeXS,settings:{forceHidden:!0}}),e({name:"RadialLabel",tags:["circular"],relevant:l.maybeS,settings:{inside:!0}}),e({name:"AxisTick",relevant:l.maybeS,settings:{inside:!0}}),e({name:"RadialLabel",tags:["circular"],relevant:l.maybeXS,settings:{forceHidden:!0}}),e({name:"AxisTick",tags:["circular"],relevant:l.maybeXS,settings:{inside:!0}}),e({name:"PieChart",relevant:l.maybeXS,settings:{radius:(0,s.aQ)(99)}}),e({name:"PieChart",relevant:l.widthM,settings:{radius:(0,s.aQ)(99)}}),e({name:"RadialLabel",tags:["pie"],relevant:l.maybeXS,settings:{forceHidden:!0}}),e({name:"RadialLabel",tags:["pie"],relevant:l.widthM,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pie"],relevant:l.maybeXS,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pie"],relevant:l.widthM,settings:{forceHidden:!0}}),e({name:"FunnelSeries",relevant:l.widthM,settings:{alignLabels:!1}}),e({name:"Label",tags:["funnel","vertical"],relevant:l.widthL,settings:{forceHidden:!0}}),e({name:"Tick",tags:["funnel","vertical"],relevant:l.widthL,settings:{forceHidden:!0}}),e({name:"Label",tags:["funnel","horizontal"],relevant:l.heightS,settings:{forceHidden:!0}}),e({name:"Tick",tags:["funnel","horizontal"],relevant:l.heightS,settings:{forceHidden:!0}}),e({name:"PyramidSeries",relevant:l.widthM,settings:{alignLabels:!1}}),e({name:"Label",tags:["pyramid","vertical"],relevant:l.widthL,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pyramid","vertical"],relevant:l.widthL,settings:{forceHidden:!0}}),e({name:"Label",tags:["pyramid","horizontal"],relevant:l.heightS,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pyramid","horizontal"],relevant:l.heightS,settings:{forceHidden:!0}}),e({name:"PictorialStackedSeries",relevant:l.widthM,settings:{alignLabels:!1}}),e({name:"Label",tags:["pictorial","vertical"],relevant:l.widthL,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pictorial","vertical"],relevant:l.widthL,settings:{forceHidden:!0}}),e({name:"Label",tags:["pictorial","horizontal"],relevant:l.heightS,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pictorial","horizontal"],relevant:l.heightS,settings:{forceHidden:!0}}),e({name:"Label",tags:["flow","horizontal"],relevant:l.widthS,settings:{forceHidden:!0}}),e({name:"Label",tags:["flow","vertical"],relevant:l.heightS,settings:{forceHidden:!0}}),e({name:"Chord",relevant:l.maybeXS,settings:{radius:(0,s.aQ)(99)}}),e({name:"Label",tags:["hierarchy","node"],relevant:l.maybeXS,settings:{forceHidden:!0}})}}l.XXS=100,l.XS=200,l.S=300,l.M=400,l.L=600,l.XL=800,l.XXL=1e3;const d=l}},function(e){var t=(307,e(e.s=307)),i=window;for(var a in t)i[a]=t[a];t.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=Responsive.js.map diff --git a/web/amCharts/bar/chart_0085_bar.inline03.js b/web/amCharts/bar/chart_0085_bar.inline03.js new file mode 100644 index 0000000000000000000000000000000000000000..c27a274e7972e9ecbd57d20b441e60fc864ffc7d --- /dev/null +++ b/web/amCharts/bar/chart_0085_bar.inline03.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=Animated.js.map diff --git a/web/amCharts/bar/chart_0086_bar.inline02.js b/web/amCharts/bar/chart_0086_bar.inline02.js new file mode 100644 index 0000000000000000000000000000000000000000..7d639bfbccafb0629413627a65767ed75fa6b94c --- /dev/null +++ b/web/amCharts/bar/chart_0086_bar.inline02.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[6450],{6901:function(t,e,i){i.d(e,{z:function(){return x}});var s=i(55),a=i(8777),o=i(7142),n=i(5829),r=i(7144),h=i(6245),l=i(8054),d=i(1479),g=i(5071),c=i(5040),u=i(3540),m=i(256),p=i(7652),_=i(751);class x extends n.j{constructor(){super(...arguments),this.xAxes=new r.dn,this.yAxes=new r.dn,this.topAxesContainer=this.chartContainer.children.push(a.W.new(this._root,{width:h.AQ,layout:this._root.verticalLayout})),this.yAxesAndPlotContainer=this.chartContainer.children.push(a.W.new(this._root,{width:h.AQ,height:h.AQ,layout:this._root.horizontalLayout})),this.bottomAxesContainer=this.chartContainer.children.push(a.W.new(this._root,{width:h.AQ,layout:this._root.verticalLayout})),this.leftAxesContainer=this.yAxesAndPlotContainer.children.push(a.W.new(this._root,{height:h.AQ,layout:this._root.horizontalLayout})),this.plotsContainer=this.yAxesAndPlotContainer.children.push(a.W.new(this._root,{width:h.AQ,height:h.AQ,maskContent:!1})),this.plotContainer=this.plotsContainer.children.push(a.W.new(this._root,{width:h.AQ,height:h.AQ})),this.topPlotContainer=this.plotsContainer.children.push(a.W.new(this._root,{width:h.AQ,height:h.AQ})),this.gridContainer=this.plotContainer.children.push(a.W.new(this._root,{width:h.AQ,height:h.AQ,isMeasured:!1})),this.topGridContainer=a.W.new(this._root,{width:h.AQ,height:h.AQ,isMeasured:!1}),this.rightAxesContainer=this.yAxesAndPlotContainer.children.push(a.W.new(this._root,{height:h.AQ,layout:this._root.horizontalLayout})),this.axisHeadersContainer=this.plotContainer.children.push(a.W.new(this._root,{})),this.zoomOutButton=this.topPlotContainer.children.push(l.z.new(this._root,{themeTags:["zoom"],icon:d.T.new(this._root,{themeTags:["button","icon"]})})),this._movePoint={x:0,y:0},this._movePoints={}}_afterNew(){this._defaultThemes.push(s.l.new(this._root)),super._afterNew(),this._disposers.push(this.xAxes),this._disposers.push(this.yAxes);const t=this._root;let e=this._root.verticalLayout;const i=this.zoomOutButton;i.events.on("click",(()=>{this.zoomOut()})),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",e);const a=this.plotContainer;a.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),a.children.push(this.topGridContainer),a.children.push(this.bulletsContainer),a.set("interactive",!0),a.set("interactiveChildren",!1),a.set("background",o.A.new(t,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(a.events.on("pointerdown",(t=>{this._handlePlotDown(t)}))),this._disposers.push(a.events.on("globalpointerup",(t=>{this._handlePlotUp(t)}))),this._disposers.push(a.events.on("globalpointermove",(t=>{this._handlePlotMove(t)}))),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(t){t._unstack(),t._posXDp&&t._posXDp.dispose(),t._posYDp&&t._posYDp.dispose(),t.set("baseAxis",void 0);const e=t.get("xAxis");e&&(g.remove(e.series,t),e.markDirtyExtremes());const i=t.get("yAxis");i&&(g.remove(i.series,t),i.markDirtyExtremes());const s=this.get("cursor");if(s){const e=s.get("snapToSeries");e&&g.remove(e,t)}super._removeSeries(t)}_applyThemes(t=!1){const e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}handleWheel(t){const e=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=t.originalEvent;let o=!1;if(!p.isLocalEvent(a,this))return;o=!0;const n=s.toLocal(t.point),r=this.get("wheelStep",.2),h=a.deltaY/100,l=a.deltaX/100,d=this.get("wheelZoomPositionX"),g=this.get("wheelZoomPositionY");"zoomX"!==e&&"zoomXY"!==e||0==l||this.xAxes.each((t=>{if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let h=t.get("maxDeviation",0),g=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let l=t.get("maxDeviation",0),g=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let h=t.get("maxDeviation",0),d=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let l=t.get("maxDeviation",0),d=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panX"!==i&&"panXY"!==i||0==h||this.xAxes.each((t=>{if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e+s,n=i+s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==e&&"panXY"!==e||0==l||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==i&&"panXY"!==i||0==h||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e-s,n=i-s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),o&&a.preventDefault()}_handleSetWheel(){const t=this.get("wheelX"),e=this.get("wheelY"),i=this.plotContainer;"none"!==t||"none"!==e?(this._wheelDp=i.events.on("wheel",(i=>{const s=i.originalEvent;("none"!==t&&0!=Math.abs(s.deltaX)||"none"!==e&&0!=Math.abs(s.deltaY))&&this.handleWheel(i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(t){let e=1;return t.get("renderer").get("inversed")&&(e=-1),e}_fixWheel(t,e){const i=e-t;return t<0&&(e=(t=0)+i),e>1&&(t=(e=1)-i),[t,e]}_handlePlotDown(t){const e=t.originalEvent;if(2==e.button)return;const i=this.plotContainer;let s=i.toLocal(t.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&e.pointerId&&m.keys(i._downPoints).length>0){const t=this.xAxes.getIndex(0),e=this.yAxes.getIndex(0);t&&(this._downStartX=t.get("start",0),this._downEndX=t.get("end",1)),e&&(this._downStartY=e.get("start",0),this._downEndY=e.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:e.clientX,y:e.clientY};const i=this.get("panX"),s=this.get("panY");i&&this.xAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")})),s&&this.yAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")}));const a="panstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:t.originalEvent})}}_handleWheelAnimation(t){t?t.events.on("stopped",(()=>{this._dispatchWheelAnimation()})):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const t="wheelended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}_handlePlotUp(t){const e=this._downPoint;if(e&&(this.get("panX")||this.get("panY"))){if(t.originalEvent.clientX==e.x&&t.originalEvent.clientY==e.y){const e="pancancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:t.originalEvent})}this._downPoint=void 0,this.xAxes.each((t=>{t._isPanning=!1})),this.yAxes.each((t=>{t._isPanning=!1}))}_handlePlotMove(t){const e=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const i=t.originalEvent.pointerId;if(i&&(this._movePoints[i]=t.point,m.keys(e._downPoints).length>1))return void this._handlePinch()}let i=this._downPoint;if(i){i=e.toLocal(this._root.documentPointToRoot(i));let s=e.toLocal(t.point);const a=this.get("panX"),o=this.get("panY");if(a){let t=this.get("scrollbarX");t&&t.events.disableType("rangechanged"),this.xAxes.each((t=>{if(t.get("panX")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.x-s.x)/e.width();t.get("renderer").get("inversed")&&(n*=-1);let r=a+n,h=o+n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}if(o){let t=this.get("scrollbarY");t&&t.events.disableType("rangechanged"),this.yAxes.each((t=>{if(t.get("panY")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.y-s.y)/e.height();t.get("renderer").get("inversed")&&(n*=-1);let r=a-n,h=o-n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}}}_handlePinch(){const t=this.plotContainer;let e=0,i=[],s=[];if(m.each(t._downPoints,((t,a)=>{i[e]=a;let o=this._movePoints[t];o&&(s[e]=o),e++})),i.length>1&&s.length>1){const e=t.width(),a=t.height();let o=i[0],n=i[1],r=s[0],h=s[1];if(o&&n&&r&&h){if(r=t.toLocal(r),h=t.toLocal(h),o=t.toLocal(o),n=t.toLocal(n),this.get("pinchZoomX")){const t=this._downStartX,i=this._downEndX;if(null!=t&&null!=i){o.x>n.x&&([o,n]=[n,o],[r,h]=[h,r]);let s=t+o.x/e*(i-t),a=t+n.x/e*(i-t),l=t+r.x/e*(i-t),d=t+h.x/e*(i-t),g=Math.max(.001,a-s)/Math.max(.001,d-l),c=t*g+s-l*g,u=i*g+a-d*g;this.xAxes.each((t=>{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}if(this.get("pinchZoomY")){const t=this._downStartY,e=this._downEndY;if(null!=t&&null!=e){o.y{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}}}}_handleCursorPosition(){const t=this.get("cursor");if(t){const e=t.getPrivate("point");let i=t.get("snapToSeries");if(t._downPoint&&(i=void 0),i&&e){const s=t.get("snapToSeriesBy"),a=[];g.each(i,(t=>{if(!t.isHidden()&&!t.isHiding())if("x!"!=s&&"y!"!=s){const e=t.startIndex(),i=t.endIndex();for(let s=e;s{const i=t.get("point");if(i){let a=0;a="x"==s||"x!"==s?Math.abs(e.x-i.x):"y"==s||"y!"==s?Math.abs(e.y-i.y):Math.hypot(e.x-i.x,e.y-i.y),a{const e=t.get("tooltip");e&&e._setDataItem(void 0)})),o){let e=o.component;e.showDataItemTooltip(o),e.setRaw("tooltipDataItem",o);const i=o.get("point");i&&t.handleMove(e.toGlobal({x:i.x-e.x(),y:i.y-e.y()}),!0)}}}}_updateCursor(){let t=this.get("cursor");t&&t.updateCursor()}_addCursor(t){this.plotContainer.children.push(t)}_prepareChildren(){if(super._prepareChildren(),this.series.each((t=>{this._colorize(t)})),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const t=this._prevSettings.cursor,e=this.get("cursor");e!==t&&(this._disposeProperty("cursor"),t&&t.dispose(),e&&(e._setChart(this),this._addCursor(e),this._pushPropertyDisposer("cursor",e.events.on("selectended",(()=>{this._handleCursorSelectEnd()})))),this._prevSettings.cursor=e)}if(this.isDirty("scrollbarX")){const t=this._prevSettings.scrollbarX,e=this.get("scrollbarX");e!==t&&(this._disposeProperty("scrollbarX"),t&&t.dispose(),e&&(e.parent||this.topAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarX",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.xAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarX",e.events.on("released",(()=>{this.xAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.xAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarX=e)}if(this.isDirty("scrollbarY")){const t=this._prevSettings.scrollbarY,e=this.get("scrollbarY");e!==t&&(this._disposeProperty("scrollbarY"),t&&t.dispose(),e&&(e.parent||this.rightAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarY",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.yAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarY",e.events.on("released",(()=>{this.yAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.yAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarY=e)}this._handleZoomOut()}_processSeries(t){super._processSeries(t);const e=t.get("xAxis"),i=t.get("yAxis");g.move(e.series,t),g.move(i.series,t),t._posXDp=t.addDisposer(e.events.on("positionchanged",(()=>{t._fixPosition()}))),t._posXDp=t.addDisposer(i.events.on("positionchanged",(()=>{t._fixPosition()}))),t.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?t.set("baseAxis",i):t.set("baseAxis",e)),t.get("stacked")&&(t._markDirtyKey("stacked"),g.each(t.dataItems,(t=>{t.set("stackToItemY",void 0),t.set("stackToItemX",void 0)}))),t._markDirtyAxes(),i.markDirtyExtremes(),e.markDirtyExtremes(),e._seriesAdded=!0,i._seriesAdded=!0,this._colorize(t)}_colorize(t){const e=this.get("colors");if(e&&null==t.get("fill")){const i=e.next();t._setSoft("stroke",i),t._setSoft("fill",i)}const i=this.get("patterns");if(i&&null==t.get("fillPattern")){const e=i.next();t._setSoft("fillPattern",e)}}_handleCursorSelectEnd(){const t=this.get("cursor"),e=t.get("behavior"),i=t.getPrivate("downPositionX",0),s=t.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,t.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,t.getPrivate("positionY",.5)));this.xAxes.each((t=>{if("zoomX"===e||"zoomXY"===e){let e=t.toAxisPosition(i),s=t.toAxisPosition(a);t.zoom(e,s)}t.setPrivate("updateScrollbar",!0)})),this.yAxes.each((t=>{if("zoomY"===e||"zoomXY"===e){let e=t.toAxisPosition(s),i=t.toAxisPosition(o);t.zoom(e,i)}t.setPrivate("updateScrollbar",!0)}))}_handleScrollbar(t,e,i,s){t.each((t=>{let a=t.fixPosition(e),o=t.fixPosition(i),n=t.zoom(a,o,void 0,s);const r="updateScrollbar";t.setPrivateRaw(r,!1),n?n.events.on("stopped",(()=>{t.setPrivateRaw(r,!0)})):t.setPrivateRaw(r,!0)}))}_processAxis(t,e){return t.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxis(t)}));else if("push"===t.type)e.children.push(t.newValue),t.newValue.processChart(this);else if("setIndex"===t.type)e.children.setIndex(t.index,t.newValue),t.newValue.processChart(this);else if("insertIndex"===t.type)e.children.insertIndex(t.index,t.newValue),t.newValue.processChart(this);else if("removeIndex"===t.type)this._removeAxis(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");e.children.moveValue(t.value,t.newIndex),t.value.processChart(this)}}))}_removeAxis(t){if(!t.isDisposed()){const e=t.parent;e&&e.children.removeValue(t);const i=t.gridContainer,s=i.parent;s&&s.children.removeValue(i);const a=t.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){const t=this.leftAxesContainer.width(),e=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",t),i.set("paddingRight",e);const s=this.topAxesContainer;s.set("paddingLeft",t),s.set("paddingRight",e)}processAxis(t){this.get("cursor")&&(this.addDisposer(t.on("start",(()=>{this._updateCursor()}))),this.addDisposer(t.on("end",(()=>{this._updateCursor()}))))}_handleAxisSelection(t,e){let i=t.fixPosition(t.get("start",0)),s=t.fixPosition(t.get("end",1));if(i>s&&([i,s]=[s,i]),-1!=this.xAxes.indexOf(t)){if(e||t.getPrivate("updateScrollbar")){let t=this.get("scrollbarX");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}}else if(-1!=this.yAxes.indexOf(t)&&(e||t.getPrivate("updateScrollbar"))){let t=this.get("scrollbarY");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let t=this.zoomOutButton;if(t&&t.parent){let e=!1;this.xAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),e?t.isHidden()&&t.show():t.hide()}}inPlot(t){const e=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=e.toGlobal(t);if(t.x>=-.5&&t.y>=-.5&&t.x<=e.width()+.5&&t.y<=e.height()+.5)return!0;if(i)for(let t=i.length-1;t>=0;t--){const e=i[t];if(e!=this){const t=e.plotContainer,i=this._root.rootPointToDocument(s),a=e._root.documentPointToRoot(i),o=t.toLocal(a);if(o.x>=-.1&&o.y>=-.1&&o.x<=t.width()+.1&&o.y<=t.height()+.1)return!0}}return!1}arrangeTooltips(){const t=this.plotContainer,e=t.width(),i=t.height();let s=this.height();const a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=t._display.toGlobal({x:0,y:0}),n=t._display.toGlobal({x:e,y:i});const r=[];let l,d,m=0,p=1/0,_=this._movePoint,x=this.get("maxTooltipDistance"),v=this.get("maxTooltipDistanceBy","xy");c.isNumber(x)&&this.series.each((t=>{if(!t.isHidden()){const e=t.get("tooltip");if(e){let i=e.get("pointTo");if(i){let e=Math.hypot(_.x-i.x,_.y-i.y);"x"==v?e=Math.abs(_.x-i.x):"y"==v&&(e=Math.abs(_.y-i.y)),e{const e=t.get("tooltip");if(e&&!e.get("forceHidden")){let i=!1,s=e.get("pointTo");if(s){if(x>=0){let s=e.get("pointTo");if(s&&d&&t!=l){let t=Math.hypot(d.x-s.x,d.y-s.y);"x"==v?t=Math.abs(d.x-s.x):"y"==v&&(t=Math.abs(d.y-s.y)),t>x&&(i=!0)}}else-1==x&&t!=l&&(i=!0);this.inPlot(this._tooltipToLocal(s))&&e.dataItem?i||(m+=s.y):i=!0,i||t.isHidden()||t.isHiding()?e.hide(0):(e.show(),r.push(e),y.push(t))}}})),this.setPrivate("tooltipSeries",y),this.get("arrangeTooltips")){let t=0,e=0;const a=this._root.tooltipContainer,l=r.length;if(m/l>i/2+o.y){r.sort(((t,e)=>u.HO(e.get("pointTo").y,t.get("pointTo").y)));let i=n.y;if(g.each(r,(s=>{let r=s.height();e++,t+=r;let l=s.get("centerY");l instanceof h.gG&&(r*=l.value),r+=s.get("marginBottom",0),s.set("bounds",{left:o.x,top:o.y,right:n.x,bottom:i}),s.setPrivate("customData",{left:o.x,top:o.y,right:n.x,bottom:i}),i=Math.min(i-r,s._fy-r),s.parent==a&&a.children.moveValue(s,0)})),i<0){r.reverse();let t=i;g.each(r,(s=>{e++;let a=s.get("bounds");if(a){let e=a.top-i,o=a.bottom-i;eu.HO(t.get("pointTo").y,e.get("pointTo").y)));let i=0;if(g.each(r,(r=>{e++;let l=r.height();t+=l;let d=r.get("centerY");d instanceof h.gG&&(l*=d.value),l+=r.get("marginBottom",0),r.set("bounds",{left:o.x,top:i,right:n.x,bottom:Math.max(o.y+s,i+l)}),r.parent==a&&a.children.moveValue(r,0),i=Math.max(i+l,r._fy+l)})),i>s){r.reverse();let t=s;g.each(r,(a=>{e++;let o=a.get("bounds");if(o){let e=o.top-(s-i),n=o.bottom-(s-i);n>t&&(n=t,e=n-a.height()),a.set("bounds",{left:o.left,top:e,right:o.right,bottom:n}),t=n-a.height()-a.get("marginBottom",0)}}))}}0==t&&e>0&&this._disposers.push(this.root.events.once("frameended",(()=>{this.arrangeTooltips()})))}}_tooltipToLocal(t){return this.plotContainer.toLocal(t)}zoomOut(){this.xAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))}))}_dispose(){super._dispose();const t=this.get("cursor");t&&t.dispose()}}x.className="XYChart",x.classNames=n.j.classNames.concat([x.className])},55:function(t,e,i){i.d(e,{l:function(){return u}});var s=i(3409),a=i(6245),o=i(1112),n=i(2754),r=i(3783),h=i(1926),l=i(5040),d=i(751),g=i(256),c=i(5071);class u extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.interfaceColors,e=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:n.U.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:o.Il.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:n.U.new(this._root,{saturation:0})});{const e=i("Graphics",["scrollbar","overlay"]);e.setAll({fillOpacity:.5}),(0,r.v)(e,"fill",t,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:a.AQ,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:a.AQ}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:a.AQ}),i("AxisLabel",["y"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const s=i("Grid",["cursor","x"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use left and right arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const s=i("Grid",["cursor","y"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use up and down arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const e=i("Graphics",["cursor","selection"]);e.setAll({fillOpacity:.15}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:a.CI,centerY:a.CI,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const e=i("AxisRenderer");e.setAll({crisp:!0,strokeOpacity:0}),(0,r.v)(e,"stroke",t,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:a.AQ}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:a.AQ});{const e=i("Rectangle",["axis","thumb","zoomgrip"]);e.setAll({fillOpacity:0}),(0,r.v)(e,"fill",t,"alternativeBackground"),e.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{const e=i("Grid");e.setAll({location:0,strokeOpacity:.15,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}{const e=i("Grid",["minor"]);e.setAll({location:0,strokeOpacity:.07,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{const e=i("Graphics",["axis","fill"]);e.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{const e=i("AxisTick");e.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),(0,r.v)(e,"stroke",t,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(t,e)=>{const i=t.get("axisFill");i&&(l.isNumber(e)&&e%2!=0?i.setPrivate("visible",!1):i.setPrivate("visible",!0))}});const s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],u={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_hour"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month"),year:e.translate("_date_year")},m={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_day"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month")+" "+e.translate("_date_year"),year:e.translate("_date_year")},p={millisecond:e.translate("_date_millisecond_full"),second:e.translate("_date_second_full"),minute:e.translate("_date_minute_full"),hour:e.translate("_date_hour_full"),day:e.translate("_date_day_full"),week:e.translate("_date_week_full"),month:e.translate("_date_month_full"),year:e.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m),tooltipDateFormats:p,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=t.get("endValue"),o=i.intervalDuration(),n=i.getPrivate("baseInterval"),r=i.getPrivate("gridInterval",n);let l=i.getPrivate("min",0);if(l=h.round(new Date(l),r.timeUnit,r.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),null!=s&&null!=a){const t=Math.round(Math.round((s-l)/o))/2;t==Math.round(t)?e.setPrivate("visible",!0):e.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.get("index");let s=!1;l.isNumber(i)&&i%2!=0||(s=!0),e.setPrivate("visible",s)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=i.getPrivate("step");l.isNumber(s)&&l.isNumber(a)&&(d.round(s/a/2,5)==Math.round(s/a/2)?e.setPrivate("visible",!1):e.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(70),height:(0,a.aQ)(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,e/2),t.lineTo(s,e/2)}}});{const e=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,e),t.lineTo(0,e),t.lineTo(0,0)}}});{const e=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(50),height:(0,a.aQ)(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:(0,a.aQ)(80),height:(0,a.aQ)(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const e=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const e=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const e=i("Graphics",["rangegrip","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(2,.5),t.lineTo(2,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),(0,r.v)(e,"stroke",t,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:a.CI}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:a.CI}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:a.AQ}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:a.AQ})}}},3355:function(t,e,i){i.d(e,{L:function(){return c}});var s=i(8777),a=i(6245),o=i(1479),n=i(8943),r=i(5040),h=i(7652),l=i(751),d=i(5071),g=i(256);class c extends s.W{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(n.r.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(n.r.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(o.T.new(this._root,{themeTags:["selection","cursor"],layer:30})),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:a.AQ,height:a.AQ,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout((()=>{this.setPrivate("visible",!0)}),500)),this._disposers.push(this.lineX.events.on("positionchanged",(()=>{this._handleXLine()}))),this._disposers.push(this.lineY.events.on("positionchanged",(()=>{this._handleYLine()}))),this._disposers.push(this.lineX.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineX.events.on("blur",(()=>this._handleLineBlur()))),this._disposers.push(this.lineY.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineY.events.on("blur",(()=>this._handleLineBlur()))),h.supports("keyboardevents")&&this._disposers.push(h.addEventListener(document,"keydown",(t=>{this._handleLineMove(h.getEventKey(t),t.ctrlKey)})))}_setUpTouch(){const t=this.chart;t&&(t.plotContainer._display.cancelTouch="none"!=this.get("behavior"))}_handleXLine(){let t=this.lineX.x(),e=!0;(t<0||t>this.width())&&(e=!1),this.lineX.setPrivate("visible",e)}_handleYLine(){let t=this.lineY.y(),e=!0;(t<0||t>this.height())&&(e=!1),this.lineY.setPrivate("visible",e)}_handleLineMove(t,e){let i="";const s=this.chart;let a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(e&&(o=5),a){let e,s=a.get("renderer").get("inversed",!1);"ArrowRight"==t||"ArrowDown"==t?e=1:"ArrowLeft"==t||"ArrowUp"==t?e=-1:"Tab"==t&&(e=0),null!=e&&(s&&(e*=-1),this.set(i,a.nextPosition(e*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const t=this.get("xAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipX=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateXLine(e)}))))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const t=this.get("yAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipY=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateYLine(e)}))))}}}_handleSyncWith(){const t=this.chart;if(t){const e=this.get("syncWith"),i=[];e&&d.each(e,(t=>{const e=t.chart;e&&i.push(e)})),t._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const t=this.get("positionX"),e=this.get("positionY");null==t&&null==e?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).x,3);this._toX!=e&&(this.lineX.animate({key:"x",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toX=e)}_updateYLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).y,3);this._toY!=e&&(this.lineY.animate({key:"y",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toY=e)}_drawLines(){this.lineX.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,this.height())})),this.lineY.set("draw",(t=>{t.moveTo(0,0),t.lineTo(this.width(),0)}))}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(t){this.chart=t,this._handleSyncWith();const e=t.plotContainer;this.events.on("boundschanged",(()=>{this._disposers.push(this.setTimeout((()=>{this.updateCursor()}),50))})),h.supports("touchevents")&&(this._disposers.push(e.events.on("click",(t=>{h.isTouchEvent(t.originalEvent)&&this._handleMove(t)}))),this._setUpTouch()),this._disposers.push(e.events.on("pointerdown",(t=>{this._handleCursorDown(t)}))),this._disposers.push(e.events.on("globalpointerup",(t=>{this._handleCursorUp(t),t.native||this.isHidden()||this._handleMove(t)}))),this._disposers.push(e.events.on("globalpointermove",(t=>{(this.get("syncWith")||0!=g.keys(e._downPoints).length||t.native||!this.isHidden())&&(this._handleMove(t),Math.hypot(this._lastPoint2.x-t.point.x,this._lastPoint2.y-t.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=t.point))})));const i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(t){const e=this.chart;return!!e&&e.inPlot(t)}_handleCursorDown(t){if(2==t.originalEvent.button)return;const e=t.point;let i=this._display.toLocal(e);const s=this.chart;if(this.selection.set("draw",(()=>{})),s&&this._inPlot(i)){if(this._downPoint=i,"none"!=this.get("behavior")){this.selection.show();const e="selectstarted";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}let e=this._getPosition(i).x,s=this._getPosition(i).y;this.setPrivate("downPositionX",e),this.setPrivate("downPositionY",s)}}_handleCursorUp(t){if(this._downPoint){const e=this.get("behavior","none");if("none"!=e){"z"===e.charAt(0)&&this.selection.hide();const i=t.point;let s=this._display.toLocal(i);const a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let i=!1;if("zoomX"!==e&&"zoomXY"!==e&&"selectX"!==e&&"selectXY"!==e||Math.abs(s.x-a.x)>o&&(i=!0),"zoomY"!==e&&"zoomXY"!==e&&"selectY"!==e&&"selectXY"!==e||Math.abs(s.y-a.y)>o&&(i=!0),i){const e="selectended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}else{const e="selectcancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}}}}this._downPoint=void 0}_handleMove(t){if(this.getPrivate("visible")){const e=this.chart;if(e&&g.keys(e.plotContainer._downPoints).length>1)return void this.set("forceHidden",!0);this.set("forceHidden",!1);const i=t.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,t.originalEvent)}}_getPosition(t){return{x:t.x/this.width(),y:t.y/this.height()}}handleMove(t,e,i){t||(t=this._movePoint);const s=this.get("alwaysShow");if(!t)return void this.hide(0);this._movePoint=t;let a=this._display.toLocal(t),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=t,this.isHidden()&&(this.show(),"z"==this.get("behavior","").charAt(0)&&this.selection.set("draw",(()=>{})));let n=a.x,h=a.y,l=this._getPosition(a);this.setPrivate("point",a);let d=this.get("snapToSeries");this._downPoint&&(d=void 0);let g=this.get("positionX"),c=l.x;r.isNumber(g)&&(c=g);let u=this.get("positionY"),m=l.y;r.isNumber(u)&&(m=u),this.setPrivate("positionX",c),this.setPrivate("positionY",m);const p=this._getPoint(c,m);if(n=p.x,h=p.y,o.xAxes.each((t=>{t._handleCursorPosition(c,d),s&&t.handleCursorShow()})),o.yAxes.each((t=>{t._handleCursorPosition(m,d),s&&t.handleCursorShow()})),!e){o._handleCursorPosition();const e="cursormoved";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,point:t,originalEvent:i})}this._updateLines(n,h),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);const t="cursorhidden";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this._downPoint&&"none"!=this.get("behavior")&&this._updateSelection(a)}_getPoint(t,e){return{x:this.width()*t,y:this.height()*e}}_updateLines(t,e){this._tooltipX||this.lineX.set("x",t),this._tooltipY||this.lineY.set("y",e),this._drawLines()}_updateSelection(t){const e=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();t.x<0&&(t.x=0),t.x>s&&(t.x=s),t.y<0&&(t.y=0),t.y>a&&(t.y=a),e.set("draw",(e=>{const o=this._downPoint;o&&("zoomXY"===i||"selectXY"===i?(e.moveTo(o.x,o.y),e.lineTo(o.x,t.y),e.lineTo(t.x,t.y),e.lineTo(t.x,o.y),e.lineTo(o.x,o.y)):"zoomX"===i||"selectX"===i?(e.moveTo(o.x,0),e.lineTo(o.x,a),e.lineTo(t.x,a),e.lineTo(t.x,0),e.lineTo(o.x,0)):"zoomY"!==i&&"selectY"!==i||(e.moveTo(0,o.y),e.lineTo(s,o.y),e.lineTo(s,t.y),e.lineTo(0,t.y),e.lineTo(0,o.y)))}))}_onHide(){if(this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorHide()})),t.yAxes.each((t=>{t.handleCursorHide()})),t.series.each((t=>{t.handleCursorHide()})))}super._onHide()}_onShow(){if(!this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorShow()})),t.yAxes.each((t=>{t.handleCursorShow()})))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}c.className="XYCursor",c.classNames=s.W.classNames.concat([c.className])},6515:function(t,e,i){i.d(e,{R:function(){return g}});var s=i(9361),a=i(8777),o=i(6245),n=i(7144),r=i(7142),h=i(5071),l=i(5040),d=i(7652);class g extends s.w{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(a.W.new(this._root,{})),this.gridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.topGridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.bulletsContainer=this.children.push(a.W.new(this._root,{isMeasured:!1,width:o.AQ,height:o.AQ,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new n.aV,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(a.W.new(this._root,{themeTags:["axis","header"],position:"absolute",background:r.A.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)h.each(t.oldValues,(t=>{t.dispose()}));else if("push"===t.type)this._processAxisRange(t.newValue,["range"]);else if("setIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("insertIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("removeIndex"===t.type)this.disposeDataItem(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value,["range"])}})));const t=this.get("renderer");t&&(t.axis=this,t.processAxis()),this.children.push(t),this._createGhostLabel()}_createGhostLabel(){const t=this.get("renderer").makeLabel(new s.z(this,void 0,{}),[]);t.adapters.disable("text"),t.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),t.events.disable(),this.ghostLabel=t}_updateFinals(t,e){}zoom(t,e,i,s){if(this.get("zoomable",!0))if(this._updateFinals(t,e),this.get("start")!==t||this.get("end")!=e){let a=this._sAnimation,o=this._eAnimation;t>e&&([t,e]=[e,t]);let n=this.get("maxDeviation",.5)*Math.min(1,e-t);t<-n&&(t=-n),e>1+n&&(e=1+n);let r=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),h=r;l.isNumber(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),1===e&&0!==t&&(s=tthis.get("end",1)?"end":"start");let d=this.get("minZoomCount",0);const g=this.dataItems;g&&g.lengthe&&([t,e]=[e,t]),"start"===s?(c>0&&1/(e-t)r&&(e=t+1/r),e>1&&e-t<1/r&&(t=e-1/r)):(c>0&&1/(e-t)r&&(t=e-1/r),t<0&&e-t<1/r&&(e=t+1/r)),1/(e-t)>r&&(e=t+1/r),1/(e-t)>r&&(t=e-1/r),null!=c&&null!=d&&t==this.get("start")&&e==this.get("end")){const t=this.chart;t&&t._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==t||this.get("start")==t)&&(o&&o.playing&&o.to==e||this.get("end")==e))return;if(i>0){let s,a,o=this.get("interpolationEasing");if(this.get("start")!=t&&(s=this.animate({key:"start",to:t,duration:i,easing:o})),this.get("end")!=e&&(a=this.animate({key:"end",to:e,duration:i,easing:o})),this._sAnimation=s,this._eAnimation=a,s)return s;if(a)return a}else this.set("start",t),this.set("end",e),this.root.events.once("frameended",(()=>{this.markDirtyKey("start")}))}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(t,e){t.setRaw("isRange",!0),this._createAssets(t,e),this._rangesDirty=!0,this._prepareDataItem(t);const i=t.get("above"),s=this.topGridContainer,a=t.get("grid");i&&a&&s.children.moveValue(a);const o=t.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(t,e){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each((t=>{this._prepareDataItem(t)})),h.each(this._seriesAxisRanges,(t=>{this._prepareDataItem(t)}))}_prepareChildren(){super._prepareChildren();const t=this.ghostLabel;if(t&&(this.get("fixAxisSize")?t.set("visible",!0):t.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){const t=this.chart;t&&t._updateCursor();let e=this.get("start",0),i=this.get("end",1),s=this.get("maxDeviation",.5)*Math.min(1,i-e);if(e<-s){let t=e+s;e=-s,this.setRaw("start",e),this.isDirty("end")&&this.setRaw("end",i-t)}if(i>1+s){let t=i-1-s;i=1+s,this.setRaw("end",i),this.isDirty("start")&&this.setRaw("start",e-t)}}const e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){const t=this.get("tooltip");if(t){const i=e.get("themeTags");t.addTag("axis"),t.addTag(this.className.toLowerCase()),t._applyThemes(),i&&(t.set("themeTags",d.mergeTags(t.get("themeTags"),i)),t.label._applyThemes())}}}_updateTooltipBounds(){const t=this.get("tooltip");t&&this.get("renderer").updateTooltipBounds(t)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(t){this.chart=t,this.get("renderer").chart=t,t.gridContainer.children.push(this.gridContainer),t.topGridContainer.children.push(this.topGridContainer),t.axisHeadersContainer.children.push(this.axisHeader),this.on("start",(()=>{t._handleAxisSelection(this)})),this.on("end",(()=>{t._handleAxisSelection(this)})),t.plotContainer.onPrivate("width",(()=>{this.markDirtySize()})),t.plotContainer.onPrivate("height",(()=>{this.markDirtySize()})),t.processAxis(this)}hideDataItem(t){return this._toggleFHDataItem(t,!0),super.hideDataItem(t)}showDataItem(t){return this._toggleFHDataItem(t,!1),super.showDataItem(t)}_toggleFHDataItem(t,e){const i="forceHidden",s=t.get("label");s&&s.set(i,e);const a=t.get("grid");a&&a.set(i,e);const o=t.get("tick");o&&o.set(i,e);const n=t.get("axisFill");n&&n.set(i,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.set(i,e)}}_toggleDataItem(t,e){const i=t.get("label"),s="visible";i&&i.setPrivate(s,e);const a=t.get("grid");a&&a.setPrivate(s,e);const o=t.get("tick");o&&o.setPrivate(s,e);const n=t.get("axisFill");n&&n.setPrivate(s,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.setPrivate(s,e)}}_createAssets(t,e,i){var s,a,o;const n=this.get("renderer");let r="minor";const h=t.get("label");if(h){let a=h.get("themeTags"),o=!1;i?-1==(null==a?void 0:a.indexOf(r))&&(o=!0):-1!=(null==a?void 0:a.indexOf(r))&&(o=!0),o&&(null===(s=h.parent)||void 0===s||s.children.removeValue(h),n.makeLabel(t,e),h.dispose(),n.labels.removeValue(h))}else n.makeLabel(t,e);const l=t.get("grid");if(l){let s=l.get("themeTags"),o=!1;i?-1==(null==s?void 0:s.indexOf(r))&&(o=!0):-1!=(null==s?void 0:s.indexOf(r))&&(o=!0),o&&(null===(a=l.parent)||void 0===a||a.children.removeValue(l),n.makeGrid(t,e),l.dispose(),n.grid.removeValue(l))}else n.makeGrid(t,e);const d=t.get("tick");if(d){let s=!1,a=d.get("themeTags");i?-1==(null==a?void 0:a.indexOf(r))&&(s=!0):-1!=(null==a?void 0:a.indexOf(r))&&(s=!0),s&&(null===(o=d.parent)||void 0===o||o.children.removeValue(d),n.makeTick(t,e),d.dispose(),n.ticks.removeValue(d))}else n.makeTick(t,e);i||t.get("axisFill")?i&&!t.get("axisFill")&&this.get("minorAxisFillsEnabled")&&n.makeAxisFill(t,e):n.makeAxisFill(t,e),this._processBullet(t)}_processBullet(t){let e=t.get("bullet"),i=this.get("bullet");if(e||!i||t.get("isRange")||(e=i(this._root,this,t)),e){e.axis=this;const i=e.get("sprite");i&&(i._setDataItem(t),t.setRaw("bullet",e),i.parent||this.bulletsContainer.children.push(i))}}_afterChanged(){super._afterChanged();const t=this.chart;t&&(t._updateChartLayout(),t.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(t){super.disposeDataItem(t);const e=this.get("renderer"),i=t.get("label");i&&(e.labels.removeValue(i),i.dispose());const s=t.get("tick");s&&(e.ticks.removeValue(s),s.dispose());const a=t.get("grid");a&&(e.grid.removeValue(a),a.dispose());const o=t.get("axisFill");o&&(e.axisFills.removeValue(o),o.dispose());const n=t.get("bullet");n&&n.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const t=this.ghostLabel;if(t){if(!t.isHidden()){const e=t.localBounds(),i=Math.ceil(e.right-e.left);let s=t.get("text");h.each(this.dataItems,(t=>{const e=t.get("label");if(e&&!e.isHidden()){const t=e.localBounds();Math.ceil(t.right-t.left)>i&&(s=e.text._getText())}})),t.set("text",s)}let e=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(t,e+.5*(i-e))}}_handleCursorPosition(t,e){t=this.get("renderer").toAxisPosition(t),this._cursorPosition=t,this._snapToSeries=e,this.updateTooltip()}updateTooltip(){const t=this._snapToSeries;let e=this._cursorPosition;const i=this.get("tooltip"),s=this.get("renderer");l.isNumber(e)&&(h.each(this.series,(i=>{if(i.get("baseAxis")===this){const s=this.getSeriesItem(i,e,this.get("tooltipLocation"));t&&-1!=t.indexOf(i)?(i.updateLegendMarker(s),i.updateLegendValue(s),i._settings.tooltipDataItem=s):(i.showDataItemTooltip(s),i.setRaw("tooltipDataItem",s))}})),this.get("snapTooltip")&&(e=this.roundAxisPosition(e,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",e),i&&(s.updateTooltipBounds(i),l.isNaN(e)?i.hide(0):(this._updateTooltipText(i,e),s.positionTooltip(i,e),ethis.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}roundAxisPosition(t,e){return t}_handleSeriesRemoved(){}handleCursorShow(){let t=this.get("tooltip");t&&t.show()}handleCursorHide(){let t=this.get("tooltip");t&&t.hide()}processSeriesDataItem(t,e){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(t){const e=this.get("renderer");return e.toAxisPosition(t/e.axisLength())}toAxisPosition(t){return this.get("renderer").toAxisPosition(t)}toGlobalPosition(t){return this.get("renderer").toGlobalPosition(t)}fixPosition(t){return this.get("renderer").fixPosition(t)}shouldGap(t,e,i,s){return!1}createAxisRange(t){return this.axisRanges.push(t)}_groupSeriesData(t){}getCellWidthPosition(){return.05}}g.className="Axis",g.classNames=s.w.classNames.concat([g.className])},2586:function(t,e,i){i.d(e,{_:function(){return o}});var s=i(6331),a=i(256);class o extends s.JH{_beforeChanged(){super._beforeChanged();const t=this.get("sprite");if(this.isDirty("sprite")&&t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t)),this.isDirty("location")){const e=t.dataItem;this.axis&&t&&e&&this.axis._prepareDataItem(e)}}_dispose(){const t=this.axis;t&&a.each(t._bullets,((e,i)=>{i.uid==this.uid&&delete t._bullets[e]})),super._dispose()}}o.className="AxisBullet",o.classNames=s.JH.classNames.concat([o.className])},6293:function(t,e,i){i.d(e,{k:function(){return a}});var s=i(962);class a extends s._{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabel",a.classNames=s._.classNames.concat([a.className])},9084:function(t,e,i){i.d(e,{p:function(){return a}});var s=i(815);class a extends s.x{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabelRadial",a.classNames=s.x.classNames.concat([a.className])},6275:function(t,e,i){i.d(e,{Y:function(){return d}});var s=i(1479),a=i(5769),o=i(7144),n=i(4714),r=i(8943),h=i(6293),l=i(7652);class d extends s.T{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new o.o(a.YS.new({}),(()=>n.T._new(this._root,{themeTags:l.mergeTags(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template])))),this.grid=this.addDisposer(new o.o(a.YS.new({}),(()=>r.r._new(this._root,{themeTags:l.mergeTags(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template])))),this.axisFills=this.addDisposer(new o.o(a.YS.new({}),(()=>s.T._new(this._root,{themeTags:l.mergeTags(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template])))),this.labels=this.addDisposer(new o.o(a.YS.new({}),(()=>h.k._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template]))))}makeTick(t,e){const i=this.ticks.make();return i._setDataItem(t),t.setRaw("tick",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(t,e){const i=this.grid.make();return i._setDataItem(t),t.setRaw("grid",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(t,e){const i=this.axisFills.make();return i._setDataItem(t),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),t.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(t,e){const i=this.labels.make();return i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),t.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(t),t.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const t=this.thumb;t&&(this._disposers.push(t.events.on("pointerdown",(t=>{this._handleThumbDown(t)}))),this._disposers.push(t.events.on("globalpointerup",(t=>{this._handleThumbUp(t)}))),this._disposers.push(t.events.on("globalpointermove",(t=>{this._handleThumbMove(t)}))))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",(()=>{this.axis.markDirtySize()}))}_changed(){if(super._changed(),this.isDirty("pan")){const t=this.thumb;if(t){const e=this.axis.labelsContainer,i=this.get("pan");"zoom"==i?e.children.push(t):"none"==i&&e.children.removeValue(t)}}}_handleThumbDown(t){this._thumbDownPoint=this.toLocal(t.point);const e=this.axis;this._downStart=e.get("start"),this._downEnd=e.get("end")}_handleThumbUp(t){this._thumbDownPoint=void 0}_handleThumbMove(t){const e=this._thumbDownPoint;if(e){const i=this.toLocal(t.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,e)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(t,e){return 0}positionToCoordinate(t){return this._inversed?(this._end-t)*this._axisLength:(t-this._start)*this._axisLength}updateTooltipBounds(t){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t*=i-e,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,t/(i-e)}fixPosition(t){return this.get("inversed")?1-t:t}_updateLC(){}toggleVisibility(t,e,i,s){let a=this.axis;const o=a.get("start",0),n=a.get("end",1);eo+(n-o)*(s+1e-4)?t.setPrivate("visible",!1):t.setPrivate("visible",!0)}_positionTooltip(t,e){const i=this.chart;i&&(t.set("pointTo",this._display.toGlobal(e)),i.inPlot(e)||t.hide())}processAxis(){}}d.className="AxisRenderer",d.classNames=s.T.classNames.concat([d.className])},6284:function(t,e,i){i.d(e,{n:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{width:a.AQ,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const t=this.grid.template;t.set("height",a.AQ),t.set("width",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)}))}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("x",-1e3));const s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){const i=this.chart,o=e.children;if(this.get(a)?e.addTag(a):e.removeTag(a),i){if(this.get(s)){const t=i.topAxesContainer.children;-1==t.indexOf(e)&&t.insertIndex(0,e),e.addTag(s),o.moveValue(this)}else{const t=i.bottomAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(s),o.moveValue(this,0)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(t,e){return(e.x-t.x)/this.width()}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,(t=t/(i-e)*this._lc)+this._ls}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerWidth();this._lc=this.axisLength()/i,this._ls=(t.x()-e.get("paddingLeft",0))/i}}_updatePositions(){const t=this.axis,e=t.x()-r.relativeToValue(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0);t.gridContainer.set("x",e),t.topGridContainer.set("x",e),t.bulletsContainer.set("y",this.y());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginLeft",0),o=t.x()-a;const n=t.parent;n&&(o-=n.get("paddingLeft",0)),s.children.length>0?(a=t.axisHeader.width(),t.set("marginLeft",a+1)):s.set("width",a),s.setAll({x:o,y:-1,height:e.height()+2})}}processAxis(){super.processAxis();const t=this.axis;null==t.get("width")&&t.set("width",a.AQ);const e=this._root.verticalLayout;t.set("layout",e),t.labelsContainer.set("width",a.AQ),t.axisHeader.setAll({layout:e})}axisLength(){return this.axis.width()}positionToPoint(t){return{x:this.positionToCoordinate(t),y:0}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e));let r=t.get("length",0);const h=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("y",a.AQ),h||(r*=-1)):(t.set("y",0),h&&(r*=-1)),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,r)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateLabel(t,e,i,s){if(t){let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(e)||(e=0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?r?(t.set("position","absolute"),t.set("y",0)):(t.set("position","relative"),t.set("y",a.AQ)):r?(t.set("y",0),t.set("position","absolute")):(t.set("y",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=-1;if(this.get("opposite")&&(h=1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("y",t.y()+t.height()*h)}else s.set("y",0);this.axis._bullets[o]=t,s.set("x",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.height(),a=this.width();ia||i<0||(t.moveTo(e,0),t.lineTo(i,0),t.lineTo(i,s),t.lineTo(e,s),t.lineTo(e,0))}))}positionTooltip(t,e){this._positionTooltip(t,{x:this.positionToCoordinate(e),y:0})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,n=this.axisLength(),h=i,l="up";this.get("opposite")?e?(l="up",o=s.y,h=i):(l="down",o=s.y-i,h=i):e?(l="down",o=s.y-i,h=i):(l="up",o=s.y,h=i);const d={left:a,right:a+n,top:o,bottom:o+h},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}}h.className="AxisRendererX",h.classNames=s.Y.classNames.concat([h.className])},7909:function(t,e,i){i.d(e,{j:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{height:a.AQ,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const t=this.grid.template;t.set("width",a.AQ),t.set("height",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())}))}_getPan(t,e){return(t.y-e.y)/this.height()}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("y",-1e3));const s=this.thumb,a="opposite",o="inside",n=this.chart;if(this.isDirty(a)||this.isDirty(o)){const i=e.children;if(this.get(o)?e.addTag(o):e.removeTag(o),n){if(this.get(a)){const t=n.rightAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e,0),e.addTag(a),i.moveValue(this,0)}else{const t=n.leftAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(a),i.moveValue(this)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}const r=e.labelsContainer.width();n&&(this.get(a)?s.set("centerX",0):s.set("centerX",r)),s.setPrivate("width",r)}processAxis(){super.processAxis();const t=this.axis;null==t.get("height")&&t.set("height",a.AQ);const e=this._root.horizontalLayout;t.set("layout",e),t.labelsContainer.set("height",a.AQ),t.axisHeader.set("layout",e)}_updatePositions(){const t=this.axis,e=t.y()-r.relativeToValue(t.get("centerY",0),t.height());t.gridContainer.set("y",e),t.topGridContainer.set("y",e),t.bulletsContainer.set("x",this.x());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginTop",0);s.children.length>0?(a=t.axisHeader.height(),t.set("marginTop",a+1)):s.set("height",a),s.setAll({y:t.y()-a,x:-1,width:e.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(t){return{x:0,y:this.positionToCoordinate(t)}}updateLabel(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a);const o=this.get("opposite"),r=t.get("inside",this.get("inside",!1));o?(t.set("x",0),r?t.set("position","absolute"):t.set("position","relative")):r?(t.set("x",0),t.set("position","absolute")):(t.set("x",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e));let o=t.get("length",0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("x",0),r&&(o*=-1)):r||(o*=-1),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(o,0)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=1;if(this.get("opposite")&&(h=-1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("x",t.x()+t.width()*h)}else s.set("x",0);this.axis._bullets[o]=t,s.set("y",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.width(),a=this.height();ia||i<0||(t.moveTo(0,e),t.lineTo(s,e),t.lineTo(s,i),t.lineTo(0,i),t.lineTo(0,e))}))}positionToCoordinate(t){return this._inversed?(t-this._start)*this._axisLength:(this._end-t)*this._axisLength}positionTooltip(t,e){this._positionTooltip(t,{x:0,y:this.positionToCoordinate(e)})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,n=this.axisLength(),h=i,l="right";this.get("opposite")?e?(l="right",o=s.x-i,h=i):(l="left",o=s.x,h=i):e?(l="left",o=s.x,h=i):(l="right",o=s.x-i,h=i);const d={left:o,right:o+h,top:a,bottom:a+n},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerHeight();this._lc=this.axisLength()/i,this._ls=t.y()/i}}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?e+t:i-t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t-=e:t=i-t,(t=t/(i-e)*this._lc)+this._ls}fixPosition(t){return this.get("inversed")?t:1-t}}h.className="AxisRendererY",h.classNames=s.Y.classNames.concat([h.className])},4714:function(t,e,i){i.d(e,{T:function(){return a}});var s=i(2438);class a extends s.d{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisTick",a.classNames=s.d.classNames.concat([a.className])},7497:function(t,e,i){i.d(e,{$:function(){return d}});var s=i(6515),a=i(2132),o=i(7261),n=i(5071),r=i(5040),h=i(751),l=i(7652);class d extends s.R{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();const t=this.dataItems.length;t>0&&this.setPrivateRaw("maxZoomFactor",t),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),t)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",t),1))}_prepareChildren(){super._prepareChildren();const t=this.dataItems.length;let e=0;this._valuesDirty&&(this._itemMap={},n.each(this.dataItems,(t=>{t.setRaw("index",e),this._itemMap[t.get("category")]=t,e++})),this.setPrivateRaw("maxZoomFactor",t));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){const t=this.dataItems.length;if(t>1){let e=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0);const n=this._sAnimation,r=this._eAnimation;let h=this.get("start",0),l=!1;n&&!n.stopped&&(h=Number(n.to),l=!0);let d=this.get("end",1);if(r&&!r.stopped&&(d=Number(r.to),l=!0),l){const t=this._getIndices(h,d);a=t.startIndex,o=t.endIndex}for(let t=a;t=i));s++);if(e=0&&(e+=this.dataItems[t].get("finalCellSize",1),a=t,!(e>=i));t--);this.zoomToIndexes(a,o)}else if(s>=e){let t=s;for(let i=o-1;i>=a;i--)if(t-=this.dataItems[i].get("finalCellSize",1),t<=e){o=i+1;break}this.zoomToIndexes(a,o)}}}_handleRangeChange(){n.each(this.series,(t=>{let e=this.dataItems[this.startIndex()].get("category"),i=this.dataItems[this.endIndex()-1].get("category"),s=t.get("baseAxis"),a=t.get("xAxis"),r=t.get("yAxis");if(a instanceof d&&r instanceof d)t._markDirtyAxes();else if(s===this){let h,l,g=r;if(a===s?(t.get("categoryXField")&&(h="categoryX"),t.get("openCategoryXField")&&(l="openCategoryX")):r===s&&(t.get("categoryYField")&&(h="categoryY"),t.get("openCategoryYField")&&(l="openCategoryY"),g=a),g instanceof o.m&&(h||l)){let c,u;function m(t,e,i,s,a,o){let n,r=e.categoryToIndex(a);for(;!n&&r>=0&&r=0;e--){let o=t.dataItems[e];if(i&&o.get(i)===a){n=o;break}if(s&&o.get(s)===a){n=o;break}}else for(let e=0,o=t.dataItems.length;e{null!=y.get(t)&&(x=!0)})),n.each(t.__valueYShowFields,(t=>{null!=y.get(t)&&(x=!0)})),x)break}t.setPrivate("outOfSelection",!x)}t._markDirtyAxes()}}))}_prepareAxisItems(){var t;const e=this.get("renderer"),i=this.dataItems.length;let s=this.startIndex();s>0&&s--;let a=this.endIndex();a=s&&(t=s-1,e=1),r.isNumber(e)||(e=.5),!r.isNumber(t))return 0;let o=this.get("startLocation",0),h=this.get("endLocation",1);if(this.get("cellSizeField")){let s=i?"finalCellSize":"cellSize";const r=this.dataItems;let l=0;n.each(this.dataItems,(t=>{l+=t.get(s,1)})),l-=o*r[0].get(s,1),l-=(1-h)*r[r.length-1].get(s,1);let d=0;for(let e=0;e{const e=t.get("cellSize",1);s.push(e),i+=e}));let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=t*i+a,h=0;for(let t=0;t0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(e),a=t.dataItems[s],o=this.dataItems[s],n=o.get("category");if(a&&o&&a.get(i)===n)return a;for(let e=0,s=t.dataItems.length;e{r+=t.get(o,1)})),r-=this.get("startLocation",0)*h[0].get(o,1),r-=(1-this.get("endLocation",1))*h[h.length-1].get(o,1);let l=0;for(let e=0;eMath.round(t*r)){s=e;break}for(let t=s+1;t=Math.round(e*r)){a=t+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(t,e,i){let s=this.dataItems.length;this.get("cellSizeField")?(t=Math.min(Math.max(t,0),s),e=Math.max(Math.min(e,s),1),this.setPrivateRaw("startIndex",t),this.setPrivateRaw("endIndex",e),this.zoom(this.indexToPosition(t,0,!0),this.indexToPosition(e,0,!0),i)):this.zoom(t/s,e/s,i)}zoomToCategories(t,e,i){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(t){null==t&&(t=1),"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);const e=this.getPrivate("tooltipPosition",0),i=h.fitToRange(this.axisPositionToIndex(e)+t,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}}d.className="CategoryAxis",d.classNames=s.R.classNames.concat([d.className])},5638:function(t,e,i){i.d(e,{S:function(){return c}});var s=i(9361),a=i(7261),o=i(5040),n=i(751),r=i(3540),h=i(5071),l=i(256),d=i(7652),g=i(1926);class c extends a.m{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=d.mergeTags(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",(()=>{this._setBaseInterval(this.get("baseInterval"))}))}_setBaseInterval(t){this.setPrivateRaw("baseInterval",t),this._baseDuration=g.getIntervalDuration(t)}_fixZoomFactor(){const t=this.get("maxZoomFactor");null!=t&&t!=1/0?this.setPrivateRaw("maxZoomFactor",t):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){this._fixZoomFactor();const t=this.getPrivate("groupInterval");if(t?this._setBaseInterval(t):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let t=this.get("groupInterval");t&&(this.setRaw("groupIntervals",[t]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))h.each(this.series,(t=>{this._groupSeriesData(t)})),this._handleRangeChange();else{let t=this.get("baseInterval"),e=t.timeUnit+t.count;h.each(this.series,(t=>{t.setDataSet(e),t.resetGrouping()})),this._setBaseInterval(t),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(t){if(this.get("groupData")&&!t.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let e=[],i=this.baseMainDuration(),a=this.get("groupIntervals");h.each(a,(t=>{g.getIntervalDuration(t)>i&&e.push(t)})),t._dataSets={};const n=this.getPrivate("name")+this.get("renderer").getPrivate("letter");let r;const d=t.get("baseAxis");t.get("xAxis")===d?r=t._valueYFields:t.get("yAxis")===d&&(r=t._valueXFields);let c=t._mainDataItems,u=this.get("baseInterval"),m=u.timeUnit+u.count;t._dataSets[m]=c;const p=t.get("groupDataCallback");let _=t.get("groupDataWithOriginals",!1);p&&(_=!0),h.each(e,(e=>{let i,a=-1/0,d=e.timeUnit+e.count;t._dataSets[d]=[];let u={},m={},x={},v={};h.each(r,(e=>{u[e]=0,m[e]=0,x[e]=t.get(e+"Grouped"),v[e]=e+"Working"}));let y,f,b=g.getDuration(e.timeUnit);c[0]&&(y=c[0].get(n)),h.each(c,(c=>{let D,P=c.get(n),w=g.roun(P,e.timeUnit,e.count,this._root,y);a{let e=c.get(t);o.isNumber(e)?(i.setRaw(t,e),i.setRaw(v[t],e),m[t]=1,u[t]=e):(u[t]=0,m[t]=0)})),_&&i.set("originals",[c]),p&&f&&p(f,e),f=i):(h.each(r,(t=>{let e=x[t],s=c.get(t);if(null!=s){let a=i.get(t);switch(e){case"close":i.setRaw(t,s);break;case"sum":i.setRaw(t,a+s);break;case"open":break;case"low":sa&&i.setRaw(t,s);break;case"average":m[t]++,u[t]+=s;let e=u[t]/m[t];i.setRaw(t,e);break;case"extreme":Math.abs(s)>Math.abs(a)&&i.setRaw(t,s)}i.setRaw(v[t],i.get(t));let o=l.copy(c.dataContext);o[n]=w,i.dataContext=o}})),_&&i.get("originals").push(c)),a=w})),p&&f&&p(f,e)})),t._dataSetId&&t.setDataSet(t._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",(()=>{this.markDirtySize()}))}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(t){let e=this.get("baseInterval"),i=g.chooseInterval(0,t,this.get("groupCount",1/0),this.get("groupIntervals"));return g.getIntervalDuration(i){e.get("baseAxis")===this&&e.setDataSet(t)})),this.markDirtyExtremes(),this._root.events.once("frameended",(()=>{this._root.events.once("frameended",(()=>{const t="groupintervalchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}))}))}}h.each(this.series,(i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),a=h.getFirstSortedIndex(i.dataItems,(e=>r.qu(e.get(s),t))).index;a>0&&(a-=1),e+=this._baseDuration*(1-this.get("endLocation",1));let o=h.getSortedIndex(i.dataItems,(t=>r.qu(t.get(s),e))).index,n=o;n>1&&n--;const l=i.dataItems[a],d=i.dataItems[n];let g,c;l&&(c=l.get(s)),d&&(g=d.get(s));let u=!1;null!=g&&null!=c&&(ge)&&(u=!0),i.setPrivate("outOfSelection",u),i.setPrivate("startIndex",a);let m=i._adjustStartIndex(a);i.getPrivate("adjustedStartIndex")!==m&&(i.setPrivate("adjustedStartIndex",m),this.root.events.once("frameended",(()=>{i._markDirtyPrivateKey("adjustedStartIndex")}))),i.setPrivate("endIndex",o)}}))}}_adjustMinMax(t,e,i,s){return{min:t,max:e,step:(e-t)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(t,e){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=t,this._intervalMax[s]=e}_getM(t){return"day"==t||"month"==t||"year"==t?1.05:1.01}_getMinorInterval(t){var e;let i,s=t.count,a=t.timeUnit;return s>1&&(10==s||15==s?s=5:12==s?s=2:6==s?s=1:30==s?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),"week"==a&&(i="week"!=(null===(e=this.getPrivate("baseInterval"))||void 0===e?void 0:e.timeUnit)?{timeUnit:"day",count:1}:{timeUnit:"week",count:1}),"year"==a&&1==s&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<1264896e5&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){const e=this._root,i=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),n=this.get("renderer"),r=this.getPrivate("baseInterval");let l=i,d=0;const c=this.get("gridIntervals");let u=g.chooseInterval(0,a-i,n.gridCount(),c);g.getIntervalDuration(u){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_updateFinals(t,e){this.setPrivateRaw("selectionMinFinal",this.positionToValue(t)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(e))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(t,e){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return g.getIntervalDuration(this.get("baseInterval"))}processSeriesDataItem(t,e){const i=this.getPrivate("baseInterval");t.open||(t.open={}),t.close||(t.close={}),h.each(e,(e=>{let s=t.get(e);if(o.isNumber(s)){let a=t.open[e],o=t.close[e];if(s>=a&&s<=o);else{const n=i.timeUnit,r=i.count;a=g.roun(s,n,r,this._root),o=a+g.getDuration(n,r*this._getM(n)),o=g.roun(o,n,1,this._root),t.open[e]=a,t.close[e]=o}this._updateDates(a,t.component)}}))}_handleSizeDirty(){}getDataItemPositionX(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}roundAxisPosition(t,e){let i=this.positionToValue(t);i-=(e-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!o.isNaN(i)){const t=this._root.locale.firstDayOfWeek,a=s.timeUnit,o=this._root.utc,n=this._root.timezone,r=s.count;i=g.roun(i,a,r,this._root,this.getPrivate("min",0));let h=g.getDateIntervalDuration(s,new Date(i),t,o,n);return n&&(i=g.roun(i+.05*this._baseDuration,a,r,this._root,this.getPrivate("min",0)),h=g.getDateIntervalDuration(s,new Date(i+h*e),t,o,n)),this.valueToPosition(i+h*e)}return NaN}getTooltipText(t,e){if(null!=this.getPrivate("min")){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(t);if(o.isNumber(s)){let t=new Date(s),a=this.getPrivate("baseInterval"),o=g.getDateIntervalDuration(a,t,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return!1!==e&&(t=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*o)),this._root.dateFormatter.format(t,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(t,e,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);null==i&&(i=.5),o-=(i-.5)*this._baseDuration;const n=h.getSortedIndex(t.dataItems,(t=>{let e=0;return t.open&&(e=t.open[a]),r.qu(e,o)}));if(s||t.get("snapTooltip")){let e=t.dataItems[n.index-1],i=t.dataItems[n.index];if(e&&i&&e.open&&i.close){let t=e.open[a],s=i.close[a];if(Math.abs(o-t)>Math.abs(o-s))return i}if(e)return e;if(i)return i}else{const e=t.dataItems[n.index-1];if(e&&e.open&&e.close){let t=e.open[a],i=e.close[a];if(o>=t&&o<=i)return e}}}shouldGap(t,e,i,s){const a=t.get(s);return e.get(s)-a>this._baseDuration*i}zoomToDates(t,e,i){this.zoomToValues(t.getTime(),e.getTime(),i)}zoomToValues(t,e,i){const s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(null!=this.getPrivate("min")&&null!=this.getPrivate("max"))if(this.get("groupData")){const s=this.getGroupInterval(e-t),a=this.get("baseInterval");let o=this.getIntervalMin(a),n=this.getIntervalMax(a)-1;n=g.roun(n,s.timeUnit,s.count,this.root),n+=this._getM(s.timeUnit)*g.getIntervalDuration(s),n=g.roun(n,s.timeUnit,s.count,this.root);let r=g.roun(o,s.timeUnit,s.count,this.root),h=g.roun(n,s.timeUnit,s.count,this.root),l=(t-r)/(h-r),d=(e-r)/(h-r);this.zoom(l,d,i)}else this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}positionToDate(t){return new Date(this.positionToValue(t))}dateToPosition(t){return this.valueToPosition(t.getTime())}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return o.isNumber(t)&&o.isNumber(e)?this._intervalDuration/(t-e):.05}nextPosition(t){null==t&&(t=1);let e=this.get("tooltipLocation",.5)*this._baseDuration;"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0));const s=this.getPrivate("baseInterval");let a=this._nextTime(i,t,s),o=this.getPrivate("selectionMin",0),r=this.getPrivate("selectionMax",0),h=g.roun(o,s.timeUnit,s.count,this._root),l=g.roun(r,s.timeUnit,s.count,this._root);return a+=e,a=n.fitToRange(a,h+e,l-e),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(t,e,i){return g.roun(t+e*this._baseDuration,i.timeUnit,i.count,this._root)}}c.className="DateAxis",c.classNames=a.m.classNames.concat([c.className])},7109:function(t,e,i){i.d(e,{L:function(){return a}});var s=i(6691);class a extends s.Y{constructor(){super(...arguments),this._tickPoints=[]}}a.className="EditableAxisLabel",a.classNames=s.Y.classNames.concat([a.className])},8701:function(t,e,i){i.d(e,{J:function(){return d}});var s=i(5638),a=i(9361),o=i(5071),n=i(3540),r=i(1926),h=i(5040),l=i(751);class d extends s.S{constructor(){super(...arguments),this._frequency=1,this._m=0,this._dates=[]}_afterNew(){this.valueFields.push("date"),this.addTag("gapless"),super._afterNew()}_getDates(){return this._customDates?this._customDates:this._dates}_updateDates(t,e){if(!e.get("ignoreMinMax")){const e=this._getDates(),i=o.getSortedIndex(e,(e=>n.qu(e,t)));i.found||o.insertIndex(e,i.index,t)}}_updateAllDates(){if(!this._customDates){const t=this._dates;t.length=0,o.each(this.series,(t=>{let e="valueX";t.get("yAxis")==this&&(e="valueY"),o.each(t.dataItems,(i=>{let s=i.get(e);h.isNumber(s)&&i.open&&this._updateDates(i.open[e],t)}))}));const e=this.get("extraMax",0),i=this.get("extraMin",0);let s=t.length;const a=this.getPrivate("baseInterval"),n=a.count,l=a.timeUnit;if(e>0){const i=s*e;let a=t[s-1];if(h.isNumber(a))for(let e=s-1;e0){const e=s*i;let a=t[0];if(h.isNumber(a))for(let i=0;in.qu(e,t)));let h=r.index;if(r.found)return(h-i)/a;{h>0&&(h-=1);let s=e[h];const o=e[h+1];if(o){let e=o;Math.abs(e-t)n.qu(e,t)));let s=i.index;return i.found||s>0&&(s-=1),s}positionToValue(t){const e=this.get("startLocation",0),i=this.get("endLocation",1),s=this._getDates();let a=Math.round(s.length-e-(1-i)),o=t*a,n=Math.floor(o);return n<0&&(n=0),n>a-1&&(n=a-1),s[n]+(o-n+e)*this._baseDuration}_fixZoomFactor(){this.setPrivateRaw("maxZoomFactor",this._getDates().length-this.get("startLocation",0)-(1-this.get("endLocation",1)))}zoomToDates(t,e,i){const s=this._getDates(),a=s.length;let r=o.getSortedIndex(s,(e=>n.qu(e,t.getTime()))),h=s[Math.min(r.index,a-1)];r=o.getSortedIndex(s,(t=>n.qu(t,e.getTime())));let l=s[r.index];r.index>=a&&(l=s[a-1]+this._baseDuration),this.zoomToValues(h,l,i)}zoomToValues(t,e,i){const s=this.getPrivate("min",0),a=this.getPrivate("max",0);t=l.fitToRange(t,s,a),e=l.fitToRange(e,s,a),this.zoom(this.valueToPosition(t),this.valueToPosition(e),i)}_prepareAxisItems(){let t=this.getPrivate("selectionMin",0),e=this.getPrivate("selectionMax",0);if(h.isNumber(t)&&h.isNumber(e)){this._seriesValuesDirty&&(this._seriesValuesDirty=!1,this._updateAllDates());const i=this._root,s=i.utc,n=i.timezone,l=this._getDates(),d=this.get("renderer"),g=l.length,c=this._baseDuration;let u=this.valueToIndex(t);u>0&&u--;let m=this.valueToIndex(e);m{this._toggleDataItem(t,!1)})),o.each(this.minorDataItems,(t=>{this._toggleDataItem(t,!1)}));let x=e-t-((e-t)/c-(m-u))*c,v=r.chooseInterval(0,x,p,this.get("gridIntervals"));const y=this.getPrivate("baseInterval");let f=r.getIntervalDuration(v);f0){let t=0;this._m=0;let e=w-10*f;const g=r.getNextUnit(b);if(I){let t=l[C[0]];this._addMinorGrid(t-f,t,k,I)}let c=d.axisLength()/d.gridCount()*.5;o.each(C,(o=>{var u;let m;this.dataItems.length1||"week"==v.timeUnit){let e=r.roun(p,t,1,i)+r.getDuration(t,this._getM(t)),s=this.valueToIndex(e);if(e=l[s],e==p){let t=l[s+1];t?e=t:e+=k}m.setRaw("labelEndValue",e)}w=1}if(this._prepareDataItem(m,w),P&&M&&"X"==d.getPrivate("letter")){let t=M.get("label");if(t&&P.x()-t.x(){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_pickWorse(t,e,i){const s=i.timeUnit,a=t.get("value",0),o=e.get("value",0);return"hour"==s&&new Date(a).getDate()!=new Date(o).getDate()?t:e}_addMinorGrid(t,e,i,s){const n=this.get("minorDateFormats",this.get("dateFormats")),h=s.timeUnit;let l=t+r.getDuration(h,this._getM(h));l=r.roun(l,h,1,this._root);let d=e-.5*i,g=this._getIndexes(l,d,s,l);const c=this._getDates();o.each(g,(t=>{let e;this.minorDataItems.length=x-2*_&&o.move(a,e),u=0),t+=p,t=r.roun(t,n,1,g);else{if(i=t){e=s;break}o.move(a,e),t+=_,t=r.roun(t,n,h,g)}if(t==m&&(t+=_+p,t=r.roun(t,n,h,g)),t==m)break;m=t}return a}_hasDate(t){return o.getSortedIndex(this._getDates(),(e=>n.HO(e,t))).found}_nextTime(t,e,i){let s=l.fitToRange(this.valueToIndex(t)+e,0,this._dates.length-1);return this._dates[s]}}d.className="GaplessDateAxis",d.classNames=s.S.classNames.concat([d.className])},8943:function(t,e,i){i.d(e,{r:function(){return a}});var s=i(1479);class a extends s.T{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}a.className="Grid",a.classNames=s.T.classNames.concat([a.className])},7261:function(t,e,i){i.d(e,{m:function(){return d}});var s=i(9361),a=i(6515),o=i(7449),n=i(5040),r=i(5071),h=i(751),l=i(7652);class d extends a.R{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var t;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let t=this.get("syncWithAxis");t&&(this._syncDp=new o.FV([t.onPrivate("selectionMinFinal",(()=>{this._dirtySelectionExtremes=!0})),t.onPrivate("selectionMaxFinal",(()=>{this._dirtySelectionExtremes=!0}))]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,null===(t=this.ghostLabel)||void 0===t||t.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){const t=this.chart;let e=!1;if(t){const i=this.get("renderer").getPrivate("letter");"Y"==i?t.xAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)})):"X"==i&&t.yAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)}))}e&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,this.getPrivate("selectionMinFinal")==this.getPrivate("selectionMin")&&this.getPrivate("selectionMaxFinal")==this.getPrivate("selectionMax")||(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(t){const e=this.get("numberFormat"),i=this.getNumberFormatter();let s="";return s=e?i.format(t,e):i.format(t,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(n.isNumber(t)&&n.isNumber(e)){const e=this.get("logarithmic"),i=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+i;let l=a-i,d=1,g=t;if(e){if(l=this._minLogAdjusted,l2&&(l=Math.pow(10,Math.log(g)*Math.LOG10E-50))}const c=this.get("renderer"),u=c.get("minorLabelsEnabled"),m=c.get("minorGridEnabled",u);let p=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));const _=Math.round(i/p);let x=2;h.round(_/5,10)%1==0&&(x=5),h.round(_/10,10)%1==0&&(x=10);let v=i/x,y=0,f=0,b=-1/0;const D=this.get("renderer").gridCount();for(;l2){const t=Math.max(1,D),e=Math.max(1,Math.ceil(d/t)),i=Math.log(g)*Math.LOG10E+(y+1)*e-50;o=Math.pow(10,i)}else o+=i;else o+=i;if(m){let t=l+v;for(e&&(d>2&&(v=this._adjustMinMax(l,o,10).step),t=l+v);t{t.inited&&t._markDirtyAxes()})),this._updateGhost()}}_prepareDataItem(t,e){let i=this.get("renderer"),s=t.get("value"),a=t.get("endValue"),o=this.valueToPosition(s),r=o,h=this.valueToPosition(s+this.getPrivate("step"));n.isNumber(a)&&(r=this.valueToPosition(a),h=r),t.get("isRange")&&null==a&&(h=o);let l=r,d=t.get("labelEndValue");null!=d&&(l=this.valueToPosition(d)),i.updateLabel(t.get("label"),o,l,e);const g=t.get("grid");if(i.updateGrid(g,o,r),g&&(s==this.get("baseValue",0)?(g.addTag("base"),g._applyThemes()):g.hasTag("base")&&(g.removeTag("base"),g._applyThemes())),i.updateTick(t.get("tick"),o,l,e),i.updateFill(t.get("axisFill"),o,h),this._processBullet(t),i.updateBullet(t.get("bullet"),o,r),!t.get("isRange")){const e=this.get("fillRule");e&&e(t)}}_handleRangeChange(){let t=this.positionToValue(this.get("start",0)),e=this.positionToValue(this.get("end",1));const i=this.get("renderer").gridCount();let s=this._adjustMinMax(t,e,i,!0),a=l.decimalPlaces(s.step);this.setPrivateRaw("stepDecimalPlaces",a),t=h.round(t,a),e=h.round(e,a),s=this._adjustMinMax(t,e,i,!0);let o=s.step;t=s.min,e=s.max,this.getPrivate("selectionMin")===t&&this.getPrivate("selectionMax")===e&&this.getPrivate("step")===o||(this.setPrivateRaw("selectionMin",t),this.setPrivateRaw("selectionMax",e),this.setPrivateRaw("step",o))}positionToValue(t){const e=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(t*(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)+Math.log(e)*Math.LOG10E)/Math.LOG10E):t*(i-e)+e}valueToPosition(t){const e=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}valueToFinalPosition(t){const e=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}getX(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getY(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionX(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemX")?a*s+t.component.getStackedXValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemY")?a*s+t.component.getStackedYValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const t=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),e=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let i=this.get("baseValue",0);return ie&&(i=e),i}cellEndValue(t){return t}fixSmallStep(t){return 1+t===1?(t*=2,this.fixSmallStep(t)):t}_fixMin(t){return t}_fixMax(t){return t}_calculateTotals(){if(this.get("calculateTotals")){let t=this.series[0];if(t){let e=t.startIndex();if(t.dataItems.length>0){e>0&&e--;let i,s,a=t.endIndex();a{if(!i.get("excludeFromTotal")){let r=i.dataItems[t];if(r){let t=r.get(o)*i.get(s);n.isNaN(t)||(e+=t,a+=Math.abs(t))}}})),r.each(this.series,(r=>{if(!r.get("excludeFromTotal")){let h=r.dataItems[t];if(h){let t=h.get(o)*r.get(s);if(!n.isNaN(t)){h.set(i+"Total",a),h.set(i+"Sum",e);let s=t/a*100;0==a&&(s=0),h.set(i+"TotalPercent",s)}}}}))}}}}}_getSelectionMinMax(){const t=this.getPrivate("minFinal"),e=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max");let a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2));const l=this.get("renderer").gridCount(),d=this.get("strictMinMaxSelection");let g=this.get("strictMinMax");if(n.isNumber(t)&&n.isNumber(e)){let c=e,u=t;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,i;const s=t.getPrivate("outOfSelection");if(t.get("xAxis")===this){if(!s){let s=t.getPrivate("minX"),a=t.getPrivate("maxX");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinX",s),i=t.getPrivate("selectionMaxX",a)}}else if(t.get("yAxis")===this&&!s){let s=t.getPrivate("minY"),a=t.getPrivate("maxY");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinY",s),i=t.getPrivate("selectionMaxY",a)}t.isHidden()||t.isShowing()||(n.isNumber(e)&&(c=Math.min(c,e)),n.isNumber(i)&&(u=Math.max(u,i)))}})),this.axisRanges.each((t=>{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(c=Math.min(c,e),u=Math.max(u,e)),e=t.get("endValue"),null!=e&&(c=Math.min(c,e),u=Math.max(u,e))}})),c>u&&([c,u]=[u,c]),n.isNumber(i)?c=g?i:t:g&&n.isNumber(this._minReal)&&(c=this._minReal),n.isNumber(s)?u=g?s:e:g&&n.isNumber(this._maxReal)&&(u=this._maxReal),c===u){let e=c;if(c-=this._deltaMinMax,u+=this._deltaMinMax,ce&&(x.max=e),c=x.min,u=x.max),g&&(n.isNumber(i)&&(c=Math.max(c,i)),n.isNumber(s)&&(u=Math.min(u,s))),d&&(c=m-(p-m)*a,u=p+(p-m)*o),g){c=n.isNumber(i)?i:m,u=n.isNumber(s)?s:p,u-c<=1e-8&&(c-=this._deltaMinMax,u+=this._deltaMinMax);let t=u-c;c-=t*a,u+=t*o}this.get("logarithmic")&&(c<=0&&(c=m*(1-Math.min(a,.99))),ce&&(u=e));let y=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),f=h.round(this.valueToFinalPosition(c),y),b=h.round(this.valueToFinalPosition(u),y);this.setPrivateRaw("selectionMinFinal",c),this.setPrivateRaw("selectionMaxFinal",u),this.setPrivateRaw("selectionStepFinal",x.step),this.zoom(f,b)}}_getMinMax(){let t=this.get("min"),e=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2)));let l=1/0;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,a;if(t.get("xAxis")===this?(e=t.getPrivate("minX"),a=t.getPrivate("maxX")):t.get("yAxis")===this&&(e=t.getPrivate("minY"),a=t.getPrivate("maxY")),n.isNumber(e)&&n.isNumber(a)){i=Math.min(i,e),s=Math.max(s,a);let t=a-e;t<=0&&(t=Math.abs(a/100)),t{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(i=Math.min(i,e),s=Math.max(s,e)),e=t.get("endValue"),null!=e&&(i=Math.min(i,e),s=Math.max(s,e))}})),this.get("logarithmic")){let t=this.get("treatZeroAs");n.isNumber(t)&&i<=0&&(i=t),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(0===i&&0===s&&(s=.9,i=-.9),n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e),i===1/0||s===-1/0)return this.setPrivate("minFinal",void 0),void this.setPrivate("maxFinal",void 0);i>s&&([i,s]=[s,i]);const d=i,g=s;let c=this.adapters.fold("min",i),u=this.adapters.fold("max",s);this._minRealLog=i,n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!=0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&d>=0&&(i=0),s>0&&g<=0&&(s=0)),this._minReal=i,this._maxReal=s;let m=this.get("strictMinMax"),p=this.get("strictMinMaxSelection",!1);p&&(m=p);let _=m;n.isNumber(e)&&(_=!0);let x=this.get("renderer").gridCount(),v=this._adjustMinMax(i,s,x,_);if(i=v.min,s=v.max,v=this._adjustMinMax(i,s,x,!0),i=v.min,s=v.max,m){i=n.isNumber(t)?t:this._minReal,s=n.isNumber(e)?e:this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let r=s-i;i-=r*a,s+=r*o}c=this.adapters.fold("min",i),u=this.adapters.fold("max",s),n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),l==1/0&&(l=s-i);let y=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=h.round(i,y),s=h.round(s,y);const f=this.get("syncWithAxis");if(f&&(v=this._syncAxes(i,s,v.step,f.getPrivate("minFinal",f.getPrivate("min",0)),f.getPrivate("maxFinal",f.getPrivate("max",1)),f.getPrivate("step",1)),i=v.min,s=v.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/l*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=d*(1-Math.min(a,.99)))),n.isNumber(i)&&n.isNumber(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);const t=this.get("interpolationDuration",0),e=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:t,easing:e}),this.animatePrivate({key:"max",to:s,duration:t,easing:e})}}_fixZoomFactor(){}_getDelta(t){let e=Math.log(Math.abs(t))*Math.LOG10E,i=Math.pow(10,Math.floor(e));i/=10,this._deltaMinMax=i}_saveMinMax(t,e){}_adjustMinMax(t,e,i,s){i<=1&&(i=1),i=Math.round(i);let a=t,o=e,r=e-t;0===r&&(r=Math.abs(e));let l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l));d/=10;let g=d;s&&(g=0),s?(t=Math.floor(t/d)*d,e=Math.ceil(e/d)*d):(t=Math.ceil(t/d)*d-g,e=Math.floor(e/d)*d+g),t<0&&a>=0&&(t=0),e>0&&o<=0&&(e=0),l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l)),d/=100;let c=Math.ceil(r/i/d)*d,u=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),m=Math.ceil(c/u);m>5?m=10:m<=5&&m>2&&(m=5),c=Math.ceil(c/(u*m))*u*m;let p=this.get("maxPrecision");if(n.isNumber(p)){let t=h.ceil(c,p);pa&&(t-=c),c=this.fixSmallStep(c),{min:t,max:e,step:c}}getTooltipText(t,e){const i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,n=h.round(this.positionToValue(t),o);return i?s.format(n,i):s.format(n,void 0,o)}getSeriesItem(t,e){let i,s,a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);if(r.each(t.dataItems,((t,e)=>{const n=Math.abs(t.get(a)-o);(void 0===i||n500&&(s=!0),s)t=n,e=h,i=d;else{a/3==Math.round(a/3)?(n=t-o*a,t>=0&&n<0&&(n=0)):(h=e+o*a,h<=0&&h>0&&(h=0));let i=this._adjustMinMax(n,h,l,!0);n=i.min,h=i.max,d=i.step}}}return{min:t,max:e,step:i}}_checkSync(t,e,i,s){let a=(e-t)/i;for(let t=1;t{if(t instanceof l){const e=t.get("stacked");e&&0==h&&n++,!e&&t.get("clustered")&&n++}t===this&&(o=n-1),h++})),this.get("clustered")||(o=0,n=1),0===n&&(n=1,o=0);const d="cellStartLocation",g="cellEndLocation",c=this._xRenderer.get(d,0),u=this._xRenderer.get(g,1),m=this._yRenderer.get(d,0),p=this._yRenderer.get(g,1);if(this._aLocationX0=c+o/n*(u-c),this._aLocationX1=c+(o+1)/n*(u-c),this._aLocationY0=m+o/n*(p-m),this._aLocationY1=m+(o+1)/n*(p-m),e.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){const t=this.dataItems.length;let a=Math.max(0,this.startIndex()-2),o=Math.min(this.endIndex()+2,t-1);for(let t=0;t0&&a>0)for(let e=t-1;e>=0;e--){let t=this.dataItems[e];if(null!=t.get("valueX")&&null!=t.get("valueY")){n=t;break}}break}this._toggleColumn(e,!1)}this._beforeColumnsDraw();let r=0;i.isType("CategoryAxis")&&e.isType("CategoryAxis")?r=2:e===s?r=0:i===s&&(r=1);for(let t=a;t<=o;t++){let e=this.dataItems[t];this._updateGraphics(e,n,r),null!=e.get("valueX")&&null!=e.get("valueY")&&(n=e)}this._afterColumnsDraw();for(let e=o+1;e{const a=e.get(s,this.get(s));t.set(s,a),i.set(s,a)}))}}let s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.dispose()})),s=[],t.setRaw("rangeGraphics",s),this.axisRanges.each((e=>{const i=e.container,a=this._makeGraphics(e.columns,t);s&&s.push(a),a.setPrivate("list",e.columns),i.children.push(a)}))}}createAxisRange(t){return r.each(this.dataItems,(t=>{const e=t.get("graphics");e&&(e.dispose(),t.set("graphics",void 0))})),super.createAxisRange(t)}_updateGraphics(t,e,i){let s=t.get("graphics");const a=this._xField,n=this._yField,l=t.get(a),d=t.get(n),g=this.get("exactLocationX",!1);if(null!=l&&null!=d){const l=this._xOpenField,d=this._yOpenField,c=this.get("locationX",t.get("locationX",.5)),u=this.get("locationY",t.get("locationY",.5)),m=this.get("openLocationX",t.get("openLocationX",c)),p=this.get("openLocationY",t.get("openLocationY",u)),_=s.get("width"),x=s.get("height"),v=this.get("stacked"),y=this.get("xAxis"),f=this.get("yAxis"),b=y.get("start"),D=y.get("end"),P=f.get("start"),w=f.get("end");let T,A,I,M,k=this.get("vcy",1),C=this.get("vcx",1),S=!1,Y=!1;if(0==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C,g),A=y.getDataItemPositionX(t,a,i,C,g),I=f.getDataItemPositionY(t,n,u,k),this._yOpenField!==this._yField)M=f.getDataItemPositionY(t,d,p,k);else if(v){let e=t.get("stackToItemY");M=e?f.getDataItemPositionY(e,n,p,e.component.get("vcy")):f.basePosition()}else M=f.basePosition();t.setRaw("point",{x:T+(A-T)/2,y:I}),Y=!0}else if(1==i){let e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5;if(x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}if(I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),A=y.getDataItemPositionX(t,a,c,C,g),this._xOpenField!==this._xField)T=y.getDataItemPositionX(t,l,m,C,g);else if(v){let e=t.get("stackToItemX");T=e?y.getDataItemPositionX(e,a,m,e.component.get("vcx"),g):y.basePosition()}else T=y.basePosition();S=!0,t.setRaw("point",{x:A,y:I+(M-I)/2})}else if(2==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C),A=y.getDataItemPositionX(t,a,i,C),e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5,x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),t.setRaw("point",{x:T+(A-T)/2,y:I+(M-I)/2})}this._applyGraphicsStates(t,e),this._updateSeriesGraphics(t,s,T,A,I,M,S,Y),TD&&A>D||I=w&&M>w||h.isNaN(T)||h.isNaN(I)?this._toggleColumn(t,!1):this._toggleColumn(t,!0);let F=t.get("rangeGraphics");F&&r.each(F,(e=>{this._updateSeriesGraphics(t,e,T,A,I,M,S,Y)}))}else this._toggleColumn(t,!1)}_updateSeriesGraphics(t,e,i,s,a,o,n,r){const l=e.get("width"),d=e.get("height"),g=e.get("maxWidth"),c=e.get("maxHeight"),u=this.getPoint(i,a),m=this.getPoint(s,o),p=t.get("point");if(p){const t=this.getPoint(p.x,p.y);p.x=t.x+this._x,p.y=t.y+this._y}if(i=u.x,s=m.x,a=u.y,o=m.y,h.isNumber(l)){const t=(s-i-l)/2;i+=t,s-=t}if(h.isNumber(g)&&g{this._toggleColumn(t,!1)}))}_applyGraphicsStates(t,e){const i=t.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),n=i.states.lookup("riseFromPrevious");if(s||o||a||n){const i=this.get("xAxis"),r=this.get("yAxis"),l=this.get("baseAxis");let d,g,c;l===i&&r.isType("ValueAxis")?(d=t.get(this._yOpenField),g=t.get(this._yField),c=e.get(this._yField)):l===r&&i.isType("ValueAxis")&&(d=t.get(this._xOpenField),g=t.get(this._xField),c=e.get(this._xField)),h.isNumber(d)&&h.isNumber(g)&&(g{const e=t.getPrivate("list");e&&e.removeValue(t),t.dispose()}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.hide(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.hide(e))})),yield Promise.all(s)}))}_toggleColumn(t,e){const i=t.get("graphics");i&&i.setPrivate("visible",e);const s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.setPrivate("visible",e)}));const a=t.bullets;a&&r.each(a,(t=>{t.setPrivate("hidden",!e)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.show(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.show(e))})),yield Promise.all(s)}))}updateLegendMarker(t){let e=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!t){const e=this.dataItems[this.endIndex()-1];e&&(t=e)}if(e){let i=this.columns.template;if(t){let e=t.get("graphics");e&&(i=e)}const s=e.get("markerRectangle");if(s&&!e.get("itemContainer").get("disabled")){const t=s.states.lookup("default");r.each(n.u,(e=>{const a=i.get(e,this.get(e));s.set(e,a),t.set(e,a)}))}}}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget"))return super._getTooltipTarget(t);return t.get("graphics")||this}}l.className="BaseColumnSeries",l.classNames=a.o.classNames.concat([l.className])},2976:function(t,e,i){i.d(e,{j:function(){return a}});var s=i(3497);class a extends s.c{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();const t=this._display;t.moveTo(this.get("lowX0",0),this.get("lowY0",0)),t.lineTo(this.get("lowX1",0),this.get("lowY1",0)),t.moveTo(this.get("highX0",0),this.get("highY0",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0))}}a.className="Candlestick",a.classNames=s.c.classNames.concat([a.className])},2312:function(t,e,i){i.d(e,{$:function(){return l}});var s=i(62),a=i(2976),o=i(5769),n=i(7144),r=i(7652),h=i(5071);class l extends s.d{constructor(){super(...arguments),this.columns=this.addDisposer(new n.o(o.YS.new({themeTags:["autocolor"]}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_updateGraphics(t,e,i){super._updateGraphics(t,e,i);const s=this.getRaw("xAxis"),a=this.getRaw("yAxis");let o,n,r,h,l,d,g,c,u,m=this.get("vcy",1),p=this.get("vcx",1),_=this.get("locationX",t.get("locationX",.5)),x=this.get("locationY",t.get("locationY",.5)),v=this.get("openLocationX",t.get("openLocationX",_)),y=this.get("openLocationY",t.get("openLocationY",x));if(0==i){let e=a.getDataItemPositionY(t,this._yOpenField,1,m),i=a.getDataItemPositionY(t,this._yField,1,m);h=a.getDataItemPositionY(t,this._yLowField,1,m),c=a.getDataItemPositionY(t,this._yHighField,1,m),g=Math.max(e,i),r=Math.min(e,i);let x=this._aLocationX0+v-.5,y=this._aLocationX1+_-.5;o=s.getDataItemPositionX(t,this._xField,x+(y-x)/2,p),n=o,l=o,d=o,u="vertical"}else{let e=s.getDataItemPositionX(t,this._xOpenField,1,p),i=s.getDataItemPositionX(t,this._xField,1,p);n=s.getDataItemPositionX(t,this._xLowField,1,p),d=s.getDataItemPositionX(t,this._xHighField,1,p),l=Math.max(e,i),o=Math.min(e,i);let _=this._aLocationY0+y-.5,v=this._aLocationY1+x-.5;r=a.getDataItemPositionY(t,this._yField,_+(v-_)/2,m),h=r,g=r,c=r,u="horizontal"}this._updateCandleGraphics(t,o,n,r,h,l,d,g,c,u)}_updateCandleGraphics(t,e,i,s,a,o,n,r,l,d){let g=t.get("graphics");if(g){let c=this.getPoint(e,s),u=this.getPoint(i,a),m=this.getPoint(o,r),p=this.getPoint(n,l);if(this.get("turboMode")){const t=this.allColumnsData[this.allColumnsData.length-1];t.lowX0=c.x,t.lowY0=c.y,t.lowX1=u.x,t.lowY1=u.y,t.highX0=m.x,t.highY0=m.y,t.highX1=p.x,t.highY1=p.y}else{let e=g.x(),i=g.y();g.set("lowX0",c.x-e),g.set("lowY0",c.y-i),g.set("lowX1",u.x-e),g.set("lowY1",u.y-i),g.set("highX0",m.x-e),g.set("highY0",m.y-i),g.set("highX1",p.x-e),g.set("highY1",p.y-i),g.set("orientation",d);let s=t.get("rangeGraphics");s&&h.each(s,(t=>{t.set("lowX0",c.x-e),t.set("lowY0",c.y-i),t.set("lowX1",u.x-e),t.set("lowY1",u.y-i),t.set("highX0",m.x-e),t.set("highY0",m.y-i),t.set("highX1",p.x-e),t.set("highY1",p.y-i),t.set("orientation",d)}))}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),h.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity,g=e.lowX0,c=e.lowY0,u=e.lowX1,m=e.lowY1,p=e.highX0,_=e.highY0,x=e.highX1,v=e.highY1;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.moveTo(g,c),t.lineTo(u,m),t.moveTo(p,_),t.lineTo(x,v),t.endStroke(),t.endFill()}))}))}_processAxisRange(t){super._processAxisRange(t),t.columns=new n.o(o.YS.new({}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(t.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,t.columns.template])))}}l.className="CandlestickSeries",l.classNames=s.d.classNames.concat([l.className])},62:function(t,e,i){i.d(e,{d:function(){return d}});var s=i(757),a=i(5769),o=i(7144),n=i(3497),r=i(1479),h=i(7652),l=i(5071);class d extends s.d{constructor(){super(...arguments),this.allColumns=this.children.push(r.T.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(t.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,t.columns.template])))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),l.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.endStroke(),t.endFill()}))}))}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(t,e,i,s,a,o,n,r){if(this.get("turboMode")){e.virtualParent=this.chart,e.parent&&(this.mainContainer.children.removeValue(e),e._parent=void 0);const n=e.get("stroke"),r=e.get("fillOpacity",1),h=e.get("strokeOpacity",1),l=e.get("strokeWidth",1),d=e.get("fill"),g=this.getPoint(i,a),c=this.getPoint(s,o),u=t.get("point");if(u){const t=this.getPoint(u.x,u.y);u.x=t.x+this._x,u.y=t.y+this._y}i=g.x,s=c.x,a=g.y,o=c.y,t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:n,fill:d,strokeWidth:l,strokeOpacity:h,fillOpacity:r})}else e.parent||this.mainContainer.children.push(e),super._updateSeriesGraphics(t,e,i,s,a,o,n,r)}}d.className="ColumnSeries",d.classNames=s.d.classNames.concat([d.className])},2338:function(t,e,i){i.d(e,{e:function(){return p}});var s=i(4604),a=i(1479),o=i(774),n=i(3794),r=i(5769),h=i(7144),l=i(1112),d=i(9361),g=i(7142),c=i(5040),u=i(5071),m=i(7652);class p extends s.o{constructor(){super(...arguments),this._strokeGenerator=(0,o.Z)(),this._fillGenerator=(0,n.Z)(),this.strokes=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template])))),this.fills=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template])))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0((function(t){return t[3]})),this._fillGenerator.x0((function(t){return t[2]})),this._fillGenerator.y1((function(t){return t[1]})),this._fillGenerator.x1((function(t){return t[0]})),super._afterNew()}makeStroke(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}makeFill(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let t=this.get("xAxis"),e=this.get("yAxis");if(this.isDirty("stroke")){const t=this.get("stroke");this.strokes.template.set("stroke",t);const e=this._legendStroke;e&&e.states.lookup("default").set("stroke",t)}if(this.isDirty("fill")){const t=this.get("fill");this.fills.template.set("fill",t);const e=this._legendFill;e&&e.states.lookup("default").set("fill",t)}if(this.isDirty("fillPattern")){const t=this.get("fillPattern");this.fills.template.set("fillPattern",t);const e=this._legendFill;e&&e.states.lookup("default").set("fillPattern",t)}if(this.isDirty("curveFactory")){const t=this.get("curveFactory");t&&(this._strokeGenerator.curve(t),this._fillGenerator.curve(t))}if(t.inited&&e.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){const t=this.dataItems;this.fills.each((t=>{t.setPrivate("visible",!1)})),this.strokes.each((t=>{t.setPrivate("visible",!1)})),this.axisRanges.each((t=>{let e=t.fills;e&&e.each((t=>{t.setPrivate("visible",!1)}));let i=t.strokes;i&&i.each((t=>{t.setPrivate("visible",!1)}))}));let e=this.startIndex(),i=this.strokes.template.get("templateField"),s=this.fills.template.get("templateField"),a=!0,o=!0;i&&(a=!1),s&&(o=!1);for(let n=e-1;n>=0;n--){let r=t[n],h=!0,l=r.dataContext;if(i&&l[i]&&(a=!0),s&&l[s]&&(o=!0),u.each(this._valueFields,(t=>{c.isNumber(r.get(t))||(h=!1)})),h&&a&&o){e=n;break}}let n=t.length,r=this.endIndex();if(r{c.isNumber(i.get(t))||(s=!1)})),s){r=e+1;break}}}if(e>0&&e--,this._endIndex=r,this._clearGraphics(),this._sindex=0,this._dindex=e,1==n)this._startSegment(0);else for(;this._dindex{t.fills.clear(),t.strokes.clear()}))}_startSegment(t){const e=this.dataItems;let i=this._endIndex,s=i;const a=this.get("autoGapCount"),o=this.get("connect"),n=this.makeFill(this.fills),h=this._fillTemplate,l=this.fills.template;h&&h!=l&&(n.template=h),n.setPrivate("visible",!0);const d=this.makeStroke(this.strokes),g=this._strokeTemplate;g&&g!=this.strokes.template&&(d.template=g),d.setPrivate("visible",!0);let c=this.get("xAxis"),u=this.get("yAxis"),m=this.get("baseAxis"),p=this.get("vcx",1),_=this.get("vcy",1),x=this._xField,v=this._yField,y=this._xOpenField,f=this._yOpenField;const b=this.get("openValueXField"),D=this.get("openValueYField");b||(y=this._xField),D||(f=this._yField);const P=this.get("stacked"),w=c.basePosition(),T=u.basePosition();let A;A=m===u?this._yField:this._xField;const I=[];let M=[];I.push(M);const k=this.strokes.template.get("templateField"),C=this.fills.template.get("templateField");let S=this.get("locationX",.5),Y=this.get("locationY",.5),F=this.get("openLocationX",S),X=this.get("openLocationY",Y);const L=this.get("minDistance",0);let N,R=this.fills.template.get("visible");this.axisRanges.length>0&&(R=!0);let V=!1;(P||b||D)&&(V=!0);const G={points:M,segments:I,stacked:P,getOpen:V,basePosX:w,basePosY:T,fillVisible:R,xField:x,yField:v,xOpenField:y,yOpenField:f,vcx:p,vcy:_,baseAxis:m,xAxis:c,yAxis:u,locationX:S,locationY:Y,openLocationX:F,openLocationY:X,minDistance:L};let O=this._strokeTemplate,E=this._fillTemplate;for(N=t;Nt){s=N;break}O=e,d.template=e}}if(C){let e=i.dataContext[C];if(e){if(e instanceof r.YS||(e=r.YS.new(e)),this._fillTemplate=e,N>t){s=N;break}E=e,n.template=e}}if(!o){let t=e[N+1];t&&m.shouldGap(i,t,a,A)&&(M=[],I.push(M),G.points=M)}}n.setRaw("userData",[t,N]),d.setRaw("userData",[t,N]),N===i&&this._endLine(M,I[0][0]),d&&this._drawStroke(d,I),n&&this._drawFill(n,I),this.axisRanges.each((e=>{const i=e.container,s=e.fills,a=this.makeFill(s);i&&i.children.push(a),a.setPrivate("visible",!0),this._drawFill(a,I);const o=e.strokes,n=this.makeStroke(o);i&&i.children.push(n),O&&O!=this.strokes.template&&(n.template=O),E&&E!=this.fills.template&&(a.template=E),n.setPrivate("visible",!0),this._drawStroke(n,I),a.setRaw("userData",[t,N]),n.setRaw("userData",[t,N])}))}_getPoints(t,e){let i=e.points,s=t.get("locationX",e.locationX),a=t.get("locationY",e.locationY);const o=this.get("exactLocationX",!1),n=this.get("exactLocationY",!1);let r=e.xAxis.getDataItemPositionX(t,e.xField,s,e.vcx,o),h=e.yAxis.getDataItemPositionY(t,e.yField,a,e.vcy,n);if(this._shouldInclude(r)){const s=this.getPoint(r,h),a=[s.x,s.y];if(s.x+=this._x,s.y+=this._y,t.set("point",s),e.fillVisible){let i=r,s=h;if(e.baseAxis===e.xAxis?s=e.basePosY:e.baseAxis===e.yAxis&&(i=e.basePosX),e.getOpen){let a=t.get(e.xOpenField),r=t.get(e.yOpenField);if(null!=a&&null!=r){let a=t.get("openLocationX",e.openLocationX),r=t.get("openLocationY",e.openLocationY);if(e.stacked){let h=t.get("stackToItemX"),l=t.get("stackToItemY");h?(i=e.xAxis.getDataItemPositionX(h,e.xField,a,h.component.get("vcx"),o),c.isNaN(i)&&(i=e.basePosX)):i=e.yAxis===e.baseAxis?e.basePosX:e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),l?(s=e.yAxis.getDataItemPositionY(l,e.yField,r,l.component.get("vcy"),n),c.isNaN(s)&&(s=e.basePosY)):s=e.xAxis===e.baseAxis?e.basePosY:e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),s=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}}let l=this.getPoint(i,s);a[2]=l.x,a[3]=l.y}if(e.minDistance>0){const t=a[0],s=a[1],o=a[2],n=a[3],r=this._previousPoint,h=r[0],l=r[1],d=r[2],g=r[3];(Math.hypot(t-h,s-l)>e.minDistance||o&&n&&Math.hypot(o-d,n-g)>e.minDistance)&&(i.push(a),this._previousPoint=a)}else i.push(a)}}_endLine(t,e){}_drawStroke(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._strokeGenerator.context(t),this._strokeGenerator(e)}))}))}_drawFill(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._fillGenerator.context(t),this._fillGenerator(e)}))}))}_processAxisRange(t){super._processAxisRange(t),t.fills=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,t.fills.template]))),t.strokes=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,t.strokes.template])))}createLegendMarker(t){const e=this.get("legendDataItem");if(e){const t=e.get("marker"),i=e.get("markerRectangle");i&&i.setPrivate("visible",!1),t.set("background",g.A.new(t._root,{fillOpacity:0,fill:(0,l.$_)(0)}));const s=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=s;const o=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;const n=this._root.interfaceColors.get("disabled");if(s.states.create("disabled",{fill:n,stroke:n}),o.states.create("disabled",{fill:n,stroke:n}),this.bullets.length>0){const e=this.bullets.getIndex(0);if(e){const i=e(t._root,this,new d.z(this,{legend:!0},{}));if(i){const e=i.get("sprite");e instanceof a.T&&e.states.create("disabled",{fill:n,stroke:n}),e&&(e.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),t.children.push(e),e.setAll({x:t.width()/2,y:t.height()/2}),t.events.on("boundschanged",(()=>{e.setAll({x:t.width()/2,y:t.height()/2})})))}}}}}}p.className="LineSeries",p.classNames=s.o.classNames.concat([p.className])},4604:function(t,e,i){i.d(e,{o:function(){return u}});var s=i(7582),a=i(9361),o=i(3399),n=i(7144),r=i(8777),h=i(1479),l=i(5040),d=i(256),g=i(5071),c=i(7652);class u extends o.F{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(r.W.new(this._root,{})),this.axisRanges=new n.aV,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new a.z(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");const t=this.get("xAxis");t&&(this._xRenderer=t.get("renderer"));const e=this.get("yAxis");e&&(this._yRenderer=e.get("renderer")),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxisRange(t)}));else if("push"===t.type)this._processAxisRange(t.newValue);else if("setIndex"===t.type)this._processAxisRange(t.newValue);else if("insertIndex"===t.type)this._processAxisRange(t.newValue);else if("removeIndex"===t.type)this._removeAxisRange(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value)}}))),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this.onPrivate("endIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this._makeFieldNames()}_processAxisRange(t){const e=r.W.new(this._root,{});t.container=e,this.children.push(e),t.series=this;const i=t.axisDataItem;i.setRaw("isRange",!0);const s=i.component;if(s){s._processAxisRange(i,["range","series"]);const t=i.get("bullet");if(t){const e=t.get("sprite");e&&e.setPrivate("visible",!1)}const a=i.get("axisFill");a&&e.set("mask",a),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),d.each(this._dataSets,((t,e)=>{g.each(e,(t=>{t.dispose()})),e.length=0}))}_removeAxisRange(t){const e=t.axisDataItem,i=e.component;e.dispose(),g.remove(i._seriesAxisRanges,e);const s=t.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&g.each(this.valueXFields,(t=>{if(this.get(t+"Field")){this._valueXFields.push(t);let e=this.get(t+"Show");this.__valueXShowFields.push(e),-1!=e.indexOf("Working")?this._valueXShowFields.push(e.split("Working")[0]):this._valueXShowFields.push(e)}})),this.valueYFields&&g.each(this.valueYFields,(t=>{if(this.get(t+"Field")){this._valueYFields.push(t);let e=this.get(t+"Show");this.__valueYShowFields.push(e),-1!=e.indexOf("Working")?this._valueYShowFields.push(e.split("Working")[0]):this._valueYShowFields.push(e)}}))}_dispose(){super._dispose(),this._bullets={};const t=this.chart;t&&t.series.removeValue(this),g.removeFirst(this.get("xAxis").series,this),g.removeFirst(this.get("yAxis").series,this)}_min(t,e){let i=(a=e,null==(s=this.getPrivate(t))?a:null==a?s:aa?s:a);var s,a;this.setPrivate(t,i)}_shouldMakeBullet(t){const e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!e.inited||!i.inited)return!1;const a=this.get("minBulletDistance",0);if(a>0){let t=this.startIndex(),o=this.endIndex()-t;if(e==s){if(this._xRenderer.axisLength()/o{g.each(this._valueXShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedXValue(i,t)),this._min("minX",e),this._max("maxX",e))})),g.each(this._valueYShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedYValue(i,t)),this._min("minY",e),this._max("maxY",e))})),t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)})),t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&t.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&e.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(t._groupSeriesData(this),e._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let s=this.startIndex(),a=this.endIndex(),o=this.get("minBulletDistance",0);if(o>0&&i&&(i.get("renderer").axisLength()/(a-s)>o?this._showBullets=!0:this._showBullets=!1),(this._psi!=s||this._pei!=a||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const o=this.get("vcx",1),n=this.get("vcy",1),r=this.get("stacked",!1),h=this.getPrivate("outOfSelection");if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),h)e.markDirtySelectionExtremes();else for(let t=s;t{i.open=void 0,i.close=void 0,t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)}))}_makeRangeMask(){if(this.axisRanges.length>0){let t=this._mainContainerMask;null==t&&(t=this.children.push(h.T.new(this._root,{})),this._mainContainerMask=t,t.set("draw",((e,i)=>{const s=this.parent;if(s){const t=this._root.container.width(),a=this._root.container.height();e.moveTo(-t,-a),e.lineTo(-t,2*a),e.lineTo(2*t,2*a),e.lineTo(2*t,-a),e.lineTo(-t,-a),this.axisRanges.each((t=>{const a=t.axisDataItem.get("axisFill");if(s&&a){let t=a.get("draw");t&&t(e,i)}}))}this.mainContainer._display.mask=t._display}))),t.markDirty(),t._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const t=this.chart;if(t){const e=t.series.indexOf(this);if(this._couldStackTo=[],e>0){let i;for(let s=e-1;s>=0&&(i=t.series.getIndex(s),i.get("xAxis")!==this.get("xAxis")||i.get("yAxis")!==this.get("yAxis")||i.className!==this.className||(this._couldStackTo.push(i),i.get("stacked")));s--);}this._stackDataItems()}}_unstack(){d.each(this._reallyStackedTo,((t,e)=>{delete e._stackedSeries[this.uid]})),this._reallyStackedTo={},g.each(this.dataItems,(t=>{t.setRaw("stackToItemY",void 0),t.setRaw("stackToItemX",void 0)}))}_handleRemoved(){const t=this.get("xAxis");t&&t._handleSeriesRemoved();const e=this.get("yAxis");e&&e._handleSeriesRemoved()}_stackDataItems(){const t=this.get("baseAxis"),e=this.get("xAxis"),i=this.get("yAxis");let s,a;t===e?(s="valueY",a="stackToItemY"):t===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,n=0;const r=this.get("stackToNegative");this._reallyStackedTo={},g.each(this.dataItems,(t=>{for(let e=0;e=0&&n>=0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}if(d<0&&n<0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}else if(l.isNumber(d)&&l.isNumber(n)){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}n++}))}processXSelectionDataItem(t,e,i){g.each(this.__valueXShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedXValueWorking(t,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*e))}))}processYSelectionDataItem(t,e,i){g.each(this.__valueYShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedYValueWorking(t,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*e))}))}getStackedYValueWorking(t,e){const i=t.get("stackToItemY");if(i){const t=i.component;return i.get(e,0)*t.get("vcy",1)+this.getStackedYValueWorking(i,e)}return 0}getStackedXValueWorking(t,e){const i=t.get("stackToItemX");if(i){const t=i.component;return i.get(e,0)*t.get("vcx",1)+this.getStackedXValueWorking(i,e)}return 0}getStackedYValue(t,e){const i=t.get("stackToItemY");return i?i.get(e,0)+this.getStackedYValue(i,e):0}getStackedXValue(t,e){const i=t.get("stackToItemX");return i?i.get(e,0)+this.getStackedXValue(i,e):0}createLegendMarker(t){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(t){let e=t.get("sprite");if(e){let i=e.dataItem,s=t.get("locationX",i.get("locationX",.5)),a=t.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),n=this.get("yAxis"),r=this.get("exactLocationX",!1),h=this.get("exactLocationY",!1),l=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),r),d=n.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),h),g=this.getPoint(l,d),c=i.get("left",g.x),u=i.get("right",g.x),m=i.get("top",g.y),p=i.get("bottom",g.y),_=0,x=0,v=u-c,y=p-m;if(this._shouldShowBullet(l,d)){e.setPrivate("visible",!t.getPrivate("hidden"));let o=t.get("field");const n=this.get("baseAxis"),u=this.get("xAxis"),m=this.get("yAxis");if(null!=o){let t;n==u?("value"==o?t=this._yField:"open"==o?t=this._yOpenField:"high"==o?t=this._yHighField:"low"==o&&(t=this._yLowField),t&&(d=m.getDataItemPositionY(i,t,0,this.get("vcy",1),h),g=this._yRenderer.positionToPoint(d),x=g.y,_=c+v*s)):("value"==o?t=this._xField:"open"==o?t=this._xOpenField:"high"==o?t=this._xHighField:"low"==o&&(t=this._xLowField),t&&(l=u.getDataItemPositionX(i,t,0,this.get("vcx",1),r),g=this._xRenderer.positionToPoint(l),_=g.x,x=p-y*a))}else _=c+v*s,x=p-y*a;const f=t.get("stacked");if(f){const t=this.chart;if(n==u){let i=this._bullets[l+"_"+d];if(i){let s=i.bounds(),a=e.localBounds(),o=x;x=s.top,"down"==f?x=s.bottom-a.top:"auto"==f?t&&(o{e!=this._mainDataItems&&g.each(e,(t=>{t.dispose()}))})),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){g.each(this._dataItems,(t=>{let e=t.bullets;e&&g.each(e,(t=>{if(t){let e=t.get("sprite");e&&e.setPrivate("visible",!1)}}))})),this._selectionProcessed=!1}show(t){const e=Object.create(null,{show:{get:()=>super.show}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.show.call(this,t).then((()=>{this._isShowing=!1;let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis");e!==i&&e.markDirtySelectionExtremes(),t!==i&&t.markDirtySelectionExtremes()}))),i.push(this.bulletsContainer.show(t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)}))}hide(t){const e=Object.create(null,{hide:{get:()=>super.hide}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.hide.call(this,t).then((()=>{this._isHiding=!1}))),i.push(this.bulletsContainer.hide(t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)];l.isNumber(e)||(e=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");g.each(this._valueFields,(i=>{s.push(t.animate({key:i+"Working",to:t.get(i),duration:e,easing:a}).waitForStop())})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)];let a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),l.isNumber(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),n=this.get("xAxis"),r=this.get("yAxis"),h=this.get("baseAxis"),d=this.get("stacked");if(h!==n&&h||g.each(this._valueYFields,(i=>{let a=r.getPrivate("min"),n=r.baseValue();l.isNumber(a)&&a>n&&(n=a),d&&(n=0),null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:n,duration:e,easing:o}).waitForStop())})),h===r||!h){let i=n.getPrivate("min"),a=n.baseValue();l.isNumber(i)&&i>a&&(a=i),d&&(a=0),g.each(this._valueXFields,(i=>{null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:a,duration:e,easing:o}).waitForStop())}))}yield Promise.all(s)}))}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const t=this._stackedSeries;t&&d.each(t,((t,e)=>{e._stackDirty||e._markDirtyStack()}))}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(t){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(t),this.updateLegendValue(t));const e=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(e)if(!this.isHidden()&&this.get("visible")){if(e._setDataItem(t),t){let a=this.get("locationX",0),o=this.get("locationY",1),n=t.get("locationX",a),r=t.get("locationY",o);const h=this.get("xAxis"),l=this.get("yAxis"),d=this.get("vcx",1),c=this.get("vcy",1),u=h.getDataItemPositionX(t,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*n,d,i),m=l.getDataItemPositionY(t,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*r,c,s),p=this.getPoint(u,m);let _=!0;if(g.each(this._valueFields,(e=>{null==t.get(e)&&(_=!1)})),_){const i=this.chart;i&&i.inPlot(p)?(e.label.text.markDirtyText(),e.set("tooltipTarget",this._getTooltipTarget(t)),e.set("pointTo",this._display.toGlobal({x:p.x,y:p.y}))):e._setDataItem(void 0)}else e._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const t=this.get("tooltip");return t&&t.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget")){const e=t.bullets;if(e&&e.length>0){const t=e[0].get("sprite");if(t)return t}}return this}updateLegendValue(t){const e=this.get("legendDataItem");if(e){const i=e.get("label");if(i){let e="";t?(i._setDataItem(t),e=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),e=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",e)}const s=e.get("valueLabel");if(s){let e="";t?(s._setDataItem(t),e=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),e=this.get("legendRangeValueText",s.get("text",""))),s.set("text",e)}}}_getItemReaderLabel(){let t="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}",t}getPoint(t,e){let i=this._xRenderer.positionToCoordinate(t),s=this._yRenderer.positionToCoordinate(e),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(t){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(t){return this.axisRanges.push({axisDataItem:t})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(t){const e=this.get("xAxis");if(this.get("baseAxis")==e&&e.isType("DateAxis")){const i=e.baseDuration(),s=e.getPrivate("selectionMin",e.getPrivate("min",0)),a=i*this.get("locationX",.5);let o=-1/0;for(;o{const e=this.startGrip,i=this.endGrip;let s=e.x(),a=e.y(),o=i.x(),n=i.y();const r=this.height(),h=this.width();s>o&&([s,o]=[o,s]),a>n&&([a,n]=[n,a]),"horizontal"===this.get("orientation")?(t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,r),t.lineTo(0,r),t.lineTo(0,0),t.moveTo(o,0),t.lineTo(h,0),t.lineTo(h,r),t.lineTo(o,r),t.lineTo(o,0)):(t.moveTo(0,0),t.lineTo(0,a),t.lineTo(h,a),t.lineTo(h,0),t.lineTo(0,0),t.moveTo(0,n),t.lineTo(0,r),t.lineTo(h,r),t.lineTo(h,n),t.lineTo(0,n))}))}}r.className="XYChartScrollbar",r.classNames=a.L.classNames.concat([r.className]);var h=i(3355),l=i(757),d=i(6515),g=i(7497),c=i(1926),u=i(5040),m=i(5071);class p extends g.${constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category"),super._afterNew()}_prepareAxisItems(){this.setPrivateRaw("baseInterval",this.get("baseInterval"));const t=this.get("renderer"),e=this.dataItems.length;let i=this.startIndex();i>0&&i--;let s=this.endIndex();s=o&&(g=!0):r%l.count==0&&r!=y&&(g=!0),!h&&g&&(i-.7*o0){let t=f[0].dataItem.get("index",0);m.each(f,(e=>{const i=e.dataItem,s=e.format;this._createAssets(i,[]),this._toggleDataItem(i,!0);let a=Number(i.get("category")),n=new Date(a);const r=i.get("label");r&&r.set("text",this._root.dateFormatter.format(n,s)),t++,this._prepareDataItem(i,t,o)}))}}baseDuration(){return c.getIntervalDuration(this.getPrivate("baseInterval"))}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let t=this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];return this._root.dateFormatter.format(new Date(i.get("category",0)),this.get("tooltipDateFormat",t))}}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}}p.className="CategoryDateAxis",p.classNames=g.$.classNames.concat([p.className]);var _=i(5638),x=i(8701),v=i(7261),y=i(751);class f extends v.m{constructor(){super(...arguments),this._dataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),super._afterNew()}_adjustMinMax(t,e,i,s){let a;const o=this.getDurationFormatter(),n=this.get("baseUnit");if(this.setRaw("maxPrecision",0),"millisecond"==n||"second"==n||"minute"==n||"hour"==n){i<=1&&(i=1),i=Math.round(i);let s=e-t;0===s&&(s=Math.abs(e));let o=s/i,r=[60,30,20,15,10,2,1],h=1;"hour"==n&&(r=[24,12,6,4,2,1]);for(let t of r)if(s/t>i){h=t;break}let l=Math.ceil((e-t)/h/i),d=Math.log(Math.abs(l))*Math.LOG10E,g=Math.pow(10,Math.floor(d))/10,c=l/g;l=y.closest(r,c)*g,o=h*l,a={min:t=Math.floor(t/o)*o,max:e=Math.ceil(e/o)*o,step:o}}else a=super._adjustMinMax(t,e,i,s);return this.setPrivateRaw("durationFormat",o.getFormat(a.step,a.max,n)),a}_formatText(t){return this.getDurationFormatter().format(t,this.getPrivate("durationFormat"),this.get("baseUnit"))}getTooltipText(t,e){const i=this.getDurationFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=y.round(this.positionToValue(t),a);return i.format(o,this.getPrivate("durationFormat"),this.get("baseUnit"))}}f.className="DurationAxis",f.classNames=v.m.classNames.concat([f.className]);var b=i(2586),D=i(6293),P=i(9084),w=i(4714),T=i(8943),A=i(7109),I=i(6275),M=i(6284),k=i(7909),C=i(4604),S=i(2976),Y=i(2312);class F extends S.j{_draw(){const t=this._display;t.moveTo(this.get("lowX1",0),this.get("lowY1",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0));let e=this.width(),i=this.height();if("vertical"==this.get("orientation")){let s=i,a=0;t.moveTo(0,s),t.lineTo(e/2,s),t.moveTo(e/2,a),t.lineTo(e,a)}else{let s=0,a=e;t.moveTo(s,0),t.lineTo(s,i/2),t.moveTo(a,i/2),t.lineTo(a,i)}}}F.className="OHLC",F.classNames=S.j.classNames.concat([F.className]);var X=i(5769),L=i(7144);class N extends Y.${constructor(){super(...arguments),this.columns=this.addDisposer(new L.o(X.YS.new({themeTags:["autocolor"]}),(()=>F._new(this._root,{themeTags:n.mergeTags(this.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=this.mainContainer.children.push(e.make());return i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new L.o(X.YS.new({}),(()=>F._new(this._root,{themeTags:n.mergeTags(t.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template,t.columns.template])))}}N.className="OHLCSeries",N.classNames=Y.$.classNames.concat([N.className]);var R=i(62),V=i(2338),G=i(5892);class O extends V.e{_afterNew(){this._setDefault("curveFactory",(0,G.$)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,G.$)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}O.className="SmoothedYLineSeries",O.classNames=V.e.classNames.concat([O.className]);var E=i(8289);class z extends V.e{_afterNew(){this._setDefault("curveFactory",(0,E.G)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,E.G)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}z.className="SmoothedXLineSeries",z.classNames=V.e.classNames.concat([z.className]);var U=i(2818);class W extends V.e{_afterNew(){this._setDefault("curveFactory",U.ZP.tension(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",U.ZP.tension(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}W.className="SmoothedXYLineSeries",W.classNames=V.e.classNames.concat([W.className]);var B=i(6245);function H(t,e){this._context=t,this._t=e}function Z(t){return new H(t,1)}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}};class Q extends V.e{_afterNew(){this._setDefault("curveFactory",Z),super._afterNew()}_getPoints(t,e){let i=e.points,s=this.get("stepWidth",B.AQ).value/2,a=t.get("locationX",e.locationX),o=t.get("locationY",e.locationY),n=a,r=o;e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s);let h=e.xAxis.getDataItemPositionX(t,e.xField,a,e.vcx),l=e.yAxis.getDataItemPositionY(t,e.yField,o,e.vcy),d=e.xAxis.getDataItemPositionX(t,e.xField,n,e.vcx),g=e.yAxis.getDataItemPositionY(t,e.yField,r,e.vcy);if(this._shouldInclude(h)){const c=this.getPoint(h,l),u=[c.x,c.y],m=this.getPoint(d,g),p=[m.x,m.y];if(e.fillVisible){let i=h,c=l,m=d,_=g;if(e.baseAxis===e.xAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(i=e.basePosX,m=e.basePosX),e.getOpen){let h=t.get(e.xOpenField),l=t.get(e.yOpenField);if(null!=h&&null!=l)if(a=t.get("openLocationX",e.openLocationX),o=t.get("openLocationY",e.openLocationY),n=a,r=o,e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s),e.stacked){let s=t.get("stackToItemX"),h=t.get("stackToItemY");s?(i=e.xAxis.getDataItemPositionX(s,e.xField,a,s.component.get("vcx")),m=e.xAxis.getDataItemPositionX(s,e.xField,n,s.component.get("vcx"))):e.yAxis===e.baseAxis?(i=e.basePosX,m=e.basePosX):e.baseAxis===e.yAxis&&(i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx)),h?(c=e.yAxis.getDataItemPositionY(h,e.yField,o,h.component.get("vcy")),_=e.yAxis.getDataItemPositionY(h,e.yField,r,h.component.get("vcy"))):e.xAxis===e.baseAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy))}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy)}let x=this.getPoint(i,c),v=this.getPoint(m,_);u[2]=x.x,u[3]=x.y,p[2]=v.x,p[3]=v.y}i.push(u),i.push(p),t.set("point",{x:u[0]+(p[0]-u[0])/2,y:u[1]+(p[1]-u[1])/2})}this.get("noRisers")&&(e.points=[],e.segments.push(i))}}Q.className="StepLineSeries",Q.classNames=V.e.classNames.concat([Q.className]);var j=i(55)},7825:function(t,e,i){i.r(e),i.d(e,{am5xy:function(){return s}});const s=i(778)},2818:function(t,e,i){function s(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function a(t,e){this._context=t,this._k=(1-e)/6}i.d(e,{xm:function(){return s}}),a.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:s(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:s(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.ZP=function t(e){function i(t){return new a(t,e)}return i.tension=function(e){return t(+e)},i}(0)}},function(t){var e=(7825,t(t.s=7825)),i=window;for(var s in e)i[s]=e[s];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=xy.js.map diff --git a/web/amCharts/bar/chart_0086_bar.inline03.js b/web/amCharts/bar/chart_0086_bar.inline03.js new file mode 100644 index 0000000000000000000000000000000000000000..c27a274e7972e9ecbd57d20b441e60fc864ffc7d --- /dev/null +++ b/web/amCharts/bar/chart_0086_bar.inline03.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=Animated.js.map diff --git a/web/amCharts/bar/chart_0087_bar.html b/web/amCharts/bar/chart_0087_bar.html new file mode 100644 index 0000000000000000000000000000000000000000..39071eff84c39b88c69db295408a8e44f8baa063 --- /dev/null +++ b/web/amCharts/bar/chart_0087_bar.html @@ -0,0 +1,210 @@ + + + + + + Pictorial Column Chart + + + +
+ + + + + + diff --git a/web/amCharts/bar/chart_0087_bar.inline03.js b/web/amCharts/bar/chart_0087_bar.inline03.js new file mode 100644 index 0000000000000000000000000000000000000000..c27a274e7972e9ecbd57d20b441e60fc864ffc7d --- /dev/null +++ b/web/amCharts/bar/chart_0087_bar.inline03.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=Animated.js.map diff --git a/web/amCharts/bar/chart_0088_bar.html b/web/amCharts/bar/chart_0088_bar.html new file mode 100644 index 0000000000000000000000000000000000000000..265c4834cc8322a52b25459503e2802255105ef5 --- /dev/null +++ b/web/amCharts/bar/chart_0088_bar.html @@ -0,0 +1,260 @@ + + + + + + Stacked Bar Chart with Negative Values + + + +
+ + + + + + diff --git a/web/amCharts/bar/chart_0088_bar.inline03.js b/web/amCharts/bar/chart_0088_bar.inline03.js new file mode 100644 index 0000000000000000000000000000000000000000..c27a274e7972e9ecbd57d20b441e60fc864ffc7d --- /dev/null +++ b/web/amCharts/bar/chart_0088_bar.inline03.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=Animated.js.map diff --git a/web/amCharts/bar/chart_0089_bar.inline01.js b/web/amCharts/bar/chart_0089_bar.inline01.js new file mode 100644 index 0000000000000000000000000000000000000000..3fe3e3caca2e468e70f044c7aaeaa49dfcb8d974 --- /dev/null +++ b/web/amCharts/bar/chart_0089_bar.inline01.js @@ -0,0 +1,2 @@ +!function(){var t,e,i,s,n,r={3145:function(t,e,i){"use strict";i.d(e,{UZ:function(){return r},cP:function(){return n},f_:function(){return o},i_:function(){return s}});const s=new class{constructor(){this.version="5.16.0",this.licenses=[],this.entitiesById={},this.rootElements=[],this.autoDispose=!1}};function n(t){s.licenses.push(t)}function r(){let t;for(;t=s.rootElements.pop();)t.dispose()}function o(t){let e;return s.rootElements.forEach((i=>{i.dom.id==t&&(e=i)})),e}},2855:function(t,e,i){"use strict";i.d(e,{f:function(){return F}});var s=i(6490),n=i(8777),r=i(2036),o=i(4431),a=i(1706),h=i(6881),l=i(7449),c=i(5071),u=i(7652);class d{constructor(){this._targets=[],this._observer=new ResizeObserver((t=>{c.each(t,(t=>{c.each(this._targets,(e=>{e.target===t.target&&e.callback()}))}))}))}addTarget(t,e){this._observer.observe(t,{box:"border-box"}),this._targets.push({target:t,callback:e})}removeTarget(t){this._observer.unobserve(t),c.keepIf(this._targets,(e=>e.target!==t))}}class p{constructor(){this._timer=null,this._targets=[]}addTarget(t,e){if(null===this._timer){let t=null;const e=()=>{const i=Date.now();(null===t||i>t+p.delay)&&(t=i,c.each(this._targets,(t=>{let e=t.target.getBoundingClientRect();e.width===t.size.width&&e.height===t.size.height||(t.size=e,t.callback())}))),0===this._targets.length?this._timer=null:this._timer=requestAnimationFrame(e)};this._timer=requestAnimationFrame(e)}this._targets.push({target:t,callback:e,size:{width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0}})}removeTarget(t){c.keepIf(this._targets,(e=>e.target!==t)),0===this._targets.length&&null!==this._timer&&(cancelAnimationFrame(this._timer),this._timer=null)}}p.delay=200;let g=null;class f{constructor(t,e){this._disposed=!1,this._sensor=(null===g&&(g="undefined"!=typeof ResizeObserver?new d:new p),g),this._element=t,this._listener=u.onZoom(e),this._sensor.addTarget(t,e)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}var _=i(9821),m=i(1479),y=i(7142),v=i(2876),w=i(780),b=i(6460),x=i(798),D=i(6331),k=i(256),T=i(3100);class M extends D.JH{_setDefaults(){this.setPrivate("defaultLocale",T.Z),super._setDefaults()}translate(t,e,...i){e||(e=this._root.locale||this.getPrivate("defaultLocale"));let s=t,n=e[t];if(null===n)s="";else if(null!=n)n&&(s=n);else if(e!==this.getPrivate("defaultLocale"))return this.translate(t,this.getPrivate("defaultLocale"),...i);if(i.length)for(let t=i.length,e=0;e{this.setTranslationAny(t,i,e)}))}translateEmpty(t,e,...i){let s=this.translate(t,e,...i);return s==t?"":s}translateFunc(t,e){return this._root.locale[t]?this._root.locale[t]:e!==this.getPrivate("defaultLocale")?this.translateFunc(t,this.getPrivate("defaultLocale")):()=>""}translateAll(t,e){return this.isDefault()?t:c.map(t,(t=>this.translate(t,e)))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}var E=i(9770),O=i(3783),P=i(4102),S=i(6245),N=i(1112),C=i(2132),L=i(3145),A=i(3540),R=i(5040),U=i(9395);function B(t,e){null==t?requestAnimationFrame(e):setTimeout((()=>{requestAnimationFrame(e)}),1e3/t)}class F{constructor(t,e={},i){if(this._isDirty=!1,this._isDirtyParents=!1,this._isDirtyAnimation=!1,this._dirty={},this._dirtyParents={},this._dirtyBounds={},this._dirtyPositions={},this._ticker=null,this._tickers=[],this._updateTick=!0,this.skipRenderFrame=!1,this.events=new E.p,this.animationTime=null,this._animations=[],this.language=M.new(this,{}),this.locale=T.Z,this.utc=!1,this.numberFormatter=w.e.new(this,{}),this.dateFormatter=b.C.new(this,{}),this.durationFormatter=x.$.new(this,{}),this.tabindex=0,this._tabindexes=[],this._a11yD=!1,this._focusElementDirty=!1,this._skipNextGroupJump=!0,this.verticalLayout=a.Z.new(this,{}),this.horizontalLayout=o.G.new(this,{}),this.gridLayout=h.M.new(this,{}),this._paused=!1,this.autoResize=!0,this._fontHash="",this._isDisposed=!1,this._disposers=[],this._tooltips=[],this._htmlEnabledContainers=[],this.entitiesById={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");let s,n;if(this._settings=e,0==e.accessible&&(this._a11yD=!0),null==e.useSafeResolution&&(e.useSafeResolution=!0),e.useSafeResolution&&(s=u.getSafeResolution()),this._renderer=new P.uK(s),n=t instanceof HTMLElement?t:document.getElementById(t),c.each(L.i_.rootElements,(t=>{if(t.dom===n){if(!L.i_.autoDispose)throw new Error("You cannot have multiple Roots on the same DOM node");t.dispose()}})),this.interfaceColors=_.v.new(this,{}),null===n)throw new Error("Could not find HTML element with id `"+t+"`");this.dom=n;let r=document.createElement("div");r.style.position="relative",r.style.width="100%",r.style.height="100%",n.appendChild(r);const l=e.tooltipContainerBounds;l&&(this._tooltipContainerSettings=l),this._inner=r,this._updateComputedStyles(),L.i_.rootElements.push(this)}static new(t,e){const i=new F(t,e,!0);return i._init(),i}moveDOM(t){let e;if(e=t instanceof HTMLElement?t:document.getElementById(t),e){for(;this.dom.childNodes.length>0;)e.appendChild(this.dom.childNodes[0]);this.dom=e,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const t=this.dom.offsetWidth,e=this.dom.offsetHeight;t<=150||e<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const t=this.tooltipContainer.children.push(n.W.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:(0,S.aQ)(100),centerY:S.AQ,tooltipY:10,tooltipText:"Created using amCharts 5",tooltipX:S.AQ,cursorOverStyle:"pointer",background:y.A.new(this,{fill:(0,N.$_)(4671320),fillOpacity:0,tooltipY:5})}));t.set("tooltip",this.systemTooltip),t.events.on("click",(()=>{window.open("https://www.amcharts.com/","_blank")})),t.states.create("hover",{});const e=t.children.push(m.T.new(this,{stroke:(0,N.$_)(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6",dx:-50,strokeOpacity:0}));e.states.create("hover",{stroke:(0,N.$_)(3976191)});const i=t.children.push(m.T.new(this,{stroke:(0,N.$_)(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0",dx:50,strokeOpacity:0})),s=U.out(U.cubic),r=1500;t.setTimeout((()=>{i.animate({key:"strokeOpacity",to:1,duration:r,easing:s}),i.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"strokeOpacity",to:1,duration:r,easing:s})}),3e3),i.states.create("hover",{stroke:(0,N.$_)(4671320)}),this._logo=t,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(t){return this._settings.calculateSize?this._settings.calculateSize(t):{width:t.width,height:t.height}}_init(){const t=this._settings;!1!==t.accessible&&(t.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),t.ariaLabel&&this._inner.setAttribute("aria-label",t.ariaLabel),t.role&&this._inner.setAttribute("role",t.role));const e=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),r=Math.floor(s.width),o=Math.floor(s.height),a=Math.floor(i.width),h=Math.floor(i.height),l=n.W.new(this,{visible:!0,width:r,height:o});this._rootContainer=l,this._rootContainer._defaultThemes.push(O.X.new(this));const c=l.children.push(n.W.new(this,{visible:!0,width:S.AQ,height:S.AQ}));this.container=c,e.resize(a,h,r,o),this._inner.appendChild(e.view),this._initResizeSensor();const d=document.createElement("div");if(this._htmlElementContainer=d,d.className="am5-html-container",d.style.position="absolute",d.style.pointerEvents="none",this._tooltipContainerSettings||(d.style.overflow="hidden"),this._inner.appendChild(d),!0!==this._a11yD){const t=document.createElement("div");t.className="am5-reader-container",t.setAttribute("role","alert"),t.style.position="absolute",t.style.width="1px",t.style.height="1px",t.style.overflow="hidden",t.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=t,this._inner.appendChild(this._readerAlertElement);const i=document.createElement("div");i.className="am5-focus-container",i.style.position="absolute",i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.width=r+"px",i.style.height=o+"px",i.setAttribute("role","graphics-document"),u.setInteractive(i,!1),this._focusElementContainer=i,this._inner.appendChild(this._focusElementContainer);const s=document.createElement("div");this._tooltipElementContainer=s,s.className="am5-tooltip-container",this._inner.appendChild(s),u.supports("keyboardevents")&&(this._disposers.push(u.addEventListener(window,"keydown",(t=>{const e=u.getEventKey(t);"Shift"==e?this._isShift=!0:"Tab"==e&&(this._isShift=t.shiftKey)}))),this._disposers.push(u.addEventListener(window,"keyup",(t=>{"Shift"==u.getEventKey(t)&&(this._isShift=!1)}))),this._disposers.push(u.addEventListener(i,"click",(()=>{const t=this._focusedSprite;if(t){const i=t.get("clickAnnounceText","");""!==i&&this.readerAlert(i);const s=e.getEvent(new MouseEvent("click"));t.events.dispatch("click",{type:"click",originalEvent:s.event,point:s.point,simulated:!0,target:t})}}))),this._disposers.push(u.addEventListener(i,"keydown",(t=>{const i=this._focusedSprite;if(i){"Escape"==t.key&&(u.blur(),this._focusedSprite=void 0);let s=0,n=0;const r=u.getEventKey(t);switch(r){case"Enter":case" ":const o=i.get("clickAnnounceText","");if(""!==o&&this.readerAlert(o)," "==r&&"checkbox"!=i.get("role"))return;t.preventDefault();const a=e.getEvent(new MouseEvent("mouse"));return void i.events.dispatch("click",{type:"click",originalEvent:a.event,point:a.point,simulated:!0,target:i});case"ArrowLeft":s=-6;break;case"ArrowRight":s=6;break;case"ArrowUp":n=-6;break;case"ArrowDown":n=6;break;default:return}if(0!=s||0!=n){if(t.preventDefault(),!i.isDragging()){this._keyboardDragPoint={x:0,y:0};const t=e.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));t.point={x:0,y:0},i.events.isEnabled("pointerdown")&&i.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:t.event,point:t.point,simulated:!0,target:i})}const r=this._keyboardDragPoint;r.x+=s,r.y+=n;const o=e.getEvent(new MouseEvent("mousemove",{clientX:r.x,clientY:r.y}),!1);i.events.isEnabled("globalpointermove")&&i.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:o.event,point:o.point,simulated:!0,target:i})}}}))),this._disposers.push(u.addEventListener(i,"keyup",(t=>{if(this._focusedSprite){const i=this._focusedSprite,s=u.getEventKey(t);switch(s){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(i.isDragging()){const t=this._keyboardDragPoint,s=e.getEvent(new MouseEvent("mouseup",{clientX:t.x,clientY:t.y}));return i.events.isEnabled("globalpointerup")&&i.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:s.event,point:s.point,simulated:!0,target:i}),void(this._keyboardDragPoint=void 0)}if(i.get("focusableGroup")){const t=i.get("focusableGroup"),e=this._tabindexes.filter((e=>!(e.get("focusableGroup")!=t||!1===e.getPrivate("focusable")||!e.isVisibleDeep())));let n=e.indexOf(i);const r=e.length-1;n+="ArrowRight"==s||"ArrowDown"==s?1:-1,n<0?n=r:n>r&&(n=0),u.focus(e[n].getPrivate("focusElement").dom)}break;case"Tab":const t=i.get("focusableGroup");if(t&&this._isShift)return void(this._skipNextGroupJump||(this._focusNext(i.getPrivate("focusElement").dom,-1,t),this._skipNextGroupJump=!0))}}}))))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}get systemTooltip(){if(!this._systemTooltip){const t=v.u.new(this,{themeTags:["system"]});this._systemTooltip=t}return this._systemTooltip}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new f(this.dom,(()=>{this.autoResize&&this.resize()})),this._disposers.push(this._resizeSensorDisposer)}resize(){const t=this._getRealSize(),e=this._getCalculatedSize(t),i=Math.floor(e.width),s=Math.floor(e.height);if(i>0&&s>0){const e=Math.floor(t.width),n=Math.floor(t.height),r=this._htmlElementContainer;if(r.style.width=i+"px",r.style.height=s+"px",!0!==this._a11yD){const t=this._focusElementContainer;t.style.width=i+"px",t.style.height=s+"px"}this._renderer.resize(e,n,i,s);const o=this._rootContainer;o.setPrivate("width",i),o.setPrivate("height",s),this._render(),this._handleLogo()}}_render(){this.skipRenderFrame?this.skipRenderFrame=!1:(this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1))}_runTickers(t){c.each(this._tickers,(e=>{e(t)}))}_runAnimations(t){let e=0;return c.keepIf(this._animations,(i=>{const n=i._runAnimation(t);return n!==s.SR.Stopped&&(n!==s.SR.Playing||(++e,!0))})),this._isDirtyAnimation=!1,0===e}_runDirties(){let t={};for(;this._isDirtyParents;)this._isDirtyParents=!1,k.entries(this._dirtyParents).forEach((([e,i])=>{delete this._dirtyParents[e],i.isDisposed()||(t[i.uid]=i,i._prepareChildren())}));k.entries(t).forEach((([t,e])=>{e._updateChildren()}));const e=[];k.entries(this._dirty).forEach((([t,i])=>{i.isDisposed()?delete this._dirty[t]:(e.push(i),i._beforeChanged())})),e.forEach((t=>{t._changed(),delete this._dirty[t.uid],t._clearDirty()})),this._isDirty=!1;const i={},s=[];k.entries(this._dirtyBounds).forEach((([t,e])=>{delete this._dirtyBounds[t],e.isDisposed()||(i[e.uid]=e.depth(),s.push(e))})),this._positionHTMLElements(),s.sort(((t,e)=>A.qu(i[e.uid],i[t.uid]))),s.forEach((t=>{t._updateBounds()}));const n=this._dirtyPositions;k.entries(n).forEach((([t,e])=>{delete n[t],e.isDisposed()||e._updatePosition()})),e.forEach((t=>{t._afterChanged()})),k.entries(t).forEach((([t,e])=>{e._childrenPrep=!1,e._childrenUpdt=!1}))}_renderFrame(t){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:t}),this._checkComputedStyles(),this._runTickers(t);const e=this._runAnimations(t);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:t}),0===this._tickers.length&&e&&!this._isDirtyAnimation&&!this._isDirty}return!0}_runTicker(t,e){this.isDisposed()||(this.animationTime=t,this._renderFrame(t)?(this._ticker=null,this.animationTime=null):this._paused||(e?this._ticker:B(this.fps,this._ticker)))}_runTickerNow(t=1e4){if(!this.isDisposed()){const e=performance.now()+t;for(;;){const t=performance.now();if(t>=e){this.animationTime=null;break}if(this.animationTime=t,this._renderFrame(t)){this.animationTime=null;break}}}}_startTicker(){null===this._ticker&&(this.animationTime=null,this._ticker=t=>{this._runTicker(t)},B(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(t){this._updateTick=t,t&&this._startTicker()}_addDirtyEntity(t){this._isDirty=!0,void 0===this._dirty[t.uid]&&(this._dirty[t.uid]=t),this._startTicker()}_addDirtyParent(t){this._isDirty=!0,this._isDirtyParents=!0,void 0===this._dirtyParents[t.uid]&&(this._dirtyParents[t.uid]=t),this._startTicker()}_addDirtyBounds(t){this._isDirty=!0,void 0===this._dirtyBounds[t.uid]&&(this._dirtyBounds[t.uid]=t),this._startTicker()}_addDirtyPosition(t){this._isDirty=!0,void 0===this._dirtyPositions[t.uid]&&(this._dirtyPositions[t.uid]=t),this._startTicker()}_addAnimation(t){this._isDirtyAnimation=!0,-1===this._animations.indexOf(t)&&this._animations.push(t),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",(()=>{this._isDirty=!0,this._startTicker()}))}eachFrame(t){return this._tickers.push(t),this._startTicker(),new l.ku((()=>{c.removeFirst(this._tickers,t)}))}markDirtyGlobal(t){t||(t=this.container),t.walkChildren((t=>{t instanceof n.W&&this.markDirtyGlobal(t),t.markDirty(),t.markDirtyBounds()}))}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),c.each(this._disposers,(t=>{t.dispose()})),this._inner&&u.removeElement(this._inner),c.remove(L.i_.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(t){if(!0!==this._a11yD){const e=this._readerAlertElement;t=u.stripTags(t),e.innerHTML==t&&(e.innerHTML=""),e.innerHTML=t}}setThemes(t){this._rootContainer.set("themes",t);const e=this.tooltipContainer;e&&e._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const t=this._tooltipContainerSettings,e=this._rootContainer.children.push(n.W.new(this,{position:"absolute",isMeasured:!1,width:S.AQ,height:S.AQ,layer:t?35:30,layerMargin:t||void 0}));this.tooltipContainer=e;const i=v.u.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(t){1!=this._a11yD&&(t.get("focusable")?c.pushOne(this._tabindexes,t):c.remove(this._tabindexes,t),this._invalidateTabindexes())}_unregisterTabindexOrder(t){1!=this._a11yD&&(c.remove(this._tabindexes,t),this._invalidateTabindexes())}_invalidateTabindexes(){if(1==this._a11yD)return;this._tabindexes.sort(((t,e)=>{const i=t.get("tabindexOrder",0),s=e.get("tabindexOrder",0);return i==s?0:i>s?1:-1}));const t=[];c.each(this._tabindexes,((e,i)=>{e.getPrivate("focusElement")?this._moveFocusElement(i,e):this._makeFocusElement(i,e);const s=e.get("focusableGroup");s&&!1!==e.getPrivate("focusable")&&(-1!==t.indexOf(s)?e.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):t.push(s))}))}_updateCurrentFocus(){1!=this._a11yD&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(t,e){if(1==this._a11yD)return;if(e||(e=t.getPrivate("focusElement").dom),!e)return;const i=t.get("role");i?e.setAttribute("role",i):e.removeAttribute("role");const s=t.get("ariaLabel");if(s){const i=(0,C.q)(t,s);e.setAttribute("aria-label",i)}else e.removeAttribute("aria-label");const n=t.get("ariaLive");n?e.setAttribute("aria-live",n):e.removeAttribute("aria-live");const r=t.get("ariaChecked");null!=r&&i&&-1!==["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)?e.setAttribute("aria-checked",r?"true":"false"):e.removeAttribute("aria-checked");const o=t.get("ariaCurrent");null!=o?e.setAttribute("aria-current",o):e.removeAttribute("aria-current");const a=t.get("ariaSelected");null!=a&&i&&-1!==["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)?e.setAttribute("aria-selected",a?"true":"false"):e.removeAttribute("aria-selected"),t.get("ariaHidden")?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden");const h=t.get("ariaOrientation");h?e.setAttribute("aria-orientation",h):e.removeAttribute("aria-orientation");const l=t.get("ariaValueNow");l?e.setAttribute("aria-valuenow",l):e.removeAttribute("aria-valuenow");const c=t.get("ariaValueMin");c?e.setAttribute("aria-valuemin",c):e.removeAttribute("aria-valuemin");const u=t.get("ariaValueMax");u?e.setAttribute("aria-valuemax",u):e.removeAttribute("aria-valuemax");const d=t.get("ariaValueText");d?e.setAttribute("aria-valuetext",d):e.removeAttribute("aria-valuetext");const p=t.get("ariaControls");p?e.setAttribute("aria-controls",p):e.removeAttribute("aria-controls"),t.get("visible")&&0!==t.get("opacity")&&"tooltip"!=t.get("role")&&!t.isHidden()&&!1!==t.getPrivate("focusable")&&(t.height()||t.width())?("-1"!=e.getAttribute("tabindex")&&e.setAttribute("tabindex",""+this.tabindex),e.removeAttribute("aria-hidden")):(e.removeAttribute("tabindex"),e.setAttribute("aria-hidden","true"))}_makeFocusElement(t,e){if(e.getPrivate("focusElement")||1==this._a11yD)return;const i=document.createElement("div");"tooltip"!=e.get("role")&&(i.tabIndex=this.tabindex),i.style.position="absolute",u.setInteractive(i,!1);const s=[];e.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(e),s.push(u.addEventListener(i,"focus",(t=>{this._handleFocus(t)}))),s.push(u.addEventListener(i,"blur",(t=>{this._handleBlur(t)}))),this._moveFocusElement(t,e)}_removeFocusElement(t){if(1==this._a11yD)return;c.remove(this._tabindexes,t);const e=t.getPrivate("focusElement");e&&(this._focusElementContainer.removeChild(e.dom),c.each(e.disposers,(t=>{t.dispose()})))}_hideFocusElement(t){1!=this._a11yD&&(t.getPrivate("focusElement").dom.style.display="none")}_moveFocusElement(t,e){if(1==this._a11yD)return;const i=this._focusElementContainer,s=e.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[t])return;const n=this._focusElementContainer.children[t+1];n?i.insertBefore(s,n):i.append(s)}_positionFocusElement(t){if(1==this._a11yD||null==t)return;this._focusElementContainer.scrollTop=0;const e=t.globalBounds();let i=e.right==e.left?t.width():e.right-e.left,s=e.top==e.bottom?t.height():e.bottom-e.top;const n=void 0!==this._settings.focusPadding?this._settings.focusPadding:2;let r=e.left-n,o=e.top-n;i<0&&(r+=i,i=Math.abs(i)),s<0&&(o+=s,s=Math.abs(s));const a=t.getPrivate("focusElement").dom;a.style.top=o+"px",a.style.left=r+"px",a.style.width=i+2*n+"px",a.style.height=s+2*n+"px"}_getSpriteByFocusElement(t){let e;return c.eachContinue(this._tabindexes,((i,s)=>i.getPrivate("focusElement").dom!==t||(e=i,!1))),e}_handleFocus(t){if(1==this._a11yD)return;const e=this._getSpriteByFocusElement(t.target);e&&(e.isVisibleDeep()?(this._positionFocusElement(e),this._focusedSprite=e,e.events.isEnabled("focus")&&e.events.dispatch("focus",{type:"focus",originalEvent:t,target:e}),-1==e.getPrivate("focusElement").dom.tabIndex&&(this._skipNextGroupJump=!1)):this._focusNext(t.target,this._isShift?-1:1))}_focusNext(t,e,i){if(1==this._a11yD)return;const s=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(",")));let n=s.indexOf(t)+e;n<0?n=s.length-1:n>=s.length&&(n=0);const r=s[n];if(i&&-1==e){const t=this._getSpriteByFocusElement(r);if(t&&t.get("focusableGroup")==i)return void this._focusNext(r,e)}r.focus()}_handleBlur(t){if(1==this._a11yD)return;const e=this._focusedSprite;e&&!e.isDisposed()&&e.events.isEnabled("blur")&&e.events.dispatch("blur",{type:"blur",originalEvent:t,target:e}),this._focusedSprite=void 0}updateTooltip(t){if(1==this._a11yD)return;const e=u.stripTags(t._getText());let i=t.getPrivate("tooltipElement");"tooltip"==t.get("role")&&""!=e?(i||(i=this._makeTooltipElement(t)),i.innerHTML!=e&&(i.innerHTML=e),i.setAttribute("aria-hidden",t.isVisibleDeep()?"false":"true")):i&&(i.remove(),t.removePrivate("tooltipElement"))}_makeTooltipElement(t){const e=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",u.setInteractive(i,!1),this._decorateFocusElement(t,i),e.append(i),t.setPrivate("tooltipElement",i),i}_removeTooltipElement(t){if(1==this._a11yD)return;const e=t.getPrivate("tooltipElement");if(e){const t=e.parentElement;t&&t.removeChild(e)}}_invalidateAccessibility(t){if(1==this._a11yD)return;this._focusElementDirty=!0;const e=t.getPrivate("focusElement");t.get("focusable")?e&&(this._decorateFocusElement(t),this._positionFocusElement(t)):e&&this._removeFocusElement(t)}focused(t){return this._focusedSprite===t}documentPointToRoot(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:(t.x-e.left)*s,y:(t.y-e.top)*n}}rootPointToDocument(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:t.x/s+e.left,y:t.y/n+e.top}}addDisposer(t){return this._disposers.push(t),t}_updateComputedStyles(){const t=window.getComputedStyle(this.dom);let e="";k.each(t,((t,i)=>{R.isString(t)&&t.match(/^font/)&&(e+=i)}));const i=e!=this._fontHash;return i&&(this._fontHash=e),i}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(t){t instanceof n.W?t.children.each((t=>{this._invalidateLabelBounds(t)})):t instanceof r.x&&t.markDirtyBounds()}_hasLicense(){for(let t=0;t{if(t.get("verticalScrollbar"))return r=!0,s=t,!1})),r&&(n=document.createElement("div"),t.setPrivate("htmlElementWrapper",n),t.setPrivate("wrapperContainer",s),n.style.position="absolute",n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",s.events.on("boundschanged",(()=>{this._positionHTMLElement(t)}))),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",u.setInteractive(i,t.get("interactive",!1)),t.events.isEnabled("click")&&(u.setInteractive(i,!0),this._disposers.push(u.addEventListener(i,"click",(e=>{const i=this._renderer.getEvent(e);t.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))),this._positionHTMLElement(t),r?(n.append(i),e.append(n)):e.append(i),c.pushOne(this._htmlEnabledContainers,t),i}_positionHTMLElements(){c.each(this._htmlEnabledContainers,(t=>{this._positionHTMLElement(t)}))}_positionHTMLElement(t){const e=t.getPrivate("htmlElementWrapper");if(e){const i=t.getPrivate("wrapperContainer");if(i){const t=i.globalBounds();e.style.clipPath="rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"}}const i=t.getPrivate("htmlElement");if(i){const e=["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"];c.each(e,(e=>{const s=t.get(e);i.style[e]=s?s+"px":""}));const s=["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"];c.each(s,(e=>{const s=t.get(e);s?"fontSize"!=e||R.isString(s)?i.style[e]=s+"":i.style[e]=s+"px":i.style[e]=""}));const n=t.compositeScale()||1,r=t.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";const o=t.compositeOpacity();setTimeout((()=>{i.style.opacity=o+""}),10);const a=t.isVisibleDeep();a&&(i.style.display="block");let h={x:t.x()+t.get("dx",0),y:t.y()+t.get("dy",0)};t.parent&&(h=t.parent.toGlobal(h)),i.style.top=h.y+"px",i.style.left=h.x+"px";const l=t.get("width"),u=t.get("height");let d=0,p=0;if(l&&(d=t.width()),u&&(p=t.height()),!l||!u){i.style.position="fixed",i.style.width="",i.style.height="";const e=i.getBoundingClientRect();i.style.position="absolute",l||(d=e.width),u||(p=e.height);let s=d/n,r=p/n,o=t.get("centerX",0),a=t.get("centerY",0),h=0,c=0,g=0,f=0;o instanceof S.gG?(h=-o.value*s,c=(1-o.value)*s):(h=-o,c=s-o),a instanceof S.gG?(g=-a.value*r,f=(1-a.value)*r):(g=-a,f=r-a),t._localBounds={left:h,right:c,top:g,bottom:f};let _=t._adjustedLocalBounds,m=t._display.getAdjustedBounds(t._localBounds);t._adjustedLocalBounds=m,_.left===m.left&&_.right===m.right&&_.top===m.top&&_.bottom===m.bottom||t.markDirtyBounds()}d>0&&(i.style.minWidth=d+"px"),p>0&&(i.style.minHeight=p+"px"),a&&0!=o||(i.style.display="none");const g=t.get("centerX",0),f=(0,S.hU)(g)?g.percent+"%":g+"px",_=t.get("centerY",0),m=(0,S.hU)(_)?_.percent+"%":_+"px";(g||_)&&(i.style.transform="translate(-"+f+", -"+m+")"+i.style.transform),1!=n&&(i.style.transform+="scale("+n+")"),0!=r&&(i.style.transform+=" rotate("+r+"deg)"),""!=i.style.transform&&(i.style.transformOrigin=f+" "+m)}}_setHTMLContent(t,e){let i=t.getPrivate("htmlElement");i||(i=this._makeHTMLElement(t),this.autoResize||this.resize()),i.innerHTML!=e&&(i.innerHTML=e)}_removeHTMLContent(t){const e=t.getPrivate("htmlElementWrapper"),i=t.getPrivate("htmlElement");e?(this._htmlElementContainer.removeChild(e),t.removePrivate("htmlElement"),t.removePrivate("htmlElementWrapper"),t.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),t.removePrivate("htmlElement"),t.removePrivate("wrapperContainer")),c.remove(this._htmlEnabledContainers,t)}}},3409:function(t,e,i){"use strict";i.d(e,{Q:function(){return o}});var s=i(5769),n=i(3540),r=i(5071);class o{constructor(t,e){if(this._rules={},this._root=t,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(t){const e=new this(t,!0);return e.setupDefaultRules(),e}setupDefaultRules(){}_lookupRules(t){return this._rules[t]}ruleRaw(t,e=[]){let i=this._rules[t];i||(i=this._rules[t]=[]),e.sort(n.qu);const{index:o,found:a}=r.getSortedIndex(i,(t=>{const i=n.qu(t.tags.length,e.length);return 0===i?n.wq(t.tags,e,n.qu):i}));if(a)return i[o].template;{const t=s.YS.new({});return i.splice(o,0,{tags:e,template:t}),t}}rule(t,e=[]){return this.ruleRaw(t,e)}}},5108:function(t,e,i){"use strict";i.d(e,{g:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){const t=this.get("sprite");t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}}n.className="Bullet",n.classNames=s.JH.classNames.concat([n.className])},8054:function(t,e,i){"use strict";i.d(e,{z:function(){return o}});var s=i(3497),n=i(8777),r=i(7652);class o extends n.W{_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",s.c.new(this._root,{themeTags:r.mergeTags(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const t=this._prevSettings.icon,e=this.get("icon");e!==t&&(this._disposeProperty("icon"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.icon=e)}if(this.isDirty("label")){const t=this._prevSettings.label,e=this.get("label");e!==t&&(this._disposeProperty("label"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.label=e)}}}o.className="Button",o.classNames=n.W.classNames.concat([o.className])},1337:function(t,e,i){"use strict";i.d(e,{k:function(){return r}});var s=i(8777),n=i(6245);class r extends s.W{constructor(){super(...arguments),this.chartContainer=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,interactiveChildren:!1})),this.bulletsContainer=s.W.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:n.AQ,height:n.AQ})}}r.className="Chart",r.classNames=s.W.classNames.concat([r.className])},8035:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,Math.abs(this.get("radius",10)))}}n.className="Circle",n.classNames=s.T.classNames.concat([n.className])},9361:function(t,e,i){"use strict";i.d(e,{w:function(){return c},z:function(){return l}});var s=i(7582),n=i(6331),r=i(8777),o=i(9582),a=i(5071),h=i(256);class l extends n.Zr{constructor(t,e,i){super(i),this.dataContext=e,this.component=t,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(t){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,t)}hide(t){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,t)}isHidden(){return!this.get("visible")}}class c extends r.W{constructor(){super(...arguments),this._data=new o.k,this._dataItems=[],this._mainDataItems=this._dataItems,this.valueFields=[],this.fields=["id"],this._valuesDirty=!1,this._dataChanged=!1,this._dataGrouped=!1,this.inited=!1}set data(t){t.incrementRef(),this._data.decrementRef(),this._data=t}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((t=>{const e=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===t.type)a.each(e,(t=>{t.dispose()})),e.length=0,this._onDataClear();else if("push"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.push(i),this.processDataItem(i)}else if("setIndex"===t.type){const i=e[t.index],s=this._makeDataItem(t.newValue);i.bullets&&0==i.bullets.length&&(i.bullets=void 0),h.entries(s).forEach((([t,e])=>{i.get(t)!=e&&i.animate({key:t,to:e,duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})})),i.dataContext=t.newValue}else if("insertIndex"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.splice(t.index,0,i),this.processDataItem(i)}else if("removeIndex"===t.type)e[t.index].dispose(),e.splice(t.index,1);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");{const i=e[t.oldIndex];e.splice(t.oldIndex,1),e.splice(t.newIndex,0,i)}}this._afterDataChange()})))}_postUpdateData(){}updateData(t){let e=0;a.each(t,((t,i)=>{const s=this.dataItems[i];if(s){const e=s.dataContext;e&&h.entries(t).forEach((([t,i])=>{e[t]=i}));const i=this._makeDataItem(e);h.entries(i).forEach((([t,e])=>{var i;if(s.get(t)!=e){s.set(t,e);const n=null===(i=this._valueFieldsF[t])||void 0===i?void 0:i.workingKey;n&&s.set(n,e)}}))}else this.data.push(t);e=i}));for(let t=this.dataItems.length-1;t>e;t--){const e=this.dataItems[t];a.remove(this.dataItems,e),e.dispose()}this._postUpdateData()}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},a.each(this.valueFields,(t=>{this.get(t+"Field")&&(this._valueFields.push(t),this._valueFieldsF[t]={fieldKey:t+"Field",workingKey:t+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},a.each(this.fields,(t=>{this.get(t+"Field")&&(this._fields.push(t),this._fieldsF[t]=t+"Field")})))}get dataItems(){return this._dataItems}processDataItem(t){}_makeDataItem(t){const e={};return this._valueFields&&a.each(this._valueFields,(i=>{const s=this.get(this._valueFieldsF[i].fieldKey);e[i]=t[s],e[this._valueFieldsF[i].workingKey]=e[i]})),this._fields&&a.each(this._fields,(i=>{const s=this.get(this._fieldsF[i]);e[i]=t[s]})),e}makeDataItem(t,e){let i=new l(this,e,t);return this.processDataItem(i),i}pushDataItem(t,e){const i=this.makeDataItem(t,e);return this._mainDataItems.push(i),i}disposeDataItem(t){}showDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!0)}))}hideDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const t="datavalidated";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this._dataChanged=!1}if(this._valuesDirty){const t="valueschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.inited=!0}markDirtyValues(t){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}getDataItemById(t){return a.find(this.dataItems,(e=>e.get("id")==t))}}c.className="Component",c.classNames=r.W.classNames.concat([c.className])},2936:function(t,e,i){"use strict";i.d(e,{p:function(){return r}});var s=i(8054),n=i(7652);class r extends s.z{_afterNew(){super._afterNew(),this.addTag("confirm"),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{const e=n.getEventKey(t);this.get("active")&&"Escape"==e&&this._cancel()}))),this._disposers.push(n.addEventListener(document,"click",(()=>{this._ignoreClick||this._cancel(),this._ignoreClick=!1}))),this.events.on("click",(()=>{this.get("active")||(this._ignoreClick=!0),this._confirm()}))}_cancel(){this.get("active")&&(this.events.dispatch("cancelled",{type:"cancelled",target:this}),this.set("active",!1))}_confirm(){this.get("active")&&(this.events.dispatch("confirmed",{type:"confirmed",target:this}),this.set("active",!1),this.isFocus()&&this.setTimeout((()=>{this.set("active",!1),n.blur()}),10))}_prepareChildren(){super._prepareChildren()}}r.className="ConfirmButton",r.classNames=s.z.classNames.concat([r.className])},8777:function(t,e,i){"use strict";i.d(e,{W:function(){return f}});var s=i(7144),n=i(5071);class r extends s.aV{constructor(t){super(),this._disposed=!1,this._container=t,this._events=this.events.onAll((t=>{if("clear"===t.type)n.each(t.oldValues,(t=>{this._onRemoved(t)}));else if("push"===t.type)this._onInserted(t.newValue);else if("setIndex"===t.type)this._onRemoved(t.oldValue),this._onInserted(t.newValue,t.index);else if("insertIndex"===t.type)this._onInserted(t.newValue,t.index);else if("removeIndex"===t.type)this._onRemoved(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");this._onRemoved(t.value),this._onInserted(t.value,t.newIndex)}}))}_onInserted(t,e){t._setParent(this._container,!0);const i=this._container._childrenDisplay;void 0===e?i.addChild(t._display):i.addChildAt(t._display,e)}_onRemoved(t){this._container._childrenDisplay.removeChild(t._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),n.each(this.values,(t=>{t.dispose()})))}}var o=i(6245),a=i(4596),h=i(7142),l=i(4431),c=i(1706),u=i(6881),d=i(2132),p=i(5040),g=i(7652);class f extends a.j{constructor(){super(...arguments),this._display=this._root._renderer.makeContainer(),this._childrenDisplay=this._root._renderer.makeContainer(),this.children=new r(this),this._percentageSizeChildren=[],this._percentagePositionChildren=[],this._prevWidth=0,this._prevHeight=0,this._contentWidth=0,this._contentHeight=0,this._childrenPrep=!1,this._childrenUpdt=!1}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){n.eachReverse(this.allChildren(),(t=>{t.dispose()})),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_beforeChanged(){this._childrenPrep||this._prepareChildren(),this._childrenUpdt||this._updateChildren(),super._beforeChanged()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each((t=>{t.removePrivate("x"),t.removePrivate("y")}))),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each((t=>{t.markDirtyPosition()})),this.isDirty("maskContent")){const t=this._childrenDisplay;let e=this._contentMask;this.get("maskContent")?e||(e=h.A.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=e,t.addChildAt(e._display,0),t.mask=e._display):e&&(t.removeChild(e._display),t.mask=null,e.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),n.each(this._percentageSizeChildren,(t=>{t._updateSize()})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t._updateSize()})),this.updateBackground()}updateBackground(){const t=this.get("background");let e=this._localBounds;if(e&&!this.isHidden()){let i=e.left,s=e.top,n=e.right-i,r=e.bottom-s,o=this.get("maxWidth"),a=this.get("maxHeight");a&&r>a&&(r=a),o&&n>o&&(n=o);let h=this.width(),l=this.height();t&&(t.setAll({width:n,height:r,x:i,y:s}),this._display.interactive&&(t._display.interactive=!0));const c=this._contentMask;c&&c.setAll({width:h+1,height:l+1});const u=this.get("verticalScrollbar");if(u){u.set("height",l),u.set("x",h-u.width()-u.get("marginRight",0)),u.set("end",u.get("start",0)+l/this._contentHeight);const t=u.get("background");t&&t.setAll({width:u.width(),height:l});let e=!0;this._contentHeight<=l&&(e=!1),u.setPrivate("visible",e)}}}_applyThemes(t=!1){return!!super._applyThemes(t)&&(this.eachChildren((e=>{e._applyThemes(t)})),!0)}_applyState(t){super._applyState(t),this.get("setStateOnChildren")&&this.eachChildren((e=>{e.states.apply(t)}))}_applyStateAnimated(t,e){super._applyStateAnimated(t,e),this.get("setStateOnChildren")&&this.eachChildren((i=>{i.states.applyAnimate(t,e)}))}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let t=this._localBounds;t&&(this._contentWidth=t.right-t.left,this._contentHeight=t.bottom-t.top)}else{let t=this.get("width"),e=this.get("height"),i=this.getPrivate("width"),s=this.getPrivate("height"),n={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),o=!1,a=!1;if((r instanceof l.G||r instanceof u.M)&&(o=!0),r instanceof c.Z&&(a=!0),null==t&&null==i||null==e&&null==s||this.get("verticalScrollbar")){let t=Number.MAX_VALUE,e=t,i=-t,s=t,r=-t;const h=this.get("paddingLeft",0),l=this.get("paddingTop",0),c=this.get("paddingRight",0),u=this.get("paddingBottom",0);this.children.each((t=>{if("absolute"!=t.get("position")&&t.get("isMeasured")){let n=t.adjustedLocalBounds(),h=t.x(),l=t.y(),c=h+n.left,u=h+n.right,d=l+n.top,p=l+n.bottom;o&&(c-=t.get("marginLeft",0),u+=t.get("marginRight",0)),a&&(d-=t.get("marginTop",0),p+=t.get("marginBottom",0)),ci&&(i=u),dr&&(r=p)}})),e==t&&(e=0),i==-t&&(i=0),s==t&&(s=0),r==-t&&(r=0),n.left=e-h,n.top=s-l,n.right=i+c,n.bottom=r+u;const d=this.get("minWidth");p.isNumber(d)&&d>0&&n.right-n.left=d?n.left=n.right-d:n.right=n.left+d);const g=this.get("minHeight");p.isNumber(g)&&g>0&&n.bottom-n.top=g?n.top=n.bottom-g:n.bottom=n.top+g)}this._contentWidth=n.right-n.left,this._contentHeight=n.bottom-n.top,p.isNumber(t)&&(n.left=0,n.right=t),p.isNumber(i)&&(n.left=0,n.right=i),p.isNumber(e)&&(n.top=0,n.bottom=e),p.isNumber(s)&&(n.top=0,n.bottom=s),this._localBounds=n}}_updateBounds(){const t=this.get("layout");t&&t.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){this._childrenPrep=!0;const t=this.innerWidth(),e=this.innerHeight();if(t!=this._prevWidth||e!=this._prevHeight){let i=this.get("layout"),s=!1,r=!1;i&&((i instanceof l.G||i instanceof u.M)&&(s=!0),i instanceof c.Z&&(r=!0)),n.each(this._percentageSizeChildren,(i=>{if(!s){let e=i.get("width");e instanceof o.gG&&i.setPrivate("width",e.value*t)}if(!r){let t=i.get("height");t instanceof o.gG&&i.setPrivate("height",t.value*e)}})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t.markDirtyBounds()})),this._prevWidth=t,this._prevHeight=e,this._sizeDirty=!0,this.updateBackground()}}_updateHTMLContent(){const t=this.get("html","");t&&""!==t?this._root._setHTMLContent(this,(0,d.q)(this,t)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(t){const e=this.get("verticalScrollbar");if(e){let i=t.y(),s=this.innerHeight(),n=t.height(),r=this._contentHeight,o=1-(s-n/2)/r;if(i+.7*n+this._childrenDisplay.y>s||i-.3*n+this._childrenDisplay.y<0){let t=Math.max(0,Math.min(o,(i-n/2)/r));e.animate({key:"start",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")})}}}_updateChildren(){if(this._childrenUpdt=!0,this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){const t=this.get("verticalScrollbar");if(t){t._setParent(this),t.startGrip.setPrivate("visible",!1),t.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",t.width()+t.get("marginRight",0)+t.get("marginLeft",0));let e=this.get("background");e||(e=this.set("background",h.A.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",(e=>{const i=e.originalEvent;if(!g.isLocalEvent(i,this))return;i.preventDefault();let s=i.deltaY/5e3;const n=t.get("start",0),r=t.get("end",1);n+s<=0&&(s=-n),r+s>=1&&(s=1-r),n+s>=0&&r+s<=1&&(t.set("start",n+s),t.set("end",r+s))})),this._disposers.push(this._vsbd0),this._vsbd1=t.events.on("rangechanged",(()=>{let e=this._contentHeight;const i=this._childrenDisplay,s=this._contentMask;i.y=-t.get("start",0)*e,i.markDirtyLayer(),s&&(s._display.y=-i.y,i.mask=s._display)})),this._disposers.push(this._vsbd1),this._display.addChild(t._display)}else{const t=this._prevSettings.verticalScrollbar;t&&(this._display.removeChild(t._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose(),this._childrenDisplay.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0))}}if(this.isDirty("background")){const t=this._prevSettings.background;t&&this._display.removeChild(t._display);const e=this.get("background");e instanceof a.j&&(e.set("isMeasured",!1),e._setParent(this),this._display.addChildAt(e._display,0))}if(this.isDirty("mask")){const t=this.get("mask"),e=this._prevSettings.mask;if(e&&(this._display.removeChild(e._display),e!=t&&e.dispose()),t){const e=t.parent;e&&e.children.removeValue(t),t._setParent(this),this._display.addChildAt(t._display,0),this._childrenDisplay.mask=t._display}}}_processTemplateField(){super._processTemplateField(),this.children.each((t=>{t._processTemplateField()}))}walkChildren(t){this.children.each(((e,i)=>{e instanceof f&&e.walkChildren(t),t(e,i)}))}eachChildren(t){const e=this.get("background");e&&t(e);const i=this.get("verticalScrollbar");i&&t(i);const s=this.get("mask");s&&t(s),this.children.values.forEach((e=>{t(e)}))}allChildren(){const t=[];return this.eachChildren((e=>{t.push(e)})),t}_setDataItem(t){const e=t!==this._dataItem;super._setDataItem(t);const i=this.get("html","");i&&""!==i&&e&&this._root._setHTMLContent(this,(0,d.q)(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}}f.className="Container",f.classNames=a.j.classNames.concat([f.className])},6691:function(t,e,i){"use strict";i.d(e,{Y:function(){return d}});var s=i(962),n=i(8777),r=i(3497),o=i(6245),a=i(1112),h=i(7449),l=i(7652),c=i(5040),u=i(5071);class d extends s._{_afterNew(){super._afterNew();const t=this.children.push(n.W.new(this._root,{html:'',isMeasured:!1}));t.hide(),this.setPrivate("input",t);let e=this.get("background");e?e.set("themeTags",["editablelabel","background"]):e=this.set("background",r.c.new(this._root,{themeTags:["editablelabel","background"]}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();const t=this.get("editOn","click");"none"!=t&&(this._editOnEvents=new h.FV([this.getPrivate("input").events.on(t,(t=>{})),this.events.on(t,(t=>{this.set("active",!0)}))]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){const t=this.get("active",!1);t?this._startEditing():this._stopEditing();const e=this.get("background");e&&e.set("active",t)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){const t=this.getPrivate("input");if(t&&t.getPrivate("htmlElement")){const e=t.getPrivate("htmlElement").querySelector(".am5-editable-label");e&&(this.setPrivate("textarea",e),e.addEventListener("input",(t=>{!1===this.get("multiLine")&&(e.value=e.value.replace(/\n/g," ")),this.set("text",e.value),this._syncStyle()})),e.addEventListener("blur",(t=>this.set("active",!1))),l.supports("keyboardevents")&&this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Escape"==l.getEventKey(t)&&this.set("active",!1)}))),this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Enter"==l.getEventKey(t)&&!1===this.get("multiLine")&&(t.preventDefault(),this.set("active",!1))}))),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._startEditing()}));this._text.set("opacity",0);const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(""==this.get("text","")&&this.set("text"," "),t.show(0),this.setTimeout((()=>{this._syncStyle(),e.focus()}),100))}_stopEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._stopEditing()}));const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(this.set("text",e.value),t.hide(0),this._text.set("opacity",1))}_syncStyle(){const t=this.getPrivate("input"),e=this.getPrivate("textarea"),i=t.getPrivate("htmlElement");if(e&&i){const t=window.getComputedStyle(e);u.each(t,(t=>{e.style[t]="initial"})),e.style.color=this.get("fill",(0,a.$_)(0)).toCSS(this.get("fillOpacity",1)),e.style.backgroundColor="rgba(0, 0, 0, 0)",e.style.border="none",e.style.outline="none",e.style.padding="0",e.wrap="off",e.style.resize="none",e.style.overflow="hidden";const s=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);s>0?e.style.maxWidth=s+"px":e.style.minWidth="",e.style.height="auto",e.style.minHeight=e.scrollHeight+"px",this.get("width")&&(e.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",e.style.minWidth="");const n=this.get("lineHeight");n?n instanceof o.gG?e.style.lineHeight=n.value+"":c.isNumber(n)&&(e.style.lineHeight=n+""):e.style.lineHeight="1.2";let r=this.get("fontFamily");r||(r=getComputedStyle(i,"font-family").getPropertyValue("font-family")),e.style.fontFamily=r;let h=this.get("fontSize");h?c.isNumber(h)&&(h+="px"):h=getComputedStyle(i,"font-size").getPropertyValue("font-size"),e.style.fontSize=h;let l=this.get("fontWeight");l||(l=getComputedStyle(i,"font-weight").getPropertyValue("font-weight")),e.style.fontWeight=l;let d=this.get("fontStyle");d||(d=getComputedStyle(i,"font-style").getPropertyValue("font-style")),e.style.fontStyle=d;const p=this.get("oversizedBehavior");e.style.whiteSpace="wrap"==p?"pre-wrap":"nowrap",this._root.events.on("frameended",(()=>{""==e.style.minWidth&&(e.style.minWidth=e.scrollWidth+20+"px");const t=this.get("textAlign","start");"center"==t?(e.style.textAlign="center",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-50%)")):"end"==t?(e.style.textAlign="right",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-100%)")):e.style.textAlign=t}))}}_syncText(){const t=this.getPrivate("textarea");let e=this.get("text","");" "==e&&(e=""),t&&(t.value=e)}}d.className="EditableLabel",d.classNames=s._.classNames.concat([d.className])},2433:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radiusX")||this.isDirty("radiusY")||this.isDirty("rotation"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawEllipse(0,0,Math.abs(this.get("radiusX")),Math.abs(this.get("radiusY")))}}n.className="Ellipse",n.classNames=s.T.classNames.concat([n.className])},1479:function(t,e,i){"use strict";i.d(e,{T:function(){return l},u:function(){return h}});var s=i(4429),n=i(4596),r=i(4680),o=i(5040),a=i(5071);const h=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"];class l extends n.j{constructor(){super(...arguments),this._display=this._root._renderer.makeGraphics(),this._clear=!1}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const t=this.get("fillGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("fill")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("fill")}))))}}if(this.isDirty("strokeGradient")){const t=this.get("strokeGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("stroke")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("stroke")}))))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let t=this.get("strokeDasharray");o.isNumber(t)&&(t=t<.5?[0]:[t]),this._display.setLineDash(t);const e=this.get("strokeDashoffset");e&&this._display.setLineDashOffset(e);const i=this.get("blendMode",r.b.NORMAL);this._display.blendMode=i;const s=this.get("draw");s&&"function"==typeof s&&s(this._display,this);const n=this.get("svgPath");null!=n&&this._display.svgPath(n)}}_afterChanged(){if(super._afterChanged(),this._clear){const t=this.get("fill"),e=this.get("fillGradient"),i=this.get("fillPattern"),n=this.get("fillOpacity"),r=this.get("stroke"),o=this.get("strokeGradient"),h=this.get("strokePattern"),l=this.get("shadowColor"),c=this.get("shadowBlur"),u=this.get("shadowOffsetX"),d=this.get("shadowOffsetY"),p=this.get("shadowOpacity");if(l&&(c||u||d)&&this._display.shadow(l,c,u,d,p),t&&!e&&(this._display.beginFill(t,n),this._display.endFill()),e){if(t){const i=e.get("stops",[]);i.length&&a.each(i,(e=>{e.color&&!e.colorInherited||!t||(e.color=t,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=n,e.opacityInherited=!0)}))}const i=e.getFill(this);i&&(this._display.beginFill(i,n),this._display.endFill())}if(i){const t=i.pattern;t&&(this._display.beginFill(t,n),this._display.endFill(),i instanceof s.v&&i.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}if(r||o||h){const t=this.get("strokeOpacity");let e=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(e/=this.get("scale",1)),this.get("crisp")&&(e/=this._root._renderer.resolution);const i=this.get("lineJoin"),n=this.get("lineCap");if(r&&!o&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke()),o){const s=o.get("stops",[]);s.length&&a.each(s,(e=>{e.color&&!e.colorInherited||!r||(e.color=r,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=t,e.opacityInherited=!0)}));const h=o.getFill(this);h&&(this._display.lineStyle(e,h,t,i,n),this._display.endStroke())}if(h){let r=h.pattern;r&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke(),h instanceof s.v&&h.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}l.className="Graphics",l.classNames=n.j.classNames.concat([l.className])},6881:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var s=i(2010),n=i(5071),r=i(751);class o extends s.A{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(t){let e=t.get("paddingLeft",0),i=t.get("paddingRight",0),n=t.get("paddingTop",0),o=t.maxWidth()-e-i,a=o,h=1;(0,s.j)(t,(t=>{if(t.get("visible")&&t.getPrivate("visible")&&!t.get("forceHidden")&&"absolute"!=t.get("position")){let e=t.width();eh&&(h=e)}})),a=r.fitToRange(a,1,o),h=r.fitToRange(h,1,o);let l=1;l=this.get("fixedWidthGrid")?o/h:o/a,l=Math.max(1,Math.floor(l)),l=Math.min(this.get("maxColumns",Number.MAX_VALUE),l);let c=this.getColumnWidths(t,l,h,o),u=n,d=0,p=0;l=c.length;let g=e;(0,s.j)(t,(t=>{if("relative"==t.get("position")&&t.isVisible()){const i=t.get("marginTop",0),s=t.get("marginBottom",0);let n=t.adjustedLocalBounds(),r=t.get("marginLeft",0),o=t.get("marginRight",0),a=g+r-n.left,h=u+i-n.top;t.setPrivate("x",a),t.setPrivate("y",h),g+=c[d]+o,p=Math.max(p,t.height()+i+s),d++,d>=l&&(d=0,g=e,u+=p,p=0)}}))}getColumnWidths(t,e,i,r){let o=0,a=[],h=0;return(0,s.j)(t,(s=>{let n=s.adjustedLocalBounds();"absolute"!=s.get("position")&&s.isVisible()&&(this.get("fixedWidthGrid")?a[h]=i:a[h]=Math.max(0|a[h],n.right-n.left+s.get("marginLeft",0)+s.get("marginRight",0)),h{o+=t})),o>r?e>2?(e-=1,this.getColumnWidths(t,e,i,r)):[r]:a}}o.className="GridLayout",o.classNames=s.A.classNames.concat([o.className])},4431:function(t,e,i){"use strict";i.d(e,{G:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingLeft",0),i=t.innerWidth(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minWidth",t.getPrivate("minWidth",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.width()),i-=e+t.get("marginLeft",0)+t.get("marginRight",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginLeft",0)-t.get("marginRight",0),n=t.get("minWidth",t.getPrivate("minWidth",-1/0)),r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("width",s)}else t._prevSettings.width instanceof r.gG&&t.setPrivate("width",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginLeft",0),s=t.get("marginRight",0),n=t.get("maxWidth"),r=e.left,o=e.right;n&&o-r>n&&(o=r+n);let h=a+i-r;t.setPrivate("x",h),a=h+o+s}else t.setPrivate("x",void 0)}))}}o.className="HorizontalLayout",o.classNames=s.A.classNames.concat([o.className])},962:function(t,e,i){"use strict";i.d(e,{_:function(){return h}});var s=i(2036),n=i(6245),r=i(8777),o=i(5071),a=i(5040);class h extends r.W{constructor(){super(...arguments),this._textKeys=["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),o.each(this._textKeys,(t=>{const e=this.get(t);null!=e&&this._text.set(t,e)})),""!==this.get("html","")&&this._text.set("text",""),this.onPrivate("maxWidth",(()=>{this._setMaxDimentions()})),this.onPrivate("maxHeight",(()=>{this._setMaxDimentions()}))}_makeText(){this._text=this.children.push(s.x.new(this._root,{}))}_updateChildren(){super._updateChildren();const t=this._text;if(o.each(this._textKeys,(t=>{this._text.set(t,this.get(t))})),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),""!==this.get("html","")?t.set("text",""):(t.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){const e=this.get("textAlign");let i;null!=this.get("width")?i="right"==e?n.AQ:"center"==e?n.CI:0:"left"==e||"start"==e?i=this.get("paddingLeft",0):"right"!=e&&"end"!=e||(i=-this.get("paddingRight",0)),t.set("x",i)}const e=this.get("background");e&&e.setPrivate("visible",t._display.textVisible)}_maybeUpdateHTMLColor(){const t=this.getPrivate("htmlElement");t&&this.get("fill")&&(t.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){const t=this.get("rotation"),e=90==t||270==t||-90==t,i=this._text,s=this.get("maxWidth",this.getPrivate("maxWidth",1/0));a.isNumber(s)?i.set(e?"maxHeight":"maxWidth",s-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(e?"maxHeight":"maxWidth",void 0);const n=this.get("maxHeight",this.getPrivate("maxHeight",1/0));a.isNumber(n)?i.set(e?"maxWidth":"maxHeight",n-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(e?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",(()=>{i.markDirtyBounds()}))}_setDataItem(t){super._setDataItem(t),this._markDirtyKey("text"),this._markDirtyKey("html");const e=this._text;e.get("populateText")&&e.markDirtyText();const i=this.get("html");i&&""!==i&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}}h.className="Label",h.classNames=r.W.classNames.concat([h.className])},2010:function(t,e,i){"use strict";i.d(e,{A:function(){return r},j:function(){return n}});var s=i(6331);function n(t,e){t.get("reverseChildren",!1)?t.children.eachReverse(e):t.children.each(e)}class r extends s.JH{}r.className="Layout",r.classNames=s.JH.classNames.concat([r.className])},3105:function(t,e,i){"use strict";i.d(e,{D:function(){return c}});var s=i(3399),n=i(8777),r=i(962),o=i(3497),a=i(5769),h=i(7144),l=i(7652);class c extends s.F{constructor(){super(...arguments),this.itemContainers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:o.c.new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template])))),this.markers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template])))),this.labels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template])))),this.valueLabels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template])))),this.markerRectangles=this.addDisposer(new h.o(a.YS.new({}),(()=>o.c._new(this._root,{themeTags:l.mergeTags(this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template]))))}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(t){const e=this.children.push(this.itemContainers.make());return e._setDataItem(t),this.itemContainers.push(e),e.states.create("disabled",{}),e}makeMarker(){const t=this.markers.make();return this.markers.push(t),t.states.create("disabled",{}),t}makeLabel(){const t=this.labels.make();return t.states.create("disabled",{}),t}makeValueLabel(){const t=this.valueLabels.make();return t.states.create("disabled",{}),t}makeMarkerRectangle(){const t=this.markerRectangles.make();return t.states.create("disabled",{}),t}processDataItem(t){super.processDataItem(t);const e=this.makeItemContainer(t),i=this.get("nameField"),s=this.get("fillField"),n=this.get("strokeField");if(e){const r=this.get("clickTarget","itemContainer"),o=t.dataContext;o&&o.set&&o.set("legendDataItem",t),e._setDataItem(t),t.set("itemContainer",e);const a=this.makeMarker();if(a){e.children.push(a),a._setDataItem(t),t.set("marker",a);const i=this.get("useDefaultMarker"),r=a.children.push(this.makeMarkerRectangle());let h=t.get("fill"),l=t.get("stroke");t.set("markerRectangle",r),o&&o.get&&(h=o.get(s,h),l=o.get(n,l)),l||(l=h),i?o.on&&(o.on(s,(()=>{r.set("fill",o.get(s))})),o.on(n,(()=>{r.set("stroke",o.get(n))}))):o&&o.createLegendMarker&&o.createLegendMarker(),r.setAll({fill:h,stroke:l});const c=o.component;c&&c.updateLegendMarker&&c.updateLegendMarker(o)}const h=this.makeLabel();if(h){e.children.push(h),h._setDataItem(t),t.set("label",h),h.text.on("text",(()=>{e.setRaw("ariaLabel",h.text._getText()+("none"!==this.get("clickTarget")?"; "+this._t("Press ENTER to toggle"):"")),e.markDirtyAccessibility()})),o&&o.get&&t.set("name",o.get(i));let s=t.get("name");s&&h.set("text",s)}const l=this.makeValueLabel();if(l&&(e.children.push(l),l._setDataItem(t),t.set("valueLabel",l)),o&&o.show&&(o.on("visible",(t=>{e.set("disabled",!t)})),o.get("visible")||e.set("disabled",!0),"none"!=r)){let i=e;"marker"==r&&(i=a),this._addClickEvents(i,o,t)}this.children.values.sort(((t,e)=>{const i=t.dataItem.dataContext,s=e.dataItem.dataContext;if(i&&s){const t=this.data.indexOf(i),e=this.data.indexOf(s);if(t>e)return 1;if(t{const t=e.component;t&&t.hoverDataItem&&t.hoverDataItem(e)})),t.events.on("pointerout",(()=>{const t=e.component;t&&t.hoverDataItem&&t.unhoverDataItem(e)})),t.events.on("click",(()=>{const s=i.get("label").text._getText();e.show&&e.isHidden&&(e.isHidden()||!1===e.get("visible"))?(e.show(),t.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,s))):e.hide&&(e.hide(),t.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,s)))}))}disposeDataItem(t){super.disposeDataItem(t);const e=t.dataContext;e&&e.get&&e.get("legendDataItem")==t&&e.set("legendDataItem",void 0);let i=t.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let s=t.get("marker");s&&(this.markers.removeValue(s),s.dispose());let n=t.get("markerRectangle");n&&(this.markerRectangles.removeValue(n),n.dispose());let r=t.get("label");r&&(this.labels.removeValue(r),r.dispose());let o=t.get("valueLabel");o&&(this.valueLabels.removeValue(o),o.dispose())}}c.className="Legend",c.classNames=s.F.classNames.concat([c.className])},2077:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var s=i(1479);function n(t,e){for(let i=0,s=e.length;i0){let e=s[0];if(e.length>0){let i=e[0];t.moveTo(i.x,i.y);for(let e=0,i=s.length;e0){let e=t[0];this._display.moveTo(e.x,e.y),n(this._display,[[t]])}else if(e)n(this._display,e);else if(!this.get("draw")){let t=this.width(),e=this.height();this._display.moveTo(0,0),this._display.lineTo(t,e)}}}}o.className="Line",o.classNames=s.T.classNames.concat([o.className])},5812:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var s=i(8777),n=i(941),r=i(6387),o=i(751);class a extends s.W{constructor(){super(...arguments),this.line=this.children.push(r.P.new(this._root,{themeTags:["line"]})),this.hitLine=this.children.push(r.P.new(this._root,{themeTags:["hit"]})),this.startArrow=this.children.push(n.C.new(this._root,{themeTags:["start","arrow"]})),this.endArrow=this.children.push(n.C.new(this._root,{themeTags:["end","arrow"]}))}_afterNew(){this.addTag("link"),super._afterNew()}_updateChildren(){if(super._updateChildren(),this.isDirty("points")){let t=r.P.makeOrthogonal(this.get("points",[]));this.line.set("points",t),this.hitLine.set("points",t);const e=this.startArrow,i=this.endArrow,s=t.length;if(s>1){const[n,r]=t;e.setAll({x:n.x,y:n.y,rotation:o.getAngle(n,r)-90});const a=t[s-1],h=t[s-2];i.setAll({x:a.x,y:a.y,rotation:o.getAngle(h,a)+90})}else if(1===s){const[s]=t;e.setAll({x:s.x,y:s.y,rotation:0}),i.setAll({x:s.x,y:s.y,rotation:0})}}}}a.className="Link",a.classNames=s.W.classNames.concat([a.className])},8289:function(t,e,i){"use strict";i.d(e,{G:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){return function(e){return new s(e,t)}}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(s+a,n+a*e,r-a,o-a*i,r,o)}},5892:function(t,e,i){"use strict";i.d(e,{$:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){[t,e]=[e,t];let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){function e(e){return new s(e,t)}return e.tension=function(t){return n(+t)},e}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(n+a*e,s+a,o-a*i,r-a,o,r)}},7049:function(t,e,i){"use strict";i.d(e,{l:function(){return h}});var s=i(8777),n=i(6691),r=i(7142),o=i(941),a=i(1112);class h extends s.W{constructor(){super(...arguments),this.label=this.children.push(n.Y.new(this._root,{})),this.buttonsContainer=this.children.push(s.W.new(this._root,{themeTags:["buttons"]})),this.upButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["upbutton"]})),this.downButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["downbutton"]}))}_afterNew(){this.addTag("numericstepper"),this.set("layout",this._root.horizontalLayout),this.label.adapters.add("text",(t=>(t&&t.replace(/\D/g,""),""===t&&(t="0"),t))),this.set("background",r.A.new(this._root,{fillOpacity:0,fill:(0,a.$_)(16777215)})),this.buttonsContainer.states.create("hidden",{opacity:0,visible:!0}),this.events.on("pointerover",(()=>{this.buttonsContainer.set("active",!0)})),this.events.on("pointerout",(()=>{this.buttonsContainer.set("active",!1)})),this.label.on("text",(t=>{if(t){const e=parseFloat(t);isNaN(e)||this.set("value",e)}})),this.upButton.events.on("click",(()=>{this.set("value",this.get("value",0)+1)})),this.downButton.events.on("click",(()=>{this.set("value",Math.max(0,this.get("value",0)-1))})),super._afterNew()}_updateChildren(){super._updateChildren();const t=this.get("value",0),e=this.label;if(this.isDirty("value")&&e.set("text",t.toString()),this.isDirty("disabled")){const t=this.get("disabled",!1);this.set("interactive",!t),this.upButton.set("interactive",!t),this.downButton.set("interactive",!t),t?(this.label.set("editOn","none"),this.buttonsContainer.hide(0)):(this.label.set("editOn","click"),this.buttonsContainer.show(0))}}}h.className="NumericStepper",h.classNames=s.W.classNames.concat([h.className])},6387:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),this.isDirty("points")&&(this._clear=!0)}static makeOrthogonal(t){if(t.length>1){const e=[];for(let i=0;i0&&o&&l){if(h){s=Math.min(s,Math.abs(r.x-o.x)/2,Math.abs(r.y-n.y)/2);const e=Math.sign(r.y-n.y);t.lineTo(r.x,r.y-s*e);const i=o.x{this._display.image=e,this._updateSize(),!i.isDisposed()&&i.isEnabled("loaded")&&i.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{!i.isDisposed()&&i.isEnabled("loaderror")&&i.dispatch("loaderror",{type:"loaderror",target:this})}))}}_updateSize(){super._updateSize();const t=this._display.image;if(t){let e=this.getPrivate("width",this.get("width")),i=this.getPrivate("height",this.get("height"));const s=t.width&&t.height?t.width/t.height:0;n.isNumber(e)&&n.isNumber(i)?(this._display.width=e,this._display.height=i):n.isNumber(e)&&s?i=e/s:n.isNumber(i)&&s?e=i*s:(e=t.width,i=t.height),n.isNumber(e)&&(this._display.width=e),n.isNumber(i)&&(this._display.height=i),this.markDirtyBounds(),this.markDirty()}}}r.className="Picture",r.classNames=s.j.classNames.concat([r.className])},8931:function(t,e,i){"use strict";i.d(e,{i:function(){return r}});var s=i(1479),n=i(751);class r extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let t=this.width(),e=this.height();if(t>0&&e>0){let i=this.get("cornerRadius",8);i=n.fitToRange(i,0,Math.min(t/2,e/2));let s=this.get("pointerX",0),r=this.get("pointerY",0),o=this.get("pointerBaseWidth",15)/2,a=0,h=0,l=0,c=(s-a)*(e-h)-(r-h)*(t-a),u=(s-l)*(0-e)-(r-e)*(t-l);const d=this._display;if(d.moveTo(i,0),c>0&&u>0){let e=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,-1/0,0),d.lineTo(e-o,0),d.lineTo(s,r),d.lineTo(e+o,0)}if(d.lineTo(t-i,0),d.arcTo(t,0,t,i,i),c>0&&u<0){let a=Math.round(n.fitToRange(r,i+o,e-o-i));s=n.fitToRange(s,t,1/0),d.lineTo(t,i),d.lineTo(t,Math.max(a-o,i)),d.lineTo(s,r),d.lineTo(t,a+o)}if(d.lineTo(t,e-i),d.arcTo(t,e,t-i,e,i),c<0&&u<0){let a=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,e,1/0),d.lineTo(t-i,e),d.lineTo(a+o,e),d.lineTo(s,r),d.lineTo(a-o,e)}if(d.lineTo(i,e),d.arcTo(0,e,0,e-i,i),c<0&&u>0){let t=Math.round(n.fitToRange(r,i+o,e-i-o));s=n.fitToRange(s,-1/0,0),d.lineTo(0,e-i),d.lineTo(0,t+o),d.lineTo(s,r),d.lineTo(0,Math.max(t-o,i))}d.lineTo(0,i),d.arcTo(0,0,i,0,i),d.closePath()}}}}r.className="PointedRectangle",r.classNames=s.T.classNames.concat([r.className])},7770:function(t,e,i){"use strict";i.d(e,{m:function(){return r}});var s=i(1479),n=i(5071);class r extends s.T{_beforeChanged(){if(super._beforeChanged(),this.isDirty("coordinates")){const t=[],e=this.get("coordinates");e&&n.each(e,(e=>{t.push({x:e[0],y:e[1]})})),this.set("points",t)}if(this.isPrivateDirty("points")&&(this._clear=!0),this.isDirty("points")){this._clear=!0;const t=this.get("points"),e=this._prevSettings.points;if(e){if(t){let i=n.copy(t),s=n.copy(e),r=i.length,o=s.length;if(r>o){let t=n.copy(i);for(let e=0;er){let t=n.copy(s);for(let e=0;e{this._markDirtyPrivateKey("morphProgress")}))}}else this.setPrivateRaw("previousPoints",t),this.setPrivateRaw("points",t);let i=1/0,s=-1/0,r=1/0,o=-1/0;if(t)for(let e=1,n=t.length;e{this.label.markDirtyKey("text")}))}}}l.className="ProgressPie",l.classNames=n.W.classNames.concat([l.className])},815:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(6245),n=i(962),r=i(4244),o=i(751),a=i(7652);class h extends n._{constructor(){super(...arguments),this._flipped=!1}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(r.f.new(this._root,{}))}baseRadius(){const t=this.getPrivate("radius",0),e=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return e+a.relativeToValue(i,t-e)}radius(){const t=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(t?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){const t=this.get("textType","adjusted"),e=this.get("inside",!1),i=this.get("orientation");let n=o.normalizeAngle(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",e);const r=o.sin(n),a=o.cos(n);let h=this.baseRadius(),l=this.radius();if(this._display.angle=0,"circular"==t)this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",l);else{0==h&&(n=0,l=0);let e=l*a,o=l*r;"radial"==t?(this.setRaw("x",e),this.setRaw("y",o),n<90||n>270||"auto"!=i?(this._display.angle=n,this._flipped=!1):(this._display.angle=n+180,this._flipped=!0),this._dirty.rotation=!1):"adjusted"==t?(this.setRaw("centerX",s.CI),this.setRaw("centerY",s.CI),this.setRaw("x",e),this.setRaw("y",o)):"regular"==t&&(this.setRaw("x",e),this.setRaw("y",o))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){const t=this.get("textType","regular"),e=this.get("inside",!1);let i=0,n=0,r=this.get("labelAngle",0),a=this.localBounds(),h=a.right-a.left,l=a.bottom-a.top;if("radial"==t){if(this._flipped){let t=this.get("centerX");t instanceof s.gG&&(h*=1-2*t.value),i=h*o.cos(r),n=h*o.sin(r)}}else e||"adjusted"!=t||(i=h/2*o.cos(r),n=l/2*o.sin(r));this.setRaw("dx",i),this.setRaw("dy",n),super._updatePosition()}get text(){return this._text}}h.className="RadialLabel",h.classNames=n._.classNames.concat([h.className])},4244:function(t,e,i){"use strict";i.d(e,{f:function(){return r}});var s=i(2036),n=i(751);class r extends s.x{constructor(){super(...arguments),this._display=this._root._renderer.makeRadialText("",this.textStyle)}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*n.RADIANS,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}r.className="RadialText",r.classNames=s.x.classNames.concat([r.className])},7142:function(t,e,i){"use strict";i.d(e,{A:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let t=this.width(),e=this.height(),i=0,s=0,n=t/Math.abs(t),r=e/Math.abs(e);if(this.get("containStroke",!1)){const o=this.get("strokeWidth",0);t-=o*n,e-=o*r,i+=o/2*n,s+=o/2*r}this._display.drawRect(i,s,t,e)}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Rectangle",n.classNames=s.T.classNames.concat([n.className])},3497:function(t,e,i){"use strict";i.d(e,{c:function(){return a}});var s=i(5040),n=i(751),r=i(7652),o=i(7142);class a extends o.A{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let t=this.width(),e=this.height(),i=t/Math.abs(t),o=e/Math.abs(e),a=0,h=0;const l=this.get("strokeWidth",0);this.get("containStroke",!1)&&(t-=i*l,e-=o*l,a+=i*l/2,h+=o*l/2);let c=t,u=e;if(s.isNumber(c)&&s.isNumber(u)){let t=Math.min(c,u)/2,e=r.relativeToValue(this.get("cornerRadiusTL",8),t),s=r.relativeToValue(this.get("cornerRadiusTR",8),t),l=r.relativeToValue(this.get("cornerRadiusBR",8),t),d=r.relativeToValue(this.get("cornerRadiusBL",8),t),p=Math.min(Math.abs(c/2),Math.abs(u/2));e=n.fitToRange(e,0,p),s=n.fitToRange(s,0,p),l=n.fitToRange(l,0,p),d=n.fitToRange(d,0,p);const g=this._display;g.moveTo(a+e*i,h),g.lineTo(a+c-s*i,h),s>0&&g.arcTo(a+c,h,a+c,h+s*o,s),g.lineTo(a+c,h+u-l*o),l>0&&g.arcTo(a+c,h+u,a+c-l*i,h+u,l),g.lineTo(a+d*i,h+u),d>0&&g.arcTo(a,h+u,a,h+u-d*o,d),g.lineTo(a,h+e*o),e>0&&g.arcTo(a,h,a+e*i,h,e),g.closePath()}}}a.className="RoundedRectangle",a.classNames=o.A.classNames.concat([a.className])},6001:function(t,e,i){"use strict";i.d(e,{L:function(){return l}});var s=i(3497),n=i(8777),r=i(1479),o=i(8054),a=i(5040),h=i(7652);class l extends n.W{constructor(){super(...arguments),this.thumb=this._makeThumb(),this.startGrip=this._makeButton(),this.endGrip=this._makeButton(),this._thumbBusy=!1,this._startDown=!1,this._endDown=!1,this._thumbDown=!1}_addOrientationClass(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=s.c.new(this._root,{themeTags:h.mergeTags(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(o.z.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:r.T.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(s.c.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(t){t&&this._disposers.push(t.events.on("stopped",(()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1})))}_afterNew(){this._addOrientationClass(),super._afterNew();const t=this.startGrip,e=this.endGrip,i=this.thumb,s=this.get("background");s&&this._disposers.push(s.events.on("click",(t=>{this.setPrivateRaw("isBusy",!0);const e=this._display.toLocal(t.point),s=this.width(),n=this.height(),r=this.get("orientation");let o,a,h;o="vertical"==r?(e.y-i.height()/2)/n:(e.x-i.width()/2)/s,"vertical"==r?(a=o*n,h="y"):(a=o*s,h="x");const l=this.get("animationDuration",0);l>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:h,to:a,duration:l,easing:this.get("animationEasing")}))):(this.thumb.set(h,a),this._root.events.once("frameended",(()=>{this.setPrivateRaw("isBusy",!1)})))}))),this._disposers.push(i.events.on("dblclick",(t=>{if(!h.isLocalEvent(t.originalEvent,this))return;const e=this.get("animationDuration",0),i=this.get("animationEasing");this.animate({key:"start",to:0,duration:e,easing:i}),this.animate({key:"end",to:1,duration:e,easing:i})}))),this._disposers.push(t.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"}))),this._disposers.push(e.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"}))),this._disposers.push(i.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0}))),this._disposers.push(t.events.on("globalpointerup",(()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1}))),this._disposers.push(e.events.on("globalpointerup",(()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1}))),this._disposers.push(i.events.on("globalpointerup",(()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1}))),this._disposers.push(t.on("x",(()=>{this._updateThumb()}))),this._disposers.push(e.on("x",(()=>{this._updateThumb()}))),this._disposers.push(t.on("y",(()=>{this._updateThumb()}))),this._disposers.push(e.on("y",(()=>{this._updateThumb()}))),this._disposers.push(i.events.on("positionchanged",(()=>{this._updateGripsByThumb()}))),"vertical"==this.get("orientation")?(t.set("x",0),e.set("x",0),this._disposers.push(i.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()-i.height()),0)))),this._disposers.push(i.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("x",(t=>this.width()/2))),this._disposers.push(e.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0)))),this._disposers.push(e.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0))))):(t.set("y",0),e.set("y",0),this._disposers.push(i.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()-i.width()),0)))),this._disposers.push(i.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("y",(t=>this.height()/2))),this._disposers.push(e.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))),this._disposers.push(e.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){const t="rangechanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){const t="released";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}updateGrips(){const t=this.startGrip,e=this.endGrip,i=this.get("orientation"),s=this.height(),n=this.width();"vertical"==i?(t.set("y",s*this.get("start",0)),e.set("y",s*this.get("end",1))):(t.set("x",n*this.get("start",0)),e.set("x",n*this.get("end",1)));const r=this.getPrivate("positionTextFunction"),o=Math.round(100*this.get("start",0)),a=Math.round(100*this.get("end",0));let h,l;r?(h=r.call(this,this.get("start",0)),l=r.call(this,this.get("end",0))):(h=o+"%",l=a+"%"),t.set("ariaLabel",this._t("From %1",void 0,h)),t.set("ariaValueNow",""+o),t.set("ariaValueText",o+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100"),e.set("ariaLabel",this._t("To %1",void 0,l)),e.set("ariaValueNow",""+a),e.set("ariaValueText",a+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100")}_updateThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip,s=this.height(),n=this.width();let r=e.x(),o=i.x(),h=e.y(),l=i.y(),c=0,u=1;"vertical"==this.get("orientation")?a.isNumber(h)&&a.isNumber(l)&&(this._thumbBusy||t.isDragging()||(t.set("height",l-h),t.set("y",h)),c=h/s,u=l/s):a.isNumber(r)&&a.isNumber(o)&&(this._thumbBusy||t.isDragging()||(t.set("width",o-r),t.set("x",r)),c=r/n,u=o/n),!this.getPrivate("isBusy")||this.get("start")==c&&this.get("end")==u||(this.set("start",c),this.set("end",u));const d=this.getPrivate("positionTextFunction"),p=Math.round(100*this.get("start",0)),g=Math.round(100*this.get("end",0));let f,_;d?(f=d.call(this,this.get("start",0)),_=d.call(this,this.get("end",0))):(f=p+"%",_=g+"%"),t.set("ariaLabel",this._t("From %1 to %2",void 0,f,_)),t.set("ariaValueNow",""+p),t.set("ariaValueText",p+"%")}_updateGripsByThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip;if("vertical"==this.get("orientation")){const s=t.height();e.set("y",t.y()),i.set("y",t.y()+s)}else{const s=t.width();e.set("x",t.x()),i.set("x",t.x()+s)}}}l.className="Scrollbar",l.classNames=n.W.classNames.concat([l.className])},5829:function(t,e,i){"use strict";i.d(e,{j:function(){return h}});var s=i(1337),n=i(8777),r=i(7144),o=i(6245),a=i(5071);class h extends s.k{constructor(){super(...arguments),this.seriesContainer=n.W.new(this._root,{width:o.AQ,height:o.AQ,isMeasured:!1}),this.series=new r.dn}_afterNew(){super._afterNew(),this._disposers.push(this.series);const t=this.seriesContainer.children;this._disposers.push(this.series.events.onAll((e=>{if("clear"===e.type){a.each(e.oldValues,(t=>{this._removeSeries(t)}));const t=this.get("colors");t&&t.reset();const i=this.get("patterns");i&&i.reset()}else if("push"===e.type)t.moveValue(e.newValue),this._processSeries(e.newValue);else if("setIndex"===e.type)t.setIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("insertIndex"===e.type)t.insertIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("removeIndex"===e.type)this._removeSeries(e.oldValue);else if("moveIndex"===e.type)t.moveValue(e.value,e.newIndex),this._processSeries(e.value);else{if("swap"!==e.type)throw new Error("Unknown IListEvent type");{const i=e.a,s=e.b,n=this.series.indexOf(i),r=this.series.indexOf(s);t.moveValue(i,r),t.moveValue(s,n),this.series.each((t=>{this._processSeries(t),t.markDirtyValues()}))}}})))}_processSeries(t){t.chart=this,t._placeBulletsContainer(this)}_removeSeries(t){t._handleRemoved(),t.isDisposed()||(this.seriesContainer.children.removeValue(t),t._removeBulletsContainer())}}h.className="SerialChart",h.classNames=s.k.classNames.concat([h.className])},3399:function(t,e,i){"use strict";i.d(e,{F:function(){return g}});var s=i(7582),n=i(9361),r=i(7144),o=i(1112),a=i(6490),h=i(6245),l=i(8777),c=i(962),u=i(5071),d=i(5040),p=i(1926);class g extends n.w{constructor(){super(...arguments),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1,this._dataProcessed=!1,this._baseSeriesDirty=!1,this.bullets=new r.aV,this.bulletsContainer=l.W.new(this._root,{width:h.AQ,height:h.AQ,position:"absolute"})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll((()=>{this._handleBullets(this.dataItems)})))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let t=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),t)}endIndex(){let t=this.dataItems.length;return Math.max(0,Math.min(this.getPrivate("endIndex",t),t))}_handleBullets(t){u.each(t,(t=>{const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)})),this.markDirtyValues()}_makeBullets(t){this._shouldMakeBullet(t)&&(t.bullets=[],this.bullets.each((e=>{this._makeBullet(t,e)})))}_shouldMakeBullet(t){return!0}_makeBullet(t,e,i){const s=e(this._root,this,t);return s&&(s._index=i,this._makeBulletReal(t,s)),s}_makeBulletReal(t,e){let i=e.get("sprite");i&&(i._setDataItem(t),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),e.series=this,t.bullets.push(e)}addBullet(t,e){t.bullets||(t.bullets=[]),e&&this._makeBulletReal(t,e)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();const t=this.dataItems,e=t.length;let i=this.startIndex(),s=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const t=this.getPrivate("baseValueSeries");t&&this._disposers.push(t.onPrivate("startIndex",(()=>{this._baseSeriesDirty=!0,this.markDirtyValues()})))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,e),this._aggregatesCalculated=!0,0!=i&&(this._psi=void 0))),this._psi==i&&this._pei==s&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===i&&s===e&&this._aggregatesCalculated||this._calculateAggregates(i,s),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let t=this.get("tooltip");t&&(t.hide(0),t.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let t;const e=this.get("legendDataItem");if(e&&(t=e.get("markerRectangle"),t&&this.isVisible())){if(this.isDirty("stroke")){let e=this.get("stroke");t.set("stroke",e)}if(this.isDirty("fill")){let e=this.get("fill");t.set("fill",e)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let i=this.startIndex(),s=this.endIndex();s-1==s.indexOf(t))));const n={},r={},o={},a={},h={},l={},c={},u={},d={};for(let t=0,e=i.length;t{if(0===t){const t=l[x],s=i-t;e.setRaw(_,s),e.setRaw(m,s/t*100)}const n=i-d[x],r=i-l[x];e.setRaw(y,n),e.setRaw(v,n/d[x]*100),e.setRaw(w,r),e.setRaw(b,r/l[x]*100),d[s]=i};for(let t=k;tt&&(a[f]=t),h[f]0&&t--,delete d[f];for(let e=t;e0&&u.each(t,(t=>{const e=t.minValue||this.getPrivate(t.dataField+"Low")||0,i=t.maxValue||this.getPrivate(t.dataField+"High")||0;u.each(t.target._entities,(s=>{const n=s.dataItem.get(t.dataField);if(!d.isNumber(n)){t.neutral&&s.set(t.key,t.neutral);const e=s.states;if(e){const i=e.lookup("default");i&&t.neutral&&i.set(t.key,t.neutral)}if(!t.customFunction)return}if(t.customFunction)t.customFunction.call(this,s,e,i,n);else{let r,l;r=t.logarithmic?(Math.log(n)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E):(n-e)/(i-e),!d.isNumber(n)||d.isNumber(r)&&Math.abs(r)!=1/0||(r=.5),d.isNumber(t.min)?l=t.min+(t.max-t.min)*r:t.min instanceof o.Il?l=o.Il.interpolate(r,t.min,t.max):t.min instanceof h.gG&&(l=(0,a.Wn)(r,t.min,t.max)),s.set(t.key,l);const c=s.states;if(c){const e=c.lookup("default");e&&e.set(t.key,l)}}}))})),this.get("visible")){const t=this.dataItems;let e=t.length,i=this.startIndex(),s=this.endIndex();s0&&i--;for(let e=0;e{this._positionBullet(t);const e=t.get("sprite");t.get("dynamic")&&(e&&(e._markDirtyKey("fill"),e.markDirtySize()),e instanceof l.W&&e.walkChildren((t=>{t._markDirtyKey("fill"),t.markDirtySize(),t instanceof c._&&t.text.markDirtyText()}))),e instanceof c._&&e.get("populateText")&&e.text.markDirtyText()}))}_hideBullets(t){t.bullets&&u.each(t.bullets,(t=>{let e=t.get("sprite");e&&e.setPrivate("visible",!1)}))}_positionBullet(t){}_placeBulletsContainer(t){t.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const t=this.bulletsContainer;t.parent&&t.parent.children.removeValue(t)}disposeDataItem(t){const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.show(e))})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.hide(e))})),yield Promise.all(s)}))}_sequencedShowHide(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(d.isNumber(e)||(e=this.get("interpolationDuration",0)),e>0){const i=this.startIndex(),n=this.endIndex();yield Promise.all(u.map(this.dataItems,((r,o)=>(0,s.mG)(this,void 0,void 0,(function*(){let s=e||0;(on+10)&&(s=0);let a=this.get("sequencedDelay",0)+s/(n-i);yield p.sleep(a*(o-i)),t?yield this.showDataItem(r,s):yield this.hideDataItem(r,s)})))))}else yield Promise.all(u.map(this.dataItems,(e=>t?this.showDataItem(e,0):this.hideDataItem(e,0))))}))}updateLegendValue(t){if(t){const e=t.get("legendDataItem");if(e){const i=e.get("valueLabel");if(i){const e=i.text;let s="";i._setDataItem(t),s=this.get("legendValueText",e.get("text","")),i.set("text",s),e.markDirtyText()}const s=e.get("label");if(s){const e=s.text;let i="";s._setDataItem(t),i=this.get("legendLabelText",e.get("text","")),s.set("text",i),e.markDirtyText()}}}}updateLegendMarker(t){}_onHide(){super._onHide();const t=this.getTooltip();t&&t.hide()}hoverDataItem(t){}unhoverDataItem(t){}_getBase(t){const e=this.dataItems[this.startIndex()];return e?e.get(t):0}}g.className="Series",g.classNames=n.w.classNames.concat([g.className])},5863:function(t,e,i){"use strict";i.d(e,{p:function(){return h}});var s=i(1479),n=i(5040),r=i(6245),o=i(832),a=i(751);class h extends s.T{constructor(){super(...arguments),this.ix=0,this.iy=0,this._generator=(0,o.Z)()}_getTooltipPoint(){let t=this.get("tooltipX"),e=this.get("tooltipY"),i=0,s=0;n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e);let o=this.get("radius",0),a=this.get("innerRadius",0);return o+=this.get("dRadius",0),a+=this.get("dInnerRadius",0),a<0&&(a=o+a),t instanceof r.gG&&(i=this.ix*(a+(o-a)*t.value)),e instanceof r.gG&&(s=this.iy*(a+(o-a)*e.value)),this.get("arc")>=360&&0==a&&(i=0,s=0),{x:i,y:s}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this.get("startAngle",0),e=this.get("arc",0);const i=this._generator;e<0&&(t+=e,e*=-1),e>.1&&i.cornerRadius(this.get("cornerRadius",0)),i.context(this._display);let s=this.get("radius",0),n=this.get("innerRadius",0);s+=this.get("dRadius",0),n+=this.get("dInnerRadius",0),n<0&&(n=s+n),i({innerRadius:n,outerRadius:s,startAngle:(t+90)*a.RADIANS,endAngle:(t+e+90)*a.RADIANS});let r=t+e/2;this.ix=a.cos(r),this.iy=a.sin(r);const o=this.get("shiftRadius",0);this.setRaw("dx",this.ix*o),this.setRaw("dy",this.iy*o),this.markDirtyPosition()}}}h.className="Slice",h.classNames=s.T.classNames.concat([h.className])},2162:function(t,e,i){"use strict";i.d(e,{i:function(){return n}});var s=i(6001);class n extends s.L{_afterNew(){this._addOrientationClass(),super._afterNew(),this.endGrip.setPrivate("visible",!1),this.thumb.setPrivate("visible",!1)}updateGrips(){super.updateGrips();const t=this.startGrip;this.endGrip.setAll({x:t.x(),y:t.y()}),this.setRaw("end",this.get("start"))}}n.className="Slider",n.classNames=s.L.classNames.concat([n.className])},4596:function(t,e,i){"use strict";i.d(e,{j:function(){return _}});var s=i(7582),n=i(6331),r=i(5769),o=i(6245),a=i(9770),h=i(7449),l=i(6490),c=i(7652),u=i(5071),d=i(5040),p=i(256),g=i(751);class f extends a.p{constructor(t){super(),this._rendererDisposers={},this._dispatchParents=!0,this._sprite=t}_makePointerEvent(t,e){return{type:t,originalEvent:e.event,point:e.point,simulated:e.simulated,native:e.native,target:this._sprite}}_onRenderer(t,e){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[t];if(void 0===i){const s=this._sprite._display.on(t,(t=>{e.call(this,t)}));i=this._rendererDisposers[t]=new h.DM((()=>{delete this._rendererDisposers[t],s.dispose()}))}return i.increment()}_on(t,e,i,s,n,r,o){const a=super._on(t,e,i,s,n,r,o),l=f.RENDERER_EVENTS[e];return void 0!==l&&(a.disposer=new h.FV([a.disposer,this._onRenderer(e,l)])),a}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(t,e){const i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(t,e),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(t,e)}finally{this._dispatchParents=i}}}f.RENDERER_EVENTS={click:function(t){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",t))&&this.dispatch("click",this._makePointerEvent("click",t))},rightclick:function(t){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",t))},middleclick:function(t){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",t))},dblclick:function(t){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",t))},pointerover:function(t){const e=this._sprite;let i=!0;if(e.getPrivate("trustBounds")){e._getBounds();const s=e.globalBounds();if(e.isType("Graphics")){const t=e.get("strokeWidth",1)/2;t>=1&&(s.left-=t,s.right+=t,s.top-=t,s.bottom+=t)}g.inBounds(t.point,s)||(i=!1,e._root._renderer.removeHovering(e._display))}i&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",t))},pointerout:function(t){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",t))},pointerdown:function(t){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",t))},pointerup:function(t){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",t))},globalpointerup:function(t){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",t))},globalpointermove:function(t){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",t))},wheel:function(t){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:t.event,point:t.point})}};class _ extends n.JH{constructor(){super(...arguments),this._adjustedLocalBounds={left:0,right:0,top:0,bottom:0},this._localBounds={left:0,right:0,top:0,bottom:0},this._sizeDirty=!1,this._isDragging=!1,this._isHidden=!1,this._isShowing=!1,this._isHiding=!1,this._isDown=!1,this._downPoints={}}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(t){this._markDirtyKey(t)}_markDirtyKey(t){super._markDirtyKey(t),"x"!=t&&"y"!=t&&"dx"!=t&&"dy"!=t||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(t){super._markDirtyPrivateKey(t),"x"!=t&&"y"!=t||this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new f(this)}_processTemplateField(){let t;const e=this.get("templateField");if(e){const i=this.dataItem;if(i){const s=i.dataContext;s&&(t=s[e],t instanceof r.YS||!t||(t=r.YS.new(t)))}}this._templateField!==t&&(this._removeTemplateField(),this._templateField=t,t&&t._setObjectTemplate(this),this._applyTemplates())}_setDataItem(t){const e=this._dataItem;this._dataItem=t,this._processTemplateField();const i="dataitemchanged";t!=e&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:e,newDataItem:t})}set dataItem(t){this._setDataItem(t)}get dataItem(){if(this._dataItem)return this._dataItem;{let t=this._parent;for(;t;){if(t._dataItem)return t._dataItem;t=t._parent}}}_addPercentageSizeChildren(){let t=this.parent;t&&(this.get("width")instanceof o.gG||this.get("height")instanceof o.gG?u.pushOne(t._percentageSizeChildren,this):u.removeFirst(t._percentageSizeChildren,this))}_addPercentagePositionChildren(){let t=this.parent;t&&(this.get("x")instanceof o.gG||this.get("y")instanceof o.gG?u.pushOne(t._percentagePositionChildren,this):u.removeFirst(t._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const t=this._localBounds;if(t){const e=this.get("centerX");null!=e&&(this._display.pivot.x=t.left+c.relativeToValue(e,t.right-t.left));const i=this.get("centerY");null!=i&&(this._display.pivot.y=t.top+c.relativeToValue(i,t.bottom-t.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const t=this._prevSettings.tooltip;t&&t.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0);const e=this._tooltipPointerDp;e&&(e.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))),this._tooltipPointerDp=new h.FV([this.events.on("pointerover",(()=>{this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))})),this.events.on("pointerout",(()=>{const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0)}))]))}}_handleStates(){this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();const t=this._display,e=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new h.FV([e.on("pointerdown",(t=>{this.dragStart(t)})),e.on("globalpointermove",(t=>{this.dragMove(t)})),e.on("globalpointerup",(t=>{this.dragStop(t)}))])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),t.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const t=this.get("tooltipText"),i=this.get("tooltipHTML"),s=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(t||i)&&("click"==s?(this._tooltipDp=new h.FV([e.on("click",(()=>{this.setTimeout((()=>{const t=this.getTooltip();t&&!t.isHidden()&&t.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()}),10)})),c.addEventListener(document,"click",(t=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)):"always"==s||(this._tooltipDp=new h.FV([e.on("pointerover",(()=>{this.showTooltip()})),e.on("pointerout",(()=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let t=this.get("toggleKey");t&&"none"!=t?this._toggleDp=e.on("click",(()=>{this._isDragging||this.set(t,!this.get(t))})):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(t.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),t.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),t.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?t.visible=!0:(t.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const t=this.parent;t&&(this.isDirty("width")&&this.get("width")instanceof o.gG||this.isDirty("height")&&this.get("height")instanceof o.gG)&&(t.markDirty(),t._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const e=this.get("wheelable");e&&this.set("interactive",!0),t.wheelable=!!e}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(t.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){const t=this.get("blur",0);0!=t&&(i+=" blur("+t+"px)")}if(this.isDirty("saturate")){const t=this.get("saturate",1);1!=t&&(i+=" saturate("+t+")")}if(this.isDirty("brightness")){const t=this.get("brightness",1);1!=t&&(i+=" brightness("+t+")")}if(this.isDirty("contrast")){const t=this.get("contrast",1);1!=t&&(i+=" contrast("+t+")")}if(this.isDirty("sepia")){const t=this.get("sepia",0);0!=t&&(i+=" sepia("+t+")")}if(this.isDirty("hue")){const t=this.get("hue",0);0!=t&&(i+=" hue-rotate("+t+"deg)")}if(this.isDirty("invert")){const t=this.get("invert",0);0!=t&&(i+=" invert("+t+")")}if(i&&(t.filter=i),this.isDirty("cursorOverStyle")&&(t.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new h.FV([e.on("focus",(()=>{this.showTooltip()})),e.on("blur",(()=>{this.hideTooltip()}))]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(e.on("blur",(()=>{this.setPrivateRaw("touchHovering",!1)}))),this._disposers.push(e.once("boundschanged",(()=>{this.markDirtyAccessibility()})))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(t.exportable=this.get("exportable")),this.isDirty("interactive")){const t=this.events;this.get("interactive")&&!t.isDisposed()?this._hoverDp=new h.FV([t.on("click",(t=>{c.isTouchEvent(t.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout((()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}),10))})),t.on("globalpointerup",(t=>{c.isTouchEvent(t.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})),this._isDown&&this._handleUp(t)})),t.on("pointerover",(()=>{this._handleOver()})),t.on("pointerout",(()=>{this._handleOut()})),t.on("pointerdown",(t=>{this._handleDown(t)}))]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}dragStart(t){this._dragEvent=t,this.events.stopParentDispatch()}dragStop(t){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const e="dragstop";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(t){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const e=c.getPointerId(t.originalEvent);delete this._downPoints[e],0==p.keys(this._downPoints).length&&(this._isDown=!1)}}_hasMoved(t){const e=c.getPointerId(t.originalEvent),i=this._downPoints[e];if(i){const e=Math.abs(i.x-t.point.x),s=Math.abs(i.y-t.point.y);return e>5||s>5}return!1}_hasDown(){return p.keys(this._downPoints).length>0}_handleDown(t){const e=this.parent;if(e&&!this.get("draggable")&&e._handleDown(t),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:t.point.x,y:t.point.y},this._isDown=!0;const e=c.getPointerId(t.originalEvent);this._downPoints[e]={x:t.point.x,y:t.point.y}}}dragMove(t){let e=this._dragEvent;if(e){if(e.simulated&&!t.simulated)return!0;let i=0,s=this.parent,n=1;for(;null!=s;)i+=s.get("rotation",0),s=s.parent,s&&(n*=s.get("scale",1));let r=(t.point.x-e.point.x)/n,o=(t.point.y-e.point.y)/n;const a=this.events;if(e.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}if(this._isDragging){let e=this._dragPoint;this.set("x",e.x+r*g.cos(i)+o*g.sin(i)),this.set("y",e.y+o*g.cos(i)-r*g.sin(i));const s="dragged";a.isEnabled(s)&&a.dispatch(s,{type:s,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}else if(Math.hypot(r,o)>5){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let t=this.parent,e=0;for(;;){if(!t)return e;++e,t=t.parent}}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const t=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),t.isMeasured=!0,t.invalidateBounds();const e=this.parent;e&&"absolute"!=this.get("position")&&(null==e.get("width")||null==e.get("height")||e.get("layout"))&&e.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const t=this._adjustedLocalBounds;let e;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),e=this._adjustedLocalBounds):(e={left:0,right:0,top:0,bottom:0},this._localBounds=e,this._adjustedLocalBounds=e),!t||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom){const t="boundschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(t){let e=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));d.isNumber(e)&&t.right-t.left0?t.right=t.left+s:t.left=t.right+s),d.isNumber(n)&&(n>0?t.bottom=t.top+n:t.top=t.bottom+n)}_removeParent(t){t&&(t.children.removeValue(this),u.removeFirst(t._percentageSizeChildren,this),u.removeFirst(t._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(t){if(!this.isDisposed()){const e=this.getTooltip(),i=this.get("tooltipText"),s=this.get("tooltipHTML");if((i||s)&&e){const n=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);if("fixed"!=n&&t||(this._display._setMatrix(),t=this.toGlobal(r._getTooltipPoint())),"pointer"==n){const e=this.getPrivate("lastTooltipCoords");if(e&&e.x==t.x&&e.y==t.y)return;this.setPrivate("lastTooltipCoords",t)}e.set("pointTo",t),e.set("tooltipTarget",r),e.get("x")||e.set("x",t.x),e.get("y")||e.set("y",t.y),i&&e.label.set("text",i),s&&e.label.set("html",s);const o=this.dataItem;if(o&&e.label._setDataItem(o),"always"==this.get("showTooltipOn")&&(t.x<0||t.x>this._root.width()||t.y<0||t.y>this._root.height()))return void this.hideTooltip();e.label.text.markDirtyText();const a=e.show();return this.setPrivateRaw("showingTooltip",!0),a}}}hideTooltip(){const t=this.getTooltip();if(t&&(this.removePrivate("lastTooltipCoords"),t.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==t)){let e=t.get("keepTargetHover")&&0==t.get("stateAnimationDuration",0)?400:void 0;const i=t.hide(e);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){const t=this._localBounds;if(t){let e=0,i=0;return this.get("isMeasured")?(e=t.left+c.relativeToValue(this.get("tooltipX",0),t.right-t.left),i=t.top+c.relativeToValue(this.get("tooltipY",0),t.bottom-t.top)):(e=c.relativeToValue(this.get("tooltipX",0),this.width()),i=c.relativeToValue(this.get("tooltipY",0),this.height())),{x:e,y:i}}return{x:0,y:0}}getTooltip(){let t=this.get("tooltip");if(t)return t;{let t=this.parent;if(t)return t.getTooltip()}}_updatePosition(){const t=this.parent;let e=this.get("dx",0),i=this.get("dy",0),s=this.get("x"),n=this.getPrivate("x"),r=0,a=0;const h=this.get("position");s instanceof o.gG&&(s=t?t.innerWidth()*s.value+t.get("paddingLeft",0):0),d.isNumber(s)?r=s+e:null!=n?r=n:t&&"relative"==h&&(r=t.get("paddingLeft",0)+e);let l=this.get("y"),c=this.getPrivate("y");l instanceof o.gG&&(l=t?t.innerHeight()*l.value+t.get("paddingTop",0):0),d.isNumber(l)?a=l+i:null!=c?a=c:t&&"relative"==h&&(a=t.get("paddingTop",0)+i);const u=this._display;if(u.x!=r||u.y!=a){u.invalidateBounds(),u.x=r,u.y=a;const t="positionchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let t=this.get("x"),e=this.getPrivate("x");const i=this.parent;return i?t instanceof o.gG?c.relativeToValue(t,i.innerWidth())+i.get("paddingLeft",0):d.isNumber(t)?t:null!=e?e:i.get("paddingLeft",this._display.x):this._display.x}y(){let t=this.getPrivate("y");if(null!=t)return t;let e=this.get("y");const i=this.parent;return i?e instanceof o.gG?c.relativeToValue(e,i.innerHeight())+i.get("paddingTop",0):d.isNumber(e)?e:null!=t?t:i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const t=this.get("tooltip");t&&t.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const t=this._adjustedLocalBounds,e=this.x(),i=this.y();return{left:t.left+e,right:t.right+e,top:t.top+i,bottom:t.bottom+i}}globalBounds(){const t=this.localBounds(),e=this.toGlobal({x:t.left,y:t.top}),i=this.toGlobal({x:t.right,y:t.top}),s=this.toGlobal({x:t.right,y:t.bottom}),n=this.toGlobal({x:t.left,y:t.bottom});return{left:Math.min(e.x,i.x,s.x,n.x),top:Math.min(e.y,i.y,s.y,n.y),right:Math.max(e.x,i.x,s.x,n.x),bottom:Math.max(e.y,i.y,s.y,n.y)}}_onShow(t){}_onHide(t){}appear(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.hide(0),e?new Promise(((i,s)=>{this.setTimeout((()=>{i(this.show(t))}),e)})):this.show(t)}))}show(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(t);const e=this.states.applyAnimate("default",t);yield(0,l.ne)(e),this._isShowing=!1}}))}hide(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let e=this.states.lookup("hidden");e||(e=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(t);const i=this.states.applyAnimate("hidden",t);yield(0,l.ne)(i),this._isHiding=!1}}))}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const t=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*t:t}compositeScale(){const t=this.get("scale",1);return this._parent?this._parent.compositeScale()*t:t}compositeRotation(){const t=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+t:t}width(){let t=this.get("width"),e=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),s=this.getPrivate("width"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerWidth()*t.value:this._root.width()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}maxWidth(){let t=this.get("maxWidth",this.getPrivate("maxWidth"));if(d.isNumber(t))return t;{let t=this.get("width");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerWidth():this._root.width()}maxHeight(){let t=this.get("maxHeight",this.getPrivate("maxHeight"));if(d.isNumber(t))return t;{let t=this.get("height");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerHeight():this._root.height()}height(){let t=this.get("height"),e=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),s=this.getPrivate("height"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerHeight()*t.value:this._root.height()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}_findStaticTemplate(t){return this._templateField&&t(this._templateField)?this._templateField:super._findStaticTemplate(t)}_walkParents(t){(this._parent||this._virtualParent)&&this._walkParent(t)}_walkParent(t){this._parent?this._parent._walkParent(t):this._virtualParent&&this._virtualParent._walkParent(t),t(this)}set virtualParent(t){this._virtualParent!==t&&(this._virtualParent=t,this._applyThemes())}get parent(){return this._parent}_setParent(t,e=!1){const i=this._parent;t!==i&&(this.markDirtyBounds(),t.markDirty(),this._parent=t,e&&(this._removeParent(i),t&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(t){return this._display.toGlobal(t)}toLocal(t){return this._display.toLocal(t)}_getDownPoint(){const t=this._getDownPointId();if(t)return this._downPoints[t]}_getDownPointId(){if(this._downPoints)return p.keysOrdered(this._downPoints,((t,e)=>t>e?1:t{this._resize(t.target,-1)})),this.gripR.events.on("dragged",(t=>{this._resize(t.target,1)})),this.gripL.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripR.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripT.events.on("dragged",(t=>{this._rotate(t,90)})),this.gripB.events.on("dragged",(t=>{this._rotate(t,-90)})),this.gripT.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripB.events.on("dragstart",(t=>{this._resizeStart(t.target)}))}_resizeStart(t){const e=this.get("sprite");e&&(this._is=e.get("scale",1),this._ix=t.x(),this._iw=this.width()/2)}_resize(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=Math.max(.01,this._is*(1+e*(t.x()-this._ix)/this._iw));s?s.set("scale",n):i.set("scale",n),i.states.lookup("default").set("scale",n),this._updatePositions()}}_rotate(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=this.parent;if(n){const r=this.get("rotationStep",10);let o=Math.round((h.getAngle({x:this.x(),y:this.y()},n.toLocal(t.point))+e)/r)*r;s?s.set("rotation",o):i.set("rotation",o),i.states.lookup("default").set("rotation",o),this._updatePositions()}}}_createGrip(t){const e=this.children.push(s.W.new(this._root,{themeTags:["grip",t],setStateOnChildren:!0,draggable:!0}));return e.children.push(r.c.new(this._root,{themeTags:["outline"],centerX:n.CI,centerY:n.CI})),e.children.push(r.c.new(this._root,{centerX:n.CI,centerY:n.CI})),e}_updateChildren(){if(super._updateChildren(),this.isDirty("sprite")){const t=this.get("sprite");if(t){this.show(0),this.setPrivate("visible",!0),this._updatePositions();const e=t.parent;e&&e.children.moveValue(this,0),this._positionDP=t.events.on("positionchanged",(()=>{this._updatePositions()})),this._positionDP=t.events.on("boundschanged",(()=>{this._updatePositions()}))}else this.hide(0),this.setPrivate("visible",!1),this._positionDP&&this._positionDP.dispose()}(this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation"))&&this._updatePositions()}_updatePositions(){const t=this.get("sprite");if(t){let e=t.localBounds(),i=t.get("scale",1),s=20,r=(e.right-e.left)*i+s,o=(e.bottom-e.top)*i+s,a=t.get("rotation",0);const l=this.rectangle;let c=t.get("centerX",n.CI),u=t.get("centerY",n.CI),d=0;c instanceof n.gG&&(d=c.value);let p=0;u instanceof n.gG&&(p=u.value),l.setAll({centerX:c,centerY:u,width:r,height:o}),this.setAll({x:t.x()+s*(d-.5)*h.cos(a)-s*(p-.5)*h.sin(a),y:t.y()+s*(p-.5)*h.cos(a)+s*(d-.5)*h.sin(a),width:r,height:o,rotation:a}),this.gripT.setAll({x:(.5-d)*r,y:-p*o}),this.gripB.setAll({x:(.5-d)*r,y:(1-p)*o}),this.gripL.setAll({x:-d*r,y:(.5-p)*o}),this.gripR.setAll({x:(1-d)*r,y:(.5-p)*o}),this.rectangle.setAll({width:r,height:o})}}}l.className="SpriteResizer",l.classNames=s.W.classNames.concat([l.className])},2036:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(4596),n=i(2132),r=i(5071),o=i(7652),a=i(7449);class h extends s.j{constructor(){super(...arguments),this.textStyle=this._root._renderer.makeTextStyle(),this._display=this._root._renderer.makeText("",this.textStyle),this._textStyles=["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}_updateBounds(){if(this.get("text")){super._updateBounds();let t=this.get("fillGradient");t&&(this._display.style.fill=t.getFill(this))}else{let t={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=t}}_changed(){super._changed(),this._display.clear();let t=this.textStyle;if(this.isDirty("opacity")){let t=this.get("opacity",1);this._display.alpha=t}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),"tooltip"==this.get("role")&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new a.ku((()=>{this._root._removeTooltipElement(this)}))),this.isDirty("width")&&(t.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(t.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(t.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(t.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(t.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(t.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){const e=this.get("fill"),i=this.get("fillGradient"),s=this.get("fillOpacity");if(i){if(e){const t=i.get("stops",[]);t.length&&r.each(t,(t=>{t.color&&!t.colorInherited||!e||(t.color=e,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=s,t.opacityInherited=!0)}))}t.fill=i.getFill(this)}else e&&(t.fill=e)}if(this.isDirty("fillOpacity")){let e=this.get("fillOpacity",1);e&&(t.fillOpacity=e)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(t.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(t.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),r.each(this._textStyles,(e=>{this._dirty[e]&&(t[e]=this.get(e),this.markDirtyBounds())})),t.fontSize=this.get("fontSize"),t.fontFamily=this.get("fontFamily"),this._display.style=t,this.isDirty("role")&&"tooltip"==this.get("role")&&this._root.updateTooltip(this)}_getText(){let t=this.get("text","");return this.get("maxChars")&&(t=o.truncateTextWithEllipsis(t,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?(0,n.q)(this,t):t}_getAccessibleText(){const t=this.get("ariaLabel");return void 0!==t?this.get("populateText")?(0,n.q)(this,t):t:this._getText()}markDirtyText(){this._display.text=this._getText(),"tooltip"==this.get("role")&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(t){super._setDataItem(t),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}h.className="Text",h.classNames=s.j.classNames.concat([h.className])},2438:function(t,e,i){"use strict";i.d(e,{d:function(){return n}});var s=i(2077);class n extends s.x{}n.className="Tick",n.classNames=s.x.classNames.concat([n.className])},2876:function(t,e,i){"use strict";i.d(e,{u:function(){return d}});var s=i(7449),n=i(962),r=i(8931),o=i(8777),a=i(6245),h=i(1112),l=i(751),c=i(5071),u=i(7652);class d extends o.W{constructor(t,e,i,s=[]){super(t,e,i,s),this._fx=0,this._fy=0,this._w=0,this._h=0,this._htmlContentHovered=!1}_afterNew(){this._settings.themeTags=u.mergeTags(this._settings.themeTags,["tooltip"]),super._afterNew(),this._setDefaultFn("background",(()=>r.i.new(this._root,{}))).set("themeTags",["tooltip","background"]),this._label=this.children.push(n._.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",(()=>{this._updateBackground()}))),this._disposers.push(this.on("bounds",(()=>{this._updateBackground()}))),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",(t=>{t&&(this._disposers.push(u.addEventListener(t,"pointerover",(t=>{this._htmlContentHovered=!0}))),this._disposers.push(u.addEventListener(t,"pointerout",(t=>{this._htmlContentHovered=!1}))))}))),this.on("visible",(t=>{this._handleReaderAnnouncement()})),this.label.events.on("dataitemchanged",(t=>{this._handleReaderAnnouncement()})),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),c.remove(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width"),null!=this.get("labelText")&&this.label.set("text",this.get("labelText")),null!=this.get("labelHTML")&&this.label.set("html",this.get("labelHTML")),null!=this.get("labelAriaLabel")&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover"))if(this.get("keepTargetHover")){const t=this.get("background");this._keepHoverDp=new s.FV([t.events.on("pointerover",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),e.hover())})),t.events.on("pointerout",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),this._htmlContentHovered||e.unhover())}))]),this.label.onPrivate("htmlElement",(e=>{this._keepHoverDp&&e&&this._keepHoverDp.disposers.push(u.addEventListener(e,"pointerleave",(e=>{const i=this.root._renderer.getEvent(e);t.events.dispatch("pointerout",{type:"pointerout",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))}))}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let t=this.get("tooltipTarget");const e=this.get("background");let i,s;if(t&&e){if(i=t.get("fill"),s=t.get("stroke"),null==i&&(i=s),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),null!=i&&e.set("fill",i),this._fillDp=t.on("fill",(t=>{null!=t&&(e.set("fill",t),this._updateTextColor(t))})),this._disposers.push(this._fillDp)),this.get("getFillGradientFromSprite")){this._fillGrDp&&this._fillGrDp.dispose();let i=t.get("fillGradient");null!=i&&e.set("fillGradient",i),this._fillGrDp=t.on("fillGradient",(t=>{null!=t&&e.set("fillGradient",t)})),this._disposers.push(this._fillGrDp)}this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),null!=i&&e.set("stroke",i),this._strokeDp=t.on("fill",(t=>{null!=t&&e.set("stroke",t)})),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),null!=i&&this.label.set("fill",i),this._labelDp=t.on("fill",(t=>{null!=t&&this.label.set("fill",t)})),this._disposers.push(this._labelDp))}this._updateTextColor(i)}_updateTextColor(t){this.get("autoTextColor")&&(null==t&&(t=this.get("background").get("fill")),null==t&&(t=this._root.interfaceColors.get("background")),t instanceof h.Il&&this.label.set("fill",h.Il.alternative(t,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(t){super._setDataItem(t),this.label._setDataItem(t)}_updateBackground(){super.updateBackground();const t=this._root.container;if(t){let e=.5,i=.5,s=this.get("centerX");s instanceof a.gG&&(e=s.value);let n=this.get("centerY");n instanceof a.gG&&(i=n.value);let o=t.width(),h=t.height(),c=this.parent,u=0,d=0;if(c){u=c.x(),d=c.y();const t=c.get("layerMargin");t&&(u+=t.left||0,d+=t.top||0,o+=(t.left||0)+(t.right||0),h+=(t.top||0)+(t.bottom||0))}const p=this.get("bounds",{left:-u,top:-d,right:o-u,bottom:h-d});this._updateBounds();let g=this.width(),f=this.height();0===g&&(g=this._w),0===f&&(f=this._h);let _=this.get("pointTo",{x:o/2,y:h/2}),m=_.x,y=_.y,v=this.get("pointerOrientation"),w=this.get("background"),b=0,x=0,D=0;w instanceof r.i&&(b=w.get("pointerLength",0),x=w.get("strokeWidth",0)/2,D=x,w.set("width",g),w.set("height",f));let k=0,T=0,M=p.right-p.left,E=p.bottom-p.top;"horizontal"==v||"left"==v||"right"==v?(x=0,"horizontal"==v?m>p.left+M/2?(m-=g*(1-e)+b,D*=-1):m+=g*e+b:"left"==v?m+=g*(1-e)+b:(m-=g*e+b,D*=-1)):(D=0,"vertical"==v?y>p.top+f/2+b?y-=f*(1-i)+b:(y+=f*i+b,x*=-1):"down"==v?y-=f*(1-i)+b:(y+=f*i+b,x*=-1)),m=l.fitToRange(m,p.left+g*e,p.left+M-g*(1-e))+D,y=l.fitToRange(y,p.top+f*i,p.top+E-f*(1-i))-x,k=_.x-m+g*e+D,T=_.y-y+f*i-x,this._fx=m,this._fy=y;const O=this.get("animationDuration",0);if(O>0&&this.get("visible")&&this.get("opacity")>.1){const t=this.get("animationEasing");this.animate({key:"x",to:m,duration:O,easing:t}),this.animate({key:"y",to:y,duration:O,easing:t})}else this.set("x",m),this.set("y",y);w instanceof r.i&&(w.set("pointerX",k),w.set("pointerY",T)),g>0&&(this._w=g),f>0&&(this._h=f)}}}d.className="Tooltip",d.classNames=o.W.classNames.concat([d.className])},941:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){const t=this.width(),e=this.height(),i=this._display;i.moveTo(-t/2,e/2),i.lineTo(0,-e/2),i.lineTo(t/2,e/2),i.lineTo(-t/2,e/2),i.closePath()}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Triangle",n.classNames=s.T.classNames.concat([n.className])},1706:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingTop",0),i=t.innerHeight(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minHeight",t.getPrivate("minHeight",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.height()),i-=e+t.get("marginTop",0)+t.get("marginBottom",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginTop",0)-t.get("marginBottom",0),n=t.get("minHeight",t.getPrivate("minHeight",-1/0)),r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("height",s)}else t._prevSettings.height instanceof r.gG&&t.setPrivate("height",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginTop",0),s=e.top,n=e.bottom,r=t.get("maxHeight");r&&n-s>r&&(n=s+r);let o=t.get("marginBottom",0),h=a+i-s;t.setPrivate("y",h),a=h+n+o}else t.setPrivate("y",void 0)}))}}o.className="VerticalLayout",o.classNames=s.A.classNames.concat([o.className])},6044:function(t,e,i){"use strict";i.d(e,{H:function(){return h}});var s=i(8777),n=i(8054),r=i(1479),o=i(7449),a=i(2647);class h extends s.W{constructor(){super(...arguments),this.homeButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["home"]})),this.plusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["plus"]})),this.minusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["minus"]}))}_afterNew(){super._afterNew(),this.set("position","absolute"),this.set("layout",this._root.verticalLayout),this.addTag("zoomtools"),this.plusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.minusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.homeButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("target")){const t=this.get("target"),e=this._prevSettings.target;t&&(t instanceof a.Y&&(this._targetDisposer=this.addDisposer(t.contents.on("scale",(e=>{e==t.get("minZoomLevel")?this.minusButton.set("disabled",!0):this.minusButton.set("disabled",!1),e==t.get("maxZoomLevel")?this.plusButton.set("disabled",!0):this.plusButton.set("disabled",!1)}))),this.root.events.once("frameended",(()=>{t.get("scale")==t.get("minZoomLevel")&&this.minusButton.set("disabled",!0)}))),this._disposer=new o.FV([this.plusButton.events.on("click",(()=>{t.zoomIn()})),this.minusButton.events.on("click",(()=>{t.zoomOut()})),this.homeButton.events.on("click",(()=>{t.goHome()}))])),e&&(this._disposer&&this._disposer.dispose(),this._targetDisposer&&this._targetDisposer.dispose())}}}h.className="ZoomTools",h.classNames=s.W.classNames.concat([h.className])},2647:function(t,e,i){"use strict";i.d(e,{Y:function(){return u}});var s=i(8777),n=i(6245),r=i(7142),o=i(1112),a=i(7652),h=i(751),l=i(256),c=i(5040);class u extends s.W{constructor(){super(...arguments),this._movePoints={},this._downScale=1,this._downX=0,this._downY=0,this.contents=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,x:0,y:0,draggable:!0,background:r.A.new(this._root,{fill:(0,o.$_)(16777215),fillOpacity:0})}))}_afterNew(){super._afterNew();const t=this.contents.events;this._disposers.push(t.on("pointerdown",(t=>{this._handleThisDown(t)}))),this._disposers.push(t.on("globalpointerup",(t=>{this._handleThisUp(t)}))),this._disposers.push(t.on("globalpointermove",(t=>{this._handleThisMove(t)})));const e=this.contents.get("background");e&&(e.adapters.add("width",(t=>20*Number(t))),e.adapters.add("height",(t=>20*Number(t))),e.adapters.add("x",(t=>Number(t)-e.width()/2)),e.adapters.add("y",(t=>Number(t)-e.height()/2)));const i=this.contents;i.adapters.add("x",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.width();t=Math.min(n*s,t),t=Math.max(this.width()-n*e*(1+s),t)}return t})),i.adapters.add("y",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.height();t=Math.min(n*s,t),t=Math.max(this.height()-n*e*(1+s),t)}return t}))}_prepareChildren(){super._prepareChildren(),this.isDirty("wheelable")&&this._handleSetWheel(),this.contents._display.cancelTouch=this.get("pinchZoom",!1)}_handleSetWheel(){this.get("wheelable")?(this._wheelDp&&this._wheelDp.dispose(),this._wheelDp=this.events.on("wheel",(t=>{const e=t.originalEvent;if(!a.isLocalEvent(e,this))return;e.preventDefault();const i=this.toLocal(t.point);this._handleWheelZoom(e.deltaY,i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_handleWheelZoom(t,e){let i=this.get("zoomStep",2),s=this.contents.get("scale",1),n=s;t>0?n=s/i:t<0&&(n=s*i),n!=s&&this.zoomToPoint(e,n)}zoomToPoint(t,e){e&&(e=h.fitToRange(e,this.get("minZoomLevel",1),this.get("maxZoomLevel",32)));const i=this.contents.get("scale",1);let s=t.x,n=t.y,r=s,o=n;const a=this.contents;let l=r-(s-a.x())/i*e,c=o-(n-a.y())/i*e;return this._animateTo(l,c,e),this._za}zoomIn(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)*this.get("zoomStep",2))}zoomOut(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)/this.get("zoomStep",2))}goHome(){return this._animateTo(0,0,1)}_animateTo(t,e,i){const s=this.get("animationDuration",0),n=this.get("animationEasing"),r=this.contents;this._txa=r.animate({key:"x",to:t,duration:s,easing:n}),this._tya=r.animate({key:"y",to:e,duration:s,easing:n}),this._za=r.animate({key:"scale",to:i,duration:s,easing:n})}_handleThisUp(t){this._downPoints={}}_handleThisDown(t){const e=this.contents;this._downScale=e.get("scale",1);const i=e._downPoints;let s=l.keys(i).length;if(1==s){let e=i[1];e||(e=i[0]),e&&e.x==t.point.x&&e.y==t.point.y&&(s=0)}if(s>0){this._downX=e.x(),this._downY=e.y();const t=e._getDownPointId();if(t){let i=this._movePoints[t];i&&(e._downPoints[t]=i)}}}_handleThisMove(t){const e=t.originalEvent.pointerId;this.get("pinchZoom")&&e&&(this._movePoints[e]=t.point,l.keys(this.contents._downPoints).length>1)&&this._handlePinch()}_handlePinch(){let t=0,e=[],i=[];if(l.each(this.contents._downPoints,((s,n)=>{e[t]=n;let r=this._movePoints[s];r&&(i[t]=r),t++})),e.length>1&&i.length>1){this.contents._isDragging=!1;let t=e[0],s=e[1],n=i[0],r=i[1];if(t&&s&&n&&r){t=this.toLocal(t),s=this.toLocal(s),n=this.toLocal(n),r=this.toLocal(r);let e=Math.hypot(s.x-t.x,s.y-t.y),i=Math.hypot(r.x-n.x,r.y-n.y)/e*this._downScale,o={x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2},a={x:t.x+(s.x-t.x)/2,y:t.y+(s.y-t.y)/2},h=this._downX||0,l=this._downY||0,c=this._downScale,u=o.x-(-h+a.x)/c*i,d=o.y-(-l+a.y)/c*i;this.contents.setAll({x:u,y:d,scale:i})}}}}u.className="ZoomableContainer",u.classNames=s.W.classNames.concat([u.className])},4102:function(t,e,i){"use strict";i.d(e,{mM:function(){return at},uK:function(){return rt}});var s=i(4680),n=i(1112);class r{constructor(t=1,e=0,i=0,s=1,n=0,r=0){this.a=t,this.b=e,this.c=i,this.d=s,this.tx=n,this.ty=r}setTransform(t,e,i,s,n,r=1){this.a=Math.cos(n)*r,this.b=Math.sin(n)*r,this.c=-Math.sin(n)*r,this.d=Math.cos(n)*r,this.tx=t-(i*this.a+s*this.c),this.ty=e-(i*this.b+s*this.d)}apply(t){return{x:this.a*t.x+this.c*t.y+this.tx,y:this.b*t.x+this.d*t.y+this.ty}}applyInverse(t){const e=1/(this.a*this.d+this.c*-this.b);return{x:this.d*e*t.x+-this.c*e*t.y+(this.ty*this.c-this.tx*this.d)*e,y:this.a*e*t.y+-this.b*e*t.x+(-this.ty*this.a+this.tx*this.b)*e}}append(t){const e=this.a,i=this.b,s=this.c,n=this.d;this.a=t.a*e+t.b*s,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*s,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*s+this.tx,this.ty=t.tx*i+t.ty*n+this.ty}prepend(t){const e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){const e=this.a,i=this.c;this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty}copyFrom(t){this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty}}var o=i(6245),a=i(7449),h=i(7255),l=i(7652),c=i(5071),u=i(256),d=i(5040),p=i(751),g=2*Math.PI,f=function(t,e,i,s,n,r,o){var a=t.x,h=t.y;return{x:s*(a*=e)-n*(h*=i)+r,y:n*a+s*h+o}},_=function(t,e){var i=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),s=Math.cos(t),n=Math.sin(t),r=Math.cos(t+e),o=Math.sin(t+e);return[{x:s-n*i,y:n+s*i},{x:r+o*i,y:o-r*i},{x:r,y:o}]},m=function(t,e,i,s){var n=t*i+e*s;return n>1&&(n=1),n<-1&&(n=-1),(t*s-e*i<0?-1:1)*Math.acos(n)},y=function(t){var e=t.px,i=t.py,s=t.cx,n=t.cy,r=t.rx,o=t.ry,a=t.xAxisRotation,h=void 0===a?0:a,l=t.largeArcFlag,c=void 0===l?0:l,u=t.sweepFlag,d=void 0===u?0:u,p=[];if(0===r||0===o)return[];var y=Math.sin(h*g/360),v=Math.cos(h*g/360),w=v*(e-s)/2+y*(i-n)/2,b=-y*(e-s)/2+v*(i-n)/2;if(0===w&&0===b)return[];r=Math.abs(r),o=Math.abs(o);var x=Math.pow(w,2)/Math.pow(r,2)+Math.pow(b,2)/Math.pow(o,2);x>1&&(r*=Math.sqrt(x),o*=Math.sqrt(x));var D=function(t,e,i,s,n,r,o,a,h,l,c,u){var d=Math.pow(n,2),p=Math.pow(r,2),f=Math.pow(c,2),_=Math.pow(u,2),y=d*p-d*_-p*f;y<0&&(y=0),y/=d*_+p*f;var v=(y=Math.sqrt(y)*(o===a?-1:1))*n/r*u,w=y*-r/n*c,b=l*v-h*w+(t+i)/2,x=h*v+l*w+(e+s)/2,D=(c-v)/n,k=(u-w)/r,T=(-c-v)/n,M=(-u-w)/r,E=m(1,0,D,k),O=m(D,k,T,M);return 0===a&&O>0&&(O-=g),1===a&&O<0&&(O+=g),[b,x,E,O]}(e,i,s,n,r,o,c,d,y,v,w,b),k=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],s=!0,n=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);s=!0);}catch(t){n=!0,r=t}finally{try{!s&&a.return&&a.return()}finally{if(n)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(D,4),T=k[0],M=k[1],E=k[2],O=k[3],P=Math.abs(O)/(g/4);Math.abs(1-P)<1e-7&&(P=1);var S=Math.max(Math.ceil(P),1);O/=S;for(var N=0;N1){const e=/^([01])([01])(.*)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t.splice(i,0,e[2]),++i,e[3].length>0?t[i]=e[3]:t.splice(i,1))}if(++i,s=t[i],s.length>1){const e=/^([01])(.+)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t[i]=e[2])}}}function D(t){if(0===t||1===t)return t;throw new Error("Flag must be 0 or 1")}function k(t,e){for(;(!t.interactive||e(t))&&t._parent;)t=t._parent}function T(t,e,i){return l.addEventListener(t,l.getRendererEvent(e),(t=>{const e=l.getEventTarget(t);let s=t.touches;s?(0==s.length&&(s=t.changedTouches),i(c.copy(s),e)):i([t],e)}))}function M(t){const e=document.createElement("canvas");e.width=1,e.height=1;const i=e.getContext("2d",{willReadFrequently:!0});i.drawImage(t,0,0,1,1);try{return i.getImageData(0,0,1,1),!1}catch(e){return console.warn('Image "'+t.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function E(t){t.width=0,t.height=0,t.style.width="0px",t.style.height="0px"}function O(t){return Math.floor(t)+.5}class P{constructor(){this._x=0,this._y=0}get x(){return this._x}get y(){return this._y}set x(t){this._x=t}set y(t){this._y=t}}class S extends a.KK{constructor(t){super(),this.mask=null,this.visible=!0,this.exportable=!0,this.interactive=!1,this.inactive=null,this.wheelable=!1,this.cancelTouch=!1,this.isMeasured=!1,this.buttonMode=!1,this.alpha=1,this.compoundAlpha=1,this.angle=0,this.scale=1,this.x=0,this.y=0,this.crisp=!1,this.pivot=new P,this._localMatrix=new r,this._matrix=new r,this._uMatrix=new r,this._renderer=t}subStatus(t){return{inactive:null==this.inactive?t.inactive:this.inactive,layer:this._layer||t.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let t=this;for(;;){if(t._layer)return t._layer;if(!t._parent)return this._renderer.defaultLayer;t=t._parent}}setLayer(t,e){if(null==t)this._layer=void 0;else{const i=!0;this._layer=this._renderer.getLayer(t,i),this._layer.visible=i,this._layer.margin=e,e&&l.setInteractive(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost()}}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(t){}_getColorId(){return void 0===this._colorId&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(t){return!t.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(t){return this._isInteractive(t)}contains(t){for(;;){if(t===this)return!0;if(!t._parent)return!1;t=t._parent}}toGlobal(t){return this._matrix.apply(t)}toLocal(t){return this._matrix.applyInverse(t)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){if(!this._localBounds){const t=1e7;this._localBounds={left:t,top:t,right:-t,bottom:-t},this._addBounds(this._localBounds)}return this._localBounds}getAdjustedBounds(t){this._setMatrix();const e=this.getLocalMatrix(),i=e.apply({x:t.left,y:t.top}),s=e.apply({x:t.right,y:t.top}),n=e.apply({x:t.right,y:t.bottom}),r=e.apply({x:t.left,y:t.bottom});return{left:Math.min(i.x,s.x,n.x,r.x),top:Math.min(i.y,s.y,n.y,r.y),right:Math.max(i.x,s.x,n.x,r.x),bottom:Math.max(i.y,s.y,n.y,r.y)}}on(t,e,i){return this.interactive?this._renderer._addEvent(this,t,e,i):new a.ku((()=>{}))}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(t,e){const i=this._matrix;let s=i.tx*e,n=i.ty*e;this.crisp&&(s=O(s),n=O(n)),t.setTransform(i.a*e,i.b*e,i.c*e,i.d*e,s,n)}_transformMargin(t,e,i){const s=this._matrix;t.setTransform(s.a*e,s.b*e,s.c*e,s.d*e,(s.tx+i.left)*e,(s.ty+i.top)*e)}_transformLayer(t,e,i){i.margin?this._transformMargin(t,i.scale||e,i.margin):this._transform(t,i.scale||e)}render(t,e=0){if(this.visible&&(!1!==this.exportable||!this._renderer._omitTainted)){this._setMatrix();const i=this.subStatus(t),s=this._renderer.resolution,n=this._renderer.layers,r=this._renderer._ghostLayer,o=r.context,a=this.mask;a&&a._setMatrix(),c.each(n,(t=>{if(t){const e=t.context;e.save(),a&&(a._transformLayer(e,s,t),a._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(e,s,t),this.filter&&(e.filter=this.filter)}})),o.save(),a&&this._isInteractiveMask(i)&&(a._transformMargin(o,s,r.margin),a._runPath(o),o.clip()),this._transformMargin(o,s,r.margin),i.layer.order>0&&!e&&c.move(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,e),o.restore(),c.each(n,(t=>{t&&t.context.restore()}))}}_render(t,e=0){!1===this.exportable&&(t.layer.tainted=!0)}_ghostOnly(t=0){return t>0}_drawGhost(t,e=0){const i=this._isInteractive(t),s=t.layer.order||0;return!(!i||(0!=s||this._ghostOnly(e))&&s!=e)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some((t=>t.value===this))}shouldCancelTouch(){const t=this._renderer;return!(t.tapToActivate&&!t._touchActive)&&(!!this.cancelTouch||!!this._parent&&this._parent.shouldCancelTouch())}}class N extends S{constructor(){super(...arguments),this.interactiveChildren=!0,this._children=[]}_isInteractiveMask(t){return this.interactiveChildren||super._isInteractiveMask(t)}addChild(t){t._parent=this,this._children.push(t),t._layer&&this.registerChildLayer(t._layer)}addChildAt(t,e){t._parent=this,this._children.splice(e,0,t),t._layer&&this.registerChildLayer(t._layer)}removeChild(t){t._parent=void 0,c.removeFirst(this._children,t)}_render(t,e){super._render(t);const i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,c.each(this._children,(i=>{i.compoundAlpha=this.compoundAlpha*this.alpha,i.render(t,e)})),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(t){this._childLayers||(this._childLayers=[]),c.pushOne(this._childLayers,t),this._parent&&this._parent.registerChildLayer(t)}markDirtyLayer(t=!1){super.markDirtyLayer(),t&&this._childLayers&&c.each(this._childLayers,(t=>t.dirty=!0))}_dispose(){super._dispose(),this._childLayers&&c.each(this._childLayers,(t=>{t.dirty=!0}))}}function C(t,e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.right=Math.max(t.right,e.x),t.bottom=Math.max(t.bottom,e.y)}class L{colorize(t,e){}colorizeGhost(t,e){this.colorize(t,e)}path(t){}pathGhost(t){this.path(t)}addBounds(t){}}class A extends L{colorize(t,e){t.beginPath()}}class R extends L{constructor(t){super(),this.color=t}colorize(t,e){t.fillStyle=void 0!==e?e:this.color}}class U extends L{constructor(t){super(),this.clearShadow=t}colorize(t,e){t.fill(),this.clearShadow&&(t.shadowColor="",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}}class B extends L{colorize(t,e){t.stroke()}}class F extends L{constructor(t,e,i,s){super(),this.width=t,this.color=e,this.lineJoin=i,this.lineCap=s}colorize(t,e){t.strokeStyle=void 0!==e?e:this.color,t.lineWidth=this.width,this.lineJoin&&(t.lineJoin=this.lineJoin),this.lineCap&&(t.lineCap=this.lineCap)}}class I extends L{constructor(t){super(),this.dash=t}colorize(t,e){t.setLineDash(this.dash)}}class H extends L{constructor(t){super(),this.dashOffset=t}colorize(t,e){t.lineDashOffset=this.dashOffset}}class z extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.width=i,this.height=s}path(t){t.rect(this.x,this.y,this.width,this.height)}addBounds(t){const e=this.x,i=this.y,s=e+this.width,n=i+this.height;C(t,{x:e,y:i}),C(t,{x:s,y:i}),C(t,{x:e,y:n}),C(t,{x:s,y:n})}}class G extends L{constructor(t,e,i){super(),this.x=t,this.y=e,this.radius=i}path(t){t.moveTo(this.x+this.radius,this.y),t.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radius,y:this.y-this.radius}),C(t,{x:this.x+this.radius,y:this.y+this.radius})}}class V extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.radiusX=i,this.radiusY=s}path(t){t.ellipse(0,0,this.radiusX,this.radiusY,0,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radiusX,y:this.y-this.radiusY}),C(t,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class W extends L{constructor(t,e,i,s,n,r){super(),this.cx=t,this.cy=e,this.radius=i,this.startAngle=s,this.endAngle=n,this.anticlockwise=r}path(t){this.radius>0&&t.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(t){let e=p.getArcBounds(this.cx,this.cy,this.startAngle*p.DEGREES,this.endAngle*p.DEGREES,this.radius);C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}class Y extends L{constructor(t,e,i,s,n){super(),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.radius=n}path(t){this.radius>0&&t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(t){}}class j extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.lineTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class X extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.moveTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class $ extends L{path(t){t.closePath()}}class Z extends L{constructor(t,e,i,s,n,r){super(),this.cpX=t,this.cpY=e,this.cpX2=i,this.cpY2=s,this.toX=n,this.toY=r}path(t){t.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.cpX2,y:this.cpY2}),C(t,{x:this.toX,y:this.toY})}}class K extends L{constructor(t,e,i,s){super(),this.cpX=t,this.cpY=e,this.toX=i,this.toY=s}path(t){t.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.toX,y:this.toY})}}class q extends L{constructor(t,e,i,s,n){super(),this.color=t,this.blur=e,this.offsetX=i,this.offsetY=s,this.opacity=n}colorize(t,e){this.opacity&&(t.fillStyle=this.color),t.shadowColor=this.color,t.shadowBlur=this.blur,t.shadowOffsetX=this.offsetX,t.shadowOffsetY=this.offsetY}colorizeGhost(t,e){}}class Q extends L{constructor(t,e,i,s,n){super(),this.image=t,this.width=e,this.height=i,this.x=s,this.y=n}path(t){t.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(t){C(t,{x:this.x,y:this.y}),C(t,{x:this.width,y:this.height})}}class J extends S{constructor(){super(...arguments),this._operations=[],this.blendMode=s.b.NORMAL,this._hasShadows=!1}clear(){super.clear(),this._operations.length=0}_pushOp(t){this._operations.push(t)}beginFill(t,e=1){this._fillAlpha=e,t?t instanceof n.Il?this._pushOp(new R(t.toCSS(e))):(this.isMeasured=!0,this._pushOp(new R(t))):this._pushOp(new R("rgba(0, 0, 0, "+e+")"))}endFill(){this._pushOp(new U(this._hasShadows))}endStroke(){this._pushOp(new B)}beginPath(){this._pushOp(new A)}lineStyle(t=0,e,i=1,s,r){this._strokeAlpha=i,e?e instanceof n.Il?this._pushOp(new F(t,e.toCSS(i),s,r)):this._pushOp(new F(t,e,s,r)):this._pushOp(new F(t,"rgba(0, 0, 0, "+i+")",s,r))}setLineDash(t){this._pushOp(new I(t||[]))}setLineDashOffset(t=0){this._pushOp(new H(t))}drawRect(t,e,i,s){this._pushOp(new z(t,e,i,s))}drawCircle(t,e,i){this._pushOp(new G(t,e,i))}drawEllipse(t,e,i,s){this._pushOp(new V(t,e,i,s))}arc(t,e,i,s,n,r=!1){this._pushOp(new W(t,e,i,s,n,r))}arcTo(t,e,i,s,n){this._pushOp(new Y(t,e,i,s,n))}lineTo(t,e){this._pushOp(new j(t,e))}moveTo(t,e){this._pushOp(new X(t,e))}bezierCurveTo(t,e,i,s,n,r){this._pushOp(new Z(t,e,i,s,n,r))}quadraticCurveTo(t,e,i,s){this._pushOp(new K(t,e,i,s))}closePath(){this._pushOp(new $)}shadow(t,e=0,i=0,s=0,n){this._hasShadows=!0,this._pushOp(new q(n?t.toCSS(n):t.toCSS(this._fillAlpha||this._strokeAlpha),e,i,s))}image(t,e,i,s,n){this._pushOp(new Q(t,e,i,s,n))}svgPath(t){let e=0,i=0,s=null,n=null,r=null,o=null;const a=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,h=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g,l=this._operations.length;try{let l;for(;null!==(l=a.exec(t));){const t=l[1],a=l[2],u=[];for(;null!==(l=h.exec(a));)u.push(l[1]);switch("S"!==t&&"s"!==t&&"C"!==t&&"c"!==t&&(s=null,n=null),"Q"!==t&&"q"!==t&&"T"!==t&&"t"!==t&&(r=null,o=null),t){case"M":b(t,u.length,2),e=+u[0],i=+u[1],this.moveTo(e,i);for(let t=2;t{this.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y),e=t.x,i=t.y}))}break;case"Z":case"z":v(t,u.length,0),this.closePath()}}}catch(e){this._operations.length=l,console.warn("Error when parsing svgPath:\n "+e.message+"\n"+t)}}_runPath(t){t.beginPath(),c.each(this._operations,(e=>{e.path(t)}))}_render(t,e=0){super._render(t);const i=t.layer.dirty,s=this._isInteractive(t),n=this._ghostOnly(e),r=this._drawGhost(t,e);if(i||s||n){const e=t.layer.context,s=this._renderer._ghostLayer.context;let o;i&&!n&&(e.globalCompositeOperation=this.blendMode,e.beginPath()),r&&(s.beginPath(),o=this._getColorId()),c.each(this._operations,(t=>{i&&!n&&(t.path(e),t.colorize(e,void 0)),r&&(t.pathGhost(s),t.colorizeGhost(s,o))}))}}renderDetached(t){if(this.visible){this._setMatrix(),t.save();const e=this.mask;e&&(e._setMatrix(),e._transform(t,1),e._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transform(t,1),this.filter&&(t.filter=this.filter),t.globalCompositeOperation=this.blendMode,t.beginPath(),c.each(this._operations,(e=>{e.path(t),e.colorize(t,void 0)})),t.restore()}}_addBounds(t){this.visible&&this.isMeasured&&c.each(this._operations,(e=>{e.addBounds(t)}))}}class tt extends S{constructor(t,e,i){super(t),this.resolution=1,this.textVisible=!0,this._originalScale=1,this.text=e,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_shared(t){this.style.textAlign&&(t.textAlign=this.style.textAlign),this.style.direction&&(t.direction=this.style.direction),this.style.textBaseline&&(t.textBaseline=this.style.textBaseline)}_prerender(t,e=!1,i=!1){super._render(t);const s=t.layer.context,r=this._renderer._ghostLayer.context,o=this.style;let a=this._getFontStyle(void 0,i);s.font=a,this._isInteractive(t)&&!e&&(r.font=a),o.fill&&(o.fill instanceof n.Il?s.fillStyle=o.fill.toCSS(null!=o.fillOpacity?o.fillOpacity:1):s.fillStyle=o.fill),o.shadowColor&&(t.layer.context.shadowColor=o.shadowColor.toCSS(o.shadowOpacity||1)),o.shadowBlur&&(t.layer.context.shadowBlur=o.shadowBlur),o.shadowOffsetX&&(t.layer.context.shadowOffsetX=o.shadowOffsetX),o.shadowOffsetY&&(t.layer.context.shadowOffsetY=o.shadowOffsetY),this._shared(s),this._isInteractive(t)&&!e&&(r.fillStyle=this._getColorId(),this._shared(r))}_getFontStyle(t,e=!1){const i=this.style;let s=[];return t&&t.fontVariant?s.push(t.fontVariant):i.fontVariant&&s.push(i.fontVariant),e||(t&&t.fontWeight?s.push(t.fontWeight):i.fontWeight&&s.push(i.fontWeight)),t&&t.fontStyle?s.push(t.fontStyle):i.fontStyle&&s.push(i.fontStyle),t&&t.fontSize?(d.isNumber(t.fontSize)&&(t.fontSize=t.fontSize+"px"),s.push(t.fontSize)):i.fontSize&&(d.isNumber(i.fontSize)&&(i.fontSize=i.fontSize+"px"),s.push(i.fontSize)),t&&t.fontFamily?s.push(t.fontFamily):i.fontFamily?s.push(i.fontFamily):s.length&&s.push("Arial"),s.join(" ")}_render(t,e=0){if(this._textInfo||this._measure(t),this.textVisible){const i=this._isInteractive(t),s=t.layer.context,r=t.layer.dirty,o=this._renderer._ghostLayer.context,a=this._ghostOnly(e),l=this._drawGhost(t,e);s.save(),o.save(),this._prerender(t),c.each(this._textInfo,((e,u)=>{c.each(e.textChunks,((c,u)=>{if(c.style&&(s.save(),o.save(),a||(s.font=c.style),this._isInteractive(t)&&(o.font=c.style)),c.fill&&(s.save(),a||(s.fillStyle=c.fill.toCSS())),r&&!a&&s.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),"underline"==c.textDecoration||"line-through"==c.textDecoration){let t=1,i=1,r=c.height;const o=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(o)>-1){const t=this._measureText(c.text,s);c.width=t.actualBoundingBoxLeft+t.actualBoundingBoxRight}let l,u=c.offsetX;switch(this.style.textAlign){case"right":case"end":u-=c.width;break;case"center":u-=c.width/2}if(c.style)switch(h.V.getTextStyle(c.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":t=2}r&&(i=r/20),l="line-through"==c.textDecoration?t+e.offsetY+c.offsetY-c.height/2:t+1.5*i+e.offsetY+c.offsetY,a||(s.save(),s.beginPath(),c.fill?s.strokeStyle=c.fill.toCSS():this.style.fill&&this.style.fill instanceof n.Il&&(s.strokeStyle=this.style.fill.toCSS()),s.lineWidth=t*i,s.moveTo(u,l),s.lineTo(u+c.width,l),s.stroke(),s.restore())}i&&this.interactive&&l&&o.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),c.fill&&s.restore(),c.style&&(s.restore(),o.restore())}))})),s.restore(),o.restore()}}_addBounds(t){if(this.visible&&this.isMeasured){const e=this._measure({inactive:this.inactive,layer:this.getLayer()});C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction;this._textInfo=[];const n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=d.isNumber(r)&&("wrap"==n||"wrap-no-break"==n);e.save(),i.save(),this._prerender(t,!0,this._ignoreFontWeight());const p="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",g=this.text.toString().replace(/\r/g,"").split(/\n/);let f,_=!0,m=0,y=0,v=0;c.each(g,((t,s)=>{let n;for(n=""==t?[{type:"value",text:""}]:h.V.chunk(t,!1,this.style.ignoreFormatting);n.length>0;){let t={offsetY:v,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const s=this._measureText(p,e),g=s.actualBoundingBoxAscent+s.actualBoundingBoxDescent;let w;t.height=g,t.ascent=s.actualBoundingBoxAscent;let b,x,D,k=this.style.textDecoration,T=!1,M=!0,E=[];c.eachContinue(n,((s,o)=>{if("format"==s.type)if("[/]"==s.text)_||(e.restore(),i.restore(),_=!0),b=void 0,f=void 0,x=void 0,k=this.style.textDecoration,D=void 0,w=s.text;else{_||(e.restore(),i.restore());let n=h.V.getTextStyle(s.text);const r=this._getFontStyle(n);e.save(),i.save(),e.font=r,f=r,w=s.text,n.textDecoration&&(k=n.textDecoration),n.fill&&(b=n.fill),n.width&&(x=d.toNumber(n.width)),n.verticalAlign&&(D=n.verticalAlign),_=!1;const o=this._measureText(p,e),a=o.actualBoundingBoxAscent+o.actualBoundingBoxDescent;a>t.height&&(t.height=a),o.actualBoundingBoxAscent>t.ascent&&(t.ascent=o.actualBoundingBoxAscent)}else if("value"==s.type&&!T){const i=this._measureText(s.text,e);let h=i.actualBoundingBoxLeft+i.actualBoundingBoxRight;if(a){this.truncated=void 0;let i=M||this.style.breakWords||!1;const n=this.style.ellipsis||"",o=this._measureText(n,e),a=o.actualBoundingBoxLeft+o.actualBoundingBoxRight;if(t.width+h>r){const o=r-t.width-a;s.text=this._truncateText(e,s.text,o,i),s.text+=n,T=!0,this.truncated=!0}}else if(u&&t.width+h>r){const i=r-t.width,a=this._truncateText(e,s.text,i,!1,M&&"wrap-no-break"!=this.style.oversizedBehavior);if(""==a)return this.textVisible=!0,!1;E=n.slice(o+1),l.trim(a)!=l.trim(s.text)&&(E.unshift({type:"value",text:s.text.substr(a.length)}),w&&E.unshift({type:"format",text:w})),s.text=l.trim(a),n=[],T=!0}let c=1,d=1;if(f&&x&&x>h){const t=h/x;switch(this.style.textAlign){case"right":case"end":c=t;break;case"center":c=t,d=t;break;default:d=t}h=x}const p=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent;p>t.height&&(t.height=p),i.actualBoundingBoxAscent>t.ascent&&(t.ascent=i.actualBoundingBoxAscent),t.width+=h,t.left+=i.actualBoundingBoxLeft/c,t.right+=i.actualBoundingBoxRight/d,t.textChunks.push({style:f,fill:b,text:s.text,width:h,height:p,left:i.actualBoundingBoxLeft,right:i.actualBoundingBoxRight,ascent:i.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:k,verticalAlign:D}),M=!1}return!0})),this.style.lineHeight instanceof o.gG?(t.height*=this.style.lineHeight.value,t.ascent*=this.style.lineHeight.value):(t.height*=this.style.lineHeight||1.2,t.ascent*=this.style.lineHeight||1.2),m{let i=0;c.each(t.textChunks,(e=>{if(e.offsetX=i+e.left-t.left,e.offsetY+=t.height-t.height*(this.style.baselineRatio||.19),i+=e.width*(s?-1:1),e.verticalAlign)switch(e.verticalAlign){case"super":e.offsetY-=t.height/2-e.height/2;break;case"sub":e.offsetY+=e.height/2}}))}));const w={left:s?-y:-m,top:0,right:s?m:y,bottom:v};if("none"!==n){const t=this._fitRatio(w);if(t<1)if("fit"==n)d.isNumber(this.style.minScale)&&ti&&""!=e);return e}_measureText(t,e){let i=e.measureText(t),s={};if(null==i.actualBoundingBoxAscent){const e=document.createElement("div");e.innerText=t,e.style.visibility="hidden",e.style.position="absolute",e.style.top="-1000000px;",e.style.fontFamily=this.style.fontFamily||"",e.style.fontSize=this.style.fontSize+"",document.body.appendChild(e);const n=e.getBoundingClientRect();document.body.removeChild(e);const r=n.height,o=i.width;s={actualBoundingBoxAscent:r,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:o,fontBoundingBoxAscent:r,fontBoundingBoxDescent:0,width:o}}else s={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const n=i.width;switch(this.style.textAlign){case"right":case"end":s.actualBoundingBoxLeft=n,s.actualBoundingBoxRight=0;break;case"center":s.actualBoundingBoxLeft=n/2,s.actualBoundingBoxRight=n/2;break;default:s.actualBoundingBoxLeft=0,s.actualBoundingBoxRight=n}return s}}class et{constructor(){this.lineHeight=(0,o.aQ)(120),this.baselineRatio=.19,this.oversizedBehavior="none",this.breakWords=!1,this.ellipsis="…",this.ignoreFormatting=!1}}class it extends tt{constructor(){super(...arguments),this.textType="circular",this.inside=!1,this.orientation="auto",this.kerning=0,this._textReversed=!1}_render(t,e=0){"circular"===this.textType?this._renderCircular(t,e):super._render(t,e)}_renderCircular(t,e=0){if(this.textVisible){this._prerender(t);const i=this._isInteractive(t),s=t.layer.context,n=t.layer.dirty,r=this._renderer._ghostLayer.context;s.save(),i&&r.save(),this._textInfo||this._measure(t);let o=this.radius||0,a=this.startAngle||0,h=0,l=this.orientation,u="auto"==l?"auto":"inward"==l;const d=this.inside,g=this.style.textAlign||"left",f=this.kerning||0;let _="left"==g?1:-1;const m=!this._textReversed,y=this._ghostOnly(e),v=this._drawGhost(t,e);if("auto"==u){let t=0,e=0;c.each(this._textInfo,((e,i)=>{const s=a+e.width/(o-e.height)/2*-_;s>t&&(t=s)})),e="left"==g?(t+h/2)*p.DEGREES:"right"==g?(t-h/2)*p.DEGREES:a*p.DEGREES,e=p.normalizeAngle(e),u=e>=270||e<=90}1==u&&m&&(this._textInfo.reverse(),this._textReversed=!0),c.each(this._textInfo,((t,e)=>{const l=t.height;d||(o+=l),(-1==_&&u||1==_&&!u)&&m&&t.textChunks.reverse();let p=a;h=0,"center"==g&&(p+=t.width/(o-l)/2*-_,h=p-a),p+=Math.PI*(u?0:1),s.save(),i&&r.save(),y||s.rotate(p),i&&r.rotate(p);let w=0;c.each(t.textChunks,((t,e)=>{const a=t.text,h=t.width;w=h/2/(o-l)*_,y||s.rotate(w),i&&r.rotate(w),t.style&&(s.save(),r.save(),y||(s.font=t.style),i&&(r.font=t.style)),t.fill&&(s.save(),y||(s.fillStyle=t.fill.toCSS())),y||(s.textBaseline="middle",s.textAlign="center"),i&&(r.textBaseline="middle",r.textAlign="center"),n&&!y&&s.fillText(a,0,(u?1:-1)*(0-o+l/2)),i&&v&&r.fillText(a,0,(u?1:-1)*(0-o+l/2)),t.fill&&s.restore(),t.style&&(s.restore(),r.restore()),w=(h/2+f)/(o-l)*_,y||s.rotate(w),i&&r.rotate(w)})),s.restore(),i&&r.restore(),d&&(o-=l)})),s.restore(),i&&r.restore()}}_measure(t){return"circular"===this.textType?this._measureCircular(t):super._measure(t)}_measureCircular(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction,n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=this.style.ellipsis||"";let p;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,e.save(),i.save(),this._prerender(t,!0);const g=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,_=0,m=0;return c.each(g,((t,n)=>{let g,y,v,w=h.V.chunk(t,!1,this.style.ignoreFormatting),b={offsetY:m,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};c.each(w,((t,n)=>{if("format"==t.type){if("[/]"==t.text)f||(e.restore(),i.restore(),f=!0),y=void 0,g=void 0,v=void 0;else{let s=h.V.getTextStyle(t.text);const n=this._getFontStyle(s);e.save(),i.save(),e.font=n,g=n,s.fill&&(y=s.fill),s.width&&(v=d.toNumber(s.width)),f=!1}a&&(p=this._measureText(u,e))}else if("value"==t.type){let i=t.text.match(/./gu)||[];s&&(i=l.splitString(t.text),i.reverse());for(let t=0;to&&(o=v);const h=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;if(h>b.height&&(b.height=h),n.actualBoundingBoxAscent>b.ascent&&(b.ascent=n.actualBoundingBoxAscent),_+=o,a){p||(p=this._measureText(u,e));const t=p.actualBoundingBoxLeft+p.actualBoundingBoxRight;if(_+t>r){1==b.textChunks.length?this.textVisible=!1:(b.width+=t,b.left+=p.actualBoundingBoxLeft,b.right+=p.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:u,width:t,height:h+p.actualBoundingBoxDescent,left:p.actualBoundingBoxLeft,right:p.actualBoundingBoxRight,ascent:p.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0}));break}}b.width+=o,b.left+=n.actualBoundingBoxLeft,b.right+=n.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:s,width:o,height:h+n.actualBoundingBoxDescent,left:n.actualBoundingBoxLeft,right:n.actualBoundingBoxRight,ascent:n.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0})}}})),this.style.lineHeight instanceof o.gG?b.height*=this.style.lineHeight.value:b.height*=this.style.lineHeight||1.2,this._textInfo.push(b),m+=b.height})),f||(e.restore(),i.restore()),"hide"==n&&_>r&&(this.textVisible=!1),c.each(this._textInfo,(t=>{c.each(t.textChunks,(e=>{e.offsetY+=Math.round((t.height-e.height+(t.ascent-e.ascent))/2)}))})),e.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class st extends S{constructor(t,e){super(t),this.image=e}_dispose(){super._dispose(),this._imageMask&&E(this._imageMask)}getLocalBounds(){if(!this._localBounds){let t=0,e=0;this.width&&(t=this.width),this.height&&(e=this.height),this._localBounds={left:0,top:0,right:t,bottom:e},this._addBounds(this._localBounds)}return this._localBounds}_render(t,e=0){if(super._render(t),this.image){if(void 0===this.tainted&&(this.tainted=M(this.image),t.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;const i=this._ghostOnly(e),s=this._drawGhost(t,e);if(t.layer.dirty&&!i){this.shadowColor&&(t.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(t.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(t.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(t.layer.context.shadowOffsetY=this.shadowOffsetY);const e=this.width||this.image.naturalWidth,i=this.height||this.image.naturalHeight;t.layer.context.drawImage(this.image,0,0,e,i)}if(this.interactive&&this._isInteractive(t)&&s){const t=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(t,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(t){if(void 0===this._imageMask){const e=this.width||t.naturalWidth,i=this.height||t.naturalHeight,s=document.createElement("canvas");s.width=e,s.height=i;const n=s.getContext("2d");n.imageSmoothingEnabled=!1,n.fillStyle=this._getColorId(),n.fillRect(0,0,e,i),M(t)||(n.globalCompositeOperation="destination-in",n.drawImage(t,0,0,e,i)),this._imageMask=s}return this._imageMask}}class nt{constructor(t,e,i,s){this.event=t,this.originalPoint=e,this.point=i,this.bbox=s,this.simulated=!1,this.native=!0,l.supports("touchevents")&&t instanceof Touch?this.id=t.identifier:this.id=null}}class rt extends a.rk{constructor(t){if(super(),this.view=document.createElement("div"),this._layerDom=document.createElement("div"),this.layers=[],this._dirtyLayers=[],this.defaultLayer=this.getLayer(0),this._ghostLayer=new ot,this._deferredGhostLayers=[],this._patternCanvas=document.createElement("canvas"),this._patternContext=this._patternCanvas.getContext("2d"),this._realWidth=0,this._realHeight=0,this._calculatedWidth=0,this._calculatedHeight=0,this.interactionsEnabled=!0,this._listeners={},this._events={},this._colorId=0,this._colorMap={},this._forceInteractive=0,this._omitTainted=!1,this._hovering=new Set,this._dragging=[],this._mousedown=[],this.tapToActivate=!1,this.tapToActivateTimeout=3e3,this._touchActive=!1,this.resolution=null==t?window.devicePixelRatio:t,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new a.ku((()=>{u.each(this._events,((t,e)=>{e.disposer.dispose()})),c.each(this.layers,(t=>{E(t.view),t.exportableView&&E(t.exportableView)})),E(this._ghostLayer.view),E(this._patternCanvas)}))),this._disposers.push(l.onZoom((()=>{null==t&&(this.resolution=window.devicePixelRatio)}))),l.supports("touchevents")){const t=t=>{0!==this._dragging.length&&c.eachContinue(this._dragging,(e=>!e.value.shouldCancelTouch()||(t.preventDefault(),!1))),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(l.addEventListener(window,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchmove",(()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()}),{passive:!0})),this._disposers.push(l.addEventListener(window,"click",(t=>{this._touchActive=!1}),{passive:!0})),this._disposers.push(l.addEventListener(this.view,"click",(t=>{window.setTimeout((()=>{this._touchActive=!0,this._delayTouchDeactivate()}),100)}),{passive:!0}))}l.supports("wheelevents")&&this._disposers.push(l.addEventListener(this.view,"wheel",(t=>{let e=!1;this._hovering.forEach((t=>{if(t.wheelable)return e=!0,!1})),e&&t.preventDefault()}),{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout((()=>{this._touchActive=!1}),this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(t){t?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(t,e,i,s){return this.defaultLayer.context.createLinearGradient(t,e,i,s)}createRadialGradient(t,e,i,s,n,r){return this.defaultLayer.context.createRadialGradient(t,e,i,s,n,r)}createPattern(t,e,i,s,n){return this._patternCanvas.width=s,this._patternCanvas.height=n,this._patternContext.clearRect(0,0,s,n),e.renderDetached(this._patternContext),t.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new N(this)}makeGraphics(){return new J(this)}makeText(t,e){return new tt(this,t,e)}makeTextStyle(){return new et}makeRadialText(t,e){return new it(this,t,e)}makePicture(t){return new st(this,t)}resizeLayer(t){t.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(t,e,i,s){this._realWidth=t,this._realHeight=e,this._calculatedWidth=i,this._calculatedHeight=s,c.each(this.layers,(t=>{t&&(t.dirty=!0,this.resizeLayer(t))})),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(t=!1){const e=document.createElement("canvas"),i=e.getContext("2d",{willReadFrequently:t}),s=new at(e,i);return e.style.position="absolute",e.style.top="0px",e.style.left="0px",s}getLayerByOrder(t){const e=this.layers,i=e.length;for(let s=0;st.order>e.order?1:t.order{t&&t.dirty&&t.visible&&(this._dirtyLayers.push(t),t.clear())})),this._ghostLayer.clear(),t.render({inactive:null,layer:this.defaultLayer});const e=this._deferredGhostLayers;if(e.length&&(e.sort(((t,e)=>t-e)),c.each(e,(e=>{t.render({inactive:null,layer:this.defaultLayer},e)}))),this._ghostLayer.context.restore(),c.each(this.layers,(t=>{if(t){const e=t.context;e.beginPath(),e.moveTo(0,0),e.stroke()}})),c.each(this._dirtyLayers,(t=>{t.context.restore(),t.dirty=!1})),this._hovering.size&&this._lastPointerMoveEvent){const{events:t,target:e,native:i}=this._lastPointerMoveEvent;c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))}}paintId(t){const e=function(t){const e=[0,0,0];for(let i=0;i<24;i++)e[i%3]<<=1,e[i%3]|=1&t,t>>=1;return(0|e[0])+(e[1]<<8)+(e[2]<<16)}(++this._colorId),i=n.Il.fromHex(e).toCSS();return this._colorMap[i]=t,i}_removeObject(t){void 0!==t._colorId&&delete this._colorMap[t._colorId]}_adjustBoundingBox(t){const e=this._ghostLayer.margin;return new DOMRect(-e.left,-e.top,t.width+e.left+e.right,t.height+e.top+e.bottom)}getEvent(t,e=!0){const i=this.view.getBoundingClientRect(),s=t.clientX||0,n=t.clientY||0,r=this._calculatedWidth/this._realWidth,o=this._calculatedHeight/this._realHeight,a={x:s-i.left,y:n-i.top},h={x:(s-(e?i.left:0))*r,y:(n-(e?i.top:0))*o};return new nt(t,a,h,this._adjustBoundingBox(i))}_getHitTarget(t,e,i){if(0===e.width||0===e.height||t.xe.right||t.ye.bottom)return;if(!i||!this._layerDom.contains(i))return;const s=this._ghostLayer.getImageData(t,e);if(0===s.data[0]&&0===s.data[1]&&0===s.data[2])return!1;const r=n.Il.fromRGB(s.data[0],s.data[1],s.data[2]).toCSS();return this._colorMap[r]}getObjectAtPoint(t){const e=this._ghostLayer.getImageArray(t);if(0===e[0]&&0===e[1]&&0===e[2])return;const i=n.Il.fromRGB(e[0],e[1],e[2]).toCSS();return this._colorMap[i]}_withEvents(t,e){const i=this._events[t];if(void 0!==i){i.dispatching=!0;try{e(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,c.keepIf(i.callbacks,(t=>!t.disposed)),0===i.callbacks.length&&(i.disposer.dispose(),delete this._events[t]))}}}_dispatchEventAll(t,e){this.interactionsEnabled&&this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.callback.call(t.context,e)}))}))}_dispatchEvent(t,e,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.object!==e||(t.callback.call(t.context,i),s=!0)}))})),s}_dispatchMousedown(t,e){const i=t.button;if(0!=i&&2!=i&&1!=i&&void 0!==i)return;const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);if(n){const t=s.id;let e=!1;k(n,(i=>{const n={id:t,value:i};return this._mousedown.push(n),!e&&this._dispatchEvent("pointerdown",i,s)&&(e=!0,this._dragging.some((e=>e.value===i&&e.id===t))||this._dragging.push(n)),!0}))}}_dispatchGlobalMousemove(t,e,i){const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);s.native=i,n?(this._hovering.forEach((t=>{t.contains(n)||(this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s))})),s.native&&k(n,(t=>(this._hovering.has(t)||(this._hovering.add(t),t.cursorOverStyle&&(t._replacedCursorStyle=l.getStyle(document.body,"cursor"),l.setStyle(document.body,"cursor",t.cursorOverStyle)),this._dispatchEvent("pointerover",t,s)),!0)))):(this._hovering.forEach((t=>{t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s)})),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(t){this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle)}_dispatchGlobalMouseup(t,e){const i=this.getEvent(t);i.native=e,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(t){if(0!==this._dragging.length){const e=this.getEvent(t),i=e.id;this._dragging.forEach((t=>{t.id===i&&this._dispatchEvent("pointermove",t.value,e)}))}}_dispatchDragEnd(t,e){const i=t.button;let s;if(0==i||void 0===i)s="click";else if(2==i)s="rightclick";else{if(1!=i)return;s="middleclick"}const n=this.getEvent(t),r=n.id;if(0!==this._mousedown.length){const t=this._getHitTarget(n.originalPoint,n.bbox,e);t&&this._mousedown.forEach((e=>{e.id===r&&e.value.contains(t)&&this._dispatchEvent(s,e.value,n)})),this._mousedown.length=0}0!==this._dragging.length&&(this._dragging.forEach((t=>{t.id===r&&this._dispatchEvent("pointerup",t.value,n)})),this._dragging.length=0)}_dispatchDoubleClick(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("dblclick",t,i)))}_dispatchWheel(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("wheel",t,i)))}_makeSharedEvent(t,e){if(void 0===this._listeners[t]){const i=e();this._listeners[t]=new a.DM((()=>{delete this._listeners[t],i.dispose()}))}return this._listeners[t].increment()}_onPointerEvent(t,e){let i=!1,s=null;function n(){s=null,i=!1}return new a.FV([new a.ku((()=>{null!==s&&clearTimeout(s),n()})),l.addEventListener(this.view,l.getRendererEvent(t),(t=>{i=!0,null!==s&&clearTimeout(s),s=window.setTimeout(n,0)})),T(window,t,((t,n)=>{null!==s&&(clearTimeout(s),s=null),e(t,n,i),i=!1}))])}_initEvent(t){switch(t){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",(()=>{const t=(t,e,i)=>{this._lastPointerMoveEvent={events:t,target:e,native:i},c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))};return new a.FV([this._onPointerEvent("pointerdown",t),this._onPointerEvent("pointermove",t)])}));case"globalpointerup":return this._makeSharedEvent("pointerup",(()=>{const t=this._onPointerEvent("pointerup",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}})),e=this._onPointerEvent("pointercancel",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}}));return new a.ku((()=>{t.dispose(),e.dispose()}))}));case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",(()=>{const t=this._onPointerEvent("pointerdown",((t,e)=>{c.each(t,(t=>{this._dispatchMousedown(t,e)}))})),e=this._onPointerEvent("pointermove",(t=>{c.each(t,(t=>{this._dispatchDragMove(t)}))})),i=this._onPointerEvent("pointerup",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))})),s=this._onPointerEvent("pointercancel",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))}));return new a.ku((()=>{t.dispose(),e.dispose(),i.dispose(),s.dispose()}))}));case"dblclick":return this._makeSharedEvent("dblclick",(()=>this._onPointerEvent("dblclick",((t,e)=>{c.each(t,(t=>{this._dispatchDoubleClick(t,e)}))}))));case"wheel":return this._makeSharedEvent("wheel",(()=>l.addEventListener(this.view,l.getRendererEvent("wheel"),(t=>{this._dispatchWheel(t,l.getEventTarget(t))}),{passive:!1})))}}_addEvent(t,e,i,s){let n=this._events[e];void 0===n&&(n=this._events[e]={disposer:this._initEvent(e),callbacks:[],dispatching:!1,cleanup:!1});const r={object:t,context:s,callback:i,disposed:!1};return n.callbacks.push(r),new a.ku((()=>{r.disposed=!0,n.dispatching?n.cleanup=!0:(c.removeFirst(n.callbacks,r),0===n.callbacks.length&&(n.disposer.dispose(),delete this._events[e]))}))}getCanvas(t,e){this.render(t),e||(e={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),n=Math.floor(this._calculatedHeight*this.resolution);if(e.minWidth&&e.minWidth>s){let t=e.minWidth/s;t>i&&(i=t*this.resolution)}if(e.minHeight&&e.minHeight>n){let t=e.minHeight/n;t>i&&(i=t*this.resolution)}if(e.maxWidth&&e.maxWidthn){let t=e.maxHeight/n;t{if(t&&t.visible&&(t.tainted||o)){d=!0,t.exportableView=t.view,t.exportableContext=t.context,t.view=document.createElement("canvas"),t.view.style.position="fixed",t.view.style.top="-10000px",this.view.appendChild(t.view),r.push(t.view);let e=0,o=0;t.margin&&(e+=t.margin.left||0+t.margin.right||0,o+=t.margin.top||0+t.margin.bottom||0),t.view.width=s+e,t.view.height=n+o,t.context=t.view.getContext("2d"),t.dirty=!0,t.scale=i}})),d&&(this._omitTainted=!0,this.render(t),this._omitTainted=!1),c.each(this.layers,(t=>{if(t&&t.visible){let e=0,i=0;t.margin&&(e=-(t.margin.left||0)*this.resolution,i=-(t.margin.top||0)*this.resolution),h.drawImage(t.view,e,i),t.exportableView&&(t.view=t.exportableView,t.exportableView=void 0),t.exportableContext&&(t.context=t.exportableContext,t.exportableContext=void 0),l{t.style.position="",t.style.top="",this.view.removeChild(t)})),a}}class ot{constructor(){this.margin={left:0,right:0,top:0,bottom:0},this._resolution=1,this._width=0,this._height=0,this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(t,e,i,s,n){this._resolution=n,t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(t,e){return this.context.getImageData(Math.round((t.x-e.left)/e.width*this._width),Math.round((t.y-e.top)/e.height*this._height),1,1)}getImageArray(t){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const e=this.imageArray,i=Math.round(t.x*this._resolution),s=4*(Math.round(t.y*this._resolution)*this._width+i);return[e[s],e[s+1],e[s+2],e[s+3]]}setMargin(t){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,c.each(t,(t=>{t.margin&&(this.margin.left=Math.max(this.margin.left,t.margin.left),this.margin.right=Math.max(this.margin.right,t.margin.right),this.margin.top=Math.max(this.margin.top,t.margin.top),this.margin.bottom=Math.max(this.margin.bottom,t.margin.bottom))}))}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class at{constructor(t,e){this.tainted=!0,this.order=0,this.visible=!0,this.dirty=!0,this._width=0,this._height=0,this.view=t,this.context=e}resize(t,e,i,s,n){null!=this.width&&(t=this.width,i=this.width),null!=this.height&&(e=this.height,s=this.height),this.margin?(t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}},4680:function(t,e,i){"use strict";var s;i.d(e,{b:function(){return s}}),function(t){t.ADD="lighter",t.COLOR="color",t.COLOR_BURN="color-burn",t.COLOR_DODGE="color-dodge",t.DARKEN="darken",t.DIFFERENCE="difference",t.DST_OVER="destination-over",t.EXCLUSION="exclusion",t.HARD_LIGHT="hard-light",t.HUE="hue",t.LIGHTEN="lighten",t.LUMINOSITY="luminosity",t.MULTIPLY="multiply",t.NORMAL="source-over",t.OVERLAY="overlay",t.SATURATION="saturation",t.SCREEN="screen",t.SOFT_LIGHT="soft-light",t.SRC_ATOP="source-atop",t.XOR="xor"}(s||(s={}))},1437:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}getFill(t){return{addColorStop:(t,e)=>{}}}_changed(){super._changed()}getBounds(t){const e=this.get("target");if(e){let i=e.globalBounds();const s=t.toLocal({x:i.left,y:i.top}),n=t.toLocal({x:i.right,y:i.top}),r=t.toLocal({x:i.right,y:i.bottom}),o=t.toLocal({x:i.left,y:i.bottom});return{left:Math.min(s.x,n.x,r.x,o.x),top:Math.min(s.y,n.y,r.y,o.y),right:Math.max(s.x,n.x,r.x,o.x),bottom:Math.max(s.y,n.y,r.y,o.y)}}return t._display.getLocalBounds()}}n.className="Gradient",n.classNames=s.JH.classNames.concat([n.className])},1747:function(t,e,i){"use strict";i.d(e,{o:function(){return h}});var s=i(1437),n=i(1112),r=i(5071),o=i(5040),a=i(751);class h extends s.p{getFill(t){const e=this.get("rotation",0);let i=this.getBounds(t),s=i.left||0,h=i.right||0,l=i.top||0,c=i.bottom||0,u=a.cos(e),d=a.sin(e),p=u*(h-s),g=d*(c-l);0==p&&(p=1),0==g&&(g=1);let f=Math.max(p,g);const _=this._root._renderer.createLinearGradient(s,l,s+f*u,l+f*d),m=this.get("stops");if(m){let t=0;r.each(m,(e=>{let i=e.offset;o.isNumber(i)||(i=t/(m.length-1));let s=e.opacity;o.isNumber(s)||(s=1);let r=e.color;if(r){const t=e.lighten;t&&(r=n.Il.lighten(r,t));const o=e.brighten;o&&(r=n.Il.brighten(r,o)),_.addColorStop(i,"rgba("+r.r+","+r.g+","+r.b+","+s+")")}t++}))}return _}}h.className="LinearGradient",h.classNames=s.p.classNames.concat([h.className])},3035:function(t,e,i){"use strict";i.d(e,{y:function(){return r}});var s=i(3437),n=i(5040);class r extends s.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("width",100),e=this.get("height",100),i=this.get("gap",0),s=this.get("strokeWidth",1);if(i){let n=i+s,r=e/n,o=this.get("angle",0)*Math.PI/180;if(0===o)for(let e=-r;e<2*r;e++){const i=Math.round(e*n-n/2)+.5;this._display.moveTo(-t,i),this._display.lineTo(2*t,i)}else{const i=Math.cos(o),s=Math.sin(o),r=2*Math.sqrt(t*t+e*e),a=n/Math.max(Math.abs(i),Math.abs(s)),h=2*Math.ceil(r/a);for(let t=-h;t0&&(r.beginFill(s,n),r.drawRect(0,0,e,i),r.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,r,t,e,i)}this._clear=!1}}n.className="Pattern",n.classNames=s.JH.classNames.concat([n.className])},4429:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(3437);class n extends s.c{_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const t=this.get("canvas");t&&(this.set("width",t.width),this.set("height",t.height))}_draw(){super._draw();const t=this.get("colorOpacity");void 0!==t&&(this._display.alpha=Math.max(0,t));const e=this._image;if(e){const t=this.get("width",100),i=this.get("height",100),s=this.get("fit","image");let n=0,r=0;"pattern"==s?(n=t,r=i,this.markDirty()):(n=e.width,r=e.height,"image"==s&&(this.set("width",n),this.set("height",r)));let o=0,a=0;this.get("centered",!0)&&(o=t/2-n/2,a=i/2-r/2),this._display.image(e,n,r,o,a)}const i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){const t=this.get("src");if(t){const e=new Image;e.src=t,e.decode().then((()=>{this._image=e,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{}))}}}n.className="PicturePattern",n.classNames=s.c.classNames.concat([n.className])},6490:function(t,e,i){"use strict";i.d(e,{SR:function(){return s},Wn:function(){return u},XG:function(){return p},ne:function(){return h},w6:function(){return l}});var s,n=i(7582),r=i(6245),o=i(1112),a=i(256);function h(t){return(0,n.mG)(this,void 0,void 0,(function*(){if(void 0!==t){const e=[];a.each(t,((t,i)=>{e.push(i.waitForStop())})),yield Promise.all(e)}}))}function l(t,e,i){return e+t*(i-e)}function c(t,e,i){return t>=1?i:e}function u(t,e,i){return new r.gG(l(t,e.percent,i.percent))}function d(t,e,i){return o.Il.interpolate(t,e,i)}function p(t,e){return"number"==typeof t&&"number"==typeof e?l:t instanceof r.gG&&e instanceof r.gG?u:t instanceof o.Il&&e instanceof o.Il?d:c}!function(t){t[t.Stopped=0]="Stopped",t[t.Playing=1]="Playing",t[t.Paused=2]="Paused"}(s||(s={}))},5071:function(t,e,i){"use strict";i.r(e),i.d(e,{add:function(){return v},any:function(){return r},copy:function(){return k},each:function(){return a},eachContinue:function(){return l},eachReverse:function(){return h},find:function(){return S},findIndex:function(){return O},findIndexReverse:function(){return P},findMap:function(){return C},findReverse:function(){return N},first:function(){return d},getFirstSortedIndex:function(){return R},getSortedIndex:function(){return A},has:function(){return D},indexOf:function(){return n},insert:function(){return p},insertIndex:function(){return M},keepIf:function(){return U},last:function(){return u},map:function(){return o},move:function(){return y},pushAll:function(){return f},pushOne:function(){return w},remove:function(){return _},removeFirst:function(){return m},removeIndex:function(){return E},replace:function(){return b},setIndex:function(){return g},shiftLeft:function(){return c},shuffle:function(){return L},slice:function(){return T},toArray:function(){return x}});var s=i(5040);function n(t,e){const i=t.length;for(let s=0;s0;)--i,e(t[i],i)}function l(t,e){const i=t.length;for(let s=0;s0;)if(--i,e(t[i],i))return i;return-1}function S(t,e){const i=O(t,e);if(-1!==i)return t[i]}function N(t,e){const i=P(t,e);if(-1!==i)return t[i]}function C(t,e){const i=t.length;for(let s=0;s>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,i=r+1):s=r}return{found:n,index:n?i-1:i}}function R(t,e){let i=0,s=t.length,n=!1;for(;i>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,s=r):s=r}return{found:n,index:i}}function U(t,e){let i=t.length;for(;i>0;)--i,e(t[i])||t.splice(i,1)}},1112:function(t,e,i){"use strict";i.d(e,{$_:function(){return a},Il:function(){return h}});var s=i(6490),n=i(7652),r=i(5040);function o(t){return"#"===t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0].repeat(2)+t[1].repeat(2)+t[2].repeat(2)),parseInt(t,16)}function a(t){return h.fromAny(t)}class h{constructor(t){this._hex=0|t}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return 255&this._hex}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+n.padString(this.r.toString(16),2)+n.padString(this.g.toString(16),2)+n.padString(this.b.toString(16),2)}toHSL(t=1){return n.rgbToHsl({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,e,i){const s=n.hslToRgb({h:t,s:e,l:i});return this.fromRGB(s.r,s.g,s.b)}toString(){return this.toCSSHex()}static fromHex(t){return new h(t)}static fromRGB(t,e,i){return new h((0|i)+(e<<8)+(t<<16))}static fromString(t){return new h(o(t))}static fromCSS(t){return new h(function(t){let e=(t=t.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return 0;let i="";for(let t=1;t<=3;t++){let s=parseInt(e[t]).toString(16);1==s.length&&(s="0"+s),i+=s}return o(i)}(t))}static fromAny(t){if(r.isString(t)){if("#"==t[0])return h.fromString(t);if("rgb"==t.substr(0,3))return h.fromCSS(t)}else{if(r.isNumber(t))return h.fromHex(t);if(t instanceof h)return h.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,e,i){const s=n.alternativeColor({r:t.r,g:t.g,b:t.b},e?{r:e.r,g:e.g,b:e.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(s.r,s.g,s.b)}static interpolate(t,e,i,n="rgb"){if("hsl"==n){const n=e.toHSL(),r=i.toHSL();return h.fromHSL((0,s.w6)(t,n.h,r.h),(0,s.w6)(t,n.s,r.s),(0,s.w6)(t,n.l,r.l))}return h.fromRGB((0,s.w6)(t,e.r,i.r),(0,s.w6)(t,e.g,i.g),(0,s.w6)(t,e.b,i.b))}static lighten(t,e){const i=n.lighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static brighten(t,e){const i=n.brighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static saturate(t,e){const i=n.saturate({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}}},2754:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});var s=i(6331),n=i(1112);class r extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const t=this.getPrivate("currentPass"),e=this.get("colors",[this.get("baseColor",n.Il.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",e.length);const i=this.getPrivate("numColors"),s=this.get("passOptions"),r=this.get("reuse");for(let o=0;o1;)r-=1;let a=i.s+(s.saturation||0)*t;a>1&&(a=1),a<0&&(a=0);let h=i.l+(s.lightness||0)*t;for(;h>1;)h-=1;e.push(n.Il.fromHSL(r,a,h))}}getIndex(t){const e=this.get("colors",[]),i=this.get("saturation");return t>=e.length?(this.generateColors(),this.getIndex(t)):null!=i?n.Il.saturate(e[t],i):e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}r.className="ColorSet",r.classNames=s.JH.classNames.concat([r.className])},9582:function(t,e,i){"use strict";i.d(e,{Q:function(){return r},k:function(){return n}});var s=i(7144);class n extends s.aV{incrementRef(){}decrementRef(){}_onPush(t){this.processor&&this.processor.processRow(t),super._onPush(t)}_onInsertIndex(t,e){this.processor&&this.processor.processRow(e),super._onInsertIndex(t,e)}_onSetIndex(t,e,i){this.processor&&this.processor.processRow(i),super._onSetIndex(t,e,i)}}class r{constructor(t){this._value=t}incrementRef(){}decrementRef(){}}},6460:function(t,e,i){"use strict";i.d(e,{C:function(){return h}});var s=i(6331),n=i(7255),r=i(462),o=i(5040),a=i(7652);class h extends s.JH{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i=!1){let s;void 0!==e&&""!==e||(e=this.get("dateFormat","yyyy-MM-dd"));let n=t;if(o.isObject(e))try{const t=this.get("intlLocales");return t?new Intl.DateTimeFormat(t,e).format(n):new Intl.DateTimeFormat(void 0,e).format(n)}catch(t){return"Invalid"}let r=this.parseFormat(e);const a=this._root.timezone;let h=n;return!a||this._root.utc||i||(n=a.convertLocal(n)),o.isNumber(n.getTime())?(s=this.applyFormat(n,r,i,h),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s):"Invalid date"}applyFormat(t,e,i=!1,s){let n,h,l,c,u,d,p,g,f=e.template,_=t.getTime();this._root.utc&&!i?(n=t.getUTCFullYear(),h=t.getUTCMonth(),l=t.getUTCDay(),c=t.getUTCDate(),u=t.getUTCHours(),d=t.getUTCMinutes(),p=t.getUTCSeconds(),g=t.getUTCMilliseconds()):(n=t.getFullYear(),h=t.getMonth(),l=t.getDay(),c=t.getDate(),u=t.getHours(),d=t.getMinutes(),p=t.getSeconds(),g=t.getMilliseconds());for(let i=0,m=e.parts.length;i=12?this._t("PM"):this._t("AM");break;case"aa":m=u>=12?this._t("P.M."):this._t("A.M.");break;case"aaa":m=u>=12?this._t("P"):this._t("A");break;case"h":m=a.get12Hours(u).toString();break;case"hh":m=a.padString(a.get12Hours(u),2,"0");break;case"H":m=u.toString();break;case"HH":m=a.padString(u,2,"0");break;case"K":m=a.get12Hours(u,0).toString();break;case"KK":m=a.padString(a.get12Hours(u,0),2,"0");break;case"k":m=(u+1).toString();break;case"kk":m=a.padString(u+1,2,"0");break;case"m":m=d.toString();break;case"mm":m=a.padString(d,2,"0");break;case"s":m=p.toString();break;case"ss":m=a.padString(p,2,"0");break;case"S":case"SS":case"SSS":m=Math.round(g/1e3*Math.pow(10,e.parts[i].length)).toString();break;case"x":m=_.toString();break;case"n":case"nn":case"nnn":m=a.padString(g,e.parts[i].length,"0");break;case"z":m=a.getTimeZone(s||t,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":m=a.getTimeZone(s||t,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":m=a.getTimeZone(s||t,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":m=a.getTimeZone(s||t,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let f=this._root.utc?"UTC":this._root.timezone;f instanceof r.r&&(f=f.name);const y=f?a.getTimezoneOffset(f,s||t):t.getTimezoneOffset();let v=Math.abs(y)/60,w=Math.floor(v),b=60*v-60*w;this._root.utc&&(w=0,b=0),"Z"==e.parts[i]?(m="GMT",m+=y>0?"-":"+",m+=a.padString(w,2)+":"+a.padString(b,2)):(m=y>0?"-":"+",m+=a.padString(w,2)+a.padString(b,2));break;case"i":m=t.toISOString();break;case"I":m=t.toUTCString()}f=f.replace(o.PLACEHOLDER,m)}return f}parseFormat(t){let e={template:"",parts:[]},i=n.V.chunk(t,!0);for(let t=0;t-1&&(l.year=parseInt(p[h.year])),h.year3>-1){let t=parseInt(p[h.year3]);t+=1e3,l.year=t}if(h.year2>-1){let t=parseInt(p[h.year2]);t+=t>50?1e3:2e3,l.year=t}if(h.year1>-1){let t=parseInt(p[h.year1]);t=10*Math.floor((new Date).getFullYear()/10)+t,l.year=t}if(h.monthLong>-1&&(l.month=this.resolveMonth(p[h.monthLong])),h.monthShort>-1&&(l.month=this.resolveShortMonth(p[h.monthShort])),h.month>-1&&(l.month=parseInt(p[h.month])-1),h.week>-1&&-1===h.day&&(l.month=0,l.day=a.getDayFromWeek(parseInt(p[h.week]),l.year,1,i)),h.day>-1&&(l.day=parseInt(p[h.day])),h.yearDay>-1&&(l.month=0,l.day=parseInt(p[h.yearDay])),h.hourBase0>-1&&(l.hour=parseInt(p[h.hourBase0])),h.hourBase1>-1&&(l.hour=parseInt(p[h.hourBase1])-1),h.hour12Base0>-1){let t=parseInt(p[h.hour12Base0]);11==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.hour12Base1>-1){let t=parseInt(p[h.hour12Base1]);12==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.minute>-1&&(l.minute=parseInt(p[h.minute])),h.second>-1&&(l.second=parseInt(p[h.second])),h.millisecond>-1){let t=parseInt(p[h.millisecond]);2==h.millisecondDigits?t*=10:1==h.millisecondDigits&&(t*=100),l.millisecond=t}if(h.timestamp>-1){l.timestamp=parseInt(p[h.timestamp]);const t=new Date(l.timestamp);l.year=t.getUTCFullYear(),l.month=t.getUTCMonth(),l.day=t.getUTCDate(),l.hour=t.getUTCHours(),l.minute=t.getUTCMinutes(),l.second=t.getUTCSeconds(),l.millisecond=t.getUTCMilliseconds()}h.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.zone])),h.iso>-1&&(l.year=o.toNumber(p[h.iso+0]),l.month=o.toNumber(p[h.iso+1])-1,l.day=o.toNumber(p[h.iso+2]),l.hour=o.toNumber(p[h.iso+3]),l.minute=o.toNumber(p[h.iso+4]),l.second=o.toNumber(p[h.iso+5]),l.millisecond=o.toNumber(p[h.iso+6]),"Z"==p[h.iso+7]||"z"==p[h.iso+7]?l.utc=!0:""!=p[h.iso+7]&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.iso+7]))),s=l.utc?new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else s=new Date(t);return s}resolveTimezoneOffset(t,e){if(e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let i=e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),s=i[1],n=i[2],r=i[3],o=60*parseInt(n)+parseInt(r);return"+"==s&&(o*=-1),o-(t||new Date).getTimezoneOffset()}return 0}resolveMonth(t){let e=this._months().indexOf(t);return e>-1||!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._months()).indexOf(t),e>-1)?e:0}resolveShortMonth(t){let e=this._shortMonths().indexOf(t);return e>-1?e:(e=this._months().indexOf(t),e>-1||this._root.language&&!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._shortMonths()).indexOf(t),e>-1)?e:0)}isAm(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1}getStringList(t){let e=[];for(let i=0;i{t.dispose()}))}}class a extends n{constructor(t){super(),this._disposers=t}_dispose(){s.each(this._disposers,(t=>{t.dispose()}))}get disposers(){return this._disposers}}class h extends n{_dispose(){null!=this._disposer&&(this._disposer.dispose(),this._disposer=void 0)}get(){return this._value}set(t,e){null!=this._disposer&&this._disposer.dispose(),this._disposer=e,this._value=t}reset(){this.set(void 0,void 0)}}class l extends r{constructor(){super(...arguments),this._counter=0}increment(){return++this._counter,new r((()=>{--this._counter,0===this._counter&&this.dispose()}))}}},798:function(t,e,i){"use strict";i.d(e,{$:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{constructor(){super(...arguments),this._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}}_setDefaults(){const t="_duration_millisecond",e="_duration_second",i="_duration_minute",s="_duration_hour",n="_duration_day",r="_duration_week",o="_duration_month",a="_minute",h="_hour",l="_day",c="_week",u="_week",d="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(t),second:this._t(t+"_second"),minute:this._t(t+a),hour:this._t(t+h),day:this._t(t+l),week:this._t(t+c),month:this._t(t+u),year:this._t(t+d)},second:{second:this._t(e),minute:this._t(e+a),hour:this._t(e+h),day:this._t(e+l),week:this._t(e+c),month:this._t(e+u),year:this._t(e+d)},minute:{minute:this._t(i),hour:this._t(i+h),day:this._t(i+l),week:this._t(i+c),month:this._t(i+u),year:this._t(i+d)},hour:{hour:this._t(s),day:this._t(s+l),week:this._t(s+c),month:this._t(s+u),year:this._t(s+d)},day:{day:this._t(n),week:this._t(n+c),month:this._t(n+u),year:this._t(n+d)},week:{week:this._t(r),month:this._t(r+u),year:this._t(r+d)},month:{month:this._t(o),year:this._t(o+d)},year:{year:this._t("_duration_year")}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s=i||this.get("baseUnit");void 0!==e&&""!==e||(e=null!=this.get("durationFormat")?this.get("durationFormat"):this.getFormat(a.toNumber(t),void 0,s)),e=o.cleanFormat(e);let n,r=this.parseFormat(e,s),h=Number(t);n=h>this.get("negativeBase")?r.positive:h{if(e.parsed)return;let i=e.source,s=[];s=e.source.match(/^\[([^\]]*)\]/),s&&s.length&&""!==s[0]&&(i=e.source.substr(s[0].length),e.color=s[1]);let r=n.V.chunk(i,!0);for(let t=0;t{"millisecond"==t&&1e3==i?(h.second++,h.millisecond=0):"second"==t&&60==i?(h.minute++,h.second=0):"minute"==t&&60==i?(h.hour++,h.minute=0):"hour"==t&&24==i?(h.day++,h.hour=0):"day"==t&&7==i&&-1!==e.parts.indexOf("w")?(h.week++,h.day=0):"day"==t&&30==i?(h.month++,h.day=0):"month"==t&&12==i&&(h.year++,h.month=0)}));for(let t=0,i=e.parts.length;t{if(t==e||i){if(s/n<=1)return i||(i=t),!1;i=t}return!0})),i}getMilliseconds(t,e){return e||(e=this.get("baseUnit")),t*this._getUnitValue(e)}_getUnitValue(t){return this._getUnitValues()[t]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}},9395:function(t,e,i){"use strict";i.r(e),i.d(e,{bounce:function(){return k},circle:function(){return c},cubic:function(){return o},elastic:function(){return P},exp:function(){return h},inOut:function(){return p},linear:function(){return n},out:function(){return d},pow:function(){return a},quad:function(){return r},sine:function(){return l},yoyo:function(){return u}});var s=i(751);function n(t){return t}function r(t){return t*t}function o(t){return t*t*t}function a(t,e){return Math.pow(t,e)}function h(t){return Math.pow(2,10*t-10)}function l(t){return 1-Math.cos(t*s.HALFPI)}function c(t){return 1-Math.sqrt(1-t*t)}function u(t){return function(e){return t(e<.5?2*e:2*(1-e))}}function d(t){return function(e){return 1-t(1-e)}}function p(t){return function(e){return e<=.5?t(2*e)/2:1-t(2*(1-e))/2}}let g=4/11,f=6/11,_=8/11,m=3/4,y=9/11,v=10/11,w=15/16,b=21/22,x=63/64,D=1/g/g;function k(t){return 1-function(t){return t{this._userSettings[t]=!0}))}get(t,e){const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._settings[t]=e}set(t,e){this._userSettings[t]=!0,this.setRaw(t,e)}remove(t){delete this._userSettings[t],delete this._settings[t]}setAll(t){o.entries(t).forEach((([t,e])=>{this.set(t,e)}))}_eachSetting(t){o.each(this._settings,t)}apply(){const t={stateAnimationEasing:!0,stateAnimationDuration:!0},e=this._entity.states.lookup("default");this._eachSetting(((i,s)=>{t[i]||(t[i]=!0,this!==e&&(i in e._settings||(e._settings[i]=this._entity.get(i))),this._entity.set(i,s))}))}applyAnimate(t){null==t&&(t=this._settings.stateAnimationDuration),null==t&&(t=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let e=this._settings.stateAnimationEasing;null==e&&(e=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",a.cubic)));const i=this._entity.states.lookup("default"),s={stateAnimationEasing:!0,stateAnimationDuration:!0},n={};return this._eachSetting(((r,o)=>{if(!s[r]){s[r]=!0,this!=i&&(r in i._settings||(i._settings[r]=this._entity.get(r)));const a=this._entity.animate({key:r,to:o,duration:t,easing:e});a&&(n[r]=a)}})),n}}class l{constructor(t){this._states={},this._entity=t}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new h(this._entity,e);return this._states[t]=i,i}}remove(t){delete this._states[t]}apply(t){const e=this._states[t];e&&e.apply(),this._entity._applyState(t)}applyAnimate(t,e){let i;const s=this._states[t];return s&&(i=s.applyAnimate(e)),this._entity._applyStateAnimated(t,e),i}}var c=i(3145),u=i(5071),d=i(3540);class p{constructor(t){this._callbacks={},this._disabled={},this._entity=t}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),this._entity._markDirtyKey(t),new s.ku((()=>{u.removeFirst(i,e)&&this._entity._markDirtyKey(t)}))}remove(t){const e=this._callbacks[t];void 0!==e&&(delete this._callbacks[t],0!==e.length&&this._entity._markDirtyKey(t))}enable(t){this._disabled[t]&&(delete this._disabled[t],this._entity._markDirtyKey(t))}disable(t){this._disabled[t]||(this._disabled[t]=!0,this._entity._markDirtyKey(t))}fold(t,e){if(!this._disabled[t]){const i=this._callbacks[t];if(void 0!==i)for(let s=0,n=i.length;s{if(this._stopped)t();else{const e=()=>{i.dispose(),t()},i=this.events.on("stopped",e)}}))}_checkEnded(){return!(this._loops>1&&(--this._loops,1))}_run(t){null!==this._oldTime&&(this._time+=t-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=t}_reset(t){this._oldTime=t,this._time=0}_value(t){return this._interpolate(this._easing(t),this._from,this._to)}}let f=0;class _{constructor(t){this.uid=++f,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._prevSettings={},this._prevPrivateSettings={},this._animatingSettings={},this._animatingPrivateSettings={},this._disposed=!1,this._userProperties={},this.enableDispose=!0,this._settings=t}_checkDirty(){o.keys(this._settings).forEach((t=>{this._userProperties[t]=!0,this._markDirtyKey(t)}))}resetUserSettings(){this._userProperties={}}_runAnimation(t){let e=r.SR.Stopped;if(!this.isDisposed()){let i=!1,s=!1;o.each(this._animatingSettings,((e,n)=>{if(n.stopped)this._stopAnimation(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.set(e,n._value(1)):(i=!0,n._reset(t),this._set(e,n._value(1))):(i=!0,this._set(e,n._value(s)))}else s=!0})),o.each(this._animatingPrivateSettings,((e,n)=>{if(n.stopped)this._stopAnimationPrivate(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.setPrivate(e,n._value(1)):(i=!0,n._reset(t),this._setPrivate(e,n._value(1))):(i=!0,this._setPrivate(e,n._value(s)))}else s=!0})),i?e=r.SR.Playing:s&&(e=r.SR.Paused)}return e}_markDirtyKey(t){this.markDirty()}_markDirtyPrivateKey(t){this.markDirty()}on(t,e){let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}off(t,e){let i=this._settingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._settingEvents[t]}onPrivate(t,e){let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}offPrivate(t,e){let i=this._privateSettingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._privateSettingEvents[t]}getRaw(t,e){const i=this._settings[t];return void 0!==i?i:e}has(t){return t in this._settings}get(t,e){return this.getRaw(t,e)}_sendKeyEvent(t,e){const i=this._settingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_sendPrivateKeyEvent(t,e){const i=this._privateSettingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_setRaw(t,e,i){this._prevSettings[t]=e,this._sendKeyEvent(t,i)}setRaw(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&this._setRaw(t,i,e)}_set(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&(this._setRaw(t,i,e),this._markDirtyKey(t))}_stopAnimation(t){const e=this._animatingSettings[t];e&&(delete this._animatingSettings[t],e.stop())}set(t,e){return this._set(t,e),this._stopAnimation(t),e}remove(t){t in this._settings&&(this._prevSettings[t]=this._settings[t],delete this._settings[t],this._sendKeyEvent(t,void 0),this._markDirtyKey(t)),this._stopAnimation(t)}removeAll(){u.each(o.keys(this._settings),(t=>{this.remove(t)}))}getPrivate(t,e){const i=this._privateSettings[t];return void 0!==i?i:e}_setPrivateRaw(t,e,i){this._prevPrivateSettings[t]=e,this._sendPrivateKeyEvent(t,i)}setPrivateRaw(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&this._setPrivateRaw(t,i,e)}_setPrivate(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&(this._setPrivateRaw(t,i,e),this._markDirtyPrivateKey(t))}_stopAnimationPrivate(t){const e=this._animatingPrivateSettings[t];e&&(e.stop(),delete this._animatingPrivateSettings[t])}setPrivate(t,e){return this._setPrivate(t,e),this._stopAnimationPrivate(t),e}removePrivate(t){t in this._privateSettings&&(this._prevPrivateSettings[t]=this._privateSettings[t],delete this._privateSettings[t],this._markDirtyPrivateKey(t)),this._stopAnimationPrivate(t)}setAll(t){o.each(t,((t,e)=>{this.set(t,e)}))}animate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.get(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.set(e,i);else{if(void 0!==r&&r!==i){this.set(e,r);const t=this._animatingSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.set(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}animatePrivate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.getPrivate(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.setPrivate(e,i);else{if(void 0!==r&&r!==i){this.setPrivate(e,r);const t=this._animatingPrivateSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.setPrivate(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}}class m extends _{constructor(t,e,i,s=[]){if(super(e),this.states=new l(this),this.adapters=new p(this),this.events=this._createEvents(),this._userPrivateProperties={},this._dirty={},this._dirtyPrivate={},this._templates=[],this._defaultThemes=[],this._templateDisposers=[],this._disposers=[],this._runSetup=!0,this._disposerProperties={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t,this._internalTemplates=s,e.id&&this._registerId(e.id)}static new(t,e,i){const s=new this(t,e,!0);return s._template=i,s._afterNew(),s}static _new(t,e,i=[]){const s=new this(t,e,!0,i);return s._afterNew(),s}_afterNew(){this._checkDirty();let t=!1;const e=this._template;e&&(t=!0,e._setObjectTemplate(this)),u.each(this._internalTemplates,(e=>{t=!0,e._setObjectTemplate(this)})),t&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const t=this._template;t&&t._setObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._setObjectTemplate(this)})),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new n.p}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(t,e){const i=this.get(t);if(i)return i;{const i=e();return this.set(t,i),i}}_setDefault(t,e){this.has(t)||super.set(t,e)}_setRawDefault(t,e){this.has(t)||super.setRaw(t,e)}_clearDirty(){o.keys(this._dirty).forEach((t=>{this._dirty[t]=!1})),o.keys(this._dirtyPrivate).forEach((t=>{this._dirtyPrivate[t]=!1}))}isDirty(t){return!!this._dirty[t]}isPrivateDirty(t){return!!this._dirtyPrivate[t]}_markDirtyKey(t){this._dirty[t]=!0,super._markDirtyKey(t)}_markDirtyPrivateKey(t){this._dirtyPrivate[t]=!0,super._markDirtyKey(t)}isType(t){return-1!==this.classNames.indexOf(t)}_pushPropertyDisposer(t,e){let i=this._disposerProperties[t];return void 0===i&&(i=this._disposerProperties[t]=[]),i.push(e),e}_disposeProperty(t){const e=this._disposerProperties[t];void 0!==e&&(u.each(e,(t=>{t.dispose()})),delete this._disposerProperties[t])}set template(t){const e=this._template;e!==t&&(this._template=t,e&&e._removeObjectTemplate(this),t&&t._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(t){}_applyStateAnimated(t,e){}get(t,e){const i=this.adapters.fold(t,this._settings[t]);return void 0!==i?i:e}isUserSetting(t){return this._userProperties[t]||!1}set(t,e){return this._userProperties[t]=!0,super.set(t,e)}setRaw(t,e){this._userProperties[t]=!0,super.setRaw(t,e)}_setSoft(t,e){return this._userProperties[t]?e:super.set(t,e)}remove(t){delete this._userProperties[t],this._removeTemplateProperty(t)}setPrivate(t,e){return this._userPrivateProperties[t]=!0,super.setPrivate(t,e)}setPrivateRaw(t,e){this._userPrivateProperties[t]=!0,super.setPrivateRaw(t,e)}removePrivate(t){delete this._userPrivateProperties[t],this._removeTemplatePrivateProperty(t)}_setTemplateProperty(t,e,i){this._userProperties[e]||t===this._findTemplateByKey(e)&&super.set(e,i)}_setTemplatePrivateProperty(t,e,i){this._userPrivateProperties[e]||t===this._findTemplateByPrivateKey(e)&&super.setPrivate(e,i)}_removeTemplateProperty(t){if(!this._userProperties[t]){const e=this._findTemplateByKey(t);e?super.set(t,e._settings[t]):super.remove(t)}}_removeTemplatePrivateProperty(t){if(!this._userPrivateProperties[t]){const e=this._findTemplateByPrivateKey(t);e?super.setPrivate(t,e._privateSettings[t]):super.removePrivate(t)}}_walkParents(t){t(this._root._rootContainer),t(this)}_applyStateByKey(t){const e=this.states.create(t,{}),i={};this._eachTemplate((s=>{const n=s.states.lookup(t);n&&n._apply(e,i)})),o.each(e._settings,(t=>{i[t]||e._userSettings[t]||e.remove(t)}))}_applyTemplate(t,e){this._templateDisposers.push(t._apply(this,e)),o.each(t._settings,((t,i)=>{e.settings[t]||this._userProperties[t]||(e.settings[t]=!0,super.set(t,i))})),o.each(t._privateSettings,((t,i)=>{e.privateSettings[t]||this._userPrivateProperties[t]||(e.privateSettings[t]=!0,super.setPrivate(t,i))})),this._runSetup&&t.setup&&(this._runSetup=!1,t.setup(this))}_findStaticTemplate(t){if(this._template&&t(this._template))return this._template}_eachTemplate(t){this._findStaticTemplate((e=>(t(e),!1))),u.eachReverse(this._internalTemplates,t),u.each(this._templates,t)}_applyTemplates(t=!0){t&&this._disposeTemplates();const e={settings:{},privateSettings:{},states:{}};this._eachTemplate((t=>{this._applyTemplate(t,e)})),t&&(o.each(this._settings,(t=>{this._userProperties[t]||e.settings[t]||super.remove(t)})),o.each(this._privateSettings,(t=>{this._userPrivateProperties[t]||e.privateSettings[t]||super.removePrivate(t)})))}_findTemplate(t){const e=this._findStaticTemplate(t);if(void 0===e){const e=u.findReverse(this._internalTemplates,t);return void 0===e?u.find(this._templates,t):e}return e}_findTemplateByKey(t){return this._findTemplate((e=>t in e._settings))}_findTemplateByPrivateKey(t){return this._findTemplate((e=>t in e._privateSettings))}_disposeTemplates(){u.each(this._templateDisposers,(t=>{t.dispose()})),this._templateDisposers.length=0}_removeTemplates(){u.each(this._templates,(t=>{t._removeObjectTemplate(this)})),this._templates.length=0}_applyThemes(t=!1){if(this.get("ignoreThemes"))return!1;let e=!1;const i=[];let s=[];const n=new Set,r=this.get("themeTagsSelf");return r&&u.each(r,(t=>{n.add(t)})),this._walkParents((t=>{t===this._root._rootContainer&&(e=!0),t._defaultThemes.length>0&&i.push(t._defaultThemes);const r=t.get("themes");r&&s.push(r);const o=t.get("themeTags");o&&u.each(o,(t=>{n.add(t)}))})),s=i.concat(s),this._removeTemplates(),(e||t)&&u.eachReverse(this.classNames,(t=>{const e=[];u.each(s,(i=>{u.each(i,(i=>{const s=i._lookupRules(t);s&&u.eachReverse(s,(t=>{if(t.tags.every((t=>n.has(t)))){const i=u.getFirstSortedIndex(e,(e=>{const i=d.qu(t.tags.length,e.tags.length);return 0===i?d.wq(t.tags,e.tags,d.qu):i}));e.splice(i.index,0,t)}}))}))})),u.each(e,(t=>{this._templates.push(t.template),t.template._setObjectTemplate(this)}))})),this._applyTemplates(),(e||t)&&(this._runSetup=!1),e||t}_changed(){}_beforeChanged(){if(this.isDirty("id")){const t=this.get("id");t&&this._registerId(t);const e=this._prevSettings.id;e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}}_registerId(t){if(this._root.entitiesById[t]&&this._root.entitiesById[t]!==this)throw new Error('An entity with id "'+t+'" already exists.');this._root.entitiesById[t]=this,c.i_.entitiesById[t]=this}_afterChanged(){}addDisposer(t){return this._disposers.push(t),t}_dispose(){super._dispose();const t=this._template;t&&t._removeObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._removeObjectTemplate(this)})),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach((t=>{t.dispose()})),o.each(this._disposerProperties,((t,e)=>{u.each(e,(t=>{t.dispose()}))}));const e=this.get("id");e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}setTimeout(t,e){const i=setTimeout((()=>{this.removeDispose(n),t()}),e),n=new s.ku((()=>{clearTimeout(i)}));return this._disposers.push(n),n}removeDispose(t){if(!this.isDisposed()){let e=u.indexOf(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()}hasTag(t){return-1!==u.indexOf(this.get("themeTags",[]),t)}addTag(t){if(!this.hasTag(t)){const e=this.get("themeTags",[]);e.push(t),this.set("themeTags",e)}}removeTag(t){if(this.hasTag(t)){const e=this.get("themeTags",[]);u.remove(e,t),this.set("themeTags",e)}}_t(t,e,...i){return this._root.language.translate(t,e,...i)}get root(){return this._root}}m.className="Entity",m.classNames=["Entity"]},9770:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var s=i(7449),n=i(5071),r=i(5040);class o{constructor(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{n.each(t,(t=>{t.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}}hasListeners(){return 0!==this._listeners.length}hasListenersByType(t){return n.any(this._listeners,(e=>(null===e.type||e.type===t)&&!e.killed))}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(t){delete this._disabled[t]}disableType(t,e=1/0){this._disabled[t]=e}_removeListener(t){if(0===this._iterating){const e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)}_removeExistingListener(t,e,i,s){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((n=>{n.once!==t||n.type!==e||void 0!==i&&n.callback!==i||n.context!==s||n.disposer.dispose()}))}isEnabled(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&void 0===this._disabled[t]}removeType(t){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((e=>{e.type===t&&e.disposer.dispose()}))}has(t,e,i){return-1!==n.findIndex(this._listeners,(s=>!0!==s.once&&s.type===t&&(void 0===e||s.callback===e)&&s.context===i))}_shouldDispatch(t){if(this._disposed)throw new Error("EventDispatcher is disposed");const e=this._disabled[t];return r.isNumber(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled}_eachListener(t){++this._iterating;try{n.each(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(n.each(this._killed,(t=>{this._removeListener(t)})),this._killed.length=0)}}dispatch(t,e){this._shouldDispatch(t)&&this._eachListener((i=>{i.killed||null!==i.type&&i.type!==t||(i._debounceDelay?(i._debounceTimeout&&window.clearTimeout(i._debounceTimeout),i._debounceTimeout=window.setTimeout((()=>{i._debounceTimeout=void 0,i.killed||i.dispatch(t,e)}),i._debounceDelay)):i.dispatch(t,e))}))}_on(t,e,i,n,r,o,a){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);const h={type:e,callback:i,context:n,shouldClone:r,dispatch:o,killed:!1,once:t,disposer:new s.ku((()=>{h.killed=!0,h._debounceTimeout&&window.clearTimeout(h._debounceTimeout),this._removeListener(h)})),_debounceDelay:a};return this._listeners.push(h),h}onAll(t,e,i=!0){return this._on(!1,null,t,e,i,((i,s)=>t.call(e,s))).disposer}on(t,e,i,s=!0){return this._on(!1,t,e,i,s,((t,s)=>e.call(i,s))).disposer}onDebounced(t,e,i,s,n=!0){return this._on(!1,t,e,s,n,((t,i)=>e.call(s,i)),i).disposer}once(t,e,i,s=!0){const n=this._on(!0,t,e,i,s,((t,s)=>{n.disposer.dispose(),e.call(i,s)}));return n.disposer}off(t,e,i){this._removeExistingListener(!1,t,e,i)}copyFrom(t){if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const e=[];return n.each(t._listeners,(t=>{!t.killed&&t.shouldClone&&(null===t.type?e.push(this.onAll(t.callback,t.context)):t.once?e.push(this.once(t.type,t.callback,t.context)):e.push(this.on(t.type,t.callback,t.context)))})),new s.FV(e)}}},9821:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(6331);class n extends s.JH{}n.className="InterfaceColors",n.classNames=s.JH.classNames.concat([n.className])},7144:function(t,e,i){"use strict";i.d(e,{aV:function(){return o},dn:function(){return a},o:function(){return h}});var s=i(9770),n=i(5071);function r(t,e){if(!(t>=0&&t=0&&t{this.push(t)}))}copyFrom(t){this.pushAll(t._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(t){const e=this._values;this._values=[],this._onClear(e),n.each(t,(t=>{this._values.push(t),this._onPush(t)}))}clear(){this.setAll([])}*[Symbol.iterator](){const t=this._values.length;for(let e=0;e{t.dispose()})),super._onClear(t)}_dispose(){this.autoDispose&&n.each(this._values,(t=>{t.dispose()}))}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class h extends a{constructor(t,e){super(),this.template=t,this.make=e}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}}},751:function(t,e,i){"use strict";i.r(e),i.d(e,{DEGREES:function(){return a},HALFPI:function(){return r},PI:function(){return n},RADIANS:function(){return o},boundsOverlap:function(){return M},ceil:function(){return l},circlesOverlap:function(){return O},closest:function(){return T},cos:function(){return f},fitAngleToRange:function(){return w},fitToRange:function(){return d},getAngle:function(){return x},getArcBounds:function(){return m},getArcPoint:function(){return y},getCubicControlPointA:function(){return c},getCubicControlPointB:function(){return u},getPointOnLine:function(){return k},getPointOnQuadraticCurve:function(){return D},inBounds:function(){return b},mergeBounds:function(){return v},normalizeAngle:function(){return _},round:function(){return h},sin:function(){return p},spiralPoints:function(){return E},tan:function(){return g}});var s=i(5040);const n=Math.PI,r=n/2,o=n/180,a=180/n;function h(t,e,i){if(!(0,s.isNumber)(e)||e<=0){let e=Math.round(t);return i&&e-t==.5&&e--,e}{let i=Math.pow(10,e);return Math.round(t*i)/i}}function l(t,e){if(!(0,s.isNumber)(e)||e<=0)return Math.ceil(t);{let i=Math.pow(10,e);return Math.ceil(t*i)/i}}function c(t,e,i,s,n){return{x:(-t.x+e.x/s+i.x)*s,y:(-t.y+e.y/n+i.y)*n}}function u(t,e,i,s,n){return{x:(t.x+e.x/s-i.x)*s,y:(t.y+e.y/n-i.y)*n}}function d(t,e,i){return Math.min(Math.max(t,e),i)}function p(t){return Math.sin(o*t)}function g(t){return Math.tan(o*t)}function f(t){return Math.cos(o*t)}function _(t){return(t%=360)<0&&(t+=360),t}function m(t,e,i,s,n){let r=Number.MAX_VALUE,o=Number.MAX_VALUE,a=-Number.MAX_VALUE,h=-Number.MAX_VALUE,l=[];l.push(y(n,i)),l.push(y(n,s));let c=Math.min(90*Math.floor(i/90),90*Math.floor(s/90)),u=Math.max(90*Math.ceil(i/90),90*Math.ceil(s/90));for(let t=c;t<=u;t+=90)t>=i&&t<=s&&l.push(y(n,t));for(let t=0;ta&&(a=e.x),e.y>h&&(h=e.y)}return{left:t+r,top:e+o,right:t+a,bottom:e+h}}function y(t,e){return{x:t*f(e),y:t*p(e)}}function v(t){const e=t.length;if(e>0){let i=t[0],s=i.left,n=i.top,r=i.right,o=i.bottom;if(e>1)for(let a=1;ai){let t=e;e=i,i=t}t=_(t);let s=(e-_(e))/360;return ti&&(t-360>e?t-=360:t=te+(i-e)/2-180?e:i),t}function b(t,e){return t.x>=e.left&&t.y>=e.top&&t.x<=e.right&&t.y<=e.bottom}function x(t,e){e||(e={x:2*t.x,y:2*t.y});let i=e.x-t.x,s=e.y-t.y,n=Math.atan2(s,i)*a;return n<0&&(n+=360),_(n)}function D(t,e,i,s){return{x:(1-s)*(1-s)*t.x+2*(1-s)*s*i.x+s*s*e.x,y:(1-s)*(1-s)*t.y+2*(1-s)*s*i.y+s*s*e.y}}function k(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function T(t,e){return t.reduce((function(t,i){return Math.abs(i-e)e.left,s=t.tope.top;return i&&s}function E(t,e,i,s,n,r,h,l,c){let u=n+.01;l=_(l),c=_(c);let d=l*o;cu&&(o=2*u),o*=Math.max(.01,Math.min(1,u/200));let g=d*a,f={x:t+u*Math.cos(d),y:e+u*s/i*Math.sin(d)};if(p.push(f),u=n+.01+(g-l)/360*h,d+=2*Math.asin(o/2/u),d*a>c+360*Math.ceil((i-n)/h))break}return p.shift(),p}function O(t,e){return Math.hypot(t.x-e.x,t.y-e.y)<=t.radius+e.radius}},8219:function(t,e,i){"use strict";i.d(e,{u:function(){return a}});var s=i(6331),n=i(7652),r=i(7449);let o;class a extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._setRawDefault("deactivateRoot",!0),function(t,e,i){const s=e.interfaceColors,a=s.get("secondaryButton").toCSS(),h=s.get("text").toCSS(),l=s.get("alternativeBackground").toCSS(.45);if(!o){const i=new r.FV([new n.StyleRule(t,".am5-modal",{width:"100%",height:"100%",position:"absolute","z-index":"100000",top:"0",left:"0"},e.nonce),new n.StyleRule(t,".am5-modal-curtain",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute",background:s.get("background").toCSS(.5),"z-index":"100"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute","text-align":"center","white-space":"nowrap",background:s.get("background").toCSS(.5),"z-index":"101"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper:before",{content:"''",display:"inline-block",height:"100%","vertical-align":"middle","margin-right":"-0.25em"},e.nonce),new n.StyleRule(t,".am5-modal-content",{display:"inline-block",padding:"1.2em","vertical-align":"middle","text-align":"start","white-space":"normal",background:s.get("background").toCSS(),"border-radius":"4px","-webkit-box-shadow":"0px 0px 36px 0px "+l,"box-shadow":"0px 0px 36px 0px "+l,color:h},e.nonce),new n.StyleRule(t,".am5-modal-content h1",{"font-size":"1em",margin:"0 0 0.5em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table",{display:"table",margin:"1em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-row",{display:"table-row"},e.nonce),new n.StyleRule(t,".am5-modal-table-heading",{display:"table-heading",padding:"3px 10px 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell",{display:"table-cell",padding:"3px 0 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell > *",{"vertical-align":"middle"},e.nonce),new n.StyleRule(t,".am5-modal-content input[type=text], .am5-modal-content input[type=number], .am5-modal-content select",{border:"1px solid "+a,"border-radius":"4px",padding:"3px 5px",margin:"2px"},e.nonce),new n.StyleRule(t,".am5-modal-input-narrow",{width:"50px"},e.nonce),new n.StyleRule(t,".am5-modal-button",{"font-weight":"400",color:s.get("secondaryButtonText").toCSS(),"line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer",padding:"0.2em 0.8em","font-size":"1em","border-radius":"0.25em",margin:"0 0.25em 0 0",border:"1px solid "+s.get("secondaryButtonStroke").toCSS(),background:s.get("secondaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button:hover",{background:s.get("secondaryButtonHover").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary",{color:s.get("primaryButtonText").toCSS(),border:"1px solid "+s.get("primaryButtonStroke").toCSS(),background:s.get("primaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary:hover",{background:s.get("primaryButtonHover").toCSS()},e.nonce)]);o=new r.DM((()=>{o=void 0,i.dispose()}))}o.increment()}(n.getShadowRoot(this._root.dom),this._root);const t=document.createElement("div");t.className="am5-modal",t.style.display="none",this.root._inner.appendChild(t),this.setPrivate("container",t);const e=document.createElement("div");e.className="am5-modal-curtain",t.appendChild(e),this.setPrivate("curtain",e),this._disposers.push(n.addEventListener(e,"click",(()=>{this.cancel()})));const i=document.createElement("div");i.className="am5-modal-wrapper",t.appendChild(i),this.setPrivate("wrapper",i);const s=document.createElement("div");s.className="am5-modal-content",i.appendChild(s),this.setPrivate("content",s);const a=this.get("content");a&&(s.innerHTML=a),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{this.isOpen()&&"Escape"==n.getEventKey(t)&&this.cancel()})))}_beforeChanged(){super._beforeChanged(),this.isDirty("content")&&(this.getPrivate("content").innerHTML=this.get("content",""))}isOpen(){return"none"!=this.getPrivate("container").style.display}open(){this.getPrivate("container").style.display="block",this.get("deactivateRoot")&&this.setTimeout((()=>{this._root._renderer.interactionsEnabled=!1}),10),this.events.dispatch("opened",{type:"opened",target:this})}close(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("closed",{type:"closed",target:this})}cancel(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("cancelled",{type:"cancelled",target:this})}_dispose(){super._dispose();const t=this.getPrivate("container");t.parentElement&&t.parentElement.removeChild(t)}}a.className="Modal",a.classNames=s.JH.classNames.concat([a.className])},780:function(t,e,i){"use strict";i.d(e,{e:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const t="_big_number_suffix_",e="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(t+"3")},{number:1e6,suffix:this._t(t+"6")},{number:1e9,suffix:this._t(t+"9")},{number:1e12,suffix:this._t(t+"12")},{number:1e15,suffix:this._t(t+"15")},{number:1e18,suffix:this._t(t+"18")},{number:1e21,suffix:this._t(t+"21")},{number:1e24,suffix:this._t(t+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(e+"24")},{number:1e-21,suffix:this._t(e+"21")},{number:1e-18,suffix:this._t(e+"18")},{number:1e-15,suffix:this._t(e+"15")},{number:1e-12,suffix:this._t(e+"12")},{number:1e-9,suffix:this._t(e+"9")},{number:1e-6,suffix:this._t(e+"6")},{number:.001,suffix:this._t(e+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s;(null==e||a.isString(e)&&"number"===e.toLowerCase())&&(e=this.get("numberFormat",""));let n=Number(t);if(a.isObject(e))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),e).format(n):new Intl.NumberFormat(void 0,e).format(n)}catch(t){return"Invalid"}else{e=o.cleanFormat(e);let t,h=this.parseFormat(e,this._root.language);t=n>this.get("negativeBase")?h.positive:n{if(e.parsed)return;let i=e.source;"number"===i.toLowerCase()&&(i=this.get("numberFormat","#,###.#####"));let s=n.V.chunk(i,!0);for(let t=0;t=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(i[0]),n="e"+i[1],e.modSpacing&&(n=" "+n)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){const i=o.decimalPlaces(t);if(i>0){const s=Math.pow(10,e.decimals.passive);t=Math.round(parseFloat((t*s).toFixed(i)))/s}}let h="",l=a.numberToString(t).split("."),c=l[0];if(c.length0){let t=[],i=c.split("").reverse().join("");for(let s=0,n=c.length;s<=n;s+=e.thousands.interval){let n=i.substr(s,e.thousands.interval).split("").reverse().join("");""!==n&&t.unshift(n)}c=t.join(e.thousands.separator)}h+=c,1===l.length&&l.push("");let u=l[1];return u.length{e(i,t[i])}))}function l(t,e){for(let i in t)if(u(t,i)&&!e(i,t[i]))break}function c(t,e,i){s.each(o(t,i),(i=>{e(i,t[i])}))}function u(t,e){return{}.hasOwnProperty.call(t,e)}function d(t,e){return h(t,((t,i)=>{null!=i&&null==e[t]&&(e[t]=i)})),e}},3540:function(t,e,i){"use strict";function s(t,e){return t===e?0:t{a.isObject(e)&&"function"==typeof e.dispose&&(e.enableDispose=!0,e.dispose())}))}class l{constructor(t,e,i){this._name=t,this._template=e,this._settings=i}_dispose(){h(this._settings)}get(t,e){const i=this._settings[t];return void 0!==i?i:e}set(t,e){this._settings[t]=e,this._template._stateChanged(this._name)}remove(t){delete this._settings[t],this._template._stateChanged(this._name)}setAll(t){o.keys(t).forEach((e=>{this._settings[e]=t[e]})),this._template._stateChanged(this._name)}_apply(t,e){o.each(this._settings,((i,s)=>{e[i]||t._userSettings[i]||(e[i]=!0,t.setRaw(i,s))}))}}class c{constructor(t){this._states={},this._template=t}_dispose(){o.each(this._states,((t,e)=>{e._dispose()}))}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new l(t,this._template,e);return this._states[t]=i,this._template._stateChanged(t),i}}remove(t){delete this._states[t],this._template._stateChanged(t)}_apply(t,e){o.each(this._states,((i,s)=>{let n=e.states[i];null==n&&(n=e.states[i]={});const r=t.states.create(i,{});s._apply(r,n)}))}}class u{constructor(){this._callbacks={}}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._callbacks[t]}))}remove(t){void 0!==this._callbacks[t]&&delete this._callbacks[t]}_apply(t){const e=[];return o.each(this._callbacks,((i,s)=>{r.each(s,(s=>{e.push(t.adapters.add(i,s))}))})),new n.FV(e)}}class d{constructor(t,e){if(this._disposed=!1,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._entities=[],this.states=new c(this),this.adapters=new u,this.events=new s.p,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=t}static new(t){return new d(t,!0)}_dispose(){h(this._settings),h(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(t,e){this._checkDisposed();const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._checkDisposed(),this._settings[t]=e}set(t,e){this._checkDisposed(),this._settings[t]!==e&&(this.setRaw(t,e),this._entities.forEach((i=>{i._setTemplateProperty(this,t,e)})))}remove(t){this._checkDisposed(),t in this._settings&&(delete this._settings[t],this._entities.forEach((e=>{e._removeTemplateProperty(t)})))}removeAll(){this._checkDisposed(),o.each(this._settings,((t,e)=>{this.remove(t)}))}getPrivate(t,e){this._checkDisposed();const i=this._privateSettings[t];return void 0!==i?i:e}setPrivateRaw(t,e){return this._checkDisposed(),this._privateSettings[t]=e,e}setPrivate(t,e){return this._checkDisposed(),this._privateSettings[t]!==e&&(this.setPrivateRaw(t,e),this._entities.forEach((i=>{i._setTemplatePrivateProperty(this,t,e)}))),e}removePrivate(t){this._checkDisposed(),t in this._privateSettings&&(delete this._privateSettings[t],this._entities.forEach((e=>{e._removeTemplatePrivateProperty(t)})))}setAll(t){this._checkDisposed(),o.each(t,((t,e)=>{this.set(t,e)}))}on(t,e){this._checkDisposed();let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}onPrivate(t,e){this._checkDisposed();let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}_apply(t,e){this._checkDisposed();const i=[];return o.each(this._settingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.on(e,s))}))})),o.each(this._privateSettingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.onPrivate(e,s))}))})),this.states._apply(t,e),i.push(this.adapters._apply(t)),i.push(t.events.copyFrom(this.events)),new n.FV(i)}_setObjectTemplate(t){this._checkDisposed(),this._entities.push(t)}_removeObjectTemplate(t){r.remove(this._entities,t)}_stateChanged(t){this._checkDisposed(),this._entities.forEach((e=>{e._applyStateByKey(t)}))}}},7255:function(t,e,i){"use strict";i.d(e,{V:function(){return r}});var s=i(1112),n=i(5040);class r{static escape(t){return t.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(t){return t.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(t,e=!1,i=!1){let s=[];t=this.escape(t);let r=e?t.split("'"):[t];for(let t=0;t{setTimeout(e,t)}))}let o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629742400,year:31536e6};function a(t){switch(t){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function h(t,e){return null==e&&(e=1),o[t]*e}function l(t){return t?o[t.timeUnit]*t.count:0}function c(t,e,i,s,n){const r=t.timeUnit,a=t.count;if("hour"==r||"minute"==r||"second"==r||"millisecond"==r)return o[t.timeUnit]*t.count;{const t=m(new Date(e.getTime()),r,a,i,s,void 0,n).getTime();let o=t+a*h(r)*1.05;return o=m(new Date(o),r,1,i,s,void 0,n).getTime(),o-t}}function u(){return new Date}function d(){return u().getTime()}function p(t){return new Date(t.getTime())}function g(t,e,i,s,n){if(e-t>h(i,1.2))return!0;let r=new Date(t),o=new Date(e);n&&(r=n.convertLocal(r),o=n.convertLocal(o));let l=0,c=0;s||"millisecond"==i||(l=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-l),c=o.getTimezoneOffset(),o.setUTCMinutes(o.getUTCMinutes()-c));let u=!1;switch(i){case"year":r.getUTCFullYear()!=o.getUTCFullYear()&&(u=!0);break;case"month":(r.getUTCFullYear()!=o.getUTCFullYear()||r.getUTCMonth()!=o.getUTCMonth())&&(u=!0);break;case"day":(r.getUTCMonth()!=o.getUTCMonth()||r.getUTCDate()!=o.getUTCDate())&&(u=!0);break;case"hour":r.getUTCHours()!=o.getUTCHours()&&(u=!0);break;case"minute":r.getUTCMinutes()!=o.getUTCMinutes()&&(u=!0);break;case"second":r.getUTCSeconds()!=o.getUTCSeconds()&&(u=!0);break;case"millisecond":r.getTime()!=o.getTime()&&(u=!0)}if(u)return u;let d=a(i);return!!d&&g(t,e,d,s,n)}function f(t,e,i,s,n){let r=0;switch(s||"millisecond"==e||(r=t.getTimezoneOffset(),n&&(r-=n.offsetUTC(t)),t.setUTCMinutes(t.getUTCMinutes()-r)),e){case"day":let e=t.getUTCDate();t.setUTCDate(e+i);break;case"second":let s=t.getUTCSeconds();t.setUTCSeconds(s+i);break;case"millisecond":let n=t.getUTCMilliseconds();t.setUTCMilliseconds(n+i);break;case"hour":let r=t.getUTCHours();t.setUTCHours(r+i);break;case"minute":let o=t.getUTCMinutes();t.setUTCMinutes(o+i);break;case"year":let a=t.getUTCFullYear();t.setUTCFullYear(a+i);break;case"month":const h=t.getUTCDate(),l=new Date(t.getUTCFullYear(),t.getUTCMonth(),0).getUTCDate();let c=t.getUTCMonth();h>l?t.setUTCMonth(c+i,l):t.setUTCMonth(c+i);break;case"week":let u=t.getUTCDate();t.setUTCDate(u+7*i)}if(!s&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+r),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(n&&(e+=n.offsetUTC(t)),e!=r){let i=e-r;t.setUTCMinutes(t.getUTCMinutes()+i),t.getTimezoneOffset()!=e&&t.setUTCMinutes(t.getUTCMinutes()-i)}}return t}function _(t,e,i,s,n){let r;return null!=n&&(r=new Date(n)),m(new Date(t),e,i,s.locale.firstDayOfWeek,s.utc,r,s.timezone).getTime()}function m(t,e,i,n,r,o,a){if(!a||r){let a=0;switch(r||"millisecond"==e||(a=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-a)),e){case"day":let e=t.getUTCDate();if(i>1){if(o){o=m(o,"day",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),n=h("day",s*i);t.setTime(o.getTime()+n-a*h("minute"))}}else t.setUTCDate(e);t.setUTCHours(0,0,0,0);break;case"second":let r=t.getUTCSeconds();i>1&&(r=Math.floor(r/i)*i),t.setUTCSeconds(r,0);break;case"millisecond":if(1==i)return t;let l=t.getUTCMilliseconds();l=Math.floor(l/i)*i,t.setUTCMilliseconds(l);break;case"hour":let c=t.getUTCHours();i>1&&(c=Math.floor(c/i)*i),t.setUTCHours(c,0,0,0);break;case"minute":let u=t.getUTCMinutes();i>1&&(u=Math.floor(u/i)*i),t.setUTCMinutes(u,0,0);break;case"month":let d=t.getUTCMonth();i>1&&(2!=i&&3!=i&&4!=i&&6!=i||(d=Math.floor(d/i)*i)),t.setUTCMonth(d,1),t.setUTCHours(0,0,0,0);break;case"year":let p=t.getUTCFullYear();i>1&&(p=Math.floor(p/i)*i),t.setUTCFullYear(p,0,1),t.setUTCHours(0,0,0,0);break;case"week":if(i>1&&o){o=m(o,"week",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("week")/i),n=h("week",s*i);t.setTime(o.getTime()+n-a*h("minute"))}let g=t.getUTCDate(),f=t.getUTCDay();s.isNumber(n)||(n=1),g=f>=n?g-f+n:g-(7+f)+n,t.setUTCDate(g),t.setUTCHours(0,0,0,0)}if(!r&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+a),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(e!=a){let i=e-a;t.setUTCMinutes(t.getUTCMinutes()+i)}}return t}{if(isNaN(t.getTime()))return t;let l=t.getTime(),c=a.offsetUTC(t),u=t.getTimezoneOffset(),d=a.parseDate(t),p=d.year,g=d.month,f=d.day,_=d.hour,y=d.minute,v=d.second,w=d.millisecond,b=d.weekday,x=c-u;switch(e){case"day":if(i>1&&o){o=m(o,"day",1,n,r,void 0,a);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),l=h("day",s*i);t.setTime(o.getTime()+l),d=a.parseDate(t),p=d.year,g=d.month,f=d.day}_=0,y=x,v=0,w=0;break;case"second":y+=x,i>1&&(v=Math.floor(v/i)*i),w=0;break;case"millisecond":y+=x,i>1&&(w=Math.floor(w/i)*i);break;case"hour":i>1&&(_=Math.floor(_/i)*i),y=x,v=0,w=0;break;case"minute":i>1&&(y=Math.floor(y/i)*i),y+=x,v=0,w=0;break;case"month":i>1&&(g=Math.floor(g/i)*i),f=1,_=0,y=x,v=0,w=0;break;case"year":i>1&&(p=Math.floor(p/i)*i),g=0,f=1,_=0,y=x,v=0,w=0;break;case"week":s.isNumber(n)||(n=1),f=b>=n?f-b+n:f-(7+b)+n,_=0,y=x,v=0,w=0}const D=(t=new Date(p,g,f,_,y,v,w)).getTime();let k=36e5;"hour"==e&&(k=36e5*i),D+k<=l&&("hour"!=e&&"minute"!=e&&"second"!=e&&"millisecond"!=e||(t=new Date(D+k)));let T=t.getTimezoneOffset(),M=a.offsetUTC(t)-T;return M!=x&&t.setTime(t.getTime()+6e4*(M-x)),t}}function y(t,e,i,s){let n=l(s[t]),r=s.length-1;if(t>=r)return Object.assign({},s[r]);let o=Math.ceil(e/n);return e0?Object.assign({},s[t-1]):o<=i?Object.assign({},s[t]):t+1{switch(t.type){case"year":i=+t.value;break;case"month":s=+t.value-1;break;case"day":n=+t.value;break;case"hour":r=+t.value;break;case"minute":o=+t.value;break;case"second":a=+t.value;break;case"fractionalSecond":h=+t.value;break;case"weekday":switch(t.value){case"Sun":l=0;break;case"Mon":l=1;break;case"Tue":l=2;break;case"Wed":l=3;break;case"Thu":l=4;break;case"Fri":l=5;break;case"Sat":l=6}}})),24===r&&(r=0),{year:i,month:s,day:n,hour:r,minute:o,second:a,millisecond:h,weekday:l}}function n(t,e){const{year:i,month:n,day:r,hour:o,minute:a,second:h,millisecond:l}=s(t,e);return Date.UTC(i,n,r,o,a,h,l)}i.d(e,{r:function(){return r}});class r{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=t,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(t){return new this(t,!0)}convertLocal(t){const e=this.offsetUTC(t),i=t.getTimezoneOffset(),s=new Date(t);s.setUTCMinutes(s.getUTCMinutes()-(e-i));const n=s.getTimezoneOffset();return i!=n&&s.setUTCMinutes(s.getUTCMinutes()+n-i),s}offsetUTC(t){return(n(this._utc,t)-n(this._dtf,t))/6e4}parseDate(t){return s(this._dtf,t)}}},5040:function(t,e,i){"use strict";function s(t){return Number(t)!==t}function n(t){return{}.toString.call(t)}function r(t,e="Assertion failed"){if(!t)throw new Error(e)}function o(t){if(null!=t&&!d(t)){let e=Number(t);if(s(e)&&u(t)&&""!=t&&t.match(/[0-9]+/)){const i=t.replace(/[^0-9.\-]+/g,"");return t===i?e:o(i)}return e}return t}function a(t){if(c(t))return new Date(t);if(d(t))return new Date(t);{let e=Number(t);return d(e)?new Date(e):new Date(t)}}function h(t){if(s(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t==-1/0)return"-0";let e=t<0;t=Math.abs(t);let i,n=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t),r=n[1],o=n[2]||"";if(void 0===n[3])i=""===o?r:r+"."+o;else{let e=+n[3];if(t<1)i="0."+l("0",e-1)+r+o;else{let t=e-o.length;i=0===t?r+o:t<0?r+o.slice(0,t)+"."+o.slice(t):r+o+l("0",t)}}return e?"-"+i:i}function l(t,e){return new Array(e+1).join(t)}function c(t){return"[object Date]"===n(t)}function u(t){return"string"==typeof t}function d(t){return"number"==typeof t&&Number(t)==t}function p(t){return"object"==typeof t&&null!==t}function g(t){return Array.isArray(t)}i.r(e),i.d(e,{PLACEHOLDER:function(){return f},PLACEHOLDER2:function(){return _},assert:function(){return r},getType:function(){return n},isArray:function(){return g},isDate:function(){return c},isNaN:function(){return s},isNumber:function(){return d},isObject:function(){return p},isString:function(){return u},numberToString:function(){return h},repeat:function(){return l},toDate:function(){return a},toNumber:function(){return o}});const f="__§§§__",_="__§§§§__"},7652:function(t,e,i){"use strict";i.r(e),i.d(e,{StyleRule:function(){return E},StyleSheet:function(){return O},addClass:function(){return P},addEventListener:function(){return l},addSpacing:function(){return Y},alternativeColor:function(){return dt},blur:function(){return p},brighten:function(){return ht},capitalizeFirst:function(){return et},cleanFormat:function(){return z},contains:function(){return w},decimalPlaces:function(){return A},escapeForRgex:function(){return W},focus:function(){return g},get12Hours:function(){return Q},getBrightnessStep:function(){return lt},getDayFromWeek:function(){return q},getEventKey:function(){return D},getEventTarget:function(){return v},getFormat:function(){return H},getLightnessStep:function(){return at},getMonthWeek:function(){return K},getPointerId:function(){return d},getRendererEvent:function(){return f},getSafeResolution:function(){return C},getShadowRoot:function(){return k},getStyle:function(){return y},getTimeZone:function(){return J},getTimezoneOffset:function(){return tt},getWeek:function(){return $},getWeekYear:function(){return Z},getYearDay:function(){return X},hslToHsv:function(){return rt},hslToRgb:function(){return it},hsvToHsl:function(){return nt},iOS:function(){return N},isLight:function(){return ct},isLocalEvent:function(){return b},isTouchEvent:function(){return _},lighten:function(){return ot},mergeTags:function(){return pt},onZoom:function(){return c},padString:function(){return R},plainText:function(){return V},ready:function(){return a},relativeToValue:function(){return L},removeClass:function(){return S},removeElement:function(){return h},rgbToHsl:function(){return st},sameBounds:function(){return gt},saturate:function(){return ut},setInteractive:function(){return x},setStyle:function(){return m},splitString:function(){return j},stripTags:function(){return G},supports:function(){return u},trim:function(){return F},trimLeft:function(){return U},trimRight:function(){return B},truncateTextWithEllipsis:function(){return I}});var s=i(5040),n=i(5071),r=i(256),o=i(7449);function a(t){if("loading"!==document.readyState)t();else{const e=()=>{"loading"!==document.readyState&&(document.removeEventListener("readystatechange",e),t())};document.addEventListener("readystatechange",e)}}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function l(t,e,i,s){return t.addEventListener(e,i,s||!1),new o.ku((()=>{t.removeEventListener(e,i,s||!1)}))}function c(t){return l(window,"resize",(e=>{t()}))}function u(t){switch(t){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function d(t){return t.pointerId||0}function p(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let t=document.createElement("button");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}}function g(t){t&&t.focus()}function f(t){if(u("pointerevents"))return t;if(u("touchevents"))switch(t){case"pointerover":case"pointerdown":return"touchstart";case"pointerout":case"pointerleave":case"pointerup":return"touchend";case"pointermove":return"touchmove";case"click":return"click";case"dblclick":return"dblclick"}else if(u("mouseevents"))switch(t){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return t}function _(t){if("undefined"!=typeof Touch&&t instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&t instanceof PointerEvent&&null!=t.pointerType)switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(null!=t.type&&t.type.match(/^mouse/))return!1;return!0}function m(t,e,i){t.style[e]=i}function y(t,e){return t.style[e]}function v(t){if(t.composedPath){const e=t.composedPath();return 0===e.length?null:e[0]}return t.target}function w(t,e){let i=e;for(;;){if(t===i)return!0;if(null===i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function b(t,e){return t.target&&w(e.root.dom,t.target)}function x(t,e){t.style.pointerEvents=e?"auto":"none"}function D(t){if(void 0!==t.key)return t.key;switch(t.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+t.keyCode}function k(t){let e=t;for(;;){if(null===e.parentNode)return null!=e.host?e:null;e=e.parentNode}}let T;function M(t,e){const i=t.cssRules.length;return t.insertRule(e+"{}",i),t.cssRules[i]}class E extends o.KK{constructor(t,e,i,s=""){super(),this._root=function(t,e=""){if(null===t){if(null==T){const t=document.createElement("style");t.type="text/css",""!=e&&t.setAttribute("nonce",e),document.head.appendChild(t),T=t.sheet}return T}{const i=document.createElement("style");return i.type="text/css",""!=e&&i.setAttribute("nonce",e),t.appendChild(i),i.sheet}}(t,s);try{this._rule=M(this._root,e)}catch(t){this._rule=M(this._root,":not(*)")}r.each(i,((t,e)=>{this.setStyle(t,e)}))}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){const t=n.indexOf(this._root.cssRules,this._rule);if(-1===t)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,e){const i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")}setStyle(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")}}class O extends o.KK{constructor(t,e,i=""){super(),this._element=function(t,e,i=""){const s=document.createElement("style");return s.type="text/css",""!=i&&s.setAttribute("nonce",i),s.textContent=e,null===t?document.head.appendChild(s):t.appendChild(s),s}(t,e,i)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}}function P(t,e){if(t)if(t.classList){const i=e.split(" ");n.each(i,(e=>{t.classList.add(e)}))}else{let i=t.getAttribute("class");i?t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" ")+" "+e):t.setAttribute("class",e)}}function S(t,e){if(t)if(t.classList)t.classList.remove(e);else{let i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" "))}}function N(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function C(){return N()?1:void 0}function L(t,e){return s.isNumber(t)?t:null!=t&&s.isNumber(t.value)&&s.isNumber(e)?e*t.value:0}function A(t){let e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function R(t,e=0,i="0"){return"string"!=typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t}function U(t){return t.replace(/^[\s]*/,"")}function B(t){return t.replace(/[\s]*$/,"")}function F(t){return U(B(t))}function I(t,e,i=!1,s="..."){if(t.length>e){let n=e-1;for(;n>=0&&t.charAt(n).match(/\w/);)n--;return n>=0&&0==i?t.substring(0,n+1)+"...":t.substring(0,e)+s}return t}function H(t){if(void 0===t)return"string";let e=(t=(t=(t=t.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return e?e[1]:"number"===t?"number":"date"===t?"date":"duration"===t?"duration":t.match(/[#0]/)?"number":t.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function z(t){return t.replace(/\/(date|number|duration)$/i,"")}function G(t){return t?t.replace(/<[^>]*>/g,""):t}function V(t){return t?G((""+t).replace(/[\n\r]+/g,". ")):t}function W(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Y(t){let e="";for(let i=0;i{if(t.match(/^\s+$/))(t=" ")&&(t=" "),n.push(t);else if(e.test(t)){let e=t.split(i).filter((t=>""!==t));n=n.concat(e)}else n=n.concat([...t])})),n}function X(t,e=!1){const i=new Date(t.getFullYear(),0,0),s=t.getTime()-i.getTime()+60*(i.getTimezoneOffset()-t.getTimezoneOffset())*1e3;return Math.floor(s/864e5)}function $(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-s);const n=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-n.getTime())/864e5+1)/7)}function Z(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;return i.setUTCDate(i.getUTCDate()+4-s),new Date(Date.UTC(i.getUTCFullYear(),0,1)).getFullYear()}function K(t,e=!1){const i=$(new Date(t.getFullYear(),t.getMonth(),1),e);let s=$(t,e);return 1==s&&(s=53),s-i+1}function q(t,e,i=1,s=!1){let n=new Date(e,0,4,0,0,0,0);return s&&n.setUTCFullYear(e),7*t+i-((n.getDay()||7)+3)}function Q(t,e){return t>12?t-=12:0===t&&(t=12),null!=e?t+(e-1):t}function J(t,e=!1,i=!1,s=!1,n){if(s)return e?"Coordinated Universal Time":"UTC";if(n){const i=t.toLocaleString("en-US",{timeZone:n});return F(t.toLocaleString("en-US",{timeZone:n,timeZoneName:e?"long":"short"}).substr(i.length))}let r=t.toLocaleString("UTC"),o=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(o=o.replace(/ (standard|daylight|summer|winter) /i," ")),F(o)}function tt(t,e){const i=e||new Date(Date.UTC(2012,0,1,0,0,0,0)),s=new Date(i.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(i.toLocaleString("en-US",{timeZone:t})).getTime()-s.getTime())/6e4*-1}function et(t){return t.charAt(0).toUpperCase()+t.slice(1)}function it(t){let e,i,s,n=t.h,r=t.s,o=t.l;if(0==r)e=i=s=o;else{let t=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},a=o<.5?o*(1+r):o+r-o*r,h=2*o-a;e=t(h,a,n+1/3),i=t(h,a,n),s=t(h,a,n-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*s)}}function st(t){let e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),r=Math.min(e,i,s),o=0,a=0,h=(n+r)/2;if(n===r)o=a=0;else{let t=n-r;switch(a=h>.5?t/(2-n-r):t/(n+r),n){case e:o=(i-s)/t+(i0?255-t:t;return Math.round(i*e)}function ht(t,e){if(t){let i=at(Math.min(Math.max(t.r,t.g,t.b),230),e);return{r:Math.max(0,Math.min(255,Math.round(t.r+i))),g:Math.max(0,Math.min(255,Math.round(t.g+i))),b:Math.max(0,Math.min(255,Math.round(t.b+i))),a:t.a}}return t}function lt(t,e){return Math.round(255*e)}function ct(t){return(299*t.r+587*t.g+114*t.b)/1e3>=128}function ut(t,e){if(void 0===t||1==e)return t;let i=st(t);return i.s=e,it(i)}function dt(t,e={r:255,g:255,b:255},i={r:255,g:255,b:255}){let s=e,n=i;return ct(i)&&(s=i,n=e),ct(t)?n:s}function pt(t,e){return t||(t=[]),[...t,...e].filter(((t,e,i)=>i.indexOf(t)===e))}function gt(t,e){return!!e&&t.left==e.left&&t.right==e.right&&t.top==e.top&&t.bottom==e.bottom}},3360:function(t,e,i){"use strict";i.d(e,{z:function(){return D},m:function(){return k}});var s=i(7582),n=i(6331),r=i(4596),o=i(8777),a=i(1112),h=i(6245),l=i(5769),c=i(9582),u=i(5040),d=i(5071),p=i(256),g={AccelerationBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccelerationBands)),AccumulationDistribution:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulationDistribution)),AccumulativeSwingIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulativeSwingIndex)),Annotator:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Annotator)),ArcDiagram:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagram)),ArcDiagramLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramLink)),ArcDiagramNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramNodes)),Aroon:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Aroon)),AverageSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageSeries)),AverageTrueRange:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageTrueRange)),AwesomeOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AwesomeOscillator)),Axis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Axis)),AxisBullet:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisBullet)),AxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabel)),AxisLabelRadial:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabelRadial)),AxisRenderer:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRenderer)),AxisRendererCircular:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererCircular)),AxisRendererCurveX:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveX)),AxisRendererCurveY:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveY)),AxisRendererRadial:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererRadial)),AxisRendererX:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererX)),AxisRendererY:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererY)),AxisTick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisTick)),BaseColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.BaseColumnSeries)),BollingerBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BollingerBands)),BreadcrumbBar:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.BreadcrumbBar)),BullBearPower:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BullBearPower)),Bullet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Bullet)),Button:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Button)),CalloutSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CalloutSeries)),Candlestick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Candlestick)),CandlestickSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CandlestickSeries)),CategoryAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryAxis)),CategoryDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryDateAxis)),ChaikinMoneyFlow:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinMoneyFlow)),ChaikinOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinOscillator)),Chart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Chart)),ChartIndicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChartIndicator)),Chord:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Chord)),ChordDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordDirected)),ChordLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLink)),ChordLinkDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLinkDirected)),ChordNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNodes)),ChordNonRibbon:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNonRibbon)),Circle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Circle)),CirclePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.CirclePattern)),ClockHand:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.ClockHand)),ClusteredPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ClusteredPointSeries)),ColorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ColorControl)),ColorPicker:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPicker)),ColorPickerButton:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPickerButton)),ColorSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ColorSet)),ColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ColumnSeries)),CommodityChannelIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CommodityChannelIndex)),ComparisonControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ComparisonControl)),Component:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Component)),ConfirmButton:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ConfirmButton)),Container:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Container)),CurveChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveChart)),CurveColumnSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveColumnSeries)),CurveCursor:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveCursor)),CurveLineSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveLineSeries)),DataSaveControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DataSaveControl)),DateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DateAxis)),DateRangeSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DateRangeSelector)),DisparityIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DisparityIndex)),DoodleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DoodleSeries)),DrawingControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingControl)),DrawingSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingSeries)),DrawingToolControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingToolControl)),Dropdown:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Dropdown)),DropdownColors:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownColors)),DropdownControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownControl)),DropdownList:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownList)),DropdownListControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownListControl)),DurationAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DurationAxis)),EditableAxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.EditableAxisLabel)),EditableLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.EditableLabel)),Ellipse:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Ellipse)),EllipseSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.EllipseSeries)),Entity:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Entity)),Exporting:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Exporting)),ExportingMenu:()=>Promise.resolve().then((()=>i(396))).then((t=>t.ExportingMenu)),FibonacciSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciSeries)),FibonacciTimezoneSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciTimezoneSeries)),Flow:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Flow)),FlowLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowLink)),FlowNode:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNode)),FlowNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNodes)),ForceDirected:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.ForceDirected)),FunnelSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSeries)),FunnelSlice:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSlice)),Gantt:()=>Promise.resolve().then((()=>i(133))).then((t=>t.Gantt)),GanttCategoryAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxis)),GanttCategoryAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxisRenderer)),GanttDateAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxis)),GanttDateAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxisRenderer)),GanttSeries:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttSeries)),GaplessDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.GaplessDateAxis)),Gradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Gradient)),GrainPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GrainPattern)),Graphics:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Graphics)),GraticuleSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.GraticuleSeries)),Grid:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Grid)),GridLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GridLayout)),HeatLegend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HeatLegend)),HeikinAshi:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HeikinAshi)),Hierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Hierarchy)),HierarchyLink:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyLink)),HierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyNode)),HorizontalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HorizontalLayout)),HorizontalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalLineSeries)),HorizontalRaySeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalRaySeries)),IconControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconControl)),IconSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconSeries)),Indicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Indicator)),IndicatorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IndicatorControl)),InterfaceColors:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.InterfaceColors)),IntervalControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IntervalControl)),Label:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Label)),LabelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LabelSeries)),Layout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Layout)),Legend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Legend)),Line:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Line)),LineArrowSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LineArrowSeries)),LinePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinePattern)),LineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.LineSeries)),LinearGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinearGradient)),Link:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Link)),LinkedHierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchy)),LinkedHierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchyNode)),MACD:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACD)),MACross:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACross)),MapChart:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapChart)),MapLine:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLine)),MapLineSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLineSeries)),MapPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPointSeries)),MapPolygon:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygon)),MapPolygonSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygonSeries)),MapSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapSeries)),Measure:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Measure)),MedianPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MedianPrice)),Modal:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Modal)),Momentum:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Momentum)),MovingAverage:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverage)),MovingAverageDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageDeviation)),MovingAverageEnvelope:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageEnvelope)),NumericStepper:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.NumericStepper)),OHLC:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLC)),OHLCSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLCSeries)),OnBalanceVolume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OnBalanceVolume)),OrthogonalLine:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.OrthogonalLine)),OverboughtOversold:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OverboughtOversold)),PVT:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PVT)),Pack:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Pack)),PanelControls:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PanelControls)),ParallelChannelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ParallelChannelSeries)),Partition:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Partition)),PathPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PathPattern)),Pattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Pattern)),PatternSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PatternSet)),PercentChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentChart)),PercentSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentSeries)),PeriodSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PeriodSelector)),PictorialStackedSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PictorialStackedSeries)),Picture:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Picture)),PicturePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PicturePattern)),PieChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieChart)),PieSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieSeries)),PointedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PointedRectangle)),Polygon:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Polygon)),PolylineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PolylineSeries)),ProgressPie:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ProgressPie)),PyramidSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PyramidSeries)),QuadrantLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.QuadrantLineSeries)),RadarChart:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarChart)),RadarColumnSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarColumnSeries)),RadarCursor:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarCursor)),RadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarLineSeries)),RadialGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialGradient)),RadialLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialLabel)),RadialText:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialText)),Rectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Rectangle)),RectanglePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RectanglePattern)),RectangleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RectangleSeries)),RegressionSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RegressionSeries)),RelativeStrengthIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RelativeStrengthIndex)),ResetControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ResetControl)),RoundedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RoundedRectangle)),Sankey:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Sankey)),SankeyLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyLink)),SankeyNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyNodes)),Scrollbar:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Scrollbar)),SerialChart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SerialChart)),Serializer:()=>Promise.resolve().then((()=>i(5362))).then((t=>t.Serializer)),Series:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Series)),SeriesTypeControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SeriesTypeControl)),SerpentineChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SerpentineChart)),SettingsControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsControl)),SettingsModal:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsModal)),SimpleLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SimpleLineSeries)),Slice:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slice)),SliceGrouper:()=>Promise.resolve().then((()=>i(1790))).then((t=>t.SliceGrouper)),SlicedChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.SlicedChart)),Slider:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slider)),SmoothedRadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.SmoothedRadarLineSeries)),SmoothedXLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXLineSeries)),SmoothedXYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXYLineSeries)),SmoothedYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedYLineSeries)),SpiralChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SpiralChart)),Sprite:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Sprite)),SpriteResizer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SpriteResizer)),StandardDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StandardDeviation)),Star:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Star)),StepLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.StepLineSeries)),StochasticMomentumIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticMomentumIndex)),StochasticOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticOscillator)),StockChart:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockChart)),StockControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockControl)),StockLegend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockLegend)),StockPanel:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockPanel)),StockToolbar:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockToolbar)),Sunburst:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Sunburst)),SuperTrend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SuperTrend)),Text:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Text)),Tick:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tick)),Tooltip:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tooltip)),Tree:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Tree)),Treemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Treemap)),TrendLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TrendLineSeries)),Triangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Triangle)),Trix:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Trix)),TypicalPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TypicalPrice)),VWAP:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VWAP)),ValueAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ValueAxis)),Venn:()=>Promise.resolve().then((()=>i(8034))).then((t=>t.Venn)),VerticalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.VerticalLayout)),VerticalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VerticalLineSeries)),Volume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Volume)),VolumeProfile:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VolumeProfile)),VoronoiTreemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.VoronoiTreemap)),WilliamsR:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.WilliamsR)),WordCloud:()=>Promise.resolve().then((()=>i(6769))).then((t=>t.WordCloud)),XYChart:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChart)),XYChartScrollbar:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChartScrollbar)),XYCursor:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYCursor)),XYSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYSeries)),ZigZag:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ZigZag)),ZoomControl:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ZoomControl)),ZoomTools:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomTools)),ZoomableContainer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomableContainer))};function f(t){return u.isObject(t)}function _(t){return t instanceof n.JH||t instanceof a.Il||t instanceof h.gG||t instanceof l.YS}function m(t,e){let i=t.length;for(;i--;){const s=t[i];if(e in s)return s[e]}throw new Error("Could not find ref "+e)}function y(t,e){if("#"===t[0]||"@"===t[0]){if(t[1]===t[0])return{isValue:!0,value:t.slice(1)};{const i=t.split(/\./g);let s=m(e,i[0]);for(let t=1;t{e(t)}))}function w(t,e){v(t,e),e.adapters&&d.each(e.adapters,(e=>{t.adapters.add(e.key,e.callback)})),e.states&&d.each(e.states,(e=>{t.states.create(e.key,e.settings)})),t instanceof o.W&&e.children&&e.children.forEach((e=>{null==e.index||e.index>=t.children.length?t.children.push(e.value):t.children.insertIndex(e.index,e.value)}))}function b(t,e){if(!e.construct)return e.value;const i=e.construct.new(t,e.settings||{});return w(i,e),i}class x{constructor(){this._caching={},this._cache={},this._delayed=[]}afterParse(){this._delayed.forEach((t=>{t()}))}getClass(t){return this._cache[t]}storeClass(t){return(0,s.mG)(this,void 0,void 0,(function*(){if("Template"===t)return;const e=g[t];if(null==e)throw new Error("Unknown object type `"+t+"`");this._cache[t]=yield e()}))}cacheClass(t){let e=this._caching[t];return null==e&&(e=this._caching[t]=this.storeClass(t)),e}parseAsyncArray(t){return(0,s.mG)(this,void 0,void 0,(function*(){yield Promise.all(d.map(t,(t=>this.parseAsync(t))))}))}parseAsyncObjectKey(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){"type"===t?u.isString(e)?yield this.cacheClass(e):yield this.parseAsync(e):"geoJSON"===t||"geometry"===t||(yield this.parseAsync(e))}))}parseAsyncObject(t){return(0,s.mG)(this,void 0,void 0,(function*(){switch(t.type){case"Color":case"Percent":break;default:yield Promise.all(d.map(p.keys(t),(e=>this.parseAsyncObjectKey(e,t[e]))))}}))}parseAsync(t){return(0,s.mG)(this,void 0,void 0,(function*(){u.isArray(t)?yield this.parseAsyncArray(t):f(t)&&(_(t)||!0!==t.__parse&&!1===t.__parse||(yield this.parseAsyncObject(t)))}))}parseObject(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parse(t,e[n],i)})),s}parseArray(t,e,i){return d.map(e,(e=>this.parse(t,e,i)))}parseChildren(t,e,i){return d.map(e,(e=>this.parseChild(t,e,i)))}parseStops(t,e,i){return d.map(e,(e=>this.parseObject(t,e,i)))}parseSetting(t,e,i,s){if("layout"===e)switch(i){case"horizontal":return t.horizontalLayout;case"vertical":return t.verticalLayout;case"grid":return t.gridLayout}return"clusteredBullet"===e?(e,n)=>{const r=s.concat([{"@series":n}]);return this.parse(t,i,r)}:"projection"===e||"geoJSON"===e?i:"stops"===e?this.parseStops(t,i,s):this.parse(t,i,s)}parseSettings(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parseSetting(t,n,e[n],i)})),s}parseState(t,e,i){return{key:e.key,settings:this.parseSettings(t,e.settings,i)}}parseAdapter(t,e,i){return{key:e.key,callback:this.parse(t,e.callback,i)}}parseProperties(t,e,i){return d.map(p.keys(e),(s=>{const r=e[s];return e=>{const o=()=>{const o=this.parseValue(t,r,i),a=e[s];a?o.isValue?u.isArray(o.value)?a instanceof c.k?a.setAll(o.value):d.each(o.value,(t=>{a.push(t)})):e[s]=o.value:o.construct?e[s]=b(t,o):a instanceof n.JH||a instanceof l.YS?function(t,e){e.settings&&t.setAll(e.settings),w(t,e)}(a,o):v(a,o):o.isValue?e[s]=o.value:e[s]=b(t,o)};if("data"===s)this._delayed.push(o);else if("bullets"===s){const n=e[s];u.assert(null!=n),u.assert(u.isArray(r)),d.each(r,(e=>{n.push(((s,n)=>{const r=i.concat([{"@series":n}]);return this.parse(t,e,r)}))}))}else"bullet"===s?e.set("bullet",((e,s)=>{const n=i.concat([{"@axis":s}]);return this.parse(t,r,n)})):o()}}))}parseAxisRange(t,e,i){return{isValue:!1,type:void 0,construct:void 0,settings:this.parseSettings(t,e.settings,i),adapters:void 0,states:void 0,children:void 0,properties:void 0,index:void 0,value:e}}parseRefsObject(t,e,i){const s={};return p.each(e,((e,r)=>{if("axisRange"==r.__parseLogic||"seriesAxisRange"==r.__parseLogic){const e=this.parseAxisRange(t,r,i),s=m(i,r.axis),o=s.makeDataItem({});let a;const h=r.series?m(i,r.series):void 0;h?a=h.createAxisRange(o):s.createAxisRange(o),function(t,e){e.settings&&p.each(e.settings,((e,i)=>{if(i instanceof n.JH){const s=t.get(e);s instanceof n.JH?s.setAll(i._settings):t.set(e,i)}else t.set(e,i)})),w(t,e)}(o,e),a&&["fills","strokes","graphics"].forEach((e=>{if(void 0!==a[e]&&void 0!==r[e]){r[e].__parse=!0;const s=this.parse(t,r[e],i);a[e].template.setAll(s)}}))}else s["#"+e]=this.parse(t,r,i)})),s}parseRefs(t,e,i){if(u.isArray(e)){const s=e.length;for(let n=0;nthis.parseState(t,e,i))):void 0,h=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0,l=null==e.index?void 0:e.index;return{isValue:!1,type:e.type,construct:s,settings:n,adapters:h,states:a,children:o,properties:r,index:l,value:e}}parseTemplate(t,e,i){e.refs&&(i=this.parseRefs(t,e.refs,i));const s=e.settings?this.parseSettings(t,e.settings,i):{},n=l.YS.new(s),r=e.states?d.map(e.states,(e=>this.parseState(t,e,i))):void 0,o=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0;return o&&d.each(o,(t=>{n.adapters.add(t.key,t.callback)})),r&&d.each(r,(t=>{n.states.create(t.key,t.settings)})),{isValue:!0,value:n}}parseValue(t,e,i){return e instanceof n.JH?{isValue:!0,value:e}:u.isArray(e)?{isValue:!0,value:this.parseArray(t,e,i)}:f(e)?_(e)?{isValue:!0,value:e}:"Color"===e.type?{isValue:!0,value:a.Il.fromAny(e.value)}:"Percent"===e.type?{isValue:!0,value:new h.gG(e.value)}:"Template"===e.type?this.parseTemplate(t,e,i):!0===e.__parse?{isValue:!0,value:this.parseObject(t,e,i)}:!1===e.__parse?{isValue:!0,value:e}:this.parseEntity(t,e,i):u.isString(e)?y(e,i):{isValue:!0,value:e}}parse(t,e,i){const s=this.parseValue(t,e,i);return s.isValue?s.value:b(t,s)}}class D{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t}static new(t){return new this(t,!0)}parse(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){const i=new x;yield i.parseAsync(t);const s=i.parse(this._root,t,[]);if(e.parent){if(!(s instanceof r.j))throw new Error("When using the parent setting, the entity must be a Sprite");e.parent.children.push(s)}else s instanceof n.JH&&s._applyThemes(!0);return i.afterParse(),s}))}parseString(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.parse(JSON.parse(t),e)}))}}function k(t,e){g[t]||(g[t]=()=>new Promise((t=>{t(e)})))}},6890:function(t,e,i){"use strict";i.d(e,{e:function(){return p}});var s=i(6331),n=i(9361),r=i(1112),o=i(1437),a=i(6245),h=i(5769),l=i(9582),c=i(5040),u=i(5071),d=i(256);class p extends s.JH{constructor(){super(...arguments),this._refs={}}serialize(t,e=0,i=!1,p=!1){if(e>this.get("maxDepth",2))return;if(!1===t||!0===t)return t;if(c.isArray(t)){const s=[];return u.each(t,(t=>{s.push(this.serialize(t,e,i,p))})),s}if(t instanceof l.k){const s=[];return u.each(t.values,(t=>{s.push(this.serialize(t,e,i,p))})),s}const g={},f=t instanceof s.JH||t instanceof h.YS||t instanceof r.Il||t instanceof a.gG,_=this.get("fullSettings",[]);if(t instanceof s.JH){g.type=t.className;let s=this._filterSettings(d.keys(t._settings));s=s.filter((e=>t.isUserSetting(e))),s.length&&(g.settings={},u.each(s,(s=>{const n=t.get(s);void 0!==n&&(g.settings[s]=this.serialize(n,e+1,i||-1!==_.indexOf(s)),t instanceof o.p&&"stops"===s&&(g.settings[s]=this.serialize(n,0,!0)))}))),this._processAdapters(t,g),this._processStates(t,g)}else if(t instanceof h.YS){g.type="Template";let i=this._filterSettings(d.keys(t._settings));return i.length&&(g.settings={},u.each(i,(i=>{void 0!==t._settings[i]&&(g.settings[i]=this.serialize(t.get(i),e+1,-1!==_.indexOf(i)))}))),this._processAdapters(t,g),this._processStates(t,g),g}if(t instanceof n.w&&t.data.length&&-1===(this.get("excludeProperties")||[]).indexOf("data")&&(g.properties={data:this.serialize(t.data.values,e,!0)}),t instanceof r.Il)return{type:"Color",value:t.toCSSHex()};if(t instanceof a.gG)return{type:"Percent",value:t.percent};if(c.isString(t))return this._escapeRefs(t);if(c.isNumber(t))return t;if(c.isObject(t))if(i&&!f){const s=this.get("excludeProperties",[]);d.each(t,((t,n)=>{-1===s.indexOf(t)&&void 0!==n&&(g[t]=this.serialize(n,e+1,i,p))})),p&&d.each(g,((t,e)=>{c.isObject(e)&&(g.__parse=!0)}))}else if(f){const s=this.get("includeProperties",[]);u.each(s,(s=>{const n=t[s];void 0!==n&&(void 0===g.properties&&(g.properties={}),g.properties[s]=this.serialize(n,e+1,i,p))}))}return 0==e&&d.keys(this._refs).length&&(g.refs=this._refs),g}_processAdapters(t,e){if(this.get("includeAdapters",!1)){const i="string"==this.get("functionsAs","string"),s=t.adapters._callbacks;Object.keys(s).length>0&&(e.adapters=[],d.each(s,((t,s)=>{s.forEach((s=>{e.adapters.push({key:t,callback:i?s.toString():s})}))})))}}_processStates(t,e){if(this.get("includeStates",!1)){const i=t.states._states;Object.keys(i).length>0&&(e.states=[],d.each(i,((t,i)=>{Object.keys(i._settings).length>0&&e.states.push({key:t,settings:this.serialize(i._settings,0,!0)})})))}}_filterSettings(t){const e=this.get("includeSettings",[]),i=this.get("excludeSettings",[]);return e.length?t=e:i.length&&(t=t.filter((t=>-1===i.indexOf(t)))),t}_escapeRefs(t){return t.replace(/^#/,"##").replace(/^@/,"@@")}}p.className="Serializer",p.classNames=s.JH.classNames.concat([p.className])},3783:function(t,e,i){"use strict";i.d(e,{X:function(){return c},v:function(){return l}});var s=i(3409),n=i(6245),r=i(1112),o=i(6881),a=i(962),h=i(9395);function l(t,e,i,s){t.set(e,i.get(s)),i.on(s,(i=>{t.set(e,i)}))}class c extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.language,e=this._root.interfaceColors,i=this._root.horizontalLayout,s=this._root.verticalLayout,c=this.rule.bind(this);c("InterfaceColors").setAll({stroke:r.Il.fromHex(15066597),fill:r.Il.fromHex(15987699),primaryButton:r.Il.fromHex(6788316),primaryButtonHover:r.Il.fromHex(6779356),primaryButtonDown:r.Il.fromHex(6872182),primaryButtonActive:r.Il.fromHex(6872182),primaryButtonDisabled:r.Il.fromHex(14342874),primaryButtonTextDisabled:r.Il.fromHex(16777215),primaryButtonText:r.Il.fromHex(16777215),primaryButtonStroke:r.Il.fromHex(16777215),secondaryButton:r.Il.fromHex(14277081),secondaryButtonHover:r.Il.fromHex(10724259),secondaryButtonDown:r.Il.fromHex(9276813),secondaryButtonActive:r.Il.fromHex(15132390),secondaryButtonText:r.Il.fromHex(0),secondaryButtonStroke:r.Il.fromHex(16777215),grid:r.Il.fromHex(0),background:r.Il.fromHex(16777215),alternativeBackground:r.Il.fromHex(0),text:r.Il.fromHex(0),alternativeText:r.Il.fromHex(16777215),disabled:r.Il.fromHex(11382189),positive:r.Il.fromHex(5288704),negative:r.Il.fromHex(11730944)});{const t=c("ColorSet");t.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[r.Il.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),t.setPrivate("currentStep",0),t.setPrivate("currentPass",0)}c("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:h.out(h.cubic)}),c("Component").setAll({interpolationDuration:0,interpolationEasing:h.out(h.cubic)}),c("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:n.CI,tooltipY:n.CI,tooltipPosition:"fixed",isMeasured:!0}),c("Sprite").states.create("default",{visible:!0,opacity:1}),c("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),c("Graphics").setAll({strokeWidth:1}),c("Chart").setAll({width:n.AQ,height:n.AQ,interactiveChildren:!1}),c("ZoomableContainer").setAll({width:n.AQ,height:n.AQ,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:h.out(h.cubic),animationDuration:600,maxPanOut:.4}),c("Sprite",["horizontal","center"]).setAll({centerX:n.CI,x:n.CI}),c("Sprite",["vertical","center"]).setAll({centerY:n.CI,y:n.CI}),c("Container",["horizontal","layout"]).setAll({layout:i}),c("Container",["vertical","layout"]).setAll({layout:s}),c("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),c("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),c("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),c("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),c("GrainPattern").setAll({width:200,height:200,colors:[r.Il.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const t=c("PatternSet");t.setAll({step:1}),l(t,"color",e,"stroke")}c("LinearGradient").setAll({rotation:90}),c("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:o.M.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),c("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:t.translate("Press ENTER to toggle"),role:"checkbox"});{const t=c("Rectangle",["legend","item","background"]);t.setAll({fillOpacity:0}),l(t,"fill",e,"background")}c("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:n.CI,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),c("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:n.AQ,height:n.AQ,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const t=c("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});l(t,"fill",e,"disabled"),l(t,"stroke",e,"disabled")}c("Label",["legend","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0}),l(c("Label",["legend","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("Label",["legend","value","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:n.AQ,populateText:!0}),l(c("Label",["legend","value","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("HeatLegend").setAll({stepCount:1}),c("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),c("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:n.AQ,width:15}),c("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:n.AQ,height:15}),c("HeatLegend",["vertical"]).setAll({height:n.AQ}),c("HeatLegend",["horizontal"]).setAll({width:n.AQ}),c("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),c("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const t=c("Label");t.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),l(t,"fill",e,"text")}c("RadialLabel").setAll({textType:"regular",centerY:n.CI,centerX:n.CI,inside:!1,radius:0,baseRadius:n.AQ,orientation:"auto",textAlign:"center"}),c("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),c("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:r.Il.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:r.Il.fromHex(0)}),c("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),c("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),c("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),c("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const t=c("Tick");t.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),l(t,"stroke",e,"grid")}c("Bullet").setAll({locationX:.5,locationY:.5}),c("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:n.CI,centerY:n.CI,animationEasing:h.out(h.cubic),exportable:!1}),c("Tooltip",["system"]).setAll({pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});{const t=c("PointedRectangle",["tooltip","system","background"]);t.setAll({strokeOpacity:.3}),l(t,"fill",e,"background"),l(t,"stroke",e,"grid")}c("Label",["tooltip","system"]).setAll({fontSize:12,fill:e.get("background")}),c("Polygon").setAll({animationEasing:h.out(h.cubic)}),c("Link").setAll({cornerRadius:8,setStateOnChildren:!0});{const t=c("OrthogonalLine",["link","line"]);t.setAll({isMeasured:!1,crisp:!0}),l(t.states.create("active",{strokeWidth:2}),"stroke",e,"negative")}c("OrthogonalLine",["link","hit"]).setAll({strokeWidth:10,opacity:0,strokeOpacity:0});{const t=c("OrthogonalLine");t.setAll({strokeWidth:1,strokeOpacity:1,cornerRadius:10}),l(t,"stroke",e,"grid")}{const t=c("Triangle",["link"]);t.setAll({width:14,height:10,centerY:0}),l(t,"fill",e,"grid"),l(t,"stroke",e,"grid"),t.states.create("default",{stateAnimationDuration:0});const i=t.states.create("active",{stateAnimationDuration:0,stroke:(0,r.$_)(16777215),strokeWidth:2});i.set("draw",(t=>{t.arc(0,0,11,0,2*Math.PI),t.moveTo(-4,-4),t.lineTo(4,4),t.moveTo(4,-4),t.lineTo(-4,4)})),l(i,"fill",e,"negative")}c("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:r.Il.fromHex(16777215)});{const t=c("Label",["tooltip"]);t.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),l(t,"fill",e,"alternativeText")}c("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),c("Button").states.create("hover",{}),c("Button").states.create("down",{stateAnimationDuration:0}),c("Button").states.create("active",{}),c("Button").states.create("disabled",{forceInactive:!0});{const t=c("RoundedRectangle",["button","background"]);l(t,"fill",e,"primaryButton"),l(t,"stroke",e,"primaryButtonStroke")}l(c("RoundedRectangle",["button","background"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown"),l(c("RoundedRectangle",["button","background"]).states.create("active",{}),"fill",e,"primaryButtonActive"),l(c("RoundedRectangle",["button","background"]).states.create("disabled",{}),"fill",e,"primaryButtonDisabled"),l(c("Graphics",["button","icon"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled"),l(c("Label",["button"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled");{const t=c("Graphics",["button","icon"]);t.setAll({forceInactive:!0}),l(t,"stroke",e,"primaryButtonText")}l(c("Label",["button"]),"fill",e,"primaryButtonText"),c("ConfirmButton").setAll({toggleKey:"active",setStateOnChildren:!0,label:a._.new(this._root,{text:t.translate("Confirm"),forceHidden:!0})}),l(c("RoundedRectangle",["button","background","confirm"]).states.create("active",{}),"fill",e,"negative"),c("Label",["button","confirm"]).setAll({paddingTop:0,paddingBottom:0,paddingRight:3,paddingLeft:5}),c("Label",["button","confirm"]).states.create("default",{stateAnimationDuration:0}),c("Label",["button","confirm"]).states.create("active",{forceHidden:!1,stateAnimationDuration:0});{const t=c("Graphics",["icon","confirm","button"]);t.setAll({stateAnimationDuration:0}),t.states.create("default",{stateAnimationDuration:0}),l(t,"stroke",e,"primaryButtonText")}l(c("Graphics",["icon","confirm","button"]).states.create("active",{svgPath:"M -5 1 L 0 6 L 8 -5",strokeWidth:2}),"stroke",e,"primaryButtonText"),l(c("Graphics",["icon","confirm","button","secondary"]).states.create("active",{}),"stroke",e,"primaryButtonText"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1}),"fill",e,"negative"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1}),"fill",e,"negative"),c("Button",["button","confirm"]).states.create("hoverActive",{}),c("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:n.AQ,role:"button",ariaLabel:t.translate("Zoom Out"),layer:30});{const t=c("RoundedRectangle",["background","button","zoom"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"primaryButton")}l(c("RoundedRectangle",["background","button","zoom"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown");{const t=c("Graphics",["icon","button","zoom"]);t.setAll({crisp:!0,strokeOpacity:.7,draw:t=>{t.moveTo(0,0),t.lineTo(12,0)}}),l(t,"stroke",e,"primaryButtonText")}c("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:n.CI,centerY:n.CI,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:t.translate("Use up and down arrows to move selection")});{const t=c("RoundedRectangle",["background","resize","button"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"secondaryButton"),l(t,"stroke",e,"secondaryButtonStroke")}l(c("RoundedRectangle",["background","resize","button"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown");{const t=c("Graphics",["resize","button","icon"]);t.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),l(t,"stroke",e,"secondaryButtonText")}c("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),c("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),c("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:t.translate("Play"),toggleKey:"active"});{const t=c("RoundedRectangle",["play","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Graphics",["play","icon"]);t.setAll({stateAnimationDuration:0,dx:1,draw:t=>{t.moveTo(0,-5),t.lineTo(8,0),t.lineTo(0,5),t.lineTo(0,-5)}}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),c("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:t=>{t.moveTo(-4,-5),t.lineTo(-1,-5),t.lineTo(-1,5),t.lineTo(-4,5),t.lineTo(-4,-5),t.moveTo(4,-5),t.lineTo(1,-5),t.lineTo(1,5),t.lineTo(4,5),t.lineTo(4,-5)}}),c("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:t.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const t=c("RoundedRectangle",["switch","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["switch","icon"]);t.setAll({radius:8,centerY:0,centerX:0,dx:0}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["switch","icon"]).states.create("active",{dx:16}),c("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:h.out(h.cubic)}),c("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:n.AQ}),c("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:n.AQ}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const t=c("RoundedRectangle",["scrollbar","main","background"]);t.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),l(t,"fill",e,"fill")}{const t=c("RoundedRectangle",["scrollbar","thumb"]);t.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),l(t,"fill",e,"secondaryButton")}l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown"),c("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:n.CI,width:n.AQ,centerX:n.CI,ariaLabel:t.translate("Use up and down arrows to move selection")}),c("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:n.CI,centerY:n.CI,height:n.AQ,ariaLabel:t.translate("Use left and right arrows to move selection")});{const t=c("PointedRectangle",["axis","tooltip","background"]);t.setAll({cornerRadius:0}),l(t,"fill",e,"alternativeBackground")}c("Label",["axis","tooltip"]).setAll({role:void 0}),c("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),c("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),c("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),c("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),c("Star").setAll({spikes:5,innerRadius:5,radius:10}),c("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),c("Tooltip",["indicator"]).setAll({forceHidden:!0}),c("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),c("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),c("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),c("Container",["resizer","grip"]).states.create("hover",{});{const t=c("RoundedRectangle",["resizer","grip"]);t.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),l(t,"fill",e,"background"),l(t,"stroke",e,"alternativeBackground")}{const t=c("RoundedRectangle",["resizer","grip","outline"]);t.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),t.states.create("hover",{fillOpacity:.3}),l(t,"fill",e,"alternativeBackground")}c("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),c("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const t=c("Rectangle",["resizer","rectangle"]);t.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),l(t,"stroke",e,"alternativeBackground")}c("Graphics",["button","plus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0),t.moveTo(0,-4),t.lineTo(0,4)}}),c("Graphics",["button","minus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0)}}),c("Graphics",["button","home","icon"]).setAll({x:n.CI,y:n.CI,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),c("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),c("ZoomTools").setAll({x:n.AQ,centerX:n.AQ,y:n.AQ,centerY:n.AQ,paddingRight:10,paddingBottom:10}),c("ProgressPie").setAll({radius:n.AQ,width:50,height:50,centerX:(0,n.aQ)(-50),centerY:(0,n.aQ)(-50),innerRadius:(0,n.aQ)(85),numberFormat:"#."});{const t=c("Label",["progresspie"]);t.setAll({centerX:n.CI,centerY:n.CI,fontSize:"0.75em"}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["progresspie"]);t.setAll({fillOpacity:.5}),l(t,"fill",e,"background")}{const t=c("Slice",["progresspie"]);t.setAll({startAngle:-90}),l(t,"fill",e,"primaryButton")}{const t=c("Slice",["progresspie","background"]);t.setAll({fillOpacity:.2,arc:360}),l(t,"fill",e,"primaryButton")}c("EditableLabel",["numericstepper"]).setAll({y:n.CI,centerY:n.CI,multiLine:!1,marginRight:2});{const t=c("Container",["numericstepper","buttons"]);t.setAll({layout:this._root.verticalLayout,centerY:n.CI,y:n.CI,marginRight:10,opacity:0}),t.states.create("active",{opacity:1}),t.states.create("default",{opacity:0})}{const t=c("Triangle",["numericstepper"]);t.setAll({width:17,height:11,marginTop:3,marginBottom:3,strokeWidth:5,strokeOpacity:0,cursorOverStyle:"pointer"}),l(t,"fill",e,"secondaryButton")}c("Triangle",["downbutton"]).setAll({rotation:180})}}},5322:function(t,e,i){"use strict";i.r(e),i.d(e,{ArrayDisposer:function(){return c.rk},BlendMode:function(){return ot.b},Bullet:function(){return u.g},Button:function(){return d.z},CSVParser:function(){return bt},CanvasLayer:function(){return Pt.mM},CanvasRenderer:function(){return Pt.uK},Chart:function(){return q.k},Circle:function(){return g.C},CirclePattern:function(){return ut},Color:function(){return O.Il},ColorSet:function(){return mt.U},Component:function(){return v.w},ConfirmButton:function(){return p.p},Container:function(){return w.W},CounterDisposer:function(){return c.DM},DataItem:function(){return v.z},DataProcessor:function(){return xt},DateFormatter:function(){return Dt.C},Disposer:function(){return c.ku},DurationFormatter:function(){return kt.$},EditableLabel:function(){return A.Y},Ellipse:function(){return _.P},Entity:function(){return l.JH},Gradient:function(){return at.p},GrainPattern:function(){return rt},Graphics:function(){return m.T},GridLayout:function(){return x.M},HeatLegend:function(){return C},HorizontalLayout:function(){return L.G},InterfaceColors:function(){return Tt.v},JSONParser:function(){return wt},JsonData:function(){return yt.Q},Label:function(){return D._},Layout:function(){return R.A},Legend:function(){return U.D},Line:function(){return B.x},LinePattern:function(){return dt.y},LinearGradient:function(){return S.o},Link:function(){return F.r},ListData:function(){return yt.k},ListTemplate:function(){return E.o},Modal:function(){return h.u},MultiDisposer:function(){return c.FV},MutableValueDisposer:function(){return c.cx},NumberFormatter:function(){return Mt.e},NumericStepper:function(){return St.l},OrthogonalLine:function(){return I.P},PathPattern:function(){return ft},Pattern:function(){return nt.c},PatternSet:function(){return _t},Percent:function(){return k.gG},Picture:function(){return H.t},PicturePattern:function(){return pt.v},PointedRectangle:function(){return z.i},Polygon:function(){return f.m},ProgressPie:function(){return Nt.w},RadialGradient:function(){return lt},RadialLabel:function(){return G.x},RadialText:function(){return V.f},Rectangle:function(){return W.A},RectanglePattern:function(){return gt},Root:function(){return n.f},RoundedRectangle:function(){return T.c},Scrollbar:function(){return j.L},SerialChart:function(){return Q.j},Series:function(){return K.F},Slice:function(){return $.p},Slider:function(){return X.i},Sprite:function(){return Z.j},SpriteResizer:function(){return Ot.b},Star:function(){return y},Template:function(){return M.YS},Text:function(){return J.x},TextFormatter:function(){return Et.V},Theme:function(){return r.Q},Tick:function(){return tt.d},Timezone:function(){return it.r},Tooltip:function(){return P.u},Triangle:function(){return Y.C},VerticalLayout:function(){return et.Z},ZoomTools:function(){return st.H},ZoomableContainer:function(){return b.Y},addLicense:function(){return o.cP},array:function(){return ht},color:function(){return O.$_},disposeAllRootElements:function(){return o.UZ},ease:function(){return Ct},getRootById:function(){return o.f_},math:function(){return ct},net:function(){return s},object:function(){return vt},p0:function(){return k.p0},p100:function(){return k.AQ},p50:function(){return k.CI},percent:function(){return k.aQ},ready:function(){return a.ready},registry:function(){return o.i_},time:function(){return Rt},type:function(){return N},utils:function(){return a}});var s={};i.r(s),i.d(s,{load:function(){return Lt},readBlob:function(){return At}});var n=i(2855),r=i(3409),o=i(3145),a=i(7652),h=i(8219),l=i(6331),c=i(7449),u=i(5108),d=i(8054),p=i(2936),g=i(8035),f=i(7770),_=i(2433),m=i(1479);class y extends m.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("spikes"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const t=this._display,e=this.get("radius",0),i=a.relativeToValue(this.get("innerRadius",0),e),s=this.get("spikes",0),n=Math.PI/s;let r=Math.PI/2*3;t.moveTo(0,-e);for(let o=0;oT.c._new(this._root,{themeTags:a.mergeTags(this.markers.template.get("themeTags",[]),[this.get("orientation"),"heatlegend","marker"])},[this.markers.template]))))}_afterNew(){this._settings.themeTags=a.mergeTags(this._settings.themeTags,["heatlegend",this._settings.orientation]),super._afterNew(),this.set("tooltip",P.u.new(this._root,{themeTags:["heatlegend"]}))}makeMarker(){const t=this.markers.make();return t.states.create("disabled",{}),t}showValue(t,e,i){const s=this.getTooltip();if(s&&N.isNumber(t)){const n=this.get("startValue",0);let r=(t-n)/(this.get("endValue",1)-n);(r==1/0||r==-1/0||isNaN(r))&&(r=.5);const o=this.get("startColor"),a=this.get("endColor");let h;e||(e=this.getNumberFormatter().format(t)),i||(i=O.Il.interpolate(r,o,a)),s.label.set("text",e),h="vertical"==this.get("orientation")?this.markerContainer.toGlobal({x:0,y:this.innerHeight()*(1-r)}):this.markerContainer.toGlobal({x:this.innerWidth()*r,y:0});let l=s.get("background");l&&l.set("fill",i),s.set("pointTo",h),s.show()}}_prepareChildren(){super._prepareChildren();const t=this.labelContainer,e=this.get("orientation"),i=this.startLabel,s=this.endLabel,n=this.getTooltip();if(this.isDirty("orientation")&&("vertical"==e?(this.markerContainer.setAll({layout:this._root.verticalLayout,height:k.AQ}),this.set("layout",this._root.horizontalLayout),i.setAll({y:k.AQ,x:void 0,centerY:k.AQ,centerX:k.AQ}),s.setAll({y:0,x:void 0,centerY:0,centerX:k.AQ}),t.setAll({height:k.AQ,width:void 0}),n&&n.set("pointerOrientation","horizontal")):(this.markerContainer.setAll({layout:this._root.horizontalLayout,width:k.AQ}),this.set("layout",this._root.verticalLayout),i.setAll({x:0,y:void 0,centerX:0,centerY:0}),s.setAll({x:k.AQ,y:void 0,centerX:k.AQ,centerY:0}),t.setAll({width:k.AQ,height:void 0}),n&&n.set("pointerOrientation","vertical"))),this.isDirty("stepCount")){const t=this.get("stepCount",1),i=this.get("startColor"),s=this.get("endColor"),n=this.get("startOpacity",1),r=this.get("endOpacity",1);if(this.markerContainer.children.clear(),t>1)for(let o=0;o0&&e/u!=Math.round(e/u)))for(let h=0;h0&&h/c!=Math.round(h/c)||d{let i=e.offset;N.isNumber(i)||(i=t/(g.length-1));let s=e.opacity;N.isNumber(s)||(s=1);let n=e.color;if(n){const t=e.lighten;t&&(n=O.Il.lighten(n,t));const r=e.brighten;r&&(n=O.Il.brighten(n,r)),p.addColorStop(i,"rgba("+n.r+","+n.g+","+n.b+","+s+")")}t++}))}return p}}lt.className="RadialGradient",lt.classNames=at.p.classNames.concat([lt.className]);var ct=i(751);class ut extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("radius",3),a=2*o+i,h=2*o+i,l=Math.round(n/a),c=Math.round(r/h);a=n/l,h=r/c,0!=s&&(this._display.x=a*ct.cos(s),this._display.y=h*ct.sin(s));const u=this.get("color"),d=this.get("colorOpacity");(u||d)&&this._display.beginFill(u,d);for(let n=0==s?0:2*-c;n<2*c;n++)for(let r=0==s?0:2*-l;r<2*l;r++)if(!t||1!=(1&n)&&1!=(1&r)||1==(1&n)&&1==(1&r)){let t=r*a,s=n*h;e&&(t+=a+i/2,s+=h+i/2),this._display.drawCircle(t-o,s-o,o)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i),(u||d)&&this._display.endFill()}}ut.className="CirclePattern",ut.classNames=nt.c.classNames.concat([ut.className]);var dt=i(3035),pt=i(4429);class gt extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("maxWidth",5),a=this.get("maxHeight",5);const h=this._display;let l=o+i,c=a+i,u=Math.round(n/l),d=Math.round(r/c);l=n/u,c=r/d,0!=s&&(h.x=l/2*ct.cos(s),h.y=-c/2*ct.sin(s));for(let i=0==s?0:2*-d;i<2*d;i++)for(let n=0==s?0:2*-u;n<2*u;n++)if(!t||1!=(1&i)&&1!=(1&n)||1==(1&i)&&1==(1&n)){let t=n*l,s=i*c;e&&(t+=(l-o)/2,s+=(c-a)/2),h.drawRect(t,s,o,a)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i);const p=this.get("color"),g=this.get("colorOpacity");(p||g)&&(h.beginFill(p,g),h.endFill())}}gt.className="RectanglePattern",gt.classNames=nt.c.classNames.concat([gt.className]);class ft extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("svgPath")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("svgPath");null!=t&&this._display.svgPath(t);const e=this.get("color"),i=this.get("colorOpacity");(e||i)&&(this._display.beginFill(e,i),this._display.endFill())}}ft.className="PathPattern",ft.classNames=nt.c.classNames.concat([ft.className]);class _t extends l.JH{_afterNew(){if(super._afterNewApplyThemes(),0===this.get("patterns",[]).length){const t=this.get("color",this.root.interfaceColors.get("stroke"));this.set("patterns",[this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:1,color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,maxWidth:4,maxHeight:4,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:1,gap:6,color:t}),this.getCirclePattern({width:11,height:11,radius:2,color:t}),this.getLinePattern({width:6,height:6,rotation:90,strokeWidth:1,color:t}),this.getRectanglePattern({width:14,height:14,rotation:45,gap:4,maxWidth:6,maxHeight:6,checkered:!0,color:t}),this.getLinePattern({width:6,height:6,rotation:0,strokeWidth:1,color:t}),this.getRectanglePattern({width:15,height:15,rotation:0,gap:5,maxWidth:5,maxHeight:5,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getCirclePattern({width:20,height:20,radius:3,gap:4,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,gap:1,maxWidth:9,maxHeight:9,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:0,strokeWidth:3,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:90,strokeWidth:3,gap:1,color:t})])}this._dirty.patterns=!1}_beforeChanged(){this.isDirty("patterns")&&this.reset()}getIndex(t){const e=this.get("patterns",[]);return te.length-1?e[t-Math.floor(t*(t/e.length))]:e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0))}getLinePattern(t){return dt.y.new(this.root,t)}getRectanglePattern(t){return gt.new(this.root,t)}getCirclePattern(t){return ut.new(this.root,t)}}_t.className="PatternSet",_t.classNames=l.JH.classNames.concat([_t.className]);var mt=i(2754),yt=i(9582),vt=i(256);class wt{static parse(t,e){e=this._applyDefaults(e);try{if(N.isString(t)){let i=JSON.parse(t);return e.reverse&&N.isArray(i)&&i.reverse(),i}if(N.isArray(t)||N.isObject(t))return t;throw"Unable to parse JSON data"}catch(t){return}}static _applyDefaults(t){const e={};return t||(t={}),vt.each({reverse:!1},((i,s)=>{e[i]=t[i]||s})),e}}class bt{static parse(t,e){e=this._applyDefaults(e);let i,s,n,r=this.CSVToArray(t,e.delimiter),o=[],a=[];for(s=0;s{e[i]=t[i]||s})),e}}class xt extends l.JH{constructor(){super(...arguments),this._checkDates=!1,this._checkNumbers=!1,this._checkColors=!1,this._checkEmpty=!1,this._checkDeep=!1}_afterNew(){super._afterNew(),this._checkFeatures(),this.on("dateFields",(()=>this._checkFeatures())),this.on("dateFormat",(()=>this._checkFeatures())),this.on("numericFields",(()=>this._checkFeatures())),this.on("colorFields",(()=>this._checkFeatures())),this.on("emptyAs",(()=>this._checkFeatures()))}_checkFeatures(){(this.isDirty("dateFields")||this.isDirty("dateFormat"))&&(this._checkDates=this.get("dateFields")&&this.get("dateFields").length>0),this.isDirty("numericFields")&&(this._checkNumbers=this.get("numericFields")&&this.get("numericFields").length>0),this.isDirty("colorFields")&&(this._checkColors=this.get("colorFields")&&this.get("colorFields").length>0),this.isDirty("emptyAs")&&(this._checkEmpty=null!=this.get("emptyAs")),this._checkDeepFeatures()}_checkDeepFeatures(){const t=[];ht.each(["dateFields","numericFields","colorFields"],(e=>{ht.each(this.get(e,[]),(e=>{const i=e.split(".");for(i.pop();i.length>0;)t.push(i.join(".")),i.pop()}))})),this._checkDeep=t.length>0,this.setPrivate("deepFields",t)}processMany(t){N.isArray(t)&&(this._checkDates||this._checkNumbers||this._checkColors||this._checkEmpty)&&ht.each(t,(t=>{this.processRow(t)}))}processRow(t,e=""){vt.each(t,((i,s)=>{const n=e+i;this._checkEmpty&&(t[i]=this._maybeToEmpty(t[i])),this._checkNumbers&&(t[i]=this._maybeToNumber(n,t[i])),this._checkDates&&(t[i]=this._maybeToDate(n,t[i])),this._checkColors&&(t[i]=this._maybeToColor(n,t[i])),this._checkDeep&&-1!==this.getPrivate("deepFields",[]).indexOf(n)&&N.isObject(t[i])&&this.processRow(t[i],n+".")}))}_maybeToNumber(t,e){return-1!==this.get("numericFields").indexOf(t)?N.toNumber(e):e}_maybeToDate(t,e){return-1!==this.get("dateFields").indexOf(t)?this._root.dateFormatter.parse(e,this.get("dateFormat","")).getTime():e}_maybeToEmpty(t){return null!=t&&""!=t||null==this.get("emptyAs")?t:this.get("emptyAs")}_maybeToColor(t,e){return-1!==this.get("colorFields").indexOf(t)?O.Il.fromAny(e):e}}var Dt=i(6460),kt=i(798),Tt=i(9821),Mt=i(780),Et=i(7255),Ot=i(1195),Pt=i(4102),St=i(7049),Nt=i(6312),Ct=i(9395);function Lt(t,e,i){return new Promise(((s,n)=>{let r=null!=i&&"blob"==i.responseType,o=new XMLHttpRequest;if(o.onload=()=>{if(200===o.status){let t,i;if(r)return i=o.response,void At(i).then((t=>{let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}));t=o.responseText||o.response;let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}else n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.onerror=()=>{n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.open("GET",t,!0),i&&i.withCredentials&&(o.withCredentials=!0),null!=i){if(null!=i.requestHeaders)for(let t=0;t{const s=new FileReader;s.onload=t=>{e(s.result)},s.onerror=t=>{i(t)},s.readAsText(t)}))}var Rt=i(1926)},3100:function(t,e){"use strict";e.Z={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(t){let e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""}},9629:function(t){var e=function(t){"use strict";var e,i=Object.prototype,s=i.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",h=r.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,s){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new S(s||[]);return n(o,"_invoke",{value:M(t,i,a)}),o}function u(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",g="executing",f="completed",_={};function m(){}function y(){}function v(){}var w={};l(w,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==i&&s.call(x,o)&&(w=x);var D=v.prototype=m.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function i(n,r,o,a){var h=u(t[n],t,r);if("throw"!==h.type){var l=h.arg,c=l.value;return c&&"object"==typeof c&&s.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,o,a)}),(function(t){i("throw",t,o,a)})):e.resolve(c).then((function(t){l.value=t,o(l)}),(function(t){return i("throw",t,o,a)}))}a(h.arg)}var r;n(this,"_invoke",{value:function(t,s){function n(){return new e((function(e,n){i(t,s,e,n)}))}return r=r?r.then(n,n):n()}})}function M(t,e,i){var s=d;return function(n,r){if(s===g)throw new Error("Generator is already running");if(s===f){if("throw"===n)throw r;return C()}for(i.method=n,i.arg=r;;){var o=i.delegate;if(o){var a=E(o,i);if(a){if(a===_)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===d)throw s=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=g;var h=u(t,e,i);if("normal"===h.type){if(s=i.done?f:p,h.arg===_)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(s=f,i.method="throw",i.arg=h.arg)}}}function E(t,i){var s=i.method,n=t.iterator[s];if(n===e)return i.delegate=null,"throw"===s&&t.iterator.return&&(i.method="return",i.arg=e,E(t,i),"throw"===i.method)||"return"!==s&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),_;var r=u(n,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,_;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,_):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,_)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var h=s.call(o,"catchLoc"),l=s.call(o,"finallyLoc");if(h&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var s=i.completion;if("throw"===s.type){var n=s.arg;P(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,s){return this.delegate={iterator:N(t),resultName:i,nextLoc:s},"next"===this.method&&(this.arg=e),_}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},8494:function(t,e,i){"use strict";i.r(e),i.d(e,{am5:function(){return f}});const s=window.Promise,n=s&&s.prototype.then,r=s&&s.prototype.catch,o=s&&s.prototype.finally,a=s&&s.reject,h=s&&s.resolve,l=s&&s.allSettled,c=s&&s.all,u=s&&s.race,d=window.fetch,p=String.prototype.startsWith,g=String.prototype.endsWith;i(9629);const f=i(5322);var _;i.p=(_=function(){if(document.currentScript)return document.currentScript;var t=document.getElementsByTagName("script");return t[t.length-1]}().src,((/(.*\/)[^\/]*$/.exec(_)||[])[1]||"./")),s&&(window.Promise=s,n&&(s.prototype.then=n),r&&(s.prototype.catch=r),o&&(s.prototype.finally=o),a&&(s.reject=a),h&&(s.resolve=h),l&&(s.allSettled=l),c&&(s.all=c),u&&(s.race=u)),d&&(window.fetch=d),p&&(String.prototype.startsWith=p),g&&(String.prototype.endsWith=g)},4138:function(t,e){"use strict";var i={value:()=>{}};function s(){for(var t,e=0,i=arguments.length,s={};e=0&&(e=t.slice(i+1),t=t.slice(0,i)),t&&!s.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),h=-1,l=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++h0)for(var i,s,n=new Array(i),r=0;r0&&i*i>s*s+n*n}function u(t,e){for(var i=0;i1e-6?(E+Math.sqrt(E*E-4*M*O))/(2*M):O/E);return{x:s+x+D*P,y:n+k+T*P,r:P}}function f(t,e,i){var s,n,r,o,a=t.x-e.x,h=t.y-e.y,l=a*a+h*h;l?(n=e.r+i.r,n*=n,o=t.r+i.r,n>(o*=o)?(s=(l+o-n)/(2*l),r=Math.sqrt(Math.max(0,o/l-s*s)),i.x=t.x-s*a-r*h,i.y=t.y-s*h+r*a):(s=(l+n-o)/(2*l),r=Math.sqrt(Math.max(0,n/l-s*s)),i.x=e.x+s*a-r*h,i.y=e.y+s*h+r*a)):(i.x=e.x+i.r,i.y=e.y)}function _(t,e){var i=t.r+e.r-1e-6,s=e.x-t.x,n=e.y-t.y;return i>0&&i*i>s*s+n*n}function m(t){var e=t._,i=t.next._,s=e.r+i.r,n=(e.x*i.r+i.x*e.r)/s,r=(e.y*i.r+i.y*e.r)/s;return n*n+r*r}function y(t){this._=t,this.next=null,this.previous=null}function v(t,e){if(!(o=(i=t,t="object"==typeof i&&"length"in i?i:Array.from(i)).length))return 0;var i,s,n,r,o,a,l,u,p,g,v,w;if((s=t[0]).x=0,s.y=0,!(o>1))return s.r;if(n=t[1],s.x=-n.r,n.x=s.r,n.y=0,!(o>2))return s.r+n.r;f(n,s,r=t[2]),s=new y(s),n=new y(n),r=new y(r),s.next=r.previous=n,n.next=s.previous=r,r.next=n.previous=s;t:for(u=3;u(t=(r*t+o)%a)/a}();return s.x=e/2,s.y=i/2,t?s.eachBefore(x(t)).eachAfter(D(h,.5,l)).eachBefore(k(1)):s.eachBefore(x(w)).eachAfter(D(n.G,1,l)).eachAfter(D(h,s.r/Math.min(e,i),l)).eachBefore(k(Math.min(e,i)/(2*s.r))),s}return l.radius=function(e){return arguments.length?(t=(0,s.j)(e),l):t},l.size=function(t){return arguments.length?(e=+t[0],i=+t[1],l):[e,i]},l.padding=function(t){return arguments.length?(h="function"==typeof t?t:(0,n.Z)(+t),l):h},l}function x(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function D(t,e,i){return function(s){if(n=s.children){var n,r,o,a=n.length,h=t(s)*e||0;if(h)for(r=0;r=0))throw new Error(`invalid digits: ${t}`);if(e>15)return a;const i=10**e;return function(t){this._+=t[0];for(let e=1,s=t.length;er)if(Math.abs(d*l-c*u)>r&&o){let g=i-a,f=n-h,_=l*l+c*c,m=g*g+f*f,y=Math.sqrt(_),v=Math.sqrt(p),w=o*Math.tan((s-Math.acos((_+p-m)/(2*y*v)))/2),b=w/v,x=w/y;Math.abs(b-1)>r&&this._append`L${t+b*u},${e+b*d}`,this._append`A${o},${o},0,0,${+(d*g>u*f)},${this._x1=t+x*l},${this._y1=e+x*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,i,a,h,l){if(t=+t,e=+e,l=!!l,(i=+i)<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(a),u=i*Math.sin(a),d=t+c,p=e+u,g=1^l,f=l?a-h:h-a;null===this._x1?this._append`M${d},${p}`:(Math.abs(this._x1-d)>r||Math.abs(this._y1-p)>r)&&this._append`L${d},${p}`,i&&(f<0&&(f=f%n+n),f>o?this._append`A${i},${i},0,1,${g},${t-c},${e-u}A${i},${i},0,1,${g},${this._x1=d},${this._y1=p}`:f>r&&this._append`A${i},${i},0,${+(f>=s)},${g},${this._x1=t+i*Math.cos(h)},${this._y1=e+i*Math.sin(h)}`)}rect(t,e,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function l(){return new h}l.prototype=h.prototype},832:function(t,e,i){"use strict";i.d(e,{Z:function(){return D}});var s=i(3141);const n=Math.abs,r=Math.atan2,o=Math.cos,a=Math.max,h=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,d=Math.PI,p=d/2,g=2*d;function f(t){return t>=1?p:t<=-1?-p:Math.asin(t)}var _=i(5987);function m(t){return t.innerRadius}function y(t){return t.outerRadius}function v(t){return t.startAngle}function w(t){return t.endAngle}function b(t){return t&&t.padAngle}function x(t,e,i,s,n,r,o){var h=t-i,l=e-s,u=(o?r:-r)/c(h*h+l*l),d=u*l,p=-u*h,g=t+d,f=e+p,_=i+d,m=s+p,y=(g+_)/2,v=(f+m)/2,w=_-g,b=m-f,x=w*w+b*b,D=n-r,k=g*m-_*f,T=(b<0?-1:1)*c(a(0,D*D*x-k*k)),M=(k*b-w*T)/x,E=(-k*w-b*T)/x,O=(k*b+w*T)/x,P=(-k*w+b*T)/x,S=M-y,N=E-v,C=O-y,L=P-v;return S*S+N*N>C*C+L*L&&(M=O,E=P),{cx:M,cy:E,x01:-d,y01:-p,x11:M*(n/D-1),y11:E*(n/D-1)}}function D(){var t=m,e=y,i=(0,s.Z)(0),a=null,D=v,k=w,T=b,M=null,E=(0,_.d)(O);function O(){var s,_,m,y=+t.apply(this,arguments),v=+e.apply(this,arguments),w=D.apply(this,arguments)-p,b=k.apply(this,arguments)-p,O=n(b-w),P=b>w;if(M||(M=s=E()),vu)if(O>g-u)M.moveTo(v*o(w),v*l(w)),M.arc(0,0,v,w,b,!P),y>u&&(M.moveTo(y*o(b),y*l(b)),M.arc(0,0,y,b,w,P));else{var S,N,C=w,L=b,A=w,R=b,U=O,B=O,F=T.apply(this,arguments)/2,I=F>u&&(a?+a.apply(this,arguments):c(y*y+v*v)),H=h(n(v-y)/2,+i.apply(this,arguments)),z=H,G=H;if(I>u){var V=f(I/y*l(F)),W=f(I/v*l(F));(U-=2*V)>u?(A+=V*=P?1:-1,R-=V):(U=0,A=R=(w+b)/2),(B-=2*W)>u?(C+=W*=P?1:-1,L-=W):(B=0,C=L=(w+b)/2)}var Y=v*o(C),j=v*l(C),X=y*o(R),$=y*l(R);if(H>u){var Z,K=v*o(L),q=v*l(L),Q=y*o(A),J=y*l(A);if(O1?0:m<-1?d:Math.acos(m))/2),rt=c(Z[0]*Z[0]+Z[1]*Z[1]);z=h(H,(y-rt)/(nt-1)),G=h(H,(v-rt)/(nt+1))}else z=G=0}B>u?G>u?(S=x(Q,J,Y,j,v,G,P),N=x(K,q,X,$,v,G,P),M.moveTo(S.cx+S.x01,S.cy+S.y01),Gu&&U>u?z>u?(S=x(X,$,K,q,y,-z,P),N=x(Y,j,Q,J,y,-z,P),M.lineTo(S.cx+S.x01,S.cy+S.y01),z=o;--a)p.point(y[a],v[a]);p.lineEnd(),p.areaEnd()}m&&(y[r]=+t(h,r,n),v[r]=+e(h,r,n),p.point(l?+l(h,r,n):y[r],i?+i(h,r,n):v[r]))}if(f)return p=null,f+""||null}function _(){return(0,o.Z)().defined(c).curve(d).context(u)}return t="function"==typeof t?t:void 0===t?h.x:(0,n.Z)(+t),e="function"==typeof e?e:void 0===e?(0,n.Z)(0):(0,n.Z)(+e),i="function"==typeof i?i:void 0===i?h.y:(0,n.Z)(+i),f.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),l=null,f):t},f.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),f):t},f.x1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):l},f.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),i=null,f):e},f.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),f):e},f.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):i},f.lineX0=f.lineY0=function(){return _().x(t).y(e)},f.lineY1=function(){return _().x(t).y(i)},f.lineX1=function(){return _().x(l).y(e)},f.defined=function(t){return arguments.length?(c="function"==typeof t?t:(0,n.Z)(!!t),f):c},f.curve=function(t){return arguments.length?(d=t,null!=u&&(p=d(u)),f):d},f.context=function(t){return arguments.length?(null==t?u=p=null:p=d(u=t),f):u},f}},8457:function(t,e,i){"use strict";function s(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}i.d(e,{Z:function(){return s}}),Array.prototype.slice},3141:function(t,e,i){"use strict";function s(t){return function(){return t}}i.d(e,{Z:function(){return s}})},964:function(t,e,i){"use strict";function s(t){this._context=t}function n(t){return new s(t)}i.d(e,{Z:function(){return n}}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},774:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var s=i(8457),n=i(3141),r=i(964),o=i(5987),a=i(6758);function h(t,e){var i=(0,n.Z)(!0),h=null,l=r.Z,c=null,u=(0,o.d)(d);function d(n){var r,o,a,d=(n=(0,s.Z)(n)).length,p=!1;for(null==h&&(c=l(a=u())),r=0;r<=d;++r)!(r=0))throw new RangeError(`invalid digits: ${i}`);e=t}return t},()=>new s.y$(e)}},6758:function(t,e,i){"use strict";function s(t){return t[0]}function n(t){return t[1]}i.d(e,{x:function(){return s},y:function(){return n}})},7738:function(t,e,i){"use strict";i.d(e,{B7:function(){return _},HT:function(){return m},zO:function(){return g}});var s,n,r=0,o=0,a=0,h=1e3,l=0,c=0,u=0,d="object"==typeof performance&&performance.now?performance:Date,p="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return c||(p(f),c=d.now()+u)}function f(){c=0}function _(){this._call=this._time=this._next=null}function m(t,e,i){var s=new _;return s.restart(t,e,i),s}function y(){c=(l=d.now())+u,r=o=0;try{!function(){g(),++r;for(var t,e=s;e;)(t=c-e._time)>=0&&e._call.call(void 0,t),e=e._next;--r}()}finally{r=0,function(){for(var t,e,i=s,r=1/0;i;)i._call?(r>i._time&&(r=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:s=e);n=t,w(r)}(),c=0}}function v(){var t=d.now(),e=t-l;e>h&&(u-=e,l=t)}function w(t){r||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(y,t-d.now()-u)),a&&(a=clearInterval(a))):(a||(l=d.now(),a=setInterval(v,h)),r=1,p(y)))}_.prototype=m.prototype={constructor:_,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?g():+i)+(null==e?0:+e),this._next||n===this||(n?n._next=this:s=this,n=this),this._call=t,this._time=i,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},7896:function(t,e,i){"use strict";function s(){}function n(t){return null==t?s:function(){return this.querySelector(t)}}function r(){return[]}function o(t){return null==t?r:function(){return this.querySelectorAll(t)}}function a(t){return function(){return this.matches(t)}}function h(t){return function(e){return e.matches(t)}}var l=Array.prototype.find;function c(){return this.firstElementChild}var u=Array.prototype.filter;function d(){return Array.from(this.children)}function p(t){return new Array(t.length)}function g(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function f(t,e,i,s,n,r){for(var o,a=0,h=e.length,l=r.length;ae?1:t>=e?0:NaN}g.prototype={constructor:g,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var w="http://www.w3.org/1999/xhtml",b={svg:"http://www.w3.org/2000/svg",xhtml:w,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function x(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),b.hasOwnProperty(e)?{space:b[e],local:t}:t}function D(t){return function(){this.removeAttribute(t)}}function k(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T(t,e){return function(){this.setAttribute(t,e)}}function M(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function O(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function P(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function S(t){return function(){this.style.removeProperty(t)}}function N(t,e,i){return function(){this.style.setProperty(t,e,i)}}function C(t,e,i){return function(){var s=e.apply(this,arguments);null==s?this.style.removeProperty(t):this.style.setProperty(t,s,i)}}function L(t,e){return t.style.getPropertyValue(e)||P(t).getComputedStyle(t,null).getPropertyValue(e)}function A(t){return function(){delete this[t]}}function R(t,e){return function(){this[t]=e}}function U(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function B(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new I(t)}function I(t){this._node=t,this._names=B(t.getAttribute("class")||"")}function H(t,e){for(var i=F(t),s=-1,n=e.length;++s=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ut=[null];function dt(t,e){this._groups=t,this._parents=e}function pt(){return new dt([[document.documentElement]],ut)}dt.prototype=pt.prototype={constructor:dt,select:function(t){"function"!=typeof t&&(t=n(t));for(var e=this._groups,i=e.length,s=new Array(i),r=0;r=T&&(T=k+1);!(D=b[T])&&++T=0;)(s=n[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=v);for(var i=this._groups,s=i.length,n=new Array(s),r=0;r1?this.each((null==e?S:"function"==typeof e?C:N)(t,e,null==i?"":i)):L(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?A:"function"==typeof e?U:R)(t,e)):this.node()[t]},classed:function(t,e){var i=B(t+"");if(arguments.length<2){for(var s=F(this.node()),n=-1,r=i.length;++n=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}))}(t+""),o=r.length;if(!(arguments.length<2)){for(a=e?at:ot,s=0;s{s.stop(),t(i+e)}),e,i),s}var yt=(0,ft.Z)("start","end","cancel","interrupt"),vt=[],wt=0,bt=3;function xt(t,e,i,s,n,r){var o=t.__transition;if(o){if(i in o)return}else t.__transition={};!function(t,e,i){var s,n=t.__transition;function r(h){var l,c,u,d;if(1!==i.state)return a();for(l in n)if((d=n[l]).name===i.name){if(d.state===bt)return mt(r);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[l]):+lwt)throw new Error("too late; already scheduled");return i}function kt(t,e){var i=Tt(t,e);if(i.state>bt)throw new Error("too late; already running");return i}function Tt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Mt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Et,Ot=180/Math.PI,Pt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function St(t,e,i,s,n,r){var o,a,h;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(h=t*i+e*s)&&(i-=t*h,s-=e*h),(a=Math.sqrt(i*i+s*s))&&(i/=a,s/=a,h/=a),t*s180?e+=360:e-t>180&&(t+=360),r.push({i:i.push(n(i)+"rotate(",null,s)-2,x:Mt(t,e)})):e&&i.push(n(i)+"rotate("+e+s)}(r.rotate,o.rotate,a,h),function(t,e,i,r){t!==e?r.push({i:i.push(n(i)+"skewX(",null,s)-2,x:Mt(t,e)}):e&&i.push(n(i)+"skewX("+e+s)}(r.skewX,o.skewX,a,h),function(t,e,i,s,r,o){if(t!==i||e!==s){var a=r.push(n(r)+"scale(",null,",",null,")");o.push({i:a-4,x:Mt(t,i)},{i:a-2,x:Mt(e,s)})}else 1===i&&1===s||r.push(n(r)+"scale("+i+","+s+")")}(r.scaleX,r.scaleY,o.scaleX,o.scaleY,a,h),r=o=null,function(t){for(var e,i=-1,s=h.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?se(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?se(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jt.exec(t))?new re(e[1],e[2],e[3],1):(e=Xt.exec(t))?new re(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$t.exec(t))?se(e[1],e[2],e[3],e[4]):(e=Zt.exec(t))?se(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Kt.exec(t))?ue(e[1],e[2]/100,e[3]/100,1):(e=qt.exec(t))?ue(e[1],e[2]/100,e[3]/100,e[4]):Qt.hasOwnProperty(t)?ie(Qt[t]):"transparent"===t?new re(NaN,NaN,NaN,0):null}function ie(t){return new re(t>>16&255,t>>8&255,255&t,1)}function se(t,e,i,s){return s<=0&&(t=e=i=NaN),new re(t,e,i,s)}function ne(t,e,i,s){return 1===arguments.length?((n=t)instanceof It||(n=ee(n)),n?new re((n=n.rgb()).r,n.g,n.b,n.opacity):new re):new re(t,e,i,null==s?1:s);var n}function re(t,e,i,s){this.r=+t,this.g=+e,this.b=+i,this.opacity=+s}function oe(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}`}function ae(){const t=he(this.opacity);return`${1===t?"rgb(":"rgba("}${le(this.r)}, ${le(this.g)}, ${le(this.b)}${1===t?")":`, ${t})`}`}function he(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function le(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ce(t){return((t=le(t))<16?"0":"")+t.toString(16)}function ue(t,e,i,s){return s<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new pe(t,e,i,s)}function de(t){if(t instanceof pe)return new pe(t.h,t.s,t.l,t.opacity);if(t instanceof It||(t=ee(t)),!t)return new pe;if(t instanceof pe)return t;var e=(t=t.rgb()).r/255,i=t.g/255,s=t.b/255,n=Math.min(e,i,s),r=Math.max(e,i,s),o=NaN,a=r-n,h=(r+n)/2;return a?(o=e===r?(i-s)/a+6*(i0&&h<1?0:o,new pe(o,a,h,t.opacity)}function pe(t,e,i,s){this.h=+t,this.s=+e,this.l=+i,this.opacity=+s}function ge(t){return(t=(t||0)%360)<0?t+360:t}function fe(t){return Math.max(0,Math.min(1,t||0))}function _e(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function me(t,e,i,s,n){var r=t*t,o=r*t;return((1-3*t+3*r-o)*e+(4-6*r+3*o)*i+(1+3*t+3*r-3*o)*s+o*n)/6}Bt(It,ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return de(this).formatHsl()},formatRgb:te,toString:te}),Bt(re,ne,Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new re(le(this.r),le(this.g),le(this.b),he(this.opacity))},displayable(){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:oe,formatHex:oe,formatHex8:function(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}${ce(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ae,toString:ae})),Bt(pe,(function(t,e,i,s){return 1===arguments.length?de(t):new pe(t,e,i,null==s?1:s)}),Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new pe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new pe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*e,n=2*i-s;return new re(_e(t>=240?t-240:t+120,n,s),_e(t,n,s),_e(t<120?t+240:t-120,n,s),this.opacity)},clamp(){return new pe(ge(this.h),fe(this.s),fe(this.l),he(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=he(this.opacity);return`${1===t?"hsl(":"hsla("}${ge(this.h)}, ${100*fe(this.s)}%, ${100*fe(this.l)}%${1===t?")":`, ${t})`}`}}));var ye=t=>()=>t;function ve(t,e){var i=e-t;return i?function(t,e){return function(i){return t+i*e}}(t,i):ye(isNaN(t)?e:t)}var we=function t(e){var i=function(t){return 1==(t=+t)?ve:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(s){return Math.pow(t+s*e,i)}}(e,i,t):ye(isNaN(e)?i:e)}}(e);function s(t,e){var s=i((t=ne(t)).r,(e=ne(e)).r),n=i(t.g,e.g),r=i(t.b,e.b),o=ve(t.opacity,e.opacity);return function(e){return t.r=s(e),t.g=n(e),t.b=r(e),t.opacity=o(e),t+""}}return s.gamma=t,s}(1);function be(t){return function(e){var i,s,n=e.length,r=new Array(n),o=new Array(n),a=new Array(n);for(i=0;i=1?(i=1,e-1):Math.floor(i*e),n=t[s],r=t[s+1],o=s>0?t[s-1]:2*n-r,a=sr&&(n=e.slice(r,n),a[o]?a[o]+=n:a[++o]=n),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,h.push({i:o,x:Mt(i,s)})),r=De.lastIndex;return r=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Dt:kt;return function(){var o=r(this,t),a=o.on;a!==s&&(n=(s=a).copy()).on(e,i),o.on=n}}(i,t,e))},attr:function(t,e){var i=x(t),s="transform"===i?Lt:Te;return this.attrTween(t,"function"==typeof e?(i.local?Ne:Se)(i,s,Ut(this,"attr."+t,e)):null==e?(i.local?Ee:Me)(i):(i.local?Pe:Oe)(i,s,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;var s=x(t);return this.tween(i,(s.local?Ce:Le)(s,e))},style:function(t,e,i){var s="transform"==(t+="")?Ct:Te;return null==e?this.styleTween(t,function(t,e){var i,s,n;return function(){var r=L(this,t),o=(this.style.removeProperty(t),L(this,t));return r===o?null:r===i&&o===s?n:n=e(i=r,s=o)}}(t,s)).on("end.style."+t,Ie(t)):"function"==typeof e?this.styleTween(t,function(t,e,i){var s,n,r;return function(){var o=L(this,t),a=i(this),h=a+"";return null==a&&(this.style.removeProperty(t),h=a=L(this,t)),o===h?null:o===s&&h===n?r:(n=h,r=e(s=o,a))}}(t,s,Ut(this,"style."+t,e))).each(function(t,e){var i,s,n,r,o="style."+e,a="end."+o;return function(){var h=kt(this,t),l=h.on,c=null==h.value[o]?r||(r=Ie(e)):void 0;l===i&&n===c||(s=(i=l).copy()).on(a,n=c),h.on=s}}(this._id,t)):this.styleTween(t,function(t,e,i){var s,n,r=i+"";return function(){var o=L(this,t);return o===r?null:o===s?n:n=e(s=o,i)}}(t,s,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var s="style."+(t+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(null==e)return this.tween(s,null);if("function"!=typeof e)throw new Error;return this.tween(s,function(t,e,i){var s,n;function r(){var r=e.apply(this,arguments);return r!==n&&(s=(n=r)&&function(t,e,i){return function(s){this.style.setProperty(t,e.call(this,s),i)}}(t,r,i)),s}return r._value=e,r}(t,e,null==i?"":i))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ut(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,i;function s(){var s=t.apply(this,arguments);return s!==i&&(e=(i=s)&&function(t){return function(e){this.textContent=t.call(this,e)}}(s)),e}return s._value=t,s}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var s,n=Tt(this.node(),i).tween,r=0,o=n.length;r2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[n]):o=!1;o&&delete t.__transition}}(this,t)}))},gt.prototype.transition=function(t){var e,i;t instanceof ze?(e=t._id,t=t._name):(e=Ge(),(i=We).time=(0,_t.zO)(),t=null==t?null:t+"");for(var s=this._groups,n=s.length,r=0;r=n)&&Object.keys(a.O).every((function(t){return a.O[t](i[h])}))?i.splice(h--,1):(o=!1,n0&&t[c-1][2]>n;c--)t[c]=t[c-1];t[c]=[i,s,n]},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},i=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(t,s){if(1&s&&(t=this(t)),8&s)return t;if("object"==typeof t&&t){if(4&s&&t.__esModule)return t;if(16&s&&"function"==typeof t.then)return t}var n=Object.create(null);a.r(n);var r={};e=e||[null,i({}),i([]),i(i)];for(var o=2&s&&t;"object"==typeof o&&!~e.indexOf(o);o=i(o))Object.getOwnPropertyNames(o).forEach((function(e){r[e]=function(){return t[e]}}));return r.default=function(){return t},a.d(n,r),n},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,i){return a.f[i](t,e),e}),[]))},a.u=function(t){return"deps/"+{643:"pdfmake",4297:"xlsx",4384:"markerjs2"}[t]+".js"},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s={},n="@amcharts/amcharts5:",a.l=function(t,e,i,r){if(s[t])s[t].push(e);else{var o,h;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c{this.zoomOut()})),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",e);const a=this.plotContainer;a.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),a.children.push(this.topGridContainer),a.children.push(this.bulletsContainer),a.set("interactive",!0),a.set("interactiveChildren",!1),a.set("background",o.A.new(t,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(a.events.on("pointerdown",(t=>{this._handlePlotDown(t)}))),this._disposers.push(a.events.on("globalpointerup",(t=>{this._handlePlotUp(t)}))),this._disposers.push(a.events.on("globalpointermove",(t=>{this._handlePlotMove(t)}))),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(t){t._unstack(),t._posXDp&&t._posXDp.dispose(),t._posYDp&&t._posYDp.dispose(),t.set("baseAxis",void 0);const e=t.get("xAxis");e&&(g.remove(e.series,t),e.markDirtyExtremes());const i=t.get("yAxis");i&&(g.remove(i.series,t),i.markDirtyExtremes());const s=this.get("cursor");if(s){const e=s.get("snapToSeries");e&&g.remove(e,t)}super._removeSeries(t)}_applyThemes(t=!1){const e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}handleWheel(t){const e=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=t.originalEvent;let o=!1;if(!p.isLocalEvent(a,this))return;o=!0;const n=s.toLocal(t.point),r=this.get("wheelStep",.2),h=a.deltaY/100,l=a.deltaX/100,d=this.get("wheelZoomPositionX"),g=this.get("wheelZoomPositionY");"zoomX"!==e&&"zoomXY"!==e||0==l||this.xAxes.each((t=>{if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let h=t.get("maxDeviation",0),g=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let l=t.get("maxDeviation",0),g=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let h=t.get("maxDeviation",0),d=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let l=t.get("maxDeviation",0),d=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panX"!==i&&"panXY"!==i||0==h||this.xAxes.each((t=>{if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e+s,n=i+s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==e&&"panXY"!==e||0==l||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==i&&"panXY"!==i||0==h||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e-s,n=i-s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),o&&a.preventDefault()}_handleSetWheel(){const t=this.get("wheelX"),e=this.get("wheelY"),i=this.plotContainer;"none"!==t||"none"!==e?(this._wheelDp=i.events.on("wheel",(i=>{const s=i.originalEvent;("none"!==t&&0!=Math.abs(s.deltaX)||"none"!==e&&0!=Math.abs(s.deltaY))&&this.handleWheel(i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(t){let e=1;return t.get("renderer").get("inversed")&&(e=-1),e}_fixWheel(t,e){const i=e-t;return t<0&&(e=(t=0)+i),e>1&&(t=(e=1)-i),[t,e]}_handlePlotDown(t){const e=t.originalEvent;if(2==e.button)return;const i=this.plotContainer;let s=i.toLocal(t.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&e.pointerId&&m.keys(i._downPoints).length>0){const t=this.xAxes.getIndex(0),e=this.yAxes.getIndex(0);t&&(this._downStartX=t.get("start",0),this._downEndX=t.get("end",1)),e&&(this._downStartY=e.get("start",0),this._downEndY=e.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:e.clientX,y:e.clientY};const i=this.get("panX"),s=this.get("panY");i&&this.xAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")})),s&&this.yAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")}));const a="panstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:t.originalEvent})}}_handleWheelAnimation(t){t?t.events.on("stopped",(()=>{this._dispatchWheelAnimation()})):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const t="wheelended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}_handlePlotUp(t){const e=this._downPoint;if(e&&(this.get("panX")||this.get("panY"))){if(t.originalEvent.clientX==e.x&&t.originalEvent.clientY==e.y){const e="pancancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:t.originalEvent})}this._downPoint=void 0,this.xAxes.each((t=>{t._isPanning=!1})),this.yAxes.each((t=>{t._isPanning=!1}))}_handlePlotMove(t){const e=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const i=t.originalEvent.pointerId;if(i&&(this._movePoints[i]=t.point,m.keys(e._downPoints).length>1))return void this._handlePinch()}let i=this._downPoint;if(i){i=e.toLocal(this._root.documentPointToRoot(i));let s=e.toLocal(t.point);const a=this.get("panX"),o=this.get("panY");if(a){let t=this.get("scrollbarX");t&&t.events.disableType("rangechanged"),this.xAxes.each((t=>{if(t.get("panX")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.x-s.x)/e.width();t.get("renderer").get("inversed")&&(n*=-1);let r=a+n,h=o+n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}if(o){let t=this.get("scrollbarY");t&&t.events.disableType("rangechanged"),this.yAxes.each((t=>{if(t.get("panY")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.y-s.y)/e.height();t.get("renderer").get("inversed")&&(n*=-1);let r=a-n,h=o-n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}}}_handlePinch(){const t=this.plotContainer;let e=0,i=[],s=[];if(m.each(t._downPoints,((t,a)=>{i[e]=a;let o=this._movePoints[t];o&&(s[e]=o),e++})),i.length>1&&s.length>1){const e=t.width(),a=t.height();let o=i[0],n=i[1],r=s[0],h=s[1];if(o&&n&&r&&h){if(r=t.toLocal(r),h=t.toLocal(h),o=t.toLocal(o),n=t.toLocal(n),this.get("pinchZoomX")){const t=this._downStartX,i=this._downEndX;if(null!=t&&null!=i){o.x>n.x&&([o,n]=[n,o],[r,h]=[h,r]);let s=t+o.x/e*(i-t),a=t+n.x/e*(i-t),l=t+r.x/e*(i-t),d=t+h.x/e*(i-t),g=Math.max(.001,a-s)/Math.max(.001,d-l),c=t*g+s-l*g,u=i*g+a-d*g;this.xAxes.each((t=>{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}if(this.get("pinchZoomY")){const t=this._downStartY,e=this._downEndY;if(null!=t&&null!=e){o.y{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}}}}_handleCursorPosition(){const t=this.get("cursor");if(t){const e=t.getPrivate("point");let i=t.get("snapToSeries");if(t._downPoint&&(i=void 0),i&&e){const s=t.get("snapToSeriesBy"),a=[];g.each(i,(t=>{if(!t.isHidden()&&!t.isHiding())if("x!"!=s&&"y!"!=s){const e=t.startIndex(),i=t.endIndex();for(let s=e;s{const i=t.get("point");if(i){let a=0;a="x"==s||"x!"==s?Math.abs(e.x-i.x):"y"==s||"y!"==s?Math.abs(e.y-i.y):Math.hypot(e.x-i.x,e.y-i.y),a{const e=t.get("tooltip");e&&e._setDataItem(void 0)})),o){let e=o.component;e.showDataItemTooltip(o),e.setRaw("tooltipDataItem",o);const i=o.get("point");i&&t.handleMove(e.toGlobal({x:i.x-e.x(),y:i.y-e.y()}),!0)}}}}_updateCursor(){let t=this.get("cursor");t&&t.updateCursor()}_addCursor(t){this.plotContainer.children.push(t)}_prepareChildren(){if(super._prepareChildren(),this.series.each((t=>{this._colorize(t)})),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const t=this._prevSettings.cursor,e=this.get("cursor");e!==t&&(this._disposeProperty("cursor"),t&&t.dispose(),e&&(e._setChart(this),this._addCursor(e),this._pushPropertyDisposer("cursor",e.events.on("selectended",(()=>{this._handleCursorSelectEnd()})))),this._prevSettings.cursor=e)}if(this.isDirty("scrollbarX")){const t=this._prevSettings.scrollbarX,e=this.get("scrollbarX");e!==t&&(this._disposeProperty("scrollbarX"),t&&t.dispose(),e&&(e.parent||this.topAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarX",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.xAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarX",e.events.on("released",(()=>{this.xAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.xAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarX=e)}if(this.isDirty("scrollbarY")){const t=this._prevSettings.scrollbarY,e=this.get("scrollbarY");e!==t&&(this._disposeProperty("scrollbarY"),t&&t.dispose(),e&&(e.parent||this.rightAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarY",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.yAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarY",e.events.on("released",(()=>{this.yAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.yAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarY=e)}this._handleZoomOut()}_processSeries(t){super._processSeries(t);const e=t.get("xAxis"),i=t.get("yAxis");g.move(e.series,t),g.move(i.series,t),t._posXDp=t.addDisposer(e.events.on("positionchanged",(()=>{t._fixPosition()}))),t._posXDp=t.addDisposer(i.events.on("positionchanged",(()=>{t._fixPosition()}))),t.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?t.set("baseAxis",i):t.set("baseAxis",e)),t.get("stacked")&&(t._markDirtyKey("stacked"),g.each(t.dataItems,(t=>{t.set("stackToItemY",void 0),t.set("stackToItemX",void 0)}))),t._markDirtyAxes(),i.markDirtyExtremes(),e.markDirtyExtremes(),e._seriesAdded=!0,i._seriesAdded=!0,this._colorize(t)}_colorize(t){const e=this.get("colors");if(e&&null==t.get("fill")){const i=e.next();t._setSoft("stroke",i),t._setSoft("fill",i)}const i=this.get("patterns");if(i&&null==t.get("fillPattern")){const e=i.next();t._setSoft("fillPattern",e)}}_handleCursorSelectEnd(){const t=this.get("cursor"),e=t.get("behavior"),i=t.getPrivate("downPositionX",0),s=t.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,t.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,t.getPrivate("positionY",.5)));this.xAxes.each((t=>{if("zoomX"===e||"zoomXY"===e){let e=t.toAxisPosition(i),s=t.toAxisPosition(a);t.zoom(e,s)}t.setPrivate("updateScrollbar",!0)})),this.yAxes.each((t=>{if("zoomY"===e||"zoomXY"===e){let e=t.toAxisPosition(s),i=t.toAxisPosition(o);t.zoom(e,i)}t.setPrivate("updateScrollbar",!0)}))}_handleScrollbar(t,e,i,s){t.each((t=>{let a=t.fixPosition(e),o=t.fixPosition(i),n=t.zoom(a,o,void 0,s);const r="updateScrollbar";t.setPrivateRaw(r,!1),n?n.events.on("stopped",(()=>{t.setPrivateRaw(r,!0)})):t.setPrivateRaw(r,!0)}))}_processAxis(t,e){return t.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxis(t)}));else if("push"===t.type)e.children.push(t.newValue),t.newValue.processChart(this);else if("setIndex"===t.type)e.children.setIndex(t.index,t.newValue),t.newValue.processChart(this);else if("insertIndex"===t.type)e.children.insertIndex(t.index,t.newValue),t.newValue.processChart(this);else if("removeIndex"===t.type)this._removeAxis(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");e.children.moveValue(t.value,t.newIndex),t.value.processChart(this)}}))}_removeAxis(t){if(!t.isDisposed()){const e=t.parent;e&&e.children.removeValue(t);const i=t.gridContainer,s=i.parent;s&&s.children.removeValue(i);const a=t.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){const t=this.leftAxesContainer.width(),e=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",t),i.set("paddingRight",e);const s=this.topAxesContainer;s.set("paddingLeft",t),s.set("paddingRight",e)}processAxis(t){this.get("cursor")&&(this.addDisposer(t.on("start",(()=>{this._updateCursor()}))),this.addDisposer(t.on("end",(()=>{this._updateCursor()}))))}_handleAxisSelection(t,e){let i=t.fixPosition(t.get("start",0)),s=t.fixPosition(t.get("end",1));if(i>s&&([i,s]=[s,i]),-1!=this.xAxes.indexOf(t)){if(e||t.getPrivate("updateScrollbar")){let t=this.get("scrollbarX");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}}else if(-1!=this.yAxes.indexOf(t)&&(e||t.getPrivate("updateScrollbar"))){let t=this.get("scrollbarY");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let t=this.zoomOutButton;if(t&&t.parent){let e=!1;this.xAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),e?t.isHidden()&&t.show():t.hide()}}inPlot(t){const e=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=e.toGlobal(t);if(t.x>=-.5&&t.y>=-.5&&t.x<=e.width()+.5&&t.y<=e.height()+.5)return!0;if(i)for(let t=i.length-1;t>=0;t--){const e=i[t];if(e!=this){const t=e.plotContainer,i=this._root.rootPointToDocument(s),a=e._root.documentPointToRoot(i),o=t.toLocal(a);if(o.x>=-.1&&o.y>=-.1&&o.x<=t.width()+.1&&o.y<=t.height()+.1)return!0}}return!1}arrangeTooltips(){const t=this.plotContainer,e=t.width(),i=t.height();let s=this.height();const a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=t._display.toGlobal({x:0,y:0}),n=t._display.toGlobal({x:e,y:i});const r=[];let l,d,m=0,p=1/0,_=this._movePoint,x=this.get("maxTooltipDistance"),v=this.get("maxTooltipDistanceBy","xy");c.isNumber(x)&&this.series.each((t=>{if(!t.isHidden()){const e=t.get("tooltip");if(e){let i=e.get("pointTo");if(i){let e=Math.hypot(_.x-i.x,_.y-i.y);"x"==v?e=Math.abs(_.x-i.x):"y"==v&&(e=Math.abs(_.y-i.y)),e{const e=t.get("tooltip");if(e&&!e.get("forceHidden")){let i=!1,s=e.get("pointTo");if(s){if(x>=0){let s=e.get("pointTo");if(s&&d&&t!=l){let t=Math.hypot(d.x-s.x,d.y-s.y);"x"==v?t=Math.abs(d.x-s.x):"y"==v&&(t=Math.abs(d.y-s.y)),t>x&&(i=!0)}}else-1==x&&t!=l&&(i=!0);this.inPlot(this._tooltipToLocal(s))&&e.dataItem?i||(m+=s.y):i=!0,i||t.isHidden()||t.isHiding()?e.hide(0):(e.show(),r.push(e),y.push(t))}}})),this.setPrivate("tooltipSeries",y),this.get("arrangeTooltips")){let t=0,e=0;const a=this._root.tooltipContainer,l=r.length;if(m/l>i/2+o.y){r.sort(((t,e)=>u.HO(e.get("pointTo").y,t.get("pointTo").y)));let i=n.y;if(g.each(r,(s=>{let r=s.height();e++,t+=r;let l=s.get("centerY");l instanceof h.gG&&(r*=l.value),r+=s.get("marginBottom",0),s.set("bounds",{left:o.x,top:o.y,right:n.x,bottom:i}),s.setPrivate("customData",{left:o.x,top:o.y,right:n.x,bottom:i}),i=Math.min(i-r,s._fy-r),s.parent==a&&a.children.moveValue(s,0)})),i<0){r.reverse();let t=i;g.each(r,(s=>{e++;let a=s.get("bounds");if(a){let e=a.top-i,o=a.bottom-i;eu.HO(t.get("pointTo").y,e.get("pointTo").y)));let i=0;if(g.each(r,(r=>{e++;let l=r.height();t+=l;let d=r.get("centerY");d instanceof h.gG&&(l*=d.value),l+=r.get("marginBottom",0),r.set("bounds",{left:o.x,top:i,right:n.x,bottom:Math.max(o.y+s,i+l)}),r.parent==a&&a.children.moveValue(r,0),i=Math.max(i+l,r._fy+l)})),i>s){r.reverse();let t=s;g.each(r,(a=>{e++;let o=a.get("bounds");if(o){let e=o.top-(s-i),n=o.bottom-(s-i);n>t&&(n=t,e=n-a.height()),a.set("bounds",{left:o.left,top:e,right:o.right,bottom:n}),t=n-a.height()-a.get("marginBottom",0)}}))}}0==t&&e>0&&this._disposers.push(this.root.events.once("frameended",(()=>{this.arrangeTooltips()})))}}_tooltipToLocal(t){return this.plotContainer.toLocal(t)}zoomOut(){this.xAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))}))}_dispose(){super._dispose();const t=this.get("cursor");t&&t.dispose()}}x.className="XYChart",x.classNames=n.j.classNames.concat([x.className])},55:function(t,e,i){i.d(e,{l:function(){return u}});var s=i(3409),a=i(6245),o=i(1112),n=i(2754),r=i(3783),h=i(1926),l=i(5040),d=i(751),g=i(256),c=i(5071);class u extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.interfaceColors,e=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:n.U.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:o.Il.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:n.U.new(this._root,{saturation:0})});{const e=i("Graphics",["scrollbar","overlay"]);e.setAll({fillOpacity:.5}),(0,r.v)(e,"fill",t,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:a.AQ,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:a.AQ}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:a.AQ}),i("AxisLabel",["y"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const s=i("Grid",["cursor","x"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use left and right arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const s=i("Grid",["cursor","y"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use up and down arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const e=i("Graphics",["cursor","selection"]);e.setAll({fillOpacity:.15}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:a.CI,centerY:a.CI,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const e=i("AxisRenderer");e.setAll({crisp:!0,strokeOpacity:0}),(0,r.v)(e,"stroke",t,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:a.AQ}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:a.AQ});{const e=i("Rectangle",["axis","thumb","zoomgrip"]);e.setAll({fillOpacity:0}),(0,r.v)(e,"fill",t,"alternativeBackground"),e.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{const e=i("Grid");e.setAll({location:0,strokeOpacity:.15,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}{const e=i("Grid",["minor"]);e.setAll({location:0,strokeOpacity:.07,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{const e=i("Graphics",["axis","fill"]);e.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{const e=i("AxisTick");e.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),(0,r.v)(e,"stroke",t,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(t,e)=>{const i=t.get("axisFill");i&&(l.isNumber(e)&&e%2!=0?i.setPrivate("visible",!1):i.setPrivate("visible",!0))}});const s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],u={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_hour"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month"),year:e.translate("_date_year")},m={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_day"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month")+" "+e.translate("_date_year"),year:e.translate("_date_year")},p={millisecond:e.translate("_date_millisecond_full"),second:e.translate("_date_second_full"),minute:e.translate("_date_minute_full"),hour:e.translate("_date_hour_full"),day:e.translate("_date_day_full"),week:e.translate("_date_week_full"),month:e.translate("_date_month_full"),year:e.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m),tooltipDateFormats:p,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=t.get("endValue"),o=i.intervalDuration(),n=i.getPrivate("baseInterval"),r=i.getPrivate("gridInterval",n);let l=i.getPrivate("min",0);if(l=h.round(new Date(l),r.timeUnit,r.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),null!=s&&null!=a){const t=Math.round(Math.round((s-l)/o))/2;t==Math.round(t)?e.setPrivate("visible",!0):e.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.get("index");let s=!1;l.isNumber(i)&&i%2!=0||(s=!0),e.setPrivate("visible",s)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=i.getPrivate("step");l.isNumber(s)&&l.isNumber(a)&&(d.round(s/a/2,5)==Math.round(s/a/2)?e.setPrivate("visible",!1):e.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(70),height:(0,a.aQ)(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,e/2),t.lineTo(s,e/2)}}});{const e=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,e),t.lineTo(0,e),t.lineTo(0,0)}}});{const e=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(50),height:(0,a.aQ)(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:(0,a.aQ)(80),height:(0,a.aQ)(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const e=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const e=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const e=i("Graphics",["rangegrip","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(2,.5),t.lineTo(2,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),(0,r.v)(e,"stroke",t,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:a.CI}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:a.CI}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:a.AQ}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:a.AQ})}}},3355:function(t,e,i){i.d(e,{L:function(){return c}});var s=i(8777),a=i(6245),o=i(1479),n=i(8943),r=i(5040),h=i(7652),l=i(751),d=i(5071),g=i(256);class c extends s.W{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(n.r.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(n.r.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(o.T.new(this._root,{themeTags:["selection","cursor"],layer:30})),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:a.AQ,height:a.AQ,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout((()=>{this.setPrivate("visible",!0)}),500)),this._disposers.push(this.lineX.events.on("positionchanged",(()=>{this._handleXLine()}))),this._disposers.push(this.lineY.events.on("positionchanged",(()=>{this._handleYLine()}))),this._disposers.push(this.lineX.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineX.events.on("blur",(()=>this._handleLineBlur()))),this._disposers.push(this.lineY.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineY.events.on("blur",(()=>this._handleLineBlur()))),h.supports("keyboardevents")&&this._disposers.push(h.addEventListener(document,"keydown",(t=>{this._handleLineMove(h.getEventKey(t),t.ctrlKey)})))}_setUpTouch(){const t=this.chart;t&&(t.plotContainer._display.cancelTouch="none"!=this.get("behavior"))}_handleXLine(){let t=this.lineX.x(),e=!0;(t<0||t>this.width())&&(e=!1),this.lineX.setPrivate("visible",e)}_handleYLine(){let t=this.lineY.y(),e=!0;(t<0||t>this.height())&&(e=!1),this.lineY.setPrivate("visible",e)}_handleLineMove(t,e){let i="";const s=this.chart;let a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(e&&(o=5),a){let e,s=a.get("renderer").get("inversed",!1);"ArrowRight"==t||"ArrowDown"==t?e=1:"ArrowLeft"==t||"ArrowUp"==t?e=-1:"Tab"==t&&(e=0),null!=e&&(s&&(e*=-1),this.set(i,a.nextPosition(e*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const t=this.get("xAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipX=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateXLine(e)}))))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const t=this.get("yAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipY=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateYLine(e)}))))}}}_handleSyncWith(){const t=this.chart;if(t){const e=this.get("syncWith"),i=[];e&&d.each(e,(t=>{const e=t.chart;e&&i.push(e)})),t._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const t=this.get("positionX"),e=this.get("positionY");null==t&&null==e?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).x,3);this._toX!=e&&(this.lineX.animate({key:"x",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toX=e)}_updateYLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).y,3);this._toY!=e&&(this.lineY.animate({key:"y",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toY=e)}_drawLines(){this.lineX.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,this.height())})),this.lineY.set("draw",(t=>{t.moveTo(0,0),t.lineTo(this.width(),0)}))}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(t){this.chart=t,this._handleSyncWith();const e=t.plotContainer;this.events.on("boundschanged",(()=>{this._disposers.push(this.setTimeout((()=>{this.updateCursor()}),50))})),h.supports("touchevents")&&(this._disposers.push(e.events.on("click",(t=>{h.isTouchEvent(t.originalEvent)&&this._handleMove(t)}))),this._setUpTouch()),this._disposers.push(e.events.on("pointerdown",(t=>{this._handleCursorDown(t)}))),this._disposers.push(e.events.on("globalpointerup",(t=>{this._handleCursorUp(t),t.native||this.isHidden()||this._handleMove(t)}))),this._disposers.push(e.events.on("globalpointermove",(t=>{(this.get("syncWith")||0!=g.keys(e._downPoints).length||t.native||!this.isHidden())&&(this._handleMove(t),Math.hypot(this._lastPoint2.x-t.point.x,this._lastPoint2.y-t.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=t.point))})));const i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(t){const e=this.chart;return!!e&&e.inPlot(t)}_handleCursorDown(t){if(2==t.originalEvent.button)return;const e=t.point;let i=this._display.toLocal(e);const s=this.chart;if(this.selection.set("draw",(()=>{})),s&&this._inPlot(i)){if(this._downPoint=i,"none"!=this.get("behavior")){this.selection.show();const e="selectstarted";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}let e=this._getPosition(i).x,s=this._getPosition(i).y;this.setPrivate("downPositionX",e),this.setPrivate("downPositionY",s)}}_handleCursorUp(t){if(this._downPoint){const e=this.get("behavior","none");if("none"!=e){"z"===e.charAt(0)&&this.selection.hide();const i=t.point;let s=this._display.toLocal(i);const a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let i=!1;if("zoomX"!==e&&"zoomXY"!==e&&"selectX"!==e&&"selectXY"!==e||Math.abs(s.x-a.x)>o&&(i=!0),"zoomY"!==e&&"zoomXY"!==e&&"selectY"!==e&&"selectXY"!==e||Math.abs(s.y-a.y)>o&&(i=!0),i){const e="selectended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}else{const e="selectcancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}}}}this._downPoint=void 0}_handleMove(t){if(this.getPrivate("visible")){const e=this.chart;if(e&&g.keys(e.plotContainer._downPoints).length>1)return void this.set("forceHidden",!0);this.set("forceHidden",!1);const i=t.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,t.originalEvent)}}_getPosition(t){return{x:t.x/this.width(),y:t.y/this.height()}}handleMove(t,e,i){t||(t=this._movePoint);const s=this.get("alwaysShow");if(!t)return void this.hide(0);this._movePoint=t;let a=this._display.toLocal(t),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=t,this.isHidden()&&(this.show(),"z"==this.get("behavior","").charAt(0)&&this.selection.set("draw",(()=>{})));let n=a.x,h=a.y,l=this._getPosition(a);this.setPrivate("point",a);let d=this.get("snapToSeries");this._downPoint&&(d=void 0);let g=this.get("positionX"),c=l.x;r.isNumber(g)&&(c=g);let u=this.get("positionY"),m=l.y;r.isNumber(u)&&(m=u),this.setPrivate("positionX",c),this.setPrivate("positionY",m);const p=this._getPoint(c,m);if(n=p.x,h=p.y,o.xAxes.each((t=>{t._handleCursorPosition(c,d),s&&t.handleCursorShow()})),o.yAxes.each((t=>{t._handleCursorPosition(m,d),s&&t.handleCursorShow()})),!e){o._handleCursorPosition();const e="cursormoved";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,point:t,originalEvent:i})}this._updateLines(n,h),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);const t="cursorhidden";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this._downPoint&&"none"!=this.get("behavior")&&this._updateSelection(a)}_getPoint(t,e){return{x:this.width()*t,y:this.height()*e}}_updateLines(t,e){this._tooltipX||this.lineX.set("x",t),this._tooltipY||this.lineY.set("y",e),this._drawLines()}_updateSelection(t){const e=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();t.x<0&&(t.x=0),t.x>s&&(t.x=s),t.y<0&&(t.y=0),t.y>a&&(t.y=a),e.set("draw",(e=>{const o=this._downPoint;o&&("zoomXY"===i||"selectXY"===i?(e.moveTo(o.x,o.y),e.lineTo(o.x,t.y),e.lineTo(t.x,t.y),e.lineTo(t.x,o.y),e.lineTo(o.x,o.y)):"zoomX"===i||"selectX"===i?(e.moveTo(o.x,0),e.lineTo(o.x,a),e.lineTo(t.x,a),e.lineTo(t.x,0),e.lineTo(o.x,0)):"zoomY"!==i&&"selectY"!==i||(e.moveTo(0,o.y),e.lineTo(s,o.y),e.lineTo(s,t.y),e.lineTo(0,t.y),e.lineTo(0,o.y)))}))}_onHide(){if(this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorHide()})),t.yAxes.each((t=>{t.handleCursorHide()})),t.series.each((t=>{t.handleCursorHide()})))}super._onHide()}_onShow(){if(!this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorShow()})),t.yAxes.each((t=>{t.handleCursorShow()})))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}c.className="XYCursor",c.classNames=s.W.classNames.concat([c.className])},6515:function(t,e,i){i.d(e,{R:function(){return g}});var s=i(9361),a=i(8777),o=i(6245),n=i(7144),r=i(7142),h=i(5071),l=i(5040),d=i(7652);class g extends s.w{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(a.W.new(this._root,{})),this.gridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.topGridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.bulletsContainer=this.children.push(a.W.new(this._root,{isMeasured:!1,width:o.AQ,height:o.AQ,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new n.aV,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(a.W.new(this._root,{themeTags:["axis","header"],position:"absolute",background:r.A.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)h.each(t.oldValues,(t=>{t.dispose()}));else if("push"===t.type)this._processAxisRange(t.newValue,["range"]);else if("setIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("insertIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("removeIndex"===t.type)this.disposeDataItem(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value,["range"])}})));const t=this.get("renderer");t&&(t.axis=this,t.processAxis()),this.children.push(t),this._createGhostLabel()}_createGhostLabel(){const t=this.get("renderer").makeLabel(new s.z(this,void 0,{}),[]);t.adapters.disable("text"),t.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),t.events.disable(),this.ghostLabel=t}_updateFinals(t,e){}zoom(t,e,i,s){if(this.get("zoomable",!0))if(this._updateFinals(t,e),this.get("start")!==t||this.get("end")!=e){let a=this._sAnimation,o=this._eAnimation;t>e&&([t,e]=[e,t]);let n=this.get("maxDeviation",.5)*Math.min(1,e-t);t<-n&&(t=-n),e>1+n&&(e=1+n);let r=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),h=r;l.isNumber(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),1===e&&0!==t&&(s=tthis.get("end",1)?"end":"start");let d=this.get("minZoomCount",0);const g=this.dataItems;g&&g.lengthe&&([t,e]=[e,t]),"start"===s?(c>0&&1/(e-t)r&&(e=t+1/r),e>1&&e-t<1/r&&(t=e-1/r)):(c>0&&1/(e-t)r&&(t=e-1/r),t<0&&e-t<1/r&&(e=t+1/r)),1/(e-t)>r&&(e=t+1/r),1/(e-t)>r&&(t=e-1/r),null!=c&&null!=d&&t==this.get("start")&&e==this.get("end")){const t=this.chart;t&&t._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==t||this.get("start")==t)&&(o&&o.playing&&o.to==e||this.get("end")==e))return;if(i>0){let s,a,o=this.get("interpolationEasing");if(this.get("start")!=t&&(s=this.animate({key:"start",to:t,duration:i,easing:o})),this.get("end")!=e&&(a=this.animate({key:"end",to:e,duration:i,easing:o})),this._sAnimation=s,this._eAnimation=a,s)return s;if(a)return a}else this.set("start",t),this.set("end",e),this.root.events.once("frameended",(()=>{this.markDirtyKey("start")}))}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(t,e){t.setRaw("isRange",!0),this._createAssets(t,e),this._rangesDirty=!0,this._prepareDataItem(t);const i=t.get("above"),s=this.topGridContainer,a=t.get("grid");i&&a&&s.children.moveValue(a);const o=t.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(t,e){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each((t=>{this._prepareDataItem(t)})),h.each(this._seriesAxisRanges,(t=>{this._prepareDataItem(t)}))}_prepareChildren(){super._prepareChildren();const t=this.ghostLabel;if(t&&(this.get("fixAxisSize")?t.set("visible",!0):t.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){const t=this.chart;t&&t._updateCursor();let e=this.get("start",0),i=this.get("end",1),s=this.get("maxDeviation",.5)*Math.min(1,i-e);if(e<-s){let t=e+s;e=-s,this.setRaw("start",e),this.isDirty("end")&&this.setRaw("end",i-t)}if(i>1+s){let t=i-1-s;i=1+s,this.setRaw("end",i),this.isDirty("start")&&this.setRaw("start",e-t)}}const e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){const t=this.get("tooltip");if(t){const i=e.get("themeTags");t.addTag("axis"),t.addTag(this.className.toLowerCase()),t._applyThemes(),i&&(t.set("themeTags",d.mergeTags(t.get("themeTags"),i)),t.label._applyThemes())}}}_updateTooltipBounds(){const t=this.get("tooltip");t&&this.get("renderer").updateTooltipBounds(t)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(t){this.chart=t,this.get("renderer").chart=t,t.gridContainer.children.push(this.gridContainer),t.topGridContainer.children.push(this.topGridContainer),t.axisHeadersContainer.children.push(this.axisHeader),this.on("start",(()=>{t._handleAxisSelection(this)})),this.on("end",(()=>{t._handleAxisSelection(this)})),t.plotContainer.onPrivate("width",(()=>{this.markDirtySize()})),t.plotContainer.onPrivate("height",(()=>{this.markDirtySize()})),t.processAxis(this)}hideDataItem(t){return this._toggleFHDataItem(t,!0),super.hideDataItem(t)}showDataItem(t){return this._toggleFHDataItem(t,!1),super.showDataItem(t)}_toggleFHDataItem(t,e){const i="forceHidden",s=t.get("label");s&&s.set(i,e);const a=t.get("grid");a&&a.set(i,e);const o=t.get("tick");o&&o.set(i,e);const n=t.get("axisFill");n&&n.set(i,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.set(i,e)}}_toggleDataItem(t,e){const i=t.get("label"),s="visible";i&&i.setPrivate(s,e);const a=t.get("grid");a&&a.setPrivate(s,e);const o=t.get("tick");o&&o.setPrivate(s,e);const n=t.get("axisFill");n&&n.setPrivate(s,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.setPrivate(s,e)}}_createAssets(t,e,i){var s,a,o;const n=this.get("renderer");let r="minor";const h=t.get("label");if(h){let a=h.get("themeTags"),o=!1;i?-1==(null==a?void 0:a.indexOf(r))&&(o=!0):-1!=(null==a?void 0:a.indexOf(r))&&(o=!0),o&&(null===(s=h.parent)||void 0===s||s.children.removeValue(h),n.makeLabel(t,e),h.dispose(),n.labels.removeValue(h))}else n.makeLabel(t,e);const l=t.get("grid");if(l){let s=l.get("themeTags"),o=!1;i?-1==(null==s?void 0:s.indexOf(r))&&(o=!0):-1!=(null==s?void 0:s.indexOf(r))&&(o=!0),o&&(null===(a=l.parent)||void 0===a||a.children.removeValue(l),n.makeGrid(t,e),l.dispose(),n.grid.removeValue(l))}else n.makeGrid(t,e);const d=t.get("tick");if(d){let s=!1,a=d.get("themeTags");i?-1==(null==a?void 0:a.indexOf(r))&&(s=!0):-1!=(null==a?void 0:a.indexOf(r))&&(s=!0),s&&(null===(o=d.parent)||void 0===o||o.children.removeValue(d),n.makeTick(t,e),d.dispose(),n.ticks.removeValue(d))}else n.makeTick(t,e);i||t.get("axisFill")?i&&!t.get("axisFill")&&this.get("minorAxisFillsEnabled")&&n.makeAxisFill(t,e):n.makeAxisFill(t,e),this._processBullet(t)}_processBullet(t){let e=t.get("bullet"),i=this.get("bullet");if(e||!i||t.get("isRange")||(e=i(this._root,this,t)),e){e.axis=this;const i=e.get("sprite");i&&(i._setDataItem(t),t.setRaw("bullet",e),i.parent||this.bulletsContainer.children.push(i))}}_afterChanged(){super._afterChanged();const t=this.chart;t&&(t._updateChartLayout(),t.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(t){super.disposeDataItem(t);const e=this.get("renderer"),i=t.get("label");i&&(e.labels.removeValue(i),i.dispose());const s=t.get("tick");s&&(e.ticks.removeValue(s),s.dispose());const a=t.get("grid");a&&(e.grid.removeValue(a),a.dispose());const o=t.get("axisFill");o&&(e.axisFills.removeValue(o),o.dispose());const n=t.get("bullet");n&&n.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const t=this.ghostLabel;if(t){if(!t.isHidden()){const e=t.localBounds(),i=Math.ceil(e.right-e.left);let s=t.get("text");h.each(this.dataItems,(t=>{const e=t.get("label");if(e&&!e.isHidden()){const t=e.localBounds();Math.ceil(t.right-t.left)>i&&(s=e.text._getText())}})),t.set("text",s)}let e=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(t,e+.5*(i-e))}}_handleCursorPosition(t,e){t=this.get("renderer").toAxisPosition(t),this._cursorPosition=t,this._snapToSeries=e,this.updateTooltip()}updateTooltip(){const t=this._snapToSeries;let e=this._cursorPosition;const i=this.get("tooltip"),s=this.get("renderer");l.isNumber(e)&&(h.each(this.series,(i=>{if(i.get("baseAxis")===this){const s=this.getSeriesItem(i,e,this.get("tooltipLocation"));t&&-1!=t.indexOf(i)?(i.updateLegendMarker(s),i.updateLegendValue(s),i._settings.tooltipDataItem=s):(i.showDataItemTooltip(s),i.setRaw("tooltipDataItem",s))}})),this.get("snapTooltip")&&(e=this.roundAxisPosition(e,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",e),i&&(s.updateTooltipBounds(i),l.isNaN(e)?i.hide(0):(this._updateTooltipText(i,e),s.positionTooltip(i,e),ethis.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}roundAxisPosition(t,e){return t}_handleSeriesRemoved(){}handleCursorShow(){let t=this.get("tooltip");t&&t.show()}handleCursorHide(){let t=this.get("tooltip");t&&t.hide()}processSeriesDataItem(t,e){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(t){const e=this.get("renderer");return e.toAxisPosition(t/e.axisLength())}toAxisPosition(t){return this.get("renderer").toAxisPosition(t)}toGlobalPosition(t){return this.get("renderer").toGlobalPosition(t)}fixPosition(t){return this.get("renderer").fixPosition(t)}shouldGap(t,e,i,s){return!1}createAxisRange(t){return this.axisRanges.push(t)}_groupSeriesData(t){}getCellWidthPosition(){return.05}}g.className="Axis",g.classNames=s.w.classNames.concat([g.className])},2586:function(t,e,i){i.d(e,{_:function(){return o}});var s=i(6331),a=i(256);class o extends s.JH{_beforeChanged(){super._beforeChanged();const t=this.get("sprite");if(this.isDirty("sprite")&&t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t)),this.isDirty("location")){const e=t.dataItem;this.axis&&t&&e&&this.axis._prepareDataItem(e)}}_dispose(){const t=this.axis;t&&a.each(t._bullets,((e,i)=>{i.uid==this.uid&&delete t._bullets[e]})),super._dispose()}}o.className="AxisBullet",o.classNames=s.JH.classNames.concat([o.className])},6293:function(t,e,i){i.d(e,{k:function(){return a}});var s=i(962);class a extends s._{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabel",a.classNames=s._.classNames.concat([a.className])},9084:function(t,e,i){i.d(e,{p:function(){return a}});var s=i(815);class a extends s.x{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabelRadial",a.classNames=s.x.classNames.concat([a.className])},6275:function(t,e,i){i.d(e,{Y:function(){return d}});var s=i(1479),a=i(5769),o=i(7144),n=i(4714),r=i(8943),h=i(6293),l=i(7652);class d extends s.T{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new o.o(a.YS.new({}),(()=>n.T._new(this._root,{themeTags:l.mergeTags(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template])))),this.grid=this.addDisposer(new o.o(a.YS.new({}),(()=>r.r._new(this._root,{themeTags:l.mergeTags(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template])))),this.axisFills=this.addDisposer(new o.o(a.YS.new({}),(()=>s.T._new(this._root,{themeTags:l.mergeTags(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template])))),this.labels=this.addDisposer(new o.o(a.YS.new({}),(()=>h.k._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template]))))}makeTick(t,e){const i=this.ticks.make();return i._setDataItem(t),t.setRaw("tick",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(t,e){const i=this.grid.make();return i._setDataItem(t),t.setRaw("grid",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(t,e){const i=this.axisFills.make();return i._setDataItem(t),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),t.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(t,e){const i=this.labels.make();return i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),t.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(t),t.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const t=this.thumb;t&&(this._disposers.push(t.events.on("pointerdown",(t=>{this._handleThumbDown(t)}))),this._disposers.push(t.events.on("globalpointerup",(t=>{this._handleThumbUp(t)}))),this._disposers.push(t.events.on("globalpointermove",(t=>{this._handleThumbMove(t)}))))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",(()=>{this.axis.markDirtySize()}))}_changed(){if(super._changed(),this.isDirty("pan")){const t=this.thumb;if(t){const e=this.axis.labelsContainer,i=this.get("pan");"zoom"==i?e.children.push(t):"none"==i&&e.children.removeValue(t)}}}_handleThumbDown(t){this._thumbDownPoint=this.toLocal(t.point);const e=this.axis;this._downStart=e.get("start"),this._downEnd=e.get("end")}_handleThumbUp(t){this._thumbDownPoint=void 0}_handleThumbMove(t){const e=this._thumbDownPoint;if(e){const i=this.toLocal(t.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,e)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(t,e){return 0}positionToCoordinate(t){return this._inversed?(this._end-t)*this._axisLength:(t-this._start)*this._axisLength}updateTooltipBounds(t){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t*=i-e,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,t/(i-e)}fixPosition(t){return this.get("inversed")?1-t:t}_updateLC(){}toggleVisibility(t,e,i,s){let a=this.axis;const o=a.get("start",0),n=a.get("end",1);eo+(n-o)*(s+1e-4)?t.setPrivate("visible",!1):t.setPrivate("visible",!0)}_positionTooltip(t,e){const i=this.chart;i&&(t.set("pointTo",this._display.toGlobal(e)),i.inPlot(e)||t.hide())}processAxis(){}}d.className="AxisRenderer",d.classNames=s.T.classNames.concat([d.className])},6284:function(t,e,i){i.d(e,{n:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{width:a.AQ,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const t=this.grid.template;t.set("height",a.AQ),t.set("width",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)}))}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("x",-1e3));const s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){const i=this.chart,o=e.children;if(this.get(a)?e.addTag(a):e.removeTag(a),i){if(this.get(s)){const t=i.topAxesContainer.children;-1==t.indexOf(e)&&t.insertIndex(0,e),e.addTag(s),o.moveValue(this)}else{const t=i.bottomAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(s),o.moveValue(this,0)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(t,e){return(e.x-t.x)/this.width()}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,(t=t/(i-e)*this._lc)+this._ls}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerWidth();this._lc=this.axisLength()/i,this._ls=(t.x()-e.get("paddingLeft",0))/i}}_updatePositions(){const t=this.axis,e=t.x()-r.relativeToValue(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0);t.gridContainer.set("x",e),t.topGridContainer.set("x",e),t.bulletsContainer.set("y",this.y());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginLeft",0),o=t.x()-a;const n=t.parent;n&&(o-=n.get("paddingLeft",0)),s.children.length>0?(a=t.axisHeader.width(),t.set("marginLeft",a+1)):s.set("width",a),s.setAll({x:o,y:-1,height:e.height()+2})}}processAxis(){super.processAxis();const t=this.axis;null==t.get("width")&&t.set("width",a.AQ);const e=this._root.verticalLayout;t.set("layout",e),t.labelsContainer.set("width",a.AQ),t.axisHeader.setAll({layout:e})}axisLength(){return this.axis.width()}positionToPoint(t){return{x:this.positionToCoordinate(t),y:0}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e));let r=t.get("length",0);const h=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("y",a.AQ),h||(r*=-1)):(t.set("y",0),h&&(r*=-1)),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,r)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateLabel(t,e,i,s){if(t){let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(e)||(e=0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?r?(t.set("position","absolute"),t.set("y",0)):(t.set("position","relative"),t.set("y",a.AQ)):r?(t.set("y",0),t.set("position","absolute")):(t.set("y",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=-1;if(this.get("opposite")&&(h=1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("y",t.y()+t.height()*h)}else s.set("y",0);this.axis._bullets[o]=t,s.set("x",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.height(),a=this.width();ia||i<0||(t.moveTo(e,0),t.lineTo(i,0),t.lineTo(i,s),t.lineTo(e,s),t.lineTo(e,0))}))}positionTooltip(t,e){this._positionTooltip(t,{x:this.positionToCoordinate(e),y:0})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,n=this.axisLength(),h=i,l="up";this.get("opposite")?e?(l="up",o=s.y,h=i):(l="down",o=s.y-i,h=i):e?(l="down",o=s.y-i,h=i):(l="up",o=s.y,h=i);const d={left:a,right:a+n,top:o,bottom:o+h},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}}h.className="AxisRendererX",h.classNames=s.Y.classNames.concat([h.className])},7909:function(t,e,i){i.d(e,{j:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{height:a.AQ,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const t=this.grid.template;t.set("width",a.AQ),t.set("height",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())}))}_getPan(t,e){return(t.y-e.y)/this.height()}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("y",-1e3));const s=this.thumb,a="opposite",o="inside",n=this.chart;if(this.isDirty(a)||this.isDirty(o)){const i=e.children;if(this.get(o)?e.addTag(o):e.removeTag(o),n){if(this.get(a)){const t=n.rightAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e,0),e.addTag(a),i.moveValue(this,0)}else{const t=n.leftAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(a),i.moveValue(this)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}const r=e.labelsContainer.width();n&&(this.get(a)?s.set("centerX",0):s.set("centerX",r)),s.setPrivate("width",r)}processAxis(){super.processAxis();const t=this.axis;null==t.get("height")&&t.set("height",a.AQ);const e=this._root.horizontalLayout;t.set("layout",e),t.labelsContainer.set("height",a.AQ),t.axisHeader.set("layout",e)}_updatePositions(){const t=this.axis,e=t.y()-r.relativeToValue(t.get("centerY",0),t.height());t.gridContainer.set("y",e),t.topGridContainer.set("y",e),t.bulletsContainer.set("x",this.x());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginTop",0);s.children.length>0?(a=t.axisHeader.height(),t.set("marginTop",a+1)):s.set("height",a),s.setAll({y:t.y()-a,x:-1,width:e.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(t){return{x:0,y:this.positionToCoordinate(t)}}updateLabel(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a);const o=this.get("opposite"),r=t.get("inside",this.get("inside",!1));o?(t.set("x",0),r?t.set("position","absolute"):t.set("position","relative")):r?(t.set("x",0),t.set("position","absolute")):(t.set("x",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e));let o=t.get("length",0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("x",0),r&&(o*=-1)):r||(o*=-1),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(o,0)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=1;if(this.get("opposite")&&(h=-1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("x",t.x()+t.width()*h)}else s.set("x",0);this.axis._bullets[o]=t,s.set("y",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.width(),a=this.height();ia||i<0||(t.moveTo(0,e),t.lineTo(s,e),t.lineTo(s,i),t.lineTo(0,i),t.lineTo(0,e))}))}positionToCoordinate(t){return this._inversed?(t-this._start)*this._axisLength:(this._end-t)*this._axisLength}positionTooltip(t,e){this._positionTooltip(t,{x:0,y:this.positionToCoordinate(e)})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,n=this.axisLength(),h=i,l="right";this.get("opposite")?e?(l="right",o=s.x-i,h=i):(l="left",o=s.x,h=i):e?(l="left",o=s.x,h=i):(l="right",o=s.x-i,h=i);const d={left:o,right:o+h,top:a,bottom:a+n},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerHeight();this._lc=this.axisLength()/i,this._ls=t.y()/i}}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?e+t:i-t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t-=e:t=i-t,(t=t/(i-e)*this._lc)+this._ls}fixPosition(t){return this.get("inversed")?t:1-t}}h.className="AxisRendererY",h.classNames=s.Y.classNames.concat([h.className])},4714:function(t,e,i){i.d(e,{T:function(){return a}});var s=i(2438);class a extends s.d{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisTick",a.classNames=s.d.classNames.concat([a.className])},7497:function(t,e,i){i.d(e,{$:function(){return d}});var s=i(6515),a=i(2132),o=i(7261),n=i(5071),r=i(5040),h=i(751),l=i(7652);class d extends s.R{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();const t=this.dataItems.length;t>0&&this.setPrivateRaw("maxZoomFactor",t),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),t)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",t),1))}_prepareChildren(){super._prepareChildren();const t=this.dataItems.length;let e=0;this._valuesDirty&&(this._itemMap={},n.each(this.dataItems,(t=>{t.setRaw("index",e),this._itemMap[t.get("category")]=t,e++})),this.setPrivateRaw("maxZoomFactor",t));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){const t=this.dataItems.length;if(t>1){let e=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0);const n=this._sAnimation,r=this._eAnimation;let h=this.get("start",0),l=!1;n&&!n.stopped&&(h=Number(n.to),l=!0);let d=this.get("end",1);if(r&&!r.stopped&&(d=Number(r.to),l=!0),l){const t=this._getIndices(h,d);a=t.startIndex,o=t.endIndex}for(let t=a;t=i));s++);if(e=0&&(e+=this.dataItems[t].get("finalCellSize",1),a=t,!(e>=i));t--);this.zoomToIndexes(a,o)}else if(s>=e){let t=s;for(let i=o-1;i>=a;i--)if(t-=this.dataItems[i].get("finalCellSize",1),t<=e){o=i+1;break}this.zoomToIndexes(a,o)}}}_handleRangeChange(){n.each(this.series,(t=>{let e=this.dataItems[this.startIndex()].get("category"),i=this.dataItems[this.endIndex()-1].get("category"),s=t.get("baseAxis"),a=t.get("xAxis"),r=t.get("yAxis");if(a instanceof d&&r instanceof d)t._markDirtyAxes();else if(s===this){let h,l,g=r;if(a===s?(t.get("categoryXField")&&(h="categoryX"),t.get("openCategoryXField")&&(l="openCategoryX")):r===s&&(t.get("categoryYField")&&(h="categoryY"),t.get("openCategoryYField")&&(l="openCategoryY"),g=a),g instanceof o.m&&(h||l)){let c,u;function m(t,e,i,s,a,o){let n,r=e.categoryToIndex(a);for(;!n&&r>=0&&r=0;e--){let o=t.dataItems[e];if(i&&o.get(i)===a){n=o;break}if(s&&o.get(s)===a){n=o;break}}else for(let e=0,o=t.dataItems.length;e{null!=y.get(t)&&(x=!0)})),n.each(t.__valueYShowFields,(t=>{null!=y.get(t)&&(x=!0)})),x)break}t.setPrivate("outOfSelection",!x)}t._markDirtyAxes()}}))}_prepareAxisItems(){var t;const e=this.get("renderer"),i=this.dataItems.length;let s=this.startIndex();s>0&&s--;let a=this.endIndex();a=s&&(t=s-1,e=1),r.isNumber(e)||(e=.5),!r.isNumber(t))return 0;let o=this.get("startLocation",0),h=this.get("endLocation",1);if(this.get("cellSizeField")){let s=i?"finalCellSize":"cellSize";const r=this.dataItems;let l=0;n.each(this.dataItems,(t=>{l+=t.get(s,1)})),l-=o*r[0].get(s,1),l-=(1-h)*r[r.length-1].get(s,1);let d=0;for(let e=0;e{const e=t.get("cellSize",1);s.push(e),i+=e}));let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=t*i+a,h=0;for(let t=0;t0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(e),a=t.dataItems[s],o=this.dataItems[s],n=o.get("category");if(a&&o&&a.get(i)===n)return a;for(let e=0,s=t.dataItems.length;e{r+=t.get(o,1)})),r-=this.get("startLocation",0)*h[0].get(o,1),r-=(1-this.get("endLocation",1))*h[h.length-1].get(o,1);let l=0;for(let e=0;eMath.round(t*r)){s=e;break}for(let t=s+1;t=Math.round(e*r)){a=t+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(t,e,i){let s=this.dataItems.length;this.get("cellSizeField")?(t=Math.min(Math.max(t,0),s),e=Math.max(Math.min(e,s),1),this.setPrivateRaw("startIndex",t),this.setPrivateRaw("endIndex",e),this.zoom(this.indexToPosition(t,0,!0),this.indexToPosition(e,0,!0),i)):this.zoom(t/s,e/s,i)}zoomToCategories(t,e,i){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(t){null==t&&(t=1),"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);const e=this.getPrivate("tooltipPosition",0),i=h.fitToRange(this.axisPositionToIndex(e)+t,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}}d.className="CategoryAxis",d.classNames=s.R.classNames.concat([d.className])},5638:function(t,e,i){i.d(e,{S:function(){return c}});var s=i(9361),a=i(7261),o=i(5040),n=i(751),r=i(3540),h=i(5071),l=i(256),d=i(7652),g=i(1926);class c extends a.m{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=d.mergeTags(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",(()=>{this._setBaseInterval(this.get("baseInterval"))}))}_setBaseInterval(t){this.setPrivateRaw("baseInterval",t),this._baseDuration=g.getIntervalDuration(t)}_fixZoomFactor(){const t=this.get("maxZoomFactor");null!=t&&t!=1/0?this.setPrivateRaw("maxZoomFactor",t):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){this._fixZoomFactor();const t=this.getPrivate("groupInterval");if(t?this._setBaseInterval(t):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let t=this.get("groupInterval");t&&(this.setRaw("groupIntervals",[t]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))h.each(this.series,(t=>{this._groupSeriesData(t)})),this._handleRangeChange();else{let t=this.get("baseInterval"),e=t.timeUnit+t.count;h.each(this.series,(t=>{t.setDataSet(e),t.resetGrouping()})),this._setBaseInterval(t),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(t){if(this.get("groupData")&&!t.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let e=[],i=this.baseMainDuration(),a=this.get("groupIntervals");h.each(a,(t=>{g.getIntervalDuration(t)>i&&e.push(t)})),t._dataSets={};const n=this.getPrivate("name")+this.get("renderer").getPrivate("letter");let r;const d=t.get("baseAxis");t.get("xAxis")===d?r=t._valueYFields:t.get("yAxis")===d&&(r=t._valueXFields);let c=t._mainDataItems,u=this.get("baseInterval"),m=u.timeUnit+u.count;t._dataSets[m]=c;const p=t.get("groupDataCallback");let _=t.get("groupDataWithOriginals",!1);p&&(_=!0),h.each(e,(e=>{let i,a=-1/0,d=e.timeUnit+e.count;t._dataSets[d]=[];let u={},m={},x={},v={};h.each(r,(e=>{u[e]=0,m[e]=0,x[e]=t.get(e+"Grouped"),v[e]=e+"Working"}));let y,f,b=g.getDuration(e.timeUnit);c[0]&&(y=c[0].get(n)),h.each(c,(c=>{let D,P=c.get(n),w=g.roun(P,e.timeUnit,e.count,this._root,y);a{let e=c.get(t);o.isNumber(e)?(i.setRaw(t,e),i.setRaw(v[t],e),m[t]=1,u[t]=e):(u[t]=0,m[t]=0)})),_&&i.set("originals",[c]),p&&f&&p(f,e),f=i):(h.each(r,(t=>{let e=x[t],s=c.get(t);if(null!=s){let a=i.get(t);switch(e){case"close":i.setRaw(t,s);break;case"sum":i.setRaw(t,a+s);break;case"open":break;case"low":sa&&i.setRaw(t,s);break;case"average":m[t]++,u[t]+=s;let e=u[t]/m[t];i.setRaw(t,e);break;case"extreme":Math.abs(s)>Math.abs(a)&&i.setRaw(t,s)}i.setRaw(v[t],i.get(t));let o=l.copy(c.dataContext);o[n]=w,i.dataContext=o}})),_&&i.get("originals").push(c)),a=w})),p&&f&&p(f,e)})),t._dataSetId&&t.setDataSet(t._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",(()=>{this.markDirtySize()}))}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(t){let e=this.get("baseInterval"),i=g.chooseInterval(0,t,this.get("groupCount",1/0),this.get("groupIntervals"));return g.getIntervalDuration(i){e.get("baseAxis")===this&&e.setDataSet(t)})),this.markDirtyExtremes(),this._root.events.once("frameended",(()=>{this._root.events.once("frameended",(()=>{const t="groupintervalchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}))}))}}h.each(this.series,(i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),a=h.getFirstSortedIndex(i.dataItems,(e=>r.qu(e.get(s),t))).index;a>0&&(a-=1),e+=this._baseDuration*(1-this.get("endLocation",1));let o=h.getSortedIndex(i.dataItems,(t=>r.qu(t.get(s),e))).index,n=o;n>1&&n--;const l=i.dataItems[a],d=i.dataItems[n];let g,c;l&&(c=l.get(s)),d&&(g=d.get(s));let u=!1;null!=g&&null!=c&&(ge)&&(u=!0),i.setPrivate("outOfSelection",u),i.setPrivate("startIndex",a);let m=i._adjustStartIndex(a);i.getPrivate("adjustedStartIndex")!==m&&(i.setPrivate("adjustedStartIndex",m),this.root.events.once("frameended",(()=>{i._markDirtyPrivateKey("adjustedStartIndex")}))),i.setPrivate("endIndex",o)}}))}}_adjustMinMax(t,e,i,s){return{min:t,max:e,step:(e-t)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(t,e){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=t,this._intervalMax[s]=e}_getM(t){return"day"==t||"month"==t||"year"==t?1.05:1.01}_getMinorInterval(t){var e;let i,s=t.count,a=t.timeUnit;return s>1&&(10==s||15==s?s=5:12==s?s=2:6==s?s=1:30==s?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),"week"==a&&(i="week"!=(null===(e=this.getPrivate("baseInterval"))||void 0===e?void 0:e.timeUnit)?{timeUnit:"day",count:1}:{timeUnit:"week",count:1}),"year"==a&&1==s&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<1264896e5&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){const e=this._root,i=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),n=this.get("renderer"),r=this.getPrivate("baseInterval");let l=i,d=0;const c=this.get("gridIntervals");let u=g.chooseInterval(0,a-i,n.gridCount(),c);g.getIntervalDuration(u){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_updateFinals(t,e){this.setPrivateRaw("selectionMinFinal",this.positionToValue(t)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(e))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(t,e){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return g.getIntervalDuration(this.get("baseInterval"))}processSeriesDataItem(t,e){const i=this.getPrivate("baseInterval");t.open||(t.open={}),t.close||(t.close={}),h.each(e,(e=>{let s=t.get(e);if(o.isNumber(s)){let a=t.open[e],o=t.close[e];if(s>=a&&s<=o);else{const n=i.timeUnit,r=i.count;a=g.roun(s,n,r,this._root),o=a+g.getDuration(n,r*this._getM(n)),o=g.roun(o,n,1,this._root),t.open[e]=a,t.close[e]=o}this._updateDates(a,t.component)}}))}_handleSizeDirty(){}getDataItemPositionX(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}roundAxisPosition(t,e){let i=this.positionToValue(t);i-=(e-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!o.isNaN(i)){const t=this._root.locale.firstDayOfWeek,a=s.timeUnit,o=this._root.utc,n=this._root.timezone,r=s.count;i=g.roun(i,a,r,this._root,this.getPrivate("min",0));let h=g.getDateIntervalDuration(s,new Date(i),t,o,n);return n&&(i=g.roun(i+.05*this._baseDuration,a,r,this._root,this.getPrivate("min",0)),h=g.getDateIntervalDuration(s,new Date(i+h*e),t,o,n)),this.valueToPosition(i+h*e)}return NaN}getTooltipText(t,e){if(null!=this.getPrivate("min")){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(t);if(o.isNumber(s)){let t=new Date(s),a=this.getPrivate("baseInterval"),o=g.getDateIntervalDuration(a,t,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return!1!==e&&(t=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*o)),this._root.dateFormatter.format(t,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(t,e,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);null==i&&(i=.5),o-=(i-.5)*this._baseDuration;const n=h.getSortedIndex(t.dataItems,(t=>{let e=0;return t.open&&(e=t.open[a]),r.qu(e,o)}));if(s||t.get("snapTooltip")){let e=t.dataItems[n.index-1],i=t.dataItems[n.index];if(e&&i&&e.open&&i.close){let t=e.open[a],s=i.close[a];if(Math.abs(o-t)>Math.abs(o-s))return i}if(e)return e;if(i)return i}else{const e=t.dataItems[n.index-1];if(e&&e.open&&e.close){let t=e.open[a],i=e.close[a];if(o>=t&&o<=i)return e}}}shouldGap(t,e,i,s){const a=t.get(s);return e.get(s)-a>this._baseDuration*i}zoomToDates(t,e,i){this.zoomToValues(t.getTime(),e.getTime(),i)}zoomToValues(t,e,i){const s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(null!=this.getPrivate("min")&&null!=this.getPrivate("max"))if(this.get("groupData")){const s=this.getGroupInterval(e-t),a=this.get("baseInterval");let o=this.getIntervalMin(a),n=this.getIntervalMax(a)-1;n=g.roun(n,s.timeUnit,s.count,this.root),n+=this._getM(s.timeUnit)*g.getIntervalDuration(s),n=g.roun(n,s.timeUnit,s.count,this.root);let r=g.roun(o,s.timeUnit,s.count,this.root),h=g.roun(n,s.timeUnit,s.count,this.root),l=(t-r)/(h-r),d=(e-r)/(h-r);this.zoom(l,d,i)}else this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}positionToDate(t){return new Date(this.positionToValue(t))}dateToPosition(t){return this.valueToPosition(t.getTime())}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return o.isNumber(t)&&o.isNumber(e)?this._intervalDuration/(t-e):.05}nextPosition(t){null==t&&(t=1);let e=this.get("tooltipLocation",.5)*this._baseDuration;"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0));const s=this.getPrivate("baseInterval");let a=this._nextTime(i,t,s),o=this.getPrivate("selectionMin",0),r=this.getPrivate("selectionMax",0),h=g.roun(o,s.timeUnit,s.count,this._root),l=g.roun(r,s.timeUnit,s.count,this._root);return a+=e,a=n.fitToRange(a,h+e,l-e),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(t,e,i){return g.roun(t+e*this._baseDuration,i.timeUnit,i.count,this._root)}}c.className="DateAxis",c.classNames=a.m.classNames.concat([c.className])},7109:function(t,e,i){i.d(e,{L:function(){return a}});var s=i(6691);class a extends s.Y{constructor(){super(...arguments),this._tickPoints=[]}}a.className="EditableAxisLabel",a.classNames=s.Y.classNames.concat([a.className])},8701:function(t,e,i){i.d(e,{J:function(){return d}});var s=i(5638),a=i(9361),o=i(5071),n=i(3540),r=i(1926),h=i(5040),l=i(751);class d extends s.S{constructor(){super(...arguments),this._frequency=1,this._m=0,this._dates=[]}_afterNew(){this.valueFields.push("date"),this.addTag("gapless"),super._afterNew()}_getDates(){return this._customDates?this._customDates:this._dates}_updateDates(t,e){if(!e.get("ignoreMinMax")){const e=this._getDates(),i=o.getSortedIndex(e,(e=>n.qu(e,t)));i.found||o.insertIndex(e,i.index,t)}}_updateAllDates(){if(!this._customDates){const t=this._dates;t.length=0,o.each(this.series,(t=>{let e="valueX";t.get("yAxis")==this&&(e="valueY"),o.each(t.dataItems,(i=>{let s=i.get(e);h.isNumber(s)&&i.open&&this._updateDates(i.open[e],t)}))}));const e=this.get("extraMax",0),i=this.get("extraMin",0);let s=t.length;const a=this.getPrivate("baseInterval"),n=a.count,l=a.timeUnit;if(e>0){const i=s*e;let a=t[s-1];if(h.isNumber(a))for(let e=s-1;e0){const e=s*i;let a=t[0];if(h.isNumber(a))for(let i=0;in.qu(e,t)));let h=r.index;if(r.found)return(h-i)/a;{h>0&&(h-=1);let s=e[h];const o=e[h+1];if(o){let e=o;Math.abs(e-t)n.qu(e,t)));let s=i.index;return i.found||s>0&&(s-=1),s}positionToValue(t){const e=this.get("startLocation",0),i=this.get("endLocation",1),s=this._getDates();let a=Math.round(s.length-e-(1-i)),o=t*a,n=Math.floor(o);return n<0&&(n=0),n>a-1&&(n=a-1),s[n]+(o-n+e)*this._baseDuration}_fixZoomFactor(){this.setPrivateRaw("maxZoomFactor",this._getDates().length-this.get("startLocation",0)-(1-this.get("endLocation",1)))}zoomToDates(t,e,i){const s=this._getDates(),a=s.length;let r=o.getSortedIndex(s,(e=>n.qu(e,t.getTime()))),h=s[Math.min(r.index,a-1)];r=o.getSortedIndex(s,(t=>n.qu(t,e.getTime())));let l=s[r.index];r.index>=a&&(l=s[a-1]+this._baseDuration),this.zoomToValues(h,l,i)}zoomToValues(t,e,i){const s=this.getPrivate("min",0),a=this.getPrivate("max",0);t=l.fitToRange(t,s,a),e=l.fitToRange(e,s,a),this.zoom(this.valueToPosition(t),this.valueToPosition(e),i)}_prepareAxisItems(){let t=this.getPrivate("selectionMin",0),e=this.getPrivate("selectionMax",0);if(h.isNumber(t)&&h.isNumber(e)){this._seriesValuesDirty&&(this._seriesValuesDirty=!1,this._updateAllDates());const i=this._root,s=i.utc,n=i.timezone,l=this._getDates(),d=this.get("renderer"),g=l.length,c=this._baseDuration;let u=this.valueToIndex(t);u>0&&u--;let m=this.valueToIndex(e);m{this._toggleDataItem(t,!1)})),o.each(this.minorDataItems,(t=>{this._toggleDataItem(t,!1)}));let x=e-t-((e-t)/c-(m-u))*c,v=r.chooseInterval(0,x,p,this.get("gridIntervals"));const y=this.getPrivate("baseInterval");let f=r.getIntervalDuration(v);f0){let t=0;this._m=0;let e=w-10*f;const g=r.getNextUnit(b);if(I){let t=l[C[0]];this._addMinorGrid(t-f,t,k,I)}let c=d.axisLength()/d.gridCount()*.5;o.each(C,(o=>{var u;let m;this.dataItems.length1||"week"==v.timeUnit){let e=r.roun(p,t,1,i)+r.getDuration(t,this._getM(t)),s=this.valueToIndex(e);if(e=l[s],e==p){let t=l[s+1];t?e=t:e+=k}m.setRaw("labelEndValue",e)}w=1}if(this._prepareDataItem(m,w),P&&M&&"X"==d.getPrivate("letter")){let t=M.get("label");if(t&&P.x()-t.x(){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_pickWorse(t,e,i){const s=i.timeUnit,a=t.get("value",0),o=e.get("value",0);return"hour"==s&&new Date(a).getDate()!=new Date(o).getDate()?t:e}_addMinorGrid(t,e,i,s){const n=this.get("minorDateFormats",this.get("dateFormats")),h=s.timeUnit;let l=t+r.getDuration(h,this._getM(h));l=r.roun(l,h,1,this._root);let d=e-.5*i,g=this._getIndexes(l,d,s,l);const c=this._getDates();o.each(g,(t=>{let e;this.minorDataItems.length=x-2*_&&o.move(a,e),u=0),t+=p,t=r.roun(t,n,1,g);else{if(i=t){e=s;break}o.move(a,e),t+=_,t=r.roun(t,n,h,g)}if(t==m&&(t+=_+p,t=r.roun(t,n,h,g)),t==m)break;m=t}return a}_hasDate(t){return o.getSortedIndex(this._getDates(),(e=>n.HO(e,t))).found}_nextTime(t,e,i){let s=l.fitToRange(this.valueToIndex(t)+e,0,this._dates.length-1);return this._dates[s]}}d.className="GaplessDateAxis",d.classNames=s.S.classNames.concat([d.className])},8943:function(t,e,i){i.d(e,{r:function(){return a}});var s=i(1479);class a extends s.T{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}a.className="Grid",a.classNames=s.T.classNames.concat([a.className])},7261:function(t,e,i){i.d(e,{m:function(){return d}});var s=i(9361),a=i(6515),o=i(7449),n=i(5040),r=i(5071),h=i(751),l=i(7652);class d extends a.R{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var t;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let t=this.get("syncWithAxis");t&&(this._syncDp=new o.FV([t.onPrivate("selectionMinFinal",(()=>{this._dirtySelectionExtremes=!0})),t.onPrivate("selectionMaxFinal",(()=>{this._dirtySelectionExtremes=!0}))]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,null===(t=this.ghostLabel)||void 0===t||t.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){const t=this.chart;let e=!1;if(t){const i=this.get("renderer").getPrivate("letter");"Y"==i?t.xAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)})):"X"==i&&t.yAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)}))}e&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,this.getPrivate("selectionMinFinal")==this.getPrivate("selectionMin")&&this.getPrivate("selectionMaxFinal")==this.getPrivate("selectionMax")||(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(t){const e=this.get("numberFormat"),i=this.getNumberFormatter();let s="";return s=e?i.format(t,e):i.format(t,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(n.isNumber(t)&&n.isNumber(e)){const e=this.get("logarithmic"),i=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+i;let l=a-i,d=1,g=t;if(e){if(l=this._minLogAdjusted,l2&&(l=Math.pow(10,Math.log(g)*Math.LOG10E-50))}const c=this.get("renderer"),u=c.get("minorLabelsEnabled"),m=c.get("minorGridEnabled",u);let p=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));const _=Math.round(i/p);let x=2;h.round(_/5,10)%1==0&&(x=5),h.round(_/10,10)%1==0&&(x=10);let v=i/x,y=0,f=0,b=-1/0;const D=this.get("renderer").gridCount();for(;l2){const t=Math.max(1,D),e=Math.max(1,Math.ceil(d/t)),i=Math.log(g)*Math.LOG10E+(y+1)*e-50;o=Math.pow(10,i)}else o+=i;else o+=i;if(m){let t=l+v;for(e&&(d>2&&(v=this._adjustMinMax(l,o,10).step),t=l+v);t{t.inited&&t._markDirtyAxes()})),this._updateGhost()}}_prepareDataItem(t,e){let i=this.get("renderer"),s=t.get("value"),a=t.get("endValue"),o=this.valueToPosition(s),r=o,h=this.valueToPosition(s+this.getPrivate("step"));n.isNumber(a)&&(r=this.valueToPosition(a),h=r),t.get("isRange")&&null==a&&(h=o);let l=r,d=t.get("labelEndValue");null!=d&&(l=this.valueToPosition(d)),i.updateLabel(t.get("label"),o,l,e);const g=t.get("grid");if(i.updateGrid(g,o,r),g&&(s==this.get("baseValue",0)?(g.addTag("base"),g._applyThemes()):g.hasTag("base")&&(g.removeTag("base"),g._applyThemes())),i.updateTick(t.get("tick"),o,l,e),i.updateFill(t.get("axisFill"),o,h),this._processBullet(t),i.updateBullet(t.get("bullet"),o,r),!t.get("isRange")){const e=this.get("fillRule");e&&e(t)}}_handleRangeChange(){let t=this.positionToValue(this.get("start",0)),e=this.positionToValue(this.get("end",1));const i=this.get("renderer").gridCount();let s=this._adjustMinMax(t,e,i,!0),a=l.decimalPlaces(s.step);this.setPrivateRaw("stepDecimalPlaces",a),t=h.round(t,a),e=h.round(e,a),s=this._adjustMinMax(t,e,i,!0);let o=s.step;t=s.min,e=s.max,this.getPrivate("selectionMin")===t&&this.getPrivate("selectionMax")===e&&this.getPrivate("step")===o||(this.setPrivateRaw("selectionMin",t),this.setPrivateRaw("selectionMax",e),this.setPrivateRaw("step",o))}positionToValue(t){const e=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(t*(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)+Math.log(e)*Math.LOG10E)/Math.LOG10E):t*(i-e)+e}valueToPosition(t){const e=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}valueToFinalPosition(t){const e=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}getX(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getY(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionX(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemX")?a*s+t.component.getStackedXValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemY")?a*s+t.component.getStackedYValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const t=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),e=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let i=this.get("baseValue",0);return ie&&(i=e),i}cellEndValue(t){return t}fixSmallStep(t){return 1+t===1?(t*=2,this.fixSmallStep(t)):t}_fixMin(t){return t}_fixMax(t){return t}_calculateTotals(){if(this.get("calculateTotals")){let t=this.series[0];if(t){let e=t.startIndex();if(t.dataItems.length>0){e>0&&e--;let i,s,a=t.endIndex();a{if(!i.get("excludeFromTotal")){let r=i.dataItems[t];if(r){let t=r.get(o)*i.get(s);n.isNaN(t)||(e+=t,a+=Math.abs(t))}}})),r.each(this.series,(r=>{if(!r.get("excludeFromTotal")){let h=r.dataItems[t];if(h){let t=h.get(o)*r.get(s);if(!n.isNaN(t)){h.set(i+"Total",a),h.set(i+"Sum",e);let s=t/a*100;0==a&&(s=0),h.set(i+"TotalPercent",s)}}}}))}}}}}_getSelectionMinMax(){const t=this.getPrivate("minFinal"),e=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max");let a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2));const l=this.get("renderer").gridCount(),d=this.get("strictMinMaxSelection");let g=this.get("strictMinMax");if(n.isNumber(t)&&n.isNumber(e)){let c=e,u=t;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,i;const s=t.getPrivate("outOfSelection");if(t.get("xAxis")===this){if(!s){let s=t.getPrivate("minX"),a=t.getPrivate("maxX");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinX",s),i=t.getPrivate("selectionMaxX",a)}}else if(t.get("yAxis")===this&&!s){let s=t.getPrivate("minY"),a=t.getPrivate("maxY");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinY",s),i=t.getPrivate("selectionMaxY",a)}t.isHidden()||t.isShowing()||(n.isNumber(e)&&(c=Math.min(c,e)),n.isNumber(i)&&(u=Math.max(u,i)))}})),this.axisRanges.each((t=>{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(c=Math.min(c,e),u=Math.max(u,e)),e=t.get("endValue"),null!=e&&(c=Math.min(c,e),u=Math.max(u,e))}})),c>u&&([c,u]=[u,c]),n.isNumber(i)?c=g?i:t:g&&n.isNumber(this._minReal)&&(c=this._minReal),n.isNumber(s)?u=g?s:e:g&&n.isNumber(this._maxReal)&&(u=this._maxReal),c===u){let e=c;if(c-=this._deltaMinMax,u+=this._deltaMinMax,ce&&(x.max=e),c=x.min,u=x.max),g&&(n.isNumber(i)&&(c=Math.max(c,i)),n.isNumber(s)&&(u=Math.min(u,s))),d&&(c=m-(p-m)*a,u=p+(p-m)*o),g){c=n.isNumber(i)?i:m,u=n.isNumber(s)?s:p,u-c<=1e-8&&(c-=this._deltaMinMax,u+=this._deltaMinMax);let t=u-c;c-=t*a,u+=t*o}this.get("logarithmic")&&(c<=0&&(c=m*(1-Math.min(a,.99))),ce&&(u=e));let y=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),f=h.round(this.valueToFinalPosition(c),y),b=h.round(this.valueToFinalPosition(u),y);this.setPrivateRaw("selectionMinFinal",c),this.setPrivateRaw("selectionMaxFinal",u),this.setPrivateRaw("selectionStepFinal",x.step),this.zoom(f,b)}}_getMinMax(){let t=this.get("min"),e=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2)));let l=1/0;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,a;if(t.get("xAxis")===this?(e=t.getPrivate("minX"),a=t.getPrivate("maxX")):t.get("yAxis")===this&&(e=t.getPrivate("minY"),a=t.getPrivate("maxY")),n.isNumber(e)&&n.isNumber(a)){i=Math.min(i,e),s=Math.max(s,a);let t=a-e;t<=0&&(t=Math.abs(a/100)),t{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(i=Math.min(i,e),s=Math.max(s,e)),e=t.get("endValue"),null!=e&&(i=Math.min(i,e),s=Math.max(s,e))}})),this.get("logarithmic")){let t=this.get("treatZeroAs");n.isNumber(t)&&i<=0&&(i=t),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(0===i&&0===s&&(s=.9,i=-.9),n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e),i===1/0||s===-1/0)return this.setPrivate("minFinal",void 0),void this.setPrivate("maxFinal",void 0);i>s&&([i,s]=[s,i]);const d=i,g=s;let c=this.adapters.fold("min",i),u=this.adapters.fold("max",s);this._minRealLog=i,n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!=0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&d>=0&&(i=0),s>0&&g<=0&&(s=0)),this._minReal=i,this._maxReal=s;let m=this.get("strictMinMax"),p=this.get("strictMinMaxSelection",!1);p&&(m=p);let _=m;n.isNumber(e)&&(_=!0);let x=this.get("renderer").gridCount(),v=this._adjustMinMax(i,s,x,_);if(i=v.min,s=v.max,v=this._adjustMinMax(i,s,x,!0),i=v.min,s=v.max,m){i=n.isNumber(t)?t:this._minReal,s=n.isNumber(e)?e:this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let r=s-i;i-=r*a,s+=r*o}c=this.adapters.fold("min",i),u=this.adapters.fold("max",s),n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),l==1/0&&(l=s-i);let y=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=h.round(i,y),s=h.round(s,y);const f=this.get("syncWithAxis");if(f&&(v=this._syncAxes(i,s,v.step,f.getPrivate("minFinal",f.getPrivate("min",0)),f.getPrivate("maxFinal",f.getPrivate("max",1)),f.getPrivate("step",1)),i=v.min,s=v.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/l*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=d*(1-Math.min(a,.99)))),n.isNumber(i)&&n.isNumber(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);const t=this.get("interpolationDuration",0),e=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:t,easing:e}),this.animatePrivate({key:"max",to:s,duration:t,easing:e})}}_fixZoomFactor(){}_getDelta(t){let e=Math.log(Math.abs(t))*Math.LOG10E,i=Math.pow(10,Math.floor(e));i/=10,this._deltaMinMax=i}_saveMinMax(t,e){}_adjustMinMax(t,e,i,s){i<=1&&(i=1),i=Math.round(i);let a=t,o=e,r=e-t;0===r&&(r=Math.abs(e));let l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l));d/=10;let g=d;s&&(g=0),s?(t=Math.floor(t/d)*d,e=Math.ceil(e/d)*d):(t=Math.ceil(t/d)*d-g,e=Math.floor(e/d)*d+g),t<0&&a>=0&&(t=0),e>0&&o<=0&&(e=0),l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l)),d/=100;let c=Math.ceil(r/i/d)*d,u=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),m=Math.ceil(c/u);m>5?m=10:m<=5&&m>2&&(m=5),c=Math.ceil(c/(u*m))*u*m;let p=this.get("maxPrecision");if(n.isNumber(p)){let t=h.ceil(c,p);pa&&(t-=c),c=this.fixSmallStep(c),{min:t,max:e,step:c}}getTooltipText(t,e){const i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,n=h.round(this.positionToValue(t),o);return i?s.format(n,i):s.format(n,void 0,o)}getSeriesItem(t,e){let i,s,a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);if(r.each(t.dataItems,((t,e)=>{const n=Math.abs(t.get(a)-o);(void 0===i||n500&&(s=!0),s)t=n,e=h,i=d;else{a/3==Math.round(a/3)?(n=t-o*a,t>=0&&n<0&&(n=0)):(h=e+o*a,h<=0&&h>0&&(h=0));let i=this._adjustMinMax(n,h,l,!0);n=i.min,h=i.max,d=i.step}}}return{min:t,max:e,step:i}}_checkSync(t,e,i,s){let a=(e-t)/i;for(let t=1;t{if(t instanceof l){const e=t.get("stacked");e&&0==h&&n++,!e&&t.get("clustered")&&n++}t===this&&(o=n-1),h++})),this.get("clustered")||(o=0,n=1),0===n&&(n=1,o=0);const d="cellStartLocation",g="cellEndLocation",c=this._xRenderer.get(d,0),u=this._xRenderer.get(g,1),m=this._yRenderer.get(d,0),p=this._yRenderer.get(g,1);if(this._aLocationX0=c+o/n*(u-c),this._aLocationX1=c+(o+1)/n*(u-c),this._aLocationY0=m+o/n*(p-m),this._aLocationY1=m+(o+1)/n*(p-m),e.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){const t=this.dataItems.length;let a=Math.max(0,this.startIndex()-2),o=Math.min(this.endIndex()+2,t-1);for(let t=0;t0&&a>0)for(let e=t-1;e>=0;e--){let t=this.dataItems[e];if(null!=t.get("valueX")&&null!=t.get("valueY")){n=t;break}}break}this._toggleColumn(e,!1)}this._beforeColumnsDraw();let r=0;i.isType("CategoryAxis")&&e.isType("CategoryAxis")?r=2:e===s?r=0:i===s&&(r=1);for(let t=a;t<=o;t++){let e=this.dataItems[t];this._updateGraphics(e,n,r),null!=e.get("valueX")&&null!=e.get("valueY")&&(n=e)}this._afterColumnsDraw();for(let e=o+1;e{const a=e.get(s,this.get(s));t.set(s,a),i.set(s,a)}))}}let s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.dispose()})),s=[],t.setRaw("rangeGraphics",s),this.axisRanges.each((e=>{const i=e.container,a=this._makeGraphics(e.columns,t);s&&s.push(a),a.setPrivate("list",e.columns),i.children.push(a)}))}}createAxisRange(t){return r.each(this.dataItems,(t=>{const e=t.get("graphics");e&&(e.dispose(),t.set("graphics",void 0))})),super.createAxisRange(t)}_updateGraphics(t,e,i){let s=t.get("graphics");const a=this._xField,n=this._yField,l=t.get(a),d=t.get(n),g=this.get("exactLocationX",!1);if(null!=l&&null!=d){const l=this._xOpenField,d=this._yOpenField,c=this.get("locationX",t.get("locationX",.5)),u=this.get("locationY",t.get("locationY",.5)),m=this.get("openLocationX",t.get("openLocationX",c)),p=this.get("openLocationY",t.get("openLocationY",u)),_=s.get("width"),x=s.get("height"),v=this.get("stacked"),y=this.get("xAxis"),f=this.get("yAxis"),b=y.get("start"),D=y.get("end"),P=f.get("start"),w=f.get("end");let T,A,I,M,k=this.get("vcy",1),C=this.get("vcx",1),S=!1,Y=!1;if(0==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C,g),A=y.getDataItemPositionX(t,a,i,C,g),I=f.getDataItemPositionY(t,n,u,k),this._yOpenField!==this._yField)M=f.getDataItemPositionY(t,d,p,k);else if(v){let e=t.get("stackToItemY");M=e?f.getDataItemPositionY(e,n,p,e.component.get("vcy")):f.basePosition()}else M=f.basePosition();t.setRaw("point",{x:T+(A-T)/2,y:I}),Y=!0}else if(1==i){let e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5;if(x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}if(I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),A=y.getDataItemPositionX(t,a,c,C,g),this._xOpenField!==this._xField)T=y.getDataItemPositionX(t,l,m,C,g);else if(v){let e=t.get("stackToItemX");T=e?y.getDataItemPositionX(e,a,m,e.component.get("vcx"),g):y.basePosition()}else T=y.basePosition();S=!0,t.setRaw("point",{x:A,y:I+(M-I)/2})}else if(2==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C),A=y.getDataItemPositionX(t,a,i,C),e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5,x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),t.setRaw("point",{x:T+(A-T)/2,y:I+(M-I)/2})}this._applyGraphicsStates(t,e),this._updateSeriesGraphics(t,s,T,A,I,M,S,Y),TD&&A>D||I=w&&M>w||h.isNaN(T)||h.isNaN(I)?this._toggleColumn(t,!1):this._toggleColumn(t,!0);let F=t.get("rangeGraphics");F&&r.each(F,(e=>{this._updateSeriesGraphics(t,e,T,A,I,M,S,Y)}))}else this._toggleColumn(t,!1)}_updateSeriesGraphics(t,e,i,s,a,o,n,r){const l=e.get("width"),d=e.get("height"),g=e.get("maxWidth"),c=e.get("maxHeight"),u=this.getPoint(i,a),m=this.getPoint(s,o),p=t.get("point");if(p){const t=this.getPoint(p.x,p.y);p.x=t.x+this._x,p.y=t.y+this._y}if(i=u.x,s=m.x,a=u.y,o=m.y,h.isNumber(l)){const t=(s-i-l)/2;i+=t,s-=t}if(h.isNumber(g)&&g{this._toggleColumn(t,!1)}))}_applyGraphicsStates(t,e){const i=t.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),n=i.states.lookup("riseFromPrevious");if(s||o||a||n){const i=this.get("xAxis"),r=this.get("yAxis"),l=this.get("baseAxis");let d,g,c;l===i&&r.isType("ValueAxis")?(d=t.get(this._yOpenField),g=t.get(this._yField),c=e.get(this._yField)):l===r&&i.isType("ValueAxis")&&(d=t.get(this._xOpenField),g=t.get(this._xField),c=e.get(this._xField)),h.isNumber(d)&&h.isNumber(g)&&(g{const e=t.getPrivate("list");e&&e.removeValue(t),t.dispose()}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.hide(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.hide(e))})),yield Promise.all(s)}))}_toggleColumn(t,e){const i=t.get("graphics");i&&i.setPrivate("visible",e);const s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.setPrivate("visible",e)}));const a=t.bullets;a&&r.each(a,(t=>{t.setPrivate("hidden",!e)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.show(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.show(e))})),yield Promise.all(s)}))}updateLegendMarker(t){let e=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!t){const e=this.dataItems[this.endIndex()-1];e&&(t=e)}if(e){let i=this.columns.template;if(t){let e=t.get("graphics");e&&(i=e)}const s=e.get("markerRectangle");if(s&&!e.get("itemContainer").get("disabled")){const t=s.states.lookup("default");r.each(n.u,(e=>{const a=i.get(e,this.get(e));s.set(e,a),t.set(e,a)}))}}}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget"))return super._getTooltipTarget(t);return t.get("graphics")||this}}l.className="BaseColumnSeries",l.classNames=a.o.classNames.concat([l.className])},2976:function(t,e,i){i.d(e,{j:function(){return a}});var s=i(3497);class a extends s.c{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();const t=this._display;t.moveTo(this.get("lowX0",0),this.get("lowY0",0)),t.lineTo(this.get("lowX1",0),this.get("lowY1",0)),t.moveTo(this.get("highX0",0),this.get("highY0",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0))}}a.className="Candlestick",a.classNames=s.c.classNames.concat([a.className])},2312:function(t,e,i){i.d(e,{$:function(){return l}});var s=i(62),a=i(2976),o=i(5769),n=i(7144),r=i(7652),h=i(5071);class l extends s.d{constructor(){super(...arguments),this.columns=this.addDisposer(new n.o(o.YS.new({themeTags:["autocolor"]}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_updateGraphics(t,e,i){super._updateGraphics(t,e,i);const s=this.getRaw("xAxis"),a=this.getRaw("yAxis");let o,n,r,h,l,d,g,c,u,m=this.get("vcy",1),p=this.get("vcx",1),_=this.get("locationX",t.get("locationX",.5)),x=this.get("locationY",t.get("locationY",.5)),v=this.get("openLocationX",t.get("openLocationX",_)),y=this.get("openLocationY",t.get("openLocationY",x));if(0==i){let e=a.getDataItemPositionY(t,this._yOpenField,1,m),i=a.getDataItemPositionY(t,this._yField,1,m);h=a.getDataItemPositionY(t,this._yLowField,1,m),c=a.getDataItemPositionY(t,this._yHighField,1,m),g=Math.max(e,i),r=Math.min(e,i);let x=this._aLocationX0+v-.5,y=this._aLocationX1+_-.5;o=s.getDataItemPositionX(t,this._xField,x+(y-x)/2,p),n=o,l=o,d=o,u="vertical"}else{let e=s.getDataItemPositionX(t,this._xOpenField,1,p),i=s.getDataItemPositionX(t,this._xField,1,p);n=s.getDataItemPositionX(t,this._xLowField,1,p),d=s.getDataItemPositionX(t,this._xHighField,1,p),l=Math.max(e,i),o=Math.min(e,i);let _=this._aLocationY0+y-.5,v=this._aLocationY1+x-.5;r=a.getDataItemPositionY(t,this._yField,_+(v-_)/2,m),h=r,g=r,c=r,u="horizontal"}this._updateCandleGraphics(t,o,n,r,h,l,d,g,c,u)}_updateCandleGraphics(t,e,i,s,a,o,n,r,l,d){let g=t.get("graphics");if(g){let c=this.getPoint(e,s),u=this.getPoint(i,a),m=this.getPoint(o,r),p=this.getPoint(n,l);if(this.get("turboMode")){const t=this.allColumnsData[this.allColumnsData.length-1];t.lowX0=c.x,t.lowY0=c.y,t.lowX1=u.x,t.lowY1=u.y,t.highX0=m.x,t.highY0=m.y,t.highX1=p.x,t.highY1=p.y}else{let e=g.x(),i=g.y();g.set("lowX0",c.x-e),g.set("lowY0",c.y-i),g.set("lowX1",u.x-e),g.set("lowY1",u.y-i),g.set("highX0",m.x-e),g.set("highY0",m.y-i),g.set("highX1",p.x-e),g.set("highY1",p.y-i),g.set("orientation",d);let s=t.get("rangeGraphics");s&&h.each(s,(t=>{t.set("lowX0",c.x-e),t.set("lowY0",c.y-i),t.set("lowX1",u.x-e),t.set("lowY1",u.y-i),t.set("highX0",m.x-e),t.set("highY0",m.y-i),t.set("highX1",p.x-e),t.set("highY1",p.y-i),t.set("orientation",d)}))}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),h.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity,g=e.lowX0,c=e.lowY0,u=e.lowX1,m=e.lowY1,p=e.highX0,_=e.highY0,x=e.highX1,v=e.highY1;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.moveTo(g,c),t.lineTo(u,m),t.moveTo(p,_),t.lineTo(x,v),t.endStroke(),t.endFill()}))}))}_processAxisRange(t){super._processAxisRange(t),t.columns=new n.o(o.YS.new({}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(t.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,t.columns.template])))}}l.className="CandlestickSeries",l.classNames=s.d.classNames.concat([l.className])},62:function(t,e,i){i.d(e,{d:function(){return d}});var s=i(757),a=i(5769),o=i(7144),n=i(3497),r=i(1479),h=i(7652),l=i(5071);class d extends s.d{constructor(){super(...arguments),this.allColumns=this.children.push(r.T.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(t.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,t.columns.template])))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),l.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.endStroke(),t.endFill()}))}))}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(t,e,i,s,a,o,n,r){if(this.get("turboMode")){e.virtualParent=this.chart,e.parent&&(this.mainContainer.children.removeValue(e),e._parent=void 0);const n=e.get("stroke"),r=e.get("fillOpacity",1),h=e.get("strokeOpacity",1),l=e.get("strokeWidth",1),d=e.get("fill"),g=this.getPoint(i,a),c=this.getPoint(s,o),u=t.get("point");if(u){const t=this.getPoint(u.x,u.y);u.x=t.x+this._x,u.y=t.y+this._y}i=g.x,s=c.x,a=g.y,o=c.y,t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:n,fill:d,strokeWidth:l,strokeOpacity:h,fillOpacity:r})}else e.parent||this.mainContainer.children.push(e),super._updateSeriesGraphics(t,e,i,s,a,o,n,r)}}d.className="ColumnSeries",d.classNames=s.d.classNames.concat([d.className])},2338:function(t,e,i){i.d(e,{e:function(){return p}});var s=i(4604),a=i(1479),o=i(774),n=i(3794),r=i(5769),h=i(7144),l=i(1112),d=i(9361),g=i(7142),c=i(5040),u=i(5071),m=i(7652);class p extends s.o{constructor(){super(...arguments),this._strokeGenerator=(0,o.Z)(),this._fillGenerator=(0,n.Z)(),this.strokes=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template])))),this.fills=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template])))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0((function(t){return t[3]})),this._fillGenerator.x0((function(t){return t[2]})),this._fillGenerator.y1((function(t){return t[1]})),this._fillGenerator.x1((function(t){return t[0]})),super._afterNew()}makeStroke(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}makeFill(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let t=this.get("xAxis"),e=this.get("yAxis");if(this.isDirty("stroke")){const t=this.get("stroke");this.strokes.template.set("stroke",t);const e=this._legendStroke;e&&e.states.lookup("default").set("stroke",t)}if(this.isDirty("fill")){const t=this.get("fill");this.fills.template.set("fill",t);const e=this._legendFill;e&&e.states.lookup("default").set("fill",t)}if(this.isDirty("fillPattern")){const t=this.get("fillPattern");this.fills.template.set("fillPattern",t);const e=this._legendFill;e&&e.states.lookup("default").set("fillPattern",t)}if(this.isDirty("curveFactory")){const t=this.get("curveFactory");t&&(this._strokeGenerator.curve(t),this._fillGenerator.curve(t))}if(t.inited&&e.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){const t=this.dataItems;this.fills.each((t=>{t.setPrivate("visible",!1)})),this.strokes.each((t=>{t.setPrivate("visible",!1)})),this.axisRanges.each((t=>{let e=t.fills;e&&e.each((t=>{t.setPrivate("visible",!1)}));let i=t.strokes;i&&i.each((t=>{t.setPrivate("visible",!1)}))}));let e=this.startIndex(),i=this.strokes.template.get("templateField"),s=this.fills.template.get("templateField"),a=!0,o=!0;i&&(a=!1),s&&(o=!1);for(let n=e-1;n>=0;n--){let r=t[n],h=!0,l=r.dataContext;if(i&&l[i]&&(a=!0),s&&l[s]&&(o=!0),u.each(this._valueFields,(t=>{c.isNumber(r.get(t))||(h=!1)})),h&&a&&o){e=n;break}}let n=t.length,r=this.endIndex();if(r{c.isNumber(i.get(t))||(s=!1)})),s){r=e+1;break}}}if(e>0&&e--,this._endIndex=r,this._clearGraphics(),this._sindex=0,this._dindex=e,1==n)this._startSegment(0);else for(;this._dindex{t.fills.clear(),t.strokes.clear()}))}_startSegment(t){const e=this.dataItems;let i=this._endIndex,s=i;const a=this.get("autoGapCount"),o=this.get("connect"),n=this.makeFill(this.fills),h=this._fillTemplate,l=this.fills.template;h&&h!=l&&(n.template=h),n.setPrivate("visible",!0);const d=this.makeStroke(this.strokes),g=this._strokeTemplate;g&&g!=this.strokes.template&&(d.template=g),d.setPrivate("visible",!0);let c=this.get("xAxis"),u=this.get("yAxis"),m=this.get("baseAxis"),p=this.get("vcx",1),_=this.get("vcy",1),x=this._xField,v=this._yField,y=this._xOpenField,f=this._yOpenField;const b=this.get("openValueXField"),D=this.get("openValueYField");b||(y=this._xField),D||(f=this._yField);const P=this.get("stacked"),w=c.basePosition(),T=u.basePosition();let A;A=m===u?this._yField:this._xField;const I=[];let M=[];I.push(M);const k=this.strokes.template.get("templateField"),C=this.fills.template.get("templateField");let S=this.get("locationX",.5),Y=this.get("locationY",.5),F=this.get("openLocationX",S),X=this.get("openLocationY",Y);const L=this.get("minDistance",0);let N,R=this.fills.template.get("visible");this.axisRanges.length>0&&(R=!0);let V=!1;(P||b||D)&&(V=!0);const G={points:M,segments:I,stacked:P,getOpen:V,basePosX:w,basePosY:T,fillVisible:R,xField:x,yField:v,xOpenField:y,yOpenField:f,vcx:p,vcy:_,baseAxis:m,xAxis:c,yAxis:u,locationX:S,locationY:Y,openLocationX:F,openLocationY:X,minDistance:L};let O=this._strokeTemplate,E=this._fillTemplate;for(N=t;Nt){s=N;break}O=e,d.template=e}}if(C){let e=i.dataContext[C];if(e){if(e instanceof r.YS||(e=r.YS.new(e)),this._fillTemplate=e,N>t){s=N;break}E=e,n.template=e}}if(!o){let t=e[N+1];t&&m.shouldGap(i,t,a,A)&&(M=[],I.push(M),G.points=M)}}n.setRaw("userData",[t,N]),d.setRaw("userData",[t,N]),N===i&&this._endLine(M,I[0][0]),d&&this._drawStroke(d,I),n&&this._drawFill(n,I),this.axisRanges.each((e=>{const i=e.container,s=e.fills,a=this.makeFill(s);i&&i.children.push(a),a.setPrivate("visible",!0),this._drawFill(a,I);const o=e.strokes,n=this.makeStroke(o);i&&i.children.push(n),O&&O!=this.strokes.template&&(n.template=O),E&&E!=this.fills.template&&(a.template=E),n.setPrivate("visible",!0),this._drawStroke(n,I),a.setRaw("userData",[t,N]),n.setRaw("userData",[t,N])}))}_getPoints(t,e){let i=e.points,s=t.get("locationX",e.locationX),a=t.get("locationY",e.locationY);const o=this.get("exactLocationX",!1),n=this.get("exactLocationY",!1);let r=e.xAxis.getDataItemPositionX(t,e.xField,s,e.vcx,o),h=e.yAxis.getDataItemPositionY(t,e.yField,a,e.vcy,n);if(this._shouldInclude(r)){const s=this.getPoint(r,h),a=[s.x,s.y];if(s.x+=this._x,s.y+=this._y,t.set("point",s),e.fillVisible){let i=r,s=h;if(e.baseAxis===e.xAxis?s=e.basePosY:e.baseAxis===e.yAxis&&(i=e.basePosX),e.getOpen){let a=t.get(e.xOpenField),r=t.get(e.yOpenField);if(null!=a&&null!=r){let a=t.get("openLocationX",e.openLocationX),r=t.get("openLocationY",e.openLocationY);if(e.stacked){let h=t.get("stackToItemX"),l=t.get("stackToItemY");h?(i=e.xAxis.getDataItemPositionX(h,e.xField,a,h.component.get("vcx"),o),c.isNaN(i)&&(i=e.basePosX)):i=e.yAxis===e.baseAxis?e.basePosX:e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),l?(s=e.yAxis.getDataItemPositionY(l,e.yField,r,l.component.get("vcy"),n),c.isNaN(s)&&(s=e.basePosY)):s=e.xAxis===e.baseAxis?e.basePosY:e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),s=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}}let l=this.getPoint(i,s);a[2]=l.x,a[3]=l.y}if(e.minDistance>0){const t=a[0],s=a[1],o=a[2],n=a[3],r=this._previousPoint,h=r[0],l=r[1],d=r[2],g=r[3];(Math.hypot(t-h,s-l)>e.minDistance||o&&n&&Math.hypot(o-d,n-g)>e.minDistance)&&(i.push(a),this._previousPoint=a)}else i.push(a)}}_endLine(t,e){}_drawStroke(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._strokeGenerator.context(t),this._strokeGenerator(e)}))}))}_drawFill(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._fillGenerator.context(t),this._fillGenerator(e)}))}))}_processAxisRange(t){super._processAxisRange(t),t.fills=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,t.fills.template]))),t.strokes=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,t.strokes.template])))}createLegendMarker(t){const e=this.get("legendDataItem");if(e){const t=e.get("marker"),i=e.get("markerRectangle");i&&i.setPrivate("visible",!1),t.set("background",g.A.new(t._root,{fillOpacity:0,fill:(0,l.$_)(0)}));const s=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=s;const o=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;const n=this._root.interfaceColors.get("disabled");if(s.states.create("disabled",{fill:n,stroke:n}),o.states.create("disabled",{fill:n,stroke:n}),this.bullets.length>0){const e=this.bullets.getIndex(0);if(e){const i=e(t._root,this,new d.z(this,{legend:!0},{}));if(i){const e=i.get("sprite");e instanceof a.T&&e.states.create("disabled",{fill:n,stroke:n}),e&&(e.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),t.children.push(e),e.setAll({x:t.width()/2,y:t.height()/2}),t.events.on("boundschanged",(()=>{e.setAll({x:t.width()/2,y:t.height()/2})})))}}}}}}p.className="LineSeries",p.classNames=s.o.classNames.concat([p.className])},4604:function(t,e,i){i.d(e,{o:function(){return u}});var s=i(7582),a=i(9361),o=i(3399),n=i(7144),r=i(8777),h=i(1479),l=i(5040),d=i(256),g=i(5071),c=i(7652);class u extends o.F{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(r.W.new(this._root,{})),this.axisRanges=new n.aV,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new a.z(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");const t=this.get("xAxis");t&&(this._xRenderer=t.get("renderer"));const e=this.get("yAxis");e&&(this._yRenderer=e.get("renderer")),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxisRange(t)}));else if("push"===t.type)this._processAxisRange(t.newValue);else if("setIndex"===t.type)this._processAxisRange(t.newValue);else if("insertIndex"===t.type)this._processAxisRange(t.newValue);else if("removeIndex"===t.type)this._removeAxisRange(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value)}}))),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this.onPrivate("endIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this._makeFieldNames()}_processAxisRange(t){const e=r.W.new(this._root,{});t.container=e,this.children.push(e),t.series=this;const i=t.axisDataItem;i.setRaw("isRange",!0);const s=i.component;if(s){s._processAxisRange(i,["range","series"]);const t=i.get("bullet");if(t){const e=t.get("sprite");e&&e.setPrivate("visible",!1)}const a=i.get("axisFill");a&&e.set("mask",a),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),d.each(this._dataSets,((t,e)=>{g.each(e,(t=>{t.dispose()})),e.length=0}))}_removeAxisRange(t){const e=t.axisDataItem,i=e.component;e.dispose(),g.remove(i._seriesAxisRanges,e);const s=t.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&g.each(this.valueXFields,(t=>{if(this.get(t+"Field")){this._valueXFields.push(t);let e=this.get(t+"Show");this.__valueXShowFields.push(e),-1!=e.indexOf("Working")?this._valueXShowFields.push(e.split("Working")[0]):this._valueXShowFields.push(e)}})),this.valueYFields&&g.each(this.valueYFields,(t=>{if(this.get(t+"Field")){this._valueYFields.push(t);let e=this.get(t+"Show");this.__valueYShowFields.push(e),-1!=e.indexOf("Working")?this._valueYShowFields.push(e.split("Working")[0]):this._valueYShowFields.push(e)}}))}_dispose(){super._dispose(),this._bullets={};const t=this.chart;t&&t.series.removeValue(this),g.removeFirst(this.get("xAxis").series,this),g.removeFirst(this.get("yAxis").series,this)}_min(t,e){let i=(a=e,null==(s=this.getPrivate(t))?a:null==a?s:aa?s:a);var s,a;this.setPrivate(t,i)}_shouldMakeBullet(t){const e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!e.inited||!i.inited)return!1;const a=this.get("minBulletDistance",0);if(a>0){let t=this.startIndex(),o=this.endIndex()-t;if(e==s){if(this._xRenderer.axisLength()/o
{g.each(this._valueXShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedXValue(i,t)),this._min("minX",e),this._max("maxX",e))})),g.each(this._valueYShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedYValue(i,t)),this._min("minY",e),this._max("maxY",e))})),t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)})),t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&t.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&e.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(t._groupSeriesData(this),e._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let s=this.startIndex(),a=this.endIndex(),o=this.get("minBulletDistance",0);if(o>0&&i&&(i.get("renderer").axisLength()/(a-s)>o?this._showBullets=!0:this._showBullets=!1),(this._psi!=s||this._pei!=a||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const o=this.get("vcx",1),n=this.get("vcy",1),r=this.get("stacked",!1),h=this.getPrivate("outOfSelection");if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),h)e.markDirtySelectionExtremes();else for(let t=s;t{i.open=void 0,i.close=void 0,t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)}))}_makeRangeMask(){if(this.axisRanges.length>0){let t=this._mainContainerMask;null==t&&(t=this.children.push(h.T.new(this._root,{})),this._mainContainerMask=t,t.set("draw",((e,i)=>{const s=this.parent;if(s){const t=this._root.container.width(),a=this._root.container.height();e.moveTo(-t,-a),e.lineTo(-t,2*a),e.lineTo(2*t,2*a),e.lineTo(2*t,-a),e.lineTo(-t,-a),this.axisRanges.each((t=>{const a=t.axisDataItem.get("axisFill");if(s&&a){let t=a.get("draw");t&&t(e,i)}}))}this.mainContainer._display.mask=t._display}))),t.markDirty(),t._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const t=this.chart;if(t){const e=t.series.indexOf(this);if(this._couldStackTo=[],e>0){let i;for(let s=e-1;s>=0&&(i=t.series.getIndex(s),i.get("xAxis")!==this.get("xAxis")||i.get("yAxis")!==this.get("yAxis")||i.className!==this.className||(this._couldStackTo.push(i),i.get("stacked")));s--);}this._stackDataItems()}}_unstack(){d.each(this._reallyStackedTo,((t,e)=>{delete e._stackedSeries[this.uid]})),this._reallyStackedTo={},g.each(this.dataItems,(t=>{t.setRaw("stackToItemY",void 0),t.setRaw("stackToItemX",void 0)}))}_handleRemoved(){const t=this.get("xAxis");t&&t._handleSeriesRemoved();const e=this.get("yAxis");e&&e._handleSeriesRemoved()}_stackDataItems(){const t=this.get("baseAxis"),e=this.get("xAxis"),i=this.get("yAxis");let s,a;t===e?(s="valueY",a="stackToItemY"):t===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,n=0;const r=this.get("stackToNegative");this._reallyStackedTo={},g.each(this.dataItems,(t=>{for(let e=0;e=0&&n>=0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}if(d<0&&n<0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}else if(l.isNumber(d)&&l.isNumber(n)){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}n++}))}processXSelectionDataItem(t,e,i){g.each(this.__valueXShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedXValueWorking(t,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*e))}))}processYSelectionDataItem(t,e,i){g.each(this.__valueYShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedYValueWorking(t,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*e))}))}getStackedYValueWorking(t,e){const i=t.get("stackToItemY");if(i){const t=i.component;return i.get(e,0)*t.get("vcy",1)+this.getStackedYValueWorking(i,e)}return 0}getStackedXValueWorking(t,e){const i=t.get("stackToItemX");if(i){const t=i.component;return i.get(e,0)*t.get("vcx",1)+this.getStackedXValueWorking(i,e)}return 0}getStackedYValue(t,e){const i=t.get("stackToItemY");return i?i.get(e,0)+this.getStackedYValue(i,e):0}getStackedXValue(t,e){const i=t.get("stackToItemX");return i?i.get(e,0)+this.getStackedXValue(i,e):0}createLegendMarker(t){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(t){let e=t.get("sprite");if(e){let i=e.dataItem,s=t.get("locationX",i.get("locationX",.5)),a=t.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),n=this.get("yAxis"),r=this.get("exactLocationX",!1),h=this.get("exactLocationY",!1),l=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),r),d=n.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),h),g=this.getPoint(l,d),c=i.get("left",g.x),u=i.get("right",g.x),m=i.get("top",g.y),p=i.get("bottom",g.y),_=0,x=0,v=u-c,y=p-m;if(this._shouldShowBullet(l,d)){e.setPrivate("visible",!t.getPrivate("hidden"));let o=t.get("field");const n=this.get("baseAxis"),u=this.get("xAxis"),m=this.get("yAxis");if(null!=o){let t;n==u?("value"==o?t=this._yField:"open"==o?t=this._yOpenField:"high"==o?t=this._yHighField:"low"==o&&(t=this._yLowField),t&&(d=m.getDataItemPositionY(i,t,0,this.get("vcy",1),h),g=this._yRenderer.positionToPoint(d),x=g.y,_=c+v*s)):("value"==o?t=this._xField:"open"==o?t=this._xOpenField:"high"==o?t=this._xHighField:"low"==o&&(t=this._xLowField),t&&(l=u.getDataItemPositionX(i,t,0,this.get("vcx",1),r),g=this._xRenderer.positionToPoint(l),_=g.x,x=p-y*a))}else _=c+v*s,x=p-y*a;const f=t.get("stacked");if(f){const t=this.chart;if(n==u){let i=this._bullets[l+"_"+d];if(i){let s=i.bounds(),a=e.localBounds(),o=x;x=s.top,"down"==f?x=s.bottom-a.top:"auto"==f?t&&(o{e!=this._mainDataItems&&g.each(e,(t=>{t.dispose()}))})),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){g.each(this._dataItems,(t=>{let e=t.bullets;e&&g.each(e,(t=>{if(t){let e=t.get("sprite");e&&e.setPrivate("visible",!1)}}))})),this._selectionProcessed=!1}show(t){const e=Object.create(null,{show:{get:()=>super.show}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.show.call(this,t).then((()=>{this._isShowing=!1;let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis");e!==i&&e.markDirtySelectionExtremes(),t!==i&&t.markDirtySelectionExtremes()}))),i.push(this.bulletsContainer.show(t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)}))}hide(t){const e=Object.create(null,{hide:{get:()=>super.hide}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.hide.call(this,t).then((()=>{this._isHiding=!1}))),i.push(this.bulletsContainer.hide(t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)];l.isNumber(e)||(e=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");g.each(this._valueFields,(i=>{s.push(t.animate({key:i+"Working",to:t.get(i),duration:e,easing:a}).waitForStop())})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)];let a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),l.isNumber(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),n=this.get("xAxis"),r=this.get("yAxis"),h=this.get("baseAxis"),d=this.get("stacked");if(h!==n&&h||g.each(this._valueYFields,(i=>{let a=r.getPrivate("min"),n=r.baseValue();l.isNumber(a)&&a>n&&(n=a),d&&(n=0),null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:n,duration:e,easing:o}).waitForStop())})),h===r||!h){let i=n.getPrivate("min"),a=n.baseValue();l.isNumber(i)&&i>a&&(a=i),d&&(a=0),g.each(this._valueXFields,(i=>{null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:a,duration:e,easing:o}).waitForStop())}))}yield Promise.all(s)}))}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const t=this._stackedSeries;t&&d.each(t,((t,e)=>{e._stackDirty||e._markDirtyStack()}))}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(t){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(t),this.updateLegendValue(t));const e=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(e)if(!this.isHidden()&&this.get("visible")){if(e._setDataItem(t),t){let a=this.get("locationX",0),o=this.get("locationY",1),n=t.get("locationX",a),r=t.get("locationY",o);const h=this.get("xAxis"),l=this.get("yAxis"),d=this.get("vcx",1),c=this.get("vcy",1),u=h.getDataItemPositionX(t,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*n,d,i),m=l.getDataItemPositionY(t,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*r,c,s),p=this.getPoint(u,m);let _=!0;if(g.each(this._valueFields,(e=>{null==t.get(e)&&(_=!1)})),_){const i=this.chart;i&&i.inPlot(p)?(e.label.text.markDirtyText(),e.set("tooltipTarget",this._getTooltipTarget(t)),e.set("pointTo",this._display.toGlobal({x:p.x,y:p.y}))):e._setDataItem(void 0)}else e._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const t=this.get("tooltip");return t&&t.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget")){const e=t.bullets;if(e&&e.length>0){const t=e[0].get("sprite");if(t)return t}}return this}updateLegendValue(t){const e=this.get("legendDataItem");if(e){const i=e.get("label");if(i){let e="";t?(i._setDataItem(t),e=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),e=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",e)}const s=e.get("valueLabel");if(s){let e="";t?(s._setDataItem(t),e=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),e=this.get("legendRangeValueText",s.get("text",""))),s.set("text",e)}}}_getItemReaderLabel(){let t="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}",t}getPoint(t,e){let i=this._xRenderer.positionToCoordinate(t),s=this._yRenderer.positionToCoordinate(e),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(t){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(t){return this.axisRanges.push({axisDataItem:t})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(t){const e=this.get("xAxis");if(this.get("baseAxis")==e&&e.isType("DateAxis")){const i=e.baseDuration(),s=e.getPrivate("selectionMin",e.getPrivate("min",0)),a=i*this.get("locationX",.5);let o=-1/0;for(;o{const e=this.startGrip,i=this.endGrip;let s=e.x(),a=e.y(),o=i.x(),n=i.y();const r=this.height(),h=this.width();s>o&&([s,o]=[o,s]),a>n&&([a,n]=[n,a]),"horizontal"===this.get("orientation")?(t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,r),t.lineTo(0,r),t.lineTo(0,0),t.moveTo(o,0),t.lineTo(h,0),t.lineTo(h,r),t.lineTo(o,r),t.lineTo(o,0)):(t.moveTo(0,0),t.lineTo(0,a),t.lineTo(h,a),t.lineTo(h,0),t.lineTo(0,0),t.moveTo(0,n),t.lineTo(0,r),t.lineTo(h,r),t.lineTo(h,n),t.lineTo(0,n))}))}}r.className="XYChartScrollbar",r.classNames=a.L.classNames.concat([r.className]);var h=i(3355),l=i(757),d=i(6515),g=i(7497),c=i(1926),u=i(5040),m=i(5071);class p extends g.${constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category"),super._afterNew()}_prepareAxisItems(){this.setPrivateRaw("baseInterval",this.get("baseInterval"));const t=this.get("renderer"),e=this.dataItems.length;let i=this.startIndex();i>0&&i--;let s=this.endIndex();s=o&&(g=!0):r%l.count==0&&r!=y&&(g=!0),!h&&g&&(i-.7*o0){let t=f[0].dataItem.get("index",0);m.each(f,(e=>{const i=e.dataItem,s=e.format;this._createAssets(i,[]),this._toggleDataItem(i,!0);let a=Number(i.get("category")),n=new Date(a);const r=i.get("label");r&&r.set("text",this._root.dateFormatter.format(n,s)),t++,this._prepareDataItem(i,t,o)}))}}baseDuration(){return c.getIntervalDuration(this.getPrivate("baseInterval"))}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let t=this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];return this._root.dateFormatter.format(new Date(i.get("category",0)),this.get("tooltipDateFormat",t))}}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}}p.className="CategoryDateAxis",p.classNames=g.$.classNames.concat([p.className]);var _=i(5638),x=i(8701),v=i(7261),y=i(751);class f extends v.m{constructor(){super(...arguments),this._dataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),super._afterNew()}_adjustMinMax(t,e,i,s){let a;const o=this.getDurationFormatter(),n=this.get("baseUnit");if(this.setRaw("maxPrecision",0),"millisecond"==n||"second"==n||"minute"==n||"hour"==n){i<=1&&(i=1),i=Math.round(i);let s=e-t;0===s&&(s=Math.abs(e));let o=s/i,r=[60,30,20,15,10,2,1],h=1;"hour"==n&&(r=[24,12,6,4,2,1]);for(let t of r)if(s/t>i){h=t;break}let l=Math.ceil((e-t)/h/i),d=Math.log(Math.abs(l))*Math.LOG10E,g=Math.pow(10,Math.floor(d))/10,c=l/g;l=y.closest(r,c)*g,o=h*l,a={min:t=Math.floor(t/o)*o,max:e=Math.ceil(e/o)*o,step:o}}else a=super._adjustMinMax(t,e,i,s);return this.setPrivateRaw("durationFormat",o.getFormat(a.step,a.max,n)),a}_formatText(t){return this.getDurationFormatter().format(t,this.getPrivate("durationFormat"),this.get("baseUnit"))}getTooltipText(t,e){const i=this.getDurationFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=y.round(this.positionToValue(t),a);return i.format(o,this.getPrivate("durationFormat"),this.get("baseUnit"))}}f.className="DurationAxis",f.classNames=v.m.classNames.concat([f.className]);var b=i(2586),D=i(6293),P=i(9084),w=i(4714),T=i(8943),A=i(7109),I=i(6275),M=i(6284),k=i(7909),C=i(4604),S=i(2976),Y=i(2312);class F extends S.j{_draw(){const t=this._display;t.moveTo(this.get("lowX1",0),this.get("lowY1",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0));let e=this.width(),i=this.height();if("vertical"==this.get("orientation")){let s=i,a=0;t.moveTo(0,s),t.lineTo(e/2,s),t.moveTo(e/2,a),t.lineTo(e,a)}else{let s=0,a=e;t.moveTo(s,0),t.lineTo(s,i/2),t.moveTo(a,i/2),t.lineTo(a,i)}}}F.className="OHLC",F.classNames=S.j.classNames.concat([F.className]);var X=i(5769),L=i(7144);class N extends Y.${constructor(){super(...arguments),this.columns=this.addDisposer(new L.o(X.YS.new({themeTags:["autocolor"]}),(()=>F._new(this._root,{themeTags:n.mergeTags(this.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=this.mainContainer.children.push(e.make());return i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new L.o(X.YS.new({}),(()=>F._new(this._root,{themeTags:n.mergeTags(t.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template,t.columns.template])))}}N.className="OHLCSeries",N.classNames=Y.$.classNames.concat([N.className]);var R=i(62),V=i(2338),G=i(5892);class O extends V.e{_afterNew(){this._setDefault("curveFactory",(0,G.$)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,G.$)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}O.className="SmoothedYLineSeries",O.classNames=V.e.classNames.concat([O.className]);var E=i(8289);class z extends V.e{_afterNew(){this._setDefault("curveFactory",(0,E.G)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,E.G)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}z.className="SmoothedXLineSeries",z.classNames=V.e.classNames.concat([z.className]);var U=i(2818);class W extends V.e{_afterNew(){this._setDefault("curveFactory",U.ZP.tension(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",U.ZP.tension(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}W.className="SmoothedXYLineSeries",W.classNames=V.e.classNames.concat([W.className]);var B=i(6245);function H(t,e){this._context=t,this._t=e}function Z(t){return new H(t,1)}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}};class Q extends V.e{_afterNew(){this._setDefault("curveFactory",Z),super._afterNew()}_getPoints(t,e){let i=e.points,s=this.get("stepWidth",B.AQ).value/2,a=t.get("locationX",e.locationX),o=t.get("locationY",e.locationY),n=a,r=o;e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s);let h=e.xAxis.getDataItemPositionX(t,e.xField,a,e.vcx),l=e.yAxis.getDataItemPositionY(t,e.yField,o,e.vcy),d=e.xAxis.getDataItemPositionX(t,e.xField,n,e.vcx),g=e.yAxis.getDataItemPositionY(t,e.yField,r,e.vcy);if(this._shouldInclude(h)){const c=this.getPoint(h,l),u=[c.x,c.y],m=this.getPoint(d,g),p=[m.x,m.y];if(e.fillVisible){let i=h,c=l,m=d,_=g;if(e.baseAxis===e.xAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(i=e.basePosX,m=e.basePosX),e.getOpen){let h=t.get(e.xOpenField),l=t.get(e.yOpenField);if(null!=h&&null!=l)if(a=t.get("openLocationX",e.openLocationX),o=t.get("openLocationY",e.openLocationY),n=a,r=o,e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s),e.stacked){let s=t.get("stackToItemX"),h=t.get("stackToItemY");s?(i=e.xAxis.getDataItemPositionX(s,e.xField,a,s.component.get("vcx")),m=e.xAxis.getDataItemPositionX(s,e.xField,n,s.component.get("vcx"))):e.yAxis===e.baseAxis?(i=e.basePosX,m=e.basePosX):e.baseAxis===e.yAxis&&(i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx)),h?(c=e.yAxis.getDataItemPositionY(h,e.yField,o,h.component.get("vcy")),_=e.yAxis.getDataItemPositionY(h,e.yField,r,h.component.get("vcy"))):e.xAxis===e.baseAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy))}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy)}let x=this.getPoint(i,c),v=this.getPoint(m,_);u[2]=x.x,u[3]=x.y,p[2]=v.x,p[3]=v.y}i.push(u),i.push(p),t.set("point",{x:u[0]+(p[0]-u[0])/2,y:u[1]+(p[1]-u[1])/2})}this.get("noRisers")&&(e.points=[],e.segments.push(i))}}Q.className="StepLineSeries",Q.classNames=V.e.classNames.concat([Q.className]);var j=i(55)},7825:function(t,e,i){i.r(e),i.d(e,{am5xy:function(){return s}});const s=i(778)},2818:function(t,e,i){function s(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function a(t,e){this._context=t,this._k=(1-e)/6}i.d(e,{xm:function(){return s}}),a.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:s(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:s(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.ZP=function t(e){function i(t){return new a(t,e)}return i.tension=function(e){return t(+e)},i}(0)}},function(t){var e=(7825,t(t.s=7825)),i=window;for(var s in e)i[s]=e[s];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=xy.js.map diff --git a/web/amCharts/bar/weblink.txt b/web/amCharts/bar/weblink.txt new file mode 100644 index 0000000000000000000000000000000000000000..cce195040d16979ecaadd1a0bcb76a3d17703aa2 --- /dev/null +++ b/web/amCharts/bar/weblink.txt @@ -0,0 +1,18 @@ +https://www.amcharts.com/demos/radar-column-iwatch-style/ +https://www.amcharts.com/demos/xy-100-percent-stacked-column/ +https://www.amcharts.com/demos/xy-clustered-column/ +https://www.amcharts.com/demos/xy-column/ +https://www.amcharts.com/demos/xy-stacked-and-clustered-column/ +https://www.amcharts.com/demos/xy-stacked-column/ +https://www.amcharts.com/demos/columns-with-grainy-gradients/ +https://www.amcharts.com/demos/images-as-categories/ +https://www.amcharts.com/demos/column-with-rotated-series/ +https://www.amcharts.com/demos/clustered-bar-chart/ +https://www.amcharts.com/demos/columns-with-moving-bullets/ +https://www.amcharts.com/demos/drag-and-change-column-value/ +https://www.amcharts.com/demos/bar-chart-race/ +https://www.amcharts.com/demos/real-time-data-sorting/ +https://www.amcharts.com/demos/pictorial-column-chart/ +https://www.amcharts.com/demos/stacked-bar-chart-with-negative-values/ +https://www.amcharts.com/demos/layered-column-chart/ +https://www.amcharts.com/demos/column-chart-images-top/ \ No newline at end of file diff --git a/web/amCharts/scatter/chart_0056_scatter.html b/web/amCharts/scatter/chart_0056_scatter.html new file mode 100644 index 0000000000000000000000000000000000000000..89fdd9f27825b32bd156ea3ddd15dcadd93addc1 --- /dev/null +++ b/web/amCharts/scatter/chart_0056_scatter.html @@ -0,0 +1,1134 @@ + + + + + + scatter-1 + + + +
+ + + + diff --git a/web/amCharts/scatter/chart_0056_scatter.inline01.js b/web/amCharts/scatter/chart_0056_scatter.inline01.js new file mode 100644 index 0000000000000000000000000000000000000000..b432714ee22b762afeace447e2232a66774bbf0a --- /dev/null +++ b/web/amCharts/scatter/chart_0056_scatter.inline01.js @@ -0,0 +1,23659 @@ +(() => { +var __create = Object.create; + var __defProp = Object.defineProperty; + var __getOwnPropDesc = Object.getOwnPropertyDescriptor; + var __getOwnPropNames = Object.getOwnPropertyNames; + var __getProtoOf = Object.getPrototypeOf; + var __hasOwnProp = Object.prototype.hasOwnProperty; + var __commonJS = (cb, mod) => function __require() { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + }; + var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; + }; + var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod + )); + + // node_modules/tinyqueue/tinyqueue.js + var require_tinyqueue = __commonJS({ + "node_modules/tinyqueue/tinyqueue.js"(exports, module) { + (function(global, factory) { + typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = global || self, global.TinyQueue = factory()); + })(exports, function() { + "use strict"; + var TinyQueue = function TinyQueue2(data, compare2) { + if (data === void 0) data = []; + if (compare2 === void 0) compare2 = defaultCompare; + this.data = data; + this.length = this.data.length; + this.compare = compare2; + if (this.length > 0) { + for (var i = (this.length >> 1) - 1; i >= 0; i--) { + this._down(i); + } + } + }; + TinyQueue.prototype.push = function push(item) { + this.data.push(item); + this.length++; + this._up(this.length - 1); + }; + TinyQueue.prototype.pop = function pop() { + if (this.length === 0) { + return void 0; + } + var top = this.data[0]; + var bottom = this.data.pop(); + this.length--; + if (this.length > 0) { + this.data[0] = bottom; + this._down(0); + } + return top; + }; + TinyQueue.prototype.peek = function peek() { + return this.data[0]; + }; + TinyQueue.prototype._up = function _up(pos) { + var ref = this; + var data = ref.data; + var compare2 = ref.compare; + var item = data[pos]; + while (pos > 0) { + var parent = pos - 1 >> 1; + var current = data[parent]; + if (compare2(item, current) >= 0) { + break; + } + data[pos] = current; + pos = parent; + } + data[pos] = item; + }; + TinyQueue.prototype._down = function _down(pos) { + var ref = this; + var data = ref.data; + var compare2 = ref.compare; + var halfLength = this.length >> 1; + var item = data[pos]; + while (pos < halfLength) { + var left = (pos << 1) + 1; + var best = data[left]; + var right = left + 1; + if (right < this.length && compare2(data[right], best) < 0) { + left = right; + best = data[right]; + } + if (compare2(best, item) >= 0) { + break; + } + data[pos] = best; + pos = left; + } + data[pos] = item; + }; + function defaultCompare(a, b) { + return a < b ? -1 : a > b ? 1 : 0; + } + return TinyQueue; + }); + } + }); + + // node_modules/polylabel/polylabel.js + var require_polylabel = __commonJS({ + "node_modules/polylabel/polylabel.js"(exports, module) { + "use strict"; + var Queue = require_tinyqueue(); + if (Queue.default) Queue = Queue.default; + module.exports = polylabel; + module.exports.default = polylabel; + function polylabel(polygon, precision, debug) { + precision = precision || 1; + var minX, minY, maxX, maxY; + for (var i = 0; i < polygon[0].length; i++) { + var p = polygon[0][i]; + if (!i || p[0] < minX) minX = p[0]; + if (!i || p[1] < minY) minY = p[1]; + if (!i || p[0] > maxX) maxX = p[0]; + if (!i || p[1] > maxY) maxY = p[1]; + } + var width = maxX - minX; + var height = maxY - minY; + var cellSize = Math.min(width, height); + var h = cellSize / 2; + if (cellSize === 0) { + var degeneratePoleOfInaccessibility = [minX, minY]; + degeneratePoleOfInaccessibility.distance = 0; + return degeneratePoleOfInaccessibility; + } + var cellQueue = new Queue(void 0, compareMax); + for (var x = minX; x < maxX; x += cellSize) { + for (var y = minY; y < maxY; y += cellSize) { + cellQueue.push(new Cell(x + h, y + h, h, polygon)); + } + } + var bestCell = getCentroidCell(polygon); + var bboxCell = new Cell(minX + width / 2, minY + height / 2, 0, polygon); + if (bboxCell.d > bestCell.d) bestCell = bboxCell; + var numProbes = cellQueue.length; + while (cellQueue.length) { + var cell = cellQueue.pop(); + if (cell.d > bestCell.d) { + bestCell = cell; + if (debug) console.log("found best %d after %d probes", Math.round(1e4 * cell.d) / 1e4, numProbes); + } + if (cell.max - bestCell.d <= precision) continue; + h = cell.h / 2; + cellQueue.push(new Cell(cell.x - h, cell.y - h, h, polygon)); + cellQueue.push(new Cell(cell.x + h, cell.y - h, h, polygon)); + cellQueue.push(new Cell(cell.x - h, cell.y + h, h, polygon)); + cellQueue.push(new Cell(cell.x + h, cell.y + h, h, polygon)); + numProbes += 4; + } + if (debug) { + console.log("num probes: " + numProbes); + console.log("best distance: " + bestCell.d); + } + var poleOfInaccessibility = [bestCell.x, bestCell.y]; + poleOfInaccessibility.distance = bestCell.d; + return poleOfInaccessibility; + } + function compareMax(a, b) { + return b.max - a.max; + } + function Cell(x, y, h, polygon) { + this.x = x; + this.y = y; + this.h = h; + this.d = pointToPolygonDist(x, y, polygon); + this.max = this.d + this.h * Math.SQRT2; + } + function pointToPolygonDist(x, y, polygon) { + var inside = false; + var minDistSq = Infinity; + for (var k = 0; k < polygon.length; k++) { + var ring = polygon[k]; + for (var i = 0, len = ring.length, j = len - 1; i < len; j = i++) { + var a = ring[i]; + var b = ring[j]; + if (a[1] > y !== b[1] > y && x < (b[0] - a[0]) * (y - a[1]) / (b[1] - a[1]) + a[0]) inside = !inside; + minDistSq = Math.min(minDistSq, getSegDistSq(x, y, a, b)); + } + } + return minDistSq === 0 ? 0 : (inside ? 1 : -1) * Math.sqrt(minDistSq); + } + function getCentroidCell(polygon) { + var area = 0; + var x = 0; + var y = 0; + var points = polygon[0]; + for (var i = 0, len = points.length, j = len - 1; i < len; j = i++) { + var a = points[i]; + var b = points[j]; + var f = a[0] * b[1] - b[0] * a[1]; + x += (a[0] + b[0]) * f; + y += (a[1] + b[1]) * f; + area += f * 3; + } + if (area === 0) return new Cell(points[0][0], points[0][1], 0, polygon); + return new Cell(x / area, y / area, 0, polygon); + } + function getSegDistSq(px, py, a, b) { + var x = a[0]; + var y = a[1]; + var dx = b[0] - x; + var dy = b[1] - y; + if (dx !== 0 || dy !== 0) { + var t = ((px - x) * dx + (py - y) * dy) / (dx * dx + dy * dy); + if (t > 1) { + x = b[0]; + y = b[1]; + } else if (t > 0) { + x += dx * t; + y += dy * t; + } + } + dx = px - x; + dy = py - y; + return dx * dx + dy * dy; + } + } + }); + + // node_modules/tslib/tslib.es6.mjs + function __awaiter(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Percent.js + var Percent = class _Percent { + /** + * Constructor. + * + * @param percent Percent value + */ + constructor(percent2) { + this._value = percent2; + } + /** + * Relative value. + * + * E.g. 100% is 1, 50% is 0.5, etc. + * + * This is useful to apply transformations to other values. E.g.: + * + * ```TypeScript + * let value = 256; + * let percent = new am5.p50; + * console.log(value * percent.value); // outputs 128 + * ``` + * ```JavaScript + * var value = 256; + * var percent = new am5.p50; + * console.log(value * percent.value); // outputs 128 + * ``` + * + * Alternatively, you can use `am5.percent()` helper function: + * + * ```TypeScript + * let value = 256; + * let percent = am5.p50; + * console.log(value * percent.value); // outputs 128 + * ``` + * ```JavaScript + * var value = 256; + * var percent = am5.p50; + * console.log(value * percent.value); // outputs 128 + * ``` + * + * @readonly + * @return Relative value + */ + get value() { + return this._value / 100; + } + /** + * Value in percent. + * + * @readonly + * @return Percent + */ + get percent() { + return this._value; + } + toString() { + return "" + this._value + "%"; + } + interpolate(min, max) { + return min + this.value * (max - min); + } + static normalize(percent2, min, max) { + if (percent2 instanceof _Percent) { + return percent2; + } else { + if (min === max) { + return new _Percent(0); + } else { + return new _Percent(Math.min(Math.max((percent2 - min) * (1 / (max - min)), 0), 1) * 100); + } + } + } + }; + function percent(value) { + return new Percent(value); + } + var p0 = percent(0); + var p100 = percent(100); + var p50 = percent(50); + function isPercent(value) { + return value instanceof Percent; + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Type.js + function isNaN2(value) { + return Number(value) !== value; + } + function getType(value) { + return {}.toString.call(value); + } + function toNumber(value) { + if (value != null && !isNumber(value)) { + let converted = Number(value); + if (isNaN2(converted) && isString(value) && value != "" && value.match(/[0-9]+/)) { + const newValue = value.replace(/[^0-9.\-]+/g, ""); + return value === newValue ? converted : toNumber(newValue); + } + return converted; + } + return value; + } + function toDate(value) { + if (isDate(value)) { + return new Date(value); + } else if (isNumber(value)) { + return new Date(value); + } else { + let num = Number(value); + if (!isNumber(num)) { + return new Date(value); + } else { + return new Date(num); + } + } + } + function numberToString(value) { + if (isNaN2(value)) { + return "NaN"; + } + if (value === Infinity) { + return "Infinity"; + } + if (value === -Infinity) { + return "-Infinity"; + } + if (value === 0 && 1 / value === -Infinity) { + return "-0"; + } + let negative = value < 0; + value = Math.abs(value); + let parsed = /^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec("" + value); + let digits = parsed[1]; + let decimals = parsed[2] || ""; + let res; + if (parsed[3] === void 0) { + res = decimals === "" ? digits : digits + "." + decimals; + } else { + let exponent = +parsed[3]; + if (value < 1) { + let zeros = exponent - 1; + res = "0." + repeat("0", zeros) + digits + decimals; + } else { + let zeros = exponent - decimals.length; + if (zeros === 0) { + res = digits + decimals; + } else if (zeros < 0) { + res = digits + decimals.slice(0, zeros) + "." + decimals.slice(zeros); + } else { + res = digits + decimals + repeat("0", zeros); + } + } + } + return negative ? "-" + res : res; + } + function repeat(string, amount) { + return new Array(amount + 1).join(string); + } + function isDate(value) { + return getType(value) === "[object Date]"; + } + function isString(value) { + return typeof value === "string"; + } + function isNumber(value) { + return typeof value === "number" && Number(value) == value; + } + function isObject(value) { + return typeof value === "object" && value !== null; + } + var PLACEHOLDER = "__\xA7\xA7\xA7__"; + var PLACEHOLDER2 = "__\xA7\xA7\xA7\xA7__"; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Array.js + function indexOf(array, value) { + const length = array.length; + for (let i = 0; i < length; ++i) { + if (array[i] === value) { + return i; + } + } + return -1; + } + function any(array, test) { + const length = array.length; + for (let i = 0; i < length; ++i) { + if (test(array[i])) { + return true; + } + } + return false; + } + function map(array, fn) { + const length = array.length; + const output = new Array(length); + for (let i = 0; i < length; ++i) { + output[i] = fn(array[i], i); + } + return output; + } + function each(array, fn) { + const length = array.length; + for (let i = 0; i < length; ++i) { + fn(array[i], i); + } + } + function eachReverse(array, fn) { + let i = array.length; + while (i > 0) { + --i; + fn(array[i], i); + } + } + function eachContinue(array, fn) { + const length = array.length; + for (let i = 0; i < length; ++i) { + if (!fn(array[i], i)) { + break; + } + } + } + function pushAll(array, input) { + const length = input.length; + for (let i = 0; i < length; ++i) { + array.push(input[i]); + } + } + function remove(array, element) { + let found = false; + let index = 0; + for (; ; ) { + index = array.indexOf(element, index); + if (index === -1) { + return found; + } else { + found = true; + array.splice(index, 1); + } + } + } + function removeFirst(array, element) { + let index = array.indexOf(element); + if (index !== -1) { + array.splice(index, 1); + return true; + } else { + return false; + } + } + function move(array, element, toIndex) { + let index = indexOf(array, element); + if (index !== -1) { + removeIndex(array, index); + } + if (toIndex == null) { + array.push(element); + } else { + insertIndex(array, toIndex, element); + } + } + function pushOne(array, element) { + if (array.indexOf(element) === -1) { + array.push(element); + } + } + function copy(array) { + const length = array.length; + const output = new Array(length); + for (let i = 0; i < length; ++i) { + output[i] = array[i]; + } + return output; + } + function insertIndex(array, index, value) { + array.splice(index, 0, value); + } + function removeIndex(array, index) { + array.splice(index, 1); + } + function findIndex(array, matches) { + const length = array.length; + for (let i = 0; i < length; ++i) { + if (matches(array[i], i)) { + return i; + } + } + return -1; + } + function findIndexReverse(array, matches) { + let i = array.length; + while (i > 0) { + --i; + if (matches(array[i], i)) { + return i; + } + } + return -1; + } + function find(array, matches) { + const index = findIndex(array, matches); + if (index !== -1) { + return array[index]; + } + } + function findReverse(array, matches) { + const index = findIndexReverse(array, matches); + if (index !== -1) { + return array[index]; + } + } + function getSortedIndex(array, ordering) { + let start = 0; + let end = array.length; + let found = false; + while (start < end) { + const pivot = start + end >> 1; + const order = ordering(array[pivot]); + if (order < 0) { + start = pivot + 1; + } else if (order === 0) { + found = true; + start = pivot + 1; + } else { + end = pivot; + } + } + return { + found, + index: found ? start - 1 : start + }; + } + function getFirstSortedIndex(array, ordering) { + let start = 0; + let end = array.length; + let found = false; + while (start < end) { + const pivot = start + end >> 1; + const order = ordering(array[pivot]); + if (order < 0) { + start = pivot + 1; + } else if (order === 0) { + found = true; + end = pivot; + } else { + end = pivot; + } + } + return { + found, + index: start + }; + } + function keepIf(array, keep) { + let i = array.length; + while (i > 0) { + --i; + if (!keep(array[i])) { + array.splice(i, 1); + } + } + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Object.js + function keys(object) { + return Object.keys(object); + } + function entries(object) { + return Object.entries(object); + } + function keysOrdered(object, order) { + return keys(object).sort(order); + } + function copy2(object) { + return Object.assign({}, object); + } + function each2(object, f) { + keys(object).forEach((key) => { + f(key, object[key]); + }); + } + function eachContinue2(object, fn) { + for (let key in object) { + if (hasKey(object, key)) { + if (!fn(key, object[key])) { + break; + } + } + } + } + function hasKey(object, key) { + return {}.hasOwnProperty.call(object, key); + } + function softCopyProperties(source, target) { + each2(source, (key, value) => { + if (value != null && target[key] == null) { + target[key] = value; + } + }); + return target; + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Disposer.js + var DisposerClass = class { + /** + * Constructor. + */ + constructor() { + this._disposed = false; + } + /** + * Checks if object is disposed. + * + * @return Disposed? + */ + isDisposed() { + return this._disposed; + } + /** + * Disposes the object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + this._dispose(); + } + } + }; + var Disposer = class { + /** + * Constructor. + * + * @param dispose Function that disposes object + */ + constructor(dispose) { + this._disposed = false; + this._dispose = dispose; + } + /** + * Checks if object is disposed. + * + * @return Disposed? + */ + isDisposed() { + return this._disposed; + } + /** + * Disposes the object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + this._dispose(); + } + } + }; + var ArrayDisposer = class extends DisposerClass { + constructor() { + super(...arguments); + this._disposers = []; + } + _dispose() { + each(this._disposers, (x) => { + x.dispose(); + }); + } + }; + var MultiDisposer = class extends DisposerClass { + constructor(disposers) { + super(); + this._disposers = disposers; + } + _dispose() { + each(this._disposers, (x) => { + x.dispose(); + }); + } + get disposers() { + return this._disposers; + } + }; + var CounterDisposer = class extends Disposer { + constructor() { + super(...arguments); + this._counter = 0; + } + /** + * [increment description] + * + * @todo Description + */ + increment() { + ++this._counter; + return new Disposer(() => { + --this._counter; + if (this._counter === 0) { + this.dispose(); + } + }); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Utils.js + function removeElement(el) { + if (el.parentNode) { + el.parentNode.removeChild(el); + } + } + function addEventListener(dom, type, listener, options) { + dom.addEventListener(type, listener, options || false); + return new Disposer(() => { + dom.removeEventListener(type, listener, options || false); + }); + } + function onZoom(listener) { + return addEventListener(window, "resize", (_ev) => { + listener(); + }); + } + function supports(cap) { + switch (cap) { + case "touchevents": + return window.hasOwnProperty("TouchEvent"); + case "pointerevents": + return window.hasOwnProperty("PointerEvent"); + case "mouseevents": + return window.hasOwnProperty("MouseEvent"); + case "wheelevents": + return window.hasOwnProperty("WheelEvent"); + case "keyboardevents": + return window.hasOwnProperty("KeyboardEvent"); + } + return false; + } + function getPointerId(event) { + let id = event.pointerId || 0; + return id; + } + function blur() { + if (document.activeElement && document.activeElement != document.body) { + if (document.activeElement.blur) { + document.activeElement.blur(); + } else { + let input = document.createElement("button"); + input.style.position = "fixed"; + input.style.top = "0px"; + input.style.left = "-10000px"; + document.body.appendChild(input); + input.focus(); + input.blur(); + document.body.removeChild(input); + } + } + } + function focus(el) { + if (el) { + el.focus(); + } + } + function getRendererEvent(key) { + if (supports("pointerevents")) { + return key; + } else if (supports("touchevents")) { + switch (key) { + case "pointerover": + return "touchstart"; + case "pointerout": + return "touchend"; + case "pointerleave": + return "touchend"; + case "pointerdown": + return "touchstart"; + case "pointermove": + return "touchmove"; + case "pointerup": + return "touchend"; + case "click": + return "click"; + case "dblclick": + return "dblclick"; + } + } else if (supports("mouseevents")) { + switch (key) { + case "pointerover": + return "mouseover"; + case "pointerout": + return "mouseout"; + case "pointerleave": + return "mouseleave"; + case "pointerdown": + return "mousedown"; + case "pointermove": + return "mousemove"; + case "pointerup": + return "mouseup"; + case "click": + return "click"; + case "dblclick": + return "dblclick"; + } + } + return key; + } + function isTouchEvent(ev) { + if (typeof Touch !== "undefined" && ev instanceof Touch) { + return true; + } else if (typeof PointerEvent !== "undefined" && ev instanceof PointerEvent && ev.pointerType != null) { + switch (ev.pointerType) { + case "touch": + case "pen": + case 2: + return true; + case "mouse": + case 4: + return false; + default: + return !(ev instanceof MouseEvent); + } + } else if (ev.type != null) { + if (ev.type.match(/^mouse/)) { + return false; + } + } + return true; + } + function setStyle(dom, property, value) { + dom.style[property] = value; + } + function getStyle(dom, property) { + return dom.style[property]; + } + function getEventTarget(event) { + if (event.composedPath) { + const path = event.composedPath(); + if (path.length === 0) { + return null; + } else { + return path[0]; + } + } else { + return event.target; + } + } + function contains(a, b) { + let cursor = b; + while (true) { + if (a === cursor) { + return true; + } else if (cursor.parentNode === null) { + if (cursor.host == null) { + return false; + } else { + cursor = cursor.host; + } + } else { + cursor = cursor.parentNode; + } + } + } + function isLocalEvent(event, target) { + return event.target && contains(target.root.dom, event.target); + } + function setInteractive(target, interactive) { + if (interactive) { + target.style.pointerEvents = "auto"; + } else { + target.style.pointerEvents = "none"; + } + } + function getEventKey(event) { + if (event.key !== void 0) { + return event.key; + } + switch (event.keyCode) { + case 9: + return "Tab"; + case 13: + return "Enter"; + case 16: + return "Shift"; + case 17: + return "Control"; + case 27: + return "Escape"; + case 32: + return " "; + case 37: + return "ArrowLeft"; + case 38: + return "ArrowUp"; + case 39: + return "ArrowRight"; + case 40: + return "ArrowDown"; + case 46: + return "Delete"; + } + return "" + event.keyCode; + } + function iOS() { + return /apple/i.test(navigator.vendor) && "ontouchend" in document; + } + function getSafeResolution() { + return iOS() ? 1 : void 0; + } + function relativeToValue(percent2, full) { + if (isNumber(percent2)) { + return percent2; + } else if (percent2 != null && isNumber(percent2.value) && isNumber(full)) { + return full * percent2.value; + } else { + return 0; + } + } + function decimalPlaces(number) { + let match = ("" + number).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/); + if (!match) { + return 0; + } + return Math.max(0, (match[1] ? match[1].length : 0) - (match[2] ? +match[2] : 0)); + } + function padString(value, len = 0, char = "0") { + if (typeof value !== "string") { + value = value.toString(); + } + return len > value.length ? Array(len - value.length + 1).join(char) + value : value; + } + function trimLeft(text) { + return text.replace(/^[\s]*/, ""); + } + function trimRight(text) { + return text.replace(/[\s]*$/, ""); + } + function trim(text) { + return trimLeft(trimRight(text)); + } + function truncateTextWithEllipsis(text, maxLength, breakWords = false, ellipsis = "...") { + if (text.length > maxLength) { + let lastNonAlphanumericIndex = maxLength - 1; + while (lastNonAlphanumericIndex >= 0 && text.charAt(lastNonAlphanumericIndex).match(/\w/)) { + lastNonAlphanumericIndex--; + } + if (lastNonAlphanumericIndex >= 0 && breakWords == false) { + return text.substring(0, lastNonAlphanumericIndex + 1) + "..."; + } else { + return text.substring(0, maxLength) + ellipsis; + } + } else { + return text; + } + } + function getFormat(format) { + if (typeof format === "undefined") { + return "string"; + } + format = format.toLowerCase().replace(/^\[[^\]]*\]/, ""); + format = format.replace(/\[[^\]]+\]/, ""); + format = format.trim(); + let hints = format.match(/\/(date|number|duration)$/); + if (hints) { + return hints[1]; + } + if (format === "number") { + return "number"; + } + if (format === "date") { + return "date"; + } + if (format === "duration") { + return "duration"; + } + if (format.match(/[#0]/)) { + return "number"; + } + if (format.match(/[ymwdhnsqaxkzgtei]/)) { + return "date"; + } + return "string"; + } + function cleanFormat(format) { + return format.replace(/\/(date|number|duration)$/i, ""); + } + function stripTags(text) { + return text ? text.replace(/<[^>]*>/g, "") : text; + } + function escapeForRgex(value) { + return value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); + } + function splitString(source) { + const rtlChar = /[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/; + const splitPattern = /([^اأدذرزو]*[اأدذرزو])/gi; + let segments = source.split(/(\s+)/); + let result = []; + segments.forEach((segment) => { + if (segment.match(/^\s+$/)) { + if (segment = " ") { + segment = " "; + } + result.push(segment); + } else if (rtlChar.test(segment)) { + let parts = segment.split(splitPattern).filter((part) => part !== ""); + result = result.concat(parts); + } else { + result = result.concat([...segment]); + } + }); + return result; + } + function getYearDay(date, utc = false) { + utc; + const start = new Date(date.getFullYear(), 0, 0); + const diff = date.getTime() - start.getTime() + (start.getTimezoneOffset() - date.getTimezoneOffset()) * 60 * 1e3; + const oneDay = 1e3 * 60 * 60 * 24; + return Math.floor(diff / oneDay); + } + function getWeek(date, _utc = false) { + const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())); + const day = d.getUTCDay() || 7; + d.setUTCDate(d.getUTCDate() + 4 - day); + const firstDay = new Date(Date.UTC(d.getUTCFullYear(), 0, 1)); + return Math.ceil(((d.getTime() - firstDay.getTime()) / 864e5 + 1) / 7); + } + function getWeekYear(date, _utc = false) { + const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())); + const day = d.getUTCDay() || 7; + d.setUTCDate(d.getUTCDate() + 4 - day); + const firstDay = new Date(Date.UTC(d.getUTCFullYear(), 0, 1)); + return firstDay.getFullYear(); + } + function getMonthWeek(date, utc = false) { + const firstWeek = getWeek(new Date(date.getFullYear(), date.getMonth(), 1), utc); + let currentWeek = getWeek(date, utc); + if (currentWeek == 1) { + currentWeek = 53; + } + return currentWeek - firstWeek + 1; + } + function getDayFromWeek(week, year, weekday = 1, utc = false) { + let date = new Date(year, 0, 4, 0, 0, 0, 0); + if (utc) { + date.setUTCFullYear(year); + } + let day = week * 7 + weekday - ((date.getDay() || 7) + 3); + return day; + } + function get12Hours(hours, base) { + if (hours > 12) { + hours -= 12; + } else if (hours === 0) { + hours = 12; + } + return base != null ? hours + (base - 1) : hours; + } + function getTimeZone(date, long = false, savings = false, utc = false, timezone) { + if (utc) { + return long ? "Coordinated Universal Time" : "UTC"; + } else if (timezone) { + const d1 = date.toLocaleString("en-US", { timeZone: timezone }); + const d2 = date.toLocaleString("en-US", { timeZone: timezone, timeZoneName: long ? "long" : "short" }); + return trim(d2.substr(d1.length)); + } + let wotz = date.toLocaleString("UTC"); + let wtz = date.toLocaleString("UTC", { timeZoneName: long ? "long" : "short" }).substr(wotz.length); + if (savings === false) { + wtz = wtz.replace(/ (standard|daylight|summer|winter) /i, " "); + } + return trim(wtz); + } + function getTimezoneOffset(timezone, targetDate) { + const date = targetDate || new Date(Date.UTC(2012, 0, 1, 0, 0, 0, 0)); + const utcDate = new Date(date.toLocaleString("en-US", { timeZone: "UTC" })); + const tzDate = new Date(date.toLocaleString("en-US", { timeZone: timezone })); + return (tzDate.getTime() - utcDate.getTime()) / 6e4 * -1; + } + function hslToRgb(color2) { + let r, g, b; + let h = color2.h; + let s2 = color2.s; + let l = color2.l; + if (s2 == 0) { + r = g = b = l; + } else { + let hue2rgb = function hue2rgb2(p2, q2, t) { + if (t < 0) { + t += 1; + } + if (t > 1) { + t -= 1; + } + if (t < 1 / 6) { + return p2 + (q2 - p2) * 6 * t; + } + if (t < 1 / 2) { + return q2; + } + if (t < 2 / 3) { + return p2 + (q2 - p2) * (2 / 3 - t) * 6; + } + return p2; + }; + let q = l < 0.5 ? l * (1 + s2) : l + s2 - l * s2; + let p = 2 * l - q; + r = hue2rgb(p, q, h + 1 / 3); + g = hue2rgb(p, q, h); + b = hue2rgb(p, q, h - 1 / 3); + } + return { + r: Math.round(r * 255), + g: Math.round(g * 255), + b: Math.round(b * 255) + }; + } + function rgbToHsl(color2) { + let r = color2.r / 255; + let g = color2.g / 255; + let b = color2.b / 255; + let max = Math.max(r, g, b); + let min = Math.min(r, g, b); + let h = 0; + let s2 = 0; + let l = (max + min) / 2; + if (max === min) { + h = s2 = 0; + } else { + let d = max - min; + s2 = l > 0.5 ? d / (2 - max - min) : d / (max + min); + switch (max) { + case r: + h = (g - b) / d + (g < b ? 6 : 0); + break; + case g: + h = (b - r) / d + 2; + break; + case b: + h = (r - g) / d + 4; + break; + } + h /= 6; + } + return { + h, + s: s2, + l + }; + } + function lighten(rgb, percent2) { + if (rgb) { + return { + r: Math.max(0, Math.min(255, rgb.r + getLightnessStep(rgb.r, percent2))), + g: Math.max(0, Math.min(255, rgb.g + getLightnessStep(rgb.g, percent2))), + b: Math.max(0, Math.min(255, rgb.b + getLightnessStep(rgb.b, percent2))), + a: rgb.a + }; + } else { + return rgb; + } + } + function getLightnessStep(value, percent2) { + let base = percent2 > 0 ? 255 - value : value; + return Math.round(base * percent2); + } + function brighten(rgb, percent2) { + if (rgb) { + let base = Math.min(Math.max(rgb.r, rgb.g, rgb.b), 230); + let step = getLightnessStep(base, percent2); + return { + r: Math.max(0, Math.min(255, Math.round(rgb.r + step))), + g: Math.max(0, Math.min(255, Math.round(rgb.g + step))), + b: Math.max(0, Math.min(255, Math.round(rgb.b + step))), + a: rgb.a + }; + } else { + return rgb; + } + } + function isLight(color2) { + return (color2.r * 299 + color2.g * 587 + color2.b * 114) / 1e3 >= 128; + } + function saturate(rgb, saturation) { + if (rgb === void 0 || saturation == 1) { + return rgb; + } + let hsl = rgbToHsl(rgb); + hsl.s = saturation; + return hslToRgb(hsl); + } + function alternativeColor(color2, lightAlternative = { r: 255, g: 255, b: 255 }, darkAlternative = { r: 255, g: 255, b: 255 }) { + let light = lightAlternative; + let dark = darkAlternative; + if (isLight(darkAlternative)) { + light = darkAlternative; + dark = lightAlternative; + } + return isLight(color2) ? dark : light; + } + function mergeTags(tags1, tags2) { + if (!tags1) { + tags1 = []; + } + return [...tags1, ...tags2].filter((value, index, self2) => { + return self2.indexOf(value) === index; + }); + } + function sameBounds(a, b) { + if (!b) { + return false; + } + if (a.left != b.left) { + return false; + } + if (a.right != b.right) { + return false; + } + if (a.top != b.top) { + return false; + } + if (a.bottom != b.bottom) { + return false; + } + return true; + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Color.js + function string2hex(string) { + if (string[0] === "#") { + string = string.substr(1); + } + if (string.length == 3) { + string = string[0].repeat(2) + string[1].repeat(2) + string[2].repeat(2); + } + return parseInt(string, 16); + } + function rgba2hex(color2) { + color2 = color2.replace(/[ ]/g, ""); + let matches = color2.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i); + if (matches) { + matches.push("1"); + } else { + matches = color2.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i); + if (!matches) { + return 0; + } + } + let hex = ""; + for (let i = 1; i <= 3; i++) { + let val = parseInt(matches[i]).toString(16); + if (val.length == 1) { + val = "0" + val; + } + hex += val; + } + return string2hex(hex); + } + function color(input) { + return Color.fromAny(input); + } + var Color = class _Color { + constructor(hex) { + this._hex = hex | 0; + } + /** + * Color numeric value. + */ + get hex() { + return this._hex; + } + /** + * Value of color's R channel. + * @return R value + */ + get r() { + return this._hex >>> 16; + } + /** + * Value of color's G channel. + * @return G value + */ + get g() { + return this._hex >> 8 & 255; + } + /** + * Value of color's B channel. + * @return B value + */ + get b() { + return this._hex & 255; + } + /** + * Returns color CSS representation in form of `rgba(r, g, b, a)` string. + * + * @param alpha Opacity + * @return CSS string + */ + toCSS(alpha = 1) { + return "rgba(" + this.r + ", " + this.g + ", " + this.b + ", " + alpha + ")"; + } + /** + * Returns color CSS representation in form of `#rgb` string. + * + * @return CSS string + */ + toCSSHex() { + return "#" + padString(this.r.toString(16), 2) + padString(this.g.toString(16), 2) + padString(this.b.toString(16), 2); + } + /** + * Returns color's HSL info. + * @param alpha Opacity + * @return HSL info + */ + toHSL(alpha = 1) { + return rgbToHsl({ + r: this.r, + g: this.g, + b: this.b, + a: alpha + }); + } + /** + * Converts HSL values into a new [[Color]] object. + * + * @param h H value + * @param s S value + * @param l L value + * @return Color object + */ + static fromHSL(h, s2, l) { + const rgb = hslToRgb({ + h, + s: s2, + l + }); + return this.fromRGB(rgb.r, rgb.g, rgb.b); + } + toString() { + return this.toCSSHex(); + } + /** + * Converts hex number into a new [[Color]] object. + * + * ```TypeScript + * Color.fromHex(0xff0000) // red + * ``` + * ```JavaScript + * Color.fromHex(0xff0000) // red + * ``` + * + * @param hex Hex color + * @return Color + */ + static fromHex(hex) { + return new _Color(hex); + } + /** + * Converts RGB values to a new [[Color]] object. + * + * @param r R value + * @param g G value + * @param b B value + * @return Color + */ + static fromRGB(r, g, b) { + return new _Color((b | 0) + (g << 8) + (r << 16)); + } + /** + * Converts RGB string to a new [[Color]] object. + * + * ```TypeScript + * Color.fromString("#ff0000") // red + * ``` + * ```JavaScript + * Color.fromString("#ff0000") // red + * ``` + * + * @param s RGB string + * @return Color + */ + static fromString(s2) { + return new _Color(string2hex(s2)); + } + /** + * Converts CSS rgba() syntax to a new [[Color]] object. + * + * ```TypeScript + * Color.fromCSS("rgba(255, 0, 0, 1)") // red + * ``` + * ```JavaScript + * Color.fromCSS("rgba(255, 0, 0, 1)") // red + * ``` + * + * @param {string} s [description] + * @return {Color} [description] + */ + static fromCSS(s2) { + return new _Color(rgba2hex(s2)); + } + /** + * Convert to color from virtually anything. + * + * Will throw an exception if unable to resolve the color. + * + * @param s Source + * @return Color + */ + static fromAny(s2) { + if (isString(s2)) { + if (s2[0] == "#") { + return _Color.fromString(s2); + } else if (s2.substr(0, 3) == "rgb") { + return _Color.fromCSS(s2); + } + } else if (isNumber(s2)) { + return _Color.fromHex(s2); + } else if (s2 instanceof _Color) { + return _Color.fromHex(s2.hex); + } + throw new Error("Unknown color syntax: " + s2); + } + /** + * Returns a new [[Color]] object based on either `lightAlternative` or + * `darkAlternative` depending on which one is more contrasting with + * the `color`. + * + * @param color Reference color + * @param lightAlternative Light color + * @param darkAlternative Dark color + * @return Alternative color + */ + static alternative(color2, lightAlternative, darkAlternative) { + const rgb = alternativeColor({ r: color2.r, g: color2.g, b: color2.b }, lightAlternative ? { r: lightAlternative.r, g: lightAlternative.g, b: lightAlternative.b } : void 0, darkAlternative ? { r: darkAlternative.r, g: darkAlternative.g, b: darkAlternative.b } : void 0); + return this.fromRGB(rgb.r, rgb.g, rgb.b); + } + /** + * Returns an intermediate Color between two reference colors depending on + * the progress (`diff`) between the two. + * + * @param diff Progress + * @param from Source color + * @param to Target color + * @param mode Interpolation mode + * @return Color + */ + static interpolate(diff, from, to, mode = "rgb") { + if (mode == "hsl") { + const fromHSL = from.toHSL(); + const toHSL = to.toHSL(); + return _Color.fromHSL(range(diff, fromHSL.h, toHSL.h), range(diff, fromHSL.s, toHSL.s), range(diff, fromHSL.l, toHSL.l)); + } else { + return _Color.fromRGB(range(diff, from.r, to.r), range(diff, from.g, to.g), range(diff, from.b, to.b)); + } + } + /** + * Returns a new [[Color]] lightened by `percent` value. + * + * Use negative value to darken the color. + * + * @param color Source color + * @param percent Percent + * @return New color + */ + static lighten(color2, percent2) { + const rgb = lighten({ r: color2.r, g: color2.g, b: color2.b }, percent2); + return _Color.fromRGB(rgb.r, rgb.g, rgb.b); + } + /** + * Returns a new [[Color]] brightened by `percent` value. + * + * Use negative value to dim the color. + * + * @param color Source color + * @param percent Percent + * @return New color + */ + static brighten(color2, percent2) { + const rgb = brighten({ r: color2.r, g: color2.g, b: color2.b }, percent2); + return _Color.fromRGB(rgb.r, rgb.g, rgb.b); + } + /** + * Returns a new [[Color]] saturated by `percent` value. + * + * Value range is between `0` (fully desaturated), to `1` (full color). + * + * @param color Source color + * @param percent Percent + * @return New color + */ + static saturate(color2, percent2) { + const rgb = saturate({ r: color2.r, g: color2.g, b: color2.b }, percent2); + return _Color.fromRGB(rgb.r, rgb.g, rgb.b); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/EventDispatcher.js + var EventDispatcher = class { + /** + * Constructor + */ + constructor() { + this._listeners = []; + this._killed = []; + this._disabled = {}; + this._iterating = 0; + this._enabled = true; + this._disposed = false; + } + /** + * Returns if this object has been already disposed. + * + * @return Disposed? + */ + isDisposed() { + return this._disposed; + } + /** + * Dispose (destroy) this object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + const a = this._listeners; + this._iterating = 1; + this._listeners = null; + this._disabled = null; + try { + each(a, (x) => { + x.disposer.dispose(); + }); + } finally { + this._killed = null; + this._iterating = null; + } + } + } + /** + * Checks if this particular event dispatcher has any listeners set. + * + * @return Has listeners? + */ + hasListeners() { + return this._listeners.length !== 0; + } + /** + * Checks if this particular event dispatcher has any particular listeners set. + * + * @return Has particular event listeners? + */ + hasListenersByType(type) { + return any(this._listeners, (x) => (x.type === null || x.type === type) && !x.killed); + } + /** + * Enable dispatching of events if they were previously disabled by + * `disable()`. + */ + enable() { + this._enabled = true; + } + /** + * Disable dispatching of events until re-enabled by `enable()`. + */ + disable() { + this._enabled = false; + } + /** + * Enable dispatching particular event, if it was disabled before by + * `disableType()`. + * + * @param type Event type + */ + enableType(type) { + delete this._disabled[type]; + } + /** + * Disable dispatching of events for a certain event type. + * + * Optionally, can set how many dispatches to skip before automatically + * re-enabling the dispatching. + * + * @param type Event type + * @param amount Number of event dispatches to skip + */ + disableType(type, amount = Infinity) { + this._disabled[type] = amount; + } + /** + * Removes listener from dispatcher. + * + * Will throw an exception if such listener does not exists. + * + * @param listener Listener to remove + */ + _removeListener(listener) { + if (this._iterating === 0) { + const index = this._listeners.indexOf(listener); + if (index === -1) { + throw new Error("Invalid state: could not remove listener"); + } + this._listeners.splice(index, 1); + } else { + this._killed.push(listener); + } + } + /** + * Removes existing listener by certain parameters. + * + * @param once Listener's once setting + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + */ + _removeExistingListener(once, type, callback, context) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + this._eachListener((info) => { + if (info.once === once && // TODO is this correct ? + info.type === type && (callback === void 0 || info.callback === callback) && info.context === context) { + info.disposer.dispose(); + } + }); + } + /** + * Checks if dispatching for particular event type is enabled. + * + * @param type Event type + * @return Enabled? + */ + isEnabled(type) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + return this._enabled && this._listeners.length > 0 && this.hasListenersByType(type) && this._disabled[type] === void 0; + } + /** + * Removes all listeners of a particular event type + * + * @param type Listener's type + */ + removeType(type) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + this._eachListener((info) => { + if (info.type === type) { + info.disposer.dispose(); + } + }); + } + /** + * Checks if there's already a listener with specific parameters. + * + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + * @return Has listener? + */ + has(type, callback, context) { + const index = findIndex(this._listeners, (info) => { + return info.once !== true && // Ignoring "once" listeners + info.type === type && (callback === void 0 || info.callback === callback) && info.context === context; + }); + return index !== -1; + } + /** + * Checks whether event of the particular type should be dispatched. + * + * @param type Event type + * @return Dispatch? + */ + _shouldDispatch(type) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + const count = this._disabled[type]; + if (!isNumber(count)) { + return this._enabled; + } else { + if (count <= 1) { + delete this._disabled[type]; + } else { + --this._disabled[type]; + } + return false; + } + } + /** + * [_eachListener description] + * + * All of this extra code is needed when a listener is removed while iterating + * + * @todo Description + * @param fn [description] + */ + _eachListener(fn) { + ++this._iterating; + try { + each(this._listeners, fn); + } finally { + --this._iterating; + if (this._iterating === 0 && this._killed.length !== 0) { + each(this._killed, (killed) => { + this._removeListener(killed); + }); + this._killed.length = 0; + } + } + } + /** + * Dispatches an event immediately without waiting for next cycle. + * + * @param type Event type + * @param event Event object + * @todo automatically add in type and target properties if they are missing + */ + dispatch(type, event) { + if (this._shouldDispatch(type)) { + this._eachListener((listener) => { + if (!listener.killed && (listener.type === null || listener.type === type)) { + if (listener._debounceDelay) { + if (listener._debounceTimeout) { + window.clearTimeout(listener._debounceTimeout); + } + listener._debounceTimeout = window.setTimeout(() => { + listener._debounceTimeout = void 0; + if (!listener.killed) { + listener.dispatch(type, event); + } + }, listener._debounceDelay); + } else { + listener.dispatch(type, event); + } + } + }); + } + } + /** + * Shelves the event to be dispatched within next update cycle. + * + * @param type Event type + * @param event Event object + * @todo automatically add in type and target properties if they are missing + */ + /*public dispatchLater(type: Key, event: T[Key]): void { + if (this._shouldDispatch(type)) { + this._eachListener((listener) => { + // TODO check if it's faster to use an object of listeners rather than a single big array + if (!listener.killed && (listener.type === null || listener.type === type)) { + // TODO if the function throws, maybe it should keep going ? + // TODO dispatch during the update cycle, rather than using whenIdle + $async.whenIdle(() => { + if (!listener.killed) { + listener.dispatch(type, event); + } + }); + } + }); + } + }*/ + /** + * Creates, catalogs and returns an [[EventListener]]. + * + * Event listener can be disposed. + * + * @param once Listener's once setting + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @param dispatch + * @returns An event listener + */ + _on(once, type, callback, context, shouldClone, dispatch, debounceDelay) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + this._removeExistingListener(once, type, callback, context); + const info = { + type, + callback, + context, + shouldClone, + dispatch, + killed: false, + once, + disposer: new Disposer(() => { + info.killed = true; + if (info._debounceTimeout) { + window.clearTimeout(info._debounceTimeout); + } + this._removeListener(info); + }), + _debounceDelay: debounceDelay + }; + this._listeners.push(info); + return info; + } + /** + * Creates an event listener to be invoked on **any** event. + * + * @param callback Callback function + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @returns A disposable event listener + */ + onAll(callback, context, shouldClone = true) { + return this._on(false, null, callback, context, shouldClone, (_type, event) => callback.call(context, event)).disposer; + } + /** + * Creates an event listener to be invoked on a specific event type. + * + * ```TypeScript + * button.events.once("click", (ev) => { + * console.log("Button clicked"); + * }, this); + * ``` + * ```JavaScript + * button.events.once("click", function(ev) { + * console.log("Button clicked"); + * }, this); + * ``` + * + * The above will invoke our custom event handler whenever series we put + * event on is hidden. + * + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @returns A disposable event listener + */ + on(type, callback, context, shouldClone = true) { + return this._on(false, type, callback, context, shouldClone, (_type, event) => callback.call(context, event)).disposer; + } + /** + * Creates a debounced event listener to be invoked on a specific event type. + * + * ```TypeScript + * button.events.onDebounced("click", (ev) => { + * console.log("Button clicked"); + * }, 500, this); + * ``` + * ```JavaScript + * button.events.onDebounced("click", function(ev) { + * console.log("Button clicked"); + * }, 500, this); + * ``` + * + * The above will invoke our custom event handler whenever series we put + * event on is hidden. + * + * @param type Listener's type + * @param callback Callback function + * @param debounceDelay Debounce delay in milliseconds + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @returns A disposable event listener + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Debounced_events} for more info + * @since 5.14.0 + */ + onDebounced(type, callback, debounceDelay, context, shouldClone = true) { + return this._on(false, type, callback, context, shouldClone, (_type, event) => callback.call(context, event), debounceDelay).disposer; + } + /** + * Creates an event listener to be invoked on a specific event type once. + * + * Once the event listener is invoked, it is automatically disposed. + * + * ```TypeScript + * button.events.once("click", (ev) => { + * console.log("Button clicked"); + * }, this); + * ``` + * ```JavaScript + * button.events.once("click", function(ev) { + * console.log("Button clicked"); + * }, this); + * ``` + * + * The above will invoke our custom event handler the first time series we + * put event on is hidden. + * + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @returns A disposable event listener + */ + once(type, callback, context, shouldClone = true) { + const x = this._on(true, type, callback, context, shouldClone, (_type, event) => { + x.disposer.dispose(); + callback.call(context, event); + }); + return x.disposer; + } + /** + * Removes the event listener with specific parameters. + * + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + */ + off(type, callback, context) { + this._removeExistingListener(false, type, callback, context); + } + /** + * Copies all dispatcher parameters, including listeners, from another event + * dispatcher. + * + * @param source Source event dispatcher + * @ignore + */ + copyFrom(source) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + if (source === this) { + throw new Error("Cannot copyFrom the same TargetedEventDispatcher"); + } + const disposers = []; + each(source._listeners, (x) => { + if (!x.killed && x.shouldClone) { + if (x.type === null) { + disposers.push(this.onAll(x.callback, x.context)); + } else if (x.once) { + disposers.push(this.once(x.type, x.callback, x.context)); + } else { + disposers.push(this.on(x.type, x.callback, x.context)); + } + } + }); + return new MultiDisposer(disposers); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Animation.js + function waitForAnimations(animations) { + return __awaiter(this, void 0, void 0, function* () { + if (animations !== void 0) { + const promises = []; + each2(animations, (_, animation) => { + promises.push(animation.waitForStop()); + }); + yield Promise.all(promises); + } + }); + } + function range(diff, from, to) { + return from + diff * (to - from); + } + function defaultInterpolate(diff, from, to) { + if (diff >= 1) { + return to; + } else { + return from; + } + } + function percentInterpolate(diff, from, to) { + return new Percent(range(diff, from.percent, to.percent)); + } + function colorInterpolate(diff, from, to) { + return Color.interpolate(diff, from, to); + } + function getInterpolate(from, to) { + if (typeof from === "number" && typeof to === "number") { + return range; + } + if (from instanceof Percent && to instanceof Percent) { + return percentInterpolate; + } + if (from instanceof Color && to instanceof Color) { + return colorInterpolate; + } + return defaultInterpolate; + } + var AnimationState; + (function(AnimationState2) { + AnimationState2[AnimationState2["Stopped"] = 0] = "Stopped"; + AnimationState2[AnimationState2["Playing"] = 1] = "Playing"; + AnimationState2[AnimationState2["Paused"] = 2] = "Paused"; + })(AnimationState || (AnimationState = {})); + + // node_modules/@amcharts/amcharts5/.internal/core/util/List.js + function checkBounds(index, len) { + if (!(index >= 0 && index < len)) { + throw new Error("Index out of bounds: " + index); + } + } + var List = class { + /** + * Constructor + * + * @param initial Inital list of values to add to list + */ + constructor(initial = []) { + this.events = new EventDispatcher(); + this._values = initial; + } + /** + * An array of values in the list. + * + * Do not use this property to add values. Rather use dedicated methods, like + * `push()`, `removeIndex()`, etc. + * + * @readonly + * @return List values + */ + get values() { + return this._values; + } + /** + * Checks if list contains specific item reference. + * + * @param item Item to search for + * @return `true` if found, `false` if not found + */ + contains(value) { + return this._values.indexOf(value) !== -1; + } + /** + * Removes specific item from the list. + * + * @param item An item to remove + */ + removeValue(value) { + let i = 0; + let length = this._values.length; + while (i < length) { + if (this._values[i] === value) { + this.removeIndex(i); + --length; + } else { + ++i; + } + } + } + /** + * Searches the list for specific item and returns its index. + * + * @param item An item to search for + * @return Index or -1 if not found + */ + indexOf(value) { + return indexOf(this._values, value); + } + /** + * Number of items in list. + * + * @readonly + * @return Number of items + */ + get length() { + return this._values.length; + } + /** + * Checks if there's a value at specific index. + * + * @param index Index + * @return Value exists? + */ + hasIndex(index) { + return index >= 0 && index < this._values.length; + } + /** + * Returns an item at specified index. + * + * @param index Index + * @return List item + */ + getIndex(index) { + return this._values[index]; + } + _onPush(newValue) { + if (this.events.isEnabled("push")) { + this.events.dispatch("push", { + type: "push", + target: this, + newValue + }); + } + } + _onInsertIndex(index, newValue) { + if (this.events.isEnabled("insertIndex")) { + this.events.dispatch("insertIndex", { + type: "insertIndex", + target: this, + index, + newValue + }); + } + } + _onSetIndex(index, oldValue, newValue) { + if (this.events.isEnabled("setIndex")) { + this.events.dispatch("setIndex", { + type: "setIndex", + target: this, + index, + oldValue, + newValue + }); + } + } + _onSwap(a, b) { + if (this.events.isEnabled("swap")) { + this.events.dispatch("swap", { + type: "swap", + target: this, + a, + b + }); + } + } + _onRemoveIndex(index, oldValue) { + if (this.events.isEnabled("removeIndex")) { + this.events.dispatch("removeIndex", { + type: "removeIndex", + target: this, + index, + oldValue + }); + } + } + _onMoveIndex(oldIndex, newIndex, value) { + if (this.events.isEnabled("moveIndex")) { + this.events.dispatch("moveIndex", { + type: "moveIndex", + target: this, + oldIndex, + newIndex, + value + }); + } + } + _onClear(oldValues) { + if (this.events.isEnabled("clear")) { + this.events.dispatch("clear", { + type: "clear", + target: this, + oldValues + }); + } + } + /** + * Sets value at specific index. + * + * If there's already a value at the index, it is overwritten. + * + * @param index Index + * @param value New value + * @return New value + */ + setIndex(index, value) { + checkBounds(index, this._values.length); + const oldValue = this._values[index]; + if (oldValue !== value) { + this._values[index] = value; + this._onSetIndex(index, oldValue, value); + } + return oldValue; + } + /** + * Adds an item to the list at a specific index, which pushes all the other + * items further down the list. + * + * @param index Index + * @param item An item to add + */ + insertIndex(index, value) { + checkBounds(index, this._values.length + 1); + insertIndex(this._values, index, value); + this._onInsertIndex(index, value); + return value; + } + /** + * Swaps indexes of two items in the list. + * + * @param a Item 1 + * @param b Item 2 + */ + swap(a, b) { + const len = this._values.length; + checkBounds(a, len); + checkBounds(b, len); + if (a !== b) { + const value_a = this._values[a]; + const value_b = this._values[b]; + this._values[a] = value_b; + this._values[b] = value_a; + this._onSwap(value_a, value_b); + } + } + /** + * Removes a value at specific index. + * + * @param index Index of value to remove + * @return Removed value + */ + removeIndex(index) { + checkBounds(index, this._values.length); + const oldValue = this._values[index]; + removeIndex(this._values, index); + this._onRemoveIndex(index, oldValue); + return oldValue; + } + /** + * Moves an item to a specific index within the list. + * + * If the index is not specified it will move the item to the end of the + * list. + * + * @param value Item to move + * @param index Index to place item at + */ + moveValue(value, toIndex) { + let index = this.indexOf(value); + if (index !== -1) { + removeIndex(this._values, index); + if (toIndex == null) { + const toIndex2 = this._values.length; + this._values.push(value); + this._onMoveIndex(index, toIndex2, value); + } else { + insertIndex(this._values, toIndex, value); + this._onMoveIndex(index, toIndex, value); + } + } else if (toIndex == null) { + this._values.push(value); + this._onPush(value); + } else { + insertIndex(this._values, toIndex, value); + this._onInsertIndex(toIndex, value); + } + return value; + } + /** + * Adds an item to the end of the list. + * + * @param item An item to add + */ + push(value) { + this._values.push(value); + this._onPush(value); + return value; + } + /** + * Adds an item as a first item in the list. + * + * @param item An item to add + */ + unshift(value) { + this.insertIndex(0, value); + return value; + } + /** + * Adds multiple items to the list. + * + * @param items An Array of items to add + */ + pushAll(values) { + each(values, (value) => { + this.push(value); + }); + } + /** + * Copies and adds items from abother list. + * + * @param source A list top copy items from + */ + copyFrom(source) { + this.pushAll(source._values); + } + /** + * Returns the last item from the list, and removes it. + * + * @return Item + */ + pop() { + let index = this._values.length - 1; + return index < 0 ? void 0 : this.removeIndex(this._values.length - 1); + } + /** + * Returns the first item from the list, and removes it. + * + * @return Item + */ + shift() { + return this._values.length ? this.removeIndex(0) : void 0; + } + /** + * Sets multiple items to the list. + * + * All current items are removed. + * + * @param newArray New items + */ + setAll(newArray) { + const old = this._values; + this._values = []; + this._onClear(old); + each(newArray, (value) => { + this._values.push(value); + this._onPush(value); + }); + } + /** + * Removes all items from the list. + */ + clear() { + this.setAll([]); + } + /** + * Returns an ES6 iterator for the list. + */ + *[Symbol.iterator]() { + const length = this._values.length; + for (let i = 0; i < length; ++i) { + yield this._values[i]; + } + } + /** + * Calls `f` for each element in the list. + * + * `f` should have at least one parameter defined which will get a current + * item, with optional second argument - index. + */ + each(f) { + each(this._values, f); + } + /** + * Calls `f` for each element in the list, from right to left. + * + * `f` should have at least one parameter defined which will get a current + * item, with optional second argument - index. + */ + eachReverse(f) { + eachReverse(this._values, f); + } + }; + var ListAutoDispose = class extends List { + constructor() { + super(...arguments); + this.autoDispose = true; + this._disposed = false; + } + /** + * Swaps indexes of two items in the list. + * + * @param a Item 1 + * @param b Item 2 + */ + swap(a, b) { + const currentAutoDispose = this.autoDispose; + this.autoDispose = false; + super.swap(a, b); + this.autoDispose = currentAutoDispose; + } + _onSetIndex(index, oldValue, newValue) { + if (this.autoDispose) { + oldValue.dispose(); + } + super._onSetIndex(index, oldValue, newValue); + } + _onRemoveIndex(index, oldValue) { + if (this.autoDispose) { + oldValue.dispose(); + } + super._onRemoveIndex(index, oldValue); + } + _onClear(oldValues) { + if (this.autoDispose) { + each(oldValues, (x) => { + x.dispose(); + }); + } + super._onClear(oldValues); + } + _dispose() { + if (this.autoDispose) { + each(this._values, (x) => { + x.dispose(); + }); + } + } + isDisposed() { + return this._disposed; + } + dispose() { + if (!this._disposed) { + this._disposed = true; + this._dispose(); + } + } + }; + var ListTemplate = class extends ListAutoDispose { + constructor(template, make) { + super(); + this.template = template; + this.make = make; + } + _dispose() { + super._dispose(); + if (this.autoDispose) { + this.template.dispose(); + } + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Children.js + var Children = class extends List { + constructor(container) { + super(); + this._disposed = false; + this._container = container; + this._events = this.events.onAll((change) => { + if (change.type === "clear") { + each(change.oldValues, (x) => { + this._onRemoved(x); + }); + } else if (change.type === "push") { + this._onInserted(change.newValue); + } else if (change.type === "setIndex") { + this._onRemoved(change.oldValue); + this._onInserted(change.newValue, change.index); + } else if (change.type === "insertIndex") { + this._onInserted(change.newValue, change.index); + } else if (change.type === "removeIndex") { + this._onRemoved(change.oldValue); + } else if (change.type === "moveIndex") { + this._onRemoved(change.value); + this._onInserted(change.value, change.newIndex); + } else { + throw new Error("Unknown IListEvent type"); + } + }); + } + _onInserted(child, index) { + child._setParent(this._container, true); + const childrenDisplay = this._container._childrenDisplay; + if (index === void 0) { + childrenDisplay.addChild(child._display); + } else { + childrenDisplay.addChildAt(child._display, index); + } + } + _onRemoved(child) { + this._container._childrenDisplay.removeChild(child._display); + this._container.markDirtyBounds(); + this._container.markDirty(); + } + /** + * Returns `true` if obejct is disposed. + */ + isDisposed() { + return this._disposed; + } + /** + * Permanently dispose this object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + this._events.dispose(); + each(this.values, (child) => { + child.dispose(); + }); + } + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Math.js + var PI = Math.PI; + var HALFPI = PI / 2; + var RADIANS = PI / 180; + var DEGREES = 180 / PI; + function round(value, precision, floor) { + if (!isNumber(precision) || precision <= 0) { + let rounded = Math.round(value); + if (floor) { + if (rounded - value == 0.5) { + rounded--; + } + } + return rounded; + } else { + let d = Math.pow(10, precision); + return Math.round(value * d) / d; + } + } + function fitToRange(value, min, max) { + return Math.min(Math.max(value, min), max); + } + function sin(angle2) { + return Math.sin(RADIANS * angle2); + } + function cos(angle2) { + return Math.cos(RADIANS * angle2); + } + function normalizeAngle(value) { + value = value % 360; + if (value < 0) { + value += 360; + } + return value; + } + function getArcBounds(cx, cy, startAngle, endAngle, radius) { + let minX = Number.MAX_VALUE; + let minY = Number.MAX_VALUE; + let maxX = -Number.MAX_VALUE; + let maxY = -Number.MAX_VALUE; + let bpoints = []; + bpoints.push(getArcPoint(radius, startAngle)); + bpoints.push(getArcPoint(radius, endAngle)); + let fromAngle = Math.min(Math.floor(startAngle / 90) * 90, Math.floor(endAngle / 90) * 90); + let toAngle = Math.max(Math.ceil(startAngle / 90) * 90, Math.ceil(endAngle / 90) * 90); + for (let angle2 = fromAngle; angle2 <= toAngle; angle2 += 90) { + if (angle2 >= startAngle && angle2 <= endAngle) { + bpoints.push(getArcPoint(radius, angle2)); + } + } + for (let i = 0; i < bpoints.length; i++) { + let pt = bpoints[i]; + if (pt.x < minX) { + minX = pt.x; + } + if (pt.y < minY) { + minY = pt.y; + } + if (pt.x > maxX) { + maxX = pt.x; + } + if (pt.y > maxY) { + maxY = pt.y; + } + } + return { left: cx + minX, top: cy + minY, right: cx + maxX, bottom: cy + maxY }; + } + function getArcPoint(radius, arc) { + return { x: radius * cos(arc), y: radius * sin(arc) }; + } + function inBounds(point, bounds) { + if (point.x >= bounds.left && point.y >= bounds.top && point.x <= bounds.right && point.y <= bounds.bottom) { + return true; + } + return false; + } + function getAngle(point1, point2) { + if (!point2) { + point2 = { x: point1.x * 2, y: point1.y * 2 }; + } + let diffX = point2.x - point1.x; + let diffY = point2.y - point1.y; + let angle2 = Math.atan2(diffY, diffX) * DEGREES; + if (angle2 < 0) { + angle2 += 360; + } + return normalizeAngle(angle2); + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Ease.js + function linear(t) { + return t; + } + function cubic(t) { + return t * t * t; + } + function out(ease) { + return function(t) { + return 1 - ease(1 - t); + }; + } + var b1 = 4 / 11; + var b2 = 6 / 11; + var b3 = 8 / 11; + var b4 = 3 / 4; + var b5 = 9 / 11; + var b6 = 10 / 11; + var b7 = 15 / 16; + var b8 = 21 / 22; + var b9 = 63 / 64; + var b0 = 1 / b1 / b1; + var tau = 2 * Math.PI; + var amplitude = 1; + var period = 0.3 / tau; + var s = Math.asin(1 / amplitude) * period; + + // node_modules/@amcharts/amcharts5/.internal/core/util/States.js + var State = class { + constructor(entity, settings) { + this._userSettings = {}; + this._entity = entity; + this._settings = settings; + each2(settings, (key) => { + this._userSettings[key] = true; + }); + } + get(key, fallback) { + const value = this._settings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + /** + * @ignore + */ + setRaw(key, value) { + this._settings[key] = value; + } + /** + * Sets a setting `value` for the specified `key` to be set when the state + * is applied. + * + * @param key Setting key + * @param value Setting value + * @return Setting value + */ + set(key, value) { + this._userSettings[key] = true; + this.setRaw(key, value); + } + /** + * Removes a setting value for the specified `key`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + */ + remove(key) { + delete this._userSettings[key]; + delete this._settings[key]; + } + /** + * Sets multiple settings at once. + * + * `settings` must be an object with key: value pairs. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param settings Settings + */ + setAll(settings) { + entries(settings).forEach(([key, value]) => { + this.set(key, value); + }); + } + _eachSetting(f) { + each2(this._settings, f); + } + /** + * Applies the state to the target element. + * + * All setting values are set immediately. + */ + apply() { + const seen = {}; + seen["stateAnimationEasing"] = true; + seen["stateAnimationDuration"] = true; + const defaultState = this._entity.states.lookup("default"); + this._eachSetting((key, value) => { + if (!seen[key]) { + seen[key] = true; + if (this !== defaultState) { + if (!(key in defaultState._settings)) { + defaultState._settings[key] = this._entity.get(key); + } + } + this._entity.set(key, value); + } + }); + } + /** + * Applies the state to the target element. + * + * Returns an object representing all [[Animation]] objects created for + * each setting key transition. + * + * @return Animations + */ + applyAnimate(duration) { + if (duration == null) { + duration = this._settings.stateAnimationDuration; + } + if (duration == null) { + duration = this.get("stateAnimationDuration", this._entity.get("stateAnimationDuration", 0)); + } + let easing = this._settings.stateAnimationEasing; + if (easing == null) { + easing = this.get("stateAnimationEasing", this._entity.get("stateAnimationEasing", cubic)); + } + const defaultState = this._entity.states.lookup("default"); + const seen = {}; + seen["stateAnimationEasing"] = true; + seen["stateAnimationDuration"] = true; + const animations = {}; + this._eachSetting((key, value) => { + if (!seen[key]) { + seen[key] = true; + if (this != defaultState) { + if (!(key in defaultState._settings)) { + defaultState._settings[key] = this._entity.get(key); + } + } + const animation = this._entity.animate({ + key, + to: value, + duration, + easing + }); + if (animation) { + animations[key] = animation; + } + } + }); + return animations; + } + }; + var States = class { + constructor(entity) { + this._states = {}; + this._entity = entity; + } + /** + * Checks if a state by `name` exists. Returns it there is one. + * + * @param name State name + * @return State + */ + lookup(name) { + return this._states[name]; + } + /** + * Sets supplied `settings` on a state by the `name`. + * + * If such state does not yet exists, it is created. + * + * @param name State name + * @param settings Settings + * @return New State + */ + create(name, settings) { + const state = this._states[name]; + if (state) { + state.setAll(settings); + return state; + } else { + const state2 = new State(this._entity, settings); + this._states[name] = state2; + return state2; + } + } + /** + * Removes the state called `name`. + * + * @param name State name + */ + remove(name) { + delete this._states[name]; + } + /** + * Applies a named state to the target element. + * + * @param newState State name + */ + apply(newState) { + const state = this._states[newState]; + if (state) { + state.apply(); + } + this._entity._applyState(newState); + } + /** + * Applies a named state to the element. + * + * Returns an object representing all [[Animation]] objects created for + * each setting key transition. + * + * @param newState State name + * @return Animations + */ + applyAnimate(newState, duration) { + let animations; + const state = this._states[newState]; + if (state) { + animations = state.applyAnimate(duration); + } + this._entity._applyStateAnimated(newState, duration); + return animations; + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/Registry.js + var Registry = class { + constructor() { + this.version = "5.16.0"; + this.licenses = []; + this.entitiesById = {}; + this.rootElements = []; + this.autoDispose = false; + } + }; + var registry = new Registry(); + + // node_modules/@amcharts/amcharts5/.internal/core/util/Order.js + function compare(left, right) { + if (left === right) { + return 0; + } else if (left < right) { + return -1; + } else { + return 1; + } + } + function compareArray(left, right, f) { + const leftLength = left.length; + const rightLength = right.length; + const length = Math.min(leftLength, rightLength); + for (let i = 0; i < length; ++i) { + const order = f(left[i], right[i]); + if (order !== 0) { + return order; + } + } + return compare(leftLength, rightLength); + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Entity.js + var Adapters = class { + constructor(entity) { + this._callbacks = {}; + this._disabled = {}; + this._entity = entity; + } + /** + * Add a function (`callback`) that will modify value for setting `key`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/adapters/} for more info + */ + add(key, callback) { + let callbacks = this._callbacks[key]; + if (callbacks === void 0) { + callbacks = this._callbacks[key] = []; + } + callbacks.push(callback); + this._entity._markDirtyKey(key); + return new Disposer(() => { + if (removeFirst(callbacks, callback)) { + this._entity._markDirtyKey(key); + } + }); + } + /** + * Removes all adapters for the specific key. + * + * @since 5.1.0 + */ + remove(key) { + const callbacks = this._callbacks[key]; + if (callbacks !== void 0) { + delete this._callbacks[key]; + if (callbacks.length !== 0) { + this._entity._markDirtyKey(key); + } + } + } + /** + * Enables (previously disabled) adapters for specific key. + * + * @since 5.1.0 + */ + enable(key) { + if (this._disabled[key]) { + delete this._disabled[key]; + this._entity._markDirtyKey(key); + } + } + /** + * Disables all adapters for specific key. + * + * @since 5.1.0 + */ + disable(key) { + if (!this._disabled[key]) { + this._disabled[key] = true; + this._entity._markDirtyKey(key); + } + } + /** + * @ignore + */ + fold(key, value) { + if (!this._disabled[key]) { + const callbacks = this._callbacks[key]; + if (callbacks !== void 0) { + for (let i = 0, len = callbacks.length; i < len; ++i) { + value = callbacks[i](value, this._entity, key); + } + } + } + return value; + } + }; + var Animation = class { + constructor(animation, from, to, duration, easing, loops, startingTime) { + this._time = 0; + this._stopped = false; + this._playing = true; + this.events = new EventDispatcher(); + this._animation = animation; + this._from = from; + this._to = to; + this._duration = duration; + this._easing = easing; + this._loops = loops; + this._interpolate = getInterpolate(from, to); + this._oldTime = startingTime; + } + get to() { + return this._to; + } + get from() { + return this._from; + } + get playing() { + return this._playing; + } + get stopped() { + return this._stopped; + } + stop() { + if (!this._stopped) { + this._stopped = true; + this._playing = false; + if (this.events.isEnabled("stopped")) { + this.events.dispatch("stopped", { + type: "stopped", + target: this + }); + } + } + } + pause() { + this._playing = false; + this._oldTime = null; + } + play() { + if (!this._stopped && !this._playing) { + this._playing = true; + this._animation._startAnimation(); + } + } + get percentage() { + return this._time / this._duration; + } + waitForStop() { + return new Promise((resolve, _reject) => { + if (this._stopped) { + resolve(); + } else { + const listener = () => { + stopped.dispose(); + resolve(); + }; + const stopped = this.events.on("stopped", listener); + } + }); + } + _checkEnded() { + if (this._loops > 1) { + --this._loops; + return false; + } else { + return true; + } + } + _run(currentTime) { + if (this._oldTime !== null) { + this._time += currentTime - this._oldTime; + if (this._time > this._duration) { + this._time = this._duration; + } + } + this._oldTime = currentTime; + } + _reset(currentTime) { + this._oldTime = currentTime; + this._time = 0; + } + _value(diff) { + return this._interpolate(this._easing(diff), this._from, this._to); + } + }; + var counter = 0; + var Settings = class { + constructor(settings) { + this.uid = ++counter; + this._privateSettings = {}; + this._settingEvents = {}; + this._privateSettingEvents = {}; + this._prevSettings = {}; + this._prevPrivateSettings = {}; + this._animatingSettings = {}; + this._animatingPrivateSettings = {}; + this._disposed = false; + this._userProperties = {}; + this.enableDispose = true; + this._settings = settings; + } + _checkDirty() { + keys(this._settings).forEach((key) => { + this._userProperties[key] = true; + this._markDirtyKey(key); + }); + } + /** + * @ignore + */ + resetUserSettings() { + this._userProperties = {}; + } + _runAnimation(currentTime) { + let state = AnimationState.Stopped; + if (!this.isDisposed()) { + let playing = false; + let paused = false; + each2(this._animatingSettings, (key, animation) => { + if (animation.stopped) { + this._stopAnimation(key); + } else if (animation.playing) { + animation._run(currentTime); + const diff = animation.percentage; + if (diff >= 1) { + if (animation._checkEnded()) { + this.set(key, animation._value(1)); + } else { + playing = true; + animation._reset(currentTime); + this._set(key, animation._value(1)); + } + } else { + playing = true; + this._set(key, animation._value(diff)); + } + } else { + paused = true; + } + }); + each2(this._animatingPrivateSettings, (key, animation) => { + if (animation.stopped) { + this._stopAnimationPrivate(key); + } else if (animation.playing) { + animation._run(currentTime); + const diff = animation.percentage; + if (diff >= 1) { + if (animation._checkEnded()) { + this.setPrivate(key, animation._value(1)); + } else { + playing = true; + animation._reset(currentTime); + this._setPrivate(key, animation._value(1)); + } + } else { + playing = true; + this._setPrivate(key, animation._value(diff)); + } + } else { + paused = true; + } + }); + if (playing) { + state = AnimationState.Playing; + } else if (paused) { + state = AnimationState.Paused; + } + } + return state; + } + _markDirtyKey(_key) { + this.markDirty(); + } + _markDirtyPrivateKey(_key) { + this.markDirty(); + } + /** + * Sets a callback function to invoke when specific key of settings changes + * or is set. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Settings_value_change} for more info + * @param key Settings key + * @param callback Callback + * @return Disposer for event + */ + on(key, callback) { + let events = this._settingEvents[key]; + if (events === void 0) { + events = this._settingEvents[key] = []; + } + events.push(callback); + return new Disposer(() => { + removeFirst(events, callback); + if (events.length === 0) { + delete this._settingEvents[key]; + } + }); + } + /** + * Removes a callback for when value of a setting changes. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Settings_value_change} for more info + * @param key Private settings key + * @param callback Callback + * @since 5.9.2 + */ + off(key, callback) { + let events = this._settingEvents[key]; + if (events !== void 0 && callback !== void 0) { + removeFirst(events, callback); + } else { + delete this._settingEvents[key]; + } + } + /** + * Sets a callback function to invoke when specific key of private settings + * changes or is set. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Settings_value_change} for more info + * @param key Private settings key + * @param callback Callback + * @return Disposer for event + */ + onPrivate(key, callback) { + let events = this._privateSettingEvents[key]; + if (events === void 0) { + events = this._privateSettingEvents[key] = []; + } + events.push(callback); + return new Disposer(() => { + removeFirst(events, callback); + if (events.length === 0) { + delete this._privateSettingEvents[key]; + } + }); + } + /** + * Removes a callback for when value of a private setting changes. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Settings_value_change} for more info + * @param key Private settings key + * @param callback Callback + * @since 5.9.2 + */ + offPrivate(key, callback) { + let events = this._privateSettingEvents[key]; + if (events !== void 0 && callback !== void 0) { + removeFirst(events, callback); + } else { + delete this._privateSettingEvents[key]; + } + } + /** + * @ignore + */ + getRaw(key, fallback) { + const value = this._settings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + /** + * Returns `true` if the setting exists. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Settings key + * @return {boolean} Key exists + */ + has(key) { + return key in this._settings; + } + get(key, fallback) { + return this.getRaw(key, fallback); + } + _sendKeyEvent(key, value) { + const events = this._settingEvents[key]; + if (events !== void 0) { + each(events, (callback) => { + callback(value, this, key); + }); + } + } + _sendPrivateKeyEvent(key, value) { + const events = this._privateSettingEvents[key]; + if (events !== void 0) { + each(events, (callback) => { + callback(value, this, key); + }); + } + } + /** + * @ignore + */ + _setRaw(key, old, value) { + this._prevSettings[key] = old; + this._sendKeyEvent(key, value); + } + /** + * @ignore + */ + setRaw(key, value) { + const old = this._settings[key]; + this._settings[key] = value; + if (old !== value) { + this._setRaw(key, old, value); + } + } + /** + * @ignore + */ + _set(key, value) { + const old = this._settings[key]; + this._settings[key] = value; + if (old !== value) { + this._setRaw(key, old, value); + this._markDirtyKey(key); + } + } + _stopAnimation(key) { + const animation = this._animatingSettings[key]; + if (animation) { + delete this._animatingSettings[key]; + animation.stop(); + } + } + /** + * Sets a setting `value` for the specified `key`, and returns the same `value`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + * @param value Setting value + * @return Setting value + */ + set(key, value) { + this._set(key, value); + this._stopAnimation(key); + return value; + } + /** + * Removes a setting value for the specified `key`; + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + */ + remove(key) { + if (key in this._settings) { + this._prevSettings[key] = this._settings[key]; + delete this._settings[key]; + this._sendKeyEvent(key, void 0); + this._markDirtyKey(key); + } + this._stopAnimation(key); + } + /** + * Removes all keys; + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + */ + removeAll() { + each(keys(this._settings), (key) => { + this.remove(key); + }); + } + /** + * Returns a value of a private setting. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/#Private_settings} for more info + */ + getPrivate(key, fallback) { + const value = this._privateSettings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + /** + * @ignore + */ + _setPrivateRaw(key, old, value) { + this._prevPrivateSettings[key] = old; + this._sendPrivateKeyEvent(key, value); + } + /** + * @ignore + */ + setPrivateRaw(key, value) { + const old = this._privateSettings[key]; + this._privateSettings[key] = value; + if (old !== value) { + this._setPrivateRaw(key, old, value); + } + } + /** + * @ignore + */ + _setPrivate(key, value) { + const old = this._privateSettings[key]; + this._privateSettings[key] = value; + if (old !== value) { + this._setPrivateRaw(key, old, value); + this._markDirtyPrivateKey(key); + } + } + _stopAnimationPrivate(key) { + const animation = this._animatingPrivateSettings[key]; + if (animation) { + animation.stop(); + delete this._animatingPrivateSettings[key]; + } + } + /** + * @ignore + */ + setPrivate(key, value) { + this._setPrivate(key, value); + this._stopAnimationPrivate(key); + return value; + } + /** + * @ignore + */ + removePrivate(key) { + if (key in this._privateSettings) { + this._prevPrivateSettings[key] = this._privateSettings[key]; + delete this._privateSettings[key]; + this._markDirtyPrivateKey(key); + } + this._stopAnimationPrivate(key); + } + /** + * Sets multiple settings at once. + * + * `settings` must be an object with key: value pairs. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param settings Settings + */ + setAll(settings) { + each2(settings, (key, value) => { + this.set(key, value); + }); + } + /** + * Animates setting values from current/start values to new ones. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/animations/#Animating_settings} for more info + * @param options Animation options + * @return Animation object + */ + animate(options) { + const key = options.key; + const to = options.to; + const duration = options.duration || 0; + const loops = options.loops || 1; + const from = options.from === void 0 ? this.get(key) : options.from; + const easing = options.easing === void 0 ? linear : options.easing; + if (duration === 0) { + this.set(key, to); + } else { + if (from === void 0 || from === to) { + this.set(key, to); + } else { + this.set(key, from); + const animation2 = this._animatingSettings[key] = new Animation(this, from, to, duration, easing, loops, this._animationTime()); + this._startAnimation(); + return animation2; + } + } + const animation = new Animation(this, from, to, duration, easing, loops, null); + animation.stop(); + return animation; + } + /** + * @ignore + */ + animatePrivate(options) { + const key = options.key; + const to = options.to; + const duration = options.duration || 0; + const loops = options.loops || 1; + const from = options.from === void 0 ? this.getPrivate(key) : options.from; + const easing = options.easing === void 0 ? linear : options.easing; + if (duration === 0) { + this.setPrivate(key, to); + } else { + if (from === void 0 || from === to) { + this.setPrivate(key, to); + } else { + this.setPrivate(key, from); + const animation2 = this._animatingPrivateSettings[key] = new Animation(this, from, to, duration, easing, loops, this._animationTime()); + this._startAnimation(); + return animation2; + } + } + const animation = new Animation(this, from, to, duration, easing, loops, null); + animation.stop(); + return animation; + } + _dispose() { + } + /** + * Returns `true` if this element is disposed. + * + * @return Disposed + */ + isDisposed() { + return this._disposed; + } + /** + * Disposes this object. + */ + dispose() { + if (this.enableDispose && !this._disposed) { + this._disposed = true; + this._dispose(); + } + } + }; + var Entity = class extends Settings { + /** + * IMPORTANT! Do not instantiate this class via `new Class()` syntax. + * + * Use static method `Class.new()` instead. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @ignore + */ + constructor(root2, settings, isReal, templates = []) { + super(settings); + this.states = new States(this); + this.adapters = new Adapters(this); + this.events = this._createEvents(); + this._userPrivateProperties = {}; + this._dirty = {}; + this._dirtyPrivate = {}; + this._templates = []; + this._defaultThemes = []; + this._templateDisposers = []; + this._disposers = []; + this._runSetup = true; + this._disposerProperties = {}; + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + this._root = root2; + this._internalTemplates = templates; + if (settings.id) { + this._registerId(settings.id); + } + } + /** + * Use this method to create an instance of this class. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @param root Root element + * @param settings Settings + * @param template Template + * @return Instantiated object + */ + static new(root2, settings, template) { + const x = new this(root2, settings, true); + x._template = template; + x._afterNew(); + return x; + } + static _new(root2, settings, templates = []) { + const x = new this(root2, settings, true, templates); + x._afterNew(); + return x; + } + _afterNew() { + this._checkDirty(); + let shouldApply = false; + const template = this._template; + if (template) { + shouldApply = true; + template._setObjectTemplate(this); + } + each(this._internalTemplates, (template2) => { + shouldApply = true; + template2._setObjectTemplate(this); + }); + if (shouldApply) { + this._applyTemplates(false); + } + this.states.create("default", {}); + this._setDefaults(); + } + // This is the same as _afterNew, except it also applies the themes. + // This should only be used for classes which don't have a parent (because they extend from Entity and not Sprite). + _afterNewApplyThemes() { + this._checkDirty(); + const template = this._template; + if (template) { + template._setObjectTemplate(this); + } + each(this._internalTemplates, (template2) => { + template2._setObjectTemplate(this); + }); + this.states.create("default", {}); + this._setDefaults(); + this._applyThemes(); + } + _createEvents() { + return new EventDispatcher(); + } + /** + * @ignore + */ + get classNames() { + return this.constructor.classNames; + } + /** + * @ignore + */ + get className() { + return this.constructor.className; + } + _setDefaults() { + } + _setDefaultFn(key, f) { + const value = this.get(key); + if (value) { + return value; + } else { + const value2 = f(); + this.set(key, value2); + return value2; + } + } + _setDefault(key, value) { + if (!this.has(key)) { + super.set(key, value); + } + } + _setRawDefault(key, value) { + if (!this.has(key)) { + super.setRaw(key, value); + } + } + _clearDirty() { + keys(this._dirty).forEach((key) => { + this._dirty[key] = false; + }); + keys(this._dirtyPrivate).forEach((key) => { + this._dirtyPrivate[key] = false; + }); + } + /** + * @ignore + */ + isDirty(key) { + return !!this._dirty[key]; + } + /** + * @ignore + */ + isPrivateDirty(key) { + return !!this._dirtyPrivate[key]; + } + _markDirtyKey(key) { + this._dirty[key] = true; + super._markDirtyKey(key); + } + _markDirtyPrivateKey(key) { + this._dirtyPrivate[key] = true; + super._markDirtyKey(key); + } + /** + * Checks if element is of certain class (or inherits one). + * + * @param type Class name to check + * @return {boolean} Is of class? + */ + isType(type) { + return this.classNames.indexOf(type) !== -1; + } + _pushPropertyDisposer(key, disposer) { + let disposers = this._disposerProperties[key]; + if (disposers === void 0) { + disposers = this._disposerProperties[key] = []; + } + disposers.push(disposer); + return disposer; + } + _disposeProperty(key) { + const disposers = this._disposerProperties[key]; + if (disposers !== void 0) { + each(disposers, (disposer) => { + disposer.dispose(); + }); + delete this._disposerProperties[key]; + } + } + /** + * @todo needs description + * @param value Template + */ + set template(value) { + const template = this._template; + if (template !== value) { + this._template = value; + if (template) { + template._removeObjectTemplate(this); + } + if (value) { + value._setObjectTemplate(this); + } + this._applyTemplates(); + } + } + get template() { + return this._template; + } + /** + * @ignore + */ + markDirty() { + this._root._addDirtyEntity(this); + } + _startAnimation() { + this._root._addAnimation(this); + } + _animationTime() { + return this._root.animationTime; + } + _applyState(_name) { + } + _applyStateAnimated(_name, _duration) { + } + get(key, fallback) { + const value = this.adapters.fold(key, this._settings[key]); + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + /** + * @ignore + */ + isUserSetting(key) { + return this._userProperties[key] || false; + } + /** + * Sets a setting `value` for the specified `key`, and returns the same `value`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + * @param value Setting value + * @return Setting value + */ + set(key, value) { + this._userProperties[key] = true; + return super.set(key, value); + } + /** + * @ignore + */ + setRaw(key, value) { + this._userProperties[key] = true; + super.setRaw(key, value); + } + /** + * Sets a setting `value` for the specified `key` only if the value for this key was not set previously using set method, and returns the same `value`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + * @param value Setting value + * @return Setting value + */ + _setSoft(key, value) { + if (!this._userProperties[key]) { + return super.set(key, value); + } + return value; + } + /** + * Removes a setting value for the specified `key`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + */ + remove(key) { + delete this._userProperties[key]; + this._removeTemplateProperty(key); + } + /** + * @ignore + */ + setPrivate(key, value) { + this._userPrivateProperties[key] = true; + return super.setPrivate(key, value); + } + /** + * @ignore + */ + setPrivateRaw(key, value) { + this._userPrivateProperties[key] = true; + super.setPrivateRaw(key, value); + } + /** + * @ignore + */ + removePrivate(key) { + delete this._userPrivateProperties[key]; + this._removeTemplatePrivateProperty(key); + } + _setTemplateProperty(template, key, value) { + if (!this._userProperties[key]) { + const match = this._findTemplateByKey(key); + if (template === match) { + super.set(key, value); + } + } + } + _setTemplatePrivateProperty(template, key, value) { + if (!this._userPrivateProperties[key]) { + const match = this._findTemplateByPrivateKey(key); + if (template === match) { + super.setPrivate(key, value); + } + } + } + _removeTemplateProperty(key) { + if (!this._userProperties[key]) { + const match = this._findTemplateByKey(key); + if (match) { + super.set(key, match._settings[key]); + } else { + super.remove(key); + } + } + } + _removeTemplatePrivateProperty(key) { + if (!this._userPrivateProperties[key]) { + const match = this._findTemplateByPrivateKey(key); + if (match) { + super.setPrivate(key, match._privateSettings[key]); + } else { + super.removePrivate(key); + } + } + } + _walkParents(f) { + f(this._root._rootContainer); + f(this); + } + // TODO faster version of this method which is specialized to just 1 key + _applyStateByKey(name) { + const other = this.states.create(name, {}); + const seen = {}; + this._eachTemplate((template) => { + const state = template.states.lookup(name); + if (state) { + state._apply(other, seen); + } + }); + each2(other._settings, (key) => { + if (!seen[key] && !other._userSettings[key]) { + other.remove(key); + } + }); + } + _applyTemplate(template, state) { + this._templateDisposers.push(template._apply(this, state)); + each2(template._settings, (key, value) => { + if (!state.settings[key] && !this._userProperties[key]) { + state.settings[key] = true; + super.set(key, value); + } + }); + each2(template._privateSettings, (key, value) => { + if (!state.privateSettings[key] && !this._userPrivateProperties[key]) { + state.privateSettings[key] = true; + super.setPrivate(key, value); + } + }); + if (this._runSetup && template.setup) { + this._runSetup = false; + template.setup(this); + } + } + /** + * Calls the closure with each template and returns the first template which is true + */ + _findStaticTemplate(f) { + if (this._template) { + if (f(this._template)) { + return this._template; + } + } + } + _eachTemplate(f) { + this._findStaticTemplate((template) => { + f(template); + return false; + }); + eachReverse(this._internalTemplates, f); + each(this._templates, f); + } + _applyTemplates(remove2 = true) { + if (remove2) { + this._disposeTemplates(); + } + const state = { + settings: {}, + privateSettings: {}, + states: {} + }; + this._eachTemplate((template) => { + this._applyTemplate(template, state); + }); + if (remove2) { + each2(this._settings, (key) => { + if (!this._userProperties[key] && !state.settings[key]) { + super.remove(key); + } + }); + each2(this._privateSettings, (key) => { + if (!this._userPrivateProperties[key] && !state.privateSettings[key]) { + super.removePrivate(key); + } + }); + } + } + _findTemplate(f) { + const value = this._findStaticTemplate(f); + if (value === void 0) { + const value2 = findReverse(this._internalTemplates, f); + if (value2 === void 0) { + return find(this._templates, f); + } else { + return value2; + } + } else { + return value; + } + } + _findTemplateByKey(key) { + return this._findTemplate((template) => { + return key in template._settings; + }); + } + _findTemplateByPrivateKey(key) { + return this._findTemplate((template) => { + return key in template._privateSettings; + }); + } + _disposeTemplates() { + each(this._templateDisposers, (disposer) => { + disposer.dispose(); + }); + this._templateDisposers.length = 0; + } + _removeTemplates() { + each(this._templates, (template) => { + template._removeObjectTemplate(this); + }); + this._templates.length = 0; + } + _applyThemes(force = false) { + if (this.get("ignoreThemes")) { + return false; + } + let isConnected = false; + const defaults = []; + let themes = []; + const themeTags = /* @__PURE__ */ new Set(); + const tags = this.get("themeTagsSelf"); + if (tags) { + each(tags, (tag) => { + themeTags.add(tag); + }); + } + this._walkParents((entity) => { + if (entity === this._root._rootContainer) { + isConnected = true; + } + if (entity._defaultThemes.length > 0) { + defaults.push(entity._defaultThemes); + } + const theme = entity.get("themes"); + if (theme) { + themes.push(theme); + } + const tags2 = entity.get("themeTags"); + if (tags2) { + each(tags2, (tag) => { + themeTags.add(tag); + }); + } + }); + themes = defaults.concat(themes); + this._removeTemplates(); + if (isConnected || force) { + eachReverse(this.classNames, (name) => { + const allRules = []; + each(themes, (themes2) => { + each(themes2, (theme) => { + const rules = theme._lookupRules(name); + if (rules) { + eachReverse(rules, (rule) => { + const matches = rule.tags.every((tag) => { + return themeTags.has(tag); + }); + if (matches) { + const result = getFirstSortedIndex(allRules, (x) => { + const order = compare(rule.tags.length, x.tags.length); + if (order === 0) { + return compareArray(rule.tags, x.tags, compare); + } else { + return order; + } + }); + allRules.splice(result.index, 0, rule); + } + }); + } + }); + }); + each(allRules, (rule) => { + this._templates.push(rule.template); + rule.template._setObjectTemplate(this); + }); + }); + } + this._applyTemplates(); + if (isConnected || force) { + this._runSetup = false; + } + return isConnected || force; + } + _changed() { + } + _beforeChanged() { + if (this.isDirty("id")) { + const id = this.get("id"); + if (id) { + this._registerId(id); + } + const prevId = this._prevSettings.id; + if (prevId) { + delete this._root.entitiesById[prevId]; + delete registry.entitiesById[prevId]; + } + } + } + _registerId(id) { + if (this._root.entitiesById[id] && this._root.entitiesById[id] !== this) { + throw new Error('An entity with id "' + id + '" already exists.'); + } + this._root.entitiesById[id] = this; + registry.entitiesById[id] = this; + } + _afterChanged() { + } + /** + * @ignore + */ + addDisposer(disposer) { + this._disposers.push(disposer); + return disposer; + } + _dispose() { + super._dispose(); + const template = this._template; + if (template) { + template._removeObjectTemplate(this); + } + each(this._internalTemplates, (template2) => { + template2._removeObjectTemplate(this); + }); + this._removeTemplates(); + this._disposeTemplates(); + this.events.dispose(); + this._disposers.forEach((x) => { + x.dispose(); + }); + each2(this._disposerProperties, (_, disposers) => { + each(disposers, (disposer) => { + disposer.dispose(); + }); + }); + const id = this.get("id"); + if (id) { + delete this._root.entitiesById[id]; + delete registry.entitiesById[id]; + } + } + /** + * Creates and returns a "disposable" timeout. + * + * @param fn Callback + * @param delay Delay in milliseconds + * @return Timeout disposer + */ + setTimeout(fn, delay) { + const id = setTimeout(() => { + this.removeDispose(disposer); + fn(); + }, delay); + const disposer = new Disposer(() => { + clearTimeout(id); + }); + this._disposers.push(disposer); + return disposer; + } + /** + * @ignore + */ + removeDispose(target) { + if (!this.isDisposed()) { + let index = indexOf(this._disposers, target); + if (index > -1) { + this._disposers.splice(index, 1); + } + } + target.dispose(); + } + /** + * @ignore + */ + hasTag(tag) { + return indexOf(this.get("themeTags", []), tag) !== -1; + } + /** + * @ignore + */ + addTag(tag) { + if (!this.hasTag(tag)) { + const tags = this.get("themeTags", []); + tags.push(tag); + this.set("themeTags", tags); + } + } + /** + * @ignore + */ + removeTag(tag) { + if (this.hasTag(tag)) { + const tags = this.get("themeTags", []); + remove(tags, tag); + this.set("themeTags", tags); + } + } + _t(text, locale, ...rest) { + return this._root.language.translate(text, locale, ...rest); + } + /** + * An instance of [[Root]] object. + * + * @readonly + * @since 5.0.6 + * @return Root object + */ + get root() { + return this._root; + } + }; + Entity.className = "Entity"; + Entity.classNames = ["Entity"]; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Template.js + function disposeSettings(settings) { + each2(settings, (_key, value) => { + if (isObject(value) && typeof value.dispose === "function") { + value.enableDispose = true; + value.dispose(); + } + }); + } + var TemplateState = class { + constructor(name, template, settings) { + this._name = name; + this._template = template; + this._settings = settings; + } + _dispose() { + disposeSettings(this._settings); + } + get(key, fallback) { + const value = this._settings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + set(key, value) { + this._settings[key] = value; + this._template._stateChanged(this._name); + } + remove(key) { + delete this._settings[key]; + this._template._stateChanged(this._name); + } + setAll(settings) { + keys(settings).forEach((key) => { + this._settings[key] = settings[key]; + }); + this._template._stateChanged(this._name); + } + _apply(other, seen) { + each2(this._settings, (key, value) => { + if (!seen[key] && !other._userSettings[key]) { + seen[key] = true; + other.setRaw(key, value); + } + }); + } + }; + var TemplateStates = class { + constructor(template) { + this._states = {}; + this._template = template; + } + _dispose() { + each2(this._states, (_key, state) => { + state._dispose(); + }); + } + lookup(name) { + return this._states[name]; + } + create(name, settings) { + const state = this._states[name]; + if (state) { + state.setAll(settings); + return state; + } else { + const state2 = new TemplateState(name, this._template, settings); + this._states[name] = state2; + this._template._stateChanged(name); + return state2; + } + } + remove(name) { + delete this._states[name]; + this._template._stateChanged(name); + } + _apply(entity, state) { + each2(this._states, (key, value) => { + let seen = state.states[key]; + if (seen == null) { + seen = state.states[key] = {}; + } + const other = entity.states.create(key, {}); + value._apply(other, seen); + }); + } + }; + var TemplateAdapters = class { + constructor() { + this._callbacks = {}; + } + add(key, callback) { + let callbacks = this._callbacks[key]; + if (callbacks === void 0) { + callbacks = this._callbacks[key] = []; + } + callbacks.push(callback); + return new Disposer(() => { + removeFirst(callbacks, callback); + if (callbacks.length === 0) { + delete this._callbacks[key]; + } + }); + } + remove(key) { + const callbacks = this._callbacks[key]; + if (callbacks !== void 0) { + delete this._callbacks[key]; + } + } + _apply(entity) { + const disposers = []; + each2(this._callbacks, (key, callbacks) => { + each(callbacks, (callback) => { + disposers.push(entity.adapters.add(key, callback)); + }); + }); + return new MultiDisposer(disposers); + } + }; + var Template = class _Template { + constructor(settings, isReal) { + this._disposed = false; + this._privateSettings = {}; + this._settingEvents = {}; + this._privateSettingEvents = {}; + this._entities = []; + this.states = new TemplateStates(this); + this.adapters = new TemplateAdapters(); + this.events = new EventDispatcher(); + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + this._settings = settings; + } + /** + * Use this method to create an instance of this class. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @param root Root element + * @param settings Settings + * @param template Template + * @return Instantiated object + */ + static new(settings) { + return new _Template(settings, true); + } + _dispose() { + disposeSettings(this._settings); + disposeSettings(this._privateSettings); + } + /** + * Returns `true` if this element is disposed. + * + * @return Disposed + */ + isDisposed() { + return this._disposed; + } + /** + * Disposes this object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + this._dispose(); + } + } + _checkDisposed() { + if (this._disposed) { + throw new Error("Template is disposed"); + } + } + /** + * Array of all entities using this template. + */ + get entities() { + return this._entities; + } + get(key, fallback) { + this._checkDisposed(); + const value = this._settings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + setRaw(key, value) { + this._checkDisposed(); + this._settings[key] = value; + } + set(key, value) { + this._checkDisposed(); + if (this._settings[key] !== value) { + this.setRaw(key, value); + this._entities.forEach((entity) => { + entity._setTemplateProperty(this, key, value); + }); + } + } + remove(key) { + this._checkDisposed(); + if (key in this._settings) { + delete this._settings[key]; + this._entities.forEach((entity) => { + entity._removeTemplateProperty(key); + }); + } + } + removeAll() { + this._checkDisposed(); + each2(this._settings, (key, _value) => { + this.remove(key); + }); + } + getPrivate(key, fallback) { + this._checkDisposed(); + const value = this._privateSettings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + setPrivateRaw(key, value) { + this._checkDisposed(); + this._privateSettings[key] = value; + return value; + } + setPrivate(key, value) { + this._checkDisposed(); + if (this._privateSettings[key] !== value) { + this.setPrivateRaw(key, value); + this._entities.forEach((entity) => { + entity._setTemplatePrivateProperty(this, key, value); + }); + } + return value; + } + removePrivate(key) { + this._checkDisposed(); + if (key in this._privateSettings) { + delete this._privateSettings[key]; + this._entities.forEach((entity) => { + entity._removeTemplatePrivateProperty(key); + }); + } + } + setAll(value) { + this._checkDisposed(); + each2(value, (key, value2) => { + this.set(key, value2); + }); + } + // TODO code duplication with Properties + on(key, callback) { + this._checkDisposed(); + let events = this._settingEvents[key]; + if (events === void 0) { + events = this._settingEvents[key] = []; + } + events.push(callback); + return new Disposer(() => { + removeFirst(events, callback); + if (events.length === 0) { + delete this._settingEvents[key]; + } + }); + } + // TODO code duplication with Properties + onPrivate(key, callback) { + this._checkDisposed(); + let events = this._privateSettingEvents[key]; + if (events === void 0) { + events = this._privateSettingEvents[key] = []; + } + events.push(callback); + return new Disposer(() => { + removeFirst(events, callback); + if (events.length === 0) { + delete this._privateSettingEvents[key]; + } + }); + } + _apply(entity, state) { + this._checkDisposed(); + const disposers = []; + each2(this._settingEvents, (key, events) => { + each(events, (event) => { + disposers.push(entity.on(key, event)); + }); + }); + each2(this._privateSettingEvents, (key, events) => { + each(events, (event) => { + disposers.push(entity.onPrivate(key, event)); + }); + }); + this.states._apply(entity, state); + disposers.push(this.adapters._apply(entity)); + disposers.push(entity.events.copyFrom(this.events)); + return new MultiDisposer(disposers); + } + _setObjectTemplate(entity) { + this._checkDisposed(); + this._entities.push(entity); + } + _removeObjectTemplate(entity) { + remove(this._entities, entity); + } + _stateChanged(name) { + this._checkDisposed(); + this._entities.forEach((entity) => { + entity._applyStateByKey(name); + }); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js + var SpriteEventDispatcher = class _SpriteEventDispatcher extends EventDispatcher { + constructor(sprite) { + super(); + this._rendererDisposers = {}; + this._dispatchParents = true; + this._sprite = sprite; + } + _makePointerEvent(key, event) { + return { + type: key, + originalEvent: event.event, + point: event.point, + simulated: event.simulated, + native: event.native, + target: this._sprite + }; + } + _onRenderer(key, dispatch) { + this._sprite.set("interactive", true); + this._sprite._display.interactive = true; + let events = this._rendererDisposers[key]; + if (events === void 0) { + const disposer = this._sprite._display.on(key, (e) => { + dispatch.call(this, e); + }); + events = this._rendererDisposers[key] = new CounterDisposer(() => { + delete this._rendererDisposers[key]; + disposer.dispose(); + }); + } + return events.increment(); + } + _on(once, type, callback, context, shouldClone, dispatch, debounceDelay) { + const info = super._on(once, type, callback, context, shouldClone, dispatch, debounceDelay); + const rendererEvent = _SpriteEventDispatcher.RENDERER_EVENTS[type]; + if (rendererEvent !== void 0) { + info.disposer = new MultiDisposer([ + info.disposer, + this._onRenderer(type, rendererEvent) + ]); + } + return info; + } + /** + * Will stop any bubbling up of the event to element's parents. + * + * Should be called in an event handler, e.g.: + * + * ```TypeScript + * element.events.on("pointerdown", function(ev) { + * // Do something here and prevent from "pointerdown" bubbling up + * // ... + * ev.target.events.stopParentDispatch(); + * }); + * ``` + * ```JavaScript + * element.events.on("pointerdown", function(ev) { + * // Do something here and prevent from "pointerdown" bubbling up + * // ... + * ev.target.events.stopParentDispatch(); + * }); + * ``` + */ + stopParentDispatch() { + this._dispatchParents = false; + } + /** + * @ignore + */ + dispatchParents(type, event) { + const old = this._dispatchParents; + this._dispatchParents = true; + try { + this.dispatch(type, event); + if (this._dispatchParents && this._sprite.parent) { + this._sprite.parent.events.dispatchParents(type, event); + } + } finally { + this._dispatchParents = old; + } + } + }; + SpriteEventDispatcher.RENDERER_EVENTS = { + "click": function(event) { + if (this.isEnabled("click") && !this._sprite.isDragging() && this._sprite._hasDown() && !this._sprite._hasMoved(this._makePointerEvent("click", event))) { + this.dispatch("click", this._makePointerEvent("click", event)); + } + }, + "rightclick": function(event) { + if (this.isEnabled("rightclick")) { + this.dispatch("rightclick", this._makePointerEvent("rightclick", event)); + } + }, + "middleclick": function(event) { + if (this.isEnabled("middleclick")) { + this.dispatch("middleclick", this._makePointerEvent("middleclick", event)); + } + }, + "dblclick": function(event) { + this.dispatchParents("dblclick", this._makePointerEvent("dblclick", event)); + }, + "pointerover": function(event) { + const sprite = this._sprite; + let dispatch = true; + if (sprite.getPrivate("trustBounds")) { + sprite._getBounds(); + const bounds = sprite.globalBounds(); + if (sprite.isType("Graphics")) { + const strokeWidth = sprite.get("strokeWidth", 1) / 2; + if (strokeWidth >= 1) { + bounds.left -= strokeWidth; + bounds.right += strokeWidth; + bounds.top -= strokeWidth; + bounds.bottom += strokeWidth; + } + } + if (!inBounds(event.point, bounds)) { + dispatch = false; + sprite._root._renderer.removeHovering(sprite._display); + } + } + if (dispatch && this.isEnabled("pointerover")) { + this.dispatch("pointerover", this._makePointerEvent("pointerover", event)); + } + }, + "pointerout": function(event) { + if (this.isEnabled("pointerout")) { + this.dispatch("pointerout", this._makePointerEvent("pointerout", event)); + } + }, + "pointerdown": function(event) { + this.dispatchParents("pointerdown", this._makePointerEvent("pointerdown", event)); + }, + "pointerup": function(event) { + if (this.isEnabled("pointerup")) { + this.dispatch("pointerup", this._makePointerEvent("pointerup", event)); + } + }, + "globalpointerup": function(event) { + if (this.isEnabled("globalpointerup")) { + this.dispatch("globalpointerup", this._makePointerEvent("globalpointerup", event)); + } + }, + "globalpointermove": function(event) { + if (this.isEnabled("globalpointermove")) { + this.dispatch("globalpointermove", this._makePointerEvent("globalpointermove", event)); + } + }, + "wheel": function(event) { + this.dispatchParents("wheel", { + type: "wheel", + target: this._sprite, + originalEvent: event.event, + point: event.point + }); + } + }; + var Sprite = class extends Entity { + constructor() { + super(...arguments); + this._adjustedLocalBounds = { left: 0, right: 0, top: 0, bottom: 0 }; + this._localBounds = { left: 0, right: 0, top: 0, bottom: 0 }; + this._sizeDirty = false; + this._isDragging = false; + this._isHidden = false; + this._isShowing = false; + this._isHiding = false; + this._isDown = false; + this._downPoints = {}; + } + _afterNew() { + this.setPrivateRaw("visible", true); + super._afterNew(); + } + /** + * Marks some setting as dirty. Could be used to trigger adapter. + * @param key + */ + markDirtyKey(key) { + this._markDirtyKey(key); + } + _markDirtyKey(key) { + super._markDirtyKey(key); + if (key == "x" || key == "y" || key == "dx" || key == "dy") { + this.markDirtyBounds(); + this._addPercentagePositionChildren(); + this.markDirtyPosition(); + } + } + _markDirtyPrivateKey(key) { + super._markDirtyPrivateKey(key); + if (key == "x" || key == "y") { + this.markDirtyPosition(); + } + } + _removeTemplateField() { + if (this._templateField) { + this._templateField._removeObjectTemplate(this); + } + } + _createEvents() { + return new SpriteEventDispatcher(this); + } + _processTemplateField() { + let template; + const field = this.get("templateField"); + if (field) { + const dataItem = this.dataItem; + if (dataItem) { + const context = dataItem.dataContext; + if (context) { + template = context[field]; + if (!(template instanceof Template) && template) { + template = Template.new(template); + } + } + } + } + if (this._templateField !== template) { + this._removeTemplateField(); + this._templateField = template; + if (template) { + template._setObjectTemplate(this); + } + this._applyTemplates(); + } + } + // TODO change this to run before the element is added to the parent, so that way + // it doesn't need to apply the themes twice + _setDataItem(dataItem) { + const oldDataItem = this._dataItem; + this._dataItem = dataItem; + this._processTemplateField(); + const eventType = "dataitemchanged"; + if (dataItem != oldDataItem) { + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { + type: eventType, + target: this, + oldDataItem, + newDataItem: dataItem + }); + } + } + } + /** + * A [[DataItem]] used for this element. + * + * NOTE: data item is being assigned automatically in most cases where it + * matters. Use this accessor to set data item only if you know what you're + * doing. + * + * @param value Data item + */ + set dataItem(value) { + this._setDataItem(value); + } + /** + * @return DataItem + */ + get dataItem() { + if (this._dataItem) { + return this._dataItem; + } else { + let parent = this._parent; + while (parent) { + if (parent._dataItem) { + return parent._dataItem; + } else { + parent = parent._parent; + } + } + } + } + _addPercentageSizeChildren() { + let parent = this.parent; + if (parent) { + if (this.get("width") instanceof Percent || this.get("height") instanceof Percent) { + pushOne(parent._percentageSizeChildren, this); + } else { + removeFirst(parent._percentageSizeChildren, this); + } + } + } + _addPercentagePositionChildren() { + let parent = this.parent; + if (parent) { + if (this.get("x") instanceof Percent || this.get("y") instanceof Percent) { + pushOne(parent._percentagePositionChildren, this); + } else { + removeFirst(parent._percentagePositionChildren, this); + } + } + } + /** + * @ignore + */ + markDirtyPosition() { + this._root._addDirtyPosition(this); + } + updatePivotPoint() { + const bounds = this._localBounds; + if (bounds) { + const centerX = this.get("centerX"); + if (centerX != null) { + this._display.pivot.x = bounds.left + relativeToValue(centerX, bounds.right - bounds.left); + } + const centerY = this.get("centerY"); + if (centerY != null) { + this._display.pivot.y = bounds.top + relativeToValue(centerY, bounds.bottom - bounds.top); + } + } + } + _beforeChanged() { + super._beforeChanged(); + this._handleStates(); + if (this.isDirty("tooltip")) { + const previous = this._prevSettings.tooltip; + if (previous) { + previous.dispose(); + } + } + if (this.isDirty("layer") || this.isDirty("layerMargin")) { + this._display.setLayer(this.get("layer"), this.get("layerMargin")); + this.markDirtyLayer(); + } + if (this.isDirty("tooltipPosition")) { + const tooltipMoveDp = this._tooltipMoveDp; + if (tooltipMoveDp) { + tooltipMoveDp.dispose(); + this._tooltipMoveDp = void 0; + } + const tooltipPointerDp = this._tooltipPointerDp; + if (tooltipPointerDp) { + tooltipPointerDp.dispose(); + this._tooltipPointerDp = void 0; + } + if (this.get("tooltipPosition") == "pointer") { + if (this.isHover()) { + this._tooltipMoveDp = this.events.on("globalpointermove", (e) => { + this.showTooltip(e.point); + }); + } + this._tooltipPointerDp = new MultiDisposer([ + this.events.on("pointerover", () => { + this._tooltipMoveDp = this.events.on("globalpointermove", (e) => { + this.showTooltip(e.point); + }); + }), + this.events.on("pointerout", () => { + const tooltipMoveDp2 = this._tooltipMoveDp; + if (tooltipMoveDp2) { + tooltipMoveDp2.dispose(); + this._tooltipMoveDp = void 0; + } + }) + ]); + } + } + } + _handleStates() { + if (this.isDirty("active")) { + if (this.get("active")) { + this.states.applyAnimate("active"); + this.set("ariaChecked", true); + } else { + if (!this.isHidden()) { + this.states.applyAnimate("default"); + } + this.set("ariaChecked", false); + } + this.markDirtyAccessibility(); + } + if (this.isDirty("disabled")) { + if (this.get("disabled")) { + this.states.applyAnimate("disabled"); + this.set("ariaChecked", false); + } else { + if (!this.isHidden()) { + this.states.applyAnimate("default"); + } + this.set("ariaChecked", true); + } + this.markDirtyAccessibility(); + } + } + _changed() { + super._changed(); + const display = this._display; + const events = this.events; + if (this.isDirty("draggable")) { + const draggable = this.get("draggable"); + if (draggable) { + this.set("interactive", true); + this._dragDp = new MultiDisposer([ + events.on("pointerdown", (ev) => { + this.dragStart(ev); + }), + events.on("globalpointermove", (ev) => { + this.dragMove(ev); + }), + events.on("globalpointerup", (ev) => { + this.dragStop(ev); + }) + ]); + } else { + if (this._dragDp) { + this._dragDp.dispose(); + this._dragDp = void 0; + } + } + display.cancelTouch = draggable ? true : false; + } + if (this.isDirty("tooltipText") || this.isDirty("tooltipHTML") || this.isDirty("showTooltipOn")) { + const tooltipText = this.get("tooltipText"); + const tooltipHTML = this.get("tooltipHTML"); + const showTooltipOn = this.get("showTooltipOn", "hover"); + if (this._tooltipDp) { + this._tooltipDp.dispose(); + this._tooltipDp = void 0; + } + if (tooltipText || tooltipHTML) { + if (showTooltipOn == "click") { + this._tooltipDp = new MultiDisposer([ + events.on("click", () => { + this.setTimeout(() => { + const tooltip = this.getTooltip(); + if (tooltip && !tooltip.isHidden() && tooltip.get("tooltipTarget") === this) { + this.hideTooltip(); + } else { + this.showTooltip(); + } + }, 10); + }), + addEventListener(document, "click", (_ev) => { + this.hideTooltip(); + }) + ]); + this._disposers.push(this._tooltipDp); + } else if (showTooltipOn == "always") { + } else { + this._tooltipDp = new MultiDisposer([ + events.on("pointerover", () => { + this.showTooltip(); + }), + events.on("pointerout", () => { + this.hideTooltip(); + }) + ]); + this._disposers.push(this._tooltipDp); + } + } + } + if (this.isDirty("toggleKey")) { + let toggleKey = this.get("toggleKey"); + if (toggleKey && toggleKey != "none") { + this._toggleDp = events.on("click", () => { + if (!this._isDragging) { + this.set(toggleKey, !this.get(toggleKey)); + } + }); + } else { + if (this._toggleDp) { + this._toggleDp.dispose(); + this._toggleDp = void 0; + } + } + } + if (this.isDirty("opacity")) { + display.alpha = Math.max(0, this.get("opacity", 1)); + if (this.get("focusable")) { + this.markDirtyAccessibility(); + } + } + if (this.isDirty("rotation")) { + this.markDirtyBounds(); + display.angle = this.get("rotation", 0); + } + if (this.isDirty("scale")) { + this.markDirtyBounds(); + display.scale = this.get("scale", 0); + } + if (this.isDirty("centerX") || this.isDirty("centerY")) { + this.markDirtyBounds(); + this.updatePivotPoint(); + } + if (this.isDirty("visible") || this.isPrivateDirty("visible") || this.isDirty("forceHidden")) { + if (!this.get("visible") || !this.getPrivate("visible") || this.get("forceHidden")) { + display.visible = false; + this.hideTooltip(); + } else { + display.visible = true; + } + this.markDirtyBounds(); + if (this.get("focusable")) { + this.markDirtyAccessibility(); + } + } + if (this.isDirty("width") || this.isDirty("height")) { + this.markDirtyBounds(); + this._addPercentageSizeChildren(); + const parent = this.parent; + if (parent) { + if (this.isDirty("width") && this.get("width") instanceof Percent || this.isDirty("height") && this.get("height") instanceof Percent) { + parent.markDirty(); + parent._prevWidth = 0; + } + } + this._sizeDirty = true; + } + if (this.isDirty("maxWidth") || this.isDirty("maxHeight") || this.isPrivateDirty("width") || this.isPrivateDirty("height") || this.isDirty("minWidth") || this.isDirty("minHeight") || this.isPrivateDirty("maxWidth") || this.isPrivateDirty("maxHeight") || this.isPrivateDirty("minWidth") || this.isPrivateDirty("minHeight") || this.isDirty("marginLeft") || this.isDirty("marginTop") || this.isDirty("marginRight") || this.isDirty("marginBottom")) { + this.markDirtyBounds(); + this._sizeDirty = true; + } + if (this._sizeDirty) { + this._updateSize(); + } + if (this.isDirty("wheelable")) { + const wheelable = this.get("wheelable"); + if (wheelable) { + this.set("interactive", true); + } + display.wheelable = wheelable ? true : false; + } + if (this.isDirty("tabindexOrder") || this.isDirty("focusableGroup")) { + if (this.get("focusable")) { + this._root._registerTabindexOrder(this); + } else { + this._root._unregisterTabindexOrder(this); + } + } + if (this.isDirty("filter")) { + display.filter = this.get("filter"); + } + let filter = this.get("filter", ""); + if (this.isDirty("blur")) { + const blur2 = this.get("blur", 0); + if (blur2 != 0) { + filter += " blur(" + blur2 + "px)"; + } + } + if (this.isDirty("saturate")) { + const saturate2 = this.get("saturate", 1); + if (saturate2 != 1) { + filter += " saturate(" + saturate2 + ")"; + } + } + if (this.isDirty("brightness")) { + const brightness = this.get("brightness", 1); + if (brightness != 1) { + filter += " brightness(" + brightness + ")"; + } + } + if (this.isDirty("contrast")) { + const contrast = this.get("contrast", 1); + if (contrast != 1) { + filter += " contrast(" + contrast + ")"; + } + } + if (this.isDirty("sepia")) { + const sepia = this.get("sepia", 0); + if (sepia != 0) { + filter += " sepia(" + sepia + ")"; + } + } + if (this.isDirty("hue")) { + const hue = this.get("hue", 0); + if (hue != 0) { + filter += " hue-rotate(" + hue + "deg)"; + } + } + if (this.isDirty("invert")) { + const invert = this.get("invert", 0); + if (invert != 0) { + filter += " invert(" + invert + ")"; + } + } + if (filter) { + display.filter = filter; + } + if (this.isDirty("cursorOverStyle")) { + display.cursorOverStyle = this.get("cursorOverStyle"); + } + if (this.isDirty("hoverOnFocus")) { + if (this.get("hoverOnFocus")) { + this._focusDp = new MultiDisposer([ + events.on("focus", () => { + this.showTooltip(); + }), + events.on("blur", () => { + this.hideTooltip(); + }) + ]); + } else { + if (this._focusDp) { + this._focusDp.dispose(); + this._focusDp = void 0; + } + } + } + if (this.isDirty("focusable")) { + if (this.get("focusable")) { + this._root._registerTabindexOrder(this); + } else { + this._root._unregisterTabindexOrder(this); + } + this.markDirtyAccessibility(); + this._disposers.push(events.on("blur", () => { + this.setPrivateRaw("touchHovering", false); + })); + this._disposers.push(events.once("boundschanged", () => { + this.markDirtyAccessibility(); + })); + } + if (this.isPrivateDirty("focusable")) { + this.markDirtyAccessibility(); + } + if (this.isDirty("role") || this.isDirty("ariaLive") || this.isDirty("ariaChecked") || this.isDirty("ariaHidden") || this.isDirty("ariaOrientation") || this.isDirty("ariaValueNow") || this.isDirty("ariaValueMin") || this.isDirty("ariaValueMax") || this.isDirty("ariaValueText") || this.isDirty("ariaLabel") || this.isDirty("ariaControls")) { + this.markDirtyAccessibility(); + } + if (this.isDirty("exportable")) { + display.exportable = this.get("exportable"); + } + if (this.isDirty("interactive")) { + const events2 = this.events; + if (this.get("interactive") && !events2.isDisposed()) { + this._hoverDp = new MultiDisposer([ + events2.on("click", (ev) => { + if (isTouchEvent(ev.originalEvent)) { + if (!this.getPrivate("touchHovering")) { + this.setTimeout(() => { + this._handleOver(); + if (this.get("tooltipText") || this.get("tooltipHTML")) { + this.showTooltip(); + } + this.setPrivateRaw("touchHovering", true); + this.events.dispatch("pointerover", { + type: "pointerover", + target: ev.target, + originalEvent: ev.originalEvent, + point: ev.point, + simulated: ev.simulated + }); + }, 10); + } + } + }), + events2.on("globalpointerup", (ev) => { + if (isTouchEvent(ev.originalEvent)) { + if (this.getPrivate("touchHovering")) { + this._handleOut(); + if (this.get("tooltipText") || this.get("tooltipHTML")) { + this.hideTooltip(); + } + this.setPrivateRaw("touchHovering", false); + this.events.dispatch("pointerout", { + type: "pointerout", + target: ev.target, + originalEvent: ev.originalEvent, + point: ev.point, + simulated: ev.simulated + }); + } + } + if (this._isDown) { + this._handleUp(ev); + } + }), + events2.on("pointerover", () => { + this._handleOver(); + }), + events2.on("pointerout", () => { + this._handleOut(); + }), + events2.on("pointerdown", (e) => { + this._handleDown(e); + }) + ]); + } else { + this._display.interactive = false; + if (this._hoverDp) { + this._hoverDp.dispose(); + this._hoverDp = void 0; + } + } + } + if (this.isDirty("forceInactive")) { + this._display.inactive = this.get("forceInactive", null); + } + if (this.get("showTooltipOn") == "always" && this._display.visible) { + this.showTooltip(); + } + } + /** + * @ignore + * @todo should this be user-accessible? + */ + dragStart(e) { + this._dragEvent = e; + this.events.stopParentDispatch(); + } + /** + * @ignore + * @todo should this be user-accessible? + */ + dragStop(e) { + this._dragEvent = void 0; + this._dragPoint = void 0; + this.events.stopParentDispatch(); + if (this._isDragging) { + this._isDragging = false; + const type = "dragstop"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { + type, + target: this, + originalEvent: e.originalEvent, + point: e.point, + simulated: e.simulated + }); + } + } + } + _handleOver() { + if (!this.isHidden()) { + if (this.get("active") && this.states.lookup("hoverActive")) { + this.states.applyAnimate("hoverActive"); + } else if (this.get("disabled") && this.states.lookup("hoverDisabled")) { + this.states.applyAnimate("hoverDisabled"); + } else { + this.states.applyAnimate("hover"); + } + if (this.get("draggable") && this._isDown && this.states.lookup("down")) { + this.states.applyAnimate("down"); + } + } + } + _handleOut() { + if (!this.isHidden()) { + if (this.get("active") && this.states.lookup("active")) { + this.states.applyAnimate("active"); + } else if (this.get("disabled") && this.states.lookup("disabled")) { + this.states.applyAnimate("disabled"); + } else { + if (this.states.lookup("hover") || this.states.lookup("hoverActive")) { + this.states.applyAnimate("default"); + } + } + if (this.get("draggable") && this._isDown && this.states.lookup("down")) { + this.states.applyAnimate("down"); + } + } + } + _handleUp(e) { + if (!this.isHidden()) { + if (this.get("active") && this.states.lookup("active")) { + this.states.applyAnimate("active"); + } else if (this.get("disabled") && this.states.lookup("disabled")) { + this.states.applyAnimate("disabled"); + } else if (this.states.lookup("down")) { + if (this.isHover()) { + this.states.applyAnimate("hover"); + } else { + this.states.applyAnimate("default"); + } + } + this._downPoint = void 0; + const pointerId = getPointerId(e.originalEvent); + delete this._downPoints[pointerId]; + if (keys(this._downPoints).length == 0) { + this._isDown = false; + } + } + } + _hasMoved(e) { + const pointerId = getPointerId(e.originalEvent); + const downPoint = this._downPoints[pointerId]; + if (downPoint) { + const x = Math.abs(downPoint.x - e.point.x); + const y = Math.abs(downPoint.y - e.point.y); + return x > 5 || y > 5; + } + return false; + } + _hasDown() { + return keys(this._downPoints).length > 0; + } + _handleDown(e) { + const parent = this.parent; + if (parent && !this.get("draggable")) { + parent._handleDown(e); + } + if (this.get("interactive") && !this.isHidden()) { + if (this.states.lookup("down")) { + this.states.applyAnimate("down"); + } + this._downPoint = { + x: e.point.x, + y: e.point.y + }; + this._isDown = true; + const pointerId = getPointerId(e.originalEvent); + this._downPoints[pointerId] = { + x: e.point.x, + y: e.point.y + }; + } + } + /** + * @ignore + * @todo should this be user-accessible? + */ + dragMove(e) { + let dragEvent = this._dragEvent; + if (dragEvent) { + if (dragEvent.simulated && !e.simulated) { + return true; + } + let angle2 = 0; + let parent = this.parent; + let scale = 1; + while (parent != null) { + angle2 += parent.get("rotation", 0); + parent = parent.parent; + if (parent) { + scale *= parent.get("scale", 1); + } + } + let x = (e.point.x - dragEvent.point.x) / scale; + let y = (e.point.y - dragEvent.point.y) / scale; + const events = this.events; + if (dragEvent.simulated && !this._isDragging) { + this._isDragging = true; + this._dragEvent = e; + this._dragPoint = { + x: this.x(), + y: this.y() + }; + const type = "dragstart"; + if (events.isEnabled(type)) { + events.dispatch(type, { + type, + target: this, + originalEvent: e.originalEvent, + point: e.point, + simulated: e.simulated + }); + } + } + if (this._isDragging) { + let dragPoint = this._dragPoint; + this.set("x", dragPoint.x + x * cos(angle2) + y * sin(angle2)); + this.set("y", dragPoint.y + y * cos(angle2) - x * sin(angle2)); + const type = "dragged"; + if (events.isEnabled(type)) { + events.dispatch(type, { + type, + target: this, + originalEvent: e.originalEvent, + point: e.point, + simulated: e.simulated + }); + } + } else { + if (Math.hypot(x, y) > 5) { + this._isDragging = true; + this._dragEvent = e; + this._dragPoint = { + x: this.x(), + y: this.y() + }; + const type = "dragstart"; + if (events.isEnabled(type)) { + events.dispatch(type, { + type, + target: this, + originalEvent: e.originalEvent, + point: e.point, + simulated: e.simulated + }); + } + } + } + } + } + _updateSize() { + } + _getBounds() { + this._localBounds = this._display.getLocalBounds(); + } + /** + * Returns depth (how deep in the hierachy of the content tree) of this + * element. + * + * @return Depth + */ + depth() { + let self2 = this.parent; + let depth = 0; + while (true) { + if (self2) { + ++depth; + self2 = self2.parent; + } else { + return depth; + } + } + } + /** + * @ignore + */ + markDirtySize() { + this._sizeDirty = true; + this.markDirty(); + } + /** + * @ignore + */ + markDirtyBounds() { + const display = this._display; + if (this.get("isMeasured")) { + this._root._addDirtyBounds(this); + display.isMeasured = true; + display.invalidateBounds(); + const parent = this.parent; + if (parent && this.get("position") != "absolute") { + if (parent.get("width") == null || parent.get("height") == null || parent.get("layout")) { + parent.markDirtyBounds(); + } + } + if (this.get("focusable")) { + this.markDirtyAccessibility(); + } + } + } + /** + * @ignore + */ + markDirtyAccessibility() { + this._root._invalidateAccessibility(this); + } + /** + * @ignore + */ + markDirtyLayer() { + this._display.markDirtyLayer(true); + } + /** + * @ignore + */ + markDirty() { + super.markDirty(); + this.markDirtyLayer(); + } + _updateBounds() { + const oldBounds = this._adjustedLocalBounds; + let newBounds; + if (!this.get("visible") || !this.getPrivate("visible") || this.get("forceHidden")) { + newBounds = { + left: 0, + right: 0, + top: 0, + bottom: 0 + }; + this._localBounds = newBounds; + this._adjustedLocalBounds = newBounds; + } else { + this._getBounds(); + this._fixMinBounds(this._localBounds); + this.updatePivotPoint(); + this._adjustedLocalBounds = this._display.getAdjustedBounds(this._localBounds); + newBounds = this._adjustedLocalBounds; + } + if (!oldBounds || (oldBounds.left !== newBounds.left || oldBounds.top !== newBounds.top || oldBounds.right !== newBounds.right || oldBounds.bottom !== newBounds.bottom)) { + const eventType = "boundschanged"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this }); + } + if (this.parent) { + this.parent.markDirty(); + this.parent.markDirtyBounds(); + } + if (this.getPrivate("showingTooltip")) { + this.showTooltip(); + } + } + } + _fixMinBounds(bounds) { + let minWidth = this.get("minWidth", this.getPrivate("minWidth")); + let minHeight = this.get("minHeight", this.getPrivate("minHeight")); + if (isNumber(minWidth)) { + if (bounds.right - bounds.left < minWidth) { + bounds.right = bounds.left + minWidth; + } + } + if (isNumber(minHeight)) { + if (bounds.bottom - bounds.top < minHeight) { + bounds.bottom = bounds.top + minHeight; + } + } + let privateWidth = this.getPrivate("width"); + let privateHeight = this.getPrivate("height"); + if (isNumber(privateWidth)) { + if (privateWidth > 0) { + bounds.right = bounds.left + privateWidth; + } else { + bounds.left = bounds.right + privateWidth; + } + } + if (isNumber(privateHeight)) { + if (privateHeight > 0) { + bounds.bottom = bounds.top + privateHeight; + } else { + bounds.top = bounds.bottom + privateHeight; + } + } + } + _removeParent(parent) { + if (parent) { + parent.children.removeValue(this); + removeFirst(parent._percentageSizeChildren, this); + removeFirst(parent._percentagePositionChildren, this); + } + } + _clearDirty() { + super._clearDirty(); + this._sizeDirty = false; + } + /** + * Simulate hover over element. + */ + hover() { + if (!this.isDisposed()) { + this.showTooltip(); + this._handleOver(); + } + } + /** + * Simulate unhover over element. + */ + unhover() { + if (!this.isDisposed()) { + this.hideTooltip(); + this._handleOut(); + } + } + /** + * Shows element's [[Tooltip]]. + */ + showTooltip(point) { + if (!this.isDisposed()) { + const tooltip = this.getTooltip(); + const tooltipText = this.get("tooltipText"); + const tooltipHTML = this.get("tooltipHTML"); + if ((tooltipText || tooltipHTML) && tooltip) { + const tooltipPosition = this.get("tooltipPosition"); + const tooltipTarget = this.getPrivate("tooltipTarget", this); + if (tooltipPosition == "fixed" || !point) { + this._display._setMatrix(); + point = this.toGlobal(tooltipTarget._getTooltipPoint()); + } + if (tooltipPosition == "pointer") { + const lastTooltipCoords = this.getPrivate("lastTooltipCoords"); + if (lastTooltipCoords && lastTooltipCoords.x == point.x && lastTooltipCoords.y == point.y) { + return; + } else { + this.setPrivate("lastTooltipCoords", point); + } + } + tooltip.set("pointTo", point); + tooltip.set("tooltipTarget", tooltipTarget); + if (!tooltip.get("x")) { + tooltip.set("x", point.x); + } + if (!tooltip.get("y")) { + tooltip.set("y", point.y); + } + if (tooltipText) { + tooltip.label.set("text", tooltipText); + } + if (tooltipHTML) { + tooltip.label.set("html", tooltipHTML); + } + const dataItem = this.dataItem; + if (dataItem) { + tooltip.label._setDataItem(dataItem); + } + if (this.get("showTooltipOn") == "always" && (point.x < 0 || point.x > this._root.width() || point.y < 0 || point.y > this._root.height())) { + this.hideTooltip(); + return; + } + tooltip.label.text.markDirtyText(); + const promise = tooltip.show(); + this.setPrivateRaw("showingTooltip", true); + return promise; + } + } + } + /** + * Hides element's [[Tooltip]]. + */ + hideTooltip() { + const tooltip = this.getTooltip(); + if (tooltip) { + this.removePrivate("lastTooltipCoords"); + if (tooltip.get("tooltipTarget") == this.getPrivate("tooltipTarget", this) || this.get("tooltip") == tooltip) { + let timeout = tooltip.get("keepTargetHover") && tooltip.get("stateAnimationDuration", 0) == 0 ? 400 : void 0; + const promise = tooltip.hide(timeout); + this.setPrivateRaw("showingTooltip", false); + return promise; + } + } + } + _getTooltipPoint() { + const bounds = this._localBounds; + if (bounds) { + let x = 0; + let y = 0; + if (!this.get("isMeasured")) { + x = relativeToValue(this.get("tooltipX", 0), this.width()); + y = relativeToValue(this.get("tooltipY", 0), this.height()); + } else { + x = bounds.left + relativeToValue(this.get("tooltipX", 0), bounds.right - bounds.left); + y = bounds.top + relativeToValue(this.get("tooltipY", 0), bounds.bottom - bounds.top); + } + return { x, y }; + } + return { x: 0, y: 0 }; + } + /** + * Returns [[Tooltip]] used for this element. + * + * @return Tooltip + */ + getTooltip() { + let tooltip = this.get("tooltip"); + if (!tooltip) { + let parent = this.parent; + if (parent) { + return parent.getTooltip(); + } + } else { + return tooltip; + } + } + _updatePosition() { + const parent = this.parent; + let dx = this.get("dx", 0); + let dy = this.get("dy", 0); + let x = this.get("x"); + let _x = this.getPrivate("x"); + let xx = 0; + let yy = 0; + const position = this.get("position"); + if (x instanceof Percent) { + if (parent) { + x = parent.innerWidth() * x.value + parent.get("paddingLeft", 0); + } else { + x = 0; + } + } + if (isNumber(x)) { + xx = x + dx; + } else { + if (_x != null) { + xx = _x; + } else if (parent) { + if (position == "relative") { + xx = parent.get("paddingLeft", 0) + dx; + } + } + } + let y = this.get("y"); + let _y = this.getPrivate("y"); + if (y instanceof Percent) { + if (parent) { + y = parent.innerHeight() * y.value + parent.get("paddingTop", 0); + } else { + y = 0; + } + } + if (isNumber(y)) { + yy = y + dy; + } else { + if (_y != null) { + yy = _y; + } else if (parent) { + if (position == "relative") { + yy = parent.get("paddingTop", 0) + dy; + } + } + } + const display = this._display; + if (display.x != xx || display.y != yy) { + display.invalidateBounds(); + display.x = xx; + display.y = yy; + const eventType = "positionchanged"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this }); + } + } + if (this.getPrivate("showingTooltip")) { + this.showTooltip(); + } + } + /** + * Returns element's actual X position in pixels. + * + * @return X (px) + */ + x() { + let x = this.get("x"); + let _x = this.getPrivate("x"); + const parent = this.parent; + if (parent) { + if (x instanceof Percent) { + return relativeToValue(x, parent.innerWidth()) + parent.get("paddingLeft", 0); + } else { + if (!isNumber(x)) { + if (_x != null) { + return _x; + } else { + return parent.get("paddingLeft", this._display.x); + } + } else { + return x; + } + } + } + return this._display.x; + } + /** + * Returns element's actual Y position in pixels. + * + * @return Y (px) + */ + y() { + let _y = this.getPrivate("y"); + if (_y != null) { + return _y; + } + let y = this.get("y"); + const parent = this.parent; + if (parent) { + if (y instanceof Percent) { + return relativeToValue(y, parent.innerHeight()) + parent.get("paddingTop", 0); + } else { + if (!isNumber(y)) { + if (_y != null) { + return _y; + } else { + return parent.get("paddingTop", this._display.y); + } + } else { + return y; + } + } + } + return this._display.y; + } + _dispose() { + super._dispose(); + this._display.dispose(); + this._removeTemplateField(); + this._removeParent(this.parent); + this._root._removeFocusElement(this); + const tooltip = this.get("tooltip"); + if (tooltip) { + tooltip.dispose(); + } + this.markDirty(); + } + /** + * @ignore + */ + adjustedLocalBounds() { + this._fixMinBounds(this._adjustedLocalBounds); + return this._adjustedLocalBounds; + } + /** + * Returns local coordinates of the element's bounds. + * + * @ignore + * @return Global bounds + */ + localBounds() { + return this._localBounds; + } + /** + * Returns adjusted local coordinates of the element's bounds. + * + * @ignore + * @return Global bounds + */ + bounds() { + const bounds = this._adjustedLocalBounds; + const x = this.x(); + const y = this.y(); + return { left: bounds.left + x, right: bounds.right + x, top: bounds.top + y, bottom: bounds.bottom + y }; + } + /** + * Returns global coordinates of the element's bounds. + * + * @ignore + * @return Global bounds + */ + globalBounds() { + const bounds = this.localBounds(); + const p03 = this.toGlobal({ x: bounds.left, y: bounds.top }); + const p1 = this.toGlobal({ x: bounds.right, y: bounds.top }); + const p2 = this.toGlobal({ x: bounds.right, y: bounds.bottom }); + const p3 = this.toGlobal({ x: bounds.left, y: bounds.bottom }); + return { + left: Math.min(p03.x, p1.x, p2.x, p3.x), + top: Math.min(p03.y, p1.y, p2.y, p3.y), + right: Math.max(p03.x, p1.x, p2.x, p3.x), + bottom: Math.max(p03.y, p1.y, p2.y, p3.y) + }; + } + _onShow(_duration) { + } + _onHide(_duration) { + } + /** + * Plays initial reveal animation regardless if element is currently hidden + * or visible. + * + * @param duration Duration of the animation in milliseconds + * @param delay Delay showing of the element by X milliseconds + * @return Promise + */ + appear(duration, delay) { + return __awaiter(this, void 0, void 0, function* () { + yield this.hide(0); + if (delay) { + return new Promise((success, _error) => { + this.setTimeout(() => { + success(this.show(duration)); + }, delay); + }); + } else { + return this.show(duration); + } + }); + } + /** + * Shows currently hidden element and returns a `Promise` which completes + * when all showing animations are finished. + * + * ```TypeScript + * series.show().then(function(ev) { + * console.log("Series is now fully visible"); + * }) + * ``` + * ```JavaScript + * series.show().then(function(ev) { + * console.log("Series is now fully visible"); + * }) + * ``` + * + * @return Promise + */ + show(duration) { + return __awaiter(this, void 0, void 0, function* () { + if (!this._isShowing) { + this._isHidden = false; + this._isShowing = true; + this._isHiding = false; + if (this.states.lookup("default").get("visible")) { + this.set("visible", true); + } + this._onShow(duration); + const animations = this.states.applyAnimate("default", duration); + yield waitForAnimations(animations); + this._isShowing = false; + } + }); + } + /** + * Hides the element and returns a `Promise` which completes when all hiding + * animations are finished. + * + * ```TypeScript + * series.hide().then(function(ev) { + * console.log("Series finished hiding"); + * }) + * ``` + * ```JavaScript + * series.hide().then(function(ev) { + * console.log("Series finished hiding"); + * }) + * ``` + * + * @return Promise + */ + hide(duration) { + return __awaiter(this, void 0, void 0, function* () { + if (!this._isHiding && !this._isHidden) { + this._isHiding = true; + this._isShowing = false; + let state = this.states.lookup("hidden"); + if (!state) { + state = this.states.create("hidden", { + "opacity": 0, + "visible": false + }); + } + this._isHidden = true; + this._onHide(duration); + const animations = this.states.applyAnimate("hidden", duration); + yield waitForAnimations(animations); + this._isHiding = false; + } + }); + } + /** + * Returns `true` if this element is currently hidden. + * + * @return Is hidden? + */ + isHidden() { + return this._isHidden; + } + /** + * Returns `true` if this element is currently animating to a default state. + * + * @return Is showing? + */ + isShowing() { + return this._isShowing; + } + /** + * Returns `true` if this element is currently animating to a hidden state. + * + * @return Is hiding? + */ + isHiding() { + return this._isHiding; + } + /** + * Returns `true` if this element is currently hovered by a pointer. + * + * @return Is hovered? + */ + isHover() { + return this._display.hovering(); + } + /** + * Returns `true` if this element does currently have focus. + * + * @return Is focused? + */ + isFocus() { + return this._root.focused(this); + } + /** + * Returns `true` if this element is currently being dragged. + * + * @return Is dragged? + */ + isDragging() { + return this._isDragging; + } + /** + * Returns `false` if if either public or private setting `visible` is set + * to `false`, or `forceHidden` is set to `true`. + * + * @return Visible? + */ + isVisible() { + if (this.get("visible") && this.getPrivate("visible") && !this.get("forceHidden")) { + return true; + } + return false; + } + /** + * Same as `isVisible()`, except it checks all ascendants, too. + * + * @since 5.2.7 + * @return Visible? + */ + isVisibleDeep() { + return this._parent ? this._parent.isVisibleDeep() && this.isVisible() : this.isVisible(); + } + /** + * Returns an actual opacity of the element, taking into account all parents. + * + * @return Opacity + * @since 5.2.11 + */ + compositeOpacity() { + const opacity = this.get("opacity", 1); + return this._parent ? this._parent.compositeOpacity() * opacity : opacity; + } + /** + * Returns an actual scale of the element, taking into account all parents. + * + * @return Opacity + * @since 5.9.2 + */ + compositeScale() { + const scale = this.get("scale", 1); + return this._parent ? this._parent.compositeScale() * scale : scale; + } + /** + * Returns an actual roation of the element, taking into account all parents. + * + * @return Opacity + * @since 5.9.2 + */ + compositeRotation() { + const rotation = this.get("rotation", 0); + return this._parent ? this._parent.compositeRotation() + rotation : rotation; + } + /** + * Returns width of this element in pixels. + * + * @return Width (px) + */ + width() { + let width = this.get("width"); + let maxWidth = this.get("maxWidth", this.getPrivate("maxWidth")); + let minWidth = this.get("minWidth", this.getPrivate("minWidth")); + let privateWidth = this.getPrivate("width"); + let w = 0; + if (isNumber(privateWidth)) { + w = privateWidth; + } else { + if (width == null) { + if (this._adjustedLocalBounds) { + w = this._adjustedLocalBounds.right - this._adjustedLocalBounds.left; + } + } else { + if (width instanceof Percent) { + const parent = this.parent; + if (parent) { + w = parent.innerWidth() * width.value; + } else { + w = this._root.width() * width.value; + } + } else if (isNumber(width)) { + w = width; + } + } + } + if (isNumber(minWidth)) { + w = Math.max(minWidth, w); + } + if (isNumber(maxWidth)) { + w = Math.min(maxWidth, w); + } + return w; + } + /** + * Returns maximum allowed width of this element in pixels. + * + * @return Maximum width (px) + */ + maxWidth() { + let maxWidth = this.get("maxWidth", this.getPrivate("maxWidth")); + if (isNumber(maxWidth)) { + return maxWidth; + } else { + let width = this.get("width"); + if (isNumber(width)) { + return width; + } + } + const parent = this.parent; + if (parent) { + return parent.innerWidth(); + } + return this._root.width(); + } + /** + * Returns maximum allowed height of this element in pixels. + * + * @return Maximum height (px) + */ + maxHeight() { + let maxHeight = this.get("maxHeight", this.getPrivate("maxHeight")); + if (isNumber(maxHeight)) { + return maxHeight; + } else { + let height = this.get("height"); + if (isNumber(height)) { + return height; + } + } + const parent = this.parent; + if (parent) { + return parent.innerHeight(); + } + return this._root.height(); + } + /** + * Returns height of this element in pixels. + * + * @return Height (px) + */ + height() { + let height = this.get("height"); + let maxHeight = this.get("maxHeight", this.getPrivate("maxHeight")); + let minHeight = this.get("minHeight", this.getPrivate("minHeight")); + let privateHeight = this.getPrivate("height"); + let h = 0; + if (isNumber(privateHeight)) { + h = privateHeight; + } else { + if (height == null) { + if (this._adjustedLocalBounds) { + h = this._adjustedLocalBounds.bottom - this._adjustedLocalBounds.top; + } + } else { + if (height instanceof Percent) { + const parent = this.parent; + if (parent) { + h = parent.innerHeight() * height.value; + } else { + h = this._root.height() * height.value; + } + } else if (isNumber(height)) { + h = height; + } + } + } + if (isNumber(minHeight)) { + h = Math.max(minHeight, h); + } + if (isNumber(maxHeight)) { + h = Math.min(maxHeight, h); + } + return h; + } + _findStaticTemplate(f) { + if (this._templateField && f(this._templateField)) { + return this._templateField; + } + return super._findStaticTemplate(f); + } + _walkParents(f) { + if (this._parent || this._virtualParent) { + this._walkParent(f); + } + } + _walkParent(f) { + if (this._parent) { + this._parent._walkParent(f); + } else { + if (this._virtualParent) { + this._virtualParent._walkParent(f); + } + } + f(this); + } + set virtualParent(parent) { + if (this._virtualParent !== parent) { + this._virtualParent = parent; + this._applyThemes(); + } + } + /** + * Parent [[Container]] of this element. + * + * @return Parent container + */ + get parent() { + return this._parent; + } + _setParent(parent, updateChildren = false) { + const prevParent = this._parent; + if (parent !== prevParent) { + this.markDirtyBounds(); + parent.markDirty(); + this._parent = parent; + if (updateChildren) { + this._removeParent(prevParent); + if (parent) { + this._addPercentageSizeChildren(); + this._addPercentagePositionChildren(); + } + } + this.markDirtyPosition(); + this._applyThemes(); + } + } + /** + * Returns an instance of [[NumberFormatter]] used in this element. + * + * If this element does not have it set, global one form [[Root]] is used. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/using-formatters/} for more info + * @return NumberFormatter instace + */ + getNumberFormatter() { + return this.get("numberFormatter", this._root.numberFormatter); + } + /** + * Returns an instance of [[DateFormatter]] used in this element. + * + * If this element does not have it set, global one form [[Root]] is used. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/using-formatters/} for more info + * @return DateFormatter instace + */ + getDateFormatter() { + return this.get("dateFormatter", this._root.dateFormatter); + } + /** + * Returns an instance of [[DurationFormatter]] used in this element. + * + * If this element does not have it set, global one form [[Root]] is used. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/using-formatters/} for more info + * @return DurationFormatter instace + */ + getDurationFormatter() { + return this.get("durationFormatter", this._root.durationFormatter); + } + /** + * Converts X/Y coordinate within this element to a global coordinate. + * + * @param point Local coordinate + * @return Global coordinate + */ + toGlobal(point) { + return this._display.toGlobal(point); + } + /** + * Converts global X/Y coordinate to a coordinate within this element. + * + * @param point Global coordinate + * @return Local coordinate + */ + toLocal(point) { + return this._display.toLocal(point); + } + _getDownPoint() { + const id = this._getDownPointId(); + if (id) { + return this._downPoints[id]; + } + } + _getDownPointId() { + if (this._downPoints) { + return keysOrdered(this._downPoints, (a, b) => { + if (a > b) { + return 1; + } + if (a < b) { + return -1; + } + return 0; + })[0]; + } + } + /** + * Moves sprite to the end of the parent's children array. + * + * Depending on `layout` setting of the parten container, it may effect the + * positioning or overlapping order of the elements. + */ + toFront() { + const parent = this.parent; + if (parent) { + parent.children.moveValue(this, parent.children.length - 1); + } + } + /** + * Moves sprite to the beginning of the parent's children array. + * + * Depending on `layout` setting of the parten container, it may effect the + * positioning or overlapping order of the elements. + */ + toBack() { + const parent = this.parent; + if (parent) { + parent.children.moveValue(this, 0); + } + } + }; + Sprite.className = "Sprite"; + Sprite.classNames = Entity.classNames.concat([Sprite.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/patterns/Pattern.js + var Pattern = class extends Entity { + constructor() { + super(...arguments); + this._display = this._root._renderer.makeGraphics(); + this._backgroundDisplay = this._root._renderer.makeGraphics(); + this._clear = false; + } + _afterNew() { + super._afterNewApplyThemes(); + } + get pattern() { + return this._pattern; + } + _draw() { + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("repetition") || this.isDirty("width") || this.isDirty("height") || this.isDirty("rotation") || this.isDirty("strokeWidth") || this.isDirty("strokeDasharray") || this.isDirty("strokeDashoffset") || this.isDirty("colorOpacity") || this.isDirty("fillOpacity")) { + this._clear = true; + } + this._checkDirtyFill(); + } + _checkDirtyFill() { + if (this.isDirty("color") || this.isDirty("fill")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear) { + const repetition = this.get("repetition", ""); + const width = this.get("width", 100); + const height = this.get("height", 100); + const fill = this.get("fill"); + const fillOpacity = this.get("fillOpacity", 1); + const backgroundDisplay = this._backgroundDisplay; + const display = this._display; + display.clear(); + backgroundDisplay.clear(); + if (fill && fillOpacity > 0) { + backgroundDisplay.beginFill(fill, fillOpacity); + backgroundDisplay.drawRect(0, 0, width, height); + backgroundDisplay.endFill(); + } + display.angle = this.get("rotation", 0); + this._draw(); + this._pattern = this._root._renderer.createPattern(display, backgroundDisplay, repetition, width, height); + } + this._clear = false; + } + }; + Pattern.className = "Pattern"; + Pattern.classNames = Entity.classNames.concat([Pattern.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/patterns/PicturePattern.js + var PicturePattern = class extends Pattern { + _beforeChanged() { + super._beforeChanged(); + this._clear = true; + if (this.isDirty("src")) { + this._load(); + } + const canvas = this.get("canvas"); + if (canvas) { + this.set("width", canvas.width); + this.set("height", canvas.height); + } + } + _draw() { + super._draw(); + const colorOpacity = this.get("colorOpacity"); + if (colorOpacity !== void 0) { + this._display.alpha = Math.max(0, colorOpacity); + } + const image = this._image; + if (image) { + const patternWidth = this.get("width", 100); + const patternHeight = this.get("height", 100); + const fit2 = this.get("fit", "image"); + let width = 0; + let height = 0; + if (fit2 == "pattern") { + width = patternWidth; + height = patternHeight; + this.markDirty(); + } else { + width = image.width; + height = image.height; + if (fit2 == "image") { + this.set("width", width); + this.set("height", height); + } + } + const centered = this.get("centered", true); + let x = 0; + let y = 0; + if (centered) { + x = patternWidth / 2 - width / 2; + y = patternHeight / 2 - height / 2; + } + this._display.image(image, width, height, x, y); + } + const canvas = this.get("canvas"); + if (canvas) { + this._display.image(canvas, canvas.width, canvas.height, 0, 0); + } + } + _load() { + const src = this.get("src"); + if (src) { + const image = new Image(); + image.src = src; + image.decode().then(() => { + this._image = image; + this._draw(); + if (this.events.isEnabled("loaded")) { + this.events.dispatch("loaded", { type: "loaded", target: this }); + } + }).catch((_error) => { + }); + } + } + }; + PicturePattern.className = "PicturePattern"; + PicturePattern.classNames = Pattern.classNames.concat([PicturePattern.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/backend/Renderer.js + var BlendMode; + (function(BlendMode2) { + BlendMode2["ADD"] = "lighter"; + BlendMode2["COLOR"] = "color"; + BlendMode2["COLOR_BURN"] = "color-burn"; + BlendMode2["COLOR_DODGE"] = "color-dodge"; + BlendMode2["DARKEN"] = "darken"; + BlendMode2["DIFFERENCE"] = "difference"; + BlendMode2["DST_OVER"] = "destination-over"; + BlendMode2["EXCLUSION"] = "exclusion"; + BlendMode2["HARD_LIGHT"] = "hard-light"; + BlendMode2["HUE"] = "hue"; + BlendMode2["LIGHTEN"] = "lighten"; + BlendMode2["LUMINOSITY"] = "luminosity"; + BlendMode2["MULTIPLY"] = "multiply"; + BlendMode2["NORMAL"] = "source-over"; + BlendMode2["OVERLAY"] = "overlay"; + BlendMode2["SATURATION"] = "saturation"; + BlendMode2["SCREEN"] = "screen"; + BlendMode2["SOFT_LIGHT"] = "soft-light"; + BlendMode2["SRC_ATOP"] = "source-atop"; + BlendMode2["XOR"] = "xor"; + })(BlendMode || (BlendMode = {})); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Graphics.js + var Graphics = class extends Sprite { + constructor() { + super(...arguments); + this._display = this._root._renderer.makeGraphics(); + this._clear = false; + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("draw") || this.isDirty("svgPath")) { + this.markDirtyBounds(); + } + if (this.isDirty("fill") || this.isDirty("stroke") || this.isDirty("visible") || this.isDirty("forceHidden") || this.isDirty("scale") || this.isDirty("fillGradient") || this.isDirty("strokeGradient") || this.isDirty("fillPattern") || this.isDirty("strokePattern") || this.isDirty("fillOpacity") || this.isDirty("strokeOpacity") || this.isDirty("strokeWidth") || this.isDirty("draw") || this.isDirty("blendMode") || this.isDirty("strokeDasharray") || this.isDirty("strokeDashoffset") || this.isDirty("svgPath") || this.isDirty("lineJoin") || this.isDirty("lineCap") || this.isDirty("shadowColor") || this.isDirty("shadowBlur") || this.isDirty("shadowOffsetX") || this.isDirty("shadowOffsetY")) { + this._clear = true; + } + this._display.crisp = this.get("crisp", false); + if (this.isDirty("fillGradient")) { + const gradient = this.get("fillGradient"); + if (gradient) { + this._display.isMeasured = true; + const gradientTarget = gradient.get("target"); + if (gradientTarget) { + this._disposers.push(gradientTarget.events.on("boundschanged", () => { + this._markDirtyKey("fill"); + })); + this._disposers.push(gradientTarget.events.on("positionchanged", () => { + this._markDirtyKey("fill"); + })); + } + } + } + if (this.isDirty("strokeGradient")) { + const gradient = this.get("strokeGradient"); + if (gradient) { + this._display.isMeasured = true; + const gradientTarget = gradient.get("target"); + if (gradientTarget) { + this._disposers.push(gradientTarget.events.on("boundschanged", () => { + this._markDirtyKey("stroke"); + })); + this._disposers.push(gradientTarget.events.on("positionchanged", () => { + this._markDirtyKey("stroke"); + })); + } + } + } + } + _changed() { + super._changed(); + if (this._clear) { + this.markDirtyBounds(); + this.markDirtyLayer(); + this._display.clear(); + let strokeDasharray = this.get("strokeDasharray"); + if (isNumber(strokeDasharray)) { + if (strokeDasharray < 0.5) { + strokeDasharray = [0]; + } else { + strokeDasharray = [strokeDasharray]; + } + } + this._display.setLineDash(strokeDasharray); + const strokeDashoffset = this.get("strokeDashoffset"); + if (strokeDashoffset) { + this._display.setLineDashOffset(strokeDashoffset); + } + const blendMode = this.get("blendMode", BlendMode.NORMAL); + this._display.blendMode = blendMode; + const draw = this.get("draw"); + if (draw && typeof draw === "function") { + draw(this._display, this); + } + const svgPath = this.get("svgPath"); + if (svgPath != null) { + this._display.svgPath(svgPath); + } + } + } + _afterChanged() { + super._afterChanged(); + if (this._clear) { + const fill = this.get("fill"); + const fillGradient = this.get("fillGradient"); + const fillPattern = this.get("fillPattern"); + const fillOpacity = this.get("fillOpacity"); + const stroke = this.get("stroke"); + const strokeGradient = this.get("strokeGradient"); + const strokePattern = this.get("strokePattern"); + const shadowColor = this.get("shadowColor"); + const shadowBlur = this.get("shadowBlur"); + const shadowOffsetX = this.get("shadowOffsetX"); + const shadowOffsetY = this.get("shadowOffsetY"); + const shadowOpacity = this.get("shadowOpacity"); + if (shadowColor && (shadowBlur || shadowOffsetX || shadowOffsetY)) { + this._display.shadow(shadowColor, shadowBlur, shadowOffsetX, shadowOffsetY, shadowOpacity); + } + if (fill && !fillGradient) { + this._display.beginFill(fill, fillOpacity); + this._display.endFill(); + } + if (fillGradient) { + if (fill) { + const stops = fillGradient.get("stops", []); + if (stops.length) { + each(stops, (stop) => { + if ((!stop.color || stop.colorInherited) && fill) { + stop.color = fill; + stop.colorInherited = true; + } + if (stop.opacity == null || stop.opacityInherited) { + stop.opacity = fillOpacity; + stop.opacityInherited = true; + } + }); + } + } + const gradient = fillGradient.getFill(this); + if (gradient) { + this._display.beginFill(gradient, fillOpacity); + this._display.endFill(); + } + } + if (fillPattern) { + const pattern = fillPattern.pattern; + if (pattern) { + this._display.beginFill(pattern, fillOpacity); + this._display.endFill(); + if (fillPattern instanceof PicturePattern) { + fillPattern.events.once("loaded", () => { + this._clear = true; + this.markDirty(); + }); + } + } + } + if (stroke || strokeGradient || strokePattern) { + const strokeOpacity = this.get("strokeOpacity"); + let strokeWidth = this.get("strokeWidth", 1); + if (this.get("nonScalingStroke")) { + strokeWidth = strokeWidth / this.get("scale", 1); + } + if (this.get("crisp")) { + strokeWidth /= this._root._renderer.resolution; + } + const lineJoin = this.get("lineJoin"); + const lineCap = this.get("lineCap"); + if (stroke && !strokeGradient) { + this._display.lineStyle(strokeWidth, stroke, strokeOpacity, lineJoin, lineCap); + this._display.endStroke(); + } + if (strokeGradient) { + const stops = strokeGradient.get("stops", []); + if (stops.length) { + each(stops, (stop) => { + if ((!stop.color || stop.colorInherited) && stroke) { + stop.color = stroke; + stop.colorInherited = true; + } + if (stop.opacity == null || stop.opacityInherited) { + stop.opacity = strokeOpacity; + stop.opacityInherited = true; + } + }); + } + const gradient = strokeGradient.getFill(this); + if (gradient) { + this._display.lineStyle(strokeWidth, gradient, strokeOpacity, lineJoin, lineCap); + this._display.endStroke(); + } + } + if (strokePattern) { + let pattern = strokePattern.pattern; + if (pattern) { + this._display.lineStyle(strokeWidth, pattern, strokeOpacity, lineJoin, lineCap); + this._display.endStroke(); + if (strokePattern instanceof PicturePattern) { + strokePattern.events.once("loaded", () => { + this._clear = true; + this.markDirty(); + }); + } + } + } + } + if (this.getPrivate("showingTooltip")) { + this.showTooltip(); + } + } + this._clear = false; + } + }; + Graphics.className = "Graphics"; + Graphics.classNames = Sprite.classNames.concat([Graphics.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Rectangle.js + var Rectangle = class extends Graphics { + _afterNew() { + super._afterNew(); + this._display.isMeasured = true; + this.setPrivateRaw("trustBounds", true); + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("width") || this.isDirty("height") || this.isPrivateDirty("width") || this.isPrivateDirty("height")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear && !this.get("draw")) { + this._draw(); + } + } + _draw() { + let w = this.width(); + let h = this.height(); + let x = 0; + let y = 0; + let wSign = w / Math.abs(w); + let hSign = h / Math.abs(h); + if (this.get("containStroke", false)) { + const strokeWidth = this.get("strokeWidth", 0); + w -= strokeWidth * wSign; + h -= strokeWidth * hSign; + x += strokeWidth / 2 * wSign; + y += strokeWidth / 2 * hSign; + } + this._display.drawRect(x, y, w, h); + } + _updateSize() { + this.markDirty(); + this._clear = true; + } + }; + Rectangle.className = "Rectangle"; + Rectangle.classNames = Graphics.classNames.concat([Rectangle.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Layout.js + function eachChildren(container, f) { + if (container.get("reverseChildren", false)) { + container.children.eachReverse(f); + } else { + container.children.each(f); + } + } + var Layout = class extends Entity { + }; + Layout.className = "Layout"; + Layout.classNames = Entity.classNames.concat([Layout.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/HorizontalLayout.js + var HorizontalLayout = class extends Layout { + /** + * @ignore + */ + updateContainer(container) { + let paddingLeft = container.get("paddingLeft", 0); + let availableWidth = container.innerWidth(); + let totalPercent = 0; + eachChildren(container, (child) => { + if (child.isVisible()) { + if (child.get("position") == "relative") { + let childWidth = child.get("width"); + if (childWidth instanceof Percent) { + totalPercent += childWidth.value; + let w = availableWidth * childWidth.value; + let minWidth = child.get("minWidth", child.getPrivate("minWidth", -Infinity)); + if (minWidth > w) { + availableWidth -= minWidth; + totalPercent -= childWidth.value; + } + let maxWidth = child.get("maxWidth", child.getPrivate("maxWidth", Infinity)); + if (w > maxWidth) { + availableWidth -= maxWidth; + totalPercent -= childWidth.value; + } + } else { + if (!isNumber(childWidth)) { + childWidth = child.width(); + } + availableWidth -= childWidth + child.get("marginLeft", 0) + child.get("marginRight", 0); + } + } + } + }); + if (availableWidth <= 0 || availableWidth == Infinity) { + availableWidth = 0.1; + } + eachChildren(container, (child) => { + if (child.isVisible()) { + if (child.get("position") == "relative") { + let childWidth = child.get("width"); + if (childWidth instanceof Percent) { + let privateWidth = availableWidth * childWidth.value / totalPercent - child.get("marginLeft", 0) - child.get("marginRight", 0); + let minWidth = child.get("minWidth", child.getPrivate("minWidth", -Infinity)); + let maxWidth = child.get("maxWidth", child.getPrivate("maxWidth", Infinity)); + privateWidth = Math.min(Math.max(minWidth, privateWidth), maxWidth); + child.setPrivate("width", privateWidth); + } else { + if (child._prevSettings.width instanceof Percent) { + child.setPrivate("width", void 0); + } + } + } + } + }); + let prevX = paddingLeft; + eachChildren(container, (child) => { + if (child.get("position") == "relative") { + if (child.isVisible()) { + let bounds = child.adjustedLocalBounds(); + let marginLeft = child.get("marginLeft", 0); + let marginRight = child.get("marginRight", 0); + let maxWidth = child.get("maxWidth"); + let left = bounds.left; + let right = bounds.right; + if (maxWidth) { + if (right - left > maxWidth) { + right = left + maxWidth; + } + } + let x = prevX + marginLeft - left; + child.setPrivate("x", x); + prevX = x + right + marginRight; + } else { + child.setPrivate("x", void 0); + } + } + }); + } + }; + HorizontalLayout.className = "HorizontalLayout"; + HorizontalLayout.classNames = Layout.classNames.concat([HorizontalLayout.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/VerticalLayout.js + var VerticalLayout = class extends Layout { + /** + * @ignore + */ + updateContainer(container) { + let paddingTop = container.get("paddingTop", 0); + let availableHeight = container.innerHeight(); + let totalPercent = 0; + eachChildren(container, (child) => { + if (child.isVisible()) { + if (child.get("position") == "relative") { + let childHeight = child.get("height"); + if (childHeight instanceof Percent) { + totalPercent += childHeight.value; + let h = availableHeight * childHeight.value; + let minHeight = child.get("minHeight", child.getPrivate("minHeight", -Infinity)); + if (minHeight > h) { + availableHeight -= minHeight; + totalPercent -= childHeight.value; + } + let maxHeight = child.get("maxHeight", child.getPrivate("maxHeight", Infinity)); + if (h > maxHeight) { + availableHeight -= maxHeight; + totalPercent -= childHeight.value; + } + } else { + if (!isNumber(childHeight)) { + childHeight = child.height(); + } + availableHeight -= childHeight + child.get("marginTop", 0) + child.get("marginBottom", 0); + } + } + } + }); + if (availableHeight <= 0 || availableHeight == Infinity) { + availableHeight = 0.1; + } + eachChildren(container, (child) => { + if (child.isVisible()) { + if (child.get("position") == "relative") { + let childHeight = child.get("height"); + if (childHeight instanceof Percent) { + let privateHeight = availableHeight * childHeight.value / totalPercent - child.get("marginTop", 0) - child.get("marginBottom", 0); + let minHeight = child.get("minHeight", child.getPrivate("minHeight", -Infinity)); + let maxHeight = child.get("maxHeight", child.getPrivate("maxHeight", Infinity)); + privateHeight = Math.min(Math.max(minHeight, privateHeight), maxHeight); + child.setPrivate("height", privateHeight); + } else { + if (child._prevSettings.height instanceof Percent) { + child.setPrivate("height", void 0); + } + } + } + } + }); + let prevY = paddingTop; + eachChildren(container, (child) => { + if (child.get("position") == "relative") { + if (child.isVisible()) { + let bounds = child.adjustedLocalBounds(); + let marginTop = child.get("marginTop", 0); + let top = bounds.top; + let bottom = bounds.bottom; + let maxHeight = child.get("maxHeight"); + if (maxHeight) { + if (bottom - top > maxHeight) { + bottom = top + maxHeight; + } + } + let marginBottom = child.get("marginBottom", 0); + let y = prevY + marginTop - top; + child.setPrivate("y", y); + prevY = y + bottom + marginBottom; + } else { + child.setPrivate("y", void 0); + } + } + }); + } + }; + VerticalLayout.className = "VerticalLayout"; + VerticalLayout.classNames = Layout.classNames.concat([VerticalLayout.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/GridLayout.js + var GridLayout = class extends Layout { + _afterNew() { + this._setRawDefault("maxColumns", Number.MAX_VALUE); + super._afterNew(); + } + /** + * @ignore + */ + updateContainer(container) { + let paddingLeft = container.get("paddingLeft", 0); + let paddingRight = container.get("paddingRight", 0); + let paddingTop = container.get("paddingTop", 0); + let availableWidth = container.maxWidth() - paddingLeft - paddingRight; + let minCellWidth = availableWidth; + let maxCellWidth = 1; + eachChildren(container, (child) => { + if (child.get("visible") && child.getPrivate("visible") && !child.get("forceHidden")) { + if (child.get("position") != "absolute") { + let childWidth = child.width(); + if (childWidth < minCellWidth) { + minCellWidth = childWidth; + } + if (childWidth > maxCellWidth) { + maxCellWidth = childWidth; + } + } + } + }); + minCellWidth = fitToRange(minCellWidth, 1, availableWidth); + maxCellWidth = fitToRange(maxCellWidth, 1, availableWidth); + let columnCount = 1; + if (this.get("fixedWidthGrid")) { + columnCount = availableWidth / maxCellWidth; + } else { + columnCount = availableWidth / minCellWidth; + } + columnCount = Math.max(1, Math.floor(columnCount)); + columnCount = Math.min(this.get("maxColumns", Number.MAX_VALUE), columnCount); + let columnWidths = this.getColumnWidths(container, columnCount, maxCellWidth, availableWidth); + let prevY = paddingTop; + let column = 0; + let maxRowHeight = 0; + columnCount = columnWidths.length; + let prevX = paddingLeft; + eachChildren(container, (child) => { + if (child.get("position") == "relative" && child.isVisible()) { + const marginTop = child.get("marginTop", 0); + const marginBottom = child.get("marginBottom", 0); + let bounds = child.adjustedLocalBounds(); + let marginLeft = child.get("marginLeft", 0); + let marginRight = child.get("marginRight", 0); + let x = prevX + marginLeft - bounds.left; + let y = prevY + marginTop - bounds.top; + child.setPrivate("x", x); + child.setPrivate("y", y); + prevX += columnWidths[column] + marginRight; + maxRowHeight = Math.max(maxRowHeight, child.height() + marginTop + marginBottom); + column++; + if (column >= columnCount) { + column = 0; + prevX = paddingLeft; + prevY += maxRowHeight; + maxRowHeight = 0; + } + } + }); + } + /** + * @ignore + */ + getColumnWidths(container, columnCount, maxCellWidth, availableWidth) { + let totalWidth = 0; + let columnWidths = []; + let column = 0; + eachChildren(container, (child) => { + let bounds = child.adjustedLocalBounds(); + if (child.get("position") != "absolute" && child.isVisible()) { + if (this.get("fixedWidthGrid")) { + columnWidths[column] = maxCellWidth; + } else { + columnWidths[column] = Math.max(columnWidths[column] | 0, bounds.right - bounds.left + child.get("marginLeft", 0) + child.get("marginRight", 0)); + } + if (column < container.children.length - 1) { + column++; + if (column == columnCount) { + column = 0; + } + } + } + }); + each(columnWidths, (w) => { + totalWidth += w; + }); + if (totalWidth > availableWidth) { + if (columnCount > 2) { + columnCount -= 1; + return this.getColumnWidths(container, columnCount, maxCellWidth, availableWidth); + } else { + return [availableWidth]; + } + } + return columnWidths; + } + }; + GridLayout.className = "GridLayout"; + GridLayout.classNames = Layout.classNames.concat([GridLayout.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/TextFormatter.js + var TextFormatter = class { + /** + * Replaces brackets with temporary placeholders. + * + * @ignore Exclude from docs + * @param text Input text + * @return Escaped text + */ + static escape(text) { + return text.replace(/\[\[/g, this.prefix + "1").replace(/([^\/\]]{1})\]\]/g, "$1" + this.prefix + "2").replace(/\]\]/g, this.prefix + "2").replace(/\{\{/g, this.prefix + "3").replace(/\}\}/g, this.prefix + "4").replace(/\'\'/g, this.prefix + "5"); + } + /** + * Replaces placeholders back to brackets. + * + * @ignore Exclude from docs + * @param text Escaped text + * @return Unescaped text + */ + static unescape(text) { + return text.replace(new RegExp(this.prefix + "1", "g"), "[[").replace(new RegExp(this.prefix + "2", "g"), "]]").replace(new RegExp(this.prefix + "3", "g"), "{{").replace(new RegExp(this.prefix + "4", "g"), "}}").replace(new RegExp(this.prefix + "5", "g"), "''"); + } + /** + * Cleans up the text text for leftover double square brackets. + * + * @ignore Exclude from docs + * @param text Input text + * @return Cleaned up text + */ + static cleanUp(text) { + return text.replace(/\[\[/g, "[").replace(/\]\]/g, "]").replace(/\{\{/g, "{").replace(/\}\}/g, "}").replace(/\'\'/g, "'"); + } + /** + * Splits string into chunks. (style blocks, quoted blocks, regular blocks) + * + * If the second parameter `quotedBlocks` is set to `true` this method will + * also single out text blocks enclosed within single quotes that no + * formatting should be applied to, and they should be displayed as is. + * + * Default for the above is `false`, so that you can use single quote in text + * without escaping it. + * + * If enabled, single quotes can be escaped by doubling it - adding two + * single quotes, which will be replaced by a one single quote in the final + * output. + * + * @ignore Exclude from docs + * @param text Text to chunk + * @param quotedBlocks Use quoted blocks + * @param noFormatting Formatting blocks will be treated as regular text + * @return Array of string chunks + */ + static chunk(text, quotedBlocks = false, noFormatting = false) { + let res = []; + text = this.escape(text); + let chunks = quotedBlocks ? text.split("'") : [text]; + for (let i = 0; i < chunks.length; i++) { + let chunk = chunks[i]; + if (chunk === "") { + continue; + } + if (i % 2 === 0) { + chunk = chunk.replace(/\]\[/g, "]" + PLACEHOLDER + "["); + chunk = chunk.replace(/\[\]/g, "[ ]"); + let chunks2 = chunk.split(/[\[\]]+/); + for (let i2 = 0; i2 < chunks2.length; i2++) { + let chunk2 = this.cleanUp(this.unescape(chunks2[i2])); + if (chunk2 === PLACEHOLDER) { + continue; + } + if (chunk2 === "") { + continue; + } + if (i2 % 2 === 0) { + res.push({ + "type": "value", + "text": chunk2 + }); + } else { + res.push({ + "type": noFormatting ? "value" : "format", + "text": "[" + chunk2 + "]" + }); + } + } + } else { + let chunks2 = chunk.split(/[\[\]]+/); + for (let i2 = 0; i2 < chunks2.length; i2++) { + let chunk2 = this.cleanUp(this.unescape(chunks2[i2])); + if (chunk2 === "") { + continue; + } + if (i2 % 2 === 0) { + res.push({ + "type": "text", + "text": chunk2 + }); + } else if (this.isImage(chunk2)) { + res.push({ + "type": "image", + "text": "[" + chunk2 + "]" + }); + } else { + res.push({ + "type": "format", + "text": "[" + chunk2 + "]" + }); + } + } + } + } + return res; + } + /** + * Checks if supplied format contains image information and should be + * formatted as such. + * I.e.: `[img: myImage.png]` + * + * @ignore + * @param text Format + * @return true if it is an image + */ + static isImage(text) { + return text.match(/img[ ]?:/) ? true : false; + } + static getTextStyle(style) { + let format = {}; + if (style == "" || style == "[ ]") { + return {}; + } + const q = style.match(/('[^']*')|("[^"]*")/gi); + if (q) { + for (let i = 0; i < q.length; i++) { + style = style.replace(q[i], q[i].replace(/['"]*/g, "").replace(/[ ]+/g, "+")); + } + } + let b = style.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w\-]+)|(\/)/gi); + if (!b) { + return {}; + } + for (let i = 0; i < b.length; i++) { + if (b[i].match(/^(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)$/i)) { + format.fontWeight = b[i]; + } else if (b[i].match(/^(underline|line-through)$/i)) { + format.textDecoration = b[i]; + } else if (b[i] == "/") { + } else if (!b[i].match(/:/)) { + format.fill = Color.fromString(b[i]); + } else { + const p = b[i].replace("+", " ").split(/:[ ]*/); + format[p[0]] = p[1]; + } + } + return format; + } + }; + TextFormatter.prefix = "__amcharts__"; + + // node_modules/@amcharts/amcharts5/.internal/core/util/PopulateString.js + function populateString(target, string) { + if (string != null) { + string = "" + string; + string = TextFormatter.escape(string); + let tags = string.match(/\{([^}]+)\}/g); + let i; + if (tags) { + for (i = 0; i < tags.length; i++) { + let tag = tags[i].replace(/\{([^}]+)\}/, "$1"); + let value = getTagValue(target, tag, ""); + if (value == null) { + value = ""; + } + string = string.split(tags[i]).join(value); + } + } + string = TextFormatter.unescape(string); + } else { + string = ""; + } + return string; + } + function getTagValue(target, tagName, format) { + let value; + const dataItem = target.dataItem; + let parts = []; + let reg = /(format[a-zA-Z]*)\((.*)\)|([^.]+)/g; + let matches; + while (true) { + matches = reg.exec(tagName); + if (matches === null) { + break; + } + if (matches[3]) { + parts.push({ + prop: matches[3] + }); + const dateFields = target.getDateFormatter().get("dateFields", []); + const numericFields = target.getNumberFormatter().get("numericFields", []); + const durationFields = target.getDurationFormatter().get("durationFields", []); + if (dateFields.indexOf(matches[3]) !== -1) { + parts.push({ + method: "formatDate", + params: [] + }); + } else if (numericFields.indexOf(matches[3]) !== -1) { + parts.push({ + method: "formatNumber", + params: [] + }); + } else if (durationFields.indexOf(matches[3]) !== -1) { + parts.push({ + method: "formatDuration", + params: [] + }); + } + } else { + let params = []; + if (trim(matches[2]) != "") { + let reg2 = /'([^']*)'|"([^"]*)"|([0-9\-]+)/g; + let matches2; + while (true) { + matches2 = reg2.exec(matches[2]); + if (matches2 === null) { + break; + } + params.push(matches2[1] || matches2[2] || matches2[3]); + } + } + parts.push({ + method: matches[1], + params + }); + } + } + if (dataItem) { + value = getTagValueFromObject(target, parts, dataItem._settings); + if (value == null || isObject(value)) { + value = getTagValueFromObject(target, parts, dataItem); + } + let dataContext = dataItem.dataContext; + if (value == null && dataContext) { + value = getTagValueFromObject(target, parts, dataContext); + if (value == null) { + value = getTagValueFromObject(target, [{ + prop: tagName + }], dataContext); + } + if (value == null && dataContext.dataContext) { + value = getTagValueFromObject(target, parts, dataContext.dataContext); + } + } + if (value == null && dataItem.component && dataItem.component.dataItem !== dataItem) { + value = getTagValue(dataItem.component, tagName, format); + } + } + if (value == null) { + value = getTagValueFromObject(target, parts, target); + } + if (value == null && target.parent) { + value = getTagValue(target.parent, tagName, format); + } + return value; + } + function getCustomDataValue(target, prop) { + const customData = target.getPrivate("customData"); + if (isObject(customData)) { + return customData[prop]; + } + } + function getTagValueFromObject(target, parts, object, format) { + let current = object; + let formatApplied = false; + for (let i = 0, len = parts.length; i < len; i++) { + let part = parts[i]; + if (part.prop) { + if (current instanceof Sprite) { + let tmp = current.get(part.prop); + if (tmp == null) + tmp = current.getPrivate(part.prop); + if (tmp == null) + tmp = getCustomDataValue(current, part.prop); + if (tmp == null) + tmp = current[part.prop]; + current = tmp; + } else if (current.get) { + let tmp = current.get(part.prop); + if (tmp == null) + tmp = current[part.prop]; + current = tmp; + } else { + current = current[part.prop]; + } + if (current == null) { + return; + } + } else { + switch (part.method) { + case "formatNumber": + let numberValue = toNumber(current); + if (numberValue != null) { + current = target.getNumberFormatter().format(numberValue, format || part.params[0] || void 0); + formatApplied = true; + } + break; + case "formatDate": + let dateValue = toDate(current); + if (!isDate(dateValue) || isNaN2(dateValue.getTime())) { + return; + } + if (dateValue != null) { + current = target.getDateFormatter().format(dateValue, format || part.params[0] || void 0); + formatApplied = true; + } + break; + case "formatDuration": + let durationValue = toNumber(current); + if (durationValue != null) { + current = target.getDurationFormatter().format(durationValue, format || part.params[0] || void 0, part.params[1] || void 0); + formatApplied = true; + } + break; + case "urlEncode": + case "encodeURIComponent": + current = encodeURIComponent(current); + break; + default: + if (current[part.method]) { + current[part.method].apply(object, part.params); + } + break; + } + } + } + if (!formatApplied) { + let formatParts = [{ + method: "", + params: format + }]; + if (format == null) { + if (isNumber(current)) { + formatParts[0].method = "formatNumber"; + formatParts[0].params = ""; + } else if (isDate(current)) { + formatParts[0].method = "formatDate"; + formatParts[0].params = ""; + } + } else { + let formatterType = getFormat(format); + if (formatterType === "number") { + formatParts[0].method = "formatNumber"; + } else if (formatterType === "date") { + formatParts[0].method = "formatDate"; + } else if (formatterType === "duration") { + formatParts[0].method = "formatDuration"; + } + } + if (formatParts[0].method) { + current = getTagValueFromObject(target, formatParts, current); + } + } + return current; + } + + // node_modules/@amcharts/amcharts5/.internal/core/render/Container.js + var Container = class _Container extends Sprite { + constructor() { + super(...arguments); + this._display = this._root._renderer.makeContainer(); + this._childrenDisplay = this._root._renderer.makeContainer(); + this.children = new Children(this); + this._percentageSizeChildren = []; + this._percentagePositionChildren = []; + this._prevWidth = 0; + this._prevHeight = 0; + this._contentWidth = 0; + this._contentHeight = 0; + this._childrenPrep = false; + this._childrenUpdt = false; + } + _afterNew() { + super._afterNew(); + this._display.addChild(this._childrenDisplay); + } + _afterChanged() { + super._afterChanged(); + this._childrenPrep = false; + this._childrenUpdt = false; + } + _dispose() { + eachReverse(this.allChildren(), (child) => { + child.dispose(); + }); + if (this.getPrivate("htmlElement")) { + this._root._removeHTMLContent(this); + } + super._dispose(); + } + _beforeChanged() { + if (!this._childrenPrep) { + this._prepareChildren(); + } + if (!this._childrenUpdt) { + this._updateChildren(); + } + super._beforeChanged(); + } + _changed() { + super._changed(); + if (this.isDirty("interactiveChildren")) { + this._display.interactiveChildren = this.get("interactiveChildren", false); + } + if (this.isDirty("layout")) { + this._prevWidth = 0; + this._prevHeight = 0; + this.markDirtyBounds(); + if (this._prevSettings.layout) { + this.children.each((child) => { + child.removePrivate("x"); + child.removePrivate("y"); + }); + } + } + if (this.isDirty("paddingTop") || this.isDirty("paddingBottom") || this.isDirty("paddingLeft") || this.isDirty("paddingRight")) { + this.children.each((child) => { + child.markDirtyPosition(); + }); + } + if (this.isDirty("maskContent")) { + const childrenDisplay = this._childrenDisplay; + let contentMask = this._contentMask; + if (this.get("maskContent")) { + if (!contentMask) { + contentMask = Rectangle.new(this._root, { + x: -0.5, + y: -0.5, + width: this.width() + 1, + height: this.height() + 1 + }); + this._contentMask = contentMask; + childrenDisplay.addChildAt(contentMask._display, 0); + childrenDisplay.mask = contentMask._display; + } + } else { + if (contentMask) { + childrenDisplay.removeChild(contentMask._display); + childrenDisplay.mask = null; + contentMask.dispose(); + this._contentMask = void 0; + } + } + } + } + _updateSize() { + super._updateSize(); + each(this._percentageSizeChildren, (child) => { + child._updateSize(); + }); + each(this._percentagePositionChildren, (child) => { + child.markDirtyPosition(); + child._updateSize(); + }); + this.updateBackground(); + } + updateBackground() { + const background = this.get("background"); + let bounds = this._localBounds; + if (bounds && !this.isHidden()) { + let x = bounds.left; + let y = bounds.top; + let w = bounds.right - x; + let h = bounds.bottom - y; + let maxWidth = this.get("maxWidth"); + let maxHeight = this.get("maxHeight"); + if (maxHeight) { + if (h > maxHeight) { + h = maxHeight; + } + } + if (maxWidth) { + if (w > maxWidth) { + w = maxWidth; + } + } + let width = this.width(); + let height = this.height(); + if (background) { + background.setAll({ width: w, height: h, x, y }); + if (this._display.interactive) { + background._display.interactive = true; + } + } + const contentMask = this._contentMask; + if (contentMask) { + contentMask.setAll({ width: width + 1, height: height + 1 }); + } + const verticalScrollbar = this.get("verticalScrollbar"); + if (verticalScrollbar) { + verticalScrollbar.set("height", height); + verticalScrollbar.set("x", width - verticalScrollbar.width() - verticalScrollbar.get("marginRight", 0)); + verticalScrollbar.set("end", verticalScrollbar.get("start", 0) + height / this._contentHeight); + const bg = verticalScrollbar.get("background"); + if (bg) { + bg.setAll({ width: verticalScrollbar.width(), height }); + } + let visible = true; + if (this._contentHeight <= height) { + visible = false; + } + verticalScrollbar.setPrivate("visible", visible); + } + } + } + _applyThemes(force = false) { + if (super._applyThemes(force)) { + this.eachChildren((child) => { + child._applyThemes(force); + }); + return true; + } else { + return false; + } + } + _applyState(name) { + super._applyState(name); + if (this.get("setStateOnChildren")) { + this.eachChildren((child) => { + child.states.apply(name); + }); + } + } + _applyStateAnimated(name, duration) { + super._applyStateAnimated(name, duration); + if (this.get("setStateOnChildren")) { + this.eachChildren((child) => { + child.states.applyAnimate(name, duration); + }); + } + } + /** + * Returns container's inner width (width without padding) in pixels. + * + * @return Inner width (px) + */ + innerWidth() { + return this.width() - this.get("paddingRight", 0) - this.get("paddingLeft", 0); + } + /** + * Returns container's inner height (height without padding) in pixels. + * + * @return Inner height (px) + */ + innerHeight() { + return this.height() - this.get("paddingTop", 0) - this.get("paddingBottom", 0); + } + _getBounds() { + if (!this.get("html")) { + let width = this.get("width"); + let height = this.get("height"); + let pWidth = this.getPrivate("width"); + let pHeight = this.getPrivate("height"); + let bounds = { + left: 0, + top: 0, + right: this.width(), + bottom: this.height() + }; + let layout = this.get("layout"); + let horizontal = false; + let vertical = false; + if (layout instanceof HorizontalLayout || layout instanceof GridLayout) { + horizontal = true; + } + if (layout instanceof VerticalLayout) { + vertical = true; + } + if ((width != null || pWidth != null) && (height != null || pHeight != null) && !this.get("verticalScrollbar")) { + } else { + let m = Number.MAX_VALUE; + let l = m; + let r = -m; + let t = m; + let b = -m; + const paddingLeft = this.get("paddingLeft", 0); + const paddingTop = this.get("paddingTop", 0); + const paddingRight = this.get("paddingRight", 0); + const paddingBottom = this.get("paddingBottom", 0); + this.children.each((child) => { + if (child.get("position") != "absolute" && child.get("isMeasured")) { + let childBounds = child.adjustedLocalBounds(); + let childX = child.x(); + let childY = child.y(); + let cl = childX + childBounds.left; + let cr = childX + childBounds.right; + let ct = childY + childBounds.top; + let cb = childY + childBounds.bottom; + if (horizontal) { + cl -= child.get("marginLeft", 0); + cr += child.get("marginRight", 0); + } + if (vertical) { + ct -= child.get("marginTop", 0); + cb += child.get("marginBottom", 0); + } + if (cl < l) { + l = cl; + } + if (cr > r) { + r = cr; + } + if (ct < t) { + t = ct; + } + if (cb > b) { + b = cb; + } + } + }); + if (l == m) { + l = 0; + } + if (r == -m) { + r = 0; + } + if (t == m) { + t = 0; + } + if (b == -m) { + b = 0; + } + bounds.left = l - paddingLeft; + bounds.top = t - paddingTop; + bounds.right = r + paddingRight; + bounds.bottom = b + paddingBottom; + const minWidth = this.get("minWidth"); + if (isNumber(minWidth) && minWidth > 0) { + if (bounds.right - bounds.left < minWidth) { + if (bounds.right >= minWidth) { + bounds.left = bounds.right - minWidth; + } else { + bounds.right = bounds.left + minWidth; + } + } + } + const minHeight = this.get("minHeight"); + if (isNumber(minHeight) && minHeight > 0) { + if (bounds.bottom - bounds.top < minHeight) { + if (bounds.bottom >= minHeight) { + bounds.top = bounds.bottom - minHeight; + } else { + bounds.bottom = bounds.top + minHeight; + } + } + } + } + this._contentWidth = bounds.right - bounds.left; + this._contentHeight = bounds.bottom - bounds.top; + if (isNumber(width)) { + bounds.left = 0; + bounds.right = width; + } + if (isNumber(pWidth)) { + bounds.left = 0; + bounds.right = pWidth; + } + if (isNumber(height)) { + bounds.top = 0; + bounds.bottom = height; + } + if (isNumber(pHeight)) { + bounds.top = 0; + bounds.bottom = pHeight; + } + this._localBounds = bounds; + } else { + let bounds = this._localBounds; + if (bounds) { + this._contentWidth = bounds.right - bounds.left; + this._contentHeight = bounds.bottom - bounds.top; + } + } + } + _updateBounds() { + const layout = this.get("layout"); + if (layout) { + layout.updateContainer(this); + } + super._updateBounds(); + this.updateBackground(); + } + /** + * @ignore + */ + markDirty() { + super.markDirty(); + this._root._addDirtyParent(this); + } + _prepareChildren() { + this._childrenPrep = true; + const innerWidth = this.innerWidth(); + const innerHeight = this.innerHeight(); + if (innerWidth != this._prevWidth || innerHeight != this._prevHeight) { + let layout = this.get("layout"); + let horizontal = false; + let vertical = false; + if (layout) { + if (layout instanceof HorizontalLayout || layout instanceof GridLayout) { + horizontal = true; + } + if (layout instanceof VerticalLayout) { + vertical = true; + } + } + each(this._percentageSizeChildren, (child) => { + if (!horizontal) { + let width = child.get("width"); + if (width instanceof Percent) { + child.setPrivate("width", width.value * innerWidth); + } + } + if (!vertical) { + let height = child.get("height"); + if (height instanceof Percent) { + child.setPrivate("height", height.value * innerHeight); + } + } + }); + each(this._percentagePositionChildren, (child) => { + child.markDirtyPosition(); + child.markDirtyBounds(); + }); + this._prevWidth = innerWidth; + this._prevHeight = innerHeight; + this._sizeDirty = true; + this.updateBackground(); + } + } + _updateHTMLContent() { + const html = this.get("html", ""); + if (html && html !== "") { + this._root._setHTMLContent(this, populateString(this, html)); + } else { + this._root._removeHTMLContent(this); + } + this._root._positionHTMLElement(this); + } + /** + * If scrolling is enabled on the Container (by adding `verticalScrollbar`) + * the Container will scroll in such way so that target element becomes + * visible if its currently outside of view. + * + * @param child Target child + * @since 5.10.5 + */ + scrollToChild(child) { + const verticalScrollbar = this.get("verticalScrollbar"); + if (verticalScrollbar) { + let y = child.y(); + let h = this.innerHeight(); + let ch = child.height(); + let contentH = this._contentHeight; + let max = 1 - (h - ch / 2) / contentH; + if (y + ch * 0.7 + this._childrenDisplay.y > h || y - ch * 0.3 + this._childrenDisplay.y < 0) { + let pos = Math.max(0, Math.min(max, (y - ch / 2) / contentH)); + verticalScrollbar.animate({ key: "start", to: pos, duration: verticalScrollbar.get("animationDuration", 0), easing: verticalScrollbar.get("animationEasing") }); + } + } + } + _updateChildren() { + this._childrenUpdt = true; + if (this.isDirty("html")) { + this._updateHTMLContent(); + } + if (this.isDirty("verticalScrollbar")) { + const verticalScrollbar = this.get("verticalScrollbar"); + if (verticalScrollbar) { + verticalScrollbar._setParent(this); + verticalScrollbar.startGrip.setPrivate("visible", false); + verticalScrollbar.endGrip.setPrivate("visible", false); + this.set("maskContent", true); + this.set("paddingRight", verticalScrollbar.width() + verticalScrollbar.get("marginRight", 0) + verticalScrollbar.get("marginLeft", 0)); + let background = this.get("background"); + if (!background) { + background = this.set("background", Rectangle.new(this._root, { + themeTags: ["background"], + fillOpacity: 0, + fill: this._root.interfaceColors.get("alternativeBackground") + })); + } + this._vsbd0 = this.events.on("wheel", (event) => { + const wheelEvent = event.originalEvent; + if (isLocalEvent(wheelEvent, this)) { + wheelEvent.preventDefault(); + } else { + return; + } + let shiftY = wheelEvent.deltaY / 5e3; + const start = verticalScrollbar.get("start", 0); + const end = verticalScrollbar.get("end", 1); + if (start + shiftY <= 0) { + shiftY = -start; + } + if (end + shiftY >= 1) { + shiftY = 1 - end; + } + if (start + shiftY >= 0 && end + shiftY <= 1) { + verticalScrollbar.set("start", start + shiftY); + verticalScrollbar.set("end", end + shiftY); + } + }); + this._disposers.push(this._vsbd0); + this._vsbd1 = verticalScrollbar.events.on("rangechanged", () => { + let h = this._contentHeight; + const childrenDisplay = this._childrenDisplay; + const contentMask = this._contentMask; + childrenDisplay.y = -verticalScrollbar.get("start", 0) * h; + childrenDisplay.markDirtyLayer(); + if (contentMask) { + contentMask._display.y = -childrenDisplay.y; + childrenDisplay.mask = contentMask._display; + } + }); + this._disposers.push(this._vsbd1); + this._display.addChild(verticalScrollbar._display); + } else { + const previous = this._prevSettings.verticalScrollbar; + if (previous) { + this._display.removeChild(previous._display); + if (this._vsbd0) { + this._vsbd0.dispose(); + } + if (this._vsbd1) { + this._vsbd1.dispose(); + } + const childrenDisplay = this._childrenDisplay; + childrenDisplay.y = 0; + this.setPrivate("height", void 0); + this.set("maskContent", false); + this.set("paddingRight", void 0); + } + } + } + if (this.isDirty("background")) { + const previous = this._prevSettings["background"]; + if (previous) { + this._display.removeChild(previous._display); + } + const background = this.get("background"); + if (background instanceof Sprite) { + background.set("isMeasured", false); + background._setParent(this); + this._display.addChildAt(background._display, 0); + } + } + if (this.isDirty("mask")) { + const mask = this.get("mask"); + const previous = this._prevSettings["mask"]; + if (previous) { + this._display.removeChild(previous._display); + if (previous != mask) { + previous.dispose(); + } + } + if (mask) { + const parent = mask.parent; + if (parent) { + parent.children.removeValue(mask); + } + mask._setParent(this); + this._display.addChildAt(mask._display, 0); + this._childrenDisplay.mask = mask._display; + } + } + } + _processTemplateField() { + super._processTemplateField(); + this.children.each((child) => { + child._processTemplateField(); + }); + } + /** + * @ignore + */ + walkChildren(f) { + this.children.each((child, index) => { + if (child instanceof _Container) { + child.walkChildren(f); + } + f(child, index); + }); + } + eachChildren(f) { + const background = this.get("background"); + if (background) { + f(background); + } + const verticalScrollbar = this.get("verticalScrollbar"); + if (verticalScrollbar) { + f(verticalScrollbar); + } + const mask = this.get("mask"); + if (mask) { + f(mask); + } + this.children.values.forEach((child) => { + f(child); + }); + } + allChildren() { + const output = []; + this.eachChildren((x) => { + output.push(x); + }); + return output; + } + _setDataItem(dataItem) { + const updated = dataItem !== this._dataItem; + super._setDataItem(dataItem); + const html = this.get("html", ""); + if (html && html !== "" && updated) { + this._root._setHTMLContent(this, populateString(this, html)); + } + } + contentWidth() { + return this._contentWidth; + } + contentHeight() { + return this._contentHeight; + } + }; + Container.className = "Container"; + Container.classNames = Sprite.classNames.concat([Container.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Text.js + var Text = class extends Sprite { + constructor() { + super(...arguments); + this.textStyle = this._root._renderer.makeTextStyle(); + this._display = this._root._renderer.makeText("", this.textStyle); + this._textStyles = [ + "textAlign", + "fontFamily", + "fontSize", + "fontStyle", + "fontWeight", + "fontStyle", + "fontVariant", + "textDecoration", + "shadowColor", + "shadowBlur", + "shadowOffsetX", + "shadowOffsetY", + "shadowOpacity", + // "leading", + // "letterSpacing", + "lineHeight", + "baselineRatio", + //"padding", + // "stroke", + // "strokeThickness", + // "trim", + // "wordWrap", + "direction", + "textBaseline", + "oversizedBehavior", + "breakWords", + "ellipsis", + "minScale", + "maxChars" + ]; + } + _updateBounds() { + if (!this.get("text")) { + let newBounds = { + left: 0, + right: 0, + top: 0, + bottom: 0 + }; + this._adjustedLocalBounds = newBounds; + } else { + super._updateBounds(); + let fillGradient = this.get("fillGradient"); + if (fillGradient) { + this._display.style.fill = fillGradient.getFill(this); + } + } + } + _changed() { + super._changed(); + this._display.clear(); + let textStyle = this.textStyle; + if (this.isDirty("opacity")) { + let opacity = this.get("opacity", 1); + this._display.alpha = opacity; + } + if (this.isDirty("text") || this.isDirty("populateText")) { + this._display.text = this._getText(); + this.markDirtyBounds(); + if (this.get("role") == "tooltip") { + this._root.updateTooltip(this); + } + } + if (this.isPrivateDirty("tooltipElement")) { + const tooltipElement = this.getPrivate("tooltipElement"); + if (tooltipElement) { + this._disposers.push(new Disposer(() => { + this._root._removeTooltipElement(this); + })); + } + } + if (this.isDirty("width")) { + textStyle.wordWrapWidth = this.width(); + this.markDirtyBounds(); + } + if (this.isDirty("oversizedBehavior")) { + textStyle.oversizedBehavior = this.get("oversizedBehavior", "none"); + this._display.invalidateVisibility(); + this.markDirtyBounds(); + } + if (this.isDirty("breakWords")) { + textStyle.breakWords = this.get("breakWords", false); + this.markDirtyBounds(); + } + if (this.isDirty("ellipsis")) { + textStyle.ellipsis = this.get("ellipsis"); + this.markDirtyBounds(); + } + if (this.isDirty("ignoreFormatting")) { + textStyle.ignoreFormatting = this.get("ignoreFormatting", false); + this.markDirtyBounds(); + } + if (this.isDirty("minScale")) { + textStyle.minScale = this.get("minScale", 0); + this.markDirtyBounds(); + } + if (this.isDirty("fill") || this.isDirty("fillGradient")) { + const fill = this.get("fill"); + const fillGradient = this.get("fillGradient"); + const fillOpacity = this.get("fillOpacity"); + if (fillGradient) { + if (fill) { + const stops = fillGradient.get("stops", []); + if (stops.length) { + each(stops, (stop) => { + if ((!stop.color || stop.colorInherited) && fill) { + stop.color = fill; + stop.colorInherited = true; + } + if (stop.opacity == null || stop.opacityInherited) { + stop.opacity = fillOpacity; + stop.opacityInherited = true; + } + }); + } + } + textStyle.fill = fillGradient.getFill(this); + } else if (fill) { + textStyle.fill = fill; + } + } + if (this.isDirty("fillOpacity")) { + let fillOpacity = this.get("fillOpacity", 1); + if (fillOpacity) { + textStyle.fillOpacity = fillOpacity; + } + } + if (this.isDirty("maxWidth") || this.isPrivateDirty("maxWidth")) { + textStyle.maxWidth = this.get("maxWidth", this.getPrivate("maxWidth")); + this.markDirtyBounds(); + } + if (this.isDirty("maxHeight") || this.isPrivateDirty("maxHeight")) { + textStyle.maxHeight = this.get("maxHeight", this.getPrivate("maxHeight")); + this.markDirtyBounds(); + } + each(this._textStyles, (styleName) => { + if (this._dirty[styleName]) { + textStyle[styleName] = this.get(styleName); + this.markDirtyBounds(); + } + }); + textStyle["fontSize"] = this.get("fontSize"); + textStyle["fontFamily"] = this.get("fontFamily"); + this._display.style = textStyle; + if (this.isDirty("role") && this.get("role") == "tooltip") { + this._root.updateTooltip(this); + } + } + _getText() { + let text = this.get("text", ""); + if (this.get("maxChars")) { + text = truncateTextWithEllipsis(text, this.get("maxChars", 1e8), this.get("breakWords"), this.get("ellipsis")); + } + return this.get("populateText") ? populateString(this, text) : text; + } + _getAccessibleText() { + const ariaLabel = this.get("ariaLabel"); + if (ariaLabel !== void 0) { + return this.get("populateText") ? populateString(this, ariaLabel) : ariaLabel; + } + return this._getText(); + } + /** + * Forces the text to be re-evaluated and re-populated. + */ + markDirtyText() { + this._display.text = this._getText(); + if (this.get("role") == "tooltip") { + this._root.updateTooltip(this); + } + this.markDirtyBounds(); + this.markDirty(); + } + _setDataItem(dataItem) { + super._setDataItem(dataItem); + if (this.get("populateText")) { + this.markDirtyText(); + } + } + getNumberFormatter() { + if (this.parent) { + return this.parent.getNumberFormatter(); + } else { + return super.getNumberFormatter(); + } + } + getDateFormatter() { + if (this.parent) { + return this.parent.getDateFormatter(); + } else { + return super.getDateFormatter(); + } + } + getDurationFormatter() { + if (this.parent) { + return this.parent.getDurationFormatter(); + } else { + return super.getDurationFormatter(); + } + } + }; + Text.className = "Text"; + Text.classNames = Sprite.classNames.concat([Text.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/ResizeSensor.js + var Native = class { + constructor() { + this._targets = []; + this._observer = new ResizeObserver((entries2) => { + each(entries2, (entry) => { + each(this._targets, (x) => { + if (x.target === entry.target) { + x.callback(); + } + }); + }); + }); + } + addTarget(target, callback) { + this._observer.observe(target, { box: "border-box" }); + this._targets.push({ target, callback }); + } + removeTarget(target) { + this._observer.unobserve(target); + keepIf(this._targets, (x) => { + return x.target !== target; + }); + } + }; + var Raf = class _Raf { + constructor() { + this._timer = null; + this._targets = []; + } + addTarget(target, callback) { + if (this._timer === null) { + let lastTime = null; + const loop = () => { + const currentTime = Date.now(); + if (lastTime === null || currentTime > lastTime + _Raf.delay) { + lastTime = currentTime; + each(this._targets, (x) => { + let newSize = x.target.getBoundingClientRect(); + if (newSize.width !== x.size.width || newSize.height !== x.size.height) { + x.size = newSize; + x.callback(); + } + }); + } + if (this._targets.length === 0) { + this._timer = null; + } else { + this._timer = requestAnimationFrame(loop); + } + }; + this._timer = requestAnimationFrame(loop); + } + let size = { width: 0, height: 0, left: 0, right: 0, top: 0, bottom: 0, x: 0, y: 0 }; + this._targets.push({ target, callback, size }); + } + removeTarget(target) { + keepIf(this._targets, (x) => { + return x.target !== target; + }); + if (this._targets.length === 0) { + if (this._timer !== null) { + cancelAnimationFrame(this._timer); + this._timer = null; + } + } + } + }; + Raf.delay = 200; + var observer = null; + function makeSensor() { + if (observer === null) { + if (typeof ResizeObserver !== "undefined") { + observer = new Native(); + } else { + observer = new Raf(); + } + } + return observer; + } + var ResizeSensor = class { + constructor(element, callback) { + this._disposed = false; + this._sensor = makeSensor(); + this._element = element; + this._listener = onZoom(callback); + this._sensor.addTarget(element, callback); + } + isDisposed() { + return this._disposed; + } + dispose() { + if (!this._disposed) { + this._disposed = true; + this._sensor.removeTarget(this._element); + this._listener.dispose(); + } + } + get sensor() { + return this._sensor; + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/InterfaceColors.js + var InterfaceColors = class extends Entity { + }; + InterfaceColors.className = "InterfaceColors"; + InterfaceColors.classNames = Entity.classNames.concat([InterfaceColors.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Label.js + var Label = class extends Container { + constructor() { + super(...arguments); + this._textKeys = [ + "text", + "fill", + "fillGradient", + "fillOpacity", + "textAlign", + "fontFamily", + "fontSize", + "fontStyle", + "fontWeight", + "fontStyle", + "fontVariant", + "textDecoration", + "shadowColor", + "shadowBlur", + "shadowOffsetX", + "shadowOffsetY", + "shadowOpacity", + // "leading", + // "letterSpacing", + "lineHeight", + "baselineRatio", + //"padding", + // "stroke", + // "strokeThickness", + // "trim", + // "wordWrap", + "direction", + "textBaseline", + "oversizedBehavior", + "breakWords", + "ellipsis", + "minScale", + "populateText", + "role", + "ignoreFormatting", + "maxChars", + "ariaLabel" + ]; + } + /** + * @ignore Text is not to be used directly + */ + get text() { + return this._text; + } + _afterNew() { + super._afterNew(); + this._makeText(); + each(this._textKeys, (property) => { + const propValue = this.get(property); + if (propValue != void 0) { + this._text.set(property, propValue); + } + }); + if (this.get("html", "") !== "") { + this._text.set("text", ""); + } + this.onPrivate("maxWidth", () => { + this._setMaxDimentions(); + }); + this.onPrivate("maxHeight", () => { + this._setMaxDimentions(); + }); + } + _makeText() { + this._text = this.children.push(Text.new(this._root, {})); + } + _updateChildren() { + super._updateChildren(); + const text = this._text; + each(this._textKeys, (property) => { + this._text.set(property, this.get(property)); + }); + if (this.isDirty("maxWidth") || this.isDirty("maxHeight") || this.isDirty("rotation")) { + this._setMaxDimentions(); + } + if (this.get("html", "") !== "") { + text.set("text", ""); + } else { + text.set("text", this.get("text")); + this._maybeUpdateHTMLColor(); + } + if (this.isDirty("fill") || this.isDirty("fillGradient")) { + this._maybeUpdateHTMLColor(); + } + if (this.isDirty("textAlign") || this.isDirty("width")) { + const textAlign = this.get("textAlign"); + let x; + if (this.get("width") != null) { + if (textAlign == "right") { + x = p100; + } else if (textAlign == "center") { + x = p50; + } else { + x = 0; + } + } else { + if (textAlign == "left" || textAlign == "start") { + x = this.get("paddingLeft", 0); + } else if (textAlign == "right" || textAlign == "end") { + x = -this.get("paddingRight", 0); + } + } + text.set("x", x); + } + const background = this.get("background"); + if (background) { + background.setPrivate("visible", text._display.textVisible); + } + } + _maybeUpdateHTMLColor() { + const htmlElement = this.getPrivate("htmlElement"); + if (htmlElement && this.get("fill")) { + htmlElement.style.color = this.get("fill").toCSSHex(); + } + } + _setMaxDimentions() { + const rotation = this.get("rotation"); + const vertical = rotation == 90 || rotation == 270 || rotation == -90; + const text = this._text; + const maxWidth = this.get("maxWidth", this.getPrivate("maxWidth", Infinity)); + if (isNumber(maxWidth)) { + text.set(vertical ? "maxHeight" : "maxWidth", maxWidth - this.get("paddingTop", 0) - this.get("paddingBottom", 0)); + } else { + text.set(vertical ? "maxHeight" : "maxWidth", void 0); + } + const maxHeight = this.get("maxHeight", this.getPrivate("maxHeight", Infinity)); + if (isNumber(maxHeight)) { + text.set(vertical ? "maxWidth" : "maxHeight", maxHeight - this.get("paddingLeft", 0) - this.get("paddingRight", 0)); + } else { + text.set(vertical ? "maxWidth" : "maxHeight", void 0); + } + this.root.events.once("frameended", () => { + text.markDirtyBounds(); + }); + } + _setDataItem(dataItem) { + super._setDataItem(dataItem); + this._markDirtyKey("text"); + this._markDirtyKey("html"); + const text = this._text; + if (text.get("populateText")) { + text.markDirtyText(); + } + const html = this.get("html"); + if (html && html !== "") { + this._updateHTMLContent(); + } + } + /** + * Returns text with populated placeholders and formatting if `populateText` is + * set to `true`. + * + * @return Populated text + */ + getText() { + return this._text._getText(); + } + /** + * Returns "aria-label" text with populated placeholders and formatting + * if `populateText` is set to `true`. + * + * @return Populated text + */ + getAccessibleText() { + return this._text._getAccessibleText(); + } + }; + Label.className = "Label"; + Label.classNames = Container.classNames.concat([Label.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/PointedRectangle.js + var PointedRectangle = class extends Graphics { + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("pointerBaseWidth") || this.isDirty("cornerRadius") || this.isDirty("pointerLength") || this.isDirty("pointerX") || this.isDirty("pointerY") || this.isDirty("width") || this.isDirty("height")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear) { + this.markDirtyBounds(); + let w = this.width(); + let h = this.height(); + if (w > 0 && h > 0) { + let cr = this.get("cornerRadius", 8); + cr = fitToRange(cr, 0, Math.min(w / 2, h / 2)); + let x = this.get("pointerX", 0); + let y = this.get("pointerY", 0); + let bwh = this.get("pointerBaseWidth", 15) / 2; + let xtl = 0; + let ytl = 0; + let xtr = w; + let ytr = 0; + let xbr = w; + let ybr = h; + let xbl = 0; + let ybl = h; + let d1 = (x - xtl) * (ybr - ytl) - (y - ytl) * (xbr - xtl); + let d2 = (x - xbl) * (ytr - ybl) - (y - ybl) * (xtr - xbl); + const display = this._display; + display.moveTo(cr, 0); + if (d1 > 0 && d2 > 0) { + let stemX = Math.round(fitToRange(x, cr + bwh, w - bwh - cr)); + y = fitToRange(y, -Infinity, 0); + display.lineTo(stemX - bwh, 0); + display.lineTo(x, y); + display.lineTo(stemX + bwh, 0); + } + display.lineTo(w - cr, 0); + display.arcTo(w, 0, w, cr, cr); + if (d1 > 0 && d2 < 0) { + let stemY = Math.round(fitToRange(y, cr + bwh, h - bwh - cr)); + x = fitToRange(x, w, Infinity); + display.lineTo(w, cr); + display.lineTo(w, Math.max(stemY - bwh, cr)); + display.lineTo(x, y); + display.lineTo(w, stemY + bwh); + } + display.lineTo(w, h - cr); + display.arcTo(w, h, w - cr, h, cr); + if (d1 < 0 && d2 < 0) { + let stemX = Math.round(fitToRange(x, cr + bwh, w - bwh - cr)); + y = fitToRange(y, h, Infinity); + display.lineTo(w - cr, h); + display.lineTo(stemX + bwh, h); + display.lineTo(x, y); + display.lineTo(stemX - bwh, h); + } + display.lineTo(cr, h); + display.arcTo(0, h, 0, h - cr, cr); + if (d1 < 0 && d2 > 0) { + let stemY = Math.round(fitToRange(y, cr + bwh, h - cr - bwh)); + x = fitToRange(x, -Infinity, 0); + display.lineTo(0, h - cr); + display.lineTo(0, stemY + bwh); + display.lineTo(x, y); + display.lineTo(0, Math.max(stemY - bwh, cr)); + } + display.lineTo(0, cr); + display.arcTo(0, 0, cr, 0, cr); + display.closePath(); + } + } + } + }; + PointedRectangle.className = "PointedRectangle"; + PointedRectangle.classNames = Graphics.classNames.concat([PointedRectangle.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Tooltip.js + var Tooltip = class extends Container { + constructor(root2, settings, isReal, templates = []) { + super(root2, settings, isReal, templates); + this._fx = 0; + this._fy = 0; + this._w = 0; + this._h = 0; + this._htmlContentHovered = false; + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["tooltip"]); + super._afterNew(); + const background = this._setDefaultFn("background", () => { + return PointedRectangle.new(this._root, {}); + }); + background.set("themeTags", ["tooltip", "background"]); + this._label = this.children.push(Label.new(this._root, {})); + this._disposers.push(this._label.events.on("boundschanged", () => { + this._updateBackground(); + })); + this._disposers.push(this.on("bounds", () => { + this._updateBackground(); + })); + this._updateTextColor(); + this._root.tooltipContainer.children.push(this); + this.hide(0); + this._disposers.push(this.label.onPrivate("htmlElement", (htmlElement) => { + if (htmlElement) { + this._disposers.push(addEventListener(htmlElement, "pointerover", (_ev) => { + this._htmlContentHovered = true; + })); + this._disposers.push(addEventListener(htmlElement, "pointerout", (_ev) => { + this._htmlContentHovered = false; + })); + } + })); + this.on("visible", (_ev) => { + this._handleReaderAnnouncement(); + }); + this.label.events.on("dataitemchanged", (_ev) => { + this._handleReaderAnnouncement(); + }); + this._root._tooltips.push(this); + } + _handleReaderAnnouncement() { + if (this.get("readerAnnounce") && this.isVisibleDeep()) { + this._root.readerAlert(this.label.getAccessibleText()); + } + } + /** + * A [[Label]] element for the tooltip. + * + * @readonly + * @return Label + */ + get label() { + return this._label; + } + /** + * Permanently disposes the tooltip. + */ + _dispose() { + super._dispose(); + remove(this._root._tooltips, this); + } + _updateChildren() { + super._updateChildren(); + if (this.isDirty("pointerOrientation") || this.isPrivateDirty("minWidth") || this.isPrivateDirty("minHeight")) { + this.get("background")._markDirtyKey("width"); + } + const labelText = this.get("labelText"); + if (labelText != null) { + this.label.set("text", this.get("labelText")); + } + const labelHTML = this.get("labelHTML"); + if (labelHTML != null) { + this.label.set("html", this.get("labelHTML")); + } + const labelAriaLabel = this.get("labelAriaLabel"); + if (labelAriaLabel != null) { + this.label.set("ariaLabel", this.get("labelAriaLabel")); + } + } + _changed() { + super._changed(); + if (this.isDirty("pointTo") || this.isDirty("pointerOrientation")) { + this._updateBackground(); + } + if (this.isDirty("tooltipTarget")) { + this.updateBackgroundColor(); + } + if (this.isDirty("keepTargetHover")) { + const keephover = this.get("keepTargetHover"); + if (keephover) { + const bg = this.get("background"); + this._keepHoverDp = new MultiDisposer([ + bg.events.on("pointerover", (_ev) => { + let target = this.get("tooltipTarget"); + if (target) { + if (target.parent && target.parent.getPrivate("tooltipTarget") == target) { + target = target.parent; + } + target.hover(); + } + }), + bg.events.on("pointerout", (_ev) => { + let target = this.get("tooltipTarget"); + if (target) { + if (target.parent && target.parent.getPrivate("tooltipTarget") == target) { + target = target.parent; + } + if (!this._htmlContentHovered) { + target.unhover(); + } + } + }) + ]); + this.label.onPrivate("htmlElement", (htmlElement) => { + if (this._keepHoverDp && htmlElement) { + this._keepHoverDp.disposers.push(addEventListener(htmlElement, "pointerleave", (ev) => { + const outEvent = this.root._renderer.getEvent(ev); + bg.events.dispatch("pointerout", { + type: "pointerout", + originalEvent: outEvent.event, + point: outEvent.point, + simulated: false, + target: bg + }); + })); + } + }); + } else { + if (this._keepHoverDp) { + this._keepHoverDp.dispose(); + this._keepHoverDp = void 0; + } + } + } + } + _onShow() { + super._onShow(); + this.updateBackgroundColor(); + } + updateBackgroundColor() { + let tooltipTarget = this.get("tooltipTarget"); + const background = this.get("background"); + let fill; + let stroke; + if (tooltipTarget && background) { + fill = tooltipTarget.get("fill"); + stroke = tooltipTarget.get("stroke"); + if (fill == null) { + fill = stroke; + } + if (this.get("getFillFromSprite")) { + if (this._fillDp) { + this._fillDp.dispose(); + } + if (fill != null) { + background.set("fill", fill); + } + this._fillDp = tooltipTarget.on("fill", (fill2) => { + if (fill2 != null) { + background.set("fill", fill2); + this._updateTextColor(fill2); + } + }); + this._disposers.push(this._fillDp); + } + if (this.get("getFillGradientFromSprite")) { + if (this._fillGrDp) { + this._fillGrDp.dispose(); + } + let fillGradient = tooltipTarget.get("fillGradient"); + if (fillGradient != null) { + background.set("fillGradient", fillGradient); + } + this._fillGrDp = tooltipTarget.on("fillGradient", (fillGradient2) => { + if (fillGradient2 != null) { + background.set("fillGradient", fillGradient2); + } + }); + this._disposers.push(this._fillGrDp); + } + if (this.get("getStrokeFromSprite")) { + if (this._strokeDp) { + this._strokeDp.dispose(); + } + if (fill != null) { + background.set("stroke", fill); + } + this._strokeDp = tooltipTarget.on("fill", (fill2) => { + if (fill2 != null) { + background.set("stroke", fill2); + } + }); + this._disposers.push(this._strokeDp); + } + if (this.get("getLabelFillFromSprite")) { + if (this._labelDp) { + this._labelDp.dispose(); + } + if (fill != null) { + this.label.set("fill", fill); + } + this._labelDp = tooltipTarget.on("fill", (fill2) => { + if (fill2 != null) { + this.label.set("fill", fill2); + } + }); + this._disposers.push(this._labelDp); + } + } + this._updateTextColor(fill); + } + _updateTextColor(fill) { + if (this.get("autoTextColor")) { + if (fill == null) { + fill = this.get("background").get("fill"); + } + if (fill == null) { + fill = this._root.interfaceColors.get("background"); + } + if (fill instanceof Color) { + this.label.set("fill", Color.alternative(fill, this._root.interfaceColors.get("alternativeText"), this._root.interfaceColors.get("text"))); + } + } + } + _setDataItem(dataItem) { + super._setDataItem(dataItem); + this.label._setDataItem(dataItem); + } + _updateBackground() { + super.updateBackground(); + const parent = this._root.container; + if (parent) { + let cw = 0.5; + let ch = 0.5; + let centerX = this.get("centerX"); + if (centerX instanceof Percent) { + cw = centerX.value; + } + let centerY = this.get("centerY"); + if (centerY instanceof Percent) { + ch = centerY.value; + } + let parentW = parent.width(); + let parentH = parent.height(); + let tooltipContainer = this.parent; + let xx = 0; + let yy = 0; + if (tooltipContainer) { + xx = tooltipContainer.x(); + yy = tooltipContainer.y(); + const layerMargin = tooltipContainer.get("layerMargin"); + if (layerMargin) { + xx += layerMargin.left || 0; + yy += layerMargin.top || 0; + parentW += (layerMargin.left || 0) + (layerMargin.right || 0); + parentH += (layerMargin.top || 0) + (layerMargin.bottom || 0); + } + } + const bounds = this.get("bounds", { left: -xx, top: -yy, right: parentW - xx, bottom: parentH - yy }); + this._updateBounds(); + let w = this.width(); + let h = this.height(); + if (w === 0) { + w = this._w; + } + if (h === 0) { + h = this._h; + } + let pointTo = this.get("pointTo", { x: parentW / 2, y: parentH / 2 }); + let x = pointTo.x; + let y = pointTo.y; + let pointerOrientation = this.get("pointerOrientation"); + let background = this.get("background"); + let pointerLength = 0; + let bgStrokeSizeY = 0; + let bgStrokeSizeX = 0; + if (background instanceof PointedRectangle) { + pointerLength = background.get("pointerLength", 0); + bgStrokeSizeY = background.get("strokeWidth", 0) / 2; + bgStrokeSizeX = bgStrokeSizeY; + background.set("width", w); + background.set("height", h); + } + let pointerX = 0; + let pointerY = 0; + let boundsW = bounds.right - bounds.left; + let boundsH = bounds.bottom - bounds.top; + if (pointerOrientation == "horizontal" || pointerOrientation == "left" || pointerOrientation == "right") { + bgStrokeSizeY = 0; + if (pointerOrientation == "horizontal") { + if (x > bounds.left + boundsW / 2) { + x -= w * (1 - cw) + pointerLength; + bgStrokeSizeX *= -1; + } else { + x += w * cw + pointerLength; + } + } else if (pointerOrientation == "left") { + x += w * (1 - cw) + pointerLength; + } else { + x -= w * cw + pointerLength; + bgStrokeSizeX *= -1; + } + } else { + bgStrokeSizeX = 0; + if (pointerOrientation == "vertical") { + if (y > bounds.top + h / 2 + pointerLength) { + y -= h * (1 - ch) + pointerLength; + } else { + y += h * ch + pointerLength; + bgStrokeSizeY *= -1; + } + } else if (pointerOrientation == "down") { + y -= h * (1 - ch) + pointerLength; + } else { + y += h * ch + pointerLength; + bgStrokeSizeY *= -1; + } + } + x = fitToRange(x, bounds.left + w * cw, bounds.left + boundsW - w * (1 - cw)) + bgStrokeSizeX; + y = fitToRange(y, bounds.top + h * ch, bounds.top + boundsH - h * (1 - ch)) - bgStrokeSizeY; + pointerX = pointTo.x - x + w * cw + bgStrokeSizeX; + pointerY = pointTo.y - y + h * ch - bgStrokeSizeY; + this._fx = x; + this._fy = y; + const animationDuration = this.get("animationDuration", 0); + if (animationDuration > 0 && this.get("visible") && this.get("opacity") > 0.1) { + const animationEasing = this.get("animationEasing"); + this.animate({ key: "x", to: x, duration: animationDuration, easing: animationEasing }); + this.animate({ key: "y", to: y, duration: animationDuration, easing: animationEasing }); + } else { + this.set("x", x); + this.set("y", y); + } + if (background instanceof PointedRectangle) { + background.set("pointerX", pointerX); + background.set("pointerY", pointerY); + } + if (w > 0) { + this._w = w; + } + if (h > 0) { + this._h = h; + } + } + } + }; + Tooltip.className = "Tooltip"; + Tooltip.classNames = Container.classNames.concat([Tooltip.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/NumberFormatter.js + var NumberFormatter = class extends Entity { + _setDefaults() { + this._setDefault("negativeBase", 0); + this._setDefault("numberFormat", "#,###.#####"); + this._setDefault("smallNumberThreshold", 1); + const bns = "_big_number_suffix_"; + const sns = "_small_number_suffix_"; + const bs = "_byte_suffix_"; + this._setDefault("bigNumberPrefixes", [ + { "number": 1e3, "suffix": this._t(bns + "3") }, + { "number": 1e6, "suffix": this._t(bns + "6") }, + { "number": 1e9, "suffix": this._t(bns + "9") }, + { "number": 1e12, "suffix": this._t(bns + "12") }, + { "number": 1e15, "suffix": this._t(bns + "15") }, + { "number": 1e18, "suffix": this._t(bns + "18") }, + { "number": 1e21, "suffix": this._t(bns + "21") }, + { "number": 1e24, "suffix": this._t(bns + "24") } + ]); + this._setDefault("smallNumberPrefixes", [ + { "number": 1e-24, "suffix": this._t(sns + "24") }, + { "number": 1e-21, "suffix": this._t(sns + "21") }, + { "number": 1e-18, "suffix": this._t(sns + "18") }, + { "number": 1e-15, "suffix": this._t(sns + "15") }, + { "number": 1e-12, "suffix": this._t(sns + "12") }, + { "number": 1e-9, "suffix": this._t(sns + "9") }, + { "number": 1e-6, "suffix": this._t(sns + "6") }, + { "number": 1e-3, "suffix": this._t(sns + "3") } + ]); + this._setDefault("bytePrefixes", [ + { "number": 1, suffix: this._t(bs + "B") }, + { "number": 1024, suffix: this._t(bs + "KB") }, + { "number": 1048576, suffix: this._t(bs + "MB") }, + { "number": 1073741824, suffix: this._t(bs + "GB") }, + { "number": 1099511627776, suffix: this._t(bs + "TB") }, + { "number": 1125899906842624, suffix: this._t(bs + "PB") } + ]); + super._setDefaults(); + } + _beforeChanged() { + super._beforeChanged(); + } + /** + * Formats the number according to specific format. + * + * @param value Value to format + * @param format Format to apply + * @return Formatted number + */ + format(value, format, precision) { + if (format == null || isString(format) && format.toLowerCase() === "number") { + format = this.get("numberFormat", ""); + } + let formatted; + let source = Number(value); + if (isObject(format)) { + try { + if (this.get("intlLocales")) { + return new Intl.NumberFormat(this.get("intlLocales"), format).format(source); + } else { + return new Intl.NumberFormat(void 0, format).format(source); + } + } catch (e) { + return "Invalid"; + } + } else { + format = cleanFormat(format); + let info = this.parseFormat(format, this._root.language); + let details; + if (source > this.get("negativeBase")) { + details = info.positive; + } else if (source < this.get("negativeBase")) { + details = info.negative; + } else { + details = info.zero; + } + if (precision != null && !details.mod) { + details = copy2(details); + details.decimals.active = source == 0 ? 0 : precision; + } + formatted = details.template.split(PLACEHOLDER).join(this.applyFormat(source, details)); + } + if (this.get("forceLTR") === true) { + formatted = "\u200E" + formatted; + } + return formatted; + } + /** + * Parses supplied format into structured object which can be used to format + * the number. + * + * @param format Format string, i.e. "#,###.00" + * @param language Language + * @ignore + */ + parseFormat(format, language) { + const thousandSeparator = language.translateEmpty("_thousandSeparator"); + const decimalSeparator = language.translateEmpty("_decimalSeparator"); + let info = { + "positive": { + "thousands": { + "active": -1, + "passive": -1, + "interval": -1, + "separator": thousandSeparator + }, + "decimals": { + "active": -1, + "passive": -1, + "separator": decimalSeparator + }, + "template": "", + "source": "", + "parsed": false + }, + "negative": { + "thousands": { + "active": -1, + "passive": -1, + "interval": -1, + "separator": thousandSeparator + }, + "decimals": { + "active": -1, + "passive": -1, + "separator": decimalSeparator + }, + "template": "", + "source": "", + "parsed": false + }, + "zero": { + "thousands": { + "active": -1, + "passive": -1, + "interval": -1, + "separator": thousandSeparator + }, + "decimals": { + "active": -1, + "passive": -1, + "separator": decimalSeparator + }, + "template": "", + "source": "", + "parsed": false + } + }; + format = format.replace("||", PLACEHOLDER2); + let parts = format.split("|"); + info.positive.source = parts[0]; + if (typeof parts[2] === "undefined") { + info.zero = info.positive; + } else { + info.zero.source = parts[2]; + } + if (typeof parts[1] === "undefined") { + info.negative = info.positive; + } else { + info.negative.source = parts[1]; + } + each2(info, (_part, item) => { + if (item.parsed) { + return; + } + let partFormat = item.source; + if (partFormat.toLowerCase() === "number") { + partFormat = this.get("numberFormat", "#,###.#####"); + } + let chunks = TextFormatter.chunk(partFormat, true); + for (let i = 0; i < chunks.length; i++) { + let chunk = chunks[i]; + chunk.text = chunk.text.replace(PLACEHOLDER2, "|"); + if (chunk.type === "value") { + let matches = chunk.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESP‰!]?/); + if (matches) { + if (matches === null || matches[0] === "") { + item.template += chunk.text; + } else { + let mods = matches[0].match(/[abespABESP%‰!]{2}|[abespABESP%‰]{1}$/); + if (mods) { + item.mod = mods[0].toLowerCase(); + item.modSpacing = matches[0].match(/[ ]{1}[abespABESP%‰!]{1}$/) ? true : false; + } + let a = matches[0].split("."); + if (a[0] === "") { + } else { + item.thousands.active = (a[0].match(/0/g) || []).length; + item.thousands.passive = (a[0].match(/\#/g) || []).length + item.thousands.active; + let b = a[0].split(","); + if (b.length === 1) { + } else { + item.thousands.interval = (b.pop() || "").length; + if (item.thousands.interval === 0) { + item.thousands.interval = -1; + } + } + } + if (typeof a[1] === "undefined") { + } else { + item.decimals.active = (a[1].match(/0/g) || []).length; + item.decimals.passive = (a[1].match(/\#/g) || []).length + item.decimals.active; + } + item.template += chunk.text.split(matches[0]).join(PLACEHOLDER); + } + } + } else { + item.template += chunk.text; + } + } + item.parsed = true; + }); + return info; + } + /** + * Applies parsed format to a numeric value. + * + * @param value Value + * @param details Parsed format as returned by parseFormat() + * @return Formatted number + * @ignore + */ + applyFormat(value, details) { + let negative = value < 0; + value = Math.abs(value); + let prefix = "", suffix = ""; + let mods = details.mod ? details.mod.split("") : []; + if (mods.indexOf("b") !== -1) { + let a2 = this.applyPrefix(value, this.get("bytePrefixes"), mods.indexOf("!") !== -1); + value = a2[0]; + prefix = a2[1]; + suffix = a2[2]; + if (details.modSpacing) { + suffix = " " + suffix; + } + } else if (mods.indexOf("a") !== -1) { + let a2 = this.applyPrefix(value, value < this.get("smallNumberThreshold") ? this.get("smallNumberPrefixes") : this.get("bigNumberPrefixes"), mods.indexOf("!") !== -1); + value = a2[0]; + prefix = a2[1]; + suffix = a2[2]; + if (details.modSpacing) { + suffix = " " + suffix; + } + } else if (mods.indexOf("p") !== -1) { + let ol = Math.min(value.toString().length + 2, 21); + value = parseFloat(value.toPrecision(ol)); + prefix = this._root.language.translate("_percentPrefix"); + suffix = this._root.language.translate("_percentSuffix"); + if (prefix == "" && suffix == "") { + suffix = "%"; + } + } else if (mods.indexOf("%") !== -1) { + let ol = Math.min(value.toString().length + 2, 21); + value *= 100; + value = parseFloat(value.toPrecision(ol)); + suffix = "%"; + } else if (mods.indexOf("\u2030") !== -1) { + let ol = Math.min(value.toString().length + 3, 21); + value *= 1e3; + value = parseFloat(value.toPrecision(ol)); + suffix = "\u2030"; + } + if (mods.indexOf("e") !== -1) { + let exp2; + if (details.decimals.passive >= 0) { + exp2 = value.toExponential(details.decimals.passive).split("e"); + } else { + exp2 = value.toExponential().split("e"); + } + value = Number(exp2[0]); + suffix = "e" + exp2[1]; + if (details.modSpacing) { + suffix = " " + suffix; + } + } else if (details.decimals.passive === 0) { + value = Math.round(value); + } else if (details.decimals.passive > 0) { + const decimals = decimalPlaces(value); + if (decimals > 0) { + const d = Math.pow(10, details.decimals.passive); + value = Math.round(parseFloat((value * d).toFixed(decimals))) / d; + } + } + let res = ""; + let a = numberToString(value).split("."); + let ints = a[0]; + if (ints.length < details.thousands.active) { + ints = Array(details.thousands.active - ints.length + 1).join("0") + ints; + } + if (details.thousands.interval > 0) { + let ip = []; + let intsr = ints.split("").reverse().join(""); + for (let i = 0, len = ints.length; i <= len; i += details.thousands.interval) { + let c = intsr.substr(i, details.thousands.interval).split("").reverse().join(""); + if (c !== "") { + ip.unshift(c); + } + } + ints = ip.join(details.thousands.separator); + } + res += ints; + if (a.length === 1) { + a.push(""); + } + let decs = a[1]; + if (decs.length < details.decimals.active) { + decs += Array(details.decimals.active - decs.length + 1).join("0"); + } + if (decs !== "") { + res += details.decimals.separator + decs; + } + if (res === "") { + res = "0"; + } + if (value !== 0 && negative && mods.indexOf("s") === -1) { + res = "-" + res; + } + if (prefix) { + res = prefix + res; + } + if (suffix) { + res += suffix; + } + return res; + } + applyPrefix(value, prefixes, force = false) { + let newvalue = value; + let prefix = ""; + let suffix = ""; + let applied = false; + let k = 1; + for (let i = 0, len = prefixes.length; i < len; i++) { + if (prefixes[i].number <= value) { + if (prefixes[i].number === 0) { + newvalue = 0; + } else { + newvalue = value / prefixes[i].number; + k = prefixes[i].number; + } + prefix = prefixes[i].prefix; + suffix = prefixes[i].suffix; + applied = true; + } + } + if (!applied && force && prefixes.length && value != 0) { + newvalue = value / prefixes[0].number; + prefix = prefixes[0].prefix; + suffix = prefixes[0].suffix; + applied = true; + } + if (applied) { + newvalue = parseFloat(newvalue.toPrecision(Math.min(k.toString().length + Math.floor(newvalue).toString().replace(/[^0-9]*/g, "").length, 21))); + } + return [newvalue, prefix, suffix]; + } + /** + * Replaces brackets with temporary placeholders. + * + * @ignore Exclude from docs + * @param text Input text + * @return Escaped text + */ + escape(text) { + return text.replace("||", PLACEHOLDER2); + } + /** + * Replaces placeholders back to brackets. + * + * @ignore Exclude from docs + * @param text Escaped text + * @return Unescaped text + */ + unescape(text) { + return text.replace(PLACEHOLDER2, "|"); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Timezone.js + function parseDate(timezone, date) { + let year = 0; + let month = 0; + let day = 1; + let hour = 0; + let minute = 0; + let second = 0; + let millisecond = 0; + let weekday = 0; + timezone.formatToParts(date).forEach((x) => { + switch (x.type) { + case "year": + year = +x.value; + break; + case "month": + month = +x.value - 1; + break; + case "day": + day = +x.value; + break; + case "hour": + hour = +x.value; + break; + case "minute": + minute = +x.value; + break; + case "second": + second = +x.value; + break; + case "fractionalSecond": + millisecond = +x.value; + break; + case "weekday": + switch (x.value) { + case "Sun": + weekday = 0; + break; + case "Mon": + weekday = 1; + break; + case "Tue": + weekday = 2; + break; + case "Wed": + weekday = 3; + break; + case "Thu": + weekday = 4; + break; + case "Fri": + weekday = 5; + break; + case "Sat": + weekday = 6; + break; + } + } + }); + if (hour === 24) { + hour = 0; + } + return { year, month, day, hour, minute, second, millisecond, weekday }; + } + function toUTCDate(timezone, date) { + const { year, month, day, hour, minute, second, millisecond } = parseDate(timezone, date); + return Date.UTC(year, month, day, hour, minute, second, millisecond); + } + var Timezone = class { + constructor(timezone, isReal) { + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + this.name = timezone; + this._utc = new Intl.DateTimeFormat("en-US", { + hour12: false, + timeZone: "UTC", + year: "numeric", + month: "2-digit", + day: "2-digit", + hour: "2-digit", + minute: "2-digit", + second: "2-digit", + weekday: "short", + fractionalSecondDigits: 3 + }); + this._dtf = new Intl.DateTimeFormat("en-US", { + hour12: false, + timeZone: timezone, + year: "numeric", + month: "2-digit", + day: "2-digit", + hour: "2-digit", + minute: "2-digit", + second: "2-digit", + weekday: "short", + fractionalSecondDigits: 3 + }); + } + /** + * Use this method to create an instance of this class. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @param timezone IANA timezone + * @return Instantiated object + */ + static new(timezone) { + return new this(timezone, true); + } + convertLocal(date) { + const offset = this.offsetUTC(date); + const userOffset = date.getTimezoneOffset(); + const output = new Date(date); + output.setUTCMinutes(output.getUTCMinutes() - (offset - userOffset)); + const newUserOffset = output.getTimezoneOffset(); + if (userOffset != newUserOffset) { + output.setUTCMinutes(output.getUTCMinutes() + newUserOffset - userOffset); + } + return output; + } + offsetUTC(date) { + const utc = toUTCDate(this._utc, date); + const dtf = toUTCDate(this._dtf, date); + return (utc - dtf) / 6e4; + } + parseDate(date) { + return parseDate(this._dtf, date); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/DateFormatter.js + var DateFormatter = class extends Entity { + _setDefaults() { + this._setDefault("capitalize", true); + this._setDefault("dateFormat", "yyyy-MM-dd"); + super._setDefaults(); + } + _beforeChanged() { + super._beforeChanged(); + } + /** + * Formats a source `Date` object into string format + * @param source inpout date + * @param format Output format + * @param ignoreTimezone Ignore timezone? + * @return Formatted date + */ + format(source, format, ignoreTimezone = false) { + if (typeof format === "undefined" || format === "") { + format = this.get("dateFormat", "yyyy-MM-dd"); + } + let formatted; + let date = source; + if (isObject(format)) { + try { + const locales = this.get("intlLocales"); + if (locales) { + return new Intl.DateTimeFormat(locales, format).format(date); + } else { + return new Intl.DateTimeFormat(void 0, format).format(date); + } + } catch (e) { + return "Invalid"; + } + } + let info = this.parseFormat(format); + const timezone = this._root.timezone; + let originalDate = date; + if (timezone && !this._root.utc && !ignoreTimezone) { + date = timezone.convertLocal(date); + } + if (!isNumber(date.getTime())) { + return "Invalid date"; + } + formatted = this.applyFormat(date, info, ignoreTimezone, originalDate); + if (this.get("capitalize")) { + formatted = formatted.replace(/^.{1}/, formatted.substr(0, 1).toUpperCase()); + } + return formatted; + } + /** + * Applies format to Date. + * + * @param date Date object + * @param info Parsed format information + * @return Formatted date string + */ + applyFormat(date, info, ignoreTimezone = false, originalDate) { + let res = info.template; + let fullYear, month, weekday, day, hours, minutes, seconds, milliseconds, timestamp = date.getTime(); + if (this._root.utc && !ignoreTimezone) { + fullYear = date.getUTCFullYear(); + month = date.getUTCMonth(); + weekday = date.getUTCDay(); + day = date.getUTCDate(); + hours = date.getUTCHours(); + minutes = date.getUTCMinutes(); + seconds = date.getUTCSeconds(); + milliseconds = date.getUTCMilliseconds(); + } else { + fullYear = date.getFullYear(); + month = date.getMonth(); + weekday = date.getDay(); + day = date.getDate(); + hours = date.getHours(); + minutes = date.getMinutes(); + seconds = date.getSeconds(); + milliseconds = date.getMilliseconds(); + } + for (let i = 0, len = info.parts.length; i < len; i++) { + let value = ""; + switch (info.parts[i]) { + case "G": + value = this._t(fullYear < 0 ? "_era_bc" : "_era_ad"); + break; + case "yyyy": + value = Math.abs(fullYear).toString(); + if (fullYear < 0) { + value += this._t("_era_bc"); + } + break; + case "yyy": + case "yy": + case "y": + value = Math.abs(fullYear).toString().substr(-info.parts[i].length); + if (fullYear < 0) { + value += this._t("_era_bc"); + } + break; + case "YYYY": + case "YYY": + case "YY": + case "Y": + let year = getWeekYear(date, this._root.utc); + if (info.parts[i] == "YYYY") { + value = Math.abs(year).toString(); + } else { + value = Math.abs(year).toString().substr(-info.parts[i].length); + } + if (year < 0) { + value += this._t("_era_bc"); + } + break; + case "u": + break; + case "q": + value = "" + Math.ceil((date.getMonth() + 1) / 3); + break; + case "MMMMM": + value = this._t(this._getMonth(month)).substr(0, 1); + break; + case "MMMM": + value = this._t(this._getMonth(month)); + break; + case "MMM": + value = this._t(this._getShortMonth(month)); + break; + case "MM": + value = padString(month + 1, 2, "0"); + break; + case "M": + value = (month + 1).toString(); + break; + case "ww": + value = padString(getWeek(date, this._root.utc), 2, "0"); + break; + case "w": + value = getWeek(date, this._root.utc).toString(); + break; + case "W": + value = getMonthWeek(date, this._root.utc).toString(); + break; + case "dd": + value = padString(day, 2, "0"); + break; + case "d": + value = day.toString(); + break; + case "DD": + case "DDD": + value = padString(getYearDay(date, this._root.utc).toString(), info.parts[i].length, "0"); + break; + case "D": + value = getYearDay(date, this._root.utc).toString(); + break; + case "F": + break; + case "g": + break; + case "t": + value = this._root.language.translateFunc("_dateOrd").call(this, day); + break; + case "E": + value = (weekday || 7).toString(); + break; + case "EE": + value = padString((weekday || 7).toString(), 2, "0"); + break; + case "EEE": + case "eee": + value = this._t(this._getShortWeekday(weekday)); + break; + case "EEEE": + case "eeee": + value = this._t(this._getWeekday(weekday)); + break; + case "EEEEE": + case "eeeee": + value = this._t(this._getShortWeekday(weekday)).substr(0, 1); + break; + case "e": + case "ee": + value = (weekday - (this._root.locale.firstDayOfWeek || 1) + 1).toString(); + if (info.parts[i] == "ee") { + value = padString(value, 2, "0"); + } + break; + case "a": + if (hours >= 12) { + value = this._t("PM"); + } else { + value = this._t("AM"); + } + break; + case "aa": + if (hours >= 12) { + value = this._t("P.M."); + } else { + value = this._t("A.M."); + } + break; + case "aaa": + if (hours >= 12) { + value = this._t("P"); + } else { + value = this._t("A"); + } + break; + case "h": + value = get12Hours(hours).toString(); + break; + case "hh": + value = padString(get12Hours(hours), 2, "0"); + break; + case "H": + value = hours.toString(); + break; + case "HH": + value = padString(hours, 2, "0"); + break; + case "K": + value = get12Hours(hours, 0).toString(); + break; + case "KK": + value = padString(get12Hours(hours, 0), 2, "0"); + break; + case "k": + value = (hours + 1).toString(); + break; + case "kk": + value = padString(hours + 1, 2, "0"); + break; + case "m": + value = minutes.toString(); + break; + case "mm": + value = padString(minutes, 2, "0"); + break; + case "s": + value = seconds.toString(); + break; + case "ss": + value = padString(seconds, 2, "0"); + break; + case "S": + case "SS": + case "SSS": + value = Math.round(milliseconds / 1e3 * Math.pow(10, info.parts[i].length)).toString(); + break; + case "x": + value = timestamp.toString(); + break; + case "n": + case "nn": + case "nnn": + value = padString(milliseconds, info.parts[i].length, "0"); + break; + case "z": + value = getTimeZone(originalDate || date, false, false, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0).replace(/[+-]+[0-9]+$/, ""); + break; + case "zz": + value = getTimeZone(originalDate || date, true, false, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0); + break; + case "zzz": + value = getTimeZone(originalDate || date, false, true, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0).replace(/[+-]+[0-9]+$/, ""); + break; + case "zzzz": + value = getTimeZone(originalDate || date, true, true, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0); + break; + case "Z": + case "ZZ": + let timezone = this._root.utc ? "UTC" : this._root.timezone; + if (timezone instanceof Timezone) { + timezone = timezone.name; + } + const offset = timezone ? getTimezoneOffset(timezone, originalDate || date) : date.getTimezoneOffset(); + let tz = Math.abs(offset) / 60; + let tzh = Math.floor(tz); + let tzm = tz * 60 - tzh * 60; + if (this._root.utc) { + tzh = 0; + tzm = 0; + } + if (info.parts[i] == "Z") { + value = "GMT"; + value += offset > 0 ? "-" : "+"; + value += padString(tzh, 2) + ":" + padString(tzm, 2); + } else { + value = offset > 0 ? "-" : "+"; + value += padString(tzh, 2) + padString(tzm, 2); + } + break; + case "i": + value = date.toISOString(); + break; + case "I": + value = date.toUTCString(); + break; + } + res = res.replace(PLACEHOLDER, value); + } + return res; + } + /** + * Parses format into structured infromation. + * + * @param format Format template + */ + parseFormat(format) { + let info = { + "template": "", + "parts": [] + }; + let chunks = TextFormatter.chunk(format, true); + for (let i = 0; i < chunks.length; i++) { + let chunk = chunks[i]; + if (chunk.type === "value") { + if (chunk.text.match(/^date$/i)) { + let dateFormat = this.get("dateFormat", "yyyy-MM-dd"); + if (!isString(dateFormat)) { + dateFormat = "yyyy-MM-dd"; + } + chunk.text = dateFormat; + } + let matches = chunk.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g); + if (matches) { + for (let x = 0; x < matches.length; x++) { + info.parts.push(matches[x]); + chunk.text = chunk.text.replace(matches[x], PLACEHOLDER); + } + } + } + info.template += chunk.text; + } + return info; + } + _months() { + return ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; + } + _getMonth(index) { + return this._months()[index]; + } + _shortMonths() { + return ["Jan", "Feb", "Mar", "Apr", "May(short)", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; + } + _getShortMonth(index) { + return this._shortMonths()[index]; + } + _weekdays() { + return ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; + } + _getWeekday(index) { + return this._weekdays()[index]; + } + _shortWeekdays() { + return ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; + } + _getShortWeekday(index) { + return this._shortWeekdays()[index]; + } + parse(source, format, utc) { + if (typeof utc === "undefined") { + utc = this._root.utc; + } + if (source instanceof Date) { + return source; + } + if (isNumber(source)) { + return new Date(source); + } + if (format == "x") { + return new Date(parseInt(source)); + } + if (!isString(source)) { + source = source.toString(); + } + let res; + let reg = ""; + format = cleanFormat(format); + format = format.substr(0, source.length); + let info = this.parseFormat(format); + let parsedIndexes = { + "year": -1, + "year3": -1, + "year2": -1, + "year1": -1, + "month": -1, + "monthShort": -1, + "monthLong": -1, + "weekdayShort": -1, + "weekdayLong": -1, + "day": -1, + "yearDay": -1, + "week": -1, + "hourBase0": -1, + "hour12Base0": -1, + "hourBase1": -1, + "hour12Base1": -1, + "minute": -1, + "second": -1, + "millisecond": -1, + "millisecondDigits": -1, + "am": -1, + "zone": -1, + "timestamp": -1, + "iso": -1 + }; + let resValues = { + "year": 1970, + "month": 0, + "day": 1, + "hour": 0, + "minute": 0, + "second": 0, + "millisecond": 0, + "timestamp": null, + "offset": 0, + "utc": utc + }; + let indexAdjust = 0; + let index = 0; + for (let i = 0; i < info.parts.length; i++) { + index = i + indexAdjust + 1; + switch (info.parts[i]) { + case "yyyy": + case "YYYY": + reg += "([0-9]{4})"; + parsedIndexes.year = index; + break; + case "yyy": + case "YYY": + reg += "([0-9]{3})"; + parsedIndexes.year3 = index; + break; + case "yy": + case "YY": + reg += "([0-9]{2})"; + parsedIndexes.year2 = index; + break; + case "y": + case "Y": + reg += "([0-9]{1})"; + parsedIndexes.year1 = index; + break; + case "MMMM": + reg += "(" + this.getStringList(this._months()).join("|") + ")"; + parsedIndexes.monthLong = index; + break; + case "MMM": + reg += "(" + this.getStringList(this._shortMonths()).join("|") + ")"; + parsedIndexes.monthShort = index; + break; + case "MM": + case "M": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.month = index; + break; + case "ww": + case "w": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.week = index; + break; + case "dd": + case "d": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.day = index; + break; + case "DDD": + case "DD": + case "D": + reg += "([0-9]{3}|[0-9]{2}|[0-9]{1})"; + parsedIndexes.yearDay = index; + break; + case "dddd": + reg += "(" + this.getStringList(this._weekdays()).join("|") + ")"; + parsedIndexes.weekdayLong = index; + break; + case "ddd": + reg += "(" + this.getStringList(this._shortWeekdays()).join("|") + ")"; + parsedIndexes.weekdayShort = index; + break; + case "aaa": + case "aa": + case "a": + reg += "(" + this.getStringList(["AM", "PM", "A.M.", "P.M.", "A", "P"]).join("|") + ")"; + parsedIndexes.am = index; + break; + case "hh": + case "h": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.hour12Base1 = index; + break; + case "HH": + case "H": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.hourBase0 = index; + break; + case "KK": + case "K": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.hour12Base0 = index; + break; + case "kk": + case "k": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.hourBase1 = index; + break; + case "mm": + case "m": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.minute = index; + break; + case "ss": + case "s": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.second = index; + break; + case "SSS": + case "SS": + case "S": + reg += "([0-9]{3}|[0-9]{2}|[0-9]{1})"; + parsedIndexes.millisecond = index; + parsedIndexes.millisecondDigits = info.parts[i].length; + break; + case "nnn": + case "nn": + case "n": + reg += "([0-9]{3}|[0-9]{2}|[0-9]{1})"; + parsedIndexes.millisecond = index; + break; + case "x": + reg += "([0-9]{1,})"; + parsedIndexes.timestamp = index; + break; + case "Z": + reg += "GMT([-+]+[0-9]{2}:[0-9]{2})"; + parsedIndexes.zone = index; + break; + case "ZZ": + reg += "([\\-+]+[0-9]{2}[0-9]{2})"; + parsedIndexes.zone = index; + break; + case "i": + reg += "([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2})\\.?([0-9]{0,3})([zZ]|[+\\-][0-9]{2}:?[0-9]{2}|$)"; + parsedIndexes.iso = index; + indexAdjust += 7; + break; + case "G": + case "YYYY": + case "YYY": + case "YY": + case "Y": + case "MMMMM": + case "W": + case "EEEEE": + case "EEEE": + case "EEE": + case "EE": + case "E": + case "eeeee": + case "eeee": + case "eee": + case "ee": + case "e": + case "zzzz": + case "zzz": + case "zz": + case "z": + case "t": + indexAdjust--; + break; + } + reg += "[^0-9]*"; + } + let regex = new RegExp(reg); + let matches = source.match(regex); + if (matches) { + if (parsedIndexes.year > -1) { + resValues.year = parseInt(matches[parsedIndexes.year]); + } + if (parsedIndexes.year3 > -1) { + let val = parseInt(matches[parsedIndexes.year3]); + val += 1e3; + resValues.year = val; + } + if (parsedIndexes.year2 > -1) { + let val = parseInt(matches[parsedIndexes.year2]); + if (val > 50) { + val += 1e3; + } else { + val += 2e3; + } + resValues.year = val; + } + if (parsedIndexes.year1 > -1) { + let val = parseInt(matches[parsedIndexes.year1]); + val = Math.floor((/* @__PURE__ */ new Date()).getFullYear() / 10) * 10 + val; + resValues.year = val; + } + if (parsedIndexes.monthLong > -1) { + resValues.month = this.resolveMonth(matches[parsedIndexes.monthLong]); + } + if (parsedIndexes.monthShort > -1) { + resValues.month = this.resolveShortMonth(matches[parsedIndexes.monthShort]); + } + if (parsedIndexes.month > -1) { + resValues.month = parseInt(matches[parsedIndexes.month]) - 1; + } + if (parsedIndexes.week > -1 && parsedIndexes.day === -1) { + resValues.month = 0; + resValues.day = getDayFromWeek(parseInt(matches[parsedIndexes.week]), resValues.year, 1, utc); + } + if (parsedIndexes.day > -1) { + resValues.day = parseInt(matches[parsedIndexes.day]); + } + if (parsedIndexes.yearDay > -1) { + resValues.month = 0; + resValues.day = parseInt(matches[parsedIndexes.yearDay]); + } + if (parsedIndexes.hourBase0 > -1) { + resValues.hour = parseInt(matches[parsedIndexes.hourBase0]); + } + if (parsedIndexes.hourBase1 > -1) { + resValues.hour = parseInt(matches[parsedIndexes.hourBase1]) - 1; + } + if (parsedIndexes.hour12Base0 > -1) { + let val = parseInt(matches[parsedIndexes.hour12Base0]); + if (val == 11) { + val = 0; + } + if (parsedIndexes.am > -1 && !this.isAm(matches[parsedIndexes.am])) { + val += 12; + } + resValues.hour = val; + } + if (parsedIndexes.hour12Base1 > -1) { + let val = parseInt(matches[parsedIndexes.hour12Base1]); + if (val == 12) { + val = 0; + } + if (parsedIndexes.am > -1 && !this.isAm(matches[parsedIndexes.am])) { + val += 12; + } + resValues.hour = val; + } + if (parsedIndexes.minute > -1) { + resValues.minute = parseInt(matches[parsedIndexes.minute]); + } + if (parsedIndexes.second > -1) { + resValues.second = parseInt(matches[parsedIndexes.second]); + } + if (parsedIndexes.millisecond > -1) { + let val = parseInt(matches[parsedIndexes.millisecond]); + if (parsedIndexes.millisecondDigits == 2) { + val *= 10; + } else if (parsedIndexes.millisecondDigits == 1) { + val *= 100; + } + resValues.millisecond = val; + } + if (parsedIndexes.timestamp > -1) { + resValues.timestamp = parseInt(matches[parsedIndexes.timestamp]); + const ts = new Date(resValues.timestamp); + resValues.year = ts.getUTCFullYear(); + resValues.month = ts.getUTCMonth(); + resValues.day = ts.getUTCDate(); + resValues.hour = ts.getUTCHours(); + resValues.minute = ts.getUTCMinutes(); + resValues.second = ts.getUTCSeconds(); + resValues.millisecond = ts.getUTCMilliseconds(); + } + if (parsedIndexes.zone > -1) { + resValues.offset = this.resolveTimezoneOffset(new Date(resValues.year, resValues.month, resValues.day), matches[parsedIndexes.zone]); + } + if (parsedIndexes.iso > -1) { + resValues.year = toNumber(matches[parsedIndexes.iso + 0]); + resValues.month = toNumber(matches[parsedIndexes.iso + 1]) - 1; + resValues.day = toNumber(matches[parsedIndexes.iso + 2]); + resValues.hour = toNumber(matches[parsedIndexes.iso + 3]); + resValues.minute = toNumber(matches[parsedIndexes.iso + 4]); + resValues.second = toNumber(matches[parsedIndexes.iso + 5]); + resValues.millisecond = toNumber(matches[parsedIndexes.iso + 6]); + if (matches[parsedIndexes.iso + 7] == "Z" || matches[parsedIndexes.iso + 7] == "z") { + resValues.utc = true; + } else if (matches[parsedIndexes.iso + 7] != "") { + resValues.offset = this.resolveTimezoneOffset(new Date(resValues.year, resValues.month, resValues.day), matches[parsedIndexes.iso + 7]); + } + } + if (resValues.utc) { + res = new Date(Date.UTC(resValues.year, resValues.month, resValues.day, resValues.hour, resValues.minute, resValues.second, resValues.millisecond)); + } else { + res = new Date(resValues.year, resValues.month, resValues.day, resValues.hour, resValues.minute + resValues.offset, resValues.second, resValues.millisecond); + } + } else { + res = new Date(source); + } + return res; + } + resolveTimezoneOffset(date, zone) { + let value = zone.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/); + if (value) { + let match = zone.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/); + let dir = match[1]; + let hour = match[2]; + let minute = match[3]; + let offset = parseInt(hour) * 60 + parseInt(minute); + if (dir == "+") { + offset *= -1; + } + let originalOffset = (date || /* @__PURE__ */ new Date()).getTimezoneOffset(); + let diff = offset - originalOffset; + return diff; + } + return 0; + } + /** + * Resolves month name (i.e. "December") into a month number (11). + * + * @param value Month name + * @return Month number + */ + resolveMonth(value) { + let month = this._months().indexOf(value); + if (month > -1) { + return month; + } + if (!this._root.language.isDefault()) { + month = this._root.language.translateAll(this._months()).indexOf(value); + if (month > -1) { + return month; + } + } + return 0; + } + /** + * Resolves short month name (i.e. "Dec") into a month number. + * + * @param value Short month name + * @return Month number + */ + resolveShortMonth(value) { + let month = this._shortMonths().indexOf(value); + if (month > -1) { + return month; + } + month = this._months().indexOf(value); + if (month > -1) { + return month; + } + if (this._root.language && !this._root.language.isDefault()) { + month = this._root.language.translateAll(this._shortMonths()).indexOf(value); + if (month > -1) { + return month; + } + } + return 0; + } + /** + * Checks if passed in string represents AM/PM notation in many of its + * versions. + * + * @param value Source string + * @return Is it AM/PM? + */ + isAm(value) { + let list = this.getStringList(["AM", "A.M.", "A"]); + return list.indexOf(value.toUpperCase()) > -1; + } + /** + * Translates list of strings. + * + * @param list Source strings + * @return Translated strings + */ + getStringList(list) { + let res = []; + for (let i = 0; i < list.length; i++) { + if (this._root.language) { + res.push(escapeForRgex(this._t(list[i]))); + } else { + res.push(escapeForRgex(list[i])); + } + } + return res; + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/DurationFormatter.js + var DurationFormatter = class extends Entity { + constructor() { + super(...arguments); + this._unitAliases = { + "Y": "y", + "D": "d", + "H": "h", + "K": "h", + "k": "h", + "n": "S" + }; + } + _setDefaults() { + const dmillisecond = "_duration_millisecond"; + const dsecond = "_duration_second"; + const dminute = "_duration_minute"; + const dhour = "_duration_hour"; + const dday = "_duration_day"; + const dweek = "_duration_week"; + const dmonth = "_duration_month"; + const dyear = "_duration_year"; + const asecond = "_second"; + const aminute = "_minute"; + const ahour = "_hour"; + const aday = "_day"; + const aweek = "_week"; + const amonth = "_week"; + const ayear = "_year"; + this._setDefault("negativeBase", 0); + this._setDefault("baseUnit", "second"); + this._setDefault("durationFormats", { + "millisecond": { + "millisecond": this._t(dmillisecond), + "second": this._t(dmillisecond + asecond), + "minute": this._t(dmillisecond + aminute), + "hour": this._t(dmillisecond + ahour), + "day": this._t(dmillisecond + aday), + "week": this._t(dmillisecond + aweek), + "month": this._t(dmillisecond + amonth), + "year": this._t(dmillisecond + ayear) + }, + "second": { + "second": this._t(dsecond), + "minute": this._t(dsecond + aminute), + "hour": this._t(dsecond + ahour), + "day": this._t(dsecond + aday), + "week": this._t(dsecond + aweek), + "month": this._t(dsecond + amonth), + "year": this._t(dsecond + ayear) + }, + "minute": { + "minute": this._t(dminute), + "hour": this._t(dminute + ahour), + "day": this._t(dminute + aday), + "week": this._t(dminute + aweek), + "month": this._t(dminute + amonth), + "year": this._t(dminute + ayear) + }, + "hour": { + "hour": this._t(dhour), + "day": this._t(dhour + aday), + "week": this._t(dhour + aweek), + "month": this._t(dhour + amonth), + "year": this._t(dhour + ayear) + }, + "day": { + "day": this._t(dday), + "week": this._t(dday + aweek), + "month": this._t(dday + amonth), + "year": this._t(dday + ayear) + }, + "week": { + "week": this._t(dweek), + "month": this._t(dweek + amonth), + "year": this._t(dweek + ayear) + }, + "month": { + "month": this._t(dmonth), + "year": this._t(dmonth + ayear) + }, + "year": { + "year": this._t(dyear) + } + }); + super._setDefaults(); + } + _beforeChanged() { + super._beforeChanged(); + } + /** + * Formats the number as duration. + * + * For example `1000` (base unit seconds) would be converted to `16:40` as in + * 16 minutes and 40 seconds. + * + * @param value Value to format + * @param format Format to apply + * @param base Override base unit + * @return Formatted number + */ + format(value, format, base) { + let baseUnit = base || this.get("baseUnit"); + if (typeof format === "undefined" || format === "") { + if (this.get("durationFormat") != null) { + format = this.get("durationFormat"); + } else { + format = this.getFormat(toNumber(value), void 0, baseUnit); + } + } + format = cleanFormat(format); + let info = this.parseFormat(format, baseUnit); + let source = Number(value); + let details; + if (source > this.get("negativeBase")) { + details = info.positive; + } else if (source < this.get("negativeBase")) { + details = info.negative; + } else { + details = info.zero; + } + let formatted = this.applyFormat(source, details); + if (details.color !== "") { + formatted = "[" + details.color + "]" + formatted + "[/]"; + } + return formatted; + } + /** + * Parses supplied format into structured object which can be used to format + * the number. + * + * @param format Format string, i.e. "#,###.00" + * @param base Override base unit + * @return Parsed information + */ + parseFormat(format, base) { + let baseUnit = base || this.get("baseUnit"); + let info = { + "positive": { + "color": "", + "template": "", + "parts": [], + "source": "", + "baseUnit": baseUnit, + "parsed": false, + "absolute": false + }, + "negative": { + "color": "", + "template": "", + "parts": [], + "source": "", + "baseUnit": baseUnit, + "parsed": false, + "absolute": false + }, + "zero": { + "color": "", + "template": "", + "parts": [], + "source": "", + "baseUnit": baseUnit, + "parsed": false, + "absolute": false + } + }; + format = format.replace("||", PLACEHOLDER2); + let parts = format.split("|"); + info.positive.source = parts[0]; + if (typeof parts[2] === "undefined") { + info.zero = info.positive; + } else { + info.zero.source = parts[2]; + } + if (typeof parts[1] === "undefined") { + info.negative = info.positive; + } else { + info.negative.source = parts[1]; + } + each2(info, (_part, item) => { + if (item.parsed) { + return; + } + let partFormat = item.source; + let dirs = []; + dirs = item.source.match(/^\[([^\]]*)\]/); + if (dirs && dirs.length && dirs[0] !== "") { + partFormat = item.source.substr(dirs[0].length); + item.color = dirs[1]; + } + let chunks = TextFormatter.chunk(partFormat, true); + for (let i = 0; i < chunks.length; i++) { + let chunk = chunks[i]; + chunk.text = chunk.text.replace(PLACEHOLDER2, "|"); + if (chunk.type === "value") { + if (chunk.text.match(/[yYMdDwhHKkmsSn]+a/)) { + item.absolute = true; + chunk.text = chunk.text.replace(/([yYMdDwhHKkmsSn]+)a/, "$1"); + } + let matches = chunk.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g); + if (matches) { + for (let x = 0; x < matches.length; x++) { + if (matches[x] == null) { + matches[x] = this._unitAliases[matches[x]]; + } + item.parts.push(matches[x]); + chunk.text = chunk.text.replace(matches[x], PLACEHOLDER); + } + } + } + item.template += chunk.text; + } + item.parsed = true; + }); + return info; + } + /** + * Applies parsed format to a numeric value. + * + * @param value Value + * @param details Parsed format as returned by {parseFormat} + * @return Formatted duration + */ + applyFormat(value, details) { + let negative = !details.absolute && value < this.get("negativeBase"); + value = Math.abs(value); + let tstamp = this.toTimeStamp(value, details.baseUnit); + let res = details.template; + const values = { + millisecond: 0, + second: 0, + minute: 0, + hour: 0, + day: 0, + week: 0, + month: 0, + year: 0 + }; + for (let i = 0, len = details.parts.length; i < len; i++) { + let part = details.parts[i]; + let unit = this._toTimeUnit(part.substr(0, 1)); + let ints; + const unitValue = this._getUnitValue(unit); + if (i < len - 1) { + ints = Math.floor(tstamp / unitValue); + } else { + ints = Math.round(tstamp / unitValue); + } + values[unit] += ints; + tstamp -= ints * unitValue; + } + each2(values, (unit, value2) => { + if (unit == "millisecond" && value2 == 1e3) { + values["second"]++; + values["millisecond"] = 0; + } else if (unit == "second" && value2 == 60) { + values["minute"]++; + values["second"] = 0; + } else if (unit == "minute" && value2 == 60) { + values["hour"]++; + values["minute"] = 0; + } else if (unit == "hour" && value2 == 24) { + values["day"]++; + values["hour"] = 0; + } else if (unit == "day" && value2 == 7 && details.parts.indexOf("w") !== -1) { + values["week"]++; + values["day"] = 0; + } else if (unit == "day" && value2 == 30) { + values["month"]++; + values["day"] = 0; + } else if (unit == "month" && value2 == 12) { + values["year"]++; + values["month"] = 0; + } + }); + for (let i = 0, len = details.parts.length; i < len; i++) { + let part = details.parts[i]; + let unit = this._toTimeUnit(part.substr(0, 1)); + let digits = part.length; + res = res.replace(PLACEHOLDER, padString(values[unit], digits, "0")); + } + if (negative) { + res = "-" + res; + } + return res; + } + /** + * Converts numeric value to timestamp in milliseconds. + * + * @param value A source value + * @param baseUnit Base unit the source value is in: "q", "s", "i", "h", "d", "w", "m", "y" + * @return Value representation as a timestamp in milliseconds + */ + toTimeStamp(value, baseUnit) { + return value * this._getUnitValue(baseUnit); + } + _toTimeUnit(code) { + switch (code) { + case "S": + return "millisecond"; + case "s": + return "second"; + case "m": + return "minute"; + case "h": + return "hour"; + case "d": + return "day"; + case "w": + return "week"; + case "M": + return "month"; + case "y": + return "year"; + } + ; + } + /** + * Returns appropriate default format for the value. + * + * If `maxValue` is sepcified, it will use that value to determine the time + * unit for the format. + * + * For example if your `baseUnit` is `"second"` and you pass in `10`, you + * will get `"10"`. + * + * However, you might want it to be formatted in the context of bigger scale, + * say 10 minutes (600 seconds). If you pass in `600` as `maxValue`, all + * values, including small ones will use format with minutes, e.g.: + * `00:10`, `00:50`, `12: 30`, etc. + * + * @param value Value to format + * @param maxValue Maximum value to be used to determine format + * @param baseUnit Base unit of the value + * @return Format + */ + getFormat(value, maxValue, baseUnit) { + if (this.get("durationFormat") != null) { + return this.get("durationFormat"); + } + if (!baseUnit) { + baseUnit = this.get("baseUnit"); + } + if (maxValue != null && value != maxValue) { + value = Math.abs(value); + maxValue = Math.abs(maxValue); + let maxUnit = this.getValueUnit(Math.max(value, maxValue), baseUnit); + return this.get("durationFormats")[baseUnit][maxUnit]; + } else { + let unit = this.getValueUnit(value, baseUnit); + return this.get("durationFormats")[baseUnit][unit]; + } + } + /** + * Returns value's closest denominator time unit, e.g 100 seconds is + * `"minute"`, while 59 seconds would still be `second`. + * + * @param value Source duration value + * @param baseUnit Base unit + * @return Denominator + */ + getValueUnit(value, baseUnit) { + if (!baseUnit) { + baseUnit = this.get("baseUnit"); + } + let currentUnit; + let ms = this.getMilliseconds(value, baseUnit); + eachContinue2(this._getUnitValues(), (key, val) => { + if (key == baseUnit || currentUnit) { + let num = ms / val; + if (num <= 1) { + if (!currentUnit) { + currentUnit = key; + } + return false; + } + currentUnit = key; + } + return true; + }); + return currentUnit; + } + /** + * Converts value to milliseconds according to `baseUnit`. + * + * @param value Source duration value + * @param baseUnit Base unit + * @return Value in milliseconds + */ + getMilliseconds(value, baseUnit) { + if (!baseUnit) { + baseUnit = this.get("baseUnit"); + } + return value * this._getUnitValue(baseUnit); + } + _getUnitValue(timeUnit) { + return this._getUnitValues()[timeUnit]; + } + _getUnitValues() { + return { + "millisecond": 1, + "second": 1e3, + "minute": 6e4, + "hour": 36e5, + "day": 864e5, + "week": 6048e5, + "month": 2592e6, + "year": 31536e6 + }; + } + }; + + // node_modules/@amcharts/amcharts5/locales/en.js + var en_default = { + "firstDayOfWeek": 1, + // Number formatting options. + // + // Please check with the local standards which separator is accepted to be + // used for separating decimals, and which for thousands. + "_decimalSeparator": ".", + "_thousandSeparator": ",", + // Position of the percent sign in numbers + "_percentPrefix": null, + "_percentSuffix": "%", + // Suffixes for numbers + // When formatting numbers, big or small numers might be reformatted to + // shorter version, by applying a suffix. + // + // For example, 1000000 might become "1m". + // Or 1024 might become "1KB" if we're formatting byte numbers. + // + // This section defines such suffixes for all such cases. + "_big_number_suffix_3": "k", + "_big_number_suffix_6": "M", + "_big_number_suffix_9": "G", + "_big_number_suffix_12": "T", + "_big_number_suffix_15": "P", + "_big_number_suffix_18": "E", + "_big_number_suffix_21": "Z", + "_big_number_suffix_24": "Y", + "_small_number_suffix_3": "m", + "_small_number_suffix_6": "\u03BC", + "_small_number_suffix_9": "n", + "_small_number_suffix_12": "p", + "_small_number_suffix_15": "f", + "_small_number_suffix_18": "a", + "_small_number_suffix_21": "z", + "_small_number_suffix_24": "y", + "_byte_suffix_B": "B", + "_byte_suffix_KB": "KB", + "_byte_suffix_MB": "MB", + "_byte_suffix_GB": "GB", + "_byte_suffix_TB": "TB", + "_byte_suffix_PB": "PB", + // Default date formats for various periods. + // + // This should reflect official or de facto formatting universally accepted + // in the country translation is being made for + // Available format codes here: + // https://www.amcharts.com/docs/v5/concepts/formatters/formatting-dates/#Format_codes + // + // This will be used when formatting date/time for particular granularity, + // e.g. "_date_hour" will be shown whenever we need to show time as hours. + // + // "date" is used as in default date format when showing standalone dates. + "_date": "yyyy-MM-dd", + "_date_millisecond": "mm:ss SSS", + "_date_millisecond_full": "HH:mm:ss SSS", + "_date_second": "HH:mm:ss", + "_date_second_full": "HH:mm:ss", + "_date_minute": "HH:mm", + "_date_minute_full": "HH:mm - MMM dd, yyyy", + "_date_hour": "HH:mm", + "_date_hour_short": "HH", + "_date_hour_full": "HH:mm - MMM dd, yyyy", + "_date_day": "MMM dd", + "_date_day_full": "MMM dd, yyyy", + "_date_week": "ww", + "_date_week_full": "MMM dd, yyyy", + "_date_month": "MMM", + "_date_month_full": "MMM, yyyy", + "_date_year": "yyyy", + // Default duration formats for various base units. + // + // This will be used by DurationFormatter to format numeric values into + // duration. + // + // Notice how each duration unit comes in several versions. This is to ensure + // that each base unit is shown correctly. + // + // For example, if we have baseUnit set to "second", meaning our duration is + // in seconds. + // + // If we pass in `50` to formatter, it will know that we have just 50 seconds + // (less than a minute) so it will use format in `"_duration_second"` ("ss"), + // and the formatted result will be in like `"50"`. + // + // If we pass in `70`, which is more than a minute, the formatter will switch + // to `"_duration_second_minute"` ("mm:ss"), resulting in "01:10" formatted + // text. + // + // Available codes here: + // https://www.amcharts.com/docs/v4/concepts/formatters/formatting-duration/#Available_Codes + "_duration_millisecond": "SSS", + "_duration_millisecond_second": "ss.SSS", + "_duration_millisecond_minute": "mm:ss SSS", + "_duration_millisecond_hour": "hh:mm:ss SSS", + "_duration_millisecond_day": "d'd' mm:ss SSS", + "_duration_millisecond_week": "d'd' mm:ss SSS", + "_duration_millisecond_month": "M'm' dd'd' mm:ss SSS", + "_duration_millisecond_year": "y'y' MM'm' dd'd' mm:ss SSS", + "_duration_second": "ss", + "_duration_second_minute": "mm:ss", + "_duration_second_hour": "hh:mm:ss", + "_duration_second_day": "d'd' hh:mm:ss", + "_duration_second_week": "d'd' hh:mm:ss", + "_duration_second_month": "M'm' dd'd' hh:mm:ss", + "_duration_second_year": "y'y' MM'm' dd'd' hh:mm:ss", + "_duration_minute": "mm", + "_duration_minute_hour": "hh:mm", + "_duration_minute_day": "d'd' hh:mm", + "_duration_minute_week": "d'd' hh:mm", + "_duration_minute_month": "M'm' dd'd' hh:mm", + "_duration_minute_year": "y'y' MM'm' dd'd' hh:mm", + "_duration_hour": "hh'h'", + "_duration_hour_day": "d'd' hh'h'", + "_duration_hour_week": "d'd' hh'h'", + "_duration_hour_month": "M'm' dd'd' hh'h'", + "_duration_hour_year": "y'y' MM'm' dd'd' hh'h'", + "_duration_day": "d'd'", + "_duration_day_week": "d'd'", + "_duration_day_month": "M'm' dd'd'", + "_duration_day_year": "y'y' MM'm' dd'd'", + "_duration_week": "w'w'", + "_duration_week_month": "w'w'", + "_duration_week_year": "w'w'", + "_duration_month": "M'm'", + "_duration_month_year": "y'y' MM'm'", + "_duration_year": "y'y'", + // Era translations + "_era_ad": "AD", + "_era_bc": "BC", + // Day part, used in 12-hour formats, e.g. 5 P.M. + // Please note that these come in 3 variants: + // * one letter (e.g. "A") + // * two letters (e.g. "AM") + // * two letters with dots (e.g. "A.M.") + // + // All three need to to be translated even if they are all the same. Some + // users might use one, some the other. + "A": "", + "P": "", + "AM": "", + "PM": "", + "A.M.": "", + "P.M.": "", + // Date-related stuff. + // + // When translating months, if there's a difference, use the form which is + // best for a full date, e.g. as you would use it in "2018 January 1". + // + // Note that May is listed twice. This is because in English May is the same + // in both long and short forms, while in other languages it may not be the + // case. Translate "May" to full word, while "May(short)" to shortened + // version. + // + // Should month names and weekdays be capitalized or not? + // + // Rule of thumb is this: if the names should always be capitalized, + // regardless of name position within date ("January", "21st January 2018", + // etc.) use capitalized names. Otherwise enter all lowercase. + // + // The date formatter will automatically capitalize names if they are the + // first (or only) word in resulting date. + "January": "", + "February": "", + "March": "", + "April": "", + "May": "", + "June": "", + "July": "", + "August": "", + "September": "", + "October": "", + "November": "", + "December": "", + "Jan": "", + "Feb": "", + "Mar": "", + "Apr": "", + "May(short)": "May", + "Jun": "", + "Jul": "", + "Aug": "", + "Sep": "", + "Oct": "", + "Nov": "", + "Dec": "", + // Weekdays. + "Sunday": "", + "Monday": "", + "Tuesday": "", + "Wednesday": "", + "Thursday": "", + "Friday": "", + "Saturday": "", + "Sun": "", + "Mon": "", + "Tue": "", + "Wed": "", + "Thu": "", + "Fri": "", + "Sat": "", + // Date ordinal function. + // + // This is used when adding number ordinal when formatting days in dates. + // + // E.g. "January 1st", "February 2nd". + // + // The function accepts day number, and returns a string to be added to the + // day, like in default English translation, if we pass in 2, we will receive + // "nd" back. + "_dateOrd": function(day) { + let res = "th"; + if (day < 11 || day > 13) { + switch (day % 10) { + case 1: + res = "st"; + break; + case 2: + res = "nd"; + break; + case 3: + res = "rd"; + break; + } + } + return res; + }, + // Various chart controls. + // Shown as a tooltip on zoom out button. + "Zoom Out": "", + // Timeline buttons + "Play": "", + "Stop": "", + // Chart's Legend screen reader title. + "Legend": "", + // Legend's item screen reader indicator. + "Press ENTER to toggle": "", + // Shown when the chart is busy loading something. + "Loading": "", + // Shown as the first button in the breadcrumb navigation, e.g.: + // Home > First level > ... + "Home": "", + // Chart types. + // Those are used as default screen reader titles for the main chart element + // unless developer has set some more descriptive title. + "Chart": "", + "Serial chart": "", + "X/Y chart": "", + "Pie chart": "", + "Gauge chart": "", + "Radar chart": "", + "Sankey diagram": "", + "Flow diagram": "", + "Chord diagram": "", + "TreeMap chart": "", + "Force directed tree": "", + "Sliced chart": "", + // Series types. + // Used to name series by type for screen readers if they do not have their + // name set. + "Series": "", + "Candlestick Series": "", + "OHLC Series": "", + "Column Series": "", + "Line Series": "", + "Pie Slice Series": "", + "Funnel Series": "", + "Pyramid Series": "", + "X/Y Series": "", + // Map-related stuff. + "Map": "", + "Press ENTER to zoom in": "", + "Press ENTER to zoom out": "", + "Use arrow keys to zoom in and out": "", + "Use plus and minus keys on your keyboard to zoom in and out": "", + // Export-related stuff. + // These prompts are used in Export menu labels. + // + // "Export" is the top-level menu item. + // + // "Image", "Data", "Print" as second-level indicating type of export + // operation. + // + // Leave actual format untranslated, unless you absolutely know that they + // would convey more meaning in some other way. + "Export": "", + "Image": "", + "Data": "", + "Print": "", + "Press ENTER or use arrow keys to navigate": "", + "Press ENTER to open": "", + "Press ENTER to print.": "", + "Press ENTER to export as %1.": "", + "(Press ESC to close this message)": "", + "Image Export Complete": "", + "Export operation took longer than expected. Something might have gone wrong.": "", + "Saved from": "", + "PNG": "", + "JPG": "", + "GIF": "", + "SVG": "", + "PDF": "", + "JSON": "", + "CSV": "", + "XLSX": "", + "HTML": "", + // Scrollbar-related stuff. + // + // Scrollbar is a control which can zoom and pan the axes on the chart. + // + // Each scrollbar has two grips: left or right (for horizontal scrollbar) or + // upper and lower (for vertical one). + // + // Prompts change in relation to whether Scrollbar is vertical or horizontal. + // + // The final section is used to indicate the current range of selection. + "Use TAB to select grip buttons or left and right arrows to change selection": "", + "Use left and right arrows to move selection": "", + "Use left and right arrows to move left selection": "", + "Use left and right arrows to move right selection": "", + "Use TAB select grip buttons or up and down arrows to change selection": "", + "Use up and down arrows to move selection": "", + "Use up and down arrows to move lower selection": "", + "Use up and down arrows to move upper selection": "", + "From %1 to %2": "", + "From %1": "", + "To %1": "", + // Data loader-related. + "No parser available for file: %1": "", + "Error parsing file: %1": "", + "Unable to load file: %1": "", + "Invalid date": "", + // Common actions + "Close": "", + "Minimize": "", + "Confirm": "" + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Language.js + var Language = class extends Entity { + _setDefaults() { + this.setPrivate("defaultLocale", en_default); + super._setDefaults(); + } + /** + * Returns a prompt translation. + * + * @param prompt Prompt to translate + * @param locale Target locale + * @param ...rest Parameters + * @return Translation + */ + translate(prompt, locale, ...rest) { + if (!locale) { + locale = this._root.locale || this.getPrivate("defaultLocale"); + } + let translation = prompt; + let value = locale[prompt]; + if (value === null) { + translation = ""; + } else if (value != null) { + if (value) { + translation = value; + } + } else if (locale !== this.getPrivate("defaultLocale")) { + return this.translate(prompt, this.getPrivate("defaultLocale"), ...rest); + } + if (rest.length) { + for (let len = rest.length, i = 0; i < len; ++i) { + translation = translation.split("%" + (i + 1)).join(rest[i]); + } + } + return translation; + } + /** + * Returns a prompt translation, including custom prompts. + * + * @param prompt Prompt to translate + * @param locale Target locale + * @param ...rest Parameters + * @return Translation + */ + translateAny(prompt, locale, ...rest) { + return this.translate(prompt, locale, ...rest); + } + /** + * Add a custom prompt to locale. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/locales/creating-translations/#Extending_locale_with_custom_prompts} + * @param prompt Source prompt + * @param translation Tanslation + * @param locale Target locale + */ + setTranslationAny(prompt, translation, locale) { + const localeTarget = locale || this._root.locale; + localeTarget[prompt] = translation; + } + /** + * Add a batch of custom prompts. + * + * @since 5.3.3 + * @see {@link https://www.amcharts.com/docs/v5/concepts/locales/creating-translations/#Extending_locale_with_custom_prompts} + * @param translations Translations + * @param locale Target locale + */ + setTranslationsAny(translations, locale) { + each2(translations, (key, val) => { + this.setTranslationAny(key, val, locale); + }); + } + translateEmpty(prompt, locale, ...rest) { + let translation = this.translate(prompt, locale, ...rest); + return translation == prompt ? "" : translation; + } + translateFunc(prompt, locale) { + if (this._root.locale[prompt]) { + return this._root.locale[prompt]; + } + if (locale !== this.getPrivate("defaultLocale")) { + return this.translateFunc(prompt, this.getPrivate("defaultLocale")); + } + return () => { + return ""; + }; + } + /** + * Translates a btach of prompts. + * + * @param list Array of prompts to translate + * @param locale Target locale + * @return Array of translations + */ + translateAll(list, locale) { + if (!this.isDefault()) { + return map(list, (x) => this.translate(x, locale)); + } else { + return list; + } + } + /** + * Returns `true` if the currently selected locale is a default locale. + * + * @return `true` if locale is default; `false` if it is not. + */ + isDefault() { + return this.getPrivate("defaultLocale") === this._root.locale; + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/Theme.js + var Theme = class { + constructor(root2, isReal) { + this._rules = {}; + this._root = root2; + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + } + /** + * Use this method to create an instance of this class. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @param root Root element + * @param settings Settings + * @param template Template + * @return Instantiated object + */ + static new(root2) { + const x = new this(root2, true); + x.setupDefaultRules(); + return x; + } + setupDefaultRules() { + } + /** + * Looks up the rules for a specific theme class. + * + * @see {@link https://www.amcharts.com/docs/v5/themes/} for more info + * @param themeClass Theme class + * @return Array> + */ + _lookupRules(themeClass) { + return this._rules[themeClass]; + } + /** + * Creates a [[Template]] for specific theme class and tags. + * + * NOTE: the difference from `rule()` is that `ruleRaw()` does not do any + * type checks. + * + * @see {@link https://www.amcharts.com/docs/v5/themes/} for more info + * @param themeClass Theme class + * @param themeTags Theme tags + * @return Template + */ + ruleRaw(themeClass, themeTags = []) { + let rules = this._rules[themeClass]; + if (!rules) { + rules = this._rules[themeClass] = []; + } + themeTags.sort(compare); + const { index, found } = getSortedIndex(rules, (x) => { + const order = compare(x.tags.length, themeTags.length); + if (order === 0) { + return compareArray(x.tags, themeTags, compare); + } else { + return order; + } + }); + if (found) { + return rules[index].template; + } else { + const template = Template.new({}); + rules.splice(index, 0, { + tags: themeTags, + template + }); + return template; + } + } + /** + * Creates a [[Template]] for specific theme class and tags. + * + * @see {@link https://www.amcharts.com/docs/v5/themes/} for more info + * @param themeClass Theme class + * @param themeTags Theme tags + * @return Template + */ + rule(themeClass, themeTags = []) { + return this.ruleRaw(themeClass, themeTags); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/themes/DefaultTheme.js + function setColor(rule, key, ic, name) { + rule.set(key, ic.get(name)); + ic.on(name, (value) => { + rule.set(key, value); + }); + } + var DefaultTheme = class extends Theme { + setupDefaultRules() { + super.setupDefaultRules(); + const language = this._root.language; + const ic = this._root.interfaceColors; + const horizontalLayout = this._root.horizontalLayout; + const verticalLayout = this._root.verticalLayout; + const r = this.rule.bind(this); + r("InterfaceColors").setAll({ + stroke: Color.fromHex(15066597), + fill: Color.fromHex(15987699), + primaryButton: Color.fromHex(6788316), + primaryButtonHover: Color.fromHex(6779356), + primaryButtonDown: Color.fromHex(6872182), + primaryButtonActive: Color.fromHex(6872182), + primaryButtonDisabled: Color.fromHex(14342874), + primaryButtonTextDisabled: Color.fromHex(16777215), + primaryButtonText: Color.fromHex(16777215), + primaryButtonStroke: Color.fromHex(16777215), + secondaryButton: Color.fromHex(14277081), + secondaryButtonHover: Color.fromHex(10724259), + secondaryButtonDown: Color.fromHex(9276813), + secondaryButtonActive: Color.fromHex(15132390), + secondaryButtonText: Color.fromHex(0), + secondaryButtonStroke: Color.fromHex(16777215), + grid: Color.fromHex(0), + background: Color.fromHex(16777215), + alternativeBackground: Color.fromHex(0), + text: Color.fromHex(0), + alternativeText: Color.fromHex(16777215), + disabled: Color.fromHex(11382189), + positive: Color.fromHex(5288704), + negative: Color.fromHex(11730944) + }); + { + const rule = r("ColorSet"); + rule.setAll({ + passOptions: { + hue: 0.05, + saturation: 0, + lightness: 0 + }, + colors: [ + Color.fromHex(6797276) + ], + step: 1, + //baseColor: Color.fromRGB(103, 183, 220), + //count: 20, + reuse: false, + startIndex: 0 + }); + rule.setPrivate("currentStep", 0); + rule.setPrivate("currentPass", 0); + } + r("Entity").setAll({ + stateAnimationDuration: 0, + stateAnimationEasing: out(cubic) + }); + r("Component").setAll({ + interpolationDuration: 0, + interpolationEasing: out(cubic) + }); + r("Sprite").setAll({ + visible: true, + scale: 1, + opacity: 1, + rotation: 0, + position: "relative", + tooltipX: p50, + tooltipY: p50, + tooltipPosition: "fixed", + isMeasured: true + }); + r("Sprite").states.create("default", { "visible": true, opacity: 1 }); + r("Container").setAll({ + interactiveChildren: true, + setStateOnChildren: false + }); + r("Graphics").setAll({ + strokeWidth: 1 + }); + r("Chart").setAll({ + width: p100, + height: p100, + interactiveChildren: false + }); + r("ZoomableContainer").setAll({ + width: p100, + height: p100, + wheelable: true, + pinchZoom: true, + maxZoomLevel: 32, + minZoomLevel: 1, + zoomStep: 2, + animationEasing: out(cubic), + animationDuration: 600, + maxPanOut: 0.4 + }); + r("Sprite", ["horizontal", "center"]).setAll({ + centerX: p50, + x: p50 + }); + r("Sprite", ["vertical", "center"]).setAll({ + centerY: p50, + y: p50 + }); + r("Container", ["horizontal", "layout"]).setAll({ + layout: horizontalLayout + }); + r("Container", ["vertical", "layout"]).setAll({ + layout: verticalLayout + }); + r("Pattern").setAll({ + repetition: "repeat", + width: 50, + height: 50, + rotation: 0, + fillOpacity: 1 + }); + r("LinePattern").setAll({ + gap: 6, + colorOpacity: 1, + width: 49, + height: 49 + }); + r("RectanglePattern").setAll({ + gap: 6, + checkered: false, + centered: true, + maxWidth: 5, + maxHeight: 5, + width: 48, + height: 48, + strokeWidth: 0 + }); + r("CirclePattern").setAll({ + gap: 5, + checkered: false, + centered: false, + radius: 3, + strokeWidth: 0, + width: 45, + height: 45 + }); + r("GrainPattern").setAll({ + width: 200, + height: 200, + colors: [Color.fromHex(0)], + size: 1, + horizontalGap: 0, + verticalGap: 0, + density: 1, + minOpacity: 0, + maxOpacity: 0.2 + }); + { + const rule = r("PatternSet"); + rule.setAll({ + step: 1 + }); + setColor(rule, "color", ic, "stroke"); + } + r("LinearGradient").setAll({ + rotation: 90 + }); + r("Legend").setAll({ + fillField: "fill", + strokeField: "stroke", + nameField: "name", + layout: GridLayout.new(this._root, {}), + layer: 30, + clickTarget: "itemContainer" + }); + r("Container", ["legend", "item", "itemcontainer"]).setAll({ + paddingLeft: 5, + paddingRight: 5, + paddingBottom: 5, + paddingTop: 5, + layout: horizontalLayout, + setStateOnChildren: true, + interactiveChildren: false, + ariaChecked: true, + focusable: true, + ariaLabel: language.translate("Press ENTER to toggle"), + role: "checkbox" + }); + { + const rule = r("Rectangle", ["legend", "item", "background"]); + rule.setAll({ + fillOpacity: 0 + }); + setColor(rule, "fill", ic, "background"); + } + r("Container", ["legend", "marker"]).setAll({ + setStateOnChildren: true, + centerY: p50, + paddingLeft: 0, + paddingRight: 0, + paddingBottom: 0, + paddingTop: 0, + width: 18, + height: 18 + }); + r("RoundedRectangle", ["legend", "marker", "rectangle"]).setAll({ + width: p100, + height: p100, + cornerRadiusBL: 3, + cornerRadiusTL: 3, + cornerRadiusBR: 3, + cornerRadiusTR: 3 + }); + { + const rule = r("RoundedRectangle", ["legend", "marker", "rectangle"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "disabled"); + setColor(rule, "stroke", ic, "disabled"); + } + r("Label", ["legend", "label"]).setAll({ + centerY: p50, + marginLeft: 5, + paddingRight: 0, + paddingLeft: 0, + paddingTop: 0, + paddingBottom: 0, + populateText: true + }); + { + const rule = r("Label", ["legend", "label"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "disabled"); + } + r("Label", ["legend", "value", "label"]).setAll({ + centerY: p50, + marginLeft: 5, + paddingRight: 0, + paddingLeft: 0, + paddingTop: 0, + paddingBottom: 0, + width: 50, + centerX: p100, + populateText: true + }); + { + const rule = r("Label", ["legend", "value", "label"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "disabled"); + } + r("HeatLegend").setAll({ + stepCount: 1 + }); + r("RoundedRectangle", ["heatlegend", "marker"]).setAll({ + cornerRadiusTR: 0, + cornerRadiusBR: 0, + cornerRadiusTL: 0, + cornerRadiusBL: 0 + }); + r("RoundedRectangle", ["vertical", "heatlegend", "marker"]).setAll({ + height: p100, + width: 15 + }); + r("RoundedRectangle", ["horizontal", "heatlegend", "marker"]).setAll({ + width: p100, + height: 15 + }); + r("HeatLegend", ["vertical"]).setAll({ + height: p100 + }); + r("HeatLegend", ["horizontal"]).setAll({ + width: p100 + }); + r("Label", ["heatlegend", "start"]).setAll({ + paddingLeft: 5, + paddingRight: 5, + paddingTop: 5, + paddingBottom: 5 + }); + r("Label", ["heatlegend", "end"]).setAll({ + paddingLeft: 5, + paddingRight: 5, + paddingTop: 5, + paddingBottom: 5 + }); + { + const rule = r("Label"); + rule.setAll({ + paddingTop: 8, + paddingBottom: 8, + paddingLeft: 10, + paddingRight: 10, + fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', + fontSize: "1em", + populateText: false + }); + setColor(rule, "fill", ic, "text"); + } + r("RadialLabel").setAll({ + textType: "regular", + centerY: p50, + centerX: p50, + inside: false, + radius: 0, + baseRadius: p100, + orientation: "auto", + textAlign: "center" + }); + r("EditableLabel").setAll({ + editOn: "click", + //setStateOnChildren: true, + themeTags: ["editablelabel"], + multiLine: true + }); + r("RoundedRectangle", ["editablelabel", "background"]).setAll({ + fillOpacity: 0, + fill: Color.fromHex(0), + cornerRadiusBL: 3, + cornerRadiusBR: 3, + cornerRadiusTL: 3, + cornerRadiusTR: 3, + strokeOpacity: 0, + stroke: Color.fromHex(0) + }); + { + r("RoundedRectangle", ["editablelabel", "background"]).states.create("active", { + strokeOpacity: 0.2 + }); + } + r("RoundedRectangle").setAll({ + cornerRadiusTL: 8, + cornerRadiusBL: 8, + cornerRadiusTR: 8, + cornerRadiusBR: 8 + }); + r("PointedRectangle").setAll({ + pointerBaseWidth: 15, + pointerLength: 10, + cornerRadius: 8 + }); + r("Slice").setAll({ + shiftRadius: 0, + dRadius: 0, + dInnerRadius: 0 + }); + { + const rule = r("Tick"); + rule.setAll({ + strokeOpacity: 0.15, + isMeasured: false, + length: 4.5, + position: "absolute", + crisp: true + }); + setColor(rule, "stroke", ic, "grid"); + } + r("Bullet").setAll({ + locationX: 0.5, + locationY: 0.5 + }); + r("Tooltip").setAll({ + position: "absolute", + getFillFromSprite: true, + getStrokeFromSprite: false, + autoTextColor: true, + paddingTop: 9, + paddingBottom: 8, + paddingLeft: 10, + paddingRight: 10, + marginBottom: 5, + pointerOrientation: "vertical", + centerX: p50, + centerY: p50, + animationEasing: out(cubic), + exportable: false + //layer: 100 + }); + r("Tooltip", ["system"]).setAll({ + pointerOrientation: "horizontal", + paddingTop: 4, + paddingRight: 7, + paddingBottom: 4, + paddingLeft: 7 + }); + { + const rule = r("PointedRectangle", ["tooltip", "system", "background"]); + rule.setAll({ + strokeOpacity: 0.3 + }); + setColor(rule, "fill", ic, "background"); + setColor(rule, "stroke", ic, "grid"); + } + r("Label", ["tooltip", "system"]).setAll({ + fontSize: 12, + fill: ic.get("background") + }); + r("Polygon").setAll({ + animationEasing: out(cubic) + }); + r("Link").setAll({ + cornerRadius: 8, + setStateOnChildren: true + }); + { + const rule = r("OrthogonalLine", ["link", "line"]); + rule.setAll({ + isMeasured: false, + crisp: true + }); + const stateActive = rule.states.create("active", { + strokeWidth: 2 + }); + setColor(stateActive, "stroke", ic, "negative"); + } + r("OrthogonalLine", ["link", "hit"]).setAll({ + strokeWidth: 10, + opacity: 0, + strokeOpacity: 0 + }); + { + const rule = r("OrthogonalLine"); + rule.setAll({ + strokeWidth: 1, + strokeOpacity: 1, + cornerRadius: 10 + }); + setColor(rule, "stroke", ic, "grid"); + } + { + const rule = r("Triangle", ["link"]); + rule.setAll({ + width: 14, + height: 10, + centerY: 0 + }); + setColor(rule, "fill", ic, "grid"); + setColor(rule, "stroke", ic, "grid"); + rule.states.create("default", { + stateAnimationDuration: 0 + }); + const state = rule.states.create("active", { + stateAnimationDuration: 0, + stroke: color(16777215), + strokeWidth: 2 + }); + state.set("draw", (display) => { + display.arc(0, 0, 11, 0, Math.PI * 2); + display.moveTo(-4, -4); + display.lineTo(4, 4); + display.moveTo(4, -4); + display.lineTo(-4, 4); + }); + setColor(state, "fill", ic, "negative"); + } + { + const rule = r("PointedRectangle", ["tooltip", "background"]); + rule.setAll({ + strokeOpacity: 0.9, + cornerRadius: 4, + pointerLength: 4, + pointerBaseWidth: 8, + fillOpacity: 0.9, + stroke: Color.fromHex(16777215) + }); + } + { + const rule = r("Label", ["tooltip"]); + rule.setAll({ + role: "tooltip", + populateText: true, + paddingRight: 0, + paddingTop: 0, + paddingLeft: 0, + paddingBottom: 0 + }); + setColor(rule, "fill", ic, "alternativeText"); + } + r("Button").setAll({ + paddingTop: 8, + paddingBottom: 8, + paddingLeft: 10, + paddingRight: 10, + interactive: true, + layout: horizontalLayout, + interactiveChildren: false, + setStateOnChildren: true, + focusable: true + }); + r("Button").states.create("hover", {}); + r("Button").states.create("down", { stateAnimationDuration: 0 }); + r("Button").states.create("active", {}); + r("Button").states.create("disabled", { + forceInactive: true + }); + { + const rule = r("RoundedRectangle", ["button", "background"]); + setColor(rule, "fill", ic, "primaryButton"); + setColor(rule, "stroke", ic, "primaryButtonStroke"); + } + { + const rule = r("RoundedRectangle", ["button", "background"]).states.create("hover", {}); + setColor(rule, "fill", ic, "primaryButtonHover"); + } + { + const rule = r("RoundedRectangle", ["button", "background"]).states.create("down", { stateAnimationDuration: 0 }); + setColor(rule, "fill", ic, "primaryButtonDown"); + } + { + const rule = r("RoundedRectangle", ["button", "background"]).states.create("active", {}); + setColor(rule, "fill", ic, "primaryButtonActive"); + } + { + const rule = r("RoundedRectangle", ["button", "background"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "primaryButtonDisabled"); + } + { + const rule = r("Graphics", ["button", "icon"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "primaryButtonTextDisabled"); + } + { + const rule = r("Label", ["button"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "primaryButtonTextDisabled"); + } + { + const rule = r("Graphics", ["button", "icon"]); + rule.setAll({ + forceInactive: true + }); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + { + const rule = r("Label", ["button"]); + setColor(rule, "fill", ic, "primaryButtonText"); + } + r("ConfirmButton").setAll({ + toggleKey: "active", + setStateOnChildren: true, + label: Label.new(this._root, { + text: language.translate("Confirm"), + forceHidden: true + }) + }); + { + const rule = r("RoundedRectangle", ["button", "background", "confirm"]).states.create("active", {}); + setColor(rule, "fill", ic, "negative"); + } + r("Label", ["button", "confirm"]).setAll({ + paddingTop: 0, + paddingBottom: 0, + paddingRight: 3, + paddingLeft: 5 + }); + r("Label", ["button", "confirm"]).states.create("default", { + stateAnimationDuration: 0 + }); + r("Label", ["button", "confirm"]).states.create("active", { + forceHidden: false, + stateAnimationDuration: 0 + }); + { + const rule = r("Graphics", ["icon", "confirm", "button"]); + rule.setAll({ + stateAnimationDuration: 0 + }); + rule.states.create("default", { + stateAnimationDuration: 0 + }); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + { + const rule = r("Graphics", ["icon", "confirm", "button"]).states.create("active", { + svgPath: "M -5 1 L 0 6 L 8 -5", + strokeWidth: 2 + }); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + { + const rule = r("Graphics", ["icon", "confirm", "button", "secondary"]).states.create("active", {}); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + { + const rule = r("RoundedRectangle", ["button", "background", "confirm", "secondary"]).states.create("active", { + fillOpacity: 1 + }); + setColor(rule, "fill", ic, "negative"); + } + { + const rule = r("RoundedRectangle", ["button", "background", "confirm", "secondary"]).states.create("hoverActive", { + fillOpacity: 1 + }); + setColor(rule, "fill", ic, "negative"); + } + r("Button", ["button", "confirm"]).states.create("hoverActive", {}); + r("Button", ["zoom"]).setAll({ + paddingTop: 18, + paddingBottom: 18, + paddingLeft: 12, + paddingRight: 12, + centerX: 46, + centerY: -10, + y: 0, + x: p100, + role: "button", + ariaLabel: language.translate("Zoom Out"), + layer: 30 + }); + { + const rule = r("RoundedRectangle", ["background", "button", "zoom"]); + rule.setAll({ + cornerRadiusBL: 40, + cornerRadiusBR: 40, + cornerRadiusTL: 40, + cornerRadiusTR: 40 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("RoundedRectangle", ["background", "button", "zoom"]).states.create("hover", {}); + setColor(rule, "fill", ic, "primaryButtonHover"); + } + { + const rule = r("RoundedRectangle", ["background", "button", "zoom"]).states.create("down", { stateAnimationDuration: 0 }); + setColor(rule, "fill", ic, "primaryButtonDown"); + } + { + const rule = r("Graphics", ["icon", "button", "zoom"]); + rule.setAll({ + crisp: true, + strokeOpacity: 0.7, + draw: (display) => { + display.moveTo(0, 0); + display.lineTo(12, 0); + } + }); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + r("Button", ["resize"]).setAll({ + paddingTop: 9, + paddingBottom: 9, + paddingLeft: 13, + paddingRight: 13, + draggable: true, + centerX: p50, + centerY: p50, + position: "absolute", + role: "slider", + ariaValueMin: "0", + ariaValueMax: "100", + ariaLabel: language.translate("Use up and down arrows to move selection") + }); + { + const rule = r("RoundedRectangle", ["background", "resize", "button"]); + rule.setAll({ + cornerRadiusBL: 40, + cornerRadiusBR: 40, + cornerRadiusTL: 40, + cornerRadiusTR: 40 + }); + setColor(rule, "fill", ic, "secondaryButton"); + setColor(rule, "stroke", ic, "secondaryButtonStroke"); + } + { + const rule = r("RoundedRectangle", ["background", "resize", "button"]).states.create("hover", {}); + setColor(rule, "fill", ic, "secondaryButtonHover"); + } + { + const rule = r("RoundedRectangle", ["background", "resize", "button"]).states.create("down", { stateAnimationDuration: 0 }); + setColor(rule, "fill", ic, "secondaryButtonDown"); + } + { + const rule = r("Graphics", ["resize", "button", "icon"]); + rule.setAll({ + interactive: false, + crisp: true, + strokeOpacity: 0.5, + draw: (display) => { + display.moveTo(0, 0.5); + display.lineTo(0, 12.5); + display.moveTo(4, 0.5); + display.lineTo(4, 12.5); + } + }); + setColor(rule, "stroke", ic, "secondaryButtonText"); + } + r("Button", ["resize", "vertical"]).setAll({ + rotation: 90, + cursorOverStyle: "ns-resize" + }); + r("Button", ["resize", "horizontal"]).setAll({ + cursorOverStyle: "ew-resize" + }); + r("Button", ["play"]).setAll({ + paddingTop: 13, + paddingBottom: 13, + paddingLeft: 14, + paddingRight: 14, + ariaLabel: language.translate("Play"), + toggleKey: "active" + }); + { + const rule = r("RoundedRectangle", ["play", "background"]); + rule.setAll({ + strokeOpacity: 0.5, + cornerRadiusBL: 100, + cornerRadiusBR: 100, + cornerRadiusTL: 100, + cornerRadiusTR: 100 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("Graphics", ["play", "icon"]); + rule.setAll({ + stateAnimationDuration: 0, + dx: 1, + draw: (display) => { + display.moveTo(0, -5); + display.lineTo(8, 0); + display.lineTo(0, 5); + display.lineTo(0, -5); + } + }); + setColor(rule, "fill", ic, "primaryButtonText"); + } + r("Graphics", ["play", "icon"]).states.create("default", { + stateAnimationDuration: 0 + }); + r("Graphics", ["play", "icon"]).states.create("active", { + stateAnimationDuration: 0, + draw: (display) => { + display.moveTo(-4, -5); + display.lineTo(-1, -5); + display.lineTo(-1, 5); + display.lineTo(-4, 5); + display.lineTo(-4, -5); + display.moveTo(4, -5); + display.lineTo(1, -5); + display.lineTo(1, 5); + display.lineTo(4, 5); + display.lineTo(4, -5); + } + }); + r("Button", ["switch"]).setAll({ + paddingTop: 4, + paddingBottom: 4, + paddingLeft: 4, + paddingRight: 4, + ariaLabel: language.translate("Press ENTER to toggle"), + toggleKey: "active", + width: 40, + height: 24, + layout: null + }); + { + const rule = r("RoundedRectangle", ["switch", "background"]); + rule.setAll({ + strokeOpacity: 0.5, + cornerRadiusBL: 100, + cornerRadiusBR: 100, + cornerRadiusTL: 100, + cornerRadiusTR: 100 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("Circle", ["switch", "icon"]); + rule.setAll({ + radius: 8, + centerY: 0, + centerX: 0, + dx: 0 + }); + setColor(rule, "fill", ic, "primaryButtonText"); + } + r("Graphics", ["switch", "icon"]).states.create("active", { + dx: 16 + }); + r("Scrollbar").setAll({ + start: 0, + end: 1, + layer: 30, + animationEasing: out(cubic) + }); + r("Scrollbar", ["vertical"]).setAll({ + marginRight: 13, + marginLeft: 13, + minWidth: 12, + height: p100 + }); + r("Scrollbar", ["horizontal"]).setAll({ + marginTop: 13, + marginBottom: 13, + minHeight: 12, + width: p100 + }); + this.rule("Button", ["scrollbar"]).setAll({ + exportable: false + }); + { + const rule = r("RoundedRectangle", ["scrollbar", "main", "background"]); + rule.setAll({ + cornerRadiusTL: 8, + cornerRadiusBL: 8, + cornerRadiusTR: 8, + cornerRadiusBR: 8, + fillOpacity: 0.8 + }); + setColor(rule, "fill", ic, "fill"); + } + { + const rule = r("RoundedRectangle", ["scrollbar", "thumb"]); + rule.setAll({ + role: "slider", + ariaLive: "polite", + position: "absolute", + draggable: true + }); + setColor(rule, "fill", ic, "secondaryButton"); + } + { + const rule = r("RoundedRectangle", ["scrollbar", "thumb"]).states.create("hover", {}); + setColor(rule, "fill", ic, "secondaryButtonHover"); + } + { + const rule = r("RoundedRectangle", ["scrollbar", "thumb"]).states.create("down", { stateAnimationDuration: 0 }); + setColor(rule, "fill", ic, "secondaryButtonDown"); + } + r("RoundedRectangle", ["scrollbar", "thumb", "vertical"]).setAll({ + x: p50, + width: p100, + centerX: p50, + ariaLabel: language.translate("Use up and down arrows to move selection") + }); + r("RoundedRectangle", ["scrollbar", "thumb", "horizontal"]).setAll({ + y: p50, + centerY: p50, + height: p100, + ariaLabel: language.translate("Use left and right arrows to move selection") + }); + { + const rule = r("PointedRectangle", ["axis", "tooltip", "background"]); + rule.setAll({ + cornerRadius: 0 + }); + setColor(rule, "fill", ic, "alternativeBackground"); + } + r("Label", ["axis", "tooltip"]).setAll({ + role: void 0 + }); + r("Label", ["axis", "tooltip", "y"]).setAll({ + textAlign: "right" + }); + r("Label", ["axis", "tooltip", "y", "opposite"]).setAll({ + textAlign: "left" + }); + r("Label", ["axis", "tooltip", "x"]).setAll({ + textAlign: "center" + }); + r("Tooltip", ["categoryaxis"]).setAll({ + labelText: "{category}" + }); + r("Star").setAll({ + spikes: 5, + innerRadius: 5, + radius: 10 + }); + r("Tooltip", ["stock"]).setAll({ + paddingTop: 6, + paddingBottom: 5, + paddingLeft: 7, + paddingRight: 7 + }); + r("Tooltip", ["indicator"]).setAll({ + forceHidden: true + }); + r("PointedRectangle", ["tooltip", "stock", "axis"]).setAll({ + pointerLength: 0, + pointerBaseWidth: 0, + cornerRadius: 3 + }); + r("Label", ["tooltip", "stock"]).setAll({ + fontSize: "0.8em" + }); + r("SpriteResizer").setAll({ + rotationStep: 10, + isMeasured: false + }); + { + const rule = r("Container", ["resizer", "grip"]); + rule.states.create("hover", {}); + } + { + const rule = r("RoundedRectangle", ["resizer", "grip"]); + rule.setAll({ + strokeOpacity: 0.7, + strokeWidth: 1, + fillOpacity: 1, + width: 12, + height: 12 + }); + setColor(rule, "fill", ic, "background"); + setColor(rule, "stroke", ic, "alternativeBackground"); + } + { + const rule = r("RoundedRectangle", ["resizer", "grip", "outline"]); + rule.setAll({ + strokeOpacity: 0, + fillOpacity: 0, + width: 20, + height: 20 + }); + rule.states.create("hover", { + fillOpacity: 0.3 + }); + setColor(rule, "fill", ic, "alternativeBackground"); + } + r("RoundedRectangle", ["resizer", "grip", "left"]).setAll({ + cornerRadiusBL: 0, + cornerRadiusBR: 0, + cornerRadiusTL: 0, + cornerRadiusTR: 0 + }); + r("RoundedRectangle", ["resizer", "grip", "right"]).setAll({ + cornerRadiusBL: 0, + cornerRadiusBR: 0, + cornerRadiusTL: 0, + cornerRadiusTR: 0 + }); + { + const rule = r("Rectangle", ["resizer", "rectangle"]); + rule.setAll({ + strokeDasharray: [2, 2], + strokeOpacity: 0.5, + strokeWidth: 1 + }); + setColor(rule, "stroke", ic, "alternativeBackground"); + } + r("Graphics", ["button", "plus", "icon"]).setAll({ + x: p50, + y: p50, + draw: (display) => { + display.moveTo(-4, 0); + display.lineTo(4, 0); + display.moveTo(0, -4); + display.lineTo(0, 4); + } + }); + r("Graphics", ["button", "minus", "icon"]).setAll({ + x: p50, + y: p50, + draw: (display) => { + display.moveTo(-4, 0); + display.lineTo(4, 0); + } + }); + r("Graphics", ["button", "home", "icon"]).setAll({ + x: p50, + y: p50, + svgPath: "M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1" + }); + r("Button", ["zoomtools"]).setAll({ + marginTop: 1, + marginBottom: 2 + }); + r("ZoomTools").setAll({ + x: p100, + centerX: p100, + y: p100, + centerY: p100, + paddingRight: 10, + paddingBottom: 10 + }); + r("ProgressPie").setAll({ + radius: p100, + width: 50, + height: 50, + centerX: percent(-50), + centerY: percent(-50), + innerRadius: percent(85), + numberFormat: "#." + }); + { + const rule = r("Label", ["progresspie"]); + rule.setAll({ + centerX: p50, + centerY: p50, + fontSize: "0.75em" + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("Circle", ["progresspie"]); + rule.setAll({ + fillOpacity: 0.5 + }); + setColor(rule, "fill", ic, "background"); + } + { + const rule = r("Slice", ["progresspie"]); + rule.setAll({ + startAngle: -90 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("Slice", ["progresspie", "background"]); + rule.setAll({ + fillOpacity: 0.2, + arc: 360 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + r("EditableLabel", ["numericstepper"]).setAll({ + y: p50, + centerY: p50, + multiLine: false, + marginRight: 2 + }); + { + const rule = r("Container", ["numericstepper", "buttons"]); + rule.setAll({ + layout: this._root.verticalLayout, + centerY: p50, + y: p50, + marginRight: 10, + opacity: 0 + }); + rule.states.create("active", { + opacity: 1 + }); + rule.states.create("default", { + opacity: 0 + }); + } + { + const rule = r("Triangle", ["numericstepper"]); + rule.setAll({ + width: 17, + height: 11, + marginTop: 3, + marginBottom: 3, + strokeWidth: 5, + strokeOpacity: 0, + cursorOverStyle: "pointer" + }); + setColor(rule, "fill", ic, "secondaryButton"); + } + { + const rule = r("Triangle", ["downbutton"]); + rule.setAll({ + rotation: 180 + }); + } + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Matrix.js + var Matrix = class { + constructor(a = 1, b = 0, c = 0, d = 1, tx = 0, ty = 0) { + this.a = a; + this.b = b; + this.c = c; + this.d = d; + this.tx = tx; + this.ty = ty; + } + /** + * Sets the matrix based on all the available properties + */ + setTransform(x, y, pivotX, pivotY, rotation, scale = 1) { + this.a = Math.cos(rotation) * scale; + this.b = Math.sin(rotation) * scale; + this.c = -Math.sin(rotation) * scale; + this.d = Math.cos(rotation) * scale; + this.tx = x - (pivotX * this.a + pivotY * this.c); + this.ty = y - (pivotX * this.b + pivotY * this.d); + } + /** + * Get a new position with the current transformation applied. + * Can be used to go from a child's coordinate space to the world coordinate space. (e.g. rendering) + */ + apply(origin) { + return { + x: this.a * origin.x + this.c * origin.y + this.tx, + y: this.b * origin.x + this.d * origin.y + this.ty + }; + } + /** + * Get a new position with the inverse of the current transformation applied. + * Can be used to go from the world coordinate space to a child's coordinate space. (e.g. input) + */ + applyInverse(origin) { + const id = 1 / (this.a * this.d + this.c * -this.b); + return { + x: this.d * id * origin.x + -this.c * id * origin.y + (this.ty * this.c - this.tx * this.d) * id, + y: this.a * id * origin.y + -this.b * id * origin.x + (-this.ty * this.a + this.tx * this.b) * id + }; + } + /** + * Appends the given Matrix to this Matrix. + */ + append(matrix) { + const a1 = this.a; + const b12 = this.b; + const c1 = this.c; + const d1 = this.d; + this.a = matrix.a * a1 + matrix.b * c1; + this.b = matrix.a * b12 + matrix.b * d1; + this.c = matrix.c * a1 + matrix.d * c1; + this.d = matrix.c * b12 + matrix.d * d1; + this.tx = matrix.tx * a1 + matrix.ty * c1 + this.tx; + this.ty = matrix.tx * b12 + matrix.ty * d1 + this.ty; + } + /** + * Prepends the given Matrix to this Matrix. + */ + prepend(matrix) { + const tx1 = this.tx; + if (matrix.a !== 1 || matrix.b !== 0 || matrix.c !== 0 || matrix.d !== 1) { + const a1 = this.a; + const c1 = this.c; + this.a = a1 * matrix.a + this.b * matrix.c; + this.b = a1 * matrix.b + this.b * matrix.d; + this.c = c1 * matrix.a + this.d * matrix.c; + this.d = c1 * matrix.b + this.d * matrix.d; + } + this.tx = tx1 * matrix.a + this.ty * matrix.c + matrix.tx; + this.ty = tx1 * matrix.b + this.ty * matrix.d + matrix.ty; + } + /** + * Copies the other matrix's properties into this matrix + */ + copyFrom(matrix) { + this.a = matrix.a; + this.b = matrix.b; + this.c = matrix.c; + this.d = matrix.d; + this.tx = matrix.tx; + this.ty = matrix.ty; + } + }; + + // node_modules/svg-arc-to-cubic-bezier/modules/index.js + var _slicedToArray = /* @__PURE__ */ (function() { + function sliceIterator(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = void 0; + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"]) _i["return"](); + } finally { + if (_d) throw _e; + } + } + return _arr; + } + return function(arr, i) { + if (Array.isArray(arr)) { + return arr; + } else if (Symbol.iterator in Object(arr)) { + return sliceIterator(arr, i); + } else { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); + } + }; + })(); + var TAU = Math.PI * 2; + var mapToEllipse = function mapToEllipse2(_ref, rx, ry, cosphi, sinphi, centerx, centery) { + var x = _ref.x, y = _ref.y; + x *= rx; + y *= ry; + var xp = cosphi * x - sinphi * y; + var yp = sinphi * x + cosphi * y; + return { + x: xp + centerx, + y: yp + centery + }; + }; + var approxUnitArc = function approxUnitArc2(ang1, ang2) { + var a = ang2 === 1.5707963267948966 ? 0.551915024494 : ang2 === -1.5707963267948966 ? -0.551915024494 : 4 / 3 * Math.tan(ang2 / 4); + var x12 = Math.cos(ang1); + var y12 = Math.sin(ang1); + var x2 = Math.cos(ang1 + ang2); + var y2 = Math.sin(ang1 + ang2); + return [{ + x: x12 - y12 * a, + y: y12 + x12 * a + }, { + x: x2 + y2 * a, + y: y2 - x2 * a + }, { + x: x2, + y: y2 + }]; + }; + var vectorAngle = function vectorAngle2(ux, uy, vx, vy) { + var sign2 = ux * vy - uy * vx < 0 ? -1 : 1; + var dot = ux * vx + uy * vy; + if (dot > 1) { + dot = 1; + } + if (dot < -1) { + dot = -1; + } + return sign2 * Math.acos(dot); + }; + var getArcCenter = function getArcCenter2(px, py, cx, cy, rx, ry, largeArcFlag, sweepFlag, sinphi, cosphi, pxp, pyp) { + var rxsq = Math.pow(rx, 2); + var rysq = Math.pow(ry, 2); + var pxpsq = Math.pow(pxp, 2); + var pypsq = Math.pow(pyp, 2); + var radicant = rxsq * rysq - rxsq * pypsq - rysq * pxpsq; + if (radicant < 0) { + radicant = 0; + } + radicant /= rxsq * pypsq + rysq * pxpsq; + radicant = Math.sqrt(radicant) * (largeArcFlag === sweepFlag ? -1 : 1); + var centerxp = radicant * rx / ry * pyp; + var centeryp = radicant * -ry / rx * pxp; + var centerx = cosphi * centerxp - sinphi * centeryp + (px + cx) / 2; + var centery = sinphi * centerxp + cosphi * centeryp + (py + cy) / 2; + var vx1 = (pxp - centerxp) / rx; + var vy1 = (pyp - centeryp) / ry; + var vx2 = (-pxp - centerxp) / rx; + var vy2 = (-pyp - centeryp) / ry; + var ang1 = vectorAngle(1, 0, vx1, vy1); + var ang2 = vectorAngle(vx1, vy1, vx2, vy2); + if (sweepFlag === 0 && ang2 > 0) { + ang2 -= TAU; + } + if (sweepFlag === 1 && ang2 < 0) { + ang2 += TAU; + } + return [centerx, centery, ang1, ang2]; + }; + var arcToBezier = function arcToBezier2(_ref2) { + var px = _ref2.px, py = _ref2.py, cx = _ref2.cx, cy = _ref2.cy, rx = _ref2.rx, ry = _ref2.ry, _ref2$xAxisRotation = _ref2.xAxisRotation, xAxisRotation = _ref2$xAxisRotation === void 0 ? 0 : _ref2$xAxisRotation, _ref2$largeArcFlag = _ref2.largeArcFlag, largeArcFlag = _ref2$largeArcFlag === void 0 ? 0 : _ref2$largeArcFlag, _ref2$sweepFlag = _ref2.sweepFlag, sweepFlag = _ref2$sweepFlag === void 0 ? 0 : _ref2$sweepFlag; + var curves = []; + if (rx === 0 || ry === 0) { + return []; + } + var sinphi = Math.sin(xAxisRotation * TAU / 360); + var cosphi = Math.cos(xAxisRotation * TAU / 360); + var pxp = cosphi * (px - cx) / 2 + sinphi * (py - cy) / 2; + var pyp = -sinphi * (px - cx) / 2 + cosphi * (py - cy) / 2; + if (pxp === 0 && pyp === 0) { + return []; + } + rx = Math.abs(rx); + ry = Math.abs(ry); + var lambda = Math.pow(pxp, 2) / Math.pow(rx, 2) + Math.pow(pyp, 2) / Math.pow(ry, 2); + if (lambda > 1) { + rx *= Math.sqrt(lambda); + ry *= Math.sqrt(lambda); + } + var _getArcCenter = getArcCenter(px, py, cx, cy, rx, ry, largeArcFlag, sweepFlag, sinphi, cosphi, pxp, pyp), _getArcCenter2 = _slicedToArray(_getArcCenter, 4), centerx = _getArcCenter2[0], centery = _getArcCenter2[1], ang1 = _getArcCenter2[2], ang2 = _getArcCenter2[3]; + var ratio = Math.abs(ang2) / (TAU / 4); + if (Math.abs(1 - ratio) < 1e-7) { + ratio = 1; + } + var segments = Math.max(Math.ceil(ratio), 1); + ang2 /= segments; + for (var i = 0; i < segments; i++) { + curves.push(approxUnitArc(ang1, ang2)); + ang1 += ang2; + } + return curves.map(function(curve) { + var _mapToEllipse = mapToEllipse(curve[0], rx, ry, cosphi, sinphi, centerx, centery), x12 = _mapToEllipse.x, y12 = _mapToEllipse.y; + var _mapToEllipse2 = mapToEllipse(curve[1], rx, ry, cosphi, sinphi, centerx, centery), x2 = _mapToEllipse2.x, y2 = _mapToEllipse2.y; + var _mapToEllipse3 = mapToEllipse(curve[2], rx, ry, cosphi, sinphi, centerx, centery), x = _mapToEllipse3.x, y = _mapToEllipse3.y; + return { x1: x12, y1: y12, x2, y2, x, y }; + }); + }; + var modules_default = arcToBezier; + + // node_modules/@amcharts/amcharts5/.internal/core/render/backend/CanvasRenderer.js + function checkArgs(name, actual, expected) { + if (actual !== expected) { + throw new Error("Required " + expected + " arguments for " + name + " but got " + actual); + } + } + function checkMinArgs(name, actual, expected) { + if (actual < expected) { + throw new Error("Required at least " + expected + " arguments for " + name + " but got " + actual); + } + } + function checkEvenArgs(name, actual, expected) { + checkMinArgs(name, actual, expected); + if (actual % expected !== 0) { + throw new Error("Arguments for " + name + " must be in pairs of " + expected); + } + } + function splitArcFlags(args) { + for (let i = 0; i < args.length; i += 7) { + let index = i + 3; + let flag = args[index]; + if (flag.length > 1) { + const a = /^([01])([01])(.*)$/.exec(flag); + if (a !== null) { + args.splice(index, 0, a[1]); + ++index; + args.splice(index, 0, a[2]); + ++index; + if (a[3].length > 0) { + args[index] = a[3]; + } else { + args.splice(index, 1); + } + } + } + ++index; + flag = args[index]; + if (flag.length > 1) { + const a = /^([01])(.+)$/.exec(flag); + if (a !== null) { + args.splice(index, 0, a[1]); + ++index; + args[index] = a[2]; + } + } + } + } + function assertBinary(value) { + if (value === 0 || value === 1) { + return value; + } else { + throw new Error("Flag must be 0 or 1"); + } + } + function distributeId(id) { + const rgb = [0, 0, 0]; + for (let i = 0; i < 24; i++) { + rgb[i % 3] <<= 1; + rgb[i % 3] |= id & 1; + id >>= 1; + } + return (rgb[0] | 0) + (rgb[1] << 8) + (rgb[2] << 16); + } + function eachTargets(hitTarget, f) { + for (; ; ) { + if (hitTarget.interactive) { + if (!f(hitTarget)) { + break; + } + } + if (hitTarget._parent) { + hitTarget = hitTarget._parent; + } else { + break; + } + } + } + function onPointerEvent(element, name, f) { + return addEventListener(element, getRendererEvent(name), (event) => { + const target = getEventTarget(event); + let touches = event.touches; + if (touches) { + if (touches.length == 0) { + touches = event.changedTouches; + } + f(copy(touches), target); + } else { + f([event], target); + } + }); + } + function isTainted(image) { + const canvas = document.createElement("canvas"); + canvas.width = 1; + canvas.height = 1; + const context = canvas.getContext("2d", { willReadFrequently: true }); + context.drawImage(image, 0, 0, 1, 1); + try { + context.getImageData(0, 0, 1, 1); + return false; + } catch (err) { + console.warn('Image "' + image.src + '" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'); + return true; + } + } + function clearCanvas(view) { + view.width = 0; + view.height = 0; + view.style.width = "0px"; + view.style.height = "0px"; + } + function crisp(x) { + return Math.floor(x) + 0.5; + } + var CanvasPivot = class { + constructor() { + this._x = 0; + this._y = 0; + } + get x() { + return this._x; + } + get y() { + return this._y; + } + set x(value) { + this._x = value; + } + set y(value) { + this._y = value; + } + }; + var CanvasDisplayObject = class extends DisposerClass { + constructor(renderer) { + super(); + this.mask = null; + this.visible = true; + this.exportable = true; + this.interactive = false; + this.inactive = null; + this.wheelable = false; + this.cancelTouch = false; + this.isMeasured = false; + this.buttonMode = false; + this.alpha = 1; + this.compoundAlpha = 1; + this.angle = 0; + this.scale = 1; + this.x = 0; + this.y = 0; + this.crisp = false; + this.pivot = new CanvasPivot(); + this._localMatrix = new Matrix(); + this._matrix = new Matrix(); + this._uMatrix = new Matrix(); + this._renderer = renderer; + } + subStatus(status) { + return { + inactive: this.inactive == null ? status.inactive : this.inactive, + layer: this._layer || status.layer + }; + } + _dispose() { + this._renderer._removeObject(this); + this.getLayer().dirty = true; + } + getCanvas() { + return this.getLayer().view; + } + getLayer() { + let self2 = this; + for (; ; ) { + if (self2._layer) { + return self2._layer; + } else if (self2._parent) { + self2 = self2._parent; + } else { + return this._renderer.defaultLayer; + } + } + } + setLayer(order, margin) { + if (order == null) { + this._layer = void 0; + } else { + const visible = true; + this._layer = this._renderer.getLayer(order, visible); + this._layer.visible = visible; + this._layer.margin = margin; + if (margin) { + setInteractive(this._layer.view, false); + } + this._renderer._ghostLayer.setMargin(this._renderer.layers); + if (this._parent) { + this._parent.registerChildLayer(this._layer); + } + this._layer.dirty = true; + this._renderer.resizeLayer(this._layer); + this._renderer.resizeGhost(); + } + } + markDirtyLayer() { + this.getLayer().dirty = true; + } + clear() { + this.invalidateBounds(); + } + invalidateBounds() { + this._localBounds = void 0; + } + _addBounds(_bounds) { + } + _getColorId() { + if (this._colorId === void 0) { + this._colorId = this._renderer.paintId(this); + } + return this._colorId; + } + _isInteractive(status) { + return !status.inactive && (this.interactive || this._renderer._forceInteractive > 0); + } + _isInteractiveMask(status) { + return this._isInteractive(status); + } + contains(child) { + for (; ; ) { + if (child === this) { + return true; + } else if (child._parent) { + child = child._parent; + } else { + return false; + } + } + } + toGlobal(point) { + return this._matrix.apply(point); + } + toLocal(point) { + return this._matrix.applyInverse(point); + } + getLocalMatrix() { + this._uMatrix.setTransform(0, 0, this.pivot.x, this.pivot.y, this.angle * Math.PI / 180, this.scale); + return this._uMatrix; + } + getLocalBounds() { + if (!this._localBounds) { + const bn = 1e7; + this._localBounds = { + left: bn, + top: bn, + right: -bn, + bottom: -bn + }; + this._addBounds(this._localBounds); + } + return this._localBounds; + } + getAdjustedBounds(bounds) { + this._setMatrix(); + const matrix = this.getLocalMatrix(); + const p03 = matrix.apply({ x: bounds.left, y: bounds.top }); + const p1 = matrix.apply({ x: bounds.right, y: bounds.top }); + const p2 = matrix.apply({ x: bounds.right, y: bounds.bottom }); + const p3 = matrix.apply({ x: bounds.left, y: bounds.bottom }); + return { + left: Math.min(p03.x, p1.x, p2.x, p3.x), + top: Math.min(p03.y, p1.y, p2.y, p3.y), + right: Math.max(p03.x, p1.x, p2.x, p3.x), + bottom: Math.max(p03.y, p1.y, p2.y, p3.y) + }; + } + on(key, callback, context) { + if (this.interactive) { + return this._renderer._addEvent(this, key, callback, context); + } else { + return new Disposer(() => { + }); + } + } + _setMatrix() { + this._localMatrix.setTransform( + this.x, + this.y, + this.pivot.x, + this.pivot.y, + // Converts degrees to radians + this.angle * Math.PI / 180, + this.scale + ); + this._matrix.copyFrom(this._localMatrix); + if (this._parent) { + this._matrix.prepend(this._parent._matrix); + } + } + _transform(context, resolution) { + const m = this._matrix; + let tx = m.tx * resolution; + let ty = m.ty * resolution; + if (this.crisp) { + tx = crisp(tx); + ty = crisp(ty); + } + context.setTransform(m.a * resolution, m.b * resolution, m.c * resolution, m.d * resolution, tx, ty); + } + _transformMargin(context, resolution, margin) { + const m = this._matrix; + context.setTransform(m.a * resolution, m.b * resolution, m.c * resolution, m.d * resolution, (m.tx + margin.left) * resolution, (m.ty + margin.top) * resolution); + } + _transformLayer(context, resolution, layer) { + if (layer.margin) { + this._transformMargin(context, layer.scale || resolution, layer.margin); + } else { + this._transform(context, layer.scale || resolution); + } + } + render(status, targetGhostLayer = 0) { + if (this.visible && (this.exportable !== false || !this._renderer._omitTainted)) { + this._setMatrix(); + const subStatus = this.subStatus(status); + const resolution = this._renderer.resolution; + const layers = this._renderer.layers; + const ghostLayer = this._renderer._ghostLayer; + const ghostContext = ghostLayer.context; + const mask = this.mask; + if (mask) { + mask._setMatrix(); + } + each(layers, (layer) => { + if (layer) { + const context = layer.context; + context.save(); + if (mask) { + mask._transformLayer(context, resolution, layer); + mask._runPath(context); + context.clip(); + } + context.globalAlpha = this.compoundAlpha * this.alpha; + this._transformLayer(context, resolution, layer); + if (this.filter) { + context.filter = this.filter; + } + } + }); + ghostContext.save(); + if (mask && this._isInteractiveMask(subStatus)) { + mask._transformMargin(ghostContext, resolution, ghostLayer.margin); + mask._runPath(ghostContext); + ghostContext.clip(); + } + this._transformMargin(ghostContext, resolution, ghostLayer.margin); + if (subStatus.layer.order > 0 && !targetGhostLayer) { + move(this._renderer._deferredGhostLayers, subStatus.layer.order); + } + this._render(subStatus, targetGhostLayer); + ghostContext.restore(); + each(layers, (layer) => { + if (layer) { + layer.context.restore(); + } + }); + } + } + _render(status, _targetGhostLayer = 0) { + if (this.exportable === false) { + status.layer.tainted = true; + } + } + _ghostOnly(targetGhostLayer = 0) { + return targetGhostLayer > 0 ? true : false; + } + _drawGhost(status, targetGhostLayer = 0) { + const interactive = this._isInteractive(status); + const order = status.layer.order || 0; + return interactive && (order == 0 && !this._ghostOnly(targetGhostLayer) || order == targetGhostLayer) ? true : false; + } + hovering() { + return this._renderer._hovering.has(this); + } + dragging() { + return this._renderer._dragging.some((x) => x.value === this); + } + shouldCancelTouch() { + const renderer = this._renderer; + if (renderer.tapToActivate && !renderer._touchActive) { + return false; + } + if (this.cancelTouch) { + return true; + } else if (this._parent) { + return this._parent.shouldCancelTouch(); + } + return false; + } + }; + var CanvasContainer = class extends CanvasDisplayObject { + constructor() { + super(...arguments); + this.interactiveChildren = true; + this._children = []; + } + _isInteractiveMask(status) { + return this.interactiveChildren || super._isInteractiveMask(status); + } + addChild(child) { + child._parent = this; + this._children.push(child); + if (child._layer) { + this.registerChildLayer(child._layer); + } + } + addChildAt(child, index) { + child._parent = this; + this._children.splice(index, 0, child); + if (child._layer) { + this.registerChildLayer(child._layer); + } + } + removeChild(child) { + child._parent = void 0; + removeFirst(this._children, child); + } + _render(status, targetGhostLayer) { + super._render(status); + const renderer = this._renderer; + if (this.interactive && this.interactiveChildren) { + ++renderer._forceInteractive; + } + each(this._children, (child) => { + child.compoundAlpha = this.compoundAlpha * this.alpha; + child.render(status, targetGhostLayer); + }); + if (this.interactive && this.interactiveChildren) { + --renderer._forceInteractive; + } + } + registerChildLayer(layer) { + if (!this._childLayers) { + this._childLayers = []; + } + pushOne(this._childLayers, layer); + if (this._parent) { + this._parent.registerChildLayer(layer); + } + } + markDirtyLayer(deep = false) { + super.markDirtyLayer(); + if (deep && this._childLayers) { + each(this._childLayers, (layer) => layer.dirty = true); + } + } + _dispose() { + super._dispose(); + if (this._childLayers) { + each(this._childLayers, (layer) => { + layer.dirty = true; + }); + } + } + }; + function setPoint(bounds, point) { + bounds.left = Math.min(bounds.left, point.x); + bounds.top = Math.min(bounds.top, point.y); + bounds.right = Math.max(bounds.right, point.x); + bounds.bottom = Math.max(bounds.bottom, point.y); + } + var Op = class { + colorize(_context, _forceColor) { + } + colorizeGhost(context, forceColor) { + this.colorize(context, forceColor); + } + path(_context) { + } + pathGhost(context) { + this.path(context); + } + addBounds(_bounds) { + } + }; + var BeginPath = class extends Op { + colorize(context, _forceColor) { + context.beginPath(); + } + }; + var BeginFill = class extends Op { + constructor(color2) { + super(); + this.color = color2; + } + colorize(context, forceColor) { + if (forceColor !== void 0) { + context.fillStyle = forceColor; + } else { + context.fillStyle = this.color; + } + } + }; + var EndFill = class extends Op { + constructor(clearShadow) { + super(); + this.clearShadow = clearShadow; + } + colorize(context, _forceColor) { + context.fill(); + if (this.clearShadow) { + context.shadowColor = ""; + context.shadowBlur = 0; + context.shadowOffsetX = 0; + context.shadowOffsetY = 0; + } + } + }; + var EndStroke = class extends Op { + colorize(context, _forceColor) { + context.stroke(); + } + }; + var LineStyle = class extends Op { + constructor(width, color2, lineJoin, lineCap) { + super(); + this.width = width; + this.color = color2; + this.lineJoin = lineJoin; + this.lineCap = lineCap; + } + colorize(context, forceColor) { + if (forceColor !== void 0) { + context.strokeStyle = forceColor; + } else { + context.strokeStyle = this.color; + } + context.lineWidth = this.width; + if (this.lineJoin) { + context.lineJoin = this.lineJoin; + } + if (this.lineCap) { + context.lineCap = this.lineCap; + } + } + }; + var LineDash = class extends Op { + constructor(dash) { + super(); + this.dash = dash; + } + colorize(context, _forceColor) { + context.setLineDash(this.dash); + } + }; + var LineDashOffset = class extends Op { + constructor(dashOffset) { + super(); + this.dashOffset = dashOffset; + } + colorize(context, _forceColor) { + context.lineDashOffset = this.dashOffset; + } + }; + var DrawRect = class extends Op { + constructor(x, y, width, height) { + super(); + this.x = x; + this.y = y; + this.width = width; + this.height = height; + } + path(context) { + context.rect(this.x, this.y, this.width, this.height); + } + addBounds(bounds) { + const l = this.x; + const t = this.y; + const r = l + this.width; + const b = t + this.height; + setPoint(bounds, { x: l, y: t }); + setPoint(bounds, { x: r, y: t }); + setPoint(bounds, { x: l, y: b }); + setPoint(bounds, { x: r, y: b }); + } + }; + var DrawCircle = class extends Op { + constructor(x, y, radius) { + super(); + this.x = x; + this.y = y; + this.radius = radius; + } + path(context) { + context.moveTo(this.x + this.radius, this.y); + context.arc(this.x, this.y, this.radius, 0, 2 * Math.PI); + } + // TODO handle skewing and rotation + addBounds(bounds) { + setPoint(bounds, { x: this.x - this.radius, y: this.y - this.radius }); + setPoint(bounds, { x: this.x + this.radius, y: this.y + this.radius }); + } + }; + var DrawEllipse = class extends Op { + constructor(x, y, radiusX, radiusY) { + super(); + this.x = x; + this.y = y; + this.radiusX = radiusX; + this.radiusY = radiusY; + } + path(context) { + context.ellipse(0, 0, this.radiusX, this.radiusY, 0, 0, Math.PI * 2); + } + // TODO handle skewing and rotation + addBounds(bounds) { + setPoint(bounds, { x: this.x - this.radiusX, y: this.y - this.radiusY }); + setPoint(bounds, { x: this.x + this.radiusX, y: this.y + this.radiusY }); + } + }; + var Arc = class extends Op { + constructor(cx, cy, radius, startAngle, endAngle, anticlockwise) { + super(); + this.cx = cx; + this.cy = cy; + this.radius = radius; + this.startAngle = startAngle; + this.endAngle = endAngle; + this.anticlockwise = anticlockwise; + } + path(context) { + if (this.radius > 0) { + context.arc(this.cx, this.cy, this.radius, this.startAngle, this.endAngle, this.anticlockwise); + } + } + addBounds(bounds) { + let arcBounds = getArcBounds(this.cx, this.cy, this.startAngle * DEGREES, this.endAngle * DEGREES, this.radius); + setPoint(bounds, { x: arcBounds.left, y: arcBounds.top }); + setPoint(bounds, { x: arcBounds.right, y: arcBounds.bottom }); + } + }; + var ArcTo = class extends Op { + constructor(x12, y12, x2, y2, radius) { + super(); + this.x1 = x12; + this.y1 = y12; + this.x2 = x2; + this.y2 = y2; + this.radius = radius; + } + path(context) { + if (this.radius > 0) { + context.arcTo(this.x1, this.y1, this.x2, this.y2, this.radius); + } + } + // TODO: add points + addBounds(_bounds) { + } + }; + var LineTo = class extends Op { + constructor(x, y) { + super(); + this.x = x; + this.y = y; + } + path(context) { + context.lineTo(this.x, this.y); + } + addBounds(bounds) { + setPoint(bounds, { x: this.x, y: this.y }); + } + }; + var MoveTo = class extends Op { + constructor(x, y) { + super(); + this.x = x; + this.y = y; + } + path(context) { + context.moveTo(this.x, this.y); + } + addBounds(bounds) { + setPoint(bounds, { x: this.x, y: this.y }); + } + }; + var ClosePath = class extends Op { + path(context) { + context.closePath(); + } + }; + var BezierCurveTo = class extends Op { + constructor(cpX, cpY, cpX2, cpY2, toX, toY) { + super(); + this.cpX = cpX; + this.cpY = cpY; + this.cpX2 = cpX2; + this.cpY2 = cpY2; + this.toX = toX; + this.toY = toY; + } + path(context) { + context.bezierCurveTo(this.cpX, this.cpY, this.cpX2, this.cpY2, this.toX, this.toY); + } + // TODO: OK? + addBounds(bounds) { + setPoint(bounds, { x: this.cpX, y: this.cpY }); + setPoint(bounds, { x: this.cpX2, y: this.cpY2 }); + setPoint(bounds, { x: this.toX, y: this.toY }); + } + }; + var QuadraticCurveTo = class extends Op { + constructor(cpX, cpY, toX, toY) { + super(); + this.cpX = cpX; + this.cpY = cpY; + this.toX = toX; + this.toY = toY; + } + path(context) { + context.quadraticCurveTo(this.cpX, this.cpY, this.toX, this.toY); + } + // TODO: OK? + addBounds(bounds) { + setPoint(bounds, { x: this.cpX, y: this.cpY }); + setPoint(bounds, { x: this.toX, y: this.toY }); + } + }; + var Shadow = class extends Op { + constructor(color2, blur2, offsetX, offsetY, opacity) { + super(); + this.color = color2; + this.blur = blur2; + this.offsetX = offsetX; + this.offsetY = offsetY; + this.opacity = opacity; + } + colorize(context, _forceColor) { + if (this.opacity) { + context.fillStyle = this.color; + } + context.shadowColor = this.color; + context.shadowBlur = this.blur; + context.shadowOffsetX = this.offsetX; + context.shadowOffsetY = this.offsetY; + } + colorizeGhost(_context, _forceColor) { + } + }; + var GraphicsImage = class extends Op { + constructor(image, width, height, x, y) { + super(); + this.image = image; + this.width = width; + this.height = height; + this.x = x; + this.y = y; + } + path(context) { + context.drawImage(this.image, this.x, this.y, this.width, this.height); + } + // TODO: OK? + addBounds(bounds) { + setPoint(bounds, { x: this.x, y: this.y }); + setPoint(bounds, { x: this.width, y: this.height }); + } + }; + var CanvasGraphics = class extends CanvasDisplayObject { + constructor() { + super(...arguments); + this._operations = []; + this.blendMode = BlendMode.NORMAL; + this._hasShadows = false; + } + clear() { + super.clear(); + this._operations.length = 0; + } + _pushOp(op) { + this._operations.push(op); + } + beginFill(color2, alpha = 1) { + this._fillAlpha = alpha; + if (color2) { + if (color2 instanceof Color) { + this._pushOp(new BeginFill(color2.toCSS(alpha))); + } else { + this.isMeasured = true; + this._pushOp(new BeginFill(color2)); + } + } else { + this._pushOp(new BeginFill("rgba(0, 0, 0, " + alpha + ")")); + } + } + endFill() { + this._pushOp(new EndFill(this._hasShadows)); + } + endStroke() { + this._pushOp(new EndStroke()); + } + beginPath() { + this._pushOp(new BeginPath()); + } + lineStyle(width = 0, color2, alpha = 1, lineJoin, lineCap) { + this._strokeAlpha = alpha; + if (color2) { + if (color2 instanceof Color) { + this._pushOp(new LineStyle(width, color2.toCSS(alpha), lineJoin, lineCap)); + } else { + this._pushOp(new LineStyle(width, color2, lineJoin, lineCap)); + } + } else { + this._pushOp(new LineStyle(width, "rgba(0, 0, 0, " + alpha + ")", lineJoin, lineCap)); + } + } + setLineDash(dash) { + this._pushOp(new LineDash(dash ? dash : [])); + } + setLineDashOffset(dashOffset = 0) { + this._pushOp(new LineDashOffset(dashOffset)); + } + drawRect(x, y, width, height) { + this._pushOp(new DrawRect(x, y, width, height)); + } + drawCircle(x, y, radius) { + this._pushOp(new DrawCircle(x, y, radius)); + } + drawEllipse(x, y, radiusX, radiusY) { + this._pushOp(new DrawEllipse(x, y, radiusX, radiusY)); + } + arc(cx, cy, radius, startAngle, endAngle, anticlockwise = false) { + this._pushOp(new Arc(cx, cy, radius, startAngle, endAngle, anticlockwise)); + } + arcTo(x12, y12, x2, y2, radius) { + this._pushOp(new ArcTo(x12, y12, x2, y2, radius)); + } + lineTo(x, y) { + this._pushOp(new LineTo(x, y)); + } + moveTo(x, y) { + this._pushOp(new MoveTo(x, y)); + } + bezierCurveTo(cpX, cpY, cpX2, cpY2, toX, toY) { + this._pushOp(new BezierCurveTo(cpX, cpY, cpX2, cpY2, toX, toY)); + } + quadraticCurveTo(cpX, cpY, toX, toY) { + this._pushOp(new QuadraticCurveTo(cpX, cpY, toX, toY)); + } + closePath() { + this._pushOp(new ClosePath()); + } + shadow(color2, blur2 = 0, offsetX = 0, offsetY = 0, opacity) { + this._hasShadows = true; + this._pushOp(new Shadow(opacity ? color2.toCSS(opacity) : color2.toCSS(this._fillAlpha || this._strokeAlpha), blur2, offsetX, offsetY)); + } + image(image, width, height, x, y) { + this._pushOp(new GraphicsImage(image, width, height, x, y)); + } + // https://svgwg.org/svg2-draft/paths.html#DProperty + // TODO better error checking + svgPath(path) { + let x = 0; + let y = 0; + let cpx = null; + let cpy = null; + let qcpx = null; + let qcpy = null; + const SEGMENTS_REGEXP = /([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g; + const ARGS_REGEXP = /[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g; + const length = this._operations.length; + try { + let match; + while ((match = SEGMENTS_REGEXP.exec(path)) !== null) { + const name = match[1]; + const rest = match[2]; + const args = []; + while ((match = ARGS_REGEXP.exec(rest)) !== null) { + args.push(match[1]); + } + if (name !== "S" && name !== "s" && name !== "C" && name !== "c") { + cpx = null; + cpy = null; + } + if (name !== "Q" && name !== "q" && name !== "T" && name !== "t") { + qcpx = null; + qcpy = null; + } + switch (name) { + case "M": + checkEvenArgs(name, args.length, 2); + x = +args[0]; + y = +args[1]; + this.moveTo(x, y); + for (let i = 2; i < args.length; i += 2) { + x = +args[i]; + y = +args[i + 1]; + this.lineTo(x, y); + } + break; + case "m": + checkEvenArgs(name, args.length, 2); + x += +args[0]; + y += +args[1]; + this.moveTo(x, y); + for (let i = 2; i < args.length; i += 2) { + x += +args[i]; + y += +args[i + 1]; + this.lineTo(x, y); + } + break; + case "L": + checkEvenArgs(name, args.length, 2); + for (let i = 0; i < args.length; i += 2) { + x = +args[i]; + y = +args[i + 1]; + this.lineTo(x, y); + } + break; + case "l": + checkEvenArgs(name, args.length, 2); + for (let i = 0; i < args.length; i += 2) { + x += +args[i]; + y += +args[i + 1]; + this.lineTo(x, y); + } + break; + case "H": + checkMinArgs(name, args.length, 1); + for (let i = 0; i < args.length; ++i) { + x = +args[i]; + this.lineTo(x, y); + } + break; + case "h": + checkMinArgs(name, args.length, 1); + for (let i = 0; i < args.length; ++i) { + x += +args[i]; + this.lineTo(x, y); + } + break; + case "V": + checkMinArgs(name, args.length, 1); + for (let i = 0; i < args.length; ++i) { + y = +args[i]; + this.lineTo(x, y); + } + break; + case "v": + checkMinArgs(name, args.length, 1); + for (let i = 0; i < args.length; ++i) { + y += +args[i]; + this.lineTo(x, y); + } + break; + case "C": + checkEvenArgs(name, args.length, 6); + for (let i = 0; i < args.length; i += 6) { + const x12 = +args[i]; + const y12 = +args[i + 1]; + cpx = +args[i + 2]; + cpy = +args[i + 3]; + x = +args[i + 4]; + y = +args[i + 5]; + this.bezierCurveTo(x12, y12, cpx, cpy, x, y); + } + break; + case "c": + checkEvenArgs(name, args.length, 6); + for (let i = 0; i < args.length; i += 6) { + const x12 = +args[i] + x; + const y12 = +args[i + 1] + y; + cpx = +args[i + 2] + x; + cpy = +args[i + 3] + y; + x += +args[i + 4]; + y += +args[i + 5]; + this.bezierCurveTo(x12, y12, cpx, cpy, x, y); + } + break; + case "S": + checkEvenArgs(name, args.length, 4); + if (cpx === null || cpy === null) { + cpx = x; + cpy = y; + } + for (let i = 0; i < args.length; i += 4) { + const x12 = 2 * x - cpx; + const y12 = 2 * y - cpy; + cpx = +args[i]; + cpy = +args[i + 1]; + x = +args[i + 2]; + y = +args[i + 3]; + this.bezierCurveTo(x12, y12, cpx, cpy, x, y); + } + break; + case "s": + checkEvenArgs(name, args.length, 4); + if (cpx === null || cpy === null) { + cpx = x; + cpy = y; + } + for (let i = 0; i < args.length; i += 4) { + const x12 = 2 * x - cpx; + const y12 = 2 * y - cpy; + cpx = +args[i] + x; + cpy = +args[i + 1] + y; + x += +args[i + 2]; + y += +args[i + 3]; + this.bezierCurveTo(x12, y12, cpx, cpy, x, y); + } + break; + case "Q": + checkEvenArgs(name, args.length, 4); + for (let i = 0; i < args.length; i += 4) { + qcpx = +args[i]; + qcpy = +args[i + 1]; + x = +args[i + 2]; + y = +args[i + 3]; + this.quadraticCurveTo(qcpx, qcpy, x, y); + } + break; + case "q": + checkEvenArgs(name, args.length, 4); + for (let i = 0; i < args.length; i += 4) { + qcpx = +args[i] + x; + qcpy = +args[i + 1] + y; + x += +args[i + 2]; + y += +args[i + 3]; + this.quadraticCurveTo(qcpx, qcpy, x, y); + } + break; + case "T": + checkEvenArgs(name, args.length, 2); + if (qcpx === null || qcpy === null) { + qcpx = x; + qcpy = y; + } + for (let i = 0; i < args.length; i += 2) { + qcpx = 2 * x - qcpx; + qcpy = 2 * y - qcpy; + x = +args[i]; + y = +args[i + 1]; + this.quadraticCurveTo(qcpx, qcpy, x, y); + } + break; + case "t": + checkEvenArgs(name, args.length, 2); + if (qcpx === null || qcpy === null) { + qcpx = x; + qcpy = y; + } + for (let i = 0; i < args.length; i += 2) { + qcpx = 2 * x - qcpx; + qcpy = 2 * y - qcpy; + x += +args[i]; + y += +args[i + 1]; + this.quadraticCurveTo(qcpx, qcpy, x, y); + } + break; + case "A": + case "a": + const relative = name === "a"; + splitArcFlags(args); + checkEvenArgs(name, args.length, 7); + for (let i = 0; i < args.length; i += 7) { + let cx = +args[i + 5]; + let cy = +args[i + 6]; + if (relative) { + cx += x; + cy += y; + } + const bs = modules_default({ + px: x, + py: y, + rx: +args[i], + ry: +args[i + 1], + xAxisRotation: +args[i + 2], + largeArcFlag: assertBinary(+args[i + 3]), + sweepFlag: assertBinary(+args[i + 4]), + cx, + cy + }); + each(bs, (b) => { + this.bezierCurveTo(b.x1, b.y1, b.x2, b.y2, b.x, b.y); + x = b.x; + y = b.y; + }); + } + break; + case "Z": + case "z": + checkArgs(name, args.length, 0); + this.closePath(); + break; + } + } + } catch (e) { + this._operations.length = length; + console.warn("Error when parsing svgPath:\n " + e.message + "\n" + path); + } + } + _runPath(context) { + context.beginPath(); + each(this._operations, (op) => { + op.path(context); + }); + } + _render(status, targetGhostLayer = 0) { + super._render(status); + const layerDirty = status.layer.dirty; + const interactive = this._isInteractive(status); + const ghostOnly = this._ghostOnly(targetGhostLayer); + const drawGhost = this._drawGhost(status, targetGhostLayer); + if (layerDirty || interactive || ghostOnly) { + const context = status.layer.context; + const ghostContext = this._renderer._ghostLayer.context; + if (layerDirty && !ghostOnly) { + context.globalCompositeOperation = this.blendMode; + context.beginPath(); + } + let color2; + if (drawGhost) { + ghostContext.beginPath(); + color2 = this._getColorId(); + } + each(this._operations, (op) => { + if (layerDirty && !ghostOnly) { + op.path(context); + op.colorize(context, void 0); + } + if (drawGhost) { + op.pathGhost(ghostContext); + op.colorizeGhost(ghostContext, color2); + } + }); + } + } + renderDetached(context) { + if (this.visible) { + this._setMatrix(); + context.save(); + const mask = this.mask; + if (mask) { + mask._setMatrix(); + mask._transform(context, 1); + mask._runPath(context); + context.clip(); + } + context.globalAlpha = this.compoundAlpha * this.alpha; + this._transform(context, 1); + if (this.filter) { + context.filter = this.filter; + } + context.globalCompositeOperation = this.blendMode; + context.beginPath(); + each(this._operations, (op) => { + op.path(context); + op.colorize(context, void 0); + }); + context.restore(); + } + } + _addBounds(bounds) { + if (this.visible && this.isMeasured) { + each(this._operations, (op) => { + op.addBounds(bounds); + }); + } + } + }; + var CanvasText = class extends CanvasDisplayObject { + constructor(renderer, text, style) { + super(renderer); + this.resolution = 1; + this.textVisible = true; + this._originalScale = 1; + this.text = text; + this.style = style; + } + invalidateBounds() { + super.invalidateBounds(); + this._textInfo = void 0; + } + invalidateVisibility() { + this.textVisible = true; + this.scale = this._originalScale || 1; + } + _shared(context) { + if (this.style.textAlign) { + context.textAlign = this.style.textAlign; + } + if (this.style.direction) { + context.direction = this.style.direction; + } + if (this.style.textBaseline) { + context.textBaseline = this.style.textBaseline; + } + } + _prerender(status, ignoreGhost = false, ignoreFontWeight = false) { + super._render(status); + const context = status.layer.context; + const ghostContext = this._renderer._ghostLayer.context; + const style = this.style; + let fontStyle = this._getFontStyle(void 0, ignoreFontWeight); + context.font = fontStyle; + if (this._isInteractive(status) && !ignoreGhost) { + ghostContext.font = fontStyle; + } + if (style.fill) { + if (style.fill instanceof Color) { + context.fillStyle = style.fill.toCSS(style.fillOpacity != void 0 ? style.fillOpacity : 1); + } else { + context.fillStyle = style.fill; + } + } + if (style.shadowColor) { + status.layer.context.shadowColor = style.shadowColor.toCSS(style.shadowOpacity || 1); + } + if (style.shadowBlur) { + status.layer.context.shadowBlur = style.shadowBlur; + } + if (style.shadowOffsetX) { + status.layer.context.shadowOffsetX = style.shadowOffsetX; + } + if (style.shadowOffsetY) { + status.layer.context.shadowOffsetY = style.shadowOffsetY; + } + this._shared(context); + if (this._isInteractive(status) && !ignoreGhost) { + ghostContext.fillStyle = this._getColorId(); + this._shared(ghostContext); + } + } + _getFontStyle(style2, ignoreFontWeight = false) { + const style = this.style; + let fontStyle = []; + if (style2 && style2.fontVariant) { + fontStyle.push(style2.fontVariant); + } else if (style.fontVariant) { + fontStyle.push(style.fontVariant); + } + if (!ignoreFontWeight) { + if (style2 && style2.fontWeight) { + fontStyle.push(style2.fontWeight); + } else if (style.fontWeight) { + fontStyle.push(style.fontWeight); + } + } + if (style2 && style2.fontStyle) { + fontStyle.push(style2.fontStyle); + } else if (style.fontStyle) { + fontStyle.push(style.fontStyle); + } + if (style2 && style2.fontSize) { + if (isNumber(style2.fontSize)) { + style2.fontSize = style2.fontSize + "px"; + } + fontStyle.push(style2.fontSize); + } else if (style.fontSize) { + if (isNumber(style.fontSize)) { + style.fontSize = style.fontSize + "px"; + } + fontStyle.push(style.fontSize); + } + if (style2 && style2.fontFamily) { + fontStyle.push(style2.fontFamily); + } else if (style.fontFamily) { + fontStyle.push(style.fontFamily); + } else if (fontStyle.length) { + fontStyle.push("Arial"); + } + return fontStyle.join(" "); + } + _render(status, targetGhostLayer = 0) { + if (!this._textInfo) { + this._measure(status); + } + if (this.textVisible) { + const interactive = this._isInteractive(status); + const context = status.layer.context; + const layerDirty = status.layer.dirty; + const ghostContext = this._renderer._ghostLayer.context; + const ghostOnly = this._ghostOnly(targetGhostLayer); + const drawGhost = this._drawGhost(status, targetGhostLayer); + context.save(); + ghostContext.save(); + this._prerender(status); + each(this._textInfo, (line, _index) => { + each(line.textChunks, (chunk, _index2) => { + if (chunk.style) { + context.save(); + ghostContext.save(); + if (!ghostOnly) { + context.font = chunk.style; + } + if (this._isInteractive(status)) { + ghostContext.font = chunk.style; + } + } + if (chunk.fill) { + context.save(); + if (!ghostOnly) { + context.fillStyle = chunk.fill.toCSS(); + } + } + if (layerDirty && !ghostOnly) { + context.fillText(chunk.text, chunk.offsetX, line.offsetY + chunk.offsetY); + } + if (chunk.textDecoration == "underline" || chunk.textDecoration == "line-through") { + let thickness = 1; + let offset = 1; + let fontSize = chunk.height; + const oversizedBehavior = this.style.oversizedBehavior || ""; + if (["truncate", "wrap", "wrap-no-break"].indexOf(oversizedBehavior) > -1) { + const metrics = this._measureText(chunk.text, context); + chunk.width = metrics.actualBoundingBoxLeft + metrics.actualBoundingBoxRight; + } + let offsetX = chunk.offsetX; + switch (this.style.textAlign) { + case "right": + case "end": + offsetX -= chunk.width; + break; + case "center": + offsetX -= chunk.width / 2; + break; + } + if (chunk.style) { + const format = TextFormatter.getTextStyle(chunk.style); + switch (format.fontWeight) { + case "bolder": + case "bold": + case "700": + case "800": + case "900": + thickness = 2; + break; + } + } + if (fontSize) { + offset = fontSize / 20; + } + let y; + if (chunk.textDecoration == "line-through") { + y = thickness + line.offsetY + chunk.offsetY - chunk.height / 2; + } else { + y = thickness + offset * 1.5 + line.offsetY + chunk.offsetY; + } + if (!ghostOnly) { + context.save(); + context.beginPath(); + if (chunk.fill) { + context.strokeStyle = chunk.fill.toCSS(); + } else if (this.style.fill && this.style.fill instanceof Color) { + context.strokeStyle = this.style.fill.toCSS(); + } + context.lineWidth = thickness * offset; + context.moveTo(offsetX, y); + context.lineTo(offsetX + chunk.width, y); + context.stroke(); + context.restore(); + } + } + if (interactive && this.interactive && drawGhost) { + ghostContext.fillText(chunk.text, chunk.offsetX, line.offsetY + chunk.offsetY); + } + if (chunk.fill) { + context.restore(); + } + if (chunk.style) { + context.restore(); + ghostContext.restore(); + } + }); + }); + context.restore(); + ghostContext.restore(); + } + } + _addBounds(bounds) { + if (this.visible && this.isMeasured) { + const x = this._measure({ + inactive: this.inactive, + layer: this.getLayer() + }); + setPoint(bounds, { x: x.left, y: x.top }); + setPoint(bounds, { x: x.right, y: x.bottom }); + } + } + _ignoreFontWeight() { + return /apple/i.test(navigator.vendor); + } + _measure(status) { + const context = status.layer.context; + const ghostContext = this._renderer._ghostLayer.context; + const rtl = this.style.direction == "rtl"; + this._textInfo = []; + const oversizedBehavior = this.style.oversizedBehavior; + const maxWidth = this.style.maxWidth; + const truncate = isNumber(maxWidth) && oversizedBehavior == "truncate"; + const wrap = isNumber(maxWidth) && (oversizedBehavior == "wrap" || oversizedBehavior == "wrap-no-break"); + context.save(); + ghostContext.save(); + this._prerender(status, true, this._ignoreFontWeight()); + const refText = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 "; + const lines = this.text.toString().replace(/\r/g, "").split(/\n/); + let styleRestored = true; + let minX = 0; + let maxX = 0; + let offsetY = 0; + let currentStyle; + each(lines, (line, _index) => { + let chunks; + if (line == "") { + chunks = [{ + type: "value", + text: "" + }]; + } else { + chunks = TextFormatter.chunk(line, false, this.style.ignoreFormatting); + } + while (chunks.length > 0) { + let lineInfo = { + offsetY, + ascent: 0, + width: 0, + height: 0, + left: 0, + right: 0, + textChunks: [] + }; + const metrics = this._measureText(refText, context); + const height = metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent; + lineInfo.height = height; + lineInfo.ascent = metrics.actualBoundingBoxAscent; + let currentFormat; + let currentDecoration = this.style.textDecoration; + let currentFill; + let currentChunkWidth; + let skipFurtherText = false; + let firstTextChunk = true; + let leftoverChunks = []; + let currentVerticalAlign; + eachContinue(chunks, (chunk, index) => { + if (chunk.type == "format") { + if (chunk.text == "[/]") { + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + styleRestored = true; + } + currentFill = void 0; + currentStyle = void 0; + currentChunkWidth = void 0; + currentDecoration = this.style.textDecoration; + currentVerticalAlign = void 0; + currentFormat = chunk.text; + } else { + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + } + let format = TextFormatter.getTextStyle(chunk.text); + const fontStyle = this._getFontStyle(format); + context.save(); + ghostContext.save(); + context.font = fontStyle; + currentStyle = fontStyle; + currentFormat = chunk.text; + if (format.textDecoration) { + currentDecoration = format.textDecoration; + } + if (format.fill) { + currentFill = format.fill; + } + if (format.width) { + currentChunkWidth = toNumber(format.width); + } + if (format.verticalAlign) { + currentVerticalAlign = format.verticalAlign; + } + styleRestored = false; + const metrics2 = this._measureText(refText, context); + const height2 = metrics2.actualBoundingBoxAscent + metrics2.actualBoundingBoxDescent; + if (height2 > lineInfo.height) { + lineInfo.height = height2; + } + if (metrics2.actualBoundingBoxAscent > lineInfo.ascent) { + lineInfo.ascent = metrics2.actualBoundingBoxAscent; + } + } + } else if (chunk.type == "value" && !skipFurtherText) { + const metrics2 = this._measureText(chunk.text, context); + let chunkWidth = metrics2.actualBoundingBoxLeft + metrics2.actualBoundingBoxRight; + if (truncate) { + this.truncated = void 0; + let breakWords = firstTextChunk || this.style.breakWords || false; + const ellipsis = this.style.ellipsis || ""; + const ellipsisMetrics = this._measureText(ellipsis, context); + const ellipsisWidth = ellipsisMetrics.actualBoundingBoxLeft + ellipsisMetrics.actualBoundingBoxRight; + if (lineInfo.width + chunkWidth > maxWidth) { + const excessWidth = maxWidth - lineInfo.width - ellipsisWidth; + chunk.text = this._truncateText(context, chunk.text, excessWidth, breakWords); + chunk.text += ellipsis; + skipFurtherText = true; + this.truncated = true; + } + } else if (wrap) { + if (lineInfo.width + chunkWidth > maxWidth) { + const excessWidth = maxWidth - lineInfo.width; + const tmpText = this._truncateText(context, chunk.text, excessWidth, false, firstTextChunk && this.style.oversizedBehavior != "wrap-no-break"); + if (tmpText == "") { + this.textVisible = true; + return false; + } + leftoverChunks = chunks.slice(index + 1); + if (trim(tmpText) != trim(chunk.text)) { + leftoverChunks.unshift({ + type: "value", + text: chunk.text.substr(tmpText.length) + }); + if (currentFormat) { + leftoverChunks.unshift({ + type: "format", + text: currentFormat + }); + } + } + chunk.text = trim(tmpText); + chunks = []; + skipFurtherText = true; + } + } + let leftBoundMod = 1; + let rightBoundMod = 1; + if (currentStyle && currentChunkWidth && currentChunkWidth > chunkWidth) { + const boundsMod = chunkWidth / currentChunkWidth; + switch (this.style.textAlign) { + case "right": + case "end": + leftBoundMod = boundsMod; + break; + case "center": + leftBoundMod = boundsMod; + rightBoundMod = boundsMod; + break; + default: + rightBoundMod = boundsMod; + } + chunkWidth = currentChunkWidth; + } + const chunkHeight = metrics2.actualBoundingBoxAscent + metrics2.actualBoundingBoxDescent; + if (chunkHeight > lineInfo.height) { + lineInfo.height = chunkHeight; + } + if (metrics2.actualBoundingBoxAscent > lineInfo.ascent) { + lineInfo.ascent = metrics2.actualBoundingBoxAscent; + } + lineInfo.width += chunkWidth; + lineInfo.left += metrics2.actualBoundingBoxLeft / leftBoundMod; + lineInfo.right += metrics2.actualBoundingBoxRight / rightBoundMod; + lineInfo.textChunks.push({ + style: currentStyle, + fill: currentFill, + text: chunk.text, + width: chunkWidth, + height: chunkHeight, + left: metrics2.actualBoundingBoxLeft, + right: metrics2.actualBoundingBoxRight, + ascent: metrics2.actualBoundingBoxAscent, + offsetX: 0, + offsetY: 0, + textDecoration: currentDecoration, + verticalAlign: currentVerticalAlign + }); + firstTextChunk = false; + } + if (leftoverChunks) { + } + return true; + }); + if (this.style.lineHeight instanceof Percent) { + lineInfo.height *= this.style.lineHeight.value; + lineInfo.ascent *= this.style.lineHeight.value; + } else { + lineInfo.height *= this.style.lineHeight || 1.2; + lineInfo.ascent *= this.style.lineHeight || 1.2; + } + if (minX < lineInfo.left) { + minX = lineInfo.left; + } + if (maxX < lineInfo.right) { + maxX = lineInfo.right; + } + this._textInfo.push(lineInfo); + offsetY += lineInfo.height; + chunks = leftoverChunks || []; + } + }); + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + } + each(this._textInfo, (lineInfo, _index) => { + let currentChunkOffset = 0; + each(lineInfo.textChunks, (chunk) => { + chunk.offsetX = currentChunkOffset + chunk.left - lineInfo.left; + chunk.offsetY += lineInfo.height - lineInfo.height * (this.style.baselineRatio || 0.19); + currentChunkOffset += chunk.width * (rtl ? -1 : 1); + if (chunk.verticalAlign) { + switch (chunk.verticalAlign) { + case "super": + chunk.offsetY -= lineInfo.height / 2 - chunk.height / 2; + break; + case "sub": + chunk.offsetY += chunk.height / 2; + break; + } + } + }); + }); + const bounds = { + left: rtl ? -maxX : -minX, + top: 0, + right: rtl ? minX : maxX, + bottom: offsetY + }; + if (oversizedBehavior !== "none") { + const ratio = this._fitRatio(bounds); + if (ratio < 1) { + if (oversizedBehavior == "fit") { + if (isNumber(this.style.minScale) && ratio < this.style.minScale) { + this.textVisible = false; + bounds.left = 0; + bounds.top = 0; + bounds.right = 0; + bounds.bottom = 0; + } else { + if (!this._originalScale) { + this._originalScale = this.scale; + } + this.scale = ratio; + this.textVisible = true; + } + } else if (oversizedBehavior == "hide") { + this.textVisible = false; + bounds.left = 0; + bounds.top = 0; + bounds.right = 0; + bounds.bottom = 0; + } else { + switch (this.style.textAlign) { + case "right": + case "end": + bounds.left = rtl ? maxWidth : -maxWidth; + bounds.right = 0; + break; + case "center": + bounds.left = -maxWidth / 2; + bounds.right = maxWidth / 2; + break; + default: + bounds.left = 0; + bounds.right = rtl ? -maxWidth : maxWidth; + } + this.scale = this._originalScale || 1; + this._originalScale = void 0; + this.textVisible = true; + } + } else { + this.scale = this._originalScale || 1; + this._originalScale = void 0; + this.textVisible = true; + } + } + context.restore(); + ghostContext.restore(); + return bounds; + } + _fitRatio(bounds) { + const maxW = this.style.maxWidth; + const maxH = this.style.maxHeight; + if (!isNumber(maxW) && !isNumber(maxH)) { + return 1; + } + const w = bounds.right - bounds.left; + const h = bounds.bottom - bounds.top; + return Math.min(maxW / w || 1, maxH / h || 1); + } + _truncateText(context, text, maxWidth, breakWords = false, fallbackBreakWords = true) { + let width; + do { + if (breakWords) { + text = text.slice(0, -1); + } else { + let tmp = text.replace(/[^,;:!?\\\/\s​]+[,;:!?\\\/\s​]*$/g, ""); + if ((tmp == "" || tmp === text) && fallbackBreakWords) { + breakWords = true; + } else if (tmp == "") { + return text; + } else { + text = tmp; + } + } + const metrics = this._measureText(text, context); + width = metrics.actualBoundingBoxLeft + metrics.actualBoundingBoxRight; + } while (width > maxWidth && text != ""); + return text; + } + _measureText(text, context) { + let metrics = context.measureText(text); + let fakeMetrics = {}; + if (metrics.actualBoundingBoxAscent == null) { + const div = document.createElement("div"); + div.innerText = text; + div.style.visibility = "hidden"; + div.style.position = "absolute"; + div.style.top = "-1000000px;"; + div.style.fontFamily = this.style.fontFamily || ""; + div.style.fontSize = this.style.fontSize + ""; + document.body.appendChild(div); + const bbox = div.getBoundingClientRect(); + document.body.removeChild(div); + const h = bbox.height; + const w2 = metrics.width; + let left = 0; + let right = w2; + fakeMetrics = { + actualBoundingBoxAscent: h, + actualBoundingBoxDescent: 0, + actualBoundingBoxLeft: left, + actualBoundingBoxRight: right, + fontBoundingBoxAscent: h, + fontBoundingBoxDescent: 0, + width: w2 + }; + } else { + fakeMetrics = { + actualBoundingBoxAscent: metrics.actualBoundingBoxAscent, + actualBoundingBoxDescent: metrics.actualBoundingBoxDescent, + actualBoundingBoxLeft: metrics.actualBoundingBoxLeft, + actualBoundingBoxRight: metrics.actualBoundingBoxRight, + fontBoundingBoxAscent: metrics.actualBoundingBoxAscent, + fontBoundingBoxDescent: metrics.actualBoundingBoxDescent, + width: metrics.width + }; + } + const w = metrics.width; + switch (this.style.textAlign) { + case "right": + case "end": + fakeMetrics.actualBoundingBoxLeft = w; + fakeMetrics.actualBoundingBoxRight = 0; + break; + case "center": + fakeMetrics.actualBoundingBoxLeft = w / 2; + fakeMetrics.actualBoundingBoxRight = w / 2; + break; + default: + fakeMetrics.actualBoundingBoxLeft = 0; + fakeMetrics.actualBoundingBoxRight = w; + } + return fakeMetrics; + } + }; + var CanvasTextStyle = class { + constructor() { + this.lineHeight = percent(120); + this.baselineRatio = 0.19; + this.oversizedBehavior = "none"; + this.breakWords = false; + this.ellipsis = "\u2026"; + this.ignoreFormatting = false; + } + }; + var CanvasRadialText = class extends CanvasText { + constructor() { + super(...arguments); + this.textType = "circular"; + this.inside = false; + this.orientation = "auto"; + this.kerning = 0; + this._textReversed = false; + } + _render(status, targetGhostLayer = 0) { + switch (this.textType) { + case "circular": + this._renderCircular(status, targetGhostLayer); + break; + default: + super._render(status, targetGhostLayer); + break; + } + } + _renderCircular(status, targetGhostLayer = 0) { + if (this.textVisible) { + this._prerender(status); + const interactive = this._isInteractive(status); + const context = status.layer.context; + const layerDirty = status.layer.dirty; + const ghostContext = this._renderer._ghostLayer.context; + context.save(); + if (interactive) { + ghostContext.save(); + } + if (!this._textInfo) { + this._measure(status); + } + let radius = this.radius || 0; + let startAngle = this.startAngle || 0; + let deltaAngle = 0; + let orientation = this.orientation; + let inward = orientation == "auto" ? "auto" : orientation == "inward"; + const inside = this.inside; + const align = this.style.textAlign || "left"; + const kerning = this.kerning || 0; + let clockwise = align == "left" ? 1 : -1; + const shouldReverse = !this._textReversed; + const ghostOnly = this._ghostOnly(targetGhostLayer); + const drawGhost = this._drawGhost(status, targetGhostLayer); + if (inward == "auto") { + let maxAngle = 0; + let midAngle = 0; + each(this._textInfo, (line, _index) => { + const deltaAngle2 = startAngle + line.width / (radius - line.height) / 2 * -clockwise; + if (deltaAngle2 > maxAngle) { + maxAngle = deltaAngle2; + } + }); + if (align == "left") { + midAngle = (maxAngle + deltaAngle / 2) * DEGREES; + } else if (align == "right") { + midAngle = (maxAngle - deltaAngle / 2) * DEGREES; + } else { + midAngle = startAngle * DEGREES; + } + midAngle = normalizeAngle(midAngle); + inward = midAngle >= 270 || midAngle <= 90; + } + if (inward == true && shouldReverse) { + this._textInfo.reverse(); + this._textReversed = true; + } + each(this._textInfo, (line, _index) => { + const textHeight = line.height; + if (!inside) { + radius += textHeight; + } + if ((clockwise == -1 && inward || clockwise == 1 && !inward) && shouldReverse) { + line.textChunks.reverse(); + } + let lineStartAngle = startAngle; + deltaAngle = 0; + if (align == "center") { + lineStartAngle += line.width / (radius - textHeight) / 2 * -clockwise; + deltaAngle = lineStartAngle - startAngle; + } + lineStartAngle += Math.PI * (inward ? 0 : 1); + context.save(); + if (interactive) { + ghostContext.save(); + } + if (!ghostOnly) { + context.rotate(lineStartAngle); + } + if (interactive) { + ghostContext.rotate(lineStartAngle); + } + let angleShift = 0; + each(line.textChunks, (chunk, _index2) => { + const char = chunk.text; + const charWidth = chunk.width; + angleShift = charWidth / 2 / (radius - textHeight) * clockwise; + if (!ghostOnly) { + context.rotate(angleShift); + } + if (interactive) { + ghostContext.rotate(angleShift); + } + if (chunk.style) { + context.save(); + ghostContext.save(); + if (!ghostOnly) { + context.font = chunk.style; + } + if (interactive) { + ghostContext.font = chunk.style; + } + } + if (chunk.fill) { + context.save(); + if (!ghostOnly) { + context.fillStyle = chunk.fill.toCSS(); + } + } + if (!ghostOnly) { + context.textBaseline = "middle"; + context.textAlign = "center"; + } + if (interactive) { + ghostContext.textBaseline = "middle"; + ghostContext.textAlign = "center"; + } + if (layerDirty && !ghostOnly) { + context.fillText(char, 0, (inward ? 1 : -1) * (0 - radius + textHeight / 2)); + } + if (interactive && drawGhost) { + ghostContext.fillText(char, 0, (inward ? 1 : -1) * (0 - radius + textHeight / 2)); + } + if (chunk.fill) { + context.restore(); + } + if (chunk.style) { + context.restore(); + ghostContext.restore(); + } + angleShift = (charWidth / 2 + kerning) / (radius - textHeight) * clockwise; + if (!ghostOnly) { + context.rotate(angleShift); + } + if (interactive) { + ghostContext.rotate(angleShift); + } + }); + context.restore(); + if (interactive) { + ghostContext.restore(); + } + if (inside) { + radius -= textHeight; + } + }); + context.restore(); + if (interactive) { + ghostContext.restore(); + } + } + } + _measure(status) { + switch (this.textType) { + case "circular": + return this._measureCircular(status); + default: + return super._measure(status); + } + } + _measureCircular(status) { + const context = status.layer.context; + const ghostContext = this._renderer._ghostLayer.context; + const rtl = this.style.direction == "rtl"; + const oversizedBehavior = this.style.oversizedBehavior; + const maxWidth = this.style.maxWidth; + const truncate = isNumber(maxWidth) && oversizedBehavior == "truncate"; + const ellipsis = this.style.ellipsis || ""; + let ellipsisMetrics; + this.textVisible = true; + this._textInfo = []; + this._textReversed = false; + context.save(); + ghostContext.save(); + this._prerender(status, true); + const lines = this.text.toString().replace(/\r/g, "").split(/\n/); + let styleRestored = true; + let totalWidth = 0; + let offsetY = 0; + each(lines, (line, _index) => { + let chunks = TextFormatter.chunk(line, false, this.style.ignoreFormatting); + let lineInfo = { + offsetY, + ascent: 0, + width: 0, + height: 0, + left: 0, + right: 0, + textChunks: [] + }; + let currentStyle; + let currentFill; + let currentChunkWidth; + each(chunks, (chunk, _index2) => { + if (chunk.type == "format") { + if (chunk.text == "[/]") { + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + styleRestored = true; + } + currentFill = void 0; + currentStyle = void 0; + currentChunkWidth = void 0; + } else { + let format = TextFormatter.getTextStyle(chunk.text); + const fontStyle = this._getFontStyle(format); + context.save(); + ghostContext.save(); + context.font = fontStyle; + currentStyle = fontStyle; + if (format.fill) { + currentFill = format.fill; + } + if (format.width) { + currentChunkWidth = toNumber(format.width); + } + styleRestored = false; + } + if (truncate) { + ellipsisMetrics = this._measureText(ellipsis, context); + } + } else if (chunk.type == "value") { + let chars = chunk.text.match(/./ug) || []; + if (rtl) { + chars = splitString(chunk.text); + chars.reverse(); + } + for (let i = 0; i < chars.length; i++) { + const char = chars[i]; + const metrics = this._measureText(char, context); + let chunkWidth = metrics.width; + if (currentStyle && currentChunkWidth && currentChunkWidth > chunkWidth) { + chunkWidth = currentChunkWidth; + } + const chunkHeight = metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent; + if (chunkHeight > lineInfo.height) { + lineInfo.height = chunkHeight; + } + if (metrics.actualBoundingBoxAscent > lineInfo.ascent) { + lineInfo.ascent = metrics.actualBoundingBoxAscent; + } + totalWidth += chunkWidth; + if (truncate) { + if (!ellipsisMetrics) { + ellipsisMetrics = this._measureText(ellipsis, context); + } + const ellipsisWidth = ellipsisMetrics.actualBoundingBoxLeft + ellipsisMetrics.actualBoundingBoxRight; + if (totalWidth + ellipsisWidth > maxWidth) { + if (lineInfo.textChunks.length == 1) { + this.textVisible = false; + } else { + lineInfo.width += ellipsisWidth; + lineInfo.left += ellipsisMetrics.actualBoundingBoxLeft; + lineInfo.right += ellipsisMetrics.actualBoundingBoxRight; + lineInfo.textChunks.push({ + style: currentStyle, + fill: currentFill, + text: ellipsis, + width: ellipsisWidth, + height: chunkHeight + ellipsisMetrics.actualBoundingBoxDescent, + left: ellipsisMetrics.actualBoundingBoxLeft, + right: ellipsisMetrics.actualBoundingBoxRight, + ascent: ellipsisMetrics.actualBoundingBoxAscent, + offsetX: 0, + offsetY: chunkHeight, + textDecoration: void 0 + }); + } + break; + } + } + lineInfo.width += chunkWidth; + lineInfo.left += metrics.actualBoundingBoxLeft; + lineInfo.right += metrics.actualBoundingBoxRight; + lineInfo.textChunks.push({ + style: currentStyle, + fill: currentFill, + text: char, + width: chunkWidth, + height: chunkHeight + metrics.actualBoundingBoxDescent, + left: metrics.actualBoundingBoxLeft, + right: metrics.actualBoundingBoxRight, + ascent: metrics.actualBoundingBoxAscent, + offsetX: 0, + offsetY: chunkHeight, + textDecoration: void 0 + }); + if (rtl) { + } + } + } + }); + if (this.style.lineHeight instanceof Percent) { + lineInfo.height *= this.style.lineHeight.value; + } else { + lineInfo.height *= this.style.lineHeight || 1.2; + } + this._textInfo.push(lineInfo); + offsetY += lineInfo.height; + }); + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + } + if (oversizedBehavior == "hide" && totalWidth > maxWidth) { + this.textVisible = false; + } + each(this._textInfo, (lineInfo) => { + each(lineInfo.textChunks, (chunk) => { + chunk.offsetY += Math.round((lineInfo.height - chunk.height + (lineInfo.ascent - chunk.ascent)) / 2); + }); + }); + context.restore(); + ghostContext.restore(); + return { + left: 0, + top: 0, + right: 0, + bottom: 0 + }; + } + }; + var CanvasImage = class extends CanvasDisplayObject { + constructor(renderer, image) { + super(renderer); + this.image = image; + } + _dispose() { + super._dispose(); + if (this._imageMask) { + clearCanvas(this._imageMask); + } + } + getLocalBounds() { + if (!this._localBounds) { + let w = 0; + let h = 0; + if (this.width) { + w = this.width; + } + if (this.height) { + h = this.height; + } + this._localBounds = { + left: 0, + top: 0, + right: w, + bottom: h + }; + this._addBounds(this._localBounds); + } + return this._localBounds; + } + _render(status, targetGhostLayer = 0) { + super._render(status); + if (this.image) { + if (this.tainted === void 0) { + this.tainted = isTainted(this.image); + status.layer.tainted = true; + } + if (this.tainted && this._renderer._omitTainted) { + return; + } + const ghostOnly = this._ghostOnly(targetGhostLayer); + const drawGhost = this._drawGhost(status, targetGhostLayer); + if (status.layer.dirty && !ghostOnly) { + if (this.shadowColor) { + status.layer.context.shadowColor = this.shadowColor.toCSS(this.shadowOpacity || 1); + } + if (this.shadowBlur) { + status.layer.context.shadowBlur = this.shadowBlur; + } + if (this.shadowOffsetX) { + status.layer.context.shadowOffsetX = this.shadowOffsetX; + } + if (this.shadowOffsetY) { + status.layer.context.shadowOffsetY = this.shadowOffsetY; + } + const width = this.width || this.image.naturalWidth; + const height = this.height || this.image.naturalHeight; + status.layer.context.drawImage(this.image, 0, 0, width, height); + } + if (this.interactive && this._isInteractive(status) && drawGhost) { + const mask = this._getMask(this.image); + this._renderer._ghostLayer.context.drawImage(mask, 0, 0); + } + } + } + clear() { + super.clear(); + this.image = void 0; + this._imageMask = void 0; + } + _getMask(image) { + if (this._imageMask === void 0) { + const width = this.width || image.naturalWidth; + const height = this.height || image.naturalHeight; + const canvas = document.createElement("canvas"); + canvas.width = width; + canvas.height = height; + const context = canvas.getContext("2d"); + context.imageSmoothingEnabled = false; + context.fillStyle = this._getColorId(); + context.fillRect(0, 0, width, height); + if (!isTainted(image)) { + context.globalCompositeOperation = "destination-in"; + context.drawImage(image, 0, 0, width, height); + } + this._imageMask = canvas; + } + return this._imageMask; + } + }; + var CanvasRendererEvent = class { + constructor(event, originalPoint, point, bbox) { + this.event = event; + this.originalPoint = originalPoint; + this.point = point; + this.bbox = bbox; + this.simulated = false; + this.native = true; + if (supports("touchevents") && event instanceof Touch) { + this.id = event.identifier; + } else { + this.id = null; + } + } + }; + var CanvasRenderer = class extends ArrayDisposer { + constructor(resolution) { + super(); + this.view = document.createElement("div"); + this._layerDom = document.createElement("div"); + this.layers = []; + this._dirtyLayers = []; + this.defaultLayer = this.getLayer(0); + this._ghostLayer = new GhostLayer(); + this._deferredGhostLayers = []; + this._patternCanvas = document.createElement("canvas"); + this._patternContext = this._patternCanvas.getContext("2d"); + this._realWidth = 0; + this._realHeight = 0; + this._calculatedWidth = 0; + this._calculatedHeight = 0; + this.interactionsEnabled = true; + this._listeners = {}; + this._events = {}; + this._colorId = 0; + this._colorMap = {}; + this._forceInteractive = 0; + this._omitTainted = false; + this._hovering = /* @__PURE__ */ new Set(); + this._dragging = []; + this._mousedown = []; + this.tapToActivate = false; + this.tapToActivateTimeout = 3e3; + this._touchActive = false; + if (resolution == null) { + this.resolution = window.devicePixelRatio; + } else { + this.resolution = resolution; + } + this.view.style.position = "absolute"; + this.view.setAttribute("aria-hidden", "true"); + this.view.appendChild(this._layerDom); + this._disposers.push(new Disposer(() => { + each2(this._events, (_key, events) => { + events.disposer.dispose(); + }); + each(this.layers, (layer) => { + clearCanvas(layer.view); + if (layer.exportableView) { + clearCanvas(layer.exportableView); + } + }); + clearCanvas(this._ghostLayer.view); + clearCanvas(this._patternCanvas); + })); + this._disposers.push(onZoom(() => { + if (resolution == null) { + this.resolution = window.devicePixelRatio; + } + })); + if (supports("touchevents")) { + const listener = (ev) => { + if (this._dragging.length !== 0) { + eachContinue(this._dragging, (item) => { + if (item.value.shouldCancelTouch()) { + ev.preventDefault(); + return false; + } + return true; + }); + } + if (this._touchActiveTimeout) { + this._delayTouchDeactivate(); + } + }; + this._disposers.push(addEventListener(window, "touchstart", listener, { passive: false })); + this._disposers.push(addEventListener(this.view, "touchstart", listener, { passive: false })); + this._disposers.push(addEventListener(this.view, "touchmove", () => { + if (this._touchActiveTimeout) { + this._delayTouchDeactivate(); + } + }, { passive: true })); + this._disposers.push(addEventListener(window, "click", (_ev) => { + this._touchActive = false; + }, { passive: true })); + this._disposers.push(addEventListener(this.view, "click", (_ev) => { + window.setTimeout(() => { + this._touchActive = true; + this._delayTouchDeactivate(); + }, 100); + }, { passive: true })); + } + if (supports("wheelevents")) { + this._disposers.push(addEventListener(this.view, "wheel", (ev) => { + let prevent = false; + this._hovering.forEach((obj) => { + if (obj.wheelable) { + prevent = true; + return false; + } + }); + if (prevent) { + ev.preventDefault(); + } + }, { passive: false })); + } + } + /*protected _mouseMoveThrottler: Throttler = new Throttler(() => { + this._dispatchGlobalMousemove(this._lastPointerMoveEvent.event, this._lastPointerMoveEvent.native); + }); + */ + resetImageArray() { + this._ghostLayer.imageArray = void 0; + } + _delayTouchDeactivate() { + if (this._touchActiveTimeout) { + clearTimeout(this._touchActiveTimeout); + } + if (this.tapToActivateTimeout > 0) { + this._touchActiveTimeout = window.setTimeout(() => { + this._touchActive = false; + }, this.tapToActivateTimeout); + } + } + get debugGhostView() { + return !!this._ghostLayer.view.parentNode; + } + set debugGhostView(value) { + if (value) { + if (!this._ghostLayer.view.parentNode) { + this.view.appendChild(this._ghostLayer.view); + } + } else { + if (this._ghostLayer.view.parentNode) { + this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view); + } + } + } + createLinearGradient(x12, y12, x2, y2) { + return this.defaultLayer.context.createLinearGradient(x12, y12, x2, y2); + } + createRadialGradient(x12, y12, radius1, x2, y2, radius2) { + return this.defaultLayer.context.createRadialGradient(x12, y12, radius1, x2, y2, radius2); + } + createPattern(graphics, background, repetition, width, height) { + this._patternCanvas.width = width; + this._patternCanvas.height = height; + this._patternContext.clearRect(0, 0, width, height); + background.renderDetached(this._patternContext); + graphics.renderDetached(this._patternContext); + return this._patternContext.createPattern(this._patternCanvas, repetition); + } + makeContainer() { + return new CanvasContainer(this); + } + makeGraphics() { + return new CanvasGraphics(this); + } + makeText(text, style) { + return new CanvasText(this, text, style); + } + makeTextStyle() { + return new CanvasTextStyle(); + } + makeRadialText(text, style) { + return new CanvasRadialText(this, text, style); + } + makePicture(image) { + return new CanvasImage(this, image); + } + resizeLayer(layer) { + layer.resize(this._calculatedWidth, this._calculatedHeight, this._calculatedWidth, this._calculatedHeight, this.resolution); + } + resizeGhost() { + this._ghostLayer.resize(this._calculatedWidth, this._calculatedHeight, this._calculatedWidth, this._calculatedHeight, this.resolution); + } + resize(realWidth, realHeight, calculatedWidth, calculatedHeight) { + this._realWidth = realWidth; + this._realHeight = realHeight; + this._calculatedWidth = calculatedWidth; + this._calculatedHeight = calculatedHeight; + each(this.layers, (layer) => { + if (layer) { + layer.dirty = true; + this.resizeLayer(layer); + } + }); + this.resizeGhost(); + this.view.style.width = calculatedWidth + "px"; + this.view.style.height = calculatedHeight + "px"; + } + createDetachedLayer(willReadFrequently = false) { + const view = document.createElement("canvas"); + const context = view.getContext("2d", { willReadFrequently }); + const layer = new CanvasLayer(view, context); + view.style.position = "absolute"; + view.style.top = "0px"; + view.style.left = "0px"; + return layer; + } + getLayerByOrder(order) { + const layers = this.layers; + const length = layers.length; + for (let i = 0; i < length; i++) { + const layer = layers[i]; + if (layer.order == order) { + return layer; + } + } + } + getLayer(order, visible = true) { + let existingLayer = this.getLayerByOrder(order); + if (existingLayer) { + return existingLayer; + } + const layer = this.createDetachedLayer(order == 99); + layer.order = order; + layer.visible = visible; + layer.view.className = "am5-layer-" + order; + if (layer.visible) { + this.resizeLayer(layer); + } + const layers = this.layers; + layers.push(layer); + layers.sort((a, b) => { + if (a.order > b.order) { + return 1; + } else if (a.order < b.order) { + return -1; + } else { + return 0; + } + }); + const length = layers.length; + const layerIndex = indexOf(layers, layer); + let next; + for (let i = layerIndex + 1; i < length; i++) { + if (layers[i].visible) { + next = layers[i]; + break; + } + } + if (layer.visible) { + if (next === void 0) { + this._layerDom.appendChild(layer.view); + } else { + this._layerDom.insertBefore(layer.view, next.view); + } + } + return layer; + } + render(root2) { + this._dirtyLayers.length = 0; + this._deferredGhostLayers = []; + each(this.layers, (layer) => { + if (layer) { + if (layer.dirty && layer.visible) { + this._dirtyLayers.push(layer); + layer.clear(); + } + } + }); + this._ghostLayer.clear(); + root2.render({ + inactive: null, + layer: this.defaultLayer + }); + const deferredGhostLayers = this._deferredGhostLayers; + if (deferredGhostLayers.length) { + deferredGhostLayers.sort((a, b) => a - b); + each(deferredGhostLayers, (layerx) => { + root2.render({ + inactive: null, + layer: this.defaultLayer + }, layerx); + }); + } + this._ghostLayer.context.restore(); + each(this.layers, (layer) => { + if (layer) { + const context = layer.context; + context.beginPath(); + context.moveTo(0, 0); + context.stroke(); + } + }); + each(this._dirtyLayers, (layer) => { + layer.context.restore(); + layer.dirty = false; + }); + if (this._hovering.size && this._lastPointerMoveEvent) { + const { events, target, native } = this._lastPointerMoveEvent; + each(events, (event) => { + this._dispatchGlobalMousemove(event, target, native); + }); + } + } + paintId(obj) { + const id = distributeId(++this._colorId); + const color2 = Color.fromHex(id).toCSS(); + this._colorMap[color2] = obj; + return color2; + } + _removeObject(obj) { + if (obj._colorId !== void 0) { + delete this._colorMap[obj._colorId]; + } + } + // protected _identifyObjectByColor(colorId: number): CanvasDisplayObject | undefined { + // return this._colorMap[colorId]; + // } + _adjustBoundingBox(bbox) { + const margin = this._ghostLayer.margin; + return new DOMRect(-margin.left, -margin.top, bbox.width + margin.left + margin.right, bbox.height + margin.top + margin.bottom); + } + getEvent(originalEvent, adjustPoint = true) { + const bbox = this.view.getBoundingClientRect(); + const x = originalEvent.clientX || 0; + const y = originalEvent.clientY || 0; + const widthScale = this._calculatedWidth / this._realWidth; + const heightScale = this._calculatedHeight / this._realHeight; + const originalPoint = { + x: x - bbox.left, + y: y - bbox.top + }; + const point = { + x: (x - (adjustPoint ? bbox.left : 0)) * widthScale, + y: (y - (adjustPoint ? bbox.top : 0)) * heightScale + }; + return new CanvasRendererEvent(originalEvent, originalPoint, point, this._adjustBoundingBox(bbox)); + } + _getHitTarget(point, bbox, target) { + if (bbox.width === 0 || bbox.height === 0 || point.x < bbox.left || point.x > bbox.right || point.y < bbox.top || point.y > bbox.bottom) { + return; + } + if (!target || !this._layerDom.contains(target)) { + return; + } + const pixel = this._ghostLayer.getImageData(point, bbox); + if (pixel.data[0] === 0 && pixel.data[1] === 0 && pixel.data[2] === 0) { + return false; + } + const colorId = Color.fromRGB(pixel.data[0], pixel.data[1], pixel.data[2]).toCSS(); + const hit = this._colorMap[colorId]; + return hit; + } + getObjectAtPoint(point) { + const data = this._ghostLayer.getImageArray(point); + if (data[0] === 0 && data[1] === 0 && data[2] === 0) { + return void 0; + } + const colorId = Color.fromRGB(data[0], data[1], data[2]).toCSS(); + const hit = this._colorMap[colorId]; + return hit; + } + _withEvents(key, f) { + const events = this._events[key]; + if (events !== void 0) { + events.dispatching = true; + try { + f(events); + } finally { + events.dispatching = false; + if (events.cleanup) { + events.cleanup = false; + keepIf(events.callbacks, (callback) => { + return !callback.disposed; + }); + if (events.callbacks.length === 0) { + events.disposer.dispose(); + delete this._events[key]; + } + } + } + } + } + _dispatchEventAll(key, event) { + if (!this.interactionsEnabled) { + return; + } + this._withEvents(key, (events) => { + each(events.callbacks, (callback) => { + if (!callback.disposed) { + callback.callback.call(callback.context, event); + } + }); + }); + } + _dispatchEvent(key, target, event) { + if (!this.interactionsEnabled) { + return false; + } + let dispatched = false; + this._withEvents(key, (events) => { + each(events.callbacks, (callback) => { + if (!callback.disposed && callback.object === target) { + callback.callback.call(callback.context, event); + dispatched = true; + } + }); + }); + return dispatched; + } + _dispatchMousedown(originalEvent, originalTarget) { + const button = originalEvent.button; + if (button != 0 && button != 2 && button != 1 && button !== void 0) { + return; + } + const event = this.getEvent(originalEvent); + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + if (target) { + const id = event.id; + let dragged = false; + eachTargets(target, (obj) => { + const info = { id, value: obj }; + this._mousedown.push(info); + if (!dragged && this._dispatchEvent("pointerdown", obj, event)) { + dragged = true; + const has = this._dragging.some((x) => { + return x.value === obj && x.id === id; + }); + if (!has) { + this._dragging.push(info); + } + } + return true; + }); + } + } + _dispatchGlobalMousemove(originalEvent, originalTarget, native) { + const event = this.getEvent(originalEvent); + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + event.native = native; + if (target) { + this._hovering.forEach((obj) => { + if (!obj.contains(target)) { + this._hovering.delete(obj); + if (obj.cursorOverStyle) { + setStyle(document.body, "cursor", obj._replacedCursorStyle); + } + this._dispatchEvent("pointerout", obj, event); + } + }); + if (event.native) { + eachTargets(target, (obj) => { + if (!this._hovering.has(obj)) { + this._hovering.add(obj); + if (obj.cursorOverStyle) { + obj._replacedCursorStyle = getStyle(document.body, "cursor"); + setStyle(document.body, "cursor", obj.cursorOverStyle); + } + this._dispatchEvent("pointerover", obj, event); + } + return true; + }); + } + } else { + this._hovering.forEach((obj) => { + if (obj.cursorOverStyle) { + setStyle(document.body, "cursor", obj._replacedCursorStyle); + } + this._dispatchEvent("pointerout", obj, event); + }); + this._hovering.clear(); + } + this._dispatchEventAll("globalpointermove", event); + } + removeHovering(graphics) { + this._hovering.delete(graphics); + if (graphics.cursorOverStyle) { + setStyle(document.body, "cursor", graphics._replacedCursorStyle); + } + } + _dispatchGlobalMouseup(originalEvent, native) { + const event = this.getEvent(originalEvent); + event.native = native; + this._dispatchEventAll("globalpointerup", event); + } + _dispatchDragMove(originalEvent) { + if (this._dragging.length !== 0) { + const event = this.getEvent(originalEvent); + const id = event.id; + this._dragging.forEach((obj) => { + if (obj.id === id) { + this._dispatchEvent("pointermove", obj.value, event); + } + }); + } + } + _dispatchDragEnd(originalEvent, originalTarget) { + const button = originalEvent.button; + let clickevent; + if (button == 0 || button === void 0) { + clickevent = "click"; + } else if (button == 2) { + clickevent = "rightclick"; + } else if (button == 1) { + clickevent = "middleclick"; + } else { + return; + } + const event = this.getEvent(originalEvent); + const id = event.id; + if (this._mousedown.length !== 0) { + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + if (target) { + this._mousedown.forEach((obj) => { + if (obj.id === id && obj.value.contains(target)) { + this._dispatchEvent(clickevent, obj.value, event); + } + }); + } + this._mousedown.length = 0; + } + if (this._dragging.length !== 0) { + this._dragging.forEach((obj) => { + if (obj.id === id) { + this._dispatchEvent("pointerup", obj.value, event); + } + }); + this._dragging.length = 0; + } + } + _dispatchDoubleClick(originalEvent, originalTarget) { + const event = this.getEvent(originalEvent); + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + if (target) { + eachTargets(target, (obj) => { + if (this._dispatchEvent("dblclick", obj, event)) { + return false; + } else { + return true; + } + }); + } + } + _dispatchWheel(originalEvent, originalTarget) { + const event = this.getEvent(originalEvent); + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + if (target) { + eachTargets(target, (obj) => { + if (this._dispatchEvent("wheel", obj, event)) { + return false; + } else { + return true; + } + }); + } + } + _makeSharedEvent(key, f) { + if (this._listeners[key] === void 0) { + const listener = f(); + this._listeners[key] = new CounterDisposer(() => { + delete this._listeners[key]; + listener.dispose(); + }); + } + return this._listeners[key].increment(); + } + _onPointerEvent(name, f) { + let native = false; + let timer = null; + function clear() { + timer = null; + native = false; + } + return new MultiDisposer([ + new Disposer(() => { + if (timer !== null) { + clearTimeout(timer); + } + clear(); + }), + addEventListener(this.view, getRendererEvent(name), (_) => { + native = true; + if (timer !== null) { + clearTimeout(timer); + } + timer = window.setTimeout(clear, 0); + }), + onPointerEvent(window, name, (ev, target) => { + if (timer !== null) { + clearTimeout(timer); + timer = null; + } + f(ev, target, native); + native = false; + }) + ]); + } + // This ensures that only a single DOM event is added (e.g. only a single mousemove event listener) + _initEvent(key) { + switch (key) { + case "globalpointermove": + case "pointerover": + case "pointerout": + return this._makeSharedEvent("pointermove", () => { + const listener = (events, target, native) => { + this._lastPointerMoveEvent = { events, target, native }; + each(events, (event) => { + this._dispatchGlobalMousemove(event, target, native); + }); + }; + return new MultiDisposer([ + this._onPointerEvent("pointerdown", listener), + this._onPointerEvent("pointermove", listener) + ]); + }); + case "globalpointerup": + return this._makeSharedEvent("pointerup", () => { + const mouseup = this._onPointerEvent("pointerup", (events, target, native) => { + each(events, (event) => { + this._dispatchGlobalMouseup(event, native); + }); + this._lastPointerMoveEvent = { events, target, native }; + }); + const pointercancel = this._onPointerEvent("pointercancel", (events, target, native) => { + each(events, (event) => { + this._dispatchGlobalMouseup(event, native); + }); + this._lastPointerMoveEvent = { events, target, native }; + }); + return new Disposer(() => { + mouseup.dispose(); + pointercancel.dispose(); + }); + }); + case "click": + case "rightclick": + case "middleclick": + case "pointerdown": + /* + return this._makeSharedEvent("pointerdown", () => { + return this._onPointerEvent("pointerdown", (event, target, native) => { + this._lastPointerMoveEvent = { event, target, native }; + this._dispatchMousedown(event) + }); + }); + */ + case "pointermove": + case "pointerup": + return this._makeSharedEvent("pointerdown", () => { + const mousedown = this._onPointerEvent("pointerdown", (events, target) => { + each(events, (ev) => { + this._dispatchMousedown(ev, target); + }); + }); + const mousemove = this._onPointerEvent("pointermove", (ev) => { + each(ev, (ev2) => { + this._dispatchDragMove(ev2); + }); + }); + const mouseup = this._onPointerEvent("pointerup", (ev, target) => { + each(ev, (ev2) => { + this._dispatchDragEnd(ev2, target); + }); + }); + const pointercancel = this._onPointerEvent("pointercancel", (ev, target) => { + each(ev, (ev2) => { + this._dispatchDragEnd(ev2, target); + }); + }); + return new Disposer(() => { + mousedown.dispose(); + mousemove.dispose(); + mouseup.dispose(); + pointercancel.dispose(); + }); + }); + case "dblclick": + return this._makeSharedEvent("dblclick", () => { + return this._onPointerEvent("dblclick", (ev, target) => { + each(ev, (ev2) => { + this._dispatchDoubleClick(ev2, target); + }); + }); + }); + case "wheel": + return this._makeSharedEvent("wheel", () => { + return addEventListener(this.view, getRendererEvent("wheel"), (event) => { + this._dispatchWheel(event, getEventTarget(event)); + }, { passive: false }); + }); + } + } + _addEvent(object, key, callback, context) { + let events = this._events[key]; + if (events === void 0) { + events = this._events[key] = { + disposer: this._initEvent(key), + callbacks: [], + dispatching: false, + cleanup: false + }; + } + const listener = { object, context, callback, disposed: false }; + events.callbacks.push(listener); + return new Disposer(() => { + listener.disposed = true; + if (events.dispatching) { + events.cleanup = true; + } else { + removeFirst(events.callbacks, listener); + if (events.callbacks.length === 0) { + events.disposer.dispose(); + delete this._events[key]; + } + } + }); + } + getCanvas(root2, options) { + this.render(root2); + if (!options) { + options = {}; + } + let scale = this.resolution; + let canvasWidth = Math.floor(this._calculatedWidth * this.resolution); + let canvasHeight = Math.floor(this._calculatedHeight * this.resolution); + if (options.minWidth && options.minWidth > canvasWidth) { + let minScale = options.minWidth / canvasWidth; + if (minScale > scale) { + scale = minScale * this.resolution; + } + } + if (options.minHeight && options.minHeight > canvasHeight) { + let minScale = options.minHeight / canvasHeight; + if (minScale > scale) { + scale = minScale * this.resolution; + } + } + if (options.maxWidth && options.maxWidth < canvasWidth) { + let maxScale = options.maxWidth / canvasWidth; + if (maxScale < scale) { + scale = maxScale * this.resolution; + } + } + if (options.maxHeight && options.maxHeight > canvasHeight) { + let maxScale = options.maxHeight / canvasHeight; + if (maxScale < scale) { + scale = maxScale * this.resolution; + } + } + if (options.maintainPixelRatio) { + scale /= this.resolution; + } + const canvases = []; + let forceRender = false; + const canvas = document.createElement("canvas"); + if (scale != this.resolution) { + forceRender = true; + canvasWidth = canvasWidth * scale / this.resolution; + canvasHeight = canvasHeight * scale / this.resolution; + } + canvas.width = canvasWidth; + canvas.height = canvasHeight; + canvas.style.position = "fixed"; + canvas.style.top = "-10000px"; + this.view.appendChild(canvas); + canvases.push(canvas); + const context = canvas.getContext("2d"); + let width = 0; + let height = 0; + let needRerender = false; + each(this.layers, (layer) => { + if (layer && layer.visible) { + if (layer.tainted || forceRender) { + needRerender = true; + layer.exportableView = layer.view; + layer.exportableContext = layer.context; + layer.view = document.createElement("canvas"); + layer.view.style.position = "fixed"; + layer.view.style.top = "-10000px"; + this.view.appendChild(layer.view); + canvases.push(layer.view); + let extraX = 0; + let extraY = 0; + if (layer.margin) { + extraX += layer.margin.left || 0 + layer.margin.right || 0; + extraY += layer.margin.top || 0 + layer.margin.bottom || 0; + } + layer.view.width = canvasWidth + extraX; + layer.view.height = canvasHeight + extraY; + layer.context = layer.view.getContext("2d"); + layer.dirty = true; + layer.scale = scale; + } + } + }); + if (needRerender) { + this._omitTainted = true; + this.render(root2); + this._omitTainted = false; + } + each(this.layers, (layer) => { + if (layer && layer.visible) { + let x = 0; + let y = 0; + if (layer.margin) { + x = -(layer.margin.left || 0) * this.resolution; + y = -(layer.margin.top || 0) * this.resolution; + } + context.drawImage(layer.view, x, y); + if (layer.exportableView) { + layer.view = layer.exportableView; + layer.exportableView = void 0; + } + if (layer.exportableContext) { + layer.context = layer.exportableContext; + layer.exportableContext = void 0; + } + if (width < layer.view.clientWidth) { + width = layer.view.clientWidth; + } + if (height < layer.view.clientHeight) { + height = layer.view.clientHeight; + } + layer.scale = void 0; + } + }); + canvas.style.width = width + "px"; + canvas.style.height = height + "px"; + each(canvases, (canvas2) => { + canvas2.style.position = ""; + canvas2.style.top = ""; + this.view.removeChild(canvas2); + }); + return canvas; + } + }; + var GhostLayer = class { + constructor() { + this.margin = { + left: 0, + right: 0, + top: 0, + bottom: 0 + }; + this._resolution = 1; + this._width = 0; + this._height = 0; + this.view = document.createElement("canvas"); + this.context = this.view.getContext("2d", { alpha: false, willReadFrequently: true }); + this.context.imageSmoothingEnabled = false; + this.view.style.position = "absolute"; + this.view.style.top = "0px"; + this.view.style.left = "0px"; + } + resize(canvasWidth, canvasHeight, domWidth, domHeight, resolution) { + this._resolution = resolution; + canvasWidth += this.margin.left + this.margin.right; + canvasHeight += this.margin.top + this.margin.bottom; + domWidth += this.margin.left + this.margin.right; + domHeight += this.margin.top + this.margin.bottom; + this.view.style.left = -this.margin.left + "px"; + this.view.style.top = -this.margin.top + "px"; + this._width = Math.floor(canvasWidth * resolution); + this._height = Math.floor(canvasHeight * resolution); + this.view.width = this._width; + this.view.style.width = domWidth + "px"; + this.view.height = this._height; + this.view.style.height = domHeight + "px"; + } + getImageData(point, bbox) { + return this.context.getImageData( + // TODO should this round ? + Math.round((point.x - bbox.left) / bbox.width * this._width), + Math.round((point.y - bbox.top) / bbox.height * this._height), + 1, + 1 + ); + } + getImageArray(point) { + if (!this.imageArray) { + this.imageArray = this.context.getImageData(0, 0, this._width, this._height).data; + } + const data = this.imageArray; + const x = Math.round(point.x * this._resolution); + const y = Math.round(point.y * this._resolution); + const i = (y * this._width + x) * 4; + return [data[i], data[i + 1], data[i + 2], data[i + 3]]; + } + setMargin(layers) { + this.margin.left = 0; + this.margin.right = 0; + this.margin.top = 0; + this.margin.bottom = 0; + each(layers, (layer) => { + if (layer.margin) { + this.margin.left = Math.max(this.margin.left, layer.margin.left); + this.margin.right = Math.max(this.margin.right, layer.margin.right); + this.margin.top = Math.max(this.margin.top, layer.margin.top); + this.margin.bottom = Math.max(this.margin.bottom, layer.margin.bottom); + } + }); + } + clear() { + this.context.save(); + this.context.fillStyle = "#000"; + this.context.fillRect(0, 0, this._width, this._height); + } + }; + var CanvasLayer = class { + constructor(view, context) { + this.tainted = true; + this.order = 0; + this.visible = true; + this.dirty = true; + this._width = 0; + this._height = 0; + this.view = view; + this.context = context; + } + resize(canvasWidth, canvasHeight, domWidth, domHeight, resolution) { + if (this.width != null) { + canvasWidth = this.width; + domWidth = this.width; + } + if (this.height != null) { + canvasHeight = this.height; + domHeight = this.height; + } + if (this.margin) { + canvasWidth += this.margin.left + this.margin.right; + canvasHeight += this.margin.top + this.margin.bottom; + domWidth += this.margin.left + this.margin.right; + domHeight += this.margin.top + this.margin.bottom; + this.view.style.left = -this.margin.left + "px"; + this.view.style.top = -this.margin.top + "px"; + } else { + this.view.style.left = "0px"; + this.view.style.top = "0px"; + } + this._width = Math.floor(canvasWidth * resolution); + this._height = Math.floor(canvasHeight * resolution); + this.view.width = this._width; + this.view.style.width = domWidth + "px"; + this.view.height = this._height; + this.view.style.height = domHeight + "px"; + } + clear() { + this.context.save(); + this.context.clearRect(0, 0, this._width, this._height); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/Root.js + function rAF(fps, callback) { + if (fps == null) { + requestAnimationFrame(callback); + } else { + setTimeout(() => { + requestAnimationFrame(callback); + }, 1e3 / fps); + } + } + var Root = class _Root { + constructor(id, settings = {}, isReal) { + this._isDirty = false; + this._isDirtyParents = false; + this._isDirtyAnimation = false; + this._dirty = {}; + this._dirtyParents = {}; + this._dirtyBounds = {}; + this._dirtyPositions = {}; + this._ticker = null; + this._tickers = []; + this._updateTick = true; + this.skipRenderFrame = false; + this.events = new EventDispatcher(); + this.animationTime = null; + this._animations = []; + this.language = Language.new(this, {}); + this.locale = en_default; + this.utc = false; + this.numberFormatter = NumberFormatter.new(this, {}); + this.dateFormatter = DateFormatter.new(this, {}); + this.durationFormatter = DurationFormatter.new(this, {}); + this.tabindex = 0; + this._tabindexes = []; + this._a11yD = false; + this._focusElementDirty = false; + this._skipNextGroupJump = true; + this.verticalLayout = VerticalLayout.new(this, {}); + this.horizontalLayout = HorizontalLayout.new(this, {}); + this.gridLayout = GridLayout.new(this, {}); + this._paused = false; + this.autoResize = true; + this._fontHash = ""; + this._isDisposed = false; + this._disposers = []; + this._tooltips = []; + this._htmlEnabledContainers = []; + this.entitiesById = {}; + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + this._settings = settings; + if (settings.accessible == false) { + this._a11yD = true; + } + if (settings.useSafeResolution == null) { + settings.useSafeResolution = true; + } + let resolution; + if (settings.useSafeResolution) { + resolution = getSafeResolution(); + } + this._renderer = new CanvasRenderer(resolution); + let dom; + if (id instanceof HTMLElement) { + dom = id; + } else { + dom = document.getElementById(id); + } + each(registry.rootElements, (root2) => { + if (root2.dom === dom) { + if (registry.autoDispose) { + root2.dispose(); + } else { + throw new Error("You cannot have multiple Roots on the same DOM node"); + } + } + }); + this.interfaceColors = InterfaceColors.new(this, {}); + if (dom === null) { + throw new Error("Could not find HTML element with id `" + id + "`"); + } + this.dom = dom; + let inner = document.createElement("div"); + inner.style.position = "relative"; + inner.style.width = "100%"; + inner.style.height = "100%"; + dom.appendChild(inner); + const tooltipContainerBounds = settings.tooltipContainerBounds; + if (tooltipContainerBounds) { + this._tooltipContainerSettings = tooltipContainerBounds; + } + this._inner = inner; + this._updateComputedStyles(); + registry.rootElements.push(this); + } + static new(id, settings) { + const root2 = new _Root(id, settings, true); + root2._init(); + return root2; + } + moveDOM(id) { + let dom; + if (id instanceof HTMLElement) { + dom = id; + } else { + dom = document.getElementById(id); + } + if (dom) { + while (this.dom.childNodes.length > 0) { + dom.appendChild(this.dom.childNodes[0]); + } + this.dom = dom; + this._initResizeSensor(); + this.resize(); + } + } + _handleLogo() { + if (this._logo) { + const w = this.dom.offsetWidth; + const h = this.dom.offsetHeight; + if (w <= 150 || h <= 60) { + this._logo.hide(); + } else { + this._logo.show(); + } + } + } + _showBranding() { + if (!this._logo) { + const logo = this.tooltipContainer.children.push(Container.new(this, { + interactive: true, + interactiveChildren: false, + position: "absolute", + setStateOnChildren: true, + paddingTop: 9, + paddingRight: 9, + paddingBottom: 9, + paddingLeft: 9, + scale: 0.6, + y: percent(100), + centerY: p100, + tooltipY: 10, + tooltipText: "Created using amCharts 5", + tooltipX: p100, + cursorOverStyle: "pointer", + background: Rectangle.new(this, { + fill: color(4671320), + fillOpacity: 0, + tooltipY: 5 + }) + })); + logo.set("tooltip", this.systemTooltip); + logo.events.on("click", () => { + window.open("https://www.amcharts.com/", "_blank"); + }); + logo.states.create("hover", {}); + const m = logo.children.push(Graphics.new(this, { + stroke: color(13421772), + strokeWidth: 3, + svgPath: "M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6", + dx: -50, + strokeOpacity: 0 + })); + m.states.create("hover", { stroke: color(3976191) }); + const a = logo.children.push(Graphics.new(this, { + stroke: color(8947848), + strokeWidth: 3, + svgPath: "M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0", + dx: 50, + strokeOpacity: 0 + })); + const easing = out(cubic); + const duration = 1500; + logo.setTimeout(() => { + a.animate({ + key: "strokeOpacity", + to: 1, + duration, + easing + }); + a.animate({ + key: "dx", + to: 0, + duration, + easing + }); + m.animate({ + key: "dx", + to: 0, + duration, + easing + }); + m.animate({ + key: "strokeOpacity", + to: 1, + duration, + easing + }); + }, 3e3); + a.states.create("hover", { stroke: color(4671320) }); + this._logo = logo; + this._handleLogo(); + } + } + _getRealSize() { + return this.dom.getBoundingClientRect(); + } + _getCalculatedSize(rect) { + if (this._settings.calculateSize) { + return this._settings.calculateSize(rect); + } else { + return { + width: rect.width, + height: rect.height + }; + } + } + _init() { + const settings = this._settings; + if (settings.accessible !== false) { + if (settings.focusable) { + this._inner.setAttribute("focusable", "true"); + this._inner.setAttribute("tabindex", this.tabindex + ""); + } + if (settings.ariaLabel) { + this._inner.setAttribute("aria-label", settings.ariaLabel); + } + if (settings.role) { + this._inner.setAttribute("role", settings.role); + } + } + const renderer = this._renderer; + const rect = this._getRealSize(); + const size = this._getCalculatedSize(rect); + const width = Math.floor(size.width); + const height = Math.floor(size.height); + const realWidth = Math.floor(rect.width); + const realHeight = Math.floor(rect.height); + const rootContainer = Container.new(this, { + visible: true, + width, + height + }); + this._rootContainer = rootContainer; + this._rootContainer._defaultThemes.push(DefaultTheme.new(this)); + const container = rootContainer.children.push(Container.new(this, { visible: true, width: p100, height: p100 })); + this.container = container; + renderer.resize(realWidth, realHeight, width, height); + this._inner.appendChild(renderer.view); + this._initResizeSensor(); + const htmlElementContainer = document.createElement("div"); + this._htmlElementContainer = htmlElementContainer; + htmlElementContainer.className = "am5-html-container"; + htmlElementContainer.style.position = "absolute"; + htmlElementContainer.style.pointerEvents = "none"; + if (!this._tooltipContainerSettings) { + htmlElementContainer.style.overflow = "hidden"; + } + this._inner.appendChild(htmlElementContainer); + if (this._a11yD !== true) { + const readerAlertElement = document.createElement("div"); + readerAlertElement.className = "am5-reader-container"; + readerAlertElement.setAttribute("role", "alert"); + readerAlertElement.style.position = "absolute"; + readerAlertElement.style.width = "1px"; + readerAlertElement.style.height = "1px"; + readerAlertElement.style.overflow = "hidden"; + readerAlertElement.style.clip = "rect(1px, 1px, 1px, 1px)"; + this._readerAlertElement = readerAlertElement; + this._inner.appendChild(this._readerAlertElement); + const focusElementContainer = document.createElement("div"); + focusElementContainer.className = "am5-focus-container"; + focusElementContainer.style.position = "absolute"; + focusElementContainer.style.pointerEvents = "none"; + focusElementContainer.style.top = "0px"; + focusElementContainer.style.left = "0px"; + focusElementContainer.style.overflow = "hidden"; + focusElementContainer.style.width = width + "px"; + focusElementContainer.style.height = height + "px"; + focusElementContainer.setAttribute("role", "graphics-document"); + setInteractive(focusElementContainer, false); + this._focusElementContainer = focusElementContainer; + this._inner.appendChild(this._focusElementContainer); + const tooltipElementContainer = document.createElement("div"); + this._tooltipElementContainer = tooltipElementContainer; + tooltipElementContainer.className = "am5-tooltip-container"; + this._inner.appendChild(tooltipElementContainer); + if (supports("keyboardevents")) { + this._disposers.push(addEventListener(window, "keydown", (ev) => { + const eventKey = getEventKey(ev); + if (eventKey == "Shift") { + this._isShift = true; + } else if (eventKey == "Tab") { + this._isShift = ev.shiftKey; + } + })); + this._disposers.push(addEventListener(window, "keyup", (ev) => { + const eventKey = getEventKey(ev); + if (eventKey == "Shift") { + this._isShift = false; + } + })); + this._disposers.push(addEventListener(focusElementContainer, "click", () => { + const focusedSprite = this._focusedSprite; + if (focusedSprite) { + const announceText = focusedSprite.get("clickAnnounceText", ""); + if (announceText !== "") { + this.readerAlert(announceText); + } + const downEvent = renderer.getEvent(new MouseEvent("click")); + focusedSprite.events.dispatch("click", { + type: "click", + originalEvent: downEvent.event, + point: downEvent.point, + simulated: true, + target: focusedSprite + }); + } + })); + this._disposers.push(addEventListener(focusElementContainer, "keydown", (ev) => { + const focusedSprite = this._focusedSprite; + if (focusedSprite) { + if (ev.key == "Escape") { + blur(); + this._focusedSprite = void 0; + } + let dragOffsetX = 0; + let dragOffsetY = 0; + const eventKey = getEventKey(ev); + switch (eventKey) { + case "Enter": + case " ": + const announceText = focusedSprite.get("clickAnnounceText", ""); + if (announceText !== "") { + this.readerAlert(announceText); + } + if (eventKey == " " && focusedSprite.get("role") != "checkbox") { + return; + } + ev.preventDefault(); + const downEvent = renderer.getEvent(new MouseEvent("mouse")); + focusedSprite.events.dispatch("click", { + type: "click", + originalEvent: downEvent.event, + point: downEvent.point, + simulated: true, + target: focusedSprite + }); + return; + case "ArrowLeft": + dragOffsetX = -6; + break; + case "ArrowRight": + dragOffsetX = 6; + break; + case "ArrowUp": + dragOffsetY = -6; + break; + case "ArrowDown": + dragOffsetY = 6; + break; + default: + return; + } + if (dragOffsetX != 0 || dragOffsetY != 0) { + ev.preventDefault(); + if (!focusedSprite.isDragging()) { + this._keyboardDragPoint = { + x: 0, + y: 0 + }; + const downEvent = renderer.getEvent(new MouseEvent("mousedown", { + clientX: 0, + clientY: 0 + })); + downEvent.point = { + x: 0, + y: 0 + }; + if (focusedSprite.events.isEnabled("pointerdown")) { + focusedSprite.events.dispatch("pointerdown", { + type: "pointerdown", + originalEvent: downEvent.event, + point: downEvent.point, + simulated: true, + target: focusedSprite + }); + } + } else { + } + const dragPoint = this._keyboardDragPoint; + dragPoint.x += dragOffsetX; + dragPoint.y += dragOffsetY; + const moveEvent = renderer.getEvent(new MouseEvent("mousemove", { + clientX: dragPoint.x, + clientY: dragPoint.y + }), false); + if (focusedSprite.events.isEnabled("globalpointermove")) { + focusedSprite.events.dispatch("globalpointermove", { + type: "globalpointermove", + originalEvent: moveEvent.event, + point: moveEvent.point, + simulated: true, + target: focusedSprite + }); + } + } + } + })); + this._disposers.push(addEventListener(focusElementContainer, "keyup", (ev) => { + if (this._focusedSprite) { + const focusedSprite = this._focusedSprite; + const eventKey = getEventKey(ev); + switch (eventKey) { + case "ArrowLeft": + case "ArrowRight": + case "ArrowUp": + case "ArrowDown": + if (focusedSprite.isDragging()) { + const dragPoint = this._keyboardDragPoint; + const upEvent = renderer.getEvent(new MouseEvent("mouseup", { + clientX: dragPoint.x, + clientY: dragPoint.y + })); + if (focusedSprite.events.isEnabled("globalpointerup")) { + focusedSprite.events.dispatch("globalpointerup", { + type: "globalpointerup", + originalEvent: upEvent.event, + point: upEvent.point, + simulated: true, + target: focusedSprite + }); + } + this._keyboardDragPoint = void 0; + return; + } else if (focusedSprite.get("focusableGroup")) { + const group2 = focusedSprite.get("focusableGroup"); + const items = this._tabindexes.filter((item) => { + return item.get("focusableGroup") == group2 && item.getPrivate("focusable") !== false && item.isVisibleDeep() ? true : false; + }); + let index = items.indexOf(focusedSprite); + const lastIndex = items.length - 1; + index += eventKey == "ArrowRight" || eventKey == "ArrowDown" ? 1 : -1; + if (index < 0) { + index = lastIndex; + } else if (index > lastIndex) { + index = 0; + } + focus(items[index].getPrivate("focusElement").dom); + } + break; + case "Tab": + const group = focusedSprite.get("focusableGroup"); + if (group && this._isShift) { + if (!this._skipNextGroupJump) { + this._focusNext(focusedSprite.getPrivate("focusElement").dom, -1, group); + this._skipNextGroupJump = true; + } + return; + } + break; + } + } + })); + } + } + this._startTicker(); + this.setThemes([]); + this._addTooltip(); + if (!this._hasLicense()) { + this._showBranding(); + } + } + /** + * Returns an instance of a universal [[Tooltip]] instance. + * @since 5.14.0 + */ + get systemTooltip() { + if (!this._systemTooltip) { + const tooltip = Tooltip.new(this, { + themeTags: ["system"] + }); + this._systemTooltip = tooltip; + } + return this._systemTooltip; + } + _initResizeSensor() { + if (this._resizeSensorDisposer) { + this._resizeSensorDisposer.dispose(); + } + this._resizeSensorDisposer = new ResizeSensor(this.dom, () => { + if (this.autoResize) { + this.resize(); + } + }); + this._disposers.push(this._resizeSensorDisposer); + } + /** + * If automatic resizing of char is disabled (`root.autoResize = false`), it + * can be resized manually by calling this method. + */ + resize() { + const rect = this._getRealSize(); + const size = this._getCalculatedSize(rect); + const w = Math.floor(size.width); + const h = Math.floor(size.height); + if (w > 0 && h > 0) { + const realWidth = Math.floor(rect.width); + const realHeight = Math.floor(rect.height); + const htmlElementContainer = this._htmlElementContainer; + htmlElementContainer.style.width = w + "px"; + htmlElementContainer.style.height = h + "px"; + if (this._a11yD !== true) { + const focusElementContainer = this._focusElementContainer; + focusElementContainer.style.width = w + "px"; + focusElementContainer.style.height = h + "px"; + } + this._renderer.resize(realWidth, realHeight, w, h); + const rootContainer = this._rootContainer; + rootContainer.setPrivate("width", w); + rootContainer.setPrivate("height", h); + this._render(); + this._handleLogo(); + } + } + _render() { + if (this.skipRenderFrame) { + this.skipRenderFrame = false; + return; + } + this._renderer.render(this._rootContainer._display); + if (this._focusElementDirty) { + this._updateCurrentFocus(); + this._focusElementDirty = false; + } + } + _runTickers(currentTime) { + each(this._tickers, (f) => { + f(currentTime); + }); + } + _runAnimations(currentTime) { + let running = 0; + keepIf(this._animations, (animation) => { + const state = animation._runAnimation(currentTime); + if (state === AnimationState.Stopped) { + return false; + } else if (state === AnimationState.Playing) { + ++running; + return true; + } else { + return true; + } + }); + this._isDirtyAnimation = false; + return running === 0; + } + _runDirties() { + let allParents = {}; + while (this._isDirtyParents) { + this._isDirtyParents = false; + entries(this._dirtyParents).forEach(([key, parent]) => { + delete this._dirtyParents[key]; + if (!parent.isDisposed()) { + allParents[parent.uid] = parent; + parent._prepareChildren(); + } + }); + } + entries(allParents).forEach(([_key, parent]) => { + parent._updateChildren(); + }); + const objects = []; + entries(this._dirty).forEach(([key, entity]) => { + if (entity.isDisposed()) { + delete this._dirty[key]; + } else { + objects.push(entity); + entity._beforeChanged(); + } + }); + objects.forEach((entity) => { + entity._changed(); + delete this._dirty[entity.uid]; + entity._clearDirty(); + }); + this._isDirty = false; + const depths = {}; + const bounds = []; + entries(this._dirtyBounds).forEach(([key, entity]) => { + delete this._dirtyBounds[key]; + if (!entity.isDisposed()) { + depths[entity.uid] = entity.depth(); + bounds.push(entity); + } + }); + this._positionHTMLElements(); + bounds.sort((x, y) => { + return compare(depths[y.uid], depths[x.uid]); + }); + bounds.forEach((entity) => { + entity._updateBounds(); + }); + const dirtyPositions = this._dirtyPositions; + entries(dirtyPositions).forEach(([key, sprite]) => { + delete dirtyPositions[key]; + if (!sprite.isDisposed()) { + sprite._updatePosition(); + } + }); + objects.forEach((entity) => { + entity._afterChanged(); + }); + entries(allParents).forEach(([_key, parent]) => { + parent._childrenPrep = false; + parent._childrenUpdt = false; + }); + } + _renderFrame(currentTime) { + if (this._updateTick) { + if (this.events.isEnabled("framestarted")) { + this.events.dispatch("framestarted", { + type: "framestarted", + target: this, + timestamp: currentTime + }); + } + this._checkComputedStyles(); + this._runTickers(currentTime); + const animationDone = this._runAnimations(currentTime); + this._runDirties(); + this._render(); + this._renderer.resetImageArray(); + this._positionHTMLElements(); + if (this.events.isEnabled("frameended")) { + this.events.dispatch("frameended", { + type: "frameended", + target: this, + timestamp: currentTime + }); + } + return this._tickers.length === 0 && animationDone && !this._isDirtyAnimation && !this._isDirty; + } else { + return true; + } + } + _runTicker(currentTime, now) { + if (!this.isDisposed()) { + this.animationTime = currentTime; + const done = this._renderFrame(currentTime); + if (done) { + this._ticker = null; + this.animationTime = null; + } else { + if (!this._paused) { + if (now) { + this._ticker; + } else { + rAF(this.fps, this._ticker); + } + } + } + } + } + _runTickerNow(timeout = 1e4) { + if (!this.isDisposed()) { + const endTime = performance.now() + timeout; + for (; ; ) { + const currentTime = performance.now(); + if (currentTime >= endTime) { + this.animationTime = null; + break; + } + this.animationTime = currentTime; + const done = this._renderFrame(currentTime); + if (done) { + this.animationTime = null; + break; + } + } + } + } + _startTicker() { + if (this._ticker === null) { + this.animationTime = null; + this._ticker = (currentTime) => { + this._runTicker(currentTime); + }; + rAF(this.fps, this._ticker); + } + } + /** + * Returns whether the root is updating or not. + */ + get updateTick() { + return this._updateTick; + } + /** + * Enables or disables the root updating. + */ + set updateTick(value) { + this._updateTick = value; + if (value) { + this._startTicker(); + } + } + _addDirtyEntity(entity) { + this._isDirty = true; + if (this._dirty[entity.uid] === void 0) { + this._dirty[entity.uid] = entity; + } + this._startTicker(); + } + _addDirtyParent(parent) { + this._isDirty = true; + this._isDirtyParents = true; + if (this._dirtyParents[parent.uid] === void 0) { + this._dirtyParents[parent.uid] = parent; + } + this._startTicker(); + } + _addDirtyBounds(entity) { + this._isDirty = true; + if (this._dirtyBounds[entity.uid] === void 0) { + this._dirtyBounds[entity.uid] = entity; + } + this._startTicker(); + } + _addDirtyPosition(sprite) { + this._isDirty = true; + if (this._dirtyPositions[sprite.uid] === void 0) { + this._dirtyPositions[sprite.uid] = sprite; + } + this._startTicker(); + } + _addAnimation(animation) { + this._isDirtyAnimation = true; + if (this._animations.indexOf(animation) === -1) { + this._animations.push(animation); + } + this._startTicker(); + } + _markDirty() { + this._isDirty = true; + } + _markDirtyRedraw() { + this.events.once("frameended", () => { + this._isDirty = true; + this._startTicker(); + }); + } + eachFrame(f) { + this._tickers.push(f); + this._startTicker(); + return new Disposer(() => { + removeFirst(this._tickers, f); + }); + } + markDirtyGlobal(container) { + if (!container) { + container = this.container; + } + container.walkChildren((child) => { + if (child instanceof Container) { + this.markDirtyGlobal(child); + } + child.markDirty(); + child.markDirtyBounds(); + }); + } + /** + * Returns width of the target container, in pixels. + * + * @return Width + */ + width() { + return Math.floor(this._getCalculatedSize(this._getRealSize()).width); + } + /** + * Returns height of the target container, in pixels. + * + * @return Height + */ + height() { + return Math.floor(this._getCalculatedSize(this._getRealSize()).height); + } + /** + * Disposes root and all the content in it. + */ + dispose() { + if (!this._isDisposed) { + this._isDisposed = true; + this._rootContainer.dispose(); + this._renderer.dispose(); + this.horizontalLayout.dispose(); + this.verticalLayout.dispose(); + this.interfaceColors.dispose(); + each(this._disposers, (x) => { + x.dispose(); + }); + if (this._inner) { + removeElement(this._inner); + } + remove(registry.rootElements, this); + } + } + /** + * Returns `true` if root element is disposed. + * + * @return Disposed? + */ + isDisposed() { + return this._isDisposed; + } + /** + * Triggers screen reader read out a message. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/accessibility/} for more info + * @param text Alert text + */ + readerAlert(text) { + if (this._a11yD !== true) { + const element = this._readerAlertElement; + text = stripTags(text); + if (element.innerHTML == text) { + element.innerHTML = ""; + } + element.innerHTML = text; + } + } + /** + * Sets themes to be used for the chart. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/themes/} for more info + * @param themes A list of themes + */ + setThemes(themes) { + this._rootContainer.set("themes", themes); + const tooltipContainer = this.tooltipContainer; + if (tooltipContainer) { + tooltipContainer._applyThemes(); + } + const interfaceColors = this.interfaceColors; + if (interfaceColors) { + interfaceColors._applyThemes(); + } + } + _addTooltip() { + if (!this.tooltipContainer) { + const tooltipContainerSettings = this._tooltipContainerSettings; + const tooltipContainer = this._rootContainer.children.push(Container.new(this, { + position: "absolute", + isMeasured: false, + width: p100, + height: p100, + layer: tooltipContainerSettings ? 35 : 30, + layerMargin: tooltipContainerSettings ? tooltipContainerSettings : void 0 + })); + this.tooltipContainer = tooltipContainer; + const tooltip = Tooltip.new(this, {}); + this.container.set("tooltip", tooltip); + tooltip.hide(0); + this._tooltip = tooltip; + } + } + /** + * Accesibility + */ + _registerTabindexOrder(target) { + if (this._a11yD == true) { + return; + } + if (target.get("focusable")) { + pushOne(this._tabindexes, target); + } else { + remove(this._tabindexes, target); + } + this._invalidateTabindexes(); + } + _unregisterTabindexOrder(target) { + if (this._a11yD == true) { + return; + } + remove(this._tabindexes, target); + this._invalidateTabindexes(); + } + _invalidateTabindexes() { + if (this._a11yD == true) { + return; + } + this._tabindexes.sort((a, b) => { + const aindex = a.get("tabindexOrder", 0); + const bindex = b.get("tabindexOrder", 0); + if (aindex == bindex) { + return 0; + } else if (aindex > bindex) { + return 1; + } else { + return -1; + } + }); + const groups = []; + each(this._tabindexes, (item, index) => { + if (!item.getPrivate("focusElement")) { + this._makeFocusElement(index, item); + } else { + this._moveFocusElement(index, item); + } + const group = item.get("focusableGroup"); + if (group && item.getPrivate("focusable") !== false) { + if (groups.indexOf(group) !== -1) { + item.getPrivate("focusElement").dom.setAttribute("tabindex", "-1"); + } else { + groups.push(group); + } + } + }); + } + _updateCurrentFocus() { + if (this._a11yD == true) { + return; + } + if (this._focusedSprite) { + this._decorateFocusElement(this._focusedSprite); + this._positionFocusElement(this._focusedSprite); + } + } + _decorateFocusElement(target, focusElement) { + if (this._a11yD == true) { + return; + } + if (!focusElement) { + focusElement = target.getPrivate("focusElement").dom; + } + if (!focusElement) { + return; + } + const role = target.get("role"); + if (role) { + focusElement.setAttribute("role", role); + } else { + focusElement.removeAttribute("role"); + } + const ariaLabel = target.get("ariaLabel"); + if (ariaLabel) { + const label = populateString(target, ariaLabel); + focusElement.setAttribute("aria-label", label); + } else { + focusElement.removeAttribute("aria-label"); + } + const ariaLive = target.get("ariaLive"); + if (ariaLive) { + focusElement.setAttribute("aria-live", ariaLive); + } else { + focusElement.removeAttribute("aria-live"); + } + const ariaChecked = target.get("ariaChecked"); + if (ariaChecked != null && role && ["checkbox", "option", "radio", "menuitemcheckbox", "menuitemradio", "treeitem"].indexOf(role) !== -1) { + focusElement.setAttribute("aria-checked", ariaChecked ? "true" : "false"); + } else { + focusElement.removeAttribute("aria-checked"); + } + const ariaCurrent = target.get("ariaCurrent"); + if (ariaCurrent != null) { + focusElement.setAttribute("aria-current", ariaCurrent); + } else { + focusElement.removeAttribute("aria-current"); + } + const ariaSelected = target.get("ariaSelected"); + if (ariaSelected != null && role && ["gridcell", "option", "row", "tab", "columnheader", "rowheader", "treeitem"].indexOf(role) !== -1) { + focusElement.setAttribute("aria-selected", ariaSelected ? "true" : "false"); + } else { + focusElement.removeAttribute("aria-selected"); + } + if (target.get("ariaHidden")) { + focusElement.setAttribute("aria-hidden", "true"); + } else { + focusElement.removeAttribute("aria-hidden"); + } + const ariaOrientation = target.get("ariaOrientation"); + if (ariaOrientation) { + focusElement.setAttribute("aria-orientation", ariaOrientation); + } else { + focusElement.removeAttribute("aria-orientation"); + } + const ariaValueNow = target.get("ariaValueNow"); + if (ariaValueNow) { + focusElement.setAttribute("aria-valuenow", ariaValueNow); + } else { + focusElement.removeAttribute("aria-valuenow"); + } + const ariaValueMin = target.get("ariaValueMin"); + if (ariaValueMin) { + focusElement.setAttribute("aria-valuemin", ariaValueMin); + } else { + focusElement.removeAttribute("aria-valuemin"); + } + const ariaValueMax = target.get("ariaValueMax"); + if (ariaValueMax) { + focusElement.setAttribute("aria-valuemax", ariaValueMax); + } else { + focusElement.removeAttribute("aria-valuemax"); + } + const ariaValueText = target.get("ariaValueText"); + if (ariaValueText) { + focusElement.setAttribute("aria-valuetext", ariaValueText); + } else { + focusElement.removeAttribute("aria-valuetext"); + } + const ariaControls = target.get("ariaControls"); + if (ariaControls) { + focusElement.setAttribute("aria-controls", ariaControls); + } else { + focusElement.removeAttribute("aria-controls"); + } + if (target.get("visible") && target.get("opacity") !== 0 && target.get("role") != "tooltip" && !target.isHidden() && target.getPrivate("focusable") !== false && (target.height() || target.width())) { + if (focusElement.getAttribute("tabindex") != "-1") { + focusElement.setAttribute("tabindex", "" + this.tabindex); + } + focusElement.removeAttribute("aria-hidden"); + } else { + focusElement.removeAttribute("tabindex"); + focusElement.setAttribute("aria-hidden", "true"); + } + } + _makeFocusElement(index, target) { + if (target.getPrivate("focusElement") || this._a11yD == true) { + return; + } + const focusElement = document.createElement("div"); + if (target.get("role") != "tooltip") { + focusElement.tabIndex = this.tabindex; + } + focusElement.style.position = "absolute"; + setInteractive(focusElement, false); + const disposers = []; + target.setPrivate("focusElement", { + dom: focusElement, + disposers + }); + this._decorateFocusElement(target); + disposers.push(addEventListener(focusElement, "focus", (ev) => { + this._handleFocus(ev); + })); + disposers.push(addEventListener(focusElement, "blur", (ev) => { + this._handleBlur(ev); + })); + this._moveFocusElement(index, target); + } + _removeFocusElement(target) { + if (this._a11yD == true) { + return; + } + remove(this._tabindexes, target); + const focusElement = target.getPrivate("focusElement"); + if (focusElement) { + const container = this._focusElementContainer; + container.removeChild(focusElement.dom); + each(focusElement.disposers, (x) => { + x.dispose(); + }); + } + } + _hideFocusElement(target) { + if (this._a11yD == true) { + return; + } + const focusElement = target.getPrivate("focusElement"); + focusElement.dom.style.display = "none"; + } + _moveFocusElement(index, target) { + if (this._a11yD == true) { + return; + } + const container = this._focusElementContainer; + const focusElement = target.getPrivate("focusElement").dom; + if (focusElement === this._focusElementContainer.children[index]) { + return; + } + const next = this._focusElementContainer.children[index + 1]; + if (next) { + container.insertBefore(focusElement, next); + } else { + container.append(focusElement); + } + } + _positionFocusElement(target) { + if (this._a11yD == true || target == void 0) { + return; + } + this._focusElementContainer.scrollTop = 0; + const bounds = target.globalBounds(); + let width = bounds.right == bounds.left ? target.width() : bounds.right - bounds.left; + let height = bounds.top == bounds.bottom ? target.height() : bounds.bottom - bounds.top; + const padding = this._settings.focusPadding !== void 0 ? this._settings.focusPadding : 2; + let x = bounds.left - padding; + let y = bounds.top - padding; + if (width < 0) { + x += width; + width = Math.abs(width); + } + if (height < 0) { + y += height; + height = Math.abs(height); + } + const focusElement = target.getPrivate("focusElement").dom; + focusElement.style.top = y + "px"; + focusElement.style.left = x + "px"; + focusElement.style.width = width + padding * 2 + "px"; + focusElement.style.height = height + padding * 2 + "px"; + } + _getSpriteByFocusElement(target) { + let found; + eachContinue(this._tabindexes, (item, _index) => { + if (item.getPrivate("focusElement").dom === target) { + found = item; + return false; + } + return true; + }); + return found; + } + _handleFocus(ev) { + if (this._a11yD == true) { + return; + } + const focused = this._getSpriteByFocusElement(ev.target); + if (!focused) { + return; + } + if (!focused.isVisibleDeep()) { + this._focusNext(ev.target, this._isShift ? -1 : 1); + return; + } + this._positionFocusElement(focused); + this._focusedSprite = focused; + if (focused.events.isEnabled("focus")) { + focused.events.dispatch("focus", { + type: "focus", + originalEvent: ev, + target: focused + }); + } + if (focused.getPrivate("focusElement").dom.tabIndex == -1) { + this._skipNextGroupJump = false; + } + } + _focusNext(el, direction, group) { + if (this._a11yD == true) { + return; + } + const focusableElements = Array.from(document.querySelectorAll([ + "a[href]", + "area[href]", + "button:not([disabled])", + "details", + "input:not([disabled])", + "iframe:not([disabled])", + "select:not([disabled])", + "textarea:not([disabled])", + '[contentEditable=""]', + '[contentEditable="true"]', + '[contentEditable="TRUE"]', + '[tabindex]:not([tabindex^="-"])' + //':not([disabled])' + ].join(","))); + let index = focusableElements.indexOf(el) + direction; + if (index < 0) { + index = focusableElements.length - 1; + } else if (index >= focusableElements.length) { + index = 0; + } + const targetElement = focusableElements[index]; + if (group && direction == -1) { + const target = this._getSpriteByFocusElement(targetElement); + if (target && target.get("focusableGroup") == group) { + this._focusNext(targetElement, direction); + return; + } + } + targetElement.focus(); + } + _handleBlur(ev) { + if (this._a11yD == true) { + return; + } + const focused = this._focusedSprite; + if (focused && !focused.isDisposed() && focused.events.isEnabled("blur")) { + focused.events.dispatch("blur", { + type: "blur", + originalEvent: ev, + target: focused + }); + } + this._focusedSprite = void 0; + } + /** + * @ignore + */ + updateTooltip(target) { + if (this._a11yD == true) { + return; + } + const text = stripTags(target._getText()); + let tooltipElement = target.getPrivate("tooltipElement"); + if (target.get("role") == "tooltip" && text != "") { + if (!tooltipElement) { + tooltipElement = this._makeTooltipElement(target); + } + if (tooltipElement.innerHTML != text) { + tooltipElement.innerHTML = text; + } + tooltipElement.setAttribute("aria-hidden", target.isVisibleDeep() ? "false" : "true"); + } else if (tooltipElement) { + tooltipElement.remove(); + target.removePrivate("tooltipElement"); + } + } + _makeTooltipElement(target) { + const container = this._tooltipElementContainer; + const tooltipElement = document.createElement("div"); + tooltipElement.style.position = "absolute"; + tooltipElement.style.width = "1px"; + tooltipElement.style.height = "1px"; + tooltipElement.style.overflow = "hidden"; + tooltipElement.style.clip = "rect(1px, 1px, 1px, 1px)"; + setInteractive(tooltipElement, false); + this._decorateFocusElement(target, tooltipElement); + container.append(tooltipElement); + target.setPrivate("tooltipElement", tooltipElement); + return tooltipElement; + } + _removeTooltipElement(target) { + if (this._a11yD == true) { + return; + } + const tooltipElement = target.getPrivate("tooltipElement"); + if (tooltipElement) { + const parent = tooltipElement.parentElement; + if (parent) { + parent.removeChild(tooltipElement); + } + } + } + _invalidateAccessibility(target) { + if (this._a11yD == true) { + return; + } + this._focusElementDirty = true; + const focusElement = target.getPrivate("focusElement"); + if (target.get("focusable")) { + if (focusElement) { + this._decorateFocusElement(target); + this._positionFocusElement(target); + } + } else if (focusElement) { + this._removeFocusElement(target); + } + } + /** + * Returns `true` if `target` is currently focused. + * + * @param target Target + * @return Focused? + */ + focused(target) { + return this._focusedSprite === target; + } + /** + * Converts document coordinates to coordinates withing root element. + * + * @param point Document point + * @return Root point + */ + documentPointToRoot(point) { + const rect = this._getRealSize(); + const size = this._getCalculatedSize(rect); + const scaleWidth = size.width / rect.width; + const scaleHeight = size.height / rect.height; + return { + x: (point.x - rect.left) * scaleWidth, + y: (point.y - rect.top) * scaleHeight + }; + } + /** + * Converts root coordinates to document + * + * @param point Document point + * @return Root point + */ + rootPointToDocument(point) { + const rect = this._getRealSize(); + const size = this._getCalculatedSize(rect); + const scaleWidth = size.width / rect.width; + const scaleHeight = size.height / rect.height; + return { + x: point.x / scaleWidth + rect.left, + y: point.y / scaleHeight + rect.top + }; + } + /** + * @ignore + */ + addDisposer(disposer) { + this._disposers.push(disposer); + return disposer; + } + _updateComputedStyles() { + const styles = window.getComputedStyle(this.dom); + let fontHash = ""; + each2(styles, (key, val) => { + if (isString(key) && key.match(/^font/)) { + fontHash += val; + } + }); + const changed = fontHash != this._fontHash; + if (changed) { + this._fontHash = fontHash; + } + return changed; + } + _checkComputedStyles() { + if (this._updateComputedStyles()) { + this._invalidateLabelBounds(this.container); + } + } + _invalidateLabelBounds(target) { + if (target instanceof Container) { + target.children.each((child) => { + this._invalidateLabelBounds(child); + }); + } else if (target instanceof Text) { + target.markDirtyBounds(); + } + } + /** + * To all the clever heads out there. Yes, we did not make any attempts to + * scramble this. + * + * This is a part of a tool meant for our users to manage their commercial + * licenses for removal of amCharts branding from charts. + * + * The only legit way to do so is to purchase a commercial license for amCharts: + * https://www.amcharts.com/online-store/ + * + * Removing or altering this code, or disabling amCharts branding in any other + * way is against the license and thus illegal. + */ + _hasLicense() { + for (let i = 0; i < registry.licenses.length; i++) { + if (registry.licenses[i].match(/^AM5C.{5,}/i)) { + return true; + } + } + return false; + } + _licenseApplied() { + if (this._logo) { + this._logo.set("forceHidden", true); + } + } + /** + * @ignore + */ + get debugGhostView() { + return this._renderer.debugGhostView; + } + /** + * @ignore + */ + set debugGhostView(value) { + this._renderer.debugGhostView = value; + } + /** + * Set this to `true` if you need chart to require first a tap onto it before + * touch gesture related functionality like zoom/pan is turned on. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/root-element/#Touch_related_options} for more info + * @default false + * @since 5.2.9 + * @param value Needs a tap to activate touch functions + */ + set tapToActivate(value) { + this._renderer.tapToActivate = value; + } + /** + * @return Needs a tap to activate touch functions + */ + get tapToActivate() { + return this._renderer.tapToActivate; + } + /** + * If `tapToActivate` is set to `true`, this setting will determine number + * of milliseconds the chart will stay "active", before releasing the + * controls back to the page. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/root-element/#Touch_related_options} for more info + * @default 3000 + * @since 5.2.9 + * @param value Timeout + */ + set tapToActivateTimeout(value) { + this._renderer.tapToActivateTimeout = value; + } + /** + * @return Timeout + */ + get tapToActivateTimeout() { + return this._renderer.tapToActivateTimeout; + } + _makeHTMLElement(target) { + const container = this._htmlElementContainer; + const htmlElement = document.createElement("div"); + target.setPrivate("htmlElement", htmlElement); + let needWrapper = false; + let wrapperTarget; + target._walkParents((parent) => { + if (parent.get("verticalScrollbar")) { + needWrapper = true; + wrapperTarget = parent; + return false; + } + }); + let htmlElementWrapper; + if (needWrapper) { + htmlElementWrapper = document.createElement("div"); + target.setPrivate("htmlElementWrapper", htmlElementWrapper); + target.setPrivate("wrapperContainer", wrapperTarget); + htmlElementWrapper.style.position = "absolute"; + htmlElementWrapper.style.overflow = "hidden"; + htmlElementWrapper.style.boxSizing = "border-box"; + htmlElementWrapper.style.top = "0px"; + htmlElementWrapper.style.left = "0px"; + htmlElementWrapper.style.width = "100%"; + htmlElementWrapper.style.height = "100%"; + wrapperTarget.events.on("boundschanged", () => { + this._positionHTMLElement(target); + }); + } + htmlElement.style.position = "absolute"; + htmlElement.style.overflow = "auto"; + htmlElement.style.boxSizing = "border-box"; + setInteractive(htmlElement, target.get("interactive", false)); + if (target.events.isEnabled("click")) { + setInteractive(htmlElement, true); + this._disposers.push(addEventListener(htmlElement, "click", (ev) => { + const downEvent = this._renderer.getEvent(ev); + target.events.dispatch("click", { + type: "click", + originalEvent: downEvent.event, + point: downEvent.point, + simulated: false, + target + }); + })); + } + this._positionHTMLElement(target); + if (needWrapper) { + htmlElementWrapper.append(htmlElement); + container.append(htmlElementWrapper); + } else { + container.append(htmlElement); + } + pushOne(this._htmlEnabledContainers, target); + return htmlElement; + } + _positionHTMLElements() { + each(this._htmlEnabledContainers, (target) => { + this._positionHTMLElement(target); + }); + } + _positionHTMLElement(target) { + const htmlElementWrapper = target.getPrivate("htmlElementWrapper"); + if (htmlElementWrapper) { + const wrapperTarget = target.getPrivate("wrapperContainer"); + if (wrapperTarget) { + const bounds = wrapperTarget.globalBounds(); + htmlElementWrapper.style.clipPath = "rect(" + bounds.top + "px " + bounds.right + "px " + bounds.bottom + "px " + bounds.left + "px)"; + } + } + const htmlElement = target.getPrivate("htmlElement"); + if (htmlElement) { + const visualSettings = [ + "paddingTop", + "paddingRight", + "paddingBottom", + "paddingLeft", + "minWidth", + "minHeight", + "maxWidth", + "maxHeight" + ]; + each(visualSettings, (setting) => { + const value = target.get(setting); + if (value) { + htmlElement.style[setting] = value + "px"; + } else { + htmlElement.style[setting] = ""; + } + }); + const strtingSettings = [ + "fontFamily", + "fontSize", + "fontStyle", + "fontWeight", + "fontStyle", + "fontVariant", + "textDecoration" + ]; + each(strtingSettings, (setting) => { + const value = target.get(setting); + if (value) { + if (setting == "fontSize" && !isString(value)) { + htmlElement.style[setting] = value + "px"; + } else { + htmlElement.style[setting] = value + ""; + } + } else { + htmlElement.style[setting] = ""; + } + }); + const scale = target.compositeScale() || 1; + const rotation = target.compositeRotation() || 0; + htmlElement.style.transform = ""; + htmlElement.style.transformOrigin = ""; + const opacity = target.compositeOpacity(); + setTimeout(() => { + htmlElement.style.opacity = opacity + ""; + }, 10); + const visible = target.isVisibleDeep(); + if (visible) { + htmlElement.style.display = "block"; + } + let pos = { + x: target.x() + target.get("dx", 0), + y: target.y() + target.get("dy", 0) + }; + if (target.parent) { + pos = target.parent.toGlobal(pos); + } + htmlElement.style.top = pos.y + "px"; + htmlElement.style.left = pos.x + "px"; + const width = target.get("width"); + const height = target.get("height"); + let w = 0; + let h = 0; + if (width) { + w = target.width(); + } + if (height) { + h = target.height(); + } + if (!width || !height) { + htmlElement.style.position = "fixed"; + htmlElement.style.width = ""; + htmlElement.style.height = ""; + const bbox = htmlElement.getBoundingClientRect(); + htmlElement.style.position = "absolute"; + if (!width) + w = bbox.width; + if (!height) + h = bbox.height; + let lw = w / scale; + let lh = h / scale; + let cx = target.get("centerX", 0); + let cy = target.get("centerY", 0); + let ll = 0; + let lr = 0; + let lt = 0; + let lb = 0; + if (cx instanceof Percent) { + ll = -cx.value * lw; + lr = (1 - cx.value) * lw; + } else { + ll = -cx; + lr = lw - cx; + } + if (cy instanceof Percent) { + lt = -cy.value * lh; + lb = (1 - cy.value) * lh; + } else { + lt = -cy; + lb = lh - cy; + } + target._localBounds = { left: ll, right: lr, top: lt, bottom: lb }; + let previousBounds = target._adjustedLocalBounds; + let newBounds = target._display.getAdjustedBounds(target._localBounds); + target._adjustedLocalBounds = newBounds; + if (previousBounds.left !== newBounds.left || previousBounds.right !== newBounds.right || previousBounds.top !== newBounds.top || previousBounds.bottom !== newBounds.bottom) { + target.markDirtyBounds(); + } + } + if (w > 0) { + htmlElement.style.minWidth = w + "px"; + } + if (h > 0) { + htmlElement.style.minHeight = h + "px"; + } + if (!visible || opacity == 0) { + htmlElement.style.display = "none"; + } + const x = target.get("centerX", 0); + const originX = isPercent(x) ? x.percent + "%" : x + "px"; + const y = target.get("centerY", 0); + const originY = isPercent(y) ? y.percent + "%" : y + "px"; + if (x || y) { + htmlElement.style.transform = "translate(-" + originX + ", -" + originY + ")" + htmlElement.style.transform; + } + if (scale != 1) { + htmlElement.style.transform += "scale(" + scale + ")"; + } + if (rotation != 0) { + htmlElement.style.transform += " rotate(" + rotation + "deg)"; + } + if (htmlElement.style.transform != "") { + htmlElement.style.transformOrigin = originX + " " + originY; + } + } + } + _setHTMLContent(target, html) { + let htmlElement = target.getPrivate("htmlElement"); + if (!htmlElement) { + htmlElement = this._makeHTMLElement(target); + if (!this.autoResize) { + this.resize(); + } + } + if (htmlElement.innerHTML != html) { + htmlElement.innerHTML = html; + } + } + _removeHTMLContent(target) { + const htmlElementWrapper = target.getPrivate("htmlElementWrapper"); + const htmlElement = target.getPrivate("htmlElement"); + if (htmlElementWrapper) { + this._htmlElementContainer.removeChild(htmlElementWrapper); + target.removePrivate("htmlElement"); + target.removePrivate("htmlElementWrapper"); + target.removePrivate("wrapperContainer"); + } else if (htmlElement) { + this._htmlElementContainer.removeChild(htmlElement); + target.removePrivate("htmlElement"); + target.removePrivate("wrapperContainer"); + } + remove(this._htmlEnabledContainers, target); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/render/Bullet.js + var Bullet = class extends Entity { + _afterNew() { + super._afterNewApplyThemes(); + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("sprite")) { + const sprite = this.get("sprite"); + if (sprite) { + sprite.setAll({ position: "absolute", role: "figure" }); + this._disposers.push(sprite); + } + } + if (this.isDirty("locationX") || this.isDirty("locationY")) { + if (this.series) { + this.series._positionBullet(this); + } + } + } + }; + Bullet.className = "Bullet"; + Bullet.classNames = Entity.classNames.concat([Bullet.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/RoundedRectangle.js + var RoundedRectangle = class extends Rectangle { + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("cornerRadiusTL") || this.isDirty("cornerRadiusTR") || this.isDirty("cornerRadiusBR") || this.isDirty("cornerRadiusBL")) { + this._clear = true; + } + } + _draw() { + let width = this.width(); + let height = this.height(); + let wSign = width / Math.abs(width); + let hSign = height / Math.abs(height); + let x = 0; + let y = 0; + const strokeWidth = this.get("strokeWidth", 0); + if (this.get("containStroke", false)) { + width -= wSign * strokeWidth; + height -= hSign * strokeWidth; + x += wSign * strokeWidth / 2; + y += hSign * strokeWidth / 2; + } + let w = width; + let h = height; + if (isNumber(w) && isNumber(h)) { + let minSide = Math.min(w, h) / 2; + let crtl = relativeToValue(this.get("cornerRadiusTL", 8), minSide); + let crtr = relativeToValue(this.get("cornerRadiusTR", 8), minSide); + let crbr = relativeToValue(this.get("cornerRadiusBR", 8), minSide); + let crbl = relativeToValue(this.get("cornerRadiusBL", 8), minSide); + let maxcr = Math.min(Math.abs(w / 2), Math.abs(h / 2)); + crtl = fitToRange(crtl, 0, maxcr); + crtr = fitToRange(crtr, 0, maxcr); + crbr = fitToRange(crbr, 0, maxcr); + crbl = fitToRange(crbl, 0, maxcr); + const display = this._display; + display.moveTo(x + crtl * wSign, y); + display.lineTo(x + w - crtr * wSign, y); + if (crtr > 0) { + display.arcTo(x + w, y, x + w, y + crtr * hSign, crtr); + } + display.lineTo(x + w, y + h - crbr * hSign); + if (crbr > 0) { + display.arcTo(x + w, y + h, x + w - crbr * wSign, y + h, crbr); + } + display.lineTo(x + crbl * wSign, y + h); + if (crbl > 0) { + display.arcTo(x, y + h, x, y + h - crbl * hSign, crbl); + } + display.lineTo(x, y + crtl * hSign); + if (crtl > 0) { + display.arcTo(x, y, x + crtl * wSign, y, crtl); + } + display.closePath(); + } + } + }; + RoundedRectangle.className = "RoundedRectangle"; + RoundedRectangle.classNames = Rectangle.classNames.concat([RoundedRectangle.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Button.js + var Button = class extends Container { + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["button"]); + super._afterNew(); + if (!this._settings.background) { + this.set("background", RoundedRectangle.new(this._root, { + themeTags: mergeTags(this._settings.themeTags, ["background"]) + })); + } + this.setPrivate("trustBounds", true); + } + _prepareChildren() { + super._prepareChildren(); + if (this.isDirty("icon")) { + const previous = this._prevSettings.icon; + const icon = this.get("icon"); + if (icon !== previous) { + this._disposeProperty("icon"); + if (previous) { + previous.dispose(); + } + if (icon) { + this.children.push(icon); + } + this._prevSettings.icon = icon; + } + } + if (this.isDirty("label")) { + const previous = this._prevSettings.label; + const label = this.get("label"); + if (label !== previous) { + this._disposeProperty("label"); + if (previous) { + previous.dispose(); + } + if (label) { + this.children.push(label); + } + this._prevSettings.label = label; + } + } + } + }; + Button.className = "Button"; + Button.classNames = Container.classNames.concat([Button.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Circle.js + var Circle = class extends Graphics { + _afterNew() { + super._afterNew(); + this._display.isMeasured = true; + this.setPrivateRaw("trustBounds", true); + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("radius")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear) { + this._display.drawCircle(0, 0, Math.abs(this.get("radius", 10))); + } + } + }; + Circle.className = "Circle"; + Circle.classNames = Graphics.classNames.concat([Circle.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/Data.js + var ListData = class extends List { + /** + * @ignore + */ + incrementRef() { + } + /** + * @ignore + */ + decrementRef() { + } + _onPush(newValue) { + if (this.processor) { + this.processor.processRow(newValue); + } + super._onPush(newValue); + } + _onInsertIndex(index, newValue) { + if (this.processor) { + this.processor.processRow(newValue); + } + super._onInsertIndex(index, newValue); + } + _onSetIndex(index, oldValue, newValue) { + if (this.processor) { + this.processor.processRow(newValue); + } + super._onSetIndex(index, oldValue, newValue); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/render/Component.js + var DataItem = class extends Settings { + constructor(component, dataContext, settings) { + super(settings); + this.dataContext = dataContext; + this.component = component; + this._settings.visible = true; + this._checkDirty(); + } + /** + * @ignore + */ + markDirty() { + this.component.markDirtyValues(this); + } + _startAnimation() { + this.component._root._addAnimation(this); + } + _animationTime() { + return this.component._root.animationTime; + } + _dispose() { + if (this.component) { + this.component.disposeDataItem(this); + } + super._dispose(); + } + /** + * Shows a data item that's currently hidden. + */ + show(duration) { + this.setRaw("visible", true); + if (this.component) { + this.component.showDataItem(this, duration); + } + } + /** + * Hides a data item that's currently visible. + */ + hide(duration) { + this.setRaw("visible", false); + if (this.component) { + this.component.hideDataItem(this, duration); + } + } + isHidden() { + return !this.get("visible"); + } + }; + var Component = class extends Container { + constructor() { + super(...arguments); + this._data = new ListData(); + this._dataItems = []; + this._mainDataItems = this._dataItems; + this.valueFields = []; + this.fields = ["id"]; + this._valuesDirty = false; + this._dataChanged = false; + this._dataGrouped = false; + this.inited = false; + } + /** + * Component's data. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/data/} for more info + */ + set data(data) { + data.incrementRef(); + this._data.decrementRef(); + this._data = data; + } + /** + * @return Data + */ + get data() { + return this._data; + } + _dispose() { + super._dispose(); + this._data.decrementRef(); + } + _onDataClear() { + } + _afterNew() { + super._afterNew(); + this._data.incrementRef(); + this._updateFields(); + this._disposers.push(this.data.events.onAll((change) => { + const dataItems = this._mainDataItems; + this.markDirtyValues(); + this._markDirtyGroup(); + this._dataChanged = true; + if (change.type === "clear") { + each(dataItems, (dataItem) => { + dataItem.dispose(); + }); + dataItems.length = 0; + this._onDataClear(); + } else if (change.type === "push") { + const dataItem = new DataItem(this, change.newValue, this._makeDataItem(change.newValue)); + dataItems.push(dataItem); + this.processDataItem(dataItem); + } else if (change.type === "setIndex") { + const dataItem = dataItems[change.index]; + const properties = this._makeDataItem(change.newValue); + if (dataItem.bullets && dataItem.bullets.length == 0) { + dataItem.bullets = void 0; + } + entries(properties).forEach(([key, value]) => { + if (dataItem.get(key) == value) { + return; + } + dataItem.animate({ + key, + to: value, + duration: this.get("interpolationDuration", 0), + easing: this.get("interpolationEasing") + }); + }); + dataItem.dataContext = change.newValue; + } else if (change.type === "insertIndex") { + const dataItem = new DataItem(this, change.newValue, this._makeDataItem(change.newValue)); + dataItems.splice(change.index, 0, dataItem); + this.processDataItem(dataItem); + } else if (change.type === "removeIndex") { + const dataItem = dataItems[change.index]; + dataItem.dispose(); + dataItems.splice(change.index, 1); + } else if (change.type === "moveIndex") { + const dataItem = dataItems[change.oldIndex]; + dataItems.splice(change.oldIndex, 1); + dataItems.splice(change.newIndex, 0, dataItem); + } else { + throw new Error("Unknown IStreamEvent type"); + } + this._afterDataChange(); + })); + } + _postUpdateData() { + } + /** + * Updates existing data in the component without disposing old data items. If there are more data items than before, new ones will be created. If there are less, old ones will be removed. + * @param data + */ + updateData(data) { + let ii = 0; + each(data, (dataObject, index) => { + const dataItem = this.dataItems[index]; + if (!dataItem) { + this.data.push(dataObject); + } else { + const dataContext = dataItem.dataContext; + if (dataContext) { + entries(dataObject).forEach(([key, value]) => { + dataContext[key] = value; + }); + } + const properties = this._makeDataItem(dataContext); + entries(properties).forEach(([key, value]) => { + var _a; + if (dataItem.get(key) != value) { + dataItem.set(key, value); + const workingKey = (_a = this._valueFieldsF[key]) === null || _a === void 0 ? void 0 : _a.workingKey; + if (workingKey) { + dataItem.set(workingKey, value); + } + } + }); + } + ii = index; + }); + for (let i = this.dataItems.length - 1; i > ii; i--) { + const dataItem = this.dataItems[i]; + remove(this.dataItems, dataItem); + dataItem.dispose(); + } + this._postUpdateData(); + } + _updateFields() { + if (this.valueFields) { + this._valueFields = []; + this._valueFieldsF = {}; + each(this.valueFields, (key) => { + const field = this.get(key + "Field"); + if (field) { + this._valueFields.push(key); + this._valueFieldsF[key] = { fieldKey: key + "Field", workingKey: key + "Working" }; + } + }); + } + if (this.fields) { + this._fields = []; + this._fieldsF = {}; + each(this.fields, (key) => { + const field = this.get(key + "Field"); + if (field) { + this._fields.push(key); + this._fieldsF[key] = key + "Field"; + } + }); + } + } + /** + * A list of component's data items. + * + * @return Data items + */ + get dataItems() { + return this._dataItems; + } + processDataItem(_dataItem) { + } + _makeDataItem(data) { + const output = {}; + if (this._valueFields) { + each(this._valueFields, (key) => { + const field = this.get(this._valueFieldsF[key].fieldKey); + output[key] = data[field]; + output[this._valueFieldsF[key].workingKey] = output[key]; + }); + } + if (this._fields) { + each(this._fields, (key) => { + const field = this.get(this._fieldsF[key]); + output[key] = data[field]; + }); + } + return output; + } + /** + * Creates a new data item and processes it. + * + * @param data Data item settings + * @param dataContext Data context + * @return New data item + */ + makeDataItem(data, dataContext) { + let dataItem = new DataItem(this, dataContext, data); + this.processDataItem(dataItem); + return dataItem; + } + /** + * Adds new explicit data item to series. + * + * @param data Data item settings + * @param dataContext Data context + * @return New data item + */ + pushDataItem(data, dataContext) { + const dataItem = this.makeDataItem(data, dataContext); + this._mainDataItems.push(dataItem); + return dataItem; + } + /** + * @ignore + */ + disposeDataItem(_dataItem) { + } + /** + * Shows component's data item. + * + * @param dataItem Data item + * @param _duration Animation duration in milliseconds + * @return Promise + */ + showDataItem(dataItem, _duration) { + return __awaiter(this, void 0, void 0, function* () { + dataItem.set("visible", true); + }); + } + /** + * Hides component's data item. + * + * @param dataItem Data item + * @param _duration Animation duration in milliseconds + * @return Promise + */ + hideDataItem(dataItem, _duration) { + return __awaiter(this, void 0, void 0, function* () { + dataItem.set("visible", false); + }); + } + _clearDirty() { + super._clearDirty(); + this._valuesDirty = false; + } + _afterDataChange() { + } + _afterChanged() { + super._afterChanged(); + if (this._dataChanged) { + const type = "datavalidated"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this }); + } + this._dataChanged = false; + } + if (this._valuesDirty) { + const type = "valueschanged"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this }); + } + } + this.inited = true; + } + /** + * Forces a repaint of the element which relies on data. + * + * @since 5.0.21 + */ + markDirtyValues(_dataItem) { + this.markDirty(); + this._valuesDirty = true; + } + _markDirtyGroup() { + this._dataGrouped = false; + } + /** + * @ignore + */ + markDirtySize() { + this._sizeDirty = true; + this.markDirty(); + } + /** + * Looks up and returns a data item by its ID. + * + * @param id ID + * @return Data item + */ + getDataItemById(id) { + return find(this.dataItems, (dataItem) => { + return dataItem.get("id") == id; + }); + } + }; + Component.className = "Component"; + Component.classNames = Container.classNames.concat([Component.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/Time.js + function sleep(ms) { + return new Promise((resolve, _reject) => { + setTimeout(resolve, ms); + }); + } + var timeUnitDurations = { + millisecond: 1, + second: 1e3, + minute: 6e4, + hour: 36e5, + day: 864e5, + week: 6048e5, + month: 365.242 / 12 * 864e5, + year: 31536e6 + }; + + // node_modules/@amcharts/amcharts5/.internal/core/render/Series.js + var Series = class extends Component { + constructor() { + super(...arguments); + this._aggregatesCalculated = false; + this._selectionAggregatesCalculated = false; + this._dataProcessed = false; + this._baseSeriesDirty = false; + this.bullets = new List(); + this.bulletsContainer = Container.new(this._root, { width: p100, height: p100, position: "absolute" }); + } + _afterNew() { + this.valueFields.push("value", "customValue"); + super._afterNew(); + this.setPrivate("customData", {}); + this._disposers.push(this.bullets.events.onAll(() => { + this._handleBullets(this.dataItems); + })); + } + _dispose() { + this.bulletsContainer.dispose(); + super._dispose(); + } + startIndex() { + let len = this.dataItems.length; + return Math.min(this.getPrivate("startIndex", 0), len); + } + endIndex() { + let len = this.dataItems.length; + return Math.max(0, Math.min(this.getPrivate("endIndex", len), len)); + } + _handleBullets(dataItems) { + each(dataItems, (dataItem) => { + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + bullet.dispose(); + }); + dataItem.bullets = void 0; + } + }); + this.markDirtyValues(); + } + _makeBullets(dataItem) { + if (this._shouldMakeBullet(dataItem)) { + dataItem.bullets = []; + this.bullets.each((bulletFunction) => { + this._makeBullet(dataItem, bulletFunction); + }); + } + } + _shouldMakeBullet(_dataItem) { + return true; + } + _makeBullet(dataItem, bulletFunction, index) { + const bullet = bulletFunction(this._root, this, dataItem); + if (bullet) { + bullet._index = index; + this._makeBulletReal(dataItem, bullet); + } + return bullet; + } + _makeBulletReal(dataItem, bullet) { + let sprite = bullet.get("sprite"); + if (sprite) { + sprite._setDataItem(dataItem); + sprite.setRaw("position", "absolute"); + this.bulletsContainer.children.push(sprite); + } + bullet.series = this; + dataItem.bullets.push(bullet); + } + /** + * Adds bullet directly to a data item. + * + * Please note: method accepts [[Bullet]] instance as a paramter, not a + * reference to a function. + * + * You should add Bullet instance, not a method like you do it on series. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/common-elements/bullets/#Adding_directly_to_data_item} for more info + * @since 5.6.0 + * + * @param dataItem Target data item + * @param bullet Bullet instance + */ + addBullet(dataItem, bullet) { + if (!dataItem.bullets) { + dataItem.bullets = []; + } + if (bullet) { + this._makeBulletReal(dataItem, bullet); + } + } + _clearDirty() { + super._clearDirty(); + this._aggregatesCalculated = false; + this._baseSeriesDirty = false; + this._selectionAggregatesCalculated = false; + } + _prepareChildren() { + super._prepareChildren(); + const dataItems = this.dataItems; + const count = dataItems.length; + let startIndex = this.startIndex(); + let endIndex = this.endIndex(); + if (this.isDirty("name")) { + this.updateLegendValue(); + } + if (this.isDirty("heatRules")) { + this._valuesDirty = true; + } + if (this.isPrivateDirty("baseValueSeries")) { + const baseValueSeries = this.getPrivate("baseValueSeries"); + if (baseValueSeries) { + this._disposers.push(baseValueSeries.onPrivate("startIndex", () => { + this._baseSeriesDirty = true; + this.markDirtyValues(); + })); + } + } + const calculateAggregates = this.get("calculateAggregates"); + if (calculateAggregates) { + if (this._valuesDirty && !this._dataProcessed) { + if (!this._aggregatesCalculated) { + this._calculateAggregates(0, count); + this._aggregatesCalculated = true; + if (startIndex != 0) { + this._psi = void 0; + } + } + } + if ((this._psi != startIndex || this._pei != endIndex || this.isPrivateDirty("adjustedStartIndex")) && !this._selectionAggregatesCalculated) { + if (startIndex === 0 && endIndex === count && this._aggregatesCalculated) { + } else { + this._calculateAggregates(startIndex, endIndex); + } + this._selectionAggregatesCalculated = true; + } + } + if (this.isDirty("tooltip")) { + let tooltip = this.get("tooltip"); + if (tooltip) { + tooltip.hide(0); + tooltip.set("tooltipTarget", this); + } + } + if (this.isDirty("fill") || this.isDirty("stroke")) { + let markerRectangle; + const legendDataItem = this.get("legendDataItem"); + if (legendDataItem) { + markerRectangle = legendDataItem.get("markerRectangle"); + if (markerRectangle) { + if (this.isVisible()) { + if (this.isDirty("stroke")) { + let stroke = this.get("stroke"); + markerRectangle.set("stroke", stroke); + } + if (this.isDirty("fill")) { + let fill = this.get("fill"); + markerRectangle.set("fill", fill); + } + } + } + } + this.updateLegendMarker(void 0); + } + if (this.bullets.length > 0) { + let startIndex2 = this.startIndex(); + let endIndex2 = this.endIndex(); + if (endIndex2 < count) { + endIndex2++; + } + for (let i = startIndex2; i < endIndex2; i++) { + let dataItem = dataItems[i]; + if (!dataItem.bullets) { + this._makeBullets(dataItem); + } + } + } + } + _handleRemoved() { + } + /** + * @ignore + */ + _adjustStartIndex(index) { + return index; + } + _calculateAggregates(startIndex, endIndex) { + let fields = this._valueFields; + if (!fields) { + throw new Error("No value fields are set for the series."); + } + const excludeFromAggregate = this.get("excludeFromAggregate"); + if (excludeFromAggregate) { + fields = fields.filter((field) => { + return excludeFromAggregate.indexOf(field) == -1; + }); + } + const sum = {}; + const absSum = {}; + const count = {}; + const low = {}; + const high = {}; + const open = {}; + const close = {}; + const average = {}; + const previous = {}; + for (let f = 0, flen = fields.length; f < flen; f++) { + let key = fields[f]; + sum[key] = 0; + absSum[key] = 0; + count[key] = 0; + } + const dataItems = this.dataItems; + const len = dataItems.length; + for (let f = 0, flen = fields.length; f < flen; f++) { + let key = fields[f]; + let change = key + "Change"; + let changePercent = key + "ChangePercent"; + let changePrevious = key + "ChangePrevious"; + let changePreviousPercent = key + "ChangePreviousPercent"; + let changeSelection = key + "ChangeSelection"; + let changeSelectionPercent = key + "ChangeSelectionPercent"; + let openKey = "valueY"; + if (key === "valueX" || key.endsWith("ValueX")) { + openKey = "valueX"; + } + const baseValueSeries = this.getPrivate("baseValueSeries"); + const adjustedStartIndex = this.getPrivate("adjustedStartIndex", startIndex); + const calculateChangesForItem = (dataItem, value, key2) => { + if (startIndex === 0) { + const openValue = open[openKey]; + const changeValue = value - openValue; + dataItem.setRaw(change, changeValue); + dataItem.setRaw(changePercent, changeValue / openValue * 100); + } + const changePreviousValue = value - previous[openKey]; + const changeSelectionValue = value - open[openKey]; + dataItem.setRaw(changePrevious, changePreviousValue); + dataItem.setRaw(changePreviousPercent, changePreviousValue / previous[openKey] * 100); + dataItem.setRaw(changeSelection, changeSelectionValue); + dataItem.setRaw(changeSelectionPercent, changeSelectionValue / open[openKey] * 100); + previous[key2] = value; + }; + for (let i = adjustedStartIndex; i < endIndex; i++) { + const dataItem = dataItems[i]; + if (dataItem) { + let value = dataItem.get(key); + if (value != null) { + if (low[key] == null) { + low[key] = value; + } + if (high[key] == null) { + high[key] = value; + } + if (open[key] == null) { + open[key] = value; + previous[key] = value; + if (baseValueSeries) { + open[openKey] = baseValueSeries._getBase(openKey); + } + } + break; + } + } + } + for (let i = adjustedStartIndex; i < endIndex; i++) { + const dataItem = dataItems[i]; + if (dataItem) { + let value = dataItem._settings[key]; + if (value != null) { + count[key]++; + sum[key] += value; + absSum[key] += Math.abs(value); + if (low[key] > value) { + low[key] = value; + } + if (high[key] < value) { + high[key] = value; + } + close[key] = value; + calculateChangesForItem(dataItem, value, key); + } + } + } + average[key] = sum[key] / count[key]; + if (endIndex < len) { + const dataItem = dataItems[endIndex]; + if (dataItem) { + let value = dataItem.get(key); + if (value != null) { + calculateChangesForItem(dataItem, value, key); + } + } + } + if (endIndex + 1 < len) { + const dataItem = dataItems[endIndex + 1]; + if (dataItem) { + let value = dataItem.get(key); + if (value != null) { + calculateChangesForItem(dataItem, value, key); + } + } + } + if (startIndex > 0) { + startIndex--; + } + delete previous[key]; + for (let i = startIndex; i < adjustedStartIndex; i++) { + const dataItem = dataItems[i]; + if (dataItem) { + let value = dataItem.get(key); + if (previous[key] == null) { + previous[key] = value; + } + if (value != null) { + calculateChangesForItem(dataItem, value, key); + } + } + } + } + for (let f = 0, flen = fields.length; f < flen; f++) { + let key = fields[f]; + this.setPrivate(key + "AverageSelection", average[key]); + this.setPrivate(key + "CountSelection", count[key]); + this.setPrivate(key + "SumSelection", sum[key]); + this.setPrivate(key + "AbsoluteSumSelection", absSum[key]); + this.setPrivate(key + "LowSelection", low[key]); + this.setPrivate(key + "HighSelection", high[key]); + this.setPrivate(key + "OpenSelection", open[key]); + this.setPrivate(key + "CloseSelection", close[key]); + } + if (startIndex === 0 && endIndex === len) { + for (let f = 0, flen = fields.length; f < flen; f++) { + let key = fields[f]; + this.setPrivate(key + "Average", average[key]); + this.setPrivate(key + "Count", count[key]); + this.setPrivate(key + "Sum", sum[key]); + this.setPrivate(key + "AbsoluteSum", absSum[key]); + this.setPrivate(key + "Low", low[key]); + this.setPrivate(key + "High", high[key]); + this.setPrivate(key + "Open", open[key]); + this.setPrivate(key + "Close", close[key]); + } + } + } + _updateChildren() { + super._updateChildren(); + this._psi = this.startIndex(); + this._pei = this.endIndex(); + if (this.isDirty("visible")) { + this.bulletsContainer.set("visible", this.get("visible")); + } + const rules = this.get("heatRules"); + if (this._valuesDirty && rules && rules.length > 0) { + each(rules, (rule) => { + const minValue = rule.minValue || this.getPrivate(rule.dataField + "Low") || 0; + const maxValue = rule.maxValue || this.getPrivate(rule.dataField + "High") || 0; + each(rule.target._entities, (target) => { + const value = target.dataItem.get(rule.dataField); + if (!isNumber(value)) { + if (rule.neutral) { + target.set(rule.key, rule.neutral); + } + const states = target.states; + if (states) { + const defaultState = states.lookup("default"); + if (defaultState && rule.neutral) { + defaultState.set(rule.key, rule.neutral); + } + } + if (!rule.customFunction) { + return; + } + } + if (rule.customFunction) { + rule.customFunction.call(this, target, minValue, maxValue, value); + } else { + let percent2; + if (rule.logarithmic) { + percent2 = (Math.log(value) * Math.LOG10E - Math.log(minValue) * Math.LOG10E) / (Math.log(maxValue) * Math.LOG10E - Math.log(minValue) * Math.LOG10E); + } else { + percent2 = (value - minValue) / (maxValue - minValue); + } + if (isNumber(value) && (!isNumber(percent2) || Math.abs(percent2) == Infinity)) { + percent2 = 0.5; + } + let propertyValue; + if (isNumber(rule.min)) { + propertyValue = rule.min + (rule.max - rule.min) * percent2; + } else if (rule.min instanceof Color) { + propertyValue = Color.interpolate(percent2, rule.min, rule.max); + } else if (rule.min instanceof Percent) { + propertyValue = percentInterpolate(percent2, rule.min, rule.max); + } + target.set(rule.key, propertyValue); + const states = target.states; + if (states) { + const defaultState = states.lookup("default"); + if (defaultState) { + defaultState.set(rule.key, propertyValue); + } + } + } + }); + }); + } + if (this.get("visible")) { + const dataItems = this.dataItems; + let count = dataItems.length; + let startIndex = this.startIndex(); + let endIndex = this.endIndex(); + if (endIndex < count) { + endIndex++; + } + if (startIndex > 0) { + startIndex--; + } + for (let i = 0; i < startIndex; i++) { + this._hideBullets(dataItems[i]); + } + for (let i = startIndex; i < endIndex; i++) { + this._positionBullets(dataItems[i]); + } + for (let i = endIndex; i < count; i++) { + this._hideBullets(dataItems[i]); + } + } + } + _positionBullets(dataItem) { + if (dataItem.bullets) { + each(dataItem.bullets, (bullet) => { + this._positionBullet(bullet); + const sprite = bullet.get("sprite"); + if (bullet.get("dynamic")) { + if (sprite) { + sprite._markDirtyKey("fill"); + sprite.markDirtySize(); + } + if (sprite instanceof Container) { + sprite.walkChildren((child) => { + child._markDirtyKey("fill"); + child.markDirtySize(); + if (child instanceof Label) { + child.text.markDirtyText(); + } + }); + } + } + if (sprite instanceof Label && sprite.get("populateText")) { + sprite.text.markDirtyText(); + } + }); + } + } + _hideBullets(dataItem) { + if (dataItem.bullets) { + each(dataItem.bullets, (bullet) => { + let sprite = bullet.get("sprite"); + if (sprite) { + sprite.setPrivate("visible", false); + } + }); + } + } + _positionBullet(_bullet) { + } + _placeBulletsContainer(chart2) { + chart2.bulletsContainer.children.moveValue(this.bulletsContainer); + } + _removeBulletsContainer() { + const bulletsContainer = this.bulletsContainer; + if (bulletsContainer.parent) { + bulletsContainer.parent.children.removeValue(bulletsContainer); + } + } + /** + * @ignore + */ + disposeDataItem(dataItem) { + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + bullet.dispose(); + }); + dataItem.bullets = void 0; + } + } + _getItemReaderLabel() { + return ""; + } + /** + * Shows series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + showDataItem(dataItem, duration) { + const _super = Object.create(null, { + showDataItem: { get: () => super.showDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.showDataItem.call(this, dataItem, duration)]; + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + const sprite = bullet.get("sprite"); + if (sprite) { + promises.push(sprite.show(duration)); + } + }); + } + yield Promise.all(promises); + }); + } + /** + * Hides series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + hideDataItem(dataItem, duration) { + const _super = Object.create(null, { + hideDataItem: { get: () => super.hideDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.hideDataItem.call(this, dataItem, duration)]; + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + const sprite = bullet.get("sprite"); + if (sprite) { + promises.push(sprite.hide(duration)); + } + }); + } + yield Promise.all(promises); + }); + } + _sequencedShowHide(show, duration) { + return __awaiter(this, void 0, void 0, function* () { + if (this.get("sequencedInterpolation")) { + if (!isNumber(duration)) { + duration = this.get("interpolationDuration", 0); + } + if (duration > 0) { + const startIndex = this.startIndex(); + const endIndex = this.endIndex(); + yield Promise.all(map(this.dataItems, (dataItem, i) => __awaiter(this, void 0, void 0, function* () { + let realDuration = duration || 0; + if (i < startIndex - 10 || i > endIndex + 10) { + realDuration = 0; + } + let delay = this.get("sequencedDelay", 0) + realDuration / (endIndex - startIndex); + yield sleep(delay * (i - startIndex)); + if (show) { + yield this.showDataItem(dataItem, realDuration); + } else { + yield this.hideDataItem(dataItem, realDuration); + } + }))); + } else { + yield Promise.all(map(this.dataItems, (dataItem) => { + if (show) { + return this.showDataItem(dataItem, 0); + } else { + return this.hideDataItem(dataItem, 0); + } + })); + } + } + }); + } + /** + * @ignore + */ + updateLegendValue(dataItem) { + if (dataItem) { + const legendDataItem = dataItem.get("legendDataItem"); + if (legendDataItem) { + const valueLabel = legendDataItem.get("valueLabel"); + if (valueLabel) { + const text = valueLabel.text; + let txt = ""; + valueLabel._setDataItem(dataItem); + txt = this.get("legendValueText", text.get("text", "")); + valueLabel.set("text", txt); + text.markDirtyText(); + } + const label = legendDataItem.get("label"); + if (label) { + const text = label.text; + let txt = ""; + label._setDataItem(dataItem); + txt = this.get("legendLabelText", text.get("text", "")); + label.set("text", txt); + text.markDirtyText(); + } + } + } + } + /** + * @ignore + */ + updateLegendMarker(_dataItem) { + } + _onHide() { + super._onHide(); + const tooltip = this.getTooltip(); + if (tooltip) { + tooltip.hide(); + } + } + /** + * @ignore + */ + hoverDataItem(_dataItem) { + } + /** + * @ignore + */ + unhoverDataItem(_dataItem) { + } + /** + * @ignore + */ + _getBase(key) { + const dataItem = this.dataItems[this.startIndex()]; + if (dataItem) { + return dataItem.get(key); + } + return 0; + } + }; + Series.className = "Series"; + Series.classNames = Component.classNames.concat([Series.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Chart.js + var Chart = class extends Container { + constructor() { + super(...arguments); + this.chartContainer = this.children.push(Container.new(this._root, { width: p100, height: p100, interactiveChildren: false })); + this.bulletsContainer = Container.new(this._root, { interactiveChildren: false, isMeasured: false, position: "absolute", width: p100, height: p100 }); + } + }; + Chart.className = "Chart"; + Chart.classNames = Container.classNames.concat([Chart.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/SerialChart.js + var SerialChart = class extends Chart { + constructor() { + super(...arguments); + this.seriesContainer = Container.new(this._root, { width: p100, height: p100, isMeasured: false }); + this.series = new ListAutoDispose(); + } + _afterNew() { + super._afterNew(); + this._disposers.push(this.series); + const children = this.seriesContainer.children; + this._disposers.push(this.series.events.onAll((change) => { + if (change.type === "clear") { + each(change.oldValues, (series) => { + this._removeSeries(series); + }); + const colors2 = this.get("colors"); + if (colors2) { + colors2.reset(); + } + const patterns = this.get("patterns"); + if (patterns) { + patterns.reset(); + } + } else if (change.type === "push") { + children.moveValue(change.newValue); + this._processSeries(change.newValue); + } else if (change.type === "setIndex") { + children.setIndex(change.index, change.newValue); + this._processSeries(change.newValue); + } else if (change.type === "insertIndex") { + children.insertIndex(change.index, change.newValue); + this._processSeries(change.newValue); + } else if (change.type === "removeIndex") { + this._removeSeries(change.oldValue); + } else if (change.type === "moveIndex") { + children.moveValue(change.value, change.newIndex); + this._processSeries(change.value); + } else if (change.type === "swap") { + const a = change.a; + const b = change.b; + const aIndex = this.series.indexOf(a); + const bIndex = this.series.indexOf(b); + children.moveValue(a, bIndex); + children.moveValue(b, aIndex); + this.series.each((series) => { + this._processSeries(series); + series.markDirtyValues(); + }); + } else { + throw new Error("Unknown IListEvent type"); + } + })); + } + _processSeries(series) { + series.chart = this; + series._placeBulletsContainer(this); + } + _removeSeries(series) { + series._handleRemoved(); + if (!series.isDisposed()) { + this.seriesContainer.children.removeValue(series); + series._removeBulletsContainer(); + } + } + }; + SerialChart.className = "SerialChart"; + SerialChart.classNames = Chart.classNames.concat([SerialChart.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/ColorSet.js + var ColorSet = class extends Entity { + //protected _currentPass: number = 0; + _afterNew() { + super._afterNewApplyThemes(); + this._dirty["colors"] = false; + } + _beforeChanged() { + if (this.isDirty("colors")) { + this.reset(); + } + } + /** + * @ignore + */ + generateColors() { + this.setPrivate("currentPass", this.getPrivate("currentPass", 0) + 1); + const pass = this.getPrivate("currentPass"); + const colors2 = this.get("colors", [this.get("baseColor", Color.fromHex(16711680))]); + if (!this.getPrivate("numColors")) { + this.setPrivate("numColors", colors2.length); + } + const len = this.getPrivate("numColors"); + const start = 0; + const passOptions = this.get("passOptions"); + const reuse = this.get("reuse"); + for (let i = start; i < len; i++) { + if (reuse) { + colors2.push(colors2[i]); + } else { + const hsl = colors2[i].toHSL(); + let h = hsl.h + (passOptions.hue || 0) * pass; + while (h > 1) + h -= 1; + let s2 = hsl.s + (passOptions.saturation || 0) * pass; + if (s2 > 1) + s2 = 1; + if (s2 < 0) + s2 = 0; + let l = hsl.l + (passOptions.lightness || 0) * pass; + while (l > 1) + l -= 1; + colors2.push(Color.fromHSL(h, s2, l)); + } + } + } + /** + * Returns a [[Color]] at specific index. + * + * If there's no color at this index, a new color is generated. + * + * @param index Index + * @return Color + */ + getIndex(index) { + const colors2 = this.get("colors", []); + const saturation = this.get("saturation"); + if (index >= colors2.length) { + this.generateColors(); + return this.getIndex(index); + } + return saturation != null ? Color.saturate(colors2[index], saturation) : colors2[index]; + } + /** + * Returns next [[Color]] in the list. + * + * If the list is out of colors, new ones are generated dynamically. + */ + next() { + let currentStep = this.getPrivate("currentStep", this.get("startIndex", 0)); + this.setPrivate("currentStep", currentStep + this.get("step", 1)); + return this.getIndex(currentStep); + } + /** + * Resets counter to the start of the list, so the next call for `next()` will + * return the first color. + */ + reset() { + this.setPrivate("currentStep", this.get("startIndex", 0)); + this.setPrivate("currentPass", 0); + } + }; + ColorSet.className = "ColorSet"; + ColorSet.classNames = Entity.classNames.concat([ColorSet.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/map/MapSeries.js + var MapSeries = class extends Series { + constructor() { + super(...arguments); + this._types = []; + this._geometries = []; + this._geoJSONparsed = false; + this._excluded = []; + this._notIncluded = []; + } + _afterNew() { + this.fields.push("geometry", "geometryType"); + this._setRawDefault("geometryField", "geometry"); + this._setRawDefault("geometryTypeField", "geometryType"); + this._setRawDefault("idField", "id"); + this.on("geoJSON", (geoJSON) => { + let previous = this._prevSettings.geoJSON; + if (previous && previous != geoJSON) { + this.data.clear(); + } + }); + super._afterNew(); + } + _handleDirties() { + const geoJSON = this.get("geoJSON"); + let previous = this._prevSettings.geoJSON; + if (previous && previous != geoJSON) { + this._prevSettings.geoJSON = void 0; + this._geoJSONparsed = false; + } + if (!this._geoJSONparsed) { + this._parseGeoJSON(); + this._geoJSONparsed = true; + } + } + _prepareChildren() { + super._prepareChildren(); + if (this._valuesDirty) { + this._handleDirties(); + } + if (this.get("geoJSON") && (this.isDirty("geoJSON") || this.isDirty("include") || this.isDirty("exclude"))) { + this._handleDirties(); + const chart2 = this.chart; + const exclude = this.get("exclude"); + if (exclude) { + if (chart2) { + chart2._centerLocation = null; + } + each(exclude, (id) => { + const dataItem = this.getDataItemById(id); + if (dataItem) { + this._excludeDataItem(dataItem); + } + }); + each(this._excluded, (dataItem) => { + const id = dataItem.get("id"); + if (id) { + if (exclude.indexOf(id) == -1) { + this._unexcludeDataItem(dataItem); + } + } + }); + } + if (!exclude || exclude.length == 0) { + each(this._excluded, (dataItem) => { + this._unexcludeDataItem(dataItem); + }); + this._excluded = []; + } + const include = this.get("include"); + if (include) { + if (chart2) { + chart2._centerLocation = null; + } + each(this.dataItems, (dataItem) => { + const id = dataItem.get("id"); + if (id && include.indexOf(id) == -1) { + this._notIncludeDataItem(dataItem); + } else { + this._unNotIncludeDataItem(dataItem); + } + }); + } + if (!include) { + each(this._notIncluded, (dataItem) => { + this._unNotIncludeDataItem(dataItem); + }); + this._notIncluded = []; + } + } + } + _excludeDataItem(dataItem) { + this._removeGeometry(dataItem.get("geometry")); + move(this._excluded, dataItem); + } + _unexcludeDataItem(dataItem) { + this._addGeometry(dataItem.get("geometry"), this); + } + _notIncludeDataItem(dataItem) { + this._removeGeometry(dataItem.get("geometry")); + move(this._notIncluded, dataItem); + } + _unNotIncludeDataItem(dataItem) { + this._addGeometry(dataItem.get("geometry"), this); + } + checkInclude(id, includes, excludes) { + if (includes) { + if (includes.length == 0) { + return false; + } else { + if (includes.indexOf(id) == -1) { + return false; + } + } + } + if (excludes && excludes.length > 0) { + if (excludes.indexOf(id) != -1) { + return false; + } + } + return true; + } + _parseGeoJSON() { + const geoJSON = this.get("geoJSON"); + if (geoJSON) { + let features; + if (geoJSON.type == "FeatureCollection") { + features = geoJSON.features; + } else if (geoJSON.type == "Feature") { + features = [geoJSON]; + } else if (["Point", "LineString", "Polygon", "MultiPoint", "MultiLineString", "MultiPolygon"].indexOf(geoJSON.type) != -1) { + features = [{ geometry: geoJSON }]; + } else { + console.log("nothing found in geoJSON"); + } + const geodataNames = this.get("geodataNames"); + if (features) { + const idField = this.get("idField", "id"); + for (let i = 0, len = features.length; i < len; i++) { + let feature = features[i]; + let geometry = feature.geometry; + if (geometry) { + let type2 = geometry.type; + let id = feature[idField]; + if (geodataNames && geodataNames[id]) { + feature.properties.name = geodataNames[id]; + } + if (this._types.indexOf(type2) != -1) { + let dataItem; + if (id != null) { + dataItem = find(this.dataItems, (value) => { + return value.get("id") == id; + }); + } + let dataObject; + if (dataItem) { + dataObject = dataItem.dataContext; + } + if (!dataItem) { + dataObject = { geometry, geometryType: type2, madeFromGeoData: true }; + dataObject[idField] = id; + this.data.push(dataObject); + } else { + if (!dataObject.geometry) { + dataObject.geometry = geometry; + dataObject.geometryType = type2; + dataItem.set("geometry", geometry); + dataItem.set("geometryType", type2); + this.processDataItem(dataItem); + } + } + softCopyProperties(feature.properties, dataObject); + } + } + } + } + const type = "geodataprocessed"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this }); + } + } + } + _placeBulletsContainer(_chart) { + this.children.moveValue(this.bulletsContainer); + } + _removeBulletsContainer() { + } + /** + * @ignore + */ + projection() { + const chart2 = this.chart; + if (chart2) { + return chart2.get("projection"); + } + } + /** + * @ignore + */ + geoPath() { + const chart2 = this.chart; + if (chart2) { + return chart2.getPrivate("geoPath"); + } + } + _addGeometry(geometry, series) { + if (geometry && series.get("affectsBounds", true)) { + this._geometries.push(geometry); + const chart2 = this.chart; + if (chart2) { + chart2.markDirtyGeometries(); + } + } + } + _removeGeometry(geometry) { + if (geometry) { + remove(this._geometries, geometry); + const chart2 = this.chart; + if (chart2) { + chart2.markDirtyGeometries(); + } + } + } + _dispose() { + super._dispose(); + const chart2 = this.chart; + if (chart2) { + chart2.series.removeValue(this); + } + } + _onDataClear() { + super._onDataClear(); + this._geoJSONparsed = false; + this._markDirtyKey("exclude"); + } + }; + MapSeries.className = "MapSeries"; + MapSeries.classNames = Series.classNames.concat([MapSeries.className]); + + // node_modules/d3-array/src/fsum.js + var Adder = class { + constructor() { + this._partials = new Float64Array(32); + this._n = 0; + } + add(x) { + const p = this._partials; + let i = 0; + for (let j = 0; j < this._n && j < 32; j++) { + const y = p[j], hi = x + y, lo = Math.abs(x) < Math.abs(y) ? x - (hi - y) : y - (hi - x); + if (lo) p[i++] = lo; + x = hi; + } + p[i] = x; + this._n = i + 1; + return this; + } + valueOf() { + const p = this._partials; + let n = this._n, x, y, lo, hi = 0; + if (n > 0) { + hi = p[--n]; + while (n > 0) { + x = hi; + y = p[--n]; + hi = x + y; + lo = y - (hi - x); + if (lo) break; + } + if (n > 0 && (lo < 0 && p[n - 1] < 0 || lo > 0 && p[n - 1] > 0)) { + y = lo * 2; + x = hi + y; + if (y == x - hi) hi = x; + } + } + return hi; + } + }; + + // node_modules/d3-array/src/merge.js + function* flatten(arrays) { + for (const array of arrays) { + yield* array; + } + } + function merge(arrays) { + return Array.from(flatten(arrays)); + } + + // node_modules/d3-geo/src/math.js + var epsilon = 1e-6; + var epsilon2 = 1e-12; + var pi = Math.PI; + var halfPi = pi / 2; + var quarterPi = pi / 4; + var tau2 = pi * 2; + var degrees = 180 / pi; + var radians = pi / 180; + var abs = Math.abs; + var atan = Math.atan; + var atan2 = Math.atan2; + var cos2 = Math.cos; + var exp = Math.exp; + var hypot = Math.hypot; + var log = Math.log; + var sin2 = Math.sin; + var sign = Math.sign || function(x) { + return x > 0 ? 1 : x < 0 ? -1 : 0; + }; + var sqrt = Math.sqrt; + var tan = Math.tan; + function acos(x) { + return x > 1 ? 0 : x < -1 ? pi : Math.acos(x); + } + function asin(x) { + return x > 1 ? halfPi : x < -1 ? -halfPi : Math.asin(x); + } + + // node_modules/d3-geo/src/noop.js + function noop() { + } + + // node_modules/d3-geo/src/stream.js + function streamGeometry(geometry, stream) { + if (geometry && streamGeometryType.hasOwnProperty(geometry.type)) { + streamGeometryType[geometry.type](geometry, stream); + } + } + var streamObjectType = { + Feature: function(object, stream) { + streamGeometry(object.geometry, stream); + }, + FeatureCollection: function(object, stream) { + var features = object.features, i = -1, n = features.length; + while (++i < n) streamGeometry(features[i].geometry, stream); + } + }; + var streamGeometryType = { + Sphere: function(object, stream) { + stream.sphere(); + }, + Point: function(object, stream) { + object = object.coordinates; + stream.point(object[0], object[1], object[2]); + }, + MultiPoint: function(object, stream) { + var coordinates = object.coordinates, i = -1, n = coordinates.length; + while (++i < n) object = coordinates[i], stream.point(object[0], object[1], object[2]); + }, + LineString: function(object, stream) { + streamLine(object.coordinates, stream, 0); + }, + MultiLineString: function(object, stream) { + var coordinates = object.coordinates, i = -1, n = coordinates.length; + while (++i < n) streamLine(coordinates[i], stream, 0); + }, + Polygon: function(object, stream) { + streamPolygon(object.coordinates, stream); + }, + MultiPolygon: function(object, stream) { + var coordinates = object.coordinates, i = -1, n = coordinates.length; + while (++i < n) streamPolygon(coordinates[i], stream); + }, + GeometryCollection: function(object, stream) { + var geometries = object.geometries, i = -1, n = geometries.length; + while (++i < n) streamGeometry(geometries[i], stream); + } + }; + function streamLine(coordinates, stream, closed) { + var i = -1, n = coordinates.length - closed, coordinate; + stream.lineStart(); + while (++i < n) coordinate = coordinates[i], stream.point(coordinate[0], coordinate[1], coordinate[2]); + stream.lineEnd(); + } + function streamPolygon(coordinates, stream) { + var i = -1, n = coordinates.length; + stream.polygonStart(); + while (++i < n) streamLine(coordinates[i], stream, 1); + stream.polygonEnd(); + } + function stream_default(object, stream) { + if (object && streamObjectType.hasOwnProperty(object.type)) { + streamObjectType[object.type](object, stream); + } else { + streamGeometry(object, stream); + } + } + + // node_modules/d3-geo/src/area.js + var areaRingSum = new Adder(); + var areaSum = new Adder(); + var lambda00; + var phi00; + var lambda0; + var cosPhi0; + var sinPhi0; + var areaStream = { + point: noop, + lineStart: noop, + lineEnd: noop, + polygonStart: function() { + areaRingSum = new Adder(); + areaStream.lineStart = areaRingStart; + areaStream.lineEnd = areaRingEnd; + }, + polygonEnd: function() { + var areaRing = +areaRingSum; + areaSum.add(areaRing < 0 ? tau2 + areaRing : areaRing); + this.lineStart = this.lineEnd = this.point = noop; + }, + sphere: function() { + areaSum.add(tau2); + } + }; + function areaRingStart() { + areaStream.point = areaPointFirst; + } + function areaRingEnd() { + areaPoint(lambda00, phi00); + } + function areaPointFirst(lambda, phi) { + areaStream.point = areaPoint; + lambda00 = lambda, phi00 = phi; + lambda *= radians, phi *= radians; + lambda0 = lambda, cosPhi0 = cos2(phi = phi / 2 + quarterPi), sinPhi0 = sin2(phi); + } + function areaPoint(lambda, phi) { + lambda *= radians, phi *= radians; + phi = phi / 2 + quarterPi; + var dLambda = lambda - lambda0, sdLambda = dLambda >= 0 ? 1 : -1, adLambda = sdLambda * dLambda, cosPhi = cos2(phi), sinPhi = sin2(phi), k = sinPhi0 * sinPhi, u = cosPhi0 * cosPhi + k * cos2(adLambda), v = k * sdLambda * sin2(adLambda); + areaRingSum.add(atan2(v, u)); + lambda0 = lambda, cosPhi0 = cosPhi, sinPhi0 = sinPhi; + } + function area_default(object) { + areaSum = new Adder(); + stream_default(object, areaStream); + return areaSum * 2; + } + + // node_modules/d3-geo/src/cartesian.js + function spherical(cartesian2) { + return [atan2(cartesian2[1], cartesian2[0]), asin(cartesian2[2])]; + } + function cartesian(spherical2) { + var lambda = spherical2[0], phi = spherical2[1], cosPhi = cos2(phi); + return [cosPhi * cos2(lambda), cosPhi * sin2(lambda), sin2(phi)]; + } + function cartesianDot(a, b) { + return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; + } + function cartesianCross(a, b) { + return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]]; + } + function cartesianAddInPlace(a, b) { + a[0] += b[0], a[1] += b[1], a[2] += b[2]; + } + function cartesianScale(vector, k) { + return [vector[0] * k, vector[1] * k, vector[2] * k]; + } + function cartesianNormalizeInPlace(d) { + var l = sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]); + d[0] /= l, d[1] /= l, d[2] /= l; + } + + // node_modules/d3-geo/src/bounds.js + var lambda02; + var phi0; + var lambda1; + var phi1; + var lambda2; + var lambda002; + var phi002; + var p02; + var deltaSum; + var ranges; + var range2; + var boundsStream = { + point: boundsPoint, + lineStart: boundsLineStart, + lineEnd: boundsLineEnd, + polygonStart: function() { + boundsStream.point = boundsRingPoint; + boundsStream.lineStart = boundsRingStart; + boundsStream.lineEnd = boundsRingEnd; + deltaSum = new Adder(); + areaStream.polygonStart(); + }, + polygonEnd: function() { + areaStream.polygonEnd(); + boundsStream.point = boundsPoint; + boundsStream.lineStart = boundsLineStart; + boundsStream.lineEnd = boundsLineEnd; + if (areaRingSum < 0) lambda02 = -(lambda1 = 180), phi0 = -(phi1 = 90); + else if (deltaSum > epsilon) phi1 = 90; + else if (deltaSum < -epsilon) phi0 = -90; + range2[0] = lambda02, range2[1] = lambda1; + }, + sphere: function() { + lambda02 = -(lambda1 = 180), phi0 = -(phi1 = 90); + } + }; + function boundsPoint(lambda, phi) { + ranges.push(range2 = [lambda02 = lambda, lambda1 = lambda]); + if (phi < phi0) phi0 = phi; + if (phi > phi1) phi1 = phi; + } + function linePoint(lambda, phi) { + var p = cartesian([lambda * radians, phi * radians]); + if (p02) { + var normal = cartesianCross(p02, p), equatorial = [normal[1], -normal[0], 0], inflection = cartesianCross(equatorial, normal); + cartesianNormalizeInPlace(inflection); + inflection = spherical(inflection); + var delta = lambda - lambda2, sign2 = delta > 0 ? 1 : -1, lambdai = inflection[0] * degrees * sign2, phii, antimeridian = abs(delta) > 180; + if (antimeridian ^ (sign2 * lambda2 < lambdai && lambdai < sign2 * lambda)) { + phii = inflection[1] * degrees; + if (phii > phi1) phi1 = phii; + } else if (lambdai = (lambdai + 360) % 360 - 180, antimeridian ^ (sign2 * lambda2 < lambdai && lambdai < sign2 * lambda)) { + phii = -inflection[1] * degrees; + if (phii < phi0) phi0 = phii; + } else { + if (phi < phi0) phi0 = phi; + if (phi > phi1) phi1 = phi; + } + if (antimeridian) { + if (lambda < lambda2) { + if (angle(lambda02, lambda) > angle(lambda02, lambda1)) lambda1 = lambda; + } else { + if (angle(lambda, lambda1) > angle(lambda02, lambda1)) lambda02 = lambda; + } + } else { + if (lambda1 >= lambda02) { + if (lambda < lambda02) lambda02 = lambda; + if (lambda > lambda1) lambda1 = lambda; + } else { + if (lambda > lambda2) { + if (angle(lambda02, lambda) > angle(lambda02, lambda1)) lambda1 = lambda; + } else { + if (angle(lambda, lambda1) > angle(lambda02, lambda1)) lambda02 = lambda; + } + } + } + } else { + ranges.push(range2 = [lambda02 = lambda, lambda1 = lambda]); + } + if (phi < phi0) phi0 = phi; + if (phi > phi1) phi1 = phi; + p02 = p, lambda2 = lambda; + } + function boundsLineStart() { + boundsStream.point = linePoint; + } + function boundsLineEnd() { + range2[0] = lambda02, range2[1] = lambda1; + boundsStream.point = boundsPoint; + p02 = null; + } + function boundsRingPoint(lambda, phi) { + if (p02) { + var delta = lambda - lambda2; + deltaSum.add(abs(delta) > 180 ? delta + (delta > 0 ? 360 : -360) : delta); + } else { + lambda002 = lambda, phi002 = phi; + } + areaStream.point(lambda, phi); + linePoint(lambda, phi); + } + function boundsRingStart() { + areaStream.lineStart(); + } + function boundsRingEnd() { + boundsRingPoint(lambda002, phi002); + areaStream.lineEnd(); + if (abs(deltaSum) > epsilon) lambda02 = -(lambda1 = 180); + range2[0] = lambda02, range2[1] = lambda1; + p02 = null; + } + function angle(lambda03, lambda12) { + return (lambda12 -= lambda03) < 0 ? lambda12 + 360 : lambda12; + } + function rangeCompare(a, b) { + return a[0] - b[0]; + } + function rangeContains(range3, x) { + return range3[0] <= range3[1] ? range3[0] <= x && x <= range3[1] : x < range3[0] || range3[1] < x; + } + function bounds_default(feature) { + var i, n, a, b, merged, deltaMax, delta; + phi1 = lambda1 = -(lambda02 = phi0 = Infinity); + ranges = []; + stream_default(feature, boundsStream); + if (n = ranges.length) { + ranges.sort(rangeCompare); + for (i = 1, a = ranges[0], merged = [a]; i < n; ++i) { + b = ranges[i]; + if (rangeContains(a, b[0]) || rangeContains(a, b[1])) { + if (angle(a[0], b[1]) > angle(a[0], a[1])) a[1] = b[1]; + if (angle(b[0], a[1]) > angle(a[0], a[1])) a[0] = b[0]; + } else { + merged.push(a = b); + } + } + for (deltaMax = -Infinity, n = merged.length - 1, i = 0, a = merged[n]; i <= n; a = b, ++i) { + b = merged[i]; + if ((delta = angle(a[1], b[0])) > deltaMax) deltaMax = delta, lambda02 = b[0], lambda1 = a[1]; + } + } + ranges = range2 = null; + return lambda02 === Infinity || phi0 === Infinity ? [[NaN, NaN], [NaN, NaN]] : [[lambda02, phi0], [lambda1, phi1]]; + } + + // node_modules/d3-geo/src/centroid.js + var W0; + var W1; + var X0; + var Y0; + var Z0; + var X1; + var Y1; + var Z1; + var X2; + var Y2; + var Z2; + var lambda003; + var phi003; + var x0; + var y0; + var z0; + var centroidStream = { + sphere: noop, + point: centroidPoint, + lineStart: centroidLineStart, + lineEnd: centroidLineEnd, + polygonStart: function() { + centroidStream.lineStart = centroidRingStart; + centroidStream.lineEnd = centroidRingEnd; + }, + polygonEnd: function() { + centroidStream.lineStart = centroidLineStart; + centroidStream.lineEnd = centroidLineEnd; + } + }; + function centroidPoint(lambda, phi) { + lambda *= radians, phi *= radians; + var cosPhi = cos2(phi); + centroidPointCartesian(cosPhi * cos2(lambda), cosPhi * sin2(lambda), sin2(phi)); + } + function centroidPointCartesian(x, y, z) { + ++W0; + X0 += (x - X0) / W0; + Y0 += (y - Y0) / W0; + Z0 += (z - Z0) / W0; + } + function centroidLineStart() { + centroidStream.point = centroidLinePointFirst; + } + function centroidLinePointFirst(lambda, phi) { + lambda *= radians, phi *= radians; + var cosPhi = cos2(phi); + x0 = cosPhi * cos2(lambda); + y0 = cosPhi * sin2(lambda); + z0 = sin2(phi); + centroidStream.point = centroidLinePoint; + centroidPointCartesian(x0, y0, z0); + } + function centroidLinePoint(lambda, phi) { + lambda *= radians, phi *= radians; + var cosPhi = cos2(phi), x = cosPhi * cos2(lambda), y = cosPhi * sin2(lambda), z = sin2(phi), w = atan2(sqrt((w = y0 * z - z0 * y) * w + (w = z0 * x - x0 * z) * w + (w = x0 * y - y0 * x) * w), x0 * x + y0 * y + z0 * z); + W1 += w; + X1 += w * (x0 + (x0 = x)); + Y1 += w * (y0 + (y0 = y)); + Z1 += w * (z0 + (z0 = z)); + centroidPointCartesian(x0, y0, z0); + } + function centroidLineEnd() { + centroidStream.point = centroidPoint; + } + function centroidRingStart() { + centroidStream.point = centroidRingPointFirst; + } + function centroidRingEnd() { + centroidRingPoint(lambda003, phi003); + centroidStream.point = centroidPoint; + } + function centroidRingPointFirst(lambda, phi) { + lambda003 = lambda, phi003 = phi; + lambda *= radians, phi *= radians; + centroidStream.point = centroidRingPoint; + var cosPhi = cos2(phi); + x0 = cosPhi * cos2(lambda); + y0 = cosPhi * sin2(lambda); + z0 = sin2(phi); + centroidPointCartesian(x0, y0, z0); + } + function centroidRingPoint(lambda, phi) { + lambda *= radians, phi *= radians; + var cosPhi = cos2(phi), x = cosPhi * cos2(lambda), y = cosPhi * sin2(lambda), z = sin2(phi), cx = y0 * z - z0 * y, cy = z0 * x - x0 * z, cz = x0 * y - y0 * x, m = hypot(cx, cy, cz), w = asin(m), v = m && -w / m; + X2.add(v * cx); + Y2.add(v * cy); + Z2.add(v * cz); + W1 += w; + X1 += w * (x0 + (x0 = x)); + Y1 += w * (y0 + (y0 = y)); + Z1 += w * (z0 + (z0 = z)); + centroidPointCartesian(x0, y0, z0); + } + function centroid_default(object) { + W0 = W1 = X0 = Y0 = Z0 = X1 = Y1 = Z1 = 0; + X2 = new Adder(); + Y2 = new Adder(); + Z2 = new Adder(); + stream_default(object, centroidStream); + var x = +X2, y = +Y2, z = +Z2, m = hypot(x, y, z); + if (m < epsilon2) { + x = X1, y = Y1, z = Z1; + if (W1 < epsilon) x = X0, y = Y0, z = Z0; + m = hypot(x, y, z); + if (m < epsilon2) return [NaN, NaN]; + } + return [atan2(y, x) * degrees, asin(z / m) * degrees]; + } + + // node_modules/d3-geo/src/compose.js + function compose_default(a, b) { + function compose(x, y) { + return x = a(x, y), b(x[0], x[1]); + } + if (a.invert && b.invert) compose.invert = function(x, y) { + return x = b.invert(x, y), x && a.invert(x[0], x[1]); + }; + return compose; + } + + // node_modules/d3-geo/src/rotation.js + function rotationIdentity(lambda, phi) { + if (abs(lambda) > pi) lambda -= Math.round(lambda / tau2) * tau2; + return [lambda, phi]; + } + rotationIdentity.invert = rotationIdentity; + function rotateRadians(deltaLambda, deltaPhi, deltaGamma) { + return (deltaLambda %= tau2) ? deltaPhi || deltaGamma ? compose_default(rotationLambda(deltaLambda), rotationPhiGamma(deltaPhi, deltaGamma)) : rotationLambda(deltaLambda) : deltaPhi || deltaGamma ? rotationPhiGamma(deltaPhi, deltaGamma) : rotationIdentity; + } + function forwardRotationLambda(deltaLambda) { + return function(lambda, phi) { + lambda += deltaLambda; + if (abs(lambda) > pi) lambda -= Math.round(lambda / tau2) * tau2; + return [lambda, phi]; + }; + } + function rotationLambda(deltaLambda) { + var rotation = forwardRotationLambda(deltaLambda); + rotation.invert = forwardRotationLambda(-deltaLambda); + return rotation; + } + function rotationPhiGamma(deltaPhi, deltaGamma) { + var cosDeltaPhi = cos2(deltaPhi), sinDeltaPhi = sin2(deltaPhi), cosDeltaGamma = cos2(deltaGamma), sinDeltaGamma = sin2(deltaGamma); + function rotation(lambda, phi) { + var cosPhi = cos2(phi), x = cos2(lambda) * cosPhi, y = sin2(lambda) * cosPhi, z = sin2(phi), k = z * cosDeltaPhi + x * sinDeltaPhi; + return [ + atan2(y * cosDeltaGamma - k * sinDeltaGamma, x * cosDeltaPhi - z * sinDeltaPhi), + asin(k * cosDeltaGamma + y * sinDeltaGamma) + ]; + } + rotation.invert = function(lambda, phi) { + var cosPhi = cos2(phi), x = cos2(lambda) * cosPhi, y = sin2(lambda) * cosPhi, z = sin2(phi), k = z * cosDeltaGamma - y * sinDeltaGamma; + return [ + atan2(y * cosDeltaGamma + z * sinDeltaGamma, x * cosDeltaPhi + k * sinDeltaPhi), + asin(k * cosDeltaPhi - x * sinDeltaPhi) + ]; + }; + return rotation; + } + function rotation_default(rotate) { + rotate = rotateRadians(rotate[0] * radians, rotate[1] * radians, rotate.length > 2 ? rotate[2] * radians : 0); + function forward(coordinates) { + coordinates = rotate(coordinates[0] * radians, coordinates[1] * radians); + return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates; + } + forward.invert = function(coordinates) { + coordinates = rotate.invert(coordinates[0] * radians, coordinates[1] * radians); + return coordinates[0] *= degrees, coordinates[1] *= degrees, coordinates; + }; + return forward; + } + + // node_modules/d3-geo/src/circle.js + function circleStream(stream, radius, delta, direction, t0, t1) { + if (!delta) return; + var cosRadius = cos2(radius), sinRadius = sin2(radius), step = direction * delta; + if (t0 == null) { + t0 = radius + direction * tau2; + t1 = radius - step / 2; + } else { + t0 = circleRadius(cosRadius, t0); + t1 = circleRadius(cosRadius, t1); + if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * tau2; + } + for (var point, t = t0; direction > 0 ? t > t1 : t < t1; t -= step) { + point = spherical([cosRadius, -sinRadius * cos2(t), -sinRadius * sin2(t)]); + stream.point(point[0], point[1]); + } + } + function circleRadius(cosRadius, point) { + point = cartesian(point), point[0] -= cosRadius; + cartesianNormalizeInPlace(point); + var radius = acos(-point[1]); + return ((-point[2] < 0 ? -radius : radius) + tau2 - epsilon) % tau2; + } + + // node_modules/d3-geo/src/clip/buffer.js + function buffer_default() { + var lines = [], line; + return { + point: function(x, y, m) { + line.push([x, y, m]); + }, + lineStart: function() { + lines.push(line = []); + }, + lineEnd: noop, + rejoin: function() { + if (lines.length > 1) lines.push(lines.pop().concat(lines.shift())); + }, + result: function() { + var result = lines; + lines = []; + line = null; + return result; + } + }; + } + + // node_modules/d3-geo/src/pointEqual.js + function pointEqual_default(a, b) { + return abs(a[0] - b[0]) < epsilon && abs(a[1] - b[1]) < epsilon; + } + + // node_modules/d3-geo/src/clip/rejoin.js + function Intersection(point, points, other, entry) { + this.x = point; + this.z = points; + this.o = other; + this.e = entry; + this.v = false; + this.n = this.p = null; + } + function rejoin_default(segments, compareIntersection2, startInside, interpolate, stream) { + var subject = [], clip = [], i, n; + segments.forEach(function(segment) { + if ((n2 = segment.length - 1) <= 0) return; + var n2, p03 = segment[0], p1 = segment[n2], x; + if (pointEqual_default(p03, p1)) { + if (!p03[2] && !p1[2]) { + stream.lineStart(); + for (i = 0; i < n2; ++i) stream.point((p03 = segment[i])[0], p03[1]); + stream.lineEnd(); + return; + } + p1[0] += 2 * epsilon; + } + subject.push(x = new Intersection(p03, segment, null, true)); + clip.push(x.o = new Intersection(p03, null, x, false)); + subject.push(x = new Intersection(p1, segment, null, false)); + clip.push(x.o = new Intersection(p1, null, x, true)); + }); + if (!subject.length) return; + clip.sort(compareIntersection2); + link(subject); + link(clip); + for (i = 0, n = clip.length; i < n; ++i) { + clip[i].e = startInside = !startInside; + } + var start = subject[0], points, point; + while (1) { + var current = start, isSubject = true; + while (current.v) if ((current = current.n) === start) return; + points = current.z; + stream.lineStart(); + do { + current.v = current.o.v = true; + if (current.e) { + if (isSubject) { + for (i = 0, n = points.length; i < n; ++i) stream.point((point = points[i])[0], point[1]); + } else { + interpolate(current.x, current.n.x, 1, stream); + } + current = current.n; + } else { + if (isSubject) { + points = current.p.z; + for (i = points.length - 1; i >= 0; --i) stream.point((point = points[i])[0], point[1]); + } else { + interpolate(current.x, current.p.x, -1, stream); + } + current = current.p; + } + current = current.o; + points = current.z; + isSubject = !isSubject; + } while (!current.v); + stream.lineEnd(); + } + } + function link(array) { + if (!(n = array.length)) return; + var n, i = 0, a = array[0], b; + while (++i < n) { + a.n = b = array[i]; + b.p = a; + a = b; + } + a.n = b = array[0]; + b.p = a; + } + + // node_modules/d3-geo/src/polygonContains.js + function longitude(point) { + return abs(point[0]) <= pi ? point[0] : sign(point[0]) * ((abs(point[0]) + pi) % tau2 - pi); + } + function polygonContains_default(polygon, point) { + var lambda = longitude(point), phi = point[1], sinPhi = sin2(phi), normal = [sin2(lambda), -cos2(lambda), 0], angle2 = 0, winding = 0; + var sum = new Adder(); + if (sinPhi === 1) phi = halfPi + epsilon; + else if (sinPhi === -1) phi = -halfPi - epsilon; + for (var i = 0, n = polygon.length; i < n; ++i) { + if (!(m = (ring = polygon[i]).length)) continue; + var ring, m, point0 = ring[m - 1], lambda03 = longitude(point0), phi02 = point0[1] / 2 + quarterPi, sinPhi02 = sin2(phi02), cosPhi02 = cos2(phi02); + for (var j = 0; j < m; ++j, lambda03 = lambda12, sinPhi02 = sinPhi1, cosPhi02 = cosPhi1, point0 = point1) { + var point1 = ring[j], lambda12 = longitude(point1), phi12 = point1[1] / 2 + quarterPi, sinPhi1 = sin2(phi12), cosPhi1 = cos2(phi12), delta = lambda12 - lambda03, sign2 = delta >= 0 ? 1 : -1, absDelta = sign2 * delta, antimeridian = absDelta > pi, k = sinPhi02 * sinPhi1; + sum.add(atan2(k * sign2 * sin2(absDelta), cosPhi02 * cosPhi1 + k * cos2(absDelta))); + angle2 += antimeridian ? delta + sign2 * tau2 : delta; + if (antimeridian ^ lambda03 >= lambda ^ lambda12 >= lambda) { + var arc = cartesianCross(cartesian(point0), cartesian(point1)); + cartesianNormalizeInPlace(arc); + var intersection = cartesianCross(normal, arc); + cartesianNormalizeInPlace(intersection); + var phiArc = (antimeridian ^ delta >= 0 ? -1 : 1) * asin(intersection[2]); + if (phi > phiArc || phi === phiArc && (arc[0] || arc[1])) { + winding += antimeridian ^ delta >= 0 ? 1 : -1; + } + } + } + } + return (angle2 < -epsilon || angle2 < epsilon && sum < -epsilon2) ^ winding & 1; + } + + // node_modules/d3-geo/src/clip/index.js + function clip_default(pointVisible, clipLine, interpolate, start) { + return function(sink) { + var line = clipLine(sink), ringBuffer = buffer_default(), ringSink = clipLine(ringBuffer), polygonStarted = false, polygon, segments, ring; + var clip = { + point, + lineStart, + lineEnd, + polygonStart: function() { + clip.point = pointRing; + clip.lineStart = ringStart; + clip.lineEnd = ringEnd; + segments = []; + polygon = []; + }, + polygonEnd: function() { + clip.point = point; + clip.lineStart = lineStart; + clip.lineEnd = lineEnd; + segments = merge(segments); + var startInside = polygonContains_default(polygon, start); + if (segments.length) { + if (!polygonStarted) sink.polygonStart(), polygonStarted = true; + rejoin_default(segments, compareIntersection, startInside, interpolate, sink); + } else if (startInside) { + if (!polygonStarted) sink.polygonStart(), polygonStarted = true; + sink.lineStart(); + interpolate(null, null, 1, sink); + sink.lineEnd(); + } + if (polygonStarted) sink.polygonEnd(), polygonStarted = false; + segments = polygon = null; + }, + sphere: function() { + sink.polygonStart(); + sink.lineStart(); + interpolate(null, null, 1, sink); + sink.lineEnd(); + sink.polygonEnd(); + } + }; + function point(lambda, phi) { + if (pointVisible(lambda, phi)) sink.point(lambda, phi); + } + function pointLine(lambda, phi) { + line.point(lambda, phi); + } + function lineStart() { + clip.point = pointLine; + line.lineStart(); + } + function lineEnd() { + clip.point = point; + line.lineEnd(); + } + function pointRing(lambda, phi) { + ring.push([lambda, phi]); + ringSink.point(lambda, phi); + } + function ringStart() { + ringSink.lineStart(); + ring = []; + } + function ringEnd() { + pointRing(ring[0][0], ring[0][1]); + ringSink.lineEnd(); + var clean = ringSink.clean(), ringSegments = ringBuffer.result(), i, n = ringSegments.length, m, segment, point2; + ring.pop(); + polygon.push(ring); + ring = null; + if (!n) return; + if (clean & 1) { + segment = ringSegments[0]; + if ((m = segment.length - 1) > 0) { + if (!polygonStarted) sink.polygonStart(), polygonStarted = true; + sink.lineStart(); + for (i = 0; i < m; ++i) sink.point((point2 = segment[i])[0], point2[1]); + sink.lineEnd(); + } + return; + } + if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift())); + segments.push(ringSegments.filter(validSegment)); + } + return clip; + }; + } + function validSegment(segment) { + return segment.length > 1; + } + function compareIntersection(a, b) { + return ((a = a.x)[0] < 0 ? a[1] - halfPi - epsilon : halfPi - a[1]) - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]); + } + + // node_modules/d3-geo/src/clip/antimeridian.js + var antimeridian_default = clip_default( + function() { + return true; + }, + clipAntimeridianLine, + clipAntimeridianInterpolate, + [-pi, -halfPi] + ); + function clipAntimeridianLine(stream) { + var lambda03 = NaN, phi02 = NaN, sign0 = NaN, clean; + return { + lineStart: function() { + stream.lineStart(); + clean = 1; + }, + point: function(lambda12, phi12) { + var sign1 = lambda12 > 0 ? pi : -pi, delta = abs(lambda12 - lambda03); + if (abs(delta - pi) < epsilon) { + stream.point(lambda03, phi02 = (phi02 + phi12) / 2 > 0 ? halfPi : -halfPi); + stream.point(sign0, phi02); + stream.lineEnd(); + stream.lineStart(); + stream.point(sign1, phi02); + stream.point(lambda12, phi02); + clean = 0; + } else if (sign0 !== sign1 && delta >= pi) { + if (abs(lambda03 - sign0) < epsilon) lambda03 -= sign0 * epsilon; + if (abs(lambda12 - sign1) < epsilon) lambda12 -= sign1 * epsilon; + phi02 = clipAntimeridianIntersect(lambda03, phi02, lambda12, phi12); + stream.point(sign0, phi02); + stream.lineEnd(); + stream.lineStart(); + stream.point(sign1, phi02); + clean = 0; + } + stream.point(lambda03 = lambda12, phi02 = phi12); + sign0 = sign1; + }, + lineEnd: function() { + stream.lineEnd(); + lambda03 = phi02 = NaN; + }, + clean: function() { + return 2 - clean; + } + }; + } + function clipAntimeridianIntersect(lambda03, phi02, lambda12, phi12) { + var cosPhi02, cosPhi1, sinLambda0Lambda1 = sin2(lambda03 - lambda12); + return abs(sinLambda0Lambda1) > epsilon ? atan((sin2(phi02) * (cosPhi1 = cos2(phi12)) * sin2(lambda12) - sin2(phi12) * (cosPhi02 = cos2(phi02)) * sin2(lambda03)) / (cosPhi02 * cosPhi1 * sinLambda0Lambda1)) : (phi02 + phi12) / 2; + } + function clipAntimeridianInterpolate(from, to, direction, stream) { + var phi; + if (from == null) { + phi = direction * halfPi; + stream.point(-pi, phi); + stream.point(0, phi); + stream.point(pi, phi); + stream.point(pi, 0); + stream.point(pi, -phi); + stream.point(0, -phi); + stream.point(-pi, -phi); + stream.point(-pi, 0); + stream.point(-pi, phi); + } else if (abs(from[0] - to[0]) > epsilon) { + var lambda = from[0] < to[0] ? pi : -pi; + phi = direction * lambda / 2; + stream.point(-lambda, phi); + stream.point(0, phi); + stream.point(lambda, phi); + } else { + stream.point(to[0], to[1]); + } + } + + // node_modules/d3-geo/src/clip/circle.js + function circle_default(radius) { + var cr = cos2(radius), delta = 2 * radians, smallRadius = cr > 0, notHemisphere = abs(cr) > epsilon; + function interpolate(from, to, direction, stream) { + circleStream(stream, radius, delta, direction, from, to); + } + function visible(lambda, phi) { + return cos2(lambda) * cos2(phi) > cr; + } + function clipLine(stream) { + var point0, c0, v0, v00, clean; + return { + lineStart: function() { + v00 = v0 = false; + clean = 1; + }, + point: function(lambda, phi) { + var point1 = [lambda, phi], point2, v = visible(lambda, phi), c = smallRadius ? v ? 0 : code(lambda, phi) : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0; + if (!point0 && (v00 = v0 = v)) stream.lineStart(); + if (v !== v0) { + point2 = intersect(point0, point1); + if (!point2 || pointEqual_default(point0, point2) || pointEqual_default(point1, point2)) + point1[2] = 1; + } + if (v !== v0) { + clean = 0; + if (v) { + stream.lineStart(); + point2 = intersect(point1, point0); + stream.point(point2[0], point2[1]); + } else { + point2 = intersect(point0, point1); + stream.point(point2[0], point2[1], 2); + stream.lineEnd(); + } + point0 = point2; + } else if (notHemisphere && point0 && smallRadius ^ v) { + var t; + if (!(c & c0) && (t = intersect(point1, point0, true))) { + clean = 0; + if (smallRadius) { + stream.lineStart(); + stream.point(t[0][0], t[0][1]); + stream.point(t[1][0], t[1][1]); + stream.lineEnd(); + } else { + stream.point(t[1][0], t[1][1]); + stream.lineEnd(); + stream.lineStart(); + stream.point(t[0][0], t[0][1], 3); + } + } + } + if (v && (!point0 || !pointEqual_default(point0, point1))) { + stream.point(point1[0], point1[1]); + } + point0 = point1, v0 = v, c0 = c; + }, + lineEnd: function() { + if (v0) stream.lineEnd(); + point0 = null; + }, + // Rejoin first and last segments if there were intersections and the first + // and last points were visible. + clean: function() { + return clean | (v00 && v0) << 1; + } + }; + } + function intersect(a, b, two) { + var pa = cartesian(a), pb = cartesian(b); + var n1 = [1, 0, 0], n2 = cartesianCross(pa, pb), n2n2 = cartesianDot(n2, n2), n1n2 = n2[0], determinant = n2n2 - n1n2 * n1n2; + if (!determinant) return !two && a; + var c1 = cr * n2n2 / determinant, c2 = -cr * n1n2 / determinant, n1xn2 = cartesianCross(n1, n2), A = cartesianScale(n1, c1), B = cartesianScale(n2, c2); + cartesianAddInPlace(A, B); + var u = n1xn2, w = cartesianDot(A, u), uu = cartesianDot(u, u), t2 = w * w - uu * (cartesianDot(A, A) - 1); + if (t2 < 0) return; + var t = sqrt(t2), q = cartesianScale(u, (-w - t) / uu); + cartesianAddInPlace(q, A); + q = spherical(q); + if (!two) return q; + var lambda03 = a[0], lambda12 = b[0], phi02 = a[1], phi12 = b[1], z; + if (lambda12 < lambda03) z = lambda03, lambda03 = lambda12, lambda12 = z; + var delta2 = lambda12 - lambda03, polar = abs(delta2 - pi) < epsilon, meridian = polar || delta2 < epsilon; + if (!polar && phi12 < phi02) z = phi02, phi02 = phi12, phi12 = z; + if (meridian ? polar ? phi02 + phi12 > 0 ^ q[1] < (abs(q[0] - lambda03) < epsilon ? phi02 : phi12) : phi02 <= q[1] && q[1] <= phi12 : delta2 > pi ^ (lambda03 <= q[0] && q[0] <= lambda12)) { + var q1 = cartesianScale(u, (-w + t) / uu); + cartesianAddInPlace(q1, A); + return [q, spherical(q1)]; + } + } + function code(lambda, phi) { + var r = smallRadius ? radius : pi - radius, code2 = 0; + if (lambda < -r) code2 |= 1; + else if (lambda > r) code2 |= 2; + if (phi < -r) code2 |= 4; + else if (phi > r) code2 |= 8; + return code2; + } + return clip_default(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-pi, radius - pi]); + } + + // node_modules/d3-geo/src/clip/line.js + function line_default(a, b, x06, y06, x12, y12) { + var ax = a[0], ay = a[1], bx = b[0], by = b[1], t0 = 0, t1 = 1, dx = bx - ax, dy = by - ay, r; + r = x06 - ax; + if (!dx && r > 0) return; + r /= dx; + if (dx < 0) { + if (r < t0) return; + if (r < t1) t1 = r; + } else if (dx > 0) { + if (r > t1) return; + if (r > t0) t0 = r; + } + r = x12 - ax; + if (!dx && r < 0) return; + r /= dx; + if (dx < 0) { + if (r > t1) return; + if (r > t0) t0 = r; + } else if (dx > 0) { + if (r < t0) return; + if (r < t1) t1 = r; + } + r = y06 - ay; + if (!dy && r > 0) return; + r /= dy; + if (dy < 0) { + if (r < t0) return; + if (r < t1) t1 = r; + } else if (dy > 0) { + if (r > t1) return; + if (r > t0) t0 = r; + } + r = y12 - ay; + if (!dy && r < 0) return; + r /= dy; + if (dy < 0) { + if (r > t1) return; + if (r > t0) t0 = r; + } else if (dy > 0) { + if (r < t0) return; + if (r < t1) t1 = r; + } + if (t0 > 0) a[0] = ax + t0 * dx, a[1] = ay + t0 * dy; + if (t1 < 1) b[0] = ax + t1 * dx, b[1] = ay + t1 * dy; + return true; + } + + // node_modules/d3-geo/src/clip/rectangle.js + var clipMax = 1e9; + var clipMin = -clipMax; + function clipRectangle(x06, y06, x12, y12) { + function visible(x, y) { + return x06 <= x && x <= x12 && y06 <= y && y <= y12; + } + function interpolate(from, to, direction, stream) { + var a = 0, a1 = 0; + if (from == null || (a = corner(from, direction)) !== (a1 = corner(to, direction)) || comparePoint(from, to) < 0 ^ direction > 0) { + do + stream.point(a === 0 || a === 3 ? x06 : x12, a > 1 ? y12 : y06); + while ((a = (a + direction + 4) % 4) !== a1); + } else { + stream.point(to[0], to[1]); + } + } + function corner(p, direction) { + return abs(p[0] - x06) < epsilon ? direction > 0 ? 0 : 3 : abs(p[0] - x12) < epsilon ? direction > 0 ? 2 : 1 : abs(p[1] - y06) < epsilon ? direction > 0 ? 1 : 0 : direction > 0 ? 3 : 2; + } + function compareIntersection2(a, b) { + return comparePoint(a.x, b.x); + } + function comparePoint(a, b) { + var ca = corner(a, 1), cb = corner(b, 1); + return ca !== cb ? ca - cb : ca === 0 ? b[1] - a[1] : ca === 1 ? a[0] - b[0] : ca === 2 ? a[1] - b[1] : b[0] - a[0]; + } + return function(stream) { + var activeStream = stream, bufferStream = buffer_default(), segments, polygon, ring, x__, y__, v__, x_, y_, v_, first, clean; + var clipStream = { + point, + lineStart, + lineEnd, + polygonStart, + polygonEnd + }; + function point(x, y) { + if (visible(x, y)) activeStream.point(x, y); + } + function polygonInside() { + var winding = 0; + for (var i = 0, n = polygon.length; i < n; ++i) { + for (var ring2 = polygon[i], j = 1, m = ring2.length, point2 = ring2[0], a0, a1, b02 = point2[0], b12 = point2[1]; j < m; ++j) { + a0 = b02, a1 = b12, point2 = ring2[j], b02 = point2[0], b12 = point2[1]; + if (a1 <= y12) { + if (b12 > y12 && (b02 - a0) * (y12 - a1) > (b12 - a1) * (x06 - a0)) ++winding; + } else { + if (b12 <= y12 && (b02 - a0) * (y12 - a1) < (b12 - a1) * (x06 - a0)) --winding; + } + } + } + return winding; + } + function polygonStart() { + activeStream = bufferStream, segments = [], polygon = [], clean = true; + } + function polygonEnd() { + var startInside = polygonInside(), cleanInside = clean && startInside, visible2 = (segments = merge(segments)).length; + if (cleanInside || visible2) { + stream.polygonStart(); + if (cleanInside) { + stream.lineStart(); + interpolate(null, null, 1, stream); + stream.lineEnd(); + } + if (visible2) { + rejoin_default(segments, compareIntersection2, startInside, interpolate, stream); + } + stream.polygonEnd(); + } + activeStream = stream, segments = polygon = ring = null; + } + function lineStart() { + clipStream.point = linePoint2; + if (polygon) polygon.push(ring = []); + first = true; + v_ = false; + x_ = y_ = NaN; + } + function lineEnd() { + if (segments) { + linePoint2(x__, y__); + if (v__ && v_) bufferStream.rejoin(); + segments.push(bufferStream.result()); + } + clipStream.point = point; + if (v_) activeStream.lineEnd(); + } + function linePoint2(x, y) { + var v = visible(x, y); + if (polygon) ring.push([x, y]); + if (first) { + x__ = x, y__ = y, v__ = v; + first = false; + if (v) { + activeStream.lineStart(); + activeStream.point(x, y); + } + } else { + if (v && v_) activeStream.point(x, y); + else { + var a = [x_ = Math.max(clipMin, Math.min(clipMax, x_)), y_ = Math.max(clipMin, Math.min(clipMax, y_))], b = [x = Math.max(clipMin, Math.min(clipMax, x)), y = Math.max(clipMin, Math.min(clipMax, y))]; + if (line_default(a, b, x06, y06, x12, y12)) { + if (!v_) { + activeStream.lineStart(); + activeStream.point(a[0], a[1]); + } + activeStream.point(b[0], b[1]); + if (!v) activeStream.lineEnd(); + clean = false; + } else if (v) { + activeStream.lineStart(); + activeStream.point(x, y); + clean = false; + } + } + } + x_ = x, y_ = y, v_ = v; + } + return clipStream; + }; + } + + // node_modules/d3-geo/src/identity.js + var identity_default = (x) => x; + + // node_modules/d3-geo/src/path/area.js + var areaSum2 = new Adder(); + var areaRingSum2 = new Adder(); + var x00; + var y00; + var x02; + var y02; + var areaStream2 = { + point: noop, + lineStart: noop, + lineEnd: noop, + polygonStart: function() { + areaStream2.lineStart = areaRingStart2; + areaStream2.lineEnd = areaRingEnd2; + }, + polygonEnd: function() { + areaStream2.lineStart = areaStream2.lineEnd = areaStream2.point = noop; + areaSum2.add(abs(areaRingSum2)); + areaRingSum2 = new Adder(); + }, + result: function() { + var area = areaSum2 / 2; + areaSum2 = new Adder(); + return area; + } + }; + function areaRingStart2() { + areaStream2.point = areaPointFirst2; + } + function areaPointFirst2(x, y) { + areaStream2.point = areaPoint2; + x00 = x02 = x, y00 = y02 = y; + } + function areaPoint2(x, y) { + areaRingSum2.add(y02 * x - x02 * y); + x02 = x, y02 = y; + } + function areaRingEnd2() { + areaPoint2(x00, y00); + } + var area_default2 = areaStream2; + + // node_modules/d3-geo/src/path/bounds.js + var x03 = Infinity; + var y03 = x03; + var x1 = -x03; + var y1 = x1; + var boundsStream2 = { + point: boundsPoint2, + lineStart: noop, + lineEnd: noop, + polygonStart: noop, + polygonEnd: noop, + result: function() { + var bounds = [[x03, y03], [x1, y1]]; + x1 = y1 = -(y03 = x03 = Infinity); + return bounds; + } + }; + function boundsPoint2(x, y) { + if (x < x03) x03 = x; + if (x > x1) x1 = x; + if (y < y03) y03 = y; + if (y > y1) y1 = y; + } + var bounds_default2 = boundsStream2; + + // node_modules/d3-geo/src/path/centroid.js + var X02 = 0; + var Y02 = 0; + var Z02 = 0; + var X12 = 0; + var Y12 = 0; + var Z12 = 0; + var X22 = 0; + var Y22 = 0; + var Z22 = 0; + var x002; + var y002; + var x04; + var y04; + var centroidStream2 = { + point: centroidPoint2, + lineStart: centroidLineStart2, + lineEnd: centroidLineEnd2, + polygonStart: function() { + centroidStream2.lineStart = centroidRingStart2; + centroidStream2.lineEnd = centroidRingEnd2; + }, + polygonEnd: function() { + centroidStream2.point = centroidPoint2; + centroidStream2.lineStart = centroidLineStart2; + centroidStream2.lineEnd = centroidLineEnd2; + }, + result: function() { + var centroid = Z22 ? [X22 / Z22, Y22 / Z22] : Z12 ? [X12 / Z12, Y12 / Z12] : Z02 ? [X02 / Z02, Y02 / Z02] : [NaN, NaN]; + X02 = Y02 = Z02 = X12 = Y12 = Z12 = X22 = Y22 = Z22 = 0; + return centroid; + } + }; + function centroidPoint2(x, y) { + X02 += x; + Y02 += y; + ++Z02; + } + function centroidLineStart2() { + centroidStream2.point = centroidPointFirstLine; + } + function centroidPointFirstLine(x, y) { + centroidStream2.point = centroidPointLine; + centroidPoint2(x04 = x, y04 = y); + } + function centroidPointLine(x, y) { + var dx = x - x04, dy = y - y04, z = sqrt(dx * dx + dy * dy); + X12 += z * (x04 + x) / 2; + Y12 += z * (y04 + y) / 2; + Z12 += z; + centroidPoint2(x04 = x, y04 = y); + } + function centroidLineEnd2() { + centroidStream2.point = centroidPoint2; + } + function centroidRingStart2() { + centroidStream2.point = centroidPointFirstRing; + } + function centroidRingEnd2() { + centroidPointRing(x002, y002); + } + function centroidPointFirstRing(x, y) { + centroidStream2.point = centroidPointRing; + centroidPoint2(x002 = x04 = x, y002 = y04 = y); + } + function centroidPointRing(x, y) { + var dx = x - x04, dy = y - y04, z = sqrt(dx * dx + dy * dy); + X12 += z * (x04 + x) / 2; + Y12 += z * (y04 + y) / 2; + Z12 += z; + z = y04 * x - x04 * y; + X22 += z * (x04 + x); + Y22 += z * (y04 + y); + Z22 += z * 3; + centroidPoint2(x04 = x, y04 = y); + } + var centroid_default2 = centroidStream2; + + // node_modules/d3-geo/src/path/context.js + function PathContext(context) { + this._context = context; + } + PathContext.prototype = { + _radius: 4.5, + pointRadius: function(_) { + return this._radius = _, this; + }, + polygonStart: function() { + this._line = 0; + }, + polygonEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._point = 0; + }, + lineEnd: function() { + if (this._line === 0) this._context.closePath(); + this._point = NaN; + }, + point: function(x, y) { + switch (this._point) { + case 0: { + this._context.moveTo(x, y); + this._point = 1; + break; + } + case 1: { + this._context.lineTo(x, y); + break; + } + default: { + this._context.moveTo(x + this._radius, y); + this._context.arc(x, y, this._radius, 0, tau2); + break; + } + } + }, + result: noop + }; + + // node_modules/d3-geo/src/path/measure.js + var lengthSum = new Adder(); + var lengthRing; + var x003; + var y003; + var x05; + var y05; + var lengthStream = { + point: noop, + lineStart: function() { + lengthStream.point = lengthPointFirst; + }, + lineEnd: function() { + if (lengthRing) lengthPoint(x003, y003); + lengthStream.point = noop; + }, + polygonStart: function() { + lengthRing = true; + }, + polygonEnd: function() { + lengthRing = null; + }, + result: function() { + var length = +lengthSum; + lengthSum = new Adder(); + return length; + } + }; + function lengthPointFirst(x, y) { + lengthStream.point = lengthPoint; + x003 = x05 = x, y003 = y05 = y; + } + function lengthPoint(x, y) { + x05 -= x, y05 -= y; + lengthSum.add(sqrt(x05 * x05 + y05 * y05)); + x05 = x, y05 = y; + } + var measure_default = lengthStream; + + // node_modules/d3-geo/src/path/string.js + var cacheDigits; + var cacheAppend; + var cacheRadius; + var cacheCircle; + var PathString = class { + constructor(digits) { + this._append = digits == null ? append : appendRound(digits); + this._radius = 4.5; + this._ = ""; + } + pointRadius(_) { + this._radius = +_; + return this; + } + polygonStart() { + this._line = 0; + } + polygonEnd() { + this._line = NaN; + } + lineStart() { + this._point = 0; + } + lineEnd() { + if (this._line === 0) this._ += "Z"; + this._point = NaN; + } + point(x, y) { + switch (this._point) { + case 0: { + this._append`M${x},${y}`; + this._point = 1; + break; + } + case 1: { + this._append`L${x},${y}`; + break; + } + default: { + this._append`M${x},${y}`; + if (this._radius !== cacheRadius || this._append !== cacheAppend) { + const r = this._radius; + const s2 = this._; + this._ = ""; + this._append`m0,${r}a${r},${r} 0 1,1 0,${-2 * r}a${r},${r} 0 1,1 0,${2 * r}z`; + cacheRadius = r; + cacheAppend = this._append; + cacheCircle = this._; + this._ = s2; + } + this._ += cacheCircle; + break; + } + } + } + result() { + const result = this._; + this._ = ""; + return result.length ? result : null; + } + }; + function append(strings) { + let i = 1; + this._ += strings[0]; + for (const j = strings.length; i < j; ++i) { + this._ += arguments[i] + strings[i]; + } + } + function appendRound(digits) { + const d = Math.floor(digits); + if (!(d >= 0)) throw new RangeError(`invalid digits: ${digits}`); + if (d > 15) return append; + if (d !== cacheDigits) { + const k = 10 ** d; + cacheDigits = d; + cacheAppend = function append2(strings) { + let i = 1; + this._ += strings[0]; + for (const j = strings.length; i < j; ++i) { + this._ += Math.round(arguments[i] * k) / k + strings[i]; + } + }; + } + return cacheAppend; + } + + // node_modules/d3-geo/src/path/index.js + function path_default(projection2, context) { + let digits = 3, pointRadius = 4.5, projectionStream, contextStream; + function path(object) { + if (object) { + if (typeof pointRadius === "function") contextStream.pointRadius(+pointRadius.apply(this, arguments)); + stream_default(object, projectionStream(contextStream)); + } + return contextStream.result(); + } + path.area = function(object) { + stream_default(object, projectionStream(area_default2)); + return area_default2.result(); + }; + path.measure = function(object) { + stream_default(object, projectionStream(measure_default)); + return measure_default.result(); + }; + path.bounds = function(object) { + stream_default(object, projectionStream(bounds_default2)); + return bounds_default2.result(); + }; + path.centroid = function(object) { + stream_default(object, projectionStream(centroid_default2)); + return centroid_default2.result(); + }; + path.projection = function(_) { + if (!arguments.length) return projection2; + projectionStream = _ == null ? (projection2 = null, identity_default) : (projection2 = _).stream; + return path; + }; + path.context = function(_) { + if (!arguments.length) return context; + contextStream = _ == null ? (context = null, new PathString(digits)) : new PathContext(context = _); + if (typeof pointRadius !== "function") contextStream.pointRadius(pointRadius); + return path; + }; + path.pointRadius = function(_) { + if (!arguments.length) return pointRadius; + pointRadius = typeof _ === "function" ? _ : (contextStream.pointRadius(+_), +_); + return path; + }; + path.digits = function(_) { + if (!arguments.length) return digits; + if (_ == null) digits = null; + else { + const d = Math.floor(_); + if (!(d >= 0)) throw new RangeError(`invalid digits: ${_}`); + digits = d; + } + if (context === null) contextStream = new PathString(digits); + return path; + }; + return path.projection(projection2).digits(digits).context(context); + } + + // node_modules/d3-geo/src/transform.js + function transformer(methods) { + return function(stream) { + var s2 = new TransformStream(); + for (var key in methods) s2[key] = methods[key]; + s2.stream = stream; + return s2; + }; + } + function TransformStream() { + } + TransformStream.prototype = { + constructor: TransformStream, + point: function(x, y) { + this.stream.point(x, y); + }, + 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(); + } + }; + + // node_modules/d3-geo/src/projection/fit.js + function fit(projection2, fitBounds, object) { + var clip = projection2.clipExtent && projection2.clipExtent(); + projection2.scale(150).translate([0, 0]); + if (clip != null) projection2.clipExtent(null); + stream_default(object, projection2.stream(bounds_default2)); + fitBounds(bounds_default2.result()); + if (clip != null) projection2.clipExtent(clip); + return projection2; + } + function fitExtent(projection2, extent, object) { + return fit(projection2, function(b) { + var w = extent[1][0] - extent[0][0], h = extent[1][1] - extent[0][1], k = Math.min(w / (b[1][0] - b[0][0]), h / (b[1][1] - b[0][1])), x = +extent[0][0] + (w - k * (b[1][0] + b[0][0])) / 2, y = +extent[0][1] + (h - k * (b[1][1] + b[0][1])) / 2; + projection2.scale(150 * k).translate([x, y]); + }, object); + } + function fitSize(projection2, size, object) { + return fitExtent(projection2, [[0, 0], size], object); + } + function fitWidth(projection2, width, object) { + return fit(projection2, function(b) { + var w = +width, k = w / (b[1][0] - b[0][0]), x = (w - k * (b[1][0] + b[0][0])) / 2, y = -k * b[0][1]; + projection2.scale(150 * k).translate([x, y]); + }, object); + } + function fitHeight(projection2, height, object) { + return fit(projection2, function(b) { + var h = +height, k = h / (b[1][1] - b[0][1]), x = -k * b[0][0], y = (h - k * (b[1][1] + b[0][1])) / 2; + projection2.scale(150 * k).translate([x, y]); + }, object); + } + + // node_modules/d3-geo/src/projection/resample.js + var maxDepth = 16; + var cosMinDistance = cos2(30 * radians); + function resample_default(project, delta2) { + return +delta2 ? resample(project, delta2) : resampleNone(project); + } + function resampleNone(project) { + return transformer({ + point: function(x, y) { + x = project(x, y); + this.stream.point(x[0], x[1]); + } + }); + } + function resample(project, delta2) { + function resampleLineTo(x06, y06, lambda03, a0, b02, c0, x12, y12, lambda12, a1, b12, c1, depth, stream) { + var dx = x12 - x06, dy = y12 - y06, d2 = dx * dx + dy * dy; + if (d2 > 4 * delta2 && depth--) { + var a = a0 + a1, b = b02 + b12, c = c0 + c1, m = sqrt(a * a + b * b + c * c), phi2 = asin(c /= m), lambda22 = abs(abs(c) - 1) < epsilon || abs(lambda03 - lambda12) < epsilon ? (lambda03 + lambda12) / 2 : atan2(b, a), p = project(lambda22, phi2), x2 = p[0], y2 = p[1], dx2 = x2 - x06, dy2 = y2 - y06, dz = dy * dx2 - dx * dy2; + if (dz * dz / d2 > delta2 || abs((dx * dx2 + dy * dy2) / d2 - 0.5) > 0.3 || a0 * a1 + b02 * b12 + c0 * c1 < cosMinDistance) { + resampleLineTo(x06, y06, lambda03, a0, b02, c0, x2, y2, lambda22, a /= m, b /= m, c, depth, stream); + stream.point(x2, y2); + resampleLineTo(x2, y2, lambda22, a, b, c, x12, y12, lambda12, a1, b12, c1, depth, stream); + } + } + } + return function(stream) { + var lambda004, x004, y004, a00, b00, c00, lambda03, x06, y06, a0, b02, c0; + var resampleStream = { + point, + lineStart, + lineEnd, + polygonStart: function() { + stream.polygonStart(); + resampleStream.lineStart = ringStart; + }, + polygonEnd: function() { + stream.polygonEnd(); + resampleStream.lineStart = lineStart; + } + }; + function point(x, y) { + x = project(x, y); + stream.point(x[0], x[1]); + } + function lineStart() { + x06 = NaN; + resampleStream.point = linePoint2; + stream.lineStart(); + } + function linePoint2(lambda, phi) { + var c = cartesian([lambda, phi]), p = project(lambda, phi); + resampleLineTo(x06, y06, lambda03, a0, b02, c0, x06 = p[0], y06 = p[1], lambda03 = lambda, a0 = c[0], b02 = c[1], c0 = c[2], maxDepth, stream); + stream.point(x06, y06); + } + function lineEnd() { + resampleStream.point = point; + stream.lineEnd(); + } + function ringStart() { + lineStart(); + resampleStream.point = ringPoint; + resampleStream.lineEnd = ringEnd; + } + function ringPoint(lambda, phi) { + linePoint2(lambda004 = lambda, phi), x004 = x06, y004 = y06, a00 = a0, b00 = b02, c00 = c0; + resampleStream.point = linePoint2; + } + function ringEnd() { + resampleLineTo(x06, y06, lambda03, a0, b02, c0, x004, y004, lambda004, a00, b00, c00, maxDepth, stream); + resampleStream.lineEnd = lineEnd; + lineEnd(); + } + return resampleStream; + }; + } + + // node_modules/d3-geo/src/projection/index.js + var transformRadians = transformer({ + point: function(x, y) { + this.stream.point(x * radians, y * radians); + } + }); + function transformRotate(rotate) { + return transformer({ + point: function(x, y) { + var r = rotate(x, y); + return this.stream.point(r[0], r[1]); + } + }); + } + function scaleTranslate(k, dx, dy, sx, sy) { + function transform(x, y) { + x *= sx; + y *= sy; + return [dx + k * x, dy - k * y]; + } + transform.invert = function(x, y) { + return [(x - dx) / k * sx, (dy - y) / k * sy]; + }; + return transform; + } + function scaleTranslateRotate(k, dx, dy, sx, sy, alpha) { + if (!alpha) return scaleTranslate(k, dx, dy, sx, sy); + var cosAlpha = cos2(alpha), sinAlpha = sin2(alpha), a = cosAlpha * k, b = sinAlpha * k, ai = cosAlpha / k, bi = sinAlpha / k, ci = (sinAlpha * dy - cosAlpha * dx) / k, fi = (sinAlpha * dx + cosAlpha * dy) / k; + function transform(x, y) { + x *= sx; + y *= sy; + return [a * x - b * y + dx, dy - b * x - a * y]; + } + transform.invert = function(x, y) { + return [sx * (ai * x - bi * y + ci), sy * (fi - bi * x - ai * y)]; + }; + return transform; + } + function projection(project) { + return projectionMutator(function() { + return project; + })(); + } + function projectionMutator(projectAt) { + var project, k = 150, x = 480, y = 250, lambda = 0, phi = 0, deltaLambda = 0, deltaPhi = 0, deltaGamma = 0, rotate, alpha = 0, sx = 1, sy = 1, theta = null, preclip = antimeridian_default, x06 = null, y06, x12, y12, postclip = identity_default, delta2 = 0.5, projectResample, projectTransform, projectRotateTransform, cache, cacheStream; + function projection2(point) { + return projectRotateTransform(point[0] * radians, point[1] * radians); + } + function invert(point) { + point = projectRotateTransform.invert(point[0], point[1]); + return point && [point[0] * degrees, point[1] * degrees]; + } + projection2.stream = function(stream) { + return cache && cacheStream === stream ? cache : cache = transformRadians(transformRotate(rotate)(preclip(projectResample(postclip(cacheStream = stream))))); + }; + projection2.preclip = function(_) { + return arguments.length ? (preclip = _, theta = void 0, reset()) : preclip; + }; + projection2.postclip = function(_) { + return arguments.length ? (postclip = _, x06 = y06 = x12 = y12 = null, reset()) : postclip; + }; + projection2.clipAngle = function(_) { + return arguments.length ? (preclip = +_ ? circle_default(theta = _ * radians) : (theta = null, antimeridian_default), reset()) : theta * degrees; + }; + projection2.clipExtent = function(_) { + return arguments.length ? (postclip = _ == null ? (x06 = y06 = x12 = y12 = null, identity_default) : clipRectangle(x06 = +_[0][0], y06 = +_[0][1], x12 = +_[1][0], y12 = +_[1][1]), reset()) : x06 == null ? null : [[x06, y06], [x12, y12]]; + }; + projection2.scale = function(_) { + return arguments.length ? (k = +_, recenter()) : k; + }; + projection2.translate = function(_) { + return arguments.length ? (x = +_[0], y = +_[1], recenter()) : [x, y]; + }; + projection2.center = function(_) { + return arguments.length ? (lambda = _[0] % 360 * radians, phi = _[1] % 360 * radians, recenter()) : [lambda * degrees, phi * degrees]; + }; + projection2.rotate = function(_) { + return arguments.length ? (deltaLambda = _[0] % 360 * radians, deltaPhi = _[1] % 360 * radians, deltaGamma = _.length > 2 ? _[2] % 360 * radians : 0, recenter()) : [deltaLambda * degrees, deltaPhi * degrees, deltaGamma * degrees]; + }; + projection2.angle = function(_) { + return arguments.length ? (alpha = _ % 360 * radians, recenter()) : alpha * degrees; + }; + projection2.reflectX = function(_) { + return arguments.length ? (sx = _ ? -1 : 1, recenter()) : sx < 0; + }; + projection2.reflectY = function(_) { + return arguments.length ? (sy = _ ? -1 : 1, recenter()) : sy < 0; + }; + projection2.precision = function(_) { + return arguments.length ? (projectResample = resample_default(projectTransform, delta2 = _ * _), reset()) : sqrt(delta2); + }; + projection2.fitExtent = function(extent, object) { + return fitExtent(projection2, extent, object); + }; + projection2.fitSize = function(size, object) { + return fitSize(projection2, size, object); + }; + projection2.fitWidth = function(width, object) { + return fitWidth(projection2, width, object); + }; + projection2.fitHeight = function(height, object) { + return fitHeight(projection2, height, object); + }; + function recenter() { + var center = scaleTranslateRotate(k, 0, 0, sx, sy, alpha).apply(null, project(lambda, phi)), transform = scaleTranslateRotate(k, x - center[0], y - center[1], sx, sy, alpha); + rotate = rotateRadians(deltaLambda, deltaPhi, deltaGamma); + projectTransform = compose_default(project, transform); + projectRotateTransform = compose_default(rotate, projectTransform); + projectResample = resample_default(projectTransform, delta2); + return reset(); + } + function reset() { + cache = cacheStream = null; + return projection2; + } + return function() { + project = projectAt.apply(this, arguments); + projection2.invert = project.invert && invert; + return recenter(); + }; + } + + // node_modules/d3-geo/src/projection/azimuthal.js + function azimuthalInvert(angle2) { + return function(x, y) { + var z = sqrt(x * x + y * y), c = angle2(z), sc = sin2(c), cc = cos2(c); + return [ + atan2(x * sc, z * cc), + asin(z && y * sc / z) + ]; + }; + } + + // node_modules/d3-geo/src/projection/mercator.js + function mercatorRaw(lambda, phi) { + return [lambda, log(tan((halfPi + phi) / 2))]; + } + mercatorRaw.invert = function(x, y) { + return [x, 2 * atan(exp(y)) - halfPi]; + }; + function mercator_default() { + return mercatorProjection(mercatorRaw).scale(961 / tau2); + } + function mercatorProjection(project) { + var m = projection(project), center = m.center, scale = m.scale, translate = m.translate, clipExtent = m.clipExtent, x06 = null, y06, x12, y12; + m.scale = function(_) { + return arguments.length ? (scale(_), reclip()) : scale(); + }; + m.translate = function(_) { + return arguments.length ? (translate(_), reclip()) : translate(); + }; + m.center = function(_) { + return arguments.length ? (center(_), reclip()) : center(); + }; + m.clipExtent = function(_) { + return arguments.length ? (_ == null ? x06 = y06 = x12 = y12 = null : (x06 = +_[0][0], y06 = +_[0][1], x12 = +_[1][0], y12 = +_[1][1]), reclip()) : x06 == null ? null : [[x06, y06], [x12, y12]]; + }; + function reclip() { + var k = pi * scale(), t = m(rotation_default(m.rotate()).invert([0, 0])); + return clipExtent(x06 == null ? [[t[0] - k, t[1] - k], [t[0] + k, t[1] + k]] : project === mercatorRaw ? [[Math.max(t[0] - k, x06), y06], [Math.min(t[0] + k, x12), y12]] : [[x06, Math.max(t[1] - k, y06)], [x12, Math.min(t[1] + k, y12)]]); + } + return reclip(); + } + + // node_modules/d3-geo/src/projection/orthographic.js + function orthographicRaw(x, y) { + return [cos2(y) * sin2(x), sin2(y)]; + } + orthographicRaw.invert = azimuthalInvert(asin); + function orthographic_default() { + return projection(orthographicRaw).scale(249.5).clipAngle(90 + epsilon); + } + + // node_modules/@amcharts/amcharts5/.internal/charts/map/MapChartDefaultTheme.js + var MapChartDefaultTheme = class extends Theme { + setupDefaultRules() { + super.setupDefaultRules(); + const ic = this._root.interfaceColors; + const r = this.rule.bind(this); + r("MapChart").setAll({ + projection: mercator_default(), + panX: "translateX", + panY: "translateY", + pinchZoom: true, + zoomStep: 2, + zoomLevel: 1, + rotationX: 0, + rotationY: 0, + rotationZ: 0, + maxZoomLevel: 32, + minZoomLevel: 1, + wheelY: "zoom", + wheelX: "none", + animationEasing: out(cubic), + wheelEasing: out(cubic), + wheelDuration: 0, + wheelSensitivity: 1, + maxPanOut: 0.4, + centerMapOnZoomOut: true + }); + { + const rule = r("MapLine"); + rule.setAll({ + precision: 0.5, + role: "figure" + }); + setColor(rule, "stroke", ic, "grid"); + } + r("MapPolygonSeries").setAll({ + affectsBounds: true + }); + r("MapPointSeries").setAll({ + affectsBounds: false, + clipFront: false, + clipBack: true, + autoScale: false + }); + r("ClusteredPointSeries").setAll({ + minDistance: 20, + scatterDistance: 3, + scatterRadius: 8, + stopClusterZoom: 0.95 + }); + r("MapLineSeries").setAll({ + affectsBounds: false + }); + { + const rule = r("MapPolygon"); + rule.setAll({ + precision: 0.5, + isMeasured: false, + role: "figure", + fillOpacity: 1, + position: "absolute", + strokeWidth: 0.2, + strokeOpacity: 1 + }); + setColor(rule, "fill", ic, "primaryButton"); + setColor(rule, "stroke", ic, "background"); + } + r("Button", ["zoomtools", "home"]).setAll({ + visible: false + }); + r("GraticuleSeries").setAll({ + step: 10 + }); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/charts/map/MapUtils.js + function getGeoCentroid(geometry) { + const centroid = centroid_default(geometry); + return { longitude: centroid[0], latitude: centroid[1] }; + } + function getGeoBounds(geometry) { + const bounds = bounds_default(geometry); + if (bounds) { + const geoBounds = { left: bounds[0][0], right: bounds[1][0], top: bounds[1][1], bottom: bounds[0][1] }; + if (geoBounds.right < geoBounds.left) { + geoBounds.right = 180; + geoBounds.left = -180; + } + return geoBounds; + } + return { left: 0, right: 0, top: 0, bottom: 0 }; + } + function getGeoRectangle(north, east, south, west) { + let multiPolygon = []; + if (west <= -180) { + west = -179.9999; + } + if (south <= -90) { + south = -89.9999; + } + if (north >= 90) { + north = 89.9999; + } + if (east >= 180) { + east = 179.9999; + } + let stepLong = Math.min(90, (east - west) / Math.ceil((east - west) / 90)); + let stepLat = (north - south) / Math.ceil((north - south) / 90); + for (let ln = west; ln < east; ln = ln + stepLong) { + let surface = []; + multiPolygon.push([surface]); + if (ln + stepLong > east) { + stepLong = east - ln; + } + for (let ll = ln; ll <= ln + stepLong; ll = ll + 5) { + surface.push([ll, north]); + } + for (let lt = north; lt >= south; lt = lt - stepLat) { + surface.push([ln + stepLong, lt]); + } + for (let ll = ln + stepLong; ll >= ln; ll = ll - 5) { + surface.push([ll, south]); + } + for (let lt = south; lt <= north; lt = lt + stepLat) { + surface.push([ln, lt]); + } + } + return { type: "MultiPolygon", coordinates: multiPolygon }; + } + + // node_modules/@amcharts/amcharts5/.internal/charts/map/MapChart.js + var MapChart = class extends SerialChart { + constructor() { + super(...arguments); + this._pLat = 0; + this._pLon = 0; + this._movePoints = {}; + this._downZoomLevel = 1; + this._doubleDownDistance = 0; + this._dirtyGeometries = false; + this._geometryColection = { type: "GeometryCollection", geometries: [] }; + this._centerLocation = null; + this._mapBounds = [[0, 0], [0, 0]]; + this._geoCentroid = { longitude: 0, latitude: 0 }; + this._geoBounds = { left: 0, right: 0, top: 0, bottom: 0 }; + this._prevGeoBounds = { left: 0, right: 0, top: 0, bottom: 0 }; + this._dispatchBounds = false; + this._mapFitted = false; + this._centerX = 0; + this._centerY = 0; + } + _makeGeoPath() { + const projection2 = this.get("projection"); + const path = path_default(); + path.projection(projection2); + this.setPrivateRaw("geoPath", path); + } + /** + * Returns a geoPoint of the current zoom position. + * + * You can later use it to restore zoom position, e.g.: `chart.zoomToGeoPoint(geoPoint, zoomLevel, true)`. + * + * @since 5.2.19 + */ + geoPoint() { + return this.invert(this.seriesContainer.toGlobal({ x: this.width() / 2, y: this.height() / 2 })); + } + /** + * Returns coordinates to geographical center of the map. + */ + geoCentroid() { + return this._geoCentroid; + } + /** + * Returns geographical bounds of the map. + */ + geoBounds() { + return this._geoBounds; + } + _handleSetWheel() { + const wheelX = this.get("wheelX"); + const wheelY = this.get("wheelY"); + const chartContainer = this.chartContainer; + if (wheelX != "none" || wheelY != "none") { + if (this._wheelDp) { + this._wheelDp.dispose(); + } + this._wheelDp = chartContainer.events.on("wheel", (event) => { + const wheelEasing = this.get("wheelEasing"); + const wheelSensitivity = this.get("wheelSensitivity", 1); + const wheelDuration = this.get("wheelDuration", 0); + const wheelEvent = event.originalEvent; + let prevent = false; + if (isLocalEvent(wheelEvent, this)) { + prevent = true; + } else { + return; + } + const point = chartContainer._display.toLocal(event.point); + if (wheelY == "zoom") { + if (this.get("zoomLevel") == this.get("minZoomLevel", 1) && wheelEvent.deltaY > 0) { + return; + } + this._handleWheelZoom(wheelEvent.deltaY, point); + } else if (wheelY == "rotateY") { + this._handleWheelRotateY(wheelEvent.deltaY / 5 * wheelSensitivity, wheelDuration, wheelEasing); + } else if (wheelY == "rotateX") { + this._handleWheelRotateX(wheelEvent.deltaY / 5 * wheelSensitivity, wheelDuration, wheelEasing); + } + if (wheelX == "zoom") { + this._handleWheelZoom(wheelEvent.deltaX, point); + } else if (wheelX == "rotateY") { + this._handleWheelRotateY(wheelEvent.deltaX / 5 * wheelSensitivity, wheelDuration, wheelEasing); + } else if (wheelX == "rotateX") { + this._handleWheelRotateX(wheelEvent.deltaX / 5 * wheelSensitivity, wheelDuration, wheelEasing); + } + if (prevent) { + wheelEvent.preventDefault(); + } + }); + this._disposers.push(this._wheelDp); + } else { + if (this._wheelDp) { + this._wheelDp.dispose(); + } + } + } + _prepareChildren() { + super._prepareChildren(); + const projection2 = this.get("projection"); + const w = this.innerWidth(); + const h = this.innerHeight(); + const previousGeometries = this._geometryColection.geometries; + if (this.isDirty("projection")) { + this._makeGeoPath(); + this.markDirtyProjection(); + this._fitMap(); + projection2.scale(this.getPrivate("mapScale") * this.get("zoomLevel", 1)); + if (projection2.rotate) { + projection2.rotate([this.get("rotationX", 0), this.get("rotationY", 0), this.get("rotationZ", 0)]); + } + let prev = this._prevSettings.projection; + if (prev && prev != projection2) { + let hw = w / 2; + let hh = h / 2; + if (prev.invert) { + let centerLocation = prev.invert([hw, hh]); + if (centerLocation) { + let xy = projection2(centerLocation); + if (xy) { + let translate = projection2.translate(); + let xx = hw - (xy[0] - translate[0]); + let yy = hh - (xy[1] - translate[1]); + projection2.translate([xx, yy]); + this.setRaw("translateX", xx); + this.setRaw("translateY", yy); + } + } + } + } + } + if (this.isPrivateDirty("projectionBlend") && this._projectionBlendData) { + const d = this._projectionBlendData; + const t = this.getPrivate("projectionBlend", 0); + d.mutate(t); + const scale = d.sourceScale + (d.targetScale - d.sourceScale) * t; + const tx = d.sourceTranslateX + (d.targetTranslateX - d.sourceTranslateX) * t; + const ty = d.sourceTranslateY + (d.targetTranslateY - d.sourceTranslateY) * t; + d.blended.scale(scale * this.get("zoomLevel", 1)); + d.blended.translate([tx, ty]); + if (d.blended.rotate) { + d.blended.rotate([ + this.get("rotationX", 0), + this.get("rotationY", 0), + this.get("rotationZ", 0) + ]); + } + this.setPrivateRaw("mapScale", scale); + this.setRaw("translateX", tx); + this.setRaw("translateY", ty); + this.markDirtyProjection(); + if (t >= 1) { + this._projectionRaw = d.targetRaw; + this._projectionBlendData = void 0; + this._projectionBlendAnim = void 0; + this.set("projection", d.target); + } + } + if (this.isDirty("wheelX") || this.isDirty("wheelY")) { + this._handleSetWheel(); + } + if (this._dirtyGeometries) { + this._geometryColection.geometries = []; + this.series.each((series) => { + pushAll(this._geometryColection.geometries, series._geometries); + }); + this._fitMap(); + } + if (previousGeometries.length != 0 && (w != this._pw || h != this._ph || this._dirtyGeometries)) { + if (w > 0 && h > 0) { + let hw = w / 2; + let hh = h / 2; + projection2.fitSize([w, h], this._geometryColection); + const newScale = projection2.scale(); + this.setPrivateRaw("mapScale", newScale); + projection2.scale(newScale * this.get("zoomLevel", 1)); + if (this._centerLocation) { + let xy = projection2(this._centerLocation); + if (xy) { + let translate = projection2.translate(); + let xx = hw - (xy[0] - translate[0]); + let yy = hh - (xy[1] - translate[1]); + projection2.translate([xx, yy]); + this.setRaw("translateX", xx); + this.setRaw("translateY", yy); + this._centerX = translate[0]; + this._centerY = translate[1]; + } + } + this.markDirtyProjection(); + const geoPath = this.getPrivate("geoPath"); + this._mapBounds = geoPath.bounds(this._geometryColection); + } + } + this._pw = w; + this._ph = h; + if (this.isDirty("zoomControl")) { + const previous = this._prevSettings.zoomControl; + const zoomControl = this.get("zoomControl"); + if (zoomControl !== previous) { + this._disposeProperty("zoomControl"); + if (previous) { + previous.dispose(); + } + if (zoomControl) { + zoomControl.setPrivate("chart", this); + this.children.push(zoomControl); + } + this.setRaw("zoomControl", zoomControl); + } + } + if (this.isDirty("zoomLevel")) { + projection2.scale(this.getPrivate("mapScale") * this.get("zoomLevel", 1)); + this.markDirtyProjection(); + this.series.each((series) => { + if (series.isType("MapPointSeries")) { + if (series.get("autoScale")) { + each(series.dataItems, (dataItem) => { + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + const sprite = bullet.get("sprite"); + if (sprite) { + sprite.set("scale", this.get("zoomLevel")); + } + }); + } + }); + } + } + }); + const zoomControl = this.get("zoomControl"); + if (zoomControl) { + const zoomLevel = this.get("zoomLevel", 1); + if (zoomLevel == this.get("minZoomLevel", 1)) { + zoomControl.minusButton.set("disabled", true); + } else { + zoomControl.minusButton.set("disabled", false); + } + if (zoomLevel == this.get("maxZoomLevel", 32)) { + zoomControl.plusButton.set("disabled", true); + } else { + zoomControl.plusButton.set("disabled", false); + } + } + } + if (this.isDirty("translateX") || this.isDirty("translateY")) { + projection2.translate([this.get("translateX", this.width() / 2), this.get("translateY", this.height() / 2)]); + this.markDirtyProjection(); + } + if (projection2.rotate) { + if (this.isDirty("rotationX") || this.isDirty("rotationY") || this.isDirty("rotationZ")) { + projection2.rotate([this.get("rotationX", 0), this.get("rotationY", 0), this.get("rotationZ", 0)]); + this.markDirtyProjection(); + } + } + if (this.isDirty("pinchZoom") || this.get("panX") || this.get("panY")) { + this._setUpTouch(); + } + } + _fitMap() { + const projection2 = this.get("projection"); + let w = this.innerWidth(); + let h = this.innerHeight(); + if (w > 0 && h > 0) { + projection2.fitSize([w, h], this._geometryColection); + this.setPrivateRaw("mapScale", projection2.scale()); + const translate = projection2.translate(); + this.setRaw("translateX", translate[0]); + this.setRaw("translateY", translate[1]); + this._centerX = translate[0]; + this._centerY = translate[1]; + const geoPath = this.getPrivate("geoPath"); + this._mapBounds = geoPath.bounds(this._geometryColection); + this._geoCentroid = getGeoCentroid(this._geometryColection); + const bounds = getGeoBounds(this._geometryColection); + this._geoBounds = bounds; + if (this._geometryColection.geometries.length > 0) { + bounds.left = round(this._geoBounds.left, 3); + bounds.right = round(this._geoBounds.right, 3); + bounds.top = round(this._geoBounds.top, 3); + bounds.bottom = round(this._geoBounds.bottom, 3); + const prevGeoBounds = this._prevGeoBounds; + if (prevGeoBounds && !sameBounds(bounds, prevGeoBounds)) { + this._dispatchBounds = true; + this._prevGeoBounds = bounds; + } + } + this._mapFitted = true; + } + } + /** + * Returns geographical coordinates for calculated or manual center of the + * map. + */ + homeGeoPoint() { + let homeGeoPoint = this.get("homeGeoPoint"); + if (!homeGeoPoint) { + const geoPath = this.getPrivate("geoPath"); + const bounds = geoPath.bounds(this._geometryColection); + const left = bounds[0][0]; + const top = bounds[0][1]; + const right = bounds[1][0]; + const bottom = bounds[1][1]; + homeGeoPoint = this.invert({ x: left + (right - left) / 2, y: top + (bottom - top) / 2 }); + } + return homeGeoPoint; + } + /** + * Repositions the map to the "home" zoom level and center coordinates. + * + * @see {@link https://www.amcharts.com/docs/v5/charts/map-chart/map-pan-zoom/#Resetting_position_level} for more info + * @param duration Animation duration in milliseconds + */ + goHome(duration) { + this.zoomToGeoPoint(this.homeGeoPoint(), this.get("homeZoomLevel", 1), true, duration, this.get("homeRotationX"), this.get("homeRotationY")); + } + _updateChildren() { + const projection2 = this.get("projection"); + if (projection2.invert) { + let w = this.innerWidth(); + let h = this.innerHeight(); + if (w > 0 && h > 0) { + this._centerLocation = projection2.invert([this.innerWidth() / 2, this.innerHeight() / 2]); + } + } + super._updateChildren(); + } + _afterChanged() { + super._afterChanged(); + if (this._dispatchBounds) { + this._dispatchBounds = false; + const type = "geoboundschanged"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this }); + } + } + } + _setUpTouch() { + if (!this.chartContainer._display.cancelTouch) { + this.chartContainer._display.cancelTouch = this.get("pinchZoom") || this.get("panX") || this.get("panY") ? true : false; + } + } + /** + * @ignore + */ + markDirtyGeometries() { + this._dirtyGeometries = true; + this.markDirty(); + } + /** + * @ignore + */ + markDirtyProjection() { + this.series.each((series) => { + series.markDirtyProjection(); + }); + } + _afterNew() { + this._defaultThemes.push(MapChartDefaultTheme.new(this._root)); + this._settings.themeTags = mergeTags(this._settings.themeTags, ["map"]); + this.children.push(this.bulletsContainer); + super._afterNew(); + this._makeGeoPath(); + this.chartContainer.children.push(this.seriesContainer); + if (this.get("translateX") == null) { + this.set("translateX", this.width() / 2); + } + if (this.get("translateY") == null) { + this.set("translateY", this.height() / 2); + } + this.chartContainer.set("interactive", true); + this.chartContainer.set("interactiveChildren", false); + this.chartContainer.set("background", Rectangle.new(this._root, { + themeTags: ["map", "background"], + fill: Color.fromHex(0), + fillOpacity: 0 + })); + this._disposers.push(this.chartContainer.events.on("pointerdown", (event) => { + this._handleChartDown(event); + })); + this._disposers.push(this.chartContainer.events.on("globalpointerup", (event) => { + this._handleChartUp(event); + })); + this._disposers.push(this.chartContainer.events.on("globalpointermove", (event) => { + this._handleChartMove(event); + })); + let license = false; + for (let i = 0; i < registry.licenses.length; i++) { + if (registry.licenses[i].match(/^AM5M.{5,}/i)) { + license = true; + } + } + if (!license) { + this._root._showBranding(); + } else { + this._root._licenseApplied(); + } + this._setUpTouch(); + } + _handleChartDown(event) { + this._downZoomLevel = this.get("zoomLevel", 1); + const downPoints = this.chartContainer._downPoints; + let count = keys(downPoints).length; + if (count == 1) { + let downPoint = downPoints[1]; + if (!downPoint) { + downPoint = downPoints[0]; + } + if (downPoint && (downPoint.x == event.point.x && downPoint.y == event.point.y)) { + count = 0; + } + } + if (count > 0) { + this._downTranslateX = this.get("translateX"); + this._downTranslateY = this.get("translateY"); + this._downRotationX = this.get("rotationX"); + this._downRotationY = this.get("rotationY"); + this._downRotationZ = this.get("rotationZ"); + const downId = this.chartContainer._getDownPointId(); + if (downId) { + let movePoint = this._movePoints[downId]; + if (movePoint) { + this.chartContainer._downPoints[downId] = movePoint; + } + } + } else if (count == 0) { + let bg = this.chartContainer.get("background"); + if (bg) { + bg.events.enableType("click"); + } + if (this.get("panX") || this.get("panY")) { + if (this._za) { + this._za.stop(); + } + if (this._txa) { + this._txa.stop(); + } + if (this._tya) { + this._tya.stop(); + } + if (this._rxa) { + this._rxa.stop(); + } + if (this._rya) { + this._rya.stop(); + } + const downPoint = this.chartContainer._display.toLocal(event.point); + this._downTranslateX = this.get("translateX"); + this._downTranslateY = this.get("translateY"); + this._downRotationX = this.get("rotationX"); + this._downRotationY = this.get("rotationY"); + this._downRotationZ = this.get("rotationZ"); + let projection2 = this.get("projection"); + if (projection2.invert) { + let l0 = projection2.invert([downPoint.x, downPoint.y]); + let l1 = projection2.invert([downPoint.x + 1, downPoint.y + 1]); + if (l0 && l1) { + this._pLon = Math.abs(l1[0] - l0[0]); + this._pLat = Math.abs(l1[1] - l0[1]); + } + } + } + } + } + /** + * Converts screen coordinates (X and Y) within chart to latitude and + * longitude. + * + * @param point Screen coordinates + * @return Geographical coordinates + */ + invert(point) { + let projection2 = this.get("projection"); + if (projection2.invert) { + const ll = projection2.invert([point.x, point.y]); + if (ll) { + return { longitude: ll[0], latitude: ll[1] }; + } + } + return { longitude: 0, latitude: 0 }; + } + /** + * Converts latitude/longitude to screen coordinates (X and Y). + * + * @param point Geographical coordinates + * @param rotationX X rotation of a map if different from current + * @param rotationY Y rotation of a map if different from current + * + * @return Screen coordinates + */ + convert(point, rotationX, rotationY) { + let projection2 = this.get("projection"); + let xy; + if (!projection2.rotate) { + rotationX = void 0; + rotationY = void 0; + } + if (rotationX != null || rotationY != null) { + if (rotationX == null) { + rotationX = 0; + } + if (rotationY == null) { + rotationY = 0; + } + let rotation = projection2.rotate(); + projection2.rotate([rotationX, rotationY, 0]); + xy = projection2([point.longitude, point.latitude]); + projection2.rotate(rotation); + } else { + xy = projection2([point.longitude, point.latitude]); + } + if (xy) { + return { x: xy[0], y: xy[1] }; + } + return { x: 0, y: 0 }; + } + _handleChartUp(_event) { + this.chartContainer._downPoints = {}; + } + _handlePinch() { + const chartContainer = this.chartContainer; + let i = 0; + let downPoints = []; + let movePoints = []; + each2(chartContainer._downPoints, (k, point) => { + downPoints[i] = point; + let movePoint = this._movePoints[k]; + if (movePoint) { + movePoints[i] = movePoint; + } + i++; + }); + if (downPoints.length > 1 && movePoints.length > 1) { + const display = chartContainer._display; + let downPoint0 = downPoints[0]; + let downPoint1 = downPoints[1]; + let movePoint0 = movePoints[0]; + let movePoint1 = movePoints[1]; + if (downPoint0 && downPoint1 && movePoint0 && movePoint1) { + downPoint0 = display.toLocal(downPoint0); + downPoint1 = display.toLocal(downPoint1); + movePoint0 = display.toLocal(movePoint0); + movePoint1 = display.toLocal(movePoint1); + let initialDistance = Math.hypot(downPoint1.x - downPoint0.x, downPoint1.y - downPoint0.y); + let currentDistance = Math.hypot(movePoint1.x - movePoint0.x, movePoint1.y - movePoint0.y); + let level = currentDistance / initialDistance * this._downZoomLevel; + level = fitToRange(level, this.get("minZoomLevel", 1), this.get("maxZoomLevel", 32)); + let moveCenter = { x: movePoint0.x + (movePoint1.x - movePoint0.x) / 2, y: movePoint0.y + (movePoint1.y - movePoint0.y) / 2 }; + let downCenter = { x: downPoint0.x + (downPoint1.x - downPoint0.x) / 2, y: downPoint0.y + (downPoint1.y - downPoint0.y) / 2 }; + let tx = this._downTranslateX || 0; + let ty = this._downTranslateY || 0; + let zoomLevel = this._downZoomLevel; + let xx = moveCenter.x - (-tx + downCenter.x) / zoomLevel * level; + let yy = moveCenter.y - (-ty + downCenter.y) / zoomLevel * level; + this.set("zoomLevel", level); + this.set("translateX", xx); + this.set("translateY", yy); + } + } + } + _handleChartMove(event) { + const chartContainer = this.chartContainer; + let downPoint = chartContainer._getDownPoint(); + const downPointId = chartContainer._getDownPointId(); + const originalEvent = event.originalEvent; + const pointerId = originalEvent.pointerId; + if (this.get("pinchZoom")) { + if (pointerId) { + this._movePoints[pointerId] = event.point; + if (keys(chartContainer._downPoints).length > 1) { + this._handlePinch(); + return; + } + } + } + if (downPointId && pointerId && pointerId != downPointId) { + return; + } else { + if (downPoint) { + const panX = this.get("panX"); + const panY = this.get("panY"); + if (panX != "none" || panY != "none") { + const display = chartContainer._display; + let local = display.toLocal(event.point); + downPoint = display.toLocal(downPoint); + let x = this._downTranslateX; + let y = this._downTranslateY; + if (Math.hypot(downPoint.x - local.x, downPoint.y - local.y) > 5) { + let bg = chartContainer.get("background"); + if (bg) { + bg.events.disableType("click"); + } + if (isNumber(x) && isNumber(y)) { + let projection2 = this.get("projection"); + const zoomLevel = this.get("zoomLevel", 1); + const maxPanOut = this.get("maxPanOut", 0.4); + const bounds = this._mapBounds; + const w = this.width(); + const h = this.height(); + const ww = bounds[1][0] - bounds[0][0]; + const hh = bounds[1][1] - bounds[0][1]; + if (panX == "translateX") { + x += local.x - downPoint.x; + const cx = w / 2 - (w / 2 - this._centerX) * zoomLevel; + x = Math.min(x, cx + ww * maxPanOut * zoomLevel); + x = Math.max(x, cx - ww * maxPanOut * zoomLevel); + } + if (panY == "translateY") { + y += local.y - downPoint.y; + const cy = h / 2 - (h / 2 - this._centerY) * zoomLevel; + y = Math.min(y, cy + hh * maxPanOut * zoomLevel); + y = Math.max(y, cy - hh * maxPanOut * zoomLevel); + } + this.set("translateX", x); + this.set("translateY", y); + if (projection2.invert) { + let downLocation = projection2.invert([downPoint.x, downPoint.y]); + if (location && downLocation) { + if (panX == "rotateX") { + this.set("rotationX", this._downRotationX - (downPoint.x - local.x) * this._pLon); + } + if (panY == "rotateY") { + this.set("rotationY", this._downRotationY + (downPoint.y - local.y) * this._pLat); + } + } + } + } + } + } + } + } + } + _handleWheelRotateY(delta, duration, easing) { + this._rya = this.animate({ key: "rotationY", to: this.get("rotationY", 0) - delta, duration, easing }); + } + _handleWheelRotateX(delta, duration, easing) { + this._rxa = this.animate({ key: "rotationX", to: this.get("rotationX", 0) - delta, duration, easing }); + } + _handleWheelZoom(delta, point) { + let step = this.get("zoomStep", 2); + let zoomLevel = this.get("zoomLevel", 1); + let newZoomLevel = zoomLevel; + if (delta > 0) { + newZoomLevel = zoomLevel / step; + } else if (delta < 0) { + newZoomLevel = zoomLevel * step; + } + if (newZoomLevel != zoomLevel) { + this.zoomToPoint(point, newZoomLevel); + } + } + /** + * Zoom the map to geographical bounds. + * + * @param geoBounds Bounds + * @param duration Animation duration in milliseconds + * @param rotationX X rotation of a map at the end of zoom + * @param rotationY Y rotation of a map at the end of zoom + */ + zoomToGeoBounds(geoBounds, duration, rotationX, rotationY) { + if (geoBounds.right < geoBounds.left) { + geoBounds.right = 180; + geoBounds.left = -180; + } + const geoPath = this.getPrivate("geoPath"); + const mapBounds = geoPath.bounds(this._geometryColection); + let p03 = this.convert({ longitude: geoBounds.left, latitude: geoBounds.top }, rotationX, rotationY); + let p1 = this.convert({ longitude: geoBounds.right, latitude: geoBounds.bottom }, rotationX, rotationY); + if (p03.y < mapBounds[0][1]) { + p03.y = mapBounds[0][1]; + } + if (p1.y > mapBounds[1][1]) { + p1.y = mapBounds[1][1]; + } + let zl = this.get("zoomLevel", 1); + let bounds = { left: p03.x, right: p1.x, top: p03.y, bottom: p1.y }; + let seriesContainer = this.seriesContainer; + let zoomLevel = 0.9 * Math.min(seriesContainer.innerWidth() / (bounds.right - bounds.left) * zl, seriesContainer.innerHeight() / (bounds.bottom - bounds.top) * zl); + let x = bounds.left + (bounds.right - bounds.left) / 2; + let y = bounds.top + (bounds.bottom - bounds.top) / 2; + let geoPoint = this.invert({ x, y }); + if (rotationX != null || rotationY != null) { + this.rotate(rotationX, rotationY); + } + return this.zoomToGeoPoint(geoPoint, zoomLevel, true, duration); + } + /** + * Zooms the map to specific screen point. + * + * @param point Point + * @param level Zoom level + * @param center Center the map + * @param duration Duration of the animation in milliseconds + */ + zoomToPoint(point, level, center, duration) { + if (level) { + level = fitToRange(level, this.get("minZoomLevel", 1), this.get("maxZoomLevel", 32)); + } + if (!isNumber(duration)) { + duration = this.get("animationDuration", 0); + } + const easing = this.get("animationEasing"); + const zoomLevel = this.get("zoomLevel", 1); + if (this.get("centerMapOnZoomOut") && level == this.get("homeZoomLevel", 1)) { + point = this.convert(this.homeGeoPoint(), this.get("homeRotationX"), this.get("homeRotationY")); + center = true; + } + let x = point.x; + let y = point.y; + let tx = this.get("translateX", 0); + let ty = this.get("translateY", 0); + let cx = x; + let cy = y; + if (center) { + cx = this.width() / 2; + cy = this.height() / 2; + } + let xx = cx - (x - tx) / zoomLevel * level; + let yy = cy - (y - ty) / zoomLevel * level; + this._txa = this.animate({ key: "translateX", to: xx, duration, easing }); + this._tya = this.animate({ key: "translateY", to: yy, duration, easing }); + this._za = this.animate({ key: "zoomLevel", to: level, duration, easing }); + if (zoomLevel != level) { + this._root.readerAlert(this._t("Zoom level changed to %1", this._root.locale, numberToString(level))); + } + return this._za; + } + /** + * Zooms the map to specific geographical point. + * + * @param geoPoint Point + * @param level Zoom level + * @param center Center the map + * @param duration Duration of the animation in milliseconds + * @param rotationX X rotation of a map at the end of zoom + * @param rotationY Y rotation of a map at the end of zoom + * + */ + zoomToGeoPoint(geoPoint, level, center, duration, rotationX, rotationY) { + let xy = this.convert(geoPoint, rotationX, rotationY); + if (rotationX != null || rotationY != null) { + this.rotate(rotationX, rotationY, duration); + } + if (xy) { + return this.zoomToPoint(xy, level, center, duration); + } + } + rotate(rotationX, rotationY, duration) { + const projection2 = this.get("projection"); + if (!projection2.rotate) { + } else { + if (!isNumber(duration)) { + duration = this.get("animationDuration", 0); + } + const easing = this.get("animationEasing"); + if (rotationX != null) { + this.animate({ key: "rotationX", to: rotationX, duration, easing }); + } + if (rotationY != null) { + this.animate({ key: "rotationY", to: rotationY, duration, easing }); + } + } + } + /** + * Animates the map projection transition from the current projection to + * the target projection over the specified duration. + * + * Since d3-geo does not expose raw projection functions on projection + * instances, you must pass both the target `GeoProjection` and its + * corresponding `GeoRawProjection`. On the first call you must also + * pass `sourceRaw` so the method knows the current projection's raw + * function. Subsequent calls reuse the previous target's raw + * automatically. + * + * @param target Target projection (e.g. `geoOrthographic()`) + * @param targetRaw Raw projection function (e.g. `geoOrthographicRaw`) + * @param duration Duration in milliseconds (default: `animationDuration`) + * @param easing Easing function (default: `animationEasing`) + * @param sourceRaw Raw function of the current projection (needed on first call) + * + * @since 5.16.0 + */ + animateProjection(target, targetRaw, duration, easing, sourceRaw) { + if (this._projectionBlendAnim) { + this._projectionBlendAnim.stop(); + this._projectionBlendAnim = void 0; + this._projectionBlendData = void 0; + } + if (sourceRaw) { + this._projectionRaw = sourceRaw; + } + const currentRaw = this._projectionRaw; + if (!currentRaw) { + this.set("projection", target); + this._projectionRaw = targetRaw; + return; + } + if (duration == null) { + duration = this.get("animationDuration", 0); + } + if (!duration) { + this.set("projection", target); + this._projectionRaw = targetRaw; + return; + } + if (!easing) { + easing = this.get("animationEasing"); + } + if (this._za) + this._za.stop(); + if (this._txa) + this._txa.stop(); + if (this._tya) + this._tya.stop(); + if (this._rxa) + this._rxa.stop(); + if (this._rya) + this._rya.stop(); + const w = this.innerWidth(); + const h = this.innerHeight(); + const sScale = this.getPrivate("mapScale"); + const sTx = this.get("translateX", w / 2); + const sTy = this.get("translateY", h / 2); + const tempTarget = projection(targetRaw); + tempTarget.fitSize([w, h], this._geometryColection); + const tScale = tempTarget.scale(); + const tTranslate = tempTarget.translate(); + const mutate = projectionMutator((t) => { + return (lambda, phi) => { + const p03 = currentRaw(lambda, phi); + const p1 = targetRaw(lambda, phi); + return [ + (1 - t) * p03[0] + t * p1[0], + (1 - t) * p03[1] + t * p1[1] + ]; + }; + }); + const blended = mutate(0); + blended.scale(sScale * this.get("zoomLevel", 1)); + blended.translate([sTx, sTy]); + blended.precision(0.5); + if (blended.rotate) { + blended.rotate([ + this.get("rotationX", 0), + this.get("rotationY", 0), + this.get("rotationZ", 0) + ]); + } + this.setRaw("projection", blended); + this._makeGeoPath(); + this._projectionBlendData = { + blended, + mutate, + sourceScale: sScale, + targetScale: tScale, + sourceTranslateX: sTx, + sourceTranslateY: sTy, + targetTranslateX: tTranslate[0], + targetTranslateY: tTranslate[1], + target, + targetRaw + }; + this._projectionBlendAnim = this.animatePrivate({ + key: "projectionBlend", + from: 0, + to: 1, + duration, + easing + }); + } + /** + * Zooms the map in. + */ + zoomIn() { + return this.zoomToPoint({ x: this.width() / 2, y: this.height() / 2 }, this.get("zoomLevel", 1) * this.get("zoomStep", 2)); + } + /** + * Zooms the map out. + */ + zoomOut() { + return this.zoomToPoint({ x: this.width() / 2, y: this.height() / 2 }, this.get("zoomLevel", 1) / this.get("zoomStep", 2)); + } + _clearDirty() { + super._clearDirty(); + this._dirtyGeometries = false; + this._mapFitted = false; + } + /** + * Returns area of a mapPolygon in square pixels. + */ + getArea(dataItem) { + const geoPath = this.getPrivate("geoPath"); + const geometry = dataItem.get("geometry"); + if (geometry) { + return geoPath.area(geometry); + } + return 0; + } + }; + MapChart.className = "MapChart"; + MapChart.classNames = SerialChart.classNames.concat([MapChart.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/map/MapPointSeries.js + var MapPointSeries = class extends MapSeries { + constructor() { + super(...arguments); + this._types = ["Point", "MultiPoint"]; + } + _afterNew() { + this.fields.push("polygonId", "lineId", "longitude", "latitude", "fixed"); + super._afterNew(); + } + /** + * @ignore + */ + markDirtyProjection() { + this.markDirty(); + } + /** + * Forces a repaint of the element which relies on data. + * + * @since 5.0.21 + */ + markDirtyValues(dataItem) { + super.markDirtyValues(); + if (dataItem) { + this._positionBullets(dataItem); + } + } + processDataItem(dataItem) { + super.processDataItem(dataItem); + let geometry = dataItem.get("geometry"); + if (!geometry) { + geometry = { type: "Point", coordinates: [dataItem.get("longitude", 0), dataItem.get("latitude", 0)] }; + dataItem.set("geometry", geometry); + } else { + if (geometry.type == "Point") { + const coordinates = geometry.coordinates; + if (coordinates) { + dataItem.set("longitude", coordinates[0]); + dataItem.set("latitude", coordinates[1]); + } + } else if (geometry.type == "MultiPoint") { + const coordinates = geometry.coordinates; + if (coordinates && coordinates[0]) { + dataItem.set("longitude", coordinates[0][0]); + dataItem.set("latitude", coordinates[0][1]); + } + } + } + this._addGeometry(geometry, this); + } + _makeBullets(dataItem) { + dataItem.bullets = []; + this.bullets.each((bulletFunction) => { + const geometry = dataItem.get("geometry"); + if (geometry) { + if (geometry.type == "Point") { + this._setBulletParent(this._makeBullet(dataItem, bulletFunction)); + } else if (geometry.type = "MultiPoint") { + let i = 0; + each(geometry.coordinates, () => { + this._setBulletParent(this._makeBullet(dataItem, bulletFunction, i)); + i++; + }); + } + } + }); + } + _setBulletParent(bullet) { + if (bullet) { + const sprite = bullet.get("sprite"); + const chart2 = this.chart; + if (sprite && chart2) { + const dataItem = sprite.dataItem; + if (dataItem) { + if (dataItem.get("fixed")) { + if (sprite.parent != chart2.bulletsContainer) { + chart2.bulletsContainer.children.moveValue(sprite); + } + } else { + if (sprite.parent != this.bulletsContainer) { + this.bulletsContainer.children.moveValue(sprite); + } + } + } + } + } + } + _positionBullet(bullet) { + const sprite = bullet.get("sprite"); + if (sprite) { + const dataItem = sprite.dataItem; + if (dataItem && dataItem.get("fixed")) { + return; + } + const latitude = dataItem.get("latitude"); + const longitude2 = dataItem.get("longitude"); + const lineDataItem = dataItem.get("lineDataItem"); + const fixed = dataItem.get("fixed"); + const chart2 = this.chart; + let line; + if (lineDataItem) { + line = lineDataItem.get("mapLine"); + } else { + const lineId = dataItem.get("lineId"); + if (lineId && chart2) { + chart2.series.each((series) => { + if (series.isType("MapLineSeries")) { + let lineDI = series.getDataItemById(lineId); + if (lineDI) { + dataItem.set("lineDataItem", lineDI); + line = lineDI.get("mapLine"); + } + } + }); + } + } + if (this._lineChangedDp) { + this._lineChangedDp.dispose(); + } + if (line) { + this._lineChangedDp = line.events.on("linechanged", () => { + this._positionBullets(dataItem); + }); + } + const polygonDataItem = dataItem.get("polygonDataItem"); + let polygon; + if (polygonDataItem) { + polygon = polygonDataItem.get("mapPolygon"); + } else { + const polygonId = dataItem.get("polygonId"); + if (polygonId && chart2) { + chart2.series.each((series) => { + if (series.isType("MapPolygonSeries")) { + let polygonDI = series.getDataItemById(polygonId); + if (polygonDI) { + dataItem.set("polygonDataItem", polygonDI); + polygon = polygonDI.get("mapPolygon"); + } + } + }); + } + } + const positionOnLine = dataItem.get("positionOnLine"); + let coordinates; + let angle2; + if (polygon) { + let geoPoint = polygon.visualCentroid(); + coordinates = [geoPoint.longitude, geoPoint.latitude]; + dataItem.setRaw("longitude", geoPoint.longitude); + dataItem.setRaw("latitude", geoPoint.latitude); + } else if (line && isNumber(positionOnLine)) { + let geoPoint = line.positionToGeoPoint(positionOnLine); + coordinates = [geoPoint.longitude, geoPoint.latitude]; + if (dataItem.get("autoRotate", bullet.get("autoRotate")) && chart2) { + const geoPoint0 = line.positionToGeoPoint(positionOnLine - 2e-3); + const geoPoint1 = line.positionToGeoPoint(positionOnLine + 2e-3); + const point0 = chart2.convert(geoPoint0); + const point1 = chart2.convert(geoPoint1); + angle2 = getAngle(point0, point1); + } + dataItem.setRaw("longitude", geoPoint.longitude); + dataItem.setRaw("latitude", geoPoint.latitude); + } else if (isNumber(longitude2) && isNumber(latitude)) { + coordinates = [longitude2, latitude]; + } else { + const geometry = dataItem.get("geometry"); + if (geometry) { + if (geometry.type == "Point") { + this._positionBulletReal(bullet, geometry, geometry.coordinates, angle2); + } else if (geometry.type == "MultiPoint") { + let index = bullet._index || 0; + coordinates = geometry.coordinates[index]; + } + } + } + if (!fixed && coordinates) { + this._positionBulletReal(bullet, { type: "Point", coordinates }, coordinates, angle2); + } + } + } + _positionBulletReal(bullet, geometry, coordinates, angle2) { + const sprite = bullet.get("sprite"); + const chart2 = this.chart; + if (chart2) { + const projection2 = chart2.get("projection"); + const geoPath = chart2.getPrivate("geoPath"); + const dataItem = sprite.dataItem; + const xy = projection2(coordinates); + if (xy) { + const point = { x: xy[0], y: xy[1] }; + sprite.setAll(point); + dataItem.setRaw("point", point); + } + let visible = true; + if (geoPath(geometry)) { + if (this.get("clipFront")) { + visible = false; + } + } else { + if (this.get("clipBack")) { + visible = false; + } + } + sprite.setPrivate("visible", visible); + dataItem.set("clipped", !visible); + if (dataItem && angle2 != null && dataItem.get("autoRotate", bullet.get("autoRotate"))) { + sprite.set("rotation", angle2 + dataItem.get("autoRotateAngle", bullet.get("autoRotateAngle", 0))); + } + } + } + /** + * Centers the map to specific series' data item and zooms to the level + * specified in the parameters. + * + * @param dataItem Map point + * @param zoomLevel Zoom level + * @param rotate If it's true, the map will rotate so that this point would be in the center. Mostly usefull with geoOrthographic projection. + */ + zoomToDataItem(dataItem, zoomLevel, rotate) { + const chart2 = this.chart; + if (chart2) { + const longitude2 = dataItem.get("longitude", 0); + const latitude = dataItem.get("latitude", 0); + if (rotate) { + return chart2.zoomToGeoPoint({ longitude: longitude2, latitude }, zoomLevel, true, void 0, -longitude2, -latitude); + } + return chart2.zoomToGeoPoint({ longitude: longitude2, latitude }, zoomLevel, true); + } + } + /** + * Zooms the map in so that all points in the array are visible. + * + * @param dataItems An array of data items of points to zoom to + * @param rotate Rotate the map so it is centered on the selected items + * @return Animation + * @since 5.5.6 + */ + zoomToDataItems(dataItems, rotate) { + let left = null; + let right = null; + let top = null; + let bottom = null; + each(dataItems, (dataItem) => { + const longitude2 = dataItem.get("longitude", 0); + const latitude = dataItem.get("latitude", 0); + if (left == null || left > longitude2) { + left = longitude2; + } + if (right == null || right < longitude2) { + right = longitude2; + } + if (top == null || top < latitude) { + top = latitude; + } + if (bottom == null || bottom > latitude) { + bottom = latitude; + } + }); + if (left != null && right != null && top != null && bottom != null) { + const chart2 = this.chart; + if (chart2) { + if (rotate) { + return chart2.zoomToGeoBounds({ left, right, top, bottom }, void 0, -(left + (right - left) / 2), -(top + (top - bottom) / 2)); + } + return chart2.zoomToGeoBounds({ left, right, top, bottom }); + } + } + } + /** + * @ignore + */ + disposeDataItem(dataItem) { + const chart2 = this.chart; + if (chart2) { + chart2.series.each((series) => { + if (series.isType("MapLineSeries")) { + each(series.dataItems, (di) => { + const pointsToConnect = di.get("pointsToConnect"); + if (pointsToConnect) { + each(pointsToConnect, (point) => { + if (point == dataItem) { + remove(pointsToConnect, point); + series.markDirtyValues(di); + } + }); + } + }); + } + }); + } + super.disposeDataItem(dataItem); + } + /** + * @ignore + */ + _excludeDataItem(dataItem) { + super._excludeDataItem(dataItem); + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + const sprite = bullet.get("sprite"); + if (sprite) { + sprite.setPrivate("visible", false); + } + }); + } + } + /** + * @ignore + */ + _unexcludeDataItem(dataItem) { + super._unexcludeDataItem(dataItem); + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + const sprite = bullet.get("sprite"); + if (sprite) { + sprite.setPrivate("visible", true); + } + }); + } + } + /** + * @ignore + */ + _notIncludeDataItem(dataItem) { + super._notIncludeDataItem(dataItem); + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + const sprite = bullet.get("sprite"); + if (sprite) { + sprite.setPrivate("visible", false); + } + }); + } + } + /** + * @ignore + */ + _unNotIncludeDataItem(dataItem) { + super._unNotIncludeDataItem(dataItem); + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + const sprite = bullet.get("sprite"); + if (sprite) { + sprite.setPrivate("visible", true); + } + }); + } + } + }; + MapPointSeries.className = "MapPointSeries"; + MapPointSeries.classNames = MapSeries.classNames.concat([MapPointSeries.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/map/MapPolygon.js + var import_polylabel = __toESM(require_polylabel()); + var MapPolygon = class extends Graphics { + constructor() { + super(...arguments); + this._projectionDirty = false; + } + _afterNew() { + super._afterNew(); + this.setPrivate("trustBounds", true); + } + _beforeChanged() { + super._beforeChanged(); + if (this._projectionDirty || this.isDirty("geometry") || this.isDirty("precision")) { + const geometry = this.get("geometry"); + if (geometry) { + const series = this.series; + if (series) { + const projection2 = series.projection(); + if (projection2) { + projection2.precision(this.get("precision", 0.5)); + } + const geoPath = series.geoPath(); + if (geoPath) { + this._clear = true; + this.set("draw", (_display) => { + geoPath.context(this._display); + geoPath(geometry); + geoPath.context(null); + }); + if (this.isHover()) { + this.showTooltip(); + } + } + } + } + } + } + /** + * @ignore + */ + markDirtyProjection() { + this.markDirty(); + this._projectionDirty = true; + } + _clearDirty() { + super._clearDirty(); + this._projectionDirty = false; + } + /** + * Returns latitude/longitude of the geometrical center of the polygon. + * + * @return Center + */ + geoCentroid() { + const geometry = this.get("geometry"); + if (geometry) { + return getGeoCentroid(geometry); + } else { + return { latitude: 0, longitude: 0 }; + } + } + /** + * Returns latitude/longitude of the visual center of the polygon. + * + * @return Center + */ + visualCentroid() { + let biggestArea = 0; + let coordinates = []; + const geometry = this.get("geometry"); + if (geometry) { + if (geometry.type == "Polygon") { + coordinates = geometry.coordinates; + } else if (geometry.type == "MultiPolygon") { + for (let i = 0; i < geometry.coordinates.length; i++) { + let coords = geometry.coordinates[i]; + let area = area_default({ type: "Polygon", coordinates: coords }); + if (area > biggestArea) { + coordinates = coords; + biggestArea = area; + } + } + } + if (coordinates) { + let center = (0, import_polylabel.default)(coordinates); + return { longitude: center[0], latitude: center[1] }; + } + } + return { longitude: 0, latitude: 0 }; + } + _getTooltipPoint() { + const series = this.series; + if (series) { + const projection2 = series.projection(); + if (projection2) { + const geoPoint = this.visualCentroid(); + const xy = projection2([geoPoint.longitude, geoPoint.latitude]); + if (xy) { + return { x: xy[0], y: xy[1] }; + } + } + } + return { x: 0, y: 0 }; + } + }; + MapPolygon.className = "MapPolygon"; + MapPolygon.classNames = Graphics.classNames.concat([MapPolygon.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/map/MapPolygonSeries.js + var MapPolygonSeries = class extends MapSeries { + constructor() { + super(...arguments); + this.mapPolygons = this.addDisposer(new ListTemplate(Template.new({}), () => MapPolygon._new(this._root, {}, [this.mapPolygons.template]))); + this._types = ["Polygon", "MultiPolygon"]; + } + /** + * @ignore + */ + makeMapPolygon(dataItem) { + const mapPolygon = this.children.push(this.mapPolygons.make()); + mapPolygon._setDataItem(dataItem); + this.mapPolygons.push(mapPolygon); + return mapPolygon; + } + /** + * @ignore + */ + markDirtyProjection() { + each(this.dataItems, (dataItem) => { + let mapPolygon = dataItem.get("mapPolygon"); + if (mapPolygon) { + mapPolygon.markDirtyProjection(); + } + }); + } + _prepareChildren() { + super._prepareChildren(); + if (this.isDirty("fill")) { + this.mapPolygons.template.set("fill", this.get("fill")); + } + if (this.isDirty("stroke")) { + this.mapPolygons.template.set("stroke", this.get("stroke")); + } + } + processDataItem(dataItem) { + super.processDataItem(dataItem); + let mapPolygon = dataItem.get("mapPolygon"); + if (!mapPolygon) { + mapPolygon = this.makeMapPolygon(dataItem); + } + dataItem.set("mapPolygon", mapPolygon); + let geometry = dataItem.get("geometry"); + if (geometry) { + if (this.get("reverseGeodata")) { + const coordinates = geometry.coordinates; + if (coordinates) { + for (let x = 0; x < geometry.coordinates.length; x++) { + if (geometry.type == "MultiPolygon") { + for (let y = 0; y < geometry.coordinates[x].length; y++) { + geometry.coordinates[x][y].reverse(); + } + } else { + geometry.coordinates[x].reverse(); + } + } + } + } + mapPolygon.set("geometry", geometry); + } + mapPolygon.series = this; + this._addGeometry(dataItem.get("geometry"), this); + } + /** + * @ignore + */ + disposeDataItem(dataItem) { + super.disposeDataItem(dataItem); + const mapPolygon = dataItem.get("mapPolygon"); + if (mapPolygon) { + this.mapPolygons.removeValue(mapPolygon); + mapPolygon.dispose(); + } + this._removeGeometry(dataItem.get("geometry")); + } + /** + * @ignore + */ + _excludeDataItem(dataItem) { + super._excludeDataItem(dataItem); + const mapPolygon = dataItem.get("mapPolygon"); + if (mapPolygon) { + mapPolygon.setPrivate("visible", false); + } + } + /** + * @ignore + */ + _unexcludeDataItem(dataItem) { + super._unexcludeDataItem(dataItem); + const mapPolygon = dataItem.get("mapPolygon"); + if (mapPolygon) { + mapPolygon.setPrivate("visible", true); + } + } + /** + * @ignore + */ + _notIncludeDataItem(dataItem) { + super._notIncludeDataItem(dataItem); + const mapPolygon = dataItem.get("mapPolygon"); + if (mapPolygon) { + mapPolygon.setPrivate("visible", false); + } + } + /** + * @ignore + */ + _unNotIncludeDataItem(dataItem) { + super._unNotIncludeDataItem(dataItem); + const mapPolygon = dataItem.get("mapPolygon"); + if (mapPolygon) { + mapPolygon.setPrivate("visible", true); + } + } + /** + * Forces a repaint of the element which relies on data. + * + * @since 5.0.21 + */ + markDirtyValues(dataItem) { + super.markDirtyValues(); + if (dataItem) { + const mapPolygon = dataItem.get("mapPolygon"); + if (mapPolygon) { + mapPolygon.set("geometry", dataItem.get("geometry")); + } + } + } + /** + * Centers and zooms in on the specific polygon. + * + * @param dataItem Target data item + * @see {@link https://www.amcharts.com/docs/v5/charts/map-chart/map-pan-zoom/#Zooming_to_clicked_object} for more info + * @param rotate If it's true, the map will rotate so that this polygon would be in the center. Mostly usefull with geoOrthographic projection. + */ + zoomToDataItem(dataItem, rotate) { + const polygon = dataItem.get("mapPolygon"); + if (polygon) { + const geometry = polygon.get("geometry"); + const chart2 = this.chart; + if (geometry && chart2) { + if (rotate) { + const centroid = getGeoCentroid(geometry); + chart2.rotate(-centroid.longitude, -centroid.latitude); + return chart2.zoomToGeoBounds(getGeoBounds(geometry), void 0, -centroid.longitude, -centroid.latitude); + } + return chart2.zoomToGeoBounds(getGeoBounds(geometry)); + } + } + } + /** + * Zooms the map in so that all polygons in the array are visible. + * + * @param dataItems An array of data items to zoom to + * @param rotate Rotate the map so it is centered on the selected items + * @return Animation + * @since 5.9.0 + */ + zoomToDataItems(dataItems, rotate) { + let left; + let right; + let top; + let bottom; + each(dataItems, (dataItem) => { + const polygon = dataItem.get("mapPolygon"); + if (polygon) { + const geometry = polygon.get("geometry"); + if (geometry) { + let bounds = getGeoBounds(geometry); + if (left == null) { + left = bounds.left; + } + if (right == null) { + right = bounds.right; + } + if (top == null) { + top = bounds.top; + } + if (bottom == null) { + bottom = bounds.bottom; + } + left = Math.min(bounds.left, left); + right = Math.max(bounds.right, right); + top = Math.max(bounds.top, top); + bottom = Math.min(bounds.bottom, bottom); + } + } + }); + if (left != null && right != null && top != null && bottom != null) { + const chart2 = this.chart; + if (chart2) { + if (rotate) { + const rx = left + (right - left) / 2; + const ry = bottom + (top - bottom) / 2; + chart2.rotate(-rx, -ry); + return chart2.zoomToGeoBounds({ left, right, top, bottom }, void 0, -rx, -ry); + } + return chart2.zoomToGeoBounds({ left, right, top, bottom }); + } + } + } + /** + * Returns a [[MapPolygon]] that is under specific X/Y point. + * + * @since 5.9.8 + * @param point X/Y + * @return Polygon + */ + getPolygonByPoint(point) { + let found; + const renderer = this._display._renderer; + const displayObject = renderer.getObjectAtPoint(point); + if (displayObject) { + this.mapPolygons.each(function(polygon) { + if (polygon._display == displayObject) { + found = polygon; + } + }); + return found; + } + } + getPolygonByGeoPoint(point) { + return this.getPolygonByPoint(this.chart.convert(point)); + } + }; + MapPolygonSeries.className = "MapPolygonSeries"; + MapPolygonSeries.classNames = MapSeries.classNames.concat([MapPolygonSeries.className]); + + // node_modules/@amcharts/amcharts5-geodata/worldLow.js + var map2 = { "type": "FeatureCollection", "features": [ + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[179.2223, -8.554], [179.2023, -8.4653], [179.2312, -8.5048], [179.2223, -8.554]]] }, "properties": { "name": "Tuvalu", "id": "TV" }, "id": "TV" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[3.4624, -54.4471], [3.3461, -54.4511], [3.3669, -54.3997], [3.4814, -54.4001], [3.4624, -54.4471]]] }, "properties": { "name": "Bouvet Island", "id": "BV" }, "id": "BV" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-5.3345, 36.1623], [-5.3382, 36.1122], [-5.3562, 36.1264], [-5.3551, 36.1455], [-5.3345, 36.1623]]] }, "properties": { "name": "Gibraltar", "id": "GI" }, "id": "GI" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[47.3029, -11.5752], [47.282, -11.5747], [47.2789, -11.5574], [47.2971, -11.5543], [47.3029, -11.5752]]] }, "properties": { "name": "Glorioso Islands", "id": "GO" }, "id": "GO" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[42.7579, -17.075], [42.7415, -17.0741], [42.7379, -17.0519], [42.761, -17.0652], [42.7579, -17.075]]] }, "properties": { "name": "Juan De Nova Island", "id": "JU" }, "id": "JU" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-160.0213, -0.398], [-160.0453, -0.3802], [-160.0178, -0.3744], [-160.0213, -0.398]]] }, "properties": { "name": "Jarvis Island", "id": "UM-DQ" }, "id": "UM-DQ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-176.456, 0.2226], [-176.4615, 0.215], [-176.4675, 0.2195], [-176.456, 0.2226]]] }, "properties": { "name": "Baker Island", "id": "UM-FQ" }, "id": "UM-FQ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-176.6311, 0.7952], [-176.6433, 0.7934], [-176.6429, 0.8081], [-176.6329, 0.8085], [-176.6311, 0.7952]]] }, "properties": { "name": "Howland Island", "id": "UM-HQ" }, "id": "UM-HQ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-169.5237, 16.7305], [-169.5388, 16.7243], [-169.5388, 16.7296], [-169.5237, 16.7305]]] }, "properties": { "name": "Johnston Atoll", "id": "UM-JQ" }, "id": "UM-JQ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-177.3881, 28.1865], [-177.3879, 28.2144], [-177.3646, 28.2042], [-177.3881, 28.1865]]] }, "properties": { "name": "Midway Islands", "id": "UM-MQ" }, "id": "UM-MQ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[166.6588, 19.2829], [166.6087, 19.3073], [166.6277, 19.3246], [166.6588, 19.3117], [166.6588, 19.2829]]] }, "properties": { "name": "Wake Island", "id": "UM-WQ" }, "id": "UM-WQ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-68.2058, 12.1446], [-68.2873, 12.1717], [-68.3711, 12.2574], [-68.3694, 12.3018], [-68.2196, 12.2312], [-68.2058, 12.1446]]] }, "properties": { "name": "Bonair, Saint Eustachius and Saba", "id": "BQ" }, "id": "BQ" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[4.2263, 51.3865], [3.9023, 51.2076], [3.35, 51.3776], [4.2263, 51.3865]]], [[[4.2263, 51.3865], [3.5871, 51.454], [4.4829, 52.3091], [4.7687, 52.9412], [5.1203, 52.3881], [5.5611, 52.5948], [5.3755, 53.0957], [6.0622, 53.4071], [6.8164, 53.4413], [7.1973, 53.2823], [7.0352, 52.3801], [6.7418, 51.9109], [5.9486, 51.7625], [6.1932, 51.4888], [5.8949, 50.9843], [5.9939, 50.7504], [5.7972, 50.7546], [5.6938, 50.7748], [5.827, 51.1257], [4.5033, 51.4746], [4.2263, 51.3865]]]] }, "properties": { "name": "Netherlands", "id": "NL" }, "id": "NL" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[31.2877, -22.4021], [30.4603, -22.3289], [29.6631, -22.1465], [29.3648, -22.194], [29.0372, -21.8113], [28.0455, -21.5729], [27.6696, -21.0642], [27.6997, -20.5307], [27.2807, -20.4788], [27.2217, -20.1458], [26.6784, -19.8928], [26.1683, -19.5381], [25.7613, -18.6495], [25.2242, -17.9153], [25.2588, -17.7936], [25.8634, -17.9521], [27.0206, -17.9583], [27.9323, -16.8961], [28.7606, -16.5321], [28.9129, -15.9879], [29.7297, -15.6448], [30.3959, -15.643], [30.4377, -15.9954], [31.2362, -16.0239], [31.9398, -16.4287], [32.2434, -16.4487], [32.9479, -16.7123], [32.9932, -18.3596], [32.7166, -19.0019], [33.0069, -19.8737], [32.4778, -20.7131], [32.3713, -21.335], [31.2877, -22.4021]]] }, "properties": { "name": "Zimbabwe", "id": "ZW" }, "id": "ZW" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[32.9199, -9.4072], [33.3509, -9.8622], [33.659, -10.5906], [33.2613, -10.8934], [33.3798, -11.1579], [33.2262, -11.5348], [33.2524, -12.1127], [33.398, -12.49], [33.0216, -12.6303], [32.9679, -13.2251], [32.6722, -13.6104], [32.9812, -14.0095], [33.2018, -14.0135], [31.729, -14.496], [30.2317, -14.9905], [30.3959, -15.643], [29.7297, -15.6448], [28.9129, -15.9879], [28.7606, -16.5321], [27.9323, -16.8961], [27.0206, -17.9583], [25.8634, -17.9521], [25.2588, -17.7936], [24.9325, -17.5433], [24.2751, -17.4812], [23.3807, -17.6405], [22.1507, -16.5974], [21.9798, -15.9555], [21.9789, -13.0009], [23.8432, -13.0009], [23.9915, -12.4221], [23.9666, -10.8716], [24.32, -11.0718], [24.5184, -11.4384], [25.1847, -11.2431], [25.3493, -11.6231], [26.0258, -11.8903], [26.5962, -11.972], [26.9496, -11.8988], [27.0459, -11.616], [27.5333, -12.1953], [28.3576, -12.482], [29.0141, -13.3689], [29.5543, -13.2491], [29.7954, -13.3929], [29.7954, -12.1553], [29.4274, -12.4314], [29.0643, -12.3489], [28.4823, -11.8122], [28.3572, -11.4828], [28.639, -10.6692], [28.6301, -9.8311], [28.4007, -9.2248], [28.9178, -8.7005], [28.9724, -8.4648], [30.7511, -8.1936], [31.0764, -8.6117], [31.3508, -8.6069], [31.9425, -9.0539], [32.4334, -9.1564], [32.9199, -9.4072]]] }, "properties": { "name": "Zambia", "id": "ZM" }, "id": "ZM" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[31.2877, -22.4021], [31.5456, -23.4821], [31.7995, -23.8923], [31.986, -24.4605], [31.9482, -25.9577], [31.4151, -25.7464], [31.2074, -25.8432], [30.8034, -26.4136], [30.7941, -26.7643], [31.0636, -27.1123], [31.4697, -27.2956], [31.9584, -27.3058], [32.1129, -26.8393], [32.8862, -26.8495], [32.5346, -28.1998], [32.2856, -28.6215], [31.7782, -28.9371], [31.3352, -29.3779], [30.2885, -30.9701], [28.8561, -32.2943], [27.8604, -33.0538], [27.0774, -33.5212], [26.4293, -33.7596], [25.9894, -33.7112], [25.6383, -34.0112], [25.0031, -33.9735], [24.8273, -34.1688], [23.5858, -33.9851], [23.2684, -34.0814], [22.2456, -34.0694], [21.7889, -34.3726], [21.06, -34.3646], [20.53, -34.4631], [20.0204, -34.7858], [19.6351, -34.7534], [18.8086, -34.108], [18.3545, -33.9389], [18.4331, -33.7174], [17.8782, -32.9614], [18.2511, -32.652], [18.3105, -32.1225], [18.2107, -31.7425], [17.6776, -31.019], [17.1893, -30.0997], [16.95, -29.4036], [16.4475, -28.6175], [16.7556, -28.4524], [17.0561, -28.0311], [17.3855, -28.3534], [17.4481, -28.6983], [18.1028, -28.8719], [19.2458, -28.9016], [19.6715, -28.5039], [19.9805, -28.4515], [19.9805, -26.5312], [19.9805, -24.777], [20.3453, -25.03], [20.7932, -25.9155], [20.6268, -26.4438], [20.74, -26.849], [21.6464, -26.8544], [22.0907, -26.5801], [22.6403, -26.0714], [22.8786, -25.4579], [23.2662, -25.2666], [23.8938, -25.6008], [24.7483, -25.8174], [25.5837, -25.6062], [25.9122, -24.7477], [26.3974, -24.6136], [26.835, -24.2407], [27.1462, -23.5243], [27.8906, -23.0737], [28.2102, -22.6938], [28.8397, -22.4807], [29.3648, -22.194], [29.6631, -22.1465], [30.4603, -22.3289], [31.2877, -22.4021]], [[27.8303, -28.9091], [27.2945, -29.5195], [27.0517, -29.6642], [27.3886, -30.3158], [28.018, -30.6421], [28.3922, -30.1476], [29.098, -29.919], [29.3905, -29.2696], [29.3013, -29.0898], [28.6257, -28.5816], [27.8303, -28.9091]]] }, "properties": { "name": "South Africa", "id": "ZA" }, "id": "ZA" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[53.0855, 16.6484], [52.3278, 16.2937], [52.2177, 15.6554], [51.6038, 15.3367], [50.5269, 15.0384], [50.1669, 14.8511], [49.3497, 14.638], [48.6683, 14.0503], [47.9901, 14.0481], [47.4077, 13.6614], [46.7889, 13.4657], [45.6574, 13.3387], [45.0386, 12.8158], [44.6178, 12.8171], [43.9298, 12.6165], [43.4752, 12.8389], [43.232, 13.2672], [43.2826, 13.6397], [43.089, 14.0108], [43.0211, 14.555], [42.7171, 15.6545], [42.7992, 16.3718], [43.1649, 16.6892], [43.1911, 17.3595], [43.418, 17.5162], [43.9169, 17.3249], [44.1557, 17.3986], [45.1483, 17.4274], [45.4066, 17.32], [46.3104, 17.2312], [46.6819, 17.2685], [46.9758, 16.9533], [47.4418, 17.1118], [47.5795, 17.4483], [48.172, 18.1567], [49.0421, 18.582], [51.9775, 18.9961], [52.729, 17.3005], [53.0855, 16.6484]]] }, "properties": { "name": "Yemen", "id": "YE" }, "id": "YE" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-172.3335, -13.4653], [-172.225, -13.8044], [-172.5357, -13.7915], [-172.7441, -13.5789], [-172.3335, -13.4653]]] }, "properties": { "name": "Samoa", "id": "WS" }, "id": "WS" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-178.0467, -14.3184], [-178.1585, -14.3118], [-178.1423, -14.2425], [-178.0467, -14.3184]]] }, "properties": { "name": "Wallis and Futuna", "id": "WF" }, "id": "WF" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[34.2454, 31.2085], [34.1983, 31.3226], [34.4775, 31.5849], [34.2454, 31.2085]]], [[[35.4505, 31.4793], [34.9507, 31.6022], [34.9561, 32.1611], [35.1931, 32.5344], [35.5513, 32.3955], [35.5589, 31.7656], [35.4505, 31.4793]]]] }, "properties": { "name": "Palestinian Territories", "id": "PS" }, "id": "PS" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[166.7458, -14.8267], [166.8102, -15.1574], [167.1316, -15.1352], [167.1995, -15.4859], [166.8257, -15.635], [166.6313, -15.406], [166.5274, -14.8502], [166.7458, -14.8267]]], [[[167.4125, -16.0958], [167.8365, -16.4495], [167.4494, -16.5552], [167.4125, -16.0958]]]] }, "properties": { "name": "Vanuatu", "id": "VU" }, "id": "VU" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[107.9727, 21.5081], [107.4099, 21.2848], [107.3544, 21.0553], [106.6757, 20.9603], [106.7534, 20.7348], [106.5181, 20.2887], [105.9841, 19.9389], [105.6219, 18.9664], [105.8882, 18.5025], [106.499, 17.9463], [106.479, 17.7195], [107.1804, 16.8978], [108.0296, 16.331], [108.8215, 15.378], [109.0847, 14.7161], [109.3035, 13.8563], [109.272, 13.2792], [109.4238, 12.9561], [109.2187, 12.6458], [109.1988, 11.7247], [108.8206, 11.3155], [108.2715, 10.9342], [107.2616, 10.3984], [106.8128, 10.4334], [106.5723, 9.6411], [105.5011, 9.0933], [105.3223, 8.8013], [104.8921, 8.5833], [104.8184, 8.8017], [104.8451, 9.606], [105.028, 10.0672], [104.6635, 10.1698], [104.4265, 10.4112], [104.8504, 10.5347], [105.3866, 10.9399], [106.1679, 11.0123], [105.8558, 11.2941], [105.8514, 11.6351], [106.3401, 11.6817], [106.4138, 11.9484], [106.9305, 12.0776], [107.5062, 12.3644], [107.4756, 13.0302], [107.6056, 13.4377], [107.3313, 14.1266], [107.5195, 14.705], [107.6531, 15.255], [107.1897, 15.7473], [107.3966, 16.0429], [106.6961, 16.4588], [106.5021, 16.9542], [105.6916, 17.7377], [105.4581, 18.1545], [105.0857, 18.4501], [105.115, 18.6787], [104.7163, 18.8035], [103.8965, 19.3401], [104.0319, 19.6753], [104.5463, 19.6105], [104.9281, 20.018], [104.6187, 20.3744], [104.5832, 20.6465], [104.0518, 20.9413], [103.635, 20.6971], [103.1046, 20.8915], [102.8511, 21.2657], [102.9488, 21.5698], [102.1276, 22.379], [102.5173, 22.7408], [103.0051, 22.4532], [103.3008, 22.7643], [104.3719, 22.704], [104.7958, 22.9112], [104.8646, 23.1363], [105.2752, 23.3454], [105.8429, 22.9228], [106.5421, 22.9081], [106.7804, 22.779], [106.5363, 22.3954], [106.7294, 22.0004], [107.3513, 21.6089], [107.9727, 21.5081]]] }, "properties": { "name": "Vietnam", "id": "VN" }, "id": "VN" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-64.7656, 17.7945], [-64.6862, 17.7062], [-64.889, 17.7017], [-64.8848, 17.7723], [-64.7656, 17.7945]]] }, "properties": { "name": "US Virgin Islands", "id": "VI" }, "id": "VI" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-64.3952, 18.4648], [-64.4261, 18.5132], [-64.3246, 18.5176], [-64.3952, 18.4648]]] }, "properties": { "name": "British Virgin Islands", "id": "VG" }, "id": "VG" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-60.0175, 8.5491], [-59.8315, 8.3059], [-60.0324, 8.0537], [-60.5136, 7.8131], [-60.7191, 7.4989], [-60.3951, 6.9453], [-61.1457, 6.6945], [-61.1286, 6.2142], [-61.3767, 5.9071], [-60.7422, 5.2022], [-60.6046, 4.9944], [-61.0028, 4.5354], [-62.1531, 4.0982], [-62.7122, 4.0179], [-62.9685, 3.594], [-63.2948, 3.9224], [-64.0214, 3.9291], [-64.2556, 4.1404], [-64.5679, 3.8998], [-64.2212, 3.5873], [-64.2188, 3.2047], [-63.9242, 2.4523], [-63.3893, 2.4119], [-63.394, 2.2223], [-64.0354, 1.9045], [-64.1149, 1.6191], [-65.1037, 1.1082], [-65.3609, 0.8685], [-65.6814, 0.9834], [-66.06, 0.7854], [-66.4293, 0.8218], [-66.8761, 1.2231], [-67.2108, 2.3901], [-67.8347, 2.8926], [-67.3111, 3.416], [-67.6616, 3.8643], [-67.8553, 4.507], [-67.8249, 5.2705], [-67.4394, 6.0256], [-67.8591, 6.2897], [-68.4717, 6.1565], [-69.4392, 6.1348], [-70.095, 6.9378], [-70.6552, 7.0829], [-71.0134, 6.9946], [-72.0843, 7.0967], [-72.443, 7.4549], [-72.4166, 8.3818], [-72.6654, 8.6277], [-72.7963, 9.1089], [-73.3563, 9.2269], [-73.0065, 9.7894], [-72.8693, 10.4911], [-72.6902, 10.8361], [-72.2485, 11.1965], [-71.958, 11.6666], [-71.3197, 11.8619], [-71.8686, 11.6275], [-71.9469, 11.4144], [-71.5942, 10.6572], [-72.1129, 9.8155], [-71.6868, 9.0725], [-71.2979, 9.1257], [-71.0858, 9.3481], [-71.0527, 9.7059], [-71.3867, 10.2639], [-71.5445, 10.7788], [-71.4695, 10.9643], [-70.2326, 11.3732], [-70.2865, 11.8859], [-70.004, 12.1779], [-69.6316, 11.4801], [-68.8279, 11.4318], [-68.3987, 11.161], [-68.234, 10.5693], [-67.8715, 10.4721], [-66.9891, 10.6106], [-66.2471, 10.6323], [-65.8518, 10.2577], [-65.1292, 10.0699], [-64.8504, 10.0979], [-63.8734, 10.6638], [-62.7024, 10.7499], [-62.8429, 10.4179], [-62.5151, 10.176], [-60.7923, 9.3606], [-61.0531, 9.0951], [-61.3039, 8.4102], [-60.801, 8.5922], [-60.0175, 8.5491]]] }, "properties": { "name": "Venezuela", "id": "VE" }, "id": "VE" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-61.1745, 13.1581], [-61.2773, 13.2095], [-61.1821, 13.356], [-61.1239, 13.2939], [-61.1745, 13.1581]]] }, "properties": { "name": "Saint Vincent and the Grenadines", "id": "VC" }, "id": "VC" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[12.4392, 41.8983], [12.4307, 41.8974], [12.4307, 41.9054], [12.4383, 41.9063], [12.4392, 41.8983]]] }, "properties": { "name": "Vatican City", "id": "VA" }, "id": "VA" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[70.9468, 42.2485], [70.8421, 42.0195], [70.1811, 41.5716], [70.7826, 41.2626], [71.4085, 41.1361], [71.7924, 41.4131], [72.6585, 40.8698], [73.113, 40.7859], [71.6926, 40.1525], [70.9579, 40.239], [70.3826, 40.4534], [70.7511, 40.7397], [70.4417, 41.0234], [69.7128, 40.6572], [69.2063, 40.5666], [69.2281, 40.1875], [68.6528, 40.1827], [68.4632, 39.5368], [67.7193, 39.6216], [67.3495, 39.242], [67.6767, 39.0086], [68.1037, 38.9619], [68.0478, 38.6694], [68.2941, 38.0329], [67.8143, 37.4869], [67.7592, 37.1722], [67.069, 37.3346], [66.5221, 37.3484], [66.5745, 38.0107], [65.8572, 38.2686], [65.613, 38.2384], [64.1628, 38.9535], [62.6505, 39.8586], [61.903, 41.0935], [60.455, 41.2218], [60.0897, 41.3994], [60.107, 41.9076], [59.8584, 42.2951], [59.4509, 42.2996], [58.5889, 42.7785], [58.2595, 42.688], [57.8143, 42.1899], [57.3819, 42.1562], [56.9642, 41.8566], [57.0179, 41.2635], [55.9774, 41.3221], [55.9766, 42.929], [55.9757, 44.9949], [58.5551, 45.5555], [61.0081, 44.3939], [61.1608, 44.1688], [61.9904, 43.4923], [63.2071, 43.6281], [64.4434, 43.5513], [64.9054, 43.7147], [65.4963, 43.3108], [65.803, 42.8771], [66.1004, 42.9907], [66.0094, 42.0048], [66.4986, 41.9951], [66.6686, 41.2706], [66.8142, 41.1423], [67.9359, 41.1965], [68.2919, 40.6563], [69.0652, 41.367], [70.0954, 41.8206], [70.4159, 42.0785], [70.9468, 42.2485]]] }, "properties": { "name": "Uzbekistan", "id": "UZ" }, "id": "UZ" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-166.1355, 60.3835], [-165.7298, 60.3143], [-165.5917, 59.9132], [-166.1876, 59.7738], [-167.1389, 60.0086], [-166.1355, 60.3835]]], [[[-171.4631, 63.6401], [-170.4304, 63.6989], [-169.7778, 63.0937], [-171.4631, 63.6401]]], [[[-141.0021, 69.6509], [-141.0021, 68.4819], [-141.0021, 65.56], [-141.0021, 63.2222], [-141.0021, 60.3003], [-139.1852, 60.0837], [-137.5932, 59.2263], [-137.4385, 58.9031], [-136.5787, 59.1522], [-136.3219, 59.6049], [-135.4759, 59.7934], [-134.9439, 59.2882], [-133.8208, 58.7049], [-131.8661, 56.7929], [-131.5752, 56.5989], [-130.4772, 56.2307], [-130.0251, 55.8882], [-130.0366, 55.2978], [-130.2142, 55.026], [-130.5753, 54.7696], [-131.0478, 55.1576], [-130.9186, 55.736], [-131.8439, 56.1601], [-132.8143, 57.0408], [-133.4659, 57.1722], [-133.5543, 57.6951], [-134.0634, 58.2111], [-134.7761, 58.4539], [-135.3025, 58.2559], [-135.8618, 58.5771], [-136.5827, 58.2453], [-137.544, 58.5811], [-138.3525, 59.0873], [-140.2168, 59.7266], [-140.8432, 59.749], [-141.6702, 59.9698], [-142.9457, 60.097], [-143.8051, 60.0129], [-144.9012, 60.3351], [-145.8989, 60.4783], [-146.8741, 61.005], [-148.3445, 60.8536], [-148.1976, 60.1678], [-148.4306, 59.9891], [-149.4323, 60.0011], [-150.9608, 59.244], [-151.7383, 59.1886], [-151.7345, 59.9882], [-151.4515, 60.2026], [-151.3217, 60.7428], [-150.4412, 61.0236], [-150.6124, 61.3013], [-151.7341, 60.9106], [-151.7505, 60.7548], [-153.1061, 59.875], [-154.0883, 59.3632], [-154.1298, 59.12], [-153.327, 58.8843], [-154.0199, 58.493], [-154.2469, 58.1594], [-155.0069, 58.016], [-156.4784, 57.328], [-156.4751, 57.1051], [-157.5784, 56.6344], [-158.4144, 56.4358], [-158.2757, 56.1963], [-159.5233, 55.8101], [-159.9623, 55.7948], [-161.0995, 55.4057], [-161.7416, 55.3911], [-162.0741, 55.1394], [-162.8651, 54.9545], [-162.9621, 55.1838], [-162.1571, 55.7195], [-161.2156, 56.0214], [-160.8514, 55.7719], [-160.3021, 56.3141], [-159.2831, 56.6886], [-158.321, 57.2978], [-157.6077, 57.6014], [-157.5235, 58.4213], [-158.5032, 58.8503], [-159.0827, 58.4697], [-159.6702, 58.9111], [-160.3631, 59.0512], [-161.7554, 58.6119], [-161.8286, 59.5887], [-162.2425, 60.1782], [-163.2193, 59.8455], [-163.9069, 59.8067], [-164.6622, 60.3038], [-165.3538, 60.5413], [-164.8051, 60.892], [-165.566, 61.1024], [-166.0789, 61.8031], [-165.1944, 62.4736], [-164.409, 63.2151], [-163.3589, 63.0458], [-161.974, 63.453], [-161.0997, 63.558], [-160.7786, 63.819], [-160.932, 64.5792], [-161.7594, 64.8162], [-162.807, 64.3743], [-163.7132, 64.5883], [-164.8995, 64.4607], [-166.1428, 64.5827], [-167.4039, 65.4221], [-168.0884, 65.6578], [-164.6742, 66.5549], [-163.7755, 66.5312], [-163.6954, 66.0838], [-161.8164, 66.0536], [-161.557, 66.2504], [-160.2317, 66.4202], [-160.864, 66.6708], [-161.8566, 66.7003], [-161.9653, 67.0497], [-163.0016, 67.0272], [-163.7205, 67.1955], [-164.1251, 67.6067], [-166.3805, 68.4251], [-166.2092, 68.8854], [-164.3024, 68.9364], [-163.1614, 69.3879], [-162.9521, 69.7581], [-161.881, 70.3318], [-160.9963, 70.3045], [-159.3144, 70.8785], [-157.9985, 70.8454], [-156.7833, 71.319], [-155.1669, 71.0993], [-154.1952, 70.801], [-153.2329, 70.9326], [-152.233, 70.8103], [-151.9447, 70.4521], [-149.2694, 70.5007], [-147.7053, 70.2173], [-145.8232, 70.16], [-145.1973, 70.0086], [-143.2184, 70.1163], [-141.4078, 69.6533], [-141.0021, 69.6509]]], [[[-155.5813, 19.0121], [-155.8814, 19.0707], [-156.0487, 19.7498], [-155.8316, 20.2759], [-155.1989, 19.9944], [-154.8043, 19.5244], [-155.5813, 19.0121]]], [[[-72.5098, 40.9861], [-73.1943, 40.6541], [-73.5738, 40.9195], [-72.5098, 40.9861]]], [[[-93.3778, 48.6166], [-92.9963, 48.6117], [-91.5183, 48.0582], [-90.8403, 48.2007], [-89.4556, 47.996], [-88.3782, 48.3032], [-84.8759, 46.9001], [-84.5617, 46.4575], [-84.1921, 46.5494], [-83.9777, 46.0851], [-83.5926, 45.817], [-82.5511, 45.3473], [-82.1378, 43.5709], [-82.5453, 42.6245], [-83.0731, 42.3005], [-83.1419, 41.976], [-82.439, 41.675], [-81.2778, 42.209], [-80.2475, 42.3662], [-79.0368, 42.8025], [-79.1719, 43.4666], [-78.7205, 43.625], [-76.82, 43.6286], [-76.4646, 44.0574], [-75.1793, 44.8994], [-74.7088, 45.0038], [-71.5175, 45.0078], [-71.3272, 45.2901], [-70.898, 45.2626], [-70.2963, 45.9062], [-70.0078, 46.7088], [-69.243, 47.4629], [-68.8288, 47.2032], [-68.311, 47.3546], [-67.8067, 47.083], [-67.7845, 45.7016], [-67.4328, 45.603], [-67.4725, 45.2759], [-67.1249, 45.1693], [-67.1067, 44.8852], [-67.9071, 44.4538], [-68.2775, 44.5075], [-69.7916, 43.8053], [-70.1789, 43.7662], [-70.829, 42.8251], [-71.0463, 42.3311], [-70.7382, 42.229], [-70.4046, 41.6271], [-70.6572, 41.5343], [-71.4265, 41.6333], [-71.5228, 41.3789], [-72.8471, 41.2657], [-73.5831, 41.022], [-74.2267, 40.6079], [-73.9575, 40.3282], [-74.1761, 39.7268], [-74.4289, 39.3872], [-74.897, 39.1453], [-75.3922, 39.0929], [-75.036, 38.5034], [-75.6592, 37.9539], [-76.2948, 38.4945], [-76.2635, 37.3568], [-75.8905, 36.6568], [-76.4788, 36.0283], [-75.7722, 35.9], [-75.7739, 35.647], [-76.513, 35.2705], [-76.7449, 34.9412], [-77.7508, 34.2851], [-78.0134, 33.9118], [-78.5778, 33.8732], [-78.9202, 33.6588], [-79.276, 33.1354], [-80.8492, 32.114], [-81.5203, 30.8747], [-81.2496, 29.7938], [-80.9, 29.0498], [-80.524, 28.4861], [-80.6501, 28.1811], [-80.2262, 27.2072], [-80.0413, 26.5685], [-80.1263, 25.8334], [-80.3669, 25.3313], [-80.7366, 25.1565], [-81.0978, 25.3194], [-81.365, 25.8312], [-81.7154, 25.983], [-81.8666, 26.4349], [-82.4414, 27.0599], [-82.6609, 27.7186], [-82.8436, 27.846], [-82.6607, 28.4857], [-82.6516, 28.8874], [-83.2906, 29.452], [-83.6943, 29.9261], [-84.0443, 30.1036], [-84.3828, 29.9074], [-85.3189, 29.6802], [-85.3536, 29.8759], [-86.2573, 30.4929], [-87.7903, 30.2918], [-88.9051, 30.4152], [-89.5885, 30.1658], [-90.2253, 30.3793], [-90.4131, 30.1405], [-89.5894, 29.915], [-90.1014, 29.1817], [-90.3793, 29.2953], [-90.7511, 29.1311], [-91.2902, 29.2891], [-91.331, 29.5137], [-91.8932, 29.836], [-92.2608, 29.5568], [-93.1756, 29.7792], [-93.6947, 29.7698], [-94.8884, 29.3708], [-95.2734, 28.9637], [-95.8534, 28.6401], [-96.4487, 28.5944], [-96.5616, 28.3671], [-97.1564, 28.1443], [-97.1715, 27.8797], [-97.5546, 26.9675], [-97.4024, 26.3967], [-97.1462, 25.9617], [-97.3582, 25.8707], [-98.0828, 26.0642], [-99.1078, 26.4469], [-99.4436, 27.0368], [-99.5053, 27.5482], [-100.2961, 28.3276], [-100.6587, 29.0685], [-101.4404, 29.7769], [-102.269, 29.871], [-102.7342, 29.6438], [-102.892, 29.2163], [-103.2577, 29.001], [-104.1107, 29.3863], [-104.504, 29.6775], [-104.9179, 30.5835], [-106.2558, 31.5445], [-106.4533, 31.77], [-108.2118, 31.7793], [-108.2145, 31.3292], [-111.042, 31.3243], [-112.939, 31.916], [-114.836, 32.5082], [-114.7248, 32.7155], [-117.1282, 32.5335], [-117.4674, 33.2957], [-118.5063, 34.0174], [-119.1437, 34.112], [-119.6061, 34.4178], [-120.4812, 34.4715], [-120.6448, 34.5798], [-120.6337, 35.0766], [-120.8603, 35.3655], [-121.8774, 36.331], [-121.79, 36.7323], [-122.3948, 37.2077], [-122.4669, 37.838], [-122.9681, 38.0968], [-122.9865, 38.277], [-123.7012, 38.9073], [-123.8845, 39.8608], [-124.324, 40.2519], [-124.3717, 40.4912], [-124.0685, 41.3843], [-124.5397, 42.8127], [-124.1486, 43.6916], [-123.9293, 45.5768], [-124.0716, 46.7447], [-124.3761, 47.6587], [-124.6211, 47.9042], [-124.6327, 48.3751], [-123.9757, 48.1683], [-122.2421, 48.0107], [-122.7888, 48.993], [-120.1281, 48.993], [-118.4226, 48.993], [-115.8643, 48.993], [-112.4532, 48.993], [-109.895, 48.993], [-106.4839, 48.993], [-103.9256, 48.993], [-102.2201, 48.993], [-99.2354, 48.993], [-97.5297, 48.9932], [-95.162, 48.9917], [-94.6209, 48.7427], [-93.7078, 48.5256], [-93.3778, 48.6166]]], [[[-163.4761, 54.9807], [-163.3581, 54.7357], [-164.5907, 54.4043], [-164.8877, 54.6078], [-164.5297, 54.8808], [-163.4761, 54.9807]]], [[[-130.9792, 55.4892], [-131.0827, 55.2668], [-131.8111, 55.223], [-131.6249, 55.8316], [-130.9792, 55.4892]]], [[[-133.566, 56.3392], [-133.2029, 56.3199], [-131.9764, 55.2086], [-131.9809, 54.8049], [-132.7823, 55.0484], [-133.4471, 55.797], [-133.566, 56.3392]]], [[[-133.3663, 57.0035], [-132.9541, 56.8803], [-133.2127, 56.4646], [-133.6029, 56.4642], [-133.8661, 57.0687], [-133.3663, 57.0035]]], [[[-134.9698, 57.3515], [-134.6207, 56.7183], [-135.787, 57.3173], [-134.9698, 57.3515]]], [[[-152.898, 57.8238], [-152.4121, 57.4547], [-153.7933, 56.9895], [-154.3391, 56.9209], [-154.7059, 57.3353], [-154.2813, 57.638], [-153.8184, 57.5956], [-152.898, 57.8238]]], [[[-135.7304, 58.2442], [-135.002, 58.0511], [-135.0848, 57.5111], [-136.0767, 57.6747], [-136.5123, 58.0959], [-135.7304, 58.2442]]], [[[-134.6802, 58.1616], [-133.9611, 57.6143], [-133.9253, 57.3369], [-134.4354, 57.057], [-134.66, 57.638], [-134.6802, 58.1616]]]] }, "properties": { "name": "United States", "id": "US" }, "id": "US" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-53.3707, -33.7422], [-53.7853, -34.3806], [-54.1686, -34.6709], [-54.9023, -34.9328], [-55.6732, -34.7756], [-56.1179, -34.9079], [-56.8552, -34.6766], [-57.1706, -34.4525], [-57.8291, -34.4773], [-58.4002, -33.9123], [-58.3534, -33.2602], [-58.0824, -32.8935], [-58.2011, -32.4718], [-58.1889, -31.9241], [-57.8105, -30.8587], [-57.8724, -30.5911], [-57.609, -30.188], [-57.2144, -30.2834], [-56.8328, -30.1072], [-56.1761, -30.6283], [-55.8736, -31.0696], [-55.5573, -30.876], [-55.2546, -31.2258], [-54.5876, -31.4851], [-54.2205, -31.8553], [-53.7618, -32.0568], [-53.6017, -32.403], [-53.1254, -32.7368], [-53.5314, -33.171], [-53.3707, -33.7422]]] }, "properties": { "name": "Uruguay", "id": "UY" }, "id": "UY" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[38.2142, 47.0914], [37.5435, 47.0745], [37.3398, 46.9169], [36.2793, 46.6586], [35.827, 46.6244], [34.8495, 46.1898], [35.0231, 45.7011], [35.558, 45.3109], [36.1705, 45.453], [36.3934, 45.0655], [35.5695, 45.1192], [35.0879, 44.8027], [34.7168, 44.8071], [33.9098, 44.3876], [33.4508, 44.5537], [33.5551, 45.0979], [32.508, 45.4037], [33.6648, 45.947], [33.2022, 46.1756], [32.4769, 46.0838], [32.0357, 46.2609], [31.9744, 46.7088], [30.7963, 46.5521], [30.2193, 45.8667], [29.6018, 45.6825], [29.7061, 45.2599], [29.2236, 45.4028], [28.7606, 45.2341], [28.2124, 45.4503], [28.9475, 46.05], [29.1464, 46.5268], [29.838, 46.3505], [29.8779, 46.829], [29.5494, 47.2467], [29.1597, 47.4558], [29.1948, 47.8824], [27.5493, 48.4777], [26.6189, 48.2597], [26.1625, 47.9925], [24.8935, 47.7177], [23.2027, 48.0844], [22.8764, 47.9472], [22.132, 48.4053], [22.5386, 49.0727], [22.6496, 49.539], [23.7118, 50.3773], [24.1056, 50.8449], [23.6053, 51.5179], [24.3617, 51.8674], [25.9251, 51.9136], [27.1422, 51.752], [27.2701, 51.6135], [28.5991, 51.5427], [29.1357, 51.6173], [29.3466, 51.3825], [30.5331, 51.5964], [30.9806, 52.0461], [31.7636, 52.1012], [32.508, 52.3084], [33.7353, 52.3448], [34.3976, 51.7804], [34.2809, 51.3117], [35.3121, 51.0438], [35.4115, 50.5398], [36.3059, 50.2805], [37.4228, 50.4115], [38.0469, 49.9201], [38.2586, 50.0524], [39.1748, 49.8559], [39.7807, 49.5721], [40.0701, 49.2003], [39.6866, 49.0079], [39.9609, 48.238], [39.7359, 47.8447], [38.9005, 47.8553], [38.2875, 47.5592], [38.2142, 47.0914]]] }, "properties": { "name": "Ukraine", "id": "UA" }, "id": "UA" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[33.9031, -1.0021], [32.1942, -1.0021], [30.8447, -1.0021], [30.51, -1.0674], [30.1016, -1.3688], [29.577, -1.3878], [29.5619, -0.9772], [29.7177, 0.0983], [29.9343, 0.4991], [29.9427, 0.8192], [30.9424, 1.683], [31.2527, 2.0448], [31.1763, 2.2703], [30.7284, 2.4554], [30.8385, 3.4905], [31.1523, 3.7857], [31.4799, 3.6805], [31.7982, 3.8026], [32.0996, 3.5291], [32.3358, 3.7063], [32.8382, 3.7986], [33.4894, 3.7551], [33.9759, 4.2203], [34.165, 3.8128], [34.3928, 3.6916], [34.4478, 3.1634], [34.7425, 2.818], [34.964, 2.0625], [34.9654, 1.6435], [34.7874, 1.2307], [34.4815, 1.042], [33.9431, 0.1738], [33.9031, -1.0021]]] }, "properties": { "name": "Uganda", "id": "UG" }, "id": "UG" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[33.9031, -1.0021], [34.7709, -1.4416], [36.2633, -2.2747], [37.6438, -3.0453], [37.6087, -3.4604], [37.7974, -3.6743], [39.2219, -4.6922], [38.8192, -5.8778], [38.8738, -6.3315], [39.4722, -6.8788], [39.5193, -7.1243], [39.2884, -7.518], [39.4411, -8.0116], [39.304, -8.444], [39.7838, -9.9146], [40.4634, -10.4641], [39.9889, -10.821], [39.3217, -11.1224], [38.7948, -11.2289], [38.4917, -11.4131], [37.9204, -11.2946], [37.5417, -11.675], [36.9789, -11.5667], [36.5185, -11.7163], [35.7852, -11.4531], [35.6312, -11.5818], [34.9596, -11.5783], [34.608, -11.0807], [34.6617, -10.71], [34.5241, -10.03], [34.3208, -9.7317], [32.9199, -9.4072], [32.4334, -9.1564], [31.9425, -9.0539], [31.3508, -8.6069], [31.0764, -8.6117], [30.7511, -8.1936], [30.3134, -7.2037], [29.7097, -6.6169], [29.4802, -6.0252], [29.5943, -5.651], [29.3426, -4.9829], [29.4034, -4.4494], [29.7177, -4.456], [30.1469, -4.0854], [30.4252, -3.5891], [30.7901, -3.2744], [30.5149, -2.9175], [30.5535, -2.3999], [30.8287, -2.3387], [30.8128, -1.5632], [30.51, -1.0674], [30.8447, -1.0021], [32.1942, -1.0021], [33.9031, -1.0021]]] }, "properties": { "name": "Tanzania", "id": "TZ" }, "id": "TZ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[121.009, 22.6205], [120.5815, 22.3564], [120.3258, 22.5424], [120.0723, 23.1496], [120.1589, 23.7089], [121.0405, 25.0326], [121.5936, 25.2754], [121.9291, 24.9736], [121.2957, 22.9667], [121.009, 22.6205]]] }, "properties": { "name": "Taiwan", "id": "TW" }, "id": "TW" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[41.5101, 41.5174], [42.4663, 41.4398], [42.7876, 41.5636], [43.4393, 41.1073], [43.7225, 40.7193], [43.5693, 40.4823], [43.7917, 40.0703], [44.2893, 40.0406], [44.7683, 39.7037], [44.8171, 39.6504], [44.023, 39.3774], [44.4309, 38.3569], [44.2112, 37.9081], [44.5614, 37.7448], [44.7652, 37.1424], [44.2818, 36.9782], [44.1562, 37.2831], [43.5161, 37.2445], [42.7748, 37.3719], [42.3588, 37.1087], [42.2683, 37.2765], [41.5154, 37.0892], [40.7058, 37.0976], [40.0164, 36.8259], [39.3568, 36.6817], [38.7669, 36.6932], [38.1916, 36.9014], [37.4365, 36.6435], [36.6584, 36.8024], [36.1275, 35.8316], [35.8927, 35.9164], [35.811, 36.3097], [36.1883, 36.659], [36.0489, 36.9107], [35.5375, 36.5969], [34.6014, 36.7847], [33.6945, 36.1819], [32.7947, 36.0358], [32.3775, 36.1836], [32.0219, 36.5352], [31.3525, 36.8011], [30.6441, 36.8654], [30.4838, 36.3106], [29.6893, 36.1565], [29.1433, 36.3971], [29.0381, 36.6937], [28.4837, 36.8037], [28.1339, 37.0297], [27.3491, 37.0195], [27.0779, 37.6875], [27.2323, 37.9787], [26.6828, 38.1985], [26.7636, 38.7098], [27.0135, 38.8869], [26.6819, 39.2922], [26.1133, 39.4675], [26.1812, 39.99], [26.7378, 40.4002], [27.4756, 40.3198], [28.2892, 40.4033], [29.3648, 40.8094], [29.3222, 41.2276], [31.2549, 41.1077], [31.4582, 41.3199], [32.3065, 41.7296], [33.3816, 42.0177], [34.7505, 41.9569], [35.2978, 41.7287], [36.0516, 41.6826], [36.5097, 41.2626], [38.3811, 40.9244], [39.4265, 41.1064], [40.2654, 40.9612], [40.9597, 41.2116], [41.5101, 41.5174]]], [[[28.0145, 41.9689], [28.3465, 41.4664], [29.0572, 41.2298], [28.7802, 40.9741], [28.172, 41.0806], [27.4996, 40.9732], [27.2581, 40.6874], [26.1053, 40.6114], [26.0391, 40.7269], [26.6246, 41.4016], [26.321, 41.7167], [26.6153, 41.9649], [27.2949, 42.0794], [28.0145, 41.9689]]]] }, "properties": { "name": "T\xFCrkiye", "id": "TR" }, "id": "TR" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[11.5043, 33.182], [11.5048, 32.4137], [10.8265, 32.0807], [10.115, 31.4637], [10.2162, 30.7832], [9.8952, 30.3873], [9.5188, 30.2293], [9.0439, 32.0723], [8.3332, 32.5437], [8.2111, 32.9268], [7.7628, 33.2331], [7.5, 33.8323], [7.5138, 34.0805], [8.2457, 34.7339], [8.3944, 35.204], [8.2457, 35.8707], [8.2306, 36.5454], [8.5764, 36.9374], [9.6879, 37.3404], [10.1962, 37.2059], [10.5713, 36.8796], [11.1266, 36.8739], [10.5256, 36.3235], [10.5908, 35.8871], [11.0045, 35.6336], [11.1199, 35.2404], [10.5349, 34.5448], [10.0648, 34.2119], [10.1589, 33.8501], [10.7227, 33.5145], [11.0844, 33.5629], [11.2025, 33.2491], [11.5043, 33.182]]] }, "properties": { "name": "Tunisia", "id": "TN" }, "id": "TN" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-61.0121, 10.1343], [-61.5967, 10.0646], [-61.4648, 10.5391], [-61.0338, 10.67], [-61.0121, 10.1343]]] }, "properties": { "name": "Trinidad and Tobago", "id": "TT" }, "id": "TT" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-175.162, -21.1695], [-175.1567, -21.2636], [-175.3354, -21.1579], [-175.2255, -21.1188], [-175.162, -21.1695]]] }, "properties": { "name": "Tonga", "id": "TO" }, "id": "TO" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[125.0679, -9.512], [124.9223, -8.9424], [125.178, -8.6477], [125.8043, -8.4923], [126.6198, -8.4595], [126.9149, -8.7152], [126.3823, -8.9575], [125.4079, -9.2758], [125.0679, -9.512]]] }, "properties": { "name": "Timor-Leste", "id": "TL" }, "id": "TL" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[66.5221, 37.3484], [65.7648, 37.569], [65.5549, 37.2512], [64.8162, 37.1322], [64.5108, 36.3408], [63.8623, 36.0123], [63.1086, 35.8187], [63.0566, 35.4459], [62.6105, 35.2333], [61.262, 35.6194], [61.1195, 36.6426], [60.3413, 36.6377], [60.0626, 36.9631], [59.5623, 37.1788], [59.2409, 37.5206], [58.8157, 37.6835], [58.4357, 37.6387], [57.4236, 37.9477], [57.1937, 38.2162], [56.4409, 38.2495], [56.2287, 38.0733], [55.5784, 38.0999], [55.0755, 37.9024], [54.7452, 37.502], [53.9142, 37.3435], [53.8237, 37.9281], [53.8685, 38.9491], [53.6177, 39.2159], [53.125, 39.432], [53.4721, 39.6686], [53.4042, 39.9603], [52.9874, 39.9878], [52.7335, 40.3988], [53.1454, 40.825], [53.8698, 40.6487], [54.7101, 40.8911], [54.5921, 41.1934], [54.0949, 41.5192], [53.8463, 42.0914], [52.9701, 41.9764], [52.4938, 41.7802], [53.2502, 42.2059], [54.1211, 42.3351], [54.9037, 41.9192], [55.5451, 41.2626], [55.9774, 41.3221], [57.0179, 41.2635], [56.9642, 41.8566], [57.3819, 42.1562], [57.8143, 42.1899], [58.2595, 42.688], [58.5889, 42.7785], [59.4509, 42.2996], [59.8584, 42.2951], [60.107, 41.9076], [60.0897, 41.3994], [60.455, 41.2218], [61.903, 41.0935], [62.6505, 39.8586], [64.1628, 38.9535], [65.613, 38.2384], [65.8572, 38.2686], [66.5745, 38.0107], [66.5221, 37.3484]]] }, "properties": { "name": "Turkmenistan", "id": "TM" }, "id": "TM" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-172.4791, -8.5807], [-172.4836, -8.5829], [-172.4987, -8.5478], [-172.4874, -8.5563], [-172.4791, -8.5807]]] }, "properties": { "name": "Tokelau", "id": "TK" }, "id": "TK" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[70.9579, 40.239], [70.4514, 40.049], [69.9667, 40.2022], [69.5304, 40.0974], [69.229, 39.761], [69.5987, 39.5736], [70.6077, 39.5643], [70.7333, 39.4134], [71.4045, 39.598], [71.8062, 39.2758], [72.0428, 39.3521], [73.2351, 39.3743], [73.6315, 39.4489], [73.8015, 38.6068], [74.2773, 38.6597], [74.7452, 38.5101], [74.8912, 37.2317], [74.2596, 37.4154], [73.7496, 37.2317], [73.4814, 37.4718], [72.8955, 37.2676], [71.8022, 36.6941], [71.4329, 37.1273], [71.5518, 37.933], [71.2558, 38.3068], [70.8789, 38.4564], [70.2148, 37.9246], [70.2512, 37.664], [69.4922, 37.553], [69.2649, 37.1083], [68.9604, 37.3249], [68.0677, 36.9498], [67.7592, 37.1722], [67.8143, 37.4869], [68.2941, 38.0329], [68.0478, 38.6694], [68.1037, 38.9619], [67.6767, 39.0086], [67.3495, 39.242], [67.7193, 39.6216], [68.4632, 39.5368], [68.6528, 40.1827], [69.2281, 40.1875], [69.2063, 40.5666], [69.7128, 40.6572], [70.4417, 41.0234], [70.7511, 40.7397], [70.3826, 40.4534], [70.9579, 40.239]]] }, "properties": { "name": "Tajikistan", "id": "TJ" }, "id": "TJ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[100.1225, 20.3167], [100.5429, 20.0885], [100.3977, 19.7561], [100.6254, 19.4999], [101.1546, 19.5794], [101.2864, 18.977], [101.0507, 18.4071], [101.1133, 18.0333], [100.9086, 17.5837], [101.1053, 17.4793], [102.1014, 18.2104], [102.7175, 17.8922], [103.0913, 18.1381], [103.3669, 18.4235], [103.9497, 18.3192], [104.8162, 17.3005], [104.7505, 16.6475], [105.047, 16.1601], [105.4062, 15.9874], [105.6223, 15.6998], [105.5131, 15.3606], [105.4754, 14.5301], [105.1833, 14.3464], [104.7789, 14.428], [103.1996, 14.3326], [102.729, 13.8421], [102.3198, 13.5398], [102.4995, 12.6698], [102.7557, 12.4261], [102.7366, 12.0896], [102.9341, 11.7065], [102.7628, 12.0124], [101.7236, 12.6893], [101.4449, 12.6187], [100.8634, 12.7146], [100.9628, 13.4319], [100.6561, 13.5212], [100.0173, 13.3534], [100.0901, 13.0457], [99.964, 12.6902], [99.9889, 12.1708], [99.6271, 11.4628], [99.4869, 10.8898], [99.165, 10.3198], [99.1606, 9.7339], [99.3936, 9.2136], [99.7239, 9.3144], [99.9046, 9.1129], [99.9605, 8.6712], [100.2792, 8.2686], [100.4537, 7.4425], [100.5864, 7.1762], [101.0178, 6.861], [101.4977, 6.8654], [102.1009, 6.2422], [101.8737, 5.8254], [101.5563, 5.908], [101.2571, 5.7894], [101.0533, 6.2427], [100.3453, 6.5498], [100.119, 6.442], [99.6959, 6.8765], [99.7203, 7.106], [99.051, 7.8877], [98.5791, 8.3445], [98.2382, 8.4231], [98.3714, 9.2904], [98.7025, 10.1902], [98.7571, 10.6612], [99.1903, 11.1051], [99.6147, 11.7811], [99.4052, 12.5477], [99.2196, 12.7399], [99.1366, 13.7165], [98.2462, 14.8147], [98.1911, 15.204], [98.5653, 15.4037], [98.6892, 16.3052], [98.4388, 16.9755], [97.793, 17.6813], [97.4849, 18.4941], [97.7539, 18.621], [97.8169, 19.46], [98.1112, 19.7623], [98.9169, 19.7729], [99.0208, 20.0419], [99.3382, 20.0788], [99.8904, 20.4246], [100.1225, 20.3167]]] }, "properties": { "name": "Thailand", "id": "TH" }, "id": "TH" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[0.9007, 10.9932], [0.7799, 10.3598], [1.3299, 9.9971], [1.4244, 9.2851], [1.6002, 9.0498], [1.6224, 6.2169], [1.1874, 6.0895], [0.7369, 6.4526], [0.5256, 6.8508], [0.6348, 7.3537], [0.5837, 8.1456], [0.688, 8.3041], [0.4153, 8.6525], [0.5291, 9.3583], [0.2619, 9.4955], [0.3627, 10.2364], [-0.0577, 10.6305], [-0.0686, 11.1157], [0.9007, 10.9932]]] }, "properties": { "name": "Togo", "id": "TG" }, "id": "TG" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[22.86, 10.9195], [22.4938, 10.9963], [21.7063, 10.5746], [21.7258, 10.3664], [21.2638, 9.9745], [20.7733, 9.4058], [20.3422, 9.1271], [19.1455, 9.0161], [19.1087, 8.6561], [18.4553, 8.032], [17.6496, 7.9836], [16.7849, 7.5508], [16.3787, 7.6835], [15.8452, 7.4753], [15.4803, 7.5237], [15.443, 7.8518], [15.1163, 8.5571], [14.3324, 9.2034], [13.9773, 9.6917], [14.2432, 9.9798], [15.5411, 9.9603], [15.1323, 10.6483], [15.0297, 11.1135], [15.0812, 11.8455], [14.7612, 12.6556], [14.5162, 12.9796], [14.0638, 13.0786], [13.6062, 13.7045], [13.4481, 14.3805], [14.3679, 15.7499], [15.4745, 16.9085], [15.7351, 19.9039], [15.949, 20.3034], [15.5873, 20.7335], [15.6072, 20.9546], [15.182, 21.5232], [15.1722, 21.9223], [14.9791, 22.996], [15.9841, 23.4452], [17.7521, 22.5721], [19.6684, 21.6257], [21.5847, 20.6794], [23.9804, 19.4968], [23.9822, 17.2663], [23.9835, 15.7801], [23.105, 15.7024], [22.9323, 15.1622], [22.6709, 14.7223], [22.3815, 14.5505], [22.5098, 14.1275], [22.1076, 13.7302], [22.2283, 13.3294], [21.8253, 12.7905], [22.3522, 12.6604], [22.5564, 11.6697], [22.9226, 11.3448], [22.86, 10.9195]]] }, "properties": { "name": "Chad", "id": "TD" }, "id": "TD" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-71.6615, 21.7651], [-71.8304, 21.7904], [-71.8062, 21.8521], [-71.6684, 21.8335], [-71.6615, 21.7651]]] }, "properties": { "name": "Turks and Caicos Islands", "id": "TC" }, "id": "TC" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[42.3588, 37.1087], [41.7884, 36.5973], [41.4169, 36.5148], [41.2456, 36.0735], [41.3543, 35.6403], [41.1945, 34.7689], [40.9872, 34.4289], [40.6894, 34.3322], [38.7735, 33.372], [36.8182, 32.3173], [36.3721, 32.387], [35.7875, 32.735], [35.8691, 33.4319], [35.9424, 33.6676], [36.5851, 34.2212], [36.4329, 34.6136], [35.9761, 34.6291], [35.9433, 35.2239], [35.7644, 35.5715], [35.8927, 35.9164], [36.1275, 35.8316], [36.6584, 36.8024], [37.4365, 36.6435], [38.1916, 36.9014], [38.7669, 36.6932], [39.3568, 36.6817], [40.0164, 36.8259], [40.7058, 37.0976], [41.5154, 37.0892], [42.2683, 37.2765], [42.3588, 37.1087]]] }, "properties": { "name": "Syria", "id": "SY" }, "id": "SY" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[55.5402, -4.6931], [55.3835, -4.6092], [55.4559, -4.5586], [55.5402, -4.6931]]] }, "properties": { "name": "Seychelles", "id": "SC" }, "id": "SC" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-63.123, 18.0688], [-63.0111, 18.0688], [-63.0231, 18.0191], [-63.123, 18.0688]]] }, "properties": { "name": "Sint Maarten", "id": "SX" }, "id": "SX" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[31.9482, -25.9577], [32.1129, -26.8393], [31.9584, -27.3058], [31.4697, -27.2956], [31.0636, -27.1123], [30.7941, -26.7643], [30.8034, -26.4136], [31.2074, -25.8432], [31.4151, -25.7464], [31.9482, -25.9577]]] }, "properties": { "name": "Eswatini", "id": "SZ" }, "id": "SZ" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[24.1557, 65.8052], [23.1024, 65.7353], [21.5656, 65.4081], [21.1381, 64.8087], [21.4653, 64.3796], [20.7626, 63.8678], [19.0345, 63.2377], [18.4632, 62.8959], [17.8955, 62.8305], [17.4174, 61.7407], [17.1307, 61.5758], [17.251, 60.7009], [17.9559, 60.5897], [18.5573, 60.2537], [18.9706, 59.7572], [17.876, 59.2709], [17.4569, 58.8585], [16.6522, 58.4344], [16.5279, 57.0681], [15.9965, 56.2227], [14.782, 56.1619], [14.2152, 55.8325], [14.3417, 55.5278], [13.3212, 55.3464], [12.5923, 56.1377], [12.8835, 56.6178], [12.4214, 56.9063], [11.4493, 58.1183], [11.147, 58.9886], [11.3885, 59.0365], [11.7982, 59.29], [11.6806, 59.5923], [12.4862, 60.1067], [12.5888, 60.4508], [12.294, 61.0027], [12.8809, 61.3523], [12.1555, 61.7207], [12.3034, 62.2856], [12.2181, 63.0007], [11.9997, 63.2917], [12.6625, 63.9404], [13.9604, 64.0141], [14.0776, 64.464], [13.6501, 64.5816], [14.4798, 65.3014], [14.5432, 66.1292], [15.423, 66.4899], [16.4036, 67.055], [16.1275, 67.4259], [17.3247, 68.1039], [17.9168, 67.965], [18.3785, 68.5624], [19.9698, 68.3565], [20.6223, 69.037], [21.9975, 68.5207], [22.7823, 68.3911], [23.639, 67.9543], [23.4681, 67.45], [23.9884, 66.8106], [23.7012, 66.4808], [24.1557, 65.8052]]], [[[19.0767, 57.836], [18.6998, 57.2428], [18.1365, 57.5566], [18.5374, 57.8305], [19.0767, 57.836]]]] }, "properties": { "name": "Sweden", "id": "SE" }, "id": "SE" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[16.5163, 46.4997], [15.6361, 46.2005], [15.6246, 45.8338], [15.3396, 45.4672], [13.8787, 45.4286], [13.5778, 45.5169], [13.7198, 45.5875], [13.3993, 46.3177], [13.6998, 46.5201], [14.5037, 46.4171], [15.0009, 46.6262], [15.9575, 46.6777], [16.0929, 46.8632], [16.5163, 46.4997]]] }, "properties": { "name": "Slovenia", "id": "SI" }, "id": "SI" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[22.5386, 49.0727], [22.132, 48.4053], [21.4515, 48.5522], [20.4901, 48.5269], [19.8988, 48.1314], [18.7917, 48.0005], [18.7242, 47.787], [17.7619, 47.7701], [17.1475, 48.0058], [16.9531, 48.5988], [17.1884, 48.861], [17.7583, 48.888], [18.161, 49.2574], [18.8321, 49.5108], [19.4416, 49.5976], [19.802, 49.1923], [20.6161, 49.3916], [21.6397, 49.4121], [22.5386, 49.0727]]] }, "properties": { "name": "Slovakia", "id": "SK" }, "id": "SK" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-54.1559, 5.3589], [-54.4522, 5.0135], [-54.3508, 4.0543], [-53.9904, 3.5895], [-54.2032, 3.1381], [-54.1954, 2.818], [-54.6163, 2.3266], [-55.0058, 2.593], [-56.1295, 2.2996], [-56.0198, 1.8424], [-56.4828, 1.9422], [-56.7043, 2.0363], [-57.2097, 2.8828], [-57.3036, 3.3769], [-57.5497, 3.3529], [-57.8327, 3.6761], [-58.0544, 4.1719], [-57.7111, 4.9909], [-57.3309, 5.0202], [-57.1948, 5.5484], [-56.9698, 5.9927], [-55.9395, 5.7957], [-55.8283, 5.9617], [-54.8338, 5.9883], [-54.0543, 5.8081], [-54.1559, 5.3589]]] }, "properties": { "name": "Suriname", "id": "SR" }, "id": "SR" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[6.6602, 0.1205], [6.5243, 0.3402], [6.6868, 0.4041], [6.7498, 0.2435], [6.6602, 0.1205]]] }, "properties": { "name": "Sao Tome and Principe", "id": "ST" }, "id": "ST" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[20.2419, 46.1086], [20.775, 45.7499], [20.7741, 45.4845], [21.4919, 45.1223], [21.3845, 44.8701], [22.7051, 44.2376], [22.421, 44.0077], [22.5546, 43.4546], [22.9767, 43.1878], [22.4667, 42.8425], [22.3442, 42.3138], [21.5625, 42.2476], [21.7529, 42.6698], [21.3907, 42.7515], [21.0569, 43.0915], [20.3445, 42.8278], [19.5517, 43.2122], [19.1943, 43.5331], [19.4882, 43.7036], [19.1517, 44.3024], [19.3568, 44.8586], [19.007, 44.8693], [19.0549, 45.5271], [18.9054, 45.9315], [19.5308, 46.1552], [20.2419, 46.1086]]] }, "properties": { "name": "Serbia", "id": "RS" }, "id": "RS" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-56.2671, 46.8384], [-56.3869, 47.0679], [-56.2873, 47.071], [-56.3148, 46.9538], [-56.2671, 46.8384]]] }, "properties": { "name": "Saint Pierre and Miquelon", "id": "PM" }, "id": "PM" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[41.5328, -1.6955], [40.9788, -0.8703], [40.9699, 1.378], [40.9646, 2.8145], [41.3419, 3.2016], [41.8839, 3.9779], [42.0241, 4.1377], [42.7916, 4.2922], [43.0158, 4.5634], [43.5383, 4.8404], [44.0283, 4.9509], [44.9405, 4.9119], [45.9348, 5.9972], [47.9781, 7.9969], [46.9784, 7.9969], [44.023, 8.9859], [43.4828, 9.3796], [43.1818, 9.8799], [42.8418, 10.2031], [42.6594, 10.6212], [42.9226, 10.9994], [43.2462, 11.4997], [43.853, 10.7841], [44.3865, 10.4303], [44.9427, 10.4365], [45.8168, 10.8361], [46.5652, 10.7459], [47.405, 11.1739], [48.0193, 11.1392], [48.6745, 11.3226], [48.9031, 11.2546], [50.1101, 11.5294], [50.7923, 11.9835], [51.2549, 11.8308], [51.0844, 11.3354], [51.1408, 10.6567], [50.8984, 10.2532], [50.8247, 9.428], [50.4297, 8.8452], [50.103, 8.1998], [49.3484, 6.9906], [49.0492, 6.1739], [48.6492, 5.4943], [47.9754, 4.4968], [46.879, 3.2854], [46.0511, 2.4753], [44.9201, 1.81], [44.3328, 1.3909], [43.4677, 0.6217], [41.9798, -0.9728], [41.5328, -1.6955]]] }, "properties": { "name": "Somalia", "id": "SO" }, "id": "SO" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[12.4853, 43.9016], [12.397, 43.9344], [12.441, 43.9824], [12.5146, 43.9531], [12.4853, 43.9016]]] }, "properties": { "name": "San Marino", "id": "SM" }, "id": "SM" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-89.3626, 14.416], [-89.0572, 14.329], [-88.4491, 13.851], [-88.151, 13.9872], [-87.7153, 13.8128], [-87.8143, 13.3991], [-87.9308, 13.1807], [-88.5121, 13.1838], [-89.2776, 13.4781], [-89.8043, 13.5602], [-90.0952, 13.7364], [-89.8726, 14.0454], [-89.3626, 14.416]]] }, "properties": { "name": "El Salvador", "id": "SV" }, "id": "SV" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-10.2832, 8.4852], [-10.6474, 7.7594], [-11.2678, 7.2325], [-11.5075, 6.9067], [-11.7334, 7.0887], [-12.4856, 7.3861], [-12.5104, 7.6658], [-12.8809, 7.8566], [-13.2284, 8.696], [-13.2928, 9.0494], [-12.7559, 9.3734], [-12.5016, 9.8622], [-11.911, 9.9931], [-11.2056, 9.9776], [-10.6905, 9.3144], [-10.5005, 8.6876], [-10.2832, 8.4852]]] }, "properties": { "name": "Sierra Leone", "id": "SL" }, "id": "SL" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[161.7152, -10.3873], [162.1054, -10.4539], [162.1236, -10.8245], [161.5381, -10.5666], [161.7152, -10.3873]]], [[[159.7505, -9.2727], [159.9707, -9.4334], [160.3547, -9.4214], [160.6254, -9.5888], [160.6494, -9.9288], [159.8535, -9.7916], [159.6218, -9.5319], [159.7505, -9.2727]]], [[[160.7493, -8.3139], [160.9979, -8.6122], [161.2584, -9.3171], [160.8736, -9.1568], [160.5904, -8.3729], [160.7493, -8.3139]]], [[[159.8793, -8.5341], [158.944, -8.0409], [159.1095, -7.9037], [159.8433, -8.3272], [159.8793, -8.5341]]]] }, "properties": { "name": "Solomon Islands", "id": "SB" }, "id": "SB" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-5.6923, -15.9977], [-5.775, -15.9568], [-5.7078, -15.9062], [-5.6923, -15.9977]]] }, "properties": { "name": "Saint Helena", "id": "SH" }, "id": "SH" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-37.1034, -54.0658], [-36.3264, -54.2509], [-35.7986, -54.7636], [-36.0855, -54.8666], [-37.1034, -54.0658]]] }, "properties": { "name": "South Georgia and South Sandwich Islands", "id": "GS" }, "id": "GS" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[103.9697, 1.3314], [103.8201, 1.2653], [103.6501, 1.3257], [103.8179, 1.4473], [103.9697, 1.3314]]] }, "properties": { "name": "Singapore", "id": "SG" }, "id": "SG" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-12.2807, 14.8089], [-12.0193, 14.2065], [-12.0543, 13.633], [-11.6349, 13.3698], [-11.3903, 12.9419], [-11.3894, 12.4043], [-12.2912, 12.328], [-13.0828, 12.6334], [-13.7294, 12.6738], [-15.1962, 12.68], [-15.5748, 12.4904], [-16.7119, 12.3551], [-16.7634, 13.064], [-16.6488, 13.1541], [-15.8343, 13.1563], [-15.5096, 13.5864], [-16.5623, 13.5873], [-17.168, 14.6407], [-17.1471, 14.9221], [-16.5352, 15.8383], [-16.4411, 16.2045], [-16.1683, 16.5472], [-15.6208, 16.5068], [-15.1128, 16.6448], [-14.3, 16.5805], [-13.8685, 16.1481], [-13.4095, 16.0593], [-13.2579, 15.7002], [-12.8584, 15.2426], [-12.2807, 14.8089]]] }, "properties": { "name": "Senegal", "id": "SN" }, "id": "SN" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[34.078, 9.4613], [34.0945, 8.5824], [33.9533, 8.4435], [33.2342, 8.3964], [33.0127, 7.9516], [33.2262, 7.7608], [33.6661, 7.6711], [34.0643, 7.2259], [34.7106, 6.6604], [35.0821, 5.6731], [35.2681, 5.4925], [33.9759, 4.2203], [33.4894, 3.7551], [32.8382, 3.7986], [32.3358, 3.7063], [32.0996, 3.5291], [31.7982, 3.8026], [31.4799, 3.6805], [31.1523, 3.7857], [30.8385, 3.4905], [30.5083, 3.8359], [30.1949, 3.9819], [29.6768, 4.5869], [29.1513, 4.3881], [28.7269, 4.5048], [28.192, 4.3503], [27.7881, 4.6446], [27.4032, 5.1094], [27.0836, 5.777], [26.5141, 6.0691], [26.3619, 6.6355], [25.8891, 7.0647], [25.3809, 7.3333], [25.2472, 7.7244], [24.8535, 8.1376], [24.2915, 8.2912], [24.1473, 8.6654], [24.5321, 8.8869], [24.7852, 9.7747], [25.067, 10.2936], [25.7981, 10.4206], [25.8913, 10.2026], [26.5514, 9.5257], [27.0743, 9.614], [27.8857, 9.5998], [28.0491, 9.3286], [28.8445, 9.3259], [28.9995, 9.61], [29.4731, 9.7685], [29.6054, 10.065], [30.0031, 10.2772], [30.7395, 9.7427], [31.2247, 9.7991], [31.6548, 10.2213], [31.9331, 10.6625], [32.4041, 11.0576], [32.3353, 11.7158], [32.0721, 12.0066], [32.7366, 12.0097], [33.1991, 12.2174], [33.0731, 11.5916], [33.172, 10.8503], [33.892, 10.1991], [34.078, 9.4613]]] }, "properties": { "name": "South Sudan", "id": "SS" }, "id": "SS" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[36.8714, 21.9968], [36.9269, 21.5867], [37.1507, 21.1037], [37.2274, 20.5568], [37.2483, 19.5821], [37.4711, 18.8203], [37.9217, 18.5558], [38.6093, 18.0049], [38.2537, 17.5845], [37.7823, 17.458], [37.4112, 17.0616], [37.0091, 17.059], [36.9136, 16.2964], [36.4267, 15.132], [36.5243, 14.2567], [36.3907, 13.6259], [36.2123, 13.2712], [36.1075, 12.7266], [35.5961, 12.5375], [35.1123, 11.8166], [34.9312, 10.8649], [34.5716, 10.88], [34.2756, 10.528], [34.2915, 10.1249], [34.078, 9.4613], [33.892, 10.1991], [33.172, 10.8503], [33.0731, 11.5916], [33.1991, 12.2174], [32.7366, 12.0097], [32.0721, 12.0066], [32.3353, 11.7158], [32.4041, 11.0576], [31.9331, 10.6625], [31.6548, 10.2213], [31.2247, 9.7991], [30.7395, 9.7427], [30.0031, 10.2772], [29.6054, 10.065], [29.4731, 9.7685], [28.9995, 9.61], [28.8445, 9.3259], [28.0491, 9.3286], [27.8857, 9.5998], [27.0743, 9.614], [26.5514, 9.5257], [25.8913, 10.2026], [25.7981, 10.4206], [25.067, 10.2936], [24.7852, 9.7747], [24.5321, 8.8869], [24.1473, 8.6654], [23.5374, 8.8159], [23.6461, 9.8231], [23.2559, 10.4579], [22.86, 10.9195], [22.9226, 11.3448], [22.5564, 11.6697], [22.3522, 12.6604], [21.8253, 12.7905], [22.2283, 13.3294], [22.1076, 13.7302], [22.5098, 14.1275], [22.3815, 14.5505], [22.6709, 14.7223], [22.9323, 15.1622], [23.105, 15.7024], [23.9835, 15.7801], [23.9822, 17.2663], [23.9804, 19.4968], [23.9804, 19.9958], [24.9796, 20.0024], [24.9805, 21.9959], [27.2723, 21.9955], [30.3285, 21.9951], [32.6061, 21.9959], [34.2467, 21.9964], [36.8714, 21.9968]]] }, "properties": { "name": "Sudan", "id": "SD" }, "id": "SD" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[46.5314, 29.0964], [47.4334, 28.9895], [47.6713, 28.5331], [48.4424, 28.5429], [48.9067, 27.6289], [49.4052, 27.1811], [49.9862, 26.829], [50.214, 26.3084], [50.0315, 26.1108], [50.558, 25.0868], [50.8043, 24.7894], [51.2682, 24.6074], [51.5683, 24.286], [51.5927, 24.0787], [52.555, 22.933], [55.1043, 22.6214], [55.186, 22.704], [55.641, 22.0017], [54.9774, 19.9958], [53.667, 19.559], [51.9775, 18.9961], [49.0421, 18.582], [48.172, 18.1567], [47.5795, 17.4483], [47.4418, 17.1118], [46.9758, 16.9533], [46.6819, 17.2685], [46.3104, 17.2312], [45.4066, 17.32], [45.1483, 17.4274], [44.1557, 17.3986], [43.9169, 17.3249], [43.418, 17.5162], [43.1911, 17.3595], [43.1649, 16.6892], [42.7992, 16.3718], [42.6989, 16.7372], [42.3833, 17.1225], [42.294, 17.435], [41.7498, 17.8855], [41.2296, 18.6783], [41.1159, 19.0822], [40.7591, 19.7556], [40.0808, 20.2661], [39.6138, 20.5178], [39.0936, 21.3101], [38.9879, 21.8819], [39.0958, 22.3928], [38.9413, 22.882], [38.4641, 23.712], [37.9195, 24.1852], [37.5431, 24.2918], [37.1808, 24.82], [37.1489, 25.291], [36.7627, 25.7513], [36.2496, 26.5947], [35.5815, 27.4323], [35.1807, 28.0347], [34.616, 28.1483], [34.7798, 28.5074], [34.9507, 29.3535], [36.0156, 29.1906], [36.4759, 29.4951], [36.7551, 29.8662], [37.4694, 29.9949], [37.6336, 30.3132], [37.9803, 30.5], [36.9584, 31.4917], [38.9622, 31.9951], [39.1455, 32.1247], [40.3693, 31.9391], [42.0743, 31.0802], [42.8578, 30.4952], [44.7163, 29.1937], [46.3565, 29.0636], [46.5314, 29.0964]]] }, "properties": { "name": "Saudi Arabia", "id": "SA" }, "id": "SA" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-8.6834, 27.6565], [-8.6834, 27.2858], [-8.6821, 25.9954], [-10.5624, 25.9954], [-12.0164, 25.9954], [-12.0235, 23.4674], [-12.6203, 23.2712], [-13.0316, 23], [-13.0944, 22.4958], [-13.0163, 21.3341], [-15.0018, 21.3314], [-16.9647, 21.3292], [-17.0481, 20.8063], [-16.9309, 21.9001], [-16.5143, 22.3333], [-16.2103, 23.0981], [-15.5864, 24.0729], [-15.0388, 24.5488], [-14.856, 24.8715], [-14.7949, 25.4041], [-14.4138, 26.2538], [-13.5758, 26.7349], [-13.1774, 27.652], [-8.6834, 27.6565]]] }, "properties": { "name": "Western Sahara", "id": "EH" }, "id": "EH" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[30.51, -1.0674], [30.8128, -1.5632], [30.8287, -2.3387], [30.5535, -2.3999], [29.9303, -2.3396], [29.8682, -2.7164], [29.3901, -2.8087], [29.0146, -2.7204], [28.8765, -2.4004], [29.1064, -2.2335], [29.1295, -1.8601], [29.577, -1.3878], [30.1016, -1.3688], [30.51, -1.0674]]] }, "properties": { "name": "Rwanda", "id": "RW" }, "id": "RW" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-178.8765, 71.5769], [-177.5322, 71.2631], [-177.8218, 71.0675], [-179.5066, 70.9235], [-180, 70.993], [-180, 71.1843], [-180, 71.3998], [-180, 71.5379], [-178.8765, 71.5769]]], [[[178.8614, 70.8265], [178.8911, 71.2311], [180, 71.5379], [180, 70.993], [178.8614, 70.8265]]], [[[60.4505, 69.935], [59.5783, 69.7385], [58.473, 70.2668], [59.0052, 70.4652], [60.4505, 69.935]]], [[[169.201, 69.5805], [167.789, 69.8369], [168.358, 70.0157], [169.375, 69.8826], [169.201, 69.5805]]], [[[50.265, 69.1857], [49.6262, 68.8596], [48.667, 68.7331], [48.279, 69.0403], [48.6315, 69.436], [49.225, 69.5113], [50.265, 69.1857]]], [[[-179.7985, 68.9404], [-178.8739, 68.7542], [-177.4075, 68.2451], [-175.3451, 67.678], [-174.4476, 67.1031], [-173.6797, 67.1449], [-172.6405, 66.9249], [-171.7956, 66.9318], [-170.192, 66.2014], [-170.6663, 65.6214], [-172.2115, 65.4252], [-172.2133, 65.0482], [-172.9239, 64.705], [-173.0092, 64.2975], [-173.7298, 64.3646], [-174.318, 64.6376], [-175.3951, 64.8025], [-175.8538, 65.0109], [-176.0933, 65.471], [-177.0563, 65.6137], [-178.3103, 65.4849], [-178.8794, 65.9364], [-179.7283, 65.8039], [-179.3521, 65.5167], [-180, 65.0672], [-180, 65.312], [-180, 65.5569], [-180, 65.8014], [-180, 66.0462], [-180, 66.291], [-180, 66.5359], [-180, 66.7807], [-180, 67.0252], [-180, 67.2701], [-180, 67.5149], [-180, 67.7597], [-180, 68.0045], [-180, 68.2491], [-180, 68.4939], [-180, 68.7387], [-180, 68.9835], [-179.7985, 68.9404]]], [[[163.635, 58.6033], [163.7611, 59.015], [164.6156, 58.8856], [163.635, 58.6033]]], [[[21.2358, 55.2641], [22.8311, 54.8384], [22.7663, 54.3568], [19.6045, 54.4591], [19.9747, 54.9212], [20.5202, 54.9949], [20.8998, 55.2867], [20.9579, 55.279], [21.2358, 55.2641]]], [[[142.761, 54.3939], [142.9181, 53.7942], [143.2235, 53.2961], [143.3234, 52.6136], [143.1556, 52.0838], [143.4552, 51.4715], [143.8161, 50.2825], [144.272, 49.3113], [143.105, 49.1988], [142.5741, 48.0719], [142.5568, 47.7381], [143.0056, 47.2228], [143.2821, 46.5592], [142.5781, 46.7008], [142.2088, 46.0891], [141.8302, 46.4508], [142.0388, 47.1402], [141.9642, 47.5872], [142.1817, 48.0133], [141.8661, 48.75], [142.1422, 49.5692], [142.0712, 50.5149], [142.2066, 51.2225], [141.7223, 51.7363], [141.8235, 53.3394], [142.5262, 53.4475], [142.761, 54.3939]]], [[[148.5995, 45.3176], [147.9137, 44.9904], [147.7694, 45.1906], [148.5995, 45.3176]]], [[[96.5265, 81.0755], [97.8316, 80.7983], [97.1751, 80.241], [94.565, 80.1261], [93.8725, 80.0102], [91.5239, 80.3584], [93.2626, 80.7912], [93.0651, 80.9885], [95.8008, 81.2804], [96.5265, 81.0755]]], [[[54.719, 81.1159], [57.694, 80.7923], [55.7124, 80.6372], [54.0665, 80.8136], [54.719, 81.1159]]], [[[62.168, 80.8347], [61.0511, 80.4186], [59.3044, 80.5216], [59.5921, 80.8165], [62.168, 80.8347]]], [[[97.6744, 80.1582], [100.0613, 79.7772], [99.4394, 78.8341], [97.5555, 78.8266], [94.6524, 79.1275], [93.0708, 79.4953], [94.9871, 80.0968], [97.6744, 80.1582]]], [[[102.8848, 79.254], [105.146, 78.8188], [105.3125, 78.4999], [103.7194, 78.2582], [101.2043, 78.192], [100.2841, 78.6792], [101.5905, 79.3504], [102.8848, 79.254]]], [[[130.6871, 42.3027], [130.5269, 42.5353], [130.5771, 42.8118], [131.0684, 42.9024], [131.262, 43.4333], [131.2553, 44.0716], [131.0822, 44.9101], [131.9775, 45.2439], [132.9359, 45.03], [133.1858, 45.4947], [133.8614, 46.2475], [134.1677, 47.3022], [134.7523, 47.7155], [134.5636, 48.3219], [134.2933, 48.3733], [133.4686, 48.0972], [133.1441, 48.1057], [132.5617, 47.7683], [131.0027, 47.6915], [130.712, 48.1279], [130.8043, 48.3414], [130.1962, 48.8916], [129.5339, 49.3235], [128.5267, 49.5943], [127.9998, 49.5685], [127.5027, 49.8735], [127.5901, 50.2091], [126.9247, 51.1002], [126.313, 52.3997], [125.649, 53.0422], [124.8122, 53.1339], [123.6079, 53.5465], [122.338, 53.485], [120.704, 53.1718], [120.0945, 52.7872], [120.6561, 52.5666], [120.7497, 52.0965], [120.067, 51.6007], [119.1921, 50.3797], [119.26, 50.0664], [118.4517, 49.8444], [117.8733, 49.5135], [116.6832, 49.8238], [116.1346, 50.0109], [115.2743, 49.9489], [114.743, 50.2337], [114.2969, 50.2743], [113.1641, 49.7971], [113.0557, 49.6162], [111.3366, 49.3559], [110.8279, 49.1661], [110.1997, 49.1704], [109.2365, 49.3348], [108.6137, 49.3228], [108.034, 49.594], [107.9479, 49.9247], [107.2332, 49.9893], [106.7112, 50.3125], [106.218, 50.3045], [105.3835, 50.4736], [103.6328, 50.1387], [102.6833, 50.3871], [102.2883, 50.585], [102.1116, 51.3534], [101.3814, 51.4526], [100.4687, 51.7261], [98.8485, 52.0701], [97.947, 51.3483], [97.8254, 50.9852], [98.2795, 50.5333], [98.1032, 50.0779], [97.2088, 49.7308], [96.986, 49.8828], [95.8518, 50.0129], [95.5229, 49.9112], [94.6147, 50.0237], [94.2511, 50.5564], [91.8044, 50.6936], [89.644, 49.903], [89.6542, 49.7175], [88.8317, 49.4485], [88.1925, 49.4518], [87.8143, 49.1624], [87.3229, 49.0858], [86.6144, 49.6098], [86.1807, 49.4993], [85.21, 49.6648], [84.9893, 50.0615], [84.2578, 50.2883], [83.9453, 50.7746], [83.3571, 50.9945], [82.4938, 50.7275], [81.4657, 50.7397], [80.8771, 51.2815], [79.9862, 50.7746], [79.4687, 51.493], [78.4757, 52.6385], [77.7042, 53.3791], [76.5758, 53.9424], [76.2664, 54.312], [74.4518, 53.6472], [73.2857, 53.5984], [73.3993, 53.8115], [72.9141, 54.1073], [71.0933, 54.2123], [71.1856, 54.5994], [70.7382, 55.3052], [70.1824, 55.1625], [68.9773, 55.3895], [68.2062, 55.1609], [68.0739, 54.9596], [66.2225, 54.6673], [65.4767, 54.6233], [65.1576, 54.3643], [64.4611, 54.3841], [63.0739, 54.1053], [61.9287, 53.9464], [61.3339, 54.0492], [60.9797, 53.6217], [61.1994, 53.2872], [62.0148, 53.1079], [61.974, 52.9437], [61.0476, 52.9725], [60.8021, 52.7448], [60.9375, 52.2805], [60.0657, 51.9764], [60.4647, 51.6513], [61.3632, 51.442], [61.5851, 51.2298], [61.3894, 50.8609], [60.6379, 50.6638], [59.9552, 50.7992], [59.8122, 50.5819], [58.8836, 50.6945], [58.3594, 51.0638], [57.8387, 51.0917], [57.4423, 50.8889], [57.0117, 51.0651], [56.4915, 51.0196], [55.7977, 50.6021], [55.5424, 50.6017], [54.727, 50.9981], [54.4216, 50.7804], [54.0416, 51.1153], [53.3381, 51.4824], [52.571, 51.4817], [52.3309, 51.6812], [51.6091, 51.4839], [50.7941, 51.7292], [50.2468, 51.2895], [49.498, 51.0835], [48.8086, 50.6012], [48.8432, 50.0131], [48.4344, 49.8284], [47.706, 50.378], [47.3264, 50.2734], [46.8022, 49.367], [47.0144, 49.0984], [46.7028, 48.8055], [46.661, 48.4124], [47.0042, 48.2846], [47.0934, 47.9477], [48.1099, 47.7452], [48.9595, 46.7744], [48.6102, 46.5663], [49.2321, 46.3372], [48.1592, 45.7371], [47.5244, 45.6017], [46.7529, 44.4205], [47.2301, 44.1923], [47.5089, 43.5096], [47.4632, 43.0351], [48.5729, 41.8446], [47.8609, 41.2129], [47.2612, 41.315], [46.7494, 41.8126], [46.4298, 41.8907], [45.6388, 42.205], [45.7275, 42.4749], [45.1602, 42.6751], [44.5059, 42.7488], [43.9573, 42.5664], [43.7824, 42.747], [42.4192, 43.2242], [41.5807, 43.2193], [40.6481, 43.534], [39.9782, 43.42], [38.7171, 44.2882], [38.1814, 44.4196], [37.8516, 44.6988], [37.4112, 44.7352], [36.9411, 45.2896], [37.6474, 45.3771], [37.9332, 46.0016], [38.1836, 46.0948], [37.9679, 46.6182], [39.2933, 47.1056], [38.2142, 47.0914], [38.2875, 47.5592], [38.9005, 47.8553], [39.7359, 47.8447], [39.9609, 48.238], [39.6866, 49.0079], [40.0701, 49.2003], [39.7807, 49.5721], [39.1748, 49.8559], [38.2586, 50.0524], [38.0469, 49.9201], [37.4228, 50.4115], [36.3059, 50.2805], [35.4115, 50.5398], [35.3121, 51.0438], [34.2809, 51.3117], [34.3976, 51.7804], [33.7353, 52.3448], [32.508, 52.3084], [31.7636, 52.1012], [31.5771, 52.3122], [31.4178, 53.196], [32.1422, 53.0913], [32.7042, 53.3363], [31.792, 54.0558], [31.4036, 54.1959], [31.1213, 54.6484], [30.9069, 55.5699], [30.2335, 55.8452], [29.4824, 55.6845], [29.375, 55.9386], [28.7948, 55.9426], [28.1481, 56.143], [27.8063, 56.867], [27.797, 57.3169], [27.3517, 57.5282], [27.753, 57.8411], [27.4272, 58.7331], [28.0127, 59.4842], [28.014, 59.7248], [28.9471, 59.8289], [29.0692, 60.1915], [28.6506, 60.611], [27.7978, 60.5362], [29.6902, 61.5461], [31.2855, 62.5679], [31.5341, 62.8855], [31.1807, 63.2082], [30.0555, 63.689], [30.5038, 64.0205], [30.1083, 64.3661], [30.0728, 64.7649], [29.604, 64.9685], [29.9032, 66.0911], [29.0869, 66.9709], [29.9414, 67.5475], [29.3439, 68.062], [28.4708, 68.4883], [28.9657, 69.0219], [30.8696, 69.7834], [31.9846, 69.9536], [32.9417, 69.7519], [32.3775, 69.4791], [33.6843, 69.3102], [35.858, 69.1917], [40.3809, 67.8318], [40.9663, 67.7135], [41.1887, 66.8262], [40.5216, 66.4466], [39.2889, 66.1321], [38.3975, 66.0644], [35.5136, 66.3958], [34.8247, 66.6111], [32.4636, 66.9163], [33.5667, 66.321], [34.7865, 65.8645], [34.4065, 65.3957], [34.8034, 64.986], [34.8695, 64.5601], [35.6472, 64.3783], [36.365, 64.0028], [37.4423, 63.8135], [38.0708, 64.0259], [37.9537, 64.3202], [37.1835, 64.4085], [36.5283, 64.8473], [36.883, 65.1724], [38.0096, 64.8788], [39.7581, 64.577], [40.281, 64.998], [39.8167, 65.5979], [41.4759, 66.1235], [42.2106, 66.5197], [44.0971, 66.2351], [44.4886, 66.6719], [44.292, 67.0996], [43.7824, 67.2545], [44.2254, 67.9956], [44.0483, 68.5489], [45.8922, 68.4797], [46.6903, 67.8489], [45.5287, 67.7577], [44.9396, 67.4776], [45.9859, 66.853], [46.6908, 66.8255], [47.7091, 67.045], [47.8746, 67.5841], [48.8778, 67.7315], [50.839, 68.3498], [52.5502, 68.5924], [53.8019, 68.9959], [53.9679, 68.2273], [54.5614, 68.273], [56.0436, 68.649], [57.1267, 68.554], [58.9191, 69.0039], [59.8975, 68.422], [60.9335, 68.9868], [60.1704, 69.5909], [61.0161, 69.8515], [63.3616, 69.6753], [68.5041, 68.3485], [69.1406, 68.9506], [68.5427, 68.9671], [68.006, 69.48], [67.0645, 69.6937], [66.9265, 70.0142], [67.2847, 70.7386], [66.6664, 70.9006], [66.9176, 71.2824], [68.2693, 71.6828], [69.039, 72.67], [69.6449, 72.8975], [71.5003, 72.9137], [72.8121, 72.6915], [72.6243, 72.0794], [71.9118, 71.5478], [72.7317, 70.823], [72.5297, 70.1724], [72.5275, 69.0805], [73.548, 68.5744], [73.1521, 67.8651], [72.5945, 67.587], [71.5514, 66.7605], [70.9393, 66.5481], [69.877, 66.8455], [69.1943, 66.5787], [70.3396, 66.3423], [71.9172, 66.2467], [72.4174, 66.5607], [73.7922, 66.9953], [74.0745, 67.4141], [74.7696, 67.7663], [74.3914, 68.4206], [74.5796, 68.7511], [76.4591, 68.9784], [77.2385, 68.4697], [77.6509, 68.9029], [76.001, 69.2349], [74.8149, 69.0907], [73.7757, 69.1983], [73.56, 69.7072], [74.3111, 70.6536], [73.0864, 71.4449], [73.6719, 71.845], [75.7413, 72.2962], [76.0325, 71.9103], [78.4828, 72.395], [79.422, 72.3808], [80.7626, 72.0892], [81.511, 71.7463], [82.9861, 71.7487], [82.1835, 72.2376], [80.827, 72.4882], [80.5096, 73.0861], [80.5833, 73.5684], [83.5449, 73.6665], [86.5913, 73.8943], [86.6513, 74.6824], [87.6713, 75.1296], [90.1851, 75.591], [93.5498, 75.854], [94.5756, 76.1517], [96.879, 75.9311], [100.3223, 76.479], [100.9899, 76.9904], [103.1312, 77.6265], [104.0146, 77.7304], [105.8944, 77.4889], [104.9121, 77.1748], [107.4299, 76.9265], [108.0278, 76.7185], [111.1151, 76.723], [112.6194, 76.3836], [113.8712, 75.856], [113.6137, 75.293], [111.8683, 74.7401], [109.8402, 74.3219], [108.1996, 73.6941], [107.2709, 73.621], [106.4782, 73.1394], [107.7503, 73.1731], [109.8553, 73.4726], [110.2614, 74.0174], [112.1471, 73.7089], [114.0607, 73.5846], [115.3378, 73.7025], [118.4504, 73.5897], [118.4304, 73.2466], [119.7505, 72.9792], [123.1605, 72.955], [123.6222, 73.1933], [123.3052, 73.5329], [124.3883, 73.7549], [125.617, 73.5207], [127.7406, 73.4817], [128.8885, 73.1902], [129.4118, 72.3156], [128.3589, 72.0883], [129.7621, 71.1195], [131.1572, 70.7422], [131.562, 70.9011], [132.5621, 71.8952], [134.1029, 71.3789], [135.8847, 71.6306], [137.3153, 71.3594], [138.1183, 71.5663], [139.695, 71.7003], [139.6014, 72.496], [142.0614, 72.7208], [145.4856, 72.5422], [146.594, 72.3025], [148.402, 72.312], [149.5015, 72.1644], [150.5997, 71.5201], [151.5825, 71.2871], [152.5089, 70.8345], [153.7944, 70.88], [155.8953, 71.0955], [158.0371, 71.0394], [159.3506, 70.7908], [160.0062, 70.3096], [159.8326, 69.7849], [161.5367, 69.3796], [162.3757, 69.6491], [164.1597, 69.7192], [164.5135, 69.6091], [166.8204, 69.4995], [167.6283, 69.7403], [168.303, 69.2716], [169.3106, 69.0796], [169.6098, 68.7862], [170.5375, 68.8254], [170.9952, 69.0454], [170.5824, 69.5834], [170.4869, 70.1076], [172.5595, 69.9682], [173.2772, 69.8238], [176.1075, 69.8604], [176.9243, 69.646], [178.8485, 69.3872], [180, 68.9835], [180, 65.0672], [178.5196, 64.6029], [177.4671, 64.7368], [177.433, 64.4445], [178.6501, 63.9653], [178.7065, 63.5216], [179.3324, 63.1902], [179.5703, 62.6875], [179.1206, 62.3204], [177.3513, 62.5874], [175.2681, 62.1025], [174.5144, 61.8237], [173.6235, 61.7161], [172.8564, 61.4693], [172.3926, 61.0618], [170.6081, 60.435], [169.9827, 60.067], [169.2267, 60.5959], [168.1374, 60.5739], [166.9642, 60.3069], [166.3521, 60.4847], [165.0843, 60.0985], [163.7802, 60.041], [163.41, 59.8349], [163.2728, 59.3026], [162.1418, 58.4475], [161.9602, 58.0768], [162.4671, 57.7661], [163.2138, 57.6869], [162.7792, 57.3577], [162.8027, 56.8115], [163.2564, 56.6881], [163.3354, 56.2325], [162.5284, 56.2606], [162.085, 56.0897], [161.7294, 55.358], [162.1058, 54.7521], [161.7258, 54.533], [160.7728, 54.5414], [160.0746, 54.1892], [159.8437, 53.7837], [159.8975, 53.3807], [158.6088, 52.8735], [158.4637, 52.3049], [158.1037, 51.8095], [156.7476, 50.9692], [156.5003, 51.475], [156.3645, 52.5093], [156.0986, 53.0065], [155.6201, 54.8646], [155.5549, 55.3484], [155.9828, 56.6952], [156.7285, 57.1522], [157.4503, 57.7994], [158.2102, 58.0253], [159.0367, 58.4239], [159.8473, 59.1271], [161.7534, 60.1522], [162.0037, 60.4201], [162.9732, 60.7828], [163.71, 60.9168], [164.0052, 61.3439], [164.2556, 62.6966], [163.3318, 62.5508], [163.0091, 61.7915], [162.3926, 61.6621], [160.7666, 60.7533], [159.8832, 61.2917], [160.3174, 61.7933], [159.5525, 61.7194], [159.0767, 61.9223], [158.07, 61.7536], [157.4694, 61.7989], [156.6801, 61.4806], [156.63, 61.2724], [155.8532, 60.7772], [154.9707, 60.3766], [154.2929, 59.8333], [154.5827, 59.5401], [155.1669, 59.3601], [154.011, 59.0756], [153.3611, 59.2147], [152.8822, 58.9391], [151.99, 59.1601], [151.4857, 59.5241], [150.4572, 59.5907], [149.6427, 59.7705], [149.205, 59.4882], [147.8746, 59.3881], [147.5146, 59.2687], [146.4444, 59.4305], [145.9317, 59.1983], [145.5544, 59.4136], [143.192, 59.3701], [142.0255, 58.9997], [141.7547, 58.7453], [140.6849, 58.2122], [140.447, 57.8136], [140.0022, 57.6875], [138.6621, 56.9655], [137.6913, 56.1395], [136.175, 55.3522], [135.2623, 54.9434], [135.8514, 54.5838], [136.7973, 54.6209], [136.6828, 53.9313], [137.1555, 53.8217], [137.3282, 53.5389], [138.2923, 53.5924], [138.6608, 53.7449], [138.6958, 54.3199], [139.7075, 54.2771], [140.3471, 53.8126], [141.4022, 53.184], [141.1696, 52.3684], [141.4853, 52.1786], [140.6876, 51.2322], [140.4763, 50.546], [140.5171, 49.596], [140.1704, 48.5238], [139.3728, 47.8873], [139.0012, 47.3835], [138.5866, 47.0572], [138.3367, 46.5432], [137.6855, 45.8183], [136.8035, 45.1711], [136.1421, 44.4893], [135.8745, 44.3734], [135.1309, 43.5256], [133.7092, 42.83], [133.1601, 42.6969], [132.4813, 42.9099], [132.3344, 43.2388], [131.7946, 43.2553], [131.1586, 42.6258], [130.6871, 42.3027]]], [[[67.7654, 76.2376], [66.2824, 75.9837], [61.3561, 75.3149], [60.2224, 74.7965], [58.5347, 74.4988], [58.4415, 74.1288], [56.9638, 73.3665], [55.0067, 73.4539], [53.7629, 73.7662], [54.6427, 73.9595], [57.0876, 75.3837], [58.8814, 75.8547], [62.9714, 76.2367], [65.8629, 76.6133], [67.5351, 77.0077], [68.4859, 76.9338], [68.9, 76.5729], [67.7654, 76.2376]]], [[[140.0488, 75.829], [140.9442, 75.7004], [142.4605, 75.9035], [143.6856, 75.8636], [145.2552, 75.5857], [144.0199, 75.0446], [141.9873, 74.9913], [139.0993, 74.6566], [138.0921, 74.7974], [137.0064, 75.235], [137.5013, 75.9097], [138.8139, 76.1996], [140.0488, 75.829]]], [[[146.7951, 75.3709], [150.1039, 75.2193], [150.6463, 74.9445], [149.5969, 74.7725], [148.0926, 74.8258], [146.1483, 75.1984], [146.7951, 75.3709]]], [[[113.3873, 74.4005], [112.7823, 74.0951], [111.6428, 74.2729], [112.0845, 74.549], [113.3873, 74.4005]]], [[[142.1848, 73.8958], [143.3438, 73.5687], [143.1934, 73.2206], [140.6627, 73.4519], [141.0849, 73.8658], [142.1848, 73.8958]]], [[[55.32, 73.3083], [56.4293, 73.2011], [55.356, 72.4651], [55.2978, 71.9354], [57.1458, 70.589], [54.6009, 70.68], [53.7225, 70.8145], [53.3638, 71.5416], [51.8124, 71.4912], [51.5825, 72.0712], [52.6221, 72.3009], [53.7531, 73.2932], [55.32, 73.3083]]]] }, "properties": { "name": "Russia", "id": "RU" }, "id": "RU" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[28.2124, 45.4503], [28.7606, 45.2341], [29.2236, 45.4028], [29.7061, 45.2599], [29.5574, 44.8435], [29.0483, 44.7574], [28.6452, 44.2958], [28.5853, 43.7422], [27.0867, 44.1675], [26.2158, 44.0072], [25.4972, 43.6708], [23.2244, 43.8741], [22.7051, 44.2376], [21.3845, 44.8701], [21.4919, 45.1223], [20.7741, 45.4845], [20.775, 45.7499], [20.2419, 46.1086], [21.1519, 46.3044], [22.2905, 47.7279], [22.8764, 47.9472], [23.2027, 48.0844], [24.8935, 47.7177], [26.1625, 47.9925], [26.6189, 48.2597], [26.9806, 48.155], [27.3366, 47.6396], [28.0717, 46.9786], [28.2444, 46.4513], [28.0997, 45.9728], [28.2124, 45.4503]]] }, "properties": { "name": "Romania", "id": "RO" }, "id": "RO" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[55.7972, -21.3395], [55.3627, -21.2738], [55.3112, -20.904], [55.6618, -20.9062], [55.7972, -21.3395]]] }, "properties": { "name": "Reunion", "id": "RE" }, "id": "RE" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[51.2682, 24.6074], [50.8043, 24.7894], [50.763, 25.4445], [51.0032, 25.9816], [51.2624, 26.1534], [51.543, 25.9022], [51.4853, 25.5249], [51.602, 25.148], [51.2682, 24.6074]]] }, "properties": { "name": "Qatar", "id": "QA" }, "id": "QA" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-149.3215, -17.6902], [-149.579, -17.7351], [-149.6114, -17.5318], [-149.3792, -17.5224], [-149.3215, -17.6902]]] }, "properties": { "name": "French Polynesia", "id": "PF" }, "id": "PF" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-58.1598, -20.1645], [-57.8303, -20.9981], [-57.9856, -22.0461], [-56.9374, -22.2712], [-56.5239, -22.1025], [-55.8492, -22.3076], [-55.6541, -22.8105], [-55.3662, -23.9913], [-54.6254, -23.8124], [-54.2418, -24.0472], [-54.4731, -25.2204], [-54.6158, -25.576], [-54.7552, -26.533], [-55.1358, -26.9312], [-55.4266, -27.0093], [-55.7147, -27.415], [-56.0673, -27.3076], [-56.3705, -27.5375], [-57.1118, -27.4701], [-58.6186, -27.1323], [-58.1914, -26.6302], [-58.2031, -26.3816], [-57.8906, -26.0065], [-57.5872, -25.4051], [-57.8216, -25.1365], [-58.3654, -24.9594], [-59.373, -24.4538], [-59.8924, -24.0934], [-61.0329, -23.7556], [-61.7984, -23.1821], [-62.3726, -22.439], [-62.6509, -22.2339], [-62.2767, -21.066], [-62.2763, -20.5627], [-61.917, -20.0553], [-61.7569, -19.6451], [-60.0073, -19.2976], [-59.0905, -19.286], [-58.1803, -19.8178], [-58.1598, -20.1645]]] }, "properties": { "name": "Paraguay", "id": "PY" }, "id": "PY" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-7.4061, 37.1793], [-7.8343, 37.0057], [-8.5977, 37.1211], [-8.8141, 37.431], [-8.9147, 38.5123], [-9.4742, 38.7307], [-9.3748, 39.3384], [-9.1482, 39.5426], [-8.8867, 40.1795], [-8.6557, 41.0296], [-8.7771, 41.9409], [-8.2131, 42.1336], [-7.9208, 41.8836], [-7.4037, 41.8335], [-6.6182, 41.9422], [-6.2125, 41.5321], [-6.9285, 41.0092], [-6.8102, 40.3429], [-7.0146, 40.2084], [-7.0368, 39.7139], [-7.4452, 39.5363], [-7.0461, 38.9069], [-7.3431, 38.4572], [-7.1855, 38.0062], [-7.5036, 37.5854], [-7.4061, 37.1793]]] }, "properties": { "name": "Portugal", "id": "PT" }, "id": "PT" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[130.5269, 42.5353], [130.6871, 42.3027], [130.4576, 42.3018], [129.7563, 41.7123], [129.7088, 40.8574], [128.3043, 40.0362], [127.5684, 39.7818], [127.3943, 39.2079], [127.7863, 39.084], [128.3745, 38.6233], [128.0389, 38.3085], [127.1697, 38.3045], [126.634, 37.7816], [125.9419, 37.8735], [125.4492, 37.7301], [125.1931, 38.0378], [124.691, 38.1292], [125.0675, 38.5567], [125.4097, 39.2882], [125.3609, 39.5266], [124.5574, 39.7907], [124.3621, 40.0042], [124.8895, 40.4596], [125.989, 40.9049], [126.9034, 41.7811], [127.1795, 41.5312], [128.1112, 41.3891], [128.291, 41.5627], [128.0451, 41.9875], [128.9236, 42.0381], [129.3137, 42.4137], [129.7199, 42.4749], [129.8983, 42.9983], [130.2406, 42.8917], [130.5269, 42.5353]]] }, "properties": { "name": "North Korea", "id": "KP" }, "id": "KP" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-66.1295, 18.4448], [-65.6288, 18.3813], [-65.9708, 17.9743], [-67.1968, 17.9943], [-67.1587, 18.4994], [-66.1295, 18.4448]]] }, "properties": { "name": "Puerto Rico", "id": "PR" }, "id": "PR" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[19.6045, 54.4591], [22.7663, 54.3568], [23.37, 54.2005], [23.4845, 53.9398], [23.8872, 53.0276], [23.8445, 52.6642], [23.1969, 52.257], [23.6523, 52.0403], [23.6053, 51.5179], [24.1056, 50.8449], [23.7118, 50.3773], [22.6496, 49.539], [22.5386, 49.0727], [21.6397, 49.4121], [20.6161, 49.3916], [19.802, 49.1923], [19.4416, 49.5976], [18.8321, 49.5108], [18.5622, 49.8792], [17.8746, 49.9722], [17.152, 50.3784], [16.6792, 50.0974], [16.0072, 50.6117], [14.8096, 50.8589], [15.0164, 51.2527], [14.6018, 51.8324], [14.7527, 52.0818], [14.6196, 52.5284], [14.1286, 52.8782], [14.4145, 53.2835], [14.2587, 53.7296], [14.2139, 53.8707], [14.2112, 53.9504], [16.1865, 54.2904], [16.5598, 54.5539], [17.2621, 54.7294], [18.3234, 54.8382], [18.6697, 54.4309], [19.6045, 54.4591]]] }, "properties": { "name": "Poland", "id": "PL" }, "id": "PL" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[152.9656, -4.7565], [152.6807, -4.4986], [152.5985, -3.9948], [153.1241, -4.2523], [152.9656, -4.7565]]], [[[155.9575, -6.687], [155.7191, -6.8628], [155.344, -6.7217], [155.202, -6.3075], [154.782, -5.9706], [154.7412, -5.5453], [154.9969, -5.54], [155.467, -6.145], [155.8225, -6.3803], [155.9575, -6.687]]], [[[151.9158, -4.2967], [152.4054, -4.3406], [152.4001, -4.7312], [152.0135, -5.0038], [152.1431, -5.3571], [151.8652, -5.5649], [151.515, -5.5524], [151.2291, -5.92], [150.4283, -6.2764], [149.6524, -6.2906], [149.3825, -6.078], [149.1264, -6.1277], [148.4011, -5.7651], [148.3447, -5.5449], [148.999, -5.4845], [149.2454, -5.5729], [150.2987, -5.5356], [150.953, -5.4237], [151.3268, -4.9603], [151.6712, -4.8835], [151.5518, -4.3455], [151.9158, -4.2967]]], [[[140.9761, -9.1187], [140.9748, -6.3461], [140.9739, -4.0232], [140.9734, -2.6099], [141.1856, -2.6276], [142.2115, -3.0835], [142.9053, -3.3206], [143.509, -3.4311], [144.0159, -3.7835], [144.4775, -3.8253], [145.0879, -4.349], [145.3347, -4.3854], [145.767, -4.8231], [145.8527, -5.4712], [146.4036, -5.6164], [147.0344, -5.9191], [147.3766, -5.9506], [147.8018, -6.315], [147.8453, -6.6626], [147.1191, -6.7217], [146.9607, -6.929], [147.1902, -7.3782], [147.7242, -7.8762], [148.1268, -8.1035], [148.2471, -8.5545], [148.5831, -9.0516], [149.2476, -9.0712], [149.2032, -9.4068], [149.7612, -9.8058], [149.8744, -10.0131], [150.6672, -10.2573], [150.4825, -10.6368], [150.0169, -10.5773], [149.7541, -10.3531], [147.7685, -10.0699], [146.6965, -9.0255], [146.0334, -8.0764], [144.9738, -7.8021], [144.5099, -7.5673], [143.6137, -8.2003], [143.0948, -8.3112], [143.366, -8.9611], [142.6474, -9.3277], [142.2297, -9.1697], [141.1332, -9.2212], [140.9761, -9.1187]]]] }, "properties": { "name": "Papua New Guinea", "id": "PG" }, "id": "PG" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[134.5956, 7.3821], [134.5064, 7.4372], [134.5561, 7.5939], [134.6595, 7.6631], [134.5956, 7.3821]]] }, "properties": { "name": "Palau", "id": "PW" }, "id": "PW" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[126.0059, 9.3211], [126.1932, 9.2767], [126.3197, 8.8448], [126.4355, 7.8327], [126.5816, 7.2476], [126.08, 6.7332], [125.8243, 7.3333], [125.4008, 6.7957], [125.5886, 6.4659], [125.6681, 5.9785], [125.4559, 5.6643], [124.6364, 5.9981], [124.078, 6.4042], [123.9853, 6.9937], [124.2068, 7.3963], [123.9684, 7.6644], [123.493, 7.8078], [123.3909, 7.4074], [122.4978, 7.6729], [122.176, 7.0044], [122.0472, 7.3635], [122.132, 7.8105], [122.3371, 8.0284], [122.911, 8.1563], [123.0176, 8.3982], [123.4344, 8.7032], [124.2258, 8.2712], [124.4513, 8.6064], [124.731, 8.5629], [124.869, 8.9722], [125.5336, 9.1408], [125.5211, 9.7592], [126.0059, 9.3211]]], [[[124.5938, 9.7871], [124.3599, 9.63], [123.9355, 9.6238], [123.817, 9.8173], [124.1726, 10.1351], [124.577, 10.0268], [124.5938, 9.7871]]], [[[123.1308, 9.064], [122.5626, 9.4826], [122.4716, 9.9616], [122.8556, 10.0868], [122.8169, 10.5036], [122.9834, 10.8867], [123.2564, 10.9941], [123.5676, 10.7806], [123.1618, 9.8644], [123.3083, 9.357], [123.1308, 9.064]]], [[[123.3705, 9.4498], [123.386, 9.9669], [123.7114, 10.4738], [123.952, 10.3167], [123.6435, 10.0202], [123.3705, 9.4498]]], [[[117.3109, 8.4395], [117.35, 8.7134], [117.8848, 9.2407], [118.1148, 9.3468], [119.0239, 10.3535], [119.2241, 10.4774], [119.2614, 10.8449], [119.5268, 10.9532], [119.6844, 10.5515], [119.1917, 10.061], [118.782, 9.9163], [118.4348, 9.2562], [117.9896, 8.8772], [117.3109, 8.4395]]], [[[124.5747, 11.343], [124.9299, 11.3727], [125.0133, 10.7854], [125.2535, 10.2639], [125.0266, 10.0331], [124.7807, 10.168], [124.7869, 10.7815], [124.4456, 10.9235], [124.5747, 11.343]]], [[[122.4964, 11.6151], [123.1583, 11.5356], [123.0167, 11.1166], [122.7699, 10.8236], [122.1977, 10.623], [121.9642, 10.8716], [122.1036, 11.643], [122.4964, 11.6151]]], [[[125.2397, 12.5277], [125.5358, 12.1913], [125.4568, 11.9524], [125.6281, 11.1321], [125.2335, 11.145], [124.8841, 11.7753], [124.3848, 12.2441], [124.2946, 12.5695], [125.2397, 12.5277]]], [[[120.7045, 13.4794], [121.2029, 13.4324], [121.5225, 13.131], [121.5407, 12.6383], [121.2367, 12.2188], [120.922, 12.5117], [120.7635, 12.9698], [120.5082, 13.2601], [120.7045, 13.4794]]], [[[121.1017, 18.6153], [121.8457, 18.2952], [122.2998, 18.4026], [122.1511, 17.7563], [122.2368, 17.435], [122.5191, 17.1247], [122.1351, 16.185], [121.5953, 15.9333], [121.3925, 15.3242], [121.6957, 14.7374], [121.8004, 14.1138], [122.4907, 14.3224], [122.856, 14.2509], [123.2315, 13.7475], [123.4322, 13.9664], [123.726, 13.8843], [123.6079, 13.5283], [124.1428, 13.036], [124.0598, 12.5672], [123.311, 13.044], [123.1632, 13.4417], [122.5954, 13.9078], [122.4068, 13.4927], [121.7778, 13.9375], [121.2034, 13.6401], [120.6166, 14.1879], [120.922, 14.4933], [120.8882, 14.7157], [120.0821, 14.8511], [119.8309, 16.3266], [120.1598, 16.0478], [120.3893, 16.2218], [120.3054, 16.5294], [120.4088, 16.9555], [120.3582, 17.6383], [120.5997, 18.5078], [121.1017, 18.6153]]]] }, "properties": { "name": "Philippines", "id": "PH" }, "id": "PH" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-69.9658, -4.2359], [-70.7995, -4.1733], [-70.9737, -4.3504], [-71.8448, -4.5044], [-72.6987, -5.0673], [-72.8871, -5.1228], [-72.9799, -5.635], [-73.2355, -6.0984], [-73.1374, -6.466], [-73.758, -6.9059], [-73.7496, -7.3356], [-74.0021, -7.5562], [-73.5491, -8.3459], [-72.9741, -8.993], [-73.2093, -9.4116], [-72.379, -9.5102], [-72.1815, -10.0038], [-71.238, -9.9661], [-70.637, -9.4782], [-70.6423, -11.0101], [-70.2202, -11.0478], [-69.5785, -10.9519], [-68.6852, -12.502], [-68.9786, -12.8802], [-69.0741, -13.6828], [-68.8803, -14.199], [-69.235, -14.5972], [-69.3748, -14.963], [-69.1726, -15.2368], [-69.4185, -15.6035], [-69.2176, -16.149], [-68.9134, -16.2618], [-69.0208, -16.6422], [-69.6249, -17.2002], [-69.5108, -17.506], [-69.8522, -17.704], [-69.9263, -18.206], [-70.4184, -18.3454], [-71.337, -17.6827], [-71.5323, -17.2943], [-72.1114, -17.0026], [-72.4676, -16.7079], [-73.825, -16.153], [-74.1471, -15.9124], [-75.1043, -15.4117], [-75.5336, -14.899], [-75.934, -14.6336], [-76.2891, -14.1333], [-76.1839, -13.5154], [-76.8322, -12.3489], [-77.1527, -12.0603], [-77.2204, -11.6635], [-77.6332, -11.288], [-77.7362, -10.8365], [-78.1856, -10.089], [-78.7622, -8.6171], [-79.3772, -7.8354], [-79.7621, -7.0666], [-80.1103, -6.6497], [-80.8117, -6.2822], [-81.1805, -5.9426], [-80.8827, -5.7589], [-81.1084, -5.0278], [-81.3366, -4.6695], [-81.2833, -4.3224], [-80.7986, -3.7312], [-80.3247, -3.388], [-80.1793, -3.8776], [-80.51, -4.0694], [-80.4885, -4.3939], [-80.1396, -4.2962], [-79.6385, -4.4547], [-79.3308, -4.9279], [-79.0763, -4.9905], [-78.4198, -3.7769], [-78.3472, -3.4311], [-77.8607, -2.9819], [-76.679, -2.5628], [-76.0898, -2.1331], [-75.5706, -1.5312], [-75.2632, -0.5555], [-75.2845, -0.1063], [-74.8018, -0.2], [-74.4178, -0.5809], [-74.2465, -0.9706], [-73.6643, -1.2489], [-73.4963, -1.6932], [-73.1969, -1.8304], [-73.1545, -2.2783], [-72.3957, -2.4288], [-71.7525, -2.1527], [-71.3969, -2.3342], [-70.9146, -2.2184], [-70.0741, -2.7502], [-70.7351, -3.7818], [-70.3396, -3.8142], [-69.9658, -4.2359]]] }, "properties": { "name": "Peru", "id": "PE" }, "id": "PE" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-128.2901, -24.3974], [-128.3205, -24.3997], [-128.3503, -24.3402], [-128.3037, -24.3335], [-128.2901, -24.3974]]] }, "properties": { "name": "Pitcairn Islands", "id": "PN" }, "id": "PN" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-77.3742, 8.6583], [-77.2124, 8.0338], [-77.3509, 7.7057], [-77.7439, 7.537], [-77.9011, 7.2294], [-78.1701, 7.5437], [-78.4215, 8.0608], [-78.1139, 8.3796], [-79.0865, 8.997], [-79.4416, 9.0059], [-79.7505, 8.5953], [-80.3687, 8.289], [-80.4581, 8.0768], [-80.0752, 7.6671], [-80.4388, 7.2752], [-80.8456, 7.2201], [-81.0352, 7.7111], [-81.5041, 7.7213], [-81.7276, 8.1376], [-82.6796, 8.3218], [-82.8793, 8.0706], [-82.9976, 8.3676], [-82.917, 8.7404], [-82.9399, 9.4493], [-82.5635, 9.5767], [-82.2441, 9.0316], [-81.3548, 8.7804], [-80.8387, 8.8874], [-80.1272, 9.2101], [-79.5774, 9.598], [-78.5043, 9.4063], [-78.0828, 9.2363], [-77.3742, 8.6583]]] }, "properties": { "name": "Panama", "id": "PA" }, "id": "PA" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[77.7992, 35.496], [77.0486, 35.1099], [76.5945, 34.7357], [75.7093, 34.5031], [74.3004, 34.7654], [73.9613, 34.6535], [74.1499, 33.507], [73.9941, 33.2424], [74.6578, 32.5189], [75.3334, 32.2792], [74.5099, 31.7127], [74.6329, 31.0345], [73.8991, 30.4352], [73.809, 30.0934], [73.3816, 29.9345], [72.903, 29.029], [72.342, 28.752], [71.8701, 27.9623], [70.7373, 27.7293], [70.4035, 28.0249], [70.1447, 27.8491], [69.5681, 27.1744], [69.47, 26.8046], [70.1567, 26.4713], [70.0777, 26.0718], [70.2646, 25.7064], [70.6521, 25.4228], [71.048, 24.6877], [71.044, 24.4001], [70.5469, 24.4183], [69.7163, 24.1728], [69.5592, 24.2731], [68.7282, 24.2656], [68.7242, 23.9646], [68.1649, 23.8572], [67.6687, 23.811], [67.3096, 24.175], [67.1715, 24.7561], [66.7032, 24.8608], [66.6988, 25.2261], [66.4284, 25.5755], [65.6796, 25.3553], [64.7767, 25.3074], [64.6591, 25.184], [63.7207, 25.3859], [63.4912, 25.2106], [62.5723, 25.2546], [62.3153, 25.1347], [61.5878, 25.2022], [61.6686, 25.769], [61.8697, 26.2422], [62.4392, 26.5609], [63.1681, 26.6657], [63.1667, 27.2525], [62.7632, 27.2503], [62.7397, 28.0023], [62.3531, 28.4146], [61.8901, 28.5465], [61.6229, 28.7915], [61.3184, 29.3725], [60.8434, 29.8586], [62.4765, 29.4085], [63.5676, 29.4982], [64.0989, 29.3921], [64.521, 29.5643], [65.0954, 29.5594], [66.1772, 29.8355], [66.3974, 30.9124], [66.9243, 31.3057], [67.2874, 31.2178], [67.5781, 31.5063], [68.2138, 31.8073], [68.869, 31.6342], [69.2791, 31.9369], [69.2414, 32.4336], [69.5015, 33.02], [69.9201, 33.1123], [70.2841, 33.3689], [69.8682, 33.8976], [71.0516, 34.0498], [70.9655, 34.5306], [71.6206, 35.1831], [71.4276, 35.8338], [71.1852, 36.042], [71.6206, 36.4366], [72.623, 36.8295], [73.7691, 36.8885], [74.0017, 36.8233], [74.5415, 37.0221], [75.3467, 36.9134], [75.8403, 36.6497], [75.945, 36.0176], [76.2518, 35.8108], [77.4467, 35.4756], [77.7992, 35.496]]] }, "properties": { "name": "Pakistan", "id": "PK" }, "id": "PK" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[56.388, 24.9793], [56.6406, 24.4702], [57.2199, 23.9229], [58.5782, 23.6437], [59.7998, 22.2201], [59.3714, 21.4988], [58.8956, 21.1126], [58.4743, 20.4068], [57.8618, 20.2439], [57.7153, 19.6069], [57.8116, 19.017], [57.1764, 18.9025], [56.6553, 18.5873], [56.551, 18.166], [56.2704, 17.9508], [55.479, 17.8433], [55.0644, 17.039], [54.0683, 17.0057], [53.6097, 16.7598], [53.0855, 16.6484], [52.729, 17.3005], [51.9775, 18.9961], [53.667, 19.559], [54.9774, 19.9958], [55.641, 22.0017], [55.186, 22.704], [55.1997, 23.0346], [55.7608, 24.2425], [55.7959, 24.8679], [56.064, 24.7388], [56.388, 24.9793]]] }, "properties": { "name": "Oman", "id": "OM" }, "id": "OM" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[173.1152, -41.2791], [173.738, -40.9888], [174.3026, -41.0194], [174.0922, -41.505], [174.2831, -41.7407], [173.5449, -42.518], [173.2213, -42.9765], [172.7184, -43.2589], [172.9208, -43.8914], [172.3855, -43.8297], [171.4426, -44.136], [171.1133, -45.0393], [170.7005, -45.6843], [169.6866, -46.5516], [168.382, -46.6054], [168.1889, -46.3621], [167.682, -46.193], [166.7316, -46.1979], [166.7338, -45.5436], [167.1946, -44.9634], [167.7872, -44.595], [168.3665, -44.0818], [168.8064, -43.9922], [169.6613, -43.5913], [170.3027, -43.1075], [170.7417, -42.9273], [171.2571, -42.4652], [171.4861, -41.7949], [172.0108, -41.4447], [172.1396, -40.9471], [172.6407, -40.5183], [172.9887, -40.8481], [173.1152, -41.2791]]], [[[173.2693, -34.935], [173.8441, -35.0264], [174.3204, -35.2466], [174.5437, -35.5822], [174.391, -35.7739], [174.802, -36.3093], [174.7226, -36.8411], [175.2996, -36.9933], [175.4608, -36.4757], [175.8762, -36.9578], [176.1084, -37.6449], [177.3358, -37.9907], [178.0091, -37.5548], [178.536, -37.692], [178.2679, -38.5509], [177.9763, -38.7223], [177.9656, -39.1426], [177.4077, -39.0809], [176.954, -39.3677], [177.1098, -39.6731], [176.8421, -40.1578], [175.9828, -41.2134], [175.3098, -41.6107], [174.6356, -41.2893], [175.1625, -40.6217], [175.2543, -40.2892], [175.0093, -39.9523], [173.9342, -39.5093], [173.8441, -39.1395], [174.5974, -38.7849], [174.9281, -37.8043], [174.7292, -37.4487], [174.782, -36.9436], [174.4758, -36.9418], [174.4469, -36.4509], [173.9453, -36.1761], [173.1166, -35.2053], [173.2693, -34.935]]]] }, "properties": { "name": "New Zealand", "id": "NZ" }, "id": "NZ" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[20.898, 80.2499], [22.4507, 80.4022], [26.8608, 80.16], [27.1986, 79.9065], [25.641, 79.403], [23.9475, 79.1943], [20.8611, 79.3978], [18.7251, 79.7607], [18.3438, 80.0595], [20.898, 80.2499]]], [[[16.7867, 79.9068], [18.5813, 79.5716], [19.0896, 79.157], [20.4581, 79.1293], [21.3889, 78.7404], [19.7687, 78.6228], [18.4393, 78.0251], [16.7005, 76.5794], [14.3657, 77.2345], [14.921, 77.6889], [13.6807, 78.028], [11.7738, 78.7165], [10.866, 79.7965], [12.7535, 79.7758], [13.3838, 79.4809], [15.8163, 79.6819], [16.7867, 79.9068]]], [[[21.6082, 78.5957], [23.1166, 77.9916], [24.2383, 77.8986], [23.8414, 77.4978], [22.057, 77.5011], [21.6082, 77.9161], [20.2282, 78.4779], [21.6082, 78.5957]]]] }, "properties": { "name": "Svalbard and Jan Mayen", "id": "SJ" }, "id": "SJ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[166.9584, -0.5165], [166.9163, -0.5467], [166.9136, -0.4992], [166.9584, -0.5165]]] }, "properties": { "name": "Nauru", "id": "NR" }, "id": "NR" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[88.1099, 27.8704], [87.9843, 27.134], [88.1614, 26.7247], [88.0549, 26.43], [87.2874, 26.3603], [87.0166, 26.5556], [86.7014, 26.4349], [86.3663, 26.5743], [85.293, 26.7412], [84.6853, 27.0412], [84.6103, 27.2987], [84.0909, 27.4913], [83.2897, 27.371], [82.7335, 27.5189], [81.9877, 27.9139], [81.8528, 27.8669], [80.5868, 28.6494], [80.0706, 28.8301], [80.4017, 29.7303], [81.0103, 30.1645], [81.4169, 30.3376], [82.0432, 30.3269], [82.1591, 30.1152], [82.8542, 29.6833], [83.1556, 29.6127], [83.5835, 29.1834], [84.1016, 29.2198], [84.2285, 28.9118], [84.7141, 28.5957], [85.1589, 28.5922], [85.1225, 28.3161], [85.6783, 28.2775], [86.4089, 27.9286], [86.5545, 28.0853], [87.1413, 27.8385], [88.1099, 27.8704]]] }, "properties": { "name": "Nepal", "id": "NP" }, "id": "NP" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[30.8696, 69.7834], [28.9657, 69.0219], [29.1415, 69.6715], [27.8897, 70.0617], [26.5257, 69.915], [26.0116, 69.6526], [25.7484, 68.9901], [24.9414, 68.5933], [23.8539, 68.8059], [22.4108, 68.7198], [21.622, 69.2707], [20.6223, 69.037], [19.9698, 68.3565], [18.3785, 68.5624], [17.9168, 67.965], [17.3247, 68.1039], [16.1275, 67.4259], [16.4036, 67.055], [15.423, 66.4899], [14.5432, 66.1292], [14.4798, 65.3014], [13.6501, 64.5816], [14.0776, 64.464], [13.9604, 64.0141], [12.6625, 63.9404], [11.9997, 63.2917], [12.2181, 63.0007], [12.3034, 62.2856], [12.1555, 61.7207], [12.8809, 61.3523], [12.294, 61.0027], [12.5888, 60.4508], [12.4862, 60.1067], [11.6806, 59.5923], [11.7982, 59.29], [11.3885, 59.0365], [10.8345, 59.1839], [9.6182, 58.946], [8.1663, 58.1452], [7.0051, 58.0242], [5.7067, 58.5236], [5.8452, 59.3535], [5.1314, 59.2265], [5.2441, 60.5695], [5.0493, 60.7076], [4.9276, 61.7107], [5.5336, 62.3109], [6.353, 62.6112], [7.2838, 62.6023], [7.0086, 62.9576], [8.1006, 63.091], [8.398, 63.5351], [9.6968, 63.6246], [9.7079, 63.865], [11.3499, 64.9059], [12.1595, 65.1789], [12.2727, 65.5682], [12.9763, 66.0192], [13.1046, 66.5394], [14.755, 67.4991], [14.7989, 67.8094], [16.0644, 68.2], [16.6517, 68.6257], [18.1015, 69.1564], [18.2932, 69.4751], [20.0688, 69.8835], [21.163, 69.8895], [21.4005, 70.1744], [22.6847, 70.3749], [23.0464, 70.1019], [24.4198, 70.702], [24.6582, 71.001], [25.7684, 70.8531], [27.5972, 71.0913], [29.1024, 70.8607], [30.9442, 70.2745], [29.6014, 69.9767], [29.7923, 69.7279], [30.8696, 69.7834]]] }, "properties": { "name": "Norway", "id": "NO" }, "id": "NO" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-169.8034, -19.0832], [-169.9039, -19.1378], [-169.9483, -19.0729], [-169.834, -18.966], [-169.8034, -19.0832]]] }, "properties": { "name": "Niue", "id": "NU" }, "id": "NU" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-83.1576, 14.9931], [-83.2992, 14.749], [-83.1878, 14.3401], [-83.4124, 13.9966], [-83.5673, 13.3205], [-83.511, 12.4119], [-83.7693, 11.9316], [-83.6517, 11.6422], [-83.8679, 11.2999], [-83.6419, 10.9173], [-84.1684, 10.7806], [-84.3484, 10.9799], [-84.9092, 10.9453], [-85.6215, 11.1845], [-85.7444, 11.062], [-86.4688, 11.7385], [-86.7556, 12.1566], [-87.6676, 12.9037], [-87.3373, 12.9792], [-87.0592, 12.9916], [-86.7108, 13.3134], [-86.7336, 13.7635], [-86.3317, 13.7702], [-86.1512, 13.9948], [-85.7868, 13.8443], [-85.1796, 14.3432], [-84.9851, 14.7525], [-84.646, 14.6611], [-83.8674, 14.7947], [-83.1576, 14.9931]]] }, "properties": { "name": "Nicaragua", "id": "NI" }, "id": "NI" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[13.6062, 13.7045], [14.0638, 13.0786], [14.1974, 12.3839], [14.6271, 12.1087], [14.5597, 11.4921], [13.892, 11.1401], [13.5352, 10.6052], [13.2697, 10.0362], [13.1756, 9.5394], [12.9297, 9.4263], [12.8067, 8.8865], [12.4037, 8.5957], [12.0162, 7.5899], [11.7676, 7.272], [11.5518, 6.6972], [11.1532, 6.438], [11.0325, 6.6981], [10.6064, 7.063], [10.1438, 6.9964], [9.0603, 6.0092], [8.801, 5.1973], [8.556, 4.7552], [8.2932, 4.5576], [7.1546, 4.5146], [6.7569, 4.3437], [6.0764, 4.2904], [5.5877, 4.6473], [5.2326, 5.4836], [4.8611, 6.0265], [4.4314, 6.3487], [4.126, 6.4113], [2.7064, 6.3692], [2.7748, 6.7119], [2.686, 7.874], [2.7748, 9.0485], [3.0451, 9.084], [3.3252, 9.7783], [3.5573, 9.9074], [3.5764, 10.2683], [3.8343, 10.6074], [3.7163, 11.0797], [3.4877, 11.3954], [3.5955, 11.6963], [3.6466, 12.5299], [3.948, 12.775], [4.1477, 13.4577], [4.8233, 13.76], [5.4918, 13.8727], [6.3863, 13.6037], [6.8044, 13.1074], [7.0565, 13], [7.7885, 13.3378], [8.0953, 13.2912], [8.7504, 12.9081], [9.616, 12.8105], [10.1847, 13.2699], [10.9588, 13.3716], [11.412, 13.3538], [12.4632, 13.0937], [12.6549, 13.3267], [13.3239, 13.6707], [13.6062, 13.7045]]] }, "properties": { "name": "Nigeria", "id": "NG" }, "id": "NG" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[167.9394, -29.0175], [167.979, -29.0756], [167.9204, -29.0827], [167.9394, -29.0175]]] }, "properties": { "name": "Norfolk Island", "id": "NF" }, "id": "NF" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[14.9791, 22.996], [15.1722, 21.9223], [15.182, 21.5232], [15.6072, 20.9546], [15.5873, 20.7335], [15.949, 20.3034], [15.7351, 19.9039], [15.4745, 16.9085], [14.3679, 15.7499], [13.4481, 14.3805], [13.6062, 13.7045], [13.3239, 13.6707], [12.6549, 13.3267], [12.4632, 13.0937], [11.412, 13.3538], [10.9588, 13.3716], [10.1847, 13.2699], [9.616, 12.8105], [8.7504, 12.9081], [8.0953, 13.2912], [7.7885, 13.3378], [7.0565, 13], [6.8044, 13.1074], [6.3863, 13.6037], [5.4918, 13.8727], [4.8233, 13.76], [4.1477, 13.4577], [3.948, 12.775], [3.6466, 12.5299], [3.5955, 11.6963], [2.8782, 12.3679], [2.3659, 12.2219], [2.389, 11.897], [2.0912, 12.2778], [2.0739, 12.7142], [1.5652, 12.6356], [0.9872, 13.0418], [0.9779, 13.5518], [0.6183, 13.7036], [0.1638, 14.4973], [0.2175, 14.9114], [0.9601, 14.9869], [1.3002, 15.2723], [3.5041, 15.3562], [3.8769, 15.7553], [4.1823, 16.5818], [4.2347, 16.9964], [4.2276, 19.1426], [5.8367, 19.4791], [7.4818, 20.8729], [9.3785, 21.9915], [11.9678, 23.518], [13.4814, 23.1802], [14.2307, 22.6183], [14.9791, 22.996]]] }, "properties": { "name": "Niger", "id": "NE" }, "id": "NE" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[164.2023, -20.2462], [164.4358, -20.2821], [165.1918, -20.7691], [165.6627, -21.2671], [166.9425, -22.0901], [166.7742, -22.3759], [166.096, -21.9565], [165.2419, -21.5255], [164.4549, -20.829], [164.1699, -20.4801], [164.2023, -20.2462]]] }, "properties": { "name": "New Caledonia", "id": "NC" }, "id": "NC" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[23.3807, -17.6405], [24.2751, -17.4812], [24.9325, -17.5433], [25.2588, -17.7936], [24.359, -17.9783], [23.5804, -18.4528], [23.2986, -18.0276], [20.9739, -18.3188], [20.9779, -20.9684], [20.9708, -22], [19.9774, -22], [19.9805, -24.777], [19.9805, -26.5312], [19.9805, -28.4515], [19.6715, -28.5039], [19.2458, -28.9016], [18.1028, -28.8719], [17.4481, -28.6983], [17.3855, -28.3534], [17.0561, -28.0311], [16.7556, -28.4524], [16.4475, -28.6175], [15.7191, -27.9659], [15.3413, -27.3866], [14.9676, -26.3182], [14.8451, -25.7256], [14.8371, -25.0331], [14.5015, -24.2021], [14.474, -23.281], [14.5259, -22.7027], [14.3217, -22.19], [13.9733, -21.7678], [13.4504, -20.9169], [13.1685, -20.1845], [12.4583, -18.9269], [12.0956, -18.5412], [11.776, -18.0018], [11.7432, -17.2494], [12.5479, -17.2126], [13.101, -16.9676], [13.4038, -17.008], [13.9382, -17.3888], [16.9136, -17.3915], [18.3962, -17.3995], [18.8259, -17.7661], [19.6396, -17.8687], [20.3928, -17.8873], [20.625, -17.9965], [21.4169, -18.0005], [23.3807, -17.6405]]] }, "properties": { "name": "Namibia", "id": "NA" }, "id": "NA" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[45.1802, -12.9765], [45.0692, -12.8957], [45.1349, -12.7093], [45.2233, -12.7519], [45.1802, -12.9765]]] }, "properties": { "name": "Mayotte", "id": "YT" }, "id": "YT" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[102.1009, 6.2422], [102.9825, 5.5249], [103.4157, 4.8502], [103.4686, 4.3934], [103.362, 3.7693], [103.4397, 2.933], [103.8121, 2.5805], [104.2884, 1.4806], [103.6945, 1.4495], [102.7273, 1.8557], [101.2953, 2.8851], [101.2997, 3.2535], [100.7155, 3.9664], [100.6143, 4.6522], [100.3524, 5.5875], [100.3431, 5.9843], [100.119, 6.442], [100.3453, 6.5498], [101.0533, 6.2427], [101.2571, 5.7894], [101.5563, 5.908], [101.8737, 5.8254], [102.1009, 6.2422]]], [[[117.5746, 4.1706], [117.1005, 4.337], [115.8962, 4.3486], [115.5686, 3.9389], [115.4545, 3.0342], [115.0861, 2.8411], [115.1509, 2.4931], [114.7865, 2.2503], [114.8304, 1.98], [114.5459, 1.4673], [113.9022, 1.4344], [113.6222, 1.236], [112.476, 1.5592], [112.1857, 1.4393], [112.0783, 1.1432], [111.7698, 0.9994], [110.9379, 1.0172], [110.5056, 0.8618], [109.6542, 1.6151], [109.6289, 2.0275], [109.9845, 1.7176], [110.3493, 1.7198], [110.9402, 1.5174], [111.1541, 1.7389], [111.242, 2.4358], [111.7276, 2.854], [112.7375, 3.0706], [113.0446, 3.2051], [113.924, 4.2434], [114.0638, 4.5927], [114.6085, 4.0241], [114.8402, 4.3934], [114.7465, 4.7179], [115.0266, 4.8999], [115.1398, 4.8999], [115.5198, 5.049], [115.419, 5.413], [115.7968, 5.536], [116.1386, 6.1295], [116.4946, 6.5219], [117.294, 6.6768], [117.6456, 6.4735], [117.6172, 5.9408], [118.0038, 6.0531], [118.1157, 5.8627], [118.5946, 5.5919], [119.2236, 5.4126], [119.1322, 5.1005], [118.1854, 4.8284], [118.4979, 4.3623], [117.5746, 4.1706]]]] }, "properties": { "name": "Malaysia", "id": "MY" }, "id": "MY" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[34.9596, -11.5783], [34.6595, -11.5885], [34.3608, -12.2104], [34.5636, -13.3601], [35.2477, -13.8967], [35.8474, -14.6709], [35.7555, -16.0585], [35.3587, -16.1606], [35.1673, -16.5601], [35.2903, -17.0967], [34.3954, -16.1992], [34.248, -15.8876], [34.541, -15.2972], [34.5055, -14.5981], [34.3324, -14.4085], [33.6364, -14.5683], [33.2018, -14.0135], [32.9812, -14.0095], [32.6722, -13.6104], [32.9679, -13.2251], [33.0216, -12.6303], [33.398, -12.49], [33.2524, -12.1127], [33.2262, -11.5348], [33.3798, -11.1579], [33.2613, -10.8934], [33.659, -10.5906], [33.3509, -9.8622], [32.9199, -9.4072], [34.3208, -9.7317], [34.5241, -10.03], [34.6617, -10.71], [34.608, -11.0807], [34.9596, -11.5783]]] }, "properties": { "name": "Malawi", "id": "MW" }, "id": "MW" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[57.6514, -20.485], [57.3859, -20.2284], [57.5759, -19.9971], [57.7921, -20.2124], [57.6514, -20.485]]] }, "properties": { "name": "Mauritius", "id": "MU" }, "id": "MU" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-60.8263, 14.4946], [-61.0638, 14.4671], [-61.2198, 14.8044], [-60.9186, 14.7352], [-60.8263, 14.4946]]] }, "properties": { "name": "Martinique", "id": "MQ" }, "id": "MQ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-62.1484, 16.7403], [-62.1542, 16.6812], [-62.2217, 16.6994], [-62.223, 16.7518], [-62.1484, 16.7403]]] }, "properties": { "name": "Montserrat", "id": "MS" }, "id": "MS" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-12.2807, 14.8089], [-12.8584, 15.2426], [-13.2579, 15.7002], [-13.4095, 16.0593], [-13.8685, 16.1481], [-14.3, 16.5805], [-15.1128, 16.6448], [-15.6208, 16.5068], [-16.1683, 16.5472], [-16.4411, 16.2045], [-16.5352, 15.8383], [-16.5356, 16.2866], [-16.0789, 17.5459], [-16.0849, 18.5212], [-16.2132, 19.0032], [-16.5146, 19.3619], [-16.2835, 19.7871], [-16.2105, 20.2279], [-16.4298, 20.6523], [-17.0481, 20.8063], [-16.9647, 21.3292], [-15.0018, 21.3314], [-13.0163, 21.3341], [-13.0944, 22.4958], [-13.0316, 23], [-12.6203, 23.2712], [-12.0235, 23.4674], [-12.0164, 25.9954], [-10.5624, 25.9954], [-8.6821, 25.9954], [-8.6834, 27.2858], [-6.2387, 25.848], [-4.8227, 24.9958], [-6.594, 24.9944], [-6.3113, 22.5291], [-6.1404, 21.0367], [-5.8556, 18.5505], [-5.6286, 16.5685], [-5.36, 16.2831], [-5.5125, 15.4965], [-7.3555, 15.496], [-9.1768, 15.496], [-9.9414, 15.374], [-10.6965, 15.4228], [-10.8956, 15.1502], [-11.5026, 15.6367], [-11.7603, 15.4255], [-11.8728, 14.9953], [-12.2807, 14.8089]]] }, "properties": { "name": "Mauritania", "id": "MR" }, "id": "MR" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[32.8862, -26.8495], [32.1129, -26.8393], [31.9482, -25.9577], [31.986, -24.4605], [31.7995, -23.8923], [31.5456, -23.4821], [31.2877, -22.4021], [32.3713, -21.335], [32.4778, -20.7131], [33.0069, -19.8737], [32.7166, -19.0019], [32.9932, -18.3596], [32.9479, -16.7123], [32.2434, -16.4487], [31.9398, -16.4287], [31.2362, -16.0239], [30.4377, -15.9954], [30.3959, -15.643], [30.2317, -14.9905], [31.729, -14.496], [33.2018, -14.0135], [33.6364, -14.5683], [34.3324, -14.4085], [34.5055, -14.5981], [34.541, -15.2972], [34.248, -15.8876], [34.3954, -16.1992], [35.2903, -17.0967], [35.1673, -16.5601], [35.3587, -16.1606], [35.7555, -16.0585], [35.8474, -14.6709], [35.2477, -13.8967], [34.5636, -13.3601], [34.3608, -12.2104], [34.6595, -11.5885], [34.9596, -11.5783], [35.6312, -11.5818], [35.7852, -11.4531], [36.5185, -11.7163], [36.9789, -11.5667], [37.5417, -11.675], [37.9204, -11.2946], [38.4917, -11.4131], [38.7948, -11.2289], [39.3217, -11.1224], [39.9889, -10.821], [40.4634, -10.4641], [40.5447, -11.0656], [40.403, -11.3319], [40.5806, -12.6356], [40.5451, -13.463], [40.6401, -14.3899], [40.835, -14.7916], [40.5589, -15.4734], [40.1087, -15.9795], [39.8446, -16.4358], [39.0842, -16.9729], [38.145, -17.2428], [37.2443, -17.7399], [36.5403, -18.5181], [35.6512, -19.1639], [34.9481, -19.8129], [34.7559, -19.8218], [34.6981, -20.4042], [34.9822, -20.8063], [35.2677, -21.6511], [35.3156, -22.3968], [35.5753, -22.9632], [35.3702, -23.7982], [35.4381, -24.171], [35.1558, -24.5413], [34.6072, -24.8214], [33.3474, -25.2608], [32.7921, -25.6443], [32.5905, -26.0039], [32.9337, -26.2525], [32.8862, -26.8495]]] }, "properties": { "name": "Mozambique", "id": "MZ" }, "id": "MZ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[145.7519, 15.1334], [145.6845, 15.1249], [145.7133, 15.2155], [145.7821, 15.1747], [145.7519, 15.1334]]] }, "properties": { "name": "Northern Mariana Islands", "id": "MP" }, "id": "MP" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[116.6832, 49.8238], [115.5575, 47.945], [115.8984, 47.6871], [116.7605, 47.87], [117.3508, 47.652], [117.7685, 47.988], [118.4983, 47.9841], [119.711, 47.15], [119.8979, 46.8579], [119.7066, 46.6062], [118.3088, 46.7172], [117.3335, 46.3621], [116.5625, 46.2897], [116.2407, 45.7961], [115.6809, 45.4583], [114.517, 45.3646], [114.0305, 44.9425], [113.5871, 44.7459], [111.8981, 45.0641], [111.4022, 44.3672], [111.9331, 43.7116], [111.0072, 43.3414], [110.4004, 42.7736], [109.4434, 42.4558], [108.1712, 42.4474], [106.7702, 42.2889], [105.1971, 41.738], [104.4984, 41.6586], [104.4984, 41.877], [103.7109, 41.7514], [103.0726, 42.0062], [101.9731, 42.2157], [101.7139, 42.4656], [99.984, 42.6773], [99.4678, 42.5681], [97.2057, 42.7896], [96.3854, 42.7204], [95.9126, 43.2064], [95.3502, 44.278], [94.7119, 44.3508], [93.6563, 44.9008], [92.7876, 45.0357], [91.5842, 45.0766], [90.8771, 45.196], [90.6618, 45.5253], [91.0019, 46.0358], [91.0338, 46.529], [90.87, 46.9547], [90.4963, 47.2854], [90.3134, 47.676], [89.561, 48.004], [89.0478, 48.0027], [88.517, 48.3844], [87.9798, 48.5549], [87.8143, 49.1624], [88.1925, 49.4518], [88.8317, 49.4485], [89.6542, 49.7175], [89.644, 49.903], [91.8044, 50.6936], [94.2511, 50.5564], [94.6147, 50.0237], [95.5229, 49.9112], [95.8518, 50.0129], [96.986, 49.8828], [97.2088, 49.7308], [98.1032, 50.0779], [98.2795, 50.5333], [97.8254, 50.9852], [97.947, 51.3483], [98.8485, 52.0701], [100.4687, 51.7261], [101.3814, 51.4526], [102.1116, 51.3534], [102.2883, 50.585], [102.6833, 50.3871], [103.6328, 50.1387], [105.3835, 50.4736], [106.218, 50.3045], [106.7112, 50.3125], [107.2332, 49.9893], [107.9479, 49.9247], [108.034, 49.594], [108.6137, 49.3228], [109.2365, 49.3348], [110.1997, 49.1704], [110.8279, 49.1661], [111.3366, 49.3559], [113.0557, 49.6162], [113.1641, 49.7971], [114.2969, 50.2743], [114.743, 50.2337], [115.2743, 49.9489], [116.1346, 50.0109], [116.6832, 49.8238]]] }, "properties": { "name": "Mongolia", "id": "MN" }, "id": "MN" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[19.1943, 43.5331], [19.5517, 43.2122], [20.3445, 42.8278], [20.0639, 42.5473], [19.6546, 42.6285], [19.2809, 42.1726], [19.3426, 41.869], [18.5174, 42.4327], [18.4362, 42.5597], [18.4437, 42.9685], [18.9404, 43.4967], [19.1943, 43.5331]]] }, "properties": { "name": "Montenegro", "id": "ME" }, "id": "ME" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[101.139, 21.5676], [100.7564, 21.3128], [100.2495, 20.7304], [100.1225, 20.3167], [99.8904, 20.4246], [99.3382, 20.0788], [99.0208, 20.0419], [98.9169, 19.7729], [98.1112, 19.7623], [97.8169, 19.46], [97.7539, 18.621], [97.4849, 18.4941], [97.793, 17.6813], [98.4388, 16.9755], [98.6892, 16.3052], [98.5653, 15.4037], [98.1911, 15.204], [98.2462, 14.8147], [99.1366, 13.7165], [99.2196, 12.7399], [99.4052, 12.5477], [99.6147, 11.7811], [99.1903, 11.1051], [98.7571, 10.6612], [98.7025, 10.1902], [98.465, 10.6758], [98.6754, 10.987], [98.7416, 11.5916], [98.576, 13.162], [98.2453, 13.7333], [97.8121, 14.859], [97.7104, 15.8756], [97.5843, 16.0194], [97.6194, 16.5374], [97.3757, 16.5228], [97.1782, 17.0621], [96.6224, 16.564], [95.7635, 16.169], [95.3897, 15.7229], [94.9427, 15.8183], [94.5876, 16.2888], [94.2143, 16.1268], [94.589, 17.5695], [94.4309, 18.2016], [94.07, 18.8936], [93.7056, 19.0267], [93.9981, 19.4409], [93.3625, 20.0584], [93.002, 20.0748], [92.7357, 20.5626], [92.3242, 20.7917], [92.1795, 21.2933], [92.5937, 21.4673], [92.575, 21.9782], [92.9643, 22.0039], [93.1618, 22.3604], [93.0788, 22.7182], [93.366, 23.1323], [93.4149, 23.6823], [93.3074, 24.0219], [94.1277, 23.8763], [94.2929, 24.3219], [94.7075, 25.0486], [94.6227, 25.4099], [95.1323, 26.0411], [95.1287, 26.5973], [96.0613, 27.217], [96.6659, 27.3391], [97.3353, 27.9379], [97.3224, 28.218], [97.5377, 28.5101], [98.0988, 28.1421], [98.299, 27.5499], [98.651, 27.5726], [98.7318, 26.5836], [98.6546, 25.9177], [98.0109, 25.2923], [97.8196, 25.2519], [97.5315, 24.4915], [97.686, 23.898], [98.2124, 24.1106], [98.7642, 24.116], [98.8636, 23.1913], [99.3408, 23.0959], [99.3377, 22.498], [99.193, 22.126], [99.9179, 22.0279], [100.2148, 21.4628], [101.139, 21.5676]]] }, "properties": { "name": "Myanmar", "id": "MM" }, "id": "MM" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[14.5663, 35.8529], [14.4363, 35.8219], [14.3524, 35.8725], [14.4482, 35.9572], [14.5663, 35.8529]]] }, "properties": { "name": "Malta", "id": "MT" }, "id": "MT" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[4.2276, 19.1426], [4.2347, 16.9964], [4.1823, 16.5818], [3.8769, 15.7553], [3.5041, 15.3562], [1.3002, 15.2723], [0.9601, 14.9869], [0.2175, 14.9114], [-0.2359, 15.0592], [-0.7604, 15.0477], [-1.0496, 14.8195], [-1.7678, 14.4862], [-2.1132, 14.1684], [-2.4572, 14.274], [-3.1985, 13.673], [-3.3017, 13.2806], [-3.5758, 13.194], [-4.0512, 13.3822], [-4.3286, 13.119], [-4.2272, 12.7936], [-4.4807, 12.6724], [-4.4287, 12.3377], [-4.798, 12.0319], [-5.2881, 11.8277], [-5.2999, 11.2058], [-5.4905, 11.0425], [-5.5236, 10.4259], [-6.0345, 10.1946], [-6.2611, 10.7242], [-6.6932, 10.3495], [-7.1049, 10.2035], [-7.6611, 10.4272], [-7.9907, 10.1627], [-8.2315, 10.4379], [-8.4075, 11.3865], [-8.8219, 11.6732], [-9.043, 12.4025], [-9.8207, 12.0426], [-10.2748, 12.2126], [-10.6774, 11.8996], [-10.9333, 12.205], [-11.3053, 12.0155], [-11.3894, 12.4043], [-11.3903, 12.9419], [-11.6349, 13.3698], [-12.0543, 13.633], [-12.0193, 14.2065], [-12.2807, 14.8089], [-11.8728, 14.9953], [-11.7603, 15.4255], [-11.5026, 15.6367], [-10.8956, 15.1502], [-10.6965, 15.4228], [-9.9414, 15.374], [-9.1768, 15.496], [-7.3555, 15.496], [-5.5125, 15.4965], [-5.36, 16.2831], [-5.6286, 16.5685], [-5.8556, 18.5505], [-6.1404, 21.0367], [-6.3113, 22.5291], [-6.594, 24.9944], [-4.8227, 24.9958], [-3.2579, 23.981], [-1.2931, 22.6964], [1.1457, 21.1024], [1.1657, 20.8174], [1.6855, 20.3784], [2.2195, 20.2479], [2.4063, 20.0637], [3.2036, 19.7898], [3.2559, 19.4107], [3.1059, 19.1502], [3.4007, 18.9886], [4.2276, 19.1426]]] }, "properties": { "name": "Mali", "id": "ML" }, "id": "ML" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[22.3442, 42.3138], [22.8369, 41.9937], [23.0056, 41.7172], [22.9159, 41.3363], [22.7246, 41.1783], [21.9296, 41.1073], [21.5758, 40.8689], [20.9641, 40.8498], [20.4892, 41.2724], [20.566, 41.8739], [21.0596, 42.1713], [21.5625, 42.2476], [22.3442, 42.3138]]] }, "properties": { "name": "North Macedonia", "id": "MK" }, "id": "MK" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[171.1017, 7.1384], [171.2269, 7.0869], [171.2025, 7.0736], [171.0955, 7.1091], [171.1017, 7.1384]]] }, "properties": { "name": "Marshall Islands", "id": "MH" }, "id": "MH" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-97.1462, 25.9617], [-97.5071, 25.0144], [-97.6676, 24.3899], [-97.8578, 22.6245], [-97.6376, 21.6035], [-97.1214, 20.615], [-96.456, 19.8697], [-96.2895, 19.3437], [-95.821, 18.7546], [-95.1818, 18.7005], [-94.798, 18.5145], [-94.5461, 18.1749], [-94.189, 18.1953], [-93.5523, 18.4306], [-92.8849, 18.4688], [-92.7102, 18.6117], [-91.9738, 18.716], [-91.8031, 18.4706], [-91.2753, 18.6246], [-91.343, 18.9007], [-90.7393, 19.3521], [-90.5072, 19.9119], [-90.4841, 20.5564], [-90.3531, 21.0096], [-89.8198, 21.2746], [-88.8787, 21.414], [-88.1317, 21.616], [-86.8242, 21.4215], [-86.8648, 20.8849], [-87.4672, 20.1023], [-87.4248, 19.5834], [-87.7619, 18.4461], [-88.1967, 18.7196], [-88.2957, 18.4723], [-88.523, 18.4457], [-88.8064, 17.9654], [-89.1615, 17.8149], [-90.9892, 17.8163], [-90.993, 17.2525], [-91.4096, 17.2561], [-90.7107, 16.7083], [-90.417, 16.3909], [-90.4472, 16.0726], [-91.7365, 16.07], [-92.1871, 15.3207], [-92.0748, 15.0743], [-92.2352, 14.5452], [-92.809, 15.1387], [-93.916, 16.0536], [-94.3741, 16.2848], [-94.6615, 16.2018], [-94.9004, 16.4176], [-95.4643, 15.9745], [-96.5108, 15.6518], [-97.1846, 15.9093], [-97.7548, 15.967], [-98.5203, 16.3048], [-98.7622, 16.5347], [-99.6906, 16.7198], [-100.0244, 16.9205], [-100.8478, 17.2006], [-101.6002, 17.6516], [-101.847, 17.9223], [-102.6995, 18.0626], [-103.4415, 18.3254], [-103.9125, 18.8283], [-104.9385, 19.3095], [-105.4821, 19.9762], [-105.6694, 20.3855], [-105.237, 21.1193], [-105.2086, 21.4908], [-105.6492, 21.988], [-105.7917, 22.6276], [-106.4023, 23.1958], [-106.9354, 23.8812], [-107.9512, 24.6149], [-108.3736, 25.1942], [-109.385, 25.7273], [-109.4256, 26.0327], [-109.1997, 26.3052], [-109.4829, 26.7105], [-109.7548, 26.703], [-109.9441, 27.0794], [-110.4779, 27.3227], [-110.5298, 27.8642], [-111.1215, 27.9672], [-111.6801, 28.4706], [-112.1618, 29.0188], [-112.2235, 29.2696], [-112.7384, 29.9856], [-113.1104, 30.7934], [-113.0467, 31.1792], [-114.1493, 31.5072], [-114.8395, 31.7984], [-114.8819, 31.1565], [-114.6334, 30.5067], [-114.6498, 30.2381], [-114.3726, 29.8302], [-113.7556, 29.3677], [-113.4997, 28.9269], [-112.8709, 28.4244], [-112.7339, 27.826], [-112.3291, 27.5233], [-112.0091, 26.9671], [-111.5696, 26.7074], [-111.2917, 25.7899], [-111.0345, 25.5271], [-110.6774, 24.7885], [-110.5471, 24.2141], [-110.0229, 24.1746], [-109.421, 23.4803], [-109.458, 23.2149], [-109.9234, 22.8859], [-110.3627, 23.6051], [-111.4194, 24.329], [-112.0725, 24.84], [-112.0557, 25.488], [-112.3773, 26.2138], [-113.0207, 26.5831], [-113.2058, 26.857], [-113.5986, 26.7212], [-113.841, 26.9667], [-114.4454, 27.2183], [-114.9936, 27.7359], [-114.3007, 27.8731], [-114.0485, 28.4262], [-114.1455, 28.6055], [-114.9936, 29.3845], [-115.6738, 29.7565], [-116.0622, 30.8041], [-116.6622, 31.5649], [-117.1282, 32.5335], [-114.7248, 32.7155], [-114.836, 32.5082], [-112.939, 31.916], [-111.042, 31.3243], [-108.2145, 31.3292], [-108.2118, 31.7793], [-106.4533, 31.77], [-106.2558, 31.5445], [-104.9179, 30.5835], [-104.504, 29.6775], [-104.1107, 29.3863], [-103.2577, 29.001], [-102.892, 29.2163], [-102.7342, 29.6438], [-102.269, 29.871], [-101.4404, 29.7769], [-100.6587, 29.0685], [-100.2961, 28.3276], [-99.5053, 27.5482], [-99.4436, 27.0368], [-99.1078, 26.4469], [-98.0828, 26.0642], [-97.3582, 25.8707], [-97.1462, 25.9617]]] }, "properties": { "name": "Mexico", "id": "MX" }, "id": "MX" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[73.5121, 4.1644], [73.473, 4.1706], [73.5041, 4.2345], [73.5285, 4.2434], [73.5121, 4.1644]]] }, "properties": { "name": "Maldives", "id": "MV" }, "id": "MV" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[49.5383, -12.4323], [49.9374, -13.0724], [50.174, -14.0401], [50.2353, -14.7321], [50.4829, -15.3855], [50.2091, -15.9604], [49.8926, -15.4579], [49.6498, -15.5671], [49.8389, -16.4864], [49.4491, -17.2406], [49.478, -17.8984], [48.6071, -20.4574], [48.3509, -21.3488], [47.9084, -22.4661], [47.5581, -23.8745], [47.1773, -24.7872], [46.7285, -25.1498], [46.1586, -25.2306], [45.5078, -25.5631], [45.1154, -25.5431], [44.8131, -25.334], [44.3457, -25.2262], [44.0354, -24.9958], [43.6874, -24.3579], [43.7225, -23.5296], [43.398, -22.8864], [43.2666, -22.0492], [43.5019, -21.3563], [43.8556, -21.0767], [44.4047, -19.9221], [44.4487, -19.4285], [44.2387, -19.0752], [44.2329, -18.7405], [44.0399, -18.2886], [43.9795, -17.3915], [44.4216, -16.7026], [44.4762, -16.2174], [44.9094, -16.1743], [45.1669, -15.983], [45.5984, -15.9928], [45.7, -15.8139], [46.3317, -15.7136], [46.475, -15.5134], [47.8116, -14.5448], [47.9954, -13.9606], [48.7966, -13.2673], [48.8996, -12.4585], [49.2072, -12.0794], [49.5383, -12.4323]]] }, "properties": { "name": "Madagascar", "id": "MG" }, "id": "MG" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[28.2124, 45.4503], [28.0997, 45.9728], [28.2444, 46.4513], [28.0717, 46.9786], [27.3366, 47.6396], [26.9806, 48.155], [26.6189, 48.2597], [27.5493, 48.4777], [29.1948, 47.8824], [29.1597, 47.4558], [29.5494, 47.2467], [29.8779, 46.829], [29.838, 46.3505], [29.1464, 46.5268], [28.9475, 46.05], [28.2124, 45.4503]]] }, "properties": { "name": "Moldova", "id": "MD" }, "id": "MD" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[7.4387, 43.7507], [7.3779, 43.7316], [7.4143, 43.7711], [7.4387, 43.7507]]] }, "properties": { "name": "Monaco", "id": "MC" }, "id": "MC" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-2.2197, 35.1041], [-1.7955, 34.7521], [-1.6792, 33.3187], [-1.5099, 32.8775], [-1.0656, 32.4683], [-1.2753, 32.0892], [-2.4485, 32.13], [-2.9308, 32.0426], [-3.0174, 31.8344], [-3.8268, 31.6617], [-3.8335, 31.1978], [-4.3228, 30.6989], [-4.9683, 30.4654], [-5.4488, 29.9567], [-6.5008, 29.8093], [-6.6353, 29.5687], [-7.095, 29.6251], [-7.6851, 29.3495], [-8.6599, 28.7187], [-8.6834, 27.6565], [-13.1774, 27.652], [-12.949, 27.9144], [-11.986, 28.1292], [-11.4302, 28.3822], [-11.0809, 28.7138], [-10.4865, 29.0649], [-9.6671, 30.1094], [-9.6529, 30.4477], [-9.8755, 30.718], [-9.8087, 31.4247], [-9.3475, 32.0865], [-9.2458, 32.5726], [-8.5962, 33.1874], [-6.901, 33.969], [-6.3532, 34.776], [-5.9249, 35.7859], [-5.3973, 35.9297], [-5.1054, 35.4676], [-4.3299, 35.1613], [-3.6932, 35.2799], [-2.84, 35.1281], [-2.2197, 35.1041]]] }, "properties": { "name": "Morocco", "id": "MA" }, "id": "MA" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-63.0111, 18.0688], [-63.123, 18.0688], [-63.0631, 18.1154], [-63.0111, 18.0688]]] }, "properties": { "name": "Saint Martin", "id": "MF" }, "id": "MF" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[113.4788, 22.1957], [113.4943, 22.2414], [113.5467, 22.2241], [113.4788, 22.1957]]] }, "properties": { "name": "Macau", "id": "MO" }, "id": "MO" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[27.3517, 57.5282], [27.797, 57.3169], [27.8063, 56.867], [28.1481, 56.143], [27.5768, 55.7988], [26.5936, 55.6676], [24.9032, 56.3982], [24.1206, 56.2642], [22.0845, 56.4067], [21.0462, 56.07], [21.0711, 56.8237], [21.7285, 57.571], [22.5546, 57.7242], [23.6479, 56.9711], [24.4034, 57.3251], [24.3226, 57.8706], [25.111, 58.0635], [25.9912, 57.8382], [26.5328, 57.5311], [27.3517, 57.5282]]] }, "properties": { "name": "Latvia", "id": "LV" }, "id": "LV" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[6.1164, 50.1209], [6.4875, 49.7985], [6.3441, 49.4527], [5.7897, 49.5383], [5.744, 49.9196], [6.1164, 50.1209]]] }, "properties": { "name": "Luxembourg", "id": "LU" }, "id": "LU" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[26.5936, 55.6676], [26.175, 55.0033], [25.8594, 54.9192], [25.5473, 54.3317], [24.7683, 53.9746], [23.4845, 53.9398], [23.37, 54.2005], [22.7663, 54.3568], [22.8311, 54.8384], [21.2358, 55.2641], [21.0462, 56.07], [22.0845, 56.4067], [24.1206, 56.2642], [24.9032, 56.3982], [26.5936, 55.6676]]] }, "properties": { "name": "Lithuania", "id": "LT" }, "id": "LT" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[27.8303, -28.9091], [28.6257, -28.5816], [29.3013, -29.0898], [29.3905, -29.2696], [29.098, -29.919], [28.3922, -30.1476], [28.018, -30.6421], [27.3886, -30.3158], [27.0517, -29.6642], [27.2945, -29.5195], [27.8303, -28.9091]]] }, "properties": { "name": "Lesotho", "id": "LS" }, "id": "LS" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[79.9822, 9.8129], [80.253, 9.7965], [80.7111, 9.3663], [81.373, 8.4315], [81.436, 8.119], [81.8741, 7.2885], [81.8612, 6.9014], [81.6375, 6.4251], [80.724, 5.979], [80.0954, 6.153], [79.8593, 6.8295], [79.7923, 7.5854], [79.929, 8.8994], [80.1185, 9.3268], [79.9822, 9.8129]]] }, "properties": { "name": "Sri Lanka", "id": "LK" }, "id": "LK" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[9.5801, 47.0572], [9.4877, 47.0621], [9.5277, 47.2707], [9.5801, 47.0572]]] }, "properties": { "name": "Liechtenstein", "id": "LI" }, "id": "LI" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-60.8953, 13.8221], [-61.0636, 13.9158], [-60.8867, 14.0112], [-60.8953, 13.8221]]] }, "properties": { "name": "Saint Lucia", "id": "LC" }, "id": "LC" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[25.1505, 31.655], [24.8526, 31.335], [24.9738, 30.7766], [24.7115, 30.1316], [24.9805, 29.1817], [24.9805, 27.8345], [24.9805, 25.8134], [24.9805, 24.2416], [24.9805, 21.9959], [24.9796, 20.0024], [23.9804, 19.9958], [23.9804, 19.4968], [21.5847, 20.6794], [19.6684, 21.6257], [17.7521, 22.5721], [15.9841, 23.4452], [14.9791, 22.996], [14.2307, 22.6183], [13.4814, 23.1802], [11.9678, 23.518], [11.5075, 24.3144], [10.6863, 24.5514], [10.2557, 24.5909], [10.0009, 25.3322], [9.4482, 26.0673], [9.4913, 26.3337], [9.8593, 26.5521], [9.7474, 27.3306], [9.9161, 27.7856], [9.8424, 28.9668], [9.6724, 29.567], [9.3102, 30.1152], [9.5188, 30.2293], [9.8952, 30.3873], [10.2162, 30.7832], [10.115, 31.4637], [10.8265, 32.0807], [11.5048, 32.4137], [11.5043, 33.182], [12.2798, 32.8584], [12.7535, 32.8012], [13.2835, 32.9148], [14.2369, 32.6813], [14.5135, 32.5109], [15.1767, 32.391], [15.4963, 31.6568], [16.123, 31.2644], [17.3491, 31.0815], [18.1902, 30.7775], [18.9364, 30.2905], [19.2915, 30.2879], [19.7132, 30.4885], [20.1509, 31.0784], [19.9263, 31.8175], [20.1216, 32.2188], [20.621, 32.5801], [21.6357, 32.9374], [22.1875, 32.9184], [23.0908, 32.6187], [23.2866, 32.2139], [24.1295, 32.0093], [24.6839, 32.0159], [25.1505, 31.655]]] }, "properties": { "name": "Libya", "id": "LY" }, "id": "LY" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-8.4863, 7.5584], [-8.2966, 7.0741], [-8.3325, 6.8015], [-8.6035, 6.5077], [-7.8886, 6.2347], [-7.7965, 5.975], [-7.4543, 5.8414], [-7.4299, 5.3247], [-7.5688, 5.0805], [-7.5451, 4.3512], [-8.2591, 4.59], [-9.1322, 5.0548], [-10.2763, 6.0775], [-11.5075, 6.9067], [-11.2678, 7.2325], [-10.6474, 7.7594], [-10.2832, 8.4852], [-9.7683, 8.5345], [-9.5182, 8.3463], [-9.369, 7.6396], [-9.4598, 7.4425], [-9.1175, 7.2157], [-8.8896, 7.2627], [-8.7083, 7.6591], [-8.4863, 7.5584]]] }, "properties": { "name": "Liberia", "id": "LR" }, "id": "LR" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[35.8691, 33.4319], [35.411, 33.0755], [35.1087, 33.0835], [35.9761, 34.6291], [36.4329, 34.6136], [36.5851, 34.2212], [35.9424, 33.6676], [35.8691, 33.4319]]] }, "properties": { "name": "Lebanon", "id": "LB" }, "id": "LB" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[102.1276, 22.379], [102.9488, 21.5698], [102.8511, 21.2657], [103.1046, 20.8915], [103.635, 20.6971], [104.0518, 20.9413], [104.5832, 20.6465], [104.6187, 20.3744], [104.9281, 20.018], [104.5463, 19.6105], [104.0319, 19.6753], [103.8965, 19.3401], [104.7163, 18.8035], [105.115, 18.6787], [105.0857, 18.4501], [105.4581, 18.1545], [105.6916, 17.7377], [106.5021, 16.9542], [106.6961, 16.4588], [107.3966, 16.0429], [107.1897, 15.7473], [107.6531, 15.255], [107.5195, 14.705], [106.82, 14.3148], [106.5012, 14.5781], [105.9788, 14.3432], [105.9046, 13.9247], [105.1833, 14.3464], [105.4754, 14.5301], [105.5131, 15.3606], [105.6223, 15.6998], [105.4062, 15.9874], [105.047, 16.1601], [104.7505, 16.6475], [104.8162, 17.3005], [103.9497, 18.3192], [103.3669, 18.4235], [103.0913, 18.1381], [102.7175, 17.8922], [102.1014, 18.2104], [101.1053, 17.4793], [100.9086, 17.5837], [101.1133, 18.0333], [101.0507, 18.4071], [101.2864, 18.977], [101.1546, 19.5794], [100.6254, 19.4999], [100.3977, 19.7561], [100.5429, 20.0885], [100.1225, 20.3167], [100.2495, 20.7304], [100.7564, 21.3128], [101.139, 21.5676], [101.2242, 21.2236], [101.705, 21.1503], [101.744, 21.778], [101.5243, 22.2538], [101.6712, 22.4625], [102.1276, 22.379]]] }, "properties": { "name": "Lao People's Democratic Republic", "id": "LA" }, "id": "LA" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[48.4424, 28.5429], [47.6713, 28.5331], [47.4334, 28.9895], [46.5314, 29.0964], [46.9056, 29.5377], [47.1143, 29.9611], [47.6727, 30.0956], [47.9785, 29.9829], [47.9696, 29.6167], [48.1836, 28.9793], [48.4424, 28.5429]]] }, "properties": { "name": "Kuwait", "id": "KW" }, "id": "KW" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[21.5625, 42.2476], [21.0596, 42.1713], [20.566, 41.8739], [20.4856, 42.2232], [20.0639, 42.5473], [20.3445, 42.8278], [21.0569, 43.0915], [21.3907, 42.7515], [21.7529, 42.6698], [21.5625, 42.2476]]] }, "properties": { "name": "Kosovo", "id": "XK" }, "id": "XK" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[128.3745, 38.6233], [128.619, 38.1763], [129.335, 37.2747], [129.4735, 36.742], [129.4034, 36.0522], [129.5619, 35.9475], [129.2143, 35.1818], [128.5112, 35.101], [128.4442, 34.8706], [127.7148, 34.9545], [127.0308, 34.6069], [126.4817, 34.4937], [126.2913, 35.1542], [126.7174, 35.769], [126.5483, 36.4775], [126.2171, 36.8708], [126.7463, 37.1935], [126.634, 37.7816], [127.1697, 38.3045], [128.0389, 38.3085], [128.3745, 38.6233]]] }, "properties": { "name": "South Korea", "id": "KR" }, "id": "KR" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-62.6307, 17.2401], [-62.8389, 17.3391], [-62.7945, 17.4025], [-62.7137, 17.3533], [-62.6307, 17.2401]]] }, "properties": { "name": "Saint Kitts and Nevis", "id": "KN" }, "id": "KN" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-157.3422, 1.8557], [-157.2461, 1.7318], [-157.4201, 1.7873], [-157.3422, 1.8557]]] }, "properties": { "name": "Kiribati", "id": "KI" }, "id": "KI" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[104.4265, 10.4112], [104.2622, 10.5413], [103.532, 10.6048], [103.722, 10.8902], [103.5325, 11.1468], [103.153, 10.9137], [103.1254, 11.4606], [102.9341, 11.7065], [102.7366, 12.0896], [102.7557, 12.4261], [102.4995, 12.6698], [102.3198, 13.5398], [102.729, 13.8421], [103.1996, 14.3326], [104.7789, 14.428], [105.1833, 14.3464], [105.9046, 13.9247], [105.9788, 14.3432], [106.5012, 14.5781], [106.82, 14.3148], [107.5195, 14.705], [107.3313, 14.1266], [107.6056, 13.4377], [107.4756, 13.0302], [107.5062, 12.3644], [106.9305, 12.0776], [106.4138, 11.9484], [106.3401, 11.6817], [105.8514, 11.6351], [105.8558, 11.2941], [106.1679, 11.0123], [105.3866, 10.9399], [104.8504, 10.5347], [104.4265, 10.4112]]] }, "properties": { "name": "Cambodia", "id": "KH" }, "id": "KH" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[80.2095, 42.1899], [80.2162, 42.0323], [79.2938, 41.7829], [78.3625, 41.3718], [78.1232, 41.0758], [76.8239, 40.9821], [76.4804, 40.4494], [75.8718, 40.3034], [75.5837, 40.6052], [75.0044, 40.4494], [74.4118, 40.1374], [73.9915, 40.0433], [73.9147, 39.6065], [73.6315, 39.4489], [73.2351, 39.3743], [72.0428, 39.3521], [71.8062, 39.2758], [71.4045, 39.598], [70.7333, 39.4134], [70.6077, 39.5643], [69.5987, 39.5736], [69.229, 39.761], [69.5304, 40.0974], [69.9667, 40.2022], [70.4514, 40.049], [70.9579, 40.239], [71.6926, 40.1525], [73.113, 40.7859], [72.6585, 40.8698], [71.7924, 41.4131], [71.4085, 41.1361], [70.7826, 41.2626], [70.1811, 41.5716], [70.8421, 42.0195], [70.9468, 42.2485], [71.2567, 42.7337], [71.8168, 42.822], [72.8551, 42.561], [73.422, 42.5934], [73.5565, 43.0027], [74.209, 43.2402], [75.0475, 42.9046], [76.9442, 42.9716], [79.1646, 42.759], [79.49, 42.4576], [80.2095, 42.1899]]] }, "properties": { "name": "Kyrgyzstan", "id": "KG" }, "id": "KG" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[41.8839, 3.9779], [41.3419, 3.2016], [40.9646, 2.8145], [40.9699, 1.378], [40.9788, -0.8703], [41.5328, -1.6955], [40.9956, -1.9507], [40.6441, -2.5393], [40.2224, -2.6884], [40.1154, -3.2504], [39.4909, -4.4787], [39.2219, -4.6922], [37.7974, -3.6743], [37.6087, -3.4604], [37.6438, -3.0453], [36.2633, -2.2747], [34.7709, -1.4416], [33.9031, -1.0021], [33.9431, 0.1738], [34.4815, 1.042], [34.7874, 1.2307], [34.9654, 1.6435], [34.964, 2.0625], [34.7425, 2.818], [34.4478, 3.1634], [34.3928, 3.6916], [34.165, 3.8128], [33.9759, 4.2203], [35.2681, 5.4925], [35.7448, 5.3442], [35.763, 4.808], [36.0818, 4.4498], [36.9056, 4.4116], [38.0864, 3.649], [39.4944, 3.4559], [39.8424, 3.8514], [40.7653, 4.2731], [41.2207, 3.9437], [41.8839, 3.9779]]] }, "properties": { "name": "Kenya", "id": "KE" }, "id": "KE" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[87.3229, 49.0858], [86.7534, 49.0088], [86.5496, 48.5287], [85.7493, 48.3849], [85.526, 47.9157], [85.6565, 47.2547], [84.786, 46.8308], [83.1929, 47.1864], [83.0043, 47.0337], [82.3264, 45.52], [82.4787, 45.1236], [81.602, 45.3109], [80.059, 45.0064], [80.4554, 44.7463], [80.3551, 44.0973], [80.7857, 43.1616], [80.1651, 42.6653], [80.2095, 42.1899], [79.49, 42.4576], [79.1646, 42.759], [76.9442, 42.9716], [75.0475, 42.9046], [74.209, 43.2402], [73.5565, 43.0027], [73.422, 42.5934], [72.8551, 42.561], [71.8168, 42.822], [71.2567, 42.7337], [70.9468, 42.2485], [70.4159, 42.0785], [70.0954, 41.8206], [69.0652, 41.367], [68.2919, 40.6563], [67.9359, 41.1965], [66.8142, 41.1423], [66.6686, 41.2706], [66.4986, 41.9951], [66.0094, 42.0048], [66.1004, 42.9907], [65.803, 42.8771], [65.4963, 43.3108], [64.9054, 43.7147], [64.4434, 43.5513], [63.2071, 43.6281], [61.9904, 43.4923], [61.1608, 44.1688], [61.0081, 44.3939], [58.5551, 45.5555], [55.9757, 44.9949], [55.9766, 42.929], [55.9774, 41.3221], [55.5451, 41.2626], [54.9037, 41.9192], [54.1211, 42.3351], [53.2502, 42.2059], [52.4938, 41.7802], [52.5968, 42.7603], [51.8439, 42.9104], [51.3019, 43.4825], [50.8305, 44.1928], [50.3311, 44.3255], [50.4093, 44.6242], [50.8603, 44.6287], [51.4156, 45.358], [52.5311, 45.3988], [52.7739, 45.5728], [53.1352, 46.1916], [53.1703, 46.6692], [52.9159, 46.9542], [52.1888, 46.8397], [51.1781, 47.11], [50.4195, 46.8796], [50, 46.6342], [49.3475, 46.5192], [49.2321, 46.3372], [48.6102, 46.5663], [48.9595, 46.7744], [48.1099, 47.7452], [47.0934, 47.9477], [47.0042, 48.2846], [46.661, 48.4124], [46.7028, 48.8055], [47.0144, 49.0984], [46.8022, 49.367], [47.3264, 50.2734], [47.706, 50.378], [48.4344, 49.8284], [48.8432, 50.0131], [48.8086, 50.6012], [49.498, 51.0835], [50.2468, 51.2895], [50.7941, 51.7292], [51.6091, 51.4839], [52.3309, 51.6812], [52.571, 51.4817], [53.3381, 51.4824], [54.0416, 51.1153], [54.4216, 50.7804], [54.727, 50.9981], [55.5424, 50.6017], [55.7977, 50.6021], [56.4915, 51.0196], [57.0117, 51.0651], [57.4423, 50.8889], [57.8387, 51.0917], [58.3594, 51.0638], [58.8836, 50.6945], [59.8122, 50.5819], [59.9552, 50.7992], [60.6379, 50.6638], [61.3894, 50.8609], [61.5851, 51.2298], [61.3632, 51.442], [60.4647, 51.6513], [60.0657, 51.9764], [60.9375, 52.2805], [60.8021, 52.7448], [61.0476, 52.9725], [61.974, 52.9437], [62.0148, 53.1079], [61.1994, 53.2872], [60.9797, 53.6217], [61.3339, 54.0492], [61.9287, 53.9464], [63.0739, 54.1053], [64.4611, 54.3841], [65.1576, 54.3643], [65.4767, 54.6233], [66.2225, 54.6673], [68.0739, 54.9596], [68.2062, 55.1609], [68.9773, 55.3895], [70.1824, 55.1625], [70.7382, 55.3052], [71.1856, 54.5994], [71.0933, 54.2123], [72.9141, 54.1073], [73.3993, 53.8115], [73.2857, 53.5984], [74.4518, 53.6472], [76.2664, 54.312], [76.5758, 53.9424], [77.7042, 53.3791], [78.4757, 52.6385], [79.4687, 51.493], [79.9862, 50.7746], [80.8771, 51.2815], [81.4657, 50.7397], [82.4938, 50.7275], [83.3571, 50.9945], [83.9453, 50.7746], [84.2578, 50.2883], [84.9893, 50.0615], [85.21, 49.6648], [86.1807, 49.4993], [86.6144, 49.6098], [87.3229, 49.0858]]] }, "properties": { "name": "Kazakhstan", "id": "KZ" }, "id": "KZ" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[141.2296, 41.3727], [141.4626, 40.611], [141.7969, 40.2914], [141.978, 39.8444], [141.9007, 39.1115], [141.6584, 38.9748], [141.4675, 38.404], [141.1084, 38.3378], [140.9282, 37.9494], [141.0365, 37.4674], [140.9686, 37.0022], [140.6272, 36.5028], [140.6219, 36.0593], [140.874, 35.7251], [140.4572, 35.5102], [140.4164, 35.267], [139.7994, 34.9567], [139.6502, 35.409], [139.2494, 35.2781], [138.9826, 34.6984], [138.5773, 35.0863], [138.1889, 34.5963], [136.8848, 34.8058], [136.5332, 34.6784], [136.8537, 34.3242], [136.3299, 34.1768], [135.9162, 33.5616], [135.4528, 33.5536], [135.1753, 33.898], [135.1003, 34.2882], [135.3848, 34.5004], [134.7399, 34.7654], [134.2081, 34.6975], [133.9684, 34.5275], [133.1423, 34.3024], [132.2381, 34.227], [132.0903, 33.8554], [131.7405, 34.0521], [130.9188, 33.9757], [131.0041, 34.3925], [131.3543, 34.4134], [132.923, 35.5111], [133.3767, 35.4588], [134.2139, 35.5391], [135.1744, 35.7473], [135.6805, 35.5031], [136.0955, 35.7677], [136.0063, 35.9905], [136.6983, 36.742], [137.3424, 36.7705], [137.5142, 36.9516], [138.3199, 37.2183], [138.8849, 37.8438], [139.4012, 38.1425], [140.0479, 39.4635], [139.9228, 40.5986], [140.2814, 40.8463], [141.1186, 40.8822], [141.2296, 41.3727]]], [[[143.8241, 44.1169], [144.7985, 43.9402], [145.1012, 43.7644], [145.3476, 43.1767], [144.6307, 42.9468], [143.9693, 42.8815], [143.4295, 42.419], [143.2364, 42.0004], [141.8515, 42.5792], [140.9863, 42.3422], [140.4803, 42.5592], [140.3267, 42.2934], [140.7337, 42.1162], [140.3848, 41.5192], [139.9951, 41.5765], [140.1083, 41.9129], [139.8211, 42.3875], [139.8912, 42.6494], [140.7808, 43.2149], [141.2962, 43.1998], [141.6446, 44.0197], [141.7822, 44.7166], [141.5829, 45.156], [141.9376, 45.5094], [142.7042, 44.8191], [143.8241, 44.1169]]], [[[131.1745, 33.6024], [131.5829, 33.6526], [131.8967, 33.2548], [131.9766, 32.8438], [131.7321, 32.593], [131.3374, 31.4047], [130.5886, 31.1783], [130.2006, 31.2919], [130.3218, 31.6013], [130.1944, 32.0909], [130.6405, 32.6192], [129.5801, 33.2362], [130.3649, 33.6344], [130.4838, 33.8345], [130.953, 33.8718], [131.1745, 33.6024]]], [[[134.3572, 34.2562], [134.6373, 34.2265], [134.739, 33.8203], [134.3772, 33.6082], [134.1815, 33.2473], [133.6319, 33.511], [133.2861, 33.36], [132.9772, 32.842], [132.4951, 32.9166], [132.3659, 33.5123], [132.7841, 33.9926], [133.5822, 34.017], [134.0758, 34.3583], [134.3572, 34.2562]]]] }, "properties": { "name": "Japan", "id": "JP" }, "id": "JP" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[39.1455, 32.1247], [38.9622, 31.9951], [36.9584, 31.4917], [37.9803, 30.5], [37.6336, 30.3132], [37.4694, 29.9949], [36.7551, 29.8662], [36.4759, 29.4951], [36.0156, 29.1906], [34.9507, 29.3535], [34.9734, 29.555], [35.174, 30.524], [35.4394, 31.1326], [35.4505, 31.4793], [35.5589, 31.7656], [35.5513, 32.3955], [35.7875, 32.735], [36.3721, 32.387], [36.8182, 32.3173], [38.7735, 33.372], [39.1455, 32.1247]]] }, "properties": { "name": "Jordan", "id": "JO" }, "id": "JO" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-2.0186, 49.2312], [-2.2359, 49.1763], [-2.2206, 49.2665], [-2.0186, 49.2312]]] }, "properties": { "name": "Jersey", "id": "JE" }, "id": "JE" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-77.2614, 18.4572], [-76.3499, 18.1518], [-76.5246, 17.8664], [-76.8533, 17.9738], [-77.3615, 17.8336], [-77.7681, 17.8775], [-78.2167, 18.4479], [-77.8735, 18.522], [-77.2614, 18.4572]]] }, "properties": { "name": "Jamaica", "id": "JM" }, "id": "JM" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[9.632, 40.8822], [9.8051, 40.4996], [9.5623, 39.1661], [9.0563, 39.2394], [8.8814, 38.9127], [8.418, 39.2056], [8.4712, 40.2927], [8.1898, 40.6518], [9.2831, 41.2018], [9.632, 40.8822]]], [[[15.5766, 38.2202], [15.0994, 37.4585], [15.2943, 37.0133], [15.1127, 36.6879], [14.5019, 36.7989], [12.4356, 37.8198], [13.3518, 38.1807], [13.6816, 38.0009], [14.5059, 38.0453], [14.846, 38.1718], [15.5766, 38.2202]]], [[[13.6998, 46.5201], [13.3993, 46.3177], [13.7198, 45.5875], [13.2062, 45.7713], [12.2745, 45.4459], [12.5235, 44.9678], [12.2483, 44.7223], [12.3961, 44.2238], [13.564, 43.5713], [14.0106, 42.6898], [14.8659, 42.0523], [15.1687, 41.9338], [15.9641, 41.9396], [16.0125, 41.4353], [17.1032, 41.062], [17.955, 40.6554], [18.4859, 40.105], [18.0779, 39.9367], [17.8649, 40.2803], [16.9283, 40.4579], [16.5301, 39.8595], [16.5976, 39.6389], [17.1147, 39.3805], [17.1746, 38.9979], [16.5589, 38.7147], [16.5456, 38.4093], [16.0569, 37.9419], [15.7244, 37.9392], [15.9726, 38.7125], [16.1967, 38.7591], [16.0236, 39.3535], [15.6929, 39.99], [14.9507, 40.239], [14.7656, 40.6683], [14.1024, 40.8272], [13.7331, 41.2356], [13.0886, 41.244], [12.6309, 41.4695], [11.6375, 42.2876], [10.7084, 42.9361], [10.0475, 44.0201], [8.766, 44.4223], [8.0815, 43.9189], [7.4929, 43.7671], [7.6771, 44.0831], [6.9673, 44.2802], [7.0308, 44.7166], [6.6277, 45.1178], [7.1533, 45.401], [7.021, 45.9257], [7.9932, 46.0158], [8.4584, 46.2458], [8.9537, 45.8298], [9.2512, 46.2866], [9.9392, 46.3616], [10.4528, 46.865], [11.0249, 46.7971], [11.2442, 46.9755], [12.1542, 46.9351], [12.3881, 46.7025], [13.6998, 46.5201]], [[12.4853, 43.9016], [12.5146, 43.9531], [12.441, 43.9824], [12.397, 43.9344], [12.4853, 43.9016]]]] }, "properties": { "name": "Italy", "id": "IT" }, "id": "IT" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[35.7875, 32.735], [35.5513, 32.3955], [35.1931, 32.5344], [34.9561, 32.1611], [34.9507, 31.6022], [35.4505, 31.4793], [35.4394, 31.1326], [35.174, 30.524], [34.9734, 29.555], [34.9041, 29.4773], [34.2454, 31.2085], [34.4775, 31.5849], [34.6786, 31.8956], [35.1087, 33.0835], [35.411, 33.0755], [35.8691, 33.4319], [35.7875, 32.735]]] }, "properties": { "name": "Israel", "id": "IL" }, "id": "IL" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-15.5431, 66.2285], [-14.6982, 66.0203], [-14.7576, 65.7557], [-13.6159, 65.4872], [-13.853, 64.8622], [-15.0215, 64.296], [-16.0605, 64.1113], [-16.6404, 63.8654], [-17.8156, 63.7129], [-18.6537, 63.4066], [-20.1982, 63.5558], [-21.8328, 64.2054], [-21.9502, 64.515], [-22.684, 65.0264], [-22.0057, 65.4934], [-22.9024, 65.5804], [-24.2241, 65.4872], [-23.7371, 66.0695], [-22.4261, 66.4302], [-21.3035, 65.8765], [-21.23, 65.4206], [-20.3567, 65.7191], [-20.3567, 66.0331], [-18.7775, 66.1688], [-16.7485, 66.1317], [-15.9854, 66.5145], [-15.5431, 66.2285]]] }, "properties": { "name": "Iceland", "id": "IS" }, "id": "IS" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[44.7652, 37.1424], [45.3618, 36.0154], [45.7235, 35.8365], [46.1337, 35.1276], [45.6783, 34.7982], [45.4377, 34.4152], [45.3968, 33.9708], [46.1457, 33.2295], [46.1128, 32.9579], [46.57, 32.834], [47.3713, 32.4239], [47.8298, 31.7944], [47.6793, 31.0025], [48.0105, 30.9896], [48.0149, 30.4654], [48.5467, 29.9625], [47.9785, 29.9829], [47.6727, 30.0956], [47.1143, 29.9611], [46.9056, 29.5377], [46.5314, 29.0964], [46.3565, 29.0636], [44.7163, 29.1937], [42.8578, 30.4952], [42.0743, 31.0802], [40.3693, 31.9391], [39.1455, 32.1247], [38.7735, 33.372], [40.6894, 34.3322], [40.9872, 34.4289], [41.1945, 34.7689], [41.3543, 35.6403], [41.2456, 36.0735], [41.4169, 36.5148], [41.7884, 36.5973], [42.3588, 37.1087], [42.7748, 37.3719], [43.5161, 37.2445], [44.1562, 37.2831], [44.2818, 36.9782], [44.7652, 37.1424]]] }, "properties": { "name": "Iraq", "id": "IQ" }, "id": "IQ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[46.1146, 38.8776], [46.4906, 38.9065], [47.773, 39.6486], [47.9958, 39.6842], [48.2422, 38.9788], [48.0233, 38.819], [48.5929, 38.4111], [48.8685, 38.4355], [49.0811, 37.6676], [49.47, 37.4967], [50.1305, 37.407], [50.5331, 37.0137], [51.1186, 36.7425], [52.1902, 36.6217], [54.0172, 36.9524], [53.9142, 37.3435], [54.7452, 37.502], [55.0755, 37.9024], [55.5784, 38.0999], [56.2287, 38.0733], [56.4409, 38.2495], [57.1937, 38.2162], [57.4236, 37.9477], [58.4357, 37.6387], [58.8157, 37.6835], [59.2409, 37.5206], [59.5623, 37.1788], [60.0626, 36.9631], [60.3413, 36.6377], [61.1195, 36.6426], [61.262, 35.6194], [61.08, 34.8555], [60.4856, 34.0947], [60.5109, 33.6388], [60.9171, 33.5052], [60.5606, 33.1376], [60.8292, 32.2494], [60.854, 31.4833], [61.6602, 31.3825], [61.7844, 30.8321], [61.104, 30.1285], [60.8434, 29.8586], [61.3184, 29.3725], [61.6229, 28.7915], [61.8901, 28.5465], [62.3531, 28.4146], [62.7397, 28.0023], [62.7632, 27.2503], [63.1667, 27.2525], [63.1681, 26.6657], [62.4392, 26.5609], [61.8697, 26.2422], [61.6686, 25.769], [61.5878, 25.2022], [61.412, 25.1023], [60.6641, 25.2821], [59.4562, 25.4814], [59.0461, 25.4175], [58.7979, 25.5546], [57.7961, 25.6532], [57.3344, 25.7917], [56.9824, 26.9054], [56.3561, 27.2001], [55.6503, 26.9777], [54.8957, 26.5565], [53.7056, 26.7256], [53.4548, 26.9431], [52.6918, 27.3235], [52.476, 27.6165], [51.6664, 27.8451], [51.2788, 28.1314], [51.0622, 28.7262], [50.6752, 29.1466], [50.6499, 29.42], [49.9831, 30.2093], [49.5548, 30.0291], [48.9191, 30.1209], [48.5467, 29.9625], [48.0149, 30.4654], [48.0105, 30.9896], [47.6793, 31.0025], [47.8298, 31.7944], [47.3713, 32.4239], [46.57, 32.834], [46.1128, 32.9579], [46.1457, 33.2295], [45.3968, 33.9708], [45.4377, 34.4152], [45.6783, 34.7982], [46.1337, 35.1276], [45.7235, 35.8365], [45.3618, 36.0154], [44.7652, 37.1424], [44.5614, 37.7448], [44.2112, 37.9081], [44.4309, 38.3569], [44.023, 39.3774], [44.8171, 39.6504], [45.4798, 39.0063], [46.1146, 38.8776]]] }, "properties": { "name": "Iran", "id": "IR" }, "id": "IR" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-6.218, 54.0887], [-6.0274, 52.927], [-6.5612, 52.1888], [-7.5273, 52.0989], [-8.8135, 51.5849], [-10.3786, 51.8688], [-9.9558, 52.1367], [-9.2993, 53.0975], [-9.7954, 53.3951], [-9.996, 54.276], [-8.6231, 54.3468], [-8.764, 54.6813], [-8.2746, 55.1463], [-7.2468, 55.3531], [-7.2186, 55.0921], [-8.1183, 54.4143], [-7.3553, 54.1213], [-6.218, 54.0887]]] }, "properties": { "name": "Ireland", "id": "IE" }, "id": "IE" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[72.492, -7.3773], [72.4671, -7.3675], [72.4738, -7.3098], [72.4356, -7.2304], [72.4938, -7.2619], [72.492, -7.3773]]] }, "properties": { "name": "British Indian Ocean Territory", "id": "IO" }, "id": "IO" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[78.7198, 31.8876], [78.8445, 31.3017], [79.1073, 31.4025], [79.3386, 31.1055], [79.3697, 31.0798], [79.9165, 30.8942], [79.9245, 30.8889], [80.1913, 30.5684], [80.6823, 30.4148], [81.0103, 30.1645], [80.4017, 29.7303], [80.0706, 28.8301], [80.5868, 28.6494], [81.8528, 27.8669], [81.9877, 27.9139], [82.7335, 27.5189], [83.2897, 27.371], [84.0909, 27.4913], [84.6103, 27.2987], [84.6853, 27.0412], [85.293, 26.7412], [86.3663, 26.5743], [86.7014, 26.4349], [87.0166, 26.5556], [87.2874, 26.3603], [88.0549, 26.43], [88.1614, 26.7247], [87.9843, 27.134], [88.1099, 27.8704], [88.6213, 28.0919], [88.8485, 27.8686], [88.8912, 27.316], [88.8579, 26.9613], [89.7638, 26.7016], [90.3458, 26.8903], [90.7395, 26.7718], [91.9984, 26.8548], [92.0836, 27.2907], [91.5949, 27.5575], [91.6317, 27.7599], [91.9775, 27.7301], [92.6642, 27.949], [92.702, 28.147], [93.2067, 28.5909], [93.9022, 28.803], [94.6231, 29.3126], [94.7696, 29.1759], [95.4204, 29.0543], [96.0352, 29.4471], [96.4355, 29.0507], [96.776, 28.3671], [97.3224, 28.218], [97.3353, 27.9379], [96.6659, 27.3391], [96.0613, 27.217], [95.1287, 26.5973], [95.1323, 26.0411], [94.6227, 25.4099], [94.7075, 25.0486], [94.2929, 24.3219], [94.1277, 23.8763], [93.3074, 24.0219], [93.4149, 23.6823], [93.366, 23.1323], [93.0788, 22.7182], [93.1618, 22.3604], [92.9643, 22.0039], [92.575, 21.9782], [92.4916, 22.6853], [92.3615, 22.929], [92.2461, 23.6836], [91.938, 23.5047], [91.6198, 22.9796], [91.3152, 23.1043], [91.1603, 23.6605], [91.3672, 24.0933], [91.8768, 24.1954], [92.2514, 24.895], [92.0499, 25.1693], [90.4394, 25.1578], [89.814, 25.3052], [89.8229, 25.9413], [89.2893, 26.0376], [89.1082, 26.2023], [88.4402, 26.3696], [88.0846, 25.8884], [88.4521, 25.5746], [88.4561, 25.1884], [88.1454, 24.4857], [88.7336, 24.2309], [88.5671, 23.6743], [88.7407, 23.4368], [89.0514, 22.0932], [89.0518, 21.6541], [88.2537, 21.6222], [87.9483, 21.8255], [87.1005, 21.5006], [86.8595, 21.2369], [86.9753, 20.7002], [86.7503, 20.3131], [86.2793, 19.9194], [85.5748, 19.693], [84.7709, 19.1253], [84.1042, 18.2926], [83.6541, 18.0697], [83.1982, 17.609], [82.3597, 17.0963], [82.259, 16.56], [81.7618, 16.3297], [81.2385, 16.264], [80.9788, 15.7584], [80.6467, 15.8951], [80.2934, 15.7109], [80.0533, 15.0739], [80.1656, 14.5776], [80.1119, 14.2123], [80.3422, 13.3614], [80.229, 12.6902], [79.8584, 11.9888], [79.7541, 11.5751], [79.8486, 11.1969], [79.838, 10.3225], [79.3905, 10.306], [78.9964, 9.6833], [78.9795, 9.2687], [78.4215, 9.1049], [78.1925, 8.8909], [78.0602, 8.3844], [77.5178, 8.0782], [76.9669, 8.4071], [76.5536, 8.9029], [76.3246, 9.452], [76.3463, 9.9221], [75.9224, 10.7841], [75.724, 11.3616], [75.1966, 12.0576], [74.7705, 13.0773], [74.6711, 13.6676], [74.3821, 14.4946], [73.9493, 15.0748], [73.932, 15.397], [73.4761, 16.0544], [73.3376, 16.4597], [73.1561, 17.6218], [72.8711, 18.6832], [72.6678, 19.8311], [72.8813, 20.5631], [72.8138, 21.117], [72.5431, 21.6968], [72.5901, 22.2783], [72.3326, 22.2703], [72.037, 21.8233], [72.2541, 21.5312], [72.0153, 21.1557], [71.0245, 20.7388], [70.7191, 20.7406], [70.1274, 21.0948], [69.0088, 22.1966], [70.1771, 22.5726], [70.2512, 22.9707], [69.6644, 22.759], [69.2361, 22.8487], [68.6408, 23.19], [68.1649, 23.8572], [68.7242, 23.9646], [68.7282, 24.2656], [69.5592, 24.2731], [69.7163, 24.1728], [70.5469, 24.4183], [71.044, 24.4001], [71.048, 24.6877], [70.6521, 25.4228], [70.2646, 25.7064], [70.0777, 26.0718], [70.1567, 26.4713], [69.47, 26.8046], [69.5681, 27.1744], [70.1447, 27.8491], [70.4035, 28.0249], [70.7373, 27.7293], [71.8701, 27.9623], [72.342, 28.752], [72.903, 29.029], [73.3816, 29.9345], [73.809, 30.0934], [73.8991, 30.4352], [74.6329, 31.0345], [74.5099, 31.7127], [75.3334, 32.2792], [74.6578, 32.5189], [73.9941, 33.2424], [74.1499, 33.507], [73.9613, 34.6535], [74.3004, 34.7654], [75.7093, 34.5031], [76.5945, 34.7357], [77.0486, 35.1099], [77.7992, 35.496], [77.8107, 35.4845], [78.2821, 34.654], [78.9364, 34.3521], [78.7531, 34.0876], [78.8019, 33.4999], [79.1127, 33.2264], [79.1353, 33.1718], [79.2165, 32.5641], [79.2192, 32.5011], [78.3896, 32.5197], [78.7198, 31.8876]]] }, "properties": { "name": "India", "id": "IN" }, "id": "IN" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-4.4121, 54.1854], [-4.7457, 54.1189], [-4.5086, 54.3768], [-4.4121, 54.1854]]] }, "properties": { "name": "Isle of Man", "id": "IM" }, "id": "IM" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[96.4924, 5.2293], [97.4512, 5.2359], [97.9084, 4.8799], [98.2484, 4.4147], [98.3074, 4.0929], [99.7323, 3.1829], [100.4572, 2.2574], [100.6854, 2.1202], [101.0462, 2.2574], [101.4768, 1.6932], [101.7849, 1.6213], [102.1573, 1.2591], [102.4694, 0.7792], [102.8493, 0.7153], [103.0664, 0.492], [103.4788, 0.4801], [103.7868, 0.0468], [103.4286, -0.1916], [103.4313, -0.5334], [103.7211, -0.8867], [104.3608, -1.0385], [104.5685, -1.9218], [104.8451, -2.0932], [104.6684, -2.3857], [105.3968, -2.3804], [105.5819, -2.4918], [106.0445, -3.1062], [105.8438, -3.6135], [105.8873, -5.0096], [105.8163, -5.6767], [105.6183, -5.7997], [105.3493, -5.5493], [105.0812, -5.7455], [104.6396, -5.5205], [104.6014, -5.9044], [103.8312, -5.0797], [102.919, -4.4707], [102.5377, -4.152], [102.1276, -3.5993], [101.5785, -3.167], [100.8478, -2.1438], [100.8554, -1.9343], [100.4865, -1.2991], [100.3081, -0.8268], [99.5978, 0.1023], [99.1593, 0.3518], [98.7962, 1.4948], [98.5644, 1.9023], [97.7006, 2.3586], [97.591, 2.8464], [97.3912, 2.9752], [96.9691, 3.5753], [96.4449, 3.8163], [95.4949, 4.7614], [95.2068, 5.2839], [95.2277, 5.5648], [95.629, 5.6092], [96.1333, 5.2941], [96.4924, 5.2293]]], [[[120.0124, -9.3748], [120.5038, -9.674], [120.8327, -10.0375], [120.439, -10.2941], [120.1447, -10.2], [119.6009, -9.7734], [119.0856, -9.7068], [119.1855, -9.3846], [120.0124, -9.3748]]], [[[125.0679, -9.512], [124.4274, -10.1485], [123.8574, -10.3438], [123.5893, -9.9669], [123.7092, -9.6149], [124.0363, -9.3415], [124.4442, -9.1901], [124.9223, -8.9424], [125.0679, -9.512]]], [[[116.6406, -8.614], [116.3774, -8.9291], [116.0764, -8.7449], [116.0613, -8.4373], [116.4014, -8.2043], [116.7343, -8.3871], [116.6406, -8.614]]], [[[122.7828, -8.6117], [121.6513, -8.8989], [121.0351, -8.9353], [119.8078, -8.6974], [119.9183, -8.4453], [120.6103, -8.2407], [121.4444, -8.578], [121.9664, -8.4551], [122.263, -8.6251], [122.6034, -8.4027], [122.7828, -8.6117]]], [[[118.2426, -8.3179], [118.9879, -8.3379], [119.0061, -8.7498], [118.1898, -8.8403], [117.0614, -9.0991], [116.7884, -9.0064], [116.835, -8.5323], [117.1649, -8.3672], [117.567, -8.4266], [118.1174, -8.1221], [118.2426, -8.3179]]], [[[115.4479, -8.155], [115.7045, -8.4071], [115.2361, -8.7977], [114.4753, -8.1195], [115.4479, -8.155]]], [[[126.8009, -7.668], [126.4719, -7.9503], [125.8434, -7.8167], [126.6095, -7.5717], [126.8009, -7.668]]], [[[138.5351, -8.2735], [138.2963, -8.4053], [137.6851, -8.2624], [138.0074, -7.6414], [138.2954, -7.4385], [138.77, -7.3906], [138.9893, -7.696], [138.5351, -8.2735]]], [[[131.3255, -7.9996], [131.0866, -7.8651], [131.2602, -7.4705], [131.6912, -7.439], [131.3255, -7.9996]]], [[[113.8445, -7.1052], [113.4708, -7.2184], [112.7637, -7.1398], [112.868, -6.9001], [113.9746, -6.873], [113.8445, -7.1052]]], [[[134.537, -6.4424], [134.3559, -6.8149], [134.0589, -6.7691], [134.1681, -6.1761], [134.537, -6.4424]]], [[[107.3739, -6.0074], [107.6669, -6.2156], [108.295, -6.2649], [108.6776, -6.7905], [110.4261, -6.9471], [110.7369, -6.4722], [111.1546, -6.6693], [111.5403, -6.6484], [112.0872, -6.8934], [112.5391, -6.9263], [112.7943, -7.5526], [113.2484, -7.7182], [114.0705, -7.633], [114.4442, -7.8957], [114.387, -8.4053], [114.5836, -8.7698], [113.2533, -8.2868], [112.6789, -8.4093], [111.5101, -8.305], [110.6072, -8.1497], [110.0386, -7.8904], [109.2818, -7.7049], [108.7411, -7.6671], [108.4517, -7.7968], [107.9173, -7.724], [107.2852, -7.4718], [106.6313, -7.4155], [106.5199, -7.0537], [105.4838, -6.7816], [105.8682, -6.1166], [106.0751, -5.9142], [106.8253, -6.0984], [107.0463, -5.9044], [107.3739, -6.0074]]], [[[134.747, -5.7069], [134.7559, -6.1708], [134.4411, -6.335], [134.3413, -5.7127], [134.747, -5.7069]]], [[[122.6451, -5.2692], [122.3961, -5.0699], [122.369, -4.7672], [122.702, -4.6185], [122.6451, -5.2692]]], [[[126.8612, -3.0879], [127.2274, -3.3911], [127.2297, -3.6331], [126.6863, -3.8235], [126.2145, -3.6051], [126.0263, -3.1705], [126.8612, -3.0879]]], [[[129.7545, -2.866], [130.3791, -2.9894], [130.8598, -3.5705], [130.8052, -3.8577], [129.8442, -3.3272], [129.4678, -3.4533], [128.9675, -3.3259], [128.4193, -3.416], [128.0819, -3.1838], [128.1987, -2.866], [129.4274, -2.7905], [129.7545, -2.866]]], [[[108.2071, -2.9978], [107.6145, -3.2096], [107.6665, -2.5664], [108.0744, -2.597], [108.2071, -2.9978]]], [[[124.9694, -1.7057], [124.8344, -1.8943], [124.4176, -2.0053], [124.3808, -1.6875], [124.9694, -1.7057]]], [[[135.4741, -1.5916], [136.2016, -1.6551], [136.1927, -1.8593], [135.4741, -1.5916]]], [[[106.0458, -1.6693], [106.3658, -2.4647], [106.6788, -2.704], [106.547, -3.0555], [105.9988, -2.8247], [105.7857, -2.1815], [105.1332, -2.0426], [105.5855, -1.5268], [106.0458, -1.6693]]], [[[128.153, -1.6604], [127.5617, -1.7283], [127.6465, -1.3324], [128.153, -1.6604]]], [[[99.1637, -1.778], [98.8743, -1.6639], [98.6017, -1.1979], [98.869, -0.9155], [99.2671, -1.6275], [99.1637, -1.778]]], [[[135.3831, -0.6514], [135.8935, -0.726], [135.8389, -1.1193], [135.3831, -0.6514]]], [[[140.9734, -2.6099], [140.9739, -4.0232], [140.9748, -6.3461], [140.9761, -9.1187], [139.9347, -8.1013], [139.3856, -8.1892], [138.8561, -8.1452], [139.0878, -7.5872], [138.7478, -7.2517], [138.8645, -6.8584], [138.4388, -6.3435], [138.0611, -5.4654], [137.0894, -4.9243], [136.6189, -4.8187], [135.9797, -4.531], [135.1957, -4.4507], [134.1473, -3.7968], [133.9737, -3.8182], [133.6532, -3.3645], [133.2488, -4.0623], [132.9687, -4.0947], [132.7539, -3.7036], [132.7512, -3.2948], [132.3482, -2.9752], [133.1911, -2.4377], [133.6088, -2.5473], [133.9049, -2.391], [133.9218, -2.1021], [132.963, -2.2725], [132.3078, -2.2423], [132.0233, -1.9902], [131.9305, -1.5596], [131.2935, -1.3936], [131.2571, -0.8556], [131.8044, -0.7038], [132.1285, -0.4539], [132.6252, -0.3589], [133.4726, -0.726], [133.9746, -0.7442], [134.2596, -1.363], [134.106, -1.7212], [134.1557, -2.1953], [135.0373, -3.333], [135.4865, -3.345], [136.2433, -2.5832], [136.3898, -2.2734], [136.843, -2.1975], [137.1236, -1.8411], [137.8063, -1.4833], [138.6497, -1.7909], [139.7896, -2.3484], [140.6223, -2.4456], [140.9734, -2.6099]]], [[[97.4814, 1.4651], [97.9319, 0.9741], [97.8764, 0.6283], [97.4054, 0.947], [97.2443, 1.4238], [97.4814, 1.4651]]], [[[124.889, 0.9954], [124.4274, 0.4707], [123.754, 0.3056], [123.2653, 0.3265], [123.0824, 0.4858], [121.8421, 0.4366], [121.4258, 0.4947], [120.3489, 0.4494], [120.1274, 0.1667], [120.012, -0.307], [120.0972, -0.6501], [120.5176, -1.0394], [120.6676, -1.3701], [121.0338, -1.4065], [121.5194, -0.8556], [121.9695, -0.9333], [122.2798, -0.7571], [122.8888, -0.7553], [122.5067, -1.3479], [121.7187, -1.8628], [121.349, -1.9458], [121.8484, -2.3316], [122.3992, -3.2007], [122.2527, -3.6206], [122.8773, -4.1089], [122.8973, -4.349], [122.207, -4.4964], [121.9172, -4.848], [121.4866, -4.5812], [121.618, -4.0929], [120.9144, -3.5558], [121.0542, -3.167], [121.052, -2.7515], [120.6538, -2.6676], [120.2539, -3.0529], [120.4368, -3.7072], [120.3627, -4.0858], [120.4199, -4.6176], [120.2792, -5.1463], [120.3116, -5.5418], [119.7172, -5.6932], [119.3763, -5.425], [119.6116, -4.4236], [119.6236, -4.0343], [119.4198, -3.4755], [118.9946, -3.5376], [118.8126, -3.1568], [118.7837, -2.7648], [119.0922, -2.4829], [119.3217, -1.9298], [119.3089, -1.4083], [119.7718, -0.4836], [119.8091, 0.2386], [120.2694, 0.971], [120.5167, 0.8174], [120.9122, 1.2888], [121.44, 1.2142], [121.5918, 1.0678], [122.4365, 1.018], [122.8924, 0.8498], [123.2781, 0.9279], [123.8468, 0.8383], [124.2738, 1.022], [124.9893, 1.7012], [125.2339, 1.5023], [124.889, 0.9954]]], [[[127.7326, 0.848], [128.1609, 1.1579], [128.4242, 1.5174], [128.6883, 1.5725], [128.7025, 1.1064], [128.299, 0.8769], [128.6914, 0.3602], [127.9829, 0.4721], [127.8875, 0.2985], [128.0464, -0.706], [127.6918, -0.2417], [127.7086, 0.2883], [127.5555, 0.4898], [127.4201, 1.252], [127.6318, 1.8437], [128.0109, 1.7012], [128.0118, 1.3319], [127.6527, 1.0141], [127.7326, 0.848]]], [[[117.5746, 4.1706], [117.6301, 3.6361], [117.1662, 3.5922], [117.6105, 3.0644], [118.0664, 2.3178], [117.8649, 1.9684], [118.0806, 1.7016], [118.9848, 0.9821], [118.5347, 0.8134], [118.196, 0.8742], [117.745, 0.7295], [117.5222, 0.2359], [117.4627, -0.3238], [117.5626, -0.7708], [116.5545, -1.474], [116.4236, -2.0528], [116.5656, -2.2996], [116.3308, -2.9024], [115.9561, -3.5949], [114.6937, -4.1697], [114.5361, -3.4946], [114.0825, -3.2788], [113.7957, -3.4564], [113.5258, -3.1838], [112.9714, -3.1869], [112.6003, -3.4005], [112.2851, -3.321], [111.8222, -3.5323], [111.8231, -3.0573], [111.3676, -2.9335], [111.0445, -3.0555], [110.5739, -2.8913], [110.2326, -2.925], [110.0191, -1.3989], [109.7874, -1.0114], [109.454, -0.8689], [109.1606, -0.4947], [109.2574, 0.0313], [108.9444, 0.3558], [108.9058, 0.7939], [109.0758, 1.4957], [109.3785, 1.9227], [109.6289, 2.0275], [109.6542, 1.6151], [110.5056, 0.8618], [110.9379, 1.0172], [111.7698, 0.9994], [112.0783, 1.1432], [112.1857, 1.4393], [112.476, 1.5592], [113.6222, 1.236], [113.9022, 1.4344], [114.5459, 1.4673], [114.8304, 1.98], [114.7865, 2.2503], [115.1509, 2.4931], [115.0861, 2.8411], [115.4545, 3.0342], [115.5686, 3.9389], [115.8962, 4.3486], [117.1005, 4.337], [117.5746, 4.1706]]]] }, "properties": { "name": "Indonesia", "id": "ID" }, "id": "ID" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[22.132, 48.4053], [22.8764, 47.9472], [22.2905, 47.7279], [21.1519, 46.3044], [20.2419, 46.1086], [19.5308, 46.1552], [18.9054, 45.9315], [17.9639, 45.7704], [17.3105, 45.9963], [16.5163, 46.4997], [16.0929, 46.8632], [16.4533, 47.0066], [16.4342, 47.3675], [17.1475, 48.0058], [17.7619, 47.7701], [18.7242, 47.787], [18.7917, 48.0005], [19.8988, 48.1314], [20.4901, 48.5269], [21.4515, 48.5522], [22.132, 48.4053]]] }, "properties": { "name": "Hungary", "id": "HU" }, "id": "HU" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-71.7791, 19.7183], [-71.6571, 19.1306], [-71.7683, 18.0391], [-72.0599, 18.2286], [-72.8767, 18.1518], [-73.3851, 18.2513], [-73.885, 18.0418], [-74.419, 18.3463], [-74.2276, 18.6628], [-72.7894, 18.4346], [-72.3478, 18.6747], [-72.8112, 19.0716], [-72.7033, 19.4409], [-73.0527, 19.6109], [-73.1177, 19.9039], [-72.6369, 19.9008], [-71.7791, 19.7183]]] }, "properties": { "name": "Haiti", "id": "HT" }, "id": "HT" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[18.9054, 45.9315], [19.0549, 45.5271], [19.007, 44.8693], [18.6625, 45.0774], [17.8129, 45.0779], [16.5305, 45.2168], [16.2935, 45.0086], [15.7879, 45.1791], [15.7369, 44.7658], [16.214, 44.215], [17.6247, 43.0426], [17.5852, 42.9383], [16.903, 43.3924], [15.9415, 43.6565], [15.123, 44.2567], [14.8548, 45.081], [14.3861, 45.342], [13.9657, 44.8355], [13.6293, 45.1081], [13.5778, 45.5169], [13.8787, 45.4286], [15.3396, 45.4672], [15.6246, 45.8338], [15.6361, 46.2005], [16.5163, 46.4997], [17.3105, 45.9963], [17.9639, 45.7704], [18.9054, 45.9315]]], [[[17.6678, 42.897], [18.4362, 42.5597], [18.5174, 42.4327], [17.6678, 42.897]]]] }, "properties": { "name": "Croatia", "id": "HR" }, "id": "HR" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-83.1576, 14.9931], [-83.8674, 14.7947], [-84.646, 14.6611], [-84.9851, 14.7525], [-85.1796, 14.3432], [-85.7868, 13.8443], [-86.1512, 13.9948], [-86.3317, 13.7702], [-86.7336, 13.7635], [-86.7108, 13.3134], [-87.0592, 12.9916], [-87.3373, 12.9792], [-87.4891, 13.3529], [-87.8143, 13.3991], [-87.7153, 13.8128], [-88.151, 13.9872], [-88.4491, 13.851], [-89.0572, 14.329], [-89.3626, 14.416], [-89.2223, 14.8661], [-88.9764, 15.1427], [-88.2284, 15.7291], [-87.6181, 15.9097], [-86.9072, 15.7624], [-86.3568, 15.7832], [-85.7839, 16.003], [-85.4836, 15.8995], [-84.9738, 15.9901], [-84.2614, 15.8227], [-83.7604, 15.2204], [-83.3691, 15.2399], [-83.1576, 14.9931]]] }, "properties": { "name": "Honduras", "id": "HN" }, "id": "HN" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[73.7074, -53.1372], [73.465, -53.1843], [73.3363, -53.0298], [73.5858, -53.0271], [73.7074, -53.1372]]] }, "properties": { "name": "Heard Island and McDonald Islands", "id": "HM" }, "id": "HM" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[114.0154, 22.5117], [114.2658, 22.541], [114.268, 22.2956], [114.0154, 22.5117]]] }, "properties": { "name": "Hong Kong", "id": "HK" }, "id": "HK" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-57.1948, 5.5484], [-57.3309, 5.0202], [-57.7111, 4.9909], [-58.0544, 4.1719], [-57.8327, 3.6761], [-57.5497, 3.3529], [-57.3036, 3.3769], [-57.2097, 2.8828], [-56.7043, 2.0363], [-56.4828, 1.9422], [-56.8368, 1.8814], [-57.1189, 2.0141], [-57.5943, 1.7043], [-58.3407, 1.5876], [-58.5119, 1.2848], [-58.8625, 1.2036], [-59.2312, 1.3758], [-59.7563, 1.9005], [-59.7552, 2.2743], [-59.9942, 2.6902], [-59.8544, 3.5873], [-59.5512, 3.9335], [-59.8333, 4.476], [-60.1112, 4.511], [-59.9907, 5.0828], [-60.142, 5.239], [-60.7422, 5.2022], [-61.3767, 5.9071], [-61.1286, 6.2142], [-61.1457, 6.6945], [-60.3951, 6.9453], [-60.7191, 7.4989], [-60.5136, 7.8131], [-60.0324, 8.0537], [-59.8315, 8.3059], [-60.0175, 8.5491], [-59.2003, 8.0746], [-58.6266, 7.5459], [-58.4806, 7.0381], [-57.9825, 6.786], [-57.1902, 6.0975], [-57.1948, 5.5484]]] }, "properties": { "name": "Guyana", "id": "GY" }, "id": "GY" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[144.7416, 13.2593], [144.6493, 13.4288], [144.7905, 13.5269], [144.7416, 13.2593]]] }, "properties": { "name": "Guam", "id": "GU" }, "id": "GU" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-51.6526, 4.0614], [-51.9906, 3.7018], [-52.7006, 2.3635], [-52.9648, 2.1837], [-53.7678, 2.3551], [-54.13, 2.1211], [-54.6163, 2.3266], [-54.1954, 2.818], [-54.2032, 3.1381], [-53.9904, 3.5895], [-54.3508, 4.0543], [-54.4522, 5.0135], [-54.1559, 5.3589], [-53.8472, 5.7823], [-53.4544, 5.5635], [-52.8993, 5.425], [-52.2905, 4.9421], [-51.9196, 4.5244], [-51.6526, 4.0614]]] }, "properties": { "name": "French Guiana", "id": "GF" }, "id": "GF" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-89.1615, 17.8149], [-89.2374, 15.8942], [-88.8941, 15.8907], [-88.2284, 15.7291], [-88.9764, 15.1427], [-89.2223, 14.8661], [-89.3626, 14.416], [-89.8726, 14.0454], [-90.0952, 13.7364], [-90.607, 13.9291], [-91.1461, 13.9255], [-91.8191, 14.2283], [-92.2352, 14.5452], [-92.0748, 15.0743], [-92.1871, 15.3207], [-91.7365, 16.07], [-90.4472, 16.0726], [-90.417, 16.3909], [-90.7107, 16.7083], [-91.4096, 17.2561], [-90.993, 17.2525], [-90.9892, 17.8163], [-89.1615, 17.8149]]] }, "properties": { "name": "Guatemala", "id": "GT" }, "id": "GT" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-25.4324, 70.9213], [-25.4022, 70.6527], [-27.898, 70.4541], [-27.7089, 70.8971], [-25.4324, 70.9213]]], [[[-52.7313, 69.9447], [-52.0452, 69.8071], [-52.1125, 69.4891], [-53.5784, 69.2567], [-53.7831, 69.5064], [-54.804, 69.6304], [-54.8304, 70.1611], [-53.3751, 70.2213], [-52.7313, 69.9447]]], [[[-29.953, 83.5649], [-25.9475, 83.2897], [-24.4702, 82.8773], [-21.5208, 82.5954], [-25.1489, 82.0011], [-21.3379, 82.0687], [-21.1466, 81.6952], [-17.2261, 81.4304], [-15.5555, 81.8337], [-12.1928, 81.649], [-11.5288, 81.424], [-14.5035, 80.7633], [-16.7607, 80.5733], [-16.8683, 80.1982], [-19.4292, 80.2577], [-20.1385, 79.8033], [-19.2836, 79.683], [-19.0749, 79.1524], [-20.9557, 78.5551], [-20.8625, 77.9119], [-20.2319, 77.3684], [-18.339, 77.2152], [-18.5103, 76.7782], [-20.9422, 76.887], [-21.8772, 76.5734], [-21.5692, 76.2937], [-20.1037, 76.2191], [-19.5091, 75.7575], [-19.4261, 75.2299], [-20.485, 75.3143], [-19.2252, 74.4795], [-19.3692, 74.284], [-21.1295, 74.1109], [-20.3673, 73.8483], [-20.5096, 73.493], [-22.1851, 73.2699], [-22.0364, 72.9184], [-22.2931, 72.1196], [-24.0692, 72.4987], [-24.6669, 72.4374], [-22.0133, 71.6888], [-21.7523, 71.4784], [-21.5228, 70.5262], [-23.3279, 70.451], [-23.7917, 70.5551], [-24.377, 71.1463], [-25.7422, 71.1836], [-26.7179, 70.9506], [-27.6887, 70.9934], [-28.5409, 70.4769], [-28.0149, 70.4024], [-26.7472, 70.4756], [-23.1732, 70.1145], [-23.0882, 69.883], [-26.3414, 68.7023], [-29.2496, 68.2988], [-29.8686, 68.3116], [-30.9786, 68.0613], [-32.1373, 68.3849], [-32.2747, 67.9228], [-33.157, 67.6267], [-34.1016, 66.7258], [-34.6329, 66.4349], [-36.3792, 65.8307], [-37.7541, 65.593], [-39.9609, 65.5562], [-39.5779, 65.3407], [-40.6554, 64.9154], [-40.1822, 64.48], [-40.6177, 64.1317], [-40.5504, 63.7254], [-42.1529, 62.5686], [-42.3216, 62.1526], [-42.1103, 61.8572], [-42.4188, 61.537], [-42.7171, 60.7675], [-43.3201, 59.9281], [-44.0654, 59.9247], [-45.3793, 60.2028], [-46.0467, 60.6157], [-46.0116, 61.0968], [-46.8746, 60.8163], [-47.7963, 60.829], [-48.922, 61.2775], [-49.2891, 61.59], [-49.5534, 62.2328], [-50.3192, 62.4731], [-50.3382, 62.8287], [-51.4688, 63.6423], [-51.4511, 63.9047], [-52.0934, 64.4158], [-52.259, 65.1549], [-53.6346, 66.4136], [-53.0382, 66.8268], [-53.8845, 67.1356], [-53.4189, 67.5746], [-53.578, 67.8369], [-53.0393, 68.6108], [-51.2493, 68.74], [-50.5, 69.9358], [-52.2545, 70.059], [-54.0143, 70.4217], [-54.1659, 70.8201], [-52.4052, 70.6867], [-51.5246, 70.4394], [-51.1302, 70.9717], [-53.117, 71.3128], [-53.4761, 71.6402], [-54.6891, 71.3672], [-55.5939, 71.5536], [-55.3156, 72.1107], [-55.6017, 72.4536], [-54.7379, 72.8724], [-56.104, 73.5582], [-55.9295, 73.8954], [-56.7063, 74.2192], [-56.2556, 74.5268], [-58.6035, 75.3853], [-58.5163, 75.6891], [-61.3747, 76.1801], [-63.4388, 76.3394], [-66.8262, 75.9688], [-69.3728, 76.3319], [-69.2521, 76.6861], [-70.7928, 76.869], [-70.8629, 77.1755], [-69.3515, 77.4671], [-72.8181, 78.1945], [-72.3957, 78.5043], [-68.9935, 78.8574], [-67.4823, 79.1169], [-65.9679, 79.1324], [-64.7923, 80.0007], [-66.8437, 80.0761], [-66.996, 80.413], [-62.9932, 81.2069], [-61.436, 81.1337], [-61.203, 81.7469], [-58.7174, 82.0932], [-54.7259, 82.3513], [-52.7757, 82.3218], [-50.8944, 81.8952], [-48.8612, 82.4054], [-45.2912, 81.8288], [-44.239, 82.3682], [-46.4782, 82.9519], [-43.1945, 83.255], [-32.9845, 83.5995], [-29.953, 83.5649]]]] }, "properties": { "name": "Greenland", "id": "GL" }, "id": "GL" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-61.7154, 12.0128], [-61.715, 12.185], [-61.6071, 12.2232], [-61.6271, 12.0541], [-61.7154, 12.0128]]] }, "properties": { "name": "Grenada", "id": "GD" }, "id": "GD" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[23.8521, 35.5355], [24.3129, 35.3638], [24.7212, 35.425], [25.4758, 35.3061], [25.7448, 35.1427], [24.7998, 34.9345], [24.4638, 35.1605], [23.5618, 35.295], [23.8521, 35.5355]]], [[[26.0391, 40.7269], [25.1043, 40.9945], [24.3839, 40.9129], [23.8787, 40.5444], [23.6643, 40.2239], [23.3119, 40.2164], [22.6296, 40.4956], [22.5923, 40.0371], [22.919, 39.6291], [22.9656, 39.0308], [23.2528, 38.6614], [23.9671, 38.2748], [23.5804, 38.0107], [23.1938, 37.9592], [23.1614, 37.3338], [22.765, 37.3932], [23.0735, 36.7749], [22.6083, 36.7798], [22.0805, 37.0288], [21.5829, 37.0807], [21.5714, 37.541], [21.1448, 37.9192], [21.4036, 38.1967], [21.8248, 38.3281], [22.7996, 37.9814], [22.4219, 38.4386], [21.4724, 38.3214], [21.1133, 38.3849], [20.7795, 39.0086], [20.301, 39.3273], [20.0013, 39.7095], [20.6574, 40.1174], [21.0312, 40.6585], [20.9641, 40.8498], [21.5758, 40.8689], [21.9296, 41.1073], [22.7246, 41.1783], [22.9159, 41.3363], [23.635, 41.3869], [24.0558, 41.5272], [25.2512, 41.2436], [26.1355, 41.3856], [26.321, 41.7167], [26.6246, 41.4016], [26.0391, 40.7269]]], [[[23.4153, 38.9588], [24.0989, 38.6712], [23.7589, 38.4013], [23.2519, 38.8013], [23.4153, 38.9588]]]] }, "properties": { "name": "Greece", "id": "GR" }, "id": "GR" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[9.5907, 1.0318], [9.3861, 1.1392], [9.8069, 1.9276], [9.8007, 2.3044], [9.98, 2.1677], [11.3286, 2.1673], [11.3352, 0.9998], [9.5907, 1.0318]]] }, "properties": { "name": "Equatorial Guinea", "id": "GQ" }, "id": "GQ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-15.0431, 10.9404], [-15.3931, 11.2174], [-15.5018, 11.7238], [-16.1384, 11.9174], [-16.7119, 12.3551], [-15.5748, 12.4904], [-15.1962, 12.68], [-13.7294, 12.6738], [-13.7327, 11.7358], [-14.6831, 11.5085], [-15.0431, 10.9404]]] }, "properties": { "name": "Guinea-Bissau", "id": "GW" }, "id": "GW" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-16.7634, 13.064], [-16.8248, 13.3409], [-16.5623, 13.5873], [-15.5096, 13.5864], [-15.8343, 13.1563], [-16.6488, 13.1541], [-16.7634, 13.064]]] }, "properties": { "name": "Gambia", "id": "GM" }, "id": "GM" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-61.3272, 16.2302], [-61.5221, 16.228], [-61.529, 16.434], [-61.4065, 16.4682], [-61.3272, 16.2302]]] }, "properties": { "name": "Guadeloupe", "id": "GP" }, "id": "GP" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-11.3894, 12.4043], [-11.3053, 12.0155], [-10.9333, 12.205], [-10.6774, 11.8996], [-10.2748, 12.2126], [-9.8207, 12.0426], [-9.043, 12.4025], [-8.8219, 11.6732], [-8.4075, 11.3865], [-8.2315, 10.4379], [-7.9907, 10.1627], [-8.1365, 10.022], [-8.137, 9.4955], [-7.8962, 9.416], [-7.951, 8.7866], [-7.8236, 8.4674], [-8.232, 7.5566], [-8.4863, 7.5584], [-8.7083, 7.6591], [-8.8896, 7.2627], [-9.1175, 7.2157], [-9.4598, 7.4425], [-9.369, 7.6396], [-9.5182, 8.3463], [-9.7683, 8.5345], [-10.2832, 8.4852], [-10.5005, 8.6876], [-10.6905, 9.3144], [-11.2056, 9.9776], [-11.911, 9.9931], [-12.5016, 9.8622], [-12.7559, 9.3734], [-13.2928, 9.0494], [-13.7005, 9.8511], [-14.4269, 10.2483], [-14.7758, 10.9315], [-15.0431, 10.9404], [-14.6831, 11.5085], [-13.7327, 11.7358], [-13.7294, 12.6738], [-13.0828, 12.6334], [-12.2912, 12.328], [-11.3894, 12.4043]]] }, "properties": { "name": "Guinea", "id": "GN" }, "id": "GN" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-0.0686, 11.1157], [-0.0577, 10.6305], [0.3627, 10.2364], [0.2619, 9.4955], [0.5291, 9.3583], [0.4153, 8.6525], [0.688, 8.3041], [0.5837, 8.1456], [0.6348, 7.3537], [0.5256, 6.8508], [0.7369, 6.4526], [1.1874, 6.0895], [0.9499, 5.8103], [0.2597, 5.7575], [-0.7977, 5.2266], [-1.6384, 4.9807], [-2.0017, 4.7623], [-3.1139, 5.0885], [-3.0868, 5.1285], [-3.0191, 5.1307], [-2.7952, 5.1844], [-3.2007, 6.3483], [-3.2358, 6.8073], [-2.9858, 7.205], [-2.7899, 7.9321], [-2.5058, 8.2087], [-2.7466, 9.1098], [-2.6958, 9.4813], [-2.7865, 10.4019], [-2.9148, 10.5924], [-2.8298, 10.9985], [-0.7014, 10.9888], [-0.0686, 11.1157]]] }, "properties": { "name": "Ghana", "id": "GH" }, "id": "GH" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-2.5124, 49.4946], [-2.5475, 49.4287], [-2.646, 49.4682], [-2.5124, 49.4946]]] }, "properties": { "name": "Guernsey", "id": "GG" }, "id": "GG" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[46.4298, 41.8907], [46.1821, 41.6573], [46.6189, 41.3439], [46.4577, 41.07], [45.281, 41.4495], [45.0013, 41.291], [43.4393, 41.1073], [42.7876, 41.5636], [42.4663, 41.4398], [41.5101, 41.5174], [41.7631, 41.9702], [41.4888, 42.6591], [40.8367, 43.0635], [39.9782, 43.42], [40.6481, 43.534], [41.5807, 43.2193], [42.4192, 43.2242], [43.7824, 42.747], [43.9573, 42.5664], [44.5059, 42.7488], [45.1602, 42.6751], [45.7275, 42.4749], [45.6388, 42.205], [46.4298, 41.8907]]] }, "properties": { "name": "Georgia", "id": "GE" }, "id": "GE" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[13.2937, 2.1615], [13.1627, 1.6479], [13.2741, 1.2409], [13.8512, 1.4189], [14.181, 1.3701], [14.4345, 0.8116], [14.0874, 0.5364], [13.8845, 0.1906], [13.8601, -0.2035], [14.4806, -0.6181], [14.3839, -1.8899], [14.0874, -2.4669], [13.7842, -2.1638], [13.465, -2.3955], [12.9918, -2.3134], [12.7934, -1.9316], [12.4321, -1.929], [12.4463, -2.3298], [11.5754, -2.3973], [11.5376, -2.8367], [11.934, -3.3188], [11.5043, -3.5203], [11.1301, -3.9163], [10.3476, -3.0129], [9.6245, -2.3671], [9.2658, -1.8251], [9.3306, -1.5348], [9.0647, -1.2982], [8.8215, -0.7082], [9.2969, -0.3514], [9.5907, 1.0318], [11.3352, 0.9998], [11.3286, 2.1673], [11.3485, 2.2996], [13.2204, 2.2565], [13.2937, 2.1615]]] }, "properties": { "name": "Gabon", "id": "GA" }, "id": "GA" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[5.7897, 49.5383], [6.3441, 49.4527], [6.7356, 49.1606], [7.4507, 49.1522], [8.1348, 48.9735], [7.5843, 48.0644], [7.6154, 47.5925], [7.0006, 47.3227], [6.06, 46.4282], [6.7583, 46.4158], [7.021, 45.9257], [7.1533, 45.401], [6.6277, 45.1178], [7.0308, 44.7166], [6.9673, 44.2802], [7.6771, 44.0831], [7.4929, 43.7671], [7.4387, 43.7507], [7.4143, 43.7711], [7.3779, 43.7316], [6.4941, 43.1692], [6.1159, 43.0724], [5.4066, 43.2286], [5.0599, 43.4444], [4.7119, 43.3733], [4.0527, 43.5931], [3.2591, 43.1931], [3.0518, 42.9152], [3.2116, 42.431], [2.0326, 42.3537], [1.7059, 42.5033], [1.4284, 42.5961], [-0.0411, 42.6893], [-1.2855, 43.0595], [-1.794, 43.4075], [-1.4848, 43.5638], [-1.2456, 44.5599], [-1.066, 45.8059], [-1.1464, 46.3115], [-1.7867, 46.5148], [-2.0188, 47.0377], [-3.1587, 47.6946], [-4.312, 47.8229], [-4.6291, 48.0857], [-4.3932, 48.3676], [-4.7208, 48.5398], [-3.2315, 48.8408], [-2.6924, 48.5367], [-2.4463, 48.6483], [-1.4375, 48.6415], [-1.8564, 49.6837], [-1.2587, 49.6802], [-1.1386, 49.3879], [-0.1636, 49.2969], [0.1869, 49.703], [1.2456, 49.9982], [1.5514, 50.2938], [1.5794, 50.7393], [1.9123, 50.9905], [2.5249, 51.0971], [2.8396, 50.7118], [4.1744, 50.2466], [4.8677, 49.788], [5.7897, 49.5383]]], [[[9.4802, 42.8056], [9.5508, 42.1296], [9.1863, 41.3847], [8.8077, 41.5885], [8.7132, 42.5499], [9.4802, 42.8056]]]] }, "properties": { "name": "France", "id": "FR" }, "id": "FR" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[158.315, 6.8135], [158.1836, 6.8011], [158.1348, 6.9449], [158.2946, 6.9511], [158.315, 6.8135]]] }, "properties": { "name": "Federated States of Micronesia", "id": "FM" }, "id": "FM" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-6.6311, 62.2279], [-7.0135, 62.094], [-7.1722, 62.2856], [-6.6311, 62.2279]]] }, "properties": { "name": "Faroe Islands", "id": "FO" }, "id": "FO" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-58.8501, -51.2698], [-58.4737, -51.509], [-57.9765, -51.3843], [-57.8382, -51.7092], [-58.6834, -51.9361], [-59.0681, -52.1731], [-59.5708, -51.9254], [-59.0596, -51.6857], [-58.8501, -51.2698]]], [[[-60.2863, -51.462], [-59.268, -51.4274], [-59.9214, -51.9693], [-60.2863, -51.462]]]] }, "properties": { "name": "Falkland Islands", "id": "FK" }, "id": "FK" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[178.2804, -17.372], [178.5915, -17.6516], [178.6679, -18.0808], [177.8471, -18.2549], [177.3215, -18.0773], [177.2638, -17.8633], [177.6181, -17.4612], [178.2804, -17.372]]], [[[179.9991, -16.1686], [179.7483, -16.4464], [179.9281, -16.7443], [179.007, -16.9001], [178.805, -16.6315], [179.5517, -16.2498], [179.9991, -16.1686]]]] }, "properties": { "name": "Fiji", "id": "FJ" }, "id": "FJ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[28.9657, 69.0219], [28.4708, 68.4883], [29.3439, 68.062], [29.9414, 67.5475], [29.0869, 66.9709], [29.9032, 66.0911], [29.604, 64.9685], [30.0728, 64.7649], [30.1083, 64.3661], [30.5038, 64.0205], [30.0555, 63.689], [31.1807, 63.2082], [31.5341, 62.8855], [31.2855, 62.5679], [29.6902, 61.5461], [27.7978, 60.5362], [25.6565, 60.3331], [23.7216, 59.9656], [22.7934, 60.0768], [22.5759, 60.3591], [21.436, 60.5964], [21.3605, 60.9675], [21.606, 61.5916], [21.2562, 61.9897], [21.1035, 62.6229], [22.2434, 63.4379], [23.2488, 63.8963], [24.5579, 64.8009], [25.3729, 65.0095], [25.348, 65.4792], [24.1557, 65.8052], [23.7012, 66.4808], [23.9884, 66.8106], [23.4681, 67.45], [23.639, 67.9543], [22.7823, 68.3911], [21.9975, 68.5207], [20.6223, 69.037], [21.622, 69.2707], [22.4108, 68.7198], [23.8539, 68.8059], [24.9414, 68.5933], [25.7484, 68.9901], [26.0116, 69.6526], [26.5257, 69.915], [27.8897, 70.0617], [29.1415, 69.6715], [28.9657, 69.0219]]] }, "properties": { "name": "Finland", "id": "FI" }, "id": "FI" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[42.3784, 12.4665], [41.7667, 11.5889], [41.7982, 10.9803], [42.5577, 11.0806], [42.9226, 10.9994], [42.6594, 10.6212], [42.8418, 10.2031], [43.1818, 9.8799], [43.4828, 9.3796], [44.023, 8.9859], [46.9784, 7.9969], [47.9781, 7.9969], [45.9348, 5.9972], [44.9405, 4.9119], [44.0283, 4.9509], [43.5383, 4.8404], [43.0158, 4.5634], [42.7916, 4.2922], [42.0241, 4.1377], [41.8839, 3.9779], [41.2207, 3.9437], [40.7653, 4.2731], [39.8424, 3.8514], [39.4944, 3.4559], [38.0864, 3.649], [36.9056, 4.4116], [36.0818, 4.4498], [35.763, 4.808], [35.7448, 5.3442], [35.2681, 5.4925], [35.0821, 5.6731], [34.7106, 6.6604], [34.0643, 7.2259], [33.6661, 7.6711], [33.2262, 7.7608], [33.0127, 7.9516], [33.2342, 8.3964], [33.9533, 8.4435], [34.0945, 8.5824], [34.078, 9.4613], [34.2915, 10.1249], [34.2756, 10.528], [34.5716, 10.88], [34.9312, 10.8649], [35.1123, 11.8166], [35.5961, 12.5375], [36.1075, 12.7266], [36.2123, 13.2712], [36.3907, 13.6259], [36.5243, 14.2567], [37.0246, 14.2718], [37.2572, 14.4538], [37.571, 14.1493], [37.8844, 14.8524], [38.5045, 14.4245], [39.074, 14.6282], [40.2215, 14.4311], [40.7697, 14.1444], [41.3627, 13.4998], [41.7649, 13.1838], [42.3784, 12.4665]]] }, "properties": { "name": "Ethiopia", "id": "ET" }, "id": "ET" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[28.0127, 59.4842], [27.4272, 58.7331], [27.753, 57.8411], [27.3517, 57.5282], [26.5328, 57.5311], [25.9912, 57.8382], [25.111, 58.0635], [24.3226, 57.8706], [24.529, 58.3543], [23.7678, 58.3609], [23.5094, 58.6585], [23.4943, 59.1957], [24.3803, 59.4726], [25.5091, 59.6389], [26.9749, 59.4507], [28.0127, 59.4842]]], [[[22.6172, 58.6213], [23.2928, 58.4834], [22.1875, 58.1543], [22.0814, 58.4781], [22.6172, 58.6213]]]] }, "properties": { "name": "Estonia", "id": "EE" }, "id": "EE" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-1.794, 43.4075], [-1.2855, 43.0595], [-0.0411, 42.6893], [1.4284, 42.5961], [1.4861, 42.4345], [1.7059, 42.5033], [2.0326, 42.3537], [3.2116, 42.431], [3.248, 41.9445], [2.0827, 41.2875], [1.0329, 41.062], [-0.3269, 39.5199], [-0.2049, 39.0627], [0.2015, 38.7591], [-0.3813, 38.4355], [-0.6468, 38.1518], [-0.8221, 37.581], [-1.3275, 37.561], [-1.7975, 37.233], [-2.1116, 36.7767], [-4.3668, 36.7181], [-4.6742, 36.5063], [-5.1716, 36.4238], [-5.6254, 36.026], [-6.0407, 36.1885], [-6.4924, 36.9547], [-6.8845, 37.1944], [-7.4061, 37.1793], [-7.5036, 37.5854], [-7.1855, 38.0062], [-7.3431, 38.4572], [-7.0461, 38.9069], [-7.4452, 39.5363], [-7.0368, 39.7139], [-7.0146, 40.2084], [-6.8102, 40.3429], [-6.9285, 41.0092], [-6.2125, 41.5321], [-6.6182, 41.9422], [-7.4037, 41.8335], [-7.9208, 41.8836], [-8.2131, 42.1336], [-8.7771, 41.9409], [-8.691, 42.2743], [-9.2352, 42.977], [-8.8736, 43.3343], [-7.6982, 43.7644], [-7.2621, 43.5948], [-5.6658, 43.5824], [-4.523, 43.416], [-3.6046, 43.5194], [-3.0455, 43.3716], [-2.3371, 43.3281], [-1.794, 43.4075]]], [[[3.1454, 39.7902], [3.4619, 39.6979], [3.0726, 39.3011], [2.3713, 39.6131], [2.785, 39.8546], [3.1454, 39.7902]]], [[[-16.3346, 28.38], [-16.6579, 28.0071], [-16.9054, 28.3396], [-16.3346, 28.38]]]] }, "properties": { "name": "Spain", "id": "ES" }, "id": "ES" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[38.6093, 18.0049], [38.9116, 17.427], [39.1424, 16.7292], [39.2991, 15.9213], [39.5064, 15.532], [39.8637, 15.4703], [40.2042, 15.014], [41.1763, 14.6202], [41.6584, 13.9832], [42.2452, 13.5877], [42.7961, 12.8642], [43.1166, 12.7084], [42.67, 12.3764], [42.3784, 12.4665], [41.7649, 13.1838], [41.3627, 13.4998], [40.7697, 14.1444], [40.2215, 14.4311], [39.074, 14.6282], [38.5045, 14.4245], [37.8844, 14.8524], [37.571, 14.1493], [37.2572, 14.4538], [37.0246, 14.2718], [36.5243, 14.2567], [36.4267, 15.132], [36.9136, 16.2964], [37.0091, 17.059], [37.4112, 17.0616], [37.7823, 17.458], [38.2537, 17.5845], [38.6093, 18.0049]]] }, "properties": { "name": "Eritrea", "id": "ER" }, "id": "ER" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-6.218, 54.0887], [-7.3553, 54.1213], [-8.1183, 54.4143], [-7.2186, 55.0921], [-6.1293, 55.2175], [-5.4703, 54.5002], [-5.6068, 54.2727], [-6.218, 54.0887]]], [[[-3.1097, 58.5154], [-3.9901, 57.959], [-3.4029, 57.7082], [-2.0741, 57.7024], [-1.778, 57.4938], [-2.6527, 56.3183], [-3.1783, 56.0802], [-2.1471, 55.9031], [-1.6555, 55.5704], [-1.2917, 54.7738], [-0.6714, 54.5039], [-0.2055, 54.0217], [0.5589, 52.967], [1.6566, 52.7537], [1.5589, 52.0869], [0.9553, 51.8077], [0.6867, 51.3865], [1.4151, 51.3632], [0.9601, 50.9259], [0.2051, 50.763], [-1.5168, 50.7475], [-2.5477, 50.6163], [-3.4047, 50.6323], [-3.7933, 50.2293], [-4.1726, 50.3908], [-5.3422, 50.2461], [-4.583, 50.7764], [-4.1881, 51.1885], [-3.1359, 51.2049], [-4.3863, 51.7412], [-4.9023, 51.6262], [-5.0881, 51.9959], [-4.3832, 52.1973], [-3.9804, 52.5417], [-4.1111, 53.2189], [-3.0646, 53.4268], [-2.925, 53.7327], [-3.958, 54.7809], [-5.1354, 54.8575], [-4.7212, 55.421], [-5.2457, 55.9293], [-5.6097, 56.0553], [-5.392, 56.5148], [-5.9368, 56.6058], [-5.562, 57.2328], [-5.8181, 57.4361], [-5.3382, 58.2386], [-4.7155, 58.5101], [-3.1097, 58.5154]]]] }, "properties": { "name": "United Kingdom", "id": "GB" }, "id": "GB" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[34.1983, 31.3226], [34.2454, 31.2085], [34.9041, 29.4773], [34.7363, 29.2705], [34.3999, 28.016], [34.2201, 27.7643], [33.7602, 28.0475], [33.2475, 28.5678], [33.0757, 29.0729], [32.7215, 29.5217], [32.6318, 28.9921], [32.8982, 28.5651], [33.5471, 27.8984], [33.5498, 27.6072], [33.8929, 27.0497], [33.9591, 26.6488], [34.565, 25.6913], [35.194, 24.4751], [35.6246, 24.0658], [35.5229, 23.4426], [35.6978, 22.9463], [36.2296, 22.6289], [36.8714, 21.9968], [34.2467, 21.9964], [32.6061, 21.9959], [30.3285, 21.9951], [27.2723, 21.9955], [24.9805, 21.9959], [24.9805, 24.2416], [24.9805, 25.8134], [24.9805, 27.8345], [24.9805, 29.1817], [24.7115, 30.1316], [24.9738, 30.7766], [24.8526, 31.335], [25.1505, 31.655], [25.3822, 31.513], [25.8931, 31.6209], [27.2479, 31.3781], [27.9674, 31.0975], [28.5147, 31.0505], [29.0723, 30.8303], [29.5916, 31.0114], [30.3951, 31.4575], [30.7005, 31.4038], [31.1941, 31.5876], [32.1018, 31.0926], [33.1299, 31.1681], [33.6665, 31.1304], [34.1983, 31.3226]]] }, "properties": { "name": "Egypt", "id": "EG" }, "id": "EG" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-91.2722, 0.0251], [-90.7997, -0.7522], [-90.9055, -0.9404], [-91.3692, -0.287], [-91.2722, 0.0251]]], [[[-75.2845, -0.1063], [-75.2632, -0.5555], [-75.5706, -1.5312], [-76.0898, -2.1331], [-76.679, -2.5628], [-77.8607, -2.9819], [-78.3472, -3.4311], [-78.4198, -3.7769], [-79.0763, -4.9905], [-79.3308, -4.9279], [-79.6385, -4.4547], [-80.1396, -4.2962], [-80.4885, -4.3939], [-80.51, -4.0694], [-80.1793, -3.8776], [-80.3247, -3.388], [-79.9217, -3.0902], [-79.7299, -2.5793], [-80.4501, -2.6259], [-80.9628, -2.1891], [-80.7704, -2.0768], [-80.8015, -1.3834], [-80.9024, -1.0789], [-80.554, -0.8481], [-80.4823, -0.3682], [-80.1334, -6e-3], [-80.0251, 0.4104], [-80.0883, 0.7846], [-79.7412, 0.9799], [-78.8996, 1.2063], [-78.8597, 1.4553], [-78.3121, 1.046], [-77.4676, 0.6363], [-77.4228, 0.425], [-76.4946, 0.2355], [-76.311, 0.4485], [-75.8798, 0.1511], [-75.2845, -0.1063]]]] }, "properties": { "name": "Ecuador", "id": "EC" }, "id": "EC" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[8.5764, 36.9374], [8.2306, 36.5454], [8.2457, 35.8707], [8.3944, 35.204], [8.2457, 34.7339], [7.5138, 34.0805], [7.5, 33.8323], [7.7628, 33.2331], [8.2111, 32.9268], [8.3332, 32.5437], [9.0439, 32.0723], [9.5188, 30.2293], [9.3102, 30.1152], [9.6724, 29.567], [9.8424, 28.9668], [9.9161, 27.7856], [9.7474, 27.3306], [9.8593, 26.5521], [9.4913, 26.3337], [9.4482, 26.0673], [10.0009, 25.3322], [10.2557, 24.5909], [10.6863, 24.5514], [11.5075, 24.3144], [11.9678, 23.518], [9.3785, 21.9915], [7.4818, 20.8729], [5.8367, 19.4791], [4.2276, 19.1426], [3.4007, 18.9886], [3.1059, 19.1502], [3.2559, 19.4107], [3.2036, 19.7898], [2.4063, 20.0637], [2.2195, 20.2479], [1.6855, 20.3784], [1.1657, 20.8174], [1.1457, 21.1024], [-1.2931, 22.6964], [-3.2579, 23.981], [-4.8227, 24.9958], [-6.2387, 25.848], [-8.6834, 27.2858], [-8.6834, 27.6565], [-8.6599, 28.7187], [-7.6851, 29.3495], [-7.095, 29.6251], [-6.6353, 29.5687], [-6.5008, 29.8093], [-5.4488, 29.9567], [-4.9683, 30.4654], [-4.3228, 30.6989], [-3.8335, 31.1978], [-3.8268, 31.6617], [-3.0174, 31.8344], [-2.9308, 32.0426], [-2.4485, 32.13], [-1.2753, 32.0892], [-1.0656, 32.4683], [-1.5099, 32.8775], [-1.6792, 33.3187], [-1.7955, 34.7521], [-2.2197, 35.1041], [-1.9132, 35.0943], [-0.9175, 35.6683], [0.0479, 35.9004], [0.5149, 36.2618], [1.2571, 36.5197], [2.5932, 36.6009], [2.9727, 36.7847], [3.7788, 36.8961], [4.7581, 36.8965], [5.1958, 36.6768], [6.0649, 36.8641], [6.4866, 37.0856], [6.9274, 36.9196], [7.6079, 36.9999], [7.9106, 36.8566], [8.5764, 36.9374]]] }, "properties": { "name": "Algeria", "id": "DZ" }, "id": "DZ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-71.7683, 18.0391], [-71.6571, 19.1306], [-71.7791, 19.7183], [-71.5578, 19.8954], [-70.9542, 19.9141], [-70.1294, 19.6362], [-69.7394, 19.2993], [-68.6848, 18.9047], [-68.3594, 18.538], [-68.6588, 18.222], [-68.9349, 18.408], [-69.7707, 18.4435], [-70.1831, 18.2517], [-71.0278, 18.273], [-71.3958, 17.6462], [-71.7683, 18.0391]]] }, "properties": { "name": "Dominican Republic", "id": "DO" }, "id": "DO" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[9.7399, 54.8255], [8.6701, 54.9034], [8.6159, 55.4181], [8.1321, 55.5999], [8.1641, 56.6069], [8.6186, 57.1114], [9.5543, 57.2325], [9.9623, 57.581], [10.5371, 57.4485], [10.2828, 56.6204], [10.1829, 55.8651], [9.5912, 55.4932], [9.7399, 54.8255]]], [[[12.5688, 55.785], [11.6539, 55.1869], [11.2864, 55.2044], [10.9788, 55.7215], [12.219, 56.1186], [12.5688, 55.785]]], [[[10.645, 55.6099], [10.7852, 55.1334], [9.9889, 55.1631], [9.8606, 55.5156], [10.645, 55.6099]]]] }, "properties": { "name": "Denmark", "id": "DK" }, "id": "DK" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-61.2817, 15.2492], [-61.481, 15.5253], [-61.3201, 15.5853], [-61.2817, 15.2492]]] }, "properties": { "name": "Dominica", "id": "DM" }, "id": "DM" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[43.2462, 11.4997], [42.9226, 10.9994], [42.5577, 11.0806], [41.7982, 10.9803], [41.7667, 11.5889], [42.3784, 12.4665], [42.67, 12.3764], [43.1166, 12.7084], [43.41, 12.1899], [43.2719, 11.9698], [42.7992, 11.7394], [43.2462, 11.4997]]] }, "properties": { "name": "Djibouti", "id": "DJ" }, "id": "DJ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[9.7399, 54.8255], [10.3604, 54.4382], [11.3996, 53.9446], [12.1111, 54.1684], [12.5755, 54.4673], [13.0287, 54.4109], [13.8654, 53.8534], [14.2587, 53.7296], [14.4145, 53.2835], [14.1286, 52.8782], [14.6196, 52.5284], [14.7527, 52.0818], [14.6018, 51.8324], [15.0164, 51.2527], [14.8096, 50.8589], [14.3692, 50.8986], [12.4525, 50.3498], [12.2763, 50.0424], [12.6318, 49.4613], [13.8148, 48.7669], [13.4095, 48.3942], [12.8143, 48.1607], [12.686, 47.6693], [11.717, 47.5837], [11.2979, 47.4247], [10.4306, 47.541], [10.3129, 47.3133], [9.5241, 47.5242], [8.6177, 47.7661], [7.6154, 47.5925], [7.5843, 48.0644], [8.1348, 48.9735], [7.4507, 49.1522], [6.7356, 49.1606], [6.3441, 49.4527], [6.4875, 49.7985], [6.1164, 50.1209], [6.3645, 50.3163], [5.9939, 50.7504], [5.8949, 50.9843], [6.1932, 51.4888], [5.9486, 51.7625], [6.7418, 51.9109], [7.0352, 52.3801], [7.1973, 53.2823], [7.2852, 53.6814], [8.0091, 53.6907], [8.5387, 53.5569], [8.8978, 53.8357], [8.9573, 54.5383], [8.6701, 54.9034], [9.7399, 54.8255]]] }, "properties": { "name": "Germany", "id": "DE" }, "id": "DE" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[14.8096, 50.8589], [16.0072, 50.6117], [16.6792, 50.0974], [17.152, 50.3784], [17.8746, 49.9722], [18.5622, 49.8792], [18.8321, 49.5108], [18.161, 49.2574], [17.7583, 48.888], [17.1884, 48.861], [16.9531, 48.5988], [16.4777, 48.8001], [16.0573, 48.7549], [14.972, 48.9839], [14.6915, 48.5993], [14.0492, 48.6024], [13.8148, 48.7669], [12.6318, 49.4613], [12.2763, 50.0424], [12.4525, 50.3498], [14.3692, 50.8986], [14.8096, 50.8589]]] }, "properties": { "name": "Czechia", "id": "CZ" }, "id": "CZ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[34.4633, 35.5937], [33.9418, 35.2918], [34.0501, 34.9882], [32.9417, 34.5758], [32.4489, 34.7294], [32.3171, 34.9532], [32.9417, 35.3904], [33.4588, 35.3358], [34.4633, 35.5937]]] }, "properties": { "name": "Cyprus", "id": "CY" }, "id": "CY" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-81.3696, 19.349], [-81.1306, 19.3468], [-81.3037, 19.2718], [-81.3696, 19.349]]] }, "properties": { "name": "Cayman Islands", "id": "KY" }, "id": "KY" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[105.7253, -10.493], [105.6969, -10.564], [105.5842, -10.5125], [105.7053, -10.4308], [105.7253, -10.493]]] }, "properties": { "name": "Christmas Island", "id": "CX" }, "id": "CX" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-68.7511, 12.0599], [-68.8033, 12.0457], [-68.995, 12.142], [-69.154, 12.2982], [-69.0767, 12.3422], [-69.0132, 12.2312], [-68.8275, 12.1584], [-68.7511, 12.0599]]] }, "properties": { "name": "Cura\xE7ao", "id": "CW" }, "id": "CW" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-82.5617, 21.5716], [-82.8531, 21.4437], [-83.0826, 21.7913], [-82.7146, 21.8903], [-82.5617, 21.5716]]], [[[-81.8375, 23.1629], [-81.1785, 23.0595], [-80.6501, 23.103], [-80.0752, 22.9423], [-79.183, 22.3879], [-78.6865, 22.367], [-77.8651, 21.9005], [-77.4973, 21.8717], [-76.6475, 21.2844], [-75.7229, 21.1108], [-75.6428, 20.7335], [-74.8826, 20.6505], [-74.2529, 20.0797], [-75.1165, 19.9012], [-76.1586, 19.9896], [-77.7151, 19.8555], [-77.2135, 20.3003], [-77.2297, 20.6438], [-77.9974, 20.7153], [-78.4908, 21.0536], [-78.6366, 21.5157], [-79.2745, 21.5627], [-80.2313, 21.8721], [-80.4992, 22.0634], [-80.9619, 22.0528], [-81.8162, 22.2001], [-81.9034, 22.6791], [-82.7382, 22.6893], [-83.3796, 22.2228], [-84.3264, 22.0745], [-84.3612, 22.379], [-84.045, 22.6662], [-83.2577, 22.9676], [-82.1014, 23.1905], [-81.8375, 23.1629]]]] }, "properties": { "name": "Cuba", "id": "CU" }, "id": "CU" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-83.6419, 10.9173], [-83.4482, 10.4658], [-82.7783, 9.6695], [-82.5635, 9.5767], [-82.9399, 9.4493], [-82.917, 8.7404], [-82.9976, 8.3676], [-82.8793, 8.0706], [-83.1625, 8.5882], [-83.734, 8.6144], [-83.6373, 9.0352], [-83.8956, 9.2762], [-84.6589, 9.6469], [-85.1145, 9.5816], [-85.6248, 9.9025], [-85.8305, 10.3979], [-85.6672, 10.7451], [-85.7444, 11.062], [-85.6215, 11.1845], [-84.9092, 10.9453], [-84.3484, 10.9799], [-84.1684, 10.7806], [-83.6419, 10.9173]]] }, "properties": { "name": "Costa Rica", "id": "CR" }, "id": "CR" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-23.4442, 15.0078], [-23.7054, 14.9611], [-23.7007, 15.2714], [-23.4442, 15.0078]]] }, "properties": { "name": "Cape Verde", "id": "CV" }, "id": "CV" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[43.4659, -11.9014], [43.2266, -11.7518], [43.3793, -11.6142], [43.4659, -11.9014]]] }, "properties": { "name": "Comoros", "id": "KM" }, "id": "KM" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-71.3197, 11.8619], [-71.958, 11.6666], [-72.2485, 11.1965], [-72.6902, 10.8361], [-72.8693, 10.4911], [-73.0065, 9.7894], [-73.3563, 9.2269], [-72.7963, 9.1089], [-72.6654, 8.6277], [-72.4166, 8.3818], [-72.443, 7.4549], [-72.0843, 7.0967], [-71.0134, 6.9946], [-70.6552, 7.0829], [-70.095, 6.9378], [-69.4392, 6.1348], [-68.4717, 6.1565], [-67.8591, 6.2897], [-67.4394, 6.0256], [-67.8249, 5.2705], [-67.8553, 4.507], [-67.6616, 3.8643], [-67.3111, 3.416], [-67.8347, 2.8926], [-67.2108, 2.3901], [-66.8761, 1.2231], [-67.352, 2.0861], [-67.8152, 1.79], [-68.1765, 1.7198], [-69.8486, 1.7087], [-69.8522, 1.0593], [-69.3615, 1.0642], [-69.1633, 0.864], [-70.0539, 0.5786], [-70.0706, -0.1387], [-69.6675, -0.4823], [-69.4003, -1.1948], [-69.6691, -2.6676], [-69.9658, -4.2359], [-70.3396, -3.8142], [-70.7351, -3.7818], [-70.0741, -2.7502], [-70.9146, -2.2184], [-71.3969, -2.3342], [-71.7525, -2.1527], [-72.3957, -2.4288], [-73.1545, -2.2783], [-73.1969, -1.8304], [-73.4963, -1.6932], [-73.6643, -1.2489], [-74.2465, -0.9706], [-74.4178, -0.5809], [-74.8018, -0.2], [-75.2845, -0.1063], [-75.8798, 0.1511], [-76.311, 0.4485], [-76.4946, 0.2355], [-77.4228, 0.425], [-77.4676, 0.6363], [-78.3121, 1.046], [-78.8597, 1.4553], [-78.5769, 1.774], [-78.6171, 2.3067], [-78.1201, 2.4882], [-77.67, 2.8788], [-77.2428, 3.5855], [-77.1666, 3.8621], [-77.4272, 4.0605], [-77.2863, 4.7219], [-77.4017, 5.4161], [-77.2492, 5.7801], [-77.4694, 6.177], [-77.36, 6.5046], [-77.9011, 7.2294], [-77.7439, 7.537], [-77.3509, 7.7057], [-77.2124, 8.0338], [-77.3742, 8.6583], [-76.8519, 8.0906], [-76.8879, 8.6197], [-76.2769, 8.989], [-76.1355, 9.2656], [-75.6394, 9.4502], [-75.671, 10.1964], [-75.4459, 10.611], [-74.8446, 11.1095], [-74.4542, 10.9892], [-74.0592, 11.3408], [-73.3134, 11.2959], [-72.722, 11.7123], [-72.275, 11.8894], [-72.1358, 12.1886], [-71.7145, 12.4199], [-71.2622, 12.3351], [-71.3197, 11.8619]]] }, "properties": { "name": "Colombia", "id": "CO" }, "id": "CO" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-159.7406, -21.2494], [-159.8395, -21.2383], [-159.832, -21.2005], [-159.7683, -21.1885], [-159.7406, -21.2494]]] }, "properties": { "name": "Cook Islands", "id": "CK" }, "id": "CK" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[18.6102, 3.4785], [18.4908, 2.9246], [18.0722, 2.0133], [18.058, 1.5347], [17.9026, 1.1179], [17.8875, 0.2341], [17.7242, -0.2777], [17.753, -0.5489], [17.2789, -0.9994], [16.8799, -1.2258], [16.5407, -1.8402], [16.2154, -2.178], [16.2171, -3.0302], [16.1466, -3.4639], [15.8722, -3.9345], [15.6001, -4.0308], [14.7794, -4.8458], [14.4105, -4.8311], [14.3581, -4.2993], [13.4149, -4.8373], [13.0726, -4.6349], [12.8809, -4.4454], [12.3846, -4.6189], [12.0184, -5.0042], [11.7773, -4.5657], [11.1301, -3.9163], [11.5043, -3.5203], [11.934, -3.3188], [11.5376, -2.8367], [11.5754, -2.3973], [12.4463, -2.3298], [12.4321, -1.929], [12.7934, -1.9316], [12.9918, -2.3134], [13.465, -2.3955], [13.7842, -2.1638], [14.0874, -2.4669], [14.3839, -1.8899], [14.4806, -0.6181], [13.8601, -0.2035], [13.8845, 0.1906], [14.0874, 0.5364], [14.4345, 0.8116], [14.181, 1.3701], [13.8512, 1.4189], [13.2741, 1.2409], [13.1627, 1.6479], [13.2937, 2.1615], [14.4842, 2.1549], [14.9023, 2.0124], [15.7417, 1.9152], [16.0596, 1.6763], [16.1834, 2.2703], [16.4684, 2.8318], [16.6735, 3.5354], [17.4379, 3.6845], [18.161, 3.4998], [18.6102, 3.4785]]] }, "properties": { "name": "Republic of Congo", "id": "CG" }, "id": "CG" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[27.4032, 5.1094], [27.7881, 4.6446], [28.192, 4.3503], [28.7269, 4.5048], [29.1513, 4.3881], [29.6768, 4.5869], [30.1949, 3.9819], [30.5083, 3.8359], [30.8385, 3.4905], [30.7284, 2.4554], [31.1763, 2.2703], [31.2527, 2.0448], [30.9424, 1.683], [29.9427, 0.8192], [29.9343, 0.4991], [29.7177, 0.0983], [29.5619, -0.9772], [29.577, -1.3878], [29.1295, -1.8601], [29.1064, -2.2335], [28.8765, -2.4004], [29.0146, -2.7204], [29.2245, -3.0533], [29.2232, -3.9109], [29.4034, -4.4494], [29.3426, -4.9829], [29.5943, -5.651], [29.4802, -6.0252], [29.7097, -6.6169], [30.3134, -7.2037], [30.7511, -8.1936], [28.9724, -8.4648], [28.9178, -8.7005], [28.4007, -9.2248], [28.6301, -9.8311], [28.639, -10.6692], [28.3572, -11.4828], [28.4823, -11.8122], [29.0643, -12.3489], [29.4274, -12.4314], [29.7954, -12.1553], [29.7954, -13.3929], [29.5543, -13.2491], [29.0141, -13.3689], [28.3576, -12.482], [27.5333, -12.1953], [27.0459, -11.616], [26.9496, -11.8988], [26.5962, -11.972], [26.0258, -11.8903], [25.3493, -11.6231], [25.1847, -11.2431], [24.5184, -11.4384], [24.32, -11.0718], [23.9666, -10.8716], [23.8339, -11.0136], [22.5613, -11.0558], [22.3069, -10.6914], [22.1977, -10.0406], [21.8133, -9.4689], [21.9056, -8.6934], [21.7511, -7.3054], [20.6077, -7.2778], [20.4821, -6.9161], [19.8753, -6.9862], [19.5277, -7.1447], [19.3408, -7.9668], [18.6532, -7.9361], [17.536, -8.076], [17.1551, -7.4612], [16.7094, -6.4717], [16.7179, -6.2414], [16.3152, -5.8658], [14.3985, -5.8925], [13.0682, -5.8649], [12.4117, -5.9866], [12.2137, -5.7589], [12.5035, -5.6958], [12.5222, -5.1489], [12.8298, -4.7366], [13.0726, -4.6349], [13.4149, -4.8373], [14.3581, -4.2993], [14.4105, -4.8311], [14.7794, -4.8458], [15.6001, -4.0308], [15.8722, -3.9345], [16.1466, -3.4639], [16.2171, -3.0302], [16.2154, -2.178], [16.5407, -1.8402], [16.8799, -1.2258], [17.2789, -0.9994], [17.753, -0.5489], [17.7242, -0.2777], [17.8875, 0.2341], [17.9026, 1.1179], [18.058, 1.5347], [18.0722, 2.0133], [18.4908, 2.9246], [18.6102, 3.4785], [18.5676, 4.2576], [19.0687, 4.8915], [19.5011, 5.1276], [19.8065, 5.0894], [20.2264, 4.8297], [20.558, 4.4627], [21.5376, 4.2447], [22.4223, 4.1351], [22.7557, 4.6469], [23.4171, 4.6633], [24.32, 4.994], [24.7656, 4.9301], [25.2495, 5.0246], [25.5251, 5.3123], [26.8222, 5.0623], [27.1151, 5.1977], [27.4032, 5.1094]]] }, "properties": { "name": "Democratic Republic of Congo", "id": "CD" }, "id": "CD" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[15.4803, 7.5237], [15.2459, 7.2636], [14.7394, 6.2799], [14.6169, 5.8649], [14.7088, 4.6655], [15.0226, 4.3583], [15.1287, 3.827], [15.775, 3.127], [16.0636, 2.9086], [16.1834, 2.2703], [16.0596, 1.6763], [15.7417, 1.9152], [14.9023, 2.0124], [14.4842, 2.1549], [13.2937, 2.1615], [13.2204, 2.2565], [11.3485, 2.2996], [11.3286, 2.1673], [9.98, 2.1677], [9.8007, 2.3044], [9.8762, 3.3099], [9.4252, 3.9224], [8.9999, 4.0916], [8.9027, 4.4351], [8.556, 4.7552], [8.801, 5.1973], [9.0603, 6.0092], [10.1438, 6.9964], [10.6064, 7.063], [11.0325, 6.6981], [11.1532, 6.438], [11.5518, 6.6972], [11.7676, 7.272], [12.0162, 7.5899], [12.4037, 8.5957], [12.8067, 8.8865], [12.9297, 9.4263], [13.1756, 9.5394], [13.2697, 10.0362], [13.5352, 10.6052], [13.892, 11.1401], [14.5597, 11.4921], [14.6271, 12.1087], [14.1974, 12.3839], [14.0638, 13.0786], [14.5162, 12.9796], [14.7612, 12.6556], [15.0812, 11.8455], [15.0297, 11.1135], [15.1323, 10.6483], [15.5411, 9.9603], [14.2432, 9.9798], [13.9773, 9.6917], [14.3324, 9.2034], [15.1163, 8.5571], [15.443, 7.8518], [15.4803, 7.5237]]] }, "properties": { "name": "Cameroon", "id": "CM" }, "id": "CM" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-5.5236, 10.4259], [-5.0999, 10.2417], [-4.9698, 9.9301], [-4.6258, 9.7134], [-3.8776, 9.895], [-3.2235, 9.8954], [-2.6958, 9.4813], [-2.7466, 9.1098], [-2.5058, 8.2087], [-2.7899, 7.9321], [-2.9858, 7.205], [-3.2358, 6.8073], [-3.2007, 6.3483], [-2.7952, 5.1844], [-3.0191, 5.1307], [-4.0372, 5.2301], [-5.5646, 5.0894], [-6.9229, 4.6384], [-7.5451, 4.3512], [-7.5688, 5.0805], [-7.4299, 5.3247], [-7.4543, 5.8414], [-7.7965, 5.975], [-7.8886, 6.2347], [-8.6035, 6.5077], [-8.3325, 6.8015], [-8.2966, 7.0741], [-8.4863, 7.5584], [-8.232, 7.5566], [-7.8236, 8.4674], [-7.951, 8.7866], [-7.8962, 9.416], [-8.137, 9.4955], [-8.1365, 10.022], [-7.9907, 10.1627], [-7.6611, 10.4272], [-7.1049, 10.2035], [-6.6932, 10.3495], [-6.2611, 10.7242], [-6.0345, 10.1946], [-5.5236, 10.4259]]] }, "properties": { "name": "C\xF4te d'Ivoire", "id": "CI" }, "id": "CI" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[110.8887, 19.9918], [111.0138, 19.6553], [110.5722, 19.1719], [110.4514, 18.748], [109.5193, 18.2184], [108.7016, 18.5354], [108.6936, 19.3384], [109.6511, 19.9842], [110.5886, 20.0726], [110.8887, 19.9918]]], [[[130.5269, 42.5353], [130.2406, 42.8917], [129.8983, 42.9983], [129.7199, 42.4749], [129.3137, 42.4137], [128.9236, 42.0381], [128.0451, 41.9875], [128.291, 41.5627], [128.1112, 41.3891], [127.1795, 41.5312], [126.9034, 41.7811], [125.989, 40.9049], [124.8895, 40.4596], [124.3621, 40.0042], [124.1056, 39.8409], [123.3483, 39.7632], [122.3349, 39.3663], [121.6499, 38.8652], [121.7853, 39.401], [121.5177, 39.6389], [122.2749, 40.5418], [121.859, 40.8423], [121.1745, 40.9013], [120.479, 40.231], [119.5912, 39.9026], [118.9125, 39.1666], [118.2977, 39.0671], [117.7845, 39.1346], [117.5577, 38.625], [118.0149, 38.1834], [118.94, 38.0426], [119.0891, 37.7008], [118.9529, 37.3311], [119.45, 37.1247], [120.3702, 37.7008], [120.7502, 37.834], [121.6402, 37.4603], [122.6025, 37.4265], [122.5195, 36.9467], [121.9327, 36.9595], [120.9899, 36.5978], [120.3933, 36.054], [120.0546, 35.8614], [119.2156, 35.0118], [119.5827, 34.5821], [120.2015, 34.3255], [120.8709, 33.0165], [120.8532, 32.6613], [121.4009, 32.3719], [121.3521, 31.8588], [121.0556, 31.7194], [121.6606, 31.3199], [121.8781, 30.9168], [120.9974, 30.5582], [121.1594, 30.3016], [121.9442, 29.8941], [121.7174, 29.2562], [121.602, 28.3667], [121.0986, 28.2903], [120.2788, 27.0972], [119.6484, 25.9186], [119.5392, 25.5915], [119.0248, 25.2235], [118.5605, 24.5803], [118.0873, 24.6269], [118.0562, 24.246], [116.5381, 23.1798], [116.4706, 22.9459], [115.4985, 22.719], [115.1957, 22.8171], [114.854, 22.6169], [114.2658, 22.541], [114.0154, 22.5117], [113.6195, 22.8615], [113.5467, 22.2241], [113.4943, 22.2414], [113.4788, 22.1957], [113.0083, 22.1193], [112.5861, 21.7767], [111.9438, 21.8495], [111.6029, 21.5592], [110.771, 21.3865], [110.1935, 21.0376], [110.5114, 20.5182], [110.123, 20.2639], [109.6626, 20.9168], [109.9307, 21.4806], [109.5441, 21.5378], [109.1486, 21.4255], [109.0305, 21.6266], [108.3247, 21.6937], [107.9727, 21.5081], [107.3513, 21.6089], [106.7294, 22.0004], [106.5363, 22.3954], [106.7804, 22.779], [106.5421, 22.9081], [105.8429, 22.9228], [105.2752, 23.3454], [104.8646, 23.1363], [104.7958, 22.9112], [104.3719, 22.704], [103.3008, 22.7643], [103.0051, 22.4532], [102.5173, 22.7408], [102.1276, 22.379], [101.6712, 22.4625], [101.5243, 22.2538], [101.744, 21.778], [101.705, 21.1503], [101.2242, 21.2236], [101.139, 21.5676], [100.2148, 21.4628], [99.9179, 22.0279], [99.193, 22.126], [99.3377, 22.498], [99.3408, 23.0959], [98.8636, 23.1913], [98.7642, 24.116], [98.2124, 24.1106], [97.686, 23.898], [97.5315, 24.4915], [97.8196, 25.2519], [98.0109, 25.2923], [98.6546, 25.9177], [98.7318, 26.5836], [98.651, 27.5726], [98.299, 27.5499], [98.0988, 28.1421], [97.5377, 28.5101], [97.3224, 28.218], [96.776, 28.3671], [96.4355, 29.0507], [96.0352, 29.4471], [95.4204, 29.0543], [94.7696, 29.1759], [94.6231, 29.3126], [93.9022, 28.803], [93.2067, 28.5909], [92.702, 28.147], [92.6642, 27.949], [91.9775, 27.7301], [91.6317, 27.7599], [91.6056, 27.9516], [90.3529, 28.0804], [89.9809, 28.3112], [89.537, 28.1075], [88.8912, 27.316], [88.8485, 27.8686], [88.6213, 28.0919], [88.1099, 27.8704], [87.1413, 27.8385], [86.5545, 28.0853], [86.4089, 27.9286], [85.6783, 28.2775], [85.1225, 28.3161], [85.1589, 28.5922], [84.7141, 28.5957], [84.2285, 28.9118], [84.1016, 29.2198], [83.5835, 29.1834], [83.1556, 29.6127], [82.8542, 29.6833], [82.1591, 30.1152], [82.0432, 30.3269], [81.4169, 30.3376], [81.0103, 30.1645], [80.6823, 30.4148], [80.1913, 30.5684], [79.9245, 30.8889], [79.9165, 30.8942], [79.3697, 31.0798], [79.3386, 31.1055], [79.1073, 31.4025], [78.8445, 31.3017], [78.7198, 31.8876], [78.3896, 32.5197], [79.2192, 32.5011], [79.2165, 32.5641], [79.1353, 33.1718], [79.1127, 33.2264], [78.8019, 33.4999], [78.7531, 34.0876], [78.9364, 34.3521], [78.2821, 34.654], [77.8107, 35.4845], [77.7992, 35.496], [77.4467, 35.4756], [76.2518, 35.8108], [75.945, 36.0176], [75.8403, 36.6497], [75.3467, 36.9134], [74.5415, 37.0221], [74.8912, 37.2317], [74.7452, 38.5101], [74.2773, 38.6597], [73.8015, 38.6068], [73.6315, 39.4489], [73.9147, 39.6065], [73.9915, 40.0433], [74.4118, 40.1374], [75.0044, 40.4494], [75.5837, 40.6052], [75.8718, 40.3034], [76.4804, 40.4494], [76.8239, 40.9821], [78.1232, 41.0758], [78.3625, 41.3718], [79.2938, 41.7829], [80.2162, 42.0323], [80.2095, 42.1899], [80.1651, 42.6653], [80.7857, 43.1616], [80.3551, 44.0973], [80.4554, 44.7463], [80.059, 45.0064], [81.602, 45.3109], [82.4787, 45.1236], [82.3264, 45.52], [83.0043, 47.0337], [83.1929, 47.1864], [84.786, 46.8308], [85.6565, 47.2547], [85.526, 47.9157], [85.7493, 48.3849], [86.5496, 48.5287], [86.7534, 49.0088], [87.3229, 49.0858], [87.8143, 49.1624], [87.9798, 48.5549], [88.517, 48.3844], [89.0478, 48.0027], [89.561, 48.004], [90.3134, 47.676], [90.4963, 47.2854], [90.87, 46.9547], [91.0338, 46.529], [91.0019, 46.0358], [90.6618, 45.5253], [90.8771, 45.196], [91.5842, 45.0766], [92.7876, 45.0357], [93.6563, 44.9008], [94.7119, 44.3508], [95.3502, 44.278], [95.9126, 43.2064], [96.3854, 42.7204], [97.2057, 42.7896], [99.4678, 42.5681], [99.984, 42.6773], [101.7139, 42.4656], [101.9731, 42.2157], [103.0726, 42.0062], [103.7109, 41.7514], [104.4984, 41.877], [104.4984, 41.6586], [105.1971, 41.738], [106.7702, 42.2889], [108.1712, 42.4474], [109.4434, 42.4558], [110.4004, 42.7736], [111.0072, 43.3414], [111.9331, 43.7116], [111.4022, 44.3672], [111.8981, 45.0641], [113.5871, 44.7459], [114.0305, 44.9425], [114.517, 45.3646], [115.6809, 45.4583], [116.2407, 45.7961], [116.5625, 46.2897], [117.3335, 46.3621], [118.3088, 46.7172], [119.7066, 46.6062], [119.8979, 46.8579], [119.711, 47.15], [118.4983, 47.9841], [117.7685, 47.988], [117.3508, 47.652], [116.7605, 47.87], [115.8984, 47.6871], [115.5575, 47.945], [116.6832, 49.8238], [117.8733, 49.5135], [118.4517, 49.8444], [119.26, 50.0664], [119.1921, 50.3797], [120.067, 51.6007], [120.7497, 52.0965], [120.6561, 52.5666], [120.0945, 52.7872], [120.704, 53.1718], [122.338, 53.485], [123.6079, 53.5465], [124.8122, 53.1339], [125.649, 53.0422], [126.313, 52.3997], [126.9247, 51.1002], [127.5901, 50.2091], [127.5027, 49.8735], [127.9998, 49.5685], [128.5267, 49.5943], [129.5339, 49.3235], [130.1962, 48.8916], [130.8043, 48.3414], [130.712, 48.1279], [131.0027, 47.6915], [132.5617, 47.7683], [133.1441, 48.1057], [133.4686, 48.0972], [134.2933, 48.3733], [134.5636, 48.3219], [134.7523, 47.7155], [134.1677, 47.3022], [133.8614, 46.2475], [133.1858, 45.4947], [132.9359, 45.03], [131.9775, 45.2439], [131.0822, 44.9101], [131.2553, 44.0716], [131.262, 43.4333], [131.0684, 42.9024], [130.5771, 42.8118], [130.5269, 42.5353]]]] }, "properties": { "name": "China", "id": "CN" }, "id": "CN" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-67.0799, -55.1538], [-68.07, -55.2213], [-68.107, -54.9292], [-67.2452, -54.9776], [-67.0799, -55.1538]]], [[[-69.703, -54.919], [-68.9007, -55.0176], [-68.2826, -55.255], [-68.2932, -55.5214], [-69.4119, -55.4441], [-69.9798, -55.1476], [-69.703, -54.919]]], [[[-72.9233, -53.4817], [-72.2055, -53.8075], [-73.3048, -53.9438], [-73.6865, -53.4266], [-72.9233, -53.4817]]], [[[-68.6299, -52.6525], [-68.6532, -54.8538], [-69.4862, -54.8591], [-69.7235, -54.7122], [-70.4972, -54.8094], [-71.4409, -54.6198], [-70.8982, -54.338], [-70.8678, -53.8843], [-70.0903, -53.4182], [-70.3906, -53.0263], [-69.7636, -52.7315], [-68.6299, -52.6525]]], [[[-74.4762, -49.148], [-74.5699, -49.9909], [-75.3001, -49.8475], [-75.1842, -49.0836], [-74.7934, -48.705], [-74.4762, -49.148]]], [[[-74.5672, -48.5918], [-74.923, -48.6264], [-75.2129, -48.1417], [-74.7292, -48.1261], [-74.5672, -48.5918]]], [[[-72.9861, -44.7801], [-73.4451, -44.6411], [-73.2078, -44.3348], [-72.7641, -44.5488], [-72.9861, -44.7801]]], [[[-73.7354, -44.3948], [-73.9833, -44.4946], [-73.7271, -45.1192], [-74.0991, -45.3252], [-74.6178, -44.6478], [-74.5017, -44.4733], [-73.7354, -44.3948]]], [[[-73.7733, -43.3459], [-74.355, -43.2637], [-74.2094, -42.8789], [-74.0368, -41.7953], [-73.5278, -41.8961], [-73.4708, -42.4665], [-73.7893, -42.5859], [-73.4364, -42.9366], [-73.7733, -43.3459]]], [[[-67.1948, -22.8216], [-67.0088, -23.0014], [-67.3562, -24.0339], [-68.2502, -24.3921], [-68.562, -24.8378], [-68.3842, -25.0921], [-68.6002, -25.4859], [-68.4144, -26.1539], [-68.5811, -26.5183], [-68.3461, -27.0279], [-68.8463, -27.1536], [-69.1744, -27.9246], [-69.6569, -28.4138], [-69.8278, -29.1031], [-70.0269, -29.3242], [-69.9277, -29.7694], [-69.9563, -30.358], [-70.1614, -30.4401], [-70.5196, -31.1486], [-70.5853, -31.5694], [-70.1696, -32.4718], [-70.0198, -33.2717], [-69.7978, -33.3987], [-69.8524, -34.2243], [-70.2899, -34.733], [-70.4703, -35.3261], [-70.4048, -36.0616], [-71.0556, -36.5237], [-71.1677, -37.7621], [-71.0281, -38.0413], [-70.9517, -38.7383], [-71.4256, -38.9855], [-71.5394, -39.6025], [-71.7199, -39.6354], [-71.6952, -40.3354], [-71.932, -40.6918], [-71.9114, -41.6506], [-71.7501, -42.0466], [-72.1247, -42.2983], [-72.1464, -42.9899], [-71.7816, -43.167], [-71.905, -43.44], [-71.6801, -43.9296], [-71.82, -44.3832], [-71.2127, -44.4414], [-71.2611, -44.7632], [-71.5962, -44.9794], [-71.3537, -45.2306], [-71.7727, -45.7242], [-71.8757, -46.1606], [-71.6952, -46.5783], [-71.9403, -46.8313], [-71.905, -47.2015], [-72.346, -47.4927], [-72.518, -47.8762], [-72.3549, -48.3658], [-72.6143, -48.7929], [-73.5762, -49.583], [-73.5012, -50.1254], [-73.153, -50.7384], [-72.5098, -50.6075], [-72.2763, -50.9102], [-72.4077, -51.541], [-71.9187, -51.9898], [-69.9603, -52.0084], [-68.4433, -52.3569], [-69.241, -52.2055], [-69.5606, -52.4217], [-70.795, -52.7688], [-70.9959, -53.7791], [-71.2977, -53.8834], [-72.1744, -53.6322], [-71.8528, -53.2855], [-71.4003, -53.107], [-71.3878, -52.7644], [-72.4583, -53.2544], [-73.0527, -53.2433], [-74.0143, -52.6392], [-73.5183, -52.0408], [-73.9733, -51.7847], [-73.8958, -51.3315], [-74.8147, -51.0629], [-75.0948, -50.6812], [-74.3337, -49.9745], [-74.3411, -48.5958], [-74.5772, -48.2744], [-74.6549, -47.7022], [-74.1584, -47.1824], [-74.152, -46.9742], [-75.6567, -46.6102], [-74.9245, -46.1597], [-75.0666, -45.8751], [-74.1579, -45.7673], [-74.0377, -45.4175], [-73.5498, -45.4836], [-73.3625, -44.978], [-72.739, -44.7343], [-72.6638, -44.4365], [-73.2651, -44.1688], [-72.9965, -43.6317], [-72.7852, -42.3014], [-72.4993, -41.9809], [-72.6698, -41.6595], [-73.0149, -41.5441], [-73.5214, -41.7971], [-73.966, -41.1184], [-73.6694, -40.0824], [-73.4104, -39.7889], [-73.2264, -39.2243], [-73.5325, -38.3667], [-73.4648, -38.0405], [-73.6619, -37.6987], [-73.6017, -37.1886], [-73.216, -37.1669], [-73.1181, -36.6884], [-72.8747, -36.3905], [-72.6239, -35.5857], [-72.2237, -35.0961], [-72.0029, -34.1653], [-71.6644, -33.6526], [-71.743, -33.0951], [-71.4522, -32.6596], [-71.5259, -31.806], [-71.6619, -31.1695], [-71.6695, -30.3305], [-71.4005, -30.1432], [-71.3157, -29.6496], [-71.5192, -28.9265], [-71.1863, -28.3778], [-71.0527, -27.7275], [-70.6465, -26.3293], [-70.7138, -25.7842], [-70.4455, -25.1725], [-70.5742, -24.6442], [-70.4878, -23.7818], [-70.5633, -23.0569], [-70.3316, -22.8487], [-70.0875, -21.493], [-70.1971, -20.7256], [-70.1483, -19.8049], [-70.4184, -18.3454], [-69.9263, -18.206], [-69.8522, -17.704], [-69.5108, -17.506], [-69.3133, -17.9432], [-69.094, -18.0507], [-68.9684, -18.9682], [-68.4628, -19.4329], [-68.6983, -19.721], [-68.7451, -20.4588], [-68.4999, -20.6119], [-68.1969, -21.3004], [-67.9883, -22.0572], [-67.8795, -22.8229], [-67.1948, -22.8216]]]] }, "properties": { "name": "Chile", "id": "CL" }, "id": "CL" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[9.5241, 47.5242], [9.5277, 47.2707], [9.4877, 47.0621], [9.5801, 47.0572], [10.4528, 46.865], [9.9392, 46.3616], [9.2512, 46.2866], [8.9537, 45.8298], [8.4584, 46.2458], [7.9932, 46.0158], [7.021, 45.9257], [6.7583, 46.4158], [6.06, 46.4282], [7.0006, 47.3227], [7.6154, 47.5925], [8.6177, 47.7661], [9.5241, 47.5242]]] }, "properties": { "name": "Switzerland", "id": "CH" }, "id": "CH" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[96.8404, -12.182], [96.835, -12.1797], [96.8279, -12.1509], [96.8257, -12.126], [96.8328, -12.126], [96.8395, -12.1602], [96.8404, -12.182]]] }, "properties": { "name": "Cocos (Keeling) Islands", "id": "CC" }, "id": "CC" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-105.289, 72.9199], [-106.9216, 73.4799], [-105.5123, 73.7657], [-104.583, 73.3538], [-105.289, 72.9199]]], [[[-79.5373, 73.6546], [-77.2066, 73.4996], [-76.2895, 73.081], [-76.4005, 72.8207], [-77.836, 72.8968], [-79.5006, 72.7559], [-80.8241, 73.3807], [-80.849, 73.7211], [-79.5373, 73.6546]]], [[[-86.5894, 71.0107], [-84.7896, 71.0933], [-84.6995, 71.6315], [-85.9115, 71.9866], [-85.3411, 72.4216], [-85.6445, 72.7745], [-85.0184, 73.3356], [-82.6596, 73.7296], [-81.406, 73.6346], [-80.2748, 72.7455], [-80.9413, 72.2101], [-78.453, 72.4352], [-77.7532, 72.7248], [-75.2943, 72.4809], [-74.9032, 72.1005], [-73.7136, 71.7198], [-71.6406, 71.5163], [-70.7926, 71.1033], [-70.5609, 70.7382], [-69.1686, 70.7641], [-67.3637, 70.0344], [-66.6852, 69.2858], [-67.7517, 69.0387], [-68.038, 68.5507], [-67.033, 68.3261], [-66.2252, 67.9588], [-64.5275, 67.8127], [-64.0079, 67.3473], [-61.9684, 67.019], [-61.2997, 66.6488], [-61.9915, 66.0354], [-62.6589, 65.6399], [-63.3643, 65.5433], [-63.4018, 65.1185], [-64.6653, 65.1689], [-65.4015, 65.7639], [-65.3054, 66.0085], [-66.4771, 66.2797], [-67.1833, 66.0345], [-68.2568, 65.9386], [-67.3034, 65.4829], [-66.8606, 65.0917], [-65.2748, 64.6316], [-64.6784, 64.0281], [-64.5144, 63.2639], [-65.0688, 63.2635], [-65.2659, 62.7151], [-65.9788, 63.0007], [-67.676, 63.0935], [-66.2813, 62.3027], [-66.2567, 61.8683], [-67.4401, 62.1513], [-69.0823, 62.4052], [-69.5452, 62.7446], [-70.2362, 62.7634], [-71.2538, 63.0424], [-73.4437, 64.4236], [-74.5124, 64.6702], [-75.0675, 64.4567], [-76.7239, 64.242], [-77.7912, 64.367], [-78.0957, 64.9392], [-77.4474, 65.1616], [-77.3267, 65.4532], [-75.8283, 65.227], [-73.5607, 65.5429], [-74.434, 66.139], [-73.0333, 66.7283], [-72.2201, 67.2543], [-73.3283, 68.2668], [-74.648, 68.7076], [-74.9172, 68.9828], [-76.4034, 68.6923], [-75.7873, 69.3186], [-77.1289, 69.6526], [-78.9797, 70.5813], [-79.3475, 70.3722], [-78.7778, 70.0477], [-79.3033, 69.8948], [-81.0982, 70.0912], [-82.1387, 69.8413], [-86.3219, 70.1454], [-86.6244, 70.4013], [-87.9006, 70.2519], [-88.8483, 70.5229], [-89.3655, 71.0671], [-88.0387, 70.9512], [-87.8724, 71.2085], [-89.0794, 71.2879], [-89.8458, 71.4924], [-90.0251, 71.9489], [-89.2631, 73.0691], [-87.7197, 73.7229], [-85.1105, 73.8081], [-86.6293, 72.8709], [-86.0361, 71.7709], [-85.0233, 71.3532], [-86.5894, 71.0107]]], [[[-100.002, 73.946], [-99.1579, 73.7316], [-97.5819, 73.8876], [-97.0017, 73.6665], [-97.7959, 73.2852], [-97.0519, 72.6367], [-96.6133, 71.8339], [-98.663, 71.3021], [-99.167, 71.3672], [-100.5944, 72.1524], [-101.7239, 72.3149], [-102.7137, 72.783], [-100.4847, 72.773], [-100.2828, 73.1203], [-101.4509, 73.4311], [-100.9151, 73.8053], [-100.002, 73.946]]], [[[-93.171, 74.161], [-92.2228, 73.9724], [-90.3547, 73.8687], [-92.118, 72.7539], [-93.3407, 72.8018], [-94.0377, 72.0288], [-95.1929, 72.0275], [-95.5475, 72.7816], [-95.633, 73.6954], [-95.0397, 74.0239], [-93.171, 74.161]]], [[[-119.7363, 74.1126], [-117.5149, 74.2318], [-115.5107, 73.6188], [-115.4468, 73.4388], [-118.9615, 72.6842], [-120.18, 72.2126], [-120.6192, 71.5057], [-123.2107, 71.1235], [-124.0077, 71.6775], [-125.7626, 72.1375], [-124.9871, 72.5881], [-124.8364, 73.0762], [-123.7973, 73.7682], [-124.6962, 74.3481], [-121.3153, 74.5299], [-119.7363, 74.1126]]], [[[-93.5427, 75.028], [-93.5472, 74.691], [-94.6973, 74.6422], [-96.5658, 75.0988], [-95.6707, 75.5287], [-94.4272, 75.5935], [-93.5427, 75.028]]], [[[-102.2275, 76.0149], [-103.3148, 75.7641], [-104.3506, 76.1823], [-102.5841, 76.2817], [-102.2275, 76.0149]]], [[[-97.7009, 76.4664], [-97.4097, 75.5522], [-97.7994, 75.1167], [-100.2344, 75.0078], [-100.712, 75.4064], [-102.5413, 75.5136], [-101.4313, 75.9919], [-102.1378, 76.2848], [-100.388, 76.6135], [-97.7009, 76.4664]]], [[[-108.2924, 76.0571], [-105.481, 75.7457], [-105.8625, 75.1915], [-107.1533, 74.9272], [-108.8312, 75.0648], [-110.9408, 74.6387], [-112.5193, 74.4169], [-113.5141, 74.43], [-114.4518, 75.0879], [-115.7289, 74.9682], [-117.6001, 75.2716], [-116.6098, 76.0738], [-115.5806, 76.4375], [-114.1939, 76.4515], [-112.6975, 76.2016], [-111.0527, 75.5484], [-109.0865, 75.5065], [-108.9449, 75.6989], [-110.2701, 76.4169], [-108.467, 76.7376], [-108.2924, 76.0571]]], [[[-94.2949, 76.9125], [-92.7162, 76.6029], [-91.3051, 76.6808], [-90.2515, 76.0536], [-88.2014, 75.512], [-86.0687, 75.5023], [-83.932, 75.819], [-82.1538, 75.831], [-79.6602, 75.4494], [-79.508, 74.8801], [-80.2777, 74.5816], [-81.8089, 74.4766], [-88.4231, 74.4942], [-89.8444, 74.5485], [-91.9616, 74.7931], [-92.4281, 75.3828], [-92.1851, 75.8465], [-93.0917, 76.3541], [-95.2739, 76.2644], [-96.6397, 76.703], [-95.6383, 77.0639], [-94.2949, 76.9125]]], [[[-115.5513, 77.3633], [-116.2205, 76.6111], [-119.3679, 76.2218], [-119.9128, 75.8589], [-121.9083, 76.0347], [-121.6138, 76.4415], [-119.0903, 77.3051], [-115.5513, 77.3633]]], [[[-95.4843, 77.7921], [-93.301, 77.7399], [-93.5196, 77.4745], [-95.987, 77.484], [-95.4843, 77.7921]]], [[[-110.4581, 78.1032], [-109.7718, 77.9574], [-110.1984, 77.5246], [-111.952, 77.3442], [-113.1643, 77.5302], [-113.1872, 77.9124], [-110.4581, 78.1032]]], [[[-109.816, 78.6503], [-109.3905, 78.3367], [-113.1499, 78.4084], [-110.4077, 78.7566], [-109.816, 78.6503]]], [[[-96.2045, 78.5314], [-94.8873, 78.3452], [-95.087, 77.9927], [-96.9895, 77.8061], [-98.2548, 78.4293], [-96.2045, 78.5314]]], [[[-103.426, 79.3157], [-99.6094, 78.5831], [-99.1664, 77.8569], [-100.5859, 77.8917], [-101.0742, 78.1938], [-102.7313, 78.3711], [-103.5183, 78.7691], [-105.5358, 79.0325], [-105.3877, 79.3235], [-103.426, 79.3157]]], [[[-91.8857, 81.1328], [-90.643, 80.5937], [-87.6749, 80.3722], [-87.1442, 79.6626], [-85.5014, 79.5303], [-85.2899, 79.2083], [-87.0164, 78.8987], [-88.7911, 78.1925], [-90.6144, 78.1498], [-92.6782, 78.3891], [-95.1032, 79.29], [-95.297, 79.6531], [-96.7734, 80.1358], [-95.6146, 80.3962], [-96.1328, 80.6913], [-95.2697, 81.0007], [-91.8857, 81.1328]]], [[[-69.4889, 83.0169], [-63.641, 82.8127], [-61.4771, 82.4674], [-62.1766, 82.0434], [-64.5741, 81.7336], [-65.4839, 81.2848], [-70.1434, 80.3977], [-71.3878, 79.7618], [-75.2595, 79.4209], [-76.2558, 79.0068], [-74.4332, 78.724], [-75.866, 78.0098], [-78.0127, 77.9461], [-78.0762, 77.5191], [-79.3408, 77.1584], [-78.2888, 76.978], [-78.2844, 76.5711], [-80.6903, 76.1765], [-81.1708, 76.5128], [-83.8856, 76.4531], [-85.1412, 76.3046], [-89.5701, 76.4919], [-89.4997, 76.8268], [-88.3982, 77.104], [-86.8737, 77.2004], [-88.0946, 77.7193], [-87.0179, 77.8922], [-87.5517, 78.1767], [-86.808, 78.7744], [-84.3162, 78.9753], [-85.0899, 79.6122], [-86.4207, 79.8453], [-86.3073, 80.3194], [-83.7236, 80.229], [-80.0511, 80.5287], [-83.4013, 80.714], [-85.3074, 80.526], [-88.9214, 80.8057], [-89.9474, 81.1725], [-88.9784, 81.5414], [-90.4903, 81.8772], [-86.5807, 82.1873], [-82.1225, 82.6019], [-79.8864, 82.9386], [-69.97, 83.1161], [-69.4889, 83.0169]]], [[[-61.1053, 45.9448], [-60.8061, 45.738], [-60.5049, 46.204], [-59.8651, 46.1597], [-60.3862, 45.6545], [-61.2837, 45.5737], [-61.4953, 45.9413], [-60.8703, 46.7966], [-60.3318, 46.7678], [-60.5768, 46.1721], [-61.1053, 45.9448]]], [[[-63.8113, 46.4686], [-63.1294, 46.422], [-62.1635, 46.4872], [-62.8784, 46.0012], [-63.641, 46.2307], [-63.8113, 46.4686]]], [[[-74.7088, 45.0038], [-73.558, 45.425], [-73.1596, 46.0101], [-71.901, 46.632], [-71.2611, 46.7562], [-70.5196, 47.0323], [-68.987, 48.2748], [-67.5608, 48.8559], [-66.1781, 49.2132], [-64.8364, 49.1917], [-64.2618, 48.9218], [-64.2538, 48.5505], [-65.2595, 48.0213], [-65.9266, 48.1887], [-65.6665, 47.696], [-65.2282, 47.8114], [-64.7033, 47.7248], [-64.9121, 47.3688], [-65.3189, 47.1012], [-64.9057, 46.8881], [-64.5415, 46.2404], [-63.2928, 45.7522], [-62.4831, 45.6217], [-61.9556, 45.868], [-61.4924, 45.6869], [-61.2837, 45.2355], [-63.7611, 44.4862], [-64.286, 44.5501], [-64.8624, 43.8678], [-65.7382, 43.5607], [-66.1257, 43.8137], [-66.0995, 44.3677], [-65.6567, 44.7605], [-64.4489, 45.2559], [-64.8979, 45.6261], [-65.8845, 45.223], [-66.8726, 45.0672], [-67.1249, 45.1693], [-67.4725, 45.2759], [-67.4328, 45.603], [-67.7845, 45.7016], [-67.8067, 47.083], [-68.311, 47.3546], [-68.8288, 47.2032], [-69.243, 47.4629], [-70.0078, 46.7088], [-70.2963, 45.9062], [-70.898, 45.2626], [-71.3272, 45.2901], [-71.5175, 45.0078], [-74.7088, 45.0038]]], [[[-61.8011, 49.094], [-62.2195, 49.0791], [-63.5658, 49.3994], [-64.1315, 49.9416], [-62.8584, 49.7055], [-61.8171, 49.2835], [-61.8011, 49.094]]], [[[-127.1973, 50.6403], [-125.4821, 50.3167], [-124.6429, 49.4287], [-123.9959, 49.2241], [-123.497, 48.582], [-123.5946, 48.3334], [-124.6893, 48.5975], [-125.8285, 49.0918], [-125.8354, 49.2767], [-126.5485, 49.4189], [-126.683, 49.8764], [-127.1143, 49.8797], [-128.2675, 50.6092], [-127.9182, 50.8605], [-127.1973, 50.6403]]], [[[-55.4588, 51.5365], [-55.8714, 50.9073], [-56.6939, 50.0597], [-55.7648, 49.9605], [-55.892, 49.5803], [-54.9827, 49.268], [-54.579, 49.4908], [-53.9577, 49.4418], [-53.5733, 49.1413], [-53.853, 48.8112], [-53.5312, 48.2317], [-52.955, 48.0293], [-53.1756, 47.6529], [-52.6536, 47.5495], [-53.0697, 46.6812], [-53.6164, 46.6803], [-54.1737, 46.8805], [-53.8692, 47.387], [-54.8566, 47.3848], [-56.2211, 47.6716], [-56.9525, 47.5743], [-58.3332, 47.6769], [-59.1169, 47.5708], [-59.3624, 47.8655], [-58.7105, 48.325], [-58.7165, 48.598], [-58.0158, 49.5426], [-57.4656, 50.4636], [-56.7503, 51.2748], [-56.0256, 51.5685], [-55.4588, 51.5365]]], [[[-80.7318, 52.7472], [-81.8391, 52.9579], [-81.8473, 53.1862], [-81.1357, 53.2058], [-80.7318, 52.7472]]], [[[-132.6556, 54.1275], [-131.7026, 53.9864], [-132.0113, 53.2653], [-132.7475, 53.3105], [-133.0522, 53.7782], [-132.6556, 54.1275]]], [[[-78.9356, 56.2662], [-79.1755, 55.8851], [-80.0009, 55.9322], [-79.5963, 56.2444], [-78.9356, 56.2662]]], [[[-79.5452, 62.4117], [-79.324, 62.0261], [-79.7144, 61.6126], [-80.2652, 61.8182], [-80.0215, 62.3431], [-79.5452, 62.4117]]], [[[-82.0004, 62.9543], [-82.1138, 62.6522], [-83.0158, 62.2099], [-83.699, 62.1602], [-83.8994, 62.4765], [-83.3765, 62.905], [-82.0004, 62.9543]]], [[[-84.9197, 65.261], [-83.4071, 65.1039], [-82.0501, 64.6442], [-81.7161, 64.0219], [-80.829, 64.09], [-80.3021, 63.7622], [-81.0463, 63.4615], [-82.3782, 63.7067], [-82.4672, 63.9269], [-83.4943, 64.0993], [-83.7283, 63.8135], [-84.6329, 63.3092], [-85.4954, 63.1392], [-85.7142, 63.6579], [-87.1888, 63.6723], [-86.252, 64.1368], [-86.3743, 64.5659], [-85.9617, 65.7042], [-85.241, 65.7954], [-84.9197, 65.261]]], [[[-75.6758, 68.3225], [-75.1538, 68.234], [-75.1274, 67.5373], [-75.7801, 67.2836], [-77.0048, 67.2669], [-77.3058, 67.7062], [-76.7403, 68.2313], [-75.6758, 68.3225]]], [[[-97.4394, 69.6427], [-96.2999, 69.3444], [-95.6856, 68.7358], [-96.4016, 68.4708], [-97.472, 68.5438], [-99.254, 68.8632], [-99.5641, 69.0341], [-97.4394, 69.6427]]], [[[-74.7088, 45.0038], [-75.1793, 44.8994], [-76.4646, 44.0574], [-76.82, 43.6286], [-78.7205, 43.625], [-79.1719, 43.4666], [-79.0368, 42.8025], [-80.2475, 42.3662], [-81.2778, 42.209], [-82.439, 41.675], [-83.1419, 41.976], [-83.0731, 42.3005], [-82.5453, 42.6245], [-82.1378, 43.5709], [-82.5511, 45.3473], [-83.5926, 45.817], [-83.9777, 46.0851], [-84.1921, 46.5494], [-84.5617, 46.4575], [-84.8759, 46.9001], [-88.3782, 48.3032], [-89.4556, 47.996], [-90.8403, 48.2007], [-91.5183, 48.0582], [-92.9963, 48.6117], [-93.3778, 48.6166], [-93.7078, 48.5256], [-94.6209, 48.7427], [-95.162, 48.9917], [-97.5297, 48.9932], [-99.2354, 48.993], [-102.2201, 48.993], [-103.9256, 48.993], [-106.4839, 48.993], [-109.895, 48.993], [-112.4532, 48.993], [-115.8643, 48.993], [-118.4226, 48.993], [-120.1281, 48.993], [-122.7888, 48.993], [-123.0491, 48.993], [-123.3356, 49.4591], [-123.859, 49.4829], [-124.4833, 49.8082], [-125.21, 50.4763], [-126.4045, 50.5298], [-126.6318, 50.9151], [-127.0577, 50.8676], [-127.7082, 51.1512], [-127.6449, 51.4784], [-128.3576, 52.1589], [-128.1088, 52.858], [-128.6524, 53.2437], [-129.2842, 53.3931], [-129.5637, 53.2515], [-130.3351, 53.724], [-130.0433, 54.1335], [-130.4304, 54.4209], [-129.6666, 55.4366], [-130.0251, 55.8882], [-130.4772, 56.2307], [-131.5752, 56.5989], [-131.8661, 56.7929], [-133.8208, 58.7049], [-134.9439, 59.2882], [-135.4759, 59.7934], [-136.3219, 59.6049], [-136.5787, 59.1522], [-137.4385, 58.9031], [-137.5932, 59.2263], [-139.1852, 60.0837], [-141.0021, 60.3003], [-141.0021, 63.2222], [-141.0021, 65.56], [-141.0021, 68.4819], [-141.0021, 69.6509], [-139.1815, 69.5155], [-138.1283, 69.1519], [-136.7174, 68.8891], [-135.8763, 68.9169], [-135.6914, 69.3111], [-135.1409, 69.4678], [-133.1632, 69.4338], [-130.4985, 70.1431], [-128.9715, 69.7123], [-127.765, 70.2219], [-127.1385, 70.2392], [-126.6122, 69.7303], [-125.9073, 69.4185], [-124.7679, 69.99], [-123.6091, 69.3774], [-123.0258, 69.81], [-120.9624, 69.6604], [-120.2925, 69.4205], [-118.8687, 69.2571], [-118.0953, 69.043], [-116.0651, 68.8554], [-115.6312, 68.9726], [-114.4138, 68.6597], [-115.1332, 67.8191], [-112.4352, 67.6849], [-110.9901, 67.7907], [-110.0426, 67.9772], [-109.6305, 67.7328], [-108.5929, 67.591], [-107.6263, 67.0031], [-108.2611, 68.1498], [-108.3134, 68.6108], [-106.1646, 68.9198], [-105.4286, 68.4584], [-104.1935, 68.0311], [-103.4741, 68.115], [-102.692, 67.8116], [-101.555, 67.6931], [-100.4561, 67.8396], [-99.1468, 67.7237], [-98.4171, 67.8265], [-98.2184, 68.3174], [-97.2659, 68.453], [-96.0361, 68.1578], [-96.3714, 67.5539], [-95.7826, 67.1937], [-95.2588, 67.2625], [-95.6505, 67.7375], [-93.6517, 68.5431], [-93.6814, 68.8874], [-94.2707, 69.4551], [-96.0503, 69.8311], [-96.4924, 70.1249], [-96.2265, 70.5418], [-96.549, 70.8088], [-96.4056, 71.2737], [-95.2013, 71.9036], [-94.3084, 71.7649], [-92.9488, 71.2622], [-92.9814, 70.8523], [-91.5641, 70.1782], [-92.751, 69.7139], [-90.8221, 69.2904], [-90.4683, 68.8638], [-89.0567, 69.266], [-88.0413, 68.8117], [-87.8103, 68.4042], [-88.347, 68.2883], [-88.1958, 67.7659], [-87.2663, 67.1839], [-86.5363, 67.5162], [-85.9526, 68.0724], [-85.7338, 68.6301], [-84.8622, 69.074], [-85.3869, 69.2318], [-85.5074, 69.8453], [-82.6183, 69.691], [-82.6421, 69.4584], [-81.3286, 69.12], [-81.2815, 68.6572], [-82.5526, 68.4464], [-81.9764, 67.862], [-81.2702, 67.4598], [-81.4675, 67.0699], [-82.6416, 66.5876], [-84.4784, 66.1794], [-85.6039, 66.5683], [-86.6331, 66.5314], [-86.0429, 66.0225], [-87.2914, 65.3549], [-87.9701, 65.3489], [-89.7494, 65.9359], [-89.9241, 65.7804], [-88.974, 65.3482], [-87.0275, 65.1982], [-87.2805, 64.8262], [-88.1057, 64.1832], [-88.653, 64.0094], [-90.1418, 63.9819], [-90.0135, 63.8044], [-91.3301, 63.5067], [-90.7466, 63.3516], [-90.8711, 62.9459], [-91.4491, 62.8041], [-92.3613, 62.8194], [-93.4206, 61.7059], [-93.9127, 61.4815], [-94.6467, 60.4164], [-94.7858, 59.9534], [-94.7135, 58.9034], [-94.2871, 58.716], [-93.2782, 58.7564], [-92.249, 57.009], [-91.1113, 57.2412], [-90.5922, 57.2246], [-89.7909, 56.9813], [-88.9484, 56.8512], [-88.0751, 56.4673], [-87.5608, 56.0565], [-85.8305, 55.6569], [-85.061, 55.2856], [-83.9107, 55.3147], [-82.5775, 55.1487], [-82.2195, 54.8136], [-82.4181, 54.3559], [-82.1413, 53.8177], [-82.2605, 52.9612], [-81.5994, 52.4325], [-81.6613, 52.2938], [-80.6579, 51.7582], [-80.368, 51.3299], [-79.8362, 51.1734], [-79.4975, 51.5698], [-78.9777, 51.7338], [-78.4917, 52.2521], [-78.7238, 52.6278], [-79.2418, 54.0989], [-79.6655, 54.6975], [-77.8911, 55.2364], [-77.3249, 55.5555], [-76.6504, 56.1073], [-76.5729, 57.1813], [-77.1569, 58.0189], [-78.5152, 58.6823], [-77.7606, 59.3801], [-77.3118, 60.0424], [-77.8715, 60.7859], [-77.7362, 61.4373], [-78.1372, 62.1074], [-78.0682, 62.3555], [-77.3724, 62.5726], [-74.69, 62.1835], [-73.6299, 62.4543], [-72.0814, 61.7283], [-71.4227, 61.159], [-70.2792, 61.0687], [-69.6405, 60.6898], [-69.7559, 60.3886], [-69.682, 59.3417], [-69.1735, 58.8967], [-68.6981, 58.9045], [-67.5697, 58.2135], [-66.608, 58.5489], [-65.6061, 59.1107], [-64.9312, 60.2519], [-64.4995, 60.2683], [-63.1854, 58.8579], [-62.5939, 58.4741], [-62.3056, 57.9723], [-61.899, 57.8613], [-61.851, 57.3812], [-61.3337, 57.0106], [-61.5146, 56.3903], [-59.9303, 55.2594], [-58.997, 55.1494], [-58.7802, 54.8384], [-58.1951, 54.8659], [-57.4046, 54.5705], [-58.1514, 54.3504], [-57.4161, 54.1628], [-57.1489, 53.8476], [-56.4651, 53.7651], [-55.7979, 53.212], [-55.8336, 52.3104], [-55.6951, 52.1378], [-56.976, 51.4577], [-58.5103, 51.295], [-59.1655, 50.7799], [-60.0801, 50.2546], [-61.2897, 50.202], [-62.7155, 50.3016], [-64.868, 50.2754], [-65.2686, 50.32], [-66.4955, 50.2119], [-66.9411, 49.9938], [-67.3719, 49.3486], [-68.2819, 49.1972], [-68.9291, 48.829], [-69.775, 48.0981], [-69.9055, 47.8322], [-70.7058, 47.1398], [-71.2678, 46.7958], [-71.8797, 46.687], [-72.981, 46.2098], [-73.974, 45.3451], [-74.7088, 45.0038]]], [[[-114.5215, 72.593], [-113.5001, 72.6944], [-112.7537, 72.986], [-111.2698, 72.7137], [-108.7549, 72.551], [-107.72, 73.329], [-106.4822, 73.1962], [-105.415, 72.7883], [-104.3495, 71.434], [-104.5697, 71.1039], [-103.9535, 70.7626], [-100.9732, 70.0295], [-100.9351, 69.7152], [-102.2343, 69.8422], [-102.9197, 69.5648], [-101.9756, 69.4069], [-101.857, 69.0239], [-103.4681, 68.8086], [-105.0195, 69.0814], [-106.1408, 69.1621], [-106.6591, 69.4396], [-107.4399, 69.0021], [-108.946, 68.7598], [-111.3108, 68.542], [-113.1277, 68.4941], [-113.6941, 69.195], [-116.5135, 69.4247], [-117.1354, 70.1001], [-114.5923, 70.3125], [-112.6378, 70.2253], [-112.1143, 70.4468], [-113.7573, 70.6907], [-115.991, 70.5864], [-117.587, 70.6296], [-118.2642, 70.8882], [-117.8141, 71.1585], [-118.8683, 71.6868], [-118.9447, 71.9855], [-118.2136, 72.2629], [-118.3745, 72.5339], [-117.5517, 72.8311], [-114.6382, 73.3727], [-114.1091, 72.8611], [-114.5215, 72.593]]]] }, "properties": { "name": "Canada", "id": "CA" }, "id": "CA" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[22.86, 10.9195], [23.2559, 10.4579], [23.6461, 9.8231], [23.5374, 8.8159], [24.1473, 8.6654], [24.2915, 8.2912], [24.8535, 8.1376], [25.2472, 7.7244], [25.3809, 7.3333], [25.8891, 7.0647], [26.3619, 6.6355], [26.5141, 6.0691], [27.0836, 5.777], [27.4032, 5.1094], [27.1151, 5.1977], [26.8222, 5.0623], [25.5251, 5.3123], [25.2495, 5.0246], [24.7656, 4.9301], [24.32, 4.994], [23.4171, 4.6633], [22.7557, 4.6469], [22.4223, 4.1351], [21.5376, 4.2447], [20.558, 4.4627], [20.2264, 4.8297], [19.8065, 5.0894], [19.5011, 5.1276], [19.0687, 4.8915], [18.5676, 4.2576], [18.6102, 3.4785], [18.161, 3.4998], [17.4379, 3.6845], [16.6735, 3.5354], [16.4684, 2.8318], [16.1834, 2.2703], [16.0636, 2.9086], [15.775, 3.127], [15.1287, 3.827], [15.0226, 4.3583], [14.7088, 4.6655], [14.6169, 5.8649], [14.7394, 6.2799], [15.2459, 7.2636], [15.4803, 7.5237], [15.8452, 7.4753], [16.3787, 7.6835], [16.7849, 7.5508], [17.6496, 7.9836], [18.4553, 8.032], [19.1087, 8.6561], [19.1455, 9.0161], [20.3422, 9.1271], [20.7733, 9.4058], [21.2638, 9.9745], [21.7258, 10.3664], [21.7063, 10.5746], [22.4938, 10.9963], [22.86, 10.9195]]] }, "properties": { "name": "Central African Republic", "id": "CF" }, "id": "CF" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[5.6938, 50.7748], [5.7972, 50.7546], [5.9939, 50.7504], [6.3645, 50.3163], [6.1164, 50.1209], [5.744, 49.9196], [5.7897, 49.5383], [4.8677, 49.788], [4.1744, 50.2466], [2.8396, 50.7118], [2.5249, 51.0971], [3.35, 51.3776], [3.9023, 51.2076], [4.2263, 51.3865], [4.5033, 51.4746], [5.827, 51.1257], [5.6938, 50.7748]]] }, "properties": { "name": "Belgium", "id": "BE" }, "id": "BE" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[25.2588, -17.7936], [25.2242, -17.9153], [25.7613, -18.6495], [26.1683, -19.5381], [26.6784, -19.8928], [27.2217, -20.1458], [27.2807, -20.4788], [27.6997, -20.5307], [27.6696, -21.0642], [28.0455, -21.5729], [29.0372, -21.8113], [29.3648, -22.194], [28.8397, -22.4807], [28.2102, -22.6938], [27.8906, -23.0737], [27.1462, -23.5243], [26.835, -24.2407], [26.3974, -24.6136], [25.9122, -24.7477], [25.5837, -25.6062], [24.7483, -25.8174], [23.8938, -25.6008], [23.2662, -25.2666], [22.8786, -25.4579], [22.6403, -26.0714], [22.0907, -26.5801], [21.6464, -26.8544], [20.74, -26.849], [20.6268, -26.4438], [20.7932, -25.9155], [20.3453, -25.03], [19.9805, -24.777], [19.9774, -22], [20.9708, -22], [20.9779, -20.9684], [20.9739, -18.3188], [23.2986, -18.0276], [23.5804, -18.4528], [24.359, -17.9783], [25.2588, -17.7936]]] }, "properties": { "name": "Botswana", "id": "BW" }, "id": "BW" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[91.6317, 27.7599], [91.5949, 27.5575], [92.0836, 27.2907], [91.9984, 26.8548], [90.7395, 26.7718], [90.3458, 26.8903], [89.7638, 26.7016], [88.8579, 26.9613], [88.8912, 27.316], [89.537, 28.1075], [89.9809, 28.3112], [90.3529, 28.0804], [91.6056, 27.9516], [91.6317, 27.7599]]] }, "properties": { "name": "Bhutan", "id": "BT" }, "id": "BT" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[115.0266, 4.8999], [114.7465, 4.7179], [114.8402, 4.3934], [114.6085, 4.0241], [114.0638, 4.5927], [114.2995, 4.6074], [115.0266, 4.8999], [115.1398, 4.8999], [115.0266, 4.8999]]] }, "properties": { "name": "Brunei", "id": "BN" }, "id": "BN" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-59.4933, 13.0822], [-59.6114, 13.1021], [-59.5916, 13.3179], [-59.4276, 13.1527], [-59.4933, 13.0822]]] }, "properties": { "name": "Barbados", "id": "BB" }, "id": "BB" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-51.8326, -1.4336], [-51.5461, -0.6497], [-51.1608, -0.6665], [-51.2764, -1.0216], [-51.8326, -1.4336]]], [[[-49.6287, -0.2293], [-49.1169, -0.1636], [-48.3798, -0.3527], [-48.5396, -0.801], [-48.9289, -1.4824], [-49.5878, -1.7123], [-50.5076, -1.7878], [-50.7597, -1.2405], [-50.7713, -0.6452], [-50.6454, -0.2728], [-50.2481, -0.1165], [-49.6287, -0.2293]]], [[[-56.4828, 1.9422], [-56.0198, 1.8424], [-56.1295, 2.2996], [-55.0058, 2.593], [-54.6163, 2.3266], [-54.13, 2.1211], [-53.7678, 2.3551], [-52.9648, 2.1837], [-52.7006, 2.3635], [-51.9906, 3.7018], [-51.6526, 4.0614], [-51.2198, 4.0938], [-51.0525, 3.2819], [-50.659, 2.1309], [-50.459, 1.8295], [-49.9572, 1.6599], [-49.8988, 1.1628], [-50.2945, 0.8356], [-50.8163, 0.1724], [-51.2829, -0.085], [-51.7026, -0.7624], [-51.9476, -1.5867], [-51.2973, -1.2236], [-50.9177, -1.1153], [-50.69, -1.7616], [-50.4033, -2.0155], [-49.9991, -1.8317], [-49.7195, -1.9263], [-49.3137, -1.7319], [-48.9913, -1.83], [-48.115, -0.7375], [-47.3981, -0.6266], [-46.8113, -0.7797], [-46.6173, -0.9706], [-46.2192, -1.0314], [-45.6448, -1.3479], [-45.0764, -1.4664], [-44.6513, -1.7456], [-44.3082, -2.5353], [-43.9329, -2.5832], [-42.9368, -2.4652], [-42.2496, -2.7919], [-41.8761, -2.7466], [-41.3181, -2.9361], [-40.4745, -2.7954], [-39.9647, -2.8616], [-38.4757, -3.7174], [-38.0489, -4.2163], [-37.1746, -4.9123], [-36.5907, -5.0975], [-35.9799, -5.0544], [-35.5493, -5.1294], [-35.2355, -5.5666], [-34.9882, -6.3936], [-34.8056, -7.2885], [-34.8347, -7.9717], [-35.1578, -8.9305], [-35.3409, -9.2305], [-36.3983, -10.4841], [-36.9378, -10.8206], [-37.4119, -11.497], [-37.6887, -12.0998], [-38.2397, -12.8443], [-38.788, -12.7826], [-38.8352, -13.147], [-39.0894, -13.5882], [-38.9422, -14.0308], [-39.0596, -14.6549], [-38.8805, -15.8645], [-39.2152, -17.3156], [-39.1539, -17.704], [-39.4869, -17.9903], [-39.7399, -18.6397], [-39.6999, -19.278], [-40.0013, -19.7419], [-40.396, -20.5693], [-40.7892, -20.9062], [-41.0471, -21.5059], [-41.1226, -22.0843], [-41.7054, -22.3098], [-41.9804, -22.5806], [-42.0424, -22.9472], [-42.9583, -22.9672], [-43.5327, -23.0462], [-43.8661, -22.9104], [-44.6373, -23.0555], [-45.4233, -23.6854], [-45.9721, -23.7955], [-46.8672, -24.2363], [-47.8766, -24.9976], [-48.5451, -25.8161], [-48.6776, -26.703], [-48.5542, -27.1962], [-48.6208, -28.0755], [-48.7997, -28.5753], [-49.2714, -28.871], [-49.7461, -29.3633], [-50.2994, -30.4259], [-51.1572, -30.3642], [-51.4637, -31.0527], [-51.9724, -31.3839], [-52.1935, -31.8854], [-52.1274, -32.1678], [-52.6523, -33.1377], [-53.3707, -33.7422], [-53.5314, -33.171], [-53.1254, -32.7368], [-53.6017, -32.403], [-53.7618, -32.0568], [-54.2205, -31.8553], [-54.5876, -31.4851], [-55.2546, -31.2258], [-55.5573, -30.876], [-55.8736, -31.0696], [-56.1761, -30.6283], [-56.8328, -30.1072], [-57.2144, -30.2834], [-57.609, -30.188], [-56.9387, -29.595], [-55.7255, -28.2043], [-55.1014, -27.8669], [-54.8291, -27.5508], [-54.3271, -27.4234], [-53.8381, -27.1212], [-53.6712, -26.2249], [-53.8912, -25.6687], [-54.1546, -25.5231], [-54.6158, -25.576], [-54.4731, -25.2204], [-54.2418, -24.0472], [-54.6254, -23.8124], [-55.3662, -23.9913], [-55.6541, -22.8105], [-55.8492, -22.3076], [-56.5239, -22.1025], [-56.9374, -22.2712], [-57.9856, -22.0461], [-57.8303, -20.9981], [-58.1598, -20.1645], [-58.1314, -19.7446], [-57.8005, -19.0809], [-57.5741, -18.2793], [-57.8325, -17.5122], [-58.396, -17.2343], [-58.538, -16.3284], [-60.1756, -16.2693], [-60.299, -14.6185], [-60.5065, -13.7897], [-61.0769, -13.4897], [-61.79, -13.5256], [-62.176, -13.1337], [-62.7654, -12.9974], [-63.0675, -12.6694], [-63.5858, -12.5189], [-64.4205, -12.4399], [-64.5135, -12.2508], [-64.9925, -11.9751], [-65.39, -11.2462], [-65.334, -10.8929], [-65.4368, -10.449], [-65.3132, -10.2533], [-65.3962, -9.7126], [-66.2635, -9.8262], [-66.7301, -9.9754], [-67.5824, -10.5058], [-68.0717, -10.7029], [-68.398, -11.0185], [-69.5785, -10.9519], [-70.2202, -11.0478], [-70.6423, -11.0101], [-70.637, -9.4782], [-71.238, -9.9661], [-72.1815, -10.0038], [-72.379, -9.5102], [-73.2093, -9.4116], [-72.9741, -8.993], [-73.5491, -8.3459], [-74.0021, -7.5562], [-73.7496, -7.3356], [-73.758, -6.9059], [-73.1374, -6.466], [-73.2355, -6.0984], [-72.9799, -5.635], [-72.8871, -5.1228], [-72.6987, -5.0673], [-71.8448, -4.5044], [-70.9737, -4.3504], [-70.7995, -4.1733], [-69.9658, -4.2359], [-69.6691, -2.6676], [-69.4003, -1.1948], [-69.6675, -0.4823], [-70.0706, -0.1387], [-70.0539, 0.5786], [-69.1633, 0.864], [-69.3615, 1.0642], [-69.8522, 1.0593], [-69.8486, 1.7087], [-68.1765, 1.7198], [-67.8152, 1.79], [-67.352, 2.0861], [-66.8761, 1.2231], [-66.4293, 0.8218], [-66.06, 0.7854], [-65.6814, 0.9834], [-65.3609, 0.8685], [-65.1037, 1.1082], [-64.1149, 1.6191], [-64.0354, 1.9045], [-63.394, 2.2223], [-63.3893, 2.4119], [-63.9242, 2.4523], [-64.2188, 3.2047], [-64.2212, 3.5873], [-64.5679, 3.8998], [-64.2556, 4.1404], [-64.0214, 3.9291], [-63.2948, 3.9224], [-62.9685, 3.594], [-62.7122, 4.0179], [-62.1531, 4.0982], [-61.0028, 4.5354], [-60.6046, 4.9944], [-60.7422, 5.2022], [-60.142, 5.239], [-59.9907, 5.0828], [-60.1112, 4.511], [-59.8333, 4.476], [-59.5512, 3.9335], [-59.8544, 3.5873], [-59.9942, 2.6902], [-59.7552, 2.2743], [-59.7563, 1.9005], [-59.2312, 1.3758], [-58.8625, 1.2036], [-58.5119, 1.2848], [-58.3407, 1.5876], [-57.5943, 1.7043], [-57.1189, 2.0141], [-56.8368, 1.8814], [-56.4828, 1.9422]]]] }, "properties": { "name": "Brazil", "id": "BR" }, "id": "BR" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-58.1598, -20.1645], [-58.1803, -19.8178], [-59.0905, -19.286], [-60.0073, -19.2976], [-61.7569, -19.6451], [-61.917, -20.0553], [-62.2763, -20.5627], [-62.2767, -21.066], [-62.6509, -22.2339], [-62.8434, -21.9973], [-63.8186, -22.0053], [-63.9762, -22.0728], [-64.3739, -22.7612], [-64.6056, -22.229], [-65.0579, -22.103], [-65.771, -22.0994], [-66.0986, -21.8353], [-66.3652, -22.1136], [-66.7117, -22.2161], [-67.1948, -22.8216], [-67.8795, -22.8229], [-67.9883, -22.0572], [-68.1969, -21.3004], [-68.4999, -20.6119], [-68.7451, -20.4588], [-68.6983, -19.721], [-68.4628, -19.4329], [-68.9684, -18.9682], [-69.094, -18.0507], [-69.3133, -17.9432], [-69.5108, -17.506], [-69.6249, -17.2002], [-69.0208, -16.6422], [-68.9134, -16.2618], [-69.2176, -16.149], [-69.4185, -15.6035], [-69.1726, -15.2368], [-69.3748, -14.963], [-69.235, -14.5972], [-68.8803, -14.199], [-69.0741, -13.6828], [-68.9786, -12.8802], [-68.6852, -12.502], [-69.5785, -10.9519], [-68.398, -11.0185], [-68.0717, -10.7029], [-67.5824, -10.5058], [-66.7301, -9.9754], [-66.2635, -9.8262], [-65.3962, -9.7126], [-65.3132, -10.2533], [-65.4368, -10.449], [-65.334, -10.8929], [-65.39, -11.2462], [-64.9925, -11.9751], [-64.5135, -12.2508], [-64.4205, -12.4399], [-63.5858, -12.5189], [-63.0675, -12.6694], [-62.7654, -12.9974], [-62.176, -13.1337], [-61.79, -13.5256], [-61.0769, -13.4897], [-60.5065, -13.7897], [-60.299, -14.6185], [-60.1756, -16.2693], [-58.538, -16.3284], [-58.396, -17.2343], [-57.8325, -17.5122], [-57.5741, -18.2793], [-57.8005, -19.0809], [-58.1314, -19.7446], [-58.1598, -20.1645]]] }, "properties": { "name": "Bolivia", "id": "BO" }, "id": "BO" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-64.7303, 32.2934], [-64.8202, 32.2596], [-64.6946, 32.387], [-64.7303, 32.2934]]] }, "properties": { "name": "Bermuda", "id": "BM" }, "id": "BM" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-88.8941, 15.8907], [-89.2374, 15.8942], [-89.1615, 17.8149], [-88.8064, 17.9654], [-88.523, 18.4457], [-88.2957, 18.4723], [-88.0973, 18.1217], [-88.2717, 17.6098], [-88.3134, 16.6328], [-88.8941, 15.8907]]] }, "properties": { "name": "Belize", "id": "BZ" }, "id": "BZ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[28.1481, 56.143], [28.7948, 55.9426], [29.375, 55.9386], [29.4824, 55.6845], [30.2335, 55.8452], [30.9069, 55.5699], [31.1213, 54.6484], [31.4036, 54.1959], [31.792, 54.0558], [32.7042, 53.3363], [32.1422, 53.0913], [31.4178, 53.196], [31.5771, 52.3122], [31.7636, 52.1012], [30.9806, 52.0461], [30.5331, 51.5964], [29.3466, 51.3825], [29.1357, 51.6173], [28.5991, 51.5427], [27.2701, 51.6135], [27.1422, 51.752], [25.9251, 51.9136], [24.3617, 51.8674], [23.6053, 51.5179], [23.6523, 52.0403], [23.1969, 52.257], [23.8445, 52.6642], [23.8872, 53.0276], [23.4845, 53.9398], [24.7683, 53.9746], [25.5473, 54.3317], [25.8594, 54.9192], [26.175, 55.0033], [26.5936, 55.6676], [27.5768, 55.7988], [28.1481, 56.143]]] }, "properties": { "name": "Belarus", "id": "BY" }, "id": "BY" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-62.832, 17.8766], [-62.8655, 17.9184], [-62.7996, 17.9086], [-62.832, 17.8766]]] }, "properties": { "name": "Saint Barthelemy", "id": "BL" }, "id": "BL" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-77.7439, 24.7072], [-78.0449, 24.2873], [-78.2988, 24.7538], [-78.0333, 25.1431], [-77.7439, 24.7072]]], [[[-77.2257, 25.904], [-77.4032, 26.0247], [-77.2468, 26.1565], [-77.2062, 26.489], [-77.0384, 26.3332], [-77.1673, 26.2404], [-77.2257, 25.904]]]] }, "properties": { "name": "Bahamas", "id": "BS" }, "id": "BS" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[50.6072, 25.8831], [50.4661, 25.9657], [50.4523, 26.1907], [50.6099, 26.1246], [50.6072, 25.8831]]] }, "properties": { "name": "Bahrain", "id": "BH" }, "id": "BH" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[19.007, 44.8693], [19.3568, 44.8586], [19.1517, 44.3024], [19.4882, 43.7036], [19.1943, 43.5331], [18.9404, 43.4967], [18.4437, 42.9685], [18.4362, 42.5597], [17.6678, 42.897], [17.5852, 42.9383], [17.6247, 43.0426], [16.214, 44.215], [15.7369, 44.7658], [15.7879, 45.1791], [16.2935, 45.0086], [16.5305, 45.2168], [17.8129, 45.0779], [18.6625, 45.0774], [19.007, 44.8693]]] }, "properties": { "name": "Bosnia and Herzegovina", "id": "BA" }, "id": "BA" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[28.5853, 43.7422], [28.4655, 43.3893], [27.9288, 43.186], [27.8888, 42.7497], [27.4849, 42.4683], [28.0145, 41.9689], [27.2949, 42.0794], [26.6153, 41.9649], [26.321, 41.7167], [26.1355, 41.3856], [25.2512, 41.2436], [24.0558, 41.5272], [23.635, 41.3869], [22.9159, 41.3363], [23.0056, 41.7172], [22.8369, 41.9937], [22.3442, 42.3138], [22.4667, 42.8425], [22.9767, 43.1878], [22.5546, 43.4546], [22.421, 44.0077], [22.7051, 44.2376], [23.2244, 43.8741], [25.4972, 43.6708], [26.2158, 44.0072], [27.0867, 44.1675], [28.5853, 43.7422]]] }, "properties": { "name": "Bulgaria", "id": "BG" }, "id": "BG" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[92.575, 21.9782], [92.5937, 21.4673], [92.1795, 21.2933], [92.3242, 20.7917], [92.0561, 21.1747], [92.0082, 21.6848], [91.693, 22.5046], [91.4094, 22.7972], [90.9455, 22.597], [90.6334, 23.0941], [90.435, 22.7519], [90.5895, 22.2583], [90.1589, 21.8171], [89.8118, 21.9835], [89.2343, 21.7225], [89.0514, 22.0932], [88.7407, 23.4368], [88.5671, 23.6743], [88.7336, 24.2309], [88.1454, 24.4857], [88.4561, 25.1884], [88.4521, 25.5746], [88.0846, 25.8884], [88.4402, 26.3696], [89.1082, 26.2023], [89.2893, 26.0376], [89.8229, 25.9413], [89.814, 25.3052], [90.4394, 25.1578], [92.0499, 25.1693], [92.2514, 24.895], [91.8768, 24.1954], [91.3672, 24.0933], [91.1603, 23.6605], [91.3152, 23.1043], [91.6198, 22.9796], [91.938, 23.5047], [92.2461, 23.6836], [92.3615, 22.929], [92.4916, 22.6853], [92.575, 21.9782]]] }, "properties": { "name": "Bangladesh", "id": "BD" }, "id": "BD" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[0.2175, 14.9114], [0.1638, 14.4973], [0.6183, 13.7036], [0.9779, 13.5518], [0.9872, 13.0418], [1.5652, 12.6356], [2.0739, 12.7142], [2.0912, 12.2778], [2.389, 11.897], [1.9802, 11.4184], [1.4267, 11.4473], [0.9007, 10.9932], [-0.0686, 11.1157], [-0.7014, 10.9888], [-2.8298, 10.9985], [-2.9148, 10.5924], [-2.7865, 10.4019], [-2.6958, 9.4813], [-3.2235, 9.8954], [-3.8776, 9.895], [-4.6258, 9.7134], [-4.9698, 9.9301], [-5.0999, 10.2417], [-5.5236, 10.4259], [-5.4905, 11.0425], [-5.2999, 11.2058], [-5.2881, 11.8277], [-4.798, 12.0319], [-4.4287, 12.3377], [-4.4807, 12.6724], [-4.2272, 12.7936], [-4.3286, 13.119], [-4.0512, 13.3822], [-3.5758, 13.194], [-3.3017, 13.2806], [-3.1985, 13.673], [-2.4572, 14.274], [-2.1132, 14.1684], [-1.7678, 14.4862], [-1.0496, 14.8195], [-0.7604, 15.0477], [-0.2359, 15.0592], [0.2175, 14.9114]]] }, "properties": { "name": "Burkina Faso", "id": "BF" }, "id": "BF" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[3.5955, 11.6963], [3.4877, 11.3954], [3.7163, 11.0797], [3.8343, 10.6074], [3.5764, 10.2683], [3.5573, 9.9074], [3.3252, 9.7783], [3.0451, 9.084], [2.7748, 9.0485], [2.686, 7.874], [2.7748, 6.7119], [2.7064, 6.3692], [1.6224, 6.2169], [1.6002, 9.0498], [1.4244, 9.2851], [1.3299, 9.9971], [0.7799, 10.3598], [0.9007, 10.9932], [1.4267, 11.4473], [1.9802, 11.4184], [2.389, 11.897], [2.3659, 12.2219], [2.8782, 12.3679], [3.5955, 11.6963]]] }, "properties": { "name": "Benin", "id": "BJ" }, "id": "BJ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[30.5535, -2.3999], [30.5149, -2.9175], [30.7901, -3.2744], [30.4252, -3.5891], [30.1469, -4.0854], [29.7177, -4.456], [29.4034, -4.4494], [29.2232, -3.9109], [29.2245, -3.0533], [29.0146, -2.7204], [29.3901, -2.8087], [29.8682, -2.7164], [29.9303, -2.3396], [30.5535, -2.3999]]] }, "properties": { "name": "Burundi", "id": "BI" }, "id": "BI" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[48.5729, 41.8446], [49.1064, 41.3017], [49.2263, 41.026], [49.7758, 40.5839], [49.3244, 39.6083], [49.363, 39.3495], [49.0137, 39.1342], [48.8685, 38.4355], [48.5929, 38.4111], [48.0233, 38.819], [48.2422, 38.9788], [47.9958, 39.6842], [47.773, 39.6486], [46.4906, 38.9065], [46.5501, 39.2012], [45.7897, 39.8812], [45.9646, 40.2337], [45.376, 40.6381], [45.5877, 40.8467], [45.0013, 41.291], [45.281, 41.4495], [46.4577, 41.07], [46.6189, 41.3439], [46.1821, 41.6573], [46.4298, 41.8907], [46.7494, 41.8126], [47.2612, 41.315], [47.8609, 41.2129], [48.5729, 41.8446]]], [[[46.1146, 38.8776], [45.4798, 39.0063], [44.8171, 39.6504], [44.7683, 39.7037], [45.0315, 39.7649], [45.7662, 39.3783], [46.1146, 38.8776]]]] }, "properties": { "name": "Azerbaijan", "id": "AZ" }, "id": "AZ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[16.9531, 48.5988], [17.1475, 48.0058], [16.4342, 47.3675], [16.4533, 47.0066], [16.0929, 46.8632], [15.9575, 46.6777], [15.0009, 46.6262], [14.5037, 46.4171], [13.6998, 46.5201], [12.3881, 46.7025], [12.1542, 46.9351], [11.2442, 46.9755], [11.0249, 46.7971], [10.4528, 46.865], [9.5801, 47.0572], [9.5277, 47.2707], [9.5241, 47.5242], [10.3129, 47.3133], [10.4306, 47.541], [11.2979, 47.4247], [11.717, 47.5837], [12.686, 47.6693], [12.8143, 48.1607], [13.4095, 48.3942], [13.8148, 48.7669], [14.0492, 48.6024], [14.6915, 48.5993], [14.972, 48.9839], [16.0573, 48.7549], [16.4777, 48.8001], [16.9531, 48.5988]]] }, "properties": { "name": "Austria", "id": "AT" }, "id": "AT" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[145.0431, -40.7868], [145.2832, -40.7699], [146.3175, -41.1637], [146.99, -40.9923], [147.4547, -41.0017], [147.9687, -40.7797], [148.2928, -40.9471], [148.3017, -42.0399], [147.9244, -42.5726], [147.9807, -43.1572], [147.4081, -42.894], [146.8741, -43.6126], [146.0431, -43.5474], [145.2681, -42.5442], [145.2384, -42.0195], [144.778, -41.4189], [144.6462, -40.9808], [145.0431, -40.7868]]], [[[137.5963, -35.7384], [137.4485, -36.0749], [136.7551, -36.0332], [136.6388, -35.7491], [137.334, -35.5924], [137.5963, -35.7384]]], [[[136.7147, -13.8039], [136.8945, -14.2931], [136.3632, -14.2288], [136.4249, -13.8648], [136.7147, -13.8039]]], [[[130.6188, -11.3763], [131.2682, -11.1899], [131.5385, -11.4367], [130.9508, -11.9263], [130.645, -11.7425], [130.6188, -11.3763]]], [[[143.1787, -11.9547], [143.1103, -12.3036], [143.4015, -12.6401], [143.5866, -13.4435], [143.5485, -13.7409], [143.7562, -14.349], [143.9617, -14.4627], [144.4731, -14.2319], [144.648, -14.4924], [145.2876, -14.943], [145.2717, -15.4765], [145.4581, -16.0563], [145.4261, -16.406], [145.902, -17.0701], [146.1257, -17.6352], [146.0325, -18.2731], [146.3334, -18.5536], [146.4813, -19.0787], [147.1387, -19.393], [147.4183, -19.3783], [147.9155, -19.8693], [148.7593, -20.2897], [148.6839, -20.5804], [149.205, -21.1251], [149.7039, -22.4408], [150.0763, -22.1647], [150.5415, -22.5593], [150.7639, -22.5761], [150.8429, -23.4582], [151.1537, -23.784], [151.9025, -24.2008], [152.1298, -24.5976], [152.4565, -24.8023], [152.9137, -25.4321], [153.1649, -25.9644], [153.0842, -26.3039], [153.117, -27.1944], [153.5755, -28.2407], [153.6044, -28.8546], [153.3483, -29.2905], [153.2724, -29.8924], [153.0304, -30.5635], [152.9439, -31.4349], [152.5595, -32.0457], [152.4703, -32.439], [151.8128, -32.9011], [151.4839, -33.3476], [151.2313, -34.0294], [150.9601, -34.2971], [150.6902, -35.1778], [150.1953, -35.8334], [149.9605, -36.8455], [149.9325, -37.5286], [149.2986, -37.8021], [148.2626, -37.8309], [147.3957, -38.2189], [146.8568, -38.6632], [145.9353, -38.9016], [145.791, -38.6668], [144.6653, -38.21], [143.5391, -38.8208], [142.6123, -38.4515], [141.725, -38.2713], [141.4244, -38.3636], [141.0112, -38.0769], [140.6272, -38.0285], [139.7843, -37.2459], [139.8575, -36.6622], [139.5486, -36.0967], [139.0376, -35.6892], [138.1845, -35.6128], [138.5112, -35.0242], [138.4899, -34.7636], [138.0895, -34.1697], [137.6918, -35.1432], [136.8834, -35.2399], [137.0144, -34.9159], [137.3908, -34.9132], [137.4938, -34.1613], [137.9319, -33.5789], [137.8524, -33.2007], [137.4423, -33.1936], [137.2372, -33.6295], [136.4307, -34.0299], [135.6476, -34.9394], [135.1855, -33.9069], [134.7909, -33.3285], [134.3013, -33.1652], [134.1002, -32.7488], [134.2343, -32.5486], [133.5511, -32.1829], [133.212, -32.1837], [132.7575, -31.956], [132.2146, -32.0071], [131.7214, -31.6964], [131.1435, -31.4957], [130.783, -31.604], [130.1296, -31.5792], [128.9462, -31.7026], [128.0677, -32.0666], [127.3198, -32.2641], [125.9171, -32.2969], [124.759, -32.8829], [124.126, -33.1292], [123.6506, -33.8364], [123.2076, -33.9882], [122.7774, -33.891], [122.1511, -33.9917], [121.4054, -33.8266], [119.854, -33.9748], [119.4505, -34.3681], [118.8951, -34.48], [118.1356, -34.9865], [117.5817, -35.0979], [116.5172, -34.9878], [115.9868, -34.7952], [115.7262, -34.5262], [115.0089, -34.2558], [115.1815, -33.6433], [115.5154, -33.5314], [115.6831, -33.1927], [115.6982, -31.6946], [115.1767, -30.8081], [114.9947, -30.2164], [114.9592, -29.4334], [114.5375, -28.5429], [114.165, -28.0808], [114.0283, -27.3471], [113.5818, -26.5583], [113.853, -26.3319], [113.5889, -26.0984], [113.5396, -25.6252], [114.2156, -26.2893], [114.2143, -25.8516], [113.671, -24.9772], [113.4175, -24.4356], [113.5529, -23.7329], [113.7571, -23.4182], [113.683, -22.6378], [113.9586, -21.9392], [114.1637, -22.3231], [114.3777, -22.3413], [114.8588, -21.7359], [115.4563, -21.4917], [116.0107, -21.0305], [116.7068, -20.6536], [117.4063, -20.7211], [118.1991, -20.3753], [118.7513, -20.2617], [119.1047, -19.9954], [119.5858, -20.0384], [120.8785, -19.6651], [121.4937, -19.1067], [121.8337, -18.4772], [122.2372, -17.9685], [122.1604, -17.3138], [122.7202, -16.7878], [122.9705, -16.4367], [123.5254, -17.4856], [123.778, -16.8677], [123.4903, -16.4908], [124.577, -16.1135], [124.3817, -15.758], [124.8389, -15.1609], [125.2432, -14.9448], [125.1789, -14.7148], [125.6814, -14.3881], [126.0209, -14.4946], [126.1115, -14.1142], [126.5696, -14.1608], [126.9034, -13.744], [127.6727, -14.195], [128.1996, -14.7517], [129.4589, -14.9332], [129.7536, -14.7894], [129.3785, -14.3926], [129.7097, -13.9802], [129.8389, -13.5731], [130.2597, -13.3024], [130.1682, -12.9574], [130.3999, -12.688], [130.898, -12.5238], [131.0458, -12.1895], [131.4382, -12.277], [132.3722, -12.2392], [132.5839, -12.1101], [132.6829, -11.5055], [133.0247, -11.4527], [133.1854, -11.7057], [133.904, -11.8322], [134.2369, -12.008], [134.7301, -11.9844], [135.2179, -12.2215], [135.7883, -11.9072], [136.0818, -12.4226], [136.5403, -11.9578], [136.9473, -12.3498], [136.5372, -12.7843], [136.5945, -13.0036], [135.9273, -13.3041], [135.9894, -13.8102], [135.8833, -14.1533], [135.4053, -14.7583], [135.5309, -15.0002], [136.2052, -15.4033], [136.7844, -15.8942], [137.0019, -15.8783], [137.7037, -16.2329], [138.2448, -16.7181], [139.0097, -16.8992], [139.2485, -17.3285], [140.0359, -17.7027], [140.5114, -17.6245], [140.8305, -17.4146], [141.2189, -16.6462], [141.412, -16.0696], [141.6255, -15.0566], [141.523, -14.4702], [141.5945, -14.1528], [141.4724, -13.7977], [141.6455, -13.2593], [141.6779, -12.4914], [141.9513, -11.8961], [142.1684, -10.9466], [142.4565, -10.7074], [142.8369, -11.3071], [142.8724, -11.8215], [143.1787, -11.9547]]]] }, "properties": { "name": "Australia", "id": "AU" }, "id": "AU" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[69.185, -49.1093], [69.9157, -49.3486], [69.6129, -49.6509], [68.8721, -49.4445], [69.185, -49.1093]]] }, "properties": { "name": "French Southern and Antarctic Lands", "id": "TF" }, "id": "TF" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-59.7339, -80.3442], [-60.5828, -80.9484], [-64.2683, -80.7486], [-65.9801, -80.3846], [-62.5189, -80.3736], [-61.3432, -79.8866], [-59.7064, -79.8755], [-59.7339, -80.3442]]], [[[-159.053, -79.8076], [-161.8655, -79.7037], [-164.2259, -79.3206], [-163.2562, -78.7223], [-161.6431, -78.9012], [-159.6842, -79.4023], [-159.053, -79.8076]]], [[[-70.334, -79.6797], [-71.7836, -79.4445], [-70.544, -78.8838], [-67.4785, -78.3627], [-66.7281, -78.3836], [-69.2509, -79.2101], [-70.334, -79.6797]]], [[[-45.2226, -78.8106], [-43.722, -78.8186], [-42.9654, -79.4769], [-43.5278, -80.1916], [-49.1875, -80.643], [-49.773, -80.7842], [-54.1626, -80.8703], [-53.4823, -80.1889], [-52.2971, -80.1414], [-50.3391, -79.4796], [-50.7331, -79.2829], [-50.2197, -78.6051], [-49.0811, -78.0476], [-46.8257, -77.7852], [-45.5302, -77.8815], [-43.8086, -78.2864], [-43.9473, -78.5975], [-45.2226, -78.8106]]], [[[-120.5562, -73.756], [-120.2726, -73.9891], [-121.0625, -74.3375], [-122.8591, -74.3428], [-122.6247, -73.9655], [-123.1121, -73.6823], [-120.5562, -73.756]]], [[[-126.3299, -73.2864], [-124.9933, -73.8297], [-124.8731, -74.2083], [-127.4143, -73.5163], [-126.3299, -73.2864]]], [[[-74.3544, -73.0986], [-74.5748, -73.6113], [-75.9009, -73.3325], [-75.3769, -72.8203], [-74.3544, -73.0986]]], [[[-91.1608, -73.1821], [-91.6699, -72.6236], [-90.8072, -72.6108], [-91.1608, -73.1821]]], [[[-98.0911, -71.9125], [-96.8695, -71.8508], [-95.6095, -72.0683], [-96.0518, -72.5775], [-98.4078, -72.5477], [-100.1951, -72.2725], [-102.2647, -72.1354], [-102.128, -71.9853], [-98.6155, -71.7638], [-98.0911, -71.9125]]], [[[-73.7067, -70.635], [-74.205, -70.924], [-76.1763, -71.1326], [-76.5004, -70.9413], [-75.0076, -70.6088], [-73.7067, -70.635]]], [[[-74.9871, -69.7277], [-74.8489, -70.1791], [-75.7267, -70.0961], [-74.9871, -69.7277]]], [[[-70.0511, -69.1892], [-69.417, -69.5834], [-68.3361, -70.8561], [-68.2411, -71.822], [-69.2092, -72.5344], [-72.3675, -72.6698], [-73.0864, -72.4079], [-71.1066, -72.047], [-72.4121, -71.6622], [-73.8994, -72.1522], [-75.3531, -71.8783], [-75.2925, -71.6151], [-74.1872, -71.383], [-72.6216, -71.3883], [-71.1941, -70.9848], [-71.0611, -70.5369], [-70.328, -70.3611], [-71.8537, -69.9692], [-71.869, -68.9411], [-70.417, -68.7889], [-70.0511, -69.1892]]], [[[-67.9885, -67.4745], [-68.5804, -67.7328], [-69.0825, -67.403], [-68.3359, -66.802], [-67.6878, -67.1473], [-67.9885, -67.4745]]], [[[-57.0206, -63.3729], [-58.2631, -63.7636], [-58.8954, -64.389], [-59.9632, -64.4312], [-61.0598, -64.9812], [-61.7361, -65.0335], [-62.1453, -65.3318], [-62.3051, -65.8405], [-61.8754, -66.296], [-63.7525, -66.2778], [-64.0778, -66.6542], [-64.6862, -66.8064], [-64.8193, -67.3076], [-65.4432, -67.3262], [-65.6394, -68.1306], [-64.8984, -68.6734], [-63.3436, -68.8106], [-63.4559, -69.0419], [-62.4505, -69.5843], [-61.9611, -70.1201], [-61.9611, -70.9005], [-61.0172, -71.1668], [-61.2136, -71.5641], [-60.7193, -72.0728], [-60.3846, -73.0072], [-61.4054, -73.467], [-60.8789, -73.6122], [-61.0107, -74.4782], [-62.2257, -74.5057], [-63.9247, -75.0047], [-63.3634, -75.4517], [-66.3705, -76.0132], [-69.3044, -76.3506], [-70.0954, -76.6546], [-71.7987, -76.7527], [-75.2683, -76.5814], [-77.19, -76.6298], [-76.2487, -77.2747], [-75.3869, -77.474], [-72.852, -77.5903], [-73.2515, -77.8944], [-74.812, -78.1776], [-80.6015, -77.7519], [-81.4411, -77.8855], [-77.4325, -78.4346], [-77.8691, -78.7454], [-80.2923, -78.8226], [-83.246, -78.3569], [-83.26, -78.7742], [-80.1512, -79.2683], [-76.499, -79.3255], [-76.5578, -79.9035], [-75.2366, -80.8028], [-73.0296, -80.9173], [-70.239, -80.8565], [-64.7501, -81.5219], [-64.1371, -81.8695], [-65.9133, -82.1833], [-62.7357, -82.5273], [-61.5898, -83.3414], [-59.5159, -83.4586], [-57.3535, -82.8403], [-53.9862, -82.2006], [-48.3607, -81.8921], [-43.6692, -82.2699], [-41.4338, -81.2977], [-38.7718, -80.8823], [-37.2093, -81.0638], [-35.3269, -80.6505], [-29.3291, -80.172], [-24.2403, -80.0619], [-25.2586, -79.7623], [-29.9494, -79.599], [-30.3161, -79.1631], [-32.9943, -79.2288], [-36.2391, -78.7742], [-36.181, -78.4684], [-34.0758, -77.4252], [-32.0634, -77.1598], [-28.9336, -76.3701], [-26.0594, -75.9573], [-24.2696, -75.7668], [-19.4931, -75.54], [-17.2989, -74.334], [-15.6725, -74.4072], [-15.7488, -73.9456], [-16.5188, -73.6441], [-15.5959, -73.0968], [-14.3211, -73.123], [-14.2978, -72.7328], [-13.2087, -72.7852], [-11.497, -72.4128], [-10.8254, -71.5534], [-9.8879, -71.0274], [-9.2307, -71.1739], [-8.6466, -71.6728], [-7.7137, -71.5463], [-7.8735, -70.9404], [-5.9364, -70.7127], [-5.5879, -70.8569], [-5.9499, -71.3417], [-2.8121, -71.3208], [-0.8958, -71.3492], [-0.5431, -71.7128], [0.835, -71.2023], [2.6096, -70.9], [5.1132, -70.6559], [8.5232, -70.4739], [9.1415, -70.1836], [10.2175, -70.5081], [11.7014, -70.7664], [12.9292, -70.2133], [13.8228, -70.3434], [15.807, -70.3238], [18.1246, -70.5405], [19.1966, -70.2932], [19.2649, -70.9022], [21.0707, -70.8436], [21.705, -70.2586], [22.979, -70.8103], [23.8037, -70.4046], [24.7567, -70.892], [25.9743, -71.0372], [27.207, -70.9111], [30.0035, -70.2999], [31.3787, -70.2257], [32.6212, -70.0007], [32.9892, -69.6243], [32.5675, -69.0743], [33.1214, -68.689], [34.193, -68.7023], [35.2246, -69.6371], [37.5599, -69.7184], [38.8592, -70.006], [39.7053, -69.4258], [39.8637, -68.9669], [41.1328, -68.5749], [42.409, -68.3521], [42.8196, -68.123], [44.6999, -67.9042], [44.9893, -67.7692], [47.1174, -67.5726], [48.6479, -67.7941], [48.7136, -67.217], [49.2472, -66.9414], [50.6059, -67.15], [50.3325, -66.4447], [51.8843, -66.0199], [53.6719, -65.8587], [54.9481, -65.9164], [55.7102, -66.0798], [57.1853, -66.6133], [56.4533, -66.7798], [56.8919, -67.0563], [57.6274, -67.0142], [58.7376, -67.2295], [59.2507, -67.4851], [60.4821, -67.3853], [62.6878, -67.6476], [63.6989, -67.5082], [68.3279, -67.8895], [69.4163, -67.743], [69.9822, -68.4644], [69.5344, -68.7369], [69.6293, -69.2314], [68.9062, -69.3726], [69.0825, -69.8666], [68.1783, -69.8373], [67.2678, -70.2732], [67.9408, -70.4228], [69.2503, -70.4313], [68.8725, -71.0354], [68.0375, -71.391], [67.4321, -72.0031], [66.8919, -72.9486], [67.9714, -73.0857], [68.4197, -72.5149], [69.5548, -72.3746], [71.2766, -71.624], [71.9047, -70.7069], [72.7601, -70.3957], [72.8223, -70.0961], [73.9422, -69.7432], [75.4239, -69.8933], [75.8913, -69.5754], [77.8174, -69.069], [78.7265, -68.2779], [79.288, -68.1195], [82.017, -67.6902], [83.3043, -67.6032], [84.4851, -67.1145], [85.7107, -67.1611], [87.9803, -66.7882], [89.6986, -66.8229], [92.0734, -66.5077], [93.9644, -66.6897], [94.8397, -66.5015], [95.5411, -66.6311], [98.2577, -66.4673], [99.3701, -66.6484], [100.8891, -66.3581], [101.4746, -65.9511], [102.674, -65.8654], [103.9511, -65.9879], [108.1578, -66.6391], [109.4629, -66.9085], [110.6223, -66.5241], [110.9069, -66.0767], [113.0992, -65.8001], [113.7096, -65.9297], [114.3368, -66.3603], [115.3103, -66.561], [115.2739, -67.0279], [113.991, -67.2117], [114.0265, -67.4412], [116.7134, -67.047], [118.1388, -67.0825], [119.1331, -67.3706], [121.4875, -67.0905], [122.1826, -66.8593], [123.9693, -66.608], [124.5978, -66.7083], [125.8656, -66.3643], [126.6646, -66.4975], [127.5413, -67.051], [129.2369, -67.0417], [129.7412, -66.4686], [130.9517, -66.1912], [131.831, -66.2356], [133.4446, -66.0816], [134.9716, -66.3301], [135.352, -66.1273], [136.1941, -66.2924], [137.7539, -66.4065], [139.9001, -66.715], [141.9726, -66.8069], [142.8884, -67], [143.4481, -66.877], [144.6214, -67.1416], [143.9422, -67.7941], [145.9752, -67.6241], [146.8279, -67.9645], [147.0938, -68.3685], [148.4561, -68.467], [151.068, -68.3849], [151.562, -68.6939], [153.0819, -68.8568], [154.1997, -68.4178], [155.5202, -69.0246], [157.4813, -69.3087], [158.1578, -69.2088], [159.7838, -69.5217], [160.2095, -69.9749], [161.0369, -70.3172], [161.4244, -70.8268], [162.6749, -70.3047], [163.3487, -70.6208], [164.4034, -70.5103], [166.6269, -70.6643], [167.5692, -70.8103], [168.1725, -71.1832], [170.1625, -71.6307], [169.8287, -72.7288], [169.545, -73.0502], [167.6158, -73.337], [164.7758, -74.0286], [165.3027, -74.5936], [163.1672, -74.6021], [162.5337, -75.1671], [161.6797, -75.2177], [162.8156, -75.8463], [162.7628, -76.7456], [164.4296, -78.0422], [166.2087, -78.4515], [164.6347, -78.6033], [160.4829, -79.2017], [160.542, -80.425], [160.9078, -81.3901], [162.8214, -81.8664], [167.2328, -82.9521], [168.1099, -83.3618], [171.9172, -83.6441], [179.403, -84.2061], [180, -84.3517], [180, -89.9989], [-180, -89.9989], [-180, -89.583], [-180, -89.2931], [-180, -88.5869], [-180, -87.8811], [-180, -87.1753], [-180, -86.4695], [-180, -85.7633], [-180, -85.0575], [-180, -84.3517], [-171.7037, -84.5426], [-162.9335, -84.9012], [-157.1276, -85.1858], [-156.9864, -84.8111], [-163.5685, -84.5288], [-164.951, -83.8057], [-167.5528, -83.8111], [-169.1677, -83.4497], [-174.0661, -82.9002], [-171.8213, -82.8474], [-168.4178, -83.2287], [-163.111, -83.329], [-159.4445, -83.5434], [-157.6796, -83.1292], [-155.4594, -82.9805], [-153.0098, -82.4496], [-154.7175, -81.9409], [-153.9566, -81.7003], [-157.0326, -81.319], [-156.5283, -81.1623], [-148.1228, -80.9009], [-150.5755, -80.3536], [-148.3172, -80.0708], [-148.1765, -79.7761], [-152.0914, -79.2416], [-155.21, -78.9646], [-156.4693, -78.6353], [-154.7164, -78.3982], [-155.3416, -78.1918], [-157.2667, -78.1998], [-158.5003, -77.7786], [-158.2136, -77.1571], [-154.8149, -77.1269], [-153.4606, -77.4159], [-151.719, -77.4261], [-149.7177, -77.7976], [-145.967, -77.0688], [-145.7504, -76.7492], [-147.3404, -76.4384], [-146.383, -76.0998], [-143.5742, -75.5635], [-142.3298, -75.4907], [-141.5057, -75.6905], [-139.6911, -75.2129], [-137.6181, -75.0757], [-136.5494, -75.1396], [-135.362, -74.6904], [-133.4748, -74.852], [-132.0495, -74.7659], [-129.7907, -74.8915], [-127.8633, -74.7193], [-123.8894, -74.773], [-119.6771, -74.6544], [-118.3421, -74.3815], [-115.1052, -74.4551], [-114.7909, -73.9886], [-113.5085, -74.0889], [-113.9318, -74.982], [-111.6963, -74.7921], [-111.8064, -74.2696], [-110.307, -74.3668], [-110.3005, -74.7108], [-111.4631, -75.1334], [-109.2722, -75.1849], [-106.6189, -75.3438], [-104.9019, -75.1152], [-101.7081, -75.1272], [-101.0394, -75.4219], [-98.5578, -75.1898], [-101.2518, -74.4858], [-101.7154, -74.0237], [-102.7663, -73.8838], [-102.4108, -73.6166], [-100.9854, -73.7573], [-99.7812, -73.7201], [-100.0209, -73.4027], [-102.6751, -73.321], [-102.4092, -72.9876], [-98.0125, -73.0334], [-96.1521, -73.3095], [-94.2463, -73.313], [-92.241, -73.1785], [-90.9209, -73.3192], [-90.2954, -72.9779], [-88.1945, -72.8585], [-88.4193, -73.2291], [-87.0379, -73.3538], [-85.9808, -73.2087], [-84.9811, -73.5021], [-82.1835, -73.8568], [-81.3088, -73.7383], [-81.2624, -73.3148], [-80.4421, -72.9446], [-79.5217, -73.0897], [-78.4078, -73.5558], [-76.8506, -73.4604], [-77.1349, -73.8177], [-75.293, -73.6388], [-73.9961, -73.6996], [-72.9293, -73.4479], [-68.821, -73.1053], [-67.6671, -72.8345], [-66.8277, -72.0905], [-67.4603, -71.5268], [-67.8884, -70.4215], [-68.4033, -70.0198], [-68.7078, -69.4321], [-67.3717, -69.4125], [-66.9749, -69.1608], [-67.3906, -68.8612], [-66.7933, -68.2402], [-67.1498, -68.0245], [-66.705, -67.5273], [-67.5859, -67.435], [-67.4934, -67.1127], [-66.371, -66.6089], [-65.7664, -66.6249], [-65.6172, -66.1353], [-64.0658, -65.5538], [-64.0381, -65.1791], [-62.5761, -64.7557], [-61.6317, -64.6047], [-60.8643, -64.0734], [-59.5102, -63.8208], [-58.8721, -63.5518], [-57.3897, -63.2264], [-57.0206, -63.3729]]]] }, "properties": { "name": "Antarctica", "id": "AQ" }, "id": "AQ" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-170.7262, -14.3513], [-170.8205, -14.3122], [-170.6891, -14.2576], [-170.7262, -14.3513]]] }, "properties": { "name": "American Samoa", "id": "AS" }, "id": "AS" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[46.4906, 38.9065], [46.1146, 38.8776], [45.7662, 39.3783], [45.0315, 39.7649], [44.7683, 39.7037], [44.2893, 40.0406], [43.7917, 40.0703], [43.5693, 40.4823], [43.7225, 40.7193], [43.4393, 41.1073], [45.0013, 41.291], [45.5877, 40.8467], [45.376, 40.6381], [45.9646, 40.2337], [45.7897, 39.8812], [46.5501, 39.2012], [46.4906, 38.9065]]] }, "properties": { "name": "Armenia", "id": "AM" }, "id": "AM" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-62.6509, -22.2339], [-62.3726, -22.439], [-61.7984, -23.1821], [-61.0329, -23.7556], [-59.8924, -24.0934], [-59.373, -24.4538], [-58.3654, -24.9594], [-57.8216, -25.1365], [-57.5872, -25.4051], [-57.8906, -26.0065], [-58.2031, -26.3816], [-58.1914, -26.6302], [-58.6186, -27.1323], [-57.1118, -27.4701], [-56.3705, -27.5375], [-56.0673, -27.3076], [-55.7147, -27.415], [-55.4266, -27.0093], [-55.1358, -26.9312], [-54.7552, -26.533], [-54.6158, -25.576], [-54.1546, -25.5231], [-53.8912, -25.6687], [-53.6712, -26.2249], [-53.8381, -27.1212], [-54.3271, -27.4234], [-54.8291, -27.5508], [-55.1014, -27.8669], [-55.7255, -28.2043], [-56.9387, -29.595], [-57.609, -30.188], [-57.8724, -30.5911], [-57.8105, -30.8587], [-58.1889, -31.9241], [-58.2011, -32.4718], [-58.1709, -32.9592], [-58.4244, -33.1115], [-58.5471, -33.6637], [-58.2835, -34.6837], [-57.3036, -35.1884], [-57.1589, -35.5058], [-57.354, -35.7202], [-57.265, -36.1441], [-56.6981, -36.4265], [-56.6721, -36.8513], [-57.3957, -37.7448], [-57.5471, -38.0857], [-58.1792, -38.436], [-59.8282, -38.8381], [-61.1122, -38.993], [-62.067, -38.9189], [-62.3382, -39.1506], [-62.0537, -39.3739], [-62.2869, -39.8955], [-62.395, -40.8907], [-62.959, -41.1095], [-63.7731, -41.1499], [-64.8531, -40.8139], [-65.1334, -40.8805], [-65.059, -41.9698], [-64.4205, -42.4337], [-63.596, -42.4066], [-63.6925, -42.8052], [-64.1306, -42.8616], [-64.6504, -42.5313], [-65.0269, -42.759], [-64.4323, -43.0591], [-64.9856, -43.2935], [-65.2837, -43.6299], [-65.3613, -44.4773], [-65.6476, -44.6615], [-65.6388, -45.0078], [-66.1901, -44.9647], [-66.9414, -45.2573], [-67.5566, -45.9701], [-67.5633, -46.3452], [-66.7769, -47.0057], [-65.9985, -47.0936], [-65.7382, -47.3449], [-65.8101, -47.941], [-67.033, -48.6277], [-67.6849, -49.2465], [-67.7834, -49.8591], [-68.9396, -50.3824], [-69.2352, -50.9506], [-69.0325, -51.6364], [-68.4433, -52.3569], [-69.9603, -52.0084], [-71.9187, -51.9898], [-72.4077, -51.541], [-72.2763, -50.9102], [-72.5098, -50.6075], [-73.153, -50.7384], [-73.5012, -50.1254], [-73.5762, -49.583], [-72.6143, -48.7929], [-72.3549, -48.3658], [-72.518, -47.8762], [-72.346, -47.4927], [-71.905, -47.2015], [-71.9403, -46.8313], [-71.6952, -46.5783], [-71.8757, -46.1606], [-71.7727, -45.7242], [-71.3537, -45.2306], [-71.5962, -44.9794], [-71.2611, -44.7632], [-71.2127, -44.4414], [-71.82, -44.3832], [-71.6801, -43.9296], [-71.905, -43.44], [-71.7816, -43.167], [-72.1464, -42.9899], [-72.1247, -42.2983], [-71.7501, -42.0466], [-71.9114, -41.6506], [-71.932, -40.6918], [-71.6952, -40.3354], [-71.7199, -39.6354], [-71.5394, -39.6025], [-71.4256, -38.9855], [-70.9517, -38.7383], [-71.0281, -38.0413], [-71.1677, -37.7621], [-71.0556, -36.5237], [-70.4048, -36.0616], [-70.4703, -35.3261], [-70.2899, -34.733], [-69.8524, -34.2243], [-69.7978, -33.3987], [-70.0198, -33.2717], [-70.1696, -32.4718], [-70.5853, -31.5694], [-70.5196, -31.1486], [-70.1614, -30.4401], [-69.9563, -30.358], [-69.9277, -29.7694], [-70.0269, -29.3242], [-69.8278, -29.1031], [-69.6569, -28.4138], [-69.1744, -27.9246], [-68.8463, -27.1536], [-68.3461, -27.0279], [-68.5811, -26.5183], [-68.4144, -26.1539], [-68.6002, -25.4859], [-68.3842, -25.0921], [-68.562, -24.8378], [-68.2502, -24.3921], [-67.3562, -24.0339], [-67.0088, -23.0014], [-67.1948, -22.8216], [-66.7117, -22.2161], [-66.3652, -22.1136], [-66.0986, -21.8353], [-65.771, -22.0994], [-65.0579, -22.103], [-64.6056, -22.229], [-64.3739, -22.7612], [-63.9762, -22.0728], [-63.8186, -22.0053], [-62.8434, -21.9973], [-62.6509, -22.2339]]], [[[-68.6532, -54.8538], [-68.6299, -52.6525], [-68.2782, -52.9841], [-68.0085, -53.5638], [-67.2943, -54.0499], [-65.346, -54.8777], [-66.5112, -55.0322], [-66.9305, -54.9248], [-68.6532, -54.8538]]]] }, "properties": { "name": "Argentina", "id": "AR" }, "id": "AR" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[56.2979, 25.6505], [56.388, 24.9793], [56.064, 24.7388], [55.7959, 24.8679], [55.7608, 24.2425], [55.1997, 23.0346], [55.186, 22.704], [55.1043, 22.6214], [52.555, 22.933], [51.5927, 24.0787], [51.5683, 24.286], [51.9061, 23.9855], [52.6483, 24.1546], [53.8934, 24.0769], [54.3972, 24.278], [54.747, 24.8102], [55.941, 25.7939], [56.0804, 26.0624], [56.2979, 25.6505]]] }, "properties": { "name": "United Arab Emirates", "id": "AE" }, "id": "AE" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[1.7059, 42.5033], [1.4861, 42.4345], [1.4284, 42.5961], [1.7059, 42.5033]]] }, "properties": { "name": "Andorra", "id": "AD" }, "id": "AD" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[19.9893, 60.3511], [20.2588, 60.2612], [19.7461, 60.099], [19.6871, 60.2677], [19.9893, 60.3511]]] }, "properties": { "name": "Aland Islands", "id": "AX" }, "id": "AX" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[20.0639, 42.5473], [20.4856, 42.2232], [20.566, 41.8739], [20.4892, 41.2724], [20.9641, 40.8498], [21.0312, 40.6585], [20.6574, 40.1174], [20.0013, 39.7095], [19.8517, 40.0437], [19.3981, 40.2847], [19.4407, 41.4247], [19.3426, 41.869], [19.2809, 42.1726], [19.6546, 42.6285], [20.0639, 42.5473]]] }, "properties": { "name": "Albania", "id": "AL" }, "id": "AL" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-63.0012, 18.222], [-63.1534, 18.2002], [-63.026, 18.2699], [-63.0012, 18.222]]] }, "properties": { "name": "Anguilla", "id": "AI" }, "id": "AI" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[12.2137, -5.7589], [12.0184, -5.0042], [12.3846, -4.6189], [12.8809, -4.4454], [13.0726, -4.6349], [12.8298, -4.7366], [12.5222, -5.1489], [12.5035, -5.6958], [12.2137, -5.7589]]], [[[23.9666, -10.8716], [23.9915, -12.4221], [23.8432, -13.0009], [21.9789, -13.0009], [21.9798, -15.9555], [22.1507, -16.5974], [23.3807, -17.6405], [21.4169, -18.0005], [20.625, -17.9965], [20.3928, -17.8873], [19.6396, -17.8687], [18.8259, -17.7661], [18.3962, -17.3995], [16.9136, -17.3915], [13.9382, -17.3888], [13.4038, -17.008], [13.101, -16.9676], [12.5479, -17.2126], [11.7432, -17.2494], [11.8191, -16.7043], [11.7507, -15.8321], [11.9678, -15.6341], [12.2803, -14.6376], [12.5506, -13.4377], [12.9834, -12.7759], [13.4171, -12.5202], [13.7855, -11.8127], [13.8477, -11.0545], [13.2093, -9.7033], [12.9985, -9.0481], [13.3589, -8.6872], [13.3785, -8.3698], [12.8622, -7.2317], [12.8236, -6.9547], [12.5213, -6.5903], [12.3025, -6.0927], [13.0682, -5.8649], [14.3985, -5.8925], [16.3152, -5.8658], [16.7179, -6.2414], [16.7094, -6.4717], [17.1551, -7.4612], [17.536, -8.076], [18.6532, -7.9361], [19.3408, -7.9668], [19.5277, -7.1447], [19.8753, -6.9862], [20.4821, -6.9161], [20.6077, -7.2778], [21.7511, -7.3054], [21.9056, -8.6934], [21.8133, -9.4689], [22.1977, -10.0406], [22.3069, -10.6914], [22.5613, -11.0558], [23.8339, -11.0136], [23.9666, -10.8716]]]] }, "properties": { "name": "Angola", "id": "AO" }, "id": "AO" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[74.8912, 37.2317], [74.5415, 37.0221], [74.0017, 36.8233], [73.7691, 36.8885], [72.623, 36.8295], [71.6206, 36.4366], [71.1852, 36.042], [71.4276, 35.8338], [71.6206, 35.1831], [70.9655, 34.5306], [71.0516, 34.0498], [69.8682, 33.8976], [70.2841, 33.3689], [69.9201, 33.1123], [69.5015, 33.02], [69.2414, 32.4336], [69.2791, 31.9369], [68.869, 31.6342], [68.2138, 31.8073], [67.5781, 31.5063], [67.2874, 31.2178], [66.9243, 31.3057], [66.3974, 30.9124], [66.1772, 29.8355], [65.0954, 29.5594], [64.521, 29.5643], [64.0989, 29.3921], [63.5676, 29.4982], [62.4765, 29.4085], [60.8434, 29.8586], [61.104, 30.1285], [61.7844, 30.8321], [61.6602, 31.3825], [60.854, 31.4833], [60.8292, 32.2494], [60.5606, 33.1376], [60.9171, 33.5052], [60.5109, 33.6388], [60.4856, 34.0947], [61.08, 34.8555], [61.262, 35.6194], [62.6105, 35.2333], [63.0566, 35.4459], [63.1086, 35.8187], [63.8623, 36.0123], [64.5108, 36.3408], [64.8162, 37.1322], [65.5549, 37.2512], [65.7648, 37.569], [66.5221, 37.3484], [67.069, 37.3346], [67.7592, 37.1722], [68.0677, 36.9498], [68.9604, 37.3249], [69.2649, 37.1083], [69.4922, 37.553], [70.2512, 37.664], [70.2148, 37.9246], [70.8789, 38.4564], [71.2558, 38.3068], [71.5518, 37.933], [71.4329, 37.1273], [71.8022, 36.6941], [72.8955, 37.2676], [73.4814, 37.4718], [73.7496, 37.2317], [74.2596, 37.4154], [74.8912, 37.2317]]] }, "properties": { "name": "Afghanistan", "id": "AF" }, "id": "AF" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-61.7161, 17.0368], [-61.8597, 17.0133], [-61.8173, 17.1691], [-61.7161, 17.0368]]] }, "properties": { "name": "Antigua and Barbuda", "id": "AG" }, "id": "AG" }, + { "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[-69.8992, 12.4518], [-69.9421, 12.4385], [-70.0661, 12.5468], [-69.9732, 12.5677], [-69.8992, 12.4518]]] }, "properties": { "name": "Aruba", "id": "AW" }, "id": "AW" } + ] }; + var worldLow_default = map2; + + // node_modules/@amcharts/amcharts5/.internal/themes/AnimatedTheme.js + var AnimatedTheme = class extends Theme { + setupDefaultRules() { + super.setupDefaultRules(); + this.rule("Component").setAll({ + interpolationDuration: 600 + }); + this.rule("Hierarchy").set("animationDuration", 600); + this.rule("Scrollbar").set("animationDuration", 600); + this.rule("Tooltip").set("animationDuration", 300); + this.rule("MapChart").set("animationDuration", 1e3); + this.rule("MapChart").set("wheelDuration", 300); + this.rule("Entity").setAll({ + stateAnimationDuration: 600 + }); + this.rule("Sprite").states.create("default", { stateAnimationDuration: 600 }); + this.rule("Tooltip", ["axis"]).setAll({ + animationDuration: 200 + }); + this.rule("WordCloud").set("animationDuration", 500); + this.rule("Polygon").set("animationDuration", 600); + this.rule("ArcDiagram").set("animationDuration", 600); + } + }; + + // node_modules/@amcharts/amcharts5/themes/Animated.js + var Animated_default = AnimatedTheme; + +// .build_tmp/scatter_1_map-with-bubbles/index.ts + var root = Root.new("chartdiv"); + root.setThemes([Animated_default.new(root)]); + var chart = root.container.children.push( + MapChart.new(root, { + panX: "rotateX", + panY: "rotateY", + projection: mercator_default() + }) + ); + var backgroundSeries = chart.series.push(MapPolygonSeries.new(root, {})); + backgroundSeries.mapPolygons.template.setAll({ + fill: root.interfaceColors.get("alternativeBackground"), + fillOpacity: 0, + strokeOpacity: 0 + }); + backgroundSeries.data.push({ + geometry: getGeoRectangle(90, 180, -90, -180) + }); + var polygonSeries = chart.series.push( + MapPolygonSeries.new(root, { + geoJSON: worldLow_default + }) + ); + polygonSeries.mapPolygons.template.setAll({ + fill: root.interfaceColors.get("alternativeBackground"), + fillOpacity: 0.15, + strokeWidth: 0.5, + stroke: root.interfaceColors.get("background") + }); + var circleTemplate = Template.new({ + tooltipText: "{name}: {value}" + }); + var bubbleSeries = chart.series.push( + MapPointSeries.new(root, { + calculateAggregates: true, + valueField: "value", + polygonIdField: "id" + }) + ); + bubbleSeries.bullets.push(function() { + return Bullet.new(root, { + sprite: Circle.new( + root, + { + radius: 10, + templateField: "circleTemplate" + }, + circleTemplate + ) + }); + }); + bubbleSeries.set("heatRules", [ + { + target: circleTemplate, + min: 3, + max: 30, + key: "radius", + dataField: "value" + } + ]); + var colors = ColorSet.new(root, {}); + bubbleSeries.data.setAll([ + { + id: "AF", + name: "Afghanistan", + value: 32358260, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "AL", + name: "Albania", + value: 3215988, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "DZ", + name: "Algeria", + value: 35980193, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "AO", + name: "Angola", + value: 19618432, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "AR", + name: "Argentina", + value: 40764561, + circleTemplate: { fill: colors.getIndex(3) } + }, + { + id: "AM", + name: "Armenia", + value: 3100236, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "AU", + name: "Australia", + value: 22605732, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "AT", + name: "Austria", + value: 8413429, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "AZ", + name: "Azerbaijan", + value: 9306023, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "BH", + name: "Bahrain", + value: 1323535, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "BD", + name: "Bangladesh", + value: 150493658, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "BY", + name: "Belarus", + value: 9559441, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "BE", + name: "Belgium", + value: 10754056, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "BJ", + name: "Benin", + value: 9099922, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "BT", + name: "Bhutan", + value: 738267, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "BO", + name: "Bolivia", + value: 10088108, + circleTemplate: { fill: colors.getIndex(3) } + }, + { + id: "BA", + name: "Bosnia and Herzegovina", + value: 3752228, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "BW", + name: "Botswana", + value: 2030738, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "BR", + name: "Brazil", + value: 196655014, + circleTemplate: { fill: colors.getIndex(3) } + }, + { + id: "BN", + name: "Brunei", + value: 405938, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "BG", + name: "Bulgaria", + value: 7446135, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "BF", + name: "Burkina Faso", + value: 16967845, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "BI", + name: "Burundi", + value: 8575172, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "KH", + name: "Cambodia", + value: 14305183, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "CM", + name: "Cameroon", + value: 20030362, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "CA", + name: "Canada", + value: 34349561, + circleTemplate: { fill: colors.getIndex(4) } + }, + { + id: "CV", + name: "Cape Verde", + value: 500585, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "CF", + name: "Central African Rep.", + value: 4486837, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "TD", + name: "Chad", + value: 11525496, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "CL", + name: "Chile", + value: 17269525, + circleTemplate: { fill: colors.getIndex(3) } + }, + { + id: "CN", + name: "China", + value: 1347565324, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "CO", + name: "Colombia", + value: 46927125, + circleTemplate: { fill: colors.getIndex(3) } + }, + { + id: "KM", + name: "Comoros", + value: 753943, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "CD", + name: "Congo, Dem. Rep.", + value: 67757577, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "CG", + name: "Congo, Rep.", + value: 4139748, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "CR", + name: "Costa Rica", + value: 4726575, + circleTemplate: { fill: colors.getIndex(4) } + }, + { + id: "CI", + name: "Cote d'Ivoire", + value: 20152894, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "HR", + name: "Croatia", + value: 4395560, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "CU", + name: "Cuba", + value: 11253665, + circleTemplate: { fill: colors.getIndex(4) } + }, + { + id: "CY", + name: "Cyprus", + value: 1116564, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "CZ", + name: "Czech Rep.", + value: 10534293, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "DK", + name: "Denmark", + value: 5572594, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "DJ", + name: "Djibouti", + value: 905564, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "DO", + name: "Dominican Rep.", + value: 10056181, + circleTemplate: { fill: colors.getIndex(4) } + }, + { + id: "EC", + name: "Ecuador", + value: 14666055, + circleTemplate: { fill: colors.getIndex(3) } + }, + { + id: "EG", + name: "Egypt", + value: 82536770, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "SV", + name: "El Salvador", + value: 6227491, + circleTemplate: { fill: colors.getIndex(4) } + }, + { + id: "GQ", + name: "Equatorial Guinea", + value: 720213, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "ER", + name: "Eritrea", + value: 5415280, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "EE", + name: "Estonia", + value: 1340537, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "ET", + name: "Ethiopia", + value: 84734262, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "FJ", + name: "Fiji", + value: 868406, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "FI", + name: "Finland", + value: 5384770, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "FR", + name: "France", + value: 63125894, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "GA", + name: "Gabon", + value: 1534262, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "GM", + name: "Gambia", + value: 1776103, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "GE", + name: "Georgia", + value: 4329026, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "DE", + name: "Germany", + value: 82162512, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "GH", + name: "Ghana", + value: 24965816, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "GR", + name: "Greece", + value: 11390031, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "GT", + name: "Guatemala", + value: 14757316, + circleTemplate: { fill: colors.getIndex(4) } + }, + { + id: "GN", + name: "Guinea", + value: 10221808, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "GW", + name: "Guinea-Bissau", + value: 1547061, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "GY", + name: "Guyana", + value: 756040, + circleTemplate: { fill: colors.getIndex(3) } + }, + { + id: "HT", + name: "Haiti", + value: 10123787, + circleTemplate: { fill: colors.getIndex(4) } + }, + { + id: "HN", + name: "Honduras", + value: 7754687, + circleTemplate: { fill: colors.getIndex(4) } + }, + { + id: "HK", + name: "Hong Kong, China", + value: 7122187, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "HU", + name: "Hungary", + value: 9966116, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "IS", + name: "Iceland", + value: 324366, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "IN", + name: "India", + value: 1241491960, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "ID", + name: "Indonesia", + value: 242325638, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "IR", + name: "Iran", + value: 74798599, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "IQ", + name: "Iraq", + value: 32664942, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "IE", + name: "Ireland", + value: 4525802, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "IL", + name: "Israel", + value: 7562194, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "IT", + name: "Italy", + value: 60788694, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "JM", + name: "Jamaica", + value: 2751273, + circleTemplate: { fill: colors.getIndex(4) } + }, + { + id: "JP", + name: "Japan", + value: 126497241, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "JO", + name: "Jordan", + value: 6330169, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "KZ", + name: "Kazakhstan", + value: 16206750, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "KE", + name: "Kenya", + value: 41609728, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "KP", + name: "Korea, Dem. Rep.", + value: 24451285, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "KR", + name: "Korea, Rep.", + value: 48391343, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "KW", + name: "Kuwait", + value: 2818042, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "KG", + name: "Kyrgyzstan", + value: 5392580, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "LA", + name: "Laos", + value: 6288037, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "LV", + name: "Latvia", + value: 2243142, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "LB", + name: "Lebanon", + value: 4259405, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "LS", + name: "Lesotho", + value: 2193843, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "LR", + name: "Liberia", + value: 4128572, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "LY", + name: "Libya", + value: 6422772, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "LT", + name: "Lithuania", + value: 3307481, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "LU", + name: "Luxembourg", + value: 515941, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "MK", + name: "Macedonia, FYR", + value: 2063893, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "MG", + name: "Madagascar", + value: 21315135, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "MW", + name: "Malawi", + value: 15380888, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "MY", + name: "Malaysia", + value: 28859154, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "ML", + name: "Mali", + value: 15839538, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "MR", + name: "Mauritania", + value: 3541540, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "MU", + name: "Mauritius", + value: 1306593, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "MX", + name: "Mexico", + value: 114793341, + circleTemplate: { fill: colors.getIndex(4) } + }, + { + id: "MD", + name: "Moldova", + value: 3544864, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "MN", + name: "Mongolia", + value: 2800114, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "ME", + name: "Montenegro", + value: 632261, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "MA", + name: "Morocco", + value: 32272974, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "MZ", + name: "Mozambique", + value: 23929708, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "MM", + name: "Myanmar", + value: 48336763, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "NA", + name: "Namibia", + value: 2324004, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "NP", + name: "Nepal", + value: 30485798, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "NL", + name: "Netherlands", + value: 16664746, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "NZ", + name: "New Zealand", + value: 4414509, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "NI", + name: "Nicaragua", + value: 5869859, + circleTemplate: { fill: colors.getIndex(4) } + }, + { + id: "NE", + name: "Niger", + value: 16068994, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "NG", + name: "Nigeria", + value: 162470737, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "NO", + name: "Norway", + value: 4924848, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "OM", + name: "Oman", + value: 2846145, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "PK", + name: "Pakistan", + value: 176745364, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "PA", + name: "Panama", + value: 3571185, + circleTemplate: { fill: colors.getIndex(4) } + }, + { + id: "PG", + name: "Papua New Guinea", + value: 7013829, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "PY", + name: "Paraguay", + value: 6568290, + circleTemplate: { fill: colors.getIndex(3) } + }, + { + id: "PE", + name: "Peru", + value: 29399817, + circleTemplate: { fill: colors.getIndex(3) } + }, + { + id: "PH", + name: "Philippines", + value: 94852030, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "PL", + name: "Poland", + value: 38298949, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "PT", + name: "Portugal", + value: 10689663, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "PR", + name: "Puerto Rico", + value: 3745526, + circleTemplate: { fill: colors.getIndex(4) } + }, + { + id: "QA", + name: "Qatar", + value: 1870041, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "RO", + name: "Romania", + value: 21436495, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "RU", + name: "Russia", + value: 142835555, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "RW", + name: "Rwanda", + value: 10942950, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "SA", + name: "Saudi Arabia", + value: 28082541, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "SN", + name: "Senegal", + value: 12767556, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "RS", + name: "Serbia", + value: 9853969, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "SL", + name: "Sierra Leone", + value: 5997486, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "SG", + name: "Singapore", + value: 5187933, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "SK", + name: "Slovak Republic", + value: 5471502, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "SI", + name: "Slovenia", + value: 2035012, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "SB", + name: "Solomon Islands", + value: 552267, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "SO", + name: "Somalia", + value: 9556873, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "ZA", + name: "South Africa", + value: 50459978, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "ES", + name: "Spain", + value: 46454895, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "LK", + name: "Sri Lanka", + value: 21045394, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "SD", + name: "Sudan", + value: 34735288, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "SR", + name: "Suriname", + value: 529419, + circleTemplate: { fill: colors.getIndex(3) } + }, + { + id: "SZ", + name: "Swaziland", + value: 1203330, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "SE", + name: "Sweden", + value: 9440747, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "CH", + name: "Switzerland", + value: 7701690, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "SY", + name: "Syria", + value: 20766037, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "TW", + name: "Taiwan", + value: 23072e3, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "TJ", + name: "Tajikistan", + value: 6976958, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "TZ", + name: "Tanzania", + value: 46218486, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "TH", + name: "Thailand", + value: 69518555, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "TG", + name: "Togo", + value: 6154813, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "TT", + name: "Trinidad and Tobago", + value: 1346350, + circleTemplate: { fill: colors.getIndex(4) } + }, + { + id: "TN", + name: "Tunisia", + value: 10594057, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "TR", + name: "T\xFCrkiye", + value: 73639596, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "TM", + name: "Turkmenistan", + value: 5105301, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "UG", + name: "Uganda", + value: 34509205, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "UA", + name: "Ukraine", + value: 45190180, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "AE", + name: "United Arab Emirates", + value: 7890924, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "GB", + name: "United Kingdom", + value: 62417431, + circleTemplate: { fill: colors.getIndex(8) } + }, + { + id: "US", + name: "United States", + value: 313085380, + circleTemplate: { fill: colors.getIndex(4) } + }, + { + id: "UY", + name: "Uruguay", + value: 3380008, + circleTemplate: { fill: colors.getIndex(3) } + }, + { + id: "UZ", + name: "Uzbekistan", + value: 27760267, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "VE", + name: "Venezuela", + value: 29436891, + circleTemplate: { fill: colors.getIndex(3) } + }, + { + id: "PS", + name: "West Bank and Gaza", + value: 4152369, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "VN", + name: "Vietnam", + value: 88791996, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "YE", + name: "Yemen, Rep.", + value: 24799880, + circleTemplate: { fill: colors.getIndex(0) } + }, + { + id: "ZM", + name: "Zambia", + value: 13474959, + circleTemplate: { fill: colors.getIndex(2) } + }, + { + id: "ZW", + name: "Zimbabwe", + value: 12754378, + circleTemplate: { fill: colors.getIndex(2) } + } + ]); + var cont = chart.children.push( + Container.new(root, { + layout: root.horizontalLayout, + x: 20, + y: 40 + }) + ); + cont.children.push( + Label.new(root, { + centerY: p50, + text: "Map" + }) + ); + var switchButton = cont.children.push( + Button.new(root, { + themeTags: ["switch"], + centerY: p50, + icon: Circle.new(root, { + themeTags: ["icon"] + }) + }) + ); + switchButton.on("active", function() { + if (!switchButton.get("active")) { + chart.set("projection", mercator_default()); + backgroundSeries.mapPolygons.template.set("fillOpacity", 0); + } else { + chart.set("projection", orthographic_default()); + backgroundSeries.mapPolygons.template.set("fillOpacity", 0.1); + } + }); + cont.children.push( + Label.new(root, { + centerY: p50, + text: "Globe" + }) + ); + chart.appear(1e3, 100); +})(); diff --git a/web/amCharts/scatter/chart_0057_scatter.html b/web/amCharts/scatter/chart_0057_scatter.html new file mode 100644 index 0000000000000000000000000000000000000000..4952a3e2cfd5ed50c6d5574b234427d159a01738 --- /dev/null +++ b/web/amCharts/scatter/chart_0057_scatter.html @@ -0,0 +1,1627 @@ + + + + + + scatter-2 + + + +
+ + + + diff --git a/web/amCharts/scatter/chart_0057_scatter.inline01.js b/web/amCharts/scatter/chart_0057_scatter.inline01.js new file mode 100644 index 0000000000000000000000000000000000000000..c3efb37ea4eca5162a51413838a65842b9660c13 --- /dev/null +++ b/web/amCharts/scatter/chart_0057_scatter.inline01.js @@ -0,0 +1,27951 @@ +(() => { +// node_modules/tslib/tslib.es6.mjs + function __awaiter(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Percent.js + var Percent = class _Percent { + /** + * Constructor. + * + * @param percent Percent value + */ + constructor(percent2) { + this._value = percent2; + } + /** + * Relative value. + * + * E.g. 100% is 1, 50% is 0.5, etc. + * + * This is useful to apply transformations to other values. E.g.: + * + * ```TypeScript + * let value = 256; + * let percent = new am5.p50; + * console.log(value * percent.value); // outputs 128 + * ``` + * ```JavaScript + * var value = 256; + * var percent = new am5.p50; + * console.log(value * percent.value); // outputs 128 + * ``` + * + * Alternatively, you can use `am5.percent()` helper function: + * + * ```TypeScript + * let value = 256; + * let percent = am5.p50; + * console.log(value * percent.value); // outputs 128 + * ``` + * ```JavaScript + * var value = 256; + * var percent = am5.p50; + * console.log(value * percent.value); // outputs 128 + * ``` + * + * @readonly + * @return Relative value + */ + get value() { + return this._value / 100; + } + /** + * Value in percent. + * + * @readonly + * @return Percent + */ + get percent() { + return this._value; + } + toString() { + return "" + this._value + "%"; + } + interpolate(min2, max2) { + return min2 + this.value * (max2 - min2); + } + static normalize(percent2, min2, max2) { + if (percent2 instanceof _Percent) { + return percent2; + } else { + if (min2 === max2) { + return new _Percent(0); + } else { + return new _Percent(Math.min(Math.max((percent2 - min2) * (1 / (max2 - min2)), 0), 1) * 100); + } + } + } + }; + function percent(value) { + return new Percent(value); + } + var p0 = percent(0); + var p100 = percent(100); + var p50 = percent(50); + function isPercent(value) { + return value instanceof Percent; + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Type.js + function isNaN2(value) { + return Number(value) !== value; + } + function getType(value) { + return {}.toString.call(value); + } + function toNumber(value) { + if (value != null && !isNumber(value)) { + let converted = Number(value); + if (isNaN2(converted) && isString(value) && value != "" && value.match(/[0-9]+/)) { + const newValue = value.replace(/[^0-9.\-]+/g, ""); + return value === newValue ? converted : toNumber(newValue); + } + return converted; + } + return value; + } + function toDate(value) { + if (isDate(value)) { + return new Date(value); + } else if (isNumber(value)) { + return new Date(value); + } else { + let num = Number(value); + if (!isNumber(num)) { + return new Date(value); + } else { + return new Date(num); + } + } + } + function numberToString(value) { + if (isNaN2(value)) { + return "NaN"; + } + if (value === Infinity) { + return "Infinity"; + } + if (value === -Infinity) { + return "-Infinity"; + } + if (value === 0 && 1 / value === -Infinity) { + return "-0"; + } + let negative = value < 0; + value = Math.abs(value); + let parsed = /^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec("" + value); + let digits = parsed[1]; + let decimals = parsed[2] || ""; + let res; + if (parsed[3] === void 0) { + res = decimals === "" ? digits : digits + "." + decimals; + } else { + let exponent = +parsed[3]; + if (value < 1) { + let zeros = exponent - 1; + res = "0." + repeat("0", zeros) + digits + decimals; + } else { + let zeros = exponent - decimals.length; + if (zeros === 0) { + res = digits + decimals; + } else if (zeros < 0) { + res = digits + decimals.slice(0, zeros) + "." + decimals.slice(zeros); + } else { + res = digits + decimals + repeat("0", zeros); + } + } + } + return negative ? "-" + res : res; + } + function repeat(string, amount) { + return new Array(amount + 1).join(string); + } + function isDate(value) { + return getType(value) === "[object Date]"; + } + function isString(value) { + return typeof value === "string"; + } + function isNumber(value) { + return typeof value === "number" && Number(value) == value; + } + function isObject(value) { + return typeof value === "object" && value !== null; + } + var PLACEHOLDER = "__\xA7\xA7\xA7__"; + var PLACEHOLDER2 = "__\xA7\xA7\xA7\xA7__"; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Array.js + function indexOf(array, value) { + const length = array.length; + for (let i = 0; i < length; ++i) { + if (array[i] === value) { + return i; + } + } + return -1; + } + function any(array, test) { + const length = array.length; + for (let i = 0; i < length; ++i) { + if (test(array[i])) { + return true; + } + } + return false; + } + function map(array, fn) { + const length = array.length; + const output = new Array(length); + for (let i = 0; i < length; ++i) { + output[i] = fn(array[i], i); + } + return output; + } + function each(array, fn) { + const length = array.length; + for (let i = 0; i < length; ++i) { + fn(array[i], i); + } + } + function eachReverse(array, fn) { + let i = array.length; + while (i > 0) { + --i; + fn(array[i], i); + } + } + function eachContinue(array, fn) { + const length = array.length; + for (let i = 0; i < length; ++i) { + if (!fn(array[i], i)) { + break; + } + } + } + function remove(array, element) { + let found = false; + let index = 0; + for (; ; ) { + index = array.indexOf(element, index); + if (index === -1) { + return found; + } else { + found = true; + array.splice(index, 1); + } + } + } + function removeFirst(array, element) { + let index = array.indexOf(element); + if (index !== -1) { + array.splice(index, 1); + return true; + } else { + return false; + } + } + function move(array, element, toIndex) { + let index = indexOf(array, element); + if (index !== -1) { + removeIndex(array, index); + } + if (toIndex == null) { + array.push(element); + } else { + insertIndex(array, toIndex, element); + } + } + function pushOne(array, element) { + if (array.indexOf(element) === -1) { + array.push(element); + } + } + function copy(array) { + const length = array.length; + const output = new Array(length); + for (let i = 0; i < length; ++i) { + output[i] = array[i]; + } + return output; + } + function insertIndex(array, index, value) { + array.splice(index, 0, value); + } + function removeIndex(array, index) { + array.splice(index, 1); + } + function findIndex(array, matches) { + const length = array.length; + for (let i = 0; i < length; ++i) { + if (matches(array[i], i)) { + return i; + } + } + return -1; + } + function findIndexReverse(array, matches) { + let i = array.length; + while (i > 0) { + --i; + if (matches(array[i], i)) { + return i; + } + } + return -1; + } + function find(array, matches) { + const index = findIndex(array, matches); + if (index !== -1) { + return array[index]; + } + } + function findReverse(array, matches) { + const index = findIndexReverse(array, matches); + if (index !== -1) { + return array[index]; + } + } + function getSortedIndex(array, ordering) { + let start = 0; + let end = array.length; + let found = false; + while (start < end) { + const pivot = start + end >> 1; + const order = ordering(array[pivot]); + if (order < 0) { + start = pivot + 1; + } else if (order === 0) { + found = true; + start = pivot + 1; + } else { + end = pivot; + } + } + return { + found, + index: found ? start - 1 : start + }; + } + function getFirstSortedIndex(array, ordering) { + let start = 0; + let end = array.length; + let found = false; + while (start < end) { + const pivot = start + end >> 1; + const order = ordering(array[pivot]); + if (order < 0) { + start = pivot + 1; + } else if (order === 0) { + found = true; + end = pivot; + } else { + end = pivot; + } + } + return { + found, + index: start + }; + } + function keepIf(array, keep) { + let i = array.length; + while (i > 0) { + --i; + if (!keep(array[i])) { + array.splice(i, 1); + } + } + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Object.js + function keys(object) { + return Object.keys(object); + } + function entries(object) { + return Object.entries(object); + } + function keysOrdered(object, order) { + return keys(object).sort(order); + } + function copy2(object) { + return Object.assign({}, object); + } + function each2(object, f) { + keys(object).forEach((key) => { + f(key, object[key]); + }); + } + function eachContinue2(object, fn) { + for (let key in object) { + if (hasKey(object, key)) { + if (!fn(key, object[key])) { + break; + } + } + } + } + function hasKey(object, key) { + return {}.hasOwnProperty.call(object, key); + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Disposer.js + var DisposerClass = class { + /** + * Constructor. + */ + constructor() { + this._disposed = false; + } + /** + * Checks if object is disposed. + * + * @return Disposed? + */ + isDisposed() { + return this._disposed; + } + /** + * Disposes the object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + this._dispose(); + } + } + }; + var Disposer = class { + /** + * Constructor. + * + * @param dispose Function that disposes object + */ + constructor(dispose) { + this._disposed = false; + this._dispose = dispose; + } + /** + * Checks if object is disposed. + * + * @return Disposed? + */ + isDisposed() { + return this._disposed; + } + /** + * Disposes the object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + this._dispose(); + } + } + }; + var ArrayDisposer = class extends DisposerClass { + constructor() { + super(...arguments); + this._disposers = []; + } + _dispose() { + each(this._disposers, (x2) => { + x2.dispose(); + }); + } + }; + var MultiDisposer = class extends DisposerClass { + constructor(disposers) { + super(); + this._disposers = disposers; + } + _dispose() { + each(this._disposers, (x2) => { + x2.dispose(); + }); + } + get disposers() { + return this._disposers; + } + }; + var CounterDisposer = class extends Disposer { + constructor() { + super(...arguments); + this._counter = 0; + } + /** + * [increment description] + * + * @todo Description + */ + increment() { + ++this._counter; + return new Disposer(() => { + --this._counter; + if (this._counter === 0) { + this.dispose(); + } + }); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Utils.js + function removeElement(el) { + if (el.parentNode) { + el.parentNode.removeChild(el); + } + } + function addEventListener(dom, type, listener, options) { + dom.addEventListener(type, listener, options || false); + return new Disposer(() => { + dom.removeEventListener(type, listener, options || false); + }); + } + function onZoom(listener) { + return addEventListener(window, "resize", (_ev) => { + listener(); + }); + } + function supports(cap) { + switch (cap) { + case "touchevents": + return window.hasOwnProperty("TouchEvent"); + case "pointerevents": + return window.hasOwnProperty("PointerEvent"); + case "mouseevents": + return window.hasOwnProperty("MouseEvent"); + case "wheelevents": + return window.hasOwnProperty("WheelEvent"); + case "keyboardevents": + return window.hasOwnProperty("KeyboardEvent"); + } + return false; + } + function getPointerId(event) { + let id = event.pointerId || 0; + return id; + } + function blur() { + if (document.activeElement && document.activeElement != document.body) { + if (document.activeElement.blur) { + document.activeElement.blur(); + } else { + let input = document.createElement("button"); + input.style.position = "fixed"; + input.style.top = "0px"; + input.style.left = "-10000px"; + document.body.appendChild(input); + input.focus(); + input.blur(); + document.body.removeChild(input); + } + } + } + function focus(el) { + if (el) { + el.focus(); + } + } + function getRendererEvent(key) { + if (supports("pointerevents")) { + return key; + } else if (supports("touchevents")) { + switch (key) { + case "pointerover": + return "touchstart"; + case "pointerout": + return "touchend"; + case "pointerleave": + return "touchend"; + case "pointerdown": + return "touchstart"; + case "pointermove": + return "touchmove"; + case "pointerup": + return "touchend"; + case "click": + return "click"; + case "dblclick": + return "dblclick"; + } + } else if (supports("mouseevents")) { + switch (key) { + case "pointerover": + return "mouseover"; + case "pointerout": + return "mouseout"; + case "pointerleave": + return "mouseleave"; + case "pointerdown": + return "mousedown"; + case "pointermove": + return "mousemove"; + case "pointerup": + return "mouseup"; + case "click": + return "click"; + case "dblclick": + return "dblclick"; + } + } + return key; + } + function isTouchEvent(ev) { + if (typeof Touch !== "undefined" && ev instanceof Touch) { + return true; + } else if (typeof PointerEvent !== "undefined" && ev instanceof PointerEvent && ev.pointerType != null) { + switch (ev.pointerType) { + case "touch": + case "pen": + case 2: + return true; + case "mouse": + case 4: + return false; + default: + return !(ev instanceof MouseEvent); + } + } else if (ev.type != null) { + if (ev.type.match(/^mouse/)) { + return false; + } + } + return true; + } + function setStyle(dom, property, value) { + dom.style[property] = value; + } + function getStyle(dom, property) { + return dom.style[property]; + } + function getEventTarget(event) { + if (event.composedPath) { + const path2 = event.composedPath(); + if (path2.length === 0) { + return null; + } else { + return path2[0]; + } + } else { + return event.target; + } + } + function contains(a, b) { + let cursor = b; + while (true) { + if (a === cursor) { + return true; + } else if (cursor.parentNode === null) { + if (cursor.host == null) { + return false; + } else { + cursor = cursor.host; + } + } else { + cursor = cursor.parentNode; + } + } + } + function isLocalEvent(event, target) { + return event.target && contains(target.root.dom, event.target); + } + function setInteractive(target, interactive) { + if (interactive) { + target.style.pointerEvents = "auto"; + } else { + target.style.pointerEvents = "none"; + } + } + function getEventKey(event) { + if (event.key !== void 0) { + return event.key; + } + switch (event.keyCode) { + case 9: + return "Tab"; + case 13: + return "Enter"; + case 16: + return "Shift"; + case 17: + return "Control"; + case 27: + return "Escape"; + case 32: + return " "; + case 37: + return "ArrowLeft"; + case 38: + return "ArrowUp"; + case 39: + return "ArrowRight"; + case 40: + return "ArrowDown"; + case 46: + return "Delete"; + } + return "" + event.keyCode; + } + function iOS() { + return /apple/i.test(navigator.vendor) && "ontouchend" in document; + } + function getSafeResolution() { + return iOS() ? 1 : void 0; + } + function relativeToValue(percent2, full) { + if (isNumber(percent2)) { + return percent2; + } else if (percent2 != null && isNumber(percent2.value) && isNumber(full)) { + return full * percent2.value; + } else { + return 0; + } + } + function decimalPlaces(number) { + let match = ("" + number).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/); + if (!match) { + return 0; + } + return Math.max(0, (match[1] ? match[1].length : 0) - (match[2] ? +match[2] : 0)); + } + function padString(value, len = 0, char = "0") { + if (typeof value !== "string") { + value = value.toString(); + } + return len > value.length ? Array(len - value.length + 1).join(char) + value : value; + } + function trimLeft(text) { + return text.replace(/^[\s]*/, ""); + } + function trimRight(text) { + return text.replace(/[\s]*$/, ""); + } + function trim(text) { + return trimLeft(trimRight(text)); + } + function truncateTextWithEllipsis(text, maxLength, breakWords = false, ellipsis = "...") { + if (text.length > maxLength) { + let lastNonAlphanumericIndex = maxLength - 1; + while (lastNonAlphanumericIndex >= 0 && text.charAt(lastNonAlphanumericIndex).match(/\w/)) { + lastNonAlphanumericIndex--; + } + if (lastNonAlphanumericIndex >= 0 && breakWords == false) { + return text.substring(0, lastNonAlphanumericIndex + 1) + "..."; + } else { + return text.substring(0, maxLength) + ellipsis; + } + } else { + return text; + } + } + function getFormat(format) { + if (typeof format === "undefined") { + return "string"; + } + format = format.toLowerCase().replace(/^\[[^\]]*\]/, ""); + format = format.replace(/\[[^\]]+\]/, ""); + format = format.trim(); + let hints = format.match(/\/(date|number|duration)$/); + if (hints) { + return hints[1]; + } + if (format === "number") { + return "number"; + } + if (format === "date") { + return "date"; + } + if (format === "duration") { + return "duration"; + } + if (format.match(/[#0]/)) { + return "number"; + } + if (format.match(/[ymwdhnsqaxkzgtei]/)) { + return "date"; + } + return "string"; + } + function cleanFormat(format) { + return format.replace(/\/(date|number|duration)$/i, ""); + } + function stripTags(text) { + return text ? text.replace(/<[^>]*>/g, "") : text; + } + function escapeForRgex(value) { + return value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); + } + function splitString(source) { + const rtlChar = /[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/; + const splitPattern = /([^اأدذرزو]*[اأدذرزو])/gi; + let segments = source.split(/(\s+)/); + let result = []; + segments.forEach((segment) => { + if (segment.match(/^\s+$/)) { + if (segment = " ") { + segment = " "; + } + result.push(segment); + } else if (rtlChar.test(segment)) { + let parts = segment.split(splitPattern).filter((part) => part !== ""); + result = result.concat(parts); + } else { + result = result.concat([...segment]); + } + }); + return result; + } + function getYearDay(date, utc = false) { + utc; + const start = new Date(date.getFullYear(), 0, 0); + const diff = date.getTime() - start.getTime() + (start.getTimezoneOffset() - date.getTimezoneOffset()) * 60 * 1e3; + const oneDay = 1e3 * 60 * 60 * 24; + return Math.floor(diff / oneDay); + } + function getWeek(date, _utc = false) { + const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())); + const day = d.getUTCDay() || 7; + d.setUTCDate(d.getUTCDate() + 4 - day); + const firstDay = new Date(Date.UTC(d.getUTCFullYear(), 0, 1)); + return Math.ceil(((d.getTime() - firstDay.getTime()) / 864e5 + 1) / 7); + } + function getWeekYear(date, _utc = false) { + const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())); + const day = d.getUTCDay() || 7; + d.setUTCDate(d.getUTCDate() + 4 - day); + const firstDay = new Date(Date.UTC(d.getUTCFullYear(), 0, 1)); + return firstDay.getFullYear(); + } + function getMonthWeek(date, utc = false) { + const firstWeek = getWeek(new Date(date.getFullYear(), date.getMonth(), 1), utc); + let currentWeek = getWeek(date, utc); + if (currentWeek == 1) { + currentWeek = 53; + } + return currentWeek - firstWeek + 1; + } + function getDayFromWeek(week, year, weekday = 1, utc = false) { + let date = new Date(year, 0, 4, 0, 0, 0, 0); + if (utc) { + date.setUTCFullYear(year); + } + let day = week * 7 + weekday - ((date.getDay() || 7) + 3); + return day; + } + function get12Hours(hours, base) { + if (hours > 12) { + hours -= 12; + } else if (hours === 0) { + hours = 12; + } + return base != null ? hours + (base - 1) : hours; + } + function getTimeZone(date, long = false, savings = false, utc = false, timezone) { + if (utc) { + return long ? "Coordinated Universal Time" : "UTC"; + } else if (timezone) { + const d1 = date.toLocaleString("en-US", { timeZone: timezone }); + const d2 = date.toLocaleString("en-US", { timeZone: timezone, timeZoneName: long ? "long" : "short" }); + return trim(d2.substr(d1.length)); + } + let wotz = date.toLocaleString("UTC"); + let wtz = date.toLocaleString("UTC", { timeZoneName: long ? "long" : "short" }).substr(wotz.length); + if (savings === false) { + wtz = wtz.replace(/ (standard|daylight|summer|winter) /i, " "); + } + return trim(wtz); + } + function getTimezoneOffset(timezone, targetDate) { + const date = targetDate || new Date(Date.UTC(2012, 0, 1, 0, 0, 0, 0)); + const utcDate = new Date(date.toLocaleString("en-US", { timeZone: "UTC" })); + const tzDate = new Date(date.toLocaleString("en-US", { timeZone: timezone })); + return (tzDate.getTime() - utcDate.getTime()) / 6e4 * -1; + } + function capitalizeFirst(text) { + return text.charAt(0).toUpperCase() + text.slice(1); + } + function hslToRgb(color2) { + let r, g, b; + let h = color2.h; + let s2 = color2.s; + let l = color2.l; + if (s2 == 0) { + r = g = b = l; + } else { + let hue2rgb = function hue2rgb2(p2, q2, t) { + if (t < 0) { + t += 1; + } + if (t > 1) { + t -= 1; + } + if (t < 1 / 6) { + return p2 + (q2 - p2) * 6 * t; + } + if (t < 1 / 2) { + return q2; + } + if (t < 2 / 3) { + return p2 + (q2 - p2) * (2 / 3 - t) * 6; + } + return p2; + }; + let q = l < 0.5 ? l * (1 + s2) : l + s2 - l * s2; + let p = 2 * l - q; + r = hue2rgb(p, q, h + 1 / 3); + g = hue2rgb(p, q, h); + b = hue2rgb(p, q, h - 1 / 3); + } + return { + r: Math.round(r * 255), + g: Math.round(g * 255), + b: Math.round(b * 255) + }; + } + function rgbToHsl(color2) { + let r = color2.r / 255; + let g = color2.g / 255; + let b = color2.b / 255; + let max2 = Math.max(r, g, b); + let min2 = Math.min(r, g, b); + let h = 0; + let s2 = 0; + let l = (max2 + min2) / 2; + if (max2 === min2) { + h = s2 = 0; + } else { + let d = max2 - min2; + s2 = l > 0.5 ? d / (2 - max2 - min2) : d / (max2 + min2); + switch (max2) { + case r: + h = (g - b) / d + (g < b ? 6 : 0); + break; + case g: + h = (b - r) / d + 2; + break; + case b: + h = (r - g) / d + 4; + break; + } + h /= 6; + } + return { + h, + s: s2, + l + }; + } + function lighten(rgb, percent2) { + if (rgb) { + return { + r: Math.max(0, Math.min(255, rgb.r + getLightnessStep(rgb.r, percent2))), + g: Math.max(0, Math.min(255, rgb.g + getLightnessStep(rgb.g, percent2))), + b: Math.max(0, Math.min(255, rgb.b + getLightnessStep(rgb.b, percent2))), + a: rgb.a + }; + } else { + return rgb; + } + } + function getLightnessStep(value, percent2) { + let base = percent2 > 0 ? 255 - value : value; + return Math.round(base * percent2); + } + function brighten(rgb, percent2) { + if (rgb) { + let base = Math.min(Math.max(rgb.r, rgb.g, rgb.b), 230); + let step = getLightnessStep(base, percent2); + return { + r: Math.max(0, Math.min(255, Math.round(rgb.r + step))), + g: Math.max(0, Math.min(255, Math.round(rgb.g + step))), + b: Math.max(0, Math.min(255, Math.round(rgb.b + step))), + a: rgb.a + }; + } else { + return rgb; + } + } + function isLight(color2) { + return (color2.r * 299 + color2.g * 587 + color2.b * 114) / 1e3 >= 128; + } + function saturate(rgb, saturation) { + if (rgb === void 0 || saturation == 1) { + return rgb; + } + let hsl = rgbToHsl(rgb); + hsl.s = saturation; + return hslToRgb(hsl); + } + function alternativeColor(color2, lightAlternative = { r: 255, g: 255, b: 255 }, darkAlternative = { r: 255, g: 255, b: 255 }) { + let light = lightAlternative; + let dark = darkAlternative; + if (isLight(darkAlternative)) { + light = darkAlternative; + dark = lightAlternative; + } + return isLight(color2) ? dark : light; + } + function mergeTags(tags1, tags2) { + if (!tags1) { + tags1 = []; + } + return [...tags1, ...tags2].filter((value, index, self) => { + return self.indexOf(value) === index; + }); + } + function sameBounds(a, b) { + if (!b) { + return false; + } + if (a.left != b.left) { + return false; + } + if (a.right != b.right) { + return false; + } + if (a.top != b.top) { + return false; + } + if (a.bottom != b.bottom) { + return false; + } + return true; + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Color.js + function string2hex(string) { + if (string[0] === "#") { + string = string.substr(1); + } + if (string.length == 3) { + string = string[0].repeat(2) + string[1].repeat(2) + string[2].repeat(2); + } + return parseInt(string, 16); + } + function rgba2hex(color2) { + color2 = color2.replace(/[ ]/g, ""); + let matches = color2.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i); + if (matches) { + matches.push("1"); + } else { + matches = color2.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i); + if (!matches) { + return 0; + } + } + let hex = ""; + for (let i = 1; i <= 3; i++) { + let val = parseInt(matches[i]).toString(16); + if (val.length == 1) { + val = "0" + val; + } + hex += val; + } + return string2hex(hex); + } + function color(input) { + return Color.fromAny(input); + } + var Color = class _Color { + constructor(hex) { + this._hex = hex | 0; + } + /** + * Color numeric value. + */ + get hex() { + return this._hex; + } + /** + * Value of color's R channel. + * @return R value + */ + get r() { + return this._hex >>> 16; + } + /** + * Value of color's G channel. + * @return G value + */ + get g() { + return this._hex >> 8 & 255; + } + /** + * Value of color's B channel. + * @return B value + */ + get b() { + return this._hex & 255; + } + /** + * Returns color CSS representation in form of `rgba(r, g, b, a)` string. + * + * @param alpha Opacity + * @return CSS string + */ + toCSS(alpha = 1) { + return "rgba(" + this.r + ", " + this.g + ", " + this.b + ", " + alpha + ")"; + } + /** + * Returns color CSS representation in form of `#rgb` string. + * + * @return CSS string + */ + toCSSHex() { + return "#" + padString(this.r.toString(16), 2) + padString(this.g.toString(16), 2) + padString(this.b.toString(16), 2); + } + /** + * Returns color's HSL info. + * @param alpha Opacity + * @return HSL info + */ + toHSL(alpha = 1) { + return rgbToHsl({ + r: this.r, + g: this.g, + b: this.b, + a: alpha + }); + } + /** + * Converts HSL values into a new [[Color]] object. + * + * @param h H value + * @param s S value + * @param l L value + * @return Color object + */ + static fromHSL(h, s2, l) { + const rgb = hslToRgb({ + h, + s: s2, + l + }); + return this.fromRGB(rgb.r, rgb.g, rgb.b); + } + toString() { + return this.toCSSHex(); + } + /** + * Converts hex number into a new [[Color]] object. + * + * ```TypeScript + * Color.fromHex(0xff0000) // red + * ``` + * ```JavaScript + * Color.fromHex(0xff0000) // red + * ``` + * + * @param hex Hex color + * @return Color + */ + static fromHex(hex) { + return new _Color(hex); + } + /** + * Converts RGB values to a new [[Color]] object. + * + * @param r R value + * @param g G value + * @param b B value + * @return Color + */ + static fromRGB(r, g, b) { + return new _Color((b | 0) + (g << 8) + (r << 16)); + } + /** + * Converts RGB string to a new [[Color]] object. + * + * ```TypeScript + * Color.fromString("#ff0000") // red + * ``` + * ```JavaScript + * Color.fromString("#ff0000") // red + * ``` + * + * @param s RGB string + * @return Color + */ + static fromString(s2) { + return new _Color(string2hex(s2)); + } + /** + * Converts CSS rgba() syntax to a new [[Color]] object. + * + * ```TypeScript + * Color.fromCSS("rgba(255, 0, 0, 1)") // red + * ``` + * ```JavaScript + * Color.fromCSS("rgba(255, 0, 0, 1)") // red + * ``` + * + * @param {string} s [description] + * @return {Color} [description] + */ + static fromCSS(s2) { + return new _Color(rgba2hex(s2)); + } + /** + * Convert to color from virtually anything. + * + * Will throw an exception if unable to resolve the color. + * + * @param s Source + * @return Color + */ + static fromAny(s2) { + if (isString(s2)) { + if (s2[0] == "#") { + return _Color.fromString(s2); + } else if (s2.substr(0, 3) == "rgb") { + return _Color.fromCSS(s2); + } + } else if (isNumber(s2)) { + return _Color.fromHex(s2); + } else if (s2 instanceof _Color) { + return _Color.fromHex(s2.hex); + } + throw new Error("Unknown color syntax: " + s2); + } + /** + * Returns a new [[Color]] object based on either `lightAlternative` or + * `darkAlternative` depending on which one is more contrasting with + * the `color`. + * + * @param color Reference color + * @param lightAlternative Light color + * @param darkAlternative Dark color + * @return Alternative color + */ + static alternative(color2, lightAlternative, darkAlternative) { + const rgb = alternativeColor({ r: color2.r, g: color2.g, b: color2.b }, lightAlternative ? { r: lightAlternative.r, g: lightAlternative.g, b: lightAlternative.b } : void 0, darkAlternative ? { r: darkAlternative.r, g: darkAlternative.g, b: darkAlternative.b } : void 0); + return this.fromRGB(rgb.r, rgb.g, rgb.b); + } + /** + * Returns an intermediate Color between two reference colors depending on + * the progress (`diff`) between the two. + * + * @param diff Progress + * @param from Source color + * @param to Target color + * @param mode Interpolation mode + * @return Color + */ + static interpolate(diff, from, to, mode = "rgb") { + if (mode == "hsl") { + const fromHSL = from.toHSL(); + const toHSL = to.toHSL(); + return _Color.fromHSL(range(diff, fromHSL.h, toHSL.h), range(diff, fromHSL.s, toHSL.s), range(diff, fromHSL.l, toHSL.l)); + } else { + return _Color.fromRGB(range(diff, from.r, to.r), range(diff, from.g, to.g), range(diff, from.b, to.b)); + } + } + /** + * Returns a new [[Color]] lightened by `percent` value. + * + * Use negative value to darken the color. + * + * @param color Source color + * @param percent Percent + * @return New color + */ + static lighten(color2, percent2) { + const rgb = lighten({ r: color2.r, g: color2.g, b: color2.b }, percent2); + return _Color.fromRGB(rgb.r, rgb.g, rgb.b); + } + /** + * Returns a new [[Color]] brightened by `percent` value. + * + * Use negative value to dim the color. + * + * @param color Source color + * @param percent Percent + * @return New color + */ + static brighten(color2, percent2) { + const rgb = brighten({ r: color2.r, g: color2.g, b: color2.b }, percent2); + return _Color.fromRGB(rgb.r, rgb.g, rgb.b); + } + /** + * Returns a new [[Color]] saturated by `percent` value. + * + * Value range is between `0` (fully desaturated), to `1` (full color). + * + * @param color Source color + * @param percent Percent + * @return New color + */ + static saturate(color2, percent2) { + const rgb = saturate({ r: color2.r, g: color2.g, b: color2.b }, percent2); + return _Color.fromRGB(rgb.r, rgb.g, rgb.b); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/EventDispatcher.js + var EventDispatcher = class { + /** + * Constructor + */ + constructor() { + this._listeners = []; + this._killed = []; + this._disabled = {}; + this._iterating = 0; + this._enabled = true; + this._disposed = false; + } + /** + * Returns if this object has been already disposed. + * + * @return Disposed? + */ + isDisposed() { + return this._disposed; + } + /** + * Dispose (destroy) this object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + const a = this._listeners; + this._iterating = 1; + this._listeners = null; + this._disabled = null; + try { + each(a, (x2) => { + x2.disposer.dispose(); + }); + } finally { + this._killed = null; + this._iterating = null; + } + } + } + /** + * Checks if this particular event dispatcher has any listeners set. + * + * @return Has listeners? + */ + hasListeners() { + return this._listeners.length !== 0; + } + /** + * Checks if this particular event dispatcher has any particular listeners set. + * + * @return Has particular event listeners? + */ + hasListenersByType(type) { + return any(this._listeners, (x2) => (x2.type === null || x2.type === type) && !x2.killed); + } + /** + * Enable dispatching of events if they were previously disabled by + * `disable()`. + */ + enable() { + this._enabled = true; + } + /** + * Disable dispatching of events until re-enabled by `enable()`. + */ + disable() { + this._enabled = false; + } + /** + * Enable dispatching particular event, if it was disabled before by + * `disableType()`. + * + * @param type Event type + */ + enableType(type) { + delete this._disabled[type]; + } + /** + * Disable dispatching of events for a certain event type. + * + * Optionally, can set how many dispatches to skip before automatically + * re-enabling the dispatching. + * + * @param type Event type + * @param amount Number of event dispatches to skip + */ + disableType(type, amount = Infinity) { + this._disabled[type] = amount; + } + /** + * Removes listener from dispatcher. + * + * Will throw an exception if such listener does not exists. + * + * @param listener Listener to remove + */ + _removeListener(listener) { + if (this._iterating === 0) { + const index = this._listeners.indexOf(listener); + if (index === -1) { + throw new Error("Invalid state: could not remove listener"); + } + this._listeners.splice(index, 1); + } else { + this._killed.push(listener); + } + } + /** + * Removes existing listener by certain parameters. + * + * @param once Listener's once setting + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + */ + _removeExistingListener(once, type, callback, context) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + this._eachListener((info) => { + if (info.once === once && // TODO is this correct ? + info.type === type && (callback === void 0 || info.callback === callback) && info.context === context) { + info.disposer.dispose(); + } + }); + } + /** + * Checks if dispatching for particular event type is enabled. + * + * @param type Event type + * @return Enabled? + */ + isEnabled(type) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + return this._enabled && this._listeners.length > 0 && this.hasListenersByType(type) && this._disabled[type] === void 0; + } + /** + * Removes all listeners of a particular event type + * + * @param type Listener's type + */ + removeType(type) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + this._eachListener((info) => { + if (info.type === type) { + info.disposer.dispose(); + } + }); + } + /** + * Checks if there's already a listener with specific parameters. + * + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + * @return Has listener? + */ + has(type, callback, context) { + const index = findIndex(this._listeners, (info) => { + return info.once !== true && // Ignoring "once" listeners + info.type === type && (callback === void 0 || info.callback === callback) && info.context === context; + }); + return index !== -1; + } + /** + * Checks whether event of the particular type should be dispatched. + * + * @param type Event type + * @return Dispatch? + */ + _shouldDispatch(type) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + const count = this._disabled[type]; + if (!isNumber(count)) { + return this._enabled; + } else { + if (count <= 1) { + delete this._disabled[type]; + } else { + --this._disabled[type]; + } + return false; + } + } + /** + * [_eachListener description] + * + * All of this extra code is needed when a listener is removed while iterating + * + * @todo Description + * @param fn [description] + */ + _eachListener(fn) { + ++this._iterating; + try { + each(this._listeners, fn); + } finally { + --this._iterating; + if (this._iterating === 0 && this._killed.length !== 0) { + each(this._killed, (killed) => { + this._removeListener(killed); + }); + this._killed.length = 0; + } + } + } + /** + * Dispatches an event immediately without waiting for next cycle. + * + * @param type Event type + * @param event Event object + * @todo automatically add in type and target properties if they are missing + */ + dispatch(type, event) { + if (this._shouldDispatch(type)) { + this._eachListener((listener) => { + if (!listener.killed && (listener.type === null || listener.type === type)) { + if (listener._debounceDelay) { + if (listener._debounceTimeout) { + window.clearTimeout(listener._debounceTimeout); + } + listener._debounceTimeout = window.setTimeout(() => { + listener._debounceTimeout = void 0; + if (!listener.killed) { + listener.dispatch(type, event); + } + }, listener._debounceDelay); + } else { + listener.dispatch(type, event); + } + } + }); + } + } + /** + * Shelves the event to be dispatched within next update cycle. + * + * @param type Event type + * @param event Event object + * @todo automatically add in type and target properties if they are missing + */ + /*public dispatchLater(type: Key, event: T[Key]): void { + if (this._shouldDispatch(type)) { + this._eachListener((listener) => { + // TODO check if it's faster to use an object of listeners rather than a single big array + if (!listener.killed && (listener.type === null || listener.type === type)) { + // TODO if the function throws, maybe it should keep going ? + // TODO dispatch during the update cycle, rather than using whenIdle + $async.whenIdle(() => { + if (!listener.killed) { + listener.dispatch(type, event); + } + }); + } + }); + } + }*/ + /** + * Creates, catalogs and returns an [[EventListener]]. + * + * Event listener can be disposed. + * + * @param once Listener's once setting + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @param dispatch + * @returns An event listener + */ + _on(once, type, callback, context, shouldClone, dispatch, debounceDelay) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + this._removeExistingListener(once, type, callback, context); + const info = { + type, + callback, + context, + shouldClone, + dispatch, + killed: false, + once, + disposer: new Disposer(() => { + info.killed = true; + if (info._debounceTimeout) { + window.clearTimeout(info._debounceTimeout); + } + this._removeListener(info); + }), + _debounceDelay: debounceDelay + }; + this._listeners.push(info); + return info; + } + /** + * Creates an event listener to be invoked on **any** event. + * + * @param callback Callback function + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @returns A disposable event listener + */ + onAll(callback, context, shouldClone = true) { + return this._on(false, null, callback, context, shouldClone, (_type, event) => callback.call(context, event)).disposer; + } + /** + * Creates an event listener to be invoked on a specific event type. + * + * ```TypeScript + * button.events.once("click", (ev) => { + * console.log("Button clicked"); + * }, this); + * ``` + * ```JavaScript + * button.events.once("click", function(ev) { + * console.log("Button clicked"); + * }, this); + * ``` + * + * The above will invoke our custom event handler whenever series we put + * event on is hidden. + * + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @returns A disposable event listener + */ + on(type, callback, context, shouldClone = true) { + return this._on(false, type, callback, context, shouldClone, (_type, event) => callback.call(context, event)).disposer; + } + /** + * Creates a debounced event listener to be invoked on a specific event type. + * + * ```TypeScript + * button.events.onDebounced("click", (ev) => { + * console.log("Button clicked"); + * }, 500, this); + * ``` + * ```JavaScript + * button.events.onDebounced("click", function(ev) { + * console.log("Button clicked"); + * }, 500, this); + * ``` + * + * The above will invoke our custom event handler whenever series we put + * event on is hidden. + * + * @param type Listener's type + * @param callback Callback function + * @param debounceDelay Debounce delay in milliseconds + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @returns A disposable event listener + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Debounced_events} for more info + * @since 5.14.0 + */ + onDebounced(type, callback, debounceDelay, context, shouldClone = true) { + return this._on(false, type, callback, context, shouldClone, (_type, event) => callback.call(context, event), debounceDelay).disposer; + } + /** + * Creates an event listener to be invoked on a specific event type once. + * + * Once the event listener is invoked, it is automatically disposed. + * + * ```TypeScript + * button.events.once("click", (ev) => { + * console.log("Button clicked"); + * }, this); + * ``` + * ```JavaScript + * button.events.once("click", function(ev) { + * console.log("Button clicked"); + * }, this); + * ``` + * + * The above will invoke our custom event handler the first time series we + * put event on is hidden. + * + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @returns A disposable event listener + */ + once(type, callback, context, shouldClone = true) { + const x2 = this._on(true, type, callback, context, shouldClone, (_type, event) => { + x2.disposer.dispose(); + callback.call(context, event); + }); + return x2.disposer; + } + /** + * Removes the event listener with specific parameters. + * + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + */ + off(type, callback, context) { + this._removeExistingListener(false, type, callback, context); + } + /** + * Copies all dispatcher parameters, including listeners, from another event + * dispatcher. + * + * @param source Source event dispatcher + * @ignore + */ + copyFrom(source) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + if (source === this) { + throw new Error("Cannot copyFrom the same TargetedEventDispatcher"); + } + const disposers = []; + each(source._listeners, (x2) => { + if (!x2.killed && x2.shouldClone) { + if (x2.type === null) { + disposers.push(this.onAll(x2.callback, x2.context)); + } else if (x2.once) { + disposers.push(this.once(x2.type, x2.callback, x2.context)); + } else { + disposers.push(this.on(x2.type, x2.callback, x2.context)); + } + } + }); + return new MultiDisposer(disposers); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Animation.js + function waitForAnimations(animations) { + return __awaiter(this, void 0, void 0, function* () { + if (animations !== void 0) { + const promises = []; + each2(animations, (_, animation) => { + promises.push(animation.waitForStop()); + }); + yield Promise.all(promises); + } + }); + } + function range(diff, from, to) { + return from + diff * (to - from); + } + function defaultInterpolate(diff, from, to) { + if (diff >= 1) { + return to; + } else { + return from; + } + } + function percentInterpolate(diff, from, to) { + return new Percent(range(diff, from.percent, to.percent)); + } + function colorInterpolate(diff, from, to) { + return Color.interpolate(diff, from, to); + } + function getInterpolate(from, to) { + if (typeof from === "number" && typeof to === "number") { + return range; + } + if (from instanceof Percent && to instanceof Percent) { + return percentInterpolate; + } + if (from instanceof Color && to instanceof Color) { + return colorInterpolate; + } + return defaultInterpolate; + } + var AnimationState; + (function(AnimationState2) { + AnimationState2[AnimationState2["Stopped"] = 0] = "Stopped"; + AnimationState2[AnimationState2["Playing"] = 1] = "Playing"; + AnimationState2[AnimationState2["Paused"] = 2] = "Paused"; + })(AnimationState || (AnimationState = {})); + + // node_modules/@amcharts/amcharts5/.internal/core/util/List.js + function checkBounds(index, len) { + if (!(index >= 0 && index < len)) { + throw new Error("Index out of bounds: " + index); + } + } + var List = class { + /** + * Constructor + * + * @param initial Inital list of values to add to list + */ + constructor(initial = []) { + this.events = new EventDispatcher(); + this._values = initial; + } + /** + * An array of values in the list. + * + * Do not use this property to add values. Rather use dedicated methods, like + * `push()`, `removeIndex()`, etc. + * + * @readonly + * @return List values + */ + get values() { + return this._values; + } + /** + * Checks if list contains specific item reference. + * + * @param item Item to search for + * @return `true` if found, `false` if not found + */ + contains(value) { + return this._values.indexOf(value) !== -1; + } + /** + * Removes specific item from the list. + * + * @param item An item to remove + */ + removeValue(value) { + let i = 0; + let length = this._values.length; + while (i < length) { + if (this._values[i] === value) { + this.removeIndex(i); + --length; + } else { + ++i; + } + } + } + /** + * Searches the list for specific item and returns its index. + * + * @param item An item to search for + * @return Index or -1 if not found + */ + indexOf(value) { + return indexOf(this._values, value); + } + /** + * Number of items in list. + * + * @readonly + * @return Number of items + */ + get length() { + return this._values.length; + } + /** + * Checks if there's a value at specific index. + * + * @param index Index + * @return Value exists? + */ + hasIndex(index) { + return index >= 0 && index < this._values.length; + } + /** + * Returns an item at specified index. + * + * @param index Index + * @return List item + */ + getIndex(index) { + return this._values[index]; + } + _onPush(newValue) { + if (this.events.isEnabled("push")) { + this.events.dispatch("push", { + type: "push", + target: this, + newValue + }); + } + } + _onInsertIndex(index, newValue) { + if (this.events.isEnabled("insertIndex")) { + this.events.dispatch("insertIndex", { + type: "insertIndex", + target: this, + index, + newValue + }); + } + } + _onSetIndex(index, oldValue, newValue) { + if (this.events.isEnabled("setIndex")) { + this.events.dispatch("setIndex", { + type: "setIndex", + target: this, + index, + oldValue, + newValue + }); + } + } + _onSwap(a, b) { + if (this.events.isEnabled("swap")) { + this.events.dispatch("swap", { + type: "swap", + target: this, + a, + b + }); + } + } + _onRemoveIndex(index, oldValue) { + if (this.events.isEnabled("removeIndex")) { + this.events.dispatch("removeIndex", { + type: "removeIndex", + target: this, + index, + oldValue + }); + } + } + _onMoveIndex(oldIndex, newIndex, value) { + if (this.events.isEnabled("moveIndex")) { + this.events.dispatch("moveIndex", { + type: "moveIndex", + target: this, + oldIndex, + newIndex, + value + }); + } + } + _onClear(oldValues) { + if (this.events.isEnabled("clear")) { + this.events.dispatch("clear", { + type: "clear", + target: this, + oldValues + }); + } + } + /** + * Sets value at specific index. + * + * If there's already a value at the index, it is overwritten. + * + * @param index Index + * @param value New value + * @return New value + */ + setIndex(index, value) { + checkBounds(index, this._values.length); + const oldValue = this._values[index]; + if (oldValue !== value) { + this._values[index] = value; + this._onSetIndex(index, oldValue, value); + } + return oldValue; + } + /** + * Adds an item to the list at a specific index, which pushes all the other + * items further down the list. + * + * @param index Index + * @param item An item to add + */ + insertIndex(index, value) { + checkBounds(index, this._values.length + 1); + insertIndex(this._values, index, value); + this._onInsertIndex(index, value); + return value; + } + /** + * Swaps indexes of two items in the list. + * + * @param a Item 1 + * @param b Item 2 + */ + swap(a, b) { + const len = this._values.length; + checkBounds(a, len); + checkBounds(b, len); + if (a !== b) { + const value_a = this._values[a]; + const value_b = this._values[b]; + this._values[a] = value_b; + this._values[b] = value_a; + this._onSwap(value_a, value_b); + } + } + /** + * Removes a value at specific index. + * + * @param index Index of value to remove + * @return Removed value + */ + removeIndex(index) { + checkBounds(index, this._values.length); + const oldValue = this._values[index]; + removeIndex(this._values, index); + this._onRemoveIndex(index, oldValue); + return oldValue; + } + /** + * Moves an item to a specific index within the list. + * + * If the index is not specified it will move the item to the end of the + * list. + * + * @param value Item to move + * @param index Index to place item at + */ + moveValue(value, toIndex) { + let index = this.indexOf(value); + if (index !== -1) { + removeIndex(this._values, index); + if (toIndex == null) { + const toIndex2 = this._values.length; + this._values.push(value); + this._onMoveIndex(index, toIndex2, value); + } else { + insertIndex(this._values, toIndex, value); + this._onMoveIndex(index, toIndex, value); + } + } else if (toIndex == null) { + this._values.push(value); + this._onPush(value); + } else { + insertIndex(this._values, toIndex, value); + this._onInsertIndex(toIndex, value); + } + return value; + } + /** + * Adds an item to the end of the list. + * + * @param item An item to add + */ + push(value) { + this._values.push(value); + this._onPush(value); + return value; + } + /** + * Adds an item as a first item in the list. + * + * @param item An item to add + */ + unshift(value) { + this.insertIndex(0, value); + return value; + } + /** + * Adds multiple items to the list. + * + * @param items An Array of items to add + */ + pushAll(values) { + each(values, (value) => { + this.push(value); + }); + } + /** + * Copies and adds items from abother list. + * + * @param source A list top copy items from + */ + copyFrom(source) { + this.pushAll(source._values); + } + /** + * Returns the last item from the list, and removes it. + * + * @return Item + */ + pop() { + let index = this._values.length - 1; + return index < 0 ? void 0 : this.removeIndex(this._values.length - 1); + } + /** + * Returns the first item from the list, and removes it. + * + * @return Item + */ + shift() { + return this._values.length ? this.removeIndex(0) : void 0; + } + /** + * Sets multiple items to the list. + * + * All current items are removed. + * + * @param newArray New items + */ + setAll(newArray) { + const old = this._values; + this._values = []; + this._onClear(old); + each(newArray, (value) => { + this._values.push(value); + this._onPush(value); + }); + } + /** + * Removes all items from the list. + */ + clear() { + this.setAll([]); + } + /** + * Returns an ES6 iterator for the list. + */ + *[Symbol.iterator]() { + const length = this._values.length; + for (let i = 0; i < length; ++i) { + yield this._values[i]; + } + } + /** + * Calls `f` for each element in the list. + * + * `f` should have at least one parameter defined which will get a current + * item, with optional second argument - index. + */ + each(f) { + each(this._values, f); + } + /** + * Calls `f` for each element in the list, from right to left. + * + * `f` should have at least one parameter defined which will get a current + * item, with optional second argument - index. + */ + eachReverse(f) { + eachReverse(this._values, f); + } + }; + var ListAutoDispose = class extends List { + constructor() { + super(...arguments); + this.autoDispose = true; + this._disposed = false; + } + /** + * Swaps indexes of two items in the list. + * + * @param a Item 1 + * @param b Item 2 + */ + swap(a, b) { + const currentAutoDispose = this.autoDispose; + this.autoDispose = false; + super.swap(a, b); + this.autoDispose = currentAutoDispose; + } + _onSetIndex(index, oldValue, newValue) { + if (this.autoDispose) { + oldValue.dispose(); + } + super._onSetIndex(index, oldValue, newValue); + } + _onRemoveIndex(index, oldValue) { + if (this.autoDispose) { + oldValue.dispose(); + } + super._onRemoveIndex(index, oldValue); + } + _onClear(oldValues) { + if (this.autoDispose) { + each(oldValues, (x2) => { + x2.dispose(); + }); + } + super._onClear(oldValues); + } + _dispose() { + if (this.autoDispose) { + each(this._values, (x2) => { + x2.dispose(); + }); + } + } + isDisposed() { + return this._disposed; + } + dispose() { + if (!this._disposed) { + this._disposed = true; + this._dispose(); + } + } + }; + var ListTemplate = class extends ListAutoDispose { + constructor(template, make) { + super(); + this.template = template; + this.make = make; + } + _dispose() { + super._dispose(); + if (this.autoDispose) { + this.template.dispose(); + } + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Children.js + var Children = class extends List { + constructor(container) { + super(); + this._disposed = false; + this._container = container; + this._events = this.events.onAll((change) => { + if (change.type === "clear") { + each(change.oldValues, (x2) => { + this._onRemoved(x2); + }); + } else if (change.type === "push") { + this._onInserted(change.newValue); + } else if (change.type === "setIndex") { + this._onRemoved(change.oldValue); + this._onInserted(change.newValue, change.index); + } else if (change.type === "insertIndex") { + this._onInserted(change.newValue, change.index); + } else if (change.type === "removeIndex") { + this._onRemoved(change.oldValue); + } else if (change.type === "moveIndex") { + this._onRemoved(change.value); + this._onInserted(change.value, change.newIndex); + } else { + throw new Error("Unknown IListEvent type"); + } + }); + } + _onInserted(child, index) { + child._setParent(this._container, true); + const childrenDisplay = this._container._childrenDisplay; + if (index === void 0) { + childrenDisplay.addChild(child._display); + } else { + childrenDisplay.addChildAt(child._display, index); + } + } + _onRemoved(child) { + this._container._childrenDisplay.removeChild(child._display); + this._container.markDirtyBounds(); + this._container.markDirty(); + } + /** + * Returns `true` if obejct is disposed. + */ + isDisposed() { + return this._disposed; + } + /** + * Permanently dispose this object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + this._events.dispose(); + each(this.values, (child) => { + child.dispose(); + }); + } + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Math.js + var PI = Math.PI; + var HALFPI = PI / 2; + var RADIANS = PI / 180; + var DEGREES = 180 / PI; + function round(value, precision, floor) { + if (!isNumber(precision) || precision <= 0) { + let rounded = Math.round(value); + if (floor) { + if (rounded - value == 0.5) { + rounded--; + } + } + return rounded; + } else { + let d = Math.pow(10, precision); + return Math.round(value * d) / d; + } + } + function ceil(value, precision) { + if (!isNumber(precision) || precision <= 0) { + return Math.ceil(value); + } else { + let d = Math.pow(10, precision); + return Math.ceil(value * d) / d; + } + } + function fitToRange(value, min2, max2) { + return Math.min(Math.max(value, min2), max2); + } + function sin(angle) { + return Math.sin(RADIANS * angle); + } + function cos(angle) { + return Math.cos(RADIANS * angle); + } + function normalizeAngle(value) { + value = value % 360; + if (value < 0) { + value += 360; + } + return value; + } + function getArcBounds(cx, cy, startAngle, endAngle, radius) { + let minX = Number.MAX_VALUE; + let minY = Number.MAX_VALUE; + let maxX = -Number.MAX_VALUE; + let maxY = -Number.MAX_VALUE; + let bpoints = []; + bpoints.push(getArcPoint(radius, startAngle)); + bpoints.push(getArcPoint(radius, endAngle)); + let fromAngle = Math.min(Math.floor(startAngle / 90) * 90, Math.floor(endAngle / 90) * 90); + let toAngle = Math.max(Math.ceil(startAngle / 90) * 90, Math.ceil(endAngle / 90) * 90); + for (let angle = fromAngle; angle <= toAngle; angle += 90) { + if (angle >= startAngle && angle <= endAngle) { + bpoints.push(getArcPoint(radius, angle)); + } + } + for (let i = 0; i < bpoints.length; i++) { + let pt = bpoints[i]; + if (pt.x < minX) { + minX = pt.x; + } + if (pt.y < minY) { + minY = pt.y; + } + if (pt.x > maxX) { + maxX = pt.x; + } + if (pt.y > maxY) { + maxY = pt.y; + } + } + return { left: cx + minX, top: cy + minY, right: cx + maxX, bottom: cy + maxY }; + } + function getArcPoint(radius, arc) { + return { x: radius * cos(arc), y: radius * sin(arc) }; + } + function inBounds(point, bounds) { + if (point.x >= bounds.left && point.y >= bounds.top && point.x <= bounds.right && point.y <= bounds.bottom) { + return true; + } + return false; + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Ease.js + function linear(t) { + return t; + } + function cubic(t) { + return t * t * t; + } + function out(ease) { + return function(t) { + return 1 - ease(1 - t); + }; + } + var b1 = 4 / 11; + var b2 = 6 / 11; + var b3 = 8 / 11; + var b4 = 3 / 4; + var b5 = 9 / 11; + var b6 = 10 / 11; + var b7 = 15 / 16; + var b8 = 21 / 22; + var b9 = 63 / 64; + var b0 = 1 / b1 / b1; + var tau = 2 * Math.PI; + var amplitude = 1; + var period = 0.3 / tau; + var s = Math.asin(1 / amplitude) * period; + + // node_modules/@amcharts/amcharts5/.internal/core/util/States.js + var State = class { + constructor(entity, settings) { + this._userSettings = {}; + this._entity = entity; + this._settings = settings; + each2(settings, (key) => { + this._userSettings[key] = true; + }); + } + get(key, fallback) { + const value = this._settings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + /** + * @ignore + */ + setRaw(key, value) { + this._settings[key] = value; + } + /** + * Sets a setting `value` for the specified `key` to be set when the state + * is applied. + * + * @param key Setting key + * @param value Setting value + * @return Setting value + */ + set(key, value) { + this._userSettings[key] = true; + this.setRaw(key, value); + } + /** + * Removes a setting value for the specified `key`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + */ + remove(key) { + delete this._userSettings[key]; + delete this._settings[key]; + } + /** + * Sets multiple settings at once. + * + * `settings` must be an object with key: value pairs. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param settings Settings + */ + setAll(settings) { + entries(settings).forEach(([key, value]) => { + this.set(key, value); + }); + } + _eachSetting(f) { + each2(this._settings, f); + } + /** + * Applies the state to the target element. + * + * All setting values are set immediately. + */ + apply() { + const seen = {}; + seen["stateAnimationEasing"] = true; + seen["stateAnimationDuration"] = true; + const defaultState = this._entity.states.lookup("default"); + this._eachSetting((key, value) => { + if (!seen[key]) { + seen[key] = true; + if (this !== defaultState) { + if (!(key in defaultState._settings)) { + defaultState._settings[key] = this._entity.get(key); + } + } + this._entity.set(key, value); + } + }); + } + /** + * Applies the state to the target element. + * + * Returns an object representing all [[Animation]] objects created for + * each setting key transition. + * + * @return Animations + */ + applyAnimate(duration) { + if (duration == null) { + duration = this._settings.stateAnimationDuration; + } + if (duration == null) { + duration = this.get("stateAnimationDuration", this._entity.get("stateAnimationDuration", 0)); + } + let easing = this._settings.stateAnimationEasing; + if (easing == null) { + easing = this.get("stateAnimationEasing", this._entity.get("stateAnimationEasing", cubic)); + } + const defaultState = this._entity.states.lookup("default"); + const seen = {}; + seen["stateAnimationEasing"] = true; + seen["stateAnimationDuration"] = true; + const animations = {}; + this._eachSetting((key, value) => { + if (!seen[key]) { + seen[key] = true; + if (this != defaultState) { + if (!(key in defaultState._settings)) { + defaultState._settings[key] = this._entity.get(key); + } + } + const animation = this._entity.animate({ + key, + to: value, + duration, + easing + }); + if (animation) { + animations[key] = animation; + } + } + }); + return animations; + } + }; + var States = class { + constructor(entity) { + this._states = {}; + this._entity = entity; + } + /** + * Checks if a state by `name` exists. Returns it there is one. + * + * @param name State name + * @return State + */ + lookup(name) { + return this._states[name]; + } + /** + * Sets supplied `settings` on a state by the `name`. + * + * If such state does not yet exists, it is created. + * + * @param name State name + * @param settings Settings + * @return New State + */ + create(name, settings) { + const state = this._states[name]; + if (state) { + state.setAll(settings); + return state; + } else { + const state2 = new State(this._entity, settings); + this._states[name] = state2; + return state2; + } + } + /** + * Removes the state called `name`. + * + * @param name State name + */ + remove(name) { + delete this._states[name]; + } + /** + * Applies a named state to the target element. + * + * @param newState State name + */ + apply(newState) { + const state = this._states[newState]; + if (state) { + state.apply(); + } + this._entity._applyState(newState); + } + /** + * Applies a named state to the element. + * + * Returns an object representing all [[Animation]] objects created for + * each setting key transition. + * + * @param newState State name + * @return Animations + */ + applyAnimate(newState, duration) { + let animations; + const state = this._states[newState]; + if (state) { + animations = state.applyAnimate(duration); + } + this._entity._applyStateAnimated(newState, duration); + return animations; + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/Registry.js + var Registry = class { + constructor() { + this.version = "5.16.0"; + this.licenses = []; + this.entitiesById = {}; + this.rootElements = []; + this.autoDispose = false; + } + }; + var registry = new Registry(); + + // node_modules/@amcharts/amcharts5/.internal/core/util/Order.js + function compare(left, right) { + if (left === right) { + return 0; + } else if (left < right) { + return -1; + } else { + return 1; + } + } + function compareArray(left, right, f) { + const leftLength = left.length; + const rightLength = right.length; + const length = Math.min(leftLength, rightLength); + for (let i = 0; i < length; ++i) { + const order = f(left[i], right[i]); + if (order !== 0) { + return order; + } + } + return compare(leftLength, rightLength); + } + function compareNumber(a, b) { + if (a === b) { + return 0; + } else if (a < b) { + return -1; + } else { + return 1; + } + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Entity.js + var Adapters = class { + constructor(entity) { + this._callbacks = {}; + this._disabled = {}; + this._entity = entity; + } + /** + * Add a function (`callback`) that will modify value for setting `key`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/adapters/} for more info + */ + add(key, callback) { + let callbacks = this._callbacks[key]; + if (callbacks === void 0) { + callbacks = this._callbacks[key] = []; + } + callbacks.push(callback); + this._entity._markDirtyKey(key); + return new Disposer(() => { + if (removeFirst(callbacks, callback)) { + this._entity._markDirtyKey(key); + } + }); + } + /** + * Removes all adapters for the specific key. + * + * @since 5.1.0 + */ + remove(key) { + const callbacks = this._callbacks[key]; + if (callbacks !== void 0) { + delete this._callbacks[key]; + if (callbacks.length !== 0) { + this._entity._markDirtyKey(key); + } + } + } + /** + * Enables (previously disabled) adapters for specific key. + * + * @since 5.1.0 + */ + enable(key) { + if (this._disabled[key]) { + delete this._disabled[key]; + this._entity._markDirtyKey(key); + } + } + /** + * Disables all adapters for specific key. + * + * @since 5.1.0 + */ + disable(key) { + if (!this._disabled[key]) { + this._disabled[key] = true; + this._entity._markDirtyKey(key); + } + } + /** + * @ignore + */ + fold(key, value) { + if (!this._disabled[key]) { + const callbacks = this._callbacks[key]; + if (callbacks !== void 0) { + for (let i = 0, len = callbacks.length; i < len; ++i) { + value = callbacks[i](value, this._entity, key); + } + } + } + return value; + } + }; + var Animation = class { + constructor(animation, from, to, duration, easing, loops, startingTime) { + this._time = 0; + this._stopped = false; + this._playing = true; + this.events = new EventDispatcher(); + this._animation = animation; + this._from = from; + this._to = to; + this._duration = duration; + this._easing = easing; + this._loops = loops; + this._interpolate = getInterpolate(from, to); + this._oldTime = startingTime; + } + get to() { + return this._to; + } + get from() { + return this._from; + } + get playing() { + return this._playing; + } + get stopped() { + return this._stopped; + } + stop() { + if (!this._stopped) { + this._stopped = true; + this._playing = false; + if (this.events.isEnabled("stopped")) { + this.events.dispatch("stopped", { + type: "stopped", + target: this + }); + } + } + } + pause() { + this._playing = false; + this._oldTime = null; + } + play() { + if (!this._stopped && !this._playing) { + this._playing = true; + this._animation._startAnimation(); + } + } + get percentage() { + return this._time / this._duration; + } + waitForStop() { + return new Promise((resolve, _reject) => { + if (this._stopped) { + resolve(); + } else { + const listener = () => { + stopped.dispose(); + resolve(); + }; + const stopped = this.events.on("stopped", listener); + } + }); + } + _checkEnded() { + if (this._loops > 1) { + --this._loops; + return false; + } else { + return true; + } + } + _run(currentTime) { + if (this._oldTime !== null) { + this._time += currentTime - this._oldTime; + if (this._time > this._duration) { + this._time = this._duration; + } + } + this._oldTime = currentTime; + } + _reset(currentTime) { + this._oldTime = currentTime; + this._time = 0; + } + _value(diff) { + return this._interpolate(this._easing(diff), this._from, this._to); + } + }; + var counter = 0; + var Settings = class { + constructor(settings) { + this.uid = ++counter; + this._privateSettings = {}; + this._settingEvents = {}; + this._privateSettingEvents = {}; + this._prevSettings = {}; + this._prevPrivateSettings = {}; + this._animatingSettings = {}; + this._animatingPrivateSettings = {}; + this._disposed = false; + this._userProperties = {}; + this.enableDispose = true; + this._settings = settings; + } + _checkDirty() { + keys(this._settings).forEach((key) => { + this._userProperties[key] = true; + this._markDirtyKey(key); + }); + } + /** + * @ignore + */ + resetUserSettings() { + this._userProperties = {}; + } + _runAnimation(currentTime) { + let state = AnimationState.Stopped; + if (!this.isDisposed()) { + let playing = false; + let paused = false; + each2(this._animatingSettings, (key, animation) => { + if (animation.stopped) { + this._stopAnimation(key); + } else if (animation.playing) { + animation._run(currentTime); + const diff = animation.percentage; + if (diff >= 1) { + if (animation._checkEnded()) { + this.set(key, animation._value(1)); + } else { + playing = true; + animation._reset(currentTime); + this._set(key, animation._value(1)); + } + } else { + playing = true; + this._set(key, animation._value(diff)); + } + } else { + paused = true; + } + }); + each2(this._animatingPrivateSettings, (key, animation) => { + if (animation.stopped) { + this._stopAnimationPrivate(key); + } else if (animation.playing) { + animation._run(currentTime); + const diff = animation.percentage; + if (diff >= 1) { + if (animation._checkEnded()) { + this.setPrivate(key, animation._value(1)); + } else { + playing = true; + animation._reset(currentTime); + this._setPrivate(key, animation._value(1)); + } + } else { + playing = true; + this._setPrivate(key, animation._value(diff)); + } + } else { + paused = true; + } + }); + if (playing) { + state = AnimationState.Playing; + } else if (paused) { + state = AnimationState.Paused; + } + } + return state; + } + _markDirtyKey(_key) { + this.markDirty(); + } + _markDirtyPrivateKey(_key) { + this.markDirty(); + } + /** + * Sets a callback function to invoke when specific key of settings changes + * or is set. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Settings_value_change} for more info + * @param key Settings key + * @param callback Callback + * @return Disposer for event + */ + on(key, callback) { + let events = this._settingEvents[key]; + if (events === void 0) { + events = this._settingEvents[key] = []; + } + events.push(callback); + return new Disposer(() => { + removeFirst(events, callback); + if (events.length === 0) { + delete this._settingEvents[key]; + } + }); + } + /** + * Removes a callback for when value of a setting changes. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Settings_value_change} for more info + * @param key Private settings key + * @param callback Callback + * @since 5.9.2 + */ + off(key, callback) { + let events = this._settingEvents[key]; + if (events !== void 0 && callback !== void 0) { + removeFirst(events, callback); + } else { + delete this._settingEvents[key]; + } + } + /** + * Sets a callback function to invoke when specific key of private settings + * changes or is set. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Settings_value_change} for more info + * @param key Private settings key + * @param callback Callback + * @return Disposer for event + */ + onPrivate(key, callback) { + let events = this._privateSettingEvents[key]; + if (events === void 0) { + events = this._privateSettingEvents[key] = []; + } + events.push(callback); + return new Disposer(() => { + removeFirst(events, callback); + if (events.length === 0) { + delete this._privateSettingEvents[key]; + } + }); + } + /** + * Removes a callback for when value of a private setting changes. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Settings_value_change} for more info + * @param key Private settings key + * @param callback Callback + * @since 5.9.2 + */ + offPrivate(key, callback) { + let events = this._privateSettingEvents[key]; + if (events !== void 0 && callback !== void 0) { + removeFirst(events, callback); + } else { + delete this._privateSettingEvents[key]; + } + } + /** + * @ignore + */ + getRaw(key, fallback) { + const value = this._settings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + /** + * Returns `true` if the setting exists. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Settings key + * @return {boolean} Key exists + */ + has(key) { + return key in this._settings; + } + get(key, fallback) { + return this.getRaw(key, fallback); + } + _sendKeyEvent(key, value) { + const events = this._settingEvents[key]; + if (events !== void 0) { + each(events, (callback) => { + callback(value, this, key); + }); + } + } + _sendPrivateKeyEvent(key, value) { + const events = this._privateSettingEvents[key]; + if (events !== void 0) { + each(events, (callback) => { + callback(value, this, key); + }); + } + } + /** + * @ignore + */ + _setRaw(key, old, value) { + this._prevSettings[key] = old; + this._sendKeyEvent(key, value); + } + /** + * @ignore + */ + setRaw(key, value) { + const old = this._settings[key]; + this._settings[key] = value; + if (old !== value) { + this._setRaw(key, old, value); + } + } + /** + * @ignore + */ + _set(key, value) { + const old = this._settings[key]; + this._settings[key] = value; + if (old !== value) { + this._setRaw(key, old, value); + this._markDirtyKey(key); + } + } + _stopAnimation(key) { + const animation = this._animatingSettings[key]; + if (animation) { + delete this._animatingSettings[key]; + animation.stop(); + } + } + /** + * Sets a setting `value` for the specified `key`, and returns the same `value`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + * @param value Setting value + * @return Setting value + */ + set(key, value) { + this._set(key, value); + this._stopAnimation(key); + return value; + } + /** + * Removes a setting value for the specified `key`; + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + */ + remove(key) { + if (key in this._settings) { + this._prevSettings[key] = this._settings[key]; + delete this._settings[key]; + this._sendKeyEvent(key, void 0); + this._markDirtyKey(key); + } + this._stopAnimation(key); + } + /** + * Removes all keys; + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + */ + removeAll() { + each(keys(this._settings), (key) => { + this.remove(key); + }); + } + /** + * Returns a value of a private setting. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/#Private_settings} for more info + */ + getPrivate(key, fallback) { + const value = this._privateSettings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + /** + * @ignore + */ + _setPrivateRaw(key, old, value) { + this._prevPrivateSettings[key] = old; + this._sendPrivateKeyEvent(key, value); + } + /** + * @ignore + */ + setPrivateRaw(key, value) { + const old = this._privateSettings[key]; + this._privateSettings[key] = value; + if (old !== value) { + this._setPrivateRaw(key, old, value); + } + } + /** + * @ignore + */ + _setPrivate(key, value) { + const old = this._privateSettings[key]; + this._privateSettings[key] = value; + if (old !== value) { + this._setPrivateRaw(key, old, value); + this._markDirtyPrivateKey(key); + } + } + _stopAnimationPrivate(key) { + const animation = this._animatingPrivateSettings[key]; + if (animation) { + animation.stop(); + delete this._animatingPrivateSettings[key]; + } + } + /** + * @ignore + */ + setPrivate(key, value) { + this._setPrivate(key, value); + this._stopAnimationPrivate(key); + return value; + } + /** + * @ignore + */ + removePrivate(key) { + if (key in this._privateSettings) { + this._prevPrivateSettings[key] = this._privateSettings[key]; + delete this._privateSettings[key]; + this._markDirtyPrivateKey(key); + } + this._stopAnimationPrivate(key); + } + /** + * Sets multiple settings at once. + * + * `settings` must be an object with key: value pairs. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param settings Settings + */ + setAll(settings) { + each2(settings, (key, value) => { + this.set(key, value); + }); + } + /** + * Animates setting values from current/start values to new ones. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/animations/#Animating_settings} for more info + * @param options Animation options + * @return Animation object + */ + animate(options) { + const key = options.key; + const to = options.to; + const duration = options.duration || 0; + const loops = options.loops || 1; + const from = options.from === void 0 ? this.get(key) : options.from; + const easing = options.easing === void 0 ? linear : options.easing; + if (duration === 0) { + this.set(key, to); + } else { + if (from === void 0 || from === to) { + this.set(key, to); + } else { + this.set(key, from); + const animation2 = this._animatingSettings[key] = new Animation(this, from, to, duration, easing, loops, this._animationTime()); + this._startAnimation(); + return animation2; + } + } + const animation = new Animation(this, from, to, duration, easing, loops, null); + animation.stop(); + return animation; + } + /** + * @ignore + */ + animatePrivate(options) { + const key = options.key; + const to = options.to; + const duration = options.duration || 0; + const loops = options.loops || 1; + const from = options.from === void 0 ? this.getPrivate(key) : options.from; + const easing = options.easing === void 0 ? linear : options.easing; + if (duration === 0) { + this.setPrivate(key, to); + } else { + if (from === void 0 || from === to) { + this.setPrivate(key, to); + } else { + this.setPrivate(key, from); + const animation2 = this._animatingPrivateSettings[key] = new Animation(this, from, to, duration, easing, loops, this._animationTime()); + this._startAnimation(); + return animation2; + } + } + const animation = new Animation(this, from, to, duration, easing, loops, null); + animation.stop(); + return animation; + } + _dispose() { + } + /** + * Returns `true` if this element is disposed. + * + * @return Disposed + */ + isDisposed() { + return this._disposed; + } + /** + * Disposes this object. + */ + dispose() { + if (this.enableDispose && !this._disposed) { + this._disposed = true; + this._dispose(); + } + } + }; + var Entity = class extends Settings { + /** + * IMPORTANT! Do not instantiate this class via `new Class()` syntax. + * + * Use static method `Class.new()` instead. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @ignore + */ + constructor(root2, settings, isReal, templates = []) { + super(settings); + this.states = new States(this); + this.adapters = new Adapters(this); + this.events = this._createEvents(); + this._userPrivateProperties = {}; + this._dirty = {}; + this._dirtyPrivate = {}; + this._templates = []; + this._defaultThemes = []; + this._templateDisposers = []; + this._disposers = []; + this._runSetup = true; + this._disposerProperties = {}; + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + this._root = root2; + this._internalTemplates = templates; + if (settings.id) { + this._registerId(settings.id); + } + } + /** + * Use this method to create an instance of this class. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @param root Root element + * @param settings Settings + * @param template Template + * @return Instantiated object + */ + static new(root2, settings, template) { + const x2 = new this(root2, settings, true); + x2._template = template; + x2._afterNew(); + return x2; + } + static _new(root2, settings, templates = []) { + const x2 = new this(root2, settings, true, templates); + x2._afterNew(); + return x2; + } + _afterNew() { + this._checkDirty(); + let shouldApply = false; + const template = this._template; + if (template) { + shouldApply = true; + template._setObjectTemplate(this); + } + each(this._internalTemplates, (template2) => { + shouldApply = true; + template2._setObjectTemplate(this); + }); + if (shouldApply) { + this._applyTemplates(false); + } + this.states.create("default", {}); + this._setDefaults(); + } + // This is the same as _afterNew, except it also applies the themes. + // This should only be used for classes which don't have a parent (because they extend from Entity and not Sprite). + _afterNewApplyThemes() { + this._checkDirty(); + const template = this._template; + if (template) { + template._setObjectTemplate(this); + } + each(this._internalTemplates, (template2) => { + template2._setObjectTemplate(this); + }); + this.states.create("default", {}); + this._setDefaults(); + this._applyThemes(); + } + _createEvents() { + return new EventDispatcher(); + } + /** + * @ignore + */ + get classNames() { + return this.constructor.classNames; + } + /** + * @ignore + */ + get className() { + return this.constructor.className; + } + _setDefaults() { + } + _setDefaultFn(key, f) { + const value = this.get(key); + if (value) { + return value; + } else { + const value2 = f(); + this.set(key, value2); + return value2; + } + } + _setDefault(key, value) { + if (!this.has(key)) { + super.set(key, value); + } + } + _setRawDefault(key, value) { + if (!this.has(key)) { + super.setRaw(key, value); + } + } + _clearDirty() { + keys(this._dirty).forEach((key) => { + this._dirty[key] = false; + }); + keys(this._dirtyPrivate).forEach((key) => { + this._dirtyPrivate[key] = false; + }); + } + /** + * @ignore + */ + isDirty(key) { + return !!this._dirty[key]; + } + /** + * @ignore + */ + isPrivateDirty(key) { + return !!this._dirtyPrivate[key]; + } + _markDirtyKey(key) { + this._dirty[key] = true; + super._markDirtyKey(key); + } + _markDirtyPrivateKey(key) { + this._dirtyPrivate[key] = true; + super._markDirtyKey(key); + } + /** + * Checks if element is of certain class (or inherits one). + * + * @param type Class name to check + * @return {boolean} Is of class? + */ + isType(type) { + return this.classNames.indexOf(type) !== -1; + } + _pushPropertyDisposer(key, disposer) { + let disposers = this._disposerProperties[key]; + if (disposers === void 0) { + disposers = this._disposerProperties[key] = []; + } + disposers.push(disposer); + return disposer; + } + _disposeProperty(key) { + const disposers = this._disposerProperties[key]; + if (disposers !== void 0) { + each(disposers, (disposer) => { + disposer.dispose(); + }); + delete this._disposerProperties[key]; + } + } + /** + * @todo needs description + * @param value Template + */ + set template(value) { + const template = this._template; + if (template !== value) { + this._template = value; + if (template) { + template._removeObjectTemplate(this); + } + if (value) { + value._setObjectTemplate(this); + } + this._applyTemplates(); + } + } + get template() { + return this._template; + } + /** + * @ignore + */ + markDirty() { + this._root._addDirtyEntity(this); + } + _startAnimation() { + this._root._addAnimation(this); + } + _animationTime() { + return this._root.animationTime; + } + _applyState(_name) { + } + _applyStateAnimated(_name, _duration) { + } + get(key, fallback) { + const value = this.adapters.fold(key, this._settings[key]); + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + /** + * @ignore + */ + isUserSetting(key) { + return this._userProperties[key] || false; + } + /** + * Sets a setting `value` for the specified `key`, and returns the same `value`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + * @param value Setting value + * @return Setting value + */ + set(key, value) { + this._userProperties[key] = true; + return super.set(key, value); + } + /** + * @ignore + */ + setRaw(key, value) { + this._userProperties[key] = true; + super.setRaw(key, value); + } + /** + * Sets a setting `value` for the specified `key` only if the value for this key was not set previously using set method, and returns the same `value`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + * @param value Setting value + * @return Setting value + */ + _setSoft(key, value) { + if (!this._userProperties[key]) { + return super.set(key, value); + } + return value; + } + /** + * Removes a setting value for the specified `key`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + */ + remove(key) { + delete this._userProperties[key]; + this._removeTemplateProperty(key); + } + /** + * @ignore + */ + setPrivate(key, value) { + this._userPrivateProperties[key] = true; + return super.setPrivate(key, value); + } + /** + * @ignore + */ + setPrivateRaw(key, value) { + this._userPrivateProperties[key] = true; + super.setPrivateRaw(key, value); + } + /** + * @ignore + */ + removePrivate(key) { + delete this._userPrivateProperties[key]; + this._removeTemplatePrivateProperty(key); + } + _setTemplateProperty(template, key, value) { + if (!this._userProperties[key]) { + const match = this._findTemplateByKey(key); + if (template === match) { + super.set(key, value); + } + } + } + _setTemplatePrivateProperty(template, key, value) { + if (!this._userPrivateProperties[key]) { + const match = this._findTemplateByPrivateKey(key); + if (template === match) { + super.setPrivate(key, value); + } + } + } + _removeTemplateProperty(key) { + if (!this._userProperties[key]) { + const match = this._findTemplateByKey(key); + if (match) { + super.set(key, match._settings[key]); + } else { + super.remove(key); + } + } + } + _removeTemplatePrivateProperty(key) { + if (!this._userPrivateProperties[key]) { + const match = this._findTemplateByPrivateKey(key); + if (match) { + super.setPrivate(key, match._privateSettings[key]); + } else { + super.removePrivate(key); + } + } + } + _walkParents(f) { + f(this._root._rootContainer); + f(this); + } + // TODO faster version of this method which is specialized to just 1 key + _applyStateByKey(name) { + const other = this.states.create(name, {}); + const seen = {}; + this._eachTemplate((template) => { + const state = template.states.lookup(name); + if (state) { + state._apply(other, seen); + } + }); + each2(other._settings, (key) => { + if (!seen[key] && !other._userSettings[key]) { + other.remove(key); + } + }); + } + _applyTemplate(template, state) { + this._templateDisposers.push(template._apply(this, state)); + each2(template._settings, (key, value) => { + if (!state.settings[key] && !this._userProperties[key]) { + state.settings[key] = true; + super.set(key, value); + } + }); + each2(template._privateSettings, (key, value) => { + if (!state.privateSettings[key] && !this._userPrivateProperties[key]) { + state.privateSettings[key] = true; + super.setPrivate(key, value); + } + }); + if (this._runSetup && template.setup) { + this._runSetup = false; + template.setup(this); + } + } + /** + * Calls the closure with each template and returns the first template which is true + */ + _findStaticTemplate(f) { + if (this._template) { + if (f(this._template)) { + return this._template; + } + } + } + _eachTemplate(f) { + this._findStaticTemplate((template) => { + f(template); + return false; + }); + eachReverse(this._internalTemplates, f); + each(this._templates, f); + } + _applyTemplates(remove2 = true) { + if (remove2) { + this._disposeTemplates(); + } + const state = { + settings: {}, + privateSettings: {}, + states: {} + }; + this._eachTemplate((template) => { + this._applyTemplate(template, state); + }); + if (remove2) { + each2(this._settings, (key) => { + if (!this._userProperties[key] && !state.settings[key]) { + super.remove(key); + } + }); + each2(this._privateSettings, (key) => { + if (!this._userPrivateProperties[key] && !state.privateSettings[key]) { + super.removePrivate(key); + } + }); + } + } + _findTemplate(f) { + const value = this._findStaticTemplate(f); + if (value === void 0) { + const value2 = findReverse(this._internalTemplates, f); + if (value2 === void 0) { + return find(this._templates, f); + } else { + return value2; + } + } else { + return value; + } + } + _findTemplateByKey(key) { + return this._findTemplate((template) => { + return key in template._settings; + }); + } + _findTemplateByPrivateKey(key) { + return this._findTemplate((template) => { + return key in template._privateSettings; + }); + } + _disposeTemplates() { + each(this._templateDisposers, (disposer) => { + disposer.dispose(); + }); + this._templateDisposers.length = 0; + } + _removeTemplates() { + each(this._templates, (template) => { + template._removeObjectTemplate(this); + }); + this._templates.length = 0; + } + _applyThemes(force = false) { + if (this.get("ignoreThemes")) { + return false; + } + let isConnected = false; + const defaults = []; + let themes = []; + const themeTags = /* @__PURE__ */ new Set(); + const tags = this.get("themeTagsSelf"); + if (tags) { + each(tags, (tag) => { + themeTags.add(tag); + }); + } + this._walkParents((entity) => { + if (entity === this._root._rootContainer) { + isConnected = true; + } + if (entity._defaultThemes.length > 0) { + defaults.push(entity._defaultThemes); + } + const theme = entity.get("themes"); + if (theme) { + themes.push(theme); + } + const tags2 = entity.get("themeTags"); + if (tags2) { + each(tags2, (tag) => { + themeTags.add(tag); + }); + } + }); + themes = defaults.concat(themes); + this._removeTemplates(); + if (isConnected || force) { + eachReverse(this.classNames, (name) => { + const allRules = []; + each(themes, (themes2) => { + each(themes2, (theme) => { + const rules = theme._lookupRules(name); + if (rules) { + eachReverse(rules, (rule) => { + const matches = rule.tags.every((tag) => { + return themeTags.has(tag); + }); + if (matches) { + const result = getFirstSortedIndex(allRules, (x2) => { + const order = compare(rule.tags.length, x2.tags.length); + if (order === 0) { + return compareArray(rule.tags, x2.tags, compare); + } else { + return order; + } + }); + allRules.splice(result.index, 0, rule); + } + }); + } + }); + }); + each(allRules, (rule) => { + this._templates.push(rule.template); + rule.template._setObjectTemplate(this); + }); + }); + } + this._applyTemplates(); + if (isConnected || force) { + this._runSetup = false; + } + return isConnected || force; + } + _changed() { + } + _beforeChanged() { + if (this.isDirty("id")) { + const id = this.get("id"); + if (id) { + this._registerId(id); + } + const prevId = this._prevSettings.id; + if (prevId) { + delete this._root.entitiesById[prevId]; + delete registry.entitiesById[prevId]; + } + } + } + _registerId(id) { + if (this._root.entitiesById[id] && this._root.entitiesById[id] !== this) { + throw new Error('An entity with id "' + id + '" already exists.'); + } + this._root.entitiesById[id] = this; + registry.entitiesById[id] = this; + } + _afterChanged() { + } + /** + * @ignore + */ + addDisposer(disposer) { + this._disposers.push(disposer); + return disposer; + } + _dispose() { + super._dispose(); + const template = this._template; + if (template) { + template._removeObjectTemplate(this); + } + each(this._internalTemplates, (template2) => { + template2._removeObjectTemplate(this); + }); + this._removeTemplates(); + this._disposeTemplates(); + this.events.dispose(); + this._disposers.forEach((x2) => { + x2.dispose(); + }); + each2(this._disposerProperties, (_, disposers) => { + each(disposers, (disposer) => { + disposer.dispose(); + }); + }); + const id = this.get("id"); + if (id) { + delete this._root.entitiesById[id]; + delete registry.entitiesById[id]; + } + } + /** + * Creates and returns a "disposable" timeout. + * + * @param fn Callback + * @param delay Delay in milliseconds + * @return Timeout disposer + */ + setTimeout(fn, delay) { + const id = setTimeout(() => { + this.removeDispose(disposer); + fn(); + }, delay); + const disposer = new Disposer(() => { + clearTimeout(id); + }); + this._disposers.push(disposer); + return disposer; + } + /** + * @ignore + */ + removeDispose(target) { + if (!this.isDisposed()) { + let index = indexOf(this._disposers, target); + if (index > -1) { + this._disposers.splice(index, 1); + } + } + target.dispose(); + } + /** + * @ignore + */ + hasTag(tag) { + return indexOf(this.get("themeTags", []), tag) !== -1; + } + /** + * @ignore + */ + addTag(tag) { + if (!this.hasTag(tag)) { + const tags = this.get("themeTags", []); + tags.push(tag); + this.set("themeTags", tags); + } + } + /** + * @ignore + */ + removeTag(tag) { + if (this.hasTag(tag)) { + const tags = this.get("themeTags", []); + remove(tags, tag); + this.set("themeTags", tags); + } + } + _t(text, locale, ...rest) { + return this._root.language.translate(text, locale, ...rest); + } + /** + * An instance of [[Root]] object. + * + * @readonly + * @since 5.0.6 + * @return Root object + */ + get root() { + return this._root; + } + }; + Entity.className = "Entity"; + Entity.classNames = ["Entity"]; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Template.js + function disposeSettings(settings) { + each2(settings, (_key, value) => { + if (isObject(value) && typeof value.dispose === "function") { + value.enableDispose = true; + value.dispose(); + } + }); + } + var TemplateState = class { + constructor(name, template, settings) { + this._name = name; + this._template = template; + this._settings = settings; + } + _dispose() { + disposeSettings(this._settings); + } + get(key, fallback) { + const value = this._settings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + set(key, value) { + this._settings[key] = value; + this._template._stateChanged(this._name); + } + remove(key) { + delete this._settings[key]; + this._template._stateChanged(this._name); + } + setAll(settings) { + keys(settings).forEach((key) => { + this._settings[key] = settings[key]; + }); + this._template._stateChanged(this._name); + } + _apply(other, seen) { + each2(this._settings, (key, value) => { + if (!seen[key] && !other._userSettings[key]) { + seen[key] = true; + other.setRaw(key, value); + } + }); + } + }; + var TemplateStates = class { + constructor(template) { + this._states = {}; + this._template = template; + } + _dispose() { + each2(this._states, (_key, state) => { + state._dispose(); + }); + } + lookup(name) { + return this._states[name]; + } + create(name, settings) { + const state = this._states[name]; + if (state) { + state.setAll(settings); + return state; + } else { + const state2 = new TemplateState(name, this._template, settings); + this._states[name] = state2; + this._template._stateChanged(name); + return state2; + } + } + remove(name) { + delete this._states[name]; + this._template._stateChanged(name); + } + _apply(entity, state) { + each2(this._states, (key, value) => { + let seen = state.states[key]; + if (seen == null) { + seen = state.states[key] = {}; + } + const other = entity.states.create(key, {}); + value._apply(other, seen); + }); + } + }; + var TemplateAdapters = class { + constructor() { + this._callbacks = {}; + } + add(key, callback) { + let callbacks = this._callbacks[key]; + if (callbacks === void 0) { + callbacks = this._callbacks[key] = []; + } + callbacks.push(callback); + return new Disposer(() => { + removeFirst(callbacks, callback); + if (callbacks.length === 0) { + delete this._callbacks[key]; + } + }); + } + remove(key) { + const callbacks = this._callbacks[key]; + if (callbacks !== void 0) { + delete this._callbacks[key]; + } + } + _apply(entity) { + const disposers = []; + each2(this._callbacks, (key, callbacks) => { + each(callbacks, (callback) => { + disposers.push(entity.adapters.add(key, callback)); + }); + }); + return new MultiDisposer(disposers); + } + }; + var Template = class _Template { + constructor(settings, isReal) { + this._disposed = false; + this._privateSettings = {}; + this._settingEvents = {}; + this._privateSettingEvents = {}; + this._entities = []; + this.states = new TemplateStates(this); + this.adapters = new TemplateAdapters(); + this.events = new EventDispatcher(); + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + this._settings = settings; + } + /** + * Use this method to create an instance of this class. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @param root Root element + * @param settings Settings + * @param template Template + * @return Instantiated object + */ + static new(settings) { + return new _Template(settings, true); + } + _dispose() { + disposeSettings(this._settings); + disposeSettings(this._privateSettings); + } + /** + * Returns `true` if this element is disposed. + * + * @return Disposed + */ + isDisposed() { + return this._disposed; + } + /** + * Disposes this object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + this._dispose(); + } + } + _checkDisposed() { + if (this._disposed) { + throw new Error("Template is disposed"); + } + } + /** + * Array of all entities using this template. + */ + get entities() { + return this._entities; + } + get(key, fallback) { + this._checkDisposed(); + const value = this._settings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + setRaw(key, value) { + this._checkDisposed(); + this._settings[key] = value; + } + set(key, value) { + this._checkDisposed(); + if (this._settings[key] !== value) { + this.setRaw(key, value); + this._entities.forEach((entity) => { + entity._setTemplateProperty(this, key, value); + }); + } + } + remove(key) { + this._checkDisposed(); + if (key in this._settings) { + delete this._settings[key]; + this._entities.forEach((entity) => { + entity._removeTemplateProperty(key); + }); + } + } + removeAll() { + this._checkDisposed(); + each2(this._settings, (key, _value) => { + this.remove(key); + }); + } + getPrivate(key, fallback) { + this._checkDisposed(); + const value = this._privateSettings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + setPrivateRaw(key, value) { + this._checkDisposed(); + this._privateSettings[key] = value; + return value; + } + setPrivate(key, value) { + this._checkDisposed(); + if (this._privateSettings[key] !== value) { + this.setPrivateRaw(key, value); + this._entities.forEach((entity) => { + entity._setTemplatePrivateProperty(this, key, value); + }); + } + return value; + } + removePrivate(key) { + this._checkDisposed(); + if (key in this._privateSettings) { + delete this._privateSettings[key]; + this._entities.forEach((entity) => { + entity._removeTemplatePrivateProperty(key); + }); + } + } + setAll(value) { + this._checkDisposed(); + each2(value, (key, value2) => { + this.set(key, value2); + }); + } + // TODO code duplication with Properties + on(key, callback) { + this._checkDisposed(); + let events = this._settingEvents[key]; + if (events === void 0) { + events = this._settingEvents[key] = []; + } + events.push(callback); + return new Disposer(() => { + removeFirst(events, callback); + if (events.length === 0) { + delete this._settingEvents[key]; + } + }); + } + // TODO code duplication with Properties + onPrivate(key, callback) { + this._checkDisposed(); + let events = this._privateSettingEvents[key]; + if (events === void 0) { + events = this._privateSettingEvents[key] = []; + } + events.push(callback); + return new Disposer(() => { + removeFirst(events, callback); + if (events.length === 0) { + delete this._privateSettingEvents[key]; + } + }); + } + _apply(entity, state) { + this._checkDisposed(); + const disposers = []; + each2(this._settingEvents, (key, events) => { + each(events, (event) => { + disposers.push(entity.on(key, event)); + }); + }); + each2(this._privateSettingEvents, (key, events) => { + each(events, (event) => { + disposers.push(entity.onPrivate(key, event)); + }); + }); + this.states._apply(entity, state); + disposers.push(this.adapters._apply(entity)); + disposers.push(entity.events.copyFrom(this.events)); + return new MultiDisposer(disposers); + } + _setObjectTemplate(entity) { + this._checkDisposed(); + this._entities.push(entity); + } + _removeObjectTemplate(entity) { + remove(this._entities, entity); + } + _stateChanged(name) { + this._checkDisposed(); + this._entities.forEach((entity) => { + entity._applyStateByKey(name); + }); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js + var SpriteEventDispatcher = class _SpriteEventDispatcher extends EventDispatcher { + constructor(sprite) { + super(); + this._rendererDisposers = {}; + this._dispatchParents = true; + this._sprite = sprite; + } + _makePointerEvent(key, event) { + return { + type: key, + originalEvent: event.event, + point: event.point, + simulated: event.simulated, + native: event.native, + target: this._sprite + }; + } + _onRenderer(key, dispatch) { + this._sprite.set("interactive", true); + this._sprite._display.interactive = true; + let events = this._rendererDisposers[key]; + if (events === void 0) { + const disposer = this._sprite._display.on(key, (e) => { + dispatch.call(this, e); + }); + events = this._rendererDisposers[key] = new CounterDisposer(() => { + delete this._rendererDisposers[key]; + disposer.dispose(); + }); + } + return events.increment(); + } + _on(once, type, callback, context, shouldClone, dispatch, debounceDelay) { + const info = super._on(once, type, callback, context, shouldClone, dispatch, debounceDelay); + const rendererEvent = _SpriteEventDispatcher.RENDERER_EVENTS[type]; + if (rendererEvent !== void 0) { + info.disposer = new MultiDisposer([ + info.disposer, + this._onRenderer(type, rendererEvent) + ]); + } + return info; + } + /** + * Will stop any bubbling up of the event to element's parents. + * + * Should be called in an event handler, e.g.: + * + * ```TypeScript + * element.events.on("pointerdown", function(ev) { + * // Do something here and prevent from "pointerdown" bubbling up + * // ... + * ev.target.events.stopParentDispatch(); + * }); + * ``` + * ```JavaScript + * element.events.on("pointerdown", function(ev) { + * // Do something here and prevent from "pointerdown" bubbling up + * // ... + * ev.target.events.stopParentDispatch(); + * }); + * ``` + */ + stopParentDispatch() { + this._dispatchParents = false; + } + /** + * @ignore + */ + dispatchParents(type, event) { + const old = this._dispatchParents; + this._dispatchParents = true; + try { + this.dispatch(type, event); + if (this._dispatchParents && this._sprite.parent) { + this._sprite.parent.events.dispatchParents(type, event); + } + } finally { + this._dispatchParents = old; + } + } + }; + SpriteEventDispatcher.RENDERER_EVENTS = { + "click": function(event) { + if (this.isEnabled("click") && !this._sprite.isDragging() && this._sprite._hasDown() && !this._sprite._hasMoved(this._makePointerEvent("click", event))) { + this.dispatch("click", this._makePointerEvent("click", event)); + } + }, + "rightclick": function(event) { + if (this.isEnabled("rightclick")) { + this.dispatch("rightclick", this._makePointerEvent("rightclick", event)); + } + }, + "middleclick": function(event) { + if (this.isEnabled("middleclick")) { + this.dispatch("middleclick", this._makePointerEvent("middleclick", event)); + } + }, + "dblclick": function(event) { + this.dispatchParents("dblclick", this._makePointerEvent("dblclick", event)); + }, + "pointerover": function(event) { + const sprite = this._sprite; + let dispatch = true; + if (sprite.getPrivate("trustBounds")) { + sprite._getBounds(); + const bounds = sprite.globalBounds(); + if (sprite.isType("Graphics")) { + const strokeWidth = sprite.get("strokeWidth", 1) / 2; + if (strokeWidth >= 1) { + bounds.left -= strokeWidth; + bounds.right += strokeWidth; + bounds.top -= strokeWidth; + bounds.bottom += strokeWidth; + } + } + if (!inBounds(event.point, bounds)) { + dispatch = false; + sprite._root._renderer.removeHovering(sprite._display); + } + } + if (dispatch && this.isEnabled("pointerover")) { + this.dispatch("pointerover", this._makePointerEvent("pointerover", event)); + } + }, + "pointerout": function(event) { + if (this.isEnabled("pointerout")) { + this.dispatch("pointerout", this._makePointerEvent("pointerout", event)); + } + }, + "pointerdown": function(event) { + this.dispatchParents("pointerdown", this._makePointerEvent("pointerdown", event)); + }, + "pointerup": function(event) { + if (this.isEnabled("pointerup")) { + this.dispatch("pointerup", this._makePointerEvent("pointerup", event)); + } + }, + "globalpointerup": function(event) { + if (this.isEnabled("globalpointerup")) { + this.dispatch("globalpointerup", this._makePointerEvent("globalpointerup", event)); + } + }, + "globalpointermove": function(event) { + if (this.isEnabled("globalpointermove")) { + this.dispatch("globalpointermove", this._makePointerEvent("globalpointermove", event)); + } + }, + "wheel": function(event) { + this.dispatchParents("wheel", { + type: "wheel", + target: this._sprite, + originalEvent: event.event, + point: event.point + }); + } + }; + var Sprite = class extends Entity { + constructor() { + super(...arguments); + this._adjustedLocalBounds = { left: 0, right: 0, top: 0, bottom: 0 }; + this._localBounds = { left: 0, right: 0, top: 0, bottom: 0 }; + this._sizeDirty = false; + this._isDragging = false; + this._isHidden = false; + this._isShowing = false; + this._isHiding = false; + this._isDown = false; + this._downPoints = {}; + } + _afterNew() { + this.setPrivateRaw("visible", true); + super._afterNew(); + } + /** + * Marks some setting as dirty. Could be used to trigger adapter. + * @param key + */ + markDirtyKey(key) { + this._markDirtyKey(key); + } + _markDirtyKey(key) { + super._markDirtyKey(key); + if (key == "x" || key == "y" || key == "dx" || key == "dy") { + this.markDirtyBounds(); + this._addPercentagePositionChildren(); + this.markDirtyPosition(); + } + } + _markDirtyPrivateKey(key) { + super._markDirtyPrivateKey(key); + if (key == "x" || key == "y") { + this.markDirtyPosition(); + } + } + _removeTemplateField() { + if (this._templateField) { + this._templateField._removeObjectTemplate(this); + } + } + _createEvents() { + return new SpriteEventDispatcher(this); + } + _processTemplateField() { + let template; + const field = this.get("templateField"); + if (field) { + const dataItem = this.dataItem; + if (dataItem) { + const context = dataItem.dataContext; + if (context) { + template = context[field]; + if (!(template instanceof Template) && template) { + template = Template.new(template); + } + } + } + } + if (this._templateField !== template) { + this._removeTemplateField(); + this._templateField = template; + if (template) { + template._setObjectTemplate(this); + } + this._applyTemplates(); + } + } + // TODO change this to run before the element is added to the parent, so that way + // it doesn't need to apply the themes twice + _setDataItem(dataItem) { + const oldDataItem = this._dataItem; + this._dataItem = dataItem; + this._processTemplateField(); + const eventType = "dataitemchanged"; + if (dataItem != oldDataItem) { + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { + type: eventType, + target: this, + oldDataItem, + newDataItem: dataItem + }); + } + } + } + /** + * A [[DataItem]] used for this element. + * + * NOTE: data item is being assigned automatically in most cases where it + * matters. Use this accessor to set data item only if you know what you're + * doing. + * + * @param value Data item + */ + set dataItem(value) { + this._setDataItem(value); + } + /** + * @return DataItem + */ + get dataItem() { + if (this._dataItem) { + return this._dataItem; + } else { + let parent = this._parent; + while (parent) { + if (parent._dataItem) { + return parent._dataItem; + } else { + parent = parent._parent; + } + } + } + } + _addPercentageSizeChildren() { + let parent = this.parent; + if (parent) { + if (this.get("width") instanceof Percent || this.get("height") instanceof Percent) { + pushOne(parent._percentageSizeChildren, this); + } else { + removeFirst(parent._percentageSizeChildren, this); + } + } + } + _addPercentagePositionChildren() { + let parent = this.parent; + if (parent) { + if (this.get("x") instanceof Percent || this.get("y") instanceof Percent) { + pushOne(parent._percentagePositionChildren, this); + } else { + removeFirst(parent._percentagePositionChildren, this); + } + } + } + /** + * @ignore + */ + markDirtyPosition() { + this._root._addDirtyPosition(this); + } + updatePivotPoint() { + const bounds = this._localBounds; + if (bounds) { + const centerX = this.get("centerX"); + if (centerX != null) { + this._display.pivot.x = bounds.left + relativeToValue(centerX, bounds.right - bounds.left); + } + const centerY = this.get("centerY"); + if (centerY != null) { + this._display.pivot.y = bounds.top + relativeToValue(centerY, bounds.bottom - bounds.top); + } + } + } + _beforeChanged() { + super._beforeChanged(); + this._handleStates(); + if (this.isDirty("tooltip")) { + const previous = this._prevSettings.tooltip; + if (previous) { + previous.dispose(); + } + } + if (this.isDirty("layer") || this.isDirty("layerMargin")) { + this._display.setLayer(this.get("layer"), this.get("layerMargin")); + this.markDirtyLayer(); + } + if (this.isDirty("tooltipPosition")) { + const tooltipMoveDp = this._tooltipMoveDp; + if (tooltipMoveDp) { + tooltipMoveDp.dispose(); + this._tooltipMoveDp = void 0; + } + const tooltipPointerDp = this._tooltipPointerDp; + if (tooltipPointerDp) { + tooltipPointerDp.dispose(); + this._tooltipPointerDp = void 0; + } + if (this.get("tooltipPosition") == "pointer") { + if (this.isHover()) { + this._tooltipMoveDp = this.events.on("globalpointermove", (e) => { + this.showTooltip(e.point); + }); + } + this._tooltipPointerDp = new MultiDisposer([ + this.events.on("pointerover", () => { + this._tooltipMoveDp = this.events.on("globalpointermove", (e) => { + this.showTooltip(e.point); + }); + }), + this.events.on("pointerout", () => { + const tooltipMoveDp2 = this._tooltipMoveDp; + if (tooltipMoveDp2) { + tooltipMoveDp2.dispose(); + this._tooltipMoveDp = void 0; + } + }) + ]); + } + } + } + _handleStates() { + if (this.isDirty("active")) { + if (this.get("active")) { + this.states.applyAnimate("active"); + this.set("ariaChecked", true); + } else { + if (!this.isHidden()) { + this.states.applyAnimate("default"); + } + this.set("ariaChecked", false); + } + this.markDirtyAccessibility(); + } + if (this.isDirty("disabled")) { + if (this.get("disabled")) { + this.states.applyAnimate("disabled"); + this.set("ariaChecked", false); + } else { + if (!this.isHidden()) { + this.states.applyAnimate("default"); + } + this.set("ariaChecked", true); + } + this.markDirtyAccessibility(); + } + } + _changed() { + super._changed(); + const display = this._display; + const events = this.events; + if (this.isDirty("draggable")) { + const draggable = this.get("draggable"); + if (draggable) { + this.set("interactive", true); + this._dragDp = new MultiDisposer([ + events.on("pointerdown", (ev) => { + this.dragStart(ev); + }), + events.on("globalpointermove", (ev) => { + this.dragMove(ev); + }), + events.on("globalpointerup", (ev) => { + this.dragStop(ev); + }) + ]); + } else { + if (this._dragDp) { + this._dragDp.dispose(); + this._dragDp = void 0; + } + } + display.cancelTouch = draggable ? true : false; + } + if (this.isDirty("tooltipText") || this.isDirty("tooltipHTML") || this.isDirty("showTooltipOn")) { + const tooltipText = this.get("tooltipText"); + const tooltipHTML = this.get("tooltipHTML"); + const showTooltipOn = this.get("showTooltipOn", "hover"); + if (this._tooltipDp) { + this._tooltipDp.dispose(); + this._tooltipDp = void 0; + } + if (tooltipText || tooltipHTML) { + if (showTooltipOn == "click") { + this._tooltipDp = new MultiDisposer([ + events.on("click", () => { + this.setTimeout(() => { + const tooltip = this.getTooltip(); + if (tooltip && !tooltip.isHidden() && tooltip.get("tooltipTarget") === this) { + this.hideTooltip(); + } else { + this.showTooltip(); + } + }, 10); + }), + addEventListener(document, "click", (_ev) => { + this.hideTooltip(); + }) + ]); + this._disposers.push(this._tooltipDp); + } else if (showTooltipOn == "always") { + } else { + this._tooltipDp = new MultiDisposer([ + events.on("pointerover", () => { + this.showTooltip(); + }), + events.on("pointerout", () => { + this.hideTooltip(); + }) + ]); + this._disposers.push(this._tooltipDp); + } + } + } + if (this.isDirty("toggleKey")) { + let toggleKey = this.get("toggleKey"); + if (toggleKey && toggleKey != "none") { + this._toggleDp = events.on("click", () => { + if (!this._isDragging) { + this.set(toggleKey, !this.get(toggleKey)); + } + }); + } else { + if (this._toggleDp) { + this._toggleDp.dispose(); + this._toggleDp = void 0; + } + } + } + if (this.isDirty("opacity")) { + display.alpha = Math.max(0, this.get("opacity", 1)); + if (this.get("focusable")) { + this.markDirtyAccessibility(); + } + } + if (this.isDirty("rotation")) { + this.markDirtyBounds(); + display.angle = this.get("rotation", 0); + } + if (this.isDirty("scale")) { + this.markDirtyBounds(); + display.scale = this.get("scale", 0); + } + if (this.isDirty("centerX") || this.isDirty("centerY")) { + this.markDirtyBounds(); + this.updatePivotPoint(); + } + if (this.isDirty("visible") || this.isPrivateDirty("visible") || this.isDirty("forceHidden")) { + if (!this.get("visible") || !this.getPrivate("visible") || this.get("forceHidden")) { + display.visible = false; + this.hideTooltip(); + } else { + display.visible = true; + } + this.markDirtyBounds(); + if (this.get("focusable")) { + this.markDirtyAccessibility(); + } + } + if (this.isDirty("width") || this.isDirty("height")) { + this.markDirtyBounds(); + this._addPercentageSizeChildren(); + const parent = this.parent; + if (parent) { + if (this.isDirty("width") && this.get("width") instanceof Percent || this.isDirty("height") && this.get("height") instanceof Percent) { + parent.markDirty(); + parent._prevWidth = 0; + } + } + this._sizeDirty = true; + } + if (this.isDirty("maxWidth") || this.isDirty("maxHeight") || this.isPrivateDirty("width") || this.isPrivateDirty("height") || this.isDirty("minWidth") || this.isDirty("minHeight") || this.isPrivateDirty("maxWidth") || this.isPrivateDirty("maxHeight") || this.isPrivateDirty("minWidth") || this.isPrivateDirty("minHeight") || this.isDirty("marginLeft") || this.isDirty("marginTop") || this.isDirty("marginRight") || this.isDirty("marginBottom")) { + this.markDirtyBounds(); + this._sizeDirty = true; + } + if (this._sizeDirty) { + this._updateSize(); + } + if (this.isDirty("wheelable")) { + const wheelable = this.get("wheelable"); + if (wheelable) { + this.set("interactive", true); + } + display.wheelable = wheelable ? true : false; + } + if (this.isDirty("tabindexOrder") || this.isDirty("focusableGroup")) { + if (this.get("focusable")) { + this._root._registerTabindexOrder(this); + } else { + this._root._unregisterTabindexOrder(this); + } + } + if (this.isDirty("filter")) { + display.filter = this.get("filter"); + } + let filter = this.get("filter", ""); + if (this.isDirty("blur")) { + const blur2 = this.get("blur", 0); + if (blur2 != 0) { + filter += " blur(" + blur2 + "px)"; + } + } + if (this.isDirty("saturate")) { + const saturate2 = this.get("saturate", 1); + if (saturate2 != 1) { + filter += " saturate(" + saturate2 + ")"; + } + } + if (this.isDirty("brightness")) { + const brightness = this.get("brightness", 1); + if (brightness != 1) { + filter += " brightness(" + brightness + ")"; + } + } + if (this.isDirty("contrast")) { + const contrast = this.get("contrast", 1); + if (contrast != 1) { + filter += " contrast(" + contrast + ")"; + } + } + if (this.isDirty("sepia")) { + const sepia = this.get("sepia", 0); + if (sepia != 0) { + filter += " sepia(" + sepia + ")"; + } + } + if (this.isDirty("hue")) { + const hue = this.get("hue", 0); + if (hue != 0) { + filter += " hue-rotate(" + hue + "deg)"; + } + } + if (this.isDirty("invert")) { + const invert = this.get("invert", 0); + if (invert != 0) { + filter += " invert(" + invert + ")"; + } + } + if (filter) { + display.filter = filter; + } + if (this.isDirty("cursorOverStyle")) { + display.cursorOverStyle = this.get("cursorOverStyle"); + } + if (this.isDirty("hoverOnFocus")) { + if (this.get("hoverOnFocus")) { + this._focusDp = new MultiDisposer([ + events.on("focus", () => { + this.showTooltip(); + }), + events.on("blur", () => { + this.hideTooltip(); + }) + ]); + } else { + if (this._focusDp) { + this._focusDp.dispose(); + this._focusDp = void 0; + } + } + } + if (this.isDirty("focusable")) { + if (this.get("focusable")) { + this._root._registerTabindexOrder(this); + } else { + this._root._unregisterTabindexOrder(this); + } + this.markDirtyAccessibility(); + this._disposers.push(events.on("blur", () => { + this.setPrivateRaw("touchHovering", false); + })); + this._disposers.push(events.once("boundschanged", () => { + this.markDirtyAccessibility(); + })); + } + if (this.isPrivateDirty("focusable")) { + this.markDirtyAccessibility(); + } + if (this.isDirty("role") || this.isDirty("ariaLive") || this.isDirty("ariaChecked") || this.isDirty("ariaHidden") || this.isDirty("ariaOrientation") || this.isDirty("ariaValueNow") || this.isDirty("ariaValueMin") || this.isDirty("ariaValueMax") || this.isDirty("ariaValueText") || this.isDirty("ariaLabel") || this.isDirty("ariaControls")) { + this.markDirtyAccessibility(); + } + if (this.isDirty("exportable")) { + display.exportable = this.get("exportable"); + } + if (this.isDirty("interactive")) { + const events2 = this.events; + if (this.get("interactive") && !events2.isDisposed()) { + this._hoverDp = new MultiDisposer([ + events2.on("click", (ev) => { + if (isTouchEvent(ev.originalEvent)) { + if (!this.getPrivate("touchHovering")) { + this.setTimeout(() => { + this._handleOver(); + if (this.get("tooltipText") || this.get("tooltipHTML")) { + this.showTooltip(); + } + this.setPrivateRaw("touchHovering", true); + this.events.dispatch("pointerover", { + type: "pointerover", + target: ev.target, + originalEvent: ev.originalEvent, + point: ev.point, + simulated: ev.simulated + }); + }, 10); + } + } + }), + events2.on("globalpointerup", (ev) => { + if (isTouchEvent(ev.originalEvent)) { + if (this.getPrivate("touchHovering")) { + this._handleOut(); + if (this.get("tooltipText") || this.get("tooltipHTML")) { + this.hideTooltip(); + } + this.setPrivateRaw("touchHovering", false); + this.events.dispatch("pointerout", { + type: "pointerout", + target: ev.target, + originalEvent: ev.originalEvent, + point: ev.point, + simulated: ev.simulated + }); + } + } + if (this._isDown) { + this._handleUp(ev); + } + }), + events2.on("pointerover", () => { + this._handleOver(); + }), + events2.on("pointerout", () => { + this._handleOut(); + }), + events2.on("pointerdown", (e) => { + this._handleDown(e); + }) + ]); + } else { + this._display.interactive = false; + if (this._hoverDp) { + this._hoverDp.dispose(); + this._hoverDp = void 0; + } + } + } + if (this.isDirty("forceInactive")) { + this._display.inactive = this.get("forceInactive", null); + } + if (this.get("showTooltipOn") == "always" && this._display.visible) { + this.showTooltip(); + } + } + /** + * @ignore + * @todo should this be user-accessible? + */ + dragStart(e) { + this._dragEvent = e; + this.events.stopParentDispatch(); + } + /** + * @ignore + * @todo should this be user-accessible? + */ + dragStop(e) { + this._dragEvent = void 0; + this._dragPoint = void 0; + this.events.stopParentDispatch(); + if (this._isDragging) { + this._isDragging = false; + const type = "dragstop"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { + type, + target: this, + originalEvent: e.originalEvent, + point: e.point, + simulated: e.simulated + }); + } + } + } + _handleOver() { + if (!this.isHidden()) { + if (this.get("active") && this.states.lookup("hoverActive")) { + this.states.applyAnimate("hoverActive"); + } else if (this.get("disabled") && this.states.lookup("hoverDisabled")) { + this.states.applyAnimate("hoverDisabled"); + } else { + this.states.applyAnimate("hover"); + } + if (this.get("draggable") && this._isDown && this.states.lookup("down")) { + this.states.applyAnimate("down"); + } + } + } + _handleOut() { + if (!this.isHidden()) { + if (this.get("active") && this.states.lookup("active")) { + this.states.applyAnimate("active"); + } else if (this.get("disabled") && this.states.lookup("disabled")) { + this.states.applyAnimate("disabled"); + } else { + if (this.states.lookup("hover") || this.states.lookup("hoverActive")) { + this.states.applyAnimate("default"); + } + } + if (this.get("draggable") && this._isDown && this.states.lookup("down")) { + this.states.applyAnimate("down"); + } + } + } + _handleUp(e) { + if (!this.isHidden()) { + if (this.get("active") && this.states.lookup("active")) { + this.states.applyAnimate("active"); + } else if (this.get("disabled") && this.states.lookup("disabled")) { + this.states.applyAnimate("disabled"); + } else if (this.states.lookup("down")) { + if (this.isHover()) { + this.states.applyAnimate("hover"); + } else { + this.states.applyAnimate("default"); + } + } + this._downPoint = void 0; + const pointerId = getPointerId(e.originalEvent); + delete this._downPoints[pointerId]; + if (keys(this._downPoints).length == 0) { + this._isDown = false; + } + } + } + _hasMoved(e) { + const pointerId = getPointerId(e.originalEvent); + const downPoint = this._downPoints[pointerId]; + if (downPoint) { + const x2 = Math.abs(downPoint.x - e.point.x); + const y2 = Math.abs(downPoint.y - e.point.y); + return x2 > 5 || y2 > 5; + } + return false; + } + _hasDown() { + return keys(this._downPoints).length > 0; + } + _handleDown(e) { + const parent = this.parent; + if (parent && !this.get("draggable")) { + parent._handleDown(e); + } + if (this.get("interactive") && !this.isHidden()) { + if (this.states.lookup("down")) { + this.states.applyAnimate("down"); + } + this._downPoint = { + x: e.point.x, + y: e.point.y + }; + this._isDown = true; + const pointerId = getPointerId(e.originalEvent); + this._downPoints[pointerId] = { + x: e.point.x, + y: e.point.y + }; + } + } + /** + * @ignore + * @todo should this be user-accessible? + */ + dragMove(e) { + let dragEvent = this._dragEvent; + if (dragEvent) { + if (dragEvent.simulated && !e.simulated) { + return true; + } + let angle = 0; + let parent = this.parent; + let scale = 1; + while (parent != null) { + angle += parent.get("rotation", 0); + parent = parent.parent; + if (parent) { + scale *= parent.get("scale", 1); + } + } + let x2 = (e.point.x - dragEvent.point.x) / scale; + let y2 = (e.point.y - dragEvent.point.y) / scale; + const events = this.events; + if (dragEvent.simulated && !this._isDragging) { + this._isDragging = true; + this._dragEvent = e; + this._dragPoint = { + x: this.x(), + y: this.y() + }; + const type = "dragstart"; + if (events.isEnabled(type)) { + events.dispatch(type, { + type, + target: this, + originalEvent: e.originalEvent, + point: e.point, + simulated: e.simulated + }); + } + } + if (this._isDragging) { + let dragPoint = this._dragPoint; + this.set("x", dragPoint.x + x2 * cos(angle) + y2 * sin(angle)); + this.set("y", dragPoint.y + y2 * cos(angle) - x2 * sin(angle)); + const type = "dragged"; + if (events.isEnabled(type)) { + events.dispatch(type, { + type, + target: this, + originalEvent: e.originalEvent, + point: e.point, + simulated: e.simulated + }); + } + } else { + if (Math.hypot(x2, y2) > 5) { + this._isDragging = true; + this._dragEvent = e; + this._dragPoint = { + x: this.x(), + y: this.y() + }; + const type = "dragstart"; + if (events.isEnabled(type)) { + events.dispatch(type, { + type, + target: this, + originalEvent: e.originalEvent, + point: e.point, + simulated: e.simulated + }); + } + } + } + } + } + _updateSize() { + } + _getBounds() { + this._localBounds = this._display.getLocalBounds(); + } + /** + * Returns depth (how deep in the hierachy of the content tree) of this + * element. + * + * @return Depth + */ + depth() { + let self = this.parent; + let depth = 0; + while (true) { + if (self) { + ++depth; + self = self.parent; + } else { + return depth; + } + } + } + /** + * @ignore + */ + markDirtySize() { + this._sizeDirty = true; + this.markDirty(); + } + /** + * @ignore + */ + markDirtyBounds() { + const display = this._display; + if (this.get("isMeasured")) { + this._root._addDirtyBounds(this); + display.isMeasured = true; + display.invalidateBounds(); + const parent = this.parent; + if (parent && this.get("position") != "absolute") { + if (parent.get("width") == null || parent.get("height") == null || parent.get("layout")) { + parent.markDirtyBounds(); + } + } + if (this.get("focusable")) { + this.markDirtyAccessibility(); + } + } + } + /** + * @ignore + */ + markDirtyAccessibility() { + this._root._invalidateAccessibility(this); + } + /** + * @ignore + */ + markDirtyLayer() { + this._display.markDirtyLayer(true); + } + /** + * @ignore + */ + markDirty() { + super.markDirty(); + this.markDirtyLayer(); + } + _updateBounds() { + const oldBounds = this._adjustedLocalBounds; + let newBounds; + if (!this.get("visible") || !this.getPrivate("visible") || this.get("forceHidden")) { + newBounds = { + left: 0, + right: 0, + top: 0, + bottom: 0 + }; + this._localBounds = newBounds; + this._adjustedLocalBounds = newBounds; + } else { + this._getBounds(); + this._fixMinBounds(this._localBounds); + this.updatePivotPoint(); + this._adjustedLocalBounds = this._display.getAdjustedBounds(this._localBounds); + newBounds = this._adjustedLocalBounds; + } + if (!oldBounds || (oldBounds.left !== newBounds.left || oldBounds.top !== newBounds.top || oldBounds.right !== newBounds.right || oldBounds.bottom !== newBounds.bottom)) { + const eventType = "boundschanged"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this }); + } + if (this.parent) { + this.parent.markDirty(); + this.parent.markDirtyBounds(); + } + if (this.getPrivate("showingTooltip")) { + this.showTooltip(); + } + } + } + _fixMinBounds(bounds) { + let minWidth = this.get("minWidth", this.getPrivate("minWidth")); + let minHeight = this.get("minHeight", this.getPrivate("minHeight")); + if (isNumber(minWidth)) { + if (bounds.right - bounds.left < minWidth) { + bounds.right = bounds.left + minWidth; + } + } + if (isNumber(minHeight)) { + if (bounds.bottom - bounds.top < minHeight) { + bounds.bottom = bounds.top + minHeight; + } + } + let privateWidth = this.getPrivate("width"); + let privateHeight = this.getPrivate("height"); + if (isNumber(privateWidth)) { + if (privateWidth > 0) { + bounds.right = bounds.left + privateWidth; + } else { + bounds.left = bounds.right + privateWidth; + } + } + if (isNumber(privateHeight)) { + if (privateHeight > 0) { + bounds.bottom = bounds.top + privateHeight; + } else { + bounds.top = bounds.bottom + privateHeight; + } + } + } + _removeParent(parent) { + if (parent) { + parent.children.removeValue(this); + removeFirst(parent._percentageSizeChildren, this); + removeFirst(parent._percentagePositionChildren, this); + } + } + _clearDirty() { + super._clearDirty(); + this._sizeDirty = false; + } + /** + * Simulate hover over element. + */ + hover() { + if (!this.isDisposed()) { + this.showTooltip(); + this._handleOver(); + } + } + /** + * Simulate unhover over element. + */ + unhover() { + if (!this.isDisposed()) { + this.hideTooltip(); + this._handleOut(); + } + } + /** + * Shows element's [[Tooltip]]. + */ + showTooltip(point) { + if (!this.isDisposed()) { + const tooltip = this.getTooltip(); + const tooltipText = this.get("tooltipText"); + const tooltipHTML = this.get("tooltipHTML"); + if ((tooltipText || tooltipHTML) && tooltip) { + const tooltipPosition = this.get("tooltipPosition"); + const tooltipTarget = this.getPrivate("tooltipTarget", this); + if (tooltipPosition == "fixed" || !point) { + this._display._setMatrix(); + point = this.toGlobal(tooltipTarget._getTooltipPoint()); + } + if (tooltipPosition == "pointer") { + const lastTooltipCoords = this.getPrivate("lastTooltipCoords"); + if (lastTooltipCoords && lastTooltipCoords.x == point.x && lastTooltipCoords.y == point.y) { + return; + } else { + this.setPrivate("lastTooltipCoords", point); + } + } + tooltip.set("pointTo", point); + tooltip.set("tooltipTarget", tooltipTarget); + if (!tooltip.get("x")) { + tooltip.set("x", point.x); + } + if (!tooltip.get("y")) { + tooltip.set("y", point.y); + } + if (tooltipText) { + tooltip.label.set("text", tooltipText); + } + if (tooltipHTML) { + tooltip.label.set("html", tooltipHTML); + } + const dataItem = this.dataItem; + if (dataItem) { + tooltip.label._setDataItem(dataItem); + } + if (this.get("showTooltipOn") == "always" && (point.x < 0 || point.x > this._root.width() || point.y < 0 || point.y > this._root.height())) { + this.hideTooltip(); + return; + } + tooltip.label.text.markDirtyText(); + const promise = tooltip.show(); + this.setPrivateRaw("showingTooltip", true); + return promise; + } + } + } + /** + * Hides element's [[Tooltip]]. + */ + hideTooltip() { + const tooltip = this.getTooltip(); + if (tooltip) { + this.removePrivate("lastTooltipCoords"); + if (tooltip.get("tooltipTarget") == this.getPrivate("tooltipTarget", this) || this.get("tooltip") == tooltip) { + let timeout = tooltip.get("keepTargetHover") && tooltip.get("stateAnimationDuration", 0) == 0 ? 400 : void 0; + const promise = tooltip.hide(timeout); + this.setPrivateRaw("showingTooltip", false); + return promise; + } + } + } + _getTooltipPoint() { + const bounds = this._localBounds; + if (bounds) { + let x2 = 0; + let y2 = 0; + if (!this.get("isMeasured")) { + x2 = relativeToValue(this.get("tooltipX", 0), this.width()); + y2 = relativeToValue(this.get("tooltipY", 0), this.height()); + } else { + x2 = bounds.left + relativeToValue(this.get("tooltipX", 0), bounds.right - bounds.left); + y2 = bounds.top + relativeToValue(this.get("tooltipY", 0), bounds.bottom - bounds.top); + } + return { x: x2, y: y2 }; + } + return { x: 0, y: 0 }; + } + /** + * Returns [[Tooltip]] used for this element. + * + * @return Tooltip + */ + getTooltip() { + let tooltip = this.get("tooltip"); + if (!tooltip) { + let parent = this.parent; + if (parent) { + return parent.getTooltip(); + } + } else { + return tooltip; + } + } + _updatePosition() { + const parent = this.parent; + let dx = this.get("dx", 0); + let dy = this.get("dy", 0); + let x2 = this.get("x"); + let _x = this.getPrivate("x"); + let xx = 0; + let yy = 0; + const position = this.get("position"); + if (x2 instanceof Percent) { + if (parent) { + x2 = parent.innerWidth() * x2.value + parent.get("paddingLeft", 0); + } else { + x2 = 0; + } + } + if (isNumber(x2)) { + xx = x2 + dx; + } else { + if (_x != null) { + xx = _x; + } else if (parent) { + if (position == "relative") { + xx = parent.get("paddingLeft", 0) + dx; + } + } + } + let y2 = this.get("y"); + let _y = this.getPrivate("y"); + if (y2 instanceof Percent) { + if (parent) { + y2 = parent.innerHeight() * y2.value + parent.get("paddingTop", 0); + } else { + y2 = 0; + } + } + if (isNumber(y2)) { + yy = y2 + dy; + } else { + if (_y != null) { + yy = _y; + } else if (parent) { + if (position == "relative") { + yy = parent.get("paddingTop", 0) + dy; + } + } + } + const display = this._display; + if (display.x != xx || display.y != yy) { + display.invalidateBounds(); + display.x = xx; + display.y = yy; + const eventType = "positionchanged"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this }); + } + } + if (this.getPrivate("showingTooltip")) { + this.showTooltip(); + } + } + /** + * Returns element's actual X position in pixels. + * + * @return X (px) + */ + x() { + let x2 = this.get("x"); + let _x = this.getPrivate("x"); + const parent = this.parent; + if (parent) { + if (x2 instanceof Percent) { + return relativeToValue(x2, parent.innerWidth()) + parent.get("paddingLeft", 0); + } else { + if (!isNumber(x2)) { + if (_x != null) { + return _x; + } else { + return parent.get("paddingLeft", this._display.x); + } + } else { + return x2; + } + } + } + return this._display.x; + } + /** + * Returns element's actual Y position in pixels. + * + * @return Y (px) + */ + y() { + let _y = this.getPrivate("y"); + if (_y != null) { + return _y; + } + let y2 = this.get("y"); + const parent = this.parent; + if (parent) { + if (y2 instanceof Percent) { + return relativeToValue(y2, parent.innerHeight()) + parent.get("paddingTop", 0); + } else { + if (!isNumber(y2)) { + if (_y != null) { + return _y; + } else { + return parent.get("paddingTop", this._display.y); + } + } else { + return y2; + } + } + } + return this._display.y; + } + _dispose() { + super._dispose(); + this._display.dispose(); + this._removeTemplateField(); + this._removeParent(this.parent); + this._root._removeFocusElement(this); + const tooltip = this.get("tooltip"); + if (tooltip) { + tooltip.dispose(); + } + this.markDirty(); + } + /** + * @ignore + */ + adjustedLocalBounds() { + this._fixMinBounds(this._adjustedLocalBounds); + return this._adjustedLocalBounds; + } + /** + * Returns local coordinates of the element's bounds. + * + * @ignore + * @return Global bounds + */ + localBounds() { + return this._localBounds; + } + /** + * Returns adjusted local coordinates of the element's bounds. + * + * @ignore + * @return Global bounds + */ + bounds() { + const bounds = this._adjustedLocalBounds; + const x2 = this.x(); + const y2 = this.y(); + return { left: bounds.left + x2, right: bounds.right + x2, top: bounds.top + y2, bottom: bounds.bottom + y2 }; + } + /** + * Returns global coordinates of the element's bounds. + * + * @ignore + * @return Global bounds + */ + globalBounds() { + const bounds = this.localBounds(); + const p02 = this.toGlobal({ x: bounds.left, y: bounds.top }); + const p1 = this.toGlobal({ x: bounds.right, y: bounds.top }); + const p2 = this.toGlobal({ x: bounds.right, y: bounds.bottom }); + const p3 = this.toGlobal({ x: bounds.left, y: bounds.bottom }); + return { + left: Math.min(p02.x, p1.x, p2.x, p3.x), + top: Math.min(p02.y, p1.y, p2.y, p3.y), + right: Math.max(p02.x, p1.x, p2.x, p3.x), + bottom: Math.max(p02.y, p1.y, p2.y, p3.y) + }; + } + _onShow(_duration) { + } + _onHide(_duration) { + } + /** + * Plays initial reveal animation regardless if element is currently hidden + * or visible. + * + * @param duration Duration of the animation in milliseconds + * @param delay Delay showing of the element by X milliseconds + * @return Promise + */ + appear(duration, delay) { + return __awaiter(this, void 0, void 0, function* () { + yield this.hide(0); + if (delay) { + return new Promise((success, _error) => { + this.setTimeout(() => { + success(this.show(duration)); + }, delay); + }); + } else { + return this.show(duration); + } + }); + } + /** + * Shows currently hidden element and returns a `Promise` which completes + * when all showing animations are finished. + * + * ```TypeScript + * series.show().then(function(ev) { + * console.log("Series is now fully visible"); + * }) + * ``` + * ```JavaScript + * series.show().then(function(ev) { + * console.log("Series is now fully visible"); + * }) + * ``` + * + * @return Promise + */ + show(duration) { + return __awaiter(this, void 0, void 0, function* () { + if (!this._isShowing) { + this._isHidden = false; + this._isShowing = true; + this._isHiding = false; + if (this.states.lookup("default").get("visible")) { + this.set("visible", true); + } + this._onShow(duration); + const animations = this.states.applyAnimate("default", duration); + yield waitForAnimations(animations); + this._isShowing = false; + } + }); + } + /** + * Hides the element and returns a `Promise` which completes when all hiding + * animations are finished. + * + * ```TypeScript + * series.hide().then(function(ev) { + * console.log("Series finished hiding"); + * }) + * ``` + * ```JavaScript + * series.hide().then(function(ev) { + * console.log("Series finished hiding"); + * }) + * ``` + * + * @return Promise + */ + hide(duration) { + return __awaiter(this, void 0, void 0, function* () { + if (!this._isHiding && !this._isHidden) { + this._isHiding = true; + this._isShowing = false; + let state = this.states.lookup("hidden"); + if (!state) { + state = this.states.create("hidden", { + "opacity": 0, + "visible": false + }); + } + this._isHidden = true; + this._onHide(duration); + const animations = this.states.applyAnimate("hidden", duration); + yield waitForAnimations(animations); + this._isHiding = false; + } + }); + } + /** + * Returns `true` if this element is currently hidden. + * + * @return Is hidden? + */ + isHidden() { + return this._isHidden; + } + /** + * Returns `true` if this element is currently animating to a default state. + * + * @return Is showing? + */ + isShowing() { + return this._isShowing; + } + /** + * Returns `true` if this element is currently animating to a hidden state. + * + * @return Is hiding? + */ + isHiding() { + return this._isHiding; + } + /** + * Returns `true` if this element is currently hovered by a pointer. + * + * @return Is hovered? + */ + isHover() { + return this._display.hovering(); + } + /** + * Returns `true` if this element does currently have focus. + * + * @return Is focused? + */ + isFocus() { + return this._root.focused(this); + } + /** + * Returns `true` if this element is currently being dragged. + * + * @return Is dragged? + */ + isDragging() { + return this._isDragging; + } + /** + * Returns `false` if if either public or private setting `visible` is set + * to `false`, or `forceHidden` is set to `true`. + * + * @return Visible? + */ + isVisible() { + if (this.get("visible") && this.getPrivate("visible") && !this.get("forceHidden")) { + return true; + } + return false; + } + /** + * Same as `isVisible()`, except it checks all ascendants, too. + * + * @since 5.2.7 + * @return Visible? + */ + isVisibleDeep() { + return this._parent ? this._parent.isVisibleDeep() && this.isVisible() : this.isVisible(); + } + /** + * Returns an actual opacity of the element, taking into account all parents. + * + * @return Opacity + * @since 5.2.11 + */ + compositeOpacity() { + const opacity = this.get("opacity", 1); + return this._parent ? this._parent.compositeOpacity() * opacity : opacity; + } + /** + * Returns an actual scale of the element, taking into account all parents. + * + * @return Opacity + * @since 5.9.2 + */ + compositeScale() { + const scale = this.get("scale", 1); + return this._parent ? this._parent.compositeScale() * scale : scale; + } + /** + * Returns an actual roation of the element, taking into account all parents. + * + * @return Opacity + * @since 5.9.2 + */ + compositeRotation() { + const rotation = this.get("rotation", 0); + return this._parent ? this._parent.compositeRotation() + rotation : rotation; + } + /** + * Returns width of this element in pixels. + * + * @return Width (px) + */ + width() { + let width = this.get("width"); + let maxWidth = this.get("maxWidth", this.getPrivate("maxWidth")); + let minWidth = this.get("minWidth", this.getPrivate("minWidth")); + let privateWidth = this.getPrivate("width"); + let w = 0; + if (isNumber(privateWidth)) { + w = privateWidth; + } else { + if (width == null) { + if (this._adjustedLocalBounds) { + w = this._adjustedLocalBounds.right - this._adjustedLocalBounds.left; + } + } else { + if (width instanceof Percent) { + const parent = this.parent; + if (parent) { + w = parent.innerWidth() * width.value; + } else { + w = this._root.width() * width.value; + } + } else if (isNumber(width)) { + w = width; + } + } + } + if (isNumber(minWidth)) { + w = Math.max(minWidth, w); + } + if (isNumber(maxWidth)) { + w = Math.min(maxWidth, w); + } + return w; + } + /** + * Returns maximum allowed width of this element in pixels. + * + * @return Maximum width (px) + */ + maxWidth() { + let maxWidth = this.get("maxWidth", this.getPrivate("maxWidth")); + if (isNumber(maxWidth)) { + return maxWidth; + } else { + let width = this.get("width"); + if (isNumber(width)) { + return width; + } + } + const parent = this.parent; + if (parent) { + return parent.innerWidth(); + } + return this._root.width(); + } + /** + * Returns maximum allowed height of this element in pixels. + * + * @return Maximum height (px) + */ + maxHeight() { + let maxHeight = this.get("maxHeight", this.getPrivate("maxHeight")); + if (isNumber(maxHeight)) { + return maxHeight; + } else { + let height = this.get("height"); + if (isNumber(height)) { + return height; + } + } + const parent = this.parent; + if (parent) { + return parent.innerHeight(); + } + return this._root.height(); + } + /** + * Returns height of this element in pixels. + * + * @return Height (px) + */ + height() { + let height = this.get("height"); + let maxHeight = this.get("maxHeight", this.getPrivate("maxHeight")); + let minHeight = this.get("minHeight", this.getPrivate("minHeight")); + let privateHeight = this.getPrivate("height"); + let h = 0; + if (isNumber(privateHeight)) { + h = privateHeight; + } else { + if (height == null) { + if (this._adjustedLocalBounds) { + h = this._adjustedLocalBounds.bottom - this._adjustedLocalBounds.top; + } + } else { + if (height instanceof Percent) { + const parent = this.parent; + if (parent) { + h = parent.innerHeight() * height.value; + } else { + h = this._root.height() * height.value; + } + } else if (isNumber(height)) { + h = height; + } + } + } + if (isNumber(minHeight)) { + h = Math.max(minHeight, h); + } + if (isNumber(maxHeight)) { + h = Math.min(maxHeight, h); + } + return h; + } + _findStaticTemplate(f) { + if (this._templateField && f(this._templateField)) { + return this._templateField; + } + return super._findStaticTemplate(f); + } + _walkParents(f) { + if (this._parent || this._virtualParent) { + this._walkParent(f); + } + } + _walkParent(f) { + if (this._parent) { + this._parent._walkParent(f); + } else { + if (this._virtualParent) { + this._virtualParent._walkParent(f); + } + } + f(this); + } + set virtualParent(parent) { + if (this._virtualParent !== parent) { + this._virtualParent = parent; + this._applyThemes(); + } + } + /** + * Parent [[Container]] of this element. + * + * @return Parent container + */ + get parent() { + return this._parent; + } + _setParent(parent, updateChildren = false) { + const prevParent = this._parent; + if (parent !== prevParent) { + this.markDirtyBounds(); + parent.markDirty(); + this._parent = parent; + if (updateChildren) { + this._removeParent(prevParent); + if (parent) { + this._addPercentageSizeChildren(); + this._addPercentagePositionChildren(); + } + } + this.markDirtyPosition(); + this._applyThemes(); + } + } + /** + * Returns an instance of [[NumberFormatter]] used in this element. + * + * If this element does not have it set, global one form [[Root]] is used. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/using-formatters/} for more info + * @return NumberFormatter instace + */ + getNumberFormatter() { + return this.get("numberFormatter", this._root.numberFormatter); + } + /** + * Returns an instance of [[DateFormatter]] used in this element. + * + * If this element does not have it set, global one form [[Root]] is used. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/using-formatters/} for more info + * @return DateFormatter instace + */ + getDateFormatter() { + return this.get("dateFormatter", this._root.dateFormatter); + } + /** + * Returns an instance of [[DurationFormatter]] used in this element. + * + * If this element does not have it set, global one form [[Root]] is used. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/using-formatters/} for more info + * @return DurationFormatter instace + */ + getDurationFormatter() { + return this.get("durationFormatter", this._root.durationFormatter); + } + /** + * Converts X/Y coordinate within this element to a global coordinate. + * + * @param point Local coordinate + * @return Global coordinate + */ + toGlobal(point) { + return this._display.toGlobal(point); + } + /** + * Converts global X/Y coordinate to a coordinate within this element. + * + * @param point Global coordinate + * @return Local coordinate + */ + toLocal(point) { + return this._display.toLocal(point); + } + _getDownPoint() { + const id = this._getDownPointId(); + if (id) { + return this._downPoints[id]; + } + } + _getDownPointId() { + if (this._downPoints) { + return keysOrdered(this._downPoints, (a, b) => { + if (a > b) { + return 1; + } + if (a < b) { + return -1; + } + return 0; + })[0]; + } + } + /** + * Moves sprite to the end of the parent's children array. + * + * Depending on `layout` setting of the parten container, it may effect the + * positioning or overlapping order of the elements. + */ + toFront() { + const parent = this.parent; + if (parent) { + parent.children.moveValue(this, parent.children.length - 1); + } + } + /** + * Moves sprite to the beginning of the parent's children array. + * + * Depending on `layout` setting of the parten container, it may effect the + * positioning or overlapping order of the elements. + */ + toBack() { + const parent = this.parent; + if (parent) { + parent.children.moveValue(this, 0); + } + } + }; + Sprite.className = "Sprite"; + Sprite.classNames = Entity.classNames.concat([Sprite.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/patterns/Pattern.js + var Pattern = class extends Entity { + constructor() { + super(...arguments); + this._display = this._root._renderer.makeGraphics(); + this._backgroundDisplay = this._root._renderer.makeGraphics(); + this._clear = false; + } + _afterNew() { + super._afterNewApplyThemes(); + } + get pattern() { + return this._pattern; + } + _draw() { + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("repetition") || this.isDirty("width") || this.isDirty("height") || this.isDirty("rotation") || this.isDirty("strokeWidth") || this.isDirty("strokeDasharray") || this.isDirty("strokeDashoffset") || this.isDirty("colorOpacity") || this.isDirty("fillOpacity")) { + this._clear = true; + } + this._checkDirtyFill(); + } + _checkDirtyFill() { + if (this.isDirty("color") || this.isDirty("fill")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear) { + const repetition = this.get("repetition", ""); + const width = this.get("width", 100); + const height = this.get("height", 100); + const fill = this.get("fill"); + const fillOpacity = this.get("fillOpacity", 1); + const backgroundDisplay = this._backgroundDisplay; + const display = this._display; + display.clear(); + backgroundDisplay.clear(); + if (fill && fillOpacity > 0) { + backgroundDisplay.beginFill(fill, fillOpacity); + backgroundDisplay.drawRect(0, 0, width, height); + backgroundDisplay.endFill(); + } + display.angle = this.get("rotation", 0); + this._draw(); + this._pattern = this._root._renderer.createPattern(display, backgroundDisplay, repetition, width, height); + } + this._clear = false; + } + }; + Pattern.className = "Pattern"; + Pattern.classNames = Entity.classNames.concat([Pattern.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/patterns/PicturePattern.js + var PicturePattern = class extends Pattern { + _beforeChanged() { + super._beforeChanged(); + this._clear = true; + if (this.isDirty("src")) { + this._load(); + } + const canvas = this.get("canvas"); + if (canvas) { + this.set("width", canvas.width); + this.set("height", canvas.height); + } + } + _draw() { + super._draw(); + const colorOpacity = this.get("colorOpacity"); + if (colorOpacity !== void 0) { + this._display.alpha = Math.max(0, colorOpacity); + } + const image = this._image; + if (image) { + const patternWidth = this.get("width", 100); + const patternHeight = this.get("height", 100); + const fit = this.get("fit", "image"); + let width = 0; + let height = 0; + if (fit == "pattern") { + width = patternWidth; + height = patternHeight; + this.markDirty(); + } else { + width = image.width; + height = image.height; + if (fit == "image") { + this.set("width", width); + this.set("height", height); + } + } + const centered = this.get("centered", true); + let x2 = 0; + let y2 = 0; + if (centered) { + x2 = patternWidth / 2 - width / 2; + y2 = patternHeight / 2 - height / 2; + } + this._display.image(image, width, height, x2, y2); + } + const canvas = this.get("canvas"); + if (canvas) { + this._display.image(canvas, canvas.width, canvas.height, 0, 0); + } + } + _load() { + const src = this.get("src"); + if (src) { + const image = new Image(); + image.src = src; + image.decode().then(() => { + this._image = image; + this._draw(); + if (this.events.isEnabled("loaded")) { + this.events.dispatch("loaded", { type: "loaded", target: this }); + } + }).catch((_error) => { + }); + } + } + }; + PicturePattern.className = "PicturePattern"; + PicturePattern.classNames = Pattern.classNames.concat([PicturePattern.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/backend/Renderer.js + var BlendMode; + (function(BlendMode2) { + BlendMode2["ADD"] = "lighter"; + BlendMode2["COLOR"] = "color"; + BlendMode2["COLOR_BURN"] = "color-burn"; + BlendMode2["COLOR_DODGE"] = "color-dodge"; + BlendMode2["DARKEN"] = "darken"; + BlendMode2["DIFFERENCE"] = "difference"; + BlendMode2["DST_OVER"] = "destination-over"; + BlendMode2["EXCLUSION"] = "exclusion"; + BlendMode2["HARD_LIGHT"] = "hard-light"; + BlendMode2["HUE"] = "hue"; + BlendMode2["LIGHTEN"] = "lighten"; + BlendMode2["LUMINOSITY"] = "luminosity"; + BlendMode2["MULTIPLY"] = "multiply"; + BlendMode2["NORMAL"] = "source-over"; + BlendMode2["OVERLAY"] = "overlay"; + BlendMode2["SATURATION"] = "saturation"; + BlendMode2["SCREEN"] = "screen"; + BlendMode2["SOFT_LIGHT"] = "soft-light"; + BlendMode2["SRC_ATOP"] = "source-atop"; + BlendMode2["XOR"] = "xor"; + })(BlendMode || (BlendMode = {})); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Graphics.js + var Graphics = class extends Sprite { + constructor() { + super(...arguments); + this._display = this._root._renderer.makeGraphics(); + this._clear = false; + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("draw") || this.isDirty("svgPath")) { + this.markDirtyBounds(); + } + if (this.isDirty("fill") || this.isDirty("stroke") || this.isDirty("visible") || this.isDirty("forceHidden") || this.isDirty("scale") || this.isDirty("fillGradient") || this.isDirty("strokeGradient") || this.isDirty("fillPattern") || this.isDirty("strokePattern") || this.isDirty("fillOpacity") || this.isDirty("strokeOpacity") || this.isDirty("strokeWidth") || this.isDirty("draw") || this.isDirty("blendMode") || this.isDirty("strokeDasharray") || this.isDirty("strokeDashoffset") || this.isDirty("svgPath") || this.isDirty("lineJoin") || this.isDirty("lineCap") || this.isDirty("shadowColor") || this.isDirty("shadowBlur") || this.isDirty("shadowOffsetX") || this.isDirty("shadowOffsetY")) { + this._clear = true; + } + this._display.crisp = this.get("crisp", false); + if (this.isDirty("fillGradient")) { + const gradient = this.get("fillGradient"); + if (gradient) { + this._display.isMeasured = true; + const gradientTarget = gradient.get("target"); + if (gradientTarget) { + this._disposers.push(gradientTarget.events.on("boundschanged", () => { + this._markDirtyKey("fill"); + })); + this._disposers.push(gradientTarget.events.on("positionchanged", () => { + this._markDirtyKey("fill"); + })); + } + } + } + if (this.isDirty("strokeGradient")) { + const gradient = this.get("strokeGradient"); + if (gradient) { + this._display.isMeasured = true; + const gradientTarget = gradient.get("target"); + if (gradientTarget) { + this._disposers.push(gradientTarget.events.on("boundschanged", () => { + this._markDirtyKey("stroke"); + })); + this._disposers.push(gradientTarget.events.on("positionchanged", () => { + this._markDirtyKey("stroke"); + })); + } + } + } + } + _changed() { + super._changed(); + if (this._clear) { + this.markDirtyBounds(); + this.markDirtyLayer(); + this._display.clear(); + let strokeDasharray = this.get("strokeDasharray"); + if (isNumber(strokeDasharray)) { + if (strokeDasharray < 0.5) { + strokeDasharray = [0]; + } else { + strokeDasharray = [strokeDasharray]; + } + } + this._display.setLineDash(strokeDasharray); + const strokeDashoffset = this.get("strokeDashoffset"); + if (strokeDashoffset) { + this._display.setLineDashOffset(strokeDashoffset); + } + const blendMode = this.get("blendMode", BlendMode.NORMAL); + this._display.blendMode = blendMode; + const draw = this.get("draw"); + if (draw && typeof draw === "function") { + draw(this._display, this); + } + const svgPath = this.get("svgPath"); + if (svgPath != null) { + this._display.svgPath(svgPath); + } + } + } + _afterChanged() { + super._afterChanged(); + if (this._clear) { + const fill = this.get("fill"); + const fillGradient = this.get("fillGradient"); + const fillPattern = this.get("fillPattern"); + const fillOpacity = this.get("fillOpacity"); + const stroke = this.get("stroke"); + const strokeGradient = this.get("strokeGradient"); + const strokePattern = this.get("strokePattern"); + const shadowColor = this.get("shadowColor"); + const shadowBlur = this.get("shadowBlur"); + const shadowOffsetX = this.get("shadowOffsetX"); + const shadowOffsetY = this.get("shadowOffsetY"); + const shadowOpacity = this.get("shadowOpacity"); + if (shadowColor && (shadowBlur || shadowOffsetX || shadowOffsetY)) { + this._display.shadow(shadowColor, shadowBlur, shadowOffsetX, shadowOffsetY, shadowOpacity); + } + if (fill && !fillGradient) { + this._display.beginFill(fill, fillOpacity); + this._display.endFill(); + } + if (fillGradient) { + if (fill) { + const stops = fillGradient.get("stops", []); + if (stops.length) { + each(stops, (stop) => { + if ((!stop.color || stop.colorInherited) && fill) { + stop.color = fill; + stop.colorInherited = true; + } + if (stop.opacity == null || stop.opacityInherited) { + stop.opacity = fillOpacity; + stop.opacityInherited = true; + } + }); + } + } + const gradient = fillGradient.getFill(this); + if (gradient) { + this._display.beginFill(gradient, fillOpacity); + this._display.endFill(); + } + } + if (fillPattern) { + const pattern = fillPattern.pattern; + if (pattern) { + this._display.beginFill(pattern, fillOpacity); + this._display.endFill(); + if (fillPattern instanceof PicturePattern) { + fillPattern.events.once("loaded", () => { + this._clear = true; + this.markDirty(); + }); + } + } + } + if (stroke || strokeGradient || strokePattern) { + const strokeOpacity = this.get("strokeOpacity"); + let strokeWidth = this.get("strokeWidth", 1); + if (this.get("nonScalingStroke")) { + strokeWidth = strokeWidth / this.get("scale", 1); + } + if (this.get("crisp")) { + strokeWidth /= this._root._renderer.resolution; + } + const lineJoin = this.get("lineJoin"); + const lineCap = this.get("lineCap"); + if (stroke && !strokeGradient) { + this._display.lineStyle(strokeWidth, stroke, strokeOpacity, lineJoin, lineCap); + this._display.endStroke(); + } + if (strokeGradient) { + const stops = strokeGradient.get("stops", []); + if (stops.length) { + each(stops, (stop) => { + if ((!stop.color || stop.colorInherited) && stroke) { + stop.color = stroke; + stop.colorInherited = true; + } + if (stop.opacity == null || stop.opacityInherited) { + stop.opacity = strokeOpacity; + stop.opacityInherited = true; + } + }); + } + const gradient = strokeGradient.getFill(this); + if (gradient) { + this._display.lineStyle(strokeWidth, gradient, strokeOpacity, lineJoin, lineCap); + this._display.endStroke(); + } + } + if (strokePattern) { + let pattern = strokePattern.pattern; + if (pattern) { + this._display.lineStyle(strokeWidth, pattern, strokeOpacity, lineJoin, lineCap); + this._display.endStroke(); + if (strokePattern instanceof PicturePattern) { + strokePattern.events.once("loaded", () => { + this._clear = true; + this.markDirty(); + }); + } + } + } + } + if (this.getPrivate("showingTooltip")) { + this.showTooltip(); + } + } + this._clear = false; + } + }; + Graphics.className = "Graphics"; + Graphics.classNames = Sprite.classNames.concat([Graphics.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Rectangle.js + var Rectangle = class extends Graphics { + _afterNew() { + super._afterNew(); + this._display.isMeasured = true; + this.setPrivateRaw("trustBounds", true); + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("width") || this.isDirty("height") || this.isPrivateDirty("width") || this.isPrivateDirty("height")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear && !this.get("draw")) { + this._draw(); + } + } + _draw() { + let w = this.width(); + let h = this.height(); + let x2 = 0; + let y2 = 0; + let wSign = w / Math.abs(w); + let hSign = h / Math.abs(h); + if (this.get("containStroke", false)) { + const strokeWidth = this.get("strokeWidth", 0); + w -= strokeWidth * wSign; + h -= strokeWidth * hSign; + x2 += strokeWidth / 2 * wSign; + y2 += strokeWidth / 2 * hSign; + } + this._display.drawRect(x2, y2, w, h); + } + _updateSize() { + this.markDirty(); + this._clear = true; + } + }; + Rectangle.className = "Rectangle"; + Rectangle.classNames = Graphics.classNames.concat([Rectangle.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Layout.js + function eachChildren(container, f) { + if (container.get("reverseChildren", false)) { + container.children.eachReverse(f); + } else { + container.children.each(f); + } + } + var Layout = class extends Entity { + }; + Layout.className = "Layout"; + Layout.classNames = Entity.classNames.concat([Layout.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/HorizontalLayout.js + var HorizontalLayout = class extends Layout { + /** + * @ignore + */ + updateContainer(container) { + let paddingLeft = container.get("paddingLeft", 0); + let availableWidth = container.innerWidth(); + let totalPercent = 0; + eachChildren(container, (child) => { + if (child.isVisible()) { + if (child.get("position") == "relative") { + let childWidth = child.get("width"); + if (childWidth instanceof Percent) { + totalPercent += childWidth.value; + let w = availableWidth * childWidth.value; + let minWidth = child.get("minWidth", child.getPrivate("minWidth", -Infinity)); + if (minWidth > w) { + availableWidth -= minWidth; + totalPercent -= childWidth.value; + } + let maxWidth = child.get("maxWidth", child.getPrivate("maxWidth", Infinity)); + if (w > maxWidth) { + availableWidth -= maxWidth; + totalPercent -= childWidth.value; + } + } else { + if (!isNumber(childWidth)) { + childWidth = child.width(); + } + availableWidth -= childWidth + child.get("marginLeft", 0) + child.get("marginRight", 0); + } + } + } + }); + if (availableWidth <= 0 || availableWidth == Infinity) { + availableWidth = 0.1; + } + eachChildren(container, (child) => { + if (child.isVisible()) { + if (child.get("position") == "relative") { + let childWidth = child.get("width"); + if (childWidth instanceof Percent) { + let privateWidth = availableWidth * childWidth.value / totalPercent - child.get("marginLeft", 0) - child.get("marginRight", 0); + let minWidth = child.get("minWidth", child.getPrivate("minWidth", -Infinity)); + let maxWidth = child.get("maxWidth", child.getPrivate("maxWidth", Infinity)); + privateWidth = Math.min(Math.max(minWidth, privateWidth), maxWidth); + child.setPrivate("width", privateWidth); + } else { + if (child._prevSettings.width instanceof Percent) { + child.setPrivate("width", void 0); + } + } + } + } + }); + let prevX = paddingLeft; + eachChildren(container, (child) => { + if (child.get("position") == "relative") { + if (child.isVisible()) { + let bounds = child.adjustedLocalBounds(); + let marginLeft = child.get("marginLeft", 0); + let marginRight = child.get("marginRight", 0); + let maxWidth = child.get("maxWidth"); + let left = bounds.left; + let right = bounds.right; + if (maxWidth) { + if (right - left > maxWidth) { + right = left + maxWidth; + } + } + let x2 = prevX + marginLeft - left; + child.setPrivate("x", x2); + prevX = x2 + right + marginRight; + } else { + child.setPrivate("x", void 0); + } + } + }); + } + }; + HorizontalLayout.className = "HorizontalLayout"; + HorizontalLayout.classNames = Layout.classNames.concat([HorizontalLayout.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/VerticalLayout.js + var VerticalLayout = class extends Layout { + /** + * @ignore + */ + updateContainer(container) { + let paddingTop = container.get("paddingTop", 0); + let availableHeight = container.innerHeight(); + let totalPercent = 0; + eachChildren(container, (child) => { + if (child.isVisible()) { + if (child.get("position") == "relative") { + let childHeight = child.get("height"); + if (childHeight instanceof Percent) { + totalPercent += childHeight.value; + let h = availableHeight * childHeight.value; + let minHeight = child.get("minHeight", child.getPrivate("minHeight", -Infinity)); + if (minHeight > h) { + availableHeight -= minHeight; + totalPercent -= childHeight.value; + } + let maxHeight = child.get("maxHeight", child.getPrivate("maxHeight", Infinity)); + if (h > maxHeight) { + availableHeight -= maxHeight; + totalPercent -= childHeight.value; + } + } else { + if (!isNumber(childHeight)) { + childHeight = child.height(); + } + availableHeight -= childHeight + child.get("marginTop", 0) + child.get("marginBottom", 0); + } + } + } + }); + if (availableHeight <= 0 || availableHeight == Infinity) { + availableHeight = 0.1; + } + eachChildren(container, (child) => { + if (child.isVisible()) { + if (child.get("position") == "relative") { + let childHeight = child.get("height"); + if (childHeight instanceof Percent) { + let privateHeight = availableHeight * childHeight.value / totalPercent - child.get("marginTop", 0) - child.get("marginBottom", 0); + let minHeight = child.get("minHeight", child.getPrivate("minHeight", -Infinity)); + let maxHeight = child.get("maxHeight", child.getPrivate("maxHeight", Infinity)); + privateHeight = Math.min(Math.max(minHeight, privateHeight), maxHeight); + child.setPrivate("height", privateHeight); + } else { + if (child._prevSettings.height instanceof Percent) { + child.setPrivate("height", void 0); + } + } + } + } + }); + let prevY = paddingTop; + eachChildren(container, (child) => { + if (child.get("position") == "relative") { + if (child.isVisible()) { + let bounds = child.adjustedLocalBounds(); + let marginTop = child.get("marginTop", 0); + let top = bounds.top; + let bottom = bounds.bottom; + let maxHeight = child.get("maxHeight"); + if (maxHeight) { + if (bottom - top > maxHeight) { + bottom = top + maxHeight; + } + } + let marginBottom = child.get("marginBottom", 0); + let y2 = prevY + marginTop - top; + child.setPrivate("y", y2); + prevY = y2 + bottom + marginBottom; + } else { + child.setPrivate("y", void 0); + } + } + }); + } + }; + VerticalLayout.className = "VerticalLayout"; + VerticalLayout.classNames = Layout.classNames.concat([VerticalLayout.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/GridLayout.js + var GridLayout = class extends Layout { + _afterNew() { + this._setRawDefault("maxColumns", Number.MAX_VALUE); + super._afterNew(); + } + /** + * @ignore + */ + updateContainer(container) { + let paddingLeft = container.get("paddingLeft", 0); + let paddingRight = container.get("paddingRight", 0); + let paddingTop = container.get("paddingTop", 0); + let availableWidth = container.maxWidth() - paddingLeft - paddingRight; + let minCellWidth = availableWidth; + let maxCellWidth = 1; + eachChildren(container, (child) => { + if (child.get("visible") && child.getPrivate("visible") && !child.get("forceHidden")) { + if (child.get("position") != "absolute") { + let childWidth = child.width(); + if (childWidth < minCellWidth) { + minCellWidth = childWidth; + } + if (childWidth > maxCellWidth) { + maxCellWidth = childWidth; + } + } + } + }); + minCellWidth = fitToRange(minCellWidth, 1, availableWidth); + maxCellWidth = fitToRange(maxCellWidth, 1, availableWidth); + let columnCount = 1; + if (this.get("fixedWidthGrid")) { + columnCount = availableWidth / maxCellWidth; + } else { + columnCount = availableWidth / minCellWidth; + } + columnCount = Math.max(1, Math.floor(columnCount)); + columnCount = Math.min(this.get("maxColumns", Number.MAX_VALUE), columnCount); + let columnWidths = this.getColumnWidths(container, columnCount, maxCellWidth, availableWidth); + let prevY = paddingTop; + let column = 0; + let maxRowHeight = 0; + columnCount = columnWidths.length; + let prevX = paddingLeft; + eachChildren(container, (child) => { + if (child.get("position") == "relative" && child.isVisible()) { + const marginTop = child.get("marginTop", 0); + const marginBottom = child.get("marginBottom", 0); + let bounds = child.adjustedLocalBounds(); + let marginLeft = child.get("marginLeft", 0); + let marginRight = child.get("marginRight", 0); + let x2 = prevX + marginLeft - bounds.left; + let y2 = prevY + marginTop - bounds.top; + child.setPrivate("x", x2); + child.setPrivate("y", y2); + prevX += columnWidths[column] + marginRight; + maxRowHeight = Math.max(maxRowHeight, child.height() + marginTop + marginBottom); + column++; + if (column >= columnCount) { + column = 0; + prevX = paddingLeft; + prevY += maxRowHeight; + maxRowHeight = 0; + } + } + }); + } + /** + * @ignore + */ + getColumnWidths(container, columnCount, maxCellWidth, availableWidth) { + let totalWidth = 0; + let columnWidths = []; + let column = 0; + eachChildren(container, (child) => { + let bounds = child.adjustedLocalBounds(); + if (child.get("position") != "absolute" && child.isVisible()) { + if (this.get("fixedWidthGrid")) { + columnWidths[column] = maxCellWidth; + } else { + columnWidths[column] = Math.max(columnWidths[column] | 0, bounds.right - bounds.left + child.get("marginLeft", 0) + child.get("marginRight", 0)); + } + if (column < container.children.length - 1) { + column++; + if (column == columnCount) { + column = 0; + } + } + } + }); + each(columnWidths, (w) => { + totalWidth += w; + }); + if (totalWidth > availableWidth) { + if (columnCount > 2) { + columnCount -= 1; + return this.getColumnWidths(container, columnCount, maxCellWidth, availableWidth); + } else { + return [availableWidth]; + } + } + return columnWidths; + } + }; + GridLayout.className = "GridLayout"; + GridLayout.classNames = Layout.classNames.concat([GridLayout.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/TextFormatter.js + var TextFormatter = class { + /** + * Replaces brackets with temporary placeholders. + * + * @ignore Exclude from docs + * @param text Input text + * @return Escaped text + */ + static escape(text) { + return text.replace(/\[\[/g, this.prefix + "1").replace(/([^\/\]]{1})\]\]/g, "$1" + this.prefix + "2").replace(/\]\]/g, this.prefix + "2").replace(/\{\{/g, this.prefix + "3").replace(/\}\}/g, this.prefix + "4").replace(/\'\'/g, this.prefix + "5"); + } + /** + * Replaces placeholders back to brackets. + * + * @ignore Exclude from docs + * @param text Escaped text + * @return Unescaped text + */ + static unescape(text) { + return text.replace(new RegExp(this.prefix + "1", "g"), "[[").replace(new RegExp(this.prefix + "2", "g"), "]]").replace(new RegExp(this.prefix + "3", "g"), "{{").replace(new RegExp(this.prefix + "4", "g"), "}}").replace(new RegExp(this.prefix + "5", "g"), "''"); + } + /** + * Cleans up the text text for leftover double square brackets. + * + * @ignore Exclude from docs + * @param text Input text + * @return Cleaned up text + */ + static cleanUp(text) { + return text.replace(/\[\[/g, "[").replace(/\]\]/g, "]").replace(/\{\{/g, "{").replace(/\}\}/g, "}").replace(/\'\'/g, "'"); + } + /** + * Splits string into chunks. (style blocks, quoted blocks, regular blocks) + * + * If the second parameter `quotedBlocks` is set to `true` this method will + * also single out text blocks enclosed within single quotes that no + * formatting should be applied to, and they should be displayed as is. + * + * Default for the above is `false`, so that you can use single quote in text + * without escaping it. + * + * If enabled, single quotes can be escaped by doubling it - adding two + * single quotes, which will be replaced by a one single quote in the final + * output. + * + * @ignore Exclude from docs + * @param text Text to chunk + * @param quotedBlocks Use quoted blocks + * @param noFormatting Formatting blocks will be treated as regular text + * @return Array of string chunks + */ + static chunk(text, quotedBlocks = false, noFormatting = false) { + let res = []; + text = this.escape(text); + let chunks = quotedBlocks ? text.split("'") : [text]; + for (let i = 0; i < chunks.length; i++) { + let chunk = chunks[i]; + if (chunk === "") { + continue; + } + if (i % 2 === 0) { + chunk = chunk.replace(/\]\[/g, "]" + PLACEHOLDER + "["); + chunk = chunk.replace(/\[\]/g, "[ ]"); + let chunks2 = chunk.split(/[\[\]]+/); + for (let i2 = 0; i2 < chunks2.length; i2++) { + let chunk2 = this.cleanUp(this.unescape(chunks2[i2])); + if (chunk2 === PLACEHOLDER) { + continue; + } + if (chunk2 === "") { + continue; + } + if (i2 % 2 === 0) { + res.push({ + "type": "value", + "text": chunk2 + }); + } else { + res.push({ + "type": noFormatting ? "value" : "format", + "text": "[" + chunk2 + "]" + }); + } + } + } else { + let chunks2 = chunk.split(/[\[\]]+/); + for (let i2 = 0; i2 < chunks2.length; i2++) { + let chunk2 = this.cleanUp(this.unescape(chunks2[i2])); + if (chunk2 === "") { + continue; + } + if (i2 % 2 === 0) { + res.push({ + "type": "text", + "text": chunk2 + }); + } else if (this.isImage(chunk2)) { + res.push({ + "type": "image", + "text": "[" + chunk2 + "]" + }); + } else { + res.push({ + "type": "format", + "text": "[" + chunk2 + "]" + }); + } + } + } + } + return res; + } + /** + * Checks if supplied format contains image information and should be + * formatted as such. + * I.e.: `[img: myImage.png]` + * + * @ignore + * @param text Format + * @return true if it is an image + */ + static isImage(text) { + return text.match(/img[ ]?:/) ? true : false; + } + static getTextStyle(style) { + let format = {}; + if (style == "" || style == "[ ]") { + return {}; + } + const q = style.match(/('[^']*')|("[^"]*")/gi); + if (q) { + for (let i = 0; i < q.length; i++) { + style = style.replace(q[i], q[i].replace(/['"]*/g, "").replace(/[ ]+/g, "+")); + } + } + let b = style.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w\-]+)|(\/)/gi); + if (!b) { + return {}; + } + for (let i = 0; i < b.length; i++) { + if (b[i].match(/^(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)$/i)) { + format.fontWeight = b[i]; + } else if (b[i].match(/^(underline|line-through)$/i)) { + format.textDecoration = b[i]; + } else if (b[i] == "/") { + } else if (!b[i].match(/:/)) { + format.fill = Color.fromString(b[i]); + } else { + const p = b[i].replace("+", " ").split(/:[ ]*/); + format[p[0]] = p[1]; + } + } + return format; + } + }; + TextFormatter.prefix = "__amcharts__"; + + // node_modules/@amcharts/amcharts5/.internal/core/util/PopulateString.js + function populateString(target, string) { + if (string != null) { + string = "" + string; + string = TextFormatter.escape(string); + let tags = string.match(/\{([^}]+)\}/g); + let i; + if (tags) { + for (i = 0; i < tags.length; i++) { + let tag = tags[i].replace(/\{([^}]+)\}/, "$1"); + let value = getTagValue(target, tag, ""); + if (value == null) { + value = ""; + } + string = string.split(tags[i]).join(value); + } + } + string = TextFormatter.unescape(string); + } else { + string = ""; + } + return string; + } + function getTagValue(target, tagName, format) { + let value; + const dataItem = target.dataItem; + let parts = []; + let reg = /(format[a-zA-Z]*)\((.*)\)|([^.]+)/g; + let matches; + while (true) { + matches = reg.exec(tagName); + if (matches === null) { + break; + } + if (matches[3]) { + parts.push({ + prop: matches[3] + }); + const dateFields = target.getDateFormatter().get("dateFields", []); + const numericFields = target.getNumberFormatter().get("numericFields", []); + const durationFields = target.getDurationFormatter().get("durationFields", []); + if (dateFields.indexOf(matches[3]) !== -1) { + parts.push({ + method: "formatDate", + params: [] + }); + } else if (numericFields.indexOf(matches[3]) !== -1) { + parts.push({ + method: "formatNumber", + params: [] + }); + } else if (durationFields.indexOf(matches[3]) !== -1) { + parts.push({ + method: "formatDuration", + params: [] + }); + } + } else { + let params = []; + if (trim(matches[2]) != "") { + let reg2 = /'([^']*)'|"([^"]*)"|([0-9\-]+)/g; + let matches2; + while (true) { + matches2 = reg2.exec(matches[2]); + if (matches2 === null) { + break; + } + params.push(matches2[1] || matches2[2] || matches2[3]); + } + } + parts.push({ + method: matches[1], + params + }); + } + } + if (dataItem) { + value = getTagValueFromObject(target, parts, dataItem._settings); + if (value == null || isObject(value)) { + value = getTagValueFromObject(target, parts, dataItem); + } + let dataContext = dataItem.dataContext; + if (value == null && dataContext) { + value = getTagValueFromObject(target, parts, dataContext); + if (value == null) { + value = getTagValueFromObject(target, [{ + prop: tagName + }], dataContext); + } + if (value == null && dataContext.dataContext) { + value = getTagValueFromObject(target, parts, dataContext.dataContext); + } + } + if (value == null && dataItem.component && dataItem.component.dataItem !== dataItem) { + value = getTagValue(dataItem.component, tagName, format); + } + } + if (value == null) { + value = getTagValueFromObject(target, parts, target); + } + if (value == null && target.parent) { + value = getTagValue(target.parent, tagName, format); + } + return value; + } + function getCustomDataValue(target, prop) { + const customData = target.getPrivate("customData"); + if (isObject(customData)) { + return customData[prop]; + } + } + function getTagValueFromObject(target, parts, object, format) { + let current = object; + let formatApplied = false; + for (let i = 0, len = parts.length; i < len; i++) { + let part = parts[i]; + if (part.prop) { + if (current instanceof Sprite) { + let tmp = current.get(part.prop); + if (tmp == null) + tmp = current.getPrivate(part.prop); + if (tmp == null) + tmp = getCustomDataValue(current, part.prop); + if (tmp == null) + tmp = current[part.prop]; + current = tmp; + } else if (current.get) { + let tmp = current.get(part.prop); + if (tmp == null) + tmp = current[part.prop]; + current = tmp; + } else { + current = current[part.prop]; + } + if (current == null) { + return; + } + } else { + switch (part.method) { + case "formatNumber": + let numberValue = toNumber(current); + if (numberValue != null) { + current = target.getNumberFormatter().format(numberValue, format || part.params[0] || void 0); + formatApplied = true; + } + break; + case "formatDate": + let dateValue = toDate(current); + if (!isDate(dateValue) || isNaN2(dateValue.getTime())) { + return; + } + if (dateValue != null) { + current = target.getDateFormatter().format(dateValue, format || part.params[0] || void 0); + formatApplied = true; + } + break; + case "formatDuration": + let durationValue = toNumber(current); + if (durationValue != null) { + current = target.getDurationFormatter().format(durationValue, format || part.params[0] || void 0, part.params[1] || void 0); + formatApplied = true; + } + break; + case "urlEncode": + case "encodeURIComponent": + current = encodeURIComponent(current); + break; + default: + if (current[part.method]) { + current[part.method].apply(object, part.params); + } + break; + } + } + } + if (!formatApplied) { + let formatParts = [{ + method: "", + params: format + }]; + if (format == null) { + if (isNumber(current)) { + formatParts[0].method = "formatNumber"; + formatParts[0].params = ""; + } else if (isDate(current)) { + formatParts[0].method = "formatDate"; + formatParts[0].params = ""; + } + } else { + let formatterType = getFormat(format); + if (formatterType === "number") { + formatParts[0].method = "formatNumber"; + } else if (formatterType === "date") { + formatParts[0].method = "formatDate"; + } else if (formatterType === "duration") { + formatParts[0].method = "formatDuration"; + } + } + if (formatParts[0].method) { + current = getTagValueFromObject(target, formatParts, current); + } + } + return current; + } + + // node_modules/@amcharts/amcharts5/.internal/core/render/Container.js + var Container = class _Container extends Sprite { + constructor() { + super(...arguments); + this._display = this._root._renderer.makeContainer(); + this._childrenDisplay = this._root._renderer.makeContainer(); + this.children = new Children(this); + this._percentageSizeChildren = []; + this._percentagePositionChildren = []; + this._prevWidth = 0; + this._prevHeight = 0; + this._contentWidth = 0; + this._contentHeight = 0; + this._childrenPrep = false; + this._childrenUpdt = false; + } + _afterNew() { + super._afterNew(); + this._display.addChild(this._childrenDisplay); + } + _afterChanged() { + super._afterChanged(); + this._childrenPrep = false; + this._childrenUpdt = false; + } + _dispose() { + eachReverse(this.allChildren(), (child) => { + child.dispose(); + }); + if (this.getPrivate("htmlElement")) { + this._root._removeHTMLContent(this); + } + super._dispose(); + } + _beforeChanged() { + if (!this._childrenPrep) { + this._prepareChildren(); + } + if (!this._childrenUpdt) { + this._updateChildren(); + } + super._beforeChanged(); + } + _changed() { + super._changed(); + if (this.isDirty("interactiveChildren")) { + this._display.interactiveChildren = this.get("interactiveChildren", false); + } + if (this.isDirty("layout")) { + this._prevWidth = 0; + this._prevHeight = 0; + this.markDirtyBounds(); + if (this._prevSettings.layout) { + this.children.each((child) => { + child.removePrivate("x"); + child.removePrivate("y"); + }); + } + } + if (this.isDirty("paddingTop") || this.isDirty("paddingBottom") || this.isDirty("paddingLeft") || this.isDirty("paddingRight")) { + this.children.each((child) => { + child.markDirtyPosition(); + }); + } + if (this.isDirty("maskContent")) { + const childrenDisplay = this._childrenDisplay; + let contentMask = this._contentMask; + if (this.get("maskContent")) { + if (!contentMask) { + contentMask = Rectangle.new(this._root, { + x: -0.5, + y: -0.5, + width: this.width() + 1, + height: this.height() + 1 + }); + this._contentMask = contentMask; + childrenDisplay.addChildAt(contentMask._display, 0); + childrenDisplay.mask = contentMask._display; + } + } else { + if (contentMask) { + childrenDisplay.removeChild(contentMask._display); + childrenDisplay.mask = null; + contentMask.dispose(); + this._contentMask = void 0; + } + } + } + } + _updateSize() { + super._updateSize(); + each(this._percentageSizeChildren, (child) => { + child._updateSize(); + }); + each(this._percentagePositionChildren, (child) => { + child.markDirtyPosition(); + child._updateSize(); + }); + this.updateBackground(); + } + updateBackground() { + const background2 = this.get("background"); + let bounds = this._localBounds; + if (bounds && !this.isHidden()) { + let x2 = bounds.left; + let y2 = bounds.top; + let w = bounds.right - x2; + let h = bounds.bottom - y2; + let maxWidth = this.get("maxWidth"); + let maxHeight = this.get("maxHeight"); + if (maxHeight) { + if (h > maxHeight) { + h = maxHeight; + } + } + if (maxWidth) { + if (w > maxWidth) { + w = maxWidth; + } + } + let width = this.width(); + let height = this.height(); + if (background2) { + background2.setAll({ width: w, height: h, x: x2, y: y2 }); + if (this._display.interactive) { + background2._display.interactive = true; + } + } + const contentMask = this._contentMask; + if (contentMask) { + contentMask.setAll({ width: width + 1, height: height + 1 }); + } + const verticalScrollbar = this.get("verticalScrollbar"); + if (verticalScrollbar) { + verticalScrollbar.set("height", height); + verticalScrollbar.set("x", width - verticalScrollbar.width() - verticalScrollbar.get("marginRight", 0)); + verticalScrollbar.set("end", verticalScrollbar.get("start", 0) + height / this._contentHeight); + const bg = verticalScrollbar.get("background"); + if (bg) { + bg.setAll({ width: verticalScrollbar.width(), height }); + } + let visible = true; + if (this._contentHeight <= height) { + visible = false; + } + verticalScrollbar.setPrivate("visible", visible); + } + } + } + _applyThemes(force = false) { + if (super._applyThemes(force)) { + this.eachChildren((child) => { + child._applyThemes(force); + }); + return true; + } else { + return false; + } + } + _applyState(name) { + super._applyState(name); + if (this.get("setStateOnChildren")) { + this.eachChildren((child) => { + child.states.apply(name); + }); + } + } + _applyStateAnimated(name, duration) { + super._applyStateAnimated(name, duration); + if (this.get("setStateOnChildren")) { + this.eachChildren((child) => { + child.states.applyAnimate(name, duration); + }); + } + } + /** + * Returns container's inner width (width without padding) in pixels. + * + * @return Inner width (px) + */ + innerWidth() { + return this.width() - this.get("paddingRight", 0) - this.get("paddingLeft", 0); + } + /** + * Returns container's inner height (height without padding) in pixels. + * + * @return Inner height (px) + */ + innerHeight() { + return this.height() - this.get("paddingTop", 0) - this.get("paddingBottom", 0); + } + _getBounds() { + if (!this.get("html")) { + let width = this.get("width"); + let height = this.get("height"); + let pWidth = this.getPrivate("width"); + let pHeight = this.getPrivate("height"); + let bounds = { + left: 0, + top: 0, + right: this.width(), + bottom: this.height() + }; + let layout = this.get("layout"); + let horizontal = false; + let vertical = false; + if (layout instanceof HorizontalLayout || layout instanceof GridLayout) { + horizontal = true; + } + if (layout instanceof VerticalLayout) { + vertical = true; + } + if ((width != null || pWidth != null) && (height != null || pHeight != null) && !this.get("verticalScrollbar")) { + } else { + let m = Number.MAX_VALUE; + let l = m; + let r = -m; + let t = m; + let b = -m; + const paddingLeft = this.get("paddingLeft", 0); + const paddingTop = this.get("paddingTop", 0); + const paddingRight = this.get("paddingRight", 0); + const paddingBottom = this.get("paddingBottom", 0); + this.children.each((child) => { + if (child.get("position") != "absolute" && child.get("isMeasured")) { + let childBounds = child.adjustedLocalBounds(); + let childX = child.x(); + let childY = child.y(); + let cl = childX + childBounds.left; + let cr = childX + childBounds.right; + let ct = childY + childBounds.top; + let cb = childY + childBounds.bottom; + if (horizontal) { + cl -= child.get("marginLeft", 0); + cr += child.get("marginRight", 0); + } + if (vertical) { + ct -= child.get("marginTop", 0); + cb += child.get("marginBottom", 0); + } + if (cl < l) { + l = cl; + } + if (cr > r) { + r = cr; + } + if (ct < t) { + t = ct; + } + if (cb > b) { + b = cb; + } + } + }); + if (l == m) { + l = 0; + } + if (r == -m) { + r = 0; + } + if (t == m) { + t = 0; + } + if (b == -m) { + b = 0; + } + bounds.left = l - paddingLeft; + bounds.top = t - paddingTop; + bounds.right = r + paddingRight; + bounds.bottom = b + paddingBottom; + const minWidth = this.get("minWidth"); + if (isNumber(minWidth) && minWidth > 0) { + if (bounds.right - bounds.left < minWidth) { + if (bounds.right >= minWidth) { + bounds.left = bounds.right - minWidth; + } else { + bounds.right = bounds.left + minWidth; + } + } + } + const minHeight = this.get("minHeight"); + if (isNumber(minHeight) && minHeight > 0) { + if (bounds.bottom - bounds.top < minHeight) { + if (bounds.bottom >= minHeight) { + bounds.top = bounds.bottom - minHeight; + } else { + bounds.bottom = bounds.top + minHeight; + } + } + } + } + this._contentWidth = bounds.right - bounds.left; + this._contentHeight = bounds.bottom - bounds.top; + if (isNumber(width)) { + bounds.left = 0; + bounds.right = width; + } + if (isNumber(pWidth)) { + bounds.left = 0; + bounds.right = pWidth; + } + if (isNumber(height)) { + bounds.top = 0; + bounds.bottom = height; + } + if (isNumber(pHeight)) { + bounds.top = 0; + bounds.bottom = pHeight; + } + this._localBounds = bounds; + } else { + let bounds = this._localBounds; + if (bounds) { + this._contentWidth = bounds.right - bounds.left; + this._contentHeight = bounds.bottom - bounds.top; + } + } + } + _updateBounds() { + const layout = this.get("layout"); + if (layout) { + layout.updateContainer(this); + } + super._updateBounds(); + this.updateBackground(); + } + /** + * @ignore + */ + markDirty() { + super.markDirty(); + this._root._addDirtyParent(this); + } + _prepareChildren() { + this._childrenPrep = true; + const innerWidth = this.innerWidth(); + const innerHeight = this.innerHeight(); + if (innerWidth != this._prevWidth || innerHeight != this._prevHeight) { + let layout = this.get("layout"); + let horizontal = false; + let vertical = false; + if (layout) { + if (layout instanceof HorizontalLayout || layout instanceof GridLayout) { + horizontal = true; + } + if (layout instanceof VerticalLayout) { + vertical = true; + } + } + each(this._percentageSizeChildren, (child) => { + if (!horizontal) { + let width = child.get("width"); + if (width instanceof Percent) { + child.setPrivate("width", width.value * innerWidth); + } + } + if (!vertical) { + let height = child.get("height"); + if (height instanceof Percent) { + child.setPrivate("height", height.value * innerHeight); + } + } + }); + each(this._percentagePositionChildren, (child) => { + child.markDirtyPosition(); + child.markDirtyBounds(); + }); + this._prevWidth = innerWidth; + this._prevHeight = innerHeight; + this._sizeDirty = true; + this.updateBackground(); + } + } + _updateHTMLContent() { + const html = this.get("html", ""); + if (html && html !== "") { + this._root._setHTMLContent(this, populateString(this, html)); + } else { + this._root._removeHTMLContent(this); + } + this._root._positionHTMLElement(this); + } + /** + * If scrolling is enabled on the Container (by adding `verticalScrollbar`) + * the Container will scroll in such way so that target element becomes + * visible if its currently outside of view. + * + * @param child Target child + * @since 5.10.5 + */ + scrollToChild(child) { + const verticalScrollbar = this.get("verticalScrollbar"); + if (verticalScrollbar) { + let y2 = child.y(); + let h = this.innerHeight(); + let ch = child.height(); + let contentH = this._contentHeight; + let max2 = 1 - (h - ch / 2) / contentH; + if (y2 + ch * 0.7 + this._childrenDisplay.y > h || y2 - ch * 0.3 + this._childrenDisplay.y < 0) { + let pos = Math.max(0, Math.min(max2, (y2 - ch / 2) / contentH)); + verticalScrollbar.animate({ key: "start", to: pos, duration: verticalScrollbar.get("animationDuration", 0), easing: verticalScrollbar.get("animationEasing") }); + } + } + } + _updateChildren() { + this._childrenUpdt = true; + if (this.isDirty("html")) { + this._updateHTMLContent(); + } + if (this.isDirty("verticalScrollbar")) { + const verticalScrollbar = this.get("verticalScrollbar"); + if (verticalScrollbar) { + verticalScrollbar._setParent(this); + verticalScrollbar.startGrip.setPrivate("visible", false); + verticalScrollbar.endGrip.setPrivate("visible", false); + this.set("maskContent", true); + this.set("paddingRight", verticalScrollbar.width() + verticalScrollbar.get("marginRight", 0) + verticalScrollbar.get("marginLeft", 0)); + let background2 = this.get("background"); + if (!background2) { + background2 = this.set("background", Rectangle.new(this._root, { + themeTags: ["background"], + fillOpacity: 0, + fill: this._root.interfaceColors.get("alternativeBackground") + })); + } + this._vsbd0 = this.events.on("wheel", (event) => { + const wheelEvent = event.originalEvent; + if (isLocalEvent(wheelEvent, this)) { + wheelEvent.preventDefault(); + } else { + return; + } + let shiftY = wheelEvent.deltaY / 5e3; + const start = verticalScrollbar.get("start", 0); + const end = verticalScrollbar.get("end", 1); + if (start + shiftY <= 0) { + shiftY = -start; + } + if (end + shiftY >= 1) { + shiftY = 1 - end; + } + if (start + shiftY >= 0 && end + shiftY <= 1) { + verticalScrollbar.set("start", start + shiftY); + verticalScrollbar.set("end", end + shiftY); + } + }); + this._disposers.push(this._vsbd0); + this._vsbd1 = verticalScrollbar.events.on("rangechanged", () => { + let h = this._contentHeight; + const childrenDisplay = this._childrenDisplay; + const contentMask = this._contentMask; + childrenDisplay.y = -verticalScrollbar.get("start", 0) * h; + childrenDisplay.markDirtyLayer(); + if (contentMask) { + contentMask._display.y = -childrenDisplay.y; + childrenDisplay.mask = contentMask._display; + } + }); + this._disposers.push(this._vsbd1); + this._display.addChild(verticalScrollbar._display); + } else { + const previous = this._prevSettings.verticalScrollbar; + if (previous) { + this._display.removeChild(previous._display); + if (this._vsbd0) { + this._vsbd0.dispose(); + } + if (this._vsbd1) { + this._vsbd1.dispose(); + } + const childrenDisplay = this._childrenDisplay; + childrenDisplay.y = 0; + this.setPrivate("height", void 0); + this.set("maskContent", false); + this.set("paddingRight", void 0); + } + } + } + if (this.isDirty("background")) { + const previous = this._prevSettings["background"]; + if (previous) { + this._display.removeChild(previous._display); + } + const background2 = this.get("background"); + if (background2 instanceof Sprite) { + background2.set("isMeasured", false); + background2._setParent(this); + this._display.addChildAt(background2._display, 0); + } + } + if (this.isDirty("mask")) { + const mask = this.get("mask"); + const previous = this._prevSettings["mask"]; + if (previous) { + this._display.removeChild(previous._display); + if (previous != mask) { + previous.dispose(); + } + } + if (mask) { + const parent = mask.parent; + if (parent) { + parent.children.removeValue(mask); + } + mask._setParent(this); + this._display.addChildAt(mask._display, 0); + this._childrenDisplay.mask = mask._display; + } + } + } + _processTemplateField() { + super._processTemplateField(); + this.children.each((child) => { + child._processTemplateField(); + }); + } + /** + * @ignore + */ + walkChildren(f) { + this.children.each((child, index) => { + if (child instanceof _Container) { + child.walkChildren(f); + } + f(child, index); + }); + } + eachChildren(f) { + const background2 = this.get("background"); + if (background2) { + f(background2); + } + const verticalScrollbar = this.get("verticalScrollbar"); + if (verticalScrollbar) { + f(verticalScrollbar); + } + const mask = this.get("mask"); + if (mask) { + f(mask); + } + this.children.values.forEach((child) => { + f(child); + }); + } + allChildren() { + const output = []; + this.eachChildren((x2) => { + output.push(x2); + }); + return output; + } + _setDataItem(dataItem) { + const updated = dataItem !== this._dataItem; + super._setDataItem(dataItem); + const html = this.get("html", ""); + if (html && html !== "" && updated) { + this._root._setHTMLContent(this, populateString(this, html)); + } + } + contentWidth() { + return this._contentWidth; + } + contentHeight() { + return this._contentHeight; + } + }; + Container.className = "Container"; + Container.classNames = Sprite.classNames.concat([Container.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Text.js + var Text = class extends Sprite { + constructor() { + super(...arguments); + this.textStyle = this._root._renderer.makeTextStyle(); + this._display = this._root._renderer.makeText("", this.textStyle); + this._textStyles = [ + "textAlign", + "fontFamily", + "fontSize", + "fontStyle", + "fontWeight", + "fontStyle", + "fontVariant", + "textDecoration", + "shadowColor", + "shadowBlur", + "shadowOffsetX", + "shadowOffsetY", + "shadowOpacity", + // "leading", + // "letterSpacing", + "lineHeight", + "baselineRatio", + //"padding", + // "stroke", + // "strokeThickness", + // "trim", + // "wordWrap", + "direction", + "textBaseline", + "oversizedBehavior", + "breakWords", + "ellipsis", + "minScale", + "maxChars" + ]; + } + _updateBounds() { + if (!this.get("text")) { + let newBounds = { + left: 0, + right: 0, + top: 0, + bottom: 0 + }; + this._adjustedLocalBounds = newBounds; + } else { + super._updateBounds(); + let fillGradient = this.get("fillGradient"); + if (fillGradient) { + this._display.style.fill = fillGradient.getFill(this); + } + } + } + _changed() { + super._changed(); + this._display.clear(); + let textStyle = this.textStyle; + if (this.isDirty("opacity")) { + let opacity = this.get("opacity", 1); + this._display.alpha = opacity; + } + if (this.isDirty("text") || this.isDirty("populateText")) { + this._display.text = this._getText(); + this.markDirtyBounds(); + if (this.get("role") == "tooltip") { + this._root.updateTooltip(this); + } + } + if (this.isPrivateDirty("tooltipElement")) { + const tooltipElement = this.getPrivate("tooltipElement"); + if (tooltipElement) { + this._disposers.push(new Disposer(() => { + this._root._removeTooltipElement(this); + })); + } + } + if (this.isDirty("width")) { + textStyle.wordWrapWidth = this.width(); + this.markDirtyBounds(); + } + if (this.isDirty("oversizedBehavior")) { + textStyle.oversizedBehavior = this.get("oversizedBehavior", "none"); + this._display.invalidateVisibility(); + this.markDirtyBounds(); + } + if (this.isDirty("breakWords")) { + textStyle.breakWords = this.get("breakWords", false); + this.markDirtyBounds(); + } + if (this.isDirty("ellipsis")) { + textStyle.ellipsis = this.get("ellipsis"); + this.markDirtyBounds(); + } + if (this.isDirty("ignoreFormatting")) { + textStyle.ignoreFormatting = this.get("ignoreFormatting", false); + this.markDirtyBounds(); + } + if (this.isDirty("minScale")) { + textStyle.minScale = this.get("minScale", 0); + this.markDirtyBounds(); + } + if (this.isDirty("fill") || this.isDirty("fillGradient")) { + const fill = this.get("fill"); + const fillGradient = this.get("fillGradient"); + const fillOpacity = this.get("fillOpacity"); + if (fillGradient) { + if (fill) { + const stops = fillGradient.get("stops", []); + if (stops.length) { + each(stops, (stop) => { + if ((!stop.color || stop.colorInherited) && fill) { + stop.color = fill; + stop.colorInherited = true; + } + if (stop.opacity == null || stop.opacityInherited) { + stop.opacity = fillOpacity; + stop.opacityInherited = true; + } + }); + } + } + textStyle.fill = fillGradient.getFill(this); + } else if (fill) { + textStyle.fill = fill; + } + } + if (this.isDirty("fillOpacity")) { + let fillOpacity = this.get("fillOpacity", 1); + if (fillOpacity) { + textStyle.fillOpacity = fillOpacity; + } + } + if (this.isDirty("maxWidth") || this.isPrivateDirty("maxWidth")) { + textStyle.maxWidth = this.get("maxWidth", this.getPrivate("maxWidth")); + this.markDirtyBounds(); + } + if (this.isDirty("maxHeight") || this.isPrivateDirty("maxHeight")) { + textStyle.maxHeight = this.get("maxHeight", this.getPrivate("maxHeight")); + this.markDirtyBounds(); + } + each(this._textStyles, (styleName) => { + if (this._dirty[styleName]) { + textStyle[styleName] = this.get(styleName); + this.markDirtyBounds(); + } + }); + textStyle["fontSize"] = this.get("fontSize"); + textStyle["fontFamily"] = this.get("fontFamily"); + this._display.style = textStyle; + if (this.isDirty("role") && this.get("role") == "tooltip") { + this._root.updateTooltip(this); + } + } + _getText() { + let text = this.get("text", ""); + if (this.get("maxChars")) { + text = truncateTextWithEllipsis(text, this.get("maxChars", 1e8), this.get("breakWords"), this.get("ellipsis")); + } + return this.get("populateText") ? populateString(this, text) : text; + } + _getAccessibleText() { + const ariaLabel = this.get("ariaLabel"); + if (ariaLabel !== void 0) { + return this.get("populateText") ? populateString(this, ariaLabel) : ariaLabel; + } + return this._getText(); + } + /** + * Forces the text to be re-evaluated and re-populated. + */ + markDirtyText() { + this._display.text = this._getText(); + if (this.get("role") == "tooltip") { + this._root.updateTooltip(this); + } + this.markDirtyBounds(); + this.markDirty(); + } + _setDataItem(dataItem) { + super._setDataItem(dataItem); + if (this.get("populateText")) { + this.markDirtyText(); + } + } + getNumberFormatter() { + if (this.parent) { + return this.parent.getNumberFormatter(); + } else { + return super.getNumberFormatter(); + } + } + getDateFormatter() { + if (this.parent) { + return this.parent.getDateFormatter(); + } else { + return super.getDateFormatter(); + } + } + getDurationFormatter() { + if (this.parent) { + return this.parent.getDurationFormatter(); + } else { + return super.getDurationFormatter(); + } + } + }; + Text.className = "Text"; + Text.classNames = Sprite.classNames.concat([Text.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/ResizeSensor.js + var Native = class { + constructor() { + this._targets = []; + this._observer = new ResizeObserver((entries2) => { + each(entries2, (entry) => { + each(this._targets, (x2) => { + if (x2.target === entry.target) { + x2.callback(); + } + }); + }); + }); + } + addTarget(target, callback) { + this._observer.observe(target, { box: "border-box" }); + this._targets.push({ target, callback }); + } + removeTarget(target) { + this._observer.unobserve(target); + keepIf(this._targets, (x2) => { + return x2.target !== target; + }); + } + }; + var Raf = class _Raf { + constructor() { + this._timer = null; + this._targets = []; + } + addTarget(target, callback) { + if (this._timer === null) { + let lastTime = null; + const loop = () => { + const currentTime = Date.now(); + if (lastTime === null || currentTime > lastTime + _Raf.delay) { + lastTime = currentTime; + each(this._targets, (x2) => { + let newSize = x2.target.getBoundingClientRect(); + if (newSize.width !== x2.size.width || newSize.height !== x2.size.height) { + x2.size = newSize; + x2.callback(); + } + }); + } + if (this._targets.length === 0) { + this._timer = null; + } else { + this._timer = requestAnimationFrame(loop); + } + }; + this._timer = requestAnimationFrame(loop); + } + let size = { width: 0, height: 0, left: 0, right: 0, top: 0, bottom: 0, x: 0, y: 0 }; + this._targets.push({ target, callback, size }); + } + removeTarget(target) { + keepIf(this._targets, (x2) => { + return x2.target !== target; + }); + if (this._targets.length === 0) { + if (this._timer !== null) { + cancelAnimationFrame(this._timer); + this._timer = null; + } + } + } + }; + Raf.delay = 200; + var observer = null; + function makeSensor() { + if (observer === null) { + if (typeof ResizeObserver !== "undefined") { + observer = new Native(); + } else { + observer = new Raf(); + } + } + return observer; + } + var ResizeSensor = class { + constructor(element, callback) { + this._disposed = false; + this._sensor = makeSensor(); + this._element = element; + this._listener = onZoom(callback); + this._sensor.addTarget(element, callback); + } + isDisposed() { + return this._disposed; + } + dispose() { + if (!this._disposed) { + this._disposed = true; + this._sensor.removeTarget(this._element); + this._listener.dispose(); + } + } + get sensor() { + return this._sensor; + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/InterfaceColors.js + var InterfaceColors = class extends Entity { + }; + InterfaceColors.className = "InterfaceColors"; + InterfaceColors.classNames = Entity.classNames.concat([InterfaceColors.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Label.js + var Label = class extends Container { + constructor() { + super(...arguments); + this._textKeys = [ + "text", + "fill", + "fillGradient", + "fillOpacity", + "textAlign", + "fontFamily", + "fontSize", + "fontStyle", + "fontWeight", + "fontStyle", + "fontVariant", + "textDecoration", + "shadowColor", + "shadowBlur", + "shadowOffsetX", + "shadowOffsetY", + "shadowOpacity", + // "leading", + // "letterSpacing", + "lineHeight", + "baselineRatio", + //"padding", + // "stroke", + // "strokeThickness", + // "trim", + // "wordWrap", + "direction", + "textBaseline", + "oversizedBehavior", + "breakWords", + "ellipsis", + "minScale", + "populateText", + "role", + "ignoreFormatting", + "maxChars", + "ariaLabel" + ]; + } + /** + * @ignore Text is not to be used directly + */ + get text() { + return this._text; + } + _afterNew() { + super._afterNew(); + this._makeText(); + each(this._textKeys, (property) => { + const propValue = this.get(property); + if (propValue != void 0) { + this._text.set(property, propValue); + } + }); + if (this.get("html", "") !== "") { + this._text.set("text", ""); + } + this.onPrivate("maxWidth", () => { + this._setMaxDimentions(); + }); + this.onPrivate("maxHeight", () => { + this._setMaxDimentions(); + }); + } + _makeText() { + this._text = this.children.push(Text.new(this._root, {})); + } + _updateChildren() { + super._updateChildren(); + const text = this._text; + each(this._textKeys, (property) => { + this._text.set(property, this.get(property)); + }); + if (this.isDirty("maxWidth") || this.isDirty("maxHeight") || this.isDirty("rotation")) { + this._setMaxDimentions(); + } + if (this.get("html", "") !== "") { + text.set("text", ""); + } else { + text.set("text", this.get("text")); + this._maybeUpdateHTMLColor(); + } + if (this.isDirty("fill") || this.isDirty("fillGradient")) { + this._maybeUpdateHTMLColor(); + } + if (this.isDirty("textAlign") || this.isDirty("width")) { + const textAlign = this.get("textAlign"); + let x2; + if (this.get("width") != null) { + if (textAlign == "right") { + x2 = p100; + } else if (textAlign == "center") { + x2 = p50; + } else { + x2 = 0; + } + } else { + if (textAlign == "left" || textAlign == "start") { + x2 = this.get("paddingLeft", 0); + } else if (textAlign == "right" || textAlign == "end") { + x2 = -this.get("paddingRight", 0); + } + } + text.set("x", x2); + } + const background2 = this.get("background"); + if (background2) { + background2.setPrivate("visible", text._display.textVisible); + } + } + _maybeUpdateHTMLColor() { + const htmlElement = this.getPrivate("htmlElement"); + if (htmlElement && this.get("fill")) { + htmlElement.style.color = this.get("fill").toCSSHex(); + } + } + _setMaxDimentions() { + const rotation = this.get("rotation"); + const vertical = rotation == 90 || rotation == 270 || rotation == -90; + const text = this._text; + const maxWidth = this.get("maxWidth", this.getPrivate("maxWidth", Infinity)); + if (isNumber(maxWidth)) { + text.set(vertical ? "maxHeight" : "maxWidth", maxWidth - this.get("paddingTop", 0) - this.get("paddingBottom", 0)); + } else { + text.set(vertical ? "maxHeight" : "maxWidth", void 0); + } + const maxHeight = this.get("maxHeight", this.getPrivate("maxHeight", Infinity)); + if (isNumber(maxHeight)) { + text.set(vertical ? "maxWidth" : "maxHeight", maxHeight - this.get("paddingLeft", 0) - this.get("paddingRight", 0)); + } else { + text.set(vertical ? "maxWidth" : "maxHeight", void 0); + } + this.root.events.once("frameended", () => { + text.markDirtyBounds(); + }); + } + _setDataItem(dataItem) { + super._setDataItem(dataItem); + this._markDirtyKey("text"); + this._markDirtyKey("html"); + const text = this._text; + if (text.get("populateText")) { + text.markDirtyText(); + } + const html = this.get("html"); + if (html && html !== "") { + this._updateHTMLContent(); + } + } + /** + * Returns text with populated placeholders and formatting if `populateText` is + * set to `true`. + * + * @return Populated text + */ + getText() { + return this._text._getText(); + } + /** + * Returns "aria-label" text with populated placeholders and formatting + * if `populateText` is set to `true`. + * + * @return Populated text + */ + getAccessibleText() { + return this._text._getAccessibleText(); + } + }; + Label.className = "Label"; + Label.classNames = Container.classNames.concat([Label.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/PointedRectangle.js + var PointedRectangle = class extends Graphics { + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("pointerBaseWidth") || this.isDirty("cornerRadius") || this.isDirty("pointerLength") || this.isDirty("pointerX") || this.isDirty("pointerY") || this.isDirty("width") || this.isDirty("height")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear) { + this.markDirtyBounds(); + let w = this.width(); + let h = this.height(); + if (w > 0 && h > 0) { + let cr = this.get("cornerRadius", 8); + cr = fitToRange(cr, 0, Math.min(w / 2, h / 2)); + let x2 = this.get("pointerX", 0); + let y2 = this.get("pointerY", 0); + let bwh = this.get("pointerBaseWidth", 15) / 2; + let xtl = 0; + let ytl = 0; + let xtr = w; + let ytr = 0; + let xbr = w; + let ybr = h; + let xbl = 0; + let ybl = h; + let d1 = (x2 - xtl) * (ybr - ytl) - (y2 - ytl) * (xbr - xtl); + let d2 = (x2 - xbl) * (ytr - ybl) - (y2 - ybl) * (xtr - xbl); + const display = this._display; + display.moveTo(cr, 0); + if (d1 > 0 && d2 > 0) { + let stemX = Math.round(fitToRange(x2, cr + bwh, w - bwh - cr)); + y2 = fitToRange(y2, -Infinity, 0); + display.lineTo(stemX - bwh, 0); + display.lineTo(x2, y2); + display.lineTo(stemX + bwh, 0); + } + display.lineTo(w - cr, 0); + display.arcTo(w, 0, w, cr, cr); + if (d1 > 0 && d2 < 0) { + let stemY = Math.round(fitToRange(y2, cr + bwh, h - bwh - cr)); + x2 = fitToRange(x2, w, Infinity); + display.lineTo(w, cr); + display.lineTo(w, Math.max(stemY - bwh, cr)); + display.lineTo(x2, y2); + display.lineTo(w, stemY + bwh); + } + display.lineTo(w, h - cr); + display.arcTo(w, h, w - cr, h, cr); + if (d1 < 0 && d2 < 0) { + let stemX = Math.round(fitToRange(x2, cr + bwh, w - bwh - cr)); + y2 = fitToRange(y2, h, Infinity); + display.lineTo(w - cr, h); + display.lineTo(stemX + bwh, h); + display.lineTo(x2, y2); + display.lineTo(stemX - bwh, h); + } + display.lineTo(cr, h); + display.arcTo(0, h, 0, h - cr, cr); + if (d1 < 0 && d2 > 0) { + let stemY = Math.round(fitToRange(y2, cr + bwh, h - cr - bwh)); + x2 = fitToRange(x2, -Infinity, 0); + display.lineTo(0, h - cr); + display.lineTo(0, stemY + bwh); + display.lineTo(x2, y2); + display.lineTo(0, Math.max(stemY - bwh, cr)); + } + display.lineTo(0, cr); + display.arcTo(0, 0, cr, 0, cr); + display.closePath(); + } + } + } + }; + PointedRectangle.className = "PointedRectangle"; + PointedRectangle.classNames = Graphics.classNames.concat([PointedRectangle.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Tooltip.js + var Tooltip = class extends Container { + constructor(root2, settings, isReal, templates = []) { + super(root2, settings, isReal, templates); + this._fx = 0; + this._fy = 0; + this._w = 0; + this._h = 0; + this._htmlContentHovered = false; + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["tooltip"]); + super._afterNew(); + const background2 = this._setDefaultFn("background", () => { + return PointedRectangle.new(this._root, {}); + }); + background2.set("themeTags", ["tooltip", "background"]); + this._label = this.children.push(Label.new(this._root, {})); + this._disposers.push(this._label.events.on("boundschanged", () => { + this._updateBackground(); + })); + this._disposers.push(this.on("bounds", () => { + this._updateBackground(); + })); + this._updateTextColor(); + this._root.tooltipContainer.children.push(this); + this.hide(0); + this._disposers.push(this.label.onPrivate("htmlElement", (htmlElement) => { + if (htmlElement) { + this._disposers.push(addEventListener(htmlElement, "pointerover", (_ev) => { + this._htmlContentHovered = true; + })); + this._disposers.push(addEventListener(htmlElement, "pointerout", (_ev) => { + this._htmlContentHovered = false; + })); + } + })); + this.on("visible", (_ev) => { + this._handleReaderAnnouncement(); + }); + this.label.events.on("dataitemchanged", (_ev) => { + this._handleReaderAnnouncement(); + }); + this._root._tooltips.push(this); + } + _handleReaderAnnouncement() { + if (this.get("readerAnnounce") && this.isVisibleDeep()) { + this._root.readerAlert(this.label.getAccessibleText()); + } + } + /** + * A [[Label]] element for the tooltip. + * + * @readonly + * @return Label + */ + get label() { + return this._label; + } + /** + * Permanently disposes the tooltip. + */ + _dispose() { + super._dispose(); + remove(this._root._tooltips, this); + } + _updateChildren() { + super._updateChildren(); + if (this.isDirty("pointerOrientation") || this.isPrivateDirty("minWidth") || this.isPrivateDirty("minHeight")) { + this.get("background")._markDirtyKey("width"); + } + const labelText = this.get("labelText"); + if (labelText != null) { + this.label.set("text", this.get("labelText")); + } + const labelHTML = this.get("labelHTML"); + if (labelHTML != null) { + this.label.set("html", this.get("labelHTML")); + } + const labelAriaLabel = this.get("labelAriaLabel"); + if (labelAriaLabel != null) { + this.label.set("ariaLabel", this.get("labelAriaLabel")); + } + } + _changed() { + super._changed(); + if (this.isDirty("pointTo") || this.isDirty("pointerOrientation")) { + this._updateBackground(); + } + if (this.isDirty("tooltipTarget")) { + this.updateBackgroundColor(); + } + if (this.isDirty("keepTargetHover")) { + const keephover = this.get("keepTargetHover"); + if (keephover) { + const bg = this.get("background"); + this._keepHoverDp = new MultiDisposer([ + bg.events.on("pointerover", (_ev) => { + let target = this.get("tooltipTarget"); + if (target) { + if (target.parent && target.parent.getPrivate("tooltipTarget") == target) { + target = target.parent; + } + target.hover(); + } + }), + bg.events.on("pointerout", (_ev) => { + let target = this.get("tooltipTarget"); + if (target) { + if (target.parent && target.parent.getPrivate("tooltipTarget") == target) { + target = target.parent; + } + if (!this._htmlContentHovered) { + target.unhover(); + } + } + }) + ]); + this.label.onPrivate("htmlElement", (htmlElement) => { + if (this._keepHoverDp && htmlElement) { + this._keepHoverDp.disposers.push(addEventListener(htmlElement, "pointerleave", (ev) => { + const outEvent = this.root._renderer.getEvent(ev); + bg.events.dispatch("pointerout", { + type: "pointerout", + originalEvent: outEvent.event, + point: outEvent.point, + simulated: false, + target: bg + }); + })); + } + }); + } else { + if (this._keepHoverDp) { + this._keepHoverDp.dispose(); + this._keepHoverDp = void 0; + } + } + } + } + _onShow() { + super._onShow(); + this.updateBackgroundColor(); + } + updateBackgroundColor() { + let tooltipTarget = this.get("tooltipTarget"); + const background2 = this.get("background"); + let fill; + let stroke; + if (tooltipTarget && background2) { + fill = tooltipTarget.get("fill"); + stroke = tooltipTarget.get("stroke"); + if (fill == null) { + fill = stroke; + } + if (this.get("getFillFromSprite")) { + if (this._fillDp) { + this._fillDp.dispose(); + } + if (fill != null) { + background2.set("fill", fill); + } + this._fillDp = tooltipTarget.on("fill", (fill2) => { + if (fill2 != null) { + background2.set("fill", fill2); + this._updateTextColor(fill2); + } + }); + this._disposers.push(this._fillDp); + } + if (this.get("getFillGradientFromSprite")) { + if (this._fillGrDp) { + this._fillGrDp.dispose(); + } + let fillGradient = tooltipTarget.get("fillGradient"); + if (fillGradient != null) { + background2.set("fillGradient", fillGradient); + } + this._fillGrDp = tooltipTarget.on("fillGradient", (fillGradient2) => { + if (fillGradient2 != null) { + background2.set("fillGradient", fillGradient2); + } + }); + this._disposers.push(this._fillGrDp); + } + if (this.get("getStrokeFromSprite")) { + if (this._strokeDp) { + this._strokeDp.dispose(); + } + if (fill != null) { + background2.set("stroke", fill); + } + this._strokeDp = tooltipTarget.on("fill", (fill2) => { + if (fill2 != null) { + background2.set("stroke", fill2); + } + }); + this._disposers.push(this._strokeDp); + } + if (this.get("getLabelFillFromSprite")) { + if (this._labelDp) { + this._labelDp.dispose(); + } + if (fill != null) { + this.label.set("fill", fill); + } + this._labelDp = tooltipTarget.on("fill", (fill2) => { + if (fill2 != null) { + this.label.set("fill", fill2); + } + }); + this._disposers.push(this._labelDp); + } + } + this._updateTextColor(fill); + } + _updateTextColor(fill) { + if (this.get("autoTextColor")) { + if (fill == null) { + fill = this.get("background").get("fill"); + } + if (fill == null) { + fill = this._root.interfaceColors.get("background"); + } + if (fill instanceof Color) { + this.label.set("fill", Color.alternative(fill, this._root.interfaceColors.get("alternativeText"), this._root.interfaceColors.get("text"))); + } + } + } + _setDataItem(dataItem) { + super._setDataItem(dataItem); + this.label._setDataItem(dataItem); + } + _updateBackground() { + super.updateBackground(); + const parent = this._root.container; + if (parent) { + let cw = 0.5; + let ch = 0.5; + let centerX = this.get("centerX"); + if (centerX instanceof Percent) { + cw = centerX.value; + } + let centerY = this.get("centerY"); + if (centerY instanceof Percent) { + ch = centerY.value; + } + let parentW = parent.width(); + let parentH = parent.height(); + let tooltipContainer = this.parent; + let xx = 0; + let yy = 0; + if (tooltipContainer) { + xx = tooltipContainer.x(); + yy = tooltipContainer.y(); + const layerMargin = tooltipContainer.get("layerMargin"); + if (layerMargin) { + xx += layerMargin.left || 0; + yy += layerMargin.top || 0; + parentW += (layerMargin.left || 0) + (layerMargin.right || 0); + parentH += (layerMargin.top || 0) + (layerMargin.bottom || 0); + } + } + const bounds = this.get("bounds", { left: -xx, top: -yy, right: parentW - xx, bottom: parentH - yy }); + this._updateBounds(); + let w = this.width(); + let h = this.height(); + if (w === 0) { + w = this._w; + } + if (h === 0) { + h = this._h; + } + let pointTo = this.get("pointTo", { x: parentW / 2, y: parentH / 2 }); + let x2 = pointTo.x; + let y2 = pointTo.y; + let pointerOrientation = this.get("pointerOrientation"); + let background2 = this.get("background"); + let pointerLength = 0; + let bgStrokeSizeY = 0; + let bgStrokeSizeX = 0; + if (background2 instanceof PointedRectangle) { + pointerLength = background2.get("pointerLength", 0); + bgStrokeSizeY = background2.get("strokeWidth", 0) / 2; + bgStrokeSizeX = bgStrokeSizeY; + background2.set("width", w); + background2.set("height", h); + } + let pointerX = 0; + let pointerY = 0; + let boundsW = bounds.right - bounds.left; + let boundsH = bounds.bottom - bounds.top; + if (pointerOrientation == "horizontal" || pointerOrientation == "left" || pointerOrientation == "right") { + bgStrokeSizeY = 0; + if (pointerOrientation == "horizontal") { + if (x2 > bounds.left + boundsW / 2) { + x2 -= w * (1 - cw) + pointerLength; + bgStrokeSizeX *= -1; + } else { + x2 += w * cw + pointerLength; + } + } else if (pointerOrientation == "left") { + x2 += w * (1 - cw) + pointerLength; + } else { + x2 -= w * cw + pointerLength; + bgStrokeSizeX *= -1; + } + } else { + bgStrokeSizeX = 0; + if (pointerOrientation == "vertical") { + if (y2 > bounds.top + h / 2 + pointerLength) { + y2 -= h * (1 - ch) + pointerLength; + } else { + y2 += h * ch + pointerLength; + bgStrokeSizeY *= -1; + } + } else if (pointerOrientation == "down") { + y2 -= h * (1 - ch) + pointerLength; + } else { + y2 += h * ch + pointerLength; + bgStrokeSizeY *= -1; + } + } + x2 = fitToRange(x2, bounds.left + w * cw, bounds.left + boundsW - w * (1 - cw)) + bgStrokeSizeX; + y2 = fitToRange(y2, bounds.top + h * ch, bounds.top + boundsH - h * (1 - ch)) - bgStrokeSizeY; + pointerX = pointTo.x - x2 + w * cw + bgStrokeSizeX; + pointerY = pointTo.y - y2 + h * ch - bgStrokeSizeY; + this._fx = x2; + this._fy = y2; + const animationDuration = this.get("animationDuration", 0); + if (animationDuration > 0 && this.get("visible") && this.get("opacity") > 0.1) { + const animationEasing = this.get("animationEasing"); + this.animate({ key: "x", to: x2, duration: animationDuration, easing: animationEasing }); + this.animate({ key: "y", to: y2, duration: animationDuration, easing: animationEasing }); + } else { + this.set("x", x2); + this.set("y", y2); + } + if (background2 instanceof PointedRectangle) { + background2.set("pointerX", pointerX); + background2.set("pointerY", pointerY); + } + if (w > 0) { + this._w = w; + } + if (h > 0) { + this._h = h; + } + } + } + }; + Tooltip.className = "Tooltip"; + Tooltip.classNames = Container.classNames.concat([Tooltip.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/NumberFormatter.js + var NumberFormatter = class extends Entity { + _setDefaults() { + this._setDefault("negativeBase", 0); + this._setDefault("numberFormat", "#,###.#####"); + this._setDefault("smallNumberThreshold", 1); + const bns = "_big_number_suffix_"; + const sns = "_small_number_suffix_"; + const bs = "_byte_suffix_"; + this._setDefault("bigNumberPrefixes", [ + { "number": 1e3, "suffix": this._t(bns + "3") }, + { "number": 1e6, "suffix": this._t(bns + "6") }, + { "number": 1e9, "suffix": this._t(bns + "9") }, + { "number": 1e12, "suffix": this._t(bns + "12") }, + { "number": 1e15, "suffix": this._t(bns + "15") }, + { "number": 1e18, "suffix": this._t(bns + "18") }, + { "number": 1e21, "suffix": this._t(bns + "21") }, + { "number": 1e24, "suffix": this._t(bns + "24") } + ]); + this._setDefault("smallNumberPrefixes", [ + { "number": 1e-24, "suffix": this._t(sns + "24") }, + { "number": 1e-21, "suffix": this._t(sns + "21") }, + { "number": 1e-18, "suffix": this._t(sns + "18") }, + { "number": 1e-15, "suffix": this._t(sns + "15") }, + { "number": 1e-12, "suffix": this._t(sns + "12") }, + { "number": 1e-9, "suffix": this._t(sns + "9") }, + { "number": 1e-6, "suffix": this._t(sns + "6") }, + { "number": 1e-3, "suffix": this._t(sns + "3") } + ]); + this._setDefault("bytePrefixes", [ + { "number": 1, suffix: this._t(bs + "B") }, + { "number": 1024, suffix: this._t(bs + "KB") }, + { "number": 1048576, suffix: this._t(bs + "MB") }, + { "number": 1073741824, suffix: this._t(bs + "GB") }, + { "number": 1099511627776, suffix: this._t(bs + "TB") }, + { "number": 1125899906842624, suffix: this._t(bs + "PB") } + ]); + super._setDefaults(); + } + _beforeChanged() { + super._beforeChanged(); + } + /** + * Formats the number according to specific format. + * + * @param value Value to format + * @param format Format to apply + * @return Formatted number + */ + format(value, format, precision) { + if (format == null || isString(format) && format.toLowerCase() === "number") { + format = this.get("numberFormat", ""); + } + let formatted; + let source = Number(value); + if (isObject(format)) { + try { + if (this.get("intlLocales")) { + return new Intl.NumberFormat(this.get("intlLocales"), format).format(source); + } else { + return new Intl.NumberFormat(void 0, format).format(source); + } + } catch (e) { + return "Invalid"; + } + } else { + format = cleanFormat(format); + let info = this.parseFormat(format, this._root.language); + let details; + if (source > this.get("negativeBase")) { + details = info.positive; + } else if (source < this.get("negativeBase")) { + details = info.negative; + } else { + details = info.zero; + } + if (precision != null && !details.mod) { + details = copy2(details); + details.decimals.active = source == 0 ? 0 : precision; + } + formatted = details.template.split(PLACEHOLDER).join(this.applyFormat(source, details)); + } + if (this.get("forceLTR") === true) { + formatted = "\u200E" + formatted; + } + return formatted; + } + /** + * Parses supplied format into structured object which can be used to format + * the number. + * + * @param format Format string, i.e. "#,###.00" + * @param language Language + * @ignore + */ + parseFormat(format, language) { + const thousandSeparator = language.translateEmpty("_thousandSeparator"); + const decimalSeparator = language.translateEmpty("_decimalSeparator"); + let info = { + "positive": { + "thousands": { + "active": -1, + "passive": -1, + "interval": -1, + "separator": thousandSeparator + }, + "decimals": { + "active": -1, + "passive": -1, + "separator": decimalSeparator + }, + "template": "", + "source": "", + "parsed": false + }, + "negative": { + "thousands": { + "active": -1, + "passive": -1, + "interval": -1, + "separator": thousandSeparator + }, + "decimals": { + "active": -1, + "passive": -1, + "separator": decimalSeparator + }, + "template": "", + "source": "", + "parsed": false + }, + "zero": { + "thousands": { + "active": -1, + "passive": -1, + "interval": -1, + "separator": thousandSeparator + }, + "decimals": { + "active": -1, + "passive": -1, + "separator": decimalSeparator + }, + "template": "", + "source": "", + "parsed": false + } + }; + format = format.replace("||", PLACEHOLDER2); + let parts = format.split("|"); + info.positive.source = parts[0]; + if (typeof parts[2] === "undefined") { + info.zero = info.positive; + } else { + info.zero.source = parts[2]; + } + if (typeof parts[1] === "undefined") { + info.negative = info.positive; + } else { + info.negative.source = parts[1]; + } + each2(info, (_part, item) => { + if (item.parsed) { + return; + } + let partFormat = item.source; + if (partFormat.toLowerCase() === "number") { + partFormat = this.get("numberFormat", "#,###.#####"); + } + let chunks = TextFormatter.chunk(partFormat, true); + for (let i = 0; i < chunks.length; i++) { + let chunk = chunks[i]; + chunk.text = chunk.text.replace(PLACEHOLDER2, "|"); + if (chunk.type === "value") { + let matches = chunk.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESP‰!]?/); + if (matches) { + if (matches === null || matches[0] === "") { + item.template += chunk.text; + } else { + let mods = matches[0].match(/[abespABESP%‰!]{2}|[abespABESP%‰]{1}$/); + if (mods) { + item.mod = mods[0].toLowerCase(); + item.modSpacing = matches[0].match(/[ ]{1}[abespABESP%‰!]{1}$/) ? true : false; + } + let a = matches[0].split("."); + if (a[0] === "") { + } else { + item.thousands.active = (a[0].match(/0/g) || []).length; + item.thousands.passive = (a[0].match(/\#/g) || []).length + item.thousands.active; + let b = a[0].split(","); + if (b.length === 1) { + } else { + item.thousands.interval = (b.pop() || "").length; + if (item.thousands.interval === 0) { + item.thousands.interval = -1; + } + } + } + if (typeof a[1] === "undefined") { + } else { + item.decimals.active = (a[1].match(/0/g) || []).length; + item.decimals.passive = (a[1].match(/\#/g) || []).length + item.decimals.active; + } + item.template += chunk.text.split(matches[0]).join(PLACEHOLDER); + } + } + } else { + item.template += chunk.text; + } + } + item.parsed = true; + }); + return info; + } + /** + * Applies parsed format to a numeric value. + * + * @param value Value + * @param details Parsed format as returned by parseFormat() + * @return Formatted number + * @ignore + */ + applyFormat(value, details) { + let negative = value < 0; + value = Math.abs(value); + let prefix = "", suffix = ""; + let mods = details.mod ? details.mod.split("") : []; + if (mods.indexOf("b") !== -1) { + let a2 = this.applyPrefix(value, this.get("bytePrefixes"), mods.indexOf("!") !== -1); + value = a2[0]; + prefix = a2[1]; + suffix = a2[2]; + if (details.modSpacing) { + suffix = " " + suffix; + } + } else if (mods.indexOf("a") !== -1) { + let a2 = this.applyPrefix(value, value < this.get("smallNumberThreshold") ? this.get("smallNumberPrefixes") : this.get("bigNumberPrefixes"), mods.indexOf("!") !== -1); + value = a2[0]; + prefix = a2[1]; + suffix = a2[2]; + if (details.modSpacing) { + suffix = " " + suffix; + } + } else if (mods.indexOf("p") !== -1) { + let ol = Math.min(value.toString().length + 2, 21); + value = parseFloat(value.toPrecision(ol)); + prefix = this._root.language.translate("_percentPrefix"); + suffix = this._root.language.translate("_percentSuffix"); + if (prefix == "" && suffix == "") { + suffix = "%"; + } + } else if (mods.indexOf("%") !== -1) { + let ol = Math.min(value.toString().length + 2, 21); + value *= 100; + value = parseFloat(value.toPrecision(ol)); + suffix = "%"; + } else if (mods.indexOf("\u2030") !== -1) { + let ol = Math.min(value.toString().length + 3, 21); + value *= 1e3; + value = parseFloat(value.toPrecision(ol)); + suffix = "\u2030"; + } + if (mods.indexOf("e") !== -1) { + let exp; + if (details.decimals.passive >= 0) { + exp = value.toExponential(details.decimals.passive).split("e"); + } else { + exp = value.toExponential().split("e"); + } + value = Number(exp[0]); + suffix = "e" + exp[1]; + if (details.modSpacing) { + suffix = " " + suffix; + } + } else if (details.decimals.passive === 0) { + value = Math.round(value); + } else if (details.decimals.passive > 0) { + const decimals = decimalPlaces(value); + if (decimals > 0) { + const d = Math.pow(10, details.decimals.passive); + value = Math.round(parseFloat((value * d).toFixed(decimals))) / d; + } + } + let res = ""; + let a = numberToString(value).split("."); + let ints = a[0]; + if (ints.length < details.thousands.active) { + ints = Array(details.thousands.active - ints.length + 1).join("0") + ints; + } + if (details.thousands.interval > 0) { + let ip = []; + let intsr = ints.split("").reverse().join(""); + for (let i = 0, len = ints.length; i <= len; i += details.thousands.interval) { + let c = intsr.substr(i, details.thousands.interval).split("").reverse().join(""); + if (c !== "") { + ip.unshift(c); + } + } + ints = ip.join(details.thousands.separator); + } + res += ints; + if (a.length === 1) { + a.push(""); + } + let decs = a[1]; + if (decs.length < details.decimals.active) { + decs += Array(details.decimals.active - decs.length + 1).join("0"); + } + if (decs !== "") { + res += details.decimals.separator + decs; + } + if (res === "") { + res = "0"; + } + if (value !== 0 && negative && mods.indexOf("s") === -1) { + res = "-" + res; + } + if (prefix) { + res = prefix + res; + } + if (suffix) { + res += suffix; + } + return res; + } + applyPrefix(value, prefixes, force = false) { + let newvalue = value; + let prefix = ""; + let suffix = ""; + let applied = false; + let k = 1; + for (let i = 0, len = prefixes.length; i < len; i++) { + if (prefixes[i].number <= value) { + if (prefixes[i].number === 0) { + newvalue = 0; + } else { + newvalue = value / prefixes[i].number; + k = prefixes[i].number; + } + prefix = prefixes[i].prefix; + suffix = prefixes[i].suffix; + applied = true; + } + } + if (!applied && force && prefixes.length && value != 0) { + newvalue = value / prefixes[0].number; + prefix = prefixes[0].prefix; + suffix = prefixes[0].suffix; + applied = true; + } + if (applied) { + newvalue = parseFloat(newvalue.toPrecision(Math.min(k.toString().length + Math.floor(newvalue).toString().replace(/[^0-9]*/g, "").length, 21))); + } + return [newvalue, prefix, suffix]; + } + /** + * Replaces brackets with temporary placeholders. + * + * @ignore Exclude from docs + * @param text Input text + * @return Escaped text + */ + escape(text) { + return text.replace("||", PLACEHOLDER2); + } + /** + * Replaces placeholders back to brackets. + * + * @ignore Exclude from docs + * @param text Escaped text + * @return Unescaped text + */ + unescape(text) { + return text.replace(PLACEHOLDER2, "|"); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Timezone.js + function parseDate(timezone, date) { + let year = 0; + let month = 0; + let day = 1; + let hour = 0; + let minute = 0; + let second = 0; + let millisecond = 0; + let weekday = 0; + timezone.formatToParts(date).forEach((x2) => { + switch (x2.type) { + case "year": + year = +x2.value; + break; + case "month": + month = +x2.value - 1; + break; + case "day": + day = +x2.value; + break; + case "hour": + hour = +x2.value; + break; + case "minute": + minute = +x2.value; + break; + case "second": + second = +x2.value; + break; + case "fractionalSecond": + millisecond = +x2.value; + break; + case "weekday": + switch (x2.value) { + case "Sun": + weekday = 0; + break; + case "Mon": + weekday = 1; + break; + case "Tue": + weekday = 2; + break; + case "Wed": + weekday = 3; + break; + case "Thu": + weekday = 4; + break; + case "Fri": + weekday = 5; + break; + case "Sat": + weekday = 6; + break; + } + } + }); + if (hour === 24) { + hour = 0; + } + return { year, month, day, hour, minute, second, millisecond, weekday }; + } + function toUTCDate(timezone, date) { + const { year, month, day, hour, minute, second, millisecond } = parseDate(timezone, date); + return Date.UTC(year, month, day, hour, minute, second, millisecond); + } + var Timezone = class { + constructor(timezone, isReal) { + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + this.name = timezone; + this._utc = new Intl.DateTimeFormat("en-US", { + hour12: false, + timeZone: "UTC", + year: "numeric", + month: "2-digit", + day: "2-digit", + hour: "2-digit", + minute: "2-digit", + second: "2-digit", + weekday: "short", + fractionalSecondDigits: 3 + }); + this._dtf = new Intl.DateTimeFormat("en-US", { + hour12: false, + timeZone: timezone, + year: "numeric", + month: "2-digit", + day: "2-digit", + hour: "2-digit", + minute: "2-digit", + second: "2-digit", + weekday: "short", + fractionalSecondDigits: 3 + }); + } + /** + * Use this method to create an instance of this class. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @param timezone IANA timezone + * @return Instantiated object + */ + static new(timezone) { + return new this(timezone, true); + } + convertLocal(date) { + const offset = this.offsetUTC(date); + const userOffset = date.getTimezoneOffset(); + const output = new Date(date); + output.setUTCMinutes(output.getUTCMinutes() - (offset - userOffset)); + const newUserOffset = output.getTimezoneOffset(); + if (userOffset != newUserOffset) { + output.setUTCMinutes(output.getUTCMinutes() + newUserOffset - userOffset); + } + return output; + } + offsetUTC(date) { + const utc = toUTCDate(this._utc, date); + const dtf = toUTCDate(this._dtf, date); + return (utc - dtf) / 6e4; + } + parseDate(date) { + return parseDate(this._dtf, date); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/DateFormatter.js + var DateFormatter = class extends Entity { + _setDefaults() { + this._setDefault("capitalize", true); + this._setDefault("dateFormat", "yyyy-MM-dd"); + super._setDefaults(); + } + _beforeChanged() { + super._beforeChanged(); + } + /** + * Formats a source `Date` object into string format + * @param source inpout date + * @param format Output format + * @param ignoreTimezone Ignore timezone? + * @return Formatted date + */ + format(source, format, ignoreTimezone = false) { + if (typeof format === "undefined" || format === "") { + format = this.get("dateFormat", "yyyy-MM-dd"); + } + let formatted; + let date = source; + if (isObject(format)) { + try { + const locales = this.get("intlLocales"); + if (locales) { + return new Intl.DateTimeFormat(locales, format).format(date); + } else { + return new Intl.DateTimeFormat(void 0, format).format(date); + } + } catch (e) { + return "Invalid"; + } + } + let info = this.parseFormat(format); + const timezone = this._root.timezone; + let originalDate = date; + if (timezone && !this._root.utc && !ignoreTimezone) { + date = timezone.convertLocal(date); + } + if (!isNumber(date.getTime())) { + return "Invalid date"; + } + formatted = this.applyFormat(date, info, ignoreTimezone, originalDate); + if (this.get("capitalize")) { + formatted = formatted.replace(/^.{1}/, formatted.substr(0, 1).toUpperCase()); + } + return formatted; + } + /** + * Applies format to Date. + * + * @param date Date object + * @param info Parsed format information + * @return Formatted date string + */ + applyFormat(date, info, ignoreTimezone = false, originalDate) { + let res = info.template; + let fullYear, month, weekday, day, hours, minutes, seconds, milliseconds, timestamp = date.getTime(); + if (this._root.utc && !ignoreTimezone) { + fullYear = date.getUTCFullYear(); + month = date.getUTCMonth(); + weekday = date.getUTCDay(); + day = date.getUTCDate(); + hours = date.getUTCHours(); + minutes = date.getUTCMinutes(); + seconds = date.getUTCSeconds(); + milliseconds = date.getUTCMilliseconds(); + } else { + fullYear = date.getFullYear(); + month = date.getMonth(); + weekday = date.getDay(); + day = date.getDate(); + hours = date.getHours(); + minutes = date.getMinutes(); + seconds = date.getSeconds(); + milliseconds = date.getMilliseconds(); + } + for (let i = 0, len = info.parts.length; i < len; i++) { + let value = ""; + switch (info.parts[i]) { + case "G": + value = this._t(fullYear < 0 ? "_era_bc" : "_era_ad"); + break; + case "yyyy": + value = Math.abs(fullYear).toString(); + if (fullYear < 0) { + value += this._t("_era_bc"); + } + break; + case "yyy": + case "yy": + case "y": + value = Math.abs(fullYear).toString().substr(-info.parts[i].length); + if (fullYear < 0) { + value += this._t("_era_bc"); + } + break; + case "YYYY": + case "YYY": + case "YY": + case "Y": + let year = getWeekYear(date, this._root.utc); + if (info.parts[i] == "YYYY") { + value = Math.abs(year).toString(); + } else { + value = Math.abs(year).toString().substr(-info.parts[i].length); + } + if (year < 0) { + value += this._t("_era_bc"); + } + break; + case "u": + break; + case "q": + value = "" + Math.ceil((date.getMonth() + 1) / 3); + break; + case "MMMMM": + value = this._t(this._getMonth(month)).substr(0, 1); + break; + case "MMMM": + value = this._t(this._getMonth(month)); + break; + case "MMM": + value = this._t(this._getShortMonth(month)); + break; + case "MM": + value = padString(month + 1, 2, "0"); + break; + case "M": + value = (month + 1).toString(); + break; + case "ww": + value = padString(getWeek(date, this._root.utc), 2, "0"); + break; + case "w": + value = getWeek(date, this._root.utc).toString(); + break; + case "W": + value = getMonthWeek(date, this._root.utc).toString(); + break; + case "dd": + value = padString(day, 2, "0"); + break; + case "d": + value = day.toString(); + break; + case "DD": + case "DDD": + value = padString(getYearDay(date, this._root.utc).toString(), info.parts[i].length, "0"); + break; + case "D": + value = getYearDay(date, this._root.utc).toString(); + break; + case "F": + break; + case "g": + break; + case "t": + value = this._root.language.translateFunc("_dateOrd").call(this, day); + break; + case "E": + value = (weekday || 7).toString(); + break; + case "EE": + value = padString((weekday || 7).toString(), 2, "0"); + break; + case "EEE": + case "eee": + value = this._t(this._getShortWeekday(weekday)); + break; + case "EEEE": + case "eeee": + value = this._t(this._getWeekday(weekday)); + break; + case "EEEEE": + case "eeeee": + value = this._t(this._getShortWeekday(weekday)).substr(0, 1); + break; + case "e": + case "ee": + value = (weekday - (this._root.locale.firstDayOfWeek || 1) + 1).toString(); + if (info.parts[i] == "ee") { + value = padString(value, 2, "0"); + } + break; + case "a": + if (hours >= 12) { + value = this._t("PM"); + } else { + value = this._t("AM"); + } + break; + case "aa": + if (hours >= 12) { + value = this._t("P.M."); + } else { + value = this._t("A.M."); + } + break; + case "aaa": + if (hours >= 12) { + value = this._t("P"); + } else { + value = this._t("A"); + } + break; + case "h": + value = get12Hours(hours).toString(); + break; + case "hh": + value = padString(get12Hours(hours), 2, "0"); + break; + case "H": + value = hours.toString(); + break; + case "HH": + value = padString(hours, 2, "0"); + break; + case "K": + value = get12Hours(hours, 0).toString(); + break; + case "KK": + value = padString(get12Hours(hours, 0), 2, "0"); + break; + case "k": + value = (hours + 1).toString(); + break; + case "kk": + value = padString(hours + 1, 2, "0"); + break; + case "m": + value = minutes.toString(); + break; + case "mm": + value = padString(minutes, 2, "0"); + break; + case "s": + value = seconds.toString(); + break; + case "ss": + value = padString(seconds, 2, "0"); + break; + case "S": + case "SS": + case "SSS": + value = Math.round(milliseconds / 1e3 * Math.pow(10, info.parts[i].length)).toString(); + break; + case "x": + value = timestamp.toString(); + break; + case "n": + case "nn": + case "nnn": + value = padString(milliseconds, info.parts[i].length, "0"); + break; + case "z": + value = getTimeZone(originalDate || date, false, false, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0).replace(/[+-]+[0-9]+$/, ""); + break; + case "zz": + value = getTimeZone(originalDate || date, true, false, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0); + break; + case "zzz": + value = getTimeZone(originalDate || date, false, true, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0).replace(/[+-]+[0-9]+$/, ""); + break; + case "zzzz": + value = getTimeZone(originalDate || date, true, true, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0); + break; + case "Z": + case "ZZ": + let timezone = this._root.utc ? "UTC" : this._root.timezone; + if (timezone instanceof Timezone) { + timezone = timezone.name; + } + const offset = timezone ? getTimezoneOffset(timezone, originalDate || date) : date.getTimezoneOffset(); + let tz = Math.abs(offset) / 60; + let tzh = Math.floor(tz); + let tzm = tz * 60 - tzh * 60; + if (this._root.utc) { + tzh = 0; + tzm = 0; + } + if (info.parts[i] == "Z") { + value = "GMT"; + value += offset > 0 ? "-" : "+"; + value += padString(tzh, 2) + ":" + padString(tzm, 2); + } else { + value = offset > 0 ? "-" : "+"; + value += padString(tzh, 2) + padString(tzm, 2); + } + break; + case "i": + value = date.toISOString(); + break; + case "I": + value = date.toUTCString(); + break; + } + res = res.replace(PLACEHOLDER, value); + } + return res; + } + /** + * Parses format into structured infromation. + * + * @param format Format template + */ + parseFormat(format) { + let info = { + "template": "", + "parts": [] + }; + let chunks = TextFormatter.chunk(format, true); + for (let i = 0; i < chunks.length; i++) { + let chunk = chunks[i]; + if (chunk.type === "value") { + if (chunk.text.match(/^date$/i)) { + let dateFormat = this.get("dateFormat", "yyyy-MM-dd"); + if (!isString(dateFormat)) { + dateFormat = "yyyy-MM-dd"; + } + chunk.text = dateFormat; + } + let matches = chunk.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g); + if (matches) { + for (let x2 = 0; x2 < matches.length; x2++) { + info.parts.push(matches[x2]); + chunk.text = chunk.text.replace(matches[x2], PLACEHOLDER); + } + } + } + info.template += chunk.text; + } + return info; + } + _months() { + return ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; + } + _getMonth(index) { + return this._months()[index]; + } + _shortMonths() { + return ["Jan", "Feb", "Mar", "Apr", "May(short)", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; + } + _getShortMonth(index) { + return this._shortMonths()[index]; + } + _weekdays() { + return ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; + } + _getWeekday(index) { + return this._weekdays()[index]; + } + _shortWeekdays() { + return ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; + } + _getShortWeekday(index) { + return this._shortWeekdays()[index]; + } + parse(source, format, utc) { + if (typeof utc === "undefined") { + utc = this._root.utc; + } + if (source instanceof Date) { + return source; + } + if (isNumber(source)) { + return new Date(source); + } + if (format == "x") { + return new Date(parseInt(source)); + } + if (!isString(source)) { + source = source.toString(); + } + let res; + let reg = ""; + format = cleanFormat(format); + format = format.substr(0, source.length); + let info = this.parseFormat(format); + let parsedIndexes = { + "year": -1, + "year3": -1, + "year2": -1, + "year1": -1, + "month": -1, + "monthShort": -1, + "monthLong": -1, + "weekdayShort": -1, + "weekdayLong": -1, + "day": -1, + "yearDay": -1, + "week": -1, + "hourBase0": -1, + "hour12Base0": -1, + "hourBase1": -1, + "hour12Base1": -1, + "minute": -1, + "second": -1, + "millisecond": -1, + "millisecondDigits": -1, + "am": -1, + "zone": -1, + "timestamp": -1, + "iso": -1 + }; + let resValues = { + "year": 1970, + "month": 0, + "day": 1, + "hour": 0, + "minute": 0, + "second": 0, + "millisecond": 0, + "timestamp": null, + "offset": 0, + "utc": utc + }; + let indexAdjust = 0; + let index = 0; + for (let i = 0; i < info.parts.length; i++) { + index = i + indexAdjust + 1; + switch (info.parts[i]) { + case "yyyy": + case "YYYY": + reg += "([0-9]{4})"; + parsedIndexes.year = index; + break; + case "yyy": + case "YYY": + reg += "([0-9]{3})"; + parsedIndexes.year3 = index; + break; + case "yy": + case "YY": + reg += "([0-9]{2})"; + parsedIndexes.year2 = index; + break; + case "y": + case "Y": + reg += "([0-9]{1})"; + parsedIndexes.year1 = index; + break; + case "MMMM": + reg += "(" + this.getStringList(this._months()).join("|") + ")"; + parsedIndexes.monthLong = index; + break; + case "MMM": + reg += "(" + this.getStringList(this._shortMonths()).join("|") + ")"; + parsedIndexes.monthShort = index; + break; + case "MM": + case "M": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.month = index; + break; + case "ww": + case "w": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.week = index; + break; + case "dd": + case "d": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.day = index; + break; + case "DDD": + case "DD": + case "D": + reg += "([0-9]{3}|[0-9]{2}|[0-9]{1})"; + parsedIndexes.yearDay = index; + break; + case "dddd": + reg += "(" + this.getStringList(this._weekdays()).join("|") + ")"; + parsedIndexes.weekdayLong = index; + break; + case "ddd": + reg += "(" + this.getStringList(this._shortWeekdays()).join("|") + ")"; + parsedIndexes.weekdayShort = index; + break; + case "aaa": + case "aa": + case "a": + reg += "(" + this.getStringList(["AM", "PM", "A.M.", "P.M.", "A", "P"]).join("|") + ")"; + parsedIndexes.am = index; + break; + case "hh": + case "h": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.hour12Base1 = index; + break; + case "HH": + case "H": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.hourBase0 = index; + break; + case "KK": + case "K": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.hour12Base0 = index; + break; + case "kk": + case "k": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.hourBase1 = index; + break; + case "mm": + case "m": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.minute = index; + break; + case "ss": + case "s": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.second = index; + break; + case "SSS": + case "SS": + case "S": + reg += "([0-9]{3}|[0-9]{2}|[0-9]{1})"; + parsedIndexes.millisecond = index; + parsedIndexes.millisecondDigits = info.parts[i].length; + break; + case "nnn": + case "nn": + case "n": + reg += "([0-9]{3}|[0-9]{2}|[0-9]{1})"; + parsedIndexes.millisecond = index; + break; + case "x": + reg += "([0-9]{1,})"; + parsedIndexes.timestamp = index; + break; + case "Z": + reg += "GMT([-+]+[0-9]{2}:[0-9]{2})"; + parsedIndexes.zone = index; + break; + case "ZZ": + reg += "([\\-+]+[0-9]{2}[0-9]{2})"; + parsedIndexes.zone = index; + break; + case "i": + reg += "([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2})\\.?([0-9]{0,3})([zZ]|[+\\-][0-9]{2}:?[0-9]{2}|$)"; + parsedIndexes.iso = index; + indexAdjust += 7; + break; + case "G": + case "YYYY": + case "YYY": + case "YY": + case "Y": + case "MMMMM": + case "W": + case "EEEEE": + case "EEEE": + case "EEE": + case "EE": + case "E": + case "eeeee": + case "eeee": + case "eee": + case "ee": + case "e": + case "zzzz": + case "zzz": + case "zz": + case "z": + case "t": + indexAdjust--; + break; + } + reg += "[^0-9]*"; + } + let regex = new RegExp(reg); + let matches = source.match(regex); + if (matches) { + if (parsedIndexes.year > -1) { + resValues.year = parseInt(matches[parsedIndexes.year]); + } + if (parsedIndexes.year3 > -1) { + let val = parseInt(matches[parsedIndexes.year3]); + val += 1e3; + resValues.year = val; + } + if (parsedIndexes.year2 > -1) { + let val = parseInt(matches[parsedIndexes.year2]); + if (val > 50) { + val += 1e3; + } else { + val += 2e3; + } + resValues.year = val; + } + if (parsedIndexes.year1 > -1) { + let val = parseInt(matches[parsedIndexes.year1]); + val = Math.floor((/* @__PURE__ */ new Date()).getFullYear() / 10) * 10 + val; + resValues.year = val; + } + if (parsedIndexes.monthLong > -1) { + resValues.month = this.resolveMonth(matches[parsedIndexes.monthLong]); + } + if (parsedIndexes.monthShort > -1) { + resValues.month = this.resolveShortMonth(matches[parsedIndexes.monthShort]); + } + if (parsedIndexes.month > -1) { + resValues.month = parseInt(matches[parsedIndexes.month]) - 1; + } + if (parsedIndexes.week > -1 && parsedIndexes.day === -1) { + resValues.month = 0; + resValues.day = getDayFromWeek(parseInt(matches[parsedIndexes.week]), resValues.year, 1, utc); + } + if (parsedIndexes.day > -1) { + resValues.day = parseInt(matches[parsedIndexes.day]); + } + if (parsedIndexes.yearDay > -1) { + resValues.month = 0; + resValues.day = parseInt(matches[parsedIndexes.yearDay]); + } + if (parsedIndexes.hourBase0 > -1) { + resValues.hour = parseInt(matches[parsedIndexes.hourBase0]); + } + if (parsedIndexes.hourBase1 > -1) { + resValues.hour = parseInt(matches[parsedIndexes.hourBase1]) - 1; + } + if (parsedIndexes.hour12Base0 > -1) { + let val = parseInt(matches[parsedIndexes.hour12Base0]); + if (val == 11) { + val = 0; + } + if (parsedIndexes.am > -1 && !this.isAm(matches[parsedIndexes.am])) { + val += 12; + } + resValues.hour = val; + } + if (parsedIndexes.hour12Base1 > -1) { + let val = parseInt(matches[parsedIndexes.hour12Base1]); + if (val == 12) { + val = 0; + } + if (parsedIndexes.am > -1 && !this.isAm(matches[parsedIndexes.am])) { + val += 12; + } + resValues.hour = val; + } + if (parsedIndexes.minute > -1) { + resValues.minute = parseInt(matches[parsedIndexes.minute]); + } + if (parsedIndexes.second > -1) { + resValues.second = parseInt(matches[parsedIndexes.second]); + } + if (parsedIndexes.millisecond > -1) { + let val = parseInt(matches[parsedIndexes.millisecond]); + if (parsedIndexes.millisecondDigits == 2) { + val *= 10; + } else if (parsedIndexes.millisecondDigits == 1) { + val *= 100; + } + resValues.millisecond = val; + } + if (parsedIndexes.timestamp > -1) { + resValues.timestamp = parseInt(matches[parsedIndexes.timestamp]); + const ts = new Date(resValues.timestamp); + resValues.year = ts.getUTCFullYear(); + resValues.month = ts.getUTCMonth(); + resValues.day = ts.getUTCDate(); + resValues.hour = ts.getUTCHours(); + resValues.minute = ts.getUTCMinutes(); + resValues.second = ts.getUTCSeconds(); + resValues.millisecond = ts.getUTCMilliseconds(); + } + if (parsedIndexes.zone > -1) { + resValues.offset = this.resolveTimezoneOffset(new Date(resValues.year, resValues.month, resValues.day), matches[parsedIndexes.zone]); + } + if (parsedIndexes.iso > -1) { + resValues.year = toNumber(matches[parsedIndexes.iso + 0]); + resValues.month = toNumber(matches[parsedIndexes.iso + 1]) - 1; + resValues.day = toNumber(matches[parsedIndexes.iso + 2]); + resValues.hour = toNumber(matches[parsedIndexes.iso + 3]); + resValues.minute = toNumber(matches[parsedIndexes.iso + 4]); + resValues.second = toNumber(matches[parsedIndexes.iso + 5]); + resValues.millisecond = toNumber(matches[parsedIndexes.iso + 6]); + if (matches[parsedIndexes.iso + 7] == "Z" || matches[parsedIndexes.iso + 7] == "z") { + resValues.utc = true; + } else if (matches[parsedIndexes.iso + 7] != "") { + resValues.offset = this.resolveTimezoneOffset(new Date(resValues.year, resValues.month, resValues.day), matches[parsedIndexes.iso + 7]); + } + } + if (resValues.utc) { + res = new Date(Date.UTC(resValues.year, resValues.month, resValues.day, resValues.hour, resValues.minute, resValues.second, resValues.millisecond)); + } else { + res = new Date(resValues.year, resValues.month, resValues.day, resValues.hour, resValues.minute + resValues.offset, resValues.second, resValues.millisecond); + } + } else { + res = new Date(source); + } + return res; + } + resolveTimezoneOffset(date, zone) { + let value = zone.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/); + if (value) { + let match = zone.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/); + let dir = match[1]; + let hour = match[2]; + let minute = match[3]; + let offset = parseInt(hour) * 60 + parseInt(minute); + if (dir == "+") { + offset *= -1; + } + let originalOffset = (date || /* @__PURE__ */ new Date()).getTimezoneOffset(); + let diff = offset - originalOffset; + return diff; + } + return 0; + } + /** + * Resolves month name (i.e. "December") into a month number (11). + * + * @param value Month name + * @return Month number + */ + resolveMonth(value) { + let month = this._months().indexOf(value); + if (month > -1) { + return month; + } + if (!this._root.language.isDefault()) { + month = this._root.language.translateAll(this._months()).indexOf(value); + if (month > -1) { + return month; + } + } + return 0; + } + /** + * Resolves short month name (i.e. "Dec") into a month number. + * + * @param value Short month name + * @return Month number + */ + resolveShortMonth(value) { + let month = this._shortMonths().indexOf(value); + if (month > -1) { + return month; + } + month = this._months().indexOf(value); + if (month > -1) { + return month; + } + if (this._root.language && !this._root.language.isDefault()) { + month = this._root.language.translateAll(this._shortMonths()).indexOf(value); + if (month > -1) { + return month; + } + } + return 0; + } + /** + * Checks if passed in string represents AM/PM notation in many of its + * versions. + * + * @param value Source string + * @return Is it AM/PM? + */ + isAm(value) { + let list = this.getStringList(["AM", "A.M.", "A"]); + return list.indexOf(value.toUpperCase()) > -1; + } + /** + * Translates list of strings. + * + * @param list Source strings + * @return Translated strings + */ + getStringList(list) { + let res = []; + for (let i = 0; i < list.length; i++) { + if (this._root.language) { + res.push(escapeForRgex(this._t(list[i]))); + } else { + res.push(escapeForRgex(list[i])); + } + } + return res; + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/DurationFormatter.js + var DurationFormatter = class extends Entity { + constructor() { + super(...arguments); + this._unitAliases = { + "Y": "y", + "D": "d", + "H": "h", + "K": "h", + "k": "h", + "n": "S" + }; + } + _setDefaults() { + const dmillisecond = "_duration_millisecond"; + const dsecond = "_duration_second"; + const dminute = "_duration_minute"; + const dhour = "_duration_hour"; + const dday = "_duration_day"; + const dweek = "_duration_week"; + const dmonth = "_duration_month"; + const dyear = "_duration_year"; + const asecond = "_second"; + const aminute = "_minute"; + const ahour = "_hour"; + const aday = "_day"; + const aweek = "_week"; + const amonth = "_week"; + const ayear = "_year"; + this._setDefault("negativeBase", 0); + this._setDefault("baseUnit", "second"); + this._setDefault("durationFormats", { + "millisecond": { + "millisecond": this._t(dmillisecond), + "second": this._t(dmillisecond + asecond), + "minute": this._t(dmillisecond + aminute), + "hour": this._t(dmillisecond + ahour), + "day": this._t(dmillisecond + aday), + "week": this._t(dmillisecond + aweek), + "month": this._t(dmillisecond + amonth), + "year": this._t(dmillisecond + ayear) + }, + "second": { + "second": this._t(dsecond), + "minute": this._t(dsecond + aminute), + "hour": this._t(dsecond + ahour), + "day": this._t(dsecond + aday), + "week": this._t(dsecond + aweek), + "month": this._t(dsecond + amonth), + "year": this._t(dsecond + ayear) + }, + "minute": { + "minute": this._t(dminute), + "hour": this._t(dminute + ahour), + "day": this._t(dminute + aday), + "week": this._t(dminute + aweek), + "month": this._t(dminute + amonth), + "year": this._t(dminute + ayear) + }, + "hour": { + "hour": this._t(dhour), + "day": this._t(dhour + aday), + "week": this._t(dhour + aweek), + "month": this._t(dhour + amonth), + "year": this._t(dhour + ayear) + }, + "day": { + "day": this._t(dday), + "week": this._t(dday + aweek), + "month": this._t(dday + amonth), + "year": this._t(dday + ayear) + }, + "week": { + "week": this._t(dweek), + "month": this._t(dweek + amonth), + "year": this._t(dweek + ayear) + }, + "month": { + "month": this._t(dmonth), + "year": this._t(dmonth + ayear) + }, + "year": { + "year": this._t(dyear) + } + }); + super._setDefaults(); + } + _beforeChanged() { + super._beforeChanged(); + } + /** + * Formats the number as duration. + * + * For example `1000` (base unit seconds) would be converted to `16:40` as in + * 16 minutes and 40 seconds. + * + * @param value Value to format + * @param format Format to apply + * @param base Override base unit + * @return Formatted number + */ + format(value, format, base) { + let baseUnit = base || this.get("baseUnit"); + if (typeof format === "undefined" || format === "") { + if (this.get("durationFormat") != null) { + format = this.get("durationFormat"); + } else { + format = this.getFormat(toNumber(value), void 0, baseUnit); + } + } + format = cleanFormat(format); + let info = this.parseFormat(format, baseUnit); + let source = Number(value); + let details; + if (source > this.get("negativeBase")) { + details = info.positive; + } else if (source < this.get("negativeBase")) { + details = info.negative; + } else { + details = info.zero; + } + let formatted = this.applyFormat(source, details); + if (details.color !== "") { + formatted = "[" + details.color + "]" + formatted + "[/]"; + } + return formatted; + } + /** + * Parses supplied format into structured object which can be used to format + * the number. + * + * @param format Format string, i.e. "#,###.00" + * @param base Override base unit + * @return Parsed information + */ + parseFormat(format, base) { + let baseUnit = base || this.get("baseUnit"); + let info = { + "positive": { + "color": "", + "template": "", + "parts": [], + "source": "", + "baseUnit": baseUnit, + "parsed": false, + "absolute": false + }, + "negative": { + "color": "", + "template": "", + "parts": [], + "source": "", + "baseUnit": baseUnit, + "parsed": false, + "absolute": false + }, + "zero": { + "color": "", + "template": "", + "parts": [], + "source": "", + "baseUnit": baseUnit, + "parsed": false, + "absolute": false + } + }; + format = format.replace("||", PLACEHOLDER2); + let parts = format.split("|"); + info.positive.source = parts[0]; + if (typeof parts[2] === "undefined") { + info.zero = info.positive; + } else { + info.zero.source = parts[2]; + } + if (typeof parts[1] === "undefined") { + info.negative = info.positive; + } else { + info.negative.source = parts[1]; + } + each2(info, (_part, item) => { + if (item.parsed) { + return; + } + let partFormat = item.source; + let dirs = []; + dirs = item.source.match(/^\[([^\]]*)\]/); + if (dirs && dirs.length && dirs[0] !== "") { + partFormat = item.source.substr(dirs[0].length); + item.color = dirs[1]; + } + let chunks = TextFormatter.chunk(partFormat, true); + for (let i = 0; i < chunks.length; i++) { + let chunk = chunks[i]; + chunk.text = chunk.text.replace(PLACEHOLDER2, "|"); + if (chunk.type === "value") { + if (chunk.text.match(/[yYMdDwhHKkmsSn]+a/)) { + item.absolute = true; + chunk.text = chunk.text.replace(/([yYMdDwhHKkmsSn]+)a/, "$1"); + } + let matches = chunk.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g); + if (matches) { + for (let x2 = 0; x2 < matches.length; x2++) { + if (matches[x2] == null) { + matches[x2] = this._unitAliases[matches[x2]]; + } + item.parts.push(matches[x2]); + chunk.text = chunk.text.replace(matches[x2], PLACEHOLDER); + } + } + } + item.template += chunk.text; + } + item.parsed = true; + }); + return info; + } + /** + * Applies parsed format to a numeric value. + * + * @param value Value + * @param details Parsed format as returned by {parseFormat} + * @return Formatted duration + */ + applyFormat(value, details) { + let negative = !details.absolute && value < this.get("negativeBase"); + value = Math.abs(value); + let tstamp = this.toTimeStamp(value, details.baseUnit); + let res = details.template; + const values = { + millisecond: 0, + second: 0, + minute: 0, + hour: 0, + day: 0, + week: 0, + month: 0, + year: 0 + }; + for (let i = 0, len = details.parts.length; i < len; i++) { + let part = details.parts[i]; + let unit = this._toTimeUnit(part.substr(0, 1)); + let ints; + const unitValue = this._getUnitValue(unit); + if (i < len - 1) { + ints = Math.floor(tstamp / unitValue); + } else { + ints = Math.round(tstamp / unitValue); + } + values[unit] += ints; + tstamp -= ints * unitValue; + } + each2(values, (unit, value2) => { + if (unit == "millisecond" && value2 == 1e3) { + values["second"]++; + values["millisecond"] = 0; + } else if (unit == "second" && value2 == 60) { + values["minute"]++; + values["second"] = 0; + } else if (unit == "minute" && value2 == 60) { + values["hour"]++; + values["minute"] = 0; + } else if (unit == "hour" && value2 == 24) { + values["day"]++; + values["hour"] = 0; + } else if (unit == "day" && value2 == 7 && details.parts.indexOf("w") !== -1) { + values["week"]++; + values["day"] = 0; + } else if (unit == "day" && value2 == 30) { + values["month"]++; + values["day"] = 0; + } else if (unit == "month" && value2 == 12) { + values["year"]++; + values["month"] = 0; + } + }); + for (let i = 0, len = details.parts.length; i < len; i++) { + let part = details.parts[i]; + let unit = this._toTimeUnit(part.substr(0, 1)); + let digits = part.length; + res = res.replace(PLACEHOLDER, padString(values[unit], digits, "0")); + } + if (negative) { + res = "-" + res; + } + return res; + } + /** + * Converts numeric value to timestamp in milliseconds. + * + * @param value A source value + * @param baseUnit Base unit the source value is in: "q", "s", "i", "h", "d", "w", "m", "y" + * @return Value representation as a timestamp in milliseconds + */ + toTimeStamp(value, baseUnit) { + return value * this._getUnitValue(baseUnit); + } + _toTimeUnit(code) { + switch (code) { + case "S": + return "millisecond"; + case "s": + return "second"; + case "m": + return "minute"; + case "h": + return "hour"; + case "d": + return "day"; + case "w": + return "week"; + case "M": + return "month"; + case "y": + return "year"; + } + ; + } + /** + * Returns appropriate default format for the value. + * + * If `maxValue` is sepcified, it will use that value to determine the time + * unit for the format. + * + * For example if your `baseUnit` is `"second"` and you pass in `10`, you + * will get `"10"`. + * + * However, you might want it to be formatted in the context of bigger scale, + * say 10 minutes (600 seconds). If you pass in `600` as `maxValue`, all + * values, including small ones will use format with minutes, e.g.: + * `00:10`, `00:50`, `12: 30`, etc. + * + * @param value Value to format + * @param maxValue Maximum value to be used to determine format + * @param baseUnit Base unit of the value + * @return Format + */ + getFormat(value, maxValue, baseUnit) { + if (this.get("durationFormat") != null) { + return this.get("durationFormat"); + } + if (!baseUnit) { + baseUnit = this.get("baseUnit"); + } + if (maxValue != null && value != maxValue) { + value = Math.abs(value); + maxValue = Math.abs(maxValue); + let maxUnit = this.getValueUnit(Math.max(value, maxValue), baseUnit); + return this.get("durationFormats")[baseUnit][maxUnit]; + } else { + let unit = this.getValueUnit(value, baseUnit); + return this.get("durationFormats")[baseUnit][unit]; + } + } + /** + * Returns value's closest denominator time unit, e.g 100 seconds is + * `"minute"`, while 59 seconds would still be `second`. + * + * @param value Source duration value + * @param baseUnit Base unit + * @return Denominator + */ + getValueUnit(value, baseUnit) { + if (!baseUnit) { + baseUnit = this.get("baseUnit"); + } + let currentUnit; + let ms = this.getMilliseconds(value, baseUnit); + eachContinue2(this._getUnitValues(), (key, val) => { + if (key == baseUnit || currentUnit) { + let num = ms / val; + if (num <= 1) { + if (!currentUnit) { + currentUnit = key; + } + return false; + } + currentUnit = key; + } + return true; + }); + return currentUnit; + } + /** + * Converts value to milliseconds according to `baseUnit`. + * + * @param value Source duration value + * @param baseUnit Base unit + * @return Value in milliseconds + */ + getMilliseconds(value, baseUnit) { + if (!baseUnit) { + baseUnit = this.get("baseUnit"); + } + return value * this._getUnitValue(baseUnit); + } + _getUnitValue(timeUnit) { + return this._getUnitValues()[timeUnit]; + } + _getUnitValues() { + return { + "millisecond": 1, + "second": 1e3, + "minute": 6e4, + "hour": 36e5, + "day": 864e5, + "week": 6048e5, + "month": 2592e6, + "year": 31536e6 + }; + } + }; + + // node_modules/@amcharts/amcharts5/locales/en.js + var en_default = { + "firstDayOfWeek": 1, + // Number formatting options. + // + // Please check with the local standards which separator is accepted to be + // used for separating decimals, and which for thousands. + "_decimalSeparator": ".", + "_thousandSeparator": ",", + // Position of the percent sign in numbers + "_percentPrefix": null, + "_percentSuffix": "%", + // Suffixes for numbers + // When formatting numbers, big or small numers might be reformatted to + // shorter version, by applying a suffix. + // + // For example, 1000000 might become "1m". + // Or 1024 might become "1KB" if we're formatting byte numbers. + // + // This section defines such suffixes for all such cases. + "_big_number_suffix_3": "k", + "_big_number_suffix_6": "M", + "_big_number_suffix_9": "G", + "_big_number_suffix_12": "T", + "_big_number_suffix_15": "P", + "_big_number_suffix_18": "E", + "_big_number_suffix_21": "Z", + "_big_number_suffix_24": "Y", + "_small_number_suffix_3": "m", + "_small_number_suffix_6": "\u03BC", + "_small_number_suffix_9": "n", + "_small_number_suffix_12": "p", + "_small_number_suffix_15": "f", + "_small_number_suffix_18": "a", + "_small_number_suffix_21": "z", + "_small_number_suffix_24": "y", + "_byte_suffix_B": "B", + "_byte_suffix_KB": "KB", + "_byte_suffix_MB": "MB", + "_byte_suffix_GB": "GB", + "_byte_suffix_TB": "TB", + "_byte_suffix_PB": "PB", + // Default date formats for various periods. + // + // This should reflect official or de facto formatting universally accepted + // in the country translation is being made for + // Available format codes here: + // https://www.amcharts.com/docs/v5/concepts/formatters/formatting-dates/#Format_codes + // + // This will be used when formatting date/time for particular granularity, + // e.g. "_date_hour" will be shown whenever we need to show time as hours. + // + // "date" is used as in default date format when showing standalone dates. + "_date": "yyyy-MM-dd", + "_date_millisecond": "mm:ss SSS", + "_date_millisecond_full": "HH:mm:ss SSS", + "_date_second": "HH:mm:ss", + "_date_second_full": "HH:mm:ss", + "_date_minute": "HH:mm", + "_date_minute_full": "HH:mm - MMM dd, yyyy", + "_date_hour": "HH:mm", + "_date_hour_short": "HH", + "_date_hour_full": "HH:mm - MMM dd, yyyy", + "_date_day": "MMM dd", + "_date_day_full": "MMM dd, yyyy", + "_date_week": "ww", + "_date_week_full": "MMM dd, yyyy", + "_date_month": "MMM", + "_date_month_full": "MMM, yyyy", + "_date_year": "yyyy", + // Default duration formats for various base units. + // + // This will be used by DurationFormatter to format numeric values into + // duration. + // + // Notice how each duration unit comes in several versions. This is to ensure + // that each base unit is shown correctly. + // + // For example, if we have baseUnit set to "second", meaning our duration is + // in seconds. + // + // If we pass in `50` to formatter, it will know that we have just 50 seconds + // (less than a minute) so it will use format in `"_duration_second"` ("ss"), + // and the formatted result will be in like `"50"`. + // + // If we pass in `70`, which is more than a minute, the formatter will switch + // to `"_duration_second_minute"` ("mm:ss"), resulting in "01:10" formatted + // text. + // + // Available codes here: + // https://www.amcharts.com/docs/v4/concepts/formatters/formatting-duration/#Available_Codes + "_duration_millisecond": "SSS", + "_duration_millisecond_second": "ss.SSS", + "_duration_millisecond_minute": "mm:ss SSS", + "_duration_millisecond_hour": "hh:mm:ss SSS", + "_duration_millisecond_day": "d'd' mm:ss SSS", + "_duration_millisecond_week": "d'd' mm:ss SSS", + "_duration_millisecond_month": "M'm' dd'd' mm:ss SSS", + "_duration_millisecond_year": "y'y' MM'm' dd'd' mm:ss SSS", + "_duration_second": "ss", + "_duration_second_minute": "mm:ss", + "_duration_second_hour": "hh:mm:ss", + "_duration_second_day": "d'd' hh:mm:ss", + "_duration_second_week": "d'd' hh:mm:ss", + "_duration_second_month": "M'm' dd'd' hh:mm:ss", + "_duration_second_year": "y'y' MM'm' dd'd' hh:mm:ss", + "_duration_minute": "mm", + "_duration_minute_hour": "hh:mm", + "_duration_minute_day": "d'd' hh:mm", + "_duration_minute_week": "d'd' hh:mm", + "_duration_minute_month": "M'm' dd'd' hh:mm", + "_duration_minute_year": "y'y' MM'm' dd'd' hh:mm", + "_duration_hour": "hh'h'", + "_duration_hour_day": "d'd' hh'h'", + "_duration_hour_week": "d'd' hh'h'", + "_duration_hour_month": "M'm' dd'd' hh'h'", + "_duration_hour_year": "y'y' MM'm' dd'd' hh'h'", + "_duration_day": "d'd'", + "_duration_day_week": "d'd'", + "_duration_day_month": "M'm' dd'd'", + "_duration_day_year": "y'y' MM'm' dd'd'", + "_duration_week": "w'w'", + "_duration_week_month": "w'w'", + "_duration_week_year": "w'w'", + "_duration_month": "M'm'", + "_duration_month_year": "y'y' MM'm'", + "_duration_year": "y'y'", + // Era translations + "_era_ad": "AD", + "_era_bc": "BC", + // Day part, used in 12-hour formats, e.g. 5 P.M. + // Please note that these come in 3 variants: + // * one letter (e.g. "A") + // * two letters (e.g. "AM") + // * two letters with dots (e.g. "A.M.") + // + // All three need to to be translated even if they are all the same. Some + // users might use one, some the other. + "A": "", + "P": "", + "AM": "", + "PM": "", + "A.M.": "", + "P.M.": "", + // Date-related stuff. + // + // When translating months, if there's a difference, use the form which is + // best for a full date, e.g. as you would use it in "2018 January 1". + // + // Note that May is listed twice. This is because in English May is the same + // in both long and short forms, while in other languages it may not be the + // case. Translate "May" to full word, while "May(short)" to shortened + // version. + // + // Should month names and weekdays be capitalized or not? + // + // Rule of thumb is this: if the names should always be capitalized, + // regardless of name position within date ("January", "21st January 2018", + // etc.) use capitalized names. Otherwise enter all lowercase. + // + // The date formatter will automatically capitalize names if they are the + // first (or only) word in resulting date. + "January": "", + "February": "", + "March": "", + "April": "", + "May": "", + "June": "", + "July": "", + "August": "", + "September": "", + "October": "", + "November": "", + "December": "", + "Jan": "", + "Feb": "", + "Mar": "", + "Apr": "", + "May(short)": "May", + "Jun": "", + "Jul": "", + "Aug": "", + "Sep": "", + "Oct": "", + "Nov": "", + "Dec": "", + // Weekdays. + "Sunday": "", + "Monday": "", + "Tuesday": "", + "Wednesday": "", + "Thursday": "", + "Friday": "", + "Saturday": "", + "Sun": "", + "Mon": "", + "Tue": "", + "Wed": "", + "Thu": "", + "Fri": "", + "Sat": "", + // Date ordinal function. + // + // This is used when adding number ordinal when formatting days in dates. + // + // E.g. "January 1st", "February 2nd". + // + // The function accepts day number, and returns a string to be added to the + // day, like in default English translation, if we pass in 2, we will receive + // "nd" back. + "_dateOrd": function(day) { + let res = "th"; + if (day < 11 || day > 13) { + switch (day % 10) { + case 1: + res = "st"; + break; + case 2: + res = "nd"; + break; + case 3: + res = "rd"; + break; + } + } + return res; + }, + // Various chart controls. + // Shown as a tooltip on zoom out button. + "Zoom Out": "", + // Timeline buttons + "Play": "", + "Stop": "", + // Chart's Legend screen reader title. + "Legend": "", + // Legend's item screen reader indicator. + "Press ENTER to toggle": "", + // Shown when the chart is busy loading something. + "Loading": "", + // Shown as the first button in the breadcrumb navigation, e.g.: + // Home > First level > ... + "Home": "", + // Chart types. + // Those are used as default screen reader titles for the main chart element + // unless developer has set some more descriptive title. + "Chart": "", + "Serial chart": "", + "X/Y chart": "", + "Pie chart": "", + "Gauge chart": "", + "Radar chart": "", + "Sankey diagram": "", + "Flow diagram": "", + "Chord diagram": "", + "TreeMap chart": "", + "Force directed tree": "", + "Sliced chart": "", + // Series types. + // Used to name series by type for screen readers if they do not have their + // name set. + "Series": "", + "Candlestick Series": "", + "OHLC Series": "", + "Column Series": "", + "Line Series": "", + "Pie Slice Series": "", + "Funnel Series": "", + "Pyramid Series": "", + "X/Y Series": "", + // Map-related stuff. + "Map": "", + "Press ENTER to zoom in": "", + "Press ENTER to zoom out": "", + "Use arrow keys to zoom in and out": "", + "Use plus and minus keys on your keyboard to zoom in and out": "", + // Export-related stuff. + // These prompts are used in Export menu labels. + // + // "Export" is the top-level menu item. + // + // "Image", "Data", "Print" as second-level indicating type of export + // operation. + // + // Leave actual format untranslated, unless you absolutely know that they + // would convey more meaning in some other way. + "Export": "", + "Image": "", + "Data": "", + "Print": "", + "Press ENTER or use arrow keys to navigate": "", + "Press ENTER to open": "", + "Press ENTER to print.": "", + "Press ENTER to export as %1.": "", + "(Press ESC to close this message)": "", + "Image Export Complete": "", + "Export operation took longer than expected. Something might have gone wrong.": "", + "Saved from": "", + "PNG": "", + "JPG": "", + "GIF": "", + "SVG": "", + "PDF": "", + "JSON": "", + "CSV": "", + "XLSX": "", + "HTML": "", + // Scrollbar-related stuff. + // + // Scrollbar is a control which can zoom and pan the axes on the chart. + // + // Each scrollbar has two grips: left or right (for horizontal scrollbar) or + // upper and lower (for vertical one). + // + // Prompts change in relation to whether Scrollbar is vertical or horizontal. + // + // The final section is used to indicate the current range of selection. + "Use TAB to select grip buttons or left and right arrows to change selection": "", + "Use left and right arrows to move selection": "", + "Use left and right arrows to move left selection": "", + "Use left and right arrows to move right selection": "", + "Use TAB select grip buttons or up and down arrows to change selection": "", + "Use up and down arrows to move selection": "", + "Use up and down arrows to move lower selection": "", + "Use up and down arrows to move upper selection": "", + "From %1 to %2": "", + "From %1": "", + "To %1": "", + // Data loader-related. + "No parser available for file: %1": "", + "Error parsing file: %1": "", + "Unable to load file: %1": "", + "Invalid date": "", + // Common actions + "Close": "", + "Minimize": "", + "Confirm": "" + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Language.js + var Language = class extends Entity { + _setDefaults() { + this.setPrivate("defaultLocale", en_default); + super._setDefaults(); + } + /** + * Returns a prompt translation. + * + * @param prompt Prompt to translate + * @param locale Target locale + * @param ...rest Parameters + * @return Translation + */ + translate(prompt, locale, ...rest) { + if (!locale) { + locale = this._root.locale || this.getPrivate("defaultLocale"); + } + let translation = prompt; + let value = locale[prompt]; + if (value === null) { + translation = ""; + } else if (value != null) { + if (value) { + translation = value; + } + } else if (locale !== this.getPrivate("defaultLocale")) { + return this.translate(prompt, this.getPrivate("defaultLocale"), ...rest); + } + if (rest.length) { + for (let len = rest.length, i = 0; i < len; ++i) { + translation = translation.split("%" + (i + 1)).join(rest[i]); + } + } + return translation; + } + /** + * Returns a prompt translation, including custom prompts. + * + * @param prompt Prompt to translate + * @param locale Target locale + * @param ...rest Parameters + * @return Translation + */ + translateAny(prompt, locale, ...rest) { + return this.translate(prompt, locale, ...rest); + } + /** + * Add a custom prompt to locale. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/locales/creating-translations/#Extending_locale_with_custom_prompts} + * @param prompt Source prompt + * @param translation Tanslation + * @param locale Target locale + */ + setTranslationAny(prompt, translation, locale) { + const localeTarget = locale || this._root.locale; + localeTarget[prompt] = translation; + } + /** + * Add a batch of custom prompts. + * + * @since 5.3.3 + * @see {@link https://www.amcharts.com/docs/v5/concepts/locales/creating-translations/#Extending_locale_with_custom_prompts} + * @param translations Translations + * @param locale Target locale + */ + setTranslationsAny(translations, locale) { + each2(translations, (key, val) => { + this.setTranslationAny(key, val, locale); + }); + } + translateEmpty(prompt, locale, ...rest) { + let translation = this.translate(prompt, locale, ...rest); + return translation == prompt ? "" : translation; + } + translateFunc(prompt, locale) { + if (this._root.locale[prompt]) { + return this._root.locale[prompt]; + } + if (locale !== this.getPrivate("defaultLocale")) { + return this.translateFunc(prompt, this.getPrivate("defaultLocale")); + } + return () => { + return ""; + }; + } + /** + * Translates a btach of prompts. + * + * @param list Array of prompts to translate + * @param locale Target locale + * @return Array of translations + */ + translateAll(list, locale) { + if (!this.isDefault()) { + return map(list, (x2) => this.translate(x2, locale)); + } else { + return list; + } + } + /** + * Returns `true` if the currently selected locale is a default locale. + * + * @return `true` if locale is default; `false` if it is not. + */ + isDefault() { + return this.getPrivate("defaultLocale") === this._root.locale; + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/Theme.js + var Theme = class { + constructor(root2, isReal) { + this._rules = {}; + this._root = root2; + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + } + /** + * Use this method to create an instance of this class. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @param root Root element + * @param settings Settings + * @param template Template + * @return Instantiated object + */ + static new(root2) { + const x2 = new this(root2, true); + x2.setupDefaultRules(); + return x2; + } + setupDefaultRules() { + } + /** + * Looks up the rules for a specific theme class. + * + * @see {@link https://www.amcharts.com/docs/v5/themes/} for more info + * @param themeClass Theme class + * @return Array> + */ + _lookupRules(themeClass) { + return this._rules[themeClass]; + } + /** + * Creates a [[Template]] for specific theme class and tags. + * + * NOTE: the difference from `rule()` is that `ruleRaw()` does not do any + * type checks. + * + * @see {@link https://www.amcharts.com/docs/v5/themes/} for more info + * @param themeClass Theme class + * @param themeTags Theme tags + * @return Template + */ + ruleRaw(themeClass, themeTags = []) { + let rules = this._rules[themeClass]; + if (!rules) { + rules = this._rules[themeClass] = []; + } + themeTags.sort(compare); + const { index, found } = getSortedIndex(rules, (x2) => { + const order = compare(x2.tags.length, themeTags.length); + if (order === 0) { + return compareArray(x2.tags, themeTags, compare); + } else { + return order; + } + }); + if (found) { + return rules[index].template; + } else { + const template = Template.new({}); + rules.splice(index, 0, { + tags: themeTags, + template + }); + return template; + } + } + /** + * Creates a [[Template]] for specific theme class and tags. + * + * @see {@link https://www.amcharts.com/docs/v5/themes/} for more info + * @param themeClass Theme class + * @param themeTags Theme tags + * @return Template + */ + rule(themeClass, themeTags = []) { + return this.ruleRaw(themeClass, themeTags); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/themes/DefaultTheme.js + function setColor(rule, key, ic, name) { + rule.set(key, ic.get(name)); + ic.on(name, (value) => { + rule.set(key, value); + }); + } + var DefaultTheme = class extends Theme { + setupDefaultRules() { + super.setupDefaultRules(); + const language = this._root.language; + const ic = this._root.interfaceColors; + const horizontalLayout = this._root.horizontalLayout; + const verticalLayout = this._root.verticalLayout; + const r = this.rule.bind(this); + r("InterfaceColors").setAll({ + stroke: Color.fromHex(15066597), + fill: Color.fromHex(15987699), + primaryButton: Color.fromHex(6788316), + primaryButtonHover: Color.fromHex(6779356), + primaryButtonDown: Color.fromHex(6872182), + primaryButtonActive: Color.fromHex(6872182), + primaryButtonDisabled: Color.fromHex(14342874), + primaryButtonTextDisabled: Color.fromHex(16777215), + primaryButtonText: Color.fromHex(16777215), + primaryButtonStroke: Color.fromHex(16777215), + secondaryButton: Color.fromHex(14277081), + secondaryButtonHover: Color.fromHex(10724259), + secondaryButtonDown: Color.fromHex(9276813), + secondaryButtonActive: Color.fromHex(15132390), + secondaryButtonText: Color.fromHex(0), + secondaryButtonStroke: Color.fromHex(16777215), + grid: Color.fromHex(0), + background: Color.fromHex(16777215), + alternativeBackground: Color.fromHex(0), + text: Color.fromHex(0), + alternativeText: Color.fromHex(16777215), + disabled: Color.fromHex(11382189), + positive: Color.fromHex(5288704), + negative: Color.fromHex(11730944) + }); + { + const rule = r("ColorSet"); + rule.setAll({ + passOptions: { + hue: 0.05, + saturation: 0, + lightness: 0 + }, + colors: [ + Color.fromHex(6797276) + ], + step: 1, + //baseColor: Color.fromRGB(103, 183, 220), + //count: 20, + reuse: false, + startIndex: 0 + }); + rule.setPrivate("currentStep", 0); + rule.setPrivate("currentPass", 0); + } + r("Entity").setAll({ + stateAnimationDuration: 0, + stateAnimationEasing: out(cubic) + }); + r("Component").setAll({ + interpolationDuration: 0, + interpolationEasing: out(cubic) + }); + r("Sprite").setAll({ + visible: true, + scale: 1, + opacity: 1, + rotation: 0, + position: "relative", + tooltipX: p50, + tooltipY: p50, + tooltipPosition: "fixed", + isMeasured: true + }); + r("Sprite").states.create("default", { "visible": true, opacity: 1 }); + r("Container").setAll({ + interactiveChildren: true, + setStateOnChildren: false + }); + r("Graphics").setAll({ + strokeWidth: 1 + }); + r("Chart").setAll({ + width: p100, + height: p100, + interactiveChildren: false + }); + r("ZoomableContainer").setAll({ + width: p100, + height: p100, + wheelable: true, + pinchZoom: true, + maxZoomLevel: 32, + minZoomLevel: 1, + zoomStep: 2, + animationEasing: out(cubic), + animationDuration: 600, + maxPanOut: 0.4 + }); + r("Sprite", ["horizontal", "center"]).setAll({ + centerX: p50, + x: p50 + }); + r("Sprite", ["vertical", "center"]).setAll({ + centerY: p50, + y: p50 + }); + r("Container", ["horizontal", "layout"]).setAll({ + layout: horizontalLayout + }); + r("Container", ["vertical", "layout"]).setAll({ + layout: verticalLayout + }); + r("Pattern").setAll({ + repetition: "repeat", + width: 50, + height: 50, + rotation: 0, + fillOpacity: 1 + }); + r("LinePattern").setAll({ + gap: 6, + colorOpacity: 1, + width: 49, + height: 49 + }); + r("RectanglePattern").setAll({ + gap: 6, + checkered: false, + centered: true, + maxWidth: 5, + maxHeight: 5, + width: 48, + height: 48, + strokeWidth: 0 + }); + r("CirclePattern").setAll({ + gap: 5, + checkered: false, + centered: false, + radius: 3, + strokeWidth: 0, + width: 45, + height: 45 + }); + r("GrainPattern").setAll({ + width: 200, + height: 200, + colors: [Color.fromHex(0)], + size: 1, + horizontalGap: 0, + verticalGap: 0, + density: 1, + minOpacity: 0, + maxOpacity: 0.2 + }); + { + const rule = r("PatternSet"); + rule.setAll({ + step: 1 + }); + setColor(rule, "color", ic, "stroke"); + } + r("LinearGradient").setAll({ + rotation: 90 + }); + r("Legend").setAll({ + fillField: "fill", + strokeField: "stroke", + nameField: "name", + layout: GridLayout.new(this._root, {}), + layer: 30, + clickTarget: "itemContainer" + }); + r("Container", ["legend", "item", "itemcontainer"]).setAll({ + paddingLeft: 5, + paddingRight: 5, + paddingBottom: 5, + paddingTop: 5, + layout: horizontalLayout, + setStateOnChildren: true, + interactiveChildren: false, + ariaChecked: true, + focusable: true, + ariaLabel: language.translate("Press ENTER to toggle"), + role: "checkbox" + }); + { + const rule = r("Rectangle", ["legend", "item", "background"]); + rule.setAll({ + fillOpacity: 0 + }); + setColor(rule, "fill", ic, "background"); + } + r("Container", ["legend", "marker"]).setAll({ + setStateOnChildren: true, + centerY: p50, + paddingLeft: 0, + paddingRight: 0, + paddingBottom: 0, + paddingTop: 0, + width: 18, + height: 18 + }); + r("RoundedRectangle", ["legend", "marker", "rectangle"]).setAll({ + width: p100, + height: p100, + cornerRadiusBL: 3, + cornerRadiusTL: 3, + cornerRadiusBR: 3, + cornerRadiusTR: 3 + }); + { + const rule = r("RoundedRectangle", ["legend", "marker", "rectangle"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "disabled"); + setColor(rule, "stroke", ic, "disabled"); + } + r("Label", ["legend", "label"]).setAll({ + centerY: p50, + marginLeft: 5, + paddingRight: 0, + paddingLeft: 0, + paddingTop: 0, + paddingBottom: 0, + populateText: true + }); + { + const rule = r("Label", ["legend", "label"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "disabled"); + } + r("Label", ["legend", "value", "label"]).setAll({ + centerY: p50, + marginLeft: 5, + paddingRight: 0, + paddingLeft: 0, + paddingTop: 0, + paddingBottom: 0, + width: 50, + centerX: p100, + populateText: true + }); + { + const rule = r("Label", ["legend", "value", "label"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "disabled"); + } + r("HeatLegend").setAll({ + stepCount: 1 + }); + r("RoundedRectangle", ["heatlegend", "marker"]).setAll({ + cornerRadiusTR: 0, + cornerRadiusBR: 0, + cornerRadiusTL: 0, + cornerRadiusBL: 0 + }); + r("RoundedRectangle", ["vertical", "heatlegend", "marker"]).setAll({ + height: p100, + width: 15 + }); + r("RoundedRectangle", ["horizontal", "heatlegend", "marker"]).setAll({ + width: p100, + height: 15 + }); + r("HeatLegend", ["vertical"]).setAll({ + height: p100 + }); + r("HeatLegend", ["horizontal"]).setAll({ + width: p100 + }); + r("Label", ["heatlegend", "start"]).setAll({ + paddingLeft: 5, + paddingRight: 5, + paddingTop: 5, + paddingBottom: 5 + }); + r("Label", ["heatlegend", "end"]).setAll({ + paddingLeft: 5, + paddingRight: 5, + paddingTop: 5, + paddingBottom: 5 + }); + { + const rule = r("Label"); + rule.setAll({ + paddingTop: 8, + paddingBottom: 8, + paddingLeft: 10, + paddingRight: 10, + fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', + fontSize: "1em", + populateText: false + }); + setColor(rule, "fill", ic, "text"); + } + r("RadialLabel").setAll({ + textType: "regular", + centerY: p50, + centerX: p50, + inside: false, + radius: 0, + baseRadius: p100, + orientation: "auto", + textAlign: "center" + }); + r("EditableLabel").setAll({ + editOn: "click", + //setStateOnChildren: true, + themeTags: ["editablelabel"], + multiLine: true + }); + r("RoundedRectangle", ["editablelabel", "background"]).setAll({ + fillOpacity: 0, + fill: Color.fromHex(0), + cornerRadiusBL: 3, + cornerRadiusBR: 3, + cornerRadiusTL: 3, + cornerRadiusTR: 3, + strokeOpacity: 0, + stroke: Color.fromHex(0) + }); + { + r("RoundedRectangle", ["editablelabel", "background"]).states.create("active", { + strokeOpacity: 0.2 + }); + } + r("RoundedRectangle").setAll({ + cornerRadiusTL: 8, + cornerRadiusBL: 8, + cornerRadiusTR: 8, + cornerRadiusBR: 8 + }); + r("PointedRectangle").setAll({ + pointerBaseWidth: 15, + pointerLength: 10, + cornerRadius: 8 + }); + r("Slice").setAll({ + shiftRadius: 0, + dRadius: 0, + dInnerRadius: 0 + }); + { + const rule = r("Tick"); + rule.setAll({ + strokeOpacity: 0.15, + isMeasured: false, + length: 4.5, + position: "absolute", + crisp: true + }); + setColor(rule, "stroke", ic, "grid"); + } + r("Bullet").setAll({ + locationX: 0.5, + locationY: 0.5 + }); + r("Tooltip").setAll({ + position: "absolute", + getFillFromSprite: true, + getStrokeFromSprite: false, + autoTextColor: true, + paddingTop: 9, + paddingBottom: 8, + paddingLeft: 10, + paddingRight: 10, + marginBottom: 5, + pointerOrientation: "vertical", + centerX: p50, + centerY: p50, + animationEasing: out(cubic), + exportable: false + //layer: 100 + }); + r("Tooltip", ["system"]).setAll({ + pointerOrientation: "horizontal", + paddingTop: 4, + paddingRight: 7, + paddingBottom: 4, + paddingLeft: 7 + }); + { + const rule = r("PointedRectangle", ["tooltip", "system", "background"]); + rule.setAll({ + strokeOpacity: 0.3 + }); + setColor(rule, "fill", ic, "background"); + setColor(rule, "stroke", ic, "grid"); + } + r("Label", ["tooltip", "system"]).setAll({ + fontSize: 12, + fill: ic.get("background") + }); + r("Polygon").setAll({ + animationEasing: out(cubic) + }); + r("Link").setAll({ + cornerRadius: 8, + setStateOnChildren: true + }); + { + const rule = r("OrthogonalLine", ["link", "line"]); + rule.setAll({ + isMeasured: false, + crisp: true + }); + const stateActive = rule.states.create("active", { + strokeWidth: 2 + }); + setColor(stateActive, "stroke", ic, "negative"); + } + r("OrthogonalLine", ["link", "hit"]).setAll({ + strokeWidth: 10, + opacity: 0, + strokeOpacity: 0 + }); + { + const rule = r("OrthogonalLine"); + rule.setAll({ + strokeWidth: 1, + strokeOpacity: 1, + cornerRadius: 10 + }); + setColor(rule, "stroke", ic, "grid"); + } + { + const rule = r("Triangle", ["link"]); + rule.setAll({ + width: 14, + height: 10, + centerY: 0 + }); + setColor(rule, "fill", ic, "grid"); + setColor(rule, "stroke", ic, "grid"); + rule.states.create("default", { + stateAnimationDuration: 0 + }); + const state = rule.states.create("active", { + stateAnimationDuration: 0, + stroke: color(16777215), + strokeWidth: 2 + }); + state.set("draw", (display) => { + display.arc(0, 0, 11, 0, Math.PI * 2); + display.moveTo(-4, -4); + display.lineTo(4, 4); + display.moveTo(4, -4); + display.lineTo(-4, 4); + }); + setColor(state, "fill", ic, "negative"); + } + { + const rule = r("PointedRectangle", ["tooltip", "background"]); + rule.setAll({ + strokeOpacity: 0.9, + cornerRadius: 4, + pointerLength: 4, + pointerBaseWidth: 8, + fillOpacity: 0.9, + stroke: Color.fromHex(16777215) + }); + } + { + const rule = r("Label", ["tooltip"]); + rule.setAll({ + role: "tooltip", + populateText: true, + paddingRight: 0, + paddingTop: 0, + paddingLeft: 0, + paddingBottom: 0 + }); + setColor(rule, "fill", ic, "alternativeText"); + } + r("Button").setAll({ + paddingTop: 8, + paddingBottom: 8, + paddingLeft: 10, + paddingRight: 10, + interactive: true, + layout: horizontalLayout, + interactiveChildren: false, + setStateOnChildren: true, + focusable: true + }); + r("Button").states.create("hover", {}); + r("Button").states.create("down", { stateAnimationDuration: 0 }); + r("Button").states.create("active", {}); + r("Button").states.create("disabled", { + forceInactive: true + }); + { + const rule = r("RoundedRectangle", ["button", "background"]); + setColor(rule, "fill", ic, "primaryButton"); + setColor(rule, "stroke", ic, "primaryButtonStroke"); + } + { + const rule = r("RoundedRectangle", ["button", "background"]).states.create("hover", {}); + setColor(rule, "fill", ic, "primaryButtonHover"); + } + { + const rule = r("RoundedRectangle", ["button", "background"]).states.create("down", { stateAnimationDuration: 0 }); + setColor(rule, "fill", ic, "primaryButtonDown"); + } + { + const rule = r("RoundedRectangle", ["button", "background"]).states.create("active", {}); + setColor(rule, "fill", ic, "primaryButtonActive"); + } + { + const rule = r("RoundedRectangle", ["button", "background"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "primaryButtonDisabled"); + } + { + const rule = r("Graphics", ["button", "icon"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "primaryButtonTextDisabled"); + } + { + const rule = r("Label", ["button"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "primaryButtonTextDisabled"); + } + { + const rule = r("Graphics", ["button", "icon"]); + rule.setAll({ + forceInactive: true + }); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + { + const rule = r("Label", ["button"]); + setColor(rule, "fill", ic, "primaryButtonText"); + } + r("ConfirmButton").setAll({ + toggleKey: "active", + setStateOnChildren: true, + label: Label.new(this._root, { + text: language.translate("Confirm"), + forceHidden: true + }) + }); + { + const rule = r("RoundedRectangle", ["button", "background", "confirm"]).states.create("active", {}); + setColor(rule, "fill", ic, "negative"); + } + r("Label", ["button", "confirm"]).setAll({ + paddingTop: 0, + paddingBottom: 0, + paddingRight: 3, + paddingLeft: 5 + }); + r("Label", ["button", "confirm"]).states.create("default", { + stateAnimationDuration: 0 + }); + r("Label", ["button", "confirm"]).states.create("active", { + forceHidden: false, + stateAnimationDuration: 0 + }); + { + const rule = r("Graphics", ["icon", "confirm", "button"]); + rule.setAll({ + stateAnimationDuration: 0 + }); + rule.states.create("default", { + stateAnimationDuration: 0 + }); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + { + const rule = r("Graphics", ["icon", "confirm", "button"]).states.create("active", { + svgPath: "M -5 1 L 0 6 L 8 -5", + strokeWidth: 2 + }); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + { + const rule = r("Graphics", ["icon", "confirm", "button", "secondary"]).states.create("active", {}); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + { + const rule = r("RoundedRectangle", ["button", "background", "confirm", "secondary"]).states.create("active", { + fillOpacity: 1 + }); + setColor(rule, "fill", ic, "negative"); + } + { + const rule = r("RoundedRectangle", ["button", "background", "confirm", "secondary"]).states.create("hoverActive", { + fillOpacity: 1 + }); + setColor(rule, "fill", ic, "negative"); + } + r("Button", ["button", "confirm"]).states.create("hoverActive", {}); + r("Button", ["zoom"]).setAll({ + paddingTop: 18, + paddingBottom: 18, + paddingLeft: 12, + paddingRight: 12, + centerX: 46, + centerY: -10, + y: 0, + x: p100, + role: "button", + ariaLabel: language.translate("Zoom Out"), + layer: 30 + }); + { + const rule = r("RoundedRectangle", ["background", "button", "zoom"]); + rule.setAll({ + cornerRadiusBL: 40, + cornerRadiusBR: 40, + cornerRadiusTL: 40, + cornerRadiusTR: 40 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("RoundedRectangle", ["background", "button", "zoom"]).states.create("hover", {}); + setColor(rule, "fill", ic, "primaryButtonHover"); + } + { + const rule = r("RoundedRectangle", ["background", "button", "zoom"]).states.create("down", { stateAnimationDuration: 0 }); + setColor(rule, "fill", ic, "primaryButtonDown"); + } + { + const rule = r("Graphics", ["icon", "button", "zoom"]); + rule.setAll({ + crisp: true, + strokeOpacity: 0.7, + draw: (display) => { + display.moveTo(0, 0); + display.lineTo(12, 0); + } + }); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + r("Button", ["resize"]).setAll({ + paddingTop: 9, + paddingBottom: 9, + paddingLeft: 13, + paddingRight: 13, + draggable: true, + centerX: p50, + centerY: p50, + position: "absolute", + role: "slider", + ariaValueMin: "0", + ariaValueMax: "100", + ariaLabel: language.translate("Use up and down arrows to move selection") + }); + { + const rule = r("RoundedRectangle", ["background", "resize", "button"]); + rule.setAll({ + cornerRadiusBL: 40, + cornerRadiusBR: 40, + cornerRadiusTL: 40, + cornerRadiusTR: 40 + }); + setColor(rule, "fill", ic, "secondaryButton"); + setColor(rule, "stroke", ic, "secondaryButtonStroke"); + } + { + const rule = r("RoundedRectangle", ["background", "resize", "button"]).states.create("hover", {}); + setColor(rule, "fill", ic, "secondaryButtonHover"); + } + { + const rule = r("RoundedRectangle", ["background", "resize", "button"]).states.create("down", { stateAnimationDuration: 0 }); + setColor(rule, "fill", ic, "secondaryButtonDown"); + } + { + const rule = r("Graphics", ["resize", "button", "icon"]); + rule.setAll({ + interactive: false, + crisp: true, + strokeOpacity: 0.5, + draw: (display) => { + display.moveTo(0, 0.5); + display.lineTo(0, 12.5); + display.moveTo(4, 0.5); + display.lineTo(4, 12.5); + } + }); + setColor(rule, "stroke", ic, "secondaryButtonText"); + } + r("Button", ["resize", "vertical"]).setAll({ + rotation: 90, + cursorOverStyle: "ns-resize" + }); + r("Button", ["resize", "horizontal"]).setAll({ + cursorOverStyle: "ew-resize" + }); + r("Button", ["play"]).setAll({ + paddingTop: 13, + paddingBottom: 13, + paddingLeft: 14, + paddingRight: 14, + ariaLabel: language.translate("Play"), + toggleKey: "active" + }); + { + const rule = r("RoundedRectangle", ["play", "background"]); + rule.setAll({ + strokeOpacity: 0.5, + cornerRadiusBL: 100, + cornerRadiusBR: 100, + cornerRadiusTL: 100, + cornerRadiusTR: 100 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("Graphics", ["play", "icon"]); + rule.setAll({ + stateAnimationDuration: 0, + dx: 1, + draw: (display) => { + display.moveTo(0, -5); + display.lineTo(8, 0); + display.lineTo(0, 5); + display.lineTo(0, -5); + } + }); + setColor(rule, "fill", ic, "primaryButtonText"); + } + r("Graphics", ["play", "icon"]).states.create("default", { + stateAnimationDuration: 0 + }); + r("Graphics", ["play", "icon"]).states.create("active", { + stateAnimationDuration: 0, + draw: (display) => { + display.moveTo(-4, -5); + display.lineTo(-1, -5); + display.lineTo(-1, 5); + display.lineTo(-4, 5); + display.lineTo(-4, -5); + display.moveTo(4, -5); + display.lineTo(1, -5); + display.lineTo(1, 5); + display.lineTo(4, 5); + display.lineTo(4, -5); + } + }); + r("Button", ["switch"]).setAll({ + paddingTop: 4, + paddingBottom: 4, + paddingLeft: 4, + paddingRight: 4, + ariaLabel: language.translate("Press ENTER to toggle"), + toggleKey: "active", + width: 40, + height: 24, + layout: null + }); + { + const rule = r("RoundedRectangle", ["switch", "background"]); + rule.setAll({ + strokeOpacity: 0.5, + cornerRadiusBL: 100, + cornerRadiusBR: 100, + cornerRadiusTL: 100, + cornerRadiusTR: 100 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("Circle", ["switch", "icon"]); + rule.setAll({ + radius: 8, + centerY: 0, + centerX: 0, + dx: 0 + }); + setColor(rule, "fill", ic, "primaryButtonText"); + } + r("Graphics", ["switch", "icon"]).states.create("active", { + dx: 16 + }); + r("Scrollbar").setAll({ + start: 0, + end: 1, + layer: 30, + animationEasing: out(cubic) + }); + r("Scrollbar", ["vertical"]).setAll({ + marginRight: 13, + marginLeft: 13, + minWidth: 12, + height: p100 + }); + r("Scrollbar", ["horizontal"]).setAll({ + marginTop: 13, + marginBottom: 13, + minHeight: 12, + width: p100 + }); + this.rule("Button", ["scrollbar"]).setAll({ + exportable: false + }); + { + const rule = r("RoundedRectangle", ["scrollbar", "main", "background"]); + rule.setAll({ + cornerRadiusTL: 8, + cornerRadiusBL: 8, + cornerRadiusTR: 8, + cornerRadiusBR: 8, + fillOpacity: 0.8 + }); + setColor(rule, "fill", ic, "fill"); + } + { + const rule = r("RoundedRectangle", ["scrollbar", "thumb"]); + rule.setAll({ + role: "slider", + ariaLive: "polite", + position: "absolute", + draggable: true + }); + setColor(rule, "fill", ic, "secondaryButton"); + } + { + const rule = r("RoundedRectangle", ["scrollbar", "thumb"]).states.create("hover", {}); + setColor(rule, "fill", ic, "secondaryButtonHover"); + } + { + const rule = r("RoundedRectangle", ["scrollbar", "thumb"]).states.create("down", { stateAnimationDuration: 0 }); + setColor(rule, "fill", ic, "secondaryButtonDown"); + } + r("RoundedRectangle", ["scrollbar", "thumb", "vertical"]).setAll({ + x: p50, + width: p100, + centerX: p50, + ariaLabel: language.translate("Use up and down arrows to move selection") + }); + r("RoundedRectangle", ["scrollbar", "thumb", "horizontal"]).setAll({ + y: p50, + centerY: p50, + height: p100, + ariaLabel: language.translate("Use left and right arrows to move selection") + }); + { + const rule = r("PointedRectangle", ["axis", "tooltip", "background"]); + rule.setAll({ + cornerRadius: 0 + }); + setColor(rule, "fill", ic, "alternativeBackground"); + } + r("Label", ["axis", "tooltip"]).setAll({ + role: void 0 + }); + r("Label", ["axis", "tooltip", "y"]).setAll({ + textAlign: "right" + }); + r("Label", ["axis", "tooltip", "y", "opposite"]).setAll({ + textAlign: "left" + }); + r("Label", ["axis", "tooltip", "x"]).setAll({ + textAlign: "center" + }); + r("Tooltip", ["categoryaxis"]).setAll({ + labelText: "{category}" + }); + r("Star").setAll({ + spikes: 5, + innerRadius: 5, + radius: 10 + }); + r("Tooltip", ["stock"]).setAll({ + paddingTop: 6, + paddingBottom: 5, + paddingLeft: 7, + paddingRight: 7 + }); + r("Tooltip", ["indicator"]).setAll({ + forceHidden: true + }); + r("PointedRectangle", ["tooltip", "stock", "axis"]).setAll({ + pointerLength: 0, + pointerBaseWidth: 0, + cornerRadius: 3 + }); + r("Label", ["tooltip", "stock"]).setAll({ + fontSize: "0.8em" + }); + r("SpriteResizer").setAll({ + rotationStep: 10, + isMeasured: false + }); + { + const rule = r("Container", ["resizer", "grip"]); + rule.states.create("hover", {}); + } + { + const rule = r("RoundedRectangle", ["resizer", "grip"]); + rule.setAll({ + strokeOpacity: 0.7, + strokeWidth: 1, + fillOpacity: 1, + width: 12, + height: 12 + }); + setColor(rule, "fill", ic, "background"); + setColor(rule, "stroke", ic, "alternativeBackground"); + } + { + const rule = r("RoundedRectangle", ["resizer", "grip", "outline"]); + rule.setAll({ + strokeOpacity: 0, + fillOpacity: 0, + width: 20, + height: 20 + }); + rule.states.create("hover", { + fillOpacity: 0.3 + }); + setColor(rule, "fill", ic, "alternativeBackground"); + } + r("RoundedRectangle", ["resizer", "grip", "left"]).setAll({ + cornerRadiusBL: 0, + cornerRadiusBR: 0, + cornerRadiusTL: 0, + cornerRadiusTR: 0 + }); + r("RoundedRectangle", ["resizer", "grip", "right"]).setAll({ + cornerRadiusBL: 0, + cornerRadiusBR: 0, + cornerRadiusTL: 0, + cornerRadiusTR: 0 + }); + { + const rule = r("Rectangle", ["resizer", "rectangle"]); + rule.setAll({ + strokeDasharray: [2, 2], + strokeOpacity: 0.5, + strokeWidth: 1 + }); + setColor(rule, "stroke", ic, "alternativeBackground"); + } + r("Graphics", ["button", "plus", "icon"]).setAll({ + x: p50, + y: p50, + draw: (display) => { + display.moveTo(-4, 0); + display.lineTo(4, 0); + display.moveTo(0, -4); + display.lineTo(0, 4); + } + }); + r("Graphics", ["button", "minus", "icon"]).setAll({ + x: p50, + y: p50, + draw: (display) => { + display.moveTo(-4, 0); + display.lineTo(4, 0); + } + }); + r("Graphics", ["button", "home", "icon"]).setAll({ + x: p50, + y: p50, + svgPath: "M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1" + }); + r("Button", ["zoomtools"]).setAll({ + marginTop: 1, + marginBottom: 2 + }); + r("ZoomTools").setAll({ + x: p100, + centerX: p100, + y: p100, + centerY: p100, + paddingRight: 10, + paddingBottom: 10 + }); + r("ProgressPie").setAll({ + radius: p100, + width: 50, + height: 50, + centerX: percent(-50), + centerY: percent(-50), + innerRadius: percent(85), + numberFormat: "#." + }); + { + const rule = r("Label", ["progresspie"]); + rule.setAll({ + centerX: p50, + centerY: p50, + fontSize: "0.75em" + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("Circle", ["progresspie"]); + rule.setAll({ + fillOpacity: 0.5 + }); + setColor(rule, "fill", ic, "background"); + } + { + const rule = r("Slice", ["progresspie"]); + rule.setAll({ + startAngle: -90 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("Slice", ["progresspie", "background"]); + rule.setAll({ + fillOpacity: 0.2, + arc: 360 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + r("EditableLabel", ["numericstepper"]).setAll({ + y: p50, + centerY: p50, + multiLine: false, + marginRight: 2 + }); + { + const rule = r("Container", ["numericstepper", "buttons"]); + rule.setAll({ + layout: this._root.verticalLayout, + centerY: p50, + y: p50, + marginRight: 10, + opacity: 0 + }); + rule.states.create("active", { + opacity: 1 + }); + rule.states.create("default", { + opacity: 0 + }); + } + { + const rule = r("Triangle", ["numericstepper"]); + rule.setAll({ + width: 17, + height: 11, + marginTop: 3, + marginBottom: 3, + strokeWidth: 5, + strokeOpacity: 0, + cursorOverStyle: "pointer" + }); + setColor(rule, "fill", ic, "secondaryButton"); + } + { + const rule = r("Triangle", ["downbutton"]); + rule.setAll({ + rotation: 180 + }); + } + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Matrix.js + var Matrix = class { + constructor(a = 1, b = 0, c = 0, d = 1, tx = 0, ty = 0) { + this.a = a; + this.b = b; + this.c = c; + this.d = d; + this.tx = tx; + this.ty = ty; + } + /** + * Sets the matrix based on all the available properties + */ + setTransform(x2, y2, pivotX, pivotY, rotation, scale = 1) { + this.a = Math.cos(rotation) * scale; + this.b = Math.sin(rotation) * scale; + this.c = -Math.sin(rotation) * scale; + this.d = Math.cos(rotation) * scale; + this.tx = x2 - (pivotX * this.a + pivotY * this.c); + this.ty = y2 - (pivotX * this.b + pivotY * this.d); + } + /** + * Get a new position with the current transformation applied. + * Can be used to go from a child's coordinate space to the world coordinate space. (e.g. rendering) + */ + apply(origin) { + return { + x: this.a * origin.x + this.c * origin.y + this.tx, + y: this.b * origin.x + this.d * origin.y + this.ty + }; + } + /** + * Get a new position with the inverse of the current transformation applied. + * Can be used to go from the world coordinate space to a child's coordinate space. (e.g. input) + */ + applyInverse(origin) { + const id = 1 / (this.a * this.d + this.c * -this.b); + return { + x: this.d * id * origin.x + -this.c * id * origin.y + (this.ty * this.c - this.tx * this.d) * id, + y: this.a * id * origin.y + -this.b * id * origin.x + (-this.ty * this.a + this.tx * this.b) * id + }; + } + /** + * Appends the given Matrix to this Matrix. + */ + append(matrix) { + const a1 = this.a; + const b12 = this.b; + const c1 = this.c; + const d1 = this.d; + this.a = matrix.a * a1 + matrix.b * c1; + this.b = matrix.a * b12 + matrix.b * d1; + this.c = matrix.c * a1 + matrix.d * c1; + this.d = matrix.c * b12 + matrix.d * d1; + this.tx = matrix.tx * a1 + matrix.ty * c1 + this.tx; + this.ty = matrix.tx * b12 + matrix.ty * d1 + this.ty; + } + /** + * Prepends the given Matrix to this Matrix. + */ + prepend(matrix) { + const tx1 = this.tx; + if (matrix.a !== 1 || matrix.b !== 0 || matrix.c !== 0 || matrix.d !== 1) { + const a1 = this.a; + const c1 = this.c; + this.a = a1 * matrix.a + this.b * matrix.c; + this.b = a1 * matrix.b + this.b * matrix.d; + this.c = c1 * matrix.a + this.d * matrix.c; + this.d = c1 * matrix.b + this.d * matrix.d; + } + this.tx = tx1 * matrix.a + this.ty * matrix.c + matrix.tx; + this.ty = tx1 * matrix.b + this.ty * matrix.d + matrix.ty; + } + /** + * Copies the other matrix's properties into this matrix + */ + copyFrom(matrix) { + this.a = matrix.a; + this.b = matrix.b; + this.c = matrix.c; + this.d = matrix.d; + this.tx = matrix.tx; + this.ty = matrix.ty; + } + }; + + // node_modules/svg-arc-to-cubic-bezier/modules/index.js + var _slicedToArray = /* @__PURE__ */ (function() { + function sliceIterator(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = void 0; + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"]) _i["return"](); + } finally { + if (_d) throw _e; + } + } + return _arr; + } + return function(arr, i) { + if (Array.isArray(arr)) { + return arr; + } else if (Symbol.iterator in Object(arr)) { + return sliceIterator(arr, i); + } else { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); + } + }; + })(); + var TAU = Math.PI * 2; + var mapToEllipse = function mapToEllipse2(_ref, rx, ry, cosphi, sinphi, centerx, centery) { + var x2 = _ref.x, y2 = _ref.y; + x2 *= rx; + y2 *= ry; + var xp = cosphi * x2 - sinphi * y2; + var yp = sinphi * x2 + cosphi * y2; + return { + x: xp + centerx, + y: yp + centery + }; + }; + var approxUnitArc = function approxUnitArc2(ang1, ang2) { + var a = ang2 === 1.5707963267948966 ? 0.551915024494 : ang2 === -1.5707963267948966 ? -0.551915024494 : 4 / 3 * Math.tan(ang2 / 4); + var x1 = Math.cos(ang1); + var y1 = Math.sin(ang1); + var x2 = Math.cos(ang1 + ang2); + var y2 = Math.sin(ang1 + ang2); + return [{ + x: x1 - y1 * a, + y: y1 + x1 * a + }, { + x: x2 + y2 * a, + y: y2 - x2 * a + }, { + x: x2, + y: y2 + }]; + }; + var vectorAngle = function vectorAngle2(ux, uy, vx, vy) { + var sign = ux * vy - uy * vx < 0 ? -1 : 1; + var dot = ux * vx + uy * vy; + if (dot > 1) { + dot = 1; + } + if (dot < -1) { + dot = -1; + } + return sign * Math.acos(dot); + }; + var getArcCenter = function getArcCenter2(px, py, cx, cy, rx, ry, largeArcFlag, sweepFlag, sinphi, cosphi, pxp, pyp) { + var rxsq = Math.pow(rx, 2); + var rysq = Math.pow(ry, 2); + var pxpsq = Math.pow(pxp, 2); + var pypsq = Math.pow(pyp, 2); + var radicant = rxsq * rysq - rxsq * pypsq - rysq * pxpsq; + if (radicant < 0) { + radicant = 0; + } + radicant /= rxsq * pypsq + rysq * pxpsq; + radicant = Math.sqrt(radicant) * (largeArcFlag === sweepFlag ? -1 : 1); + var centerxp = radicant * rx / ry * pyp; + var centeryp = radicant * -ry / rx * pxp; + var centerx = cosphi * centerxp - sinphi * centeryp + (px + cx) / 2; + var centery = sinphi * centerxp + cosphi * centeryp + (py + cy) / 2; + var vx1 = (pxp - centerxp) / rx; + var vy1 = (pyp - centeryp) / ry; + var vx2 = (-pxp - centerxp) / rx; + var vy2 = (-pyp - centeryp) / ry; + var ang1 = vectorAngle(1, 0, vx1, vy1); + var ang2 = vectorAngle(vx1, vy1, vx2, vy2); + if (sweepFlag === 0 && ang2 > 0) { + ang2 -= TAU; + } + if (sweepFlag === 1 && ang2 < 0) { + ang2 += TAU; + } + return [centerx, centery, ang1, ang2]; + }; + var arcToBezier = function arcToBezier2(_ref2) { + var px = _ref2.px, py = _ref2.py, cx = _ref2.cx, cy = _ref2.cy, rx = _ref2.rx, ry = _ref2.ry, _ref2$xAxisRotation = _ref2.xAxisRotation, xAxisRotation = _ref2$xAxisRotation === void 0 ? 0 : _ref2$xAxisRotation, _ref2$largeArcFlag = _ref2.largeArcFlag, largeArcFlag = _ref2$largeArcFlag === void 0 ? 0 : _ref2$largeArcFlag, _ref2$sweepFlag = _ref2.sweepFlag, sweepFlag = _ref2$sweepFlag === void 0 ? 0 : _ref2$sweepFlag; + var curves = []; + if (rx === 0 || ry === 0) { + return []; + } + var sinphi = Math.sin(xAxisRotation * TAU / 360); + var cosphi = Math.cos(xAxisRotation * TAU / 360); + var pxp = cosphi * (px - cx) / 2 + sinphi * (py - cy) / 2; + var pyp = -sinphi * (px - cx) / 2 + cosphi * (py - cy) / 2; + if (pxp === 0 && pyp === 0) { + return []; + } + rx = Math.abs(rx); + ry = Math.abs(ry); + var lambda = Math.pow(pxp, 2) / Math.pow(rx, 2) + Math.pow(pyp, 2) / Math.pow(ry, 2); + if (lambda > 1) { + rx *= Math.sqrt(lambda); + ry *= Math.sqrt(lambda); + } + var _getArcCenter = getArcCenter(px, py, cx, cy, rx, ry, largeArcFlag, sweepFlag, sinphi, cosphi, pxp, pyp), _getArcCenter2 = _slicedToArray(_getArcCenter, 4), centerx = _getArcCenter2[0], centery = _getArcCenter2[1], ang1 = _getArcCenter2[2], ang2 = _getArcCenter2[3]; + var ratio = Math.abs(ang2) / (TAU / 4); + if (Math.abs(1 - ratio) < 1e-7) { + ratio = 1; + } + var segments = Math.max(Math.ceil(ratio), 1); + ang2 /= segments; + for (var i = 0; i < segments; i++) { + curves.push(approxUnitArc(ang1, ang2)); + ang1 += ang2; + } + return curves.map(function(curve) { + var _mapToEllipse = mapToEllipse(curve[0], rx, ry, cosphi, sinphi, centerx, centery), x1 = _mapToEllipse.x, y1 = _mapToEllipse.y; + var _mapToEllipse2 = mapToEllipse(curve[1], rx, ry, cosphi, sinphi, centerx, centery), x2 = _mapToEllipse2.x, y2 = _mapToEllipse2.y; + var _mapToEllipse3 = mapToEllipse(curve[2], rx, ry, cosphi, sinphi, centerx, centery), x3 = _mapToEllipse3.x, y3 = _mapToEllipse3.y; + return { x1, y1, x2, y2, x: x3, y: y3 }; + }); + }; + var modules_default = arcToBezier; + + // node_modules/@amcharts/amcharts5/.internal/core/render/backend/CanvasRenderer.js + function checkArgs(name, actual, expected) { + if (actual !== expected) { + throw new Error("Required " + expected + " arguments for " + name + " but got " + actual); + } + } + function checkMinArgs(name, actual, expected) { + if (actual < expected) { + throw new Error("Required at least " + expected + " arguments for " + name + " but got " + actual); + } + } + function checkEvenArgs(name, actual, expected) { + checkMinArgs(name, actual, expected); + if (actual % expected !== 0) { + throw new Error("Arguments for " + name + " must be in pairs of " + expected); + } + } + function splitArcFlags(args) { + for (let i = 0; i < args.length; i += 7) { + let index = i + 3; + let flag = args[index]; + if (flag.length > 1) { + const a = /^([01])([01])(.*)$/.exec(flag); + if (a !== null) { + args.splice(index, 0, a[1]); + ++index; + args.splice(index, 0, a[2]); + ++index; + if (a[3].length > 0) { + args[index] = a[3]; + } else { + args.splice(index, 1); + } + } + } + ++index; + flag = args[index]; + if (flag.length > 1) { + const a = /^([01])(.+)$/.exec(flag); + if (a !== null) { + args.splice(index, 0, a[1]); + ++index; + args[index] = a[2]; + } + } + } + } + function assertBinary(value) { + if (value === 0 || value === 1) { + return value; + } else { + throw new Error("Flag must be 0 or 1"); + } + } + function distributeId(id) { + const rgb = [0, 0, 0]; + for (let i = 0; i < 24; i++) { + rgb[i % 3] <<= 1; + rgb[i % 3] |= id & 1; + id >>= 1; + } + return (rgb[0] | 0) + (rgb[1] << 8) + (rgb[2] << 16); + } + function eachTargets(hitTarget, f) { + for (; ; ) { + if (hitTarget.interactive) { + if (!f(hitTarget)) { + break; + } + } + if (hitTarget._parent) { + hitTarget = hitTarget._parent; + } else { + break; + } + } + } + function onPointerEvent(element, name, f) { + return addEventListener(element, getRendererEvent(name), (event) => { + const target = getEventTarget(event); + let touches = event.touches; + if (touches) { + if (touches.length == 0) { + touches = event.changedTouches; + } + f(copy(touches), target); + } else { + f([event], target); + } + }); + } + function isTainted(image) { + const canvas = document.createElement("canvas"); + canvas.width = 1; + canvas.height = 1; + const context = canvas.getContext("2d", { willReadFrequently: true }); + context.drawImage(image, 0, 0, 1, 1); + try { + context.getImageData(0, 0, 1, 1); + return false; + } catch (err) { + console.warn('Image "' + image.src + '" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'); + return true; + } + } + function clearCanvas(view) { + view.width = 0; + view.height = 0; + view.style.width = "0px"; + view.style.height = "0px"; + } + function crisp(x2) { + return Math.floor(x2) + 0.5; + } + var CanvasPivot = class { + constructor() { + this._x = 0; + this._y = 0; + } + get x() { + return this._x; + } + get y() { + return this._y; + } + set x(value) { + this._x = value; + } + set y(value) { + this._y = value; + } + }; + var CanvasDisplayObject = class extends DisposerClass { + constructor(renderer) { + super(); + this.mask = null; + this.visible = true; + this.exportable = true; + this.interactive = false; + this.inactive = null; + this.wheelable = false; + this.cancelTouch = false; + this.isMeasured = false; + this.buttonMode = false; + this.alpha = 1; + this.compoundAlpha = 1; + this.angle = 0; + this.scale = 1; + this.x = 0; + this.y = 0; + this.crisp = false; + this.pivot = new CanvasPivot(); + this._localMatrix = new Matrix(); + this._matrix = new Matrix(); + this._uMatrix = new Matrix(); + this._renderer = renderer; + } + subStatus(status) { + return { + inactive: this.inactive == null ? status.inactive : this.inactive, + layer: this._layer || status.layer + }; + } + _dispose() { + this._renderer._removeObject(this); + this.getLayer().dirty = true; + } + getCanvas() { + return this.getLayer().view; + } + getLayer() { + let self = this; + for (; ; ) { + if (self._layer) { + return self._layer; + } else if (self._parent) { + self = self._parent; + } else { + return this._renderer.defaultLayer; + } + } + } + setLayer(order, margin) { + if (order == null) { + this._layer = void 0; + } else { + const visible = true; + this._layer = this._renderer.getLayer(order, visible); + this._layer.visible = visible; + this._layer.margin = margin; + if (margin) { + setInteractive(this._layer.view, false); + } + this._renderer._ghostLayer.setMargin(this._renderer.layers); + if (this._parent) { + this._parent.registerChildLayer(this._layer); + } + this._layer.dirty = true; + this._renderer.resizeLayer(this._layer); + this._renderer.resizeGhost(); + } + } + markDirtyLayer() { + this.getLayer().dirty = true; + } + clear() { + this.invalidateBounds(); + } + invalidateBounds() { + this._localBounds = void 0; + } + _addBounds(_bounds) { + } + _getColorId() { + if (this._colorId === void 0) { + this._colorId = this._renderer.paintId(this); + } + return this._colorId; + } + _isInteractive(status) { + return !status.inactive && (this.interactive || this._renderer._forceInteractive > 0); + } + _isInteractiveMask(status) { + return this._isInteractive(status); + } + contains(child) { + for (; ; ) { + if (child === this) { + return true; + } else if (child._parent) { + child = child._parent; + } else { + return false; + } + } + } + toGlobal(point) { + return this._matrix.apply(point); + } + toLocal(point) { + return this._matrix.applyInverse(point); + } + getLocalMatrix() { + this._uMatrix.setTransform(0, 0, this.pivot.x, this.pivot.y, this.angle * Math.PI / 180, this.scale); + return this._uMatrix; + } + getLocalBounds() { + if (!this._localBounds) { + const bn = 1e7; + this._localBounds = { + left: bn, + top: bn, + right: -bn, + bottom: -bn + }; + this._addBounds(this._localBounds); + } + return this._localBounds; + } + getAdjustedBounds(bounds) { + this._setMatrix(); + const matrix = this.getLocalMatrix(); + const p02 = matrix.apply({ x: bounds.left, y: bounds.top }); + const p1 = matrix.apply({ x: bounds.right, y: bounds.top }); + const p2 = matrix.apply({ x: bounds.right, y: bounds.bottom }); + const p3 = matrix.apply({ x: bounds.left, y: bounds.bottom }); + return { + left: Math.min(p02.x, p1.x, p2.x, p3.x), + top: Math.min(p02.y, p1.y, p2.y, p3.y), + right: Math.max(p02.x, p1.x, p2.x, p3.x), + bottom: Math.max(p02.y, p1.y, p2.y, p3.y) + }; + } + on(key, callback, context) { + if (this.interactive) { + return this._renderer._addEvent(this, key, callback, context); + } else { + return new Disposer(() => { + }); + } + } + _setMatrix() { + this._localMatrix.setTransform( + this.x, + this.y, + this.pivot.x, + this.pivot.y, + // Converts degrees to radians + this.angle * Math.PI / 180, + this.scale + ); + this._matrix.copyFrom(this._localMatrix); + if (this._parent) { + this._matrix.prepend(this._parent._matrix); + } + } + _transform(context, resolution) { + const m = this._matrix; + let tx = m.tx * resolution; + let ty = m.ty * resolution; + if (this.crisp) { + tx = crisp(tx); + ty = crisp(ty); + } + context.setTransform(m.a * resolution, m.b * resolution, m.c * resolution, m.d * resolution, tx, ty); + } + _transformMargin(context, resolution, margin) { + const m = this._matrix; + context.setTransform(m.a * resolution, m.b * resolution, m.c * resolution, m.d * resolution, (m.tx + margin.left) * resolution, (m.ty + margin.top) * resolution); + } + _transformLayer(context, resolution, layer) { + if (layer.margin) { + this._transformMargin(context, layer.scale || resolution, layer.margin); + } else { + this._transform(context, layer.scale || resolution); + } + } + render(status, targetGhostLayer = 0) { + if (this.visible && (this.exportable !== false || !this._renderer._omitTainted)) { + this._setMatrix(); + const subStatus = this.subStatus(status); + const resolution = this._renderer.resolution; + const layers = this._renderer.layers; + const ghostLayer = this._renderer._ghostLayer; + const ghostContext = ghostLayer.context; + const mask = this.mask; + if (mask) { + mask._setMatrix(); + } + each(layers, (layer) => { + if (layer) { + const context = layer.context; + context.save(); + if (mask) { + mask._transformLayer(context, resolution, layer); + mask._runPath(context); + context.clip(); + } + context.globalAlpha = this.compoundAlpha * this.alpha; + this._transformLayer(context, resolution, layer); + if (this.filter) { + context.filter = this.filter; + } + } + }); + ghostContext.save(); + if (mask && this._isInteractiveMask(subStatus)) { + mask._transformMargin(ghostContext, resolution, ghostLayer.margin); + mask._runPath(ghostContext); + ghostContext.clip(); + } + this._transformMargin(ghostContext, resolution, ghostLayer.margin); + if (subStatus.layer.order > 0 && !targetGhostLayer) { + move(this._renderer._deferredGhostLayers, subStatus.layer.order); + } + this._render(subStatus, targetGhostLayer); + ghostContext.restore(); + each(layers, (layer) => { + if (layer) { + layer.context.restore(); + } + }); + } + } + _render(status, _targetGhostLayer = 0) { + if (this.exportable === false) { + status.layer.tainted = true; + } + } + _ghostOnly(targetGhostLayer = 0) { + return targetGhostLayer > 0 ? true : false; + } + _drawGhost(status, targetGhostLayer = 0) { + const interactive = this._isInteractive(status); + const order = status.layer.order || 0; + return interactive && (order == 0 && !this._ghostOnly(targetGhostLayer) || order == targetGhostLayer) ? true : false; + } + hovering() { + return this._renderer._hovering.has(this); + } + dragging() { + return this._renderer._dragging.some((x2) => x2.value === this); + } + shouldCancelTouch() { + const renderer = this._renderer; + if (renderer.tapToActivate && !renderer._touchActive) { + return false; + } + if (this.cancelTouch) { + return true; + } else if (this._parent) { + return this._parent.shouldCancelTouch(); + } + return false; + } + }; + var CanvasContainer = class extends CanvasDisplayObject { + constructor() { + super(...arguments); + this.interactiveChildren = true; + this._children = []; + } + _isInteractiveMask(status) { + return this.interactiveChildren || super._isInteractiveMask(status); + } + addChild(child) { + child._parent = this; + this._children.push(child); + if (child._layer) { + this.registerChildLayer(child._layer); + } + } + addChildAt(child, index) { + child._parent = this; + this._children.splice(index, 0, child); + if (child._layer) { + this.registerChildLayer(child._layer); + } + } + removeChild(child) { + child._parent = void 0; + removeFirst(this._children, child); + } + _render(status, targetGhostLayer) { + super._render(status); + const renderer = this._renderer; + if (this.interactive && this.interactiveChildren) { + ++renderer._forceInteractive; + } + each(this._children, (child) => { + child.compoundAlpha = this.compoundAlpha * this.alpha; + child.render(status, targetGhostLayer); + }); + if (this.interactive && this.interactiveChildren) { + --renderer._forceInteractive; + } + } + registerChildLayer(layer) { + if (!this._childLayers) { + this._childLayers = []; + } + pushOne(this._childLayers, layer); + if (this._parent) { + this._parent.registerChildLayer(layer); + } + } + markDirtyLayer(deep = false) { + super.markDirtyLayer(); + if (deep && this._childLayers) { + each(this._childLayers, (layer) => layer.dirty = true); + } + } + _dispose() { + super._dispose(); + if (this._childLayers) { + each(this._childLayers, (layer) => { + layer.dirty = true; + }); + } + } + }; + function setPoint(bounds, point) { + bounds.left = Math.min(bounds.left, point.x); + bounds.top = Math.min(bounds.top, point.y); + bounds.right = Math.max(bounds.right, point.x); + bounds.bottom = Math.max(bounds.bottom, point.y); + } + var Op = class { + colorize(_context, _forceColor) { + } + colorizeGhost(context, forceColor) { + this.colorize(context, forceColor); + } + path(_context) { + } + pathGhost(context) { + this.path(context); + } + addBounds(_bounds) { + } + }; + var BeginPath = class extends Op { + colorize(context, _forceColor) { + context.beginPath(); + } + }; + var BeginFill = class extends Op { + constructor(color2) { + super(); + this.color = color2; + } + colorize(context, forceColor) { + if (forceColor !== void 0) { + context.fillStyle = forceColor; + } else { + context.fillStyle = this.color; + } + } + }; + var EndFill = class extends Op { + constructor(clearShadow) { + super(); + this.clearShadow = clearShadow; + } + colorize(context, _forceColor) { + context.fill(); + if (this.clearShadow) { + context.shadowColor = ""; + context.shadowBlur = 0; + context.shadowOffsetX = 0; + context.shadowOffsetY = 0; + } + } + }; + var EndStroke = class extends Op { + colorize(context, _forceColor) { + context.stroke(); + } + }; + var LineStyle = class extends Op { + constructor(width, color2, lineJoin, lineCap) { + super(); + this.width = width; + this.color = color2; + this.lineJoin = lineJoin; + this.lineCap = lineCap; + } + colorize(context, forceColor) { + if (forceColor !== void 0) { + context.strokeStyle = forceColor; + } else { + context.strokeStyle = this.color; + } + context.lineWidth = this.width; + if (this.lineJoin) { + context.lineJoin = this.lineJoin; + } + if (this.lineCap) { + context.lineCap = this.lineCap; + } + } + }; + var LineDash = class extends Op { + constructor(dash) { + super(); + this.dash = dash; + } + colorize(context, _forceColor) { + context.setLineDash(this.dash); + } + }; + var LineDashOffset = class extends Op { + constructor(dashOffset) { + super(); + this.dashOffset = dashOffset; + } + colorize(context, _forceColor) { + context.lineDashOffset = this.dashOffset; + } + }; + var DrawRect = class extends Op { + constructor(x2, y2, width, height) { + super(); + this.x = x2; + this.y = y2; + this.width = width; + this.height = height; + } + path(context) { + context.rect(this.x, this.y, this.width, this.height); + } + addBounds(bounds) { + const l = this.x; + const t = this.y; + const r = l + this.width; + const b = t + this.height; + setPoint(bounds, { x: l, y: t }); + setPoint(bounds, { x: r, y: t }); + setPoint(bounds, { x: l, y: b }); + setPoint(bounds, { x: r, y: b }); + } + }; + var DrawCircle = class extends Op { + constructor(x2, y2, radius) { + super(); + this.x = x2; + this.y = y2; + this.radius = radius; + } + path(context) { + context.moveTo(this.x + this.radius, this.y); + context.arc(this.x, this.y, this.radius, 0, 2 * Math.PI); + } + // TODO handle skewing and rotation + addBounds(bounds) { + setPoint(bounds, { x: this.x - this.radius, y: this.y - this.radius }); + setPoint(bounds, { x: this.x + this.radius, y: this.y + this.radius }); + } + }; + var DrawEllipse = class extends Op { + constructor(x2, y2, radiusX, radiusY) { + super(); + this.x = x2; + this.y = y2; + this.radiusX = radiusX; + this.radiusY = radiusY; + } + path(context) { + context.ellipse(0, 0, this.radiusX, this.radiusY, 0, 0, Math.PI * 2); + } + // TODO handle skewing and rotation + addBounds(bounds) { + setPoint(bounds, { x: this.x - this.radiusX, y: this.y - this.radiusY }); + setPoint(bounds, { x: this.x + this.radiusX, y: this.y + this.radiusY }); + } + }; + var Arc = class extends Op { + constructor(cx, cy, radius, startAngle, endAngle, anticlockwise) { + super(); + this.cx = cx; + this.cy = cy; + this.radius = radius; + this.startAngle = startAngle; + this.endAngle = endAngle; + this.anticlockwise = anticlockwise; + } + path(context) { + if (this.radius > 0) { + context.arc(this.cx, this.cy, this.radius, this.startAngle, this.endAngle, this.anticlockwise); + } + } + addBounds(bounds) { + let arcBounds = getArcBounds(this.cx, this.cy, this.startAngle * DEGREES, this.endAngle * DEGREES, this.radius); + setPoint(bounds, { x: arcBounds.left, y: arcBounds.top }); + setPoint(bounds, { x: arcBounds.right, y: arcBounds.bottom }); + } + }; + var ArcTo = class extends Op { + constructor(x1, y1, x2, y2, radius) { + super(); + this.x1 = x1; + this.y1 = y1; + this.x2 = x2; + this.y2 = y2; + this.radius = radius; + } + path(context) { + if (this.radius > 0) { + context.arcTo(this.x1, this.y1, this.x2, this.y2, this.radius); + } + } + // TODO: add points + addBounds(_bounds) { + } + }; + var LineTo = class extends Op { + constructor(x2, y2) { + super(); + this.x = x2; + this.y = y2; + } + path(context) { + context.lineTo(this.x, this.y); + } + addBounds(bounds) { + setPoint(bounds, { x: this.x, y: this.y }); + } + }; + var MoveTo = class extends Op { + constructor(x2, y2) { + super(); + this.x = x2; + this.y = y2; + } + path(context) { + context.moveTo(this.x, this.y); + } + addBounds(bounds) { + setPoint(bounds, { x: this.x, y: this.y }); + } + }; + var ClosePath = class extends Op { + path(context) { + context.closePath(); + } + }; + var BezierCurveTo = class extends Op { + constructor(cpX, cpY, cpX2, cpY2, toX, toY) { + super(); + this.cpX = cpX; + this.cpY = cpY; + this.cpX2 = cpX2; + this.cpY2 = cpY2; + this.toX = toX; + this.toY = toY; + } + path(context) { + context.bezierCurveTo(this.cpX, this.cpY, this.cpX2, this.cpY2, this.toX, this.toY); + } + // TODO: OK? + addBounds(bounds) { + setPoint(bounds, { x: this.cpX, y: this.cpY }); + setPoint(bounds, { x: this.cpX2, y: this.cpY2 }); + setPoint(bounds, { x: this.toX, y: this.toY }); + } + }; + var QuadraticCurveTo = class extends Op { + constructor(cpX, cpY, toX, toY) { + super(); + this.cpX = cpX; + this.cpY = cpY; + this.toX = toX; + this.toY = toY; + } + path(context) { + context.quadraticCurveTo(this.cpX, this.cpY, this.toX, this.toY); + } + // TODO: OK? + addBounds(bounds) { + setPoint(bounds, { x: this.cpX, y: this.cpY }); + setPoint(bounds, { x: this.toX, y: this.toY }); + } + }; + var Shadow = class extends Op { + constructor(color2, blur2, offsetX, offsetY, opacity) { + super(); + this.color = color2; + this.blur = blur2; + this.offsetX = offsetX; + this.offsetY = offsetY; + this.opacity = opacity; + } + colorize(context, _forceColor) { + if (this.opacity) { + context.fillStyle = this.color; + } + context.shadowColor = this.color; + context.shadowBlur = this.blur; + context.shadowOffsetX = this.offsetX; + context.shadowOffsetY = this.offsetY; + } + colorizeGhost(_context, _forceColor) { + } + }; + var GraphicsImage = class extends Op { + constructor(image, width, height, x2, y2) { + super(); + this.image = image; + this.width = width; + this.height = height; + this.x = x2; + this.y = y2; + } + path(context) { + context.drawImage(this.image, this.x, this.y, this.width, this.height); + } + // TODO: OK? + addBounds(bounds) { + setPoint(bounds, { x: this.x, y: this.y }); + setPoint(bounds, { x: this.width, y: this.height }); + } + }; + var CanvasGraphics = class extends CanvasDisplayObject { + constructor() { + super(...arguments); + this._operations = []; + this.blendMode = BlendMode.NORMAL; + this._hasShadows = false; + } + clear() { + super.clear(); + this._operations.length = 0; + } + _pushOp(op) { + this._operations.push(op); + } + beginFill(color2, alpha = 1) { + this._fillAlpha = alpha; + if (color2) { + if (color2 instanceof Color) { + this._pushOp(new BeginFill(color2.toCSS(alpha))); + } else { + this.isMeasured = true; + this._pushOp(new BeginFill(color2)); + } + } else { + this._pushOp(new BeginFill("rgba(0, 0, 0, " + alpha + ")")); + } + } + endFill() { + this._pushOp(new EndFill(this._hasShadows)); + } + endStroke() { + this._pushOp(new EndStroke()); + } + beginPath() { + this._pushOp(new BeginPath()); + } + lineStyle(width = 0, color2, alpha = 1, lineJoin, lineCap) { + this._strokeAlpha = alpha; + if (color2) { + if (color2 instanceof Color) { + this._pushOp(new LineStyle(width, color2.toCSS(alpha), lineJoin, lineCap)); + } else { + this._pushOp(new LineStyle(width, color2, lineJoin, lineCap)); + } + } else { + this._pushOp(new LineStyle(width, "rgba(0, 0, 0, " + alpha + ")", lineJoin, lineCap)); + } + } + setLineDash(dash) { + this._pushOp(new LineDash(dash ? dash : [])); + } + setLineDashOffset(dashOffset = 0) { + this._pushOp(new LineDashOffset(dashOffset)); + } + drawRect(x2, y2, width, height) { + this._pushOp(new DrawRect(x2, y2, width, height)); + } + drawCircle(x2, y2, radius) { + this._pushOp(new DrawCircle(x2, y2, radius)); + } + drawEllipse(x2, y2, radiusX, radiusY) { + this._pushOp(new DrawEllipse(x2, y2, radiusX, radiusY)); + } + arc(cx, cy, radius, startAngle, endAngle, anticlockwise = false) { + this._pushOp(new Arc(cx, cy, radius, startAngle, endAngle, anticlockwise)); + } + arcTo(x1, y1, x2, y2, radius) { + this._pushOp(new ArcTo(x1, y1, x2, y2, radius)); + } + lineTo(x2, y2) { + this._pushOp(new LineTo(x2, y2)); + } + moveTo(x2, y2) { + this._pushOp(new MoveTo(x2, y2)); + } + bezierCurveTo(cpX, cpY, cpX2, cpY2, toX, toY) { + this._pushOp(new BezierCurveTo(cpX, cpY, cpX2, cpY2, toX, toY)); + } + quadraticCurveTo(cpX, cpY, toX, toY) { + this._pushOp(new QuadraticCurveTo(cpX, cpY, toX, toY)); + } + closePath() { + this._pushOp(new ClosePath()); + } + shadow(color2, blur2 = 0, offsetX = 0, offsetY = 0, opacity) { + this._hasShadows = true; + this._pushOp(new Shadow(opacity ? color2.toCSS(opacity) : color2.toCSS(this._fillAlpha || this._strokeAlpha), blur2, offsetX, offsetY)); + } + image(image, width, height, x2, y2) { + this._pushOp(new GraphicsImage(image, width, height, x2, y2)); + } + // https://svgwg.org/svg2-draft/paths.html#DProperty + // TODO better error checking + svgPath(path2) { + let x2 = 0; + let y2 = 0; + let cpx = null; + let cpy = null; + let qcpx = null; + let qcpy = null; + const SEGMENTS_REGEXP = /([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g; + const ARGS_REGEXP = /[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g; + const length = this._operations.length; + try { + let match; + while ((match = SEGMENTS_REGEXP.exec(path2)) !== null) { + const name = match[1]; + const rest = match[2]; + const args = []; + while ((match = ARGS_REGEXP.exec(rest)) !== null) { + args.push(match[1]); + } + if (name !== "S" && name !== "s" && name !== "C" && name !== "c") { + cpx = null; + cpy = null; + } + if (name !== "Q" && name !== "q" && name !== "T" && name !== "t") { + qcpx = null; + qcpy = null; + } + switch (name) { + case "M": + checkEvenArgs(name, args.length, 2); + x2 = +args[0]; + y2 = +args[1]; + this.moveTo(x2, y2); + for (let i = 2; i < args.length; i += 2) { + x2 = +args[i]; + y2 = +args[i + 1]; + this.lineTo(x2, y2); + } + break; + case "m": + checkEvenArgs(name, args.length, 2); + x2 += +args[0]; + y2 += +args[1]; + this.moveTo(x2, y2); + for (let i = 2; i < args.length; i += 2) { + x2 += +args[i]; + y2 += +args[i + 1]; + this.lineTo(x2, y2); + } + break; + case "L": + checkEvenArgs(name, args.length, 2); + for (let i = 0; i < args.length; i += 2) { + x2 = +args[i]; + y2 = +args[i + 1]; + this.lineTo(x2, y2); + } + break; + case "l": + checkEvenArgs(name, args.length, 2); + for (let i = 0; i < args.length; i += 2) { + x2 += +args[i]; + y2 += +args[i + 1]; + this.lineTo(x2, y2); + } + break; + case "H": + checkMinArgs(name, args.length, 1); + for (let i = 0; i < args.length; ++i) { + x2 = +args[i]; + this.lineTo(x2, y2); + } + break; + case "h": + checkMinArgs(name, args.length, 1); + for (let i = 0; i < args.length; ++i) { + x2 += +args[i]; + this.lineTo(x2, y2); + } + break; + case "V": + checkMinArgs(name, args.length, 1); + for (let i = 0; i < args.length; ++i) { + y2 = +args[i]; + this.lineTo(x2, y2); + } + break; + case "v": + checkMinArgs(name, args.length, 1); + for (let i = 0; i < args.length; ++i) { + y2 += +args[i]; + this.lineTo(x2, y2); + } + break; + case "C": + checkEvenArgs(name, args.length, 6); + for (let i = 0; i < args.length; i += 6) { + const x1 = +args[i]; + const y1 = +args[i + 1]; + cpx = +args[i + 2]; + cpy = +args[i + 3]; + x2 = +args[i + 4]; + y2 = +args[i + 5]; + this.bezierCurveTo(x1, y1, cpx, cpy, x2, y2); + } + break; + case "c": + checkEvenArgs(name, args.length, 6); + for (let i = 0; i < args.length; i += 6) { + const x1 = +args[i] + x2; + const y1 = +args[i + 1] + y2; + cpx = +args[i + 2] + x2; + cpy = +args[i + 3] + y2; + x2 += +args[i + 4]; + y2 += +args[i + 5]; + this.bezierCurveTo(x1, y1, cpx, cpy, x2, y2); + } + break; + case "S": + checkEvenArgs(name, args.length, 4); + if (cpx === null || cpy === null) { + cpx = x2; + cpy = y2; + } + for (let i = 0; i < args.length; i += 4) { + const x1 = 2 * x2 - cpx; + const y1 = 2 * y2 - cpy; + cpx = +args[i]; + cpy = +args[i + 1]; + x2 = +args[i + 2]; + y2 = +args[i + 3]; + this.bezierCurveTo(x1, y1, cpx, cpy, x2, y2); + } + break; + case "s": + checkEvenArgs(name, args.length, 4); + if (cpx === null || cpy === null) { + cpx = x2; + cpy = y2; + } + for (let i = 0; i < args.length; i += 4) { + const x1 = 2 * x2 - cpx; + const y1 = 2 * y2 - cpy; + cpx = +args[i] + x2; + cpy = +args[i + 1] + y2; + x2 += +args[i + 2]; + y2 += +args[i + 3]; + this.bezierCurveTo(x1, y1, cpx, cpy, x2, y2); + } + break; + case "Q": + checkEvenArgs(name, args.length, 4); + for (let i = 0; i < args.length; i += 4) { + qcpx = +args[i]; + qcpy = +args[i + 1]; + x2 = +args[i + 2]; + y2 = +args[i + 3]; + this.quadraticCurveTo(qcpx, qcpy, x2, y2); + } + break; + case "q": + checkEvenArgs(name, args.length, 4); + for (let i = 0; i < args.length; i += 4) { + qcpx = +args[i] + x2; + qcpy = +args[i + 1] + y2; + x2 += +args[i + 2]; + y2 += +args[i + 3]; + this.quadraticCurveTo(qcpx, qcpy, x2, y2); + } + break; + case "T": + checkEvenArgs(name, args.length, 2); + if (qcpx === null || qcpy === null) { + qcpx = x2; + qcpy = y2; + } + for (let i = 0; i < args.length; i += 2) { + qcpx = 2 * x2 - qcpx; + qcpy = 2 * y2 - qcpy; + x2 = +args[i]; + y2 = +args[i + 1]; + this.quadraticCurveTo(qcpx, qcpy, x2, y2); + } + break; + case "t": + checkEvenArgs(name, args.length, 2); + if (qcpx === null || qcpy === null) { + qcpx = x2; + qcpy = y2; + } + for (let i = 0; i < args.length; i += 2) { + qcpx = 2 * x2 - qcpx; + qcpy = 2 * y2 - qcpy; + x2 += +args[i]; + y2 += +args[i + 1]; + this.quadraticCurveTo(qcpx, qcpy, x2, y2); + } + break; + case "A": + case "a": + const relative = name === "a"; + splitArcFlags(args); + checkEvenArgs(name, args.length, 7); + for (let i = 0; i < args.length; i += 7) { + let cx = +args[i + 5]; + let cy = +args[i + 6]; + if (relative) { + cx += x2; + cy += y2; + } + const bs = modules_default({ + px: x2, + py: y2, + rx: +args[i], + ry: +args[i + 1], + xAxisRotation: +args[i + 2], + largeArcFlag: assertBinary(+args[i + 3]), + sweepFlag: assertBinary(+args[i + 4]), + cx, + cy + }); + each(bs, (b) => { + this.bezierCurveTo(b.x1, b.y1, b.x2, b.y2, b.x, b.y); + x2 = b.x; + y2 = b.y; + }); + } + break; + case "Z": + case "z": + checkArgs(name, args.length, 0); + this.closePath(); + break; + } + } + } catch (e) { + this._operations.length = length; + console.warn("Error when parsing svgPath:\n " + e.message + "\n" + path2); + } + } + _runPath(context) { + context.beginPath(); + each(this._operations, (op) => { + op.path(context); + }); + } + _render(status, targetGhostLayer = 0) { + super._render(status); + const layerDirty = status.layer.dirty; + const interactive = this._isInteractive(status); + const ghostOnly = this._ghostOnly(targetGhostLayer); + const drawGhost = this._drawGhost(status, targetGhostLayer); + if (layerDirty || interactive || ghostOnly) { + const context = status.layer.context; + const ghostContext = this._renderer._ghostLayer.context; + if (layerDirty && !ghostOnly) { + context.globalCompositeOperation = this.blendMode; + context.beginPath(); + } + let color2; + if (drawGhost) { + ghostContext.beginPath(); + color2 = this._getColorId(); + } + each(this._operations, (op) => { + if (layerDirty && !ghostOnly) { + op.path(context); + op.colorize(context, void 0); + } + if (drawGhost) { + op.pathGhost(ghostContext); + op.colorizeGhost(ghostContext, color2); + } + }); + } + } + renderDetached(context) { + if (this.visible) { + this._setMatrix(); + context.save(); + const mask = this.mask; + if (mask) { + mask._setMatrix(); + mask._transform(context, 1); + mask._runPath(context); + context.clip(); + } + context.globalAlpha = this.compoundAlpha * this.alpha; + this._transform(context, 1); + if (this.filter) { + context.filter = this.filter; + } + context.globalCompositeOperation = this.blendMode; + context.beginPath(); + each(this._operations, (op) => { + op.path(context); + op.colorize(context, void 0); + }); + context.restore(); + } + } + _addBounds(bounds) { + if (this.visible && this.isMeasured) { + each(this._operations, (op) => { + op.addBounds(bounds); + }); + } + } + }; + var CanvasText = class extends CanvasDisplayObject { + constructor(renderer, text, style) { + super(renderer); + this.resolution = 1; + this.textVisible = true; + this._originalScale = 1; + this.text = text; + this.style = style; + } + invalidateBounds() { + super.invalidateBounds(); + this._textInfo = void 0; + } + invalidateVisibility() { + this.textVisible = true; + this.scale = this._originalScale || 1; + } + _shared(context) { + if (this.style.textAlign) { + context.textAlign = this.style.textAlign; + } + if (this.style.direction) { + context.direction = this.style.direction; + } + if (this.style.textBaseline) { + context.textBaseline = this.style.textBaseline; + } + } + _prerender(status, ignoreGhost = false, ignoreFontWeight = false) { + super._render(status); + const context = status.layer.context; + const ghostContext = this._renderer._ghostLayer.context; + const style = this.style; + let fontStyle = this._getFontStyle(void 0, ignoreFontWeight); + context.font = fontStyle; + if (this._isInteractive(status) && !ignoreGhost) { + ghostContext.font = fontStyle; + } + if (style.fill) { + if (style.fill instanceof Color) { + context.fillStyle = style.fill.toCSS(style.fillOpacity != void 0 ? style.fillOpacity : 1); + } else { + context.fillStyle = style.fill; + } + } + if (style.shadowColor) { + status.layer.context.shadowColor = style.shadowColor.toCSS(style.shadowOpacity || 1); + } + if (style.shadowBlur) { + status.layer.context.shadowBlur = style.shadowBlur; + } + if (style.shadowOffsetX) { + status.layer.context.shadowOffsetX = style.shadowOffsetX; + } + if (style.shadowOffsetY) { + status.layer.context.shadowOffsetY = style.shadowOffsetY; + } + this._shared(context); + if (this._isInteractive(status) && !ignoreGhost) { + ghostContext.fillStyle = this._getColorId(); + this._shared(ghostContext); + } + } + _getFontStyle(style2, ignoreFontWeight = false) { + const style = this.style; + let fontStyle = []; + if (style2 && style2.fontVariant) { + fontStyle.push(style2.fontVariant); + } else if (style.fontVariant) { + fontStyle.push(style.fontVariant); + } + if (!ignoreFontWeight) { + if (style2 && style2.fontWeight) { + fontStyle.push(style2.fontWeight); + } else if (style.fontWeight) { + fontStyle.push(style.fontWeight); + } + } + if (style2 && style2.fontStyle) { + fontStyle.push(style2.fontStyle); + } else if (style.fontStyle) { + fontStyle.push(style.fontStyle); + } + if (style2 && style2.fontSize) { + if (isNumber(style2.fontSize)) { + style2.fontSize = style2.fontSize + "px"; + } + fontStyle.push(style2.fontSize); + } else if (style.fontSize) { + if (isNumber(style.fontSize)) { + style.fontSize = style.fontSize + "px"; + } + fontStyle.push(style.fontSize); + } + if (style2 && style2.fontFamily) { + fontStyle.push(style2.fontFamily); + } else if (style.fontFamily) { + fontStyle.push(style.fontFamily); + } else if (fontStyle.length) { + fontStyle.push("Arial"); + } + return fontStyle.join(" "); + } + _render(status, targetGhostLayer = 0) { + if (!this._textInfo) { + this._measure(status); + } + if (this.textVisible) { + const interactive = this._isInteractive(status); + const context = status.layer.context; + const layerDirty = status.layer.dirty; + const ghostContext = this._renderer._ghostLayer.context; + const ghostOnly = this._ghostOnly(targetGhostLayer); + const drawGhost = this._drawGhost(status, targetGhostLayer); + context.save(); + ghostContext.save(); + this._prerender(status); + each(this._textInfo, (line2, _index) => { + each(line2.textChunks, (chunk, _index2) => { + if (chunk.style) { + context.save(); + ghostContext.save(); + if (!ghostOnly) { + context.font = chunk.style; + } + if (this._isInteractive(status)) { + ghostContext.font = chunk.style; + } + } + if (chunk.fill) { + context.save(); + if (!ghostOnly) { + context.fillStyle = chunk.fill.toCSS(); + } + } + if (layerDirty && !ghostOnly) { + context.fillText(chunk.text, chunk.offsetX, line2.offsetY + chunk.offsetY); + } + if (chunk.textDecoration == "underline" || chunk.textDecoration == "line-through") { + let thickness = 1; + let offset = 1; + let fontSize = chunk.height; + const oversizedBehavior = this.style.oversizedBehavior || ""; + if (["truncate", "wrap", "wrap-no-break"].indexOf(oversizedBehavior) > -1) { + const metrics = this._measureText(chunk.text, context); + chunk.width = metrics.actualBoundingBoxLeft + metrics.actualBoundingBoxRight; + } + let offsetX = chunk.offsetX; + switch (this.style.textAlign) { + case "right": + case "end": + offsetX -= chunk.width; + break; + case "center": + offsetX -= chunk.width / 2; + break; + } + if (chunk.style) { + const format = TextFormatter.getTextStyle(chunk.style); + switch (format.fontWeight) { + case "bolder": + case "bold": + case "700": + case "800": + case "900": + thickness = 2; + break; + } + } + if (fontSize) { + offset = fontSize / 20; + } + let y2; + if (chunk.textDecoration == "line-through") { + y2 = thickness + line2.offsetY + chunk.offsetY - chunk.height / 2; + } else { + y2 = thickness + offset * 1.5 + line2.offsetY + chunk.offsetY; + } + if (!ghostOnly) { + context.save(); + context.beginPath(); + if (chunk.fill) { + context.strokeStyle = chunk.fill.toCSS(); + } else if (this.style.fill && this.style.fill instanceof Color) { + context.strokeStyle = this.style.fill.toCSS(); + } + context.lineWidth = thickness * offset; + context.moveTo(offsetX, y2); + context.lineTo(offsetX + chunk.width, y2); + context.stroke(); + context.restore(); + } + } + if (interactive && this.interactive && drawGhost) { + ghostContext.fillText(chunk.text, chunk.offsetX, line2.offsetY + chunk.offsetY); + } + if (chunk.fill) { + context.restore(); + } + if (chunk.style) { + context.restore(); + ghostContext.restore(); + } + }); + }); + context.restore(); + ghostContext.restore(); + } + } + _addBounds(bounds) { + if (this.visible && this.isMeasured) { + const x2 = this._measure({ + inactive: this.inactive, + layer: this.getLayer() + }); + setPoint(bounds, { x: x2.left, y: x2.top }); + setPoint(bounds, { x: x2.right, y: x2.bottom }); + } + } + _ignoreFontWeight() { + return /apple/i.test(navigator.vendor); + } + _measure(status) { + const context = status.layer.context; + const ghostContext = this._renderer._ghostLayer.context; + const rtl = this.style.direction == "rtl"; + this._textInfo = []; + const oversizedBehavior = this.style.oversizedBehavior; + const maxWidth = this.style.maxWidth; + const truncate = isNumber(maxWidth) && oversizedBehavior == "truncate"; + const wrap = isNumber(maxWidth) && (oversizedBehavior == "wrap" || oversizedBehavior == "wrap-no-break"); + context.save(); + ghostContext.save(); + this._prerender(status, true, this._ignoreFontWeight()); + const refText = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 "; + const lines = this.text.toString().replace(/\r/g, "").split(/\n/); + let styleRestored = true; + let minX = 0; + let maxX = 0; + let offsetY = 0; + let currentStyle; + each(lines, (line2, _index) => { + let chunks; + if (line2 == "") { + chunks = [{ + type: "value", + text: "" + }]; + } else { + chunks = TextFormatter.chunk(line2, false, this.style.ignoreFormatting); + } + while (chunks.length > 0) { + let lineInfo = { + offsetY, + ascent: 0, + width: 0, + height: 0, + left: 0, + right: 0, + textChunks: [] + }; + const metrics = this._measureText(refText, context); + const height = metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent; + lineInfo.height = height; + lineInfo.ascent = metrics.actualBoundingBoxAscent; + let currentFormat; + let currentDecoration = this.style.textDecoration; + let currentFill; + let currentChunkWidth; + let skipFurtherText = false; + let firstTextChunk = true; + let leftoverChunks = []; + let currentVerticalAlign; + eachContinue(chunks, (chunk, index) => { + if (chunk.type == "format") { + if (chunk.text == "[/]") { + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + styleRestored = true; + } + currentFill = void 0; + currentStyle = void 0; + currentChunkWidth = void 0; + currentDecoration = this.style.textDecoration; + currentVerticalAlign = void 0; + currentFormat = chunk.text; + } else { + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + } + let format = TextFormatter.getTextStyle(chunk.text); + const fontStyle = this._getFontStyle(format); + context.save(); + ghostContext.save(); + context.font = fontStyle; + currentStyle = fontStyle; + currentFormat = chunk.text; + if (format.textDecoration) { + currentDecoration = format.textDecoration; + } + if (format.fill) { + currentFill = format.fill; + } + if (format.width) { + currentChunkWidth = toNumber(format.width); + } + if (format.verticalAlign) { + currentVerticalAlign = format.verticalAlign; + } + styleRestored = false; + const metrics2 = this._measureText(refText, context); + const height2 = metrics2.actualBoundingBoxAscent + metrics2.actualBoundingBoxDescent; + if (height2 > lineInfo.height) { + lineInfo.height = height2; + } + if (metrics2.actualBoundingBoxAscent > lineInfo.ascent) { + lineInfo.ascent = metrics2.actualBoundingBoxAscent; + } + } + } else if (chunk.type == "value" && !skipFurtherText) { + const metrics2 = this._measureText(chunk.text, context); + let chunkWidth = metrics2.actualBoundingBoxLeft + metrics2.actualBoundingBoxRight; + if (truncate) { + this.truncated = void 0; + let breakWords = firstTextChunk || this.style.breakWords || false; + const ellipsis = this.style.ellipsis || ""; + const ellipsisMetrics = this._measureText(ellipsis, context); + const ellipsisWidth = ellipsisMetrics.actualBoundingBoxLeft + ellipsisMetrics.actualBoundingBoxRight; + if (lineInfo.width + chunkWidth > maxWidth) { + const excessWidth = maxWidth - lineInfo.width - ellipsisWidth; + chunk.text = this._truncateText(context, chunk.text, excessWidth, breakWords); + chunk.text += ellipsis; + skipFurtherText = true; + this.truncated = true; + } + } else if (wrap) { + if (lineInfo.width + chunkWidth > maxWidth) { + const excessWidth = maxWidth - lineInfo.width; + const tmpText = this._truncateText(context, chunk.text, excessWidth, false, firstTextChunk && this.style.oversizedBehavior != "wrap-no-break"); + if (tmpText == "") { + this.textVisible = true; + return false; + } + leftoverChunks = chunks.slice(index + 1); + if (trim(tmpText) != trim(chunk.text)) { + leftoverChunks.unshift({ + type: "value", + text: chunk.text.substr(tmpText.length) + }); + if (currentFormat) { + leftoverChunks.unshift({ + type: "format", + text: currentFormat + }); + } + } + chunk.text = trim(tmpText); + chunks = []; + skipFurtherText = true; + } + } + let leftBoundMod = 1; + let rightBoundMod = 1; + if (currentStyle && currentChunkWidth && currentChunkWidth > chunkWidth) { + const boundsMod = chunkWidth / currentChunkWidth; + switch (this.style.textAlign) { + case "right": + case "end": + leftBoundMod = boundsMod; + break; + case "center": + leftBoundMod = boundsMod; + rightBoundMod = boundsMod; + break; + default: + rightBoundMod = boundsMod; + } + chunkWidth = currentChunkWidth; + } + const chunkHeight = metrics2.actualBoundingBoxAscent + metrics2.actualBoundingBoxDescent; + if (chunkHeight > lineInfo.height) { + lineInfo.height = chunkHeight; + } + if (metrics2.actualBoundingBoxAscent > lineInfo.ascent) { + lineInfo.ascent = metrics2.actualBoundingBoxAscent; + } + lineInfo.width += chunkWidth; + lineInfo.left += metrics2.actualBoundingBoxLeft / leftBoundMod; + lineInfo.right += metrics2.actualBoundingBoxRight / rightBoundMod; + lineInfo.textChunks.push({ + style: currentStyle, + fill: currentFill, + text: chunk.text, + width: chunkWidth, + height: chunkHeight, + left: metrics2.actualBoundingBoxLeft, + right: metrics2.actualBoundingBoxRight, + ascent: metrics2.actualBoundingBoxAscent, + offsetX: 0, + offsetY: 0, + textDecoration: currentDecoration, + verticalAlign: currentVerticalAlign + }); + firstTextChunk = false; + } + if (leftoverChunks) { + } + return true; + }); + if (this.style.lineHeight instanceof Percent) { + lineInfo.height *= this.style.lineHeight.value; + lineInfo.ascent *= this.style.lineHeight.value; + } else { + lineInfo.height *= this.style.lineHeight || 1.2; + lineInfo.ascent *= this.style.lineHeight || 1.2; + } + if (minX < lineInfo.left) { + minX = lineInfo.left; + } + if (maxX < lineInfo.right) { + maxX = lineInfo.right; + } + this._textInfo.push(lineInfo); + offsetY += lineInfo.height; + chunks = leftoverChunks || []; + } + }); + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + } + each(this._textInfo, (lineInfo, _index) => { + let currentChunkOffset = 0; + each(lineInfo.textChunks, (chunk) => { + chunk.offsetX = currentChunkOffset + chunk.left - lineInfo.left; + chunk.offsetY += lineInfo.height - lineInfo.height * (this.style.baselineRatio || 0.19); + currentChunkOffset += chunk.width * (rtl ? -1 : 1); + if (chunk.verticalAlign) { + switch (chunk.verticalAlign) { + case "super": + chunk.offsetY -= lineInfo.height / 2 - chunk.height / 2; + break; + case "sub": + chunk.offsetY += chunk.height / 2; + break; + } + } + }); + }); + const bounds = { + left: rtl ? -maxX : -minX, + top: 0, + right: rtl ? minX : maxX, + bottom: offsetY + }; + if (oversizedBehavior !== "none") { + const ratio = this._fitRatio(bounds); + if (ratio < 1) { + if (oversizedBehavior == "fit") { + if (isNumber(this.style.minScale) && ratio < this.style.minScale) { + this.textVisible = false; + bounds.left = 0; + bounds.top = 0; + bounds.right = 0; + bounds.bottom = 0; + } else { + if (!this._originalScale) { + this._originalScale = this.scale; + } + this.scale = ratio; + this.textVisible = true; + } + } else if (oversizedBehavior == "hide") { + this.textVisible = false; + bounds.left = 0; + bounds.top = 0; + bounds.right = 0; + bounds.bottom = 0; + } else { + switch (this.style.textAlign) { + case "right": + case "end": + bounds.left = rtl ? maxWidth : -maxWidth; + bounds.right = 0; + break; + case "center": + bounds.left = -maxWidth / 2; + bounds.right = maxWidth / 2; + break; + default: + bounds.left = 0; + bounds.right = rtl ? -maxWidth : maxWidth; + } + this.scale = this._originalScale || 1; + this._originalScale = void 0; + this.textVisible = true; + } + } else { + this.scale = this._originalScale || 1; + this._originalScale = void 0; + this.textVisible = true; + } + } + context.restore(); + ghostContext.restore(); + return bounds; + } + _fitRatio(bounds) { + const maxW = this.style.maxWidth; + const maxH = this.style.maxHeight; + if (!isNumber(maxW) && !isNumber(maxH)) { + return 1; + } + const w = bounds.right - bounds.left; + const h = bounds.bottom - bounds.top; + return Math.min(maxW / w || 1, maxH / h || 1); + } + _truncateText(context, text, maxWidth, breakWords = false, fallbackBreakWords = true) { + let width; + do { + if (breakWords) { + text = text.slice(0, -1); + } else { + let tmp = text.replace(/[^,;:!?\\\/\s​]+[,;:!?\\\/\s​]*$/g, ""); + if ((tmp == "" || tmp === text) && fallbackBreakWords) { + breakWords = true; + } else if (tmp == "") { + return text; + } else { + text = tmp; + } + } + const metrics = this._measureText(text, context); + width = metrics.actualBoundingBoxLeft + metrics.actualBoundingBoxRight; + } while (width > maxWidth && text != ""); + return text; + } + _measureText(text, context) { + let metrics = context.measureText(text); + let fakeMetrics = {}; + if (metrics.actualBoundingBoxAscent == null) { + const div = document.createElement("div"); + div.innerText = text; + div.style.visibility = "hidden"; + div.style.position = "absolute"; + div.style.top = "-1000000px;"; + div.style.fontFamily = this.style.fontFamily || ""; + div.style.fontSize = this.style.fontSize + ""; + document.body.appendChild(div); + const bbox = div.getBoundingClientRect(); + document.body.removeChild(div); + const h = bbox.height; + const w2 = metrics.width; + let left = 0; + let right = w2; + fakeMetrics = { + actualBoundingBoxAscent: h, + actualBoundingBoxDescent: 0, + actualBoundingBoxLeft: left, + actualBoundingBoxRight: right, + fontBoundingBoxAscent: h, + fontBoundingBoxDescent: 0, + width: w2 + }; + } else { + fakeMetrics = { + actualBoundingBoxAscent: metrics.actualBoundingBoxAscent, + actualBoundingBoxDescent: metrics.actualBoundingBoxDescent, + actualBoundingBoxLeft: metrics.actualBoundingBoxLeft, + actualBoundingBoxRight: metrics.actualBoundingBoxRight, + fontBoundingBoxAscent: metrics.actualBoundingBoxAscent, + fontBoundingBoxDescent: metrics.actualBoundingBoxDescent, + width: metrics.width + }; + } + const w = metrics.width; + switch (this.style.textAlign) { + case "right": + case "end": + fakeMetrics.actualBoundingBoxLeft = w; + fakeMetrics.actualBoundingBoxRight = 0; + break; + case "center": + fakeMetrics.actualBoundingBoxLeft = w / 2; + fakeMetrics.actualBoundingBoxRight = w / 2; + break; + default: + fakeMetrics.actualBoundingBoxLeft = 0; + fakeMetrics.actualBoundingBoxRight = w; + } + return fakeMetrics; + } + }; + var CanvasTextStyle = class { + constructor() { + this.lineHeight = percent(120); + this.baselineRatio = 0.19; + this.oversizedBehavior = "none"; + this.breakWords = false; + this.ellipsis = "\u2026"; + this.ignoreFormatting = false; + } + }; + var CanvasRadialText = class extends CanvasText { + constructor() { + super(...arguments); + this.textType = "circular"; + this.inside = false; + this.orientation = "auto"; + this.kerning = 0; + this._textReversed = false; + } + _render(status, targetGhostLayer = 0) { + switch (this.textType) { + case "circular": + this._renderCircular(status, targetGhostLayer); + break; + default: + super._render(status, targetGhostLayer); + break; + } + } + _renderCircular(status, targetGhostLayer = 0) { + if (this.textVisible) { + this._prerender(status); + const interactive = this._isInteractive(status); + const context = status.layer.context; + const layerDirty = status.layer.dirty; + const ghostContext = this._renderer._ghostLayer.context; + context.save(); + if (interactive) { + ghostContext.save(); + } + if (!this._textInfo) { + this._measure(status); + } + let radius = this.radius || 0; + let startAngle = this.startAngle || 0; + let deltaAngle = 0; + let orientation = this.orientation; + let inward = orientation == "auto" ? "auto" : orientation == "inward"; + const inside = this.inside; + const align = this.style.textAlign || "left"; + const kerning = this.kerning || 0; + let clockwise = align == "left" ? 1 : -1; + const shouldReverse = !this._textReversed; + const ghostOnly = this._ghostOnly(targetGhostLayer); + const drawGhost = this._drawGhost(status, targetGhostLayer); + if (inward == "auto") { + let maxAngle = 0; + let midAngle = 0; + each(this._textInfo, (line2, _index) => { + const deltaAngle2 = startAngle + line2.width / (radius - line2.height) / 2 * -clockwise; + if (deltaAngle2 > maxAngle) { + maxAngle = deltaAngle2; + } + }); + if (align == "left") { + midAngle = (maxAngle + deltaAngle / 2) * DEGREES; + } else if (align == "right") { + midAngle = (maxAngle - deltaAngle / 2) * DEGREES; + } else { + midAngle = startAngle * DEGREES; + } + midAngle = normalizeAngle(midAngle); + inward = midAngle >= 270 || midAngle <= 90; + } + if (inward == true && shouldReverse) { + this._textInfo.reverse(); + this._textReversed = true; + } + each(this._textInfo, (line2, _index) => { + const textHeight = line2.height; + if (!inside) { + radius += textHeight; + } + if ((clockwise == -1 && inward || clockwise == 1 && !inward) && shouldReverse) { + line2.textChunks.reverse(); + } + let lineStartAngle = startAngle; + deltaAngle = 0; + if (align == "center") { + lineStartAngle += line2.width / (radius - textHeight) / 2 * -clockwise; + deltaAngle = lineStartAngle - startAngle; + } + lineStartAngle += Math.PI * (inward ? 0 : 1); + context.save(); + if (interactive) { + ghostContext.save(); + } + if (!ghostOnly) { + context.rotate(lineStartAngle); + } + if (interactive) { + ghostContext.rotate(lineStartAngle); + } + let angleShift = 0; + each(line2.textChunks, (chunk, _index2) => { + const char = chunk.text; + const charWidth = chunk.width; + angleShift = charWidth / 2 / (radius - textHeight) * clockwise; + if (!ghostOnly) { + context.rotate(angleShift); + } + if (interactive) { + ghostContext.rotate(angleShift); + } + if (chunk.style) { + context.save(); + ghostContext.save(); + if (!ghostOnly) { + context.font = chunk.style; + } + if (interactive) { + ghostContext.font = chunk.style; + } + } + if (chunk.fill) { + context.save(); + if (!ghostOnly) { + context.fillStyle = chunk.fill.toCSS(); + } + } + if (!ghostOnly) { + context.textBaseline = "middle"; + context.textAlign = "center"; + } + if (interactive) { + ghostContext.textBaseline = "middle"; + ghostContext.textAlign = "center"; + } + if (layerDirty && !ghostOnly) { + context.fillText(char, 0, (inward ? 1 : -1) * (0 - radius + textHeight / 2)); + } + if (interactive && drawGhost) { + ghostContext.fillText(char, 0, (inward ? 1 : -1) * (0 - radius + textHeight / 2)); + } + if (chunk.fill) { + context.restore(); + } + if (chunk.style) { + context.restore(); + ghostContext.restore(); + } + angleShift = (charWidth / 2 + kerning) / (radius - textHeight) * clockwise; + if (!ghostOnly) { + context.rotate(angleShift); + } + if (interactive) { + ghostContext.rotate(angleShift); + } + }); + context.restore(); + if (interactive) { + ghostContext.restore(); + } + if (inside) { + radius -= textHeight; + } + }); + context.restore(); + if (interactive) { + ghostContext.restore(); + } + } + } + _measure(status) { + switch (this.textType) { + case "circular": + return this._measureCircular(status); + default: + return super._measure(status); + } + } + _measureCircular(status) { + const context = status.layer.context; + const ghostContext = this._renderer._ghostLayer.context; + const rtl = this.style.direction == "rtl"; + const oversizedBehavior = this.style.oversizedBehavior; + const maxWidth = this.style.maxWidth; + const truncate = isNumber(maxWidth) && oversizedBehavior == "truncate"; + const ellipsis = this.style.ellipsis || ""; + let ellipsisMetrics; + this.textVisible = true; + this._textInfo = []; + this._textReversed = false; + context.save(); + ghostContext.save(); + this._prerender(status, true); + const lines = this.text.toString().replace(/\r/g, "").split(/\n/); + let styleRestored = true; + let totalWidth = 0; + let offsetY = 0; + each(lines, (line2, _index) => { + let chunks = TextFormatter.chunk(line2, false, this.style.ignoreFormatting); + let lineInfo = { + offsetY, + ascent: 0, + width: 0, + height: 0, + left: 0, + right: 0, + textChunks: [] + }; + let currentStyle; + let currentFill; + let currentChunkWidth; + each(chunks, (chunk, _index2) => { + if (chunk.type == "format") { + if (chunk.text == "[/]") { + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + styleRestored = true; + } + currentFill = void 0; + currentStyle = void 0; + currentChunkWidth = void 0; + } else { + let format = TextFormatter.getTextStyle(chunk.text); + const fontStyle = this._getFontStyle(format); + context.save(); + ghostContext.save(); + context.font = fontStyle; + currentStyle = fontStyle; + if (format.fill) { + currentFill = format.fill; + } + if (format.width) { + currentChunkWidth = toNumber(format.width); + } + styleRestored = false; + } + if (truncate) { + ellipsisMetrics = this._measureText(ellipsis, context); + } + } else if (chunk.type == "value") { + let chars = chunk.text.match(/./ug) || []; + if (rtl) { + chars = splitString(chunk.text); + chars.reverse(); + } + for (let i = 0; i < chars.length; i++) { + const char = chars[i]; + const metrics = this._measureText(char, context); + let chunkWidth = metrics.width; + if (currentStyle && currentChunkWidth && currentChunkWidth > chunkWidth) { + chunkWidth = currentChunkWidth; + } + const chunkHeight = metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent; + if (chunkHeight > lineInfo.height) { + lineInfo.height = chunkHeight; + } + if (metrics.actualBoundingBoxAscent > lineInfo.ascent) { + lineInfo.ascent = metrics.actualBoundingBoxAscent; + } + totalWidth += chunkWidth; + if (truncate) { + if (!ellipsisMetrics) { + ellipsisMetrics = this._measureText(ellipsis, context); + } + const ellipsisWidth = ellipsisMetrics.actualBoundingBoxLeft + ellipsisMetrics.actualBoundingBoxRight; + if (totalWidth + ellipsisWidth > maxWidth) { + if (lineInfo.textChunks.length == 1) { + this.textVisible = false; + } else { + lineInfo.width += ellipsisWidth; + lineInfo.left += ellipsisMetrics.actualBoundingBoxLeft; + lineInfo.right += ellipsisMetrics.actualBoundingBoxRight; + lineInfo.textChunks.push({ + style: currentStyle, + fill: currentFill, + text: ellipsis, + width: ellipsisWidth, + height: chunkHeight + ellipsisMetrics.actualBoundingBoxDescent, + left: ellipsisMetrics.actualBoundingBoxLeft, + right: ellipsisMetrics.actualBoundingBoxRight, + ascent: ellipsisMetrics.actualBoundingBoxAscent, + offsetX: 0, + offsetY: chunkHeight, + textDecoration: void 0 + }); + } + break; + } + } + lineInfo.width += chunkWidth; + lineInfo.left += metrics.actualBoundingBoxLeft; + lineInfo.right += metrics.actualBoundingBoxRight; + lineInfo.textChunks.push({ + style: currentStyle, + fill: currentFill, + text: char, + width: chunkWidth, + height: chunkHeight + metrics.actualBoundingBoxDescent, + left: metrics.actualBoundingBoxLeft, + right: metrics.actualBoundingBoxRight, + ascent: metrics.actualBoundingBoxAscent, + offsetX: 0, + offsetY: chunkHeight, + textDecoration: void 0 + }); + if (rtl) { + } + } + } + }); + if (this.style.lineHeight instanceof Percent) { + lineInfo.height *= this.style.lineHeight.value; + } else { + lineInfo.height *= this.style.lineHeight || 1.2; + } + this._textInfo.push(lineInfo); + offsetY += lineInfo.height; + }); + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + } + if (oversizedBehavior == "hide" && totalWidth > maxWidth) { + this.textVisible = false; + } + each(this._textInfo, (lineInfo) => { + each(lineInfo.textChunks, (chunk) => { + chunk.offsetY += Math.round((lineInfo.height - chunk.height + (lineInfo.ascent - chunk.ascent)) / 2); + }); + }); + context.restore(); + ghostContext.restore(); + return { + left: 0, + top: 0, + right: 0, + bottom: 0 + }; + } + }; + var CanvasImage = class extends CanvasDisplayObject { + constructor(renderer, image) { + super(renderer); + this.image = image; + } + _dispose() { + super._dispose(); + if (this._imageMask) { + clearCanvas(this._imageMask); + } + } + getLocalBounds() { + if (!this._localBounds) { + let w = 0; + let h = 0; + if (this.width) { + w = this.width; + } + if (this.height) { + h = this.height; + } + this._localBounds = { + left: 0, + top: 0, + right: w, + bottom: h + }; + this._addBounds(this._localBounds); + } + return this._localBounds; + } + _render(status, targetGhostLayer = 0) { + super._render(status); + if (this.image) { + if (this.tainted === void 0) { + this.tainted = isTainted(this.image); + status.layer.tainted = true; + } + if (this.tainted && this._renderer._omitTainted) { + return; + } + const ghostOnly = this._ghostOnly(targetGhostLayer); + const drawGhost = this._drawGhost(status, targetGhostLayer); + if (status.layer.dirty && !ghostOnly) { + if (this.shadowColor) { + status.layer.context.shadowColor = this.shadowColor.toCSS(this.shadowOpacity || 1); + } + if (this.shadowBlur) { + status.layer.context.shadowBlur = this.shadowBlur; + } + if (this.shadowOffsetX) { + status.layer.context.shadowOffsetX = this.shadowOffsetX; + } + if (this.shadowOffsetY) { + status.layer.context.shadowOffsetY = this.shadowOffsetY; + } + const width = this.width || this.image.naturalWidth; + const height = this.height || this.image.naturalHeight; + status.layer.context.drawImage(this.image, 0, 0, width, height); + } + if (this.interactive && this._isInteractive(status) && drawGhost) { + const mask = this._getMask(this.image); + this._renderer._ghostLayer.context.drawImage(mask, 0, 0); + } + } + } + clear() { + super.clear(); + this.image = void 0; + this._imageMask = void 0; + } + _getMask(image) { + if (this._imageMask === void 0) { + const width = this.width || image.naturalWidth; + const height = this.height || image.naturalHeight; + const canvas = document.createElement("canvas"); + canvas.width = width; + canvas.height = height; + const context = canvas.getContext("2d"); + context.imageSmoothingEnabled = false; + context.fillStyle = this._getColorId(); + context.fillRect(0, 0, width, height); + if (!isTainted(image)) { + context.globalCompositeOperation = "destination-in"; + context.drawImage(image, 0, 0, width, height); + } + this._imageMask = canvas; + } + return this._imageMask; + } + }; + var CanvasRendererEvent = class { + constructor(event, originalPoint, point, bbox) { + this.event = event; + this.originalPoint = originalPoint; + this.point = point; + this.bbox = bbox; + this.simulated = false; + this.native = true; + if (supports("touchevents") && event instanceof Touch) { + this.id = event.identifier; + } else { + this.id = null; + } + } + }; + var CanvasRenderer = class extends ArrayDisposer { + constructor(resolution) { + super(); + this.view = document.createElement("div"); + this._layerDom = document.createElement("div"); + this.layers = []; + this._dirtyLayers = []; + this.defaultLayer = this.getLayer(0); + this._ghostLayer = new GhostLayer(); + this._deferredGhostLayers = []; + this._patternCanvas = document.createElement("canvas"); + this._patternContext = this._patternCanvas.getContext("2d"); + this._realWidth = 0; + this._realHeight = 0; + this._calculatedWidth = 0; + this._calculatedHeight = 0; + this.interactionsEnabled = true; + this._listeners = {}; + this._events = {}; + this._colorId = 0; + this._colorMap = {}; + this._forceInteractive = 0; + this._omitTainted = false; + this._hovering = /* @__PURE__ */ new Set(); + this._dragging = []; + this._mousedown = []; + this.tapToActivate = false; + this.tapToActivateTimeout = 3e3; + this._touchActive = false; + if (resolution == null) { + this.resolution = window.devicePixelRatio; + } else { + this.resolution = resolution; + } + this.view.style.position = "absolute"; + this.view.setAttribute("aria-hidden", "true"); + this.view.appendChild(this._layerDom); + this._disposers.push(new Disposer(() => { + each2(this._events, (_key, events) => { + events.disposer.dispose(); + }); + each(this.layers, (layer) => { + clearCanvas(layer.view); + if (layer.exportableView) { + clearCanvas(layer.exportableView); + } + }); + clearCanvas(this._ghostLayer.view); + clearCanvas(this._patternCanvas); + })); + this._disposers.push(onZoom(() => { + if (resolution == null) { + this.resolution = window.devicePixelRatio; + } + })); + if (supports("touchevents")) { + const listener = (ev) => { + if (this._dragging.length !== 0) { + eachContinue(this._dragging, (item) => { + if (item.value.shouldCancelTouch()) { + ev.preventDefault(); + return false; + } + return true; + }); + } + if (this._touchActiveTimeout) { + this._delayTouchDeactivate(); + } + }; + this._disposers.push(addEventListener(window, "touchstart", listener, { passive: false })); + this._disposers.push(addEventListener(this.view, "touchstart", listener, { passive: false })); + this._disposers.push(addEventListener(this.view, "touchmove", () => { + if (this._touchActiveTimeout) { + this._delayTouchDeactivate(); + } + }, { passive: true })); + this._disposers.push(addEventListener(window, "click", (_ev) => { + this._touchActive = false; + }, { passive: true })); + this._disposers.push(addEventListener(this.view, "click", (_ev) => { + window.setTimeout(() => { + this._touchActive = true; + this._delayTouchDeactivate(); + }, 100); + }, { passive: true })); + } + if (supports("wheelevents")) { + this._disposers.push(addEventListener(this.view, "wheel", (ev) => { + let prevent = false; + this._hovering.forEach((obj) => { + if (obj.wheelable) { + prevent = true; + return false; + } + }); + if (prevent) { + ev.preventDefault(); + } + }, { passive: false })); + } + } + /*protected _mouseMoveThrottler: Throttler = new Throttler(() => { + this._dispatchGlobalMousemove(this._lastPointerMoveEvent.event, this._lastPointerMoveEvent.native); + }); + */ + resetImageArray() { + this._ghostLayer.imageArray = void 0; + } + _delayTouchDeactivate() { + if (this._touchActiveTimeout) { + clearTimeout(this._touchActiveTimeout); + } + if (this.tapToActivateTimeout > 0) { + this._touchActiveTimeout = window.setTimeout(() => { + this._touchActive = false; + }, this.tapToActivateTimeout); + } + } + get debugGhostView() { + return !!this._ghostLayer.view.parentNode; + } + set debugGhostView(value) { + if (value) { + if (!this._ghostLayer.view.parentNode) { + this.view.appendChild(this._ghostLayer.view); + } + } else { + if (this._ghostLayer.view.parentNode) { + this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view); + } + } + } + createLinearGradient(x1, y1, x2, y2) { + return this.defaultLayer.context.createLinearGradient(x1, y1, x2, y2); + } + createRadialGradient(x1, y1, radius1, x2, y2, radius2) { + return this.defaultLayer.context.createRadialGradient(x1, y1, radius1, x2, y2, radius2); + } + createPattern(graphics, background2, repetition, width, height) { + this._patternCanvas.width = width; + this._patternCanvas.height = height; + this._patternContext.clearRect(0, 0, width, height); + background2.renderDetached(this._patternContext); + graphics.renderDetached(this._patternContext); + return this._patternContext.createPattern(this._patternCanvas, repetition); + } + makeContainer() { + return new CanvasContainer(this); + } + makeGraphics() { + return new CanvasGraphics(this); + } + makeText(text, style) { + return new CanvasText(this, text, style); + } + makeTextStyle() { + return new CanvasTextStyle(); + } + makeRadialText(text, style) { + return new CanvasRadialText(this, text, style); + } + makePicture(image) { + return new CanvasImage(this, image); + } + resizeLayer(layer) { + layer.resize(this._calculatedWidth, this._calculatedHeight, this._calculatedWidth, this._calculatedHeight, this.resolution); + } + resizeGhost() { + this._ghostLayer.resize(this._calculatedWidth, this._calculatedHeight, this._calculatedWidth, this._calculatedHeight, this.resolution); + } + resize(realWidth, realHeight, calculatedWidth, calculatedHeight) { + this._realWidth = realWidth; + this._realHeight = realHeight; + this._calculatedWidth = calculatedWidth; + this._calculatedHeight = calculatedHeight; + each(this.layers, (layer) => { + if (layer) { + layer.dirty = true; + this.resizeLayer(layer); + } + }); + this.resizeGhost(); + this.view.style.width = calculatedWidth + "px"; + this.view.style.height = calculatedHeight + "px"; + } + createDetachedLayer(willReadFrequently = false) { + const view = document.createElement("canvas"); + const context = view.getContext("2d", { willReadFrequently }); + const layer = new CanvasLayer(view, context); + view.style.position = "absolute"; + view.style.top = "0px"; + view.style.left = "0px"; + return layer; + } + getLayerByOrder(order) { + const layers = this.layers; + const length = layers.length; + for (let i = 0; i < length; i++) { + const layer = layers[i]; + if (layer.order == order) { + return layer; + } + } + } + getLayer(order, visible = true) { + let existingLayer = this.getLayerByOrder(order); + if (existingLayer) { + return existingLayer; + } + const layer = this.createDetachedLayer(order == 99); + layer.order = order; + layer.visible = visible; + layer.view.className = "am5-layer-" + order; + if (layer.visible) { + this.resizeLayer(layer); + } + const layers = this.layers; + layers.push(layer); + layers.sort((a, b) => { + if (a.order > b.order) { + return 1; + } else if (a.order < b.order) { + return -1; + } else { + return 0; + } + }); + const length = layers.length; + const layerIndex = indexOf(layers, layer); + let next; + for (let i = layerIndex + 1; i < length; i++) { + if (layers[i].visible) { + next = layers[i]; + break; + } + } + if (layer.visible) { + if (next === void 0) { + this._layerDom.appendChild(layer.view); + } else { + this._layerDom.insertBefore(layer.view, next.view); + } + } + return layer; + } + render(root2) { + this._dirtyLayers.length = 0; + this._deferredGhostLayers = []; + each(this.layers, (layer) => { + if (layer) { + if (layer.dirty && layer.visible) { + this._dirtyLayers.push(layer); + layer.clear(); + } + } + }); + this._ghostLayer.clear(); + root2.render({ + inactive: null, + layer: this.defaultLayer + }); + const deferredGhostLayers = this._deferredGhostLayers; + if (deferredGhostLayers.length) { + deferredGhostLayers.sort((a, b) => a - b); + each(deferredGhostLayers, (layerx) => { + root2.render({ + inactive: null, + layer: this.defaultLayer + }, layerx); + }); + } + this._ghostLayer.context.restore(); + each(this.layers, (layer) => { + if (layer) { + const context = layer.context; + context.beginPath(); + context.moveTo(0, 0); + context.stroke(); + } + }); + each(this._dirtyLayers, (layer) => { + layer.context.restore(); + layer.dirty = false; + }); + if (this._hovering.size && this._lastPointerMoveEvent) { + const { events, target, native } = this._lastPointerMoveEvent; + each(events, (event) => { + this._dispatchGlobalMousemove(event, target, native); + }); + } + } + paintId(obj) { + const id = distributeId(++this._colorId); + const color2 = Color.fromHex(id).toCSS(); + this._colorMap[color2] = obj; + return color2; + } + _removeObject(obj) { + if (obj._colorId !== void 0) { + delete this._colorMap[obj._colorId]; + } + } + // protected _identifyObjectByColor(colorId: number): CanvasDisplayObject | undefined { + // return this._colorMap[colorId]; + // } + _adjustBoundingBox(bbox) { + const margin = this._ghostLayer.margin; + return new DOMRect(-margin.left, -margin.top, bbox.width + margin.left + margin.right, bbox.height + margin.top + margin.bottom); + } + getEvent(originalEvent, adjustPoint = true) { + const bbox = this.view.getBoundingClientRect(); + const x2 = originalEvent.clientX || 0; + const y2 = originalEvent.clientY || 0; + const widthScale = this._calculatedWidth / this._realWidth; + const heightScale = this._calculatedHeight / this._realHeight; + const originalPoint = { + x: x2 - bbox.left, + y: y2 - bbox.top + }; + const point = { + x: (x2 - (adjustPoint ? bbox.left : 0)) * widthScale, + y: (y2 - (adjustPoint ? bbox.top : 0)) * heightScale + }; + return new CanvasRendererEvent(originalEvent, originalPoint, point, this._adjustBoundingBox(bbox)); + } + _getHitTarget(point, bbox, target) { + if (bbox.width === 0 || bbox.height === 0 || point.x < bbox.left || point.x > bbox.right || point.y < bbox.top || point.y > bbox.bottom) { + return; + } + if (!target || !this._layerDom.contains(target)) { + return; + } + const pixel = this._ghostLayer.getImageData(point, bbox); + if (pixel.data[0] === 0 && pixel.data[1] === 0 && pixel.data[2] === 0) { + return false; + } + const colorId = Color.fromRGB(pixel.data[0], pixel.data[1], pixel.data[2]).toCSS(); + const hit = this._colorMap[colorId]; + return hit; + } + getObjectAtPoint(point) { + const data = this._ghostLayer.getImageArray(point); + if (data[0] === 0 && data[1] === 0 && data[2] === 0) { + return void 0; + } + const colorId = Color.fromRGB(data[0], data[1], data[2]).toCSS(); + const hit = this._colorMap[colorId]; + return hit; + } + _withEvents(key, f) { + const events = this._events[key]; + if (events !== void 0) { + events.dispatching = true; + try { + f(events); + } finally { + events.dispatching = false; + if (events.cleanup) { + events.cleanup = false; + keepIf(events.callbacks, (callback) => { + return !callback.disposed; + }); + if (events.callbacks.length === 0) { + events.disposer.dispose(); + delete this._events[key]; + } + } + } + } + } + _dispatchEventAll(key, event) { + if (!this.interactionsEnabled) { + return; + } + this._withEvents(key, (events) => { + each(events.callbacks, (callback) => { + if (!callback.disposed) { + callback.callback.call(callback.context, event); + } + }); + }); + } + _dispatchEvent(key, target, event) { + if (!this.interactionsEnabled) { + return false; + } + let dispatched = false; + this._withEvents(key, (events) => { + each(events.callbacks, (callback) => { + if (!callback.disposed && callback.object === target) { + callback.callback.call(callback.context, event); + dispatched = true; + } + }); + }); + return dispatched; + } + _dispatchMousedown(originalEvent, originalTarget) { + const button = originalEvent.button; + if (button != 0 && button != 2 && button != 1 && button !== void 0) { + return; + } + const event = this.getEvent(originalEvent); + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + if (target) { + const id = event.id; + let dragged = false; + eachTargets(target, (obj) => { + const info = { id, value: obj }; + this._mousedown.push(info); + if (!dragged && this._dispatchEvent("pointerdown", obj, event)) { + dragged = true; + const has = this._dragging.some((x2) => { + return x2.value === obj && x2.id === id; + }); + if (!has) { + this._dragging.push(info); + } + } + return true; + }); + } + } + _dispatchGlobalMousemove(originalEvent, originalTarget, native) { + const event = this.getEvent(originalEvent); + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + event.native = native; + if (target) { + this._hovering.forEach((obj) => { + if (!obj.contains(target)) { + this._hovering.delete(obj); + if (obj.cursorOverStyle) { + setStyle(document.body, "cursor", obj._replacedCursorStyle); + } + this._dispatchEvent("pointerout", obj, event); + } + }); + if (event.native) { + eachTargets(target, (obj) => { + if (!this._hovering.has(obj)) { + this._hovering.add(obj); + if (obj.cursorOverStyle) { + obj._replacedCursorStyle = getStyle(document.body, "cursor"); + setStyle(document.body, "cursor", obj.cursorOverStyle); + } + this._dispatchEvent("pointerover", obj, event); + } + return true; + }); + } + } else { + this._hovering.forEach((obj) => { + if (obj.cursorOverStyle) { + setStyle(document.body, "cursor", obj._replacedCursorStyle); + } + this._dispatchEvent("pointerout", obj, event); + }); + this._hovering.clear(); + } + this._dispatchEventAll("globalpointermove", event); + } + removeHovering(graphics) { + this._hovering.delete(graphics); + if (graphics.cursorOverStyle) { + setStyle(document.body, "cursor", graphics._replacedCursorStyle); + } + } + _dispatchGlobalMouseup(originalEvent, native) { + const event = this.getEvent(originalEvent); + event.native = native; + this._dispatchEventAll("globalpointerup", event); + } + _dispatchDragMove(originalEvent) { + if (this._dragging.length !== 0) { + const event = this.getEvent(originalEvent); + const id = event.id; + this._dragging.forEach((obj) => { + if (obj.id === id) { + this._dispatchEvent("pointermove", obj.value, event); + } + }); + } + } + _dispatchDragEnd(originalEvent, originalTarget) { + const button = originalEvent.button; + let clickevent; + if (button == 0 || button === void 0) { + clickevent = "click"; + } else if (button == 2) { + clickevent = "rightclick"; + } else if (button == 1) { + clickevent = "middleclick"; + } else { + return; + } + const event = this.getEvent(originalEvent); + const id = event.id; + if (this._mousedown.length !== 0) { + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + if (target) { + this._mousedown.forEach((obj) => { + if (obj.id === id && obj.value.contains(target)) { + this._dispatchEvent(clickevent, obj.value, event); + } + }); + } + this._mousedown.length = 0; + } + if (this._dragging.length !== 0) { + this._dragging.forEach((obj) => { + if (obj.id === id) { + this._dispatchEvent("pointerup", obj.value, event); + } + }); + this._dragging.length = 0; + } + } + _dispatchDoubleClick(originalEvent, originalTarget) { + const event = this.getEvent(originalEvent); + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + if (target) { + eachTargets(target, (obj) => { + if (this._dispatchEvent("dblclick", obj, event)) { + return false; + } else { + return true; + } + }); + } + } + _dispatchWheel(originalEvent, originalTarget) { + const event = this.getEvent(originalEvent); + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + if (target) { + eachTargets(target, (obj) => { + if (this._dispatchEvent("wheel", obj, event)) { + return false; + } else { + return true; + } + }); + } + } + _makeSharedEvent(key, f) { + if (this._listeners[key] === void 0) { + const listener = f(); + this._listeners[key] = new CounterDisposer(() => { + delete this._listeners[key]; + listener.dispose(); + }); + } + return this._listeners[key].increment(); + } + _onPointerEvent(name, f) { + let native = false; + let timer = null; + function clear() { + timer = null; + native = false; + } + return new MultiDisposer([ + new Disposer(() => { + if (timer !== null) { + clearTimeout(timer); + } + clear(); + }), + addEventListener(this.view, getRendererEvent(name), (_) => { + native = true; + if (timer !== null) { + clearTimeout(timer); + } + timer = window.setTimeout(clear, 0); + }), + onPointerEvent(window, name, (ev, target) => { + if (timer !== null) { + clearTimeout(timer); + timer = null; + } + f(ev, target, native); + native = false; + }) + ]); + } + // This ensures that only a single DOM event is added (e.g. only a single mousemove event listener) + _initEvent(key) { + switch (key) { + case "globalpointermove": + case "pointerover": + case "pointerout": + return this._makeSharedEvent("pointermove", () => { + const listener = (events, target, native) => { + this._lastPointerMoveEvent = { events, target, native }; + each(events, (event) => { + this._dispatchGlobalMousemove(event, target, native); + }); + }; + return new MultiDisposer([ + this._onPointerEvent("pointerdown", listener), + this._onPointerEvent("pointermove", listener) + ]); + }); + case "globalpointerup": + return this._makeSharedEvent("pointerup", () => { + const mouseup = this._onPointerEvent("pointerup", (events, target, native) => { + each(events, (event) => { + this._dispatchGlobalMouseup(event, native); + }); + this._lastPointerMoveEvent = { events, target, native }; + }); + const pointercancel = this._onPointerEvent("pointercancel", (events, target, native) => { + each(events, (event) => { + this._dispatchGlobalMouseup(event, native); + }); + this._lastPointerMoveEvent = { events, target, native }; + }); + return new Disposer(() => { + mouseup.dispose(); + pointercancel.dispose(); + }); + }); + case "click": + case "rightclick": + case "middleclick": + case "pointerdown": + /* + return this._makeSharedEvent("pointerdown", () => { + return this._onPointerEvent("pointerdown", (event, target, native) => { + this._lastPointerMoveEvent = { event, target, native }; + this._dispatchMousedown(event) + }); + }); + */ + case "pointermove": + case "pointerup": + return this._makeSharedEvent("pointerdown", () => { + const mousedown = this._onPointerEvent("pointerdown", (events, target) => { + each(events, (ev) => { + this._dispatchMousedown(ev, target); + }); + }); + const mousemove = this._onPointerEvent("pointermove", (ev) => { + each(ev, (ev2) => { + this._dispatchDragMove(ev2); + }); + }); + const mouseup = this._onPointerEvent("pointerup", (ev, target) => { + each(ev, (ev2) => { + this._dispatchDragEnd(ev2, target); + }); + }); + const pointercancel = this._onPointerEvent("pointercancel", (ev, target) => { + each(ev, (ev2) => { + this._dispatchDragEnd(ev2, target); + }); + }); + return new Disposer(() => { + mousedown.dispose(); + mousemove.dispose(); + mouseup.dispose(); + pointercancel.dispose(); + }); + }); + case "dblclick": + return this._makeSharedEvent("dblclick", () => { + return this._onPointerEvent("dblclick", (ev, target) => { + each(ev, (ev2) => { + this._dispatchDoubleClick(ev2, target); + }); + }); + }); + case "wheel": + return this._makeSharedEvent("wheel", () => { + return addEventListener(this.view, getRendererEvent("wheel"), (event) => { + this._dispatchWheel(event, getEventTarget(event)); + }, { passive: false }); + }); + } + } + _addEvent(object, key, callback, context) { + let events = this._events[key]; + if (events === void 0) { + events = this._events[key] = { + disposer: this._initEvent(key), + callbacks: [], + dispatching: false, + cleanup: false + }; + } + const listener = { object, context, callback, disposed: false }; + events.callbacks.push(listener); + return new Disposer(() => { + listener.disposed = true; + if (events.dispatching) { + events.cleanup = true; + } else { + removeFirst(events.callbacks, listener); + if (events.callbacks.length === 0) { + events.disposer.dispose(); + delete this._events[key]; + } + } + }); + } + getCanvas(root2, options) { + this.render(root2); + if (!options) { + options = {}; + } + let scale = this.resolution; + let canvasWidth = Math.floor(this._calculatedWidth * this.resolution); + let canvasHeight = Math.floor(this._calculatedHeight * this.resolution); + if (options.minWidth && options.minWidth > canvasWidth) { + let minScale = options.minWidth / canvasWidth; + if (minScale > scale) { + scale = minScale * this.resolution; + } + } + if (options.minHeight && options.minHeight > canvasHeight) { + let minScale = options.minHeight / canvasHeight; + if (minScale > scale) { + scale = minScale * this.resolution; + } + } + if (options.maxWidth && options.maxWidth < canvasWidth) { + let maxScale = options.maxWidth / canvasWidth; + if (maxScale < scale) { + scale = maxScale * this.resolution; + } + } + if (options.maxHeight && options.maxHeight > canvasHeight) { + let maxScale = options.maxHeight / canvasHeight; + if (maxScale < scale) { + scale = maxScale * this.resolution; + } + } + if (options.maintainPixelRatio) { + scale /= this.resolution; + } + const canvases = []; + let forceRender = false; + const canvas = document.createElement("canvas"); + if (scale != this.resolution) { + forceRender = true; + canvasWidth = canvasWidth * scale / this.resolution; + canvasHeight = canvasHeight * scale / this.resolution; + } + canvas.width = canvasWidth; + canvas.height = canvasHeight; + canvas.style.position = "fixed"; + canvas.style.top = "-10000px"; + this.view.appendChild(canvas); + canvases.push(canvas); + const context = canvas.getContext("2d"); + let width = 0; + let height = 0; + let needRerender = false; + each(this.layers, (layer) => { + if (layer && layer.visible) { + if (layer.tainted || forceRender) { + needRerender = true; + layer.exportableView = layer.view; + layer.exportableContext = layer.context; + layer.view = document.createElement("canvas"); + layer.view.style.position = "fixed"; + layer.view.style.top = "-10000px"; + this.view.appendChild(layer.view); + canvases.push(layer.view); + let extraX = 0; + let extraY = 0; + if (layer.margin) { + extraX += layer.margin.left || 0 + layer.margin.right || 0; + extraY += layer.margin.top || 0 + layer.margin.bottom || 0; + } + layer.view.width = canvasWidth + extraX; + layer.view.height = canvasHeight + extraY; + layer.context = layer.view.getContext("2d"); + layer.dirty = true; + layer.scale = scale; + } + } + }); + if (needRerender) { + this._omitTainted = true; + this.render(root2); + this._omitTainted = false; + } + each(this.layers, (layer) => { + if (layer && layer.visible) { + let x2 = 0; + let y2 = 0; + if (layer.margin) { + x2 = -(layer.margin.left || 0) * this.resolution; + y2 = -(layer.margin.top || 0) * this.resolution; + } + context.drawImage(layer.view, x2, y2); + if (layer.exportableView) { + layer.view = layer.exportableView; + layer.exportableView = void 0; + } + if (layer.exportableContext) { + layer.context = layer.exportableContext; + layer.exportableContext = void 0; + } + if (width < layer.view.clientWidth) { + width = layer.view.clientWidth; + } + if (height < layer.view.clientHeight) { + height = layer.view.clientHeight; + } + layer.scale = void 0; + } + }); + canvas.style.width = width + "px"; + canvas.style.height = height + "px"; + each(canvases, (canvas2) => { + canvas2.style.position = ""; + canvas2.style.top = ""; + this.view.removeChild(canvas2); + }); + return canvas; + } + }; + var GhostLayer = class { + constructor() { + this.margin = { + left: 0, + right: 0, + top: 0, + bottom: 0 + }; + this._resolution = 1; + this._width = 0; + this._height = 0; + this.view = document.createElement("canvas"); + this.context = this.view.getContext("2d", { alpha: false, willReadFrequently: true }); + this.context.imageSmoothingEnabled = false; + this.view.style.position = "absolute"; + this.view.style.top = "0px"; + this.view.style.left = "0px"; + } + resize(canvasWidth, canvasHeight, domWidth, domHeight, resolution) { + this._resolution = resolution; + canvasWidth += this.margin.left + this.margin.right; + canvasHeight += this.margin.top + this.margin.bottom; + domWidth += this.margin.left + this.margin.right; + domHeight += this.margin.top + this.margin.bottom; + this.view.style.left = -this.margin.left + "px"; + this.view.style.top = -this.margin.top + "px"; + this._width = Math.floor(canvasWidth * resolution); + this._height = Math.floor(canvasHeight * resolution); + this.view.width = this._width; + this.view.style.width = domWidth + "px"; + this.view.height = this._height; + this.view.style.height = domHeight + "px"; + } + getImageData(point, bbox) { + return this.context.getImageData( + // TODO should this round ? + Math.round((point.x - bbox.left) / bbox.width * this._width), + Math.round((point.y - bbox.top) / bbox.height * this._height), + 1, + 1 + ); + } + getImageArray(point) { + if (!this.imageArray) { + this.imageArray = this.context.getImageData(0, 0, this._width, this._height).data; + } + const data = this.imageArray; + const x2 = Math.round(point.x * this._resolution); + const y2 = Math.round(point.y * this._resolution); + const i = (y2 * this._width + x2) * 4; + return [data[i], data[i + 1], data[i + 2], data[i + 3]]; + } + setMargin(layers) { + this.margin.left = 0; + this.margin.right = 0; + this.margin.top = 0; + this.margin.bottom = 0; + each(layers, (layer) => { + if (layer.margin) { + this.margin.left = Math.max(this.margin.left, layer.margin.left); + this.margin.right = Math.max(this.margin.right, layer.margin.right); + this.margin.top = Math.max(this.margin.top, layer.margin.top); + this.margin.bottom = Math.max(this.margin.bottom, layer.margin.bottom); + } + }); + } + clear() { + this.context.save(); + this.context.fillStyle = "#000"; + this.context.fillRect(0, 0, this._width, this._height); + } + }; + var CanvasLayer = class { + constructor(view, context) { + this.tainted = true; + this.order = 0; + this.visible = true; + this.dirty = true; + this._width = 0; + this._height = 0; + this.view = view; + this.context = context; + } + resize(canvasWidth, canvasHeight, domWidth, domHeight, resolution) { + if (this.width != null) { + canvasWidth = this.width; + domWidth = this.width; + } + if (this.height != null) { + canvasHeight = this.height; + domHeight = this.height; + } + if (this.margin) { + canvasWidth += this.margin.left + this.margin.right; + canvasHeight += this.margin.top + this.margin.bottom; + domWidth += this.margin.left + this.margin.right; + domHeight += this.margin.top + this.margin.bottom; + this.view.style.left = -this.margin.left + "px"; + this.view.style.top = -this.margin.top + "px"; + } else { + this.view.style.left = "0px"; + this.view.style.top = "0px"; + } + this._width = Math.floor(canvasWidth * resolution); + this._height = Math.floor(canvasHeight * resolution); + this.view.width = this._width; + this.view.style.width = domWidth + "px"; + this.view.height = this._height; + this.view.style.height = domHeight + "px"; + } + clear() { + this.context.save(); + this.context.clearRect(0, 0, this._width, this._height); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/Root.js + function rAF(fps, callback) { + if (fps == null) { + requestAnimationFrame(callback); + } else { + setTimeout(() => { + requestAnimationFrame(callback); + }, 1e3 / fps); + } + } + var Root = class _Root { + constructor(id, settings = {}, isReal) { + this._isDirty = false; + this._isDirtyParents = false; + this._isDirtyAnimation = false; + this._dirty = {}; + this._dirtyParents = {}; + this._dirtyBounds = {}; + this._dirtyPositions = {}; + this._ticker = null; + this._tickers = []; + this._updateTick = true; + this.skipRenderFrame = false; + this.events = new EventDispatcher(); + this.animationTime = null; + this._animations = []; + this.language = Language.new(this, {}); + this.locale = en_default; + this.utc = false; + this.numberFormatter = NumberFormatter.new(this, {}); + this.dateFormatter = DateFormatter.new(this, {}); + this.durationFormatter = DurationFormatter.new(this, {}); + this.tabindex = 0; + this._tabindexes = []; + this._a11yD = false; + this._focusElementDirty = false; + this._skipNextGroupJump = true; + this.verticalLayout = VerticalLayout.new(this, {}); + this.horizontalLayout = HorizontalLayout.new(this, {}); + this.gridLayout = GridLayout.new(this, {}); + this._paused = false; + this.autoResize = true; + this._fontHash = ""; + this._isDisposed = false; + this._disposers = []; + this._tooltips = []; + this._htmlEnabledContainers = []; + this.entitiesById = {}; + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + this._settings = settings; + if (settings.accessible == false) { + this._a11yD = true; + } + if (settings.useSafeResolution == null) { + settings.useSafeResolution = true; + } + let resolution; + if (settings.useSafeResolution) { + resolution = getSafeResolution(); + } + this._renderer = new CanvasRenderer(resolution); + let dom; + if (id instanceof HTMLElement) { + dom = id; + } else { + dom = document.getElementById(id); + } + each(registry.rootElements, (root2) => { + if (root2.dom === dom) { + if (registry.autoDispose) { + root2.dispose(); + } else { + throw new Error("You cannot have multiple Roots on the same DOM node"); + } + } + }); + this.interfaceColors = InterfaceColors.new(this, {}); + if (dom === null) { + throw new Error("Could not find HTML element with id `" + id + "`"); + } + this.dom = dom; + let inner = document.createElement("div"); + inner.style.position = "relative"; + inner.style.width = "100%"; + inner.style.height = "100%"; + dom.appendChild(inner); + const tooltipContainerBounds = settings.tooltipContainerBounds; + if (tooltipContainerBounds) { + this._tooltipContainerSettings = tooltipContainerBounds; + } + this._inner = inner; + this._updateComputedStyles(); + registry.rootElements.push(this); + } + static new(id, settings) { + const root2 = new _Root(id, settings, true); + root2._init(); + return root2; + } + moveDOM(id) { + let dom; + if (id instanceof HTMLElement) { + dom = id; + } else { + dom = document.getElementById(id); + } + if (dom) { + while (this.dom.childNodes.length > 0) { + dom.appendChild(this.dom.childNodes[0]); + } + this.dom = dom; + this._initResizeSensor(); + this.resize(); + } + } + _handleLogo() { + if (this._logo) { + const w = this.dom.offsetWidth; + const h = this.dom.offsetHeight; + if (w <= 150 || h <= 60) { + this._logo.hide(); + } else { + this._logo.show(); + } + } + } + _showBranding() { + if (!this._logo) { + const logo = this.tooltipContainer.children.push(Container.new(this, { + interactive: true, + interactiveChildren: false, + position: "absolute", + setStateOnChildren: true, + paddingTop: 9, + paddingRight: 9, + paddingBottom: 9, + paddingLeft: 9, + scale: 0.6, + y: percent(100), + centerY: p100, + tooltipY: 10, + tooltipText: "Created using amCharts 5", + tooltipX: p100, + cursorOverStyle: "pointer", + background: Rectangle.new(this, { + fill: color(4671320), + fillOpacity: 0, + tooltipY: 5 + }) + })); + logo.set("tooltip", this.systemTooltip); + logo.events.on("click", () => { + window.open("https://www.amcharts.com/", "_blank"); + }); + logo.states.create("hover", {}); + const m = logo.children.push(Graphics.new(this, { + stroke: color(13421772), + strokeWidth: 3, + svgPath: "M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6", + dx: -50, + strokeOpacity: 0 + })); + m.states.create("hover", { stroke: color(3976191) }); + const a = logo.children.push(Graphics.new(this, { + stroke: color(8947848), + strokeWidth: 3, + svgPath: "M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0", + dx: 50, + strokeOpacity: 0 + })); + const easing = out(cubic); + const duration = 1500; + logo.setTimeout(() => { + a.animate({ + key: "strokeOpacity", + to: 1, + duration, + easing + }); + a.animate({ + key: "dx", + to: 0, + duration, + easing + }); + m.animate({ + key: "dx", + to: 0, + duration, + easing + }); + m.animate({ + key: "strokeOpacity", + to: 1, + duration, + easing + }); + }, 3e3); + a.states.create("hover", { stroke: color(4671320) }); + this._logo = logo; + this._handleLogo(); + } + } + _getRealSize() { + return this.dom.getBoundingClientRect(); + } + _getCalculatedSize(rect) { + if (this._settings.calculateSize) { + return this._settings.calculateSize(rect); + } else { + return { + width: rect.width, + height: rect.height + }; + } + } + _init() { + const settings = this._settings; + if (settings.accessible !== false) { + if (settings.focusable) { + this._inner.setAttribute("focusable", "true"); + this._inner.setAttribute("tabindex", this.tabindex + ""); + } + if (settings.ariaLabel) { + this._inner.setAttribute("aria-label", settings.ariaLabel); + } + if (settings.role) { + this._inner.setAttribute("role", settings.role); + } + } + const renderer = this._renderer; + const rect = this._getRealSize(); + const size = this._getCalculatedSize(rect); + const width = Math.floor(size.width); + const height = Math.floor(size.height); + const realWidth = Math.floor(rect.width); + const realHeight = Math.floor(rect.height); + const rootContainer = Container.new(this, { + visible: true, + width, + height + }); + this._rootContainer = rootContainer; + this._rootContainer._defaultThemes.push(DefaultTheme.new(this)); + const container = rootContainer.children.push(Container.new(this, { visible: true, width: p100, height: p100 })); + this.container = container; + renderer.resize(realWidth, realHeight, width, height); + this._inner.appendChild(renderer.view); + this._initResizeSensor(); + const htmlElementContainer = document.createElement("div"); + this._htmlElementContainer = htmlElementContainer; + htmlElementContainer.className = "am5-html-container"; + htmlElementContainer.style.position = "absolute"; + htmlElementContainer.style.pointerEvents = "none"; + if (!this._tooltipContainerSettings) { + htmlElementContainer.style.overflow = "hidden"; + } + this._inner.appendChild(htmlElementContainer); + if (this._a11yD !== true) { + const readerAlertElement = document.createElement("div"); + readerAlertElement.className = "am5-reader-container"; + readerAlertElement.setAttribute("role", "alert"); + readerAlertElement.style.position = "absolute"; + readerAlertElement.style.width = "1px"; + readerAlertElement.style.height = "1px"; + readerAlertElement.style.overflow = "hidden"; + readerAlertElement.style.clip = "rect(1px, 1px, 1px, 1px)"; + this._readerAlertElement = readerAlertElement; + this._inner.appendChild(this._readerAlertElement); + const focusElementContainer = document.createElement("div"); + focusElementContainer.className = "am5-focus-container"; + focusElementContainer.style.position = "absolute"; + focusElementContainer.style.pointerEvents = "none"; + focusElementContainer.style.top = "0px"; + focusElementContainer.style.left = "0px"; + focusElementContainer.style.overflow = "hidden"; + focusElementContainer.style.width = width + "px"; + focusElementContainer.style.height = height + "px"; + focusElementContainer.setAttribute("role", "graphics-document"); + setInteractive(focusElementContainer, false); + this._focusElementContainer = focusElementContainer; + this._inner.appendChild(this._focusElementContainer); + const tooltipElementContainer = document.createElement("div"); + this._tooltipElementContainer = tooltipElementContainer; + tooltipElementContainer.className = "am5-tooltip-container"; + this._inner.appendChild(tooltipElementContainer); + if (supports("keyboardevents")) { + this._disposers.push(addEventListener(window, "keydown", (ev) => { + const eventKey = getEventKey(ev); + if (eventKey == "Shift") { + this._isShift = true; + } else if (eventKey == "Tab") { + this._isShift = ev.shiftKey; + } + })); + this._disposers.push(addEventListener(window, "keyup", (ev) => { + const eventKey = getEventKey(ev); + if (eventKey == "Shift") { + this._isShift = false; + } + })); + this._disposers.push(addEventListener(focusElementContainer, "click", () => { + const focusedSprite = this._focusedSprite; + if (focusedSprite) { + const announceText = focusedSprite.get("clickAnnounceText", ""); + if (announceText !== "") { + this.readerAlert(announceText); + } + const downEvent = renderer.getEvent(new MouseEvent("click")); + focusedSprite.events.dispatch("click", { + type: "click", + originalEvent: downEvent.event, + point: downEvent.point, + simulated: true, + target: focusedSprite + }); + } + })); + this._disposers.push(addEventListener(focusElementContainer, "keydown", (ev) => { + const focusedSprite = this._focusedSprite; + if (focusedSprite) { + if (ev.key == "Escape") { + blur(); + this._focusedSprite = void 0; + } + let dragOffsetX = 0; + let dragOffsetY = 0; + const eventKey = getEventKey(ev); + switch (eventKey) { + case "Enter": + case " ": + const announceText = focusedSprite.get("clickAnnounceText", ""); + if (announceText !== "") { + this.readerAlert(announceText); + } + if (eventKey == " " && focusedSprite.get("role") != "checkbox") { + return; + } + ev.preventDefault(); + const downEvent = renderer.getEvent(new MouseEvent("mouse")); + focusedSprite.events.dispatch("click", { + type: "click", + originalEvent: downEvent.event, + point: downEvent.point, + simulated: true, + target: focusedSprite + }); + return; + case "ArrowLeft": + dragOffsetX = -6; + break; + case "ArrowRight": + dragOffsetX = 6; + break; + case "ArrowUp": + dragOffsetY = -6; + break; + case "ArrowDown": + dragOffsetY = 6; + break; + default: + return; + } + if (dragOffsetX != 0 || dragOffsetY != 0) { + ev.preventDefault(); + if (!focusedSprite.isDragging()) { + this._keyboardDragPoint = { + x: 0, + y: 0 + }; + const downEvent = renderer.getEvent(new MouseEvent("mousedown", { + clientX: 0, + clientY: 0 + })); + downEvent.point = { + x: 0, + y: 0 + }; + if (focusedSprite.events.isEnabled("pointerdown")) { + focusedSprite.events.dispatch("pointerdown", { + type: "pointerdown", + originalEvent: downEvent.event, + point: downEvent.point, + simulated: true, + target: focusedSprite + }); + } + } else { + } + const dragPoint = this._keyboardDragPoint; + dragPoint.x += dragOffsetX; + dragPoint.y += dragOffsetY; + const moveEvent = renderer.getEvent(new MouseEvent("mousemove", { + clientX: dragPoint.x, + clientY: dragPoint.y + }), false); + if (focusedSprite.events.isEnabled("globalpointermove")) { + focusedSprite.events.dispatch("globalpointermove", { + type: "globalpointermove", + originalEvent: moveEvent.event, + point: moveEvent.point, + simulated: true, + target: focusedSprite + }); + } + } + } + })); + this._disposers.push(addEventListener(focusElementContainer, "keyup", (ev) => { + if (this._focusedSprite) { + const focusedSprite = this._focusedSprite; + const eventKey = getEventKey(ev); + switch (eventKey) { + case "ArrowLeft": + case "ArrowRight": + case "ArrowUp": + case "ArrowDown": + if (focusedSprite.isDragging()) { + const dragPoint = this._keyboardDragPoint; + const upEvent = renderer.getEvent(new MouseEvent("mouseup", { + clientX: dragPoint.x, + clientY: dragPoint.y + })); + if (focusedSprite.events.isEnabled("globalpointerup")) { + focusedSprite.events.dispatch("globalpointerup", { + type: "globalpointerup", + originalEvent: upEvent.event, + point: upEvent.point, + simulated: true, + target: focusedSprite + }); + } + this._keyboardDragPoint = void 0; + return; + } else if (focusedSprite.get("focusableGroup")) { + const group2 = focusedSprite.get("focusableGroup"); + const items = this._tabindexes.filter((item) => { + return item.get("focusableGroup") == group2 && item.getPrivate("focusable") !== false && item.isVisibleDeep() ? true : false; + }); + let index = items.indexOf(focusedSprite); + const lastIndex = items.length - 1; + index += eventKey == "ArrowRight" || eventKey == "ArrowDown" ? 1 : -1; + if (index < 0) { + index = lastIndex; + } else if (index > lastIndex) { + index = 0; + } + focus(items[index].getPrivate("focusElement").dom); + } + break; + case "Tab": + const group = focusedSprite.get("focusableGroup"); + if (group && this._isShift) { + if (!this._skipNextGroupJump) { + this._focusNext(focusedSprite.getPrivate("focusElement").dom, -1, group); + this._skipNextGroupJump = true; + } + return; + } + break; + } + } + })); + } + } + this._startTicker(); + this.setThemes([]); + this._addTooltip(); + if (!this._hasLicense()) { + this._showBranding(); + } + } + /** + * Returns an instance of a universal [[Tooltip]] instance. + * @since 5.14.0 + */ + get systemTooltip() { + if (!this._systemTooltip) { + const tooltip = Tooltip.new(this, { + themeTags: ["system"] + }); + this._systemTooltip = tooltip; + } + return this._systemTooltip; + } + _initResizeSensor() { + if (this._resizeSensorDisposer) { + this._resizeSensorDisposer.dispose(); + } + this._resizeSensorDisposer = new ResizeSensor(this.dom, () => { + if (this.autoResize) { + this.resize(); + } + }); + this._disposers.push(this._resizeSensorDisposer); + } + /** + * If automatic resizing of char is disabled (`root.autoResize = false`), it + * can be resized manually by calling this method. + */ + resize() { + const rect = this._getRealSize(); + const size = this._getCalculatedSize(rect); + const w = Math.floor(size.width); + const h = Math.floor(size.height); + if (w > 0 && h > 0) { + const realWidth = Math.floor(rect.width); + const realHeight = Math.floor(rect.height); + const htmlElementContainer = this._htmlElementContainer; + htmlElementContainer.style.width = w + "px"; + htmlElementContainer.style.height = h + "px"; + if (this._a11yD !== true) { + const focusElementContainer = this._focusElementContainer; + focusElementContainer.style.width = w + "px"; + focusElementContainer.style.height = h + "px"; + } + this._renderer.resize(realWidth, realHeight, w, h); + const rootContainer = this._rootContainer; + rootContainer.setPrivate("width", w); + rootContainer.setPrivate("height", h); + this._render(); + this._handleLogo(); + } + } + _render() { + if (this.skipRenderFrame) { + this.skipRenderFrame = false; + return; + } + this._renderer.render(this._rootContainer._display); + if (this._focusElementDirty) { + this._updateCurrentFocus(); + this._focusElementDirty = false; + } + } + _runTickers(currentTime) { + each(this._tickers, (f) => { + f(currentTime); + }); + } + _runAnimations(currentTime) { + let running = 0; + keepIf(this._animations, (animation) => { + const state = animation._runAnimation(currentTime); + if (state === AnimationState.Stopped) { + return false; + } else if (state === AnimationState.Playing) { + ++running; + return true; + } else { + return true; + } + }); + this._isDirtyAnimation = false; + return running === 0; + } + _runDirties() { + let allParents = {}; + while (this._isDirtyParents) { + this._isDirtyParents = false; + entries(this._dirtyParents).forEach(([key, parent]) => { + delete this._dirtyParents[key]; + if (!parent.isDisposed()) { + allParents[parent.uid] = parent; + parent._prepareChildren(); + } + }); + } + entries(allParents).forEach(([_key, parent]) => { + parent._updateChildren(); + }); + const objects = []; + entries(this._dirty).forEach(([key, entity]) => { + if (entity.isDisposed()) { + delete this._dirty[key]; + } else { + objects.push(entity); + entity._beforeChanged(); + } + }); + objects.forEach((entity) => { + entity._changed(); + delete this._dirty[entity.uid]; + entity._clearDirty(); + }); + this._isDirty = false; + const depths = {}; + const bounds = []; + entries(this._dirtyBounds).forEach(([key, entity]) => { + delete this._dirtyBounds[key]; + if (!entity.isDisposed()) { + depths[entity.uid] = entity.depth(); + bounds.push(entity); + } + }); + this._positionHTMLElements(); + bounds.sort((x2, y2) => { + return compare(depths[y2.uid], depths[x2.uid]); + }); + bounds.forEach((entity) => { + entity._updateBounds(); + }); + const dirtyPositions = this._dirtyPositions; + entries(dirtyPositions).forEach(([key, sprite]) => { + delete dirtyPositions[key]; + if (!sprite.isDisposed()) { + sprite._updatePosition(); + } + }); + objects.forEach((entity) => { + entity._afterChanged(); + }); + entries(allParents).forEach(([_key, parent]) => { + parent._childrenPrep = false; + parent._childrenUpdt = false; + }); + } + _renderFrame(currentTime) { + if (this._updateTick) { + if (this.events.isEnabled("framestarted")) { + this.events.dispatch("framestarted", { + type: "framestarted", + target: this, + timestamp: currentTime + }); + } + this._checkComputedStyles(); + this._runTickers(currentTime); + const animationDone = this._runAnimations(currentTime); + this._runDirties(); + this._render(); + this._renderer.resetImageArray(); + this._positionHTMLElements(); + if (this.events.isEnabled("frameended")) { + this.events.dispatch("frameended", { + type: "frameended", + target: this, + timestamp: currentTime + }); + } + return this._tickers.length === 0 && animationDone && !this._isDirtyAnimation && !this._isDirty; + } else { + return true; + } + } + _runTicker(currentTime, now) { + if (!this.isDisposed()) { + this.animationTime = currentTime; + const done = this._renderFrame(currentTime); + if (done) { + this._ticker = null; + this.animationTime = null; + } else { + if (!this._paused) { + if (now) { + this._ticker; + } else { + rAF(this.fps, this._ticker); + } + } + } + } + } + _runTickerNow(timeout = 1e4) { + if (!this.isDisposed()) { + const endTime = performance.now() + timeout; + for (; ; ) { + const currentTime = performance.now(); + if (currentTime >= endTime) { + this.animationTime = null; + break; + } + this.animationTime = currentTime; + const done = this._renderFrame(currentTime); + if (done) { + this.animationTime = null; + break; + } + } + } + } + _startTicker() { + if (this._ticker === null) { + this.animationTime = null; + this._ticker = (currentTime) => { + this._runTicker(currentTime); + }; + rAF(this.fps, this._ticker); + } + } + /** + * Returns whether the root is updating or not. + */ + get updateTick() { + return this._updateTick; + } + /** + * Enables or disables the root updating. + */ + set updateTick(value) { + this._updateTick = value; + if (value) { + this._startTicker(); + } + } + _addDirtyEntity(entity) { + this._isDirty = true; + if (this._dirty[entity.uid] === void 0) { + this._dirty[entity.uid] = entity; + } + this._startTicker(); + } + _addDirtyParent(parent) { + this._isDirty = true; + this._isDirtyParents = true; + if (this._dirtyParents[parent.uid] === void 0) { + this._dirtyParents[parent.uid] = parent; + } + this._startTicker(); + } + _addDirtyBounds(entity) { + this._isDirty = true; + if (this._dirtyBounds[entity.uid] === void 0) { + this._dirtyBounds[entity.uid] = entity; + } + this._startTicker(); + } + _addDirtyPosition(sprite) { + this._isDirty = true; + if (this._dirtyPositions[sprite.uid] === void 0) { + this._dirtyPositions[sprite.uid] = sprite; + } + this._startTicker(); + } + _addAnimation(animation) { + this._isDirtyAnimation = true; + if (this._animations.indexOf(animation) === -1) { + this._animations.push(animation); + } + this._startTicker(); + } + _markDirty() { + this._isDirty = true; + } + _markDirtyRedraw() { + this.events.once("frameended", () => { + this._isDirty = true; + this._startTicker(); + }); + } + eachFrame(f) { + this._tickers.push(f); + this._startTicker(); + return new Disposer(() => { + removeFirst(this._tickers, f); + }); + } + markDirtyGlobal(container) { + if (!container) { + container = this.container; + } + container.walkChildren((child) => { + if (child instanceof Container) { + this.markDirtyGlobal(child); + } + child.markDirty(); + child.markDirtyBounds(); + }); + } + /** + * Returns width of the target container, in pixels. + * + * @return Width + */ + width() { + return Math.floor(this._getCalculatedSize(this._getRealSize()).width); + } + /** + * Returns height of the target container, in pixels. + * + * @return Height + */ + height() { + return Math.floor(this._getCalculatedSize(this._getRealSize()).height); + } + /** + * Disposes root and all the content in it. + */ + dispose() { + if (!this._isDisposed) { + this._isDisposed = true; + this._rootContainer.dispose(); + this._renderer.dispose(); + this.horizontalLayout.dispose(); + this.verticalLayout.dispose(); + this.interfaceColors.dispose(); + each(this._disposers, (x2) => { + x2.dispose(); + }); + if (this._inner) { + removeElement(this._inner); + } + remove(registry.rootElements, this); + } + } + /** + * Returns `true` if root element is disposed. + * + * @return Disposed? + */ + isDisposed() { + return this._isDisposed; + } + /** + * Triggers screen reader read out a message. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/accessibility/} for more info + * @param text Alert text + */ + readerAlert(text) { + if (this._a11yD !== true) { + const element = this._readerAlertElement; + text = stripTags(text); + if (element.innerHTML == text) { + element.innerHTML = ""; + } + element.innerHTML = text; + } + } + /** + * Sets themes to be used for the chart. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/themes/} for more info + * @param themes A list of themes + */ + setThemes(themes) { + this._rootContainer.set("themes", themes); + const tooltipContainer = this.tooltipContainer; + if (tooltipContainer) { + tooltipContainer._applyThemes(); + } + const interfaceColors = this.interfaceColors; + if (interfaceColors) { + interfaceColors._applyThemes(); + } + } + _addTooltip() { + if (!this.tooltipContainer) { + const tooltipContainerSettings = this._tooltipContainerSettings; + const tooltipContainer = this._rootContainer.children.push(Container.new(this, { + position: "absolute", + isMeasured: false, + width: p100, + height: p100, + layer: tooltipContainerSettings ? 35 : 30, + layerMargin: tooltipContainerSettings ? tooltipContainerSettings : void 0 + })); + this.tooltipContainer = tooltipContainer; + const tooltip = Tooltip.new(this, {}); + this.container.set("tooltip", tooltip); + tooltip.hide(0); + this._tooltip = tooltip; + } + } + /** + * Accesibility + */ + _registerTabindexOrder(target) { + if (this._a11yD == true) { + return; + } + if (target.get("focusable")) { + pushOne(this._tabindexes, target); + } else { + remove(this._tabindexes, target); + } + this._invalidateTabindexes(); + } + _unregisterTabindexOrder(target) { + if (this._a11yD == true) { + return; + } + remove(this._tabindexes, target); + this._invalidateTabindexes(); + } + _invalidateTabindexes() { + if (this._a11yD == true) { + return; + } + this._tabindexes.sort((a, b) => { + const aindex = a.get("tabindexOrder", 0); + const bindex = b.get("tabindexOrder", 0); + if (aindex == bindex) { + return 0; + } else if (aindex > bindex) { + return 1; + } else { + return -1; + } + }); + const groups = []; + each(this._tabindexes, (item, index) => { + if (!item.getPrivate("focusElement")) { + this._makeFocusElement(index, item); + } else { + this._moveFocusElement(index, item); + } + const group = item.get("focusableGroup"); + if (group && item.getPrivate("focusable") !== false) { + if (groups.indexOf(group) !== -1) { + item.getPrivate("focusElement").dom.setAttribute("tabindex", "-1"); + } else { + groups.push(group); + } + } + }); + } + _updateCurrentFocus() { + if (this._a11yD == true) { + return; + } + if (this._focusedSprite) { + this._decorateFocusElement(this._focusedSprite); + this._positionFocusElement(this._focusedSprite); + } + } + _decorateFocusElement(target, focusElement) { + if (this._a11yD == true) { + return; + } + if (!focusElement) { + focusElement = target.getPrivate("focusElement").dom; + } + if (!focusElement) { + return; + } + const role = target.get("role"); + if (role) { + focusElement.setAttribute("role", role); + } else { + focusElement.removeAttribute("role"); + } + const ariaLabel = target.get("ariaLabel"); + if (ariaLabel) { + const label = populateString(target, ariaLabel); + focusElement.setAttribute("aria-label", label); + } else { + focusElement.removeAttribute("aria-label"); + } + const ariaLive = target.get("ariaLive"); + if (ariaLive) { + focusElement.setAttribute("aria-live", ariaLive); + } else { + focusElement.removeAttribute("aria-live"); + } + const ariaChecked = target.get("ariaChecked"); + if (ariaChecked != null && role && ["checkbox", "option", "radio", "menuitemcheckbox", "menuitemradio", "treeitem"].indexOf(role) !== -1) { + focusElement.setAttribute("aria-checked", ariaChecked ? "true" : "false"); + } else { + focusElement.removeAttribute("aria-checked"); + } + const ariaCurrent = target.get("ariaCurrent"); + if (ariaCurrent != null) { + focusElement.setAttribute("aria-current", ariaCurrent); + } else { + focusElement.removeAttribute("aria-current"); + } + const ariaSelected = target.get("ariaSelected"); + if (ariaSelected != null && role && ["gridcell", "option", "row", "tab", "columnheader", "rowheader", "treeitem"].indexOf(role) !== -1) { + focusElement.setAttribute("aria-selected", ariaSelected ? "true" : "false"); + } else { + focusElement.removeAttribute("aria-selected"); + } + if (target.get("ariaHidden")) { + focusElement.setAttribute("aria-hidden", "true"); + } else { + focusElement.removeAttribute("aria-hidden"); + } + const ariaOrientation = target.get("ariaOrientation"); + if (ariaOrientation) { + focusElement.setAttribute("aria-orientation", ariaOrientation); + } else { + focusElement.removeAttribute("aria-orientation"); + } + const ariaValueNow = target.get("ariaValueNow"); + if (ariaValueNow) { + focusElement.setAttribute("aria-valuenow", ariaValueNow); + } else { + focusElement.removeAttribute("aria-valuenow"); + } + const ariaValueMin = target.get("ariaValueMin"); + if (ariaValueMin) { + focusElement.setAttribute("aria-valuemin", ariaValueMin); + } else { + focusElement.removeAttribute("aria-valuemin"); + } + const ariaValueMax = target.get("ariaValueMax"); + if (ariaValueMax) { + focusElement.setAttribute("aria-valuemax", ariaValueMax); + } else { + focusElement.removeAttribute("aria-valuemax"); + } + const ariaValueText = target.get("ariaValueText"); + if (ariaValueText) { + focusElement.setAttribute("aria-valuetext", ariaValueText); + } else { + focusElement.removeAttribute("aria-valuetext"); + } + const ariaControls = target.get("ariaControls"); + if (ariaControls) { + focusElement.setAttribute("aria-controls", ariaControls); + } else { + focusElement.removeAttribute("aria-controls"); + } + if (target.get("visible") && target.get("opacity") !== 0 && target.get("role") != "tooltip" && !target.isHidden() && target.getPrivate("focusable") !== false && (target.height() || target.width())) { + if (focusElement.getAttribute("tabindex") != "-1") { + focusElement.setAttribute("tabindex", "" + this.tabindex); + } + focusElement.removeAttribute("aria-hidden"); + } else { + focusElement.removeAttribute("tabindex"); + focusElement.setAttribute("aria-hidden", "true"); + } + } + _makeFocusElement(index, target) { + if (target.getPrivate("focusElement") || this._a11yD == true) { + return; + } + const focusElement = document.createElement("div"); + if (target.get("role") != "tooltip") { + focusElement.tabIndex = this.tabindex; + } + focusElement.style.position = "absolute"; + setInteractive(focusElement, false); + const disposers = []; + target.setPrivate("focusElement", { + dom: focusElement, + disposers + }); + this._decorateFocusElement(target); + disposers.push(addEventListener(focusElement, "focus", (ev) => { + this._handleFocus(ev); + })); + disposers.push(addEventListener(focusElement, "blur", (ev) => { + this._handleBlur(ev); + })); + this._moveFocusElement(index, target); + } + _removeFocusElement(target) { + if (this._a11yD == true) { + return; + } + remove(this._tabindexes, target); + const focusElement = target.getPrivate("focusElement"); + if (focusElement) { + const container = this._focusElementContainer; + container.removeChild(focusElement.dom); + each(focusElement.disposers, (x2) => { + x2.dispose(); + }); + } + } + _hideFocusElement(target) { + if (this._a11yD == true) { + return; + } + const focusElement = target.getPrivate("focusElement"); + focusElement.dom.style.display = "none"; + } + _moveFocusElement(index, target) { + if (this._a11yD == true) { + return; + } + const container = this._focusElementContainer; + const focusElement = target.getPrivate("focusElement").dom; + if (focusElement === this._focusElementContainer.children[index]) { + return; + } + const next = this._focusElementContainer.children[index + 1]; + if (next) { + container.insertBefore(focusElement, next); + } else { + container.append(focusElement); + } + } + _positionFocusElement(target) { + if (this._a11yD == true || target == void 0) { + return; + } + this._focusElementContainer.scrollTop = 0; + const bounds = target.globalBounds(); + let width = bounds.right == bounds.left ? target.width() : bounds.right - bounds.left; + let height = bounds.top == bounds.bottom ? target.height() : bounds.bottom - bounds.top; + const padding = this._settings.focusPadding !== void 0 ? this._settings.focusPadding : 2; + let x2 = bounds.left - padding; + let y2 = bounds.top - padding; + if (width < 0) { + x2 += width; + width = Math.abs(width); + } + if (height < 0) { + y2 += height; + height = Math.abs(height); + } + const focusElement = target.getPrivate("focusElement").dom; + focusElement.style.top = y2 + "px"; + focusElement.style.left = x2 + "px"; + focusElement.style.width = width + padding * 2 + "px"; + focusElement.style.height = height + padding * 2 + "px"; + } + _getSpriteByFocusElement(target) { + let found; + eachContinue(this._tabindexes, (item, _index) => { + if (item.getPrivate("focusElement").dom === target) { + found = item; + return false; + } + return true; + }); + return found; + } + _handleFocus(ev) { + if (this._a11yD == true) { + return; + } + const focused = this._getSpriteByFocusElement(ev.target); + if (!focused) { + return; + } + if (!focused.isVisibleDeep()) { + this._focusNext(ev.target, this._isShift ? -1 : 1); + return; + } + this._positionFocusElement(focused); + this._focusedSprite = focused; + if (focused.events.isEnabled("focus")) { + focused.events.dispatch("focus", { + type: "focus", + originalEvent: ev, + target: focused + }); + } + if (focused.getPrivate("focusElement").dom.tabIndex == -1) { + this._skipNextGroupJump = false; + } + } + _focusNext(el, direction, group) { + if (this._a11yD == true) { + return; + } + const focusableElements = Array.from(document.querySelectorAll([ + "a[href]", + "area[href]", + "button:not([disabled])", + "details", + "input:not([disabled])", + "iframe:not([disabled])", + "select:not([disabled])", + "textarea:not([disabled])", + '[contentEditable=""]', + '[contentEditable="true"]', + '[contentEditable="TRUE"]', + '[tabindex]:not([tabindex^="-"])' + //':not([disabled])' + ].join(","))); + let index = focusableElements.indexOf(el) + direction; + if (index < 0) { + index = focusableElements.length - 1; + } else if (index >= focusableElements.length) { + index = 0; + } + const targetElement = focusableElements[index]; + if (group && direction == -1) { + const target = this._getSpriteByFocusElement(targetElement); + if (target && target.get("focusableGroup") == group) { + this._focusNext(targetElement, direction); + return; + } + } + targetElement.focus(); + } + _handleBlur(ev) { + if (this._a11yD == true) { + return; + } + const focused = this._focusedSprite; + if (focused && !focused.isDisposed() && focused.events.isEnabled("blur")) { + focused.events.dispatch("blur", { + type: "blur", + originalEvent: ev, + target: focused + }); + } + this._focusedSprite = void 0; + } + /** + * @ignore + */ + updateTooltip(target) { + if (this._a11yD == true) { + return; + } + const text = stripTags(target._getText()); + let tooltipElement = target.getPrivate("tooltipElement"); + if (target.get("role") == "tooltip" && text != "") { + if (!tooltipElement) { + tooltipElement = this._makeTooltipElement(target); + } + if (tooltipElement.innerHTML != text) { + tooltipElement.innerHTML = text; + } + tooltipElement.setAttribute("aria-hidden", target.isVisibleDeep() ? "false" : "true"); + } else if (tooltipElement) { + tooltipElement.remove(); + target.removePrivate("tooltipElement"); + } + } + _makeTooltipElement(target) { + const container = this._tooltipElementContainer; + const tooltipElement = document.createElement("div"); + tooltipElement.style.position = "absolute"; + tooltipElement.style.width = "1px"; + tooltipElement.style.height = "1px"; + tooltipElement.style.overflow = "hidden"; + tooltipElement.style.clip = "rect(1px, 1px, 1px, 1px)"; + setInteractive(tooltipElement, false); + this._decorateFocusElement(target, tooltipElement); + container.append(tooltipElement); + target.setPrivate("tooltipElement", tooltipElement); + return tooltipElement; + } + _removeTooltipElement(target) { + if (this._a11yD == true) { + return; + } + const tooltipElement = target.getPrivate("tooltipElement"); + if (tooltipElement) { + const parent = tooltipElement.parentElement; + if (parent) { + parent.removeChild(tooltipElement); + } + } + } + _invalidateAccessibility(target) { + if (this._a11yD == true) { + return; + } + this._focusElementDirty = true; + const focusElement = target.getPrivate("focusElement"); + if (target.get("focusable")) { + if (focusElement) { + this._decorateFocusElement(target); + this._positionFocusElement(target); + } + } else if (focusElement) { + this._removeFocusElement(target); + } + } + /** + * Returns `true` if `target` is currently focused. + * + * @param target Target + * @return Focused? + */ + focused(target) { + return this._focusedSprite === target; + } + /** + * Converts document coordinates to coordinates withing root element. + * + * @param point Document point + * @return Root point + */ + documentPointToRoot(point) { + const rect = this._getRealSize(); + const size = this._getCalculatedSize(rect); + const scaleWidth = size.width / rect.width; + const scaleHeight = size.height / rect.height; + return { + x: (point.x - rect.left) * scaleWidth, + y: (point.y - rect.top) * scaleHeight + }; + } + /** + * Converts root coordinates to document + * + * @param point Document point + * @return Root point + */ + rootPointToDocument(point) { + const rect = this._getRealSize(); + const size = this._getCalculatedSize(rect); + const scaleWidth = size.width / rect.width; + const scaleHeight = size.height / rect.height; + return { + x: point.x / scaleWidth + rect.left, + y: point.y / scaleHeight + rect.top + }; + } + /** + * @ignore + */ + addDisposer(disposer) { + this._disposers.push(disposer); + return disposer; + } + _updateComputedStyles() { + const styles = window.getComputedStyle(this.dom); + let fontHash = ""; + each2(styles, (key, val) => { + if (isString(key) && key.match(/^font/)) { + fontHash += val; + } + }); + const changed = fontHash != this._fontHash; + if (changed) { + this._fontHash = fontHash; + } + return changed; + } + _checkComputedStyles() { + if (this._updateComputedStyles()) { + this._invalidateLabelBounds(this.container); + } + } + _invalidateLabelBounds(target) { + if (target instanceof Container) { + target.children.each((child) => { + this._invalidateLabelBounds(child); + }); + } else if (target instanceof Text) { + target.markDirtyBounds(); + } + } + /** + * To all the clever heads out there. Yes, we did not make any attempts to + * scramble this. + * + * This is a part of a tool meant for our users to manage their commercial + * licenses for removal of amCharts branding from charts. + * + * The only legit way to do so is to purchase a commercial license for amCharts: + * https://www.amcharts.com/online-store/ + * + * Removing or altering this code, or disabling amCharts branding in any other + * way is against the license and thus illegal. + */ + _hasLicense() { + for (let i = 0; i < registry.licenses.length; i++) { + if (registry.licenses[i].match(/^AM5C.{5,}/i)) { + return true; + } + } + return false; + } + _licenseApplied() { + if (this._logo) { + this._logo.set("forceHidden", true); + } + } + /** + * @ignore + */ + get debugGhostView() { + return this._renderer.debugGhostView; + } + /** + * @ignore + */ + set debugGhostView(value) { + this._renderer.debugGhostView = value; + } + /** + * Set this to `true` if you need chart to require first a tap onto it before + * touch gesture related functionality like zoom/pan is turned on. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/root-element/#Touch_related_options} for more info + * @default false + * @since 5.2.9 + * @param value Needs a tap to activate touch functions + */ + set tapToActivate(value) { + this._renderer.tapToActivate = value; + } + /** + * @return Needs a tap to activate touch functions + */ + get tapToActivate() { + return this._renderer.tapToActivate; + } + /** + * If `tapToActivate` is set to `true`, this setting will determine number + * of milliseconds the chart will stay "active", before releasing the + * controls back to the page. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/root-element/#Touch_related_options} for more info + * @default 3000 + * @since 5.2.9 + * @param value Timeout + */ + set tapToActivateTimeout(value) { + this._renderer.tapToActivateTimeout = value; + } + /** + * @return Timeout + */ + get tapToActivateTimeout() { + return this._renderer.tapToActivateTimeout; + } + _makeHTMLElement(target) { + const container = this._htmlElementContainer; + const htmlElement = document.createElement("div"); + target.setPrivate("htmlElement", htmlElement); + let needWrapper = false; + let wrapperTarget; + target._walkParents((parent) => { + if (parent.get("verticalScrollbar")) { + needWrapper = true; + wrapperTarget = parent; + return false; + } + }); + let htmlElementWrapper; + if (needWrapper) { + htmlElementWrapper = document.createElement("div"); + target.setPrivate("htmlElementWrapper", htmlElementWrapper); + target.setPrivate("wrapperContainer", wrapperTarget); + htmlElementWrapper.style.position = "absolute"; + htmlElementWrapper.style.overflow = "hidden"; + htmlElementWrapper.style.boxSizing = "border-box"; + htmlElementWrapper.style.top = "0px"; + htmlElementWrapper.style.left = "0px"; + htmlElementWrapper.style.width = "100%"; + htmlElementWrapper.style.height = "100%"; + wrapperTarget.events.on("boundschanged", () => { + this._positionHTMLElement(target); + }); + } + htmlElement.style.position = "absolute"; + htmlElement.style.overflow = "auto"; + htmlElement.style.boxSizing = "border-box"; + setInteractive(htmlElement, target.get("interactive", false)); + if (target.events.isEnabled("click")) { + setInteractive(htmlElement, true); + this._disposers.push(addEventListener(htmlElement, "click", (ev) => { + const downEvent = this._renderer.getEvent(ev); + target.events.dispatch("click", { + type: "click", + originalEvent: downEvent.event, + point: downEvent.point, + simulated: false, + target + }); + })); + } + this._positionHTMLElement(target); + if (needWrapper) { + htmlElementWrapper.append(htmlElement); + container.append(htmlElementWrapper); + } else { + container.append(htmlElement); + } + pushOne(this._htmlEnabledContainers, target); + return htmlElement; + } + _positionHTMLElements() { + each(this._htmlEnabledContainers, (target) => { + this._positionHTMLElement(target); + }); + } + _positionHTMLElement(target) { + const htmlElementWrapper = target.getPrivate("htmlElementWrapper"); + if (htmlElementWrapper) { + const wrapperTarget = target.getPrivate("wrapperContainer"); + if (wrapperTarget) { + const bounds = wrapperTarget.globalBounds(); + htmlElementWrapper.style.clipPath = "rect(" + bounds.top + "px " + bounds.right + "px " + bounds.bottom + "px " + bounds.left + "px)"; + } + } + const htmlElement = target.getPrivate("htmlElement"); + if (htmlElement) { + const visualSettings = [ + "paddingTop", + "paddingRight", + "paddingBottom", + "paddingLeft", + "minWidth", + "minHeight", + "maxWidth", + "maxHeight" + ]; + each(visualSettings, (setting) => { + const value = target.get(setting); + if (value) { + htmlElement.style[setting] = value + "px"; + } else { + htmlElement.style[setting] = ""; + } + }); + const strtingSettings = [ + "fontFamily", + "fontSize", + "fontStyle", + "fontWeight", + "fontStyle", + "fontVariant", + "textDecoration" + ]; + each(strtingSettings, (setting) => { + const value = target.get(setting); + if (value) { + if (setting == "fontSize" && !isString(value)) { + htmlElement.style[setting] = value + "px"; + } else { + htmlElement.style[setting] = value + ""; + } + } else { + htmlElement.style[setting] = ""; + } + }); + const scale = target.compositeScale() || 1; + const rotation = target.compositeRotation() || 0; + htmlElement.style.transform = ""; + htmlElement.style.transformOrigin = ""; + const opacity = target.compositeOpacity(); + setTimeout(() => { + htmlElement.style.opacity = opacity + ""; + }, 10); + const visible = target.isVisibleDeep(); + if (visible) { + htmlElement.style.display = "block"; + } + let pos = { + x: target.x() + target.get("dx", 0), + y: target.y() + target.get("dy", 0) + }; + if (target.parent) { + pos = target.parent.toGlobal(pos); + } + htmlElement.style.top = pos.y + "px"; + htmlElement.style.left = pos.x + "px"; + const width = target.get("width"); + const height = target.get("height"); + let w = 0; + let h = 0; + if (width) { + w = target.width(); + } + if (height) { + h = target.height(); + } + if (!width || !height) { + htmlElement.style.position = "fixed"; + htmlElement.style.width = ""; + htmlElement.style.height = ""; + const bbox = htmlElement.getBoundingClientRect(); + htmlElement.style.position = "absolute"; + if (!width) + w = bbox.width; + if (!height) + h = bbox.height; + let lw = w / scale; + let lh = h / scale; + let cx = target.get("centerX", 0); + let cy = target.get("centerY", 0); + let ll = 0; + let lr = 0; + let lt = 0; + let lb = 0; + if (cx instanceof Percent) { + ll = -cx.value * lw; + lr = (1 - cx.value) * lw; + } else { + ll = -cx; + lr = lw - cx; + } + if (cy instanceof Percent) { + lt = -cy.value * lh; + lb = (1 - cy.value) * lh; + } else { + lt = -cy; + lb = lh - cy; + } + target._localBounds = { left: ll, right: lr, top: lt, bottom: lb }; + let previousBounds = target._adjustedLocalBounds; + let newBounds = target._display.getAdjustedBounds(target._localBounds); + target._adjustedLocalBounds = newBounds; + if (previousBounds.left !== newBounds.left || previousBounds.right !== newBounds.right || previousBounds.top !== newBounds.top || previousBounds.bottom !== newBounds.bottom) { + target.markDirtyBounds(); + } + } + if (w > 0) { + htmlElement.style.minWidth = w + "px"; + } + if (h > 0) { + htmlElement.style.minHeight = h + "px"; + } + if (!visible || opacity == 0) { + htmlElement.style.display = "none"; + } + const x2 = target.get("centerX", 0); + const originX = isPercent(x2) ? x2.percent + "%" : x2 + "px"; + const y2 = target.get("centerY", 0); + const originY = isPercent(y2) ? y2.percent + "%" : y2 + "px"; + if (x2 || y2) { + htmlElement.style.transform = "translate(-" + originX + ", -" + originY + ")" + htmlElement.style.transform; + } + if (scale != 1) { + htmlElement.style.transform += "scale(" + scale + ")"; + } + if (rotation != 0) { + htmlElement.style.transform += " rotate(" + rotation + "deg)"; + } + if (htmlElement.style.transform != "") { + htmlElement.style.transformOrigin = originX + " " + originY; + } + } + } + _setHTMLContent(target, html) { + let htmlElement = target.getPrivate("htmlElement"); + if (!htmlElement) { + htmlElement = this._makeHTMLElement(target); + if (!this.autoResize) { + this.resize(); + } + } + if (htmlElement.innerHTML != html) { + htmlElement.innerHTML = html; + } + } + _removeHTMLContent(target) { + const htmlElementWrapper = target.getPrivate("htmlElementWrapper"); + const htmlElement = target.getPrivate("htmlElement"); + if (htmlElementWrapper) { + this._htmlElementContainer.removeChild(htmlElementWrapper); + target.removePrivate("htmlElement"); + target.removePrivate("htmlElementWrapper"); + target.removePrivate("wrapperContainer"); + } else if (htmlElement) { + this._htmlElementContainer.removeChild(htmlElement); + target.removePrivate("htmlElement"); + target.removePrivate("wrapperContainer"); + } + remove(this._htmlEnabledContainers, target); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/render/Bullet.js + var Bullet = class extends Entity { + _afterNew() { + super._afterNewApplyThemes(); + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("sprite")) { + const sprite = this.get("sprite"); + if (sprite) { + sprite.setAll({ position: "absolute", role: "figure" }); + this._disposers.push(sprite); + } + } + if (this.isDirty("locationX") || this.isDirty("locationY")) { + if (this.series) { + this.series._positionBullet(this); + } + } + } + }; + Bullet.className = "Bullet"; + Bullet.classNames = Entity.classNames.concat([Bullet.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/RoundedRectangle.js + var RoundedRectangle = class extends Rectangle { + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("cornerRadiusTL") || this.isDirty("cornerRadiusTR") || this.isDirty("cornerRadiusBR") || this.isDirty("cornerRadiusBL")) { + this._clear = true; + } + } + _draw() { + let width = this.width(); + let height = this.height(); + let wSign = width / Math.abs(width); + let hSign = height / Math.abs(height); + let x2 = 0; + let y2 = 0; + const strokeWidth = this.get("strokeWidth", 0); + if (this.get("containStroke", false)) { + width -= wSign * strokeWidth; + height -= hSign * strokeWidth; + x2 += wSign * strokeWidth / 2; + y2 += hSign * strokeWidth / 2; + } + let w = width; + let h = height; + if (isNumber(w) && isNumber(h)) { + let minSide = Math.min(w, h) / 2; + let crtl = relativeToValue(this.get("cornerRadiusTL", 8), minSide); + let crtr = relativeToValue(this.get("cornerRadiusTR", 8), minSide); + let crbr = relativeToValue(this.get("cornerRadiusBR", 8), minSide); + let crbl = relativeToValue(this.get("cornerRadiusBL", 8), minSide); + let maxcr = Math.min(Math.abs(w / 2), Math.abs(h / 2)); + crtl = fitToRange(crtl, 0, maxcr); + crtr = fitToRange(crtr, 0, maxcr); + crbr = fitToRange(crbr, 0, maxcr); + crbl = fitToRange(crbl, 0, maxcr); + const display = this._display; + display.moveTo(x2 + crtl * wSign, y2); + display.lineTo(x2 + w - crtr * wSign, y2); + if (crtr > 0) { + display.arcTo(x2 + w, y2, x2 + w, y2 + crtr * hSign, crtr); + } + display.lineTo(x2 + w, y2 + h - crbr * hSign); + if (crbr > 0) { + display.arcTo(x2 + w, y2 + h, x2 + w - crbr * wSign, y2 + h, crbr); + } + display.lineTo(x2 + crbl * wSign, y2 + h); + if (crbl > 0) { + display.arcTo(x2, y2 + h, x2, y2 + h - crbl * hSign, crbl); + } + display.lineTo(x2, y2 + crtl * hSign); + if (crtl > 0) { + display.arcTo(x2, y2, x2 + crtl * wSign, y2, crtl); + } + display.closePath(); + } + } + }; + RoundedRectangle.className = "RoundedRectangle"; + RoundedRectangle.classNames = Rectangle.classNames.concat([RoundedRectangle.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Button.js + var Button = class extends Container { + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["button"]); + super._afterNew(); + if (!this._settings.background) { + this.set("background", RoundedRectangle.new(this._root, { + themeTags: mergeTags(this._settings.themeTags, ["background"]) + })); + } + this.setPrivate("trustBounds", true); + } + _prepareChildren() { + super._prepareChildren(); + if (this.isDirty("icon")) { + const previous = this._prevSettings.icon; + const icon = this.get("icon"); + if (icon !== previous) { + this._disposeProperty("icon"); + if (previous) { + previous.dispose(); + } + if (icon) { + this.children.push(icon); + } + this._prevSettings.icon = icon; + } + } + if (this.isDirty("label")) { + const previous = this._prevSettings.label; + const label = this.get("label"); + if (label !== previous) { + this._disposeProperty("label"); + if (previous) { + previous.dispose(); + } + if (label) { + this.children.push(label); + } + this._prevSettings.label = label; + } + } + } + }; + Button.className = "Button"; + Button.classNames = Container.classNames.concat([Button.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Circle.js + var Circle = class extends Graphics { + _afterNew() { + super._afterNew(); + this._display.isMeasured = true; + this.setPrivateRaw("trustBounds", true); + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("radius")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear) { + this._display.drawCircle(0, 0, Math.abs(this.get("radius", 10))); + } + } + }; + Circle.className = "Circle"; + Circle.classNames = Graphics.classNames.concat([Circle.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/Data.js + var ListData = class extends List { + /** + * @ignore + */ + incrementRef() { + } + /** + * @ignore + */ + decrementRef() { + } + _onPush(newValue) { + if (this.processor) { + this.processor.processRow(newValue); + } + super._onPush(newValue); + } + _onInsertIndex(index, newValue) { + if (this.processor) { + this.processor.processRow(newValue); + } + super._onInsertIndex(index, newValue); + } + _onSetIndex(index, oldValue, newValue) { + if (this.processor) { + this.processor.processRow(newValue); + } + super._onSetIndex(index, oldValue, newValue); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/render/Component.js + var DataItem = class extends Settings { + constructor(component, dataContext, settings) { + super(settings); + this.dataContext = dataContext; + this.component = component; + this._settings.visible = true; + this._checkDirty(); + } + /** + * @ignore + */ + markDirty() { + this.component.markDirtyValues(this); + } + _startAnimation() { + this.component._root._addAnimation(this); + } + _animationTime() { + return this.component._root.animationTime; + } + _dispose() { + if (this.component) { + this.component.disposeDataItem(this); + } + super._dispose(); + } + /** + * Shows a data item that's currently hidden. + */ + show(duration) { + this.setRaw("visible", true); + if (this.component) { + this.component.showDataItem(this, duration); + } + } + /** + * Hides a data item that's currently visible. + */ + hide(duration) { + this.setRaw("visible", false); + if (this.component) { + this.component.hideDataItem(this, duration); + } + } + isHidden() { + return !this.get("visible"); + } + }; + var Component = class extends Container { + constructor() { + super(...arguments); + this._data = new ListData(); + this._dataItems = []; + this._mainDataItems = this._dataItems; + this.valueFields = []; + this.fields = ["id"]; + this._valuesDirty = false; + this._dataChanged = false; + this._dataGrouped = false; + this.inited = false; + } + /** + * Component's data. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/data/} for more info + */ + set data(data) { + data.incrementRef(); + this._data.decrementRef(); + this._data = data; + } + /** + * @return Data + */ + get data() { + return this._data; + } + _dispose() { + super._dispose(); + this._data.decrementRef(); + } + _onDataClear() { + } + _afterNew() { + super._afterNew(); + this._data.incrementRef(); + this._updateFields(); + this._disposers.push(this.data.events.onAll((change) => { + const dataItems = this._mainDataItems; + this.markDirtyValues(); + this._markDirtyGroup(); + this._dataChanged = true; + if (change.type === "clear") { + each(dataItems, (dataItem) => { + dataItem.dispose(); + }); + dataItems.length = 0; + this._onDataClear(); + } else if (change.type === "push") { + const dataItem = new DataItem(this, change.newValue, this._makeDataItem(change.newValue)); + dataItems.push(dataItem); + this.processDataItem(dataItem); + } else if (change.type === "setIndex") { + const dataItem = dataItems[change.index]; + const properties = this._makeDataItem(change.newValue); + if (dataItem.bullets && dataItem.bullets.length == 0) { + dataItem.bullets = void 0; + } + entries(properties).forEach(([key, value]) => { + if (dataItem.get(key) == value) { + return; + } + dataItem.animate({ + key, + to: value, + duration: this.get("interpolationDuration", 0), + easing: this.get("interpolationEasing") + }); + }); + dataItem.dataContext = change.newValue; + } else if (change.type === "insertIndex") { + const dataItem = new DataItem(this, change.newValue, this._makeDataItem(change.newValue)); + dataItems.splice(change.index, 0, dataItem); + this.processDataItem(dataItem); + } else if (change.type === "removeIndex") { + const dataItem = dataItems[change.index]; + dataItem.dispose(); + dataItems.splice(change.index, 1); + } else if (change.type === "moveIndex") { + const dataItem = dataItems[change.oldIndex]; + dataItems.splice(change.oldIndex, 1); + dataItems.splice(change.newIndex, 0, dataItem); + } else { + throw new Error("Unknown IStreamEvent type"); + } + this._afterDataChange(); + })); + } + _postUpdateData() { + } + /** + * Updates existing data in the component without disposing old data items. If there are more data items than before, new ones will be created. If there are less, old ones will be removed. + * @param data + */ + updateData(data) { + let ii = 0; + each(data, (dataObject, index) => { + const dataItem = this.dataItems[index]; + if (!dataItem) { + this.data.push(dataObject); + } else { + const dataContext = dataItem.dataContext; + if (dataContext) { + entries(dataObject).forEach(([key, value]) => { + dataContext[key] = value; + }); + } + const properties = this._makeDataItem(dataContext); + entries(properties).forEach(([key, value]) => { + var _a; + if (dataItem.get(key) != value) { + dataItem.set(key, value); + const workingKey = (_a = this._valueFieldsF[key]) === null || _a === void 0 ? void 0 : _a.workingKey; + if (workingKey) { + dataItem.set(workingKey, value); + } + } + }); + } + ii = index; + }); + for (let i = this.dataItems.length - 1; i > ii; i--) { + const dataItem = this.dataItems[i]; + remove(this.dataItems, dataItem); + dataItem.dispose(); + } + this._postUpdateData(); + } + _updateFields() { + if (this.valueFields) { + this._valueFields = []; + this._valueFieldsF = {}; + each(this.valueFields, (key) => { + const field = this.get(key + "Field"); + if (field) { + this._valueFields.push(key); + this._valueFieldsF[key] = { fieldKey: key + "Field", workingKey: key + "Working" }; + } + }); + } + if (this.fields) { + this._fields = []; + this._fieldsF = {}; + each(this.fields, (key) => { + const field = this.get(key + "Field"); + if (field) { + this._fields.push(key); + this._fieldsF[key] = key + "Field"; + } + }); + } + } + /** + * A list of component's data items. + * + * @return Data items + */ + get dataItems() { + return this._dataItems; + } + processDataItem(_dataItem) { + } + _makeDataItem(data) { + const output = {}; + if (this._valueFields) { + each(this._valueFields, (key) => { + const field = this.get(this._valueFieldsF[key].fieldKey); + output[key] = data[field]; + output[this._valueFieldsF[key].workingKey] = output[key]; + }); + } + if (this._fields) { + each(this._fields, (key) => { + const field = this.get(this._fieldsF[key]); + output[key] = data[field]; + }); + } + return output; + } + /** + * Creates a new data item and processes it. + * + * @param data Data item settings + * @param dataContext Data context + * @return New data item + */ + makeDataItem(data, dataContext) { + let dataItem = new DataItem(this, dataContext, data); + this.processDataItem(dataItem); + return dataItem; + } + /** + * Adds new explicit data item to series. + * + * @param data Data item settings + * @param dataContext Data context + * @return New data item + */ + pushDataItem(data, dataContext) { + const dataItem = this.makeDataItem(data, dataContext); + this._mainDataItems.push(dataItem); + return dataItem; + } + /** + * @ignore + */ + disposeDataItem(_dataItem) { + } + /** + * Shows component's data item. + * + * @param dataItem Data item + * @param _duration Animation duration in milliseconds + * @return Promise + */ + showDataItem(dataItem, _duration) { + return __awaiter(this, void 0, void 0, function* () { + dataItem.set("visible", true); + }); + } + /** + * Hides component's data item. + * + * @param dataItem Data item + * @param _duration Animation duration in milliseconds + * @return Promise + */ + hideDataItem(dataItem, _duration) { + return __awaiter(this, void 0, void 0, function* () { + dataItem.set("visible", false); + }); + } + _clearDirty() { + super._clearDirty(); + this._valuesDirty = false; + } + _afterDataChange() { + } + _afterChanged() { + super._afterChanged(); + if (this._dataChanged) { + const type = "datavalidated"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this }); + } + this._dataChanged = false; + } + if (this._valuesDirty) { + const type = "valueschanged"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this }); + } + } + this.inited = true; + } + /** + * Forces a repaint of the element which relies on data. + * + * @since 5.0.21 + */ + markDirtyValues(_dataItem) { + this.markDirty(); + this._valuesDirty = true; + } + _markDirtyGroup() { + this._dataGrouped = false; + } + /** + * @ignore + */ + markDirtySize() { + this._sizeDirty = true; + this.markDirty(); + } + /** + * Looks up and returns a data item by its ID. + * + * @param id ID + * @return Data item + */ + getDataItemById(id) { + return find(this.dataItems, (dataItem) => { + return dataItem.get("id") == id; + }); + } + }; + Component.className = "Component"; + Component.classNames = Container.classNames.concat([Component.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/Time.js + function sleep(ms) { + return new Promise((resolve, _reject) => { + setTimeout(resolve, ms); + }); + } + var timeUnitDurations = { + millisecond: 1, + second: 1e3, + minute: 6e4, + hour: 36e5, + day: 864e5, + week: 6048e5, + month: 365.242 / 12 * 864e5, + year: 31536e6 + }; + function getDuration(unit, count) { + if (count == null) { + count = 1; + } + return timeUnitDurations[unit] * count; + } + function round2(date, unit, count, firstDateOfWeek, utc, firstDate, timezone) { + if (!timezone || utc) { + let timeZoneOffset = 0; + if (!utc && unit != "millisecond") { + timeZoneOffset = date.getTimezoneOffset(); + date.setUTCMinutes(date.getUTCMinutes() - timeZoneOffset); + } + switch (unit) { + case "day": + let day = date.getUTCDate(); + if (count > 1) { + if (firstDate) { + firstDate = round2(firstDate, "day", 1); + let difference = date.getTime() - firstDate.getTime(); + let unitCount = Math.floor(difference / getDuration("day") / count); + let duration = getDuration("day", unitCount * count); + date.setTime(firstDate.getTime() + duration - timeZoneOffset * getDuration("minute")); + } + } else { + date.setUTCDate(day); + } + date.setUTCHours(0, 0, 0, 0); + break; + case "second": + let seconds = date.getUTCSeconds(); + if (count > 1) { + seconds = Math.floor(seconds / count) * count; + } + date.setUTCSeconds(seconds, 0); + break; + case "millisecond": + if (count == 1) { + return date; + } + let milliseconds = date.getUTCMilliseconds(); + milliseconds = Math.floor(milliseconds / count) * count; + date.setUTCMilliseconds(milliseconds); + break; + case "hour": + let hours = date.getUTCHours(); + if (count > 1) { + hours = Math.floor(hours / count) * count; + } + date.setUTCHours(hours, 0, 0, 0); + break; + case "minute": + let minutes = date.getUTCMinutes(); + if (count > 1) { + minutes = Math.floor(minutes / count) * count; + } + date.setUTCMinutes(minutes, 0, 0); + break; + case "month": + let month = date.getUTCMonth(); + if (count > 1) { + if (count == 2 || count == 3 || count == 4 || count == 6) { + month = Math.floor(month / count) * count; + } + } + date.setUTCMonth(month, 1); + date.setUTCHours(0, 0, 0, 0); + break; + case "year": + let year = date.getUTCFullYear(); + if (count > 1) { + year = Math.floor(year / count) * count; + } + date.setUTCFullYear(year, 0, 1); + date.setUTCHours(0, 0, 0, 0); + break; + case "week": + if (count > 1) { + if (firstDate) { + firstDate = round2(firstDate, "week", 1); + let difference = date.getTime() - firstDate.getTime(); + let unitCount = Math.floor(difference / getDuration("week") / count); + let duration = getDuration("week", unitCount * count); + date.setTime(firstDate.getTime() + duration - timeZoneOffset * getDuration("minute")); + } + } + let wday = date.getUTCDate(); + let weekDay = date.getUTCDay(); + if (!isNumber(firstDateOfWeek)) { + firstDateOfWeek = 1; + } + if (weekDay >= firstDateOfWeek) { + wday = wday - weekDay + firstDateOfWeek; + } else { + wday = wday - (7 + weekDay) + firstDateOfWeek; + } + date.setUTCDate(wday); + date.setUTCHours(0, 0, 0, 0); + break; + } + if (!utc && unit != "millisecond") { + date.setUTCMinutes(date.getUTCMinutes() + timeZoneOffset); + if (unit == "day" || unit == "week" || unit == "month" || unit == "year") { + let newTimeZoneOffset = date.getTimezoneOffset(); + if (newTimeZoneOffset != timeZoneOffset) { + let diff = newTimeZoneOffset - timeZoneOffset; + date.setUTCMinutes(date.getUTCMinutes() + diff); + } + } + } + return date; + } else { + if (isNaN(date.getTime())) { + return date; + } + let initialTime = date.getTime(); + let tzoffset = timezone.offsetUTC(date); + let timeZoneOffset = date.getTimezoneOffset(); + let parsedDate = timezone.parseDate(date); + let year = parsedDate.year; + let month = parsedDate.month; + let day = parsedDate.day; + let hour = parsedDate.hour; + let minute = parsedDate.minute; + let second = parsedDate.second; + let millisecond = parsedDate.millisecond; + let weekday = parsedDate.weekday; + let offsetDif = tzoffset - timeZoneOffset; + switch (unit) { + case "day": + if (count > 1 && firstDate) { + firstDate = round2(firstDate, "day", 1, firstDateOfWeek, utc, void 0, timezone); + let difference = date.getTime() - firstDate.getTime(); + let unitCount = Math.floor(difference / getDuration("day") / count); + let duration = getDuration("day", unitCount * count); + date.setTime(firstDate.getTime() + duration); + parsedDate = timezone.parseDate(date); + year = parsedDate.year; + month = parsedDate.month; + day = parsedDate.day; + } + hour = 0; + minute = offsetDif; + second = 0; + millisecond = 0; + break; + case "second": + minute += offsetDif; + if (count > 1) { + second = Math.floor(second / count) * count; + } + millisecond = 0; + break; + case "millisecond": + minute += offsetDif; + if (count > 1) { + millisecond = Math.floor(millisecond / count) * count; + } + break; + case "hour": + if (count > 1) { + hour = Math.floor(hour / count) * count; + } + minute = offsetDif; + second = 0; + millisecond = 0; + break; + case "minute": + if (count > 1) { + minute = Math.floor(minute / count) * count; + } + minute += offsetDif; + second = 0; + millisecond = 0; + break; + case "month": + if (count > 1) { + month = Math.floor(month / count) * count; + } + day = 1; + hour = 0; + minute = offsetDif; + second = 0; + millisecond = 0; + break; + case "year": + if (count > 1) { + year = Math.floor(year / count) * count; + } + month = 0; + day = 1; + hour = 0; + minute = offsetDif; + second = 0; + millisecond = 0; + break; + case "week": + if (!isNumber(firstDateOfWeek)) { + firstDateOfWeek = 1; + } + if (weekday >= firstDateOfWeek) { + day = day - weekday + firstDateOfWeek; + } else { + day = day - (7 + weekday) + firstDateOfWeek; + } + hour = 0; + minute = offsetDif; + second = 0; + millisecond = 0; + break; + } + date = new Date(year, month, day, hour, minute, second, millisecond); + const newTime = date.getTime(); + let hDuration = 36e5; + if (unit == "hour") { + hDuration = 36e5 * count; + } + if (newTime + hDuration <= initialTime) { + if (unit == "hour" || unit == "minute" || unit == "second" || unit == "millisecond") { + date = new Date(newTime + hDuration); + } + } + let newTimeZoneOffset = date.getTimezoneOffset(); + let newTzoffset = timezone.offsetUTC(date); + let newDiff = newTzoffset - newTimeZoneOffset; + if (newDiff != offsetDif) { + date.setTime(date.getTime() + (newDiff - offsetDif) * 6e4); + } + return date; + } + } + + // node_modules/@amcharts/amcharts5/.internal/core/render/Series.js + var Series = class extends Component { + constructor() { + super(...arguments); + this._aggregatesCalculated = false; + this._selectionAggregatesCalculated = false; + this._dataProcessed = false; + this._baseSeriesDirty = false; + this.bullets = new List(); + this.bulletsContainer = Container.new(this._root, { width: p100, height: p100, position: "absolute" }); + } + _afterNew() { + this.valueFields.push("value", "customValue"); + super._afterNew(); + this.setPrivate("customData", {}); + this._disposers.push(this.bullets.events.onAll(() => { + this._handleBullets(this.dataItems); + })); + } + _dispose() { + this.bulletsContainer.dispose(); + super._dispose(); + } + startIndex() { + let len = this.dataItems.length; + return Math.min(this.getPrivate("startIndex", 0), len); + } + endIndex() { + let len = this.dataItems.length; + return Math.max(0, Math.min(this.getPrivate("endIndex", len), len)); + } + _handleBullets(dataItems) { + each(dataItems, (dataItem) => { + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + bullet.dispose(); + }); + dataItem.bullets = void 0; + } + }); + this.markDirtyValues(); + } + _makeBullets(dataItem) { + if (this._shouldMakeBullet(dataItem)) { + dataItem.bullets = []; + this.bullets.each((bulletFunction) => { + this._makeBullet(dataItem, bulletFunction); + }); + } + } + _shouldMakeBullet(_dataItem) { + return true; + } + _makeBullet(dataItem, bulletFunction, index) { + const bullet = bulletFunction(this._root, this, dataItem); + if (bullet) { + bullet._index = index; + this._makeBulletReal(dataItem, bullet); + } + return bullet; + } + _makeBulletReal(dataItem, bullet) { + let sprite = bullet.get("sprite"); + if (sprite) { + sprite._setDataItem(dataItem); + sprite.setRaw("position", "absolute"); + this.bulletsContainer.children.push(sprite); + } + bullet.series = this; + dataItem.bullets.push(bullet); + } + /** + * Adds bullet directly to a data item. + * + * Please note: method accepts [[Bullet]] instance as a paramter, not a + * reference to a function. + * + * You should add Bullet instance, not a method like you do it on series. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/common-elements/bullets/#Adding_directly_to_data_item} for more info + * @since 5.6.0 + * + * @param dataItem Target data item + * @param bullet Bullet instance + */ + addBullet(dataItem, bullet) { + if (!dataItem.bullets) { + dataItem.bullets = []; + } + if (bullet) { + this._makeBulletReal(dataItem, bullet); + } + } + _clearDirty() { + super._clearDirty(); + this._aggregatesCalculated = false; + this._baseSeriesDirty = false; + this._selectionAggregatesCalculated = false; + } + _prepareChildren() { + super._prepareChildren(); + const dataItems = this.dataItems; + const count = dataItems.length; + let startIndex = this.startIndex(); + let endIndex = this.endIndex(); + if (this.isDirty("name")) { + this.updateLegendValue(); + } + if (this.isDirty("heatRules")) { + this._valuesDirty = true; + } + if (this.isPrivateDirty("baseValueSeries")) { + const baseValueSeries = this.getPrivate("baseValueSeries"); + if (baseValueSeries) { + this._disposers.push(baseValueSeries.onPrivate("startIndex", () => { + this._baseSeriesDirty = true; + this.markDirtyValues(); + })); + } + } + const calculateAggregates = this.get("calculateAggregates"); + if (calculateAggregates) { + if (this._valuesDirty && !this._dataProcessed) { + if (!this._aggregatesCalculated) { + this._calculateAggregates(0, count); + this._aggregatesCalculated = true; + if (startIndex != 0) { + this._psi = void 0; + } + } + } + if ((this._psi != startIndex || this._pei != endIndex || this.isPrivateDirty("adjustedStartIndex")) && !this._selectionAggregatesCalculated) { + if (startIndex === 0 && endIndex === count && this._aggregatesCalculated) { + } else { + this._calculateAggregates(startIndex, endIndex); + } + this._selectionAggregatesCalculated = true; + } + } + if (this.isDirty("tooltip")) { + let tooltip = this.get("tooltip"); + if (tooltip) { + tooltip.hide(0); + tooltip.set("tooltipTarget", this); + } + } + if (this.isDirty("fill") || this.isDirty("stroke")) { + let markerRectangle; + const legendDataItem = this.get("legendDataItem"); + if (legendDataItem) { + markerRectangle = legendDataItem.get("markerRectangle"); + if (markerRectangle) { + if (this.isVisible()) { + if (this.isDirty("stroke")) { + let stroke = this.get("stroke"); + markerRectangle.set("stroke", stroke); + } + if (this.isDirty("fill")) { + let fill = this.get("fill"); + markerRectangle.set("fill", fill); + } + } + } + } + this.updateLegendMarker(void 0); + } + if (this.bullets.length > 0) { + let startIndex2 = this.startIndex(); + let endIndex2 = this.endIndex(); + if (endIndex2 < count) { + endIndex2++; + } + for (let i = startIndex2; i < endIndex2; i++) { + let dataItem = dataItems[i]; + if (!dataItem.bullets) { + this._makeBullets(dataItem); + } + } + } + } + _handleRemoved() { + } + /** + * @ignore + */ + _adjustStartIndex(index) { + return index; + } + _calculateAggregates(startIndex, endIndex) { + let fields = this._valueFields; + if (!fields) { + throw new Error("No value fields are set for the series."); + } + const excludeFromAggregate = this.get("excludeFromAggregate"); + if (excludeFromAggregate) { + fields = fields.filter((field) => { + return excludeFromAggregate.indexOf(field) == -1; + }); + } + const sum = {}; + const absSum = {}; + const count = {}; + const low = {}; + const high = {}; + const open = {}; + const close = {}; + const average = {}; + const previous = {}; + for (let f = 0, flen = fields.length; f < flen; f++) { + let key = fields[f]; + sum[key] = 0; + absSum[key] = 0; + count[key] = 0; + } + const dataItems = this.dataItems; + const len = dataItems.length; + for (let f = 0, flen = fields.length; f < flen; f++) { + let key = fields[f]; + let change = key + "Change"; + let changePercent = key + "ChangePercent"; + let changePrevious = key + "ChangePrevious"; + let changePreviousPercent = key + "ChangePreviousPercent"; + let changeSelection = key + "ChangeSelection"; + let changeSelectionPercent = key + "ChangeSelectionPercent"; + let openKey = "valueY"; + if (key === "valueX" || key.endsWith("ValueX")) { + openKey = "valueX"; + } + const baseValueSeries = this.getPrivate("baseValueSeries"); + const adjustedStartIndex = this.getPrivate("adjustedStartIndex", startIndex); + const calculateChangesForItem = (dataItem, value, key2) => { + if (startIndex === 0) { + const openValue = open[openKey]; + const changeValue = value - openValue; + dataItem.setRaw(change, changeValue); + dataItem.setRaw(changePercent, changeValue / openValue * 100); + } + const changePreviousValue = value - previous[openKey]; + const changeSelectionValue = value - open[openKey]; + dataItem.setRaw(changePrevious, changePreviousValue); + dataItem.setRaw(changePreviousPercent, changePreviousValue / previous[openKey] * 100); + dataItem.setRaw(changeSelection, changeSelectionValue); + dataItem.setRaw(changeSelectionPercent, changeSelectionValue / open[openKey] * 100); + previous[key2] = value; + }; + for (let i = adjustedStartIndex; i < endIndex; i++) { + const dataItem = dataItems[i]; + if (dataItem) { + let value = dataItem.get(key); + if (value != null) { + if (low[key] == null) { + low[key] = value; + } + if (high[key] == null) { + high[key] = value; + } + if (open[key] == null) { + open[key] = value; + previous[key] = value; + if (baseValueSeries) { + open[openKey] = baseValueSeries._getBase(openKey); + } + } + break; + } + } + } + for (let i = adjustedStartIndex; i < endIndex; i++) { + const dataItem = dataItems[i]; + if (dataItem) { + let value = dataItem._settings[key]; + if (value != null) { + count[key]++; + sum[key] += value; + absSum[key] += Math.abs(value); + if (low[key] > value) { + low[key] = value; + } + if (high[key] < value) { + high[key] = value; + } + close[key] = value; + calculateChangesForItem(dataItem, value, key); + } + } + } + average[key] = sum[key] / count[key]; + if (endIndex < len) { + const dataItem = dataItems[endIndex]; + if (dataItem) { + let value = dataItem.get(key); + if (value != null) { + calculateChangesForItem(dataItem, value, key); + } + } + } + if (endIndex + 1 < len) { + const dataItem = dataItems[endIndex + 1]; + if (dataItem) { + let value = dataItem.get(key); + if (value != null) { + calculateChangesForItem(dataItem, value, key); + } + } + } + if (startIndex > 0) { + startIndex--; + } + delete previous[key]; + for (let i = startIndex; i < adjustedStartIndex; i++) { + const dataItem = dataItems[i]; + if (dataItem) { + let value = dataItem.get(key); + if (previous[key] == null) { + previous[key] = value; + } + if (value != null) { + calculateChangesForItem(dataItem, value, key); + } + } + } + } + for (let f = 0, flen = fields.length; f < flen; f++) { + let key = fields[f]; + this.setPrivate(key + "AverageSelection", average[key]); + this.setPrivate(key + "CountSelection", count[key]); + this.setPrivate(key + "SumSelection", sum[key]); + this.setPrivate(key + "AbsoluteSumSelection", absSum[key]); + this.setPrivate(key + "LowSelection", low[key]); + this.setPrivate(key + "HighSelection", high[key]); + this.setPrivate(key + "OpenSelection", open[key]); + this.setPrivate(key + "CloseSelection", close[key]); + } + if (startIndex === 0 && endIndex === len) { + for (let f = 0, flen = fields.length; f < flen; f++) { + let key = fields[f]; + this.setPrivate(key + "Average", average[key]); + this.setPrivate(key + "Count", count[key]); + this.setPrivate(key + "Sum", sum[key]); + this.setPrivate(key + "AbsoluteSum", absSum[key]); + this.setPrivate(key + "Low", low[key]); + this.setPrivate(key + "High", high[key]); + this.setPrivate(key + "Open", open[key]); + this.setPrivate(key + "Close", close[key]); + } + } + } + _updateChildren() { + super._updateChildren(); + this._psi = this.startIndex(); + this._pei = this.endIndex(); + if (this.isDirty("visible")) { + this.bulletsContainer.set("visible", this.get("visible")); + } + const rules = this.get("heatRules"); + if (this._valuesDirty && rules && rules.length > 0) { + each(rules, (rule) => { + const minValue = rule.minValue || this.getPrivate(rule.dataField + "Low") || 0; + const maxValue = rule.maxValue || this.getPrivate(rule.dataField + "High") || 0; + each(rule.target._entities, (target) => { + const value = target.dataItem.get(rule.dataField); + if (!isNumber(value)) { + if (rule.neutral) { + target.set(rule.key, rule.neutral); + } + const states = target.states; + if (states) { + const defaultState = states.lookup("default"); + if (defaultState && rule.neutral) { + defaultState.set(rule.key, rule.neutral); + } + } + if (!rule.customFunction) { + return; + } + } + if (rule.customFunction) { + rule.customFunction.call(this, target, minValue, maxValue, value); + } else { + let percent2; + if (rule.logarithmic) { + percent2 = (Math.log(value) * Math.LOG10E - Math.log(minValue) * Math.LOG10E) / (Math.log(maxValue) * Math.LOG10E - Math.log(minValue) * Math.LOG10E); + } else { + percent2 = (value - minValue) / (maxValue - minValue); + } + if (isNumber(value) && (!isNumber(percent2) || Math.abs(percent2) == Infinity)) { + percent2 = 0.5; + } + let propertyValue; + if (isNumber(rule.min)) { + propertyValue = rule.min + (rule.max - rule.min) * percent2; + } else if (rule.min instanceof Color) { + propertyValue = Color.interpolate(percent2, rule.min, rule.max); + } else if (rule.min instanceof Percent) { + propertyValue = percentInterpolate(percent2, rule.min, rule.max); + } + target.set(rule.key, propertyValue); + const states = target.states; + if (states) { + const defaultState = states.lookup("default"); + if (defaultState) { + defaultState.set(rule.key, propertyValue); + } + } + } + }); + }); + } + if (this.get("visible")) { + const dataItems = this.dataItems; + let count = dataItems.length; + let startIndex = this.startIndex(); + let endIndex = this.endIndex(); + if (endIndex < count) { + endIndex++; + } + if (startIndex > 0) { + startIndex--; + } + for (let i = 0; i < startIndex; i++) { + this._hideBullets(dataItems[i]); + } + for (let i = startIndex; i < endIndex; i++) { + this._positionBullets(dataItems[i]); + } + for (let i = endIndex; i < count; i++) { + this._hideBullets(dataItems[i]); + } + } + } + _positionBullets(dataItem) { + if (dataItem.bullets) { + each(dataItem.bullets, (bullet) => { + this._positionBullet(bullet); + const sprite = bullet.get("sprite"); + if (bullet.get("dynamic")) { + if (sprite) { + sprite._markDirtyKey("fill"); + sprite.markDirtySize(); + } + if (sprite instanceof Container) { + sprite.walkChildren((child) => { + child._markDirtyKey("fill"); + child.markDirtySize(); + if (child instanceof Label) { + child.text.markDirtyText(); + } + }); + } + } + if (sprite instanceof Label && sprite.get("populateText")) { + sprite.text.markDirtyText(); + } + }); + } + } + _hideBullets(dataItem) { + if (dataItem.bullets) { + each(dataItem.bullets, (bullet) => { + let sprite = bullet.get("sprite"); + if (sprite) { + sprite.setPrivate("visible", false); + } + }); + } + } + _positionBullet(_bullet) { + } + _placeBulletsContainer(chart2) { + chart2.bulletsContainer.children.moveValue(this.bulletsContainer); + } + _removeBulletsContainer() { + const bulletsContainer = this.bulletsContainer; + if (bulletsContainer.parent) { + bulletsContainer.parent.children.removeValue(bulletsContainer); + } + } + /** + * @ignore + */ + disposeDataItem(dataItem) { + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + bullet.dispose(); + }); + dataItem.bullets = void 0; + } + } + _getItemReaderLabel() { + return ""; + } + /** + * Shows series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + showDataItem(dataItem, duration) { + const _super = Object.create(null, { + showDataItem: { get: () => super.showDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.showDataItem.call(this, dataItem, duration)]; + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + const sprite = bullet.get("sprite"); + if (sprite) { + promises.push(sprite.show(duration)); + } + }); + } + yield Promise.all(promises); + }); + } + /** + * Hides series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + hideDataItem(dataItem, duration) { + const _super = Object.create(null, { + hideDataItem: { get: () => super.hideDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.hideDataItem.call(this, dataItem, duration)]; + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + const sprite = bullet.get("sprite"); + if (sprite) { + promises.push(sprite.hide(duration)); + } + }); + } + yield Promise.all(promises); + }); + } + _sequencedShowHide(show, duration) { + return __awaiter(this, void 0, void 0, function* () { + if (this.get("sequencedInterpolation")) { + if (!isNumber(duration)) { + duration = this.get("interpolationDuration", 0); + } + if (duration > 0) { + const startIndex = this.startIndex(); + const endIndex = this.endIndex(); + yield Promise.all(map(this.dataItems, (dataItem, i) => __awaiter(this, void 0, void 0, function* () { + let realDuration = duration || 0; + if (i < startIndex - 10 || i > endIndex + 10) { + realDuration = 0; + } + let delay = this.get("sequencedDelay", 0) + realDuration / (endIndex - startIndex); + yield sleep(delay * (i - startIndex)); + if (show) { + yield this.showDataItem(dataItem, realDuration); + } else { + yield this.hideDataItem(dataItem, realDuration); + } + }))); + } else { + yield Promise.all(map(this.dataItems, (dataItem) => { + if (show) { + return this.showDataItem(dataItem, 0); + } else { + return this.hideDataItem(dataItem, 0); + } + })); + } + } + }); + } + /** + * @ignore + */ + updateLegendValue(dataItem) { + if (dataItem) { + const legendDataItem = dataItem.get("legendDataItem"); + if (legendDataItem) { + const valueLabel = legendDataItem.get("valueLabel"); + if (valueLabel) { + const text = valueLabel.text; + let txt = ""; + valueLabel._setDataItem(dataItem); + txt = this.get("legendValueText", text.get("text", "")); + valueLabel.set("text", txt); + text.markDirtyText(); + } + const label = legendDataItem.get("label"); + if (label) { + const text = label.text; + let txt = ""; + label._setDataItem(dataItem); + txt = this.get("legendLabelText", text.get("text", "")); + label.set("text", txt); + text.markDirtyText(); + } + } + } + } + /** + * @ignore + */ + updateLegendMarker(_dataItem) { + } + _onHide() { + super._onHide(); + const tooltip = this.getTooltip(); + if (tooltip) { + tooltip.hide(); + } + } + /** + * @ignore + */ + hoverDataItem(_dataItem) { + } + /** + * @ignore + */ + unhoverDataItem(_dataItem) { + } + /** + * @ignore + */ + _getBase(key) { + const dataItem = this.dataItems[this.startIndex()]; + if (dataItem) { + return dataItem.get(key); + } + return 0; + } + }; + Series.className = "Series"; + Series.classNames = Component.classNames.concat([Series.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/Draw.js + function segmentedLine(display, segments) { + for (let s2 = 0, len = segments.length; s2 < len; s2++) { + const groups = segments[s2]; + if (groups.length > 0) { + let firstGroup = groups[0]; + if (firstGroup.length > 0) { + let firstPoint = firstGroup[0]; + display.moveTo(firstPoint.x, firstPoint.y); + for (let g = 0, len2 = groups.length; g < len2; g++) { + line(display, groups[g]); + } + } + } + } + } + function line(display, points) { + for (let p = 0, len = points.length; p < len; p++) { + const point = points[p]; + display.lineTo(point.x, point.y); + } + } + + // node_modules/@amcharts/amcharts5/.internal/core/render/Line.js + var Line = class extends Graphics { + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("points") || this.isDirty("segments") || this._sizeDirty || this.isPrivateDirty("width") || this.isPrivateDirty("height")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear) { + const points = this.get("points"); + const segments = this.get("segments"); + if (points && points.length > 0) { + let point = points[0]; + this._display.moveTo(point.x, point.y); + segmentedLine(this._display, [[points]]); + } else if (segments) { + segmentedLine(this._display, segments); + } else if (!this.get("draw")) { + let w = this.width(); + let h = this.height(); + this._display.moveTo(0, 0); + this._display.lineTo(w, h); + } + } + } + }; + Line.className = "Line"; + Line.classNames = Graphics.classNames.concat([Line.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Scrollbar.js + var Scrollbar = class extends Container { + constructor() { + super(...arguments); + this.thumb = this._makeThumb(); + this.startGrip = this._makeButton(); + this.endGrip = this._makeButton(); + this._thumbBusy = false; + this._startDown = false; + this._endDown = false; + this._thumbDown = false; + } + _addOrientationClass() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["scrollbar", this._settings.orientation]); + if (!this._settings.background) { + this._settings.background = RoundedRectangle.new(this._root, { + themeTags: mergeTags(this._settings.themeTags, ["main", "background"]) + }); + } + } + _makeButton() { + return this.children.push(Button.new(this._root, { + themeTags: ["resize", "button", this.get("orientation")], + icon: Graphics.new(this._root, { + themeTags: ["icon"] + }) + })); + } + _makeThumb() { + return this.children.push(RoundedRectangle.new(this._root, { + themeTags: ["thumb", this.get("orientation")] + })); + } + _handleAnimation(animation) { + if (animation) { + this._disposers.push(animation.events.on("stopped", () => { + this.setPrivateRaw("isBusy", false); + this._thumbBusy = false; + })); + } + } + _afterNew() { + this._addOrientationClass(); + super._afterNew(); + const startGrip = this.startGrip; + const endGrip = this.endGrip; + const thumb = this.thumb; + const background2 = this.get("background"); + if (background2) { + this._disposers.push(background2.events.on("click", (event) => { + this.setPrivateRaw("isBusy", true); + const point = this._display.toLocal(event.point); + const w = this.width(); + const h = this.height(); + const orientation = this.get("orientation"); + let newMiddle; + if (orientation == "vertical") { + newMiddle = (point.y - thumb.height() / 2) / h; + } else { + newMiddle = (point.x - thumb.width() / 2) / w; + } + let newCoordinate; + let key; + if (orientation == "vertical") { + newCoordinate = newMiddle * h; + key = "y"; + } else { + newCoordinate = newMiddle * w; + key = "x"; + } + const duration = this.get("animationDuration", 0); + if (duration > 0) { + this._thumbBusy = true; + this._handleAnimation(this.thumb.animate({ key, to: newCoordinate, duration, easing: this.get("animationEasing") })); + } else { + this.thumb.set(key, newCoordinate); + this._root.events.once("frameended", () => { + this.setPrivateRaw("isBusy", false); + }); + } + })); + } + this._disposers.push(thumb.events.on("dblclick", (event) => { + if (!isLocalEvent(event.originalEvent, this)) { + return; + } + const duration = this.get("animationDuration", 0); + const easing = this.get("animationEasing"); + this.animate({ key: "start", to: 0, duration, easing }); + this.animate({ key: "end", to: 1, duration, easing }); + })); + this._disposers.push(startGrip.events.on("pointerdown", () => { + this.setPrivateRaw("isBusy", true); + this._startDown = true; + this._gripDown = "start"; + })); + this._disposers.push(endGrip.events.on("pointerdown", () => { + this.setPrivateRaw("isBusy", true); + this._endDown = true; + this._gripDown = "end"; + })); + this._disposers.push(thumb.events.on("pointerdown", () => { + this.setPrivateRaw("isBusy", true); + this._thumbDown = true; + this._gripDown = void 0; + })); + this._disposers.push(startGrip.events.on("globalpointerup", () => { + if (this._startDown) { + this.setPrivateRaw("isBusy", false); + this._released(); + } + this._startDown = false; + })); + this._disposers.push(endGrip.events.on("globalpointerup", () => { + if (this._endDown) { + this.setPrivateRaw("isBusy", false); + this._released(); + } + this._endDown = false; + })); + this._disposers.push(thumb.events.on("globalpointerup", () => { + if (this._thumbDown) { + this.setPrivateRaw("isBusy", false); + this._released(); + } + this._thumbDown = false; + })); + this._disposers.push(startGrip.on("x", () => { + this._updateThumb(); + })); + this._disposers.push(endGrip.on("x", () => { + this._updateThumb(); + })); + this._disposers.push(startGrip.on("y", () => { + this._updateThumb(); + })); + this._disposers.push(endGrip.on("y", () => { + this._updateThumb(); + })); + this._disposers.push(thumb.events.on("positionchanged", () => { + this._updateGripsByThumb(); + })); + if (this.get("orientation") == "vertical") { + startGrip.set("x", 0); + endGrip.set("x", 0); + this._disposers.push(thumb.adapters.add("y", (value) => { + return Math.max(Math.min(Number(value), this.height() - thumb.height()), 0); + })); + this._disposers.push(thumb.adapters.add("x", (_value) => { + return this.width() / 2; + })); + this._disposers.push(startGrip.adapters.add("x", (_value) => { + return this.width() / 2; + })); + this._disposers.push(endGrip.adapters.add("x", (_value) => { + return this.width() / 2; + })); + this._disposers.push(startGrip.adapters.add("y", (value) => { + return Math.max(Math.min(Number(value), this.height()), 0); + })); + this._disposers.push(endGrip.adapters.add("y", (value) => { + return Math.max(Math.min(Number(value), this.height()), 0); + })); + } else { + startGrip.set("y", 0); + endGrip.set("y", 0); + this._disposers.push(thumb.adapters.add("x", (value) => { + return Math.max(Math.min(Number(value), this.width() - thumb.width()), 0); + })); + this._disposers.push(thumb.adapters.add("y", (_value) => { + return this.height() / 2; + })); + this._disposers.push(startGrip.adapters.add("y", (_value) => { + return this.height() / 2; + })); + this._disposers.push(endGrip.adapters.add("y", (_value) => { + return this.height() / 2; + })); + this._disposers.push(startGrip.adapters.add("x", (value) => { + return Math.max(Math.min(Number(value), this.width()), 0); + })); + this._disposers.push(endGrip.adapters.add("x", (value) => { + return Math.max(Math.min(Number(value), this.width()), 0); + })); + } + } + _updateChildren() { + super._updateChildren(); + if (this.isDirty("end") || this.isDirty("start") || this._sizeDirty) { + this.updateGrips(); + } + } + _changed() { + super._changed(); + if (this.isDirty("start") || this.isDirty("end")) { + const eventType = "rangechanged"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this, start: this.get("start", 0), end: this.get("end", 1), grip: this._gripDown }); + } + } + } + _released() { + const eventType = "released"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this }); + } + } + /** + * @ignore + */ + updateGrips() { + const startGrip = this.startGrip; + const endGrip = this.endGrip; + const orientation = this.get("orientation"); + const height = this.height(); + const width = this.width(); + if (orientation == "vertical") { + startGrip.set("y", height * this.get("start", 0)); + endGrip.set("y", height * this.get("end", 1)); + } else { + startGrip.set("x", width * this.get("start", 0)); + endGrip.set("x", width * this.get("end", 1)); + } + const valueFunction = this.getPrivate("positionTextFunction"); + const from = Math.round(this.get("start", 0) * 100); + const to = Math.round(this.get("end", 0) * 100); + let fromValue; + let toValue; + if (valueFunction) { + fromValue = valueFunction.call(this, this.get("start", 0)); + toValue = valueFunction.call(this, this.get("end", 0)); + } else { + fromValue = from + "%"; + toValue = to + "%"; + } + startGrip.set("ariaLabel", this._t("From %1", void 0, fromValue)); + startGrip.set("ariaValueNow", "" + from); + startGrip.set("ariaValueText", from + "%"); + startGrip.set("ariaValueMin", "0"); + startGrip.set("ariaValueMax", "100"); + endGrip.set("ariaLabel", this._t("To %1", void 0, toValue)); + endGrip.set("ariaValueNow", "" + to); + endGrip.set("ariaValueText", to + "%"); + endGrip.set("ariaValueMin", "0"); + endGrip.set("ariaValueMax", "100"); + } + _updateThumb() { + const thumb = this.thumb; + const startGrip = this.startGrip; + const endGrip = this.endGrip; + const height = this.height(); + const width = this.width(); + let x0 = startGrip.x(); + let x1 = endGrip.x(); + let y0 = startGrip.y(); + let y1 = endGrip.y(); + let start = 0; + let end = 1; + if (this.get("orientation") == "vertical") { + if (isNumber(y0) && isNumber(y1)) { + if (!this._thumbBusy && !thumb.isDragging()) { + thumb.set("height", y1 - y0); + thumb.set("y", y0); + } + start = y0 / height; + end = y1 / height; + } + } else { + if (isNumber(x0) && isNumber(x1)) { + if (!this._thumbBusy && !thumb.isDragging()) { + thumb.set("width", x1 - x0); + thumb.set("x", x0); + } + start = x0 / width; + end = x1 / width; + } + } + if (this.getPrivate("isBusy") && (this.get("start") != start || this.get("end") != end)) { + this.set("start", start); + this.set("end", end); + } + const valueFunction = this.getPrivate("positionTextFunction"); + const from = Math.round(this.get("start", 0) * 100); + const to = Math.round(this.get("end", 0) * 100); + let fromValue; + let toValue; + if (valueFunction) { + fromValue = valueFunction.call(this, this.get("start", 0)); + toValue = valueFunction.call(this, this.get("end", 0)); + } else { + fromValue = from + "%"; + toValue = to + "%"; + } + thumb.set("ariaLabel", this._t("From %1 to %2", void 0, fromValue, toValue)); + thumb.set("ariaValueNow", "" + from); + thumb.set("ariaValueText", from + "%"); + } + _updateGripsByThumb() { + const thumb = this.thumb; + const startGrip = this.startGrip; + const endGrip = this.endGrip; + if (this.get("orientation") == "vertical") { + const thumbSize = thumb.height(); + startGrip.set("y", thumb.y()); + endGrip.set("y", thumb.y() + thumbSize); + } else { + const thumbSize = thumb.width(); + startGrip.set("x", thumb.x()); + endGrip.set("x", thumb.x() + thumbSize); + } + } + }; + Scrollbar.className = "Scrollbar"; + Scrollbar.classNames = Container.classNames.concat([Scrollbar.className]); + + // node_modules/d3-shape/src/constant.js + function constant_default(x2) { + return function constant() { + return x2; + }; + } + + // node_modules/d3-path/src/path.js + var pi = Math.PI; + var tau2 = 2 * pi; + var epsilon = 1e-6; + var tauEpsilon = tau2 - epsilon; + function append(strings) { + this._ += strings[0]; + for (let i = 1, n = strings.length; i < n; ++i) { + this._ += arguments[i] + strings[i]; + } + } + function appendRound(digits) { + let d = Math.floor(digits); + if (!(d >= 0)) throw new Error(`invalid digits: ${digits}`); + if (d > 15) return append; + const k = 10 ** d; + return function(strings) { + this._ += strings[0]; + for (let i = 1, n = strings.length; i < n; ++i) { + this._ += Math.round(arguments[i] * k) / k + strings[i]; + } + }; + } + var Path = class { + constructor(digits) { + this._x0 = this._y0 = // start of current subpath + this._x1 = this._y1 = null; + this._ = ""; + this._append = digits == null ? append : appendRound(digits); + } + moveTo(x2, y2) { + this._append`M${this._x0 = this._x1 = +x2},${this._y0 = this._y1 = +y2}`; + } + closePath() { + if (this._x1 !== null) { + this._x1 = this._x0, this._y1 = this._y0; + this._append`Z`; + } + } + lineTo(x2, y2) { + this._append`L${this._x1 = +x2},${this._y1 = +y2}`; + } + quadraticCurveTo(x1, y1, x2, y2) { + this._append`Q${+x1},${+y1},${this._x1 = +x2},${this._y1 = +y2}`; + } + bezierCurveTo(x1, y1, x2, y2, x3, y3) { + this._append`C${+x1},${+y1},${+x2},${+y2},${this._x1 = +x3},${this._y1 = +y3}`; + } + arcTo(x1, y1, x2, y2, r) { + x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r; + if (r < 0) throw new Error(`negative radius: ${r}`); + let x0 = this._x1, y0 = this._y1, x21 = x2 - x1, y21 = y2 - y1, x01 = x0 - x1, y01 = y0 - y1, l01_2 = x01 * x01 + y01 * y01; + if (this._x1 === null) { + this._append`M${this._x1 = x1},${this._y1 = y1}`; + } else if (!(l01_2 > epsilon)) ; + else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) { + this._append`L${this._x1 = x1},${this._y1 = y1}`; + } else { + let x20 = x2 - x0, y20 = y2 - y0, l21_2 = x21 * x21 + y21 * y21, l20_2 = x20 * x20 + y20 * y20, l21 = Math.sqrt(l21_2), l01 = Math.sqrt(l01_2), l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2), t01 = l / l01, t21 = l / l21; + if (Math.abs(t01 - 1) > epsilon) { + this._append`L${x1 + t01 * x01},${y1 + t01 * y01}`; + } + this._append`A${r},${r},0,0,${+(y01 * x20 > x01 * y20)},${this._x1 = x1 + t21 * x21},${this._y1 = y1 + t21 * y21}`; + } + } + arc(x2, y2, r, a0, a1, ccw) { + x2 = +x2, y2 = +y2, r = +r, ccw = !!ccw; + if (r < 0) throw new Error(`negative radius: ${r}`); + let dx = r * Math.cos(a0), dy = r * Math.sin(a0), x0 = x2 + dx, y0 = y2 + dy, cw = 1 ^ ccw, da = ccw ? a0 - a1 : a1 - a0; + if (this._x1 === null) { + this._append`M${x0},${y0}`; + } else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) { + this._append`L${x0},${y0}`; + } + if (!r) return; + if (da < 0) da = da % tau2 + tau2; + if (da > tauEpsilon) { + this._append`A${r},${r},0,1,${cw},${x2 - dx},${y2 - dy}A${r},${r},0,1,${cw},${this._x1 = x0},${this._y1 = y0}`; + } else if (da > epsilon) { + this._append`A${r},${r},0,${+(da >= pi)},${cw},${this._x1 = x2 + r * Math.cos(a1)},${this._y1 = y2 + r * Math.sin(a1)}`; + } + } + rect(x2, y2, w, h) { + this._append`M${this._x0 = this._x1 = +x2},${this._y0 = this._y1 = +y2}h${w = +w}v${+h}h${-w}Z`; + } + toString() { + return this._; + } + }; + function path() { + return new Path(); + } + path.prototype = Path.prototype; + + // node_modules/d3-shape/src/path.js + function withPath(shape) { + let digits = 3; + shape.digits = function(_) { + if (!arguments.length) return digits; + if (_ == null) { + digits = null; + } else { + const d = Math.floor(_); + if (!(d >= 0)) throw new RangeError(`invalid digits: ${_}`); + digits = d; + } + return shape; + }; + return () => new Path(digits); + } + + // node_modules/d3-shape/src/array.js + var slice = Array.prototype.slice; + function array_default(x2) { + return typeof x2 === "object" && "length" in x2 ? x2 : Array.from(x2); + } + + // node_modules/d3-shape/src/curve/linear.js + function Linear(context) { + this._context = context; + } + Linear.prototype = { + areaStart: function() { + this._line = 0; + }, + areaEnd: function() { + this._line = NaN; + }, + lineStart: function() { + this._point = 0; + }, + lineEnd: function() { + if (this._line || this._line !== 0 && this._point === 1) this._context.closePath(); + this._line = 1 - this._line; + }, + point: function(x2, y2) { + x2 = +x2, y2 = +y2; + switch (this._point) { + case 0: + this._point = 1; + this._line ? this._context.lineTo(x2, y2) : this._context.moveTo(x2, y2); + break; + case 1: + this._point = 2; + // falls through + default: + this._context.lineTo(x2, y2); + break; + } + } + }; + function linear_default(context) { + return new Linear(context); + } + + // node_modules/d3-shape/src/point.js + function x(p) { + return p[0]; + } + function y(p) { + return p[1]; + } + + // node_modules/d3-shape/src/line.js + function line_default(x2, y2) { + var defined = constant_default(true), context = null, curve = linear_default, output = null, path2 = withPath(line2); + x2 = typeof x2 === "function" ? x2 : x2 === void 0 ? x : constant_default(x2); + y2 = typeof y2 === "function" ? y2 : y2 === void 0 ? y : constant_default(y2); + function line2(data) { + var i, n = (data = array_default(data)).length, d, defined0 = false, buffer; + if (context == null) output = curve(buffer = path2()); + for (i = 0; i <= n; ++i) { + if (!(i < n && defined(d = data[i], i, data)) === defined0) { + if (defined0 = !defined0) output.lineStart(); + else output.lineEnd(); + } + if (defined0) output.point(+x2(d, i, data), +y2(d, i, data)); + } + if (buffer) return output = null, buffer + "" || null; + } + line2.x = function(_) { + return arguments.length ? (x2 = typeof _ === "function" ? _ : constant_default(+_), line2) : x2; + }; + line2.y = function(_) { + return arguments.length ? (y2 = typeof _ === "function" ? _ : constant_default(+_), line2) : y2; + }; + line2.defined = function(_) { + return arguments.length ? (defined = typeof _ === "function" ? _ : constant_default(!!_), line2) : defined; + }; + line2.curve = function(_) { + return arguments.length ? (curve = _, context != null && (output = curve(context)), line2) : curve; + }; + line2.context = function(_) { + return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line2) : context; + }; + return line2; + } + + // node_modules/d3-shape/src/area.js + function area_default(x0, y0, y1) { + var x1 = null, defined = constant_default(true), context = null, curve = linear_default, output = null, path2 = withPath(area); + x0 = typeof x0 === "function" ? x0 : x0 === void 0 ? x : constant_default(+x0); + y0 = typeof y0 === "function" ? y0 : y0 === void 0 ? constant_default(0) : constant_default(+y0); + y1 = typeof y1 === "function" ? y1 : y1 === void 0 ? y : constant_default(+y1); + function area(data) { + var i, j, k, n = (data = array_default(data)).length, d, defined0 = false, buffer, x0z = new Array(n), y0z = new Array(n); + if (context == null) output = curve(buffer = path2()); + for (i = 0; i <= n; ++i) { + if (!(i < n && defined(d = data[i], i, data)) === defined0) { + if (defined0 = !defined0) { + j = i; + output.areaStart(); + output.lineStart(); + } else { + output.lineEnd(); + output.lineStart(); + for (k = i - 1; k >= j; --k) { + output.point(x0z[k], y0z[k]); + } + output.lineEnd(); + output.areaEnd(); + } + } + if (defined0) { + x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data); + output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]); + } + } + if (buffer) return output = null, buffer + "" || null; + } + function arealine() { + return line_default().defined(defined).curve(curve).context(context); + } + area.x = function(_) { + return arguments.length ? (x0 = typeof _ === "function" ? _ : constant_default(+_), x1 = null, area) : x0; + }; + area.x0 = function(_) { + return arguments.length ? (x0 = typeof _ === "function" ? _ : constant_default(+_), area) : x0; + }; + area.x1 = function(_) { + return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : constant_default(+_), area) : x1; + }; + area.y = function(_) { + return arguments.length ? (y0 = typeof _ === "function" ? _ : constant_default(+_), y1 = null, area) : y0; + }; + area.y0 = function(_) { + return arguments.length ? (y0 = typeof _ === "function" ? _ : constant_default(+_), area) : y0; + }; + area.y1 = function(_) { + return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : constant_default(+_), area) : y1; + }; + area.lineX0 = area.lineY0 = function() { + return arealine().x(x0).y(y0); + }; + area.lineY1 = function() { + return arealine().x(x0).y(y1); + }; + area.lineX1 = function() { + return arealine().x(x1).y(y0); + }; + area.defined = function(_) { + return arguments.length ? (defined = typeof _ === "function" ? _ : constant_default(!!_), area) : defined; + }; + area.curve = function(_) { + return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve; + }; + area.context = function(_) { + return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context; + }; + return area; + } + + // node_modules/@amcharts/amcharts5/.internal/core/render/Chart.js + var Chart = class extends Container { + constructor() { + super(...arguments); + this.chartContainer = this.children.push(Container.new(this._root, { width: p100, height: p100, interactiveChildren: false })); + this.bulletsContainer = Container.new(this._root, { interactiveChildren: false, isMeasured: false, position: "absolute", width: p100, height: p100 }); + } + }; + Chart.className = "Chart"; + Chart.classNames = Container.classNames.concat([Chart.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/SerialChart.js + var SerialChart = class extends Chart { + constructor() { + super(...arguments); + this.seriesContainer = Container.new(this._root, { width: p100, height: p100, isMeasured: false }); + this.series = new ListAutoDispose(); + } + _afterNew() { + super._afterNew(); + this._disposers.push(this.series); + const children = this.seriesContainer.children; + this._disposers.push(this.series.events.onAll((change) => { + if (change.type === "clear") { + each(change.oldValues, (series2) => { + this._removeSeries(series2); + }); + const colors = this.get("colors"); + if (colors) { + colors.reset(); + } + const patterns = this.get("patterns"); + if (patterns) { + patterns.reset(); + } + } else if (change.type === "push") { + children.moveValue(change.newValue); + this._processSeries(change.newValue); + } else if (change.type === "setIndex") { + children.setIndex(change.index, change.newValue); + this._processSeries(change.newValue); + } else if (change.type === "insertIndex") { + children.insertIndex(change.index, change.newValue); + this._processSeries(change.newValue); + } else if (change.type === "removeIndex") { + this._removeSeries(change.oldValue); + } else if (change.type === "moveIndex") { + children.moveValue(change.value, change.newIndex); + this._processSeries(change.value); + } else if (change.type === "swap") { + const a = change.a; + const b = change.b; + const aIndex = this.series.indexOf(a); + const bIndex = this.series.indexOf(b); + children.moveValue(a, bIndex); + children.moveValue(b, aIndex); + this.series.each((series2) => { + this._processSeries(series2); + series2.markDirtyValues(); + }); + } else { + throw new Error("Unknown IListEvent type"); + } + })); + } + _processSeries(series2) { + series2.chart = this; + series2._placeBulletsContainer(this); + } + _removeSeries(series2) { + series2._handleRemoved(); + if (!series2.isDisposed()) { + this.seriesContainer.children.removeValue(series2); + series2._removeBulletsContainer(); + } + } + }; + SerialChart.className = "SerialChart"; + SerialChart.classNames = Chart.classNames.concat([SerialChart.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Tick.js + var Tick = class extends Line { + }; + Tick.className = "Tick"; + Tick.classNames = Line.classNames.concat([Tick.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/ColorSet.js + var ColorSet = class extends Entity { + //protected _currentPass: number = 0; + _afterNew() { + super._afterNewApplyThemes(); + this._dirty["colors"] = false; + } + _beforeChanged() { + if (this.isDirty("colors")) { + this.reset(); + } + } + /** + * @ignore + */ + generateColors() { + this.setPrivate("currentPass", this.getPrivate("currentPass", 0) + 1); + const pass = this.getPrivate("currentPass"); + const colors = this.get("colors", [this.get("baseColor", Color.fromHex(16711680))]); + if (!this.getPrivate("numColors")) { + this.setPrivate("numColors", colors.length); + } + const len = this.getPrivate("numColors"); + const start = 0; + const passOptions = this.get("passOptions"); + const reuse = this.get("reuse"); + for (let i = start; i < len; i++) { + if (reuse) { + colors.push(colors[i]); + } else { + const hsl = colors[i].toHSL(); + let h = hsl.h + (passOptions.hue || 0) * pass; + while (h > 1) + h -= 1; + let s2 = hsl.s + (passOptions.saturation || 0) * pass; + if (s2 > 1) + s2 = 1; + if (s2 < 0) + s2 = 0; + let l = hsl.l + (passOptions.lightness || 0) * pass; + while (l > 1) + l -= 1; + colors.push(Color.fromHSL(h, s2, l)); + } + } + } + /** + * Returns a [[Color]] at specific index. + * + * If there's no color at this index, a new color is generated. + * + * @param index Index + * @return Color + */ + getIndex(index) { + const colors = this.get("colors", []); + const saturation = this.get("saturation"); + if (index >= colors.length) { + this.generateColors(); + return this.getIndex(index); + } + return saturation != null ? Color.saturate(colors[index], saturation) : colors[index]; + } + /** + * Returns next [[Color]] in the list. + * + * If the list is out of colors, new ones are generated dynamically. + */ + next() { + let currentStep = this.getPrivate("currentStep", this.get("startIndex", 0)); + this.setPrivate("currentStep", currentStep + this.get("step", 1)); + return this.getIndex(currentStep); + } + /** + * Resets counter to the start of the list, so the next call for `next()` will + * return the first color. + */ + reset() { + this.setPrivate("currentStep", this.get("startIndex", 0)); + this.setPrivate("currentPass", 0); + } + }; + ColorSet.className = "ColorSet"; + ColorSet.classNames = Entity.classNames.concat([ColorSet.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/XYChartDefaultTheme.js + var XYChartDefaultTheme = class extends Theme { + setupDefaultRules() { + super.setupDefaultRules(); + const ic = this._root.interfaceColors; + const language = this._root.language; + const r = this.rule.bind(this); + r("XYChart").setAll({ + colors: ColorSet.new(this._root, {}), + paddingLeft: 20, + paddingRight: 20, + paddingTop: 16, + paddingBottom: 16, + panX: false, + panY: false, + wheelStep: 0.25, + arrangeTooltips: true, + pinchZoomX: false, + pinchZoomY: false + }); + r("XYSeries").setAll({ + legendLabelText: "{name}" + }); + r("Rectangle", ["plotbackground", "xy", "background"]).setAll({ + fill: Color.fromHex(0), + fillOpacity: 0 + }); + r("XYChart", ["scrollbar", "chart"]).setAll({ + paddingBottom: 0, + paddingLeft: 0, + paddingTop: 0, + paddingRight: 0, + colors: ColorSet.new(this._root, { + saturation: 0 + }) + }); + { + const rule = r("Graphics", ["scrollbar", "overlay"]); + rule.setAll({ + fillOpacity: 0.5 + }); + setColor(rule, "fill", ic, "background"); + } + r("RoundedRectangle", ["xy", "scrollbar", "thumb"]).setAll({ + cornerRadiusTR: 0, + cornerRadiusTL: 0, + cornerRadiusBR: 0, + cornerRadiusBL: 0, + fillOpacity: 0, + focusable: true + }); + r("RoundedRectangle", ["xy", "scrollbar", "thumb"]).states.create("hover", { fillOpacity: 0.4 }); + r("RoundedRectangle", ["xy", "scrollbar", "chart", "background"]).setAll({ + cornerRadiusTL: 0, + cornerRadiusBL: 0, + cornerRadiusTR: 0, + cornerRadiusBR: 0 + }); + r("RoundedRectangle", ["xy", "scrollbar", "chart", "background", "resize", "button"]).setAll({ + cornerRadiusBL: 40, + cornerRadiusBR: 40, + cornerRadiusTL: 40, + cornerRadiusTR: 40 + }); + r("AxisRendererX", ["xy", "chart", "scrollbar"]).setAll({ + strokeOpacity: 0, + inside: true + }); + r("AxisRendererY", ["xy", "chart", "scrollbar"]).setAll({ + strokeOpacity: 0, + inside: true, + minGridDistance: 5 + }); + r("AxisLabel", ["xy", "scrollbar", "x"]).setAll({ + opacity: 0.5, + centerY: p100, + minPosition: 0.01, + maxPosition: 0.99, + fontSize: "0.8em" + }); + r("AxisLabel", ["category"]).setAll({ + text: "{category}", + populateText: true + }); + r("AxisLabel", ["x"]).setAll({ + centerY: 0 + }); + r("AxisLabel", ["x", "inside"]).setAll({ + centerY: p100 + }); + r("AxisLabel", ["x", "inside", "opposite"]).setAll({ + centerY: 0 + }); + r("AxisLabel", ["x", "opposite"]).setAll({ + centerY: p100 + }); + r("AxisLabel", ["y"]).setAll({ + centerX: p100 + }); + r("AxisLabel", ["y", "inside"]).setAll({ + centerX: 0 + }); + r("AxisLabel", ["y", "inside", "opposite"]).setAll({ + centerX: p100 + }); + r("AxisLabel", ["y", "opposite"]).setAll({ + centerX: 0 + }); + r("AxisLabel", ["minor"]).setAll({ + fontSize: "0.6em" + }); + r("AxisLabel", ["xy", "scrollbar", "y"]).setAll({ + visible: false + }); + r("Grid", ["xy", "scrollbar", "y"]).setAll({ + visible: false + }); + r("Grid", ["xy", "scrollbar", "x"]).setAll({ + opacity: 0.5 + }); + r("XYCursor").setAll({ + behavior: "none", + layer: 30, + exportable: false, + snapToSeriesBy: "xy", + moveThreshold: 1 + }); + { + const rule = r("Grid", ["cursor", "x"]); + rule.setAll({ + forceInactive: true, + strokeOpacity: 0.8, + strokeDasharray: [2, 2], + role: "slider", + ariaLabel: language.translate("Use left and right arrows to move selection") + }); + setColor(rule, "stroke", ic, "alternativeBackground"); + } + { + const rule = r("Grid", ["cursor", "y"]); + rule.setAll({ + forceInactive: true, + strokeOpacity: 0.8, + strokeDasharray: [2, 2], + role: "slider", + ariaLabel: language.translate("Use up and down arrows to move selection") + }); + setColor(rule, "stroke", ic, "alternativeBackground"); + } + { + const rule = r("Graphics", ["cursor", "selection"]); + rule.setAll({ + fillOpacity: 0.15 + }); + setColor(rule, "fill", ic, "alternativeBackground"); + } + r("Axis").setAll({ + zoomOut: true, + start: 0, + end: 1, + minZoomCount: 1, + maxZoomCount: Infinity, + maxZoomFactor: 1e3, + maxDeviation: 0.1, + snapTooltip: true, + tooltipLocation: 0.5, + panX: true, + panY: true, + zoomX: true, + zoomY: true, + fixAxisSize: true + }); + r("AxisLabel").setAll({ + location: 0.5, + multiLocation: 0, + centerX: p50, + centerY: p50, + paddingTop: 3, + paddingBottom: 3, + paddingLeft: 5, + paddingRight: 5 + }); + r("Container", ["axis", "header"]).setAll({ + layer: 30 + }); + r("Rectangle", ["axis", "header", "background"]).setAll({ + crisp: true + }); + { + const rule = r("AxisRenderer"); + rule.setAll({ + crisp: true, + strokeOpacity: 0 + }); + setColor(rule, "stroke", ic, "grid"); + } + r("AxisRendererX").setAll({ + minGridDistance: 120, + opposite: false, + inversed: false, + cellStartLocation: 0, + cellEndLocation: 1, + width: p100 + }); + r("AxisRendererY").setAll({ + minGridDistance: 40, + opposite: false, + inversed: false, + cellStartLocation: 0, + cellEndLocation: 1, + height: p100 + }); + { + const rule = r("Rectangle", ["axis", "thumb", "zoomgrip"]); + rule.setAll({ + fillOpacity: 0 + }); + setColor(rule, "fill", ic, "alternativeBackground"); + rule.states.create("hover", { fillOpacity: 0.1 }); + } + r("Rectangle", ["axis", "thumb", "x", "zoomgrip"]).setAll({ + cursorOverStyle: "ew-resize" + }); + r("Rectangle", ["axis", "thumb", "y", "zoomgrip"]).setAll({ + cursorOverStyle: "ns-resize" + }); + { + const rule = r("Grid"); + rule.setAll({ + location: 0, + strokeOpacity: 0.15, + crisp: true + }); + setColor(rule, "stroke", ic, "grid"); + } + { + const rule = r("Grid", ["minor"]); + rule.setAll({ + location: 0, + strokeOpacity: 0.07, + crisp: true + }); + setColor(rule, "stroke", ic, "grid"); + } + r("Grid", ["base"]).setAll({ + strokeOpacity: 0.3 + }); + { + const rule = r("Graphics", ["axis", "fill"]); + rule.setAll({ + visible: false, + isMeasured: false, + position: "absolute", + fillOpacity: 0.05 + }); + setColor(rule, "fill", ic, "alternativeBackground"); + } + r("Graphics", ["axis", "fill", "range"]).setAll({ + isMeasured: true + }); + r("Graphics", ["series", "fill", "range"]).setAll({ + visible: false, + isMeasured: true + }); + r("Grid", ["series", "range"]).setAll({ + visible: false + }); + r("AxisTick", ["series", "range"]).setAll({ + visible: false + }); + r("AxisLabel", ["series", "range"]).setAll({ + visible: false + }); + { + const rule = r("AxisTick"); + rule.setAll({ + location: 0.5, + multiLocation: 0, + strokeOpacity: 1, + isMeasured: false, + position: "absolute", + visible: false + }); + setColor(rule, "stroke", ic, "grid"); + } + r("CategoryAxis").setAll({ + startLocation: 0, + endLocation: 1, + fillRule: (dataItem, index) => { + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + if (!isNumber(index) || index % 2 == 0) { + axisFill.setPrivate("visible", true); + } else { + axisFill.setPrivate("visible", false); + } + } + } + }); + const gridIntervals = [ + { timeUnit: "millisecond", count: 1 }, + { timeUnit: "millisecond", count: 5 }, + { timeUnit: "millisecond", count: 10 }, + { timeUnit: "millisecond", count: 50 }, + { timeUnit: "millisecond", count: 100 }, + { timeUnit: "millisecond", count: 500 }, + { timeUnit: "second", count: 1 }, + { timeUnit: "second", count: 5 }, + { timeUnit: "second", count: 10 }, + { timeUnit: "second", count: 30 }, + { timeUnit: "minute", count: 1 }, + { timeUnit: "minute", count: 5 }, + { timeUnit: "minute", count: 10 }, + { timeUnit: "minute", count: 15 }, + { timeUnit: "minute", count: 30 }, + { timeUnit: "hour", count: 1 }, + { timeUnit: "hour", count: 3 }, + { timeUnit: "hour", count: 6 }, + { timeUnit: "hour", count: 12 }, + { timeUnit: "day", count: 1 }, + { timeUnit: "day", count: 2 }, + { timeUnit: "day", count: 3 }, + { timeUnit: "day", count: 4 }, + { timeUnit: "day", count: 5 }, + { timeUnit: "week", count: 1 }, + { timeUnit: "month", count: 1 }, + { timeUnit: "month", count: 2 }, + { timeUnit: "month", count: 3 }, + { timeUnit: "month", count: 6 }, + { timeUnit: "year", count: 1 }, + { timeUnit: "year", count: 2 }, + { timeUnit: "year", count: 5 }, + { timeUnit: "year", count: 10 }, + { timeUnit: "year", count: 50 }, + { timeUnit: "year", count: 100 }, + { timeUnit: "year", count: 200 }, + { timeUnit: "year", count: 500 }, + { timeUnit: "year", count: 1e3 }, + { timeUnit: "year", count: 2e3 }, + { timeUnit: "year", count: 5e3 }, + { timeUnit: "year", count: 1e4 }, + { timeUnit: "year", count: 1e5 } + ]; + const dateFormats = { + "millisecond": language.translate("_date_millisecond"), + "second": language.translate("_date_second"), + "minute": language.translate("_date_minute"), + "hour": language.translate("_date_hour"), + "day": language.translate("_date_day"), + "week": language.translate("_date_day"), + "month": language.translate("_date_month"), + "year": language.translate("_date_year") + }; + const periodChangeDateFormats = { + "millisecond": language.translate("_date_millisecond"), + "second": language.translate("_date_second"), + "minute": language.translate("_date_minute"), + "hour": language.translate("_date_day"), + "day": language.translate("_date_day"), + "week": language.translate("_date_day"), + "month": language.translate("_date_month") + " " + language.translate("_date_year"), + "year": language.translate("_date_year") + }; + const tooltipDateFormats = { + "millisecond": language.translate("_date_millisecond_full"), + "second": language.translate("_date_second_full"), + "minute": language.translate("_date_minute_full"), + "hour": language.translate("_date_hour_full"), + "day": language.translate("_date_day_full"), + "week": language.translate("_date_week_full"), + "month": language.translate("_date_month_full"), + "year": language.translate("_date_year") + }; + r("CategoryDateAxis").setAll({ + markUnitChange: true, + gridIntervals: copy(gridIntervals), + dateFormats: copy2(dateFormats), + periodChangeDateFormats: copy2(periodChangeDateFormats) + }); + r("DateAxis").setAll({ + maxZoomFactor: null, + strictMinMax: true, + startLocation: 0, + endLocation: 1, + markUnitChange: true, + groupData: false, + groupCount: 500, + skipFirstMinor: true, + weekLabelLocation: 0, + gridIntervals: copy(gridIntervals), + dateFormats: copy2(dateFormats), + periodChangeDateFormats: copy2(periodChangeDateFormats), + tooltipDateFormats, + groupIntervals: [ + { timeUnit: "millisecond", count: 1 }, + { timeUnit: "millisecond", count: 10 }, + { timeUnit: "millisecond", count: 100 }, + { timeUnit: "second", count: 1 }, + { timeUnit: "second", count: 10 }, + { timeUnit: "minute", count: 1 }, + { timeUnit: "minute", count: 10 }, + { timeUnit: "hour", count: 1 }, + { timeUnit: "day", count: 1 }, + { timeUnit: "week", count: 1 }, + { timeUnit: "month", count: 1 }, + { timeUnit: "year", count: 1 } + ], + fillRule: (dataItem) => { + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + const axis = dataItem.component; + const value = dataItem.get("value"); + const endValue = dataItem.get("endValue"); + const intervalDuration = axis.intervalDuration(); + const baseInterval = axis.getPrivate("baseInterval"); + const gridInterval = axis.getPrivate("gridInterval", baseInterval); + let min2 = axis.getPrivate("min", 0); + min2 = round2(new Date(min2), gridInterval.timeUnit, gridInterval.count, this._root.locale.firstDayOfWeek, this._root.utc, void 0, this._root.timezone).getTime(); + if (value != null && endValue != null) { + const val = Math.round(Math.round((value - min2) / intervalDuration)) / 2; + if (val == Math.round(val)) { + axisFill.setPrivate("visible", true); + } else { + axisFill.setPrivate("visible", false); + } + } + } + } + }); + r("GaplessDateAxis").setAll({ + fillRule: (dataItem) => { + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + const index = dataItem.get("index"); + let visible = false; + if (!isNumber(index) || index % 2 == 0) { + visible = true; + } + axisFill.setPrivate("visible", visible); + } + } + }); + r("ValueAxis").setAll({ + baseValue: 0, + logarithmic: false, + strictMinMax: false, + autoZoom: true, + fillRule: (dataItem) => { + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + const axis = dataItem.component; + const value = dataItem.get("value"); + const step = axis.getPrivate("step"); + if (isNumber(value) && isNumber(step)) { + if (round(value / step / 2, 5) == Math.round(value / step / 2)) { + axisFill.setPrivate("visible", false); + } else { + axisFill.setPrivate("visible", true); + } + } + } + } + }); + r("DurationAxis").setAll({ + baseUnit: "second" + }); + r("XYSeries").setAll({ + maskBullets: true, + stackToNegative: true, + locationX: 0.5, + locationY: 0.5, + snapTooltip: false, + openValueXGrouped: "open", + openValueYGrouped: "open", + valueXGrouped: "close", + valueYGrouped: "close", + seriesTooltipTarget: "series" + }); + r("BaseColumnSeries").setAll({ + adjustBulletPosition: true + }); + r("ColumnSeries").setAll({ + clustered: true + }); + r("RoundedRectangle", ["series", "column"]).setAll({ + position: "absolute", + isMeasured: false, + width: percent(70), + height: percent(70), + strokeWidth: 1, + strokeOpacity: 1, + cornerRadiusBL: 0, + cornerRadiusTL: 0, + cornerRadiusBR: 0, + cornerRadiusTR: 0, + fillOpacity: 1, + role: "figure" + }); + r("LineSeries").setAll({ + connect: true, + autoGapCount: 1.1, + stackToNegative: false + }); + r("Graphics", ["series", "stroke"]).setAll({ + position: "absolute", + strokeWidth: 1, + strokeOpacity: 1, + isMeasured: false + }); + r("Graphics", ["series", "fill"]).setAll({ + visible: false, + fillOpacity: 0, + position: "absolute", + strokeWidth: 0, + strokeOpacity: 0, + isMeasured: false + }); + r("Graphics", ["line", "series", "legend", "marker", "stroke"]).setAll({ + draw: (display, sprite) => { + const parent = sprite.parent; + if (parent) { + const h = parent.height(); + const w = parent.width(); + display.moveTo(0, h / 2); + display.lineTo(w, h / 2); + } + } + }); + { + const rule = r("Graphics", ["line", "series", "legend", "marker", "stroke"]).states.create("disabled", {}); + setColor(rule, "stroke", ic, "disabled"); + } + r("Graphics", ["line", "series", "legend", "marker", "fill"]).setAll({ + draw: (display, sprite) => { + const parent = sprite.parent; + if (parent) { + const h = parent.height(); + const w = parent.width(); + display.moveTo(0, 0); + display.lineTo(w, 0); + display.lineTo(w, h); + display.lineTo(0, h); + display.lineTo(0, 0); + } + } + }); + { + const rule = r("Graphics", ["line", "series", "legend", "marker", "fill"]).states.create("disabled", {}); + setColor(rule, "stroke", ic, "disabled"); + } + r("SmoothedXYLineSeries").setAll({ + tension: 0.5 + }); + r("SmoothedXLineSeries").setAll({ + tension: 0.5 + }); + r("SmoothedYLineSeries").setAll({ + tension: 0.5 + }); + r("Candlestick").setAll({ + position: "absolute", + isMeasured: false, + width: percent(50), + height: percent(50), + strokeWidth: 1, + strokeOpacity: 1, + cornerRadiusBL: 0, + cornerRadiusTL: 0, + cornerRadiusBR: 0, + cornerRadiusTR: 0, + fillOpacity: 1, + role: "figure" + }); + r("OHLC").setAll({ + width: percent(80), + height: percent(80) + }); + r("CandlestickSeries").setAll({ + lowValueXGrouped: "low", + lowValueYGrouped: "low", + highValueXGrouped: "high", + highValueYGrouped: "high", + openValueXGrouped: "open", + openValueYGrouped: "open", + valueXGrouped: "close", + valueYGrouped: "close" + }); + { + const rule = r("Rectangle", ["column", "autocolor"]).states.create("riseFromOpen", {}); + setColor(rule, "fill", ic, "positive"); + setColor(rule, "stroke", ic, "positive"); + } + { + const rule = r("Rectangle", ["column", "autocolor"]).states.create("dropFromOpen", {}); + setColor(rule, "fill", ic, "negative"); + setColor(rule, "stroke", ic, "negative"); + } + r("Rectangle", ["column", "autocolor", "pro"]).states.create("riseFromOpen", { fillOpacity: 0 }); + r("Rectangle", ["column", "autocolor", "pro"]).states.create("dropFromOpen", { fillOpacity: 1 }); + { + const rule = r("Rectangle", ["column", "autocolor", "pro"]).states.create("riseFromPrevious", {}); + setColor(rule, "fill", ic, "positive"); + setColor(rule, "stroke", ic, "positive"); + } + { + const rule = r("Rectangle", ["column", "autocolor", "pro"]).states.create("dropFromPrevious", {}); + setColor(rule, "fill", ic, "negative"); + setColor(rule, "stroke", ic, "negative"); + } + { + const rule = r("RoundedRectangle", ["rangegrip"]); + rule.setAll({ + strokeOpacity: 0, + fillOpacity: 0, + strokeWidth: 1, + width: 12, + height: 12 + }); + } + { + const rule = r("Graphics", ["rangegrip", "button", "icon"]); + rule.setAll({ + interactive: false, + crisp: true, + strokeOpacity: 0.5, + draw: (display) => { + display.moveTo(0, 0.5); + display.lineTo(0, 12.5); + display.moveTo(2, 0.5); + display.lineTo(2, 12.5); + display.moveTo(4, 0.5); + display.lineTo(4, 12.5); + } + }); + setColor(rule, "stroke", ic, "secondaryButtonText"); + } + r("Button", ["rangegrip"]).setAll({ + draggable: true, + paddingTop: 0, + paddingBottom: 0 + }); + r("Button", ["rangegrip", "vertical"]).setAll({ + rotation: 90, + cursorOverStyle: "ns-resize", + centerX: p50 + }); + r("Button", ["rangegrip", "horizontal"]).setAll({ + cursorOverStyle: "ew-resize", + centerX: p50 + }); + r("Button", ["rangegrip", "vertical", "left"]).setAll({ + centerY: p100 + }); + r("Button", ["rangegrip", "vertical", "right"]).setAll({ + centerY: 0 + }); + r("Button", ["rangegrip", "horizontal", "top"]).setAll({ + centerY: 0 + }); + r("Button", ["rangegrip", "horizontal", "bottom"]).setAll({ + centerY: p100 + }); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/XYChart.js + var XYChart = class extends SerialChart { + constructor() { + super(...arguments); + this.xAxes = new ListAutoDispose(); + this.yAxes = new ListAutoDispose(); + this.topAxesContainer = this.chartContainer.children.push(Container.new(this._root, { width: p100, layout: this._root.verticalLayout })); + this.yAxesAndPlotContainer = this.chartContainer.children.push(Container.new(this._root, { width: p100, height: p100, layout: this._root.horizontalLayout })); + this.bottomAxesContainer = this.chartContainer.children.push(Container.new(this._root, { width: p100, layout: this._root.verticalLayout })); + this.leftAxesContainer = this.yAxesAndPlotContainer.children.push(Container.new(this._root, { height: p100, layout: this._root.horizontalLayout })); + this.plotsContainer = this.yAxesAndPlotContainer.children.push(Container.new(this._root, { width: p100, height: p100, maskContent: false })); + this.plotContainer = this.plotsContainer.children.push(Container.new(this._root, { width: p100, height: p100 })); + this.topPlotContainer = this.plotsContainer.children.push(Container.new(this._root, { width: p100, height: p100 })); + this.gridContainer = this.plotContainer.children.push(Container.new(this._root, { width: p100, height: p100, isMeasured: false })); + this.topGridContainer = Container.new(this._root, { width: p100, height: p100, isMeasured: false }); + this.rightAxesContainer = this.yAxesAndPlotContainer.children.push(Container.new(this._root, { height: p100, layout: this._root.horizontalLayout })); + this.axisHeadersContainer = this.plotContainer.children.push(Container.new(this._root, {})); + this.zoomOutButton = this.topPlotContainer.children.push(Button.new(this._root, { + themeTags: ["zoom"], + icon: Graphics.new(this._root, { + themeTags: ["button", "icon"] + }) + })); + this._movePoint = { x: 0, y: 0 }; + this._movePoints = {}; + } + _afterNew() { + this._defaultThemes.push(XYChartDefaultTheme.new(this._root)); + super._afterNew(); + this._disposers.push(this.xAxes); + this._disposers.push(this.yAxes); + const root2 = this._root; + let verticalLayout = this._root.verticalLayout; + const zoomOutButton = this.zoomOutButton; + zoomOutButton.events.on("click", () => { + this.zoomOut(); + }); + zoomOutButton.hide(0); + zoomOutButton.states.lookup("default").set("opacity", 1); + this.chartContainer.set("layout", verticalLayout); + const plotContainer = this.plotContainer; + plotContainer.children.push(this.seriesContainer); + this._disposers.push(this._processAxis(this.xAxes, this.bottomAxesContainer)); + this._disposers.push(this._processAxis(this.yAxes, this.leftAxesContainer)); + plotContainer.children.push(this.topGridContainer); + plotContainer.children.push(this.bulletsContainer); + plotContainer.set("interactive", true); + plotContainer.set("interactiveChildren", false); + plotContainer.set("background", Rectangle.new(root2, { + themeTags: ["plotbackground", "xy", "background"] + })); + this._disposers.push(plotContainer.events.on("pointerdown", (event) => { + this._handlePlotDown(event); + })); + this._disposers.push(plotContainer.events.on("globalpointerup", (event) => { + this._handlePlotUp(event); + })); + this._disposers.push(plotContainer.events.on("globalpointermove", (event) => { + this._handlePlotMove(event); + })); + this._maskGrid(); + this._setUpTouch(); + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("pinchZoomX") || this.isDirty("pinchZoomY") || this.get("panX") || this.get("panY")) { + this._setUpTouch(); + } + } + _setUpTouch() { + if (!this.plotContainer._display.cancelTouch) { + this.plotContainer._display.cancelTouch = this.get("pinchZoomX") || this.get("pinchZoomY") || this.get("panX") || this.get("panY") ? true : false; + } + } + _maskGrid() { + this.gridContainer.set("maskContent", true); + this.topGridContainer.set("maskContent", true); + } + _removeSeries(series2) { + series2._unstack(); + if (series2._posXDp) { + series2._posXDp.dispose(); + } + if (series2._posYDp) { + series2._posYDp.dispose(); + } + series2.set("baseAxis", void 0); + const xAxis2 = series2.get("xAxis"); + if (xAxis2) { + remove(xAxis2.series, series2); + xAxis2.markDirtyExtremes(); + } + const yAxis2 = series2.get("yAxis"); + if (yAxis2) { + remove(yAxis2.series, series2); + yAxis2.markDirtyExtremes(); + } + const cursor = this.get("cursor"); + if (cursor) { + const snapToSeries = cursor.get("snapToSeries"); + if (snapToSeries) { + remove(snapToSeries, series2); + } + } + super._removeSeries(series2); + } + _applyThemes(force = false) { + const colors = this.get("colors"); + if (colors) { + colors.reset(); + } + const changed = super._applyThemes(force); + return changed; + } + /** + * This method is invoked when mouse wheel is used over chart's plot + * container, and handles zooming/pan. + * + * You can invoke this method manually, if you need to mimic chart's wheel + * behavior over other elements of the chart. + */ + handleWheel(event) { + const wheelX = this.get("wheelX"); + const wheelY = this.get("wheelY"); + const plotContainer = this.plotContainer; + const wheelEvent = event.originalEvent; + let prevent = false; + if (isLocalEvent(wheelEvent, this)) { + prevent = true; + } else { + return; + } + const plotPoint = plotContainer.toLocal(event.point); + const wheelStep = this.get("wheelStep", 0.2); + const shiftY = wheelEvent.deltaY / 100; + const shiftX = wheelEvent.deltaX / 100; + const wheelZoomPositionX = this.get("wheelZoomPositionX"); + const wheelZoomPositionY = this.get("wheelZoomPositionY"); + if ((wheelX === "zoomX" || wheelX === "zoomXY") && shiftX != 0) { + this.xAxes.each((axis) => { + if (axis.get("zoomX")) { + let start = axis.get("start"); + let end = axis.get("end"); + let position = axis.fixPosition(plotPoint.x / plotContainer.width()); + if (wheelZoomPositionX != null) { + position = wheelZoomPositionX; + } + let maxDeviation = axis.get("maxDeviation", 0); + let newStart = Math.min(1 + maxDeviation, Math.max(-maxDeviation, start - wheelStep * (end - start) * shiftX * position)); + let newEnd = Math.max(-maxDeviation, Math.min(1 + maxDeviation, end + wheelStep * (end - start) * shiftX * (1 - position))); + if (newStart == start && newEnd == end) { + prevent = false; + } + if (1 / (newEnd - newStart) < axis.getPrivate("maxZoomFactor", Infinity) / axis.get("minZoomCount", 1)) { + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } else { + prevent = false; + } + } + }); + } + if ((wheelY === "zoomX" || wheelY === "zoomXY") && shiftY != 0) { + this.xAxes.each((axis) => { + if (axis.get("zoomX")) { + let start = axis.get("start"); + let end = axis.get("end"); + let position = axis.fixPosition(plotPoint.x / plotContainer.width()); + if (wheelZoomPositionX != null) { + position = wheelZoomPositionX; + } + let maxDeviation = axis.get("maxDeviation", 0); + let newStart = Math.min(1 + maxDeviation, Math.max(-maxDeviation, start - wheelStep * (end - start) * shiftY * position)); + let newEnd = Math.max(-maxDeviation, Math.min(1 + maxDeviation, end + wheelStep * (end - start) * shiftY * (1 - position))); + if (newStart == start && newEnd == end) { + prevent = false; + } + if (1 / (newEnd - newStart) < axis.getPrivate("maxZoomFactor", Infinity) / axis.get("minZoomCount", 1)) { + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } else { + prevent = false; + } + } + }); + } + if ((wheelX === "zoomY" || wheelX === "zoomXY") && shiftX != 0) { + this.yAxes.each((axis) => { + if (axis.get("zoomY")) { + let start = axis.get("start"); + let end = axis.get("end"); + let position = axis.fixPosition(plotPoint.y / plotContainer.height()); + if (wheelZoomPositionY != null) { + position = wheelZoomPositionY; + } + let maxDeviation = axis.get("maxDeviation", 0); + let newStart = Math.min(1 + maxDeviation, Math.max(-maxDeviation, start - wheelStep * (end - start) * shiftX * position)); + let newEnd = Math.max(-maxDeviation, Math.min(1 + maxDeviation, end + wheelStep * (end - start) * shiftX * (1 - position))); + if (newStart == start && newEnd == end) { + prevent = false; + } + if (1 / (newEnd - newStart) < axis.getPrivate("maxZoomFactor", Infinity) / axis.get("minZoomCount", 1)) { + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } else { + prevent = false; + } + } + }); + } + if ((wheelY === "zoomY" || wheelY === "zoomXY") && shiftY != 0) { + this.yAxes.each((axis) => { + if (axis.get("zoomY")) { + let start = axis.get("start"); + let end = axis.get("end"); + let position = axis.fixPosition(plotPoint.y / plotContainer.height()); + if (wheelZoomPositionY != null) { + position = wheelZoomPositionY; + } + let maxDeviation = axis.get("maxDeviation", 0); + let newStart = Math.min(1 + maxDeviation, Math.max(-maxDeviation, start - wheelStep * (end - start) * shiftY * position)); + let newEnd = Math.max(-maxDeviation, Math.min(1 + maxDeviation, end + wheelStep * (end - start) * shiftY * (1 - position))); + if (newStart == start && newEnd == end) { + prevent = false; + } + if (1 / (newEnd - newStart) < axis.getPrivate("maxZoomFactor", Infinity) / axis.get("minZoomCount", 1)) { + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } else { + prevent = false; + } + } + }); + } + if ((wheelX === "panX" || wheelX === "panXY") && shiftX != 0) { + this.xAxes.each((axis) => { + if (axis.get("panX")) { + let start = axis.get("start"); + let end = axis.get("end"); + let delta = this._getWheelSign(axis) * wheelStep * (end - start) * shiftX; + let newStart = start + delta; + let newEnd = end + delta; + let se = this._fixWheel(newStart, newEnd); + newStart = se[0]; + newEnd = se[1]; + if (newStart == start && newEnd == end) { + prevent = false; + } + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } + }); + } + if ((wheelY === "panX" || wheelY === "panXY") && shiftY != 0) { + this.xAxes.each((axis) => { + if (axis.get("panX")) { + let start = axis.get("start"); + let end = axis.get("end"); + let delta = this._getWheelSign(axis) * wheelStep * (end - start) * shiftY; + let newStart = start + delta; + let newEnd = end + delta; + let se = this._fixWheel(newStart, newEnd); + newStart = se[0]; + newEnd = se[1]; + if (newStart == start && newEnd == end) { + prevent = false; + } + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } + }); + } + if ((wheelX === "panY" || wheelX === "panXY") && shiftX != 0) { + this.yAxes.each((axis) => { + if (axis.get("panY")) { + let start = axis.get("start"); + let end = axis.get("end"); + let delta = this._getWheelSign(axis) * wheelStep * (end - start) * shiftX; + let newStart = start + delta; + let newEnd = end + delta; + let se = this._fixWheel(newStart, newEnd); + newStart = se[0]; + newEnd = se[1]; + if (newStart == start && newEnd == end) { + prevent = false; + } + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } + }); + } + if ((wheelY === "panY" || wheelY === "panXY") && shiftY != 0) { + this.yAxes.each((axis) => { + if (axis.get("panY")) { + let start = axis.get("start"); + let end = axis.get("end"); + let delta = this._getWheelSign(axis) * wheelStep * (end - start) * shiftY; + let newStart = start - delta; + let newEnd = end - delta; + let se = this._fixWheel(newStart, newEnd); + newStart = se[0]; + newEnd = se[1]; + if (newStart == start && newEnd == end) { + prevent = false; + } + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } + }); + } + if (prevent) { + wheelEvent.preventDefault(); + } + } + _handleSetWheel() { + const wheelX = this.get("wheelX"); + const wheelY = this.get("wheelY"); + const plotContainer = this.plotContainer; + if (wheelX !== "none" || wheelY !== "none") { + this._wheelDp = plotContainer.events.on("wheel", (event) => { + const wheelEvent = event.originalEvent; + if (wheelX !== "none" && Math.abs(wheelEvent.deltaX) != 0 || wheelY !== "none" && Math.abs(wheelEvent.deltaY) != 0) { + this.handleWheel(event); + } + }); + this._disposers.push(this._wheelDp); + } else { + if (this._wheelDp) { + this._wheelDp.dispose(); + } + } + } + _getWheelSign(axis) { + let sign = 1; + if (axis.get("renderer").get("inversed")) { + sign = -1; + } + return sign; + } + _fixWheel(start, end) { + const diff = end - start; + if (start < 0) { + start = 0; + end = start + diff; + } + if (end > 1) { + end = 1; + start = end - diff; + } + return [start, end]; + } + _handlePlotDown(event) { + const originalEvent = event.originalEvent; + if (originalEvent.button == 2) { + return; + } + const plotContainer = this.plotContainer; + let local = plotContainer.toLocal(event.point); + if (this.get("pinchZoomX") || this.get("pinchZoomY")) { + const pointerId = originalEvent.pointerId; + if (pointerId) { + if (keys(plotContainer._downPoints).length > 0) { + const xAxis2 = this.xAxes.getIndex(0); + const yAxis2 = this.yAxes.getIndex(0); + if (xAxis2) { + this._downStartX = xAxis2.get("start", 0); + this._downEndX = xAxis2.get("end", 1); + } + if (yAxis2) { + this._downStartY = yAxis2.get("start", 0); + this._downEndY = yAxis2.get("end", 1); + } + } + } + } + if (this.get("panX") || this.get("panY")) { + if (local.x >= 0 && local.y >= 0 && local.x <= plotContainer.width() && local.y <= this.height()) { + this._downPoint = { x: originalEvent.clientX, y: originalEvent.clientY }; + const panX = this.get("panX"); + const panY = this.get("panY"); + if (panX) { + this.xAxes.each((axis) => { + axis._panStart = axis.get("start"); + axis._panEnd = axis.get("end"); + }); + } + if (panY) { + this.yAxes.each((axis) => { + axis._panStart = axis.get("start"); + axis._panEnd = axis.get("end"); + }); + } + const eventType = "panstarted"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this, originalEvent: event.originalEvent }); + } + } + } + } + _handleWheelAnimation(animation) { + if (animation) { + animation.events.on("stopped", () => { + this._dispatchWheelAnimation(); + }); + } else { + this._dispatchWheelAnimation(); + } + } + _dispatchWheelAnimation() { + const eventType = "wheelended"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this }); + } + } + _handlePlotUp(event) { + const downPoint = this._downPoint; + if (downPoint) { + if (this.get("panX") || this.get("panY")) { + if (event.originalEvent.clientX == downPoint.x && event.originalEvent.clientY == downPoint.y) { + const eventType2 = "pancancelled"; + if (this.events.isEnabled(eventType2)) { + this.events.dispatch(eventType2, { type: eventType2, target: this, originalEvent: event.originalEvent }); + } + } + const eventType = "panended"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this, originalEvent: event.originalEvent }); + } + } + } + this._downPoint = void 0; + this.xAxes.each((xAxis2) => { + xAxis2._isPanning = false; + }); + this.yAxes.each((yAxis2) => { + yAxis2._isPanning = false; + }); + } + _handlePlotMove(event) { + const plotContainer = this.plotContainer; + if (this.get("pinchZoomX") || this.get("pinchZoomY")) { + const touchEvent = event.originalEvent; + const pointerId = touchEvent.pointerId; + if (pointerId) { + this._movePoints[pointerId] = event.point; + if (keys(plotContainer._downPoints).length > 1) { + this._handlePinch(); + return; + } + } + } + let downPoint = this._downPoint; + if (downPoint) { + downPoint = plotContainer.toLocal(this._root.documentPointToRoot(downPoint)); + let local = plotContainer.toLocal(event.point); + const panX = this.get("panX"); + const panY = this.get("panY"); + if (panX) { + let scrollbarX = this.get("scrollbarX"); + if (scrollbarX) { + scrollbarX.events.disableType("rangechanged"); + } + this.xAxes.each((axis) => { + if (axis.get("panX")) { + axis._isPanning = true; + let panStart = axis._panStart; + let panEnd = axis._panEnd; + let difference = panEnd - panStart; + let deltaX = difference * (downPoint.x - local.x) / plotContainer.width(); + if (axis.get("renderer").get("inversed")) { + deltaX *= -1; + } + let start = panStart + deltaX; + let end = panEnd + deltaX; + if (end - start < 1 + axis.get("maxDeviation", 1) * 2) { + axis.set("start", start); + axis.set("end", end); + } + } + }); + if (scrollbarX) { + scrollbarX.events.enableType("rangechanged"); + } + } + if (panY) { + let scrollbarY = this.get("scrollbarY"); + if (scrollbarY) { + scrollbarY.events.disableType("rangechanged"); + } + this.yAxes.each((axis) => { + if (axis.get("panY")) { + axis._isPanning = true; + let panStart = axis._panStart; + let panEnd = axis._panEnd; + let difference = panEnd - panStart; + let deltaY = difference * (downPoint.y - local.y) / plotContainer.height(); + if (axis.get("renderer").get("inversed")) { + deltaY *= -1; + } + let start = panStart - deltaY; + let end = panEnd - deltaY; + if (end - start < 1 + axis.get("maxDeviation", 1) * 2) { + axis.set("start", start); + axis.set("end", end); + } + } + }); + if (scrollbarY) { + scrollbarY.events.enableType("rangechanged"); + } + } + } + } + _handlePinch() { + const plotContainer = this.plotContainer; + let i = 0; + let downPoints = []; + let movePoints = []; + each2(plotContainer._downPoints, (k, point) => { + downPoints[i] = point; + let movePoint = this._movePoints[k]; + if (movePoint) { + movePoints[i] = movePoint; + } + i++; + }); + if (downPoints.length > 1 && movePoints.length > 1) { + const w = plotContainer.width(); + const h = plotContainer.height(); + let downPoint0 = downPoints[0]; + let downPoint1 = downPoints[1]; + let movePoint0 = movePoints[0]; + let movePoint1 = movePoints[1]; + if (downPoint0 && downPoint1 && movePoint0 && movePoint1) { + movePoint0 = plotContainer.toLocal(movePoint0); + movePoint1 = plotContainer.toLocal(movePoint1); + downPoint0 = plotContainer.toLocal(downPoint0); + downPoint1 = plotContainer.toLocal(downPoint1); + if (this.get("pinchZoomX")) { + const downStartX = this._downStartX; + const downEndX = this._downEndX; + if (downStartX != null && downEndX != null) { + if (downPoint0.x > downPoint1.x) { + [downPoint0, downPoint1] = [downPoint1, downPoint0]; + [movePoint0, movePoint1] = [movePoint1, movePoint0]; + } + let downPos0 = downStartX + downPoint0.x / w * (downEndX - downStartX); + let downPos1 = downStartX + downPoint1.x / w * (downEndX - downStartX); + let movePos0 = downStartX + movePoint0.x / w * (downEndX - downStartX); + let movePos1 = downStartX + movePoint1.x / w * (downEndX - downStartX); + let initialDistance = Math.max(1e-3, downPos1 - downPos0); + let currentDistance = Math.max(1e-3, movePos1 - movePos0); + let d = initialDistance / currentDistance; + let s2 = downStartX * d + downPos0 - movePos0 * d; + let e = downEndX * d + downPos1 - movePos1 * d; + this.xAxes.each((xAxis2) => { + let sa = xAxis2.fixPosition(s2); + let ea = xAxis2.fixPosition(e); + xAxis2.zoom(sa, ea, 0); + }); + } + } + if (this.get("pinchZoomY")) { + const downStartY = this._downStartY; + const downEndY = this._downEndY; + if (downStartY != null && downEndY != null) { + if (downPoint0.y < downPoint1.y) { + [downPoint0, downPoint1] = [downPoint1, downPoint0]; + [movePoint0, movePoint1] = [movePoint1, movePoint0]; + } + let downPos0 = downStartY + (1 - downPoint0.y / h) * (downEndY - downStartY); + let downPos1 = downStartY + (1 - downPoint1.y / h) * (downEndY - downStartY); + let movePos0 = downStartY + (1 - movePoint0.y / h) * (downEndY - downStartY); + let movePos1 = downStartY + (1 - movePoint1.y / h) * (downEndY - downStartY); + let initialDistance = Math.max(1e-3, downPos1 - downPos0); + let currentDistance = Math.max(1e-3, movePos1 - movePos0); + let d = initialDistance / currentDistance; + let s2 = downStartY * d + downPos0 - movePos0 * d; + let e = downEndY * d + downPos1 - movePos1 * d; + this.yAxes.each((yAxis2) => { + let sa = yAxis2.fixPosition(s2); + let ea = yAxis2.fixPosition(e); + yAxis2.zoom(sa, ea, 0); + }); + } + } + } + } + } + _handleCursorPosition() { + const cursor = this.get("cursor"); + if (cursor) { + const cursorPoint = cursor.getPrivate("point"); + let snapToSeries = cursor.get("snapToSeries"); + if (cursor._downPoint) { + snapToSeries = void 0; + } + if (snapToSeries && cursorPoint) { + const snapToSeriesBy = cursor.get("snapToSeriesBy"); + const dataItems = []; + each(snapToSeries, (series2) => { + if (!series2.isHidden() && !series2.isHiding()) { + if (snapToSeriesBy != "x!" && snapToSeriesBy != "y!") { + const startIndex = series2.startIndex(); + const endIndex = series2.endIndex(); + for (let i = startIndex; i < endIndex; i++) { + const dataItem = series2.dataItems[i]; + if (dataItem && !dataItem.isHidden()) { + dataItems.push(dataItem); + } + } + } else { + const tooltipDataItem = series2.get("tooltipDataItem"); + if (tooltipDataItem) { + dataItems.push(tooltipDataItem); + } + } + } + }); + let minDistance = Infinity; + let closestItem; + each(dataItems, (dataItem) => { + const point = dataItem.get("point"); + if (point) { + let distance = 0; + if (snapToSeriesBy == "x" || snapToSeriesBy == "x!") { + distance = Math.abs(cursorPoint.x - point.x); + } else if (snapToSeriesBy == "y" || snapToSeriesBy == "y!") { + distance = Math.abs(cursorPoint.y - point.y); + } else { + distance = Math.hypot(cursorPoint.x - point.x, cursorPoint.y - point.y); + } + if (distance < minDistance) { + minDistance = distance; + closestItem = dataItem; + } + } + }); + each(snapToSeries, (series2) => { + const tooltip = series2.get("tooltip"); + if (tooltip) { + tooltip._setDataItem(void 0); + } + }); + if (closestItem) { + let series2 = closestItem.component; + series2.showDataItemTooltip(closestItem); + series2.setRaw("tooltipDataItem", closestItem); + const point = closestItem.get("point"); + if (point) { + cursor.handleMove(series2.toGlobal({ x: point.x - series2.x(), y: point.y - series2.y() }), true); + } + } + } + } + } + _updateCursor() { + let cursor = this.get("cursor"); + if (cursor) { + cursor.updateCursor(); + } + } + _addCursor(cursor) { + this.plotContainer.children.push(cursor); + } + _prepareChildren() { + super._prepareChildren(); + this.series.each((series2) => { + this._colorize(series2); + }); + if (this.isDirty("wheelX") || this.isDirty("wheelY")) { + this._handleSetWheel(); + } + if (this.isDirty("cursor")) { + const previous = this._prevSettings.cursor; + const cursor = this.get("cursor"); + if (cursor !== previous) { + this._disposeProperty("cursor"); + if (previous) { + previous.dispose(); + } + if (cursor) { + cursor._setChart(this); + this._addCursor(cursor); + this._pushPropertyDisposer("cursor", cursor.events.on("selectended", () => { + this._handleCursorSelectEnd(); + })); + } + this._prevSettings.cursor = cursor; + } + } + if (this.isDirty("scrollbarX")) { + const previous = this._prevSettings.scrollbarX; + const scrollbarX = this.get("scrollbarX"); + if (scrollbarX !== previous) { + this._disposeProperty("scrollbarX"); + if (previous) { + previous.dispose(); + } + if (scrollbarX) { + if (!scrollbarX.parent) { + this.topAxesContainer.children.push(scrollbarX); + } + this._pushPropertyDisposer("scrollbarX", scrollbarX.events.on("rangechanged", (e) => { + this._handleScrollbar(this.xAxes, e.start, e.end, e.grip); + })); + this._pushPropertyDisposer("scrollbarX", scrollbarX.events.on("released", () => { + this.xAxes.each((axis) => { + if (axis.get("zoomable")) { + this._handleAxisSelection(axis); + } + }); + })); + scrollbarX.setPrivate("positionTextFunction", (position) => { + const axis = this.xAxes.getIndex(0); + return axis ? axis.getTooltipText(position, false) || "" : ""; + }); + } + this._prevSettings.scrollbarX = scrollbarX; + } + } + if (this.isDirty("scrollbarY")) { + const previous = this._prevSettings.scrollbarY; + const scrollbarY = this.get("scrollbarY"); + if (scrollbarY !== previous) { + this._disposeProperty("scrollbarY"); + if (previous) { + previous.dispose(); + } + if (scrollbarY) { + if (!scrollbarY.parent) { + this.rightAxesContainer.children.push(scrollbarY); + } + this._pushPropertyDisposer("scrollbarY", scrollbarY.events.on("rangechanged", (e) => { + this._handleScrollbar(this.yAxes, e.start, e.end, e.grip); + })); + this._pushPropertyDisposer("scrollbarY", scrollbarY.events.on("released", () => { + this.yAxes.each((axis) => { + if (axis.get("zoomable")) { + this._handleAxisSelection(axis); + } + }); + })); + scrollbarY.setPrivate("positionTextFunction", (position) => { + const axis = this.yAxes.getIndex(0); + return axis ? axis.getTooltipText(position, false) || "" : ""; + }); + } + this._prevSettings.scrollbarY = scrollbarY; + } + } + this._handleZoomOut(); + } + _processSeries(series2) { + super._processSeries(series2); + const xAxis2 = series2.get("xAxis"); + const yAxis2 = series2.get("yAxis"); + move(xAxis2.series, series2); + move(yAxis2.series, series2); + series2._posXDp = series2.addDisposer(xAxis2.events.on("positionchanged", () => { + series2._fixPosition(); + })); + series2._posXDp = series2.addDisposer(yAxis2.events.on("positionchanged", () => { + series2._fixPosition(); + })); + if (!series2.get("baseAxis")) { + if (yAxis2.isType("CategoryAxis") || yAxis2.isType("DateAxis")) { + series2.set("baseAxis", yAxis2); + } else { + series2.set("baseAxis", xAxis2); + } + } + if (series2.get("stacked")) { + series2._markDirtyKey("stacked"); + each(series2.dataItems, (dataItem) => { + dataItem.set("stackToItemY", void 0); + dataItem.set("stackToItemX", void 0); + }); + } + series2._markDirtyAxes(); + yAxis2.markDirtyExtremes(); + xAxis2.markDirtyExtremes(); + xAxis2._seriesAdded = true; + yAxis2._seriesAdded = true; + this._colorize(series2); + } + _colorize(series2) { + const colorSet = this.get("colors"); + if (colorSet) { + if (series2.get("fill") == null) { + const color2 = colorSet.next(); + series2._setSoft("stroke", color2); + series2._setSoft("fill", color2); + } + } + const patternSet = this.get("patterns"); + if (patternSet) { + if (series2.get("fillPattern") == null) { + const pattern = patternSet.next(); + series2._setSoft("fillPattern", pattern); + } + } + } + _handleCursorSelectEnd() { + const cursor = this.get("cursor"); + const behavior = cursor.get("behavior"); + const downPositionX = cursor.getPrivate("downPositionX", 0); + const downPositionY = cursor.getPrivate("downPositionY", 0); + const positionX = Math.min(1, Math.max(0, cursor.getPrivate("positionX", 0.5))); + const positionY = Math.min(1, Math.max(0, cursor.getPrivate("positionY", 0.5))); + this.xAxes.each((axis) => { + if (behavior === "zoomX" || behavior === "zoomXY") { + let position0 = axis.toAxisPosition(downPositionX); + let position1 = axis.toAxisPosition(positionX); + axis.zoom(position0, position1); + } + axis.setPrivate("updateScrollbar", true); + }); + this.yAxes.each((axis) => { + if (behavior === "zoomY" || behavior === "zoomXY") { + let position0 = axis.toAxisPosition(downPositionY); + let position1 = axis.toAxisPosition(positionY); + axis.zoom(position0, position1); + } + axis.setPrivate("updateScrollbar", true); + }); + } + _handleScrollbar(axes, start, end, priority) { + axes.each((axis) => { + let axisStart = axis.fixPosition(start); + let axisEnd = axis.fixPosition(end); + let zoomAnimation = axis.zoom(axisStart, axisEnd, void 0, priority); + const updateScrollbar = "updateScrollbar"; + axis.setPrivateRaw(updateScrollbar, false); + if (zoomAnimation) { + zoomAnimation.events.on("stopped", () => { + axis.setPrivateRaw(updateScrollbar, true); + }); + } else { + axis.setPrivateRaw(updateScrollbar, true); + } + }); + } + _processAxis(axes, container) { + return axes.events.onAll((change) => { + if (change.type === "clear") { + each(change.oldValues, (axis) => { + this._removeAxis(axis); + }); + } else if (change.type === "push") { + container.children.push(change.newValue); + change.newValue.processChart(this); + } else if (change.type === "setIndex") { + container.children.setIndex(change.index, change.newValue); + change.newValue.processChart(this); + } else if (change.type === "insertIndex") { + container.children.insertIndex(change.index, change.newValue); + change.newValue.processChart(this); + } else if (change.type === "removeIndex") { + this._removeAxis(change.oldValue); + } else if (change.type === "moveIndex") { + container.children.moveValue(change.value, change.newIndex); + change.value.processChart(this); + } else { + throw new Error("Unknown IListEvent type"); + } + }); + } + _removeAxis(axis) { + if (!axis.isDisposed()) { + const axisParent = axis.parent; + if (axisParent) { + axisParent.children.removeValue(axis); + } + const gridContainer = axis.gridContainer; + const gridParent = gridContainer.parent; + if (gridParent) { + gridParent.children.removeValue(gridContainer); + } + const topGridContainer = axis.topGridContainer; + const topGridParent = topGridContainer.parent; + if (topGridParent) { + topGridParent.children.removeValue(topGridContainer); + } + } + } + _updateChartLayout() { + const left = this.leftAxesContainer.width(); + const right = this.rightAxesContainer.width(); + const bottomAxesContainer = this.bottomAxesContainer; + bottomAxesContainer.set("paddingLeft", left); + bottomAxesContainer.set("paddingRight", right); + const topAxesContainer = this.topAxesContainer; + topAxesContainer.set("paddingLeft", left); + topAxesContainer.set("paddingRight", right); + } + /** + * @ignore + */ + processAxis(axis) { + var cursor = this.get("cursor"); + if (cursor) { + this.addDisposer(axis.on("start", () => { + this._updateCursor(); + })); + this.addDisposer(axis.on("end", () => { + this._updateCursor(); + })); + } + } + _handleAxisSelection(axis, force) { + let start = axis.fixPosition(axis.get("start", 0)); + let end = axis.fixPosition(axis.get("end", 1)); + if (start > end) { + [start, end] = [end, start]; + } + if (this.xAxes.indexOf(axis) != -1) { + if (force || axis.getPrivate("updateScrollbar")) { + let scrollbarX = this.get("scrollbarX"); + if (scrollbarX && (!scrollbarX.getPrivate("isBusy") || force)) { + scrollbarX.setRaw("start", start); + scrollbarX.setRaw("end", end); + scrollbarX.updateGrips(); + } + } + } else if (this.yAxes.indexOf(axis) != -1) { + if (force || axis.getPrivate("updateScrollbar")) { + let scrollbarY = this.get("scrollbarY"); + if (scrollbarY && (!scrollbarY.getPrivate("isBusy") || force)) { + scrollbarY.setRaw("start", start); + scrollbarY.setRaw("end", end); + scrollbarY.updateGrips(); + } + } + } + this._handleZoomOut(); + } + _handleZoomOut() { + let zoomOutButton = this.zoomOutButton; + if (zoomOutButton && zoomOutButton.parent) { + let visible = false; + this.xAxes.each((axis) => { + if (axis.get("zoomOut", true)) { + if (round(axis.get("start", 0), 5) != 0 || round(axis.get("end", 1), 5) != 1) { + visible = true; + } + } + }); + this.yAxes.each((axis) => { + if (axis.get("zoomOut", true)) { + if (round(axis.get("start", 0), 5) != 0 || round(axis.get("end", 1), 5) != 1) { + visible = true; + } + } + }); + if (visible) { + if (zoomOutButton.isHidden()) { + zoomOutButton.show(); + } + } else { + zoomOutButton.hide(); + } + } + } + /** + * Checks if point is within plot area. + * + * @param point Reference point + * @return Is within plot area? + */ + inPlot(point) { + const plotContainer = this.plotContainer; + const otherCharts = this.getPrivate("otherCharts", this._otherCharts); + const global = plotContainer.toGlobal(point); + if (point.x >= -0.5 && point.y >= -0.5 && point.x <= plotContainer.width() + 0.5 && point.y <= plotContainer.height() + 0.5) { + return true; + } + if (otherCharts) { + for (let i = otherCharts.length - 1; i >= 0; i--) { + const chart2 = otherCharts[i]; + if (chart2 != this) { + const chartPlotContainer = chart2.plotContainer; + const documentPoint = this._root.rootPointToDocument(global); + const chartRoot = chart2._root.documentPointToRoot(documentPoint); + const local = chartPlotContainer.toLocal(chartRoot); + if (local.x >= -0.1 && local.y >= -0.1 && local.x <= chartPlotContainer.width() + 0.1 && local.y <= chartPlotContainer.height() + 0.1) { + return true; + } + } + } + } + return false; + } + /** + * @ignore + */ + arrangeTooltips() { + const plotContainer = this.plotContainer; + const w = plotContainer.width(); + const h = plotContainer.height(); + let hh = this.height(); + const bounds = this._root.tooltipContainer.get("layerMargin"); + if (bounds) { + if (bounds.bottom > hh) { + hh = bounds.bottom; + } + } + let plotT = plotContainer._display.toGlobal({ x: 0, y: 0 }); + let plotB = plotContainer._display.toGlobal({ x: w, y: h }); + const tooltips = []; + let sum = 0; + let minDistance = Infinity; + let movePoint = this._movePoint; + let maxTooltipDistance = this.get("maxTooltipDistance"); + let maxTooltipDistanceBy = this.get("maxTooltipDistanceBy", "xy"); + let closest; + let closestPoint; + if (isNumber(maxTooltipDistance)) { + this.series.each((series2) => { + if (!series2.isHidden()) { + const tooltip = series2.get("tooltip"); + if (tooltip) { + let point = tooltip.get("pointTo"); + if (point) { + let distance = Math.hypot(movePoint.x - point.x, movePoint.y - point.y); + if (maxTooltipDistanceBy == "x") { + distance = Math.abs(movePoint.x - point.x); + } else if (maxTooltipDistanceBy == "y") { + distance = Math.abs(movePoint.y - point.y); + } + if (distance < minDistance) { + minDistance = distance; + closest = series2; + closestPoint = point; + } + } + } + } + }); + } + const tooltipSeries = []; + this.series.each((series2) => { + const tooltip = series2.get("tooltip"); + if (tooltip && !tooltip.get("forceHidden")) { + let hidden = false; + let point = tooltip.get("pointTo"); + if (point) { + if (maxTooltipDistance >= 0) { + let point2 = tooltip.get("pointTo"); + if (point2 && closestPoint) { + if (series2 != closest) { + let distance = Math.hypot(closestPoint.x - point2.x, closestPoint.y - point2.y); + if (maxTooltipDistanceBy == "x") { + distance = Math.abs(closestPoint.x - point2.x); + } else if (maxTooltipDistanceBy == "y") { + distance = Math.abs(closestPoint.y - point2.y); + } + if (distance > maxTooltipDistance) { + hidden = true; + } + } + } + } else if (maxTooltipDistance == -1) { + if (series2 != closest) { + hidden = true; + } + } + if (!this.inPlot(this._tooltipToLocal(point)) || !tooltip.dataItem) { + hidden = true; + } else { + if (!hidden) { + sum += point.y; + } + } + if (hidden || series2.isHidden() || series2.isHiding()) { + tooltip.hide(0); + } else { + tooltip.show(); + tooltips.push(tooltip); + tooltipSeries.push(series2); + } + } + } + }); + this.setPrivate("tooltipSeries", tooltipSeries); + if (this.get("arrangeTooltips")) { + let totalTooltipH = 0; + let tooltipCount = 0; + const tooltipContainer = this._root.tooltipContainer; + const count = tooltips.length; + const average = sum / count; + if (average > h / 2 + plotT.y) { + tooltips.sort((a, b) => compareNumber(b.get("pointTo").y, a.get("pointTo").y)); + let prevY = plotB.y; + each(tooltips, (tooltip) => { + let height = tooltip.height(); + tooltipCount++; + totalTooltipH += height; + let centerY = tooltip.get("centerY"); + if (centerY instanceof Percent) { + height *= centerY.value; + } + height += tooltip.get("marginBottom", 0); + tooltip.set("bounds", { left: plotT.x, top: plotT.y, right: plotB.x, bottom: prevY }); + tooltip.setPrivate("customData", { left: plotT.x, top: plotT.y, right: plotB.x, bottom: prevY }); + prevY = Math.min(prevY - height, tooltip._fy - height); + if (tooltip.parent == tooltipContainer) { + tooltipContainer.children.moveValue(tooltip, 0); + } + }); + if (prevY < 0) { + tooltips.reverse(); + let prevBottom = prevY; + each(tooltips, (tooltip) => { + tooltipCount++; + let bounds2 = tooltip.get("bounds"); + if (bounds2) { + let top = bounds2.top - prevY; + let bottom = bounds2.bottom - prevY; + if (top < prevBottom) { + top = prevBottom; + bottom = top + tooltip.height(); + } + tooltip.set("bounds", { left: bounds2.left, top, right: bounds2.right, bottom }); + prevBottom = bounds2.bottom - prevY + tooltip.get("marginBottom", 0); + } + }); + } + } else { + tooltips.reverse(); + tooltips.sort((a, b) => compareNumber(a.get("pointTo").y, b.get("pointTo").y)); + let prevY = 0; + each(tooltips, (tooltip) => { + tooltipCount++; + let height = tooltip.height(); + totalTooltipH += height; + let centerY = tooltip.get("centerY"); + if (centerY instanceof Percent) { + height *= centerY.value; + } + height += tooltip.get("marginBottom", 0); + tooltip.set("bounds", { left: plotT.x, top: prevY, right: plotB.x, bottom: Math.max(plotT.y + hh, prevY + height) }); + if (tooltip.parent == tooltipContainer) { + tooltipContainer.children.moveValue(tooltip, 0); + } + prevY = Math.max(prevY + height, tooltip._fy + height); + }); + if (prevY > hh) { + tooltips.reverse(); + let prevBottom = hh; + each(tooltips, (tooltip) => { + tooltipCount++; + let bounds2 = tooltip.get("bounds"); + if (bounds2) { + let top = bounds2.top - (hh - prevY); + let bottom = bounds2.bottom - (hh - prevY); + if (bottom > prevBottom) { + bottom = prevBottom; + top = bottom - tooltip.height(); + } + tooltip.set("bounds", { left: bounds2.left, top, right: bounds2.right, bottom }); + prevBottom = bottom - tooltip.height() - tooltip.get("marginBottom", 0); + } + }); + } + } + if (totalTooltipH == 0 && tooltipCount > 0) { + this._disposers.push(this.root.events.once("frameended", () => { + this.arrangeTooltips(); + })); + } + } + } + _tooltipToLocal(point) { + return this.plotContainer.toLocal(point); + } + /** + * Fully zooms out the chart. + */ + zoomOut() { + this.xAxes.each((axis) => { + if (axis.get("zoomOut", true)) { + axis.setPrivate("updateScrollbar", true); + axis.zoom(0, 1); + } + }); + this.yAxes.each((axis) => { + if (axis.get("zoomOut", true)) { + axis.setPrivate("updateScrollbar", true); + axis.zoom(0, 1); + } + }); + } + _dispose() { + super._dispose(); + const cursor = this.get("cursor"); + if (cursor) { + cursor.dispose(); + } + } + }; + XYChart.className = "XYChart"; + XYChart.classNames = SerialChart.classNames.concat([XYChart.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/Grid.js + var Grid = class extends Graphics { + _beforeChanged() { + super._beforeChanged(); + if (this.isPrivateDirty("width") || this.isPrivateDirty("height")) { + this._clear = true; + } + } + }; + Grid.className = "Grid"; + Grid.classNames = Graphics.classNames.concat([Grid.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/XYCursor.js + var XYCursor = class extends Container { + constructor() { + super(...arguments); + this._alwaysShow = false; + this.lineX = this.children.push(Grid.new(this._root, { + themeTags: ["x"] + })); + this.lineY = this.children.push(Grid.new(this._root, { + themeTags: ["y"] + })); + this.selection = this.children.push(Graphics.new(this._root, { + themeTags: ["selection", "cursor"], + layer: 30 + })); + this._lastPoint = { x: 0, y: 0 }; + this._lastPoint2 = { x: 0, y: 0 }; + this._tooltipX = false; + this._tooltipY = false; + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["xy", "cursor"]); + super._afterNew(); + this.setAll({ "width": p100, height: p100, isMeasured: true, position: "absolute" }); + this.states.create("hidden", { visible: true, opacity: 0 }); + this._drawLines(); + this.setPrivateRaw("visible", false); + this._disposers.push(this.setTimeout(() => { + this.setPrivate("visible", true); + }, 500)); + this._disposers.push(this.lineX.events.on("positionchanged", () => { + this._handleXLine(); + })); + this._disposers.push(this.lineY.events.on("positionchanged", () => { + this._handleYLine(); + })); + this._disposers.push(this.lineX.events.on("focus", () => this._handleLineFocus())); + this._disposers.push(this.lineX.events.on("blur", () => this._handleLineBlur())); + this._disposers.push(this.lineY.events.on("focus", () => this._handleLineFocus())); + this._disposers.push(this.lineY.events.on("blur", () => this._handleLineBlur())); + if (supports("keyboardevents")) { + this._disposers.push(addEventListener(document, "keydown", (ev) => { + this._handleLineMove(getEventKey(ev), ev.ctrlKey); + })); + } + } + _setUpTouch() { + const chart2 = this.chart; + if (chart2) { + chart2.plotContainer._display.cancelTouch = this.get("behavior") != "none" ? true : false; + } + } + _handleXLine() { + let x2 = this.lineX.x(); + let visible = true; + if (x2 < 0 || x2 > this.width()) { + visible = false; + } + this.lineX.setPrivate("visible", visible); + } + _handleYLine() { + let y2 = this.lineY.y(); + let visible = true; + if (y2 < 0 || y2 > this.height()) { + visible = false; + } + this.lineY.setPrivate("visible", visible); + } + _handleLineMove(key, ctrlKey) { + let dir = ""; + const chart2 = this.chart; + let axis; + if (chart2 && chart2.xAxes.length) { + if (this._root.focused(this.lineX)) { + dir = "positionX"; + axis = chart2.xAxes.getIndex(0); + } else if (this._root.focused(this.lineY)) { + axis = chart2.yAxes.getIndex(0); + dir = "positionY"; + } + let m = 1; + if (ctrlKey) { + m = 5; + } + if (axis) { + let inversed = axis.get("renderer").get("inversed", false); + let step; + if (key == "ArrowRight" || key == "ArrowDown") { + step = 1; + } else if (key == "ArrowLeft" || key == "ArrowUp") { + step = -1; + } else if (key == "Tab") { + step = 0; + } + if (step != null) { + if (inversed) { + step *= -1; + } + this.set(dir, axis.nextPosition(step * m)); + } + } + } + } + _handleLineFocus() { + this._alwaysShow = this.get("alwaysShow", false); + this.setAll({ + positionX: this.getPrivate("positionX", 0), + positionY: this.getPrivate("positionY", 0), + alwaysShow: true + }); + this._handleLineMove("Tab"); + } + _handleLineBlur() { + if (this.lineX.isFocus() || this.lineY.isFocus()) { + this.setAll({ + positionX: void 0, + positionY: void 0, + alwaysShow: this._alwaysShow + }); + } + } + _prepareChildren() { + super._prepareChildren(); + if (this.isDirty("xAxis")) { + this._tooltipX = false; + const xAxis2 = this.get("xAxis"); + if (xAxis2) { + const tooltip = xAxis2.get("tooltip"); + if (tooltip) { + this._tooltipX = true; + this._disposers.push(tooltip.on("pointTo", () => { + this._updateXLine(tooltip); + })); + } + } + } + if (this.isDirty("yAxis")) { + this._tooltipY = false; + const yAxis2 = this.get("yAxis"); + if (yAxis2) { + const tooltip = yAxis2.get("tooltip"); + if (tooltip) { + this._tooltipY = true; + this._disposers.push(tooltip.on("pointTo", () => { + this._updateYLine(tooltip); + })); + } + } + } + } + _handleSyncWith() { + const chart2 = this.chart; + if (chart2) { + const syncWith = this.get("syncWith"); + const otherCharts = []; + if (syncWith) { + each(syncWith, (cursor) => { + const chart3 = cursor.chart; + if (chart3) { + otherCharts.push(chart3); + } + }); + } + chart2._otherCharts = otherCharts; + } + } + _updateChildren() { + super._updateChildren(); + this._handleSyncWith(); + if (this.isDirty("positionX") || this.isDirty("positionY")) { + const positionX = this.get("positionX"); + const positionY = this.get("positionY"); + if (positionX == null && positionY == null) { + this.hide(0); + } else { + this._movePoint = this.toGlobal(this._getPoint(this.get("positionX", 0), this.get("positionY", 0))); + this.handleMove(); + } + } + } + _updateXLine(tooltip) { + let x2 = round(this._display.toLocal(tooltip.get("pointTo", { x: 0, y: 0 })).x, 3); + if (this._toX != x2) { + this.lineX.animate({ key: "x", to: x2, duration: tooltip.get("animationDuration", 0), easing: tooltip.get("animationEasing") }); + this._toX = x2; + } + } + _updateYLine(tooltip) { + let y2 = round(this._display.toLocal(tooltip.get("pointTo", { x: 0, y: 0 })).y, 3); + if (this._toY != y2) { + this.lineY.animate({ key: "y", to: y2, duration: tooltip.get("animationDuration", 0), easing: tooltip.get("animationEasing") }); + this._toY = y2; + } + } + _drawLines() { + this.lineX.set("draw", (display) => { + display.moveTo(0, 0); + display.lineTo(0, this.height()); + }); + this.lineY.set("draw", (display) => { + display.moveTo(0, 0); + display.lineTo(this.width(), 0); + }); + } + updateCursor() { + if (this.get("alwaysShow")) { + this._movePoint = this.toGlobal(this._getPoint(this.get("positionX", 0), this.get("positionY", 0))); + } + this.handleMove(); + } + _setChart(chart2) { + this.chart = chart2; + this._handleSyncWith(); + const plotContainer = chart2.plotContainer; + this.events.on("boundschanged", () => { + this._disposers.push(this.setTimeout(() => { + this.updateCursor(); + }, 50)); + }); + if (supports("touchevents")) { + this._disposers.push(plotContainer.events.on("click", (event) => { + if (isTouchEvent(event.originalEvent)) { + this._handleMove(event); + } + })); + this._setUpTouch(); + } + this._disposers.push(plotContainer.events.on("pointerdown", (event) => { + this._handleCursorDown(event); + })); + this._disposers.push(plotContainer.events.on("globalpointerup", (event) => { + this._handleCursorUp(event); + if (!event.native && !this.isHidden()) { + this._handleMove(event); + } + })); + this._disposers.push(plotContainer.events.on("globalpointermove", (event) => { + if (!this.get("syncWith")) { + if (keys(plotContainer._downPoints).length == 0 && !event.native && this.isHidden()) { + return; + } + } + this._handleMove(event); + if (Math.hypot(this._lastPoint2.x - event.point.x, this._lastPoint2.y - event.point.y) > 1) { + this._handleLineBlur(); + this._lastPoint2 = event.point; + } + })); + const parent = this.parent; + if (parent) { + parent.children.moveValue(this.selection); + } + } + _inPlot(point) { + const chart2 = this.chart; + if (chart2) { + return chart2.inPlot(point); + } + return false; + } + _handleCursorDown(event) { + if (event.originalEvent.button == 2) { + return; + } + const rootPoint = event.point; + let local = this._display.toLocal(rootPoint); + const chart2 = this.chart; + this.selection.set("draw", () => { + }); + if (chart2 && this._inPlot(local)) { + this._downPoint = local; + if (this.get("behavior") != "none") { + this.selection.show(); + const type = "selectstarted"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this, originalEvent: event.originalEvent }); + } + } + let positionX = this._getPosition(local).x; + let positionY = this._getPosition(local).y; + this.setPrivate("downPositionX", positionX); + this.setPrivate("downPositionY", positionY); + } + } + _handleCursorUp(event) { + if (this._downPoint) { + const behavior = this.get("behavior", "none"); + if (behavior != "none") { + if (behavior.charAt(0) === "z") { + this.selection.hide(); + } + const rootPoint = event.point; + let local = this._display.toLocal(rootPoint); + const downPoint = this._downPoint; + const moveThreshold = this.get("moveThreshold", 1); + if (local && downPoint) { + let dispatch = false; + if (behavior === "zoomX" || behavior === "zoomXY" || behavior === "selectX" || behavior === "selectXY") { + if (Math.abs(local.x - downPoint.x) > moveThreshold) { + dispatch = true; + } + } + if (behavior === "zoomY" || behavior === "zoomXY" || behavior === "selectY" || behavior === "selectXY") { + if (Math.abs(local.y - downPoint.y) > moveThreshold) { + dispatch = true; + } + } + if (dispatch) { + const type = "selectended"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this, originalEvent: event.originalEvent }); + } + } else { + const type = "selectcancelled"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this, originalEvent: event.originalEvent }); + } + } + } + } + } + this._downPoint = void 0; + } + _handleMove(event) { + if (this.getPrivate("visible")) { + const chart2 = this.chart; + if (chart2 && keys(chart2.plotContainer._downPoints).length > 1) { + this.set("forceHidden", true); + return; + } else { + this.set("forceHidden", false); + } + const rootPoint = event.point; + const lastPoint = this._lastPoint; + if (Math.round(lastPoint.x) === Math.round(rootPoint.x) && Math.round(lastPoint.y) === Math.round(rootPoint.y)) { + return; + } + this._lastPoint = rootPoint; + this.setPrivate("lastPoint", rootPoint); + this.handleMove({ x: rootPoint.x, y: rootPoint.y }, false, event.originalEvent); + } + } + _getPosition(point) { + return { x: point.x / this.width(), y: point.y / this.height() }; + } + /** + * Moves the cursor to X/Y coordinates within chart container (`point`). + * + * If `skipEvent` parameter is set to `true`, the move will not invoke + * the `"cursormoved"` event. + * + * @param point X/Y to move cursor to + * @param skipEvent Do not fire "cursormoved" event + */ + handleMove(point, skipEvent, originalEvent) { + if (!point) { + point = this._movePoint; + } + const alwaysShow = this.get("alwaysShow"); + if (!point) { + this.hide(0); + return; + } + this._movePoint = point; + let local = this._display.toLocal(point); + let chart2 = this.chart; + if (chart2 && (this._inPlot(local) || this._downPoint)) { + chart2._movePoint = point; + if (this.isHidden()) { + this.show(); + const behavior = this.get("behavior", ""); + if (behavior.charAt(0) == "z") { + this.selection.set("draw", () => { + }); + } + } + let x2 = local.x; + let y2 = local.y; + let xyPos = this._getPosition(local); + this.setPrivate("point", local); + let snapToSeries = this.get("snapToSeries"); + if (this._downPoint) { + snapToSeries = void 0; + } + let userPositionX = this.get("positionX"); + let positionX = xyPos.x; + if (isNumber(userPositionX)) { + positionX = userPositionX; + } + let userPositionY = this.get("positionY"); + let positionY = xyPos.y; + if (isNumber(userPositionY)) { + positionY = userPositionY; + } + this.setPrivate("positionX", positionX); + this.setPrivate("positionY", positionY); + const xy = this._getPoint(positionX, positionY); + x2 = xy.x; + y2 = xy.y; + chart2.xAxes.each((axis) => { + axis._handleCursorPosition(positionX, snapToSeries); + if (alwaysShow) { + axis.handleCursorShow(); + } + }); + chart2.yAxes.each((axis) => { + axis._handleCursorPosition(positionY, snapToSeries); + if (alwaysShow) { + axis.handleCursorShow(); + } + }); + if (!skipEvent) { + chart2._handleCursorPosition(); + const type = "cursormoved"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this, point, originalEvent }); + } + } + this._updateLines(x2, y2); + chart2.arrangeTooltips(); + } else if (!this._downPoint) { + if (!alwaysShow) { + this.hide(0); + const type = "cursorhidden"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this }); + } + } + } + if (this._downPoint && this.get("behavior") != "none") { + this._updateSelection(local); + } + } + _getPoint(positionX, positionY) { + return { x: this.width() * positionX, y: this.height() * positionY }; + } + _updateLines(x2, y2) { + if (!this._tooltipX) { + this.lineX.set("x", x2); + } + if (!this._tooltipY) { + this.lineY.set("y", y2); + } + this._drawLines(); + } + _updateSelection(point) { + const selection = this.selection; + const behavior = this.get("behavior"); + const w = this.width(); + const h = this.height(); + if (point.x < 0) { + point.x = 0; + } + if (point.x > w) { + point.x = w; + } + if (point.y < 0) { + point.y = 0; + } + if (point.y > h) { + point.y = h; + } + selection.set("draw", (display) => { + const downPoint = this._downPoint; + if (downPoint) { + if (behavior === "zoomXY" || behavior === "selectXY") { + display.moveTo(downPoint.x, downPoint.y); + display.lineTo(downPoint.x, point.y); + display.lineTo(point.x, point.y); + display.lineTo(point.x, downPoint.y); + display.lineTo(downPoint.x, downPoint.y); + } else if (behavior === "zoomX" || behavior === "selectX") { + display.moveTo(downPoint.x, 0); + display.lineTo(downPoint.x, h); + display.lineTo(point.x, h); + display.lineTo(point.x, 0); + display.lineTo(downPoint.x, 0); + } else if (behavior === "zoomY" || behavior === "selectY") { + display.moveTo(0, downPoint.y); + display.lineTo(w, downPoint.y); + display.lineTo(w, point.y); + display.lineTo(0, point.y); + display.lineTo(0, downPoint.y); + } + } + }); + } + _onHide() { + if (this.isHidden()) { + let chart2 = this.chart; + if (chart2) { + chart2.xAxes.each((axis) => { + axis.handleCursorHide(); + }); + chart2.yAxes.each((axis) => { + axis.handleCursorHide(); + }); + chart2.series.each((series2) => { + series2.handleCursorHide(); + }); + } + } + super._onHide(); + } + _onShow() { + if (!this.isHidden()) { + let chart2 = this.chart; + if (chart2) { + chart2.xAxes.each((axis) => { + axis.handleCursorShow(); + }); + chart2.yAxes.each((axis) => { + axis.handleCursorShow(); + }); + } + } + super._onShow(); + } + _dispose() { + super._dispose(); + this.selection.dispose(); + } + }; + XYCursor.className = "XYCursor"; + XYCursor.classNames = Container.classNames.concat([XYCursor.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/series/XYSeries.js + function min(left, right) { + if (left == null) + return right; + if (right == null) + return left; + return right < left ? right : left; + } + function max(left, right) { + if (left == null) + return right; + if (right == null) + return left; + return left > right ? left : right; + } + var XYSeries = class extends Series { + constructor() { + super(...arguments); + this._axesDirty = false; + this._stackDirty = false; + this._selectionProcessed = false; + this._dataSets = {}; + this._x = 0; + this._y = 0; + this._bullets = {}; + this.mainContainer = this.children.push(Container.new(this._root, {})); + this.axisRanges = new List(); + this._skipped = false; + this._couldStackTo = []; + this._reallyStackedTo = {}; + this._stackedSeries = {}; + this._aLocationX0 = 0; + this._aLocationX1 = 1; + this._aLocationY0 = 0; + this._aLocationY1 = 1; + this._showBullets = true; + this.valueXFields = [ + "valueX", + "openValueX", + "lowValueX", + "highValueX" + ]; + this.valueYFields = [ + "valueY", + "openValueY", + "lowValueY", + "highValueY" + ]; + this._emptyDataItem = new DataItem(this, void 0, {}); + } + _afterNew() { + this.fields.push("categoryX", "categoryY", "openCategoryX", "openCategoryY"); + this.valueFields.push("valueX", "valueY", "openValueX", "openValueY", "lowValueX", "lowValueY", "highValueX", "highValueY"); + this._setRawDefault("vcx", 1); + this._setRawDefault("vcy", 1); + this._setRawDefault("valueXShow", "valueXWorking"); + this._setRawDefault("valueYShow", "valueYWorking"); + this._setRawDefault("openValueXShow", "openValueXWorking"); + this._setRawDefault("openValueYShow", "openValueYWorking"); + this._setRawDefault("lowValueXShow", "lowValueXWorking"); + this._setRawDefault("lowValueYShow", "lowValueYWorking"); + this._setRawDefault("highValueXShow", "highValueXWorking"); + this._setRawDefault("highValueYShow", "highValueYWorking"); + this._setRawDefault("lowValueXGrouped", "low"); + this._setRawDefault("lowValueYGrouped", "low"); + this._setRawDefault("highValueXGrouped", "high"); + this._setRawDefault("highValueYGrouped", "high"); + const xAxis2 = this.get("xAxis"); + if (xAxis2) { + this._xRenderer = xAxis2.get("renderer"); + } + const yAxis2 = this.get("yAxis"); + if (yAxis2) { + this._yRenderer = yAxis2.get("renderer"); + } + super._afterNew(); + this.set("maskContent", true); + this._disposers.push(this.axisRanges.events.onAll((change) => { + if (change.type === "clear") { + each(change.oldValues, (axisRange) => { + this._removeAxisRange(axisRange); + }); + } else if (change.type === "push") { + this._processAxisRange(change.newValue); + } else if (change.type === "setIndex") { + this._processAxisRange(change.newValue); + } else if (change.type === "insertIndex") { + this._processAxisRange(change.newValue); + } else if (change.type === "removeIndex") { + this._removeAxisRange(change.oldValue); + } else if (change.type === "moveIndex") { + this._processAxisRange(change.value); + } else { + throw new Error("Unknown IStreamEvent type"); + } + })); + this.states.create("hidden", { opacity: 1, visible: false }); + this.onPrivate("startIndex", () => { + this.root.events.once("frameended", () => { + this.updateLegendValue(); + }); + }); + this.onPrivate("endIndex", () => { + this.root.events.once("frameended", () => { + this.updateLegendValue(); + }); + }); + this._makeFieldNames(); + } + _processAxisRange(axisRange) { + const container = Container.new(this._root, {}); + axisRange.container = container; + this.children.push(container); + axisRange.series = this; + const axisDataItem = axisRange.axisDataItem; + axisDataItem.setRaw("isRange", true); + const axis = axisDataItem.component; + if (axis) { + axis._processAxisRange(axisDataItem, ["range", "series"]); + const bullet = axisDataItem.get("bullet"); + if (bullet) { + const sprite = bullet.get("sprite"); + if (sprite) { + sprite.setPrivate("visible", false); + } + } + const axisFill = axisDataItem.get("axisFill"); + if (axisFill) { + container.set("mask", axisFill); + } + axis._seriesAxisRanges.push(axisDataItem); + } + } + _onDataClear() { + super._onDataClear(); + each2(this._dataSets, (_key, dataItems) => { + each(dataItems, (dataItem) => { + dataItem.dispose(); + }); + dataItems.length = 0; + }); + } + _removeAxisRange(axisRange) { + const axisDataItem = axisRange.axisDataItem; + const axis = axisDataItem.component; + axisDataItem.dispose(); + remove(axis._seriesAxisRanges, axisDataItem); + const container = axisRange.container; + if (container) { + container.dispose(); + } + } + _updateFields() { + super._updateFields(); + this._valueXFields = []; + this._valueYFields = []; + this._valueXShowFields = []; + this._valueYShowFields = []; + this.__valueXShowFields = []; + this.__valueYShowFields = []; + if (this.valueXFields) { + each(this.valueXFields, (key) => { + const field = this.get(key + "Field"); + if (field) { + this._valueXFields.push(key); + let field2 = this.get(key + "Show"); + this.__valueXShowFields.push(field2); + if (field2.indexOf("Working") != -1) { + this._valueXShowFields.push(field2.split("Working")[0]); + } else { + this._valueXShowFields.push(field2); + } + } + }); + } + if (this.valueYFields) { + each(this.valueYFields, (key) => { + const field = this.get(key + "Field"); + if (field) { + this._valueYFields.push(key); + let field2 = this.get(key + "Show"); + this.__valueYShowFields.push(field2); + if (field2.indexOf("Working") != -1) { + this._valueYShowFields.push(field2.split("Working")[0]); + } else { + this._valueYShowFields.push(field2); + } + } + }); + } + } + _dispose() { + super._dispose(); + this._bullets = {}; + const chart2 = this.chart; + if (chart2) { + chart2.series.removeValue(this); + } + removeFirst(this.get("xAxis").series, this); + removeFirst(this.get("yAxis").series, this); + } + // TODO use SelectKeys + _min(key, value) { + let newValue = min(this.getPrivate(key), value); + this.setPrivate(key, newValue); + } + // TODO use SelectKeys + _max(key, value) { + let newValue = max(this.getPrivate(key), value); + this.setPrivate(key, newValue); + } + _shouldMakeBullet(dataItem) { + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const baseAxis = this.get("baseAxis"); + if (!xAxis2.inited || !yAxis2.inited) { + return false; + } + const minBulletDistance = this.get("minBulletDistance", 0); + if (minBulletDistance > 0) { + let startIndex = this.startIndex(); + let endIndex = this.endIndex(); + let count = endIndex - startIndex; + if (xAxis2 == baseAxis) { + if (this._xRenderer.axisLength() / count < minBulletDistance / 5) { + return false; + } + } else if (yAxis2 == baseAxis) { + if (this._yRenderer.axisLength() / count < minBulletDistance / 5) { + return false; + } + } + } + if (dataItem.get(this._xField) != null && dataItem.get(this._yField) != null) { + return true; + } + return false; + } + _makeFieldNames() { + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const xName = xAxis2.getPrivate("name"); + const xCapName = capitalizeFirst(xName); + const yName = yAxis2.getPrivate("name"); + const yCapName = capitalizeFirst(yName); + const xLetter = xAxis2.get("renderer").getPrivate("letter"); + const yLetter = yAxis2.get("renderer").getPrivate("letter"); + const open = "open"; + const low = "low"; + const high = "high"; + const show = "Show"; + if (xAxis2.className === "ValueAxis") { + this._xField = this.get(xName + xLetter + show); + this._xOpenField = this.get(open + xCapName + xLetter + show); + this._xLowField = this.get(low + xCapName + xLetter + show); + this._xHighField = this.get(high + xCapName + xLetter + show); + } else { + this._xField = xName + xLetter; + this._xOpenField = open + xCapName + xLetter; + this._xLowField = low + xCapName + xLetter; + this._xHighField = high + xCapName + xLetter; + } + if (yAxis2.className === "ValueAxis") { + this._yField = this.get(yName + yLetter + show); + this._yOpenField = this.get(open + yCapName + yLetter + show); + this._yLowField = this.get(low + yCapName + yLetter + show); + this._yHighField = this.get(high + yCapName + yLetter + show); + } else { + this._yField = yName + yLetter; + this._yOpenField = open + yCapName + yLetter; + this._yLowField = low + yCapName + yLetter; + this._yHighField = high + yCapName + yLetter; + } + } + _fixVC() { + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const baseAxis = this.get("baseAxis"); + const hiddenState = this.states.lookup("hidden"); + const sequencedInterpolation = this.get("sequencedInterpolation"); + if (hiddenState) { + let value = 0; + if (sequencedInterpolation) { + value = 0.999999999999; + } + if (xAxis2 === baseAxis) { + hiddenState.set("vcy", value); + } else if (yAxis2 === baseAxis) { + hiddenState.set("vcx", value); + } else { + hiddenState.set("vcy", value); + hiddenState.set("vcx", value); + } + } + } + _handleMaskBullets() { + if (this.isDirty("maskBullets")) { + this.bulletsContainer.set("maskContent", this.get("maskBullets")); + } + } + _fixPosition() { + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + this.set("x", xAxis2.x() - relativeToValue(xAxis2.get("centerX", 0), xAxis2.width()) - xAxis2.parent.get("paddingLeft", 0)); + this.set("y", yAxis2.y() - relativeToValue(yAxis2.get("centerY", 0), yAxis2.height()) - yAxis2.parent.get("paddingTop", 0)); + this.bulletsContainer.set("y", this.y()); + this.bulletsContainer.set("x", this.x()); + } + _prepareChildren() { + super._prepareChildren(); + this._xRenderer = this.get("xAxis").get("renderer"); + this._yRenderer = this.get("yAxis").get("renderer"); + this._bullets = {}; + if (this.isDirty("valueYShow") || this.isDirty("valueXShow") || this.isDirty("openValueYShow") || this.isDirty("openValueXShow") || this.isDirty("lowValueYShow") || this.isDirty("lowValueXShow") || this.isDirty("highValueYShow") || this.isDirty("highValueXShow")) { + this._updateFields(); + this._makeFieldNames(); + this._valuesDirty = true; + } + if (this.isDirty("xAxis") || this.isDirty("yAxis")) { + this._valuesDirty = true; + } + this.set("width", this.get("xAxis").width()); + this.set("height", this.get("yAxis").height()); + this._handleMaskBullets(); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const baseAxis = this.get("baseAxis"); + const tooltipPositionX = this.get("tooltipPositionX"); + let tooltipFieldX; + switch (tooltipPositionX) { + case "open": + tooltipFieldX = this._xOpenField; + break; + case "low": + tooltipFieldX = this._xLowField; + break; + case "high": + tooltipFieldX = this._xHighField; + break; + default: + tooltipFieldX = this._xField; + } + this._tooltipFieldX = tooltipFieldX; + const tooltipPositionY = this.get("tooltipPositionY"); + let tooltipFieldY; + switch (tooltipPositionY) { + case "open": + tooltipFieldY = this._yOpenField; + break; + case "low": + tooltipFieldY = this._yLowField; + break; + case "high": + tooltipFieldY = this._yHighField; + break; + default: + tooltipFieldY = this._yField; + } + this._tooltipFieldY = tooltipFieldY; + if (this.isDirty("baseAxis")) { + this._fixVC(); + } + this._fixPosition(); + const stacked = this.get("stacked"); + if (this.isDirty("stacked")) { + if (stacked) { + if (this._valuesDirty && !this._dataProcessed) { + } else { + this._stack(); + } + } else { + this._unstack(); + } + } + if (this._valuesDirty && !this._dataProcessed) { + this._dataProcessed = true; + if (stacked) { + this._stack(); + } + each(this.dataItems, (dataItem) => { + each(this._valueXShowFields, (key) => { + let value = dataItem.get(key); + if (value != null) { + if (stacked) { + value += this.getStackedXValue(dataItem, key); + } + this._min("minX", value); + this._max("maxX", value); + } + }); + each(this._valueYShowFields, (key) => { + let value = dataItem.get(key); + if (value != null) { + if (stacked) { + value += this.getStackedYValue(dataItem, key); + } + this._min("minY", value); + this._max("maxY", value); + } + }); + xAxis2.processSeriesDataItem(dataItem, this._valueXFields); + yAxis2.processSeriesDataItem(dataItem, this._valueYFields); + }); + xAxis2._seriesValuesDirty = true; + yAxis2._seriesValuesDirty = true; + if (!this.get("ignoreMinMax")) { + if (this.isPrivateDirty("minX") || this.isPrivateDirty("maxX")) { + xAxis2.markDirtyExtremes(); + } + if (this.isPrivateDirty("minY") || this.isPrivateDirty("maxY")) { + yAxis2.markDirtyExtremes(); + } + } + this._markStakedDirtyStack(); + if (!this.get("tooltipDataItem")) { + this.updateLegendValue(void 0); + } + } + if (this.isDirty("vcx") || this.isDirty("vcy")) { + this._markStakedDirtyStack(); + } + if (!this._dataGrouped) { + xAxis2._groupSeriesData(this); + yAxis2._groupSeriesData(this); + this._dataGrouped = true; + } + if (this._valuesDirty || this.isPrivateDirty("startIndex") || this.isPrivateDirty("adjustedStartIndex") || this.isPrivateDirty("endIndex") || this.isDirty("vcx") || this.isDirty("vcy") || this._stackDirty || this._sizeDirty) { + let startIndex = this.startIndex(); + let endIndex = this.endIndex(); + let minBulletDistance = this.get("minBulletDistance", 0); + if (minBulletDistance > 0 && baseAxis) { + if (baseAxis.get("renderer").axisLength() / (endIndex - startIndex) > minBulletDistance) { + this._showBullets = true; + } else { + this._showBullets = false; + } + } + if ((this._psi != startIndex || this._pei != endIndex || this.isDirty("vcx") || this.isDirty("vcy") || this.isPrivateDirty("adjustedStartIndex") || this._stackDirty || this._valuesDirty) && !this._selectionProcessed) { + this._selectionProcessed = true; + const vcx = this.get("vcx", 1); + const vcy = this.get("vcy", 1); + const stacked2 = this.get("stacked", false); + const outOfSelection = this.getPrivate("outOfSelection"); + if (baseAxis === xAxis2 || !baseAxis) { + yAxis2._calculateTotals(); + this.setPrivateRaw("selectionMinY", void 0); + this.setPrivateRaw("selectionMaxY", void 0); + if (!outOfSelection) { + for (let i = startIndex; i < endIndex; i++) { + this.processYSelectionDataItem(this.dataItems[i], vcy, stacked2); + } + } else { + yAxis2.markDirtySelectionExtremes(); + } + } + if (baseAxis === yAxis2 || !baseAxis) { + xAxis2._calculateTotals(); + this.setPrivateRaw("selectionMinX", void 0); + this.setPrivateRaw("selectionMaxX", void 0); + if (!outOfSelection) { + for (let i = startIndex; i < endIndex; i++) { + this.processXSelectionDataItem(this.dataItems[i], vcx, stacked2); + } + } else { + yAxis2.markDirtySelectionExtremes(); + } + } + if (baseAxis === xAxis2 || !baseAxis) { + if (this.get("valueYShow") !== "valueYWorking" || this.get("useSelectionExtremes")) { + const selectionMinY = this.getPrivate("selectionMinY"); + if (selectionMinY != null) { + this.setPrivateRaw("minY", selectionMinY); + yAxis2.markDirtyExtremes(); + } + const selectionMaxY = this.getPrivate("selectionMaxY"); + if (selectionMaxY != null) { + this.setPrivateRaw("maxY", selectionMaxY); + yAxis2.markDirtyExtremes(); + } + } + } + if (baseAxis === yAxis2 || !baseAxis) { + if (this.get("valueXShow") !== "valueXWorking" || this.get("useSelectionExtremes")) { + const selectionMinX = this.getPrivate("selectionMinX"); + if (selectionMinX != null) { + this.setPrivateRaw("minX", selectionMinX); + yAxis2.markDirtyExtremes(); + } + const selectionMaxX = this.getPrivate("selectionMaxX"); + if (selectionMaxX != null) { + this.setPrivateRaw("maxX", selectionMaxX); + xAxis2.markDirtyExtremes(); + } + } + } + if (this.isPrivateDirty("selectionMinX") || this.isPrivateDirty("selectionMaxX")) { + xAxis2.markDirtySelectionExtremes(); + } + if (this.isPrivateDirty("selectionMinY") || this.isPrivateDirty("selectionMaxY")) { + yAxis2.markDirtySelectionExtremes(); + } + } + } + } + _postUpdateData() { + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + xAxis2._seriesValuesDirty = true; + yAxis2._seriesValuesDirty = true; + each(this.dataItems, (dataItem) => { + dataItem.open = void 0; + dataItem.close = void 0; + xAxis2.processSeriesDataItem(dataItem, this._valueXFields); + yAxis2.processSeriesDataItem(dataItem, this._valueYFields); + }); + } + _makeRangeMask() { + if (this.axisRanges.length > 0) { + let mainContainerMask = this._mainContainerMask; + if (mainContainerMask == null) { + mainContainerMask = this.children.push(Graphics.new(this._root, {})); + this._mainContainerMask = mainContainerMask; + mainContainerMask.set("draw", (display, target) => { + const parent = this.parent; + if (parent) { + const w = this._root.container.width(); + const h = this._root.container.height(); + display.moveTo(-w, -h); + display.lineTo(-w, h * 2); + display.lineTo(w * 2, h * 2); + display.lineTo(w * 2, -h); + display.lineTo(-w, -h); + this.axisRanges.each((axisRange) => { + const fill = axisRange.axisDataItem.get("axisFill"); + if (parent) { + if (fill) { + let draw = fill.get("draw"); + if (draw) { + draw(display, target); + } + } + } + }); + } + this.mainContainer._display.mask = mainContainerMask._display; + }); + } + mainContainerMask.markDirty(); + mainContainerMask._markDirtyKey("fill"); + } else { + this.mainContainer._display.mask = null; + } + } + _updateChildren() { + super._updateChildren(); + this._x = this.x(); + this._y = this.y(); + this._makeRangeMask(); + } + _stack() { + const chart2 = this.chart; + if (chart2) { + const seriesIndex = chart2.series.indexOf(this); + this._couldStackTo = []; + if (seriesIndex > 0) { + let series2; + for (let i = seriesIndex - 1; i >= 0; i--) { + series2 = chart2.series.getIndex(i); + if (series2.get("xAxis") === this.get("xAxis") && series2.get("yAxis") === this.get("yAxis") && series2.className === this.className) { + this._couldStackTo.push(series2); + if (!series2.get("stacked")) { + break; + } + } + } + } + this._stackDataItems(); + } + } + _unstack() { + each2(this._reallyStackedTo, (_key, value) => { + delete value._stackedSeries[this.uid]; + }); + this._reallyStackedTo = {}; + each(this.dataItems, (dataItem) => { + dataItem.setRaw("stackToItemY", void 0); + dataItem.setRaw("stackToItemX", void 0); + }); + } + _handleRemoved() { + const xAxis2 = this.get("xAxis"); + if (xAxis2) { + xAxis2._handleSeriesRemoved(); + } + const yAxis2 = this.get("yAxis"); + if (yAxis2) { + yAxis2._handleSeriesRemoved(); + } + } + _stackDataItems() { + const baseAxis = this.get("baseAxis"); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + let field; + let stackToItemKey; + if (baseAxis === xAxis2) { + field = "valueY"; + stackToItemKey = "stackToItemY"; + } else if (baseAxis === yAxis2) { + field = "valueX"; + stackToItemKey = "stackToItemX"; + } + let len = this._couldStackTo.length; + let index = 0; + const stackToNegative = this.get("stackToNegative"); + this._reallyStackedTo = {}; + each(this.dataItems, (dataItem) => { + for (let s2 = 0; s2 < len; s2++) { + let stackToSeries = this._couldStackTo[s2]; + let stackToItem = stackToSeries.dataItems[index]; + let value = dataItem.get(field); + if (stackToItem) { + let stackValue = stackToItem.get(field); + if (stackToNegative) { + if (isNumber(value)) { + if (isNumber(stackValue)) { + if (s2 == len - 1) { + dataItem.setRaw(stackToItemKey, void 0); + } + if (value >= 0 && stackValue >= 0) { + dataItem.setRaw(stackToItemKey, stackToItem); + this._reallyStackedTo[stackToSeries.uid] = stackToSeries; + stackToSeries._stackedSeries[this.uid] = this; + break; + } + if (value < 0 && stackValue < 0) { + dataItem.setRaw(stackToItemKey, stackToItem); + this._reallyStackedTo[stackToSeries.uid] = stackToSeries; + stackToSeries._stackedSeries[this.uid] = this; + break; + } + } + } else { + break; + } + } else { + if (isNumber(value) && isNumber(stackValue)) { + dataItem.setRaw(stackToItemKey, stackToItem); + this._reallyStackedTo[stackToSeries.uid] = stackToSeries; + stackToSeries._stackedSeries[this.uid] = this; + break; + } + } + } + } + index++; + }); + } + processXSelectionDataItem(dataItem, vcx, stacked) { + each(this.__valueXShowFields, (key) => { + let value = dataItem.get(key); + if (value != null) { + if (stacked) { + value += this.getStackedXValueWorking(dataItem, key); + } + this._min("selectionMinX", value); + this._max("selectionMaxX", value * vcx); + } + }); + } + processYSelectionDataItem(dataItem, vcy, stacked) { + each(this.__valueYShowFields, (key) => { + let value = dataItem.get(key); + if (value != null) { + if (stacked) { + value += this.getStackedYValueWorking(dataItem, key); + } + this._min("selectionMinY", value); + this._max("selectionMaxY", value * vcy); + } + }); + } + /** + * @ignore + */ + getStackedYValueWorking(dataItem, key) { + const stackToItem = dataItem.get("stackToItemY"); + if (stackToItem) { + const stackedToSeries = stackToItem.component; + return stackToItem.get(key, 0) * stackedToSeries.get("vcy", 1) + this.getStackedYValueWorking(stackToItem, key); + } + return 0; + } + /** + * @ignore + */ + getStackedXValueWorking(dataItem, key) { + const stackToItem = dataItem.get("stackToItemX"); + if (stackToItem) { + const stackedToSeries = stackToItem.component; + return stackToItem.get(key, 0) * stackedToSeries.get("vcx", 1) + this.getStackedXValueWorking(stackToItem, key); + } + return 0; + } + /** + * @ignore + */ + getStackedYValue(dataItem, key) { + const stackToItem = dataItem.get("stackToItemY"); + if (stackToItem) { + return stackToItem.get(key, 0) + this.getStackedYValue(stackToItem, key); + } + return 0; + } + /** + * @ignore + */ + getStackedXValue(dataItem, key) { + const stackToItem = dataItem.get("stackToItemX"); + if (stackToItem) { + return stackToItem.get(key, 0) + this.getStackedXValue(stackToItem, key); + } + return 0; + } + /** + * @ignore + */ + createLegendMarker(_dataItem) { + this.updateLegendMarker(); + } + _markDirtyAxes() { + this._axesDirty = true; + this.markDirty(); + } + _markDataSetDirty() { + this._afterDataChange(); + this._valuesDirty = true; + this._dataProcessed = false; + this._aggregatesCalculated = false; + this.markDirty(); + } + _clearDirty() { + super._clearDirty(); + this._axesDirty = false; + this._selectionProcessed = false; + this._stackDirty = false; + this._dataProcessed = false; + } + _positionBullet(bullet) { + let sprite = bullet.get("sprite"); + if (sprite) { + let dataItem = sprite.dataItem; + let locationX = bullet.get("locationX", dataItem.get("locationX", 0.5)); + let locationY = bullet.get("locationY", dataItem.get("locationY", 0.5)); + let xAxis2 = this.get("xAxis"); + let yAxis2 = this.get("yAxis"); + let exactLocationX = this.get("exactLocationX", false); + let exactLocationY = this.get("exactLocationY", false); + let positionX = xAxis2.getDataItemPositionX(dataItem, this._xField, locationX, this.get("vcx", 1), exactLocationX); + let positionY = yAxis2.getDataItemPositionY(dataItem, this._yField, locationY, this.get("vcy", 1), exactLocationY); + let point = this.getPoint(positionX, positionY); + let left = dataItem.get("left", point.x); + let right = dataItem.get("right", point.x); + let top = dataItem.get("top", point.y); + let bottom = dataItem.get("bottom", point.y); + let x2 = 0; + let y2 = 0; + let w = right - left; + let h = bottom - top; + if (this._shouldShowBullet(positionX, positionY)) { + sprite.setPrivate("visible", !bullet.getPrivate("hidden")); + let field = bullet.get("field"); + const baseAxis = this.get("baseAxis"); + const xAxis3 = this.get("xAxis"); + const yAxis3 = this.get("yAxis"); + if (field != void 0) { + let realField; + if (baseAxis == xAxis3) { + if (field == "value") { + realField = this._yField; + } else if (field == "open") { + realField = this._yOpenField; + } else if (field == "high") { + realField = this._yHighField; + } else if (field == "low") { + realField = this._yLowField; + } + if (realField) { + positionY = yAxis3.getDataItemPositionY(dataItem, realField, 0, this.get("vcy", 1), exactLocationY); + point = this._yRenderer.positionToPoint(positionY); + y2 = point.y; + x2 = left + w * locationX; + } + } else { + if (field == "value") { + realField = this._xField; + } else if (field == "open") { + realField = this._xOpenField; + } else if (field == "high") { + realField = this._xHighField; + } else if (field == "low") { + realField = this._xLowField; + } + if (realField) { + positionX = xAxis3.getDataItemPositionX(dataItem, realField, 0, this.get("vcx", 1), exactLocationX); + point = this._xRenderer.positionToPoint(positionX); + x2 = point.x; + y2 = bottom - h * locationY; + } + } + } else { + x2 = left + w * locationX; + y2 = bottom - h * locationY; + } + const stacked = bullet.get("stacked"); + if (stacked) { + const chart2 = this.chart; + if (baseAxis == xAxis3) { + let previousBullet = this._bullets[positionX + "_" + positionY]; + if (previousBullet) { + let previousBounds = previousBullet.bounds(); + let bounds = sprite.localBounds(); + let yo = y2; + y2 = previousBounds.top; + if (stacked == "down") { + y2 = previousBounds.bottom - bounds.top; + } else if (stacked == "auto") { + if (chart2) { + if (yo < chart2.plotContainer.height() / 2) { + y2 = previousBounds.bottom - bounds.top; + } else { + y2 += bounds.bottom; + } + } + } else { + y2 += bounds.bottom; + } + } + this._bullets[positionX + "_" + positionY] = sprite; + } else { + let previousBullet = this._bullets[positionX + "_" + positionY]; + if (previousBullet) { + let previousBounds = previousBullet.bounds(); + let bounds = sprite.localBounds(); + let xo = x2; + x2 = previousBounds.right; + if (stacked == "down") { + x2 = previousBounds.left - bounds.right; + } else if (stacked == "auto") { + if (chart2) { + if (xo < chart2.plotContainer.width() / 2) { + x2 = previousBounds.left - bounds.right; + } else { + x2 -= bounds.left; + } + } + } else { + x2 -= bounds.left; + } + } + this._bullets[positionX + "_" + positionY] = sprite; + } + } + if (sprite.isType("Label")) { + sprite.setPrivate("maxWidth", Math.abs(w)); + sprite.setPrivate("maxHeight", Math.abs(h)); + } + sprite.setAll({ x: x2, y: y2 }); + } else { + sprite.setPrivate("visible", false); + } + } + } + _shouldShowBullet(_positionX, _positionY) { + return this._showBullets; + } + /** + * @ignore + */ + setDataSet(id) { + if (this._dataSets[id]) { + this._handleDataSetChange(); + this._dataItems = this._dataSets[id]; + this._markDataSetDirty(); + this._dataSetId = id; + const type = "datasetchanged"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this, id }); + } + } + } + /** + * @ignore + */ + resetGrouping() { + each2(this._dataSets, (_key, dataSet) => { + if (dataSet != this._mainDataItems) { + each(dataSet, (dataItem) => { + dataItem.dispose(); + }); + } + }); + this._dataSets = {}; + this._dataItems = this.mainDataItems; + } + _handleDataSetChange() { + each(this._dataItems, (dataItem) => { + let bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + if (bullet) { + let sprite = bullet.get("sprite"); + if (sprite) { + sprite.setPrivate("visible", false); + } + } + }); + } + }); + this._selectionProcessed = false; + } + /** + * Shows hidden series. + * + * @param duration Duration of animation in milliseconds + * @return Animation promise + */ + show(duration) { + const _super = Object.create(null, { + show: { get: () => super.show } + }); + return __awaiter(this, void 0, void 0, function* () { + this._fixVC(); + let promises = []; + promises.push(_super.show.call(this, duration).then(() => { + this._isShowing = false; + let xAxis2 = this.get("xAxis"); + let yAxis2 = this.get("yAxis"); + let baseAxis = this.get("baseAxis"); + if (yAxis2 !== baseAxis) { + yAxis2.markDirtySelectionExtremes(); + } + if (xAxis2 !== baseAxis) { + xAxis2.markDirtySelectionExtremes(); + } + })); + promises.push(this.bulletsContainer.show(duration)); + promises.push(this._sequencedShowHide(true, duration)); + yield Promise.all(promises); + }); + } + /** + * Hides series. + * + * @param duration Duration of animation in milliseconds + * @return Animation promise + */ + hide(duration) { + const _super = Object.create(null, { + hide: { get: () => super.hide } + }); + return __awaiter(this, void 0, void 0, function* () { + this._fixVC(); + let promises = []; + promises.push(_super.hide.call(this, duration).then(() => { + this._isHiding = false; + })); + promises.push(this.bulletsContainer.hide(duration)); + promises.push(this._sequencedShowHide(false, duration)); + yield Promise.all(promises); + }); + } + /** + * Shows series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + showDataItem(dataItem, duration) { + const _super = Object.create(null, { + showDataItem: { get: () => super.showDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.showDataItem.call(this, dataItem, duration)]; + if (!isNumber(duration)) { + duration = this.get("stateAnimationDuration", 0); + } + const easing = this.get("stateAnimationEasing"); + each(this._valueFields, (key) => { + promises.push(dataItem.animate({ key: key + "Working", to: dataItem.get(key), duration, easing }).waitForStop()); + }); + yield Promise.all(promises); + }); + } + /** + * Hides series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + hideDataItem(dataItem, duration) { + const _super = Object.create(null, { + hideDataItem: { get: () => super.hideDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.hideDataItem.call(this, dataItem, duration)]; + let hiddenState = this.states.lookup("hidden"); + if (!hiddenState) { + hiddenState = this.states.create("hidden", {}); + } + if (!isNumber(duration)) { + duration = hiddenState.get("stateAnimationDuration", this.get("stateAnimationDuration", 0)); + } + const easing = hiddenState.get("stateAnimationEasing", this.get("stateAnimationEasing")); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const baseAxis = this.get("baseAxis"); + const stacked = this.get("stacked"); + if (baseAxis === xAxis2 || !baseAxis) { + each(this._valueYFields, (key) => { + let min2 = yAxis2.getPrivate("min"); + let baseValue = yAxis2.baseValue(); + if (isNumber(min2) && min2 > baseValue) { + baseValue = min2; + } + if (stacked) { + baseValue = 0; + } + let value = dataItem.get(key); + if (value != null) { + promises.push(dataItem.animate({ key: key + "Working", to: baseValue, duration, easing }).waitForStop()); + } + }); + } + if (baseAxis === yAxis2 || !baseAxis) { + let min2 = xAxis2.getPrivate("min"); + let baseValue = xAxis2.baseValue(); + if (isNumber(min2) && min2 > baseValue) { + baseValue = min2; + } + if (stacked) { + baseValue = 0; + } + each(this._valueXFields, (key) => { + let value = dataItem.get(key); + if (value != null) { + promises.push(dataItem.animate({ key: key + "Working", to: baseValue, duration, easing }).waitForStop()); + } + }); + } + yield Promise.all(promises); + }); + } + _markDirtyStack() { + this._stackDirty = true; + this.markDirty(); + this._markStakedDirtyStack(); + } + _markStakedDirtyStack() { + const stackedSeries = this._stackedSeries; + if (stackedSeries) { + each2(stackedSeries, (_key, value) => { + if (!value._stackDirty) { + value._markDirtyStack(); + } + }); + } + } + _afterChanged() { + super._afterChanged(); + if (this._skipped) { + this._markDirtyAxes(); + this._skipped = false; + } + } + /** + * Shows a tooltip for specific data item. + * + * @param dataItem Data item + */ + showDataItemTooltip(dataItem) { + if (!this.getPrivate("doNotUpdateLegend")) { + this.updateLegendMarker(dataItem); + this.updateLegendValue(dataItem); + } + const tooltip = this.get("tooltip"); + const exactLocationX = this.get("exactLocationX", false); + const exactLocationY = this.get("exactLocationY", false); + if (tooltip) { + if (!this.isHidden() && this.get("visible")) { + tooltip._setDataItem(dataItem); + if (dataItem) { + let locationX = this.get("locationX", 0); + let locationY = this.get("locationY", 1); + let itemLocationX = dataItem.get("locationX", locationX); + let itemLocationY = dataItem.get("locationY", locationY); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const vcx = this.get("vcx", 1); + const vcy = this.get("vcy", 1); + const xPos = xAxis2.getDataItemPositionX(dataItem, this._tooltipFieldX, this._aLocationX0 + (this._aLocationX1 - this._aLocationX0) * itemLocationX, vcx, exactLocationX); + const yPos = yAxis2.getDataItemPositionY(dataItem, this._tooltipFieldY, this._aLocationY0 + (this._aLocationY1 - this._aLocationY0) * itemLocationY, vcy, exactLocationY); + const point = this.getPoint(xPos, yPos); + let show = true; + each(this._valueFields, (field) => { + if (dataItem.get(field) == null) { + show = false; + } + }); + if (show) { + const chart2 = this.chart; + if (chart2 && chart2.inPlot(point)) { + tooltip.label.text.markDirtyText(); + tooltip.set("tooltipTarget", this._getTooltipTarget(dataItem)); + tooltip.set("pointTo", this._display.toGlobal({ x: point.x, y: point.y })); + } else { + tooltip._setDataItem(void 0); + } + } else { + tooltip._setDataItem(void 0); + } + } + } else { + this.hideTooltip(); + } + } + } + hideTooltip() { + const tooltip = this.get("tooltip"); + if (tooltip) { + tooltip.set("tooltipTarget", this); + } + return super.hideTooltip(); + } + _getTooltipTarget(dataItem) { + if (this.get("seriesTooltipTarget") == "bullet") { + const bullets = dataItem.bullets; + if (bullets && bullets.length > 0) { + const bullet = bullets[0]; + const sprite = bullet.get("sprite"); + if (sprite) { + return sprite; + } + } + } + return this; + } + /** + * @ignore + */ + updateLegendValue(dataItem) { + const legendDataItem = this.get("legendDataItem"); + if (legendDataItem) { + const label = legendDataItem.get("label"); + if (label) { + let txt = ""; + if (dataItem) { + label._setDataItem(dataItem); + txt = this.get("legendLabelText", label.get("text", this.get("name", ""))); + } else { + label._setDataItem(this._emptyDataItem); + txt = this.get("legendRangeLabelText", this.get("legendLabelText", label.get("text", this.get("name", "")))); + } + label.set("text", txt); + } + const valueLabel = legendDataItem.get("valueLabel"); + if (valueLabel) { + let txt = ""; + if (dataItem) { + valueLabel._setDataItem(dataItem); + txt = this.get("legendValueText", valueLabel.get("text", "")); + } else { + valueLabel._setDataItem(this._emptyDataItem); + txt = this.get("legendRangeValueText", valueLabel.get("text", "")); + } + valueLabel.set("text", txt); + } + } + } + _getItemReaderLabel() { + let text = "X: {" + this._xField; + if (this.get("xAxis").isType("DateAxis")) { + text += ".formatDate()"; + } + text += "}; Y: {" + this._yField; + if (this.get("yAxis").isType("DateAxis")) { + text += ".formatDate()"; + } + text += "}"; + return text; + } + /** + * @ignore + */ + getPoint(positionX, positionY) { + let x2 = this._xRenderer.positionToCoordinate(positionX); + let y2 = this._yRenderer.positionToCoordinate(positionY); + let max2 = 999999999; + if (y2 < -max2) { + y2 = -max2; + } else if (y2 > max2) { + y2 = max2; + } + if (x2 < -max2) { + x2 = -max2; + } else if (x2 > max2) { + x2 = max2; + } + return { x: x2, y: y2 }; + } + _shouldInclude(_position) { + return true; + } + /** + * @ignore + */ + handleCursorHide() { + this.hideTooltip(); + this.updateLegendValue(void 0); + this.updateLegendMarker(void 0); + } + _afterDataChange() { + super._afterDataChange(); + this.get("xAxis")._markDirtyKey("start"); + this.get("yAxis")._markDirtyKey("start"); + this.resetExtremes(); + } + /** + * Resets cached axis scale values. + */ + resetExtremes() { + this.setPrivate("selectionMinX", void 0); + this.setPrivate("selectionMaxX", void 0); + this.setPrivate("selectionMinY", void 0); + this.setPrivate("selectionMaxY", void 0); + this.setPrivate("minX", void 0); + this.setPrivate("minY", void 0); + this.setPrivate("maxX", void 0); + this.setPrivate("maxY", void 0); + } + /** + * Creates and returns an axis range object. + * + * @see {@link https://www.amcharts.com/docs/v5/charts/xy-chart/axes/axis-ranges/} for more info + * @param axisDataItem Axis data item + * @return Axis range + */ + createAxisRange(axisDataItem) { + return this.axisRanges.push({ + axisDataItem + }); + } + /** + * A list of series's main (ungrouped) data items. + * + * @return Data items + */ + get mainDataItems() { + return this._mainDataItems; + } + /** + * @ignore + */ + _adjustStartIndex(index) { + const xAxis2 = this.get("xAxis"); + const baseAxis = this.get("baseAxis"); + if (baseAxis == xAxis2 && xAxis2.isType("DateAxis")) { + const baseDuration = xAxis2.baseDuration(); + const minSelection = xAxis2.getPrivate("selectionMin", xAxis2.getPrivate("min", 0)); + const dl = baseDuration * this.get("locationX", 0.5); + let value = -Infinity; + while (value < minSelection) { + const dataItem = this.dataItems[index]; + if (dataItem) { + const open = dataItem.open; + if (open) { + value = open["valueX"]; + } else { + value = dataItem.get("valueX", 0); + } + value += dl; + if (value < minSelection) { + index++; + } else { + break; + } + } else { + break; + } + } + } + return index; + } + }; + XYSeries.className = "XYSeries"; + XYSeries.classNames = Series.classNames.concat([XYSeries.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/Axis.js + var Axis = class extends Component { + constructor() { + super(...arguments); + this._series = []; + this._isPanning = false; + this.minorDataItems = []; + this.labelsContainer = this.children.push(Container.new(this._root, {})); + this.gridContainer = Container.new(this._root, { width: p100, height: p100 }); + this.topGridContainer = Container.new(this._root, { width: p100, height: p100 }); + this.bulletsContainer = this.children.push(Container.new(this._root, { isMeasured: false, width: p100, height: p100, position: "absolute" })); + this._rangesDirty = false; + this._panStart = 0; + this._panEnd = 1; + this._skipSync = false; + this.axisRanges = new List(); + this._seriesAxisRanges = []; + this._cursorPosition = -1; + this._seriesValuesDirty = false; + this._seriesAdded = false; + this.axisHeader = this.children.push(Container.new(this._root, { + themeTags: ["axis", "header"], + position: "absolute", + background: Rectangle.new(this._root, { + themeTags: ["header", "background"], + fill: this._root.interfaceColors.get("background") + }) + })); + this._bullets = {}; + } + _dispose() { + this.gridContainer.dispose(); + this.topGridContainer.dispose(); + this.bulletsContainer.dispose(); + this.labelsContainer.dispose(); + this.axisHeader.dispose(); + super._dispose(); + } + _afterNew() { + super._afterNew(); + this.setPrivate("updateScrollbar", true); + this._disposers.push(this.axisRanges.events.onAll((change) => { + if (change.type === "clear") { + each(change.oldValues, (dataItem) => { + dataItem.dispose(); + }); + } else if (change.type === "push") { + this._processAxisRange(change.newValue, ["range"]); + } else if (change.type === "setIndex") { + this._processAxisRange(change.newValue, ["range"]); + } else if (change.type === "insertIndex") { + this._processAxisRange(change.newValue, ["range"]); + } else if (change.type === "removeIndex") { + this.disposeDataItem(change.oldValue); + } else if (change.type === "moveIndex") { + this._processAxisRange(change.value, ["range"]); + } else { + throw new Error("Unknown IStreamEvent type"); + } + })); + const renderer = this.get("renderer"); + if (renderer) { + renderer.axis = this; + renderer.processAxis(); + } + this.children.push(renderer); + this._createGhostLabel(); + } + _createGhostLabel() { + const renderer = this.get("renderer"); + const ghostLabel = renderer.makeLabel(new DataItem(this, void 0, {}), []); + ghostLabel.adapters.disable("text"); + ghostLabel.setAll({ opacity: 0, tooltipText: void 0, tooltipHTML: void 0, interactive: false }); + ghostLabel.events.disable(); + this.ghostLabel = ghostLabel; + } + _updateFinals(_start, _end) { + } + /** + * Zooms the axis to relative locations. + * + * Both `start` and `end` are relative: 0 means start of the axis, 1 - end. + * + * @param start Relative start + * @param end Relative end + * @param duration Duration of the zoom animation in milliseconds + * @return Zoom animation + */ + zoom(start, end, duration, priority) { + if (this.get("zoomable", true)) { + this._updateFinals(start, end); + if (this.get("start") !== start || this.get("end") != end) { + let sAnimation = this._sAnimation; + let eAnimation = this._eAnimation; + if (start > end) { + [start, end] = [end, start]; + } + let maxDeviation = this.get("maxDeviation", 0.5) * Math.min(1, end - start); + if (start < -maxDeviation) { + start = -maxDeviation; + } + if (end > 1 + maxDeviation) { + end = 1 + maxDeviation; + } + let maxZoomFactor = this.getPrivate("maxZoomFactor", this.get("maxZoomFactor", 100)); + let maxZoomFactorReal = maxZoomFactor; + if (!isNumber(duration)) { + duration = this.get("interpolationDuration", 0); + } + if (!priority) { + priority = "end"; + } + if (end === 1 && start !== 0) { + if (start < this.get("start", 0)) { + priority = "start"; + } else { + priority = "end"; + } + } + if (start === 0 && end !== 1) { + if (end > this.get("end", 1)) { + priority = "end"; + } else { + priority = "start"; + } + } + let minZoomCount = this.get("minZoomCount", 0); + const dataItems = this.dataItems; + if (dataItems && dataItems.length < minZoomCount) { + minZoomCount = dataItems.length; + } + let maxZoomCount = this.get("maxZoomCount", Infinity); + if (isNumber(minZoomCount)) { + maxZoomFactor = maxZoomFactorReal / minZoomCount; + } + let minZoomFactor = 1; + if (isNumber(maxZoomCount)) { + minZoomFactor = maxZoomFactorReal / maxZoomCount; + } + if (start > end) { + [start, end] = [end, start]; + } + if (priority === "start") { + if (maxZoomCount > 0) { + if (1 / (end - start) < minZoomFactor) { + end = start + 1 / minZoomFactor; + } + } + if (1 / (end - start) > maxZoomFactor) { + end = start + 1 / maxZoomFactor; + } + if (end > 1 && end - start < 1 / maxZoomFactor) { + start = end - 1 / maxZoomFactor; + } + } else { + if (maxZoomCount > 0) { + if (1 / (end - start) < minZoomFactor) { + start = end - 1 / minZoomFactor; + } + } + if (1 / (end - start) > maxZoomFactor) { + start = end - 1 / maxZoomFactor; + } + if (start < 0 && end - start < 1 / maxZoomFactor) { + end = start + 1 / maxZoomFactor; + } + } + if (1 / (end - start) > maxZoomFactor) { + end = start + 1 / maxZoomFactor; + } + if (1 / (end - start) > maxZoomFactor) { + start = end - 1 / maxZoomFactor; + } + if (maxZoomCount != null && minZoomCount != null && (start == this.get("start") && end == this.get("end"))) { + const chart2 = this.chart; + if (chart2) { + chart2._handleAxisSelection(this, true); + } + } + if ((sAnimation && sAnimation.playing && sAnimation.to == start || this.get("start") == start) && (eAnimation && eAnimation.playing && eAnimation.to == end || this.get("end") == end)) { + return; + } + if (duration > 0) { + let easing = this.get("interpolationEasing"); + let sAnimation2, eAnimation2; + if (this.get("start") != start) { + sAnimation2 = this.animate({ key: "start", to: start, duration, easing }); + } + if (this.get("end") != end) { + eAnimation2 = this.animate({ key: "end", to: end, duration, easing }); + } + this._sAnimation = sAnimation2; + this._eAnimation = eAnimation2; + if (sAnimation2) { + return sAnimation2; + } else if (eAnimation2) { + return eAnimation2; + } + } else { + this.set("start", start); + this.set("end", end); + this.root.events.once("frameended", () => { + this.markDirtyKey("start"); + }); + } + } else { + if (this._sAnimation) { + this._sAnimation.stop(); + } + if (this._eAnimation) { + this._eAnimation.stop(); + } + } + } + } + /** + * A list of series using this axis. + * + * @return Series + */ + get series() { + return this._series; + } + _processAxisRange(dataItem, themeTags) { + dataItem.setRaw("isRange", true); + this._createAssets(dataItem, themeTags); + this._rangesDirty = true; + this._prepareDataItem(dataItem); + const above = dataItem.get("above"); + const container = this.topGridContainer; + const grid = dataItem.get("grid"); + if (above && grid) { + container.children.moveValue(grid); + } + const fill = dataItem.get("axisFill"); + if (above && fill) { + container.children.moveValue(fill); + } + } + _prepareDataItem(_dataItem, _index) { + } + /** + * @ignore + */ + markDirtyExtremes() { + } + /** + * @ignore + */ + markDirtySelectionExtremes() { + } + _calculateTotals() { + } + _updateAxisRanges() { + this._bullets = {}; + this.axisRanges.each((axisRange) => { + this._prepareDataItem(axisRange); + }); + each(this._seriesAxisRanges, (axisRange) => { + this._prepareDataItem(axisRange); + }); + } + _prepareChildren() { + super._prepareChildren(); + const ghostLabel = this.ghostLabel; + if (ghostLabel) { + if (this.get("fixAxisSize")) { + ghostLabel.set("visible", true); + } else { + ghostLabel.set("visible", false); + } + } + if (this.isDirty("start") || this.isDirty("end")) { + const chart2 = this.chart; + if (chart2) { + chart2._updateCursor(); + } + let start = this.get("start", 0); + let end = this.get("end", 1); + let maxDeviation = this.get("maxDeviation", 0.5) * Math.min(1, end - start); + if (start < -maxDeviation) { + let delta = start + maxDeviation; + start = -maxDeviation; + this.setRaw("start", start); + if (this.isDirty("end")) { + this.setRaw("end", end - delta); + } + } + if (end > 1 + maxDeviation) { + let delta = end - 1 - maxDeviation; + end = 1 + maxDeviation; + this.setRaw("end", end); + if (this.isDirty("start")) { + this.setRaw("start", start - delta); + } + } + } + const renderer = this.get("renderer"); + renderer._start = this.get("start"); + renderer._end = this.get("end"); + renderer._inversed = renderer.get("inversed", false); + renderer._axisLength = renderer.axisLength() / (renderer._end - renderer._start); + renderer._updateLC(); + if (this.isDirty("tooltip")) { + const tooltip = this.get("tooltip"); + if (tooltip) { + const rendererTags = renderer.get("themeTags"); + tooltip.addTag("axis"); + tooltip.addTag(this.className.toLowerCase()); + tooltip._applyThemes(); + if (rendererTags) { + tooltip.set("themeTags", mergeTags(tooltip.get("themeTags"), rendererTags)); + tooltip.label._applyThemes(); + } + } + } + } + _updateTooltipBounds() { + const tooltip = this.get("tooltip"); + if (tooltip) { + this.get("renderer").updateTooltipBounds(tooltip); + } + } + _updateBounds() { + super._updateBounds(); + this._updateTooltipBounds(); + } + /** + * @ignore + */ + processChart(chart2) { + this.chart = chart2; + const renderer = this.get("renderer"); + renderer.chart = chart2; + chart2.gridContainer.children.push(this.gridContainer); + chart2.topGridContainer.children.push(this.topGridContainer); + chart2.axisHeadersContainer.children.push(this.axisHeader); + this.on("start", () => { + chart2._handleAxisSelection(this); + }); + this.on("end", () => { + chart2._handleAxisSelection(this); + }); + chart2.plotContainer.onPrivate("width", () => { + this.markDirtySize(); + }); + chart2.plotContainer.onPrivate("height", () => { + this.markDirtySize(); + }); + chart2.processAxis(this); + } + /** + * @ignore + */ + hideDataItem(dataItem) { + this._toggleFHDataItem(dataItem, true); + return super.hideDataItem(dataItem); + } + /** + * @ignore + */ + showDataItem(dataItem) { + this._toggleFHDataItem(dataItem, false); + return super.showDataItem(dataItem); + } + _toggleFHDataItem(dataItem, forceHidden) { + const fh = "forceHidden"; + const label = dataItem.get("label"); + if (label) { + label.set(fh, forceHidden); + } + const grid = dataItem.get("grid"); + if (grid) { + grid.set(fh, forceHidden); + } + const tick = dataItem.get("tick"); + if (tick) { + tick.set(fh, forceHidden); + } + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + axisFill.set(fh, forceHidden); + } + const bullet = dataItem.get("bullet"); + if (bullet) { + const sprite = bullet.get("sprite"); + if (sprite) { + sprite.set(fh, forceHidden); + } + } + } + _toggleDataItem(dataItem, visible) { + const label = dataItem.get("label"); + const v = "visible"; + if (label) { + label.setPrivate(v, visible); + } + const grid = dataItem.get("grid"); + if (grid) { + grid.setPrivate(v, visible); + } + const tick = dataItem.get("tick"); + if (tick) { + tick.setPrivate(v, visible); + } + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + axisFill.setPrivate(v, visible); + } + const bullet = dataItem.get("bullet"); + if (bullet) { + const sprite = bullet.get("sprite"); + if (sprite) { + sprite.setPrivate(v, visible); + } + } + } + _createAssets(dataItem, tags, minor) { + var _a, _b, _c; + const renderer = this.get("renderer"); + let m = "minor"; + const label = dataItem.get("label"); + if (!label) { + renderer.makeLabel(dataItem, tags); + } else { + let themeTags = label.get("themeTags"); + let remove2 = false; + if (minor) { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) == -1) { + remove2 = true; + } + } else { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) != -1) { + remove2 = true; + } + } + if (remove2) { + (_a = label.parent) === null || _a === void 0 ? void 0 : _a.children.removeValue(label); + renderer.makeLabel(dataItem, tags); + label.dispose(); + renderer.labels.removeValue(label); + } + } + const grid = dataItem.get("grid"); + if (!grid) { + renderer.makeGrid(dataItem, tags); + } else { + let themeTags = grid.get("themeTags"); + let remove2 = false; + if (minor) { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) == -1) { + remove2 = true; + } + } else { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) != -1) { + remove2 = true; + } + } + if (remove2) { + (_b = grid.parent) === null || _b === void 0 ? void 0 : _b.children.removeValue(grid); + renderer.makeGrid(dataItem, tags); + grid.dispose(); + renderer.grid.removeValue(grid); + } + } + const tick = dataItem.get("tick"); + if (!tick) { + renderer.makeTick(dataItem, tags); + } else { + let remove2 = false; + let themeTags = tick.get("themeTags"); + if (minor) { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) == -1) { + remove2 = true; + } + } else { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) != -1) { + remove2 = true; + } + } + if (remove2) { + (_c = tick.parent) === null || _c === void 0 ? void 0 : _c.children.removeValue(tick); + renderer.makeTick(dataItem, tags); + tick.dispose(); + renderer.ticks.removeValue(tick); + } + } + if (!minor && !dataItem.get("axisFill")) { + renderer.makeAxisFill(dataItem, tags); + } else if (minor && !dataItem.get("axisFill") && this.get("minorAxisFillsEnabled")) { + renderer.makeAxisFill(dataItem, tags); + } + this._processBullet(dataItem); + } + _processBullet(dataItem) { + let bullet = dataItem.get("bullet"); + let axisBullet = this.get("bullet"); + if (!bullet && axisBullet && !dataItem.get("isRange")) { + bullet = axisBullet(this._root, this, dataItem); + } + if (bullet) { + bullet.axis = this; + const sprite = bullet.get("sprite"); + if (sprite) { + sprite._setDataItem(dataItem); + dataItem.setRaw("bullet", bullet); + if (!sprite.parent) { + this.bulletsContainer.children.push(sprite); + } + } + } + } + _afterChanged() { + super._afterChanged(); + const chart2 = this.chart; + if (chart2) { + chart2._updateChartLayout(); + chart2.axisHeadersContainer.markDirtySize(); + } + this.get("renderer")._updatePositions(); + this._seriesAdded = false; + } + /** + * @ignore + */ + disposeDataItem(dataItem) { + super.disposeDataItem(dataItem); + const renderer = this.get("renderer"); + const label = dataItem.get("label"); + if (label) { + renderer.labels.removeValue(label); + label.dispose(); + } + const tick = dataItem.get("tick"); + if (tick) { + renderer.ticks.removeValue(tick); + tick.dispose(); + } + const grid = dataItem.get("grid"); + if (grid) { + renderer.grid.removeValue(grid); + grid.dispose(); + } + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + renderer.axisFills.removeValue(axisFill); + axisFill.dispose(); + } + const bullet = dataItem.get("bullet"); + if (bullet) { + bullet.dispose(); + } + } + _updateGhost() { + this.setPrivate("cellWidth", this.getCellWidthPosition() * this.get("renderer").axisLength()); + const ghostLabel = this.ghostLabel; + if (ghostLabel) { + if (!ghostLabel.isHidden()) { + const bounds = ghostLabel.localBounds(); + const gWidth = Math.ceil(bounds.right - bounds.left); + let text = ghostLabel.get("text"); + each(this.dataItems, (dataItem) => { + const label = dataItem.get("label"); + if (label && !label.isHidden()) { + const bounds2 = label.localBounds(); + const w = Math.ceil(bounds2.right - bounds2.left); + if (w > gWidth) { + text = label.text._getText(); + } + } + }); + ghostLabel.set("text", text); + } + let start = this.get("start", 0); + let end = this.get("end", 1); + this.get("renderer").updateLabel(ghostLabel, start + (end - start) * 0.5); + } + } + _handleCursorPosition(position, snapToSeries) { + const renderer = this.get("renderer"); + position = renderer.toAxisPosition(position); + this._cursorPosition = position; + this._snapToSeries = snapToSeries; + this.updateTooltip(); + } + /** + * Can be called when axis zoom changes and you need to update tooltip + * position. + */ + updateTooltip() { + const snapToSeries = this._snapToSeries; + let position = this._cursorPosition; + const tooltip = this.get("tooltip"); + const renderer = this.get("renderer"); + if (isNumber(position)) { + each(this.series, (series2) => { + if (series2.get("baseAxis") === this) { + const dataItem = this.getSeriesItem(series2, position, this.get("tooltipLocation")); + if (snapToSeries && snapToSeries.indexOf(series2) != -1) { + series2.updateLegendMarker(dataItem); + series2.updateLegendValue(dataItem); + series2._settings.tooltipDataItem = dataItem; + } else { + series2.showDataItemTooltip(dataItem); + series2.setRaw("tooltipDataItem", dataItem); + } + } + }); + if (this.get("snapTooltip")) { + position = this.roundAxisPosition(position, this.get("tooltipLocation", 0.5)); + } + this.setPrivateRaw("tooltipPosition", position); + if (tooltip) { + renderer.updateTooltipBounds(tooltip); + if (!isNaN2(position)) { + this._updateTooltipText(tooltip, position); + renderer.positionTooltip(tooltip, position); + if (position < this.get("start", 0) || position > this.get("end", 1)) { + tooltip.hide(0); + } else { + tooltip.show(0); + } + } else { + tooltip.hide(0); + } + } + } + } + _updateTooltipText(tooltip, position) { + tooltip.label.set("text", this.getTooltipText(position)); + } + /** + * @ignore + */ + roundAxisPosition(position, _location) { + return position; + } + _handleSeriesRemoved() { + } + /** + * @ignore + */ + handleCursorShow() { + let tooltip = this.get("tooltip"); + if (tooltip) { + tooltip.show(); + } + } + /** + * @ignore + */ + handleCursorHide() { + let tooltip = this.get("tooltip"); + if (tooltip) { + tooltip.hide(); + } + } + /** + * @ignore + */ + processSeriesDataItem(_dataItem, _fields) { + } + _clearDirty() { + super._clearDirty(); + this._sizeDirty = false; + this._rangesDirty = false; + } + /** + * Converts pixel coordinate to a relative position on axis. + * + * @param coordinate Coordinate + * @return Relative position + */ + coordinateToPosition(coordinate) { + const renderer = this.get("renderer"); + return renderer.toAxisPosition(coordinate / renderer.axisLength()); + } + /** + * Converts relative position of the plot area to relative position of the + * axis with zoom taken into account. + * + * @param position Position + * @return Relative position + */ + toAxisPosition(position) { + return this.get("renderer").toAxisPosition(position); + } + /** + * Converts relative position of the axis to a global position taking current + * zoom into account (opposite to what `toAxisPosition` does). + * + * @since 5.4.2 + * @param position Position + * @return Global position + */ + toGlobalPosition(position) { + return this.get("renderer").toGlobalPosition(position); + } + /** + * Adjusts position with inversed taken into account. + * + * @ignore + */ + fixPosition(position) { + return this.get("renderer").fixPosition(position); + } + /** + * @ignore + */ + shouldGap(_dataItem, _nextItem, _autoGapCount, _fieldName) { + return false; + } + /** + * Creates and returns an axis range object. + * + * @see {@link https://www.amcharts.com/docs/v5/charts/xy-chart/axes/axis-ranges/} for more info + * @param axisDataItem Axis data item + * @return Axis range + */ + createAxisRange(axisDataItem) { + return this.axisRanges.push(axisDataItem); + } + /** + * @ignore + */ + _groupSeriesData(_series) { + } + /** + * Returns relative position between two grid lines of the axis. + * + * @return Position + */ + getCellWidthPosition() { + return 0.05; + } + }; + Axis.className = "Axis"; + Axis.classNames = Component.classNames.concat([Axis.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/ValueAxis.js + var ValueAxis = class extends Axis { + constructor() { + super(...arguments); + this._dirtyExtremes = false; + this._dirtySelectionExtremes = false; + this._dseHandled = false; + this._deltaMinMax = 1; + this._baseValue = 0; + this._minLogAdjusted = 1; + } + /** + * @ignore + */ + markDirtyExtremes() { + this._dirtyExtremes = true; + this.markDirty(); + } + /** + * @ignore + */ + markDirtySelectionExtremes() { + this._dirtySelectionExtremes = true; + this.markDirty(); + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["axis"]); + this.setPrivateRaw("name", "value"); + this.addTag("value"); + super._afterNew(); + } + _prepareChildren() { + var _a; + super._prepareChildren(); + if (this.isDirty("syncWithAxis")) { + let previousValue = this._prevSettings.syncWithAxis; + if (previousValue) { + if (this._syncDp) { + this._syncDp.dispose(); + } + } + let syncWithAxis = this.get("syncWithAxis"); + if (syncWithAxis) { + this._syncDp = new MultiDisposer([ + syncWithAxis.onPrivate("selectionMinFinal", () => { + this._dirtySelectionExtremes = true; + }), + syncWithAxis.onPrivate("selectionMaxFinal", () => { + this._dirtySelectionExtremes = true; + }) + ]); + } + } + let someDirty = false; + if (this.isDirty("min") || this.isDirty("max") || this.isDirty("maxPrecision") || this.isDirty("numberFormat")) { + someDirty = true; + (_a = this.ghostLabel) === null || _a === void 0 ? void 0 : _a.set("text", ""); + } + if (this._sizeDirty || this._dirtyExtremes || this._valuesDirty || someDirty || this.isPrivateDirty("width") || this.isPrivateDirty("height") || this.isDirty("extraMin") || this.isDirty("extraMax") || this.isDirty("logarithmic") || this.isDirty("treatZeroAs") || this.isDirty("baseValue") || this.isDirty("strictMinMax") || this.isDirty("strictMinMaxSelection")) { + this._getMinMax(); + this._dirtyExtremes = false; + } + this._handleSizeDirty(); + if (this._dirtySelectionExtremes && !this._isPanning && this.get("autoZoom", true)) { + const chart2 = this.chart; + let getMM = false; + if (chart2) { + const letter = this.get("renderer").getPrivate("letter"); + if (letter == "Y") { + chart2.xAxes.each((axis) => { + if (axis.className != "ValueAxis") { + getMM = true; + } + }); + } else if (letter == "X") { + chart2.yAxes.each((axis) => { + if (axis.className != "ValueAxis") { + getMM = true; + } + }); + } + } + if (getMM) { + this._getSelectionMinMax(); + } + this._dirtySelectionExtremes = false; + } + this._groupData(); + if (this._sizeDirty || this._valuesDirty || this.isDirty("start") || this.isDirty("end") || this.isPrivateDirty("min") || this.isPrivateDirty("selectionMax") || this.isPrivateDirty("selectionMin") || this.isPrivateDirty("max") || this.isPrivateDirty("step") || this.isPrivateDirty("width") || this.isPrivateDirty("height") || this.isDirty("logarithmic")) { + this._handleRangeChange(); + this._prepareAxisItems(); + this._updateAxisRanges(); + } + this._baseValue = this.baseValue(); + } + _handleSizeDirty() { + if (this._sizeDirty && !this._dseHandled) { + this._dirtySelectionExtremes = true; + this._dseHandled = true; + if (this.getPrivate("selectionMinFinal") != this.getPrivate("selectionMin") || this.getPrivate("selectionMaxFinal") != this.getPrivate("selectionMax")) { + this._dirtySelectionExtremes = false; + } + } + } + _clearDirty() { + super._clearDirty(); + this._dseHandled = false; + } + _groupData() { + } + _formatText(value) { + const numberFormat = this.get("numberFormat"); + const formatter = this.getNumberFormatter(); + let text = ""; + if (numberFormat) { + text = formatter.format(value, numberFormat); + } else { + text = formatter.format(value, void 0, this.getPrivate("stepDecimalPlaces")); + } + return text; + } + _prepareAxisItems() { + const min2 = this.getPrivate("min"); + const max2 = this.getPrivate("max"); + if (isNumber(min2) && isNumber(max2)) { + const logarithmic = this.get("logarithmic"); + const step = this.getPrivate("step"); + const selectionMin = this.getPrivate("selectionMin"); + const selectionMax = this.getPrivate("selectionMax") + step; + let value = selectionMin - step; + let differencePower = 1; + let minLog = min2; + if (logarithmic) { + value = this._minLogAdjusted; + if (value < selectionMin) { + while (value < selectionMin) { + value += step; + } + } + minLog = value; + if (minLog <= 0) { + let minRealLog = this._minRealLog; + if (!isNumber(minRealLog)) { + minRealLog = 1; + } + minLog = Math.pow(10, Math.log(minRealLog) * Math.LOG10E); + if (step < 1) { + if (isNumber(this._minRealLog)) { + minLog = this._minRealLog; + } else { + minLog = Math.pow(10, -50); + } + } + } + differencePower = Math.log(selectionMax - step) * Math.LOG10E - Math.log(minLog) * Math.LOG10E; + if (differencePower > 2) { + value = Math.pow(10, Math.log(minLog) * Math.LOG10E - 50); + } + } + const renderer = this.get("renderer"); + const minorLabelsEnabled = renderer.get("minorLabelsEnabled"); + const minorGridEnabled = renderer.get("minorGridEnabled", minorLabelsEnabled); + let stepPower = Math.pow(10, Math.floor(Math.log(Math.abs(step)) * Math.LOG10E)); + const stepAdjusted = Math.round(step / stepPower); + let minorGridCount = 2; + if (round(stepAdjusted / 5, 10) % 1 == 0) { + minorGridCount = 5; + } + if (round(stepAdjusted / 10, 10) % 1 == 0) { + minorGridCount = 10; + } + let minorStep = step / minorGridCount; + let i = 0; + let m = 0; + let previous = -Infinity; + const gridCount = this.get("renderer").gridCount(); + while (value < selectionMax) { + let dataItem; + if (this.dataItems.length < i + 1) { + dataItem = new DataItem(this, void 0, {}); + this._dataItems.push(dataItem); + this.processDataItem(dataItem); + } else { + dataItem = this.dataItems[i]; + } + this._createAssets(dataItem, []); + this._toggleDataItem(dataItem, true); + dataItem.setRaw("value", value); + const label = dataItem.get("label"); + if (label) { + label.set("text", this._formatText(value)); + } + this._prepareDataItem(dataItem); + let nextValue = value; + if (!logarithmic) { + nextValue += step; + } else { + if (differencePower > 2) { + const targetGridCount = Math.max(1, gridCount); + const x2 = Math.max(1, Math.ceil(differencePower / targetGridCount)); + const exponent = Math.log(minLog) * Math.LOG10E + (i + 1) * x2 - 50; + nextValue = Math.pow(10, exponent); + } else { + nextValue += step; + } + } + if (minorGridEnabled) { + let minorValue = value + minorStep; + if (logarithmic) { + if (differencePower > 2) { + let minorMinMaxStep = this._adjustMinMax(value, nextValue, 10); + minorStep = minorMinMaxStep.step; + } + minorValue = value + minorStep; + } + while (minorValue < nextValue - step * 1e-11) { + let minorDataItem; + if (this.minorDataItems.length < m + 1) { + minorDataItem = new DataItem(this, void 0, {}); + this.minorDataItems.push(minorDataItem); + this.processDataItem(minorDataItem); + } else { + minorDataItem = this.minorDataItems[m]; + } + this._createAssets(minorDataItem, ["minor"], true); + this._toggleDataItem(minorDataItem, true); + minorDataItem.setRaw("value", minorValue); + const minorLabel = minorDataItem.get("label"); + if (minorLabel) { + if (minorLabelsEnabled) { + minorLabel.set("text", this._formatText(minorValue)); + } else { + minorLabel.setPrivate("visible", false); + } + } + this._prepareDataItem(minorDataItem); + minorValue += minorStep; + m++; + } + } + value = nextValue; + if (previous == value) { + break; + } + let stepPower2 = Math.pow(10, Math.floor(Math.log(Math.abs(step)) * Math.LOG10E)); + if (stepPower2 < 1 && !logarithmic) { + let decCount = Math.round(Math.abs(Math.log(Math.abs(stepPower2)) * Math.LOG10E)) + 2; + value = round(value, decCount); + } + i++; + if (logarithmic && differencePower <= 2) { + if (value - step < step) { + value = step; + } + } + previous = value; + } + for (let j = i; j < this.dataItems.length; j++) { + this._toggleDataItem(this.dataItems[j], false); + } + for (let j = m; j < this.minorDataItems.length; j++) { + this._toggleDataItem(this.minorDataItems[j], false); + } + each(this.series, (series2) => { + if (series2.inited) { + series2._markDirtyAxes(); + } + }); + this._updateGhost(); + } + } + _prepareDataItem(dataItem, count) { + let renderer = this.get("renderer"); + let value = dataItem.get("value"); + let endValue = dataItem.get("endValue"); + let position = this.valueToPosition(value); + let endPosition = position; + let fillEndPosition = this.valueToPosition(value + this.getPrivate("step")); + if (isNumber(endValue)) { + endPosition = this.valueToPosition(endValue); + fillEndPosition = endPosition; + } + if (dataItem.get("isRange")) { + if (endValue == null) { + fillEndPosition = position; + } + } + let labelEndPosition = endPosition; + let labelEndValue = dataItem.get("labelEndValue"); + if (labelEndValue != null) { + labelEndPosition = this.valueToPosition(labelEndValue); + } + renderer.updateLabel(dataItem.get("label"), position, labelEndPosition, count); + const grid = dataItem.get("grid"); + renderer.updateGrid(grid, position, endPosition); + if (grid) { + if (value == this.get("baseValue", 0)) { + grid.addTag("base"); + grid._applyThemes(); + } else if (grid.hasTag("base")) { + grid.removeTag("base"); + grid._applyThemes(); + } + } + renderer.updateTick(dataItem.get("tick"), position, labelEndPosition, count); + renderer.updateFill(dataItem.get("axisFill"), position, fillEndPosition); + this._processBullet(dataItem); + renderer.updateBullet(dataItem.get("bullet"), position, endPosition); + if (!dataItem.get("isRange")) { + const fillRule = this.get("fillRule"); + if (fillRule) { + fillRule(dataItem); + } + } + } + _handleRangeChange() { + let selectionMin = this.positionToValue(this.get("start", 0)); + let selectionMax = this.positionToValue(this.get("end", 1)); + const gridCount = this.get("renderer").gridCount(); + let minMaxStep = this._adjustMinMax(selectionMin, selectionMax, gridCount, true); + let stepDecimalPlaces = decimalPlaces(minMaxStep.step); + this.setPrivateRaw("stepDecimalPlaces", stepDecimalPlaces); + selectionMin = round(selectionMin, stepDecimalPlaces); + selectionMax = round(selectionMax, stepDecimalPlaces); + minMaxStep = this._adjustMinMax(selectionMin, selectionMax, gridCount, true); + let step = minMaxStep.step; + selectionMin = minMaxStep.min; + selectionMax = minMaxStep.max; + if (this.getPrivate("selectionMin") !== selectionMin || this.getPrivate("selectionMax") !== selectionMax || this.getPrivate("step") !== step) { + this.setPrivateRaw("selectionMin", selectionMin); + this.setPrivateRaw("selectionMax", selectionMax); + this.setPrivateRaw("step", step); + } + } + /** + * Converts a relative position to a corresponding numeric value from axis + * scale. + * + * @param position Relative position + * @return Value + */ + positionToValue(position) { + const min2 = this.getPrivate("min"); + const max2 = this.getPrivate("max"); + if (!this.get("logarithmic")) { + return position * (max2 - min2) + min2; + } else { + return Math.pow(Math.E, (position * (Math.log(max2) * Math.LOG10E - Math.log(min2) * Math.LOG10E) + Math.log(min2) * Math.LOG10E) / Math.LOG10E); + } + } + /** + * Convers value to a relative position on axis. + * + * @param value Value + * @return Relative position + */ + valueToPosition(value) { + const min2 = this.getPrivate("min"); + const max2 = this.getPrivate("max"); + if (!this.get("logarithmic")) { + return (value - min2) / (max2 - min2); + } else { + if (value <= 0) { + let treatZeroAs = this.get("treatZeroAs"); + if (isNumber(treatZeroAs)) { + value = treatZeroAs; + } + } + return (Math.log(value) * Math.LOG10E - Math.log(min2) * Math.LOG10E) / (Math.log(max2) * Math.LOG10E - Math.log(min2) * Math.LOG10E); + } + } + /** + * @ignore + */ + valueToFinalPosition(value) { + const min2 = this.getPrivate("minFinal"); + const max2 = this.getPrivate("maxFinal"); + if (!this.get("logarithmic")) { + return (value - min2) / (max2 - min2); + } else { + if (value <= 0) { + let treatZeroAs = this.get("treatZeroAs"); + if (isNumber(treatZeroAs)) { + value = treatZeroAs; + } + } + return (Math.log(value) * Math.LOG10E - Math.log(min2) * Math.LOG10E) / (Math.log(max2) * Math.LOG10E - Math.log(min2) * Math.LOG10E); + } + } + /** + * Returns X coordinate in pixels corresponding to specific value. + * + * @param value Numeric value + * @param location Location + * @param baseValue Base value + * @return X coordinate + */ + getX(value, location, baseValue) { + value = baseValue + (value - baseValue) * location; + const position = this.valueToPosition(value); + return this._settings.renderer.positionToCoordinate(position); + } + /** + * Returns X coordinate in pixels corresponding to specific value. + * + * @param value Numeric value + * @param location Location + * @param baseValue Base value + * @return X coordinate + */ + getY(value, location, baseValue) { + value = baseValue + (value - baseValue) * location; + const position = this.valueToPosition(value); + return this._settings.renderer.positionToCoordinate(position); + } + /** + * @ignore + */ + getDataItemCoordinateX(dataItem, field, _cellLocation, axisLocation) { + return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(dataItem, field, _cellLocation, axisLocation)); + } + /** + * @ignore + */ + getDataItemPositionX(dataItem, field, _cellLocation, axisLocation) { + let value = dataItem.get(field); + const stackToItem = dataItem.get("stackToItemX"); + if (stackToItem) { + const series2 = dataItem.component; + value = value * axisLocation + series2.getStackedXValueWorking(dataItem, field); + } else { + value = this._baseValue + (value - this._baseValue) * axisLocation; + } + return this.valueToPosition(value); + } + /** + * @ignore + */ + getDataItemCoordinateY(dataItem, field, _cellLocation, axisLocation) { + return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(dataItem, field, _cellLocation, axisLocation)); + } + /** + * @ignore + */ + getDataItemPositionY(dataItem, field, _cellLocation, axisLocation) { + let value = dataItem.get(field); + const stackToItem = dataItem.get("stackToItemY"); + if (stackToItem) { + const series2 = dataItem.component; + value = value * axisLocation + series2.getStackedYValueWorking(dataItem, field); + } else { + value = this._baseValue + (value - this._baseValue) * axisLocation; + } + return this.valueToPosition(value); + } + /** + * Returns relative position of axis' `baseValue`. + * + * @return Base value position + */ + basePosition() { + return this.valueToPosition(this.baseValue()); + } + /** + * Base value of the [[ValueAxis]], which determines positive and negative + * values. + * + * @return Base value + */ + baseValue() { + const min2 = Math.min(this.getPrivate("minFinal", -Infinity), this.getPrivate("selectionMin", -Infinity)); + const max2 = Math.max(this.getPrivate("maxFinal", Infinity), this.getPrivate("selectionMax", Infinity)); + let baseValue = this.get("baseValue", 0); + if (baseValue < min2) { + baseValue = min2; + } + if (baseValue > max2) { + baseValue = max2; + } + return baseValue; + } + /** + * @ignore + */ + cellEndValue(value) { + return value; + } + fixSmallStep(step) { + if (1 + step === 1) { + step *= 2; + return this.fixSmallStep(step); + } + return step; + } + _fixMin(min2) { + return min2; + } + _fixMax(max2) { + return max2; + } + _calculateTotals() { + if (this.get("calculateTotals")) { + let series2 = this.series[0]; + if (series2) { + let startIndex = series2.startIndex(); + if (series2.dataItems.length > 0) { + if (startIndex > 0) { + startIndex--; + } + let endIndex = series2.endIndex(); + if (endIndex < series2.dataItems.length) { + endIndex++; + } + let field; + let vc; + if (series2.get("yAxis") == this) { + field = "valueY"; + vc = "vcy"; + } else if (series2.get("xAxis") == this) { + field = "valueX"; + vc = "vcx"; + } + let fieldWorking = field + "Working"; + if (field) { + for (let i = startIndex; i < endIndex; i++) { + let sum = 0; + let total = 0; + each(this.series, (series3) => { + if (!series3.get("excludeFromTotal")) { + let dataItem = series3.dataItems[i]; + if (dataItem) { + let value = dataItem.get(fieldWorking) * series3.get(vc); + if (!isNaN2(value)) { + sum += value; + total += Math.abs(value); + } + } + } + }); + each(this.series, (series3) => { + if (!series3.get("excludeFromTotal")) { + let dataItem = series3.dataItems[i]; + if (dataItem) { + let value = dataItem.get(fieldWorking) * series3.get(vc); + if (!isNaN2(value)) { + dataItem.set(field + "Total", total); + dataItem.set(field + "Sum", sum); + let totalPercent = value / total * 100; + if (total == 0) { + totalPercent = 0; + } + dataItem.set(field + "TotalPercent", totalPercent); + } + } + } + }); + } + } + } + } + } + } + _getSelectionMinMax() { + const min2 = this.getPrivate("minFinal"); + const max2 = this.getPrivate("maxFinal"); + const minDefined = this.get("min"); + const maxDefined = this.get("max"); + let extraMin = this.get("extraMin", 0); + let extraMax = this.get("extraMax", 0); + if (this.get("logarithmic")) { + if (this.get("extraMin") == null) { + extraMin = 0.1; + } + if (this.get("extraMax") == null) { + extraMax = 0.2; + } + } + const gridCount = this.get("renderer").gridCount(); + const selectionStrictMinMax = this.get("strictMinMaxSelection"); + let strictMinMax = this.get("strictMinMax"); + if (isNumber(min2) && isNumber(max2)) { + let selectionMin = max2; + let selectionMax = min2; + each(this.series, (series2) => { + if (!series2.get("ignoreMinMax")) { + let seriesMin; + let seriesMax; + const outOfSelection = series2.getPrivate("outOfSelection"); + if (series2.get("xAxis") === this) { + if (!outOfSelection) { + let minX = series2.getPrivate("minX"); + let maxX = series2.getPrivate("maxX"); + if (series2.startIndex() != 0 || series2.endIndex() != series2.dataItems.length) { + minX = void 0; + maxX = void 0; + } + seriesMin = series2.getPrivate("selectionMinX", minX); + seriesMax = series2.getPrivate("selectionMaxX", maxX); + } + } else if (series2.get("yAxis") === this) { + if (!outOfSelection) { + let minY = series2.getPrivate("minY"); + let maxY = series2.getPrivate("maxY"); + if (series2.startIndex() != 0 || series2.endIndex() != series2.dataItems.length) { + minY = void 0; + maxY = void 0; + } + seriesMin = series2.getPrivate("selectionMinY", minY); + seriesMax = series2.getPrivate("selectionMaxY", maxY); + } + } + if (!series2.isHidden() && !series2.isShowing()) { + if (isNumber(seriesMin)) { + selectionMin = Math.min(selectionMin, seriesMin); + } + if (isNumber(seriesMax)) { + selectionMax = Math.max(selectionMax, seriesMax); + } + } + } + }); + this.axisRanges.each((range2) => { + if (range2.get("affectsMinMax")) { + let value = range2.get("value"); + if (value != null) { + selectionMin = Math.min(selectionMin, value); + selectionMax = Math.max(selectionMax, value); + } + value = range2.get("endValue"); + if (value != null) { + selectionMin = Math.min(selectionMin, value); + selectionMax = Math.max(selectionMax, value); + } + } + }); + if (selectionMin > selectionMax) { + [selectionMin, selectionMax] = [selectionMax, selectionMin]; + } + if (isNumber(minDefined)) { + if (strictMinMax) { + selectionMin = minDefined; + } else { + selectionMin = min2; + } + } else if (strictMinMax) { + if (isNumber(this._minReal)) { + selectionMin = this._minReal; + } + } + if (isNumber(maxDefined)) { + if (strictMinMax) { + selectionMax = maxDefined; + } else { + selectionMax = max2; + } + } else if (strictMinMax) { + if (isNumber(this._maxReal)) { + selectionMax = this._maxReal; + } + } + if (selectionMin === selectionMax) { + let smin = selectionMin; + selectionMin -= this._deltaMinMax; + selectionMax += this._deltaMinMax; + if (selectionMin < min2) { + let d = smin - min2; + if (d == 0) { + d = this._deltaMinMax; + } + selectionMin = smin - d; + selectionMax = smin + d; + strictMinMax = true; + } + let minMaxStep2 = this._adjustMinMax(selectionMin, selectionMax, gridCount, strictMinMax); + selectionMin = minMaxStep2.min; + selectionMax = minMaxStep2.max; + } + let selectionMinReal = selectionMin; + let selectionMaxReal = selectionMax; + let delta = selectionMax - selectionMin; + selectionMin -= delta * extraMin; + selectionMax += delta * extraMax; + let minMaxStep = this._adjustMinMax(selectionMin, selectionMax, gridCount); + selectionMin = minMaxStep.min; + selectionMax = minMaxStep.max; + selectionMin = fitToRange(selectionMin, min2, max2); + selectionMax = fitToRange(selectionMax, min2, max2); + minMaxStep = this._adjustMinMax(selectionMin, selectionMax, gridCount, true); + if (!strictMinMax) { + selectionMin = minMaxStep.min; + selectionMax = minMaxStep.max; + } + const syncWithAxis = this.get("syncWithAxis"); + if (syncWithAxis) { + minMaxStep = this._syncAxes(selectionMin, selectionMax, minMaxStep.step, syncWithAxis.getPrivate("selectionMinFinal", syncWithAxis.getPrivate("minFinal", 0)), syncWithAxis.getPrivate("selectionMaxFinal", syncWithAxis.getPrivate("maxFinal", 1)), syncWithAxis.getPrivate("selectionStepFinal", syncWithAxis.getPrivate("step", 1))); + if (minMaxStep.min < min2) { + minMaxStep.min = min2; + } + if (minMaxStep.max > max2) { + minMaxStep.max = max2; + } + selectionMin = minMaxStep.min; + selectionMax = minMaxStep.max; + } + if (strictMinMax) { + if (isNumber(minDefined)) { + selectionMin = Math.max(selectionMin, minDefined); + } + if (isNumber(maxDefined)) { + selectionMax = Math.min(selectionMax, maxDefined); + } + } + if (selectionStrictMinMax) { + selectionMin = selectionMinReal - (selectionMaxReal - selectionMinReal) * extraMin; + selectionMax = selectionMaxReal + (selectionMaxReal - selectionMinReal) * extraMax; + } + if (strictMinMax) { + if (isNumber(minDefined)) { + selectionMin = minDefined; + } else { + selectionMin = selectionMinReal; + } + if (isNumber(maxDefined)) { + selectionMax = maxDefined; + } else { + selectionMax = selectionMaxReal; + } + if (selectionMax - selectionMin <= 1e-8) { + selectionMin -= this._deltaMinMax; + selectionMax += this._deltaMinMax; + } + let delta2 = selectionMax - selectionMin; + selectionMin -= delta2 * extraMin; + selectionMax += delta2 * extraMax; + } + if (this.get("logarithmic")) { + if (selectionMin <= 0) { + selectionMin = selectionMinReal * (1 - Math.min(extraMin, 0.99)); + } + if (selectionMin < min2) { + selectionMin = min2; + } + if (selectionMax > max2) { + selectionMax = max2; + } + } + let len = Math.min(20, Math.ceil(Math.log(this.getPrivate("maxZoomFactor", 100) + 1) / Math.LN10) + 2); + let start = round(this.valueToFinalPosition(selectionMin), len); + let end = round(this.valueToFinalPosition(selectionMax), len); + this.setPrivateRaw("selectionMinFinal", selectionMin); + this.setPrivateRaw("selectionMaxFinal", selectionMax); + this.setPrivateRaw("selectionStepFinal", minMaxStep.step); + this.zoom(start, end); + } + } + _getMinMax() { + let minDefined = this.get("min"); + let maxDefined = this.get("max"); + let min2 = Infinity; + let max2 = -Infinity; + let extraMin = this.get("extraMin", 0); + let extraMax = this.get("extraMax", 0); + if (this.get("logarithmic")) { + if (!this.get("strictMinMax")) { + if (this.get("extraMin") == null) { + extraMin = 0.1; + } + if (this.get("extraMax") == null) { + extraMax = 0.2; + } + } + } + let minDiff = Infinity; + each(this.series, (series2) => { + if (!series2.get("ignoreMinMax")) { + let seriesMin; + let seriesMax; + if (series2.get("xAxis") === this) { + seriesMin = series2.getPrivate("minX"); + seriesMax = series2.getPrivate("maxX"); + } else if (series2.get("yAxis") === this) { + seriesMin = series2.getPrivate("minY"); + seriesMax = series2.getPrivate("maxY"); + } + if (isNumber(seriesMin) && isNumber(seriesMax)) { + min2 = Math.min(min2, seriesMin); + max2 = Math.max(max2, seriesMax); + let diff = seriesMax - seriesMin; + if (diff <= 0) { + diff = Math.abs(seriesMax / 100); + } + if (diff < minDiff) { + minDiff = diff; + } + } + } + }); + this.axisRanges.each((range2) => { + if (range2.get("affectsMinMax")) { + let value = range2.get("value"); + if (value != null) { + min2 = Math.min(min2, value); + max2 = Math.max(max2, value); + } + value = range2.get("endValue"); + if (value != null) { + min2 = Math.min(min2, value); + max2 = Math.max(max2, value); + } + } + }); + if (this.get("logarithmic")) { + let treatZeroAs = this.get("treatZeroAs"); + if (isNumber(treatZeroAs)) { + if (min2 <= 0) { + min2 = treatZeroAs; + } + } + if (min2 <= 0) { + new Error("Logarithmic value axis can not have values <= 0."); + } + } + if (min2 === 0 && max2 === 0) { + max2 = 0.9; + min2 = -0.9; + } + if (isNumber(minDefined)) { + min2 = minDefined; + } + if (isNumber(maxDefined)) { + max2 = maxDefined; + } + if (min2 === Infinity || max2 === -Infinity) { + this.setPrivate("minFinal", void 0); + this.setPrivate("maxFinal", void 0); + return; + } + if (min2 > max2) { + [min2, max2] = [max2, min2]; + } + const initialMin = min2; + const initialMax = max2; + let minAdapted = this.adapters.fold("min", min2); + let maxAdapted = this.adapters.fold("max", max2); + this._minRealLog = min2; + if (isNumber(minAdapted)) { + min2 = minAdapted; + } + if (isNumber(maxAdapted)) { + max2 = maxAdapted; + } + min2 = this._fixMin(min2); + max2 = this._fixMax(max2); + if (max2 - min2 <= 1 / Math.pow(10, 15)) { + if (max2 - min2 !== 0) { + this._deltaMinMax = (max2 - min2) / 2; + } else { + this._getDelta(max2); + } + min2 -= this._deltaMinMax; + max2 += this._deltaMinMax; + } + min2 -= (max2 - min2) * extraMin; + max2 += (max2 - min2) * extraMax; + if (this.get("logarithmic")) { + if (min2 < 0 && initialMin >= 0) { + min2 = 0; + } + if (max2 > 0 && initialMax <= 0) { + max2 = 0; + } + } + this._minReal = min2; + this._maxReal = max2; + let strictMinMax = this.get("strictMinMax"); + let strictMinMaxSelection = this.get("strictMinMaxSelection", false); + if (strictMinMaxSelection) { + strictMinMax = strictMinMaxSelection; + } + let strict = strictMinMax; + if (isNumber(maxDefined)) { + strict = true; + } + let gridCount = this.get("renderer").gridCount(); + let minMaxStep = this._adjustMinMax(min2, max2, gridCount, strict); + min2 = minMaxStep.min; + max2 = minMaxStep.max; + minMaxStep = this._adjustMinMax(min2, max2, gridCount, true); + min2 = minMaxStep.min; + max2 = minMaxStep.max; + if (strictMinMax) { + if (isNumber(minDefined)) { + min2 = minDefined; + } else { + min2 = this._minReal; + } + if (isNumber(maxDefined)) { + max2 = maxDefined; + } else { + max2 = this._maxReal; + } + if (max2 - min2 <= 1e-8) { + min2 -= this._deltaMinMax; + max2 += this._deltaMinMax; + } + let delta = max2 - min2; + min2 -= delta * extraMin; + max2 += delta * extraMax; + } + minAdapted = this.adapters.fold("min", min2); + maxAdapted = this.adapters.fold("max", max2); + if (isNumber(minAdapted)) { + min2 = minAdapted; + } + if (isNumber(maxAdapted)) { + max2 = maxAdapted; + } + if (minDiff == Infinity) { + minDiff = max2 - min2; + } + let decCount = Math.round(Math.abs(Math.log(Math.abs(max2 - min2)) * Math.LOG10E)) + 5; + min2 = round(min2, decCount); + max2 = round(max2, decCount); + const syncWithAxis = this.get("syncWithAxis"); + if (syncWithAxis) { + minMaxStep = this._syncAxes(min2, max2, minMaxStep.step, syncWithAxis.getPrivate("minFinal", syncWithAxis.getPrivate("min", 0)), syncWithAxis.getPrivate("maxFinal", syncWithAxis.getPrivate("max", 1)), syncWithAxis.getPrivate("step", 1)); + min2 = minMaxStep.min; + max2 = minMaxStep.max; + } + this.setPrivateRaw("maxZoomFactor", Math.max(1, Math.ceil((max2 - min2) / minDiff * this.get("maxZoomFactor", 100)))); + this._fixZoomFactor(); + if (this.get("logarithmic")) { + this._minLogAdjusted = min2; + min2 = this._minReal; + max2 = this._maxReal; + if (min2 <= 0) { + min2 = initialMin * (1 - Math.min(extraMin, 0.99)); + } + } + if (isNumber(min2) && isNumber(max2)) { + if (this.getPrivate("minFinal") !== min2 || this.getPrivate("maxFinal") !== max2) { + this.setPrivate("minFinal", min2); + this.setPrivate("maxFinal", max2); + this._saveMinMax(min2, max2); + const duration = this.get("interpolationDuration", 0); + const easing = this.get("interpolationEasing"); + this.animatePrivate({ key: "min", to: min2, duration, easing }); + this.animatePrivate({ key: "max", to: max2, duration, easing }); + } + } + } + _fixZoomFactor() { + } + _getDelta(max2) { + let exponent = Math.log(Math.abs(max2)) * Math.LOG10E; + let power = Math.pow(10, Math.floor(exponent)); + power = power / 10; + this._deltaMinMax = power; + } + _saveMinMax(_min, _max) { + } + _adjustMinMax(min2, max2, gridCount, strictMode) { + if (gridCount <= 1) { + gridCount = 1; + } + gridCount = Math.round(gridCount); + let initialMin = min2; + let initialMax = max2; + let difference = max2 - min2; + if (difference === 0) { + difference = Math.abs(max2); + } + let exponent = Math.log(Math.abs(difference)) * Math.LOG10E; + let power = Math.pow(10, Math.floor(exponent)); + power = power / 10; + let extra = power; + if (strictMode) { + extra = 0; + } + if (strictMode) { + min2 = Math.floor(min2 / power) * power; + max2 = Math.ceil(max2 / power) * power; + } else { + min2 = Math.ceil(min2 / power) * power - extra; + max2 = Math.floor(max2 / power) * power + extra; + } + if (min2 < 0 && initialMin >= 0) { + min2 = 0; + } + if (max2 > 0 && initialMax <= 0) { + max2 = 0; + } + exponent = Math.log(Math.abs(difference)) * Math.LOG10E; + power = Math.pow(10, Math.floor(exponent)); + power = power / 100; + let step = Math.ceil(difference / gridCount / power) * power; + let stepPower = Math.pow(10, Math.floor(Math.log(Math.abs(step)) * Math.LOG10E)); + let stepDivisor = Math.ceil(step / stepPower); + if (stepDivisor > 5) { + stepDivisor = 10; + } else if (stepDivisor <= 5 && stepDivisor > 2) { + stepDivisor = 5; + } + step = Math.ceil(step / (stepPower * stepDivisor)) * stepPower * stepDivisor; + let maxPrecision = this.get("maxPrecision"); + if (isNumber(maxPrecision)) { + let ceiledStep = ceil(step, maxPrecision); + if (maxPrecision < Number.MAX_VALUE && step !== ceiledStep) { + step = ceiledStep; + if (step == 0) { + step = 1; + } + } + } + let decCount = 0; + if (stepPower < 1) { + decCount = Math.round(Math.abs(Math.log(Math.abs(stepPower)) * Math.LOG10E)) + 1; + step = round(step, decCount); + } + let minCount = Math.floor(min2 / step); + min2 = round(step * minCount, decCount); + let maxCount; + if (!strictMode) { + maxCount = Math.ceil(max2 / step); + } else { + maxCount = Math.floor(max2 / step); + } + if (maxCount === minCount) { + maxCount++; + } + max2 = round(step * maxCount, decCount); + if (max2 < initialMax) { + max2 = max2 + step; + } + if (min2 > initialMin) { + min2 = min2 - step; + } + step = this.fixSmallStep(step); + return { min: min2, max: max2, step }; + } + /** + * Returns text to be used in an axis tooltip for specific relative position. + * + * @param position Position + * @return Tooltip text + */ + getTooltipText(position, _adjustPosition) { + const numberFormat = this.get("tooltipNumberFormat", this.get("numberFormat")); + const formatter = this.getNumberFormatter(); + const extraDecimals = this.get("extraTooltipPrecision", 0); + const decimals = this.getPrivate("stepDecimalPlaces", 0) + extraDecimals; + const value = round(this.positionToValue(position), decimals); + if (numberFormat) { + return formatter.format(value, numberFormat); + } else { + return formatter.format(value, void 0, decimals); + } + } + /** + * Returns a data item from series that is closest to the `position`. + * + * @param series Series + * @param position Relative position + * @return Data item + */ + getSeriesItem(series2, position) { + let fieldName = this.getPrivate("name") + this.get("renderer").getPrivate("letter"); + let value = this.positionToValue(position); + let index = void 0; + let oldDiff; + each(series2.dataItems, (dataItem, i) => { + const diff = Math.abs(dataItem.get(fieldName) - value); + if (index === void 0 || diff < oldDiff) { + index = i; + oldDiff = diff; + } + }); + if (index != null) { + return series2.dataItems[index]; + } + } + /** + * Zooms the axis to specific `start` and `end` values. + * + * Optional `duration` specifies duration of zoom animation in milliseconds. + * + * @param start Start value + * @param end End value + * @param duration Duration in milliseconds + */ + zoomToValues(start, end, duration) { + const min2 = this.getPrivate("minFinal", this.getPrivate("min", 0)); + const max2 = this.getPrivate("maxFinal", this.getPrivate("max", 1)); + if (this.getPrivate("min") != null && this.getPrivate("max") != null) { + this.zoom((start - min2) / (max2 - min2), (end - min2) / (max2 - min2), duration); + } + } + /** + * Syncs with a target axis. + * + * @param min Min + * @param max Max + * @param step Step + */ + _syncAxes(min2, max2, step, syncMin, syncMax, syncStep) { + let axis = this.get("syncWithAxis"); + if (axis) { + let count = Math.round(syncMax - syncMin) / syncStep; + let currentCount = Math.round((max2 - min2) / step); + let gridCount = this.get("renderer").gridCount(); + if (isNumber(count) && isNumber(currentCount)) { + let synced = false; + let c = 0; + let diff = (max2 - min2) * 0.01; + let omin = min2; + let omax = max2; + let ostep = step; + while (synced != true) { + synced = this._checkSync(omin, omax, ostep, count); + c++; + if (c > 500) { + synced = true; + } + if (!synced) { + if (c / 3 == Math.round(c / 3)) { + omin = min2 - diff * c; + if (min2 >= 0 && omin < 0) { + omin = 0; + } + } else { + omax = max2 + diff * c; + if (omax <= 0 && omax > 0) { + omax = 0; + } + } + let minMaxStep = this._adjustMinMax(omin, omax, gridCount, true); + omin = minMaxStep.min; + omax = minMaxStep.max; + ostep = minMaxStep.step; + } else { + min2 = omin; + max2 = omax; + step = ostep; + } + } + } + } + return { min: min2, max: max2, step }; + } + /** + * Returns `true` if axis needs to be resunced with some other axis. + */ + _checkSync(min2, max2, step, count) { + let currentCount = (max2 - min2) / step; + for (let i = 1; i < count; i++) { + if (round(currentCount / i, 1) == count || currentCount * i == count) { + return true; + } + } + return false; + } + /** + * Returns relative position between two grid lines of the axis. + * + * @return Position + */ + getCellWidthPosition() { + let max2 = this.getPrivate("selectionMax", this.getPrivate("max")); + let min2 = this.getPrivate("selectionMin", this.getPrivate("min")); + if (isNumber(max2) && isNumber(min2)) { + return this.getPrivate("step", 1) / (max2 - min2); + } + return 0.05; + } + /** + * @ignore + */ + nextPosition(count) { + if (count == null) { + count = 1; + } + if (this.get("renderer").getPrivate("letter") == "Y") { + count *= -1; + } + let value = this.positionToValue(this.getPrivate("tooltipPosition", 0)); + value += this.getPrivate("step", 1) * count; + value = fitToRange(value, this.getPrivate("selectionMin", 0), this.getPrivate("selectionMax", 1)); + return this.toGlobalPosition(this.valueToPosition(value)); + } + }; + ValueAxis.className = "ValueAxis"; + ValueAxis.classNames = Axis.classNames.concat([ValueAxis.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/AxisLabel.js + var AxisLabel = class extends Label { + constructor() { + super(...arguments); + this._tickPoints = []; + } + }; + AxisLabel.className = "AxisLabel"; + AxisLabel.classNames = Label.classNames.concat([AxisLabel.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/AxisTick.js + var AxisTick = class extends Tick { + constructor() { + super(...arguments); + this._tickPoints = []; + } + }; + AxisTick.className = "AxisTick"; + AxisTick.classNames = Tick.classNames.concat([AxisTick.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/AxisRenderer.js + var AxisRenderer = class extends Graphics { + constructor() { + super(...arguments); + this._axisLength = 100; + this._start = 0; + this._end = 1; + this._inversed = false; + this._minSize = 0; + this._lc = 1; + this._ls = 0; + this.ticks = this.addDisposer(new ListTemplate(Template.new({}), () => AxisTick._new(this._root, { + themeTags: mergeTags(this.ticks.template.get("themeTags", []), this.get("themeTags", [])) + }, [this.ticks.template]))); + this.grid = this.addDisposer(new ListTemplate(Template.new({}), () => Grid._new(this._root, { + themeTags: mergeTags(this.grid.template.get("themeTags", []), this.get("themeTags", [])) + }, [this.grid.template]))); + this.axisFills = this.addDisposer(new ListTemplate(Template.new({}), () => Graphics._new(this._root, { + themeTags: mergeTags(this.axisFills.template.get("themeTags", ["axis", "fill"]), this.get("themeTags", [])) + }, [this.axisFills.template]))); + this.labels = this.addDisposer(new ListTemplate(Template.new({}), () => AxisLabel._new(this._root, { + themeTags: mergeTags(this.labels.template.get("themeTags", []), this.get("themeTags", [])) + }, [this.labels.template]))); + } + /** + * @ignore + */ + makeTick(dataItem, themeTags) { + const tick = this.ticks.make(); + tick._setDataItem(dataItem); + dataItem.setRaw("tick", tick); + tick.set("themeTags", mergeTags(tick.get("themeTags"), themeTags)); + this.axis.labelsContainer.children.push(tick); + this.ticks.push(tick); + return tick; + } + /** + * @ignore + */ + makeGrid(dataItem, themeTags) { + const grid = this.grid.make(); + grid._setDataItem(dataItem); + dataItem.setRaw("grid", grid); + grid.set("themeTags", mergeTags(grid.get("themeTags"), themeTags)); + this.axis.gridContainer.children.push(grid); + this.grid.push(grid); + return grid; + } + /** + * @ignore + */ + makeAxisFill(dataItem, themeTags) { + const axisFill = this.axisFills.make(); + axisFill._setDataItem(dataItem); + axisFill.set("themeTags", mergeTags(axisFill.get("themeTags"), themeTags)); + this.axis.gridContainer.children.push(axisFill); + dataItem.setRaw("axisFill", axisFill); + this.axisFills.push(axisFill); + return axisFill; + } + /** + * @ignore + */ + makeLabel(dataItem, themeTags) { + const label = this.labels.make(); + label.set("themeTags", mergeTags(label.get("themeTags"), themeTags)); + if (dataItem.get("isRange")) { + this.axis.labelsContainer.children.push(label); + } else { + this.axis.labelsContainer.children.moveValue(label, 0); + } + label._setDataItem(dataItem); + dataItem.setRaw("label", label); + this.labels.push(label); + return label; + } + axisLength() { + return 0; + } + /** + * @ignore + */ + gridCount() { + return this.axisLength() / this.get("minGridDistance", 50); + } + _updatePositions() { + } + _afterNew() { + super._afterNew(); + this.set("isMeasured", false); + const thumb = this.thumb; + if (thumb) { + this._disposers.push(thumb.events.on("pointerdown", (event) => { + this._handleThumbDown(event); + })); + this._disposers.push(thumb.events.on("globalpointerup", (event) => { + this._handleThumbUp(event); + })); + this._disposers.push(thumb.events.on("globalpointermove", (event) => { + this._handleThumbMove(event); + })); + } + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("minGridDistance")) { + this.root.events.once("frameended", () => { + this.axis.markDirtySize(); + }); + } + } + _changed() { + super._changed(); + if (this.isDirty("pan")) { + const thumb = this.thumb; + if (thumb) { + const labelsContainer = this.axis.labelsContainer; + const pan = this.get("pan"); + if (pan == "zoom") { + labelsContainer.children.push(thumb); + } else if (pan == "none") { + labelsContainer.children.removeValue(thumb); + } + } + } + } + _handleThumbDown(event) { + this._thumbDownPoint = this.toLocal(event.point); + const axis = this.axis; + this._downStart = axis.get("start"); + this._downEnd = axis.get("end"); + } + _handleThumbUp(_event) { + this._thumbDownPoint = void 0; + } + _handleThumbMove(event) { + const downPoint = this._thumbDownPoint; + if (downPoint) { + const point = this.toLocal(event.point); + const downStart = this._downStart; + const downEnd = this._downEnd; + const extra = this._getPan(point, downPoint) * Math.min(1, downEnd - downStart) / 2 * this.get("panSensitivity", 1); + this.axis.zoom(downStart - extra, downEnd + extra, 0); + } + } + _getPan(_point1, _point2) { + return 0; + } + /** + * Converts relative position (0-1) on axis to a pixel coordinate. + * + * @param position Position (0-1) + * @return Coordinate (px) + */ + positionToCoordinate(position) { + if (this._inversed) { + return (this._end - position) * this._axisLength; + } else { + return (position - this._start) * this._axisLength; + } + } + /** + * @ignore + */ + updateTooltipBounds(_tooltip) { + } + _updateSize() { + this.markDirty(); + this._clear = true; + } + /** + * @ignore + */ + toAxisPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + position = position * (end - start); + if (!this.get("inversed")) { + position = start + position; + } else { + position = end - position; + } + return position; + } + /** + * @ignore + */ + toGlobalPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + if (!this.get("inversed")) { + position = position - start; + } else { + position = end - position; + } + position = position / (end - start); + return position; + } + /** + * @ignore + */ + fixPosition(position) { + if (this.get("inversed")) { + return 1 - position; + } + return position; + } + /** + * @ignore + */ + _updateLC() { + } + toggleVisibility(sprite, position, minPosition, maxPosition) { + let axis = this.axis; + const start = axis.get("start", 0); + const end = axis.get("end", 1); + let updatedStart = start + (end - start) * (minPosition - 1e-4); + let updatedEnd = start + (end - start) * (maxPosition + 1e-4); + if (position < updatedStart || position > updatedEnd) { + sprite.setPrivate("visible", false); + } else { + sprite.setPrivate("visible", true); + } + } + _positionTooltip(tooltip, point) { + const chart2 = this.chart; + if (chart2) { + tooltip.set("pointTo", this._display.toGlobal(point)); + if (!chart2.inPlot(point)) { + tooltip.hide(); + } + } + } + processAxis() { + } + }; + AxisRenderer.className = "AxisRenderer"; + AxisRenderer.classNames = Graphics.classNames.concat([AxisRenderer.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/AxisRendererX.js + var AxisRendererX = class extends AxisRenderer { + constructor() { + super(...arguments); + this.thumb = Rectangle.new(this._root, { width: p100, isMeasured: false, themeTags: ["axis", "x", "thumb", "zoomgrip"] }); + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["renderer", "x"]); + super._afterNew(); + this.setPrivateRaw("letter", "X"); + const gridTemplate = this.grid.template; + gridTemplate.set("height", p100); + gridTemplate.set("width", 0); + gridTemplate.set("draw", (display, graphics) => { + display.moveTo(0, 0); + display.lineTo(0, graphics.height()); + }); + this.set("draw", (display, graphics) => { + display.moveTo(0, 0); + display.lineTo(graphics.width(), 0); + }); + } + _changed() { + var _a; + super._changed(); + const axis = this.axis; + const ghostLabel = axis.ghostLabel; + if (ghostLabel) { + ghostLabel.setPrivate("visible", !this.get("inside")); + ghostLabel.set("x", -1e3); + } + const opposite = "opposite"; + const inside = "inside"; + if (this.isDirty(opposite) || this.isDirty(inside)) { + const chart2 = this.chart; + const axisChildren = axis.children; + if (this.get(inside)) { + axis.addTag(inside); + } else { + axis.removeTag(inside); + } + if (chart2) { + if (this.get(opposite)) { + const children = chart2.topAxesContainer.children; + if (children.indexOf(axis) == -1) { + children.insertIndex(0, axis); + } + axis.addTag(opposite); + axisChildren.moveValue(this); + } else { + const children = chart2.bottomAxesContainer.children; + if (children.indexOf(axis) == -1) { + children.moveValue(axis); + } + axis.removeTag(opposite); + axisChildren.moveValue(this, 0); + } + (_a = axis.ghostLabel) === null || _a === void 0 ? void 0 : _a._applyThemes(); + this.labels.each((label) => { + label._applyThemes(); + }); + this.root._markDirtyRedraw(); + } + axis.markDirtySize(); + } + this.thumb.setPrivate("height", axis.labelsContainer.height()); + } + _getPan(point1, point2) { + return (point2.x - point1.x) / this.width(); + } + /** + * @ignore + */ + toAxisPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + position -= this._ls; + position = position * (end - start) / this._lc; + if (!this.get("inversed")) { + position = start + position; + } else { + position = end - position; + } + return position; + } + /** + * @ignore + */ + toGlobalPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + if (!this.get("inversed")) { + position = position - start; + } else { + position = end - position; + } + position = position / (end - start) * this._lc; + position += this._ls; + return position; + } + /** + * @ignore + */ + _updateLC() { + const axis = this.axis; + const parent = axis.parent; + if (parent) { + const w = parent.innerWidth(); + this._lc = this.axisLength() / w; + this._ls = (axis.x() - parent.get("paddingLeft", 0)) / w; + } + } + /** + * @ignore + */ + _updatePositions() { + const axis = this.axis; + const x2 = axis.x() - relativeToValue(axis.get("centerX", 0), axis.width()) - axis.parent.get("paddingLeft", 0); + axis.gridContainer.set("x", x2); + axis.topGridContainer.set("x", x2); + axis.bulletsContainer.set("y", this.y()); + const chart2 = axis.chart; + if (chart2) { + const plotContainer = chart2.plotContainer; + const axisHeader = axis.axisHeader; + let width = axis.get("marginLeft", 0); + let x3 = axis.x() - width; + const parent = axis.parent; + if (parent) { + x3 -= parent.get("paddingLeft", 0); + } + if (axisHeader.children.length > 0) { + width = axis.axisHeader.width(); + axis.set("marginLeft", width + 1); + } else { + axisHeader.set("width", width); + } + axisHeader.setAll({ x: x3, y: -1, height: plotContainer.height() + 2 }); + } + } + /** + * @ignore + */ + processAxis() { + super.processAxis(); + const axis = this.axis; + if (axis.get("width") == null) { + axis.set("width", p100); + } + ; + const verticalLayout = this._root.verticalLayout; + axis.set("layout", verticalLayout); + axis.labelsContainer.set("width", p100); + axis.axisHeader.setAll({ layout: verticalLayout }); + } + /** + * @ignore + */ + axisLength() { + return this.axis.width(); + } + /** + * Converts axis relative position to actual coordinate in pixels. + * + * @param position Position + * @return Point + */ + positionToPoint(position) { + return { x: this.positionToCoordinate(position), y: 0 }; + } + /** + * @ignore + */ + updateTick(tick, position, endPosition, count) { + if (tick) { + if (!isNumber(position)) { + position = 0; + } + let location = 0.5; + if (isNumber(count) && count > 1) { + location = tick.get("multiLocation", location); + } else { + location = tick.get("location", location); + } + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + tick.set("x", this.positionToCoordinate(position)); + let length = tick.get("length", 0); + const inside = tick.get("inside", this.get("inside", false)); + if (this.get("opposite")) { + tick.set("y", p100); + if (!inside) { + length *= -1; + } + } else { + tick.set("y", 0); + if (inside) { + length *= -1; + } + } + tick.set("draw", (display) => { + display.moveTo(0, 0); + display.lineTo(0, length); + }); + this.toggleVisibility(tick, position, tick.get("minPosition", 0), tick.get("maxPosition", 1)); + } + } + /** + * @ignore + */ + updateLabel(label, position, endPosition, count) { + if (label) { + let location = 0.5; + if (isNumber(count) && count > 1) { + location = label.get("multiLocation", location); + } else { + location = label.get("location", location); + } + if (!isNumber(position)) { + position = 0; + } + const inside = label.get("inside", this.get("inside", false)); + const opposite = this.get("opposite"); + if (opposite) { + if (!inside) { + label.set("position", "relative"); + label.set("y", p100); + } else { + label.set("position", "absolute"); + label.set("y", 0); + } + } else { + if (!inside) { + label.set("y", void 0); + label.set("position", "relative"); + } else { + label.set("y", 0); + label.set("position", "absolute"); + } + } + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + label.set("x", this.positionToCoordinate(position)); + this.toggleVisibility(label, position, label.get("minPosition", 0), label.get("maxPosition", 1)); + } + } + /** + * @ignore + */ + updateGrid(grid, position, endPosition) { + if (grid) { + if (!isNumber(position)) { + position = 0; + } + let location = grid.get("location", 0.5); + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + grid.set("x", this.positionToCoordinate(position)); + this.toggleVisibility(grid, position, 0, 1); + } + } + /** + * @ignore + */ + updateBullet(bullet, position, endPosition) { + if (bullet) { + const sprite = bullet.get("sprite"); + if (sprite) { + if (!isNumber(position)) { + position = 0; + } + let location = bullet.get("location", 0.5); + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + let bulletPosition = this.axis.roundAxisPosition(position, location); + let previousBullet = this.axis._bullets[bulletPosition]; + let d = -1; + if (this.get("opposite")) { + d = 1; + } + if (bullet.get("stacked")) { + if (previousBullet) { + let previousSprite = previousBullet.get("sprite"); + if (previousSprite) { + sprite.set("y", previousSprite.y() + previousSprite.height() * d); + } + } else { + sprite.set("y", 0); + } + } + this.axis._bullets[bulletPosition] = bullet; + sprite.set("x", this.positionToCoordinate(position)); + this.toggleVisibility(sprite, position, 0, 1); + } + } + } + /** + * @ignore + */ + updateFill(fill, position, endPosition) { + if (fill) { + if (!isNumber(position)) { + position = 0; + } + if (!isNumber(endPosition)) { + endPosition = 1; + } + let x0 = this.positionToCoordinate(position); + let x1 = this.positionToCoordinate(endPosition); + this.fillDrawMethod(fill, x0, x1); + } + } + fillDrawMethod(fill, x0, x1) { + fill.set("draw", (display) => { + const h = this.axis.gridContainer.height(); + const w = this.width(); + if (x1 < x0) { + [x1, x0] = [x0, x1]; + } + if (x0 > w || x1 < 0) { + return; + } + display.moveTo(x0, 0); + display.lineTo(x1, 0); + display.lineTo(x1, h); + display.lineTo(x0, h); + display.lineTo(x0, 0); + }); + } + /** + * @ignore + */ + positionTooltip(tooltip, position) { + this._positionTooltip(tooltip, { x: this.positionToCoordinate(position), y: 0 }); + } + /** + * @ignore + */ + updateTooltipBounds(tooltip) { + const inside = this.get("inside"); + const num = 1e5; + let global = this._display.toGlobal({ x: 0, y: 0 }); + let x2 = global.x; + let y2 = 0; + let w = this.axisLength(); + let h = num; + let pointerOrientation = "up"; + if (this.get("opposite")) { + if (inside) { + pointerOrientation = "up"; + y2 = global.y; + h = num; + } else { + pointerOrientation = "down"; + y2 = global.y - num; + h = num; + } + } else { + if (inside) { + pointerOrientation = "down"; + y2 = global.y - num; + h = num; + } else { + pointerOrientation = "up"; + y2 = global.y; + h = num; + } + } + const bounds = { left: x2, right: x2 + w, top: y2, bottom: y2 + h }; + const oldBounds = tooltip.get("bounds"); + if (!sameBounds(bounds, oldBounds)) { + tooltip.set("bounds", bounds); + tooltip.set("pointerOrientation", pointerOrientation); + } + } + }; + AxisRendererX.className = "AxisRendererX"; + AxisRendererX.classNames = AxisRenderer.classNames.concat([AxisRendererX.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/AxisRendererY.js + var AxisRendererY = class extends AxisRenderer { + constructor() { + super(...arguments); + this.thumb = Rectangle.new(this._root, { height: p100, isMeasured: false, themeTags: ["axis", "y", "thumb", "zoomgrip"] }); + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["renderer", "y"]); + if (this._settings.opposite) { + this._settings.themeTags.push("opposite"); + } + super._afterNew(); + this.setPrivateRaw("letter", "Y"); + const gridTemplate = this.grid.template; + gridTemplate.set("width", p100); + gridTemplate.set("height", 0); + gridTemplate.set("draw", (display, graphics) => { + display.moveTo(0, 0); + display.lineTo(graphics.width(), 0); + }); + this.set("draw", (display, renderer) => { + display.moveTo(0, 0); + display.lineTo(0, renderer.height()); + }); + } + _getPan(point1, point2) { + return (point1.y - point2.y) / this.height(); + } + _changed() { + var _a; + super._changed(); + const axis = this.axis; + const ghostLabel = axis.ghostLabel; + if (ghostLabel) { + ghostLabel.setPrivate("visible", !this.get("inside")); + ghostLabel.set("y", -1e3); + } + const thumb = this.thumb; + const opposite = "opposite"; + const inside = "inside"; + const chart2 = this.chart; + if (this.isDirty(opposite) || this.isDirty(inside)) { + const axisChildren = axis.children; + if (this.get(inside)) { + axis.addTag(inside); + } else { + axis.removeTag(inside); + } + if (chart2) { + if (this.get(opposite)) { + const children = chart2.rightAxesContainer.children; + if (children.indexOf(axis) == -1) { + children.moveValue(axis, 0); + } + axis.addTag(opposite); + axisChildren.moveValue(this, 0); + } else { + const children = chart2.leftAxesContainer.children; + if (children.indexOf(axis) == -1) { + children.moveValue(axis); + } + axis.removeTag(opposite); + axisChildren.moveValue(this); + } + (_a = axis.ghostLabel) === null || _a === void 0 ? void 0 : _a._applyThemes(); + this.labels.each((label) => { + label._applyThemes(); + }); + this.root._markDirtyRedraw(); + } + axis.markDirtySize(); + } + const w = axis.labelsContainer.width(); + if (chart2) { + if (this.get(opposite)) { + thumb.set("centerX", 0); + } else { + thumb.set("centerX", w); + } + } + thumb.setPrivate("width", w); + } + /** + * @ignore + */ + processAxis() { + super.processAxis(); + const axis = this.axis; + if (axis.get("height") == null) { + axis.set("height", p100); + } + const horizontalLayout = this._root.horizontalLayout; + axis.set("layout", horizontalLayout); + axis.labelsContainer.set("height", p100); + axis.axisHeader.set("layout", horizontalLayout); + } + _updatePositions() { + const axis = this.axis; + const y2 = axis.y() - relativeToValue(axis.get("centerY", 0), axis.height()); + axis.gridContainer.set("y", y2); + axis.topGridContainer.set("y", y2); + axis.bulletsContainer.set("x", this.x()); + const chart2 = axis.chart; + if (chart2) { + const plotContainer = chart2.plotContainer; + const axisHeader = axis.axisHeader; + let height = axis.get("marginTop", 0); + if (axisHeader.children.length > 0) { + height = axis.axisHeader.height(); + axis.set("marginTop", height + 1); + } else { + axisHeader.set("height", height); + } + axisHeader.setAll({ y: axis.y() - height, x: -1, width: plotContainer.width() + 2 }); + } + } + /** + * @ignore + */ + axisLength() { + return this.axis.innerHeight(); + } + /** + * Converts axis relative position to actual coordinate in pixels. + * + * @param position Position + * @return Point + */ + positionToPoint(position) { + return { x: 0, y: this.positionToCoordinate(position) }; + } + /** + * @ignore + */ + updateLabel(label, position, endPosition, count) { + if (label) { + if (!isNumber(position)) { + position = 0; + } + let location = 0.5; + if (isNumber(count) && count > 1) { + location = label.get("multiLocation", location); + } else { + location = label.get("location", location); + } + const opposite = this.get("opposite"); + const inside = label.get("inside", this.get("inside", false)); + if (opposite) { + label.set("x", 0); + if (inside) { + label.set("position", "absolute"); + } else { + label.set("position", "relative"); + } + } else { + if (inside) { + label.set("x", 0); + label.set("position", "absolute"); + } else { + label.set("x", void 0); + label.set("position", "relative"); + } + } + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + label.set("y", this.positionToCoordinate(position)); + this.toggleVisibility(label, position, label.get("minPosition", 0), label.get("maxPosition", 1)); + } + } + /** + * @ignore + */ + updateGrid(grid, position, endPosition) { + if (grid) { + if (!isNumber(position)) { + position = 0; + } + let location = grid.get("location", 0.5); + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + grid.set("y", this.positionToCoordinate(position)); + this.toggleVisibility(grid, position, 0, 1); + } + } + /** + * @ignore + */ + updateTick(tick, position, endPosition, count) { + if (tick) { + if (!isNumber(position)) { + position = 0; + } + let location = 0.5; + if (isNumber(count) && count > 1) { + location = tick.get("multiLocation", location); + } else { + location = tick.get("location", location); + } + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + tick.set("y", this.positionToCoordinate(position)); + let length = tick.get("length", 0); + const inside = tick.get("inside", this.get("inside", false)); + if (this.get("opposite")) { + tick.set("x", 0); + if (inside) { + length *= -1; + } + } else { + if (!inside) { + length *= -1; + } + } + tick.set("draw", (display) => { + display.moveTo(0, 0); + display.lineTo(length, 0); + }); + this.toggleVisibility(tick, position, tick.get("minPosition", 0), tick.get("maxPosition", 1)); + } + } + /** + * @ignore + */ + updateBullet(bullet, position, endPosition) { + if (bullet) { + const sprite = bullet.get("sprite"); + if (sprite) { + if (!isNumber(position)) { + position = 0; + } + let location = bullet.get("location", 0.5); + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + let bulletPosition = this.axis.roundAxisPosition(position, location); + let previousBullet = this.axis._bullets[bulletPosition]; + let d = 1; + if (this.get("opposite")) { + d = -1; + } + if (bullet.get("stacked")) { + if (previousBullet) { + let previousSprite = previousBullet.get("sprite"); + if (previousSprite) { + sprite.set("x", previousSprite.x() + previousSprite.width() * d); + } + } else { + sprite.set("x", 0); + } + } + this.axis._bullets[bulletPosition] = bullet; + sprite.set("y", this.positionToCoordinate(position)); + this.toggleVisibility(sprite, position, 0, 1); + } + } + } + /** + * @ignore + */ + updateFill(fill, position, endPosition) { + if (fill) { + if (!isNumber(position)) { + position = 0; + } + if (!isNumber(endPosition)) { + endPosition = 1; + } + let y0 = this.positionToCoordinate(position); + let y1 = this.positionToCoordinate(endPosition); + this.fillDrawMethod(fill, y0, y1); + } + } + fillDrawMethod(fill, y0, y1) { + fill.set("draw", (display) => { + const w = this.axis.gridContainer.width(); + const h = this.height(); + if (y1 < y0) { + [y1, y0] = [y0, y1]; + } + if (y0 > h || y1 < 0) { + return; + } + display.moveTo(0, y0); + display.lineTo(w, y0); + display.lineTo(w, y1); + display.lineTo(0, y1); + display.lineTo(0, y0); + }); + } + /** + * Converts relative position (0-1) on axis to a pixel coordinate. + * + * @param position Position (0-1) + * @return Coordinate (px) + */ + positionToCoordinate(position) { + if (!this._inversed) { + return (this._end - position) * this._axisLength; + } else { + return (position - this._start) * this._axisLength; + } + } + /** + * @ignore + */ + positionTooltip(tooltip, position) { + this._positionTooltip(tooltip, { x: 0, y: this.positionToCoordinate(position) }); + } + /** + * @ignore + */ + updateTooltipBounds(tooltip) { + const inside = this.get("inside"); + const num = 1e5; + let global = this._display.toGlobal({ x: 0, y: 0 }); + let y2 = global.y; + let x2 = 0; + let h = this.axisLength(); + let w = num; + let pointerOrientation = "right"; + if (this.get("opposite")) { + if (inside) { + pointerOrientation = "right"; + x2 = global.x - num; + w = num; + } else { + pointerOrientation = "left"; + x2 = global.x; + w = num; + } + } else { + if (inside) { + pointerOrientation = "left"; + x2 = global.x; + w = num; + } else { + pointerOrientation = "right"; + x2 = global.x - num; + w = num; + } + } + const bounds = { left: x2, right: x2 + w, top: y2, bottom: y2 + h }; + const oldBounds = tooltip.get("bounds"); + if (!sameBounds(bounds, oldBounds)) { + tooltip.set("bounds", bounds); + tooltip.set("pointerOrientation", pointerOrientation); + } + } + /** + * @ignore + */ + _updateLC() { + const axis = this.axis; + const parent = axis.parent; + if (parent) { + const h = parent.innerHeight(); + this._lc = this.axisLength() / h; + this._ls = axis.y() / h; + } + } + /** + * @ignore + */ + toAxisPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + position -= this._ls; + position = position * (end - start) / this._lc; + if (this.get("inversed")) { + position = start + position; + } else { + position = end - position; + } + return position; + } + /** + * @ignore + */ + toGlobalPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + if (this.get("inversed")) { + position = position - start; + } else { + position = end - position; + } + position = position / (end - start) * this._lc; + position += this._ls; + return position; + } + /** + * @ignore + */ + fixPosition(position) { + if (!this.get("inversed")) { + return 1 - position; + } + return position; + } + }; + AxisRendererY.className = "AxisRendererY"; + AxisRendererY.classNames = AxisRenderer.classNames.concat([AxisRendererY.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/series/LineSeries.js + var LineSeries = class extends XYSeries { + constructor() { + super(...arguments); + this._strokeGenerator = line_default(); + this._fillGenerator = area_default(); + this.strokes = this.addDisposer(new ListTemplate(Template.new({}), () => Graphics._new(this._root, { + themeTags: mergeTags(this.strokes.template.get("themeTags", []), ["line", "series", "stroke"]) + }, [this.strokes.template]))); + this.fills = this.addDisposer(new ListTemplate(Template.new({}), () => Graphics._new(this._root, { + themeTags: mergeTags(this.strokes.template.get("themeTags", []), ["line", "series", "fill"]) + }, [this.fills.template]))); + this._previousPoint = [0, 0, 0, 0]; + this._dindex = 0; + this._sindex = 0; + } + _afterNew() { + this._fillGenerator.y0(function(p) { + return p[3]; + }); + this._fillGenerator.x0(function(p) { + return p[2]; + }); + this._fillGenerator.y1(function(p) { + return p[1]; + }); + this._fillGenerator.x1(function(p) { + return p[0]; + }); + super._afterNew(); + } + /** + * @ignore + */ + makeStroke(strokes) { + const stroke = this.mainContainer.children.push(strokes.make()); + strokes.push(stroke); + return stroke; + } + /** + * @ignore + */ + makeFill(fills) { + const fill = this.mainContainer.children.push(fills.make()); + fills.push(fill); + return fill; + } + _updateChildren() { + this._strokeTemplate = void 0; + this._fillTemplate = void 0; + let xAxis2 = this.get("xAxis"); + let yAxis2 = this.get("yAxis"); + if (this.isDirty("stroke")) { + const stroke = this.get("stroke"); + this.strokes.template.set("stroke", stroke); + const legendStroke = this._legendStroke; + if (legendStroke) { + legendStroke.states.lookup("default").set("stroke", stroke); + } + } + if (this.isDirty("fill")) { + const fill = this.get("fill"); + this.fills.template.set("fill", fill); + const legendFill = this._legendFill; + if (legendFill) { + legendFill.states.lookup("default").set("fill", fill); + } + } + if (this.isDirty("fillPattern")) { + const fillPattern = this.get("fillPattern"); + this.fills.template.set("fillPattern", fillPattern); + const legendFill = this._legendFill; + if (legendFill) { + legendFill.states.lookup("default").set("fillPattern", fillPattern); + } + } + if (this.isDirty("curveFactory")) { + const curveFactory = this.get("curveFactory"); + if (curveFactory) { + this._strokeGenerator.curve(curveFactory); + this._fillGenerator.curve(curveFactory); + } + } + if (xAxis2.inited && yAxis2.inited) { + if (this._axesDirty || this._valuesDirty || this._stackDirty || this.isDirty("vcx") || this.isDirty("vcy") || this._sizeDirty || this.isDirty("connect") || this.isDirty("curveFactory")) { + const dataItems = this.dataItems; + this.fills.each((fill) => { + fill.setPrivate("visible", false); + }); + this.strokes.each((stroke) => { + stroke.setPrivate("visible", false); + }); + this.axisRanges.each((axisRange) => { + let fills = axisRange.fills; + if (fills) { + fills.each((fill) => { + fill.setPrivate("visible", false); + }); + } + let strokes = axisRange.strokes; + if (strokes) { + strokes.each((stroke) => { + stroke.setPrivate("visible", false); + }); + } + }); + let startIndex = this.startIndex(); + let strokeTemplateField = this.strokes.template.get("templateField"); + let fillTemplateField = this.fills.template.get("templateField"); + let strokeTemplateFound = true; + let fillTemplateFound = true; + if (strokeTemplateField) { + strokeTemplateFound = false; + } + if (fillTemplateField) { + fillTemplateFound = false; + } + for (let i = startIndex - 1; i >= 0; i--) { + let dataItem = dataItems[i]; + let hasValues = true; + let dataContext = dataItem.dataContext; + if (strokeTemplateField) { + if (dataContext[strokeTemplateField]) { + strokeTemplateFound = true; + } + } + if (fillTemplateField) { + if (dataContext[fillTemplateField]) { + fillTemplateFound = true; + } + } + each(this._valueFields, (field) => { + if (!isNumber(dataItem.get(field))) { + hasValues = false; + } + }); + if (hasValues && strokeTemplateFound && fillTemplateFound) { + startIndex = i; + break; + } + } + let len = dataItems.length; + let endIndex = this.endIndex(); + if (endIndex < len) { + endIndex++; + for (let i = endIndex; i < len; i++) { + let dataItem = dataItems[i]; + let hasValues = true; + each(this._valueFields, (field) => { + if (!isNumber(dataItem.get(field))) { + hasValues = false; + } + }); + if (hasValues) { + endIndex = i + 1; + break; + } + } + } + if (startIndex > 0) { + startIndex--; + } + this._endIndex = endIndex; + this._clearGraphics(); + this._sindex = 0; + this._dindex = startIndex; + if (len == 1) { + this._startSegment(0); + } else { + while (this._dindex < endIndex - 1) { + this._startSegment(this._dindex); + this._sindex++; + } + } + } + } else { + this._skipped = true; + } + super._updateChildren(); + } + _clearGraphics() { + this.strokes.clear(); + this.fills.clear(); + this.axisRanges.each((axisRange) => { + axisRange.fills.clear(); + axisRange.strokes.clear(); + }); + } + _startSegment(dataItemIndex) { + const dataItems = this.dataItems; + let endIndex = this._endIndex; + let currentEndIndex = endIndex; + const autoGapCount = this.get("autoGapCount"); + const connect = this.get("connect"); + const fill = this.makeFill(this.fills); + const fillTemplate = this._fillTemplate; + const originalTemplate = this.fills.template; + if (fillTemplate && fillTemplate != originalTemplate) { + fill.template = fillTemplate; + } + fill.setPrivate("visible", true); + const stroke = this.makeStroke(this.strokes); + const strokeTemplate = this._strokeTemplate; + if (strokeTemplate && strokeTemplate != this.strokes.template) { + stroke.template = strokeTemplate; + } + stroke.setPrivate("visible", true); + let xAxis2 = this.get("xAxis"); + let yAxis2 = this.get("yAxis"); + let baseAxis = this.get("baseAxis"); + let vcx = this.get("vcx", 1); + let vcy = this.get("vcy", 1); + let xField = this._xField; + let yField = this._yField; + let xOpenField = this._xOpenField; + let yOpenField = this._yOpenField; + const xOpenFieldValue = this.get("openValueXField"); + const yOpenFieldValue = this.get("openValueYField"); + if (!xOpenFieldValue) { + xOpenField = this._xField; + } + if (!yOpenFieldValue) { + yOpenField = this._yField; + } + const stacked = this.get("stacked"); + const basePosX = xAxis2.basePosition(); + const basePosY = yAxis2.basePosition(); + let baseField; + if (baseAxis === yAxis2) { + baseField = this._yField; + } else { + baseField = this._xField; + } + const segments = []; + let points = []; + segments.push(points); + const strokeTemplateField = this.strokes.template.get("templateField"); + const fillTemplateField = this.fills.template.get("templateField"); + let locationX = this.get("locationX", 0.5); + let locationY = this.get("locationY", 0.5); + let openLocationX = this.get("openLocationX", locationX); + let openLocationY = this.get("openLocationY", locationY); + const minDistance = this.get("minDistance", 0); + let i; + let fillVisible = this.fills.template.get("visible"); + if (this.axisRanges.length > 0) { + fillVisible = true; + } + let getOpen = false; + if (stacked || xOpenFieldValue || yOpenFieldValue) { + getOpen = true; + } + const o = { + points, + segments, + stacked, + getOpen, + basePosX, + basePosY, + fillVisible, + xField, + yField, + xOpenField, + yOpenField, + vcx, + vcy, + baseAxis, + xAxis: xAxis2, + yAxis: yAxis2, + locationX, + locationY, + openLocationX, + openLocationY, + minDistance + }; + let rangeStrokeTemplate = this._strokeTemplate; + let rangeFillTemplate = this._fillTemplate; + for (i = dataItemIndex; i < currentEndIndex; i++) { + this._dindex = i; + const dataItem = dataItems[i]; + let valueX = dataItem.get(xField); + let valueY = dataItem.get(yField); + if (valueX == null || valueY == null) { + if (!connect) { + points = []; + segments.push(points); + o.points = points; + } + } else { + this._getPoints(dataItem, o); + } + if (strokeTemplateField) { + let strokeTemplate2 = dataItem.dataContext[strokeTemplateField]; + if (strokeTemplate2) { + if (!(strokeTemplate2 instanceof Template)) { + strokeTemplate2 = Template.new(strokeTemplate2); + } + this._strokeTemplate = strokeTemplate2; + if (i > dataItemIndex) { + currentEndIndex = i; + break; + } else { + rangeStrokeTemplate = strokeTemplate2; + stroke.template = strokeTemplate2; + } + } + } + if (fillTemplateField) { + let fillTemplate2 = dataItem.dataContext[fillTemplateField]; + if (fillTemplate2) { + if (!(fillTemplate2 instanceof Template)) { + fillTemplate2 = Template.new(fillTemplate2); + } + this._fillTemplate = fillTemplate2; + if (i > dataItemIndex) { + currentEndIndex = i; + break; + } else { + rangeFillTemplate = fillTemplate2; + fill.template = fillTemplate2; + } + } + } + if (!connect) { + let nextItem = dataItems[i + 1]; + if (nextItem) { + if (baseAxis.shouldGap(dataItem, nextItem, autoGapCount, baseField)) { + points = []; + segments.push(points); + o.points = points; + } + } + } + } + fill.setRaw("userData", [dataItemIndex, i]); + stroke.setRaw("userData", [dataItemIndex, i]); + if (i === endIndex) { + this._endLine(points, segments[0][0]); + } + if (stroke) { + this._drawStroke(stroke, segments); + } + if (fill) { + this._drawFill(fill, segments); + } + this.axisRanges.each((axisRange) => { + const container = axisRange.container; + const fills = axisRange.fills; + const fill2 = this.makeFill(fills); + if (container) { + container.children.push(fill2); + } + fill2.setPrivate("visible", true); + this._drawFill(fill2, segments); + const strokes = axisRange.strokes; + const stroke2 = this.makeStroke(strokes); + if (container) { + container.children.push(stroke2); + } + if (rangeStrokeTemplate && rangeStrokeTemplate != this.strokes.template) { + stroke2.template = rangeStrokeTemplate; + } + if (rangeFillTemplate && rangeFillTemplate != this.fills.template) { + fill2.template = rangeFillTemplate; + } + stroke2.setPrivate("visible", true); + this._drawStroke(stroke2, segments); + fill2.setRaw("userData", [dataItemIndex, i]); + stroke2.setRaw("userData", [dataItemIndex, i]); + }); + } + _getPoints(dataItem, o) { + let points = o.points; + let itemLocationX = dataItem.get("locationX", o.locationX); + let itemLocationY = dataItem.get("locationY", o.locationY); + const exactLocationX = this.get("exactLocationX", false); + const exactLocationY = this.get("exactLocationY", false); + let xPos = o.xAxis.getDataItemPositionX(dataItem, o.xField, itemLocationX, o.vcx, exactLocationX); + let yPos = o.yAxis.getDataItemPositionY(dataItem, o.yField, itemLocationY, o.vcy, exactLocationY); + if (this._shouldInclude(xPos)) { + const iPoint = this.getPoint(xPos, yPos); + const point = [iPoint.x, iPoint.y]; + iPoint.x += this._x; + iPoint.y += this._y; + dataItem.set("point", iPoint); + if (o.fillVisible) { + let xPos0 = xPos; + let yPos0 = yPos; + if (o.baseAxis === o.xAxis) { + yPos0 = o.basePosY; + } else if (o.baseAxis === o.yAxis) { + xPos0 = o.basePosX; + } + if (o.getOpen) { + let valueX = dataItem.get(o.xOpenField); + let valueY = dataItem.get(o.yOpenField); + if (valueX != null && valueY != null) { + let itemLocationX2 = dataItem.get("openLocationX", o.openLocationX); + let itemLocationY2 = dataItem.get("openLocationY", o.openLocationY); + if (o.stacked) { + let stackToItemX = dataItem.get("stackToItemX"); + let stackToItemY = dataItem.get("stackToItemY"); + if (stackToItemX) { + xPos0 = o.xAxis.getDataItemPositionX(stackToItemX, o.xField, itemLocationX2, stackToItemX.component.get("vcx"), exactLocationX); + if (isNaN2(xPos0)) { + xPos0 = o.basePosX; + } + } else { + if (o.yAxis === o.baseAxis) { + xPos0 = o.basePosX; + } else { + xPos0 = o.xAxis.getDataItemPositionX(dataItem, o.xOpenField, itemLocationX2, o.vcx, exactLocationX); + } + } + if (stackToItemY) { + yPos0 = o.yAxis.getDataItemPositionY(stackToItemY, o.yField, itemLocationY2, stackToItemY.component.get("vcy"), exactLocationY); + if (isNaN2(yPos0)) { + yPos0 = o.basePosY; + } + } else { + if (o.xAxis === o.baseAxis) { + yPos0 = o.basePosY; + } else { + yPos0 = o.yAxis.getDataItemPositionY(dataItem, o.yOpenField, itemLocationY2, o.vcy, exactLocationY); + } + } + } else { + xPos0 = o.xAxis.getDataItemPositionX(dataItem, o.xOpenField, itemLocationX2, o.vcx, exactLocationX); + yPos0 = o.yAxis.getDataItemPositionY(dataItem, o.yOpenField, itemLocationY2, o.vcy, exactLocationY); + } + } + } + let closeIPoint = this.getPoint(xPos0, yPos0); + point[2] = closeIPoint.x; + point[3] = closeIPoint.y; + } + if (o.minDistance > 0) { + const p02 = point[0]; + const p1 = point[1]; + const p2 = point[2]; + const p3 = point[3]; + const prev = this._previousPoint; + const pp0 = prev[0]; + const pp1 = prev[1]; + const pp2 = prev[2]; + const pp3 = prev[3]; + if (Math.hypot(p02 - pp0, p1 - pp1) > o.minDistance || p2 && p3 && Math.hypot(p2 - pp2, p3 - pp3) > o.minDistance) { + points.push(point); + this._previousPoint = point; + } + } else { + points.push(point); + } + } + } + _endLine(_points, _firstPoint) { + } + _drawStroke(graphics, segments) { + if (graphics.get("visible") && !graphics.get("forceHidden")) { + graphics.set("draw", (display) => { + each(segments, (segment) => { + this._strokeGenerator.context(display); + this._strokeGenerator(segment); + }); + }); + } + } + _drawFill(graphics, segments) { + if (graphics.get("visible") && !graphics.get("forceHidden")) { + graphics.set("draw", (display) => { + each(segments, (segment) => { + this._fillGenerator.context(display); + this._fillGenerator(segment); + }); + }); + } + } + _processAxisRange(axisRange) { + super._processAxisRange(axisRange); + axisRange.fills = new ListTemplate(Template.new({}), () => Graphics._new(this._root, { + themeTags: mergeTags(axisRange.fills.template.get("themeTags", []), ["line", "series", "fill"]) + }, [this.fills.template, axisRange.fills.template])); + axisRange.strokes = new ListTemplate(Template.new({}), () => Graphics._new(this._root, { + themeTags: mergeTags(axisRange.strokes.template.get("themeTags", []), ["line", "series", "stroke"]) + }, [this.strokes.template, axisRange.strokes.template])); + } + /** + * @ignore + */ + createLegendMarker(_dataItem) { + const legendDataItem = this.get("legendDataItem"); + if (legendDataItem) { + const marker = legendDataItem.get("marker"); + const markerRectangle = legendDataItem.get("markerRectangle"); + if (markerRectangle) { + markerRectangle.setPrivate("visible", false); + } + marker.set("background", Rectangle.new(marker._root, { fillOpacity: 0, fill: color(0) })); + const legendStroke = marker.children.push(Graphics._new(marker._root, { + themeTags: ["line", "series", "legend", "marker", "stroke"], + interactive: false + }, [this.strokes.template])); + this._legendStroke = legendStroke; + const legendFill = marker.children.push(Graphics._new(marker._root, { + themeTags: ["line", "series", "legend", "marker", "fill"] + }, [this.fills.template])); + this._legendFill = legendFill; + const disabledColor = this._root.interfaceColors.get("disabled"); + legendStroke.states.create("disabled", { fill: disabledColor, stroke: disabledColor }); + legendFill.states.create("disabled", { fill: disabledColor, stroke: disabledColor }); + if (this.bullets.length > 0) { + const bulletFunction = this.bullets.getIndex(0); + if (bulletFunction) { + const bullet = bulletFunction(marker._root, this, new DataItem(this, { legend: true }, {})); + if (bullet) { + const sprite = bullet.get("sprite"); + if (sprite instanceof Graphics) { + sprite.states.create("disabled", { fill: disabledColor, stroke: disabledColor }); + } + if (sprite) { + sprite.setAll({ + tooltipText: void 0, + tooltipHTML: void 0, + focusable: void 0, + focusableGroup: void 0, + ariaLabel: void 0 + }); + marker.children.push(sprite); + sprite.setAll({ x: marker.width() / 2, y: marker.height() / 2 }); + marker.events.on("boundschanged", () => { + sprite.setAll({ x: marker.width() / 2, y: marker.height() / 2 }); + }); + } + } + } + } + } + } + }; + LineSeries.className = "LineSeries"; + LineSeries.classNames = XYSeries.classNames.concat([LineSeries.className]); + + // node_modules/@amcharts/amcharts5/.internal/themes/AnimatedTheme.js + var AnimatedTheme = class extends Theme { + setupDefaultRules() { + super.setupDefaultRules(); + this.rule("Component").setAll({ + interpolationDuration: 600 + }); + this.rule("Hierarchy").set("animationDuration", 600); + this.rule("Scrollbar").set("animationDuration", 600); + this.rule("Tooltip").set("animationDuration", 300); + this.rule("MapChart").set("animationDuration", 1e3); + this.rule("MapChart").set("wheelDuration", 300); + this.rule("Entity").setAll({ + stateAnimationDuration: 600 + }); + this.rule("Sprite").states.create("default", { stateAnimationDuration: 600 }); + this.rule("Tooltip", ["axis"]).setAll({ + animationDuration: 200 + }); + this.rule("WordCloud").set("animationDuration", 500); + this.rule("Polygon").set("animationDuration", 600); + this.rule("ArcDiagram").set("animationDuration", 600); + } + }; + + // node_modules/@amcharts/amcharts5/themes/Animated.js + var Animated_default = AnimatedTheme; + +// .build_tmp/scatter_2_xy-bubble/index.ts + var root = Root.new("chartdiv"); + root.setThemes([ + Animated_default.new(root) + ]); + var chart = root.container.children.push(XYChart.new(root, { + panX: true, + panY: true, + wheelY: "zoomXY" + })); + var xAxis = chart.xAxes.push(ValueAxis.new(root, { + maxDeviation: 1, + renderer: AxisRendererX.new(root, { + pan: "zoom" + }), + tooltip: Tooltip.new(root, {}) + })); + xAxis.children.moveValue(Label.new(root, { + text: "GDP per Capita, USD", + x: p50, + centerX: p50 + }), xAxis.children.length - 1); + var yAxis = chart.yAxes.push(ValueAxis.new(root, { + maxDeviation: 1, + renderer: AxisRendererY.new(root, { + pan: "zoom" + }), + tooltip: Tooltip.new(root, {}) + })); + yAxis.children.moveValue(Label.new(root, { + rotation: -90, + text: "Life expectancy, years", + y: p50, + centerX: p50 + }), 0); + var series = chart.series.push(LineSeries.new(root, { + calculateAggregates: true, + xAxis, + yAxis, + valueYField: "y", + valueXField: "x", + valueField: "value", + tooltip: Tooltip.new(root, { + pointerOrientation: "horizontal", + labelText: "[bold]{title}[/]\nLife expectancy: {valueY.formatNumber('#.0')}\nGDP: {valueX.formatNumber('#,###.')}\nPopulation: {value.formatNumber('#,###.')}" + }) + })); + series.strokes.template.set("visible", false); + var circleTemplate = Template.new({}); + circleTemplate.adapters.add("fill", (fill, target) => { + let dataItem = target.dataItem; + if (dataItem) { + return Color.fromString(dataItem.dataContext.color); + } + return fill; + }); + series.bullets.push(() => { + const bulletCircle = Circle.new(root, { + radius: 5, + fill: series.get("fill"), + fillOpacity: 0.8 + }, circleTemplate); + return Bullet.new(root, { + sprite: bulletCircle + }); + }); + series.set("heatRules", [{ + target: circleTemplate, + min: 3, + max: 60, + dataField: "value", + key: "radius" + }]); + series.data.setAll([ + { + "title": "Afghanistan", + "id": "AF", + "color": "#eea638", + "continent": "asia", + "x": 1349.69694102398, + "y": 60.524, + "value": 33397058 + }, + { + "title": "Albania", + "id": "AL", + "color": "#d8854f", + "continent": "europe", + "x": 6969.30628256456, + "y": 77.185, + "value": 3227373 + }, + { + "title": "Algeria", + "id": "DZ", + "color": "#de4c4f", + "continent": "africa", + "x": 6419.12782939372, + "y": 70.874, + "value": 36485828 + }, + { + "title": "Angola", + "id": "AO", + "color": "#de4c4f", + "continent": "africa", + "x": 5838.15537582502, + "y": 51.498, + "value": 20162517 + }, + { + "title": "Argentina", + "id": "AR", + "color": "#86a965", + "continent": "south_america", + "x": 15714.1031814398, + "y": 76.128, + "value": 41118986 + }, + { + "title": "Armenia", + "id": "AM", + "color": "#d8854f", + "continent": "europe", + "x": 5059.0879636443, + "y": 74.469, + "value": 3108972 + }, + { + "title": "Australia", + "id": "AU", + "color": "#8aabb0", + "continent": "australia", + "x": 36064.7372768548, + "y": 82.364, + "value": 22918688 + }, + { + "title": "Austria", + "id": "AT", + "color": "#d8854f", + "continent": "europe", + "x": 36731.6287741081, + "y": 80.965, + "value": 8428915 + }, + { + "title": "Azerbaijan", + "id": "AZ", + "color": "#d8854f", + "continent": "europe", + "x": 9291.02626998762, + "y": 70.686, + "value": 9421233 + }, + { + "title": "Bahrain", + "id": "BH", + "color": "#eea638", + "continent": "asia", + "x": 24472.896235865, + "y": 76.474, + "value": 1359485 + }, + { + "title": "Bangladesh", + "id": "BD", + "color": "#eea638", + "continent": "asia", + "x": 1792.55023464123, + "y": 70.258, + "value": 152408774 + }, + { + "title": "Belarus", + "id": "BY", + "color": "#d8854f", + "continent": "europe", + "x": 13515.1610255056, + "y": 69.829, + "value": 9527498 + }, + { + "title": "Belgium", + "id": "BE", + "color": "#d8854f", + "continent": "europe", + "x": 32585.0119650436, + "y": 80.373, + "value": 10787788 + }, + { + "title": "Benin", + "id": "BJ", + "color": "#de4c4f", + "continent": "africa", + "x": 1464.13825459126, + "y": 59.165, + "value": 9351838 + }, + { + "title": "Bhutan", + "id": "BT", + "color": "#eea638", + "continent": "asia", + "x": 6130.86235464324, + "y": 67.888, + "value": 750443 + }, + { + "title": "Bolivia", + "id": "BO", + "color": "#86a965", + "continent": "south_america", + "x": 4363.43264453337, + "y": 66.969, + "value": 10248042 + }, + { + "title": "Bosnia and Herzegovina", + "id": "BA", + "color": "#d8854f", + "continent": "europe", + "x": 7664.15281166303, + "y": 76.211, + "value": 3744235 + }, + { + "title": "Botswana", + "id": "BW", + "color": "#de4c4f", + "continent": "africa", + "x": 14045.9403255843, + "y": 47.152, + "value": 2053237 + }, + { + "title": "Brazil", + "id": "BR", + "color": "#86a965", + "continent": "south_america", + "x": 10383.5405937283, + "y": 73.667, + "value": 198360943 + }, + { + "title": "Brunei", + "id": "BN", + "color": "#eea638", + "continent": "asia", + "x": 45658.2532642054, + "y": 78.35, + "value": 412892 + }, + { + "title": "Bulgaria", + "id": "BG", + "color": "#d8854f", + "continent": "europe", + "x": 11669.7223127119, + "y": 73.448, + "value": 7397873 + }, + { + "title": "Burkina Faso", + "id": "BF", + "color": "#de4c4f", + "continent": "africa", + "x": 1363.77981282077, + "y": 55.932, + "value": 17481984 + }, + { + "title": "Burundi", + "id": "BI", + "color": "#de4c4f", + "continent": "africa", + "x": 484.090924612833, + "y": 53.637, + "value": 8749387 + }, + { + "title": "Cambodia", + "id": "KH", + "color": "#eea638", + "continent": "asia", + "x": 2076.68958647462, + "y": 71.577, + "value": 14478320 + }, + { + "title": "Cameroon", + "id": "CM", + "color": "#de4c4f", + "continent": "africa", + "x": 2094.09541317011, + "y": 54.61, + "value": 20468943 + }, + { + "title": "Canada", + "id": "CA", + "color": "#a7a737", + "continent": "north_america", + "x": 35992.8327204722, + "y": 81.323, + "value": 34674708 + }, + { + "title": "Cape Verde", + "id": "CV", + "color": "#de4c4f", + "continent": "africa", + "x": 3896.04113919638, + "y": 74.771, + "value": 505335 + }, + { + "title": "Central African Rep.", + "id": "CF", + "color": "#de4c4f", + "continent": "africa", + "x": 718.264633200085, + "y": 49.517, + "value": 4575586 + }, + { + "title": "Chad", + "id": "TD", + "color": "#de4c4f", + "continent": "africa", + "x": 1768.88201756553, + "y": 50.724, + "value": 11830573 + }, + { + "title": "Chile", + "id": "CL", + "color": "#86a965", + "continent": "south_america", + "x": 15403.7608144625, + "y": 79.691, + "value": 17423214 + }, + { + "title": "China", + "id": "CN", + "color": "#eea638", + "continent": "asia", + "x": 9501.57424554247, + "y": 75.178, + "value": 1353600687 + }, + { + "title": "Colombia", + "id": "CO", + "color": "#86a965", + "continent": "south_america", + "x": 8035.65638212719, + "y": 73.835, + "value": 47550708 + }, + { + "title": "Comoros", + "id": "KM", + "color": "#de4c4f", + "continent": "africa", + "x": 1027.40854349726, + "y": 60.661, + "value": 773344 + }, + { + "title": "Congo, Dem. Rep.", + "id": "CD", + "color": "#de4c4f", + "continent": "africa", + "x": 403.164594003407, + "y": 49.643, + "value": 69575394 + }, + { + "title": "Congo, Rep.", + "id": "CG", + "color": "#de4c4f", + "continent": "africa", + "x": 4106.51173855966, + "y": 58.32, + "value": 4233063 + }, + { + "title": "Costa Rica", + "id": "CR", + "color": "#a7a737", + "continent": "north_america", + "x": 10827.6787293035, + "y": 79.712, + "value": 4793725 + }, + { + "title": "Cote d'Ivoire", + "id": "CI", + "color": "#de4c4f", + "continent": "africa", + "x": 1491.51631215108, + "y": 50.367, + "value": 20594615 + }, + { + "title": "Croatia", + "id": "HR", + "color": "#d8854f", + "continent": "europe", + "x": 13388.9902780816, + "y": 76.881, + "value": 4387376 + }, + { + "title": "Cuba", + "id": "CU", + "color": "#a7a737", + "continent": "north_america", + "x": 10197.4191892126, + "y": 79.088, + "value": 11249266 + }, + { + "title": "Cyprus", + "id": "CY", + "color": "#d8854f", + "continent": "europe", + "x": 23092.089792339, + "y": 79.674, + "value": 1129166 + }, + { + "title": "Czech Rep.", + "id": "CZ", + "color": "#d8854f", + "continent": "europe", + "x": 22565.2975367042, + "y": 77.552, + "value": 10565678 + }, + { + "title": "Denmark", + "id": "DK", + "color": "#d8854f", + "continent": "europe", + "x": 32731.2903910132, + "y": 79.251, + "value": 5592738 + }, + { + "title": "Djibouti", + "id": "DJ", + "color": "#de4c4f", + "continent": "africa", + "x": 2244.60241376688, + "y": 61.319, + "value": 922708 + }, + { + "title": "Dominican Rep.", + "id": "DO", + "color": "#a7a737", + "continent": "north_america", + "x": 6978.89657264408, + "y": 73.181, + "value": 10183339 + }, + { + "title": "Ecuador", + "id": "EC", + "color": "#86a965", + "continent": "south_america", + "x": 7903.09487034651, + "y": 76.195, + "value": 14864987 + }, + { + "title": "Egypt", + "id": "EG", + "color": "#de4c4f", + "continent": "africa", + "x": 6013.821462967, + "y": 70.933, + "value": 83958369 + }, + { + "title": "El Salvador", + "id": "SV", + "color": "#a7a737", + "continent": "north_america", + "x": 5833.63022804714, + "y": 72.361, + "value": 6264129 + }, + { + "title": "Equatorial Guinea", + "id": "GQ", + "color": "#de4c4f", + "continent": "africa", + "x": 13499.2115504397, + "y": 52.562, + "value": 740471 + }, + { + "title": "Eritrea", + "id": "ER", + "color": "#de4c4f", + "continent": "africa", + "x": 613.716963797415, + "y": 62.329, + "value": 5580862 + }, + { + "title": "Estonia", + "id": "EE", + "color": "#d8854f", + "continent": "europe", + "x": 18858.0538247661, + "y": 74.335, + "value": 1339762 + }, + { + "title": "Ethiopia", + "id": "ET", + "color": "#de4c4f", + "continent": "africa", + "x": 958.694705985043, + "y": 62.983, + "value": 86538534 + }, + { + "title": "Fiji", + "id": "FJ", + "color": "#8aabb0", + "continent": "australia", + "x": 4195.03497178682, + "y": 69.626, + "value": 875822 + }, + { + "title": "Finland", + "id": "FI", + "color": "#d8854f", + "continent": "europe", + "x": 31551.9534459533, + "y": 80.362, + "value": 5402627 + }, + { + "title": "France", + "id": "FR", + "color": "#d8854f", + "continent": "europe", + "x": 29896.4182238854, + "y": 81.663, + "value": 63457777 + }, + { + "title": "Gabon", + "id": "GA", + "color": "#de4c4f", + "continent": "africa", + "x": 13853.4616556007, + "y": 63.115, + "value": 1563873 + }, + { + "title": "Gambia", + "id": "GM", + "color": "#de4c4f", + "continent": "africa", + "x": 747.68096900917, + "y": 58.59, + "value": 1824777 + }, + { + "title": "Georgia", + "id": "GE", + "color": "#d8854f", + "continent": "europe", + "x": 4943.23814339098, + "y": 74.162, + "value": 4304363 + }, + { + "title": "Germany", + "id": "DE", + "color": "#d8854f", + "continent": "europe", + "x": 34131.8745974324, + "y": 80.578, + "value": 81990837 + }, + { + "title": "Ghana", + "id": "GH", + "color": "#de4c4f", + "continent": "africa", + "x": 1728.47847396661, + "y": 60.979, + "value": 25545939 + }, + { + "title": "Greece", + "id": "GR", + "color": "#d8854f", + "continent": "europe", + "x": 21811.3302462212, + "y": 80.593, + "value": 11418878 + }, + { + "title": "Guatemala", + "id": "GT", + "color": "#a7a737", + "continent": "north_america", + "x": 5290.75202738533, + "y": 71.77, + "value": 15137569 + }, + { + "title": "Guinea", + "id": "GN", + "color": "#de4c4f", + "continent": "africa", + "x": 965.699260160386, + "y": 55.865, + "value": 10480710 + }, + { + "title": "Guinea-Bissau", + "id": "GW", + "color": "#de4c4f", + "continent": "africa", + "x": 593.074251034428, + "y": 54.054, + "value": 1579632 + }, + { + "title": "Guyana", + "id": "GY", + "color": "#86a965", + "continent": "south_america", + "x": 4265.10644905906, + "y": 66.134, + "value": 757623 + }, + { + "title": "Haiti", + "id": "HT", + "color": "#a7a737", + "continent": "north_america", + "x": 1180.36719611488, + "y": 62.746, + "value": 10255644 + }, + { + "title": "Honduras", + "id": "HN", + "color": "#a7a737", + "continent": "north_america", + "x": 3615.1565803195, + "y": 73.503, + "value": 7912032 + }, + { + "title": "Hong Kong, China", + "id": "HK", + "color": "#eea638", + "continent": "asia", + "x": 43854.4129062733, + "y": 83.199, + "value": 7196450 + }, + { + "title": "Hungary", + "id": "HU", + "color": "#d8854f", + "continent": "europe", + "x": 17065.6047342876, + "y": 74.491, + "value": 9949589 + }, + { + "title": "Iceland", + "id": "IS", + "color": "#d8854f", + "continent": "europe", + "x": 34371.1793657215, + "y": 81.96, + "value": 328290 + }, + { + "title": "India", + "id": "IN", + "color": "#eea638", + "continent": "asia", + "x": 3229.14788745778, + "y": 66.168, + "value": 1258350971 + }, + { + "title": "Indonesia", + "id": "ID", + "color": "#eea638", + "continent": "asia", + "x": 4379.69981934714, + "y": 70.624, + "value": 244769110 + }, + { + "title": "Iran", + "id": "IR", + "color": "#eea638", + "continent": "asia", + "x": 12325.1280322371, + "y": 73.736, + "value": 75611798 + }, + { + "title": "Iraq", + "id": "IQ", + "color": "#eea638", + "continent": "asia", + "x": 4160.84708826172, + "y": 69.181, + "value": 33703068 + }, + { + "title": "Ireland", + "id": "IE", + "color": "#d8854f", + "continent": "europe", + "x": 35856.1099094562, + "y": 80.531, + "value": 4579498 + }, + { + "title": "Israel", + "id": "IL", + "color": "#eea638", + "continent": "asia", + "x": 27321.205182135, + "y": 81.641, + "value": 7694670 + }, + { + "title": "Italy", + "id": "IT", + "color": "#d8854f", + "continent": "europe", + "x": 25811.7393303661, + "y": 82.235, + "value": 60964145 + }, + { + "title": "Jamaica", + "id": "JM", + "color": "#a7a737", + "continent": "north_america", + "x": 6945.70274711582, + "y": 73.338, + "value": 2761331 + }, + { + "title": "Japan", + "id": "JP", + "color": "#eea638", + "continent": "asia", + "x": 31273.9932002261, + "y": 83.418, + "value": 126434653 + }, + { + "title": "Jordan", + "id": "JO", + "color": "#eea638", + "continent": "asia", + "x": 5242.51826246118, + "y": 73.7, + "value": 6457260 + }, + { + "title": "Kazakhstan", + "id": "KZ", + "color": "#eea638", + "continent": "asia", + "x": 11982.6526657273, + "y": 66.394, + "value": 16381297 + }, + { + "title": "Kenya", + "id": "KE", + "color": "#de4c4f", + "continent": "africa", + "x": 1517.69754383602, + "y": 61.115, + "value": 42749418 + }, + { + "title": "Korea, Dem. Rep.", + "id": "KP", + "color": "#eea638", + "continent": "asia", + "x": 1540.44018783769, + "y": 69.701, + "value": 24553672 + }, + { + "title": "Korea, Rep.", + "id": "KR", + "color": "#eea638", + "continent": "asia", + "x": 26199.4035642374, + "y": 81.294, + "value": 48588326 + }, + { + "title": "Kuwait", + "id": "KW", + "color": "#eea638", + "continent": "asia", + "x": 42045.05923634, + "y": 74.186, + "value": 2891553 + }, + { + "title": "Kyrgyzstan", + "id": "KG", + "color": "#eea638", + "continent": "asia", + "x": 2078.20824171434, + "y": 67.37, + "value": 5448085 + }, + { + "title": "Laos", + "id": "LA", + "color": "#eea638", + "continent": "asia", + "x": 2807.04752629832, + "y": 67.865, + "value": 6373934 + }, + { + "title": "Latvia", + "id": "LV", + "color": "#d8854f", + "continent": "europe", + "x": 15575.2762808015, + "y": 72.045, + "value": 2234572 + }, + { + "title": "Lebanon", + "id": "LB", + "color": "#eea638", + "continent": "asia", + "x": 13711.975683994, + "y": 79.716, + "value": 4291719 + }, + { + "title": "Lesotho", + "id": "LS", + "color": "#de4c4f", + "continent": "africa", + "x": 1970.47114938861, + "y": 48.947, + "value": 2216850 + }, + { + "title": "Liberia", + "id": "LR", + "color": "#de4c4f", + "continent": "africa", + "x": 499.809082037359, + "y": 60.23, + "value": 4244684 + }, + { + "title": "Libya", + "id": "LY", + "color": "#de4c4f", + "continent": "africa", + "x": 9136.34462458268, + "y": 75.13, + "value": 6469497 + }, + { + "title": "Lithuania", + "id": "LT", + "color": "#d8854f", + "continent": "europe", + "x": 18469.9748244583, + "y": 71.942, + "value": 3292454 + }, + { + "title": "Macedonia, FYR", + "id": "MK", + "color": "#d8854f", + "continent": "europe", + "x": 8918.81131421927, + "y": 75.041, + "value": 2066785 + }, + { + "title": "Madagascar", + "id": "MG", + "color": "#de4c4f", + "continent": "africa", + "x": 981.478674981018, + "y": 64.28, + "value": 21928518 + }, + { + "title": "Malawi", + "id": "MW", + "color": "#de4c4f", + "continent": "africa", + "x": 848.191013907702, + "y": 54.798, + "value": 15882815 + }, + { + "title": "Malaysia", + "id": "MY", + "color": "#eea638", + "continent": "asia", + "x": 14202.2119391177, + "y": 74.836, + "value": 29321798 + }, + { + "title": "Mali", + "id": "ML", + "color": "#de4c4f", + "continent": "africa", + "x": 1070.55152828447, + "y": 54.622, + "value": 16318897 + }, + { + "title": "Mauritania", + "id": "MR", + "color": "#de4c4f", + "continent": "africa", + "x": 1898.35192059663, + "y": 61.39, + "value": 3622961 + }, + { + "title": "Mauritius", + "id": "MU", + "color": "#de4c4f", + "continent": "africa", + "x": 13082.7750766535, + "y": 73.453, + "value": 1313803 + }, + { + "title": "Mexico", + "id": "MX", + "color": "#a7a737", + "continent": "north_america", + "x": 12030.3862129571, + "y": 77.281, + "value": 116146768 + }, + { + "title": "Moldova", + "id": "MD", + "color": "#d8854f", + "continent": "europe", + "x": 2963.99305976246, + "y": 68.779, + "value": 3519266 + }, + { + "title": "Mongolia", + "id": "MN", + "color": "#eea638", + "continent": "asia", + "x": 4300.13326887206, + "y": 67.286, + "value": 2844081 + }, + { + "title": "Montenegro", + "id": "ME", + "color": "#d8854f", + "continent": "europe", + "x": 10064.1609429569, + "y": 74.715, + "value": 632796 + }, + { + "title": "Morocco", + "id": "MA", + "color": "#de4c4f", + "continent": "africa", + "x": 4514.51993561297, + "y": 70.714, + "value": 32598536 + }, + { + "title": "Mozambique", + "id": "MZ", + "color": "#de4c4f", + "continent": "africa", + "x": 1058.44192915498, + "y": 49.91, + "value": 24475186 + }, + { + "title": "Myanmar", + "id": "MM", + "color": "#eea638", + "continent": "asia", + "x": 1657.04593430092, + "y": 65.009, + "value": 48724387 + }, + { + "title": "Namibia", + "id": "NA", + "color": "#de4c4f", + "continent": "africa", + "x": 5535.83674233219, + "y": 64.014, + "value": 2364433 + }, + { + "title": "Nepal", + "id": "NP", + "color": "#eea638", + "continent": "asia", + "x": 1264.49264527071, + "y": 67.989, + "value": 31011137 + }, + { + "title": "Netherlands", + "id": "NL", + "color": "#d8854f", + "continent": "europe", + "x": 36257.0874018501, + "y": 80.906, + "value": 16714228 + }, + { + "title": "New Zealand", + "id": "NZ", + "color": "#8aabb0", + "continent": "australia", + "x": 25223.5351395532, + "y": 80.982, + "value": 4461257 + }, + { + "title": "Nicaragua", + "id": "NI", + "color": "#a7a737", + "continent": "north_america", + "x": 3098.48351674394, + "y": 74.515, + "value": 5954898 + }, + { + "title": "Niger", + "id": "NE", + "color": "#de4c4f", + "continent": "africa", + "x": 706.79424834157, + "y": 57.934, + "value": 16644339 + }, + { + "title": "Nigeria", + "id": "NG", + "color": "#de4c4f", + "continent": "africa", + "x": 2483.98940927953, + "y": 52.116, + "value": 166629383 + }, + { + "title": "Norway", + "id": "NO", + "color": "#d8854f", + "continent": "europe", + "x": 47383.6245293861, + "y": 81.367, + "value": 4960482 + }, + { + "title": "Oman", + "id": "OM", + "color": "#eea638", + "continent": "asia", + "x": 26292.8480723207, + "y": 76.287, + "value": 2904037 + }, + { + "title": "Pakistan", + "id": "PK", + "color": "#eea638", + "continent": "asia", + "x": 2681.12078190231, + "y": 66.42, + "value": 179951140 + }, + { + "title": "Panama", + "id": "PA", + "color": "#a7a737", + "continent": "north_america", + "x": 13607.1433621853, + "y": 77.342, + "value": 3624991 + }, + { + "title": "Papua New Guinea", + "id": "PG", + "color": "#8aabb0", + "continent": "australia", + "x": 2391.5795121997, + "y": 62.288, + "value": 7170112 + }, + { + "title": "Paraguay", + "id": "PY", + "color": "#86a965", + "continent": "south_america", + "x": 4467.15872465943, + "y": 72.181, + "value": 6682943 + }, + { + "title": "Peru", + "id": "PE", + "color": "#86a965", + "continent": "south_america", + "x": 9277.57076044381, + "y": 74.525, + "value": 29733829 + }, + { + "title": "Philippines", + "id": "PH", + "color": "#eea638", + "continent": "asia", + "x": 3677.10197520058, + "y": 68.538, + "value": 96471461 + }, + { + "title": "Poland", + "id": "PL", + "color": "#d8854f", + "continent": "europe", + "x": 17851.9477668397, + "y": 76.239, + "value": 38317090 + }, + { + "title": "Portugal", + "id": "PT", + "color": "#d8854f", + "continent": "europe", + "x": 19576.4108427574, + "y": 79.732, + "value": 10699333 + }, + { + "title": "Romania", + "id": "RO", + "color": "#d8854f", + "continent": "europe", + "x": 11058.1809744544, + "y": 73.718, + "value": 21387517 + }, + { + "title": "Russia", + "id": "RU", + "color": "#d8854f", + "continent": "europe", + "x": 15427.6167470064, + "y": 67.874, + "value": 142703181 + }, + { + "title": "Rwanda", + "id": "RW", + "color": "#de4c4f", + "continent": "africa", + "x": 1223.52570881561, + "y": 63.563, + "value": 11271786 + }, + { + "title": "Saudi Arabia", + "id": "SA", + "color": "#eea638", + "continent": "asia", + "x": 26259.6213479005, + "y": 75.264, + "value": 28705133 + }, + { + "title": "Senegal", + "id": "SN", + "color": "#de4c4f", + "continent": "africa", + "x": 1753.48800936096, + "y": 63.3, + "value": 13107945 + }, + { + "title": "Serbia", + "id": "RS", + "color": "#d8854f", + "continent": "europe", + "x": 9335.95911484282, + "y": 73.934, + "value": 9846582 + }, + { + "title": "Sierra Leone", + "id": "SL", + "color": "#de4c4f", + "continent": "africa", + "x": 1072.95787930719, + "y": 45.338, + "value": 6126450 + }, + { + "title": "Singapore", + "id": "SG", + "color": "#eea638", + "continent": "asia", + "x": 49381.9560054179, + "y": 82.155, + "value": 5256278 + }, + { + "title": "Slovak Republic", + "id": "SK", + "color": "#d8854f", + "continent": "europe", + "x": 20780.9857840812, + "y": 75.272, + "value": 5480332 + }, + { + "title": "Slovenia", + "id": "SI", + "color": "#d8854f", + "continent": "europe", + "x": 23986.8506836646, + "y": 79.444, + "value": 2040057 + }, + { + "title": "Solomon Islands", + "id": "SB", + "color": "#8aabb0", + "continent": "australia", + "x": 2024.23067334134, + "y": 67.465, + "value": 566481 + }, + { + "title": "Somalia", + "id": "SO", + "color": "#de4c4f", + "continent": "africa", + "x": 953.275713662563, + "y": 54, + "value": 9797445 + }, + { + "title": "South Africa", + "id": "ZA", + "color": "#de4c4f", + "continent": "africa", + "x": 9657.25275417241, + "y": 56.271, + "value": 50738255 + }, + { + "title": "South Sudan", + "id": "SS", + "color": "#de4c4f", + "continent": "africa", + "x": 1433.03720057714, + "y": 54.666, + "value": 10386101 + }, + { + "title": "Spain", + "id": "ES", + "color": "#d8854f", + "continent": "europe", + "x": 26457.7572559653, + "y": 81.958, + "value": 46771596 + }, + { + "title": "Sri Lanka", + "id": "LK", + "color": "#eea638", + "continent": "asia", + "x": 5182.66658831813, + "y": 74.116, + "value": 21223550 + }, + { + "title": "Sudan", + "id": "SD", + "color": "#de4c4f", + "continent": "africa", + "x": 2917.61641581811, + "y": 61.875, + "value": 35335982 + }, + { + "title": "Suriname", + "id": "SR", + "color": "#86a965", + "continent": "south_america", + "x": 8979.80549248675, + "y": 70.794, + "value": 534175 + }, + { + "title": "Swaziland", + "id": "SZ", + "color": "#de4c4f", + "continent": "africa", + "x": 4979.704126513, + "y": 48.91, + "value": 1220408 + }, + { + "title": "Sweden", + "id": "SE", + "color": "#d8854f", + "continent": "europe", + "x": 34530.2628238397, + "y": 81.69, + "value": 9495392 + }, + { + "title": "Switzerland", + "id": "CH", + "color": "#d8854f", + "continent": "europe", + "x": 37678.3928108684, + "y": 82.471, + "value": 7733709 + }, + { + "title": "Syria", + "id": "SY", + "color": "#eea638", + "continent": "asia", + "x": 4432.01553897559, + "y": 71, + "value": 21117690 + }, + { + "title": "Taiwan", + "id": "TW", + "color": "#eea638", + "continent": "asia", + "x": 32840.8623523232, + "y": 79.45, + "value": 23114e3 + }, + { + "title": "Tajikistan", + "id": "TJ", + "color": "#eea638", + "continent": "asia", + "x": 1952.10042735043, + "y": 67.118, + "value": 7078755 + }, + { + "title": "Tanzania", + "id": "TZ", + "color": "#de4c4f", + "continent": "africa", + "x": 1330.05614548839, + "y": 60.885, + "value": 47656367 + }, + { + "title": "Thailand", + "id": "TH", + "color": "#eea638", + "continent": "asia", + "x": 8451.15964058768, + "y": 74.225, + "value": 69892142 + }, + { + "title": "Timor-Leste", + "id": "TL", + "color": "#eea638", + "continent": "asia", + "x": 3466.08281224683, + "y": 67.033, + "value": 1187194 + }, + { + "title": "Togo", + "id": "TG", + "color": "#de4c4f", + "continent": "africa", + "x": 975.396852535221, + "y": 56.198, + "value": 6283092 + }, + { + "title": "Trinidad and Tobago", + "id": "TT", + "color": "#a7a737", + "continent": "north_america", + "x": 17182.0954558471, + "y": 69.761, + "value": 1350999 + }, + { + "title": "Tunisia", + "id": "TN", + "color": "#de4c4f", + "continent": "africa", + "x": 7620.47056462131, + "y": 75.632, + "value": 10704948 + }, + { + "title": "T\xFCrkiye", + "id": "TR", + "color": "#d8854f", + "continent": "europe", + "x": 9287.29312549815, + "y": 74.938, + "value": 74508771 + }, + { + "title": "Turkmenistan", + "id": "TM", + "color": "#eea638", + "continent": "asia", + "x": 7921.2740619558, + "y": 65.299, + "value": 5169660 + }, + { + "title": "Uganda", + "id": "UG", + "color": "#de4c4f", + "continent": "africa", + "x": 1251.09807015907, + "y": 58.668, + "value": 35620977 + }, + { + "title": "Ukraine", + "id": "UA", + "color": "#d8854f", + "continent": "europe", + "x": 6389.58597273257, + "y": 68.414, + "value": 44940268 + }, + { + "title": "United Arab Emirates", + "id": "AE", + "color": "#eea638", + "continent": "asia", + "x": 31980.24143802, + "y": 76.671, + "value": 8105873 + }, + { + "title": "United Kingdom", + "id": "GB", + "color": "#d8854f", + "continent": "europe", + "x": 31295.1431522074, + "y": 80.396, + "value": 62798099 + }, + { + "title": "United States", + "id": "US", + "color": "#a7a737", + "continent": "north_america", + "x": 42296.2316492477, + "y": 78.797, + "value": 315791284 + }, + { + "title": "Uruguay", + "id": "UY", + "color": "#86a965", + "continent": "south_america", + "x": 13179.2310803465, + "y": 77.084, + "value": 3391428 + }, + { + "title": "Uzbekistan", + "id": "UZ", + "color": "#eea638", + "continent": "asia", + "x": 3117.27386553102, + "y": 68.117, + "value": 28077486 + }, + { + "title": "Venezuela", + "id": "VE", + "color": "#86a965", + "continent": "south_america", + "x": 11685.1771941737, + "y": 74.477, + "value": 29890694 + }, + { + "title": "West Bank and Gaza", + "id": "PS", + "color": "#eea638", + "continent": "asia", + "x": 4328.39115760087, + "y": 73.018, + "value": 4270791 + }, + { + "title": "Vietnam", + "id": "VN", + "color": "#eea638", + "continent": "asia", + "x": 3073.64961158389, + "y": 75.793, + "value": 89730274 + }, + { + "title": "Yemen, Rep.", + "id": "YE", + "color": "#eea638", + "continent": "asia", + "x": 2043.7877761328, + "y": 62.923, + "value": 25569263 + }, + { + "title": "Zambia", + "id": "ZM", + "color": "#de4c4f", + "continent": "africa", + "x": 1550.92385858124, + "y": 57.037, + "value": 13883577 + }, + { + "title": "Zimbabwe", + "id": "ZW", + "color": "#de4c4f", + "continent": "africa", + "x": 545.344601005788, + "y": 58.142, + "value": 13013678 + } + ]); + var background = series.get("tooltip").get("background"); + background.set("stroke", root.interfaceColors.get("alternativeBackground")); + background.adapters.add("fill", (fill, target) => { + let dataItem = target.dataItem; + if (dataItem && dataItem.dataContext) { + return Color.fromString(dataItem.dataContext.color); + } + return fill; + }); + chart.set("cursor", XYCursor.new(root, { + xAxis, + yAxis, + snapToSeries: [series] + })); + chart.set("scrollbarX", Scrollbar.new(root, { + orientation: "horizontal" + })); + chart.set("scrollbarY", Scrollbar.new(root, { + orientation: "vertical" + })); + series.appear(1e3); + chart.appear(1e3, 100); +})(); diff --git a/web/amCharts/scatter/chart_0058_scatter.html b/web/amCharts/scatter/chart_0058_scatter.html new file mode 100644 index 0000000000000000000000000000000000000000..8b9bf085f7805f5c7ba57195cc450243a85da421 --- /dev/null +++ b/web/amCharts/scatter/chart_0058_scatter.html @@ -0,0 +1,137 @@ + + + + + + scatter-3 + + + +
+ + + + diff --git a/web/amCharts/scatter/chart_0058_scatter.inline01.js b/web/amCharts/scatter/chart_0058_scatter.inline01.js new file mode 100644 index 0000000000000000000000000000000000000000..25389c505f021c1919799add6d275be03a683f03 --- /dev/null +++ b/web/amCharts/scatter/chart_0058_scatter.inline01.js @@ -0,0 +1,26697 @@ +(() => { +// node_modules/tslib/tslib.es6.mjs + function __awaiter(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Percent.js + var Percent = class _Percent { + /** + * Constructor. + * + * @param percent Percent value + */ + constructor(percent2) { + this._value = percent2; + } + /** + * Relative value. + * + * E.g. 100% is 1, 50% is 0.5, etc. + * + * This is useful to apply transformations to other values. E.g.: + * + * ```TypeScript + * let value = 256; + * let percent = new am5.p50; + * console.log(value * percent.value); // outputs 128 + * ``` + * ```JavaScript + * var value = 256; + * var percent = new am5.p50; + * console.log(value * percent.value); // outputs 128 + * ``` + * + * Alternatively, you can use `am5.percent()` helper function: + * + * ```TypeScript + * let value = 256; + * let percent = am5.p50; + * console.log(value * percent.value); // outputs 128 + * ``` + * ```JavaScript + * var value = 256; + * var percent = am5.p50; + * console.log(value * percent.value); // outputs 128 + * ``` + * + * @readonly + * @return Relative value + */ + get value() { + return this._value / 100; + } + /** + * Value in percent. + * + * @readonly + * @return Percent + */ + get percent() { + return this._value; + } + toString() { + return "" + this._value + "%"; + } + interpolate(min2, max2) { + return min2 + this.value * (max2 - min2); + } + static normalize(percent2, min2, max2) { + if (percent2 instanceof _Percent) { + return percent2; + } else { + if (min2 === max2) { + return new _Percent(0); + } else { + return new _Percent(Math.min(Math.max((percent2 - min2) * (1 / (max2 - min2)), 0), 1) * 100); + } + } + } + }; + function percent(value) { + return new Percent(value); + } + var p0 = percent(0); + var p100 = percent(100); + var p50 = percent(50); + function isPercent(value) { + return value instanceof Percent; + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Type.js + function isNaN2(value) { + return Number(value) !== value; + } + function getType(value) { + return {}.toString.call(value); + } + function toNumber(value) { + if (value != null && !isNumber(value)) { + let converted = Number(value); + if (isNaN2(converted) && isString(value) && value != "" && value.match(/[0-9]+/)) { + const newValue = value.replace(/[^0-9.\-]+/g, ""); + return value === newValue ? converted : toNumber(newValue); + } + return converted; + } + return value; + } + function toDate(value) { + if (isDate(value)) { + return new Date(value); + } else if (isNumber(value)) { + return new Date(value); + } else { + let num = Number(value); + if (!isNumber(num)) { + return new Date(value); + } else { + return new Date(num); + } + } + } + function numberToString(value) { + if (isNaN2(value)) { + return "NaN"; + } + if (value === Infinity) { + return "Infinity"; + } + if (value === -Infinity) { + return "-Infinity"; + } + if (value === 0 && 1 / value === -Infinity) { + return "-0"; + } + let negative = value < 0; + value = Math.abs(value); + let parsed = /^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec("" + value); + let digits = parsed[1]; + let decimals = parsed[2] || ""; + let res; + if (parsed[3] === void 0) { + res = decimals === "" ? digits : digits + "." + decimals; + } else { + let exponent = +parsed[3]; + if (value < 1) { + let zeros = exponent - 1; + res = "0." + repeat("0", zeros) + digits + decimals; + } else { + let zeros = exponent - decimals.length; + if (zeros === 0) { + res = digits + decimals; + } else if (zeros < 0) { + res = digits + decimals.slice(0, zeros) + "." + decimals.slice(zeros); + } else { + res = digits + decimals + repeat("0", zeros); + } + } + } + return negative ? "-" + res : res; + } + function repeat(string, amount) { + return new Array(amount + 1).join(string); + } + function isDate(value) { + return getType(value) === "[object Date]"; + } + function isString(value) { + return typeof value === "string"; + } + function isNumber(value) { + return typeof value === "number" && Number(value) == value; + } + function isObject(value) { + return typeof value === "object" && value !== null; + } + var PLACEHOLDER = "__\xA7\xA7\xA7__"; + var PLACEHOLDER2 = "__\xA7\xA7\xA7\xA7__"; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Array.js + function indexOf(array, value) { + const length = array.length; + for (let i = 0; i < length; ++i) { + if (array[i] === value) { + return i; + } + } + return -1; + } + function any(array, test) { + const length = array.length; + for (let i = 0; i < length; ++i) { + if (test(array[i])) { + return true; + } + } + return false; + } + function map(array, fn) { + const length = array.length; + const output = new Array(length); + for (let i = 0; i < length; ++i) { + output[i] = fn(array[i], i); + } + return output; + } + function each(array, fn) { + const length = array.length; + for (let i = 0; i < length; ++i) { + fn(array[i], i); + } + } + function eachReverse(array, fn) { + let i = array.length; + while (i > 0) { + --i; + fn(array[i], i); + } + } + function eachContinue(array, fn) { + const length = array.length; + for (let i = 0; i < length; ++i) { + if (!fn(array[i], i)) { + break; + } + } + } + function remove(array, element) { + let found = false; + let index = 0; + for (; ; ) { + index = array.indexOf(element, index); + if (index === -1) { + return found; + } else { + found = true; + array.splice(index, 1); + } + } + } + function removeFirst(array, element) { + let index = array.indexOf(element); + if (index !== -1) { + array.splice(index, 1); + return true; + } else { + return false; + } + } + function move(array, element, toIndex) { + let index = indexOf(array, element); + if (index !== -1) { + removeIndex(array, index); + } + if (toIndex == null) { + array.push(element); + } else { + insertIndex(array, toIndex, element); + } + } + function pushOne(array, element) { + if (array.indexOf(element) === -1) { + array.push(element); + } + } + function copy(array) { + const length = array.length; + const output = new Array(length); + for (let i = 0; i < length; ++i) { + output[i] = array[i]; + } + return output; + } + function insertIndex(array, index, value) { + array.splice(index, 0, value); + } + function removeIndex(array, index) { + array.splice(index, 1); + } + function findIndex(array, matches) { + const length = array.length; + for (let i = 0; i < length; ++i) { + if (matches(array[i], i)) { + return i; + } + } + return -1; + } + function findIndexReverse(array, matches) { + let i = array.length; + while (i > 0) { + --i; + if (matches(array[i], i)) { + return i; + } + } + return -1; + } + function find(array, matches) { + const index = findIndex(array, matches); + if (index !== -1) { + return array[index]; + } + } + function findReverse(array, matches) { + const index = findIndexReverse(array, matches); + if (index !== -1) { + return array[index]; + } + } + function getSortedIndex(array, ordering) { + let start = 0; + let end = array.length; + let found = false; + while (start < end) { + const pivot = start + end >> 1; + const order = ordering(array[pivot]); + if (order < 0) { + start = pivot + 1; + } else if (order === 0) { + found = true; + start = pivot + 1; + } else { + end = pivot; + } + } + return { + found, + index: found ? start - 1 : start + }; + } + function getFirstSortedIndex(array, ordering) { + let start = 0; + let end = array.length; + let found = false; + while (start < end) { + const pivot = start + end >> 1; + const order = ordering(array[pivot]); + if (order < 0) { + start = pivot + 1; + } else if (order === 0) { + found = true; + end = pivot; + } else { + end = pivot; + } + } + return { + found, + index: start + }; + } + function keepIf(array, keep) { + let i = array.length; + while (i > 0) { + --i; + if (!keep(array[i])) { + array.splice(i, 1); + } + } + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Object.js + function keys(object) { + return Object.keys(object); + } + function entries(object) { + return Object.entries(object); + } + function keysOrdered(object, order) { + return keys(object).sort(order); + } + function copy2(object) { + return Object.assign({}, object); + } + function each2(object, f) { + keys(object).forEach((key) => { + f(key, object[key]); + }); + } + function eachContinue2(object, fn) { + for (let key in object) { + if (hasKey(object, key)) { + if (!fn(key, object[key])) { + break; + } + } + } + } + function hasKey(object, key) { + return {}.hasOwnProperty.call(object, key); + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Disposer.js + var DisposerClass = class { + /** + * Constructor. + */ + constructor() { + this._disposed = false; + } + /** + * Checks if object is disposed. + * + * @return Disposed? + */ + isDisposed() { + return this._disposed; + } + /** + * Disposes the object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + this._dispose(); + } + } + }; + var Disposer = class { + /** + * Constructor. + * + * @param dispose Function that disposes object + */ + constructor(dispose) { + this._disposed = false; + this._dispose = dispose; + } + /** + * Checks if object is disposed. + * + * @return Disposed? + */ + isDisposed() { + return this._disposed; + } + /** + * Disposes the object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + this._dispose(); + } + } + }; + var ArrayDisposer = class extends DisposerClass { + constructor() { + super(...arguments); + this._disposers = []; + } + _dispose() { + each(this._disposers, (x) => { + x.dispose(); + }); + } + }; + var MultiDisposer = class extends DisposerClass { + constructor(disposers) { + super(); + this._disposers = disposers; + } + _dispose() { + each(this._disposers, (x) => { + x.dispose(); + }); + } + get disposers() { + return this._disposers; + } + }; + var CounterDisposer = class extends Disposer { + constructor() { + super(...arguments); + this._counter = 0; + } + /** + * [increment description] + * + * @todo Description + */ + increment() { + ++this._counter; + return new Disposer(() => { + --this._counter; + if (this._counter === 0) { + this.dispose(); + } + }); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Utils.js + function removeElement(el) { + if (el.parentNode) { + el.parentNode.removeChild(el); + } + } + function addEventListener(dom, type, listener, options) { + dom.addEventListener(type, listener, options || false); + return new Disposer(() => { + dom.removeEventListener(type, listener, options || false); + }); + } + function onZoom(listener) { + return addEventListener(window, "resize", (_ev) => { + listener(); + }); + } + function supports(cap) { + switch (cap) { + case "touchevents": + return window.hasOwnProperty("TouchEvent"); + case "pointerevents": + return window.hasOwnProperty("PointerEvent"); + case "mouseevents": + return window.hasOwnProperty("MouseEvent"); + case "wheelevents": + return window.hasOwnProperty("WheelEvent"); + case "keyboardevents": + return window.hasOwnProperty("KeyboardEvent"); + } + return false; + } + function getPointerId(event) { + let id = event.pointerId || 0; + return id; + } + function blur() { + if (document.activeElement && document.activeElement != document.body) { + if (document.activeElement.blur) { + document.activeElement.blur(); + } else { + let input = document.createElement("button"); + input.style.position = "fixed"; + input.style.top = "0px"; + input.style.left = "-10000px"; + document.body.appendChild(input); + input.focus(); + input.blur(); + document.body.removeChild(input); + } + } + } + function focus(el) { + if (el) { + el.focus(); + } + } + function getRendererEvent(key) { + if (supports("pointerevents")) { + return key; + } else if (supports("touchevents")) { + switch (key) { + case "pointerover": + return "touchstart"; + case "pointerout": + return "touchend"; + case "pointerleave": + return "touchend"; + case "pointerdown": + return "touchstart"; + case "pointermove": + return "touchmove"; + case "pointerup": + return "touchend"; + case "click": + return "click"; + case "dblclick": + return "dblclick"; + } + } else if (supports("mouseevents")) { + switch (key) { + case "pointerover": + return "mouseover"; + case "pointerout": + return "mouseout"; + case "pointerleave": + return "mouseleave"; + case "pointerdown": + return "mousedown"; + case "pointermove": + return "mousemove"; + case "pointerup": + return "mouseup"; + case "click": + return "click"; + case "dblclick": + return "dblclick"; + } + } + return key; + } + function isTouchEvent(ev) { + if (typeof Touch !== "undefined" && ev instanceof Touch) { + return true; + } else if (typeof PointerEvent !== "undefined" && ev instanceof PointerEvent && ev.pointerType != null) { + switch (ev.pointerType) { + case "touch": + case "pen": + case 2: + return true; + case "mouse": + case 4: + return false; + default: + return !(ev instanceof MouseEvent); + } + } else if (ev.type != null) { + if (ev.type.match(/^mouse/)) { + return false; + } + } + return true; + } + function setStyle(dom, property, value) { + dom.style[property] = value; + } + function getStyle(dom, property) { + return dom.style[property]; + } + function getEventTarget(event) { + if (event.composedPath) { + const path = event.composedPath(); + if (path.length === 0) { + return null; + } else { + return path[0]; + } + } else { + return event.target; + } + } + function contains(a, b) { + let cursor2 = b; + while (true) { + if (a === cursor2) { + return true; + } else if (cursor2.parentNode === null) { + if (cursor2.host == null) { + return false; + } else { + cursor2 = cursor2.host; + } + } else { + cursor2 = cursor2.parentNode; + } + } + } + function isLocalEvent(event, target) { + return event.target && contains(target.root.dom, event.target); + } + function setInteractive(target, interactive) { + if (interactive) { + target.style.pointerEvents = "auto"; + } else { + target.style.pointerEvents = "none"; + } + } + function getEventKey(event) { + if (event.key !== void 0) { + return event.key; + } + switch (event.keyCode) { + case 9: + return "Tab"; + case 13: + return "Enter"; + case 16: + return "Shift"; + case 17: + return "Control"; + case 27: + return "Escape"; + case 32: + return " "; + case 37: + return "ArrowLeft"; + case 38: + return "ArrowUp"; + case 39: + return "ArrowRight"; + case 40: + return "ArrowDown"; + case 46: + return "Delete"; + } + return "" + event.keyCode; + } + function iOS() { + return /apple/i.test(navigator.vendor) && "ontouchend" in document; + } + function getSafeResolution() { + return iOS() ? 1 : void 0; + } + function relativeToValue(percent2, full) { + if (isNumber(percent2)) { + return percent2; + } else if (percent2 != null && isNumber(percent2.value) && isNumber(full)) { + return full * percent2.value; + } else { + return 0; + } + } + function decimalPlaces(number) { + let match = ("" + number).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/); + if (!match) { + return 0; + } + return Math.max(0, (match[1] ? match[1].length : 0) - (match[2] ? +match[2] : 0)); + } + function padString(value, len = 0, char = "0") { + if (typeof value !== "string") { + value = value.toString(); + } + return len > value.length ? Array(len - value.length + 1).join(char) + value : value; + } + function trimLeft(text) { + return text.replace(/^[\s]*/, ""); + } + function trimRight(text) { + return text.replace(/[\s]*$/, ""); + } + function trim(text) { + return trimLeft(trimRight(text)); + } + function truncateTextWithEllipsis(text, maxLength, breakWords = false, ellipsis = "...") { + if (text.length > maxLength) { + let lastNonAlphanumericIndex = maxLength - 1; + while (lastNonAlphanumericIndex >= 0 && text.charAt(lastNonAlphanumericIndex).match(/\w/)) { + lastNonAlphanumericIndex--; + } + if (lastNonAlphanumericIndex >= 0 && breakWords == false) { + return text.substring(0, lastNonAlphanumericIndex + 1) + "..."; + } else { + return text.substring(0, maxLength) + ellipsis; + } + } else { + return text; + } + } + function getFormat(format) { + if (typeof format === "undefined") { + return "string"; + } + format = format.toLowerCase().replace(/^\[[^\]]*\]/, ""); + format = format.replace(/\[[^\]]+\]/, ""); + format = format.trim(); + let hints = format.match(/\/(date|number|duration)$/); + if (hints) { + return hints[1]; + } + if (format === "number") { + return "number"; + } + if (format === "date") { + return "date"; + } + if (format === "duration") { + return "duration"; + } + if (format.match(/[#0]/)) { + return "number"; + } + if (format.match(/[ymwdhnsqaxkzgtei]/)) { + return "date"; + } + return "string"; + } + function cleanFormat(format) { + return format.replace(/\/(date|number|duration)$/i, ""); + } + function stripTags(text) { + return text ? text.replace(/<[^>]*>/g, "") : text; + } + function escapeForRgex(value) { + return value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); + } + function splitString(source) { + const rtlChar = /[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/; + const splitPattern = /([^اأدذرزو]*[اأدذرزو])/gi; + let segments = source.split(/(\s+)/); + let result = []; + segments.forEach((segment) => { + if (segment.match(/^\s+$/)) { + if (segment = " ") { + segment = " "; + } + result.push(segment); + } else if (rtlChar.test(segment)) { + let parts = segment.split(splitPattern).filter((part) => part !== ""); + result = result.concat(parts); + } else { + result = result.concat([...segment]); + } + }); + return result; + } + function getYearDay(date, utc = false) { + utc; + const start = new Date(date.getFullYear(), 0, 0); + const diff = date.getTime() - start.getTime() + (start.getTimezoneOffset() - date.getTimezoneOffset()) * 60 * 1e3; + const oneDay = 1e3 * 60 * 60 * 24; + return Math.floor(diff / oneDay); + } + function getWeek(date, _utc = false) { + const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())); + const day = d.getUTCDay() || 7; + d.setUTCDate(d.getUTCDate() + 4 - day); + const firstDay = new Date(Date.UTC(d.getUTCFullYear(), 0, 1)); + return Math.ceil(((d.getTime() - firstDay.getTime()) / 864e5 + 1) / 7); + } + function getWeekYear(date, _utc = false) { + const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())); + const day = d.getUTCDay() || 7; + d.setUTCDate(d.getUTCDate() + 4 - day); + const firstDay = new Date(Date.UTC(d.getUTCFullYear(), 0, 1)); + return firstDay.getFullYear(); + } + function getMonthWeek(date, utc = false) { + const firstWeek = getWeek(new Date(date.getFullYear(), date.getMonth(), 1), utc); + let currentWeek = getWeek(date, utc); + if (currentWeek == 1) { + currentWeek = 53; + } + return currentWeek - firstWeek + 1; + } + function getDayFromWeek(week, year, weekday = 1, utc = false) { + let date = new Date(year, 0, 4, 0, 0, 0, 0); + if (utc) { + date.setUTCFullYear(year); + } + let day = week * 7 + weekday - ((date.getDay() || 7) + 3); + return day; + } + function get12Hours(hours, base) { + if (hours > 12) { + hours -= 12; + } else if (hours === 0) { + hours = 12; + } + return base != null ? hours + (base - 1) : hours; + } + function getTimeZone(date, long = false, savings = false, utc = false, timezone) { + if (utc) { + return long ? "Coordinated Universal Time" : "UTC"; + } else if (timezone) { + const d1 = date.toLocaleString("en-US", { timeZone: timezone }); + const d2 = date.toLocaleString("en-US", { timeZone: timezone, timeZoneName: long ? "long" : "short" }); + return trim(d2.substr(d1.length)); + } + let wotz = date.toLocaleString("UTC"); + let wtz = date.toLocaleString("UTC", { timeZoneName: long ? "long" : "short" }).substr(wotz.length); + if (savings === false) { + wtz = wtz.replace(/ (standard|daylight|summer|winter) /i, " "); + } + return trim(wtz); + } + function getTimezoneOffset(timezone, targetDate) { + const date = targetDate || new Date(Date.UTC(2012, 0, 1, 0, 0, 0, 0)); + const utcDate = new Date(date.toLocaleString("en-US", { timeZone: "UTC" })); + const tzDate = new Date(date.toLocaleString("en-US", { timeZone: timezone })); + return (tzDate.getTime() - utcDate.getTime()) / 6e4 * -1; + } + function capitalizeFirst(text) { + return text.charAt(0).toUpperCase() + text.slice(1); + } + function hslToRgb(color2) { + let r, g, b; + let h = color2.h; + let s2 = color2.s; + let l = color2.l; + if (s2 == 0) { + r = g = b = l; + } else { + let hue2rgb = function hue2rgb2(p2, q2, t) { + if (t < 0) { + t += 1; + } + if (t > 1) { + t -= 1; + } + if (t < 1 / 6) { + return p2 + (q2 - p2) * 6 * t; + } + if (t < 1 / 2) { + return q2; + } + if (t < 2 / 3) { + return p2 + (q2 - p2) * (2 / 3 - t) * 6; + } + return p2; + }; + let q = l < 0.5 ? l * (1 + s2) : l + s2 - l * s2; + let p = 2 * l - q; + r = hue2rgb(p, q, h + 1 / 3); + g = hue2rgb(p, q, h); + b = hue2rgb(p, q, h - 1 / 3); + } + return { + r: Math.round(r * 255), + g: Math.round(g * 255), + b: Math.round(b * 255) + }; + } + function rgbToHsl(color2) { + let r = color2.r / 255; + let g = color2.g / 255; + let b = color2.b / 255; + let max2 = Math.max(r, g, b); + let min2 = Math.min(r, g, b); + let h = 0; + let s2 = 0; + let l = (max2 + min2) / 2; + if (max2 === min2) { + h = s2 = 0; + } else { + let d = max2 - min2; + s2 = l > 0.5 ? d / (2 - max2 - min2) : d / (max2 + min2); + switch (max2) { + case r: + h = (g - b) / d + (g < b ? 6 : 0); + break; + case g: + h = (b - r) / d + 2; + break; + case b: + h = (r - g) / d + 4; + break; + } + h /= 6; + } + return { + h, + s: s2, + l + }; + } + function lighten(rgb, percent2) { + if (rgb) { + return { + r: Math.max(0, Math.min(255, rgb.r + getLightnessStep(rgb.r, percent2))), + g: Math.max(0, Math.min(255, rgb.g + getLightnessStep(rgb.g, percent2))), + b: Math.max(0, Math.min(255, rgb.b + getLightnessStep(rgb.b, percent2))), + a: rgb.a + }; + } else { + return rgb; + } + } + function getLightnessStep(value, percent2) { + let base = percent2 > 0 ? 255 - value : value; + return Math.round(base * percent2); + } + function brighten(rgb, percent2) { + if (rgb) { + let base = Math.min(Math.max(rgb.r, rgb.g, rgb.b), 230); + let step = getLightnessStep(base, percent2); + return { + r: Math.max(0, Math.min(255, Math.round(rgb.r + step))), + g: Math.max(0, Math.min(255, Math.round(rgb.g + step))), + b: Math.max(0, Math.min(255, Math.round(rgb.b + step))), + a: rgb.a + }; + } else { + return rgb; + } + } + function isLight(color2) { + return (color2.r * 299 + color2.g * 587 + color2.b * 114) / 1e3 >= 128; + } + function saturate(rgb, saturation) { + if (rgb === void 0 || saturation == 1) { + return rgb; + } + let hsl = rgbToHsl(rgb); + hsl.s = saturation; + return hslToRgb(hsl); + } + function alternativeColor(color2, lightAlternative = { r: 255, g: 255, b: 255 }, darkAlternative = { r: 255, g: 255, b: 255 }) { + let light = lightAlternative; + let dark = darkAlternative; + if (isLight(darkAlternative)) { + light = darkAlternative; + dark = lightAlternative; + } + return isLight(color2) ? dark : light; + } + function mergeTags(tags1, tags2) { + if (!tags1) { + tags1 = []; + } + return [...tags1, ...tags2].filter((value, index, self) => { + return self.indexOf(value) === index; + }); + } + function sameBounds(a, b) { + if (!b) { + return false; + } + if (a.left != b.left) { + return false; + } + if (a.right != b.right) { + return false; + } + if (a.top != b.top) { + return false; + } + if (a.bottom != b.bottom) { + return false; + } + return true; + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Color.js + function string2hex(string) { + if (string[0] === "#") { + string = string.substr(1); + } + if (string.length == 3) { + string = string[0].repeat(2) + string[1].repeat(2) + string[2].repeat(2); + } + return parseInt(string, 16); + } + function rgba2hex(color2) { + color2 = color2.replace(/[ ]/g, ""); + let matches = color2.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i); + if (matches) { + matches.push("1"); + } else { + matches = color2.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i); + if (!matches) { + return 0; + } + } + let hex = ""; + for (let i = 1; i <= 3; i++) { + let val = parseInt(matches[i]).toString(16); + if (val.length == 1) { + val = "0" + val; + } + hex += val; + } + return string2hex(hex); + } + function color(input) { + return Color.fromAny(input); + } + var Color = class _Color { + constructor(hex) { + this._hex = hex | 0; + } + /** + * Color numeric value. + */ + get hex() { + return this._hex; + } + /** + * Value of color's R channel. + * @return R value + */ + get r() { + return this._hex >>> 16; + } + /** + * Value of color's G channel. + * @return G value + */ + get g() { + return this._hex >> 8 & 255; + } + /** + * Value of color's B channel. + * @return B value + */ + get b() { + return this._hex & 255; + } + /** + * Returns color CSS representation in form of `rgba(r, g, b, a)` string. + * + * @param alpha Opacity + * @return CSS string + */ + toCSS(alpha = 1) { + return "rgba(" + this.r + ", " + this.g + ", " + this.b + ", " + alpha + ")"; + } + /** + * Returns color CSS representation in form of `#rgb` string. + * + * @return CSS string + */ + toCSSHex() { + return "#" + padString(this.r.toString(16), 2) + padString(this.g.toString(16), 2) + padString(this.b.toString(16), 2); + } + /** + * Returns color's HSL info. + * @param alpha Opacity + * @return HSL info + */ + toHSL(alpha = 1) { + return rgbToHsl({ + r: this.r, + g: this.g, + b: this.b, + a: alpha + }); + } + /** + * Converts HSL values into a new [[Color]] object. + * + * @param h H value + * @param s S value + * @param l L value + * @return Color object + */ + static fromHSL(h, s2, l) { + const rgb = hslToRgb({ + h, + s: s2, + l + }); + return this.fromRGB(rgb.r, rgb.g, rgb.b); + } + toString() { + return this.toCSSHex(); + } + /** + * Converts hex number into a new [[Color]] object. + * + * ```TypeScript + * Color.fromHex(0xff0000) // red + * ``` + * ```JavaScript + * Color.fromHex(0xff0000) // red + * ``` + * + * @param hex Hex color + * @return Color + */ + static fromHex(hex) { + return new _Color(hex); + } + /** + * Converts RGB values to a new [[Color]] object. + * + * @param r R value + * @param g G value + * @param b B value + * @return Color + */ + static fromRGB(r, g, b) { + return new _Color((b | 0) + (g << 8) + (r << 16)); + } + /** + * Converts RGB string to a new [[Color]] object. + * + * ```TypeScript + * Color.fromString("#ff0000") // red + * ``` + * ```JavaScript + * Color.fromString("#ff0000") // red + * ``` + * + * @param s RGB string + * @return Color + */ + static fromString(s2) { + return new _Color(string2hex(s2)); + } + /** + * Converts CSS rgba() syntax to a new [[Color]] object. + * + * ```TypeScript + * Color.fromCSS("rgba(255, 0, 0, 1)") // red + * ``` + * ```JavaScript + * Color.fromCSS("rgba(255, 0, 0, 1)") // red + * ``` + * + * @param {string} s [description] + * @return {Color} [description] + */ + static fromCSS(s2) { + return new _Color(rgba2hex(s2)); + } + /** + * Convert to color from virtually anything. + * + * Will throw an exception if unable to resolve the color. + * + * @param s Source + * @return Color + */ + static fromAny(s2) { + if (isString(s2)) { + if (s2[0] == "#") { + return _Color.fromString(s2); + } else if (s2.substr(0, 3) == "rgb") { + return _Color.fromCSS(s2); + } + } else if (isNumber(s2)) { + return _Color.fromHex(s2); + } else if (s2 instanceof _Color) { + return _Color.fromHex(s2.hex); + } + throw new Error("Unknown color syntax: " + s2); + } + /** + * Returns a new [[Color]] object based on either `lightAlternative` or + * `darkAlternative` depending on which one is more contrasting with + * the `color`. + * + * @param color Reference color + * @param lightAlternative Light color + * @param darkAlternative Dark color + * @return Alternative color + */ + static alternative(color2, lightAlternative, darkAlternative) { + const rgb = alternativeColor({ r: color2.r, g: color2.g, b: color2.b }, lightAlternative ? { r: lightAlternative.r, g: lightAlternative.g, b: lightAlternative.b } : void 0, darkAlternative ? { r: darkAlternative.r, g: darkAlternative.g, b: darkAlternative.b } : void 0); + return this.fromRGB(rgb.r, rgb.g, rgb.b); + } + /** + * Returns an intermediate Color between two reference colors depending on + * the progress (`diff`) between the two. + * + * @param diff Progress + * @param from Source color + * @param to Target color + * @param mode Interpolation mode + * @return Color + */ + static interpolate(diff, from, to, mode = "rgb") { + if (mode == "hsl") { + const fromHSL = from.toHSL(); + const toHSL = to.toHSL(); + return _Color.fromHSL(range(diff, fromHSL.h, toHSL.h), range(diff, fromHSL.s, toHSL.s), range(diff, fromHSL.l, toHSL.l)); + } else { + return _Color.fromRGB(range(diff, from.r, to.r), range(diff, from.g, to.g), range(diff, from.b, to.b)); + } + } + /** + * Returns a new [[Color]] lightened by `percent` value. + * + * Use negative value to darken the color. + * + * @param color Source color + * @param percent Percent + * @return New color + */ + static lighten(color2, percent2) { + const rgb = lighten({ r: color2.r, g: color2.g, b: color2.b }, percent2); + return _Color.fromRGB(rgb.r, rgb.g, rgb.b); + } + /** + * Returns a new [[Color]] brightened by `percent` value. + * + * Use negative value to dim the color. + * + * @param color Source color + * @param percent Percent + * @return New color + */ + static brighten(color2, percent2) { + const rgb = brighten({ r: color2.r, g: color2.g, b: color2.b }, percent2); + return _Color.fromRGB(rgb.r, rgb.g, rgb.b); + } + /** + * Returns a new [[Color]] saturated by `percent` value. + * + * Value range is between `0` (fully desaturated), to `1` (full color). + * + * @param color Source color + * @param percent Percent + * @return New color + */ + static saturate(color2, percent2) { + const rgb = saturate({ r: color2.r, g: color2.g, b: color2.b }, percent2); + return _Color.fromRGB(rgb.r, rgb.g, rgb.b); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/EventDispatcher.js + var EventDispatcher = class { + /** + * Constructor + */ + constructor() { + this._listeners = []; + this._killed = []; + this._disabled = {}; + this._iterating = 0; + this._enabled = true; + this._disposed = false; + } + /** + * Returns if this object has been already disposed. + * + * @return Disposed? + */ + isDisposed() { + return this._disposed; + } + /** + * Dispose (destroy) this object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + const a = this._listeners; + this._iterating = 1; + this._listeners = null; + this._disabled = null; + try { + each(a, (x) => { + x.disposer.dispose(); + }); + } finally { + this._killed = null; + this._iterating = null; + } + } + } + /** + * Checks if this particular event dispatcher has any listeners set. + * + * @return Has listeners? + */ + hasListeners() { + return this._listeners.length !== 0; + } + /** + * Checks if this particular event dispatcher has any particular listeners set. + * + * @return Has particular event listeners? + */ + hasListenersByType(type) { + return any(this._listeners, (x) => (x.type === null || x.type === type) && !x.killed); + } + /** + * Enable dispatching of events if they were previously disabled by + * `disable()`. + */ + enable() { + this._enabled = true; + } + /** + * Disable dispatching of events until re-enabled by `enable()`. + */ + disable() { + this._enabled = false; + } + /** + * Enable dispatching particular event, if it was disabled before by + * `disableType()`. + * + * @param type Event type + */ + enableType(type) { + delete this._disabled[type]; + } + /** + * Disable dispatching of events for a certain event type. + * + * Optionally, can set how many dispatches to skip before automatically + * re-enabling the dispatching. + * + * @param type Event type + * @param amount Number of event dispatches to skip + */ + disableType(type, amount = Infinity) { + this._disabled[type] = amount; + } + /** + * Removes listener from dispatcher. + * + * Will throw an exception if such listener does not exists. + * + * @param listener Listener to remove + */ + _removeListener(listener) { + if (this._iterating === 0) { + const index = this._listeners.indexOf(listener); + if (index === -1) { + throw new Error("Invalid state: could not remove listener"); + } + this._listeners.splice(index, 1); + } else { + this._killed.push(listener); + } + } + /** + * Removes existing listener by certain parameters. + * + * @param once Listener's once setting + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + */ + _removeExistingListener(once, type, callback, context) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + this._eachListener((info) => { + if (info.once === once && // TODO is this correct ? + info.type === type && (callback === void 0 || info.callback === callback) && info.context === context) { + info.disposer.dispose(); + } + }); + } + /** + * Checks if dispatching for particular event type is enabled. + * + * @param type Event type + * @return Enabled? + */ + isEnabled(type) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + return this._enabled && this._listeners.length > 0 && this.hasListenersByType(type) && this._disabled[type] === void 0; + } + /** + * Removes all listeners of a particular event type + * + * @param type Listener's type + */ + removeType(type) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + this._eachListener((info) => { + if (info.type === type) { + info.disposer.dispose(); + } + }); + } + /** + * Checks if there's already a listener with specific parameters. + * + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + * @return Has listener? + */ + has(type, callback, context) { + const index = findIndex(this._listeners, (info) => { + return info.once !== true && // Ignoring "once" listeners + info.type === type && (callback === void 0 || info.callback === callback) && info.context === context; + }); + return index !== -1; + } + /** + * Checks whether event of the particular type should be dispatched. + * + * @param type Event type + * @return Dispatch? + */ + _shouldDispatch(type) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + const count = this._disabled[type]; + if (!isNumber(count)) { + return this._enabled; + } else { + if (count <= 1) { + delete this._disabled[type]; + } else { + --this._disabled[type]; + } + return false; + } + } + /** + * [_eachListener description] + * + * All of this extra code is needed when a listener is removed while iterating + * + * @todo Description + * @param fn [description] + */ + _eachListener(fn) { + ++this._iterating; + try { + each(this._listeners, fn); + } finally { + --this._iterating; + if (this._iterating === 0 && this._killed.length !== 0) { + each(this._killed, (killed) => { + this._removeListener(killed); + }); + this._killed.length = 0; + } + } + } + /** + * Dispatches an event immediately without waiting for next cycle. + * + * @param type Event type + * @param event Event object + * @todo automatically add in type and target properties if they are missing + */ + dispatch(type, event) { + if (this._shouldDispatch(type)) { + this._eachListener((listener) => { + if (!listener.killed && (listener.type === null || listener.type === type)) { + if (listener._debounceDelay) { + if (listener._debounceTimeout) { + window.clearTimeout(listener._debounceTimeout); + } + listener._debounceTimeout = window.setTimeout(() => { + listener._debounceTimeout = void 0; + if (!listener.killed) { + listener.dispatch(type, event); + } + }, listener._debounceDelay); + } else { + listener.dispatch(type, event); + } + } + }); + } + } + /** + * Shelves the event to be dispatched within next update cycle. + * + * @param type Event type + * @param event Event object + * @todo automatically add in type and target properties if they are missing + */ + /*public dispatchLater(type: Key, event: T[Key]): void { + if (this._shouldDispatch(type)) { + this._eachListener((listener) => { + // TODO check if it's faster to use an object of listeners rather than a single big array + if (!listener.killed && (listener.type === null || listener.type === type)) { + // TODO if the function throws, maybe it should keep going ? + // TODO dispatch during the update cycle, rather than using whenIdle + $async.whenIdle(() => { + if (!listener.killed) { + listener.dispatch(type, event); + } + }); + } + }); + } + }*/ + /** + * Creates, catalogs and returns an [[EventListener]]. + * + * Event listener can be disposed. + * + * @param once Listener's once setting + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @param dispatch + * @returns An event listener + */ + _on(once, type, callback, context, shouldClone, dispatch, debounceDelay) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + this._removeExistingListener(once, type, callback, context); + const info = { + type, + callback, + context, + shouldClone, + dispatch, + killed: false, + once, + disposer: new Disposer(() => { + info.killed = true; + if (info._debounceTimeout) { + window.clearTimeout(info._debounceTimeout); + } + this._removeListener(info); + }), + _debounceDelay: debounceDelay + }; + this._listeners.push(info); + return info; + } + /** + * Creates an event listener to be invoked on **any** event. + * + * @param callback Callback function + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @returns A disposable event listener + */ + onAll(callback, context, shouldClone = true) { + return this._on(false, null, callback, context, shouldClone, (_type, event) => callback.call(context, event)).disposer; + } + /** + * Creates an event listener to be invoked on a specific event type. + * + * ```TypeScript + * button.events.once("click", (ev) => { + * console.log("Button clicked"); + * }, this); + * ``` + * ```JavaScript + * button.events.once("click", function(ev) { + * console.log("Button clicked"); + * }, this); + * ``` + * + * The above will invoke our custom event handler whenever series we put + * event on is hidden. + * + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @returns A disposable event listener + */ + on(type, callback, context, shouldClone = true) { + return this._on(false, type, callback, context, shouldClone, (_type, event) => callback.call(context, event)).disposer; + } + /** + * Creates a debounced event listener to be invoked on a specific event type. + * + * ```TypeScript + * button.events.onDebounced("click", (ev) => { + * console.log("Button clicked"); + * }, 500, this); + * ``` + * ```JavaScript + * button.events.onDebounced("click", function(ev) { + * console.log("Button clicked"); + * }, 500, this); + * ``` + * + * The above will invoke our custom event handler whenever series we put + * event on is hidden. + * + * @param type Listener's type + * @param callback Callback function + * @param debounceDelay Debounce delay in milliseconds + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @returns A disposable event listener + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Debounced_events} for more info + * @since 5.14.0 + */ + onDebounced(type, callback, debounceDelay, context, shouldClone = true) { + return this._on(false, type, callback, context, shouldClone, (_type, event) => callback.call(context, event), debounceDelay).disposer; + } + /** + * Creates an event listener to be invoked on a specific event type once. + * + * Once the event listener is invoked, it is automatically disposed. + * + * ```TypeScript + * button.events.once("click", (ev) => { + * console.log("Button clicked"); + * }, this); + * ``` + * ```JavaScript + * button.events.once("click", function(ev) { + * console.log("Button clicked"); + * }, this); + * ``` + * + * The above will invoke our custom event handler the first time series we + * put event on is hidden. + * + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + * @param shouldClone Whether the listener should be copied when the EventDispatcher is copied + * @returns A disposable event listener + */ + once(type, callback, context, shouldClone = true) { + const x = this._on(true, type, callback, context, shouldClone, (_type, event) => { + x.disposer.dispose(); + callback.call(context, event); + }); + return x.disposer; + } + /** + * Removes the event listener with specific parameters. + * + * @param type Listener's type + * @param callback Callback function + * @param context Callback context + */ + off(type, callback, context) { + this._removeExistingListener(false, type, callback, context); + } + /** + * Copies all dispatcher parameters, including listeners, from another event + * dispatcher. + * + * @param source Source event dispatcher + * @ignore + */ + copyFrom(source) { + if (this._disposed) { + throw new Error("EventDispatcher is disposed"); + } + if (source === this) { + throw new Error("Cannot copyFrom the same TargetedEventDispatcher"); + } + const disposers = []; + each(source._listeners, (x) => { + if (!x.killed && x.shouldClone) { + if (x.type === null) { + disposers.push(this.onAll(x.callback, x.context)); + } else if (x.once) { + disposers.push(this.once(x.type, x.callback, x.context)); + } else { + disposers.push(this.on(x.type, x.callback, x.context)); + } + } + }); + return new MultiDisposer(disposers); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Animation.js + function waitForAnimations(animations) { + return __awaiter(this, void 0, void 0, function* () { + if (animations !== void 0) { + const promises = []; + each2(animations, (_, animation) => { + promises.push(animation.waitForStop()); + }); + yield Promise.all(promises); + } + }); + } + function range(diff, from, to) { + return from + diff * (to - from); + } + function defaultInterpolate(diff, from, to) { + if (diff >= 1) { + return to; + } else { + return from; + } + } + function percentInterpolate(diff, from, to) { + return new Percent(range(diff, from.percent, to.percent)); + } + function colorInterpolate(diff, from, to) { + return Color.interpolate(diff, from, to); + } + function getInterpolate(from, to) { + if (typeof from === "number" && typeof to === "number") { + return range; + } + if (from instanceof Percent && to instanceof Percent) { + return percentInterpolate; + } + if (from instanceof Color && to instanceof Color) { + return colorInterpolate; + } + return defaultInterpolate; + } + var AnimationState; + (function(AnimationState2) { + AnimationState2[AnimationState2["Stopped"] = 0] = "Stopped"; + AnimationState2[AnimationState2["Playing"] = 1] = "Playing"; + AnimationState2[AnimationState2["Paused"] = 2] = "Paused"; + })(AnimationState || (AnimationState = {})); + + // node_modules/@amcharts/amcharts5/.internal/core/util/List.js + function checkBounds(index, len) { + if (!(index >= 0 && index < len)) { + throw new Error("Index out of bounds: " + index); + } + } + var List = class { + /** + * Constructor + * + * @param initial Inital list of values to add to list + */ + constructor(initial = []) { + this.events = new EventDispatcher(); + this._values = initial; + } + /** + * An array of values in the list. + * + * Do not use this property to add values. Rather use dedicated methods, like + * `push()`, `removeIndex()`, etc. + * + * @readonly + * @return List values + */ + get values() { + return this._values; + } + /** + * Checks if list contains specific item reference. + * + * @param item Item to search for + * @return `true` if found, `false` if not found + */ + contains(value) { + return this._values.indexOf(value) !== -1; + } + /** + * Removes specific item from the list. + * + * @param item An item to remove + */ + removeValue(value) { + let i = 0; + let length = this._values.length; + while (i < length) { + if (this._values[i] === value) { + this.removeIndex(i); + --length; + } else { + ++i; + } + } + } + /** + * Searches the list for specific item and returns its index. + * + * @param item An item to search for + * @return Index or -1 if not found + */ + indexOf(value) { + return indexOf(this._values, value); + } + /** + * Number of items in list. + * + * @readonly + * @return Number of items + */ + get length() { + return this._values.length; + } + /** + * Checks if there's a value at specific index. + * + * @param index Index + * @return Value exists? + */ + hasIndex(index) { + return index >= 0 && index < this._values.length; + } + /** + * Returns an item at specified index. + * + * @param index Index + * @return List item + */ + getIndex(index) { + return this._values[index]; + } + _onPush(newValue) { + if (this.events.isEnabled("push")) { + this.events.dispatch("push", { + type: "push", + target: this, + newValue + }); + } + } + _onInsertIndex(index, newValue) { + if (this.events.isEnabled("insertIndex")) { + this.events.dispatch("insertIndex", { + type: "insertIndex", + target: this, + index, + newValue + }); + } + } + _onSetIndex(index, oldValue, newValue) { + if (this.events.isEnabled("setIndex")) { + this.events.dispatch("setIndex", { + type: "setIndex", + target: this, + index, + oldValue, + newValue + }); + } + } + _onSwap(a, b) { + if (this.events.isEnabled("swap")) { + this.events.dispatch("swap", { + type: "swap", + target: this, + a, + b + }); + } + } + _onRemoveIndex(index, oldValue) { + if (this.events.isEnabled("removeIndex")) { + this.events.dispatch("removeIndex", { + type: "removeIndex", + target: this, + index, + oldValue + }); + } + } + _onMoveIndex(oldIndex, newIndex, value) { + if (this.events.isEnabled("moveIndex")) { + this.events.dispatch("moveIndex", { + type: "moveIndex", + target: this, + oldIndex, + newIndex, + value + }); + } + } + _onClear(oldValues) { + if (this.events.isEnabled("clear")) { + this.events.dispatch("clear", { + type: "clear", + target: this, + oldValues + }); + } + } + /** + * Sets value at specific index. + * + * If there's already a value at the index, it is overwritten. + * + * @param index Index + * @param value New value + * @return New value + */ + setIndex(index, value) { + checkBounds(index, this._values.length); + const oldValue = this._values[index]; + if (oldValue !== value) { + this._values[index] = value; + this._onSetIndex(index, oldValue, value); + } + return oldValue; + } + /** + * Adds an item to the list at a specific index, which pushes all the other + * items further down the list. + * + * @param index Index + * @param item An item to add + */ + insertIndex(index, value) { + checkBounds(index, this._values.length + 1); + insertIndex(this._values, index, value); + this._onInsertIndex(index, value); + return value; + } + /** + * Swaps indexes of two items in the list. + * + * @param a Item 1 + * @param b Item 2 + */ + swap(a, b) { + const len = this._values.length; + checkBounds(a, len); + checkBounds(b, len); + if (a !== b) { + const value_a = this._values[a]; + const value_b = this._values[b]; + this._values[a] = value_b; + this._values[b] = value_a; + this._onSwap(value_a, value_b); + } + } + /** + * Removes a value at specific index. + * + * @param index Index of value to remove + * @return Removed value + */ + removeIndex(index) { + checkBounds(index, this._values.length); + const oldValue = this._values[index]; + removeIndex(this._values, index); + this._onRemoveIndex(index, oldValue); + return oldValue; + } + /** + * Moves an item to a specific index within the list. + * + * If the index is not specified it will move the item to the end of the + * list. + * + * @param value Item to move + * @param index Index to place item at + */ + moveValue(value, toIndex) { + let index = this.indexOf(value); + if (index !== -1) { + removeIndex(this._values, index); + if (toIndex == null) { + const toIndex2 = this._values.length; + this._values.push(value); + this._onMoveIndex(index, toIndex2, value); + } else { + insertIndex(this._values, toIndex, value); + this._onMoveIndex(index, toIndex, value); + } + } else if (toIndex == null) { + this._values.push(value); + this._onPush(value); + } else { + insertIndex(this._values, toIndex, value); + this._onInsertIndex(toIndex, value); + } + return value; + } + /** + * Adds an item to the end of the list. + * + * @param item An item to add + */ + push(value) { + this._values.push(value); + this._onPush(value); + return value; + } + /** + * Adds an item as a first item in the list. + * + * @param item An item to add + */ + unshift(value) { + this.insertIndex(0, value); + return value; + } + /** + * Adds multiple items to the list. + * + * @param items An Array of items to add + */ + pushAll(values) { + each(values, (value) => { + this.push(value); + }); + } + /** + * Copies and adds items from abother list. + * + * @param source A list top copy items from + */ + copyFrom(source) { + this.pushAll(source._values); + } + /** + * Returns the last item from the list, and removes it. + * + * @return Item + */ + pop() { + let index = this._values.length - 1; + return index < 0 ? void 0 : this.removeIndex(this._values.length - 1); + } + /** + * Returns the first item from the list, and removes it. + * + * @return Item + */ + shift() { + return this._values.length ? this.removeIndex(0) : void 0; + } + /** + * Sets multiple items to the list. + * + * All current items are removed. + * + * @param newArray New items + */ + setAll(newArray) { + const old = this._values; + this._values = []; + this._onClear(old); + each(newArray, (value) => { + this._values.push(value); + this._onPush(value); + }); + } + /** + * Removes all items from the list. + */ + clear() { + this.setAll([]); + } + /** + * Returns an ES6 iterator for the list. + */ + *[Symbol.iterator]() { + const length = this._values.length; + for (let i = 0; i < length; ++i) { + yield this._values[i]; + } + } + /** + * Calls `f` for each element in the list. + * + * `f` should have at least one parameter defined which will get a current + * item, with optional second argument - index. + */ + each(f) { + each(this._values, f); + } + /** + * Calls `f` for each element in the list, from right to left. + * + * `f` should have at least one parameter defined which will get a current + * item, with optional second argument - index. + */ + eachReverse(f) { + eachReverse(this._values, f); + } + }; + var ListAutoDispose = class extends List { + constructor() { + super(...arguments); + this.autoDispose = true; + this._disposed = false; + } + /** + * Swaps indexes of two items in the list. + * + * @param a Item 1 + * @param b Item 2 + */ + swap(a, b) { + const currentAutoDispose = this.autoDispose; + this.autoDispose = false; + super.swap(a, b); + this.autoDispose = currentAutoDispose; + } + _onSetIndex(index, oldValue, newValue) { + if (this.autoDispose) { + oldValue.dispose(); + } + super._onSetIndex(index, oldValue, newValue); + } + _onRemoveIndex(index, oldValue) { + if (this.autoDispose) { + oldValue.dispose(); + } + super._onRemoveIndex(index, oldValue); + } + _onClear(oldValues) { + if (this.autoDispose) { + each(oldValues, (x) => { + x.dispose(); + }); + } + super._onClear(oldValues); + } + _dispose() { + if (this.autoDispose) { + each(this._values, (x) => { + x.dispose(); + }); + } + } + isDisposed() { + return this._disposed; + } + dispose() { + if (!this._disposed) { + this._disposed = true; + this._dispose(); + } + } + }; + var ListTemplate = class extends ListAutoDispose { + constructor(template, make) { + super(); + this.template = template; + this.make = make; + } + _dispose() { + super._dispose(); + if (this.autoDispose) { + this.template.dispose(); + } + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Children.js + var Children = class extends List { + constructor(container) { + super(); + this._disposed = false; + this._container = container; + this._events = this.events.onAll((change) => { + if (change.type === "clear") { + each(change.oldValues, (x) => { + this._onRemoved(x); + }); + } else if (change.type === "push") { + this._onInserted(change.newValue); + } else if (change.type === "setIndex") { + this._onRemoved(change.oldValue); + this._onInserted(change.newValue, change.index); + } else if (change.type === "insertIndex") { + this._onInserted(change.newValue, change.index); + } else if (change.type === "removeIndex") { + this._onRemoved(change.oldValue); + } else if (change.type === "moveIndex") { + this._onRemoved(change.value); + this._onInserted(change.value, change.newIndex); + } else { + throw new Error("Unknown IListEvent type"); + } + }); + } + _onInserted(child, index) { + child._setParent(this._container, true); + const childrenDisplay = this._container._childrenDisplay; + if (index === void 0) { + childrenDisplay.addChild(child._display); + } else { + childrenDisplay.addChildAt(child._display, index); + } + } + _onRemoved(child) { + this._container._childrenDisplay.removeChild(child._display); + this._container.markDirtyBounds(); + this._container.markDirty(); + } + /** + * Returns `true` if obejct is disposed. + */ + isDisposed() { + return this._disposed; + } + /** + * Permanently dispose this object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + this._events.dispose(); + each(this.values, (child) => { + child.dispose(); + }); + } + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Math.js + var PI = Math.PI; + var HALFPI = PI / 2; + var RADIANS = PI / 180; + var DEGREES = 180 / PI; + function round(value, precision, floor) { + if (!isNumber(precision) || precision <= 0) { + let rounded = Math.round(value); + if (floor) { + if (rounded - value == 0.5) { + rounded--; + } + } + return rounded; + } else { + let d = Math.pow(10, precision); + return Math.round(value * d) / d; + } + } + function ceil(value, precision) { + if (!isNumber(precision) || precision <= 0) { + return Math.ceil(value); + } else { + let d = Math.pow(10, precision); + return Math.ceil(value * d) / d; + } + } + function fitToRange(value, min2, max2) { + return Math.min(Math.max(value, min2), max2); + } + function sin(angle) { + return Math.sin(RADIANS * angle); + } + function cos(angle) { + return Math.cos(RADIANS * angle); + } + function normalizeAngle(value) { + value = value % 360; + if (value < 0) { + value += 360; + } + return value; + } + function getArcBounds(cx, cy, startAngle, endAngle, radius) { + let minX = Number.MAX_VALUE; + let minY = Number.MAX_VALUE; + let maxX = -Number.MAX_VALUE; + let maxY = -Number.MAX_VALUE; + let bpoints = []; + bpoints.push(getArcPoint(radius, startAngle)); + bpoints.push(getArcPoint(radius, endAngle)); + let fromAngle = Math.min(Math.floor(startAngle / 90) * 90, Math.floor(endAngle / 90) * 90); + let toAngle = Math.max(Math.ceil(startAngle / 90) * 90, Math.ceil(endAngle / 90) * 90); + for (let angle = fromAngle; angle <= toAngle; angle += 90) { + if (angle >= startAngle && angle <= endAngle) { + bpoints.push(getArcPoint(radius, angle)); + } + } + for (let i = 0; i < bpoints.length; i++) { + let pt = bpoints[i]; + if (pt.x < minX) { + minX = pt.x; + } + if (pt.y < minY) { + minY = pt.y; + } + if (pt.x > maxX) { + maxX = pt.x; + } + if (pt.y > maxY) { + maxY = pt.y; + } + } + return { left: cx + minX, top: cy + minY, right: cx + maxX, bottom: cy + maxY }; + } + function getArcPoint(radius, arc) { + return { x: radius * cos(arc), y: radius * sin(arc) }; + } + function inBounds(point, bounds) { + if (point.x >= bounds.left && point.y >= bounds.top && point.x <= bounds.right && point.y <= bounds.bottom) { + return true; + } + return false; + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Ease.js + function linear(t) { + return t; + } + function cubic(t) { + return t * t * t; + } + function out(ease) { + return function(t) { + return 1 - ease(1 - t); + }; + } + var b1 = 4 / 11; + var b2 = 6 / 11; + var b3 = 8 / 11; + var b4 = 3 / 4; + var b5 = 9 / 11; + var b6 = 10 / 11; + var b7 = 15 / 16; + var b8 = 21 / 22; + var b9 = 63 / 64; + var b0 = 1 / b1 / b1; + var tau = 2 * Math.PI; + var amplitude = 1; + var period = 0.3 / tau; + var s = Math.asin(1 / amplitude) * period; + + // node_modules/@amcharts/amcharts5/.internal/core/util/States.js + var State = class { + constructor(entity, settings) { + this._userSettings = {}; + this._entity = entity; + this._settings = settings; + each2(settings, (key) => { + this._userSettings[key] = true; + }); + } + get(key, fallback) { + const value = this._settings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + /** + * @ignore + */ + setRaw(key, value) { + this._settings[key] = value; + } + /** + * Sets a setting `value` for the specified `key` to be set when the state + * is applied. + * + * @param key Setting key + * @param value Setting value + * @return Setting value + */ + set(key, value) { + this._userSettings[key] = true; + this.setRaw(key, value); + } + /** + * Removes a setting value for the specified `key`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + */ + remove(key) { + delete this._userSettings[key]; + delete this._settings[key]; + } + /** + * Sets multiple settings at once. + * + * `settings` must be an object with key: value pairs. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param settings Settings + */ + setAll(settings) { + entries(settings).forEach(([key, value]) => { + this.set(key, value); + }); + } + _eachSetting(f) { + each2(this._settings, f); + } + /** + * Applies the state to the target element. + * + * All setting values are set immediately. + */ + apply() { + const seen = {}; + seen["stateAnimationEasing"] = true; + seen["stateAnimationDuration"] = true; + const defaultState = this._entity.states.lookup("default"); + this._eachSetting((key, value) => { + if (!seen[key]) { + seen[key] = true; + if (this !== defaultState) { + if (!(key in defaultState._settings)) { + defaultState._settings[key] = this._entity.get(key); + } + } + this._entity.set(key, value); + } + }); + } + /** + * Applies the state to the target element. + * + * Returns an object representing all [[Animation]] objects created for + * each setting key transition. + * + * @return Animations + */ + applyAnimate(duration) { + if (duration == null) { + duration = this._settings.stateAnimationDuration; + } + if (duration == null) { + duration = this.get("stateAnimationDuration", this._entity.get("stateAnimationDuration", 0)); + } + let easing = this._settings.stateAnimationEasing; + if (easing == null) { + easing = this.get("stateAnimationEasing", this._entity.get("stateAnimationEasing", cubic)); + } + const defaultState = this._entity.states.lookup("default"); + const seen = {}; + seen["stateAnimationEasing"] = true; + seen["stateAnimationDuration"] = true; + const animations = {}; + this._eachSetting((key, value) => { + if (!seen[key]) { + seen[key] = true; + if (this != defaultState) { + if (!(key in defaultState._settings)) { + defaultState._settings[key] = this._entity.get(key); + } + } + const animation = this._entity.animate({ + key, + to: value, + duration, + easing + }); + if (animation) { + animations[key] = animation; + } + } + }); + return animations; + } + }; + var States = class { + constructor(entity) { + this._states = {}; + this._entity = entity; + } + /** + * Checks if a state by `name` exists. Returns it there is one. + * + * @param name State name + * @return State + */ + lookup(name) { + return this._states[name]; + } + /** + * Sets supplied `settings` on a state by the `name`. + * + * If such state does not yet exists, it is created. + * + * @param name State name + * @param settings Settings + * @return New State + */ + create(name, settings) { + const state = this._states[name]; + if (state) { + state.setAll(settings); + return state; + } else { + const state2 = new State(this._entity, settings); + this._states[name] = state2; + return state2; + } + } + /** + * Removes the state called `name`. + * + * @param name State name + */ + remove(name) { + delete this._states[name]; + } + /** + * Applies a named state to the target element. + * + * @param newState State name + */ + apply(newState) { + const state = this._states[newState]; + if (state) { + state.apply(); + } + this._entity._applyState(newState); + } + /** + * Applies a named state to the element. + * + * Returns an object representing all [[Animation]] objects created for + * each setting key transition. + * + * @param newState State name + * @return Animations + */ + applyAnimate(newState, duration) { + let animations; + const state = this._states[newState]; + if (state) { + animations = state.applyAnimate(duration); + } + this._entity._applyStateAnimated(newState, duration); + return animations; + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/Registry.js + var Registry = class { + constructor() { + this.version = "5.16.0"; + this.licenses = []; + this.entitiesById = {}; + this.rootElements = []; + this.autoDispose = false; + } + }; + var registry = new Registry(); + + // node_modules/@amcharts/amcharts5/.internal/core/util/Order.js + function compare(left, right) { + if (left === right) { + return 0; + } else if (left < right) { + return -1; + } else { + return 1; + } + } + function compareArray(left, right, f) { + const leftLength = left.length; + const rightLength = right.length; + const length = Math.min(leftLength, rightLength); + for (let i = 0; i < length; ++i) { + const order = f(left[i], right[i]); + if (order !== 0) { + return order; + } + } + return compare(leftLength, rightLength); + } + function compareNumber(a, b) { + if (a === b) { + return 0; + } else if (a < b) { + return -1; + } else { + return 1; + } + } + + // node_modules/@amcharts/amcharts5/.internal/core/util/Entity.js + var Adapters = class { + constructor(entity) { + this._callbacks = {}; + this._disabled = {}; + this._entity = entity; + } + /** + * Add a function (`callback`) that will modify value for setting `key`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/adapters/} for more info + */ + add(key, callback) { + let callbacks = this._callbacks[key]; + if (callbacks === void 0) { + callbacks = this._callbacks[key] = []; + } + callbacks.push(callback); + this._entity._markDirtyKey(key); + return new Disposer(() => { + if (removeFirst(callbacks, callback)) { + this._entity._markDirtyKey(key); + } + }); + } + /** + * Removes all adapters for the specific key. + * + * @since 5.1.0 + */ + remove(key) { + const callbacks = this._callbacks[key]; + if (callbacks !== void 0) { + delete this._callbacks[key]; + if (callbacks.length !== 0) { + this._entity._markDirtyKey(key); + } + } + } + /** + * Enables (previously disabled) adapters for specific key. + * + * @since 5.1.0 + */ + enable(key) { + if (this._disabled[key]) { + delete this._disabled[key]; + this._entity._markDirtyKey(key); + } + } + /** + * Disables all adapters for specific key. + * + * @since 5.1.0 + */ + disable(key) { + if (!this._disabled[key]) { + this._disabled[key] = true; + this._entity._markDirtyKey(key); + } + } + /** + * @ignore + */ + fold(key, value) { + if (!this._disabled[key]) { + const callbacks = this._callbacks[key]; + if (callbacks !== void 0) { + for (let i = 0, len = callbacks.length; i < len; ++i) { + value = callbacks[i](value, this._entity, key); + } + } + } + return value; + } + }; + var Animation = class { + constructor(animation, from, to, duration, easing, loops, startingTime) { + this._time = 0; + this._stopped = false; + this._playing = true; + this.events = new EventDispatcher(); + this._animation = animation; + this._from = from; + this._to = to; + this._duration = duration; + this._easing = easing; + this._loops = loops; + this._interpolate = getInterpolate(from, to); + this._oldTime = startingTime; + } + get to() { + return this._to; + } + get from() { + return this._from; + } + get playing() { + return this._playing; + } + get stopped() { + return this._stopped; + } + stop() { + if (!this._stopped) { + this._stopped = true; + this._playing = false; + if (this.events.isEnabled("stopped")) { + this.events.dispatch("stopped", { + type: "stopped", + target: this + }); + } + } + } + pause() { + this._playing = false; + this._oldTime = null; + } + play() { + if (!this._stopped && !this._playing) { + this._playing = true; + this._animation._startAnimation(); + } + } + get percentage() { + return this._time / this._duration; + } + waitForStop() { + return new Promise((resolve, _reject) => { + if (this._stopped) { + resolve(); + } else { + const listener = () => { + stopped.dispose(); + resolve(); + }; + const stopped = this.events.on("stopped", listener); + } + }); + } + _checkEnded() { + if (this._loops > 1) { + --this._loops; + return false; + } else { + return true; + } + } + _run(currentTime) { + if (this._oldTime !== null) { + this._time += currentTime - this._oldTime; + if (this._time > this._duration) { + this._time = this._duration; + } + } + this._oldTime = currentTime; + } + _reset(currentTime) { + this._oldTime = currentTime; + this._time = 0; + } + _value(diff) { + return this._interpolate(this._easing(diff), this._from, this._to); + } + }; + var counter = 0; + var Settings = class { + constructor(settings) { + this.uid = ++counter; + this._privateSettings = {}; + this._settingEvents = {}; + this._privateSettingEvents = {}; + this._prevSettings = {}; + this._prevPrivateSettings = {}; + this._animatingSettings = {}; + this._animatingPrivateSettings = {}; + this._disposed = false; + this._userProperties = {}; + this.enableDispose = true; + this._settings = settings; + } + _checkDirty() { + keys(this._settings).forEach((key) => { + this._userProperties[key] = true; + this._markDirtyKey(key); + }); + } + /** + * @ignore + */ + resetUserSettings() { + this._userProperties = {}; + } + _runAnimation(currentTime) { + let state = AnimationState.Stopped; + if (!this.isDisposed()) { + let playing = false; + let paused = false; + each2(this._animatingSettings, (key, animation) => { + if (animation.stopped) { + this._stopAnimation(key); + } else if (animation.playing) { + animation._run(currentTime); + const diff = animation.percentage; + if (diff >= 1) { + if (animation._checkEnded()) { + this.set(key, animation._value(1)); + } else { + playing = true; + animation._reset(currentTime); + this._set(key, animation._value(1)); + } + } else { + playing = true; + this._set(key, animation._value(diff)); + } + } else { + paused = true; + } + }); + each2(this._animatingPrivateSettings, (key, animation) => { + if (animation.stopped) { + this._stopAnimationPrivate(key); + } else if (animation.playing) { + animation._run(currentTime); + const diff = animation.percentage; + if (diff >= 1) { + if (animation._checkEnded()) { + this.setPrivate(key, animation._value(1)); + } else { + playing = true; + animation._reset(currentTime); + this._setPrivate(key, animation._value(1)); + } + } else { + playing = true; + this._setPrivate(key, animation._value(diff)); + } + } else { + paused = true; + } + }); + if (playing) { + state = AnimationState.Playing; + } else if (paused) { + state = AnimationState.Paused; + } + } + return state; + } + _markDirtyKey(_key) { + this.markDirty(); + } + _markDirtyPrivateKey(_key) { + this.markDirty(); + } + /** + * Sets a callback function to invoke when specific key of settings changes + * or is set. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Settings_value_change} for more info + * @param key Settings key + * @param callback Callback + * @return Disposer for event + */ + on(key, callback) { + let events = this._settingEvents[key]; + if (events === void 0) { + events = this._settingEvents[key] = []; + } + events.push(callback); + return new Disposer(() => { + removeFirst(events, callback); + if (events.length === 0) { + delete this._settingEvents[key]; + } + }); + } + /** + * Removes a callback for when value of a setting changes. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Settings_value_change} for more info + * @param key Private settings key + * @param callback Callback + * @since 5.9.2 + */ + off(key, callback) { + let events = this._settingEvents[key]; + if (events !== void 0 && callback !== void 0) { + removeFirst(events, callback); + } else { + delete this._settingEvents[key]; + } + } + /** + * Sets a callback function to invoke when specific key of private settings + * changes or is set. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Settings_value_change} for more info + * @param key Private settings key + * @param callback Callback + * @return Disposer for event + */ + onPrivate(key, callback) { + let events = this._privateSettingEvents[key]; + if (events === void 0) { + events = this._privateSettingEvents[key] = []; + } + events.push(callback); + return new Disposer(() => { + removeFirst(events, callback); + if (events.length === 0) { + delete this._privateSettingEvents[key]; + } + }); + } + /** + * Removes a callback for when value of a private setting changes. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/events/#Settings_value_change} for more info + * @param key Private settings key + * @param callback Callback + * @since 5.9.2 + */ + offPrivate(key, callback) { + let events = this._privateSettingEvents[key]; + if (events !== void 0 && callback !== void 0) { + removeFirst(events, callback); + } else { + delete this._privateSettingEvents[key]; + } + } + /** + * @ignore + */ + getRaw(key, fallback) { + const value = this._settings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + /** + * Returns `true` if the setting exists. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Settings key + * @return {boolean} Key exists + */ + has(key) { + return key in this._settings; + } + get(key, fallback) { + return this.getRaw(key, fallback); + } + _sendKeyEvent(key, value) { + const events = this._settingEvents[key]; + if (events !== void 0) { + each(events, (callback) => { + callback(value, this, key); + }); + } + } + _sendPrivateKeyEvent(key, value) { + const events = this._privateSettingEvents[key]; + if (events !== void 0) { + each(events, (callback) => { + callback(value, this, key); + }); + } + } + /** + * @ignore + */ + _setRaw(key, old, value) { + this._prevSettings[key] = old; + this._sendKeyEvent(key, value); + } + /** + * @ignore + */ + setRaw(key, value) { + const old = this._settings[key]; + this._settings[key] = value; + if (old !== value) { + this._setRaw(key, old, value); + } + } + /** + * @ignore + */ + _set(key, value) { + const old = this._settings[key]; + this._settings[key] = value; + if (old !== value) { + this._setRaw(key, old, value); + this._markDirtyKey(key); + } + } + _stopAnimation(key) { + const animation = this._animatingSettings[key]; + if (animation) { + delete this._animatingSettings[key]; + animation.stop(); + } + } + /** + * Sets a setting `value` for the specified `key`, and returns the same `value`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + * @param value Setting value + * @return Setting value + */ + set(key, value) { + this._set(key, value); + this._stopAnimation(key); + return value; + } + /** + * Removes a setting value for the specified `key`; + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + */ + remove(key) { + if (key in this._settings) { + this._prevSettings[key] = this._settings[key]; + delete this._settings[key]; + this._sendKeyEvent(key, void 0); + this._markDirtyKey(key); + } + this._stopAnimation(key); + } + /** + * Removes all keys; + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + */ + removeAll() { + each(keys(this._settings), (key) => { + this.remove(key); + }); + } + /** + * Returns a value of a private setting. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/#Private_settings} for more info + */ + getPrivate(key, fallback) { + const value = this._privateSettings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + /** + * @ignore + */ + _setPrivateRaw(key, old, value) { + this._prevPrivateSettings[key] = old; + this._sendPrivateKeyEvent(key, value); + } + /** + * @ignore + */ + setPrivateRaw(key, value) { + const old = this._privateSettings[key]; + this._privateSettings[key] = value; + if (old !== value) { + this._setPrivateRaw(key, old, value); + } + } + /** + * @ignore + */ + _setPrivate(key, value) { + const old = this._privateSettings[key]; + this._privateSettings[key] = value; + if (old !== value) { + this._setPrivateRaw(key, old, value); + this._markDirtyPrivateKey(key); + } + } + _stopAnimationPrivate(key) { + const animation = this._animatingPrivateSettings[key]; + if (animation) { + animation.stop(); + delete this._animatingPrivateSettings[key]; + } + } + /** + * @ignore + */ + setPrivate(key, value) { + this._setPrivate(key, value); + this._stopAnimationPrivate(key); + return value; + } + /** + * @ignore + */ + removePrivate(key) { + if (key in this._privateSettings) { + this._prevPrivateSettings[key] = this._privateSettings[key]; + delete this._privateSettings[key]; + this._markDirtyPrivateKey(key); + } + this._stopAnimationPrivate(key); + } + /** + * Sets multiple settings at once. + * + * `settings` must be an object with key: value pairs. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param settings Settings + */ + setAll(settings) { + each2(settings, (key, value) => { + this.set(key, value); + }); + } + /** + * Animates setting values from current/start values to new ones. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/animations/#Animating_settings} for more info + * @param options Animation options + * @return Animation object + */ + animate(options) { + const key = options.key; + const to = options.to; + const duration = options.duration || 0; + const loops = options.loops || 1; + const from = options.from === void 0 ? this.get(key) : options.from; + const easing = options.easing === void 0 ? linear : options.easing; + if (duration === 0) { + this.set(key, to); + } else { + if (from === void 0 || from === to) { + this.set(key, to); + } else { + this.set(key, from); + const animation2 = this._animatingSettings[key] = new Animation(this, from, to, duration, easing, loops, this._animationTime()); + this._startAnimation(); + return animation2; + } + } + const animation = new Animation(this, from, to, duration, easing, loops, null); + animation.stop(); + return animation; + } + /** + * @ignore + */ + animatePrivate(options) { + const key = options.key; + const to = options.to; + const duration = options.duration || 0; + const loops = options.loops || 1; + const from = options.from === void 0 ? this.getPrivate(key) : options.from; + const easing = options.easing === void 0 ? linear : options.easing; + if (duration === 0) { + this.setPrivate(key, to); + } else { + if (from === void 0 || from === to) { + this.setPrivate(key, to); + } else { + this.setPrivate(key, from); + const animation2 = this._animatingPrivateSettings[key] = new Animation(this, from, to, duration, easing, loops, this._animationTime()); + this._startAnimation(); + return animation2; + } + } + const animation = new Animation(this, from, to, duration, easing, loops, null); + animation.stop(); + return animation; + } + _dispose() { + } + /** + * Returns `true` if this element is disposed. + * + * @return Disposed + */ + isDisposed() { + return this._disposed; + } + /** + * Disposes this object. + */ + dispose() { + if (this.enableDispose && !this._disposed) { + this._disposed = true; + this._dispose(); + } + } + }; + var Entity = class extends Settings { + /** + * IMPORTANT! Do not instantiate this class via `new Class()` syntax. + * + * Use static method `Class.new()` instead. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @ignore + */ + constructor(root2, settings, isReal, templates = []) { + super(settings); + this.states = new States(this); + this.adapters = new Adapters(this); + this.events = this._createEvents(); + this._userPrivateProperties = {}; + this._dirty = {}; + this._dirtyPrivate = {}; + this._templates = []; + this._defaultThemes = []; + this._templateDisposers = []; + this._disposers = []; + this._runSetup = true; + this._disposerProperties = {}; + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + this._root = root2; + this._internalTemplates = templates; + if (settings.id) { + this._registerId(settings.id); + } + } + /** + * Use this method to create an instance of this class. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @param root Root element + * @param settings Settings + * @param template Template + * @return Instantiated object + */ + static new(root2, settings, template) { + const x = new this(root2, settings, true); + x._template = template; + x._afterNew(); + return x; + } + static _new(root2, settings, templates = []) { + const x = new this(root2, settings, true, templates); + x._afterNew(); + return x; + } + _afterNew() { + this._checkDirty(); + let shouldApply = false; + const template = this._template; + if (template) { + shouldApply = true; + template._setObjectTemplate(this); + } + each(this._internalTemplates, (template2) => { + shouldApply = true; + template2._setObjectTemplate(this); + }); + if (shouldApply) { + this._applyTemplates(false); + } + this.states.create("default", {}); + this._setDefaults(); + } + // This is the same as _afterNew, except it also applies the themes. + // This should only be used for classes which don't have a parent (because they extend from Entity and not Sprite). + _afterNewApplyThemes() { + this._checkDirty(); + const template = this._template; + if (template) { + template._setObjectTemplate(this); + } + each(this._internalTemplates, (template2) => { + template2._setObjectTemplate(this); + }); + this.states.create("default", {}); + this._setDefaults(); + this._applyThemes(); + } + _createEvents() { + return new EventDispatcher(); + } + /** + * @ignore + */ + get classNames() { + return this.constructor.classNames; + } + /** + * @ignore + */ + get className() { + return this.constructor.className; + } + _setDefaults() { + } + _setDefaultFn(key, f) { + const value = this.get(key); + if (value) { + return value; + } else { + const value2 = f(); + this.set(key, value2); + return value2; + } + } + _setDefault(key, value) { + if (!this.has(key)) { + super.set(key, value); + } + } + _setRawDefault(key, value) { + if (!this.has(key)) { + super.setRaw(key, value); + } + } + _clearDirty() { + keys(this._dirty).forEach((key) => { + this._dirty[key] = false; + }); + keys(this._dirtyPrivate).forEach((key) => { + this._dirtyPrivate[key] = false; + }); + } + /** + * @ignore + */ + isDirty(key) { + return !!this._dirty[key]; + } + /** + * @ignore + */ + isPrivateDirty(key) { + return !!this._dirtyPrivate[key]; + } + _markDirtyKey(key) { + this._dirty[key] = true; + super._markDirtyKey(key); + } + _markDirtyPrivateKey(key) { + this._dirtyPrivate[key] = true; + super._markDirtyKey(key); + } + /** + * Checks if element is of certain class (or inherits one). + * + * @param type Class name to check + * @return {boolean} Is of class? + */ + isType(type) { + return this.classNames.indexOf(type) !== -1; + } + _pushPropertyDisposer(key, disposer) { + let disposers = this._disposerProperties[key]; + if (disposers === void 0) { + disposers = this._disposerProperties[key] = []; + } + disposers.push(disposer); + return disposer; + } + _disposeProperty(key) { + const disposers = this._disposerProperties[key]; + if (disposers !== void 0) { + each(disposers, (disposer) => { + disposer.dispose(); + }); + delete this._disposerProperties[key]; + } + } + /** + * @todo needs description + * @param value Template + */ + set template(value) { + const template = this._template; + if (template !== value) { + this._template = value; + if (template) { + template._removeObjectTemplate(this); + } + if (value) { + value._setObjectTemplate(this); + } + this._applyTemplates(); + } + } + get template() { + return this._template; + } + /** + * @ignore + */ + markDirty() { + this._root._addDirtyEntity(this); + } + _startAnimation() { + this._root._addAnimation(this); + } + _animationTime() { + return this._root.animationTime; + } + _applyState(_name) { + } + _applyStateAnimated(_name, _duration) { + } + get(key, fallback) { + const value = this.adapters.fold(key, this._settings[key]); + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + /** + * @ignore + */ + isUserSetting(key) { + return this._userProperties[key] || false; + } + /** + * Sets a setting `value` for the specified `key`, and returns the same `value`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + * @param value Setting value + * @return Setting value + */ + set(key, value) { + this._userProperties[key] = true; + return super.set(key, value); + } + /** + * @ignore + */ + setRaw(key, value) { + this._userProperties[key] = true; + super.setRaw(key, value); + } + /** + * Sets a setting `value` for the specified `key` only if the value for this key was not set previously using set method, and returns the same `value`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + * @param value Setting value + * @return Setting value + */ + _setSoft(key, value) { + if (!this._userProperties[key]) { + return super.set(key, value); + } + return value; + } + /** + * Removes a setting value for the specified `key`. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/settings/} for more info + * @param key Setting key + */ + remove(key) { + delete this._userProperties[key]; + this._removeTemplateProperty(key); + } + /** + * @ignore + */ + setPrivate(key, value) { + this._userPrivateProperties[key] = true; + return super.setPrivate(key, value); + } + /** + * @ignore + */ + setPrivateRaw(key, value) { + this._userPrivateProperties[key] = true; + super.setPrivateRaw(key, value); + } + /** + * @ignore + */ + removePrivate(key) { + delete this._userPrivateProperties[key]; + this._removeTemplatePrivateProperty(key); + } + _setTemplateProperty(template, key, value) { + if (!this._userProperties[key]) { + const match = this._findTemplateByKey(key); + if (template === match) { + super.set(key, value); + } + } + } + _setTemplatePrivateProperty(template, key, value) { + if (!this._userPrivateProperties[key]) { + const match = this._findTemplateByPrivateKey(key); + if (template === match) { + super.setPrivate(key, value); + } + } + } + _removeTemplateProperty(key) { + if (!this._userProperties[key]) { + const match = this._findTemplateByKey(key); + if (match) { + super.set(key, match._settings[key]); + } else { + super.remove(key); + } + } + } + _removeTemplatePrivateProperty(key) { + if (!this._userPrivateProperties[key]) { + const match = this._findTemplateByPrivateKey(key); + if (match) { + super.setPrivate(key, match._privateSettings[key]); + } else { + super.removePrivate(key); + } + } + } + _walkParents(f) { + f(this._root._rootContainer); + f(this); + } + // TODO faster version of this method which is specialized to just 1 key + _applyStateByKey(name) { + const other = this.states.create(name, {}); + const seen = {}; + this._eachTemplate((template) => { + const state = template.states.lookup(name); + if (state) { + state._apply(other, seen); + } + }); + each2(other._settings, (key) => { + if (!seen[key] && !other._userSettings[key]) { + other.remove(key); + } + }); + } + _applyTemplate(template, state) { + this._templateDisposers.push(template._apply(this, state)); + each2(template._settings, (key, value) => { + if (!state.settings[key] && !this._userProperties[key]) { + state.settings[key] = true; + super.set(key, value); + } + }); + each2(template._privateSettings, (key, value) => { + if (!state.privateSettings[key] && !this._userPrivateProperties[key]) { + state.privateSettings[key] = true; + super.setPrivate(key, value); + } + }); + if (this._runSetup && template.setup) { + this._runSetup = false; + template.setup(this); + } + } + /** + * Calls the closure with each template and returns the first template which is true + */ + _findStaticTemplate(f) { + if (this._template) { + if (f(this._template)) { + return this._template; + } + } + } + _eachTemplate(f) { + this._findStaticTemplate((template) => { + f(template); + return false; + }); + eachReverse(this._internalTemplates, f); + each(this._templates, f); + } + _applyTemplates(remove2 = true) { + if (remove2) { + this._disposeTemplates(); + } + const state = { + settings: {}, + privateSettings: {}, + states: {} + }; + this._eachTemplate((template) => { + this._applyTemplate(template, state); + }); + if (remove2) { + each2(this._settings, (key) => { + if (!this._userProperties[key] && !state.settings[key]) { + super.remove(key); + } + }); + each2(this._privateSettings, (key) => { + if (!this._userPrivateProperties[key] && !state.privateSettings[key]) { + super.removePrivate(key); + } + }); + } + } + _findTemplate(f) { + const value = this._findStaticTemplate(f); + if (value === void 0) { + const value2 = findReverse(this._internalTemplates, f); + if (value2 === void 0) { + return find(this._templates, f); + } else { + return value2; + } + } else { + return value; + } + } + _findTemplateByKey(key) { + return this._findTemplate((template) => { + return key in template._settings; + }); + } + _findTemplateByPrivateKey(key) { + return this._findTemplate((template) => { + return key in template._privateSettings; + }); + } + _disposeTemplates() { + each(this._templateDisposers, (disposer) => { + disposer.dispose(); + }); + this._templateDisposers.length = 0; + } + _removeTemplates() { + each(this._templates, (template) => { + template._removeObjectTemplate(this); + }); + this._templates.length = 0; + } + _applyThemes(force = false) { + if (this.get("ignoreThemes")) { + return false; + } + let isConnected = false; + const defaults = []; + let themes = []; + const themeTags = /* @__PURE__ */ new Set(); + const tags = this.get("themeTagsSelf"); + if (tags) { + each(tags, (tag) => { + themeTags.add(tag); + }); + } + this._walkParents((entity) => { + if (entity === this._root._rootContainer) { + isConnected = true; + } + if (entity._defaultThemes.length > 0) { + defaults.push(entity._defaultThemes); + } + const theme = entity.get("themes"); + if (theme) { + themes.push(theme); + } + const tags2 = entity.get("themeTags"); + if (tags2) { + each(tags2, (tag) => { + themeTags.add(tag); + }); + } + }); + themes = defaults.concat(themes); + this._removeTemplates(); + if (isConnected || force) { + eachReverse(this.classNames, (name) => { + const allRules = []; + each(themes, (themes2) => { + each(themes2, (theme) => { + const rules = theme._lookupRules(name); + if (rules) { + eachReverse(rules, (rule) => { + const matches = rule.tags.every((tag) => { + return themeTags.has(tag); + }); + if (matches) { + const result = getFirstSortedIndex(allRules, (x) => { + const order = compare(rule.tags.length, x.tags.length); + if (order === 0) { + return compareArray(rule.tags, x.tags, compare); + } else { + return order; + } + }); + allRules.splice(result.index, 0, rule); + } + }); + } + }); + }); + each(allRules, (rule) => { + this._templates.push(rule.template); + rule.template._setObjectTemplate(this); + }); + }); + } + this._applyTemplates(); + if (isConnected || force) { + this._runSetup = false; + } + return isConnected || force; + } + _changed() { + } + _beforeChanged() { + if (this.isDirty("id")) { + const id = this.get("id"); + if (id) { + this._registerId(id); + } + const prevId = this._prevSettings.id; + if (prevId) { + delete this._root.entitiesById[prevId]; + delete registry.entitiesById[prevId]; + } + } + } + _registerId(id) { + if (this._root.entitiesById[id] && this._root.entitiesById[id] !== this) { + throw new Error('An entity with id "' + id + '" already exists.'); + } + this._root.entitiesById[id] = this; + registry.entitiesById[id] = this; + } + _afterChanged() { + } + /** + * @ignore + */ + addDisposer(disposer) { + this._disposers.push(disposer); + return disposer; + } + _dispose() { + super._dispose(); + const template = this._template; + if (template) { + template._removeObjectTemplate(this); + } + each(this._internalTemplates, (template2) => { + template2._removeObjectTemplate(this); + }); + this._removeTemplates(); + this._disposeTemplates(); + this.events.dispose(); + this._disposers.forEach((x) => { + x.dispose(); + }); + each2(this._disposerProperties, (_, disposers) => { + each(disposers, (disposer) => { + disposer.dispose(); + }); + }); + const id = this.get("id"); + if (id) { + delete this._root.entitiesById[id]; + delete registry.entitiesById[id]; + } + } + /** + * Creates and returns a "disposable" timeout. + * + * @param fn Callback + * @param delay Delay in milliseconds + * @return Timeout disposer + */ + setTimeout(fn, delay) { + const id = setTimeout(() => { + this.removeDispose(disposer); + fn(); + }, delay); + const disposer = new Disposer(() => { + clearTimeout(id); + }); + this._disposers.push(disposer); + return disposer; + } + /** + * @ignore + */ + removeDispose(target) { + if (!this.isDisposed()) { + let index = indexOf(this._disposers, target); + if (index > -1) { + this._disposers.splice(index, 1); + } + } + target.dispose(); + } + /** + * @ignore + */ + hasTag(tag) { + return indexOf(this.get("themeTags", []), tag) !== -1; + } + /** + * @ignore + */ + addTag(tag) { + if (!this.hasTag(tag)) { + const tags = this.get("themeTags", []); + tags.push(tag); + this.set("themeTags", tags); + } + } + /** + * @ignore + */ + removeTag(tag) { + if (this.hasTag(tag)) { + const tags = this.get("themeTags", []); + remove(tags, tag); + this.set("themeTags", tags); + } + } + _t(text, locale, ...rest) { + return this._root.language.translate(text, locale, ...rest); + } + /** + * An instance of [[Root]] object. + * + * @readonly + * @since 5.0.6 + * @return Root object + */ + get root() { + return this._root; + } + }; + Entity.className = "Entity"; + Entity.classNames = ["Entity"]; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Template.js + function disposeSettings(settings) { + each2(settings, (_key, value) => { + if (isObject(value) && typeof value.dispose === "function") { + value.enableDispose = true; + value.dispose(); + } + }); + } + var TemplateState = class { + constructor(name, template, settings) { + this._name = name; + this._template = template; + this._settings = settings; + } + _dispose() { + disposeSettings(this._settings); + } + get(key, fallback) { + const value = this._settings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + set(key, value) { + this._settings[key] = value; + this._template._stateChanged(this._name); + } + remove(key) { + delete this._settings[key]; + this._template._stateChanged(this._name); + } + setAll(settings) { + keys(settings).forEach((key) => { + this._settings[key] = settings[key]; + }); + this._template._stateChanged(this._name); + } + _apply(other, seen) { + each2(this._settings, (key, value) => { + if (!seen[key] && !other._userSettings[key]) { + seen[key] = true; + other.setRaw(key, value); + } + }); + } + }; + var TemplateStates = class { + constructor(template) { + this._states = {}; + this._template = template; + } + _dispose() { + each2(this._states, (_key, state) => { + state._dispose(); + }); + } + lookup(name) { + return this._states[name]; + } + create(name, settings) { + const state = this._states[name]; + if (state) { + state.setAll(settings); + return state; + } else { + const state2 = new TemplateState(name, this._template, settings); + this._states[name] = state2; + this._template._stateChanged(name); + return state2; + } + } + remove(name) { + delete this._states[name]; + this._template._stateChanged(name); + } + _apply(entity, state) { + each2(this._states, (key, value) => { + let seen = state.states[key]; + if (seen == null) { + seen = state.states[key] = {}; + } + const other = entity.states.create(key, {}); + value._apply(other, seen); + }); + } + }; + var TemplateAdapters = class { + constructor() { + this._callbacks = {}; + } + add(key, callback) { + let callbacks = this._callbacks[key]; + if (callbacks === void 0) { + callbacks = this._callbacks[key] = []; + } + callbacks.push(callback); + return new Disposer(() => { + removeFirst(callbacks, callback); + if (callbacks.length === 0) { + delete this._callbacks[key]; + } + }); + } + remove(key) { + const callbacks = this._callbacks[key]; + if (callbacks !== void 0) { + delete this._callbacks[key]; + } + } + _apply(entity) { + const disposers = []; + each2(this._callbacks, (key, callbacks) => { + each(callbacks, (callback) => { + disposers.push(entity.adapters.add(key, callback)); + }); + }); + return new MultiDisposer(disposers); + } + }; + var Template = class _Template { + constructor(settings, isReal) { + this._disposed = false; + this._privateSettings = {}; + this._settingEvents = {}; + this._privateSettingEvents = {}; + this._entities = []; + this.states = new TemplateStates(this); + this.adapters = new TemplateAdapters(); + this.events = new EventDispatcher(); + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + this._settings = settings; + } + /** + * Use this method to create an instance of this class. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @param root Root element + * @param settings Settings + * @param template Template + * @return Instantiated object + */ + static new(settings) { + return new _Template(settings, true); + } + _dispose() { + disposeSettings(this._settings); + disposeSettings(this._privateSettings); + } + /** + * Returns `true` if this element is disposed. + * + * @return Disposed + */ + isDisposed() { + return this._disposed; + } + /** + * Disposes this object. + */ + dispose() { + if (!this._disposed) { + this._disposed = true; + this._dispose(); + } + } + _checkDisposed() { + if (this._disposed) { + throw new Error("Template is disposed"); + } + } + /** + * Array of all entities using this template. + */ + get entities() { + return this._entities; + } + get(key, fallback) { + this._checkDisposed(); + const value = this._settings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + setRaw(key, value) { + this._checkDisposed(); + this._settings[key] = value; + } + set(key, value) { + this._checkDisposed(); + if (this._settings[key] !== value) { + this.setRaw(key, value); + this._entities.forEach((entity) => { + entity._setTemplateProperty(this, key, value); + }); + } + } + remove(key) { + this._checkDisposed(); + if (key in this._settings) { + delete this._settings[key]; + this._entities.forEach((entity) => { + entity._removeTemplateProperty(key); + }); + } + } + removeAll() { + this._checkDisposed(); + each2(this._settings, (key, _value) => { + this.remove(key); + }); + } + getPrivate(key, fallback) { + this._checkDisposed(); + const value = this._privateSettings[key]; + if (value !== void 0) { + return value; + } else { + return fallback; + } + } + setPrivateRaw(key, value) { + this._checkDisposed(); + this._privateSettings[key] = value; + return value; + } + setPrivate(key, value) { + this._checkDisposed(); + if (this._privateSettings[key] !== value) { + this.setPrivateRaw(key, value); + this._entities.forEach((entity) => { + entity._setTemplatePrivateProperty(this, key, value); + }); + } + return value; + } + removePrivate(key) { + this._checkDisposed(); + if (key in this._privateSettings) { + delete this._privateSettings[key]; + this._entities.forEach((entity) => { + entity._removeTemplatePrivateProperty(key); + }); + } + } + setAll(value) { + this._checkDisposed(); + each2(value, (key, value2) => { + this.set(key, value2); + }); + } + // TODO code duplication with Properties + on(key, callback) { + this._checkDisposed(); + let events = this._settingEvents[key]; + if (events === void 0) { + events = this._settingEvents[key] = []; + } + events.push(callback); + return new Disposer(() => { + removeFirst(events, callback); + if (events.length === 0) { + delete this._settingEvents[key]; + } + }); + } + // TODO code duplication with Properties + onPrivate(key, callback) { + this._checkDisposed(); + let events = this._privateSettingEvents[key]; + if (events === void 0) { + events = this._privateSettingEvents[key] = []; + } + events.push(callback); + return new Disposer(() => { + removeFirst(events, callback); + if (events.length === 0) { + delete this._privateSettingEvents[key]; + } + }); + } + _apply(entity, state) { + this._checkDisposed(); + const disposers = []; + each2(this._settingEvents, (key, events) => { + each(events, (event) => { + disposers.push(entity.on(key, event)); + }); + }); + each2(this._privateSettingEvents, (key, events) => { + each(events, (event) => { + disposers.push(entity.onPrivate(key, event)); + }); + }); + this.states._apply(entity, state); + disposers.push(this.adapters._apply(entity)); + disposers.push(entity.events.copyFrom(this.events)); + return new MultiDisposer(disposers); + } + _setObjectTemplate(entity) { + this._checkDisposed(); + this._entities.push(entity); + } + _removeObjectTemplate(entity) { + remove(this._entities, entity); + } + _stateChanged(name) { + this._checkDisposed(); + this._entities.forEach((entity) => { + entity._applyStateByKey(name); + }); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/render/Sprite.js + var SpriteEventDispatcher = class _SpriteEventDispatcher extends EventDispatcher { + constructor(sprite) { + super(); + this._rendererDisposers = {}; + this._dispatchParents = true; + this._sprite = sprite; + } + _makePointerEvent(key, event) { + return { + type: key, + originalEvent: event.event, + point: event.point, + simulated: event.simulated, + native: event.native, + target: this._sprite + }; + } + _onRenderer(key, dispatch) { + this._sprite.set("interactive", true); + this._sprite._display.interactive = true; + let events = this._rendererDisposers[key]; + if (events === void 0) { + const disposer = this._sprite._display.on(key, (e) => { + dispatch.call(this, e); + }); + events = this._rendererDisposers[key] = new CounterDisposer(() => { + delete this._rendererDisposers[key]; + disposer.dispose(); + }); + } + return events.increment(); + } + _on(once, type, callback, context, shouldClone, dispatch, debounceDelay) { + const info = super._on(once, type, callback, context, shouldClone, dispatch, debounceDelay); + const rendererEvent = _SpriteEventDispatcher.RENDERER_EVENTS[type]; + if (rendererEvent !== void 0) { + info.disposer = new MultiDisposer([ + info.disposer, + this._onRenderer(type, rendererEvent) + ]); + } + return info; + } + /** + * Will stop any bubbling up of the event to element's parents. + * + * Should be called in an event handler, e.g.: + * + * ```TypeScript + * element.events.on("pointerdown", function(ev) { + * // Do something here and prevent from "pointerdown" bubbling up + * // ... + * ev.target.events.stopParentDispatch(); + * }); + * ``` + * ```JavaScript + * element.events.on("pointerdown", function(ev) { + * // Do something here and prevent from "pointerdown" bubbling up + * // ... + * ev.target.events.stopParentDispatch(); + * }); + * ``` + */ + stopParentDispatch() { + this._dispatchParents = false; + } + /** + * @ignore + */ + dispatchParents(type, event) { + const old = this._dispatchParents; + this._dispatchParents = true; + try { + this.dispatch(type, event); + if (this._dispatchParents && this._sprite.parent) { + this._sprite.parent.events.dispatchParents(type, event); + } + } finally { + this._dispatchParents = old; + } + } + }; + SpriteEventDispatcher.RENDERER_EVENTS = { + "click": function(event) { + if (this.isEnabled("click") && !this._sprite.isDragging() && this._sprite._hasDown() && !this._sprite._hasMoved(this._makePointerEvent("click", event))) { + this.dispatch("click", this._makePointerEvent("click", event)); + } + }, + "rightclick": function(event) { + if (this.isEnabled("rightclick")) { + this.dispatch("rightclick", this._makePointerEvent("rightclick", event)); + } + }, + "middleclick": function(event) { + if (this.isEnabled("middleclick")) { + this.dispatch("middleclick", this._makePointerEvent("middleclick", event)); + } + }, + "dblclick": function(event) { + this.dispatchParents("dblclick", this._makePointerEvent("dblclick", event)); + }, + "pointerover": function(event) { + const sprite = this._sprite; + let dispatch = true; + if (sprite.getPrivate("trustBounds")) { + sprite._getBounds(); + const bounds = sprite.globalBounds(); + if (sprite.isType("Graphics")) { + const strokeWidth = sprite.get("strokeWidth", 1) / 2; + if (strokeWidth >= 1) { + bounds.left -= strokeWidth; + bounds.right += strokeWidth; + bounds.top -= strokeWidth; + bounds.bottom += strokeWidth; + } + } + if (!inBounds(event.point, bounds)) { + dispatch = false; + sprite._root._renderer.removeHovering(sprite._display); + } + } + if (dispatch && this.isEnabled("pointerover")) { + this.dispatch("pointerover", this._makePointerEvent("pointerover", event)); + } + }, + "pointerout": function(event) { + if (this.isEnabled("pointerout")) { + this.dispatch("pointerout", this._makePointerEvent("pointerout", event)); + } + }, + "pointerdown": function(event) { + this.dispatchParents("pointerdown", this._makePointerEvent("pointerdown", event)); + }, + "pointerup": function(event) { + if (this.isEnabled("pointerup")) { + this.dispatch("pointerup", this._makePointerEvent("pointerup", event)); + } + }, + "globalpointerup": function(event) { + if (this.isEnabled("globalpointerup")) { + this.dispatch("globalpointerup", this._makePointerEvent("globalpointerup", event)); + } + }, + "globalpointermove": function(event) { + if (this.isEnabled("globalpointermove")) { + this.dispatch("globalpointermove", this._makePointerEvent("globalpointermove", event)); + } + }, + "wheel": function(event) { + this.dispatchParents("wheel", { + type: "wheel", + target: this._sprite, + originalEvent: event.event, + point: event.point + }); + } + }; + var Sprite = class extends Entity { + constructor() { + super(...arguments); + this._adjustedLocalBounds = { left: 0, right: 0, top: 0, bottom: 0 }; + this._localBounds = { left: 0, right: 0, top: 0, bottom: 0 }; + this._sizeDirty = false; + this._isDragging = false; + this._isHidden = false; + this._isShowing = false; + this._isHiding = false; + this._isDown = false; + this._downPoints = {}; + } + _afterNew() { + this.setPrivateRaw("visible", true); + super._afterNew(); + } + /** + * Marks some setting as dirty. Could be used to trigger adapter. + * @param key + */ + markDirtyKey(key) { + this._markDirtyKey(key); + } + _markDirtyKey(key) { + super._markDirtyKey(key); + if (key == "x" || key == "y" || key == "dx" || key == "dy") { + this.markDirtyBounds(); + this._addPercentagePositionChildren(); + this.markDirtyPosition(); + } + } + _markDirtyPrivateKey(key) { + super._markDirtyPrivateKey(key); + if (key == "x" || key == "y") { + this.markDirtyPosition(); + } + } + _removeTemplateField() { + if (this._templateField) { + this._templateField._removeObjectTemplate(this); + } + } + _createEvents() { + return new SpriteEventDispatcher(this); + } + _processTemplateField() { + let template; + const field = this.get("templateField"); + if (field) { + const dataItem = this.dataItem; + if (dataItem) { + const context = dataItem.dataContext; + if (context) { + template = context[field]; + if (!(template instanceof Template) && template) { + template = Template.new(template); + } + } + } + } + if (this._templateField !== template) { + this._removeTemplateField(); + this._templateField = template; + if (template) { + template._setObjectTemplate(this); + } + this._applyTemplates(); + } + } + // TODO change this to run before the element is added to the parent, so that way + // it doesn't need to apply the themes twice + _setDataItem(dataItem) { + const oldDataItem = this._dataItem; + this._dataItem = dataItem; + this._processTemplateField(); + const eventType = "dataitemchanged"; + if (dataItem != oldDataItem) { + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { + type: eventType, + target: this, + oldDataItem, + newDataItem: dataItem + }); + } + } + } + /** + * A [[DataItem]] used for this element. + * + * NOTE: data item is being assigned automatically in most cases where it + * matters. Use this accessor to set data item only if you know what you're + * doing. + * + * @param value Data item + */ + set dataItem(value) { + this._setDataItem(value); + } + /** + * @return DataItem + */ + get dataItem() { + if (this._dataItem) { + return this._dataItem; + } else { + let parent = this._parent; + while (parent) { + if (parent._dataItem) { + return parent._dataItem; + } else { + parent = parent._parent; + } + } + } + } + _addPercentageSizeChildren() { + let parent = this.parent; + if (parent) { + if (this.get("width") instanceof Percent || this.get("height") instanceof Percent) { + pushOne(parent._percentageSizeChildren, this); + } else { + removeFirst(parent._percentageSizeChildren, this); + } + } + } + _addPercentagePositionChildren() { + let parent = this.parent; + if (parent) { + if (this.get("x") instanceof Percent || this.get("y") instanceof Percent) { + pushOne(parent._percentagePositionChildren, this); + } else { + removeFirst(parent._percentagePositionChildren, this); + } + } + } + /** + * @ignore + */ + markDirtyPosition() { + this._root._addDirtyPosition(this); + } + updatePivotPoint() { + const bounds = this._localBounds; + if (bounds) { + const centerX = this.get("centerX"); + if (centerX != null) { + this._display.pivot.x = bounds.left + relativeToValue(centerX, bounds.right - bounds.left); + } + const centerY = this.get("centerY"); + if (centerY != null) { + this._display.pivot.y = bounds.top + relativeToValue(centerY, bounds.bottom - bounds.top); + } + } + } + _beforeChanged() { + super._beforeChanged(); + this._handleStates(); + if (this.isDirty("tooltip")) { + const previous = this._prevSettings.tooltip; + if (previous) { + previous.dispose(); + } + } + if (this.isDirty("layer") || this.isDirty("layerMargin")) { + this._display.setLayer(this.get("layer"), this.get("layerMargin")); + this.markDirtyLayer(); + } + if (this.isDirty("tooltipPosition")) { + const tooltipMoveDp = this._tooltipMoveDp; + if (tooltipMoveDp) { + tooltipMoveDp.dispose(); + this._tooltipMoveDp = void 0; + } + const tooltipPointerDp = this._tooltipPointerDp; + if (tooltipPointerDp) { + tooltipPointerDp.dispose(); + this._tooltipPointerDp = void 0; + } + if (this.get("tooltipPosition") == "pointer") { + if (this.isHover()) { + this._tooltipMoveDp = this.events.on("globalpointermove", (e) => { + this.showTooltip(e.point); + }); + } + this._tooltipPointerDp = new MultiDisposer([ + this.events.on("pointerover", () => { + this._tooltipMoveDp = this.events.on("globalpointermove", (e) => { + this.showTooltip(e.point); + }); + }), + this.events.on("pointerout", () => { + const tooltipMoveDp2 = this._tooltipMoveDp; + if (tooltipMoveDp2) { + tooltipMoveDp2.dispose(); + this._tooltipMoveDp = void 0; + } + }) + ]); + } + } + } + _handleStates() { + if (this.isDirty("active")) { + if (this.get("active")) { + this.states.applyAnimate("active"); + this.set("ariaChecked", true); + } else { + if (!this.isHidden()) { + this.states.applyAnimate("default"); + } + this.set("ariaChecked", false); + } + this.markDirtyAccessibility(); + } + if (this.isDirty("disabled")) { + if (this.get("disabled")) { + this.states.applyAnimate("disabled"); + this.set("ariaChecked", false); + } else { + if (!this.isHidden()) { + this.states.applyAnimate("default"); + } + this.set("ariaChecked", true); + } + this.markDirtyAccessibility(); + } + } + _changed() { + super._changed(); + const display = this._display; + const events = this.events; + if (this.isDirty("draggable")) { + const draggable = this.get("draggable"); + if (draggable) { + this.set("interactive", true); + this._dragDp = new MultiDisposer([ + events.on("pointerdown", (ev) => { + this.dragStart(ev); + }), + events.on("globalpointermove", (ev) => { + this.dragMove(ev); + }), + events.on("globalpointerup", (ev) => { + this.dragStop(ev); + }) + ]); + } else { + if (this._dragDp) { + this._dragDp.dispose(); + this._dragDp = void 0; + } + } + display.cancelTouch = draggable ? true : false; + } + if (this.isDirty("tooltipText") || this.isDirty("tooltipHTML") || this.isDirty("showTooltipOn")) { + const tooltipText = this.get("tooltipText"); + const tooltipHTML = this.get("tooltipHTML"); + const showTooltipOn = this.get("showTooltipOn", "hover"); + if (this._tooltipDp) { + this._tooltipDp.dispose(); + this._tooltipDp = void 0; + } + if (tooltipText || tooltipHTML) { + if (showTooltipOn == "click") { + this._tooltipDp = new MultiDisposer([ + events.on("click", () => { + this.setTimeout(() => { + const tooltip = this.getTooltip(); + if (tooltip && !tooltip.isHidden() && tooltip.get("tooltipTarget") === this) { + this.hideTooltip(); + } else { + this.showTooltip(); + } + }, 10); + }), + addEventListener(document, "click", (_ev) => { + this.hideTooltip(); + }) + ]); + this._disposers.push(this._tooltipDp); + } else if (showTooltipOn == "always") { + } else { + this._tooltipDp = new MultiDisposer([ + events.on("pointerover", () => { + this.showTooltip(); + }), + events.on("pointerout", () => { + this.hideTooltip(); + }) + ]); + this._disposers.push(this._tooltipDp); + } + } + } + if (this.isDirty("toggleKey")) { + let toggleKey = this.get("toggleKey"); + if (toggleKey && toggleKey != "none") { + this._toggleDp = events.on("click", () => { + if (!this._isDragging) { + this.set(toggleKey, !this.get(toggleKey)); + } + }); + } else { + if (this._toggleDp) { + this._toggleDp.dispose(); + this._toggleDp = void 0; + } + } + } + if (this.isDirty("opacity")) { + display.alpha = Math.max(0, this.get("opacity", 1)); + if (this.get("focusable")) { + this.markDirtyAccessibility(); + } + } + if (this.isDirty("rotation")) { + this.markDirtyBounds(); + display.angle = this.get("rotation", 0); + } + if (this.isDirty("scale")) { + this.markDirtyBounds(); + display.scale = this.get("scale", 0); + } + if (this.isDirty("centerX") || this.isDirty("centerY")) { + this.markDirtyBounds(); + this.updatePivotPoint(); + } + if (this.isDirty("visible") || this.isPrivateDirty("visible") || this.isDirty("forceHidden")) { + if (!this.get("visible") || !this.getPrivate("visible") || this.get("forceHidden")) { + display.visible = false; + this.hideTooltip(); + } else { + display.visible = true; + } + this.markDirtyBounds(); + if (this.get("focusable")) { + this.markDirtyAccessibility(); + } + } + if (this.isDirty("width") || this.isDirty("height")) { + this.markDirtyBounds(); + this._addPercentageSizeChildren(); + const parent = this.parent; + if (parent) { + if (this.isDirty("width") && this.get("width") instanceof Percent || this.isDirty("height") && this.get("height") instanceof Percent) { + parent.markDirty(); + parent._prevWidth = 0; + } + } + this._sizeDirty = true; + } + if (this.isDirty("maxWidth") || this.isDirty("maxHeight") || this.isPrivateDirty("width") || this.isPrivateDirty("height") || this.isDirty("minWidth") || this.isDirty("minHeight") || this.isPrivateDirty("maxWidth") || this.isPrivateDirty("maxHeight") || this.isPrivateDirty("minWidth") || this.isPrivateDirty("minHeight") || this.isDirty("marginLeft") || this.isDirty("marginTop") || this.isDirty("marginRight") || this.isDirty("marginBottom")) { + this.markDirtyBounds(); + this._sizeDirty = true; + } + if (this._sizeDirty) { + this._updateSize(); + } + if (this.isDirty("wheelable")) { + const wheelable = this.get("wheelable"); + if (wheelable) { + this.set("interactive", true); + } + display.wheelable = wheelable ? true : false; + } + if (this.isDirty("tabindexOrder") || this.isDirty("focusableGroup")) { + if (this.get("focusable")) { + this._root._registerTabindexOrder(this); + } else { + this._root._unregisterTabindexOrder(this); + } + } + if (this.isDirty("filter")) { + display.filter = this.get("filter"); + } + let filter = this.get("filter", ""); + if (this.isDirty("blur")) { + const blur2 = this.get("blur", 0); + if (blur2 != 0) { + filter += " blur(" + blur2 + "px)"; + } + } + if (this.isDirty("saturate")) { + const saturate2 = this.get("saturate", 1); + if (saturate2 != 1) { + filter += " saturate(" + saturate2 + ")"; + } + } + if (this.isDirty("brightness")) { + const brightness = this.get("brightness", 1); + if (brightness != 1) { + filter += " brightness(" + brightness + ")"; + } + } + if (this.isDirty("contrast")) { + const contrast = this.get("contrast", 1); + if (contrast != 1) { + filter += " contrast(" + contrast + ")"; + } + } + if (this.isDirty("sepia")) { + const sepia = this.get("sepia", 0); + if (sepia != 0) { + filter += " sepia(" + sepia + ")"; + } + } + if (this.isDirty("hue")) { + const hue = this.get("hue", 0); + if (hue != 0) { + filter += " hue-rotate(" + hue + "deg)"; + } + } + if (this.isDirty("invert")) { + const invert = this.get("invert", 0); + if (invert != 0) { + filter += " invert(" + invert + ")"; + } + } + if (filter) { + display.filter = filter; + } + if (this.isDirty("cursorOverStyle")) { + display.cursorOverStyle = this.get("cursorOverStyle"); + } + if (this.isDirty("hoverOnFocus")) { + if (this.get("hoverOnFocus")) { + this._focusDp = new MultiDisposer([ + events.on("focus", () => { + this.showTooltip(); + }), + events.on("blur", () => { + this.hideTooltip(); + }) + ]); + } else { + if (this._focusDp) { + this._focusDp.dispose(); + this._focusDp = void 0; + } + } + } + if (this.isDirty("focusable")) { + if (this.get("focusable")) { + this._root._registerTabindexOrder(this); + } else { + this._root._unregisterTabindexOrder(this); + } + this.markDirtyAccessibility(); + this._disposers.push(events.on("blur", () => { + this.setPrivateRaw("touchHovering", false); + })); + this._disposers.push(events.once("boundschanged", () => { + this.markDirtyAccessibility(); + })); + } + if (this.isPrivateDirty("focusable")) { + this.markDirtyAccessibility(); + } + if (this.isDirty("role") || this.isDirty("ariaLive") || this.isDirty("ariaChecked") || this.isDirty("ariaHidden") || this.isDirty("ariaOrientation") || this.isDirty("ariaValueNow") || this.isDirty("ariaValueMin") || this.isDirty("ariaValueMax") || this.isDirty("ariaValueText") || this.isDirty("ariaLabel") || this.isDirty("ariaControls")) { + this.markDirtyAccessibility(); + } + if (this.isDirty("exportable")) { + display.exportable = this.get("exportable"); + } + if (this.isDirty("interactive")) { + const events2 = this.events; + if (this.get("interactive") && !events2.isDisposed()) { + this._hoverDp = new MultiDisposer([ + events2.on("click", (ev) => { + if (isTouchEvent(ev.originalEvent)) { + if (!this.getPrivate("touchHovering")) { + this.setTimeout(() => { + this._handleOver(); + if (this.get("tooltipText") || this.get("tooltipHTML")) { + this.showTooltip(); + } + this.setPrivateRaw("touchHovering", true); + this.events.dispatch("pointerover", { + type: "pointerover", + target: ev.target, + originalEvent: ev.originalEvent, + point: ev.point, + simulated: ev.simulated + }); + }, 10); + } + } + }), + events2.on("globalpointerup", (ev) => { + if (isTouchEvent(ev.originalEvent)) { + if (this.getPrivate("touchHovering")) { + this._handleOut(); + if (this.get("tooltipText") || this.get("tooltipHTML")) { + this.hideTooltip(); + } + this.setPrivateRaw("touchHovering", false); + this.events.dispatch("pointerout", { + type: "pointerout", + target: ev.target, + originalEvent: ev.originalEvent, + point: ev.point, + simulated: ev.simulated + }); + } + } + if (this._isDown) { + this._handleUp(ev); + } + }), + events2.on("pointerover", () => { + this._handleOver(); + }), + events2.on("pointerout", () => { + this._handleOut(); + }), + events2.on("pointerdown", (e) => { + this._handleDown(e); + }) + ]); + } else { + this._display.interactive = false; + if (this._hoverDp) { + this._hoverDp.dispose(); + this._hoverDp = void 0; + } + } + } + if (this.isDirty("forceInactive")) { + this._display.inactive = this.get("forceInactive", null); + } + if (this.get("showTooltipOn") == "always" && this._display.visible) { + this.showTooltip(); + } + } + /** + * @ignore + * @todo should this be user-accessible? + */ + dragStart(e) { + this._dragEvent = e; + this.events.stopParentDispatch(); + } + /** + * @ignore + * @todo should this be user-accessible? + */ + dragStop(e) { + this._dragEvent = void 0; + this._dragPoint = void 0; + this.events.stopParentDispatch(); + if (this._isDragging) { + this._isDragging = false; + const type = "dragstop"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { + type, + target: this, + originalEvent: e.originalEvent, + point: e.point, + simulated: e.simulated + }); + } + } + } + _handleOver() { + if (!this.isHidden()) { + if (this.get("active") && this.states.lookup("hoverActive")) { + this.states.applyAnimate("hoverActive"); + } else if (this.get("disabled") && this.states.lookup("hoverDisabled")) { + this.states.applyAnimate("hoverDisabled"); + } else { + this.states.applyAnimate("hover"); + } + if (this.get("draggable") && this._isDown && this.states.lookup("down")) { + this.states.applyAnimate("down"); + } + } + } + _handleOut() { + if (!this.isHidden()) { + if (this.get("active") && this.states.lookup("active")) { + this.states.applyAnimate("active"); + } else if (this.get("disabled") && this.states.lookup("disabled")) { + this.states.applyAnimate("disabled"); + } else { + if (this.states.lookup("hover") || this.states.lookup("hoverActive")) { + this.states.applyAnimate("default"); + } + } + if (this.get("draggable") && this._isDown && this.states.lookup("down")) { + this.states.applyAnimate("down"); + } + } + } + _handleUp(e) { + if (!this.isHidden()) { + if (this.get("active") && this.states.lookup("active")) { + this.states.applyAnimate("active"); + } else if (this.get("disabled") && this.states.lookup("disabled")) { + this.states.applyAnimate("disabled"); + } else if (this.states.lookup("down")) { + if (this.isHover()) { + this.states.applyAnimate("hover"); + } else { + this.states.applyAnimate("default"); + } + } + this._downPoint = void 0; + const pointerId = getPointerId(e.originalEvent); + delete this._downPoints[pointerId]; + if (keys(this._downPoints).length == 0) { + this._isDown = false; + } + } + } + _hasMoved(e) { + const pointerId = getPointerId(e.originalEvent); + const downPoint = this._downPoints[pointerId]; + if (downPoint) { + const x = Math.abs(downPoint.x - e.point.x); + const y = Math.abs(downPoint.y - e.point.y); + return x > 5 || y > 5; + } + return false; + } + _hasDown() { + return keys(this._downPoints).length > 0; + } + _handleDown(e) { + const parent = this.parent; + if (parent && !this.get("draggable")) { + parent._handleDown(e); + } + if (this.get("interactive") && !this.isHidden()) { + if (this.states.lookup("down")) { + this.states.applyAnimate("down"); + } + this._downPoint = { + x: e.point.x, + y: e.point.y + }; + this._isDown = true; + const pointerId = getPointerId(e.originalEvent); + this._downPoints[pointerId] = { + x: e.point.x, + y: e.point.y + }; + } + } + /** + * @ignore + * @todo should this be user-accessible? + */ + dragMove(e) { + let dragEvent = this._dragEvent; + if (dragEvent) { + if (dragEvent.simulated && !e.simulated) { + return true; + } + let angle = 0; + let parent = this.parent; + let scale = 1; + while (parent != null) { + angle += parent.get("rotation", 0); + parent = parent.parent; + if (parent) { + scale *= parent.get("scale", 1); + } + } + let x = (e.point.x - dragEvent.point.x) / scale; + let y = (e.point.y - dragEvent.point.y) / scale; + const events = this.events; + if (dragEvent.simulated && !this._isDragging) { + this._isDragging = true; + this._dragEvent = e; + this._dragPoint = { + x: this.x(), + y: this.y() + }; + const type = "dragstart"; + if (events.isEnabled(type)) { + events.dispatch(type, { + type, + target: this, + originalEvent: e.originalEvent, + point: e.point, + simulated: e.simulated + }); + } + } + if (this._isDragging) { + let dragPoint = this._dragPoint; + this.set("x", dragPoint.x + x * cos(angle) + y * sin(angle)); + this.set("y", dragPoint.y + y * cos(angle) - x * sin(angle)); + const type = "dragged"; + if (events.isEnabled(type)) { + events.dispatch(type, { + type, + target: this, + originalEvent: e.originalEvent, + point: e.point, + simulated: e.simulated + }); + } + } else { + if (Math.hypot(x, y) > 5) { + this._isDragging = true; + this._dragEvent = e; + this._dragPoint = { + x: this.x(), + y: this.y() + }; + const type = "dragstart"; + if (events.isEnabled(type)) { + events.dispatch(type, { + type, + target: this, + originalEvent: e.originalEvent, + point: e.point, + simulated: e.simulated + }); + } + } + } + } + } + _updateSize() { + } + _getBounds() { + this._localBounds = this._display.getLocalBounds(); + } + /** + * Returns depth (how deep in the hierachy of the content tree) of this + * element. + * + * @return Depth + */ + depth() { + let self = this.parent; + let depth = 0; + while (true) { + if (self) { + ++depth; + self = self.parent; + } else { + return depth; + } + } + } + /** + * @ignore + */ + markDirtySize() { + this._sizeDirty = true; + this.markDirty(); + } + /** + * @ignore + */ + markDirtyBounds() { + const display = this._display; + if (this.get("isMeasured")) { + this._root._addDirtyBounds(this); + display.isMeasured = true; + display.invalidateBounds(); + const parent = this.parent; + if (parent && this.get("position") != "absolute") { + if (parent.get("width") == null || parent.get("height") == null || parent.get("layout")) { + parent.markDirtyBounds(); + } + } + if (this.get("focusable")) { + this.markDirtyAccessibility(); + } + } + } + /** + * @ignore + */ + markDirtyAccessibility() { + this._root._invalidateAccessibility(this); + } + /** + * @ignore + */ + markDirtyLayer() { + this._display.markDirtyLayer(true); + } + /** + * @ignore + */ + markDirty() { + super.markDirty(); + this.markDirtyLayer(); + } + _updateBounds() { + const oldBounds = this._adjustedLocalBounds; + let newBounds; + if (!this.get("visible") || !this.getPrivate("visible") || this.get("forceHidden")) { + newBounds = { + left: 0, + right: 0, + top: 0, + bottom: 0 + }; + this._localBounds = newBounds; + this._adjustedLocalBounds = newBounds; + } else { + this._getBounds(); + this._fixMinBounds(this._localBounds); + this.updatePivotPoint(); + this._adjustedLocalBounds = this._display.getAdjustedBounds(this._localBounds); + newBounds = this._adjustedLocalBounds; + } + if (!oldBounds || (oldBounds.left !== newBounds.left || oldBounds.top !== newBounds.top || oldBounds.right !== newBounds.right || oldBounds.bottom !== newBounds.bottom)) { + const eventType = "boundschanged"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this }); + } + if (this.parent) { + this.parent.markDirty(); + this.parent.markDirtyBounds(); + } + if (this.getPrivate("showingTooltip")) { + this.showTooltip(); + } + } + } + _fixMinBounds(bounds) { + let minWidth = this.get("minWidth", this.getPrivate("minWidth")); + let minHeight = this.get("minHeight", this.getPrivate("minHeight")); + if (isNumber(minWidth)) { + if (bounds.right - bounds.left < minWidth) { + bounds.right = bounds.left + minWidth; + } + } + if (isNumber(minHeight)) { + if (bounds.bottom - bounds.top < minHeight) { + bounds.bottom = bounds.top + minHeight; + } + } + let privateWidth = this.getPrivate("width"); + let privateHeight = this.getPrivate("height"); + if (isNumber(privateWidth)) { + if (privateWidth > 0) { + bounds.right = bounds.left + privateWidth; + } else { + bounds.left = bounds.right + privateWidth; + } + } + if (isNumber(privateHeight)) { + if (privateHeight > 0) { + bounds.bottom = bounds.top + privateHeight; + } else { + bounds.top = bounds.bottom + privateHeight; + } + } + } + _removeParent(parent) { + if (parent) { + parent.children.removeValue(this); + removeFirst(parent._percentageSizeChildren, this); + removeFirst(parent._percentagePositionChildren, this); + } + } + _clearDirty() { + super._clearDirty(); + this._sizeDirty = false; + } + /** + * Simulate hover over element. + */ + hover() { + if (!this.isDisposed()) { + this.showTooltip(); + this._handleOver(); + } + } + /** + * Simulate unhover over element. + */ + unhover() { + if (!this.isDisposed()) { + this.hideTooltip(); + this._handleOut(); + } + } + /** + * Shows element's [[Tooltip]]. + */ + showTooltip(point) { + if (!this.isDisposed()) { + const tooltip = this.getTooltip(); + const tooltipText = this.get("tooltipText"); + const tooltipHTML = this.get("tooltipHTML"); + if ((tooltipText || tooltipHTML) && tooltip) { + const tooltipPosition = this.get("tooltipPosition"); + const tooltipTarget = this.getPrivate("tooltipTarget", this); + if (tooltipPosition == "fixed" || !point) { + this._display._setMatrix(); + point = this.toGlobal(tooltipTarget._getTooltipPoint()); + } + if (tooltipPosition == "pointer") { + const lastTooltipCoords = this.getPrivate("lastTooltipCoords"); + if (lastTooltipCoords && lastTooltipCoords.x == point.x && lastTooltipCoords.y == point.y) { + return; + } else { + this.setPrivate("lastTooltipCoords", point); + } + } + tooltip.set("pointTo", point); + tooltip.set("tooltipTarget", tooltipTarget); + if (!tooltip.get("x")) { + tooltip.set("x", point.x); + } + if (!tooltip.get("y")) { + tooltip.set("y", point.y); + } + if (tooltipText) { + tooltip.label.set("text", tooltipText); + } + if (tooltipHTML) { + tooltip.label.set("html", tooltipHTML); + } + const dataItem = this.dataItem; + if (dataItem) { + tooltip.label._setDataItem(dataItem); + } + if (this.get("showTooltipOn") == "always" && (point.x < 0 || point.x > this._root.width() || point.y < 0 || point.y > this._root.height())) { + this.hideTooltip(); + return; + } + tooltip.label.text.markDirtyText(); + const promise = tooltip.show(); + this.setPrivateRaw("showingTooltip", true); + return promise; + } + } + } + /** + * Hides element's [[Tooltip]]. + */ + hideTooltip() { + const tooltip = this.getTooltip(); + if (tooltip) { + this.removePrivate("lastTooltipCoords"); + if (tooltip.get("tooltipTarget") == this.getPrivate("tooltipTarget", this) || this.get("tooltip") == tooltip) { + let timeout = tooltip.get("keepTargetHover") && tooltip.get("stateAnimationDuration", 0) == 0 ? 400 : void 0; + const promise = tooltip.hide(timeout); + this.setPrivateRaw("showingTooltip", false); + return promise; + } + } + } + _getTooltipPoint() { + const bounds = this._localBounds; + if (bounds) { + let x = 0; + let y = 0; + if (!this.get("isMeasured")) { + x = relativeToValue(this.get("tooltipX", 0), this.width()); + y = relativeToValue(this.get("tooltipY", 0), this.height()); + } else { + x = bounds.left + relativeToValue(this.get("tooltipX", 0), bounds.right - bounds.left); + y = bounds.top + relativeToValue(this.get("tooltipY", 0), bounds.bottom - bounds.top); + } + return { x, y }; + } + return { x: 0, y: 0 }; + } + /** + * Returns [[Tooltip]] used for this element. + * + * @return Tooltip + */ + getTooltip() { + let tooltip = this.get("tooltip"); + if (!tooltip) { + let parent = this.parent; + if (parent) { + return parent.getTooltip(); + } + } else { + return tooltip; + } + } + _updatePosition() { + const parent = this.parent; + let dx = this.get("dx", 0); + let dy = this.get("dy", 0); + let x = this.get("x"); + let _x = this.getPrivate("x"); + let xx = 0; + let yy = 0; + const position = this.get("position"); + if (x instanceof Percent) { + if (parent) { + x = parent.innerWidth() * x.value + parent.get("paddingLeft", 0); + } else { + x = 0; + } + } + if (isNumber(x)) { + xx = x + dx; + } else { + if (_x != null) { + xx = _x; + } else if (parent) { + if (position == "relative") { + xx = parent.get("paddingLeft", 0) + dx; + } + } + } + let y = this.get("y"); + let _y = this.getPrivate("y"); + if (y instanceof Percent) { + if (parent) { + y = parent.innerHeight() * y.value + parent.get("paddingTop", 0); + } else { + y = 0; + } + } + if (isNumber(y)) { + yy = y + dy; + } else { + if (_y != null) { + yy = _y; + } else if (parent) { + if (position == "relative") { + yy = parent.get("paddingTop", 0) + dy; + } + } + } + const display = this._display; + if (display.x != xx || display.y != yy) { + display.invalidateBounds(); + display.x = xx; + display.y = yy; + const eventType = "positionchanged"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this }); + } + } + if (this.getPrivate("showingTooltip")) { + this.showTooltip(); + } + } + /** + * Returns element's actual X position in pixels. + * + * @return X (px) + */ + x() { + let x = this.get("x"); + let _x = this.getPrivate("x"); + const parent = this.parent; + if (parent) { + if (x instanceof Percent) { + return relativeToValue(x, parent.innerWidth()) + parent.get("paddingLeft", 0); + } else { + if (!isNumber(x)) { + if (_x != null) { + return _x; + } else { + return parent.get("paddingLeft", this._display.x); + } + } else { + return x; + } + } + } + return this._display.x; + } + /** + * Returns element's actual Y position in pixels. + * + * @return Y (px) + */ + y() { + let _y = this.getPrivate("y"); + if (_y != null) { + return _y; + } + let y = this.get("y"); + const parent = this.parent; + if (parent) { + if (y instanceof Percent) { + return relativeToValue(y, parent.innerHeight()) + parent.get("paddingTop", 0); + } else { + if (!isNumber(y)) { + if (_y != null) { + return _y; + } else { + return parent.get("paddingTop", this._display.y); + } + } else { + return y; + } + } + } + return this._display.y; + } + _dispose() { + super._dispose(); + this._display.dispose(); + this._removeTemplateField(); + this._removeParent(this.parent); + this._root._removeFocusElement(this); + const tooltip = this.get("tooltip"); + if (tooltip) { + tooltip.dispose(); + } + this.markDirty(); + } + /** + * @ignore + */ + adjustedLocalBounds() { + this._fixMinBounds(this._adjustedLocalBounds); + return this._adjustedLocalBounds; + } + /** + * Returns local coordinates of the element's bounds. + * + * @ignore + * @return Global bounds + */ + localBounds() { + return this._localBounds; + } + /** + * Returns adjusted local coordinates of the element's bounds. + * + * @ignore + * @return Global bounds + */ + bounds() { + const bounds = this._adjustedLocalBounds; + const x = this.x(); + const y = this.y(); + return { left: bounds.left + x, right: bounds.right + x, top: bounds.top + y, bottom: bounds.bottom + y }; + } + /** + * Returns global coordinates of the element's bounds. + * + * @ignore + * @return Global bounds + */ + globalBounds() { + const bounds = this.localBounds(); + const p02 = this.toGlobal({ x: bounds.left, y: bounds.top }); + const p1 = this.toGlobal({ x: bounds.right, y: bounds.top }); + const p2 = this.toGlobal({ x: bounds.right, y: bounds.bottom }); + const p3 = this.toGlobal({ x: bounds.left, y: bounds.bottom }); + return { + left: Math.min(p02.x, p1.x, p2.x, p3.x), + top: Math.min(p02.y, p1.y, p2.y, p3.y), + right: Math.max(p02.x, p1.x, p2.x, p3.x), + bottom: Math.max(p02.y, p1.y, p2.y, p3.y) + }; + } + _onShow(_duration) { + } + _onHide(_duration) { + } + /** + * Plays initial reveal animation regardless if element is currently hidden + * or visible. + * + * @param duration Duration of the animation in milliseconds + * @param delay Delay showing of the element by X milliseconds + * @return Promise + */ + appear(duration, delay) { + return __awaiter(this, void 0, void 0, function* () { + yield this.hide(0); + if (delay) { + return new Promise((success, _error) => { + this.setTimeout(() => { + success(this.show(duration)); + }, delay); + }); + } else { + return this.show(duration); + } + }); + } + /** + * Shows currently hidden element and returns a `Promise` which completes + * when all showing animations are finished. + * + * ```TypeScript + * series.show().then(function(ev) { + * console.log("Series is now fully visible"); + * }) + * ``` + * ```JavaScript + * series.show().then(function(ev) { + * console.log("Series is now fully visible"); + * }) + * ``` + * + * @return Promise + */ + show(duration) { + return __awaiter(this, void 0, void 0, function* () { + if (!this._isShowing) { + this._isHidden = false; + this._isShowing = true; + this._isHiding = false; + if (this.states.lookup("default").get("visible")) { + this.set("visible", true); + } + this._onShow(duration); + const animations = this.states.applyAnimate("default", duration); + yield waitForAnimations(animations); + this._isShowing = false; + } + }); + } + /** + * Hides the element and returns a `Promise` which completes when all hiding + * animations are finished. + * + * ```TypeScript + * series.hide().then(function(ev) { + * console.log("Series finished hiding"); + * }) + * ``` + * ```JavaScript + * series.hide().then(function(ev) { + * console.log("Series finished hiding"); + * }) + * ``` + * + * @return Promise + */ + hide(duration) { + return __awaiter(this, void 0, void 0, function* () { + if (!this._isHiding && !this._isHidden) { + this._isHiding = true; + this._isShowing = false; + let state = this.states.lookup("hidden"); + if (!state) { + state = this.states.create("hidden", { + "opacity": 0, + "visible": false + }); + } + this._isHidden = true; + this._onHide(duration); + const animations = this.states.applyAnimate("hidden", duration); + yield waitForAnimations(animations); + this._isHiding = false; + } + }); + } + /** + * Returns `true` if this element is currently hidden. + * + * @return Is hidden? + */ + isHidden() { + return this._isHidden; + } + /** + * Returns `true` if this element is currently animating to a default state. + * + * @return Is showing? + */ + isShowing() { + return this._isShowing; + } + /** + * Returns `true` if this element is currently animating to a hidden state. + * + * @return Is hiding? + */ + isHiding() { + return this._isHiding; + } + /** + * Returns `true` if this element is currently hovered by a pointer. + * + * @return Is hovered? + */ + isHover() { + return this._display.hovering(); + } + /** + * Returns `true` if this element does currently have focus. + * + * @return Is focused? + */ + isFocus() { + return this._root.focused(this); + } + /** + * Returns `true` if this element is currently being dragged. + * + * @return Is dragged? + */ + isDragging() { + return this._isDragging; + } + /** + * Returns `false` if if either public or private setting `visible` is set + * to `false`, or `forceHidden` is set to `true`. + * + * @return Visible? + */ + isVisible() { + if (this.get("visible") && this.getPrivate("visible") && !this.get("forceHidden")) { + return true; + } + return false; + } + /** + * Same as `isVisible()`, except it checks all ascendants, too. + * + * @since 5.2.7 + * @return Visible? + */ + isVisibleDeep() { + return this._parent ? this._parent.isVisibleDeep() && this.isVisible() : this.isVisible(); + } + /** + * Returns an actual opacity of the element, taking into account all parents. + * + * @return Opacity + * @since 5.2.11 + */ + compositeOpacity() { + const opacity = this.get("opacity", 1); + return this._parent ? this._parent.compositeOpacity() * opacity : opacity; + } + /** + * Returns an actual scale of the element, taking into account all parents. + * + * @return Opacity + * @since 5.9.2 + */ + compositeScale() { + const scale = this.get("scale", 1); + return this._parent ? this._parent.compositeScale() * scale : scale; + } + /** + * Returns an actual roation of the element, taking into account all parents. + * + * @return Opacity + * @since 5.9.2 + */ + compositeRotation() { + const rotation = this.get("rotation", 0); + return this._parent ? this._parent.compositeRotation() + rotation : rotation; + } + /** + * Returns width of this element in pixels. + * + * @return Width (px) + */ + width() { + let width = this.get("width"); + let maxWidth = this.get("maxWidth", this.getPrivate("maxWidth")); + let minWidth = this.get("minWidth", this.getPrivate("minWidth")); + let privateWidth = this.getPrivate("width"); + let w = 0; + if (isNumber(privateWidth)) { + w = privateWidth; + } else { + if (width == null) { + if (this._adjustedLocalBounds) { + w = this._adjustedLocalBounds.right - this._adjustedLocalBounds.left; + } + } else { + if (width instanceof Percent) { + const parent = this.parent; + if (parent) { + w = parent.innerWidth() * width.value; + } else { + w = this._root.width() * width.value; + } + } else if (isNumber(width)) { + w = width; + } + } + } + if (isNumber(minWidth)) { + w = Math.max(minWidth, w); + } + if (isNumber(maxWidth)) { + w = Math.min(maxWidth, w); + } + return w; + } + /** + * Returns maximum allowed width of this element in pixels. + * + * @return Maximum width (px) + */ + maxWidth() { + let maxWidth = this.get("maxWidth", this.getPrivate("maxWidth")); + if (isNumber(maxWidth)) { + return maxWidth; + } else { + let width = this.get("width"); + if (isNumber(width)) { + return width; + } + } + const parent = this.parent; + if (parent) { + return parent.innerWidth(); + } + return this._root.width(); + } + /** + * Returns maximum allowed height of this element in pixels. + * + * @return Maximum height (px) + */ + maxHeight() { + let maxHeight = this.get("maxHeight", this.getPrivate("maxHeight")); + if (isNumber(maxHeight)) { + return maxHeight; + } else { + let height = this.get("height"); + if (isNumber(height)) { + return height; + } + } + const parent = this.parent; + if (parent) { + return parent.innerHeight(); + } + return this._root.height(); + } + /** + * Returns height of this element in pixels. + * + * @return Height (px) + */ + height() { + let height = this.get("height"); + let maxHeight = this.get("maxHeight", this.getPrivate("maxHeight")); + let minHeight = this.get("minHeight", this.getPrivate("minHeight")); + let privateHeight = this.getPrivate("height"); + let h = 0; + if (isNumber(privateHeight)) { + h = privateHeight; + } else { + if (height == null) { + if (this._adjustedLocalBounds) { + h = this._adjustedLocalBounds.bottom - this._adjustedLocalBounds.top; + } + } else { + if (height instanceof Percent) { + const parent = this.parent; + if (parent) { + h = parent.innerHeight() * height.value; + } else { + h = this._root.height() * height.value; + } + } else if (isNumber(height)) { + h = height; + } + } + } + if (isNumber(minHeight)) { + h = Math.max(minHeight, h); + } + if (isNumber(maxHeight)) { + h = Math.min(maxHeight, h); + } + return h; + } + _findStaticTemplate(f) { + if (this._templateField && f(this._templateField)) { + return this._templateField; + } + return super._findStaticTemplate(f); + } + _walkParents(f) { + if (this._parent || this._virtualParent) { + this._walkParent(f); + } + } + _walkParent(f) { + if (this._parent) { + this._parent._walkParent(f); + } else { + if (this._virtualParent) { + this._virtualParent._walkParent(f); + } + } + f(this); + } + set virtualParent(parent) { + if (this._virtualParent !== parent) { + this._virtualParent = parent; + this._applyThemes(); + } + } + /** + * Parent [[Container]] of this element. + * + * @return Parent container + */ + get parent() { + return this._parent; + } + _setParent(parent, updateChildren = false) { + const prevParent = this._parent; + if (parent !== prevParent) { + this.markDirtyBounds(); + parent.markDirty(); + this._parent = parent; + if (updateChildren) { + this._removeParent(prevParent); + if (parent) { + this._addPercentageSizeChildren(); + this._addPercentagePositionChildren(); + } + } + this.markDirtyPosition(); + this._applyThemes(); + } + } + /** + * Returns an instance of [[NumberFormatter]] used in this element. + * + * If this element does not have it set, global one form [[Root]] is used. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/using-formatters/} for more info + * @return NumberFormatter instace + */ + getNumberFormatter() { + return this.get("numberFormatter", this._root.numberFormatter); + } + /** + * Returns an instance of [[DateFormatter]] used in this element. + * + * If this element does not have it set, global one form [[Root]] is used. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/using-formatters/} for more info + * @return DateFormatter instace + */ + getDateFormatter() { + return this.get("dateFormatter", this._root.dateFormatter); + } + /** + * Returns an instance of [[DurationFormatter]] used in this element. + * + * If this element does not have it set, global one form [[Root]] is used. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/using-formatters/} for more info + * @return DurationFormatter instace + */ + getDurationFormatter() { + return this.get("durationFormatter", this._root.durationFormatter); + } + /** + * Converts X/Y coordinate within this element to a global coordinate. + * + * @param point Local coordinate + * @return Global coordinate + */ + toGlobal(point) { + return this._display.toGlobal(point); + } + /** + * Converts global X/Y coordinate to a coordinate within this element. + * + * @param point Global coordinate + * @return Local coordinate + */ + toLocal(point) { + return this._display.toLocal(point); + } + _getDownPoint() { + const id = this._getDownPointId(); + if (id) { + return this._downPoints[id]; + } + } + _getDownPointId() { + if (this._downPoints) { + return keysOrdered(this._downPoints, (a, b) => { + if (a > b) { + return 1; + } + if (a < b) { + return -1; + } + return 0; + })[0]; + } + } + /** + * Moves sprite to the end of the parent's children array. + * + * Depending on `layout` setting of the parten container, it may effect the + * positioning or overlapping order of the elements. + */ + toFront() { + const parent = this.parent; + if (parent) { + parent.children.moveValue(this, parent.children.length - 1); + } + } + /** + * Moves sprite to the beginning of the parent's children array. + * + * Depending on `layout` setting of the parten container, it may effect the + * positioning or overlapping order of the elements. + */ + toBack() { + const parent = this.parent; + if (parent) { + parent.children.moveValue(this, 0); + } + } + }; + Sprite.className = "Sprite"; + Sprite.classNames = Entity.classNames.concat([Sprite.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/patterns/Pattern.js + var Pattern = class extends Entity { + constructor() { + super(...arguments); + this._display = this._root._renderer.makeGraphics(); + this._backgroundDisplay = this._root._renderer.makeGraphics(); + this._clear = false; + } + _afterNew() { + super._afterNewApplyThemes(); + } + get pattern() { + return this._pattern; + } + _draw() { + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("repetition") || this.isDirty("width") || this.isDirty("height") || this.isDirty("rotation") || this.isDirty("strokeWidth") || this.isDirty("strokeDasharray") || this.isDirty("strokeDashoffset") || this.isDirty("colorOpacity") || this.isDirty("fillOpacity")) { + this._clear = true; + } + this._checkDirtyFill(); + } + _checkDirtyFill() { + if (this.isDirty("color") || this.isDirty("fill")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear) { + const repetition = this.get("repetition", ""); + const width = this.get("width", 100); + const height = this.get("height", 100); + const fill = this.get("fill"); + const fillOpacity = this.get("fillOpacity", 1); + const backgroundDisplay = this._backgroundDisplay; + const display = this._display; + display.clear(); + backgroundDisplay.clear(); + if (fill && fillOpacity > 0) { + backgroundDisplay.beginFill(fill, fillOpacity); + backgroundDisplay.drawRect(0, 0, width, height); + backgroundDisplay.endFill(); + } + display.angle = this.get("rotation", 0); + this._draw(); + this._pattern = this._root._renderer.createPattern(display, backgroundDisplay, repetition, width, height); + } + this._clear = false; + } + }; + Pattern.className = "Pattern"; + Pattern.classNames = Entity.classNames.concat([Pattern.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/patterns/PicturePattern.js + var PicturePattern = class extends Pattern { + _beforeChanged() { + super._beforeChanged(); + this._clear = true; + if (this.isDirty("src")) { + this._load(); + } + const canvas = this.get("canvas"); + if (canvas) { + this.set("width", canvas.width); + this.set("height", canvas.height); + } + } + _draw() { + super._draw(); + const colorOpacity = this.get("colorOpacity"); + if (colorOpacity !== void 0) { + this._display.alpha = Math.max(0, colorOpacity); + } + const image = this._image; + if (image) { + const patternWidth = this.get("width", 100); + const patternHeight = this.get("height", 100); + const fit = this.get("fit", "image"); + let width = 0; + let height = 0; + if (fit == "pattern") { + width = patternWidth; + height = patternHeight; + this.markDirty(); + } else { + width = image.width; + height = image.height; + if (fit == "image") { + this.set("width", width); + this.set("height", height); + } + } + const centered = this.get("centered", true); + let x = 0; + let y = 0; + if (centered) { + x = patternWidth / 2 - width / 2; + y = patternHeight / 2 - height / 2; + } + this._display.image(image, width, height, x, y); + } + const canvas = this.get("canvas"); + if (canvas) { + this._display.image(canvas, canvas.width, canvas.height, 0, 0); + } + } + _load() { + const src = this.get("src"); + if (src) { + const image = new Image(); + image.src = src; + image.decode().then(() => { + this._image = image; + this._draw(); + if (this.events.isEnabled("loaded")) { + this.events.dispatch("loaded", { type: "loaded", target: this }); + } + }).catch((_error) => { + }); + } + } + }; + PicturePattern.className = "PicturePattern"; + PicturePattern.classNames = Pattern.classNames.concat([PicturePattern.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/backend/Renderer.js + var BlendMode; + (function(BlendMode2) { + BlendMode2["ADD"] = "lighter"; + BlendMode2["COLOR"] = "color"; + BlendMode2["COLOR_BURN"] = "color-burn"; + BlendMode2["COLOR_DODGE"] = "color-dodge"; + BlendMode2["DARKEN"] = "darken"; + BlendMode2["DIFFERENCE"] = "difference"; + BlendMode2["DST_OVER"] = "destination-over"; + BlendMode2["EXCLUSION"] = "exclusion"; + BlendMode2["HARD_LIGHT"] = "hard-light"; + BlendMode2["HUE"] = "hue"; + BlendMode2["LIGHTEN"] = "lighten"; + BlendMode2["LUMINOSITY"] = "luminosity"; + BlendMode2["MULTIPLY"] = "multiply"; + BlendMode2["NORMAL"] = "source-over"; + BlendMode2["OVERLAY"] = "overlay"; + BlendMode2["SATURATION"] = "saturation"; + BlendMode2["SCREEN"] = "screen"; + BlendMode2["SOFT_LIGHT"] = "soft-light"; + BlendMode2["SRC_ATOP"] = "source-atop"; + BlendMode2["XOR"] = "xor"; + })(BlendMode || (BlendMode = {})); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Graphics.js + var visualSettings = ["fill", "fillOpacity", "stroke", "strokeWidth", "strokeOpacity", "fillPattern", "strokePattern", "fillGradient", "strokeGradient", "strokeDasharray", "strokeDashoffset", "shadowBlur", "shadowColor", "shadowOpacity", "shadowOffsetX", "shadowOffsetY", "blur", "sepia", "invert", "brightness", "hue", "contrast", "saturate"]; + var Graphics = class extends Sprite { + constructor() { + super(...arguments); + this._display = this._root._renderer.makeGraphics(); + this._clear = false; + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("draw") || this.isDirty("svgPath")) { + this.markDirtyBounds(); + } + if (this.isDirty("fill") || this.isDirty("stroke") || this.isDirty("visible") || this.isDirty("forceHidden") || this.isDirty("scale") || this.isDirty("fillGradient") || this.isDirty("strokeGradient") || this.isDirty("fillPattern") || this.isDirty("strokePattern") || this.isDirty("fillOpacity") || this.isDirty("strokeOpacity") || this.isDirty("strokeWidth") || this.isDirty("draw") || this.isDirty("blendMode") || this.isDirty("strokeDasharray") || this.isDirty("strokeDashoffset") || this.isDirty("svgPath") || this.isDirty("lineJoin") || this.isDirty("lineCap") || this.isDirty("shadowColor") || this.isDirty("shadowBlur") || this.isDirty("shadowOffsetX") || this.isDirty("shadowOffsetY")) { + this._clear = true; + } + this._display.crisp = this.get("crisp", false); + if (this.isDirty("fillGradient")) { + const gradient = this.get("fillGradient"); + if (gradient) { + this._display.isMeasured = true; + const gradientTarget = gradient.get("target"); + if (gradientTarget) { + this._disposers.push(gradientTarget.events.on("boundschanged", () => { + this._markDirtyKey("fill"); + })); + this._disposers.push(gradientTarget.events.on("positionchanged", () => { + this._markDirtyKey("fill"); + })); + } + } + } + if (this.isDirty("strokeGradient")) { + const gradient = this.get("strokeGradient"); + if (gradient) { + this._display.isMeasured = true; + const gradientTarget = gradient.get("target"); + if (gradientTarget) { + this._disposers.push(gradientTarget.events.on("boundschanged", () => { + this._markDirtyKey("stroke"); + })); + this._disposers.push(gradientTarget.events.on("positionchanged", () => { + this._markDirtyKey("stroke"); + })); + } + } + } + } + _changed() { + super._changed(); + if (this._clear) { + this.markDirtyBounds(); + this.markDirtyLayer(); + this._display.clear(); + let strokeDasharray = this.get("strokeDasharray"); + if (isNumber(strokeDasharray)) { + if (strokeDasharray < 0.5) { + strokeDasharray = [0]; + } else { + strokeDasharray = [strokeDasharray]; + } + } + this._display.setLineDash(strokeDasharray); + const strokeDashoffset = this.get("strokeDashoffset"); + if (strokeDashoffset) { + this._display.setLineDashOffset(strokeDashoffset); + } + const blendMode = this.get("blendMode", BlendMode.NORMAL); + this._display.blendMode = blendMode; + const draw = this.get("draw"); + if (draw && typeof draw === "function") { + draw(this._display, this); + } + const svgPath = this.get("svgPath"); + if (svgPath != null) { + this._display.svgPath(svgPath); + } + } + } + _afterChanged() { + super._afterChanged(); + if (this._clear) { + const fill = this.get("fill"); + const fillGradient = this.get("fillGradient"); + const fillPattern = this.get("fillPattern"); + const fillOpacity = this.get("fillOpacity"); + const stroke = this.get("stroke"); + const strokeGradient = this.get("strokeGradient"); + const strokePattern = this.get("strokePattern"); + const shadowColor = this.get("shadowColor"); + const shadowBlur = this.get("shadowBlur"); + const shadowOffsetX = this.get("shadowOffsetX"); + const shadowOffsetY = this.get("shadowOffsetY"); + const shadowOpacity = this.get("shadowOpacity"); + if (shadowColor && (shadowBlur || shadowOffsetX || shadowOffsetY)) { + this._display.shadow(shadowColor, shadowBlur, shadowOffsetX, shadowOffsetY, shadowOpacity); + } + if (fill && !fillGradient) { + this._display.beginFill(fill, fillOpacity); + this._display.endFill(); + } + if (fillGradient) { + if (fill) { + const stops = fillGradient.get("stops", []); + if (stops.length) { + each(stops, (stop) => { + if ((!stop.color || stop.colorInherited) && fill) { + stop.color = fill; + stop.colorInherited = true; + } + if (stop.opacity == null || stop.opacityInherited) { + stop.opacity = fillOpacity; + stop.opacityInherited = true; + } + }); + } + } + const gradient = fillGradient.getFill(this); + if (gradient) { + this._display.beginFill(gradient, fillOpacity); + this._display.endFill(); + } + } + if (fillPattern) { + const pattern = fillPattern.pattern; + if (pattern) { + this._display.beginFill(pattern, fillOpacity); + this._display.endFill(); + if (fillPattern instanceof PicturePattern) { + fillPattern.events.once("loaded", () => { + this._clear = true; + this.markDirty(); + }); + } + } + } + if (stroke || strokeGradient || strokePattern) { + const strokeOpacity = this.get("strokeOpacity"); + let strokeWidth = this.get("strokeWidth", 1); + if (this.get("nonScalingStroke")) { + strokeWidth = strokeWidth / this.get("scale", 1); + } + if (this.get("crisp")) { + strokeWidth /= this._root._renderer.resolution; + } + const lineJoin = this.get("lineJoin"); + const lineCap = this.get("lineCap"); + if (stroke && !strokeGradient) { + this._display.lineStyle(strokeWidth, stroke, strokeOpacity, lineJoin, lineCap); + this._display.endStroke(); + } + if (strokeGradient) { + const stops = strokeGradient.get("stops", []); + if (stops.length) { + each(stops, (stop) => { + if ((!stop.color || stop.colorInherited) && stroke) { + stop.color = stroke; + stop.colorInherited = true; + } + if (stop.opacity == null || stop.opacityInherited) { + stop.opacity = strokeOpacity; + stop.opacityInherited = true; + } + }); + } + const gradient = strokeGradient.getFill(this); + if (gradient) { + this._display.lineStyle(strokeWidth, gradient, strokeOpacity, lineJoin, lineCap); + this._display.endStroke(); + } + } + if (strokePattern) { + let pattern = strokePattern.pattern; + if (pattern) { + this._display.lineStyle(strokeWidth, pattern, strokeOpacity, lineJoin, lineCap); + this._display.endStroke(); + if (strokePattern instanceof PicturePattern) { + strokePattern.events.once("loaded", () => { + this._clear = true; + this.markDirty(); + }); + } + } + } + } + if (this.getPrivate("showingTooltip")) { + this.showTooltip(); + } + } + this._clear = false; + } + }; + Graphics.className = "Graphics"; + Graphics.classNames = Sprite.classNames.concat([Graphics.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Rectangle.js + var Rectangle = class extends Graphics { + _afterNew() { + super._afterNew(); + this._display.isMeasured = true; + this.setPrivateRaw("trustBounds", true); + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("width") || this.isDirty("height") || this.isPrivateDirty("width") || this.isPrivateDirty("height")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear && !this.get("draw")) { + this._draw(); + } + } + _draw() { + let w = this.width(); + let h = this.height(); + let x = 0; + let y = 0; + let wSign = w / Math.abs(w); + let hSign = h / Math.abs(h); + if (this.get("containStroke", false)) { + const strokeWidth = this.get("strokeWidth", 0); + w -= strokeWidth * wSign; + h -= strokeWidth * hSign; + x += strokeWidth / 2 * wSign; + y += strokeWidth / 2 * hSign; + } + this._display.drawRect(x, y, w, h); + } + _updateSize() { + this.markDirty(); + this._clear = true; + } + }; + Rectangle.className = "Rectangle"; + Rectangle.classNames = Graphics.classNames.concat([Rectangle.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Layout.js + function eachChildren(container, f) { + if (container.get("reverseChildren", false)) { + container.children.eachReverse(f); + } else { + container.children.each(f); + } + } + var Layout = class extends Entity { + }; + Layout.className = "Layout"; + Layout.classNames = Entity.classNames.concat([Layout.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/HorizontalLayout.js + var HorizontalLayout = class extends Layout { + /** + * @ignore + */ + updateContainer(container) { + let paddingLeft = container.get("paddingLeft", 0); + let availableWidth = container.innerWidth(); + let totalPercent = 0; + eachChildren(container, (child) => { + if (child.isVisible()) { + if (child.get("position") == "relative") { + let childWidth = child.get("width"); + if (childWidth instanceof Percent) { + totalPercent += childWidth.value; + let w = availableWidth * childWidth.value; + let minWidth = child.get("minWidth", child.getPrivate("minWidth", -Infinity)); + if (minWidth > w) { + availableWidth -= minWidth; + totalPercent -= childWidth.value; + } + let maxWidth = child.get("maxWidth", child.getPrivate("maxWidth", Infinity)); + if (w > maxWidth) { + availableWidth -= maxWidth; + totalPercent -= childWidth.value; + } + } else { + if (!isNumber(childWidth)) { + childWidth = child.width(); + } + availableWidth -= childWidth + child.get("marginLeft", 0) + child.get("marginRight", 0); + } + } + } + }); + if (availableWidth <= 0 || availableWidth == Infinity) { + availableWidth = 0.1; + } + eachChildren(container, (child) => { + if (child.isVisible()) { + if (child.get("position") == "relative") { + let childWidth = child.get("width"); + if (childWidth instanceof Percent) { + let privateWidth = availableWidth * childWidth.value / totalPercent - child.get("marginLeft", 0) - child.get("marginRight", 0); + let minWidth = child.get("minWidth", child.getPrivate("minWidth", -Infinity)); + let maxWidth = child.get("maxWidth", child.getPrivate("maxWidth", Infinity)); + privateWidth = Math.min(Math.max(minWidth, privateWidth), maxWidth); + child.setPrivate("width", privateWidth); + } else { + if (child._prevSettings.width instanceof Percent) { + child.setPrivate("width", void 0); + } + } + } + } + }); + let prevX = paddingLeft; + eachChildren(container, (child) => { + if (child.get("position") == "relative") { + if (child.isVisible()) { + let bounds = child.adjustedLocalBounds(); + let marginLeft = child.get("marginLeft", 0); + let marginRight = child.get("marginRight", 0); + let maxWidth = child.get("maxWidth"); + let left = bounds.left; + let right = bounds.right; + if (maxWidth) { + if (right - left > maxWidth) { + right = left + maxWidth; + } + } + let x = prevX + marginLeft - left; + child.setPrivate("x", x); + prevX = x + right + marginRight; + } else { + child.setPrivate("x", void 0); + } + } + }); + } + }; + HorizontalLayout.className = "HorizontalLayout"; + HorizontalLayout.classNames = Layout.classNames.concat([HorizontalLayout.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/VerticalLayout.js + var VerticalLayout = class extends Layout { + /** + * @ignore + */ + updateContainer(container) { + let paddingTop = container.get("paddingTop", 0); + let availableHeight = container.innerHeight(); + let totalPercent = 0; + eachChildren(container, (child) => { + if (child.isVisible()) { + if (child.get("position") == "relative") { + let childHeight = child.get("height"); + if (childHeight instanceof Percent) { + totalPercent += childHeight.value; + let h = availableHeight * childHeight.value; + let minHeight = child.get("minHeight", child.getPrivate("minHeight", -Infinity)); + if (minHeight > h) { + availableHeight -= minHeight; + totalPercent -= childHeight.value; + } + let maxHeight = child.get("maxHeight", child.getPrivate("maxHeight", Infinity)); + if (h > maxHeight) { + availableHeight -= maxHeight; + totalPercent -= childHeight.value; + } + } else { + if (!isNumber(childHeight)) { + childHeight = child.height(); + } + availableHeight -= childHeight + child.get("marginTop", 0) + child.get("marginBottom", 0); + } + } + } + }); + if (availableHeight <= 0 || availableHeight == Infinity) { + availableHeight = 0.1; + } + eachChildren(container, (child) => { + if (child.isVisible()) { + if (child.get("position") == "relative") { + let childHeight = child.get("height"); + if (childHeight instanceof Percent) { + let privateHeight = availableHeight * childHeight.value / totalPercent - child.get("marginTop", 0) - child.get("marginBottom", 0); + let minHeight = child.get("minHeight", child.getPrivate("minHeight", -Infinity)); + let maxHeight = child.get("maxHeight", child.getPrivate("maxHeight", Infinity)); + privateHeight = Math.min(Math.max(minHeight, privateHeight), maxHeight); + child.setPrivate("height", privateHeight); + } else { + if (child._prevSettings.height instanceof Percent) { + child.setPrivate("height", void 0); + } + } + } + } + }); + let prevY = paddingTop; + eachChildren(container, (child) => { + if (child.get("position") == "relative") { + if (child.isVisible()) { + let bounds = child.adjustedLocalBounds(); + let marginTop = child.get("marginTop", 0); + let top = bounds.top; + let bottom = bounds.bottom; + let maxHeight = child.get("maxHeight"); + if (maxHeight) { + if (bottom - top > maxHeight) { + bottom = top + maxHeight; + } + } + let marginBottom = child.get("marginBottom", 0); + let y = prevY + marginTop - top; + child.setPrivate("y", y); + prevY = y + bottom + marginBottom; + } else { + child.setPrivate("y", void 0); + } + } + }); + } + }; + VerticalLayout.className = "VerticalLayout"; + VerticalLayout.classNames = Layout.classNames.concat([VerticalLayout.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/GridLayout.js + var GridLayout = class extends Layout { + _afterNew() { + this._setRawDefault("maxColumns", Number.MAX_VALUE); + super._afterNew(); + } + /** + * @ignore + */ + updateContainer(container) { + let paddingLeft = container.get("paddingLeft", 0); + let paddingRight = container.get("paddingRight", 0); + let paddingTop = container.get("paddingTop", 0); + let availableWidth = container.maxWidth() - paddingLeft - paddingRight; + let minCellWidth = availableWidth; + let maxCellWidth = 1; + eachChildren(container, (child) => { + if (child.get("visible") && child.getPrivate("visible") && !child.get("forceHidden")) { + if (child.get("position") != "absolute") { + let childWidth = child.width(); + if (childWidth < minCellWidth) { + minCellWidth = childWidth; + } + if (childWidth > maxCellWidth) { + maxCellWidth = childWidth; + } + } + } + }); + minCellWidth = fitToRange(minCellWidth, 1, availableWidth); + maxCellWidth = fitToRange(maxCellWidth, 1, availableWidth); + let columnCount = 1; + if (this.get("fixedWidthGrid")) { + columnCount = availableWidth / maxCellWidth; + } else { + columnCount = availableWidth / minCellWidth; + } + columnCount = Math.max(1, Math.floor(columnCount)); + columnCount = Math.min(this.get("maxColumns", Number.MAX_VALUE), columnCount); + let columnWidths = this.getColumnWidths(container, columnCount, maxCellWidth, availableWidth); + let prevY = paddingTop; + let column = 0; + let maxRowHeight = 0; + columnCount = columnWidths.length; + let prevX = paddingLeft; + eachChildren(container, (child) => { + if (child.get("position") == "relative" && child.isVisible()) { + const marginTop = child.get("marginTop", 0); + const marginBottom = child.get("marginBottom", 0); + let bounds = child.adjustedLocalBounds(); + let marginLeft = child.get("marginLeft", 0); + let marginRight = child.get("marginRight", 0); + let x = prevX + marginLeft - bounds.left; + let y = prevY + marginTop - bounds.top; + child.setPrivate("x", x); + child.setPrivate("y", y); + prevX += columnWidths[column] + marginRight; + maxRowHeight = Math.max(maxRowHeight, child.height() + marginTop + marginBottom); + column++; + if (column >= columnCount) { + column = 0; + prevX = paddingLeft; + prevY += maxRowHeight; + maxRowHeight = 0; + } + } + }); + } + /** + * @ignore + */ + getColumnWidths(container, columnCount, maxCellWidth, availableWidth) { + let totalWidth = 0; + let columnWidths = []; + let column = 0; + eachChildren(container, (child) => { + let bounds = child.adjustedLocalBounds(); + if (child.get("position") != "absolute" && child.isVisible()) { + if (this.get("fixedWidthGrid")) { + columnWidths[column] = maxCellWidth; + } else { + columnWidths[column] = Math.max(columnWidths[column] | 0, bounds.right - bounds.left + child.get("marginLeft", 0) + child.get("marginRight", 0)); + } + if (column < container.children.length - 1) { + column++; + if (column == columnCount) { + column = 0; + } + } + } + }); + each(columnWidths, (w) => { + totalWidth += w; + }); + if (totalWidth > availableWidth) { + if (columnCount > 2) { + columnCount -= 1; + return this.getColumnWidths(container, columnCount, maxCellWidth, availableWidth); + } else { + return [availableWidth]; + } + } + return columnWidths; + } + }; + GridLayout.className = "GridLayout"; + GridLayout.classNames = Layout.classNames.concat([GridLayout.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/TextFormatter.js + var TextFormatter = class { + /** + * Replaces brackets with temporary placeholders. + * + * @ignore Exclude from docs + * @param text Input text + * @return Escaped text + */ + static escape(text) { + return text.replace(/\[\[/g, this.prefix + "1").replace(/([^\/\]]{1})\]\]/g, "$1" + this.prefix + "2").replace(/\]\]/g, this.prefix + "2").replace(/\{\{/g, this.prefix + "3").replace(/\}\}/g, this.prefix + "4").replace(/\'\'/g, this.prefix + "5"); + } + /** + * Replaces placeholders back to brackets. + * + * @ignore Exclude from docs + * @param text Escaped text + * @return Unescaped text + */ + static unescape(text) { + return text.replace(new RegExp(this.prefix + "1", "g"), "[[").replace(new RegExp(this.prefix + "2", "g"), "]]").replace(new RegExp(this.prefix + "3", "g"), "{{").replace(new RegExp(this.prefix + "4", "g"), "}}").replace(new RegExp(this.prefix + "5", "g"), "''"); + } + /** + * Cleans up the text text for leftover double square brackets. + * + * @ignore Exclude from docs + * @param text Input text + * @return Cleaned up text + */ + static cleanUp(text) { + return text.replace(/\[\[/g, "[").replace(/\]\]/g, "]").replace(/\{\{/g, "{").replace(/\}\}/g, "}").replace(/\'\'/g, "'"); + } + /** + * Splits string into chunks. (style blocks, quoted blocks, regular blocks) + * + * If the second parameter `quotedBlocks` is set to `true` this method will + * also single out text blocks enclosed within single quotes that no + * formatting should be applied to, and they should be displayed as is. + * + * Default for the above is `false`, so that you can use single quote in text + * without escaping it. + * + * If enabled, single quotes can be escaped by doubling it - adding two + * single quotes, which will be replaced by a one single quote in the final + * output. + * + * @ignore Exclude from docs + * @param text Text to chunk + * @param quotedBlocks Use quoted blocks + * @param noFormatting Formatting blocks will be treated as regular text + * @return Array of string chunks + */ + static chunk(text, quotedBlocks = false, noFormatting = false) { + let res = []; + text = this.escape(text); + let chunks = quotedBlocks ? text.split("'") : [text]; + for (let i = 0; i < chunks.length; i++) { + let chunk = chunks[i]; + if (chunk === "") { + continue; + } + if (i % 2 === 0) { + chunk = chunk.replace(/\]\[/g, "]" + PLACEHOLDER + "["); + chunk = chunk.replace(/\[\]/g, "[ ]"); + let chunks2 = chunk.split(/[\[\]]+/); + for (let i2 = 0; i2 < chunks2.length; i2++) { + let chunk2 = this.cleanUp(this.unescape(chunks2[i2])); + if (chunk2 === PLACEHOLDER) { + continue; + } + if (chunk2 === "") { + continue; + } + if (i2 % 2 === 0) { + res.push({ + "type": "value", + "text": chunk2 + }); + } else { + res.push({ + "type": noFormatting ? "value" : "format", + "text": "[" + chunk2 + "]" + }); + } + } + } else { + let chunks2 = chunk.split(/[\[\]]+/); + for (let i2 = 0; i2 < chunks2.length; i2++) { + let chunk2 = this.cleanUp(this.unescape(chunks2[i2])); + if (chunk2 === "") { + continue; + } + if (i2 % 2 === 0) { + res.push({ + "type": "text", + "text": chunk2 + }); + } else if (this.isImage(chunk2)) { + res.push({ + "type": "image", + "text": "[" + chunk2 + "]" + }); + } else { + res.push({ + "type": "format", + "text": "[" + chunk2 + "]" + }); + } + } + } + } + return res; + } + /** + * Checks if supplied format contains image information and should be + * formatted as such. + * I.e.: `[img: myImage.png]` + * + * @ignore + * @param text Format + * @return true if it is an image + */ + static isImage(text) { + return text.match(/img[ ]?:/) ? true : false; + } + static getTextStyle(style) { + let format = {}; + if (style == "" || style == "[ ]") { + return {}; + } + const q = style.match(/('[^']*')|("[^"]*")/gi); + if (q) { + for (let i = 0; i < q.length; i++) { + style = style.replace(q[i], q[i].replace(/['"]*/g, "").replace(/[ ]+/g, "+")); + } + } + let b = style.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w\-]+)|(\/)/gi); + if (!b) { + return {}; + } + for (let i = 0; i < b.length; i++) { + if (b[i].match(/^(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)$/i)) { + format.fontWeight = b[i]; + } else if (b[i].match(/^(underline|line-through)$/i)) { + format.textDecoration = b[i]; + } else if (b[i] == "/") { + } else if (!b[i].match(/:/)) { + format.fill = Color.fromString(b[i]); + } else { + const p = b[i].replace("+", " ").split(/:[ ]*/); + format[p[0]] = p[1]; + } + } + return format; + } + }; + TextFormatter.prefix = "__amcharts__"; + + // node_modules/@amcharts/amcharts5/.internal/core/util/PopulateString.js + function populateString(target, string) { + if (string != null) { + string = "" + string; + string = TextFormatter.escape(string); + let tags = string.match(/\{([^}]+)\}/g); + let i; + if (tags) { + for (i = 0; i < tags.length; i++) { + let tag = tags[i].replace(/\{([^}]+)\}/, "$1"); + let value = getTagValue(target, tag, ""); + if (value == null) { + value = ""; + } + string = string.split(tags[i]).join(value); + } + } + string = TextFormatter.unescape(string); + } else { + string = ""; + } + return string; + } + function getTagValue(target, tagName, format) { + let value; + const dataItem = target.dataItem; + let parts = []; + let reg = /(format[a-zA-Z]*)\((.*)\)|([^.]+)/g; + let matches; + while (true) { + matches = reg.exec(tagName); + if (matches === null) { + break; + } + if (matches[3]) { + parts.push({ + prop: matches[3] + }); + const dateFields = target.getDateFormatter().get("dateFields", []); + const numericFields = target.getNumberFormatter().get("numericFields", []); + const durationFields = target.getDurationFormatter().get("durationFields", []); + if (dateFields.indexOf(matches[3]) !== -1) { + parts.push({ + method: "formatDate", + params: [] + }); + } else if (numericFields.indexOf(matches[3]) !== -1) { + parts.push({ + method: "formatNumber", + params: [] + }); + } else if (durationFields.indexOf(matches[3]) !== -1) { + parts.push({ + method: "formatDuration", + params: [] + }); + } + } else { + let params = []; + if (trim(matches[2]) != "") { + let reg2 = /'([^']*)'|"([^"]*)"|([0-9\-]+)/g; + let matches2; + while (true) { + matches2 = reg2.exec(matches[2]); + if (matches2 === null) { + break; + } + params.push(matches2[1] || matches2[2] || matches2[3]); + } + } + parts.push({ + method: matches[1], + params + }); + } + } + if (dataItem) { + value = getTagValueFromObject(target, parts, dataItem._settings); + if (value == null || isObject(value)) { + value = getTagValueFromObject(target, parts, dataItem); + } + let dataContext = dataItem.dataContext; + if (value == null && dataContext) { + value = getTagValueFromObject(target, parts, dataContext); + if (value == null) { + value = getTagValueFromObject(target, [{ + prop: tagName + }], dataContext); + } + if (value == null && dataContext.dataContext) { + value = getTagValueFromObject(target, parts, dataContext.dataContext); + } + } + if (value == null && dataItem.component && dataItem.component.dataItem !== dataItem) { + value = getTagValue(dataItem.component, tagName, format); + } + } + if (value == null) { + value = getTagValueFromObject(target, parts, target); + } + if (value == null && target.parent) { + value = getTagValue(target.parent, tagName, format); + } + return value; + } + function getCustomDataValue(target, prop) { + const customData = target.getPrivate("customData"); + if (isObject(customData)) { + return customData[prop]; + } + } + function getTagValueFromObject(target, parts, object, format) { + let current = object; + let formatApplied = false; + for (let i = 0, len = parts.length; i < len; i++) { + let part = parts[i]; + if (part.prop) { + if (current instanceof Sprite) { + let tmp = current.get(part.prop); + if (tmp == null) + tmp = current.getPrivate(part.prop); + if (tmp == null) + tmp = getCustomDataValue(current, part.prop); + if (tmp == null) + tmp = current[part.prop]; + current = tmp; + } else if (current.get) { + let tmp = current.get(part.prop); + if (tmp == null) + tmp = current[part.prop]; + current = tmp; + } else { + current = current[part.prop]; + } + if (current == null) { + return; + } + } else { + switch (part.method) { + case "formatNumber": + let numberValue = toNumber(current); + if (numberValue != null) { + current = target.getNumberFormatter().format(numberValue, format || part.params[0] || void 0); + formatApplied = true; + } + break; + case "formatDate": + let dateValue = toDate(current); + if (!isDate(dateValue) || isNaN2(dateValue.getTime())) { + return; + } + if (dateValue != null) { + current = target.getDateFormatter().format(dateValue, format || part.params[0] || void 0); + formatApplied = true; + } + break; + case "formatDuration": + let durationValue = toNumber(current); + if (durationValue != null) { + current = target.getDurationFormatter().format(durationValue, format || part.params[0] || void 0, part.params[1] || void 0); + formatApplied = true; + } + break; + case "urlEncode": + case "encodeURIComponent": + current = encodeURIComponent(current); + break; + default: + if (current[part.method]) { + current[part.method].apply(object, part.params); + } + break; + } + } + } + if (!formatApplied) { + let formatParts = [{ + method: "", + params: format + }]; + if (format == null) { + if (isNumber(current)) { + formatParts[0].method = "formatNumber"; + formatParts[0].params = ""; + } else if (isDate(current)) { + formatParts[0].method = "formatDate"; + formatParts[0].params = ""; + } + } else { + let formatterType = getFormat(format); + if (formatterType === "number") { + formatParts[0].method = "formatNumber"; + } else if (formatterType === "date") { + formatParts[0].method = "formatDate"; + } else if (formatterType === "duration") { + formatParts[0].method = "formatDuration"; + } + } + if (formatParts[0].method) { + current = getTagValueFromObject(target, formatParts, current); + } + } + return current; + } + + // node_modules/@amcharts/amcharts5/.internal/core/render/Container.js + var Container = class _Container extends Sprite { + constructor() { + super(...arguments); + this._display = this._root._renderer.makeContainer(); + this._childrenDisplay = this._root._renderer.makeContainer(); + this.children = new Children(this); + this._percentageSizeChildren = []; + this._percentagePositionChildren = []; + this._prevWidth = 0; + this._prevHeight = 0; + this._contentWidth = 0; + this._contentHeight = 0; + this._childrenPrep = false; + this._childrenUpdt = false; + } + _afterNew() { + super._afterNew(); + this._display.addChild(this._childrenDisplay); + } + _afterChanged() { + super._afterChanged(); + this._childrenPrep = false; + this._childrenUpdt = false; + } + _dispose() { + eachReverse(this.allChildren(), (child) => { + child.dispose(); + }); + if (this.getPrivate("htmlElement")) { + this._root._removeHTMLContent(this); + } + super._dispose(); + } + _beforeChanged() { + if (!this._childrenPrep) { + this._prepareChildren(); + } + if (!this._childrenUpdt) { + this._updateChildren(); + } + super._beforeChanged(); + } + _changed() { + super._changed(); + if (this.isDirty("interactiveChildren")) { + this._display.interactiveChildren = this.get("interactiveChildren", false); + } + if (this.isDirty("layout")) { + this._prevWidth = 0; + this._prevHeight = 0; + this.markDirtyBounds(); + if (this._prevSettings.layout) { + this.children.each((child) => { + child.removePrivate("x"); + child.removePrivate("y"); + }); + } + } + if (this.isDirty("paddingTop") || this.isDirty("paddingBottom") || this.isDirty("paddingLeft") || this.isDirty("paddingRight")) { + this.children.each((child) => { + child.markDirtyPosition(); + }); + } + if (this.isDirty("maskContent")) { + const childrenDisplay = this._childrenDisplay; + let contentMask = this._contentMask; + if (this.get("maskContent")) { + if (!contentMask) { + contentMask = Rectangle.new(this._root, { + x: -0.5, + y: -0.5, + width: this.width() + 1, + height: this.height() + 1 + }); + this._contentMask = contentMask; + childrenDisplay.addChildAt(contentMask._display, 0); + childrenDisplay.mask = contentMask._display; + } + } else { + if (contentMask) { + childrenDisplay.removeChild(contentMask._display); + childrenDisplay.mask = null; + contentMask.dispose(); + this._contentMask = void 0; + } + } + } + } + _updateSize() { + super._updateSize(); + each(this._percentageSizeChildren, (child) => { + child._updateSize(); + }); + each(this._percentagePositionChildren, (child) => { + child.markDirtyPosition(); + child._updateSize(); + }); + this.updateBackground(); + } + updateBackground() { + const background = this.get("background"); + let bounds = this._localBounds; + if (bounds && !this.isHidden()) { + let x = bounds.left; + let y = bounds.top; + let w = bounds.right - x; + let h = bounds.bottom - y; + let maxWidth = this.get("maxWidth"); + let maxHeight = this.get("maxHeight"); + if (maxHeight) { + if (h > maxHeight) { + h = maxHeight; + } + } + if (maxWidth) { + if (w > maxWidth) { + w = maxWidth; + } + } + let width = this.width(); + let height = this.height(); + if (background) { + background.setAll({ width: w, height: h, x, y }); + if (this._display.interactive) { + background._display.interactive = true; + } + } + const contentMask = this._contentMask; + if (contentMask) { + contentMask.setAll({ width: width + 1, height: height + 1 }); + } + const verticalScrollbar = this.get("verticalScrollbar"); + if (verticalScrollbar) { + verticalScrollbar.set("height", height); + verticalScrollbar.set("x", width - verticalScrollbar.width() - verticalScrollbar.get("marginRight", 0)); + verticalScrollbar.set("end", verticalScrollbar.get("start", 0) + height / this._contentHeight); + const bg = verticalScrollbar.get("background"); + if (bg) { + bg.setAll({ width: verticalScrollbar.width(), height }); + } + let visible = true; + if (this._contentHeight <= height) { + visible = false; + } + verticalScrollbar.setPrivate("visible", visible); + } + } + } + _applyThemes(force = false) { + if (super._applyThemes(force)) { + this.eachChildren((child) => { + child._applyThemes(force); + }); + return true; + } else { + return false; + } + } + _applyState(name) { + super._applyState(name); + if (this.get("setStateOnChildren")) { + this.eachChildren((child) => { + child.states.apply(name); + }); + } + } + _applyStateAnimated(name, duration) { + super._applyStateAnimated(name, duration); + if (this.get("setStateOnChildren")) { + this.eachChildren((child) => { + child.states.applyAnimate(name, duration); + }); + } + } + /** + * Returns container's inner width (width without padding) in pixels. + * + * @return Inner width (px) + */ + innerWidth() { + return this.width() - this.get("paddingRight", 0) - this.get("paddingLeft", 0); + } + /** + * Returns container's inner height (height without padding) in pixels. + * + * @return Inner height (px) + */ + innerHeight() { + return this.height() - this.get("paddingTop", 0) - this.get("paddingBottom", 0); + } + _getBounds() { + if (!this.get("html")) { + let width = this.get("width"); + let height = this.get("height"); + let pWidth = this.getPrivate("width"); + let pHeight = this.getPrivate("height"); + let bounds = { + left: 0, + top: 0, + right: this.width(), + bottom: this.height() + }; + let layout = this.get("layout"); + let horizontal = false; + let vertical = false; + if (layout instanceof HorizontalLayout || layout instanceof GridLayout) { + horizontal = true; + } + if (layout instanceof VerticalLayout) { + vertical = true; + } + if ((width != null || pWidth != null) && (height != null || pHeight != null) && !this.get("verticalScrollbar")) { + } else { + let m = Number.MAX_VALUE; + let l = m; + let r = -m; + let t = m; + let b = -m; + const paddingLeft = this.get("paddingLeft", 0); + const paddingTop = this.get("paddingTop", 0); + const paddingRight = this.get("paddingRight", 0); + const paddingBottom = this.get("paddingBottom", 0); + this.children.each((child) => { + if (child.get("position") != "absolute" && child.get("isMeasured")) { + let childBounds = child.adjustedLocalBounds(); + let childX = child.x(); + let childY = child.y(); + let cl = childX + childBounds.left; + let cr = childX + childBounds.right; + let ct = childY + childBounds.top; + let cb = childY + childBounds.bottom; + if (horizontal) { + cl -= child.get("marginLeft", 0); + cr += child.get("marginRight", 0); + } + if (vertical) { + ct -= child.get("marginTop", 0); + cb += child.get("marginBottom", 0); + } + if (cl < l) { + l = cl; + } + if (cr > r) { + r = cr; + } + if (ct < t) { + t = ct; + } + if (cb > b) { + b = cb; + } + } + }); + if (l == m) { + l = 0; + } + if (r == -m) { + r = 0; + } + if (t == m) { + t = 0; + } + if (b == -m) { + b = 0; + } + bounds.left = l - paddingLeft; + bounds.top = t - paddingTop; + bounds.right = r + paddingRight; + bounds.bottom = b + paddingBottom; + const minWidth = this.get("minWidth"); + if (isNumber(minWidth) && minWidth > 0) { + if (bounds.right - bounds.left < minWidth) { + if (bounds.right >= minWidth) { + bounds.left = bounds.right - minWidth; + } else { + bounds.right = bounds.left + minWidth; + } + } + } + const minHeight = this.get("minHeight"); + if (isNumber(minHeight) && minHeight > 0) { + if (bounds.bottom - bounds.top < minHeight) { + if (bounds.bottom >= minHeight) { + bounds.top = bounds.bottom - minHeight; + } else { + bounds.bottom = bounds.top + minHeight; + } + } + } + } + this._contentWidth = bounds.right - bounds.left; + this._contentHeight = bounds.bottom - bounds.top; + if (isNumber(width)) { + bounds.left = 0; + bounds.right = width; + } + if (isNumber(pWidth)) { + bounds.left = 0; + bounds.right = pWidth; + } + if (isNumber(height)) { + bounds.top = 0; + bounds.bottom = height; + } + if (isNumber(pHeight)) { + bounds.top = 0; + bounds.bottom = pHeight; + } + this._localBounds = bounds; + } else { + let bounds = this._localBounds; + if (bounds) { + this._contentWidth = bounds.right - bounds.left; + this._contentHeight = bounds.bottom - bounds.top; + } + } + } + _updateBounds() { + const layout = this.get("layout"); + if (layout) { + layout.updateContainer(this); + } + super._updateBounds(); + this.updateBackground(); + } + /** + * @ignore + */ + markDirty() { + super.markDirty(); + this._root._addDirtyParent(this); + } + _prepareChildren() { + this._childrenPrep = true; + const innerWidth = this.innerWidth(); + const innerHeight = this.innerHeight(); + if (innerWidth != this._prevWidth || innerHeight != this._prevHeight) { + let layout = this.get("layout"); + let horizontal = false; + let vertical = false; + if (layout) { + if (layout instanceof HorizontalLayout || layout instanceof GridLayout) { + horizontal = true; + } + if (layout instanceof VerticalLayout) { + vertical = true; + } + } + each(this._percentageSizeChildren, (child) => { + if (!horizontal) { + let width = child.get("width"); + if (width instanceof Percent) { + child.setPrivate("width", width.value * innerWidth); + } + } + if (!vertical) { + let height = child.get("height"); + if (height instanceof Percent) { + child.setPrivate("height", height.value * innerHeight); + } + } + }); + each(this._percentagePositionChildren, (child) => { + child.markDirtyPosition(); + child.markDirtyBounds(); + }); + this._prevWidth = innerWidth; + this._prevHeight = innerHeight; + this._sizeDirty = true; + this.updateBackground(); + } + } + _updateHTMLContent() { + const html = this.get("html", ""); + if (html && html !== "") { + this._root._setHTMLContent(this, populateString(this, html)); + } else { + this._root._removeHTMLContent(this); + } + this._root._positionHTMLElement(this); + } + /** + * If scrolling is enabled on the Container (by adding `verticalScrollbar`) + * the Container will scroll in such way so that target element becomes + * visible if its currently outside of view. + * + * @param child Target child + * @since 5.10.5 + */ + scrollToChild(child) { + const verticalScrollbar = this.get("verticalScrollbar"); + if (verticalScrollbar) { + let y = child.y(); + let h = this.innerHeight(); + let ch = child.height(); + let contentH = this._contentHeight; + let max2 = 1 - (h - ch / 2) / contentH; + if (y + ch * 0.7 + this._childrenDisplay.y > h || y - ch * 0.3 + this._childrenDisplay.y < 0) { + let pos = Math.max(0, Math.min(max2, (y - ch / 2) / contentH)); + verticalScrollbar.animate({ key: "start", to: pos, duration: verticalScrollbar.get("animationDuration", 0), easing: verticalScrollbar.get("animationEasing") }); + } + } + } + _updateChildren() { + this._childrenUpdt = true; + if (this.isDirty("html")) { + this._updateHTMLContent(); + } + if (this.isDirty("verticalScrollbar")) { + const verticalScrollbar = this.get("verticalScrollbar"); + if (verticalScrollbar) { + verticalScrollbar._setParent(this); + verticalScrollbar.startGrip.setPrivate("visible", false); + verticalScrollbar.endGrip.setPrivate("visible", false); + this.set("maskContent", true); + this.set("paddingRight", verticalScrollbar.width() + verticalScrollbar.get("marginRight", 0) + verticalScrollbar.get("marginLeft", 0)); + let background = this.get("background"); + if (!background) { + background = this.set("background", Rectangle.new(this._root, { + themeTags: ["background"], + fillOpacity: 0, + fill: this._root.interfaceColors.get("alternativeBackground") + })); + } + this._vsbd0 = this.events.on("wheel", (event) => { + const wheelEvent = event.originalEvent; + if (isLocalEvent(wheelEvent, this)) { + wheelEvent.preventDefault(); + } else { + return; + } + let shiftY = wheelEvent.deltaY / 5e3; + const start = verticalScrollbar.get("start", 0); + const end = verticalScrollbar.get("end", 1); + if (start + shiftY <= 0) { + shiftY = -start; + } + if (end + shiftY >= 1) { + shiftY = 1 - end; + } + if (start + shiftY >= 0 && end + shiftY <= 1) { + verticalScrollbar.set("start", start + shiftY); + verticalScrollbar.set("end", end + shiftY); + } + }); + this._disposers.push(this._vsbd0); + this._vsbd1 = verticalScrollbar.events.on("rangechanged", () => { + let h = this._contentHeight; + const childrenDisplay = this._childrenDisplay; + const contentMask = this._contentMask; + childrenDisplay.y = -verticalScrollbar.get("start", 0) * h; + childrenDisplay.markDirtyLayer(); + if (contentMask) { + contentMask._display.y = -childrenDisplay.y; + childrenDisplay.mask = contentMask._display; + } + }); + this._disposers.push(this._vsbd1); + this._display.addChild(verticalScrollbar._display); + } else { + const previous = this._prevSettings.verticalScrollbar; + if (previous) { + this._display.removeChild(previous._display); + if (this._vsbd0) { + this._vsbd0.dispose(); + } + if (this._vsbd1) { + this._vsbd1.dispose(); + } + const childrenDisplay = this._childrenDisplay; + childrenDisplay.y = 0; + this.setPrivate("height", void 0); + this.set("maskContent", false); + this.set("paddingRight", void 0); + } + } + } + if (this.isDirty("background")) { + const previous = this._prevSettings["background"]; + if (previous) { + this._display.removeChild(previous._display); + } + const background = this.get("background"); + if (background instanceof Sprite) { + background.set("isMeasured", false); + background._setParent(this); + this._display.addChildAt(background._display, 0); + } + } + if (this.isDirty("mask")) { + const mask = this.get("mask"); + const previous = this._prevSettings["mask"]; + if (previous) { + this._display.removeChild(previous._display); + if (previous != mask) { + previous.dispose(); + } + } + if (mask) { + const parent = mask.parent; + if (parent) { + parent.children.removeValue(mask); + } + mask._setParent(this); + this._display.addChildAt(mask._display, 0); + this._childrenDisplay.mask = mask._display; + } + } + } + _processTemplateField() { + super._processTemplateField(); + this.children.each((child) => { + child._processTemplateField(); + }); + } + /** + * @ignore + */ + walkChildren(f) { + this.children.each((child, index) => { + if (child instanceof _Container) { + child.walkChildren(f); + } + f(child, index); + }); + } + eachChildren(f) { + const background = this.get("background"); + if (background) { + f(background); + } + const verticalScrollbar = this.get("verticalScrollbar"); + if (verticalScrollbar) { + f(verticalScrollbar); + } + const mask = this.get("mask"); + if (mask) { + f(mask); + } + this.children.values.forEach((child) => { + f(child); + }); + } + allChildren() { + const output = []; + this.eachChildren((x) => { + output.push(x); + }); + return output; + } + _setDataItem(dataItem) { + const updated = dataItem !== this._dataItem; + super._setDataItem(dataItem); + const html = this.get("html", ""); + if (html && html !== "" && updated) { + this._root._setHTMLContent(this, populateString(this, html)); + } + } + contentWidth() { + return this._contentWidth; + } + contentHeight() { + return this._contentHeight; + } + }; + Container.className = "Container"; + Container.classNames = Sprite.classNames.concat([Container.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Text.js + var Text = class extends Sprite { + constructor() { + super(...arguments); + this.textStyle = this._root._renderer.makeTextStyle(); + this._display = this._root._renderer.makeText("", this.textStyle); + this._textStyles = [ + "textAlign", + "fontFamily", + "fontSize", + "fontStyle", + "fontWeight", + "fontStyle", + "fontVariant", + "textDecoration", + "shadowColor", + "shadowBlur", + "shadowOffsetX", + "shadowOffsetY", + "shadowOpacity", + // "leading", + // "letterSpacing", + "lineHeight", + "baselineRatio", + //"padding", + // "stroke", + // "strokeThickness", + // "trim", + // "wordWrap", + "direction", + "textBaseline", + "oversizedBehavior", + "breakWords", + "ellipsis", + "minScale", + "maxChars" + ]; + } + _updateBounds() { + if (!this.get("text")) { + let newBounds = { + left: 0, + right: 0, + top: 0, + bottom: 0 + }; + this._adjustedLocalBounds = newBounds; + } else { + super._updateBounds(); + let fillGradient = this.get("fillGradient"); + if (fillGradient) { + this._display.style.fill = fillGradient.getFill(this); + } + } + } + _changed() { + super._changed(); + this._display.clear(); + let textStyle = this.textStyle; + if (this.isDirty("opacity")) { + let opacity = this.get("opacity", 1); + this._display.alpha = opacity; + } + if (this.isDirty("text") || this.isDirty("populateText")) { + this._display.text = this._getText(); + this.markDirtyBounds(); + if (this.get("role") == "tooltip") { + this._root.updateTooltip(this); + } + } + if (this.isPrivateDirty("tooltipElement")) { + const tooltipElement = this.getPrivate("tooltipElement"); + if (tooltipElement) { + this._disposers.push(new Disposer(() => { + this._root._removeTooltipElement(this); + })); + } + } + if (this.isDirty("width")) { + textStyle.wordWrapWidth = this.width(); + this.markDirtyBounds(); + } + if (this.isDirty("oversizedBehavior")) { + textStyle.oversizedBehavior = this.get("oversizedBehavior", "none"); + this._display.invalidateVisibility(); + this.markDirtyBounds(); + } + if (this.isDirty("breakWords")) { + textStyle.breakWords = this.get("breakWords", false); + this.markDirtyBounds(); + } + if (this.isDirty("ellipsis")) { + textStyle.ellipsis = this.get("ellipsis"); + this.markDirtyBounds(); + } + if (this.isDirty("ignoreFormatting")) { + textStyle.ignoreFormatting = this.get("ignoreFormatting", false); + this.markDirtyBounds(); + } + if (this.isDirty("minScale")) { + textStyle.minScale = this.get("minScale", 0); + this.markDirtyBounds(); + } + if (this.isDirty("fill") || this.isDirty("fillGradient")) { + const fill = this.get("fill"); + const fillGradient = this.get("fillGradient"); + const fillOpacity = this.get("fillOpacity"); + if (fillGradient) { + if (fill) { + const stops = fillGradient.get("stops", []); + if (stops.length) { + each(stops, (stop) => { + if ((!stop.color || stop.colorInherited) && fill) { + stop.color = fill; + stop.colorInherited = true; + } + if (stop.opacity == null || stop.opacityInherited) { + stop.opacity = fillOpacity; + stop.opacityInherited = true; + } + }); + } + } + textStyle.fill = fillGradient.getFill(this); + } else if (fill) { + textStyle.fill = fill; + } + } + if (this.isDirty("fillOpacity")) { + let fillOpacity = this.get("fillOpacity", 1); + if (fillOpacity) { + textStyle.fillOpacity = fillOpacity; + } + } + if (this.isDirty("maxWidth") || this.isPrivateDirty("maxWidth")) { + textStyle.maxWidth = this.get("maxWidth", this.getPrivate("maxWidth")); + this.markDirtyBounds(); + } + if (this.isDirty("maxHeight") || this.isPrivateDirty("maxHeight")) { + textStyle.maxHeight = this.get("maxHeight", this.getPrivate("maxHeight")); + this.markDirtyBounds(); + } + each(this._textStyles, (styleName) => { + if (this._dirty[styleName]) { + textStyle[styleName] = this.get(styleName); + this.markDirtyBounds(); + } + }); + textStyle["fontSize"] = this.get("fontSize"); + textStyle["fontFamily"] = this.get("fontFamily"); + this._display.style = textStyle; + if (this.isDirty("role") && this.get("role") == "tooltip") { + this._root.updateTooltip(this); + } + } + _getText() { + let text = this.get("text", ""); + if (this.get("maxChars")) { + text = truncateTextWithEllipsis(text, this.get("maxChars", 1e8), this.get("breakWords"), this.get("ellipsis")); + } + return this.get("populateText") ? populateString(this, text) : text; + } + _getAccessibleText() { + const ariaLabel = this.get("ariaLabel"); + if (ariaLabel !== void 0) { + return this.get("populateText") ? populateString(this, ariaLabel) : ariaLabel; + } + return this._getText(); + } + /** + * Forces the text to be re-evaluated and re-populated. + */ + markDirtyText() { + this._display.text = this._getText(); + if (this.get("role") == "tooltip") { + this._root.updateTooltip(this); + } + this.markDirtyBounds(); + this.markDirty(); + } + _setDataItem(dataItem) { + super._setDataItem(dataItem); + if (this.get("populateText")) { + this.markDirtyText(); + } + } + getNumberFormatter() { + if (this.parent) { + return this.parent.getNumberFormatter(); + } else { + return super.getNumberFormatter(); + } + } + getDateFormatter() { + if (this.parent) { + return this.parent.getDateFormatter(); + } else { + return super.getDateFormatter(); + } + } + getDurationFormatter() { + if (this.parent) { + return this.parent.getDurationFormatter(); + } else { + return super.getDurationFormatter(); + } + } + }; + Text.className = "Text"; + Text.classNames = Sprite.classNames.concat([Text.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/ResizeSensor.js + var Native = class { + constructor() { + this._targets = []; + this._observer = new ResizeObserver((entries2) => { + each(entries2, (entry) => { + each(this._targets, (x) => { + if (x.target === entry.target) { + x.callback(); + } + }); + }); + }); + } + addTarget(target, callback) { + this._observer.observe(target, { box: "border-box" }); + this._targets.push({ target, callback }); + } + removeTarget(target) { + this._observer.unobserve(target); + keepIf(this._targets, (x) => { + return x.target !== target; + }); + } + }; + var Raf = class _Raf { + constructor() { + this._timer = null; + this._targets = []; + } + addTarget(target, callback) { + if (this._timer === null) { + let lastTime = null; + const loop = () => { + const currentTime = Date.now(); + if (lastTime === null || currentTime > lastTime + _Raf.delay) { + lastTime = currentTime; + each(this._targets, (x) => { + let newSize = x.target.getBoundingClientRect(); + if (newSize.width !== x.size.width || newSize.height !== x.size.height) { + x.size = newSize; + x.callback(); + } + }); + } + if (this._targets.length === 0) { + this._timer = null; + } else { + this._timer = requestAnimationFrame(loop); + } + }; + this._timer = requestAnimationFrame(loop); + } + let size = { width: 0, height: 0, left: 0, right: 0, top: 0, bottom: 0, x: 0, y: 0 }; + this._targets.push({ target, callback, size }); + } + removeTarget(target) { + keepIf(this._targets, (x) => { + return x.target !== target; + }); + if (this._targets.length === 0) { + if (this._timer !== null) { + cancelAnimationFrame(this._timer); + this._timer = null; + } + } + } + }; + Raf.delay = 200; + var observer = null; + function makeSensor() { + if (observer === null) { + if (typeof ResizeObserver !== "undefined") { + observer = new Native(); + } else { + observer = new Raf(); + } + } + return observer; + } + var ResizeSensor = class { + constructor(element, callback) { + this._disposed = false; + this._sensor = makeSensor(); + this._element = element; + this._listener = onZoom(callback); + this._sensor.addTarget(element, callback); + } + isDisposed() { + return this._disposed; + } + dispose() { + if (!this._disposed) { + this._disposed = true; + this._sensor.removeTarget(this._element); + this._listener.dispose(); + } + } + get sensor() { + return this._sensor; + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/InterfaceColors.js + var InterfaceColors = class extends Entity { + }; + InterfaceColors.className = "InterfaceColors"; + InterfaceColors.classNames = Entity.classNames.concat([InterfaceColors.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Label.js + var Label = class extends Container { + constructor() { + super(...arguments); + this._textKeys = [ + "text", + "fill", + "fillGradient", + "fillOpacity", + "textAlign", + "fontFamily", + "fontSize", + "fontStyle", + "fontWeight", + "fontStyle", + "fontVariant", + "textDecoration", + "shadowColor", + "shadowBlur", + "shadowOffsetX", + "shadowOffsetY", + "shadowOpacity", + // "leading", + // "letterSpacing", + "lineHeight", + "baselineRatio", + //"padding", + // "stroke", + // "strokeThickness", + // "trim", + // "wordWrap", + "direction", + "textBaseline", + "oversizedBehavior", + "breakWords", + "ellipsis", + "minScale", + "populateText", + "role", + "ignoreFormatting", + "maxChars", + "ariaLabel" + ]; + } + /** + * @ignore Text is not to be used directly + */ + get text() { + return this._text; + } + _afterNew() { + super._afterNew(); + this._makeText(); + each(this._textKeys, (property) => { + const propValue = this.get(property); + if (propValue != void 0) { + this._text.set(property, propValue); + } + }); + if (this.get("html", "") !== "") { + this._text.set("text", ""); + } + this.onPrivate("maxWidth", () => { + this._setMaxDimentions(); + }); + this.onPrivate("maxHeight", () => { + this._setMaxDimentions(); + }); + } + _makeText() { + this._text = this.children.push(Text.new(this._root, {})); + } + _updateChildren() { + super._updateChildren(); + const text = this._text; + each(this._textKeys, (property) => { + this._text.set(property, this.get(property)); + }); + if (this.isDirty("maxWidth") || this.isDirty("maxHeight") || this.isDirty("rotation")) { + this._setMaxDimentions(); + } + if (this.get("html", "") !== "") { + text.set("text", ""); + } else { + text.set("text", this.get("text")); + this._maybeUpdateHTMLColor(); + } + if (this.isDirty("fill") || this.isDirty("fillGradient")) { + this._maybeUpdateHTMLColor(); + } + if (this.isDirty("textAlign") || this.isDirty("width")) { + const textAlign = this.get("textAlign"); + let x; + if (this.get("width") != null) { + if (textAlign == "right") { + x = p100; + } else if (textAlign == "center") { + x = p50; + } else { + x = 0; + } + } else { + if (textAlign == "left" || textAlign == "start") { + x = this.get("paddingLeft", 0); + } else if (textAlign == "right" || textAlign == "end") { + x = -this.get("paddingRight", 0); + } + } + text.set("x", x); + } + const background = this.get("background"); + if (background) { + background.setPrivate("visible", text._display.textVisible); + } + } + _maybeUpdateHTMLColor() { + const htmlElement = this.getPrivate("htmlElement"); + if (htmlElement && this.get("fill")) { + htmlElement.style.color = this.get("fill").toCSSHex(); + } + } + _setMaxDimentions() { + const rotation = this.get("rotation"); + const vertical = rotation == 90 || rotation == 270 || rotation == -90; + const text = this._text; + const maxWidth = this.get("maxWidth", this.getPrivate("maxWidth", Infinity)); + if (isNumber(maxWidth)) { + text.set(vertical ? "maxHeight" : "maxWidth", maxWidth - this.get("paddingTop", 0) - this.get("paddingBottom", 0)); + } else { + text.set(vertical ? "maxHeight" : "maxWidth", void 0); + } + const maxHeight = this.get("maxHeight", this.getPrivate("maxHeight", Infinity)); + if (isNumber(maxHeight)) { + text.set(vertical ? "maxWidth" : "maxHeight", maxHeight - this.get("paddingLeft", 0) - this.get("paddingRight", 0)); + } else { + text.set(vertical ? "maxWidth" : "maxHeight", void 0); + } + this.root.events.once("frameended", () => { + text.markDirtyBounds(); + }); + } + _setDataItem(dataItem) { + super._setDataItem(dataItem); + this._markDirtyKey("text"); + this._markDirtyKey("html"); + const text = this._text; + if (text.get("populateText")) { + text.markDirtyText(); + } + const html = this.get("html"); + if (html && html !== "") { + this._updateHTMLContent(); + } + } + /** + * Returns text with populated placeholders and formatting if `populateText` is + * set to `true`. + * + * @return Populated text + */ + getText() { + return this._text._getText(); + } + /** + * Returns "aria-label" text with populated placeholders and formatting + * if `populateText` is set to `true`. + * + * @return Populated text + */ + getAccessibleText() { + return this._text._getAccessibleText(); + } + }; + Label.className = "Label"; + Label.classNames = Container.classNames.concat([Label.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/PointedRectangle.js + var PointedRectangle = class extends Graphics { + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("pointerBaseWidth") || this.isDirty("cornerRadius") || this.isDirty("pointerLength") || this.isDirty("pointerX") || this.isDirty("pointerY") || this.isDirty("width") || this.isDirty("height")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear) { + this.markDirtyBounds(); + let w = this.width(); + let h = this.height(); + if (w > 0 && h > 0) { + let cr = this.get("cornerRadius", 8); + cr = fitToRange(cr, 0, Math.min(w / 2, h / 2)); + let x = this.get("pointerX", 0); + let y = this.get("pointerY", 0); + let bwh = this.get("pointerBaseWidth", 15) / 2; + let xtl = 0; + let ytl = 0; + let xtr = w; + let ytr = 0; + let xbr = w; + let ybr = h; + let xbl = 0; + let ybl = h; + let d1 = (x - xtl) * (ybr - ytl) - (y - ytl) * (xbr - xtl); + let d2 = (x - xbl) * (ytr - ybl) - (y - ybl) * (xtr - xbl); + const display = this._display; + display.moveTo(cr, 0); + if (d1 > 0 && d2 > 0) { + let stemX = Math.round(fitToRange(x, cr + bwh, w - bwh - cr)); + y = fitToRange(y, -Infinity, 0); + display.lineTo(stemX - bwh, 0); + display.lineTo(x, y); + display.lineTo(stemX + bwh, 0); + } + display.lineTo(w - cr, 0); + display.arcTo(w, 0, w, cr, cr); + if (d1 > 0 && d2 < 0) { + let stemY = Math.round(fitToRange(y, cr + bwh, h - bwh - cr)); + x = fitToRange(x, w, Infinity); + display.lineTo(w, cr); + display.lineTo(w, Math.max(stemY - bwh, cr)); + display.lineTo(x, y); + display.lineTo(w, stemY + bwh); + } + display.lineTo(w, h - cr); + display.arcTo(w, h, w - cr, h, cr); + if (d1 < 0 && d2 < 0) { + let stemX = Math.round(fitToRange(x, cr + bwh, w - bwh - cr)); + y = fitToRange(y, h, Infinity); + display.lineTo(w - cr, h); + display.lineTo(stemX + bwh, h); + display.lineTo(x, y); + display.lineTo(stemX - bwh, h); + } + display.lineTo(cr, h); + display.arcTo(0, h, 0, h - cr, cr); + if (d1 < 0 && d2 > 0) { + let stemY = Math.round(fitToRange(y, cr + bwh, h - cr - bwh)); + x = fitToRange(x, -Infinity, 0); + display.lineTo(0, h - cr); + display.lineTo(0, stemY + bwh); + display.lineTo(x, y); + display.lineTo(0, Math.max(stemY - bwh, cr)); + } + display.lineTo(0, cr); + display.arcTo(0, 0, cr, 0, cr); + display.closePath(); + } + } + } + }; + PointedRectangle.className = "PointedRectangle"; + PointedRectangle.classNames = Graphics.classNames.concat([PointedRectangle.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Tooltip.js + var Tooltip = class extends Container { + constructor(root2, settings, isReal, templates = []) { + super(root2, settings, isReal, templates); + this._fx = 0; + this._fy = 0; + this._w = 0; + this._h = 0; + this._htmlContentHovered = false; + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["tooltip"]); + super._afterNew(); + const background = this._setDefaultFn("background", () => { + return PointedRectangle.new(this._root, {}); + }); + background.set("themeTags", ["tooltip", "background"]); + this._label = this.children.push(Label.new(this._root, {})); + this._disposers.push(this._label.events.on("boundschanged", () => { + this._updateBackground(); + })); + this._disposers.push(this.on("bounds", () => { + this._updateBackground(); + })); + this._updateTextColor(); + this._root.tooltipContainer.children.push(this); + this.hide(0); + this._disposers.push(this.label.onPrivate("htmlElement", (htmlElement) => { + if (htmlElement) { + this._disposers.push(addEventListener(htmlElement, "pointerover", (_ev) => { + this._htmlContentHovered = true; + })); + this._disposers.push(addEventListener(htmlElement, "pointerout", (_ev) => { + this._htmlContentHovered = false; + })); + } + })); + this.on("visible", (_ev) => { + this._handleReaderAnnouncement(); + }); + this.label.events.on("dataitemchanged", (_ev) => { + this._handleReaderAnnouncement(); + }); + this._root._tooltips.push(this); + } + _handleReaderAnnouncement() { + if (this.get("readerAnnounce") && this.isVisibleDeep()) { + this._root.readerAlert(this.label.getAccessibleText()); + } + } + /** + * A [[Label]] element for the tooltip. + * + * @readonly + * @return Label + */ + get label() { + return this._label; + } + /** + * Permanently disposes the tooltip. + */ + _dispose() { + super._dispose(); + remove(this._root._tooltips, this); + } + _updateChildren() { + super._updateChildren(); + if (this.isDirty("pointerOrientation") || this.isPrivateDirty("minWidth") || this.isPrivateDirty("minHeight")) { + this.get("background")._markDirtyKey("width"); + } + const labelText = this.get("labelText"); + if (labelText != null) { + this.label.set("text", this.get("labelText")); + } + const labelHTML = this.get("labelHTML"); + if (labelHTML != null) { + this.label.set("html", this.get("labelHTML")); + } + const labelAriaLabel = this.get("labelAriaLabel"); + if (labelAriaLabel != null) { + this.label.set("ariaLabel", this.get("labelAriaLabel")); + } + } + _changed() { + super._changed(); + if (this.isDirty("pointTo") || this.isDirty("pointerOrientation")) { + this._updateBackground(); + } + if (this.isDirty("tooltipTarget")) { + this.updateBackgroundColor(); + } + if (this.isDirty("keepTargetHover")) { + const keephover = this.get("keepTargetHover"); + if (keephover) { + const bg = this.get("background"); + this._keepHoverDp = new MultiDisposer([ + bg.events.on("pointerover", (_ev) => { + let target = this.get("tooltipTarget"); + if (target) { + if (target.parent && target.parent.getPrivate("tooltipTarget") == target) { + target = target.parent; + } + target.hover(); + } + }), + bg.events.on("pointerout", (_ev) => { + let target = this.get("tooltipTarget"); + if (target) { + if (target.parent && target.parent.getPrivate("tooltipTarget") == target) { + target = target.parent; + } + if (!this._htmlContentHovered) { + target.unhover(); + } + } + }) + ]); + this.label.onPrivate("htmlElement", (htmlElement) => { + if (this._keepHoverDp && htmlElement) { + this._keepHoverDp.disposers.push(addEventListener(htmlElement, "pointerleave", (ev) => { + const outEvent = this.root._renderer.getEvent(ev); + bg.events.dispatch("pointerout", { + type: "pointerout", + originalEvent: outEvent.event, + point: outEvent.point, + simulated: false, + target: bg + }); + })); + } + }); + } else { + if (this._keepHoverDp) { + this._keepHoverDp.dispose(); + this._keepHoverDp = void 0; + } + } + } + } + _onShow() { + super._onShow(); + this.updateBackgroundColor(); + } + updateBackgroundColor() { + let tooltipTarget = this.get("tooltipTarget"); + const background = this.get("background"); + let fill; + let stroke; + if (tooltipTarget && background) { + fill = tooltipTarget.get("fill"); + stroke = tooltipTarget.get("stroke"); + if (fill == null) { + fill = stroke; + } + if (this.get("getFillFromSprite")) { + if (this._fillDp) { + this._fillDp.dispose(); + } + if (fill != null) { + background.set("fill", fill); + } + this._fillDp = tooltipTarget.on("fill", (fill2) => { + if (fill2 != null) { + background.set("fill", fill2); + this._updateTextColor(fill2); + } + }); + this._disposers.push(this._fillDp); + } + if (this.get("getFillGradientFromSprite")) { + if (this._fillGrDp) { + this._fillGrDp.dispose(); + } + let fillGradient = tooltipTarget.get("fillGradient"); + if (fillGradient != null) { + background.set("fillGradient", fillGradient); + } + this._fillGrDp = tooltipTarget.on("fillGradient", (fillGradient2) => { + if (fillGradient2 != null) { + background.set("fillGradient", fillGradient2); + } + }); + this._disposers.push(this._fillGrDp); + } + if (this.get("getStrokeFromSprite")) { + if (this._strokeDp) { + this._strokeDp.dispose(); + } + if (fill != null) { + background.set("stroke", fill); + } + this._strokeDp = tooltipTarget.on("fill", (fill2) => { + if (fill2 != null) { + background.set("stroke", fill2); + } + }); + this._disposers.push(this._strokeDp); + } + if (this.get("getLabelFillFromSprite")) { + if (this._labelDp) { + this._labelDp.dispose(); + } + if (fill != null) { + this.label.set("fill", fill); + } + this._labelDp = tooltipTarget.on("fill", (fill2) => { + if (fill2 != null) { + this.label.set("fill", fill2); + } + }); + this._disposers.push(this._labelDp); + } + } + this._updateTextColor(fill); + } + _updateTextColor(fill) { + if (this.get("autoTextColor")) { + if (fill == null) { + fill = this.get("background").get("fill"); + } + if (fill == null) { + fill = this._root.interfaceColors.get("background"); + } + if (fill instanceof Color) { + this.label.set("fill", Color.alternative(fill, this._root.interfaceColors.get("alternativeText"), this._root.interfaceColors.get("text"))); + } + } + } + _setDataItem(dataItem) { + super._setDataItem(dataItem); + this.label._setDataItem(dataItem); + } + _updateBackground() { + super.updateBackground(); + const parent = this._root.container; + if (parent) { + let cw = 0.5; + let ch = 0.5; + let centerX = this.get("centerX"); + if (centerX instanceof Percent) { + cw = centerX.value; + } + let centerY = this.get("centerY"); + if (centerY instanceof Percent) { + ch = centerY.value; + } + let parentW = parent.width(); + let parentH = parent.height(); + let tooltipContainer = this.parent; + let xx = 0; + let yy = 0; + if (tooltipContainer) { + xx = tooltipContainer.x(); + yy = tooltipContainer.y(); + const layerMargin = tooltipContainer.get("layerMargin"); + if (layerMargin) { + xx += layerMargin.left || 0; + yy += layerMargin.top || 0; + parentW += (layerMargin.left || 0) + (layerMargin.right || 0); + parentH += (layerMargin.top || 0) + (layerMargin.bottom || 0); + } + } + const bounds = this.get("bounds", { left: -xx, top: -yy, right: parentW - xx, bottom: parentH - yy }); + this._updateBounds(); + let w = this.width(); + let h = this.height(); + if (w === 0) { + w = this._w; + } + if (h === 0) { + h = this._h; + } + let pointTo = this.get("pointTo", { x: parentW / 2, y: parentH / 2 }); + let x = pointTo.x; + let y = pointTo.y; + let pointerOrientation = this.get("pointerOrientation"); + let background = this.get("background"); + let pointerLength = 0; + let bgStrokeSizeY = 0; + let bgStrokeSizeX = 0; + if (background instanceof PointedRectangle) { + pointerLength = background.get("pointerLength", 0); + bgStrokeSizeY = background.get("strokeWidth", 0) / 2; + bgStrokeSizeX = bgStrokeSizeY; + background.set("width", w); + background.set("height", h); + } + let pointerX = 0; + let pointerY = 0; + let boundsW = bounds.right - bounds.left; + let boundsH = bounds.bottom - bounds.top; + if (pointerOrientation == "horizontal" || pointerOrientation == "left" || pointerOrientation == "right") { + bgStrokeSizeY = 0; + if (pointerOrientation == "horizontal") { + if (x > bounds.left + boundsW / 2) { + x -= w * (1 - cw) + pointerLength; + bgStrokeSizeX *= -1; + } else { + x += w * cw + pointerLength; + } + } else if (pointerOrientation == "left") { + x += w * (1 - cw) + pointerLength; + } else { + x -= w * cw + pointerLength; + bgStrokeSizeX *= -1; + } + } else { + bgStrokeSizeX = 0; + if (pointerOrientation == "vertical") { + if (y > bounds.top + h / 2 + pointerLength) { + y -= h * (1 - ch) + pointerLength; + } else { + y += h * ch + pointerLength; + bgStrokeSizeY *= -1; + } + } else if (pointerOrientation == "down") { + y -= h * (1 - ch) + pointerLength; + } else { + y += h * ch + pointerLength; + bgStrokeSizeY *= -1; + } + } + x = fitToRange(x, bounds.left + w * cw, bounds.left + boundsW - w * (1 - cw)) + bgStrokeSizeX; + y = fitToRange(y, bounds.top + h * ch, bounds.top + boundsH - h * (1 - ch)) - bgStrokeSizeY; + pointerX = pointTo.x - x + w * cw + bgStrokeSizeX; + pointerY = pointTo.y - y + h * ch - bgStrokeSizeY; + this._fx = x; + this._fy = y; + const animationDuration = this.get("animationDuration", 0); + if (animationDuration > 0 && this.get("visible") && this.get("opacity") > 0.1) { + const animationEasing = this.get("animationEasing"); + this.animate({ key: "x", to: x, duration: animationDuration, easing: animationEasing }); + this.animate({ key: "y", to: y, duration: animationDuration, easing: animationEasing }); + } else { + this.set("x", x); + this.set("y", y); + } + if (background instanceof PointedRectangle) { + background.set("pointerX", pointerX); + background.set("pointerY", pointerY); + } + if (w > 0) { + this._w = w; + } + if (h > 0) { + this._h = h; + } + } + } + }; + Tooltip.className = "Tooltip"; + Tooltip.classNames = Container.classNames.concat([Tooltip.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/NumberFormatter.js + var NumberFormatter = class extends Entity { + _setDefaults() { + this._setDefault("negativeBase", 0); + this._setDefault("numberFormat", "#,###.#####"); + this._setDefault("smallNumberThreshold", 1); + const bns = "_big_number_suffix_"; + const sns = "_small_number_suffix_"; + const bs = "_byte_suffix_"; + this._setDefault("bigNumberPrefixes", [ + { "number": 1e3, "suffix": this._t(bns + "3") }, + { "number": 1e6, "suffix": this._t(bns + "6") }, + { "number": 1e9, "suffix": this._t(bns + "9") }, + { "number": 1e12, "suffix": this._t(bns + "12") }, + { "number": 1e15, "suffix": this._t(bns + "15") }, + { "number": 1e18, "suffix": this._t(bns + "18") }, + { "number": 1e21, "suffix": this._t(bns + "21") }, + { "number": 1e24, "suffix": this._t(bns + "24") } + ]); + this._setDefault("smallNumberPrefixes", [ + { "number": 1e-24, "suffix": this._t(sns + "24") }, + { "number": 1e-21, "suffix": this._t(sns + "21") }, + { "number": 1e-18, "suffix": this._t(sns + "18") }, + { "number": 1e-15, "suffix": this._t(sns + "15") }, + { "number": 1e-12, "suffix": this._t(sns + "12") }, + { "number": 1e-9, "suffix": this._t(sns + "9") }, + { "number": 1e-6, "suffix": this._t(sns + "6") }, + { "number": 1e-3, "suffix": this._t(sns + "3") } + ]); + this._setDefault("bytePrefixes", [ + { "number": 1, suffix: this._t(bs + "B") }, + { "number": 1024, suffix: this._t(bs + "KB") }, + { "number": 1048576, suffix: this._t(bs + "MB") }, + { "number": 1073741824, suffix: this._t(bs + "GB") }, + { "number": 1099511627776, suffix: this._t(bs + "TB") }, + { "number": 1125899906842624, suffix: this._t(bs + "PB") } + ]); + super._setDefaults(); + } + _beforeChanged() { + super._beforeChanged(); + } + /** + * Formats the number according to specific format. + * + * @param value Value to format + * @param format Format to apply + * @return Formatted number + */ + format(value, format, precision) { + if (format == null || isString(format) && format.toLowerCase() === "number") { + format = this.get("numberFormat", ""); + } + let formatted; + let source = Number(value); + if (isObject(format)) { + try { + if (this.get("intlLocales")) { + return new Intl.NumberFormat(this.get("intlLocales"), format).format(source); + } else { + return new Intl.NumberFormat(void 0, format).format(source); + } + } catch (e) { + return "Invalid"; + } + } else { + format = cleanFormat(format); + let info = this.parseFormat(format, this._root.language); + let details; + if (source > this.get("negativeBase")) { + details = info.positive; + } else if (source < this.get("negativeBase")) { + details = info.negative; + } else { + details = info.zero; + } + if (precision != null && !details.mod) { + details = copy2(details); + details.decimals.active = source == 0 ? 0 : precision; + } + formatted = details.template.split(PLACEHOLDER).join(this.applyFormat(source, details)); + } + if (this.get("forceLTR") === true) { + formatted = "\u200E" + formatted; + } + return formatted; + } + /** + * Parses supplied format into structured object which can be used to format + * the number. + * + * @param format Format string, i.e. "#,###.00" + * @param language Language + * @ignore + */ + parseFormat(format, language) { + const thousandSeparator = language.translateEmpty("_thousandSeparator"); + const decimalSeparator = language.translateEmpty("_decimalSeparator"); + let info = { + "positive": { + "thousands": { + "active": -1, + "passive": -1, + "interval": -1, + "separator": thousandSeparator + }, + "decimals": { + "active": -1, + "passive": -1, + "separator": decimalSeparator + }, + "template": "", + "source": "", + "parsed": false + }, + "negative": { + "thousands": { + "active": -1, + "passive": -1, + "interval": -1, + "separator": thousandSeparator + }, + "decimals": { + "active": -1, + "passive": -1, + "separator": decimalSeparator + }, + "template": "", + "source": "", + "parsed": false + }, + "zero": { + "thousands": { + "active": -1, + "passive": -1, + "interval": -1, + "separator": thousandSeparator + }, + "decimals": { + "active": -1, + "passive": -1, + "separator": decimalSeparator + }, + "template": "", + "source": "", + "parsed": false + } + }; + format = format.replace("||", PLACEHOLDER2); + let parts = format.split("|"); + info.positive.source = parts[0]; + if (typeof parts[2] === "undefined") { + info.zero = info.positive; + } else { + info.zero.source = parts[2]; + } + if (typeof parts[1] === "undefined") { + info.negative = info.positive; + } else { + info.negative.source = parts[1]; + } + each2(info, (_part, item) => { + if (item.parsed) { + return; + } + let partFormat = item.source; + if (partFormat.toLowerCase() === "number") { + partFormat = this.get("numberFormat", "#,###.#####"); + } + let chunks = TextFormatter.chunk(partFormat, true); + for (let i = 0; i < chunks.length; i++) { + let chunk = chunks[i]; + chunk.text = chunk.text.replace(PLACEHOLDER2, "|"); + if (chunk.type === "value") { + let matches = chunk.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESP‰!]?/); + if (matches) { + if (matches === null || matches[0] === "") { + item.template += chunk.text; + } else { + let mods = matches[0].match(/[abespABESP%‰!]{2}|[abespABESP%‰]{1}$/); + if (mods) { + item.mod = mods[0].toLowerCase(); + item.modSpacing = matches[0].match(/[ ]{1}[abespABESP%‰!]{1}$/) ? true : false; + } + let a = matches[0].split("."); + if (a[0] === "") { + } else { + item.thousands.active = (a[0].match(/0/g) || []).length; + item.thousands.passive = (a[0].match(/\#/g) || []).length + item.thousands.active; + let b = a[0].split(","); + if (b.length === 1) { + } else { + item.thousands.interval = (b.pop() || "").length; + if (item.thousands.interval === 0) { + item.thousands.interval = -1; + } + } + } + if (typeof a[1] === "undefined") { + } else { + item.decimals.active = (a[1].match(/0/g) || []).length; + item.decimals.passive = (a[1].match(/\#/g) || []).length + item.decimals.active; + } + item.template += chunk.text.split(matches[0]).join(PLACEHOLDER); + } + } + } else { + item.template += chunk.text; + } + } + item.parsed = true; + }); + return info; + } + /** + * Applies parsed format to a numeric value. + * + * @param value Value + * @param details Parsed format as returned by parseFormat() + * @return Formatted number + * @ignore + */ + applyFormat(value, details) { + let negative = value < 0; + value = Math.abs(value); + let prefix = "", suffix = ""; + let mods = details.mod ? details.mod.split("") : []; + if (mods.indexOf("b") !== -1) { + let a2 = this.applyPrefix(value, this.get("bytePrefixes"), mods.indexOf("!") !== -1); + value = a2[0]; + prefix = a2[1]; + suffix = a2[2]; + if (details.modSpacing) { + suffix = " " + suffix; + } + } else if (mods.indexOf("a") !== -1) { + let a2 = this.applyPrefix(value, value < this.get("smallNumberThreshold") ? this.get("smallNumberPrefixes") : this.get("bigNumberPrefixes"), mods.indexOf("!") !== -1); + value = a2[0]; + prefix = a2[1]; + suffix = a2[2]; + if (details.modSpacing) { + suffix = " " + suffix; + } + } else if (mods.indexOf("p") !== -1) { + let ol = Math.min(value.toString().length + 2, 21); + value = parseFloat(value.toPrecision(ol)); + prefix = this._root.language.translate("_percentPrefix"); + suffix = this._root.language.translate("_percentSuffix"); + if (prefix == "" && suffix == "") { + suffix = "%"; + } + } else if (mods.indexOf("%") !== -1) { + let ol = Math.min(value.toString().length + 2, 21); + value *= 100; + value = parseFloat(value.toPrecision(ol)); + suffix = "%"; + } else if (mods.indexOf("\u2030") !== -1) { + let ol = Math.min(value.toString().length + 3, 21); + value *= 1e3; + value = parseFloat(value.toPrecision(ol)); + suffix = "\u2030"; + } + if (mods.indexOf("e") !== -1) { + let exp; + if (details.decimals.passive >= 0) { + exp = value.toExponential(details.decimals.passive).split("e"); + } else { + exp = value.toExponential().split("e"); + } + value = Number(exp[0]); + suffix = "e" + exp[1]; + if (details.modSpacing) { + suffix = " " + suffix; + } + } else if (details.decimals.passive === 0) { + value = Math.round(value); + } else if (details.decimals.passive > 0) { + const decimals = decimalPlaces(value); + if (decimals > 0) { + const d = Math.pow(10, details.decimals.passive); + value = Math.round(parseFloat((value * d).toFixed(decimals))) / d; + } + } + let res = ""; + let a = numberToString(value).split("."); + let ints = a[0]; + if (ints.length < details.thousands.active) { + ints = Array(details.thousands.active - ints.length + 1).join("0") + ints; + } + if (details.thousands.interval > 0) { + let ip = []; + let intsr = ints.split("").reverse().join(""); + for (let i = 0, len = ints.length; i <= len; i += details.thousands.interval) { + let c = intsr.substr(i, details.thousands.interval).split("").reverse().join(""); + if (c !== "") { + ip.unshift(c); + } + } + ints = ip.join(details.thousands.separator); + } + res += ints; + if (a.length === 1) { + a.push(""); + } + let decs = a[1]; + if (decs.length < details.decimals.active) { + decs += Array(details.decimals.active - decs.length + 1).join("0"); + } + if (decs !== "") { + res += details.decimals.separator + decs; + } + if (res === "") { + res = "0"; + } + if (value !== 0 && negative && mods.indexOf("s") === -1) { + res = "-" + res; + } + if (prefix) { + res = prefix + res; + } + if (suffix) { + res += suffix; + } + return res; + } + applyPrefix(value, prefixes, force = false) { + let newvalue = value; + let prefix = ""; + let suffix = ""; + let applied = false; + let k = 1; + for (let i = 0, len = prefixes.length; i < len; i++) { + if (prefixes[i].number <= value) { + if (prefixes[i].number === 0) { + newvalue = 0; + } else { + newvalue = value / prefixes[i].number; + k = prefixes[i].number; + } + prefix = prefixes[i].prefix; + suffix = prefixes[i].suffix; + applied = true; + } + } + if (!applied && force && prefixes.length && value != 0) { + newvalue = value / prefixes[0].number; + prefix = prefixes[0].prefix; + suffix = prefixes[0].suffix; + applied = true; + } + if (applied) { + newvalue = parseFloat(newvalue.toPrecision(Math.min(k.toString().length + Math.floor(newvalue).toString().replace(/[^0-9]*/g, "").length, 21))); + } + return [newvalue, prefix, suffix]; + } + /** + * Replaces brackets with temporary placeholders. + * + * @ignore Exclude from docs + * @param text Input text + * @return Escaped text + */ + escape(text) { + return text.replace("||", PLACEHOLDER2); + } + /** + * Replaces placeholders back to brackets. + * + * @ignore Exclude from docs + * @param text Escaped text + * @return Unescaped text + */ + unescape(text) { + return text.replace(PLACEHOLDER2, "|"); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Timezone.js + function parseDate(timezone, date) { + let year = 0; + let month = 0; + let day = 1; + let hour = 0; + let minute = 0; + let second = 0; + let millisecond = 0; + let weekday = 0; + timezone.formatToParts(date).forEach((x) => { + switch (x.type) { + case "year": + year = +x.value; + break; + case "month": + month = +x.value - 1; + break; + case "day": + day = +x.value; + break; + case "hour": + hour = +x.value; + break; + case "minute": + minute = +x.value; + break; + case "second": + second = +x.value; + break; + case "fractionalSecond": + millisecond = +x.value; + break; + case "weekday": + switch (x.value) { + case "Sun": + weekday = 0; + break; + case "Mon": + weekday = 1; + break; + case "Tue": + weekday = 2; + break; + case "Wed": + weekday = 3; + break; + case "Thu": + weekday = 4; + break; + case "Fri": + weekday = 5; + break; + case "Sat": + weekday = 6; + break; + } + } + }); + if (hour === 24) { + hour = 0; + } + return { year, month, day, hour, minute, second, millisecond, weekday }; + } + function toUTCDate(timezone, date) { + const { year, month, day, hour, minute, second, millisecond } = parseDate(timezone, date); + return Date.UTC(year, month, day, hour, minute, second, millisecond); + } + var Timezone = class { + constructor(timezone, isReal) { + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + this.name = timezone; + this._utc = new Intl.DateTimeFormat("en-US", { + hour12: false, + timeZone: "UTC", + year: "numeric", + month: "2-digit", + day: "2-digit", + hour: "2-digit", + minute: "2-digit", + second: "2-digit", + weekday: "short", + fractionalSecondDigits: 3 + }); + this._dtf = new Intl.DateTimeFormat("en-US", { + hour12: false, + timeZone: timezone, + year: "numeric", + month: "2-digit", + day: "2-digit", + hour: "2-digit", + minute: "2-digit", + second: "2-digit", + weekday: "short", + fractionalSecondDigits: 3 + }); + } + /** + * Use this method to create an instance of this class. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @param timezone IANA timezone + * @return Instantiated object + */ + static new(timezone) { + return new this(timezone, true); + } + convertLocal(date) { + const offset = this.offsetUTC(date); + const userOffset = date.getTimezoneOffset(); + const output = new Date(date); + output.setUTCMinutes(output.getUTCMinutes() - (offset - userOffset)); + const newUserOffset = output.getTimezoneOffset(); + if (userOffset != newUserOffset) { + output.setUTCMinutes(output.getUTCMinutes() + newUserOffset - userOffset); + } + return output; + } + offsetUTC(date) { + const utc = toUTCDate(this._utc, date); + const dtf = toUTCDate(this._dtf, date); + return (utc - dtf) / 6e4; + } + parseDate(date) { + return parseDate(this._dtf, date); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/DateFormatter.js + var DateFormatter = class extends Entity { + _setDefaults() { + this._setDefault("capitalize", true); + this._setDefault("dateFormat", "yyyy-MM-dd"); + super._setDefaults(); + } + _beforeChanged() { + super._beforeChanged(); + } + /** + * Formats a source `Date` object into string format + * @param source inpout date + * @param format Output format + * @param ignoreTimezone Ignore timezone? + * @return Formatted date + */ + format(source, format, ignoreTimezone = false) { + if (typeof format === "undefined" || format === "") { + format = this.get("dateFormat", "yyyy-MM-dd"); + } + let formatted; + let date = source; + if (isObject(format)) { + try { + const locales = this.get("intlLocales"); + if (locales) { + return new Intl.DateTimeFormat(locales, format).format(date); + } else { + return new Intl.DateTimeFormat(void 0, format).format(date); + } + } catch (e) { + return "Invalid"; + } + } + let info = this.parseFormat(format); + const timezone = this._root.timezone; + let originalDate = date; + if (timezone && !this._root.utc && !ignoreTimezone) { + date = timezone.convertLocal(date); + } + if (!isNumber(date.getTime())) { + return "Invalid date"; + } + formatted = this.applyFormat(date, info, ignoreTimezone, originalDate); + if (this.get("capitalize")) { + formatted = formatted.replace(/^.{1}/, formatted.substr(0, 1).toUpperCase()); + } + return formatted; + } + /** + * Applies format to Date. + * + * @param date Date object + * @param info Parsed format information + * @return Formatted date string + */ + applyFormat(date, info, ignoreTimezone = false, originalDate) { + let res = info.template; + let fullYear, month, weekday, day, hours, minutes, seconds, milliseconds, timestamp = date.getTime(); + if (this._root.utc && !ignoreTimezone) { + fullYear = date.getUTCFullYear(); + month = date.getUTCMonth(); + weekday = date.getUTCDay(); + day = date.getUTCDate(); + hours = date.getUTCHours(); + minutes = date.getUTCMinutes(); + seconds = date.getUTCSeconds(); + milliseconds = date.getUTCMilliseconds(); + } else { + fullYear = date.getFullYear(); + month = date.getMonth(); + weekday = date.getDay(); + day = date.getDate(); + hours = date.getHours(); + minutes = date.getMinutes(); + seconds = date.getSeconds(); + milliseconds = date.getMilliseconds(); + } + for (let i = 0, len = info.parts.length; i < len; i++) { + let value = ""; + switch (info.parts[i]) { + case "G": + value = this._t(fullYear < 0 ? "_era_bc" : "_era_ad"); + break; + case "yyyy": + value = Math.abs(fullYear).toString(); + if (fullYear < 0) { + value += this._t("_era_bc"); + } + break; + case "yyy": + case "yy": + case "y": + value = Math.abs(fullYear).toString().substr(-info.parts[i].length); + if (fullYear < 0) { + value += this._t("_era_bc"); + } + break; + case "YYYY": + case "YYY": + case "YY": + case "Y": + let year = getWeekYear(date, this._root.utc); + if (info.parts[i] == "YYYY") { + value = Math.abs(year).toString(); + } else { + value = Math.abs(year).toString().substr(-info.parts[i].length); + } + if (year < 0) { + value += this._t("_era_bc"); + } + break; + case "u": + break; + case "q": + value = "" + Math.ceil((date.getMonth() + 1) / 3); + break; + case "MMMMM": + value = this._t(this._getMonth(month)).substr(0, 1); + break; + case "MMMM": + value = this._t(this._getMonth(month)); + break; + case "MMM": + value = this._t(this._getShortMonth(month)); + break; + case "MM": + value = padString(month + 1, 2, "0"); + break; + case "M": + value = (month + 1).toString(); + break; + case "ww": + value = padString(getWeek(date, this._root.utc), 2, "0"); + break; + case "w": + value = getWeek(date, this._root.utc).toString(); + break; + case "W": + value = getMonthWeek(date, this._root.utc).toString(); + break; + case "dd": + value = padString(day, 2, "0"); + break; + case "d": + value = day.toString(); + break; + case "DD": + case "DDD": + value = padString(getYearDay(date, this._root.utc).toString(), info.parts[i].length, "0"); + break; + case "D": + value = getYearDay(date, this._root.utc).toString(); + break; + case "F": + break; + case "g": + break; + case "t": + value = this._root.language.translateFunc("_dateOrd").call(this, day); + break; + case "E": + value = (weekday || 7).toString(); + break; + case "EE": + value = padString((weekday || 7).toString(), 2, "0"); + break; + case "EEE": + case "eee": + value = this._t(this._getShortWeekday(weekday)); + break; + case "EEEE": + case "eeee": + value = this._t(this._getWeekday(weekday)); + break; + case "EEEEE": + case "eeeee": + value = this._t(this._getShortWeekday(weekday)).substr(0, 1); + break; + case "e": + case "ee": + value = (weekday - (this._root.locale.firstDayOfWeek || 1) + 1).toString(); + if (info.parts[i] == "ee") { + value = padString(value, 2, "0"); + } + break; + case "a": + if (hours >= 12) { + value = this._t("PM"); + } else { + value = this._t("AM"); + } + break; + case "aa": + if (hours >= 12) { + value = this._t("P.M."); + } else { + value = this._t("A.M."); + } + break; + case "aaa": + if (hours >= 12) { + value = this._t("P"); + } else { + value = this._t("A"); + } + break; + case "h": + value = get12Hours(hours).toString(); + break; + case "hh": + value = padString(get12Hours(hours), 2, "0"); + break; + case "H": + value = hours.toString(); + break; + case "HH": + value = padString(hours, 2, "0"); + break; + case "K": + value = get12Hours(hours, 0).toString(); + break; + case "KK": + value = padString(get12Hours(hours, 0), 2, "0"); + break; + case "k": + value = (hours + 1).toString(); + break; + case "kk": + value = padString(hours + 1, 2, "0"); + break; + case "m": + value = minutes.toString(); + break; + case "mm": + value = padString(minutes, 2, "0"); + break; + case "s": + value = seconds.toString(); + break; + case "ss": + value = padString(seconds, 2, "0"); + break; + case "S": + case "SS": + case "SSS": + value = Math.round(milliseconds / 1e3 * Math.pow(10, info.parts[i].length)).toString(); + break; + case "x": + value = timestamp.toString(); + break; + case "n": + case "nn": + case "nnn": + value = padString(milliseconds, info.parts[i].length, "0"); + break; + case "z": + value = getTimeZone(originalDate || date, false, false, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0).replace(/[+-]+[0-9]+$/, ""); + break; + case "zz": + value = getTimeZone(originalDate || date, true, false, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0); + break; + case "zzz": + value = getTimeZone(originalDate || date, false, true, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0).replace(/[+-]+[0-9]+$/, ""); + break; + case "zzzz": + value = getTimeZone(originalDate || date, true, true, this._root.utc, this._root.timezone ? this._root.timezone.name : void 0); + break; + case "Z": + case "ZZ": + let timezone = this._root.utc ? "UTC" : this._root.timezone; + if (timezone instanceof Timezone) { + timezone = timezone.name; + } + const offset = timezone ? getTimezoneOffset(timezone, originalDate || date) : date.getTimezoneOffset(); + let tz = Math.abs(offset) / 60; + let tzh = Math.floor(tz); + let tzm = tz * 60 - tzh * 60; + if (this._root.utc) { + tzh = 0; + tzm = 0; + } + if (info.parts[i] == "Z") { + value = "GMT"; + value += offset > 0 ? "-" : "+"; + value += padString(tzh, 2) + ":" + padString(tzm, 2); + } else { + value = offset > 0 ? "-" : "+"; + value += padString(tzh, 2) + padString(tzm, 2); + } + break; + case "i": + value = date.toISOString(); + break; + case "I": + value = date.toUTCString(); + break; + } + res = res.replace(PLACEHOLDER, value); + } + return res; + } + /** + * Parses format into structured infromation. + * + * @param format Format template + */ + parseFormat(format) { + let info = { + "template": "", + "parts": [] + }; + let chunks = TextFormatter.chunk(format, true); + for (let i = 0; i < chunks.length; i++) { + let chunk = chunks[i]; + if (chunk.type === "value") { + if (chunk.text.match(/^date$/i)) { + let dateFormat = this.get("dateFormat", "yyyy-MM-dd"); + if (!isString(dateFormat)) { + dateFormat = "yyyy-MM-dd"; + } + chunk.text = dateFormat; + } + let matches = chunk.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g); + if (matches) { + for (let x = 0; x < matches.length; x++) { + info.parts.push(matches[x]); + chunk.text = chunk.text.replace(matches[x], PLACEHOLDER); + } + } + } + info.template += chunk.text; + } + return info; + } + _months() { + return ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; + } + _getMonth(index) { + return this._months()[index]; + } + _shortMonths() { + return ["Jan", "Feb", "Mar", "Apr", "May(short)", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; + } + _getShortMonth(index) { + return this._shortMonths()[index]; + } + _weekdays() { + return ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; + } + _getWeekday(index) { + return this._weekdays()[index]; + } + _shortWeekdays() { + return ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; + } + _getShortWeekday(index) { + return this._shortWeekdays()[index]; + } + parse(source, format, utc) { + if (typeof utc === "undefined") { + utc = this._root.utc; + } + if (source instanceof Date) { + return source; + } + if (isNumber(source)) { + return new Date(source); + } + if (format == "x") { + return new Date(parseInt(source)); + } + if (!isString(source)) { + source = source.toString(); + } + let res; + let reg = ""; + format = cleanFormat(format); + format = format.substr(0, source.length); + let info = this.parseFormat(format); + let parsedIndexes = { + "year": -1, + "year3": -1, + "year2": -1, + "year1": -1, + "month": -1, + "monthShort": -1, + "monthLong": -1, + "weekdayShort": -1, + "weekdayLong": -1, + "day": -1, + "yearDay": -1, + "week": -1, + "hourBase0": -1, + "hour12Base0": -1, + "hourBase1": -1, + "hour12Base1": -1, + "minute": -1, + "second": -1, + "millisecond": -1, + "millisecondDigits": -1, + "am": -1, + "zone": -1, + "timestamp": -1, + "iso": -1 + }; + let resValues = { + "year": 1970, + "month": 0, + "day": 1, + "hour": 0, + "minute": 0, + "second": 0, + "millisecond": 0, + "timestamp": null, + "offset": 0, + "utc": utc + }; + let indexAdjust = 0; + let index = 0; + for (let i = 0; i < info.parts.length; i++) { + index = i + indexAdjust + 1; + switch (info.parts[i]) { + case "yyyy": + case "YYYY": + reg += "([0-9]{4})"; + parsedIndexes.year = index; + break; + case "yyy": + case "YYY": + reg += "([0-9]{3})"; + parsedIndexes.year3 = index; + break; + case "yy": + case "YY": + reg += "([0-9]{2})"; + parsedIndexes.year2 = index; + break; + case "y": + case "Y": + reg += "([0-9]{1})"; + parsedIndexes.year1 = index; + break; + case "MMMM": + reg += "(" + this.getStringList(this._months()).join("|") + ")"; + parsedIndexes.monthLong = index; + break; + case "MMM": + reg += "(" + this.getStringList(this._shortMonths()).join("|") + ")"; + parsedIndexes.monthShort = index; + break; + case "MM": + case "M": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.month = index; + break; + case "ww": + case "w": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.week = index; + break; + case "dd": + case "d": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.day = index; + break; + case "DDD": + case "DD": + case "D": + reg += "([0-9]{3}|[0-9]{2}|[0-9]{1})"; + parsedIndexes.yearDay = index; + break; + case "dddd": + reg += "(" + this.getStringList(this._weekdays()).join("|") + ")"; + parsedIndexes.weekdayLong = index; + break; + case "ddd": + reg += "(" + this.getStringList(this._shortWeekdays()).join("|") + ")"; + parsedIndexes.weekdayShort = index; + break; + case "aaa": + case "aa": + case "a": + reg += "(" + this.getStringList(["AM", "PM", "A.M.", "P.M.", "A", "P"]).join("|") + ")"; + parsedIndexes.am = index; + break; + case "hh": + case "h": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.hour12Base1 = index; + break; + case "HH": + case "H": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.hourBase0 = index; + break; + case "KK": + case "K": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.hour12Base0 = index; + break; + case "kk": + case "k": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.hourBase1 = index; + break; + case "mm": + case "m": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.minute = index; + break; + case "ss": + case "s": + reg += "([0-9]{2}|[0-9]{1})"; + parsedIndexes.second = index; + break; + case "SSS": + case "SS": + case "S": + reg += "([0-9]{3}|[0-9]{2}|[0-9]{1})"; + parsedIndexes.millisecond = index; + parsedIndexes.millisecondDigits = info.parts[i].length; + break; + case "nnn": + case "nn": + case "n": + reg += "([0-9]{3}|[0-9]{2}|[0-9]{1})"; + parsedIndexes.millisecond = index; + break; + case "x": + reg += "([0-9]{1,})"; + parsedIndexes.timestamp = index; + break; + case "Z": + reg += "GMT([-+]+[0-9]{2}:[0-9]{2})"; + parsedIndexes.zone = index; + break; + case "ZZ": + reg += "([\\-+]+[0-9]{2}[0-9]{2})"; + parsedIndexes.zone = index; + break; + case "i": + reg += "([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2})\\.?([0-9]{0,3})([zZ]|[+\\-][0-9]{2}:?[0-9]{2}|$)"; + parsedIndexes.iso = index; + indexAdjust += 7; + break; + case "G": + case "YYYY": + case "YYY": + case "YY": + case "Y": + case "MMMMM": + case "W": + case "EEEEE": + case "EEEE": + case "EEE": + case "EE": + case "E": + case "eeeee": + case "eeee": + case "eee": + case "ee": + case "e": + case "zzzz": + case "zzz": + case "zz": + case "z": + case "t": + indexAdjust--; + break; + } + reg += "[^0-9]*"; + } + let regex = new RegExp(reg); + let matches = source.match(regex); + if (matches) { + if (parsedIndexes.year > -1) { + resValues.year = parseInt(matches[parsedIndexes.year]); + } + if (parsedIndexes.year3 > -1) { + let val = parseInt(matches[parsedIndexes.year3]); + val += 1e3; + resValues.year = val; + } + if (parsedIndexes.year2 > -1) { + let val = parseInt(matches[parsedIndexes.year2]); + if (val > 50) { + val += 1e3; + } else { + val += 2e3; + } + resValues.year = val; + } + if (parsedIndexes.year1 > -1) { + let val = parseInt(matches[parsedIndexes.year1]); + val = Math.floor((/* @__PURE__ */ new Date()).getFullYear() / 10) * 10 + val; + resValues.year = val; + } + if (parsedIndexes.monthLong > -1) { + resValues.month = this.resolveMonth(matches[parsedIndexes.monthLong]); + } + if (parsedIndexes.monthShort > -1) { + resValues.month = this.resolveShortMonth(matches[parsedIndexes.monthShort]); + } + if (parsedIndexes.month > -1) { + resValues.month = parseInt(matches[parsedIndexes.month]) - 1; + } + if (parsedIndexes.week > -1 && parsedIndexes.day === -1) { + resValues.month = 0; + resValues.day = getDayFromWeek(parseInt(matches[parsedIndexes.week]), resValues.year, 1, utc); + } + if (parsedIndexes.day > -1) { + resValues.day = parseInt(matches[parsedIndexes.day]); + } + if (parsedIndexes.yearDay > -1) { + resValues.month = 0; + resValues.day = parseInt(matches[parsedIndexes.yearDay]); + } + if (parsedIndexes.hourBase0 > -1) { + resValues.hour = parseInt(matches[parsedIndexes.hourBase0]); + } + if (parsedIndexes.hourBase1 > -1) { + resValues.hour = parseInt(matches[parsedIndexes.hourBase1]) - 1; + } + if (parsedIndexes.hour12Base0 > -1) { + let val = parseInt(matches[parsedIndexes.hour12Base0]); + if (val == 11) { + val = 0; + } + if (parsedIndexes.am > -1 && !this.isAm(matches[parsedIndexes.am])) { + val += 12; + } + resValues.hour = val; + } + if (parsedIndexes.hour12Base1 > -1) { + let val = parseInt(matches[parsedIndexes.hour12Base1]); + if (val == 12) { + val = 0; + } + if (parsedIndexes.am > -1 && !this.isAm(matches[parsedIndexes.am])) { + val += 12; + } + resValues.hour = val; + } + if (parsedIndexes.minute > -1) { + resValues.minute = parseInt(matches[parsedIndexes.minute]); + } + if (parsedIndexes.second > -1) { + resValues.second = parseInt(matches[parsedIndexes.second]); + } + if (parsedIndexes.millisecond > -1) { + let val = parseInt(matches[parsedIndexes.millisecond]); + if (parsedIndexes.millisecondDigits == 2) { + val *= 10; + } else if (parsedIndexes.millisecondDigits == 1) { + val *= 100; + } + resValues.millisecond = val; + } + if (parsedIndexes.timestamp > -1) { + resValues.timestamp = parseInt(matches[parsedIndexes.timestamp]); + const ts = new Date(resValues.timestamp); + resValues.year = ts.getUTCFullYear(); + resValues.month = ts.getUTCMonth(); + resValues.day = ts.getUTCDate(); + resValues.hour = ts.getUTCHours(); + resValues.minute = ts.getUTCMinutes(); + resValues.second = ts.getUTCSeconds(); + resValues.millisecond = ts.getUTCMilliseconds(); + } + if (parsedIndexes.zone > -1) { + resValues.offset = this.resolveTimezoneOffset(new Date(resValues.year, resValues.month, resValues.day), matches[parsedIndexes.zone]); + } + if (parsedIndexes.iso > -1) { + resValues.year = toNumber(matches[parsedIndexes.iso + 0]); + resValues.month = toNumber(matches[parsedIndexes.iso + 1]) - 1; + resValues.day = toNumber(matches[parsedIndexes.iso + 2]); + resValues.hour = toNumber(matches[parsedIndexes.iso + 3]); + resValues.minute = toNumber(matches[parsedIndexes.iso + 4]); + resValues.second = toNumber(matches[parsedIndexes.iso + 5]); + resValues.millisecond = toNumber(matches[parsedIndexes.iso + 6]); + if (matches[parsedIndexes.iso + 7] == "Z" || matches[parsedIndexes.iso + 7] == "z") { + resValues.utc = true; + } else if (matches[parsedIndexes.iso + 7] != "") { + resValues.offset = this.resolveTimezoneOffset(new Date(resValues.year, resValues.month, resValues.day), matches[parsedIndexes.iso + 7]); + } + } + if (resValues.utc) { + res = new Date(Date.UTC(resValues.year, resValues.month, resValues.day, resValues.hour, resValues.minute, resValues.second, resValues.millisecond)); + } else { + res = new Date(resValues.year, resValues.month, resValues.day, resValues.hour, resValues.minute + resValues.offset, resValues.second, resValues.millisecond); + } + } else { + res = new Date(source); + } + return res; + } + resolveTimezoneOffset(date, zone) { + let value = zone.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/); + if (value) { + let match = zone.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/); + let dir = match[1]; + let hour = match[2]; + let minute = match[3]; + let offset = parseInt(hour) * 60 + parseInt(minute); + if (dir == "+") { + offset *= -1; + } + let originalOffset = (date || /* @__PURE__ */ new Date()).getTimezoneOffset(); + let diff = offset - originalOffset; + return diff; + } + return 0; + } + /** + * Resolves month name (i.e. "December") into a month number (11). + * + * @param value Month name + * @return Month number + */ + resolveMonth(value) { + let month = this._months().indexOf(value); + if (month > -1) { + return month; + } + if (!this._root.language.isDefault()) { + month = this._root.language.translateAll(this._months()).indexOf(value); + if (month > -1) { + return month; + } + } + return 0; + } + /** + * Resolves short month name (i.e. "Dec") into a month number. + * + * @param value Short month name + * @return Month number + */ + resolveShortMonth(value) { + let month = this._shortMonths().indexOf(value); + if (month > -1) { + return month; + } + month = this._months().indexOf(value); + if (month > -1) { + return month; + } + if (this._root.language && !this._root.language.isDefault()) { + month = this._root.language.translateAll(this._shortMonths()).indexOf(value); + if (month > -1) { + return month; + } + } + return 0; + } + /** + * Checks if passed in string represents AM/PM notation in many of its + * versions. + * + * @param value Source string + * @return Is it AM/PM? + */ + isAm(value) { + let list = this.getStringList(["AM", "A.M.", "A"]); + return list.indexOf(value.toUpperCase()) > -1; + } + /** + * Translates list of strings. + * + * @param list Source strings + * @return Translated strings + */ + getStringList(list) { + let res = []; + for (let i = 0; i < list.length; i++) { + if (this._root.language) { + res.push(escapeForRgex(this._t(list[i]))); + } else { + res.push(escapeForRgex(list[i])); + } + } + return res; + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/DurationFormatter.js + var DurationFormatter = class extends Entity { + constructor() { + super(...arguments); + this._unitAliases = { + "Y": "y", + "D": "d", + "H": "h", + "K": "h", + "k": "h", + "n": "S" + }; + } + _setDefaults() { + const dmillisecond = "_duration_millisecond"; + const dsecond = "_duration_second"; + const dminute = "_duration_minute"; + const dhour = "_duration_hour"; + const dday = "_duration_day"; + const dweek = "_duration_week"; + const dmonth = "_duration_month"; + const dyear = "_duration_year"; + const asecond = "_second"; + const aminute = "_minute"; + const ahour = "_hour"; + const aday = "_day"; + const aweek = "_week"; + const amonth = "_week"; + const ayear = "_year"; + this._setDefault("negativeBase", 0); + this._setDefault("baseUnit", "second"); + this._setDefault("durationFormats", { + "millisecond": { + "millisecond": this._t(dmillisecond), + "second": this._t(dmillisecond + asecond), + "minute": this._t(dmillisecond + aminute), + "hour": this._t(dmillisecond + ahour), + "day": this._t(dmillisecond + aday), + "week": this._t(dmillisecond + aweek), + "month": this._t(dmillisecond + amonth), + "year": this._t(dmillisecond + ayear) + }, + "second": { + "second": this._t(dsecond), + "minute": this._t(dsecond + aminute), + "hour": this._t(dsecond + ahour), + "day": this._t(dsecond + aday), + "week": this._t(dsecond + aweek), + "month": this._t(dsecond + amonth), + "year": this._t(dsecond + ayear) + }, + "minute": { + "minute": this._t(dminute), + "hour": this._t(dminute + ahour), + "day": this._t(dminute + aday), + "week": this._t(dminute + aweek), + "month": this._t(dminute + amonth), + "year": this._t(dminute + ayear) + }, + "hour": { + "hour": this._t(dhour), + "day": this._t(dhour + aday), + "week": this._t(dhour + aweek), + "month": this._t(dhour + amonth), + "year": this._t(dhour + ayear) + }, + "day": { + "day": this._t(dday), + "week": this._t(dday + aweek), + "month": this._t(dday + amonth), + "year": this._t(dday + ayear) + }, + "week": { + "week": this._t(dweek), + "month": this._t(dweek + amonth), + "year": this._t(dweek + ayear) + }, + "month": { + "month": this._t(dmonth), + "year": this._t(dmonth + ayear) + }, + "year": { + "year": this._t(dyear) + } + }); + super._setDefaults(); + } + _beforeChanged() { + super._beforeChanged(); + } + /** + * Formats the number as duration. + * + * For example `1000` (base unit seconds) would be converted to `16:40` as in + * 16 minutes and 40 seconds. + * + * @param value Value to format + * @param format Format to apply + * @param base Override base unit + * @return Formatted number + */ + format(value, format, base) { + let baseUnit = base || this.get("baseUnit"); + if (typeof format === "undefined" || format === "") { + if (this.get("durationFormat") != null) { + format = this.get("durationFormat"); + } else { + format = this.getFormat(toNumber(value), void 0, baseUnit); + } + } + format = cleanFormat(format); + let info = this.parseFormat(format, baseUnit); + let source = Number(value); + let details; + if (source > this.get("negativeBase")) { + details = info.positive; + } else if (source < this.get("negativeBase")) { + details = info.negative; + } else { + details = info.zero; + } + let formatted = this.applyFormat(source, details); + if (details.color !== "") { + formatted = "[" + details.color + "]" + formatted + "[/]"; + } + return formatted; + } + /** + * Parses supplied format into structured object which can be used to format + * the number. + * + * @param format Format string, i.e. "#,###.00" + * @param base Override base unit + * @return Parsed information + */ + parseFormat(format, base) { + let baseUnit = base || this.get("baseUnit"); + let info = { + "positive": { + "color": "", + "template": "", + "parts": [], + "source": "", + "baseUnit": baseUnit, + "parsed": false, + "absolute": false + }, + "negative": { + "color": "", + "template": "", + "parts": [], + "source": "", + "baseUnit": baseUnit, + "parsed": false, + "absolute": false + }, + "zero": { + "color": "", + "template": "", + "parts": [], + "source": "", + "baseUnit": baseUnit, + "parsed": false, + "absolute": false + } + }; + format = format.replace("||", PLACEHOLDER2); + let parts = format.split("|"); + info.positive.source = parts[0]; + if (typeof parts[2] === "undefined") { + info.zero = info.positive; + } else { + info.zero.source = parts[2]; + } + if (typeof parts[1] === "undefined") { + info.negative = info.positive; + } else { + info.negative.source = parts[1]; + } + each2(info, (_part, item) => { + if (item.parsed) { + return; + } + let partFormat = item.source; + let dirs = []; + dirs = item.source.match(/^\[([^\]]*)\]/); + if (dirs && dirs.length && dirs[0] !== "") { + partFormat = item.source.substr(dirs[0].length); + item.color = dirs[1]; + } + let chunks = TextFormatter.chunk(partFormat, true); + for (let i = 0; i < chunks.length; i++) { + let chunk = chunks[i]; + chunk.text = chunk.text.replace(PLACEHOLDER2, "|"); + if (chunk.type === "value") { + if (chunk.text.match(/[yYMdDwhHKkmsSn]+a/)) { + item.absolute = true; + chunk.text = chunk.text.replace(/([yYMdDwhHKkmsSn]+)a/, "$1"); + } + let matches = chunk.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g); + if (matches) { + for (let x = 0; x < matches.length; x++) { + if (matches[x] == null) { + matches[x] = this._unitAliases[matches[x]]; + } + item.parts.push(matches[x]); + chunk.text = chunk.text.replace(matches[x], PLACEHOLDER); + } + } + } + item.template += chunk.text; + } + item.parsed = true; + }); + return info; + } + /** + * Applies parsed format to a numeric value. + * + * @param value Value + * @param details Parsed format as returned by {parseFormat} + * @return Formatted duration + */ + applyFormat(value, details) { + let negative = !details.absolute && value < this.get("negativeBase"); + value = Math.abs(value); + let tstamp = this.toTimeStamp(value, details.baseUnit); + let res = details.template; + const values = { + millisecond: 0, + second: 0, + minute: 0, + hour: 0, + day: 0, + week: 0, + month: 0, + year: 0 + }; + for (let i = 0, len = details.parts.length; i < len; i++) { + let part = details.parts[i]; + let unit = this._toTimeUnit(part.substr(0, 1)); + let ints; + const unitValue = this._getUnitValue(unit); + if (i < len - 1) { + ints = Math.floor(tstamp / unitValue); + } else { + ints = Math.round(tstamp / unitValue); + } + values[unit] += ints; + tstamp -= ints * unitValue; + } + each2(values, (unit, value2) => { + if (unit == "millisecond" && value2 == 1e3) { + values["second"]++; + values["millisecond"] = 0; + } else if (unit == "second" && value2 == 60) { + values["minute"]++; + values["second"] = 0; + } else if (unit == "minute" && value2 == 60) { + values["hour"]++; + values["minute"] = 0; + } else if (unit == "hour" && value2 == 24) { + values["day"]++; + values["hour"] = 0; + } else if (unit == "day" && value2 == 7 && details.parts.indexOf("w") !== -1) { + values["week"]++; + values["day"] = 0; + } else if (unit == "day" && value2 == 30) { + values["month"]++; + values["day"] = 0; + } else if (unit == "month" && value2 == 12) { + values["year"]++; + values["month"] = 0; + } + }); + for (let i = 0, len = details.parts.length; i < len; i++) { + let part = details.parts[i]; + let unit = this._toTimeUnit(part.substr(0, 1)); + let digits = part.length; + res = res.replace(PLACEHOLDER, padString(values[unit], digits, "0")); + } + if (negative) { + res = "-" + res; + } + return res; + } + /** + * Converts numeric value to timestamp in milliseconds. + * + * @param value A source value + * @param baseUnit Base unit the source value is in: "q", "s", "i", "h", "d", "w", "m", "y" + * @return Value representation as a timestamp in milliseconds + */ + toTimeStamp(value, baseUnit) { + return value * this._getUnitValue(baseUnit); + } + _toTimeUnit(code) { + switch (code) { + case "S": + return "millisecond"; + case "s": + return "second"; + case "m": + return "minute"; + case "h": + return "hour"; + case "d": + return "day"; + case "w": + return "week"; + case "M": + return "month"; + case "y": + return "year"; + } + ; + } + /** + * Returns appropriate default format for the value. + * + * If `maxValue` is sepcified, it will use that value to determine the time + * unit for the format. + * + * For example if your `baseUnit` is `"second"` and you pass in `10`, you + * will get `"10"`. + * + * However, you might want it to be formatted in the context of bigger scale, + * say 10 minutes (600 seconds). If you pass in `600` as `maxValue`, all + * values, including small ones will use format with minutes, e.g.: + * `00:10`, `00:50`, `12: 30`, etc. + * + * @param value Value to format + * @param maxValue Maximum value to be used to determine format + * @param baseUnit Base unit of the value + * @return Format + */ + getFormat(value, maxValue, baseUnit) { + if (this.get("durationFormat") != null) { + return this.get("durationFormat"); + } + if (!baseUnit) { + baseUnit = this.get("baseUnit"); + } + if (maxValue != null && value != maxValue) { + value = Math.abs(value); + maxValue = Math.abs(maxValue); + let maxUnit = this.getValueUnit(Math.max(value, maxValue), baseUnit); + return this.get("durationFormats")[baseUnit][maxUnit]; + } else { + let unit = this.getValueUnit(value, baseUnit); + return this.get("durationFormats")[baseUnit][unit]; + } + } + /** + * Returns value's closest denominator time unit, e.g 100 seconds is + * `"minute"`, while 59 seconds would still be `second`. + * + * @param value Source duration value + * @param baseUnit Base unit + * @return Denominator + */ + getValueUnit(value, baseUnit) { + if (!baseUnit) { + baseUnit = this.get("baseUnit"); + } + let currentUnit; + let ms = this.getMilliseconds(value, baseUnit); + eachContinue2(this._getUnitValues(), (key, val) => { + if (key == baseUnit || currentUnit) { + let num = ms / val; + if (num <= 1) { + if (!currentUnit) { + currentUnit = key; + } + return false; + } + currentUnit = key; + } + return true; + }); + return currentUnit; + } + /** + * Converts value to milliseconds according to `baseUnit`. + * + * @param value Source duration value + * @param baseUnit Base unit + * @return Value in milliseconds + */ + getMilliseconds(value, baseUnit) { + if (!baseUnit) { + baseUnit = this.get("baseUnit"); + } + return value * this._getUnitValue(baseUnit); + } + _getUnitValue(timeUnit) { + return this._getUnitValues()[timeUnit]; + } + _getUnitValues() { + return { + "millisecond": 1, + "second": 1e3, + "minute": 6e4, + "hour": 36e5, + "day": 864e5, + "week": 6048e5, + "month": 2592e6, + "year": 31536e6 + }; + } + }; + + // node_modules/@amcharts/amcharts5/locales/en.js + var en_default = { + "firstDayOfWeek": 1, + // Number formatting options. + // + // Please check with the local standards which separator is accepted to be + // used for separating decimals, and which for thousands. + "_decimalSeparator": ".", + "_thousandSeparator": ",", + // Position of the percent sign in numbers + "_percentPrefix": null, + "_percentSuffix": "%", + // Suffixes for numbers + // When formatting numbers, big or small numers might be reformatted to + // shorter version, by applying a suffix. + // + // For example, 1000000 might become "1m". + // Or 1024 might become "1KB" if we're formatting byte numbers. + // + // This section defines such suffixes for all such cases. + "_big_number_suffix_3": "k", + "_big_number_suffix_6": "M", + "_big_number_suffix_9": "G", + "_big_number_suffix_12": "T", + "_big_number_suffix_15": "P", + "_big_number_suffix_18": "E", + "_big_number_suffix_21": "Z", + "_big_number_suffix_24": "Y", + "_small_number_suffix_3": "m", + "_small_number_suffix_6": "\u03BC", + "_small_number_suffix_9": "n", + "_small_number_suffix_12": "p", + "_small_number_suffix_15": "f", + "_small_number_suffix_18": "a", + "_small_number_suffix_21": "z", + "_small_number_suffix_24": "y", + "_byte_suffix_B": "B", + "_byte_suffix_KB": "KB", + "_byte_suffix_MB": "MB", + "_byte_suffix_GB": "GB", + "_byte_suffix_TB": "TB", + "_byte_suffix_PB": "PB", + // Default date formats for various periods. + // + // This should reflect official or de facto formatting universally accepted + // in the country translation is being made for + // Available format codes here: + // https://www.amcharts.com/docs/v5/concepts/formatters/formatting-dates/#Format_codes + // + // This will be used when formatting date/time for particular granularity, + // e.g. "_date_hour" will be shown whenever we need to show time as hours. + // + // "date" is used as in default date format when showing standalone dates. + "_date": "yyyy-MM-dd", + "_date_millisecond": "mm:ss SSS", + "_date_millisecond_full": "HH:mm:ss SSS", + "_date_second": "HH:mm:ss", + "_date_second_full": "HH:mm:ss", + "_date_minute": "HH:mm", + "_date_minute_full": "HH:mm - MMM dd, yyyy", + "_date_hour": "HH:mm", + "_date_hour_short": "HH", + "_date_hour_full": "HH:mm - MMM dd, yyyy", + "_date_day": "MMM dd", + "_date_day_full": "MMM dd, yyyy", + "_date_week": "ww", + "_date_week_full": "MMM dd, yyyy", + "_date_month": "MMM", + "_date_month_full": "MMM, yyyy", + "_date_year": "yyyy", + // Default duration formats for various base units. + // + // This will be used by DurationFormatter to format numeric values into + // duration. + // + // Notice how each duration unit comes in several versions. This is to ensure + // that each base unit is shown correctly. + // + // For example, if we have baseUnit set to "second", meaning our duration is + // in seconds. + // + // If we pass in `50` to formatter, it will know that we have just 50 seconds + // (less than a minute) so it will use format in `"_duration_second"` ("ss"), + // and the formatted result will be in like `"50"`. + // + // If we pass in `70`, which is more than a minute, the formatter will switch + // to `"_duration_second_minute"` ("mm:ss"), resulting in "01:10" formatted + // text. + // + // Available codes here: + // https://www.amcharts.com/docs/v4/concepts/formatters/formatting-duration/#Available_Codes + "_duration_millisecond": "SSS", + "_duration_millisecond_second": "ss.SSS", + "_duration_millisecond_minute": "mm:ss SSS", + "_duration_millisecond_hour": "hh:mm:ss SSS", + "_duration_millisecond_day": "d'd' mm:ss SSS", + "_duration_millisecond_week": "d'd' mm:ss SSS", + "_duration_millisecond_month": "M'm' dd'd' mm:ss SSS", + "_duration_millisecond_year": "y'y' MM'm' dd'd' mm:ss SSS", + "_duration_second": "ss", + "_duration_second_minute": "mm:ss", + "_duration_second_hour": "hh:mm:ss", + "_duration_second_day": "d'd' hh:mm:ss", + "_duration_second_week": "d'd' hh:mm:ss", + "_duration_second_month": "M'm' dd'd' hh:mm:ss", + "_duration_second_year": "y'y' MM'm' dd'd' hh:mm:ss", + "_duration_minute": "mm", + "_duration_minute_hour": "hh:mm", + "_duration_minute_day": "d'd' hh:mm", + "_duration_minute_week": "d'd' hh:mm", + "_duration_minute_month": "M'm' dd'd' hh:mm", + "_duration_minute_year": "y'y' MM'm' dd'd' hh:mm", + "_duration_hour": "hh'h'", + "_duration_hour_day": "d'd' hh'h'", + "_duration_hour_week": "d'd' hh'h'", + "_duration_hour_month": "M'm' dd'd' hh'h'", + "_duration_hour_year": "y'y' MM'm' dd'd' hh'h'", + "_duration_day": "d'd'", + "_duration_day_week": "d'd'", + "_duration_day_month": "M'm' dd'd'", + "_duration_day_year": "y'y' MM'm' dd'd'", + "_duration_week": "w'w'", + "_duration_week_month": "w'w'", + "_duration_week_year": "w'w'", + "_duration_month": "M'm'", + "_duration_month_year": "y'y' MM'm'", + "_duration_year": "y'y'", + // Era translations + "_era_ad": "AD", + "_era_bc": "BC", + // Day part, used in 12-hour formats, e.g. 5 P.M. + // Please note that these come in 3 variants: + // * one letter (e.g. "A") + // * two letters (e.g. "AM") + // * two letters with dots (e.g. "A.M.") + // + // All three need to to be translated even if they are all the same. Some + // users might use one, some the other. + "A": "", + "P": "", + "AM": "", + "PM": "", + "A.M.": "", + "P.M.": "", + // Date-related stuff. + // + // When translating months, if there's a difference, use the form which is + // best for a full date, e.g. as you would use it in "2018 January 1". + // + // Note that May is listed twice. This is because in English May is the same + // in both long and short forms, while in other languages it may not be the + // case. Translate "May" to full word, while "May(short)" to shortened + // version. + // + // Should month names and weekdays be capitalized or not? + // + // Rule of thumb is this: if the names should always be capitalized, + // regardless of name position within date ("January", "21st January 2018", + // etc.) use capitalized names. Otherwise enter all lowercase. + // + // The date formatter will automatically capitalize names if they are the + // first (or only) word in resulting date. + "January": "", + "February": "", + "March": "", + "April": "", + "May": "", + "June": "", + "July": "", + "August": "", + "September": "", + "October": "", + "November": "", + "December": "", + "Jan": "", + "Feb": "", + "Mar": "", + "Apr": "", + "May(short)": "May", + "Jun": "", + "Jul": "", + "Aug": "", + "Sep": "", + "Oct": "", + "Nov": "", + "Dec": "", + // Weekdays. + "Sunday": "", + "Monday": "", + "Tuesday": "", + "Wednesday": "", + "Thursday": "", + "Friday": "", + "Saturday": "", + "Sun": "", + "Mon": "", + "Tue": "", + "Wed": "", + "Thu": "", + "Fri": "", + "Sat": "", + // Date ordinal function. + // + // This is used when adding number ordinal when formatting days in dates. + // + // E.g. "January 1st", "February 2nd". + // + // The function accepts day number, and returns a string to be added to the + // day, like in default English translation, if we pass in 2, we will receive + // "nd" back. + "_dateOrd": function(day) { + let res = "th"; + if (day < 11 || day > 13) { + switch (day % 10) { + case 1: + res = "st"; + break; + case 2: + res = "nd"; + break; + case 3: + res = "rd"; + break; + } + } + return res; + }, + // Various chart controls. + // Shown as a tooltip on zoom out button. + "Zoom Out": "", + // Timeline buttons + "Play": "", + "Stop": "", + // Chart's Legend screen reader title. + "Legend": "", + // Legend's item screen reader indicator. + "Press ENTER to toggle": "", + // Shown when the chart is busy loading something. + "Loading": "", + // Shown as the first button in the breadcrumb navigation, e.g.: + // Home > First level > ... + "Home": "", + // Chart types. + // Those are used as default screen reader titles for the main chart element + // unless developer has set some more descriptive title. + "Chart": "", + "Serial chart": "", + "X/Y chart": "", + "Pie chart": "", + "Gauge chart": "", + "Radar chart": "", + "Sankey diagram": "", + "Flow diagram": "", + "Chord diagram": "", + "TreeMap chart": "", + "Force directed tree": "", + "Sliced chart": "", + // Series types. + // Used to name series by type for screen readers if they do not have their + // name set. + "Series": "", + "Candlestick Series": "", + "OHLC Series": "", + "Column Series": "", + "Line Series": "", + "Pie Slice Series": "", + "Funnel Series": "", + "Pyramid Series": "", + "X/Y Series": "", + // Map-related stuff. + "Map": "", + "Press ENTER to zoom in": "", + "Press ENTER to zoom out": "", + "Use arrow keys to zoom in and out": "", + "Use plus and minus keys on your keyboard to zoom in and out": "", + // Export-related stuff. + // These prompts are used in Export menu labels. + // + // "Export" is the top-level menu item. + // + // "Image", "Data", "Print" as second-level indicating type of export + // operation. + // + // Leave actual format untranslated, unless you absolutely know that they + // would convey more meaning in some other way. + "Export": "", + "Image": "", + "Data": "", + "Print": "", + "Press ENTER or use arrow keys to navigate": "", + "Press ENTER to open": "", + "Press ENTER to print.": "", + "Press ENTER to export as %1.": "", + "(Press ESC to close this message)": "", + "Image Export Complete": "", + "Export operation took longer than expected. Something might have gone wrong.": "", + "Saved from": "", + "PNG": "", + "JPG": "", + "GIF": "", + "SVG": "", + "PDF": "", + "JSON": "", + "CSV": "", + "XLSX": "", + "HTML": "", + // Scrollbar-related stuff. + // + // Scrollbar is a control which can zoom and pan the axes on the chart. + // + // Each scrollbar has two grips: left or right (for horizontal scrollbar) or + // upper and lower (for vertical one). + // + // Prompts change in relation to whether Scrollbar is vertical or horizontal. + // + // The final section is used to indicate the current range of selection. + "Use TAB to select grip buttons or left and right arrows to change selection": "", + "Use left and right arrows to move selection": "", + "Use left and right arrows to move left selection": "", + "Use left and right arrows to move right selection": "", + "Use TAB select grip buttons or up and down arrows to change selection": "", + "Use up and down arrows to move selection": "", + "Use up and down arrows to move lower selection": "", + "Use up and down arrows to move upper selection": "", + "From %1 to %2": "", + "From %1": "", + "To %1": "", + // Data loader-related. + "No parser available for file: %1": "", + "Error parsing file: %1": "", + "Unable to load file: %1": "", + "Invalid date": "", + // Common actions + "Close": "", + "Minimize": "", + "Confirm": "" + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Language.js + var Language = class extends Entity { + _setDefaults() { + this.setPrivate("defaultLocale", en_default); + super._setDefaults(); + } + /** + * Returns a prompt translation. + * + * @param prompt Prompt to translate + * @param locale Target locale + * @param ...rest Parameters + * @return Translation + */ + translate(prompt, locale, ...rest) { + if (!locale) { + locale = this._root.locale || this.getPrivate("defaultLocale"); + } + let translation = prompt; + let value = locale[prompt]; + if (value === null) { + translation = ""; + } else if (value != null) { + if (value) { + translation = value; + } + } else if (locale !== this.getPrivate("defaultLocale")) { + return this.translate(prompt, this.getPrivate("defaultLocale"), ...rest); + } + if (rest.length) { + for (let len = rest.length, i = 0; i < len; ++i) { + translation = translation.split("%" + (i + 1)).join(rest[i]); + } + } + return translation; + } + /** + * Returns a prompt translation, including custom prompts. + * + * @param prompt Prompt to translate + * @param locale Target locale + * @param ...rest Parameters + * @return Translation + */ + translateAny(prompt, locale, ...rest) { + return this.translate(prompt, locale, ...rest); + } + /** + * Add a custom prompt to locale. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/locales/creating-translations/#Extending_locale_with_custom_prompts} + * @param prompt Source prompt + * @param translation Tanslation + * @param locale Target locale + */ + setTranslationAny(prompt, translation, locale) { + const localeTarget = locale || this._root.locale; + localeTarget[prompt] = translation; + } + /** + * Add a batch of custom prompts. + * + * @since 5.3.3 + * @see {@link https://www.amcharts.com/docs/v5/concepts/locales/creating-translations/#Extending_locale_with_custom_prompts} + * @param translations Translations + * @param locale Target locale + */ + setTranslationsAny(translations, locale) { + each2(translations, (key, val) => { + this.setTranslationAny(key, val, locale); + }); + } + translateEmpty(prompt, locale, ...rest) { + let translation = this.translate(prompt, locale, ...rest); + return translation == prompt ? "" : translation; + } + translateFunc(prompt, locale) { + if (this._root.locale[prompt]) { + return this._root.locale[prompt]; + } + if (locale !== this.getPrivate("defaultLocale")) { + return this.translateFunc(prompt, this.getPrivate("defaultLocale")); + } + return () => { + return ""; + }; + } + /** + * Translates a btach of prompts. + * + * @param list Array of prompts to translate + * @param locale Target locale + * @return Array of translations + */ + translateAll(list, locale) { + if (!this.isDefault()) { + return map(list, (x) => this.translate(x, locale)); + } else { + return list; + } + } + /** + * Returns `true` if the currently selected locale is a default locale. + * + * @return `true` if locale is default; `false` if it is not. + */ + isDefault() { + return this.getPrivate("defaultLocale") === this._root.locale; + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/Theme.js + var Theme = class { + constructor(root2, isReal) { + this._rules = {}; + this._root = root2; + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + } + /** + * Use this method to create an instance of this class. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/#New_element_syntax} for more info + * @param root Root element + * @param settings Settings + * @param template Template + * @return Instantiated object + */ + static new(root2) { + const x = new this(root2, true); + x.setupDefaultRules(); + return x; + } + setupDefaultRules() { + } + /** + * Looks up the rules for a specific theme class. + * + * @see {@link https://www.amcharts.com/docs/v5/themes/} for more info + * @param themeClass Theme class + * @return Array> + */ + _lookupRules(themeClass) { + return this._rules[themeClass]; + } + /** + * Creates a [[Template]] for specific theme class and tags. + * + * NOTE: the difference from `rule()` is that `ruleRaw()` does not do any + * type checks. + * + * @see {@link https://www.amcharts.com/docs/v5/themes/} for more info + * @param themeClass Theme class + * @param themeTags Theme tags + * @return Template + */ + ruleRaw(themeClass, themeTags = []) { + let rules = this._rules[themeClass]; + if (!rules) { + rules = this._rules[themeClass] = []; + } + themeTags.sort(compare); + const { index, found } = getSortedIndex(rules, (x) => { + const order = compare(x.tags.length, themeTags.length); + if (order === 0) { + return compareArray(x.tags, themeTags, compare); + } else { + return order; + } + }); + if (found) { + return rules[index].template; + } else { + const template = Template.new({}); + rules.splice(index, 0, { + tags: themeTags, + template + }); + return template; + } + } + /** + * Creates a [[Template]] for specific theme class and tags. + * + * @see {@link https://www.amcharts.com/docs/v5/themes/} for more info + * @param themeClass Theme class + * @param themeTags Theme tags + * @return Template + */ + rule(themeClass, themeTags = []) { + return this.ruleRaw(themeClass, themeTags); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/themes/DefaultTheme.js + function setColor(rule, key, ic, name) { + rule.set(key, ic.get(name)); + ic.on(name, (value) => { + rule.set(key, value); + }); + } + var DefaultTheme = class extends Theme { + setupDefaultRules() { + super.setupDefaultRules(); + const language = this._root.language; + const ic = this._root.interfaceColors; + const horizontalLayout = this._root.horizontalLayout; + const verticalLayout = this._root.verticalLayout; + const r = this.rule.bind(this); + r("InterfaceColors").setAll({ + stroke: Color.fromHex(15066597), + fill: Color.fromHex(15987699), + primaryButton: Color.fromHex(6788316), + primaryButtonHover: Color.fromHex(6779356), + primaryButtonDown: Color.fromHex(6872182), + primaryButtonActive: Color.fromHex(6872182), + primaryButtonDisabled: Color.fromHex(14342874), + primaryButtonTextDisabled: Color.fromHex(16777215), + primaryButtonText: Color.fromHex(16777215), + primaryButtonStroke: Color.fromHex(16777215), + secondaryButton: Color.fromHex(14277081), + secondaryButtonHover: Color.fromHex(10724259), + secondaryButtonDown: Color.fromHex(9276813), + secondaryButtonActive: Color.fromHex(15132390), + secondaryButtonText: Color.fromHex(0), + secondaryButtonStroke: Color.fromHex(16777215), + grid: Color.fromHex(0), + background: Color.fromHex(16777215), + alternativeBackground: Color.fromHex(0), + text: Color.fromHex(0), + alternativeText: Color.fromHex(16777215), + disabled: Color.fromHex(11382189), + positive: Color.fromHex(5288704), + negative: Color.fromHex(11730944) + }); + { + const rule = r("ColorSet"); + rule.setAll({ + passOptions: { + hue: 0.05, + saturation: 0, + lightness: 0 + }, + colors: [ + Color.fromHex(6797276) + ], + step: 1, + //baseColor: Color.fromRGB(103, 183, 220), + //count: 20, + reuse: false, + startIndex: 0 + }); + rule.setPrivate("currentStep", 0); + rule.setPrivate("currentPass", 0); + } + r("Entity").setAll({ + stateAnimationDuration: 0, + stateAnimationEasing: out(cubic) + }); + r("Component").setAll({ + interpolationDuration: 0, + interpolationEasing: out(cubic) + }); + r("Sprite").setAll({ + visible: true, + scale: 1, + opacity: 1, + rotation: 0, + position: "relative", + tooltipX: p50, + tooltipY: p50, + tooltipPosition: "fixed", + isMeasured: true + }); + r("Sprite").states.create("default", { "visible": true, opacity: 1 }); + r("Container").setAll({ + interactiveChildren: true, + setStateOnChildren: false + }); + r("Graphics").setAll({ + strokeWidth: 1 + }); + r("Chart").setAll({ + width: p100, + height: p100, + interactiveChildren: false + }); + r("ZoomableContainer").setAll({ + width: p100, + height: p100, + wheelable: true, + pinchZoom: true, + maxZoomLevel: 32, + minZoomLevel: 1, + zoomStep: 2, + animationEasing: out(cubic), + animationDuration: 600, + maxPanOut: 0.4 + }); + r("Sprite", ["horizontal", "center"]).setAll({ + centerX: p50, + x: p50 + }); + r("Sprite", ["vertical", "center"]).setAll({ + centerY: p50, + y: p50 + }); + r("Container", ["horizontal", "layout"]).setAll({ + layout: horizontalLayout + }); + r("Container", ["vertical", "layout"]).setAll({ + layout: verticalLayout + }); + r("Pattern").setAll({ + repetition: "repeat", + width: 50, + height: 50, + rotation: 0, + fillOpacity: 1 + }); + r("LinePattern").setAll({ + gap: 6, + colorOpacity: 1, + width: 49, + height: 49 + }); + r("RectanglePattern").setAll({ + gap: 6, + checkered: false, + centered: true, + maxWidth: 5, + maxHeight: 5, + width: 48, + height: 48, + strokeWidth: 0 + }); + r("CirclePattern").setAll({ + gap: 5, + checkered: false, + centered: false, + radius: 3, + strokeWidth: 0, + width: 45, + height: 45 + }); + r("GrainPattern").setAll({ + width: 200, + height: 200, + colors: [Color.fromHex(0)], + size: 1, + horizontalGap: 0, + verticalGap: 0, + density: 1, + minOpacity: 0, + maxOpacity: 0.2 + }); + { + const rule = r("PatternSet"); + rule.setAll({ + step: 1 + }); + setColor(rule, "color", ic, "stroke"); + } + r("LinearGradient").setAll({ + rotation: 90 + }); + r("Legend").setAll({ + fillField: "fill", + strokeField: "stroke", + nameField: "name", + layout: GridLayout.new(this._root, {}), + layer: 30, + clickTarget: "itemContainer" + }); + r("Container", ["legend", "item", "itemcontainer"]).setAll({ + paddingLeft: 5, + paddingRight: 5, + paddingBottom: 5, + paddingTop: 5, + layout: horizontalLayout, + setStateOnChildren: true, + interactiveChildren: false, + ariaChecked: true, + focusable: true, + ariaLabel: language.translate("Press ENTER to toggle"), + role: "checkbox" + }); + { + const rule = r("Rectangle", ["legend", "item", "background"]); + rule.setAll({ + fillOpacity: 0 + }); + setColor(rule, "fill", ic, "background"); + } + r("Container", ["legend", "marker"]).setAll({ + setStateOnChildren: true, + centerY: p50, + paddingLeft: 0, + paddingRight: 0, + paddingBottom: 0, + paddingTop: 0, + width: 18, + height: 18 + }); + r("RoundedRectangle", ["legend", "marker", "rectangle"]).setAll({ + width: p100, + height: p100, + cornerRadiusBL: 3, + cornerRadiusTL: 3, + cornerRadiusBR: 3, + cornerRadiusTR: 3 + }); + { + const rule = r("RoundedRectangle", ["legend", "marker", "rectangle"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "disabled"); + setColor(rule, "stroke", ic, "disabled"); + } + r("Label", ["legend", "label"]).setAll({ + centerY: p50, + marginLeft: 5, + paddingRight: 0, + paddingLeft: 0, + paddingTop: 0, + paddingBottom: 0, + populateText: true + }); + { + const rule = r("Label", ["legend", "label"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "disabled"); + } + r("Label", ["legend", "value", "label"]).setAll({ + centerY: p50, + marginLeft: 5, + paddingRight: 0, + paddingLeft: 0, + paddingTop: 0, + paddingBottom: 0, + width: 50, + centerX: p100, + populateText: true + }); + { + const rule = r("Label", ["legend", "value", "label"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "disabled"); + } + r("HeatLegend").setAll({ + stepCount: 1 + }); + r("RoundedRectangle", ["heatlegend", "marker"]).setAll({ + cornerRadiusTR: 0, + cornerRadiusBR: 0, + cornerRadiusTL: 0, + cornerRadiusBL: 0 + }); + r("RoundedRectangle", ["vertical", "heatlegend", "marker"]).setAll({ + height: p100, + width: 15 + }); + r("RoundedRectangle", ["horizontal", "heatlegend", "marker"]).setAll({ + width: p100, + height: 15 + }); + r("HeatLegend", ["vertical"]).setAll({ + height: p100 + }); + r("HeatLegend", ["horizontal"]).setAll({ + width: p100 + }); + r("Label", ["heatlegend", "start"]).setAll({ + paddingLeft: 5, + paddingRight: 5, + paddingTop: 5, + paddingBottom: 5 + }); + r("Label", ["heatlegend", "end"]).setAll({ + paddingLeft: 5, + paddingRight: 5, + paddingTop: 5, + paddingBottom: 5 + }); + { + const rule = r("Label"); + rule.setAll({ + paddingTop: 8, + paddingBottom: 8, + paddingLeft: 10, + paddingRight: 10, + fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', + fontSize: "1em", + populateText: false + }); + setColor(rule, "fill", ic, "text"); + } + r("RadialLabel").setAll({ + textType: "regular", + centerY: p50, + centerX: p50, + inside: false, + radius: 0, + baseRadius: p100, + orientation: "auto", + textAlign: "center" + }); + r("EditableLabel").setAll({ + editOn: "click", + //setStateOnChildren: true, + themeTags: ["editablelabel"], + multiLine: true + }); + r("RoundedRectangle", ["editablelabel", "background"]).setAll({ + fillOpacity: 0, + fill: Color.fromHex(0), + cornerRadiusBL: 3, + cornerRadiusBR: 3, + cornerRadiusTL: 3, + cornerRadiusTR: 3, + strokeOpacity: 0, + stroke: Color.fromHex(0) + }); + { + r("RoundedRectangle", ["editablelabel", "background"]).states.create("active", { + strokeOpacity: 0.2 + }); + } + r("RoundedRectangle").setAll({ + cornerRadiusTL: 8, + cornerRadiusBL: 8, + cornerRadiusTR: 8, + cornerRadiusBR: 8 + }); + r("PointedRectangle").setAll({ + pointerBaseWidth: 15, + pointerLength: 10, + cornerRadius: 8 + }); + r("Slice").setAll({ + shiftRadius: 0, + dRadius: 0, + dInnerRadius: 0 + }); + { + const rule = r("Tick"); + rule.setAll({ + strokeOpacity: 0.15, + isMeasured: false, + length: 4.5, + position: "absolute", + crisp: true + }); + setColor(rule, "stroke", ic, "grid"); + } + r("Bullet").setAll({ + locationX: 0.5, + locationY: 0.5 + }); + r("Tooltip").setAll({ + position: "absolute", + getFillFromSprite: true, + getStrokeFromSprite: false, + autoTextColor: true, + paddingTop: 9, + paddingBottom: 8, + paddingLeft: 10, + paddingRight: 10, + marginBottom: 5, + pointerOrientation: "vertical", + centerX: p50, + centerY: p50, + animationEasing: out(cubic), + exportable: false + //layer: 100 + }); + r("Tooltip", ["system"]).setAll({ + pointerOrientation: "horizontal", + paddingTop: 4, + paddingRight: 7, + paddingBottom: 4, + paddingLeft: 7 + }); + { + const rule = r("PointedRectangle", ["tooltip", "system", "background"]); + rule.setAll({ + strokeOpacity: 0.3 + }); + setColor(rule, "fill", ic, "background"); + setColor(rule, "stroke", ic, "grid"); + } + r("Label", ["tooltip", "system"]).setAll({ + fontSize: 12, + fill: ic.get("background") + }); + r("Polygon").setAll({ + animationEasing: out(cubic) + }); + r("Link").setAll({ + cornerRadius: 8, + setStateOnChildren: true + }); + { + const rule = r("OrthogonalLine", ["link", "line"]); + rule.setAll({ + isMeasured: false, + crisp: true + }); + const stateActive = rule.states.create("active", { + strokeWidth: 2 + }); + setColor(stateActive, "stroke", ic, "negative"); + } + r("OrthogonalLine", ["link", "hit"]).setAll({ + strokeWidth: 10, + opacity: 0, + strokeOpacity: 0 + }); + { + const rule = r("OrthogonalLine"); + rule.setAll({ + strokeWidth: 1, + strokeOpacity: 1, + cornerRadius: 10 + }); + setColor(rule, "stroke", ic, "grid"); + } + { + const rule = r("Triangle", ["link"]); + rule.setAll({ + width: 14, + height: 10, + centerY: 0 + }); + setColor(rule, "fill", ic, "grid"); + setColor(rule, "stroke", ic, "grid"); + rule.states.create("default", { + stateAnimationDuration: 0 + }); + const state = rule.states.create("active", { + stateAnimationDuration: 0, + stroke: color(16777215), + strokeWidth: 2 + }); + state.set("draw", (display) => { + display.arc(0, 0, 11, 0, Math.PI * 2); + display.moveTo(-4, -4); + display.lineTo(4, 4); + display.moveTo(4, -4); + display.lineTo(-4, 4); + }); + setColor(state, "fill", ic, "negative"); + } + { + const rule = r("PointedRectangle", ["tooltip", "background"]); + rule.setAll({ + strokeOpacity: 0.9, + cornerRadius: 4, + pointerLength: 4, + pointerBaseWidth: 8, + fillOpacity: 0.9, + stroke: Color.fromHex(16777215) + }); + } + { + const rule = r("Label", ["tooltip"]); + rule.setAll({ + role: "tooltip", + populateText: true, + paddingRight: 0, + paddingTop: 0, + paddingLeft: 0, + paddingBottom: 0 + }); + setColor(rule, "fill", ic, "alternativeText"); + } + r("Button").setAll({ + paddingTop: 8, + paddingBottom: 8, + paddingLeft: 10, + paddingRight: 10, + interactive: true, + layout: horizontalLayout, + interactiveChildren: false, + setStateOnChildren: true, + focusable: true + }); + r("Button").states.create("hover", {}); + r("Button").states.create("down", { stateAnimationDuration: 0 }); + r("Button").states.create("active", {}); + r("Button").states.create("disabled", { + forceInactive: true + }); + { + const rule = r("RoundedRectangle", ["button", "background"]); + setColor(rule, "fill", ic, "primaryButton"); + setColor(rule, "stroke", ic, "primaryButtonStroke"); + } + { + const rule = r("RoundedRectangle", ["button", "background"]).states.create("hover", {}); + setColor(rule, "fill", ic, "primaryButtonHover"); + } + { + const rule = r("RoundedRectangle", ["button", "background"]).states.create("down", { stateAnimationDuration: 0 }); + setColor(rule, "fill", ic, "primaryButtonDown"); + } + { + const rule = r("RoundedRectangle", ["button", "background"]).states.create("active", {}); + setColor(rule, "fill", ic, "primaryButtonActive"); + } + { + const rule = r("RoundedRectangle", ["button", "background"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "primaryButtonDisabled"); + } + { + const rule = r("Graphics", ["button", "icon"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "primaryButtonTextDisabled"); + } + { + const rule = r("Label", ["button"]).states.create("disabled", {}); + setColor(rule, "fill", ic, "primaryButtonTextDisabled"); + } + { + const rule = r("Graphics", ["button", "icon"]); + rule.setAll({ + forceInactive: true + }); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + { + const rule = r("Label", ["button"]); + setColor(rule, "fill", ic, "primaryButtonText"); + } + r("ConfirmButton").setAll({ + toggleKey: "active", + setStateOnChildren: true, + label: Label.new(this._root, { + text: language.translate("Confirm"), + forceHidden: true + }) + }); + { + const rule = r("RoundedRectangle", ["button", "background", "confirm"]).states.create("active", {}); + setColor(rule, "fill", ic, "negative"); + } + r("Label", ["button", "confirm"]).setAll({ + paddingTop: 0, + paddingBottom: 0, + paddingRight: 3, + paddingLeft: 5 + }); + r("Label", ["button", "confirm"]).states.create("default", { + stateAnimationDuration: 0 + }); + r("Label", ["button", "confirm"]).states.create("active", { + forceHidden: false, + stateAnimationDuration: 0 + }); + { + const rule = r("Graphics", ["icon", "confirm", "button"]); + rule.setAll({ + stateAnimationDuration: 0 + }); + rule.states.create("default", { + stateAnimationDuration: 0 + }); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + { + const rule = r("Graphics", ["icon", "confirm", "button"]).states.create("active", { + svgPath: "M -5 1 L 0 6 L 8 -5", + strokeWidth: 2 + }); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + { + const rule = r("Graphics", ["icon", "confirm", "button", "secondary"]).states.create("active", {}); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + { + const rule = r("RoundedRectangle", ["button", "background", "confirm", "secondary"]).states.create("active", { + fillOpacity: 1 + }); + setColor(rule, "fill", ic, "negative"); + } + { + const rule = r("RoundedRectangle", ["button", "background", "confirm", "secondary"]).states.create("hoverActive", { + fillOpacity: 1 + }); + setColor(rule, "fill", ic, "negative"); + } + r("Button", ["button", "confirm"]).states.create("hoverActive", {}); + r("Button", ["zoom"]).setAll({ + paddingTop: 18, + paddingBottom: 18, + paddingLeft: 12, + paddingRight: 12, + centerX: 46, + centerY: -10, + y: 0, + x: p100, + role: "button", + ariaLabel: language.translate("Zoom Out"), + layer: 30 + }); + { + const rule = r("RoundedRectangle", ["background", "button", "zoom"]); + rule.setAll({ + cornerRadiusBL: 40, + cornerRadiusBR: 40, + cornerRadiusTL: 40, + cornerRadiusTR: 40 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("RoundedRectangle", ["background", "button", "zoom"]).states.create("hover", {}); + setColor(rule, "fill", ic, "primaryButtonHover"); + } + { + const rule = r("RoundedRectangle", ["background", "button", "zoom"]).states.create("down", { stateAnimationDuration: 0 }); + setColor(rule, "fill", ic, "primaryButtonDown"); + } + { + const rule = r("Graphics", ["icon", "button", "zoom"]); + rule.setAll({ + crisp: true, + strokeOpacity: 0.7, + draw: (display) => { + display.moveTo(0, 0); + display.lineTo(12, 0); + } + }); + setColor(rule, "stroke", ic, "primaryButtonText"); + } + r("Button", ["resize"]).setAll({ + paddingTop: 9, + paddingBottom: 9, + paddingLeft: 13, + paddingRight: 13, + draggable: true, + centerX: p50, + centerY: p50, + position: "absolute", + role: "slider", + ariaValueMin: "0", + ariaValueMax: "100", + ariaLabel: language.translate("Use up and down arrows to move selection") + }); + { + const rule = r("RoundedRectangle", ["background", "resize", "button"]); + rule.setAll({ + cornerRadiusBL: 40, + cornerRadiusBR: 40, + cornerRadiusTL: 40, + cornerRadiusTR: 40 + }); + setColor(rule, "fill", ic, "secondaryButton"); + setColor(rule, "stroke", ic, "secondaryButtonStroke"); + } + { + const rule = r("RoundedRectangle", ["background", "resize", "button"]).states.create("hover", {}); + setColor(rule, "fill", ic, "secondaryButtonHover"); + } + { + const rule = r("RoundedRectangle", ["background", "resize", "button"]).states.create("down", { stateAnimationDuration: 0 }); + setColor(rule, "fill", ic, "secondaryButtonDown"); + } + { + const rule = r("Graphics", ["resize", "button", "icon"]); + rule.setAll({ + interactive: false, + crisp: true, + strokeOpacity: 0.5, + draw: (display) => { + display.moveTo(0, 0.5); + display.lineTo(0, 12.5); + display.moveTo(4, 0.5); + display.lineTo(4, 12.5); + } + }); + setColor(rule, "stroke", ic, "secondaryButtonText"); + } + r("Button", ["resize", "vertical"]).setAll({ + rotation: 90, + cursorOverStyle: "ns-resize" + }); + r("Button", ["resize", "horizontal"]).setAll({ + cursorOverStyle: "ew-resize" + }); + r("Button", ["play"]).setAll({ + paddingTop: 13, + paddingBottom: 13, + paddingLeft: 14, + paddingRight: 14, + ariaLabel: language.translate("Play"), + toggleKey: "active" + }); + { + const rule = r("RoundedRectangle", ["play", "background"]); + rule.setAll({ + strokeOpacity: 0.5, + cornerRadiusBL: 100, + cornerRadiusBR: 100, + cornerRadiusTL: 100, + cornerRadiusTR: 100 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("Graphics", ["play", "icon"]); + rule.setAll({ + stateAnimationDuration: 0, + dx: 1, + draw: (display) => { + display.moveTo(0, -5); + display.lineTo(8, 0); + display.lineTo(0, 5); + display.lineTo(0, -5); + } + }); + setColor(rule, "fill", ic, "primaryButtonText"); + } + r("Graphics", ["play", "icon"]).states.create("default", { + stateAnimationDuration: 0 + }); + r("Graphics", ["play", "icon"]).states.create("active", { + stateAnimationDuration: 0, + draw: (display) => { + display.moveTo(-4, -5); + display.lineTo(-1, -5); + display.lineTo(-1, 5); + display.lineTo(-4, 5); + display.lineTo(-4, -5); + display.moveTo(4, -5); + display.lineTo(1, -5); + display.lineTo(1, 5); + display.lineTo(4, 5); + display.lineTo(4, -5); + } + }); + r("Button", ["switch"]).setAll({ + paddingTop: 4, + paddingBottom: 4, + paddingLeft: 4, + paddingRight: 4, + ariaLabel: language.translate("Press ENTER to toggle"), + toggleKey: "active", + width: 40, + height: 24, + layout: null + }); + { + const rule = r("RoundedRectangle", ["switch", "background"]); + rule.setAll({ + strokeOpacity: 0.5, + cornerRadiusBL: 100, + cornerRadiusBR: 100, + cornerRadiusTL: 100, + cornerRadiusTR: 100 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("Circle", ["switch", "icon"]); + rule.setAll({ + radius: 8, + centerY: 0, + centerX: 0, + dx: 0 + }); + setColor(rule, "fill", ic, "primaryButtonText"); + } + r("Graphics", ["switch", "icon"]).states.create("active", { + dx: 16 + }); + r("Scrollbar").setAll({ + start: 0, + end: 1, + layer: 30, + animationEasing: out(cubic) + }); + r("Scrollbar", ["vertical"]).setAll({ + marginRight: 13, + marginLeft: 13, + minWidth: 12, + height: p100 + }); + r("Scrollbar", ["horizontal"]).setAll({ + marginTop: 13, + marginBottom: 13, + minHeight: 12, + width: p100 + }); + this.rule("Button", ["scrollbar"]).setAll({ + exportable: false + }); + { + const rule = r("RoundedRectangle", ["scrollbar", "main", "background"]); + rule.setAll({ + cornerRadiusTL: 8, + cornerRadiusBL: 8, + cornerRadiusTR: 8, + cornerRadiusBR: 8, + fillOpacity: 0.8 + }); + setColor(rule, "fill", ic, "fill"); + } + { + const rule = r("RoundedRectangle", ["scrollbar", "thumb"]); + rule.setAll({ + role: "slider", + ariaLive: "polite", + position: "absolute", + draggable: true + }); + setColor(rule, "fill", ic, "secondaryButton"); + } + { + const rule = r("RoundedRectangle", ["scrollbar", "thumb"]).states.create("hover", {}); + setColor(rule, "fill", ic, "secondaryButtonHover"); + } + { + const rule = r("RoundedRectangle", ["scrollbar", "thumb"]).states.create("down", { stateAnimationDuration: 0 }); + setColor(rule, "fill", ic, "secondaryButtonDown"); + } + r("RoundedRectangle", ["scrollbar", "thumb", "vertical"]).setAll({ + x: p50, + width: p100, + centerX: p50, + ariaLabel: language.translate("Use up and down arrows to move selection") + }); + r("RoundedRectangle", ["scrollbar", "thumb", "horizontal"]).setAll({ + y: p50, + centerY: p50, + height: p100, + ariaLabel: language.translate("Use left and right arrows to move selection") + }); + { + const rule = r("PointedRectangle", ["axis", "tooltip", "background"]); + rule.setAll({ + cornerRadius: 0 + }); + setColor(rule, "fill", ic, "alternativeBackground"); + } + r("Label", ["axis", "tooltip"]).setAll({ + role: void 0 + }); + r("Label", ["axis", "tooltip", "y"]).setAll({ + textAlign: "right" + }); + r("Label", ["axis", "tooltip", "y", "opposite"]).setAll({ + textAlign: "left" + }); + r("Label", ["axis", "tooltip", "x"]).setAll({ + textAlign: "center" + }); + r("Tooltip", ["categoryaxis"]).setAll({ + labelText: "{category}" + }); + r("Star").setAll({ + spikes: 5, + innerRadius: 5, + radius: 10 + }); + r("Tooltip", ["stock"]).setAll({ + paddingTop: 6, + paddingBottom: 5, + paddingLeft: 7, + paddingRight: 7 + }); + r("Tooltip", ["indicator"]).setAll({ + forceHidden: true + }); + r("PointedRectangle", ["tooltip", "stock", "axis"]).setAll({ + pointerLength: 0, + pointerBaseWidth: 0, + cornerRadius: 3 + }); + r("Label", ["tooltip", "stock"]).setAll({ + fontSize: "0.8em" + }); + r("SpriteResizer").setAll({ + rotationStep: 10, + isMeasured: false + }); + { + const rule = r("Container", ["resizer", "grip"]); + rule.states.create("hover", {}); + } + { + const rule = r("RoundedRectangle", ["resizer", "grip"]); + rule.setAll({ + strokeOpacity: 0.7, + strokeWidth: 1, + fillOpacity: 1, + width: 12, + height: 12 + }); + setColor(rule, "fill", ic, "background"); + setColor(rule, "stroke", ic, "alternativeBackground"); + } + { + const rule = r("RoundedRectangle", ["resizer", "grip", "outline"]); + rule.setAll({ + strokeOpacity: 0, + fillOpacity: 0, + width: 20, + height: 20 + }); + rule.states.create("hover", { + fillOpacity: 0.3 + }); + setColor(rule, "fill", ic, "alternativeBackground"); + } + r("RoundedRectangle", ["resizer", "grip", "left"]).setAll({ + cornerRadiusBL: 0, + cornerRadiusBR: 0, + cornerRadiusTL: 0, + cornerRadiusTR: 0 + }); + r("RoundedRectangle", ["resizer", "grip", "right"]).setAll({ + cornerRadiusBL: 0, + cornerRadiusBR: 0, + cornerRadiusTL: 0, + cornerRadiusTR: 0 + }); + { + const rule = r("Rectangle", ["resizer", "rectangle"]); + rule.setAll({ + strokeDasharray: [2, 2], + strokeOpacity: 0.5, + strokeWidth: 1 + }); + setColor(rule, "stroke", ic, "alternativeBackground"); + } + r("Graphics", ["button", "plus", "icon"]).setAll({ + x: p50, + y: p50, + draw: (display) => { + display.moveTo(-4, 0); + display.lineTo(4, 0); + display.moveTo(0, -4); + display.lineTo(0, 4); + } + }); + r("Graphics", ["button", "minus", "icon"]).setAll({ + x: p50, + y: p50, + draw: (display) => { + display.moveTo(-4, 0); + display.lineTo(4, 0); + } + }); + r("Graphics", ["button", "home", "icon"]).setAll({ + x: p50, + y: p50, + svgPath: "M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1" + }); + r("Button", ["zoomtools"]).setAll({ + marginTop: 1, + marginBottom: 2 + }); + r("ZoomTools").setAll({ + x: p100, + centerX: p100, + y: p100, + centerY: p100, + paddingRight: 10, + paddingBottom: 10 + }); + r("ProgressPie").setAll({ + radius: p100, + width: 50, + height: 50, + centerX: percent(-50), + centerY: percent(-50), + innerRadius: percent(85), + numberFormat: "#." + }); + { + const rule = r("Label", ["progresspie"]); + rule.setAll({ + centerX: p50, + centerY: p50, + fontSize: "0.75em" + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("Circle", ["progresspie"]); + rule.setAll({ + fillOpacity: 0.5 + }); + setColor(rule, "fill", ic, "background"); + } + { + const rule = r("Slice", ["progresspie"]); + rule.setAll({ + startAngle: -90 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + { + const rule = r("Slice", ["progresspie", "background"]); + rule.setAll({ + fillOpacity: 0.2, + arc: 360 + }); + setColor(rule, "fill", ic, "primaryButton"); + } + r("EditableLabel", ["numericstepper"]).setAll({ + y: p50, + centerY: p50, + multiLine: false, + marginRight: 2 + }); + { + const rule = r("Container", ["numericstepper", "buttons"]); + rule.setAll({ + layout: this._root.verticalLayout, + centerY: p50, + y: p50, + marginRight: 10, + opacity: 0 + }); + rule.states.create("active", { + opacity: 1 + }); + rule.states.create("default", { + opacity: 0 + }); + } + { + const rule = r("Triangle", ["numericstepper"]); + rule.setAll({ + width: 17, + height: 11, + marginTop: 3, + marginBottom: 3, + strokeWidth: 5, + strokeOpacity: 0, + cursorOverStyle: "pointer" + }); + setColor(rule, "fill", ic, "secondaryButton"); + } + { + const rule = r("Triangle", ["downbutton"]); + rule.setAll({ + rotation: 180 + }); + } + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/util/Matrix.js + var Matrix = class { + constructor(a = 1, b = 0, c = 0, d = 1, tx = 0, ty = 0) { + this.a = a; + this.b = b; + this.c = c; + this.d = d; + this.tx = tx; + this.ty = ty; + } + /** + * Sets the matrix based on all the available properties + */ + setTransform(x, y, pivotX, pivotY, rotation, scale = 1) { + this.a = Math.cos(rotation) * scale; + this.b = Math.sin(rotation) * scale; + this.c = -Math.sin(rotation) * scale; + this.d = Math.cos(rotation) * scale; + this.tx = x - (pivotX * this.a + pivotY * this.c); + this.ty = y - (pivotX * this.b + pivotY * this.d); + } + /** + * Get a new position with the current transformation applied. + * Can be used to go from a child's coordinate space to the world coordinate space. (e.g. rendering) + */ + apply(origin) { + return { + x: this.a * origin.x + this.c * origin.y + this.tx, + y: this.b * origin.x + this.d * origin.y + this.ty + }; + } + /** + * Get a new position with the inverse of the current transformation applied. + * Can be used to go from the world coordinate space to a child's coordinate space. (e.g. input) + */ + applyInverse(origin) { + const id = 1 / (this.a * this.d + this.c * -this.b); + return { + x: this.d * id * origin.x + -this.c * id * origin.y + (this.ty * this.c - this.tx * this.d) * id, + y: this.a * id * origin.y + -this.b * id * origin.x + (-this.ty * this.a + this.tx * this.b) * id + }; + } + /** + * Appends the given Matrix to this Matrix. + */ + append(matrix) { + const a1 = this.a; + const b12 = this.b; + const c1 = this.c; + const d1 = this.d; + this.a = matrix.a * a1 + matrix.b * c1; + this.b = matrix.a * b12 + matrix.b * d1; + this.c = matrix.c * a1 + matrix.d * c1; + this.d = matrix.c * b12 + matrix.d * d1; + this.tx = matrix.tx * a1 + matrix.ty * c1 + this.tx; + this.ty = matrix.tx * b12 + matrix.ty * d1 + this.ty; + } + /** + * Prepends the given Matrix to this Matrix. + */ + prepend(matrix) { + const tx1 = this.tx; + if (matrix.a !== 1 || matrix.b !== 0 || matrix.c !== 0 || matrix.d !== 1) { + const a1 = this.a; + const c1 = this.c; + this.a = a1 * matrix.a + this.b * matrix.c; + this.b = a1 * matrix.b + this.b * matrix.d; + this.c = c1 * matrix.a + this.d * matrix.c; + this.d = c1 * matrix.b + this.d * matrix.d; + } + this.tx = tx1 * matrix.a + this.ty * matrix.c + matrix.tx; + this.ty = tx1 * matrix.b + this.ty * matrix.d + matrix.ty; + } + /** + * Copies the other matrix's properties into this matrix + */ + copyFrom(matrix) { + this.a = matrix.a; + this.b = matrix.b; + this.c = matrix.c; + this.d = matrix.d; + this.tx = matrix.tx; + this.ty = matrix.ty; + } + }; + + // node_modules/svg-arc-to-cubic-bezier/modules/index.js + var _slicedToArray = /* @__PURE__ */ (function() { + function sliceIterator(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = void 0; + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"]) _i["return"](); + } finally { + if (_d) throw _e; + } + } + return _arr; + } + return function(arr, i) { + if (Array.isArray(arr)) { + return arr; + } else if (Symbol.iterator in Object(arr)) { + return sliceIterator(arr, i); + } else { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); + } + }; + })(); + var TAU = Math.PI * 2; + var mapToEllipse = function mapToEllipse2(_ref, rx, ry, cosphi, sinphi, centerx, centery) { + var x = _ref.x, y = _ref.y; + x *= rx; + y *= ry; + var xp = cosphi * x - sinphi * y; + var yp = sinphi * x + cosphi * y; + return { + x: xp + centerx, + y: yp + centery + }; + }; + var approxUnitArc = function approxUnitArc2(ang1, ang2) { + var a = ang2 === 1.5707963267948966 ? 0.551915024494 : ang2 === -1.5707963267948966 ? -0.551915024494 : 4 / 3 * Math.tan(ang2 / 4); + var x1 = Math.cos(ang1); + var y1 = Math.sin(ang1); + var x2 = Math.cos(ang1 + ang2); + var y2 = Math.sin(ang1 + ang2); + return [{ + x: x1 - y1 * a, + y: y1 + x1 * a + }, { + x: x2 + y2 * a, + y: y2 - x2 * a + }, { + x: x2, + y: y2 + }]; + }; + var vectorAngle = function vectorAngle2(ux, uy, vx, vy) { + var sign = ux * vy - uy * vx < 0 ? -1 : 1; + var dot = ux * vx + uy * vy; + if (dot > 1) { + dot = 1; + } + if (dot < -1) { + dot = -1; + } + return sign * Math.acos(dot); + }; + var getArcCenter = function getArcCenter2(px, py, cx, cy, rx, ry, largeArcFlag, sweepFlag, sinphi, cosphi, pxp, pyp) { + var rxsq = Math.pow(rx, 2); + var rysq = Math.pow(ry, 2); + var pxpsq = Math.pow(pxp, 2); + var pypsq = Math.pow(pyp, 2); + var radicant = rxsq * rysq - rxsq * pypsq - rysq * pxpsq; + if (radicant < 0) { + radicant = 0; + } + radicant /= rxsq * pypsq + rysq * pxpsq; + radicant = Math.sqrt(radicant) * (largeArcFlag === sweepFlag ? -1 : 1); + var centerxp = radicant * rx / ry * pyp; + var centeryp = radicant * -ry / rx * pxp; + var centerx = cosphi * centerxp - sinphi * centeryp + (px + cx) / 2; + var centery = sinphi * centerxp + cosphi * centeryp + (py + cy) / 2; + var vx1 = (pxp - centerxp) / rx; + var vy1 = (pyp - centeryp) / ry; + var vx2 = (-pxp - centerxp) / rx; + var vy2 = (-pyp - centeryp) / ry; + var ang1 = vectorAngle(1, 0, vx1, vy1); + var ang2 = vectorAngle(vx1, vy1, vx2, vy2); + if (sweepFlag === 0 && ang2 > 0) { + ang2 -= TAU; + } + if (sweepFlag === 1 && ang2 < 0) { + ang2 += TAU; + } + return [centerx, centery, ang1, ang2]; + }; + var arcToBezier = function arcToBezier2(_ref2) { + var px = _ref2.px, py = _ref2.py, cx = _ref2.cx, cy = _ref2.cy, rx = _ref2.rx, ry = _ref2.ry, _ref2$xAxisRotation = _ref2.xAxisRotation, xAxisRotation = _ref2$xAxisRotation === void 0 ? 0 : _ref2$xAxisRotation, _ref2$largeArcFlag = _ref2.largeArcFlag, largeArcFlag = _ref2$largeArcFlag === void 0 ? 0 : _ref2$largeArcFlag, _ref2$sweepFlag = _ref2.sweepFlag, sweepFlag = _ref2$sweepFlag === void 0 ? 0 : _ref2$sweepFlag; + var curves = []; + if (rx === 0 || ry === 0) { + return []; + } + var sinphi = Math.sin(xAxisRotation * TAU / 360); + var cosphi = Math.cos(xAxisRotation * TAU / 360); + var pxp = cosphi * (px - cx) / 2 + sinphi * (py - cy) / 2; + var pyp = -sinphi * (px - cx) / 2 + cosphi * (py - cy) / 2; + if (pxp === 0 && pyp === 0) { + return []; + } + rx = Math.abs(rx); + ry = Math.abs(ry); + var lambda = Math.pow(pxp, 2) / Math.pow(rx, 2) + Math.pow(pyp, 2) / Math.pow(ry, 2); + if (lambda > 1) { + rx *= Math.sqrt(lambda); + ry *= Math.sqrt(lambda); + } + var _getArcCenter = getArcCenter(px, py, cx, cy, rx, ry, largeArcFlag, sweepFlag, sinphi, cosphi, pxp, pyp), _getArcCenter2 = _slicedToArray(_getArcCenter, 4), centerx = _getArcCenter2[0], centery = _getArcCenter2[1], ang1 = _getArcCenter2[2], ang2 = _getArcCenter2[3]; + var ratio = Math.abs(ang2) / (TAU / 4); + if (Math.abs(1 - ratio) < 1e-7) { + ratio = 1; + } + var segments = Math.max(Math.ceil(ratio), 1); + ang2 /= segments; + for (var i = 0; i < segments; i++) { + curves.push(approxUnitArc(ang1, ang2)); + ang1 += ang2; + } + return curves.map(function(curve) { + var _mapToEllipse = mapToEllipse(curve[0], rx, ry, cosphi, sinphi, centerx, centery), x1 = _mapToEllipse.x, y1 = _mapToEllipse.y; + var _mapToEllipse2 = mapToEllipse(curve[1], rx, ry, cosphi, sinphi, centerx, centery), x2 = _mapToEllipse2.x, y2 = _mapToEllipse2.y; + var _mapToEllipse3 = mapToEllipse(curve[2], rx, ry, cosphi, sinphi, centerx, centery), x = _mapToEllipse3.x, y = _mapToEllipse3.y; + return { x1, y1, x2, y2, x, y }; + }); + }; + var modules_default = arcToBezier; + + // node_modules/@amcharts/amcharts5/.internal/core/render/backend/CanvasRenderer.js + function checkArgs(name, actual, expected) { + if (actual !== expected) { + throw new Error("Required " + expected + " arguments for " + name + " but got " + actual); + } + } + function checkMinArgs(name, actual, expected) { + if (actual < expected) { + throw new Error("Required at least " + expected + " arguments for " + name + " but got " + actual); + } + } + function checkEvenArgs(name, actual, expected) { + checkMinArgs(name, actual, expected); + if (actual % expected !== 0) { + throw new Error("Arguments for " + name + " must be in pairs of " + expected); + } + } + function splitArcFlags(args) { + for (let i = 0; i < args.length; i += 7) { + let index = i + 3; + let flag = args[index]; + if (flag.length > 1) { + const a = /^([01])([01])(.*)$/.exec(flag); + if (a !== null) { + args.splice(index, 0, a[1]); + ++index; + args.splice(index, 0, a[2]); + ++index; + if (a[3].length > 0) { + args[index] = a[3]; + } else { + args.splice(index, 1); + } + } + } + ++index; + flag = args[index]; + if (flag.length > 1) { + const a = /^([01])(.+)$/.exec(flag); + if (a !== null) { + args.splice(index, 0, a[1]); + ++index; + args[index] = a[2]; + } + } + } + } + function assertBinary(value) { + if (value === 0 || value === 1) { + return value; + } else { + throw new Error("Flag must be 0 or 1"); + } + } + function distributeId(id) { + const rgb = [0, 0, 0]; + for (let i = 0; i < 24; i++) { + rgb[i % 3] <<= 1; + rgb[i % 3] |= id & 1; + id >>= 1; + } + return (rgb[0] | 0) + (rgb[1] << 8) + (rgb[2] << 16); + } + function eachTargets(hitTarget, f) { + for (; ; ) { + if (hitTarget.interactive) { + if (!f(hitTarget)) { + break; + } + } + if (hitTarget._parent) { + hitTarget = hitTarget._parent; + } else { + break; + } + } + } + function onPointerEvent(element, name, f) { + return addEventListener(element, getRendererEvent(name), (event) => { + const target = getEventTarget(event); + let touches = event.touches; + if (touches) { + if (touches.length == 0) { + touches = event.changedTouches; + } + f(copy(touches), target); + } else { + f([event], target); + } + }); + } + function isTainted(image) { + const canvas = document.createElement("canvas"); + canvas.width = 1; + canvas.height = 1; + const context = canvas.getContext("2d", { willReadFrequently: true }); + context.drawImage(image, 0, 0, 1, 1); + try { + context.getImageData(0, 0, 1, 1); + return false; + } catch (err) { + console.warn('Image "' + image.src + '" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'); + return true; + } + } + function clearCanvas(view) { + view.width = 0; + view.height = 0; + view.style.width = "0px"; + view.style.height = "0px"; + } + function crisp(x) { + return Math.floor(x) + 0.5; + } + var CanvasPivot = class { + constructor() { + this._x = 0; + this._y = 0; + } + get x() { + return this._x; + } + get y() { + return this._y; + } + set x(value) { + this._x = value; + } + set y(value) { + this._y = value; + } + }; + var CanvasDisplayObject = class extends DisposerClass { + constructor(renderer) { + super(); + this.mask = null; + this.visible = true; + this.exportable = true; + this.interactive = false; + this.inactive = null; + this.wheelable = false; + this.cancelTouch = false; + this.isMeasured = false; + this.buttonMode = false; + this.alpha = 1; + this.compoundAlpha = 1; + this.angle = 0; + this.scale = 1; + this.x = 0; + this.y = 0; + this.crisp = false; + this.pivot = new CanvasPivot(); + this._localMatrix = new Matrix(); + this._matrix = new Matrix(); + this._uMatrix = new Matrix(); + this._renderer = renderer; + } + subStatus(status) { + return { + inactive: this.inactive == null ? status.inactive : this.inactive, + layer: this._layer || status.layer + }; + } + _dispose() { + this._renderer._removeObject(this); + this.getLayer().dirty = true; + } + getCanvas() { + return this.getLayer().view; + } + getLayer() { + let self = this; + for (; ; ) { + if (self._layer) { + return self._layer; + } else if (self._parent) { + self = self._parent; + } else { + return this._renderer.defaultLayer; + } + } + } + setLayer(order, margin) { + if (order == null) { + this._layer = void 0; + } else { + const visible = true; + this._layer = this._renderer.getLayer(order, visible); + this._layer.visible = visible; + this._layer.margin = margin; + if (margin) { + setInteractive(this._layer.view, false); + } + this._renderer._ghostLayer.setMargin(this._renderer.layers); + if (this._parent) { + this._parent.registerChildLayer(this._layer); + } + this._layer.dirty = true; + this._renderer.resizeLayer(this._layer); + this._renderer.resizeGhost(); + } + } + markDirtyLayer() { + this.getLayer().dirty = true; + } + clear() { + this.invalidateBounds(); + } + invalidateBounds() { + this._localBounds = void 0; + } + _addBounds(_bounds) { + } + _getColorId() { + if (this._colorId === void 0) { + this._colorId = this._renderer.paintId(this); + } + return this._colorId; + } + _isInteractive(status) { + return !status.inactive && (this.interactive || this._renderer._forceInteractive > 0); + } + _isInteractiveMask(status) { + return this._isInteractive(status); + } + contains(child) { + for (; ; ) { + if (child === this) { + return true; + } else if (child._parent) { + child = child._parent; + } else { + return false; + } + } + } + toGlobal(point) { + return this._matrix.apply(point); + } + toLocal(point) { + return this._matrix.applyInverse(point); + } + getLocalMatrix() { + this._uMatrix.setTransform(0, 0, this.pivot.x, this.pivot.y, this.angle * Math.PI / 180, this.scale); + return this._uMatrix; + } + getLocalBounds() { + if (!this._localBounds) { + const bn = 1e7; + this._localBounds = { + left: bn, + top: bn, + right: -bn, + bottom: -bn + }; + this._addBounds(this._localBounds); + } + return this._localBounds; + } + getAdjustedBounds(bounds) { + this._setMatrix(); + const matrix = this.getLocalMatrix(); + const p02 = matrix.apply({ x: bounds.left, y: bounds.top }); + const p1 = matrix.apply({ x: bounds.right, y: bounds.top }); + const p2 = matrix.apply({ x: bounds.right, y: bounds.bottom }); + const p3 = matrix.apply({ x: bounds.left, y: bounds.bottom }); + return { + left: Math.min(p02.x, p1.x, p2.x, p3.x), + top: Math.min(p02.y, p1.y, p2.y, p3.y), + right: Math.max(p02.x, p1.x, p2.x, p3.x), + bottom: Math.max(p02.y, p1.y, p2.y, p3.y) + }; + } + on(key, callback, context) { + if (this.interactive) { + return this._renderer._addEvent(this, key, callback, context); + } else { + return new Disposer(() => { + }); + } + } + _setMatrix() { + this._localMatrix.setTransform( + this.x, + this.y, + this.pivot.x, + this.pivot.y, + // Converts degrees to radians + this.angle * Math.PI / 180, + this.scale + ); + this._matrix.copyFrom(this._localMatrix); + if (this._parent) { + this._matrix.prepend(this._parent._matrix); + } + } + _transform(context, resolution) { + const m = this._matrix; + let tx = m.tx * resolution; + let ty = m.ty * resolution; + if (this.crisp) { + tx = crisp(tx); + ty = crisp(ty); + } + context.setTransform(m.a * resolution, m.b * resolution, m.c * resolution, m.d * resolution, tx, ty); + } + _transformMargin(context, resolution, margin) { + const m = this._matrix; + context.setTransform(m.a * resolution, m.b * resolution, m.c * resolution, m.d * resolution, (m.tx + margin.left) * resolution, (m.ty + margin.top) * resolution); + } + _transformLayer(context, resolution, layer) { + if (layer.margin) { + this._transformMargin(context, layer.scale || resolution, layer.margin); + } else { + this._transform(context, layer.scale || resolution); + } + } + render(status, targetGhostLayer = 0) { + if (this.visible && (this.exportable !== false || !this._renderer._omitTainted)) { + this._setMatrix(); + const subStatus = this.subStatus(status); + const resolution = this._renderer.resolution; + const layers = this._renderer.layers; + const ghostLayer = this._renderer._ghostLayer; + const ghostContext = ghostLayer.context; + const mask = this.mask; + if (mask) { + mask._setMatrix(); + } + each(layers, (layer) => { + if (layer) { + const context = layer.context; + context.save(); + if (mask) { + mask._transformLayer(context, resolution, layer); + mask._runPath(context); + context.clip(); + } + context.globalAlpha = this.compoundAlpha * this.alpha; + this._transformLayer(context, resolution, layer); + if (this.filter) { + context.filter = this.filter; + } + } + }); + ghostContext.save(); + if (mask && this._isInteractiveMask(subStatus)) { + mask._transformMargin(ghostContext, resolution, ghostLayer.margin); + mask._runPath(ghostContext); + ghostContext.clip(); + } + this._transformMargin(ghostContext, resolution, ghostLayer.margin); + if (subStatus.layer.order > 0 && !targetGhostLayer) { + move(this._renderer._deferredGhostLayers, subStatus.layer.order); + } + this._render(subStatus, targetGhostLayer); + ghostContext.restore(); + each(layers, (layer) => { + if (layer) { + layer.context.restore(); + } + }); + } + } + _render(status, _targetGhostLayer = 0) { + if (this.exportable === false) { + status.layer.tainted = true; + } + } + _ghostOnly(targetGhostLayer = 0) { + return targetGhostLayer > 0 ? true : false; + } + _drawGhost(status, targetGhostLayer = 0) { + const interactive = this._isInteractive(status); + const order = status.layer.order || 0; + return interactive && (order == 0 && !this._ghostOnly(targetGhostLayer) || order == targetGhostLayer) ? true : false; + } + hovering() { + return this._renderer._hovering.has(this); + } + dragging() { + return this._renderer._dragging.some((x) => x.value === this); + } + shouldCancelTouch() { + const renderer = this._renderer; + if (renderer.tapToActivate && !renderer._touchActive) { + return false; + } + if (this.cancelTouch) { + return true; + } else if (this._parent) { + return this._parent.shouldCancelTouch(); + } + return false; + } + }; + var CanvasContainer = class extends CanvasDisplayObject { + constructor() { + super(...arguments); + this.interactiveChildren = true; + this._children = []; + } + _isInteractiveMask(status) { + return this.interactiveChildren || super._isInteractiveMask(status); + } + addChild(child) { + child._parent = this; + this._children.push(child); + if (child._layer) { + this.registerChildLayer(child._layer); + } + } + addChildAt(child, index) { + child._parent = this; + this._children.splice(index, 0, child); + if (child._layer) { + this.registerChildLayer(child._layer); + } + } + removeChild(child) { + child._parent = void 0; + removeFirst(this._children, child); + } + _render(status, targetGhostLayer) { + super._render(status); + const renderer = this._renderer; + if (this.interactive && this.interactiveChildren) { + ++renderer._forceInteractive; + } + each(this._children, (child) => { + child.compoundAlpha = this.compoundAlpha * this.alpha; + child.render(status, targetGhostLayer); + }); + if (this.interactive && this.interactiveChildren) { + --renderer._forceInteractive; + } + } + registerChildLayer(layer) { + if (!this._childLayers) { + this._childLayers = []; + } + pushOne(this._childLayers, layer); + if (this._parent) { + this._parent.registerChildLayer(layer); + } + } + markDirtyLayer(deep = false) { + super.markDirtyLayer(); + if (deep && this._childLayers) { + each(this._childLayers, (layer) => layer.dirty = true); + } + } + _dispose() { + super._dispose(); + if (this._childLayers) { + each(this._childLayers, (layer) => { + layer.dirty = true; + }); + } + } + }; + function setPoint(bounds, point) { + bounds.left = Math.min(bounds.left, point.x); + bounds.top = Math.min(bounds.top, point.y); + bounds.right = Math.max(bounds.right, point.x); + bounds.bottom = Math.max(bounds.bottom, point.y); + } + var Op = class { + colorize(_context, _forceColor) { + } + colorizeGhost(context, forceColor) { + this.colorize(context, forceColor); + } + path(_context) { + } + pathGhost(context) { + this.path(context); + } + addBounds(_bounds) { + } + }; + var BeginPath = class extends Op { + colorize(context, _forceColor) { + context.beginPath(); + } + }; + var BeginFill = class extends Op { + constructor(color2) { + super(); + this.color = color2; + } + colorize(context, forceColor) { + if (forceColor !== void 0) { + context.fillStyle = forceColor; + } else { + context.fillStyle = this.color; + } + } + }; + var EndFill = class extends Op { + constructor(clearShadow) { + super(); + this.clearShadow = clearShadow; + } + colorize(context, _forceColor) { + context.fill(); + if (this.clearShadow) { + context.shadowColor = ""; + context.shadowBlur = 0; + context.shadowOffsetX = 0; + context.shadowOffsetY = 0; + } + } + }; + var EndStroke = class extends Op { + colorize(context, _forceColor) { + context.stroke(); + } + }; + var LineStyle = class extends Op { + constructor(width, color2, lineJoin, lineCap) { + super(); + this.width = width; + this.color = color2; + this.lineJoin = lineJoin; + this.lineCap = lineCap; + } + colorize(context, forceColor) { + if (forceColor !== void 0) { + context.strokeStyle = forceColor; + } else { + context.strokeStyle = this.color; + } + context.lineWidth = this.width; + if (this.lineJoin) { + context.lineJoin = this.lineJoin; + } + if (this.lineCap) { + context.lineCap = this.lineCap; + } + } + }; + var LineDash = class extends Op { + constructor(dash) { + super(); + this.dash = dash; + } + colorize(context, _forceColor) { + context.setLineDash(this.dash); + } + }; + var LineDashOffset = class extends Op { + constructor(dashOffset) { + super(); + this.dashOffset = dashOffset; + } + colorize(context, _forceColor) { + context.lineDashOffset = this.dashOffset; + } + }; + var DrawRect = class extends Op { + constructor(x, y, width, height) { + super(); + this.x = x; + this.y = y; + this.width = width; + this.height = height; + } + path(context) { + context.rect(this.x, this.y, this.width, this.height); + } + addBounds(bounds) { + const l = this.x; + const t = this.y; + const r = l + this.width; + const b = t + this.height; + setPoint(bounds, { x: l, y: t }); + setPoint(bounds, { x: r, y: t }); + setPoint(bounds, { x: l, y: b }); + setPoint(bounds, { x: r, y: b }); + } + }; + var DrawCircle = class extends Op { + constructor(x, y, radius) { + super(); + this.x = x; + this.y = y; + this.radius = radius; + } + path(context) { + context.moveTo(this.x + this.radius, this.y); + context.arc(this.x, this.y, this.radius, 0, 2 * Math.PI); + } + // TODO handle skewing and rotation + addBounds(bounds) { + setPoint(bounds, { x: this.x - this.radius, y: this.y - this.radius }); + setPoint(bounds, { x: this.x + this.radius, y: this.y + this.radius }); + } + }; + var DrawEllipse = class extends Op { + constructor(x, y, radiusX, radiusY) { + super(); + this.x = x; + this.y = y; + this.radiusX = radiusX; + this.radiusY = radiusY; + } + path(context) { + context.ellipse(0, 0, this.radiusX, this.radiusY, 0, 0, Math.PI * 2); + } + // TODO handle skewing and rotation + addBounds(bounds) { + setPoint(bounds, { x: this.x - this.radiusX, y: this.y - this.radiusY }); + setPoint(bounds, { x: this.x + this.radiusX, y: this.y + this.radiusY }); + } + }; + var Arc = class extends Op { + constructor(cx, cy, radius, startAngle, endAngle, anticlockwise) { + super(); + this.cx = cx; + this.cy = cy; + this.radius = radius; + this.startAngle = startAngle; + this.endAngle = endAngle; + this.anticlockwise = anticlockwise; + } + path(context) { + if (this.radius > 0) { + context.arc(this.cx, this.cy, this.radius, this.startAngle, this.endAngle, this.anticlockwise); + } + } + addBounds(bounds) { + let arcBounds = getArcBounds(this.cx, this.cy, this.startAngle * DEGREES, this.endAngle * DEGREES, this.radius); + setPoint(bounds, { x: arcBounds.left, y: arcBounds.top }); + setPoint(bounds, { x: arcBounds.right, y: arcBounds.bottom }); + } + }; + var ArcTo = class extends Op { + constructor(x1, y1, x2, y2, radius) { + super(); + this.x1 = x1; + this.y1 = y1; + this.x2 = x2; + this.y2 = y2; + this.radius = radius; + } + path(context) { + if (this.radius > 0) { + context.arcTo(this.x1, this.y1, this.x2, this.y2, this.radius); + } + } + // TODO: add points + addBounds(_bounds) { + } + }; + var LineTo = class extends Op { + constructor(x, y) { + super(); + this.x = x; + this.y = y; + } + path(context) { + context.lineTo(this.x, this.y); + } + addBounds(bounds) { + setPoint(bounds, { x: this.x, y: this.y }); + } + }; + var MoveTo = class extends Op { + constructor(x, y) { + super(); + this.x = x; + this.y = y; + } + path(context) { + context.moveTo(this.x, this.y); + } + addBounds(bounds) { + setPoint(bounds, { x: this.x, y: this.y }); + } + }; + var ClosePath = class extends Op { + path(context) { + context.closePath(); + } + }; + var BezierCurveTo = class extends Op { + constructor(cpX, cpY, cpX2, cpY2, toX, toY) { + super(); + this.cpX = cpX; + this.cpY = cpY; + this.cpX2 = cpX2; + this.cpY2 = cpY2; + this.toX = toX; + this.toY = toY; + } + path(context) { + context.bezierCurveTo(this.cpX, this.cpY, this.cpX2, this.cpY2, this.toX, this.toY); + } + // TODO: OK? + addBounds(bounds) { + setPoint(bounds, { x: this.cpX, y: this.cpY }); + setPoint(bounds, { x: this.cpX2, y: this.cpY2 }); + setPoint(bounds, { x: this.toX, y: this.toY }); + } + }; + var QuadraticCurveTo = class extends Op { + constructor(cpX, cpY, toX, toY) { + super(); + this.cpX = cpX; + this.cpY = cpY; + this.toX = toX; + this.toY = toY; + } + path(context) { + context.quadraticCurveTo(this.cpX, this.cpY, this.toX, this.toY); + } + // TODO: OK? + addBounds(bounds) { + setPoint(bounds, { x: this.cpX, y: this.cpY }); + setPoint(bounds, { x: this.toX, y: this.toY }); + } + }; + var Shadow = class extends Op { + constructor(color2, blur2, offsetX, offsetY, opacity) { + super(); + this.color = color2; + this.blur = blur2; + this.offsetX = offsetX; + this.offsetY = offsetY; + this.opacity = opacity; + } + colorize(context, _forceColor) { + if (this.opacity) { + context.fillStyle = this.color; + } + context.shadowColor = this.color; + context.shadowBlur = this.blur; + context.shadowOffsetX = this.offsetX; + context.shadowOffsetY = this.offsetY; + } + colorizeGhost(_context, _forceColor) { + } + }; + var GraphicsImage = class extends Op { + constructor(image, width, height, x, y) { + super(); + this.image = image; + this.width = width; + this.height = height; + this.x = x; + this.y = y; + } + path(context) { + context.drawImage(this.image, this.x, this.y, this.width, this.height); + } + // TODO: OK? + addBounds(bounds) { + setPoint(bounds, { x: this.x, y: this.y }); + setPoint(bounds, { x: this.width, y: this.height }); + } + }; + var CanvasGraphics = class extends CanvasDisplayObject { + constructor() { + super(...arguments); + this._operations = []; + this.blendMode = BlendMode.NORMAL; + this._hasShadows = false; + } + clear() { + super.clear(); + this._operations.length = 0; + } + _pushOp(op) { + this._operations.push(op); + } + beginFill(color2, alpha = 1) { + this._fillAlpha = alpha; + if (color2) { + if (color2 instanceof Color) { + this._pushOp(new BeginFill(color2.toCSS(alpha))); + } else { + this.isMeasured = true; + this._pushOp(new BeginFill(color2)); + } + } else { + this._pushOp(new BeginFill("rgba(0, 0, 0, " + alpha + ")")); + } + } + endFill() { + this._pushOp(new EndFill(this._hasShadows)); + } + endStroke() { + this._pushOp(new EndStroke()); + } + beginPath() { + this._pushOp(new BeginPath()); + } + lineStyle(width = 0, color2, alpha = 1, lineJoin, lineCap) { + this._strokeAlpha = alpha; + if (color2) { + if (color2 instanceof Color) { + this._pushOp(new LineStyle(width, color2.toCSS(alpha), lineJoin, lineCap)); + } else { + this._pushOp(new LineStyle(width, color2, lineJoin, lineCap)); + } + } else { + this._pushOp(new LineStyle(width, "rgba(0, 0, 0, " + alpha + ")", lineJoin, lineCap)); + } + } + setLineDash(dash) { + this._pushOp(new LineDash(dash ? dash : [])); + } + setLineDashOffset(dashOffset = 0) { + this._pushOp(new LineDashOffset(dashOffset)); + } + drawRect(x, y, width, height) { + this._pushOp(new DrawRect(x, y, width, height)); + } + drawCircle(x, y, radius) { + this._pushOp(new DrawCircle(x, y, radius)); + } + drawEllipse(x, y, radiusX, radiusY) { + this._pushOp(new DrawEllipse(x, y, radiusX, radiusY)); + } + arc(cx, cy, radius, startAngle, endAngle, anticlockwise = false) { + this._pushOp(new Arc(cx, cy, radius, startAngle, endAngle, anticlockwise)); + } + arcTo(x1, y1, x2, y2, radius) { + this._pushOp(new ArcTo(x1, y1, x2, y2, radius)); + } + lineTo(x, y) { + this._pushOp(new LineTo(x, y)); + } + moveTo(x, y) { + this._pushOp(new MoveTo(x, y)); + } + bezierCurveTo(cpX, cpY, cpX2, cpY2, toX, toY) { + this._pushOp(new BezierCurveTo(cpX, cpY, cpX2, cpY2, toX, toY)); + } + quadraticCurveTo(cpX, cpY, toX, toY) { + this._pushOp(new QuadraticCurveTo(cpX, cpY, toX, toY)); + } + closePath() { + this._pushOp(new ClosePath()); + } + shadow(color2, blur2 = 0, offsetX = 0, offsetY = 0, opacity) { + this._hasShadows = true; + this._pushOp(new Shadow(opacity ? color2.toCSS(opacity) : color2.toCSS(this._fillAlpha || this._strokeAlpha), blur2, offsetX, offsetY)); + } + image(image, width, height, x, y) { + this._pushOp(new GraphicsImage(image, width, height, x, y)); + } + // https://svgwg.org/svg2-draft/paths.html#DProperty + // TODO better error checking + svgPath(path) { + let x = 0; + let y = 0; + let cpx = null; + let cpy = null; + let qcpx = null; + let qcpy = null; + const SEGMENTS_REGEXP = /([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g; + const ARGS_REGEXP = /[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g; + const length = this._operations.length; + try { + let match; + while ((match = SEGMENTS_REGEXP.exec(path)) !== null) { + const name = match[1]; + const rest = match[2]; + const args = []; + while ((match = ARGS_REGEXP.exec(rest)) !== null) { + args.push(match[1]); + } + if (name !== "S" && name !== "s" && name !== "C" && name !== "c") { + cpx = null; + cpy = null; + } + if (name !== "Q" && name !== "q" && name !== "T" && name !== "t") { + qcpx = null; + qcpy = null; + } + switch (name) { + case "M": + checkEvenArgs(name, args.length, 2); + x = +args[0]; + y = +args[1]; + this.moveTo(x, y); + for (let i = 2; i < args.length; i += 2) { + x = +args[i]; + y = +args[i + 1]; + this.lineTo(x, y); + } + break; + case "m": + checkEvenArgs(name, args.length, 2); + x += +args[0]; + y += +args[1]; + this.moveTo(x, y); + for (let i = 2; i < args.length; i += 2) { + x += +args[i]; + y += +args[i + 1]; + this.lineTo(x, y); + } + break; + case "L": + checkEvenArgs(name, args.length, 2); + for (let i = 0; i < args.length; i += 2) { + x = +args[i]; + y = +args[i + 1]; + this.lineTo(x, y); + } + break; + case "l": + checkEvenArgs(name, args.length, 2); + for (let i = 0; i < args.length; i += 2) { + x += +args[i]; + y += +args[i + 1]; + this.lineTo(x, y); + } + break; + case "H": + checkMinArgs(name, args.length, 1); + for (let i = 0; i < args.length; ++i) { + x = +args[i]; + this.lineTo(x, y); + } + break; + case "h": + checkMinArgs(name, args.length, 1); + for (let i = 0; i < args.length; ++i) { + x += +args[i]; + this.lineTo(x, y); + } + break; + case "V": + checkMinArgs(name, args.length, 1); + for (let i = 0; i < args.length; ++i) { + y = +args[i]; + this.lineTo(x, y); + } + break; + case "v": + checkMinArgs(name, args.length, 1); + for (let i = 0; i < args.length; ++i) { + y += +args[i]; + this.lineTo(x, y); + } + break; + case "C": + checkEvenArgs(name, args.length, 6); + for (let i = 0; i < args.length; i += 6) { + const x1 = +args[i]; + const y1 = +args[i + 1]; + cpx = +args[i + 2]; + cpy = +args[i + 3]; + x = +args[i + 4]; + y = +args[i + 5]; + this.bezierCurveTo(x1, y1, cpx, cpy, x, y); + } + break; + case "c": + checkEvenArgs(name, args.length, 6); + for (let i = 0; i < args.length; i += 6) { + const x1 = +args[i] + x; + const y1 = +args[i + 1] + y; + cpx = +args[i + 2] + x; + cpy = +args[i + 3] + y; + x += +args[i + 4]; + y += +args[i + 5]; + this.bezierCurveTo(x1, y1, cpx, cpy, x, y); + } + break; + case "S": + checkEvenArgs(name, args.length, 4); + if (cpx === null || cpy === null) { + cpx = x; + cpy = y; + } + for (let i = 0; i < args.length; i += 4) { + const x1 = 2 * x - cpx; + const y1 = 2 * y - cpy; + cpx = +args[i]; + cpy = +args[i + 1]; + x = +args[i + 2]; + y = +args[i + 3]; + this.bezierCurveTo(x1, y1, cpx, cpy, x, y); + } + break; + case "s": + checkEvenArgs(name, args.length, 4); + if (cpx === null || cpy === null) { + cpx = x; + cpy = y; + } + for (let i = 0; i < args.length; i += 4) { + const x1 = 2 * x - cpx; + const y1 = 2 * y - cpy; + cpx = +args[i] + x; + cpy = +args[i + 1] + y; + x += +args[i + 2]; + y += +args[i + 3]; + this.bezierCurveTo(x1, y1, cpx, cpy, x, y); + } + break; + case "Q": + checkEvenArgs(name, args.length, 4); + for (let i = 0; i < args.length; i += 4) { + qcpx = +args[i]; + qcpy = +args[i + 1]; + x = +args[i + 2]; + y = +args[i + 3]; + this.quadraticCurveTo(qcpx, qcpy, x, y); + } + break; + case "q": + checkEvenArgs(name, args.length, 4); + for (let i = 0; i < args.length; i += 4) { + qcpx = +args[i] + x; + qcpy = +args[i + 1] + y; + x += +args[i + 2]; + y += +args[i + 3]; + this.quadraticCurveTo(qcpx, qcpy, x, y); + } + break; + case "T": + checkEvenArgs(name, args.length, 2); + if (qcpx === null || qcpy === null) { + qcpx = x; + qcpy = y; + } + for (let i = 0; i < args.length; i += 2) { + qcpx = 2 * x - qcpx; + qcpy = 2 * y - qcpy; + x = +args[i]; + y = +args[i + 1]; + this.quadraticCurveTo(qcpx, qcpy, x, y); + } + break; + case "t": + checkEvenArgs(name, args.length, 2); + if (qcpx === null || qcpy === null) { + qcpx = x; + qcpy = y; + } + for (let i = 0; i < args.length; i += 2) { + qcpx = 2 * x - qcpx; + qcpy = 2 * y - qcpy; + x += +args[i]; + y += +args[i + 1]; + this.quadraticCurveTo(qcpx, qcpy, x, y); + } + break; + case "A": + case "a": + const relative = name === "a"; + splitArcFlags(args); + checkEvenArgs(name, args.length, 7); + for (let i = 0; i < args.length; i += 7) { + let cx = +args[i + 5]; + let cy = +args[i + 6]; + if (relative) { + cx += x; + cy += y; + } + const bs = modules_default({ + px: x, + py: y, + rx: +args[i], + ry: +args[i + 1], + xAxisRotation: +args[i + 2], + largeArcFlag: assertBinary(+args[i + 3]), + sweepFlag: assertBinary(+args[i + 4]), + cx, + cy + }); + each(bs, (b) => { + this.bezierCurveTo(b.x1, b.y1, b.x2, b.y2, b.x, b.y); + x = b.x; + y = b.y; + }); + } + break; + case "Z": + case "z": + checkArgs(name, args.length, 0); + this.closePath(); + break; + } + } + } catch (e) { + this._operations.length = length; + console.warn("Error when parsing svgPath:\n " + e.message + "\n" + path); + } + } + _runPath(context) { + context.beginPath(); + each(this._operations, (op) => { + op.path(context); + }); + } + _render(status, targetGhostLayer = 0) { + super._render(status); + const layerDirty = status.layer.dirty; + const interactive = this._isInteractive(status); + const ghostOnly = this._ghostOnly(targetGhostLayer); + const drawGhost = this._drawGhost(status, targetGhostLayer); + if (layerDirty || interactive || ghostOnly) { + const context = status.layer.context; + const ghostContext = this._renderer._ghostLayer.context; + if (layerDirty && !ghostOnly) { + context.globalCompositeOperation = this.blendMode; + context.beginPath(); + } + let color2; + if (drawGhost) { + ghostContext.beginPath(); + color2 = this._getColorId(); + } + each(this._operations, (op) => { + if (layerDirty && !ghostOnly) { + op.path(context); + op.colorize(context, void 0); + } + if (drawGhost) { + op.pathGhost(ghostContext); + op.colorizeGhost(ghostContext, color2); + } + }); + } + } + renderDetached(context) { + if (this.visible) { + this._setMatrix(); + context.save(); + const mask = this.mask; + if (mask) { + mask._setMatrix(); + mask._transform(context, 1); + mask._runPath(context); + context.clip(); + } + context.globalAlpha = this.compoundAlpha * this.alpha; + this._transform(context, 1); + if (this.filter) { + context.filter = this.filter; + } + context.globalCompositeOperation = this.blendMode; + context.beginPath(); + each(this._operations, (op) => { + op.path(context); + op.colorize(context, void 0); + }); + context.restore(); + } + } + _addBounds(bounds) { + if (this.visible && this.isMeasured) { + each(this._operations, (op) => { + op.addBounds(bounds); + }); + } + } + }; + var CanvasText = class extends CanvasDisplayObject { + constructor(renderer, text, style) { + super(renderer); + this.resolution = 1; + this.textVisible = true; + this._originalScale = 1; + this.text = text; + this.style = style; + } + invalidateBounds() { + super.invalidateBounds(); + this._textInfo = void 0; + } + invalidateVisibility() { + this.textVisible = true; + this.scale = this._originalScale || 1; + } + _shared(context) { + if (this.style.textAlign) { + context.textAlign = this.style.textAlign; + } + if (this.style.direction) { + context.direction = this.style.direction; + } + if (this.style.textBaseline) { + context.textBaseline = this.style.textBaseline; + } + } + _prerender(status, ignoreGhost = false, ignoreFontWeight = false) { + super._render(status); + const context = status.layer.context; + const ghostContext = this._renderer._ghostLayer.context; + const style = this.style; + let fontStyle = this._getFontStyle(void 0, ignoreFontWeight); + context.font = fontStyle; + if (this._isInteractive(status) && !ignoreGhost) { + ghostContext.font = fontStyle; + } + if (style.fill) { + if (style.fill instanceof Color) { + context.fillStyle = style.fill.toCSS(style.fillOpacity != void 0 ? style.fillOpacity : 1); + } else { + context.fillStyle = style.fill; + } + } + if (style.shadowColor) { + status.layer.context.shadowColor = style.shadowColor.toCSS(style.shadowOpacity || 1); + } + if (style.shadowBlur) { + status.layer.context.shadowBlur = style.shadowBlur; + } + if (style.shadowOffsetX) { + status.layer.context.shadowOffsetX = style.shadowOffsetX; + } + if (style.shadowOffsetY) { + status.layer.context.shadowOffsetY = style.shadowOffsetY; + } + this._shared(context); + if (this._isInteractive(status) && !ignoreGhost) { + ghostContext.fillStyle = this._getColorId(); + this._shared(ghostContext); + } + } + _getFontStyle(style2, ignoreFontWeight = false) { + const style = this.style; + let fontStyle = []; + if (style2 && style2.fontVariant) { + fontStyle.push(style2.fontVariant); + } else if (style.fontVariant) { + fontStyle.push(style.fontVariant); + } + if (!ignoreFontWeight) { + if (style2 && style2.fontWeight) { + fontStyle.push(style2.fontWeight); + } else if (style.fontWeight) { + fontStyle.push(style.fontWeight); + } + } + if (style2 && style2.fontStyle) { + fontStyle.push(style2.fontStyle); + } else if (style.fontStyle) { + fontStyle.push(style.fontStyle); + } + if (style2 && style2.fontSize) { + if (isNumber(style2.fontSize)) { + style2.fontSize = style2.fontSize + "px"; + } + fontStyle.push(style2.fontSize); + } else if (style.fontSize) { + if (isNumber(style.fontSize)) { + style.fontSize = style.fontSize + "px"; + } + fontStyle.push(style.fontSize); + } + if (style2 && style2.fontFamily) { + fontStyle.push(style2.fontFamily); + } else if (style.fontFamily) { + fontStyle.push(style.fontFamily); + } else if (fontStyle.length) { + fontStyle.push("Arial"); + } + return fontStyle.join(" "); + } + _render(status, targetGhostLayer = 0) { + if (!this._textInfo) { + this._measure(status); + } + if (this.textVisible) { + const interactive = this._isInteractive(status); + const context = status.layer.context; + const layerDirty = status.layer.dirty; + const ghostContext = this._renderer._ghostLayer.context; + const ghostOnly = this._ghostOnly(targetGhostLayer); + const drawGhost = this._drawGhost(status, targetGhostLayer); + context.save(); + ghostContext.save(); + this._prerender(status); + each(this._textInfo, (line2, _index) => { + each(line2.textChunks, (chunk, _index2) => { + if (chunk.style) { + context.save(); + ghostContext.save(); + if (!ghostOnly) { + context.font = chunk.style; + } + if (this._isInteractive(status)) { + ghostContext.font = chunk.style; + } + } + if (chunk.fill) { + context.save(); + if (!ghostOnly) { + context.fillStyle = chunk.fill.toCSS(); + } + } + if (layerDirty && !ghostOnly) { + context.fillText(chunk.text, chunk.offsetX, line2.offsetY + chunk.offsetY); + } + if (chunk.textDecoration == "underline" || chunk.textDecoration == "line-through") { + let thickness = 1; + let offset = 1; + let fontSize = chunk.height; + const oversizedBehavior = this.style.oversizedBehavior || ""; + if (["truncate", "wrap", "wrap-no-break"].indexOf(oversizedBehavior) > -1) { + const metrics = this._measureText(chunk.text, context); + chunk.width = metrics.actualBoundingBoxLeft + metrics.actualBoundingBoxRight; + } + let offsetX = chunk.offsetX; + switch (this.style.textAlign) { + case "right": + case "end": + offsetX -= chunk.width; + break; + case "center": + offsetX -= chunk.width / 2; + break; + } + if (chunk.style) { + const format = TextFormatter.getTextStyle(chunk.style); + switch (format.fontWeight) { + case "bolder": + case "bold": + case "700": + case "800": + case "900": + thickness = 2; + break; + } + } + if (fontSize) { + offset = fontSize / 20; + } + let y; + if (chunk.textDecoration == "line-through") { + y = thickness + line2.offsetY + chunk.offsetY - chunk.height / 2; + } else { + y = thickness + offset * 1.5 + line2.offsetY + chunk.offsetY; + } + if (!ghostOnly) { + context.save(); + context.beginPath(); + if (chunk.fill) { + context.strokeStyle = chunk.fill.toCSS(); + } else if (this.style.fill && this.style.fill instanceof Color) { + context.strokeStyle = this.style.fill.toCSS(); + } + context.lineWidth = thickness * offset; + context.moveTo(offsetX, y); + context.lineTo(offsetX + chunk.width, y); + context.stroke(); + context.restore(); + } + } + if (interactive && this.interactive && drawGhost) { + ghostContext.fillText(chunk.text, chunk.offsetX, line2.offsetY + chunk.offsetY); + } + if (chunk.fill) { + context.restore(); + } + if (chunk.style) { + context.restore(); + ghostContext.restore(); + } + }); + }); + context.restore(); + ghostContext.restore(); + } + } + _addBounds(bounds) { + if (this.visible && this.isMeasured) { + const x = this._measure({ + inactive: this.inactive, + layer: this.getLayer() + }); + setPoint(bounds, { x: x.left, y: x.top }); + setPoint(bounds, { x: x.right, y: x.bottom }); + } + } + _ignoreFontWeight() { + return /apple/i.test(navigator.vendor); + } + _measure(status) { + const context = status.layer.context; + const ghostContext = this._renderer._ghostLayer.context; + const rtl = this.style.direction == "rtl"; + this._textInfo = []; + const oversizedBehavior = this.style.oversizedBehavior; + const maxWidth = this.style.maxWidth; + const truncate = isNumber(maxWidth) && oversizedBehavior == "truncate"; + const wrap = isNumber(maxWidth) && (oversizedBehavior == "wrap" || oversizedBehavior == "wrap-no-break"); + context.save(); + ghostContext.save(); + this._prerender(status, true, this._ignoreFontWeight()); + const refText = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 "; + const lines = this.text.toString().replace(/\r/g, "").split(/\n/); + let styleRestored = true; + let minX = 0; + let maxX = 0; + let offsetY = 0; + let currentStyle; + each(lines, (line2, _index) => { + let chunks; + if (line2 == "") { + chunks = [{ + type: "value", + text: "" + }]; + } else { + chunks = TextFormatter.chunk(line2, false, this.style.ignoreFormatting); + } + while (chunks.length > 0) { + let lineInfo = { + offsetY, + ascent: 0, + width: 0, + height: 0, + left: 0, + right: 0, + textChunks: [] + }; + const metrics = this._measureText(refText, context); + const height = metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent; + lineInfo.height = height; + lineInfo.ascent = metrics.actualBoundingBoxAscent; + let currentFormat; + let currentDecoration = this.style.textDecoration; + let currentFill; + let currentChunkWidth; + let skipFurtherText = false; + let firstTextChunk = true; + let leftoverChunks = []; + let currentVerticalAlign; + eachContinue(chunks, (chunk, index) => { + if (chunk.type == "format") { + if (chunk.text == "[/]") { + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + styleRestored = true; + } + currentFill = void 0; + currentStyle = void 0; + currentChunkWidth = void 0; + currentDecoration = this.style.textDecoration; + currentVerticalAlign = void 0; + currentFormat = chunk.text; + } else { + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + } + let format = TextFormatter.getTextStyle(chunk.text); + const fontStyle = this._getFontStyle(format); + context.save(); + ghostContext.save(); + context.font = fontStyle; + currentStyle = fontStyle; + currentFormat = chunk.text; + if (format.textDecoration) { + currentDecoration = format.textDecoration; + } + if (format.fill) { + currentFill = format.fill; + } + if (format.width) { + currentChunkWidth = toNumber(format.width); + } + if (format.verticalAlign) { + currentVerticalAlign = format.verticalAlign; + } + styleRestored = false; + const metrics2 = this._measureText(refText, context); + const height2 = metrics2.actualBoundingBoxAscent + metrics2.actualBoundingBoxDescent; + if (height2 > lineInfo.height) { + lineInfo.height = height2; + } + if (metrics2.actualBoundingBoxAscent > lineInfo.ascent) { + lineInfo.ascent = metrics2.actualBoundingBoxAscent; + } + } + } else if (chunk.type == "value" && !skipFurtherText) { + const metrics2 = this._measureText(chunk.text, context); + let chunkWidth = metrics2.actualBoundingBoxLeft + metrics2.actualBoundingBoxRight; + if (truncate) { + this.truncated = void 0; + let breakWords = firstTextChunk || this.style.breakWords || false; + const ellipsis = this.style.ellipsis || ""; + const ellipsisMetrics = this._measureText(ellipsis, context); + const ellipsisWidth = ellipsisMetrics.actualBoundingBoxLeft + ellipsisMetrics.actualBoundingBoxRight; + if (lineInfo.width + chunkWidth > maxWidth) { + const excessWidth = maxWidth - lineInfo.width - ellipsisWidth; + chunk.text = this._truncateText(context, chunk.text, excessWidth, breakWords); + chunk.text += ellipsis; + skipFurtherText = true; + this.truncated = true; + } + } else if (wrap) { + if (lineInfo.width + chunkWidth > maxWidth) { + const excessWidth = maxWidth - lineInfo.width; + const tmpText = this._truncateText(context, chunk.text, excessWidth, false, firstTextChunk && this.style.oversizedBehavior != "wrap-no-break"); + if (tmpText == "") { + this.textVisible = true; + return false; + } + leftoverChunks = chunks.slice(index + 1); + if (trim(tmpText) != trim(chunk.text)) { + leftoverChunks.unshift({ + type: "value", + text: chunk.text.substr(tmpText.length) + }); + if (currentFormat) { + leftoverChunks.unshift({ + type: "format", + text: currentFormat + }); + } + } + chunk.text = trim(tmpText); + chunks = []; + skipFurtherText = true; + } + } + let leftBoundMod = 1; + let rightBoundMod = 1; + if (currentStyle && currentChunkWidth && currentChunkWidth > chunkWidth) { + const boundsMod = chunkWidth / currentChunkWidth; + switch (this.style.textAlign) { + case "right": + case "end": + leftBoundMod = boundsMod; + break; + case "center": + leftBoundMod = boundsMod; + rightBoundMod = boundsMod; + break; + default: + rightBoundMod = boundsMod; + } + chunkWidth = currentChunkWidth; + } + const chunkHeight = metrics2.actualBoundingBoxAscent + metrics2.actualBoundingBoxDescent; + if (chunkHeight > lineInfo.height) { + lineInfo.height = chunkHeight; + } + if (metrics2.actualBoundingBoxAscent > lineInfo.ascent) { + lineInfo.ascent = metrics2.actualBoundingBoxAscent; + } + lineInfo.width += chunkWidth; + lineInfo.left += metrics2.actualBoundingBoxLeft / leftBoundMod; + lineInfo.right += metrics2.actualBoundingBoxRight / rightBoundMod; + lineInfo.textChunks.push({ + style: currentStyle, + fill: currentFill, + text: chunk.text, + width: chunkWidth, + height: chunkHeight, + left: metrics2.actualBoundingBoxLeft, + right: metrics2.actualBoundingBoxRight, + ascent: metrics2.actualBoundingBoxAscent, + offsetX: 0, + offsetY: 0, + textDecoration: currentDecoration, + verticalAlign: currentVerticalAlign + }); + firstTextChunk = false; + } + if (leftoverChunks) { + } + return true; + }); + if (this.style.lineHeight instanceof Percent) { + lineInfo.height *= this.style.lineHeight.value; + lineInfo.ascent *= this.style.lineHeight.value; + } else { + lineInfo.height *= this.style.lineHeight || 1.2; + lineInfo.ascent *= this.style.lineHeight || 1.2; + } + if (minX < lineInfo.left) { + minX = lineInfo.left; + } + if (maxX < lineInfo.right) { + maxX = lineInfo.right; + } + this._textInfo.push(lineInfo); + offsetY += lineInfo.height; + chunks = leftoverChunks || []; + } + }); + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + } + each(this._textInfo, (lineInfo, _index) => { + let currentChunkOffset = 0; + each(lineInfo.textChunks, (chunk) => { + chunk.offsetX = currentChunkOffset + chunk.left - lineInfo.left; + chunk.offsetY += lineInfo.height - lineInfo.height * (this.style.baselineRatio || 0.19); + currentChunkOffset += chunk.width * (rtl ? -1 : 1); + if (chunk.verticalAlign) { + switch (chunk.verticalAlign) { + case "super": + chunk.offsetY -= lineInfo.height / 2 - chunk.height / 2; + break; + case "sub": + chunk.offsetY += chunk.height / 2; + break; + } + } + }); + }); + const bounds = { + left: rtl ? -maxX : -minX, + top: 0, + right: rtl ? minX : maxX, + bottom: offsetY + }; + if (oversizedBehavior !== "none") { + const ratio = this._fitRatio(bounds); + if (ratio < 1) { + if (oversizedBehavior == "fit") { + if (isNumber(this.style.minScale) && ratio < this.style.minScale) { + this.textVisible = false; + bounds.left = 0; + bounds.top = 0; + bounds.right = 0; + bounds.bottom = 0; + } else { + if (!this._originalScale) { + this._originalScale = this.scale; + } + this.scale = ratio; + this.textVisible = true; + } + } else if (oversizedBehavior == "hide") { + this.textVisible = false; + bounds.left = 0; + bounds.top = 0; + bounds.right = 0; + bounds.bottom = 0; + } else { + switch (this.style.textAlign) { + case "right": + case "end": + bounds.left = rtl ? maxWidth : -maxWidth; + bounds.right = 0; + break; + case "center": + bounds.left = -maxWidth / 2; + bounds.right = maxWidth / 2; + break; + default: + bounds.left = 0; + bounds.right = rtl ? -maxWidth : maxWidth; + } + this.scale = this._originalScale || 1; + this._originalScale = void 0; + this.textVisible = true; + } + } else { + this.scale = this._originalScale || 1; + this._originalScale = void 0; + this.textVisible = true; + } + } + context.restore(); + ghostContext.restore(); + return bounds; + } + _fitRatio(bounds) { + const maxW = this.style.maxWidth; + const maxH = this.style.maxHeight; + if (!isNumber(maxW) && !isNumber(maxH)) { + return 1; + } + const w = bounds.right - bounds.left; + const h = bounds.bottom - bounds.top; + return Math.min(maxW / w || 1, maxH / h || 1); + } + _truncateText(context, text, maxWidth, breakWords = false, fallbackBreakWords = true) { + let width; + do { + if (breakWords) { + text = text.slice(0, -1); + } else { + let tmp = text.replace(/[^,;:!?\\\/\s​]+[,;:!?\\\/\s​]*$/g, ""); + if ((tmp == "" || tmp === text) && fallbackBreakWords) { + breakWords = true; + } else if (tmp == "") { + return text; + } else { + text = tmp; + } + } + const metrics = this._measureText(text, context); + width = metrics.actualBoundingBoxLeft + metrics.actualBoundingBoxRight; + } while (width > maxWidth && text != ""); + return text; + } + _measureText(text, context) { + let metrics = context.measureText(text); + let fakeMetrics = {}; + if (metrics.actualBoundingBoxAscent == null) { + const div = document.createElement("div"); + div.innerText = text; + div.style.visibility = "hidden"; + div.style.position = "absolute"; + div.style.top = "-1000000px;"; + div.style.fontFamily = this.style.fontFamily || ""; + div.style.fontSize = this.style.fontSize + ""; + document.body.appendChild(div); + const bbox = div.getBoundingClientRect(); + document.body.removeChild(div); + const h = bbox.height; + const w2 = metrics.width; + let left = 0; + let right = w2; + fakeMetrics = { + actualBoundingBoxAscent: h, + actualBoundingBoxDescent: 0, + actualBoundingBoxLeft: left, + actualBoundingBoxRight: right, + fontBoundingBoxAscent: h, + fontBoundingBoxDescent: 0, + width: w2 + }; + } else { + fakeMetrics = { + actualBoundingBoxAscent: metrics.actualBoundingBoxAscent, + actualBoundingBoxDescent: metrics.actualBoundingBoxDescent, + actualBoundingBoxLeft: metrics.actualBoundingBoxLeft, + actualBoundingBoxRight: metrics.actualBoundingBoxRight, + fontBoundingBoxAscent: metrics.actualBoundingBoxAscent, + fontBoundingBoxDescent: metrics.actualBoundingBoxDescent, + width: metrics.width + }; + } + const w = metrics.width; + switch (this.style.textAlign) { + case "right": + case "end": + fakeMetrics.actualBoundingBoxLeft = w; + fakeMetrics.actualBoundingBoxRight = 0; + break; + case "center": + fakeMetrics.actualBoundingBoxLeft = w / 2; + fakeMetrics.actualBoundingBoxRight = w / 2; + break; + default: + fakeMetrics.actualBoundingBoxLeft = 0; + fakeMetrics.actualBoundingBoxRight = w; + } + return fakeMetrics; + } + }; + var CanvasTextStyle = class { + constructor() { + this.lineHeight = percent(120); + this.baselineRatio = 0.19; + this.oversizedBehavior = "none"; + this.breakWords = false; + this.ellipsis = "\u2026"; + this.ignoreFormatting = false; + } + }; + var CanvasRadialText = class extends CanvasText { + constructor() { + super(...arguments); + this.textType = "circular"; + this.inside = false; + this.orientation = "auto"; + this.kerning = 0; + this._textReversed = false; + } + _render(status, targetGhostLayer = 0) { + switch (this.textType) { + case "circular": + this._renderCircular(status, targetGhostLayer); + break; + default: + super._render(status, targetGhostLayer); + break; + } + } + _renderCircular(status, targetGhostLayer = 0) { + if (this.textVisible) { + this._prerender(status); + const interactive = this._isInteractive(status); + const context = status.layer.context; + const layerDirty = status.layer.dirty; + const ghostContext = this._renderer._ghostLayer.context; + context.save(); + if (interactive) { + ghostContext.save(); + } + if (!this._textInfo) { + this._measure(status); + } + let radius = this.radius || 0; + let startAngle = this.startAngle || 0; + let deltaAngle = 0; + let orientation = this.orientation; + let inward = orientation == "auto" ? "auto" : orientation == "inward"; + const inside = this.inside; + const align = this.style.textAlign || "left"; + const kerning = this.kerning || 0; + let clockwise = align == "left" ? 1 : -1; + const shouldReverse = !this._textReversed; + const ghostOnly = this._ghostOnly(targetGhostLayer); + const drawGhost = this._drawGhost(status, targetGhostLayer); + if (inward == "auto") { + let maxAngle = 0; + let midAngle = 0; + each(this._textInfo, (line2, _index) => { + const deltaAngle2 = startAngle + line2.width / (radius - line2.height) / 2 * -clockwise; + if (deltaAngle2 > maxAngle) { + maxAngle = deltaAngle2; + } + }); + if (align == "left") { + midAngle = (maxAngle + deltaAngle / 2) * DEGREES; + } else if (align == "right") { + midAngle = (maxAngle - deltaAngle / 2) * DEGREES; + } else { + midAngle = startAngle * DEGREES; + } + midAngle = normalizeAngle(midAngle); + inward = midAngle >= 270 || midAngle <= 90; + } + if (inward == true && shouldReverse) { + this._textInfo.reverse(); + this._textReversed = true; + } + each(this._textInfo, (line2, _index) => { + const textHeight = line2.height; + if (!inside) { + radius += textHeight; + } + if ((clockwise == -1 && inward || clockwise == 1 && !inward) && shouldReverse) { + line2.textChunks.reverse(); + } + let lineStartAngle = startAngle; + deltaAngle = 0; + if (align == "center") { + lineStartAngle += line2.width / (radius - textHeight) / 2 * -clockwise; + deltaAngle = lineStartAngle - startAngle; + } + lineStartAngle += Math.PI * (inward ? 0 : 1); + context.save(); + if (interactive) { + ghostContext.save(); + } + if (!ghostOnly) { + context.rotate(lineStartAngle); + } + if (interactive) { + ghostContext.rotate(lineStartAngle); + } + let angleShift = 0; + each(line2.textChunks, (chunk, _index2) => { + const char = chunk.text; + const charWidth = chunk.width; + angleShift = charWidth / 2 / (radius - textHeight) * clockwise; + if (!ghostOnly) { + context.rotate(angleShift); + } + if (interactive) { + ghostContext.rotate(angleShift); + } + if (chunk.style) { + context.save(); + ghostContext.save(); + if (!ghostOnly) { + context.font = chunk.style; + } + if (interactive) { + ghostContext.font = chunk.style; + } + } + if (chunk.fill) { + context.save(); + if (!ghostOnly) { + context.fillStyle = chunk.fill.toCSS(); + } + } + if (!ghostOnly) { + context.textBaseline = "middle"; + context.textAlign = "center"; + } + if (interactive) { + ghostContext.textBaseline = "middle"; + ghostContext.textAlign = "center"; + } + if (layerDirty && !ghostOnly) { + context.fillText(char, 0, (inward ? 1 : -1) * (0 - radius + textHeight / 2)); + } + if (interactive && drawGhost) { + ghostContext.fillText(char, 0, (inward ? 1 : -1) * (0 - radius + textHeight / 2)); + } + if (chunk.fill) { + context.restore(); + } + if (chunk.style) { + context.restore(); + ghostContext.restore(); + } + angleShift = (charWidth / 2 + kerning) / (radius - textHeight) * clockwise; + if (!ghostOnly) { + context.rotate(angleShift); + } + if (interactive) { + ghostContext.rotate(angleShift); + } + }); + context.restore(); + if (interactive) { + ghostContext.restore(); + } + if (inside) { + radius -= textHeight; + } + }); + context.restore(); + if (interactive) { + ghostContext.restore(); + } + } + } + _measure(status) { + switch (this.textType) { + case "circular": + return this._measureCircular(status); + default: + return super._measure(status); + } + } + _measureCircular(status) { + const context = status.layer.context; + const ghostContext = this._renderer._ghostLayer.context; + const rtl = this.style.direction == "rtl"; + const oversizedBehavior = this.style.oversizedBehavior; + const maxWidth = this.style.maxWidth; + const truncate = isNumber(maxWidth) && oversizedBehavior == "truncate"; + const ellipsis = this.style.ellipsis || ""; + let ellipsisMetrics; + this.textVisible = true; + this._textInfo = []; + this._textReversed = false; + context.save(); + ghostContext.save(); + this._prerender(status, true); + const lines = this.text.toString().replace(/\r/g, "").split(/\n/); + let styleRestored = true; + let totalWidth = 0; + let offsetY = 0; + each(lines, (line2, _index) => { + let chunks = TextFormatter.chunk(line2, false, this.style.ignoreFormatting); + let lineInfo = { + offsetY, + ascent: 0, + width: 0, + height: 0, + left: 0, + right: 0, + textChunks: [] + }; + let currentStyle; + let currentFill; + let currentChunkWidth; + each(chunks, (chunk, _index2) => { + if (chunk.type == "format") { + if (chunk.text == "[/]") { + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + styleRestored = true; + } + currentFill = void 0; + currentStyle = void 0; + currentChunkWidth = void 0; + } else { + let format = TextFormatter.getTextStyle(chunk.text); + const fontStyle = this._getFontStyle(format); + context.save(); + ghostContext.save(); + context.font = fontStyle; + currentStyle = fontStyle; + if (format.fill) { + currentFill = format.fill; + } + if (format.width) { + currentChunkWidth = toNumber(format.width); + } + styleRestored = false; + } + if (truncate) { + ellipsisMetrics = this._measureText(ellipsis, context); + } + } else if (chunk.type == "value") { + let chars = chunk.text.match(/./ug) || []; + if (rtl) { + chars = splitString(chunk.text); + chars.reverse(); + } + for (let i = 0; i < chars.length; i++) { + const char = chars[i]; + const metrics = this._measureText(char, context); + let chunkWidth = metrics.width; + if (currentStyle && currentChunkWidth && currentChunkWidth > chunkWidth) { + chunkWidth = currentChunkWidth; + } + const chunkHeight = metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent; + if (chunkHeight > lineInfo.height) { + lineInfo.height = chunkHeight; + } + if (metrics.actualBoundingBoxAscent > lineInfo.ascent) { + lineInfo.ascent = metrics.actualBoundingBoxAscent; + } + totalWidth += chunkWidth; + if (truncate) { + if (!ellipsisMetrics) { + ellipsisMetrics = this._measureText(ellipsis, context); + } + const ellipsisWidth = ellipsisMetrics.actualBoundingBoxLeft + ellipsisMetrics.actualBoundingBoxRight; + if (totalWidth + ellipsisWidth > maxWidth) { + if (lineInfo.textChunks.length == 1) { + this.textVisible = false; + } else { + lineInfo.width += ellipsisWidth; + lineInfo.left += ellipsisMetrics.actualBoundingBoxLeft; + lineInfo.right += ellipsisMetrics.actualBoundingBoxRight; + lineInfo.textChunks.push({ + style: currentStyle, + fill: currentFill, + text: ellipsis, + width: ellipsisWidth, + height: chunkHeight + ellipsisMetrics.actualBoundingBoxDescent, + left: ellipsisMetrics.actualBoundingBoxLeft, + right: ellipsisMetrics.actualBoundingBoxRight, + ascent: ellipsisMetrics.actualBoundingBoxAscent, + offsetX: 0, + offsetY: chunkHeight, + textDecoration: void 0 + }); + } + break; + } + } + lineInfo.width += chunkWidth; + lineInfo.left += metrics.actualBoundingBoxLeft; + lineInfo.right += metrics.actualBoundingBoxRight; + lineInfo.textChunks.push({ + style: currentStyle, + fill: currentFill, + text: char, + width: chunkWidth, + height: chunkHeight + metrics.actualBoundingBoxDescent, + left: metrics.actualBoundingBoxLeft, + right: metrics.actualBoundingBoxRight, + ascent: metrics.actualBoundingBoxAscent, + offsetX: 0, + offsetY: chunkHeight, + textDecoration: void 0 + }); + if (rtl) { + } + } + } + }); + if (this.style.lineHeight instanceof Percent) { + lineInfo.height *= this.style.lineHeight.value; + } else { + lineInfo.height *= this.style.lineHeight || 1.2; + } + this._textInfo.push(lineInfo); + offsetY += lineInfo.height; + }); + if (!styleRestored) { + context.restore(); + ghostContext.restore(); + } + if (oversizedBehavior == "hide" && totalWidth > maxWidth) { + this.textVisible = false; + } + each(this._textInfo, (lineInfo) => { + each(lineInfo.textChunks, (chunk) => { + chunk.offsetY += Math.round((lineInfo.height - chunk.height + (lineInfo.ascent - chunk.ascent)) / 2); + }); + }); + context.restore(); + ghostContext.restore(); + return { + left: 0, + top: 0, + right: 0, + bottom: 0 + }; + } + }; + var CanvasImage = class extends CanvasDisplayObject { + constructor(renderer, image) { + super(renderer); + this.image = image; + } + _dispose() { + super._dispose(); + if (this._imageMask) { + clearCanvas(this._imageMask); + } + } + getLocalBounds() { + if (!this._localBounds) { + let w = 0; + let h = 0; + if (this.width) { + w = this.width; + } + if (this.height) { + h = this.height; + } + this._localBounds = { + left: 0, + top: 0, + right: w, + bottom: h + }; + this._addBounds(this._localBounds); + } + return this._localBounds; + } + _render(status, targetGhostLayer = 0) { + super._render(status); + if (this.image) { + if (this.tainted === void 0) { + this.tainted = isTainted(this.image); + status.layer.tainted = true; + } + if (this.tainted && this._renderer._omitTainted) { + return; + } + const ghostOnly = this._ghostOnly(targetGhostLayer); + const drawGhost = this._drawGhost(status, targetGhostLayer); + if (status.layer.dirty && !ghostOnly) { + if (this.shadowColor) { + status.layer.context.shadowColor = this.shadowColor.toCSS(this.shadowOpacity || 1); + } + if (this.shadowBlur) { + status.layer.context.shadowBlur = this.shadowBlur; + } + if (this.shadowOffsetX) { + status.layer.context.shadowOffsetX = this.shadowOffsetX; + } + if (this.shadowOffsetY) { + status.layer.context.shadowOffsetY = this.shadowOffsetY; + } + const width = this.width || this.image.naturalWidth; + const height = this.height || this.image.naturalHeight; + status.layer.context.drawImage(this.image, 0, 0, width, height); + } + if (this.interactive && this._isInteractive(status) && drawGhost) { + const mask = this._getMask(this.image); + this._renderer._ghostLayer.context.drawImage(mask, 0, 0); + } + } + } + clear() { + super.clear(); + this.image = void 0; + this._imageMask = void 0; + } + _getMask(image) { + if (this._imageMask === void 0) { + const width = this.width || image.naturalWidth; + const height = this.height || image.naturalHeight; + const canvas = document.createElement("canvas"); + canvas.width = width; + canvas.height = height; + const context = canvas.getContext("2d"); + context.imageSmoothingEnabled = false; + context.fillStyle = this._getColorId(); + context.fillRect(0, 0, width, height); + if (!isTainted(image)) { + context.globalCompositeOperation = "destination-in"; + context.drawImage(image, 0, 0, width, height); + } + this._imageMask = canvas; + } + return this._imageMask; + } + }; + var CanvasRendererEvent = class { + constructor(event, originalPoint, point, bbox) { + this.event = event; + this.originalPoint = originalPoint; + this.point = point; + this.bbox = bbox; + this.simulated = false; + this.native = true; + if (supports("touchevents") && event instanceof Touch) { + this.id = event.identifier; + } else { + this.id = null; + } + } + }; + var CanvasRenderer = class extends ArrayDisposer { + constructor(resolution) { + super(); + this.view = document.createElement("div"); + this._layerDom = document.createElement("div"); + this.layers = []; + this._dirtyLayers = []; + this.defaultLayer = this.getLayer(0); + this._ghostLayer = new GhostLayer(); + this._deferredGhostLayers = []; + this._patternCanvas = document.createElement("canvas"); + this._patternContext = this._patternCanvas.getContext("2d"); + this._realWidth = 0; + this._realHeight = 0; + this._calculatedWidth = 0; + this._calculatedHeight = 0; + this.interactionsEnabled = true; + this._listeners = {}; + this._events = {}; + this._colorId = 0; + this._colorMap = {}; + this._forceInteractive = 0; + this._omitTainted = false; + this._hovering = /* @__PURE__ */ new Set(); + this._dragging = []; + this._mousedown = []; + this.tapToActivate = false; + this.tapToActivateTimeout = 3e3; + this._touchActive = false; + if (resolution == null) { + this.resolution = window.devicePixelRatio; + } else { + this.resolution = resolution; + } + this.view.style.position = "absolute"; + this.view.setAttribute("aria-hidden", "true"); + this.view.appendChild(this._layerDom); + this._disposers.push(new Disposer(() => { + each2(this._events, (_key, events) => { + events.disposer.dispose(); + }); + each(this.layers, (layer) => { + clearCanvas(layer.view); + if (layer.exportableView) { + clearCanvas(layer.exportableView); + } + }); + clearCanvas(this._ghostLayer.view); + clearCanvas(this._patternCanvas); + })); + this._disposers.push(onZoom(() => { + if (resolution == null) { + this.resolution = window.devicePixelRatio; + } + })); + if (supports("touchevents")) { + const listener = (ev) => { + if (this._dragging.length !== 0) { + eachContinue(this._dragging, (item) => { + if (item.value.shouldCancelTouch()) { + ev.preventDefault(); + return false; + } + return true; + }); + } + if (this._touchActiveTimeout) { + this._delayTouchDeactivate(); + } + }; + this._disposers.push(addEventListener(window, "touchstart", listener, { passive: false })); + this._disposers.push(addEventListener(this.view, "touchstart", listener, { passive: false })); + this._disposers.push(addEventListener(this.view, "touchmove", () => { + if (this._touchActiveTimeout) { + this._delayTouchDeactivate(); + } + }, { passive: true })); + this._disposers.push(addEventListener(window, "click", (_ev) => { + this._touchActive = false; + }, { passive: true })); + this._disposers.push(addEventListener(this.view, "click", (_ev) => { + window.setTimeout(() => { + this._touchActive = true; + this._delayTouchDeactivate(); + }, 100); + }, { passive: true })); + } + if (supports("wheelevents")) { + this._disposers.push(addEventListener(this.view, "wheel", (ev) => { + let prevent = false; + this._hovering.forEach((obj) => { + if (obj.wheelable) { + prevent = true; + return false; + } + }); + if (prevent) { + ev.preventDefault(); + } + }, { passive: false })); + } + } + /*protected _mouseMoveThrottler: Throttler = new Throttler(() => { + this._dispatchGlobalMousemove(this._lastPointerMoveEvent.event, this._lastPointerMoveEvent.native); + }); + */ + resetImageArray() { + this._ghostLayer.imageArray = void 0; + } + _delayTouchDeactivate() { + if (this._touchActiveTimeout) { + clearTimeout(this._touchActiveTimeout); + } + if (this.tapToActivateTimeout > 0) { + this._touchActiveTimeout = window.setTimeout(() => { + this._touchActive = false; + }, this.tapToActivateTimeout); + } + } + get debugGhostView() { + return !!this._ghostLayer.view.parentNode; + } + set debugGhostView(value) { + if (value) { + if (!this._ghostLayer.view.parentNode) { + this.view.appendChild(this._ghostLayer.view); + } + } else { + if (this._ghostLayer.view.parentNode) { + this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view); + } + } + } + createLinearGradient(x1, y1, x2, y2) { + return this.defaultLayer.context.createLinearGradient(x1, y1, x2, y2); + } + createRadialGradient(x1, y1, radius1, x2, y2, radius2) { + return this.defaultLayer.context.createRadialGradient(x1, y1, radius1, x2, y2, radius2); + } + createPattern(graphics, background, repetition, width, height) { + this._patternCanvas.width = width; + this._patternCanvas.height = height; + this._patternContext.clearRect(0, 0, width, height); + background.renderDetached(this._patternContext); + graphics.renderDetached(this._patternContext); + return this._patternContext.createPattern(this._patternCanvas, repetition); + } + makeContainer() { + return new CanvasContainer(this); + } + makeGraphics() { + return new CanvasGraphics(this); + } + makeText(text, style) { + return new CanvasText(this, text, style); + } + makeTextStyle() { + return new CanvasTextStyle(); + } + makeRadialText(text, style) { + return new CanvasRadialText(this, text, style); + } + makePicture(image) { + return new CanvasImage(this, image); + } + resizeLayer(layer) { + layer.resize(this._calculatedWidth, this._calculatedHeight, this._calculatedWidth, this._calculatedHeight, this.resolution); + } + resizeGhost() { + this._ghostLayer.resize(this._calculatedWidth, this._calculatedHeight, this._calculatedWidth, this._calculatedHeight, this.resolution); + } + resize(realWidth, realHeight, calculatedWidth, calculatedHeight) { + this._realWidth = realWidth; + this._realHeight = realHeight; + this._calculatedWidth = calculatedWidth; + this._calculatedHeight = calculatedHeight; + each(this.layers, (layer) => { + if (layer) { + layer.dirty = true; + this.resizeLayer(layer); + } + }); + this.resizeGhost(); + this.view.style.width = calculatedWidth + "px"; + this.view.style.height = calculatedHeight + "px"; + } + createDetachedLayer(willReadFrequently = false) { + const view = document.createElement("canvas"); + const context = view.getContext("2d", { willReadFrequently }); + const layer = new CanvasLayer(view, context); + view.style.position = "absolute"; + view.style.top = "0px"; + view.style.left = "0px"; + return layer; + } + getLayerByOrder(order) { + const layers = this.layers; + const length = layers.length; + for (let i = 0; i < length; i++) { + const layer = layers[i]; + if (layer.order == order) { + return layer; + } + } + } + getLayer(order, visible = true) { + let existingLayer = this.getLayerByOrder(order); + if (existingLayer) { + return existingLayer; + } + const layer = this.createDetachedLayer(order == 99); + layer.order = order; + layer.visible = visible; + layer.view.className = "am5-layer-" + order; + if (layer.visible) { + this.resizeLayer(layer); + } + const layers = this.layers; + layers.push(layer); + layers.sort((a, b) => { + if (a.order > b.order) { + return 1; + } else if (a.order < b.order) { + return -1; + } else { + return 0; + } + }); + const length = layers.length; + const layerIndex = indexOf(layers, layer); + let next; + for (let i = layerIndex + 1; i < length; i++) { + if (layers[i].visible) { + next = layers[i]; + break; + } + } + if (layer.visible) { + if (next === void 0) { + this._layerDom.appendChild(layer.view); + } else { + this._layerDom.insertBefore(layer.view, next.view); + } + } + return layer; + } + render(root2) { + this._dirtyLayers.length = 0; + this._deferredGhostLayers = []; + each(this.layers, (layer) => { + if (layer) { + if (layer.dirty && layer.visible) { + this._dirtyLayers.push(layer); + layer.clear(); + } + } + }); + this._ghostLayer.clear(); + root2.render({ + inactive: null, + layer: this.defaultLayer + }); + const deferredGhostLayers = this._deferredGhostLayers; + if (deferredGhostLayers.length) { + deferredGhostLayers.sort((a, b) => a - b); + each(deferredGhostLayers, (layerx) => { + root2.render({ + inactive: null, + layer: this.defaultLayer + }, layerx); + }); + } + this._ghostLayer.context.restore(); + each(this.layers, (layer) => { + if (layer) { + const context = layer.context; + context.beginPath(); + context.moveTo(0, 0); + context.stroke(); + } + }); + each(this._dirtyLayers, (layer) => { + layer.context.restore(); + layer.dirty = false; + }); + if (this._hovering.size && this._lastPointerMoveEvent) { + const { events, target, native } = this._lastPointerMoveEvent; + each(events, (event) => { + this._dispatchGlobalMousemove(event, target, native); + }); + } + } + paintId(obj) { + const id = distributeId(++this._colorId); + const color2 = Color.fromHex(id).toCSS(); + this._colorMap[color2] = obj; + return color2; + } + _removeObject(obj) { + if (obj._colorId !== void 0) { + delete this._colorMap[obj._colorId]; + } + } + // protected _identifyObjectByColor(colorId: number): CanvasDisplayObject | undefined { + // return this._colorMap[colorId]; + // } + _adjustBoundingBox(bbox) { + const margin = this._ghostLayer.margin; + return new DOMRect(-margin.left, -margin.top, bbox.width + margin.left + margin.right, bbox.height + margin.top + margin.bottom); + } + getEvent(originalEvent, adjustPoint = true) { + const bbox = this.view.getBoundingClientRect(); + const x = originalEvent.clientX || 0; + const y = originalEvent.clientY || 0; + const widthScale = this._calculatedWidth / this._realWidth; + const heightScale = this._calculatedHeight / this._realHeight; + const originalPoint = { + x: x - bbox.left, + y: y - bbox.top + }; + const point = { + x: (x - (adjustPoint ? bbox.left : 0)) * widthScale, + y: (y - (adjustPoint ? bbox.top : 0)) * heightScale + }; + return new CanvasRendererEvent(originalEvent, originalPoint, point, this._adjustBoundingBox(bbox)); + } + _getHitTarget(point, bbox, target) { + if (bbox.width === 0 || bbox.height === 0 || point.x < bbox.left || point.x > bbox.right || point.y < bbox.top || point.y > bbox.bottom) { + return; + } + if (!target || !this._layerDom.contains(target)) { + return; + } + const pixel = this._ghostLayer.getImageData(point, bbox); + if (pixel.data[0] === 0 && pixel.data[1] === 0 && pixel.data[2] === 0) { + return false; + } + const colorId = Color.fromRGB(pixel.data[0], pixel.data[1], pixel.data[2]).toCSS(); + const hit = this._colorMap[colorId]; + return hit; + } + getObjectAtPoint(point) { + const data2 = this._ghostLayer.getImageArray(point); + if (data2[0] === 0 && data2[1] === 0 && data2[2] === 0) { + return void 0; + } + const colorId = Color.fromRGB(data2[0], data2[1], data2[2]).toCSS(); + const hit = this._colorMap[colorId]; + return hit; + } + _withEvents(key, f) { + const events = this._events[key]; + if (events !== void 0) { + events.dispatching = true; + try { + f(events); + } finally { + events.dispatching = false; + if (events.cleanup) { + events.cleanup = false; + keepIf(events.callbacks, (callback) => { + return !callback.disposed; + }); + if (events.callbacks.length === 0) { + events.disposer.dispose(); + delete this._events[key]; + } + } + } + } + } + _dispatchEventAll(key, event) { + if (!this.interactionsEnabled) { + return; + } + this._withEvents(key, (events) => { + each(events.callbacks, (callback) => { + if (!callback.disposed) { + callback.callback.call(callback.context, event); + } + }); + }); + } + _dispatchEvent(key, target, event) { + if (!this.interactionsEnabled) { + return false; + } + let dispatched = false; + this._withEvents(key, (events) => { + each(events.callbacks, (callback) => { + if (!callback.disposed && callback.object === target) { + callback.callback.call(callback.context, event); + dispatched = true; + } + }); + }); + return dispatched; + } + _dispatchMousedown(originalEvent, originalTarget) { + const button = originalEvent.button; + if (button != 0 && button != 2 && button != 1 && button !== void 0) { + return; + } + const event = this.getEvent(originalEvent); + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + if (target) { + const id = event.id; + let dragged = false; + eachTargets(target, (obj) => { + const info = { id, value: obj }; + this._mousedown.push(info); + if (!dragged && this._dispatchEvent("pointerdown", obj, event)) { + dragged = true; + const has = this._dragging.some((x) => { + return x.value === obj && x.id === id; + }); + if (!has) { + this._dragging.push(info); + } + } + return true; + }); + } + } + _dispatchGlobalMousemove(originalEvent, originalTarget, native) { + const event = this.getEvent(originalEvent); + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + event.native = native; + if (target) { + this._hovering.forEach((obj) => { + if (!obj.contains(target)) { + this._hovering.delete(obj); + if (obj.cursorOverStyle) { + setStyle(document.body, "cursor", obj._replacedCursorStyle); + } + this._dispatchEvent("pointerout", obj, event); + } + }); + if (event.native) { + eachTargets(target, (obj) => { + if (!this._hovering.has(obj)) { + this._hovering.add(obj); + if (obj.cursorOverStyle) { + obj._replacedCursorStyle = getStyle(document.body, "cursor"); + setStyle(document.body, "cursor", obj.cursorOverStyle); + } + this._dispatchEvent("pointerover", obj, event); + } + return true; + }); + } + } else { + this._hovering.forEach((obj) => { + if (obj.cursorOverStyle) { + setStyle(document.body, "cursor", obj._replacedCursorStyle); + } + this._dispatchEvent("pointerout", obj, event); + }); + this._hovering.clear(); + } + this._dispatchEventAll("globalpointermove", event); + } + removeHovering(graphics) { + this._hovering.delete(graphics); + if (graphics.cursorOverStyle) { + setStyle(document.body, "cursor", graphics._replacedCursorStyle); + } + } + _dispatchGlobalMouseup(originalEvent, native) { + const event = this.getEvent(originalEvent); + event.native = native; + this._dispatchEventAll("globalpointerup", event); + } + _dispatchDragMove(originalEvent) { + if (this._dragging.length !== 0) { + const event = this.getEvent(originalEvent); + const id = event.id; + this._dragging.forEach((obj) => { + if (obj.id === id) { + this._dispatchEvent("pointermove", obj.value, event); + } + }); + } + } + _dispatchDragEnd(originalEvent, originalTarget) { + const button = originalEvent.button; + let clickevent; + if (button == 0 || button === void 0) { + clickevent = "click"; + } else if (button == 2) { + clickevent = "rightclick"; + } else if (button == 1) { + clickevent = "middleclick"; + } else { + return; + } + const event = this.getEvent(originalEvent); + const id = event.id; + if (this._mousedown.length !== 0) { + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + if (target) { + this._mousedown.forEach((obj) => { + if (obj.id === id && obj.value.contains(target)) { + this._dispatchEvent(clickevent, obj.value, event); + } + }); + } + this._mousedown.length = 0; + } + if (this._dragging.length !== 0) { + this._dragging.forEach((obj) => { + if (obj.id === id) { + this._dispatchEvent("pointerup", obj.value, event); + } + }); + this._dragging.length = 0; + } + } + _dispatchDoubleClick(originalEvent, originalTarget) { + const event = this.getEvent(originalEvent); + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + if (target) { + eachTargets(target, (obj) => { + if (this._dispatchEvent("dblclick", obj, event)) { + return false; + } else { + return true; + } + }); + } + } + _dispatchWheel(originalEvent, originalTarget) { + const event = this.getEvent(originalEvent); + const target = this._getHitTarget(event.originalPoint, event.bbox, originalTarget); + if (target) { + eachTargets(target, (obj) => { + if (this._dispatchEvent("wheel", obj, event)) { + return false; + } else { + return true; + } + }); + } + } + _makeSharedEvent(key, f) { + if (this._listeners[key] === void 0) { + const listener = f(); + this._listeners[key] = new CounterDisposer(() => { + delete this._listeners[key]; + listener.dispose(); + }); + } + return this._listeners[key].increment(); + } + _onPointerEvent(name, f) { + let native = false; + let timer = null; + function clear() { + timer = null; + native = false; + } + return new MultiDisposer([ + new Disposer(() => { + if (timer !== null) { + clearTimeout(timer); + } + clear(); + }), + addEventListener(this.view, getRendererEvent(name), (_) => { + native = true; + if (timer !== null) { + clearTimeout(timer); + } + timer = window.setTimeout(clear, 0); + }), + onPointerEvent(window, name, (ev, target) => { + if (timer !== null) { + clearTimeout(timer); + timer = null; + } + f(ev, target, native); + native = false; + }) + ]); + } + // This ensures that only a single DOM event is added (e.g. only a single mousemove event listener) + _initEvent(key) { + switch (key) { + case "globalpointermove": + case "pointerover": + case "pointerout": + return this._makeSharedEvent("pointermove", () => { + const listener = (events, target, native) => { + this._lastPointerMoveEvent = { events, target, native }; + each(events, (event) => { + this._dispatchGlobalMousemove(event, target, native); + }); + }; + return new MultiDisposer([ + this._onPointerEvent("pointerdown", listener), + this._onPointerEvent("pointermove", listener) + ]); + }); + case "globalpointerup": + return this._makeSharedEvent("pointerup", () => { + const mouseup = this._onPointerEvent("pointerup", (events, target, native) => { + each(events, (event) => { + this._dispatchGlobalMouseup(event, native); + }); + this._lastPointerMoveEvent = { events, target, native }; + }); + const pointercancel = this._onPointerEvent("pointercancel", (events, target, native) => { + each(events, (event) => { + this._dispatchGlobalMouseup(event, native); + }); + this._lastPointerMoveEvent = { events, target, native }; + }); + return new Disposer(() => { + mouseup.dispose(); + pointercancel.dispose(); + }); + }); + case "click": + case "rightclick": + case "middleclick": + case "pointerdown": + /* + return this._makeSharedEvent("pointerdown", () => { + return this._onPointerEvent("pointerdown", (event, target, native) => { + this._lastPointerMoveEvent = { event, target, native }; + this._dispatchMousedown(event) + }); + }); + */ + case "pointermove": + case "pointerup": + return this._makeSharedEvent("pointerdown", () => { + const mousedown = this._onPointerEvent("pointerdown", (events, target) => { + each(events, (ev) => { + this._dispatchMousedown(ev, target); + }); + }); + const mousemove = this._onPointerEvent("pointermove", (ev) => { + each(ev, (ev2) => { + this._dispatchDragMove(ev2); + }); + }); + const mouseup = this._onPointerEvent("pointerup", (ev, target) => { + each(ev, (ev2) => { + this._dispatchDragEnd(ev2, target); + }); + }); + const pointercancel = this._onPointerEvent("pointercancel", (ev, target) => { + each(ev, (ev2) => { + this._dispatchDragEnd(ev2, target); + }); + }); + return new Disposer(() => { + mousedown.dispose(); + mousemove.dispose(); + mouseup.dispose(); + pointercancel.dispose(); + }); + }); + case "dblclick": + return this._makeSharedEvent("dblclick", () => { + return this._onPointerEvent("dblclick", (ev, target) => { + each(ev, (ev2) => { + this._dispatchDoubleClick(ev2, target); + }); + }); + }); + case "wheel": + return this._makeSharedEvent("wheel", () => { + return addEventListener(this.view, getRendererEvent("wheel"), (event) => { + this._dispatchWheel(event, getEventTarget(event)); + }, { passive: false }); + }); + } + } + _addEvent(object, key, callback, context) { + let events = this._events[key]; + if (events === void 0) { + events = this._events[key] = { + disposer: this._initEvent(key), + callbacks: [], + dispatching: false, + cleanup: false + }; + } + const listener = { object, context, callback, disposed: false }; + events.callbacks.push(listener); + return new Disposer(() => { + listener.disposed = true; + if (events.dispatching) { + events.cleanup = true; + } else { + removeFirst(events.callbacks, listener); + if (events.callbacks.length === 0) { + events.disposer.dispose(); + delete this._events[key]; + } + } + }); + } + getCanvas(root2, options) { + this.render(root2); + if (!options) { + options = {}; + } + let scale = this.resolution; + let canvasWidth = Math.floor(this._calculatedWidth * this.resolution); + let canvasHeight = Math.floor(this._calculatedHeight * this.resolution); + if (options.minWidth && options.minWidth > canvasWidth) { + let minScale = options.minWidth / canvasWidth; + if (minScale > scale) { + scale = minScale * this.resolution; + } + } + if (options.minHeight && options.minHeight > canvasHeight) { + let minScale = options.minHeight / canvasHeight; + if (minScale > scale) { + scale = minScale * this.resolution; + } + } + if (options.maxWidth && options.maxWidth < canvasWidth) { + let maxScale = options.maxWidth / canvasWidth; + if (maxScale < scale) { + scale = maxScale * this.resolution; + } + } + if (options.maxHeight && options.maxHeight > canvasHeight) { + let maxScale = options.maxHeight / canvasHeight; + if (maxScale < scale) { + scale = maxScale * this.resolution; + } + } + if (options.maintainPixelRatio) { + scale /= this.resolution; + } + const canvases = []; + let forceRender = false; + const canvas = document.createElement("canvas"); + if (scale != this.resolution) { + forceRender = true; + canvasWidth = canvasWidth * scale / this.resolution; + canvasHeight = canvasHeight * scale / this.resolution; + } + canvas.width = canvasWidth; + canvas.height = canvasHeight; + canvas.style.position = "fixed"; + canvas.style.top = "-10000px"; + this.view.appendChild(canvas); + canvases.push(canvas); + const context = canvas.getContext("2d"); + let width = 0; + let height = 0; + let needRerender = false; + each(this.layers, (layer) => { + if (layer && layer.visible) { + if (layer.tainted || forceRender) { + needRerender = true; + layer.exportableView = layer.view; + layer.exportableContext = layer.context; + layer.view = document.createElement("canvas"); + layer.view.style.position = "fixed"; + layer.view.style.top = "-10000px"; + this.view.appendChild(layer.view); + canvases.push(layer.view); + let extraX = 0; + let extraY = 0; + if (layer.margin) { + extraX += layer.margin.left || 0 + layer.margin.right || 0; + extraY += layer.margin.top || 0 + layer.margin.bottom || 0; + } + layer.view.width = canvasWidth + extraX; + layer.view.height = canvasHeight + extraY; + layer.context = layer.view.getContext("2d"); + layer.dirty = true; + layer.scale = scale; + } + } + }); + if (needRerender) { + this._omitTainted = true; + this.render(root2); + this._omitTainted = false; + } + each(this.layers, (layer) => { + if (layer && layer.visible) { + let x = 0; + let y = 0; + if (layer.margin) { + x = -(layer.margin.left || 0) * this.resolution; + y = -(layer.margin.top || 0) * this.resolution; + } + context.drawImage(layer.view, x, y); + if (layer.exportableView) { + layer.view = layer.exportableView; + layer.exportableView = void 0; + } + if (layer.exportableContext) { + layer.context = layer.exportableContext; + layer.exportableContext = void 0; + } + if (width < layer.view.clientWidth) { + width = layer.view.clientWidth; + } + if (height < layer.view.clientHeight) { + height = layer.view.clientHeight; + } + layer.scale = void 0; + } + }); + canvas.style.width = width + "px"; + canvas.style.height = height + "px"; + each(canvases, (canvas2) => { + canvas2.style.position = ""; + canvas2.style.top = ""; + this.view.removeChild(canvas2); + }); + return canvas; + } + }; + var GhostLayer = class { + constructor() { + this.margin = { + left: 0, + right: 0, + top: 0, + bottom: 0 + }; + this._resolution = 1; + this._width = 0; + this._height = 0; + this.view = document.createElement("canvas"); + this.context = this.view.getContext("2d", { alpha: false, willReadFrequently: true }); + this.context.imageSmoothingEnabled = false; + this.view.style.position = "absolute"; + this.view.style.top = "0px"; + this.view.style.left = "0px"; + } + resize(canvasWidth, canvasHeight, domWidth, domHeight, resolution) { + this._resolution = resolution; + canvasWidth += this.margin.left + this.margin.right; + canvasHeight += this.margin.top + this.margin.bottom; + domWidth += this.margin.left + this.margin.right; + domHeight += this.margin.top + this.margin.bottom; + this.view.style.left = -this.margin.left + "px"; + this.view.style.top = -this.margin.top + "px"; + this._width = Math.floor(canvasWidth * resolution); + this._height = Math.floor(canvasHeight * resolution); + this.view.width = this._width; + this.view.style.width = domWidth + "px"; + this.view.height = this._height; + this.view.style.height = domHeight + "px"; + } + getImageData(point, bbox) { + return this.context.getImageData( + // TODO should this round ? + Math.round((point.x - bbox.left) / bbox.width * this._width), + Math.round((point.y - bbox.top) / bbox.height * this._height), + 1, + 1 + ); + } + getImageArray(point) { + if (!this.imageArray) { + this.imageArray = this.context.getImageData(0, 0, this._width, this._height).data; + } + const data2 = this.imageArray; + const x = Math.round(point.x * this._resolution); + const y = Math.round(point.y * this._resolution); + const i = (y * this._width + x) * 4; + return [data2[i], data2[i + 1], data2[i + 2], data2[i + 3]]; + } + setMargin(layers) { + this.margin.left = 0; + this.margin.right = 0; + this.margin.top = 0; + this.margin.bottom = 0; + each(layers, (layer) => { + if (layer.margin) { + this.margin.left = Math.max(this.margin.left, layer.margin.left); + this.margin.right = Math.max(this.margin.right, layer.margin.right); + this.margin.top = Math.max(this.margin.top, layer.margin.top); + this.margin.bottom = Math.max(this.margin.bottom, layer.margin.bottom); + } + }); + } + clear() { + this.context.save(); + this.context.fillStyle = "#000"; + this.context.fillRect(0, 0, this._width, this._height); + } + }; + var CanvasLayer = class { + constructor(view, context) { + this.tainted = true; + this.order = 0; + this.visible = true; + this.dirty = true; + this._width = 0; + this._height = 0; + this.view = view; + this.context = context; + } + resize(canvasWidth, canvasHeight, domWidth, domHeight, resolution) { + if (this.width != null) { + canvasWidth = this.width; + domWidth = this.width; + } + if (this.height != null) { + canvasHeight = this.height; + domHeight = this.height; + } + if (this.margin) { + canvasWidth += this.margin.left + this.margin.right; + canvasHeight += this.margin.top + this.margin.bottom; + domWidth += this.margin.left + this.margin.right; + domHeight += this.margin.top + this.margin.bottom; + this.view.style.left = -this.margin.left + "px"; + this.view.style.top = -this.margin.top + "px"; + } else { + this.view.style.left = "0px"; + this.view.style.top = "0px"; + } + this._width = Math.floor(canvasWidth * resolution); + this._height = Math.floor(canvasHeight * resolution); + this.view.width = this._width; + this.view.style.width = domWidth + "px"; + this.view.height = this._height; + this.view.style.height = domHeight + "px"; + } + clear() { + this.context.save(); + this.context.clearRect(0, 0, this._width, this._height); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/Root.js + function rAF(fps, callback) { + if (fps == null) { + requestAnimationFrame(callback); + } else { + setTimeout(() => { + requestAnimationFrame(callback); + }, 1e3 / fps); + } + } + var Root = class _Root { + constructor(id, settings = {}, isReal) { + this._isDirty = false; + this._isDirtyParents = false; + this._isDirtyAnimation = false; + this._dirty = {}; + this._dirtyParents = {}; + this._dirtyBounds = {}; + this._dirtyPositions = {}; + this._ticker = null; + this._tickers = []; + this._updateTick = true; + this.skipRenderFrame = false; + this.events = new EventDispatcher(); + this.animationTime = null; + this._animations = []; + this.language = Language.new(this, {}); + this.locale = en_default; + this.utc = false; + this.numberFormatter = NumberFormatter.new(this, {}); + this.dateFormatter = DateFormatter.new(this, {}); + this.durationFormatter = DurationFormatter.new(this, {}); + this.tabindex = 0; + this._tabindexes = []; + this._a11yD = false; + this._focusElementDirty = false; + this._skipNextGroupJump = true; + this.verticalLayout = VerticalLayout.new(this, {}); + this.horizontalLayout = HorizontalLayout.new(this, {}); + this.gridLayout = GridLayout.new(this, {}); + this._paused = false; + this.autoResize = true; + this._fontHash = ""; + this._isDisposed = false; + this._disposers = []; + this._tooltips = []; + this._htmlEnabledContainers = []; + this.entitiesById = {}; + if (!isReal) { + throw new Error("You cannot use `new Class()`, instead use `Class.new()`"); + } + this._settings = settings; + if (settings.accessible == false) { + this._a11yD = true; + } + if (settings.useSafeResolution == null) { + settings.useSafeResolution = true; + } + let resolution; + if (settings.useSafeResolution) { + resolution = getSafeResolution(); + } + this._renderer = new CanvasRenderer(resolution); + let dom; + if (id instanceof HTMLElement) { + dom = id; + } else { + dom = document.getElementById(id); + } + each(registry.rootElements, (root2) => { + if (root2.dom === dom) { + if (registry.autoDispose) { + root2.dispose(); + } else { + throw new Error("You cannot have multiple Roots on the same DOM node"); + } + } + }); + this.interfaceColors = InterfaceColors.new(this, {}); + if (dom === null) { + throw new Error("Could not find HTML element with id `" + id + "`"); + } + this.dom = dom; + let inner = document.createElement("div"); + inner.style.position = "relative"; + inner.style.width = "100%"; + inner.style.height = "100%"; + dom.appendChild(inner); + const tooltipContainerBounds = settings.tooltipContainerBounds; + if (tooltipContainerBounds) { + this._tooltipContainerSettings = tooltipContainerBounds; + } + this._inner = inner; + this._updateComputedStyles(); + registry.rootElements.push(this); + } + static new(id, settings) { + const root2 = new _Root(id, settings, true); + root2._init(); + return root2; + } + moveDOM(id) { + let dom; + if (id instanceof HTMLElement) { + dom = id; + } else { + dom = document.getElementById(id); + } + if (dom) { + while (this.dom.childNodes.length > 0) { + dom.appendChild(this.dom.childNodes[0]); + } + this.dom = dom; + this._initResizeSensor(); + this.resize(); + } + } + _handleLogo() { + if (this._logo) { + const w = this.dom.offsetWidth; + const h = this.dom.offsetHeight; + if (w <= 150 || h <= 60) { + this._logo.hide(); + } else { + this._logo.show(); + } + } + } + _showBranding() { + if (!this._logo) { + const logo = this.tooltipContainer.children.push(Container.new(this, { + interactive: true, + interactiveChildren: false, + position: "absolute", + setStateOnChildren: true, + paddingTop: 9, + paddingRight: 9, + paddingBottom: 9, + paddingLeft: 9, + scale: 0.6, + y: percent(100), + centerY: p100, + tooltipY: 10, + tooltipText: "Created using amCharts 5", + tooltipX: p100, + cursorOverStyle: "pointer", + background: Rectangle.new(this, { + fill: color(4671320), + fillOpacity: 0, + tooltipY: 5 + }) + })); + logo.set("tooltip", this.systemTooltip); + logo.events.on("click", () => { + window.open("https://www.amcharts.com/", "_blank"); + }); + logo.states.create("hover", {}); + const m = logo.children.push(Graphics.new(this, { + stroke: color(13421772), + strokeWidth: 3, + svgPath: "M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6", + dx: -50, + strokeOpacity: 0 + })); + m.states.create("hover", { stroke: color(3976191) }); + const a = logo.children.push(Graphics.new(this, { + stroke: color(8947848), + strokeWidth: 3, + svgPath: "M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0", + dx: 50, + strokeOpacity: 0 + })); + const easing = out(cubic); + const duration = 1500; + logo.setTimeout(() => { + a.animate({ + key: "strokeOpacity", + to: 1, + duration, + easing + }); + a.animate({ + key: "dx", + to: 0, + duration, + easing + }); + m.animate({ + key: "dx", + to: 0, + duration, + easing + }); + m.animate({ + key: "strokeOpacity", + to: 1, + duration, + easing + }); + }, 3e3); + a.states.create("hover", { stroke: color(4671320) }); + this._logo = logo; + this._handleLogo(); + } + } + _getRealSize() { + return this.dom.getBoundingClientRect(); + } + _getCalculatedSize(rect) { + if (this._settings.calculateSize) { + return this._settings.calculateSize(rect); + } else { + return { + width: rect.width, + height: rect.height + }; + } + } + _init() { + const settings = this._settings; + if (settings.accessible !== false) { + if (settings.focusable) { + this._inner.setAttribute("focusable", "true"); + this._inner.setAttribute("tabindex", this.tabindex + ""); + } + if (settings.ariaLabel) { + this._inner.setAttribute("aria-label", settings.ariaLabel); + } + if (settings.role) { + this._inner.setAttribute("role", settings.role); + } + } + const renderer = this._renderer; + const rect = this._getRealSize(); + const size = this._getCalculatedSize(rect); + const width = Math.floor(size.width); + const height = Math.floor(size.height); + const realWidth = Math.floor(rect.width); + const realHeight = Math.floor(rect.height); + const rootContainer = Container.new(this, { + visible: true, + width, + height + }); + this._rootContainer = rootContainer; + this._rootContainer._defaultThemes.push(DefaultTheme.new(this)); + const container = rootContainer.children.push(Container.new(this, { visible: true, width: p100, height: p100 })); + this.container = container; + renderer.resize(realWidth, realHeight, width, height); + this._inner.appendChild(renderer.view); + this._initResizeSensor(); + const htmlElementContainer = document.createElement("div"); + this._htmlElementContainer = htmlElementContainer; + htmlElementContainer.className = "am5-html-container"; + htmlElementContainer.style.position = "absolute"; + htmlElementContainer.style.pointerEvents = "none"; + if (!this._tooltipContainerSettings) { + htmlElementContainer.style.overflow = "hidden"; + } + this._inner.appendChild(htmlElementContainer); + if (this._a11yD !== true) { + const readerAlertElement = document.createElement("div"); + readerAlertElement.className = "am5-reader-container"; + readerAlertElement.setAttribute("role", "alert"); + readerAlertElement.style.position = "absolute"; + readerAlertElement.style.width = "1px"; + readerAlertElement.style.height = "1px"; + readerAlertElement.style.overflow = "hidden"; + readerAlertElement.style.clip = "rect(1px, 1px, 1px, 1px)"; + this._readerAlertElement = readerAlertElement; + this._inner.appendChild(this._readerAlertElement); + const focusElementContainer = document.createElement("div"); + focusElementContainer.className = "am5-focus-container"; + focusElementContainer.style.position = "absolute"; + focusElementContainer.style.pointerEvents = "none"; + focusElementContainer.style.top = "0px"; + focusElementContainer.style.left = "0px"; + focusElementContainer.style.overflow = "hidden"; + focusElementContainer.style.width = width + "px"; + focusElementContainer.style.height = height + "px"; + focusElementContainer.setAttribute("role", "graphics-document"); + setInteractive(focusElementContainer, false); + this._focusElementContainer = focusElementContainer; + this._inner.appendChild(this._focusElementContainer); + const tooltipElementContainer = document.createElement("div"); + this._tooltipElementContainer = tooltipElementContainer; + tooltipElementContainer.className = "am5-tooltip-container"; + this._inner.appendChild(tooltipElementContainer); + if (supports("keyboardevents")) { + this._disposers.push(addEventListener(window, "keydown", (ev) => { + const eventKey = getEventKey(ev); + if (eventKey == "Shift") { + this._isShift = true; + } else if (eventKey == "Tab") { + this._isShift = ev.shiftKey; + } + })); + this._disposers.push(addEventListener(window, "keyup", (ev) => { + const eventKey = getEventKey(ev); + if (eventKey == "Shift") { + this._isShift = false; + } + })); + this._disposers.push(addEventListener(focusElementContainer, "click", () => { + const focusedSprite = this._focusedSprite; + if (focusedSprite) { + const announceText = focusedSprite.get("clickAnnounceText", ""); + if (announceText !== "") { + this.readerAlert(announceText); + } + const downEvent = renderer.getEvent(new MouseEvent("click")); + focusedSprite.events.dispatch("click", { + type: "click", + originalEvent: downEvent.event, + point: downEvent.point, + simulated: true, + target: focusedSprite + }); + } + })); + this._disposers.push(addEventListener(focusElementContainer, "keydown", (ev) => { + const focusedSprite = this._focusedSprite; + if (focusedSprite) { + if (ev.key == "Escape") { + blur(); + this._focusedSprite = void 0; + } + let dragOffsetX = 0; + let dragOffsetY = 0; + const eventKey = getEventKey(ev); + switch (eventKey) { + case "Enter": + case " ": + const announceText = focusedSprite.get("clickAnnounceText", ""); + if (announceText !== "") { + this.readerAlert(announceText); + } + if (eventKey == " " && focusedSprite.get("role") != "checkbox") { + return; + } + ev.preventDefault(); + const downEvent = renderer.getEvent(new MouseEvent("mouse")); + focusedSprite.events.dispatch("click", { + type: "click", + originalEvent: downEvent.event, + point: downEvent.point, + simulated: true, + target: focusedSprite + }); + return; + case "ArrowLeft": + dragOffsetX = -6; + break; + case "ArrowRight": + dragOffsetX = 6; + break; + case "ArrowUp": + dragOffsetY = -6; + break; + case "ArrowDown": + dragOffsetY = 6; + break; + default: + return; + } + if (dragOffsetX != 0 || dragOffsetY != 0) { + ev.preventDefault(); + if (!focusedSprite.isDragging()) { + this._keyboardDragPoint = { + x: 0, + y: 0 + }; + const downEvent = renderer.getEvent(new MouseEvent("mousedown", { + clientX: 0, + clientY: 0 + })); + downEvent.point = { + x: 0, + y: 0 + }; + if (focusedSprite.events.isEnabled("pointerdown")) { + focusedSprite.events.dispatch("pointerdown", { + type: "pointerdown", + originalEvent: downEvent.event, + point: downEvent.point, + simulated: true, + target: focusedSprite + }); + } + } else { + } + const dragPoint = this._keyboardDragPoint; + dragPoint.x += dragOffsetX; + dragPoint.y += dragOffsetY; + const moveEvent = renderer.getEvent(new MouseEvent("mousemove", { + clientX: dragPoint.x, + clientY: dragPoint.y + }), false); + if (focusedSprite.events.isEnabled("globalpointermove")) { + focusedSprite.events.dispatch("globalpointermove", { + type: "globalpointermove", + originalEvent: moveEvent.event, + point: moveEvent.point, + simulated: true, + target: focusedSprite + }); + } + } + } + })); + this._disposers.push(addEventListener(focusElementContainer, "keyup", (ev) => { + if (this._focusedSprite) { + const focusedSprite = this._focusedSprite; + const eventKey = getEventKey(ev); + switch (eventKey) { + case "ArrowLeft": + case "ArrowRight": + case "ArrowUp": + case "ArrowDown": + if (focusedSprite.isDragging()) { + const dragPoint = this._keyboardDragPoint; + const upEvent = renderer.getEvent(new MouseEvent("mouseup", { + clientX: dragPoint.x, + clientY: dragPoint.y + })); + if (focusedSprite.events.isEnabled("globalpointerup")) { + focusedSprite.events.dispatch("globalpointerup", { + type: "globalpointerup", + originalEvent: upEvent.event, + point: upEvent.point, + simulated: true, + target: focusedSprite + }); + } + this._keyboardDragPoint = void 0; + return; + } else if (focusedSprite.get("focusableGroup")) { + const group2 = focusedSprite.get("focusableGroup"); + const items = this._tabindexes.filter((item) => { + return item.get("focusableGroup") == group2 && item.getPrivate("focusable") !== false && item.isVisibleDeep() ? true : false; + }); + let index = items.indexOf(focusedSprite); + const lastIndex = items.length - 1; + index += eventKey == "ArrowRight" || eventKey == "ArrowDown" ? 1 : -1; + if (index < 0) { + index = lastIndex; + } else if (index > lastIndex) { + index = 0; + } + focus(items[index].getPrivate("focusElement").dom); + } + break; + case "Tab": + const group = focusedSprite.get("focusableGroup"); + if (group && this._isShift) { + if (!this._skipNextGroupJump) { + this._focusNext(focusedSprite.getPrivate("focusElement").dom, -1, group); + this._skipNextGroupJump = true; + } + return; + } + break; + } + } + })); + } + } + this._startTicker(); + this.setThemes([]); + this._addTooltip(); + if (!this._hasLicense()) { + this._showBranding(); + } + } + /** + * Returns an instance of a universal [[Tooltip]] instance. + * @since 5.14.0 + */ + get systemTooltip() { + if (!this._systemTooltip) { + const tooltip = Tooltip.new(this, { + themeTags: ["system"] + }); + this._systemTooltip = tooltip; + } + return this._systemTooltip; + } + _initResizeSensor() { + if (this._resizeSensorDisposer) { + this._resizeSensorDisposer.dispose(); + } + this._resizeSensorDisposer = new ResizeSensor(this.dom, () => { + if (this.autoResize) { + this.resize(); + } + }); + this._disposers.push(this._resizeSensorDisposer); + } + /** + * If automatic resizing of char is disabled (`root.autoResize = false`), it + * can be resized manually by calling this method. + */ + resize() { + const rect = this._getRealSize(); + const size = this._getCalculatedSize(rect); + const w = Math.floor(size.width); + const h = Math.floor(size.height); + if (w > 0 && h > 0) { + const realWidth = Math.floor(rect.width); + const realHeight = Math.floor(rect.height); + const htmlElementContainer = this._htmlElementContainer; + htmlElementContainer.style.width = w + "px"; + htmlElementContainer.style.height = h + "px"; + if (this._a11yD !== true) { + const focusElementContainer = this._focusElementContainer; + focusElementContainer.style.width = w + "px"; + focusElementContainer.style.height = h + "px"; + } + this._renderer.resize(realWidth, realHeight, w, h); + const rootContainer = this._rootContainer; + rootContainer.setPrivate("width", w); + rootContainer.setPrivate("height", h); + this._render(); + this._handleLogo(); + } + } + _render() { + if (this.skipRenderFrame) { + this.skipRenderFrame = false; + return; + } + this._renderer.render(this._rootContainer._display); + if (this._focusElementDirty) { + this._updateCurrentFocus(); + this._focusElementDirty = false; + } + } + _runTickers(currentTime) { + each(this._tickers, (f) => { + f(currentTime); + }); + } + _runAnimations(currentTime) { + let running = 0; + keepIf(this._animations, (animation) => { + const state = animation._runAnimation(currentTime); + if (state === AnimationState.Stopped) { + return false; + } else if (state === AnimationState.Playing) { + ++running; + return true; + } else { + return true; + } + }); + this._isDirtyAnimation = false; + return running === 0; + } + _runDirties() { + let allParents = {}; + while (this._isDirtyParents) { + this._isDirtyParents = false; + entries(this._dirtyParents).forEach(([key, parent]) => { + delete this._dirtyParents[key]; + if (!parent.isDisposed()) { + allParents[parent.uid] = parent; + parent._prepareChildren(); + } + }); + } + entries(allParents).forEach(([_key, parent]) => { + parent._updateChildren(); + }); + const objects = []; + entries(this._dirty).forEach(([key, entity]) => { + if (entity.isDisposed()) { + delete this._dirty[key]; + } else { + objects.push(entity); + entity._beforeChanged(); + } + }); + objects.forEach((entity) => { + entity._changed(); + delete this._dirty[entity.uid]; + entity._clearDirty(); + }); + this._isDirty = false; + const depths = {}; + const bounds = []; + entries(this._dirtyBounds).forEach(([key, entity]) => { + delete this._dirtyBounds[key]; + if (!entity.isDisposed()) { + depths[entity.uid] = entity.depth(); + bounds.push(entity); + } + }); + this._positionHTMLElements(); + bounds.sort((x, y) => { + return compare(depths[y.uid], depths[x.uid]); + }); + bounds.forEach((entity) => { + entity._updateBounds(); + }); + const dirtyPositions = this._dirtyPositions; + entries(dirtyPositions).forEach(([key, sprite]) => { + delete dirtyPositions[key]; + if (!sprite.isDisposed()) { + sprite._updatePosition(); + } + }); + objects.forEach((entity) => { + entity._afterChanged(); + }); + entries(allParents).forEach(([_key, parent]) => { + parent._childrenPrep = false; + parent._childrenUpdt = false; + }); + } + _renderFrame(currentTime) { + if (this._updateTick) { + if (this.events.isEnabled("framestarted")) { + this.events.dispatch("framestarted", { + type: "framestarted", + target: this, + timestamp: currentTime + }); + } + this._checkComputedStyles(); + this._runTickers(currentTime); + const animationDone = this._runAnimations(currentTime); + this._runDirties(); + this._render(); + this._renderer.resetImageArray(); + this._positionHTMLElements(); + if (this.events.isEnabled("frameended")) { + this.events.dispatch("frameended", { + type: "frameended", + target: this, + timestamp: currentTime + }); + } + return this._tickers.length === 0 && animationDone && !this._isDirtyAnimation && !this._isDirty; + } else { + return true; + } + } + _runTicker(currentTime, now) { + if (!this.isDisposed()) { + this.animationTime = currentTime; + const done = this._renderFrame(currentTime); + if (done) { + this._ticker = null; + this.animationTime = null; + } else { + if (!this._paused) { + if (now) { + this._ticker; + } else { + rAF(this.fps, this._ticker); + } + } + } + } + } + _runTickerNow(timeout = 1e4) { + if (!this.isDisposed()) { + const endTime = performance.now() + timeout; + for (; ; ) { + const currentTime = performance.now(); + if (currentTime >= endTime) { + this.animationTime = null; + break; + } + this.animationTime = currentTime; + const done = this._renderFrame(currentTime); + if (done) { + this.animationTime = null; + break; + } + } + } + } + _startTicker() { + if (this._ticker === null) { + this.animationTime = null; + this._ticker = (currentTime) => { + this._runTicker(currentTime); + }; + rAF(this.fps, this._ticker); + } + } + /** + * Returns whether the root is updating or not. + */ + get updateTick() { + return this._updateTick; + } + /** + * Enables or disables the root updating. + */ + set updateTick(value) { + this._updateTick = value; + if (value) { + this._startTicker(); + } + } + _addDirtyEntity(entity) { + this._isDirty = true; + if (this._dirty[entity.uid] === void 0) { + this._dirty[entity.uid] = entity; + } + this._startTicker(); + } + _addDirtyParent(parent) { + this._isDirty = true; + this._isDirtyParents = true; + if (this._dirtyParents[parent.uid] === void 0) { + this._dirtyParents[parent.uid] = parent; + } + this._startTicker(); + } + _addDirtyBounds(entity) { + this._isDirty = true; + if (this._dirtyBounds[entity.uid] === void 0) { + this._dirtyBounds[entity.uid] = entity; + } + this._startTicker(); + } + _addDirtyPosition(sprite) { + this._isDirty = true; + if (this._dirtyPositions[sprite.uid] === void 0) { + this._dirtyPositions[sprite.uid] = sprite; + } + this._startTicker(); + } + _addAnimation(animation) { + this._isDirtyAnimation = true; + if (this._animations.indexOf(animation) === -1) { + this._animations.push(animation); + } + this._startTicker(); + } + _markDirty() { + this._isDirty = true; + } + _markDirtyRedraw() { + this.events.once("frameended", () => { + this._isDirty = true; + this._startTicker(); + }); + } + eachFrame(f) { + this._tickers.push(f); + this._startTicker(); + return new Disposer(() => { + removeFirst(this._tickers, f); + }); + } + markDirtyGlobal(container) { + if (!container) { + container = this.container; + } + container.walkChildren((child) => { + if (child instanceof Container) { + this.markDirtyGlobal(child); + } + child.markDirty(); + child.markDirtyBounds(); + }); + } + /** + * Returns width of the target container, in pixels. + * + * @return Width + */ + width() { + return Math.floor(this._getCalculatedSize(this._getRealSize()).width); + } + /** + * Returns height of the target container, in pixels. + * + * @return Height + */ + height() { + return Math.floor(this._getCalculatedSize(this._getRealSize()).height); + } + /** + * Disposes root and all the content in it. + */ + dispose() { + if (!this._isDisposed) { + this._isDisposed = true; + this._rootContainer.dispose(); + this._renderer.dispose(); + this.horizontalLayout.dispose(); + this.verticalLayout.dispose(); + this.interfaceColors.dispose(); + each(this._disposers, (x) => { + x.dispose(); + }); + if (this._inner) { + removeElement(this._inner); + } + remove(registry.rootElements, this); + } + } + /** + * Returns `true` if root element is disposed. + * + * @return Disposed? + */ + isDisposed() { + return this._isDisposed; + } + /** + * Triggers screen reader read out a message. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/accessibility/} for more info + * @param text Alert text + */ + readerAlert(text) { + if (this._a11yD !== true) { + const element = this._readerAlertElement; + text = stripTags(text); + if (element.innerHTML == text) { + element.innerHTML = ""; + } + element.innerHTML = text; + } + } + /** + * Sets themes to be used for the chart. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/themes/} for more info + * @param themes A list of themes + */ + setThemes(themes) { + this._rootContainer.set("themes", themes); + const tooltipContainer = this.tooltipContainer; + if (tooltipContainer) { + tooltipContainer._applyThemes(); + } + const interfaceColors = this.interfaceColors; + if (interfaceColors) { + interfaceColors._applyThemes(); + } + } + _addTooltip() { + if (!this.tooltipContainer) { + const tooltipContainerSettings = this._tooltipContainerSettings; + const tooltipContainer = this._rootContainer.children.push(Container.new(this, { + position: "absolute", + isMeasured: false, + width: p100, + height: p100, + layer: tooltipContainerSettings ? 35 : 30, + layerMargin: tooltipContainerSettings ? tooltipContainerSettings : void 0 + })); + this.tooltipContainer = tooltipContainer; + const tooltip = Tooltip.new(this, {}); + this.container.set("tooltip", tooltip); + tooltip.hide(0); + this._tooltip = tooltip; + } + } + /** + * Accesibility + */ + _registerTabindexOrder(target) { + if (this._a11yD == true) { + return; + } + if (target.get("focusable")) { + pushOne(this._tabindexes, target); + } else { + remove(this._tabindexes, target); + } + this._invalidateTabindexes(); + } + _unregisterTabindexOrder(target) { + if (this._a11yD == true) { + return; + } + remove(this._tabindexes, target); + this._invalidateTabindexes(); + } + _invalidateTabindexes() { + if (this._a11yD == true) { + return; + } + this._tabindexes.sort((a, b) => { + const aindex = a.get("tabindexOrder", 0); + const bindex = b.get("tabindexOrder", 0); + if (aindex == bindex) { + return 0; + } else if (aindex > bindex) { + return 1; + } else { + return -1; + } + }); + const groups = []; + each(this._tabindexes, (item, index) => { + if (!item.getPrivate("focusElement")) { + this._makeFocusElement(index, item); + } else { + this._moveFocusElement(index, item); + } + const group = item.get("focusableGroup"); + if (group && item.getPrivate("focusable") !== false) { + if (groups.indexOf(group) !== -1) { + item.getPrivate("focusElement").dom.setAttribute("tabindex", "-1"); + } else { + groups.push(group); + } + } + }); + } + _updateCurrentFocus() { + if (this._a11yD == true) { + return; + } + if (this._focusedSprite) { + this._decorateFocusElement(this._focusedSprite); + this._positionFocusElement(this._focusedSprite); + } + } + _decorateFocusElement(target, focusElement) { + if (this._a11yD == true) { + return; + } + if (!focusElement) { + focusElement = target.getPrivate("focusElement").dom; + } + if (!focusElement) { + return; + } + const role = target.get("role"); + if (role) { + focusElement.setAttribute("role", role); + } else { + focusElement.removeAttribute("role"); + } + const ariaLabel = target.get("ariaLabel"); + if (ariaLabel) { + const label = populateString(target, ariaLabel); + focusElement.setAttribute("aria-label", label); + } else { + focusElement.removeAttribute("aria-label"); + } + const ariaLive = target.get("ariaLive"); + if (ariaLive) { + focusElement.setAttribute("aria-live", ariaLive); + } else { + focusElement.removeAttribute("aria-live"); + } + const ariaChecked = target.get("ariaChecked"); + if (ariaChecked != null && role && ["checkbox", "option", "radio", "menuitemcheckbox", "menuitemradio", "treeitem"].indexOf(role) !== -1) { + focusElement.setAttribute("aria-checked", ariaChecked ? "true" : "false"); + } else { + focusElement.removeAttribute("aria-checked"); + } + const ariaCurrent = target.get("ariaCurrent"); + if (ariaCurrent != null) { + focusElement.setAttribute("aria-current", ariaCurrent); + } else { + focusElement.removeAttribute("aria-current"); + } + const ariaSelected = target.get("ariaSelected"); + if (ariaSelected != null && role && ["gridcell", "option", "row", "tab", "columnheader", "rowheader", "treeitem"].indexOf(role) !== -1) { + focusElement.setAttribute("aria-selected", ariaSelected ? "true" : "false"); + } else { + focusElement.removeAttribute("aria-selected"); + } + if (target.get("ariaHidden")) { + focusElement.setAttribute("aria-hidden", "true"); + } else { + focusElement.removeAttribute("aria-hidden"); + } + const ariaOrientation = target.get("ariaOrientation"); + if (ariaOrientation) { + focusElement.setAttribute("aria-orientation", ariaOrientation); + } else { + focusElement.removeAttribute("aria-orientation"); + } + const ariaValueNow = target.get("ariaValueNow"); + if (ariaValueNow) { + focusElement.setAttribute("aria-valuenow", ariaValueNow); + } else { + focusElement.removeAttribute("aria-valuenow"); + } + const ariaValueMin = target.get("ariaValueMin"); + if (ariaValueMin) { + focusElement.setAttribute("aria-valuemin", ariaValueMin); + } else { + focusElement.removeAttribute("aria-valuemin"); + } + const ariaValueMax = target.get("ariaValueMax"); + if (ariaValueMax) { + focusElement.setAttribute("aria-valuemax", ariaValueMax); + } else { + focusElement.removeAttribute("aria-valuemax"); + } + const ariaValueText = target.get("ariaValueText"); + if (ariaValueText) { + focusElement.setAttribute("aria-valuetext", ariaValueText); + } else { + focusElement.removeAttribute("aria-valuetext"); + } + const ariaControls = target.get("ariaControls"); + if (ariaControls) { + focusElement.setAttribute("aria-controls", ariaControls); + } else { + focusElement.removeAttribute("aria-controls"); + } + if (target.get("visible") && target.get("opacity") !== 0 && target.get("role") != "tooltip" && !target.isHidden() && target.getPrivate("focusable") !== false && (target.height() || target.width())) { + if (focusElement.getAttribute("tabindex") != "-1") { + focusElement.setAttribute("tabindex", "" + this.tabindex); + } + focusElement.removeAttribute("aria-hidden"); + } else { + focusElement.removeAttribute("tabindex"); + focusElement.setAttribute("aria-hidden", "true"); + } + } + _makeFocusElement(index, target) { + if (target.getPrivate("focusElement") || this._a11yD == true) { + return; + } + const focusElement = document.createElement("div"); + if (target.get("role") != "tooltip") { + focusElement.tabIndex = this.tabindex; + } + focusElement.style.position = "absolute"; + setInteractive(focusElement, false); + const disposers = []; + target.setPrivate("focusElement", { + dom: focusElement, + disposers + }); + this._decorateFocusElement(target); + disposers.push(addEventListener(focusElement, "focus", (ev) => { + this._handleFocus(ev); + })); + disposers.push(addEventListener(focusElement, "blur", (ev) => { + this._handleBlur(ev); + })); + this._moveFocusElement(index, target); + } + _removeFocusElement(target) { + if (this._a11yD == true) { + return; + } + remove(this._tabindexes, target); + const focusElement = target.getPrivate("focusElement"); + if (focusElement) { + const container = this._focusElementContainer; + container.removeChild(focusElement.dom); + each(focusElement.disposers, (x) => { + x.dispose(); + }); + } + } + _hideFocusElement(target) { + if (this._a11yD == true) { + return; + } + const focusElement = target.getPrivate("focusElement"); + focusElement.dom.style.display = "none"; + } + _moveFocusElement(index, target) { + if (this._a11yD == true) { + return; + } + const container = this._focusElementContainer; + const focusElement = target.getPrivate("focusElement").dom; + if (focusElement === this._focusElementContainer.children[index]) { + return; + } + const next = this._focusElementContainer.children[index + 1]; + if (next) { + container.insertBefore(focusElement, next); + } else { + container.append(focusElement); + } + } + _positionFocusElement(target) { + if (this._a11yD == true || target == void 0) { + return; + } + this._focusElementContainer.scrollTop = 0; + const bounds = target.globalBounds(); + let width = bounds.right == bounds.left ? target.width() : bounds.right - bounds.left; + let height = bounds.top == bounds.bottom ? target.height() : bounds.bottom - bounds.top; + const padding = this._settings.focusPadding !== void 0 ? this._settings.focusPadding : 2; + let x = bounds.left - padding; + let y = bounds.top - padding; + if (width < 0) { + x += width; + width = Math.abs(width); + } + if (height < 0) { + y += height; + height = Math.abs(height); + } + const focusElement = target.getPrivate("focusElement").dom; + focusElement.style.top = y + "px"; + focusElement.style.left = x + "px"; + focusElement.style.width = width + padding * 2 + "px"; + focusElement.style.height = height + padding * 2 + "px"; + } + _getSpriteByFocusElement(target) { + let found; + eachContinue(this._tabindexes, (item, _index) => { + if (item.getPrivate("focusElement").dom === target) { + found = item; + return false; + } + return true; + }); + return found; + } + _handleFocus(ev) { + if (this._a11yD == true) { + return; + } + const focused = this._getSpriteByFocusElement(ev.target); + if (!focused) { + return; + } + if (!focused.isVisibleDeep()) { + this._focusNext(ev.target, this._isShift ? -1 : 1); + return; + } + this._positionFocusElement(focused); + this._focusedSprite = focused; + if (focused.events.isEnabled("focus")) { + focused.events.dispatch("focus", { + type: "focus", + originalEvent: ev, + target: focused + }); + } + if (focused.getPrivate("focusElement").dom.tabIndex == -1) { + this._skipNextGroupJump = false; + } + } + _focusNext(el, direction, group) { + if (this._a11yD == true) { + return; + } + const focusableElements = Array.from(document.querySelectorAll([ + "a[href]", + "area[href]", + "button:not([disabled])", + "details", + "input:not([disabled])", + "iframe:not([disabled])", + "select:not([disabled])", + "textarea:not([disabled])", + '[contentEditable=""]', + '[contentEditable="true"]', + '[contentEditable="TRUE"]', + '[tabindex]:not([tabindex^="-"])' + //':not([disabled])' + ].join(","))); + let index = focusableElements.indexOf(el) + direction; + if (index < 0) { + index = focusableElements.length - 1; + } else if (index >= focusableElements.length) { + index = 0; + } + const targetElement = focusableElements[index]; + if (group && direction == -1) { + const target = this._getSpriteByFocusElement(targetElement); + if (target && target.get("focusableGroup") == group) { + this._focusNext(targetElement, direction); + return; + } + } + targetElement.focus(); + } + _handleBlur(ev) { + if (this._a11yD == true) { + return; + } + const focused = this._focusedSprite; + if (focused && !focused.isDisposed() && focused.events.isEnabled("blur")) { + focused.events.dispatch("blur", { + type: "blur", + originalEvent: ev, + target: focused + }); + } + this._focusedSprite = void 0; + } + /** + * @ignore + */ + updateTooltip(target) { + if (this._a11yD == true) { + return; + } + const text = stripTags(target._getText()); + let tooltipElement = target.getPrivate("tooltipElement"); + if (target.get("role") == "tooltip" && text != "") { + if (!tooltipElement) { + tooltipElement = this._makeTooltipElement(target); + } + if (tooltipElement.innerHTML != text) { + tooltipElement.innerHTML = text; + } + tooltipElement.setAttribute("aria-hidden", target.isVisibleDeep() ? "false" : "true"); + } else if (tooltipElement) { + tooltipElement.remove(); + target.removePrivate("tooltipElement"); + } + } + _makeTooltipElement(target) { + const container = this._tooltipElementContainer; + const tooltipElement = document.createElement("div"); + tooltipElement.style.position = "absolute"; + tooltipElement.style.width = "1px"; + tooltipElement.style.height = "1px"; + tooltipElement.style.overflow = "hidden"; + tooltipElement.style.clip = "rect(1px, 1px, 1px, 1px)"; + setInteractive(tooltipElement, false); + this._decorateFocusElement(target, tooltipElement); + container.append(tooltipElement); + target.setPrivate("tooltipElement", tooltipElement); + return tooltipElement; + } + _removeTooltipElement(target) { + if (this._a11yD == true) { + return; + } + const tooltipElement = target.getPrivate("tooltipElement"); + if (tooltipElement) { + const parent = tooltipElement.parentElement; + if (parent) { + parent.removeChild(tooltipElement); + } + } + } + _invalidateAccessibility(target) { + if (this._a11yD == true) { + return; + } + this._focusElementDirty = true; + const focusElement = target.getPrivate("focusElement"); + if (target.get("focusable")) { + if (focusElement) { + this._decorateFocusElement(target); + this._positionFocusElement(target); + } + } else if (focusElement) { + this._removeFocusElement(target); + } + } + /** + * Returns `true` if `target` is currently focused. + * + * @param target Target + * @return Focused? + */ + focused(target) { + return this._focusedSprite === target; + } + /** + * Converts document coordinates to coordinates withing root element. + * + * @param point Document point + * @return Root point + */ + documentPointToRoot(point) { + const rect = this._getRealSize(); + const size = this._getCalculatedSize(rect); + const scaleWidth = size.width / rect.width; + const scaleHeight = size.height / rect.height; + return { + x: (point.x - rect.left) * scaleWidth, + y: (point.y - rect.top) * scaleHeight + }; + } + /** + * Converts root coordinates to document + * + * @param point Document point + * @return Root point + */ + rootPointToDocument(point) { + const rect = this._getRealSize(); + const size = this._getCalculatedSize(rect); + const scaleWidth = size.width / rect.width; + const scaleHeight = size.height / rect.height; + return { + x: point.x / scaleWidth + rect.left, + y: point.y / scaleHeight + rect.top + }; + } + /** + * @ignore + */ + addDisposer(disposer) { + this._disposers.push(disposer); + return disposer; + } + _updateComputedStyles() { + const styles = window.getComputedStyle(this.dom); + let fontHash = ""; + each2(styles, (key, val) => { + if (isString(key) && key.match(/^font/)) { + fontHash += val; + } + }); + const changed = fontHash != this._fontHash; + if (changed) { + this._fontHash = fontHash; + } + return changed; + } + _checkComputedStyles() { + if (this._updateComputedStyles()) { + this._invalidateLabelBounds(this.container); + } + } + _invalidateLabelBounds(target) { + if (target instanceof Container) { + target.children.each((child) => { + this._invalidateLabelBounds(child); + }); + } else if (target instanceof Text) { + target.markDirtyBounds(); + } + } + /** + * To all the clever heads out there. Yes, we did not make any attempts to + * scramble this. + * + * This is a part of a tool meant for our users to manage their commercial + * licenses for removal of amCharts branding from charts. + * + * The only legit way to do so is to purchase a commercial license for amCharts: + * https://www.amcharts.com/online-store/ + * + * Removing or altering this code, or disabling amCharts branding in any other + * way is against the license and thus illegal. + */ + _hasLicense() { + for (let i = 0; i < registry.licenses.length; i++) { + if (registry.licenses[i].match(/^AM5C.{5,}/i)) { + return true; + } + } + return false; + } + _licenseApplied() { + if (this._logo) { + this._logo.set("forceHidden", true); + } + } + /** + * @ignore + */ + get debugGhostView() { + return this._renderer.debugGhostView; + } + /** + * @ignore + */ + set debugGhostView(value) { + this._renderer.debugGhostView = value; + } + /** + * Set this to `true` if you need chart to require first a tap onto it before + * touch gesture related functionality like zoom/pan is turned on. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/root-element/#Touch_related_options} for more info + * @default false + * @since 5.2.9 + * @param value Needs a tap to activate touch functions + */ + set tapToActivate(value) { + this._renderer.tapToActivate = value; + } + /** + * @return Needs a tap to activate touch functions + */ + get tapToActivate() { + return this._renderer.tapToActivate; + } + /** + * If `tapToActivate` is set to `true`, this setting will determine number + * of milliseconds the chart will stay "active", before releasing the + * controls back to the page. + * + * @see {@link https://www.amcharts.com/docs/v5/getting-started/root-element/#Touch_related_options} for more info + * @default 3000 + * @since 5.2.9 + * @param value Timeout + */ + set tapToActivateTimeout(value) { + this._renderer.tapToActivateTimeout = value; + } + /** + * @return Timeout + */ + get tapToActivateTimeout() { + return this._renderer.tapToActivateTimeout; + } + _makeHTMLElement(target) { + const container = this._htmlElementContainer; + const htmlElement = document.createElement("div"); + target.setPrivate("htmlElement", htmlElement); + let needWrapper = false; + let wrapperTarget; + target._walkParents((parent) => { + if (parent.get("verticalScrollbar")) { + needWrapper = true; + wrapperTarget = parent; + return false; + } + }); + let htmlElementWrapper; + if (needWrapper) { + htmlElementWrapper = document.createElement("div"); + target.setPrivate("htmlElementWrapper", htmlElementWrapper); + target.setPrivate("wrapperContainer", wrapperTarget); + htmlElementWrapper.style.position = "absolute"; + htmlElementWrapper.style.overflow = "hidden"; + htmlElementWrapper.style.boxSizing = "border-box"; + htmlElementWrapper.style.top = "0px"; + htmlElementWrapper.style.left = "0px"; + htmlElementWrapper.style.width = "100%"; + htmlElementWrapper.style.height = "100%"; + wrapperTarget.events.on("boundschanged", () => { + this._positionHTMLElement(target); + }); + } + htmlElement.style.position = "absolute"; + htmlElement.style.overflow = "auto"; + htmlElement.style.boxSizing = "border-box"; + setInteractive(htmlElement, target.get("interactive", false)); + if (target.events.isEnabled("click")) { + setInteractive(htmlElement, true); + this._disposers.push(addEventListener(htmlElement, "click", (ev) => { + const downEvent = this._renderer.getEvent(ev); + target.events.dispatch("click", { + type: "click", + originalEvent: downEvent.event, + point: downEvent.point, + simulated: false, + target + }); + })); + } + this._positionHTMLElement(target); + if (needWrapper) { + htmlElementWrapper.append(htmlElement); + container.append(htmlElementWrapper); + } else { + container.append(htmlElement); + } + pushOne(this._htmlEnabledContainers, target); + return htmlElement; + } + _positionHTMLElements() { + each(this._htmlEnabledContainers, (target) => { + this._positionHTMLElement(target); + }); + } + _positionHTMLElement(target) { + const htmlElementWrapper = target.getPrivate("htmlElementWrapper"); + if (htmlElementWrapper) { + const wrapperTarget = target.getPrivate("wrapperContainer"); + if (wrapperTarget) { + const bounds = wrapperTarget.globalBounds(); + htmlElementWrapper.style.clipPath = "rect(" + bounds.top + "px " + bounds.right + "px " + bounds.bottom + "px " + bounds.left + "px)"; + } + } + const htmlElement = target.getPrivate("htmlElement"); + if (htmlElement) { + const visualSettings2 = [ + "paddingTop", + "paddingRight", + "paddingBottom", + "paddingLeft", + "minWidth", + "minHeight", + "maxWidth", + "maxHeight" + ]; + each(visualSettings2, (setting) => { + const value = target.get(setting); + if (value) { + htmlElement.style[setting] = value + "px"; + } else { + htmlElement.style[setting] = ""; + } + }); + const strtingSettings = [ + "fontFamily", + "fontSize", + "fontStyle", + "fontWeight", + "fontStyle", + "fontVariant", + "textDecoration" + ]; + each(strtingSettings, (setting) => { + const value = target.get(setting); + if (value) { + if (setting == "fontSize" && !isString(value)) { + htmlElement.style[setting] = value + "px"; + } else { + htmlElement.style[setting] = value + ""; + } + } else { + htmlElement.style[setting] = ""; + } + }); + const scale = target.compositeScale() || 1; + const rotation = target.compositeRotation() || 0; + htmlElement.style.transform = ""; + htmlElement.style.transformOrigin = ""; + const opacity = target.compositeOpacity(); + setTimeout(() => { + htmlElement.style.opacity = opacity + ""; + }, 10); + const visible = target.isVisibleDeep(); + if (visible) { + htmlElement.style.display = "block"; + } + let pos = { + x: target.x() + target.get("dx", 0), + y: target.y() + target.get("dy", 0) + }; + if (target.parent) { + pos = target.parent.toGlobal(pos); + } + htmlElement.style.top = pos.y + "px"; + htmlElement.style.left = pos.x + "px"; + const width = target.get("width"); + const height = target.get("height"); + let w = 0; + let h = 0; + if (width) { + w = target.width(); + } + if (height) { + h = target.height(); + } + if (!width || !height) { + htmlElement.style.position = "fixed"; + htmlElement.style.width = ""; + htmlElement.style.height = ""; + const bbox = htmlElement.getBoundingClientRect(); + htmlElement.style.position = "absolute"; + if (!width) + w = bbox.width; + if (!height) + h = bbox.height; + let lw = w / scale; + let lh = h / scale; + let cx = target.get("centerX", 0); + let cy = target.get("centerY", 0); + let ll = 0; + let lr = 0; + let lt = 0; + let lb = 0; + if (cx instanceof Percent) { + ll = -cx.value * lw; + lr = (1 - cx.value) * lw; + } else { + ll = -cx; + lr = lw - cx; + } + if (cy instanceof Percent) { + lt = -cy.value * lh; + lb = (1 - cy.value) * lh; + } else { + lt = -cy; + lb = lh - cy; + } + target._localBounds = { left: ll, right: lr, top: lt, bottom: lb }; + let previousBounds = target._adjustedLocalBounds; + let newBounds = target._display.getAdjustedBounds(target._localBounds); + target._adjustedLocalBounds = newBounds; + if (previousBounds.left !== newBounds.left || previousBounds.right !== newBounds.right || previousBounds.top !== newBounds.top || previousBounds.bottom !== newBounds.bottom) { + target.markDirtyBounds(); + } + } + if (w > 0) { + htmlElement.style.minWidth = w + "px"; + } + if (h > 0) { + htmlElement.style.minHeight = h + "px"; + } + if (!visible || opacity == 0) { + htmlElement.style.display = "none"; + } + const x = target.get("centerX", 0); + const originX = isPercent(x) ? x.percent + "%" : x + "px"; + const y = target.get("centerY", 0); + const originY = isPercent(y) ? y.percent + "%" : y + "px"; + if (x || y) { + htmlElement.style.transform = "translate(-" + originX + ", -" + originY + ")" + htmlElement.style.transform; + } + if (scale != 1) { + htmlElement.style.transform += "scale(" + scale + ")"; + } + if (rotation != 0) { + htmlElement.style.transform += " rotate(" + rotation + "deg)"; + } + if (htmlElement.style.transform != "") { + htmlElement.style.transformOrigin = originX + " " + originY; + } + } + } + _setHTMLContent(target, html) { + let htmlElement = target.getPrivate("htmlElement"); + if (!htmlElement) { + htmlElement = this._makeHTMLElement(target); + if (!this.autoResize) { + this.resize(); + } + } + if (htmlElement.innerHTML != html) { + htmlElement.innerHTML = html; + } + } + _removeHTMLContent(target) { + const htmlElementWrapper = target.getPrivate("htmlElementWrapper"); + const htmlElement = target.getPrivate("htmlElement"); + if (htmlElementWrapper) { + this._htmlElementContainer.removeChild(htmlElementWrapper); + target.removePrivate("htmlElement"); + target.removePrivate("htmlElementWrapper"); + target.removePrivate("wrapperContainer"); + } else if (htmlElement) { + this._htmlElementContainer.removeChild(htmlElement); + target.removePrivate("htmlElement"); + target.removePrivate("wrapperContainer"); + } + remove(this._htmlEnabledContainers, target); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/render/Bullet.js + var Bullet = class extends Entity { + _afterNew() { + super._afterNewApplyThemes(); + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("sprite")) { + const sprite = this.get("sprite"); + if (sprite) { + sprite.setAll({ position: "absolute", role: "figure" }); + this._disposers.push(sprite); + } + } + if (this.isDirty("locationX") || this.isDirty("locationY")) { + if (this.series) { + this.series._positionBullet(this); + } + } + } + }; + Bullet.className = "Bullet"; + Bullet.classNames = Entity.classNames.concat([Bullet.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/RoundedRectangle.js + var RoundedRectangle = class extends Rectangle { + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("cornerRadiusTL") || this.isDirty("cornerRadiusTR") || this.isDirty("cornerRadiusBR") || this.isDirty("cornerRadiusBL")) { + this._clear = true; + } + } + _draw() { + let width = this.width(); + let height = this.height(); + let wSign = width / Math.abs(width); + let hSign = height / Math.abs(height); + let x = 0; + let y = 0; + const strokeWidth = this.get("strokeWidth", 0); + if (this.get("containStroke", false)) { + width -= wSign * strokeWidth; + height -= hSign * strokeWidth; + x += wSign * strokeWidth / 2; + y += hSign * strokeWidth / 2; + } + let w = width; + let h = height; + if (isNumber(w) && isNumber(h)) { + let minSide = Math.min(w, h) / 2; + let crtl = relativeToValue(this.get("cornerRadiusTL", 8), minSide); + let crtr = relativeToValue(this.get("cornerRadiusTR", 8), minSide); + let crbr = relativeToValue(this.get("cornerRadiusBR", 8), minSide); + let crbl = relativeToValue(this.get("cornerRadiusBL", 8), minSide); + let maxcr = Math.min(Math.abs(w / 2), Math.abs(h / 2)); + crtl = fitToRange(crtl, 0, maxcr); + crtr = fitToRange(crtr, 0, maxcr); + crbr = fitToRange(crbr, 0, maxcr); + crbl = fitToRange(crbl, 0, maxcr); + const display = this._display; + display.moveTo(x + crtl * wSign, y); + display.lineTo(x + w - crtr * wSign, y); + if (crtr > 0) { + display.arcTo(x + w, y, x + w, y + crtr * hSign, crtr); + } + display.lineTo(x + w, y + h - crbr * hSign); + if (crbr > 0) { + display.arcTo(x + w, y + h, x + w - crbr * wSign, y + h, crbr); + } + display.lineTo(x + crbl * wSign, y + h); + if (crbl > 0) { + display.arcTo(x, y + h, x, y + h - crbl * hSign, crbl); + } + display.lineTo(x, y + crtl * hSign); + if (crtl > 0) { + display.arcTo(x, y, x + crtl * wSign, y, crtl); + } + display.closePath(); + } + } + }; + RoundedRectangle.className = "RoundedRectangle"; + RoundedRectangle.classNames = Rectangle.classNames.concat([RoundedRectangle.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Button.js + var Button = class extends Container { + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["button"]); + super._afterNew(); + if (!this._settings.background) { + this.set("background", RoundedRectangle.new(this._root, { + themeTags: mergeTags(this._settings.themeTags, ["background"]) + })); + } + this.setPrivate("trustBounds", true); + } + _prepareChildren() { + super._prepareChildren(); + if (this.isDirty("icon")) { + const previous = this._prevSettings.icon; + const icon = this.get("icon"); + if (icon !== previous) { + this._disposeProperty("icon"); + if (previous) { + previous.dispose(); + } + if (icon) { + this.children.push(icon); + } + this._prevSettings.icon = icon; + } + } + if (this.isDirty("label")) { + const previous = this._prevSettings.label; + const label = this.get("label"); + if (label !== previous) { + this._disposeProperty("label"); + if (previous) { + previous.dispose(); + } + if (label) { + this.children.push(label); + } + this._prevSettings.label = label; + } + } + } + }; + Button.className = "Button"; + Button.classNames = Container.classNames.concat([Button.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Circle.js + var Circle = class extends Graphics { + _afterNew() { + super._afterNew(); + this._display.isMeasured = true; + this.setPrivateRaw("trustBounds", true); + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("radius")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear) { + this._display.drawCircle(0, 0, Math.abs(this.get("radius", 10))); + } + } + }; + Circle.className = "Circle"; + Circle.classNames = Graphics.classNames.concat([Circle.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/Data.js + var ListData = class extends List { + /** + * @ignore + */ + incrementRef() { + } + /** + * @ignore + */ + decrementRef() { + } + _onPush(newValue) { + if (this.processor) { + this.processor.processRow(newValue); + } + super._onPush(newValue); + } + _onInsertIndex(index, newValue) { + if (this.processor) { + this.processor.processRow(newValue); + } + super._onInsertIndex(index, newValue); + } + _onSetIndex(index, oldValue, newValue) { + if (this.processor) { + this.processor.processRow(newValue); + } + super._onSetIndex(index, oldValue, newValue); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/core/render/Component.js + var DataItem = class extends Settings { + constructor(component, dataContext, settings) { + super(settings); + this.dataContext = dataContext; + this.component = component; + this._settings.visible = true; + this._checkDirty(); + } + /** + * @ignore + */ + markDirty() { + this.component.markDirtyValues(this); + } + _startAnimation() { + this.component._root._addAnimation(this); + } + _animationTime() { + return this.component._root.animationTime; + } + _dispose() { + if (this.component) { + this.component.disposeDataItem(this); + } + super._dispose(); + } + /** + * Shows a data item that's currently hidden. + */ + show(duration) { + this.setRaw("visible", true); + if (this.component) { + this.component.showDataItem(this, duration); + } + } + /** + * Hides a data item that's currently visible. + */ + hide(duration) { + this.setRaw("visible", false); + if (this.component) { + this.component.hideDataItem(this, duration); + } + } + isHidden() { + return !this.get("visible"); + } + }; + var Component = class extends Container { + constructor() { + super(...arguments); + this._data = new ListData(); + this._dataItems = []; + this._mainDataItems = this._dataItems; + this.valueFields = []; + this.fields = ["id"]; + this._valuesDirty = false; + this._dataChanged = false; + this._dataGrouped = false; + this.inited = false; + } + /** + * Component's data. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/data/} for more info + */ + set data(data2) { + data2.incrementRef(); + this._data.decrementRef(); + this._data = data2; + } + /** + * @return Data + */ + get data() { + return this._data; + } + _dispose() { + super._dispose(); + this._data.decrementRef(); + } + _onDataClear() { + } + _afterNew() { + super._afterNew(); + this._data.incrementRef(); + this._updateFields(); + this._disposers.push(this.data.events.onAll((change) => { + const dataItems = this._mainDataItems; + this.markDirtyValues(); + this._markDirtyGroup(); + this._dataChanged = true; + if (change.type === "clear") { + each(dataItems, (dataItem) => { + dataItem.dispose(); + }); + dataItems.length = 0; + this._onDataClear(); + } else if (change.type === "push") { + const dataItem = new DataItem(this, change.newValue, this._makeDataItem(change.newValue)); + dataItems.push(dataItem); + this.processDataItem(dataItem); + } else if (change.type === "setIndex") { + const dataItem = dataItems[change.index]; + const properties = this._makeDataItem(change.newValue); + if (dataItem.bullets && dataItem.bullets.length == 0) { + dataItem.bullets = void 0; + } + entries(properties).forEach(([key, value]) => { + if (dataItem.get(key) == value) { + return; + } + dataItem.animate({ + key, + to: value, + duration: this.get("interpolationDuration", 0), + easing: this.get("interpolationEasing") + }); + }); + dataItem.dataContext = change.newValue; + } else if (change.type === "insertIndex") { + const dataItem = new DataItem(this, change.newValue, this._makeDataItem(change.newValue)); + dataItems.splice(change.index, 0, dataItem); + this.processDataItem(dataItem); + } else if (change.type === "removeIndex") { + const dataItem = dataItems[change.index]; + dataItem.dispose(); + dataItems.splice(change.index, 1); + } else if (change.type === "moveIndex") { + const dataItem = dataItems[change.oldIndex]; + dataItems.splice(change.oldIndex, 1); + dataItems.splice(change.newIndex, 0, dataItem); + } else { + throw new Error("Unknown IStreamEvent type"); + } + this._afterDataChange(); + })); + } + _postUpdateData() { + } + /** + * Updates existing data in the component without disposing old data items. If there are more data items than before, new ones will be created. If there are less, old ones will be removed. + * @param data + */ + updateData(data2) { + let ii = 0; + each(data2, (dataObject, index) => { + const dataItem = this.dataItems[index]; + if (!dataItem) { + this.data.push(dataObject); + } else { + const dataContext = dataItem.dataContext; + if (dataContext) { + entries(dataObject).forEach(([key, value]) => { + dataContext[key] = value; + }); + } + const properties = this._makeDataItem(dataContext); + entries(properties).forEach(([key, value]) => { + var _a; + if (dataItem.get(key) != value) { + dataItem.set(key, value); + const workingKey = (_a = this._valueFieldsF[key]) === null || _a === void 0 ? void 0 : _a.workingKey; + if (workingKey) { + dataItem.set(workingKey, value); + } + } + }); + } + ii = index; + }); + for (let i = this.dataItems.length - 1; i > ii; i--) { + const dataItem = this.dataItems[i]; + remove(this.dataItems, dataItem); + dataItem.dispose(); + } + this._postUpdateData(); + } + _updateFields() { + if (this.valueFields) { + this._valueFields = []; + this._valueFieldsF = {}; + each(this.valueFields, (key) => { + const field = this.get(key + "Field"); + if (field) { + this._valueFields.push(key); + this._valueFieldsF[key] = { fieldKey: key + "Field", workingKey: key + "Working" }; + } + }); + } + if (this.fields) { + this._fields = []; + this._fieldsF = {}; + each(this.fields, (key) => { + const field = this.get(key + "Field"); + if (field) { + this._fields.push(key); + this._fieldsF[key] = key + "Field"; + } + }); + } + } + /** + * A list of component's data items. + * + * @return Data items + */ + get dataItems() { + return this._dataItems; + } + processDataItem(_dataItem) { + } + _makeDataItem(data2) { + const output = {}; + if (this._valueFields) { + each(this._valueFields, (key) => { + const field = this.get(this._valueFieldsF[key].fieldKey); + output[key] = data2[field]; + output[this._valueFieldsF[key].workingKey] = output[key]; + }); + } + if (this._fields) { + each(this._fields, (key) => { + const field = this.get(this._fieldsF[key]); + output[key] = data2[field]; + }); + } + return output; + } + /** + * Creates a new data item and processes it. + * + * @param data Data item settings + * @param dataContext Data context + * @return New data item + */ + makeDataItem(data2, dataContext) { + let dataItem = new DataItem(this, dataContext, data2); + this.processDataItem(dataItem); + return dataItem; + } + /** + * Adds new explicit data item to series. + * + * @param data Data item settings + * @param dataContext Data context + * @return New data item + */ + pushDataItem(data2, dataContext) { + const dataItem = this.makeDataItem(data2, dataContext); + this._mainDataItems.push(dataItem); + return dataItem; + } + /** + * @ignore + */ + disposeDataItem(_dataItem) { + } + /** + * Shows component's data item. + * + * @param dataItem Data item + * @param _duration Animation duration in milliseconds + * @return Promise + */ + showDataItem(dataItem, _duration) { + return __awaiter(this, void 0, void 0, function* () { + dataItem.set("visible", true); + }); + } + /** + * Hides component's data item. + * + * @param dataItem Data item + * @param _duration Animation duration in milliseconds + * @return Promise + */ + hideDataItem(dataItem, _duration) { + return __awaiter(this, void 0, void 0, function* () { + dataItem.set("visible", false); + }); + } + _clearDirty() { + super._clearDirty(); + this._valuesDirty = false; + } + _afterDataChange() { + } + _afterChanged() { + super._afterChanged(); + if (this._dataChanged) { + const type = "datavalidated"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this }); + } + this._dataChanged = false; + } + if (this._valuesDirty) { + const type = "valueschanged"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this }); + } + } + this.inited = true; + } + /** + * Forces a repaint of the element which relies on data. + * + * @since 5.0.21 + */ + markDirtyValues(_dataItem) { + this.markDirty(); + this._valuesDirty = true; + } + _markDirtyGroup() { + this._dataGrouped = false; + } + /** + * @ignore + */ + markDirtySize() { + this._sizeDirty = true; + this.markDirty(); + } + /** + * Looks up and returns a data item by its ID. + * + * @param id ID + * @return Data item + */ + getDataItemById(id) { + return find(this.dataItems, (dataItem) => { + return dataItem.get("id") == id; + }); + } + }; + Component.className = "Component"; + Component.classNames = Container.classNames.concat([Component.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/Time.js + function sleep(ms) { + return new Promise((resolve, _reject) => { + setTimeout(resolve, ms); + }); + } + var timeUnitDurations = { + millisecond: 1, + second: 1e3, + minute: 6e4, + hour: 36e5, + day: 864e5, + week: 6048e5, + month: 365.242 / 12 * 864e5, + year: 31536e6 + }; + function getDuration(unit, count) { + if (count == null) { + count = 1; + } + return timeUnitDurations[unit] * count; + } + function round2(date, unit, count, firstDateOfWeek, utc, firstDate, timezone) { + if (!timezone || utc) { + let timeZoneOffset = 0; + if (!utc && unit != "millisecond") { + timeZoneOffset = date.getTimezoneOffset(); + date.setUTCMinutes(date.getUTCMinutes() - timeZoneOffset); + } + switch (unit) { + case "day": + let day = date.getUTCDate(); + if (count > 1) { + if (firstDate) { + firstDate = round2(firstDate, "day", 1); + let difference = date.getTime() - firstDate.getTime(); + let unitCount = Math.floor(difference / getDuration("day") / count); + let duration = getDuration("day", unitCount * count); + date.setTime(firstDate.getTime() + duration - timeZoneOffset * getDuration("minute")); + } + } else { + date.setUTCDate(day); + } + date.setUTCHours(0, 0, 0, 0); + break; + case "second": + let seconds = date.getUTCSeconds(); + if (count > 1) { + seconds = Math.floor(seconds / count) * count; + } + date.setUTCSeconds(seconds, 0); + break; + case "millisecond": + if (count == 1) { + return date; + } + let milliseconds = date.getUTCMilliseconds(); + milliseconds = Math.floor(milliseconds / count) * count; + date.setUTCMilliseconds(milliseconds); + break; + case "hour": + let hours = date.getUTCHours(); + if (count > 1) { + hours = Math.floor(hours / count) * count; + } + date.setUTCHours(hours, 0, 0, 0); + break; + case "minute": + let minutes = date.getUTCMinutes(); + if (count > 1) { + minutes = Math.floor(minutes / count) * count; + } + date.setUTCMinutes(minutes, 0, 0); + break; + case "month": + let month = date.getUTCMonth(); + if (count > 1) { + if (count == 2 || count == 3 || count == 4 || count == 6) { + month = Math.floor(month / count) * count; + } + } + date.setUTCMonth(month, 1); + date.setUTCHours(0, 0, 0, 0); + break; + case "year": + let year = date.getUTCFullYear(); + if (count > 1) { + year = Math.floor(year / count) * count; + } + date.setUTCFullYear(year, 0, 1); + date.setUTCHours(0, 0, 0, 0); + break; + case "week": + if (count > 1) { + if (firstDate) { + firstDate = round2(firstDate, "week", 1); + let difference = date.getTime() - firstDate.getTime(); + let unitCount = Math.floor(difference / getDuration("week") / count); + let duration = getDuration("week", unitCount * count); + date.setTime(firstDate.getTime() + duration - timeZoneOffset * getDuration("minute")); + } + } + let wday = date.getUTCDate(); + let weekDay = date.getUTCDay(); + if (!isNumber(firstDateOfWeek)) { + firstDateOfWeek = 1; + } + if (weekDay >= firstDateOfWeek) { + wday = wday - weekDay + firstDateOfWeek; + } else { + wday = wday - (7 + weekDay) + firstDateOfWeek; + } + date.setUTCDate(wday); + date.setUTCHours(0, 0, 0, 0); + break; + } + if (!utc && unit != "millisecond") { + date.setUTCMinutes(date.getUTCMinutes() + timeZoneOffset); + if (unit == "day" || unit == "week" || unit == "month" || unit == "year") { + let newTimeZoneOffset = date.getTimezoneOffset(); + if (newTimeZoneOffset != timeZoneOffset) { + let diff = newTimeZoneOffset - timeZoneOffset; + date.setUTCMinutes(date.getUTCMinutes() + diff); + } + } + } + return date; + } else { + if (isNaN(date.getTime())) { + return date; + } + let initialTime = date.getTime(); + let tzoffset = timezone.offsetUTC(date); + let timeZoneOffset = date.getTimezoneOffset(); + let parsedDate = timezone.parseDate(date); + let year = parsedDate.year; + let month = parsedDate.month; + let day = parsedDate.day; + let hour = parsedDate.hour; + let minute = parsedDate.minute; + let second = parsedDate.second; + let millisecond = parsedDate.millisecond; + let weekday = parsedDate.weekday; + let offsetDif = tzoffset - timeZoneOffset; + switch (unit) { + case "day": + if (count > 1 && firstDate) { + firstDate = round2(firstDate, "day", 1, firstDateOfWeek, utc, void 0, timezone); + let difference = date.getTime() - firstDate.getTime(); + let unitCount = Math.floor(difference / getDuration("day") / count); + let duration = getDuration("day", unitCount * count); + date.setTime(firstDate.getTime() + duration); + parsedDate = timezone.parseDate(date); + year = parsedDate.year; + month = parsedDate.month; + day = parsedDate.day; + } + hour = 0; + minute = offsetDif; + second = 0; + millisecond = 0; + break; + case "second": + minute += offsetDif; + if (count > 1) { + second = Math.floor(second / count) * count; + } + millisecond = 0; + break; + case "millisecond": + minute += offsetDif; + if (count > 1) { + millisecond = Math.floor(millisecond / count) * count; + } + break; + case "hour": + if (count > 1) { + hour = Math.floor(hour / count) * count; + } + minute = offsetDif; + second = 0; + millisecond = 0; + break; + case "minute": + if (count > 1) { + minute = Math.floor(minute / count) * count; + } + minute += offsetDif; + second = 0; + millisecond = 0; + break; + case "month": + if (count > 1) { + month = Math.floor(month / count) * count; + } + day = 1; + hour = 0; + minute = offsetDif; + second = 0; + millisecond = 0; + break; + case "year": + if (count > 1) { + year = Math.floor(year / count) * count; + } + month = 0; + day = 1; + hour = 0; + minute = offsetDif; + second = 0; + millisecond = 0; + break; + case "week": + if (!isNumber(firstDateOfWeek)) { + firstDateOfWeek = 1; + } + if (weekday >= firstDateOfWeek) { + day = day - weekday + firstDateOfWeek; + } else { + day = day - (7 + weekday) + firstDateOfWeek; + } + hour = 0; + minute = offsetDif; + second = 0; + millisecond = 0; + break; + } + date = new Date(year, month, day, hour, minute, second, millisecond); + const newTime = date.getTime(); + let hDuration = 36e5; + if (unit == "hour") { + hDuration = 36e5 * count; + } + if (newTime + hDuration <= initialTime) { + if (unit == "hour" || unit == "minute" || unit == "second" || unit == "millisecond") { + date = new Date(newTime + hDuration); + } + } + let newTimeZoneOffset = date.getTimezoneOffset(); + let newTzoffset = timezone.offsetUTC(date); + let newDiff = newTzoffset - newTimeZoneOffset; + if (newDiff != offsetDif) { + date.setTime(date.getTime() + (newDiff - offsetDif) * 6e4); + } + return date; + } + } + + // node_modules/@amcharts/amcharts5/.internal/core/render/Series.js + var Series = class extends Component { + constructor() { + super(...arguments); + this._aggregatesCalculated = false; + this._selectionAggregatesCalculated = false; + this._dataProcessed = false; + this._baseSeriesDirty = false; + this.bullets = new List(); + this.bulletsContainer = Container.new(this._root, { width: p100, height: p100, position: "absolute" }); + } + _afterNew() { + this.valueFields.push("value", "customValue"); + super._afterNew(); + this.setPrivate("customData", {}); + this._disposers.push(this.bullets.events.onAll(() => { + this._handleBullets(this.dataItems); + })); + } + _dispose() { + this.bulletsContainer.dispose(); + super._dispose(); + } + startIndex() { + let len = this.dataItems.length; + return Math.min(this.getPrivate("startIndex", 0), len); + } + endIndex() { + let len = this.dataItems.length; + return Math.max(0, Math.min(this.getPrivate("endIndex", len), len)); + } + _handleBullets(dataItems) { + each(dataItems, (dataItem) => { + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + bullet.dispose(); + }); + dataItem.bullets = void 0; + } + }); + this.markDirtyValues(); + } + _makeBullets(dataItem) { + if (this._shouldMakeBullet(dataItem)) { + dataItem.bullets = []; + this.bullets.each((bulletFunction) => { + this._makeBullet(dataItem, bulletFunction); + }); + } + } + _shouldMakeBullet(_dataItem) { + return true; + } + _makeBullet(dataItem, bulletFunction, index) { + const bullet = bulletFunction(this._root, this, dataItem); + if (bullet) { + bullet._index = index; + this._makeBulletReal(dataItem, bullet); + } + return bullet; + } + _makeBulletReal(dataItem, bullet) { + let sprite = bullet.get("sprite"); + if (sprite) { + sprite._setDataItem(dataItem); + sprite.setRaw("position", "absolute"); + this.bulletsContainer.children.push(sprite); + } + bullet.series = this; + dataItem.bullets.push(bullet); + } + /** + * Adds bullet directly to a data item. + * + * Please note: method accepts [[Bullet]] instance as a paramter, not a + * reference to a function. + * + * You should add Bullet instance, not a method like you do it on series. + * + * @see {@link https://www.amcharts.com/docs/v5/concepts/common-elements/bullets/#Adding_directly_to_data_item} for more info + * @since 5.6.0 + * + * @param dataItem Target data item + * @param bullet Bullet instance + */ + addBullet(dataItem, bullet) { + if (!dataItem.bullets) { + dataItem.bullets = []; + } + if (bullet) { + this._makeBulletReal(dataItem, bullet); + } + } + _clearDirty() { + super._clearDirty(); + this._aggregatesCalculated = false; + this._baseSeriesDirty = false; + this._selectionAggregatesCalculated = false; + } + _prepareChildren() { + super._prepareChildren(); + const dataItems = this.dataItems; + const count = dataItems.length; + let startIndex = this.startIndex(); + let endIndex = this.endIndex(); + if (this.isDirty("name")) { + this.updateLegendValue(); + } + if (this.isDirty("heatRules")) { + this._valuesDirty = true; + } + if (this.isPrivateDirty("baseValueSeries")) { + const baseValueSeries = this.getPrivate("baseValueSeries"); + if (baseValueSeries) { + this._disposers.push(baseValueSeries.onPrivate("startIndex", () => { + this._baseSeriesDirty = true; + this.markDirtyValues(); + })); + } + } + const calculateAggregates = this.get("calculateAggregates"); + if (calculateAggregates) { + if (this._valuesDirty && !this._dataProcessed) { + if (!this._aggregatesCalculated) { + this._calculateAggregates(0, count); + this._aggregatesCalculated = true; + if (startIndex != 0) { + this._psi = void 0; + } + } + } + if ((this._psi != startIndex || this._pei != endIndex || this.isPrivateDirty("adjustedStartIndex")) && !this._selectionAggregatesCalculated) { + if (startIndex === 0 && endIndex === count && this._aggregatesCalculated) { + } else { + this._calculateAggregates(startIndex, endIndex); + } + this._selectionAggregatesCalculated = true; + } + } + if (this.isDirty("tooltip")) { + let tooltip = this.get("tooltip"); + if (tooltip) { + tooltip.hide(0); + tooltip.set("tooltipTarget", this); + } + } + if (this.isDirty("fill") || this.isDirty("stroke")) { + let markerRectangle; + const legendDataItem = this.get("legendDataItem"); + if (legendDataItem) { + markerRectangle = legendDataItem.get("markerRectangle"); + if (markerRectangle) { + if (this.isVisible()) { + if (this.isDirty("stroke")) { + let stroke = this.get("stroke"); + markerRectangle.set("stroke", stroke); + } + if (this.isDirty("fill")) { + let fill = this.get("fill"); + markerRectangle.set("fill", fill); + } + } + } + } + this.updateLegendMarker(void 0); + } + if (this.bullets.length > 0) { + let startIndex2 = this.startIndex(); + let endIndex2 = this.endIndex(); + if (endIndex2 < count) { + endIndex2++; + } + for (let i = startIndex2; i < endIndex2; i++) { + let dataItem = dataItems[i]; + if (!dataItem.bullets) { + this._makeBullets(dataItem); + } + } + } + } + _handleRemoved() { + } + /** + * @ignore + */ + _adjustStartIndex(index) { + return index; + } + _calculateAggregates(startIndex, endIndex) { + let fields = this._valueFields; + if (!fields) { + throw new Error("No value fields are set for the series."); + } + const excludeFromAggregate = this.get("excludeFromAggregate"); + if (excludeFromAggregate) { + fields = fields.filter((field) => { + return excludeFromAggregate.indexOf(field) == -1; + }); + } + const sum = {}; + const absSum = {}; + const count = {}; + const low = {}; + const high = {}; + const open2 = {}; + const close2 = {}; + const average = {}; + const previous = {}; + for (let f = 0, flen = fields.length; f < flen; f++) { + let key = fields[f]; + sum[key] = 0; + absSum[key] = 0; + count[key] = 0; + } + const dataItems = this.dataItems; + const len = dataItems.length; + for (let f = 0, flen = fields.length; f < flen; f++) { + let key = fields[f]; + let change = key + "Change"; + let changePercent = key + "ChangePercent"; + let changePrevious = key + "ChangePrevious"; + let changePreviousPercent = key + "ChangePreviousPercent"; + let changeSelection = key + "ChangeSelection"; + let changeSelectionPercent = key + "ChangeSelectionPercent"; + let openKey = "valueY"; + if (key === "valueX" || key.endsWith("ValueX")) { + openKey = "valueX"; + } + const baseValueSeries = this.getPrivate("baseValueSeries"); + const adjustedStartIndex = this.getPrivate("adjustedStartIndex", startIndex); + const calculateChangesForItem = (dataItem, value, key2) => { + if (startIndex === 0) { + const openValue = open2[openKey]; + const changeValue = value - openValue; + dataItem.setRaw(change, changeValue); + dataItem.setRaw(changePercent, changeValue / openValue * 100); + } + const changePreviousValue = value - previous[openKey]; + const changeSelectionValue = value - open2[openKey]; + dataItem.setRaw(changePrevious, changePreviousValue); + dataItem.setRaw(changePreviousPercent, changePreviousValue / previous[openKey] * 100); + dataItem.setRaw(changeSelection, changeSelectionValue); + dataItem.setRaw(changeSelectionPercent, changeSelectionValue / open2[openKey] * 100); + previous[key2] = value; + }; + for (let i = adjustedStartIndex; i < endIndex; i++) { + const dataItem = dataItems[i]; + if (dataItem) { + let value = dataItem.get(key); + if (value != null) { + if (low[key] == null) { + low[key] = value; + } + if (high[key] == null) { + high[key] = value; + } + if (open2[key] == null) { + open2[key] = value; + previous[key] = value; + if (baseValueSeries) { + open2[openKey] = baseValueSeries._getBase(openKey); + } + } + break; + } + } + } + for (let i = adjustedStartIndex; i < endIndex; i++) { + const dataItem = dataItems[i]; + if (dataItem) { + let value = dataItem._settings[key]; + if (value != null) { + count[key]++; + sum[key] += value; + absSum[key] += Math.abs(value); + if (low[key] > value) { + low[key] = value; + } + if (high[key] < value) { + high[key] = value; + } + close2[key] = value; + calculateChangesForItem(dataItem, value, key); + } + } + } + average[key] = sum[key] / count[key]; + if (endIndex < len) { + const dataItem = dataItems[endIndex]; + if (dataItem) { + let value = dataItem.get(key); + if (value != null) { + calculateChangesForItem(dataItem, value, key); + } + } + } + if (endIndex + 1 < len) { + const dataItem = dataItems[endIndex + 1]; + if (dataItem) { + let value = dataItem.get(key); + if (value != null) { + calculateChangesForItem(dataItem, value, key); + } + } + } + if (startIndex > 0) { + startIndex--; + } + delete previous[key]; + for (let i = startIndex; i < adjustedStartIndex; i++) { + const dataItem = dataItems[i]; + if (dataItem) { + let value = dataItem.get(key); + if (previous[key] == null) { + previous[key] = value; + } + if (value != null) { + calculateChangesForItem(dataItem, value, key); + } + } + } + } + for (let f = 0, flen = fields.length; f < flen; f++) { + let key = fields[f]; + this.setPrivate(key + "AverageSelection", average[key]); + this.setPrivate(key + "CountSelection", count[key]); + this.setPrivate(key + "SumSelection", sum[key]); + this.setPrivate(key + "AbsoluteSumSelection", absSum[key]); + this.setPrivate(key + "LowSelection", low[key]); + this.setPrivate(key + "HighSelection", high[key]); + this.setPrivate(key + "OpenSelection", open2[key]); + this.setPrivate(key + "CloseSelection", close2[key]); + } + if (startIndex === 0 && endIndex === len) { + for (let f = 0, flen = fields.length; f < flen; f++) { + let key = fields[f]; + this.setPrivate(key + "Average", average[key]); + this.setPrivate(key + "Count", count[key]); + this.setPrivate(key + "Sum", sum[key]); + this.setPrivate(key + "AbsoluteSum", absSum[key]); + this.setPrivate(key + "Low", low[key]); + this.setPrivate(key + "High", high[key]); + this.setPrivate(key + "Open", open2[key]); + this.setPrivate(key + "Close", close2[key]); + } + } + } + _updateChildren() { + super._updateChildren(); + this._psi = this.startIndex(); + this._pei = this.endIndex(); + if (this.isDirty("visible")) { + this.bulletsContainer.set("visible", this.get("visible")); + } + const rules = this.get("heatRules"); + if (this._valuesDirty && rules && rules.length > 0) { + each(rules, (rule) => { + const minValue = rule.minValue || this.getPrivate(rule.dataField + "Low") || 0; + const maxValue = rule.maxValue || this.getPrivate(rule.dataField + "High") || 0; + each(rule.target._entities, (target) => { + const value = target.dataItem.get(rule.dataField); + if (!isNumber(value)) { + if (rule.neutral) { + target.set(rule.key, rule.neutral); + } + const states = target.states; + if (states) { + const defaultState = states.lookup("default"); + if (defaultState && rule.neutral) { + defaultState.set(rule.key, rule.neutral); + } + } + if (!rule.customFunction) { + return; + } + } + if (rule.customFunction) { + rule.customFunction.call(this, target, minValue, maxValue, value); + } else { + let percent2; + if (rule.logarithmic) { + percent2 = (Math.log(value) * Math.LOG10E - Math.log(minValue) * Math.LOG10E) / (Math.log(maxValue) * Math.LOG10E - Math.log(minValue) * Math.LOG10E); + } else { + percent2 = (value - minValue) / (maxValue - minValue); + } + if (isNumber(value) && (!isNumber(percent2) || Math.abs(percent2) == Infinity)) { + percent2 = 0.5; + } + let propertyValue; + if (isNumber(rule.min)) { + propertyValue = rule.min + (rule.max - rule.min) * percent2; + } else if (rule.min instanceof Color) { + propertyValue = Color.interpolate(percent2, rule.min, rule.max); + } else if (rule.min instanceof Percent) { + propertyValue = percentInterpolate(percent2, rule.min, rule.max); + } + target.set(rule.key, propertyValue); + const states = target.states; + if (states) { + const defaultState = states.lookup("default"); + if (defaultState) { + defaultState.set(rule.key, propertyValue); + } + } + } + }); + }); + } + if (this.get("visible")) { + const dataItems = this.dataItems; + let count = dataItems.length; + let startIndex = this.startIndex(); + let endIndex = this.endIndex(); + if (endIndex < count) { + endIndex++; + } + if (startIndex > 0) { + startIndex--; + } + for (let i = 0; i < startIndex; i++) { + this._hideBullets(dataItems[i]); + } + for (let i = startIndex; i < endIndex; i++) { + this._positionBullets(dataItems[i]); + } + for (let i = endIndex; i < count; i++) { + this._hideBullets(dataItems[i]); + } + } + } + _positionBullets(dataItem) { + if (dataItem.bullets) { + each(dataItem.bullets, (bullet) => { + this._positionBullet(bullet); + const sprite = bullet.get("sprite"); + if (bullet.get("dynamic")) { + if (sprite) { + sprite._markDirtyKey("fill"); + sprite.markDirtySize(); + } + if (sprite instanceof Container) { + sprite.walkChildren((child) => { + child._markDirtyKey("fill"); + child.markDirtySize(); + if (child instanceof Label) { + child.text.markDirtyText(); + } + }); + } + } + if (sprite instanceof Label && sprite.get("populateText")) { + sprite.text.markDirtyText(); + } + }); + } + } + _hideBullets(dataItem) { + if (dataItem.bullets) { + each(dataItem.bullets, (bullet) => { + let sprite = bullet.get("sprite"); + if (sprite) { + sprite.setPrivate("visible", false); + } + }); + } + } + _positionBullet(_bullet) { + } + _placeBulletsContainer(chart2) { + chart2.bulletsContainer.children.moveValue(this.bulletsContainer); + } + _removeBulletsContainer() { + const bulletsContainer = this.bulletsContainer; + if (bulletsContainer.parent) { + bulletsContainer.parent.children.removeValue(bulletsContainer); + } + } + /** + * @ignore + */ + disposeDataItem(dataItem) { + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + bullet.dispose(); + }); + dataItem.bullets = void 0; + } + } + _getItemReaderLabel() { + return ""; + } + /** + * Shows series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + showDataItem(dataItem, duration) { + const _super = Object.create(null, { + showDataItem: { get: () => super.showDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.showDataItem.call(this, dataItem, duration)]; + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + const sprite = bullet.get("sprite"); + if (sprite) { + promises.push(sprite.show(duration)); + } + }); + } + yield Promise.all(promises); + }); + } + /** + * Hides series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + hideDataItem(dataItem, duration) { + const _super = Object.create(null, { + hideDataItem: { get: () => super.hideDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.hideDataItem.call(this, dataItem, duration)]; + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + const sprite = bullet.get("sprite"); + if (sprite) { + promises.push(sprite.hide(duration)); + } + }); + } + yield Promise.all(promises); + }); + } + _sequencedShowHide(show, duration) { + return __awaiter(this, void 0, void 0, function* () { + if (this.get("sequencedInterpolation")) { + if (!isNumber(duration)) { + duration = this.get("interpolationDuration", 0); + } + if (duration > 0) { + const startIndex = this.startIndex(); + const endIndex = this.endIndex(); + yield Promise.all(map(this.dataItems, (dataItem, i) => __awaiter(this, void 0, void 0, function* () { + let realDuration = duration || 0; + if (i < startIndex - 10 || i > endIndex + 10) { + realDuration = 0; + } + let delay = this.get("sequencedDelay", 0) + realDuration / (endIndex - startIndex); + yield sleep(delay * (i - startIndex)); + if (show) { + yield this.showDataItem(dataItem, realDuration); + } else { + yield this.hideDataItem(dataItem, realDuration); + } + }))); + } else { + yield Promise.all(map(this.dataItems, (dataItem) => { + if (show) { + return this.showDataItem(dataItem, 0); + } else { + return this.hideDataItem(dataItem, 0); + } + })); + } + } + }); + } + /** + * @ignore + */ + updateLegendValue(dataItem) { + if (dataItem) { + const legendDataItem = dataItem.get("legendDataItem"); + if (legendDataItem) { + const valueLabel = legendDataItem.get("valueLabel"); + if (valueLabel) { + const text = valueLabel.text; + let txt = ""; + valueLabel._setDataItem(dataItem); + txt = this.get("legendValueText", text.get("text", "")); + valueLabel.set("text", txt); + text.markDirtyText(); + } + const label = legendDataItem.get("label"); + if (label) { + const text = label.text; + let txt = ""; + label._setDataItem(dataItem); + txt = this.get("legendLabelText", text.get("text", "")); + label.set("text", txt); + text.markDirtyText(); + } + } + } + } + /** + * @ignore + */ + updateLegendMarker(_dataItem) { + } + _onHide() { + super._onHide(); + const tooltip = this.getTooltip(); + if (tooltip) { + tooltip.hide(); + } + } + /** + * @ignore + */ + hoverDataItem(_dataItem) { + } + /** + * @ignore + */ + unhoverDataItem(_dataItem) { + } + /** + * @ignore + */ + _getBase(key) { + const dataItem = this.dataItems[this.startIndex()]; + if (dataItem) { + return dataItem.get(key); + } + return 0; + } + }; + Series.className = "Series"; + Series.classNames = Component.classNames.concat([Series.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/Draw.js + function segmentedLine(display, segments) { + for (let s2 = 0, len = segments.length; s2 < len; s2++) { + const groups = segments[s2]; + if (groups.length > 0) { + let firstGroup = groups[0]; + if (firstGroup.length > 0) { + let firstPoint = firstGroup[0]; + display.moveTo(firstPoint.x, firstPoint.y); + for (let g = 0, len2 = groups.length; g < len2; g++) { + line(display, groups[g]); + } + } + } + } + } + function line(display, points) { + for (let p = 0, len = points.length; p < len; p++) { + const point = points[p]; + display.lineTo(point.x, point.y); + } + } + + // node_modules/@amcharts/amcharts5/.internal/core/render/Line.js + var Line = class extends Graphics { + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("points") || this.isDirty("segments") || this._sizeDirty || this.isPrivateDirty("width") || this.isPrivateDirty("height")) { + this._clear = true; + } + } + _changed() { + super._changed(); + if (this._clear) { + const points = this.get("points"); + const segments = this.get("segments"); + if (points && points.length > 0) { + let point = points[0]; + this._display.moveTo(point.x, point.y); + segmentedLine(this._display, [[points]]); + } else if (segments) { + segmentedLine(this._display, segments); + } else if (!this.get("draw")) { + let w = this.width(); + let h = this.height(); + this._display.moveTo(0, 0); + this._display.lineTo(w, h); + } + } + } + }; + Line.className = "Line"; + Line.classNames = Graphics.classNames.concat([Line.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Chart.js + var Chart = class extends Container { + constructor() { + super(...arguments); + this.chartContainer = this.children.push(Container.new(this._root, { width: p100, height: p100, interactiveChildren: false })); + this.bulletsContainer = Container.new(this._root, { interactiveChildren: false, isMeasured: false, position: "absolute", width: p100, height: p100 }); + } + }; + Chart.className = "Chart"; + Chart.classNames = Container.classNames.concat([Chart.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/SerialChart.js + var SerialChart = class extends Chart { + constructor() { + super(...arguments); + this.seriesContainer = Container.new(this._root, { width: p100, height: p100, isMeasured: false }); + this.series = new ListAutoDispose(); + } + _afterNew() { + super._afterNew(); + this._disposers.push(this.series); + const children = this.seriesContainer.children; + this._disposers.push(this.series.events.onAll((change) => { + if (change.type === "clear") { + each(change.oldValues, (series2) => { + this._removeSeries(series2); + }); + const colors = this.get("colors"); + if (colors) { + colors.reset(); + } + const patterns = this.get("patterns"); + if (patterns) { + patterns.reset(); + } + } else if (change.type === "push") { + children.moveValue(change.newValue); + this._processSeries(change.newValue); + } else if (change.type === "setIndex") { + children.setIndex(change.index, change.newValue); + this._processSeries(change.newValue); + } else if (change.type === "insertIndex") { + children.insertIndex(change.index, change.newValue); + this._processSeries(change.newValue); + } else if (change.type === "removeIndex") { + this._removeSeries(change.oldValue); + } else if (change.type === "moveIndex") { + children.moveValue(change.value, change.newIndex); + this._processSeries(change.value); + } else if (change.type === "swap") { + const a = change.a; + const b = change.b; + const aIndex = this.series.indexOf(a); + const bIndex = this.series.indexOf(b); + children.moveValue(a, bIndex); + children.moveValue(b, aIndex); + this.series.each((series2) => { + this._processSeries(series2); + series2.markDirtyValues(); + }); + } else { + throw new Error("Unknown IListEvent type"); + } + })); + } + _processSeries(series2) { + series2.chart = this; + series2._placeBulletsContainer(this); + } + _removeSeries(series2) { + series2._handleRemoved(); + if (!series2.isDisposed()) { + this.seriesContainer.children.removeValue(series2); + series2._removeBulletsContainer(); + } + } + }; + SerialChart.className = "SerialChart"; + SerialChart.classNames = Chart.classNames.concat([SerialChart.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/render/Tick.js + var Tick = class extends Line { + }; + Tick.className = "Tick"; + Tick.classNames = Line.classNames.concat([Tick.className]); + + // node_modules/@amcharts/amcharts5/.internal/core/util/ColorSet.js + var ColorSet = class extends Entity { + //protected _currentPass: number = 0; + _afterNew() { + super._afterNewApplyThemes(); + this._dirty["colors"] = false; + } + _beforeChanged() { + if (this.isDirty("colors")) { + this.reset(); + } + } + /** + * @ignore + */ + generateColors() { + this.setPrivate("currentPass", this.getPrivate("currentPass", 0) + 1); + const pass = this.getPrivate("currentPass"); + const colors = this.get("colors", [this.get("baseColor", Color.fromHex(16711680))]); + if (!this.getPrivate("numColors")) { + this.setPrivate("numColors", colors.length); + } + const len = this.getPrivate("numColors"); + const start = 0; + const passOptions = this.get("passOptions"); + const reuse = this.get("reuse"); + for (let i = start; i < len; i++) { + if (reuse) { + colors.push(colors[i]); + } else { + const hsl = colors[i].toHSL(); + let h = hsl.h + (passOptions.hue || 0) * pass; + while (h > 1) + h -= 1; + let s2 = hsl.s + (passOptions.saturation || 0) * pass; + if (s2 > 1) + s2 = 1; + if (s2 < 0) + s2 = 0; + let l = hsl.l + (passOptions.lightness || 0) * pass; + while (l > 1) + l -= 1; + colors.push(Color.fromHSL(h, s2, l)); + } + } + } + /** + * Returns a [[Color]] at specific index. + * + * If there's no color at this index, a new color is generated. + * + * @param index Index + * @return Color + */ + getIndex(index) { + const colors = this.get("colors", []); + const saturation = this.get("saturation"); + if (index >= colors.length) { + this.generateColors(); + return this.getIndex(index); + } + return saturation != null ? Color.saturate(colors[index], saturation) : colors[index]; + } + /** + * Returns next [[Color]] in the list. + * + * If the list is out of colors, new ones are generated dynamically. + */ + next() { + let currentStep = this.getPrivate("currentStep", this.get("startIndex", 0)); + this.setPrivate("currentStep", currentStep + this.get("step", 1)); + return this.getIndex(currentStep); + } + /** + * Resets counter to the start of the list, so the next call for `next()` will + * return the first color. + */ + reset() { + this.setPrivate("currentStep", this.get("startIndex", 0)); + this.setPrivate("currentPass", 0); + } + }; + ColorSet.className = "ColorSet"; + ColorSet.classNames = Entity.classNames.concat([ColorSet.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/XYChartDefaultTheme.js + var XYChartDefaultTheme = class extends Theme { + setupDefaultRules() { + super.setupDefaultRules(); + const ic = this._root.interfaceColors; + const language = this._root.language; + const r = this.rule.bind(this); + r("XYChart").setAll({ + colors: ColorSet.new(this._root, {}), + paddingLeft: 20, + paddingRight: 20, + paddingTop: 16, + paddingBottom: 16, + panX: false, + panY: false, + wheelStep: 0.25, + arrangeTooltips: true, + pinchZoomX: false, + pinchZoomY: false + }); + r("XYSeries").setAll({ + legendLabelText: "{name}" + }); + r("Rectangle", ["plotbackground", "xy", "background"]).setAll({ + fill: Color.fromHex(0), + fillOpacity: 0 + }); + r("XYChart", ["scrollbar", "chart"]).setAll({ + paddingBottom: 0, + paddingLeft: 0, + paddingTop: 0, + paddingRight: 0, + colors: ColorSet.new(this._root, { + saturation: 0 + }) + }); + { + const rule = r("Graphics", ["scrollbar", "overlay"]); + rule.setAll({ + fillOpacity: 0.5 + }); + setColor(rule, "fill", ic, "background"); + } + r("RoundedRectangle", ["xy", "scrollbar", "thumb"]).setAll({ + cornerRadiusTR: 0, + cornerRadiusTL: 0, + cornerRadiusBR: 0, + cornerRadiusBL: 0, + fillOpacity: 0, + focusable: true + }); + r("RoundedRectangle", ["xy", "scrollbar", "thumb"]).states.create("hover", { fillOpacity: 0.4 }); + r("RoundedRectangle", ["xy", "scrollbar", "chart", "background"]).setAll({ + cornerRadiusTL: 0, + cornerRadiusBL: 0, + cornerRadiusTR: 0, + cornerRadiusBR: 0 + }); + r("RoundedRectangle", ["xy", "scrollbar", "chart", "background", "resize", "button"]).setAll({ + cornerRadiusBL: 40, + cornerRadiusBR: 40, + cornerRadiusTL: 40, + cornerRadiusTR: 40 + }); + r("AxisRendererX", ["xy", "chart", "scrollbar"]).setAll({ + strokeOpacity: 0, + inside: true + }); + r("AxisRendererY", ["xy", "chart", "scrollbar"]).setAll({ + strokeOpacity: 0, + inside: true, + minGridDistance: 5 + }); + r("AxisLabel", ["xy", "scrollbar", "x"]).setAll({ + opacity: 0.5, + centerY: p100, + minPosition: 0.01, + maxPosition: 0.99, + fontSize: "0.8em" + }); + r("AxisLabel", ["category"]).setAll({ + text: "{category}", + populateText: true + }); + r("AxisLabel", ["x"]).setAll({ + centerY: 0 + }); + r("AxisLabel", ["x", "inside"]).setAll({ + centerY: p100 + }); + r("AxisLabel", ["x", "inside", "opposite"]).setAll({ + centerY: 0 + }); + r("AxisLabel", ["x", "opposite"]).setAll({ + centerY: p100 + }); + r("AxisLabel", ["y"]).setAll({ + centerX: p100 + }); + r("AxisLabel", ["y", "inside"]).setAll({ + centerX: 0 + }); + r("AxisLabel", ["y", "inside", "opposite"]).setAll({ + centerX: p100 + }); + r("AxisLabel", ["y", "opposite"]).setAll({ + centerX: 0 + }); + r("AxisLabel", ["minor"]).setAll({ + fontSize: "0.6em" + }); + r("AxisLabel", ["xy", "scrollbar", "y"]).setAll({ + visible: false + }); + r("Grid", ["xy", "scrollbar", "y"]).setAll({ + visible: false + }); + r("Grid", ["xy", "scrollbar", "x"]).setAll({ + opacity: 0.5 + }); + r("XYCursor").setAll({ + behavior: "none", + layer: 30, + exportable: false, + snapToSeriesBy: "xy", + moveThreshold: 1 + }); + { + const rule = r("Grid", ["cursor", "x"]); + rule.setAll({ + forceInactive: true, + strokeOpacity: 0.8, + strokeDasharray: [2, 2], + role: "slider", + ariaLabel: language.translate("Use left and right arrows to move selection") + }); + setColor(rule, "stroke", ic, "alternativeBackground"); + } + { + const rule = r("Grid", ["cursor", "y"]); + rule.setAll({ + forceInactive: true, + strokeOpacity: 0.8, + strokeDasharray: [2, 2], + role: "slider", + ariaLabel: language.translate("Use up and down arrows to move selection") + }); + setColor(rule, "stroke", ic, "alternativeBackground"); + } + { + const rule = r("Graphics", ["cursor", "selection"]); + rule.setAll({ + fillOpacity: 0.15 + }); + setColor(rule, "fill", ic, "alternativeBackground"); + } + r("Axis").setAll({ + zoomOut: true, + start: 0, + end: 1, + minZoomCount: 1, + maxZoomCount: Infinity, + maxZoomFactor: 1e3, + maxDeviation: 0.1, + snapTooltip: true, + tooltipLocation: 0.5, + panX: true, + panY: true, + zoomX: true, + zoomY: true, + fixAxisSize: true + }); + r("AxisLabel").setAll({ + location: 0.5, + multiLocation: 0, + centerX: p50, + centerY: p50, + paddingTop: 3, + paddingBottom: 3, + paddingLeft: 5, + paddingRight: 5 + }); + r("Container", ["axis", "header"]).setAll({ + layer: 30 + }); + r("Rectangle", ["axis", "header", "background"]).setAll({ + crisp: true + }); + { + const rule = r("AxisRenderer"); + rule.setAll({ + crisp: true, + strokeOpacity: 0 + }); + setColor(rule, "stroke", ic, "grid"); + } + r("AxisRendererX").setAll({ + minGridDistance: 120, + opposite: false, + inversed: false, + cellStartLocation: 0, + cellEndLocation: 1, + width: p100 + }); + r("AxisRendererY").setAll({ + minGridDistance: 40, + opposite: false, + inversed: false, + cellStartLocation: 0, + cellEndLocation: 1, + height: p100 + }); + { + const rule = r("Rectangle", ["axis", "thumb", "zoomgrip"]); + rule.setAll({ + fillOpacity: 0 + }); + setColor(rule, "fill", ic, "alternativeBackground"); + rule.states.create("hover", { fillOpacity: 0.1 }); + } + r("Rectangle", ["axis", "thumb", "x", "zoomgrip"]).setAll({ + cursorOverStyle: "ew-resize" + }); + r("Rectangle", ["axis", "thumb", "y", "zoomgrip"]).setAll({ + cursorOverStyle: "ns-resize" + }); + { + const rule = r("Grid"); + rule.setAll({ + location: 0, + strokeOpacity: 0.15, + crisp: true + }); + setColor(rule, "stroke", ic, "grid"); + } + { + const rule = r("Grid", ["minor"]); + rule.setAll({ + location: 0, + strokeOpacity: 0.07, + crisp: true + }); + setColor(rule, "stroke", ic, "grid"); + } + r("Grid", ["base"]).setAll({ + strokeOpacity: 0.3 + }); + { + const rule = r("Graphics", ["axis", "fill"]); + rule.setAll({ + visible: false, + isMeasured: false, + position: "absolute", + fillOpacity: 0.05 + }); + setColor(rule, "fill", ic, "alternativeBackground"); + } + r("Graphics", ["axis", "fill", "range"]).setAll({ + isMeasured: true + }); + r("Graphics", ["series", "fill", "range"]).setAll({ + visible: false, + isMeasured: true + }); + r("Grid", ["series", "range"]).setAll({ + visible: false + }); + r("AxisTick", ["series", "range"]).setAll({ + visible: false + }); + r("AxisLabel", ["series", "range"]).setAll({ + visible: false + }); + { + const rule = r("AxisTick"); + rule.setAll({ + location: 0.5, + multiLocation: 0, + strokeOpacity: 1, + isMeasured: false, + position: "absolute", + visible: false + }); + setColor(rule, "stroke", ic, "grid"); + } + r("CategoryAxis").setAll({ + startLocation: 0, + endLocation: 1, + fillRule: (dataItem, index) => { + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + if (!isNumber(index) || index % 2 == 0) { + axisFill.setPrivate("visible", true); + } else { + axisFill.setPrivate("visible", false); + } + } + } + }); + const gridIntervals = [ + { timeUnit: "millisecond", count: 1 }, + { timeUnit: "millisecond", count: 5 }, + { timeUnit: "millisecond", count: 10 }, + { timeUnit: "millisecond", count: 50 }, + { timeUnit: "millisecond", count: 100 }, + { timeUnit: "millisecond", count: 500 }, + { timeUnit: "second", count: 1 }, + { timeUnit: "second", count: 5 }, + { timeUnit: "second", count: 10 }, + { timeUnit: "second", count: 30 }, + { timeUnit: "minute", count: 1 }, + { timeUnit: "minute", count: 5 }, + { timeUnit: "minute", count: 10 }, + { timeUnit: "minute", count: 15 }, + { timeUnit: "minute", count: 30 }, + { timeUnit: "hour", count: 1 }, + { timeUnit: "hour", count: 3 }, + { timeUnit: "hour", count: 6 }, + { timeUnit: "hour", count: 12 }, + { timeUnit: "day", count: 1 }, + { timeUnit: "day", count: 2 }, + { timeUnit: "day", count: 3 }, + { timeUnit: "day", count: 4 }, + { timeUnit: "day", count: 5 }, + { timeUnit: "week", count: 1 }, + { timeUnit: "month", count: 1 }, + { timeUnit: "month", count: 2 }, + { timeUnit: "month", count: 3 }, + { timeUnit: "month", count: 6 }, + { timeUnit: "year", count: 1 }, + { timeUnit: "year", count: 2 }, + { timeUnit: "year", count: 5 }, + { timeUnit: "year", count: 10 }, + { timeUnit: "year", count: 50 }, + { timeUnit: "year", count: 100 }, + { timeUnit: "year", count: 200 }, + { timeUnit: "year", count: 500 }, + { timeUnit: "year", count: 1e3 }, + { timeUnit: "year", count: 2e3 }, + { timeUnit: "year", count: 5e3 }, + { timeUnit: "year", count: 1e4 }, + { timeUnit: "year", count: 1e5 } + ]; + const dateFormats = { + "millisecond": language.translate("_date_millisecond"), + "second": language.translate("_date_second"), + "minute": language.translate("_date_minute"), + "hour": language.translate("_date_hour"), + "day": language.translate("_date_day"), + "week": language.translate("_date_day"), + "month": language.translate("_date_month"), + "year": language.translate("_date_year") + }; + const periodChangeDateFormats = { + "millisecond": language.translate("_date_millisecond"), + "second": language.translate("_date_second"), + "minute": language.translate("_date_minute"), + "hour": language.translate("_date_day"), + "day": language.translate("_date_day"), + "week": language.translate("_date_day"), + "month": language.translate("_date_month") + " " + language.translate("_date_year"), + "year": language.translate("_date_year") + }; + const tooltipDateFormats = { + "millisecond": language.translate("_date_millisecond_full"), + "second": language.translate("_date_second_full"), + "minute": language.translate("_date_minute_full"), + "hour": language.translate("_date_hour_full"), + "day": language.translate("_date_day_full"), + "week": language.translate("_date_week_full"), + "month": language.translate("_date_month_full"), + "year": language.translate("_date_year") + }; + r("CategoryDateAxis").setAll({ + markUnitChange: true, + gridIntervals: copy(gridIntervals), + dateFormats: copy2(dateFormats), + periodChangeDateFormats: copy2(periodChangeDateFormats) + }); + r("DateAxis").setAll({ + maxZoomFactor: null, + strictMinMax: true, + startLocation: 0, + endLocation: 1, + markUnitChange: true, + groupData: false, + groupCount: 500, + skipFirstMinor: true, + weekLabelLocation: 0, + gridIntervals: copy(gridIntervals), + dateFormats: copy2(dateFormats), + periodChangeDateFormats: copy2(periodChangeDateFormats), + tooltipDateFormats, + groupIntervals: [ + { timeUnit: "millisecond", count: 1 }, + { timeUnit: "millisecond", count: 10 }, + { timeUnit: "millisecond", count: 100 }, + { timeUnit: "second", count: 1 }, + { timeUnit: "second", count: 10 }, + { timeUnit: "minute", count: 1 }, + { timeUnit: "minute", count: 10 }, + { timeUnit: "hour", count: 1 }, + { timeUnit: "day", count: 1 }, + { timeUnit: "week", count: 1 }, + { timeUnit: "month", count: 1 }, + { timeUnit: "year", count: 1 } + ], + fillRule: (dataItem) => { + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + const axis = dataItem.component; + const value = dataItem.get("value"); + const endValue = dataItem.get("endValue"); + const intervalDuration = axis.intervalDuration(); + const baseInterval = axis.getPrivate("baseInterval"); + const gridInterval = axis.getPrivate("gridInterval", baseInterval); + let min2 = axis.getPrivate("min", 0); + min2 = round2(new Date(min2), gridInterval.timeUnit, gridInterval.count, this._root.locale.firstDayOfWeek, this._root.utc, void 0, this._root.timezone).getTime(); + if (value != null && endValue != null) { + const val = Math.round(Math.round((value - min2) / intervalDuration)) / 2; + if (val == Math.round(val)) { + axisFill.setPrivate("visible", true); + } else { + axisFill.setPrivate("visible", false); + } + } + } + } + }); + r("GaplessDateAxis").setAll({ + fillRule: (dataItem) => { + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + const index = dataItem.get("index"); + let visible = false; + if (!isNumber(index) || index % 2 == 0) { + visible = true; + } + axisFill.setPrivate("visible", visible); + } + } + }); + r("ValueAxis").setAll({ + baseValue: 0, + logarithmic: false, + strictMinMax: false, + autoZoom: true, + fillRule: (dataItem) => { + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + const axis = dataItem.component; + const value = dataItem.get("value"); + const step = axis.getPrivate("step"); + if (isNumber(value) && isNumber(step)) { + if (round(value / step / 2, 5) == Math.round(value / step / 2)) { + axisFill.setPrivate("visible", false); + } else { + axisFill.setPrivate("visible", true); + } + } + } + } + }); + r("DurationAxis").setAll({ + baseUnit: "second" + }); + r("XYSeries").setAll({ + maskBullets: true, + stackToNegative: true, + locationX: 0.5, + locationY: 0.5, + snapTooltip: false, + openValueXGrouped: "open", + openValueYGrouped: "open", + valueXGrouped: "close", + valueYGrouped: "close", + seriesTooltipTarget: "series" + }); + r("BaseColumnSeries").setAll({ + adjustBulletPosition: true + }); + r("ColumnSeries").setAll({ + clustered: true + }); + r("RoundedRectangle", ["series", "column"]).setAll({ + position: "absolute", + isMeasured: false, + width: percent(70), + height: percent(70), + strokeWidth: 1, + strokeOpacity: 1, + cornerRadiusBL: 0, + cornerRadiusTL: 0, + cornerRadiusBR: 0, + cornerRadiusTR: 0, + fillOpacity: 1, + role: "figure" + }); + r("LineSeries").setAll({ + connect: true, + autoGapCount: 1.1, + stackToNegative: false + }); + r("Graphics", ["series", "stroke"]).setAll({ + position: "absolute", + strokeWidth: 1, + strokeOpacity: 1, + isMeasured: false + }); + r("Graphics", ["series", "fill"]).setAll({ + visible: false, + fillOpacity: 0, + position: "absolute", + strokeWidth: 0, + strokeOpacity: 0, + isMeasured: false + }); + r("Graphics", ["line", "series", "legend", "marker", "stroke"]).setAll({ + draw: (display, sprite) => { + const parent = sprite.parent; + if (parent) { + const h = parent.height(); + const w = parent.width(); + display.moveTo(0, h / 2); + display.lineTo(w, h / 2); + } + } + }); + { + const rule = r("Graphics", ["line", "series", "legend", "marker", "stroke"]).states.create("disabled", {}); + setColor(rule, "stroke", ic, "disabled"); + } + r("Graphics", ["line", "series", "legend", "marker", "fill"]).setAll({ + draw: (display, sprite) => { + const parent = sprite.parent; + if (parent) { + const h = parent.height(); + const w = parent.width(); + display.moveTo(0, 0); + display.lineTo(w, 0); + display.lineTo(w, h); + display.lineTo(0, h); + display.lineTo(0, 0); + } + } + }); + { + const rule = r("Graphics", ["line", "series", "legend", "marker", "fill"]).states.create("disabled", {}); + setColor(rule, "stroke", ic, "disabled"); + } + r("SmoothedXYLineSeries").setAll({ + tension: 0.5 + }); + r("SmoothedXLineSeries").setAll({ + tension: 0.5 + }); + r("SmoothedYLineSeries").setAll({ + tension: 0.5 + }); + r("Candlestick").setAll({ + position: "absolute", + isMeasured: false, + width: percent(50), + height: percent(50), + strokeWidth: 1, + strokeOpacity: 1, + cornerRadiusBL: 0, + cornerRadiusTL: 0, + cornerRadiusBR: 0, + cornerRadiusTR: 0, + fillOpacity: 1, + role: "figure" + }); + r("OHLC").setAll({ + width: percent(80), + height: percent(80) + }); + r("CandlestickSeries").setAll({ + lowValueXGrouped: "low", + lowValueYGrouped: "low", + highValueXGrouped: "high", + highValueYGrouped: "high", + openValueXGrouped: "open", + openValueYGrouped: "open", + valueXGrouped: "close", + valueYGrouped: "close" + }); + { + const rule = r("Rectangle", ["column", "autocolor"]).states.create("riseFromOpen", {}); + setColor(rule, "fill", ic, "positive"); + setColor(rule, "stroke", ic, "positive"); + } + { + const rule = r("Rectangle", ["column", "autocolor"]).states.create("dropFromOpen", {}); + setColor(rule, "fill", ic, "negative"); + setColor(rule, "stroke", ic, "negative"); + } + r("Rectangle", ["column", "autocolor", "pro"]).states.create("riseFromOpen", { fillOpacity: 0 }); + r("Rectangle", ["column", "autocolor", "pro"]).states.create("dropFromOpen", { fillOpacity: 1 }); + { + const rule = r("Rectangle", ["column", "autocolor", "pro"]).states.create("riseFromPrevious", {}); + setColor(rule, "fill", ic, "positive"); + setColor(rule, "stroke", ic, "positive"); + } + { + const rule = r("Rectangle", ["column", "autocolor", "pro"]).states.create("dropFromPrevious", {}); + setColor(rule, "fill", ic, "negative"); + setColor(rule, "stroke", ic, "negative"); + } + { + const rule = r("RoundedRectangle", ["rangegrip"]); + rule.setAll({ + strokeOpacity: 0, + fillOpacity: 0, + strokeWidth: 1, + width: 12, + height: 12 + }); + } + { + const rule = r("Graphics", ["rangegrip", "button", "icon"]); + rule.setAll({ + interactive: false, + crisp: true, + strokeOpacity: 0.5, + draw: (display) => { + display.moveTo(0, 0.5); + display.lineTo(0, 12.5); + display.moveTo(2, 0.5); + display.lineTo(2, 12.5); + display.moveTo(4, 0.5); + display.lineTo(4, 12.5); + } + }); + setColor(rule, "stroke", ic, "secondaryButtonText"); + } + r("Button", ["rangegrip"]).setAll({ + draggable: true, + paddingTop: 0, + paddingBottom: 0 + }); + r("Button", ["rangegrip", "vertical"]).setAll({ + rotation: 90, + cursorOverStyle: "ns-resize", + centerX: p50 + }); + r("Button", ["rangegrip", "horizontal"]).setAll({ + cursorOverStyle: "ew-resize", + centerX: p50 + }); + r("Button", ["rangegrip", "vertical", "left"]).setAll({ + centerY: p100 + }); + r("Button", ["rangegrip", "vertical", "right"]).setAll({ + centerY: 0 + }); + r("Button", ["rangegrip", "horizontal", "top"]).setAll({ + centerY: 0 + }); + r("Button", ["rangegrip", "horizontal", "bottom"]).setAll({ + centerY: p100 + }); + } + }; + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/XYChart.js + var XYChart = class extends SerialChart { + constructor() { + super(...arguments); + this.xAxes = new ListAutoDispose(); + this.yAxes = new ListAutoDispose(); + this.topAxesContainer = this.chartContainer.children.push(Container.new(this._root, { width: p100, layout: this._root.verticalLayout })); + this.yAxesAndPlotContainer = this.chartContainer.children.push(Container.new(this._root, { width: p100, height: p100, layout: this._root.horizontalLayout })); + this.bottomAxesContainer = this.chartContainer.children.push(Container.new(this._root, { width: p100, layout: this._root.verticalLayout })); + this.leftAxesContainer = this.yAxesAndPlotContainer.children.push(Container.new(this._root, { height: p100, layout: this._root.horizontalLayout })); + this.plotsContainer = this.yAxesAndPlotContainer.children.push(Container.new(this._root, { width: p100, height: p100, maskContent: false })); + this.plotContainer = this.plotsContainer.children.push(Container.new(this._root, { width: p100, height: p100 })); + this.topPlotContainer = this.plotsContainer.children.push(Container.new(this._root, { width: p100, height: p100 })); + this.gridContainer = this.plotContainer.children.push(Container.new(this._root, { width: p100, height: p100, isMeasured: false })); + this.topGridContainer = Container.new(this._root, { width: p100, height: p100, isMeasured: false }); + this.rightAxesContainer = this.yAxesAndPlotContainer.children.push(Container.new(this._root, { height: p100, layout: this._root.horizontalLayout })); + this.axisHeadersContainer = this.plotContainer.children.push(Container.new(this._root, {})); + this.zoomOutButton = this.topPlotContainer.children.push(Button.new(this._root, { + themeTags: ["zoom"], + icon: Graphics.new(this._root, { + themeTags: ["button", "icon"] + }) + })); + this._movePoint = { x: 0, y: 0 }; + this._movePoints = {}; + } + _afterNew() { + this._defaultThemes.push(XYChartDefaultTheme.new(this._root)); + super._afterNew(); + this._disposers.push(this.xAxes); + this._disposers.push(this.yAxes); + const root2 = this._root; + let verticalLayout = this._root.verticalLayout; + const zoomOutButton = this.zoomOutButton; + zoomOutButton.events.on("click", () => { + this.zoomOut(); + }); + zoomOutButton.hide(0); + zoomOutButton.states.lookup("default").set("opacity", 1); + this.chartContainer.set("layout", verticalLayout); + const plotContainer = this.plotContainer; + plotContainer.children.push(this.seriesContainer); + this._disposers.push(this._processAxis(this.xAxes, this.bottomAxesContainer)); + this._disposers.push(this._processAxis(this.yAxes, this.leftAxesContainer)); + plotContainer.children.push(this.topGridContainer); + plotContainer.children.push(this.bulletsContainer); + plotContainer.set("interactive", true); + plotContainer.set("interactiveChildren", false); + plotContainer.set("background", Rectangle.new(root2, { + themeTags: ["plotbackground", "xy", "background"] + })); + this._disposers.push(plotContainer.events.on("pointerdown", (event) => { + this._handlePlotDown(event); + })); + this._disposers.push(plotContainer.events.on("globalpointerup", (event) => { + this._handlePlotUp(event); + })); + this._disposers.push(plotContainer.events.on("globalpointermove", (event) => { + this._handlePlotMove(event); + })); + this._maskGrid(); + this._setUpTouch(); + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("pinchZoomX") || this.isDirty("pinchZoomY") || this.get("panX") || this.get("panY")) { + this._setUpTouch(); + } + } + _setUpTouch() { + if (!this.plotContainer._display.cancelTouch) { + this.plotContainer._display.cancelTouch = this.get("pinchZoomX") || this.get("pinchZoomY") || this.get("panX") || this.get("panY") ? true : false; + } + } + _maskGrid() { + this.gridContainer.set("maskContent", true); + this.topGridContainer.set("maskContent", true); + } + _removeSeries(series2) { + series2._unstack(); + if (series2._posXDp) { + series2._posXDp.dispose(); + } + if (series2._posYDp) { + series2._posYDp.dispose(); + } + series2.set("baseAxis", void 0); + const xAxis2 = series2.get("xAxis"); + if (xAxis2) { + remove(xAxis2.series, series2); + xAxis2.markDirtyExtremes(); + } + const yAxis2 = series2.get("yAxis"); + if (yAxis2) { + remove(yAxis2.series, series2); + yAxis2.markDirtyExtremes(); + } + const cursor2 = this.get("cursor"); + if (cursor2) { + const snapToSeries = cursor2.get("snapToSeries"); + if (snapToSeries) { + remove(snapToSeries, series2); + } + } + super._removeSeries(series2); + } + _applyThemes(force = false) { + const colors = this.get("colors"); + if (colors) { + colors.reset(); + } + const changed = super._applyThemes(force); + return changed; + } + /** + * This method is invoked when mouse wheel is used over chart's plot + * container, and handles zooming/pan. + * + * You can invoke this method manually, if you need to mimic chart's wheel + * behavior over other elements of the chart. + */ + handleWheel(event) { + const wheelX = this.get("wheelX"); + const wheelY = this.get("wheelY"); + const plotContainer = this.plotContainer; + const wheelEvent = event.originalEvent; + let prevent = false; + if (isLocalEvent(wheelEvent, this)) { + prevent = true; + } else { + return; + } + const plotPoint = plotContainer.toLocal(event.point); + const wheelStep = this.get("wheelStep", 0.2); + const shiftY = wheelEvent.deltaY / 100; + const shiftX = wheelEvent.deltaX / 100; + const wheelZoomPositionX = this.get("wheelZoomPositionX"); + const wheelZoomPositionY = this.get("wheelZoomPositionY"); + if ((wheelX === "zoomX" || wheelX === "zoomXY") && shiftX != 0) { + this.xAxes.each((axis) => { + if (axis.get("zoomX")) { + let start = axis.get("start"); + let end = axis.get("end"); + let position = axis.fixPosition(plotPoint.x / plotContainer.width()); + if (wheelZoomPositionX != null) { + position = wheelZoomPositionX; + } + let maxDeviation = axis.get("maxDeviation", 0); + let newStart = Math.min(1 + maxDeviation, Math.max(-maxDeviation, start - wheelStep * (end - start) * shiftX * position)); + let newEnd = Math.max(-maxDeviation, Math.min(1 + maxDeviation, end + wheelStep * (end - start) * shiftX * (1 - position))); + if (newStart == start && newEnd == end) { + prevent = false; + } + if (1 / (newEnd - newStart) < axis.getPrivate("maxZoomFactor", Infinity) / axis.get("minZoomCount", 1)) { + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } else { + prevent = false; + } + } + }); + } + if ((wheelY === "zoomX" || wheelY === "zoomXY") && shiftY != 0) { + this.xAxes.each((axis) => { + if (axis.get("zoomX")) { + let start = axis.get("start"); + let end = axis.get("end"); + let position = axis.fixPosition(plotPoint.x / plotContainer.width()); + if (wheelZoomPositionX != null) { + position = wheelZoomPositionX; + } + let maxDeviation = axis.get("maxDeviation", 0); + let newStart = Math.min(1 + maxDeviation, Math.max(-maxDeviation, start - wheelStep * (end - start) * shiftY * position)); + let newEnd = Math.max(-maxDeviation, Math.min(1 + maxDeviation, end + wheelStep * (end - start) * shiftY * (1 - position))); + if (newStart == start && newEnd == end) { + prevent = false; + } + if (1 / (newEnd - newStart) < axis.getPrivate("maxZoomFactor", Infinity) / axis.get("minZoomCount", 1)) { + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } else { + prevent = false; + } + } + }); + } + if ((wheelX === "zoomY" || wheelX === "zoomXY") && shiftX != 0) { + this.yAxes.each((axis) => { + if (axis.get("zoomY")) { + let start = axis.get("start"); + let end = axis.get("end"); + let position = axis.fixPosition(plotPoint.y / plotContainer.height()); + if (wheelZoomPositionY != null) { + position = wheelZoomPositionY; + } + let maxDeviation = axis.get("maxDeviation", 0); + let newStart = Math.min(1 + maxDeviation, Math.max(-maxDeviation, start - wheelStep * (end - start) * shiftX * position)); + let newEnd = Math.max(-maxDeviation, Math.min(1 + maxDeviation, end + wheelStep * (end - start) * shiftX * (1 - position))); + if (newStart == start && newEnd == end) { + prevent = false; + } + if (1 / (newEnd - newStart) < axis.getPrivate("maxZoomFactor", Infinity) / axis.get("minZoomCount", 1)) { + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } else { + prevent = false; + } + } + }); + } + if ((wheelY === "zoomY" || wheelY === "zoomXY") && shiftY != 0) { + this.yAxes.each((axis) => { + if (axis.get("zoomY")) { + let start = axis.get("start"); + let end = axis.get("end"); + let position = axis.fixPosition(plotPoint.y / plotContainer.height()); + if (wheelZoomPositionY != null) { + position = wheelZoomPositionY; + } + let maxDeviation = axis.get("maxDeviation", 0); + let newStart = Math.min(1 + maxDeviation, Math.max(-maxDeviation, start - wheelStep * (end - start) * shiftY * position)); + let newEnd = Math.max(-maxDeviation, Math.min(1 + maxDeviation, end + wheelStep * (end - start) * shiftY * (1 - position))); + if (newStart == start && newEnd == end) { + prevent = false; + } + if (1 / (newEnd - newStart) < axis.getPrivate("maxZoomFactor", Infinity) / axis.get("minZoomCount", 1)) { + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } else { + prevent = false; + } + } + }); + } + if ((wheelX === "panX" || wheelX === "panXY") && shiftX != 0) { + this.xAxes.each((axis) => { + if (axis.get("panX")) { + let start = axis.get("start"); + let end = axis.get("end"); + let delta = this._getWheelSign(axis) * wheelStep * (end - start) * shiftX; + let newStart = start + delta; + let newEnd = end + delta; + let se = this._fixWheel(newStart, newEnd); + newStart = se[0]; + newEnd = se[1]; + if (newStart == start && newEnd == end) { + prevent = false; + } + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } + }); + } + if ((wheelY === "panX" || wheelY === "panXY") && shiftY != 0) { + this.xAxes.each((axis) => { + if (axis.get("panX")) { + let start = axis.get("start"); + let end = axis.get("end"); + let delta = this._getWheelSign(axis) * wheelStep * (end - start) * shiftY; + let newStart = start + delta; + let newEnd = end + delta; + let se = this._fixWheel(newStart, newEnd); + newStart = se[0]; + newEnd = se[1]; + if (newStart == start && newEnd == end) { + prevent = false; + } + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } + }); + } + if ((wheelX === "panY" || wheelX === "panXY") && shiftX != 0) { + this.yAxes.each((axis) => { + if (axis.get("panY")) { + let start = axis.get("start"); + let end = axis.get("end"); + let delta = this._getWheelSign(axis) * wheelStep * (end - start) * shiftX; + let newStart = start + delta; + let newEnd = end + delta; + let se = this._fixWheel(newStart, newEnd); + newStart = se[0]; + newEnd = se[1]; + if (newStart == start && newEnd == end) { + prevent = false; + } + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } + }); + } + if ((wheelY === "panY" || wheelY === "panXY") && shiftY != 0) { + this.yAxes.each((axis) => { + if (axis.get("panY")) { + let start = axis.get("start"); + let end = axis.get("end"); + let delta = this._getWheelSign(axis) * wheelStep * (end - start) * shiftY; + let newStart = start - delta; + let newEnd = end - delta; + let se = this._fixWheel(newStart, newEnd); + newStart = se[0]; + newEnd = se[1]; + if (newStart == start && newEnd == end) { + prevent = false; + } + this._handleWheelAnimation(axis.zoom(newStart, newEnd)); + } + }); + } + if (prevent) { + wheelEvent.preventDefault(); + } + } + _handleSetWheel() { + const wheelX = this.get("wheelX"); + const wheelY = this.get("wheelY"); + const plotContainer = this.plotContainer; + if (wheelX !== "none" || wheelY !== "none") { + this._wheelDp = plotContainer.events.on("wheel", (event) => { + const wheelEvent = event.originalEvent; + if (wheelX !== "none" && Math.abs(wheelEvent.deltaX) != 0 || wheelY !== "none" && Math.abs(wheelEvent.deltaY) != 0) { + this.handleWheel(event); + } + }); + this._disposers.push(this._wheelDp); + } else { + if (this._wheelDp) { + this._wheelDp.dispose(); + } + } + } + _getWheelSign(axis) { + let sign = 1; + if (axis.get("renderer").get("inversed")) { + sign = -1; + } + return sign; + } + _fixWheel(start, end) { + const diff = end - start; + if (start < 0) { + start = 0; + end = start + diff; + } + if (end > 1) { + end = 1; + start = end - diff; + } + return [start, end]; + } + _handlePlotDown(event) { + const originalEvent = event.originalEvent; + if (originalEvent.button == 2) { + return; + } + const plotContainer = this.plotContainer; + let local = plotContainer.toLocal(event.point); + if (this.get("pinchZoomX") || this.get("pinchZoomY")) { + const pointerId = originalEvent.pointerId; + if (pointerId) { + if (keys(plotContainer._downPoints).length > 0) { + const xAxis2 = this.xAxes.getIndex(0); + const yAxis2 = this.yAxes.getIndex(0); + if (xAxis2) { + this._downStartX = xAxis2.get("start", 0); + this._downEndX = xAxis2.get("end", 1); + } + if (yAxis2) { + this._downStartY = yAxis2.get("start", 0); + this._downEndY = yAxis2.get("end", 1); + } + } + } + } + if (this.get("panX") || this.get("panY")) { + if (local.x >= 0 && local.y >= 0 && local.x <= plotContainer.width() && local.y <= this.height()) { + this._downPoint = { x: originalEvent.clientX, y: originalEvent.clientY }; + const panX = this.get("panX"); + const panY = this.get("panY"); + if (panX) { + this.xAxes.each((axis) => { + axis._panStart = axis.get("start"); + axis._panEnd = axis.get("end"); + }); + } + if (panY) { + this.yAxes.each((axis) => { + axis._panStart = axis.get("start"); + axis._panEnd = axis.get("end"); + }); + } + const eventType = "panstarted"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this, originalEvent: event.originalEvent }); + } + } + } + } + _handleWheelAnimation(animation) { + if (animation) { + animation.events.on("stopped", () => { + this._dispatchWheelAnimation(); + }); + } else { + this._dispatchWheelAnimation(); + } + } + _dispatchWheelAnimation() { + const eventType = "wheelended"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this }); + } + } + _handlePlotUp(event) { + const downPoint = this._downPoint; + if (downPoint) { + if (this.get("panX") || this.get("panY")) { + if (event.originalEvent.clientX == downPoint.x && event.originalEvent.clientY == downPoint.y) { + const eventType2 = "pancancelled"; + if (this.events.isEnabled(eventType2)) { + this.events.dispatch(eventType2, { type: eventType2, target: this, originalEvent: event.originalEvent }); + } + } + const eventType = "panended"; + if (this.events.isEnabled(eventType)) { + this.events.dispatch(eventType, { type: eventType, target: this, originalEvent: event.originalEvent }); + } + } + } + this._downPoint = void 0; + this.xAxes.each((xAxis2) => { + xAxis2._isPanning = false; + }); + this.yAxes.each((yAxis2) => { + yAxis2._isPanning = false; + }); + } + _handlePlotMove(event) { + const plotContainer = this.plotContainer; + if (this.get("pinchZoomX") || this.get("pinchZoomY")) { + const touchEvent = event.originalEvent; + const pointerId = touchEvent.pointerId; + if (pointerId) { + this._movePoints[pointerId] = event.point; + if (keys(plotContainer._downPoints).length > 1) { + this._handlePinch(); + return; + } + } + } + let downPoint = this._downPoint; + if (downPoint) { + downPoint = plotContainer.toLocal(this._root.documentPointToRoot(downPoint)); + let local = plotContainer.toLocal(event.point); + const panX = this.get("panX"); + const panY = this.get("panY"); + if (panX) { + let scrollbarX = this.get("scrollbarX"); + if (scrollbarX) { + scrollbarX.events.disableType("rangechanged"); + } + this.xAxes.each((axis) => { + if (axis.get("panX")) { + axis._isPanning = true; + let panStart = axis._panStart; + let panEnd = axis._panEnd; + let difference = panEnd - panStart; + let deltaX = difference * (downPoint.x - local.x) / plotContainer.width(); + if (axis.get("renderer").get("inversed")) { + deltaX *= -1; + } + let start = panStart + deltaX; + let end = panEnd + deltaX; + if (end - start < 1 + axis.get("maxDeviation", 1) * 2) { + axis.set("start", start); + axis.set("end", end); + } + } + }); + if (scrollbarX) { + scrollbarX.events.enableType("rangechanged"); + } + } + if (panY) { + let scrollbarY = this.get("scrollbarY"); + if (scrollbarY) { + scrollbarY.events.disableType("rangechanged"); + } + this.yAxes.each((axis) => { + if (axis.get("panY")) { + axis._isPanning = true; + let panStart = axis._panStart; + let panEnd = axis._panEnd; + let difference = panEnd - panStart; + let deltaY = difference * (downPoint.y - local.y) / plotContainer.height(); + if (axis.get("renderer").get("inversed")) { + deltaY *= -1; + } + let start = panStart - deltaY; + let end = panEnd - deltaY; + if (end - start < 1 + axis.get("maxDeviation", 1) * 2) { + axis.set("start", start); + axis.set("end", end); + } + } + }); + if (scrollbarY) { + scrollbarY.events.enableType("rangechanged"); + } + } + } + } + _handlePinch() { + const plotContainer = this.plotContainer; + let i = 0; + let downPoints = []; + let movePoints = []; + each2(plotContainer._downPoints, (k, point) => { + downPoints[i] = point; + let movePoint = this._movePoints[k]; + if (movePoint) { + movePoints[i] = movePoint; + } + i++; + }); + if (downPoints.length > 1 && movePoints.length > 1) { + const w = plotContainer.width(); + const h = plotContainer.height(); + let downPoint0 = downPoints[0]; + let downPoint1 = downPoints[1]; + let movePoint0 = movePoints[0]; + let movePoint1 = movePoints[1]; + if (downPoint0 && downPoint1 && movePoint0 && movePoint1) { + movePoint0 = plotContainer.toLocal(movePoint0); + movePoint1 = plotContainer.toLocal(movePoint1); + downPoint0 = plotContainer.toLocal(downPoint0); + downPoint1 = plotContainer.toLocal(downPoint1); + if (this.get("pinchZoomX")) { + const downStartX = this._downStartX; + const downEndX = this._downEndX; + if (downStartX != null && downEndX != null) { + if (downPoint0.x > downPoint1.x) { + [downPoint0, downPoint1] = [downPoint1, downPoint0]; + [movePoint0, movePoint1] = [movePoint1, movePoint0]; + } + let downPos0 = downStartX + downPoint0.x / w * (downEndX - downStartX); + let downPos1 = downStartX + downPoint1.x / w * (downEndX - downStartX); + let movePos0 = downStartX + movePoint0.x / w * (downEndX - downStartX); + let movePos1 = downStartX + movePoint1.x / w * (downEndX - downStartX); + let initialDistance = Math.max(1e-3, downPos1 - downPos0); + let currentDistance = Math.max(1e-3, movePos1 - movePos0); + let d = initialDistance / currentDistance; + let s2 = downStartX * d + downPos0 - movePos0 * d; + let e = downEndX * d + downPos1 - movePos1 * d; + this.xAxes.each((xAxis2) => { + let sa = xAxis2.fixPosition(s2); + let ea = xAxis2.fixPosition(e); + xAxis2.zoom(sa, ea, 0); + }); + } + } + if (this.get("pinchZoomY")) { + const downStartY = this._downStartY; + const downEndY = this._downEndY; + if (downStartY != null && downEndY != null) { + if (downPoint0.y < downPoint1.y) { + [downPoint0, downPoint1] = [downPoint1, downPoint0]; + [movePoint0, movePoint1] = [movePoint1, movePoint0]; + } + let downPos0 = downStartY + (1 - downPoint0.y / h) * (downEndY - downStartY); + let downPos1 = downStartY + (1 - downPoint1.y / h) * (downEndY - downStartY); + let movePos0 = downStartY + (1 - movePoint0.y / h) * (downEndY - downStartY); + let movePos1 = downStartY + (1 - movePoint1.y / h) * (downEndY - downStartY); + let initialDistance = Math.max(1e-3, downPos1 - downPos0); + let currentDistance = Math.max(1e-3, movePos1 - movePos0); + let d = initialDistance / currentDistance; + let s2 = downStartY * d + downPos0 - movePos0 * d; + let e = downEndY * d + downPos1 - movePos1 * d; + this.yAxes.each((yAxis2) => { + let sa = yAxis2.fixPosition(s2); + let ea = yAxis2.fixPosition(e); + yAxis2.zoom(sa, ea, 0); + }); + } + } + } + } + } + _handleCursorPosition() { + const cursor2 = this.get("cursor"); + if (cursor2) { + const cursorPoint = cursor2.getPrivate("point"); + let snapToSeries = cursor2.get("snapToSeries"); + if (cursor2._downPoint) { + snapToSeries = void 0; + } + if (snapToSeries && cursorPoint) { + const snapToSeriesBy = cursor2.get("snapToSeriesBy"); + const dataItems = []; + each(snapToSeries, (series2) => { + if (!series2.isHidden() && !series2.isHiding()) { + if (snapToSeriesBy != "x!" && snapToSeriesBy != "y!") { + const startIndex = series2.startIndex(); + const endIndex = series2.endIndex(); + for (let i = startIndex; i < endIndex; i++) { + const dataItem = series2.dataItems[i]; + if (dataItem && !dataItem.isHidden()) { + dataItems.push(dataItem); + } + } + } else { + const tooltipDataItem = series2.get("tooltipDataItem"); + if (tooltipDataItem) { + dataItems.push(tooltipDataItem); + } + } + } + }); + let minDistance = Infinity; + let closestItem; + each(dataItems, (dataItem) => { + const point = dataItem.get("point"); + if (point) { + let distance = 0; + if (snapToSeriesBy == "x" || snapToSeriesBy == "x!") { + distance = Math.abs(cursorPoint.x - point.x); + } else if (snapToSeriesBy == "y" || snapToSeriesBy == "y!") { + distance = Math.abs(cursorPoint.y - point.y); + } else { + distance = Math.hypot(cursorPoint.x - point.x, cursorPoint.y - point.y); + } + if (distance < minDistance) { + minDistance = distance; + closestItem = dataItem; + } + } + }); + each(snapToSeries, (series2) => { + const tooltip = series2.get("tooltip"); + if (tooltip) { + tooltip._setDataItem(void 0); + } + }); + if (closestItem) { + let series2 = closestItem.component; + series2.showDataItemTooltip(closestItem); + series2.setRaw("tooltipDataItem", closestItem); + const point = closestItem.get("point"); + if (point) { + cursor2.handleMove(series2.toGlobal({ x: point.x - series2.x(), y: point.y - series2.y() }), true); + } + } + } + } + } + _updateCursor() { + let cursor2 = this.get("cursor"); + if (cursor2) { + cursor2.updateCursor(); + } + } + _addCursor(cursor2) { + this.plotContainer.children.push(cursor2); + } + _prepareChildren() { + super._prepareChildren(); + this.series.each((series2) => { + this._colorize(series2); + }); + if (this.isDirty("wheelX") || this.isDirty("wheelY")) { + this._handleSetWheel(); + } + if (this.isDirty("cursor")) { + const previous = this._prevSettings.cursor; + const cursor2 = this.get("cursor"); + if (cursor2 !== previous) { + this._disposeProperty("cursor"); + if (previous) { + previous.dispose(); + } + if (cursor2) { + cursor2._setChart(this); + this._addCursor(cursor2); + this._pushPropertyDisposer("cursor", cursor2.events.on("selectended", () => { + this._handleCursorSelectEnd(); + })); + } + this._prevSettings.cursor = cursor2; + } + } + if (this.isDirty("scrollbarX")) { + const previous = this._prevSettings.scrollbarX; + const scrollbarX = this.get("scrollbarX"); + if (scrollbarX !== previous) { + this._disposeProperty("scrollbarX"); + if (previous) { + previous.dispose(); + } + if (scrollbarX) { + if (!scrollbarX.parent) { + this.topAxesContainer.children.push(scrollbarX); + } + this._pushPropertyDisposer("scrollbarX", scrollbarX.events.on("rangechanged", (e) => { + this._handleScrollbar(this.xAxes, e.start, e.end, e.grip); + })); + this._pushPropertyDisposer("scrollbarX", scrollbarX.events.on("released", () => { + this.xAxes.each((axis) => { + if (axis.get("zoomable")) { + this._handleAxisSelection(axis); + } + }); + })); + scrollbarX.setPrivate("positionTextFunction", (position) => { + const axis = this.xAxes.getIndex(0); + return axis ? axis.getTooltipText(position, false) || "" : ""; + }); + } + this._prevSettings.scrollbarX = scrollbarX; + } + } + if (this.isDirty("scrollbarY")) { + const previous = this._prevSettings.scrollbarY; + const scrollbarY = this.get("scrollbarY"); + if (scrollbarY !== previous) { + this._disposeProperty("scrollbarY"); + if (previous) { + previous.dispose(); + } + if (scrollbarY) { + if (!scrollbarY.parent) { + this.rightAxesContainer.children.push(scrollbarY); + } + this._pushPropertyDisposer("scrollbarY", scrollbarY.events.on("rangechanged", (e) => { + this._handleScrollbar(this.yAxes, e.start, e.end, e.grip); + })); + this._pushPropertyDisposer("scrollbarY", scrollbarY.events.on("released", () => { + this.yAxes.each((axis) => { + if (axis.get("zoomable")) { + this._handleAxisSelection(axis); + } + }); + })); + scrollbarY.setPrivate("positionTextFunction", (position) => { + const axis = this.yAxes.getIndex(0); + return axis ? axis.getTooltipText(position, false) || "" : ""; + }); + } + this._prevSettings.scrollbarY = scrollbarY; + } + } + this._handleZoomOut(); + } + _processSeries(series2) { + super._processSeries(series2); + const xAxis2 = series2.get("xAxis"); + const yAxis2 = series2.get("yAxis"); + move(xAxis2.series, series2); + move(yAxis2.series, series2); + series2._posXDp = series2.addDisposer(xAxis2.events.on("positionchanged", () => { + series2._fixPosition(); + })); + series2._posXDp = series2.addDisposer(yAxis2.events.on("positionchanged", () => { + series2._fixPosition(); + })); + if (!series2.get("baseAxis")) { + if (yAxis2.isType("CategoryAxis") || yAxis2.isType("DateAxis")) { + series2.set("baseAxis", yAxis2); + } else { + series2.set("baseAxis", xAxis2); + } + } + if (series2.get("stacked")) { + series2._markDirtyKey("stacked"); + each(series2.dataItems, (dataItem) => { + dataItem.set("stackToItemY", void 0); + dataItem.set("stackToItemX", void 0); + }); + } + series2._markDirtyAxes(); + yAxis2.markDirtyExtremes(); + xAxis2.markDirtyExtremes(); + xAxis2._seriesAdded = true; + yAxis2._seriesAdded = true; + this._colorize(series2); + } + _colorize(series2) { + const colorSet = this.get("colors"); + if (colorSet) { + if (series2.get("fill") == null) { + const color2 = colorSet.next(); + series2._setSoft("stroke", color2); + series2._setSoft("fill", color2); + } + } + const patternSet = this.get("patterns"); + if (patternSet) { + if (series2.get("fillPattern") == null) { + const pattern = patternSet.next(); + series2._setSoft("fillPattern", pattern); + } + } + } + _handleCursorSelectEnd() { + const cursor2 = this.get("cursor"); + const behavior = cursor2.get("behavior"); + const downPositionX = cursor2.getPrivate("downPositionX", 0); + const downPositionY = cursor2.getPrivate("downPositionY", 0); + const positionX = Math.min(1, Math.max(0, cursor2.getPrivate("positionX", 0.5))); + const positionY = Math.min(1, Math.max(0, cursor2.getPrivate("positionY", 0.5))); + this.xAxes.each((axis) => { + if (behavior === "zoomX" || behavior === "zoomXY") { + let position0 = axis.toAxisPosition(downPositionX); + let position1 = axis.toAxisPosition(positionX); + axis.zoom(position0, position1); + } + axis.setPrivate("updateScrollbar", true); + }); + this.yAxes.each((axis) => { + if (behavior === "zoomY" || behavior === "zoomXY") { + let position0 = axis.toAxisPosition(downPositionY); + let position1 = axis.toAxisPosition(positionY); + axis.zoom(position0, position1); + } + axis.setPrivate("updateScrollbar", true); + }); + } + _handleScrollbar(axes, start, end, priority) { + axes.each((axis) => { + let axisStart = axis.fixPosition(start); + let axisEnd = axis.fixPosition(end); + let zoomAnimation = axis.zoom(axisStart, axisEnd, void 0, priority); + const updateScrollbar = "updateScrollbar"; + axis.setPrivateRaw(updateScrollbar, false); + if (zoomAnimation) { + zoomAnimation.events.on("stopped", () => { + axis.setPrivateRaw(updateScrollbar, true); + }); + } else { + axis.setPrivateRaw(updateScrollbar, true); + } + }); + } + _processAxis(axes, container) { + return axes.events.onAll((change) => { + if (change.type === "clear") { + each(change.oldValues, (axis) => { + this._removeAxis(axis); + }); + } else if (change.type === "push") { + container.children.push(change.newValue); + change.newValue.processChart(this); + } else if (change.type === "setIndex") { + container.children.setIndex(change.index, change.newValue); + change.newValue.processChart(this); + } else if (change.type === "insertIndex") { + container.children.insertIndex(change.index, change.newValue); + change.newValue.processChart(this); + } else if (change.type === "removeIndex") { + this._removeAxis(change.oldValue); + } else if (change.type === "moveIndex") { + container.children.moveValue(change.value, change.newIndex); + change.value.processChart(this); + } else { + throw new Error("Unknown IListEvent type"); + } + }); + } + _removeAxis(axis) { + if (!axis.isDisposed()) { + const axisParent = axis.parent; + if (axisParent) { + axisParent.children.removeValue(axis); + } + const gridContainer = axis.gridContainer; + const gridParent = gridContainer.parent; + if (gridParent) { + gridParent.children.removeValue(gridContainer); + } + const topGridContainer = axis.topGridContainer; + const topGridParent = topGridContainer.parent; + if (topGridParent) { + topGridParent.children.removeValue(topGridContainer); + } + } + } + _updateChartLayout() { + const left = this.leftAxesContainer.width(); + const right = this.rightAxesContainer.width(); + const bottomAxesContainer = this.bottomAxesContainer; + bottomAxesContainer.set("paddingLeft", left); + bottomAxesContainer.set("paddingRight", right); + const topAxesContainer = this.topAxesContainer; + topAxesContainer.set("paddingLeft", left); + topAxesContainer.set("paddingRight", right); + } + /** + * @ignore + */ + processAxis(axis) { + var cursor2 = this.get("cursor"); + if (cursor2) { + this.addDisposer(axis.on("start", () => { + this._updateCursor(); + })); + this.addDisposer(axis.on("end", () => { + this._updateCursor(); + })); + } + } + _handleAxisSelection(axis, force) { + let start = axis.fixPosition(axis.get("start", 0)); + let end = axis.fixPosition(axis.get("end", 1)); + if (start > end) { + [start, end] = [end, start]; + } + if (this.xAxes.indexOf(axis) != -1) { + if (force || axis.getPrivate("updateScrollbar")) { + let scrollbarX = this.get("scrollbarX"); + if (scrollbarX && (!scrollbarX.getPrivate("isBusy") || force)) { + scrollbarX.setRaw("start", start); + scrollbarX.setRaw("end", end); + scrollbarX.updateGrips(); + } + } + } else if (this.yAxes.indexOf(axis) != -1) { + if (force || axis.getPrivate("updateScrollbar")) { + let scrollbarY = this.get("scrollbarY"); + if (scrollbarY && (!scrollbarY.getPrivate("isBusy") || force)) { + scrollbarY.setRaw("start", start); + scrollbarY.setRaw("end", end); + scrollbarY.updateGrips(); + } + } + } + this._handleZoomOut(); + } + _handleZoomOut() { + let zoomOutButton = this.zoomOutButton; + if (zoomOutButton && zoomOutButton.parent) { + let visible = false; + this.xAxes.each((axis) => { + if (axis.get("zoomOut", true)) { + if (round(axis.get("start", 0), 5) != 0 || round(axis.get("end", 1), 5) != 1) { + visible = true; + } + } + }); + this.yAxes.each((axis) => { + if (axis.get("zoomOut", true)) { + if (round(axis.get("start", 0), 5) != 0 || round(axis.get("end", 1), 5) != 1) { + visible = true; + } + } + }); + if (visible) { + if (zoomOutButton.isHidden()) { + zoomOutButton.show(); + } + } else { + zoomOutButton.hide(); + } + } + } + /** + * Checks if point is within plot area. + * + * @param point Reference point + * @return Is within plot area? + */ + inPlot(point) { + const plotContainer = this.plotContainer; + const otherCharts = this.getPrivate("otherCharts", this._otherCharts); + const global = plotContainer.toGlobal(point); + if (point.x >= -0.5 && point.y >= -0.5 && point.x <= plotContainer.width() + 0.5 && point.y <= plotContainer.height() + 0.5) { + return true; + } + if (otherCharts) { + for (let i = otherCharts.length - 1; i >= 0; i--) { + const chart2 = otherCharts[i]; + if (chart2 != this) { + const chartPlotContainer = chart2.plotContainer; + const documentPoint = this._root.rootPointToDocument(global); + const chartRoot = chart2._root.documentPointToRoot(documentPoint); + const local = chartPlotContainer.toLocal(chartRoot); + if (local.x >= -0.1 && local.y >= -0.1 && local.x <= chartPlotContainer.width() + 0.1 && local.y <= chartPlotContainer.height() + 0.1) { + return true; + } + } + } + } + return false; + } + /** + * @ignore + */ + arrangeTooltips() { + const plotContainer = this.plotContainer; + const w = plotContainer.width(); + const h = plotContainer.height(); + let hh = this.height(); + const bounds = this._root.tooltipContainer.get("layerMargin"); + if (bounds) { + if (bounds.bottom > hh) { + hh = bounds.bottom; + } + } + let plotT = plotContainer._display.toGlobal({ x: 0, y: 0 }); + let plotB = plotContainer._display.toGlobal({ x: w, y: h }); + const tooltips = []; + let sum = 0; + let minDistance = Infinity; + let movePoint = this._movePoint; + let maxTooltipDistance = this.get("maxTooltipDistance"); + let maxTooltipDistanceBy = this.get("maxTooltipDistanceBy", "xy"); + let closest; + let closestPoint; + if (isNumber(maxTooltipDistance)) { + this.series.each((series2) => { + if (!series2.isHidden()) { + const tooltip = series2.get("tooltip"); + if (tooltip) { + let point = tooltip.get("pointTo"); + if (point) { + let distance = Math.hypot(movePoint.x - point.x, movePoint.y - point.y); + if (maxTooltipDistanceBy == "x") { + distance = Math.abs(movePoint.x - point.x); + } else if (maxTooltipDistanceBy == "y") { + distance = Math.abs(movePoint.y - point.y); + } + if (distance < minDistance) { + minDistance = distance; + closest = series2; + closestPoint = point; + } + } + } + } + }); + } + const tooltipSeries = []; + this.series.each((series2) => { + const tooltip = series2.get("tooltip"); + if (tooltip && !tooltip.get("forceHidden")) { + let hidden = false; + let point = tooltip.get("pointTo"); + if (point) { + if (maxTooltipDistance >= 0) { + let point2 = tooltip.get("pointTo"); + if (point2 && closestPoint) { + if (series2 != closest) { + let distance = Math.hypot(closestPoint.x - point2.x, closestPoint.y - point2.y); + if (maxTooltipDistanceBy == "x") { + distance = Math.abs(closestPoint.x - point2.x); + } else if (maxTooltipDistanceBy == "y") { + distance = Math.abs(closestPoint.y - point2.y); + } + if (distance > maxTooltipDistance) { + hidden = true; + } + } + } + } else if (maxTooltipDistance == -1) { + if (series2 != closest) { + hidden = true; + } + } + if (!this.inPlot(this._tooltipToLocal(point)) || !tooltip.dataItem) { + hidden = true; + } else { + if (!hidden) { + sum += point.y; + } + } + if (hidden || series2.isHidden() || series2.isHiding()) { + tooltip.hide(0); + } else { + tooltip.show(); + tooltips.push(tooltip); + tooltipSeries.push(series2); + } + } + } + }); + this.setPrivate("tooltipSeries", tooltipSeries); + if (this.get("arrangeTooltips")) { + let totalTooltipH = 0; + let tooltipCount = 0; + const tooltipContainer = this._root.tooltipContainer; + const count = tooltips.length; + const average = sum / count; + if (average > h / 2 + plotT.y) { + tooltips.sort((a, b) => compareNumber(b.get("pointTo").y, a.get("pointTo").y)); + let prevY = plotB.y; + each(tooltips, (tooltip) => { + let height = tooltip.height(); + tooltipCount++; + totalTooltipH += height; + let centerY = tooltip.get("centerY"); + if (centerY instanceof Percent) { + height *= centerY.value; + } + height += tooltip.get("marginBottom", 0); + tooltip.set("bounds", { left: plotT.x, top: plotT.y, right: plotB.x, bottom: prevY }); + tooltip.setPrivate("customData", { left: plotT.x, top: plotT.y, right: plotB.x, bottom: prevY }); + prevY = Math.min(prevY - height, tooltip._fy - height); + if (tooltip.parent == tooltipContainer) { + tooltipContainer.children.moveValue(tooltip, 0); + } + }); + if (prevY < 0) { + tooltips.reverse(); + let prevBottom = prevY; + each(tooltips, (tooltip) => { + tooltipCount++; + let bounds2 = tooltip.get("bounds"); + if (bounds2) { + let top = bounds2.top - prevY; + let bottom = bounds2.bottom - prevY; + if (top < prevBottom) { + top = prevBottom; + bottom = top + tooltip.height(); + } + tooltip.set("bounds", { left: bounds2.left, top, right: bounds2.right, bottom }); + prevBottom = bounds2.bottom - prevY + tooltip.get("marginBottom", 0); + } + }); + } + } else { + tooltips.reverse(); + tooltips.sort((a, b) => compareNumber(a.get("pointTo").y, b.get("pointTo").y)); + let prevY = 0; + each(tooltips, (tooltip) => { + tooltipCount++; + let height = tooltip.height(); + totalTooltipH += height; + let centerY = tooltip.get("centerY"); + if (centerY instanceof Percent) { + height *= centerY.value; + } + height += tooltip.get("marginBottom", 0); + tooltip.set("bounds", { left: plotT.x, top: prevY, right: plotB.x, bottom: Math.max(plotT.y + hh, prevY + height) }); + if (tooltip.parent == tooltipContainer) { + tooltipContainer.children.moveValue(tooltip, 0); + } + prevY = Math.max(prevY + height, tooltip._fy + height); + }); + if (prevY > hh) { + tooltips.reverse(); + let prevBottom = hh; + each(tooltips, (tooltip) => { + tooltipCount++; + let bounds2 = tooltip.get("bounds"); + if (bounds2) { + let top = bounds2.top - (hh - prevY); + let bottom = bounds2.bottom - (hh - prevY); + if (bottom > prevBottom) { + bottom = prevBottom; + top = bottom - tooltip.height(); + } + tooltip.set("bounds", { left: bounds2.left, top, right: bounds2.right, bottom }); + prevBottom = bottom - tooltip.height() - tooltip.get("marginBottom", 0); + } + }); + } + } + if (totalTooltipH == 0 && tooltipCount > 0) { + this._disposers.push(this.root.events.once("frameended", () => { + this.arrangeTooltips(); + })); + } + } + } + _tooltipToLocal(point) { + return this.plotContainer.toLocal(point); + } + /** + * Fully zooms out the chart. + */ + zoomOut() { + this.xAxes.each((axis) => { + if (axis.get("zoomOut", true)) { + axis.setPrivate("updateScrollbar", true); + axis.zoom(0, 1); + } + }); + this.yAxes.each((axis) => { + if (axis.get("zoomOut", true)) { + axis.setPrivate("updateScrollbar", true); + axis.zoom(0, 1); + } + }); + } + _dispose() { + super._dispose(); + const cursor2 = this.get("cursor"); + if (cursor2) { + cursor2.dispose(); + } + } + }; + XYChart.className = "XYChart"; + XYChart.classNames = SerialChart.classNames.concat([XYChart.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/Grid.js + var Grid = class extends Graphics { + _beforeChanged() { + super._beforeChanged(); + if (this.isPrivateDirty("width") || this.isPrivateDirty("height")) { + this._clear = true; + } + } + }; + Grid.className = "Grid"; + Grid.classNames = Graphics.classNames.concat([Grid.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/XYCursor.js + var XYCursor = class extends Container { + constructor() { + super(...arguments); + this._alwaysShow = false; + this.lineX = this.children.push(Grid.new(this._root, { + themeTags: ["x"] + })); + this.lineY = this.children.push(Grid.new(this._root, { + themeTags: ["y"] + })); + this.selection = this.children.push(Graphics.new(this._root, { + themeTags: ["selection", "cursor"], + layer: 30 + })); + this._lastPoint = { x: 0, y: 0 }; + this._lastPoint2 = { x: 0, y: 0 }; + this._tooltipX = false; + this._tooltipY = false; + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["xy", "cursor"]); + super._afterNew(); + this.setAll({ "width": p100, height: p100, isMeasured: true, position: "absolute" }); + this.states.create("hidden", { visible: true, opacity: 0 }); + this._drawLines(); + this.setPrivateRaw("visible", false); + this._disposers.push(this.setTimeout(() => { + this.setPrivate("visible", true); + }, 500)); + this._disposers.push(this.lineX.events.on("positionchanged", () => { + this._handleXLine(); + })); + this._disposers.push(this.lineY.events.on("positionchanged", () => { + this._handleYLine(); + })); + this._disposers.push(this.lineX.events.on("focus", () => this._handleLineFocus())); + this._disposers.push(this.lineX.events.on("blur", () => this._handleLineBlur())); + this._disposers.push(this.lineY.events.on("focus", () => this._handleLineFocus())); + this._disposers.push(this.lineY.events.on("blur", () => this._handleLineBlur())); + if (supports("keyboardevents")) { + this._disposers.push(addEventListener(document, "keydown", (ev) => { + this._handleLineMove(getEventKey(ev), ev.ctrlKey); + })); + } + } + _setUpTouch() { + const chart2 = this.chart; + if (chart2) { + chart2.plotContainer._display.cancelTouch = this.get("behavior") != "none" ? true : false; + } + } + _handleXLine() { + let x = this.lineX.x(); + let visible = true; + if (x < 0 || x > this.width()) { + visible = false; + } + this.lineX.setPrivate("visible", visible); + } + _handleYLine() { + let y = this.lineY.y(); + let visible = true; + if (y < 0 || y > this.height()) { + visible = false; + } + this.lineY.setPrivate("visible", visible); + } + _handleLineMove(key, ctrlKey) { + let dir = ""; + const chart2 = this.chart; + let axis; + if (chart2 && chart2.xAxes.length) { + if (this._root.focused(this.lineX)) { + dir = "positionX"; + axis = chart2.xAxes.getIndex(0); + } else if (this._root.focused(this.lineY)) { + axis = chart2.yAxes.getIndex(0); + dir = "positionY"; + } + let m = 1; + if (ctrlKey) { + m = 5; + } + if (axis) { + let inversed = axis.get("renderer").get("inversed", false); + let step; + if (key == "ArrowRight" || key == "ArrowDown") { + step = 1; + } else if (key == "ArrowLeft" || key == "ArrowUp") { + step = -1; + } else if (key == "Tab") { + step = 0; + } + if (step != null) { + if (inversed) { + step *= -1; + } + this.set(dir, axis.nextPosition(step * m)); + } + } + } + } + _handleLineFocus() { + this._alwaysShow = this.get("alwaysShow", false); + this.setAll({ + positionX: this.getPrivate("positionX", 0), + positionY: this.getPrivate("positionY", 0), + alwaysShow: true + }); + this._handleLineMove("Tab"); + } + _handleLineBlur() { + if (this.lineX.isFocus() || this.lineY.isFocus()) { + this.setAll({ + positionX: void 0, + positionY: void 0, + alwaysShow: this._alwaysShow + }); + } + } + _prepareChildren() { + super._prepareChildren(); + if (this.isDirty("xAxis")) { + this._tooltipX = false; + const xAxis2 = this.get("xAxis"); + if (xAxis2) { + const tooltip = xAxis2.get("tooltip"); + if (tooltip) { + this._tooltipX = true; + this._disposers.push(tooltip.on("pointTo", () => { + this._updateXLine(tooltip); + })); + } + } + } + if (this.isDirty("yAxis")) { + this._tooltipY = false; + const yAxis2 = this.get("yAxis"); + if (yAxis2) { + const tooltip = yAxis2.get("tooltip"); + if (tooltip) { + this._tooltipY = true; + this._disposers.push(tooltip.on("pointTo", () => { + this._updateYLine(tooltip); + })); + } + } + } + } + _handleSyncWith() { + const chart2 = this.chart; + if (chart2) { + const syncWith = this.get("syncWith"); + const otherCharts = []; + if (syncWith) { + each(syncWith, (cursor2) => { + const chart3 = cursor2.chart; + if (chart3) { + otherCharts.push(chart3); + } + }); + } + chart2._otherCharts = otherCharts; + } + } + _updateChildren() { + super._updateChildren(); + this._handleSyncWith(); + if (this.isDirty("positionX") || this.isDirty("positionY")) { + const positionX = this.get("positionX"); + const positionY = this.get("positionY"); + if (positionX == null && positionY == null) { + this.hide(0); + } else { + this._movePoint = this.toGlobal(this._getPoint(this.get("positionX", 0), this.get("positionY", 0))); + this.handleMove(); + } + } + } + _updateXLine(tooltip) { + let x = round(this._display.toLocal(tooltip.get("pointTo", { x: 0, y: 0 })).x, 3); + if (this._toX != x) { + this.lineX.animate({ key: "x", to: x, duration: tooltip.get("animationDuration", 0), easing: tooltip.get("animationEasing") }); + this._toX = x; + } + } + _updateYLine(tooltip) { + let y = round(this._display.toLocal(tooltip.get("pointTo", { x: 0, y: 0 })).y, 3); + if (this._toY != y) { + this.lineY.animate({ key: "y", to: y, duration: tooltip.get("animationDuration", 0), easing: tooltip.get("animationEasing") }); + this._toY = y; + } + } + _drawLines() { + this.lineX.set("draw", (display) => { + display.moveTo(0, 0); + display.lineTo(0, this.height()); + }); + this.lineY.set("draw", (display) => { + display.moveTo(0, 0); + display.lineTo(this.width(), 0); + }); + } + updateCursor() { + if (this.get("alwaysShow")) { + this._movePoint = this.toGlobal(this._getPoint(this.get("positionX", 0), this.get("positionY", 0))); + } + this.handleMove(); + } + _setChart(chart2) { + this.chart = chart2; + this._handleSyncWith(); + const plotContainer = chart2.plotContainer; + this.events.on("boundschanged", () => { + this._disposers.push(this.setTimeout(() => { + this.updateCursor(); + }, 50)); + }); + if (supports("touchevents")) { + this._disposers.push(plotContainer.events.on("click", (event) => { + if (isTouchEvent(event.originalEvent)) { + this._handleMove(event); + } + })); + this._setUpTouch(); + } + this._disposers.push(plotContainer.events.on("pointerdown", (event) => { + this._handleCursorDown(event); + })); + this._disposers.push(plotContainer.events.on("globalpointerup", (event) => { + this._handleCursorUp(event); + if (!event.native && !this.isHidden()) { + this._handleMove(event); + } + })); + this._disposers.push(plotContainer.events.on("globalpointermove", (event) => { + if (!this.get("syncWith")) { + if (keys(plotContainer._downPoints).length == 0 && !event.native && this.isHidden()) { + return; + } + } + this._handleMove(event); + if (Math.hypot(this._lastPoint2.x - event.point.x, this._lastPoint2.y - event.point.y) > 1) { + this._handleLineBlur(); + this._lastPoint2 = event.point; + } + })); + const parent = this.parent; + if (parent) { + parent.children.moveValue(this.selection); + } + } + _inPlot(point) { + const chart2 = this.chart; + if (chart2) { + return chart2.inPlot(point); + } + return false; + } + _handleCursorDown(event) { + if (event.originalEvent.button == 2) { + return; + } + const rootPoint = event.point; + let local = this._display.toLocal(rootPoint); + const chart2 = this.chart; + this.selection.set("draw", () => { + }); + if (chart2 && this._inPlot(local)) { + this._downPoint = local; + if (this.get("behavior") != "none") { + this.selection.show(); + const type = "selectstarted"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this, originalEvent: event.originalEvent }); + } + } + let positionX = this._getPosition(local).x; + let positionY = this._getPosition(local).y; + this.setPrivate("downPositionX", positionX); + this.setPrivate("downPositionY", positionY); + } + } + _handleCursorUp(event) { + if (this._downPoint) { + const behavior = this.get("behavior", "none"); + if (behavior != "none") { + if (behavior.charAt(0) === "z") { + this.selection.hide(); + } + const rootPoint = event.point; + let local = this._display.toLocal(rootPoint); + const downPoint = this._downPoint; + const moveThreshold = this.get("moveThreshold", 1); + if (local && downPoint) { + let dispatch = false; + if (behavior === "zoomX" || behavior === "zoomXY" || behavior === "selectX" || behavior === "selectXY") { + if (Math.abs(local.x - downPoint.x) > moveThreshold) { + dispatch = true; + } + } + if (behavior === "zoomY" || behavior === "zoomXY" || behavior === "selectY" || behavior === "selectXY") { + if (Math.abs(local.y - downPoint.y) > moveThreshold) { + dispatch = true; + } + } + if (dispatch) { + const type = "selectended"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this, originalEvent: event.originalEvent }); + } + } else { + const type = "selectcancelled"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this, originalEvent: event.originalEvent }); + } + } + } + } + } + this._downPoint = void 0; + } + _handleMove(event) { + if (this.getPrivate("visible")) { + const chart2 = this.chart; + if (chart2 && keys(chart2.plotContainer._downPoints).length > 1) { + this.set("forceHidden", true); + return; + } else { + this.set("forceHidden", false); + } + const rootPoint = event.point; + const lastPoint = this._lastPoint; + if (Math.round(lastPoint.x) === Math.round(rootPoint.x) && Math.round(lastPoint.y) === Math.round(rootPoint.y)) { + return; + } + this._lastPoint = rootPoint; + this.setPrivate("lastPoint", rootPoint); + this.handleMove({ x: rootPoint.x, y: rootPoint.y }, false, event.originalEvent); + } + } + _getPosition(point) { + return { x: point.x / this.width(), y: point.y / this.height() }; + } + /** + * Moves the cursor to X/Y coordinates within chart container (`point`). + * + * If `skipEvent` parameter is set to `true`, the move will not invoke + * the `"cursormoved"` event. + * + * @param point X/Y to move cursor to + * @param skipEvent Do not fire "cursormoved" event + */ + handleMove(point, skipEvent, originalEvent) { + if (!point) { + point = this._movePoint; + } + const alwaysShow = this.get("alwaysShow"); + if (!point) { + this.hide(0); + return; + } + this._movePoint = point; + let local = this._display.toLocal(point); + let chart2 = this.chart; + if (chart2 && (this._inPlot(local) || this._downPoint)) { + chart2._movePoint = point; + if (this.isHidden()) { + this.show(); + const behavior = this.get("behavior", ""); + if (behavior.charAt(0) == "z") { + this.selection.set("draw", () => { + }); + } + } + let x = local.x; + let y = local.y; + let xyPos = this._getPosition(local); + this.setPrivate("point", local); + let snapToSeries = this.get("snapToSeries"); + if (this._downPoint) { + snapToSeries = void 0; + } + let userPositionX = this.get("positionX"); + let positionX = xyPos.x; + if (isNumber(userPositionX)) { + positionX = userPositionX; + } + let userPositionY = this.get("positionY"); + let positionY = xyPos.y; + if (isNumber(userPositionY)) { + positionY = userPositionY; + } + this.setPrivate("positionX", positionX); + this.setPrivate("positionY", positionY); + const xy = this._getPoint(positionX, positionY); + x = xy.x; + y = xy.y; + chart2.xAxes.each((axis) => { + axis._handleCursorPosition(positionX, snapToSeries); + if (alwaysShow) { + axis.handleCursorShow(); + } + }); + chart2.yAxes.each((axis) => { + axis._handleCursorPosition(positionY, snapToSeries); + if (alwaysShow) { + axis.handleCursorShow(); + } + }); + if (!skipEvent) { + chart2._handleCursorPosition(); + const type = "cursormoved"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this, point, originalEvent }); + } + } + this._updateLines(x, y); + chart2.arrangeTooltips(); + } else if (!this._downPoint) { + if (!alwaysShow) { + this.hide(0); + const type = "cursorhidden"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this }); + } + } + } + if (this._downPoint && this.get("behavior") != "none") { + this._updateSelection(local); + } + } + _getPoint(positionX, positionY) { + return { x: this.width() * positionX, y: this.height() * positionY }; + } + _updateLines(x, y) { + if (!this._tooltipX) { + this.lineX.set("x", x); + } + if (!this._tooltipY) { + this.lineY.set("y", y); + } + this._drawLines(); + } + _updateSelection(point) { + const selection = this.selection; + const behavior = this.get("behavior"); + const w = this.width(); + const h = this.height(); + if (point.x < 0) { + point.x = 0; + } + if (point.x > w) { + point.x = w; + } + if (point.y < 0) { + point.y = 0; + } + if (point.y > h) { + point.y = h; + } + selection.set("draw", (display) => { + const downPoint = this._downPoint; + if (downPoint) { + if (behavior === "zoomXY" || behavior === "selectXY") { + display.moveTo(downPoint.x, downPoint.y); + display.lineTo(downPoint.x, point.y); + display.lineTo(point.x, point.y); + display.lineTo(point.x, downPoint.y); + display.lineTo(downPoint.x, downPoint.y); + } else if (behavior === "zoomX" || behavior === "selectX") { + display.moveTo(downPoint.x, 0); + display.lineTo(downPoint.x, h); + display.lineTo(point.x, h); + display.lineTo(point.x, 0); + display.lineTo(downPoint.x, 0); + } else if (behavior === "zoomY" || behavior === "selectY") { + display.moveTo(0, downPoint.y); + display.lineTo(w, downPoint.y); + display.lineTo(w, point.y); + display.lineTo(0, point.y); + display.lineTo(0, downPoint.y); + } + } + }); + } + _onHide() { + if (this.isHidden()) { + let chart2 = this.chart; + if (chart2) { + chart2.xAxes.each((axis) => { + axis.handleCursorHide(); + }); + chart2.yAxes.each((axis) => { + axis.handleCursorHide(); + }); + chart2.series.each((series2) => { + series2.handleCursorHide(); + }); + } + } + super._onHide(); + } + _onShow() { + if (!this.isHidden()) { + let chart2 = this.chart; + if (chart2) { + chart2.xAxes.each((axis) => { + axis.handleCursorShow(); + }); + chart2.yAxes.each((axis) => { + axis.handleCursorShow(); + }); + } + } + super._onShow(); + } + _dispose() { + super._dispose(); + this.selection.dispose(); + } + }; + XYCursor.className = "XYCursor"; + XYCursor.classNames = Container.classNames.concat([XYCursor.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/series/XYSeries.js + function min(left, right) { + if (left == null) + return right; + if (right == null) + return left; + return right < left ? right : left; + } + function max(left, right) { + if (left == null) + return right; + if (right == null) + return left; + return left > right ? left : right; + } + var XYSeries = class extends Series { + constructor() { + super(...arguments); + this._axesDirty = false; + this._stackDirty = false; + this._selectionProcessed = false; + this._dataSets = {}; + this._x = 0; + this._y = 0; + this._bullets = {}; + this.mainContainer = this.children.push(Container.new(this._root, {})); + this.axisRanges = new List(); + this._skipped = false; + this._couldStackTo = []; + this._reallyStackedTo = {}; + this._stackedSeries = {}; + this._aLocationX0 = 0; + this._aLocationX1 = 1; + this._aLocationY0 = 0; + this._aLocationY1 = 1; + this._showBullets = true; + this.valueXFields = [ + "valueX", + "openValueX", + "lowValueX", + "highValueX" + ]; + this.valueYFields = [ + "valueY", + "openValueY", + "lowValueY", + "highValueY" + ]; + this._emptyDataItem = new DataItem(this, void 0, {}); + } + _afterNew() { + this.fields.push("categoryX", "categoryY", "openCategoryX", "openCategoryY"); + this.valueFields.push("valueX", "valueY", "openValueX", "openValueY", "lowValueX", "lowValueY", "highValueX", "highValueY"); + this._setRawDefault("vcx", 1); + this._setRawDefault("vcy", 1); + this._setRawDefault("valueXShow", "valueXWorking"); + this._setRawDefault("valueYShow", "valueYWorking"); + this._setRawDefault("openValueXShow", "openValueXWorking"); + this._setRawDefault("openValueYShow", "openValueYWorking"); + this._setRawDefault("lowValueXShow", "lowValueXWorking"); + this._setRawDefault("lowValueYShow", "lowValueYWorking"); + this._setRawDefault("highValueXShow", "highValueXWorking"); + this._setRawDefault("highValueYShow", "highValueYWorking"); + this._setRawDefault("lowValueXGrouped", "low"); + this._setRawDefault("lowValueYGrouped", "low"); + this._setRawDefault("highValueXGrouped", "high"); + this._setRawDefault("highValueYGrouped", "high"); + const xAxis2 = this.get("xAxis"); + if (xAxis2) { + this._xRenderer = xAxis2.get("renderer"); + } + const yAxis2 = this.get("yAxis"); + if (yAxis2) { + this._yRenderer = yAxis2.get("renderer"); + } + super._afterNew(); + this.set("maskContent", true); + this._disposers.push(this.axisRanges.events.onAll((change) => { + if (change.type === "clear") { + each(change.oldValues, (axisRange) => { + this._removeAxisRange(axisRange); + }); + } else if (change.type === "push") { + this._processAxisRange(change.newValue); + } else if (change.type === "setIndex") { + this._processAxisRange(change.newValue); + } else if (change.type === "insertIndex") { + this._processAxisRange(change.newValue); + } else if (change.type === "removeIndex") { + this._removeAxisRange(change.oldValue); + } else if (change.type === "moveIndex") { + this._processAxisRange(change.value); + } else { + throw new Error("Unknown IStreamEvent type"); + } + })); + this.states.create("hidden", { opacity: 1, visible: false }); + this.onPrivate("startIndex", () => { + this.root.events.once("frameended", () => { + this.updateLegendValue(); + }); + }); + this.onPrivate("endIndex", () => { + this.root.events.once("frameended", () => { + this.updateLegendValue(); + }); + }); + this._makeFieldNames(); + } + _processAxisRange(axisRange) { + const container = Container.new(this._root, {}); + axisRange.container = container; + this.children.push(container); + axisRange.series = this; + const axisDataItem = axisRange.axisDataItem; + axisDataItem.setRaw("isRange", true); + const axis = axisDataItem.component; + if (axis) { + axis._processAxisRange(axisDataItem, ["range", "series"]); + const bullet = axisDataItem.get("bullet"); + if (bullet) { + const sprite = bullet.get("sprite"); + if (sprite) { + sprite.setPrivate("visible", false); + } + } + const axisFill = axisDataItem.get("axisFill"); + if (axisFill) { + container.set("mask", axisFill); + } + axis._seriesAxisRanges.push(axisDataItem); + } + } + _onDataClear() { + super._onDataClear(); + each2(this._dataSets, (_key, dataItems) => { + each(dataItems, (dataItem) => { + dataItem.dispose(); + }); + dataItems.length = 0; + }); + } + _removeAxisRange(axisRange) { + const axisDataItem = axisRange.axisDataItem; + const axis = axisDataItem.component; + axisDataItem.dispose(); + remove(axis._seriesAxisRanges, axisDataItem); + const container = axisRange.container; + if (container) { + container.dispose(); + } + } + _updateFields() { + super._updateFields(); + this._valueXFields = []; + this._valueYFields = []; + this._valueXShowFields = []; + this._valueYShowFields = []; + this.__valueXShowFields = []; + this.__valueYShowFields = []; + if (this.valueXFields) { + each(this.valueXFields, (key) => { + const field = this.get(key + "Field"); + if (field) { + this._valueXFields.push(key); + let field2 = this.get(key + "Show"); + this.__valueXShowFields.push(field2); + if (field2.indexOf("Working") != -1) { + this._valueXShowFields.push(field2.split("Working")[0]); + } else { + this._valueXShowFields.push(field2); + } + } + }); + } + if (this.valueYFields) { + each(this.valueYFields, (key) => { + const field = this.get(key + "Field"); + if (field) { + this._valueYFields.push(key); + let field2 = this.get(key + "Show"); + this.__valueYShowFields.push(field2); + if (field2.indexOf("Working") != -1) { + this._valueYShowFields.push(field2.split("Working")[0]); + } else { + this._valueYShowFields.push(field2); + } + } + }); + } + } + _dispose() { + super._dispose(); + this._bullets = {}; + const chart2 = this.chart; + if (chart2) { + chart2.series.removeValue(this); + } + removeFirst(this.get("xAxis").series, this); + removeFirst(this.get("yAxis").series, this); + } + // TODO use SelectKeys + _min(key, value) { + let newValue = min(this.getPrivate(key), value); + this.setPrivate(key, newValue); + } + // TODO use SelectKeys + _max(key, value) { + let newValue = max(this.getPrivate(key), value); + this.setPrivate(key, newValue); + } + _shouldMakeBullet(dataItem) { + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const baseAxis = this.get("baseAxis"); + if (!xAxis2.inited || !yAxis2.inited) { + return false; + } + const minBulletDistance = this.get("minBulletDistance", 0); + if (minBulletDistance > 0) { + let startIndex = this.startIndex(); + let endIndex = this.endIndex(); + let count = endIndex - startIndex; + if (xAxis2 == baseAxis) { + if (this._xRenderer.axisLength() / count < minBulletDistance / 5) { + return false; + } + } else if (yAxis2 == baseAxis) { + if (this._yRenderer.axisLength() / count < minBulletDistance / 5) { + return false; + } + } + } + if (dataItem.get(this._xField) != null && dataItem.get(this._yField) != null) { + return true; + } + return false; + } + _makeFieldNames() { + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const xName = xAxis2.getPrivate("name"); + const xCapName = capitalizeFirst(xName); + const yName = yAxis2.getPrivate("name"); + const yCapName = capitalizeFirst(yName); + const xLetter = xAxis2.get("renderer").getPrivate("letter"); + const yLetter = yAxis2.get("renderer").getPrivate("letter"); + const open2 = "open"; + const low = "low"; + const high = "high"; + const show = "Show"; + if (xAxis2.className === "ValueAxis") { + this._xField = this.get(xName + xLetter + show); + this._xOpenField = this.get(open2 + xCapName + xLetter + show); + this._xLowField = this.get(low + xCapName + xLetter + show); + this._xHighField = this.get(high + xCapName + xLetter + show); + } else { + this._xField = xName + xLetter; + this._xOpenField = open2 + xCapName + xLetter; + this._xLowField = low + xCapName + xLetter; + this._xHighField = high + xCapName + xLetter; + } + if (yAxis2.className === "ValueAxis") { + this._yField = this.get(yName + yLetter + show); + this._yOpenField = this.get(open2 + yCapName + yLetter + show); + this._yLowField = this.get(low + yCapName + yLetter + show); + this._yHighField = this.get(high + yCapName + yLetter + show); + } else { + this._yField = yName + yLetter; + this._yOpenField = open2 + yCapName + yLetter; + this._yLowField = low + yCapName + yLetter; + this._yHighField = high + yCapName + yLetter; + } + } + _fixVC() { + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const baseAxis = this.get("baseAxis"); + const hiddenState = this.states.lookup("hidden"); + const sequencedInterpolation = this.get("sequencedInterpolation"); + if (hiddenState) { + let value = 0; + if (sequencedInterpolation) { + value = 0.999999999999; + } + if (xAxis2 === baseAxis) { + hiddenState.set("vcy", value); + } else if (yAxis2 === baseAxis) { + hiddenState.set("vcx", value); + } else { + hiddenState.set("vcy", value); + hiddenState.set("vcx", value); + } + } + } + _handleMaskBullets() { + if (this.isDirty("maskBullets")) { + this.bulletsContainer.set("maskContent", this.get("maskBullets")); + } + } + _fixPosition() { + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + this.set("x", xAxis2.x() - relativeToValue(xAxis2.get("centerX", 0), xAxis2.width()) - xAxis2.parent.get("paddingLeft", 0)); + this.set("y", yAxis2.y() - relativeToValue(yAxis2.get("centerY", 0), yAxis2.height()) - yAxis2.parent.get("paddingTop", 0)); + this.bulletsContainer.set("y", this.y()); + this.bulletsContainer.set("x", this.x()); + } + _prepareChildren() { + super._prepareChildren(); + this._xRenderer = this.get("xAxis").get("renderer"); + this._yRenderer = this.get("yAxis").get("renderer"); + this._bullets = {}; + if (this.isDirty("valueYShow") || this.isDirty("valueXShow") || this.isDirty("openValueYShow") || this.isDirty("openValueXShow") || this.isDirty("lowValueYShow") || this.isDirty("lowValueXShow") || this.isDirty("highValueYShow") || this.isDirty("highValueXShow")) { + this._updateFields(); + this._makeFieldNames(); + this._valuesDirty = true; + } + if (this.isDirty("xAxis") || this.isDirty("yAxis")) { + this._valuesDirty = true; + } + this.set("width", this.get("xAxis").width()); + this.set("height", this.get("yAxis").height()); + this._handleMaskBullets(); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const baseAxis = this.get("baseAxis"); + const tooltipPositionX = this.get("tooltipPositionX"); + let tooltipFieldX; + switch (tooltipPositionX) { + case "open": + tooltipFieldX = this._xOpenField; + break; + case "low": + tooltipFieldX = this._xLowField; + break; + case "high": + tooltipFieldX = this._xHighField; + break; + default: + tooltipFieldX = this._xField; + } + this._tooltipFieldX = tooltipFieldX; + const tooltipPositionY = this.get("tooltipPositionY"); + let tooltipFieldY; + switch (tooltipPositionY) { + case "open": + tooltipFieldY = this._yOpenField; + break; + case "low": + tooltipFieldY = this._yLowField; + break; + case "high": + tooltipFieldY = this._yHighField; + break; + default: + tooltipFieldY = this._yField; + } + this._tooltipFieldY = tooltipFieldY; + if (this.isDirty("baseAxis")) { + this._fixVC(); + } + this._fixPosition(); + const stacked = this.get("stacked"); + if (this.isDirty("stacked")) { + if (stacked) { + if (this._valuesDirty && !this._dataProcessed) { + } else { + this._stack(); + } + } else { + this._unstack(); + } + } + if (this._valuesDirty && !this._dataProcessed) { + this._dataProcessed = true; + if (stacked) { + this._stack(); + } + each(this.dataItems, (dataItem) => { + each(this._valueXShowFields, (key) => { + let value = dataItem.get(key); + if (value != null) { + if (stacked) { + value += this.getStackedXValue(dataItem, key); + } + this._min("minX", value); + this._max("maxX", value); + } + }); + each(this._valueYShowFields, (key) => { + let value = dataItem.get(key); + if (value != null) { + if (stacked) { + value += this.getStackedYValue(dataItem, key); + } + this._min("minY", value); + this._max("maxY", value); + } + }); + xAxis2.processSeriesDataItem(dataItem, this._valueXFields); + yAxis2.processSeriesDataItem(dataItem, this._valueYFields); + }); + xAxis2._seriesValuesDirty = true; + yAxis2._seriesValuesDirty = true; + if (!this.get("ignoreMinMax")) { + if (this.isPrivateDirty("minX") || this.isPrivateDirty("maxX")) { + xAxis2.markDirtyExtremes(); + } + if (this.isPrivateDirty("minY") || this.isPrivateDirty("maxY")) { + yAxis2.markDirtyExtremes(); + } + } + this._markStakedDirtyStack(); + if (!this.get("tooltipDataItem")) { + this.updateLegendValue(void 0); + } + } + if (this.isDirty("vcx") || this.isDirty("vcy")) { + this._markStakedDirtyStack(); + } + if (!this._dataGrouped) { + xAxis2._groupSeriesData(this); + yAxis2._groupSeriesData(this); + this._dataGrouped = true; + } + if (this._valuesDirty || this.isPrivateDirty("startIndex") || this.isPrivateDirty("adjustedStartIndex") || this.isPrivateDirty("endIndex") || this.isDirty("vcx") || this.isDirty("vcy") || this._stackDirty || this._sizeDirty) { + let startIndex = this.startIndex(); + let endIndex = this.endIndex(); + let minBulletDistance = this.get("minBulletDistance", 0); + if (minBulletDistance > 0 && baseAxis) { + if (baseAxis.get("renderer").axisLength() / (endIndex - startIndex) > minBulletDistance) { + this._showBullets = true; + } else { + this._showBullets = false; + } + } + if ((this._psi != startIndex || this._pei != endIndex || this.isDirty("vcx") || this.isDirty("vcy") || this.isPrivateDirty("adjustedStartIndex") || this._stackDirty || this._valuesDirty) && !this._selectionProcessed) { + this._selectionProcessed = true; + const vcx = this.get("vcx", 1); + const vcy = this.get("vcy", 1); + const stacked2 = this.get("stacked", false); + const outOfSelection = this.getPrivate("outOfSelection"); + if (baseAxis === xAxis2 || !baseAxis) { + yAxis2._calculateTotals(); + this.setPrivateRaw("selectionMinY", void 0); + this.setPrivateRaw("selectionMaxY", void 0); + if (!outOfSelection) { + for (let i = startIndex; i < endIndex; i++) { + this.processYSelectionDataItem(this.dataItems[i], vcy, stacked2); + } + } else { + yAxis2.markDirtySelectionExtremes(); + } + } + if (baseAxis === yAxis2 || !baseAxis) { + xAxis2._calculateTotals(); + this.setPrivateRaw("selectionMinX", void 0); + this.setPrivateRaw("selectionMaxX", void 0); + if (!outOfSelection) { + for (let i = startIndex; i < endIndex; i++) { + this.processXSelectionDataItem(this.dataItems[i], vcx, stacked2); + } + } else { + yAxis2.markDirtySelectionExtremes(); + } + } + if (baseAxis === xAxis2 || !baseAxis) { + if (this.get("valueYShow") !== "valueYWorking" || this.get("useSelectionExtremes")) { + const selectionMinY = this.getPrivate("selectionMinY"); + if (selectionMinY != null) { + this.setPrivateRaw("minY", selectionMinY); + yAxis2.markDirtyExtremes(); + } + const selectionMaxY = this.getPrivate("selectionMaxY"); + if (selectionMaxY != null) { + this.setPrivateRaw("maxY", selectionMaxY); + yAxis2.markDirtyExtremes(); + } + } + } + if (baseAxis === yAxis2 || !baseAxis) { + if (this.get("valueXShow") !== "valueXWorking" || this.get("useSelectionExtremes")) { + const selectionMinX = this.getPrivate("selectionMinX"); + if (selectionMinX != null) { + this.setPrivateRaw("minX", selectionMinX); + yAxis2.markDirtyExtremes(); + } + const selectionMaxX = this.getPrivate("selectionMaxX"); + if (selectionMaxX != null) { + this.setPrivateRaw("maxX", selectionMaxX); + xAxis2.markDirtyExtremes(); + } + } + } + if (this.isPrivateDirty("selectionMinX") || this.isPrivateDirty("selectionMaxX")) { + xAxis2.markDirtySelectionExtremes(); + } + if (this.isPrivateDirty("selectionMinY") || this.isPrivateDirty("selectionMaxY")) { + yAxis2.markDirtySelectionExtremes(); + } + } + } + } + _postUpdateData() { + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + xAxis2._seriesValuesDirty = true; + yAxis2._seriesValuesDirty = true; + each(this.dataItems, (dataItem) => { + dataItem.open = void 0; + dataItem.close = void 0; + xAxis2.processSeriesDataItem(dataItem, this._valueXFields); + yAxis2.processSeriesDataItem(dataItem, this._valueYFields); + }); + } + _makeRangeMask() { + if (this.axisRanges.length > 0) { + let mainContainerMask = this._mainContainerMask; + if (mainContainerMask == null) { + mainContainerMask = this.children.push(Graphics.new(this._root, {})); + this._mainContainerMask = mainContainerMask; + mainContainerMask.set("draw", (display, target) => { + const parent = this.parent; + if (parent) { + const w = this._root.container.width(); + const h = this._root.container.height(); + display.moveTo(-w, -h); + display.lineTo(-w, h * 2); + display.lineTo(w * 2, h * 2); + display.lineTo(w * 2, -h); + display.lineTo(-w, -h); + this.axisRanges.each((axisRange) => { + const fill = axisRange.axisDataItem.get("axisFill"); + if (parent) { + if (fill) { + let draw = fill.get("draw"); + if (draw) { + draw(display, target); + } + } + } + }); + } + this.mainContainer._display.mask = mainContainerMask._display; + }); + } + mainContainerMask.markDirty(); + mainContainerMask._markDirtyKey("fill"); + } else { + this.mainContainer._display.mask = null; + } + } + _updateChildren() { + super._updateChildren(); + this._x = this.x(); + this._y = this.y(); + this._makeRangeMask(); + } + _stack() { + const chart2 = this.chart; + if (chart2) { + const seriesIndex = chart2.series.indexOf(this); + this._couldStackTo = []; + if (seriesIndex > 0) { + let series2; + for (let i = seriesIndex - 1; i >= 0; i--) { + series2 = chart2.series.getIndex(i); + if (series2.get("xAxis") === this.get("xAxis") && series2.get("yAxis") === this.get("yAxis") && series2.className === this.className) { + this._couldStackTo.push(series2); + if (!series2.get("stacked")) { + break; + } + } + } + } + this._stackDataItems(); + } + } + _unstack() { + each2(this._reallyStackedTo, (_key, value) => { + delete value._stackedSeries[this.uid]; + }); + this._reallyStackedTo = {}; + each(this.dataItems, (dataItem) => { + dataItem.setRaw("stackToItemY", void 0); + dataItem.setRaw("stackToItemX", void 0); + }); + } + _handleRemoved() { + const xAxis2 = this.get("xAxis"); + if (xAxis2) { + xAxis2._handleSeriesRemoved(); + } + const yAxis2 = this.get("yAxis"); + if (yAxis2) { + yAxis2._handleSeriesRemoved(); + } + } + _stackDataItems() { + const baseAxis = this.get("baseAxis"); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + let field; + let stackToItemKey; + if (baseAxis === xAxis2) { + field = "valueY"; + stackToItemKey = "stackToItemY"; + } else if (baseAxis === yAxis2) { + field = "valueX"; + stackToItemKey = "stackToItemX"; + } + let len = this._couldStackTo.length; + let index = 0; + const stackToNegative = this.get("stackToNegative"); + this._reallyStackedTo = {}; + each(this.dataItems, (dataItem) => { + for (let s2 = 0; s2 < len; s2++) { + let stackToSeries = this._couldStackTo[s2]; + let stackToItem = stackToSeries.dataItems[index]; + let value = dataItem.get(field); + if (stackToItem) { + let stackValue = stackToItem.get(field); + if (stackToNegative) { + if (isNumber(value)) { + if (isNumber(stackValue)) { + if (s2 == len - 1) { + dataItem.setRaw(stackToItemKey, void 0); + } + if (value >= 0 && stackValue >= 0) { + dataItem.setRaw(stackToItemKey, stackToItem); + this._reallyStackedTo[stackToSeries.uid] = stackToSeries; + stackToSeries._stackedSeries[this.uid] = this; + break; + } + if (value < 0 && stackValue < 0) { + dataItem.setRaw(stackToItemKey, stackToItem); + this._reallyStackedTo[stackToSeries.uid] = stackToSeries; + stackToSeries._stackedSeries[this.uid] = this; + break; + } + } + } else { + break; + } + } else { + if (isNumber(value) && isNumber(stackValue)) { + dataItem.setRaw(stackToItemKey, stackToItem); + this._reallyStackedTo[stackToSeries.uid] = stackToSeries; + stackToSeries._stackedSeries[this.uid] = this; + break; + } + } + } + } + index++; + }); + } + processXSelectionDataItem(dataItem, vcx, stacked) { + each(this.__valueXShowFields, (key) => { + let value = dataItem.get(key); + if (value != null) { + if (stacked) { + value += this.getStackedXValueWorking(dataItem, key); + } + this._min("selectionMinX", value); + this._max("selectionMaxX", value * vcx); + } + }); + } + processYSelectionDataItem(dataItem, vcy, stacked) { + each(this.__valueYShowFields, (key) => { + let value = dataItem.get(key); + if (value != null) { + if (stacked) { + value += this.getStackedYValueWorking(dataItem, key); + } + this._min("selectionMinY", value); + this._max("selectionMaxY", value * vcy); + } + }); + } + /** + * @ignore + */ + getStackedYValueWorking(dataItem, key) { + const stackToItem = dataItem.get("stackToItemY"); + if (stackToItem) { + const stackedToSeries = stackToItem.component; + return stackToItem.get(key, 0) * stackedToSeries.get("vcy", 1) + this.getStackedYValueWorking(stackToItem, key); + } + return 0; + } + /** + * @ignore + */ + getStackedXValueWorking(dataItem, key) { + const stackToItem = dataItem.get("stackToItemX"); + if (stackToItem) { + const stackedToSeries = stackToItem.component; + return stackToItem.get(key, 0) * stackedToSeries.get("vcx", 1) + this.getStackedXValueWorking(stackToItem, key); + } + return 0; + } + /** + * @ignore + */ + getStackedYValue(dataItem, key) { + const stackToItem = dataItem.get("stackToItemY"); + if (stackToItem) { + return stackToItem.get(key, 0) + this.getStackedYValue(stackToItem, key); + } + return 0; + } + /** + * @ignore + */ + getStackedXValue(dataItem, key) { + const stackToItem = dataItem.get("stackToItemX"); + if (stackToItem) { + return stackToItem.get(key, 0) + this.getStackedXValue(stackToItem, key); + } + return 0; + } + /** + * @ignore + */ + createLegendMarker(_dataItem) { + this.updateLegendMarker(); + } + _markDirtyAxes() { + this._axesDirty = true; + this.markDirty(); + } + _markDataSetDirty() { + this._afterDataChange(); + this._valuesDirty = true; + this._dataProcessed = false; + this._aggregatesCalculated = false; + this.markDirty(); + } + _clearDirty() { + super._clearDirty(); + this._axesDirty = false; + this._selectionProcessed = false; + this._stackDirty = false; + this._dataProcessed = false; + } + _positionBullet(bullet) { + let sprite = bullet.get("sprite"); + if (sprite) { + let dataItem = sprite.dataItem; + let locationX = bullet.get("locationX", dataItem.get("locationX", 0.5)); + let locationY = bullet.get("locationY", dataItem.get("locationY", 0.5)); + let xAxis2 = this.get("xAxis"); + let yAxis2 = this.get("yAxis"); + let exactLocationX = this.get("exactLocationX", false); + let exactLocationY = this.get("exactLocationY", false); + let positionX = xAxis2.getDataItemPositionX(dataItem, this._xField, locationX, this.get("vcx", 1), exactLocationX); + let positionY = yAxis2.getDataItemPositionY(dataItem, this._yField, locationY, this.get("vcy", 1), exactLocationY); + let point = this.getPoint(positionX, positionY); + let left = dataItem.get("left", point.x); + let right = dataItem.get("right", point.x); + let top = dataItem.get("top", point.y); + let bottom = dataItem.get("bottom", point.y); + let x = 0; + let y = 0; + let w = right - left; + let h = bottom - top; + if (this._shouldShowBullet(positionX, positionY)) { + sprite.setPrivate("visible", !bullet.getPrivate("hidden")); + let field = bullet.get("field"); + const baseAxis = this.get("baseAxis"); + const xAxis3 = this.get("xAxis"); + const yAxis3 = this.get("yAxis"); + if (field != void 0) { + let realField; + if (baseAxis == xAxis3) { + if (field == "value") { + realField = this._yField; + } else if (field == "open") { + realField = this._yOpenField; + } else if (field == "high") { + realField = this._yHighField; + } else if (field == "low") { + realField = this._yLowField; + } + if (realField) { + positionY = yAxis3.getDataItemPositionY(dataItem, realField, 0, this.get("vcy", 1), exactLocationY); + point = this._yRenderer.positionToPoint(positionY); + y = point.y; + x = left + w * locationX; + } + } else { + if (field == "value") { + realField = this._xField; + } else if (field == "open") { + realField = this._xOpenField; + } else if (field == "high") { + realField = this._xHighField; + } else if (field == "low") { + realField = this._xLowField; + } + if (realField) { + positionX = xAxis3.getDataItemPositionX(dataItem, realField, 0, this.get("vcx", 1), exactLocationX); + point = this._xRenderer.positionToPoint(positionX); + x = point.x; + y = bottom - h * locationY; + } + } + } else { + x = left + w * locationX; + y = bottom - h * locationY; + } + const stacked = bullet.get("stacked"); + if (stacked) { + const chart2 = this.chart; + if (baseAxis == xAxis3) { + let previousBullet = this._bullets[positionX + "_" + positionY]; + if (previousBullet) { + let previousBounds = previousBullet.bounds(); + let bounds = sprite.localBounds(); + let yo = y; + y = previousBounds.top; + if (stacked == "down") { + y = previousBounds.bottom - bounds.top; + } else if (stacked == "auto") { + if (chart2) { + if (yo < chart2.plotContainer.height() / 2) { + y = previousBounds.bottom - bounds.top; + } else { + y += bounds.bottom; + } + } + } else { + y += bounds.bottom; + } + } + this._bullets[positionX + "_" + positionY] = sprite; + } else { + let previousBullet = this._bullets[positionX + "_" + positionY]; + if (previousBullet) { + let previousBounds = previousBullet.bounds(); + let bounds = sprite.localBounds(); + let xo = x; + x = previousBounds.right; + if (stacked == "down") { + x = previousBounds.left - bounds.right; + } else if (stacked == "auto") { + if (chart2) { + if (xo < chart2.plotContainer.width() / 2) { + x = previousBounds.left - bounds.right; + } else { + x -= bounds.left; + } + } + } else { + x -= bounds.left; + } + } + this._bullets[positionX + "_" + positionY] = sprite; + } + } + if (sprite.isType("Label")) { + sprite.setPrivate("maxWidth", Math.abs(w)); + sprite.setPrivate("maxHeight", Math.abs(h)); + } + sprite.setAll({ x, y }); + } else { + sprite.setPrivate("visible", false); + } + } + } + _shouldShowBullet(_positionX, _positionY) { + return this._showBullets; + } + /** + * @ignore + */ + setDataSet(id) { + if (this._dataSets[id]) { + this._handleDataSetChange(); + this._dataItems = this._dataSets[id]; + this._markDataSetDirty(); + this._dataSetId = id; + const type = "datasetchanged"; + if (this.events.isEnabled(type)) { + this.events.dispatch(type, { type, target: this, id }); + } + } + } + /** + * @ignore + */ + resetGrouping() { + each2(this._dataSets, (_key, dataSet) => { + if (dataSet != this._mainDataItems) { + each(dataSet, (dataItem) => { + dataItem.dispose(); + }); + } + }); + this._dataSets = {}; + this._dataItems = this.mainDataItems; + } + _handleDataSetChange() { + each(this._dataItems, (dataItem) => { + let bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + if (bullet) { + let sprite = bullet.get("sprite"); + if (sprite) { + sprite.setPrivate("visible", false); + } + } + }); + } + }); + this._selectionProcessed = false; + } + /** + * Shows hidden series. + * + * @param duration Duration of animation in milliseconds + * @return Animation promise + */ + show(duration) { + const _super = Object.create(null, { + show: { get: () => super.show } + }); + return __awaiter(this, void 0, void 0, function* () { + this._fixVC(); + let promises = []; + promises.push(_super.show.call(this, duration).then(() => { + this._isShowing = false; + let xAxis2 = this.get("xAxis"); + let yAxis2 = this.get("yAxis"); + let baseAxis = this.get("baseAxis"); + if (yAxis2 !== baseAxis) { + yAxis2.markDirtySelectionExtremes(); + } + if (xAxis2 !== baseAxis) { + xAxis2.markDirtySelectionExtremes(); + } + })); + promises.push(this.bulletsContainer.show(duration)); + promises.push(this._sequencedShowHide(true, duration)); + yield Promise.all(promises); + }); + } + /** + * Hides series. + * + * @param duration Duration of animation in milliseconds + * @return Animation promise + */ + hide(duration) { + const _super = Object.create(null, { + hide: { get: () => super.hide } + }); + return __awaiter(this, void 0, void 0, function* () { + this._fixVC(); + let promises = []; + promises.push(_super.hide.call(this, duration).then(() => { + this._isHiding = false; + })); + promises.push(this.bulletsContainer.hide(duration)); + promises.push(this._sequencedShowHide(false, duration)); + yield Promise.all(promises); + }); + } + /** + * Shows series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + showDataItem(dataItem, duration) { + const _super = Object.create(null, { + showDataItem: { get: () => super.showDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.showDataItem.call(this, dataItem, duration)]; + if (!isNumber(duration)) { + duration = this.get("stateAnimationDuration", 0); + } + const easing = this.get("stateAnimationEasing"); + each(this._valueFields, (key) => { + promises.push(dataItem.animate({ key: key + "Working", to: dataItem.get(key), duration, easing }).waitForStop()); + }); + yield Promise.all(promises); + }); + } + /** + * Hides series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + hideDataItem(dataItem, duration) { + const _super = Object.create(null, { + hideDataItem: { get: () => super.hideDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.hideDataItem.call(this, dataItem, duration)]; + let hiddenState = this.states.lookup("hidden"); + if (!hiddenState) { + hiddenState = this.states.create("hidden", {}); + } + if (!isNumber(duration)) { + duration = hiddenState.get("stateAnimationDuration", this.get("stateAnimationDuration", 0)); + } + const easing = hiddenState.get("stateAnimationEasing", this.get("stateAnimationEasing")); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const baseAxis = this.get("baseAxis"); + const stacked = this.get("stacked"); + if (baseAxis === xAxis2 || !baseAxis) { + each(this._valueYFields, (key) => { + let min2 = yAxis2.getPrivate("min"); + let baseValue = yAxis2.baseValue(); + if (isNumber(min2) && min2 > baseValue) { + baseValue = min2; + } + if (stacked) { + baseValue = 0; + } + let value = dataItem.get(key); + if (value != null) { + promises.push(dataItem.animate({ key: key + "Working", to: baseValue, duration, easing }).waitForStop()); + } + }); + } + if (baseAxis === yAxis2 || !baseAxis) { + let min2 = xAxis2.getPrivate("min"); + let baseValue = xAxis2.baseValue(); + if (isNumber(min2) && min2 > baseValue) { + baseValue = min2; + } + if (stacked) { + baseValue = 0; + } + each(this._valueXFields, (key) => { + let value = dataItem.get(key); + if (value != null) { + promises.push(dataItem.animate({ key: key + "Working", to: baseValue, duration, easing }).waitForStop()); + } + }); + } + yield Promise.all(promises); + }); + } + _markDirtyStack() { + this._stackDirty = true; + this.markDirty(); + this._markStakedDirtyStack(); + } + _markStakedDirtyStack() { + const stackedSeries = this._stackedSeries; + if (stackedSeries) { + each2(stackedSeries, (_key, value) => { + if (!value._stackDirty) { + value._markDirtyStack(); + } + }); + } + } + _afterChanged() { + super._afterChanged(); + if (this._skipped) { + this._markDirtyAxes(); + this._skipped = false; + } + } + /** + * Shows a tooltip for specific data item. + * + * @param dataItem Data item + */ + showDataItemTooltip(dataItem) { + if (!this.getPrivate("doNotUpdateLegend")) { + this.updateLegendMarker(dataItem); + this.updateLegendValue(dataItem); + } + const tooltip = this.get("tooltip"); + const exactLocationX = this.get("exactLocationX", false); + const exactLocationY = this.get("exactLocationY", false); + if (tooltip) { + if (!this.isHidden() && this.get("visible")) { + tooltip._setDataItem(dataItem); + if (dataItem) { + let locationX = this.get("locationX", 0); + let locationY = this.get("locationY", 1); + let itemLocationX = dataItem.get("locationX", locationX); + let itemLocationY = dataItem.get("locationY", locationY); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const vcx = this.get("vcx", 1); + const vcy = this.get("vcy", 1); + const xPos = xAxis2.getDataItemPositionX(dataItem, this._tooltipFieldX, this._aLocationX0 + (this._aLocationX1 - this._aLocationX0) * itemLocationX, vcx, exactLocationX); + const yPos = yAxis2.getDataItemPositionY(dataItem, this._tooltipFieldY, this._aLocationY0 + (this._aLocationY1 - this._aLocationY0) * itemLocationY, vcy, exactLocationY); + const point = this.getPoint(xPos, yPos); + let show = true; + each(this._valueFields, (field) => { + if (dataItem.get(field) == null) { + show = false; + } + }); + if (show) { + const chart2 = this.chart; + if (chart2 && chart2.inPlot(point)) { + tooltip.label.text.markDirtyText(); + tooltip.set("tooltipTarget", this._getTooltipTarget(dataItem)); + tooltip.set("pointTo", this._display.toGlobal({ x: point.x, y: point.y })); + } else { + tooltip._setDataItem(void 0); + } + } else { + tooltip._setDataItem(void 0); + } + } + } else { + this.hideTooltip(); + } + } + } + hideTooltip() { + const tooltip = this.get("tooltip"); + if (tooltip) { + tooltip.set("tooltipTarget", this); + } + return super.hideTooltip(); + } + _getTooltipTarget(dataItem) { + if (this.get("seriesTooltipTarget") == "bullet") { + const bullets = dataItem.bullets; + if (bullets && bullets.length > 0) { + const bullet = bullets[0]; + const sprite = bullet.get("sprite"); + if (sprite) { + return sprite; + } + } + } + return this; + } + /** + * @ignore + */ + updateLegendValue(dataItem) { + const legendDataItem = this.get("legendDataItem"); + if (legendDataItem) { + const label = legendDataItem.get("label"); + if (label) { + let txt = ""; + if (dataItem) { + label._setDataItem(dataItem); + txt = this.get("legendLabelText", label.get("text", this.get("name", ""))); + } else { + label._setDataItem(this._emptyDataItem); + txt = this.get("legendRangeLabelText", this.get("legendLabelText", label.get("text", this.get("name", "")))); + } + label.set("text", txt); + } + const valueLabel = legendDataItem.get("valueLabel"); + if (valueLabel) { + let txt = ""; + if (dataItem) { + valueLabel._setDataItem(dataItem); + txt = this.get("legendValueText", valueLabel.get("text", "")); + } else { + valueLabel._setDataItem(this._emptyDataItem); + txt = this.get("legendRangeValueText", valueLabel.get("text", "")); + } + valueLabel.set("text", txt); + } + } + } + _getItemReaderLabel() { + let text = "X: {" + this._xField; + if (this.get("xAxis").isType("DateAxis")) { + text += ".formatDate()"; + } + text += "}; Y: {" + this._yField; + if (this.get("yAxis").isType("DateAxis")) { + text += ".formatDate()"; + } + text += "}"; + return text; + } + /** + * @ignore + */ + getPoint(positionX, positionY) { + let x = this._xRenderer.positionToCoordinate(positionX); + let y = this._yRenderer.positionToCoordinate(positionY); + let max2 = 999999999; + if (y < -max2) { + y = -max2; + } else if (y > max2) { + y = max2; + } + if (x < -max2) { + x = -max2; + } else if (x > max2) { + x = max2; + } + return { x, y }; + } + _shouldInclude(_position) { + return true; + } + /** + * @ignore + */ + handleCursorHide() { + this.hideTooltip(); + this.updateLegendValue(void 0); + this.updateLegendMarker(void 0); + } + _afterDataChange() { + super._afterDataChange(); + this.get("xAxis")._markDirtyKey("start"); + this.get("yAxis")._markDirtyKey("start"); + this.resetExtremes(); + } + /** + * Resets cached axis scale values. + */ + resetExtremes() { + this.setPrivate("selectionMinX", void 0); + this.setPrivate("selectionMaxX", void 0); + this.setPrivate("selectionMinY", void 0); + this.setPrivate("selectionMaxY", void 0); + this.setPrivate("minX", void 0); + this.setPrivate("minY", void 0); + this.setPrivate("maxX", void 0); + this.setPrivate("maxY", void 0); + } + /** + * Creates and returns an axis range object. + * + * @see {@link https://www.amcharts.com/docs/v5/charts/xy-chart/axes/axis-ranges/} for more info + * @param axisDataItem Axis data item + * @return Axis range + */ + createAxisRange(axisDataItem) { + return this.axisRanges.push({ + axisDataItem + }); + } + /** + * A list of series's main (ungrouped) data items. + * + * @return Data items + */ + get mainDataItems() { + return this._mainDataItems; + } + /** + * @ignore + */ + _adjustStartIndex(index) { + const xAxis2 = this.get("xAxis"); + const baseAxis = this.get("baseAxis"); + if (baseAxis == xAxis2 && xAxis2.isType("DateAxis")) { + const baseDuration = xAxis2.baseDuration(); + const minSelection = xAxis2.getPrivate("selectionMin", xAxis2.getPrivate("min", 0)); + const dl = baseDuration * this.get("locationX", 0.5); + let value = -Infinity; + while (value < minSelection) { + const dataItem = this.dataItems[index]; + if (dataItem) { + const open2 = dataItem.open; + if (open2) { + value = open2["valueX"]; + } else { + value = dataItem.get("valueX", 0); + } + value += dl; + if (value < minSelection) { + index++; + } else { + break; + } + } else { + break; + } + } + } + return index; + } + }; + XYSeries.className = "XYSeries"; + XYSeries.classNames = Series.classNames.concat([XYSeries.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/series/BaseColumnSeries.js + var BaseColumnSeries = class _BaseColumnSeries extends XYSeries { + constructor() { + super(...arguments); + this._ph = 0; + this._pw = 0; + this._columnsUpdated = false; + } + _makeGraphics(listTemplate, dataItem) { + return this.makeColumn(dataItem, listTemplate); + } + _makeFieldNames() { + super._makeFieldNames(); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const categoryAxis = "CategoryAxis"; + const valueAxis = "ValueAxis"; + if (xAxis2.isType(categoryAxis)) { + if (!this.get("openCategoryXField")) { + this._xOpenField = this._xField; + } + } + if (xAxis2.isType(valueAxis)) { + if (!this.get("openValueXField")) { + this._xOpenField = this._xField; + } + } + if (yAxis2.isType(categoryAxis)) { + if (!this.get("openCategoryYField")) { + this._yOpenField = this._yField; + } + } + if (yAxis2.isType(valueAxis)) { + if (!this.get("openValueYField")) { + this._yOpenField = this._yField; + } + } + } + _prepareChildren() { + super._prepareChildren(); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const len = this.dataItems.length; + const startIndex = Math.max(0, this.startIndex() - 2); + const endIndex = Math.min(this.endIndex() + 2, len - 1); + if (xAxis2.inited && yAxis2.inited) { + for (let i = startIndex; i <= endIndex; i++) { + let dataItem = this.dataItems[i]; + this._createGraphics(dataItem); + } + } + } + _updateChildren() { + const chart2 = this.chart; + if (chart2) { + this._ph = chart2.plotContainer.height(); + this._pw = chart2.plotContainer.width(); + } + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const baseAxis = this.get("baseAxis"); + const columnsTemplate = this.columns.template; + if (this.isDirty("fill")) { + if (columnsTemplate.get("fill") == null) { + columnsTemplate.set("fill", this.get("fill")); + } + } + if (this.isDirty("fillPattern")) { + if (columnsTemplate.get("fillPattern") == null) { + columnsTemplate.set("fillPattern", this.get("fillPattern")); + } + } + if (this.isDirty("stroke")) { + if (columnsTemplate.get("stroke") == null) { + columnsTemplate.set("stroke", this.get("stroke")); + } + } + let index = 0; + let clusterCount = 0; + let i = 0; + if (baseAxis) { + each(baseAxis.series, (series2) => { + if (series2 instanceof _BaseColumnSeries) { + const stacked = series2.get("stacked"); + if (stacked && i == 0) { + clusterCount++; + } + if (!stacked && series2.get("clustered")) { + clusterCount++; + } + } + if (series2 === this) { + index = clusterCount - 1; + } + i++; + }); + } + if (!this.get("clustered")) { + index = 0; + clusterCount = 1; + } + if (clusterCount === 0) { + clusterCount = 1; + index = 0; + } + const cellStartLocation = "cellStartLocation"; + const cellEndLocation = "cellEndLocation"; + const cellLocationX0 = this._xRenderer.get(cellStartLocation, 0); + const cellLocationX1 = this._xRenderer.get(cellEndLocation, 1); + const cellLocationY0 = this._yRenderer.get(cellStartLocation, 0); + const cellLocationY1 = this._yRenderer.get(cellEndLocation, 1); + this._aLocationX0 = cellLocationX0 + index / clusterCount * (cellLocationX1 - cellLocationX0); + this._aLocationX1 = cellLocationX0 + (index + 1) / clusterCount * (cellLocationX1 - cellLocationX0); + ; + this._aLocationY0 = cellLocationY0 + index / clusterCount * (cellLocationY1 - cellLocationY0); + this._aLocationY1 = cellLocationY0 + (index + 1) / clusterCount * (cellLocationY1 - cellLocationY0); + if (xAxis2.inited && yAxis2.inited) { + if (this._axesDirty || this._valuesDirty || this._stackDirty || this.isDirty("vcx") || this.isDirty("vcy") || this._sizeDirty) { + const len = this.dataItems.length; + let startIndex = Math.max(0, this.startIndex() - 2); + let endIndex = Math.min(this.endIndex() + 2, len - 1); + for (let i2 = 0; i2 < startIndex; i2++) { + this._toggleColumn(this.dataItems[i2], false); + } + let previous = this.dataItems[startIndex]; + for (let i2 = startIndex; i2 <= endIndex; i2++) { + let dataItem = this.dataItems[i2]; + if (dataItem.get("valueX") != null && dataItem.get("valueY") != null) { + previous = dataItem; + if (i2 > 0 && startIndex > 0) { + for (let j = i2 - 1; j >= 0; j--) { + let dataItem2 = this.dataItems[j]; + if (dataItem2.get("valueX") != null && dataItem2.get("valueY") != null) { + previous = dataItem2; + break; + } + } + } + break; + } else { + this._toggleColumn(dataItem, false); + } + } + this._beforeColumnsDraw(); + let axisCase = 0; + if (yAxis2.isType("CategoryAxis") && xAxis2.isType("CategoryAxis")) { + axisCase = 2; + } else if (xAxis2 === baseAxis) { + axisCase = 0; + } else if (yAxis2 === baseAxis) { + axisCase = 1; + } + for (let i2 = startIndex; i2 <= endIndex; i2++) { + let dataItem = this.dataItems[i2]; + this._updateGraphics(dataItem, previous, axisCase); + if (dataItem.get("valueX") != null && dataItem.get("valueY") != null) { + previous = dataItem; + } + } + this._afterColumnsDraw(); + for (let i2 = endIndex + 1; i2 < len; i2++) { + this._toggleColumn(this.dataItems[i2], false); + } + this._columnsUpdated = true; + } + } else { + this._skipped = true; + } + if (!this.getPrivate("doNotUpdateLegend")) { + this.updateLegendMarker(this.get("tooltipDataItem")); + } + super._updateChildren(); + } + _afterChanged() { + super._afterChanged(); + this._columnsUpdated = false; + } + _beforeColumnsDraw() { + } + _afterColumnsDraw() { + } + _createGraphics(dataItem) { + let graphics = dataItem.get("graphics"); + if (!graphics) { + graphics = this._makeGraphics(this.columns, dataItem); + dataItem.set("graphics", graphics); + graphics._setDataItem(dataItem); + const legendDataItem = dataItem.get("legendDataItem"); + if (legendDataItem) { + const markerRectangle = legendDataItem.get("markerRectangle"); + if (markerRectangle) { + const ds = markerRectangle.states.lookup("default"); + each(visualSettings, (setting) => { + const value = graphics.get(setting, this.get(setting)); + markerRectangle.set(setting, value); + ds.set(setting, value); + }); + } + } + let graphicsArray = dataItem.get("rangeGraphics"); + if (graphicsArray) { + each(graphicsArray, (graphics2) => { + graphics2.dispose(); + }); + } + graphicsArray = []; + dataItem.setRaw("rangeGraphics", graphicsArray); + this.axisRanges.each((axisRange) => { + const container = axisRange.container; + const rangeGraphics = this._makeGraphics(axisRange.columns, dataItem); + if (graphicsArray) { + graphicsArray.push(rangeGraphics); + } + rangeGraphics.setPrivate("list", axisRange.columns); + container.children.push(rangeGraphics); + }); + } + } + createAxisRange(axisDataItem) { + each(this.dataItems, (dataItem) => { + const graphics = dataItem.get("graphics"); + if (graphics) { + graphics.dispose(); + dataItem.set("graphics", void 0); + } + }); + return super.createAxisRange(axisDataItem); + } + _updateGraphics(dataItem, previousDataItem, axisCase) { + let graphics = dataItem.get("graphics"); + const xField = this._xField; + const yField = this._yField; + const valueX = dataItem.get(xField); + const valueY = dataItem.get(yField); + const exactLocationX = this.get("exactLocationX", false); + if (valueX != null && valueY != null) { + const xOpenField = this._xOpenField; + const yOpenField = this._yOpenField; + const locationX = this.get("locationX", dataItem.get("locationX", 0.5)); + const locationY = this.get("locationY", dataItem.get("locationY", 0.5)); + const openLocationX = this.get("openLocationX", dataItem.get("openLocationX", locationX)); + const openLocationY = this.get("openLocationY", dataItem.get("openLocationY", locationY)); + const width = graphics.get("width"); + const height = graphics.get("height"); + const stacked = this.get("stacked"); + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const xStart = xAxis2.get("start"); + const xEnd = xAxis2.get("end"); + const yStart = yAxis2.get("start"); + const yEnd = yAxis2.get("end"); + let l; + let r; + let t; + let b; + let vcy = this.get("vcy", 1); + let vcx = this.get("vcx", 1); + let fitW = false; + let fitH = false; + if (axisCase == 0) { + let startLocation = this._aLocationX0 + openLocationX - 0.5; + let endLocation = this._aLocationX1 + locationX - 0.5; + if (width instanceof Percent) { + let offset = (endLocation - startLocation) * (1 - width.value) / 2; + startLocation += offset; + endLocation -= offset; + } + l = xAxis2.getDataItemPositionX(dataItem, xOpenField, startLocation, vcx, exactLocationX); + r = xAxis2.getDataItemPositionX(dataItem, xField, endLocation, vcx, exactLocationX); + t = yAxis2.getDataItemPositionY(dataItem, yField, locationY, vcy); + if (this._yOpenField !== this._yField) { + b = yAxis2.getDataItemPositionY(dataItem, yOpenField, openLocationY, vcy); + } else { + if (stacked) { + let stackToItemY = dataItem.get("stackToItemY"); + if (stackToItemY) { + b = yAxis2.getDataItemPositionY(stackToItemY, yField, openLocationY, stackToItemY.component.get("vcy")); + } else { + b = yAxis2.basePosition(); + } + } else { + b = yAxis2.basePosition(); + } + } + dataItem.setRaw("point", { x: l + (r - l) / 2, y: t }); + fitH = true; + } else if (axisCase == 1) { + let startLocation = this._aLocationY0 + openLocationY - 0.5; + let endLocation = this._aLocationY1 + locationY - 0.5; + if (height instanceof Percent) { + let offset = (endLocation - startLocation) * (1 - height.value) / 2; + startLocation += offset; + endLocation -= offset; + } + t = yAxis2.getDataItemPositionY(dataItem, yOpenField, startLocation, vcy); + b = yAxis2.getDataItemPositionY(dataItem, yField, endLocation, vcy); + r = xAxis2.getDataItemPositionX(dataItem, xField, locationX, vcx, exactLocationX); + if (this._xOpenField !== this._xField) { + l = xAxis2.getDataItemPositionX(dataItem, xOpenField, openLocationX, vcx, exactLocationX); + } else { + if (stacked) { + let stackToItemX = dataItem.get("stackToItemX"); + if (stackToItemX) { + l = xAxis2.getDataItemPositionX(stackToItemX, xField, openLocationX, stackToItemX.component.get("vcx"), exactLocationX); + } else { + l = xAxis2.basePosition(); + } + } else { + l = xAxis2.basePosition(); + } + } + fitW = true; + dataItem.setRaw("point", { x: r, y: t + (b - t) / 2 }); + } else if (axisCase == 2) { + let startLocation = this._aLocationX0 + openLocationX - 0.5; + let endLocation = this._aLocationX1 + locationX - 0.5; + if (width instanceof Percent) { + let offset = (endLocation - startLocation) * (1 - width.value) / 2; + startLocation += offset; + endLocation -= offset; + } + l = xAxis2.getDataItemPositionX(dataItem, xOpenField, startLocation, vcx); + r = xAxis2.getDataItemPositionX(dataItem, xField, endLocation, vcx); + startLocation = this._aLocationY0 + openLocationY - 0.5; + endLocation = this._aLocationY1 + locationY - 0.5; + if (height instanceof Percent) { + let offset = (endLocation - startLocation) * (1 - height.value) / 2; + startLocation += offset; + endLocation -= offset; + } + t = yAxis2.getDataItemPositionY(dataItem, yOpenField, startLocation, vcy); + b = yAxis2.getDataItemPositionY(dataItem, yField, endLocation, vcy); + dataItem.setRaw("point", { x: l + (r - l) / 2, y: t + (b - t) / 2 }); + } + this._applyGraphicsStates(dataItem, previousDataItem); + this._updateSeriesGraphics(dataItem, graphics, l, r, t, b, fitW, fitH); + if (l < xStart && r < xStart || l > xEnd && r > xEnd || t < yStart && b <= yStart || t >= yEnd && b > yEnd || isNaN2(l) || isNaN2(t)) { + this._toggleColumn(dataItem, false); + } else { + this._toggleColumn(dataItem, true); + } + let rangeGraphics = dataItem.get("rangeGraphics"); + if (rangeGraphics) { + each(rangeGraphics, (graphics2) => { + this._updateSeriesGraphics(dataItem, graphics2, l, r, t, b, fitW, fitH); + }); + } + } else { + this._toggleColumn(dataItem, false); + } + } + _updateSeriesGraphics(dataItem, graphics, l, r, t, b, fitW, fitH) { + const width = graphics.get("width"); + const height = graphics.get("height"); + const maxWidth = graphics.get("maxWidth"); + const maxHeight = graphics.get("maxHeight"); + const ptl = this.getPoint(l, t); + const pbr = this.getPoint(r, b); + const tooltipPoint = dataItem.get("point"); + if (tooltipPoint) { + const point = this.getPoint(tooltipPoint.x, tooltipPoint.y); + tooltipPoint.x = point.x + this._x; + tooltipPoint.y = point.y + this._y; + } + l = ptl.x; + r = pbr.x; + t = ptl.y; + b = pbr.y; + if (isNumber(width)) { + const offset = (r - l - width) / 2; + l += offset; + r -= offset; + } + if (isNumber(maxWidth) && maxWidth < Math.abs(r - l)) { + const offset = (r - l - maxWidth) / 2; + l += offset; + r -= offset; + } + if (isNumber(height)) { + const offset = (b - t - height) / 2; + t += offset; + b -= offset; + } + if (isNumber(maxHeight) && maxHeight < Math.abs(b - t)) { + const offset = (b - t - maxHeight) / 2; + t += offset; + b -= offset; + } + if (this.get("adjustBulletPosition")) { + if (fitW) { + r = Math.min(Math.max(0, r), this._pw); + l = Math.min(Math.max(0, l), this._pw); + } + if (fitH) { + t = Math.min(Math.max(0, t), this._ph); + b = Math.min(Math.max(0, b), this._ph); + } + } + dataItem.setRaw("left", l); + dataItem.setRaw("right", r); + dataItem.setRaw("top", t); + dataItem.setRaw("bottom", b); + graphics.setPrivate("width", r - l); + graphics.setPrivate("height", b - t); + graphics.set("x", l); + graphics.set("y", b - (b - t)); + } + _handleDataSetChange() { + super._handleDataSetChange(); + each(this._dataItems, (dataItem) => { + this._toggleColumn(dataItem, false); + }); + } + _applyGraphicsStates(dataItem, previousDataItem) { + const graphics = dataItem.get("graphics"); + const dropFromOpen = graphics.states.lookup("dropFromOpen"); + const riseFromOpen = graphics.states.lookup("riseFromOpen"); + const dropFromPrevious = graphics.states.lookup("dropFromPrevious"); + const riseFromPrevious = graphics.states.lookup("riseFromPrevious"); + if (dropFromOpen || dropFromPrevious || riseFromOpen || riseFromPrevious) { + const xAxis2 = this.get("xAxis"); + const yAxis2 = this.get("yAxis"); + const baseAxis = this.get("baseAxis"); + let open2; + let close2; + let previousClose; + if (baseAxis === xAxis2 && yAxis2.isType("ValueAxis")) { + open2 = dataItem.get(this._yOpenField); + close2 = dataItem.get(this._yField); + previousClose = previousDataItem.get(this._yField); + } else if (baseAxis === yAxis2 && xAxis2.isType("ValueAxis")) { + open2 = dataItem.get(this._xOpenField); + close2 = dataItem.get(this._xField); + previousClose = previousDataItem.get(this._xField); + } + if (isNumber(open2) && isNumber(close2)) { + if (close2 < open2) { + if (dropFromOpen) { + dropFromOpen.apply(); + } + } else { + if (riseFromOpen) { + riseFromOpen.apply(); + } + } + if (isNumber(previousClose)) { + if (close2 < previousClose) { + if (dropFromPrevious) { + dropFromPrevious.apply(); + } + } else { + if (riseFromPrevious) { + riseFromPrevious.apply(); + } + } + } + } + } + } + /** + * @ignore + */ + disposeDataItem(dataItem) { + super.disposeDataItem(dataItem); + const graphics = dataItem.get("graphics"); + if (graphics) { + this.columns.removeValue(graphics); + graphics.dispose(); + } + const rangeGraphics = dataItem.get("rangeGraphics"); + if (rangeGraphics) { + each(rangeGraphics, (graphics2) => { + const list = graphics2.getPrivate("list"); + if (list) { + list.removeValue(graphics2); + } + graphics2.dispose(); + }); + } + } + /** + * Hides series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + hideDataItem(dataItem, duration) { + const _super = Object.create(null, { + hideDataItem: { get: () => super.hideDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.hideDataItem.call(this, dataItem, duration)]; + const graphics = dataItem.get("graphics"); + if (graphics) { + promises.push(graphics.hide(duration)); + } + const rangeGraphics = dataItem.get("rangeGraphics"); + if (rangeGraphics) { + each(rangeGraphics, (graphics2) => { + promises.push(graphics2.hide(duration)); + }); + } + yield Promise.all(promises); + }); + } + _toggleColumn(dataItem, visible) { + const graphics = dataItem.get("graphics"); + if (graphics) { + graphics.setPrivate("visible", visible); + } + const rangeGraphics = dataItem.get("rangeGraphics"); + if (rangeGraphics) { + each(rangeGraphics, (graphics2) => { + graphics2.setPrivate("visible", visible); + }); + } + const bullets = dataItem.bullets; + if (bullets) { + each(bullets, (bullet) => { + bullet.setPrivate("hidden", !visible); + }); + } + } + /** + * Shows series's data item. + * + * @param dataItem Data item + * @param duration Animation duration in milliseconds + * @return Promise + */ + showDataItem(dataItem, duration) { + const _super = Object.create(null, { + showDataItem: { get: () => super.showDataItem } + }); + return __awaiter(this, void 0, void 0, function* () { + const promises = [_super.showDataItem.call(this, dataItem, duration)]; + const graphics = dataItem.get("graphics"); + if (graphics) { + promises.push(graphics.show(duration)); + } + const rangeGraphics = dataItem.get("rangeGraphics"); + if (rangeGraphics) { + each(rangeGraphics, (graphics2) => { + promises.push(graphics2.show(duration)); + }); + } + yield Promise.all(promises); + }); + } + /** + * @ignore + */ + updateLegendMarker(dataItem) { + let legendDataItem = this.get("legendDataItem"); + if (this.get("useLastColorForLegendMarker")) { + if (!dataItem) { + const lastDataItem = this.dataItems[this.endIndex() - 1]; + if (lastDataItem) { + dataItem = lastDataItem; + } + } + } + if (legendDataItem) { + let graphics = this.columns.template; + if (dataItem) { + let column = dataItem.get("graphics"); + if (column) { + graphics = column; + } + } + const markerRectangle = legendDataItem.get("markerRectangle"); + if (markerRectangle) { + if (!legendDataItem.get("itemContainer").get("disabled")) { + const ds = markerRectangle.states.lookup("default"); + each(visualSettings, (setting) => { + const value = graphics.get(setting, this.get(setting)); + markerRectangle.set(setting, value); + ds.set(setting, value); + }); + } + } + } + } + _getTooltipTarget(dataItem) { + if (this.get("seriesTooltipTarget") == "bullet") { + return super._getTooltipTarget(dataItem); + } + let column = dataItem.get("graphics"); + if (column) { + return column; + } + return this; + } + }; + BaseColumnSeries.className = "BaseColumnSeries"; + BaseColumnSeries.classNames = XYSeries.classNames.concat([BaseColumnSeries.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/Axis.js + var Axis = class extends Component { + constructor() { + super(...arguments); + this._series = []; + this._isPanning = false; + this.minorDataItems = []; + this.labelsContainer = this.children.push(Container.new(this._root, {})); + this.gridContainer = Container.new(this._root, { width: p100, height: p100 }); + this.topGridContainer = Container.new(this._root, { width: p100, height: p100 }); + this.bulletsContainer = this.children.push(Container.new(this._root, { isMeasured: false, width: p100, height: p100, position: "absolute" })); + this._rangesDirty = false; + this._panStart = 0; + this._panEnd = 1; + this._skipSync = false; + this.axisRanges = new List(); + this._seriesAxisRanges = []; + this._cursorPosition = -1; + this._seriesValuesDirty = false; + this._seriesAdded = false; + this.axisHeader = this.children.push(Container.new(this._root, { + themeTags: ["axis", "header"], + position: "absolute", + background: Rectangle.new(this._root, { + themeTags: ["header", "background"], + fill: this._root.interfaceColors.get("background") + }) + })); + this._bullets = {}; + } + _dispose() { + this.gridContainer.dispose(); + this.topGridContainer.dispose(); + this.bulletsContainer.dispose(); + this.labelsContainer.dispose(); + this.axisHeader.dispose(); + super._dispose(); + } + _afterNew() { + super._afterNew(); + this.setPrivate("updateScrollbar", true); + this._disposers.push(this.axisRanges.events.onAll((change) => { + if (change.type === "clear") { + each(change.oldValues, (dataItem) => { + dataItem.dispose(); + }); + } else if (change.type === "push") { + this._processAxisRange(change.newValue, ["range"]); + } else if (change.type === "setIndex") { + this._processAxisRange(change.newValue, ["range"]); + } else if (change.type === "insertIndex") { + this._processAxisRange(change.newValue, ["range"]); + } else if (change.type === "removeIndex") { + this.disposeDataItem(change.oldValue); + } else if (change.type === "moveIndex") { + this._processAxisRange(change.value, ["range"]); + } else { + throw new Error("Unknown IStreamEvent type"); + } + })); + const renderer = this.get("renderer"); + if (renderer) { + renderer.axis = this; + renderer.processAxis(); + } + this.children.push(renderer); + this._createGhostLabel(); + } + _createGhostLabel() { + const renderer = this.get("renderer"); + const ghostLabel = renderer.makeLabel(new DataItem(this, void 0, {}), []); + ghostLabel.adapters.disable("text"); + ghostLabel.setAll({ opacity: 0, tooltipText: void 0, tooltipHTML: void 0, interactive: false }); + ghostLabel.events.disable(); + this.ghostLabel = ghostLabel; + } + _updateFinals(_start, _end) { + } + /** + * Zooms the axis to relative locations. + * + * Both `start` and `end` are relative: 0 means start of the axis, 1 - end. + * + * @param start Relative start + * @param end Relative end + * @param duration Duration of the zoom animation in milliseconds + * @return Zoom animation + */ + zoom(start, end, duration, priority) { + if (this.get("zoomable", true)) { + this._updateFinals(start, end); + if (this.get("start") !== start || this.get("end") != end) { + let sAnimation = this._sAnimation; + let eAnimation = this._eAnimation; + if (start > end) { + [start, end] = [end, start]; + } + let maxDeviation = this.get("maxDeviation", 0.5) * Math.min(1, end - start); + if (start < -maxDeviation) { + start = -maxDeviation; + } + if (end > 1 + maxDeviation) { + end = 1 + maxDeviation; + } + let maxZoomFactor = this.getPrivate("maxZoomFactor", this.get("maxZoomFactor", 100)); + let maxZoomFactorReal = maxZoomFactor; + if (!isNumber(duration)) { + duration = this.get("interpolationDuration", 0); + } + if (!priority) { + priority = "end"; + } + if (end === 1 && start !== 0) { + if (start < this.get("start", 0)) { + priority = "start"; + } else { + priority = "end"; + } + } + if (start === 0 && end !== 1) { + if (end > this.get("end", 1)) { + priority = "end"; + } else { + priority = "start"; + } + } + let minZoomCount = this.get("minZoomCount", 0); + const dataItems = this.dataItems; + if (dataItems && dataItems.length < minZoomCount) { + minZoomCount = dataItems.length; + } + let maxZoomCount = this.get("maxZoomCount", Infinity); + if (isNumber(minZoomCount)) { + maxZoomFactor = maxZoomFactorReal / minZoomCount; + } + let minZoomFactor = 1; + if (isNumber(maxZoomCount)) { + minZoomFactor = maxZoomFactorReal / maxZoomCount; + } + if (start > end) { + [start, end] = [end, start]; + } + if (priority === "start") { + if (maxZoomCount > 0) { + if (1 / (end - start) < minZoomFactor) { + end = start + 1 / minZoomFactor; + } + } + if (1 / (end - start) > maxZoomFactor) { + end = start + 1 / maxZoomFactor; + } + if (end > 1 && end - start < 1 / maxZoomFactor) { + start = end - 1 / maxZoomFactor; + } + } else { + if (maxZoomCount > 0) { + if (1 / (end - start) < minZoomFactor) { + start = end - 1 / minZoomFactor; + } + } + if (1 / (end - start) > maxZoomFactor) { + start = end - 1 / maxZoomFactor; + } + if (start < 0 && end - start < 1 / maxZoomFactor) { + end = start + 1 / maxZoomFactor; + } + } + if (1 / (end - start) > maxZoomFactor) { + end = start + 1 / maxZoomFactor; + } + if (1 / (end - start) > maxZoomFactor) { + start = end - 1 / maxZoomFactor; + } + if (maxZoomCount != null && minZoomCount != null && (start == this.get("start") && end == this.get("end"))) { + const chart2 = this.chart; + if (chart2) { + chart2._handleAxisSelection(this, true); + } + } + if ((sAnimation && sAnimation.playing && sAnimation.to == start || this.get("start") == start) && (eAnimation && eAnimation.playing && eAnimation.to == end || this.get("end") == end)) { + return; + } + if (duration > 0) { + let easing = this.get("interpolationEasing"); + let sAnimation2, eAnimation2; + if (this.get("start") != start) { + sAnimation2 = this.animate({ key: "start", to: start, duration, easing }); + } + if (this.get("end") != end) { + eAnimation2 = this.animate({ key: "end", to: end, duration, easing }); + } + this._sAnimation = sAnimation2; + this._eAnimation = eAnimation2; + if (sAnimation2) { + return sAnimation2; + } else if (eAnimation2) { + return eAnimation2; + } + } else { + this.set("start", start); + this.set("end", end); + this.root.events.once("frameended", () => { + this.markDirtyKey("start"); + }); + } + } else { + if (this._sAnimation) { + this._sAnimation.stop(); + } + if (this._eAnimation) { + this._eAnimation.stop(); + } + } + } + } + /** + * A list of series using this axis. + * + * @return Series + */ + get series() { + return this._series; + } + _processAxisRange(dataItem, themeTags) { + dataItem.setRaw("isRange", true); + this._createAssets(dataItem, themeTags); + this._rangesDirty = true; + this._prepareDataItem(dataItem); + const above = dataItem.get("above"); + const container = this.topGridContainer; + const grid = dataItem.get("grid"); + if (above && grid) { + container.children.moveValue(grid); + } + const fill = dataItem.get("axisFill"); + if (above && fill) { + container.children.moveValue(fill); + } + } + _prepareDataItem(_dataItem, _index) { + } + /** + * @ignore + */ + markDirtyExtremes() { + } + /** + * @ignore + */ + markDirtySelectionExtremes() { + } + _calculateTotals() { + } + _updateAxisRanges() { + this._bullets = {}; + this.axisRanges.each((axisRange) => { + this._prepareDataItem(axisRange); + }); + each(this._seriesAxisRanges, (axisRange) => { + this._prepareDataItem(axisRange); + }); + } + _prepareChildren() { + super._prepareChildren(); + const ghostLabel = this.ghostLabel; + if (ghostLabel) { + if (this.get("fixAxisSize")) { + ghostLabel.set("visible", true); + } else { + ghostLabel.set("visible", false); + } + } + if (this.isDirty("start") || this.isDirty("end")) { + const chart2 = this.chart; + if (chart2) { + chart2._updateCursor(); + } + let start = this.get("start", 0); + let end = this.get("end", 1); + let maxDeviation = this.get("maxDeviation", 0.5) * Math.min(1, end - start); + if (start < -maxDeviation) { + let delta = start + maxDeviation; + start = -maxDeviation; + this.setRaw("start", start); + if (this.isDirty("end")) { + this.setRaw("end", end - delta); + } + } + if (end > 1 + maxDeviation) { + let delta = end - 1 - maxDeviation; + end = 1 + maxDeviation; + this.setRaw("end", end); + if (this.isDirty("start")) { + this.setRaw("start", start - delta); + } + } + } + const renderer = this.get("renderer"); + renderer._start = this.get("start"); + renderer._end = this.get("end"); + renderer._inversed = renderer.get("inversed", false); + renderer._axisLength = renderer.axisLength() / (renderer._end - renderer._start); + renderer._updateLC(); + if (this.isDirty("tooltip")) { + const tooltip = this.get("tooltip"); + if (tooltip) { + const rendererTags = renderer.get("themeTags"); + tooltip.addTag("axis"); + tooltip.addTag(this.className.toLowerCase()); + tooltip._applyThemes(); + if (rendererTags) { + tooltip.set("themeTags", mergeTags(tooltip.get("themeTags"), rendererTags)); + tooltip.label._applyThemes(); + } + } + } + } + _updateTooltipBounds() { + const tooltip = this.get("tooltip"); + if (tooltip) { + this.get("renderer").updateTooltipBounds(tooltip); + } + } + _updateBounds() { + super._updateBounds(); + this._updateTooltipBounds(); + } + /** + * @ignore + */ + processChart(chart2) { + this.chart = chart2; + const renderer = this.get("renderer"); + renderer.chart = chart2; + chart2.gridContainer.children.push(this.gridContainer); + chart2.topGridContainer.children.push(this.topGridContainer); + chart2.axisHeadersContainer.children.push(this.axisHeader); + this.on("start", () => { + chart2._handleAxisSelection(this); + }); + this.on("end", () => { + chart2._handleAxisSelection(this); + }); + chart2.plotContainer.onPrivate("width", () => { + this.markDirtySize(); + }); + chart2.plotContainer.onPrivate("height", () => { + this.markDirtySize(); + }); + chart2.processAxis(this); + } + /** + * @ignore + */ + hideDataItem(dataItem) { + this._toggleFHDataItem(dataItem, true); + return super.hideDataItem(dataItem); + } + /** + * @ignore + */ + showDataItem(dataItem) { + this._toggleFHDataItem(dataItem, false); + return super.showDataItem(dataItem); + } + _toggleFHDataItem(dataItem, forceHidden) { + const fh = "forceHidden"; + const label = dataItem.get("label"); + if (label) { + label.set(fh, forceHidden); + } + const grid = dataItem.get("grid"); + if (grid) { + grid.set(fh, forceHidden); + } + const tick = dataItem.get("tick"); + if (tick) { + tick.set(fh, forceHidden); + } + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + axisFill.set(fh, forceHidden); + } + const bullet = dataItem.get("bullet"); + if (bullet) { + const sprite = bullet.get("sprite"); + if (sprite) { + sprite.set(fh, forceHidden); + } + } + } + _toggleDataItem(dataItem, visible) { + const label = dataItem.get("label"); + const v = "visible"; + if (label) { + label.setPrivate(v, visible); + } + const grid = dataItem.get("grid"); + if (grid) { + grid.setPrivate(v, visible); + } + const tick = dataItem.get("tick"); + if (tick) { + tick.setPrivate(v, visible); + } + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + axisFill.setPrivate(v, visible); + } + const bullet = dataItem.get("bullet"); + if (bullet) { + const sprite = bullet.get("sprite"); + if (sprite) { + sprite.setPrivate(v, visible); + } + } + } + _createAssets(dataItem, tags, minor) { + var _a, _b, _c; + const renderer = this.get("renderer"); + let m = "minor"; + const label = dataItem.get("label"); + if (!label) { + renderer.makeLabel(dataItem, tags); + } else { + let themeTags = label.get("themeTags"); + let remove2 = false; + if (minor) { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) == -1) { + remove2 = true; + } + } else { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) != -1) { + remove2 = true; + } + } + if (remove2) { + (_a = label.parent) === null || _a === void 0 ? void 0 : _a.children.removeValue(label); + renderer.makeLabel(dataItem, tags); + label.dispose(); + renderer.labels.removeValue(label); + } + } + const grid = dataItem.get("grid"); + if (!grid) { + renderer.makeGrid(dataItem, tags); + } else { + let themeTags = grid.get("themeTags"); + let remove2 = false; + if (minor) { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) == -1) { + remove2 = true; + } + } else { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) != -1) { + remove2 = true; + } + } + if (remove2) { + (_b = grid.parent) === null || _b === void 0 ? void 0 : _b.children.removeValue(grid); + renderer.makeGrid(dataItem, tags); + grid.dispose(); + renderer.grid.removeValue(grid); + } + } + const tick = dataItem.get("tick"); + if (!tick) { + renderer.makeTick(dataItem, tags); + } else { + let remove2 = false; + let themeTags = tick.get("themeTags"); + if (minor) { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) == -1) { + remove2 = true; + } + } else { + if ((themeTags === null || themeTags === void 0 ? void 0 : themeTags.indexOf(m)) != -1) { + remove2 = true; + } + } + if (remove2) { + (_c = tick.parent) === null || _c === void 0 ? void 0 : _c.children.removeValue(tick); + renderer.makeTick(dataItem, tags); + tick.dispose(); + renderer.ticks.removeValue(tick); + } + } + if (!minor && !dataItem.get("axisFill")) { + renderer.makeAxisFill(dataItem, tags); + } else if (minor && !dataItem.get("axisFill") && this.get("minorAxisFillsEnabled")) { + renderer.makeAxisFill(dataItem, tags); + } + this._processBullet(dataItem); + } + _processBullet(dataItem) { + let bullet = dataItem.get("bullet"); + let axisBullet = this.get("bullet"); + if (!bullet && axisBullet && !dataItem.get("isRange")) { + bullet = axisBullet(this._root, this, dataItem); + } + if (bullet) { + bullet.axis = this; + const sprite = bullet.get("sprite"); + if (sprite) { + sprite._setDataItem(dataItem); + dataItem.setRaw("bullet", bullet); + if (!sprite.parent) { + this.bulletsContainer.children.push(sprite); + } + } + } + } + _afterChanged() { + super._afterChanged(); + const chart2 = this.chart; + if (chart2) { + chart2._updateChartLayout(); + chart2.axisHeadersContainer.markDirtySize(); + } + this.get("renderer")._updatePositions(); + this._seriesAdded = false; + } + /** + * @ignore + */ + disposeDataItem(dataItem) { + super.disposeDataItem(dataItem); + const renderer = this.get("renderer"); + const label = dataItem.get("label"); + if (label) { + renderer.labels.removeValue(label); + label.dispose(); + } + const tick = dataItem.get("tick"); + if (tick) { + renderer.ticks.removeValue(tick); + tick.dispose(); + } + const grid = dataItem.get("grid"); + if (grid) { + renderer.grid.removeValue(grid); + grid.dispose(); + } + const axisFill = dataItem.get("axisFill"); + if (axisFill) { + renderer.axisFills.removeValue(axisFill); + axisFill.dispose(); + } + const bullet = dataItem.get("bullet"); + if (bullet) { + bullet.dispose(); + } + } + _updateGhost() { + this.setPrivate("cellWidth", this.getCellWidthPosition() * this.get("renderer").axisLength()); + const ghostLabel = this.ghostLabel; + if (ghostLabel) { + if (!ghostLabel.isHidden()) { + const bounds = ghostLabel.localBounds(); + const gWidth = Math.ceil(bounds.right - bounds.left); + let text = ghostLabel.get("text"); + each(this.dataItems, (dataItem) => { + const label = dataItem.get("label"); + if (label && !label.isHidden()) { + const bounds2 = label.localBounds(); + const w = Math.ceil(bounds2.right - bounds2.left); + if (w > gWidth) { + text = label.text._getText(); + } + } + }); + ghostLabel.set("text", text); + } + let start = this.get("start", 0); + let end = this.get("end", 1); + this.get("renderer").updateLabel(ghostLabel, start + (end - start) * 0.5); + } + } + _handleCursorPosition(position, snapToSeries) { + const renderer = this.get("renderer"); + position = renderer.toAxisPosition(position); + this._cursorPosition = position; + this._snapToSeries = snapToSeries; + this.updateTooltip(); + } + /** + * Can be called when axis zoom changes and you need to update tooltip + * position. + */ + updateTooltip() { + const snapToSeries = this._snapToSeries; + let position = this._cursorPosition; + const tooltip = this.get("tooltip"); + const renderer = this.get("renderer"); + if (isNumber(position)) { + each(this.series, (series2) => { + if (series2.get("baseAxis") === this) { + const dataItem = this.getSeriesItem(series2, position, this.get("tooltipLocation")); + if (snapToSeries && snapToSeries.indexOf(series2) != -1) { + series2.updateLegendMarker(dataItem); + series2.updateLegendValue(dataItem); + series2._settings.tooltipDataItem = dataItem; + } else { + series2.showDataItemTooltip(dataItem); + series2.setRaw("tooltipDataItem", dataItem); + } + } + }); + if (this.get("snapTooltip")) { + position = this.roundAxisPosition(position, this.get("tooltipLocation", 0.5)); + } + this.setPrivateRaw("tooltipPosition", position); + if (tooltip) { + renderer.updateTooltipBounds(tooltip); + if (!isNaN2(position)) { + this._updateTooltipText(tooltip, position); + renderer.positionTooltip(tooltip, position); + if (position < this.get("start", 0) || position > this.get("end", 1)) { + tooltip.hide(0); + } else { + tooltip.show(0); + } + } else { + tooltip.hide(0); + } + } + } + } + _updateTooltipText(tooltip, position) { + tooltip.label.set("text", this.getTooltipText(position)); + } + /** + * @ignore + */ + roundAxisPosition(position, _location) { + return position; + } + _handleSeriesRemoved() { + } + /** + * @ignore + */ + handleCursorShow() { + let tooltip = this.get("tooltip"); + if (tooltip) { + tooltip.show(); + } + } + /** + * @ignore + */ + handleCursorHide() { + let tooltip = this.get("tooltip"); + if (tooltip) { + tooltip.hide(); + } + } + /** + * @ignore + */ + processSeriesDataItem(_dataItem, _fields) { + } + _clearDirty() { + super._clearDirty(); + this._sizeDirty = false; + this._rangesDirty = false; + } + /** + * Converts pixel coordinate to a relative position on axis. + * + * @param coordinate Coordinate + * @return Relative position + */ + coordinateToPosition(coordinate) { + const renderer = this.get("renderer"); + return renderer.toAxisPosition(coordinate / renderer.axisLength()); + } + /** + * Converts relative position of the plot area to relative position of the + * axis with zoom taken into account. + * + * @param position Position + * @return Relative position + */ + toAxisPosition(position) { + return this.get("renderer").toAxisPosition(position); + } + /** + * Converts relative position of the axis to a global position taking current + * zoom into account (opposite to what `toAxisPosition` does). + * + * @since 5.4.2 + * @param position Position + * @return Global position + */ + toGlobalPosition(position) { + return this.get("renderer").toGlobalPosition(position); + } + /** + * Adjusts position with inversed taken into account. + * + * @ignore + */ + fixPosition(position) { + return this.get("renderer").fixPosition(position); + } + /** + * @ignore + */ + shouldGap(_dataItem, _nextItem, _autoGapCount, _fieldName) { + return false; + } + /** + * Creates and returns an axis range object. + * + * @see {@link https://www.amcharts.com/docs/v5/charts/xy-chart/axes/axis-ranges/} for more info + * @param axisDataItem Axis data item + * @return Axis range + */ + createAxisRange(axisDataItem) { + return this.axisRanges.push(axisDataItem); + } + /** + * @ignore + */ + _groupSeriesData(_series) { + } + /** + * Returns relative position between two grid lines of the axis. + * + * @return Position + */ + getCellWidthPosition() { + return 0.05; + } + }; + Axis.className = "Axis"; + Axis.classNames = Component.classNames.concat([Axis.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/ValueAxis.js + var ValueAxis = class extends Axis { + constructor() { + super(...arguments); + this._dirtyExtremes = false; + this._dirtySelectionExtremes = false; + this._dseHandled = false; + this._deltaMinMax = 1; + this._baseValue = 0; + this._minLogAdjusted = 1; + } + /** + * @ignore + */ + markDirtyExtremes() { + this._dirtyExtremes = true; + this.markDirty(); + } + /** + * @ignore + */ + markDirtySelectionExtremes() { + this._dirtySelectionExtremes = true; + this.markDirty(); + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["axis"]); + this.setPrivateRaw("name", "value"); + this.addTag("value"); + super._afterNew(); + } + _prepareChildren() { + var _a; + super._prepareChildren(); + if (this.isDirty("syncWithAxis")) { + let previousValue = this._prevSettings.syncWithAxis; + if (previousValue) { + if (this._syncDp) { + this._syncDp.dispose(); + } + } + let syncWithAxis = this.get("syncWithAxis"); + if (syncWithAxis) { + this._syncDp = new MultiDisposer([ + syncWithAxis.onPrivate("selectionMinFinal", () => { + this._dirtySelectionExtremes = true; + }), + syncWithAxis.onPrivate("selectionMaxFinal", () => { + this._dirtySelectionExtremes = true; + }) + ]); + } + } + let someDirty = false; + if (this.isDirty("min") || this.isDirty("max") || this.isDirty("maxPrecision") || this.isDirty("numberFormat")) { + someDirty = true; + (_a = this.ghostLabel) === null || _a === void 0 ? void 0 : _a.set("text", ""); + } + if (this._sizeDirty || this._dirtyExtremes || this._valuesDirty || someDirty || this.isPrivateDirty("width") || this.isPrivateDirty("height") || this.isDirty("extraMin") || this.isDirty("extraMax") || this.isDirty("logarithmic") || this.isDirty("treatZeroAs") || this.isDirty("baseValue") || this.isDirty("strictMinMax") || this.isDirty("strictMinMaxSelection")) { + this._getMinMax(); + this._dirtyExtremes = false; + } + this._handleSizeDirty(); + if (this._dirtySelectionExtremes && !this._isPanning && this.get("autoZoom", true)) { + const chart2 = this.chart; + let getMM = false; + if (chart2) { + const letter = this.get("renderer").getPrivate("letter"); + if (letter == "Y") { + chart2.xAxes.each((axis) => { + if (axis.className != "ValueAxis") { + getMM = true; + } + }); + } else if (letter == "X") { + chart2.yAxes.each((axis) => { + if (axis.className != "ValueAxis") { + getMM = true; + } + }); + } + } + if (getMM) { + this._getSelectionMinMax(); + } + this._dirtySelectionExtremes = false; + } + this._groupData(); + if (this._sizeDirty || this._valuesDirty || this.isDirty("start") || this.isDirty("end") || this.isPrivateDirty("min") || this.isPrivateDirty("selectionMax") || this.isPrivateDirty("selectionMin") || this.isPrivateDirty("max") || this.isPrivateDirty("step") || this.isPrivateDirty("width") || this.isPrivateDirty("height") || this.isDirty("logarithmic")) { + this._handleRangeChange(); + this._prepareAxisItems(); + this._updateAxisRanges(); + } + this._baseValue = this.baseValue(); + } + _handleSizeDirty() { + if (this._sizeDirty && !this._dseHandled) { + this._dirtySelectionExtremes = true; + this._dseHandled = true; + if (this.getPrivate("selectionMinFinal") != this.getPrivate("selectionMin") || this.getPrivate("selectionMaxFinal") != this.getPrivate("selectionMax")) { + this._dirtySelectionExtremes = false; + } + } + } + _clearDirty() { + super._clearDirty(); + this._dseHandled = false; + } + _groupData() { + } + _formatText(value) { + const numberFormat = this.get("numberFormat"); + const formatter = this.getNumberFormatter(); + let text = ""; + if (numberFormat) { + text = formatter.format(value, numberFormat); + } else { + text = formatter.format(value, void 0, this.getPrivate("stepDecimalPlaces")); + } + return text; + } + _prepareAxisItems() { + const min2 = this.getPrivate("min"); + const max2 = this.getPrivate("max"); + if (isNumber(min2) && isNumber(max2)) { + const logarithmic = this.get("logarithmic"); + const step = this.getPrivate("step"); + const selectionMin = this.getPrivate("selectionMin"); + const selectionMax = this.getPrivate("selectionMax") + step; + let value = selectionMin - step; + let differencePower = 1; + let minLog = min2; + if (logarithmic) { + value = this._minLogAdjusted; + if (value < selectionMin) { + while (value < selectionMin) { + value += step; + } + } + minLog = value; + if (minLog <= 0) { + let minRealLog = this._minRealLog; + if (!isNumber(minRealLog)) { + minRealLog = 1; + } + minLog = Math.pow(10, Math.log(minRealLog) * Math.LOG10E); + if (step < 1) { + if (isNumber(this._minRealLog)) { + minLog = this._minRealLog; + } else { + minLog = Math.pow(10, -50); + } + } + } + differencePower = Math.log(selectionMax - step) * Math.LOG10E - Math.log(minLog) * Math.LOG10E; + if (differencePower > 2) { + value = Math.pow(10, Math.log(minLog) * Math.LOG10E - 50); + } + } + const renderer = this.get("renderer"); + const minorLabelsEnabled = renderer.get("minorLabelsEnabled"); + const minorGridEnabled = renderer.get("minorGridEnabled", minorLabelsEnabled); + let stepPower = Math.pow(10, Math.floor(Math.log(Math.abs(step)) * Math.LOG10E)); + const stepAdjusted = Math.round(step / stepPower); + let minorGridCount = 2; + if (round(stepAdjusted / 5, 10) % 1 == 0) { + minorGridCount = 5; + } + if (round(stepAdjusted / 10, 10) % 1 == 0) { + minorGridCount = 10; + } + let minorStep = step / minorGridCount; + let i = 0; + let m = 0; + let previous = -Infinity; + const gridCount = this.get("renderer").gridCount(); + while (value < selectionMax) { + let dataItem; + if (this.dataItems.length < i + 1) { + dataItem = new DataItem(this, void 0, {}); + this._dataItems.push(dataItem); + this.processDataItem(dataItem); + } else { + dataItem = this.dataItems[i]; + } + this._createAssets(dataItem, []); + this._toggleDataItem(dataItem, true); + dataItem.setRaw("value", value); + const label = dataItem.get("label"); + if (label) { + label.set("text", this._formatText(value)); + } + this._prepareDataItem(dataItem); + let nextValue = value; + if (!logarithmic) { + nextValue += step; + } else { + if (differencePower > 2) { + const targetGridCount = Math.max(1, gridCount); + const x = Math.max(1, Math.ceil(differencePower / targetGridCount)); + const exponent = Math.log(minLog) * Math.LOG10E + (i + 1) * x - 50; + nextValue = Math.pow(10, exponent); + } else { + nextValue += step; + } + } + if (minorGridEnabled) { + let minorValue = value + minorStep; + if (logarithmic) { + if (differencePower > 2) { + let minorMinMaxStep = this._adjustMinMax(value, nextValue, 10); + minorStep = minorMinMaxStep.step; + } + minorValue = value + minorStep; + } + while (minorValue < nextValue - step * 1e-11) { + let minorDataItem; + if (this.minorDataItems.length < m + 1) { + minorDataItem = new DataItem(this, void 0, {}); + this.minorDataItems.push(minorDataItem); + this.processDataItem(minorDataItem); + } else { + minorDataItem = this.minorDataItems[m]; + } + this._createAssets(minorDataItem, ["minor"], true); + this._toggleDataItem(minorDataItem, true); + minorDataItem.setRaw("value", minorValue); + const minorLabel = minorDataItem.get("label"); + if (minorLabel) { + if (minorLabelsEnabled) { + minorLabel.set("text", this._formatText(minorValue)); + } else { + minorLabel.setPrivate("visible", false); + } + } + this._prepareDataItem(minorDataItem); + minorValue += minorStep; + m++; + } + } + value = nextValue; + if (previous == value) { + break; + } + let stepPower2 = Math.pow(10, Math.floor(Math.log(Math.abs(step)) * Math.LOG10E)); + if (stepPower2 < 1 && !logarithmic) { + let decCount = Math.round(Math.abs(Math.log(Math.abs(stepPower2)) * Math.LOG10E)) + 2; + value = round(value, decCount); + } + i++; + if (logarithmic && differencePower <= 2) { + if (value - step < step) { + value = step; + } + } + previous = value; + } + for (let j = i; j < this.dataItems.length; j++) { + this._toggleDataItem(this.dataItems[j], false); + } + for (let j = m; j < this.minorDataItems.length; j++) { + this._toggleDataItem(this.minorDataItems[j], false); + } + each(this.series, (series2) => { + if (series2.inited) { + series2._markDirtyAxes(); + } + }); + this._updateGhost(); + } + } + _prepareDataItem(dataItem, count) { + let renderer = this.get("renderer"); + let value = dataItem.get("value"); + let endValue = dataItem.get("endValue"); + let position = this.valueToPosition(value); + let endPosition = position; + let fillEndPosition = this.valueToPosition(value + this.getPrivate("step")); + if (isNumber(endValue)) { + endPosition = this.valueToPosition(endValue); + fillEndPosition = endPosition; + } + if (dataItem.get("isRange")) { + if (endValue == null) { + fillEndPosition = position; + } + } + let labelEndPosition = endPosition; + let labelEndValue = dataItem.get("labelEndValue"); + if (labelEndValue != null) { + labelEndPosition = this.valueToPosition(labelEndValue); + } + renderer.updateLabel(dataItem.get("label"), position, labelEndPosition, count); + const grid = dataItem.get("grid"); + renderer.updateGrid(grid, position, endPosition); + if (grid) { + if (value == this.get("baseValue", 0)) { + grid.addTag("base"); + grid._applyThemes(); + } else if (grid.hasTag("base")) { + grid.removeTag("base"); + grid._applyThemes(); + } + } + renderer.updateTick(dataItem.get("tick"), position, labelEndPosition, count); + renderer.updateFill(dataItem.get("axisFill"), position, fillEndPosition); + this._processBullet(dataItem); + renderer.updateBullet(dataItem.get("bullet"), position, endPosition); + if (!dataItem.get("isRange")) { + const fillRule = this.get("fillRule"); + if (fillRule) { + fillRule(dataItem); + } + } + } + _handleRangeChange() { + let selectionMin = this.positionToValue(this.get("start", 0)); + let selectionMax = this.positionToValue(this.get("end", 1)); + const gridCount = this.get("renderer").gridCount(); + let minMaxStep = this._adjustMinMax(selectionMin, selectionMax, gridCount, true); + let stepDecimalPlaces = decimalPlaces(minMaxStep.step); + this.setPrivateRaw("stepDecimalPlaces", stepDecimalPlaces); + selectionMin = round(selectionMin, stepDecimalPlaces); + selectionMax = round(selectionMax, stepDecimalPlaces); + minMaxStep = this._adjustMinMax(selectionMin, selectionMax, gridCount, true); + let step = minMaxStep.step; + selectionMin = minMaxStep.min; + selectionMax = minMaxStep.max; + if (this.getPrivate("selectionMin") !== selectionMin || this.getPrivate("selectionMax") !== selectionMax || this.getPrivate("step") !== step) { + this.setPrivateRaw("selectionMin", selectionMin); + this.setPrivateRaw("selectionMax", selectionMax); + this.setPrivateRaw("step", step); + } + } + /** + * Converts a relative position to a corresponding numeric value from axis + * scale. + * + * @param position Relative position + * @return Value + */ + positionToValue(position) { + const min2 = this.getPrivate("min"); + const max2 = this.getPrivate("max"); + if (!this.get("logarithmic")) { + return position * (max2 - min2) + min2; + } else { + return Math.pow(Math.E, (position * (Math.log(max2) * Math.LOG10E - Math.log(min2) * Math.LOG10E) + Math.log(min2) * Math.LOG10E) / Math.LOG10E); + } + } + /** + * Convers value to a relative position on axis. + * + * @param value Value + * @return Relative position + */ + valueToPosition(value) { + const min2 = this.getPrivate("min"); + const max2 = this.getPrivate("max"); + if (!this.get("logarithmic")) { + return (value - min2) / (max2 - min2); + } else { + if (value <= 0) { + let treatZeroAs = this.get("treatZeroAs"); + if (isNumber(treatZeroAs)) { + value = treatZeroAs; + } + } + return (Math.log(value) * Math.LOG10E - Math.log(min2) * Math.LOG10E) / (Math.log(max2) * Math.LOG10E - Math.log(min2) * Math.LOG10E); + } + } + /** + * @ignore + */ + valueToFinalPosition(value) { + const min2 = this.getPrivate("minFinal"); + const max2 = this.getPrivate("maxFinal"); + if (!this.get("logarithmic")) { + return (value - min2) / (max2 - min2); + } else { + if (value <= 0) { + let treatZeroAs = this.get("treatZeroAs"); + if (isNumber(treatZeroAs)) { + value = treatZeroAs; + } + } + return (Math.log(value) * Math.LOG10E - Math.log(min2) * Math.LOG10E) / (Math.log(max2) * Math.LOG10E - Math.log(min2) * Math.LOG10E); + } + } + /** + * Returns X coordinate in pixels corresponding to specific value. + * + * @param value Numeric value + * @param location Location + * @param baseValue Base value + * @return X coordinate + */ + getX(value, location, baseValue) { + value = baseValue + (value - baseValue) * location; + const position = this.valueToPosition(value); + return this._settings.renderer.positionToCoordinate(position); + } + /** + * Returns X coordinate in pixels corresponding to specific value. + * + * @param value Numeric value + * @param location Location + * @param baseValue Base value + * @return X coordinate + */ + getY(value, location, baseValue) { + value = baseValue + (value - baseValue) * location; + const position = this.valueToPosition(value); + return this._settings.renderer.positionToCoordinate(position); + } + /** + * @ignore + */ + getDataItemCoordinateX(dataItem, field, _cellLocation, axisLocation) { + return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(dataItem, field, _cellLocation, axisLocation)); + } + /** + * @ignore + */ + getDataItemPositionX(dataItem, field, _cellLocation, axisLocation) { + let value = dataItem.get(field); + const stackToItem = dataItem.get("stackToItemX"); + if (stackToItem) { + const series2 = dataItem.component; + value = value * axisLocation + series2.getStackedXValueWorking(dataItem, field); + } else { + value = this._baseValue + (value - this._baseValue) * axisLocation; + } + return this.valueToPosition(value); + } + /** + * @ignore + */ + getDataItemCoordinateY(dataItem, field, _cellLocation, axisLocation) { + return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(dataItem, field, _cellLocation, axisLocation)); + } + /** + * @ignore + */ + getDataItemPositionY(dataItem, field, _cellLocation, axisLocation) { + let value = dataItem.get(field); + const stackToItem = dataItem.get("stackToItemY"); + if (stackToItem) { + const series2 = dataItem.component; + value = value * axisLocation + series2.getStackedYValueWorking(dataItem, field); + } else { + value = this._baseValue + (value - this._baseValue) * axisLocation; + } + return this.valueToPosition(value); + } + /** + * Returns relative position of axis' `baseValue`. + * + * @return Base value position + */ + basePosition() { + return this.valueToPosition(this.baseValue()); + } + /** + * Base value of the [[ValueAxis]], which determines positive and negative + * values. + * + * @return Base value + */ + baseValue() { + const min2 = Math.min(this.getPrivate("minFinal", -Infinity), this.getPrivate("selectionMin", -Infinity)); + const max2 = Math.max(this.getPrivate("maxFinal", Infinity), this.getPrivate("selectionMax", Infinity)); + let baseValue = this.get("baseValue", 0); + if (baseValue < min2) { + baseValue = min2; + } + if (baseValue > max2) { + baseValue = max2; + } + return baseValue; + } + /** + * @ignore + */ + cellEndValue(value) { + return value; + } + fixSmallStep(step) { + if (1 + step === 1) { + step *= 2; + return this.fixSmallStep(step); + } + return step; + } + _fixMin(min2) { + return min2; + } + _fixMax(max2) { + return max2; + } + _calculateTotals() { + if (this.get("calculateTotals")) { + let series2 = this.series[0]; + if (series2) { + let startIndex = series2.startIndex(); + if (series2.dataItems.length > 0) { + if (startIndex > 0) { + startIndex--; + } + let endIndex = series2.endIndex(); + if (endIndex < series2.dataItems.length) { + endIndex++; + } + let field; + let vc; + if (series2.get("yAxis") == this) { + field = "valueY"; + vc = "vcy"; + } else if (series2.get("xAxis") == this) { + field = "valueX"; + vc = "vcx"; + } + let fieldWorking = field + "Working"; + if (field) { + for (let i = startIndex; i < endIndex; i++) { + let sum = 0; + let total = 0; + each(this.series, (series3) => { + if (!series3.get("excludeFromTotal")) { + let dataItem = series3.dataItems[i]; + if (dataItem) { + let value = dataItem.get(fieldWorking) * series3.get(vc); + if (!isNaN2(value)) { + sum += value; + total += Math.abs(value); + } + } + } + }); + each(this.series, (series3) => { + if (!series3.get("excludeFromTotal")) { + let dataItem = series3.dataItems[i]; + if (dataItem) { + let value = dataItem.get(fieldWorking) * series3.get(vc); + if (!isNaN2(value)) { + dataItem.set(field + "Total", total); + dataItem.set(field + "Sum", sum); + let totalPercent = value / total * 100; + if (total == 0) { + totalPercent = 0; + } + dataItem.set(field + "TotalPercent", totalPercent); + } + } + } + }); + } + } + } + } + } + } + _getSelectionMinMax() { + const min2 = this.getPrivate("minFinal"); + const max2 = this.getPrivate("maxFinal"); + const minDefined = this.get("min"); + const maxDefined = this.get("max"); + let extraMin = this.get("extraMin", 0); + let extraMax = this.get("extraMax", 0); + if (this.get("logarithmic")) { + if (this.get("extraMin") == null) { + extraMin = 0.1; + } + if (this.get("extraMax") == null) { + extraMax = 0.2; + } + } + const gridCount = this.get("renderer").gridCount(); + const selectionStrictMinMax = this.get("strictMinMaxSelection"); + let strictMinMax = this.get("strictMinMax"); + if (isNumber(min2) && isNumber(max2)) { + let selectionMin = max2; + let selectionMax = min2; + each(this.series, (series2) => { + if (!series2.get("ignoreMinMax")) { + let seriesMin; + let seriesMax; + const outOfSelection = series2.getPrivate("outOfSelection"); + if (series2.get("xAxis") === this) { + if (!outOfSelection) { + let minX = series2.getPrivate("minX"); + let maxX = series2.getPrivate("maxX"); + if (series2.startIndex() != 0 || series2.endIndex() != series2.dataItems.length) { + minX = void 0; + maxX = void 0; + } + seriesMin = series2.getPrivate("selectionMinX", minX); + seriesMax = series2.getPrivate("selectionMaxX", maxX); + } + } else if (series2.get("yAxis") === this) { + if (!outOfSelection) { + let minY = series2.getPrivate("minY"); + let maxY = series2.getPrivate("maxY"); + if (series2.startIndex() != 0 || series2.endIndex() != series2.dataItems.length) { + minY = void 0; + maxY = void 0; + } + seriesMin = series2.getPrivate("selectionMinY", minY); + seriesMax = series2.getPrivate("selectionMaxY", maxY); + } + } + if (!series2.isHidden() && !series2.isShowing()) { + if (isNumber(seriesMin)) { + selectionMin = Math.min(selectionMin, seriesMin); + } + if (isNumber(seriesMax)) { + selectionMax = Math.max(selectionMax, seriesMax); + } + } + } + }); + this.axisRanges.each((range2) => { + if (range2.get("affectsMinMax")) { + let value = range2.get("value"); + if (value != null) { + selectionMin = Math.min(selectionMin, value); + selectionMax = Math.max(selectionMax, value); + } + value = range2.get("endValue"); + if (value != null) { + selectionMin = Math.min(selectionMin, value); + selectionMax = Math.max(selectionMax, value); + } + } + }); + if (selectionMin > selectionMax) { + [selectionMin, selectionMax] = [selectionMax, selectionMin]; + } + if (isNumber(minDefined)) { + if (strictMinMax) { + selectionMin = minDefined; + } else { + selectionMin = min2; + } + } else if (strictMinMax) { + if (isNumber(this._minReal)) { + selectionMin = this._minReal; + } + } + if (isNumber(maxDefined)) { + if (strictMinMax) { + selectionMax = maxDefined; + } else { + selectionMax = max2; + } + } else if (strictMinMax) { + if (isNumber(this._maxReal)) { + selectionMax = this._maxReal; + } + } + if (selectionMin === selectionMax) { + let smin = selectionMin; + selectionMin -= this._deltaMinMax; + selectionMax += this._deltaMinMax; + if (selectionMin < min2) { + let d = smin - min2; + if (d == 0) { + d = this._deltaMinMax; + } + selectionMin = smin - d; + selectionMax = smin + d; + strictMinMax = true; + } + let minMaxStep2 = this._adjustMinMax(selectionMin, selectionMax, gridCount, strictMinMax); + selectionMin = minMaxStep2.min; + selectionMax = minMaxStep2.max; + } + let selectionMinReal = selectionMin; + let selectionMaxReal = selectionMax; + let delta = selectionMax - selectionMin; + selectionMin -= delta * extraMin; + selectionMax += delta * extraMax; + let minMaxStep = this._adjustMinMax(selectionMin, selectionMax, gridCount); + selectionMin = minMaxStep.min; + selectionMax = minMaxStep.max; + selectionMin = fitToRange(selectionMin, min2, max2); + selectionMax = fitToRange(selectionMax, min2, max2); + minMaxStep = this._adjustMinMax(selectionMin, selectionMax, gridCount, true); + if (!strictMinMax) { + selectionMin = minMaxStep.min; + selectionMax = minMaxStep.max; + } + const syncWithAxis = this.get("syncWithAxis"); + if (syncWithAxis) { + minMaxStep = this._syncAxes(selectionMin, selectionMax, minMaxStep.step, syncWithAxis.getPrivate("selectionMinFinal", syncWithAxis.getPrivate("minFinal", 0)), syncWithAxis.getPrivate("selectionMaxFinal", syncWithAxis.getPrivate("maxFinal", 1)), syncWithAxis.getPrivate("selectionStepFinal", syncWithAxis.getPrivate("step", 1))); + if (minMaxStep.min < min2) { + minMaxStep.min = min2; + } + if (minMaxStep.max > max2) { + minMaxStep.max = max2; + } + selectionMin = minMaxStep.min; + selectionMax = minMaxStep.max; + } + if (strictMinMax) { + if (isNumber(minDefined)) { + selectionMin = Math.max(selectionMin, minDefined); + } + if (isNumber(maxDefined)) { + selectionMax = Math.min(selectionMax, maxDefined); + } + } + if (selectionStrictMinMax) { + selectionMin = selectionMinReal - (selectionMaxReal - selectionMinReal) * extraMin; + selectionMax = selectionMaxReal + (selectionMaxReal - selectionMinReal) * extraMax; + } + if (strictMinMax) { + if (isNumber(minDefined)) { + selectionMin = minDefined; + } else { + selectionMin = selectionMinReal; + } + if (isNumber(maxDefined)) { + selectionMax = maxDefined; + } else { + selectionMax = selectionMaxReal; + } + if (selectionMax - selectionMin <= 1e-8) { + selectionMin -= this._deltaMinMax; + selectionMax += this._deltaMinMax; + } + let delta2 = selectionMax - selectionMin; + selectionMin -= delta2 * extraMin; + selectionMax += delta2 * extraMax; + } + if (this.get("logarithmic")) { + if (selectionMin <= 0) { + selectionMin = selectionMinReal * (1 - Math.min(extraMin, 0.99)); + } + if (selectionMin < min2) { + selectionMin = min2; + } + if (selectionMax > max2) { + selectionMax = max2; + } + } + let len = Math.min(20, Math.ceil(Math.log(this.getPrivate("maxZoomFactor", 100) + 1) / Math.LN10) + 2); + let start = round(this.valueToFinalPosition(selectionMin), len); + let end = round(this.valueToFinalPosition(selectionMax), len); + this.setPrivateRaw("selectionMinFinal", selectionMin); + this.setPrivateRaw("selectionMaxFinal", selectionMax); + this.setPrivateRaw("selectionStepFinal", minMaxStep.step); + this.zoom(start, end); + } + } + _getMinMax() { + let minDefined = this.get("min"); + let maxDefined = this.get("max"); + let min2 = Infinity; + let max2 = -Infinity; + let extraMin = this.get("extraMin", 0); + let extraMax = this.get("extraMax", 0); + if (this.get("logarithmic")) { + if (!this.get("strictMinMax")) { + if (this.get("extraMin") == null) { + extraMin = 0.1; + } + if (this.get("extraMax") == null) { + extraMax = 0.2; + } + } + } + let minDiff = Infinity; + each(this.series, (series2) => { + if (!series2.get("ignoreMinMax")) { + let seriesMin; + let seriesMax; + if (series2.get("xAxis") === this) { + seriesMin = series2.getPrivate("minX"); + seriesMax = series2.getPrivate("maxX"); + } else if (series2.get("yAxis") === this) { + seriesMin = series2.getPrivate("minY"); + seriesMax = series2.getPrivate("maxY"); + } + if (isNumber(seriesMin) && isNumber(seriesMax)) { + min2 = Math.min(min2, seriesMin); + max2 = Math.max(max2, seriesMax); + let diff = seriesMax - seriesMin; + if (diff <= 0) { + diff = Math.abs(seriesMax / 100); + } + if (diff < minDiff) { + minDiff = diff; + } + } + } + }); + this.axisRanges.each((range2) => { + if (range2.get("affectsMinMax")) { + let value = range2.get("value"); + if (value != null) { + min2 = Math.min(min2, value); + max2 = Math.max(max2, value); + } + value = range2.get("endValue"); + if (value != null) { + min2 = Math.min(min2, value); + max2 = Math.max(max2, value); + } + } + }); + if (this.get("logarithmic")) { + let treatZeroAs = this.get("treatZeroAs"); + if (isNumber(treatZeroAs)) { + if (min2 <= 0) { + min2 = treatZeroAs; + } + } + if (min2 <= 0) { + new Error("Logarithmic value axis can not have values <= 0."); + } + } + if (min2 === 0 && max2 === 0) { + max2 = 0.9; + min2 = -0.9; + } + if (isNumber(minDefined)) { + min2 = minDefined; + } + if (isNumber(maxDefined)) { + max2 = maxDefined; + } + if (min2 === Infinity || max2 === -Infinity) { + this.setPrivate("minFinal", void 0); + this.setPrivate("maxFinal", void 0); + return; + } + if (min2 > max2) { + [min2, max2] = [max2, min2]; + } + const initialMin = min2; + const initialMax = max2; + let minAdapted = this.adapters.fold("min", min2); + let maxAdapted = this.adapters.fold("max", max2); + this._minRealLog = min2; + if (isNumber(minAdapted)) { + min2 = minAdapted; + } + if (isNumber(maxAdapted)) { + max2 = maxAdapted; + } + min2 = this._fixMin(min2); + max2 = this._fixMax(max2); + if (max2 - min2 <= 1 / Math.pow(10, 15)) { + if (max2 - min2 !== 0) { + this._deltaMinMax = (max2 - min2) / 2; + } else { + this._getDelta(max2); + } + min2 -= this._deltaMinMax; + max2 += this._deltaMinMax; + } + min2 -= (max2 - min2) * extraMin; + max2 += (max2 - min2) * extraMax; + if (this.get("logarithmic")) { + if (min2 < 0 && initialMin >= 0) { + min2 = 0; + } + if (max2 > 0 && initialMax <= 0) { + max2 = 0; + } + } + this._minReal = min2; + this._maxReal = max2; + let strictMinMax = this.get("strictMinMax"); + let strictMinMaxSelection = this.get("strictMinMaxSelection", false); + if (strictMinMaxSelection) { + strictMinMax = strictMinMaxSelection; + } + let strict = strictMinMax; + if (isNumber(maxDefined)) { + strict = true; + } + let gridCount = this.get("renderer").gridCount(); + let minMaxStep = this._adjustMinMax(min2, max2, gridCount, strict); + min2 = minMaxStep.min; + max2 = minMaxStep.max; + minMaxStep = this._adjustMinMax(min2, max2, gridCount, true); + min2 = minMaxStep.min; + max2 = minMaxStep.max; + if (strictMinMax) { + if (isNumber(minDefined)) { + min2 = minDefined; + } else { + min2 = this._minReal; + } + if (isNumber(maxDefined)) { + max2 = maxDefined; + } else { + max2 = this._maxReal; + } + if (max2 - min2 <= 1e-8) { + min2 -= this._deltaMinMax; + max2 += this._deltaMinMax; + } + let delta = max2 - min2; + min2 -= delta * extraMin; + max2 += delta * extraMax; + } + minAdapted = this.adapters.fold("min", min2); + maxAdapted = this.adapters.fold("max", max2); + if (isNumber(minAdapted)) { + min2 = minAdapted; + } + if (isNumber(maxAdapted)) { + max2 = maxAdapted; + } + if (minDiff == Infinity) { + minDiff = max2 - min2; + } + let decCount = Math.round(Math.abs(Math.log(Math.abs(max2 - min2)) * Math.LOG10E)) + 5; + min2 = round(min2, decCount); + max2 = round(max2, decCount); + const syncWithAxis = this.get("syncWithAxis"); + if (syncWithAxis) { + minMaxStep = this._syncAxes(min2, max2, minMaxStep.step, syncWithAxis.getPrivate("minFinal", syncWithAxis.getPrivate("min", 0)), syncWithAxis.getPrivate("maxFinal", syncWithAxis.getPrivate("max", 1)), syncWithAxis.getPrivate("step", 1)); + min2 = minMaxStep.min; + max2 = minMaxStep.max; + } + this.setPrivateRaw("maxZoomFactor", Math.max(1, Math.ceil((max2 - min2) / minDiff * this.get("maxZoomFactor", 100)))); + this._fixZoomFactor(); + if (this.get("logarithmic")) { + this._minLogAdjusted = min2; + min2 = this._minReal; + max2 = this._maxReal; + if (min2 <= 0) { + min2 = initialMin * (1 - Math.min(extraMin, 0.99)); + } + } + if (isNumber(min2) && isNumber(max2)) { + if (this.getPrivate("minFinal") !== min2 || this.getPrivate("maxFinal") !== max2) { + this.setPrivate("minFinal", min2); + this.setPrivate("maxFinal", max2); + this._saveMinMax(min2, max2); + const duration = this.get("interpolationDuration", 0); + const easing = this.get("interpolationEasing"); + this.animatePrivate({ key: "min", to: min2, duration, easing }); + this.animatePrivate({ key: "max", to: max2, duration, easing }); + } + } + } + _fixZoomFactor() { + } + _getDelta(max2) { + let exponent = Math.log(Math.abs(max2)) * Math.LOG10E; + let power = Math.pow(10, Math.floor(exponent)); + power = power / 10; + this._deltaMinMax = power; + } + _saveMinMax(_min, _max) { + } + _adjustMinMax(min2, max2, gridCount, strictMode) { + if (gridCount <= 1) { + gridCount = 1; + } + gridCount = Math.round(gridCount); + let initialMin = min2; + let initialMax = max2; + let difference = max2 - min2; + if (difference === 0) { + difference = Math.abs(max2); + } + let exponent = Math.log(Math.abs(difference)) * Math.LOG10E; + let power = Math.pow(10, Math.floor(exponent)); + power = power / 10; + let extra = power; + if (strictMode) { + extra = 0; + } + if (strictMode) { + min2 = Math.floor(min2 / power) * power; + max2 = Math.ceil(max2 / power) * power; + } else { + min2 = Math.ceil(min2 / power) * power - extra; + max2 = Math.floor(max2 / power) * power + extra; + } + if (min2 < 0 && initialMin >= 0) { + min2 = 0; + } + if (max2 > 0 && initialMax <= 0) { + max2 = 0; + } + exponent = Math.log(Math.abs(difference)) * Math.LOG10E; + power = Math.pow(10, Math.floor(exponent)); + power = power / 100; + let step = Math.ceil(difference / gridCount / power) * power; + let stepPower = Math.pow(10, Math.floor(Math.log(Math.abs(step)) * Math.LOG10E)); + let stepDivisor = Math.ceil(step / stepPower); + if (stepDivisor > 5) { + stepDivisor = 10; + } else if (stepDivisor <= 5 && stepDivisor > 2) { + stepDivisor = 5; + } + step = Math.ceil(step / (stepPower * stepDivisor)) * stepPower * stepDivisor; + let maxPrecision = this.get("maxPrecision"); + if (isNumber(maxPrecision)) { + let ceiledStep = ceil(step, maxPrecision); + if (maxPrecision < Number.MAX_VALUE && step !== ceiledStep) { + step = ceiledStep; + if (step == 0) { + step = 1; + } + } + } + let decCount = 0; + if (stepPower < 1) { + decCount = Math.round(Math.abs(Math.log(Math.abs(stepPower)) * Math.LOG10E)) + 1; + step = round(step, decCount); + } + let minCount = Math.floor(min2 / step); + min2 = round(step * minCount, decCount); + let maxCount; + if (!strictMode) { + maxCount = Math.ceil(max2 / step); + } else { + maxCount = Math.floor(max2 / step); + } + if (maxCount === minCount) { + maxCount++; + } + max2 = round(step * maxCount, decCount); + if (max2 < initialMax) { + max2 = max2 + step; + } + if (min2 > initialMin) { + min2 = min2 - step; + } + step = this.fixSmallStep(step); + return { min: min2, max: max2, step }; + } + /** + * Returns text to be used in an axis tooltip for specific relative position. + * + * @param position Position + * @return Tooltip text + */ + getTooltipText(position, _adjustPosition) { + const numberFormat = this.get("tooltipNumberFormat", this.get("numberFormat")); + const formatter = this.getNumberFormatter(); + const extraDecimals = this.get("extraTooltipPrecision", 0); + const decimals = this.getPrivate("stepDecimalPlaces", 0) + extraDecimals; + const value = round(this.positionToValue(position), decimals); + if (numberFormat) { + return formatter.format(value, numberFormat); + } else { + return formatter.format(value, void 0, decimals); + } + } + /** + * Returns a data item from series that is closest to the `position`. + * + * @param series Series + * @param position Relative position + * @return Data item + */ + getSeriesItem(series2, position) { + let fieldName = this.getPrivate("name") + this.get("renderer").getPrivate("letter"); + let value = this.positionToValue(position); + let index = void 0; + let oldDiff; + each(series2.dataItems, (dataItem, i) => { + const diff = Math.abs(dataItem.get(fieldName) - value); + if (index === void 0 || diff < oldDiff) { + index = i; + oldDiff = diff; + } + }); + if (index != null) { + return series2.dataItems[index]; + } + } + /** + * Zooms the axis to specific `start` and `end` values. + * + * Optional `duration` specifies duration of zoom animation in milliseconds. + * + * @param start Start value + * @param end End value + * @param duration Duration in milliseconds + */ + zoomToValues(start, end, duration) { + const min2 = this.getPrivate("minFinal", this.getPrivate("min", 0)); + const max2 = this.getPrivate("maxFinal", this.getPrivate("max", 1)); + if (this.getPrivate("min") != null && this.getPrivate("max") != null) { + this.zoom((start - min2) / (max2 - min2), (end - min2) / (max2 - min2), duration); + } + } + /** + * Syncs with a target axis. + * + * @param min Min + * @param max Max + * @param step Step + */ + _syncAxes(min2, max2, step, syncMin, syncMax, syncStep) { + let axis = this.get("syncWithAxis"); + if (axis) { + let count = Math.round(syncMax - syncMin) / syncStep; + let currentCount = Math.round((max2 - min2) / step); + let gridCount = this.get("renderer").gridCount(); + if (isNumber(count) && isNumber(currentCount)) { + let synced = false; + let c = 0; + let diff = (max2 - min2) * 0.01; + let omin = min2; + let omax = max2; + let ostep = step; + while (synced != true) { + synced = this._checkSync(omin, omax, ostep, count); + c++; + if (c > 500) { + synced = true; + } + if (!synced) { + if (c / 3 == Math.round(c / 3)) { + omin = min2 - diff * c; + if (min2 >= 0 && omin < 0) { + omin = 0; + } + } else { + omax = max2 + diff * c; + if (omax <= 0 && omax > 0) { + omax = 0; + } + } + let minMaxStep = this._adjustMinMax(omin, omax, gridCount, true); + omin = minMaxStep.min; + omax = minMaxStep.max; + ostep = minMaxStep.step; + } else { + min2 = omin; + max2 = omax; + step = ostep; + } + } + } + } + return { min: min2, max: max2, step }; + } + /** + * Returns `true` if axis needs to be resunced with some other axis. + */ + _checkSync(min2, max2, step, count) { + let currentCount = (max2 - min2) / step; + for (let i = 1; i < count; i++) { + if (round(currentCount / i, 1) == count || currentCount * i == count) { + return true; + } + } + return false; + } + /** + * Returns relative position between two grid lines of the axis. + * + * @return Position + */ + getCellWidthPosition() { + let max2 = this.getPrivate("selectionMax", this.getPrivate("max")); + let min2 = this.getPrivate("selectionMin", this.getPrivate("min")); + if (isNumber(max2) && isNumber(min2)) { + return this.getPrivate("step", 1) / (max2 - min2); + } + return 0.05; + } + /** + * @ignore + */ + nextPosition(count) { + if (count == null) { + count = 1; + } + if (this.get("renderer").getPrivate("letter") == "Y") { + count *= -1; + } + let value = this.positionToValue(this.getPrivate("tooltipPosition", 0)); + value += this.getPrivate("step", 1) * count; + value = fitToRange(value, this.getPrivate("selectionMin", 0), this.getPrivate("selectionMax", 1)); + return this.toGlobalPosition(this.valueToPosition(value)); + } + }; + ValueAxis.className = "ValueAxis"; + ValueAxis.classNames = Axis.classNames.concat([ValueAxis.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/CategoryAxis.js + var CategoryAxis = class _CategoryAxis extends Axis { + constructor() { + super(...arguments); + this._frequency = 1; + this._itemMap = {}; + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["axis"]); + this.fields.push("category", "id", "cellSize"); + this.setPrivateRaw("name", "category"); + this.addTag("category"); + super._afterNew(); + } + _afterDataChange() { + super._afterDataChange(); + const len = this.dataItems.length; + if (len > 0) { + this.setPrivateRaw("maxZoomFactor", len); + } + this.setPrivateRaw("startIndex", Math.min(this.getPrivate("startIndex", 0), len)); + this.setPrivateRaw("endIndex", Math.min(this.getPrivate("endIndex", len), 1)); + } + _prepareChildren() { + super._prepareChildren(); + const len = this.dataItems.length; + let i = 0; + if (this._valuesDirty) { + this._itemMap = {}; + each(this.dataItems, (dataItem) => { + dataItem.setRaw("index", i); + this._itemMap[dataItem.get("category")] = dataItem; + i++; + }); + this.setPrivateRaw("maxZoomFactor", len); + } + let start = this.get("start", 0); + let end = this.get("end", 1); + let indices = this._getIndices(start, end); + this.setPrivateRaw("startIndex", indices.startIndex); + this.setPrivateRaw("endIndex", indices.endIndex); + if (this._sizeDirty || this._valuesDirty || (this.isDirty("start") || this.isDirty("end") || this.isPrivateDirty("endIndex") || this.isPrivateDirty("startIndex") || this.isPrivateDirty("width") || this.isPrivateDirty("height"))) { + if (this.dataItems.length > 0) { + this._handleRangeChange(); + this._prepareAxisItems(); + this._updateAxisRanges(); + } + } + } + /** + * @ignore + */ + adjustZoom() { + const len = this.dataItems.length; + if (len > 1) { + let maxZoomCount = this.get("maxZoomCount", this.dataItems.length); + let minZoomCount = this.get("minZoomCount", 1); + let count = 0; + let startIndex = this.getPrivate("startIndex", 0); + let endIndex = this.getPrivate("endIndex", 0); + const sAnimation = this._sAnimation; + const eAnimation = this._eAnimation; + let start = this.get("start", 0); + let getIndices = false; + if (sAnimation && !sAnimation.stopped) { + start = Number(sAnimation.to); + getIndices = true; + } + let end = this.get("end", 1); + if (eAnimation && !eAnimation.stopped) { + end = Number(eAnimation.to); + getIndices = true; + } + if (getIndices) { + const indices = this._getIndices(start, end); + startIndex = indices.startIndex; + endIndex = indices.endIndex; + } + for (let i = startIndex; i < endIndex; i++) { + const dataItem = this.dataItems[i]; + count += dataItem.get("finalCellSize", 1); + } + ; + if (count <= minZoomCount) { + let c = 0; + for (let i = startIndex; i < len; i++) { + const dataItem = this.dataItems[i]; + c += dataItem.get("finalCellSize", 1); + endIndex = i + 1; + if (c >= minZoomCount) { + break; + } + } + if (c < minZoomCount) { + for (let i = startIndex - 1; i >= 0; i--) { + const dataItem = this.dataItems[i]; + c += dataItem.get("finalCellSize", 1); + startIndex = i; + if (c >= minZoomCount) { + break; + } + } + } + this.zoomToIndexes(startIndex, endIndex); + } else if (count >= maxZoomCount) { + let c = count; + for (let i = endIndex - 1; i >= startIndex; i--) { + const dataItem = this.dataItems[i]; + c -= dataItem.get("finalCellSize", 1); + if (c <= maxZoomCount) { + endIndex = i + 1; + break; + } + } + this.zoomToIndexes(startIndex, endIndex); + } + } + } + _handleRangeChange() { + each(this.series, (series2) => { + let startCategory = this.dataItems[this.startIndex()].get("category"); + let endCategory = this.dataItems[this.endIndex() - 1].get("category"); + let baseAxis = series2.get("baseAxis"); + let xAxis2 = series2.get("xAxis"); + let yAxis2 = series2.get("yAxis"); + if (xAxis2 instanceof _CategoryAxis && yAxis2 instanceof _CategoryAxis) { + series2._markDirtyAxes(); + } else if (baseAxis === this) { + let key; + let openKey; + let otherAxis = yAxis2; + if (xAxis2 === baseAxis) { + if (series2.get("categoryXField")) { + key = "categoryX"; + } + if (series2.get("openCategoryXField")) { + openKey = "openCategoryX"; + } + } else if (yAxis2 === baseAxis) { + if (series2.get("categoryYField")) { + key = "categoryY"; + } + if (series2.get("openCategoryYField")) { + openKey = "openCategoryY"; + } + otherAxis = xAxis2; + } + if (otherAxis instanceof ValueAxis) { + if (key || openKey) { + let findDataItem = function(series3, categoryAxis, key2, openKey2, category, direction) { + let dataItem; + let idx = categoryAxis.categoryToIndex(category); + while (!dataItem && idx >= 0 && idx < categoryAxis.dataItems.length) { + let searchCategory = categoryAxis.dataItems[idx].get("category"); + if (direction == "previous") { + for (let i = series3.dataItems.length - 1; i >= 0; i--) { + let item = series3.dataItems[i]; + if (key2 && item.get(key2) === searchCategory) { + dataItem = item; + break; + } + if (openKey2 && item.get(openKey2) === searchCategory) { + dataItem = item; + break; + } + } + } else { + for (let i = 0, len = series3.dataItems.length; i < len; i++) { + let item = series3.dataItems[i]; + if (key2 && item.get(key2) === searchCategory) { + dataItem = item; + break; + } + if (openKey2 && item.get(openKey2) === searchCategory) { + dataItem = item; + break; + } + } + } + if (!dataItem) { + idx += direction === "previous" ? -1 : 1; + } + } + return dataItem; + }; + let startDataItem; + let endDataItem; + startDataItem = findDataItem(series2, this, key, openKey, startCategory, "next"); + endDataItem = findDataItem(series2, this, key, openKey, endCategory, "previous"); + let startIndex = 0; + let endIndex = series2.dataItems.length; + if (startDataItem) { + startIndex = series2.dataItems.indexOf(startDataItem); + } + if (endDataItem) { + endIndex = series2.dataItems.indexOf(endDataItem) + 1; + } + series2.setPrivate("startIndex", startIndex); + series2.setPrivate("endIndex", endIndex); + let hasValue = false; + for (let i = startIndex; i < endIndex; i++) { + const dataItem = series2.dataItems[i]; + each(series2.__valueXShowFields, (key2) => { + let value = dataItem.get(key2); + if (value != null) { + hasValue = true; + } + }); + each(series2.__valueYShowFields, (key2) => { + let value = dataItem.get(key2); + if (value != null) { + hasValue = true; + } + }); + if (hasValue) { + break; + } + } + series2.setPrivate("outOfSelection", !hasValue); + } + } + series2._markDirtyAxes(); + } + }); + } + _prepareAxisItems() { + var _a; + const renderer = this.get("renderer"); + const len = this.dataItems.length; + let startIndex = this.startIndex(); + if (startIndex > 0) { + startIndex--; + } + let endIndex = this.endIndex(); + if (endIndex < len) { + endIndex++; + } + const minorLabelsEnabled = renderer.get("minorLabelsEnabled"); + const minorGridEnabled = renderer.get("minorGridEnabled", minorLabelsEnabled); + let maxCount = renderer.axisLength() / Math.max(renderer.get("minGridDistance"), 1); + let frequency = Math.max(1, Math.min(len, Math.ceil((endIndex - startIndex) / maxCount))); + startIndex = Math.floor(startIndex / frequency) * frequency; + this._frequency = frequency; + for (let j = 0; j < len; j++) { + this._toggleDataItem(this.dataItems[j], false); + } + let f = this.dataItems[startIndex].get("index", 0); + for (let i = startIndex; i < endIndex; i = i + frequency) { + let dataItem = this.dataItems[i]; + this._createAssets(dataItem, []); + this._toggleDataItem(dataItem, true); + let count = frequency; + if (minorGridEnabled) { + count = 1; + } + this._prepareDataItem(dataItem, f, count); + f++; + } + if (renderer.get("minorGridEnabled")) { + for (let i = startIndex; i < endIndex; i++) { + let dataItem = this.dataItems[i]; + if (i % frequency != 0) { + this._createAssets(dataItem, ["minor"], true); + this._toggleDataItem(dataItem, true); + this._prepareDataItem(dataItem, 0, 1); + if (!minorLabelsEnabled) { + (_a = dataItem.get("label")) === null || _a === void 0 ? void 0 : _a.setPrivate("visible", false); + } + } + } + } + this._updateGhost(); + } + _prepareDataItem(dataItem, fillIndex, count) { + let renderer = this.get("renderer"); + let categoryLocation = dataItem.get("categoryLocation", 0); + let endCategoryLocation = dataItem.get("endCategoryLocation", 1); + let index = dataItem.get("index"); + if (!isNumber(index)) { + index = this.categoryToIndex(dataItem.get("category")); + } + let position = this.indexToPosition(index, categoryLocation); + let endCategory = dataItem.get("endCategory"); + let endIndex; + if (endCategory) { + endIndex = this.categoryToIndex(endCategory); + if (!isNumber(endIndex)) { + endIndex = index; + } + } else { + endIndex = index; + } + let endPosition = this.indexToPosition(endIndex, endCategoryLocation); + let fillEndIndex; + let fillEndPosition; + if (dataItem.get("isRange")) { + fillEndIndex = endIndex; + if (!isNumber(index)) { + this._toggleDataItem(dataItem, false); + return; + } + } else { + fillEndIndex = index + this._frequency - 1; + } + fillEndPosition = this.indexToPosition(fillEndIndex, endCategoryLocation); + renderer.updateLabel(dataItem.get("label"), position, endPosition, count); + renderer.updateGrid(dataItem.get("grid"), position, endPosition); + renderer.updateTick(dataItem.get("tick"), position, endPosition, count); + renderer.updateFill(dataItem.get("axisFill"), position, fillEndPosition); + this._processBullet(dataItem); + renderer.updateBullet(dataItem.get("bullet"), position, endPosition); + const fillRule = this.get("fillRule"); + if (fillRule) { + fillRule(dataItem, fillIndex); + } + } + startIndex() { + let len = this.dataItems.length; + return Math.min(Math.max(this.getPrivate("startIndex", 0), 0), len - 1); + } + endIndex() { + let len = this.dataItems.length; + return Math.max(1, Math.min(this.getPrivate("endIndex", len), len)); + } + /** + * @ignore + */ + baseValue() { + } + /** + * @ignore + */ + basePosition() { + return 0; + } + /** + * Returns X coordinate in pixels corresponding to specific category index. + * + * @param value Index + * @return X coordinate + */ + getX(value) { + let axisDataItem = this._itemMap[value]; + if (axisDataItem) { + return this._settings.renderer.positionToCoordinate(this.indexToPosition(axisDataItem.get("index", 0))); + } + return NaN; + } + /** + * Returns Y coordinate in pixels corresponding to specific category index. + * + * @param value Index + * @return Y coordinate + */ + getY(value) { + let axisDataItem = this._itemMap[value]; + if (axisDataItem) { + return this._settings.renderer.positionToCoordinate(this.indexToPosition(axisDataItem.get("index", 0))); + } + return NaN; + } + /** + * @ignore + */ + getDataItemPositionX(dataItem, field, cellLocation, _axisLocation) { + const category = dataItem.get(field); + const axisDataItem = this._itemMap[category]; + if (axisDataItem) { + return this.indexToPosition(axisDataItem.get("index", 0), cellLocation); + } + return NaN; + } + /** + * @ignore + */ + getDataItemCoordinateX(dataItem, field, cellLocation, _axisLocation) { + return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(dataItem, field, cellLocation, _axisLocation)); + } + /** + * @ignore + */ + getDataItemPositionY(dataItem, field, cellLocation, _axisLocation) { + const category = dataItem.get(field); + const axisDataItem = this._itemMap[category]; + if (axisDataItem) { + return this.indexToPosition(axisDataItem.get("index", 0), cellLocation); + } + return NaN; + } + /** + * @ignore + */ + getDataItemCoordinateY(dataItem, field, cellLocation, _axisLocation) { + return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(dataItem, field, cellLocation, _axisLocation)); + } + /** + * Converts category index to a relative position. + * + * `location` indicates relative position within category: 0 - start, 1 - end. + * + * If not set, will use middle (0.5) of the category. + * + * @param index Index + * @param location Location + * @return Index + */ + indexToPosition(index, location, final) { + let len = this.dataItems.length; + let position = 0; + if (len == 0) { + return 0; + } + if (index >= len) { + index = len - 1; + location = 1; + } + if (!isNumber(location)) { + location = 0.5; + } + if (!isNumber(index)) { + return 0; + } + let startLocation = this.get("startLocation", 0); + let endLocation = this.get("endLocation", 1); + if (!this.get("cellSizeField")) { + len -= startLocation; + len -= 1 - endLocation; + position = (index + location - startLocation) / len; + } else { + let name = final ? "finalCellSize" : "cellSize"; + const dataItems = this.dataItems; + let modCount = 0; + each(this.dataItems, (dataItem) => { + modCount += dataItem.get(name, 1); + }); + modCount -= startLocation * dataItems[0].get(name, 1); + modCount -= (1 - endLocation) * dataItems[dataItems.length - 1].get(name, 1); + let acc = 0; + for (let i = 0; i < index; i++) { + acc += dataItems[i].get(name, 1); + } + let cellSizeAtIndex = dataItems[index].get(name, 1); + position = (acc + location * cellSizeAtIndex - startLocation * dataItems[0].get(name, 1)) / modCount; + } + if (!final) { + let dataItem = this.dataItems[index]; + if (dataItem) { + position += dataItem.get("deltaPosition", 0); + } + } + return position; + } + /** + * Returns a position of a category. + * + * @param category Category to look up + * @return Position + */ + categoryToPosition(category) { + let dataItem = this._itemMap[category]; + if (dataItem) { + return this.indexToPosition(dataItem.get("index")); + } + return NaN; + } + /** + * Returns an index of a category. + * + * @param category Category to look up + * @return Index + */ + categoryToIndex(category) { + let dataItem = this._itemMap[category]; + if (dataItem) { + return dataItem.get("index"); + } + return NaN; + } + /** + * @ignore + */ + dataItemToPosition(dataItem) { + return this.indexToPosition(dataItem.get("index")); + } + /** + * @ignore + */ + roundAxisPosition(position, location) { + position += (0.5 - location) / this.dataItems.length; + return this.indexToPosition(this.axisPositionToIndex(position), location); + } + /** + * Returns an index of the category that corresponds to specific pixel + * position within axis. + * + * @param position Position (px) + * @return Category index + */ + axisPositionToIndex(position) { + let len = this.dataItems.length; + if (len === 0) { + return 0; + } + if (this.get("cellSizeField")) { + let modifiedLen = 0; + let cellSizes = []; + each(this.dataItems, (dataItem) => { + const cellSize = dataItem.get("cellSize", 1); + cellSizes.push(cellSize); + modifiedLen += cellSize; + }); + let startLocation = this.get("startLocation", 0); + let endLocation = this.get("endLocation", 1); + modifiedLen -= startLocation; + modifiedLen -= 1 - endLocation; + let rel = position * modifiedLen + startLocation; + let acc = 0; + for (let i = 0; i < len; i++) { + const cellSize = cellSizes[i]; + if (rel < acc + cellSize) { + return i; + } + acc += cellSize; + } + return len - 1; + } else { + return fitToRange(Math.floor(position * len), 0, len - 1); + } + } + /** + * Returns text to be used in an axis tooltip for specific relative position. + * + * @param position Position + * @return Tooltip text + */ + getTooltipText(position, _adjustPosition) { + const dataItem = this.dataItems[this.axisPositionToIndex(position)]; + if (dataItem) { + const label = dataItem.get("label"); + if (label) { + return populateString(label, this.get("tooltipText", "")); + } + } + } + _updateTooltipText(tooltip, position) { + tooltip._setDataItem(this.dataItems[this.axisPositionToIndex(position)]); + tooltip.label.text.markDirtyText(); + } + /** + * Returns a data item from series that is closest to the `position`. + * + * @param series Series + * @param position Relative position + * @return Data item + */ + getSeriesItem(series2, position) { + if (this.dataItems.length > 0) { + let fieldName = this.getPrivate("name") + this.get("renderer").getPrivate("letter"); + let index = this.axisPositionToIndex(position); + let seriesDataItem = series2.dataItems[index]; + let axisDataItem = this.dataItems[index]; + let category = axisDataItem.get("category"); + if (seriesDataItem && axisDataItem) { + if (seriesDataItem.get(fieldName) === category) { + return seriesDataItem; + } + } + for (let i = 0, len = series2.dataItems.length; i < len; i++) { + let dataItem = series2.dataItems[i]; + if (dataItem.get(fieldName) === category) { + return dataItem; + } + } + } + } + _getIndices(start, end) { + let len = this.dataItems.length; + let startIndex = 0; + let endIndex = len; + let name = "cellSize"; + if (this.get("cellSizeField")) { + let count = 0; + const dataItems = this.dataItems; + if (dataItems.length == 0) { + return { startIndex: 0, endIndex: 0 }; + } + each(dataItems, (dataItem) => { + count += dataItem.get(name, 1); + }); + count -= this.get("startLocation", 0) * dataItems[0].get(name, 1); + count -= (1 - this.get("endLocation", 1)) * dataItems[dataItems.length - 1].get(name, 1); + let c = 0; + for (let i = 0; i < len; i++) { + c += this.dataItems[i].get(name, 1); + if (Math.round(c) > Math.round(start * count)) { + startIndex = i; + break; + } + } + for (let i = startIndex + 1; i < len; i++) { + c += this.dataItems[i].get(name, 1); + if (Math.round(c) >= Math.round(end * count)) { + endIndex = i + 1; + break; + } + } + startIndex = Math.max(startIndex, 0); + endIndex = Math.min(endIndex, len); + } else { + startIndex = Math.max(Math.round(this.get("start", 0) * len), 0); + endIndex = Math.min(Math.round(this.get("end", 1) * len), len); + } + return { startIndex, endIndex }; + } + /** + * Zooms the axis to specific `start` and `end` indexes. + * + * Optional `duration` specifies duration of zoom animation in milliseconds. + * + * @param start Start index + * @param end End index + * @param duration Duration in milliseconds + */ + zoomToIndexes(start, end, duration) { + let len = this.dataItems.length; + if (this.get("cellSizeField")) { + start = Math.min(Math.max(start, 0), len); + end = Math.max(Math.min(end, len), 1); + this.setPrivateRaw("startIndex", start); + this.setPrivateRaw("endIndex", end); + this.zoom(this.indexToPosition(start, 0, true), this.indexToPosition(end, 0, true), duration); + } else { + this.zoom(start / len, end / len, duration); + } + } + zoomToCategories(startCategory, endCategory, duration) { + this.zoomToIndexes(this.categoryToIndex(startCategory), this.categoryToIndex(endCategory) + 1, duration); + } + /** + * Returns position span between start and end of a single cell in axis. + * + * @since 5.2.30 + * @return Position + */ + getCellWidthPosition() { + return this._frequency / this.dataItems.length / (this.get("end", 1) - this.get("start", 0)); + } + /** + * @ignore + */ + nextPosition(count) { + if (count == null) { + count = 1; + } + if (this.get("renderer").getPrivate("letter") == "Y") { + count *= -1; + } + const position = this.getPrivate("tooltipPosition", 0); + const index = fitToRange(this.axisPositionToIndex(position) + count, 0, this.dataItems.length - 1); + return this.toGlobalPosition(this.indexToPosition(index)); + } + }; + CategoryAxis.className = "CategoryAxis"; + CategoryAxis.classNames = Axis.classNames.concat([CategoryAxis.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/AxisLabel.js + var AxisLabel = class extends Label { + constructor() { + super(...arguments); + this._tickPoints = []; + } + }; + AxisLabel.className = "AxisLabel"; + AxisLabel.classNames = Label.classNames.concat([AxisLabel.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/AxisTick.js + var AxisTick = class extends Tick { + constructor() { + super(...arguments); + this._tickPoints = []; + } + }; + AxisTick.className = "AxisTick"; + AxisTick.classNames = Tick.classNames.concat([AxisTick.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/AxisRenderer.js + var AxisRenderer = class extends Graphics { + constructor() { + super(...arguments); + this._axisLength = 100; + this._start = 0; + this._end = 1; + this._inversed = false; + this._minSize = 0; + this._lc = 1; + this._ls = 0; + this.ticks = this.addDisposer(new ListTemplate(Template.new({}), () => AxisTick._new(this._root, { + themeTags: mergeTags(this.ticks.template.get("themeTags", []), this.get("themeTags", [])) + }, [this.ticks.template]))); + this.grid = this.addDisposer(new ListTemplate(Template.new({}), () => Grid._new(this._root, { + themeTags: mergeTags(this.grid.template.get("themeTags", []), this.get("themeTags", [])) + }, [this.grid.template]))); + this.axisFills = this.addDisposer(new ListTemplate(Template.new({}), () => Graphics._new(this._root, { + themeTags: mergeTags(this.axisFills.template.get("themeTags", ["axis", "fill"]), this.get("themeTags", [])) + }, [this.axisFills.template]))); + this.labels = this.addDisposer(new ListTemplate(Template.new({}), () => AxisLabel._new(this._root, { + themeTags: mergeTags(this.labels.template.get("themeTags", []), this.get("themeTags", [])) + }, [this.labels.template]))); + } + /** + * @ignore + */ + makeTick(dataItem, themeTags) { + const tick = this.ticks.make(); + tick._setDataItem(dataItem); + dataItem.setRaw("tick", tick); + tick.set("themeTags", mergeTags(tick.get("themeTags"), themeTags)); + this.axis.labelsContainer.children.push(tick); + this.ticks.push(tick); + return tick; + } + /** + * @ignore + */ + makeGrid(dataItem, themeTags) { + const grid = this.grid.make(); + grid._setDataItem(dataItem); + dataItem.setRaw("grid", grid); + grid.set("themeTags", mergeTags(grid.get("themeTags"), themeTags)); + this.axis.gridContainer.children.push(grid); + this.grid.push(grid); + return grid; + } + /** + * @ignore + */ + makeAxisFill(dataItem, themeTags) { + const axisFill = this.axisFills.make(); + axisFill._setDataItem(dataItem); + axisFill.set("themeTags", mergeTags(axisFill.get("themeTags"), themeTags)); + this.axis.gridContainer.children.push(axisFill); + dataItem.setRaw("axisFill", axisFill); + this.axisFills.push(axisFill); + return axisFill; + } + /** + * @ignore + */ + makeLabel(dataItem, themeTags) { + const label = this.labels.make(); + label.set("themeTags", mergeTags(label.get("themeTags"), themeTags)); + if (dataItem.get("isRange")) { + this.axis.labelsContainer.children.push(label); + } else { + this.axis.labelsContainer.children.moveValue(label, 0); + } + label._setDataItem(dataItem); + dataItem.setRaw("label", label); + this.labels.push(label); + return label; + } + axisLength() { + return 0; + } + /** + * @ignore + */ + gridCount() { + return this.axisLength() / this.get("minGridDistance", 50); + } + _updatePositions() { + } + _afterNew() { + super._afterNew(); + this.set("isMeasured", false); + const thumb = this.thumb; + if (thumb) { + this._disposers.push(thumb.events.on("pointerdown", (event) => { + this._handleThumbDown(event); + })); + this._disposers.push(thumb.events.on("globalpointerup", (event) => { + this._handleThumbUp(event); + })); + this._disposers.push(thumb.events.on("globalpointermove", (event) => { + this._handleThumbMove(event); + })); + } + } + _beforeChanged() { + super._beforeChanged(); + if (this.isDirty("minGridDistance")) { + this.root.events.once("frameended", () => { + this.axis.markDirtySize(); + }); + } + } + _changed() { + super._changed(); + if (this.isDirty("pan")) { + const thumb = this.thumb; + if (thumb) { + const labelsContainer = this.axis.labelsContainer; + const pan = this.get("pan"); + if (pan == "zoom") { + labelsContainer.children.push(thumb); + } else if (pan == "none") { + labelsContainer.children.removeValue(thumb); + } + } + } + } + _handleThumbDown(event) { + this._thumbDownPoint = this.toLocal(event.point); + const axis = this.axis; + this._downStart = axis.get("start"); + this._downEnd = axis.get("end"); + } + _handleThumbUp(_event) { + this._thumbDownPoint = void 0; + } + _handleThumbMove(event) { + const downPoint = this._thumbDownPoint; + if (downPoint) { + const point = this.toLocal(event.point); + const downStart = this._downStart; + const downEnd = this._downEnd; + const extra = this._getPan(point, downPoint) * Math.min(1, downEnd - downStart) / 2 * this.get("panSensitivity", 1); + this.axis.zoom(downStart - extra, downEnd + extra, 0); + } + } + _getPan(_point1, _point2) { + return 0; + } + /** + * Converts relative position (0-1) on axis to a pixel coordinate. + * + * @param position Position (0-1) + * @return Coordinate (px) + */ + positionToCoordinate(position) { + if (this._inversed) { + return (this._end - position) * this._axisLength; + } else { + return (position - this._start) * this._axisLength; + } + } + /** + * @ignore + */ + updateTooltipBounds(_tooltip) { + } + _updateSize() { + this.markDirty(); + this._clear = true; + } + /** + * @ignore + */ + toAxisPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + position = position * (end - start); + if (!this.get("inversed")) { + position = start + position; + } else { + position = end - position; + } + return position; + } + /** + * @ignore + */ + toGlobalPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + if (!this.get("inversed")) { + position = position - start; + } else { + position = end - position; + } + position = position / (end - start); + return position; + } + /** + * @ignore + */ + fixPosition(position) { + if (this.get("inversed")) { + return 1 - position; + } + return position; + } + /** + * @ignore + */ + _updateLC() { + } + toggleVisibility(sprite, position, minPosition, maxPosition) { + let axis = this.axis; + const start = axis.get("start", 0); + const end = axis.get("end", 1); + let updatedStart = start + (end - start) * (minPosition - 1e-4); + let updatedEnd = start + (end - start) * (maxPosition + 1e-4); + if (position < updatedStart || position > updatedEnd) { + sprite.setPrivate("visible", false); + } else { + sprite.setPrivate("visible", true); + } + } + _positionTooltip(tooltip, point) { + const chart2 = this.chart; + if (chart2) { + tooltip.set("pointTo", this._display.toGlobal(point)); + if (!chart2.inPlot(point)) { + tooltip.hide(); + } + } + } + processAxis() { + } + }; + AxisRenderer.className = "AxisRenderer"; + AxisRenderer.classNames = Graphics.classNames.concat([AxisRenderer.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/AxisRendererX.js + var AxisRendererX = class extends AxisRenderer { + constructor() { + super(...arguments); + this.thumb = Rectangle.new(this._root, { width: p100, isMeasured: false, themeTags: ["axis", "x", "thumb", "zoomgrip"] }); + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["renderer", "x"]); + super._afterNew(); + this.setPrivateRaw("letter", "X"); + const gridTemplate = this.grid.template; + gridTemplate.set("height", p100); + gridTemplate.set("width", 0); + gridTemplate.set("draw", (display, graphics) => { + display.moveTo(0, 0); + display.lineTo(0, graphics.height()); + }); + this.set("draw", (display, graphics) => { + display.moveTo(0, 0); + display.lineTo(graphics.width(), 0); + }); + } + _changed() { + var _a; + super._changed(); + const axis = this.axis; + const ghostLabel = axis.ghostLabel; + if (ghostLabel) { + ghostLabel.setPrivate("visible", !this.get("inside")); + ghostLabel.set("x", -1e3); + } + const opposite = "opposite"; + const inside = "inside"; + if (this.isDirty(opposite) || this.isDirty(inside)) { + const chart2 = this.chart; + const axisChildren = axis.children; + if (this.get(inside)) { + axis.addTag(inside); + } else { + axis.removeTag(inside); + } + if (chart2) { + if (this.get(opposite)) { + const children = chart2.topAxesContainer.children; + if (children.indexOf(axis) == -1) { + children.insertIndex(0, axis); + } + axis.addTag(opposite); + axisChildren.moveValue(this); + } else { + const children = chart2.bottomAxesContainer.children; + if (children.indexOf(axis) == -1) { + children.moveValue(axis); + } + axis.removeTag(opposite); + axisChildren.moveValue(this, 0); + } + (_a = axis.ghostLabel) === null || _a === void 0 ? void 0 : _a._applyThemes(); + this.labels.each((label) => { + label._applyThemes(); + }); + this.root._markDirtyRedraw(); + } + axis.markDirtySize(); + } + this.thumb.setPrivate("height", axis.labelsContainer.height()); + } + _getPan(point1, point2) { + return (point2.x - point1.x) / this.width(); + } + /** + * @ignore + */ + toAxisPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + position -= this._ls; + position = position * (end - start) / this._lc; + if (!this.get("inversed")) { + position = start + position; + } else { + position = end - position; + } + return position; + } + /** + * @ignore + */ + toGlobalPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + if (!this.get("inversed")) { + position = position - start; + } else { + position = end - position; + } + position = position / (end - start) * this._lc; + position += this._ls; + return position; + } + /** + * @ignore + */ + _updateLC() { + const axis = this.axis; + const parent = axis.parent; + if (parent) { + const w = parent.innerWidth(); + this._lc = this.axisLength() / w; + this._ls = (axis.x() - parent.get("paddingLeft", 0)) / w; + } + } + /** + * @ignore + */ + _updatePositions() { + const axis = this.axis; + const x = axis.x() - relativeToValue(axis.get("centerX", 0), axis.width()) - axis.parent.get("paddingLeft", 0); + axis.gridContainer.set("x", x); + axis.topGridContainer.set("x", x); + axis.bulletsContainer.set("y", this.y()); + const chart2 = axis.chart; + if (chart2) { + const plotContainer = chart2.plotContainer; + const axisHeader = axis.axisHeader; + let width = axis.get("marginLeft", 0); + let x2 = axis.x() - width; + const parent = axis.parent; + if (parent) { + x2 -= parent.get("paddingLeft", 0); + } + if (axisHeader.children.length > 0) { + width = axis.axisHeader.width(); + axis.set("marginLeft", width + 1); + } else { + axisHeader.set("width", width); + } + axisHeader.setAll({ x: x2, y: -1, height: plotContainer.height() + 2 }); + } + } + /** + * @ignore + */ + processAxis() { + super.processAxis(); + const axis = this.axis; + if (axis.get("width") == null) { + axis.set("width", p100); + } + ; + const verticalLayout = this._root.verticalLayout; + axis.set("layout", verticalLayout); + axis.labelsContainer.set("width", p100); + axis.axisHeader.setAll({ layout: verticalLayout }); + } + /** + * @ignore + */ + axisLength() { + return this.axis.width(); + } + /** + * Converts axis relative position to actual coordinate in pixels. + * + * @param position Position + * @return Point + */ + positionToPoint(position) { + return { x: this.positionToCoordinate(position), y: 0 }; + } + /** + * @ignore + */ + updateTick(tick, position, endPosition, count) { + if (tick) { + if (!isNumber(position)) { + position = 0; + } + let location = 0.5; + if (isNumber(count) && count > 1) { + location = tick.get("multiLocation", location); + } else { + location = tick.get("location", location); + } + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + tick.set("x", this.positionToCoordinate(position)); + let length = tick.get("length", 0); + const inside = tick.get("inside", this.get("inside", false)); + if (this.get("opposite")) { + tick.set("y", p100); + if (!inside) { + length *= -1; + } + } else { + tick.set("y", 0); + if (inside) { + length *= -1; + } + } + tick.set("draw", (display) => { + display.moveTo(0, 0); + display.lineTo(0, length); + }); + this.toggleVisibility(tick, position, tick.get("minPosition", 0), tick.get("maxPosition", 1)); + } + } + /** + * @ignore + */ + updateLabel(label, position, endPosition, count) { + if (label) { + let location = 0.5; + if (isNumber(count) && count > 1) { + location = label.get("multiLocation", location); + } else { + location = label.get("location", location); + } + if (!isNumber(position)) { + position = 0; + } + const inside = label.get("inside", this.get("inside", false)); + const opposite = this.get("opposite"); + if (opposite) { + if (!inside) { + label.set("position", "relative"); + label.set("y", p100); + } else { + label.set("position", "absolute"); + label.set("y", 0); + } + } else { + if (!inside) { + label.set("y", void 0); + label.set("position", "relative"); + } else { + label.set("y", 0); + label.set("position", "absolute"); + } + } + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + label.set("x", this.positionToCoordinate(position)); + this.toggleVisibility(label, position, label.get("minPosition", 0), label.get("maxPosition", 1)); + } + } + /** + * @ignore + */ + updateGrid(grid, position, endPosition) { + if (grid) { + if (!isNumber(position)) { + position = 0; + } + let location = grid.get("location", 0.5); + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + grid.set("x", this.positionToCoordinate(position)); + this.toggleVisibility(grid, position, 0, 1); + } + } + /** + * @ignore + */ + updateBullet(bullet, position, endPosition) { + if (bullet) { + const sprite = bullet.get("sprite"); + if (sprite) { + if (!isNumber(position)) { + position = 0; + } + let location = bullet.get("location", 0.5); + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + let bulletPosition = this.axis.roundAxisPosition(position, location); + let previousBullet = this.axis._bullets[bulletPosition]; + let d = -1; + if (this.get("opposite")) { + d = 1; + } + if (bullet.get("stacked")) { + if (previousBullet) { + let previousSprite = previousBullet.get("sprite"); + if (previousSprite) { + sprite.set("y", previousSprite.y() + previousSprite.height() * d); + } + } else { + sprite.set("y", 0); + } + } + this.axis._bullets[bulletPosition] = bullet; + sprite.set("x", this.positionToCoordinate(position)); + this.toggleVisibility(sprite, position, 0, 1); + } + } + } + /** + * @ignore + */ + updateFill(fill, position, endPosition) { + if (fill) { + if (!isNumber(position)) { + position = 0; + } + if (!isNumber(endPosition)) { + endPosition = 1; + } + let x0 = this.positionToCoordinate(position); + let x1 = this.positionToCoordinate(endPosition); + this.fillDrawMethod(fill, x0, x1); + } + } + fillDrawMethod(fill, x0, x1) { + fill.set("draw", (display) => { + const h = this.axis.gridContainer.height(); + const w = this.width(); + if (x1 < x0) { + [x1, x0] = [x0, x1]; + } + if (x0 > w || x1 < 0) { + return; + } + display.moveTo(x0, 0); + display.lineTo(x1, 0); + display.lineTo(x1, h); + display.lineTo(x0, h); + display.lineTo(x0, 0); + }); + } + /** + * @ignore + */ + positionTooltip(tooltip, position) { + this._positionTooltip(tooltip, { x: this.positionToCoordinate(position), y: 0 }); + } + /** + * @ignore + */ + updateTooltipBounds(tooltip) { + const inside = this.get("inside"); + const num = 1e5; + let global = this._display.toGlobal({ x: 0, y: 0 }); + let x = global.x; + let y = 0; + let w = this.axisLength(); + let h = num; + let pointerOrientation = "up"; + if (this.get("opposite")) { + if (inside) { + pointerOrientation = "up"; + y = global.y; + h = num; + } else { + pointerOrientation = "down"; + y = global.y - num; + h = num; + } + } else { + if (inside) { + pointerOrientation = "down"; + y = global.y - num; + h = num; + } else { + pointerOrientation = "up"; + y = global.y; + h = num; + } + } + const bounds = { left: x, right: x + w, top: y, bottom: y + h }; + const oldBounds = tooltip.get("bounds"); + if (!sameBounds(bounds, oldBounds)) { + tooltip.set("bounds", bounds); + tooltip.set("pointerOrientation", pointerOrientation); + } + } + }; + AxisRendererX.className = "AxisRendererX"; + AxisRendererX.classNames = AxisRenderer.classNames.concat([AxisRendererX.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/axes/AxisRendererY.js + var AxisRendererY = class extends AxisRenderer { + constructor() { + super(...arguments); + this.thumb = Rectangle.new(this._root, { height: p100, isMeasured: false, themeTags: ["axis", "y", "thumb", "zoomgrip"] }); + } + _afterNew() { + this._settings.themeTags = mergeTags(this._settings.themeTags, ["renderer", "y"]); + if (this._settings.opposite) { + this._settings.themeTags.push("opposite"); + } + super._afterNew(); + this.setPrivateRaw("letter", "Y"); + const gridTemplate = this.grid.template; + gridTemplate.set("width", p100); + gridTemplate.set("height", 0); + gridTemplate.set("draw", (display, graphics) => { + display.moveTo(0, 0); + display.lineTo(graphics.width(), 0); + }); + this.set("draw", (display, renderer) => { + display.moveTo(0, 0); + display.lineTo(0, renderer.height()); + }); + } + _getPan(point1, point2) { + return (point1.y - point2.y) / this.height(); + } + _changed() { + var _a; + super._changed(); + const axis = this.axis; + const ghostLabel = axis.ghostLabel; + if (ghostLabel) { + ghostLabel.setPrivate("visible", !this.get("inside")); + ghostLabel.set("y", -1e3); + } + const thumb = this.thumb; + const opposite = "opposite"; + const inside = "inside"; + const chart2 = this.chart; + if (this.isDirty(opposite) || this.isDirty(inside)) { + const axisChildren = axis.children; + if (this.get(inside)) { + axis.addTag(inside); + } else { + axis.removeTag(inside); + } + if (chart2) { + if (this.get(opposite)) { + const children = chart2.rightAxesContainer.children; + if (children.indexOf(axis) == -1) { + children.moveValue(axis, 0); + } + axis.addTag(opposite); + axisChildren.moveValue(this, 0); + } else { + const children = chart2.leftAxesContainer.children; + if (children.indexOf(axis) == -1) { + children.moveValue(axis); + } + axis.removeTag(opposite); + axisChildren.moveValue(this); + } + (_a = axis.ghostLabel) === null || _a === void 0 ? void 0 : _a._applyThemes(); + this.labels.each((label) => { + label._applyThemes(); + }); + this.root._markDirtyRedraw(); + } + axis.markDirtySize(); + } + const w = axis.labelsContainer.width(); + if (chart2) { + if (this.get(opposite)) { + thumb.set("centerX", 0); + } else { + thumb.set("centerX", w); + } + } + thumb.setPrivate("width", w); + } + /** + * @ignore + */ + processAxis() { + super.processAxis(); + const axis = this.axis; + if (axis.get("height") == null) { + axis.set("height", p100); + } + const horizontalLayout = this._root.horizontalLayout; + axis.set("layout", horizontalLayout); + axis.labelsContainer.set("height", p100); + axis.axisHeader.set("layout", horizontalLayout); + } + _updatePositions() { + const axis = this.axis; + const y = axis.y() - relativeToValue(axis.get("centerY", 0), axis.height()); + axis.gridContainer.set("y", y); + axis.topGridContainer.set("y", y); + axis.bulletsContainer.set("x", this.x()); + const chart2 = axis.chart; + if (chart2) { + const plotContainer = chart2.plotContainer; + const axisHeader = axis.axisHeader; + let height = axis.get("marginTop", 0); + if (axisHeader.children.length > 0) { + height = axis.axisHeader.height(); + axis.set("marginTop", height + 1); + } else { + axisHeader.set("height", height); + } + axisHeader.setAll({ y: axis.y() - height, x: -1, width: plotContainer.width() + 2 }); + } + } + /** + * @ignore + */ + axisLength() { + return this.axis.innerHeight(); + } + /** + * Converts axis relative position to actual coordinate in pixels. + * + * @param position Position + * @return Point + */ + positionToPoint(position) { + return { x: 0, y: this.positionToCoordinate(position) }; + } + /** + * @ignore + */ + updateLabel(label, position, endPosition, count) { + if (label) { + if (!isNumber(position)) { + position = 0; + } + let location = 0.5; + if (isNumber(count) && count > 1) { + location = label.get("multiLocation", location); + } else { + location = label.get("location", location); + } + const opposite = this.get("opposite"); + const inside = label.get("inside", this.get("inside", false)); + if (opposite) { + label.set("x", 0); + if (inside) { + label.set("position", "absolute"); + } else { + label.set("position", "relative"); + } + } else { + if (inside) { + label.set("x", 0); + label.set("position", "absolute"); + } else { + label.set("x", void 0); + label.set("position", "relative"); + } + } + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + label.set("y", this.positionToCoordinate(position)); + this.toggleVisibility(label, position, label.get("minPosition", 0), label.get("maxPosition", 1)); + } + } + /** + * @ignore + */ + updateGrid(grid, position, endPosition) { + if (grid) { + if (!isNumber(position)) { + position = 0; + } + let location = grid.get("location", 0.5); + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + grid.set("y", this.positionToCoordinate(position)); + this.toggleVisibility(grid, position, 0, 1); + } + } + /** + * @ignore + */ + updateTick(tick, position, endPosition, count) { + if (tick) { + if (!isNumber(position)) { + position = 0; + } + let location = 0.5; + if (isNumber(count) && count > 1) { + location = tick.get("multiLocation", location); + } else { + location = tick.get("location", location); + } + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + tick.set("y", this.positionToCoordinate(position)); + let length = tick.get("length", 0); + const inside = tick.get("inside", this.get("inside", false)); + if (this.get("opposite")) { + tick.set("x", 0); + if (inside) { + length *= -1; + } + } else { + if (!inside) { + length *= -1; + } + } + tick.set("draw", (display) => { + display.moveTo(0, 0); + display.lineTo(length, 0); + }); + this.toggleVisibility(tick, position, tick.get("minPosition", 0), tick.get("maxPosition", 1)); + } + } + /** + * @ignore + */ + updateBullet(bullet, position, endPosition) { + if (bullet) { + const sprite = bullet.get("sprite"); + if (sprite) { + if (!isNumber(position)) { + position = 0; + } + let location = bullet.get("location", 0.5); + if (isNumber(endPosition) && endPosition != position) { + position = position + (endPosition - position) * location; + } + let bulletPosition = this.axis.roundAxisPosition(position, location); + let previousBullet = this.axis._bullets[bulletPosition]; + let d = 1; + if (this.get("opposite")) { + d = -1; + } + if (bullet.get("stacked")) { + if (previousBullet) { + let previousSprite = previousBullet.get("sprite"); + if (previousSprite) { + sprite.set("x", previousSprite.x() + previousSprite.width() * d); + } + } else { + sprite.set("x", 0); + } + } + this.axis._bullets[bulletPosition] = bullet; + sprite.set("y", this.positionToCoordinate(position)); + this.toggleVisibility(sprite, position, 0, 1); + } + } + } + /** + * @ignore + */ + updateFill(fill, position, endPosition) { + if (fill) { + if (!isNumber(position)) { + position = 0; + } + if (!isNumber(endPosition)) { + endPosition = 1; + } + let y0 = this.positionToCoordinate(position); + let y1 = this.positionToCoordinate(endPosition); + this.fillDrawMethod(fill, y0, y1); + } + } + fillDrawMethod(fill, y0, y1) { + fill.set("draw", (display) => { + const w = this.axis.gridContainer.width(); + const h = this.height(); + if (y1 < y0) { + [y1, y0] = [y0, y1]; + } + if (y0 > h || y1 < 0) { + return; + } + display.moveTo(0, y0); + display.lineTo(w, y0); + display.lineTo(w, y1); + display.lineTo(0, y1); + display.lineTo(0, y0); + }); + } + /** + * Converts relative position (0-1) on axis to a pixel coordinate. + * + * @param position Position (0-1) + * @return Coordinate (px) + */ + positionToCoordinate(position) { + if (!this._inversed) { + return (this._end - position) * this._axisLength; + } else { + return (position - this._start) * this._axisLength; + } + } + /** + * @ignore + */ + positionTooltip(tooltip, position) { + this._positionTooltip(tooltip, { x: 0, y: this.positionToCoordinate(position) }); + } + /** + * @ignore + */ + updateTooltipBounds(tooltip) { + const inside = this.get("inside"); + const num = 1e5; + let global = this._display.toGlobal({ x: 0, y: 0 }); + let y = global.y; + let x = 0; + let h = this.axisLength(); + let w = num; + let pointerOrientation = "right"; + if (this.get("opposite")) { + if (inside) { + pointerOrientation = "right"; + x = global.x - num; + w = num; + } else { + pointerOrientation = "left"; + x = global.x; + w = num; + } + } else { + if (inside) { + pointerOrientation = "left"; + x = global.x; + w = num; + } else { + pointerOrientation = "right"; + x = global.x - num; + w = num; + } + } + const bounds = { left: x, right: x + w, top: y, bottom: y + h }; + const oldBounds = tooltip.get("bounds"); + if (!sameBounds(bounds, oldBounds)) { + tooltip.set("bounds", bounds); + tooltip.set("pointerOrientation", pointerOrientation); + } + } + /** + * @ignore + */ + _updateLC() { + const axis = this.axis; + const parent = axis.parent; + if (parent) { + const h = parent.innerHeight(); + this._lc = this.axisLength() / h; + this._ls = axis.y() / h; + } + } + /** + * @ignore + */ + toAxisPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + position -= this._ls; + position = position * (end - start) / this._lc; + if (this.get("inversed")) { + position = start + position; + } else { + position = end - position; + } + return position; + } + /** + * @ignore + */ + toGlobalPosition(position) { + const start = this._start || 0; + const end = this._end || 1; + if (this.get("inversed")) { + position = position - start; + } else { + position = end - position; + } + position = position / (end - start) * this._lc; + position += this._ls; + return position; + } + /** + * @ignore + */ + fixPosition(position) { + if (!this.get("inversed")) { + return 1 - position; + } + return position; + } + }; + AxisRendererY.className = "AxisRendererY"; + AxisRendererY.classNames = AxisRenderer.classNames.concat([AxisRendererY.className]); + + // node_modules/@amcharts/amcharts5/.internal/charts/xy/series/ColumnSeries.js + var ColumnSeries = class extends BaseColumnSeries { + constructor() { + super(...arguments); + this.allColumns = this.children.push(Graphics.new(this._root, {})); + this.allColumnsData = []; + this.columns = this.addDisposer(new ListTemplate(Template.new({}), () => RoundedRectangle._new(this._root, { + position: "absolute", + themeTags: mergeTags(this.columns.template.get("themeTags", []), ["series", "column"]) + }, [this.columns.template]))); + } + /** + * @ignore + */ + makeColumn(dataItem, listTemplate) { + const column = listTemplate.make(); + if (!this.get("turboMode")) { + this.mainContainer.children.push(column); + } else { + column.virtualParent = this.chart; + } + column._setDataItem(dataItem); + listTemplate.push(column); + return column; + } + _processAxisRange(axisRange) { + super._processAxisRange(axisRange); + axisRange.columns = new ListTemplate(Template.new({}), () => RoundedRectangle._new(this._root, { + position: "absolute", + themeTags: mergeTags(axisRange.columns.template.get("themeTags", []), ["series", "column"]) + }, [this.columns.template, axisRange.columns.template])); + } + _beforeColumnsDraw() { + this.allColumnsData = []; + } + _afterColumnsDraw() { + if (this.get("turboMode")) { + this.allColumns.set("draw", (display) => { + display.clear(); + each(this.allColumnsData, (column) => { + const w = column.width; + const h = column.height; + const x = column.x; + const y = column.y; + const stroke = column.stroke; + const fill = column.fill; + const strokeWidth = column.strokeWidth; + const strokeOpacity = column.strokeOpacity; + const fillOpacity = column.fillOpacity; + display.beginFill(fill, fillOpacity); + display.beginPath(); + display.lineStyle(strokeWidth, stroke, strokeOpacity); + display.drawRect(x, y, w, h); + display.endStroke(); + display.endFill(); + }); + }); + } + } + _updateChildren() { + if (this.isDirty("turboMode")) { + this.markDirtyValues(); + if (!this.get("turboMode")) { + this.allColumns.set("draw", void 0); + } + } + super._updateChildren(); + } + _updateSeriesGraphics(dataItem, graphics, l, r, t, b, fitW, fitH) { + if (this.get("turboMode")) { + graphics.virtualParent = this.chart; + if (graphics.parent) { + this.mainContainer.children.removeValue(graphics); + graphics._parent = void 0; + } + const stroke = graphics.get("stroke"); + const fillOpacity = graphics.get("fillOpacity", 1); + const strokeOpacity = graphics.get("strokeOpacity", 1); + const strokWidth = graphics.get("strokeWidth", 1); + const fill = graphics.get("fill"); + const ptl = this.getPoint(l, t); + const pbr = this.getPoint(r, b); + const tooltipPoint = dataItem.get("point"); + if (tooltipPoint) { + const point = this.getPoint(tooltipPoint.x, tooltipPoint.y); + tooltipPoint.x = point.x + this._x; + tooltipPoint.y = point.y + this._y; + } + l = ptl.x; + r = pbr.x; + t = ptl.y; + b = pbr.y; + dataItem.setRaw("left", l); + dataItem.setRaw("right", r); + dataItem.setRaw("top", t); + dataItem.setRaw("bottom", b); + this.allColumnsData.push({ width: r - l, height: b - t, x: l, y: t, stroke, fill, strokeWidth: strokWidth, strokeOpacity, fillOpacity }); + } else { + if (!graphics.parent) { + this.mainContainer.children.push(graphics); + } + super._updateSeriesGraphics(dataItem, graphics, l, r, t, b, fitW, fitH); + } + } + }; + ColumnSeries.className = "ColumnSeries"; + ColumnSeries.classNames = BaseColumnSeries.classNames.concat([ColumnSeries.className]); + + // node_modules/@amcharts/amcharts5/.internal/themes/AnimatedTheme.js + var AnimatedTheme = class extends Theme { + setupDefaultRules() { + super.setupDefaultRules(); + this.rule("Component").setAll({ + interpolationDuration: 600 + }); + this.rule("Hierarchy").set("animationDuration", 600); + this.rule("Scrollbar").set("animationDuration", 600); + this.rule("Tooltip").set("animationDuration", 300); + this.rule("MapChart").set("animationDuration", 1e3); + this.rule("MapChart").set("wheelDuration", 300); + this.rule("Entity").setAll({ + stateAnimationDuration: 600 + }); + this.rule("Sprite").states.create("default", { stateAnimationDuration: 600 }); + this.rule("Tooltip", ["axis"]).setAll({ + animationDuration: 200 + }); + this.rule("WordCloud").set("animationDuration", 500); + this.rule("Polygon").set("animationDuration", 600); + this.rule("ArcDiagram").set("animationDuration", 600); + } + }; + + // node_modules/@amcharts/amcharts5/themes/Animated.js + var Animated_default = AnimatedTheme; + +// .build_tmp/scatter_3_xy-dumbbell_plot/index.ts + var __seed = 639917039; + function __seededRandom() { + __seed = __seed * 1664525 + 1013904223 >>> 0; + return __seed / 4294967296; + } + var root = Root.new("chartdiv"); + root.setThemes([ + Animated_default.new(root) + ]); + var chart = root.container.children.push(XYChart.new(root, { + panX: true, + panY: true, + wheelX: "panX", + wheelY: "zoomX" + })); + chart.get("colors").set("step", 3); + var cursor = chart.set("cursor", XYCursor.new(root, {})); + cursor.lineY.set("visible", false); + var xRenderer = AxisRendererX.new(root, { + minGridDistance: 30, + minorGridEnabled: true + }); + xRenderer.labels.template.setAll({ + rotation: -90, + centerY: p50, + centerX: 0 + }); + var xAxis = chart.xAxes.push(CategoryAxis.new(root, { + maxDeviation: 0.3, + categoryField: "category", + renderer: xRenderer, + tooltip: Tooltip.new(root, {}) + })); + var yAxis = chart.yAxes.push(ValueAxis.new(root, { + maxDeviation: 0.3, + renderer: AxisRendererY.new(root, {}) + })); + var series = chart.series.push(ColumnSeries.new(root, { + name: "Series 1", + xAxis, + yAxis, + valueYField: "close", + openValueYField: "open", + categoryXField: "category", + tooltip: Tooltip.new(root, { + labelText: "{openValueY} - {valueY}" + }) + })); + series.columns.template.setAll({ + width: 0.5 + }); + series.bullets.push(function() { + return Bullet.new(root, { + locationY: 0, + sprite: Circle.new(root, { + radius: 5, + fill: series.get("fill") + }) + }); + }); + var nextColor = chart.get("colors").getIndex(1); + series.bullets.push(function() { + return Bullet.new(root, { + locationY: 1, + sprite: Circle.new(root, { + radius: 5, + fill: nextColor + }) + }); + }); + var data = []; + var open = 100; + var close = 120; + var names = [ + "Raina", + "Demarcus", + "Carlo", + "Jacinda", + "Richie", + "Antony", + "Amada", + "Idalia", + "Janella", + "Marla", + "Curtis", + "Shellie", + "Meggan", + "Nathanael", + "Jannette", + "Tyrell", + "Sheena", + "Maranda", + "Briana", + "Rosa", + "Rosanne", + "Herman", + "Wayne", + "Shamika", + "Suk", + "Clair", + "Olivia", + "Hans", + "Glennie" + ]; + for (i = 0; i < names.length; i++) { + open += Math.round((__seededRandom() < 0.5 ? 1 : -1) * __seededRandom() * 5); + close = open + Math.round(__seededRandom() * 10) + 3; + data.push({ + category: names[i], + open, + close + }); + } + var i; + xAxis.data.setAll(data); + series.data.setAll(data); + series.appear(1e3); + chart.appear(1e3, 100); +})(); diff --git a/web/amCharts/scatter/chart_0059_scatter.html b/web/amCharts/scatter/chart_0059_scatter.html new file mode 100644 index 0000000000000000000000000000000000000000..6101148295957023c105c0803f3ba41aac637152 --- /dev/null +++ b/web/amCharts/scatter/chart_0059_scatter.html @@ -0,0 +1,759 @@ + + + + + + Motion Chart + + + +
+ + + + + + + + diff --git a/web/amCharts/scatter/chart_0059_scatter.inline01.js b/web/amCharts/scatter/chart_0059_scatter.inline01.js new file mode 100644 index 0000000000000000000000000000000000000000..3fe3e3caca2e468e70f044c7aaeaa49dfcb8d974 --- /dev/null +++ b/web/amCharts/scatter/chart_0059_scatter.inline01.js @@ -0,0 +1,2 @@ +!function(){var t,e,i,s,n,r={3145:function(t,e,i){"use strict";i.d(e,{UZ:function(){return r},cP:function(){return n},f_:function(){return o},i_:function(){return s}});const s=new class{constructor(){this.version="5.16.0",this.licenses=[],this.entitiesById={},this.rootElements=[],this.autoDispose=!1}};function n(t){s.licenses.push(t)}function r(){let t;for(;t=s.rootElements.pop();)t.dispose()}function o(t){let e;return s.rootElements.forEach((i=>{i.dom.id==t&&(e=i)})),e}},2855:function(t,e,i){"use strict";i.d(e,{f:function(){return F}});var s=i(6490),n=i(8777),r=i(2036),o=i(4431),a=i(1706),h=i(6881),l=i(7449),c=i(5071),u=i(7652);class d{constructor(){this._targets=[],this._observer=new ResizeObserver((t=>{c.each(t,(t=>{c.each(this._targets,(e=>{e.target===t.target&&e.callback()}))}))}))}addTarget(t,e){this._observer.observe(t,{box:"border-box"}),this._targets.push({target:t,callback:e})}removeTarget(t){this._observer.unobserve(t),c.keepIf(this._targets,(e=>e.target!==t))}}class p{constructor(){this._timer=null,this._targets=[]}addTarget(t,e){if(null===this._timer){let t=null;const e=()=>{const i=Date.now();(null===t||i>t+p.delay)&&(t=i,c.each(this._targets,(t=>{let e=t.target.getBoundingClientRect();e.width===t.size.width&&e.height===t.size.height||(t.size=e,t.callback())}))),0===this._targets.length?this._timer=null:this._timer=requestAnimationFrame(e)};this._timer=requestAnimationFrame(e)}this._targets.push({target:t,callback:e,size:{width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0}})}removeTarget(t){c.keepIf(this._targets,(e=>e.target!==t)),0===this._targets.length&&null!==this._timer&&(cancelAnimationFrame(this._timer),this._timer=null)}}p.delay=200;let g=null;class f{constructor(t,e){this._disposed=!1,this._sensor=(null===g&&(g="undefined"!=typeof ResizeObserver?new d:new p),g),this._element=t,this._listener=u.onZoom(e),this._sensor.addTarget(t,e)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}var _=i(9821),m=i(1479),y=i(7142),v=i(2876),w=i(780),b=i(6460),x=i(798),D=i(6331),k=i(256),T=i(3100);class M extends D.JH{_setDefaults(){this.setPrivate("defaultLocale",T.Z),super._setDefaults()}translate(t,e,...i){e||(e=this._root.locale||this.getPrivate("defaultLocale"));let s=t,n=e[t];if(null===n)s="";else if(null!=n)n&&(s=n);else if(e!==this.getPrivate("defaultLocale"))return this.translate(t,this.getPrivate("defaultLocale"),...i);if(i.length)for(let t=i.length,e=0;e{this.setTranslationAny(t,i,e)}))}translateEmpty(t,e,...i){let s=this.translate(t,e,...i);return s==t?"":s}translateFunc(t,e){return this._root.locale[t]?this._root.locale[t]:e!==this.getPrivate("defaultLocale")?this.translateFunc(t,this.getPrivate("defaultLocale")):()=>""}translateAll(t,e){return this.isDefault()?t:c.map(t,(t=>this.translate(t,e)))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}var E=i(9770),O=i(3783),P=i(4102),S=i(6245),N=i(1112),C=i(2132),L=i(3145),A=i(3540),R=i(5040),U=i(9395);function B(t,e){null==t?requestAnimationFrame(e):setTimeout((()=>{requestAnimationFrame(e)}),1e3/t)}class F{constructor(t,e={},i){if(this._isDirty=!1,this._isDirtyParents=!1,this._isDirtyAnimation=!1,this._dirty={},this._dirtyParents={},this._dirtyBounds={},this._dirtyPositions={},this._ticker=null,this._tickers=[],this._updateTick=!0,this.skipRenderFrame=!1,this.events=new E.p,this.animationTime=null,this._animations=[],this.language=M.new(this,{}),this.locale=T.Z,this.utc=!1,this.numberFormatter=w.e.new(this,{}),this.dateFormatter=b.C.new(this,{}),this.durationFormatter=x.$.new(this,{}),this.tabindex=0,this._tabindexes=[],this._a11yD=!1,this._focusElementDirty=!1,this._skipNextGroupJump=!0,this.verticalLayout=a.Z.new(this,{}),this.horizontalLayout=o.G.new(this,{}),this.gridLayout=h.M.new(this,{}),this._paused=!1,this.autoResize=!0,this._fontHash="",this._isDisposed=!1,this._disposers=[],this._tooltips=[],this._htmlEnabledContainers=[],this.entitiesById={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");let s,n;if(this._settings=e,0==e.accessible&&(this._a11yD=!0),null==e.useSafeResolution&&(e.useSafeResolution=!0),e.useSafeResolution&&(s=u.getSafeResolution()),this._renderer=new P.uK(s),n=t instanceof HTMLElement?t:document.getElementById(t),c.each(L.i_.rootElements,(t=>{if(t.dom===n){if(!L.i_.autoDispose)throw new Error("You cannot have multiple Roots on the same DOM node");t.dispose()}})),this.interfaceColors=_.v.new(this,{}),null===n)throw new Error("Could not find HTML element with id `"+t+"`");this.dom=n;let r=document.createElement("div");r.style.position="relative",r.style.width="100%",r.style.height="100%",n.appendChild(r);const l=e.tooltipContainerBounds;l&&(this._tooltipContainerSettings=l),this._inner=r,this._updateComputedStyles(),L.i_.rootElements.push(this)}static new(t,e){const i=new F(t,e,!0);return i._init(),i}moveDOM(t){let e;if(e=t instanceof HTMLElement?t:document.getElementById(t),e){for(;this.dom.childNodes.length>0;)e.appendChild(this.dom.childNodes[0]);this.dom=e,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const t=this.dom.offsetWidth,e=this.dom.offsetHeight;t<=150||e<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const t=this.tooltipContainer.children.push(n.W.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:(0,S.aQ)(100),centerY:S.AQ,tooltipY:10,tooltipText:"Created using amCharts 5",tooltipX:S.AQ,cursorOverStyle:"pointer",background:y.A.new(this,{fill:(0,N.$_)(4671320),fillOpacity:0,tooltipY:5})}));t.set("tooltip",this.systemTooltip),t.events.on("click",(()=>{window.open("https://www.amcharts.com/","_blank")})),t.states.create("hover",{});const e=t.children.push(m.T.new(this,{stroke:(0,N.$_)(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6",dx:-50,strokeOpacity:0}));e.states.create("hover",{stroke:(0,N.$_)(3976191)});const i=t.children.push(m.T.new(this,{stroke:(0,N.$_)(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0",dx:50,strokeOpacity:0})),s=U.out(U.cubic),r=1500;t.setTimeout((()=>{i.animate({key:"strokeOpacity",to:1,duration:r,easing:s}),i.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"strokeOpacity",to:1,duration:r,easing:s})}),3e3),i.states.create("hover",{stroke:(0,N.$_)(4671320)}),this._logo=t,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(t){return this._settings.calculateSize?this._settings.calculateSize(t):{width:t.width,height:t.height}}_init(){const t=this._settings;!1!==t.accessible&&(t.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),t.ariaLabel&&this._inner.setAttribute("aria-label",t.ariaLabel),t.role&&this._inner.setAttribute("role",t.role));const e=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),r=Math.floor(s.width),o=Math.floor(s.height),a=Math.floor(i.width),h=Math.floor(i.height),l=n.W.new(this,{visible:!0,width:r,height:o});this._rootContainer=l,this._rootContainer._defaultThemes.push(O.X.new(this));const c=l.children.push(n.W.new(this,{visible:!0,width:S.AQ,height:S.AQ}));this.container=c,e.resize(a,h,r,o),this._inner.appendChild(e.view),this._initResizeSensor();const d=document.createElement("div");if(this._htmlElementContainer=d,d.className="am5-html-container",d.style.position="absolute",d.style.pointerEvents="none",this._tooltipContainerSettings||(d.style.overflow="hidden"),this._inner.appendChild(d),!0!==this._a11yD){const t=document.createElement("div");t.className="am5-reader-container",t.setAttribute("role","alert"),t.style.position="absolute",t.style.width="1px",t.style.height="1px",t.style.overflow="hidden",t.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=t,this._inner.appendChild(this._readerAlertElement);const i=document.createElement("div");i.className="am5-focus-container",i.style.position="absolute",i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.width=r+"px",i.style.height=o+"px",i.setAttribute("role","graphics-document"),u.setInteractive(i,!1),this._focusElementContainer=i,this._inner.appendChild(this._focusElementContainer);const s=document.createElement("div");this._tooltipElementContainer=s,s.className="am5-tooltip-container",this._inner.appendChild(s),u.supports("keyboardevents")&&(this._disposers.push(u.addEventListener(window,"keydown",(t=>{const e=u.getEventKey(t);"Shift"==e?this._isShift=!0:"Tab"==e&&(this._isShift=t.shiftKey)}))),this._disposers.push(u.addEventListener(window,"keyup",(t=>{"Shift"==u.getEventKey(t)&&(this._isShift=!1)}))),this._disposers.push(u.addEventListener(i,"click",(()=>{const t=this._focusedSprite;if(t){const i=t.get("clickAnnounceText","");""!==i&&this.readerAlert(i);const s=e.getEvent(new MouseEvent("click"));t.events.dispatch("click",{type:"click",originalEvent:s.event,point:s.point,simulated:!0,target:t})}}))),this._disposers.push(u.addEventListener(i,"keydown",(t=>{const i=this._focusedSprite;if(i){"Escape"==t.key&&(u.blur(),this._focusedSprite=void 0);let s=0,n=0;const r=u.getEventKey(t);switch(r){case"Enter":case" ":const o=i.get("clickAnnounceText","");if(""!==o&&this.readerAlert(o)," "==r&&"checkbox"!=i.get("role"))return;t.preventDefault();const a=e.getEvent(new MouseEvent("mouse"));return void i.events.dispatch("click",{type:"click",originalEvent:a.event,point:a.point,simulated:!0,target:i});case"ArrowLeft":s=-6;break;case"ArrowRight":s=6;break;case"ArrowUp":n=-6;break;case"ArrowDown":n=6;break;default:return}if(0!=s||0!=n){if(t.preventDefault(),!i.isDragging()){this._keyboardDragPoint={x:0,y:0};const t=e.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));t.point={x:0,y:0},i.events.isEnabled("pointerdown")&&i.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:t.event,point:t.point,simulated:!0,target:i})}const r=this._keyboardDragPoint;r.x+=s,r.y+=n;const o=e.getEvent(new MouseEvent("mousemove",{clientX:r.x,clientY:r.y}),!1);i.events.isEnabled("globalpointermove")&&i.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:o.event,point:o.point,simulated:!0,target:i})}}}))),this._disposers.push(u.addEventListener(i,"keyup",(t=>{if(this._focusedSprite){const i=this._focusedSprite,s=u.getEventKey(t);switch(s){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(i.isDragging()){const t=this._keyboardDragPoint,s=e.getEvent(new MouseEvent("mouseup",{clientX:t.x,clientY:t.y}));return i.events.isEnabled("globalpointerup")&&i.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:s.event,point:s.point,simulated:!0,target:i}),void(this._keyboardDragPoint=void 0)}if(i.get("focusableGroup")){const t=i.get("focusableGroup"),e=this._tabindexes.filter((e=>!(e.get("focusableGroup")!=t||!1===e.getPrivate("focusable")||!e.isVisibleDeep())));let n=e.indexOf(i);const r=e.length-1;n+="ArrowRight"==s||"ArrowDown"==s?1:-1,n<0?n=r:n>r&&(n=0),u.focus(e[n].getPrivate("focusElement").dom)}break;case"Tab":const t=i.get("focusableGroup");if(t&&this._isShift)return void(this._skipNextGroupJump||(this._focusNext(i.getPrivate("focusElement").dom,-1,t),this._skipNextGroupJump=!0))}}}))))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}get systemTooltip(){if(!this._systemTooltip){const t=v.u.new(this,{themeTags:["system"]});this._systemTooltip=t}return this._systemTooltip}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new f(this.dom,(()=>{this.autoResize&&this.resize()})),this._disposers.push(this._resizeSensorDisposer)}resize(){const t=this._getRealSize(),e=this._getCalculatedSize(t),i=Math.floor(e.width),s=Math.floor(e.height);if(i>0&&s>0){const e=Math.floor(t.width),n=Math.floor(t.height),r=this._htmlElementContainer;if(r.style.width=i+"px",r.style.height=s+"px",!0!==this._a11yD){const t=this._focusElementContainer;t.style.width=i+"px",t.style.height=s+"px"}this._renderer.resize(e,n,i,s);const o=this._rootContainer;o.setPrivate("width",i),o.setPrivate("height",s),this._render(),this._handleLogo()}}_render(){this.skipRenderFrame?this.skipRenderFrame=!1:(this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1))}_runTickers(t){c.each(this._tickers,(e=>{e(t)}))}_runAnimations(t){let e=0;return c.keepIf(this._animations,(i=>{const n=i._runAnimation(t);return n!==s.SR.Stopped&&(n!==s.SR.Playing||(++e,!0))})),this._isDirtyAnimation=!1,0===e}_runDirties(){let t={};for(;this._isDirtyParents;)this._isDirtyParents=!1,k.entries(this._dirtyParents).forEach((([e,i])=>{delete this._dirtyParents[e],i.isDisposed()||(t[i.uid]=i,i._prepareChildren())}));k.entries(t).forEach((([t,e])=>{e._updateChildren()}));const e=[];k.entries(this._dirty).forEach((([t,i])=>{i.isDisposed()?delete this._dirty[t]:(e.push(i),i._beforeChanged())})),e.forEach((t=>{t._changed(),delete this._dirty[t.uid],t._clearDirty()})),this._isDirty=!1;const i={},s=[];k.entries(this._dirtyBounds).forEach((([t,e])=>{delete this._dirtyBounds[t],e.isDisposed()||(i[e.uid]=e.depth(),s.push(e))})),this._positionHTMLElements(),s.sort(((t,e)=>A.qu(i[e.uid],i[t.uid]))),s.forEach((t=>{t._updateBounds()}));const n=this._dirtyPositions;k.entries(n).forEach((([t,e])=>{delete n[t],e.isDisposed()||e._updatePosition()})),e.forEach((t=>{t._afterChanged()})),k.entries(t).forEach((([t,e])=>{e._childrenPrep=!1,e._childrenUpdt=!1}))}_renderFrame(t){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:t}),this._checkComputedStyles(),this._runTickers(t);const e=this._runAnimations(t);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:t}),0===this._tickers.length&&e&&!this._isDirtyAnimation&&!this._isDirty}return!0}_runTicker(t,e){this.isDisposed()||(this.animationTime=t,this._renderFrame(t)?(this._ticker=null,this.animationTime=null):this._paused||(e?this._ticker:B(this.fps,this._ticker)))}_runTickerNow(t=1e4){if(!this.isDisposed()){const e=performance.now()+t;for(;;){const t=performance.now();if(t>=e){this.animationTime=null;break}if(this.animationTime=t,this._renderFrame(t)){this.animationTime=null;break}}}}_startTicker(){null===this._ticker&&(this.animationTime=null,this._ticker=t=>{this._runTicker(t)},B(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(t){this._updateTick=t,t&&this._startTicker()}_addDirtyEntity(t){this._isDirty=!0,void 0===this._dirty[t.uid]&&(this._dirty[t.uid]=t),this._startTicker()}_addDirtyParent(t){this._isDirty=!0,this._isDirtyParents=!0,void 0===this._dirtyParents[t.uid]&&(this._dirtyParents[t.uid]=t),this._startTicker()}_addDirtyBounds(t){this._isDirty=!0,void 0===this._dirtyBounds[t.uid]&&(this._dirtyBounds[t.uid]=t),this._startTicker()}_addDirtyPosition(t){this._isDirty=!0,void 0===this._dirtyPositions[t.uid]&&(this._dirtyPositions[t.uid]=t),this._startTicker()}_addAnimation(t){this._isDirtyAnimation=!0,-1===this._animations.indexOf(t)&&this._animations.push(t),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",(()=>{this._isDirty=!0,this._startTicker()}))}eachFrame(t){return this._tickers.push(t),this._startTicker(),new l.ku((()=>{c.removeFirst(this._tickers,t)}))}markDirtyGlobal(t){t||(t=this.container),t.walkChildren((t=>{t instanceof n.W&&this.markDirtyGlobal(t),t.markDirty(),t.markDirtyBounds()}))}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),c.each(this._disposers,(t=>{t.dispose()})),this._inner&&u.removeElement(this._inner),c.remove(L.i_.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(t){if(!0!==this._a11yD){const e=this._readerAlertElement;t=u.stripTags(t),e.innerHTML==t&&(e.innerHTML=""),e.innerHTML=t}}setThemes(t){this._rootContainer.set("themes",t);const e=this.tooltipContainer;e&&e._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const t=this._tooltipContainerSettings,e=this._rootContainer.children.push(n.W.new(this,{position:"absolute",isMeasured:!1,width:S.AQ,height:S.AQ,layer:t?35:30,layerMargin:t||void 0}));this.tooltipContainer=e;const i=v.u.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(t){1!=this._a11yD&&(t.get("focusable")?c.pushOne(this._tabindexes,t):c.remove(this._tabindexes,t),this._invalidateTabindexes())}_unregisterTabindexOrder(t){1!=this._a11yD&&(c.remove(this._tabindexes,t),this._invalidateTabindexes())}_invalidateTabindexes(){if(1==this._a11yD)return;this._tabindexes.sort(((t,e)=>{const i=t.get("tabindexOrder",0),s=e.get("tabindexOrder",0);return i==s?0:i>s?1:-1}));const t=[];c.each(this._tabindexes,((e,i)=>{e.getPrivate("focusElement")?this._moveFocusElement(i,e):this._makeFocusElement(i,e);const s=e.get("focusableGroup");s&&!1!==e.getPrivate("focusable")&&(-1!==t.indexOf(s)?e.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):t.push(s))}))}_updateCurrentFocus(){1!=this._a11yD&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(t,e){if(1==this._a11yD)return;if(e||(e=t.getPrivate("focusElement").dom),!e)return;const i=t.get("role");i?e.setAttribute("role",i):e.removeAttribute("role");const s=t.get("ariaLabel");if(s){const i=(0,C.q)(t,s);e.setAttribute("aria-label",i)}else e.removeAttribute("aria-label");const n=t.get("ariaLive");n?e.setAttribute("aria-live",n):e.removeAttribute("aria-live");const r=t.get("ariaChecked");null!=r&&i&&-1!==["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)?e.setAttribute("aria-checked",r?"true":"false"):e.removeAttribute("aria-checked");const o=t.get("ariaCurrent");null!=o?e.setAttribute("aria-current",o):e.removeAttribute("aria-current");const a=t.get("ariaSelected");null!=a&&i&&-1!==["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)?e.setAttribute("aria-selected",a?"true":"false"):e.removeAttribute("aria-selected"),t.get("ariaHidden")?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden");const h=t.get("ariaOrientation");h?e.setAttribute("aria-orientation",h):e.removeAttribute("aria-orientation");const l=t.get("ariaValueNow");l?e.setAttribute("aria-valuenow",l):e.removeAttribute("aria-valuenow");const c=t.get("ariaValueMin");c?e.setAttribute("aria-valuemin",c):e.removeAttribute("aria-valuemin");const u=t.get("ariaValueMax");u?e.setAttribute("aria-valuemax",u):e.removeAttribute("aria-valuemax");const d=t.get("ariaValueText");d?e.setAttribute("aria-valuetext",d):e.removeAttribute("aria-valuetext");const p=t.get("ariaControls");p?e.setAttribute("aria-controls",p):e.removeAttribute("aria-controls"),t.get("visible")&&0!==t.get("opacity")&&"tooltip"!=t.get("role")&&!t.isHidden()&&!1!==t.getPrivate("focusable")&&(t.height()||t.width())?("-1"!=e.getAttribute("tabindex")&&e.setAttribute("tabindex",""+this.tabindex),e.removeAttribute("aria-hidden")):(e.removeAttribute("tabindex"),e.setAttribute("aria-hidden","true"))}_makeFocusElement(t,e){if(e.getPrivate("focusElement")||1==this._a11yD)return;const i=document.createElement("div");"tooltip"!=e.get("role")&&(i.tabIndex=this.tabindex),i.style.position="absolute",u.setInteractive(i,!1);const s=[];e.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(e),s.push(u.addEventListener(i,"focus",(t=>{this._handleFocus(t)}))),s.push(u.addEventListener(i,"blur",(t=>{this._handleBlur(t)}))),this._moveFocusElement(t,e)}_removeFocusElement(t){if(1==this._a11yD)return;c.remove(this._tabindexes,t);const e=t.getPrivate("focusElement");e&&(this._focusElementContainer.removeChild(e.dom),c.each(e.disposers,(t=>{t.dispose()})))}_hideFocusElement(t){1!=this._a11yD&&(t.getPrivate("focusElement").dom.style.display="none")}_moveFocusElement(t,e){if(1==this._a11yD)return;const i=this._focusElementContainer,s=e.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[t])return;const n=this._focusElementContainer.children[t+1];n?i.insertBefore(s,n):i.append(s)}_positionFocusElement(t){if(1==this._a11yD||null==t)return;this._focusElementContainer.scrollTop=0;const e=t.globalBounds();let i=e.right==e.left?t.width():e.right-e.left,s=e.top==e.bottom?t.height():e.bottom-e.top;const n=void 0!==this._settings.focusPadding?this._settings.focusPadding:2;let r=e.left-n,o=e.top-n;i<0&&(r+=i,i=Math.abs(i)),s<0&&(o+=s,s=Math.abs(s));const a=t.getPrivate("focusElement").dom;a.style.top=o+"px",a.style.left=r+"px",a.style.width=i+2*n+"px",a.style.height=s+2*n+"px"}_getSpriteByFocusElement(t){let e;return c.eachContinue(this._tabindexes,((i,s)=>i.getPrivate("focusElement").dom!==t||(e=i,!1))),e}_handleFocus(t){if(1==this._a11yD)return;const e=this._getSpriteByFocusElement(t.target);e&&(e.isVisibleDeep()?(this._positionFocusElement(e),this._focusedSprite=e,e.events.isEnabled("focus")&&e.events.dispatch("focus",{type:"focus",originalEvent:t,target:e}),-1==e.getPrivate("focusElement").dom.tabIndex&&(this._skipNextGroupJump=!1)):this._focusNext(t.target,this._isShift?-1:1))}_focusNext(t,e,i){if(1==this._a11yD)return;const s=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(",")));let n=s.indexOf(t)+e;n<0?n=s.length-1:n>=s.length&&(n=0);const r=s[n];if(i&&-1==e){const t=this._getSpriteByFocusElement(r);if(t&&t.get("focusableGroup")==i)return void this._focusNext(r,e)}r.focus()}_handleBlur(t){if(1==this._a11yD)return;const e=this._focusedSprite;e&&!e.isDisposed()&&e.events.isEnabled("blur")&&e.events.dispatch("blur",{type:"blur",originalEvent:t,target:e}),this._focusedSprite=void 0}updateTooltip(t){if(1==this._a11yD)return;const e=u.stripTags(t._getText());let i=t.getPrivate("tooltipElement");"tooltip"==t.get("role")&&""!=e?(i||(i=this._makeTooltipElement(t)),i.innerHTML!=e&&(i.innerHTML=e),i.setAttribute("aria-hidden",t.isVisibleDeep()?"false":"true")):i&&(i.remove(),t.removePrivate("tooltipElement"))}_makeTooltipElement(t){const e=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",u.setInteractive(i,!1),this._decorateFocusElement(t,i),e.append(i),t.setPrivate("tooltipElement",i),i}_removeTooltipElement(t){if(1==this._a11yD)return;const e=t.getPrivate("tooltipElement");if(e){const t=e.parentElement;t&&t.removeChild(e)}}_invalidateAccessibility(t){if(1==this._a11yD)return;this._focusElementDirty=!0;const e=t.getPrivate("focusElement");t.get("focusable")?e&&(this._decorateFocusElement(t),this._positionFocusElement(t)):e&&this._removeFocusElement(t)}focused(t){return this._focusedSprite===t}documentPointToRoot(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:(t.x-e.left)*s,y:(t.y-e.top)*n}}rootPointToDocument(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:t.x/s+e.left,y:t.y/n+e.top}}addDisposer(t){return this._disposers.push(t),t}_updateComputedStyles(){const t=window.getComputedStyle(this.dom);let e="";k.each(t,((t,i)=>{R.isString(t)&&t.match(/^font/)&&(e+=i)}));const i=e!=this._fontHash;return i&&(this._fontHash=e),i}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(t){t instanceof n.W?t.children.each((t=>{this._invalidateLabelBounds(t)})):t instanceof r.x&&t.markDirtyBounds()}_hasLicense(){for(let t=0;t{if(t.get("verticalScrollbar"))return r=!0,s=t,!1})),r&&(n=document.createElement("div"),t.setPrivate("htmlElementWrapper",n),t.setPrivate("wrapperContainer",s),n.style.position="absolute",n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",s.events.on("boundschanged",(()=>{this._positionHTMLElement(t)}))),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",u.setInteractive(i,t.get("interactive",!1)),t.events.isEnabled("click")&&(u.setInteractive(i,!0),this._disposers.push(u.addEventListener(i,"click",(e=>{const i=this._renderer.getEvent(e);t.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))),this._positionHTMLElement(t),r?(n.append(i),e.append(n)):e.append(i),c.pushOne(this._htmlEnabledContainers,t),i}_positionHTMLElements(){c.each(this._htmlEnabledContainers,(t=>{this._positionHTMLElement(t)}))}_positionHTMLElement(t){const e=t.getPrivate("htmlElementWrapper");if(e){const i=t.getPrivate("wrapperContainer");if(i){const t=i.globalBounds();e.style.clipPath="rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"}}const i=t.getPrivate("htmlElement");if(i){const e=["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"];c.each(e,(e=>{const s=t.get(e);i.style[e]=s?s+"px":""}));const s=["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"];c.each(s,(e=>{const s=t.get(e);s?"fontSize"!=e||R.isString(s)?i.style[e]=s+"":i.style[e]=s+"px":i.style[e]=""}));const n=t.compositeScale()||1,r=t.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";const o=t.compositeOpacity();setTimeout((()=>{i.style.opacity=o+""}),10);const a=t.isVisibleDeep();a&&(i.style.display="block");let h={x:t.x()+t.get("dx",0),y:t.y()+t.get("dy",0)};t.parent&&(h=t.parent.toGlobal(h)),i.style.top=h.y+"px",i.style.left=h.x+"px";const l=t.get("width"),u=t.get("height");let d=0,p=0;if(l&&(d=t.width()),u&&(p=t.height()),!l||!u){i.style.position="fixed",i.style.width="",i.style.height="";const e=i.getBoundingClientRect();i.style.position="absolute",l||(d=e.width),u||(p=e.height);let s=d/n,r=p/n,o=t.get("centerX",0),a=t.get("centerY",0),h=0,c=0,g=0,f=0;o instanceof S.gG?(h=-o.value*s,c=(1-o.value)*s):(h=-o,c=s-o),a instanceof S.gG?(g=-a.value*r,f=(1-a.value)*r):(g=-a,f=r-a),t._localBounds={left:h,right:c,top:g,bottom:f};let _=t._adjustedLocalBounds,m=t._display.getAdjustedBounds(t._localBounds);t._adjustedLocalBounds=m,_.left===m.left&&_.right===m.right&&_.top===m.top&&_.bottom===m.bottom||t.markDirtyBounds()}d>0&&(i.style.minWidth=d+"px"),p>0&&(i.style.minHeight=p+"px"),a&&0!=o||(i.style.display="none");const g=t.get("centerX",0),f=(0,S.hU)(g)?g.percent+"%":g+"px",_=t.get("centerY",0),m=(0,S.hU)(_)?_.percent+"%":_+"px";(g||_)&&(i.style.transform="translate(-"+f+", -"+m+")"+i.style.transform),1!=n&&(i.style.transform+="scale("+n+")"),0!=r&&(i.style.transform+=" rotate("+r+"deg)"),""!=i.style.transform&&(i.style.transformOrigin=f+" "+m)}}_setHTMLContent(t,e){let i=t.getPrivate("htmlElement");i||(i=this._makeHTMLElement(t),this.autoResize||this.resize()),i.innerHTML!=e&&(i.innerHTML=e)}_removeHTMLContent(t){const e=t.getPrivate("htmlElementWrapper"),i=t.getPrivate("htmlElement");e?(this._htmlElementContainer.removeChild(e),t.removePrivate("htmlElement"),t.removePrivate("htmlElementWrapper"),t.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),t.removePrivate("htmlElement"),t.removePrivate("wrapperContainer")),c.remove(this._htmlEnabledContainers,t)}}},3409:function(t,e,i){"use strict";i.d(e,{Q:function(){return o}});var s=i(5769),n=i(3540),r=i(5071);class o{constructor(t,e){if(this._rules={},this._root=t,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(t){const e=new this(t,!0);return e.setupDefaultRules(),e}setupDefaultRules(){}_lookupRules(t){return this._rules[t]}ruleRaw(t,e=[]){let i=this._rules[t];i||(i=this._rules[t]=[]),e.sort(n.qu);const{index:o,found:a}=r.getSortedIndex(i,(t=>{const i=n.qu(t.tags.length,e.length);return 0===i?n.wq(t.tags,e,n.qu):i}));if(a)return i[o].template;{const t=s.YS.new({});return i.splice(o,0,{tags:e,template:t}),t}}rule(t,e=[]){return this.ruleRaw(t,e)}}},5108:function(t,e,i){"use strict";i.d(e,{g:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){const t=this.get("sprite");t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}}n.className="Bullet",n.classNames=s.JH.classNames.concat([n.className])},8054:function(t,e,i){"use strict";i.d(e,{z:function(){return o}});var s=i(3497),n=i(8777),r=i(7652);class o extends n.W{_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",s.c.new(this._root,{themeTags:r.mergeTags(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const t=this._prevSettings.icon,e=this.get("icon");e!==t&&(this._disposeProperty("icon"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.icon=e)}if(this.isDirty("label")){const t=this._prevSettings.label,e=this.get("label");e!==t&&(this._disposeProperty("label"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.label=e)}}}o.className="Button",o.classNames=n.W.classNames.concat([o.className])},1337:function(t,e,i){"use strict";i.d(e,{k:function(){return r}});var s=i(8777),n=i(6245);class r extends s.W{constructor(){super(...arguments),this.chartContainer=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,interactiveChildren:!1})),this.bulletsContainer=s.W.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:n.AQ,height:n.AQ})}}r.className="Chart",r.classNames=s.W.classNames.concat([r.className])},8035:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,Math.abs(this.get("radius",10)))}}n.className="Circle",n.classNames=s.T.classNames.concat([n.className])},9361:function(t,e,i){"use strict";i.d(e,{w:function(){return c},z:function(){return l}});var s=i(7582),n=i(6331),r=i(8777),o=i(9582),a=i(5071),h=i(256);class l extends n.Zr{constructor(t,e,i){super(i),this.dataContext=e,this.component=t,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(t){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,t)}hide(t){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,t)}isHidden(){return!this.get("visible")}}class c extends r.W{constructor(){super(...arguments),this._data=new o.k,this._dataItems=[],this._mainDataItems=this._dataItems,this.valueFields=[],this.fields=["id"],this._valuesDirty=!1,this._dataChanged=!1,this._dataGrouped=!1,this.inited=!1}set data(t){t.incrementRef(),this._data.decrementRef(),this._data=t}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((t=>{const e=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===t.type)a.each(e,(t=>{t.dispose()})),e.length=0,this._onDataClear();else if("push"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.push(i),this.processDataItem(i)}else if("setIndex"===t.type){const i=e[t.index],s=this._makeDataItem(t.newValue);i.bullets&&0==i.bullets.length&&(i.bullets=void 0),h.entries(s).forEach((([t,e])=>{i.get(t)!=e&&i.animate({key:t,to:e,duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})})),i.dataContext=t.newValue}else if("insertIndex"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.splice(t.index,0,i),this.processDataItem(i)}else if("removeIndex"===t.type)e[t.index].dispose(),e.splice(t.index,1);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");{const i=e[t.oldIndex];e.splice(t.oldIndex,1),e.splice(t.newIndex,0,i)}}this._afterDataChange()})))}_postUpdateData(){}updateData(t){let e=0;a.each(t,((t,i)=>{const s=this.dataItems[i];if(s){const e=s.dataContext;e&&h.entries(t).forEach((([t,i])=>{e[t]=i}));const i=this._makeDataItem(e);h.entries(i).forEach((([t,e])=>{var i;if(s.get(t)!=e){s.set(t,e);const n=null===(i=this._valueFieldsF[t])||void 0===i?void 0:i.workingKey;n&&s.set(n,e)}}))}else this.data.push(t);e=i}));for(let t=this.dataItems.length-1;t>e;t--){const e=this.dataItems[t];a.remove(this.dataItems,e),e.dispose()}this._postUpdateData()}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},a.each(this.valueFields,(t=>{this.get(t+"Field")&&(this._valueFields.push(t),this._valueFieldsF[t]={fieldKey:t+"Field",workingKey:t+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},a.each(this.fields,(t=>{this.get(t+"Field")&&(this._fields.push(t),this._fieldsF[t]=t+"Field")})))}get dataItems(){return this._dataItems}processDataItem(t){}_makeDataItem(t){const e={};return this._valueFields&&a.each(this._valueFields,(i=>{const s=this.get(this._valueFieldsF[i].fieldKey);e[i]=t[s],e[this._valueFieldsF[i].workingKey]=e[i]})),this._fields&&a.each(this._fields,(i=>{const s=this.get(this._fieldsF[i]);e[i]=t[s]})),e}makeDataItem(t,e){let i=new l(this,e,t);return this.processDataItem(i),i}pushDataItem(t,e){const i=this.makeDataItem(t,e);return this._mainDataItems.push(i),i}disposeDataItem(t){}showDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!0)}))}hideDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const t="datavalidated";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this._dataChanged=!1}if(this._valuesDirty){const t="valueschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.inited=!0}markDirtyValues(t){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}getDataItemById(t){return a.find(this.dataItems,(e=>e.get("id")==t))}}c.className="Component",c.classNames=r.W.classNames.concat([c.className])},2936:function(t,e,i){"use strict";i.d(e,{p:function(){return r}});var s=i(8054),n=i(7652);class r extends s.z{_afterNew(){super._afterNew(),this.addTag("confirm"),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{const e=n.getEventKey(t);this.get("active")&&"Escape"==e&&this._cancel()}))),this._disposers.push(n.addEventListener(document,"click",(()=>{this._ignoreClick||this._cancel(),this._ignoreClick=!1}))),this.events.on("click",(()=>{this.get("active")||(this._ignoreClick=!0),this._confirm()}))}_cancel(){this.get("active")&&(this.events.dispatch("cancelled",{type:"cancelled",target:this}),this.set("active",!1))}_confirm(){this.get("active")&&(this.events.dispatch("confirmed",{type:"confirmed",target:this}),this.set("active",!1),this.isFocus()&&this.setTimeout((()=>{this.set("active",!1),n.blur()}),10))}_prepareChildren(){super._prepareChildren()}}r.className="ConfirmButton",r.classNames=s.z.classNames.concat([r.className])},8777:function(t,e,i){"use strict";i.d(e,{W:function(){return f}});var s=i(7144),n=i(5071);class r extends s.aV{constructor(t){super(),this._disposed=!1,this._container=t,this._events=this.events.onAll((t=>{if("clear"===t.type)n.each(t.oldValues,(t=>{this._onRemoved(t)}));else if("push"===t.type)this._onInserted(t.newValue);else if("setIndex"===t.type)this._onRemoved(t.oldValue),this._onInserted(t.newValue,t.index);else if("insertIndex"===t.type)this._onInserted(t.newValue,t.index);else if("removeIndex"===t.type)this._onRemoved(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");this._onRemoved(t.value),this._onInserted(t.value,t.newIndex)}}))}_onInserted(t,e){t._setParent(this._container,!0);const i=this._container._childrenDisplay;void 0===e?i.addChild(t._display):i.addChildAt(t._display,e)}_onRemoved(t){this._container._childrenDisplay.removeChild(t._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),n.each(this.values,(t=>{t.dispose()})))}}var o=i(6245),a=i(4596),h=i(7142),l=i(4431),c=i(1706),u=i(6881),d=i(2132),p=i(5040),g=i(7652);class f extends a.j{constructor(){super(...arguments),this._display=this._root._renderer.makeContainer(),this._childrenDisplay=this._root._renderer.makeContainer(),this.children=new r(this),this._percentageSizeChildren=[],this._percentagePositionChildren=[],this._prevWidth=0,this._prevHeight=0,this._contentWidth=0,this._contentHeight=0,this._childrenPrep=!1,this._childrenUpdt=!1}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){n.eachReverse(this.allChildren(),(t=>{t.dispose()})),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_beforeChanged(){this._childrenPrep||this._prepareChildren(),this._childrenUpdt||this._updateChildren(),super._beforeChanged()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each((t=>{t.removePrivate("x"),t.removePrivate("y")}))),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each((t=>{t.markDirtyPosition()})),this.isDirty("maskContent")){const t=this._childrenDisplay;let e=this._contentMask;this.get("maskContent")?e||(e=h.A.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=e,t.addChildAt(e._display,0),t.mask=e._display):e&&(t.removeChild(e._display),t.mask=null,e.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),n.each(this._percentageSizeChildren,(t=>{t._updateSize()})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t._updateSize()})),this.updateBackground()}updateBackground(){const t=this.get("background");let e=this._localBounds;if(e&&!this.isHidden()){let i=e.left,s=e.top,n=e.right-i,r=e.bottom-s,o=this.get("maxWidth"),a=this.get("maxHeight");a&&r>a&&(r=a),o&&n>o&&(n=o);let h=this.width(),l=this.height();t&&(t.setAll({width:n,height:r,x:i,y:s}),this._display.interactive&&(t._display.interactive=!0));const c=this._contentMask;c&&c.setAll({width:h+1,height:l+1});const u=this.get("verticalScrollbar");if(u){u.set("height",l),u.set("x",h-u.width()-u.get("marginRight",0)),u.set("end",u.get("start",0)+l/this._contentHeight);const t=u.get("background");t&&t.setAll({width:u.width(),height:l});let e=!0;this._contentHeight<=l&&(e=!1),u.setPrivate("visible",e)}}}_applyThemes(t=!1){return!!super._applyThemes(t)&&(this.eachChildren((e=>{e._applyThemes(t)})),!0)}_applyState(t){super._applyState(t),this.get("setStateOnChildren")&&this.eachChildren((e=>{e.states.apply(t)}))}_applyStateAnimated(t,e){super._applyStateAnimated(t,e),this.get("setStateOnChildren")&&this.eachChildren((i=>{i.states.applyAnimate(t,e)}))}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let t=this._localBounds;t&&(this._contentWidth=t.right-t.left,this._contentHeight=t.bottom-t.top)}else{let t=this.get("width"),e=this.get("height"),i=this.getPrivate("width"),s=this.getPrivate("height"),n={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),o=!1,a=!1;if((r instanceof l.G||r instanceof u.M)&&(o=!0),r instanceof c.Z&&(a=!0),null==t&&null==i||null==e&&null==s||this.get("verticalScrollbar")){let t=Number.MAX_VALUE,e=t,i=-t,s=t,r=-t;const h=this.get("paddingLeft",0),l=this.get("paddingTop",0),c=this.get("paddingRight",0),u=this.get("paddingBottom",0);this.children.each((t=>{if("absolute"!=t.get("position")&&t.get("isMeasured")){let n=t.adjustedLocalBounds(),h=t.x(),l=t.y(),c=h+n.left,u=h+n.right,d=l+n.top,p=l+n.bottom;o&&(c-=t.get("marginLeft",0),u+=t.get("marginRight",0)),a&&(d-=t.get("marginTop",0),p+=t.get("marginBottom",0)),ci&&(i=u),dr&&(r=p)}})),e==t&&(e=0),i==-t&&(i=0),s==t&&(s=0),r==-t&&(r=0),n.left=e-h,n.top=s-l,n.right=i+c,n.bottom=r+u;const d=this.get("minWidth");p.isNumber(d)&&d>0&&n.right-n.left=d?n.left=n.right-d:n.right=n.left+d);const g=this.get("minHeight");p.isNumber(g)&&g>0&&n.bottom-n.top=g?n.top=n.bottom-g:n.bottom=n.top+g)}this._contentWidth=n.right-n.left,this._contentHeight=n.bottom-n.top,p.isNumber(t)&&(n.left=0,n.right=t),p.isNumber(i)&&(n.left=0,n.right=i),p.isNumber(e)&&(n.top=0,n.bottom=e),p.isNumber(s)&&(n.top=0,n.bottom=s),this._localBounds=n}}_updateBounds(){const t=this.get("layout");t&&t.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){this._childrenPrep=!0;const t=this.innerWidth(),e=this.innerHeight();if(t!=this._prevWidth||e!=this._prevHeight){let i=this.get("layout"),s=!1,r=!1;i&&((i instanceof l.G||i instanceof u.M)&&(s=!0),i instanceof c.Z&&(r=!0)),n.each(this._percentageSizeChildren,(i=>{if(!s){let e=i.get("width");e instanceof o.gG&&i.setPrivate("width",e.value*t)}if(!r){let t=i.get("height");t instanceof o.gG&&i.setPrivate("height",t.value*e)}})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t.markDirtyBounds()})),this._prevWidth=t,this._prevHeight=e,this._sizeDirty=!0,this.updateBackground()}}_updateHTMLContent(){const t=this.get("html","");t&&""!==t?this._root._setHTMLContent(this,(0,d.q)(this,t)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(t){const e=this.get("verticalScrollbar");if(e){let i=t.y(),s=this.innerHeight(),n=t.height(),r=this._contentHeight,o=1-(s-n/2)/r;if(i+.7*n+this._childrenDisplay.y>s||i-.3*n+this._childrenDisplay.y<0){let t=Math.max(0,Math.min(o,(i-n/2)/r));e.animate({key:"start",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")})}}}_updateChildren(){if(this._childrenUpdt=!0,this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){const t=this.get("verticalScrollbar");if(t){t._setParent(this),t.startGrip.setPrivate("visible",!1),t.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",t.width()+t.get("marginRight",0)+t.get("marginLeft",0));let e=this.get("background");e||(e=this.set("background",h.A.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",(e=>{const i=e.originalEvent;if(!g.isLocalEvent(i,this))return;i.preventDefault();let s=i.deltaY/5e3;const n=t.get("start",0),r=t.get("end",1);n+s<=0&&(s=-n),r+s>=1&&(s=1-r),n+s>=0&&r+s<=1&&(t.set("start",n+s),t.set("end",r+s))})),this._disposers.push(this._vsbd0),this._vsbd1=t.events.on("rangechanged",(()=>{let e=this._contentHeight;const i=this._childrenDisplay,s=this._contentMask;i.y=-t.get("start",0)*e,i.markDirtyLayer(),s&&(s._display.y=-i.y,i.mask=s._display)})),this._disposers.push(this._vsbd1),this._display.addChild(t._display)}else{const t=this._prevSettings.verticalScrollbar;t&&(this._display.removeChild(t._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose(),this._childrenDisplay.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0))}}if(this.isDirty("background")){const t=this._prevSettings.background;t&&this._display.removeChild(t._display);const e=this.get("background");e instanceof a.j&&(e.set("isMeasured",!1),e._setParent(this),this._display.addChildAt(e._display,0))}if(this.isDirty("mask")){const t=this.get("mask"),e=this._prevSettings.mask;if(e&&(this._display.removeChild(e._display),e!=t&&e.dispose()),t){const e=t.parent;e&&e.children.removeValue(t),t._setParent(this),this._display.addChildAt(t._display,0),this._childrenDisplay.mask=t._display}}}_processTemplateField(){super._processTemplateField(),this.children.each((t=>{t._processTemplateField()}))}walkChildren(t){this.children.each(((e,i)=>{e instanceof f&&e.walkChildren(t),t(e,i)}))}eachChildren(t){const e=this.get("background");e&&t(e);const i=this.get("verticalScrollbar");i&&t(i);const s=this.get("mask");s&&t(s),this.children.values.forEach((e=>{t(e)}))}allChildren(){const t=[];return this.eachChildren((e=>{t.push(e)})),t}_setDataItem(t){const e=t!==this._dataItem;super._setDataItem(t);const i=this.get("html","");i&&""!==i&&e&&this._root._setHTMLContent(this,(0,d.q)(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}}f.className="Container",f.classNames=a.j.classNames.concat([f.className])},6691:function(t,e,i){"use strict";i.d(e,{Y:function(){return d}});var s=i(962),n=i(8777),r=i(3497),o=i(6245),a=i(1112),h=i(7449),l=i(7652),c=i(5040),u=i(5071);class d extends s._{_afterNew(){super._afterNew();const t=this.children.push(n.W.new(this._root,{html:'',isMeasured:!1}));t.hide(),this.setPrivate("input",t);let e=this.get("background");e?e.set("themeTags",["editablelabel","background"]):e=this.set("background",r.c.new(this._root,{themeTags:["editablelabel","background"]}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();const t=this.get("editOn","click");"none"!=t&&(this._editOnEvents=new h.FV([this.getPrivate("input").events.on(t,(t=>{})),this.events.on(t,(t=>{this.set("active",!0)}))]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){const t=this.get("active",!1);t?this._startEditing():this._stopEditing();const e=this.get("background");e&&e.set("active",t)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){const t=this.getPrivate("input");if(t&&t.getPrivate("htmlElement")){const e=t.getPrivate("htmlElement").querySelector(".am5-editable-label");e&&(this.setPrivate("textarea",e),e.addEventListener("input",(t=>{!1===this.get("multiLine")&&(e.value=e.value.replace(/\n/g," ")),this.set("text",e.value),this._syncStyle()})),e.addEventListener("blur",(t=>this.set("active",!1))),l.supports("keyboardevents")&&this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Escape"==l.getEventKey(t)&&this.set("active",!1)}))),this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Enter"==l.getEventKey(t)&&!1===this.get("multiLine")&&(t.preventDefault(),this.set("active",!1))}))),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._startEditing()}));this._text.set("opacity",0);const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(""==this.get("text","")&&this.set("text"," "),t.show(0),this.setTimeout((()=>{this._syncStyle(),e.focus()}),100))}_stopEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._stopEditing()}));const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(this.set("text",e.value),t.hide(0),this._text.set("opacity",1))}_syncStyle(){const t=this.getPrivate("input"),e=this.getPrivate("textarea"),i=t.getPrivate("htmlElement");if(e&&i){const t=window.getComputedStyle(e);u.each(t,(t=>{e.style[t]="initial"})),e.style.color=this.get("fill",(0,a.$_)(0)).toCSS(this.get("fillOpacity",1)),e.style.backgroundColor="rgba(0, 0, 0, 0)",e.style.border="none",e.style.outline="none",e.style.padding="0",e.wrap="off",e.style.resize="none",e.style.overflow="hidden";const s=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);s>0?e.style.maxWidth=s+"px":e.style.minWidth="",e.style.height="auto",e.style.minHeight=e.scrollHeight+"px",this.get("width")&&(e.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",e.style.minWidth="");const n=this.get("lineHeight");n?n instanceof o.gG?e.style.lineHeight=n.value+"":c.isNumber(n)&&(e.style.lineHeight=n+""):e.style.lineHeight="1.2";let r=this.get("fontFamily");r||(r=getComputedStyle(i,"font-family").getPropertyValue("font-family")),e.style.fontFamily=r;let h=this.get("fontSize");h?c.isNumber(h)&&(h+="px"):h=getComputedStyle(i,"font-size").getPropertyValue("font-size"),e.style.fontSize=h;let l=this.get("fontWeight");l||(l=getComputedStyle(i,"font-weight").getPropertyValue("font-weight")),e.style.fontWeight=l;let d=this.get("fontStyle");d||(d=getComputedStyle(i,"font-style").getPropertyValue("font-style")),e.style.fontStyle=d;const p=this.get("oversizedBehavior");e.style.whiteSpace="wrap"==p?"pre-wrap":"nowrap",this._root.events.on("frameended",(()=>{""==e.style.minWidth&&(e.style.minWidth=e.scrollWidth+20+"px");const t=this.get("textAlign","start");"center"==t?(e.style.textAlign="center",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-50%)")):"end"==t?(e.style.textAlign="right",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-100%)")):e.style.textAlign=t}))}}_syncText(){const t=this.getPrivate("textarea");let e=this.get("text","");" "==e&&(e=""),t&&(t.value=e)}}d.className="EditableLabel",d.classNames=s._.classNames.concat([d.className])},2433:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radiusX")||this.isDirty("radiusY")||this.isDirty("rotation"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawEllipse(0,0,Math.abs(this.get("radiusX")),Math.abs(this.get("radiusY")))}}n.className="Ellipse",n.classNames=s.T.classNames.concat([n.className])},1479:function(t,e,i){"use strict";i.d(e,{T:function(){return l},u:function(){return h}});var s=i(4429),n=i(4596),r=i(4680),o=i(5040),a=i(5071);const h=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"];class l extends n.j{constructor(){super(...arguments),this._display=this._root._renderer.makeGraphics(),this._clear=!1}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const t=this.get("fillGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("fill")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("fill")}))))}}if(this.isDirty("strokeGradient")){const t=this.get("strokeGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("stroke")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("stroke")}))))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let t=this.get("strokeDasharray");o.isNumber(t)&&(t=t<.5?[0]:[t]),this._display.setLineDash(t);const e=this.get("strokeDashoffset");e&&this._display.setLineDashOffset(e);const i=this.get("blendMode",r.b.NORMAL);this._display.blendMode=i;const s=this.get("draw");s&&"function"==typeof s&&s(this._display,this);const n=this.get("svgPath");null!=n&&this._display.svgPath(n)}}_afterChanged(){if(super._afterChanged(),this._clear){const t=this.get("fill"),e=this.get("fillGradient"),i=this.get("fillPattern"),n=this.get("fillOpacity"),r=this.get("stroke"),o=this.get("strokeGradient"),h=this.get("strokePattern"),l=this.get("shadowColor"),c=this.get("shadowBlur"),u=this.get("shadowOffsetX"),d=this.get("shadowOffsetY"),p=this.get("shadowOpacity");if(l&&(c||u||d)&&this._display.shadow(l,c,u,d,p),t&&!e&&(this._display.beginFill(t,n),this._display.endFill()),e){if(t){const i=e.get("stops",[]);i.length&&a.each(i,(e=>{e.color&&!e.colorInherited||!t||(e.color=t,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=n,e.opacityInherited=!0)}))}const i=e.getFill(this);i&&(this._display.beginFill(i,n),this._display.endFill())}if(i){const t=i.pattern;t&&(this._display.beginFill(t,n),this._display.endFill(),i instanceof s.v&&i.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}if(r||o||h){const t=this.get("strokeOpacity");let e=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(e/=this.get("scale",1)),this.get("crisp")&&(e/=this._root._renderer.resolution);const i=this.get("lineJoin"),n=this.get("lineCap");if(r&&!o&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke()),o){const s=o.get("stops",[]);s.length&&a.each(s,(e=>{e.color&&!e.colorInherited||!r||(e.color=r,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=t,e.opacityInherited=!0)}));const h=o.getFill(this);h&&(this._display.lineStyle(e,h,t,i,n),this._display.endStroke())}if(h){let r=h.pattern;r&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke(),h instanceof s.v&&h.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}l.className="Graphics",l.classNames=n.j.classNames.concat([l.className])},6881:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var s=i(2010),n=i(5071),r=i(751);class o extends s.A{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(t){let e=t.get("paddingLeft",0),i=t.get("paddingRight",0),n=t.get("paddingTop",0),o=t.maxWidth()-e-i,a=o,h=1;(0,s.j)(t,(t=>{if(t.get("visible")&&t.getPrivate("visible")&&!t.get("forceHidden")&&"absolute"!=t.get("position")){let e=t.width();eh&&(h=e)}})),a=r.fitToRange(a,1,o),h=r.fitToRange(h,1,o);let l=1;l=this.get("fixedWidthGrid")?o/h:o/a,l=Math.max(1,Math.floor(l)),l=Math.min(this.get("maxColumns",Number.MAX_VALUE),l);let c=this.getColumnWidths(t,l,h,o),u=n,d=0,p=0;l=c.length;let g=e;(0,s.j)(t,(t=>{if("relative"==t.get("position")&&t.isVisible()){const i=t.get("marginTop",0),s=t.get("marginBottom",0);let n=t.adjustedLocalBounds(),r=t.get("marginLeft",0),o=t.get("marginRight",0),a=g+r-n.left,h=u+i-n.top;t.setPrivate("x",a),t.setPrivate("y",h),g+=c[d]+o,p=Math.max(p,t.height()+i+s),d++,d>=l&&(d=0,g=e,u+=p,p=0)}}))}getColumnWidths(t,e,i,r){let o=0,a=[],h=0;return(0,s.j)(t,(s=>{let n=s.adjustedLocalBounds();"absolute"!=s.get("position")&&s.isVisible()&&(this.get("fixedWidthGrid")?a[h]=i:a[h]=Math.max(0|a[h],n.right-n.left+s.get("marginLeft",0)+s.get("marginRight",0)),h{o+=t})),o>r?e>2?(e-=1,this.getColumnWidths(t,e,i,r)):[r]:a}}o.className="GridLayout",o.classNames=s.A.classNames.concat([o.className])},4431:function(t,e,i){"use strict";i.d(e,{G:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingLeft",0),i=t.innerWidth(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minWidth",t.getPrivate("minWidth",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.width()),i-=e+t.get("marginLeft",0)+t.get("marginRight",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginLeft",0)-t.get("marginRight",0),n=t.get("minWidth",t.getPrivate("minWidth",-1/0)),r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("width",s)}else t._prevSettings.width instanceof r.gG&&t.setPrivate("width",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginLeft",0),s=t.get("marginRight",0),n=t.get("maxWidth"),r=e.left,o=e.right;n&&o-r>n&&(o=r+n);let h=a+i-r;t.setPrivate("x",h),a=h+o+s}else t.setPrivate("x",void 0)}))}}o.className="HorizontalLayout",o.classNames=s.A.classNames.concat([o.className])},962:function(t,e,i){"use strict";i.d(e,{_:function(){return h}});var s=i(2036),n=i(6245),r=i(8777),o=i(5071),a=i(5040);class h extends r.W{constructor(){super(...arguments),this._textKeys=["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),o.each(this._textKeys,(t=>{const e=this.get(t);null!=e&&this._text.set(t,e)})),""!==this.get("html","")&&this._text.set("text",""),this.onPrivate("maxWidth",(()=>{this._setMaxDimentions()})),this.onPrivate("maxHeight",(()=>{this._setMaxDimentions()}))}_makeText(){this._text=this.children.push(s.x.new(this._root,{}))}_updateChildren(){super._updateChildren();const t=this._text;if(o.each(this._textKeys,(t=>{this._text.set(t,this.get(t))})),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),""!==this.get("html","")?t.set("text",""):(t.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){const e=this.get("textAlign");let i;null!=this.get("width")?i="right"==e?n.AQ:"center"==e?n.CI:0:"left"==e||"start"==e?i=this.get("paddingLeft",0):"right"!=e&&"end"!=e||(i=-this.get("paddingRight",0)),t.set("x",i)}const e=this.get("background");e&&e.setPrivate("visible",t._display.textVisible)}_maybeUpdateHTMLColor(){const t=this.getPrivate("htmlElement");t&&this.get("fill")&&(t.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){const t=this.get("rotation"),e=90==t||270==t||-90==t,i=this._text,s=this.get("maxWidth",this.getPrivate("maxWidth",1/0));a.isNumber(s)?i.set(e?"maxHeight":"maxWidth",s-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(e?"maxHeight":"maxWidth",void 0);const n=this.get("maxHeight",this.getPrivate("maxHeight",1/0));a.isNumber(n)?i.set(e?"maxWidth":"maxHeight",n-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(e?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",(()=>{i.markDirtyBounds()}))}_setDataItem(t){super._setDataItem(t),this._markDirtyKey("text"),this._markDirtyKey("html");const e=this._text;e.get("populateText")&&e.markDirtyText();const i=this.get("html");i&&""!==i&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}}h.className="Label",h.classNames=r.W.classNames.concat([h.className])},2010:function(t,e,i){"use strict";i.d(e,{A:function(){return r},j:function(){return n}});var s=i(6331);function n(t,e){t.get("reverseChildren",!1)?t.children.eachReverse(e):t.children.each(e)}class r extends s.JH{}r.className="Layout",r.classNames=s.JH.classNames.concat([r.className])},3105:function(t,e,i){"use strict";i.d(e,{D:function(){return c}});var s=i(3399),n=i(8777),r=i(962),o=i(3497),a=i(5769),h=i(7144),l=i(7652);class c extends s.F{constructor(){super(...arguments),this.itemContainers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:o.c.new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template])))),this.markers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template])))),this.labels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template])))),this.valueLabels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template])))),this.markerRectangles=this.addDisposer(new h.o(a.YS.new({}),(()=>o.c._new(this._root,{themeTags:l.mergeTags(this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template]))))}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(t){const e=this.children.push(this.itemContainers.make());return e._setDataItem(t),this.itemContainers.push(e),e.states.create("disabled",{}),e}makeMarker(){const t=this.markers.make();return this.markers.push(t),t.states.create("disabled",{}),t}makeLabel(){const t=this.labels.make();return t.states.create("disabled",{}),t}makeValueLabel(){const t=this.valueLabels.make();return t.states.create("disabled",{}),t}makeMarkerRectangle(){const t=this.markerRectangles.make();return t.states.create("disabled",{}),t}processDataItem(t){super.processDataItem(t);const e=this.makeItemContainer(t),i=this.get("nameField"),s=this.get("fillField"),n=this.get("strokeField");if(e){const r=this.get("clickTarget","itemContainer"),o=t.dataContext;o&&o.set&&o.set("legendDataItem",t),e._setDataItem(t),t.set("itemContainer",e);const a=this.makeMarker();if(a){e.children.push(a),a._setDataItem(t),t.set("marker",a);const i=this.get("useDefaultMarker"),r=a.children.push(this.makeMarkerRectangle());let h=t.get("fill"),l=t.get("stroke");t.set("markerRectangle",r),o&&o.get&&(h=o.get(s,h),l=o.get(n,l)),l||(l=h),i?o.on&&(o.on(s,(()=>{r.set("fill",o.get(s))})),o.on(n,(()=>{r.set("stroke",o.get(n))}))):o&&o.createLegendMarker&&o.createLegendMarker(),r.setAll({fill:h,stroke:l});const c=o.component;c&&c.updateLegendMarker&&c.updateLegendMarker(o)}const h=this.makeLabel();if(h){e.children.push(h),h._setDataItem(t),t.set("label",h),h.text.on("text",(()=>{e.setRaw("ariaLabel",h.text._getText()+("none"!==this.get("clickTarget")?"; "+this._t("Press ENTER to toggle"):"")),e.markDirtyAccessibility()})),o&&o.get&&t.set("name",o.get(i));let s=t.get("name");s&&h.set("text",s)}const l=this.makeValueLabel();if(l&&(e.children.push(l),l._setDataItem(t),t.set("valueLabel",l)),o&&o.show&&(o.on("visible",(t=>{e.set("disabled",!t)})),o.get("visible")||e.set("disabled",!0),"none"!=r)){let i=e;"marker"==r&&(i=a),this._addClickEvents(i,o,t)}this.children.values.sort(((t,e)=>{const i=t.dataItem.dataContext,s=e.dataItem.dataContext;if(i&&s){const t=this.data.indexOf(i),e=this.data.indexOf(s);if(t>e)return 1;if(t{const t=e.component;t&&t.hoverDataItem&&t.hoverDataItem(e)})),t.events.on("pointerout",(()=>{const t=e.component;t&&t.hoverDataItem&&t.unhoverDataItem(e)})),t.events.on("click",(()=>{const s=i.get("label").text._getText();e.show&&e.isHidden&&(e.isHidden()||!1===e.get("visible"))?(e.show(),t.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,s))):e.hide&&(e.hide(),t.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,s)))}))}disposeDataItem(t){super.disposeDataItem(t);const e=t.dataContext;e&&e.get&&e.get("legendDataItem")==t&&e.set("legendDataItem",void 0);let i=t.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let s=t.get("marker");s&&(this.markers.removeValue(s),s.dispose());let n=t.get("markerRectangle");n&&(this.markerRectangles.removeValue(n),n.dispose());let r=t.get("label");r&&(this.labels.removeValue(r),r.dispose());let o=t.get("valueLabel");o&&(this.valueLabels.removeValue(o),o.dispose())}}c.className="Legend",c.classNames=s.F.classNames.concat([c.className])},2077:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var s=i(1479);function n(t,e){for(let i=0,s=e.length;i0){let e=s[0];if(e.length>0){let i=e[0];t.moveTo(i.x,i.y);for(let e=0,i=s.length;e0){let e=t[0];this._display.moveTo(e.x,e.y),n(this._display,[[t]])}else if(e)n(this._display,e);else if(!this.get("draw")){let t=this.width(),e=this.height();this._display.moveTo(0,0),this._display.lineTo(t,e)}}}}o.className="Line",o.classNames=s.T.classNames.concat([o.className])},5812:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var s=i(8777),n=i(941),r=i(6387),o=i(751);class a extends s.W{constructor(){super(...arguments),this.line=this.children.push(r.P.new(this._root,{themeTags:["line"]})),this.hitLine=this.children.push(r.P.new(this._root,{themeTags:["hit"]})),this.startArrow=this.children.push(n.C.new(this._root,{themeTags:["start","arrow"]})),this.endArrow=this.children.push(n.C.new(this._root,{themeTags:["end","arrow"]}))}_afterNew(){this.addTag("link"),super._afterNew()}_updateChildren(){if(super._updateChildren(),this.isDirty("points")){let t=r.P.makeOrthogonal(this.get("points",[]));this.line.set("points",t),this.hitLine.set("points",t);const e=this.startArrow,i=this.endArrow,s=t.length;if(s>1){const[n,r]=t;e.setAll({x:n.x,y:n.y,rotation:o.getAngle(n,r)-90});const a=t[s-1],h=t[s-2];i.setAll({x:a.x,y:a.y,rotation:o.getAngle(h,a)+90})}else if(1===s){const[s]=t;e.setAll({x:s.x,y:s.y,rotation:0}),i.setAll({x:s.x,y:s.y,rotation:0})}}}}a.className="Link",a.classNames=s.W.classNames.concat([a.className])},8289:function(t,e,i){"use strict";i.d(e,{G:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){return function(e){return new s(e,t)}}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(s+a,n+a*e,r-a,o-a*i,r,o)}},5892:function(t,e,i){"use strict";i.d(e,{$:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){[t,e]=[e,t];let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){function e(e){return new s(e,t)}return e.tension=function(t){return n(+t)},e}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(n+a*e,s+a,o-a*i,r-a,o,r)}},7049:function(t,e,i){"use strict";i.d(e,{l:function(){return h}});var s=i(8777),n=i(6691),r=i(7142),o=i(941),a=i(1112);class h extends s.W{constructor(){super(...arguments),this.label=this.children.push(n.Y.new(this._root,{})),this.buttonsContainer=this.children.push(s.W.new(this._root,{themeTags:["buttons"]})),this.upButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["upbutton"]})),this.downButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["downbutton"]}))}_afterNew(){this.addTag("numericstepper"),this.set("layout",this._root.horizontalLayout),this.label.adapters.add("text",(t=>(t&&t.replace(/\D/g,""),""===t&&(t="0"),t))),this.set("background",r.A.new(this._root,{fillOpacity:0,fill:(0,a.$_)(16777215)})),this.buttonsContainer.states.create("hidden",{opacity:0,visible:!0}),this.events.on("pointerover",(()=>{this.buttonsContainer.set("active",!0)})),this.events.on("pointerout",(()=>{this.buttonsContainer.set("active",!1)})),this.label.on("text",(t=>{if(t){const e=parseFloat(t);isNaN(e)||this.set("value",e)}})),this.upButton.events.on("click",(()=>{this.set("value",this.get("value",0)+1)})),this.downButton.events.on("click",(()=>{this.set("value",Math.max(0,this.get("value",0)-1))})),super._afterNew()}_updateChildren(){super._updateChildren();const t=this.get("value",0),e=this.label;if(this.isDirty("value")&&e.set("text",t.toString()),this.isDirty("disabled")){const t=this.get("disabled",!1);this.set("interactive",!t),this.upButton.set("interactive",!t),this.downButton.set("interactive",!t),t?(this.label.set("editOn","none"),this.buttonsContainer.hide(0)):(this.label.set("editOn","click"),this.buttonsContainer.show(0))}}}h.className="NumericStepper",h.classNames=s.W.classNames.concat([h.className])},6387:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),this.isDirty("points")&&(this._clear=!0)}static makeOrthogonal(t){if(t.length>1){const e=[];for(let i=0;i0&&o&&l){if(h){s=Math.min(s,Math.abs(r.x-o.x)/2,Math.abs(r.y-n.y)/2);const e=Math.sign(r.y-n.y);t.lineTo(r.x,r.y-s*e);const i=o.x{this._display.image=e,this._updateSize(),!i.isDisposed()&&i.isEnabled("loaded")&&i.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{!i.isDisposed()&&i.isEnabled("loaderror")&&i.dispatch("loaderror",{type:"loaderror",target:this})}))}}_updateSize(){super._updateSize();const t=this._display.image;if(t){let e=this.getPrivate("width",this.get("width")),i=this.getPrivate("height",this.get("height"));const s=t.width&&t.height?t.width/t.height:0;n.isNumber(e)&&n.isNumber(i)?(this._display.width=e,this._display.height=i):n.isNumber(e)&&s?i=e/s:n.isNumber(i)&&s?e=i*s:(e=t.width,i=t.height),n.isNumber(e)&&(this._display.width=e),n.isNumber(i)&&(this._display.height=i),this.markDirtyBounds(),this.markDirty()}}}r.className="Picture",r.classNames=s.j.classNames.concat([r.className])},8931:function(t,e,i){"use strict";i.d(e,{i:function(){return r}});var s=i(1479),n=i(751);class r extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let t=this.width(),e=this.height();if(t>0&&e>0){let i=this.get("cornerRadius",8);i=n.fitToRange(i,0,Math.min(t/2,e/2));let s=this.get("pointerX",0),r=this.get("pointerY",0),o=this.get("pointerBaseWidth",15)/2,a=0,h=0,l=0,c=(s-a)*(e-h)-(r-h)*(t-a),u=(s-l)*(0-e)-(r-e)*(t-l);const d=this._display;if(d.moveTo(i,0),c>0&&u>0){let e=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,-1/0,0),d.lineTo(e-o,0),d.lineTo(s,r),d.lineTo(e+o,0)}if(d.lineTo(t-i,0),d.arcTo(t,0,t,i,i),c>0&&u<0){let a=Math.round(n.fitToRange(r,i+o,e-o-i));s=n.fitToRange(s,t,1/0),d.lineTo(t,i),d.lineTo(t,Math.max(a-o,i)),d.lineTo(s,r),d.lineTo(t,a+o)}if(d.lineTo(t,e-i),d.arcTo(t,e,t-i,e,i),c<0&&u<0){let a=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,e,1/0),d.lineTo(t-i,e),d.lineTo(a+o,e),d.lineTo(s,r),d.lineTo(a-o,e)}if(d.lineTo(i,e),d.arcTo(0,e,0,e-i,i),c<0&&u>0){let t=Math.round(n.fitToRange(r,i+o,e-i-o));s=n.fitToRange(s,-1/0,0),d.lineTo(0,e-i),d.lineTo(0,t+o),d.lineTo(s,r),d.lineTo(0,Math.max(t-o,i))}d.lineTo(0,i),d.arcTo(0,0,i,0,i),d.closePath()}}}}r.className="PointedRectangle",r.classNames=s.T.classNames.concat([r.className])},7770:function(t,e,i){"use strict";i.d(e,{m:function(){return r}});var s=i(1479),n=i(5071);class r extends s.T{_beforeChanged(){if(super._beforeChanged(),this.isDirty("coordinates")){const t=[],e=this.get("coordinates");e&&n.each(e,(e=>{t.push({x:e[0],y:e[1]})})),this.set("points",t)}if(this.isPrivateDirty("points")&&(this._clear=!0),this.isDirty("points")){this._clear=!0;const t=this.get("points"),e=this._prevSettings.points;if(e){if(t){let i=n.copy(t),s=n.copy(e),r=i.length,o=s.length;if(r>o){let t=n.copy(i);for(let e=0;er){let t=n.copy(s);for(let e=0;e{this._markDirtyPrivateKey("morphProgress")}))}}else this.setPrivateRaw("previousPoints",t),this.setPrivateRaw("points",t);let i=1/0,s=-1/0,r=1/0,o=-1/0;if(t)for(let e=1,n=t.length;e{this.label.markDirtyKey("text")}))}}}l.className="ProgressPie",l.classNames=n.W.classNames.concat([l.className])},815:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(6245),n=i(962),r=i(4244),o=i(751),a=i(7652);class h extends n._{constructor(){super(...arguments),this._flipped=!1}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(r.f.new(this._root,{}))}baseRadius(){const t=this.getPrivate("radius",0),e=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return e+a.relativeToValue(i,t-e)}radius(){const t=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(t?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){const t=this.get("textType","adjusted"),e=this.get("inside",!1),i=this.get("orientation");let n=o.normalizeAngle(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",e);const r=o.sin(n),a=o.cos(n);let h=this.baseRadius(),l=this.radius();if(this._display.angle=0,"circular"==t)this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",l);else{0==h&&(n=0,l=0);let e=l*a,o=l*r;"radial"==t?(this.setRaw("x",e),this.setRaw("y",o),n<90||n>270||"auto"!=i?(this._display.angle=n,this._flipped=!1):(this._display.angle=n+180,this._flipped=!0),this._dirty.rotation=!1):"adjusted"==t?(this.setRaw("centerX",s.CI),this.setRaw("centerY",s.CI),this.setRaw("x",e),this.setRaw("y",o)):"regular"==t&&(this.setRaw("x",e),this.setRaw("y",o))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){const t=this.get("textType","regular"),e=this.get("inside",!1);let i=0,n=0,r=this.get("labelAngle",0),a=this.localBounds(),h=a.right-a.left,l=a.bottom-a.top;if("radial"==t){if(this._flipped){let t=this.get("centerX");t instanceof s.gG&&(h*=1-2*t.value),i=h*o.cos(r),n=h*o.sin(r)}}else e||"adjusted"!=t||(i=h/2*o.cos(r),n=l/2*o.sin(r));this.setRaw("dx",i),this.setRaw("dy",n),super._updatePosition()}get text(){return this._text}}h.className="RadialLabel",h.classNames=n._.classNames.concat([h.className])},4244:function(t,e,i){"use strict";i.d(e,{f:function(){return r}});var s=i(2036),n=i(751);class r extends s.x{constructor(){super(...arguments),this._display=this._root._renderer.makeRadialText("",this.textStyle)}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*n.RADIANS,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}r.className="RadialText",r.classNames=s.x.classNames.concat([r.className])},7142:function(t,e,i){"use strict";i.d(e,{A:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let t=this.width(),e=this.height(),i=0,s=0,n=t/Math.abs(t),r=e/Math.abs(e);if(this.get("containStroke",!1)){const o=this.get("strokeWidth",0);t-=o*n,e-=o*r,i+=o/2*n,s+=o/2*r}this._display.drawRect(i,s,t,e)}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Rectangle",n.classNames=s.T.classNames.concat([n.className])},3497:function(t,e,i){"use strict";i.d(e,{c:function(){return a}});var s=i(5040),n=i(751),r=i(7652),o=i(7142);class a extends o.A{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let t=this.width(),e=this.height(),i=t/Math.abs(t),o=e/Math.abs(e),a=0,h=0;const l=this.get("strokeWidth",0);this.get("containStroke",!1)&&(t-=i*l,e-=o*l,a+=i*l/2,h+=o*l/2);let c=t,u=e;if(s.isNumber(c)&&s.isNumber(u)){let t=Math.min(c,u)/2,e=r.relativeToValue(this.get("cornerRadiusTL",8),t),s=r.relativeToValue(this.get("cornerRadiusTR",8),t),l=r.relativeToValue(this.get("cornerRadiusBR",8),t),d=r.relativeToValue(this.get("cornerRadiusBL",8),t),p=Math.min(Math.abs(c/2),Math.abs(u/2));e=n.fitToRange(e,0,p),s=n.fitToRange(s,0,p),l=n.fitToRange(l,0,p),d=n.fitToRange(d,0,p);const g=this._display;g.moveTo(a+e*i,h),g.lineTo(a+c-s*i,h),s>0&&g.arcTo(a+c,h,a+c,h+s*o,s),g.lineTo(a+c,h+u-l*o),l>0&&g.arcTo(a+c,h+u,a+c-l*i,h+u,l),g.lineTo(a+d*i,h+u),d>0&&g.arcTo(a,h+u,a,h+u-d*o,d),g.lineTo(a,h+e*o),e>0&&g.arcTo(a,h,a+e*i,h,e),g.closePath()}}}a.className="RoundedRectangle",a.classNames=o.A.classNames.concat([a.className])},6001:function(t,e,i){"use strict";i.d(e,{L:function(){return l}});var s=i(3497),n=i(8777),r=i(1479),o=i(8054),a=i(5040),h=i(7652);class l extends n.W{constructor(){super(...arguments),this.thumb=this._makeThumb(),this.startGrip=this._makeButton(),this.endGrip=this._makeButton(),this._thumbBusy=!1,this._startDown=!1,this._endDown=!1,this._thumbDown=!1}_addOrientationClass(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=s.c.new(this._root,{themeTags:h.mergeTags(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(o.z.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:r.T.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(s.c.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(t){t&&this._disposers.push(t.events.on("stopped",(()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1})))}_afterNew(){this._addOrientationClass(),super._afterNew();const t=this.startGrip,e=this.endGrip,i=this.thumb,s=this.get("background");s&&this._disposers.push(s.events.on("click",(t=>{this.setPrivateRaw("isBusy",!0);const e=this._display.toLocal(t.point),s=this.width(),n=this.height(),r=this.get("orientation");let o,a,h;o="vertical"==r?(e.y-i.height()/2)/n:(e.x-i.width()/2)/s,"vertical"==r?(a=o*n,h="y"):(a=o*s,h="x");const l=this.get("animationDuration",0);l>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:h,to:a,duration:l,easing:this.get("animationEasing")}))):(this.thumb.set(h,a),this._root.events.once("frameended",(()=>{this.setPrivateRaw("isBusy",!1)})))}))),this._disposers.push(i.events.on("dblclick",(t=>{if(!h.isLocalEvent(t.originalEvent,this))return;const e=this.get("animationDuration",0),i=this.get("animationEasing");this.animate({key:"start",to:0,duration:e,easing:i}),this.animate({key:"end",to:1,duration:e,easing:i})}))),this._disposers.push(t.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"}))),this._disposers.push(e.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"}))),this._disposers.push(i.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0}))),this._disposers.push(t.events.on("globalpointerup",(()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1}))),this._disposers.push(e.events.on("globalpointerup",(()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1}))),this._disposers.push(i.events.on("globalpointerup",(()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1}))),this._disposers.push(t.on("x",(()=>{this._updateThumb()}))),this._disposers.push(e.on("x",(()=>{this._updateThumb()}))),this._disposers.push(t.on("y",(()=>{this._updateThumb()}))),this._disposers.push(e.on("y",(()=>{this._updateThumb()}))),this._disposers.push(i.events.on("positionchanged",(()=>{this._updateGripsByThumb()}))),"vertical"==this.get("orientation")?(t.set("x",0),e.set("x",0),this._disposers.push(i.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()-i.height()),0)))),this._disposers.push(i.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("x",(t=>this.width()/2))),this._disposers.push(e.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0)))),this._disposers.push(e.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0))))):(t.set("y",0),e.set("y",0),this._disposers.push(i.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()-i.width()),0)))),this._disposers.push(i.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("y",(t=>this.height()/2))),this._disposers.push(e.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))),this._disposers.push(e.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){const t="rangechanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){const t="released";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}updateGrips(){const t=this.startGrip,e=this.endGrip,i=this.get("orientation"),s=this.height(),n=this.width();"vertical"==i?(t.set("y",s*this.get("start",0)),e.set("y",s*this.get("end",1))):(t.set("x",n*this.get("start",0)),e.set("x",n*this.get("end",1)));const r=this.getPrivate("positionTextFunction"),o=Math.round(100*this.get("start",0)),a=Math.round(100*this.get("end",0));let h,l;r?(h=r.call(this,this.get("start",0)),l=r.call(this,this.get("end",0))):(h=o+"%",l=a+"%"),t.set("ariaLabel",this._t("From %1",void 0,h)),t.set("ariaValueNow",""+o),t.set("ariaValueText",o+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100"),e.set("ariaLabel",this._t("To %1",void 0,l)),e.set("ariaValueNow",""+a),e.set("ariaValueText",a+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100")}_updateThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip,s=this.height(),n=this.width();let r=e.x(),o=i.x(),h=e.y(),l=i.y(),c=0,u=1;"vertical"==this.get("orientation")?a.isNumber(h)&&a.isNumber(l)&&(this._thumbBusy||t.isDragging()||(t.set("height",l-h),t.set("y",h)),c=h/s,u=l/s):a.isNumber(r)&&a.isNumber(o)&&(this._thumbBusy||t.isDragging()||(t.set("width",o-r),t.set("x",r)),c=r/n,u=o/n),!this.getPrivate("isBusy")||this.get("start")==c&&this.get("end")==u||(this.set("start",c),this.set("end",u));const d=this.getPrivate("positionTextFunction"),p=Math.round(100*this.get("start",0)),g=Math.round(100*this.get("end",0));let f,_;d?(f=d.call(this,this.get("start",0)),_=d.call(this,this.get("end",0))):(f=p+"%",_=g+"%"),t.set("ariaLabel",this._t("From %1 to %2",void 0,f,_)),t.set("ariaValueNow",""+p),t.set("ariaValueText",p+"%")}_updateGripsByThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip;if("vertical"==this.get("orientation")){const s=t.height();e.set("y",t.y()),i.set("y",t.y()+s)}else{const s=t.width();e.set("x",t.x()),i.set("x",t.x()+s)}}}l.className="Scrollbar",l.classNames=n.W.classNames.concat([l.className])},5829:function(t,e,i){"use strict";i.d(e,{j:function(){return h}});var s=i(1337),n=i(8777),r=i(7144),o=i(6245),a=i(5071);class h extends s.k{constructor(){super(...arguments),this.seriesContainer=n.W.new(this._root,{width:o.AQ,height:o.AQ,isMeasured:!1}),this.series=new r.dn}_afterNew(){super._afterNew(),this._disposers.push(this.series);const t=this.seriesContainer.children;this._disposers.push(this.series.events.onAll((e=>{if("clear"===e.type){a.each(e.oldValues,(t=>{this._removeSeries(t)}));const t=this.get("colors");t&&t.reset();const i=this.get("patterns");i&&i.reset()}else if("push"===e.type)t.moveValue(e.newValue),this._processSeries(e.newValue);else if("setIndex"===e.type)t.setIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("insertIndex"===e.type)t.insertIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("removeIndex"===e.type)this._removeSeries(e.oldValue);else if("moveIndex"===e.type)t.moveValue(e.value,e.newIndex),this._processSeries(e.value);else{if("swap"!==e.type)throw new Error("Unknown IListEvent type");{const i=e.a,s=e.b,n=this.series.indexOf(i),r=this.series.indexOf(s);t.moveValue(i,r),t.moveValue(s,n),this.series.each((t=>{this._processSeries(t),t.markDirtyValues()}))}}})))}_processSeries(t){t.chart=this,t._placeBulletsContainer(this)}_removeSeries(t){t._handleRemoved(),t.isDisposed()||(this.seriesContainer.children.removeValue(t),t._removeBulletsContainer())}}h.className="SerialChart",h.classNames=s.k.classNames.concat([h.className])},3399:function(t,e,i){"use strict";i.d(e,{F:function(){return g}});var s=i(7582),n=i(9361),r=i(7144),o=i(1112),a=i(6490),h=i(6245),l=i(8777),c=i(962),u=i(5071),d=i(5040),p=i(1926);class g extends n.w{constructor(){super(...arguments),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1,this._dataProcessed=!1,this._baseSeriesDirty=!1,this.bullets=new r.aV,this.bulletsContainer=l.W.new(this._root,{width:h.AQ,height:h.AQ,position:"absolute"})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll((()=>{this._handleBullets(this.dataItems)})))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let t=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),t)}endIndex(){let t=this.dataItems.length;return Math.max(0,Math.min(this.getPrivate("endIndex",t),t))}_handleBullets(t){u.each(t,(t=>{const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)})),this.markDirtyValues()}_makeBullets(t){this._shouldMakeBullet(t)&&(t.bullets=[],this.bullets.each((e=>{this._makeBullet(t,e)})))}_shouldMakeBullet(t){return!0}_makeBullet(t,e,i){const s=e(this._root,this,t);return s&&(s._index=i,this._makeBulletReal(t,s)),s}_makeBulletReal(t,e){let i=e.get("sprite");i&&(i._setDataItem(t),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),e.series=this,t.bullets.push(e)}addBullet(t,e){t.bullets||(t.bullets=[]),e&&this._makeBulletReal(t,e)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();const t=this.dataItems,e=t.length;let i=this.startIndex(),s=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const t=this.getPrivate("baseValueSeries");t&&this._disposers.push(t.onPrivate("startIndex",(()=>{this._baseSeriesDirty=!0,this.markDirtyValues()})))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,e),this._aggregatesCalculated=!0,0!=i&&(this._psi=void 0))),this._psi==i&&this._pei==s&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===i&&s===e&&this._aggregatesCalculated||this._calculateAggregates(i,s),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let t=this.get("tooltip");t&&(t.hide(0),t.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let t;const e=this.get("legendDataItem");if(e&&(t=e.get("markerRectangle"),t&&this.isVisible())){if(this.isDirty("stroke")){let e=this.get("stroke");t.set("stroke",e)}if(this.isDirty("fill")){let e=this.get("fill");t.set("fill",e)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let i=this.startIndex(),s=this.endIndex();s-1==s.indexOf(t))));const n={},r={},o={},a={},h={},l={},c={},u={},d={};for(let t=0,e=i.length;t{if(0===t){const t=l[x],s=i-t;e.setRaw(_,s),e.setRaw(m,s/t*100)}const n=i-d[x],r=i-l[x];e.setRaw(y,n),e.setRaw(v,n/d[x]*100),e.setRaw(w,r),e.setRaw(b,r/l[x]*100),d[s]=i};for(let t=k;tt&&(a[f]=t),h[f]0&&t--,delete d[f];for(let e=t;e0&&u.each(t,(t=>{const e=t.minValue||this.getPrivate(t.dataField+"Low")||0,i=t.maxValue||this.getPrivate(t.dataField+"High")||0;u.each(t.target._entities,(s=>{const n=s.dataItem.get(t.dataField);if(!d.isNumber(n)){t.neutral&&s.set(t.key,t.neutral);const e=s.states;if(e){const i=e.lookup("default");i&&t.neutral&&i.set(t.key,t.neutral)}if(!t.customFunction)return}if(t.customFunction)t.customFunction.call(this,s,e,i,n);else{let r,l;r=t.logarithmic?(Math.log(n)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E):(n-e)/(i-e),!d.isNumber(n)||d.isNumber(r)&&Math.abs(r)!=1/0||(r=.5),d.isNumber(t.min)?l=t.min+(t.max-t.min)*r:t.min instanceof o.Il?l=o.Il.interpolate(r,t.min,t.max):t.min instanceof h.gG&&(l=(0,a.Wn)(r,t.min,t.max)),s.set(t.key,l);const c=s.states;if(c){const e=c.lookup("default");e&&e.set(t.key,l)}}}))})),this.get("visible")){const t=this.dataItems;let e=t.length,i=this.startIndex(),s=this.endIndex();s0&&i--;for(let e=0;e{this._positionBullet(t);const e=t.get("sprite");t.get("dynamic")&&(e&&(e._markDirtyKey("fill"),e.markDirtySize()),e instanceof l.W&&e.walkChildren((t=>{t._markDirtyKey("fill"),t.markDirtySize(),t instanceof c._&&t.text.markDirtyText()}))),e instanceof c._&&e.get("populateText")&&e.text.markDirtyText()}))}_hideBullets(t){t.bullets&&u.each(t.bullets,(t=>{let e=t.get("sprite");e&&e.setPrivate("visible",!1)}))}_positionBullet(t){}_placeBulletsContainer(t){t.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const t=this.bulletsContainer;t.parent&&t.parent.children.removeValue(t)}disposeDataItem(t){const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.show(e))})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.hide(e))})),yield Promise.all(s)}))}_sequencedShowHide(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(d.isNumber(e)||(e=this.get("interpolationDuration",0)),e>0){const i=this.startIndex(),n=this.endIndex();yield Promise.all(u.map(this.dataItems,((r,o)=>(0,s.mG)(this,void 0,void 0,(function*(){let s=e||0;(on+10)&&(s=0);let a=this.get("sequencedDelay",0)+s/(n-i);yield p.sleep(a*(o-i)),t?yield this.showDataItem(r,s):yield this.hideDataItem(r,s)})))))}else yield Promise.all(u.map(this.dataItems,(e=>t?this.showDataItem(e,0):this.hideDataItem(e,0))))}))}updateLegendValue(t){if(t){const e=t.get("legendDataItem");if(e){const i=e.get("valueLabel");if(i){const e=i.text;let s="";i._setDataItem(t),s=this.get("legendValueText",e.get("text","")),i.set("text",s),e.markDirtyText()}const s=e.get("label");if(s){const e=s.text;let i="";s._setDataItem(t),i=this.get("legendLabelText",e.get("text","")),s.set("text",i),e.markDirtyText()}}}}updateLegendMarker(t){}_onHide(){super._onHide();const t=this.getTooltip();t&&t.hide()}hoverDataItem(t){}unhoverDataItem(t){}_getBase(t){const e=this.dataItems[this.startIndex()];return e?e.get(t):0}}g.className="Series",g.classNames=n.w.classNames.concat([g.className])},5863:function(t,e,i){"use strict";i.d(e,{p:function(){return h}});var s=i(1479),n=i(5040),r=i(6245),o=i(832),a=i(751);class h extends s.T{constructor(){super(...arguments),this.ix=0,this.iy=0,this._generator=(0,o.Z)()}_getTooltipPoint(){let t=this.get("tooltipX"),e=this.get("tooltipY"),i=0,s=0;n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e);let o=this.get("radius",0),a=this.get("innerRadius",0);return o+=this.get("dRadius",0),a+=this.get("dInnerRadius",0),a<0&&(a=o+a),t instanceof r.gG&&(i=this.ix*(a+(o-a)*t.value)),e instanceof r.gG&&(s=this.iy*(a+(o-a)*e.value)),this.get("arc")>=360&&0==a&&(i=0,s=0),{x:i,y:s}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this.get("startAngle",0),e=this.get("arc",0);const i=this._generator;e<0&&(t+=e,e*=-1),e>.1&&i.cornerRadius(this.get("cornerRadius",0)),i.context(this._display);let s=this.get("radius",0),n=this.get("innerRadius",0);s+=this.get("dRadius",0),n+=this.get("dInnerRadius",0),n<0&&(n=s+n),i({innerRadius:n,outerRadius:s,startAngle:(t+90)*a.RADIANS,endAngle:(t+e+90)*a.RADIANS});let r=t+e/2;this.ix=a.cos(r),this.iy=a.sin(r);const o=this.get("shiftRadius",0);this.setRaw("dx",this.ix*o),this.setRaw("dy",this.iy*o),this.markDirtyPosition()}}}h.className="Slice",h.classNames=s.T.classNames.concat([h.className])},2162:function(t,e,i){"use strict";i.d(e,{i:function(){return n}});var s=i(6001);class n extends s.L{_afterNew(){this._addOrientationClass(),super._afterNew(),this.endGrip.setPrivate("visible",!1),this.thumb.setPrivate("visible",!1)}updateGrips(){super.updateGrips();const t=this.startGrip;this.endGrip.setAll({x:t.x(),y:t.y()}),this.setRaw("end",this.get("start"))}}n.className="Slider",n.classNames=s.L.classNames.concat([n.className])},4596:function(t,e,i){"use strict";i.d(e,{j:function(){return _}});var s=i(7582),n=i(6331),r=i(5769),o=i(6245),a=i(9770),h=i(7449),l=i(6490),c=i(7652),u=i(5071),d=i(5040),p=i(256),g=i(751);class f extends a.p{constructor(t){super(),this._rendererDisposers={},this._dispatchParents=!0,this._sprite=t}_makePointerEvent(t,e){return{type:t,originalEvent:e.event,point:e.point,simulated:e.simulated,native:e.native,target:this._sprite}}_onRenderer(t,e){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[t];if(void 0===i){const s=this._sprite._display.on(t,(t=>{e.call(this,t)}));i=this._rendererDisposers[t]=new h.DM((()=>{delete this._rendererDisposers[t],s.dispose()}))}return i.increment()}_on(t,e,i,s,n,r,o){const a=super._on(t,e,i,s,n,r,o),l=f.RENDERER_EVENTS[e];return void 0!==l&&(a.disposer=new h.FV([a.disposer,this._onRenderer(e,l)])),a}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(t,e){const i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(t,e),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(t,e)}finally{this._dispatchParents=i}}}f.RENDERER_EVENTS={click:function(t){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",t))&&this.dispatch("click",this._makePointerEvent("click",t))},rightclick:function(t){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",t))},middleclick:function(t){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",t))},dblclick:function(t){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",t))},pointerover:function(t){const e=this._sprite;let i=!0;if(e.getPrivate("trustBounds")){e._getBounds();const s=e.globalBounds();if(e.isType("Graphics")){const t=e.get("strokeWidth",1)/2;t>=1&&(s.left-=t,s.right+=t,s.top-=t,s.bottom+=t)}g.inBounds(t.point,s)||(i=!1,e._root._renderer.removeHovering(e._display))}i&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",t))},pointerout:function(t){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",t))},pointerdown:function(t){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",t))},pointerup:function(t){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",t))},globalpointerup:function(t){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",t))},globalpointermove:function(t){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",t))},wheel:function(t){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:t.event,point:t.point})}};class _ extends n.JH{constructor(){super(...arguments),this._adjustedLocalBounds={left:0,right:0,top:0,bottom:0},this._localBounds={left:0,right:0,top:0,bottom:0},this._sizeDirty=!1,this._isDragging=!1,this._isHidden=!1,this._isShowing=!1,this._isHiding=!1,this._isDown=!1,this._downPoints={}}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(t){this._markDirtyKey(t)}_markDirtyKey(t){super._markDirtyKey(t),"x"!=t&&"y"!=t&&"dx"!=t&&"dy"!=t||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(t){super._markDirtyPrivateKey(t),"x"!=t&&"y"!=t||this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new f(this)}_processTemplateField(){let t;const e=this.get("templateField");if(e){const i=this.dataItem;if(i){const s=i.dataContext;s&&(t=s[e],t instanceof r.YS||!t||(t=r.YS.new(t)))}}this._templateField!==t&&(this._removeTemplateField(),this._templateField=t,t&&t._setObjectTemplate(this),this._applyTemplates())}_setDataItem(t){const e=this._dataItem;this._dataItem=t,this._processTemplateField();const i="dataitemchanged";t!=e&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:e,newDataItem:t})}set dataItem(t){this._setDataItem(t)}get dataItem(){if(this._dataItem)return this._dataItem;{let t=this._parent;for(;t;){if(t._dataItem)return t._dataItem;t=t._parent}}}_addPercentageSizeChildren(){let t=this.parent;t&&(this.get("width")instanceof o.gG||this.get("height")instanceof o.gG?u.pushOne(t._percentageSizeChildren,this):u.removeFirst(t._percentageSizeChildren,this))}_addPercentagePositionChildren(){let t=this.parent;t&&(this.get("x")instanceof o.gG||this.get("y")instanceof o.gG?u.pushOne(t._percentagePositionChildren,this):u.removeFirst(t._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const t=this._localBounds;if(t){const e=this.get("centerX");null!=e&&(this._display.pivot.x=t.left+c.relativeToValue(e,t.right-t.left));const i=this.get("centerY");null!=i&&(this._display.pivot.y=t.top+c.relativeToValue(i,t.bottom-t.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const t=this._prevSettings.tooltip;t&&t.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0);const e=this._tooltipPointerDp;e&&(e.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))),this._tooltipPointerDp=new h.FV([this.events.on("pointerover",(()=>{this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))})),this.events.on("pointerout",(()=>{const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0)}))]))}}_handleStates(){this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();const t=this._display,e=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new h.FV([e.on("pointerdown",(t=>{this.dragStart(t)})),e.on("globalpointermove",(t=>{this.dragMove(t)})),e.on("globalpointerup",(t=>{this.dragStop(t)}))])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),t.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const t=this.get("tooltipText"),i=this.get("tooltipHTML"),s=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(t||i)&&("click"==s?(this._tooltipDp=new h.FV([e.on("click",(()=>{this.setTimeout((()=>{const t=this.getTooltip();t&&!t.isHidden()&&t.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()}),10)})),c.addEventListener(document,"click",(t=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)):"always"==s||(this._tooltipDp=new h.FV([e.on("pointerover",(()=>{this.showTooltip()})),e.on("pointerout",(()=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let t=this.get("toggleKey");t&&"none"!=t?this._toggleDp=e.on("click",(()=>{this._isDragging||this.set(t,!this.get(t))})):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(t.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),t.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),t.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?t.visible=!0:(t.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const t=this.parent;t&&(this.isDirty("width")&&this.get("width")instanceof o.gG||this.isDirty("height")&&this.get("height")instanceof o.gG)&&(t.markDirty(),t._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const e=this.get("wheelable");e&&this.set("interactive",!0),t.wheelable=!!e}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(t.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){const t=this.get("blur",0);0!=t&&(i+=" blur("+t+"px)")}if(this.isDirty("saturate")){const t=this.get("saturate",1);1!=t&&(i+=" saturate("+t+")")}if(this.isDirty("brightness")){const t=this.get("brightness",1);1!=t&&(i+=" brightness("+t+")")}if(this.isDirty("contrast")){const t=this.get("contrast",1);1!=t&&(i+=" contrast("+t+")")}if(this.isDirty("sepia")){const t=this.get("sepia",0);0!=t&&(i+=" sepia("+t+")")}if(this.isDirty("hue")){const t=this.get("hue",0);0!=t&&(i+=" hue-rotate("+t+"deg)")}if(this.isDirty("invert")){const t=this.get("invert",0);0!=t&&(i+=" invert("+t+")")}if(i&&(t.filter=i),this.isDirty("cursorOverStyle")&&(t.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new h.FV([e.on("focus",(()=>{this.showTooltip()})),e.on("blur",(()=>{this.hideTooltip()}))]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(e.on("blur",(()=>{this.setPrivateRaw("touchHovering",!1)}))),this._disposers.push(e.once("boundschanged",(()=>{this.markDirtyAccessibility()})))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(t.exportable=this.get("exportable")),this.isDirty("interactive")){const t=this.events;this.get("interactive")&&!t.isDisposed()?this._hoverDp=new h.FV([t.on("click",(t=>{c.isTouchEvent(t.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout((()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}),10))})),t.on("globalpointerup",(t=>{c.isTouchEvent(t.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})),this._isDown&&this._handleUp(t)})),t.on("pointerover",(()=>{this._handleOver()})),t.on("pointerout",(()=>{this._handleOut()})),t.on("pointerdown",(t=>{this._handleDown(t)}))]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}dragStart(t){this._dragEvent=t,this.events.stopParentDispatch()}dragStop(t){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const e="dragstop";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(t){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const e=c.getPointerId(t.originalEvent);delete this._downPoints[e],0==p.keys(this._downPoints).length&&(this._isDown=!1)}}_hasMoved(t){const e=c.getPointerId(t.originalEvent),i=this._downPoints[e];if(i){const e=Math.abs(i.x-t.point.x),s=Math.abs(i.y-t.point.y);return e>5||s>5}return!1}_hasDown(){return p.keys(this._downPoints).length>0}_handleDown(t){const e=this.parent;if(e&&!this.get("draggable")&&e._handleDown(t),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:t.point.x,y:t.point.y},this._isDown=!0;const e=c.getPointerId(t.originalEvent);this._downPoints[e]={x:t.point.x,y:t.point.y}}}dragMove(t){let e=this._dragEvent;if(e){if(e.simulated&&!t.simulated)return!0;let i=0,s=this.parent,n=1;for(;null!=s;)i+=s.get("rotation",0),s=s.parent,s&&(n*=s.get("scale",1));let r=(t.point.x-e.point.x)/n,o=(t.point.y-e.point.y)/n;const a=this.events;if(e.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}if(this._isDragging){let e=this._dragPoint;this.set("x",e.x+r*g.cos(i)+o*g.sin(i)),this.set("y",e.y+o*g.cos(i)-r*g.sin(i));const s="dragged";a.isEnabled(s)&&a.dispatch(s,{type:s,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}else if(Math.hypot(r,o)>5){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let t=this.parent,e=0;for(;;){if(!t)return e;++e,t=t.parent}}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const t=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),t.isMeasured=!0,t.invalidateBounds();const e=this.parent;e&&"absolute"!=this.get("position")&&(null==e.get("width")||null==e.get("height")||e.get("layout"))&&e.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const t=this._adjustedLocalBounds;let e;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),e=this._adjustedLocalBounds):(e={left:0,right:0,top:0,bottom:0},this._localBounds=e,this._adjustedLocalBounds=e),!t||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom){const t="boundschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(t){let e=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));d.isNumber(e)&&t.right-t.left0?t.right=t.left+s:t.left=t.right+s),d.isNumber(n)&&(n>0?t.bottom=t.top+n:t.top=t.bottom+n)}_removeParent(t){t&&(t.children.removeValue(this),u.removeFirst(t._percentageSizeChildren,this),u.removeFirst(t._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(t){if(!this.isDisposed()){const e=this.getTooltip(),i=this.get("tooltipText"),s=this.get("tooltipHTML");if((i||s)&&e){const n=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);if("fixed"!=n&&t||(this._display._setMatrix(),t=this.toGlobal(r._getTooltipPoint())),"pointer"==n){const e=this.getPrivate("lastTooltipCoords");if(e&&e.x==t.x&&e.y==t.y)return;this.setPrivate("lastTooltipCoords",t)}e.set("pointTo",t),e.set("tooltipTarget",r),e.get("x")||e.set("x",t.x),e.get("y")||e.set("y",t.y),i&&e.label.set("text",i),s&&e.label.set("html",s);const o=this.dataItem;if(o&&e.label._setDataItem(o),"always"==this.get("showTooltipOn")&&(t.x<0||t.x>this._root.width()||t.y<0||t.y>this._root.height()))return void this.hideTooltip();e.label.text.markDirtyText();const a=e.show();return this.setPrivateRaw("showingTooltip",!0),a}}}hideTooltip(){const t=this.getTooltip();if(t&&(this.removePrivate("lastTooltipCoords"),t.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==t)){let e=t.get("keepTargetHover")&&0==t.get("stateAnimationDuration",0)?400:void 0;const i=t.hide(e);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){const t=this._localBounds;if(t){let e=0,i=0;return this.get("isMeasured")?(e=t.left+c.relativeToValue(this.get("tooltipX",0),t.right-t.left),i=t.top+c.relativeToValue(this.get("tooltipY",0),t.bottom-t.top)):(e=c.relativeToValue(this.get("tooltipX",0),this.width()),i=c.relativeToValue(this.get("tooltipY",0),this.height())),{x:e,y:i}}return{x:0,y:0}}getTooltip(){let t=this.get("tooltip");if(t)return t;{let t=this.parent;if(t)return t.getTooltip()}}_updatePosition(){const t=this.parent;let e=this.get("dx",0),i=this.get("dy",0),s=this.get("x"),n=this.getPrivate("x"),r=0,a=0;const h=this.get("position");s instanceof o.gG&&(s=t?t.innerWidth()*s.value+t.get("paddingLeft",0):0),d.isNumber(s)?r=s+e:null!=n?r=n:t&&"relative"==h&&(r=t.get("paddingLeft",0)+e);let l=this.get("y"),c=this.getPrivate("y");l instanceof o.gG&&(l=t?t.innerHeight()*l.value+t.get("paddingTop",0):0),d.isNumber(l)?a=l+i:null!=c?a=c:t&&"relative"==h&&(a=t.get("paddingTop",0)+i);const u=this._display;if(u.x!=r||u.y!=a){u.invalidateBounds(),u.x=r,u.y=a;const t="positionchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let t=this.get("x"),e=this.getPrivate("x");const i=this.parent;return i?t instanceof o.gG?c.relativeToValue(t,i.innerWidth())+i.get("paddingLeft",0):d.isNumber(t)?t:null!=e?e:i.get("paddingLeft",this._display.x):this._display.x}y(){let t=this.getPrivate("y");if(null!=t)return t;let e=this.get("y");const i=this.parent;return i?e instanceof o.gG?c.relativeToValue(e,i.innerHeight())+i.get("paddingTop",0):d.isNumber(e)?e:null!=t?t:i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const t=this.get("tooltip");t&&t.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const t=this._adjustedLocalBounds,e=this.x(),i=this.y();return{left:t.left+e,right:t.right+e,top:t.top+i,bottom:t.bottom+i}}globalBounds(){const t=this.localBounds(),e=this.toGlobal({x:t.left,y:t.top}),i=this.toGlobal({x:t.right,y:t.top}),s=this.toGlobal({x:t.right,y:t.bottom}),n=this.toGlobal({x:t.left,y:t.bottom});return{left:Math.min(e.x,i.x,s.x,n.x),top:Math.min(e.y,i.y,s.y,n.y),right:Math.max(e.x,i.x,s.x,n.x),bottom:Math.max(e.y,i.y,s.y,n.y)}}_onShow(t){}_onHide(t){}appear(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.hide(0),e?new Promise(((i,s)=>{this.setTimeout((()=>{i(this.show(t))}),e)})):this.show(t)}))}show(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(t);const e=this.states.applyAnimate("default",t);yield(0,l.ne)(e),this._isShowing=!1}}))}hide(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let e=this.states.lookup("hidden");e||(e=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(t);const i=this.states.applyAnimate("hidden",t);yield(0,l.ne)(i),this._isHiding=!1}}))}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const t=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*t:t}compositeScale(){const t=this.get("scale",1);return this._parent?this._parent.compositeScale()*t:t}compositeRotation(){const t=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+t:t}width(){let t=this.get("width"),e=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),s=this.getPrivate("width"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerWidth()*t.value:this._root.width()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}maxWidth(){let t=this.get("maxWidth",this.getPrivate("maxWidth"));if(d.isNumber(t))return t;{let t=this.get("width");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerWidth():this._root.width()}maxHeight(){let t=this.get("maxHeight",this.getPrivate("maxHeight"));if(d.isNumber(t))return t;{let t=this.get("height");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerHeight():this._root.height()}height(){let t=this.get("height"),e=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),s=this.getPrivate("height"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerHeight()*t.value:this._root.height()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}_findStaticTemplate(t){return this._templateField&&t(this._templateField)?this._templateField:super._findStaticTemplate(t)}_walkParents(t){(this._parent||this._virtualParent)&&this._walkParent(t)}_walkParent(t){this._parent?this._parent._walkParent(t):this._virtualParent&&this._virtualParent._walkParent(t),t(this)}set virtualParent(t){this._virtualParent!==t&&(this._virtualParent=t,this._applyThemes())}get parent(){return this._parent}_setParent(t,e=!1){const i=this._parent;t!==i&&(this.markDirtyBounds(),t.markDirty(),this._parent=t,e&&(this._removeParent(i),t&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(t){return this._display.toGlobal(t)}toLocal(t){return this._display.toLocal(t)}_getDownPoint(){const t=this._getDownPointId();if(t)return this._downPoints[t]}_getDownPointId(){if(this._downPoints)return p.keysOrdered(this._downPoints,((t,e)=>t>e?1:t{this._resize(t.target,-1)})),this.gripR.events.on("dragged",(t=>{this._resize(t.target,1)})),this.gripL.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripR.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripT.events.on("dragged",(t=>{this._rotate(t,90)})),this.gripB.events.on("dragged",(t=>{this._rotate(t,-90)})),this.gripT.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripB.events.on("dragstart",(t=>{this._resizeStart(t.target)}))}_resizeStart(t){const e=this.get("sprite");e&&(this._is=e.get("scale",1),this._ix=t.x(),this._iw=this.width()/2)}_resize(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=Math.max(.01,this._is*(1+e*(t.x()-this._ix)/this._iw));s?s.set("scale",n):i.set("scale",n),i.states.lookup("default").set("scale",n),this._updatePositions()}}_rotate(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=this.parent;if(n){const r=this.get("rotationStep",10);let o=Math.round((h.getAngle({x:this.x(),y:this.y()},n.toLocal(t.point))+e)/r)*r;s?s.set("rotation",o):i.set("rotation",o),i.states.lookup("default").set("rotation",o),this._updatePositions()}}}_createGrip(t){const e=this.children.push(s.W.new(this._root,{themeTags:["grip",t],setStateOnChildren:!0,draggable:!0}));return e.children.push(r.c.new(this._root,{themeTags:["outline"],centerX:n.CI,centerY:n.CI})),e.children.push(r.c.new(this._root,{centerX:n.CI,centerY:n.CI})),e}_updateChildren(){if(super._updateChildren(),this.isDirty("sprite")){const t=this.get("sprite");if(t){this.show(0),this.setPrivate("visible",!0),this._updatePositions();const e=t.parent;e&&e.children.moveValue(this,0),this._positionDP=t.events.on("positionchanged",(()=>{this._updatePositions()})),this._positionDP=t.events.on("boundschanged",(()=>{this._updatePositions()}))}else this.hide(0),this.setPrivate("visible",!1),this._positionDP&&this._positionDP.dispose()}(this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation"))&&this._updatePositions()}_updatePositions(){const t=this.get("sprite");if(t){let e=t.localBounds(),i=t.get("scale",1),s=20,r=(e.right-e.left)*i+s,o=(e.bottom-e.top)*i+s,a=t.get("rotation",0);const l=this.rectangle;let c=t.get("centerX",n.CI),u=t.get("centerY",n.CI),d=0;c instanceof n.gG&&(d=c.value);let p=0;u instanceof n.gG&&(p=u.value),l.setAll({centerX:c,centerY:u,width:r,height:o}),this.setAll({x:t.x()+s*(d-.5)*h.cos(a)-s*(p-.5)*h.sin(a),y:t.y()+s*(p-.5)*h.cos(a)+s*(d-.5)*h.sin(a),width:r,height:o,rotation:a}),this.gripT.setAll({x:(.5-d)*r,y:-p*o}),this.gripB.setAll({x:(.5-d)*r,y:(1-p)*o}),this.gripL.setAll({x:-d*r,y:(.5-p)*o}),this.gripR.setAll({x:(1-d)*r,y:(.5-p)*o}),this.rectangle.setAll({width:r,height:o})}}}l.className="SpriteResizer",l.classNames=s.W.classNames.concat([l.className])},2036:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(4596),n=i(2132),r=i(5071),o=i(7652),a=i(7449);class h extends s.j{constructor(){super(...arguments),this.textStyle=this._root._renderer.makeTextStyle(),this._display=this._root._renderer.makeText("",this.textStyle),this._textStyles=["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}_updateBounds(){if(this.get("text")){super._updateBounds();let t=this.get("fillGradient");t&&(this._display.style.fill=t.getFill(this))}else{let t={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=t}}_changed(){super._changed(),this._display.clear();let t=this.textStyle;if(this.isDirty("opacity")){let t=this.get("opacity",1);this._display.alpha=t}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),"tooltip"==this.get("role")&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new a.ku((()=>{this._root._removeTooltipElement(this)}))),this.isDirty("width")&&(t.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(t.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(t.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(t.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(t.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(t.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){const e=this.get("fill"),i=this.get("fillGradient"),s=this.get("fillOpacity");if(i){if(e){const t=i.get("stops",[]);t.length&&r.each(t,(t=>{t.color&&!t.colorInherited||!e||(t.color=e,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=s,t.opacityInherited=!0)}))}t.fill=i.getFill(this)}else e&&(t.fill=e)}if(this.isDirty("fillOpacity")){let e=this.get("fillOpacity",1);e&&(t.fillOpacity=e)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(t.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(t.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),r.each(this._textStyles,(e=>{this._dirty[e]&&(t[e]=this.get(e),this.markDirtyBounds())})),t.fontSize=this.get("fontSize"),t.fontFamily=this.get("fontFamily"),this._display.style=t,this.isDirty("role")&&"tooltip"==this.get("role")&&this._root.updateTooltip(this)}_getText(){let t=this.get("text","");return this.get("maxChars")&&(t=o.truncateTextWithEllipsis(t,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?(0,n.q)(this,t):t}_getAccessibleText(){const t=this.get("ariaLabel");return void 0!==t?this.get("populateText")?(0,n.q)(this,t):t:this._getText()}markDirtyText(){this._display.text=this._getText(),"tooltip"==this.get("role")&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(t){super._setDataItem(t),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}h.className="Text",h.classNames=s.j.classNames.concat([h.className])},2438:function(t,e,i){"use strict";i.d(e,{d:function(){return n}});var s=i(2077);class n extends s.x{}n.className="Tick",n.classNames=s.x.classNames.concat([n.className])},2876:function(t,e,i){"use strict";i.d(e,{u:function(){return d}});var s=i(7449),n=i(962),r=i(8931),o=i(8777),a=i(6245),h=i(1112),l=i(751),c=i(5071),u=i(7652);class d extends o.W{constructor(t,e,i,s=[]){super(t,e,i,s),this._fx=0,this._fy=0,this._w=0,this._h=0,this._htmlContentHovered=!1}_afterNew(){this._settings.themeTags=u.mergeTags(this._settings.themeTags,["tooltip"]),super._afterNew(),this._setDefaultFn("background",(()=>r.i.new(this._root,{}))).set("themeTags",["tooltip","background"]),this._label=this.children.push(n._.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",(()=>{this._updateBackground()}))),this._disposers.push(this.on("bounds",(()=>{this._updateBackground()}))),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",(t=>{t&&(this._disposers.push(u.addEventListener(t,"pointerover",(t=>{this._htmlContentHovered=!0}))),this._disposers.push(u.addEventListener(t,"pointerout",(t=>{this._htmlContentHovered=!1}))))}))),this.on("visible",(t=>{this._handleReaderAnnouncement()})),this.label.events.on("dataitemchanged",(t=>{this._handleReaderAnnouncement()})),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),c.remove(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width"),null!=this.get("labelText")&&this.label.set("text",this.get("labelText")),null!=this.get("labelHTML")&&this.label.set("html",this.get("labelHTML")),null!=this.get("labelAriaLabel")&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover"))if(this.get("keepTargetHover")){const t=this.get("background");this._keepHoverDp=new s.FV([t.events.on("pointerover",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),e.hover())})),t.events.on("pointerout",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),this._htmlContentHovered||e.unhover())}))]),this.label.onPrivate("htmlElement",(e=>{this._keepHoverDp&&e&&this._keepHoverDp.disposers.push(u.addEventListener(e,"pointerleave",(e=>{const i=this.root._renderer.getEvent(e);t.events.dispatch("pointerout",{type:"pointerout",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))}))}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let t=this.get("tooltipTarget");const e=this.get("background");let i,s;if(t&&e){if(i=t.get("fill"),s=t.get("stroke"),null==i&&(i=s),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),null!=i&&e.set("fill",i),this._fillDp=t.on("fill",(t=>{null!=t&&(e.set("fill",t),this._updateTextColor(t))})),this._disposers.push(this._fillDp)),this.get("getFillGradientFromSprite")){this._fillGrDp&&this._fillGrDp.dispose();let i=t.get("fillGradient");null!=i&&e.set("fillGradient",i),this._fillGrDp=t.on("fillGradient",(t=>{null!=t&&e.set("fillGradient",t)})),this._disposers.push(this._fillGrDp)}this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),null!=i&&e.set("stroke",i),this._strokeDp=t.on("fill",(t=>{null!=t&&e.set("stroke",t)})),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),null!=i&&this.label.set("fill",i),this._labelDp=t.on("fill",(t=>{null!=t&&this.label.set("fill",t)})),this._disposers.push(this._labelDp))}this._updateTextColor(i)}_updateTextColor(t){this.get("autoTextColor")&&(null==t&&(t=this.get("background").get("fill")),null==t&&(t=this._root.interfaceColors.get("background")),t instanceof h.Il&&this.label.set("fill",h.Il.alternative(t,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(t){super._setDataItem(t),this.label._setDataItem(t)}_updateBackground(){super.updateBackground();const t=this._root.container;if(t){let e=.5,i=.5,s=this.get("centerX");s instanceof a.gG&&(e=s.value);let n=this.get("centerY");n instanceof a.gG&&(i=n.value);let o=t.width(),h=t.height(),c=this.parent,u=0,d=0;if(c){u=c.x(),d=c.y();const t=c.get("layerMargin");t&&(u+=t.left||0,d+=t.top||0,o+=(t.left||0)+(t.right||0),h+=(t.top||0)+(t.bottom||0))}const p=this.get("bounds",{left:-u,top:-d,right:o-u,bottom:h-d});this._updateBounds();let g=this.width(),f=this.height();0===g&&(g=this._w),0===f&&(f=this._h);let _=this.get("pointTo",{x:o/2,y:h/2}),m=_.x,y=_.y,v=this.get("pointerOrientation"),w=this.get("background"),b=0,x=0,D=0;w instanceof r.i&&(b=w.get("pointerLength",0),x=w.get("strokeWidth",0)/2,D=x,w.set("width",g),w.set("height",f));let k=0,T=0,M=p.right-p.left,E=p.bottom-p.top;"horizontal"==v||"left"==v||"right"==v?(x=0,"horizontal"==v?m>p.left+M/2?(m-=g*(1-e)+b,D*=-1):m+=g*e+b:"left"==v?m+=g*(1-e)+b:(m-=g*e+b,D*=-1)):(D=0,"vertical"==v?y>p.top+f/2+b?y-=f*(1-i)+b:(y+=f*i+b,x*=-1):"down"==v?y-=f*(1-i)+b:(y+=f*i+b,x*=-1)),m=l.fitToRange(m,p.left+g*e,p.left+M-g*(1-e))+D,y=l.fitToRange(y,p.top+f*i,p.top+E-f*(1-i))-x,k=_.x-m+g*e+D,T=_.y-y+f*i-x,this._fx=m,this._fy=y;const O=this.get("animationDuration",0);if(O>0&&this.get("visible")&&this.get("opacity")>.1){const t=this.get("animationEasing");this.animate({key:"x",to:m,duration:O,easing:t}),this.animate({key:"y",to:y,duration:O,easing:t})}else this.set("x",m),this.set("y",y);w instanceof r.i&&(w.set("pointerX",k),w.set("pointerY",T)),g>0&&(this._w=g),f>0&&(this._h=f)}}}d.className="Tooltip",d.classNames=o.W.classNames.concat([d.className])},941:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){const t=this.width(),e=this.height(),i=this._display;i.moveTo(-t/2,e/2),i.lineTo(0,-e/2),i.lineTo(t/2,e/2),i.lineTo(-t/2,e/2),i.closePath()}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Triangle",n.classNames=s.T.classNames.concat([n.className])},1706:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingTop",0),i=t.innerHeight(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minHeight",t.getPrivate("minHeight",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.height()),i-=e+t.get("marginTop",0)+t.get("marginBottom",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginTop",0)-t.get("marginBottom",0),n=t.get("minHeight",t.getPrivate("minHeight",-1/0)),r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("height",s)}else t._prevSettings.height instanceof r.gG&&t.setPrivate("height",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginTop",0),s=e.top,n=e.bottom,r=t.get("maxHeight");r&&n-s>r&&(n=s+r);let o=t.get("marginBottom",0),h=a+i-s;t.setPrivate("y",h),a=h+n+o}else t.setPrivate("y",void 0)}))}}o.className="VerticalLayout",o.classNames=s.A.classNames.concat([o.className])},6044:function(t,e,i){"use strict";i.d(e,{H:function(){return h}});var s=i(8777),n=i(8054),r=i(1479),o=i(7449),a=i(2647);class h extends s.W{constructor(){super(...arguments),this.homeButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["home"]})),this.plusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["plus"]})),this.minusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["minus"]}))}_afterNew(){super._afterNew(),this.set("position","absolute"),this.set("layout",this._root.verticalLayout),this.addTag("zoomtools"),this.plusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.minusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.homeButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("target")){const t=this.get("target"),e=this._prevSettings.target;t&&(t instanceof a.Y&&(this._targetDisposer=this.addDisposer(t.contents.on("scale",(e=>{e==t.get("minZoomLevel")?this.minusButton.set("disabled",!0):this.minusButton.set("disabled",!1),e==t.get("maxZoomLevel")?this.plusButton.set("disabled",!0):this.plusButton.set("disabled",!1)}))),this.root.events.once("frameended",(()=>{t.get("scale")==t.get("minZoomLevel")&&this.minusButton.set("disabled",!0)}))),this._disposer=new o.FV([this.plusButton.events.on("click",(()=>{t.zoomIn()})),this.minusButton.events.on("click",(()=>{t.zoomOut()})),this.homeButton.events.on("click",(()=>{t.goHome()}))])),e&&(this._disposer&&this._disposer.dispose(),this._targetDisposer&&this._targetDisposer.dispose())}}}h.className="ZoomTools",h.classNames=s.W.classNames.concat([h.className])},2647:function(t,e,i){"use strict";i.d(e,{Y:function(){return u}});var s=i(8777),n=i(6245),r=i(7142),o=i(1112),a=i(7652),h=i(751),l=i(256),c=i(5040);class u extends s.W{constructor(){super(...arguments),this._movePoints={},this._downScale=1,this._downX=0,this._downY=0,this.contents=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,x:0,y:0,draggable:!0,background:r.A.new(this._root,{fill:(0,o.$_)(16777215),fillOpacity:0})}))}_afterNew(){super._afterNew();const t=this.contents.events;this._disposers.push(t.on("pointerdown",(t=>{this._handleThisDown(t)}))),this._disposers.push(t.on("globalpointerup",(t=>{this._handleThisUp(t)}))),this._disposers.push(t.on("globalpointermove",(t=>{this._handleThisMove(t)})));const e=this.contents.get("background");e&&(e.adapters.add("width",(t=>20*Number(t))),e.adapters.add("height",(t=>20*Number(t))),e.adapters.add("x",(t=>Number(t)-e.width()/2)),e.adapters.add("y",(t=>Number(t)-e.height()/2)));const i=this.contents;i.adapters.add("x",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.width();t=Math.min(n*s,t),t=Math.max(this.width()-n*e*(1+s),t)}return t})),i.adapters.add("y",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.height();t=Math.min(n*s,t),t=Math.max(this.height()-n*e*(1+s),t)}return t}))}_prepareChildren(){super._prepareChildren(),this.isDirty("wheelable")&&this._handleSetWheel(),this.contents._display.cancelTouch=this.get("pinchZoom",!1)}_handleSetWheel(){this.get("wheelable")?(this._wheelDp&&this._wheelDp.dispose(),this._wheelDp=this.events.on("wheel",(t=>{const e=t.originalEvent;if(!a.isLocalEvent(e,this))return;e.preventDefault();const i=this.toLocal(t.point);this._handleWheelZoom(e.deltaY,i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_handleWheelZoom(t,e){let i=this.get("zoomStep",2),s=this.contents.get("scale",1),n=s;t>0?n=s/i:t<0&&(n=s*i),n!=s&&this.zoomToPoint(e,n)}zoomToPoint(t,e){e&&(e=h.fitToRange(e,this.get("minZoomLevel",1),this.get("maxZoomLevel",32)));const i=this.contents.get("scale",1);let s=t.x,n=t.y,r=s,o=n;const a=this.contents;let l=r-(s-a.x())/i*e,c=o-(n-a.y())/i*e;return this._animateTo(l,c,e),this._za}zoomIn(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)*this.get("zoomStep",2))}zoomOut(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)/this.get("zoomStep",2))}goHome(){return this._animateTo(0,0,1)}_animateTo(t,e,i){const s=this.get("animationDuration",0),n=this.get("animationEasing"),r=this.contents;this._txa=r.animate({key:"x",to:t,duration:s,easing:n}),this._tya=r.animate({key:"y",to:e,duration:s,easing:n}),this._za=r.animate({key:"scale",to:i,duration:s,easing:n})}_handleThisUp(t){this._downPoints={}}_handleThisDown(t){const e=this.contents;this._downScale=e.get("scale",1);const i=e._downPoints;let s=l.keys(i).length;if(1==s){let e=i[1];e||(e=i[0]),e&&e.x==t.point.x&&e.y==t.point.y&&(s=0)}if(s>0){this._downX=e.x(),this._downY=e.y();const t=e._getDownPointId();if(t){let i=this._movePoints[t];i&&(e._downPoints[t]=i)}}}_handleThisMove(t){const e=t.originalEvent.pointerId;this.get("pinchZoom")&&e&&(this._movePoints[e]=t.point,l.keys(this.contents._downPoints).length>1)&&this._handlePinch()}_handlePinch(){let t=0,e=[],i=[];if(l.each(this.contents._downPoints,((s,n)=>{e[t]=n;let r=this._movePoints[s];r&&(i[t]=r),t++})),e.length>1&&i.length>1){this.contents._isDragging=!1;let t=e[0],s=e[1],n=i[0],r=i[1];if(t&&s&&n&&r){t=this.toLocal(t),s=this.toLocal(s),n=this.toLocal(n),r=this.toLocal(r);let e=Math.hypot(s.x-t.x,s.y-t.y),i=Math.hypot(r.x-n.x,r.y-n.y)/e*this._downScale,o={x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2},a={x:t.x+(s.x-t.x)/2,y:t.y+(s.y-t.y)/2},h=this._downX||0,l=this._downY||0,c=this._downScale,u=o.x-(-h+a.x)/c*i,d=o.y-(-l+a.y)/c*i;this.contents.setAll({x:u,y:d,scale:i})}}}}u.className="ZoomableContainer",u.classNames=s.W.classNames.concat([u.className])},4102:function(t,e,i){"use strict";i.d(e,{mM:function(){return at},uK:function(){return rt}});var s=i(4680),n=i(1112);class r{constructor(t=1,e=0,i=0,s=1,n=0,r=0){this.a=t,this.b=e,this.c=i,this.d=s,this.tx=n,this.ty=r}setTransform(t,e,i,s,n,r=1){this.a=Math.cos(n)*r,this.b=Math.sin(n)*r,this.c=-Math.sin(n)*r,this.d=Math.cos(n)*r,this.tx=t-(i*this.a+s*this.c),this.ty=e-(i*this.b+s*this.d)}apply(t){return{x:this.a*t.x+this.c*t.y+this.tx,y:this.b*t.x+this.d*t.y+this.ty}}applyInverse(t){const e=1/(this.a*this.d+this.c*-this.b);return{x:this.d*e*t.x+-this.c*e*t.y+(this.ty*this.c-this.tx*this.d)*e,y:this.a*e*t.y+-this.b*e*t.x+(-this.ty*this.a+this.tx*this.b)*e}}append(t){const e=this.a,i=this.b,s=this.c,n=this.d;this.a=t.a*e+t.b*s,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*s,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*s+this.tx,this.ty=t.tx*i+t.ty*n+this.ty}prepend(t){const e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){const e=this.a,i=this.c;this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty}copyFrom(t){this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty}}var o=i(6245),a=i(7449),h=i(7255),l=i(7652),c=i(5071),u=i(256),d=i(5040),p=i(751),g=2*Math.PI,f=function(t,e,i,s,n,r,o){var a=t.x,h=t.y;return{x:s*(a*=e)-n*(h*=i)+r,y:n*a+s*h+o}},_=function(t,e){var i=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),s=Math.cos(t),n=Math.sin(t),r=Math.cos(t+e),o=Math.sin(t+e);return[{x:s-n*i,y:n+s*i},{x:r+o*i,y:o-r*i},{x:r,y:o}]},m=function(t,e,i,s){var n=t*i+e*s;return n>1&&(n=1),n<-1&&(n=-1),(t*s-e*i<0?-1:1)*Math.acos(n)},y=function(t){var e=t.px,i=t.py,s=t.cx,n=t.cy,r=t.rx,o=t.ry,a=t.xAxisRotation,h=void 0===a?0:a,l=t.largeArcFlag,c=void 0===l?0:l,u=t.sweepFlag,d=void 0===u?0:u,p=[];if(0===r||0===o)return[];var y=Math.sin(h*g/360),v=Math.cos(h*g/360),w=v*(e-s)/2+y*(i-n)/2,b=-y*(e-s)/2+v*(i-n)/2;if(0===w&&0===b)return[];r=Math.abs(r),o=Math.abs(o);var x=Math.pow(w,2)/Math.pow(r,2)+Math.pow(b,2)/Math.pow(o,2);x>1&&(r*=Math.sqrt(x),o*=Math.sqrt(x));var D=function(t,e,i,s,n,r,o,a,h,l,c,u){var d=Math.pow(n,2),p=Math.pow(r,2),f=Math.pow(c,2),_=Math.pow(u,2),y=d*p-d*_-p*f;y<0&&(y=0),y/=d*_+p*f;var v=(y=Math.sqrt(y)*(o===a?-1:1))*n/r*u,w=y*-r/n*c,b=l*v-h*w+(t+i)/2,x=h*v+l*w+(e+s)/2,D=(c-v)/n,k=(u-w)/r,T=(-c-v)/n,M=(-u-w)/r,E=m(1,0,D,k),O=m(D,k,T,M);return 0===a&&O>0&&(O-=g),1===a&&O<0&&(O+=g),[b,x,E,O]}(e,i,s,n,r,o,c,d,y,v,w,b),k=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],s=!0,n=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);s=!0);}catch(t){n=!0,r=t}finally{try{!s&&a.return&&a.return()}finally{if(n)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(D,4),T=k[0],M=k[1],E=k[2],O=k[3],P=Math.abs(O)/(g/4);Math.abs(1-P)<1e-7&&(P=1);var S=Math.max(Math.ceil(P),1);O/=S;for(var N=0;N1){const e=/^([01])([01])(.*)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t.splice(i,0,e[2]),++i,e[3].length>0?t[i]=e[3]:t.splice(i,1))}if(++i,s=t[i],s.length>1){const e=/^([01])(.+)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t[i]=e[2])}}}function D(t){if(0===t||1===t)return t;throw new Error("Flag must be 0 or 1")}function k(t,e){for(;(!t.interactive||e(t))&&t._parent;)t=t._parent}function T(t,e,i){return l.addEventListener(t,l.getRendererEvent(e),(t=>{const e=l.getEventTarget(t);let s=t.touches;s?(0==s.length&&(s=t.changedTouches),i(c.copy(s),e)):i([t],e)}))}function M(t){const e=document.createElement("canvas");e.width=1,e.height=1;const i=e.getContext("2d",{willReadFrequently:!0});i.drawImage(t,0,0,1,1);try{return i.getImageData(0,0,1,1),!1}catch(e){return console.warn('Image "'+t.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function E(t){t.width=0,t.height=0,t.style.width="0px",t.style.height="0px"}function O(t){return Math.floor(t)+.5}class P{constructor(){this._x=0,this._y=0}get x(){return this._x}get y(){return this._y}set x(t){this._x=t}set y(t){this._y=t}}class S extends a.KK{constructor(t){super(),this.mask=null,this.visible=!0,this.exportable=!0,this.interactive=!1,this.inactive=null,this.wheelable=!1,this.cancelTouch=!1,this.isMeasured=!1,this.buttonMode=!1,this.alpha=1,this.compoundAlpha=1,this.angle=0,this.scale=1,this.x=0,this.y=0,this.crisp=!1,this.pivot=new P,this._localMatrix=new r,this._matrix=new r,this._uMatrix=new r,this._renderer=t}subStatus(t){return{inactive:null==this.inactive?t.inactive:this.inactive,layer:this._layer||t.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let t=this;for(;;){if(t._layer)return t._layer;if(!t._parent)return this._renderer.defaultLayer;t=t._parent}}setLayer(t,e){if(null==t)this._layer=void 0;else{const i=!0;this._layer=this._renderer.getLayer(t,i),this._layer.visible=i,this._layer.margin=e,e&&l.setInteractive(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost()}}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(t){}_getColorId(){return void 0===this._colorId&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(t){return!t.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(t){return this._isInteractive(t)}contains(t){for(;;){if(t===this)return!0;if(!t._parent)return!1;t=t._parent}}toGlobal(t){return this._matrix.apply(t)}toLocal(t){return this._matrix.applyInverse(t)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){if(!this._localBounds){const t=1e7;this._localBounds={left:t,top:t,right:-t,bottom:-t},this._addBounds(this._localBounds)}return this._localBounds}getAdjustedBounds(t){this._setMatrix();const e=this.getLocalMatrix(),i=e.apply({x:t.left,y:t.top}),s=e.apply({x:t.right,y:t.top}),n=e.apply({x:t.right,y:t.bottom}),r=e.apply({x:t.left,y:t.bottom});return{left:Math.min(i.x,s.x,n.x,r.x),top:Math.min(i.y,s.y,n.y,r.y),right:Math.max(i.x,s.x,n.x,r.x),bottom:Math.max(i.y,s.y,n.y,r.y)}}on(t,e,i){return this.interactive?this._renderer._addEvent(this,t,e,i):new a.ku((()=>{}))}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(t,e){const i=this._matrix;let s=i.tx*e,n=i.ty*e;this.crisp&&(s=O(s),n=O(n)),t.setTransform(i.a*e,i.b*e,i.c*e,i.d*e,s,n)}_transformMargin(t,e,i){const s=this._matrix;t.setTransform(s.a*e,s.b*e,s.c*e,s.d*e,(s.tx+i.left)*e,(s.ty+i.top)*e)}_transformLayer(t,e,i){i.margin?this._transformMargin(t,i.scale||e,i.margin):this._transform(t,i.scale||e)}render(t,e=0){if(this.visible&&(!1!==this.exportable||!this._renderer._omitTainted)){this._setMatrix();const i=this.subStatus(t),s=this._renderer.resolution,n=this._renderer.layers,r=this._renderer._ghostLayer,o=r.context,a=this.mask;a&&a._setMatrix(),c.each(n,(t=>{if(t){const e=t.context;e.save(),a&&(a._transformLayer(e,s,t),a._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(e,s,t),this.filter&&(e.filter=this.filter)}})),o.save(),a&&this._isInteractiveMask(i)&&(a._transformMargin(o,s,r.margin),a._runPath(o),o.clip()),this._transformMargin(o,s,r.margin),i.layer.order>0&&!e&&c.move(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,e),o.restore(),c.each(n,(t=>{t&&t.context.restore()}))}}_render(t,e=0){!1===this.exportable&&(t.layer.tainted=!0)}_ghostOnly(t=0){return t>0}_drawGhost(t,e=0){const i=this._isInteractive(t),s=t.layer.order||0;return!(!i||(0!=s||this._ghostOnly(e))&&s!=e)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some((t=>t.value===this))}shouldCancelTouch(){const t=this._renderer;return!(t.tapToActivate&&!t._touchActive)&&(!!this.cancelTouch||!!this._parent&&this._parent.shouldCancelTouch())}}class N extends S{constructor(){super(...arguments),this.interactiveChildren=!0,this._children=[]}_isInteractiveMask(t){return this.interactiveChildren||super._isInteractiveMask(t)}addChild(t){t._parent=this,this._children.push(t),t._layer&&this.registerChildLayer(t._layer)}addChildAt(t,e){t._parent=this,this._children.splice(e,0,t),t._layer&&this.registerChildLayer(t._layer)}removeChild(t){t._parent=void 0,c.removeFirst(this._children,t)}_render(t,e){super._render(t);const i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,c.each(this._children,(i=>{i.compoundAlpha=this.compoundAlpha*this.alpha,i.render(t,e)})),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(t){this._childLayers||(this._childLayers=[]),c.pushOne(this._childLayers,t),this._parent&&this._parent.registerChildLayer(t)}markDirtyLayer(t=!1){super.markDirtyLayer(),t&&this._childLayers&&c.each(this._childLayers,(t=>t.dirty=!0))}_dispose(){super._dispose(),this._childLayers&&c.each(this._childLayers,(t=>{t.dirty=!0}))}}function C(t,e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.right=Math.max(t.right,e.x),t.bottom=Math.max(t.bottom,e.y)}class L{colorize(t,e){}colorizeGhost(t,e){this.colorize(t,e)}path(t){}pathGhost(t){this.path(t)}addBounds(t){}}class A extends L{colorize(t,e){t.beginPath()}}class R extends L{constructor(t){super(),this.color=t}colorize(t,e){t.fillStyle=void 0!==e?e:this.color}}class U extends L{constructor(t){super(),this.clearShadow=t}colorize(t,e){t.fill(),this.clearShadow&&(t.shadowColor="",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}}class B extends L{colorize(t,e){t.stroke()}}class F extends L{constructor(t,e,i,s){super(),this.width=t,this.color=e,this.lineJoin=i,this.lineCap=s}colorize(t,e){t.strokeStyle=void 0!==e?e:this.color,t.lineWidth=this.width,this.lineJoin&&(t.lineJoin=this.lineJoin),this.lineCap&&(t.lineCap=this.lineCap)}}class I extends L{constructor(t){super(),this.dash=t}colorize(t,e){t.setLineDash(this.dash)}}class H extends L{constructor(t){super(),this.dashOffset=t}colorize(t,e){t.lineDashOffset=this.dashOffset}}class z extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.width=i,this.height=s}path(t){t.rect(this.x,this.y,this.width,this.height)}addBounds(t){const e=this.x,i=this.y,s=e+this.width,n=i+this.height;C(t,{x:e,y:i}),C(t,{x:s,y:i}),C(t,{x:e,y:n}),C(t,{x:s,y:n})}}class G extends L{constructor(t,e,i){super(),this.x=t,this.y=e,this.radius=i}path(t){t.moveTo(this.x+this.radius,this.y),t.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radius,y:this.y-this.radius}),C(t,{x:this.x+this.radius,y:this.y+this.radius})}}class V extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.radiusX=i,this.radiusY=s}path(t){t.ellipse(0,0,this.radiusX,this.radiusY,0,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radiusX,y:this.y-this.radiusY}),C(t,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class W extends L{constructor(t,e,i,s,n,r){super(),this.cx=t,this.cy=e,this.radius=i,this.startAngle=s,this.endAngle=n,this.anticlockwise=r}path(t){this.radius>0&&t.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(t){let e=p.getArcBounds(this.cx,this.cy,this.startAngle*p.DEGREES,this.endAngle*p.DEGREES,this.radius);C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}class Y extends L{constructor(t,e,i,s,n){super(),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.radius=n}path(t){this.radius>0&&t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(t){}}class j extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.lineTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class X extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.moveTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class $ extends L{path(t){t.closePath()}}class Z extends L{constructor(t,e,i,s,n,r){super(),this.cpX=t,this.cpY=e,this.cpX2=i,this.cpY2=s,this.toX=n,this.toY=r}path(t){t.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.cpX2,y:this.cpY2}),C(t,{x:this.toX,y:this.toY})}}class K extends L{constructor(t,e,i,s){super(),this.cpX=t,this.cpY=e,this.toX=i,this.toY=s}path(t){t.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.toX,y:this.toY})}}class q extends L{constructor(t,e,i,s,n){super(),this.color=t,this.blur=e,this.offsetX=i,this.offsetY=s,this.opacity=n}colorize(t,e){this.opacity&&(t.fillStyle=this.color),t.shadowColor=this.color,t.shadowBlur=this.blur,t.shadowOffsetX=this.offsetX,t.shadowOffsetY=this.offsetY}colorizeGhost(t,e){}}class Q extends L{constructor(t,e,i,s,n){super(),this.image=t,this.width=e,this.height=i,this.x=s,this.y=n}path(t){t.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(t){C(t,{x:this.x,y:this.y}),C(t,{x:this.width,y:this.height})}}class J extends S{constructor(){super(...arguments),this._operations=[],this.blendMode=s.b.NORMAL,this._hasShadows=!1}clear(){super.clear(),this._operations.length=0}_pushOp(t){this._operations.push(t)}beginFill(t,e=1){this._fillAlpha=e,t?t instanceof n.Il?this._pushOp(new R(t.toCSS(e))):(this.isMeasured=!0,this._pushOp(new R(t))):this._pushOp(new R("rgba(0, 0, 0, "+e+")"))}endFill(){this._pushOp(new U(this._hasShadows))}endStroke(){this._pushOp(new B)}beginPath(){this._pushOp(new A)}lineStyle(t=0,e,i=1,s,r){this._strokeAlpha=i,e?e instanceof n.Il?this._pushOp(new F(t,e.toCSS(i),s,r)):this._pushOp(new F(t,e,s,r)):this._pushOp(new F(t,"rgba(0, 0, 0, "+i+")",s,r))}setLineDash(t){this._pushOp(new I(t||[]))}setLineDashOffset(t=0){this._pushOp(new H(t))}drawRect(t,e,i,s){this._pushOp(new z(t,e,i,s))}drawCircle(t,e,i){this._pushOp(new G(t,e,i))}drawEllipse(t,e,i,s){this._pushOp(new V(t,e,i,s))}arc(t,e,i,s,n,r=!1){this._pushOp(new W(t,e,i,s,n,r))}arcTo(t,e,i,s,n){this._pushOp(new Y(t,e,i,s,n))}lineTo(t,e){this._pushOp(new j(t,e))}moveTo(t,e){this._pushOp(new X(t,e))}bezierCurveTo(t,e,i,s,n,r){this._pushOp(new Z(t,e,i,s,n,r))}quadraticCurveTo(t,e,i,s){this._pushOp(new K(t,e,i,s))}closePath(){this._pushOp(new $)}shadow(t,e=0,i=0,s=0,n){this._hasShadows=!0,this._pushOp(new q(n?t.toCSS(n):t.toCSS(this._fillAlpha||this._strokeAlpha),e,i,s))}image(t,e,i,s,n){this._pushOp(new Q(t,e,i,s,n))}svgPath(t){let e=0,i=0,s=null,n=null,r=null,o=null;const a=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,h=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g,l=this._operations.length;try{let l;for(;null!==(l=a.exec(t));){const t=l[1],a=l[2],u=[];for(;null!==(l=h.exec(a));)u.push(l[1]);switch("S"!==t&&"s"!==t&&"C"!==t&&"c"!==t&&(s=null,n=null),"Q"!==t&&"q"!==t&&"T"!==t&&"t"!==t&&(r=null,o=null),t){case"M":b(t,u.length,2),e=+u[0],i=+u[1],this.moveTo(e,i);for(let t=2;t{this.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y),e=t.x,i=t.y}))}break;case"Z":case"z":v(t,u.length,0),this.closePath()}}}catch(e){this._operations.length=l,console.warn("Error when parsing svgPath:\n "+e.message+"\n"+t)}}_runPath(t){t.beginPath(),c.each(this._operations,(e=>{e.path(t)}))}_render(t,e=0){super._render(t);const i=t.layer.dirty,s=this._isInteractive(t),n=this._ghostOnly(e),r=this._drawGhost(t,e);if(i||s||n){const e=t.layer.context,s=this._renderer._ghostLayer.context;let o;i&&!n&&(e.globalCompositeOperation=this.blendMode,e.beginPath()),r&&(s.beginPath(),o=this._getColorId()),c.each(this._operations,(t=>{i&&!n&&(t.path(e),t.colorize(e,void 0)),r&&(t.pathGhost(s),t.colorizeGhost(s,o))}))}}renderDetached(t){if(this.visible){this._setMatrix(),t.save();const e=this.mask;e&&(e._setMatrix(),e._transform(t,1),e._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transform(t,1),this.filter&&(t.filter=this.filter),t.globalCompositeOperation=this.blendMode,t.beginPath(),c.each(this._operations,(e=>{e.path(t),e.colorize(t,void 0)})),t.restore()}}_addBounds(t){this.visible&&this.isMeasured&&c.each(this._operations,(e=>{e.addBounds(t)}))}}class tt extends S{constructor(t,e,i){super(t),this.resolution=1,this.textVisible=!0,this._originalScale=1,this.text=e,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_shared(t){this.style.textAlign&&(t.textAlign=this.style.textAlign),this.style.direction&&(t.direction=this.style.direction),this.style.textBaseline&&(t.textBaseline=this.style.textBaseline)}_prerender(t,e=!1,i=!1){super._render(t);const s=t.layer.context,r=this._renderer._ghostLayer.context,o=this.style;let a=this._getFontStyle(void 0,i);s.font=a,this._isInteractive(t)&&!e&&(r.font=a),o.fill&&(o.fill instanceof n.Il?s.fillStyle=o.fill.toCSS(null!=o.fillOpacity?o.fillOpacity:1):s.fillStyle=o.fill),o.shadowColor&&(t.layer.context.shadowColor=o.shadowColor.toCSS(o.shadowOpacity||1)),o.shadowBlur&&(t.layer.context.shadowBlur=o.shadowBlur),o.shadowOffsetX&&(t.layer.context.shadowOffsetX=o.shadowOffsetX),o.shadowOffsetY&&(t.layer.context.shadowOffsetY=o.shadowOffsetY),this._shared(s),this._isInteractive(t)&&!e&&(r.fillStyle=this._getColorId(),this._shared(r))}_getFontStyle(t,e=!1){const i=this.style;let s=[];return t&&t.fontVariant?s.push(t.fontVariant):i.fontVariant&&s.push(i.fontVariant),e||(t&&t.fontWeight?s.push(t.fontWeight):i.fontWeight&&s.push(i.fontWeight)),t&&t.fontStyle?s.push(t.fontStyle):i.fontStyle&&s.push(i.fontStyle),t&&t.fontSize?(d.isNumber(t.fontSize)&&(t.fontSize=t.fontSize+"px"),s.push(t.fontSize)):i.fontSize&&(d.isNumber(i.fontSize)&&(i.fontSize=i.fontSize+"px"),s.push(i.fontSize)),t&&t.fontFamily?s.push(t.fontFamily):i.fontFamily?s.push(i.fontFamily):s.length&&s.push("Arial"),s.join(" ")}_render(t,e=0){if(this._textInfo||this._measure(t),this.textVisible){const i=this._isInteractive(t),s=t.layer.context,r=t.layer.dirty,o=this._renderer._ghostLayer.context,a=this._ghostOnly(e),l=this._drawGhost(t,e);s.save(),o.save(),this._prerender(t),c.each(this._textInfo,((e,u)=>{c.each(e.textChunks,((c,u)=>{if(c.style&&(s.save(),o.save(),a||(s.font=c.style),this._isInteractive(t)&&(o.font=c.style)),c.fill&&(s.save(),a||(s.fillStyle=c.fill.toCSS())),r&&!a&&s.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),"underline"==c.textDecoration||"line-through"==c.textDecoration){let t=1,i=1,r=c.height;const o=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(o)>-1){const t=this._measureText(c.text,s);c.width=t.actualBoundingBoxLeft+t.actualBoundingBoxRight}let l,u=c.offsetX;switch(this.style.textAlign){case"right":case"end":u-=c.width;break;case"center":u-=c.width/2}if(c.style)switch(h.V.getTextStyle(c.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":t=2}r&&(i=r/20),l="line-through"==c.textDecoration?t+e.offsetY+c.offsetY-c.height/2:t+1.5*i+e.offsetY+c.offsetY,a||(s.save(),s.beginPath(),c.fill?s.strokeStyle=c.fill.toCSS():this.style.fill&&this.style.fill instanceof n.Il&&(s.strokeStyle=this.style.fill.toCSS()),s.lineWidth=t*i,s.moveTo(u,l),s.lineTo(u+c.width,l),s.stroke(),s.restore())}i&&this.interactive&&l&&o.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),c.fill&&s.restore(),c.style&&(s.restore(),o.restore())}))})),s.restore(),o.restore()}}_addBounds(t){if(this.visible&&this.isMeasured){const e=this._measure({inactive:this.inactive,layer:this.getLayer()});C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction;this._textInfo=[];const n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=d.isNumber(r)&&("wrap"==n||"wrap-no-break"==n);e.save(),i.save(),this._prerender(t,!0,this._ignoreFontWeight());const p="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",g=this.text.toString().replace(/\r/g,"").split(/\n/);let f,_=!0,m=0,y=0,v=0;c.each(g,((t,s)=>{let n;for(n=""==t?[{type:"value",text:""}]:h.V.chunk(t,!1,this.style.ignoreFormatting);n.length>0;){let t={offsetY:v,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const s=this._measureText(p,e),g=s.actualBoundingBoxAscent+s.actualBoundingBoxDescent;let w;t.height=g,t.ascent=s.actualBoundingBoxAscent;let b,x,D,k=this.style.textDecoration,T=!1,M=!0,E=[];c.eachContinue(n,((s,o)=>{if("format"==s.type)if("[/]"==s.text)_||(e.restore(),i.restore(),_=!0),b=void 0,f=void 0,x=void 0,k=this.style.textDecoration,D=void 0,w=s.text;else{_||(e.restore(),i.restore());let n=h.V.getTextStyle(s.text);const r=this._getFontStyle(n);e.save(),i.save(),e.font=r,f=r,w=s.text,n.textDecoration&&(k=n.textDecoration),n.fill&&(b=n.fill),n.width&&(x=d.toNumber(n.width)),n.verticalAlign&&(D=n.verticalAlign),_=!1;const o=this._measureText(p,e),a=o.actualBoundingBoxAscent+o.actualBoundingBoxDescent;a>t.height&&(t.height=a),o.actualBoundingBoxAscent>t.ascent&&(t.ascent=o.actualBoundingBoxAscent)}else if("value"==s.type&&!T){const i=this._measureText(s.text,e);let h=i.actualBoundingBoxLeft+i.actualBoundingBoxRight;if(a){this.truncated=void 0;let i=M||this.style.breakWords||!1;const n=this.style.ellipsis||"",o=this._measureText(n,e),a=o.actualBoundingBoxLeft+o.actualBoundingBoxRight;if(t.width+h>r){const o=r-t.width-a;s.text=this._truncateText(e,s.text,o,i),s.text+=n,T=!0,this.truncated=!0}}else if(u&&t.width+h>r){const i=r-t.width,a=this._truncateText(e,s.text,i,!1,M&&"wrap-no-break"!=this.style.oversizedBehavior);if(""==a)return this.textVisible=!0,!1;E=n.slice(o+1),l.trim(a)!=l.trim(s.text)&&(E.unshift({type:"value",text:s.text.substr(a.length)}),w&&E.unshift({type:"format",text:w})),s.text=l.trim(a),n=[],T=!0}let c=1,d=1;if(f&&x&&x>h){const t=h/x;switch(this.style.textAlign){case"right":case"end":c=t;break;case"center":c=t,d=t;break;default:d=t}h=x}const p=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent;p>t.height&&(t.height=p),i.actualBoundingBoxAscent>t.ascent&&(t.ascent=i.actualBoundingBoxAscent),t.width+=h,t.left+=i.actualBoundingBoxLeft/c,t.right+=i.actualBoundingBoxRight/d,t.textChunks.push({style:f,fill:b,text:s.text,width:h,height:p,left:i.actualBoundingBoxLeft,right:i.actualBoundingBoxRight,ascent:i.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:k,verticalAlign:D}),M=!1}return!0})),this.style.lineHeight instanceof o.gG?(t.height*=this.style.lineHeight.value,t.ascent*=this.style.lineHeight.value):(t.height*=this.style.lineHeight||1.2,t.ascent*=this.style.lineHeight||1.2),m{let i=0;c.each(t.textChunks,(e=>{if(e.offsetX=i+e.left-t.left,e.offsetY+=t.height-t.height*(this.style.baselineRatio||.19),i+=e.width*(s?-1:1),e.verticalAlign)switch(e.verticalAlign){case"super":e.offsetY-=t.height/2-e.height/2;break;case"sub":e.offsetY+=e.height/2}}))}));const w={left:s?-y:-m,top:0,right:s?m:y,bottom:v};if("none"!==n){const t=this._fitRatio(w);if(t<1)if("fit"==n)d.isNumber(this.style.minScale)&&ti&&""!=e);return e}_measureText(t,e){let i=e.measureText(t),s={};if(null==i.actualBoundingBoxAscent){const e=document.createElement("div");e.innerText=t,e.style.visibility="hidden",e.style.position="absolute",e.style.top="-1000000px;",e.style.fontFamily=this.style.fontFamily||"",e.style.fontSize=this.style.fontSize+"",document.body.appendChild(e);const n=e.getBoundingClientRect();document.body.removeChild(e);const r=n.height,o=i.width;s={actualBoundingBoxAscent:r,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:o,fontBoundingBoxAscent:r,fontBoundingBoxDescent:0,width:o}}else s={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const n=i.width;switch(this.style.textAlign){case"right":case"end":s.actualBoundingBoxLeft=n,s.actualBoundingBoxRight=0;break;case"center":s.actualBoundingBoxLeft=n/2,s.actualBoundingBoxRight=n/2;break;default:s.actualBoundingBoxLeft=0,s.actualBoundingBoxRight=n}return s}}class et{constructor(){this.lineHeight=(0,o.aQ)(120),this.baselineRatio=.19,this.oversizedBehavior="none",this.breakWords=!1,this.ellipsis="…",this.ignoreFormatting=!1}}class it extends tt{constructor(){super(...arguments),this.textType="circular",this.inside=!1,this.orientation="auto",this.kerning=0,this._textReversed=!1}_render(t,e=0){"circular"===this.textType?this._renderCircular(t,e):super._render(t,e)}_renderCircular(t,e=0){if(this.textVisible){this._prerender(t);const i=this._isInteractive(t),s=t.layer.context,n=t.layer.dirty,r=this._renderer._ghostLayer.context;s.save(),i&&r.save(),this._textInfo||this._measure(t);let o=this.radius||0,a=this.startAngle||0,h=0,l=this.orientation,u="auto"==l?"auto":"inward"==l;const d=this.inside,g=this.style.textAlign||"left",f=this.kerning||0;let _="left"==g?1:-1;const m=!this._textReversed,y=this._ghostOnly(e),v=this._drawGhost(t,e);if("auto"==u){let t=0,e=0;c.each(this._textInfo,((e,i)=>{const s=a+e.width/(o-e.height)/2*-_;s>t&&(t=s)})),e="left"==g?(t+h/2)*p.DEGREES:"right"==g?(t-h/2)*p.DEGREES:a*p.DEGREES,e=p.normalizeAngle(e),u=e>=270||e<=90}1==u&&m&&(this._textInfo.reverse(),this._textReversed=!0),c.each(this._textInfo,((t,e)=>{const l=t.height;d||(o+=l),(-1==_&&u||1==_&&!u)&&m&&t.textChunks.reverse();let p=a;h=0,"center"==g&&(p+=t.width/(o-l)/2*-_,h=p-a),p+=Math.PI*(u?0:1),s.save(),i&&r.save(),y||s.rotate(p),i&&r.rotate(p);let w=0;c.each(t.textChunks,((t,e)=>{const a=t.text,h=t.width;w=h/2/(o-l)*_,y||s.rotate(w),i&&r.rotate(w),t.style&&(s.save(),r.save(),y||(s.font=t.style),i&&(r.font=t.style)),t.fill&&(s.save(),y||(s.fillStyle=t.fill.toCSS())),y||(s.textBaseline="middle",s.textAlign="center"),i&&(r.textBaseline="middle",r.textAlign="center"),n&&!y&&s.fillText(a,0,(u?1:-1)*(0-o+l/2)),i&&v&&r.fillText(a,0,(u?1:-1)*(0-o+l/2)),t.fill&&s.restore(),t.style&&(s.restore(),r.restore()),w=(h/2+f)/(o-l)*_,y||s.rotate(w),i&&r.rotate(w)})),s.restore(),i&&r.restore(),d&&(o-=l)})),s.restore(),i&&r.restore()}}_measure(t){return"circular"===this.textType?this._measureCircular(t):super._measure(t)}_measureCircular(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction,n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=this.style.ellipsis||"";let p;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,e.save(),i.save(),this._prerender(t,!0);const g=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,_=0,m=0;return c.each(g,((t,n)=>{let g,y,v,w=h.V.chunk(t,!1,this.style.ignoreFormatting),b={offsetY:m,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};c.each(w,((t,n)=>{if("format"==t.type){if("[/]"==t.text)f||(e.restore(),i.restore(),f=!0),y=void 0,g=void 0,v=void 0;else{let s=h.V.getTextStyle(t.text);const n=this._getFontStyle(s);e.save(),i.save(),e.font=n,g=n,s.fill&&(y=s.fill),s.width&&(v=d.toNumber(s.width)),f=!1}a&&(p=this._measureText(u,e))}else if("value"==t.type){let i=t.text.match(/./gu)||[];s&&(i=l.splitString(t.text),i.reverse());for(let t=0;to&&(o=v);const h=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;if(h>b.height&&(b.height=h),n.actualBoundingBoxAscent>b.ascent&&(b.ascent=n.actualBoundingBoxAscent),_+=o,a){p||(p=this._measureText(u,e));const t=p.actualBoundingBoxLeft+p.actualBoundingBoxRight;if(_+t>r){1==b.textChunks.length?this.textVisible=!1:(b.width+=t,b.left+=p.actualBoundingBoxLeft,b.right+=p.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:u,width:t,height:h+p.actualBoundingBoxDescent,left:p.actualBoundingBoxLeft,right:p.actualBoundingBoxRight,ascent:p.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0}));break}}b.width+=o,b.left+=n.actualBoundingBoxLeft,b.right+=n.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:s,width:o,height:h+n.actualBoundingBoxDescent,left:n.actualBoundingBoxLeft,right:n.actualBoundingBoxRight,ascent:n.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0})}}})),this.style.lineHeight instanceof o.gG?b.height*=this.style.lineHeight.value:b.height*=this.style.lineHeight||1.2,this._textInfo.push(b),m+=b.height})),f||(e.restore(),i.restore()),"hide"==n&&_>r&&(this.textVisible=!1),c.each(this._textInfo,(t=>{c.each(t.textChunks,(e=>{e.offsetY+=Math.round((t.height-e.height+(t.ascent-e.ascent))/2)}))})),e.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class st extends S{constructor(t,e){super(t),this.image=e}_dispose(){super._dispose(),this._imageMask&&E(this._imageMask)}getLocalBounds(){if(!this._localBounds){let t=0,e=0;this.width&&(t=this.width),this.height&&(e=this.height),this._localBounds={left:0,top:0,right:t,bottom:e},this._addBounds(this._localBounds)}return this._localBounds}_render(t,e=0){if(super._render(t),this.image){if(void 0===this.tainted&&(this.tainted=M(this.image),t.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;const i=this._ghostOnly(e),s=this._drawGhost(t,e);if(t.layer.dirty&&!i){this.shadowColor&&(t.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(t.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(t.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(t.layer.context.shadowOffsetY=this.shadowOffsetY);const e=this.width||this.image.naturalWidth,i=this.height||this.image.naturalHeight;t.layer.context.drawImage(this.image,0,0,e,i)}if(this.interactive&&this._isInteractive(t)&&s){const t=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(t,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(t){if(void 0===this._imageMask){const e=this.width||t.naturalWidth,i=this.height||t.naturalHeight,s=document.createElement("canvas");s.width=e,s.height=i;const n=s.getContext("2d");n.imageSmoothingEnabled=!1,n.fillStyle=this._getColorId(),n.fillRect(0,0,e,i),M(t)||(n.globalCompositeOperation="destination-in",n.drawImage(t,0,0,e,i)),this._imageMask=s}return this._imageMask}}class nt{constructor(t,e,i,s){this.event=t,this.originalPoint=e,this.point=i,this.bbox=s,this.simulated=!1,this.native=!0,l.supports("touchevents")&&t instanceof Touch?this.id=t.identifier:this.id=null}}class rt extends a.rk{constructor(t){if(super(),this.view=document.createElement("div"),this._layerDom=document.createElement("div"),this.layers=[],this._dirtyLayers=[],this.defaultLayer=this.getLayer(0),this._ghostLayer=new ot,this._deferredGhostLayers=[],this._patternCanvas=document.createElement("canvas"),this._patternContext=this._patternCanvas.getContext("2d"),this._realWidth=0,this._realHeight=0,this._calculatedWidth=0,this._calculatedHeight=0,this.interactionsEnabled=!0,this._listeners={},this._events={},this._colorId=0,this._colorMap={},this._forceInteractive=0,this._omitTainted=!1,this._hovering=new Set,this._dragging=[],this._mousedown=[],this.tapToActivate=!1,this.tapToActivateTimeout=3e3,this._touchActive=!1,this.resolution=null==t?window.devicePixelRatio:t,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new a.ku((()=>{u.each(this._events,((t,e)=>{e.disposer.dispose()})),c.each(this.layers,(t=>{E(t.view),t.exportableView&&E(t.exportableView)})),E(this._ghostLayer.view),E(this._patternCanvas)}))),this._disposers.push(l.onZoom((()=>{null==t&&(this.resolution=window.devicePixelRatio)}))),l.supports("touchevents")){const t=t=>{0!==this._dragging.length&&c.eachContinue(this._dragging,(e=>!e.value.shouldCancelTouch()||(t.preventDefault(),!1))),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(l.addEventListener(window,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchmove",(()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()}),{passive:!0})),this._disposers.push(l.addEventListener(window,"click",(t=>{this._touchActive=!1}),{passive:!0})),this._disposers.push(l.addEventListener(this.view,"click",(t=>{window.setTimeout((()=>{this._touchActive=!0,this._delayTouchDeactivate()}),100)}),{passive:!0}))}l.supports("wheelevents")&&this._disposers.push(l.addEventListener(this.view,"wheel",(t=>{let e=!1;this._hovering.forEach((t=>{if(t.wheelable)return e=!0,!1})),e&&t.preventDefault()}),{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout((()=>{this._touchActive=!1}),this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(t){t?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(t,e,i,s){return this.defaultLayer.context.createLinearGradient(t,e,i,s)}createRadialGradient(t,e,i,s,n,r){return this.defaultLayer.context.createRadialGradient(t,e,i,s,n,r)}createPattern(t,e,i,s,n){return this._patternCanvas.width=s,this._patternCanvas.height=n,this._patternContext.clearRect(0,0,s,n),e.renderDetached(this._patternContext),t.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new N(this)}makeGraphics(){return new J(this)}makeText(t,e){return new tt(this,t,e)}makeTextStyle(){return new et}makeRadialText(t,e){return new it(this,t,e)}makePicture(t){return new st(this,t)}resizeLayer(t){t.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(t,e,i,s){this._realWidth=t,this._realHeight=e,this._calculatedWidth=i,this._calculatedHeight=s,c.each(this.layers,(t=>{t&&(t.dirty=!0,this.resizeLayer(t))})),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(t=!1){const e=document.createElement("canvas"),i=e.getContext("2d",{willReadFrequently:t}),s=new at(e,i);return e.style.position="absolute",e.style.top="0px",e.style.left="0px",s}getLayerByOrder(t){const e=this.layers,i=e.length;for(let s=0;st.order>e.order?1:t.order{t&&t.dirty&&t.visible&&(this._dirtyLayers.push(t),t.clear())})),this._ghostLayer.clear(),t.render({inactive:null,layer:this.defaultLayer});const e=this._deferredGhostLayers;if(e.length&&(e.sort(((t,e)=>t-e)),c.each(e,(e=>{t.render({inactive:null,layer:this.defaultLayer},e)}))),this._ghostLayer.context.restore(),c.each(this.layers,(t=>{if(t){const e=t.context;e.beginPath(),e.moveTo(0,0),e.stroke()}})),c.each(this._dirtyLayers,(t=>{t.context.restore(),t.dirty=!1})),this._hovering.size&&this._lastPointerMoveEvent){const{events:t,target:e,native:i}=this._lastPointerMoveEvent;c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))}}paintId(t){const e=function(t){const e=[0,0,0];for(let i=0;i<24;i++)e[i%3]<<=1,e[i%3]|=1&t,t>>=1;return(0|e[0])+(e[1]<<8)+(e[2]<<16)}(++this._colorId),i=n.Il.fromHex(e).toCSS();return this._colorMap[i]=t,i}_removeObject(t){void 0!==t._colorId&&delete this._colorMap[t._colorId]}_adjustBoundingBox(t){const e=this._ghostLayer.margin;return new DOMRect(-e.left,-e.top,t.width+e.left+e.right,t.height+e.top+e.bottom)}getEvent(t,e=!0){const i=this.view.getBoundingClientRect(),s=t.clientX||0,n=t.clientY||0,r=this._calculatedWidth/this._realWidth,o=this._calculatedHeight/this._realHeight,a={x:s-i.left,y:n-i.top},h={x:(s-(e?i.left:0))*r,y:(n-(e?i.top:0))*o};return new nt(t,a,h,this._adjustBoundingBox(i))}_getHitTarget(t,e,i){if(0===e.width||0===e.height||t.xe.right||t.ye.bottom)return;if(!i||!this._layerDom.contains(i))return;const s=this._ghostLayer.getImageData(t,e);if(0===s.data[0]&&0===s.data[1]&&0===s.data[2])return!1;const r=n.Il.fromRGB(s.data[0],s.data[1],s.data[2]).toCSS();return this._colorMap[r]}getObjectAtPoint(t){const e=this._ghostLayer.getImageArray(t);if(0===e[0]&&0===e[1]&&0===e[2])return;const i=n.Il.fromRGB(e[0],e[1],e[2]).toCSS();return this._colorMap[i]}_withEvents(t,e){const i=this._events[t];if(void 0!==i){i.dispatching=!0;try{e(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,c.keepIf(i.callbacks,(t=>!t.disposed)),0===i.callbacks.length&&(i.disposer.dispose(),delete this._events[t]))}}}_dispatchEventAll(t,e){this.interactionsEnabled&&this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.callback.call(t.context,e)}))}))}_dispatchEvent(t,e,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.object!==e||(t.callback.call(t.context,i),s=!0)}))})),s}_dispatchMousedown(t,e){const i=t.button;if(0!=i&&2!=i&&1!=i&&void 0!==i)return;const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);if(n){const t=s.id;let e=!1;k(n,(i=>{const n={id:t,value:i};return this._mousedown.push(n),!e&&this._dispatchEvent("pointerdown",i,s)&&(e=!0,this._dragging.some((e=>e.value===i&&e.id===t))||this._dragging.push(n)),!0}))}}_dispatchGlobalMousemove(t,e,i){const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);s.native=i,n?(this._hovering.forEach((t=>{t.contains(n)||(this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s))})),s.native&&k(n,(t=>(this._hovering.has(t)||(this._hovering.add(t),t.cursorOverStyle&&(t._replacedCursorStyle=l.getStyle(document.body,"cursor"),l.setStyle(document.body,"cursor",t.cursorOverStyle)),this._dispatchEvent("pointerover",t,s)),!0)))):(this._hovering.forEach((t=>{t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s)})),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(t){this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle)}_dispatchGlobalMouseup(t,e){const i=this.getEvent(t);i.native=e,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(t){if(0!==this._dragging.length){const e=this.getEvent(t),i=e.id;this._dragging.forEach((t=>{t.id===i&&this._dispatchEvent("pointermove",t.value,e)}))}}_dispatchDragEnd(t,e){const i=t.button;let s;if(0==i||void 0===i)s="click";else if(2==i)s="rightclick";else{if(1!=i)return;s="middleclick"}const n=this.getEvent(t),r=n.id;if(0!==this._mousedown.length){const t=this._getHitTarget(n.originalPoint,n.bbox,e);t&&this._mousedown.forEach((e=>{e.id===r&&e.value.contains(t)&&this._dispatchEvent(s,e.value,n)})),this._mousedown.length=0}0!==this._dragging.length&&(this._dragging.forEach((t=>{t.id===r&&this._dispatchEvent("pointerup",t.value,n)})),this._dragging.length=0)}_dispatchDoubleClick(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("dblclick",t,i)))}_dispatchWheel(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("wheel",t,i)))}_makeSharedEvent(t,e){if(void 0===this._listeners[t]){const i=e();this._listeners[t]=new a.DM((()=>{delete this._listeners[t],i.dispose()}))}return this._listeners[t].increment()}_onPointerEvent(t,e){let i=!1,s=null;function n(){s=null,i=!1}return new a.FV([new a.ku((()=>{null!==s&&clearTimeout(s),n()})),l.addEventListener(this.view,l.getRendererEvent(t),(t=>{i=!0,null!==s&&clearTimeout(s),s=window.setTimeout(n,0)})),T(window,t,((t,n)=>{null!==s&&(clearTimeout(s),s=null),e(t,n,i),i=!1}))])}_initEvent(t){switch(t){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",(()=>{const t=(t,e,i)=>{this._lastPointerMoveEvent={events:t,target:e,native:i},c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))};return new a.FV([this._onPointerEvent("pointerdown",t),this._onPointerEvent("pointermove",t)])}));case"globalpointerup":return this._makeSharedEvent("pointerup",(()=>{const t=this._onPointerEvent("pointerup",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}})),e=this._onPointerEvent("pointercancel",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}}));return new a.ku((()=>{t.dispose(),e.dispose()}))}));case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",(()=>{const t=this._onPointerEvent("pointerdown",((t,e)=>{c.each(t,(t=>{this._dispatchMousedown(t,e)}))})),e=this._onPointerEvent("pointermove",(t=>{c.each(t,(t=>{this._dispatchDragMove(t)}))})),i=this._onPointerEvent("pointerup",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))})),s=this._onPointerEvent("pointercancel",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))}));return new a.ku((()=>{t.dispose(),e.dispose(),i.dispose(),s.dispose()}))}));case"dblclick":return this._makeSharedEvent("dblclick",(()=>this._onPointerEvent("dblclick",((t,e)=>{c.each(t,(t=>{this._dispatchDoubleClick(t,e)}))}))));case"wheel":return this._makeSharedEvent("wheel",(()=>l.addEventListener(this.view,l.getRendererEvent("wheel"),(t=>{this._dispatchWheel(t,l.getEventTarget(t))}),{passive:!1})))}}_addEvent(t,e,i,s){let n=this._events[e];void 0===n&&(n=this._events[e]={disposer:this._initEvent(e),callbacks:[],dispatching:!1,cleanup:!1});const r={object:t,context:s,callback:i,disposed:!1};return n.callbacks.push(r),new a.ku((()=>{r.disposed=!0,n.dispatching?n.cleanup=!0:(c.removeFirst(n.callbacks,r),0===n.callbacks.length&&(n.disposer.dispose(),delete this._events[e]))}))}getCanvas(t,e){this.render(t),e||(e={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),n=Math.floor(this._calculatedHeight*this.resolution);if(e.minWidth&&e.minWidth>s){let t=e.minWidth/s;t>i&&(i=t*this.resolution)}if(e.minHeight&&e.minHeight>n){let t=e.minHeight/n;t>i&&(i=t*this.resolution)}if(e.maxWidth&&e.maxWidthn){let t=e.maxHeight/n;t{if(t&&t.visible&&(t.tainted||o)){d=!0,t.exportableView=t.view,t.exportableContext=t.context,t.view=document.createElement("canvas"),t.view.style.position="fixed",t.view.style.top="-10000px",this.view.appendChild(t.view),r.push(t.view);let e=0,o=0;t.margin&&(e+=t.margin.left||0+t.margin.right||0,o+=t.margin.top||0+t.margin.bottom||0),t.view.width=s+e,t.view.height=n+o,t.context=t.view.getContext("2d"),t.dirty=!0,t.scale=i}})),d&&(this._omitTainted=!0,this.render(t),this._omitTainted=!1),c.each(this.layers,(t=>{if(t&&t.visible){let e=0,i=0;t.margin&&(e=-(t.margin.left||0)*this.resolution,i=-(t.margin.top||0)*this.resolution),h.drawImage(t.view,e,i),t.exportableView&&(t.view=t.exportableView,t.exportableView=void 0),t.exportableContext&&(t.context=t.exportableContext,t.exportableContext=void 0),l{t.style.position="",t.style.top="",this.view.removeChild(t)})),a}}class ot{constructor(){this.margin={left:0,right:0,top:0,bottom:0},this._resolution=1,this._width=0,this._height=0,this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(t,e,i,s,n){this._resolution=n,t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(t,e){return this.context.getImageData(Math.round((t.x-e.left)/e.width*this._width),Math.round((t.y-e.top)/e.height*this._height),1,1)}getImageArray(t){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const e=this.imageArray,i=Math.round(t.x*this._resolution),s=4*(Math.round(t.y*this._resolution)*this._width+i);return[e[s],e[s+1],e[s+2],e[s+3]]}setMargin(t){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,c.each(t,(t=>{t.margin&&(this.margin.left=Math.max(this.margin.left,t.margin.left),this.margin.right=Math.max(this.margin.right,t.margin.right),this.margin.top=Math.max(this.margin.top,t.margin.top),this.margin.bottom=Math.max(this.margin.bottom,t.margin.bottom))}))}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class at{constructor(t,e){this.tainted=!0,this.order=0,this.visible=!0,this.dirty=!0,this._width=0,this._height=0,this.view=t,this.context=e}resize(t,e,i,s,n){null!=this.width&&(t=this.width,i=this.width),null!=this.height&&(e=this.height,s=this.height),this.margin?(t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}},4680:function(t,e,i){"use strict";var s;i.d(e,{b:function(){return s}}),function(t){t.ADD="lighter",t.COLOR="color",t.COLOR_BURN="color-burn",t.COLOR_DODGE="color-dodge",t.DARKEN="darken",t.DIFFERENCE="difference",t.DST_OVER="destination-over",t.EXCLUSION="exclusion",t.HARD_LIGHT="hard-light",t.HUE="hue",t.LIGHTEN="lighten",t.LUMINOSITY="luminosity",t.MULTIPLY="multiply",t.NORMAL="source-over",t.OVERLAY="overlay",t.SATURATION="saturation",t.SCREEN="screen",t.SOFT_LIGHT="soft-light",t.SRC_ATOP="source-atop",t.XOR="xor"}(s||(s={}))},1437:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}getFill(t){return{addColorStop:(t,e)=>{}}}_changed(){super._changed()}getBounds(t){const e=this.get("target");if(e){let i=e.globalBounds();const s=t.toLocal({x:i.left,y:i.top}),n=t.toLocal({x:i.right,y:i.top}),r=t.toLocal({x:i.right,y:i.bottom}),o=t.toLocal({x:i.left,y:i.bottom});return{left:Math.min(s.x,n.x,r.x,o.x),top:Math.min(s.y,n.y,r.y,o.y),right:Math.max(s.x,n.x,r.x,o.x),bottom:Math.max(s.y,n.y,r.y,o.y)}}return t._display.getLocalBounds()}}n.className="Gradient",n.classNames=s.JH.classNames.concat([n.className])},1747:function(t,e,i){"use strict";i.d(e,{o:function(){return h}});var s=i(1437),n=i(1112),r=i(5071),o=i(5040),a=i(751);class h extends s.p{getFill(t){const e=this.get("rotation",0);let i=this.getBounds(t),s=i.left||0,h=i.right||0,l=i.top||0,c=i.bottom||0,u=a.cos(e),d=a.sin(e),p=u*(h-s),g=d*(c-l);0==p&&(p=1),0==g&&(g=1);let f=Math.max(p,g);const _=this._root._renderer.createLinearGradient(s,l,s+f*u,l+f*d),m=this.get("stops");if(m){let t=0;r.each(m,(e=>{let i=e.offset;o.isNumber(i)||(i=t/(m.length-1));let s=e.opacity;o.isNumber(s)||(s=1);let r=e.color;if(r){const t=e.lighten;t&&(r=n.Il.lighten(r,t));const o=e.brighten;o&&(r=n.Il.brighten(r,o)),_.addColorStop(i,"rgba("+r.r+","+r.g+","+r.b+","+s+")")}t++}))}return _}}h.className="LinearGradient",h.classNames=s.p.classNames.concat([h.className])},3035:function(t,e,i){"use strict";i.d(e,{y:function(){return r}});var s=i(3437),n=i(5040);class r extends s.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("width",100),e=this.get("height",100),i=this.get("gap",0),s=this.get("strokeWidth",1);if(i){let n=i+s,r=e/n,o=this.get("angle",0)*Math.PI/180;if(0===o)for(let e=-r;e<2*r;e++){const i=Math.round(e*n-n/2)+.5;this._display.moveTo(-t,i),this._display.lineTo(2*t,i)}else{const i=Math.cos(o),s=Math.sin(o),r=2*Math.sqrt(t*t+e*e),a=n/Math.max(Math.abs(i),Math.abs(s)),h=2*Math.ceil(r/a);for(let t=-h;t0&&(r.beginFill(s,n),r.drawRect(0,0,e,i),r.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,r,t,e,i)}this._clear=!1}}n.className="Pattern",n.classNames=s.JH.classNames.concat([n.className])},4429:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(3437);class n extends s.c{_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const t=this.get("canvas");t&&(this.set("width",t.width),this.set("height",t.height))}_draw(){super._draw();const t=this.get("colorOpacity");void 0!==t&&(this._display.alpha=Math.max(0,t));const e=this._image;if(e){const t=this.get("width",100),i=this.get("height",100),s=this.get("fit","image");let n=0,r=0;"pattern"==s?(n=t,r=i,this.markDirty()):(n=e.width,r=e.height,"image"==s&&(this.set("width",n),this.set("height",r)));let o=0,a=0;this.get("centered",!0)&&(o=t/2-n/2,a=i/2-r/2),this._display.image(e,n,r,o,a)}const i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){const t=this.get("src");if(t){const e=new Image;e.src=t,e.decode().then((()=>{this._image=e,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{}))}}}n.className="PicturePattern",n.classNames=s.c.classNames.concat([n.className])},6490:function(t,e,i){"use strict";i.d(e,{SR:function(){return s},Wn:function(){return u},XG:function(){return p},ne:function(){return h},w6:function(){return l}});var s,n=i(7582),r=i(6245),o=i(1112),a=i(256);function h(t){return(0,n.mG)(this,void 0,void 0,(function*(){if(void 0!==t){const e=[];a.each(t,((t,i)=>{e.push(i.waitForStop())})),yield Promise.all(e)}}))}function l(t,e,i){return e+t*(i-e)}function c(t,e,i){return t>=1?i:e}function u(t,e,i){return new r.gG(l(t,e.percent,i.percent))}function d(t,e,i){return o.Il.interpolate(t,e,i)}function p(t,e){return"number"==typeof t&&"number"==typeof e?l:t instanceof r.gG&&e instanceof r.gG?u:t instanceof o.Il&&e instanceof o.Il?d:c}!function(t){t[t.Stopped=0]="Stopped",t[t.Playing=1]="Playing",t[t.Paused=2]="Paused"}(s||(s={}))},5071:function(t,e,i){"use strict";i.r(e),i.d(e,{add:function(){return v},any:function(){return r},copy:function(){return k},each:function(){return a},eachContinue:function(){return l},eachReverse:function(){return h},find:function(){return S},findIndex:function(){return O},findIndexReverse:function(){return P},findMap:function(){return C},findReverse:function(){return N},first:function(){return d},getFirstSortedIndex:function(){return R},getSortedIndex:function(){return A},has:function(){return D},indexOf:function(){return n},insert:function(){return p},insertIndex:function(){return M},keepIf:function(){return U},last:function(){return u},map:function(){return o},move:function(){return y},pushAll:function(){return f},pushOne:function(){return w},remove:function(){return _},removeFirst:function(){return m},removeIndex:function(){return E},replace:function(){return b},setIndex:function(){return g},shiftLeft:function(){return c},shuffle:function(){return L},slice:function(){return T},toArray:function(){return x}});var s=i(5040);function n(t,e){const i=t.length;for(let s=0;s0;)--i,e(t[i],i)}function l(t,e){const i=t.length;for(let s=0;s0;)if(--i,e(t[i],i))return i;return-1}function S(t,e){const i=O(t,e);if(-1!==i)return t[i]}function N(t,e){const i=P(t,e);if(-1!==i)return t[i]}function C(t,e){const i=t.length;for(let s=0;s>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,i=r+1):s=r}return{found:n,index:n?i-1:i}}function R(t,e){let i=0,s=t.length,n=!1;for(;i>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,s=r):s=r}return{found:n,index:i}}function U(t,e){let i=t.length;for(;i>0;)--i,e(t[i])||t.splice(i,1)}},1112:function(t,e,i){"use strict";i.d(e,{$_:function(){return a},Il:function(){return h}});var s=i(6490),n=i(7652),r=i(5040);function o(t){return"#"===t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0].repeat(2)+t[1].repeat(2)+t[2].repeat(2)),parseInt(t,16)}function a(t){return h.fromAny(t)}class h{constructor(t){this._hex=0|t}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return 255&this._hex}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+n.padString(this.r.toString(16),2)+n.padString(this.g.toString(16),2)+n.padString(this.b.toString(16),2)}toHSL(t=1){return n.rgbToHsl({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,e,i){const s=n.hslToRgb({h:t,s:e,l:i});return this.fromRGB(s.r,s.g,s.b)}toString(){return this.toCSSHex()}static fromHex(t){return new h(t)}static fromRGB(t,e,i){return new h((0|i)+(e<<8)+(t<<16))}static fromString(t){return new h(o(t))}static fromCSS(t){return new h(function(t){let e=(t=t.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return 0;let i="";for(let t=1;t<=3;t++){let s=parseInt(e[t]).toString(16);1==s.length&&(s="0"+s),i+=s}return o(i)}(t))}static fromAny(t){if(r.isString(t)){if("#"==t[0])return h.fromString(t);if("rgb"==t.substr(0,3))return h.fromCSS(t)}else{if(r.isNumber(t))return h.fromHex(t);if(t instanceof h)return h.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,e,i){const s=n.alternativeColor({r:t.r,g:t.g,b:t.b},e?{r:e.r,g:e.g,b:e.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(s.r,s.g,s.b)}static interpolate(t,e,i,n="rgb"){if("hsl"==n){const n=e.toHSL(),r=i.toHSL();return h.fromHSL((0,s.w6)(t,n.h,r.h),(0,s.w6)(t,n.s,r.s),(0,s.w6)(t,n.l,r.l))}return h.fromRGB((0,s.w6)(t,e.r,i.r),(0,s.w6)(t,e.g,i.g),(0,s.w6)(t,e.b,i.b))}static lighten(t,e){const i=n.lighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static brighten(t,e){const i=n.brighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static saturate(t,e){const i=n.saturate({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}}},2754:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});var s=i(6331),n=i(1112);class r extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const t=this.getPrivate("currentPass"),e=this.get("colors",[this.get("baseColor",n.Il.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",e.length);const i=this.getPrivate("numColors"),s=this.get("passOptions"),r=this.get("reuse");for(let o=0;o1;)r-=1;let a=i.s+(s.saturation||0)*t;a>1&&(a=1),a<0&&(a=0);let h=i.l+(s.lightness||0)*t;for(;h>1;)h-=1;e.push(n.Il.fromHSL(r,a,h))}}getIndex(t){const e=this.get("colors",[]),i=this.get("saturation");return t>=e.length?(this.generateColors(),this.getIndex(t)):null!=i?n.Il.saturate(e[t],i):e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}r.className="ColorSet",r.classNames=s.JH.classNames.concat([r.className])},9582:function(t,e,i){"use strict";i.d(e,{Q:function(){return r},k:function(){return n}});var s=i(7144);class n extends s.aV{incrementRef(){}decrementRef(){}_onPush(t){this.processor&&this.processor.processRow(t),super._onPush(t)}_onInsertIndex(t,e){this.processor&&this.processor.processRow(e),super._onInsertIndex(t,e)}_onSetIndex(t,e,i){this.processor&&this.processor.processRow(i),super._onSetIndex(t,e,i)}}class r{constructor(t){this._value=t}incrementRef(){}decrementRef(){}}},6460:function(t,e,i){"use strict";i.d(e,{C:function(){return h}});var s=i(6331),n=i(7255),r=i(462),o=i(5040),a=i(7652);class h extends s.JH{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i=!1){let s;void 0!==e&&""!==e||(e=this.get("dateFormat","yyyy-MM-dd"));let n=t;if(o.isObject(e))try{const t=this.get("intlLocales");return t?new Intl.DateTimeFormat(t,e).format(n):new Intl.DateTimeFormat(void 0,e).format(n)}catch(t){return"Invalid"}let r=this.parseFormat(e);const a=this._root.timezone;let h=n;return!a||this._root.utc||i||(n=a.convertLocal(n)),o.isNumber(n.getTime())?(s=this.applyFormat(n,r,i,h),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s):"Invalid date"}applyFormat(t,e,i=!1,s){let n,h,l,c,u,d,p,g,f=e.template,_=t.getTime();this._root.utc&&!i?(n=t.getUTCFullYear(),h=t.getUTCMonth(),l=t.getUTCDay(),c=t.getUTCDate(),u=t.getUTCHours(),d=t.getUTCMinutes(),p=t.getUTCSeconds(),g=t.getUTCMilliseconds()):(n=t.getFullYear(),h=t.getMonth(),l=t.getDay(),c=t.getDate(),u=t.getHours(),d=t.getMinutes(),p=t.getSeconds(),g=t.getMilliseconds());for(let i=0,m=e.parts.length;i=12?this._t("PM"):this._t("AM");break;case"aa":m=u>=12?this._t("P.M."):this._t("A.M.");break;case"aaa":m=u>=12?this._t("P"):this._t("A");break;case"h":m=a.get12Hours(u).toString();break;case"hh":m=a.padString(a.get12Hours(u),2,"0");break;case"H":m=u.toString();break;case"HH":m=a.padString(u,2,"0");break;case"K":m=a.get12Hours(u,0).toString();break;case"KK":m=a.padString(a.get12Hours(u,0),2,"0");break;case"k":m=(u+1).toString();break;case"kk":m=a.padString(u+1,2,"0");break;case"m":m=d.toString();break;case"mm":m=a.padString(d,2,"0");break;case"s":m=p.toString();break;case"ss":m=a.padString(p,2,"0");break;case"S":case"SS":case"SSS":m=Math.round(g/1e3*Math.pow(10,e.parts[i].length)).toString();break;case"x":m=_.toString();break;case"n":case"nn":case"nnn":m=a.padString(g,e.parts[i].length,"0");break;case"z":m=a.getTimeZone(s||t,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":m=a.getTimeZone(s||t,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":m=a.getTimeZone(s||t,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":m=a.getTimeZone(s||t,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let f=this._root.utc?"UTC":this._root.timezone;f instanceof r.r&&(f=f.name);const y=f?a.getTimezoneOffset(f,s||t):t.getTimezoneOffset();let v=Math.abs(y)/60,w=Math.floor(v),b=60*v-60*w;this._root.utc&&(w=0,b=0),"Z"==e.parts[i]?(m="GMT",m+=y>0?"-":"+",m+=a.padString(w,2)+":"+a.padString(b,2)):(m=y>0?"-":"+",m+=a.padString(w,2)+a.padString(b,2));break;case"i":m=t.toISOString();break;case"I":m=t.toUTCString()}f=f.replace(o.PLACEHOLDER,m)}return f}parseFormat(t){let e={template:"",parts:[]},i=n.V.chunk(t,!0);for(let t=0;t-1&&(l.year=parseInt(p[h.year])),h.year3>-1){let t=parseInt(p[h.year3]);t+=1e3,l.year=t}if(h.year2>-1){let t=parseInt(p[h.year2]);t+=t>50?1e3:2e3,l.year=t}if(h.year1>-1){let t=parseInt(p[h.year1]);t=10*Math.floor((new Date).getFullYear()/10)+t,l.year=t}if(h.monthLong>-1&&(l.month=this.resolveMonth(p[h.monthLong])),h.monthShort>-1&&(l.month=this.resolveShortMonth(p[h.monthShort])),h.month>-1&&(l.month=parseInt(p[h.month])-1),h.week>-1&&-1===h.day&&(l.month=0,l.day=a.getDayFromWeek(parseInt(p[h.week]),l.year,1,i)),h.day>-1&&(l.day=parseInt(p[h.day])),h.yearDay>-1&&(l.month=0,l.day=parseInt(p[h.yearDay])),h.hourBase0>-1&&(l.hour=parseInt(p[h.hourBase0])),h.hourBase1>-1&&(l.hour=parseInt(p[h.hourBase1])-1),h.hour12Base0>-1){let t=parseInt(p[h.hour12Base0]);11==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.hour12Base1>-1){let t=parseInt(p[h.hour12Base1]);12==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.minute>-1&&(l.minute=parseInt(p[h.minute])),h.second>-1&&(l.second=parseInt(p[h.second])),h.millisecond>-1){let t=parseInt(p[h.millisecond]);2==h.millisecondDigits?t*=10:1==h.millisecondDigits&&(t*=100),l.millisecond=t}if(h.timestamp>-1){l.timestamp=parseInt(p[h.timestamp]);const t=new Date(l.timestamp);l.year=t.getUTCFullYear(),l.month=t.getUTCMonth(),l.day=t.getUTCDate(),l.hour=t.getUTCHours(),l.minute=t.getUTCMinutes(),l.second=t.getUTCSeconds(),l.millisecond=t.getUTCMilliseconds()}h.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.zone])),h.iso>-1&&(l.year=o.toNumber(p[h.iso+0]),l.month=o.toNumber(p[h.iso+1])-1,l.day=o.toNumber(p[h.iso+2]),l.hour=o.toNumber(p[h.iso+3]),l.minute=o.toNumber(p[h.iso+4]),l.second=o.toNumber(p[h.iso+5]),l.millisecond=o.toNumber(p[h.iso+6]),"Z"==p[h.iso+7]||"z"==p[h.iso+7]?l.utc=!0:""!=p[h.iso+7]&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.iso+7]))),s=l.utc?new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else s=new Date(t);return s}resolveTimezoneOffset(t,e){if(e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let i=e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),s=i[1],n=i[2],r=i[3],o=60*parseInt(n)+parseInt(r);return"+"==s&&(o*=-1),o-(t||new Date).getTimezoneOffset()}return 0}resolveMonth(t){let e=this._months().indexOf(t);return e>-1||!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._months()).indexOf(t),e>-1)?e:0}resolveShortMonth(t){let e=this._shortMonths().indexOf(t);return e>-1?e:(e=this._months().indexOf(t),e>-1||this._root.language&&!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._shortMonths()).indexOf(t),e>-1)?e:0)}isAm(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1}getStringList(t){let e=[];for(let i=0;i{t.dispose()}))}}class a extends n{constructor(t){super(),this._disposers=t}_dispose(){s.each(this._disposers,(t=>{t.dispose()}))}get disposers(){return this._disposers}}class h extends n{_dispose(){null!=this._disposer&&(this._disposer.dispose(),this._disposer=void 0)}get(){return this._value}set(t,e){null!=this._disposer&&this._disposer.dispose(),this._disposer=e,this._value=t}reset(){this.set(void 0,void 0)}}class l extends r{constructor(){super(...arguments),this._counter=0}increment(){return++this._counter,new r((()=>{--this._counter,0===this._counter&&this.dispose()}))}}},798:function(t,e,i){"use strict";i.d(e,{$:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{constructor(){super(...arguments),this._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}}_setDefaults(){const t="_duration_millisecond",e="_duration_second",i="_duration_minute",s="_duration_hour",n="_duration_day",r="_duration_week",o="_duration_month",a="_minute",h="_hour",l="_day",c="_week",u="_week",d="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(t),second:this._t(t+"_second"),minute:this._t(t+a),hour:this._t(t+h),day:this._t(t+l),week:this._t(t+c),month:this._t(t+u),year:this._t(t+d)},second:{second:this._t(e),minute:this._t(e+a),hour:this._t(e+h),day:this._t(e+l),week:this._t(e+c),month:this._t(e+u),year:this._t(e+d)},minute:{minute:this._t(i),hour:this._t(i+h),day:this._t(i+l),week:this._t(i+c),month:this._t(i+u),year:this._t(i+d)},hour:{hour:this._t(s),day:this._t(s+l),week:this._t(s+c),month:this._t(s+u),year:this._t(s+d)},day:{day:this._t(n),week:this._t(n+c),month:this._t(n+u),year:this._t(n+d)},week:{week:this._t(r),month:this._t(r+u),year:this._t(r+d)},month:{month:this._t(o),year:this._t(o+d)},year:{year:this._t("_duration_year")}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s=i||this.get("baseUnit");void 0!==e&&""!==e||(e=null!=this.get("durationFormat")?this.get("durationFormat"):this.getFormat(a.toNumber(t),void 0,s)),e=o.cleanFormat(e);let n,r=this.parseFormat(e,s),h=Number(t);n=h>this.get("negativeBase")?r.positive:h{if(e.parsed)return;let i=e.source,s=[];s=e.source.match(/^\[([^\]]*)\]/),s&&s.length&&""!==s[0]&&(i=e.source.substr(s[0].length),e.color=s[1]);let r=n.V.chunk(i,!0);for(let t=0;t{"millisecond"==t&&1e3==i?(h.second++,h.millisecond=0):"second"==t&&60==i?(h.minute++,h.second=0):"minute"==t&&60==i?(h.hour++,h.minute=0):"hour"==t&&24==i?(h.day++,h.hour=0):"day"==t&&7==i&&-1!==e.parts.indexOf("w")?(h.week++,h.day=0):"day"==t&&30==i?(h.month++,h.day=0):"month"==t&&12==i&&(h.year++,h.month=0)}));for(let t=0,i=e.parts.length;t{if(t==e||i){if(s/n<=1)return i||(i=t),!1;i=t}return!0})),i}getMilliseconds(t,e){return e||(e=this.get("baseUnit")),t*this._getUnitValue(e)}_getUnitValue(t){return this._getUnitValues()[t]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}},9395:function(t,e,i){"use strict";i.r(e),i.d(e,{bounce:function(){return k},circle:function(){return c},cubic:function(){return o},elastic:function(){return P},exp:function(){return h},inOut:function(){return p},linear:function(){return n},out:function(){return d},pow:function(){return a},quad:function(){return r},sine:function(){return l},yoyo:function(){return u}});var s=i(751);function n(t){return t}function r(t){return t*t}function o(t){return t*t*t}function a(t,e){return Math.pow(t,e)}function h(t){return Math.pow(2,10*t-10)}function l(t){return 1-Math.cos(t*s.HALFPI)}function c(t){return 1-Math.sqrt(1-t*t)}function u(t){return function(e){return t(e<.5?2*e:2*(1-e))}}function d(t){return function(e){return 1-t(1-e)}}function p(t){return function(e){return e<=.5?t(2*e)/2:1-t(2*(1-e))/2}}let g=4/11,f=6/11,_=8/11,m=3/4,y=9/11,v=10/11,w=15/16,b=21/22,x=63/64,D=1/g/g;function k(t){return 1-function(t){return t{this._userSettings[t]=!0}))}get(t,e){const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._settings[t]=e}set(t,e){this._userSettings[t]=!0,this.setRaw(t,e)}remove(t){delete this._userSettings[t],delete this._settings[t]}setAll(t){o.entries(t).forEach((([t,e])=>{this.set(t,e)}))}_eachSetting(t){o.each(this._settings,t)}apply(){const t={stateAnimationEasing:!0,stateAnimationDuration:!0},e=this._entity.states.lookup("default");this._eachSetting(((i,s)=>{t[i]||(t[i]=!0,this!==e&&(i in e._settings||(e._settings[i]=this._entity.get(i))),this._entity.set(i,s))}))}applyAnimate(t){null==t&&(t=this._settings.stateAnimationDuration),null==t&&(t=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let e=this._settings.stateAnimationEasing;null==e&&(e=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",a.cubic)));const i=this._entity.states.lookup("default"),s={stateAnimationEasing:!0,stateAnimationDuration:!0},n={};return this._eachSetting(((r,o)=>{if(!s[r]){s[r]=!0,this!=i&&(r in i._settings||(i._settings[r]=this._entity.get(r)));const a=this._entity.animate({key:r,to:o,duration:t,easing:e});a&&(n[r]=a)}})),n}}class l{constructor(t){this._states={},this._entity=t}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new h(this._entity,e);return this._states[t]=i,i}}remove(t){delete this._states[t]}apply(t){const e=this._states[t];e&&e.apply(),this._entity._applyState(t)}applyAnimate(t,e){let i;const s=this._states[t];return s&&(i=s.applyAnimate(e)),this._entity._applyStateAnimated(t,e),i}}var c=i(3145),u=i(5071),d=i(3540);class p{constructor(t){this._callbacks={},this._disabled={},this._entity=t}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),this._entity._markDirtyKey(t),new s.ku((()=>{u.removeFirst(i,e)&&this._entity._markDirtyKey(t)}))}remove(t){const e=this._callbacks[t];void 0!==e&&(delete this._callbacks[t],0!==e.length&&this._entity._markDirtyKey(t))}enable(t){this._disabled[t]&&(delete this._disabled[t],this._entity._markDirtyKey(t))}disable(t){this._disabled[t]||(this._disabled[t]=!0,this._entity._markDirtyKey(t))}fold(t,e){if(!this._disabled[t]){const i=this._callbacks[t];if(void 0!==i)for(let s=0,n=i.length;s{if(this._stopped)t();else{const e=()=>{i.dispose(),t()},i=this.events.on("stopped",e)}}))}_checkEnded(){return!(this._loops>1&&(--this._loops,1))}_run(t){null!==this._oldTime&&(this._time+=t-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=t}_reset(t){this._oldTime=t,this._time=0}_value(t){return this._interpolate(this._easing(t),this._from,this._to)}}let f=0;class _{constructor(t){this.uid=++f,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._prevSettings={},this._prevPrivateSettings={},this._animatingSettings={},this._animatingPrivateSettings={},this._disposed=!1,this._userProperties={},this.enableDispose=!0,this._settings=t}_checkDirty(){o.keys(this._settings).forEach((t=>{this._userProperties[t]=!0,this._markDirtyKey(t)}))}resetUserSettings(){this._userProperties={}}_runAnimation(t){let e=r.SR.Stopped;if(!this.isDisposed()){let i=!1,s=!1;o.each(this._animatingSettings,((e,n)=>{if(n.stopped)this._stopAnimation(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.set(e,n._value(1)):(i=!0,n._reset(t),this._set(e,n._value(1))):(i=!0,this._set(e,n._value(s)))}else s=!0})),o.each(this._animatingPrivateSettings,((e,n)=>{if(n.stopped)this._stopAnimationPrivate(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.setPrivate(e,n._value(1)):(i=!0,n._reset(t),this._setPrivate(e,n._value(1))):(i=!0,this._setPrivate(e,n._value(s)))}else s=!0})),i?e=r.SR.Playing:s&&(e=r.SR.Paused)}return e}_markDirtyKey(t){this.markDirty()}_markDirtyPrivateKey(t){this.markDirty()}on(t,e){let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}off(t,e){let i=this._settingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._settingEvents[t]}onPrivate(t,e){let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}offPrivate(t,e){let i=this._privateSettingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._privateSettingEvents[t]}getRaw(t,e){const i=this._settings[t];return void 0!==i?i:e}has(t){return t in this._settings}get(t,e){return this.getRaw(t,e)}_sendKeyEvent(t,e){const i=this._settingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_sendPrivateKeyEvent(t,e){const i=this._privateSettingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_setRaw(t,e,i){this._prevSettings[t]=e,this._sendKeyEvent(t,i)}setRaw(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&this._setRaw(t,i,e)}_set(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&(this._setRaw(t,i,e),this._markDirtyKey(t))}_stopAnimation(t){const e=this._animatingSettings[t];e&&(delete this._animatingSettings[t],e.stop())}set(t,e){return this._set(t,e),this._stopAnimation(t),e}remove(t){t in this._settings&&(this._prevSettings[t]=this._settings[t],delete this._settings[t],this._sendKeyEvent(t,void 0),this._markDirtyKey(t)),this._stopAnimation(t)}removeAll(){u.each(o.keys(this._settings),(t=>{this.remove(t)}))}getPrivate(t,e){const i=this._privateSettings[t];return void 0!==i?i:e}_setPrivateRaw(t,e,i){this._prevPrivateSettings[t]=e,this._sendPrivateKeyEvent(t,i)}setPrivateRaw(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&this._setPrivateRaw(t,i,e)}_setPrivate(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&(this._setPrivateRaw(t,i,e),this._markDirtyPrivateKey(t))}_stopAnimationPrivate(t){const e=this._animatingPrivateSettings[t];e&&(e.stop(),delete this._animatingPrivateSettings[t])}setPrivate(t,e){return this._setPrivate(t,e),this._stopAnimationPrivate(t),e}removePrivate(t){t in this._privateSettings&&(this._prevPrivateSettings[t]=this._privateSettings[t],delete this._privateSettings[t],this._markDirtyPrivateKey(t)),this._stopAnimationPrivate(t)}setAll(t){o.each(t,((t,e)=>{this.set(t,e)}))}animate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.get(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.set(e,i);else{if(void 0!==r&&r!==i){this.set(e,r);const t=this._animatingSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.set(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}animatePrivate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.getPrivate(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.setPrivate(e,i);else{if(void 0!==r&&r!==i){this.setPrivate(e,r);const t=this._animatingPrivateSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.setPrivate(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}}class m extends _{constructor(t,e,i,s=[]){if(super(e),this.states=new l(this),this.adapters=new p(this),this.events=this._createEvents(),this._userPrivateProperties={},this._dirty={},this._dirtyPrivate={},this._templates=[],this._defaultThemes=[],this._templateDisposers=[],this._disposers=[],this._runSetup=!0,this._disposerProperties={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t,this._internalTemplates=s,e.id&&this._registerId(e.id)}static new(t,e,i){const s=new this(t,e,!0);return s._template=i,s._afterNew(),s}static _new(t,e,i=[]){const s=new this(t,e,!0,i);return s._afterNew(),s}_afterNew(){this._checkDirty();let t=!1;const e=this._template;e&&(t=!0,e._setObjectTemplate(this)),u.each(this._internalTemplates,(e=>{t=!0,e._setObjectTemplate(this)})),t&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const t=this._template;t&&t._setObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._setObjectTemplate(this)})),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new n.p}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(t,e){const i=this.get(t);if(i)return i;{const i=e();return this.set(t,i),i}}_setDefault(t,e){this.has(t)||super.set(t,e)}_setRawDefault(t,e){this.has(t)||super.setRaw(t,e)}_clearDirty(){o.keys(this._dirty).forEach((t=>{this._dirty[t]=!1})),o.keys(this._dirtyPrivate).forEach((t=>{this._dirtyPrivate[t]=!1}))}isDirty(t){return!!this._dirty[t]}isPrivateDirty(t){return!!this._dirtyPrivate[t]}_markDirtyKey(t){this._dirty[t]=!0,super._markDirtyKey(t)}_markDirtyPrivateKey(t){this._dirtyPrivate[t]=!0,super._markDirtyKey(t)}isType(t){return-1!==this.classNames.indexOf(t)}_pushPropertyDisposer(t,e){let i=this._disposerProperties[t];return void 0===i&&(i=this._disposerProperties[t]=[]),i.push(e),e}_disposeProperty(t){const e=this._disposerProperties[t];void 0!==e&&(u.each(e,(t=>{t.dispose()})),delete this._disposerProperties[t])}set template(t){const e=this._template;e!==t&&(this._template=t,e&&e._removeObjectTemplate(this),t&&t._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(t){}_applyStateAnimated(t,e){}get(t,e){const i=this.adapters.fold(t,this._settings[t]);return void 0!==i?i:e}isUserSetting(t){return this._userProperties[t]||!1}set(t,e){return this._userProperties[t]=!0,super.set(t,e)}setRaw(t,e){this._userProperties[t]=!0,super.setRaw(t,e)}_setSoft(t,e){return this._userProperties[t]?e:super.set(t,e)}remove(t){delete this._userProperties[t],this._removeTemplateProperty(t)}setPrivate(t,e){return this._userPrivateProperties[t]=!0,super.setPrivate(t,e)}setPrivateRaw(t,e){this._userPrivateProperties[t]=!0,super.setPrivateRaw(t,e)}removePrivate(t){delete this._userPrivateProperties[t],this._removeTemplatePrivateProperty(t)}_setTemplateProperty(t,e,i){this._userProperties[e]||t===this._findTemplateByKey(e)&&super.set(e,i)}_setTemplatePrivateProperty(t,e,i){this._userPrivateProperties[e]||t===this._findTemplateByPrivateKey(e)&&super.setPrivate(e,i)}_removeTemplateProperty(t){if(!this._userProperties[t]){const e=this._findTemplateByKey(t);e?super.set(t,e._settings[t]):super.remove(t)}}_removeTemplatePrivateProperty(t){if(!this._userPrivateProperties[t]){const e=this._findTemplateByPrivateKey(t);e?super.setPrivate(t,e._privateSettings[t]):super.removePrivate(t)}}_walkParents(t){t(this._root._rootContainer),t(this)}_applyStateByKey(t){const e=this.states.create(t,{}),i={};this._eachTemplate((s=>{const n=s.states.lookup(t);n&&n._apply(e,i)})),o.each(e._settings,(t=>{i[t]||e._userSettings[t]||e.remove(t)}))}_applyTemplate(t,e){this._templateDisposers.push(t._apply(this,e)),o.each(t._settings,((t,i)=>{e.settings[t]||this._userProperties[t]||(e.settings[t]=!0,super.set(t,i))})),o.each(t._privateSettings,((t,i)=>{e.privateSettings[t]||this._userPrivateProperties[t]||(e.privateSettings[t]=!0,super.setPrivate(t,i))})),this._runSetup&&t.setup&&(this._runSetup=!1,t.setup(this))}_findStaticTemplate(t){if(this._template&&t(this._template))return this._template}_eachTemplate(t){this._findStaticTemplate((e=>(t(e),!1))),u.eachReverse(this._internalTemplates,t),u.each(this._templates,t)}_applyTemplates(t=!0){t&&this._disposeTemplates();const e={settings:{},privateSettings:{},states:{}};this._eachTemplate((t=>{this._applyTemplate(t,e)})),t&&(o.each(this._settings,(t=>{this._userProperties[t]||e.settings[t]||super.remove(t)})),o.each(this._privateSettings,(t=>{this._userPrivateProperties[t]||e.privateSettings[t]||super.removePrivate(t)})))}_findTemplate(t){const e=this._findStaticTemplate(t);if(void 0===e){const e=u.findReverse(this._internalTemplates,t);return void 0===e?u.find(this._templates,t):e}return e}_findTemplateByKey(t){return this._findTemplate((e=>t in e._settings))}_findTemplateByPrivateKey(t){return this._findTemplate((e=>t in e._privateSettings))}_disposeTemplates(){u.each(this._templateDisposers,(t=>{t.dispose()})),this._templateDisposers.length=0}_removeTemplates(){u.each(this._templates,(t=>{t._removeObjectTemplate(this)})),this._templates.length=0}_applyThemes(t=!1){if(this.get("ignoreThemes"))return!1;let e=!1;const i=[];let s=[];const n=new Set,r=this.get("themeTagsSelf");return r&&u.each(r,(t=>{n.add(t)})),this._walkParents((t=>{t===this._root._rootContainer&&(e=!0),t._defaultThemes.length>0&&i.push(t._defaultThemes);const r=t.get("themes");r&&s.push(r);const o=t.get("themeTags");o&&u.each(o,(t=>{n.add(t)}))})),s=i.concat(s),this._removeTemplates(),(e||t)&&u.eachReverse(this.classNames,(t=>{const e=[];u.each(s,(i=>{u.each(i,(i=>{const s=i._lookupRules(t);s&&u.eachReverse(s,(t=>{if(t.tags.every((t=>n.has(t)))){const i=u.getFirstSortedIndex(e,(e=>{const i=d.qu(t.tags.length,e.tags.length);return 0===i?d.wq(t.tags,e.tags,d.qu):i}));e.splice(i.index,0,t)}}))}))})),u.each(e,(t=>{this._templates.push(t.template),t.template._setObjectTemplate(this)}))})),this._applyTemplates(),(e||t)&&(this._runSetup=!1),e||t}_changed(){}_beforeChanged(){if(this.isDirty("id")){const t=this.get("id");t&&this._registerId(t);const e=this._prevSettings.id;e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}}_registerId(t){if(this._root.entitiesById[t]&&this._root.entitiesById[t]!==this)throw new Error('An entity with id "'+t+'" already exists.');this._root.entitiesById[t]=this,c.i_.entitiesById[t]=this}_afterChanged(){}addDisposer(t){return this._disposers.push(t),t}_dispose(){super._dispose();const t=this._template;t&&t._removeObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._removeObjectTemplate(this)})),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach((t=>{t.dispose()})),o.each(this._disposerProperties,((t,e)=>{u.each(e,(t=>{t.dispose()}))}));const e=this.get("id");e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}setTimeout(t,e){const i=setTimeout((()=>{this.removeDispose(n),t()}),e),n=new s.ku((()=>{clearTimeout(i)}));return this._disposers.push(n),n}removeDispose(t){if(!this.isDisposed()){let e=u.indexOf(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()}hasTag(t){return-1!==u.indexOf(this.get("themeTags",[]),t)}addTag(t){if(!this.hasTag(t)){const e=this.get("themeTags",[]);e.push(t),this.set("themeTags",e)}}removeTag(t){if(this.hasTag(t)){const e=this.get("themeTags",[]);u.remove(e,t),this.set("themeTags",e)}}_t(t,e,...i){return this._root.language.translate(t,e,...i)}get root(){return this._root}}m.className="Entity",m.classNames=["Entity"]},9770:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var s=i(7449),n=i(5071),r=i(5040);class o{constructor(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{n.each(t,(t=>{t.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}}hasListeners(){return 0!==this._listeners.length}hasListenersByType(t){return n.any(this._listeners,(e=>(null===e.type||e.type===t)&&!e.killed))}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(t){delete this._disabled[t]}disableType(t,e=1/0){this._disabled[t]=e}_removeListener(t){if(0===this._iterating){const e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)}_removeExistingListener(t,e,i,s){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((n=>{n.once!==t||n.type!==e||void 0!==i&&n.callback!==i||n.context!==s||n.disposer.dispose()}))}isEnabled(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&void 0===this._disabled[t]}removeType(t){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((e=>{e.type===t&&e.disposer.dispose()}))}has(t,e,i){return-1!==n.findIndex(this._listeners,(s=>!0!==s.once&&s.type===t&&(void 0===e||s.callback===e)&&s.context===i))}_shouldDispatch(t){if(this._disposed)throw new Error("EventDispatcher is disposed");const e=this._disabled[t];return r.isNumber(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled}_eachListener(t){++this._iterating;try{n.each(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(n.each(this._killed,(t=>{this._removeListener(t)})),this._killed.length=0)}}dispatch(t,e){this._shouldDispatch(t)&&this._eachListener((i=>{i.killed||null!==i.type&&i.type!==t||(i._debounceDelay?(i._debounceTimeout&&window.clearTimeout(i._debounceTimeout),i._debounceTimeout=window.setTimeout((()=>{i._debounceTimeout=void 0,i.killed||i.dispatch(t,e)}),i._debounceDelay)):i.dispatch(t,e))}))}_on(t,e,i,n,r,o,a){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);const h={type:e,callback:i,context:n,shouldClone:r,dispatch:o,killed:!1,once:t,disposer:new s.ku((()=>{h.killed=!0,h._debounceTimeout&&window.clearTimeout(h._debounceTimeout),this._removeListener(h)})),_debounceDelay:a};return this._listeners.push(h),h}onAll(t,e,i=!0){return this._on(!1,null,t,e,i,((i,s)=>t.call(e,s))).disposer}on(t,e,i,s=!0){return this._on(!1,t,e,i,s,((t,s)=>e.call(i,s))).disposer}onDebounced(t,e,i,s,n=!0){return this._on(!1,t,e,s,n,((t,i)=>e.call(s,i)),i).disposer}once(t,e,i,s=!0){const n=this._on(!0,t,e,i,s,((t,s)=>{n.disposer.dispose(),e.call(i,s)}));return n.disposer}off(t,e,i){this._removeExistingListener(!1,t,e,i)}copyFrom(t){if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const e=[];return n.each(t._listeners,(t=>{!t.killed&&t.shouldClone&&(null===t.type?e.push(this.onAll(t.callback,t.context)):t.once?e.push(this.once(t.type,t.callback,t.context)):e.push(this.on(t.type,t.callback,t.context)))})),new s.FV(e)}}},9821:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(6331);class n extends s.JH{}n.className="InterfaceColors",n.classNames=s.JH.classNames.concat([n.className])},7144:function(t,e,i){"use strict";i.d(e,{aV:function(){return o},dn:function(){return a},o:function(){return h}});var s=i(9770),n=i(5071);function r(t,e){if(!(t>=0&&t=0&&t{this.push(t)}))}copyFrom(t){this.pushAll(t._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(t){const e=this._values;this._values=[],this._onClear(e),n.each(t,(t=>{this._values.push(t),this._onPush(t)}))}clear(){this.setAll([])}*[Symbol.iterator](){const t=this._values.length;for(let e=0;e{t.dispose()})),super._onClear(t)}_dispose(){this.autoDispose&&n.each(this._values,(t=>{t.dispose()}))}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class h extends a{constructor(t,e){super(),this.template=t,this.make=e}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}}},751:function(t,e,i){"use strict";i.r(e),i.d(e,{DEGREES:function(){return a},HALFPI:function(){return r},PI:function(){return n},RADIANS:function(){return o},boundsOverlap:function(){return M},ceil:function(){return l},circlesOverlap:function(){return O},closest:function(){return T},cos:function(){return f},fitAngleToRange:function(){return w},fitToRange:function(){return d},getAngle:function(){return x},getArcBounds:function(){return m},getArcPoint:function(){return y},getCubicControlPointA:function(){return c},getCubicControlPointB:function(){return u},getPointOnLine:function(){return k},getPointOnQuadraticCurve:function(){return D},inBounds:function(){return b},mergeBounds:function(){return v},normalizeAngle:function(){return _},round:function(){return h},sin:function(){return p},spiralPoints:function(){return E},tan:function(){return g}});var s=i(5040);const n=Math.PI,r=n/2,o=n/180,a=180/n;function h(t,e,i){if(!(0,s.isNumber)(e)||e<=0){let e=Math.round(t);return i&&e-t==.5&&e--,e}{let i=Math.pow(10,e);return Math.round(t*i)/i}}function l(t,e){if(!(0,s.isNumber)(e)||e<=0)return Math.ceil(t);{let i=Math.pow(10,e);return Math.ceil(t*i)/i}}function c(t,e,i,s,n){return{x:(-t.x+e.x/s+i.x)*s,y:(-t.y+e.y/n+i.y)*n}}function u(t,e,i,s,n){return{x:(t.x+e.x/s-i.x)*s,y:(t.y+e.y/n-i.y)*n}}function d(t,e,i){return Math.min(Math.max(t,e),i)}function p(t){return Math.sin(o*t)}function g(t){return Math.tan(o*t)}function f(t){return Math.cos(o*t)}function _(t){return(t%=360)<0&&(t+=360),t}function m(t,e,i,s,n){let r=Number.MAX_VALUE,o=Number.MAX_VALUE,a=-Number.MAX_VALUE,h=-Number.MAX_VALUE,l=[];l.push(y(n,i)),l.push(y(n,s));let c=Math.min(90*Math.floor(i/90),90*Math.floor(s/90)),u=Math.max(90*Math.ceil(i/90),90*Math.ceil(s/90));for(let t=c;t<=u;t+=90)t>=i&&t<=s&&l.push(y(n,t));for(let t=0;ta&&(a=e.x),e.y>h&&(h=e.y)}return{left:t+r,top:e+o,right:t+a,bottom:e+h}}function y(t,e){return{x:t*f(e),y:t*p(e)}}function v(t){const e=t.length;if(e>0){let i=t[0],s=i.left,n=i.top,r=i.right,o=i.bottom;if(e>1)for(let a=1;ai){let t=e;e=i,i=t}t=_(t);let s=(e-_(e))/360;return ti&&(t-360>e?t-=360:t=te+(i-e)/2-180?e:i),t}function b(t,e){return t.x>=e.left&&t.y>=e.top&&t.x<=e.right&&t.y<=e.bottom}function x(t,e){e||(e={x:2*t.x,y:2*t.y});let i=e.x-t.x,s=e.y-t.y,n=Math.atan2(s,i)*a;return n<0&&(n+=360),_(n)}function D(t,e,i,s){return{x:(1-s)*(1-s)*t.x+2*(1-s)*s*i.x+s*s*e.x,y:(1-s)*(1-s)*t.y+2*(1-s)*s*i.y+s*s*e.y}}function k(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function T(t,e){return t.reduce((function(t,i){return Math.abs(i-e)e.left,s=t.tope.top;return i&&s}function E(t,e,i,s,n,r,h,l,c){let u=n+.01;l=_(l),c=_(c);let d=l*o;cu&&(o=2*u),o*=Math.max(.01,Math.min(1,u/200));let g=d*a,f={x:t+u*Math.cos(d),y:e+u*s/i*Math.sin(d)};if(p.push(f),u=n+.01+(g-l)/360*h,d+=2*Math.asin(o/2/u),d*a>c+360*Math.ceil((i-n)/h))break}return p.shift(),p}function O(t,e){return Math.hypot(t.x-e.x,t.y-e.y)<=t.radius+e.radius}},8219:function(t,e,i){"use strict";i.d(e,{u:function(){return a}});var s=i(6331),n=i(7652),r=i(7449);let o;class a extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._setRawDefault("deactivateRoot",!0),function(t,e,i){const s=e.interfaceColors,a=s.get("secondaryButton").toCSS(),h=s.get("text").toCSS(),l=s.get("alternativeBackground").toCSS(.45);if(!o){const i=new r.FV([new n.StyleRule(t,".am5-modal",{width:"100%",height:"100%",position:"absolute","z-index":"100000",top:"0",left:"0"},e.nonce),new n.StyleRule(t,".am5-modal-curtain",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute",background:s.get("background").toCSS(.5),"z-index":"100"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute","text-align":"center","white-space":"nowrap",background:s.get("background").toCSS(.5),"z-index":"101"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper:before",{content:"''",display:"inline-block",height:"100%","vertical-align":"middle","margin-right":"-0.25em"},e.nonce),new n.StyleRule(t,".am5-modal-content",{display:"inline-block",padding:"1.2em","vertical-align":"middle","text-align":"start","white-space":"normal",background:s.get("background").toCSS(),"border-radius":"4px","-webkit-box-shadow":"0px 0px 36px 0px "+l,"box-shadow":"0px 0px 36px 0px "+l,color:h},e.nonce),new n.StyleRule(t,".am5-modal-content h1",{"font-size":"1em",margin:"0 0 0.5em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table",{display:"table",margin:"1em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-row",{display:"table-row"},e.nonce),new n.StyleRule(t,".am5-modal-table-heading",{display:"table-heading",padding:"3px 10px 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell",{display:"table-cell",padding:"3px 0 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell > *",{"vertical-align":"middle"},e.nonce),new n.StyleRule(t,".am5-modal-content input[type=text], .am5-modal-content input[type=number], .am5-modal-content select",{border:"1px solid "+a,"border-radius":"4px",padding:"3px 5px",margin:"2px"},e.nonce),new n.StyleRule(t,".am5-modal-input-narrow",{width:"50px"},e.nonce),new n.StyleRule(t,".am5-modal-button",{"font-weight":"400",color:s.get("secondaryButtonText").toCSS(),"line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer",padding:"0.2em 0.8em","font-size":"1em","border-radius":"0.25em",margin:"0 0.25em 0 0",border:"1px solid "+s.get("secondaryButtonStroke").toCSS(),background:s.get("secondaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button:hover",{background:s.get("secondaryButtonHover").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary",{color:s.get("primaryButtonText").toCSS(),border:"1px solid "+s.get("primaryButtonStroke").toCSS(),background:s.get("primaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary:hover",{background:s.get("primaryButtonHover").toCSS()},e.nonce)]);o=new r.DM((()=>{o=void 0,i.dispose()}))}o.increment()}(n.getShadowRoot(this._root.dom),this._root);const t=document.createElement("div");t.className="am5-modal",t.style.display="none",this.root._inner.appendChild(t),this.setPrivate("container",t);const e=document.createElement("div");e.className="am5-modal-curtain",t.appendChild(e),this.setPrivate("curtain",e),this._disposers.push(n.addEventListener(e,"click",(()=>{this.cancel()})));const i=document.createElement("div");i.className="am5-modal-wrapper",t.appendChild(i),this.setPrivate("wrapper",i);const s=document.createElement("div");s.className="am5-modal-content",i.appendChild(s),this.setPrivate("content",s);const a=this.get("content");a&&(s.innerHTML=a),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{this.isOpen()&&"Escape"==n.getEventKey(t)&&this.cancel()})))}_beforeChanged(){super._beforeChanged(),this.isDirty("content")&&(this.getPrivate("content").innerHTML=this.get("content",""))}isOpen(){return"none"!=this.getPrivate("container").style.display}open(){this.getPrivate("container").style.display="block",this.get("deactivateRoot")&&this.setTimeout((()=>{this._root._renderer.interactionsEnabled=!1}),10),this.events.dispatch("opened",{type:"opened",target:this})}close(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("closed",{type:"closed",target:this})}cancel(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("cancelled",{type:"cancelled",target:this})}_dispose(){super._dispose();const t=this.getPrivate("container");t.parentElement&&t.parentElement.removeChild(t)}}a.className="Modal",a.classNames=s.JH.classNames.concat([a.className])},780:function(t,e,i){"use strict";i.d(e,{e:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const t="_big_number_suffix_",e="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(t+"3")},{number:1e6,suffix:this._t(t+"6")},{number:1e9,suffix:this._t(t+"9")},{number:1e12,suffix:this._t(t+"12")},{number:1e15,suffix:this._t(t+"15")},{number:1e18,suffix:this._t(t+"18")},{number:1e21,suffix:this._t(t+"21")},{number:1e24,suffix:this._t(t+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(e+"24")},{number:1e-21,suffix:this._t(e+"21")},{number:1e-18,suffix:this._t(e+"18")},{number:1e-15,suffix:this._t(e+"15")},{number:1e-12,suffix:this._t(e+"12")},{number:1e-9,suffix:this._t(e+"9")},{number:1e-6,suffix:this._t(e+"6")},{number:.001,suffix:this._t(e+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s;(null==e||a.isString(e)&&"number"===e.toLowerCase())&&(e=this.get("numberFormat",""));let n=Number(t);if(a.isObject(e))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),e).format(n):new Intl.NumberFormat(void 0,e).format(n)}catch(t){return"Invalid"}else{e=o.cleanFormat(e);let t,h=this.parseFormat(e,this._root.language);t=n>this.get("negativeBase")?h.positive:n{if(e.parsed)return;let i=e.source;"number"===i.toLowerCase()&&(i=this.get("numberFormat","#,###.#####"));let s=n.V.chunk(i,!0);for(let t=0;t=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(i[0]),n="e"+i[1],e.modSpacing&&(n=" "+n)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){const i=o.decimalPlaces(t);if(i>0){const s=Math.pow(10,e.decimals.passive);t=Math.round(parseFloat((t*s).toFixed(i)))/s}}let h="",l=a.numberToString(t).split("."),c=l[0];if(c.length0){let t=[],i=c.split("").reverse().join("");for(let s=0,n=c.length;s<=n;s+=e.thousands.interval){let n=i.substr(s,e.thousands.interval).split("").reverse().join("");""!==n&&t.unshift(n)}c=t.join(e.thousands.separator)}h+=c,1===l.length&&l.push("");let u=l[1];return u.length{e(i,t[i])}))}function l(t,e){for(let i in t)if(u(t,i)&&!e(i,t[i]))break}function c(t,e,i){s.each(o(t,i),(i=>{e(i,t[i])}))}function u(t,e){return{}.hasOwnProperty.call(t,e)}function d(t,e){return h(t,((t,i)=>{null!=i&&null==e[t]&&(e[t]=i)})),e}},3540:function(t,e,i){"use strict";function s(t,e){return t===e?0:t{a.isObject(e)&&"function"==typeof e.dispose&&(e.enableDispose=!0,e.dispose())}))}class l{constructor(t,e,i){this._name=t,this._template=e,this._settings=i}_dispose(){h(this._settings)}get(t,e){const i=this._settings[t];return void 0!==i?i:e}set(t,e){this._settings[t]=e,this._template._stateChanged(this._name)}remove(t){delete this._settings[t],this._template._stateChanged(this._name)}setAll(t){o.keys(t).forEach((e=>{this._settings[e]=t[e]})),this._template._stateChanged(this._name)}_apply(t,e){o.each(this._settings,((i,s)=>{e[i]||t._userSettings[i]||(e[i]=!0,t.setRaw(i,s))}))}}class c{constructor(t){this._states={},this._template=t}_dispose(){o.each(this._states,((t,e)=>{e._dispose()}))}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new l(t,this._template,e);return this._states[t]=i,this._template._stateChanged(t),i}}remove(t){delete this._states[t],this._template._stateChanged(t)}_apply(t,e){o.each(this._states,((i,s)=>{let n=e.states[i];null==n&&(n=e.states[i]={});const r=t.states.create(i,{});s._apply(r,n)}))}}class u{constructor(){this._callbacks={}}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._callbacks[t]}))}remove(t){void 0!==this._callbacks[t]&&delete this._callbacks[t]}_apply(t){const e=[];return o.each(this._callbacks,((i,s)=>{r.each(s,(s=>{e.push(t.adapters.add(i,s))}))})),new n.FV(e)}}class d{constructor(t,e){if(this._disposed=!1,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._entities=[],this.states=new c(this),this.adapters=new u,this.events=new s.p,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=t}static new(t){return new d(t,!0)}_dispose(){h(this._settings),h(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(t,e){this._checkDisposed();const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._checkDisposed(),this._settings[t]=e}set(t,e){this._checkDisposed(),this._settings[t]!==e&&(this.setRaw(t,e),this._entities.forEach((i=>{i._setTemplateProperty(this,t,e)})))}remove(t){this._checkDisposed(),t in this._settings&&(delete this._settings[t],this._entities.forEach((e=>{e._removeTemplateProperty(t)})))}removeAll(){this._checkDisposed(),o.each(this._settings,((t,e)=>{this.remove(t)}))}getPrivate(t,e){this._checkDisposed();const i=this._privateSettings[t];return void 0!==i?i:e}setPrivateRaw(t,e){return this._checkDisposed(),this._privateSettings[t]=e,e}setPrivate(t,e){return this._checkDisposed(),this._privateSettings[t]!==e&&(this.setPrivateRaw(t,e),this._entities.forEach((i=>{i._setTemplatePrivateProperty(this,t,e)}))),e}removePrivate(t){this._checkDisposed(),t in this._privateSettings&&(delete this._privateSettings[t],this._entities.forEach((e=>{e._removeTemplatePrivateProperty(t)})))}setAll(t){this._checkDisposed(),o.each(t,((t,e)=>{this.set(t,e)}))}on(t,e){this._checkDisposed();let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}onPrivate(t,e){this._checkDisposed();let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}_apply(t,e){this._checkDisposed();const i=[];return o.each(this._settingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.on(e,s))}))})),o.each(this._privateSettingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.onPrivate(e,s))}))})),this.states._apply(t,e),i.push(this.adapters._apply(t)),i.push(t.events.copyFrom(this.events)),new n.FV(i)}_setObjectTemplate(t){this._checkDisposed(),this._entities.push(t)}_removeObjectTemplate(t){r.remove(this._entities,t)}_stateChanged(t){this._checkDisposed(),this._entities.forEach((e=>{e._applyStateByKey(t)}))}}},7255:function(t,e,i){"use strict";i.d(e,{V:function(){return r}});var s=i(1112),n=i(5040);class r{static escape(t){return t.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(t){return t.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(t,e=!1,i=!1){let s=[];t=this.escape(t);let r=e?t.split("'"):[t];for(let t=0;t{setTimeout(e,t)}))}let o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629742400,year:31536e6};function a(t){switch(t){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function h(t,e){return null==e&&(e=1),o[t]*e}function l(t){return t?o[t.timeUnit]*t.count:0}function c(t,e,i,s,n){const r=t.timeUnit,a=t.count;if("hour"==r||"minute"==r||"second"==r||"millisecond"==r)return o[t.timeUnit]*t.count;{const t=m(new Date(e.getTime()),r,a,i,s,void 0,n).getTime();let o=t+a*h(r)*1.05;return o=m(new Date(o),r,1,i,s,void 0,n).getTime(),o-t}}function u(){return new Date}function d(){return u().getTime()}function p(t){return new Date(t.getTime())}function g(t,e,i,s,n){if(e-t>h(i,1.2))return!0;let r=new Date(t),o=new Date(e);n&&(r=n.convertLocal(r),o=n.convertLocal(o));let l=0,c=0;s||"millisecond"==i||(l=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-l),c=o.getTimezoneOffset(),o.setUTCMinutes(o.getUTCMinutes()-c));let u=!1;switch(i){case"year":r.getUTCFullYear()!=o.getUTCFullYear()&&(u=!0);break;case"month":(r.getUTCFullYear()!=o.getUTCFullYear()||r.getUTCMonth()!=o.getUTCMonth())&&(u=!0);break;case"day":(r.getUTCMonth()!=o.getUTCMonth()||r.getUTCDate()!=o.getUTCDate())&&(u=!0);break;case"hour":r.getUTCHours()!=o.getUTCHours()&&(u=!0);break;case"minute":r.getUTCMinutes()!=o.getUTCMinutes()&&(u=!0);break;case"second":r.getUTCSeconds()!=o.getUTCSeconds()&&(u=!0);break;case"millisecond":r.getTime()!=o.getTime()&&(u=!0)}if(u)return u;let d=a(i);return!!d&&g(t,e,d,s,n)}function f(t,e,i,s,n){let r=0;switch(s||"millisecond"==e||(r=t.getTimezoneOffset(),n&&(r-=n.offsetUTC(t)),t.setUTCMinutes(t.getUTCMinutes()-r)),e){case"day":let e=t.getUTCDate();t.setUTCDate(e+i);break;case"second":let s=t.getUTCSeconds();t.setUTCSeconds(s+i);break;case"millisecond":let n=t.getUTCMilliseconds();t.setUTCMilliseconds(n+i);break;case"hour":let r=t.getUTCHours();t.setUTCHours(r+i);break;case"minute":let o=t.getUTCMinutes();t.setUTCMinutes(o+i);break;case"year":let a=t.getUTCFullYear();t.setUTCFullYear(a+i);break;case"month":const h=t.getUTCDate(),l=new Date(t.getUTCFullYear(),t.getUTCMonth(),0).getUTCDate();let c=t.getUTCMonth();h>l?t.setUTCMonth(c+i,l):t.setUTCMonth(c+i);break;case"week":let u=t.getUTCDate();t.setUTCDate(u+7*i)}if(!s&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+r),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(n&&(e+=n.offsetUTC(t)),e!=r){let i=e-r;t.setUTCMinutes(t.getUTCMinutes()+i),t.getTimezoneOffset()!=e&&t.setUTCMinutes(t.getUTCMinutes()-i)}}return t}function _(t,e,i,s,n){let r;return null!=n&&(r=new Date(n)),m(new Date(t),e,i,s.locale.firstDayOfWeek,s.utc,r,s.timezone).getTime()}function m(t,e,i,n,r,o,a){if(!a||r){let a=0;switch(r||"millisecond"==e||(a=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-a)),e){case"day":let e=t.getUTCDate();if(i>1){if(o){o=m(o,"day",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),n=h("day",s*i);t.setTime(o.getTime()+n-a*h("minute"))}}else t.setUTCDate(e);t.setUTCHours(0,0,0,0);break;case"second":let r=t.getUTCSeconds();i>1&&(r=Math.floor(r/i)*i),t.setUTCSeconds(r,0);break;case"millisecond":if(1==i)return t;let l=t.getUTCMilliseconds();l=Math.floor(l/i)*i,t.setUTCMilliseconds(l);break;case"hour":let c=t.getUTCHours();i>1&&(c=Math.floor(c/i)*i),t.setUTCHours(c,0,0,0);break;case"minute":let u=t.getUTCMinutes();i>1&&(u=Math.floor(u/i)*i),t.setUTCMinutes(u,0,0);break;case"month":let d=t.getUTCMonth();i>1&&(2!=i&&3!=i&&4!=i&&6!=i||(d=Math.floor(d/i)*i)),t.setUTCMonth(d,1),t.setUTCHours(0,0,0,0);break;case"year":let p=t.getUTCFullYear();i>1&&(p=Math.floor(p/i)*i),t.setUTCFullYear(p,0,1),t.setUTCHours(0,0,0,0);break;case"week":if(i>1&&o){o=m(o,"week",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("week")/i),n=h("week",s*i);t.setTime(o.getTime()+n-a*h("minute"))}let g=t.getUTCDate(),f=t.getUTCDay();s.isNumber(n)||(n=1),g=f>=n?g-f+n:g-(7+f)+n,t.setUTCDate(g),t.setUTCHours(0,0,0,0)}if(!r&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+a),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(e!=a){let i=e-a;t.setUTCMinutes(t.getUTCMinutes()+i)}}return t}{if(isNaN(t.getTime()))return t;let l=t.getTime(),c=a.offsetUTC(t),u=t.getTimezoneOffset(),d=a.parseDate(t),p=d.year,g=d.month,f=d.day,_=d.hour,y=d.minute,v=d.second,w=d.millisecond,b=d.weekday,x=c-u;switch(e){case"day":if(i>1&&o){o=m(o,"day",1,n,r,void 0,a);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),l=h("day",s*i);t.setTime(o.getTime()+l),d=a.parseDate(t),p=d.year,g=d.month,f=d.day}_=0,y=x,v=0,w=0;break;case"second":y+=x,i>1&&(v=Math.floor(v/i)*i),w=0;break;case"millisecond":y+=x,i>1&&(w=Math.floor(w/i)*i);break;case"hour":i>1&&(_=Math.floor(_/i)*i),y=x,v=0,w=0;break;case"minute":i>1&&(y=Math.floor(y/i)*i),y+=x,v=0,w=0;break;case"month":i>1&&(g=Math.floor(g/i)*i),f=1,_=0,y=x,v=0,w=0;break;case"year":i>1&&(p=Math.floor(p/i)*i),g=0,f=1,_=0,y=x,v=0,w=0;break;case"week":s.isNumber(n)||(n=1),f=b>=n?f-b+n:f-(7+b)+n,_=0,y=x,v=0,w=0}const D=(t=new Date(p,g,f,_,y,v,w)).getTime();let k=36e5;"hour"==e&&(k=36e5*i),D+k<=l&&("hour"!=e&&"minute"!=e&&"second"!=e&&"millisecond"!=e||(t=new Date(D+k)));let T=t.getTimezoneOffset(),M=a.offsetUTC(t)-T;return M!=x&&t.setTime(t.getTime()+6e4*(M-x)),t}}function y(t,e,i,s){let n=l(s[t]),r=s.length-1;if(t>=r)return Object.assign({},s[r]);let o=Math.ceil(e/n);return e0?Object.assign({},s[t-1]):o<=i?Object.assign({},s[t]):t+1{switch(t.type){case"year":i=+t.value;break;case"month":s=+t.value-1;break;case"day":n=+t.value;break;case"hour":r=+t.value;break;case"minute":o=+t.value;break;case"second":a=+t.value;break;case"fractionalSecond":h=+t.value;break;case"weekday":switch(t.value){case"Sun":l=0;break;case"Mon":l=1;break;case"Tue":l=2;break;case"Wed":l=3;break;case"Thu":l=4;break;case"Fri":l=5;break;case"Sat":l=6}}})),24===r&&(r=0),{year:i,month:s,day:n,hour:r,minute:o,second:a,millisecond:h,weekday:l}}function n(t,e){const{year:i,month:n,day:r,hour:o,minute:a,second:h,millisecond:l}=s(t,e);return Date.UTC(i,n,r,o,a,h,l)}i.d(e,{r:function(){return r}});class r{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=t,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(t){return new this(t,!0)}convertLocal(t){const e=this.offsetUTC(t),i=t.getTimezoneOffset(),s=new Date(t);s.setUTCMinutes(s.getUTCMinutes()-(e-i));const n=s.getTimezoneOffset();return i!=n&&s.setUTCMinutes(s.getUTCMinutes()+n-i),s}offsetUTC(t){return(n(this._utc,t)-n(this._dtf,t))/6e4}parseDate(t){return s(this._dtf,t)}}},5040:function(t,e,i){"use strict";function s(t){return Number(t)!==t}function n(t){return{}.toString.call(t)}function r(t,e="Assertion failed"){if(!t)throw new Error(e)}function o(t){if(null!=t&&!d(t)){let e=Number(t);if(s(e)&&u(t)&&""!=t&&t.match(/[0-9]+/)){const i=t.replace(/[^0-9.\-]+/g,"");return t===i?e:o(i)}return e}return t}function a(t){if(c(t))return new Date(t);if(d(t))return new Date(t);{let e=Number(t);return d(e)?new Date(e):new Date(t)}}function h(t){if(s(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t==-1/0)return"-0";let e=t<0;t=Math.abs(t);let i,n=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t),r=n[1],o=n[2]||"";if(void 0===n[3])i=""===o?r:r+"."+o;else{let e=+n[3];if(t<1)i="0."+l("0",e-1)+r+o;else{let t=e-o.length;i=0===t?r+o:t<0?r+o.slice(0,t)+"."+o.slice(t):r+o+l("0",t)}}return e?"-"+i:i}function l(t,e){return new Array(e+1).join(t)}function c(t){return"[object Date]"===n(t)}function u(t){return"string"==typeof t}function d(t){return"number"==typeof t&&Number(t)==t}function p(t){return"object"==typeof t&&null!==t}function g(t){return Array.isArray(t)}i.r(e),i.d(e,{PLACEHOLDER:function(){return f},PLACEHOLDER2:function(){return _},assert:function(){return r},getType:function(){return n},isArray:function(){return g},isDate:function(){return c},isNaN:function(){return s},isNumber:function(){return d},isObject:function(){return p},isString:function(){return u},numberToString:function(){return h},repeat:function(){return l},toDate:function(){return a},toNumber:function(){return o}});const f="__§§§__",_="__§§§§__"},7652:function(t,e,i){"use strict";i.r(e),i.d(e,{StyleRule:function(){return E},StyleSheet:function(){return O},addClass:function(){return P},addEventListener:function(){return l},addSpacing:function(){return Y},alternativeColor:function(){return dt},blur:function(){return p},brighten:function(){return ht},capitalizeFirst:function(){return et},cleanFormat:function(){return z},contains:function(){return w},decimalPlaces:function(){return A},escapeForRgex:function(){return W},focus:function(){return g},get12Hours:function(){return Q},getBrightnessStep:function(){return lt},getDayFromWeek:function(){return q},getEventKey:function(){return D},getEventTarget:function(){return v},getFormat:function(){return H},getLightnessStep:function(){return at},getMonthWeek:function(){return K},getPointerId:function(){return d},getRendererEvent:function(){return f},getSafeResolution:function(){return C},getShadowRoot:function(){return k},getStyle:function(){return y},getTimeZone:function(){return J},getTimezoneOffset:function(){return tt},getWeek:function(){return $},getWeekYear:function(){return Z},getYearDay:function(){return X},hslToHsv:function(){return rt},hslToRgb:function(){return it},hsvToHsl:function(){return nt},iOS:function(){return N},isLight:function(){return ct},isLocalEvent:function(){return b},isTouchEvent:function(){return _},lighten:function(){return ot},mergeTags:function(){return pt},onZoom:function(){return c},padString:function(){return R},plainText:function(){return V},ready:function(){return a},relativeToValue:function(){return L},removeClass:function(){return S},removeElement:function(){return h},rgbToHsl:function(){return st},sameBounds:function(){return gt},saturate:function(){return ut},setInteractive:function(){return x},setStyle:function(){return m},splitString:function(){return j},stripTags:function(){return G},supports:function(){return u},trim:function(){return F},trimLeft:function(){return U},trimRight:function(){return B},truncateTextWithEllipsis:function(){return I}});var s=i(5040),n=i(5071),r=i(256),o=i(7449);function a(t){if("loading"!==document.readyState)t();else{const e=()=>{"loading"!==document.readyState&&(document.removeEventListener("readystatechange",e),t())};document.addEventListener("readystatechange",e)}}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function l(t,e,i,s){return t.addEventListener(e,i,s||!1),new o.ku((()=>{t.removeEventListener(e,i,s||!1)}))}function c(t){return l(window,"resize",(e=>{t()}))}function u(t){switch(t){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function d(t){return t.pointerId||0}function p(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let t=document.createElement("button");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}}function g(t){t&&t.focus()}function f(t){if(u("pointerevents"))return t;if(u("touchevents"))switch(t){case"pointerover":case"pointerdown":return"touchstart";case"pointerout":case"pointerleave":case"pointerup":return"touchend";case"pointermove":return"touchmove";case"click":return"click";case"dblclick":return"dblclick"}else if(u("mouseevents"))switch(t){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return t}function _(t){if("undefined"!=typeof Touch&&t instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&t instanceof PointerEvent&&null!=t.pointerType)switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(null!=t.type&&t.type.match(/^mouse/))return!1;return!0}function m(t,e,i){t.style[e]=i}function y(t,e){return t.style[e]}function v(t){if(t.composedPath){const e=t.composedPath();return 0===e.length?null:e[0]}return t.target}function w(t,e){let i=e;for(;;){if(t===i)return!0;if(null===i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function b(t,e){return t.target&&w(e.root.dom,t.target)}function x(t,e){t.style.pointerEvents=e?"auto":"none"}function D(t){if(void 0!==t.key)return t.key;switch(t.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+t.keyCode}function k(t){let e=t;for(;;){if(null===e.parentNode)return null!=e.host?e:null;e=e.parentNode}}let T;function M(t,e){const i=t.cssRules.length;return t.insertRule(e+"{}",i),t.cssRules[i]}class E extends o.KK{constructor(t,e,i,s=""){super(),this._root=function(t,e=""){if(null===t){if(null==T){const t=document.createElement("style");t.type="text/css",""!=e&&t.setAttribute("nonce",e),document.head.appendChild(t),T=t.sheet}return T}{const i=document.createElement("style");return i.type="text/css",""!=e&&i.setAttribute("nonce",e),t.appendChild(i),i.sheet}}(t,s);try{this._rule=M(this._root,e)}catch(t){this._rule=M(this._root,":not(*)")}r.each(i,((t,e)=>{this.setStyle(t,e)}))}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){const t=n.indexOf(this._root.cssRules,this._rule);if(-1===t)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,e){const i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")}setStyle(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")}}class O extends o.KK{constructor(t,e,i=""){super(),this._element=function(t,e,i=""){const s=document.createElement("style");return s.type="text/css",""!=i&&s.setAttribute("nonce",i),s.textContent=e,null===t?document.head.appendChild(s):t.appendChild(s),s}(t,e,i)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}}function P(t,e){if(t)if(t.classList){const i=e.split(" ");n.each(i,(e=>{t.classList.add(e)}))}else{let i=t.getAttribute("class");i?t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" ")+" "+e):t.setAttribute("class",e)}}function S(t,e){if(t)if(t.classList)t.classList.remove(e);else{let i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" "))}}function N(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function C(){return N()?1:void 0}function L(t,e){return s.isNumber(t)?t:null!=t&&s.isNumber(t.value)&&s.isNumber(e)?e*t.value:0}function A(t){let e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function R(t,e=0,i="0"){return"string"!=typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t}function U(t){return t.replace(/^[\s]*/,"")}function B(t){return t.replace(/[\s]*$/,"")}function F(t){return U(B(t))}function I(t,e,i=!1,s="..."){if(t.length>e){let n=e-1;for(;n>=0&&t.charAt(n).match(/\w/);)n--;return n>=0&&0==i?t.substring(0,n+1)+"...":t.substring(0,e)+s}return t}function H(t){if(void 0===t)return"string";let e=(t=(t=(t=t.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return e?e[1]:"number"===t?"number":"date"===t?"date":"duration"===t?"duration":t.match(/[#0]/)?"number":t.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function z(t){return t.replace(/\/(date|number|duration)$/i,"")}function G(t){return t?t.replace(/<[^>]*>/g,""):t}function V(t){return t?G((""+t).replace(/[\n\r]+/g,". ")):t}function W(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Y(t){let e="";for(let i=0;i{if(t.match(/^\s+$/))(t=" ")&&(t=" "),n.push(t);else if(e.test(t)){let e=t.split(i).filter((t=>""!==t));n=n.concat(e)}else n=n.concat([...t])})),n}function X(t,e=!1){const i=new Date(t.getFullYear(),0,0),s=t.getTime()-i.getTime()+60*(i.getTimezoneOffset()-t.getTimezoneOffset())*1e3;return Math.floor(s/864e5)}function $(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-s);const n=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-n.getTime())/864e5+1)/7)}function Z(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;return i.setUTCDate(i.getUTCDate()+4-s),new Date(Date.UTC(i.getUTCFullYear(),0,1)).getFullYear()}function K(t,e=!1){const i=$(new Date(t.getFullYear(),t.getMonth(),1),e);let s=$(t,e);return 1==s&&(s=53),s-i+1}function q(t,e,i=1,s=!1){let n=new Date(e,0,4,0,0,0,0);return s&&n.setUTCFullYear(e),7*t+i-((n.getDay()||7)+3)}function Q(t,e){return t>12?t-=12:0===t&&(t=12),null!=e?t+(e-1):t}function J(t,e=!1,i=!1,s=!1,n){if(s)return e?"Coordinated Universal Time":"UTC";if(n){const i=t.toLocaleString("en-US",{timeZone:n});return F(t.toLocaleString("en-US",{timeZone:n,timeZoneName:e?"long":"short"}).substr(i.length))}let r=t.toLocaleString("UTC"),o=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(o=o.replace(/ (standard|daylight|summer|winter) /i," ")),F(o)}function tt(t,e){const i=e||new Date(Date.UTC(2012,0,1,0,0,0,0)),s=new Date(i.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(i.toLocaleString("en-US",{timeZone:t})).getTime()-s.getTime())/6e4*-1}function et(t){return t.charAt(0).toUpperCase()+t.slice(1)}function it(t){let e,i,s,n=t.h,r=t.s,o=t.l;if(0==r)e=i=s=o;else{let t=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},a=o<.5?o*(1+r):o+r-o*r,h=2*o-a;e=t(h,a,n+1/3),i=t(h,a,n),s=t(h,a,n-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*s)}}function st(t){let e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),r=Math.min(e,i,s),o=0,a=0,h=(n+r)/2;if(n===r)o=a=0;else{let t=n-r;switch(a=h>.5?t/(2-n-r):t/(n+r),n){case e:o=(i-s)/t+(i0?255-t:t;return Math.round(i*e)}function ht(t,e){if(t){let i=at(Math.min(Math.max(t.r,t.g,t.b),230),e);return{r:Math.max(0,Math.min(255,Math.round(t.r+i))),g:Math.max(0,Math.min(255,Math.round(t.g+i))),b:Math.max(0,Math.min(255,Math.round(t.b+i))),a:t.a}}return t}function lt(t,e){return Math.round(255*e)}function ct(t){return(299*t.r+587*t.g+114*t.b)/1e3>=128}function ut(t,e){if(void 0===t||1==e)return t;let i=st(t);return i.s=e,it(i)}function dt(t,e={r:255,g:255,b:255},i={r:255,g:255,b:255}){let s=e,n=i;return ct(i)&&(s=i,n=e),ct(t)?n:s}function pt(t,e){return t||(t=[]),[...t,...e].filter(((t,e,i)=>i.indexOf(t)===e))}function gt(t,e){return!!e&&t.left==e.left&&t.right==e.right&&t.top==e.top&&t.bottom==e.bottom}},3360:function(t,e,i){"use strict";i.d(e,{z:function(){return D},m:function(){return k}});var s=i(7582),n=i(6331),r=i(4596),o=i(8777),a=i(1112),h=i(6245),l=i(5769),c=i(9582),u=i(5040),d=i(5071),p=i(256),g={AccelerationBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccelerationBands)),AccumulationDistribution:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulationDistribution)),AccumulativeSwingIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulativeSwingIndex)),Annotator:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Annotator)),ArcDiagram:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagram)),ArcDiagramLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramLink)),ArcDiagramNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramNodes)),Aroon:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Aroon)),AverageSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageSeries)),AverageTrueRange:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageTrueRange)),AwesomeOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AwesomeOscillator)),Axis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Axis)),AxisBullet:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisBullet)),AxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabel)),AxisLabelRadial:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabelRadial)),AxisRenderer:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRenderer)),AxisRendererCircular:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererCircular)),AxisRendererCurveX:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveX)),AxisRendererCurveY:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveY)),AxisRendererRadial:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererRadial)),AxisRendererX:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererX)),AxisRendererY:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererY)),AxisTick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisTick)),BaseColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.BaseColumnSeries)),BollingerBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BollingerBands)),BreadcrumbBar:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.BreadcrumbBar)),BullBearPower:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BullBearPower)),Bullet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Bullet)),Button:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Button)),CalloutSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CalloutSeries)),Candlestick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Candlestick)),CandlestickSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CandlestickSeries)),CategoryAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryAxis)),CategoryDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryDateAxis)),ChaikinMoneyFlow:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinMoneyFlow)),ChaikinOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinOscillator)),Chart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Chart)),ChartIndicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChartIndicator)),Chord:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Chord)),ChordDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordDirected)),ChordLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLink)),ChordLinkDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLinkDirected)),ChordNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNodes)),ChordNonRibbon:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNonRibbon)),Circle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Circle)),CirclePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.CirclePattern)),ClockHand:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.ClockHand)),ClusteredPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ClusteredPointSeries)),ColorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ColorControl)),ColorPicker:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPicker)),ColorPickerButton:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPickerButton)),ColorSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ColorSet)),ColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ColumnSeries)),CommodityChannelIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CommodityChannelIndex)),ComparisonControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ComparisonControl)),Component:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Component)),ConfirmButton:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ConfirmButton)),Container:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Container)),CurveChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveChart)),CurveColumnSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveColumnSeries)),CurveCursor:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveCursor)),CurveLineSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveLineSeries)),DataSaveControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DataSaveControl)),DateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DateAxis)),DateRangeSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DateRangeSelector)),DisparityIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DisparityIndex)),DoodleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DoodleSeries)),DrawingControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingControl)),DrawingSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingSeries)),DrawingToolControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingToolControl)),Dropdown:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Dropdown)),DropdownColors:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownColors)),DropdownControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownControl)),DropdownList:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownList)),DropdownListControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownListControl)),DurationAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DurationAxis)),EditableAxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.EditableAxisLabel)),EditableLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.EditableLabel)),Ellipse:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Ellipse)),EllipseSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.EllipseSeries)),Entity:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Entity)),Exporting:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Exporting)),ExportingMenu:()=>Promise.resolve().then((()=>i(396))).then((t=>t.ExportingMenu)),FibonacciSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciSeries)),FibonacciTimezoneSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciTimezoneSeries)),Flow:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Flow)),FlowLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowLink)),FlowNode:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNode)),FlowNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNodes)),ForceDirected:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.ForceDirected)),FunnelSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSeries)),FunnelSlice:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSlice)),Gantt:()=>Promise.resolve().then((()=>i(133))).then((t=>t.Gantt)),GanttCategoryAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxis)),GanttCategoryAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxisRenderer)),GanttDateAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxis)),GanttDateAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxisRenderer)),GanttSeries:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttSeries)),GaplessDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.GaplessDateAxis)),Gradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Gradient)),GrainPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GrainPattern)),Graphics:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Graphics)),GraticuleSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.GraticuleSeries)),Grid:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Grid)),GridLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GridLayout)),HeatLegend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HeatLegend)),HeikinAshi:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HeikinAshi)),Hierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Hierarchy)),HierarchyLink:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyLink)),HierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyNode)),HorizontalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HorizontalLayout)),HorizontalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalLineSeries)),HorizontalRaySeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalRaySeries)),IconControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconControl)),IconSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconSeries)),Indicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Indicator)),IndicatorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IndicatorControl)),InterfaceColors:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.InterfaceColors)),IntervalControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IntervalControl)),Label:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Label)),LabelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LabelSeries)),Layout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Layout)),Legend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Legend)),Line:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Line)),LineArrowSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LineArrowSeries)),LinePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinePattern)),LineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.LineSeries)),LinearGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinearGradient)),Link:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Link)),LinkedHierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchy)),LinkedHierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchyNode)),MACD:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACD)),MACross:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACross)),MapChart:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapChart)),MapLine:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLine)),MapLineSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLineSeries)),MapPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPointSeries)),MapPolygon:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygon)),MapPolygonSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygonSeries)),MapSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapSeries)),Measure:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Measure)),MedianPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MedianPrice)),Modal:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Modal)),Momentum:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Momentum)),MovingAverage:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverage)),MovingAverageDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageDeviation)),MovingAverageEnvelope:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageEnvelope)),NumericStepper:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.NumericStepper)),OHLC:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLC)),OHLCSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLCSeries)),OnBalanceVolume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OnBalanceVolume)),OrthogonalLine:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.OrthogonalLine)),OverboughtOversold:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OverboughtOversold)),PVT:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PVT)),Pack:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Pack)),PanelControls:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PanelControls)),ParallelChannelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ParallelChannelSeries)),Partition:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Partition)),PathPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PathPattern)),Pattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Pattern)),PatternSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PatternSet)),PercentChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentChart)),PercentSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentSeries)),PeriodSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PeriodSelector)),PictorialStackedSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PictorialStackedSeries)),Picture:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Picture)),PicturePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PicturePattern)),PieChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieChart)),PieSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieSeries)),PointedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PointedRectangle)),Polygon:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Polygon)),PolylineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PolylineSeries)),ProgressPie:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ProgressPie)),PyramidSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PyramidSeries)),QuadrantLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.QuadrantLineSeries)),RadarChart:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarChart)),RadarColumnSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarColumnSeries)),RadarCursor:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarCursor)),RadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarLineSeries)),RadialGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialGradient)),RadialLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialLabel)),RadialText:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialText)),Rectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Rectangle)),RectanglePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RectanglePattern)),RectangleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RectangleSeries)),RegressionSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RegressionSeries)),RelativeStrengthIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RelativeStrengthIndex)),ResetControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ResetControl)),RoundedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RoundedRectangle)),Sankey:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Sankey)),SankeyLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyLink)),SankeyNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyNodes)),Scrollbar:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Scrollbar)),SerialChart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SerialChart)),Serializer:()=>Promise.resolve().then((()=>i(5362))).then((t=>t.Serializer)),Series:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Series)),SeriesTypeControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SeriesTypeControl)),SerpentineChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SerpentineChart)),SettingsControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsControl)),SettingsModal:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsModal)),SimpleLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SimpleLineSeries)),Slice:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slice)),SliceGrouper:()=>Promise.resolve().then((()=>i(1790))).then((t=>t.SliceGrouper)),SlicedChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.SlicedChart)),Slider:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slider)),SmoothedRadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.SmoothedRadarLineSeries)),SmoothedXLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXLineSeries)),SmoothedXYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXYLineSeries)),SmoothedYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedYLineSeries)),SpiralChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SpiralChart)),Sprite:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Sprite)),SpriteResizer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SpriteResizer)),StandardDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StandardDeviation)),Star:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Star)),StepLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.StepLineSeries)),StochasticMomentumIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticMomentumIndex)),StochasticOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticOscillator)),StockChart:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockChart)),StockControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockControl)),StockLegend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockLegend)),StockPanel:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockPanel)),StockToolbar:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockToolbar)),Sunburst:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Sunburst)),SuperTrend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SuperTrend)),Text:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Text)),Tick:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tick)),Tooltip:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tooltip)),Tree:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Tree)),Treemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Treemap)),TrendLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TrendLineSeries)),Triangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Triangle)),Trix:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Trix)),TypicalPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TypicalPrice)),VWAP:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VWAP)),ValueAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ValueAxis)),Venn:()=>Promise.resolve().then((()=>i(8034))).then((t=>t.Venn)),VerticalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.VerticalLayout)),VerticalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VerticalLineSeries)),Volume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Volume)),VolumeProfile:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VolumeProfile)),VoronoiTreemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.VoronoiTreemap)),WilliamsR:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.WilliamsR)),WordCloud:()=>Promise.resolve().then((()=>i(6769))).then((t=>t.WordCloud)),XYChart:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChart)),XYChartScrollbar:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChartScrollbar)),XYCursor:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYCursor)),XYSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYSeries)),ZigZag:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ZigZag)),ZoomControl:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ZoomControl)),ZoomTools:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomTools)),ZoomableContainer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomableContainer))};function f(t){return u.isObject(t)}function _(t){return t instanceof n.JH||t instanceof a.Il||t instanceof h.gG||t instanceof l.YS}function m(t,e){let i=t.length;for(;i--;){const s=t[i];if(e in s)return s[e]}throw new Error("Could not find ref "+e)}function y(t,e){if("#"===t[0]||"@"===t[0]){if(t[1]===t[0])return{isValue:!0,value:t.slice(1)};{const i=t.split(/\./g);let s=m(e,i[0]);for(let t=1;t{e(t)}))}function w(t,e){v(t,e),e.adapters&&d.each(e.adapters,(e=>{t.adapters.add(e.key,e.callback)})),e.states&&d.each(e.states,(e=>{t.states.create(e.key,e.settings)})),t instanceof o.W&&e.children&&e.children.forEach((e=>{null==e.index||e.index>=t.children.length?t.children.push(e.value):t.children.insertIndex(e.index,e.value)}))}function b(t,e){if(!e.construct)return e.value;const i=e.construct.new(t,e.settings||{});return w(i,e),i}class x{constructor(){this._caching={},this._cache={},this._delayed=[]}afterParse(){this._delayed.forEach((t=>{t()}))}getClass(t){return this._cache[t]}storeClass(t){return(0,s.mG)(this,void 0,void 0,(function*(){if("Template"===t)return;const e=g[t];if(null==e)throw new Error("Unknown object type `"+t+"`");this._cache[t]=yield e()}))}cacheClass(t){let e=this._caching[t];return null==e&&(e=this._caching[t]=this.storeClass(t)),e}parseAsyncArray(t){return(0,s.mG)(this,void 0,void 0,(function*(){yield Promise.all(d.map(t,(t=>this.parseAsync(t))))}))}parseAsyncObjectKey(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){"type"===t?u.isString(e)?yield this.cacheClass(e):yield this.parseAsync(e):"geoJSON"===t||"geometry"===t||(yield this.parseAsync(e))}))}parseAsyncObject(t){return(0,s.mG)(this,void 0,void 0,(function*(){switch(t.type){case"Color":case"Percent":break;default:yield Promise.all(d.map(p.keys(t),(e=>this.parseAsyncObjectKey(e,t[e]))))}}))}parseAsync(t){return(0,s.mG)(this,void 0,void 0,(function*(){u.isArray(t)?yield this.parseAsyncArray(t):f(t)&&(_(t)||!0!==t.__parse&&!1===t.__parse||(yield this.parseAsyncObject(t)))}))}parseObject(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parse(t,e[n],i)})),s}parseArray(t,e,i){return d.map(e,(e=>this.parse(t,e,i)))}parseChildren(t,e,i){return d.map(e,(e=>this.parseChild(t,e,i)))}parseStops(t,e,i){return d.map(e,(e=>this.parseObject(t,e,i)))}parseSetting(t,e,i,s){if("layout"===e)switch(i){case"horizontal":return t.horizontalLayout;case"vertical":return t.verticalLayout;case"grid":return t.gridLayout}return"clusteredBullet"===e?(e,n)=>{const r=s.concat([{"@series":n}]);return this.parse(t,i,r)}:"projection"===e||"geoJSON"===e?i:"stops"===e?this.parseStops(t,i,s):this.parse(t,i,s)}parseSettings(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parseSetting(t,n,e[n],i)})),s}parseState(t,e,i){return{key:e.key,settings:this.parseSettings(t,e.settings,i)}}parseAdapter(t,e,i){return{key:e.key,callback:this.parse(t,e.callback,i)}}parseProperties(t,e,i){return d.map(p.keys(e),(s=>{const r=e[s];return e=>{const o=()=>{const o=this.parseValue(t,r,i),a=e[s];a?o.isValue?u.isArray(o.value)?a instanceof c.k?a.setAll(o.value):d.each(o.value,(t=>{a.push(t)})):e[s]=o.value:o.construct?e[s]=b(t,o):a instanceof n.JH||a instanceof l.YS?function(t,e){e.settings&&t.setAll(e.settings),w(t,e)}(a,o):v(a,o):o.isValue?e[s]=o.value:e[s]=b(t,o)};if("data"===s)this._delayed.push(o);else if("bullets"===s){const n=e[s];u.assert(null!=n),u.assert(u.isArray(r)),d.each(r,(e=>{n.push(((s,n)=>{const r=i.concat([{"@series":n}]);return this.parse(t,e,r)}))}))}else"bullet"===s?e.set("bullet",((e,s)=>{const n=i.concat([{"@axis":s}]);return this.parse(t,r,n)})):o()}}))}parseAxisRange(t,e,i){return{isValue:!1,type:void 0,construct:void 0,settings:this.parseSettings(t,e.settings,i),adapters:void 0,states:void 0,children:void 0,properties:void 0,index:void 0,value:e}}parseRefsObject(t,e,i){const s={};return p.each(e,((e,r)=>{if("axisRange"==r.__parseLogic||"seriesAxisRange"==r.__parseLogic){const e=this.parseAxisRange(t,r,i),s=m(i,r.axis),o=s.makeDataItem({});let a;const h=r.series?m(i,r.series):void 0;h?a=h.createAxisRange(o):s.createAxisRange(o),function(t,e){e.settings&&p.each(e.settings,((e,i)=>{if(i instanceof n.JH){const s=t.get(e);s instanceof n.JH?s.setAll(i._settings):t.set(e,i)}else t.set(e,i)})),w(t,e)}(o,e),a&&["fills","strokes","graphics"].forEach((e=>{if(void 0!==a[e]&&void 0!==r[e]){r[e].__parse=!0;const s=this.parse(t,r[e],i);a[e].template.setAll(s)}}))}else s["#"+e]=this.parse(t,r,i)})),s}parseRefs(t,e,i){if(u.isArray(e)){const s=e.length;for(let n=0;nthis.parseState(t,e,i))):void 0,h=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0,l=null==e.index?void 0:e.index;return{isValue:!1,type:e.type,construct:s,settings:n,adapters:h,states:a,children:o,properties:r,index:l,value:e}}parseTemplate(t,e,i){e.refs&&(i=this.parseRefs(t,e.refs,i));const s=e.settings?this.parseSettings(t,e.settings,i):{},n=l.YS.new(s),r=e.states?d.map(e.states,(e=>this.parseState(t,e,i))):void 0,o=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0;return o&&d.each(o,(t=>{n.adapters.add(t.key,t.callback)})),r&&d.each(r,(t=>{n.states.create(t.key,t.settings)})),{isValue:!0,value:n}}parseValue(t,e,i){return e instanceof n.JH?{isValue:!0,value:e}:u.isArray(e)?{isValue:!0,value:this.parseArray(t,e,i)}:f(e)?_(e)?{isValue:!0,value:e}:"Color"===e.type?{isValue:!0,value:a.Il.fromAny(e.value)}:"Percent"===e.type?{isValue:!0,value:new h.gG(e.value)}:"Template"===e.type?this.parseTemplate(t,e,i):!0===e.__parse?{isValue:!0,value:this.parseObject(t,e,i)}:!1===e.__parse?{isValue:!0,value:e}:this.parseEntity(t,e,i):u.isString(e)?y(e,i):{isValue:!0,value:e}}parse(t,e,i){const s=this.parseValue(t,e,i);return s.isValue?s.value:b(t,s)}}class D{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t}static new(t){return new this(t,!0)}parse(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){const i=new x;yield i.parseAsync(t);const s=i.parse(this._root,t,[]);if(e.parent){if(!(s instanceof r.j))throw new Error("When using the parent setting, the entity must be a Sprite");e.parent.children.push(s)}else s instanceof n.JH&&s._applyThemes(!0);return i.afterParse(),s}))}parseString(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.parse(JSON.parse(t),e)}))}}function k(t,e){g[t]||(g[t]=()=>new Promise((t=>{t(e)})))}},6890:function(t,e,i){"use strict";i.d(e,{e:function(){return p}});var s=i(6331),n=i(9361),r=i(1112),o=i(1437),a=i(6245),h=i(5769),l=i(9582),c=i(5040),u=i(5071),d=i(256);class p extends s.JH{constructor(){super(...arguments),this._refs={}}serialize(t,e=0,i=!1,p=!1){if(e>this.get("maxDepth",2))return;if(!1===t||!0===t)return t;if(c.isArray(t)){const s=[];return u.each(t,(t=>{s.push(this.serialize(t,e,i,p))})),s}if(t instanceof l.k){const s=[];return u.each(t.values,(t=>{s.push(this.serialize(t,e,i,p))})),s}const g={},f=t instanceof s.JH||t instanceof h.YS||t instanceof r.Il||t instanceof a.gG,_=this.get("fullSettings",[]);if(t instanceof s.JH){g.type=t.className;let s=this._filterSettings(d.keys(t._settings));s=s.filter((e=>t.isUserSetting(e))),s.length&&(g.settings={},u.each(s,(s=>{const n=t.get(s);void 0!==n&&(g.settings[s]=this.serialize(n,e+1,i||-1!==_.indexOf(s)),t instanceof o.p&&"stops"===s&&(g.settings[s]=this.serialize(n,0,!0)))}))),this._processAdapters(t,g),this._processStates(t,g)}else if(t instanceof h.YS){g.type="Template";let i=this._filterSettings(d.keys(t._settings));return i.length&&(g.settings={},u.each(i,(i=>{void 0!==t._settings[i]&&(g.settings[i]=this.serialize(t.get(i),e+1,-1!==_.indexOf(i)))}))),this._processAdapters(t,g),this._processStates(t,g),g}if(t instanceof n.w&&t.data.length&&-1===(this.get("excludeProperties")||[]).indexOf("data")&&(g.properties={data:this.serialize(t.data.values,e,!0)}),t instanceof r.Il)return{type:"Color",value:t.toCSSHex()};if(t instanceof a.gG)return{type:"Percent",value:t.percent};if(c.isString(t))return this._escapeRefs(t);if(c.isNumber(t))return t;if(c.isObject(t))if(i&&!f){const s=this.get("excludeProperties",[]);d.each(t,((t,n)=>{-1===s.indexOf(t)&&void 0!==n&&(g[t]=this.serialize(n,e+1,i,p))})),p&&d.each(g,((t,e)=>{c.isObject(e)&&(g.__parse=!0)}))}else if(f){const s=this.get("includeProperties",[]);u.each(s,(s=>{const n=t[s];void 0!==n&&(void 0===g.properties&&(g.properties={}),g.properties[s]=this.serialize(n,e+1,i,p))}))}return 0==e&&d.keys(this._refs).length&&(g.refs=this._refs),g}_processAdapters(t,e){if(this.get("includeAdapters",!1)){const i="string"==this.get("functionsAs","string"),s=t.adapters._callbacks;Object.keys(s).length>0&&(e.adapters=[],d.each(s,((t,s)=>{s.forEach((s=>{e.adapters.push({key:t,callback:i?s.toString():s})}))})))}}_processStates(t,e){if(this.get("includeStates",!1)){const i=t.states._states;Object.keys(i).length>0&&(e.states=[],d.each(i,((t,i)=>{Object.keys(i._settings).length>0&&e.states.push({key:t,settings:this.serialize(i._settings,0,!0)})})))}}_filterSettings(t){const e=this.get("includeSettings",[]),i=this.get("excludeSettings",[]);return e.length?t=e:i.length&&(t=t.filter((t=>-1===i.indexOf(t)))),t}_escapeRefs(t){return t.replace(/^#/,"##").replace(/^@/,"@@")}}p.className="Serializer",p.classNames=s.JH.classNames.concat([p.className])},3783:function(t,e,i){"use strict";i.d(e,{X:function(){return c},v:function(){return l}});var s=i(3409),n=i(6245),r=i(1112),o=i(6881),a=i(962),h=i(9395);function l(t,e,i,s){t.set(e,i.get(s)),i.on(s,(i=>{t.set(e,i)}))}class c extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.language,e=this._root.interfaceColors,i=this._root.horizontalLayout,s=this._root.verticalLayout,c=this.rule.bind(this);c("InterfaceColors").setAll({stroke:r.Il.fromHex(15066597),fill:r.Il.fromHex(15987699),primaryButton:r.Il.fromHex(6788316),primaryButtonHover:r.Il.fromHex(6779356),primaryButtonDown:r.Il.fromHex(6872182),primaryButtonActive:r.Il.fromHex(6872182),primaryButtonDisabled:r.Il.fromHex(14342874),primaryButtonTextDisabled:r.Il.fromHex(16777215),primaryButtonText:r.Il.fromHex(16777215),primaryButtonStroke:r.Il.fromHex(16777215),secondaryButton:r.Il.fromHex(14277081),secondaryButtonHover:r.Il.fromHex(10724259),secondaryButtonDown:r.Il.fromHex(9276813),secondaryButtonActive:r.Il.fromHex(15132390),secondaryButtonText:r.Il.fromHex(0),secondaryButtonStroke:r.Il.fromHex(16777215),grid:r.Il.fromHex(0),background:r.Il.fromHex(16777215),alternativeBackground:r.Il.fromHex(0),text:r.Il.fromHex(0),alternativeText:r.Il.fromHex(16777215),disabled:r.Il.fromHex(11382189),positive:r.Il.fromHex(5288704),negative:r.Il.fromHex(11730944)});{const t=c("ColorSet");t.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[r.Il.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),t.setPrivate("currentStep",0),t.setPrivate("currentPass",0)}c("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:h.out(h.cubic)}),c("Component").setAll({interpolationDuration:0,interpolationEasing:h.out(h.cubic)}),c("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:n.CI,tooltipY:n.CI,tooltipPosition:"fixed",isMeasured:!0}),c("Sprite").states.create("default",{visible:!0,opacity:1}),c("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),c("Graphics").setAll({strokeWidth:1}),c("Chart").setAll({width:n.AQ,height:n.AQ,interactiveChildren:!1}),c("ZoomableContainer").setAll({width:n.AQ,height:n.AQ,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:h.out(h.cubic),animationDuration:600,maxPanOut:.4}),c("Sprite",["horizontal","center"]).setAll({centerX:n.CI,x:n.CI}),c("Sprite",["vertical","center"]).setAll({centerY:n.CI,y:n.CI}),c("Container",["horizontal","layout"]).setAll({layout:i}),c("Container",["vertical","layout"]).setAll({layout:s}),c("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),c("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),c("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),c("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),c("GrainPattern").setAll({width:200,height:200,colors:[r.Il.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const t=c("PatternSet");t.setAll({step:1}),l(t,"color",e,"stroke")}c("LinearGradient").setAll({rotation:90}),c("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:o.M.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),c("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:t.translate("Press ENTER to toggle"),role:"checkbox"});{const t=c("Rectangle",["legend","item","background"]);t.setAll({fillOpacity:0}),l(t,"fill",e,"background")}c("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:n.CI,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),c("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:n.AQ,height:n.AQ,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const t=c("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});l(t,"fill",e,"disabled"),l(t,"stroke",e,"disabled")}c("Label",["legend","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0}),l(c("Label",["legend","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("Label",["legend","value","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:n.AQ,populateText:!0}),l(c("Label",["legend","value","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("HeatLegend").setAll({stepCount:1}),c("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),c("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:n.AQ,width:15}),c("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:n.AQ,height:15}),c("HeatLegend",["vertical"]).setAll({height:n.AQ}),c("HeatLegend",["horizontal"]).setAll({width:n.AQ}),c("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),c("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const t=c("Label");t.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),l(t,"fill",e,"text")}c("RadialLabel").setAll({textType:"regular",centerY:n.CI,centerX:n.CI,inside:!1,radius:0,baseRadius:n.AQ,orientation:"auto",textAlign:"center"}),c("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),c("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:r.Il.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:r.Il.fromHex(0)}),c("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),c("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),c("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),c("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const t=c("Tick");t.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),l(t,"stroke",e,"grid")}c("Bullet").setAll({locationX:.5,locationY:.5}),c("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:n.CI,centerY:n.CI,animationEasing:h.out(h.cubic),exportable:!1}),c("Tooltip",["system"]).setAll({pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});{const t=c("PointedRectangle",["tooltip","system","background"]);t.setAll({strokeOpacity:.3}),l(t,"fill",e,"background"),l(t,"stroke",e,"grid")}c("Label",["tooltip","system"]).setAll({fontSize:12,fill:e.get("background")}),c("Polygon").setAll({animationEasing:h.out(h.cubic)}),c("Link").setAll({cornerRadius:8,setStateOnChildren:!0});{const t=c("OrthogonalLine",["link","line"]);t.setAll({isMeasured:!1,crisp:!0}),l(t.states.create("active",{strokeWidth:2}),"stroke",e,"negative")}c("OrthogonalLine",["link","hit"]).setAll({strokeWidth:10,opacity:0,strokeOpacity:0});{const t=c("OrthogonalLine");t.setAll({strokeWidth:1,strokeOpacity:1,cornerRadius:10}),l(t,"stroke",e,"grid")}{const t=c("Triangle",["link"]);t.setAll({width:14,height:10,centerY:0}),l(t,"fill",e,"grid"),l(t,"stroke",e,"grid"),t.states.create("default",{stateAnimationDuration:0});const i=t.states.create("active",{stateAnimationDuration:0,stroke:(0,r.$_)(16777215),strokeWidth:2});i.set("draw",(t=>{t.arc(0,0,11,0,2*Math.PI),t.moveTo(-4,-4),t.lineTo(4,4),t.moveTo(4,-4),t.lineTo(-4,4)})),l(i,"fill",e,"negative")}c("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:r.Il.fromHex(16777215)});{const t=c("Label",["tooltip"]);t.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),l(t,"fill",e,"alternativeText")}c("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),c("Button").states.create("hover",{}),c("Button").states.create("down",{stateAnimationDuration:0}),c("Button").states.create("active",{}),c("Button").states.create("disabled",{forceInactive:!0});{const t=c("RoundedRectangle",["button","background"]);l(t,"fill",e,"primaryButton"),l(t,"stroke",e,"primaryButtonStroke")}l(c("RoundedRectangle",["button","background"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown"),l(c("RoundedRectangle",["button","background"]).states.create("active",{}),"fill",e,"primaryButtonActive"),l(c("RoundedRectangle",["button","background"]).states.create("disabled",{}),"fill",e,"primaryButtonDisabled"),l(c("Graphics",["button","icon"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled"),l(c("Label",["button"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled");{const t=c("Graphics",["button","icon"]);t.setAll({forceInactive:!0}),l(t,"stroke",e,"primaryButtonText")}l(c("Label",["button"]),"fill",e,"primaryButtonText"),c("ConfirmButton").setAll({toggleKey:"active",setStateOnChildren:!0,label:a._.new(this._root,{text:t.translate("Confirm"),forceHidden:!0})}),l(c("RoundedRectangle",["button","background","confirm"]).states.create("active",{}),"fill",e,"negative"),c("Label",["button","confirm"]).setAll({paddingTop:0,paddingBottom:0,paddingRight:3,paddingLeft:5}),c("Label",["button","confirm"]).states.create("default",{stateAnimationDuration:0}),c("Label",["button","confirm"]).states.create("active",{forceHidden:!1,stateAnimationDuration:0});{const t=c("Graphics",["icon","confirm","button"]);t.setAll({stateAnimationDuration:0}),t.states.create("default",{stateAnimationDuration:0}),l(t,"stroke",e,"primaryButtonText")}l(c("Graphics",["icon","confirm","button"]).states.create("active",{svgPath:"M -5 1 L 0 6 L 8 -5",strokeWidth:2}),"stroke",e,"primaryButtonText"),l(c("Graphics",["icon","confirm","button","secondary"]).states.create("active",{}),"stroke",e,"primaryButtonText"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1}),"fill",e,"negative"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1}),"fill",e,"negative"),c("Button",["button","confirm"]).states.create("hoverActive",{}),c("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:n.AQ,role:"button",ariaLabel:t.translate("Zoom Out"),layer:30});{const t=c("RoundedRectangle",["background","button","zoom"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"primaryButton")}l(c("RoundedRectangle",["background","button","zoom"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown");{const t=c("Graphics",["icon","button","zoom"]);t.setAll({crisp:!0,strokeOpacity:.7,draw:t=>{t.moveTo(0,0),t.lineTo(12,0)}}),l(t,"stroke",e,"primaryButtonText")}c("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:n.CI,centerY:n.CI,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:t.translate("Use up and down arrows to move selection")});{const t=c("RoundedRectangle",["background","resize","button"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"secondaryButton"),l(t,"stroke",e,"secondaryButtonStroke")}l(c("RoundedRectangle",["background","resize","button"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown");{const t=c("Graphics",["resize","button","icon"]);t.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),l(t,"stroke",e,"secondaryButtonText")}c("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),c("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),c("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:t.translate("Play"),toggleKey:"active"});{const t=c("RoundedRectangle",["play","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Graphics",["play","icon"]);t.setAll({stateAnimationDuration:0,dx:1,draw:t=>{t.moveTo(0,-5),t.lineTo(8,0),t.lineTo(0,5),t.lineTo(0,-5)}}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),c("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:t=>{t.moveTo(-4,-5),t.lineTo(-1,-5),t.lineTo(-1,5),t.lineTo(-4,5),t.lineTo(-4,-5),t.moveTo(4,-5),t.lineTo(1,-5),t.lineTo(1,5),t.lineTo(4,5),t.lineTo(4,-5)}}),c("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:t.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const t=c("RoundedRectangle",["switch","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["switch","icon"]);t.setAll({radius:8,centerY:0,centerX:0,dx:0}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["switch","icon"]).states.create("active",{dx:16}),c("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:h.out(h.cubic)}),c("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:n.AQ}),c("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:n.AQ}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const t=c("RoundedRectangle",["scrollbar","main","background"]);t.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),l(t,"fill",e,"fill")}{const t=c("RoundedRectangle",["scrollbar","thumb"]);t.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),l(t,"fill",e,"secondaryButton")}l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown"),c("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:n.CI,width:n.AQ,centerX:n.CI,ariaLabel:t.translate("Use up and down arrows to move selection")}),c("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:n.CI,centerY:n.CI,height:n.AQ,ariaLabel:t.translate("Use left and right arrows to move selection")});{const t=c("PointedRectangle",["axis","tooltip","background"]);t.setAll({cornerRadius:0}),l(t,"fill",e,"alternativeBackground")}c("Label",["axis","tooltip"]).setAll({role:void 0}),c("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),c("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),c("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),c("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),c("Star").setAll({spikes:5,innerRadius:5,radius:10}),c("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),c("Tooltip",["indicator"]).setAll({forceHidden:!0}),c("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),c("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),c("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),c("Container",["resizer","grip"]).states.create("hover",{});{const t=c("RoundedRectangle",["resizer","grip"]);t.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),l(t,"fill",e,"background"),l(t,"stroke",e,"alternativeBackground")}{const t=c("RoundedRectangle",["resizer","grip","outline"]);t.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),t.states.create("hover",{fillOpacity:.3}),l(t,"fill",e,"alternativeBackground")}c("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),c("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const t=c("Rectangle",["resizer","rectangle"]);t.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),l(t,"stroke",e,"alternativeBackground")}c("Graphics",["button","plus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0),t.moveTo(0,-4),t.lineTo(0,4)}}),c("Graphics",["button","minus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0)}}),c("Graphics",["button","home","icon"]).setAll({x:n.CI,y:n.CI,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),c("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),c("ZoomTools").setAll({x:n.AQ,centerX:n.AQ,y:n.AQ,centerY:n.AQ,paddingRight:10,paddingBottom:10}),c("ProgressPie").setAll({radius:n.AQ,width:50,height:50,centerX:(0,n.aQ)(-50),centerY:(0,n.aQ)(-50),innerRadius:(0,n.aQ)(85),numberFormat:"#."});{const t=c("Label",["progresspie"]);t.setAll({centerX:n.CI,centerY:n.CI,fontSize:"0.75em"}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["progresspie"]);t.setAll({fillOpacity:.5}),l(t,"fill",e,"background")}{const t=c("Slice",["progresspie"]);t.setAll({startAngle:-90}),l(t,"fill",e,"primaryButton")}{const t=c("Slice",["progresspie","background"]);t.setAll({fillOpacity:.2,arc:360}),l(t,"fill",e,"primaryButton")}c("EditableLabel",["numericstepper"]).setAll({y:n.CI,centerY:n.CI,multiLine:!1,marginRight:2});{const t=c("Container",["numericstepper","buttons"]);t.setAll({layout:this._root.verticalLayout,centerY:n.CI,y:n.CI,marginRight:10,opacity:0}),t.states.create("active",{opacity:1}),t.states.create("default",{opacity:0})}{const t=c("Triangle",["numericstepper"]);t.setAll({width:17,height:11,marginTop:3,marginBottom:3,strokeWidth:5,strokeOpacity:0,cursorOverStyle:"pointer"}),l(t,"fill",e,"secondaryButton")}c("Triangle",["downbutton"]).setAll({rotation:180})}}},5322:function(t,e,i){"use strict";i.r(e),i.d(e,{ArrayDisposer:function(){return c.rk},BlendMode:function(){return ot.b},Bullet:function(){return u.g},Button:function(){return d.z},CSVParser:function(){return bt},CanvasLayer:function(){return Pt.mM},CanvasRenderer:function(){return Pt.uK},Chart:function(){return q.k},Circle:function(){return g.C},CirclePattern:function(){return ut},Color:function(){return O.Il},ColorSet:function(){return mt.U},Component:function(){return v.w},ConfirmButton:function(){return p.p},Container:function(){return w.W},CounterDisposer:function(){return c.DM},DataItem:function(){return v.z},DataProcessor:function(){return xt},DateFormatter:function(){return Dt.C},Disposer:function(){return c.ku},DurationFormatter:function(){return kt.$},EditableLabel:function(){return A.Y},Ellipse:function(){return _.P},Entity:function(){return l.JH},Gradient:function(){return at.p},GrainPattern:function(){return rt},Graphics:function(){return m.T},GridLayout:function(){return x.M},HeatLegend:function(){return C},HorizontalLayout:function(){return L.G},InterfaceColors:function(){return Tt.v},JSONParser:function(){return wt},JsonData:function(){return yt.Q},Label:function(){return D._},Layout:function(){return R.A},Legend:function(){return U.D},Line:function(){return B.x},LinePattern:function(){return dt.y},LinearGradient:function(){return S.o},Link:function(){return F.r},ListData:function(){return yt.k},ListTemplate:function(){return E.o},Modal:function(){return h.u},MultiDisposer:function(){return c.FV},MutableValueDisposer:function(){return c.cx},NumberFormatter:function(){return Mt.e},NumericStepper:function(){return St.l},OrthogonalLine:function(){return I.P},PathPattern:function(){return ft},Pattern:function(){return nt.c},PatternSet:function(){return _t},Percent:function(){return k.gG},Picture:function(){return H.t},PicturePattern:function(){return pt.v},PointedRectangle:function(){return z.i},Polygon:function(){return f.m},ProgressPie:function(){return Nt.w},RadialGradient:function(){return lt},RadialLabel:function(){return G.x},RadialText:function(){return V.f},Rectangle:function(){return W.A},RectanglePattern:function(){return gt},Root:function(){return n.f},RoundedRectangle:function(){return T.c},Scrollbar:function(){return j.L},SerialChart:function(){return Q.j},Series:function(){return K.F},Slice:function(){return $.p},Slider:function(){return X.i},Sprite:function(){return Z.j},SpriteResizer:function(){return Ot.b},Star:function(){return y},Template:function(){return M.YS},Text:function(){return J.x},TextFormatter:function(){return Et.V},Theme:function(){return r.Q},Tick:function(){return tt.d},Timezone:function(){return it.r},Tooltip:function(){return P.u},Triangle:function(){return Y.C},VerticalLayout:function(){return et.Z},ZoomTools:function(){return st.H},ZoomableContainer:function(){return b.Y},addLicense:function(){return o.cP},array:function(){return ht},color:function(){return O.$_},disposeAllRootElements:function(){return o.UZ},ease:function(){return Ct},getRootById:function(){return o.f_},math:function(){return ct},net:function(){return s},object:function(){return vt},p0:function(){return k.p0},p100:function(){return k.AQ},p50:function(){return k.CI},percent:function(){return k.aQ},ready:function(){return a.ready},registry:function(){return o.i_},time:function(){return Rt},type:function(){return N},utils:function(){return a}});var s={};i.r(s),i.d(s,{load:function(){return Lt},readBlob:function(){return At}});var n=i(2855),r=i(3409),o=i(3145),a=i(7652),h=i(8219),l=i(6331),c=i(7449),u=i(5108),d=i(8054),p=i(2936),g=i(8035),f=i(7770),_=i(2433),m=i(1479);class y extends m.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("spikes"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const t=this._display,e=this.get("radius",0),i=a.relativeToValue(this.get("innerRadius",0),e),s=this.get("spikes",0),n=Math.PI/s;let r=Math.PI/2*3;t.moveTo(0,-e);for(let o=0;oT.c._new(this._root,{themeTags:a.mergeTags(this.markers.template.get("themeTags",[]),[this.get("orientation"),"heatlegend","marker"])},[this.markers.template]))))}_afterNew(){this._settings.themeTags=a.mergeTags(this._settings.themeTags,["heatlegend",this._settings.orientation]),super._afterNew(),this.set("tooltip",P.u.new(this._root,{themeTags:["heatlegend"]}))}makeMarker(){const t=this.markers.make();return t.states.create("disabled",{}),t}showValue(t,e,i){const s=this.getTooltip();if(s&&N.isNumber(t)){const n=this.get("startValue",0);let r=(t-n)/(this.get("endValue",1)-n);(r==1/0||r==-1/0||isNaN(r))&&(r=.5);const o=this.get("startColor"),a=this.get("endColor");let h;e||(e=this.getNumberFormatter().format(t)),i||(i=O.Il.interpolate(r,o,a)),s.label.set("text",e),h="vertical"==this.get("orientation")?this.markerContainer.toGlobal({x:0,y:this.innerHeight()*(1-r)}):this.markerContainer.toGlobal({x:this.innerWidth()*r,y:0});let l=s.get("background");l&&l.set("fill",i),s.set("pointTo",h),s.show()}}_prepareChildren(){super._prepareChildren();const t=this.labelContainer,e=this.get("orientation"),i=this.startLabel,s=this.endLabel,n=this.getTooltip();if(this.isDirty("orientation")&&("vertical"==e?(this.markerContainer.setAll({layout:this._root.verticalLayout,height:k.AQ}),this.set("layout",this._root.horizontalLayout),i.setAll({y:k.AQ,x:void 0,centerY:k.AQ,centerX:k.AQ}),s.setAll({y:0,x:void 0,centerY:0,centerX:k.AQ}),t.setAll({height:k.AQ,width:void 0}),n&&n.set("pointerOrientation","horizontal")):(this.markerContainer.setAll({layout:this._root.horizontalLayout,width:k.AQ}),this.set("layout",this._root.verticalLayout),i.setAll({x:0,y:void 0,centerX:0,centerY:0}),s.setAll({x:k.AQ,y:void 0,centerX:k.AQ,centerY:0}),t.setAll({width:k.AQ,height:void 0}),n&&n.set("pointerOrientation","vertical"))),this.isDirty("stepCount")){const t=this.get("stepCount",1),i=this.get("startColor"),s=this.get("endColor"),n=this.get("startOpacity",1),r=this.get("endOpacity",1);if(this.markerContainer.children.clear(),t>1)for(let o=0;o0&&e/u!=Math.round(e/u)))for(let h=0;h0&&h/c!=Math.round(h/c)||d{let i=e.offset;N.isNumber(i)||(i=t/(g.length-1));let s=e.opacity;N.isNumber(s)||(s=1);let n=e.color;if(n){const t=e.lighten;t&&(n=O.Il.lighten(n,t));const r=e.brighten;r&&(n=O.Il.brighten(n,r)),p.addColorStop(i,"rgba("+n.r+","+n.g+","+n.b+","+s+")")}t++}))}return p}}lt.className="RadialGradient",lt.classNames=at.p.classNames.concat([lt.className]);var ct=i(751);class ut extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("radius",3),a=2*o+i,h=2*o+i,l=Math.round(n/a),c=Math.round(r/h);a=n/l,h=r/c,0!=s&&(this._display.x=a*ct.cos(s),this._display.y=h*ct.sin(s));const u=this.get("color"),d=this.get("colorOpacity");(u||d)&&this._display.beginFill(u,d);for(let n=0==s?0:2*-c;n<2*c;n++)for(let r=0==s?0:2*-l;r<2*l;r++)if(!t||1!=(1&n)&&1!=(1&r)||1==(1&n)&&1==(1&r)){let t=r*a,s=n*h;e&&(t+=a+i/2,s+=h+i/2),this._display.drawCircle(t-o,s-o,o)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i),(u||d)&&this._display.endFill()}}ut.className="CirclePattern",ut.classNames=nt.c.classNames.concat([ut.className]);var dt=i(3035),pt=i(4429);class gt extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("maxWidth",5),a=this.get("maxHeight",5);const h=this._display;let l=o+i,c=a+i,u=Math.round(n/l),d=Math.round(r/c);l=n/u,c=r/d,0!=s&&(h.x=l/2*ct.cos(s),h.y=-c/2*ct.sin(s));for(let i=0==s?0:2*-d;i<2*d;i++)for(let n=0==s?0:2*-u;n<2*u;n++)if(!t||1!=(1&i)&&1!=(1&n)||1==(1&i)&&1==(1&n)){let t=n*l,s=i*c;e&&(t+=(l-o)/2,s+=(c-a)/2),h.drawRect(t,s,o,a)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i);const p=this.get("color"),g=this.get("colorOpacity");(p||g)&&(h.beginFill(p,g),h.endFill())}}gt.className="RectanglePattern",gt.classNames=nt.c.classNames.concat([gt.className]);class ft extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("svgPath")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("svgPath");null!=t&&this._display.svgPath(t);const e=this.get("color"),i=this.get("colorOpacity");(e||i)&&(this._display.beginFill(e,i),this._display.endFill())}}ft.className="PathPattern",ft.classNames=nt.c.classNames.concat([ft.className]);class _t extends l.JH{_afterNew(){if(super._afterNewApplyThemes(),0===this.get("patterns",[]).length){const t=this.get("color",this.root.interfaceColors.get("stroke"));this.set("patterns",[this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:1,color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,maxWidth:4,maxHeight:4,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:1,gap:6,color:t}),this.getCirclePattern({width:11,height:11,radius:2,color:t}),this.getLinePattern({width:6,height:6,rotation:90,strokeWidth:1,color:t}),this.getRectanglePattern({width:14,height:14,rotation:45,gap:4,maxWidth:6,maxHeight:6,checkered:!0,color:t}),this.getLinePattern({width:6,height:6,rotation:0,strokeWidth:1,color:t}),this.getRectanglePattern({width:15,height:15,rotation:0,gap:5,maxWidth:5,maxHeight:5,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getCirclePattern({width:20,height:20,radius:3,gap:4,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,gap:1,maxWidth:9,maxHeight:9,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:0,strokeWidth:3,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:90,strokeWidth:3,gap:1,color:t})])}this._dirty.patterns=!1}_beforeChanged(){this.isDirty("patterns")&&this.reset()}getIndex(t){const e=this.get("patterns",[]);return te.length-1?e[t-Math.floor(t*(t/e.length))]:e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0))}getLinePattern(t){return dt.y.new(this.root,t)}getRectanglePattern(t){return gt.new(this.root,t)}getCirclePattern(t){return ut.new(this.root,t)}}_t.className="PatternSet",_t.classNames=l.JH.classNames.concat([_t.className]);var mt=i(2754),yt=i(9582),vt=i(256);class wt{static parse(t,e){e=this._applyDefaults(e);try{if(N.isString(t)){let i=JSON.parse(t);return e.reverse&&N.isArray(i)&&i.reverse(),i}if(N.isArray(t)||N.isObject(t))return t;throw"Unable to parse JSON data"}catch(t){return}}static _applyDefaults(t){const e={};return t||(t={}),vt.each({reverse:!1},((i,s)=>{e[i]=t[i]||s})),e}}class bt{static parse(t,e){e=this._applyDefaults(e);let i,s,n,r=this.CSVToArray(t,e.delimiter),o=[],a=[];for(s=0;s{e[i]=t[i]||s})),e}}class xt extends l.JH{constructor(){super(...arguments),this._checkDates=!1,this._checkNumbers=!1,this._checkColors=!1,this._checkEmpty=!1,this._checkDeep=!1}_afterNew(){super._afterNew(),this._checkFeatures(),this.on("dateFields",(()=>this._checkFeatures())),this.on("dateFormat",(()=>this._checkFeatures())),this.on("numericFields",(()=>this._checkFeatures())),this.on("colorFields",(()=>this._checkFeatures())),this.on("emptyAs",(()=>this._checkFeatures()))}_checkFeatures(){(this.isDirty("dateFields")||this.isDirty("dateFormat"))&&(this._checkDates=this.get("dateFields")&&this.get("dateFields").length>0),this.isDirty("numericFields")&&(this._checkNumbers=this.get("numericFields")&&this.get("numericFields").length>0),this.isDirty("colorFields")&&(this._checkColors=this.get("colorFields")&&this.get("colorFields").length>0),this.isDirty("emptyAs")&&(this._checkEmpty=null!=this.get("emptyAs")),this._checkDeepFeatures()}_checkDeepFeatures(){const t=[];ht.each(["dateFields","numericFields","colorFields"],(e=>{ht.each(this.get(e,[]),(e=>{const i=e.split(".");for(i.pop();i.length>0;)t.push(i.join(".")),i.pop()}))})),this._checkDeep=t.length>0,this.setPrivate("deepFields",t)}processMany(t){N.isArray(t)&&(this._checkDates||this._checkNumbers||this._checkColors||this._checkEmpty)&&ht.each(t,(t=>{this.processRow(t)}))}processRow(t,e=""){vt.each(t,((i,s)=>{const n=e+i;this._checkEmpty&&(t[i]=this._maybeToEmpty(t[i])),this._checkNumbers&&(t[i]=this._maybeToNumber(n,t[i])),this._checkDates&&(t[i]=this._maybeToDate(n,t[i])),this._checkColors&&(t[i]=this._maybeToColor(n,t[i])),this._checkDeep&&-1!==this.getPrivate("deepFields",[]).indexOf(n)&&N.isObject(t[i])&&this.processRow(t[i],n+".")}))}_maybeToNumber(t,e){return-1!==this.get("numericFields").indexOf(t)?N.toNumber(e):e}_maybeToDate(t,e){return-1!==this.get("dateFields").indexOf(t)?this._root.dateFormatter.parse(e,this.get("dateFormat","")).getTime():e}_maybeToEmpty(t){return null!=t&&""!=t||null==this.get("emptyAs")?t:this.get("emptyAs")}_maybeToColor(t,e){return-1!==this.get("colorFields").indexOf(t)?O.Il.fromAny(e):e}}var Dt=i(6460),kt=i(798),Tt=i(9821),Mt=i(780),Et=i(7255),Ot=i(1195),Pt=i(4102),St=i(7049),Nt=i(6312),Ct=i(9395);function Lt(t,e,i){return new Promise(((s,n)=>{let r=null!=i&&"blob"==i.responseType,o=new XMLHttpRequest;if(o.onload=()=>{if(200===o.status){let t,i;if(r)return i=o.response,void At(i).then((t=>{let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}));t=o.responseText||o.response;let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}else n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.onerror=()=>{n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.open("GET",t,!0),i&&i.withCredentials&&(o.withCredentials=!0),null!=i){if(null!=i.requestHeaders)for(let t=0;t{const s=new FileReader;s.onload=t=>{e(s.result)},s.onerror=t=>{i(t)},s.readAsText(t)}))}var Rt=i(1926)},3100:function(t,e){"use strict";e.Z={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(t){let e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""}},9629:function(t){var e=function(t){"use strict";var e,i=Object.prototype,s=i.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",h=r.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,s){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new S(s||[]);return n(o,"_invoke",{value:M(t,i,a)}),o}function u(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",g="executing",f="completed",_={};function m(){}function y(){}function v(){}var w={};l(w,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==i&&s.call(x,o)&&(w=x);var D=v.prototype=m.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function i(n,r,o,a){var h=u(t[n],t,r);if("throw"!==h.type){var l=h.arg,c=l.value;return c&&"object"==typeof c&&s.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,o,a)}),(function(t){i("throw",t,o,a)})):e.resolve(c).then((function(t){l.value=t,o(l)}),(function(t){return i("throw",t,o,a)}))}a(h.arg)}var r;n(this,"_invoke",{value:function(t,s){function n(){return new e((function(e,n){i(t,s,e,n)}))}return r=r?r.then(n,n):n()}})}function M(t,e,i){var s=d;return function(n,r){if(s===g)throw new Error("Generator is already running");if(s===f){if("throw"===n)throw r;return C()}for(i.method=n,i.arg=r;;){var o=i.delegate;if(o){var a=E(o,i);if(a){if(a===_)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===d)throw s=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=g;var h=u(t,e,i);if("normal"===h.type){if(s=i.done?f:p,h.arg===_)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(s=f,i.method="throw",i.arg=h.arg)}}}function E(t,i){var s=i.method,n=t.iterator[s];if(n===e)return i.delegate=null,"throw"===s&&t.iterator.return&&(i.method="return",i.arg=e,E(t,i),"throw"===i.method)||"return"!==s&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),_;var r=u(n,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,_;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,_):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,_)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var h=s.call(o,"catchLoc"),l=s.call(o,"finallyLoc");if(h&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var s=i.completion;if("throw"===s.type){var n=s.arg;P(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,s){return this.delegate={iterator:N(t),resultName:i,nextLoc:s},"next"===this.method&&(this.arg=e),_}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},8494:function(t,e,i){"use strict";i.r(e),i.d(e,{am5:function(){return f}});const s=window.Promise,n=s&&s.prototype.then,r=s&&s.prototype.catch,o=s&&s.prototype.finally,a=s&&s.reject,h=s&&s.resolve,l=s&&s.allSettled,c=s&&s.all,u=s&&s.race,d=window.fetch,p=String.prototype.startsWith,g=String.prototype.endsWith;i(9629);const f=i(5322);var _;i.p=(_=function(){if(document.currentScript)return document.currentScript;var t=document.getElementsByTagName("script");return t[t.length-1]}().src,((/(.*\/)[^\/]*$/.exec(_)||[])[1]||"./")),s&&(window.Promise=s,n&&(s.prototype.then=n),r&&(s.prototype.catch=r),o&&(s.prototype.finally=o),a&&(s.reject=a),h&&(s.resolve=h),l&&(s.allSettled=l),c&&(s.all=c),u&&(s.race=u)),d&&(window.fetch=d),p&&(String.prototype.startsWith=p),g&&(String.prototype.endsWith=g)},4138:function(t,e){"use strict";var i={value:()=>{}};function s(){for(var t,e=0,i=arguments.length,s={};e=0&&(e=t.slice(i+1),t=t.slice(0,i)),t&&!s.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),h=-1,l=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++h0)for(var i,s,n=new Array(i),r=0;r0&&i*i>s*s+n*n}function u(t,e){for(var i=0;i1e-6?(E+Math.sqrt(E*E-4*M*O))/(2*M):O/E);return{x:s+x+D*P,y:n+k+T*P,r:P}}function f(t,e,i){var s,n,r,o,a=t.x-e.x,h=t.y-e.y,l=a*a+h*h;l?(n=e.r+i.r,n*=n,o=t.r+i.r,n>(o*=o)?(s=(l+o-n)/(2*l),r=Math.sqrt(Math.max(0,o/l-s*s)),i.x=t.x-s*a-r*h,i.y=t.y-s*h+r*a):(s=(l+n-o)/(2*l),r=Math.sqrt(Math.max(0,n/l-s*s)),i.x=e.x+s*a-r*h,i.y=e.y+s*h+r*a)):(i.x=e.x+i.r,i.y=e.y)}function _(t,e){var i=t.r+e.r-1e-6,s=e.x-t.x,n=e.y-t.y;return i>0&&i*i>s*s+n*n}function m(t){var e=t._,i=t.next._,s=e.r+i.r,n=(e.x*i.r+i.x*e.r)/s,r=(e.y*i.r+i.y*e.r)/s;return n*n+r*r}function y(t){this._=t,this.next=null,this.previous=null}function v(t,e){if(!(o=(i=t,t="object"==typeof i&&"length"in i?i:Array.from(i)).length))return 0;var i,s,n,r,o,a,l,u,p,g,v,w;if((s=t[0]).x=0,s.y=0,!(o>1))return s.r;if(n=t[1],s.x=-n.r,n.x=s.r,n.y=0,!(o>2))return s.r+n.r;f(n,s,r=t[2]),s=new y(s),n=new y(n),r=new y(r),s.next=r.previous=n,n.next=s.previous=r,r.next=n.previous=s;t:for(u=3;u(t=(r*t+o)%a)/a}();return s.x=e/2,s.y=i/2,t?s.eachBefore(x(t)).eachAfter(D(h,.5,l)).eachBefore(k(1)):s.eachBefore(x(w)).eachAfter(D(n.G,1,l)).eachAfter(D(h,s.r/Math.min(e,i),l)).eachBefore(k(Math.min(e,i)/(2*s.r))),s}return l.radius=function(e){return arguments.length?(t=(0,s.j)(e),l):t},l.size=function(t){return arguments.length?(e=+t[0],i=+t[1],l):[e,i]},l.padding=function(t){return arguments.length?(h="function"==typeof t?t:(0,n.Z)(+t),l):h},l}function x(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function D(t,e,i){return function(s){if(n=s.children){var n,r,o,a=n.length,h=t(s)*e||0;if(h)for(r=0;r=0))throw new Error(`invalid digits: ${t}`);if(e>15)return a;const i=10**e;return function(t){this._+=t[0];for(let e=1,s=t.length;er)if(Math.abs(d*l-c*u)>r&&o){let g=i-a,f=n-h,_=l*l+c*c,m=g*g+f*f,y=Math.sqrt(_),v=Math.sqrt(p),w=o*Math.tan((s-Math.acos((_+p-m)/(2*y*v)))/2),b=w/v,x=w/y;Math.abs(b-1)>r&&this._append`L${t+b*u},${e+b*d}`,this._append`A${o},${o},0,0,${+(d*g>u*f)},${this._x1=t+x*l},${this._y1=e+x*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,i,a,h,l){if(t=+t,e=+e,l=!!l,(i=+i)<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(a),u=i*Math.sin(a),d=t+c,p=e+u,g=1^l,f=l?a-h:h-a;null===this._x1?this._append`M${d},${p}`:(Math.abs(this._x1-d)>r||Math.abs(this._y1-p)>r)&&this._append`L${d},${p}`,i&&(f<0&&(f=f%n+n),f>o?this._append`A${i},${i},0,1,${g},${t-c},${e-u}A${i},${i},0,1,${g},${this._x1=d},${this._y1=p}`:f>r&&this._append`A${i},${i},0,${+(f>=s)},${g},${this._x1=t+i*Math.cos(h)},${this._y1=e+i*Math.sin(h)}`)}rect(t,e,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function l(){return new h}l.prototype=h.prototype},832:function(t,e,i){"use strict";i.d(e,{Z:function(){return D}});var s=i(3141);const n=Math.abs,r=Math.atan2,o=Math.cos,a=Math.max,h=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,d=Math.PI,p=d/2,g=2*d;function f(t){return t>=1?p:t<=-1?-p:Math.asin(t)}var _=i(5987);function m(t){return t.innerRadius}function y(t){return t.outerRadius}function v(t){return t.startAngle}function w(t){return t.endAngle}function b(t){return t&&t.padAngle}function x(t,e,i,s,n,r,o){var h=t-i,l=e-s,u=(o?r:-r)/c(h*h+l*l),d=u*l,p=-u*h,g=t+d,f=e+p,_=i+d,m=s+p,y=(g+_)/2,v=(f+m)/2,w=_-g,b=m-f,x=w*w+b*b,D=n-r,k=g*m-_*f,T=(b<0?-1:1)*c(a(0,D*D*x-k*k)),M=(k*b-w*T)/x,E=(-k*w-b*T)/x,O=(k*b+w*T)/x,P=(-k*w+b*T)/x,S=M-y,N=E-v,C=O-y,L=P-v;return S*S+N*N>C*C+L*L&&(M=O,E=P),{cx:M,cy:E,x01:-d,y01:-p,x11:M*(n/D-1),y11:E*(n/D-1)}}function D(){var t=m,e=y,i=(0,s.Z)(0),a=null,D=v,k=w,T=b,M=null,E=(0,_.d)(O);function O(){var s,_,m,y=+t.apply(this,arguments),v=+e.apply(this,arguments),w=D.apply(this,arguments)-p,b=k.apply(this,arguments)-p,O=n(b-w),P=b>w;if(M||(M=s=E()),vu)if(O>g-u)M.moveTo(v*o(w),v*l(w)),M.arc(0,0,v,w,b,!P),y>u&&(M.moveTo(y*o(b),y*l(b)),M.arc(0,0,y,b,w,P));else{var S,N,C=w,L=b,A=w,R=b,U=O,B=O,F=T.apply(this,arguments)/2,I=F>u&&(a?+a.apply(this,arguments):c(y*y+v*v)),H=h(n(v-y)/2,+i.apply(this,arguments)),z=H,G=H;if(I>u){var V=f(I/y*l(F)),W=f(I/v*l(F));(U-=2*V)>u?(A+=V*=P?1:-1,R-=V):(U=0,A=R=(w+b)/2),(B-=2*W)>u?(C+=W*=P?1:-1,L-=W):(B=0,C=L=(w+b)/2)}var Y=v*o(C),j=v*l(C),X=y*o(R),$=y*l(R);if(H>u){var Z,K=v*o(L),q=v*l(L),Q=y*o(A),J=y*l(A);if(O1?0:m<-1?d:Math.acos(m))/2),rt=c(Z[0]*Z[0]+Z[1]*Z[1]);z=h(H,(y-rt)/(nt-1)),G=h(H,(v-rt)/(nt+1))}else z=G=0}B>u?G>u?(S=x(Q,J,Y,j,v,G,P),N=x(K,q,X,$,v,G,P),M.moveTo(S.cx+S.x01,S.cy+S.y01),Gu&&U>u?z>u?(S=x(X,$,K,q,y,-z,P),N=x(Y,j,Q,J,y,-z,P),M.lineTo(S.cx+S.x01,S.cy+S.y01),z=o;--a)p.point(y[a],v[a]);p.lineEnd(),p.areaEnd()}m&&(y[r]=+t(h,r,n),v[r]=+e(h,r,n),p.point(l?+l(h,r,n):y[r],i?+i(h,r,n):v[r]))}if(f)return p=null,f+""||null}function _(){return(0,o.Z)().defined(c).curve(d).context(u)}return t="function"==typeof t?t:void 0===t?h.x:(0,n.Z)(+t),e="function"==typeof e?e:void 0===e?(0,n.Z)(0):(0,n.Z)(+e),i="function"==typeof i?i:void 0===i?h.y:(0,n.Z)(+i),f.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),l=null,f):t},f.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),f):t},f.x1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):l},f.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),i=null,f):e},f.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),f):e},f.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):i},f.lineX0=f.lineY0=function(){return _().x(t).y(e)},f.lineY1=function(){return _().x(t).y(i)},f.lineX1=function(){return _().x(l).y(e)},f.defined=function(t){return arguments.length?(c="function"==typeof t?t:(0,n.Z)(!!t),f):c},f.curve=function(t){return arguments.length?(d=t,null!=u&&(p=d(u)),f):d},f.context=function(t){return arguments.length?(null==t?u=p=null:p=d(u=t),f):u},f}},8457:function(t,e,i){"use strict";function s(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}i.d(e,{Z:function(){return s}}),Array.prototype.slice},3141:function(t,e,i){"use strict";function s(t){return function(){return t}}i.d(e,{Z:function(){return s}})},964:function(t,e,i){"use strict";function s(t){this._context=t}function n(t){return new s(t)}i.d(e,{Z:function(){return n}}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},774:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var s=i(8457),n=i(3141),r=i(964),o=i(5987),a=i(6758);function h(t,e){var i=(0,n.Z)(!0),h=null,l=r.Z,c=null,u=(0,o.d)(d);function d(n){var r,o,a,d=(n=(0,s.Z)(n)).length,p=!1;for(null==h&&(c=l(a=u())),r=0;r<=d;++r)!(r=0))throw new RangeError(`invalid digits: ${i}`);e=t}return t},()=>new s.y$(e)}},6758:function(t,e,i){"use strict";function s(t){return t[0]}function n(t){return t[1]}i.d(e,{x:function(){return s},y:function(){return n}})},7738:function(t,e,i){"use strict";i.d(e,{B7:function(){return _},HT:function(){return m},zO:function(){return g}});var s,n,r=0,o=0,a=0,h=1e3,l=0,c=0,u=0,d="object"==typeof performance&&performance.now?performance:Date,p="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return c||(p(f),c=d.now()+u)}function f(){c=0}function _(){this._call=this._time=this._next=null}function m(t,e,i){var s=new _;return s.restart(t,e,i),s}function y(){c=(l=d.now())+u,r=o=0;try{!function(){g(),++r;for(var t,e=s;e;)(t=c-e._time)>=0&&e._call.call(void 0,t),e=e._next;--r}()}finally{r=0,function(){for(var t,e,i=s,r=1/0;i;)i._call?(r>i._time&&(r=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:s=e);n=t,w(r)}(),c=0}}function v(){var t=d.now(),e=t-l;e>h&&(u-=e,l=t)}function w(t){r||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(y,t-d.now()-u)),a&&(a=clearInterval(a))):(a||(l=d.now(),a=setInterval(v,h)),r=1,p(y)))}_.prototype=m.prototype={constructor:_,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?g():+i)+(null==e?0:+e),this._next||n===this||(n?n._next=this:s=this,n=this),this._call=t,this._time=i,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},7896:function(t,e,i){"use strict";function s(){}function n(t){return null==t?s:function(){return this.querySelector(t)}}function r(){return[]}function o(t){return null==t?r:function(){return this.querySelectorAll(t)}}function a(t){return function(){return this.matches(t)}}function h(t){return function(e){return e.matches(t)}}var l=Array.prototype.find;function c(){return this.firstElementChild}var u=Array.prototype.filter;function d(){return Array.from(this.children)}function p(t){return new Array(t.length)}function g(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function f(t,e,i,s,n,r){for(var o,a=0,h=e.length,l=r.length;ae?1:t>=e?0:NaN}g.prototype={constructor:g,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var w="http://www.w3.org/1999/xhtml",b={svg:"http://www.w3.org/2000/svg",xhtml:w,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function x(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),b.hasOwnProperty(e)?{space:b[e],local:t}:t}function D(t){return function(){this.removeAttribute(t)}}function k(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T(t,e){return function(){this.setAttribute(t,e)}}function M(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function O(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function P(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function S(t){return function(){this.style.removeProperty(t)}}function N(t,e,i){return function(){this.style.setProperty(t,e,i)}}function C(t,e,i){return function(){var s=e.apply(this,arguments);null==s?this.style.removeProperty(t):this.style.setProperty(t,s,i)}}function L(t,e){return t.style.getPropertyValue(e)||P(t).getComputedStyle(t,null).getPropertyValue(e)}function A(t){return function(){delete this[t]}}function R(t,e){return function(){this[t]=e}}function U(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function B(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new I(t)}function I(t){this._node=t,this._names=B(t.getAttribute("class")||"")}function H(t,e){for(var i=F(t),s=-1,n=e.length;++s=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ut=[null];function dt(t,e){this._groups=t,this._parents=e}function pt(){return new dt([[document.documentElement]],ut)}dt.prototype=pt.prototype={constructor:dt,select:function(t){"function"!=typeof t&&(t=n(t));for(var e=this._groups,i=e.length,s=new Array(i),r=0;r=T&&(T=k+1);!(D=b[T])&&++T=0;)(s=n[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=v);for(var i=this._groups,s=i.length,n=new Array(s),r=0;r1?this.each((null==e?S:"function"==typeof e?C:N)(t,e,null==i?"":i)):L(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?A:"function"==typeof e?U:R)(t,e)):this.node()[t]},classed:function(t,e){var i=B(t+"");if(arguments.length<2){for(var s=F(this.node()),n=-1,r=i.length;++n=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}))}(t+""),o=r.length;if(!(arguments.length<2)){for(a=e?at:ot,s=0;s{s.stop(),t(i+e)}),e,i),s}var yt=(0,ft.Z)("start","end","cancel","interrupt"),vt=[],wt=0,bt=3;function xt(t,e,i,s,n,r){var o=t.__transition;if(o){if(i in o)return}else t.__transition={};!function(t,e,i){var s,n=t.__transition;function r(h){var l,c,u,d;if(1!==i.state)return a();for(l in n)if((d=n[l]).name===i.name){if(d.state===bt)return mt(r);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[l]):+lwt)throw new Error("too late; already scheduled");return i}function kt(t,e){var i=Tt(t,e);if(i.state>bt)throw new Error("too late; already running");return i}function Tt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Mt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Et,Ot=180/Math.PI,Pt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function St(t,e,i,s,n,r){var o,a,h;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(h=t*i+e*s)&&(i-=t*h,s-=e*h),(a=Math.sqrt(i*i+s*s))&&(i/=a,s/=a,h/=a),t*s180?e+=360:e-t>180&&(t+=360),r.push({i:i.push(n(i)+"rotate(",null,s)-2,x:Mt(t,e)})):e&&i.push(n(i)+"rotate("+e+s)}(r.rotate,o.rotate,a,h),function(t,e,i,r){t!==e?r.push({i:i.push(n(i)+"skewX(",null,s)-2,x:Mt(t,e)}):e&&i.push(n(i)+"skewX("+e+s)}(r.skewX,o.skewX,a,h),function(t,e,i,s,r,o){if(t!==i||e!==s){var a=r.push(n(r)+"scale(",null,",",null,")");o.push({i:a-4,x:Mt(t,i)},{i:a-2,x:Mt(e,s)})}else 1===i&&1===s||r.push(n(r)+"scale("+i+","+s+")")}(r.scaleX,r.scaleY,o.scaleX,o.scaleY,a,h),r=o=null,function(t){for(var e,i=-1,s=h.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?se(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?se(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jt.exec(t))?new re(e[1],e[2],e[3],1):(e=Xt.exec(t))?new re(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$t.exec(t))?se(e[1],e[2],e[3],e[4]):(e=Zt.exec(t))?se(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Kt.exec(t))?ue(e[1],e[2]/100,e[3]/100,1):(e=qt.exec(t))?ue(e[1],e[2]/100,e[3]/100,e[4]):Qt.hasOwnProperty(t)?ie(Qt[t]):"transparent"===t?new re(NaN,NaN,NaN,0):null}function ie(t){return new re(t>>16&255,t>>8&255,255&t,1)}function se(t,e,i,s){return s<=0&&(t=e=i=NaN),new re(t,e,i,s)}function ne(t,e,i,s){return 1===arguments.length?((n=t)instanceof It||(n=ee(n)),n?new re((n=n.rgb()).r,n.g,n.b,n.opacity):new re):new re(t,e,i,null==s?1:s);var n}function re(t,e,i,s){this.r=+t,this.g=+e,this.b=+i,this.opacity=+s}function oe(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}`}function ae(){const t=he(this.opacity);return`${1===t?"rgb(":"rgba("}${le(this.r)}, ${le(this.g)}, ${le(this.b)}${1===t?")":`, ${t})`}`}function he(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function le(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ce(t){return((t=le(t))<16?"0":"")+t.toString(16)}function ue(t,e,i,s){return s<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new pe(t,e,i,s)}function de(t){if(t instanceof pe)return new pe(t.h,t.s,t.l,t.opacity);if(t instanceof It||(t=ee(t)),!t)return new pe;if(t instanceof pe)return t;var e=(t=t.rgb()).r/255,i=t.g/255,s=t.b/255,n=Math.min(e,i,s),r=Math.max(e,i,s),o=NaN,a=r-n,h=(r+n)/2;return a?(o=e===r?(i-s)/a+6*(i0&&h<1?0:o,new pe(o,a,h,t.opacity)}function pe(t,e,i,s){this.h=+t,this.s=+e,this.l=+i,this.opacity=+s}function ge(t){return(t=(t||0)%360)<0?t+360:t}function fe(t){return Math.max(0,Math.min(1,t||0))}function _e(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function me(t,e,i,s,n){var r=t*t,o=r*t;return((1-3*t+3*r-o)*e+(4-6*r+3*o)*i+(1+3*t+3*r-3*o)*s+o*n)/6}Bt(It,ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return de(this).formatHsl()},formatRgb:te,toString:te}),Bt(re,ne,Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new re(le(this.r),le(this.g),le(this.b),he(this.opacity))},displayable(){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:oe,formatHex:oe,formatHex8:function(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}${ce(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ae,toString:ae})),Bt(pe,(function(t,e,i,s){return 1===arguments.length?de(t):new pe(t,e,i,null==s?1:s)}),Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new pe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new pe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*e,n=2*i-s;return new re(_e(t>=240?t-240:t+120,n,s),_e(t,n,s),_e(t<120?t+240:t-120,n,s),this.opacity)},clamp(){return new pe(ge(this.h),fe(this.s),fe(this.l),he(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=he(this.opacity);return`${1===t?"hsl(":"hsla("}${ge(this.h)}, ${100*fe(this.s)}%, ${100*fe(this.l)}%${1===t?")":`, ${t})`}`}}));var ye=t=>()=>t;function ve(t,e){var i=e-t;return i?function(t,e){return function(i){return t+i*e}}(t,i):ye(isNaN(t)?e:t)}var we=function t(e){var i=function(t){return 1==(t=+t)?ve:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(s){return Math.pow(t+s*e,i)}}(e,i,t):ye(isNaN(e)?i:e)}}(e);function s(t,e){var s=i((t=ne(t)).r,(e=ne(e)).r),n=i(t.g,e.g),r=i(t.b,e.b),o=ve(t.opacity,e.opacity);return function(e){return t.r=s(e),t.g=n(e),t.b=r(e),t.opacity=o(e),t+""}}return s.gamma=t,s}(1);function be(t){return function(e){var i,s,n=e.length,r=new Array(n),o=new Array(n),a=new Array(n);for(i=0;i=1?(i=1,e-1):Math.floor(i*e),n=t[s],r=t[s+1],o=s>0?t[s-1]:2*n-r,a=sr&&(n=e.slice(r,n),a[o]?a[o]+=n:a[++o]=n),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,h.push({i:o,x:Mt(i,s)})),r=De.lastIndex;return r=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Dt:kt;return function(){var o=r(this,t),a=o.on;a!==s&&(n=(s=a).copy()).on(e,i),o.on=n}}(i,t,e))},attr:function(t,e){var i=x(t),s="transform"===i?Lt:Te;return this.attrTween(t,"function"==typeof e?(i.local?Ne:Se)(i,s,Ut(this,"attr."+t,e)):null==e?(i.local?Ee:Me)(i):(i.local?Pe:Oe)(i,s,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;var s=x(t);return this.tween(i,(s.local?Ce:Le)(s,e))},style:function(t,e,i){var s="transform"==(t+="")?Ct:Te;return null==e?this.styleTween(t,function(t,e){var i,s,n;return function(){var r=L(this,t),o=(this.style.removeProperty(t),L(this,t));return r===o?null:r===i&&o===s?n:n=e(i=r,s=o)}}(t,s)).on("end.style."+t,Ie(t)):"function"==typeof e?this.styleTween(t,function(t,e,i){var s,n,r;return function(){var o=L(this,t),a=i(this),h=a+"";return null==a&&(this.style.removeProperty(t),h=a=L(this,t)),o===h?null:o===s&&h===n?r:(n=h,r=e(s=o,a))}}(t,s,Ut(this,"style."+t,e))).each(function(t,e){var i,s,n,r,o="style."+e,a="end."+o;return function(){var h=kt(this,t),l=h.on,c=null==h.value[o]?r||(r=Ie(e)):void 0;l===i&&n===c||(s=(i=l).copy()).on(a,n=c),h.on=s}}(this._id,t)):this.styleTween(t,function(t,e,i){var s,n,r=i+"";return function(){var o=L(this,t);return o===r?null:o===s?n:n=e(s=o,i)}}(t,s,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var s="style."+(t+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(null==e)return this.tween(s,null);if("function"!=typeof e)throw new Error;return this.tween(s,function(t,e,i){var s,n;function r(){var r=e.apply(this,arguments);return r!==n&&(s=(n=r)&&function(t,e,i){return function(s){this.style.setProperty(t,e.call(this,s),i)}}(t,r,i)),s}return r._value=e,r}(t,e,null==i?"":i))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ut(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,i;function s(){var s=t.apply(this,arguments);return s!==i&&(e=(i=s)&&function(t){return function(e){this.textContent=t.call(this,e)}}(s)),e}return s._value=t,s}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var s,n=Tt(this.node(),i).tween,r=0,o=n.length;r2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[n]):o=!1;o&&delete t.__transition}}(this,t)}))},gt.prototype.transition=function(t){var e,i;t instanceof ze?(e=t._id,t=t._name):(e=Ge(),(i=We).time=(0,_t.zO)(),t=null==t?null:t+"");for(var s=this._groups,n=s.length,r=0;r=n)&&Object.keys(a.O).every((function(t){return a.O[t](i[h])}))?i.splice(h--,1):(o=!1,n0&&t[c-1][2]>n;c--)t[c]=t[c-1];t[c]=[i,s,n]},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},i=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(t,s){if(1&s&&(t=this(t)),8&s)return t;if("object"==typeof t&&t){if(4&s&&t.__esModule)return t;if(16&s&&"function"==typeof t.then)return t}var n=Object.create(null);a.r(n);var r={};e=e||[null,i({}),i([]),i(i)];for(var o=2&s&&t;"object"==typeof o&&!~e.indexOf(o);o=i(o))Object.getOwnPropertyNames(o).forEach((function(e){r[e]=function(){return t[e]}}));return r.default=function(){return t},a.d(n,r),n},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,i){return a.f[i](t,e),e}),[]))},a.u=function(t){return"deps/"+{643:"pdfmake",4297:"xlsx",4384:"markerjs2"}[t]+".js"},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s={},n="@amcharts/amcharts5:",a.l=function(t,e,i,r){if(s[t])s[t].push(e);else{var o,h;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c{this.zoomOut()})),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",e);const a=this.plotContainer;a.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),a.children.push(this.topGridContainer),a.children.push(this.bulletsContainer),a.set("interactive",!0),a.set("interactiveChildren",!1),a.set("background",o.A.new(t,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(a.events.on("pointerdown",(t=>{this._handlePlotDown(t)}))),this._disposers.push(a.events.on("globalpointerup",(t=>{this._handlePlotUp(t)}))),this._disposers.push(a.events.on("globalpointermove",(t=>{this._handlePlotMove(t)}))),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(t){t._unstack(),t._posXDp&&t._posXDp.dispose(),t._posYDp&&t._posYDp.dispose(),t.set("baseAxis",void 0);const e=t.get("xAxis");e&&(g.remove(e.series,t),e.markDirtyExtremes());const i=t.get("yAxis");i&&(g.remove(i.series,t),i.markDirtyExtremes());const s=this.get("cursor");if(s){const e=s.get("snapToSeries");e&&g.remove(e,t)}super._removeSeries(t)}_applyThemes(t=!1){const e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}handleWheel(t){const e=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=t.originalEvent;let o=!1;if(!p.isLocalEvent(a,this))return;o=!0;const n=s.toLocal(t.point),r=this.get("wheelStep",.2),h=a.deltaY/100,l=a.deltaX/100,d=this.get("wheelZoomPositionX"),g=this.get("wheelZoomPositionY");"zoomX"!==e&&"zoomXY"!==e||0==l||this.xAxes.each((t=>{if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let h=t.get("maxDeviation",0),g=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let l=t.get("maxDeviation",0),g=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let h=t.get("maxDeviation",0),d=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let l=t.get("maxDeviation",0),d=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panX"!==i&&"panXY"!==i||0==h||this.xAxes.each((t=>{if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e+s,n=i+s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==e&&"panXY"!==e||0==l||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==i&&"panXY"!==i||0==h||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e-s,n=i-s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),o&&a.preventDefault()}_handleSetWheel(){const t=this.get("wheelX"),e=this.get("wheelY"),i=this.plotContainer;"none"!==t||"none"!==e?(this._wheelDp=i.events.on("wheel",(i=>{const s=i.originalEvent;("none"!==t&&0!=Math.abs(s.deltaX)||"none"!==e&&0!=Math.abs(s.deltaY))&&this.handleWheel(i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(t){let e=1;return t.get("renderer").get("inversed")&&(e=-1),e}_fixWheel(t,e){const i=e-t;return t<0&&(e=(t=0)+i),e>1&&(t=(e=1)-i),[t,e]}_handlePlotDown(t){const e=t.originalEvent;if(2==e.button)return;const i=this.plotContainer;let s=i.toLocal(t.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&e.pointerId&&m.keys(i._downPoints).length>0){const t=this.xAxes.getIndex(0),e=this.yAxes.getIndex(0);t&&(this._downStartX=t.get("start",0),this._downEndX=t.get("end",1)),e&&(this._downStartY=e.get("start",0),this._downEndY=e.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:e.clientX,y:e.clientY};const i=this.get("panX"),s=this.get("panY");i&&this.xAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")})),s&&this.yAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")}));const a="panstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:t.originalEvent})}}_handleWheelAnimation(t){t?t.events.on("stopped",(()=>{this._dispatchWheelAnimation()})):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const t="wheelended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}_handlePlotUp(t){const e=this._downPoint;if(e&&(this.get("panX")||this.get("panY"))){if(t.originalEvent.clientX==e.x&&t.originalEvent.clientY==e.y){const e="pancancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:t.originalEvent})}this._downPoint=void 0,this.xAxes.each((t=>{t._isPanning=!1})),this.yAxes.each((t=>{t._isPanning=!1}))}_handlePlotMove(t){const e=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const i=t.originalEvent.pointerId;if(i&&(this._movePoints[i]=t.point,m.keys(e._downPoints).length>1))return void this._handlePinch()}let i=this._downPoint;if(i){i=e.toLocal(this._root.documentPointToRoot(i));let s=e.toLocal(t.point);const a=this.get("panX"),o=this.get("panY");if(a){let t=this.get("scrollbarX");t&&t.events.disableType("rangechanged"),this.xAxes.each((t=>{if(t.get("panX")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.x-s.x)/e.width();t.get("renderer").get("inversed")&&(n*=-1);let r=a+n,h=o+n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}if(o){let t=this.get("scrollbarY");t&&t.events.disableType("rangechanged"),this.yAxes.each((t=>{if(t.get("panY")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.y-s.y)/e.height();t.get("renderer").get("inversed")&&(n*=-1);let r=a-n,h=o-n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}}}_handlePinch(){const t=this.plotContainer;let e=0,i=[],s=[];if(m.each(t._downPoints,((t,a)=>{i[e]=a;let o=this._movePoints[t];o&&(s[e]=o),e++})),i.length>1&&s.length>1){const e=t.width(),a=t.height();let o=i[0],n=i[1],r=s[0],h=s[1];if(o&&n&&r&&h){if(r=t.toLocal(r),h=t.toLocal(h),o=t.toLocal(o),n=t.toLocal(n),this.get("pinchZoomX")){const t=this._downStartX,i=this._downEndX;if(null!=t&&null!=i){o.x>n.x&&([o,n]=[n,o],[r,h]=[h,r]);let s=t+o.x/e*(i-t),a=t+n.x/e*(i-t),l=t+r.x/e*(i-t),d=t+h.x/e*(i-t),g=Math.max(.001,a-s)/Math.max(.001,d-l),c=t*g+s-l*g,u=i*g+a-d*g;this.xAxes.each((t=>{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}if(this.get("pinchZoomY")){const t=this._downStartY,e=this._downEndY;if(null!=t&&null!=e){o.y{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}}}}_handleCursorPosition(){const t=this.get("cursor");if(t){const e=t.getPrivate("point");let i=t.get("snapToSeries");if(t._downPoint&&(i=void 0),i&&e){const s=t.get("snapToSeriesBy"),a=[];g.each(i,(t=>{if(!t.isHidden()&&!t.isHiding())if("x!"!=s&&"y!"!=s){const e=t.startIndex(),i=t.endIndex();for(let s=e;s{const i=t.get("point");if(i){let a=0;a="x"==s||"x!"==s?Math.abs(e.x-i.x):"y"==s||"y!"==s?Math.abs(e.y-i.y):Math.hypot(e.x-i.x,e.y-i.y),a{const e=t.get("tooltip");e&&e._setDataItem(void 0)})),o){let e=o.component;e.showDataItemTooltip(o),e.setRaw("tooltipDataItem",o);const i=o.get("point");i&&t.handleMove(e.toGlobal({x:i.x-e.x(),y:i.y-e.y()}),!0)}}}}_updateCursor(){let t=this.get("cursor");t&&t.updateCursor()}_addCursor(t){this.plotContainer.children.push(t)}_prepareChildren(){if(super._prepareChildren(),this.series.each((t=>{this._colorize(t)})),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const t=this._prevSettings.cursor,e=this.get("cursor");e!==t&&(this._disposeProperty("cursor"),t&&t.dispose(),e&&(e._setChart(this),this._addCursor(e),this._pushPropertyDisposer("cursor",e.events.on("selectended",(()=>{this._handleCursorSelectEnd()})))),this._prevSettings.cursor=e)}if(this.isDirty("scrollbarX")){const t=this._prevSettings.scrollbarX,e=this.get("scrollbarX");e!==t&&(this._disposeProperty("scrollbarX"),t&&t.dispose(),e&&(e.parent||this.topAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarX",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.xAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarX",e.events.on("released",(()=>{this.xAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.xAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarX=e)}if(this.isDirty("scrollbarY")){const t=this._prevSettings.scrollbarY,e=this.get("scrollbarY");e!==t&&(this._disposeProperty("scrollbarY"),t&&t.dispose(),e&&(e.parent||this.rightAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarY",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.yAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarY",e.events.on("released",(()=>{this.yAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.yAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarY=e)}this._handleZoomOut()}_processSeries(t){super._processSeries(t);const e=t.get("xAxis"),i=t.get("yAxis");g.move(e.series,t),g.move(i.series,t),t._posXDp=t.addDisposer(e.events.on("positionchanged",(()=>{t._fixPosition()}))),t._posXDp=t.addDisposer(i.events.on("positionchanged",(()=>{t._fixPosition()}))),t.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?t.set("baseAxis",i):t.set("baseAxis",e)),t.get("stacked")&&(t._markDirtyKey("stacked"),g.each(t.dataItems,(t=>{t.set("stackToItemY",void 0),t.set("stackToItemX",void 0)}))),t._markDirtyAxes(),i.markDirtyExtremes(),e.markDirtyExtremes(),e._seriesAdded=!0,i._seriesAdded=!0,this._colorize(t)}_colorize(t){const e=this.get("colors");if(e&&null==t.get("fill")){const i=e.next();t._setSoft("stroke",i),t._setSoft("fill",i)}const i=this.get("patterns");if(i&&null==t.get("fillPattern")){const e=i.next();t._setSoft("fillPattern",e)}}_handleCursorSelectEnd(){const t=this.get("cursor"),e=t.get("behavior"),i=t.getPrivate("downPositionX",0),s=t.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,t.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,t.getPrivate("positionY",.5)));this.xAxes.each((t=>{if("zoomX"===e||"zoomXY"===e){let e=t.toAxisPosition(i),s=t.toAxisPosition(a);t.zoom(e,s)}t.setPrivate("updateScrollbar",!0)})),this.yAxes.each((t=>{if("zoomY"===e||"zoomXY"===e){let e=t.toAxisPosition(s),i=t.toAxisPosition(o);t.zoom(e,i)}t.setPrivate("updateScrollbar",!0)}))}_handleScrollbar(t,e,i,s){t.each((t=>{let a=t.fixPosition(e),o=t.fixPosition(i),n=t.zoom(a,o,void 0,s);const r="updateScrollbar";t.setPrivateRaw(r,!1),n?n.events.on("stopped",(()=>{t.setPrivateRaw(r,!0)})):t.setPrivateRaw(r,!0)}))}_processAxis(t,e){return t.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxis(t)}));else if("push"===t.type)e.children.push(t.newValue),t.newValue.processChart(this);else if("setIndex"===t.type)e.children.setIndex(t.index,t.newValue),t.newValue.processChart(this);else if("insertIndex"===t.type)e.children.insertIndex(t.index,t.newValue),t.newValue.processChart(this);else if("removeIndex"===t.type)this._removeAxis(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");e.children.moveValue(t.value,t.newIndex),t.value.processChart(this)}}))}_removeAxis(t){if(!t.isDisposed()){const e=t.parent;e&&e.children.removeValue(t);const i=t.gridContainer,s=i.parent;s&&s.children.removeValue(i);const a=t.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){const t=this.leftAxesContainer.width(),e=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",t),i.set("paddingRight",e);const s=this.topAxesContainer;s.set("paddingLeft",t),s.set("paddingRight",e)}processAxis(t){this.get("cursor")&&(this.addDisposer(t.on("start",(()=>{this._updateCursor()}))),this.addDisposer(t.on("end",(()=>{this._updateCursor()}))))}_handleAxisSelection(t,e){let i=t.fixPosition(t.get("start",0)),s=t.fixPosition(t.get("end",1));if(i>s&&([i,s]=[s,i]),-1!=this.xAxes.indexOf(t)){if(e||t.getPrivate("updateScrollbar")){let t=this.get("scrollbarX");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}}else if(-1!=this.yAxes.indexOf(t)&&(e||t.getPrivate("updateScrollbar"))){let t=this.get("scrollbarY");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let t=this.zoomOutButton;if(t&&t.parent){let e=!1;this.xAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),e?t.isHidden()&&t.show():t.hide()}}inPlot(t){const e=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=e.toGlobal(t);if(t.x>=-.5&&t.y>=-.5&&t.x<=e.width()+.5&&t.y<=e.height()+.5)return!0;if(i)for(let t=i.length-1;t>=0;t--){const e=i[t];if(e!=this){const t=e.plotContainer,i=this._root.rootPointToDocument(s),a=e._root.documentPointToRoot(i),o=t.toLocal(a);if(o.x>=-.1&&o.y>=-.1&&o.x<=t.width()+.1&&o.y<=t.height()+.1)return!0}}return!1}arrangeTooltips(){const t=this.plotContainer,e=t.width(),i=t.height();let s=this.height();const a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=t._display.toGlobal({x:0,y:0}),n=t._display.toGlobal({x:e,y:i});const r=[];let l,d,m=0,p=1/0,_=this._movePoint,x=this.get("maxTooltipDistance"),v=this.get("maxTooltipDistanceBy","xy");c.isNumber(x)&&this.series.each((t=>{if(!t.isHidden()){const e=t.get("tooltip");if(e){let i=e.get("pointTo");if(i){let e=Math.hypot(_.x-i.x,_.y-i.y);"x"==v?e=Math.abs(_.x-i.x):"y"==v&&(e=Math.abs(_.y-i.y)),e{const e=t.get("tooltip");if(e&&!e.get("forceHidden")){let i=!1,s=e.get("pointTo");if(s){if(x>=0){let s=e.get("pointTo");if(s&&d&&t!=l){let t=Math.hypot(d.x-s.x,d.y-s.y);"x"==v?t=Math.abs(d.x-s.x):"y"==v&&(t=Math.abs(d.y-s.y)),t>x&&(i=!0)}}else-1==x&&t!=l&&(i=!0);this.inPlot(this._tooltipToLocal(s))&&e.dataItem?i||(m+=s.y):i=!0,i||t.isHidden()||t.isHiding()?e.hide(0):(e.show(),r.push(e),y.push(t))}}})),this.setPrivate("tooltipSeries",y),this.get("arrangeTooltips")){let t=0,e=0;const a=this._root.tooltipContainer,l=r.length;if(m/l>i/2+o.y){r.sort(((t,e)=>u.HO(e.get("pointTo").y,t.get("pointTo").y)));let i=n.y;if(g.each(r,(s=>{let r=s.height();e++,t+=r;let l=s.get("centerY");l instanceof h.gG&&(r*=l.value),r+=s.get("marginBottom",0),s.set("bounds",{left:o.x,top:o.y,right:n.x,bottom:i}),s.setPrivate("customData",{left:o.x,top:o.y,right:n.x,bottom:i}),i=Math.min(i-r,s._fy-r),s.parent==a&&a.children.moveValue(s,0)})),i<0){r.reverse();let t=i;g.each(r,(s=>{e++;let a=s.get("bounds");if(a){let e=a.top-i,o=a.bottom-i;eu.HO(t.get("pointTo").y,e.get("pointTo").y)));let i=0;if(g.each(r,(r=>{e++;let l=r.height();t+=l;let d=r.get("centerY");d instanceof h.gG&&(l*=d.value),l+=r.get("marginBottom",0),r.set("bounds",{left:o.x,top:i,right:n.x,bottom:Math.max(o.y+s,i+l)}),r.parent==a&&a.children.moveValue(r,0),i=Math.max(i+l,r._fy+l)})),i>s){r.reverse();let t=s;g.each(r,(a=>{e++;let o=a.get("bounds");if(o){let e=o.top-(s-i),n=o.bottom-(s-i);n>t&&(n=t,e=n-a.height()),a.set("bounds",{left:o.left,top:e,right:o.right,bottom:n}),t=n-a.height()-a.get("marginBottom",0)}}))}}0==t&&e>0&&this._disposers.push(this.root.events.once("frameended",(()=>{this.arrangeTooltips()})))}}_tooltipToLocal(t){return this.plotContainer.toLocal(t)}zoomOut(){this.xAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))}))}_dispose(){super._dispose();const t=this.get("cursor");t&&t.dispose()}}x.className="XYChart",x.classNames=n.j.classNames.concat([x.className])},55:function(t,e,i){i.d(e,{l:function(){return u}});var s=i(3409),a=i(6245),o=i(1112),n=i(2754),r=i(3783),h=i(1926),l=i(5040),d=i(751),g=i(256),c=i(5071);class u extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.interfaceColors,e=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:n.U.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:o.Il.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:n.U.new(this._root,{saturation:0})});{const e=i("Graphics",["scrollbar","overlay"]);e.setAll({fillOpacity:.5}),(0,r.v)(e,"fill",t,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:a.AQ,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:a.AQ}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:a.AQ}),i("AxisLabel",["y"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const s=i("Grid",["cursor","x"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use left and right arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const s=i("Grid",["cursor","y"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use up and down arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const e=i("Graphics",["cursor","selection"]);e.setAll({fillOpacity:.15}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:a.CI,centerY:a.CI,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const e=i("AxisRenderer");e.setAll({crisp:!0,strokeOpacity:0}),(0,r.v)(e,"stroke",t,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:a.AQ}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:a.AQ});{const e=i("Rectangle",["axis","thumb","zoomgrip"]);e.setAll({fillOpacity:0}),(0,r.v)(e,"fill",t,"alternativeBackground"),e.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{const e=i("Grid");e.setAll({location:0,strokeOpacity:.15,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}{const e=i("Grid",["minor"]);e.setAll({location:0,strokeOpacity:.07,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{const e=i("Graphics",["axis","fill"]);e.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{const e=i("AxisTick");e.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),(0,r.v)(e,"stroke",t,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(t,e)=>{const i=t.get("axisFill");i&&(l.isNumber(e)&&e%2!=0?i.setPrivate("visible",!1):i.setPrivate("visible",!0))}});const s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],u={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_hour"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month"),year:e.translate("_date_year")},m={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_day"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month")+" "+e.translate("_date_year"),year:e.translate("_date_year")},p={millisecond:e.translate("_date_millisecond_full"),second:e.translate("_date_second_full"),minute:e.translate("_date_minute_full"),hour:e.translate("_date_hour_full"),day:e.translate("_date_day_full"),week:e.translate("_date_week_full"),month:e.translate("_date_month_full"),year:e.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m),tooltipDateFormats:p,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=t.get("endValue"),o=i.intervalDuration(),n=i.getPrivate("baseInterval"),r=i.getPrivate("gridInterval",n);let l=i.getPrivate("min",0);if(l=h.round(new Date(l),r.timeUnit,r.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),null!=s&&null!=a){const t=Math.round(Math.round((s-l)/o))/2;t==Math.round(t)?e.setPrivate("visible",!0):e.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.get("index");let s=!1;l.isNumber(i)&&i%2!=0||(s=!0),e.setPrivate("visible",s)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=i.getPrivate("step");l.isNumber(s)&&l.isNumber(a)&&(d.round(s/a/2,5)==Math.round(s/a/2)?e.setPrivate("visible",!1):e.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(70),height:(0,a.aQ)(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,e/2),t.lineTo(s,e/2)}}});{const e=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,e),t.lineTo(0,e),t.lineTo(0,0)}}});{const e=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(50),height:(0,a.aQ)(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:(0,a.aQ)(80),height:(0,a.aQ)(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const e=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const e=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const e=i("Graphics",["rangegrip","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(2,.5),t.lineTo(2,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),(0,r.v)(e,"stroke",t,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:a.CI}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:a.CI}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:a.AQ}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:a.AQ})}}},3355:function(t,e,i){i.d(e,{L:function(){return c}});var s=i(8777),a=i(6245),o=i(1479),n=i(8943),r=i(5040),h=i(7652),l=i(751),d=i(5071),g=i(256);class c extends s.W{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(n.r.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(n.r.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(o.T.new(this._root,{themeTags:["selection","cursor"],layer:30})),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:a.AQ,height:a.AQ,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout((()=>{this.setPrivate("visible",!0)}),500)),this._disposers.push(this.lineX.events.on("positionchanged",(()=>{this._handleXLine()}))),this._disposers.push(this.lineY.events.on("positionchanged",(()=>{this._handleYLine()}))),this._disposers.push(this.lineX.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineX.events.on("blur",(()=>this._handleLineBlur()))),this._disposers.push(this.lineY.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineY.events.on("blur",(()=>this._handleLineBlur()))),h.supports("keyboardevents")&&this._disposers.push(h.addEventListener(document,"keydown",(t=>{this._handleLineMove(h.getEventKey(t),t.ctrlKey)})))}_setUpTouch(){const t=this.chart;t&&(t.plotContainer._display.cancelTouch="none"!=this.get("behavior"))}_handleXLine(){let t=this.lineX.x(),e=!0;(t<0||t>this.width())&&(e=!1),this.lineX.setPrivate("visible",e)}_handleYLine(){let t=this.lineY.y(),e=!0;(t<0||t>this.height())&&(e=!1),this.lineY.setPrivate("visible",e)}_handleLineMove(t,e){let i="";const s=this.chart;let a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(e&&(o=5),a){let e,s=a.get("renderer").get("inversed",!1);"ArrowRight"==t||"ArrowDown"==t?e=1:"ArrowLeft"==t||"ArrowUp"==t?e=-1:"Tab"==t&&(e=0),null!=e&&(s&&(e*=-1),this.set(i,a.nextPosition(e*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const t=this.get("xAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipX=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateXLine(e)}))))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const t=this.get("yAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipY=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateYLine(e)}))))}}}_handleSyncWith(){const t=this.chart;if(t){const e=this.get("syncWith"),i=[];e&&d.each(e,(t=>{const e=t.chart;e&&i.push(e)})),t._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const t=this.get("positionX"),e=this.get("positionY");null==t&&null==e?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).x,3);this._toX!=e&&(this.lineX.animate({key:"x",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toX=e)}_updateYLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).y,3);this._toY!=e&&(this.lineY.animate({key:"y",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toY=e)}_drawLines(){this.lineX.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,this.height())})),this.lineY.set("draw",(t=>{t.moveTo(0,0),t.lineTo(this.width(),0)}))}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(t){this.chart=t,this._handleSyncWith();const e=t.plotContainer;this.events.on("boundschanged",(()=>{this._disposers.push(this.setTimeout((()=>{this.updateCursor()}),50))})),h.supports("touchevents")&&(this._disposers.push(e.events.on("click",(t=>{h.isTouchEvent(t.originalEvent)&&this._handleMove(t)}))),this._setUpTouch()),this._disposers.push(e.events.on("pointerdown",(t=>{this._handleCursorDown(t)}))),this._disposers.push(e.events.on("globalpointerup",(t=>{this._handleCursorUp(t),t.native||this.isHidden()||this._handleMove(t)}))),this._disposers.push(e.events.on("globalpointermove",(t=>{(this.get("syncWith")||0!=g.keys(e._downPoints).length||t.native||!this.isHidden())&&(this._handleMove(t),Math.hypot(this._lastPoint2.x-t.point.x,this._lastPoint2.y-t.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=t.point))})));const i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(t){const e=this.chart;return!!e&&e.inPlot(t)}_handleCursorDown(t){if(2==t.originalEvent.button)return;const e=t.point;let i=this._display.toLocal(e);const s=this.chart;if(this.selection.set("draw",(()=>{})),s&&this._inPlot(i)){if(this._downPoint=i,"none"!=this.get("behavior")){this.selection.show();const e="selectstarted";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}let e=this._getPosition(i).x,s=this._getPosition(i).y;this.setPrivate("downPositionX",e),this.setPrivate("downPositionY",s)}}_handleCursorUp(t){if(this._downPoint){const e=this.get("behavior","none");if("none"!=e){"z"===e.charAt(0)&&this.selection.hide();const i=t.point;let s=this._display.toLocal(i);const a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let i=!1;if("zoomX"!==e&&"zoomXY"!==e&&"selectX"!==e&&"selectXY"!==e||Math.abs(s.x-a.x)>o&&(i=!0),"zoomY"!==e&&"zoomXY"!==e&&"selectY"!==e&&"selectXY"!==e||Math.abs(s.y-a.y)>o&&(i=!0),i){const e="selectended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}else{const e="selectcancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}}}}this._downPoint=void 0}_handleMove(t){if(this.getPrivate("visible")){const e=this.chart;if(e&&g.keys(e.plotContainer._downPoints).length>1)return void this.set("forceHidden",!0);this.set("forceHidden",!1);const i=t.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,t.originalEvent)}}_getPosition(t){return{x:t.x/this.width(),y:t.y/this.height()}}handleMove(t,e,i){t||(t=this._movePoint);const s=this.get("alwaysShow");if(!t)return void this.hide(0);this._movePoint=t;let a=this._display.toLocal(t),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=t,this.isHidden()&&(this.show(),"z"==this.get("behavior","").charAt(0)&&this.selection.set("draw",(()=>{})));let n=a.x,h=a.y,l=this._getPosition(a);this.setPrivate("point",a);let d=this.get("snapToSeries");this._downPoint&&(d=void 0);let g=this.get("positionX"),c=l.x;r.isNumber(g)&&(c=g);let u=this.get("positionY"),m=l.y;r.isNumber(u)&&(m=u),this.setPrivate("positionX",c),this.setPrivate("positionY",m);const p=this._getPoint(c,m);if(n=p.x,h=p.y,o.xAxes.each((t=>{t._handleCursorPosition(c,d),s&&t.handleCursorShow()})),o.yAxes.each((t=>{t._handleCursorPosition(m,d),s&&t.handleCursorShow()})),!e){o._handleCursorPosition();const e="cursormoved";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,point:t,originalEvent:i})}this._updateLines(n,h),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);const t="cursorhidden";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this._downPoint&&"none"!=this.get("behavior")&&this._updateSelection(a)}_getPoint(t,e){return{x:this.width()*t,y:this.height()*e}}_updateLines(t,e){this._tooltipX||this.lineX.set("x",t),this._tooltipY||this.lineY.set("y",e),this._drawLines()}_updateSelection(t){const e=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();t.x<0&&(t.x=0),t.x>s&&(t.x=s),t.y<0&&(t.y=0),t.y>a&&(t.y=a),e.set("draw",(e=>{const o=this._downPoint;o&&("zoomXY"===i||"selectXY"===i?(e.moveTo(o.x,o.y),e.lineTo(o.x,t.y),e.lineTo(t.x,t.y),e.lineTo(t.x,o.y),e.lineTo(o.x,o.y)):"zoomX"===i||"selectX"===i?(e.moveTo(o.x,0),e.lineTo(o.x,a),e.lineTo(t.x,a),e.lineTo(t.x,0),e.lineTo(o.x,0)):"zoomY"!==i&&"selectY"!==i||(e.moveTo(0,o.y),e.lineTo(s,o.y),e.lineTo(s,t.y),e.lineTo(0,t.y),e.lineTo(0,o.y)))}))}_onHide(){if(this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorHide()})),t.yAxes.each((t=>{t.handleCursorHide()})),t.series.each((t=>{t.handleCursorHide()})))}super._onHide()}_onShow(){if(!this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorShow()})),t.yAxes.each((t=>{t.handleCursorShow()})))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}c.className="XYCursor",c.classNames=s.W.classNames.concat([c.className])},6515:function(t,e,i){i.d(e,{R:function(){return g}});var s=i(9361),a=i(8777),o=i(6245),n=i(7144),r=i(7142),h=i(5071),l=i(5040),d=i(7652);class g extends s.w{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(a.W.new(this._root,{})),this.gridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.topGridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.bulletsContainer=this.children.push(a.W.new(this._root,{isMeasured:!1,width:o.AQ,height:o.AQ,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new n.aV,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(a.W.new(this._root,{themeTags:["axis","header"],position:"absolute",background:r.A.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)h.each(t.oldValues,(t=>{t.dispose()}));else if("push"===t.type)this._processAxisRange(t.newValue,["range"]);else if("setIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("insertIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("removeIndex"===t.type)this.disposeDataItem(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value,["range"])}})));const t=this.get("renderer");t&&(t.axis=this,t.processAxis()),this.children.push(t),this._createGhostLabel()}_createGhostLabel(){const t=this.get("renderer").makeLabel(new s.z(this,void 0,{}),[]);t.adapters.disable("text"),t.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),t.events.disable(),this.ghostLabel=t}_updateFinals(t,e){}zoom(t,e,i,s){if(this.get("zoomable",!0))if(this._updateFinals(t,e),this.get("start")!==t||this.get("end")!=e){let a=this._sAnimation,o=this._eAnimation;t>e&&([t,e]=[e,t]);let n=this.get("maxDeviation",.5)*Math.min(1,e-t);t<-n&&(t=-n),e>1+n&&(e=1+n);let r=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),h=r;l.isNumber(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),1===e&&0!==t&&(s=tthis.get("end",1)?"end":"start");let d=this.get("minZoomCount",0);const g=this.dataItems;g&&g.lengthe&&([t,e]=[e,t]),"start"===s?(c>0&&1/(e-t)r&&(e=t+1/r),e>1&&e-t<1/r&&(t=e-1/r)):(c>0&&1/(e-t)r&&(t=e-1/r),t<0&&e-t<1/r&&(e=t+1/r)),1/(e-t)>r&&(e=t+1/r),1/(e-t)>r&&(t=e-1/r),null!=c&&null!=d&&t==this.get("start")&&e==this.get("end")){const t=this.chart;t&&t._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==t||this.get("start")==t)&&(o&&o.playing&&o.to==e||this.get("end")==e))return;if(i>0){let s,a,o=this.get("interpolationEasing");if(this.get("start")!=t&&(s=this.animate({key:"start",to:t,duration:i,easing:o})),this.get("end")!=e&&(a=this.animate({key:"end",to:e,duration:i,easing:o})),this._sAnimation=s,this._eAnimation=a,s)return s;if(a)return a}else this.set("start",t),this.set("end",e),this.root.events.once("frameended",(()=>{this.markDirtyKey("start")}))}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(t,e){t.setRaw("isRange",!0),this._createAssets(t,e),this._rangesDirty=!0,this._prepareDataItem(t);const i=t.get("above"),s=this.topGridContainer,a=t.get("grid");i&&a&&s.children.moveValue(a);const o=t.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(t,e){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each((t=>{this._prepareDataItem(t)})),h.each(this._seriesAxisRanges,(t=>{this._prepareDataItem(t)}))}_prepareChildren(){super._prepareChildren();const t=this.ghostLabel;if(t&&(this.get("fixAxisSize")?t.set("visible",!0):t.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){const t=this.chart;t&&t._updateCursor();let e=this.get("start",0),i=this.get("end",1),s=this.get("maxDeviation",.5)*Math.min(1,i-e);if(e<-s){let t=e+s;e=-s,this.setRaw("start",e),this.isDirty("end")&&this.setRaw("end",i-t)}if(i>1+s){let t=i-1-s;i=1+s,this.setRaw("end",i),this.isDirty("start")&&this.setRaw("start",e-t)}}const e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){const t=this.get("tooltip");if(t){const i=e.get("themeTags");t.addTag("axis"),t.addTag(this.className.toLowerCase()),t._applyThemes(),i&&(t.set("themeTags",d.mergeTags(t.get("themeTags"),i)),t.label._applyThemes())}}}_updateTooltipBounds(){const t=this.get("tooltip");t&&this.get("renderer").updateTooltipBounds(t)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(t){this.chart=t,this.get("renderer").chart=t,t.gridContainer.children.push(this.gridContainer),t.topGridContainer.children.push(this.topGridContainer),t.axisHeadersContainer.children.push(this.axisHeader),this.on("start",(()=>{t._handleAxisSelection(this)})),this.on("end",(()=>{t._handleAxisSelection(this)})),t.plotContainer.onPrivate("width",(()=>{this.markDirtySize()})),t.plotContainer.onPrivate("height",(()=>{this.markDirtySize()})),t.processAxis(this)}hideDataItem(t){return this._toggleFHDataItem(t,!0),super.hideDataItem(t)}showDataItem(t){return this._toggleFHDataItem(t,!1),super.showDataItem(t)}_toggleFHDataItem(t,e){const i="forceHidden",s=t.get("label");s&&s.set(i,e);const a=t.get("grid");a&&a.set(i,e);const o=t.get("tick");o&&o.set(i,e);const n=t.get("axisFill");n&&n.set(i,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.set(i,e)}}_toggleDataItem(t,e){const i=t.get("label"),s="visible";i&&i.setPrivate(s,e);const a=t.get("grid");a&&a.setPrivate(s,e);const o=t.get("tick");o&&o.setPrivate(s,e);const n=t.get("axisFill");n&&n.setPrivate(s,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.setPrivate(s,e)}}_createAssets(t,e,i){var s,a,o;const n=this.get("renderer");let r="minor";const h=t.get("label");if(h){let a=h.get("themeTags"),o=!1;i?-1==(null==a?void 0:a.indexOf(r))&&(o=!0):-1!=(null==a?void 0:a.indexOf(r))&&(o=!0),o&&(null===(s=h.parent)||void 0===s||s.children.removeValue(h),n.makeLabel(t,e),h.dispose(),n.labels.removeValue(h))}else n.makeLabel(t,e);const l=t.get("grid");if(l){let s=l.get("themeTags"),o=!1;i?-1==(null==s?void 0:s.indexOf(r))&&(o=!0):-1!=(null==s?void 0:s.indexOf(r))&&(o=!0),o&&(null===(a=l.parent)||void 0===a||a.children.removeValue(l),n.makeGrid(t,e),l.dispose(),n.grid.removeValue(l))}else n.makeGrid(t,e);const d=t.get("tick");if(d){let s=!1,a=d.get("themeTags");i?-1==(null==a?void 0:a.indexOf(r))&&(s=!0):-1!=(null==a?void 0:a.indexOf(r))&&(s=!0),s&&(null===(o=d.parent)||void 0===o||o.children.removeValue(d),n.makeTick(t,e),d.dispose(),n.ticks.removeValue(d))}else n.makeTick(t,e);i||t.get("axisFill")?i&&!t.get("axisFill")&&this.get("minorAxisFillsEnabled")&&n.makeAxisFill(t,e):n.makeAxisFill(t,e),this._processBullet(t)}_processBullet(t){let e=t.get("bullet"),i=this.get("bullet");if(e||!i||t.get("isRange")||(e=i(this._root,this,t)),e){e.axis=this;const i=e.get("sprite");i&&(i._setDataItem(t),t.setRaw("bullet",e),i.parent||this.bulletsContainer.children.push(i))}}_afterChanged(){super._afterChanged();const t=this.chart;t&&(t._updateChartLayout(),t.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(t){super.disposeDataItem(t);const e=this.get("renderer"),i=t.get("label");i&&(e.labels.removeValue(i),i.dispose());const s=t.get("tick");s&&(e.ticks.removeValue(s),s.dispose());const a=t.get("grid");a&&(e.grid.removeValue(a),a.dispose());const o=t.get("axisFill");o&&(e.axisFills.removeValue(o),o.dispose());const n=t.get("bullet");n&&n.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const t=this.ghostLabel;if(t){if(!t.isHidden()){const e=t.localBounds(),i=Math.ceil(e.right-e.left);let s=t.get("text");h.each(this.dataItems,(t=>{const e=t.get("label");if(e&&!e.isHidden()){const t=e.localBounds();Math.ceil(t.right-t.left)>i&&(s=e.text._getText())}})),t.set("text",s)}let e=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(t,e+.5*(i-e))}}_handleCursorPosition(t,e){t=this.get("renderer").toAxisPosition(t),this._cursorPosition=t,this._snapToSeries=e,this.updateTooltip()}updateTooltip(){const t=this._snapToSeries;let e=this._cursorPosition;const i=this.get("tooltip"),s=this.get("renderer");l.isNumber(e)&&(h.each(this.series,(i=>{if(i.get("baseAxis")===this){const s=this.getSeriesItem(i,e,this.get("tooltipLocation"));t&&-1!=t.indexOf(i)?(i.updateLegendMarker(s),i.updateLegendValue(s),i._settings.tooltipDataItem=s):(i.showDataItemTooltip(s),i.setRaw("tooltipDataItem",s))}})),this.get("snapTooltip")&&(e=this.roundAxisPosition(e,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",e),i&&(s.updateTooltipBounds(i),l.isNaN(e)?i.hide(0):(this._updateTooltipText(i,e),s.positionTooltip(i,e),ethis.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}roundAxisPosition(t,e){return t}_handleSeriesRemoved(){}handleCursorShow(){let t=this.get("tooltip");t&&t.show()}handleCursorHide(){let t=this.get("tooltip");t&&t.hide()}processSeriesDataItem(t,e){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(t){const e=this.get("renderer");return e.toAxisPosition(t/e.axisLength())}toAxisPosition(t){return this.get("renderer").toAxisPosition(t)}toGlobalPosition(t){return this.get("renderer").toGlobalPosition(t)}fixPosition(t){return this.get("renderer").fixPosition(t)}shouldGap(t,e,i,s){return!1}createAxisRange(t){return this.axisRanges.push(t)}_groupSeriesData(t){}getCellWidthPosition(){return.05}}g.className="Axis",g.classNames=s.w.classNames.concat([g.className])},2586:function(t,e,i){i.d(e,{_:function(){return o}});var s=i(6331),a=i(256);class o extends s.JH{_beforeChanged(){super._beforeChanged();const t=this.get("sprite");if(this.isDirty("sprite")&&t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t)),this.isDirty("location")){const e=t.dataItem;this.axis&&t&&e&&this.axis._prepareDataItem(e)}}_dispose(){const t=this.axis;t&&a.each(t._bullets,((e,i)=>{i.uid==this.uid&&delete t._bullets[e]})),super._dispose()}}o.className="AxisBullet",o.classNames=s.JH.classNames.concat([o.className])},6293:function(t,e,i){i.d(e,{k:function(){return a}});var s=i(962);class a extends s._{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabel",a.classNames=s._.classNames.concat([a.className])},9084:function(t,e,i){i.d(e,{p:function(){return a}});var s=i(815);class a extends s.x{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabelRadial",a.classNames=s.x.classNames.concat([a.className])},6275:function(t,e,i){i.d(e,{Y:function(){return d}});var s=i(1479),a=i(5769),o=i(7144),n=i(4714),r=i(8943),h=i(6293),l=i(7652);class d extends s.T{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new o.o(a.YS.new({}),(()=>n.T._new(this._root,{themeTags:l.mergeTags(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template])))),this.grid=this.addDisposer(new o.o(a.YS.new({}),(()=>r.r._new(this._root,{themeTags:l.mergeTags(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template])))),this.axisFills=this.addDisposer(new o.o(a.YS.new({}),(()=>s.T._new(this._root,{themeTags:l.mergeTags(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template])))),this.labels=this.addDisposer(new o.o(a.YS.new({}),(()=>h.k._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template]))))}makeTick(t,e){const i=this.ticks.make();return i._setDataItem(t),t.setRaw("tick",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(t,e){const i=this.grid.make();return i._setDataItem(t),t.setRaw("grid",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(t,e){const i=this.axisFills.make();return i._setDataItem(t),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),t.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(t,e){const i=this.labels.make();return i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),t.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(t),t.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const t=this.thumb;t&&(this._disposers.push(t.events.on("pointerdown",(t=>{this._handleThumbDown(t)}))),this._disposers.push(t.events.on("globalpointerup",(t=>{this._handleThumbUp(t)}))),this._disposers.push(t.events.on("globalpointermove",(t=>{this._handleThumbMove(t)}))))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",(()=>{this.axis.markDirtySize()}))}_changed(){if(super._changed(),this.isDirty("pan")){const t=this.thumb;if(t){const e=this.axis.labelsContainer,i=this.get("pan");"zoom"==i?e.children.push(t):"none"==i&&e.children.removeValue(t)}}}_handleThumbDown(t){this._thumbDownPoint=this.toLocal(t.point);const e=this.axis;this._downStart=e.get("start"),this._downEnd=e.get("end")}_handleThumbUp(t){this._thumbDownPoint=void 0}_handleThumbMove(t){const e=this._thumbDownPoint;if(e){const i=this.toLocal(t.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,e)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(t,e){return 0}positionToCoordinate(t){return this._inversed?(this._end-t)*this._axisLength:(t-this._start)*this._axisLength}updateTooltipBounds(t){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t*=i-e,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,t/(i-e)}fixPosition(t){return this.get("inversed")?1-t:t}_updateLC(){}toggleVisibility(t,e,i,s){let a=this.axis;const o=a.get("start",0),n=a.get("end",1);eo+(n-o)*(s+1e-4)?t.setPrivate("visible",!1):t.setPrivate("visible",!0)}_positionTooltip(t,e){const i=this.chart;i&&(t.set("pointTo",this._display.toGlobal(e)),i.inPlot(e)||t.hide())}processAxis(){}}d.className="AxisRenderer",d.classNames=s.T.classNames.concat([d.className])},6284:function(t,e,i){i.d(e,{n:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{width:a.AQ,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const t=this.grid.template;t.set("height",a.AQ),t.set("width",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)}))}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("x",-1e3));const s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){const i=this.chart,o=e.children;if(this.get(a)?e.addTag(a):e.removeTag(a),i){if(this.get(s)){const t=i.topAxesContainer.children;-1==t.indexOf(e)&&t.insertIndex(0,e),e.addTag(s),o.moveValue(this)}else{const t=i.bottomAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(s),o.moveValue(this,0)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(t,e){return(e.x-t.x)/this.width()}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,(t=t/(i-e)*this._lc)+this._ls}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerWidth();this._lc=this.axisLength()/i,this._ls=(t.x()-e.get("paddingLeft",0))/i}}_updatePositions(){const t=this.axis,e=t.x()-r.relativeToValue(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0);t.gridContainer.set("x",e),t.topGridContainer.set("x",e),t.bulletsContainer.set("y",this.y());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginLeft",0),o=t.x()-a;const n=t.parent;n&&(o-=n.get("paddingLeft",0)),s.children.length>0?(a=t.axisHeader.width(),t.set("marginLeft",a+1)):s.set("width",a),s.setAll({x:o,y:-1,height:e.height()+2})}}processAxis(){super.processAxis();const t=this.axis;null==t.get("width")&&t.set("width",a.AQ);const e=this._root.verticalLayout;t.set("layout",e),t.labelsContainer.set("width",a.AQ),t.axisHeader.setAll({layout:e})}axisLength(){return this.axis.width()}positionToPoint(t){return{x:this.positionToCoordinate(t),y:0}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e));let r=t.get("length",0);const h=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("y",a.AQ),h||(r*=-1)):(t.set("y",0),h&&(r*=-1)),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,r)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateLabel(t,e,i,s){if(t){let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(e)||(e=0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?r?(t.set("position","absolute"),t.set("y",0)):(t.set("position","relative"),t.set("y",a.AQ)):r?(t.set("y",0),t.set("position","absolute")):(t.set("y",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=-1;if(this.get("opposite")&&(h=1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("y",t.y()+t.height()*h)}else s.set("y",0);this.axis._bullets[o]=t,s.set("x",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.height(),a=this.width();ia||i<0||(t.moveTo(e,0),t.lineTo(i,0),t.lineTo(i,s),t.lineTo(e,s),t.lineTo(e,0))}))}positionTooltip(t,e){this._positionTooltip(t,{x:this.positionToCoordinate(e),y:0})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,n=this.axisLength(),h=i,l="up";this.get("opposite")?e?(l="up",o=s.y,h=i):(l="down",o=s.y-i,h=i):e?(l="down",o=s.y-i,h=i):(l="up",o=s.y,h=i);const d={left:a,right:a+n,top:o,bottom:o+h},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}}h.className="AxisRendererX",h.classNames=s.Y.classNames.concat([h.className])},7909:function(t,e,i){i.d(e,{j:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{height:a.AQ,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const t=this.grid.template;t.set("width",a.AQ),t.set("height",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())}))}_getPan(t,e){return(t.y-e.y)/this.height()}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("y",-1e3));const s=this.thumb,a="opposite",o="inside",n=this.chart;if(this.isDirty(a)||this.isDirty(o)){const i=e.children;if(this.get(o)?e.addTag(o):e.removeTag(o),n){if(this.get(a)){const t=n.rightAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e,0),e.addTag(a),i.moveValue(this,0)}else{const t=n.leftAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(a),i.moveValue(this)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}const r=e.labelsContainer.width();n&&(this.get(a)?s.set("centerX",0):s.set("centerX",r)),s.setPrivate("width",r)}processAxis(){super.processAxis();const t=this.axis;null==t.get("height")&&t.set("height",a.AQ);const e=this._root.horizontalLayout;t.set("layout",e),t.labelsContainer.set("height",a.AQ),t.axisHeader.set("layout",e)}_updatePositions(){const t=this.axis,e=t.y()-r.relativeToValue(t.get("centerY",0),t.height());t.gridContainer.set("y",e),t.topGridContainer.set("y",e),t.bulletsContainer.set("x",this.x());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginTop",0);s.children.length>0?(a=t.axisHeader.height(),t.set("marginTop",a+1)):s.set("height",a),s.setAll({y:t.y()-a,x:-1,width:e.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(t){return{x:0,y:this.positionToCoordinate(t)}}updateLabel(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a);const o=this.get("opposite"),r=t.get("inside",this.get("inside",!1));o?(t.set("x",0),r?t.set("position","absolute"):t.set("position","relative")):r?(t.set("x",0),t.set("position","absolute")):(t.set("x",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e));let o=t.get("length",0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("x",0),r&&(o*=-1)):r||(o*=-1),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(o,0)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=1;if(this.get("opposite")&&(h=-1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("x",t.x()+t.width()*h)}else s.set("x",0);this.axis._bullets[o]=t,s.set("y",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.width(),a=this.height();ia||i<0||(t.moveTo(0,e),t.lineTo(s,e),t.lineTo(s,i),t.lineTo(0,i),t.lineTo(0,e))}))}positionToCoordinate(t){return this._inversed?(t-this._start)*this._axisLength:(this._end-t)*this._axisLength}positionTooltip(t,e){this._positionTooltip(t,{x:0,y:this.positionToCoordinate(e)})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,n=this.axisLength(),h=i,l="right";this.get("opposite")?e?(l="right",o=s.x-i,h=i):(l="left",o=s.x,h=i):e?(l="left",o=s.x,h=i):(l="right",o=s.x-i,h=i);const d={left:o,right:o+h,top:a,bottom:a+n},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerHeight();this._lc=this.axisLength()/i,this._ls=t.y()/i}}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?e+t:i-t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t-=e:t=i-t,(t=t/(i-e)*this._lc)+this._ls}fixPosition(t){return this.get("inversed")?t:1-t}}h.className="AxisRendererY",h.classNames=s.Y.classNames.concat([h.className])},4714:function(t,e,i){i.d(e,{T:function(){return a}});var s=i(2438);class a extends s.d{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisTick",a.classNames=s.d.classNames.concat([a.className])},7497:function(t,e,i){i.d(e,{$:function(){return d}});var s=i(6515),a=i(2132),o=i(7261),n=i(5071),r=i(5040),h=i(751),l=i(7652);class d extends s.R{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();const t=this.dataItems.length;t>0&&this.setPrivateRaw("maxZoomFactor",t),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),t)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",t),1))}_prepareChildren(){super._prepareChildren();const t=this.dataItems.length;let e=0;this._valuesDirty&&(this._itemMap={},n.each(this.dataItems,(t=>{t.setRaw("index",e),this._itemMap[t.get("category")]=t,e++})),this.setPrivateRaw("maxZoomFactor",t));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){const t=this.dataItems.length;if(t>1){let e=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0);const n=this._sAnimation,r=this._eAnimation;let h=this.get("start",0),l=!1;n&&!n.stopped&&(h=Number(n.to),l=!0);let d=this.get("end",1);if(r&&!r.stopped&&(d=Number(r.to),l=!0),l){const t=this._getIndices(h,d);a=t.startIndex,o=t.endIndex}for(let t=a;t=i));s++);if(e=0&&(e+=this.dataItems[t].get("finalCellSize",1),a=t,!(e>=i));t--);this.zoomToIndexes(a,o)}else if(s>=e){let t=s;for(let i=o-1;i>=a;i--)if(t-=this.dataItems[i].get("finalCellSize",1),t<=e){o=i+1;break}this.zoomToIndexes(a,o)}}}_handleRangeChange(){n.each(this.series,(t=>{let e=this.dataItems[this.startIndex()].get("category"),i=this.dataItems[this.endIndex()-1].get("category"),s=t.get("baseAxis"),a=t.get("xAxis"),r=t.get("yAxis");if(a instanceof d&&r instanceof d)t._markDirtyAxes();else if(s===this){let h,l,g=r;if(a===s?(t.get("categoryXField")&&(h="categoryX"),t.get("openCategoryXField")&&(l="openCategoryX")):r===s&&(t.get("categoryYField")&&(h="categoryY"),t.get("openCategoryYField")&&(l="openCategoryY"),g=a),g instanceof o.m&&(h||l)){let c,u;function m(t,e,i,s,a,o){let n,r=e.categoryToIndex(a);for(;!n&&r>=0&&r=0;e--){let o=t.dataItems[e];if(i&&o.get(i)===a){n=o;break}if(s&&o.get(s)===a){n=o;break}}else for(let e=0,o=t.dataItems.length;e{null!=y.get(t)&&(x=!0)})),n.each(t.__valueYShowFields,(t=>{null!=y.get(t)&&(x=!0)})),x)break}t.setPrivate("outOfSelection",!x)}t._markDirtyAxes()}}))}_prepareAxisItems(){var t;const e=this.get("renderer"),i=this.dataItems.length;let s=this.startIndex();s>0&&s--;let a=this.endIndex();a=s&&(t=s-1,e=1),r.isNumber(e)||(e=.5),!r.isNumber(t))return 0;let o=this.get("startLocation",0),h=this.get("endLocation",1);if(this.get("cellSizeField")){let s=i?"finalCellSize":"cellSize";const r=this.dataItems;let l=0;n.each(this.dataItems,(t=>{l+=t.get(s,1)})),l-=o*r[0].get(s,1),l-=(1-h)*r[r.length-1].get(s,1);let d=0;for(let e=0;e{const e=t.get("cellSize",1);s.push(e),i+=e}));let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=t*i+a,h=0;for(let t=0;t0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(e),a=t.dataItems[s],o=this.dataItems[s],n=o.get("category");if(a&&o&&a.get(i)===n)return a;for(let e=0,s=t.dataItems.length;e{r+=t.get(o,1)})),r-=this.get("startLocation",0)*h[0].get(o,1),r-=(1-this.get("endLocation",1))*h[h.length-1].get(o,1);let l=0;for(let e=0;eMath.round(t*r)){s=e;break}for(let t=s+1;t=Math.round(e*r)){a=t+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(t,e,i){let s=this.dataItems.length;this.get("cellSizeField")?(t=Math.min(Math.max(t,0),s),e=Math.max(Math.min(e,s),1),this.setPrivateRaw("startIndex",t),this.setPrivateRaw("endIndex",e),this.zoom(this.indexToPosition(t,0,!0),this.indexToPosition(e,0,!0),i)):this.zoom(t/s,e/s,i)}zoomToCategories(t,e,i){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(t){null==t&&(t=1),"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);const e=this.getPrivate("tooltipPosition",0),i=h.fitToRange(this.axisPositionToIndex(e)+t,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}}d.className="CategoryAxis",d.classNames=s.R.classNames.concat([d.className])},5638:function(t,e,i){i.d(e,{S:function(){return c}});var s=i(9361),a=i(7261),o=i(5040),n=i(751),r=i(3540),h=i(5071),l=i(256),d=i(7652),g=i(1926);class c extends a.m{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=d.mergeTags(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",(()=>{this._setBaseInterval(this.get("baseInterval"))}))}_setBaseInterval(t){this.setPrivateRaw("baseInterval",t),this._baseDuration=g.getIntervalDuration(t)}_fixZoomFactor(){const t=this.get("maxZoomFactor");null!=t&&t!=1/0?this.setPrivateRaw("maxZoomFactor",t):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){this._fixZoomFactor();const t=this.getPrivate("groupInterval");if(t?this._setBaseInterval(t):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let t=this.get("groupInterval");t&&(this.setRaw("groupIntervals",[t]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))h.each(this.series,(t=>{this._groupSeriesData(t)})),this._handleRangeChange();else{let t=this.get("baseInterval"),e=t.timeUnit+t.count;h.each(this.series,(t=>{t.setDataSet(e),t.resetGrouping()})),this._setBaseInterval(t),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(t){if(this.get("groupData")&&!t.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let e=[],i=this.baseMainDuration(),a=this.get("groupIntervals");h.each(a,(t=>{g.getIntervalDuration(t)>i&&e.push(t)})),t._dataSets={};const n=this.getPrivate("name")+this.get("renderer").getPrivate("letter");let r;const d=t.get("baseAxis");t.get("xAxis")===d?r=t._valueYFields:t.get("yAxis")===d&&(r=t._valueXFields);let c=t._mainDataItems,u=this.get("baseInterval"),m=u.timeUnit+u.count;t._dataSets[m]=c;const p=t.get("groupDataCallback");let _=t.get("groupDataWithOriginals",!1);p&&(_=!0),h.each(e,(e=>{let i,a=-1/0,d=e.timeUnit+e.count;t._dataSets[d]=[];let u={},m={},x={},v={};h.each(r,(e=>{u[e]=0,m[e]=0,x[e]=t.get(e+"Grouped"),v[e]=e+"Working"}));let y,f,b=g.getDuration(e.timeUnit);c[0]&&(y=c[0].get(n)),h.each(c,(c=>{let D,P=c.get(n),w=g.roun(P,e.timeUnit,e.count,this._root,y);a{let e=c.get(t);o.isNumber(e)?(i.setRaw(t,e),i.setRaw(v[t],e),m[t]=1,u[t]=e):(u[t]=0,m[t]=0)})),_&&i.set("originals",[c]),p&&f&&p(f,e),f=i):(h.each(r,(t=>{let e=x[t],s=c.get(t);if(null!=s){let a=i.get(t);switch(e){case"close":i.setRaw(t,s);break;case"sum":i.setRaw(t,a+s);break;case"open":break;case"low":sa&&i.setRaw(t,s);break;case"average":m[t]++,u[t]+=s;let e=u[t]/m[t];i.setRaw(t,e);break;case"extreme":Math.abs(s)>Math.abs(a)&&i.setRaw(t,s)}i.setRaw(v[t],i.get(t));let o=l.copy(c.dataContext);o[n]=w,i.dataContext=o}})),_&&i.get("originals").push(c)),a=w})),p&&f&&p(f,e)})),t._dataSetId&&t.setDataSet(t._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",(()=>{this.markDirtySize()}))}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(t){let e=this.get("baseInterval"),i=g.chooseInterval(0,t,this.get("groupCount",1/0),this.get("groupIntervals"));return g.getIntervalDuration(i){e.get("baseAxis")===this&&e.setDataSet(t)})),this.markDirtyExtremes(),this._root.events.once("frameended",(()=>{this._root.events.once("frameended",(()=>{const t="groupintervalchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}))}))}}h.each(this.series,(i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),a=h.getFirstSortedIndex(i.dataItems,(e=>r.qu(e.get(s),t))).index;a>0&&(a-=1),e+=this._baseDuration*(1-this.get("endLocation",1));let o=h.getSortedIndex(i.dataItems,(t=>r.qu(t.get(s),e))).index,n=o;n>1&&n--;const l=i.dataItems[a],d=i.dataItems[n];let g,c;l&&(c=l.get(s)),d&&(g=d.get(s));let u=!1;null!=g&&null!=c&&(ge)&&(u=!0),i.setPrivate("outOfSelection",u),i.setPrivate("startIndex",a);let m=i._adjustStartIndex(a);i.getPrivate("adjustedStartIndex")!==m&&(i.setPrivate("adjustedStartIndex",m),this.root.events.once("frameended",(()=>{i._markDirtyPrivateKey("adjustedStartIndex")}))),i.setPrivate("endIndex",o)}}))}}_adjustMinMax(t,e,i,s){return{min:t,max:e,step:(e-t)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(t,e){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=t,this._intervalMax[s]=e}_getM(t){return"day"==t||"month"==t||"year"==t?1.05:1.01}_getMinorInterval(t){var e;let i,s=t.count,a=t.timeUnit;return s>1&&(10==s||15==s?s=5:12==s?s=2:6==s?s=1:30==s?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),"week"==a&&(i="week"!=(null===(e=this.getPrivate("baseInterval"))||void 0===e?void 0:e.timeUnit)?{timeUnit:"day",count:1}:{timeUnit:"week",count:1}),"year"==a&&1==s&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<1264896e5&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){const e=this._root,i=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),n=this.get("renderer"),r=this.getPrivate("baseInterval");let l=i,d=0;const c=this.get("gridIntervals");let u=g.chooseInterval(0,a-i,n.gridCount(),c);g.getIntervalDuration(u){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_updateFinals(t,e){this.setPrivateRaw("selectionMinFinal",this.positionToValue(t)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(e))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(t,e){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return g.getIntervalDuration(this.get("baseInterval"))}processSeriesDataItem(t,e){const i=this.getPrivate("baseInterval");t.open||(t.open={}),t.close||(t.close={}),h.each(e,(e=>{let s=t.get(e);if(o.isNumber(s)){let a=t.open[e],o=t.close[e];if(s>=a&&s<=o);else{const n=i.timeUnit,r=i.count;a=g.roun(s,n,r,this._root),o=a+g.getDuration(n,r*this._getM(n)),o=g.roun(o,n,1,this._root),t.open[e]=a,t.close[e]=o}this._updateDates(a,t.component)}}))}_handleSizeDirty(){}getDataItemPositionX(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}roundAxisPosition(t,e){let i=this.positionToValue(t);i-=(e-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!o.isNaN(i)){const t=this._root.locale.firstDayOfWeek,a=s.timeUnit,o=this._root.utc,n=this._root.timezone,r=s.count;i=g.roun(i,a,r,this._root,this.getPrivate("min",0));let h=g.getDateIntervalDuration(s,new Date(i),t,o,n);return n&&(i=g.roun(i+.05*this._baseDuration,a,r,this._root,this.getPrivate("min",0)),h=g.getDateIntervalDuration(s,new Date(i+h*e),t,o,n)),this.valueToPosition(i+h*e)}return NaN}getTooltipText(t,e){if(null!=this.getPrivate("min")){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(t);if(o.isNumber(s)){let t=new Date(s),a=this.getPrivate("baseInterval"),o=g.getDateIntervalDuration(a,t,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return!1!==e&&(t=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*o)),this._root.dateFormatter.format(t,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(t,e,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);null==i&&(i=.5),o-=(i-.5)*this._baseDuration;const n=h.getSortedIndex(t.dataItems,(t=>{let e=0;return t.open&&(e=t.open[a]),r.qu(e,o)}));if(s||t.get("snapTooltip")){let e=t.dataItems[n.index-1],i=t.dataItems[n.index];if(e&&i&&e.open&&i.close){let t=e.open[a],s=i.close[a];if(Math.abs(o-t)>Math.abs(o-s))return i}if(e)return e;if(i)return i}else{const e=t.dataItems[n.index-1];if(e&&e.open&&e.close){let t=e.open[a],i=e.close[a];if(o>=t&&o<=i)return e}}}shouldGap(t,e,i,s){const a=t.get(s);return e.get(s)-a>this._baseDuration*i}zoomToDates(t,e,i){this.zoomToValues(t.getTime(),e.getTime(),i)}zoomToValues(t,e,i){const s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(null!=this.getPrivate("min")&&null!=this.getPrivate("max"))if(this.get("groupData")){const s=this.getGroupInterval(e-t),a=this.get("baseInterval");let o=this.getIntervalMin(a),n=this.getIntervalMax(a)-1;n=g.roun(n,s.timeUnit,s.count,this.root),n+=this._getM(s.timeUnit)*g.getIntervalDuration(s),n=g.roun(n,s.timeUnit,s.count,this.root);let r=g.roun(o,s.timeUnit,s.count,this.root),h=g.roun(n,s.timeUnit,s.count,this.root),l=(t-r)/(h-r),d=(e-r)/(h-r);this.zoom(l,d,i)}else this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}positionToDate(t){return new Date(this.positionToValue(t))}dateToPosition(t){return this.valueToPosition(t.getTime())}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return o.isNumber(t)&&o.isNumber(e)?this._intervalDuration/(t-e):.05}nextPosition(t){null==t&&(t=1);let e=this.get("tooltipLocation",.5)*this._baseDuration;"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0));const s=this.getPrivate("baseInterval");let a=this._nextTime(i,t,s),o=this.getPrivate("selectionMin",0),r=this.getPrivate("selectionMax",0),h=g.roun(o,s.timeUnit,s.count,this._root),l=g.roun(r,s.timeUnit,s.count,this._root);return a+=e,a=n.fitToRange(a,h+e,l-e),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(t,e,i){return g.roun(t+e*this._baseDuration,i.timeUnit,i.count,this._root)}}c.className="DateAxis",c.classNames=a.m.classNames.concat([c.className])},7109:function(t,e,i){i.d(e,{L:function(){return a}});var s=i(6691);class a extends s.Y{constructor(){super(...arguments),this._tickPoints=[]}}a.className="EditableAxisLabel",a.classNames=s.Y.classNames.concat([a.className])},8701:function(t,e,i){i.d(e,{J:function(){return d}});var s=i(5638),a=i(9361),o=i(5071),n=i(3540),r=i(1926),h=i(5040),l=i(751);class d extends s.S{constructor(){super(...arguments),this._frequency=1,this._m=0,this._dates=[]}_afterNew(){this.valueFields.push("date"),this.addTag("gapless"),super._afterNew()}_getDates(){return this._customDates?this._customDates:this._dates}_updateDates(t,e){if(!e.get("ignoreMinMax")){const e=this._getDates(),i=o.getSortedIndex(e,(e=>n.qu(e,t)));i.found||o.insertIndex(e,i.index,t)}}_updateAllDates(){if(!this._customDates){const t=this._dates;t.length=0,o.each(this.series,(t=>{let e="valueX";t.get("yAxis")==this&&(e="valueY"),o.each(t.dataItems,(i=>{let s=i.get(e);h.isNumber(s)&&i.open&&this._updateDates(i.open[e],t)}))}));const e=this.get("extraMax",0),i=this.get("extraMin",0);let s=t.length;const a=this.getPrivate("baseInterval"),n=a.count,l=a.timeUnit;if(e>0){const i=s*e;let a=t[s-1];if(h.isNumber(a))for(let e=s-1;e0){const e=s*i;let a=t[0];if(h.isNumber(a))for(let i=0;in.qu(e,t)));let h=r.index;if(r.found)return(h-i)/a;{h>0&&(h-=1);let s=e[h];const o=e[h+1];if(o){let e=o;Math.abs(e-t)n.qu(e,t)));let s=i.index;return i.found||s>0&&(s-=1),s}positionToValue(t){const e=this.get("startLocation",0),i=this.get("endLocation",1),s=this._getDates();let a=Math.round(s.length-e-(1-i)),o=t*a,n=Math.floor(o);return n<0&&(n=0),n>a-1&&(n=a-1),s[n]+(o-n+e)*this._baseDuration}_fixZoomFactor(){this.setPrivateRaw("maxZoomFactor",this._getDates().length-this.get("startLocation",0)-(1-this.get("endLocation",1)))}zoomToDates(t,e,i){const s=this._getDates(),a=s.length;let r=o.getSortedIndex(s,(e=>n.qu(e,t.getTime()))),h=s[Math.min(r.index,a-1)];r=o.getSortedIndex(s,(t=>n.qu(t,e.getTime())));let l=s[r.index];r.index>=a&&(l=s[a-1]+this._baseDuration),this.zoomToValues(h,l,i)}zoomToValues(t,e,i){const s=this.getPrivate("min",0),a=this.getPrivate("max",0);t=l.fitToRange(t,s,a),e=l.fitToRange(e,s,a),this.zoom(this.valueToPosition(t),this.valueToPosition(e),i)}_prepareAxisItems(){let t=this.getPrivate("selectionMin",0),e=this.getPrivate("selectionMax",0);if(h.isNumber(t)&&h.isNumber(e)){this._seriesValuesDirty&&(this._seriesValuesDirty=!1,this._updateAllDates());const i=this._root,s=i.utc,n=i.timezone,l=this._getDates(),d=this.get("renderer"),g=l.length,c=this._baseDuration;let u=this.valueToIndex(t);u>0&&u--;let m=this.valueToIndex(e);m{this._toggleDataItem(t,!1)})),o.each(this.minorDataItems,(t=>{this._toggleDataItem(t,!1)}));let x=e-t-((e-t)/c-(m-u))*c,v=r.chooseInterval(0,x,p,this.get("gridIntervals"));const y=this.getPrivate("baseInterval");let f=r.getIntervalDuration(v);f0){let t=0;this._m=0;let e=w-10*f;const g=r.getNextUnit(b);if(I){let t=l[C[0]];this._addMinorGrid(t-f,t,k,I)}let c=d.axisLength()/d.gridCount()*.5;o.each(C,(o=>{var u;let m;this.dataItems.length1||"week"==v.timeUnit){let e=r.roun(p,t,1,i)+r.getDuration(t,this._getM(t)),s=this.valueToIndex(e);if(e=l[s],e==p){let t=l[s+1];t?e=t:e+=k}m.setRaw("labelEndValue",e)}w=1}if(this._prepareDataItem(m,w),P&&M&&"X"==d.getPrivate("letter")){let t=M.get("label");if(t&&P.x()-t.x(){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_pickWorse(t,e,i){const s=i.timeUnit,a=t.get("value",0),o=e.get("value",0);return"hour"==s&&new Date(a).getDate()!=new Date(o).getDate()?t:e}_addMinorGrid(t,e,i,s){const n=this.get("minorDateFormats",this.get("dateFormats")),h=s.timeUnit;let l=t+r.getDuration(h,this._getM(h));l=r.roun(l,h,1,this._root);let d=e-.5*i,g=this._getIndexes(l,d,s,l);const c=this._getDates();o.each(g,(t=>{let e;this.minorDataItems.length=x-2*_&&o.move(a,e),u=0),t+=p,t=r.roun(t,n,1,g);else{if(i=t){e=s;break}o.move(a,e),t+=_,t=r.roun(t,n,h,g)}if(t==m&&(t+=_+p,t=r.roun(t,n,h,g)),t==m)break;m=t}return a}_hasDate(t){return o.getSortedIndex(this._getDates(),(e=>n.HO(e,t))).found}_nextTime(t,e,i){let s=l.fitToRange(this.valueToIndex(t)+e,0,this._dates.length-1);return this._dates[s]}}d.className="GaplessDateAxis",d.classNames=s.S.classNames.concat([d.className])},8943:function(t,e,i){i.d(e,{r:function(){return a}});var s=i(1479);class a extends s.T{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}a.className="Grid",a.classNames=s.T.classNames.concat([a.className])},7261:function(t,e,i){i.d(e,{m:function(){return d}});var s=i(9361),a=i(6515),o=i(7449),n=i(5040),r=i(5071),h=i(751),l=i(7652);class d extends a.R{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var t;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let t=this.get("syncWithAxis");t&&(this._syncDp=new o.FV([t.onPrivate("selectionMinFinal",(()=>{this._dirtySelectionExtremes=!0})),t.onPrivate("selectionMaxFinal",(()=>{this._dirtySelectionExtremes=!0}))]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,null===(t=this.ghostLabel)||void 0===t||t.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){const t=this.chart;let e=!1;if(t){const i=this.get("renderer").getPrivate("letter");"Y"==i?t.xAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)})):"X"==i&&t.yAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)}))}e&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,this.getPrivate("selectionMinFinal")==this.getPrivate("selectionMin")&&this.getPrivate("selectionMaxFinal")==this.getPrivate("selectionMax")||(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(t){const e=this.get("numberFormat"),i=this.getNumberFormatter();let s="";return s=e?i.format(t,e):i.format(t,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(n.isNumber(t)&&n.isNumber(e)){const e=this.get("logarithmic"),i=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+i;let l=a-i,d=1,g=t;if(e){if(l=this._minLogAdjusted,l2&&(l=Math.pow(10,Math.log(g)*Math.LOG10E-50))}const c=this.get("renderer"),u=c.get("minorLabelsEnabled"),m=c.get("minorGridEnabled",u);let p=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));const _=Math.round(i/p);let x=2;h.round(_/5,10)%1==0&&(x=5),h.round(_/10,10)%1==0&&(x=10);let v=i/x,y=0,f=0,b=-1/0;const D=this.get("renderer").gridCount();for(;l2){const t=Math.max(1,D),e=Math.max(1,Math.ceil(d/t)),i=Math.log(g)*Math.LOG10E+(y+1)*e-50;o=Math.pow(10,i)}else o+=i;else o+=i;if(m){let t=l+v;for(e&&(d>2&&(v=this._adjustMinMax(l,o,10).step),t=l+v);t{t.inited&&t._markDirtyAxes()})),this._updateGhost()}}_prepareDataItem(t,e){let i=this.get("renderer"),s=t.get("value"),a=t.get("endValue"),o=this.valueToPosition(s),r=o,h=this.valueToPosition(s+this.getPrivate("step"));n.isNumber(a)&&(r=this.valueToPosition(a),h=r),t.get("isRange")&&null==a&&(h=o);let l=r,d=t.get("labelEndValue");null!=d&&(l=this.valueToPosition(d)),i.updateLabel(t.get("label"),o,l,e);const g=t.get("grid");if(i.updateGrid(g,o,r),g&&(s==this.get("baseValue",0)?(g.addTag("base"),g._applyThemes()):g.hasTag("base")&&(g.removeTag("base"),g._applyThemes())),i.updateTick(t.get("tick"),o,l,e),i.updateFill(t.get("axisFill"),o,h),this._processBullet(t),i.updateBullet(t.get("bullet"),o,r),!t.get("isRange")){const e=this.get("fillRule");e&&e(t)}}_handleRangeChange(){let t=this.positionToValue(this.get("start",0)),e=this.positionToValue(this.get("end",1));const i=this.get("renderer").gridCount();let s=this._adjustMinMax(t,e,i,!0),a=l.decimalPlaces(s.step);this.setPrivateRaw("stepDecimalPlaces",a),t=h.round(t,a),e=h.round(e,a),s=this._adjustMinMax(t,e,i,!0);let o=s.step;t=s.min,e=s.max,this.getPrivate("selectionMin")===t&&this.getPrivate("selectionMax")===e&&this.getPrivate("step")===o||(this.setPrivateRaw("selectionMin",t),this.setPrivateRaw("selectionMax",e),this.setPrivateRaw("step",o))}positionToValue(t){const e=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(t*(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)+Math.log(e)*Math.LOG10E)/Math.LOG10E):t*(i-e)+e}valueToPosition(t){const e=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}valueToFinalPosition(t){const e=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}getX(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getY(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionX(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemX")?a*s+t.component.getStackedXValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemY")?a*s+t.component.getStackedYValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const t=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),e=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let i=this.get("baseValue",0);return ie&&(i=e),i}cellEndValue(t){return t}fixSmallStep(t){return 1+t===1?(t*=2,this.fixSmallStep(t)):t}_fixMin(t){return t}_fixMax(t){return t}_calculateTotals(){if(this.get("calculateTotals")){let t=this.series[0];if(t){let e=t.startIndex();if(t.dataItems.length>0){e>0&&e--;let i,s,a=t.endIndex();a{if(!i.get("excludeFromTotal")){let r=i.dataItems[t];if(r){let t=r.get(o)*i.get(s);n.isNaN(t)||(e+=t,a+=Math.abs(t))}}})),r.each(this.series,(r=>{if(!r.get("excludeFromTotal")){let h=r.dataItems[t];if(h){let t=h.get(o)*r.get(s);if(!n.isNaN(t)){h.set(i+"Total",a),h.set(i+"Sum",e);let s=t/a*100;0==a&&(s=0),h.set(i+"TotalPercent",s)}}}}))}}}}}_getSelectionMinMax(){const t=this.getPrivate("minFinal"),e=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max");let a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2));const l=this.get("renderer").gridCount(),d=this.get("strictMinMaxSelection");let g=this.get("strictMinMax");if(n.isNumber(t)&&n.isNumber(e)){let c=e,u=t;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,i;const s=t.getPrivate("outOfSelection");if(t.get("xAxis")===this){if(!s){let s=t.getPrivate("minX"),a=t.getPrivate("maxX");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinX",s),i=t.getPrivate("selectionMaxX",a)}}else if(t.get("yAxis")===this&&!s){let s=t.getPrivate("minY"),a=t.getPrivate("maxY");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinY",s),i=t.getPrivate("selectionMaxY",a)}t.isHidden()||t.isShowing()||(n.isNumber(e)&&(c=Math.min(c,e)),n.isNumber(i)&&(u=Math.max(u,i)))}})),this.axisRanges.each((t=>{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(c=Math.min(c,e),u=Math.max(u,e)),e=t.get("endValue"),null!=e&&(c=Math.min(c,e),u=Math.max(u,e))}})),c>u&&([c,u]=[u,c]),n.isNumber(i)?c=g?i:t:g&&n.isNumber(this._minReal)&&(c=this._minReal),n.isNumber(s)?u=g?s:e:g&&n.isNumber(this._maxReal)&&(u=this._maxReal),c===u){let e=c;if(c-=this._deltaMinMax,u+=this._deltaMinMax,ce&&(x.max=e),c=x.min,u=x.max),g&&(n.isNumber(i)&&(c=Math.max(c,i)),n.isNumber(s)&&(u=Math.min(u,s))),d&&(c=m-(p-m)*a,u=p+(p-m)*o),g){c=n.isNumber(i)?i:m,u=n.isNumber(s)?s:p,u-c<=1e-8&&(c-=this._deltaMinMax,u+=this._deltaMinMax);let t=u-c;c-=t*a,u+=t*o}this.get("logarithmic")&&(c<=0&&(c=m*(1-Math.min(a,.99))),ce&&(u=e));let y=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),f=h.round(this.valueToFinalPosition(c),y),b=h.round(this.valueToFinalPosition(u),y);this.setPrivateRaw("selectionMinFinal",c),this.setPrivateRaw("selectionMaxFinal",u),this.setPrivateRaw("selectionStepFinal",x.step),this.zoom(f,b)}}_getMinMax(){let t=this.get("min"),e=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2)));let l=1/0;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,a;if(t.get("xAxis")===this?(e=t.getPrivate("minX"),a=t.getPrivate("maxX")):t.get("yAxis")===this&&(e=t.getPrivate("minY"),a=t.getPrivate("maxY")),n.isNumber(e)&&n.isNumber(a)){i=Math.min(i,e),s=Math.max(s,a);let t=a-e;t<=0&&(t=Math.abs(a/100)),t{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(i=Math.min(i,e),s=Math.max(s,e)),e=t.get("endValue"),null!=e&&(i=Math.min(i,e),s=Math.max(s,e))}})),this.get("logarithmic")){let t=this.get("treatZeroAs");n.isNumber(t)&&i<=0&&(i=t),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(0===i&&0===s&&(s=.9,i=-.9),n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e),i===1/0||s===-1/0)return this.setPrivate("minFinal",void 0),void this.setPrivate("maxFinal",void 0);i>s&&([i,s]=[s,i]);const d=i,g=s;let c=this.adapters.fold("min",i),u=this.adapters.fold("max",s);this._minRealLog=i,n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!=0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&d>=0&&(i=0),s>0&&g<=0&&(s=0)),this._minReal=i,this._maxReal=s;let m=this.get("strictMinMax"),p=this.get("strictMinMaxSelection",!1);p&&(m=p);let _=m;n.isNumber(e)&&(_=!0);let x=this.get("renderer").gridCount(),v=this._adjustMinMax(i,s,x,_);if(i=v.min,s=v.max,v=this._adjustMinMax(i,s,x,!0),i=v.min,s=v.max,m){i=n.isNumber(t)?t:this._minReal,s=n.isNumber(e)?e:this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let r=s-i;i-=r*a,s+=r*o}c=this.adapters.fold("min",i),u=this.adapters.fold("max",s),n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),l==1/0&&(l=s-i);let y=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=h.round(i,y),s=h.round(s,y);const f=this.get("syncWithAxis");if(f&&(v=this._syncAxes(i,s,v.step,f.getPrivate("minFinal",f.getPrivate("min",0)),f.getPrivate("maxFinal",f.getPrivate("max",1)),f.getPrivate("step",1)),i=v.min,s=v.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/l*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=d*(1-Math.min(a,.99)))),n.isNumber(i)&&n.isNumber(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);const t=this.get("interpolationDuration",0),e=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:t,easing:e}),this.animatePrivate({key:"max",to:s,duration:t,easing:e})}}_fixZoomFactor(){}_getDelta(t){let e=Math.log(Math.abs(t))*Math.LOG10E,i=Math.pow(10,Math.floor(e));i/=10,this._deltaMinMax=i}_saveMinMax(t,e){}_adjustMinMax(t,e,i,s){i<=1&&(i=1),i=Math.round(i);let a=t,o=e,r=e-t;0===r&&(r=Math.abs(e));let l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l));d/=10;let g=d;s&&(g=0),s?(t=Math.floor(t/d)*d,e=Math.ceil(e/d)*d):(t=Math.ceil(t/d)*d-g,e=Math.floor(e/d)*d+g),t<0&&a>=0&&(t=0),e>0&&o<=0&&(e=0),l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l)),d/=100;let c=Math.ceil(r/i/d)*d,u=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),m=Math.ceil(c/u);m>5?m=10:m<=5&&m>2&&(m=5),c=Math.ceil(c/(u*m))*u*m;let p=this.get("maxPrecision");if(n.isNumber(p)){let t=h.ceil(c,p);pa&&(t-=c),c=this.fixSmallStep(c),{min:t,max:e,step:c}}getTooltipText(t,e){const i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,n=h.round(this.positionToValue(t),o);return i?s.format(n,i):s.format(n,void 0,o)}getSeriesItem(t,e){let i,s,a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);if(r.each(t.dataItems,((t,e)=>{const n=Math.abs(t.get(a)-o);(void 0===i||n500&&(s=!0),s)t=n,e=h,i=d;else{a/3==Math.round(a/3)?(n=t-o*a,t>=0&&n<0&&(n=0)):(h=e+o*a,h<=0&&h>0&&(h=0));let i=this._adjustMinMax(n,h,l,!0);n=i.min,h=i.max,d=i.step}}}return{min:t,max:e,step:i}}_checkSync(t,e,i,s){let a=(e-t)/i;for(let t=1;t{if(t instanceof l){const e=t.get("stacked");e&&0==h&&n++,!e&&t.get("clustered")&&n++}t===this&&(o=n-1),h++})),this.get("clustered")||(o=0,n=1),0===n&&(n=1,o=0);const d="cellStartLocation",g="cellEndLocation",c=this._xRenderer.get(d,0),u=this._xRenderer.get(g,1),m=this._yRenderer.get(d,0),p=this._yRenderer.get(g,1);if(this._aLocationX0=c+o/n*(u-c),this._aLocationX1=c+(o+1)/n*(u-c),this._aLocationY0=m+o/n*(p-m),this._aLocationY1=m+(o+1)/n*(p-m),e.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){const t=this.dataItems.length;let a=Math.max(0,this.startIndex()-2),o=Math.min(this.endIndex()+2,t-1);for(let t=0;t0&&a>0)for(let e=t-1;e>=0;e--){let t=this.dataItems[e];if(null!=t.get("valueX")&&null!=t.get("valueY")){n=t;break}}break}this._toggleColumn(e,!1)}this._beforeColumnsDraw();let r=0;i.isType("CategoryAxis")&&e.isType("CategoryAxis")?r=2:e===s?r=0:i===s&&(r=1);for(let t=a;t<=o;t++){let e=this.dataItems[t];this._updateGraphics(e,n,r),null!=e.get("valueX")&&null!=e.get("valueY")&&(n=e)}this._afterColumnsDraw();for(let e=o+1;e{const a=e.get(s,this.get(s));t.set(s,a),i.set(s,a)}))}}let s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.dispose()})),s=[],t.setRaw("rangeGraphics",s),this.axisRanges.each((e=>{const i=e.container,a=this._makeGraphics(e.columns,t);s&&s.push(a),a.setPrivate("list",e.columns),i.children.push(a)}))}}createAxisRange(t){return r.each(this.dataItems,(t=>{const e=t.get("graphics");e&&(e.dispose(),t.set("graphics",void 0))})),super.createAxisRange(t)}_updateGraphics(t,e,i){let s=t.get("graphics");const a=this._xField,n=this._yField,l=t.get(a),d=t.get(n),g=this.get("exactLocationX",!1);if(null!=l&&null!=d){const l=this._xOpenField,d=this._yOpenField,c=this.get("locationX",t.get("locationX",.5)),u=this.get("locationY",t.get("locationY",.5)),m=this.get("openLocationX",t.get("openLocationX",c)),p=this.get("openLocationY",t.get("openLocationY",u)),_=s.get("width"),x=s.get("height"),v=this.get("stacked"),y=this.get("xAxis"),f=this.get("yAxis"),b=y.get("start"),D=y.get("end"),P=f.get("start"),w=f.get("end");let T,A,I,M,k=this.get("vcy",1),C=this.get("vcx",1),S=!1,Y=!1;if(0==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C,g),A=y.getDataItemPositionX(t,a,i,C,g),I=f.getDataItemPositionY(t,n,u,k),this._yOpenField!==this._yField)M=f.getDataItemPositionY(t,d,p,k);else if(v){let e=t.get("stackToItemY");M=e?f.getDataItemPositionY(e,n,p,e.component.get("vcy")):f.basePosition()}else M=f.basePosition();t.setRaw("point",{x:T+(A-T)/2,y:I}),Y=!0}else if(1==i){let e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5;if(x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}if(I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),A=y.getDataItemPositionX(t,a,c,C,g),this._xOpenField!==this._xField)T=y.getDataItemPositionX(t,l,m,C,g);else if(v){let e=t.get("stackToItemX");T=e?y.getDataItemPositionX(e,a,m,e.component.get("vcx"),g):y.basePosition()}else T=y.basePosition();S=!0,t.setRaw("point",{x:A,y:I+(M-I)/2})}else if(2==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C),A=y.getDataItemPositionX(t,a,i,C),e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5,x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),t.setRaw("point",{x:T+(A-T)/2,y:I+(M-I)/2})}this._applyGraphicsStates(t,e),this._updateSeriesGraphics(t,s,T,A,I,M,S,Y),TD&&A>D||I=w&&M>w||h.isNaN(T)||h.isNaN(I)?this._toggleColumn(t,!1):this._toggleColumn(t,!0);let F=t.get("rangeGraphics");F&&r.each(F,(e=>{this._updateSeriesGraphics(t,e,T,A,I,M,S,Y)}))}else this._toggleColumn(t,!1)}_updateSeriesGraphics(t,e,i,s,a,o,n,r){const l=e.get("width"),d=e.get("height"),g=e.get("maxWidth"),c=e.get("maxHeight"),u=this.getPoint(i,a),m=this.getPoint(s,o),p=t.get("point");if(p){const t=this.getPoint(p.x,p.y);p.x=t.x+this._x,p.y=t.y+this._y}if(i=u.x,s=m.x,a=u.y,o=m.y,h.isNumber(l)){const t=(s-i-l)/2;i+=t,s-=t}if(h.isNumber(g)&&g{this._toggleColumn(t,!1)}))}_applyGraphicsStates(t,e){const i=t.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),n=i.states.lookup("riseFromPrevious");if(s||o||a||n){const i=this.get("xAxis"),r=this.get("yAxis"),l=this.get("baseAxis");let d,g,c;l===i&&r.isType("ValueAxis")?(d=t.get(this._yOpenField),g=t.get(this._yField),c=e.get(this._yField)):l===r&&i.isType("ValueAxis")&&(d=t.get(this._xOpenField),g=t.get(this._xField),c=e.get(this._xField)),h.isNumber(d)&&h.isNumber(g)&&(g{const e=t.getPrivate("list");e&&e.removeValue(t),t.dispose()}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.hide(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.hide(e))})),yield Promise.all(s)}))}_toggleColumn(t,e){const i=t.get("graphics");i&&i.setPrivate("visible",e);const s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.setPrivate("visible",e)}));const a=t.bullets;a&&r.each(a,(t=>{t.setPrivate("hidden",!e)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.show(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.show(e))})),yield Promise.all(s)}))}updateLegendMarker(t){let e=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!t){const e=this.dataItems[this.endIndex()-1];e&&(t=e)}if(e){let i=this.columns.template;if(t){let e=t.get("graphics");e&&(i=e)}const s=e.get("markerRectangle");if(s&&!e.get("itemContainer").get("disabled")){const t=s.states.lookup("default");r.each(n.u,(e=>{const a=i.get(e,this.get(e));s.set(e,a),t.set(e,a)}))}}}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget"))return super._getTooltipTarget(t);return t.get("graphics")||this}}l.className="BaseColumnSeries",l.classNames=a.o.classNames.concat([l.className])},2976:function(t,e,i){i.d(e,{j:function(){return a}});var s=i(3497);class a extends s.c{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();const t=this._display;t.moveTo(this.get("lowX0",0),this.get("lowY0",0)),t.lineTo(this.get("lowX1",0),this.get("lowY1",0)),t.moveTo(this.get("highX0",0),this.get("highY0",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0))}}a.className="Candlestick",a.classNames=s.c.classNames.concat([a.className])},2312:function(t,e,i){i.d(e,{$:function(){return l}});var s=i(62),a=i(2976),o=i(5769),n=i(7144),r=i(7652),h=i(5071);class l extends s.d{constructor(){super(...arguments),this.columns=this.addDisposer(new n.o(o.YS.new({themeTags:["autocolor"]}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_updateGraphics(t,e,i){super._updateGraphics(t,e,i);const s=this.getRaw("xAxis"),a=this.getRaw("yAxis");let o,n,r,h,l,d,g,c,u,m=this.get("vcy",1),p=this.get("vcx",1),_=this.get("locationX",t.get("locationX",.5)),x=this.get("locationY",t.get("locationY",.5)),v=this.get("openLocationX",t.get("openLocationX",_)),y=this.get("openLocationY",t.get("openLocationY",x));if(0==i){let e=a.getDataItemPositionY(t,this._yOpenField,1,m),i=a.getDataItemPositionY(t,this._yField,1,m);h=a.getDataItemPositionY(t,this._yLowField,1,m),c=a.getDataItemPositionY(t,this._yHighField,1,m),g=Math.max(e,i),r=Math.min(e,i);let x=this._aLocationX0+v-.5,y=this._aLocationX1+_-.5;o=s.getDataItemPositionX(t,this._xField,x+(y-x)/2,p),n=o,l=o,d=o,u="vertical"}else{let e=s.getDataItemPositionX(t,this._xOpenField,1,p),i=s.getDataItemPositionX(t,this._xField,1,p);n=s.getDataItemPositionX(t,this._xLowField,1,p),d=s.getDataItemPositionX(t,this._xHighField,1,p),l=Math.max(e,i),o=Math.min(e,i);let _=this._aLocationY0+y-.5,v=this._aLocationY1+x-.5;r=a.getDataItemPositionY(t,this._yField,_+(v-_)/2,m),h=r,g=r,c=r,u="horizontal"}this._updateCandleGraphics(t,o,n,r,h,l,d,g,c,u)}_updateCandleGraphics(t,e,i,s,a,o,n,r,l,d){let g=t.get("graphics");if(g){let c=this.getPoint(e,s),u=this.getPoint(i,a),m=this.getPoint(o,r),p=this.getPoint(n,l);if(this.get("turboMode")){const t=this.allColumnsData[this.allColumnsData.length-1];t.lowX0=c.x,t.lowY0=c.y,t.lowX1=u.x,t.lowY1=u.y,t.highX0=m.x,t.highY0=m.y,t.highX1=p.x,t.highY1=p.y}else{let e=g.x(),i=g.y();g.set("lowX0",c.x-e),g.set("lowY0",c.y-i),g.set("lowX1",u.x-e),g.set("lowY1",u.y-i),g.set("highX0",m.x-e),g.set("highY0",m.y-i),g.set("highX1",p.x-e),g.set("highY1",p.y-i),g.set("orientation",d);let s=t.get("rangeGraphics");s&&h.each(s,(t=>{t.set("lowX0",c.x-e),t.set("lowY0",c.y-i),t.set("lowX1",u.x-e),t.set("lowY1",u.y-i),t.set("highX0",m.x-e),t.set("highY0",m.y-i),t.set("highX1",p.x-e),t.set("highY1",p.y-i),t.set("orientation",d)}))}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),h.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity,g=e.lowX0,c=e.lowY0,u=e.lowX1,m=e.lowY1,p=e.highX0,_=e.highY0,x=e.highX1,v=e.highY1;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.moveTo(g,c),t.lineTo(u,m),t.moveTo(p,_),t.lineTo(x,v),t.endStroke(),t.endFill()}))}))}_processAxisRange(t){super._processAxisRange(t),t.columns=new n.o(o.YS.new({}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(t.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,t.columns.template])))}}l.className="CandlestickSeries",l.classNames=s.d.classNames.concat([l.className])},62:function(t,e,i){i.d(e,{d:function(){return d}});var s=i(757),a=i(5769),o=i(7144),n=i(3497),r=i(1479),h=i(7652),l=i(5071);class d extends s.d{constructor(){super(...arguments),this.allColumns=this.children.push(r.T.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(t.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,t.columns.template])))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),l.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.endStroke(),t.endFill()}))}))}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(t,e,i,s,a,o,n,r){if(this.get("turboMode")){e.virtualParent=this.chart,e.parent&&(this.mainContainer.children.removeValue(e),e._parent=void 0);const n=e.get("stroke"),r=e.get("fillOpacity",1),h=e.get("strokeOpacity",1),l=e.get("strokeWidth",1),d=e.get("fill"),g=this.getPoint(i,a),c=this.getPoint(s,o),u=t.get("point");if(u){const t=this.getPoint(u.x,u.y);u.x=t.x+this._x,u.y=t.y+this._y}i=g.x,s=c.x,a=g.y,o=c.y,t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:n,fill:d,strokeWidth:l,strokeOpacity:h,fillOpacity:r})}else e.parent||this.mainContainer.children.push(e),super._updateSeriesGraphics(t,e,i,s,a,o,n,r)}}d.className="ColumnSeries",d.classNames=s.d.classNames.concat([d.className])},2338:function(t,e,i){i.d(e,{e:function(){return p}});var s=i(4604),a=i(1479),o=i(774),n=i(3794),r=i(5769),h=i(7144),l=i(1112),d=i(9361),g=i(7142),c=i(5040),u=i(5071),m=i(7652);class p extends s.o{constructor(){super(...arguments),this._strokeGenerator=(0,o.Z)(),this._fillGenerator=(0,n.Z)(),this.strokes=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template])))),this.fills=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template])))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0((function(t){return t[3]})),this._fillGenerator.x0((function(t){return t[2]})),this._fillGenerator.y1((function(t){return t[1]})),this._fillGenerator.x1((function(t){return t[0]})),super._afterNew()}makeStroke(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}makeFill(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let t=this.get("xAxis"),e=this.get("yAxis");if(this.isDirty("stroke")){const t=this.get("stroke");this.strokes.template.set("stroke",t);const e=this._legendStroke;e&&e.states.lookup("default").set("stroke",t)}if(this.isDirty("fill")){const t=this.get("fill");this.fills.template.set("fill",t);const e=this._legendFill;e&&e.states.lookup("default").set("fill",t)}if(this.isDirty("fillPattern")){const t=this.get("fillPattern");this.fills.template.set("fillPattern",t);const e=this._legendFill;e&&e.states.lookup("default").set("fillPattern",t)}if(this.isDirty("curveFactory")){const t=this.get("curveFactory");t&&(this._strokeGenerator.curve(t),this._fillGenerator.curve(t))}if(t.inited&&e.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){const t=this.dataItems;this.fills.each((t=>{t.setPrivate("visible",!1)})),this.strokes.each((t=>{t.setPrivate("visible",!1)})),this.axisRanges.each((t=>{let e=t.fills;e&&e.each((t=>{t.setPrivate("visible",!1)}));let i=t.strokes;i&&i.each((t=>{t.setPrivate("visible",!1)}))}));let e=this.startIndex(),i=this.strokes.template.get("templateField"),s=this.fills.template.get("templateField"),a=!0,o=!0;i&&(a=!1),s&&(o=!1);for(let n=e-1;n>=0;n--){let r=t[n],h=!0,l=r.dataContext;if(i&&l[i]&&(a=!0),s&&l[s]&&(o=!0),u.each(this._valueFields,(t=>{c.isNumber(r.get(t))||(h=!1)})),h&&a&&o){e=n;break}}let n=t.length,r=this.endIndex();if(r{c.isNumber(i.get(t))||(s=!1)})),s){r=e+1;break}}}if(e>0&&e--,this._endIndex=r,this._clearGraphics(),this._sindex=0,this._dindex=e,1==n)this._startSegment(0);else for(;this._dindex{t.fills.clear(),t.strokes.clear()}))}_startSegment(t){const e=this.dataItems;let i=this._endIndex,s=i;const a=this.get("autoGapCount"),o=this.get("connect"),n=this.makeFill(this.fills),h=this._fillTemplate,l=this.fills.template;h&&h!=l&&(n.template=h),n.setPrivate("visible",!0);const d=this.makeStroke(this.strokes),g=this._strokeTemplate;g&&g!=this.strokes.template&&(d.template=g),d.setPrivate("visible",!0);let c=this.get("xAxis"),u=this.get("yAxis"),m=this.get("baseAxis"),p=this.get("vcx",1),_=this.get("vcy",1),x=this._xField,v=this._yField,y=this._xOpenField,f=this._yOpenField;const b=this.get("openValueXField"),D=this.get("openValueYField");b||(y=this._xField),D||(f=this._yField);const P=this.get("stacked"),w=c.basePosition(),T=u.basePosition();let A;A=m===u?this._yField:this._xField;const I=[];let M=[];I.push(M);const k=this.strokes.template.get("templateField"),C=this.fills.template.get("templateField");let S=this.get("locationX",.5),Y=this.get("locationY",.5),F=this.get("openLocationX",S),X=this.get("openLocationY",Y);const L=this.get("minDistance",0);let N,R=this.fills.template.get("visible");this.axisRanges.length>0&&(R=!0);let V=!1;(P||b||D)&&(V=!0);const G={points:M,segments:I,stacked:P,getOpen:V,basePosX:w,basePosY:T,fillVisible:R,xField:x,yField:v,xOpenField:y,yOpenField:f,vcx:p,vcy:_,baseAxis:m,xAxis:c,yAxis:u,locationX:S,locationY:Y,openLocationX:F,openLocationY:X,minDistance:L};let O=this._strokeTemplate,E=this._fillTemplate;for(N=t;Nt){s=N;break}O=e,d.template=e}}if(C){let e=i.dataContext[C];if(e){if(e instanceof r.YS||(e=r.YS.new(e)),this._fillTemplate=e,N>t){s=N;break}E=e,n.template=e}}if(!o){let t=e[N+1];t&&m.shouldGap(i,t,a,A)&&(M=[],I.push(M),G.points=M)}}n.setRaw("userData",[t,N]),d.setRaw("userData",[t,N]),N===i&&this._endLine(M,I[0][0]),d&&this._drawStroke(d,I),n&&this._drawFill(n,I),this.axisRanges.each((e=>{const i=e.container,s=e.fills,a=this.makeFill(s);i&&i.children.push(a),a.setPrivate("visible",!0),this._drawFill(a,I);const o=e.strokes,n=this.makeStroke(o);i&&i.children.push(n),O&&O!=this.strokes.template&&(n.template=O),E&&E!=this.fills.template&&(a.template=E),n.setPrivate("visible",!0),this._drawStroke(n,I),a.setRaw("userData",[t,N]),n.setRaw("userData",[t,N])}))}_getPoints(t,e){let i=e.points,s=t.get("locationX",e.locationX),a=t.get("locationY",e.locationY);const o=this.get("exactLocationX",!1),n=this.get("exactLocationY",!1);let r=e.xAxis.getDataItemPositionX(t,e.xField,s,e.vcx,o),h=e.yAxis.getDataItemPositionY(t,e.yField,a,e.vcy,n);if(this._shouldInclude(r)){const s=this.getPoint(r,h),a=[s.x,s.y];if(s.x+=this._x,s.y+=this._y,t.set("point",s),e.fillVisible){let i=r,s=h;if(e.baseAxis===e.xAxis?s=e.basePosY:e.baseAxis===e.yAxis&&(i=e.basePosX),e.getOpen){let a=t.get(e.xOpenField),r=t.get(e.yOpenField);if(null!=a&&null!=r){let a=t.get("openLocationX",e.openLocationX),r=t.get("openLocationY",e.openLocationY);if(e.stacked){let h=t.get("stackToItemX"),l=t.get("stackToItemY");h?(i=e.xAxis.getDataItemPositionX(h,e.xField,a,h.component.get("vcx"),o),c.isNaN(i)&&(i=e.basePosX)):i=e.yAxis===e.baseAxis?e.basePosX:e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),l?(s=e.yAxis.getDataItemPositionY(l,e.yField,r,l.component.get("vcy"),n),c.isNaN(s)&&(s=e.basePosY)):s=e.xAxis===e.baseAxis?e.basePosY:e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),s=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}}let l=this.getPoint(i,s);a[2]=l.x,a[3]=l.y}if(e.minDistance>0){const t=a[0],s=a[1],o=a[2],n=a[3],r=this._previousPoint,h=r[0],l=r[1],d=r[2],g=r[3];(Math.hypot(t-h,s-l)>e.minDistance||o&&n&&Math.hypot(o-d,n-g)>e.minDistance)&&(i.push(a),this._previousPoint=a)}else i.push(a)}}_endLine(t,e){}_drawStroke(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._strokeGenerator.context(t),this._strokeGenerator(e)}))}))}_drawFill(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._fillGenerator.context(t),this._fillGenerator(e)}))}))}_processAxisRange(t){super._processAxisRange(t),t.fills=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,t.fills.template]))),t.strokes=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,t.strokes.template])))}createLegendMarker(t){const e=this.get("legendDataItem");if(e){const t=e.get("marker"),i=e.get("markerRectangle");i&&i.setPrivate("visible",!1),t.set("background",g.A.new(t._root,{fillOpacity:0,fill:(0,l.$_)(0)}));const s=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=s;const o=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;const n=this._root.interfaceColors.get("disabled");if(s.states.create("disabled",{fill:n,stroke:n}),o.states.create("disabled",{fill:n,stroke:n}),this.bullets.length>0){const e=this.bullets.getIndex(0);if(e){const i=e(t._root,this,new d.z(this,{legend:!0},{}));if(i){const e=i.get("sprite");e instanceof a.T&&e.states.create("disabled",{fill:n,stroke:n}),e&&(e.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),t.children.push(e),e.setAll({x:t.width()/2,y:t.height()/2}),t.events.on("boundschanged",(()=>{e.setAll({x:t.width()/2,y:t.height()/2})})))}}}}}}p.className="LineSeries",p.classNames=s.o.classNames.concat([p.className])},4604:function(t,e,i){i.d(e,{o:function(){return u}});var s=i(7582),a=i(9361),o=i(3399),n=i(7144),r=i(8777),h=i(1479),l=i(5040),d=i(256),g=i(5071),c=i(7652);class u extends o.F{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(r.W.new(this._root,{})),this.axisRanges=new n.aV,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new a.z(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");const t=this.get("xAxis");t&&(this._xRenderer=t.get("renderer"));const e=this.get("yAxis");e&&(this._yRenderer=e.get("renderer")),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxisRange(t)}));else if("push"===t.type)this._processAxisRange(t.newValue);else if("setIndex"===t.type)this._processAxisRange(t.newValue);else if("insertIndex"===t.type)this._processAxisRange(t.newValue);else if("removeIndex"===t.type)this._removeAxisRange(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value)}}))),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this.onPrivate("endIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this._makeFieldNames()}_processAxisRange(t){const e=r.W.new(this._root,{});t.container=e,this.children.push(e),t.series=this;const i=t.axisDataItem;i.setRaw("isRange",!0);const s=i.component;if(s){s._processAxisRange(i,["range","series"]);const t=i.get("bullet");if(t){const e=t.get("sprite");e&&e.setPrivate("visible",!1)}const a=i.get("axisFill");a&&e.set("mask",a),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),d.each(this._dataSets,((t,e)=>{g.each(e,(t=>{t.dispose()})),e.length=0}))}_removeAxisRange(t){const e=t.axisDataItem,i=e.component;e.dispose(),g.remove(i._seriesAxisRanges,e);const s=t.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&g.each(this.valueXFields,(t=>{if(this.get(t+"Field")){this._valueXFields.push(t);let e=this.get(t+"Show");this.__valueXShowFields.push(e),-1!=e.indexOf("Working")?this._valueXShowFields.push(e.split("Working")[0]):this._valueXShowFields.push(e)}})),this.valueYFields&&g.each(this.valueYFields,(t=>{if(this.get(t+"Field")){this._valueYFields.push(t);let e=this.get(t+"Show");this.__valueYShowFields.push(e),-1!=e.indexOf("Working")?this._valueYShowFields.push(e.split("Working")[0]):this._valueYShowFields.push(e)}}))}_dispose(){super._dispose(),this._bullets={};const t=this.chart;t&&t.series.removeValue(this),g.removeFirst(this.get("xAxis").series,this),g.removeFirst(this.get("yAxis").series,this)}_min(t,e){let i=(a=e,null==(s=this.getPrivate(t))?a:null==a?s:aa?s:a);var s,a;this.setPrivate(t,i)}_shouldMakeBullet(t){const e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!e.inited||!i.inited)return!1;const a=this.get("minBulletDistance",0);if(a>0){let t=this.startIndex(),o=this.endIndex()-t;if(e==s){if(this._xRenderer.axisLength()/o
{g.each(this._valueXShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedXValue(i,t)),this._min("minX",e),this._max("maxX",e))})),g.each(this._valueYShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedYValue(i,t)),this._min("minY",e),this._max("maxY",e))})),t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)})),t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&t.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&e.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(t._groupSeriesData(this),e._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let s=this.startIndex(),a=this.endIndex(),o=this.get("minBulletDistance",0);if(o>0&&i&&(i.get("renderer").axisLength()/(a-s)>o?this._showBullets=!0:this._showBullets=!1),(this._psi!=s||this._pei!=a||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const o=this.get("vcx",1),n=this.get("vcy",1),r=this.get("stacked",!1),h=this.getPrivate("outOfSelection");if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),h)e.markDirtySelectionExtremes();else for(let t=s;t{i.open=void 0,i.close=void 0,t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)}))}_makeRangeMask(){if(this.axisRanges.length>0){let t=this._mainContainerMask;null==t&&(t=this.children.push(h.T.new(this._root,{})),this._mainContainerMask=t,t.set("draw",((e,i)=>{const s=this.parent;if(s){const t=this._root.container.width(),a=this._root.container.height();e.moveTo(-t,-a),e.lineTo(-t,2*a),e.lineTo(2*t,2*a),e.lineTo(2*t,-a),e.lineTo(-t,-a),this.axisRanges.each((t=>{const a=t.axisDataItem.get("axisFill");if(s&&a){let t=a.get("draw");t&&t(e,i)}}))}this.mainContainer._display.mask=t._display}))),t.markDirty(),t._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const t=this.chart;if(t){const e=t.series.indexOf(this);if(this._couldStackTo=[],e>0){let i;for(let s=e-1;s>=0&&(i=t.series.getIndex(s),i.get("xAxis")!==this.get("xAxis")||i.get("yAxis")!==this.get("yAxis")||i.className!==this.className||(this._couldStackTo.push(i),i.get("stacked")));s--);}this._stackDataItems()}}_unstack(){d.each(this._reallyStackedTo,((t,e)=>{delete e._stackedSeries[this.uid]})),this._reallyStackedTo={},g.each(this.dataItems,(t=>{t.setRaw("stackToItemY",void 0),t.setRaw("stackToItemX",void 0)}))}_handleRemoved(){const t=this.get("xAxis");t&&t._handleSeriesRemoved();const e=this.get("yAxis");e&&e._handleSeriesRemoved()}_stackDataItems(){const t=this.get("baseAxis"),e=this.get("xAxis"),i=this.get("yAxis");let s,a;t===e?(s="valueY",a="stackToItemY"):t===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,n=0;const r=this.get("stackToNegative");this._reallyStackedTo={},g.each(this.dataItems,(t=>{for(let e=0;e=0&&n>=0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}if(d<0&&n<0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}else if(l.isNumber(d)&&l.isNumber(n)){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}n++}))}processXSelectionDataItem(t,e,i){g.each(this.__valueXShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedXValueWorking(t,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*e))}))}processYSelectionDataItem(t,e,i){g.each(this.__valueYShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedYValueWorking(t,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*e))}))}getStackedYValueWorking(t,e){const i=t.get("stackToItemY");if(i){const t=i.component;return i.get(e,0)*t.get("vcy",1)+this.getStackedYValueWorking(i,e)}return 0}getStackedXValueWorking(t,e){const i=t.get("stackToItemX");if(i){const t=i.component;return i.get(e,0)*t.get("vcx",1)+this.getStackedXValueWorking(i,e)}return 0}getStackedYValue(t,e){const i=t.get("stackToItemY");return i?i.get(e,0)+this.getStackedYValue(i,e):0}getStackedXValue(t,e){const i=t.get("stackToItemX");return i?i.get(e,0)+this.getStackedXValue(i,e):0}createLegendMarker(t){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(t){let e=t.get("sprite");if(e){let i=e.dataItem,s=t.get("locationX",i.get("locationX",.5)),a=t.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),n=this.get("yAxis"),r=this.get("exactLocationX",!1),h=this.get("exactLocationY",!1),l=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),r),d=n.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),h),g=this.getPoint(l,d),c=i.get("left",g.x),u=i.get("right",g.x),m=i.get("top",g.y),p=i.get("bottom",g.y),_=0,x=0,v=u-c,y=p-m;if(this._shouldShowBullet(l,d)){e.setPrivate("visible",!t.getPrivate("hidden"));let o=t.get("field");const n=this.get("baseAxis"),u=this.get("xAxis"),m=this.get("yAxis");if(null!=o){let t;n==u?("value"==o?t=this._yField:"open"==o?t=this._yOpenField:"high"==o?t=this._yHighField:"low"==o&&(t=this._yLowField),t&&(d=m.getDataItemPositionY(i,t,0,this.get("vcy",1),h),g=this._yRenderer.positionToPoint(d),x=g.y,_=c+v*s)):("value"==o?t=this._xField:"open"==o?t=this._xOpenField:"high"==o?t=this._xHighField:"low"==o&&(t=this._xLowField),t&&(l=u.getDataItemPositionX(i,t,0,this.get("vcx",1),r),g=this._xRenderer.positionToPoint(l),_=g.x,x=p-y*a))}else _=c+v*s,x=p-y*a;const f=t.get("stacked");if(f){const t=this.chart;if(n==u){let i=this._bullets[l+"_"+d];if(i){let s=i.bounds(),a=e.localBounds(),o=x;x=s.top,"down"==f?x=s.bottom-a.top:"auto"==f?t&&(o{e!=this._mainDataItems&&g.each(e,(t=>{t.dispose()}))})),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){g.each(this._dataItems,(t=>{let e=t.bullets;e&&g.each(e,(t=>{if(t){let e=t.get("sprite");e&&e.setPrivate("visible",!1)}}))})),this._selectionProcessed=!1}show(t){const e=Object.create(null,{show:{get:()=>super.show}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.show.call(this,t).then((()=>{this._isShowing=!1;let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis");e!==i&&e.markDirtySelectionExtremes(),t!==i&&t.markDirtySelectionExtremes()}))),i.push(this.bulletsContainer.show(t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)}))}hide(t){const e=Object.create(null,{hide:{get:()=>super.hide}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.hide.call(this,t).then((()=>{this._isHiding=!1}))),i.push(this.bulletsContainer.hide(t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)];l.isNumber(e)||(e=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");g.each(this._valueFields,(i=>{s.push(t.animate({key:i+"Working",to:t.get(i),duration:e,easing:a}).waitForStop())})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)];let a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),l.isNumber(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),n=this.get("xAxis"),r=this.get("yAxis"),h=this.get("baseAxis"),d=this.get("stacked");if(h!==n&&h||g.each(this._valueYFields,(i=>{let a=r.getPrivate("min"),n=r.baseValue();l.isNumber(a)&&a>n&&(n=a),d&&(n=0),null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:n,duration:e,easing:o}).waitForStop())})),h===r||!h){let i=n.getPrivate("min"),a=n.baseValue();l.isNumber(i)&&i>a&&(a=i),d&&(a=0),g.each(this._valueXFields,(i=>{null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:a,duration:e,easing:o}).waitForStop())}))}yield Promise.all(s)}))}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const t=this._stackedSeries;t&&d.each(t,((t,e)=>{e._stackDirty||e._markDirtyStack()}))}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(t){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(t),this.updateLegendValue(t));const e=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(e)if(!this.isHidden()&&this.get("visible")){if(e._setDataItem(t),t){let a=this.get("locationX",0),o=this.get("locationY",1),n=t.get("locationX",a),r=t.get("locationY",o);const h=this.get("xAxis"),l=this.get("yAxis"),d=this.get("vcx",1),c=this.get("vcy",1),u=h.getDataItemPositionX(t,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*n,d,i),m=l.getDataItemPositionY(t,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*r,c,s),p=this.getPoint(u,m);let _=!0;if(g.each(this._valueFields,(e=>{null==t.get(e)&&(_=!1)})),_){const i=this.chart;i&&i.inPlot(p)?(e.label.text.markDirtyText(),e.set("tooltipTarget",this._getTooltipTarget(t)),e.set("pointTo",this._display.toGlobal({x:p.x,y:p.y}))):e._setDataItem(void 0)}else e._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const t=this.get("tooltip");return t&&t.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget")){const e=t.bullets;if(e&&e.length>0){const t=e[0].get("sprite");if(t)return t}}return this}updateLegendValue(t){const e=this.get("legendDataItem");if(e){const i=e.get("label");if(i){let e="";t?(i._setDataItem(t),e=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),e=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",e)}const s=e.get("valueLabel");if(s){let e="";t?(s._setDataItem(t),e=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),e=this.get("legendRangeValueText",s.get("text",""))),s.set("text",e)}}}_getItemReaderLabel(){let t="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}",t}getPoint(t,e){let i=this._xRenderer.positionToCoordinate(t),s=this._yRenderer.positionToCoordinate(e),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(t){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(t){return this.axisRanges.push({axisDataItem:t})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(t){const e=this.get("xAxis");if(this.get("baseAxis")==e&&e.isType("DateAxis")){const i=e.baseDuration(),s=e.getPrivate("selectionMin",e.getPrivate("min",0)),a=i*this.get("locationX",.5);let o=-1/0;for(;o{const e=this.startGrip,i=this.endGrip;let s=e.x(),a=e.y(),o=i.x(),n=i.y();const r=this.height(),h=this.width();s>o&&([s,o]=[o,s]),a>n&&([a,n]=[n,a]),"horizontal"===this.get("orientation")?(t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,r),t.lineTo(0,r),t.lineTo(0,0),t.moveTo(o,0),t.lineTo(h,0),t.lineTo(h,r),t.lineTo(o,r),t.lineTo(o,0)):(t.moveTo(0,0),t.lineTo(0,a),t.lineTo(h,a),t.lineTo(h,0),t.lineTo(0,0),t.moveTo(0,n),t.lineTo(0,r),t.lineTo(h,r),t.lineTo(h,n),t.lineTo(0,n))}))}}r.className="XYChartScrollbar",r.classNames=a.L.classNames.concat([r.className]);var h=i(3355),l=i(757),d=i(6515),g=i(7497),c=i(1926),u=i(5040),m=i(5071);class p extends g.${constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category"),super._afterNew()}_prepareAxisItems(){this.setPrivateRaw("baseInterval",this.get("baseInterval"));const t=this.get("renderer"),e=this.dataItems.length;let i=this.startIndex();i>0&&i--;let s=this.endIndex();s=o&&(g=!0):r%l.count==0&&r!=y&&(g=!0),!h&&g&&(i-.7*o0){let t=f[0].dataItem.get("index",0);m.each(f,(e=>{const i=e.dataItem,s=e.format;this._createAssets(i,[]),this._toggleDataItem(i,!0);let a=Number(i.get("category")),n=new Date(a);const r=i.get("label");r&&r.set("text",this._root.dateFormatter.format(n,s)),t++,this._prepareDataItem(i,t,o)}))}}baseDuration(){return c.getIntervalDuration(this.getPrivate("baseInterval"))}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let t=this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];return this._root.dateFormatter.format(new Date(i.get("category",0)),this.get("tooltipDateFormat",t))}}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}}p.className="CategoryDateAxis",p.classNames=g.$.classNames.concat([p.className]);var _=i(5638),x=i(8701),v=i(7261),y=i(751);class f extends v.m{constructor(){super(...arguments),this._dataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),super._afterNew()}_adjustMinMax(t,e,i,s){let a;const o=this.getDurationFormatter(),n=this.get("baseUnit");if(this.setRaw("maxPrecision",0),"millisecond"==n||"second"==n||"minute"==n||"hour"==n){i<=1&&(i=1),i=Math.round(i);let s=e-t;0===s&&(s=Math.abs(e));let o=s/i,r=[60,30,20,15,10,2,1],h=1;"hour"==n&&(r=[24,12,6,4,2,1]);for(let t of r)if(s/t>i){h=t;break}let l=Math.ceil((e-t)/h/i),d=Math.log(Math.abs(l))*Math.LOG10E,g=Math.pow(10,Math.floor(d))/10,c=l/g;l=y.closest(r,c)*g,o=h*l,a={min:t=Math.floor(t/o)*o,max:e=Math.ceil(e/o)*o,step:o}}else a=super._adjustMinMax(t,e,i,s);return this.setPrivateRaw("durationFormat",o.getFormat(a.step,a.max,n)),a}_formatText(t){return this.getDurationFormatter().format(t,this.getPrivate("durationFormat"),this.get("baseUnit"))}getTooltipText(t,e){const i=this.getDurationFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=y.round(this.positionToValue(t),a);return i.format(o,this.getPrivate("durationFormat"),this.get("baseUnit"))}}f.className="DurationAxis",f.classNames=v.m.classNames.concat([f.className]);var b=i(2586),D=i(6293),P=i(9084),w=i(4714),T=i(8943),A=i(7109),I=i(6275),M=i(6284),k=i(7909),C=i(4604),S=i(2976),Y=i(2312);class F extends S.j{_draw(){const t=this._display;t.moveTo(this.get("lowX1",0),this.get("lowY1",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0));let e=this.width(),i=this.height();if("vertical"==this.get("orientation")){let s=i,a=0;t.moveTo(0,s),t.lineTo(e/2,s),t.moveTo(e/2,a),t.lineTo(e,a)}else{let s=0,a=e;t.moveTo(s,0),t.lineTo(s,i/2),t.moveTo(a,i/2),t.lineTo(a,i)}}}F.className="OHLC",F.classNames=S.j.classNames.concat([F.className]);var X=i(5769),L=i(7144);class N extends Y.${constructor(){super(...arguments),this.columns=this.addDisposer(new L.o(X.YS.new({themeTags:["autocolor"]}),(()=>F._new(this._root,{themeTags:n.mergeTags(this.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=this.mainContainer.children.push(e.make());return i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new L.o(X.YS.new({}),(()=>F._new(this._root,{themeTags:n.mergeTags(t.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template,t.columns.template])))}}N.className="OHLCSeries",N.classNames=Y.$.classNames.concat([N.className]);var R=i(62),V=i(2338),G=i(5892);class O extends V.e{_afterNew(){this._setDefault("curveFactory",(0,G.$)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,G.$)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}O.className="SmoothedYLineSeries",O.classNames=V.e.classNames.concat([O.className]);var E=i(8289);class z extends V.e{_afterNew(){this._setDefault("curveFactory",(0,E.G)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,E.G)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}z.className="SmoothedXLineSeries",z.classNames=V.e.classNames.concat([z.className]);var U=i(2818);class W extends V.e{_afterNew(){this._setDefault("curveFactory",U.ZP.tension(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",U.ZP.tension(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}W.className="SmoothedXYLineSeries",W.classNames=V.e.classNames.concat([W.className]);var B=i(6245);function H(t,e){this._context=t,this._t=e}function Z(t){return new H(t,1)}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}};class Q extends V.e{_afterNew(){this._setDefault("curveFactory",Z),super._afterNew()}_getPoints(t,e){let i=e.points,s=this.get("stepWidth",B.AQ).value/2,a=t.get("locationX",e.locationX),o=t.get("locationY",e.locationY),n=a,r=o;e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s);let h=e.xAxis.getDataItemPositionX(t,e.xField,a,e.vcx),l=e.yAxis.getDataItemPositionY(t,e.yField,o,e.vcy),d=e.xAxis.getDataItemPositionX(t,e.xField,n,e.vcx),g=e.yAxis.getDataItemPositionY(t,e.yField,r,e.vcy);if(this._shouldInclude(h)){const c=this.getPoint(h,l),u=[c.x,c.y],m=this.getPoint(d,g),p=[m.x,m.y];if(e.fillVisible){let i=h,c=l,m=d,_=g;if(e.baseAxis===e.xAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(i=e.basePosX,m=e.basePosX),e.getOpen){let h=t.get(e.xOpenField),l=t.get(e.yOpenField);if(null!=h&&null!=l)if(a=t.get("openLocationX",e.openLocationX),o=t.get("openLocationY",e.openLocationY),n=a,r=o,e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s),e.stacked){let s=t.get("stackToItemX"),h=t.get("stackToItemY");s?(i=e.xAxis.getDataItemPositionX(s,e.xField,a,s.component.get("vcx")),m=e.xAxis.getDataItemPositionX(s,e.xField,n,s.component.get("vcx"))):e.yAxis===e.baseAxis?(i=e.basePosX,m=e.basePosX):e.baseAxis===e.yAxis&&(i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx)),h?(c=e.yAxis.getDataItemPositionY(h,e.yField,o,h.component.get("vcy")),_=e.yAxis.getDataItemPositionY(h,e.yField,r,h.component.get("vcy"))):e.xAxis===e.baseAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy))}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy)}let x=this.getPoint(i,c),v=this.getPoint(m,_);u[2]=x.x,u[3]=x.y,p[2]=v.x,p[3]=v.y}i.push(u),i.push(p),t.set("point",{x:u[0]+(p[0]-u[0])/2,y:u[1]+(p[1]-u[1])/2})}this.get("noRisers")&&(e.points=[],e.segments.push(i))}}Q.className="StepLineSeries",Q.classNames=V.e.classNames.concat([Q.className]);var j=i(55)},7825:function(t,e,i){i.r(e),i.d(e,{am5xy:function(){return s}});const s=i(778)},2818:function(t,e,i){function s(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function a(t,e){this._context=t,this._k=(1-e)/6}i.d(e,{xm:function(){return s}}),a.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:s(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:s(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.ZP=function t(e){function i(t){return new a(t,e)}return i.tension=function(e){return t(+e)},i}(0)}},function(t){var e=(7825,t(t.s=7825)),i=window;for(var s in e)i[s]=e[s];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=xy.js.map diff --git a/web/amCharts/scatter/chart_0059_scatter.inline03.js b/web/amCharts/scatter/chart_0059_scatter.inline03.js new file mode 100644 index 0000000000000000000000000000000000000000..a94bafa7eed49b453c539646b6e8fd03ce25c56d --- /dev/null +++ b/web/amCharts/scatter/chart_0059_scatter.inline03.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[6842],{7533:function(t,e,n){n.r(e),n.d(e,{ClusteredPointSeries:function(){return Yi},DefaultTheme:function(){return ae},GraticuleSeries:function(){return st},MapChart:function(){return bi},MapLine:function(){return Q},MapLineSeries:function(){return et},MapPointSeries:function(){return Ei},MapPolygon:function(){return ki},MapPolygonSeries:function(){return Ri},MapSeries:function(){return r},ZoomControl:function(){return Zi},geoAlbersUsa:function(){return Ji},geoEqualEarth:function(){return eo},geoEquirectangular:function(){return Wi},geoMercator:function(){return se},geoNaturalEarth1:function(){return io},geoOrthographic:function(){return Oi},getGeoArea:function(){return wi},getGeoBounds:function(){return Si},getGeoCentroid:function(){return Pi},getGeoCircle:function(){return xi},getGeoRectangle:function(){return Ii},normalizeGeoPoint:function(){return Mi}});var i=n(3399),o=n(5071),s=n(256);class r extends i.F{constructor(){super(...arguments),this._types=[],this._geometries=[],this._geoJSONparsed=!1,this._excluded=[],this._notIncluded=[]}_afterNew(){this.fields.push("geometry","geometryType"),this._setRawDefault("geometryField","geometry"),this._setRawDefault("geometryTypeField","geometryType"),this._setRawDefault("idField","id"),this.on("geoJSON",(t=>{let e=this._prevSettings.geoJSON;e&&e!=t&&this.data.clear()})),super._afterNew()}_handleDirties(){const t=this.get("geoJSON");let e=this._prevSettings.geoJSON;e&&e!=t&&(this._prevSettings.geoJSON=void 0,this._geoJSONparsed=!1),this._geoJSONparsed||(this._parseGeoJSON(),this._geoJSONparsed=!0)}_prepareChildren(){if(super._prepareChildren(),this._valuesDirty&&this._handleDirties(),this.get("geoJSON")&&(this.isDirty("geoJSON")||this.isDirty("include")||this.isDirty("exclude"))){this._handleDirties();const t=this.chart,e=this.get("exclude");e&&(t&&(t._centerLocation=null),o.each(e,(t=>{const e=this.getDataItemById(t);e&&this._excludeDataItem(e)})),o.each(this._excluded,(t=>{const n=t.get("id");n&&-1==e.indexOf(n)&&this._unexcludeDataItem(t)}))),e&&0!=e.length||(o.each(this._excluded,(t=>{this._unexcludeDataItem(t)})),this._excluded=[]);const n=this.get("include");n&&(t&&(t._centerLocation=null),o.each(this.dataItems,(t=>{const e=t.get("id");e&&-1==n.indexOf(e)?this._notIncludeDataItem(t):this._unNotIncludeDataItem(t)}))),n||(o.each(this._notIncluded,(t=>{this._unNotIncludeDataItem(t)})),this._notIncluded=[])}}_excludeDataItem(t){this._removeGeometry(t.get("geometry")),o.move(this._excluded,t)}_unexcludeDataItem(t){this._addGeometry(t.get("geometry"),this)}_notIncludeDataItem(t){this._removeGeometry(t.get("geometry")),o.move(this._notIncluded,t)}_unNotIncludeDataItem(t){this._addGeometry(t.get("geometry"),this)}checkInclude(t,e,n){if(e){if(0==e.length)return!1;if(-1==e.indexOf(t))return!1}return!(n&&n.length>0&&-1!=n.indexOf(t))}_parseGeoJSON(){const t=this.get("geoJSON");if(t){let e;"FeatureCollection"==t.type?e=t.features:"Feature"==t.type?e=[t]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(t.type)?e=[{geometry:t}]:console.log("nothing found in geoJSON");const n=this.get("geodataNames");if(e){const t=this.get("idField","id");for(let i=0,r=e.length;it.get("id")==i))),n&&(l=n.dataContext),n?l.geometry||(l.geometry=a,l.geometryType=e,n.set("geometry",a),n.set("geometryType",e),this.processDataItem(n)):(l={geometry:a,geometryType:e,madeFromGeoData:!0},l[t]=i,this.data.push(l)),s.softCopyProperties(r.properties,l)}}}}const i="geodataprocessed";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this})}}_placeBulletsContainer(t){this.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){}projection(){const t=this.chart;if(t)return t.get("projection")}geoPath(){const t=this.chart;if(t)return t.getPrivate("geoPath")}_addGeometry(t,e){if(t&&e.get("affectsBounds",!0)){this._geometries.push(t);const e=this.chart;e&&e.markDirtyGeometries()}}_removeGeometry(t){if(t){o.remove(this._geometries,t);const e=this.chart;e&&e.markDirtyGeometries()}}_dispose(){super._dispose();const t=this.chart;t&&t.series.removeValue(this)}_onDataClear(){super._onDataClear(),this._geoJSONparsed=!1,this._markDirtyKey("exclude")}}r.className="MapSeries",r.classNames=i.F.classNames.concat([r.className]);var a=n(5040),l=n(6245),u=n(1479);class h{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const e=this._partials;let n=0;for(let i=0;i0){for(s=t[--o];o>0&&(e=s,n=t[--o],s=e+n,i=n-(s-e),!i););o>0&&(i<0&&t[o-1]<0||i>0&&t[o-1]>0)&&(n=2*i,e=s+n,n==e-s&&(s=e))}return s}}var c=1e-6,p=1e-12,g=Math.PI,d=g/2,f=g/4,m=2*g,_=180/g,y=g/180,v=Math.abs,D=Math.atan,x=Math.atan2,P=Math.cos,w=Math.ceil,S=Math.exp,I=(Math.floor,Math.hypot),M=Math.log,C=(Math.pow,Math.sin),N=Math.sign||function(t){return t>0?1:t<0?-1:0},b=Math.sqrt,E=Math.tan;function L(t){return t>1?d:t<-1?-d:Math.asin(t)}function T(t){return(t=C(t/2))*t}function k(){}function R(t,e){t&&X.hasOwnProperty(t.type)&&X[t.type](t,e)}var z,B,j,G,Y={Feature:function(t,e){R(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,o=n.length;++i{for(let e=0;e0){const e=o[0],i=n.convert({longitude:e[0],latitude:e[1]});t.lineTo(i.x,i.y);for(let e=0;e{i&&!1===e.get("clipBack")&&i.clipAngle(180),r.context(this._display),r(t),r.context(null),i&&i.clipAngle&&i.clipAngle(o)}))}}}const e="linechanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}}markDirtyProjection(){this.markDirty(),this._projectionDirty=!0}_clearDirty(){super._clearDirty(),this._projectionDirty=!1}_getTooltipPoint(){let t=this.get("tooltipX"),e=this.get("tooltipY"),n=0,i=0;if(a.isNumber(t)&&(n=t),a.isNumber(e)&&(i=e),t instanceof l.gG){const e=this.positionToGeoPoint(t.value),o=this.getPrivate("series");if(o){const t=o.chart;if(t){const o=t.convert(e);n=o.x,i=o.y}}}return{x:n,y:i}}positionToGeoPoint(t){const e=this.get("geometry"),n=this.getPrivate("series"),i=n.chart,o=this.dataItem;if(e&&n&&i&&o){const s=o.get("lineType",n.get("lineType"));let r,a,l,u=J(e),h=0,c=0,p=0,g=e.coordinates;if(g){let n;"LineString"==e.type?n=[g]:"MultiLineString"==e.type&&(n=g);for(let e=0;e1){for(let o=1;ot){e=n.length;break}}else 1==i.length&&(a=i[0],l=i[0],c=0,p=1)}if(a&&l){let e,n=(t-c)/(p-c);if("straight"==s){let t=i.convert({longitude:a[0],latitude:a[1]}),e=i.convert({longitude:l[0],latitude:l[1]}),o=t.x+(e.x-t.x)*n,s=t.y+(e.y-t.y)*n;return i.invert({x:o,y:s})}return e=function(t,e){var n=t[0]*y,i=t[1]*y,o=e[0]*y,s=e[1]*y,r=P(i),a=C(i),l=P(s),u=C(s),h=r*P(n),c=r*C(n),p=l*P(o),g=l*C(o),d=2*L(b(T(s-i)+r*l*T(o-n))),f=C(d),m=d?function(t){var e=C(t*=d)/f,n=C(d-t)/f,i=n*h+e*p,o=n*c+e*g,s=n*a+e*u;return[x(o,i)*_,x(s,b(i*i+o*o))*_]}:function(){return[n*_,i*_]};return m.distance=d,m}(a,l)(n),{longitude:e[0],latitude:e[1]}}}}return{longitude:0,latitude:0}}}Q.className="MapLine",Q.classNames=u.T.classNames.concat([Q.className]);var K=n(7144),tt=n(5769);class et extends r{constructor(){super(...arguments),this.mapLines=this.addDisposer(new K.o(tt.YS.new({}),(()=>Q._new(this._root,{},[this.mapLines.template])))),this._types=["LineString","MultiLineString"]}_afterNew(){this.fields.push("lineType"),this._setRawDefault("lineTypeField","lineType"),super._afterNew()}makeMapLine(t){const e=this.children.push(this.mapLines.make());return e._setDataItem(t),this.mapLines.push(e),e}markDirtyProjection(){o.each(this.dataItems,(t=>{let e=t.get("mapLine");e&&e.markDirtyProjection()}))}_prepareChildren(){super._prepareChildren(),this.isDirty("stroke")&&this.mapLines.template.set("stroke",this.get("stroke"))}processDataItem(t){super.processDataItem(t);let e=t.get("mapLine");e||(e=this.makeMapLine(t)),this._handlePointsToConnect(t),t.on("pointsToConnect",(()=>{this._handlePointsToConnect(t)})),t.set("mapLine",e),this._addGeometry(t.get("geometry"),this),e.setPrivate("series",this)}_handlePointsToConnect(t){const e=t.get("pointsToConnect");e&&(o.each(e,(e=>{e.on("geometry",(()=>{this.markDirtyValues(t)})),e.on("longitude",(()=>{this.markDirtyValues(t)})),e.on("latitude",(()=>{this.markDirtyValues(t)}))})),this.markDirtyValues(t))}markDirtyValues(t){if(super.markDirtyValues(),t){const e=t.get("mapLine");if(e){const n=t.get("pointsToConnect");if(n){let i=[];o.each(n,(t=>{const e=t.get("longitude"),n=t.get("latitude");if(null!=e&&null!=n)i.push([e,n]);else{const e=t.get("geometry");if(e){const t=e.coordinates;t&&i.push([t[0],t[1]])}}}));let s={type:"LineString",coordinates:i};t.setRaw("geometry",s),e.set("geometry",s)}else e.set("geometry",t.get("geometry"))}}}disposeDataItem(t){super.disposeDataItem(t);const e=t.get("mapLine");e&&(this.mapLines.removeValue(e),e.dispose())}_excludeDataItem(t){super._excludeDataItem(t);const e=t.get("mapLine");e&&e.setPrivate("visible",!1)}_unexcludeDataItem(t){super._unexcludeDataItem(t);const e=t.get("mapLine");e&&e.setPrivate("visible",!0)}_notIncludeDataItem(t){super._notIncludeDataItem(t);const e=t.get("mapLine");e&&e.setPrivate("visible",!1)}_unNotIncludeDataItem(t){super._unNotIncludeDataItem(t);const e=t.get("mapLine");e&&e.setPrivate("visible",!0)}}function nt(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var i=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),s=new Array(o);++i{this._generate()})),this._generate()}}_generate(){let t=function(){var t,e,n,i,o,s,r,a,l,u,h,p,g=10,d=g,f=90,m=360,_=2.5;function y(){return{type:"MultiLineString",coordinates:D()}}function D(){return nt(w(i/f)*f,n,f).map(h).concat(nt(w(a/m)*m,r,m).map(p)).concat(nt(w(e/g)*g,t,g).filter((function(t){return v(t%f)>c})).map(l)).concat(nt(w(s/d)*d,o,d).filter((function(t){return v(t%m)>c})).map(u))}return y.lines=function(){return D().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[h(i).concat(p(r).slice(1),h(n).reverse().slice(1),p(a).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],a=+t[0][1],r=+t[1][1],i>n&&(t=i,i=n,n=t),a>r&&(t=a,a=r,r=t),y.precision(_)):[[i,a],[n,r]]},y.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],s=+n[0][1],o=+n[1][1],e>t&&(n=e,e=t,t=n),s>o&&(n=s,s=o,o=n),y.precision(_)):[[e,s],[t,o]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(f=+t[0],m=+t[1],y):[f,m]},y.stepMinor=function(t){return arguments.length?(g=+t[0],d=+t[1],y):[g,d]},y.precision=function(c){return arguments.length?(_=+c,l=it(s,o,90),u=ot(e,t,_),h=it(a,r,90),p=ot(i,n,_),y):_},y.extentMajor([[-180,-90+c],[180,90-c]]).extentMinor([[-180,-80-c],[180,80+c]])}();if(t){if(this.get("clipExtent")){const e=this.chart;if(e){const n=e.geoBounds();n&&t.extent([[n.left,n.bottom],[n.right,n.top]])}}const e=this.get("step",10);t.stepMinor([360,360]),t.stepMajor([e,e]),this._dataItem.set("geometry",t())}}}st.className="GraticuleSeries",st.classNames=et.classNames.concat([st.className]);var rt=n(3409),at=n(3783);function lt(t,e){function n(n,i){return n=t(n,i),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,i){return(n=e.invert(n,i))&&t.invert(n[0],n[1])}),n}function ut(t,e){return v(t)>g&&(t-=Math.round(t/m)*m),[t,e]}function ht(t,e,n){return(t%=m)?e||n?lt(pt(t),gt(e,n)):pt(t):e||n?gt(e,n):ut}function ct(t){return function(e,n){return v(e+=t)>g&&(e-=Math.round(e/m)*m),[e,n]}}function pt(t){var e=ct(t);return e.invert=ct(-t),e}function gt(t,e){var n=P(t),i=C(t),o=P(e),s=C(e);function r(t,e){var r=P(e),a=P(t)*r,l=C(t)*r,u=C(e),h=u*n+a*i;return[x(l*o-h*s,a*n-u*i),L(h*o+l*s)]}return r.invert=function(t,e){var r=P(e),a=P(t)*r,l=C(t)*r,u=C(e),h=u*o-l*s;return[x(l*o+u*s,a*n+h*i),L(h*n-a*i)]},r}function dt(){var t,e=[];return{point:function(e,n,i){t.push([e,n,i])},lineStart:function(){e.push(t=[])},lineEnd:k,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function ft(t,e){return v(t[0]-e[0])=0;--s)o.point((h=u[s])[0],h[1]);else i(g.x,g.p.x,-1,o);g=g.p}u=(g=g.o).z,d=!d}while(!g.v);o.lineEnd()}}}function yt(t){if(e=t.length){for(var e,n,i=0,o=t[0];++i=0?1:-1,j=B*z,G=j>g,Y=I*k;if(l.add(x(Y*B*C(j),M*R+Y*P(j))),r+=G?z+B*m:z,G^w>=n^E>=n){var X=Pt(Dt(D),Dt(b));It(X);var Z=Pt(s,X);It(Z);var A=(G^z>=0?-1:1)*L(Z[2]);(i>A||i===A&&(X[0]||X[1]))&&(a+=G^z>=0?1:-1)}}return(r<-c||r0){for(y||(o.polygonStart(),y=!0),o.lineStart(),t=0;t1&&2&l&&h.push(h.pop().concat(h.shift())),r.push(h.filter(bt))}return v}}function bt(t){return t.length>1}function Et(t,e){return((t=t.x)[0]<0?t[1]-d-c:d-t[1])-((e=e.x)[0]<0?e[1]-d-c:d-e[1])}ut.invert=ut;var Lt=Nt((function(){return!0}),(function(t){var e,n=NaN,i=NaN,o=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(s,r){var a=s>0?g:-g,l=v(s-n);v(l-g)0?d:-d),t.point(o,i),t.lineEnd(),t.lineStart(),t.point(a,i),t.point(s,i),e=0):o!==a&&l>=g&&(v(n-o)c?D((C(e)*(s=P(i))*C(n)-C(i)*(o=P(e))*C(t))/(o*s*r)):(e+i)/2}(n,i,s,r),t.point(o,i),t.lineEnd(),t.lineStart(),t.point(a,i),e=0),t.point(n=s,i=r),o=a},lineEnd:function(){t.lineEnd(),n=i=NaN},clean:function(){return 2-e}}}),(function(t,e,n,i){var o;if(null==t)o=n*d,i.point(-g,o),i.point(0,o),i.point(g,o),i.point(g,0),i.point(g,-o),i.point(0,-o),i.point(-g,-o),i.point(-g,0),i.point(-g,o);else if(v(t[0]-e[0])>c){var s=t[0]0?os)&&(o+=i*m));for(var u,h=o;i>0?h>s:h1?0:n<-1?g:Math.acos(n);return((-e[2]<0?-i:i)+m-c)%m}var zt=1e9,Bt=-zt;var jt=t=>t;function Gt(t){return function(e){var n=new Yt;for(var i in t)n[i]=t[i];return n.stream=e,n}}function Yt(){}Yt.prototype={constructor:Yt,point:function(t,e){this.stream.point(t,e)},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()}};var Xt=1/0,Zt=Xt,At=-Xt,Ot=At,Ft={point:function(t,e){tAt&&(At=t),eOt&&(Ot=e)},lineStart:k,lineEnd:k,polygonStart:k,polygonEnd:k,result:function(){var t=[[Xt,Zt],[At,Ot]];return At=Ot=-(Zt=Xt=1/0),t}},Wt=Ft;function Vt(t,e,n){var i=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=i&&t.clipExtent(null),O(n,t.stream(Wt)),e(Wt.result()),null!=i&&t.clipExtent(i),t}function Ht(t,e,n){return Vt(t,(function(n){var i=e[1][0]-e[0][0],o=e[1][1]-e[0][1],s=Math.min(i/(n[1][0]-n[0][0]),o/(n[1][1]-n[0][1])),r=+e[0][0]+(i-s*(n[1][0]+n[0][0]))/2,a=+e[0][1]+(o-s*(n[1][1]+n[0][1]))/2;t.scale(150*s).translate([r,a])}),n)}function Jt(t,e,n){return Ht(t,[[0,0],e],n)}function $t(t,e,n){return Vt(t,(function(n){var i=+e,o=i/(n[1][0]-n[0][0]),s=(i-o*(n[1][0]+n[0][0]))/2,r=-o*n[0][1];t.scale(150*o).translate([s,r])}),n)}function Ut(t,e,n){return Vt(t,(function(n){var i=+e,o=i/(n[1][1]-n[0][1]),s=-o*n[0][0],r=(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([s,r])}),n)}var qt=16,Qt=P(30*y);function Kt(t,e){return+e?function(t,e){function n(i,o,s,r,a,l,u,h,p,g,d,f,m,_){var y=u-i,D=h-o,P=y*y+D*D;if(P>4*e&&m--){var w=r+g,S=a+d,I=l+f,M=b(w*w+S*S+I*I),C=L(I/=M),N=v(v(I)-1)e||v((y*R+D*z)/P-.5)>.3||r*g+a*d+l*f0,o=v(e)>c;function s(t,n){return P(t)*P(n)>e}function r(t,n,i){var o=[1,0,0],s=Pt(Dt(t),Dt(n)),r=xt(s,s),a=s[0],l=r-a*a;if(!l)return!i&&t;var u=e*r/l,h=-e*a/l,p=Pt(o,s),d=St(o,u);wt(d,St(s,h));var f=p,m=xt(d,f),_=xt(f,f),y=m*m-_*(xt(d,d)-1);if(!(y<0)){var D=b(y),x=St(f,(-m-D)/_);if(wt(x,d),x=vt(x),!i)return x;var P,w=t[0],S=n[0],I=t[1],M=n[1];S0^x[1]<(v(x[0]-w)g^(w<=x[0]&&x[0]<=S)){var E=St(f,(-m+D)/_);return wt(E,d),[x,vt(E)]}}}function a(e,n){var o=i?t:g-t,s=0;return e<-o?s|=1:e>o&&(s|=2),n<-o?s|=4:n>o&&(s|=8),s}return Nt(s,(function(t){var e,n,l,u,h;return{lineStart:function(){u=l=!1,h=1},point:function(c,p){var d,f=[c,p],m=s(c,p),_=i?m?0:a(c,p):m?a(c+(c<0?g:-g),p):0;if(!e&&(u=l=m)&&t.lineStart(),m!==l&&(!(d=r(e,f))||ft(e,d)||ft(f,d))&&(f[2]=1),m!==l)h=0,m?(t.lineStart(),d=r(f,e),t.point(d[0],d[1])):(d=r(e,f),t.point(d[0],d[1],2),t.lineEnd()),e=d;else if(o&&e&&i^m){var y;_&n||!(y=r(f,e,!0))||(h=0,i?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!m||e&&ft(e,f)||t.point(f[0],f[1]),e=f,l=m,n=_},lineEnd:function(){l&&t.lineEnd(),e=null},clean:function(){return h|(u&&l)<<1}}}),(function(e,i,o,s){kt(s,t,n,o,e,i)}),i?[0,-t]:[-g,t-g])}(N=t*y):(N=null,Lt),j()):N*_},R.clipExtent=function(t){return arguments.length?(T=null==t?(L=i=o=s=null,jt):function(t,e,n,i){function o(o,s){return t<=o&&o<=n&&e<=s&&s<=i}function s(o,s,a,u){var h=0,c=0;if(null==o||(h=r(o,a))!==(c=r(s,a))||l(o,s)<0^a>0)do{u.point(0===h||3===h?t:n,h>1?i:e)}while((h=(h+a+4)%4)!==c);else u.point(s[0],s[1])}function r(i,o){return v(i[0]-t)0?0:3:v(i[0]-n)0?2:1:v(i[1]-e)0?1:0:o>0?3:2}function a(t,e){return l(t.x,e.x)}function l(t,e){var n=r(t,1),i=r(e,1);return n!==i?n-i:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(r){var l,u,h,c,p,g,d,f,m,_,y,v=r,D=dt(),x={point:P,lineStart:function(){x.point=w,u&&u.push(h=[]),_=!0,m=!1,d=f=NaN},lineEnd:function(){l&&(w(c,p),g&&m&&D.rejoin(),l.push(D.result())),x.point=P,m&&v.lineEnd()},polygonStart:function(){v=D,l=[],u=[],y=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,o=u.length;ni&&(p-s)*(i-r)>(g-r)*(t-s)&&++e:g<=i&&(p-s)*(i-r)<(g-r)*(t-s)&&--e;return e}(),n=y&&e,o=(l=Ct(l)).length;(n||o)&&(r.polygonStart(),n&&(r.lineStart(),s(null,null,1,r),r.lineEnd()),o&&_t(l,a,e,s,r),r.polygonEnd()),v=r,l=u=h=null}};function P(t,e){o(t,e)&&v.point(t,e)}function w(s,r){var a=o(s,r);if(u&&h.push([s,r]),_)c=s,p=r,g=a,_=!1,a&&(v.lineStart(),v.point(s,r));else if(a&&m)v.point(s,r);else{var l=[d=Math.max(Bt,Math.min(zt,d)),f=Math.max(Bt,Math.min(zt,f))],D=[s=Math.max(Bt,Math.min(zt,s)),r=Math.max(Bt,Math.min(zt,r))];!function(t,e,n,i,o,s){var r,a=t[0],l=t[1],u=0,h=1,c=e[0]-a,p=e[1]-l;if(r=n-a,c||!(r>0)){if(r/=c,c<0){if(r0){if(r>h)return;r>u&&(u=r)}if(r=o-a,c||!(r<0)){if(r/=c,c<0){if(r>h)return;r>u&&(u=r)}else if(c>0){if(r0)){if(r/=p,p<0){if(r0){if(r>h)return;r>u&&(u=r)}if(r=s-l,p||!(r<0)){if(r/=p,p<0){if(r>h)return;r>u&&(u=r)}else if(p>0){if(r0&&(t[0]=a+u*c,t[1]=l+u*p),h<1&&(e[0]=a+h*c,e[1]=l+h*p),!0}}}}}(l,D,t,e,n,i)?a&&(v.lineStart(),v.point(s,r),y=!1):(m||(v.lineStart(),v.point(l[0],l[1])),v.point(D[0],D[1]),a||v.lineEnd(),y=!1)}d=s,f=r,m=a}return x}}(L=+t[0][0],i=+t[0][1],o=+t[1][0],s=+t[1][1]),j()):null==L?null:[[L,i],[o,s]]},R.scale=function(t){return arguments.length?(p=+t,B()):p},R.translate=function(t){return arguments.length?(d=+t[0],f=+t[1],B()):[d,f]},R.center=function(t){return arguments.length?(m=t[0]%360*y,D=t[1]%360*y,B()):[m*_,D*_]},R.rotate=function(t){return arguments.length?(x=t[0]%360*y,w=t[1]%360*y,S=t.length>2?t[2]%360*y:0,B()):[x*_,w*_,S*_]},R.angle=function(t){return arguments.length?(I=t%360*y,B()):I*_},R.reflectX=function(t){return arguments.length?(M=t?-1:1,B()):M<0},R.reflectY=function(t){return arguments.length?(C=t?-1:1,B()):C<0},R.precision=function(t){return arguments.length?(r=Kt(a,k=t*t),j()):b(k)},R.fitExtent=function(t,e){return Ht(R,t,e)},R.fitSize=function(t,e){return Jt(R,t,e)},R.fitWidth=function(t,e){return $t(R,t,e)},R.fitHeight=function(t,e){return Ut(R,t,e)},function(){return e=t.apply(this,arguments),R.invert=e.invert&&z,B()}}function oe(t,e){return[t,M(E((d+e)/2))]}function se(){return function(t){var e,n,i,o=ne(t),s=o.center,r=o.scale,a=o.translate,l=o.clipExtent,u=null;function h(){var s=g*r(),a=o(function(t){function e(e){return(e=t(e[0]*y,e[1]*y))[0]*=_,e[1]*=_,e}return t=ht(t[0]*y,t[1]*y,t.length>2?t[2]*y:0),e.invert=function(e){return(e=t.invert(e[0]*y,e[1]*y))[0]*=_,e[1]*=_,e},e}(o.rotate()).invert([0,0]));return l(null==u?[[a[0]-s,a[1]-s],[a[0]+s,a[1]+s]]:t===oe?[[Math.max(a[0]-s,u),e],[Math.min(a[0]+s,n),i]]:[[u,Math.max(a[1]-s,e)],[n,Math.min(a[1]+s,i)]])}return o.scale=function(t){return arguments.length?(r(t),h()):r()},o.translate=function(t){return arguments.length?(a(t),h()):a()},o.center=function(t){return arguments.length?(s(t),h()):s()},o.clipExtent=function(t){return arguments.length?(null==t?u=e=n=i=null:(u=+t[0][0],e=+t[0][1],n=+t[1][0],i=+t[1][1]),h()):null==u?null:[[u,e],[n,i]]},h()}(oe).scale(961/m)}oe.invert=function(t,e){return[t,2*D(S(e))-d]};var re=n(9395);class ae extends rt.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.interfaceColors,e=this.rule.bind(this);e("MapChart").setAll({projection:se(),panX:"translateX",panY:"translateY",pinchZoom:!0,zoomStep:2,zoomLevel:1,rotationX:0,rotationY:0,rotationZ:0,maxZoomLevel:32,minZoomLevel:1,wheelY:"zoom",wheelX:"none",animationEasing:re.out(re.cubic),wheelEasing:re.out(re.cubic),wheelDuration:0,wheelSensitivity:1,maxPanOut:.4,centerMapOnZoomOut:!0});{const n=e("MapLine");n.setAll({precision:.5,role:"figure"}),(0,at.v)(n,"stroke",t,"grid")}e("MapPolygonSeries").setAll({affectsBounds:!0}),e("MapPointSeries").setAll({affectsBounds:!1,clipFront:!1,clipBack:!0,autoScale:!1}),e("ClusteredPointSeries").setAll({minDistance:20,scatterDistance:3,scatterRadius:8,stopClusterZoom:.95}),e("MapLineSeries").setAll({affectsBounds:!1});{const n=e("MapPolygon");n.setAll({precision:.5,isMeasured:!1,role:"figure",fillOpacity:1,position:"absolute",strokeWidth:.2,strokeOpacity:1}),(0,at.v)(n,"fill",t,"primaryButton"),(0,at.v)(n,"stroke",t,"background")}e("Button",["zoomtools","home"]).setAll({visible:!1}),e("GraticuleSeries").setAll({step:10})}}var le,ue,he,ce,pe=n(5829),ge=n(7142),de=new h,fe=new h,me={point:k,lineStart:k,lineEnd:k,polygonStart:function(){me.lineStart=_e,me.lineEnd=De},polygonEnd:function(){me.lineStart=me.lineEnd=me.point=k,de.add(v(fe)),fe=new h},result:function(){var t=de/2;return de=new h,t}};function _e(){me.point=ye}function ye(t,e){me.point=ve,le=he=t,ue=ce=e}function ve(t,e){fe.add(ce*t-he*e),he=t,ce=e}function De(){ve(le,ue)}var xe,Pe,we,Se,Ie=me,Me=0,Ce=0,Ne=0,be=0,Ee=0,Le=0,Te=0,ke=0,Re=0,ze={point:Be,lineStart:je,lineEnd:Xe,polygonStart:function(){ze.lineStart=Ze,ze.lineEnd=Ae},polygonEnd:function(){ze.point=Be,ze.lineStart=je,ze.lineEnd=Xe},result:function(){var t=Re?[Te/Re,ke/Re]:Le?[be/Le,Ee/Le]:Ne?[Me/Ne,Ce/Ne]:[NaN,NaN];return Me=Ce=Ne=be=Ee=Le=Te=ke=Re=0,t}};function Be(t,e){Me+=t,Ce+=e,++Ne}function je(){ze.point=Ge}function Ge(t,e){ze.point=Ye,Be(we=t,Se=e)}function Ye(t,e){var n=t-we,i=e-Se,o=b(n*n+i*i);be+=o*(we+t)/2,Ee+=o*(Se+e)/2,Le+=o,Be(we=t,Se=e)}function Xe(){ze.point=Be}function Ze(){ze.point=Oe}function Ae(){Fe(xe,Pe)}function Oe(t,e){ze.point=Fe,Be(xe=we=t,Pe=Se=e)}function Fe(t,e){var n=t-we,i=e-Se,o=b(n*n+i*i);be+=o*(we+t)/2,Ee+=o*(Se+e)/2,Le+=o,Te+=(o=Se*t-we*e)*(we+t),ke+=o*(Se+e),Re+=3*o,Be(we=t,Se=e)}var We=ze;function Ve(t){this._context=t}Ve.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,m)}},result:k};var He,Je,$e,Ue,qe,Qe=new h,Ke={point:k,lineStart:function(){Ke.point=tn},lineEnd:function(){He&&en(Je,$e),Ke.point=k},polygonStart:function(){He=!0},polygonEnd:function(){He=null},result:function(){var t=+Qe;return Qe=new h,t}};function tn(t,e){Ke.point=en,Je=Ue=t,$e=qe=e}function en(t,e){Ue-=t,qe-=e,Qe.add(b(Ue*Ue+qe*qe)),Ue=t,qe=e}var nn=Ke;let on,sn,rn,an;class ln{constructor(t){this._append=null==t?un:function(t){const e=Math.floor(t);if(!(e>=0))throw new RangeError(`invalid digits: ${t}`);if(e>15)return un;if(e!==on){const t=10**e;on=e,sn=function(e){let n=1;this._+=e[0];for(const i=e.length;n=0?1:-1,o=i*n,s=P(e=(e*=y)/2+f),r=C(e),a=Fn*r,l=On*s+a*P(o),u=a*i*C(o);ni.add(x(u,l)),An=t,On=s,Fn=r}function ui(t){return ii=new h,O(t,oi),2*ii}var hi={point:ci,lineStart:gi,lineEnd:di,polygonStart:function(){hi.point=fi,hi.lineStart=mi,hi.lineEnd=_i,Kn=new h,oi.polygonStart()},polygonEnd:function(){oi.polygonEnd(),hi.point=ci,hi.lineStart=gi,hi.lineEnd=di,ni<0?(Wn=-(Hn=180),Vn=-(Jn=90)):Kn>c?Jn=90:Kn<-c&&(Vn=-90),ei[0]=Wn,ei[1]=Hn},sphere:function(){Wn=-(Hn=180),Vn=-(Jn=90)}};function ci(t,e){ti.push(ei=[Wn=t,Hn=t]),eJn&&(Jn=e)}function pi(t,e){var n=Dt([t*y,e*y]);if(Qn){var i=Pt(Qn,n),o=Pt([i[1],-i[0],0],i);It(o),o=vt(o);var s,r=t-$n,a=r>0?1:-1,l=o[0]*_*a,u=v(r)>180;u^(a*$nJn&&(Jn=s):u^(a*$n<(l=(l+360)%360-180)&&lJn&&(Jn=e)),u?t<$n?yi(Wn,t)>yi(Wn,Hn)&&(Hn=t):yi(t,Hn)>yi(Wn,Hn)&&(Wn=t):Hn>=Wn?(tHn&&(Hn=t)):t>$n?yi(Wn,t)>yi(Wn,Hn)&&(Hn=t):yi(t,Hn)>yi(Wn,Hn)&&(Wn=t)}else ti.push(ei=[Wn=t,Hn=t]);eJn&&(Jn=e),Qn=n,$n=t}function gi(){hi.point=pi}function di(){ei[0]=Wn,ei[1]=Hn,hi.point=ci,Qn=null}function fi(t,e){if(Qn){var n=t-$n;Kn.add(v(n)>180?n+(n>0?360:-360):n)}else Un=t,qn=e;oi.point(t,e),pi(t,e)}function mi(){oi.lineStart()}function _i(){fi(Un,qn),oi.lineEnd(),v(Kn)>c&&(Wn=-(Hn=180)),ei[0]=Wn,ei[1]=Hn,Qn=null}function yi(t,e){return(e-=t)<0?e+360:e}function vi(t,e){return t[0]-e[0]}function Di(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eyi(i[0],i[1])&&(i[1]=o[1]),yi(o[0],i[1])>yi(i[0],i[1])&&(i[0]=o[0])):s.push(i=o);for(r=-1/0,e=0,i=s[n=s.length-1];e<=n;i=o,++e)o=s[e],(a=yi(i[1],o[0]))>r&&(r=a,Wn=o[0],Hn=i[1])}return ti=ei=null,Wn===1/0||Vn===1/0?[[NaN,NaN],[NaN,NaN]]:[[Wn,Vn],[Hn,Jn]]}(t);if(e){const t={left:e[0][0],right:e[1][0],top:e[1][1],bottom:e[0][1]};return t.right=90&&(t=89.9999),e>=180&&(e=179.9999);let s=Math.min(90,(e-i)/Math.ceil((e-i)/90)),r=(t-n)/Math.ceil((t-n)/90);for(let a=i;ae&&(s=e-a);for(let e=a;e<=a+s;e+=5)i.push([e,t]);for(let e=t;e>=n;e-=r)i.push([a+s,e]);for(let t=a+s;t>=a;t-=5)i.push([t,n]);for(let e=n;e<=t;e+=r)i.push([a,e])}return{type:"MultiPolygon",coordinates:o}}function Mi(t){let e=Ci(t.longitude),n=Math.asin(Math.sin(t.latitude*Nn.RADIANS))*Nn.DEGREES,i=Ci(t.latitude);return Math.abs(i)>90&&(e=Ci(e+180)),t.longitude=e,t.latitude=n,t}function Ci(t){return(t%=360)>180&&(t-=360),t<-180&&(t+=360),t}var Ni=n(7652);class bi extends pe.j{constructor(){super(...arguments),this._pLat=0,this._pLon=0,this._movePoints={},this._downZoomLevel=1,this._doubleDownDistance=0,this._dirtyGeometries=!1,this._geometryColection={type:"GeometryCollection",geometries:[]},this._centerLocation=null,this._mapBounds=[[0,0],[0,0]],this._geoCentroid={longitude:0,latitude:0},this._geoBounds={left:0,right:0,top:0,bottom:0},this._prevGeoBounds={left:0,right:0,top:0,bottom:0},this._dispatchBounds=!1,this._mapFitted=!1,this._centerX=0,this._centerY=0}_makeGeoPath(){const t=this.get("projection"),e=function(t,e){let n,i,o=3,s=4.5;function r(t){return t&&("function"==typeof s&&i.pointRadius(+s.apply(this,arguments)),O(t,n(i))),i.result()}return r.area=function(t){return O(t,n(Ie)),Ie.result()},r.measure=function(t){return O(t,n(nn)),nn.result()},r.bounds=function(t){return O(t,n(Wt)),Wt.result()},r.centroid=function(t){return O(t,n(We)),We.result()},r.projection=function(e){return arguments.length?(n=null==e?(t=null,jt):(t=e).stream,r):t},r.context=function(t){return arguments.length?(i=null==t?(e=null,new ln(o)):new Ve(e=t),"function"!=typeof s&&i.pointRadius(s),r):e},r.pointRadius=function(t){return arguments.length?(s="function"==typeof t?t:(i.pointRadius(+t),+t),r):s},r.digits=function(t){if(!arguments.length)return o;if(null==t)o=null;else{const e=Math.floor(t);if(!(e>=0))throw new RangeError(`invalid digits: ${t}`);o=e}return null===e&&(i=new ln(o)),r},r.projection(t).digits(o).context(e)}();e.projection(t),this.setPrivateRaw("geoPath",e)}geoPoint(){return this.invert(this.seriesContainer.toGlobal({x:this.width()/2,y:this.height()/2}))}geoCentroid(){return this._geoCentroid}geoBounds(){return this._geoBounds}_handleSetWheel(){const t=this.get("wheelX"),e=this.get("wheelY"),n=this.chartContainer;"none"!=t||"none"!=e?(this._wheelDp&&this._wheelDp.dispose(),this._wheelDp=n.events.on("wheel",(i=>{const o=this.get("wheelEasing"),s=this.get("wheelSensitivity",1),r=this.get("wheelDuration",0),a=i.originalEvent;let l=!1;if(!Ni.isLocalEvent(a,this))return;l=!0;const u=n._display.toLocal(i.point);if("zoom"==e){if(this.get("zoomLevel")==this.get("minZoomLevel",1)&&a.deltaY>0)return;this._handleWheelZoom(a.deltaY,u)}else"rotateY"==e?this._handleWheelRotateY(a.deltaY/5*s,r,o):"rotateX"==e&&this._handleWheelRotateX(a.deltaY/5*s,r,o);"zoom"==t?this._handleWheelZoom(a.deltaX,u):"rotateY"==t?this._handleWheelRotateY(a.deltaX/5*s,r,o):"rotateX"==t&&this._handleWheelRotateX(a.deltaX/5*s,r,o),a.preventDefault()})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_prepareChildren(){super._prepareChildren();const t=this.get("projection"),e=this.innerWidth(),n=this.innerHeight(),i=this._geometryColection.geometries;if(this.isDirty("projection")){this._makeGeoPath(),this.markDirtyProjection(),this._fitMap(),t.scale(this.getPrivate("mapScale")*this.get("zoomLevel",1)),t.rotate&&t.rotate([this.get("rotationX",0),this.get("rotationY",0),this.get("rotationZ",0)]);let i=this._prevSettings.projection;if(i&&i!=t){let o=e/2,s=n/2;if(i.invert){let e=i.invert([o,s]);if(e){let n=t(e);if(n){let e=t.translate(),i=o-(n[0]-e[0]),r=s-(n[1]-e[1]);t.translate([i,r]),this.setRaw("translateX",i),this.setRaw("translateY",r)}}}}}if(this.isPrivateDirty("projectionBlend")&&this._projectionBlendData){const t=this._projectionBlendData,e=this.getPrivate("projectionBlend",0);t.mutate(e);const n=t.sourceScale+(t.targetScale-t.sourceScale)*e,i=t.sourceTranslateX+(t.targetTranslateX-t.sourceTranslateX)*e,o=t.sourceTranslateY+(t.targetTranslateY-t.sourceTranslateY)*e;t.blended.scale(n*this.get("zoomLevel",1)),t.blended.translate([i,o]),t.blended.rotate&&t.blended.rotate([this.get("rotationX",0),this.get("rotationY",0),this.get("rotationZ",0)]),this.setPrivateRaw("mapScale",n),this.setRaw("translateX",i),this.setRaw("translateY",o),this.markDirtyProjection(),e>=1&&(this._projectionRaw=t.targetRaw,this._projectionBlendData=void 0,this._projectionBlendAnim=void 0,this.set("projection",t.target))}if((this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this._dirtyGeometries&&(this._geometryColection.geometries=[],this.series.each((t=>{o.pushAll(this._geometryColection.geometries,t._geometries)})),this._fitMap()),0!=i.length&&(e!=this._pw||n!=this._ph||this._dirtyGeometries)&&e>0&&n>0){let i=e/2,o=n/2;t.fitSize([e,n],this._geometryColection);const s=t.scale();if(this.setPrivateRaw("mapScale",s),t.scale(s*this.get("zoomLevel",1)),this._centerLocation){let e=t(this._centerLocation);if(e){let n=t.translate(),s=i-(e[0]-n[0]),r=o-(e[1]-n[1]);t.translate([s,r]),this.setRaw("translateX",s),this.setRaw("translateY",r),this._centerX=n[0],this._centerY=n[1]}}this.markDirtyProjection();const r=this.getPrivate("geoPath");this._mapBounds=r.bounds(this._geometryColection)}if(this._pw=e,this._ph=n,this.isDirty("zoomControl")){const t=this._prevSettings.zoomControl,e=this.get("zoomControl");e!==t&&(this._disposeProperty("zoomControl"),t&&t.dispose(),e&&(e.setPrivate("chart",this),this.children.push(e)),this.setRaw("zoomControl",e))}if(this.isDirty("zoomLevel")){t.scale(this.getPrivate("mapScale")*this.get("zoomLevel",1)),this.markDirtyProjection(),this.series.each((t=>{t.isType("MapPointSeries")&&t.get("autoScale")&&o.each(t.dataItems,(t=>{const e=t.bullets;e&&o.each(e,(t=>{const e=t.get("sprite");e&&e.set("scale",this.get("zoomLevel"))}))}))}));const e=this.get("zoomControl");if(e){const t=this.get("zoomLevel",1);t==this.get("minZoomLevel",1)?e.minusButton.set("disabled",!0):e.minusButton.set("disabled",!1),t==this.get("maxZoomLevel",32)?e.plusButton.set("disabled",!0):e.plusButton.set("disabled",!1)}}(this.isDirty("translateX")||this.isDirty("translateY"))&&(t.translate([this.get("translateX",this.width()/2),this.get("translateY",this.height()/2)]),this.markDirtyProjection()),t.rotate&&(this.isDirty("rotationX")||this.isDirty("rotationY")||this.isDirty("rotationZ"))&&(t.rotate([this.get("rotationX",0),this.get("rotationY",0),this.get("rotationZ",0)]),this.markDirtyProjection()),(this.isDirty("pinchZoom")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_fitMap(){const t=this.get("projection");let e=this.innerWidth(),n=this.innerHeight();if(e>0&&n>0){t.fitSize([e,n],this._geometryColection),this.setPrivateRaw("mapScale",t.scale());const i=t.translate();this.setRaw("translateX",i[0]),this.setRaw("translateY",i[1]),this._centerX=i[0],this._centerY=i[1];const o=this.getPrivate("geoPath");this._mapBounds=o.bounds(this._geometryColection),this._geoCentroid=Pi(this._geometryColection);const s=Si(this._geometryColection);if(this._geoBounds=s,this._geometryColection.geometries.length>0){s.left=Nn.round(this._geoBounds.left,3),s.right=Nn.round(this._geoBounds.right,3),s.top=Nn.round(this._geoBounds.top,3),s.bottom=Nn.round(this._geoBounds.bottom,3);const t=this._prevGeoBounds;t&&!Ni.sameBounds(s,t)&&(this._dispatchBounds=!0,this._prevGeoBounds=s)}this._mapFitted=!0}}homeGeoPoint(){let t=this.get("homeGeoPoint");if(!t){const e=this.getPrivate("geoPath").bounds(this._geometryColection),n=e[0][0],i=e[0][1],o=e[1][0],s=e[1][1];t=this.invert({x:n+(o-n)/2,y:i+(s-i)/2})}return t}goHome(t){this.zoomToGeoPoint(this.homeGeoPoint(),this.get("homeZoomLevel",1),!0,t,this.get("homeRotationX"),this.get("homeRotationY"))}_updateChildren(){const t=this.get("projection");if(t.invert){let e=this.innerWidth(),n=this.innerHeight();e>0&&n>0&&(this._centerLocation=t.invert([this.innerWidth()/2,this.innerHeight()/2]))}super._updateChildren()}_afterChanged(){if(super._afterChanged(),this._dispatchBounds){this._dispatchBounds=!1;const t="geoboundschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}}_setUpTouch(){this.chartContainer._display.cancelTouch||(this.chartContainer._display.cancelTouch=!!(this.get("pinchZoom")||this.get("panX")||this.get("panY")))}markDirtyGeometries(){this._dirtyGeometries=!0,this.markDirty()}markDirtyProjection(){this.series.each((t=>{t.markDirtyProjection()}))}_afterNew(){this._defaultThemes.push(ae.new(this._root)),this._settings.themeTags=Ni.mergeTags(this._settings.themeTags,["map"]),this.children.push(this.bulletsContainer),super._afterNew(),this._makeGeoPath(),this.chartContainer.children.push(this.seriesContainer),null==this.get("translateX")&&this.set("translateX",this.width()/2),null==this.get("translateY")&&this.set("translateY",this.height()/2),this.chartContainer.set("interactive",!0),this.chartContainer.set("interactiveChildren",!1),this.chartContainer.set("background",ge.A.new(this._root,{themeTags:["map","background"],fill:Mn.Il.fromHex(0),fillOpacity:0})),this._disposers.push(this.chartContainer.events.on("pointerdown",(t=>{this._handleChartDown(t)}))),this._disposers.push(this.chartContainer.events.on("globalpointerup",(t=>{this._handleChartUp(t)}))),this._disposers.push(this.chartContainer.events.on("globalpointermove",(t=>{this._handleChartMove(t)})));let t=!1;for(let e=0;e0){this._downTranslateX=this.get("translateX"),this._downTranslateY=this.get("translateY"),this._downRotationX=this.get("rotationX"),this._downRotationY=this.get("rotationY"),this._downRotationZ=this.get("rotationZ");const t=this.chartContainer._getDownPointId();if(t){let e=this._movePoints[t];e&&(this.chartContainer._downPoints[t]=e)}}else if(0==n){let e=this.chartContainer.get("background");if(e&&e.events.enableType("click"),this.get("panX")||this.get("panY")){this._za&&this._za.stop(),this._txa&&this._txa.stop(),this._tya&&this._tya.stop(),this._rxa&&this._rxa.stop(),this._rya&&this._rya.stop();const e=this.chartContainer._display.toLocal(t.point);this._downTranslateX=this.get("translateX"),this._downTranslateY=this.get("translateY"),this._downRotationX=this.get("rotationX"),this._downRotationY=this.get("rotationY"),this._downRotationZ=this.get("rotationZ");let n=this.get("projection");if(n.invert){let t=n.invert([e.x,e.y]),i=n.invert([e.x+1,e.y+1]);t&&i&&(this._pLon=Math.abs(i[0]-t[0]),this._pLat=Math.abs(i[1]-t[1]))}}}}invert(t){let e=this.get("projection");if(e.invert){const n=e.invert([t.x,t.y]);if(n)return{longitude:n[0],latitude:n[1]}}return{longitude:0,latitude:0}}convert(t,e,n){let i,o=this.get("projection");if(o.rotate||(e=void 0,n=void 0),null!=e||null!=n){null==e&&(e=0),null==n&&(n=0);let s=o.rotate();o.rotate([e,n,0]),i=o([t.longitude,t.latitude]),o.rotate(s)}else i=o([t.longitude,t.latitude]);return i?{x:i[0],y:i[1]}:{x:0,y:0}}_handleChartUp(t){this.chartContainer._downPoints={}}_handlePinch(){const t=this.chartContainer;let e=0,n=[],i=[];if(s.each(t._downPoints,((t,o)=>{n[e]=o;let s=this._movePoints[t];s&&(i[e]=s),e++})),n.length>1&&i.length>1){const e=t._display;let o=n[0],s=n[1],r=i[0],a=i[1];if(o&&s&&r&&a){o=e.toLocal(o),s=e.toLocal(s),r=e.toLocal(r),a=e.toLocal(a);let t=Math.hypot(s.x-o.x,s.y-o.y),n=Math.hypot(a.x-r.x,a.y-r.y)/t*this._downZoomLevel;n=Nn.fitToRange(n,this.get("minZoomLevel",1),this.get("maxZoomLevel",32));let i={x:r.x+(a.x-r.x)/2,y:r.y+(a.y-r.y)/2},l={x:o.x+(s.x-o.x)/2,y:o.y+(s.y-o.y)/2},u=this._downTranslateX||0,h=this._downTranslateY||0,c=this._downZoomLevel,p=i.x-(-u+l.x)/c*n,g=i.y-(-h+l.y)/c*n;this.set("zoomLevel",n),this.set("translateX",p),this.set("translateY",g)}}}_handleChartMove(t){const e=this.chartContainer;let n=e._getDownPoint();const i=e._getDownPointId(),o=t.originalEvent.pointerId;if(this.get("pinchZoom")&&o&&(this._movePoints[o]=t.point,s.keys(e._downPoints).length>1))this._handlePinch();else if((!i||!o||o==i)&&n){const i=this.get("panX"),o=this.get("panY");if("none"!=i||"none"!=o){const s=e._display;let r=s.toLocal(t.point);n=s.toLocal(n);let l=this._downTranslateX,u=this._downTranslateY;if(Math.hypot(n.x-r.x,n.y-r.y)>5){let t=e.get("background");if(t&&t.events.disableType("click"),a.isNumber(l)&&a.isNumber(u)){let t=this.get("projection");const e=this.get("zoomLevel",1),s=this.get("maxPanOut",.4),a=this._mapBounds,h=this.width(),c=this.height(),p=a[1][0]-a[0][0],g=a[1][1]-a[0][1];if("translateX"==i){l+=r.x-n.x;const t=h/2-(h/2-this._centerX)*e;l=Math.min(l,t+p*s*e),l=Math.max(l,t-p*s*e)}if("translateY"==o){u+=r.y-n.y;const t=c/2-(c/2-this._centerY)*e;u=Math.min(u,t+g*s*e),u=Math.max(u,t-g*s*e)}if(this.set("translateX",l),this.set("translateY",u),t.invert){let e=t.invert([n.x,n.y]);location&&e&&("rotateX"==i&&this.set("rotationX",this._downRotationX-(n.x-r.x)*this._pLon),"rotateY"==o&&this.set("rotationY",this._downRotationY+(n.y-r.y)*this._pLat))}}}}}}_handleWheelRotateY(t,e,n){this._rya=this.animate({key:"rotationY",to:this.get("rotationY",0)-t,duration:e,easing:n})}_handleWheelRotateX(t,e,n){this._rxa=this.animate({key:"rotationX",to:this.get("rotationX",0)-t,duration:e,easing:n})}_handleWheelZoom(t,e){let n=this.get("zoomStep",2),i=this.get("zoomLevel",1),o=i;t>0?o=i/n:t<0&&(o=i*n),o!=i&&this.zoomToPoint(e,o)}zoomToGeoBounds(t,e,n,i){t.righto[1][1]&&(r.y=o[1][1]);let a=this.get("zoomLevel",1),l=s.x,u=r.x,h=s.y,c=r.y,p=this.seriesContainer,g=.9*Math.min(p.innerWidth()/(u-l)*a,p.innerHeight()/(c-h)*a),d=l+(u-l)/2,f=h+(c-h)/2,m=this.invert({x:d,y:f});return null==n&&null==i||this.rotate(n,i),this.zoomToGeoPoint(m,g,!0,e)}zoomToPoint(t,e,n,i){e&&(e=Nn.fitToRange(e,this.get("minZoomLevel",1),this.get("maxZoomLevel",32))),a.isNumber(i)||(i=this.get("animationDuration",0));const o=this.get("animationEasing"),s=this.get("zoomLevel",1);this.get("centerMapOnZoomOut")&&e==this.get("homeZoomLevel",1)&&(t=this.convert(this.homeGeoPoint(),this.get("homeRotationX"),this.get("homeRotationY")),n=!0);let r=t.x,l=t.y,u=this.get("translateX",0),h=this.get("translateY",0),c=r,p=l;n&&(c=this.width()/2,p=this.height()/2);let g=c-(r-u)/s*e,d=p-(l-h)/s*e;return this._txa=this.animate({key:"translateX",to:g,duration:i,easing:o}),this._tya=this.animate({key:"translateY",to:d,duration:i,easing:o}),this._za=this.animate({key:"zoomLevel",to:e,duration:i,easing:o}),s!=e&&this._root.readerAlert(this._t("Zoom level changed to %1",this._root.locale,a.numberToString(e))),this._za}zoomToGeoPoint(t,e,n,i,o,s){let r=this.convert(t,o,s);if(null==o&&null==s||this.rotate(o,s,i),r)return this.zoomToPoint(r,e,n,i)}rotate(t,e,n){if(this.get("projection").rotate){a.isNumber(n)||(n=this.get("animationDuration",0));const i=this.get("animationEasing");null!=t&&this.animate({key:"rotationX",to:t,duration:n,easing:i}),null!=e&&this.animate({key:"rotationY",to:e,duration:n,easing:i})}}animateProjection(t,e,n,i,o){this._projectionBlendAnim&&(this._projectionBlendAnim.stop(),this._projectionBlendAnim=void 0,this._projectionBlendData=void 0),o&&(this._projectionRaw=o);const s=this._projectionRaw;if(!s)return this.set("projection",t),void(this._projectionRaw=e);if(null==n&&(n=this.get("animationDuration",0)),!n)return this.set("projection",t),void(this._projectionRaw=e);i||(i=this.get("animationEasing")),this._za&&this._za.stop(),this._txa&&this._txa.stop(),this._tya&&this._tya.stop(),this._rxa&&this._rxa.stop(),this._rya&&this._rya.stop();const r=this.innerWidth(),a=this.innerHeight(),l=this.getPrivate("mapScale"),u=this.get("translateX",r/2),h=this.get("translateY",a/2),c=ne(e);c.fitSize([r,a],this._geometryColection);const p=c.scale(),g=c.translate(),d=ie((t=>(n,i)=>{const o=s(n,i),r=e(n,i);return[(1-t)*o[0]+t*r[0],(1-t)*o[1]+t*r[1]]})),f=d(0);f.scale(l*this.get("zoomLevel",1)),f.translate([u,h]),f.precision(.5),f.rotate&&f.rotate([this.get("rotationX",0),this.get("rotationY",0),this.get("rotationZ",0)]),this.setRaw("projection",f),this._makeGeoPath(),this._projectionBlendData={blended:f,mutate:d,sourceScale:l,targetScale:p,sourceTranslateX:u,sourceTranslateY:h,targetTranslateX:g[0],targetTranslateY:g[1],target:t,targetRaw:e},this._projectionBlendAnim=this.animatePrivate({key:"projectionBlend",from:0,to:1,duration:n,easing:i})}zoomIn(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.get("zoomLevel",1)*this.get("zoomStep",2))}zoomOut(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.get("zoomLevel",1)/this.get("zoomStep",2))}_clearDirty(){super._clearDirty(),this._dirtyGeometries=!1,this._mapFitted=!1}getArea(t){const e=this.getPrivate("geoPath"),n=t.get("geometry");return n?e.area(n):0}}bi.className="MapChart",bi.classNames=pe.j.classNames.concat([bi.className]);class Ei extends r{constructor(){super(...arguments),this._types=["Point","MultiPoint"]}_afterNew(){this.fields.push("polygonId","lineId","longitude","latitude","fixed"),super._afterNew()}markDirtyProjection(){this.markDirty()}markDirtyValues(t){super.markDirtyValues(),t&&this._positionBullets(t)}processDataItem(t){super.processDataItem(t);let e=t.get("geometry");if(e){if("Point"==e.type){const n=e.coordinates;n&&(t.set("longitude",n[0]),t.set("latitude",n[1]))}else if("MultiPoint"==e.type){const n=e.coordinates;n&&n[0]&&(t.set("longitude",n[0][0]),t.set("latitude",n[0][1]))}}else e={type:"Point",coordinates:[t.get("longitude",0),t.get("latitude",0)]},t.set("geometry",e);this._addGeometry(e,this)}_makeBullets(t){t.bullets=[],this.bullets.each((e=>{const n=t.get("geometry");if(n)if("Point"==n.type)this._setBulletParent(this._makeBullet(t,e));else if(n.type="MultiPoint"){let i=0;o.each(n.coordinates,(()=>{this._setBulletParent(this._makeBullet(t,e,i)),i++}))}}))}_setBulletParent(t){if(t){const e=t.get("sprite"),n=this.chart;if(e&&n){const t=e.dataItem;t&&(t.get("fixed")?e.parent!=n.bulletsContainer&&n.bulletsContainer.children.moveValue(e):e.parent!=this.bulletsContainer&&this.bulletsContainer.children.moveValue(e))}}}_positionBullet(t){const e=t.get("sprite");if(e){const n=e.dataItem;if(n&&n.get("fixed"))return;const i=n.get("latitude"),o=n.get("longitude"),s=n.get("lineDataItem"),r=n.get("fixed"),l=this.chart;let u;if(s)u=s.get("mapLine");else{const t=n.get("lineId");t&&l&&l.series.each((e=>{if(e.isType("MapLineSeries")){let i=e.getDataItemById(t);i&&(n.set("lineDataItem",i),u=i.get("mapLine"))}}))}this._lineChangedDp&&this._lineChangedDp.dispose(),u&&(this._lineChangedDp=u.events.on("linechanged",(()=>{this._positionBullets(n)})));const h=n.get("polygonDataItem");let c;if(h)c=h.get("mapPolygon");else{const t=n.get("polygonId");t&&l&&l.series.each((e=>{if(e.isType("MapPolygonSeries")){let i=e.getDataItemById(t);i&&(n.set("polygonDataItem",i),c=i.get("mapPolygon"))}}))}const p=n.get("positionOnLine");let g,d;if(c){let t=c.visualCentroid();g=[t.longitude,t.latitude],n.setRaw("longitude",t.longitude),n.setRaw("latitude",t.latitude)}else if(u&&a.isNumber(p)){let e=u.positionToGeoPoint(p);if(g=[e.longitude,e.latitude],n.get("autoRotate",t.get("autoRotate"))&&l){const t=u.positionToGeoPoint(p-.002),e=u.positionToGeoPoint(p+.002),n=l.convert(t),i=l.convert(e);d=Nn.getAngle(n,i)}n.setRaw("longitude",e.longitude),n.setRaw("latitude",e.latitude)}else if(a.isNumber(o)&&a.isNumber(i))g=[o,i];else{const e=n.get("geometry");if(e)if("Point"==e.type)this._positionBulletReal(t,e,e.coordinates,d);else if("MultiPoint"==e.type){let n=t._index||0;g=e.coordinates[n]}}!r&&g&&this._positionBulletReal(t,{type:"Point",coordinates:g},g,d)}}_positionBulletReal(t,e,n,i){const o=t.get("sprite"),s=this.chart;if(s){const r=s.get("projection"),a=s.getPrivate("geoPath"),l=o.dataItem,u=r(n);if(u){const t={x:u[0],y:u[1]};o.setAll(t),l.setRaw("point",t)}let h=!0;a(e)?this.get("clipFront")&&(h=!1):this.get("clipBack")&&(h=!1),o.setPrivate("visible",h),l.set("clipped",!h),l&&null!=i&&l.get("autoRotate",t.get("autoRotate"))&&o.set("rotation",i+l.get("autoRotateAngle",t.get("autoRotateAngle",0)))}}zoomToDataItem(t,e,n){const i=this.chart;if(i){const o=t.get("longitude",0),s=t.get("latitude",0);return n?i.zoomToGeoPoint({longitude:o,latitude:s},e,!0,void 0,-o,-s):i.zoomToGeoPoint({longitude:o,latitude:s},e,!0)}}zoomToDataItems(t,e){let n=null,i=null,s=null,r=null;if(o.each(t,(t=>{const e=t.get("longitude",0),o=t.get("latitude",0);(null==n||n>e)&&(n=e),(null==i||io)&&(r=o)})),null!=n&&null!=i&&null!=s&&null!=r){const t=this.chart;if(t)return e?t.zoomToGeoBounds({left:n,right:i,top:s,bottom:r},void 0,-(n+(i-n)/2),-(s+(s-r)/2)):t.zoomToGeoBounds({left:n,right:i,top:s,bottom:r})}}disposeDataItem(t){const e=this.chart;e&&e.series.each((e=>{e.isType("MapLineSeries")&&o.each(e.dataItems,(n=>{const i=n.get("pointsToConnect");i&&o.each(i,(s=>{s==t&&(o.remove(i,s),e.markDirtyValues(n))}))}))})),super.disposeDataItem(t)}_excludeDataItem(t){super._excludeDataItem(t);const e=t.bullets;e&&o.each(e,(t=>{const e=t.get("sprite");e&&e.setPrivate("visible",!1)}))}_unexcludeDataItem(t){super._unexcludeDataItem(t);const e=t.bullets;e&&o.each(e,(t=>{const e=t.get("sprite");e&&e.setPrivate("visible",!0)}))}_notIncludeDataItem(t){super._notIncludeDataItem(t);const e=t.bullets;e&&o.each(e,(t=>{const e=t.get("sprite");e&&e.setPrivate("visible",!1)}))}_unNotIncludeDataItem(t){super._unNotIncludeDataItem(t);const e=t.bullets;e&&o.each(e,(t=>{const e=t.get("sprite");e&&e.setPrivate("visible",!0)}))}}Ei.className="MapPointSeries",Ei.classNames=r.classNames.concat([Ei.className]);var Li=n(5417),Ti=n.n(Li);class ki extends u.T{constructor(){super(...arguments),this._projectionDirty=!1}_afterNew(){super._afterNew(),this.setPrivate("trustBounds",!0)}_beforeChanged(){if(super._beforeChanged(),this._projectionDirty||this.isDirty("geometry")||this.isDirty("precision")){const t=this.get("geometry");if(t){const e=this.series;if(e){const n=e.projection();n&&n.precision(this.get("precision",.5));const i=e.geoPath();i&&(this._clear=!0,this.set("draw",(e=>{i.context(this._display),i(t),i.context(null)})),this.isHover()&&this.showTooltip())}}}}markDirtyProjection(){this.markDirty(),this._projectionDirty=!0}_clearDirty(){super._clearDirty(),this._projectionDirty=!1}geoCentroid(){const t=this.get("geometry");return t?Pi(t):{latitude:0,longitude:0}}visualCentroid(){let t=0,e=[];const n=this.get("geometry");if(n){if("Polygon"==n.type)e=n.coordinates;else if("MultiPolygon"==n.type)for(let i=0;it&&(e=o,t=s)}if(e){let t=Ti()(e);return{longitude:t[0],latitude:t[1]}}}return{longitude:0,latitude:0}}_getTooltipPoint(){const t=this.series;if(t){const e=t.projection();if(e){const t=this.visualCentroid(),n=e([t.longitude,t.latitude]);if(n)return{x:n[0],y:n[1]}}}return{x:0,y:0}}}ki.className="MapPolygon",ki.classNames=u.T.classNames.concat([ki.className]);class Ri extends r{constructor(){super(...arguments),this.mapPolygons=this.addDisposer(new K.o(tt.YS.new({}),(()=>ki._new(this._root,{},[this.mapPolygons.template])))),this._types=["Polygon","MultiPolygon"]}makeMapPolygon(t){const e=this.children.push(this.mapPolygons.make());return e._setDataItem(t),this.mapPolygons.push(e),e}markDirtyProjection(){o.each(this.dataItems,(t=>{let e=t.get("mapPolygon");e&&e.markDirtyProjection()}))}_prepareChildren(){super._prepareChildren(),this.isDirty("fill")&&this.mapPolygons.template.set("fill",this.get("fill")),this.isDirty("stroke")&&this.mapPolygons.template.set("stroke",this.get("stroke"))}processDataItem(t){super.processDataItem(t);let e=t.get("mapPolygon");e||(e=this.makeMapPolygon(t)),t.set("mapPolygon",e);let n=t.get("geometry");if(n){if(this.get("reverseGeodata")&&n.coordinates)for(let t=0;t{const e=t.get("mapPolygon");if(e){const t=e.get("geometry");if(t){let e=Si(t);null==n&&(n=e.left),null==i&&(i=e.right),null==s&&(s=e.top),null==r&&(r=e.bottom),n=Math.min(e.left,n),i=Math.max(e.right,i),s=Math.max(e.top,s),r=Math.min(e.bottom,r)}}})),null!=n&&null!=i&&null!=s&&null!=r){const t=this.chart;if(t){if(e){const e=n+(i-n)/2,o=r+(s-r)/2;return t.rotate(-e,-o),t.zoomToGeoBounds({left:n,right:i,top:s,bottom:r},void 0,-e,-o)}return t.zoomToGeoBounds({left:n,right:i,top:s,bottom:r})}}}getPolygonByPoint(t){let e;const n=this._display._renderer.getObjectAtPoint(t);if(n)return this.mapPolygons.each((function(t){t._display==n&&(e=t)})),e}getPolygonByGeoPoint(t){return this.getPolygonByPoint(this.chart.convert(t))}}Ri.className="MapPolygonSeries",Ri.classNames=r.classNames.concat([Ri.className]);var zi=n(9361),Bi=n(8777),ji=n(962),Gi=n(2156);class Yi extends Ei{constructor(){super(...arguments),this._dataItem=this.makeDataItem({}),this._clusterIndex=0,this._clusters=[],this.clusteredDataItems=[],this._scatterIndex=0,this._scatters=[],this._packLayout=Gi.Z(),this._spiral=[],this._previousZL=0}_afterNew(){this.fields.push("groupId"),this._setRawDefault("groupIdField","groupId"),super._afterNew()}_afterDataChange(){super._afterDataChange(),this._previousZL=0}_updateChildren(){super._updateChildren(),this.isDirty("scatterRadius")&&(this._spiral=Nn.spiralPoints(0,0,300,300,0,3,3,0,0));const t=this.chart;if(t){const e=t.get("zoomLevel",1);if(e!=this._previousZL){const t=this.get("clusterDelay",0);t?this._clusterDP?(this._clusterDP.dispose(),this._clusterDP=this.setTimeout((()=>{this._doTheCluster()}),t)):(this._doTheCluster(),this._clusterDP=this.setTimeout((()=>{}),0)):this._doTheCluster(),this._previousZL=e}o.each(this.clusteredDataItems,(t=>{const e=t.get("bullet"),n=t.get("longitude",0),i=t.get("latitude",0);this._positionBulletReal(e,{type:"Point",coordinates:[n,i]},[n,i])}))}}_doTheCluster(){const t={};o.each(this.dataItems,(e=>{const n=e.get("groupId","_default");t[n]||(t[n]=[]),t[n].push(e)})),this._scatterIndex=-1,this._scatters=[],this._clusterIndex=-1,this._clusters=[],o.each(this.clusteredDataItems,(t=>{t.setRaw("children",void 0)})),o.each(this.dataItems,(t=>{t.setRaw("cluster",void 0)})),s.each(t,((t,e)=>{this._scatterGroup(e)})),s.each(t,((t,e)=>{this._clusterGroup(e)})),o.each(this.dataItems,(t=>{if(!t.get("cluster")){const e=t.bullets;e&&o.each(e,(t=>{const e=t.get("sprite");e&&e.set("forceHidden",!1)}))}}))}zoomToCluster(t,e){this.zoomToDataItems(t.get("children",[]),e)}_clusterGroup(t){const e=this.chart;if(e&&e.get("zoomLevel",1)>=e.get("maxZoomLevel",100)*this.get("stopClusterZoom",.95));else for(t.sort(((t,e)=>{const n=t.get("point"),i=e.get("point");return n&&i?Math.hypot(n.x-i.x,n.y-i.y):0}));t.length>0;){this._clusterIndex++,this._clusters[this._clusterIndex]=[];const e=this._clusters[this._clusterIndex],n=t[0];e.push(n),o.removeFirst(t,n),this._clusterDataItem(n,t)}let n=0;const i=this.get("clusteredBullet");i&&o.each(this._clusters,(t=>{let e=0,s=0,r=t.length;if(r>1){let a,l=this.clusteredDataItems[n];if(!l){l=new zi.z(this,void 0,{});const t=l.set("bullet",i(this._root,this,l));if(t){const e=t.get("sprite");e&&(this.bulletsContainer.children.push(e),e._setDataItem(l),this.root.events.once("frameended",(()=>{e instanceof Bi.W&&e.walkChildren((t=>{t instanceof zi.w&&t.markDirtyValues()}))})))}this.clusteredDataItems.push(l)}o.each(t,(t=>{t.setRaw("cluster",l);const n=t.get("point");n&&(e+=n.x,s+=n.y);const i=t.bullets;i&&o.each(i,(t=>{const e=t.get("sprite");e&&e.set("forceHidden",!0)})),a=t.get("groupId")}));let u=e/r,h=s/r;l.setRaw("children",t),l.setRaw("groupId",a);const c=l.get("value");l.setRaw("value",r);const p=l.get("bullet");if(p){let t=this.chart.invert({x:u,y:h});t&&l.setAll({longitude:t.longitude,latitude:t.latitude}),this._positionBullets(l);const e=p.get("sprite");e&&(e.set("forceHidden",!1),c!=r&&e instanceof Bi.W&&e.walkChildren((t=>{t instanceof ji._&&t.text.markDirtyText()})))}n++}})),o.each(this.clusteredDataItems,(t=>{let e=t.get("children");if(!e||0==e.length){const e=t.get("bullet");if(e){const t=e.get("sprite");t&&t.set("forceHidden",!0)}}}))}_onDataClear(){super._onDataClear(),o.each(this.clusteredDataItems,(t=>{const e=t.get("bullet");if(e){const t=e.get("sprite");t&&t.dispose()}})),this.clusteredDataItems=[]}_clusterDataItem(t,e){const n=t.get("point");if(n){let t=this.get("minDistance",20);const i=this._clusters[this._clusterIndex];for(let s=e.length-1;s>=0;s--){const r=e[s];if(r&&!r.get("clipped")){const s=r.get("point");s&&Math.hypot(s.x-n.x,s.y-n.y)=e.get("maxZoomLevel",100)*this.get("stopClusterZoom",.95)){for(;t.length>0;){this._scatterIndex++,this._scatters[this._scatterIndex]=[];const e=this._scatters[this._scatterIndex],n=t[0];e.push(n),o.remove(t,n),this._scatterDataItem(n,t)}o.each(this._scatters,(t=>{if(t.length>1){let e=[],n=0,i=this.get("scatterRadius",8);o.each(t,(t=>{let s=this._spiral[n],r=!0;if(e.length>0)for(;r;)o.each(e,(t=>{for(r=!1;Nn.circlesOverlap({x:s.x,y:s.y,radius:i},t);)n++,null==this._spiral[n]?r=!1:(r=!0,s=this._spiral[n])}));const a=s.x,l=s.y;e.push({x:a,y:l,radius:i}),t.set("dx",a),t.set("dy",l);const u=t.bullets;u&&o.each(u,(t=>{const e=t.get("sprite");e&&e.setAll({dx:a,dy:l})}))}))}}))}}_scatterDataItem(t,e){const n=t.get("point");if(n){const t=this.get("scatterDistance",5),i=this._scatters[this._scatterIndex];o.each(e,(s=>{if(s&&!s.get("clipped")){const r=s.get("point");r&&Math.hypot(r.x-n.x,r.y-n.y)=.12&&o<.234&&i>=-.425&&i<-.214?a:o>=.166&&o<.234&&i>=-.214&&i<-.115?l:r).invert(t)},h.stream=function(n){return t&&e===n?t:(i=[r.stream(e=n),a.stream(n),l.stream(n)],o=i.length,t={point:function(t,e){for(var n=-1;++nc&&--o>0);return[t/(.8707+(s=i*i)*(s*(s*s*s*(.003971-.001529*s)-.013791)-.131979)),i]}},5417:function(t,e,n){var i=n(2640);function o(t,e,n){var o,a,l,u;e=e||1;for(var h=0;hl)&&(l=c[0]),(!h||c[1]>u)&&(u=c[1])}var p=l-o,g=u-a,d=Math.min(p,g),f=d/2;if(0===d){var m=[o,a];return m.distance=0,m}for(var _=new i(void 0,s),y=o;yD.d&&(D=x);for(var P=_.length;_.length;){var w=_.pop();w.d>D.d&&(D=w,n&&console.log("found best %d after %d probes",Math.round(1e4*w.d)/1e4,P)),w.max-D.d<=e||(f=w.h/2,_.push(new r(w.x-f,w.y-f,f,t)),_.push(new r(w.x+f,w.y-f,f,t)),_.push(new r(w.x-f,w.y+f,f,t)),_.push(new r(w.x+f,w.y+f,f,t)),P+=4)}n&&(console.log("num probes: "+P),console.log("best distance: "+D.d));var S=[D.x,D.y];return S.distance=D.d,S}function s(t,e){return e.max-t.max}function r(t,e,n,i){this.x=t,this.y=e,this.h=n,this.d=function(t,e,n){for(var i=!1,o=1/0,s=0;se!=p[1]>e&&t<(p[0]-c[0])*(e-c[1])/(p[1]-c[1])+c[0]&&(i=!i),o=Math.min(o,a(t,e,c,p))}return 0===o?0:(i?1:-1)*Math.sqrt(o)}(t,e,i),this.max=this.d+this.h*Math.SQRT2}function a(t,e,n,i){var o=n[0],s=n[1],r=i[0]-o,a=i[1]-s;if(0!==r||0!==a){var l=((t-o)*r+(e-s)*a)/(r*r+a*a);l>1?(o=i[0],s=i[1]):l>0&&(o+=r*l,s+=a*l)}return(r=t-o)*r+(a=e-s)*a}i.default&&(i=i.default),t.exports=o,t.exports.default=o},2640:function(t,e,n){n.r(e),n.d(e,{default:function(){return i}});class i{constructor(t=[],e=o){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let t=(this.length>>1)-1;t>=0;t--)this._down(t)}push(t){this.data.push(t),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){const{data:e,compare:n}=this,i=e[t];for(;t>0;){const o=t-1>>1,s=e[o];if(n(i,s)>=0)break;e[t]=s,t=o}e[t]=i}_down(t){const{data:e,compare:n}=this,i=this.length>>1,o=e[t];for(;t=0)break;e[t]=s,t=i}e[t]=o}}function o(t,e){return te?1:0}},2872:function(t,e,n){n.r(e),n.d(e,{am5map:function(){return i}});const i=n(7533)}},function(t){var e=(2872,t(t.s=2872)),n=window;for(var i in e)n[i]=e[i];e.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})}]); +//# sourceMappingURL=map.js.map diff --git a/web/amCharts/scatter/chart_0059_scatter.inline04.js b/web/amCharts/scatter/chart_0059_scatter.inline04.js new file mode 100644 index 0000000000000000000000000000000000000000..4295851526fbca4b124927db47c917c098f6f372 --- /dev/null +++ b/web/amCharts/scatter/chart_0059_scatter.inline04.js @@ -0,0 +1,12 @@ +window.am5geodata_continentsLow = (function () { +const map = { "type": "FeatureCollection", "features": [ + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-77.3742, 8.6583], [-77.4072, 8.427], [-77.2124, 8.0338], [-77.3509, 7.7057], [-77.7439, 7.537], [-77.9011, 7.2294], [-78.1701, 7.5437], [-78.4215, 8.0608], [-78.1139, 8.3795], [-79.0865, 8.997], [-79.4418, 9.0059], [-79.7508, 8.5953], [-80.3687, 8.289], [-80.4581, 8.0768], [-80.0752, 7.6671], [-80.4388, 7.2747], [-80.8456, 7.2201], [-81.0352, 7.711], [-81.5041, 7.7213], [-81.7279, 8.1376], [-82.6796, 8.3218], [-83.1232, 8.3529], [-83.1625, 8.5882], [-83.734, 8.6144], [-83.6373, 9.0352], [-83.8956, 9.2762], [-84.6589, 9.6473], [-85.1145, 9.5816], [-85.6248, 9.9025], [-85.8305, 10.3979], [-85.6672, 10.745], [-85.7453, 11.0886], [-86.4688, 11.7385], [-86.7556, 12.1566], [-87.6676, 12.9037], [-87.4128, 13.1274], [-87.7084, 13.36], [-87.9308, 13.1807], [-88.5121, 13.1838], [-89.2776, 13.4781], [-89.8042, 13.5602], [-90.607, 13.9291], [-91.1461, 13.9255], [-91.8191, 14.2283], [-92.2645, 14.5678], [-92.809, 15.1387], [-93.916, 16.0536], [-94.3741, 16.2848], [-94.6615, 16.2018], [-94.9003, 16.4175], [-95.4643, 15.9745], [-96.2136, 15.6931], [-96.5108, 15.6518], [-97.1846, 15.9093], [-97.7548, 15.967], [-98.5203, 16.3048], [-98.7622, 16.5347], [-99.6906, 16.7198], [-100.0244, 16.9205], [-100.8478, 17.2006], [-101.6002, 17.6516], [-101.847, 17.9223], [-102.6995, 18.0626], [-103.4415, 18.3254], [-103.9125, 18.8283], [-104.9385, 19.3095], [-105.4821, 19.9762], [-105.6694, 20.3855], [-105.2603, 20.579], [-105.4923, 20.7766], [-105.237, 21.1192], [-105.2086, 21.4908], [-105.6492, 21.9879], [-105.7917, 22.6276], [-106.4025, 23.1958], [-106.9354, 23.8811], [-107.9512, 24.6149], [-108.3736, 25.1942], [-109.0288, 25.4805], [-109.385, 25.7273], [-109.4256, 26.0327], [-109.1997, 26.3052], [-109.4829, 26.7105], [-109.7548, 26.703], [-109.9441, 27.0794], [-110.4779, 27.3226], [-110.5298, 27.8642], [-111.1215, 27.9672], [-111.6801, 28.4706], [-112.1618, 29.0188], [-112.2235, 29.2696], [-112.7384, 29.9856], [-113.1104, 30.7934], [-113.0467, 31.1792], [-113.6235, 31.3461], [-113.9478, 31.6293], [-114.1493, 31.5072], [-114.8398, 31.7984], [-114.8819, 31.1565], [-114.6333, 30.5067], [-114.6498, 30.2381], [-114.3726, 29.8302], [-113.7556, 29.3677], [-113.4999, 28.9269], [-113.2056, 28.7986], [-112.8709, 28.4244], [-112.7339, 27.826], [-112.3291, 27.5233], [-112.0091, 26.9671], [-111.5696, 26.7074], [-111.2917, 25.7899], [-111.0345, 25.5271], [-110.6774, 24.7885], [-110.5471, 24.2141], [-110.0229, 24.1746], [-109.4209, 23.4803], [-109.458, 23.2149], [-109.9234, 22.8859], [-110.0861, 23.0053], [-110.3627, 23.605], [-111.4193, 24.329], [-112.0728, 24.84], [-112.0557, 25.488], [-112.3773, 26.2138], [-113.0207, 26.5831], [-113.2058, 26.857], [-113.5986, 26.7212], [-113.841, 26.9666], [-114.4456, 27.2183], [-114.5399, 27.431], [-114.9938, 27.7359], [-114.3006, 27.8731], [-114.0487, 28.4262], [-114.1455, 28.6055], [-114.9938, 29.3845], [-115.6738, 29.7565], [-115.8157, 30.3038], [-116.0622, 30.8041], [-116.6622, 31.5649], [-117.2434, 32.664], [-117.4674, 33.2957], [-118.0806, 33.7222], [-118.4104, 33.744], [-118.5063, 34.0174], [-119.1437, 34.112], [-119.606, 34.4178], [-120.4812, 34.4715], [-120.6448, 34.5798], [-120.6337, 35.0766], [-120.8605, 35.3655], [-121.8774, 36.331], [-121.79, 36.7323], [-122.3948, 37.2077], [-122.4669, 37.838], [-122.9681, 38.0968], [-122.9865, 38.277], [-123.7012, 38.9073], [-123.8845, 39.8608], [-124.324, 40.2519], [-124.3717, 40.4911], [-124.1331, 40.9697], [-124.0687, 41.3843], [-124.5397, 42.8127], [-124.1486, 43.6916], [-123.9293, 45.5768], [-124.0716, 46.7447], [-124.3763, 47.6587], [-124.6211, 47.9041], [-124.6327, 48.3751], [-123.9757, 48.1683], [-122.2421, 48.0107], [-122.7888, 48.993], [-123.0491, 48.993], [-123.3356, 49.4591], [-123.859, 49.4828], [-124.1415, 49.7927], [-124.4833, 49.8082], [-125.21, 50.4763], [-126.4045, 50.5298], [-126.6317, 50.9151], [-127.0579, 50.8676], [-127.7082, 51.1512], [-127.6449, 51.4784], [-128.1024, 51.7884], [-128.3576, 52.1589], [-128.1088, 52.858], [-128.4519, 52.8766], [-128.6523, 53.2437], [-129.2842, 53.3931], [-129.5637, 53.2515], [-130.3351, 53.724], [-130.0433, 54.1335], [-130.8496, 54.8076], [-131.0478, 55.1576], [-130.9186, 55.736], [-131.2875, 56.0121], [-131.8439, 56.1601], [-132.8145, 57.0408], [-133.4659, 57.1722], [-133.5542, 57.6951], [-134.0634, 58.2111], [-134.7761, 58.4539], [-135.3025, 58.2559], [-135.8618, 58.5771], [-136.5827, 58.2453], [-137.5439, 58.5811], [-138.3525, 59.0873], [-140.2168, 59.7265], [-140.8432, 59.749], [-141.6701, 59.9698], [-142.9457, 60.097], [-143.805, 60.0129], [-144.9012, 60.3351], [-145.8989, 60.4783], [-146.8741, 61.005], [-148.3445, 60.8536], [-148.1976, 60.1678], [-148.4306, 59.9891], [-149.4323, 60.0011], [-150.9608, 59.244], [-151.7383, 59.1885], [-151.7345, 59.9882], [-151.4515, 60.2026], [-151.3217, 60.7428], [-150.4412, 61.0236], [-150.6123, 61.3013], [-151.7341, 60.9106], [-151.7505, 60.7548], [-153.1061, 59.875], [-154.0882, 59.3632], [-154.1298, 59.12], [-153.327, 58.8843], [-154.0199, 58.493], [-154.2469, 58.1594], [-155.0069, 58.016], [-156.4784, 57.328], [-156.4751, 57.1051], [-157.5783, 56.6344], [-158.4144, 56.4358], [-158.2757, 56.196], [-159.5233, 55.8101], [-159.9623, 55.7948], [-161.0995, 55.4059], [-161.7416, 55.3911], [-162.0741, 55.1394], [-162.8651, 54.9545], [-162.9621, 55.1838], [-162.1571, 55.7195], [-161.2156, 56.0214], [-160.8514, 55.7719], [-160.3021, 56.3141], [-159.2831, 56.6885], [-158.321, 57.2978], [-157.6076, 57.6016], [-157.5235, 58.4213], [-158.5032, 58.8503], [-159.0827, 58.4697], [-159.6702, 58.9111], [-160.3631, 59.0512], [-161.7554, 58.6119], [-161.8286, 59.5887], [-162.2425, 60.1782], [-163.2193, 59.8455], [-163.9069, 59.8067], [-164.6622, 60.3038], [-165.3538, 60.5413], [-164.8051, 60.892], [-165.566, 61.1024], [-166.0789, 61.8031], [-165.1944, 62.4736], [-164.409, 63.2151], [-163.3589, 63.0457], [-161.974, 63.453], [-161.0997, 63.558], [-160.7786, 63.819], [-160.932, 64.5792], [-161.187, 64.9241], [-161.7594, 64.8162], [-162.807, 64.3743], [-163.7132, 64.5883], [-164.8995, 64.4607], [-166.1428, 64.5827], [-167.4039, 65.4221], [-168.0884, 65.6578], [-164.6742, 66.5549], [-163.7755, 66.5312], [-163.6954, 66.0837], [-161.8164, 66.0536], [-161.557, 66.2504], [-160.2317, 66.4202], [-160.864, 66.6708], [-161.8566, 66.7003], [-161.9653, 67.0499], [-163.0016, 67.0272], [-163.7205, 67.1955], [-164.1251, 67.6067], [-166.3805, 68.4251], [-166.2092, 68.8854], [-164.3024, 68.9364], [-163.1614, 69.3879], [-162.9521, 69.7581], [-161.881, 70.3318], [-160.9963, 70.3045], [-159.3144, 70.8784], [-157.9985, 70.8454], [-156.7833, 71.319], [-155.1669, 71.0993], [-154.1952, 70.801], [-153.2329, 70.9326], [-152.233, 70.8103], [-151.9447, 70.4521], [-149.2694, 70.5009], [-147.7053, 70.2173], [-145.8232, 70.16], [-145.1973, 70.0086], [-143.2184, 70.1163], [-141.4078, 69.6533], [-139.1815, 69.5155], [-138.1283, 69.1519], [-136.7174, 68.8891], [-135.8762, 68.9169], [-135.6914, 69.3111], [-135.1409, 69.4675], [-133.1632, 69.4338], [-130.4985, 70.1431], [-128.9715, 69.7123], [-127.765, 70.2219], [-127.1385, 70.2392], [-126.6122, 69.7305], [-125.9073, 69.4185], [-124.7678, 69.99], [-123.6091, 69.3774], [-123.0258, 69.81], [-120.9624, 69.6604], [-120.2925, 69.4205], [-118.8687, 69.2571], [-118.0953, 69.0429], [-116.0651, 68.8554], [-115.6314, 68.9726], [-114.4138, 68.6596], [-113.9644, 68.3991], [-114.7652, 68.2701], [-115.1332, 67.8194], [-113.6819, 67.7], [-112.4352, 67.6849], [-110.9901, 67.7907], [-110.0426, 67.9772], [-109.6305, 67.7328], [-108.5929, 67.591], [-108.0884, 67.0698], [-107.1564, 66.8819], [-108.2611, 68.1501], [-108.3134, 68.6108], [-106.1646, 68.9198], [-105.4286, 68.4583], [-104.1934, 68.0311], [-103.4741, 68.115], [-102.692, 67.8116], [-101.555, 67.6931], [-100.4561, 67.8396], [-99.1468, 67.7237], [-98.4171, 67.8265], [-97.4549, 67.6169], [-97.2066, 67.8551], [-98.4384, 68.0646], [-98.2184, 68.3174], [-97.2658, 68.453], [-96.9769, 68.2555], [-96.036, 68.1578], [-96.3714, 67.5539], [-95.7826, 67.1937], [-95.2588, 67.2625], [-95.6505, 67.7375], [-95.461, 68.0213], [-94.7443, 68.0708], [-93.6517, 68.5431], [-93.6628, 68.8381], [-94.2707, 69.4551], [-96.0503, 69.8311], [-96.4926, 70.1249], [-96.2265, 70.5418], [-96.549, 70.809], [-96.4058, 71.2737], [-95.2013, 71.9036], [-94.3084, 71.7649], [-92.9488, 71.2622], [-92.9814, 70.8525], [-91.5641, 70.1782], [-92.751, 69.7139], [-90.8221, 69.2904], [-90.4683, 68.8638], [-89.0567, 69.266], [-88.0413, 68.8117], [-87.8103, 68.4042], [-88.3469, 68.2883], [-88.1958, 67.7659], [-87.2663, 67.1839], [-86.5363, 67.5162], [-85.9526, 68.0724], [-85.7338, 68.6301], [-84.8622, 69.074], [-85.3869, 69.2318], [-85.5076, 69.8453], [-84.2416, 69.8351], [-82.6183, 69.691], [-82.642, 69.4584], [-81.3286, 69.12], [-81.2815, 68.6572], [-82.5526, 68.4464], [-81.9764, 67.862], [-81.2702, 67.4598], [-81.4675, 67.0698], [-82.6416, 66.5876], [-84.4784, 66.1794], [-85.6039, 66.5683], [-86.6331, 66.5314], [-86.0429, 66.0225], [-87.2914, 65.3549], [-87.9701, 65.3489], [-89.7494, 65.9359], [-89.9243, 65.7803], [-88.9739, 65.3482], [-87.0275, 65.1982], [-87.2805, 64.8262], [-88.1057, 64.1832], [-88.653, 64.0094], [-90.1418, 63.9819], [-90.0135, 63.8044], [-91.3303, 63.5067], [-90.7466, 63.3516], [-90.8711, 62.9459], [-91.4491, 62.804], [-92.3613, 62.8194], [-93.4206, 61.7059], [-93.9127, 61.4815], [-94.6469, 60.4164], [-94.7858, 59.9536], [-94.7137, 58.9033], [-94.2871, 58.716], [-93.2781, 58.7564], [-92.249, 57.0093], [-91.1115, 57.2412], [-90.5922, 57.2245], [-89.7909, 56.9813], [-88.9484, 56.8512], [-88.0751, 56.4673], [-87.5608, 56.0564], [-85.8305, 55.6569], [-85.061, 55.2856], [-83.9107, 55.3147], [-82.5775, 55.1487], [-82.2195, 54.8135], [-82.4181, 54.3559], [-82.1413, 53.8177], [-82.2605, 52.9612], [-81.5993, 52.4325], [-81.6615, 52.2938], [-80.6579, 51.7585], [-80.368, 51.3299], [-79.8362, 51.1734], [-79.4975, 51.5698], [-78.9777, 51.7338], [-78.4917, 52.2521], [-78.7238, 52.6278], [-79.2418, 54.0989], [-79.6655, 54.6975], [-78.9091, 54.8815], [-77.8911, 55.2364], [-77.3249, 55.5555], [-76.6504, 56.1075], [-76.5257, 56.8918], [-76.6555, 57.3806], [-77.1571, 58.0191], [-78.5152, 58.6823], [-78.4586, 58.8734], [-77.7606, 59.3801], [-77.7262, 59.6759], [-77.312, 60.0424], [-77.8715, 60.7859], [-77.7362, 61.4373], [-78.1372, 62.1074], [-78.0682, 62.3555], [-77.3724, 62.5726], [-74.6899, 62.1835], [-73.6299, 62.4543], [-72.0816, 61.7283], [-71.4229, 61.159], [-70.2792, 61.0687], [-69.6404, 60.6898], [-69.7559, 60.3886], [-69.682, 59.3417], [-69.5317, 58.8692], [-68.6983, 58.9045], [-67.5697, 58.2135], [-66.608, 58.5489], [-65.6061, 59.1106], [-64.9312, 60.2519], [-64.4995, 60.2683], [-63.5398, 59.3328], [-63.1854, 58.8578], [-62.5939, 58.4741], [-62.3056, 57.9723], [-61.899, 57.8613], [-61.851, 57.3812], [-61.3337, 57.0106], [-61.5146, 56.3903], [-61.0893, 55.8662], [-60.8318, 55.9579], [-59.9303, 55.2594], [-58.997, 55.1494], [-58.7802, 54.8384], [-58.1951, 54.8659], [-57.4046, 54.5705], [-58.1516, 54.3503], [-57.4161, 54.1628], [-57.1489, 53.8476], [-56.4651, 53.7651], [-55.7979, 53.212], [-55.8336, 52.3104], [-55.6951, 52.1378], [-56.976, 51.4577], [-58.5103, 51.295], [-59.1655, 50.7799], [-60.0801, 50.2546], [-61.2897, 50.202], [-62.7155, 50.3016], [-64.8679, 50.2754], [-65.2686, 50.32], [-66.4955, 50.2119], [-66.9411, 49.9938], [-67.3719, 49.3486], [-68.2821, 49.1972], [-68.9291, 48.829], [-69.7752, 48.0981], [-69.9057, 47.8322], [-70.7058, 47.1398], [-70.5196, 47.0323], [-68.987, 48.2748], [-67.5608, 48.8558], [-66.1781, 49.2132], [-65.5234, 49.2662], [-64.8364, 49.1917], [-64.2618, 48.9218], [-64.2538, 48.5505], [-65.2595, 48.0213], [-65.9266, 48.1887], [-65.6667, 47.696], [-65.2282, 47.8114], [-64.7033, 47.7248], [-64.9121, 47.3688], [-65.3189, 47.1011], [-64.9057, 46.8881], [-64.5415, 46.2404], [-63.2928, 45.7522], [-62.4831, 45.6217], [-61.9556, 45.868], [-61.4924, 45.6869], [-61.2837, 45.2355], [-62.514, 44.8435], [-63.7611, 44.4862], [-64.286, 44.5501], [-64.3781, 44.3037], [-64.8624, 43.8678], [-65.7382, 43.5607], [-66.1257, 43.8137], [-66.0995, 44.3677], [-65.6567, 44.7605], [-64.4489, 45.2559], [-64.8979, 45.6261], [-65.8847, 45.223], [-66.8726, 45.0672], [-67.3642, 44.697], [-67.9073, 44.4538], [-68.2775, 44.5075], [-69.0683, 44.0978], [-69.7916, 43.8052], [-70.1789, 43.7662], [-70.8292, 42.8251], [-71.0463, 42.3311], [-70.7382, 42.229], [-70.4046, 41.6271], [-70.6572, 41.5343], [-71.4264, 41.6333], [-71.5228, 41.3789], [-72.8471, 41.2657], [-73.5831, 41.022], [-74.2267, 40.6079], [-73.9575, 40.3282], [-74.1761, 39.7268], [-74.4289, 39.3872], [-74.897, 39.1453], [-75.3922, 39.0929], [-75.036, 38.5034], [-75.6592, 37.9539], [-76.2948, 38.4945], [-76.1683, 38.8527], [-76.5194, 38.8985], [-76.5012, 38.5323], [-76.2642, 37.8935], [-76.2635, 37.3568], [-75.8904, 36.6568], [-76.4788, 36.0283], [-75.7724, 35.9], [-75.7742, 35.647], [-76.1739, 35.354], [-76.513, 35.2705], [-76.7449, 34.9412], [-77.751, 34.2851], [-78.0136, 33.9118], [-78.5778, 33.8732], [-78.9202, 33.6588], [-79.276, 33.1354], [-80.0218, 32.6201], [-80.2297, 32.5766], [-80.8494, 32.114], [-81.1978, 31.7043], [-81.1754, 31.5312], [-81.5203, 30.8747], [-81.2496, 29.7938], [-80.9, 29.0498], [-80.524, 28.4861], [-80.6503, 28.1811], [-80.2262, 27.2072], [-80.0413, 26.5685], [-80.1263, 25.8334], [-80.3669, 25.3313], [-80.7366, 25.1564], [-81.0977, 25.3194], [-81.365, 25.8312], [-81.7154, 25.983], [-81.8666, 26.4349], [-82.4414, 27.0599], [-82.6609, 27.7186], [-82.8436, 27.846], [-82.6607, 28.4856], [-82.6518, 28.8874], [-83.2906, 29.452], [-83.6943, 29.9261], [-84.0443, 30.1036], [-84.3828, 29.9074], [-85.3189, 29.6802], [-85.3538, 29.8759], [-86.2573, 30.4929], [-87.7903, 30.2918], [-88.9051, 30.4152], [-89.5885, 30.1658], [-90.2253, 30.3793], [-90.413, 30.1405], [-89.5894, 29.915], [-90.1014, 29.1817], [-90.3793, 29.2953], [-90.7511, 29.1311], [-91.2902, 29.2891], [-91.3312, 29.5137], [-91.8932, 29.836], [-92.2607, 29.5568], [-93.1758, 29.7791], [-93.6947, 29.7698], [-94.8886, 29.3708], [-95.2734, 28.9637], [-95.8534, 28.6401], [-96.4486, 28.5944], [-96.5616, 28.3671], [-97.1564, 28.1443], [-97.1715, 27.8797], [-97.5546, 26.9675], [-97.4023, 26.3967], [-97.1402, 26.0296], [-97.225, 25.5852], [-97.5071, 25.0144], [-97.6676, 24.3898], [-97.8578, 22.6245], [-97.6376, 21.6035], [-97.1214, 20.615], [-96.456, 19.8697], [-96.2895, 19.3437], [-95.821, 18.7546], [-95.1818, 18.7005], [-94.798, 18.5145], [-94.5461, 18.1749], [-94.189, 18.1953], [-93.5522, 18.4306], [-92.8849, 18.4688], [-92.7102, 18.6121], [-91.9738, 18.716], [-91.8031, 18.4705], [-91.2753, 18.6246], [-91.343, 18.9007], [-90.7393, 19.3521], [-90.6934, 19.7299], [-90.5071, 19.9119], [-90.4841, 20.5564], [-90.3531, 21.0096], [-89.8198, 21.2746], [-88.8787, 21.414], [-88.1317, 21.616], [-86.8242, 21.4215], [-86.8648, 20.8849], [-87.4672, 20.1023], [-87.4248, 19.5834], [-87.7619, 18.4461], [-88.0973, 18.1216], [-88.2717, 17.6098], [-88.3134, 16.6328], [-88.6952, 16.2475], [-88.894, 15.8906], [-88.131, 15.7011], [-87.6181, 15.9097], [-86.9072, 15.7624], [-86.3568, 15.7832], [-85.7839, 16.0029], [-85.4836, 15.8995], [-84.9738, 15.9901], [-84.2614, 15.8227], [-83.7604, 15.2204], [-83.3691, 15.2399], [-83.1576, 14.9931], [-83.2992, 14.749], [-83.1878, 14.3401], [-83.4124, 13.9966], [-83.5673, 13.3205], [-83.511, 12.4119], [-83.7693, 11.9316], [-83.6517, 11.6422], [-83.8679, 11.2999], [-83.4482, 10.4658], [-82.7783, 9.6695], [-82.3708, 9.428], [-82.2441, 9.0321], [-81.355, 8.7804], [-80.8387, 8.8874], [-80.1272, 9.2101], [-79.5774, 9.598], [-78.5043, 9.4063], [-78.0828, 9.2363], [-77.3742, 8.6583]]], [[[-25.4583, 70.9426], [-25.4022, 70.6527], [-27.8979, 70.4541], [-27.7088, 70.8971], [-25.4583, 70.9426]]], [[[-53.103, 70.1409], [-52.0452, 69.8071], [-52.1125, 69.4893], [-53.5784, 69.2567], [-53.7831, 69.5064], [-54.804, 69.6304], [-54.8304, 70.1611], [-54.3719, 70.3174], [-53.103, 70.1409]]], [[[-97.4694, 69.6668], [-96.2999, 69.3444], [-95.6856, 68.7358], [-96.4016, 68.4708], [-97.472, 68.544], [-99.254, 68.8632], [-99.5641, 69.0341], [-98.4559, 69.3346], [-98.5483, 69.545], [-97.4694, 69.6668]]], [[[-75.8665, 68.3367], [-75.1538, 68.234], [-75.1274, 67.5373], [-75.7801, 67.2836], [-77.0051, 67.2669], [-77.3058, 67.7062], [-76.7405, 68.2313], [-75.8665, 68.3367]]], [[[-85.0559, 65.4374], [-83.4071, 65.1039], [-82.0501, 64.6442], [-81.7161, 64.0219], [-80.829, 64.09], [-80.3021, 63.7622], [-81.0465, 63.4615], [-82.3782, 63.7067], [-82.4672, 63.9269], [-83.4943, 64.0993], [-83.7283, 63.8135], [-84.6329, 63.3092], [-85.4954, 63.1392], [-85.7142, 63.6579], [-87.1888, 63.6723], [-86.252, 64.1368], [-86.3743, 64.5659], [-85.9617, 65.7042], [-85.241, 65.7954], [-85.0559, 65.4374]]], [[[-82.0477, 62.9705], [-82.1138, 62.6522], [-83.0158, 62.2099], [-83.699, 62.1602], [-83.8994, 62.4765], [-83.3767, 62.905], [-82.0477, 62.9705]]], [[[-79.5978, 62.4132], [-79.324, 62.0261], [-79.7144, 61.6126], [-80.2761, 61.8586], [-80.0215, 62.3431], [-79.5978, 62.4132]]], [[[-166.1355, 60.3835], [-165.7298, 60.3143], [-165.5917, 59.9132], [-166.1876, 59.7738], [-167.1389, 60.0086], [-166.4759, 60.3828], [-166.1355, 60.3835]]], [[[-134.7332, 58.2251], [-134.2671, 57.8846], [-133.9253, 57.3369], [-134.4354, 57.057], [-134.7332, 58.2251]]], [[[-135.7304, 58.2442], [-135.002, 58.0511], [-135.0848, 57.5111], [-136.0767, 57.6747], [-136.5123, 58.0959], [-135.7304, 58.2442]]], [[[-152.8979, 57.8238], [-152.4121, 57.4547], [-153.7933, 56.9895], [-154.339, 56.9209], [-154.7059, 57.3353], [-154.2813, 57.638], [-153.8184, 57.5956], [-152.8979, 57.8238]]], [[[-135.0653, 57.4168], [-134.6207, 56.7183], [-135.787, 57.3173], [-135.0653, 57.4168]]], [[[-133.7078, 57.0627], [-133.0708, 56.9742], [-132.9592, 56.677], [-133.6029, 56.4642], [-133.7078, 57.0627]]], [[[-78.9067, 56.3203], [-79.1755, 55.8851], [-80.0009, 55.9322], [-79.3925, 56.2764], [-78.9067, 56.3203]]], [[[-133.566, 56.3392], [-133.2029, 56.3199], [-131.9764, 55.2086], [-131.9809, 54.8049], [-132.7823, 55.0484], [-133.447, 55.797], [-133.2415, 55.9208], [-133.566, 56.3392]]], [[[-130.965, 55.5679], [-131.6475, 55.5855], [-131.2693, 55.9555], [-130.965, 55.5679]]], [[[-163.4761, 54.9807], [-163.358, 54.7356], [-164.0734, 54.6209], [-164.5907, 54.4043], [-164.8877, 54.6078], [-164.5297, 54.8808], [-163.8681, 55.039], [-163.4761, 54.9807]]], [[[-132.8931, 54.1408], [-131.7025, 53.9864], [-132.0113, 53.2653], [-132.7477, 53.3105], [-133.0522, 53.7784], [-132.8931, 54.1408]]], [[[-166.6153, 53.9009], [-166.4442, 53.6519], [-167.136, 53.5265], [-166.9782, 53.9628], [-166.6153, 53.9009]]], [[[-128.6326, 53.1126], [-128.5099, 52.5186], [-129.0847, 52.8225], [-128.6326, 53.1126]]], [[[-131.8535, 53.23], [-131.6524, 53.103], [-131.8097, 52.5417], [-132.3455, 53.1361], [-131.8535, 53.23]]], [[[-77.7015, 24.2878], [-77.5186, 23.8696], [-77.7712, 23.7524], [-77.9998, 24.2198], [-77.7015, 24.2878]]], [[[-82.1016, 23.1904], [-81.1788, 23.0595], [-80.6503, 23.103], [-80.0752, 22.9423], [-79.183, 22.3879], [-78.6865, 22.367], [-77.8651, 21.9005], [-77.4973, 21.8716], [-76.6475, 21.2844], [-75.7229, 21.1108], [-75.6428, 20.7335], [-74.8826, 20.6505], [-74.2529, 20.0797], [-75.1165, 19.9012], [-76.1586, 19.9895], [-77.7151, 19.8555], [-77.2135, 20.3003], [-77.2297, 20.6438], [-77.9974, 20.7153], [-78.4908, 21.0536], [-78.6366, 21.5156], [-79.2745, 21.5627], [-80.2313, 21.8721], [-80.4992, 22.0634], [-80.9619, 22.0528], [-81.8164, 22.2001], [-81.9036, 22.6791], [-82.7384, 22.6893], [-83.3796, 22.2228], [-84.3264, 22.0745], [-84.3612, 22.379], [-84.045, 22.6662], [-83.2577, 22.9676], [-82.1016, 23.1904]]], [[[-82.5679, 21.6217], [-82.8531, 21.4437], [-83.0826, 21.7913], [-82.7146, 21.8903], [-82.5679, 21.6217]]], [[[-157.7994, 21.4566], [-158.1104, 21.3186], [-158.273, 21.5853], [-157.9625, 21.7012], [-157.7994, 21.4566]]], [[[-155.5813, 19.0121], [-155.8813, 19.0707], [-156.0487, 19.7498], [-155.8203, 20.014], [-155.8316, 20.2759], [-155.1989, 19.9944], [-154.8042, 19.5243], [-155.5813, 19.0121]]], [[[-71.7682, 18.0391], [-72.0601, 18.2286], [-72.8766, 18.1518], [-73.3851, 18.2513], [-73.8849, 18.0417], [-74.4189, 18.3463], [-74.2276, 18.6628], [-73.5915, 18.5225], [-72.7894, 18.4346], [-72.3477, 18.6747], [-72.8112, 19.0716], [-72.7033, 19.4409], [-73.0526, 19.6109], [-73.1177, 19.9039], [-72.6369, 19.9008], [-71.8348, 19.6966], [-71.5578, 19.8954], [-70.9541, 19.9141], [-70.1294, 19.6362], [-69.7394, 19.2993], [-69.3228, 19.2012], [-68.6848, 18.9047], [-68.3392, 18.6121], [-68.6588, 18.222], [-68.9349, 18.408], [-69.7707, 18.4435], [-70.1831, 18.2517], [-70.6448, 18.336], [-71.0281, 18.273], [-71.3958, 17.6462], [-71.7682, 18.0391]]], [[[-66.153, 18.4705], [-65.6288, 18.3813], [-65.9708, 17.9743], [-67.1968, 17.9942], [-67.1586, 18.4994], [-66.153, 18.4705]]], [[[-77.3544, 18.4666], [-76.9083, 18.3902], [-76.3499, 18.1518], [-76.5245, 17.8664], [-76.8533, 17.9738], [-77.3615, 17.8336], [-77.7681, 17.8775], [-78.2167, 18.4479], [-77.8735, 18.522], [-77.3544, 18.4666]]], [[[-61.0041, 10.168], [-61.5967, 10.0646], [-61.4648, 10.5391], [-61.0338, 10.67], [-61.0041, 10.168]]], [[[-80.7096, 52.7874], [-81.839, 52.9579], [-81.8473, 53.1865], [-81.1359, 53.2058], [-80.7096, 52.7874]]], [[[-55.4532, 51.5623], [-55.8714, 50.9073], [-56.6939, 50.0597], [-55.7648, 49.9605], [-55.892, 49.5803], [-54.9827, 49.268], [-54.579, 49.4908], [-53.9577, 49.4418], [-53.5733, 49.1413], [-53.853, 48.8112], [-53.5312, 48.2317], [-53.695, 47.921], [-52.955, 48.0293], [-53.1756, 47.6529], [-52.6536, 47.5495], [-53.0697, 46.6812], [-53.6164, 46.6803], [-53.5813, 46.9573], [-54.1737, 46.8805], [-53.8692, 47.387], [-54.8566, 47.3848], [-55.3156, 46.9058], [-55.7886, 46.8672], [-55.1909, 47.4492], [-56.2211, 47.6715], [-56.9525, 47.5743], [-58.3332, 47.6769], [-59.1169, 47.5708], [-59.3623, 47.8655], [-58.7105, 48.325], [-58.7165, 48.5979], [-58.0158, 49.5426], [-57.4656, 50.4636], [-56.7503, 51.2751], [-56.0256, 51.5685], [-55.4532, 51.5623]]], [[[-127.7131, 50.8207], [-126.701, 50.5156], [-125.4821, 50.3167], [-124.6429, 49.4285], [-123.9959, 49.2241], [-123.4972, 48.582], [-123.5946, 48.3334], [-124.6893, 48.5975], [-125.8285, 49.0918], [-125.8354, 49.2767], [-126.5485, 49.4189], [-126.6832, 49.8764], [-127.1143, 49.8797], [-127.9059, 50.4452], [-127.7131, 50.8207]]], [[[-61.7456, 49.1058], [-62.2195, 49.0791], [-63.5658, 49.3994], [-64.1315, 49.9416], [-62.8584, 49.7055], [-61.8171, 49.2835], [-61.7456, 49.1058]]], [[[-63.8337, 46.4939], [-63.1294, 46.422], [-62.1635, 46.4872], [-62.8784, 46.0012], [-63.641, 46.2307], [-63.8337, 46.4939]]], [[[-60.9122, 46.0447], [-60.8061, 45.738], [-60.4723, 45.9466], [-60.5049, 46.204], [-59.8651, 46.1596], [-60.3862, 45.6545], [-61.2837, 45.5737], [-61.4952, 45.9413], [-60.8702, 46.7966], [-60.3318, 46.7678], [-60.5768, 46.1721], [-60.9122, 46.0447]]], [[[-72.4274, 41.0385], [-72.3391, 40.8942], [-73.1942, 40.6541], [-73.5738, 40.9195], [-72.4274, 41.0385]]], [[[-77.8402, 24.7942], [-77.7453, 24.4635], [-78.0449, 24.2873], [-78.2988, 24.7538], [-78.0333, 25.1431], [-77.8402, 24.7942]]], [[[-30.7029, 83.5935], [-25.9475, 83.2897], [-24.4702, 82.8773], [-21.5208, 82.5954], [-25.1491, 82.001], [-21.3379, 82.0687], [-21.1466, 81.6952], [-17.2261, 81.4304], [-15.5555, 81.8337], [-12.1928, 81.649], [-11.5288, 81.424], [-14.5035, 80.7633], [-16.7607, 80.5733], [-16.8683, 80.1982], [-19.4292, 80.2577], [-20.1385, 79.8033], [-19.2836, 79.683], [-19.0749, 79.1524], [-20.9557, 78.5551], [-20.8625, 77.9119], [-20.2319, 77.3684], [-18.339, 77.2152], [-18.5103, 76.7782], [-20.9422, 76.887], [-21.8772, 76.5734], [-21.5692, 76.2937], [-20.1036, 76.2191], [-19.5091, 75.7575], [-19.426, 75.2299], [-20.4849, 75.3143], [-19.2252, 74.4795], [-19.3692, 74.284], [-21.1295, 74.1109], [-20.3673, 73.8483], [-20.5096, 73.493], [-22.1851, 73.2699], [-22.0364, 72.9183], [-22.2931, 72.1196], [-24.0692, 72.4986], [-24.6669, 72.4374], [-22.0133, 71.6888], [-21.7523, 71.4784], [-21.5228, 70.5262], [-23.3279, 70.451], [-23.7917, 70.5551], [-24.377, 71.1463], [-25.6558, 71.5301], [-25.7422, 71.1836], [-26.7179, 70.9506], [-27.6887, 70.9934], [-28.5409, 70.4769], [-28.0149, 70.4024], [-26.7472, 70.4756], [-26.4156, 70.2213], [-25.53, 70.3531], [-23.1732, 70.1145], [-23.0882, 69.883], [-26.3414, 68.7023], [-29.2496, 68.2988], [-29.8686, 68.3116], [-30.9786, 68.0613], [-32.1373, 68.3849], [-32.2747, 67.9228], [-33.157, 67.6267], [-34.1016, 66.7258], [-34.6329, 66.4351], [-36.3792, 65.8307], [-37.7541, 65.593], [-39.9609, 65.5562], [-39.5779, 65.3407], [-40.6554, 64.9154], [-40.1822, 64.48], [-40.6179, 64.1317], [-40.5504, 63.7253], [-42.1529, 62.5686], [-42.3216, 62.1526], [-42.1103, 61.8572], [-42.4188, 61.537], [-42.7171, 60.7675], [-43.1565, 60.3329], [-43.3203, 59.9281], [-44.0654, 59.9247], [-45.3793, 60.2028], [-45.5904, 60.5189], [-46.0467, 60.6157], [-46.0116, 61.0971], [-46.8746, 60.8163], [-47.7963, 60.8289], [-48.922, 61.2775], [-49.2891, 61.59], [-49.5534, 62.2328], [-50.3192, 62.4731], [-50.3382, 62.8287], [-51.4688, 63.6423], [-51.4511, 63.9047], [-52.0934, 64.4158], [-52.259, 65.1549], [-53.6346, 66.4136], [-53.0382, 66.8268], [-53.8845, 67.1355], [-53.4189, 67.5746], [-53.578, 67.8369], [-53.0393, 68.6108], [-51.2493, 68.74], [-50.5, 69.9358], [-52.2545, 70.059], [-54.0143, 70.4217], [-54.1659, 70.8201], [-52.4052, 70.6867], [-51.5245, 70.4394], [-51.1301, 70.9717], [-53.117, 71.313], [-53.4761, 71.6402], [-54.689, 71.3672], [-55.5939, 71.5536], [-55.3156, 72.1107], [-55.6017, 72.4536], [-54.7379, 72.8726], [-55.6687, 73.0078], [-55.2972, 73.2624], [-56.104, 73.5582], [-55.9295, 73.8954], [-56.7063, 74.2192], [-56.2555, 74.5268], [-58.6035, 75.3853], [-58.5163, 75.6891], [-61.3747, 76.1801], [-63.4388, 76.3394], [-66.8262, 75.9688], [-68.149, 76.0671], [-69.3728, 76.3319], [-69.252, 76.6861], [-70.7928, 76.869], [-70.8629, 77.1755], [-68.9784, 77.1952], [-68.1354, 77.3795], [-66.4531, 77.393], [-66.6912, 77.6813], [-69.3515, 77.4671], [-72.8181, 78.1944], [-72.3957, 78.5043], [-68.9935, 78.8574], [-67.4822, 79.1169], [-65.9679, 79.1324], [-64.7923, 80.0006], [-66.8437, 80.0761], [-66.996, 80.413], [-62.9932, 81.2069], [-61.436, 81.1337], [-61.2029, 81.7469], [-58.7174, 82.0932], [-54.7259, 82.3513], [-52.7757, 82.3218], [-50.8944, 81.8952], [-49.6942, 81.9722], [-48.8612, 82.4054], [-45.2912, 81.8288], [-44.2389, 82.3681], [-46.4782, 82.9519], [-43.1945, 83.255], [-37.828, 83.4856], [-30.7029, 83.5935]]], [[[-69.5694, 83.0249], [-63.641, 82.8127], [-61.477, 82.4674], [-62.1766, 82.0434], [-64.5741, 81.7336], [-65.4838, 81.2848], [-70.1434, 80.3977], [-71.3878, 79.7618], [-73.2937, 79.5217], [-75.2595, 79.4209], [-76.2558, 79.0068], [-74.4334, 78.724], [-75.866, 78.0098], [-78.0127, 77.9461], [-78.0762, 77.5191], [-79.3408, 77.1584], [-78.2888, 76.978], [-78.2844, 76.5711], [-80.6903, 76.1765], [-81.1708, 76.5128], [-83.8856, 76.4531], [-85.1412, 76.3046], [-89.5701, 76.4919], [-89.4997, 76.8268], [-88.3982, 77.104], [-86.8737, 77.2004], [-88.0946, 77.7193], [-87.0179, 77.8922], [-87.5519, 78.1767], [-86.808, 78.7744], [-84.3162, 78.9753], [-85.0901, 79.6122], [-86.4207, 79.8453], [-86.3073, 80.3194], [-83.7236, 80.229], [-80.051, 80.5287], [-83.4013, 80.714], [-85.3074, 80.526], [-88.9213, 80.8054], [-89.9474, 81.1725], [-88.9786, 81.5414], [-90.4903, 81.8772], [-86.5807, 82.1873], [-84.8968, 82.4494], [-82.1225, 82.6019], [-79.8864, 82.9385], [-77.4796, 82.8831], [-75.7449, 83.0471], [-69.5694, 83.0249]]], [[[-91.9977, 81.1854], [-90.643, 80.5937], [-87.6749, 80.3722], [-87.1442, 79.6624], [-85.5014, 79.5303], [-85.2899, 79.2083], [-87.0164, 78.8987], [-88.7911, 78.1925], [-90.6143, 78.1498], [-92.6782, 78.3893], [-95.1032, 79.29], [-95.297, 79.6531], [-96.7734, 80.1358], [-95.6148, 80.3962], [-96.1328, 80.6913], [-95.2697, 81.0007], [-91.9977, 81.1854]]], [[[-103.7063, 79.3521], [-99.6094, 78.5831], [-99.1664, 77.8569], [-100.5859, 77.8917], [-101.0742, 78.1938], [-102.7313, 78.3711], [-103.5183, 78.7691], [-105.5358, 79.0325], [-105.3877, 79.3235], [-103.7063, 79.3521]]], [[[-96.2564, 78.5511], [-94.8873, 78.3454], [-95.0872, 77.9927], [-96.9895, 77.806], [-98.2548, 78.4293], [-98.212, 78.8046], [-96.2564, 78.5511]]], [[[-109.9412, 78.6785], [-109.3908, 78.3367], [-113.1499, 78.4084], [-110.4077, 78.7566], [-109.9412, 78.6785]]], [[[-110.4581, 78.1035], [-109.7718, 77.9574], [-110.1984, 77.5246], [-111.952, 77.3442], [-113.1643, 77.5302], [-113.2153, 77.9035], [-110.4581, 78.1035]]], [[[-95.4843, 77.7921], [-93.301, 77.7399], [-93.5196, 77.4745], [-95.9872, 77.484], [-95.4843, 77.7921]]], [[[-116.0081, 77.4607], [-115.6239, 77.2658], [-116.2205, 76.6111], [-119.3679, 76.2218], [-119.9128, 75.8589], [-121.9083, 76.0347], [-122.7741, 76.2278], [-121.6138, 76.4415], [-119.0902, 77.3051], [-116.8353, 77.5288], [-116.0081, 77.4607]]], [[[-94.616, 76.9584], [-92.7162, 76.6029], [-91.305, 76.6808], [-90.8547, 76.4373], [-89.2844, 76.3017], [-90.2515, 76.0536], [-88.2014, 75.512], [-87.257, 75.6177], [-86.0687, 75.5022], [-83.932, 75.819], [-82.1538, 75.8309], [-79.6602, 75.4494], [-79.5082, 74.8801], [-80.2779, 74.5816], [-81.8089, 74.4766], [-83.5318, 74.5856], [-84.4256, 74.5081], [-88.4231, 74.4942], [-89.8444, 74.5485], [-91.9616, 74.7931], [-92.4283, 75.3828], [-92.1851, 75.8465], [-93.0917, 76.3541], [-95.2739, 76.2644], [-96.6397, 76.703], [-96.7583, 76.9717], [-94.616, 76.9584]]], [[[-108.3869, 76.0667], [-107.1356, 75.8787], [-106.3967, 76.0602], [-105.4812, 75.7457], [-105.8625, 75.1915], [-107.1533, 74.9272], [-108.8312, 75.0648], [-110.9408, 74.6387], [-112.5193, 74.4169], [-113.5141, 74.43], [-114.4518, 75.0879], [-115.7289, 74.9682], [-117.6001, 75.2716], [-116.6098, 76.0738], [-115.5806, 76.4375], [-114.1939, 76.4515], [-112.6975, 76.2016], [-111.0527, 75.5484], [-109.0865, 75.5065], [-108.9449, 75.6989], [-110.2703, 76.4169], [-109.3386, 76.76], [-108.467, 76.7376], [-108.3869, 76.0667]]], [[[-97.7259, 76.4961], [-97.4097, 75.5522], [-97.7994, 75.1167], [-100.2344, 75.0077], [-100.7122, 75.4064], [-102.5413, 75.5136], [-101.4313, 75.9919], [-102.1378, 76.2848], [-100.388, 76.6135], [-97.7259, 76.4961]]], [[[-102.4259, 76.0864], [-103.3148, 75.7641], [-104.3506, 76.1823], [-103.0981, 76.3115], [-102.4259, 76.0864]]], [[[-93.5518, 75.0513], [-93.5471, 74.691], [-94.6973, 74.6422], [-96.5658, 75.0987], [-95.6707, 75.5287], [-94.4272, 75.5935], [-93.5518, 75.0513]]], [[[-18.0005, 75.4073], [-17.5861, 74.9929], [-18.6708, 75.0015], [-18.0005, 75.4073]]], [[[-119.737, 74.13], [-117.5149, 74.2318], [-115.5107, 73.6188], [-115.4468, 73.4388], [-118.9615, 72.6842], [-119.4078, 72.3604], [-120.1802, 72.2126], [-120.6195, 71.5057], [-123.2107, 71.1235], [-124.0077, 71.6774], [-125.7626, 72.1375], [-124.9871, 72.5881], [-124.8364, 73.0762], [-123.7973, 73.7682], [-124.6962, 74.3481], [-121.3153, 74.5299], [-119.737, 74.13]]], [[[-93.4102, 74.1788], [-92.2228, 73.9726], [-90.3547, 73.8687], [-92.118, 72.7539], [-93.3407, 72.8018], [-94.0376, 72.0288], [-95.1929, 72.0275], [-95.5478, 72.7816], [-95.633, 73.6954], [-94.9736, 74.0414], [-93.4102, 74.1788]]], [[[-100.002, 73.946], [-99.1579, 73.7316], [-97.5819, 73.8876], [-97.0017, 73.6665], [-97.7959, 73.2852], [-97.0519, 72.6367], [-96.6133, 71.8339], [-98.663, 71.3021], [-99.167, 71.3672], [-100.5944, 72.1524], [-101.7241, 72.3149], [-102.7137, 72.783], [-101.9225, 73.0568], [-101.3508, 72.7463], [-100.4847, 72.773], [-100.2828, 73.1203], [-101.4509, 73.431], [-100.9151, 73.8052], [-100.002, 73.946]]], [[[-86.4735, 71.0427], [-84.7896, 71.0933], [-84.6995, 71.6315], [-85.9115, 71.9866], [-85.3411, 72.4216], [-85.6445, 72.7745], [-85.0184, 73.3356], [-82.6596, 73.7296], [-81.406, 73.6346], [-80.2748, 72.7455], [-80.9413, 72.2101], [-78.453, 72.4352], [-77.7532, 72.7248], [-76.6979, 72.6951], [-75.2943, 72.4809], [-74.9032, 72.1005], [-73.7136, 71.7198], [-71.6406, 71.5163], [-69.9501, 70.8449], [-68.3583, 70.5231], [-67.3637, 70.0344], [-66.6852, 69.2858], [-67.7517, 69.0387], [-68.038, 68.5507], [-67.033, 68.3261], [-66.2251, 67.9587], [-64.5275, 67.8127], [-64.0079, 67.3473], [-61.9684, 67.019], [-61.2997, 66.6488], [-61.9915, 66.0354], [-62.6589, 65.6399], [-63.3643, 65.5433], [-63.4018, 65.1185], [-64.6653, 65.1689], [-65.4017, 65.7639], [-65.3054, 66.0085], [-66.4771, 66.2797], [-67.1835, 66.0345], [-68.2568, 65.9386], [-67.3034, 65.4829], [-66.8606, 65.0916], [-65.2748, 64.6316], [-65.0107, 64.0088], [-64.6786, 64.0281], [-64.5144, 63.2639], [-65.0688, 63.2635], [-65.2659, 62.715], [-65.9788, 63.0007], [-67.676, 63.0935], [-66.2815, 62.3027], [-66.2567, 61.8683], [-67.4401, 62.1513], [-69.0823, 62.4052], [-69.5452, 62.7448], [-70.2364, 62.7634], [-71.2538, 63.0424], [-73.4439, 64.4236], [-74.5124, 64.6702], [-75.0675, 64.4567], [-76.7239, 64.242], [-77.7912, 64.367], [-78.1745, 64.6178], [-78.0957, 64.9392], [-77.4474, 65.1618], [-77.3267, 65.4532], [-75.8283, 65.227], [-73.5607, 65.5429], [-74.434, 66.139], [-73.0333, 66.7283], [-72.2201, 67.2543], [-73.3283, 68.2668], [-74.648, 68.7076], [-74.9174, 68.9828], [-76.4034, 68.6923], [-75.7872, 69.3186], [-77.5917, 69.8455], [-77.7219, 70.1707], [-79.3033, 69.8948], [-81.0982, 70.0912], [-82.1387, 69.8413], [-83.0913, 70.004], [-83.8594, 69.9627], [-86.3219, 70.1454], [-86.6244, 70.4013], [-87.9006, 70.2519], [-88.8483, 70.5231], [-89.3655, 71.0671], [-88.0387, 70.9512], [-87.8724, 71.2085], [-89.0794, 71.2879], [-89.8457, 71.4923], [-90.0251, 71.9489], [-89.2631, 73.0691], [-87.7197, 73.7229], [-86.7687, 73.8341], [-85.1108, 73.8081], [-86.6293, 72.8709], [-86.036, 71.7709], [-85.0235, 71.3532], [-86.4735, 71.0427]]], [[[-79.8893, 73.7014], [-78.2866, 73.6659], [-77.2066, 73.4996], [-76.2895, 73.081], [-76.4005, 72.8207], [-77.836, 72.8968], [-79.5006, 72.7559], [-80.1833, 73.2246], [-80.8241, 73.3807], [-80.8492, 73.7211], [-79.8893, 73.7014]]], [[[-105.2006, 72.9474], [-106.9216, 73.4799], [-105.5123, 73.7657], [-104.583, 73.3538], [-105.2006, 72.9474]]], [[[-114.4977, 72.6258], [-113.5003, 72.6944], [-112.7539, 72.986], [-111.2698, 72.7137], [-108.6983, 72.4995], [-108.2105, 71.7511], [-107.306, 71.8947], [-107.6958, 72.1493], [-108.2382, 73.1059], [-107.72, 73.3289], [-106.4822, 73.1962], [-105.415, 72.7883], [-105.2342, 72.415], [-104.3495, 71.434], [-104.5696, 71.1039], [-103.9535, 70.7626], [-100.9732, 70.0295], [-100.9351, 69.7152], [-102.2343, 69.8422], [-102.9197, 69.5647], [-101.9755, 69.4069], [-101.857, 69.0239], [-103.4681, 68.8084], [-105.0195, 69.0813], [-106.1408, 69.1621], [-106.659, 69.4396], [-107.4399, 69.0021], [-108.946, 68.7597], [-111.3108, 68.542], [-113.1277, 68.4941], [-113.6168, 68.8385], [-113.6941, 69.195], [-115.1591, 69.2647], [-116.5135, 69.4247], [-117.1043, 69.8042], [-117.1353, 70.1001], [-114.5923, 70.3125], [-112.6378, 70.2253], [-112.1143, 70.4468], [-113.7573, 70.6907], [-115.991, 70.5864], [-117.5872, 70.6296], [-118.2642, 70.8882], [-117.8141, 71.1588], [-118.8683, 71.687], [-118.9446, 71.9855], [-118.2136, 72.2629], [-118.3745, 72.5339], [-117.5517, 72.8311], [-114.6382, 73.3727], [-114.1091, 72.8611], [-114.4977, 72.6258]]]] }, "properties": { "name": "North America", "id": "northAmerica" }, "id": "northAmerica" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[179.9991, -16.1686], [179.7483, -16.4464], [179.9281, -16.7443], [179.007, -16.9001], [178.805, -16.6315], [179.5517, -16.2498], [179.9991, -16.1686]]], [[[178.2804, -17.372], [178.5915, -17.6516], [178.6679, -18.0809], [177.8471, -18.2549], [177.3216, -18.0773], [177.2638, -17.8633], [177.6181, -17.4612], [178.2804, -17.372]]], [[[164.0598, -20.1414], [164.4358, -20.2821], [165.1918, -20.7691], [165.6627, -21.2671], [166.3033, -21.6373], [166.9425, -22.0901], [166.7742, -22.376], [166.096, -21.9565], [165.2419, -21.5255], [164.4549, -20.829], [164.1699, -20.4801], [164.0598, -20.1414]]], [[[173.2404, -34.899], [173.8441, -35.0264], [174.3204, -35.2466], [174.5437, -35.5822], [174.391, -35.7739], [174.802, -36.3093], [174.7226, -36.8411], [175.2996, -36.9933], [175.4608, -36.4757], [175.8762, -36.9578], [176.108, -37.645], [176.7698, -37.8895], [177.3358, -37.9907], [178.0091, -37.5548], [178.536, -37.692], [178.2679, -38.5509], [177.9763, -38.7223], [177.9656, -39.1426], [177.4077, -39.0809], [176.954, -39.3677], [177.1098, -39.6731], [176.8422, -40.1578], [175.9828, -41.2134], [175.3098, -41.6107], [175.1656, -41.4176], [174.6356, -41.2893], [175.1625, -40.6217], [175.2543, -40.2892], [175.0093, -39.9523], [173.9342, -39.5093], [173.8441, -39.1395], [174.5974, -38.7849], [174.7155, -38.2256], [174.9281, -37.8043], [174.7292, -37.4488], [174.782, -36.9436], [174.4758, -36.9418], [174.4469, -36.4509], [173.9453, -36.1761], [173.1166, -35.2053], [173.2404, -34.899]]], [[[137.5963, -35.7384], [137.4485, -36.0749], [136.7551, -36.0332], [136.6388, -35.7491], [137.334, -35.5924], [137.5963, -35.7384]]], [[[173.0686, -41.1859], [173.2306, -41.2844], [173.7376, -40.9888], [174.3026, -41.0194], [174.0922, -41.5055], [174.2831, -41.7407], [173.5449, -42.518], [173.2213, -42.9765], [172.7184, -43.2589], [172.9208, -43.8914], [172.3855, -43.8297], [171.4426, -44.136], [171.1133, -45.0393], [170.7005, -45.6843], [169.6866, -46.5516], [168.382, -46.6054], [168.1889, -46.3621], [167.682, -46.193], [166.7316, -46.1979], [166.7338, -45.5436], [167.1946, -44.9634], [167.7872, -44.595], [168.3665, -44.0818], [168.8064, -43.9922], [169.6613, -43.5913], [170.3027, -43.1075], [170.7417, -42.9273], [171.2571, -42.4652], [171.4861, -41.7949], [172.0108, -41.4447], [172.1396, -40.9471], [172.6407, -40.5183], [172.9892, -40.8481], [173.0686, -41.1859]]], [[[144.8184, -40.7216], [145.2832, -40.77], [146.3175, -41.1637], [146.99, -40.9923], [147.4547, -41.0017], [147.9687, -40.7797], [148.2928, -40.9471], [148.3017, -42.0399], [147.9244, -42.5726], [147.9807, -43.1572], [147.4081, -42.894], [146.8741, -43.6126], [145.9943, -43.376], [145.4874, -42.9268], [145.2681, -42.5442], [145.2384, -42.0195], [144.7776, -41.4189], [144.6458, -40.9808], [144.8184, -40.7216]]], [[[167.9559, -46.6946], [168.2409, -47.0701], [167.6292, -47.1425], [167.9559, -46.6946]]], [[[150.9952, -2.6885], [152.1795, -3.4102], [153.1241, -4.2523], [153.0233, -4.6664], [152.6807, -4.4986], [152.5985, -3.9948], [152.1924, -3.5057], [151.9731, -3.4533], [150.9681, -2.7799], [150.9952, -2.6885]]], [[[140.9761, -9.1187], [140.9752, -6.9054], [140.8625, -6.7399], [140.9748, -6.3461], [140.9743, -5.0398], [140.9735, -2.6099], [141.1856, -2.6276], [142.2115, -3.0835], [142.9053, -3.3206], [143.509, -3.4311], [144.0159, -3.7835], [144.4775, -3.8253], [145.0879, -4.3491], [145.3347, -4.3855], [145.767, -4.8231], [145.8527, -5.4712], [146.4036, -5.6164], [147.0344, -5.9191], [147.3766, -5.9506], [147.8018, -6.3151], [147.8453, -6.6626], [147.1191, -6.7217], [146.9607, -6.929], [147.1902, -7.3782], [147.7242, -7.8762], [148.1268, -8.1035], [148.2466, -8.5545], [148.5831, -9.0516], [149.2476, -9.0712], [149.2032, -9.4068], [149.7612, -9.8058], [149.8748, -10.0131], [150.6672, -10.2573], [150.4825, -10.6368], [150.0169, -10.5773], [149.7541, -10.3531], [148.3833, -10.1853], [147.7686, -10.0699], [146.6966, -9.0255], [146.0334, -8.0764], [144.9738, -7.8021], [144.5099, -7.5673], [143.6137, -8.2003], [143.0948, -8.3112], [143.3922, -8.8017], [143.366, -8.9611], [142.6474, -9.3277], [142.2297, -9.1697], [141.1333, -9.2212], [140.9761, -9.1187]]], [[[151.9158, -4.2967], [152.4055, -4.3406], [152.4001, -4.7312], [152.0135, -5.0038], [152.1431, -5.3571], [151.8652, -5.5649], [151.515, -5.5524], [151.2291, -5.92], [150.4284, -6.2764], [149.6524, -6.2906], [149.3825, -6.078], [149.1264, -6.1277], [148.4011, -5.7651], [148.3447, -5.5449], [148.999, -5.4845], [149.2454, -5.5729], [150.2987, -5.5356], [150.953, -5.4237], [151.3268, -4.9603], [151.6713, -4.8835], [151.5518, -4.3455], [151.9158, -4.2967]]], [[[155.9575, -6.687], [155.7191, -6.8628], [155.344, -6.7217], [155.202, -6.3075], [154.782, -5.9706], [154.7412, -5.5453], [154.9969, -5.54], [155.467, -6.145], [155.8225, -6.3803], [155.9575, -6.687]]], [[[159.8793, -8.5341], [158.944, -8.0409], [158.5969, -7.759], [158.7345, -7.6046], [159.1096, -7.9037], [159.8433, -8.3272], [159.8793, -8.5341]]], [[[160.7493, -8.3139], [160.9979, -8.6122], [161.2584, -9.3171], [160.8736, -9.1569], [160.5904, -8.3729], [160.7493, -8.3139]]], [[[159.7505, -9.2727], [159.9707, -9.4334], [160.3547, -9.4214], [160.6254, -9.5888], [160.6494, -9.9288], [159.8535, -9.7916], [159.6218, -9.5319], [159.7505, -9.2727]]], [[[161.7152, -10.3873], [162.1054, -10.4539], [162.1236, -10.8246], [161.5381, -10.5671], [161.7152, -10.3873]]], [[[143.1787, -11.9547], [143.1104, -12.3036], [143.4015, -12.6401], [143.5866, -13.4435], [143.5485, -13.7409], [143.7562, -14.3491], [143.9617, -14.4627], [144.4731, -14.2319], [144.648, -14.4924], [145.2876, -14.943], [145.2717, -15.4765], [145.4581, -16.0563], [145.4261, -16.4061], [145.902, -17.0701], [146.1257, -17.6352], [146.0325, -18.2731], [146.3335, -18.5536], [146.2971, -18.8412], [146.4813, -19.0787], [147.1387, -19.393], [147.4183, -19.3784], [147.9155, -19.8693], [148.7593, -20.2897], [148.6839, -20.5804], [149.205, -21.1251], [149.7039, -22.4408], [150.0763, -22.1647], [150.5415, -22.5593], [150.7639, -22.5762], [150.843, -23.4582], [151.5004, -24.0126], [151.9025, -24.2008], [152.1298, -24.5976], [152.4565, -24.8023], [152.6545, -25.2022], [152.9137, -25.4322], [153.1649, -25.9644], [153.0842, -26.304], [153.117, -27.1944], [153.5756, -28.2407], [153.6044, -28.8546], [153.3483, -29.2905], [153.2724, -29.8924], [153.0305, -30.5635], [152.9439, -31.4349], [152.5595, -32.0457], [152.4703, -32.439], [152.1644, -32.7573], [151.8129, -32.9011], [151.4839, -33.3476], [151.2314, -34.0295], [150.9601, -34.2971], [150.6903, -35.1778], [150.1953, -35.8334], [149.9605, -36.8455], [149.9325, -37.5287], [149.2987, -37.8021], [148.2626, -37.8309], [147.3957, -38.2189], [146.8568, -38.6632], [145.9353, -38.9016], [145.791, -38.6668], [144.6653, -38.21], [143.5392, -38.8208], [142.6123, -38.4515], [141.725, -38.2713], [141.4244, -38.3636], [141.0112, -38.0769], [140.6272, -38.0285], [139.7843, -37.2459], [139.8575, -36.6622], [139.5481, -36.0967], [139.0376, -35.6892], [138.1845, -35.6128], [138.5112, -35.0242], [138.4899, -34.7637], [138.0895, -34.1697], [137.6918, -35.1432], [136.8834, -35.2399], [137.0144, -34.9159], [137.3908, -34.9137], [137.4938, -34.1613], [137.9319, -33.5789], [137.8525, -33.2007], [137.4423, -33.1936], [137.2372, -33.6295], [136.4307, -34.0299], [135.6476, -34.9394], [135.1855, -33.9069], [134.7909, -33.3285], [134.3013, -33.1652], [134.1002, -32.7488], [134.2343, -32.5486], [133.5511, -32.1829], [133.212, -32.1838], [132.7575, -31.956], [132.2146, -32.0071], [131.7214, -31.6964], [131.1435, -31.4957], [130.783, -31.604], [130.1296, -31.5792], [128.9462, -31.7026], [128.0677, -32.0666], [127.3198, -32.2641], [125.9171, -32.2969], [124.759, -32.8829], [124.126, -33.1292], [123.6506, -33.8364], [123.2076, -33.9882], [122.7774, -33.891], [122.1511, -33.9917], [122.061, -33.8745], [121.4054, -33.8266], [120.4186, -33.9629], [119.854, -33.9749], [119.4505, -34.3681], [118.8952, -34.48], [118.1357, -34.9865], [117.5817, -35.0979], [116.5172, -34.9878], [115.9868, -34.7952], [115.7262, -34.5262], [115.0089, -34.2558], [115.1816, -33.6433], [115.5154, -33.5314], [115.6832, -33.1927], [115.6982, -31.6946], [115.1767, -30.8081], [114.9947, -30.2164], [114.9592, -29.4334], [114.5375, -28.5429], [114.165, -28.0809], [114.0283, -27.3471], [113.5818, -26.5583], [113.853, -26.3319], [113.5889, -26.0984], [113.5396, -25.6252], [114.2156, -26.2893], [114.2143, -25.8516], [113.671, -24.9772], [113.4175, -24.4356], [113.5529, -23.7329], [113.7571, -23.4182], [113.7953, -22.9144], [113.683, -22.6379], [113.9586, -21.9392], [114.1637, -22.3231], [114.3777, -22.3413], [114.6027, -21.9423], [114.8588, -21.7359], [115.4563, -21.4917], [116.0107, -21.0305], [116.7068, -20.6537], [117.4063, -20.7211], [118.1991, -20.3753], [118.7513, -20.2617], [119.1047, -19.9954], [119.5858, -20.0384], [120.1962, -19.9092], [120.8785, -19.6651], [121.4937, -19.1067], [121.8337, -18.4773], [122.2372, -17.9686], [122.1604, -17.3138], [122.7202, -16.7878], [122.9705, -16.4367], [123.1419, -16.8633], [123.5254, -17.4856], [123.778, -16.8677], [123.4903, -16.4908], [124.577, -16.1135], [124.3817, -15.758], [124.8389, -15.1609], [125.2433, -14.9448], [125.1789, -14.7148], [125.6814, -14.3881], [126.021, -14.4947], [126.1115, -14.1142], [126.5696, -14.1608], [126.9034, -13.744], [127.6727, -14.195], [128.1996, -14.7517], [129.4589, -14.9332], [129.7536, -14.7894], [129.3786, -14.3926], [129.7097, -13.9802], [129.8389, -13.5731], [130.2597, -13.3024], [130.1682, -12.9575], [130.3999, -12.688], [130.898, -12.5238], [131.0458, -12.1895], [131.4382, -12.277], [132.3722, -12.2392], [132.5839, -12.1101], [132.6829, -11.5055], [133.0247, -11.4527], [133.1854, -11.7057], [133.904, -11.8322], [134.2369, -12.008], [134.7301, -11.9844], [135.218, -12.2215], [135.7884, -11.9072], [136.0818, -12.4226], [136.5403, -11.9578], [136.9474, -12.3498], [136.5372, -12.7843], [136.5945, -13.0036], [135.9273, -13.3041], [135.9894, -13.8102], [135.8833, -14.1533], [135.4053, -14.7583], [135.5309, -15.0002], [136.2052, -15.4033], [136.7844, -15.8942], [137.002, -15.8783], [137.7037, -16.2329], [138.2449, -16.7181], [139.0097, -16.8992], [139.2485, -17.3285], [140.036, -17.7027], [140.5114, -17.6245], [140.8305, -17.4146], [141.2189, -16.6462], [141.412, -16.0696], [141.4515, -15.6053], [141.6255, -15.0566], [141.523, -14.4702], [141.5945, -14.1529], [141.4724, -13.7977], [141.6455, -13.2593], [141.6779, -12.4914], [141.9513, -11.8961], [142.1684, -10.9466], [142.4565, -10.7074], [142.8369, -11.3071], [142.8724, -11.8215], [143.1787, -11.9547]]], [[[130.6188, -11.3763], [131.2682, -11.1899], [131.5385, -11.4367], [130.9508, -11.9263], [130.645, -11.7425], [130.6188, -11.3763]]], [[[136.7148, -13.804], [136.8945, -14.2931], [136.3632, -14.2288], [136.4249, -13.8648], [136.7148, -13.804]]], [[[166.7458, -14.8267], [166.8102, -15.1574], [167.1316, -15.1352], [167.1995, -15.4859], [166.8257, -15.635], [166.6313, -15.406], [166.5274, -14.8502], [166.7458, -14.8267]]], [[[167.4126, -16.0958], [167.8365, -16.4496], [167.4494, -16.5552], [167.4126, -16.0958]]]] }, "properties": { "name": "Oceania", "id": "oceania" }, "id": "oceania" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-59.7339, -80.3442], [-60.5828, -80.9484], [-64.2683, -80.7486], [-65.9801, -80.3846], [-62.5189, -80.3736], [-61.3432, -79.8866], [-59.7064, -79.8755], [-59.7339, -80.3442]]], [[[-159.053, -79.8076], [-161.8655, -79.7037], [-164.2259, -79.3206], [-163.2562, -78.7223], [-161.6431, -78.9012], [-159.6842, -79.4023], [-159.053, -79.8076]]], [[[-70.334, -79.6797], [-71.7836, -79.4445], [-70.544, -78.8838], [-67.4785, -78.3627], [-66.7281, -78.3836], [-69.2509, -79.2101], [-70.334, -79.6797]]], [[[-45.2226, -78.8106], [-43.722, -78.8186], [-42.9654, -79.4769], [-43.5278, -80.1916], [-49.1875, -80.643], [-49.773, -80.7842], [-54.1626, -80.8703], [-53.4823, -80.1889], [-52.2971, -80.1414], [-50.3391, -79.4796], [-50.7331, -79.2829], [-50.2197, -78.6051], [-49.0811, -78.0476], [-46.8257, -77.7852], [-45.5302, -77.8815], [-43.8086, -78.2864], [-43.9473, -78.5975], [-45.2226, -78.8106]]], [[[-120.5562, -73.756], [-120.2726, -73.9891], [-121.0625, -74.3375], [-122.8591, -74.3428], [-122.6247, -73.9655], [-123.1121, -73.6823], [-120.5562, -73.756]]], [[[-126.3299, -73.2864], [-124.9933, -73.8297], [-124.8731, -74.2083], [-127.4143, -73.5163], [-126.3299, -73.2864]]], [[[-74.3544, -73.0986], [-74.5748, -73.6113], [-75.9009, -73.3325], [-75.3769, -72.8203], [-74.3544, -73.0986]]], [[[-91.1608, -73.1821], [-91.6699, -72.6236], [-90.8072, -72.6108], [-91.1608, -73.1821]]], [[[-98.0911, -71.9125], [-96.8695, -71.8508], [-95.6095, -72.0683], [-96.0518, -72.5775], [-98.4078, -72.5477], [-100.1951, -72.2725], [-102.2647, -72.1354], [-102.128, -71.9853], [-98.6155, -71.7638], [-98.0911, -71.9125]]], [[[-73.7067, -70.635], [-74.205, -70.924], [-76.1763, -71.1326], [-76.5004, -70.9413], [-75.0076, -70.6088], [-73.7067, -70.635]]], [[[-74.9871, -69.7277], [-74.8489, -70.1791], [-75.7267, -70.0961], [-74.9871, -69.7277]]], [[[-70.0511, -69.1892], [-69.417, -69.5834], [-68.3361, -70.8561], [-68.2411, -71.822], [-69.2092, -72.5344], [-72.3675, -72.6698], [-73.0864, -72.4079], [-71.1066, -72.047], [-72.4121, -71.6622], [-73.8994, -72.1522], [-75.3531, -71.8783], [-75.2925, -71.6151], [-74.1872, -71.383], [-72.6216, -71.3883], [-71.1941, -70.9848], [-71.0611, -70.5369], [-70.328, -70.3611], [-71.8537, -69.9692], [-71.869, -68.9411], [-70.417, -68.7889], [-70.0511, -69.1892]]], [[[-67.9885, -67.4745], [-68.5804, -67.7328], [-69.0825, -67.403], [-68.3359, -66.802], [-67.6878, -67.1473], [-67.9885, -67.4745]]], [[[-57.0206, -63.3729], [-58.2631, -63.7636], [-58.8954, -64.389], [-59.9632, -64.4312], [-61.0598, -64.9812], [-61.7361, -65.0335], [-62.1453, -65.3318], [-62.3051, -65.8405], [-61.8754, -66.296], [-63.7525, -66.2778], [-64.0778, -66.6542], [-64.6862, -66.8064], [-64.8193, -67.3076], [-65.4432, -67.3262], [-65.6394, -68.1306], [-64.8984, -68.6734], [-63.3436, -68.8106], [-63.4559, -69.0419], [-62.4505, -69.5843], [-61.9611, -70.1201], [-61.9611, -70.9005], [-61.0172, -71.1668], [-61.2136, -71.5641], [-60.7193, -72.0728], [-60.3846, -73.0072], [-61.4054, -73.467], [-60.8789, -73.6122], [-61.0107, -74.4782], [-62.2257, -74.5057], [-63.9247, -75.0047], [-63.3634, -75.4517], [-66.3705, -76.0132], [-69.3044, -76.3506], [-70.0954, -76.6546], [-71.7987, -76.7527], [-75.2683, -76.5814], [-77.19, -76.6298], [-76.2487, -77.2747], [-75.3869, -77.474], [-72.852, -77.5903], [-73.2515, -77.8944], [-74.812, -78.1776], [-80.6015, -77.7519], [-81.4411, -77.8855], [-77.4325, -78.4346], [-77.8691, -78.7454], [-80.2923, -78.8226], [-83.246, -78.3569], [-83.26, -78.7742], [-80.1512, -79.2683], [-76.499, -79.3255], [-76.5578, -79.9035], [-75.2366, -80.8028], [-73.0296, -80.9173], [-70.239, -80.8565], [-64.7501, -81.5219], [-64.1371, -81.8695], [-65.9133, -82.1833], [-62.7357, -82.5273], [-61.5898, -83.3414], [-59.5159, -83.4586], [-57.3535, -82.8403], [-53.9862, -82.2006], [-48.3607, -81.8921], [-43.6692, -82.2699], [-41.4338, -81.2977], [-38.7718, -80.8823], [-37.2093, -81.0638], [-35.3269, -80.6505], [-29.3291, -80.172], [-24.2403, -80.0619], [-25.2586, -79.7623], [-29.9494, -79.599], [-30.3161, -79.1631], [-32.9943, -79.2288], [-36.2391, -78.7742], [-36.181, -78.4684], [-34.0758, -77.4252], [-32.0634, -77.1598], [-28.9336, -76.3701], [-26.0594, -75.9573], [-24.2696, -75.7668], [-19.4931, -75.54], [-17.2989, -74.334], [-15.6725, -74.4072], [-15.7488, -73.9456], [-16.5188, -73.6441], [-15.5959, -73.0968], [-14.3211, -73.123], [-14.2978, -72.7328], [-13.2087, -72.7852], [-11.497, -72.4128], [-10.8254, -71.5534], [-9.8879, -71.0274], [-9.2307, -71.1739], [-8.6466, -71.6728], [-7.7137, -71.5463], [-7.8735, -70.9404], [-5.9364, -70.7127], [-5.5879, -70.8569], [-5.9499, -71.3417], [-2.8121, -71.3208], [-0.8958, -71.3492], [-0.5431, -71.7128], [0.835, -71.2023], [2.6096, -70.9], [5.1132, -70.6559], [8.5232, -70.4739], [9.1415, -70.1836], [10.2175, -70.5081], [11.7014, -70.7664], [12.9292, -70.2133], [13.8228, -70.3434], [15.807, -70.3238], [18.1246, -70.5405], [19.1966, -70.2932], [19.2649, -70.9022], [21.0707, -70.8436], [21.705, -70.2586], [22.979, -70.8103], [23.8037, -70.4046], [24.7567, -70.892], [25.9743, -71.0372], [27.207, -70.9111], [30.0035, -70.2999], [31.3787, -70.2257], [32.6212, -70.0007], [32.9892, -69.6243], [32.5675, -69.0743], [33.1214, -68.689], [34.193, -68.7023], [35.2246, -69.6371], [37.5599, -69.7184], [38.8592, -70.006], [39.7053, -69.4258], [39.8637, -68.9669], [41.1328, -68.5749], [42.409, -68.3521], [42.8196, -68.123], [44.6999, -67.9042], [44.9893, -67.7692], [47.1174, -67.5726], [48.6479, -67.7941], [48.7136, -67.217], [49.2472, -66.9414], [50.6059, -67.15], [50.3325, -66.4447], [51.8843, -66.0199], [53.6719, -65.8587], [54.9481, -65.9164], [55.7102, -66.0798], [57.1853, -66.6133], [56.4533, -66.7798], [56.8919, -67.0563], [57.6274, -67.0142], [58.7376, -67.2295], [59.2507, -67.4851], [60.4821, -67.3853], [62.6878, -67.6476], [63.6989, -67.5082], [68.3279, -67.8895], [69.4163, -67.743], [69.9822, -68.4644], [69.5344, -68.7369], [69.6293, -69.2314], [68.9062, -69.3726], [69.0825, -69.8666], [68.1783, -69.8373], [67.2678, -70.2732], [67.9408, -70.4228], [69.2503, -70.4313], [68.8725, -71.0354], [68.0375, -71.391], [67.4321, -72.0031], [66.8919, -72.9486], [67.9714, -73.0857], [68.4197, -72.5149], [69.5548, -72.3746], [71.2766, -71.624], [71.9047, -70.7069], [72.7601, -70.3957], [72.8223, -70.0961], [73.9422, -69.7432], [75.4239, -69.8933], [75.8913, -69.5754], [77.8174, -69.069], [78.7265, -68.2779], [79.288, -68.1195], [82.017, -67.6902], [83.3043, -67.6032], [84.4851, -67.1145], [85.7107, -67.1611], [87.9803, -66.7882], [89.6986, -66.8229], [92.0734, -66.5077], [93.9644, -66.6897], [94.8397, -66.5015], [95.5411, -66.6311], [98.2577, -66.4673], [99.3701, -66.6484], [100.8891, -66.3581], [101.4746, -65.9511], [102.674, -65.8654], [103.9511, -65.9879], [108.1578, -66.6391], [109.4629, -66.9085], [110.6223, -66.5241], [110.9069, -66.0767], [113.0992, -65.8001], [113.7096, -65.9297], [114.3368, -66.3603], [115.3103, -66.561], [115.2739, -67.0279], [113.991, -67.2117], [114.0265, -67.4412], [116.7134, -67.047], [118.1388, -67.0825], [119.1331, -67.3706], [121.4875, -67.0905], [122.1826, -66.8593], [123.9693, -66.608], [124.5978, -66.7083], [125.8656, -66.3643], [126.6646, -66.4975], [127.5413, -67.051], [129.2369, -67.0417], [129.7412, -66.4686], [130.9517, -66.1912], [131.831, -66.2356], [133.4446, -66.0816], [134.9716, -66.3301], [135.352, -66.1273], [136.1941, -66.2924], [137.7539, -66.4065], [139.9001, -66.715], [141.9726, -66.8069], [142.8884, -67], [143.4481, -66.877], [144.6214, -67.1416], [143.9422, -67.7941], [145.9752, -67.6241], [146.8279, -67.9645], [147.0938, -68.3685], [148.4561, -68.467], [151.068, -68.3849], [151.562, -68.6939], [153.0819, -68.8568], [154.1997, -68.4178], [155.5202, -69.0246], [157.4813, -69.3087], [158.1578, -69.2088], [159.7838, -69.5217], [160.2095, -69.9749], [161.0369, -70.3172], [161.4244, -70.8268], [162.6749, -70.3047], [163.3487, -70.6208], [164.4034, -70.5103], [166.6269, -70.6643], [167.5692, -70.8103], [168.1725, -71.1832], [170.1625, -71.6307], [169.8287, -72.7288], [169.545, -73.0502], [167.6158, -73.337], [164.7758, -74.0286], [165.3027, -74.5936], [163.1672, -74.6021], [162.5337, -75.1671], [161.6797, -75.2177], [162.8156, -75.8463], [162.7628, -76.7456], [164.4296, -78.0422], [166.2087, -78.4515], [164.6347, -78.6033], [160.4829, -79.2017], [160.542, -80.425], [160.9078, -81.3901], [162.8214, -81.8664], [167.2328, -82.9521], [168.1099, -83.3618], [171.9172, -83.6441], [179.403, -84.2061], [180, -84.3517], [180, -89.9989], [-180, -89.9989], [-180, -89.583], [-180, -89.2931], [-180, -88.5869], [-180, -87.8811], [-180, -87.1753], [-180, -86.4695], [-180, -85.7633], [-180, -85.0575], [-180, -84.3517], [-171.7037, -84.5426], [-162.9335, -84.9012], [-157.1276, -85.1858], [-156.9864, -84.8111], [-163.5685, -84.5288], [-164.951, -83.8057], [-167.5528, -83.8111], [-169.1677, -83.4497], [-174.0661, -82.9002], [-171.8213, -82.8474], [-168.4178, -83.2287], [-163.111, -83.329], [-159.4445, -83.5434], [-157.6796, -83.1292], [-155.4594, -82.9805], [-153.0098, -82.4496], [-154.7175, -81.9409], [-153.9566, -81.7003], [-157.0326, -81.319], [-156.5283, -81.1623], [-148.1228, -80.9009], [-150.5755, -80.3536], [-148.3172, -80.0708], [-148.1765, -79.7761], [-152.0914, -79.2416], [-155.21, -78.9646], [-156.4693, -78.6353], [-154.7164, -78.3982], [-155.3416, -78.1918], [-157.2667, -78.1998], [-158.5003, -77.7786], [-158.2136, -77.1571], [-154.8149, -77.1269], [-153.4606, -77.4159], [-151.719, -77.4261], [-149.7177, -77.7976], [-145.967, -77.0688], [-145.7504, -76.7492], [-147.3404, -76.4384], [-146.383, -76.0998], [-143.5742, -75.5635], [-142.3298, -75.4907], [-141.5057, -75.6905], [-139.6911, -75.2129], [-137.6181, -75.0757], [-136.5494, -75.1396], [-135.362, -74.6904], [-133.4748, -74.852], [-132.0495, -74.7659], [-129.7907, -74.8915], [-127.8633, -74.7193], [-123.8894, -74.773], [-119.6771, -74.6544], [-118.3421, -74.3815], [-115.1052, -74.4551], [-114.7909, -73.9886], [-113.5085, -74.0889], [-113.9318, -74.982], [-111.6963, -74.7921], [-111.8064, -74.2696], [-110.307, -74.3668], [-110.3005, -74.7108], [-111.4631, -75.1334], [-109.2722, -75.1849], [-106.6189, -75.3438], [-104.9019, -75.1152], [-101.7081, -75.1272], [-101.0394, -75.4219], [-98.5578, -75.1898], [-101.2518, -74.4858], [-101.7154, -74.0237], [-102.7663, -73.8838], [-102.4108, -73.6166], [-100.9854, -73.7573], [-99.7812, -73.7201], [-100.0209, -73.4027], [-102.6751, -73.321], [-102.4092, -72.9876], [-98.0125, -73.0334], [-96.1521, -73.3095], [-94.2463, -73.313], [-92.241, -73.1785], [-90.9209, -73.3192], [-90.2954, -72.9779], [-88.1945, -72.8585], [-88.4193, -73.2291], [-87.0379, -73.3538], [-85.9808, -73.2087], [-84.9811, -73.5021], [-82.1835, -73.8568], [-81.3088, -73.7383], [-81.2624, -73.3148], [-80.4421, -72.9446], [-79.5217, -73.0897], [-78.4078, -73.5558], [-76.8506, -73.4604], [-77.1349, -73.8177], [-75.293, -73.6388], [-73.9961, -73.6996], [-72.9293, -73.4479], [-68.821, -73.1053], [-67.6671, -72.8345], [-66.8277, -72.0905], [-67.4603, -71.5268], [-67.8884, -70.4215], [-68.4033, -70.0198], [-68.7078, -69.4321], [-67.3717, -69.4125], [-66.9749, -69.1608], [-67.3906, -68.8612], [-66.7933, -68.2402], [-67.1498, -68.0245], [-66.705, -67.5273], [-67.5859, -67.435], [-67.4934, -67.1127], [-66.371, -66.6089], [-65.7664, -66.6249], [-65.6172, -66.1353], [-64.0658, -65.5538], [-64.0381, -65.1791], [-62.5761, -64.7557], [-61.6317, -64.6047], [-60.8643, -64.0734], [-59.5102, -63.8208], [-58.8721, -63.5518], [-57.3897, -63.2264], [-57.0206, -63.3729]]]] }, "properties": { "name": "Antarctica", "id": "antarctica" }, "id": "antarctica" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[-77.9011, 7.2294], [-77.7439, 7.537], [-77.3509, 7.7057], [-77.2124, 8.0338], [-77.4072, 8.427], [-77.3742, 8.6583], [-76.8519, 8.0906], [-76.8879, 8.6197], [-76.2769, 8.9886], [-76.1355, 9.2656], [-75.6394, 9.4502], [-75.6709, 10.1964], [-75.4459, 10.611], [-74.8446, 11.1095], [-74.4545, 10.9892], [-74.0594, 11.3408], [-73.3137, 11.2959], [-72.7219, 11.7127], [-72.2749, 11.889], [-72.1358, 12.1886], [-71.7145, 12.4199], [-71.2622, 12.3351], [-71.1375, 12.0461], [-71.4886, 11.7189], [-71.8686, 11.6275], [-71.9469, 11.4144], [-71.5942, 10.6572], [-72.1129, 9.8155], [-71.7607, 9.3357], [-71.687, 9.0725], [-71.2979, 9.1257], [-71.0858, 9.3481], [-71.0527, 9.7059], [-71.3867, 10.2639], [-71.5445, 10.7788], [-71.4695, 10.9643], [-70.2326, 11.3732], [-70.2865, 11.8859], [-70.004, 12.1779], [-69.6316, 11.4801], [-68.8279, 11.4317], [-68.3987, 11.161], [-68.234, 10.5693], [-67.8715, 10.4721], [-66.9891, 10.6105], [-66.2471, 10.6323], [-65.8518, 10.2577], [-65.1292, 10.0699], [-64.8504, 10.0979], [-63.8734, 10.6638], [-63.4968, 10.6434], [-62.7024, 10.7499], [-62.8429, 10.4179], [-62.5151, 10.176], [-62.3204, 9.7831], [-62.1196, 9.9847], [-60.7923, 9.3605], [-61.0534, 9.0951], [-61.3039, 8.4102], [-60.801, 8.5926], [-60.3402, 8.6286], [-59.9807, 8.5327], [-59.2003, 8.0746], [-58.6266, 7.5459], [-58.4808, 7.0381], [-57.9825, 6.786], [-56.9698, 5.9927], [-55.9395, 5.7957], [-55.8283, 5.9617], [-54.834, 5.9883], [-53.8472, 5.7823], [-53.4544, 5.5635], [-52.8993, 5.425], [-52.2905, 4.942], [-51.6659, 4.2287], [-51.2198, 4.0938], [-51.0525, 3.2819], [-50.6592, 2.1309], [-50.459, 1.8295], [-49.9572, 1.6599], [-49.8988, 1.1628], [-50.2945, 0.8356], [-50.8163, 0.1724], [-51.2828, -0.085], [-51.7025, -0.7624], [-51.9476, -1.5867], [-51.2975, -1.2236], [-50.9177, -1.1153], [-50.69, -1.7616], [-50.4033, -2.0155], [-49.9993, -1.8317], [-49.7195, -1.9263], [-49.3137, -1.7319], [-48.9913, -1.83], [-48.71, -1.4877], [-48.4459, -1.5206], [-48.4497, -1.1455], [-48.115, -0.7376], [-47.3981, -0.6266], [-46.8113, -0.7797], [-46.6173, -0.9706], [-46.2191, -1.0314], [-45.6447, -1.3479], [-45.0763, -1.4664], [-44.6513, -1.7456], [-44.3084, -2.5353], [-43.9329, -2.5833], [-42.9368, -2.4652], [-42.2496, -2.7919], [-41.8761, -2.7466], [-41.3181, -2.9361], [-40.4745, -2.7954], [-39.9647, -2.8616], [-38.4757, -3.7174], [-38.0489, -4.2163], [-37.1746, -4.9124], [-36.5907, -5.0975], [-35.9799, -5.0544], [-35.5493, -5.1294], [-35.2357, -5.5667], [-34.9882, -6.3936], [-34.8056, -7.2885], [-34.8346, -7.9717], [-35.1578, -8.9305], [-35.3409, -9.2305], [-36.3983, -10.4841], [-36.9378, -10.8206], [-37.4119, -11.4971], [-37.6887, -12.0999], [-38.2397, -12.8443], [-38.7879, -12.7826], [-38.8352, -13.147], [-39.0894, -13.5882], [-38.9422, -14.0308], [-39.0596, -14.6549], [-38.8805, -15.8645], [-39.1251, -16.7634], [-39.2152, -17.3156], [-39.1539, -17.704], [-39.4869, -17.9903], [-39.7399, -18.6397], [-39.6999, -19.278], [-40.0013, -19.7419], [-40.3959, -20.5693], [-40.7892, -20.9062], [-41.0471, -21.5059], [-40.9879, -21.9201], [-41.1228, -22.0843], [-41.7054, -22.3098], [-41.9806, -22.5806], [-42.0423, -22.9472], [-42.9583, -22.9672], [-43.5327, -23.0462], [-43.8661, -22.9104], [-44.6373, -23.0556], [-44.9516, -23.3814], [-45.4232, -23.6854], [-45.9721, -23.796], [-46.8672, -24.2363], [-47.8766, -24.9976], [-48.5451, -25.8161], [-48.6776, -26.703], [-48.5542, -27.1962], [-48.6208, -28.0755], [-48.7997, -28.5754], [-49.2713, -28.871], [-49.7461, -29.3633], [-50.0333, -29.8009], [-50.2994, -30.4259], [-51.1572, -30.3642], [-51.4637, -31.0527], [-51.9724, -31.3839], [-52.1935, -31.8855], [-52.1273, -32.1678], [-52.3417, -32.4399], [-52.6523, -33.1377], [-53.4195, -33.7791], [-53.7853, -34.3806], [-54.1686, -34.6709], [-54.9023, -34.9328], [-55.6732, -34.7756], [-56.1179, -34.9079], [-56.8555, -34.6766], [-57.1706, -34.4525], [-57.8291, -34.4773], [-58.4002, -33.9123], [-58.5258, -34.2962], [-58.2835, -34.6838], [-57.3036, -35.1885], [-57.1589, -35.5058], [-57.354, -35.7202], [-57.265, -36.1442], [-56.6981, -36.4265], [-56.6721, -36.8513], [-57.3957, -37.7448], [-57.547, -38.0857], [-58.1792, -38.436], [-59.8282, -38.8381], [-61.1122, -38.9931], [-62.067, -38.9189], [-62.3382, -39.1506], [-62.0537, -39.3739], [-62.2869, -39.8955], [-62.395, -40.8907], [-62.959, -41.1095], [-63.7731, -41.1499], [-64.8533, -40.8139], [-65.1334, -40.8805], [-65.0182, -41.5667], [-65.059, -41.9698], [-64.4205, -42.4337], [-63.596, -42.4066], [-63.6925, -42.8052], [-64.1306, -42.8616], [-64.3246, -42.5722], [-64.6504, -42.5313], [-65.0269, -42.759], [-64.4323, -43.0591], [-64.9858, -43.2935], [-65.2836, -43.63], [-65.3613, -44.4773], [-65.6476, -44.6616], [-65.6388, -45.0078], [-66.1901, -44.9647], [-66.9416, -45.2573], [-67.5568, -45.9701], [-67.5633, -46.3452], [-66.7769, -47.0057], [-65.9985, -47.0936], [-65.7382, -47.3449], [-65.8101, -47.941], [-66.3934, -48.3423], [-67.033, -48.6277], [-67.6849, -49.2465], [-67.7834, -49.8591], [-68.9398, -50.3824], [-69.2352, -50.9506], [-69.0325, -51.6364], [-68.3938, -52.3072], [-69.2409, -52.2055], [-69.5605, -52.4217], [-70.795, -52.7688], [-70.9959, -53.7791], [-71.2977, -53.8834], [-72.1744, -53.6322], [-71.8528, -53.2855], [-71.4005, -53.107], [-71.3878, -52.7644], [-72.4583, -53.2544], [-73.0526, -53.2433], [-74.0146, -52.6392], [-73.8343, -52.2339], [-73.5183, -52.0408], [-73.9733, -51.7847], [-73.8958, -51.3315], [-74.8147, -51.0629], [-75.0948, -50.6812], [-74.3337, -49.9745], [-74.341, -48.5958], [-74.5772, -48.2744], [-74.6549, -47.7022], [-74.1584, -47.1824], [-74.1519, -46.9742], [-75.6567, -46.6102], [-74.9245, -46.1597], [-75.0666, -45.8752], [-74.1579, -45.7673], [-74.0379, -45.4175], [-73.5498, -45.4836], [-73.3625, -44.9781], [-72.739, -44.7344], [-72.6638, -44.4365], [-73.2651, -44.1688], [-72.9965, -43.6317], [-73.101, -43.4551], [-72.878, -43.048], [-72.7854, -42.3014], [-72.4996, -41.9809], [-72.6698, -41.6595], [-73.0149, -41.5441], [-73.5214, -41.7971], [-73.8108, -41.5175], [-73.966, -41.1184], [-73.6694, -40.0824], [-73.4104, -39.789], [-73.2264, -39.2243], [-73.5327, -38.3667], [-73.4648, -38.0405], [-73.6619, -37.6987], [-73.6017, -37.1886], [-73.216, -37.1669], [-73.1181, -36.6884], [-72.8746, -36.3905], [-72.6238, -35.5857], [-72.2237, -35.0961], [-72.0028, -34.1653], [-71.6646, -33.6526], [-71.7429, -33.0951], [-71.4522, -32.6596], [-71.5259, -31.806], [-71.6619, -31.1695], [-71.6695, -30.3305], [-71.4007, -30.1432], [-71.3157, -29.6496], [-71.5192, -28.9265], [-71.1863, -28.3778], [-71.0527, -27.7275], [-70.6465, -26.3293], [-70.7138, -25.7842], [-70.4454, -25.1725], [-70.5742, -24.6442], [-70.4878, -23.7818], [-70.5633, -23.0569], [-70.3316, -22.8487], [-70.0874, -21.4931], [-70.1971, -20.7256], [-70.1485, -19.8049], [-70.2759, -19.2683], [-70.3616, -18.3978], [-71.337, -17.6827], [-71.5325, -17.2943], [-72.1114, -17.0026], [-72.4676, -16.7079], [-72.7939, -16.6147], [-73.825, -16.153], [-74.1473, -15.9124], [-75.1043, -15.4117], [-75.5336, -14.899], [-75.934, -14.6336], [-76.2891, -14.1333], [-76.1839, -13.5154], [-76.8322, -12.3489], [-77.1527, -12.0603], [-77.2204, -11.6635], [-77.6332, -11.288], [-77.7362, -10.8365], [-78.1856, -10.089], [-78.7624, -8.6171], [-79.0123, -8.21], [-79.3774, -7.8354], [-79.7621, -7.0666], [-80.1103, -6.6497], [-80.8117, -6.2822], [-81.1805, -5.9426], [-80.8827, -5.7589], [-81.1084, -5.0278], [-81.3366, -4.6695], [-81.2833, -4.3224], [-80.7986, -3.7312], [-80.0266, -3.2282], [-79.7299, -2.5793], [-80.1272, -2.5282], [-80.4501, -2.6259], [-80.9628, -2.1891], [-80.7704, -2.0768], [-80.8014, -1.383], [-80.9024, -1.0789], [-80.554, -0.8481], [-80.4823, -0.3682], [-80.1334, -0.006], [-80.0251, 0.4104], [-80.0883, 0.7846], [-79.7412, 0.9799], [-78.8996, 1.2063], [-78.7931, 1.8486], [-78.6171, 2.3067], [-78.1201, 2.4882], [-77.67, 2.8788], [-77.2428, 3.5855], [-77.1666, 3.8621], [-77.4272, 4.0605], [-77.2863, 4.7219], [-77.4017, 5.4161], [-77.2492, 5.7801], [-77.4694, 6.177], [-77.36, 6.5045], [-77.9011, 7.2294]]], [[[-91.3057, 0.0912], [-90.7997, -0.7522], [-90.9055, -0.9404], [-91.3716, -1.0172], [-91.4582, -0.7997], [-91.1448, -0.623], [-91.3692, -0.287], [-91.3057, 0.0912]]], [[[-50.2481, -0.1165], [-49.6287, -0.2293], [-49.1169, -0.1636], [-48.3798, -0.3527], [-48.5396, -0.801], [-48.9289, -1.4824], [-49.5878, -1.7123], [-50.5076, -1.7878], [-50.7597, -1.2405], [-50.7713, -0.6452], [-50.6454, -0.2728], [-50.2481, -0.1165]]], [[[-51.6377, -1.3421], [-51.6784, -0.8552], [-51.5461, -0.6497], [-51.1608, -0.6665], [-51.2764, -1.0216], [-51.6377, -1.3421]]], [[[-73.7735, -43.3459], [-74.355, -43.2637], [-74.2094, -42.8789], [-74.037, -41.7953], [-73.5278, -41.8961], [-73.4708, -42.4665], [-73.7893, -42.5859], [-73.4364, -42.9366], [-73.7735, -43.3459]]], [[[-73.7354, -44.3948], [-73.9833, -44.4947], [-73.7271, -45.1192], [-74.0991, -45.3252], [-74.6178, -44.6478], [-74.5017, -44.4733], [-73.7354, -44.3948]]], [[[-72.8971, -44.7122], [-73.445, -44.6411], [-73.2078, -44.3349], [-72.8425, -44.4578], [-72.8971, -44.7122]]], [[[-74.6183, -48.4253], [-74.923, -48.6264], [-75.2128, -48.1417], [-74.7292, -48.1261], [-74.6183, -48.4253]]], [[[-74.5306, -48.8124], [-74.4589, -49.6913], [-74.5699, -49.9909], [-75.3001, -49.8475], [-75.1842, -49.0836], [-74.7934, -48.705], [-74.5306, -48.8124]]], [[[-58.8501, -51.2698], [-58.4737, -51.509], [-57.9767, -51.3843], [-57.8382, -51.7092], [-58.6834, -51.9361], [-59.068, -52.1731], [-59.5708, -51.9254], [-59.0596, -51.6857], [-58.8501, -51.2698]]], [[[-60.4454, -51.3994], [-60.1416, -51.4811], [-59.268, -51.4274], [-59.9214, -51.9694], [-60.4454, -51.3994]]], [[[-69.4141, -52.4865], [-68.7897, -52.5766], [-68.2781, -52.9841], [-68.0085, -53.5638], [-67.2943, -54.0499], [-65.346, -54.8777], [-66.5112, -55.0322], [-66.9305, -54.9248], [-68.3316, -54.8165], [-69.0816, -54.9097], [-69.7235, -54.7122], [-70.4972, -54.8094], [-71.4409, -54.6198], [-70.8982, -54.338], [-70.8678, -53.8843], [-70.0903, -53.4182], [-70.4603, -53.206], [-69.4141, -52.4865]]], [[[-72.9472, -53.4426], [-72.2055, -53.8075], [-73.3048, -53.9438], [-73.6865, -53.4266], [-72.9472, -53.4426]]], [[[-69.8846, -54.8822], [-68.9007, -55.0176], [-68.2826, -55.255], [-68.2932, -55.5214], [-69.4118, -55.4441], [-69.9798, -55.1476], [-69.8846, -54.8822]]], [[[-67.0854, -55.1152], [-67.7679, -55.2595], [-68.107, -54.9292], [-67.2452, -54.9776], [-67.0854, -55.1152]]]] }, "properties": { "name": "South America", "id": "southAmerica" }, "id": "southAmerica" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[54.719, 81.1159], [57.694, 80.7923], [55.7124, 80.6372], [54.0665, 80.8136], [54.719, 81.1159]]], [[[62.168, 80.8347], [61.0511, 80.4186], [59.3044, 80.5216], [59.5921, 80.8165], [62.168, 80.8347]]], [[[20.898, 80.2499], [22.4507, 80.4021], [26.8608, 80.16], [27.1986, 79.9065], [25.641, 79.4029], [23.9475, 79.1943], [20.8612, 79.3978], [18.7251, 79.7607], [18.3438, 80.0595], [20.898, 80.2499]]], [[[16.7867, 79.9068], [18.5813, 79.5716], [19.0896, 79.1573], [20.4581, 79.1293], [21.3889, 78.7404], [19.7687, 78.6228], [18.4393, 78.0251], [18.228, 77.5226], [17.6234, 77.3994], [16.7006, 76.5793], [14.3657, 77.2345], [14.921, 77.6889], [13.6808, 78.028], [11.7738, 78.7165], [10.866, 79.7965], [12.7535, 79.7758], [13.3838, 79.4808], [15.8163, 79.6819], [16.7867, 79.9068]]], [[[21.6082, 78.5957], [23.1166, 77.9916], [24.2383, 77.8986], [23.8414, 77.4978], [22.057, 77.5011], [21.6082, 77.9161], [20.2282, 78.4779], [21.6082, 78.5957]]], [[[67.7654, 76.2376], [66.2824, 75.9836], [61.3561, 75.3149], [60.2224, 74.7965], [58.5347, 74.499], [58.4415, 74.1288], [56.9638, 73.3665], [55.0067, 73.4539], [54.3, 73.3509], [53.7629, 73.7662], [54.6427, 73.9595], [55.5824, 74.6278], [56.4986, 74.9571], [57.0876, 75.3837], [58.8814, 75.8547], [61.0538, 76.1199], [62.9714, 76.2367], [65.8629, 76.6133], [67.5351, 77.0077], [68.4859, 76.9338], [68.9, 76.5729], [67.7654, 76.2376]]], [[[55.32, 73.3083], [56.4293, 73.2011], [56.0835, 72.7894], [55.356, 72.4651], [55.2979, 71.9354], [56.0431, 71.3456], [56.895, 70.927], [57.1458, 70.5892], [54.6014, 70.68], [53.7225, 70.8145], [53.3638, 71.5416], [51.8124, 71.4912], [51.5825, 72.0712], [52.6221, 72.3009], [53.7531, 73.2932], [55.32, 73.3083]]], [[[67.8751, 68.4763], [68.2688, 67.2858], [67.5444, 66.7227], [66.2021, 66.1716], [64.8011, 65.7162], [63.0824, 64.9054], [61.2167, 64.2824], [60.5424, 61.0083], [60.0644, 59.4402], [59.4318, 58.5187], [58.7984, 57.8522], [58.0265, 57.3293], [57.8276, 56.859], [58.58, 56.5143], [58.6901, 56.0873], [58.0984, 55.5504], [56.084, 55.3471], [56.9735, 54.4686], [57.6207, 53.983], [58.9546, 54.5315], [59.6294, 54.3086], [59.8828, 53.9417], [59.4083, 53.6477], [59.0052, 53.1794], [59.0372, 52.607], [59.707, 52.4616], [60.1789, 52.009], [60.0657, 51.9766], [60.4648, 51.6513], [61.3632, 51.442], [61.5851, 51.23], [61.3894, 50.8609], [60.6379, 50.6638], [59.9552, 50.7992], [59.8122, 50.5819], [58.8836, 50.6945], [58.3594, 51.0638], [57.8387, 51.0917], [57.4423, 50.8889], [57.0117, 51.0651], [56.4915, 51.0196], [55.7977, 50.6021], [55.5424, 50.6017], [54.727, 50.9981], [54.4216, 50.7803], [54.0416, 51.1153], [53.3381, 51.4824], [52.571, 51.4817], [52.3309, 51.6812], [51.6091, 51.4839], [50.7941, 51.7292], [50.2468, 51.2895], [49.498, 51.0835], [48.8086, 50.6012], [48.8432, 50.0131], [48.4344, 49.8284], [47.706, 50.378], [47.3264, 50.2734], [46.9917, 49.8526], [46.8022, 49.367], [47.0144, 49.0987], [46.7028, 48.8055], [46.661, 48.4124], [47.0042, 48.2846], [47.0934, 47.9476], [48.1099, 47.7452], [48.9595, 46.7744], [48.6102, 46.5663], [49.2321, 46.3372], [48.1592, 45.7371], [47.5244, 45.6017], [47.1147, 44.9061], [46.7552, 44.6566], [46.7529, 44.4205], [47.2301, 44.1923], [47.5089, 43.5096], [47.4632, 43.0351], [48.228, 42.181], [49.1064, 41.3017], [49.2263, 41.026], [49.7758, 40.5839], [50.3067, 40.4121], [49.5512, 40.1942], [49.3244, 39.6082], [49.363, 39.3495], [49.0137, 39.1346], [48.8508, 38.8155], [48.8685, 38.4355], [48.5929, 38.4111], [48.0234, 38.819], [48.2422, 38.9788], [47.9958, 39.6842], [47.773, 39.6486], [46.8528, 39.1484], [46.555, 38.9042], [46.1701, 38.8692], [45.4798, 39.0063], [44.5872, 39.7685], [44.3892, 39.4223], [44.023, 39.3774], [44.4309, 38.3569], [44.2112, 37.9081], [44.5614, 37.7448], [44.794, 37.2902], [44.2818, 36.9782], [44.1562, 37.2831], [43.5161, 37.2445], [42.7748, 37.3719], [41.5154, 37.0892], [40.7058, 37.0976], [40.0164, 36.8259], [39.3568, 36.6817], [38.7669, 36.6932], [38.1916, 36.9014], [37.4365, 36.6435], [36.6584, 36.8024], [36.5376, 36.4575], [36.1275, 35.8316], [35.8927, 35.9164], [35.811, 36.3097], [36.1879, 36.659], [36.0489, 36.9107], [35.5376, 36.5969], [34.6014, 36.7846], [33.6945, 36.1818], [32.7947, 36.0358], [32.3775, 36.1836], [32.0219, 36.5352], [31.3525, 36.8011], [30.6441, 36.8654], [30.4838, 36.3106], [29.6893, 36.1565], [29.1433, 36.3971], [29.0381, 36.6937], [28.4837, 36.8037], [28.1339, 37.0297], [27.3491, 37.0195], [27.0779, 37.6875], [27.2323, 37.9787], [26.6828, 38.1984], [26.8612, 38.3729], [26.7636, 38.7098], [27.0135, 38.8869], [26.6819, 39.2922], [26.8271, 39.563], [26.1133, 39.4675], [26.1812, 39.99], [26.7378, 40.4002], [27.2847, 40.4556], [27.4756, 40.3198], [28.2892, 40.4033], [29.3648, 40.8094], [29.0456, 41.0074], [29.3222, 41.2276], [31.2549, 41.1077], [31.4582, 41.3199], [32.3065, 41.7296], [33.3816, 42.0177], [34.7505, 41.9569], [35.0067, 42.0634], [35.2979, 41.7287], [36.0516, 41.6826], [36.5097, 41.2626], [38.3811, 40.9244], [39.4265, 41.1064], [40.2654, 40.9612], [41.4142, 41.4238], [41.7631, 41.9702], [41.4888, 42.6591], [40.8367, 43.0635], [40.5242, 43.1212], [39.8735, 43.4728], [38.7172, 44.2882], [38.1814, 44.4196], [37.8516, 44.6988], [37.4112, 44.7352], [36.9411, 45.2896], [37.6474, 45.3771], [37.9332, 46.0016], [38.1836, 46.0948], [37.9679, 46.6182], [39.2933, 47.1056], [38.485, 47.1757], [37.5435, 47.0745], [37.3398, 46.9169], [36.2793, 46.6586], [35.827, 46.6244], [34.8495, 46.1898], [35.0231, 45.7011], [35.558, 45.3109], [36.1705, 45.453], [36.5749, 45.3935], [36.3934, 45.0655], [35.87, 45.0055], [35.5695, 45.1192], [35.0879, 44.8027], [34.7168, 44.8071], [33.9098, 44.3876], [33.4508, 44.5536], [33.5551, 45.0979], [32.508, 45.4037], [33.6648, 45.947], [33.2022, 46.1756], [32.4769, 46.0837], [32.0357, 46.2609], [31.9744, 46.7087], [30.7963, 46.552], [30.2193, 45.8667], [29.6018, 45.6825], [29.727, 45.3433], [29.5574, 44.8435], [29.0483, 44.7574], [28.6452, 44.2957], [28.5618, 43.5012], [27.9288, 43.186], [27.8889, 42.7497], [27.4849, 42.4682], [27.9825, 42.0474], [28.3465, 41.4664], [29.0572, 41.2298], [28.7802, 40.9741], [28.1721, 41.0806], [27.4996, 40.9732], [27.2581, 40.6873], [26.1053, 40.6114], [25.8558, 40.844], [25.1043, 40.9945], [24.7931, 40.8574], [24.3839, 40.9128], [23.8787, 40.5444], [23.6643, 40.2239], [23.3123, 40.2164], [22.6296, 40.4956], [22.5923, 40.037], [22.919, 39.6291], [22.9656, 39.0307], [22.7739, 38.8004], [23.2528, 38.6614], [23.9671, 38.2748], [24.0554, 37.7097], [23.5804, 38.0107], [23.1938, 37.9592], [23.1614, 37.3337], [22.765, 37.3932], [23.0735, 36.7749], [22.6083, 36.7798], [22.0805, 37.0288], [21.5829, 37.0807], [21.5714, 37.541], [21.1448, 37.9192], [21.4036, 38.1967], [21.8248, 38.3281], [22.7996, 37.9814], [22.4219, 38.4386], [21.4724, 38.3214], [21.1133, 38.3849], [20.7768, 38.8075], [20.7795, 39.0085], [20.301, 39.3273], [19.8517, 40.0437], [19.3981, 40.2847], [19.4407, 41.4247], [19.5774, 41.7873], [19.1863, 41.9484], [18.8943, 42.2494], [17.824, 42.7976], [16.903, 43.3924], [15.9415, 43.6565], [15.123, 44.2567], [14.8548, 45.081], [14.3861, 45.342], [13.9657, 44.8355], [13.6293, 45.1081], [13.517, 45.4818], [13.0305, 45.6376], [12.2745, 45.4459], [12.5235, 44.9678], [12.2483, 44.7223], [12.3961, 44.2238], [12.6913, 43.9948], [13.564, 43.5713], [14.0106, 42.6897], [14.8659, 42.0523], [15.1687, 41.9338], [15.9641, 41.9396], [16.0125, 41.4353], [17.1032, 41.062], [17.955, 40.6554], [18.4859, 40.105], [18.078, 39.9367], [17.8649, 40.2803], [16.9283, 40.4579], [16.5301, 39.8595], [16.5976, 39.6389], [17.1147, 39.3805], [17.1746, 38.9979], [16.559, 38.7147], [16.5456, 38.4093], [16.0569, 37.9419], [15.7244, 37.9392], [15.9721, 38.7125], [16.1967, 38.7591], [16.0236, 39.3535], [15.6929, 39.99], [14.9507, 40.239], [14.7656, 40.6683], [14.1025, 40.8272], [13.7331, 41.2356], [13.0886, 41.244], [12.631, 41.4695], [11.6375, 42.2876], [11.1679, 42.5353], [10.7085, 42.9361], [10.0475, 44.0201], [9.2893, 44.3193], [8.766, 44.4223], [8.0815, 43.9189], [7.1813, 43.6592], [6.4941, 43.1691], [6.1159, 43.0724], [5.4066, 43.2286], [5.0599, 43.4444], [4.7119, 43.3733], [4.0527, 43.5931], [3.2591, 43.1931], [3.0518, 42.9152], [3.248, 41.9445], [2.0827, 41.2875], [1.0329, 41.062], [0.7147, 40.8227], [0.3638, 40.3189], [-0.3269, 39.5199], [-0.2049, 39.0627], [0.2015, 38.7591], [-0.3813, 38.4355], [-0.6467, 38.1518], [-0.8221, 37.581], [-1.3275, 37.561], [-1.7975, 37.233], [-2.1116, 36.7767], [-4.3668, 36.7181], [-4.6742, 36.5063], [-5.1716, 36.4238], [-5.6254, 36.026], [-6.0407, 36.1885], [-6.4924, 36.9547], [-6.8845, 37.1944], [-7.4936, 37.1682], [-7.8342, 37.0057], [-8.5977, 37.1211], [-8.8141, 37.431], [-8.9147, 38.5123], [-9.4742, 38.7307], [-9.3748, 39.3384], [-9.1482, 39.5426], [-8.8867, 40.1795], [-8.6557, 41.0296], [-8.8872, 42.1051], [-8.691, 42.2743], [-9.2352, 42.9769], [-8.8736, 43.3343], [-8.5369, 43.3369], [-8.2568, 43.5797], [-7.6982, 43.7644], [-7.2621, 43.5948], [-5.6658, 43.5824], [-4.523, 43.416], [-3.6046, 43.5194], [-3.0455, 43.3716], [-2.3371, 43.3281], [-1.4848, 43.5638], [-1.2456, 44.5599], [-1.0662, 45.8059], [-1.1463, 46.3115], [-1.7867, 46.5148], [-2.0188, 47.0377], [-3.1587, 47.6946], [-4.312, 47.8229], [-4.6291, 48.0857], [-4.3932, 48.3676], [-4.7208, 48.5398], [-3.2315, 48.8408], [-2.6926, 48.5367], [-2.4463, 48.6483], [-1.4375, 48.6414], [-1.5831, 49.2023], [-1.8564, 49.6837], [-1.2587, 49.6802], [-1.1386, 49.3879], [-0.1636, 49.2966], [0.2777, 49.4633], [0.1867, 49.703], [1.2456, 49.9982], [1.5514, 50.2938], [1.5794, 50.7393], [1.9123, 50.9905], [2.4458, 51.0664], [3.5871, 51.4539], [4.4829, 52.3091], [4.7687, 52.9412], [5.0257, 52.9499], [5.1203, 52.3881], [5.5611, 52.5948], [5.3755, 53.0957], [6.0622, 53.4071], [6.8164, 53.4413], [7.2852, 53.6814], [8.0091, 53.6909], [8.5387, 53.5569], [8.8983, 53.8357], [8.9573, 54.5383], [8.6821, 54.7918], [8.6159, 55.4181], [8.1321, 55.5999], [8.1641, 56.6069], [8.6186, 57.1114], [9.5543, 57.2325], [9.9623, 57.581], [10.5371, 57.4487], [10.2828, 56.6204], [10.8461, 56.5216], [10.3187, 56.2129], [10.1829, 55.8651], [9.5912, 55.4929], [9.6449, 55.0228], [10.2126, 54.4089], [11.0085, 54.1812], [11.3996, 53.9446], [12.1112, 54.1683], [12.5755, 54.4673], [13.0291, 54.4109], [13.8654, 53.8534], [14.4878, 53.6719], [14.7159, 54.0183], [16.1865, 54.2904], [16.5598, 54.5539], [17.2621, 54.7294], [18.3234, 54.8382], [18.6697, 54.4309], [19.407, 54.3861], [19.7585, 54.5448], [19.9747, 54.9214], [21.1887, 54.9352], [21.238, 55.455], [21.0618, 55.8134], [21.0707, 56.8237], [21.7285, 57.571], [22.5546, 57.7241], [23.6479, 56.9711], [24.4034, 57.3251], [24.3018, 57.7841], [24.529, 58.3543], [23.7678, 58.3609], [23.5094, 58.6585], [23.4943, 59.1956], [24.3803, 59.4726], [25.5096, 59.6389], [27.8924, 59.4143], [28.4535, 59.8142], [29.1473, 59.9998], [28.643, 60.3753], [28.6506, 60.611], [27.4623, 60.4647], [27.2421, 60.5386], [25.6565, 60.3331], [23.7216, 59.9656], [22.7934, 60.0768], [22.5759, 60.3591], [21.436, 60.5964], [21.3605, 60.9674], [21.606, 61.5916], [21.2562, 61.9897], [21.1035, 62.6229], [22.2434, 63.4379], [23.2488, 63.8962], [24.2782, 64.5153], [24.5579, 64.8009], [25.3729, 65.0095], [25.348, 65.4792], [24.5814, 65.757], [23.6914, 65.8285], [21.5656, 65.4081], [21.574, 65.1258], [21.1381, 64.8087], [21.4653, 64.3796], [20.7626, 63.8678], [19.0345, 63.2377], [18.4632, 62.8959], [17.8955, 62.8305], [17.4174, 61.7407], [17.1307, 61.5758], [17.251, 60.7011], [17.9559, 60.5899], [18.5574, 60.2537], [18.9706, 59.7572], [17.876, 59.2709], [18.2852, 59.1093], [17.4569, 58.8585], [16.6522, 58.4344], [16.5279, 57.0681], [15.9965, 56.2227], [14.7821, 56.1619], [14.2152, 55.8325], [14.3417, 55.5278], [13.3212, 55.3464], [12.5923, 56.1377], [12.8835, 56.6177], [12.4214, 56.9063], [11.7347, 57.7177], [11.2718, 58.4757], [11.1958, 59.0782], [10.645, 59.3892], [10.1793, 59.0094], [9.6183, 58.946], [8.1663, 58.1452], [7.0051, 58.0242], [5.7067, 58.5236], [5.8452, 59.3535], [5.1314, 59.2265], [5.305, 59.6426], [5.1194, 59.8337], [5.2441, 60.5697], [5.0493, 60.7075], [4.9276, 61.711], [5.5336, 62.3109], [6.353, 62.6114], [7.2838, 62.6023], [7.0082, 62.9576], [8.1006, 63.091], [8.398, 63.5349], [9.6968, 63.6246], [9.7079, 63.8652], [11.3499, 64.9059], [12.1595, 65.1789], [12.2727, 65.5682], [12.9763, 66.0192], [13.1046, 66.5394], [14.755, 67.4991], [14.7989, 67.8094], [16.0645, 68.2], [16.6517, 68.6257], [17.3908, 68.7995], [18.1015, 69.1564], [18.2932, 69.4751], [20.0688, 69.8835], [21.163, 69.8895], [21.4005, 70.1744], [22.6847, 70.3748], [23.0464, 70.1019], [24.4198, 70.702], [24.6582, 71.001], [25.7684, 70.8531], [27.5972, 71.0913], [29.1025, 70.8607], [30.9442, 70.2745], [29.6014, 69.9767], [31.4529, 69.6895], [31.9846, 69.9536], [32.9417, 69.7518], [32.3775, 69.4791], [33.6843, 69.3102], [35.858, 69.1917], [37.7304, 68.6921], [40.3809, 67.8318], [40.9664, 67.7135], [41.1887, 66.8262], [40.5216, 66.4466], [39.2889, 66.1321], [38.3976, 66.0644], [35.5136, 66.3958], [34.8247, 66.6111], [32.4636, 66.9163], [33.5667, 66.321], [34.3999, 66.1286], [34.7865, 65.8645], [34.4065, 65.3957], [34.8034, 64.986], [34.8695, 64.5601], [35.6472, 64.3783], [36.365, 64.0028], [37.4423, 63.8135], [38.0708, 64.0259], [37.9537, 64.3202], [37.1835, 64.4085], [36.5283, 64.8473], [36.883, 65.1724], [38.0096, 64.8788], [39.7581, 64.577], [40.281, 64.998], [39.8167, 65.5979], [40.6916, 65.9634], [41.4759, 66.1235], [42.2106, 66.5196], [44.0971, 66.2351], [44.4886, 66.6719], [44.292, 67.0996], [43.7824, 67.2545], [44.2254, 67.9956], [44.0483, 68.5489], [45.8922, 68.4799], [46.6903, 67.8489], [45.5287, 67.7577], [44.9396, 67.4776], [45.9859, 66.853], [46.6912, 66.8255], [47.7091, 67.045], [47.8746, 67.5841], [48.8778, 67.7315], [50.839, 68.3498], [52.5502, 68.5924], [53.8019, 68.9959], [53.968, 68.2273], [54.5614, 68.273], [56.0436, 68.649], [57.1267, 68.554], [58.9191, 69.0039], [59.8975, 68.4219], [60.9335, 68.9868], [60.1705, 69.5909], [61.0156, 69.8515], [63.3616, 69.6753], [66.416, 68.9477], [67.0024, 68.8736], [67.8751, 68.4763]]], [[[60.4506, 69.935], [59.5783, 69.7385], [58.9529, 69.8928], [58.473, 70.2668], [59.0052, 70.4652], [60.4506, 69.935]]], [[[17.5031, 69.5963], [17.951, 69.1981], [16.9718, 69.1382], [17.5031, 69.5963]]], [[[50.265, 69.1857], [49.6262, 68.8596], [48.667, 68.7331], [48.279, 69.0403], [48.6315, 69.436], [49.225, 69.5113], [50.265, 69.1857]]], [[[-15.5431, 66.2285], [-14.6982, 66.0203], [-14.7576, 65.7557], [-13.6159, 65.4872], [-13.853, 64.8622], [-15.0215, 64.296], [-16.0605, 64.1113], [-16.6404, 63.8656], [-17.8156, 63.7129], [-18.6537, 63.4066], [-20.1982, 63.5558], [-21.8328, 64.2054], [-21.9502, 64.515], [-22.684, 65.0264], [-22.0057, 65.4934], [-22.9024, 65.5804], [-24.2241, 65.4872], [-23.7371, 66.0695], [-22.4261, 66.4302], [-21.3037, 65.8764], [-21.23, 65.4206], [-20.3567, 65.7191], [-20.3567, 66.0331], [-18.7775, 66.1687], [-16.7485, 66.1317], [-16.5407, 66.4466], [-15.9854, 66.5145], [-15.5431, 66.2285]]], [[[-3.1097, 58.5154], [-3.2124, 58.3212], [-3.9901, 57.959], [-3.4029, 57.7082], [-2.0741, 57.7024], [-1.778, 57.4938], [-2.6527, 56.3183], [-3.1783, 56.0802], [-2.1471, 55.9031], [-1.6555, 55.5704], [-1.2917, 54.7738], [-0.6716, 54.5039], [-0.2055, 54.0219], [0.5589, 52.9672], [1.0556, 52.959], [1.6566, 52.7537], [1.7467, 52.4689], [1.559, 52.0869], [0.9553, 51.8077], [0.6867, 51.3865], [1.4151, 51.3632], [0.9601, 50.9259], [0.2051, 50.763], [-1.5168, 50.7477], [-2.5477, 50.6163], [-3.4046, 50.6323], [-3.7933, 50.2293], [-4.1726, 50.3908], [-5.3422, 50.2461], [-4.5832, 50.7763], [-4.1881, 51.1885], [-3.1359, 51.2049], [-4.3863, 51.7411], [-4.9023, 51.6262], [-5.0883, 51.9959], [-4.3832, 52.197], [-3.9804, 52.5417], [-4.1111, 53.2189], [-3.0646, 53.4268], [-2.925, 53.7327], [-3.958, 54.7809], [-5.1354, 54.8575], [-4.7212, 55.421], [-5.2457, 55.9293], [-5.6097, 56.0553], [-5.392, 56.5148], [-5.9368, 56.6058], [-5.562, 57.2328], [-5.8181, 57.4361], [-5.3382, 58.2388], [-4.7155, 58.5101], [-3.1097, 58.5154]]], [[[22.6172, 58.6213], [23.2928, 58.4834], [22.1875, 58.1543], [22.0819, 58.4781], [22.6172, 58.6213]]], [[[19.0767, 57.836], [18.8139, 57.7062], [18.6998, 57.2427], [18.1365, 57.5566], [18.5374, 57.8305], [19.0767, 57.836]]], [[[12.5688, 55.785], [11.6539, 55.1869], [11.2864, 55.2044], [10.9788, 55.7215], [12.219, 56.1186], [12.5688, 55.785]]], [[[10.645, 55.6099], [10.7852, 55.1334], [9.9889, 55.1631], [9.8606, 55.5156], [10.645, 55.6099]]], [[[-7.1786, 55.0568], [-6.1293, 55.2175], [-5.4703, 54.5002], [-5.6068, 54.2727], [-6.3452, 53.9872], [-6.0274, 52.927], [-6.5612, 52.1888], [-7.5275, 52.0989], [-7.6645, 51.9797], [-8.8135, 51.5849], [-9.2964, 51.4981], [-9.5799, 51.6892], [-10.3786, 51.8688], [-9.9558, 52.1367], [-9.2993, 53.0977], [-9.7954, 53.3951], [-9.996, 54.276], [-8.623, 54.3468], [-8.764, 54.6813], [-8.2746, 55.1462], [-7.2468, 55.3531], [-7.1786, 55.0568]]], [[[9.4802, 42.8056], [9.5508, 42.1296], [9.1863, 41.3847], [8.8077, 41.5884], [8.7132, 42.5499], [9.4802, 42.8056]]], [[[9.632, 40.8822], [9.8051, 40.4996], [9.5623, 39.1661], [9.0563, 39.2394], [8.8814, 38.9127], [8.418, 39.2056], [8.4712, 40.2927], [8.1898, 40.6518], [9.2831, 41.2018], [9.632, 40.8822]]], [[[3.1454, 39.7902], [3.4619, 39.6979], [3.0726, 39.3011], [2.3713, 39.6131], [2.785, 39.8546], [3.1454, 39.7902]]], [[[23.4153, 38.9588], [24.0989, 38.6712], [23.7589, 38.4013], [23.252, 38.8013], [23.4153, 38.9588]]], [[[15.5766, 38.2202], [15.0994, 37.4585], [15.2943, 37.0133], [15.1128, 36.6879], [14.502, 36.7989], [14.1428, 37.1038], [13.9054, 37.1007], [12.4356, 37.8198], [13.3518, 38.1807], [13.6816, 38.0009], [14.506, 38.0453], [14.846, 38.1718], [15.5766, 38.2202]]], [[[34.4633, 35.5937], [33.9418, 35.2918], [34.0501, 34.9882], [32.9417, 34.5758], [32.449, 34.7294], [32.3171, 34.9532], [32.9417, 35.3904], [33.4588, 35.3358], [34.4633, 35.5937]]], [[[23.8521, 35.5355], [24.3129, 35.3638], [24.7212, 35.425], [25.4759, 35.306], [25.7449, 35.1427], [24.7998, 34.9345], [24.4638, 35.1604], [23.5618, 35.2949], [23.8521, 35.5355]]], [[[-16.3346, 28.38], [-16.6579, 28.0071], [-16.9054, 28.3396], [-16.3346, 28.38]]]] }, "properties": { "name": "Europe", "id": "europe" }, "id": "europe" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[32.8862, -26.8495], [32.5346, -28.1998], [32.2856, -28.6215], [31.7782, -28.9371], [31.3352, -29.3779], [30.2885, -30.9701], [28.8561, -32.2943], [27.8604, -33.0538], [27.0774, -33.5212], [26.4293, -33.7596], [25.9894, -33.7112], [25.6383, -34.0113], [25.0031, -33.9735], [24.8273, -34.1688], [23.5858, -33.9851], [23.2679, -34.0814], [22.5537, -34.0099], [22.2457, -34.0694], [21.7889, -34.3726], [21.06, -34.3646], [20.53, -34.4631], [20.0204, -34.7858], [19.6351, -34.7534], [18.8086, -34.108], [18.3545, -33.9389], [18.4331, -33.7174], [17.8782, -32.9614], [18.2511, -32.6521], [18.3105, -32.1225], [18.2107, -31.7425], [17.6776, -31.019], [17.1893, -30.0997], [16.95, -29.4037], [16.4808, -28.6415], [15.7191, -27.9659], [15.3414, -27.3866], [14.9676, -26.3182], [14.8451, -25.7256], [14.8371, -25.0331], [14.5015, -24.2021], [14.474, -23.2811], [14.5259, -22.7027], [14.3217, -22.19], [13.9733, -21.7678], [13.4504, -20.9169], [13.1685, -20.1845], [12.4583, -18.9269], [12.0956, -18.5412], [11.776, -18.0018], [11.7219, -17.467], [11.8191, -16.7043], [11.7507, -15.8321], [11.9678, -15.6341], [12.2803, -14.6376], [12.5506, -13.4377], [12.9834, -12.7759], [13.4171, -12.5202], [13.7855, -11.8127], [13.8477, -11.0545], [13.2093, -9.7033], [12.9985, -9.0481], [13.3589, -8.6872], [13.3785, -8.3698], [12.8622, -7.2317], [12.8236, -6.9547], [12.5213, -6.5903], [12.1555, -5.6328], [12.2066, -5.4681], [11.7773, -4.5657], [11.0321, -3.8266], [10.3471, -3.0129], [9.6245, -2.3671], [9.2658, -1.8251], [9.3306, -1.5348], [9.0647, -1.2982], [8.8215, -0.7083], [9.2969, -0.3514], [9.47, 0.362], [9.3302, 0.611], [9.6258, 0.7792], [9.4944, 1.4353], [9.8069, 1.9276], [9.8216, 2.5393], [9.9485, 3.079], [9.8762, 3.3099], [9.4256, 3.9224], [8.9999, 4.0916], [8.762, 4.5798], [7.1547, 4.5146], [6.7569, 4.3437], [6.0764, 4.2904], [5.5877, 4.6473], [5.2326, 5.4836], [4.8611, 6.0265], [4.4314, 6.3487], [4.126, 6.4113], [2.7726, 6.3758], [1.8182, 6.2609], [1.1057, 6.0513], [0.9499, 5.8103], [0.2597, 5.7575], [-0.3487, 5.5009], [-0.7977, 5.2266], [-1.6384, 4.9807], [-2.0017, 4.7623], [-2.399, 4.9292], [-4.0372, 5.2301], [-5.5646, 5.0894], [-6.8453, 4.6713], [-7.4261, 4.3761], [-7.66, 4.3668], [-8.2591, 4.59], [-9.1322, 5.0548], [-10.2763, 6.0775], [-10.7857, 6.3101], [-11.9292, 7.1837], [-12.4856, 7.3861], [-12.5104, 7.6658], [-12.8809, 7.8566], [-13.1818, 8.5771], [-13.2695, 9.1706], [-13.7003, 9.851], [-14.4269, 10.2483], [-14.7758, 10.9315], [-15.0431, 10.9404], [-15.3933, 11.2173], [-15.5018, 11.7238], [-16.1384, 11.9174], [-16.7121, 12.355], [-16.8248, 13.3409], [-16.5878, 13.6894], [-17.168, 14.6406], [-17.1471, 14.9221], [-16.5354, 15.8383], [-16.5359, 16.2866], [-16.3468, 16.9262], [-16.0789, 17.5459], [-16.0849, 18.5211], [-16.2132, 19.0032], [-16.5146, 19.3619], [-16.2835, 19.7871], [-16.2105, 20.2279], [-16.4298, 20.6523], [-16.6224, 20.6341], [-16.8761, 21.086], [-16.9309, 21.9001], [-16.5143, 22.3333], [-16.2103, 23.0981], [-15.5864, 24.0729], [-15.0388, 24.5488], [-14.856, 24.8715], [-14.7949, 25.4041], [-14.4138, 26.2537], [-13.5758, 26.7349], [-13.176, 27.6556], [-12.949, 27.9144], [-11.9862, 28.1292], [-11.4302, 28.3822], [-11.0809, 28.7138], [-10.4865, 29.0649], [-9.6671, 30.1094], [-9.6529, 30.4476], [-9.8755, 30.718], [-9.8087, 31.4247], [-9.3475, 32.0865], [-9.2458, 32.5726], [-8.5962, 33.1873], [-6.901, 33.969], [-6.3532, 34.776], [-5.9248, 35.7859], [-5.3973, 35.9297], [-5.1054, 35.4676], [-4.3299, 35.1613], [-3.6932, 35.2799], [-2.84, 35.128], [-2.0177, 35.085], [-1.6737, 35.1831], [-0.9175, 35.6683], [-0.4261, 35.8614], [0.0479, 35.9004], [0.5149, 36.2617], [1.2571, 36.5196], [2.5932, 36.6009], [2.9727, 36.7846], [3.7789, 36.8961], [4.7581, 36.8965], [5.1958, 36.6768], [6.0649, 36.8641], [6.4866, 37.0856], [6.9274, 36.9196], [7.6079, 36.9999], [7.9106, 36.8566], [8.8237, 36.9977], [9.6879, 37.3404], [10.1962, 37.2059], [10.5713, 36.8796], [11.1266, 36.8739], [10.5256, 36.3234], [10.5908, 35.8871], [11.0045, 35.6336], [11.1199, 35.2403], [10.5349, 34.5448], [10.0648, 34.2119], [10.1589, 33.8501], [10.7227, 33.5145], [12.2798, 32.8584], [12.7535, 32.8012], [13.2835, 32.9148], [14.237, 32.6813], [14.5135, 32.5109], [15.1767, 32.391], [15.4963, 31.6568], [15.7058, 31.4264], [16.123, 31.2644], [17.3491, 31.0815], [18.1903, 30.7775], [18.9364, 30.2905], [19.2916, 30.2878], [19.7132, 30.4885], [20.1509, 31.0784], [19.9263, 31.8175], [20.1216, 32.2188], [20.621, 32.5801], [21.6357, 32.9374], [22.1875, 32.9183], [23.0908, 32.6187], [23.2866, 32.2139], [24.1295, 32.0093], [24.684, 32.0164], [25.0249, 31.8832], [25.2255, 31.5339], [25.8931, 31.6209], [27.2479, 31.378], [27.9674, 31.0975], [28.5147, 31.0505], [29.0723, 30.8303], [29.5916, 31.0114], [30.3951, 31.4575], [30.7005, 31.4038], [31.1941, 31.5876], [32.1018, 31.0922], [32.6034, 31.0687], [33.1299, 31.1681], [33.6666, 31.1304], [34.1983, 31.3226], [34.9041, 29.4773], [34.7363, 29.2704], [34.3999, 28.016], [34.2201, 27.7643], [33.7602, 28.0475], [33.2475, 28.5678], [33.0757, 29.0729], [32.7215, 29.5217], [32.5653, 29.3863], [32.6318, 28.9921], [32.8982, 28.5651], [33.5471, 27.8984], [33.5498, 27.6072], [33.8929, 27.0492], [33.9591, 26.6488], [34.565, 25.6913], [35.194, 24.4751], [35.6246, 24.0658], [35.5229, 23.4426], [35.6978, 22.9463], [36.2296, 22.6289], [36.8297, 22.0976], [36.9269, 21.5867], [37.1507, 21.1037], [37.2275, 20.5568], [37.2483, 19.5821], [37.4711, 18.8203], [37.9217, 18.5558], [38.2018, 18.2495], [38.5742, 18.0728], [38.9116, 17.427], [39.1424, 16.7292], [39.2991, 15.9213], [39.5064, 15.532], [39.8637, 15.4703], [40.2042, 15.014], [40.5464, 14.9336], [41.1763, 14.6202], [41.6584, 13.9832], [42.2452, 13.5877], [42.7961, 12.8642], [43.0828, 12.8247], [43.41, 12.1899], [43.2719, 11.9697], [42.7992, 11.7394], [43.4411, 11.3465], [43.853, 10.7841], [44.3865, 10.4303], [44.9427, 10.4365], [45.8168, 10.836], [46.5652, 10.7459], [47.405, 11.1738], [48.0194, 11.1392], [48.6745, 11.3226], [48.9031, 11.2546], [50.1101, 11.5294], [50.7923, 11.9835], [51.2549, 11.8308], [51.0844, 11.3354], [51.1408, 10.6567], [50.8984, 10.2532], [50.8248, 9.428], [50.4297, 8.8452], [50.103, 8.1998], [49.8522, 7.9627], [49.7612, 7.6596], [49.3484, 6.9906], [49.0492, 6.1738], [48.6492, 5.4942], [47.9754, 4.4968], [46.879, 3.2854], [46.0511, 2.4753], [44.9201, 1.8099], [44.3328, 1.3909], [43.4677, 0.6216], [41.9798, -0.9728], [41.3872, -1.8664], [40.9957, -1.9507], [40.8984, -2.2699], [40.6441, -2.5393], [40.2224, -2.6885], [40.1154, -3.2504], [39.4909, -4.4787], [39.2281, -4.6656], [38.8192, -5.8778], [38.8738, -6.3315], [39.4722, -6.8788], [39.5193, -7.1243], [39.2884, -7.518], [39.4411, -8.0116], [39.304, -8.444], [39.7838, -9.9146], [39.9836, -10.1596], [40.3889, -10.3536], [40.6117, -10.6616], [40.4031, -11.3319], [40.5806, -12.6356], [40.5451, -13.463], [40.6401, -14.3903], [40.835, -14.7916], [40.6179, -15.1157], [40.5589, -15.4734], [40.1088, -15.9795], [39.8446, -16.4358], [39.0843, -16.9729], [38.145, -17.2428], [37.2443, -17.7399], [36.5403, -18.5181], [35.6512, -19.164], [34.9481, -19.8129], [34.7559, -19.8218], [34.6982, -20.4042], [34.9822, -20.8064], [35.2677, -21.6511], [35.3156, -22.3968], [35.5753, -22.9632], [35.3702, -23.7982], [35.4381, -24.1711], [35.1558, -24.5413], [34.6072, -24.8214], [33.3474, -25.2608], [32.7921, -25.6443], [32.5906, -26.0039], [32.9337, -26.2525], [32.8862, -26.8495]]], [[[49.5384, -12.4323], [49.9374, -13.0724], [50.174, -14.0401], [50.2353, -14.7321], [50.483, -15.3855], [50.2091, -15.9604], [49.8926, -15.4579], [49.6498, -15.5671], [49.8389, -16.4864], [49.4491, -17.2406], [49.478, -17.8984], [48.6071, -20.4575], [48.3509, -21.3488], [47.9084, -22.4661], [47.5582, -23.8745], [47.1773, -24.7872], [46.7285, -25.1498], [46.1586, -25.2306], [45.5078, -25.5631], [45.1154, -25.5431], [44.8131, -25.3341], [44.3457, -25.2262], [44.0354, -24.9958], [43.6874, -24.3579], [43.7225, -23.5296], [43.398, -22.8864], [43.2666, -22.0493], [43.5019, -21.3563], [43.8556, -21.0767], [44.2396, -20.3798], [44.4047, -19.9221], [44.4487, -19.4285], [44.2387, -19.0752], [44.233, -18.7409], [44.0399, -18.2886], [43.9795, -17.3915], [44.4216, -16.7026], [44.4762, -16.2174], [44.9094, -16.1743], [45.1669, -15.983], [45.5984, -15.9928], [45.7, -15.8139], [46.3317, -15.7136], [46.4751, -15.5134], [47.8116, -14.5448], [47.9954, -13.9607], [48.7966, -13.2673], [48.9102, -12.9357], [48.8996, -12.4585], [49.2072, -12.0794], [49.5384, -12.4323]]], [[[55.8225, -21.2778], [55.5575, -21.3586], [55.233, -21.0585], [55.6618, -20.9062], [55.8225, -21.2778]]]] }, "properties": { "name": "Africa", "id": "africa" }, "id": "africa" }, + { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [[[[110.8887, 19.9918], [111.0138, 19.6553], [110.5722, 19.1719], [110.4514, 18.748], [109.5193, 18.2184], [108.7016, 18.5354], [108.6936, 19.3384], [109.1792, 19.6739], [109.2188, 19.8426], [109.6511, 19.9842], [110.5882, 20.0726], [110.8887, 19.9918]]], [[[121.1017, 18.6153], [121.8457, 18.2952], [122.2998, 18.4026], [122.1511, 17.7563], [122.2368, 17.4349], [122.5191, 17.1247], [122.1351, 16.1849], [121.5953, 15.9333], [121.6069, 15.67], [121.3925, 15.3242], [121.6957, 14.7374], [121.6486, 14.4813], [121.8004, 14.1137], [122.1999, 14.1479], [122.4907, 14.3224], [122.856, 14.2509], [123.2315, 13.7475], [123.4322, 13.9664], [123.726, 13.8843], [123.608, 13.5283], [124.1428, 13.036], [124.0598, 12.5672], [123.311, 13.044], [123.1632, 13.4417], [122.5954, 13.9078], [122.4068, 13.4927], [121.7778, 13.9375], [121.2034, 13.6401], [120.8407, 13.8847], [120.6166, 14.1879], [120.922, 14.4933], [120.8882, 14.7157], [120.0821, 14.851], [119.8309, 16.327], [120.1598, 16.0478], [120.3893, 16.2218], [120.3054, 16.5294], [120.4088, 16.9555], [120.3582, 17.6382], [120.5997, 18.5078], [121.1017, 18.6153]]], [[[120.7045, 13.4794], [121.2029, 13.4324], [121.5226, 13.131], [121.5407, 12.6382], [121.2367, 12.2188], [120.922, 12.5117], [120.7635, 12.9698], [120.5083, 13.2601], [120.7045, 13.4794]]], [[[53.7633, 12.6369], [54.1872, 12.664], [54.1295, 12.3608], [53.5982, 12.3422], [53.7633, 12.6369]]], [[[125.2397, 12.5277], [125.5358, 12.1912], [125.4568, 11.9524], [125.6281, 11.1321], [125.2335, 11.145], [125.0342, 11.3412], [124.8841, 11.7753], [124.3848, 12.2441], [124.2947, 12.5694], [125.2397, 12.5277]]], [[[122.4964, 11.6151], [123.1583, 11.5356], [123.0167, 11.1166], [122.7699, 10.8236], [122.1977, 10.623], [121.9642, 10.8716], [122.1036, 11.643], [122.4964, 11.6151]]], [[[124.5748, 11.343], [124.9299, 11.3727], [125.0133, 10.7854], [125.2535, 10.2639], [125.0266, 10.033], [124.7807, 10.168], [124.7869, 10.7814], [124.4456, 10.9235], [124.5748, 11.343]]], [[[117.3109, 8.4395], [117.35, 8.7134], [117.8849, 9.2407], [118.1148, 9.3468], [119.0243, 10.3535], [119.2241, 10.4774], [119.2614, 10.8449], [119.5268, 10.9532], [119.6839, 10.5515], [119.1917, 10.061], [118.782, 9.9163], [118.4348, 9.2562], [117.9896, 8.8772], [117.3109, 8.4395]]], [[[123.3705, 9.4498], [123.386, 9.9669], [123.7114, 10.4738], [123.952, 10.3167], [123.6435, 10.0202], [123.3705, 9.4498]]], [[[123.1308, 9.064], [122.5626, 9.4826], [122.4716, 9.9616], [122.8556, 10.0868], [122.8169, 10.5036], [122.9834, 10.8866], [123.2564, 10.9941], [123.5676, 10.7806], [123.1618, 9.8644], [123.3083, 9.357], [123.1308, 9.064]]], [[[124.5938, 9.7871], [124.3599, 9.63], [123.9355, 9.6238], [123.817, 9.8173], [124.1726, 10.1351], [124.577, 10.0268], [124.5938, 9.7871]]], [[[79.9822, 9.8129], [80.253, 9.7965], [80.7111, 9.3663], [81.373, 8.4315], [81.436, 8.119], [81.8741, 7.2885], [81.8612, 6.9014], [81.6375, 6.4251], [81.3801, 6.2409], [80.724, 5.979], [80.2672, 6.0096], [80.0954, 6.153], [79.8593, 6.8295], [79.7923, 7.5854], [79.929, 8.8993], [80.1185, 9.3268], [79.9822, 9.8129]]], [[[126.0059, 9.321], [126.1932, 9.2767], [126.3201, 8.8447], [126.4355, 7.8327], [126.57, 7.6773], [126.5816, 7.2476], [126.08, 6.7332], [125.8243, 7.3333], [125.4008, 6.7957], [125.5886, 6.4659], [125.6681, 5.9785], [125.4559, 5.6643], [124.6365, 5.9981], [124.0776, 6.4042], [123.9853, 6.9937], [124.2068, 7.3963], [123.9684, 7.6644], [123.493, 7.8078], [123.3909, 7.4074], [122.4973, 7.6729], [122.176, 7.0044], [122.0472, 7.3635], [122.132, 7.8105], [122.3371, 8.0284], [122.911, 8.1563], [123.0176, 8.3982], [123.4344, 8.7031], [124.2259, 8.2712], [124.4513, 8.6064], [124.731, 8.5629], [124.8686, 8.9721], [125.5336, 9.1408], [125.4142, 9.6691], [125.5211, 9.7592], [126.0059, 9.321]]], [[[116.8075, 6.691], [117.1285, 6.9689], [117.294, 6.6768], [117.6456, 6.4735], [117.6172, 5.9408], [118.0038, 6.0531], [118.1157, 5.8627], [118.5946, 5.5919], [119.2236, 5.4126], [119.1322, 5.1005], [118.1854, 4.8284], [118.5627, 4.5022], [118.4979, 4.3623], [118.0083, 4.25], [117.741, 4.3375], [117.4654, 4.076], [117.6301, 3.6361], [117.1662, 3.5922], [117.6105, 3.0644], [118.0664, 2.3178], [117.8649, 1.9684], [118.0806, 1.7016], [118.639, 1.319], [118.9848, 0.9821], [118.5347, 0.8134], [118.196, 0.8742], [117.745, 0.7295], [117.5222, 0.2359], [117.4627, -0.3238], [117.5626, -0.7708], [116.5545, -1.474], [116.4236, -2.0528], [116.5656, -2.2996], [116.3308, -2.9024], [115.9561, -3.5949], [114.6937, -4.1697], [114.5361, -3.4946], [114.0825, -3.2788], [113.7953, -3.4564], [113.5258, -3.1843], [112.9714, -3.1869], [112.6003, -3.4005], [112.2852, -3.321], [111.8222, -3.5323], [111.8231, -3.0573], [111.3676, -2.9335], [111.0445, -3.0556], [110.574, -2.8913], [110.2326, -2.9251], [110.0191, -1.399], [109.7874, -1.0114], [109.454, -0.8689], [109.1606, -0.4947], [109.2574, 0.0313], [108.9444, 0.3558], [108.9058, 0.7939], [109.0758, 1.4957], [109.3786, 1.9227], [109.6289, 2.0275], [109.9845, 1.7176], [110.3493, 1.7198], [110.9397, 1.5174], [111.1541, 1.7389], [111.242, 2.4358], [111.7276, 2.854], [112.7375, 3.0706], [113.0447, 3.2051], [113.4459, 3.7404], [113.924, 4.2434], [114.0536, 4.5927], [114.2995, 4.6074], [114.9956, 5.0224], [115.5198, 5.049], [115.419, 5.413], [115.7968, 5.536], [116.1386, 6.1295], [116.4946, 6.5219], [116.8075, 6.691]]], [[[96.4924, 5.2293], [97.4512, 5.2359], [97.9084, 4.8799], [98.2484, 4.4147], [98.3074, 4.0929], [99.7319, 3.1829], [100.4572, 2.2574], [100.6854, 2.1202], [101.0463, 2.2574], [101.4768, 1.6932], [101.7849, 1.6213], [102.1573, 1.2591], [102.4694, 0.7792], [102.8493, 0.7153], [103.0664, 0.492], [103.4788, 0.48], [103.7868, 0.0468], [103.4286, -0.1916], [103.4313, -0.5334], [103.7211, -0.8867], [104.3608, -1.0385], [104.5685, -1.9219], [104.8451, -2.0932], [104.6684, -2.3857], [105.3968, -2.3804], [105.5819, -2.4918], [106.0445, -3.1062], [105.8438, -3.6135], [105.8873, -5.0096], [105.8163, -5.6767], [105.6183, -5.7997], [105.3493, -5.5493], [105.0812, -5.7455], [104.6396, -5.5205], [104.6014, -5.9045], [103.8312, -5.0797], [102.919, -4.4707], [102.5377, -4.152], [102.1276, -3.5993], [101.5785, -3.167], [100.8478, -2.1438], [100.8554, -1.9343], [100.4865, -1.2991], [100.3081, -0.8268], [99.8602, -0.3136], [99.5978, 0.1023], [99.1593, 0.3518], [98.7962, 1.4948], [98.5645, 1.9023], [97.7006, 2.3586], [97.591, 2.8464], [97.3912, 2.9752], [96.9691, 3.5753], [96.4449, 3.8163], [95.4949, 4.7614], [95.2069, 5.2838], [95.2277, 5.5648], [95.629, 5.6092], [96.1333, 5.2941], [96.4924, 5.2293]]], [[[96.4635, 2.3599], [95.8088, 2.6556], [95.8061, 2.9161], [96.4173, 2.5153], [96.4635, 2.3599]]], [[[128.4539, 2.0519], [128.2178, 2.2973], [128.6022, 2.5974], [128.623, 2.2245], [128.4539, 2.0519]]], [[[127.7326, 0.848], [128.161, 1.1579], [128.4242, 1.5174], [128.6883, 1.5725], [128.7025, 1.1064], [128.299, 0.8769], [128.6914, 0.3602], [127.983, 0.4721], [127.8875, 0.2985], [128.0464, -0.706], [127.6918, -0.2417], [127.7086, 0.2883], [127.5555, 0.4898], [127.4201, 1.252], [127.6318, 1.8437], [128.0109, 1.7012], [128.0118, 1.3319], [127.6527, 1.014], [127.7326, 0.848]]], [[[124.889, 0.9954], [124.4274, 0.4707], [123.754, 0.3056], [123.2653, 0.3265], [123.0824, 0.4858], [121.8422, 0.4365], [121.4258, 0.4947], [120.3489, 0.4494], [120.1274, 0.1667], [120.012, -0.307], [120.0972, -0.6501], [120.5176, -1.0394], [120.6676, -1.3701], [121.0338, -1.4065], [121.5194, -0.8556], [121.9691, -0.9333], [122.2798, -0.7571], [122.8888, -0.7553], [123.1716, -0.5706], [123.3798, -0.6488], [123.378, -1.0043], [123.0495, -0.8725], [122.8076, -0.9662], [122.5067, -1.3479], [121.7188, -1.8628], [121.349, -1.9458], [121.8484, -2.3316], [122.3992, -3.2007], [122.2528, -3.6206], [122.8773, -4.1089], [122.8973, -4.3491], [122.207, -4.4964], [121.9172, -4.848], [121.4866, -4.5812], [121.6175, -4.0929], [120.9144, -3.5558], [121.0542, -3.167], [121.052, -2.7515], [120.6539, -2.6676], [120.2539, -3.0529], [120.4368, -3.7072], [120.3627, -4.0858], [120.4199, -4.6176], [120.2792, -5.1463], [120.3116, -5.5418], [119.7172, -5.6932], [119.3768, -5.4255], [119.6116, -4.4236], [119.6236, -4.0343], [119.4194, -3.4755], [118.9946, -3.5376], [118.8126, -3.1568], [118.7837, -2.7648], [119.0922, -2.4829], [119.3217, -1.9298], [119.3089, -1.4083], [119.7718, -0.4836], [119.8091, 0.2386], [120.2694, 0.971], [120.5167, 0.8174], [120.9122, 1.2888], [121.44, 1.2142], [121.5918, 1.0678], [122.4365, 1.018], [122.8924, 0.8498], [123.2781, 0.9279], [123.8468, 0.8383], [124.2738, 1.022], [124.9893, 1.7012], [125.2339, 1.5023], [124.889, 0.9954]]], [[[97.4814, 1.465], [97.9319, 0.9741], [97.8764, 0.6283], [97.4055, 0.9466], [97.2443, 1.4238], [97.4814, 1.465]]], [[[140.9735, -2.6099], [140.9743, -5.0398], [140.9748, -6.3461], [140.8625, -6.7399], [140.9752, -6.9054], [140.9761, -9.1187], [139.9347, -8.1013], [139.3857, -8.1892], [138.8561, -8.1452], [139.0878, -7.5872], [138.7478, -7.2517], [138.8645, -6.8584], [138.4388, -6.3435], [138.2826, -5.8388], [138.0611, -5.4654], [137.0894, -4.9243], [136.6189, -4.8187], [135.9797, -4.5311], [135.1962, -4.4507], [134.6795, -4.0792], [134.1473, -3.7969], [133.9737, -3.8182], [133.6532, -3.3645], [133.2488, -4.0623], [132.9688, -4.0947], [132.7539, -3.7036], [132.7512, -3.2948], [132.3482, -2.9752], [133.1911, -2.4377], [133.6088, -2.5473], [133.9049, -2.391], [133.9213, -2.1021], [132.963, -2.2725], [132.3078, -2.2423], [132.0233, -1.9902], [131.9305, -1.5596], [131.2935, -1.3936], [131.2571, -0.8556], [131.8044, -0.7038], [132.1285, -0.4539], [132.6252, -0.3589], [133.4726, -0.726], [133.9746, -0.7442], [134.2596, -1.363], [134.106, -1.7212], [134.1557, -2.1953], [135.0373, -3.333], [135.4865, -3.345], [136.2433, -2.5833], [136.3898, -2.2734], [136.843, -2.1975], [137.1236, -1.8411], [137.8063, -1.4833], [138.6497, -1.7909], [139.7896, -2.3484], [140.6223, -2.4456], [140.9735, -2.6099]]], [[[135.3831, -0.6514], [135.8936, -0.726], [136.2828, -1.0647], [135.839, -1.1193], [135.3831, -0.6514]]], [[[99.1637, -1.778], [98.8743, -1.664], [98.6017, -1.1979], [98.869, -0.9156], [99.2671, -1.6276], [99.1637, -1.778]]], [[[128.153, -1.6604], [127.5617, -1.7283], [127.6465, -1.3324], [128.153, -1.6604]]], [[[106.0458, -1.6693], [106.3659, -2.4647], [106.6788, -2.704], [106.547, -3.0556], [105.9988, -2.8247], [105.7857, -2.1815], [105.1332, -2.0426], [105.5855, -1.5268], [106.0458, -1.6693]]], [[[135.4741, -1.5916], [136.2016, -1.6551], [136.1927, -1.8593], [135.4741, -1.5916]]], [[[124.9694, -1.7057], [124.8344, -1.8943], [124.4176, -2.0053], [124.3808, -1.6875], [124.9694, -1.7057]]], [[[108.2071, -2.9978], [107.6145, -3.2096], [107.6665, -2.5664], [108.0744, -2.597], [108.2071, -2.9978]]], [[[129.7545, -2.866], [130.3791, -2.9894], [130.8598, -3.5705], [130.8052, -3.8577], [129.8442, -3.3272], [129.4678, -3.4533], [128.9675, -3.3259], [128.4193, -3.416], [128.0819, -3.1843], [128.1987, -2.866], [129.4274, -2.7906], [129.7545, -2.866]]], [[[126.8612, -3.088], [127.2275, -3.3911], [127.2297, -3.6331], [126.6863, -3.8235], [126.1785, -3.5798], [126.0263, -3.1705], [126.8612, -3.088]]], [[[123.1796, -4.551], [123.0553, -4.7481], [122.9856, -5.3935], [122.8121, -5.6714], [122.5843, -5.5445], [122.7663, -5.2102], [122.8533, -4.6185], [123.1796, -4.551]]], [[[122.6452, -5.2692], [122.3961, -5.0699], [122.3691, -4.7672], [122.702, -4.6185], [122.7592, -4.9341], [122.6452, -5.2692]]], [[[140.0488, 75.8289], [140.9442, 75.7004], [141.4853, 76.1372], [142.4605, 75.9035], [143.6856, 75.8636], [145.2552, 75.5857], [144.0199, 75.0446], [141.9873, 74.9913], [139.0993, 74.6566], [138.0922, 74.7973], [137.0064, 75.235], [137.5013, 75.9097], [138.8139, 76.1996], [140.0488, 75.8289]]], [[[146.7951, 75.3709], [150.1039, 75.2193], [150.6463, 74.9445], [149.5969, 74.7725], [148.0926, 74.8258], [146.1483, 75.1984], [146.7951, 75.3709]]], [[[113.3873, 74.4005], [112.7823, 74.0951], [111.6428, 74.2729], [112.0845, 74.549], [113.3873, 74.4005]]], [[[142.1848, 73.8958], [143.3438, 73.5687], [143.1934, 73.2206], [140.6627, 73.4519], [141.0849, 73.8658], [142.1848, 73.8958]]], [[[70.6738, 73.095], [69.996, 73.3594], [70.9402, 73.5145], [71.626, 73.174], [70.6738, 73.095]]], [[[-178.8765, 71.5769], [-177.5322, 71.2631], [-177.8218, 71.0675], [-179.5066, 70.9235], [-180, 70.993], [-180, 71.5378], [-178.8765, 71.5769]]], [[[178.8614, 70.8265], [178.8912, 71.2311], [180, 71.5378], [180, 70.993], [178.8614, 70.8265]]], [[[169.201, 69.5805], [167.789, 69.8369], [168.358, 70.0157], [169.375, 69.8826], [169.201, 69.5805]]], [[[-179.7985, 68.9402], [-178.8738, 68.7542], [-177.4074, 68.2451], [-175.3451, 67.678], [-174.4476, 67.1031], [-173.6796, 67.1449], [-172.6405, 66.9249], [-171.7955, 66.9318], [-170.192, 66.2014], [-170.6663, 65.6217], [-172.2115, 65.4255], [-172.2132, 65.0481], [-172.9239, 64.705], [-173.0091, 64.2975], [-173.7298, 64.3645], [-174.318, 64.6375], [-175.3951, 64.8024], [-175.8538, 65.0109], [-176.0933, 65.471], [-177.0563, 65.6137], [-178.3103, 65.4849], [-178.8794, 65.9364], [-179.7283, 65.8039], [-179.3521, 65.5167], [-180, 65.0672], [-180, 67.0252], [-180, 68.9835], [-179.7985, 68.9402]]], [[[163.635, 58.6033], [163.7615, 59.015], [164.6156, 58.8856], [163.635, 58.6033]]], [[[142.761, 54.3941], [142.9181, 53.7941], [143.2235, 53.2961], [143.3234, 52.6138], [143.1556, 52.0838], [143.4553, 51.4717], [143.8161, 50.2825], [144.272, 49.3113], [143.105, 49.1988], [142.5741, 48.0719], [142.5568, 47.7381], [143.0056, 47.2228], [143.2821, 46.5592], [142.5781, 46.7008], [142.2088, 46.0891], [141.8302, 46.4508], [142.0388, 47.1402], [141.9647, 47.5872], [142.1817, 48.0133], [141.8661, 48.75], [142.1422, 49.5692], [142.0712, 50.5149], [142.2066, 51.2225], [141.7223, 51.7363], [141.661, 52.2729], [141.8035, 52.5557], [141.8235, 53.3394], [142.5262, 53.4475], [142.67, 53.9684], [142.3349, 54.2807], [142.761, 54.3941]]], [[[148.5991, 45.3176], [147.9137, 44.9904], [147.7694, 45.1906], [148.5991, 45.3176]]], [[[143.8241, 44.1169], [144.7985, 43.9402], [145.1012, 43.7644], [145.3471, 43.1767], [144.6307, 42.9468], [143.9693, 42.8815], [143.4295, 42.419], [143.2364, 42.0004], [142.5084, 42.2578], [141.8515, 42.5792], [141.4067, 42.5468], [140.9863, 42.3422], [140.4803, 42.5592], [140.3267, 42.2933], [140.7342, 42.1162], [140.3849, 41.5192], [139.9951, 41.5765], [140.1083, 41.9129], [139.8211, 42.3875], [139.8912, 42.6494], [140.7808, 43.2149], [141.2962, 43.1998], [141.6446, 44.0196], [141.7822, 44.7166], [141.5829, 45.156], [141.9376, 45.5093], [142.7042, 44.8191], [143.8241, 44.1169]]], [[[141.2296, 41.3727], [141.4626, 40.611], [141.7969, 40.2914], [141.978, 39.8444], [141.9007, 39.1115], [141.6584, 38.9748], [141.4675, 38.404], [141.1084, 38.3378], [140.9282, 37.9494], [141.0365, 37.4674], [140.9686, 37.0022], [140.6272, 36.5028], [140.6219, 36.0593], [140.874, 35.7251], [140.4572, 35.5102], [140.3147, 35.1551], [139.7994, 34.9567], [139.6502, 35.409], [139.2494, 35.2781], [138.9826, 34.6984], [138.5773, 35.0863], [138.1889, 34.5963], [136.8848, 34.8058], [136.5332, 34.6784], [136.8537, 34.3242], [136.3299, 34.1768], [135.9162, 33.5615], [135.4528, 33.5531], [135.1753, 33.898], [135.1003, 34.2882], [135.3849, 34.5004], [134.7399, 34.7654], [134.2081, 34.6975], [133.9684, 34.5275], [133.1423, 34.3024], [132.2381, 34.2269], [132.0903, 33.8554], [131.7405, 34.0521], [130.9189, 33.9757], [131.0041, 34.3925], [131.3543, 34.4134], [131.8564, 34.7263], [132.923, 35.5111], [133.3767, 35.4587], [134.2139, 35.5391], [135.1744, 35.7473], [135.68, 35.5031], [136.0955, 35.7677], [136.0063, 35.9905], [136.6983, 36.742], [137.3424, 36.7704], [137.5142, 36.9516], [138.3199, 37.2183], [138.8849, 37.8438], [139.4012, 38.1425], [140.0479, 39.4635], [139.9228, 40.5986], [140.2814, 40.8463], [141.1186, 40.8822], [141.2296, 41.3727]]], [[[134.3572, 34.2562], [134.6373, 34.2265], [134.739, 33.8203], [134.3772, 33.6082], [134.1815, 33.2473], [133.6319, 33.5109], [133.2861, 33.36], [132.9772, 32.842], [132.4951, 32.9166], [132.3659, 33.5123], [132.7841, 33.9926], [133.5822, 34.017], [134.0758, 34.3583], [134.3572, 34.2562]]], [[[131.1745, 33.6024], [131.5829, 33.6525], [131.8968, 33.2548], [131.9767, 32.8438], [131.7321, 32.593], [131.3374, 31.4047], [130.5886, 31.1783], [130.2006, 31.2919], [130.3218, 31.6013], [130.1944, 32.0909], [130.6405, 32.6192], [130.3817, 33.0924], [130.1749, 32.8513], [129.5801, 33.2362], [129.66, 33.3649], [130.3649, 33.6343], [130.4838, 33.8345], [130.953, 33.8718], [131.1745, 33.6024]]], [[[121.009, 22.6205], [120.5815, 22.3564], [120.3258, 22.5424], [120.0724, 23.1496], [120.1589, 23.7089], [121.0405, 25.0326], [121.5936, 25.2754], [121.9292, 24.9736], [121.6393, 24.1302], [121.4773, 23.4239], [121.2957, 22.9667], [121.009, 22.6205]]], [[[96.5265, 81.0755], [97.8316, 80.7983], [97.1751, 80.241], [94.565, 80.126], [93.8725, 80.0102], [91.5239, 80.3584], [93.2626, 80.7912], [93.0651, 80.9885], [95.8008, 81.2804], [96.5265, 81.0755]]], [[[97.6745, 80.1582], [100.0613, 79.7771], [99.4394, 78.8341], [97.5555, 78.8266], [94.6524, 79.1275], [93.0708, 79.4953], [94.9867, 80.0967], [97.6745, 80.1582]]], [[[102.8849, 79.254], [105.146, 78.8188], [105.3125, 78.4998], [103.7194, 78.2581], [101.2043, 78.192], [100.2841, 78.6792], [101.5905, 79.3503], [102.8849, 79.254]]], [[[34.9041, 29.4773], [34.1983, 31.3226], [34.6786, 31.8956], [35.2512, 33.3924], [35.6481, 34.2483], [35.9779, 34.5474], [35.9433, 35.2239], [35.7644, 35.5715], [35.8927, 35.9164], [36.1275, 35.8316], [36.5376, 36.4575], [36.6584, 36.8024], [37.4365, 36.6435], [38.1916, 36.9014], [38.7669, 36.6932], [39.3568, 36.6817], [40.0164, 36.8259], [40.7058, 37.0976], [41.5154, 37.0892], [42.7748, 37.3719], [43.5161, 37.2445], [44.1562, 37.2831], [44.2818, 36.9782], [44.794, 37.2902], [44.5614, 37.7448], [44.2112, 37.9081], [44.4309, 38.3569], [44.023, 39.3774], [44.3892, 39.4223], [44.5872, 39.7685], [45.4798, 39.0063], [46.1701, 38.8692], [46.555, 38.9042], [46.8528, 39.1484], [47.773, 39.6486], [47.9958, 39.6842], [48.2422, 38.9788], [48.0234, 38.819], [48.5929, 38.4111], [48.8685, 38.4355], [49.0811, 37.6676], [49.47, 37.4967], [50.1305, 37.407], [50.5331, 37.0137], [51.1186, 36.7425], [52.1902, 36.6217], [54.0172, 36.9524], [53.8237, 37.9281], [53.8685, 38.9491], [53.6177, 39.2158], [53.125, 39.432], [53.4721, 39.6686], [53.4042, 39.9603], [52.9874, 39.9878], [52.7335, 40.3988], [53.1454, 40.825], [53.6151, 40.8183], [53.8699, 40.6487], [54.7101, 40.8911], [54.5921, 41.1934], [54.0949, 41.5192], [53.8463, 42.0914], [53.1641, 42.0936], [52.6096, 41.5294], [52.4623, 42.1007], [52.5968, 42.7603], [51.8439, 42.9104], [51.3019, 43.4825], [50.8305, 44.1928], [50.3311, 44.3255], [50.4093, 44.6242], [50.8603, 44.6287], [51.4156, 45.358], [52.5311, 45.3988], [52.7739, 45.5728], [53.1352, 46.1916], [53.1703, 46.6692], [52.9159, 46.9542], [52.1888, 46.8397], [51.1781, 47.11], [50.4195, 46.8796], [50, 46.6342], [49.3475, 46.5192], [49.2321, 46.3372], [48.6102, 46.5663], [48.9595, 46.7744], [48.1099, 47.7452], [47.0934, 47.9476], [47.0042, 48.2846], [46.661, 48.4124], [46.7028, 48.8055], [47.0144, 49.0987], [46.8022, 49.367], [46.9917, 49.8526], [47.3264, 50.2734], [47.706, 50.378], [48.4344, 49.8284], [48.8432, 50.0131], [48.8086, 50.6012], [49.498, 51.0835], [50.2468, 51.2895], [50.7941, 51.7292], [51.6091, 51.4839], [52.3309, 51.6812], [52.571, 51.4817], [53.3381, 51.4824], [54.0416, 51.1153], [54.4216, 50.7803], [54.727, 50.9981], [55.5424, 50.6017], [55.7977, 50.6021], [56.4915, 51.0196], [57.0117, 51.0651], [57.4423, 50.8889], [57.8387, 51.0917], [58.3594, 51.0638], [58.8836, 50.6945], [59.8122, 50.5819], [59.9552, 50.7992], [60.6379, 50.6638], [61.3894, 50.8609], [61.5851, 51.23], [61.3632, 51.442], [60.4648, 51.6513], [60.0657, 51.9766], [60.1789, 52.009], [59.707, 52.4616], [59.0372, 52.607], [59.0052, 53.1794], [59.4083, 53.6477], [59.8828, 53.9417], [59.6294, 54.3086], [58.9546, 54.5315], [57.6207, 53.983], [56.9735, 54.4686], [56.084, 55.3471], [58.0984, 55.5504], [58.6901, 56.0873], [58.58, 56.5143], [57.8276, 56.859], [58.0265, 57.3293], [58.7984, 57.8522], [59.4318, 58.5187], [60.0644, 59.4402], [60.5424, 61.0083], [61.2167, 64.2824], [63.0824, 64.9054], [64.8011, 65.7162], [66.2021, 66.1716], [67.5444, 66.7227], [68.2688, 67.2858], [67.8751, 68.4763], [68.3714, 68.3143], [69.1406, 68.9506], [68.5427, 68.967], [68.006, 69.48], [67.0645, 69.6937], [66.9265, 70.0142], [67.2847, 70.7386], [66.6664, 70.9006], [66.9176, 71.2824], [68.2693, 71.6828], [69.039, 72.67], [69.6449, 72.8975], [71.5004, 72.9137], [72.8121, 72.6915], [72.6243, 72.0794], [71.9118, 71.5478], [72.5812, 71.1512], [72.7002, 70.4574], [72.4694, 70.275], [72.5275, 69.0805], [73.548, 68.5744], [73.1521, 67.8651], [72.5946, 67.587], [71.5514, 66.7605], [70.9393, 66.5481], [69.877, 66.8455], [69.1943, 66.5787], [70.3396, 66.3423], [71.9172, 66.2467], [72.4174, 66.5607], [73.7922, 66.9953], [74.0745, 67.4141], [74.7696, 67.7663], [74.3914, 68.4206], [74.5796, 68.7511], [76.4591, 68.9784], [77.2385, 68.4697], [77.6509, 68.9029], [76.0005, 69.2349], [74.8145, 69.0907], [73.7757, 69.1983], [73.56, 69.7072], [74.3111, 70.6538], [73.0864, 71.4448], [73.6719, 71.845], [75.7413, 72.2962], [75.2472, 71.8135], [75.332, 71.3416], [76.1106, 71.2185], [77.4809, 71.3115], [76.3121, 71.5956], [76.0325, 71.9103], [78.4828, 72.395], [79.4221, 72.3808], [80.7626, 72.0892], [81.511, 71.7463], [82.9861, 71.7487], [82.1835, 72.2376], [80.827, 72.4882], [80.5096, 73.0861], [80.5833, 73.5684], [83.5449, 73.6665], [86.5914, 73.8942], [86.6513, 74.6824], [87.6713, 75.1296], [90.1851, 75.591], [93.5498, 75.854], [94.5756, 76.1517], [96.879, 75.931], [98.6621, 76.2427], [98.8055, 76.4806], [100.3223, 76.479], [101.0991, 76.7041], [100.9899, 76.9904], [103.1312, 77.6265], [104.0146, 77.7304], [105.8944, 77.4889], [104.9121, 77.1748], [105.712, 77.0015], [107.4299, 76.9265], [108.0278, 76.7185], [111.1151, 76.7229], [112.6194, 76.3836], [113.8712, 75.856], [113.6137, 75.2929], [111.8683, 74.7403], [109.8402, 74.3219], [108.1996, 73.6941], [107.271, 73.621], [106.4782, 73.1394], [107.7504, 73.1731], [109.8553, 73.4725], [110.2615, 74.0174], [112.1471, 73.7089], [114.0607, 73.5846], [115.3378, 73.7025], [118.4504, 73.5897], [118.4304, 73.2466], [119.7505, 72.9792], [123.1605, 72.955], [123.6222, 73.1933], [123.3052, 73.5331], [124.3883, 73.7549], [125.617, 73.5207], [127.7406, 73.4816], [128.8885, 73.1902], [129.4118, 72.3155], [128.3589, 72.0883], [129.7621, 71.1195], [131.1572, 70.7419], [131.5621, 70.9011], [132.5621, 71.8952], [133.4264, 71.491], [134.1029, 71.3789], [135.8847, 71.6306], [137.3153, 71.3594], [138.1183, 71.5663], [139.695, 71.7003], [139.6014, 72.496], [142.0614, 72.7208], [145.4856, 72.5422], [146.594, 72.3027], [148.402, 72.312], [149.5015, 72.1644], [150.5997, 71.5201], [151.5825, 71.287], [152.5089, 70.8345], [153.7944, 70.88], [155.8949, 71.0955], [158.0371, 71.0394], [159.3506, 70.7908], [160.0062, 70.3096], [159.8327, 69.7849], [161.5368, 69.3796], [162.3757, 69.6491], [164.1597, 69.7192], [164.5135, 69.6091], [166.8204, 69.4995], [167.6287, 69.7403], [168.303, 69.2716], [169.3106, 69.0796], [169.6098, 68.7862], [170.5376, 68.8254], [170.9952, 69.0454], [170.5824, 69.5834], [170.4869, 70.1076], [172.5595, 69.9682], [173.2773, 69.8238], [176.1075, 69.8604], [176.9243, 69.646], [178.8485, 69.3872], [180, 68.9835], [180, 65.0672], [178.5196, 64.6029], [177.4672, 64.7368], [177.433, 64.4445], [178.6501, 63.9653], [178.7065, 63.5216], [179.3324, 63.1902], [179.5703, 62.6875], [179.1206, 62.3204], [177.3513, 62.5874], [175.2681, 62.1025], [174.5144, 61.8237], [173.6235, 61.7161], [172.856, 61.4693], [172.3926, 61.0618], [170.6081, 60.435], [169.9827, 60.067], [169.2267, 60.5959], [168.1374, 60.5739], [166.9642, 60.3069], [166.3521, 60.4847], [165.0843, 60.0985], [163.7802, 60.041], [163.41, 59.8349], [163.2728, 59.3026], [162.1418, 58.4475], [161.9602, 58.0768], [162.4672, 57.7661], [163.2138, 57.6869], [162.7792, 57.3577], [162.8027, 56.8113], [163.2564, 56.6881], [163.3354, 56.2324], [163.0473, 56.0447], [162.5284, 56.2606], [162.085, 56.0897], [161.7294, 55.358], [162.1058, 54.7521], [161.7259, 54.533], [160.7733, 54.5414], [160.0746, 54.1892], [159.8437, 53.7837], [159.8975, 53.3807], [158.6088, 52.8735], [158.4637, 52.3049], [158.1037, 51.8095], [156.7476, 50.9692], [156.5004, 51.475], [156.3645, 52.5093], [156.0986, 53.0065], [155.6201, 54.8646], [155.5549, 55.3484], [155.9828, 56.6952], [156.7285, 57.1522], [156.9767, 57.4662], [156.7915, 57.7479], [157.4503, 57.7994], [158.2102, 58.0253], [159.0368, 58.4239], [159.8473, 59.1271], [160.8554, 59.6269], [161.7534, 60.1522], [162.0037, 60.4201], [162.9732, 60.7828], [163.71, 60.9168], [164.0052, 61.3439], [164.2556, 62.6966], [163.3319, 62.5508], [163.0091, 61.7915], [162.3926, 61.6621], [160.7666, 60.7533], [159.8833, 61.2917], [160.3174, 61.7933], [159.5526, 61.7194], [159.0767, 61.9223], [158.07, 61.7536], [157.4694, 61.7989], [156.6801, 61.4806], [156.63, 61.2724], [155.8532, 60.7772], [154.9707, 60.3766], [154.2929, 59.8333], [154.5827, 59.5401], [155.1669, 59.3601], [154.011, 59.0756], [153.3612, 59.2147], [152.8822, 58.9391], [151.3268, 58.8752], [151.99, 59.1601], [151.4857, 59.5241], [150.4572, 59.5907], [149.6427, 59.7705], [149.205, 59.4882], [147.8746, 59.3881], [147.5146, 59.2687], [146.4444, 59.4305], [145.9317, 59.1983], [145.5544, 59.4136], [143.192, 59.3701], [142.0255, 58.9997], [141.7547, 58.7453], [140.6849, 58.2122], [140.447, 57.8136], [140.0022, 57.6875], [138.6621, 56.9658], [137.6913, 56.1395], [136.175, 55.3522], [135.2623, 54.9434], [135.2579, 54.7314], [135.8514, 54.5838], [136.7973, 54.6209], [136.6828, 53.9313], [137.1555, 53.8217], [137.3282, 53.5389], [138.2923, 53.5924], [138.6608, 53.7449], [138.6958, 54.3199], [139.3195, 54.193], [139.7075, 54.2771], [140.3471, 53.8126], [141.4023, 53.184], [141.1697, 52.3684], [141.4853, 52.1786], [140.6876, 51.2322], [140.4763, 50.546], [140.5171, 49.596], [140.1705, 48.5238], [139.3723, 47.8873], [139.0012, 47.3835], [138.5866, 47.0572], [138.3367, 46.5432], [137.6855, 45.8183], [136.8035, 45.1711], [136.1421, 44.4893], [135.8745, 44.3734], [135.4834, 43.835], [135.1309, 43.5256], [133.7092, 42.83], [133.1601, 42.6968], [132.4814, 42.9099], [132.3344, 43.2388], [131.7947, 43.2553], [131.1586, 42.6258], [130.8341, 42.5228], [130.0684, 42.0457], [129.7563, 41.7123], [129.7088, 40.8574], [128.3043, 40.0362], [127.5684, 39.7818], [127.3944, 39.2079], [127.7863, 39.084], [128.3745, 38.6233], [128.6191, 38.1763], [129.335, 37.2747], [129.4735, 36.742], [129.4034, 36.0522], [129.5619, 35.9475], [129.2143, 35.1818], [128.5112, 35.101], [128.4442, 34.8706], [127.7148, 34.9545], [127.0308, 34.6069], [126.4817, 34.4937], [126.2913, 35.1542], [126.7174, 35.769], [126.5483, 36.4775], [126.2172, 36.8708], [126.8688, 36.9755], [126.5727, 37.7967], [125.9419, 37.8735], [125.4492, 37.7301], [125.1931, 38.0378], [124.6911, 38.1292], [125.0675, 38.5567], [125.4097, 39.2882], [125.3609, 39.5266], [124.2676, 39.9243], [123.3483, 39.7632], [122.3349, 39.3663], [121.6499, 38.8652], [121.7853, 39.4009], [121.5177, 39.6389], [122.2749, 40.5418], [121.859, 40.8423], [121.1745, 40.9013], [120.479, 40.231], [119.5912, 39.9025], [119.2245, 39.4081], [118.9125, 39.1666], [118.2977, 39.0671], [117.7845, 39.1346], [117.5577, 38.625], [118.0149, 38.1834], [118.94, 38.0426], [119.0891, 37.7008], [118.9529, 37.3311], [119.45, 37.1247], [120.3702, 37.7008], [120.7502, 37.834], [121.6402, 37.4603], [122.6025, 37.4265], [122.5195, 36.9467], [121.9327, 36.9595], [120.9899, 36.5978], [120.3933, 36.054], [120.0546, 35.8614], [119.2156, 35.0117], [119.5827, 34.5821], [120.2015, 34.3255], [120.5047, 33.6383], [120.8709, 33.0165], [120.8532, 32.6613], [121.4009, 32.3719], [121.3521, 31.8588], [121.0556, 31.7194], [121.661, 31.3199], [121.8781, 30.9164], [120.9974, 30.5582], [121.1594, 30.3012], [121.9442, 29.8941], [121.7174, 29.2562], [121.602, 28.3667], [121.0986, 28.2903], [120.2788, 27.0971], [119.6484, 25.9186], [119.5392, 25.5915], [119.0252, 25.2235], [118.9089, 24.9287], [118.5605, 24.5803], [118.0873, 24.6269], [118.0562, 24.246], [117.6283, 23.8368], [117.4663, 23.8408], [116.5381, 23.1798], [116.4706, 22.9459], [115.4985, 22.719], [115.1958, 22.8171], [114.854, 22.6169], [114.6515, 22.7554], [114.268, 22.2956], [113.8965, 22.4283], [113.5494, 22.225], [112.3051, 21.7416], [111.9438, 21.8495], [111.6029, 21.5591], [110.771, 21.3865], [110.1935, 21.0376], [110.1802, 20.8587], [110.5114, 20.5182], [110.123, 20.2639], [109.6626, 20.9168], [109.9308, 21.4806], [109.5441, 21.5378], [109.1486, 21.4255], [109.0305, 21.6266], [108.3248, 21.6936], [107.4099, 21.2848], [107.3544, 21.0553], [106.6752, 20.9603], [106.7534, 20.7348], [106.5181, 20.2887], [105.9841, 19.9389], [105.6214, 18.9664], [105.8882, 18.5025], [106.4986, 17.9463], [106.479, 17.7195], [107.1804, 16.8983], [108.0296, 16.331], [108.6741, 15.4836], [108.8215, 15.3779], [109.0847, 14.7161], [109.3035, 13.8563], [109.272, 13.2792], [109.4238, 12.9561], [109.2188, 12.6458], [109.1988, 11.7247], [108.8206, 11.3154], [108.2715, 10.9341], [107.2616, 10.3984], [106.8129, 10.4334], [106.7853, 10.1165], [106.5075, 9.8213], [106.5723, 9.6411], [105.5012, 9.0933], [105.3223, 8.8012], [104.8921, 8.5833], [104.8184, 8.8017], [104.8451, 9.606], [105.028, 10.0672], [104.6635, 10.1698], [104.2623, 10.5413], [103.532, 10.6048], [103.722, 10.8902], [103.5325, 11.1468], [103.153, 10.9137], [103.1254, 11.4606], [102.7628, 12.0124], [101.7236, 12.6893], [101.4449, 12.6187], [100.8634, 12.7146], [100.9624, 13.4319], [100.6561, 13.5211], [100.0173, 13.3534], [100.0901, 13.0457], [99.964, 12.6902], [99.9889, 12.1708], [99.6271, 11.4628], [99.4869, 10.8898], [99.165, 10.3198], [99.161, 9.7339], [99.3936, 9.2136], [99.7239, 9.3144], [99.9046, 9.1129], [99.9605, 8.6712], [100.2792, 8.2686], [100.4537, 7.4425], [100.5864, 7.1762], [101.0178, 6.861], [101.4977, 6.8654], [101.7991, 6.4744], [102.3402, 6.1721], [102.5342, 5.8627], [102.9825, 5.5249], [103.4158, 4.8502], [103.4686, 4.3934], [103.362, 3.7693], [103.4535, 3.5207], [103.4397, 2.933], [103.8121, 2.5805], [104.2884, 1.4806], [103.6945, 1.4495], [102.7273, 1.8557], [101.2953, 2.8851], [101.2997, 3.2535], [100.7156, 3.9664], [100.6143, 4.6522], [100.3525, 5.5875], [100.3431, 5.9843], [100.119, 6.442], [99.6959, 6.8765], [99.7203, 7.106], [99.051, 7.8877], [98.5791, 8.3445], [98.2377, 8.423], [98.2417, 8.7684], [98.5618, 9.8373], [98.465, 10.6758], [98.6754, 10.987], [98.7416, 11.5916], [98.6364, 11.7385], [98.6963, 12.2254], [98.576, 13.162], [98.2453, 13.7333], [97.8121, 14.859], [97.7104, 15.8756], [97.5843, 16.0194], [97.6194, 16.5374], [97.3757, 16.5227], [97.1782, 17.0621], [96.97, 17.3173], [96.8106, 16.7784], [96.6224, 16.564], [95.7635, 16.169], [95.3897, 15.7229], [94.9432, 15.8183], [94.5876, 16.2888], [94.2143, 16.1268], [94.589, 17.5694], [94.4309, 18.2015], [94.07, 18.8936], [93.7056, 19.0267], [93.9981, 19.4409], [93.3625, 20.0583], [93.002, 20.0748], [92.6079, 20.4698], [92.0561, 21.1747], [92.0082, 21.6848], [91.693, 22.5046], [91.4094, 22.7972], [90.9455, 22.597], [90.6334, 23.0946], [90.435, 22.7519], [90.5895, 22.2583], [90.1589, 21.817], [89.8118, 21.9835], [89.0518, 21.6541], [88.2537, 21.6222], [87.9483, 21.8255], [87.678, 21.6537], [87.1005, 21.5006], [86.8595, 21.2369], [86.9753, 20.7002], [86.7503, 20.3131], [86.2793, 19.9194], [85.5748, 19.693], [84.771, 19.1253], [84.1042, 18.2925], [83.6541, 18.0697], [83.1982, 17.609], [82.3597, 17.0963], [82.259, 16.56], [81.7618, 16.3297], [81.2385, 16.264], [80.9788, 15.7584], [80.6468, 15.8951], [80.2934, 15.7109], [80.0533, 15.0739], [80.1656, 14.5776], [80.1119, 14.2123], [80.3422, 13.3613], [80.229, 12.6902], [79.8584, 11.9888], [79.7541, 11.5751], [79.8486, 11.1969], [79.838, 10.3225], [79.3905, 10.3065], [78.9964, 9.6833], [78.9795, 9.2687], [78.4215, 9.1049], [78.1925, 8.8909], [78.0602, 8.3844], [77.5178, 8.0781], [76.9669, 8.4071], [76.5536, 8.9029], [76.3246, 9.452], [76.3463, 9.9221], [75.9224, 10.7841], [75.724, 11.3616], [75.1966, 12.0576], [74.7701, 13.0773], [74.6711, 13.6676], [74.3821, 14.4946], [73.9493, 15.0748], [73.932, 15.397], [73.4761, 16.0544], [73.3376, 16.4597], [73.1561, 17.6218], [72.8711, 18.6832], [72.8116, 19.2988], [72.6678, 19.8311], [72.8809, 20.5631], [72.8138, 21.117], [72.5431, 21.6968], [72.5901, 22.2783], [72.3327, 22.2703], [72.037, 21.8233], [72.2541, 21.5312], [72.0153, 21.1556], [71.0245, 20.7388], [70.7191, 20.7406], [70.1274, 21.0948], [69.0088, 22.1966], [70.1771, 22.5726], [70.2512, 22.9707], [69.6644, 22.759], [69.2361, 22.8487], [68.6408, 23.19], [68.4175, 23.5713], [68.0371, 23.8483], [67.6687, 23.811], [67.3096, 24.175], [67.1715, 24.7561], [66.7032, 24.8608], [66.6988, 25.2261], [66.4284, 25.5755], [65.6796, 25.3553], [64.7767, 25.3074], [64.6591, 25.184], [63.7207, 25.3859], [63.4912, 25.2106], [62.5724, 25.2545], [62.3153, 25.1347], [61.4116, 25.1023], [60.6641, 25.2821], [59.4562, 25.4814], [59.0461, 25.4175], [58.7979, 25.5546], [57.7961, 25.6532], [57.3344, 25.7917], [56.9824, 26.9054], [56.8129, 27.09], [56.3561, 27.2001], [55.6503, 26.9777], [54.8957, 26.5565], [54.6449, 26.509], [54.2472, 26.6968], [53.7056, 26.7256], [53.4548, 26.9431], [52.6918, 27.3235], [52.476, 27.6165], [52.0308, 27.8242], [51.6664, 27.8451], [51.2789, 28.1314], [51.0622, 28.7262], [50.6752, 29.1466], [50.6499, 29.42], [49.9831, 30.2093], [49.5548, 30.0291], [48.9169, 30.397], [48.9191, 30.1209], [48.4544, 29.9385], [47.9825, 30.0113], [47.9696, 29.6167], [48.1836, 28.9793], [48.9067, 27.6289], [49.4052, 27.1815], [49.9858, 26.829], [50.214, 26.3083], [50.0315, 26.1108], [50.5584, 25.0868], [51.0032, 25.9816], [51.2624, 26.1534], [51.543, 25.9022], [51.4853, 25.5249], [51.5869, 24.9647], [51.3099, 24.3406], [51.7676, 24.2545], [51.9061, 23.9855], [52.6483, 24.1546], [53.8934, 24.0769], [54.3972, 24.278], [54.747, 24.8102], [55.0981, 25.0415], [55.5229, 25.4982], [55.9411, 25.7939], [56.1643, 26.2071], [56.4298, 26.327], [56.373, 25.0184], [56.6406, 24.4702], [57.2199, 23.9229], [58.5782, 23.6437], [59.5352, 22.5783], [59.8233, 22.5091], [59.7998, 22.2201], [59.3715, 21.4988], [58.8956, 21.1126], [58.4743, 20.4068], [57.8618, 20.2439], [57.7153, 19.6069], [57.8116, 19.017], [57.1764, 18.9025], [56.6553, 18.5873], [56.551, 18.166], [56.2704, 17.9507], [55.4785, 17.8433], [55.0644, 17.039], [54.0683, 17.0057], [53.6097, 16.7598], [52.5812, 16.4704], [52.3278, 16.2937], [52.1742, 15.9568], [52.2177, 15.6554], [51.6038, 15.3367], [50.5269, 15.0384], [50.1669, 14.851], [49.3497, 14.638], [49.0483, 14.4564], [48.6683, 14.0503], [47.9901, 14.048], [47.4077, 13.6614], [46.7889, 13.4657], [45.6574, 13.3387], [45.0386, 12.8158], [44.6178, 12.8171], [43.9298, 12.6165], [43.4752, 12.8389], [43.232, 13.2672], [43.2826, 13.6397], [43.089, 14.0108], [43.0211, 14.555], [42.7171, 15.6545], [42.8396, 16.0322], [42.6989, 16.7371], [42.3833, 17.1224], [42.294, 17.4349], [41.7498, 17.8855], [41.2296, 18.6783], [41.1159, 19.0822], [40.7591, 19.7556], [40.0808, 20.2661], [39.6138, 20.5178], [39.0936, 21.3101], [38.9879, 21.8819], [39.0958, 22.3928], [38.9413, 22.8819], [38.4641, 23.712], [37.9195, 24.1852], [37.5431, 24.2917], [37.1808, 24.82], [37.1489, 25.2909], [36.7627, 25.7513], [36.2496, 26.5947], [35.5815, 27.4323], [35.1807, 28.0346], [34.616, 28.1483], [34.7798, 28.5074], [34.9041, 29.4773]]], [[[134.747, -5.7069], [134.7559, -6.1708], [134.4411, -6.335], [134.3018, -6.0097], [134.3413, -5.7127], [134.747, -5.7069]]], [[[107.3739, -6.0074], [107.6669, -6.2156], [108.295, -6.2649], [108.6776, -6.7905], [110.4261, -6.9472], [110.7369, -6.4722], [111.1546, -6.6693], [111.5403, -6.6484], [112.0872, -6.8934], [112.5391, -6.9263], [112.7943, -7.5526], [113.2484, -7.7182], [114.0705, -7.633], [114.4442, -7.8958], [114.387, -8.4053], [114.5836, -8.7698], [113.2533, -8.2868], [112.6789, -8.4093], [111.5101, -8.305], [110.6072, -8.1501], [110.0386, -7.8904], [109.2818, -7.7049], [108.7411, -7.6671], [108.4517, -7.7968], [107.9173, -7.724], [107.2852, -7.4718], [106.6317, -7.4155], [106.5199, -7.0537], [105.4838, -6.7816], [105.8683, -6.1166], [106.0751, -5.9142], [106.8253, -6.0984], [107.0463, -5.9045], [107.3739, -6.0074]]], [[[134.5366, -6.4424], [134.3559, -6.8149], [134.0589, -6.7692], [134.1681, -6.1761], [134.5366, -6.4424]]], [[[113.8445, -7.1052], [113.4708, -7.2184], [112.7637, -7.1398], [112.868, -6.9001], [113.9746, -6.873], [113.8445, -7.1052]]], [[[131.3255, -7.9996], [131.0866, -7.8651], [131.2602, -7.4705], [131.5607, -7.1358], [131.6912, -7.439], [131.3255, -7.9996]]], [[[138.5352, -8.2735], [138.2963, -8.4053], [137.6851, -8.2624], [138.0074, -7.6414], [138.2955, -7.4385], [138.77, -7.3906], [138.9893, -7.696], [138.5352, -8.2735]]], [[[126.8009, -7.668], [126.4719, -7.9504], [125.8434, -7.8167], [126.6096, -7.5717], [126.8009, -7.668]]], [[[115.4479, -8.155], [115.7045, -8.4071], [115.2362, -8.7977], [114.4753, -8.1195], [115.4479, -8.155]]], [[[118.2426, -8.3179], [118.9879, -8.3379], [119.0061, -8.7498], [118.2342, -8.808], [117.0614, -9.0991], [116.7884, -9.0064], [116.8351, -8.5323], [117.1649, -8.3672], [117.567, -8.4266], [118.1175, -8.1221], [118.2426, -8.3179]]], [[[122.7828, -8.6117], [121.6513, -8.899], [121.0352, -8.9353], [119.8078, -8.6974], [119.9183, -8.4453], [120.6104, -8.2407], [121.4444, -8.578], [121.9664, -8.4551], [122.263, -8.6251], [122.6034, -8.4027], [122.7828, -8.6117]]], [[[116.6406, -8.614], [116.3774, -8.9291], [116.0764, -8.7449], [116.0613, -8.4373], [116.4014, -8.2043], [116.7343, -8.3871], [116.6406, -8.614]]], [[[127.2963, -8.4244], [126.915, -8.7152], [126.3823, -8.9575], [125.4079, -9.2758], [124.4274, -10.1485], [123.8574, -10.3438], [123.5893, -9.967], [123.7092, -9.6149], [123.9773, -9.373], [124.5756, -9.1555], [125.178, -8.6477], [125.8043, -8.4923], [126.6198, -8.4595], [126.9664, -8.3157], [127.2963, -8.4244]]], [[[120.0124, -9.3748], [120.5038, -9.674], [120.8327, -10.0375], [120.439, -10.2941], [120.1447, -10.2], [119.6009, -9.7734], [119.0856, -9.7068], [119.1855, -9.3846], [120.0124, -9.3748]]]] }, "properties": { "name": "Asia", "id": "asia" }, "id": "asia" } + ] }; +return map; +})(); diff --git a/web/amCharts/scatter/chart_0059_scatter.inline05.js b/web/amCharts/scatter/chart_0059_scatter.inline05.js new file mode 100644 index 0000000000000000000000000000000000000000..c27a274e7972e9ecbd57d20b441e60fc864ffc7d --- /dev/null +++ b/web/amCharts/scatter/chart_0059_scatter.inline05.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=Animated.js.map diff --git a/web/amCharts/scatter/chart_0060_scatter.html b/web/amCharts/scatter/chart_0060_scatter.html new file mode 100644 index 0000000000000000000000000000000000000000..17650ff49219f772ab3bbddadd578889de204a98 --- /dev/null +++ b/web/amCharts/scatter/chart_0060_scatter.html @@ -0,0 +1,219 @@ + + + + + + Bubble Chart + + + +
+ + + + + + diff --git a/web/amCharts/scatter/chart_0060_scatter.inline01.js b/web/amCharts/scatter/chart_0060_scatter.inline01.js new file mode 100644 index 0000000000000000000000000000000000000000..3fe3e3caca2e468e70f044c7aaeaa49dfcb8d974 --- /dev/null +++ b/web/amCharts/scatter/chart_0060_scatter.inline01.js @@ -0,0 +1,2 @@ +!function(){var t,e,i,s,n,r={3145:function(t,e,i){"use strict";i.d(e,{UZ:function(){return r},cP:function(){return n},f_:function(){return o},i_:function(){return s}});const s=new class{constructor(){this.version="5.16.0",this.licenses=[],this.entitiesById={},this.rootElements=[],this.autoDispose=!1}};function n(t){s.licenses.push(t)}function r(){let t;for(;t=s.rootElements.pop();)t.dispose()}function o(t){let e;return s.rootElements.forEach((i=>{i.dom.id==t&&(e=i)})),e}},2855:function(t,e,i){"use strict";i.d(e,{f:function(){return F}});var s=i(6490),n=i(8777),r=i(2036),o=i(4431),a=i(1706),h=i(6881),l=i(7449),c=i(5071),u=i(7652);class d{constructor(){this._targets=[],this._observer=new ResizeObserver((t=>{c.each(t,(t=>{c.each(this._targets,(e=>{e.target===t.target&&e.callback()}))}))}))}addTarget(t,e){this._observer.observe(t,{box:"border-box"}),this._targets.push({target:t,callback:e})}removeTarget(t){this._observer.unobserve(t),c.keepIf(this._targets,(e=>e.target!==t))}}class p{constructor(){this._timer=null,this._targets=[]}addTarget(t,e){if(null===this._timer){let t=null;const e=()=>{const i=Date.now();(null===t||i>t+p.delay)&&(t=i,c.each(this._targets,(t=>{let e=t.target.getBoundingClientRect();e.width===t.size.width&&e.height===t.size.height||(t.size=e,t.callback())}))),0===this._targets.length?this._timer=null:this._timer=requestAnimationFrame(e)};this._timer=requestAnimationFrame(e)}this._targets.push({target:t,callback:e,size:{width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0}})}removeTarget(t){c.keepIf(this._targets,(e=>e.target!==t)),0===this._targets.length&&null!==this._timer&&(cancelAnimationFrame(this._timer),this._timer=null)}}p.delay=200;let g=null;class f{constructor(t,e){this._disposed=!1,this._sensor=(null===g&&(g="undefined"!=typeof ResizeObserver?new d:new p),g),this._element=t,this._listener=u.onZoom(e),this._sensor.addTarget(t,e)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}var _=i(9821),m=i(1479),y=i(7142),v=i(2876),w=i(780),b=i(6460),x=i(798),D=i(6331),k=i(256),T=i(3100);class M extends D.JH{_setDefaults(){this.setPrivate("defaultLocale",T.Z),super._setDefaults()}translate(t,e,...i){e||(e=this._root.locale||this.getPrivate("defaultLocale"));let s=t,n=e[t];if(null===n)s="";else if(null!=n)n&&(s=n);else if(e!==this.getPrivate("defaultLocale"))return this.translate(t,this.getPrivate("defaultLocale"),...i);if(i.length)for(let t=i.length,e=0;e{this.setTranslationAny(t,i,e)}))}translateEmpty(t,e,...i){let s=this.translate(t,e,...i);return s==t?"":s}translateFunc(t,e){return this._root.locale[t]?this._root.locale[t]:e!==this.getPrivate("defaultLocale")?this.translateFunc(t,this.getPrivate("defaultLocale")):()=>""}translateAll(t,e){return this.isDefault()?t:c.map(t,(t=>this.translate(t,e)))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}var E=i(9770),O=i(3783),P=i(4102),S=i(6245),N=i(1112),C=i(2132),L=i(3145),A=i(3540),R=i(5040),U=i(9395);function B(t,e){null==t?requestAnimationFrame(e):setTimeout((()=>{requestAnimationFrame(e)}),1e3/t)}class F{constructor(t,e={},i){if(this._isDirty=!1,this._isDirtyParents=!1,this._isDirtyAnimation=!1,this._dirty={},this._dirtyParents={},this._dirtyBounds={},this._dirtyPositions={},this._ticker=null,this._tickers=[],this._updateTick=!0,this.skipRenderFrame=!1,this.events=new E.p,this.animationTime=null,this._animations=[],this.language=M.new(this,{}),this.locale=T.Z,this.utc=!1,this.numberFormatter=w.e.new(this,{}),this.dateFormatter=b.C.new(this,{}),this.durationFormatter=x.$.new(this,{}),this.tabindex=0,this._tabindexes=[],this._a11yD=!1,this._focusElementDirty=!1,this._skipNextGroupJump=!0,this.verticalLayout=a.Z.new(this,{}),this.horizontalLayout=o.G.new(this,{}),this.gridLayout=h.M.new(this,{}),this._paused=!1,this.autoResize=!0,this._fontHash="",this._isDisposed=!1,this._disposers=[],this._tooltips=[],this._htmlEnabledContainers=[],this.entitiesById={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");let s,n;if(this._settings=e,0==e.accessible&&(this._a11yD=!0),null==e.useSafeResolution&&(e.useSafeResolution=!0),e.useSafeResolution&&(s=u.getSafeResolution()),this._renderer=new P.uK(s),n=t instanceof HTMLElement?t:document.getElementById(t),c.each(L.i_.rootElements,(t=>{if(t.dom===n){if(!L.i_.autoDispose)throw new Error("You cannot have multiple Roots on the same DOM node");t.dispose()}})),this.interfaceColors=_.v.new(this,{}),null===n)throw new Error("Could not find HTML element with id `"+t+"`");this.dom=n;let r=document.createElement("div");r.style.position="relative",r.style.width="100%",r.style.height="100%",n.appendChild(r);const l=e.tooltipContainerBounds;l&&(this._tooltipContainerSettings=l),this._inner=r,this._updateComputedStyles(),L.i_.rootElements.push(this)}static new(t,e){const i=new F(t,e,!0);return i._init(),i}moveDOM(t){let e;if(e=t instanceof HTMLElement?t:document.getElementById(t),e){for(;this.dom.childNodes.length>0;)e.appendChild(this.dom.childNodes[0]);this.dom=e,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const t=this.dom.offsetWidth,e=this.dom.offsetHeight;t<=150||e<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const t=this.tooltipContainer.children.push(n.W.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:(0,S.aQ)(100),centerY:S.AQ,tooltipY:10,tooltipText:"Created using amCharts 5",tooltipX:S.AQ,cursorOverStyle:"pointer",background:y.A.new(this,{fill:(0,N.$_)(4671320),fillOpacity:0,tooltipY:5})}));t.set("tooltip",this.systemTooltip),t.events.on("click",(()=>{window.open("https://www.amcharts.com/","_blank")})),t.states.create("hover",{});const e=t.children.push(m.T.new(this,{stroke:(0,N.$_)(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6",dx:-50,strokeOpacity:0}));e.states.create("hover",{stroke:(0,N.$_)(3976191)});const i=t.children.push(m.T.new(this,{stroke:(0,N.$_)(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0",dx:50,strokeOpacity:0})),s=U.out(U.cubic),r=1500;t.setTimeout((()=>{i.animate({key:"strokeOpacity",to:1,duration:r,easing:s}),i.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"strokeOpacity",to:1,duration:r,easing:s})}),3e3),i.states.create("hover",{stroke:(0,N.$_)(4671320)}),this._logo=t,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(t){return this._settings.calculateSize?this._settings.calculateSize(t):{width:t.width,height:t.height}}_init(){const t=this._settings;!1!==t.accessible&&(t.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),t.ariaLabel&&this._inner.setAttribute("aria-label",t.ariaLabel),t.role&&this._inner.setAttribute("role",t.role));const e=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),r=Math.floor(s.width),o=Math.floor(s.height),a=Math.floor(i.width),h=Math.floor(i.height),l=n.W.new(this,{visible:!0,width:r,height:o});this._rootContainer=l,this._rootContainer._defaultThemes.push(O.X.new(this));const c=l.children.push(n.W.new(this,{visible:!0,width:S.AQ,height:S.AQ}));this.container=c,e.resize(a,h,r,o),this._inner.appendChild(e.view),this._initResizeSensor();const d=document.createElement("div");if(this._htmlElementContainer=d,d.className="am5-html-container",d.style.position="absolute",d.style.pointerEvents="none",this._tooltipContainerSettings||(d.style.overflow="hidden"),this._inner.appendChild(d),!0!==this._a11yD){const t=document.createElement("div");t.className="am5-reader-container",t.setAttribute("role","alert"),t.style.position="absolute",t.style.width="1px",t.style.height="1px",t.style.overflow="hidden",t.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=t,this._inner.appendChild(this._readerAlertElement);const i=document.createElement("div");i.className="am5-focus-container",i.style.position="absolute",i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.width=r+"px",i.style.height=o+"px",i.setAttribute("role","graphics-document"),u.setInteractive(i,!1),this._focusElementContainer=i,this._inner.appendChild(this._focusElementContainer);const s=document.createElement("div");this._tooltipElementContainer=s,s.className="am5-tooltip-container",this._inner.appendChild(s),u.supports("keyboardevents")&&(this._disposers.push(u.addEventListener(window,"keydown",(t=>{const e=u.getEventKey(t);"Shift"==e?this._isShift=!0:"Tab"==e&&(this._isShift=t.shiftKey)}))),this._disposers.push(u.addEventListener(window,"keyup",(t=>{"Shift"==u.getEventKey(t)&&(this._isShift=!1)}))),this._disposers.push(u.addEventListener(i,"click",(()=>{const t=this._focusedSprite;if(t){const i=t.get("clickAnnounceText","");""!==i&&this.readerAlert(i);const s=e.getEvent(new MouseEvent("click"));t.events.dispatch("click",{type:"click",originalEvent:s.event,point:s.point,simulated:!0,target:t})}}))),this._disposers.push(u.addEventListener(i,"keydown",(t=>{const i=this._focusedSprite;if(i){"Escape"==t.key&&(u.blur(),this._focusedSprite=void 0);let s=0,n=0;const r=u.getEventKey(t);switch(r){case"Enter":case" ":const o=i.get("clickAnnounceText","");if(""!==o&&this.readerAlert(o)," "==r&&"checkbox"!=i.get("role"))return;t.preventDefault();const a=e.getEvent(new MouseEvent("mouse"));return void i.events.dispatch("click",{type:"click",originalEvent:a.event,point:a.point,simulated:!0,target:i});case"ArrowLeft":s=-6;break;case"ArrowRight":s=6;break;case"ArrowUp":n=-6;break;case"ArrowDown":n=6;break;default:return}if(0!=s||0!=n){if(t.preventDefault(),!i.isDragging()){this._keyboardDragPoint={x:0,y:0};const t=e.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));t.point={x:0,y:0},i.events.isEnabled("pointerdown")&&i.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:t.event,point:t.point,simulated:!0,target:i})}const r=this._keyboardDragPoint;r.x+=s,r.y+=n;const o=e.getEvent(new MouseEvent("mousemove",{clientX:r.x,clientY:r.y}),!1);i.events.isEnabled("globalpointermove")&&i.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:o.event,point:o.point,simulated:!0,target:i})}}}))),this._disposers.push(u.addEventListener(i,"keyup",(t=>{if(this._focusedSprite){const i=this._focusedSprite,s=u.getEventKey(t);switch(s){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(i.isDragging()){const t=this._keyboardDragPoint,s=e.getEvent(new MouseEvent("mouseup",{clientX:t.x,clientY:t.y}));return i.events.isEnabled("globalpointerup")&&i.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:s.event,point:s.point,simulated:!0,target:i}),void(this._keyboardDragPoint=void 0)}if(i.get("focusableGroup")){const t=i.get("focusableGroup"),e=this._tabindexes.filter((e=>!(e.get("focusableGroup")!=t||!1===e.getPrivate("focusable")||!e.isVisibleDeep())));let n=e.indexOf(i);const r=e.length-1;n+="ArrowRight"==s||"ArrowDown"==s?1:-1,n<0?n=r:n>r&&(n=0),u.focus(e[n].getPrivate("focusElement").dom)}break;case"Tab":const t=i.get("focusableGroup");if(t&&this._isShift)return void(this._skipNextGroupJump||(this._focusNext(i.getPrivate("focusElement").dom,-1,t),this._skipNextGroupJump=!0))}}}))))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}get systemTooltip(){if(!this._systemTooltip){const t=v.u.new(this,{themeTags:["system"]});this._systemTooltip=t}return this._systemTooltip}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new f(this.dom,(()=>{this.autoResize&&this.resize()})),this._disposers.push(this._resizeSensorDisposer)}resize(){const t=this._getRealSize(),e=this._getCalculatedSize(t),i=Math.floor(e.width),s=Math.floor(e.height);if(i>0&&s>0){const e=Math.floor(t.width),n=Math.floor(t.height),r=this._htmlElementContainer;if(r.style.width=i+"px",r.style.height=s+"px",!0!==this._a11yD){const t=this._focusElementContainer;t.style.width=i+"px",t.style.height=s+"px"}this._renderer.resize(e,n,i,s);const o=this._rootContainer;o.setPrivate("width",i),o.setPrivate("height",s),this._render(),this._handleLogo()}}_render(){this.skipRenderFrame?this.skipRenderFrame=!1:(this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1))}_runTickers(t){c.each(this._tickers,(e=>{e(t)}))}_runAnimations(t){let e=0;return c.keepIf(this._animations,(i=>{const n=i._runAnimation(t);return n!==s.SR.Stopped&&(n!==s.SR.Playing||(++e,!0))})),this._isDirtyAnimation=!1,0===e}_runDirties(){let t={};for(;this._isDirtyParents;)this._isDirtyParents=!1,k.entries(this._dirtyParents).forEach((([e,i])=>{delete this._dirtyParents[e],i.isDisposed()||(t[i.uid]=i,i._prepareChildren())}));k.entries(t).forEach((([t,e])=>{e._updateChildren()}));const e=[];k.entries(this._dirty).forEach((([t,i])=>{i.isDisposed()?delete this._dirty[t]:(e.push(i),i._beforeChanged())})),e.forEach((t=>{t._changed(),delete this._dirty[t.uid],t._clearDirty()})),this._isDirty=!1;const i={},s=[];k.entries(this._dirtyBounds).forEach((([t,e])=>{delete this._dirtyBounds[t],e.isDisposed()||(i[e.uid]=e.depth(),s.push(e))})),this._positionHTMLElements(),s.sort(((t,e)=>A.qu(i[e.uid],i[t.uid]))),s.forEach((t=>{t._updateBounds()}));const n=this._dirtyPositions;k.entries(n).forEach((([t,e])=>{delete n[t],e.isDisposed()||e._updatePosition()})),e.forEach((t=>{t._afterChanged()})),k.entries(t).forEach((([t,e])=>{e._childrenPrep=!1,e._childrenUpdt=!1}))}_renderFrame(t){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:t}),this._checkComputedStyles(),this._runTickers(t);const e=this._runAnimations(t);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:t}),0===this._tickers.length&&e&&!this._isDirtyAnimation&&!this._isDirty}return!0}_runTicker(t,e){this.isDisposed()||(this.animationTime=t,this._renderFrame(t)?(this._ticker=null,this.animationTime=null):this._paused||(e?this._ticker:B(this.fps,this._ticker)))}_runTickerNow(t=1e4){if(!this.isDisposed()){const e=performance.now()+t;for(;;){const t=performance.now();if(t>=e){this.animationTime=null;break}if(this.animationTime=t,this._renderFrame(t)){this.animationTime=null;break}}}}_startTicker(){null===this._ticker&&(this.animationTime=null,this._ticker=t=>{this._runTicker(t)},B(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(t){this._updateTick=t,t&&this._startTicker()}_addDirtyEntity(t){this._isDirty=!0,void 0===this._dirty[t.uid]&&(this._dirty[t.uid]=t),this._startTicker()}_addDirtyParent(t){this._isDirty=!0,this._isDirtyParents=!0,void 0===this._dirtyParents[t.uid]&&(this._dirtyParents[t.uid]=t),this._startTicker()}_addDirtyBounds(t){this._isDirty=!0,void 0===this._dirtyBounds[t.uid]&&(this._dirtyBounds[t.uid]=t),this._startTicker()}_addDirtyPosition(t){this._isDirty=!0,void 0===this._dirtyPositions[t.uid]&&(this._dirtyPositions[t.uid]=t),this._startTicker()}_addAnimation(t){this._isDirtyAnimation=!0,-1===this._animations.indexOf(t)&&this._animations.push(t),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",(()=>{this._isDirty=!0,this._startTicker()}))}eachFrame(t){return this._tickers.push(t),this._startTicker(),new l.ku((()=>{c.removeFirst(this._tickers,t)}))}markDirtyGlobal(t){t||(t=this.container),t.walkChildren((t=>{t instanceof n.W&&this.markDirtyGlobal(t),t.markDirty(),t.markDirtyBounds()}))}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),c.each(this._disposers,(t=>{t.dispose()})),this._inner&&u.removeElement(this._inner),c.remove(L.i_.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(t){if(!0!==this._a11yD){const e=this._readerAlertElement;t=u.stripTags(t),e.innerHTML==t&&(e.innerHTML=""),e.innerHTML=t}}setThemes(t){this._rootContainer.set("themes",t);const e=this.tooltipContainer;e&&e._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const t=this._tooltipContainerSettings,e=this._rootContainer.children.push(n.W.new(this,{position:"absolute",isMeasured:!1,width:S.AQ,height:S.AQ,layer:t?35:30,layerMargin:t||void 0}));this.tooltipContainer=e;const i=v.u.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(t){1!=this._a11yD&&(t.get("focusable")?c.pushOne(this._tabindexes,t):c.remove(this._tabindexes,t),this._invalidateTabindexes())}_unregisterTabindexOrder(t){1!=this._a11yD&&(c.remove(this._tabindexes,t),this._invalidateTabindexes())}_invalidateTabindexes(){if(1==this._a11yD)return;this._tabindexes.sort(((t,e)=>{const i=t.get("tabindexOrder",0),s=e.get("tabindexOrder",0);return i==s?0:i>s?1:-1}));const t=[];c.each(this._tabindexes,((e,i)=>{e.getPrivate("focusElement")?this._moveFocusElement(i,e):this._makeFocusElement(i,e);const s=e.get("focusableGroup");s&&!1!==e.getPrivate("focusable")&&(-1!==t.indexOf(s)?e.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):t.push(s))}))}_updateCurrentFocus(){1!=this._a11yD&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(t,e){if(1==this._a11yD)return;if(e||(e=t.getPrivate("focusElement").dom),!e)return;const i=t.get("role");i?e.setAttribute("role",i):e.removeAttribute("role");const s=t.get("ariaLabel");if(s){const i=(0,C.q)(t,s);e.setAttribute("aria-label",i)}else e.removeAttribute("aria-label");const n=t.get("ariaLive");n?e.setAttribute("aria-live",n):e.removeAttribute("aria-live");const r=t.get("ariaChecked");null!=r&&i&&-1!==["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)?e.setAttribute("aria-checked",r?"true":"false"):e.removeAttribute("aria-checked");const o=t.get("ariaCurrent");null!=o?e.setAttribute("aria-current",o):e.removeAttribute("aria-current");const a=t.get("ariaSelected");null!=a&&i&&-1!==["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)?e.setAttribute("aria-selected",a?"true":"false"):e.removeAttribute("aria-selected"),t.get("ariaHidden")?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden");const h=t.get("ariaOrientation");h?e.setAttribute("aria-orientation",h):e.removeAttribute("aria-orientation");const l=t.get("ariaValueNow");l?e.setAttribute("aria-valuenow",l):e.removeAttribute("aria-valuenow");const c=t.get("ariaValueMin");c?e.setAttribute("aria-valuemin",c):e.removeAttribute("aria-valuemin");const u=t.get("ariaValueMax");u?e.setAttribute("aria-valuemax",u):e.removeAttribute("aria-valuemax");const d=t.get("ariaValueText");d?e.setAttribute("aria-valuetext",d):e.removeAttribute("aria-valuetext");const p=t.get("ariaControls");p?e.setAttribute("aria-controls",p):e.removeAttribute("aria-controls"),t.get("visible")&&0!==t.get("opacity")&&"tooltip"!=t.get("role")&&!t.isHidden()&&!1!==t.getPrivate("focusable")&&(t.height()||t.width())?("-1"!=e.getAttribute("tabindex")&&e.setAttribute("tabindex",""+this.tabindex),e.removeAttribute("aria-hidden")):(e.removeAttribute("tabindex"),e.setAttribute("aria-hidden","true"))}_makeFocusElement(t,e){if(e.getPrivate("focusElement")||1==this._a11yD)return;const i=document.createElement("div");"tooltip"!=e.get("role")&&(i.tabIndex=this.tabindex),i.style.position="absolute",u.setInteractive(i,!1);const s=[];e.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(e),s.push(u.addEventListener(i,"focus",(t=>{this._handleFocus(t)}))),s.push(u.addEventListener(i,"blur",(t=>{this._handleBlur(t)}))),this._moveFocusElement(t,e)}_removeFocusElement(t){if(1==this._a11yD)return;c.remove(this._tabindexes,t);const e=t.getPrivate("focusElement");e&&(this._focusElementContainer.removeChild(e.dom),c.each(e.disposers,(t=>{t.dispose()})))}_hideFocusElement(t){1!=this._a11yD&&(t.getPrivate("focusElement").dom.style.display="none")}_moveFocusElement(t,e){if(1==this._a11yD)return;const i=this._focusElementContainer,s=e.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[t])return;const n=this._focusElementContainer.children[t+1];n?i.insertBefore(s,n):i.append(s)}_positionFocusElement(t){if(1==this._a11yD||null==t)return;this._focusElementContainer.scrollTop=0;const e=t.globalBounds();let i=e.right==e.left?t.width():e.right-e.left,s=e.top==e.bottom?t.height():e.bottom-e.top;const n=void 0!==this._settings.focusPadding?this._settings.focusPadding:2;let r=e.left-n,o=e.top-n;i<0&&(r+=i,i=Math.abs(i)),s<0&&(o+=s,s=Math.abs(s));const a=t.getPrivate("focusElement").dom;a.style.top=o+"px",a.style.left=r+"px",a.style.width=i+2*n+"px",a.style.height=s+2*n+"px"}_getSpriteByFocusElement(t){let e;return c.eachContinue(this._tabindexes,((i,s)=>i.getPrivate("focusElement").dom!==t||(e=i,!1))),e}_handleFocus(t){if(1==this._a11yD)return;const e=this._getSpriteByFocusElement(t.target);e&&(e.isVisibleDeep()?(this._positionFocusElement(e),this._focusedSprite=e,e.events.isEnabled("focus")&&e.events.dispatch("focus",{type:"focus",originalEvent:t,target:e}),-1==e.getPrivate("focusElement").dom.tabIndex&&(this._skipNextGroupJump=!1)):this._focusNext(t.target,this._isShift?-1:1))}_focusNext(t,e,i){if(1==this._a11yD)return;const s=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(",")));let n=s.indexOf(t)+e;n<0?n=s.length-1:n>=s.length&&(n=0);const r=s[n];if(i&&-1==e){const t=this._getSpriteByFocusElement(r);if(t&&t.get("focusableGroup")==i)return void this._focusNext(r,e)}r.focus()}_handleBlur(t){if(1==this._a11yD)return;const e=this._focusedSprite;e&&!e.isDisposed()&&e.events.isEnabled("blur")&&e.events.dispatch("blur",{type:"blur",originalEvent:t,target:e}),this._focusedSprite=void 0}updateTooltip(t){if(1==this._a11yD)return;const e=u.stripTags(t._getText());let i=t.getPrivate("tooltipElement");"tooltip"==t.get("role")&&""!=e?(i||(i=this._makeTooltipElement(t)),i.innerHTML!=e&&(i.innerHTML=e),i.setAttribute("aria-hidden",t.isVisibleDeep()?"false":"true")):i&&(i.remove(),t.removePrivate("tooltipElement"))}_makeTooltipElement(t){const e=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",u.setInteractive(i,!1),this._decorateFocusElement(t,i),e.append(i),t.setPrivate("tooltipElement",i),i}_removeTooltipElement(t){if(1==this._a11yD)return;const e=t.getPrivate("tooltipElement");if(e){const t=e.parentElement;t&&t.removeChild(e)}}_invalidateAccessibility(t){if(1==this._a11yD)return;this._focusElementDirty=!0;const e=t.getPrivate("focusElement");t.get("focusable")?e&&(this._decorateFocusElement(t),this._positionFocusElement(t)):e&&this._removeFocusElement(t)}focused(t){return this._focusedSprite===t}documentPointToRoot(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:(t.x-e.left)*s,y:(t.y-e.top)*n}}rootPointToDocument(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:t.x/s+e.left,y:t.y/n+e.top}}addDisposer(t){return this._disposers.push(t),t}_updateComputedStyles(){const t=window.getComputedStyle(this.dom);let e="";k.each(t,((t,i)=>{R.isString(t)&&t.match(/^font/)&&(e+=i)}));const i=e!=this._fontHash;return i&&(this._fontHash=e),i}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(t){t instanceof n.W?t.children.each((t=>{this._invalidateLabelBounds(t)})):t instanceof r.x&&t.markDirtyBounds()}_hasLicense(){for(let t=0;t{if(t.get("verticalScrollbar"))return r=!0,s=t,!1})),r&&(n=document.createElement("div"),t.setPrivate("htmlElementWrapper",n),t.setPrivate("wrapperContainer",s),n.style.position="absolute",n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",s.events.on("boundschanged",(()=>{this._positionHTMLElement(t)}))),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",u.setInteractive(i,t.get("interactive",!1)),t.events.isEnabled("click")&&(u.setInteractive(i,!0),this._disposers.push(u.addEventListener(i,"click",(e=>{const i=this._renderer.getEvent(e);t.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))),this._positionHTMLElement(t),r?(n.append(i),e.append(n)):e.append(i),c.pushOne(this._htmlEnabledContainers,t),i}_positionHTMLElements(){c.each(this._htmlEnabledContainers,(t=>{this._positionHTMLElement(t)}))}_positionHTMLElement(t){const e=t.getPrivate("htmlElementWrapper");if(e){const i=t.getPrivate("wrapperContainer");if(i){const t=i.globalBounds();e.style.clipPath="rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"}}const i=t.getPrivate("htmlElement");if(i){const e=["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"];c.each(e,(e=>{const s=t.get(e);i.style[e]=s?s+"px":""}));const s=["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"];c.each(s,(e=>{const s=t.get(e);s?"fontSize"!=e||R.isString(s)?i.style[e]=s+"":i.style[e]=s+"px":i.style[e]=""}));const n=t.compositeScale()||1,r=t.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";const o=t.compositeOpacity();setTimeout((()=>{i.style.opacity=o+""}),10);const a=t.isVisibleDeep();a&&(i.style.display="block");let h={x:t.x()+t.get("dx",0),y:t.y()+t.get("dy",0)};t.parent&&(h=t.parent.toGlobal(h)),i.style.top=h.y+"px",i.style.left=h.x+"px";const l=t.get("width"),u=t.get("height");let d=0,p=0;if(l&&(d=t.width()),u&&(p=t.height()),!l||!u){i.style.position="fixed",i.style.width="",i.style.height="";const e=i.getBoundingClientRect();i.style.position="absolute",l||(d=e.width),u||(p=e.height);let s=d/n,r=p/n,o=t.get("centerX",0),a=t.get("centerY",0),h=0,c=0,g=0,f=0;o instanceof S.gG?(h=-o.value*s,c=(1-o.value)*s):(h=-o,c=s-o),a instanceof S.gG?(g=-a.value*r,f=(1-a.value)*r):(g=-a,f=r-a),t._localBounds={left:h,right:c,top:g,bottom:f};let _=t._adjustedLocalBounds,m=t._display.getAdjustedBounds(t._localBounds);t._adjustedLocalBounds=m,_.left===m.left&&_.right===m.right&&_.top===m.top&&_.bottom===m.bottom||t.markDirtyBounds()}d>0&&(i.style.minWidth=d+"px"),p>0&&(i.style.minHeight=p+"px"),a&&0!=o||(i.style.display="none");const g=t.get("centerX",0),f=(0,S.hU)(g)?g.percent+"%":g+"px",_=t.get("centerY",0),m=(0,S.hU)(_)?_.percent+"%":_+"px";(g||_)&&(i.style.transform="translate(-"+f+", -"+m+")"+i.style.transform),1!=n&&(i.style.transform+="scale("+n+")"),0!=r&&(i.style.transform+=" rotate("+r+"deg)"),""!=i.style.transform&&(i.style.transformOrigin=f+" "+m)}}_setHTMLContent(t,e){let i=t.getPrivate("htmlElement");i||(i=this._makeHTMLElement(t),this.autoResize||this.resize()),i.innerHTML!=e&&(i.innerHTML=e)}_removeHTMLContent(t){const e=t.getPrivate("htmlElementWrapper"),i=t.getPrivate("htmlElement");e?(this._htmlElementContainer.removeChild(e),t.removePrivate("htmlElement"),t.removePrivate("htmlElementWrapper"),t.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),t.removePrivate("htmlElement"),t.removePrivate("wrapperContainer")),c.remove(this._htmlEnabledContainers,t)}}},3409:function(t,e,i){"use strict";i.d(e,{Q:function(){return o}});var s=i(5769),n=i(3540),r=i(5071);class o{constructor(t,e){if(this._rules={},this._root=t,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(t){const e=new this(t,!0);return e.setupDefaultRules(),e}setupDefaultRules(){}_lookupRules(t){return this._rules[t]}ruleRaw(t,e=[]){let i=this._rules[t];i||(i=this._rules[t]=[]),e.sort(n.qu);const{index:o,found:a}=r.getSortedIndex(i,(t=>{const i=n.qu(t.tags.length,e.length);return 0===i?n.wq(t.tags,e,n.qu):i}));if(a)return i[o].template;{const t=s.YS.new({});return i.splice(o,0,{tags:e,template:t}),t}}rule(t,e=[]){return this.ruleRaw(t,e)}}},5108:function(t,e,i){"use strict";i.d(e,{g:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){const t=this.get("sprite");t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}}n.className="Bullet",n.classNames=s.JH.classNames.concat([n.className])},8054:function(t,e,i){"use strict";i.d(e,{z:function(){return o}});var s=i(3497),n=i(8777),r=i(7652);class o extends n.W{_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",s.c.new(this._root,{themeTags:r.mergeTags(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const t=this._prevSettings.icon,e=this.get("icon");e!==t&&(this._disposeProperty("icon"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.icon=e)}if(this.isDirty("label")){const t=this._prevSettings.label,e=this.get("label");e!==t&&(this._disposeProperty("label"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.label=e)}}}o.className="Button",o.classNames=n.W.classNames.concat([o.className])},1337:function(t,e,i){"use strict";i.d(e,{k:function(){return r}});var s=i(8777),n=i(6245);class r extends s.W{constructor(){super(...arguments),this.chartContainer=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,interactiveChildren:!1})),this.bulletsContainer=s.W.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:n.AQ,height:n.AQ})}}r.className="Chart",r.classNames=s.W.classNames.concat([r.className])},8035:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,Math.abs(this.get("radius",10)))}}n.className="Circle",n.classNames=s.T.classNames.concat([n.className])},9361:function(t,e,i){"use strict";i.d(e,{w:function(){return c},z:function(){return l}});var s=i(7582),n=i(6331),r=i(8777),o=i(9582),a=i(5071),h=i(256);class l extends n.Zr{constructor(t,e,i){super(i),this.dataContext=e,this.component=t,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(t){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,t)}hide(t){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,t)}isHidden(){return!this.get("visible")}}class c extends r.W{constructor(){super(...arguments),this._data=new o.k,this._dataItems=[],this._mainDataItems=this._dataItems,this.valueFields=[],this.fields=["id"],this._valuesDirty=!1,this._dataChanged=!1,this._dataGrouped=!1,this.inited=!1}set data(t){t.incrementRef(),this._data.decrementRef(),this._data=t}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((t=>{const e=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===t.type)a.each(e,(t=>{t.dispose()})),e.length=0,this._onDataClear();else if("push"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.push(i),this.processDataItem(i)}else if("setIndex"===t.type){const i=e[t.index],s=this._makeDataItem(t.newValue);i.bullets&&0==i.bullets.length&&(i.bullets=void 0),h.entries(s).forEach((([t,e])=>{i.get(t)!=e&&i.animate({key:t,to:e,duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})})),i.dataContext=t.newValue}else if("insertIndex"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.splice(t.index,0,i),this.processDataItem(i)}else if("removeIndex"===t.type)e[t.index].dispose(),e.splice(t.index,1);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");{const i=e[t.oldIndex];e.splice(t.oldIndex,1),e.splice(t.newIndex,0,i)}}this._afterDataChange()})))}_postUpdateData(){}updateData(t){let e=0;a.each(t,((t,i)=>{const s=this.dataItems[i];if(s){const e=s.dataContext;e&&h.entries(t).forEach((([t,i])=>{e[t]=i}));const i=this._makeDataItem(e);h.entries(i).forEach((([t,e])=>{var i;if(s.get(t)!=e){s.set(t,e);const n=null===(i=this._valueFieldsF[t])||void 0===i?void 0:i.workingKey;n&&s.set(n,e)}}))}else this.data.push(t);e=i}));for(let t=this.dataItems.length-1;t>e;t--){const e=this.dataItems[t];a.remove(this.dataItems,e),e.dispose()}this._postUpdateData()}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},a.each(this.valueFields,(t=>{this.get(t+"Field")&&(this._valueFields.push(t),this._valueFieldsF[t]={fieldKey:t+"Field",workingKey:t+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},a.each(this.fields,(t=>{this.get(t+"Field")&&(this._fields.push(t),this._fieldsF[t]=t+"Field")})))}get dataItems(){return this._dataItems}processDataItem(t){}_makeDataItem(t){const e={};return this._valueFields&&a.each(this._valueFields,(i=>{const s=this.get(this._valueFieldsF[i].fieldKey);e[i]=t[s],e[this._valueFieldsF[i].workingKey]=e[i]})),this._fields&&a.each(this._fields,(i=>{const s=this.get(this._fieldsF[i]);e[i]=t[s]})),e}makeDataItem(t,e){let i=new l(this,e,t);return this.processDataItem(i),i}pushDataItem(t,e){const i=this.makeDataItem(t,e);return this._mainDataItems.push(i),i}disposeDataItem(t){}showDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!0)}))}hideDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const t="datavalidated";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this._dataChanged=!1}if(this._valuesDirty){const t="valueschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.inited=!0}markDirtyValues(t){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}getDataItemById(t){return a.find(this.dataItems,(e=>e.get("id")==t))}}c.className="Component",c.classNames=r.W.classNames.concat([c.className])},2936:function(t,e,i){"use strict";i.d(e,{p:function(){return r}});var s=i(8054),n=i(7652);class r extends s.z{_afterNew(){super._afterNew(),this.addTag("confirm"),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{const e=n.getEventKey(t);this.get("active")&&"Escape"==e&&this._cancel()}))),this._disposers.push(n.addEventListener(document,"click",(()=>{this._ignoreClick||this._cancel(),this._ignoreClick=!1}))),this.events.on("click",(()=>{this.get("active")||(this._ignoreClick=!0),this._confirm()}))}_cancel(){this.get("active")&&(this.events.dispatch("cancelled",{type:"cancelled",target:this}),this.set("active",!1))}_confirm(){this.get("active")&&(this.events.dispatch("confirmed",{type:"confirmed",target:this}),this.set("active",!1),this.isFocus()&&this.setTimeout((()=>{this.set("active",!1),n.blur()}),10))}_prepareChildren(){super._prepareChildren()}}r.className="ConfirmButton",r.classNames=s.z.classNames.concat([r.className])},8777:function(t,e,i){"use strict";i.d(e,{W:function(){return f}});var s=i(7144),n=i(5071);class r extends s.aV{constructor(t){super(),this._disposed=!1,this._container=t,this._events=this.events.onAll((t=>{if("clear"===t.type)n.each(t.oldValues,(t=>{this._onRemoved(t)}));else if("push"===t.type)this._onInserted(t.newValue);else if("setIndex"===t.type)this._onRemoved(t.oldValue),this._onInserted(t.newValue,t.index);else if("insertIndex"===t.type)this._onInserted(t.newValue,t.index);else if("removeIndex"===t.type)this._onRemoved(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");this._onRemoved(t.value),this._onInserted(t.value,t.newIndex)}}))}_onInserted(t,e){t._setParent(this._container,!0);const i=this._container._childrenDisplay;void 0===e?i.addChild(t._display):i.addChildAt(t._display,e)}_onRemoved(t){this._container._childrenDisplay.removeChild(t._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),n.each(this.values,(t=>{t.dispose()})))}}var o=i(6245),a=i(4596),h=i(7142),l=i(4431),c=i(1706),u=i(6881),d=i(2132),p=i(5040),g=i(7652);class f extends a.j{constructor(){super(...arguments),this._display=this._root._renderer.makeContainer(),this._childrenDisplay=this._root._renderer.makeContainer(),this.children=new r(this),this._percentageSizeChildren=[],this._percentagePositionChildren=[],this._prevWidth=0,this._prevHeight=0,this._contentWidth=0,this._contentHeight=0,this._childrenPrep=!1,this._childrenUpdt=!1}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){n.eachReverse(this.allChildren(),(t=>{t.dispose()})),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_beforeChanged(){this._childrenPrep||this._prepareChildren(),this._childrenUpdt||this._updateChildren(),super._beforeChanged()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each((t=>{t.removePrivate("x"),t.removePrivate("y")}))),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each((t=>{t.markDirtyPosition()})),this.isDirty("maskContent")){const t=this._childrenDisplay;let e=this._contentMask;this.get("maskContent")?e||(e=h.A.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=e,t.addChildAt(e._display,0),t.mask=e._display):e&&(t.removeChild(e._display),t.mask=null,e.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),n.each(this._percentageSizeChildren,(t=>{t._updateSize()})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t._updateSize()})),this.updateBackground()}updateBackground(){const t=this.get("background");let e=this._localBounds;if(e&&!this.isHidden()){let i=e.left,s=e.top,n=e.right-i,r=e.bottom-s,o=this.get("maxWidth"),a=this.get("maxHeight");a&&r>a&&(r=a),o&&n>o&&(n=o);let h=this.width(),l=this.height();t&&(t.setAll({width:n,height:r,x:i,y:s}),this._display.interactive&&(t._display.interactive=!0));const c=this._contentMask;c&&c.setAll({width:h+1,height:l+1});const u=this.get("verticalScrollbar");if(u){u.set("height",l),u.set("x",h-u.width()-u.get("marginRight",0)),u.set("end",u.get("start",0)+l/this._contentHeight);const t=u.get("background");t&&t.setAll({width:u.width(),height:l});let e=!0;this._contentHeight<=l&&(e=!1),u.setPrivate("visible",e)}}}_applyThemes(t=!1){return!!super._applyThemes(t)&&(this.eachChildren((e=>{e._applyThemes(t)})),!0)}_applyState(t){super._applyState(t),this.get("setStateOnChildren")&&this.eachChildren((e=>{e.states.apply(t)}))}_applyStateAnimated(t,e){super._applyStateAnimated(t,e),this.get("setStateOnChildren")&&this.eachChildren((i=>{i.states.applyAnimate(t,e)}))}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let t=this._localBounds;t&&(this._contentWidth=t.right-t.left,this._contentHeight=t.bottom-t.top)}else{let t=this.get("width"),e=this.get("height"),i=this.getPrivate("width"),s=this.getPrivate("height"),n={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),o=!1,a=!1;if((r instanceof l.G||r instanceof u.M)&&(o=!0),r instanceof c.Z&&(a=!0),null==t&&null==i||null==e&&null==s||this.get("verticalScrollbar")){let t=Number.MAX_VALUE,e=t,i=-t,s=t,r=-t;const h=this.get("paddingLeft",0),l=this.get("paddingTop",0),c=this.get("paddingRight",0),u=this.get("paddingBottom",0);this.children.each((t=>{if("absolute"!=t.get("position")&&t.get("isMeasured")){let n=t.adjustedLocalBounds(),h=t.x(),l=t.y(),c=h+n.left,u=h+n.right,d=l+n.top,p=l+n.bottom;o&&(c-=t.get("marginLeft",0),u+=t.get("marginRight",0)),a&&(d-=t.get("marginTop",0),p+=t.get("marginBottom",0)),ci&&(i=u),dr&&(r=p)}})),e==t&&(e=0),i==-t&&(i=0),s==t&&(s=0),r==-t&&(r=0),n.left=e-h,n.top=s-l,n.right=i+c,n.bottom=r+u;const d=this.get("minWidth");p.isNumber(d)&&d>0&&n.right-n.left=d?n.left=n.right-d:n.right=n.left+d);const g=this.get("minHeight");p.isNumber(g)&&g>0&&n.bottom-n.top=g?n.top=n.bottom-g:n.bottom=n.top+g)}this._contentWidth=n.right-n.left,this._contentHeight=n.bottom-n.top,p.isNumber(t)&&(n.left=0,n.right=t),p.isNumber(i)&&(n.left=0,n.right=i),p.isNumber(e)&&(n.top=0,n.bottom=e),p.isNumber(s)&&(n.top=0,n.bottom=s),this._localBounds=n}}_updateBounds(){const t=this.get("layout");t&&t.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){this._childrenPrep=!0;const t=this.innerWidth(),e=this.innerHeight();if(t!=this._prevWidth||e!=this._prevHeight){let i=this.get("layout"),s=!1,r=!1;i&&((i instanceof l.G||i instanceof u.M)&&(s=!0),i instanceof c.Z&&(r=!0)),n.each(this._percentageSizeChildren,(i=>{if(!s){let e=i.get("width");e instanceof o.gG&&i.setPrivate("width",e.value*t)}if(!r){let t=i.get("height");t instanceof o.gG&&i.setPrivate("height",t.value*e)}})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t.markDirtyBounds()})),this._prevWidth=t,this._prevHeight=e,this._sizeDirty=!0,this.updateBackground()}}_updateHTMLContent(){const t=this.get("html","");t&&""!==t?this._root._setHTMLContent(this,(0,d.q)(this,t)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(t){const e=this.get("verticalScrollbar");if(e){let i=t.y(),s=this.innerHeight(),n=t.height(),r=this._contentHeight,o=1-(s-n/2)/r;if(i+.7*n+this._childrenDisplay.y>s||i-.3*n+this._childrenDisplay.y<0){let t=Math.max(0,Math.min(o,(i-n/2)/r));e.animate({key:"start",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")})}}}_updateChildren(){if(this._childrenUpdt=!0,this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){const t=this.get("verticalScrollbar");if(t){t._setParent(this),t.startGrip.setPrivate("visible",!1),t.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",t.width()+t.get("marginRight",0)+t.get("marginLeft",0));let e=this.get("background");e||(e=this.set("background",h.A.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",(e=>{const i=e.originalEvent;if(!g.isLocalEvent(i,this))return;i.preventDefault();let s=i.deltaY/5e3;const n=t.get("start",0),r=t.get("end",1);n+s<=0&&(s=-n),r+s>=1&&(s=1-r),n+s>=0&&r+s<=1&&(t.set("start",n+s),t.set("end",r+s))})),this._disposers.push(this._vsbd0),this._vsbd1=t.events.on("rangechanged",(()=>{let e=this._contentHeight;const i=this._childrenDisplay,s=this._contentMask;i.y=-t.get("start",0)*e,i.markDirtyLayer(),s&&(s._display.y=-i.y,i.mask=s._display)})),this._disposers.push(this._vsbd1),this._display.addChild(t._display)}else{const t=this._prevSettings.verticalScrollbar;t&&(this._display.removeChild(t._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose(),this._childrenDisplay.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0))}}if(this.isDirty("background")){const t=this._prevSettings.background;t&&this._display.removeChild(t._display);const e=this.get("background");e instanceof a.j&&(e.set("isMeasured",!1),e._setParent(this),this._display.addChildAt(e._display,0))}if(this.isDirty("mask")){const t=this.get("mask"),e=this._prevSettings.mask;if(e&&(this._display.removeChild(e._display),e!=t&&e.dispose()),t){const e=t.parent;e&&e.children.removeValue(t),t._setParent(this),this._display.addChildAt(t._display,0),this._childrenDisplay.mask=t._display}}}_processTemplateField(){super._processTemplateField(),this.children.each((t=>{t._processTemplateField()}))}walkChildren(t){this.children.each(((e,i)=>{e instanceof f&&e.walkChildren(t),t(e,i)}))}eachChildren(t){const e=this.get("background");e&&t(e);const i=this.get("verticalScrollbar");i&&t(i);const s=this.get("mask");s&&t(s),this.children.values.forEach((e=>{t(e)}))}allChildren(){const t=[];return this.eachChildren((e=>{t.push(e)})),t}_setDataItem(t){const e=t!==this._dataItem;super._setDataItem(t);const i=this.get("html","");i&&""!==i&&e&&this._root._setHTMLContent(this,(0,d.q)(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}}f.className="Container",f.classNames=a.j.classNames.concat([f.className])},6691:function(t,e,i){"use strict";i.d(e,{Y:function(){return d}});var s=i(962),n=i(8777),r=i(3497),o=i(6245),a=i(1112),h=i(7449),l=i(7652),c=i(5040),u=i(5071);class d extends s._{_afterNew(){super._afterNew();const t=this.children.push(n.W.new(this._root,{html:'',isMeasured:!1}));t.hide(),this.setPrivate("input",t);let e=this.get("background");e?e.set("themeTags",["editablelabel","background"]):e=this.set("background",r.c.new(this._root,{themeTags:["editablelabel","background"]}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();const t=this.get("editOn","click");"none"!=t&&(this._editOnEvents=new h.FV([this.getPrivate("input").events.on(t,(t=>{})),this.events.on(t,(t=>{this.set("active",!0)}))]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){const t=this.get("active",!1);t?this._startEditing():this._stopEditing();const e=this.get("background");e&&e.set("active",t)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){const t=this.getPrivate("input");if(t&&t.getPrivate("htmlElement")){const e=t.getPrivate("htmlElement").querySelector(".am5-editable-label");e&&(this.setPrivate("textarea",e),e.addEventListener("input",(t=>{!1===this.get("multiLine")&&(e.value=e.value.replace(/\n/g," ")),this.set("text",e.value),this._syncStyle()})),e.addEventListener("blur",(t=>this.set("active",!1))),l.supports("keyboardevents")&&this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Escape"==l.getEventKey(t)&&this.set("active",!1)}))),this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Enter"==l.getEventKey(t)&&!1===this.get("multiLine")&&(t.preventDefault(),this.set("active",!1))}))),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._startEditing()}));this._text.set("opacity",0);const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(""==this.get("text","")&&this.set("text"," "),t.show(0),this.setTimeout((()=>{this._syncStyle(),e.focus()}),100))}_stopEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._stopEditing()}));const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(this.set("text",e.value),t.hide(0),this._text.set("opacity",1))}_syncStyle(){const t=this.getPrivate("input"),e=this.getPrivate("textarea"),i=t.getPrivate("htmlElement");if(e&&i){const t=window.getComputedStyle(e);u.each(t,(t=>{e.style[t]="initial"})),e.style.color=this.get("fill",(0,a.$_)(0)).toCSS(this.get("fillOpacity",1)),e.style.backgroundColor="rgba(0, 0, 0, 0)",e.style.border="none",e.style.outline="none",e.style.padding="0",e.wrap="off",e.style.resize="none",e.style.overflow="hidden";const s=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);s>0?e.style.maxWidth=s+"px":e.style.minWidth="",e.style.height="auto",e.style.minHeight=e.scrollHeight+"px",this.get("width")&&(e.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",e.style.minWidth="");const n=this.get("lineHeight");n?n instanceof o.gG?e.style.lineHeight=n.value+"":c.isNumber(n)&&(e.style.lineHeight=n+""):e.style.lineHeight="1.2";let r=this.get("fontFamily");r||(r=getComputedStyle(i,"font-family").getPropertyValue("font-family")),e.style.fontFamily=r;let h=this.get("fontSize");h?c.isNumber(h)&&(h+="px"):h=getComputedStyle(i,"font-size").getPropertyValue("font-size"),e.style.fontSize=h;let l=this.get("fontWeight");l||(l=getComputedStyle(i,"font-weight").getPropertyValue("font-weight")),e.style.fontWeight=l;let d=this.get("fontStyle");d||(d=getComputedStyle(i,"font-style").getPropertyValue("font-style")),e.style.fontStyle=d;const p=this.get("oversizedBehavior");e.style.whiteSpace="wrap"==p?"pre-wrap":"nowrap",this._root.events.on("frameended",(()=>{""==e.style.minWidth&&(e.style.minWidth=e.scrollWidth+20+"px");const t=this.get("textAlign","start");"center"==t?(e.style.textAlign="center",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-50%)")):"end"==t?(e.style.textAlign="right",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-100%)")):e.style.textAlign=t}))}}_syncText(){const t=this.getPrivate("textarea");let e=this.get("text","");" "==e&&(e=""),t&&(t.value=e)}}d.className="EditableLabel",d.classNames=s._.classNames.concat([d.className])},2433:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radiusX")||this.isDirty("radiusY")||this.isDirty("rotation"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawEllipse(0,0,Math.abs(this.get("radiusX")),Math.abs(this.get("radiusY")))}}n.className="Ellipse",n.classNames=s.T.classNames.concat([n.className])},1479:function(t,e,i){"use strict";i.d(e,{T:function(){return l},u:function(){return h}});var s=i(4429),n=i(4596),r=i(4680),o=i(5040),a=i(5071);const h=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"];class l extends n.j{constructor(){super(...arguments),this._display=this._root._renderer.makeGraphics(),this._clear=!1}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const t=this.get("fillGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("fill")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("fill")}))))}}if(this.isDirty("strokeGradient")){const t=this.get("strokeGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("stroke")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("stroke")}))))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let t=this.get("strokeDasharray");o.isNumber(t)&&(t=t<.5?[0]:[t]),this._display.setLineDash(t);const e=this.get("strokeDashoffset");e&&this._display.setLineDashOffset(e);const i=this.get("blendMode",r.b.NORMAL);this._display.blendMode=i;const s=this.get("draw");s&&"function"==typeof s&&s(this._display,this);const n=this.get("svgPath");null!=n&&this._display.svgPath(n)}}_afterChanged(){if(super._afterChanged(),this._clear){const t=this.get("fill"),e=this.get("fillGradient"),i=this.get("fillPattern"),n=this.get("fillOpacity"),r=this.get("stroke"),o=this.get("strokeGradient"),h=this.get("strokePattern"),l=this.get("shadowColor"),c=this.get("shadowBlur"),u=this.get("shadowOffsetX"),d=this.get("shadowOffsetY"),p=this.get("shadowOpacity");if(l&&(c||u||d)&&this._display.shadow(l,c,u,d,p),t&&!e&&(this._display.beginFill(t,n),this._display.endFill()),e){if(t){const i=e.get("stops",[]);i.length&&a.each(i,(e=>{e.color&&!e.colorInherited||!t||(e.color=t,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=n,e.opacityInherited=!0)}))}const i=e.getFill(this);i&&(this._display.beginFill(i,n),this._display.endFill())}if(i){const t=i.pattern;t&&(this._display.beginFill(t,n),this._display.endFill(),i instanceof s.v&&i.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}if(r||o||h){const t=this.get("strokeOpacity");let e=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(e/=this.get("scale",1)),this.get("crisp")&&(e/=this._root._renderer.resolution);const i=this.get("lineJoin"),n=this.get("lineCap");if(r&&!o&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke()),o){const s=o.get("stops",[]);s.length&&a.each(s,(e=>{e.color&&!e.colorInherited||!r||(e.color=r,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=t,e.opacityInherited=!0)}));const h=o.getFill(this);h&&(this._display.lineStyle(e,h,t,i,n),this._display.endStroke())}if(h){let r=h.pattern;r&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke(),h instanceof s.v&&h.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}l.className="Graphics",l.classNames=n.j.classNames.concat([l.className])},6881:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var s=i(2010),n=i(5071),r=i(751);class o extends s.A{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(t){let e=t.get("paddingLeft",0),i=t.get("paddingRight",0),n=t.get("paddingTop",0),o=t.maxWidth()-e-i,a=o,h=1;(0,s.j)(t,(t=>{if(t.get("visible")&&t.getPrivate("visible")&&!t.get("forceHidden")&&"absolute"!=t.get("position")){let e=t.width();eh&&(h=e)}})),a=r.fitToRange(a,1,o),h=r.fitToRange(h,1,o);let l=1;l=this.get("fixedWidthGrid")?o/h:o/a,l=Math.max(1,Math.floor(l)),l=Math.min(this.get("maxColumns",Number.MAX_VALUE),l);let c=this.getColumnWidths(t,l,h,o),u=n,d=0,p=0;l=c.length;let g=e;(0,s.j)(t,(t=>{if("relative"==t.get("position")&&t.isVisible()){const i=t.get("marginTop",0),s=t.get("marginBottom",0);let n=t.adjustedLocalBounds(),r=t.get("marginLeft",0),o=t.get("marginRight",0),a=g+r-n.left,h=u+i-n.top;t.setPrivate("x",a),t.setPrivate("y",h),g+=c[d]+o,p=Math.max(p,t.height()+i+s),d++,d>=l&&(d=0,g=e,u+=p,p=0)}}))}getColumnWidths(t,e,i,r){let o=0,a=[],h=0;return(0,s.j)(t,(s=>{let n=s.adjustedLocalBounds();"absolute"!=s.get("position")&&s.isVisible()&&(this.get("fixedWidthGrid")?a[h]=i:a[h]=Math.max(0|a[h],n.right-n.left+s.get("marginLeft",0)+s.get("marginRight",0)),h{o+=t})),o>r?e>2?(e-=1,this.getColumnWidths(t,e,i,r)):[r]:a}}o.className="GridLayout",o.classNames=s.A.classNames.concat([o.className])},4431:function(t,e,i){"use strict";i.d(e,{G:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingLeft",0),i=t.innerWidth(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minWidth",t.getPrivate("minWidth",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.width()),i-=e+t.get("marginLeft",0)+t.get("marginRight",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginLeft",0)-t.get("marginRight",0),n=t.get("minWidth",t.getPrivate("minWidth",-1/0)),r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("width",s)}else t._prevSettings.width instanceof r.gG&&t.setPrivate("width",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginLeft",0),s=t.get("marginRight",0),n=t.get("maxWidth"),r=e.left,o=e.right;n&&o-r>n&&(o=r+n);let h=a+i-r;t.setPrivate("x",h),a=h+o+s}else t.setPrivate("x",void 0)}))}}o.className="HorizontalLayout",o.classNames=s.A.classNames.concat([o.className])},962:function(t,e,i){"use strict";i.d(e,{_:function(){return h}});var s=i(2036),n=i(6245),r=i(8777),o=i(5071),a=i(5040);class h extends r.W{constructor(){super(...arguments),this._textKeys=["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),o.each(this._textKeys,(t=>{const e=this.get(t);null!=e&&this._text.set(t,e)})),""!==this.get("html","")&&this._text.set("text",""),this.onPrivate("maxWidth",(()=>{this._setMaxDimentions()})),this.onPrivate("maxHeight",(()=>{this._setMaxDimentions()}))}_makeText(){this._text=this.children.push(s.x.new(this._root,{}))}_updateChildren(){super._updateChildren();const t=this._text;if(o.each(this._textKeys,(t=>{this._text.set(t,this.get(t))})),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),""!==this.get("html","")?t.set("text",""):(t.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){const e=this.get("textAlign");let i;null!=this.get("width")?i="right"==e?n.AQ:"center"==e?n.CI:0:"left"==e||"start"==e?i=this.get("paddingLeft",0):"right"!=e&&"end"!=e||(i=-this.get("paddingRight",0)),t.set("x",i)}const e=this.get("background");e&&e.setPrivate("visible",t._display.textVisible)}_maybeUpdateHTMLColor(){const t=this.getPrivate("htmlElement");t&&this.get("fill")&&(t.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){const t=this.get("rotation"),e=90==t||270==t||-90==t,i=this._text,s=this.get("maxWidth",this.getPrivate("maxWidth",1/0));a.isNumber(s)?i.set(e?"maxHeight":"maxWidth",s-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(e?"maxHeight":"maxWidth",void 0);const n=this.get("maxHeight",this.getPrivate("maxHeight",1/0));a.isNumber(n)?i.set(e?"maxWidth":"maxHeight",n-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(e?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",(()=>{i.markDirtyBounds()}))}_setDataItem(t){super._setDataItem(t),this._markDirtyKey("text"),this._markDirtyKey("html");const e=this._text;e.get("populateText")&&e.markDirtyText();const i=this.get("html");i&&""!==i&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}}h.className="Label",h.classNames=r.W.classNames.concat([h.className])},2010:function(t,e,i){"use strict";i.d(e,{A:function(){return r},j:function(){return n}});var s=i(6331);function n(t,e){t.get("reverseChildren",!1)?t.children.eachReverse(e):t.children.each(e)}class r extends s.JH{}r.className="Layout",r.classNames=s.JH.classNames.concat([r.className])},3105:function(t,e,i){"use strict";i.d(e,{D:function(){return c}});var s=i(3399),n=i(8777),r=i(962),o=i(3497),a=i(5769),h=i(7144),l=i(7652);class c extends s.F{constructor(){super(...arguments),this.itemContainers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:o.c.new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template])))),this.markers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template])))),this.labels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template])))),this.valueLabels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template])))),this.markerRectangles=this.addDisposer(new h.o(a.YS.new({}),(()=>o.c._new(this._root,{themeTags:l.mergeTags(this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template]))))}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(t){const e=this.children.push(this.itemContainers.make());return e._setDataItem(t),this.itemContainers.push(e),e.states.create("disabled",{}),e}makeMarker(){const t=this.markers.make();return this.markers.push(t),t.states.create("disabled",{}),t}makeLabel(){const t=this.labels.make();return t.states.create("disabled",{}),t}makeValueLabel(){const t=this.valueLabels.make();return t.states.create("disabled",{}),t}makeMarkerRectangle(){const t=this.markerRectangles.make();return t.states.create("disabled",{}),t}processDataItem(t){super.processDataItem(t);const e=this.makeItemContainer(t),i=this.get("nameField"),s=this.get("fillField"),n=this.get("strokeField");if(e){const r=this.get("clickTarget","itemContainer"),o=t.dataContext;o&&o.set&&o.set("legendDataItem",t),e._setDataItem(t),t.set("itemContainer",e);const a=this.makeMarker();if(a){e.children.push(a),a._setDataItem(t),t.set("marker",a);const i=this.get("useDefaultMarker"),r=a.children.push(this.makeMarkerRectangle());let h=t.get("fill"),l=t.get("stroke");t.set("markerRectangle",r),o&&o.get&&(h=o.get(s,h),l=o.get(n,l)),l||(l=h),i?o.on&&(o.on(s,(()=>{r.set("fill",o.get(s))})),o.on(n,(()=>{r.set("stroke",o.get(n))}))):o&&o.createLegendMarker&&o.createLegendMarker(),r.setAll({fill:h,stroke:l});const c=o.component;c&&c.updateLegendMarker&&c.updateLegendMarker(o)}const h=this.makeLabel();if(h){e.children.push(h),h._setDataItem(t),t.set("label",h),h.text.on("text",(()=>{e.setRaw("ariaLabel",h.text._getText()+("none"!==this.get("clickTarget")?"; "+this._t("Press ENTER to toggle"):"")),e.markDirtyAccessibility()})),o&&o.get&&t.set("name",o.get(i));let s=t.get("name");s&&h.set("text",s)}const l=this.makeValueLabel();if(l&&(e.children.push(l),l._setDataItem(t),t.set("valueLabel",l)),o&&o.show&&(o.on("visible",(t=>{e.set("disabled",!t)})),o.get("visible")||e.set("disabled",!0),"none"!=r)){let i=e;"marker"==r&&(i=a),this._addClickEvents(i,o,t)}this.children.values.sort(((t,e)=>{const i=t.dataItem.dataContext,s=e.dataItem.dataContext;if(i&&s){const t=this.data.indexOf(i),e=this.data.indexOf(s);if(t>e)return 1;if(t{const t=e.component;t&&t.hoverDataItem&&t.hoverDataItem(e)})),t.events.on("pointerout",(()=>{const t=e.component;t&&t.hoverDataItem&&t.unhoverDataItem(e)})),t.events.on("click",(()=>{const s=i.get("label").text._getText();e.show&&e.isHidden&&(e.isHidden()||!1===e.get("visible"))?(e.show(),t.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,s))):e.hide&&(e.hide(),t.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,s)))}))}disposeDataItem(t){super.disposeDataItem(t);const e=t.dataContext;e&&e.get&&e.get("legendDataItem")==t&&e.set("legendDataItem",void 0);let i=t.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let s=t.get("marker");s&&(this.markers.removeValue(s),s.dispose());let n=t.get("markerRectangle");n&&(this.markerRectangles.removeValue(n),n.dispose());let r=t.get("label");r&&(this.labels.removeValue(r),r.dispose());let o=t.get("valueLabel");o&&(this.valueLabels.removeValue(o),o.dispose())}}c.className="Legend",c.classNames=s.F.classNames.concat([c.className])},2077:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var s=i(1479);function n(t,e){for(let i=0,s=e.length;i0){let e=s[0];if(e.length>0){let i=e[0];t.moveTo(i.x,i.y);for(let e=0,i=s.length;e0){let e=t[0];this._display.moveTo(e.x,e.y),n(this._display,[[t]])}else if(e)n(this._display,e);else if(!this.get("draw")){let t=this.width(),e=this.height();this._display.moveTo(0,0),this._display.lineTo(t,e)}}}}o.className="Line",o.classNames=s.T.classNames.concat([o.className])},5812:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var s=i(8777),n=i(941),r=i(6387),o=i(751);class a extends s.W{constructor(){super(...arguments),this.line=this.children.push(r.P.new(this._root,{themeTags:["line"]})),this.hitLine=this.children.push(r.P.new(this._root,{themeTags:["hit"]})),this.startArrow=this.children.push(n.C.new(this._root,{themeTags:["start","arrow"]})),this.endArrow=this.children.push(n.C.new(this._root,{themeTags:["end","arrow"]}))}_afterNew(){this.addTag("link"),super._afterNew()}_updateChildren(){if(super._updateChildren(),this.isDirty("points")){let t=r.P.makeOrthogonal(this.get("points",[]));this.line.set("points",t),this.hitLine.set("points",t);const e=this.startArrow,i=this.endArrow,s=t.length;if(s>1){const[n,r]=t;e.setAll({x:n.x,y:n.y,rotation:o.getAngle(n,r)-90});const a=t[s-1],h=t[s-2];i.setAll({x:a.x,y:a.y,rotation:o.getAngle(h,a)+90})}else if(1===s){const[s]=t;e.setAll({x:s.x,y:s.y,rotation:0}),i.setAll({x:s.x,y:s.y,rotation:0})}}}}a.className="Link",a.classNames=s.W.classNames.concat([a.className])},8289:function(t,e,i){"use strict";i.d(e,{G:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){return function(e){return new s(e,t)}}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(s+a,n+a*e,r-a,o-a*i,r,o)}},5892:function(t,e,i){"use strict";i.d(e,{$:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){[t,e]=[e,t];let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){function e(e){return new s(e,t)}return e.tension=function(t){return n(+t)},e}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(n+a*e,s+a,o-a*i,r-a,o,r)}},7049:function(t,e,i){"use strict";i.d(e,{l:function(){return h}});var s=i(8777),n=i(6691),r=i(7142),o=i(941),a=i(1112);class h extends s.W{constructor(){super(...arguments),this.label=this.children.push(n.Y.new(this._root,{})),this.buttonsContainer=this.children.push(s.W.new(this._root,{themeTags:["buttons"]})),this.upButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["upbutton"]})),this.downButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["downbutton"]}))}_afterNew(){this.addTag("numericstepper"),this.set("layout",this._root.horizontalLayout),this.label.adapters.add("text",(t=>(t&&t.replace(/\D/g,""),""===t&&(t="0"),t))),this.set("background",r.A.new(this._root,{fillOpacity:0,fill:(0,a.$_)(16777215)})),this.buttonsContainer.states.create("hidden",{opacity:0,visible:!0}),this.events.on("pointerover",(()=>{this.buttonsContainer.set("active",!0)})),this.events.on("pointerout",(()=>{this.buttonsContainer.set("active",!1)})),this.label.on("text",(t=>{if(t){const e=parseFloat(t);isNaN(e)||this.set("value",e)}})),this.upButton.events.on("click",(()=>{this.set("value",this.get("value",0)+1)})),this.downButton.events.on("click",(()=>{this.set("value",Math.max(0,this.get("value",0)-1))})),super._afterNew()}_updateChildren(){super._updateChildren();const t=this.get("value",0),e=this.label;if(this.isDirty("value")&&e.set("text",t.toString()),this.isDirty("disabled")){const t=this.get("disabled",!1);this.set("interactive",!t),this.upButton.set("interactive",!t),this.downButton.set("interactive",!t),t?(this.label.set("editOn","none"),this.buttonsContainer.hide(0)):(this.label.set("editOn","click"),this.buttonsContainer.show(0))}}}h.className="NumericStepper",h.classNames=s.W.classNames.concat([h.className])},6387:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),this.isDirty("points")&&(this._clear=!0)}static makeOrthogonal(t){if(t.length>1){const e=[];for(let i=0;i0&&o&&l){if(h){s=Math.min(s,Math.abs(r.x-o.x)/2,Math.abs(r.y-n.y)/2);const e=Math.sign(r.y-n.y);t.lineTo(r.x,r.y-s*e);const i=o.x{this._display.image=e,this._updateSize(),!i.isDisposed()&&i.isEnabled("loaded")&&i.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{!i.isDisposed()&&i.isEnabled("loaderror")&&i.dispatch("loaderror",{type:"loaderror",target:this})}))}}_updateSize(){super._updateSize();const t=this._display.image;if(t){let e=this.getPrivate("width",this.get("width")),i=this.getPrivate("height",this.get("height"));const s=t.width&&t.height?t.width/t.height:0;n.isNumber(e)&&n.isNumber(i)?(this._display.width=e,this._display.height=i):n.isNumber(e)&&s?i=e/s:n.isNumber(i)&&s?e=i*s:(e=t.width,i=t.height),n.isNumber(e)&&(this._display.width=e),n.isNumber(i)&&(this._display.height=i),this.markDirtyBounds(),this.markDirty()}}}r.className="Picture",r.classNames=s.j.classNames.concat([r.className])},8931:function(t,e,i){"use strict";i.d(e,{i:function(){return r}});var s=i(1479),n=i(751);class r extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let t=this.width(),e=this.height();if(t>0&&e>0){let i=this.get("cornerRadius",8);i=n.fitToRange(i,0,Math.min(t/2,e/2));let s=this.get("pointerX",0),r=this.get("pointerY",0),o=this.get("pointerBaseWidth",15)/2,a=0,h=0,l=0,c=(s-a)*(e-h)-(r-h)*(t-a),u=(s-l)*(0-e)-(r-e)*(t-l);const d=this._display;if(d.moveTo(i,0),c>0&&u>0){let e=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,-1/0,0),d.lineTo(e-o,0),d.lineTo(s,r),d.lineTo(e+o,0)}if(d.lineTo(t-i,0),d.arcTo(t,0,t,i,i),c>0&&u<0){let a=Math.round(n.fitToRange(r,i+o,e-o-i));s=n.fitToRange(s,t,1/0),d.lineTo(t,i),d.lineTo(t,Math.max(a-o,i)),d.lineTo(s,r),d.lineTo(t,a+o)}if(d.lineTo(t,e-i),d.arcTo(t,e,t-i,e,i),c<0&&u<0){let a=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,e,1/0),d.lineTo(t-i,e),d.lineTo(a+o,e),d.lineTo(s,r),d.lineTo(a-o,e)}if(d.lineTo(i,e),d.arcTo(0,e,0,e-i,i),c<0&&u>0){let t=Math.round(n.fitToRange(r,i+o,e-i-o));s=n.fitToRange(s,-1/0,0),d.lineTo(0,e-i),d.lineTo(0,t+o),d.lineTo(s,r),d.lineTo(0,Math.max(t-o,i))}d.lineTo(0,i),d.arcTo(0,0,i,0,i),d.closePath()}}}}r.className="PointedRectangle",r.classNames=s.T.classNames.concat([r.className])},7770:function(t,e,i){"use strict";i.d(e,{m:function(){return r}});var s=i(1479),n=i(5071);class r extends s.T{_beforeChanged(){if(super._beforeChanged(),this.isDirty("coordinates")){const t=[],e=this.get("coordinates");e&&n.each(e,(e=>{t.push({x:e[0],y:e[1]})})),this.set("points",t)}if(this.isPrivateDirty("points")&&(this._clear=!0),this.isDirty("points")){this._clear=!0;const t=this.get("points"),e=this._prevSettings.points;if(e){if(t){let i=n.copy(t),s=n.copy(e),r=i.length,o=s.length;if(r>o){let t=n.copy(i);for(let e=0;er){let t=n.copy(s);for(let e=0;e{this._markDirtyPrivateKey("morphProgress")}))}}else this.setPrivateRaw("previousPoints",t),this.setPrivateRaw("points",t);let i=1/0,s=-1/0,r=1/0,o=-1/0;if(t)for(let e=1,n=t.length;e{this.label.markDirtyKey("text")}))}}}l.className="ProgressPie",l.classNames=n.W.classNames.concat([l.className])},815:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(6245),n=i(962),r=i(4244),o=i(751),a=i(7652);class h extends n._{constructor(){super(...arguments),this._flipped=!1}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(r.f.new(this._root,{}))}baseRadius(){const t=this.getPrivate("radius",0),e=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return e+a.relativeToValue(i,t-e)}radius(){const t=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(t?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){const t=this.get("textType","adjusted"),e=this.get("inside",!1),i=this.get("orientation");let n=o.normalizeAngle(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",e);const r=o.sin(n),a=o.cos(n);let h=this.baseRadius(),l=this.radius();if(this._display.angle=0,"circular"==t)this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",l);else{0==h&&(n=0,l=0);let e=l*a,o=l*r;"radial"==t?(this.setRaw("x",e),this.setRaw("y",o),n<90||n>270||"auto"!=i?(this._display.angle=n,this._flipped=!1):(this._display.angle=n+180,this._flipped=!0),this._dirty.rotation=!1):"adjusted"==t?(this.setRaw("centerX",s.CI),this.setRaw("centerY",s.CI),this.setRaw("x",e),this.setRaw("y",o)):"regular"==t&&(this.setRaw("x",e),this.setRaw("y",o))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){const t=this.get("textType","regular"),e=this.get("inside",!1);let i=0,n=0,r=this.get("labelAngle",0),a=this.localBounds(),h=a.right-a.left,l=a.bottom-a.top;if("radial"==t){if(this._flipped){let t=this.get("centerX");t instanceof s.gG&&(h*=1-2*t.value),i=h*o.cos(r),n=h*o.sin(r)}}else e||"adjusted"!=t||(i=h/2*o.cos(r),n=l/2*o.sin(r));this.setRaw("dx",i),this.setRaw("dy",n),super._updatePosition()}get text(){return this._text}}h.className="RadialLabel",h.classNames=n._.classNames.concat([h.className])},4244:function(t,e,i){"use strict";i.d(e,{f:function(){return r}});var s=i(2036),n=i(751);class r extends s.x{constructor(){super(...arguments),this._display=this._root._renderer.makeRadialText("",this.textStyle)}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*n.RADIANS,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}r.className="RadialText",r.classNames=s.x.classNames.concat([r.className])},7142:function(t,e,i){"use strict";i.d(e,{A:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let t=this.width(),e=this.height(),i=0,s=0,n=t/Math.abs(t),r=e/Math.abs(e);if(this.get("containStroke",!1)){const o=this.get("strokeWidth",0);t-=o*n,e-=o*r,i+=o/2*n,s+=o/2*r}this._display.drawRect(i,s,t,e)}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Rectangle",n.classNames=s.T.classNames.concat([n.className])},3497:function(t,e,i){"use strict";i.d(e,{c:function(){return a}});var s=i(5040),n=i(751),r=i(7652),o=i(7142);class a extends o.A{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let t=this.width(),e=this.height(),i=t/Math.abs(t),o=e/Math.abs(e),a=0,h=0;const l=this.get("strokeWidth",0);this.get("containStroke",!1)&&(t-=i*l,e-=o*l,a+=i*l/2,h+=o*l/2);let c=t,u=e;if(s.isNumber(c)&&s.isNumber(u)){let t=Math.min(c,u)/2,e=r.relativeToValue(this.get("cornerRadiusTL",8),t),s=r.relativeToValue(this.get("cornerRadiusTR",8),t),l=r.relativeToValue(this.get("cornerRadiusBR",8),t),d=r.relativeToValue(this.get("cornerRadiusBL",8),t),p=Math.min(Math.abs(c/2),Math.abs(u/2));e=n.fitToRange(e,0,p),s=n.fitToRange(s,0,p),l=n.fitToRange(l,0,p),d=n.fitToRange(d,0,p);const g=this._display;g.moveTo(a+e*i,h),g.lineTo(a+c-s*i,h),s>0&&g.arcTo(a+c,h,a+c,h+s*o,s),g.lineTo(a+c,h+u-l*o),l>0&&g.arcTo(a+c,h+u,a+c-l*i,h+u,l),g.lineTo(a+d*i,h+u),d>0&&g.arcTo(a,h+u,a,h+u-d*o,d),g.lineTo(a,h+e*o),e>0&&g.arcTo(a,h,a+e*i,h,e),g.closePath()}}}a.className="RoundedRectangle",a.classNames=o.A.classNames.concat([a.className])},6001:function(t,e,i){"use strict";i.d(e,{L:function(){return l}});var s=i(3497),n=i(8777),r=i(1479),o=i(8054),a=i(5040),h=i(7652);class l extends n.W{constructor(){super(...arguments),this.thumb=this._makeThumb(),this.startGrip=this._makeButton(),this.endGrip=this._makeButton(),this._thumbBusy=!1,this._startDown=!1,this._endDown=!1,this._thumbDown=!1}_addOrientationClass(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=s.c.new(this._root,{themeTags:h.mergeTags(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(o.z.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:r.T.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(s.c.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(t){t&&this._disposers.push(t.events.on("stopped",(()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1})))}_afterNew(){this._addOrientationClass(),super._afterNew();const t=this.startGrip,e=this.endGrip,i=this.thumb,s=this.get("background");s&&this._disposers.push(s.events.on("click",(t=>{this.setPrivateRaw("isBusy",!0);const e=this._display.toLocal(t.point),s=this.width(),n=this.height(),r=this.get("orientation");let o,a,h;o="vertical"==r?(e.y-i.height()/2)/n:(e.x-i.width()/2)/s,"vertical"==r?(a=o*n,h="y"):(a=o*s,h="x");const l=this.get("animationDuration",0);l>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:h,to:a,duration:l,easing:this.get("animationEasing")}))):(this.thumb.set(h,a),this._root.events.once("frameended",(()=>{this.setPrivateRaw("isBusy",!1)})))}))),this._disposers.push(i.events.on("dblclick",(t=>{if(!h.isLocalEvent(t.originalEvent,this))return;const e=this.get("animationDuration",0),i=this.get("animationEasing");this.animate({key:"start",to:0,duration:e,easing:i}),this.animate({key:"end",to:1,duration:e,easing:i})}))),this._disposers.push(t.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"}))),this._disposers.push(e.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"}))),this._disposers.push(i.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0}))),this._disposers.push(t.events.on("globalpointerup",(()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1}))),this._disposers.push(e.events.on("globalpointerup",(()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1}))),this._disposers.push(i.events.on("globalpointerup",(()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1}))),this._disposers.push(t.on("x",(()=>{this._updateThumb()}))),this._disposers.push(e.on("x",(()=>{this._updateThumb()}))),this._disposers.push(t.on("y",(()=>{this._updateThumb()}))),this._disposers.push(e.on("y",(()=>{this._updateThumb()}))),this._disposers.push(i.events.on("positionchanged",(()=>{this._updateGripsByThumb()}))),"vertical"==this.get("orientation")?(t.set("x",0),e.set("x",0),this._disposers.push(i.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()-i.height()),0)))),this._disposers.push(i.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("x",(t=>this.width()/2))),this._disposers.push(e.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0)))),this._disposers.push(e.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0))))):(t.set("y",0),e.set("y",0),this._disposers.push(i.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()-i.width()),0)))),this._disposers.push(i.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("y",(t=>this.height()/2))),this._disposers.push(e.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))),this._disposers.push(e.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){const t="rangechanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){const t="released";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}updateGrips(){const t=this.startGrip,e=this.endGrip,i=this.get("orientation"),s=this.height(),n=this.width();"vertical"==i?(t.set("y",s*this.get("start",0)),e.set("y",s*this.get("end",1))):(t.set("x",n*this.get("start",0)),e.set("x",n*this.get("end",1)));const r=this.getPrivate("positionTextFunction"),o=Math.round(100*this.get("start",0)),a=Math.round(100*this.get("end",0));let h,l;r?(h=r.call(this,this.get("start",0)),l=r.call(this,this.get("end",0))):(h=o+"%",l=a+"%"),t.set("ariaLabel",this._t("From %1",void 0,h)),t.set("ariaValueNow",""+o),t.set("ariaValueText",o+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100"),e.set("ariaLabel",this._t("To %1",void 0,l)),e.set("ariaValueNow",""+a),e.set("ariaValueText",a+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100")}_updateThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip,s=this.height(),n=this.width();let r=e.x(),o=i.x(),h=e.y(),l=i.y(),c=0,u=1;"vertical"==this.get("orientation")?a.isNumber(h)&&a.isNumber(l)&&(this._thumbBusy||t.isDragging()||(t.set("height",l-h),t.set("y",h)),c=h/s,u=l/s):a.isNumber(r)&&a.isNumber(o)&&(this._thumbBusy||t.isDragging()||(t.set("width",o-r),t.set("x",r)),c=r/n,u=o/n),!this.getPrivate("isBusy")||this.get("start")==c&&this.get("end")==u||(this.set("start",c),this.set("end",u));const d=this.getPrivate("positionTextFunction"),p=Math.round(100*this.get("start",0)),g=Math.round(100*this.get("end",0));let f,_;d?(f=d.call(this,this.get("start",0)),_=d.call(this,this.get("end",0))):(f=p+"%",_=g+"%"),t.set("ariaLabel",this._t("From %1 to %2",void 0,f,_)),t.set("ariaValueNow",""+p),t.set("ariaValueText",p+"%")}_updateGripsByThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip;if("vertical"==this.get("orientation")){const s=t.height();e.set("y",t.y()),i.set("y",t.y()+s)}else{const s=t.width();e.set("x",t.x()),i.set("x",t.x()+s)}}}l.className="Scrollbar",l.classNames=n.W.classNames.concat([l.className])},5829:function(t,e,i){"use strict";i.d(e,{j:function(){return h}});var s=i(1337),n=i(8777),r=i(7144),o=i(6245),a=i(5071);class h extends s.k{constructor(){super(...arguments),this.seriesContainer=n.W.new(this._root,{width:o.AQ,height:o.AQ,isMeasured:!1}),this.series=new r.dn}_afterNew(){super._afterNew(),this._disposers.push(this.series);const t=this.seriesContainer.children;this._disposers.push(this.series.events.onAll((e=>{if("clear"===e.type){a.each(e.oldValues,(t=>{this._removeSeries(t)}));const t=this.get("colors");t&&t.reset();const i=this.get("patterns");i&&i.reset()}else if("push"===e.type)t.moveValue(e.newValue),this._processSeries(e.newValue);else if("setIndex"===e.type)t.setIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("insertIndex"===e.type)t.insertIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("removeIndex"===e.type)this._removeSeries(e.oldValue);else if("moveIndex"===e.type)t.moveValue(e.value,e.newIndex),this._processSeries(e.value);else{if("swap"!==e.type)throw new Error("Unknown IListEvent type");{const i=e.a,s=e.b,n=this.series.indexOf(i),r=this.series.indexOf(s);t.moveValue(i,r),t.moveValue(s,n),this.series.each((t=>{this._processSeries(t),t.markDirtyValues()}))}}})))}_processSeries(t){t.chart=this,t._placeBulletsContainer(this)}_removeSeries(t){t._handleRemoved(),t.isDisposed()||(this.seriesContainer.children.removeValue(t),t._removeBulletsContainer())}}h.className="SerialChart",h.classNames=s.k.classNames.concat([h.className])},3399:function(t,e,i){"use strict";i.d(e,{F:function(){return g}});var s=i(7582),n=i(9361),r=i(7144),o=i(1112),a=i(6490),h=i(6245),l=i(8777),c=i(962),u=i(5071),d=i(5040),p=i(1926);class g extends n.w{constructor(){super(...arguments),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1,this._dataProcessed=!1,this._baseSeriesDirty=!1,this.bullets=new r.aV,this.bulletsContainer=l.W.new(this._root,{width:h.AQ,height:h.AQ,position:"absolute"})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll((()=>{this._handleBullets(this.dataItems)})))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let t=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),t)}endIndex(){let t=this.dataItems.length;return Math.max(0,Math.min(this.getPrivate("endIndex",t),t))}_handleBullets(t){u.each(t,(t=>{const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)})),this.markDirtyValues()}_makeBullets(t){this._shouldMakeBullet(t)&&(t.bullets=[],this.bullets.each((e=>{this._makeBullet(t,e)})))}_shouldMakeBullet(t){return!0}_makeBullet(t,e,i){const s=e(this._root,this,t);return s&&(s._index=i,this._makeBulletReal(t,s)),s}_makeBulletReal(t,e){let i=e.get("sprite");i&&(i._setDataItem(t),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),e.series=this,t.bullets.push(e)}addBullet(t,e){t.bullets||(t.bullets=[]),e&&this._makeBulletReal(t,e)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();const t=this.dataItems,e=t.length;let i=this.startIndex(),s=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const t=this.getPrivate("baseValueSeries");t&&this._disposers.push(t.onPrivate("startIndex",(()=>{this._baseSeriesDirty=!0,this.markDirtyValues()})))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,e),this._aggregatesCalculated=!0,0!=i&&(this._psi=void 0))),this._psi==i&&this._pei==s&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===i&&s===e&&this._aggregatesCalculated||this._calculateAggregates(i,s),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let t=this.get("tooltip");t&&(t.hide(0),t.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let t;const e=this.get("legendDataItem");if(e&&(t=e.get("markerRectangle"),t&&this.isVisible())){if(this.isDirty("stroke")){let e=this.get("stroke");t.set("stroke",e)}if(this.isDirty("fill")){let e=this.get("fill");t.set("fill",e)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let i=this.startIndex(),s=this.endIndex();s-1==s.indexOf(t))));const n={},r={},o={},a={},h={},l={},c={},u={},d={};for(let t=0,e=i.length;t{if(0===t){const t=l[x],s=i-t;e.setRaw(_,s),e.setRaw(m,s/t*100)}const n=i-d[x],r=i-l[x];e.setRaw(y,n),e.setRaw(v,n/d[x]*100),e.setRaw(w,r),e.setRaw(b,r/l[x]*100),d[s]=i};for(let t=k;tt&&(a[f]=t),h[f]0&&t--,delete d[f];for(let e=t;e0&&u.each(t,(t=>{const e=t.minValue||this.getPrivate(t.dataField+"Low")||0,i=t.maxValue||this.getPrivate(t.dataField+"High")||0;u.each(t.target._entities,(s=>{const n=s.dataItem.get(t.dataField);if(!d.isNumber(n)){t.neutral&&s.set(t.key,t.neutral);const e=s.states;if(e){const i=e.lookup("default");i&&t.neutral&&i.set(t.key,t.neutral)}if(!t.customFunction)return}if(t.customFunction)t.customFunction.call(this,s,e,i,n);else{let r,l;r=t.logarithmic?(Math.log(n)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E):(n-e)/(i-e),!d.isNumber(n)||d.isNumber(r)&&Math.abs(r)!=1/0||(r=.5),d.isNumber(t.min)?l=t.min+(t.max-t.min)*r:t.min instanceof o.Il?l=o.Il.interpolate(r,t.min,t.max):t.min instanceof h.gG&&(l=(0,a.Wn)(r,t.min,t.max)),s.set(t.key,l);const c=s.states;if(c){const e=c.lookup("default");e&&e.set(t.key,l)}}}))})),this.get("visible")){const t=this.dataItems;let e=t.length,i=this.startIndex(),s=this.endIndex();s0&&i--;for(let e=0;e{this._positionBullet(t);const e=t.get("sprite");t.get("dynamic")&&(e&&(e._markDirtyKey("fill"),e.markDirtySize()),e instanceof l.W&&e.walkChildren((t=>{t._markDirtyKey("fill"),t.markDirtySize(),t instanceof c._&&t.text.markDirtyText()}))),e instanceof c._&&e.get("populateText")&&e.text.markDirtyText()}))}_hideBullets(t){t.bullets&&u.each(t.bullets,(t=>{let e=t.get("sprite");e&&e.setPrivate("visible",!1)}))}_positionBullet(t){}_placeBulletsContainer(t){t.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const t=this.bulletsContainer;t.parent&&t.parent.children.removeValue(t)}disposeDataItem(t){const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.show(e))})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.hide(e))})),yield Promise.all(s)}))}_sequencedShowHide(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(d.isNumber(e)||(e=this.get("interpolationDuration",0)),e>0){const i=this.startIndex(),n=this.endIndex();yield Promise.all(u.map(this.dataItems,((r,o)=>(0,s.mG)(this,void 0,void 0,(function*(){let s=e||0;(on+10)&&(s=0);let a=this.get("sequencedDelay",0)+s/(n-i);yield p.sleep(a*(o-i)),t?yield this.showDataItem(r,s):yield this.hideDataItem(r,s)})))))}else yield Promise.all(u.map(this.dataItems,(e=>t?this.showDataItem(e,0):this.hideDataItem(e,0))))}))}updateLegendValue(t){if(t){const e=t.get("legendDataItem");if(e){const i=e.get("valueLabel");if(i){const e=i.text;let s="";i._setDataItem(t),s=this.get("legendValueText",e.get("text","")),i.set("text",s),e.markDirtyText()}const s=e.get("label");if(s){const e=s.text;let i="";s._setDataItem(t),i=this.get("legendLabelText",e.get("text","")),s.set("text",i),e.markDirtyText()}}}}updateLegendMarker(t){}_onHide(){super._onHide();const t=this.getTooltip();t&&t.hide()}hoverDataItem(t){}unhoverDataItem(t){}_getBase(t){const e=this.dataItems[this.startIndex()];return e?e.get(t):0}}g.className="Series",g.classNames=n.w.classNames.concat([g.className])},5863:function(t,e,i){"use strict";i.d(e,{p:function(){return h}});var s=i(1479),n=i(5040),r=i(6245),o=i(832),a=i(751);class h extends s.T{constructor(){super(...arguments),this.ix=0,this.iy=0,this._generator=(0,o.Z)()}_getTooltipPoint(){let t=this.get("tooltipX"),e=this.get("tooltipY"),i=0,s=0;n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e);let o=this.get("radius",0),a=this.get("innerRadius",0);return o+=this.get("dRadius",0),a+=this.get("dInnerRadius",0),a<0&&(a=o+a),t instanceof r.gG&&(i=this.ix*(a+(o-a)*t.value)),e instanceof r.gG&&(s=this.iy*(a+(o-a)*e.value)),this.get("arc")>=360&&0==a&&(i=0,s=0),{x:i,y:s}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this.get("startAngle",0),e=this.get("arc",0);const i=this._generator;e<0&&(t+=e,e*=-1),e>.1&&i.cornerRadius(this.get("cornerRadius",0)),i.context(this._display);let s=this.get("radius",0),n=this.get("innerRadius",0);s+=this.get("dRadius",0),n+=this.get("dInnerRadius",0),n<0&&(n=s+n),i({innerRadius:n,outerRadius:s,startAngle:(t+90)*a.RADIANS,endAngle:(t+e+90)*a.RADIANS});let r=t+e/2;this.ix=a.cos(r),this.iy=a.sin(r);const o=this.get("shiftRadius",0);this.setRaw("dx",this.ix*o),this.setRaw("dy",this.iy*o),this.markDirtyPosition()}}}h.className="Slice",h.classNames=s.T.classNames.concat([h.className])},2162:function(t,e,i){"use strict";i.d(e,{i:function(){return n}});var s=i(6001);class n extends s.L{_afterNew(){this._addOrientationClass(),super._afterNew(),this.endGrip.setPrivate("visible",!1),this.thumb.setPrivate("visible",!1)}updateGrips(){super.updateGrips();const t=this.startGrip;this.endGrip.setAll({x:t.x(),y:t.y()}),this.setRaw("end",this.get("start"))}}n.className="Slider",n.classNames=s.L.classNames.concat([n.className])},4596:function(t,e,i){"use strict";i.d(e,{j:function(){return _}});var s=i(7582),n=i(6331),r=i(5769),o=i(6245),a=i(9770),h=i(7449),l=i(6490),c=i(7652),u=i(5071),d=i(5040),p=i(256),g=i(751);class f extends a.p{constructor(t){super(),this._rendererDisposers={},this._dispatchParents=!0,this._sprite=t}_makePointerEvent(t,e){return{type:t,originalEvent:e.event,point:e.point,simulated:e.simulated,native:e.native,target:this._sprite}}_onRenderer(t,e){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[t];if(void 0===i){const s=this._sprite._display.on(t,(t=>{e.call(this,t)}));i=this._rendererDisposers[t]=new h.DM((()=>{delete this._rendererDisposers[t],s.dispose()}))}return i.increment()}_on(t,e,i,s,n,r,o){const a=super._on(t,e,i,s,n,r,o),l=f.RENDERER_EVENTS[e];return void 0!==l&&(a.disposer=new h.FV([a.disposer,this._onRenderer(e,l)])),a}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(t,e){const i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(t,e),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(t,e)}finally{this._dispatchParents=i}}}f.RENDERER_EVENTS={click:function(t){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",t))&&this.dispatch("click",this._makePointerEvent("click",t))},rightclick:function(t){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",t))},middleclick:function(t){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",t))},dblclick:function(t){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",t))},pointerover:function(t){const e=this._sprite;let i=!0;if(e.getPrivate("trustBounds")){e._getBounds();const s=e.globalBounds();if(e.isType("Graphics")){const t=e.get("strokeWidth",1)/2;t>=1&&(s.left-=t,s.right+=t,s.top-=t,s.bottom+=t)}g.inBounds(t.point,s)||(i=!1,e._root._renderer.removeHovering(e._display))}i&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",t))},pointerout:function(t){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",t))},pointerdown:function(t){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",t))},pointerup:function(t){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",t))},globalpointerup:function(t){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",t))},globalpointermove:function(t){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",t))},wheel:function(t){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:t.event,point:t.point})}};class _ extends n.JH{constructor(){super(...arguments),this._adjustedLocalBounds={left:0,right:0,top:0,bottom:0},this._localBounds={left:0,right:0,top:0,bottom:0},this._sizeDirty=!1,this._isDragging=!1,this._isHidden=!1,this._isShowing=!1,this._isHiding=!1,this._isDown=!1,this._downPoints={}}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(t){this._markDirtyKey(t)}_markDirtyKey(t){super._markDirtyKey(t),"x"!=t&&"y"!=t&&"dx"!=t&&"dy"!=t||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(t){super._markDirtyPrivateKey(t),"x"!=t&&"y"!=t||this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new f(this)}_processTemplateField(){let t;const e=this.get("templateField");if(e){const i=this.dataItem;if(i){const s=i.dataContext;s&&(t=s[e],t instanceof r.YS||!t||(t=r.YS.new(t)))}}this._templateField!==t&&(this._removeTemplateField(),this._templateField=t,t&&t._setObjectTemplate(this),this._applyTemplates())}_setDataItem(t){const e=this._dataItem;this._dataItem=t,this._processTemplateField();const i="dataitemchanged";t!=e&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:e,newDataItem:t})}set dataItem(t){this._setDataItem(t)}get dataItem(){if(this._dataItem)return this._dataItem;{let t=this._parent;for(;t;){if(t._dataItem)return t._dataItem;t=t._parent}}}_addPercentageSizeChildren(){let t=this.parent;t&&(this.get("width")instanceof o.gG||this.get("height")instanceof o.gG?u.pushOne(t._percentageSizeChildren,this):u.removeFirst(t._percentageSizeChildren,this))}_addPercentagePositionChildren(){let t=this.parent;t&&(this.get("x")instanceof o.gG||this.get("y")instanceof o.gG?u.pushOne(t._percentagePositionChildren,this):u.removeFirst(t._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const t=this._localBounds;if(t){const e=this.get("centerX");null!=e&&(this._display.pivot.x=t.left+c.relativeToValue(e,t.right-t.left));const i=this.get("centerY");null!=i&&(this._display.pivot.y=t.top+c.relativeToValue(i,t.bottom-t.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const t=this._prevSettings.tooltip;t&&t.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0);const e=this._tooltipPointerDp;e&&(e.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))),this._tooltipPointerDp=new h.FV([this.events.on("pointerover",(()=>{this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))})),this.events.on("pointerout",(()=>{const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0)}))]))}}_handleStates(){this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();const t=this._display,e=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new h.FV([e.on("pointerdown",(t=>{this.dragStart(t)})),e.on("globalpointermove",(t=>{this.dragMove(t)})),e.on("globalpointerup",(t=>{this.dragStop(t)}))])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),t.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const t=this.get("tooltipText"),i=this.get("tooltipHTML"),s=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(t||i)&&("click"==s?(this._tooltipDp=new h.FV([e.on("click",(()=>{this.setTimeout((()=>{const t=this.getTooltip();t&&!t.isHidden()&&t.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()}),10)})),c.addEventListener(document,"click",(t=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)):"always"==s||(this._tooltipDp=new h.FV([e.on("pointerover",(()=>{this.showTooltip()})),e.on("pointerout",(()=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let t=this.get("toggleKey");t&&"none"!=t?this._toggleDp=e.on("click",(()=>{this._isDragging||this.set(t,!this.get(t))})):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(t.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),t.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),t.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?t.visible=!0:(t.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const t=this.parent;t&&(this.isDirty("width")&&this.get("width")instanceof o.gG||this.isDirty("height")&&this.get("height")instanceof o.gG)&&(t.markDirty(),t._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const e=this.get("wheelable");e&&this.set("interactive",!0),t.wheelable=!!e}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(t.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){const t=this.get("blur",0);0!=t&&(i+=" blur("+t+"px)")}if(this.isDirty("saturate")){const t=this.get("saturate",1);1!=t&&(i+=" saturate("+t+")")}if(this.isDirty("brightness")){const t=this.get("brightness",1);1!=t&&(i+=" brightness("+t+")")}if(this.isDirty("contrast")){const t=this.get("contrast",1);1!=t&&(i+=" contrast("+t+")")}if(this.isDirty("sepia")){const t=this.get("sepia",0);0!=t&&(i+=" sepia("+t+")")}if(this.isDirty("hue")){const t=this.get("hue",0);0!=t&&(i+=" hue-rotate("+t+"deg)")}if(this.isDirty("invert")){const t=this.get("invert",0);0!=t&&(i+=" invert("+t+")")}if(i&&(t.filter=i),this.isDirty("cursorOverStyle")&&(t.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new h.FV([e.on("focus",(()=>{this.showTooltip()})),e.on("blur",(()=>{this.hideTooltip()}))]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(e.on("blur",(()=>{this.setPrivateRaw("touchHovering",!1)}))),this._disposers.push(e.once("boundschanged",(()=>{this.markDirtyAccessibility()})))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(t.exportable=this.get("exportable")),this.isDirty("interactive")){const t=this.events;this.get("interactive")&&!t.isDisposed()?this._hoverDp=new h.FV([t.on("click",(t=>{c.isTouchEvent(t.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout((()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}),10))})),t.on("globalpointerup",(t=>{c.isTouchEvent(t.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})),this._isDown&&this._handleUp(t)})),t.on("pointerover",(()=>{this._handleOver()})),t.on("pointerout",(()=>{this._handleOut()})),t.on("pointerdown",(t=>{this._handleDown(t)}))]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}dragStart(t){this._dragEvent=t,this.events.stopParentDispatch()}dragStop(t){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const e="dragstop";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(t){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const e=c.getPointerId(t.originalEvent);delete this._downPoints[e],0==p.keys(this._downPoints).length&&(this._isDown=!1)}}_hasMoved(t){const e=c.getPointerId(t.originalEvent),i=this._downPoints[e];if(i){const e=Math.abs(i.x-t.point.x),s=Math.abs(i.y-t.point.y);return e>5||s>5}return!1}_hasDown(){return p.keys(this._downPoints).length>0}_handleDown(t){const e=this.parent;if(e&&!this.get("draggable")&&e._handleDown(t),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:t.point.x,y:t.point.y},this._isDown=!0;const e=c.getPointerId(t.originalEvent);this._downPoints[e]={x:t.point.x,y:t.point.y}}}dragMove(t){let e=this._dragEvent;if(e){if(e.simulated&&!t.simulated)return!0;let i=0,s=this.parent,n=1;for(;null!=s;)i+=s.get("rotation",0),s=s.parent,s&&(n*=s.get("scale",1));let r=(t.point.x-e.point.x)/n,o=(t.point.y-e.point.y)/n;const a=this.events;if(e.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}if(this._isDragging){let e=this._dragPoint;this.set("x",e.x+r*g.cos(i)+o*g.sin(i)),this.set("y",e.y+o*g.cos(i)-r*g.sin(i));const s="dragged";a.isEnabled(s)&&a.dispatch(s,{type:s,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}else if(Math.hypot(r,o)>5){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let t=this.parent,e=0;for(;;){if(!t)return e;++e,t=t.parent}}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const t=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),t.isMeasured=!0,t.invalidateBounds();const e=this.parent;e&&"absolute"!=this.get("position")&&(null==e.get("width")||null==e.get("height")||e.get("layout"))&&e.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const t=this._adjustedLocalBounds;let e;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),e=this._adjustedLocalBounds):(e={left:0,right:0,top:0,bottom:0},this._localBounds=e,this._adjustedLocalBounds=e),!t||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom){const t="boundschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(t){let e=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));d.isNumber(e)&&t.right-t.left0?t.right=t.left+s:t.left=t.right+s),d.isNumber(n)&&(n>0?t.bottom=t.top+n:t.top=t.bottom+n)}_removeParent(t){t&&(t.children.removeValue(this),u.removeFirst(t._percentageSizeChildren,this),u.removeFirst(t._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(t){if(!this.isDisposed()){const e=this.getTooltip(),i=this.get("tooltipText"),s=this.get("tooltipHTML");if((i||s)&&e){const n=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);if("fixed"!=n&&t||(this._display._setMatrix(),t=this.toGlobal(r._getTooltipPoint())),"pointer"==n){const e=this.getPrivate("lastTooltipCoords");if(e&&e.x==t.x&&e.y==t.y)return;this.setPrivate("lastTooltipCoords",t)}e.set("pointTo",t),e.set("tooltipTarget",r),e.get("x")||e.set("x",t.x),e.get("y")||e.set("y",t.y),i&&e.label.set("text",i),s&&e.label.set("html",s);const o=this.dataItem;if(o&&e.label._setDataItem(o),"always"==this.get("showTooltipOn")&&(t.x<0||t.x>this._root.width()||t.y<0||t.y>this._root.height()))return void this.hideTooltip();e.label.text.markDirtyText();const a=e.show();return this.setPrivateRaw("showingTooltip",!0),a}}}hideTooltip(){const t=this.getTooltip();if(t&&(this.removePrivate("lastTooltipCoords"),t.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==t)){let e=t.get("keepTargetHover")&&0==t.get("stateAnimationDuration",0)?400:void 0;const i=t.hide(e);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){const t=this._localBounds;if(t){let e=0,i=0;return this.get("isMeasured")?(e=t.left+c.relativeToValue(this.get("tooltipX",0),t.right-t.left),i=t.top+c.relativeToValue(this.get("tooltipY",0),t.bottom-t.top)):(e=c.relativeToValue(this.get("tooltipX",0),this.width()),i=c.relativeToValue(this.get("tooltipY",0),this.height())),{x:e,y:i}}return{x:0,y:0}}getTooltip(){let t=this.get("tooltip");if(t)return t;{let t=this.parent;if(t)return t.getTooltip()}}_updatePosition(){const t=this.parent;let e=this.get("dx",0),i=this.get("dy",0),s=this.get("x"),n=this.getPrivate("x"),r=0,a=0;const h=this.get("position");s instanceof o.gG&&(s=t?t.innerWidth()*s.value+t.get("paddingLeft",0):0),d.isNumber(s)?r=s+e:null!=n?r=n:t&&"relative"==h&&(r=t.get("paddingLeft",0)+e);let l=this.get("y"),c=this.getPrivate("y");l instanceof o.gG&&(l=t?t.innerHeight()*l.value+t.get("paddingTop",0):0),d.isNumber(l)?a=l+i:null!=c?a=c:t&&"relative"==h&&(a=t.get("paddingTop",0)+i);const u=this._display;if(u.x!=r||u.y!=a){u.invalidateBounds(),u.x=r,u.y=a;const t="positionchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let t=this.get("x"),e=this.getPrivate("x");const i=this.parent;return i?t instanceof o.gG?c.relativeToValue(t,i.innerWidth())+i.get("paddingLeft",0):d.isNumber(t)?t:null!=e?e:i.get("paddingLeft",this._display.x):this._display.x}y(){let t=this.getPrivate("y");if(null!=t)return t;let e=this.get("y");const i=this.parent;return i?e instanceof o.gG?c.relativeToValue(e,i.innerHeight())+i.get("paddingTop",0):d.isNumber(e)?e:null!=t?t:i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const t=this.get("tooltip");t&&t.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const t=this._adjustedLocalBounds,e=this.x(),i=this.y();return{left:t.left+e,right:t.right+e,top:t.top+i,bottom:t.bottom+i}}globalBounds(){const t=this.localBounds(),e=this.toGlobal({x:t.left,y:t.top}),i=this.toGlobal({x:t.right,y:t.top}),s=this.toGlobal({x:t.right,y:t.bottom}),n=this.toGlobal({x:t.left,y:t.bottom});return{left:Math.min(e.x,i.x,s.x,n.x),top:Math.min(e.y,i.y,s.y,n.y),right:Math.max(e.x,i.x,s.x,n.x),bottom:Math.max(e.y,i.y,s.y,n.y)}}_onShow(t){}_onHide(t){}appear(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.hide(0),e?new Promise(((i,s)=>{this.setTimeout((()=>{i(this.show(t))}),e)})):this.show(t)}))}show(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(t);const e=this.states.applyAnimate("default",t);yield(0,l.ne)(e),this._isShowing=!1}}))}hide(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let e=this.states.lookup("hidden");e||(e=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(t);const i=this.states.applyAnimate("hidden",t);yield(0,l.ne)(i),this._isHiding=!1}}))}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const t=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*t:t}compositeScale(){const t=this.get("scale",1);return this._parent?this._parent.compositeScale()*t:t}compositeRotation(){const t=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+t:t}width(){let t=this.get("width"),e=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),s=this.getPrivate("width"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerWidth()*t.value:this._root.width()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}maxWidth(){let t=this.get("maxWidth",this.getPrivate("maxWidth"));if(d.isNumber(t))return t;{let t=this.get("width");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerWidth():this._root.width()}maxHeight(){let t=this.get("maxHeight",this.getPrivate("maxHeight"));if(d.isNumber(t))return t;{let t=this.get("height");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerHeight():this._root.height()}height(){let t=this.get("height"),e=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),s=this.getPrivate("height"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerHeight()*t.value:this._root.height()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}_findStaticTemplate(t){return this._templateField&&t(this._templateField)?this._templateField:super._findStaticTemplate(t)}_walkParents(t){(this._parent||this._virtualParent)&&this._walkParent(t)}_walkParent(t){this._parent?this._parent._walkParent(t):this._virtualParent&&this._virtualParent._walkParent(t),t(this)}set virtualParent(t){this._virtualParent!==t&&(this._virtualParent=t,this._applyThemes())}get parent(){return this._parent}_setParent(t,e=!1){const i=this._parent;t!==i&&(this.markDirtyBounds(),t.markDirty(),this._parent=t,e&&(this._removeParent(i),t&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(t){return this._display.toGlobal(t)}toLocal(t){return this._display.toLocal(t)}_getDownPoint(){const t=this._getDownPointId();if(t)return this._downPoints[t]}_getDownPointId(){if(this._downPoints)return p.keysOrdered(this._downPoints,((t,e)=>t>e?1:t{this._resize(t.target,-1)})),this.gripR.events.on("dragged",(t=>{this._resize(t.target,1)})),this.gripL.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripR.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripT.events.on("dragged",(t=>{this._rotate(t,90)})),this.gripB.events.on("dragged",(t=>{this._rotate(t,-90)})),this.gripT.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripB.events.on("dragstart",(t=>{this._resizeStart(t.target)}))}_resizeStart(t){const e=this.get("sprite");e&&(this._is=e.get("scale",1),this._ix=t.x(),this._iw=this.width()/2)}_resize(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=Math.max(.01,this._is*(1+e*(t.x()-this._ix)/this._iw));s?s.set("scale",n):i.set("scale",n),i.states.lookup("default").set("scale",n),this._updatePositions()}}_rotate(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=this.parent;if(n){const r=this.get("rotationStep",10);let o=Math.round((h.getAngle({x:this.x(),y:this.y()},n.toLocal(t.point))+e)/r)*r;s?s.set("rotation",o):i.set("rotation",o),i.states.lookup("default").set("rotation",o),this._updatePositions()}}}_createGrip(t){const e=this.children.push(s.W.new(this._root,{themeTags:["grip",t],setStateOnChildren:!0,draggable:!0}));return e.children.push(r.c.new(this._root,{themeTags:["outline"],centerX:n.CI,centerY:n.CI})),e.children.push(r.c.new(this._root,{centerX:n.CI,centerY:n.CI})),e}_updateChildren(){if(super._updateChildren(),this.isDirty("sprite")){const t=this.get("sprite");if(t){this.show(0),this.setPrivate("visible",!0),this._updatePositions();const e=t.parent;e&&e.children.moveValue(this,0),this._positionDP=t.events.on("positionchanged",(()=>{this._updatePositions()})),this._positionDP=t.events.on("boundschanged",(()=>{this._updatePositions()}))}else this.hide(0),this.setPrivate("visible",!1),this._positionDP&&this._positionDP.dispose()}(this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation"))&&this._updatePositions()}_updatePositions(){const t=this.get("sprite");if(t){let e=t.localBounds(),i=t.get("scale",1),s=20,r=(e.right-e.left)*i+s,o=(e.bottom-e.top)*i+s,a=t.get("rotation",0);const l=this.rectangle;let c=t.get("centerX",n.CI),u=t.get("centerY",n.CI),d=0;c instanceof n.gG&&(d=c.value);let p=0;u instanceof n.gG&&(p=u.value),l.setAll({centerX:c,centerY:u,width:r,height:o}),this.setAll({x:t.x()+s*(d-.5)*h.cos(a)-s*(p-.5)*h.sin(a),y:t.y()+s*(p-.5)*h.cos(a)+s*(d-.5)*h.sin(a),width:r,height:o,rotation:a}),this.gripT.setAll({x:(.5-d)*r,y:-p*o}),this.gripB.setAll({x:(.5-d)*r,y:(1-p)*o}),this.gripL.setAll({x:-d*r,y:(.5-p)*o}),this.gripR.setAll({x:(1-d)*r,y:(.5-p)*o}),this.rectangle.setAll({width:r,height:o})}}}l.className="SpriteResizer",l.classNames=s.W.classNames.concat([l.className])},2036:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(4596),n=i(2132),r=i(5071),o=i(7652),a=i(7449);class h extends s.j{constructor(){super(...arguments),this.textStyle=this._root._renderer.makeTextStyle(),this._display=this._root._renderer.makeText("",this.textStyle),this._textStyles=["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}_updateBounds(){if(this.get("text")){super._updateBounds();let t=this.get("fillGradient");t&&(this._display.style.fill=t.getFill(this))}else{let t={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=t}}_changed(){super._changed(),this._display.clear();let t=this.textStyle;if(this.isDirty("opacity")){let t=this.get("opacity",1);this._display.alpha=t}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),"tooltip"==this.get("role")&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new a.ku((()=>{this._root._removeTooltipElement(this)}))),this.isDirty("width")&&(t.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(t.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(t.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(t.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(t.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(t.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){const e=this.get("fill"),i=this.get("fillGradient"),s=this.get("fillOpacity");if(i){if(e){const t=i.get("stops",[]);t.length&&r.each(t,(t=>{t.color&&!t.colorInherited||!e||(t.color=e,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=s,t.opacityInherited=!0)}))}t.fill=i.getFill(this)}else e&&(t.fill=e)}if(this.isDirty("fillOpacity")){let e=this.get("fillOpacity",1);e&&(t.fillOpacity=e)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(t.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(t.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),r.each(this._textStyles,(e=>{this._dirty[e]&&(t[e]=this.get(e),this.markDirtyBounds())})),t.fontSize=this.get("fontSize"),t.fontFamily=this.get("fontFamily"),this._display.style=t,this.isDirty("role")&&"tooltip"==this.get("role")&&this._root.updateTooltip(this)}_getText(){let t=this.get("text","");return this.get("maxChars")&&(t=o.truncateTextWithEllipsis(t,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?(0,n.q)(this,t):t}_getAccessibleText(){const t=this.get("ariaLabel");return void 0!==t?this.get("populateText")?(0,n.q)(this,t):t:this._getText()}markDirtyText(){this._display.text=this._getText(),"tooltip"==this.get("role")&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(t){super._setDataItem(t),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}h.className="Text",h.classNames=s.j.classNames.concat([h.className])},2438:function(t,e,i){"use strict";i.d(e,{d:function(){return n}});var s=i(2077);class n extends s.x{}n.className="Tick",n.classNames=s.x.classNames.concat([n.className])},2876:function(t,e,i){"use strict";i.d(e,{u:function(){return d}});var s=i(7449),n=i(962),r=i(8931),o=i(8777),a=i(6245),h=i(1112),l=i(751),c=i(5071),u=i(7652);class d extends o.W{constructor(t,e,i,s=[]){super(t,e,i,s),this._fx=0,this._fy=0,this._w=0,this._h=0,this._htmlContentHovered=!1}_afterNew(){this._settings.themeTags=u.mergeTags(this._settings.themeTags,["tooltip"]),super._afterNew(),this._setDefaultFn("background",(()=>r.i.new(this._root,{}))).set("themeTags",["tooltip","background"]),this._label=this.children.push(n._.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",(()=>{this._updateBackground()}))),this._disposers.push(this.on("bounds",(()=>{this._updateBackground()}))),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",(t=>{t&&(this._disposers.push(u.addEventListener(t,"pointerover",(t=>{this._htmlContentHovered=!0}))),this._disposers.push(u.addEventListener(t,"pointerout",(t=>{this._htmlContentHovered=!1}))))}))),this.on("visible",(t=>{this._handleReaderAnnouncement()})),this.label.events.on("dataitemchanged",(t=>{this._handleReaderAnnouncement()})),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),c.remove(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width"),null!=this.get("labelText")&&this.label.set("text",this.get("labelText")),null!=this.get("labelHTML")&&this.label.set("html",this.get("labelHTML")),null!=this.get("labelAriaLabel")&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover"))if(this.get("keepTargetHover")){const t=this.get("background");this._keepHoverDp=new s.FV([t.events.on("pointerover",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),e.hover())})),t.events.on("pointerout",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),this._htmlContentHovered||e.unhover())}))]),this.label.onPrivate("htmlElement",(e=>{this._keepHoverDp&&e&&this._keepHoverDp.disposers.push(u.addEventListener(e,"pointerleave",(e=>{const i=this.root._renderer.getEvent(e);t.events.dispatch("pointerout",{type:"pointerout",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))}))}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let t=this.get("tooltipTarget");const e=this.get("background");let i,s;if(t&&e){if(i=t.get("fill"),s=t.get("stroke"),null==i&&(i=s),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),null!=i&&e.set("fill",i),this._fillDp=t.on("fill",(t=>{null!=t&&(e.set("fill",t),this._updateTextColor(t))})),this._disposers.push(this._fillDp)),this.get("getFillGradientFromSprite")){this._fillGrDp&&this._fillGrDp.dispose();let i=t.get("fillGradient");null!=i&&e.set("fillGradient",i),this._fillGrDp=t.on("fillGradient",(t=>{null!=t&&e.set("fillGradient",t)})),this._disposers.push(this._fillGrDp)}this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),null!=i&&e.set("stroke",i),this._strokeDp=t.on("fill",(t=>{null!=t&&e.set("stroke",t)})),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),null!=i&&this.label.set("fill",i),this._labelDp=t.on("fill",(t=>{null!=t&&this.label.set("fill",t)})),this._disposers.push(this._labelDp))}this._updateTextColor(i)}_updateTextColor(t){this.get("autoTextColor")&&(null==t&&(t=this.get("background").get("fill")),null==t&&(t=this._root.interfaceColors.get("background")),t instanceof h.Il&&this.label.set("fill",h.Il.alternative(t,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(t){super._setDataItem(t),this.label._setDataItem(t)}_updateBackground(){super.updateBackground();const t=this._root.container;if(t){let e=.5,i=.5,s=this.get("centerX");s instanceof a.gG&&(e=s.value);let n=this.get("centerY");n instanceof a.gG&&(i=n.value);let o=t.width(),h=t.height(),c=this.parent,u=0,d=0;if(c){u=c.x(),d=c.y();const t=c.get("layerMargin");t&&(u+=t.left||0,d+=t.top||0,o+=(t.left||0)+(t.right||0),h+=(t.top||0)+(t.bottom||0))}const p=this.get("bounds",{left:-u,top:-d,right:o-u,bottom:h-d});this._updateBounds();let g=this.width(),f=this.height();0===g&&(g=this._w),0===f&&(f=this._h);let _=this.get("pointTo",{x:o/2,y:h/2}),m=_.x,y=_.y,v=this.get("pointerOrientation"),w=this.get("background"),b=0,x=0,D=0;w instanceof r.i&&(b=w.get("pointerLength",0),x=w.get("strokeWidth",0)/2,D=x,w.set("width",g),w.set("height",f));let k=0,T=0,M=p.right-p.left,E=p.bottom-p.top;"horizontal"==v||"left"==v||"right"==v?(x=0,"horizontal"==v?m>p.left+M/2?(m-=g*(1-e)+b,D*=-1):m+=g*e+b:"left"==v?m+=g*(1-e)+b:(m-=g*e+b,D*=-1)):(D=0,"vertical"==v?y>p.top+f/2+b?y-=f*(1-i)+b:(y+=f*i+b,x*=-1):"down"==v?y-=f*(1-i)+b:(y+=f*i+b,x*=-1)),m=l.fitToRange(m,p.left+g*e,p.left+M-g*(1-e))+D,y=l.fitToRange(y,p.top+f*i,p.top+E-f*(1-i))-x,k=_.x-m+g*e+D,T=_.y-y+f*i-x,this._fx=m,this._fy=y;const O=this.get("animationDuration",0);if(O>0&&this.get("visible")&&this.get("opacity")>.1){const t=this.get("animationEasing");this.animate({key:"x",to:m,duration:O,easing:t}),this.animate({key:"y",to:y,duration:O,easing:t})}else this.set("x",m),this.set("y",y);w instanceof r.i&&(w.set("pointerX",k),w.set("pointerY",T)),g>0&&(this._w=g),f>0&&(this._h=f)}}}d.className="Tooltip",d.classNames=o.W.classNames.concat([d.className])},941:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){const t=this.width(),e=this.height(),i=this._display;i.moveTo(-t/2,e/2),i.lineTo(0,-e/2),i.lineTo(t/2,e/2),i.lineTo(-t/2,e/2),i.closePath()}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Triangle",n.classNames=s.T.classNames.concat([n.className])},1706:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingTop",0),i=t.innerHeight(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minHeight",t.getPrivate("minHeight",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.height()),i-=e+t.get("marginTop",0)+t.get("marginBottom",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginTop",0)-t.get("marginBottom",0),n=t.get("minHeight",t.getPrivate("minHeight",-1/0)),r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("height",s)}else t._prevSettings.height instanceof r.gG&&t.setPrivate("height",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginTop",0),s=e.top,n=e.bottom,r=t.get("maxHeight");r&&n-s>r&&(n=s+r);let o=t.get("marginBottom",0),h=a+i-s;t.setPrivate("y",h),a=h+n+o}else t.setPrivate("y",void 0)}))}}o.className="VerticalLayout",o.classNames=s.A.classNames.concat([o.className])},6044:function(t,e,i){"use strict";i.d(e,{H:function(){return h}});var s=i(8777),n=i(8054),r=i(1479),o=i(7449),a=i(2647);class h extends s.W{constructor(){super(...arguments),this.homeButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["home"]})),this.plusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["plus"]})),this.minusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["minus"]}))}_afterNew(){super._afterNew(),this.set("position","absolute"),this.set("layout",this._root.verticalLayout),this.addTag("zoomtools"),this.plusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.minusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.homeButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("target")){const t=this.get("target"),e=this._prevSettings.target;t&&(t instanceof a.Y&&(this._targetDisposer=this.addDisposer(t.contents.on("scale",(e=>{e==t.get("minZoomLevel")?this.minusButton.set("disabled",!0):this.minusButton.set("disabled",!1),e==t.get("maxZoomLevel")?this.plusButton.set("disabled",!0):this.plusButton.set("disabled",!1)}))),this.root.events.once("frameended",(()=>{t.get("scale")==t.get("minZoomLevel")&&this.minusButton.set("disabled",!0)}))),this._disposer=new o.FV([this.plusButton.events.on("click",(()=>{t.zoomIn()})),this.minusButton.events.on("click",(()=>{t.zoomOut()})),this.homeButton.events.on("click",(()=>{t.goHome()}))])),e&&(this._disposer&&this._disposer.dispose(),this._targetDisposer&&this._targetDisposer.dispose())}}}h.className="ZoomTools",h.classNames=s.W.classNames.concat([h.className])},2647:function(t,e,i){"use strict";i.d(e,{Y:function(){return u}});var s=i(8777),n=i(6245),r=i(7142),o=i(1112),a=i(7652),h=i(751),l=i(256),c=i(5040);class u extends s.W{constructor(){super(...arguments),this._movePoints={},this._downScale=1,this._downX=0,this._downY=0,this.contents=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,x:0,y:0,draggable:!0,background:r.A.new(this._root,{fill:(0,o.$_)(16777215),fillOpacity:0})}))}_afterNew(){super._afterNew();const t=this.contents.events;this._disposers.push(t.on("pointerdown",(t=>{this._handleThisDown(t)}))),this._disposers.push(t.on("globalpointerup",(t=>{this._handleThisUp(t)}))),this._disposers.push(t.on("globalpointermove",(t=>{this._handleThisMove(t)})));const e=this.contents.get("background");e&&(e.adapters.add("width",(t=>20*Number(t))),e.adapters.add("height",(t=>20*Number(t))),e.adapters.add("x",(t=>Number(t)-e.width()/2)),e.adapters.add("y",(t=>Number(t)-e.height()/2)));const i=this.contents;i.adapters.add("x",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.width();t=Math.min(n*s,t),t=Math.max(this.width()-n*e*(1+s),t)}return t})),i.adapters.add("y",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.height();t=Math.min(n*s,t),t=Math.max(this.height()-n*e*(1+s),t)}return t}))}_prepareChildren(){super._prepareChildren(),this.isDirty("wheelable")&&this._handleSetWheel(),this.contents._display.cancelTouch=this.get("pinchZoom",!1)}_handleSetWheel(){this.get("wheelable")?(this._wheelDp&&this._wheelDp.dispose(),this._wheelDp=this.events.on("wheel",(t=>{const e=t.originalEvent;if(!a.isLocalEvent(e,this))return;e.preventDefault();const i=this.toLocal(t.point);this._handleWheelZoom(e.deltaY,i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_handleWheelZoom(t,e){let i=this.get("zoomStep",2),s=this.contents.get("scale",1),n=s;t>0?n=s/i:t<0&&(n=s*i),n!=s&&this.zoomToPoint(e,n)}zoomToPoint(t,e){e&&(e=h.fitToRange(e,this.get("minZoomLevel",1),this.get("maxZoomLevel",32)));const i=this.contents.get("scale",1);let s=t.x,n=t.y,r=s,o=n;const a=this.contents;let l=r-(s-a.x())/i*e,c=o-(n-a.y())/i*e;return this._animateTo(l,c,e),this._za}zoomIn(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)*this.get("zoomStep",2))}zoomOut(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)/this.get("zoomStep",2))}goHome(){return this._animateTo(0,0,1)}_animateTo(t,e,i){const s=this.get("animationDuration",0),n=this.get("animationEasing"),r=this.contents;this._txa=r.animate({key:"x",to:t,duration:s,easing:n}),this._tya=r.animate({key:"y",to:e,duration:s,easing:n}),this._za=r.animate({key:"scale",to:i,duration:s,easing:n})}_handleThisUp(t){this._downPoints={}}_handleThisDown(t){const e=this.contents;this._downScale=e.get("scale",1);const i=e._downPoints;let s=l.keys(i).length;if(1==s){let e=i[1];e||(e=i[0]),e&&e.x==t.point.x&&e.y==t.point.y&&(s=0)}if(s>0){this._downX=e.x(),this._downY=e.y();const t=e._getDownPointId();if(t){let i=this._movePoints[t];i&&(e._downPoints[t]=i)}}}_handleThisMove(t){const e=t.originalEvent.pointerId;this.get("pinchZoom")&&e&&(this._movePoints[e]=t.point,l.keys(this.contents._downPoints).length>1)&&this._handlePinch()}_handlePinch(){let t=0,e=[],i=[];if(l.each(this.contents._downPoints,((s,n)=>{e[t]=n;let r=this._movePoints[s];r&&(i[t]=r),t++})),e.length>1&&i.length>1){this.contents._isDragging=!1;let t=e[0],s=e[1],n=i[0],r=i[1];if(t&&s&&n&&r){t=this.toLocal(t),s=this.toLocal(s),n=this.toLocal(n),r=this.toLocal(r);let e=Math.hypot(s.x-t.x,s.y-t.y),i=Math.hypot(r.x-n.x,r.y-n.y)/e*this._downScale,o={x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2},a={x:t.x+(s.x-t.x)/2,y:t.y+(s.y-t.y)/2},h=this._downX||0,l=this._downY||0,c=this._downScale,u=o.x-(-h+a.x)/c*i,d=o.y-(-l+a.y)/c*i;this.contents.setAll({x:u,y:d,scale:i})}}}}u.className="ZoomableContainer",u.classNames=s.W.classNames.concat([u.className])},4102:function(t,e,i){"use strict";i.d(e,{mM:function(){return at},uK:function(){return rt}});var s=i(4680),n=i(1112);class r{constructor(t=1,e=0,i=0,s=1,n=0,r=0){this.a=t,this.b=e,this.c=i,this.d=s,this.tx=n,this.ty=r}setTransform(t,e,i,s,n,r=1){this.a=Math.cos(n)*r,this.b=Math.sin(n)*r,this.c=-Math.sin(n)*r,this.d=Math.cos(n)*r,this.tx=t-(i*this.a+s*this.c),this.ty=e-(i*this.b+s*this.d)}apply(t){return{x:this.a*t.x+this.c*t.y+this.tx,y:this.b*t.x+this.d*t.y+this.ty}}applyInverse(t){const e=1/(this.a*this.d+this.c*-this.b);return{x:this.d*e*t.x+-this.c*e*t.y+(this.ty*this.c-this.tx*this.d)*e,y:this.a*e*t.y+-this.b*e*t.x+(-this.ty*this.a+this.tx*this.b)*e}}append(t){const e=this.a,i=this.b,s=this.c,n=this.d;this.a=t.a*e+t.b*s,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*s,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*s+this.tx,this.ty=t.tx*i+t.ty*n+this.ty}prepend(t){const e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){const e=this.a,i=this.c;this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty}copyFrom(t){this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty}}var o=i(6245),a=i(7449),h=i(7255),l=i(7652),c=i(5071),u=i(256),d=i(5040),p=i(751),g=2*Math.PI,f=function(t,e,i,s,n,r,o){var a=t.x,h=t.y;return{x:s*(a*=e)-n*(h*=i)+r,y:n*a+s*h+o}},_=function(t,e){var i=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),s=Math.cos(t),n=Math.sin(t),r=Math.cos(t+e),o=Math.sin(t+e);return[{x:s-n*i,y:n+s*i},{x:r+o*i,y:o-r*i},{x:r,y:o}]},m=function(t,e,i,s){var n=t*i+e*s;return n>1&&(n=1),n<-1&&(n=-1),(t*s-e*i<0?-1:1)*Math.acos(n)},y=function(t){var e=t.px,i=t.py,s=t.cx,n=t.cy,r=t.rx,o=t.ry,a=t.xAxisRotation,h=void 0===a?0:a,l=t.largeArcFlag,c=void 0===l?0:l,u=t.sweepFlag,d=void 0===u?0:u,p=[];if(0===r||0===o)return[];var y=Math.sin(h*g/360),v=Math.cos(h*g/360),w=v*(e-s)/2+y*(i-n)/2,b=-y*(e-s)/2+v*(i-n)/2;if(0===w&&0===b)return[];r=Math.abs(r),o=Math.abs(o);var x=Math.pow(w,2)/Math.pow(r,2)+Math.pow(b,2)/Math.pow(o,2);x>1&&(r*=Math.sqrt(x),o*=Math.sqrt(x));var D=function(t,e,i,s,n,r,o,a,h,l,c,u){var d=Math.pow(n,2),p=Math.pow(r,2),f=Math.pow(c,2),_=Math.pow(u,2),y=d*p-d*_-p*f;y<0&&(y=0),y/=d*_+p*f;var v=(y=Math.sqrt(y)*(o===a?-1:1))*n/r*u,w=y*-r/n*c,b=l*v-h*w+(t+i)/2,x=h*v+l*w+(e+s)/2,D=(c-v)/n,k=(u-w)/r,T=(-c-v)/n,M=(-u-w)/r,E=m(1,0,D,k),O=m(D,k,T,M);return 0===a&&O>0&&(O-=g),1===a&&O<0&&(O+=g),[b,x,E,O]}(e,i,s,n,r,o,c,d,y,v,w,b),k=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],s=!0,n=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);s=!0);}catch(t){n=!0,r=t}finally{try{!s&&a.return&&a.return()}finally{if(n)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(D,4),T=k[0],M=k[1],E=k[2],O=k[3],P=Math.abs(O)/(g/4);Math.abs(1-P)<1e-7&&(P=1);var S=Math.max(Math.ceil(P),1);O/=S;for(var N=0;N1){const e=/^([01])([01])(.*)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t.splice(i,0,e[2]),++i,e[3].length>0?t[i]=e[3]:t.splice(i,1))}if(++i,s=t[i],s.length>1){const e=/^([01])(.+)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t[i]=e[2])}}}function D(t){if(0===t||1===t)return t;throw new Error("Flag must be 0 or 1")}function k(t,e){for(;(!t.interactive||e(t))&&t._parent;)t=t._parent}function T(t,e,i){return l.addEventListener(t,l.getRendererEvent(e),(t=>{const e=l.getEventTarget(t);let s=t.touches;s?(0==s.length&&(s=t.changedTouches),i(c.copy(s),e)):i([t],e)}))}function M(t){const e=document.createElement("canvas");e.width=1,e.height=1;const i=e.getContext("2d",{willReadFrequently:!0});i.drawImage(t,0,0,1,1);try{return i.getImageData(0,0,1,1),!1}catch(e){return console.warn('Image "'+t.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function E(t){t.width=0,t.height=0,t.style.width="0px",t.style.height="0px"}function O(t){return Math.floor(t)+.5}class P{constructor(){this._x=0,this._y=0}get x(){return this._x}get y(){return this._y}set x(t){this._x=t}set y(t){this._y=t}}class S extends a.KK{constructor(t){super(),this.mask=null,this.visible=!0,this.exportable=!0,this.interactive=!1,this.inactive=null,this.wheelable=!1,this.cancelTouch=!1,this.isMeasured=!1,this.buttonMode=!1,this.alpha=1,this.compoundAlpha=1,this.angle=0,this.scale=1,this.x=0,this.y=0,this.crisp=!1,this.pivot=new P,this._localMatrix=new r,this._matrix=new r,this._uMatrix=new r,this._renderer=t}subStatus(t){return{inactive:null==this.inactive?t.inactive:this.inactive,layer:this._layer||t.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let t=this;for(;;){if(t._layer)return t._layer;if(!t._parent)return this._renderer.defaultLayer;t=t._parent}}setLayer(t,e){if(null==t)this._layer=void 0;else{const i=!0;this._layer=this._renderer.getLayer(t,i),this._layer.visible=i,this._layer.margin=e,e&&l.setInteractive(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost()}}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(t){}_getColorId(){return void 0===this._colorId&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(t){return!t.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(t){return this._isInteractive(t)}contains(t){for(;;){if(t===this)return!0;if(!t._parent)return!1;t=t._parent}}toGlobal(t){return this._matrix.apply(t)}toLocal(t){return this._matrix.applyInverse(t)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){if(!this._localBounds){const t=1e7;this._localBounds={left:t,top:t,right:-t,bottom:-t},this._addBounds(this._localBounds)}return this._localBounds}getAdjustedBounds(t){this._setMatrix();const e=this.getLocalMatrix(),i=e.apply({x:t.left,y:t.top}),s=e.apply({x:t.right,y:t.top}),n=e.apply({x:t.right,y:t.bottom}),r=e.apply({x:t.left,y:t.bottom});return{left:Math.min(i.x,s.x,n.x,r.x),top:Math.min(i.y,s.y,n.y,r.y),right:Math.max(i.x,s.x,n.x,r.x),bottom:Math.max(i.y,s.y,n.y,r.y)}}on(t,e,i){return this.interactive?this._renderer._addEvent(this,t,e,i):new a.ku((()=>{}))}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(t,e){const i=this._matrix;let s=i.tx*e,n=i.ty*e;this.crisp&&(s=O(s),n=O(n)),t.setTransform(i.a*e,i.b*e,i.c*e,i.d*e,s,n)}_transformMargin(t,e,i){const s=this._matrix;t.setTransform(s.a*e,s.b*e,s.c*e,s.d*e,(s.tx+i.left)*e,(s.ty+i.top)*e)}_transformLayer(t,e,i){i.margin?this._transformMargin(t,i.scale||e,i.margin):this._transform(t,i.scale||e)}render(t,e=0){if(this.visible&&(!1!==this.exportable||!this._renderer._omitTainted)){this._setMatrix();const i=this.subStatus(t),s=this._renderer.resolution,n=this._renderer.layers,r=this._renderer._ghostLayer,o=r.context,a=this.mask;a&&a._setMatrix(),c.each(n,(t=>{if(t){const e=t.context;e.save(),a&&(a._transformLayer(e,s,t),a._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(e,s,t),this.filter&&(e.filter=this.filter)}})),o.save(),a&&this._isInteractiveMask(i)&&(a._transformMargin(o,s,r.margin),a._runPath(o),o.clip()),this._transformMargin(o,s,r.margin),i.layer.order>0&&!e&&c.move(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,e),o.restore(),c.each(n,(t=>{t&&t.context.restore()}))}}_render(t,e=0){!1===this.exportable&&(t.layer.tainted=!0)}_ghostOnly(t=0){return t>0}_drawGhost(t,e=0){const i=this._isInteractive(t),s=t.layer.order||0;return!(!i||(0!=s||this._ghostOnly(e))&&s!=e)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some((t=>t.value===this))}shouldCancelTouch(){const t=this._renderer;return!(t.tapToActivate&&!t._touchActive)&&(!!this.cancelTouch||!!this._parent&&this._parent.shouldCancelTouch())}}class N extends S{constructor(){super(...arguments),this.interactiveChildren=!0,this._children=[]}_isInteractiveMask(t){return this.interactiveChildren||super._isInteractiveMask(t)}addChild(t){t._parent=this,this._children.push(t),t._layer&&this.registerChildLayer(t._layer)}addChildAt(t,e){t._parent=this,this._children.splice(e,0,t),t._layer&&this.registerChildLayer(t._layer)}removeChild(t){t._parent=void 0,c.removeFirst(this._children,t)}_render(t,e){super._render(t);const i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,c.each(this._children,(i=>{i.compoundAlpha=this.compoundAlpha*this.alpha,i.render(t,e)})),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(t){this._childLayers||(this._childLayers=[]),c.pushOne(this._childLayers,t),this._parent&&this._parent.registerChildLayer(t)}markDirtyLayer(t=!1){super.markDirtyLayer(),t&&this._childLayers&&c.each(this._childLayers,(t=>t.dirty=!0))}_dispose(){super._dispose(),this._childLayers&&c.each(this._childLayers,(t=>{t.dirty=!0}))}}function C(t,e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.right=Math.max(t.right,e.x),t.bottom=Math.max(t.bottom,e.y)}class L{colorize(t,e){}colorizeGhost(t,e){this.colorize(t,e)}path(t){}pathGhost(t){this.path(t)}addBounds(t){}}class A extends L{colorize(t,e){t.beginPath()}}class R extends L{constructor(t){super(),this.color=t}colorize(t,e){t.fillStyle=void 0!==e?e:this.color}}class U extends L{constructor(t){super(),this.clearShadow=t}colorize(t,e){t.fill(),this.clearShadow&&(t.shadowColor="",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}}class B extends L{colorize(t,e){t.stroke()}}class F extends L{constructor(t,e,i,s){super(),this.width=t,this.color=e,this.lineJoin=i,this.lineCap=s}colorize(t,e){t.strokeStyle=void 0!==e?e:this.color,t.lineWidth=this.width,this.lineJoin&&(t.lineJoin=this.lineJoin),this.lineCap&&(t.lineCap=this.lineCap)}}class I extends L{constructor(t){super(),this.dash=t}colorize(t,e){t.setLineDash(this.dash)}}class H extends L{constructor(t){super(),this.dashOffset=t}colorize(t,e){t.lineDashOffset=this.dashOffset}}class z extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.width=i,this.height=s}path(t){t.rect(this.x,this.y,this.width,this.height)}addBounds(t){const e=this.x,i=this.y,s=e+this.width,n=i+this.height;C(t,{x:e,y:i}),C(t,{x:s,y:i}),C(t,{x:e,y:n}),C(t,{x:s,y:n})}}class G extends L{constructor(t,e,i){super(),this.x=t,this.y=e,this.radius=i}path(t){t.moveTo(this.x+this.radius,this.y),t.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radius,y:this.y-this.radius}),C(t,{x:this.x+this.radius,y:this.y+this.radius})}}class V extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.radiusX=i,this.radiusY=s}path(t){t.ellipse(0,0,this.radiusX,this.radiusY,0,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radiusX,y:this.y-this.radiusY}),C(t,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class W extends L{constructor(t,e,i,s,n,r){super(),this.cx=t,this.cy=e,this.radius=i,this.startAngle=s,this.endAngle=n,this.anticlockwise=r}path(t){this.radius>0&&t.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(t){let e=p.getArcBounds(this.cx,this.cy,this.startAngle*p.DEGREES,this.endAngle*p.DEGREES,this.radius);C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}class Y extends L{constructor(t,e,i,s,n){super(),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.radius=n}path(t){this.radius>0&&t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(t){}}class j extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.lineTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class X extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.moveTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class $ extends L{path(t){t.closePath()}}class Z extends L{constructor(t,e,i,s,n,r){super(),this.cpX=t,this.cpY=e,this.cpX2=i,this.cpY2=s,this.toX=n,this.toY=r}path(t){t.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.cpX2,y:this.cpY2}),C(t,{x:this.toX,y:this.toY})}}class K extends L{constructor(t,e,i,s){super(),this.cpX=t,this.cpY=e,this.toX=i,this.toY=s}path(t){t.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.toX,y:this.toY})}}class q extends L{constructor(t,e,i,s,n){super(),this.color=t,this.blur=e,this.offsetX=i,this.offsetY=s,this.opacity=n}colorize(t,e){this.opacity&&(t.fillStyle=this.color),t.shadowColor=this.color,t.shadowBlur=this.blur,t.shadowOffsetX=this.offsetX,t.shadowOffsetY=this.offsetY}colorizeGhost(t,e){}}class Q extends L{constructor(t,e,i,s,n){super(),this.image=t,this.width=e,this.height=i,this.x=s,this.y=n}path(t){t.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(t){C(t,{x:this.x,y:this.y}),C(t,{x:this.width,y:this.height})}}class J extends S{constructor(){super(...arguments),this._operations=[],this.blendMode=s.b.NORMAL,this._hasShadows=!1}clear(){super.clear(),this._operations.length=0}_pushOp(t){this._operations.push(t)}beginFill(t,e=1){this._fillAlpha=e,t?t instanceof n.Il?this._pushOp(new R(t.toCSS(e))):(this.isMeasured=!0,this._pushOp(new R(t))):this._pushOp(new R("rgba(0, 0, 0, "+e+")"))}endFill(){this._pushOp(new U(this._hasShadows))}endStroke(){this._pushOp(new B)}beginPath(){this._pushOp(new A)}lineStyle(t=0,e,i=1,s,r){this._strokeAlpha=i,e?e instanceof n.Il?this._pushOp(new F(t,e.toCSS(i),s,r)):this._pushOp(new F(t,e,s,r)):this._pushOp(new F(t,"rgba(0, 0, 0, "+i+")",s,r))}setLineDash(t){this._pushOp(new I(t||[]))}setLineDashOffset(t=0){this._pushOp(new H(t))}drawRect(t,e,i,s){this._pushOp(new z(t,e,i,s))}drawCircle(t,e,i){this._pushOp(new G(t,e,i))}drawEllipse(t,e,i,s){this._pushOp(new V(t,e,i,s))}arc(t,e,i,s,n,r=!1){this._pushOp(new W(t,e,i,s,n,r))}arcTo(t,e,i,s,n){this._pushOp(new Y(t,e,i,s,n))}lineTo(t,e){this._pushOp(new j(t,e))}moveTo(t,e){this._pushOp(new X(t,e))}bezierCurveTo(t,e,i,s,n,r){this._pushOp(new Z(t,e,i,s,n,r))}quadraticCurveTo(t,e,i,s){this._pushOp(new K(t,e,i,s))}closePath(){this._pushOp(new $)}shadow(t,e=0,i=0,s=0,n){this._hasShadows=!0,this._pushOp(new q(n?t.toCSS(n):t.toCSS(this._fillAlpha||this._strokeAlpha),e,i,s))}image(t,e,i,s,n){this._pushOp(new Q(t,e,i,s,n))}svgPath(t){let e=0,i=0,s=null,n=null,r=null,o=null;const a=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,h=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g,l=this._operations.length;try{let l;for(;null!==(l=a.exec(t));){const t=l[1],a=l[2],u=[];for(;null!==(l=h.exec(a));)u.push(l[1]);switch("S"!==t&&"s"!==t&&"C"!==t&&"c"!==t&&(s=null,n=null),"Q"!==t&&"q"!==t&&"T"!==t&&"t"!==t&&(r=null,o=null),t){case"M":b(t,u.length,2),e=+u[0],i=+u[1],this.moveTo(e,i);for(let t=2;t{this.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y),e=t.x,i=t.y}))}break;case"Z":case"z":v(t,u.length,0),this.closePath()}}}catch(e){this._operations.length=l,console.warn("Error when parsing svgPath:\n "+e.message+"\n"+t)}}_runPath(t){t.beginPath(),c.each(this._operations,(e=>{e.path(t)}))}_render(t,e=0){super._render(t);const i=t.layer.dirty,s=this._isInteractive(t),n=this._ghostOnly(e),r=this._drawGhost(t,e);if(i||s||n){const e=t.layer.context,s=this._renderer._ghostLayer.context;let o;i&&!n&&(e.globalCompositeOperation=this.blendMode,e.beginPath()),r&&(s.beginPath(),o=this._getColorId()),c.each(this._operations,(t=>{i&&!n&&(t.path(e),t.colorize(e,void 0)),r&&(t.pathGhost(s),t.colorizeGhost(s,o))}))}}renderDetached(t){if(this.visible){this._setMatrix(),t.save();const e=this.mask;e&&(e._setMatrix(),e._transform(t,1),e._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transform(t,1),this.filter&&(t.filter=this.filter),t.globalCompositeOperation=this.blendMode,t.beginPath(),c.each(this._operations,(e=>{e.path(t),e.colorize(t,void 0)})),t.restore()}}_addBounds(t){this.visible&&this.isMeasured&&c.each(this._operations,(e=>{e.addBounds(t)}))}}class tt extends S{constructor(t,e,i){super(t),this.resolution=1,this.textVisible=!0,this._originalScale=1,this.text=e,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_shared(t){this.style.textAlign&&(t.textAlign=this.style.textAlign),this.style.direction&&(t.direction=this.style.direction),this.style.textBaseline&&(t.textBaseline=this.style.textBaseline)}_prerender(t,e=!1,i=!1){super._render(t);const s=t.layer.context,r=this._renderer._ghostLayer.context,o=this.style;let a=this._getFontStyle(void 0,i);s.font=a,this._isInteractive(t)&&!e&&(r.font=a),o.fill&&(o.fill instanceof n.Il?s.fillStyle=o.fill.toCSS(null!=o.fillOpacity?o.fillOpacity:1):s.fillStyle=o.fill),o.shadowColor&&(t.layer.context.shadowColor=o.shadowColor.toCSS(o.shadowOpacity||1)),o.shadowBlur&&(t.layer.context.shadowBlur=o.shadowBlur),o.shadowOffsetX&&(t.layer.context.shadowOffsetX=o.shadowOffsetX),o.shadowOffsetY&&(t.layer.context.shadowOffsetY=o.shadowOffsetY),this._shared(s),this._isInteractive(t)&&!e&&(r.fillStyle=this._getColorId(),this._shared(r))}_getFontStyle(t,e=!1){const i=this.style;let s=[];return t&&t.fontVariant?s.push(t.fontVariant):i.fontVariant&&s.push(i.fontVariant),e||(t&&t.fontWeight?s.push(t.fontWeight):i.fontWeight&&s.push(i.fontWeight)),t&&t.fontStyle?s.push(t.fontStyle):i.fontStyle&&s.push(i.fontStyle),t&&t.fontSize?(d.isNumber(t.fontSize)&&(t.fontSize=t.fontSize+"px"),s.push(t.fontSize)):i.fontSize&&(d.isNumber(i.fontSize)&&(i.fontSize=i.fontSize+"px"),s.push(i.fontSize)),t&&t.fontFamily?s.push(t.fontFamily):i.fontFamily?s.push(i.fontFamily):s.length&&s.push("Arial"),s.join(" ")}_render(t,e=0){if(this._textInfo||this._measure(t),this.textVisible){const i=this._isInteractive(t),s=t.layer.context,r=t.layer.dirty,o=this._renderer._ghostLayer.context,a=this._ghostOnly(e),l=this._drawGhost(t,e);s.save(),o.save(),this._prerender(t),c.each(this._textInfo,((e,u)=>{c.each(e.textChunks,((c,u)=>{if(c.style&&(s.save(),o.save(),a||(s.font=c.style),this._isInteractive(t)&&(o.font=c.style)),c.fill&&(s.save(),a||(s.fillStyle=c.fill.toCSS())),r&&!a&&s.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),"underline"==c.textDecoration||"line-through"==c.textDecoration){let t=1,i=1,r=c.height;const o=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(o)>-1){const t=this._measureText(c.text,s);c.width=t.actualBoundingBoxLeft+t.actualBoundingBoxRight}let l,u=c.offsetX;switch(this.style.textAlign){case"right":case"end":u-=c.width;break;case"center":u-=c.width/2}if(c.style)switch(h.V.getTextStyle(c.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":t=2}r&&(i=r/20),l="line-through"==c.textDecoration?t+e.offsetY+c.offsetY-c.height/2:t+1.5*i+e.offsetY+c.offsetY,a||(s.save(),s.beginPath(),c.fill?s.strokeStyle=c.fill.toCSS():this.style.fill&&this.style.fill instanceof n.Il&&(s.strokeStyle=this.style.fill.toCSS()),s.lineWidth=t*i,s.moveTo(u,l),s.lineTo(u+c.width,l),s.stroke(),s.restore())}i&&this.interactive&&l&&o.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),c.fill&&s.restore(),c.style&&(s.restore(),o.restore())}))})),s.restore(),o.restore()}}_addBounds(t){if(this.visible&&this.isMeasured){const e=this._measure({inactive:this.inactive,layer:this.getLayer()});C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction;this._textInfo=[];const n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=d.isNumber(r)&&("wrap"==n||"wrap-no-break"==n);e.save(),i.save(),this._prerender(t,!0,this._ignoreFontWeight());const p="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",g=this.text.toString().replace(/\r/g,"").split(/\n/);let f,_=!0,m=0,y=0,v=0;c.each(g,((t,s)=>{let n;for(n=""==t?[{type:"value",text:""}]:h.V.chunk(t,!1,this.style.ignoreFormatting);n.length>0;){let t={offsetY:v,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const s=this._measureText(p,e),g=s.actualBoundingBoxAscent+s.actualBoundingBoxDescent;let w;t.height=g,t.ascent=s.actualBoundingBoxAscent;let b,x,D,k=this.style.textDecoration,T=!1,M=!0,E=[];c.eachContinue(n,((s,o)=>{if("format"==s.type)if("[/]"==s.text)_||(e.restore(),i.restore(),_=!0),b=void 0,f=void 0,x=void 0,k=this.style.textDecoration,D=void 0,w=s.text;else{_||(e.restore(),i.restore());let n=h.V.getTextStyle(s.text);const r=this._getFontStyle(n);e.save(),i.save(),e.font=r,f=r,w=s.text,n.textDecoration&&(k=n.textDecoration),n.fill&&(b=n.fill),n.width&&(x=d.toNumber(n.width)),n.verticalAlign&&(D=n.verticalAlign),_=!1;const o=this._measureText(p,e),a=o.actualBoundingBoxAscent+o.actualBoundingBoxDescent;a>t.height&&(t.height=a),o.actualBoundingBoxAscent>t.ascent&&(t.ascent=o.actualBoundingBoxAscent)}else if("value"==s.type&&!T){const i=this._measureText(s.text,e);let h=i.actualBoundingBoxLeft+i.actualBoundingBoxRight;if(a){this.truncated=void 0;let i=M||this.style.breakWords||!1;const n=this.style.ellipsis||"",o=this._measureText(n,e),a=o.actualBoundingBoxLeft+o.actualBoundingBoxRight;if(t.width+h>r){const o=r-t.width-a;s.text=this._truncateText(e,s.text,o,i),s.text+=n,T=!0,this.truncated=!0}}else if(u&&t.width+h>r){const i=r-t.width,a=this._truncateText(e,s.text,i,!1,M&&"wrap-no-break"!=this.style.oversizedBehavior);if(""==a)return this.textVisible=!0,!1;E=n.slice(o+1),l.trim(a)!=l.trim(s.text)&&(E.unshift({type:"value",text:s.text.substr(a.length)}),w&&E.unshift({type:"format",text:w})),s.text=l.trim(a),n=[],T=!0}let c=1,d=1;if(f&&x&&x>h){const t=h/x;switch(this.style.textAlign){case"right":case"end":c=t;break;case"center":c=t,d=t;break;default:d=t}h=x}const p=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent;p>t.height&&(t.height=p),i.actualBoundingBoxAscent>t.ascent&&(t.ascent=i.actualBoundingBoxAscent),t.width+=h,t.left+=i.actualBoundingBoxLeft/c,t.right+=i.actualBoundingBoxRight/d,t.textChunks.push({style:f,fill:b,text:s.text,width:h,height:p,left:i.actualBoundingBoxLeft,right:i.actualBoundingBoxRight,ascent:i.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:k,verticalAlign:D}),M=!1}return!0})),this.style.lineHeight instanceof o.gG?(t.height*=this.style.lineHeight.value,t.ascent*=this.style.lineHeight.value):(t.height*=this.style.lineHeight||1.2,t.ascent*=this.style.lineHeight||1.2),m{let i=0;c.each(t.textChunks,(e=>{if(e.offsetX=i+e.left-t.left,e.offsetY+=t.height-t.height*(this.style.baselineRatio||.19),i+=e.width*(s?-1:1),e.verticalAlign)switch(e.verticalAlign){case"super":e.offsetY-=t.height/2-e.height/2;break;case"sub":e.offsetY+=e.height/2}}))}));const w={left:s?-y:-m,top:0,right:s?m:y,bottom:v};if("none"!==n){const t=this._fitRatio(w);if(t<1)if("fit"==n)d.isNumber(this.style.minScale)&&ti&&""!=e);return e}_measureText(t,e){let i=e.measureText(t),s={};if(null==i.actualBoundingBoxAscent){const e=document.createElement("div");e.innerText=t,e.style.visibility="hidden",e.style.position="absolute",e.style.top="-1000000px;",e.style.fontFamily=this.style.fontFamily||"",e.style.fontSize=this.style.fontSize+"",document.body.appendChild(e);const n=e.getBoundingClientRect();document.body.removeChild(e);const r=n.height,o=i.width;s={actualBoundingBoxAscent:r,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:o,fontBoundingBoxAscent:r,fontBoundingBoxDescent:0,width:o}}else s={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const n=i.width;switch(this.style.textAlign){case"right":case"end":s.actualBoundingBoxLeft=n,s.actualBoundingBoxRight=0;break;case"center":s.actualBoundingBoxLeft=n/2,s.actualBoundingBoxRight=n/2;break;default:s.actualBoundingBoxLeft=0,s.actualBoundingBoxRight=n}return s}}class et{constructor(){this.lineHeight=(0,o.aQ)(120),this.baselineRatio=.19,this.oversizedBehavior="none",this.breakWords=!1,this.ellipsis="…",this.ignoreFormatting=!1}}class it extends tt{constructor(){super(...arguments),this.textType="circular",this.inside=!1,this.orientation="auto",this.kerning=0,this._textReversed=!1}_render(t,e=0){"circular"===this.textType?this._renderCircular(t,e):super._render(t,e)}_renderCircular(t,e=0){if(this.textVisible){this._prerender(t);const i=this._isInteractive(t),s=t.layer.context,n=t.layer.dirty,r=this._renderer._ghostLayer.context;s.save(),i&&r.save(),this._textInfo||this._measure(t);let o=this.radius||0,a=this.startAngle||0,h=0,l=this.orientation,u="auto"==l?"auto":"inward"==l;const d=this.inside,g=this.style.textAlign||"left",f=this.kerning||0;let _="left"==g?1:-1;const m=!this._textReversed,y=this._ghostOnly(e),v=this._drawGhost(t,e);if("auto"==u){let t=0,e=0;c.each(this._textInfo,((e,i)=>{const s=a+e.width/(o-e.height)/2*-_;s>t&&(t=s)})),e="left"==g?(t+h/2)*p.DEGREES:"right"==g?(t-h/2)*p.DEGREES:a*p.DEGREES,e=p.normalizeAngle(e),u=e>=270||e<=90}1==u&&m&&(this._textInfo.reverse(),this._textReversed=!0),c.each(this._textInfo,((t,e)=>{const l=t.height;d||(o+=l),(-1==_&&u||1==_&&!u)&&m&&t.textChunks.reverse();let p=a;h=0,"center"==g&&(p+=t.width/(o-l)/2*-_,h=p-a),p+=Math.PI*(u?0:1),s.save(),i&&r.save(),y||s.rotate(p),i&&r.rotate(p);let w=0;c.each(t.textChunks,((t,e)=>{const a=t.text,h=t.width;w=h/2/(o-l)*_,y||s.rotate(w),i&&r.rotate(w),t.style&&(s.save(),r.save(),y||(s.font=t.style),i&&(r.font=t.style)),t.fill&&(s.save(),y||(s.fillStyle=t.fill.toCSS())),y||(s.textBaseline="middle",s.textAlign="center"),i&&(r.textBaseline="middle",r.textAlign="center"),n&&!y&&s.fillText(a,0,(u?1:-1)*(0-o+l/2)),i&&v&&r.fillText(a,0,(u?1:-1)*(0-o+l/2)),t.fill&&s.restore(),t.style&&(s.restore(),r.restore()),w=(h/2+f)/(o-l)*_,y||s.rotate(w),i&&r.rotate(w)})),s.restore(),i&&r.restore(),d&&(o-=l)})),s.restore(),i&&r.restore()}}_measure(t){return"circular"===this.textType?this._measureCircular(t):super._measure(t)}_measureCircular(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction,n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=this.style.ellipsis||"";let p;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,e.save(),i.save(),this._prerender(t,!0);const g=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,_=0,m=0;return c.each(g,((t,n)=>{let g,y,v,w=h.V.chunk(t,!1,this.style.ignoreFormatting),b={offsetY:m,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};c.each(w,((t,n)=>{if("format"==t.type){if("[/]"==t.text)f||(e.restore(),i.restore(),f=!0),y=void 0,g=void 0,v=void 0;else{let s=h.V.getTextStyle(t.text);const n=this._getFontStyle(s);e.save(),i.save(),e.font=n,g=n,s.fill&&(y=s.fill),s.width&&(v=d.toNumber(s.width)),f=!1}a&&(p=this._measureText(u,e))}else if("value"==t.type){let i=t.text.match(/./gu)||[];s&&(i=l.splitString(t.text),i.reverse());for(let t=0;to&&(o=v);const h=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;if(h>b.height&&(b.height=h),n.actualBoundingBoxAscent>b.ascent&&(b.ascent=n.actualBoundingBoxAscent),_+=o,a){p||(p=this._measureText(u,e));const t=p.actualBoundingBoxLeft+p.actualBoundingBoxRight;if(_+t>r){1==b.textChunks.length?this.textVisible=!1:(b.width+=t,b.left+=p.actualBoundingBoxLeft,b.right+=p.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:u,width:t,height:h+p.actualBoundingBoxDescent,left:p.actualBoundingBoxLeft,right:p.actualBoundingBoxRight,ascent:p.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0}));break}}b.width+=o,b.left+=n.actualBoundingBoxLeft,b.right+=n.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:s,width:o,height:h+n.actualBoundingBoxDescent,left:n.actualBoundingBoxLeft,right:n.actualBoundingBoxRight,ascent:n.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0})}}})),this.style.lineHeight instanceof o.gG?b.height*=this.style.lineHeight.value:b.height*=this.style.lineHeight||1.2,this._textInfo.push(b),m+=b.height})),f||(e.restore(),i.restore()),"hide"==n&&_>r&&(this.textVisible=!1),c.each(this._textInfo,(t=>{c.each(t.textChunks,(e=>{e.offsetY+=Math.round((t.height-e.height+(t.ascent-e.ascent))/2)}))})),e.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class st extends S{constructor(t,e){super(t),this.image=e}_dispose(){super._dispose(),this._imageMask&&E(this._imageMask)}getLocalBounds(){if(!this._localBounds){let t=0,e=0;this.width&&(t=this.width),this.height&&(e=this.height),this._localBounds={left:0,top:0,right:t,bottom:e},this._addBounds(this._localBounds)}return this._localBounds}_render(t,e=0){if(super._render(t),this.image){if(void 0===this.tainted&&(this.tainted=M(this.image),t.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;const i=this._ghostOnly(e),s=this._drawGhost(t,e);if(t.layer.dirty&&!i){this.shadowColor&&(t.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(t.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(t.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(t.layer.context.shadowOffsetY=this.shadowOffsetY);const e=this.width||this.image.naturalWidth,i=this.height||this.image.naturalHeight;t.layer.context.drawImage(this.image,0,0,e,i)}if(this.interactive&&this._isInteractive(t)&&s){const t=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(t,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(t){if(void 0===this._imageMask){const e=this.width||t.naturalWidth,i=this.height||t.naturalHeight,s=document.createElement("canvas");s.width=e,s.height=i;const n=s.getContext("2d");n.imageSmoothingEnabled=!1,n.fillStyle=this._getColorId(),n.fillRect(0,0,e,i),M(t)||(n.globalCompositeOperation="destination-in",n.drawImage(t,0,0,e,i)),this._imageMask=s}return this._imageMask}}class nt{constructor(t,e,i,s){this.event=t,this.originalPoint=e,this.point=i,this.bbox=s,this.simulated=!1,this.native=!0,l.supports("touchevents")&&t instanceof Touch?this.id=t.identifier:this.id=null}}class rt extends a.rk{constructor(t){if(super(),this.view=document.createElement("div"),this._layerDom=document.createElement("div"),this.layers=[],this._dirtyLayers=[],this.defaultLayer=this.getLayer(0),this._ghostLayer=new ot,this._deferredGhostLayers=[],this._patternCanvas=document.createElement("canvas"),this._patternContext=this._patternCanvas.getContext("2d"),this._realWidth=0,this._realHeight=0,this._calculatedWidth=0,this._calculatedHeight=0,this.interactionsEnabled=!0,this._listeners={},this._events={},this._colorId=0,this._colorMap={},this._forceInteractive=0,this._omitTainted=!1,this._hovering=new Set,this._dragging=[],this._mousedown=[],this.tapToActivate=!1,this.tapToActivateTimeout=3e3,this._touchActive=!1,this.resolution=null==t?window.devicePixelRatio:t,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new a.ku((()=>{u.each(this._events,((t,e)=>{e.disposer.dispose()})),c.each(this.layers,(t=>{E(t.view),t.exportableView&&E(t.exportableView)})),E(this._ghostLayer.view),E(this._patternCanvas)}))),this._disposers.push(l.onZoom((()=>{null==t&&(this.resolution=window.devicePixelRatio)}))),l.supports("touchevents")){const t=t=>{0!==this._dragging.length&&c.eachContinue(this._dragging,(e=>!e.value.shouldCancelTouch()||(t.preventDefault(),!1))),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(l.addEventListener(window,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchmove",(()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()}),{passive:!0})),this._disposers.push(l.addEventListener(window,"click",(t=>{this._touchActive=!1}),{passive:!0})),this._disposers.push(l.addEventListener(this.view,"click",(t=>{window.setTimeout((()=>{this._touchActive=!0,this._delayTouchDeactivate()}),100)}),{passive:!0}))}l.supports("wheelevents")&&this._disposers.push(l.addEventListener(this.view,"wheel",(t=>{let e=!1;this._hovering.forEach((t=>{if(t.wheelable)return e=!0,!1})),e&&t.preventDefault()}),{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout((()=>{this._touchActive=!1}),this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(t){t?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(t,e,i,s){return this.defaultLayer.context.createLinearGradient(t,e,i,s)}createRadialGradient(t,e,i,s,n,r){return this.defaultLayer.context.createRadialGradient(t,e,i,s,n,r)}createPattern(t,e,i,s,n){return this._patternCanvas.width=s,this._patternCanvas.height=n,this._patternContext.clearRect(0,0,s,n),e.renderDetached(this._patternContext),t.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new N(this)}makeGraphics(){return new J(this)}makeText(t,e){return new tt(this,t,e)}makeTextStyle(){return new et}makeRadialText(t,e){return new it(this,t,e)}makePicture(t){return new st(this,t)}resizeLayer(t){t.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(t,e,i,s){this._realWidth=t,this._realHeight=e,this._calculatedWidth=i,this._calculatedHeight=s,c.each(this.layers,(t=>{t&&(t.dirty=!0,this.resizeLayer(t))})),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(t=!1){const e=document.createElement("canvas"),i=e.getContext("2d",{willReadFrequently:t}),s=new at(e,i);return e.style.position="absolute",e.style.top="0px",e.style.left="0px",s}getLayerByOrder(t){const e=this.layers,i=e.length;for(let s=0;st.order>e.order?1:t.order{t&&t.dirty&&t.visible&&(this._dirtyLayers.push(t),t.clear())})),this._ghostLayer.clear(),t.render({inactive:null,layer:this.defaultLayer});const e=this._deferredGhostLayers;if(e.length&&(e.sort(((t,e)=>t-e)),c.each(e,(e=>{t.render({inactive:null,layer:this.defaultLayer},e)}))),this._ghostLayer.context.restore(),c.each(this.layers,(t=>{if(t){const e=t.context;e.beginPath(),e.moveTo(0,0),e.stroke()}})),c.each(this._dirtyLayers,(t=>{t.context.restore(),t.dirty=!1})),this._hovering.size&&this._lastPointerMoveEvent){const{events:t,target:e,native:i}=this._lastPointerMoveEvent;c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))}}paintId(t){const e=function(t){const e=[0,0,0];for(let i=0;i<24;i++)e[i%3]<<=1,e[i%3]|=1&t,t>>=1;return(0|e[0])+(e[1]<<8)+(e[2]<<16)}(++this._colorId),i=n.Il.fromHex(e).toCSS();return this._colorMap[i]=t,i}_removeObject(t){void 0!==t._colorId&&delete this._colorMap[t._colorId]}_adjustBoundingBox(t){const e=this._ghostLayer.margin;return new DOMRect(-e.left,-e.top,t.width+e.left+e.right,t.height+e.top+e.bottom)}getEvent(t,e=!0){const i=this.view.getBoundingClientRect(),s=t.clientX||0,n=t.clientY||0,r=this._calculatedWidth/this._realWidth,o=this._calculatedHeight/this._realHeight,a={x:s-i.left,y:n-i.top},h={x:(s-(e?i.left:0))*r,y:(n-(e?i.top:0))*o};return new nt(t,a,h,this._adjustBoundingBox(i))}_getHitTarget(t,e,i){if(0===e.width||0===e.height||t.xe.right||t.ye.bottom)return;if(!i||!this._layerDom.contains(i))return;const s=this._ghostLayer.getImageData(t,e);if(0===s.data[0]&&0===s.data[1]&&0===s.data[2])return!1;const r=n.Il.fromRGB(s.data[0],s.data[1],s.data[2]).toCSS();return this._colorMap[r]}getObjectAtPoint(t){const e=this._ghostLayer.getImageArray(t);if(0===e[0]&&0===e[1]&&0===e[2])return;const i=n.Il.fromRGB(e[0],e[1],e[2]).toCSS();return this._colorMap[i]}_withEvents(t,e){const i=this._events[t];if(void 0!==i){i.dispatching=!0;try{e(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,c.keepIf(i.callbacks,(t=>!t.disposed)),0===i.callbacks.length&&(i.disposer.dispose(),delete this._events[t]))}}}_dispatchEventAll(t,e){this.interactionsEnabled&&this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.callback.call(t.context,e)}))}))}_dispatchEvent(t,e,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.object!==e||(t.callback.call(t.context,i),s=!0)}))})),s}_dispatchMousedown(t,e){const i=t.button;if(0!=i&&2!=i&&1!=i&&void 0!==i)return;const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);if(n){const t=s.id;let e=!1;k(n,(i=>{const n={id:t,value:i};return this._mousedown.push(n),!e&&this._dispatchEvent("pointerdown",i,s)&&(e=!0,this._dragging.some((e=>e.value===i&&e.id===t))||this._dragging.push(n)),!0}))}}_dispatchGlobalMousemove(t,e,i){const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);s.native=i,n?(this._hovering.forEach((t=>{t.contains(n)||(this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s))})),s.native&&k(n,(t=>(this._hovering.has(t)||(this._hovering.add(t),t.cursorOverStyle&&(t._replacedCursorStyle=l.getStyle(document.body,"cursor"),l.setStyle(document.body,"cursor",t.cursorOverStyle)),this._dispatchEvent("pointerover",t,s)),!0)))):(this._hovering.forEach((t=>{t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s)})),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(t){this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle)}_dispatchGlobalMouseup(t,e){const i=this.getEvent(t);i.native=e,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(t){if(0!==this._dragging.length){const e=this.getEvent(t),i=e.id;this._dragging.forEach((t=>{t.id===i&&this._dispatchEvent("pointermove",t.value,e)}))}}_dispatchDragEnd(t,e){const i=t.button;let s;if(0==i||void 0===i)s="click";else if(2==i)s="rightclick";else{if(1!=i)return;s="middleclick"}const n=this.getEvent(t),r=n.id;if(0!==this._mousedown.length){const t=this._getHitTarget(n.originalPoint,n.bbox,e);t&&this._mousedown.forEach((e=>{e.id===r&&e.value.contains(t)&&this._dispatchEvent(s,e.value,n)})),this._mousedown.length=0}0!==this._dragging.length&&(this._dragging.forEach((t=>{t.id===r&&this._dispatchEvent("pointerup",t.value,n)})),this._dragging.length=0)}_dispatchDoubleClick(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("dblclick",t,i)))}_dispatchWheel(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("wheel",t,i)))}_makeSharedEvent(t,e){if(void 0===this._listeners[t]){const i=e();this._listeners[t]=new a.DM((()=>{delete this._listeners[t],i.dispose()}))}return this._listeners[t].increment()}_onPointerEvent(t,e){let i=!1,s=null;function n(){s=null,i=!1}return new a.FV([new a.ku((()=>{null!==s&&clearTimeout(s),n()})),l.addEventListener(this.view,l.getRendererEvent(t),(t=>{i=!0,null!==s&&clearTimeout(s),s=window.setTimeout(n,0)})),T(window,t,((t,n)=>{null!==s&&(clearTimeout(s),s=null),e(t,n,i),i=!1}))])}_initEvent(t){switch(t){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",(()=>{const t=(t,e,i)=>{this._lastPointerMoveEvent={events:t,target:e,native:i},c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))};return new a.FV([this._onPointerEvent("pointerdown",t),this._onPointerEvent("pointermove",t)])}));case"globalpointerup":return this._makeSharedEvent("pointerup",(()=>{const t=this._onPointerEvent("pointerup",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}})),e=this._onPointerEvent("pointercancel",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}}));return new a.ku((()=>{t.dispose(),e.dispose()}))}));case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",(()=>{const t=this._onPointerEvent("pointerdown",((t,e)=>{c.each(t,(t=>{this._dispatchMousedown(t,e)}))})),e=this._onPointerEvent("pointermove",(t=>{c.each(t,(t=>{this._dispatchDragMove(t)}))})),i=this._onPointerEvent("pointerup",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))})),s=this._onPointerEvent("pointercancel",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))}));return new a.ku((()=>{t.dispose(),e.dispose(),i.dispose(),s.dispose()}))}));case"dblclick":return this._makeSharedEvent("dblclick",(()=>this._onPointerEvent("dblclick",((t,e)=>{c.each(t,(t=>{this._dispatchDoubleClick(t,e)}))}))));case"wheel":return this._makeSharedEvent("wheel",(()=>l.addEventListener(this.view,l.getRendererEvent("wheel"),(t=>{this._dispatchWheel(t,l.getEventTarget(t))}),{passive:!1})))}}_addEvent(t,e,i,s){let n=this._events[e];void 0===n&&(n=this._events[e]={disposer:this._initEvent(e),callbacks:[],dispatching:!1,cleanup:!1});const r={object:t,context:s,callback:i,disposed:!1};return n.callbacks.push(r),new a.ku((()=>{r.disposed=!0,n.dispatching?n.cleanup=!0:(c.removeFirst(n.callbacks,r),0===n.callbacks.length&&(n.disposer.dispose(),delete this._events[e]))}))}getCanvas(t,e){this.render(t),e||(e={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),n=Math.floor(this._calculatedHeight*this.resolution);if(e.minWidth&&e.minWidth>s){let t=e.minWidth/s;t>i&&(i=t*this.resolution)}if(e.minHeight&&e.minHeight>n){let t=e.minHeight/n;t>i&&(i=t*this.resolution)}if(e.maxWidth&&e.maxWidthn){let t=e.maxHeight/n;t{if(t&&t.visible&&(t.tainted||o)){d=!0,t.exportableView=t.view,t.exportableContext=t.context,t.view=document.createElement("canvas"),t.view.style.position="fixed",t.view.style.top="-10000px",this.view.appendChild(t.view),r.push(t.view);let e=0,o=0;t.margin&&(e+=t.margin.left||0+t.margin.right||0,o+=t.margin.top||0+t.margin.bottom||0),t.view.width=s+e,t.view.height=n+o,t.context=t.view.getContext("2d"),t.dirty=!0,t.scale=i}})),d&&(this._omitTainted=!0,this.render(t),this._omitTainted=!1),c.each(this.layers,(t=>{if(t&&t.visible){let e=0,i=0;t.margin&&(e=-(t.margin.left||0)*this.resolution,i=-(t.margin.top||0)*this.resolution),h.drawImage(t.view,e,i),t.exportableView&&(t.view=t.exportableView,t.exportableView=void 0),t.exportableContext&&(t.context=t.exportableContext,t.exportableContext=void 0),l{t.style.position="",t.style.top="",this.view.removeChild(t)})),a}}class ot{constructor(){this.margin={left:0,right:0,top:0,bottom:0},this._resolution=1,this._width=0,this._height=0,this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(t,e,i,s,n){this._resolution=n,t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(t,e){return this.context.getImageData(Math.round((t.x-e.left)/e.width*this._width),Math.round((t.y-e.top)/e.height*this._height),1,1)}getImageArray(t){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const e=this.imageArray,i=Math.round(t.x*this._resolution),s=4*(Math.round(t.y*this._resolution)*this._width+i);return[e[s],e[s+1],e[s+2],e[s+3]]}setMargin(t){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,c.each(t,(t=>{t.margin&&(this.margin.left=Math.max(this.margin.left,t.margin.left),this.margin.right=Math.max(this.margin.right,t.margin.right),this.margin.top=Math.max(this.margin.top,t.margin.top),this.margin.bottom=Math.max(this.margin.bottom,t.margin.bottom))}))}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class at{constructor(t,e){this.tainted=!0,this.order=0,this.visible=!0,this.dirty=!0,this._width=0,this._height=0,this.view=t,this.context=e}resize(t,e,i,s,n){null!=this.width&&(t=this.width,i=this.width),null!=this.height&&(e=this.height,s=this.height),this.margin?(t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}},4680:function(t,e,i){"use strict";var s;i.d(e,{b:function(){return s}}),function(t){t.ADD="lighter",t.COLOR="color",t.COLOR_BURN="color-burn",t.COLOR_DODGE="color-dodge",t.DARKEN="darken",t.DIFFERENCE="difference",t.DST_OVER="destination-over",t.EXCLUSION="exclusion",t.HARD_LIGHT="hard-light",t.HUE="hue",t.LIGHTEN="lighten",t.LUMINOSITY="luminosity",t.MULTIPLY="multiply",t.NORMAL="source-over",t.OVERLAY="overlay",t.SATURATION="saturation",t.SCREEN="screen",t.SOFT_LIGHT="soft-light",t.SRC_ATOP="source-atop",t.XOR="xor"}(s||(s={}))},1437:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}getFill(t){return{addColorStop:(t,e)=>{}}}_changed(){super._changed()}getBounds(t){const e=this.get("target");if(e){let i=e.globalBounds();const s=t.toLocal({x:i.left,y:i.top}),n=t.toLocal({x:i.right,y:i.top}),r=t.toLocal({x:i.right,y:i.bottom}),o=t.toLocal({x:i.left,y:i.bottom});return{left:Math.min(s.x,n.x,r.x,o.x),top:Math.min(s.y,n.y,r.y,o.y),right:Math.max(s.x,n.x,r.x,o.x),bottom:Math.max(s.y,n.y,r.y,o.y)}}return t._display.getLocalBounds()}}n.className="Gradient",n.classNames=s.JH.classNames.concat([n.className])},1747:function(t,e,i){"use strict";i.d(e,{o:function(){return h}});var s=i(1437),n=i(1112),r=i(5071),o=i(5040),a=i(751);class h extends s.p{getFill(t){const e=this.get("rotation",0);let i=this.getBounds(t),s=i.left||0,h=i.right||0,l=i.top||0,c=i.bottom||0,u=a.cos(e),d=a.sin(e),p=u*(h-s),g=d*(c-l);0==p&&(p=1),0==g&&(g=1);let f=Math.max(p,g);const _=this._root._renderer.createLinearGradient(s,l,s+f*u,l+f*d),m=this.get("stops");if(m){let t=0;r.each(m,(e=>{let i=e.offset;o.isNumber(i)||(i=t/(m.length-1));let s=e.opacity;o.isNumber(s)||(s=1);let r=e.color;if(r){const t=e.lighten;t&&(r=n.Il.lighten(r,t));const o=e.brighten;o&&(r=n.Il.brighten(r,o)),_.addColorStop(i,"rgba("+r.r+","+r.g+","+r.b+","+s+")")}t++}))}return _}}h.className="LinearGradient",h.classNames=s.p.classNames.concat([h.className])},3035:function(t,e,i){"use strict";i.d(e,{y:function(){return r}});var s=i(3437),n=i(5040);class r extends s.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("width",100),e=this.get("height",100),i=this.get("gap",0),s=this.get("strokeWidth",1);if(i){let n=i+s,r=e/n,o=this.get("angle",0)*Math.PI/180;if(0===o)for(let e=-r;e<2*r;e++){const i=Math.round(e*n-n/2)+.5;this._display.moveTo(-t,i),this._display.lineTo(2*t,i)}else{const i=Math.cos(o),s=Math.sin(o),r=2*Math.sqrt(t*t+e*e),a=n/Math.max(Math.abs(i),Math.abs(s)),h=2*Math.ceil(r/a);for(let t=-h;t0&&(r.beginFill(s,n),r.drawRect(0,0,e,i),r.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,r,t,e,i)}this._clear=!1}}n.className="Pattern",n.classNames=s.JH.classNames.concat([n.className])},4429:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(3437);class n extends s.c{_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const t=this.get("canvas");t&&(this.set("width",t.width),this.set("height",t.height))}_draw(){super._draw();const t=this.get("colorOpacity");void 0!==t&&(this._display.alpha=Math.max(0,t));const e=this._image;if(e){const t=this.get("width",100),i=this.get("height",100),s=this.get("fit","image");let n=0,r=0;"pattern"==s?(n=t,r=i,this.markDirty()):(n=e.width,r=e.height,"image"==s&&(this.set("width",n),this.set("height",r)));let o=0,a=0;this.get("centered",!0)&&(o=t/2-n/2,a=i/2-r/2),this._display.image(e,n,r,o,a)}const i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){const t=this.get("src");if(t){const e=new Image;e.src=t,e.decode().then((()=>{this._image=e,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{}))}}}n.className="PicturePattern",n.classNames=s.c.classNames.concat([n.className])},6490:function(t,e,i){"use strict";i.d(e,{SR:function(){return s},Wn:function(){return u},XG:function(){return p},ne:function(){return h},w6:function(){return l}});var s,n=i(7582),r=i(6245),o=i(1112),a=i(256);function h(t){return(0,n.mG)(this,void 0,void 0,(function*(){if(void 0!==t){const e=[];a.each(t,((t,i)=>{e.push(i.waitForStop())})),yield Promise.all(e)}}))}function l(t,e,i){return e+t*(i-e)}function c(t,e,i){return t>=1?i:e}function u(t,e,i){return new r.gG(l(t,e.percent,i.percent))}function d(t,e,i){return o.Il.interpolate(t,e,i)}function p(t,e){return"number"==typeof t&&"number"==typeof e?l:t instanceof r.gG&&e instanceof r.gG?u:t instanceof o.Il&&e instanceof o.Il?d:c}!function(t){t[t.Stopped=0]="Stopped",t[t.Playing=1]="Playing",t[t.Paused=2]="Paused"}(s||(s={}))},5071:function(t,e,i){"use strict";i.r(e),i.d(e,{add:function(){return v},any:function(){return r},copy:function(){return k},each:function(){return a},eachContinue:function(){return l},eachReverse:function(){return h},find:function(){return S},findIndex:function(){return O},findIndexReverse:function(){return P},findMap:function(){return C},findReverse:function(){return N},first:function(){return d},getFirstSortedIndex:function(){return R},getSortedIndex:function(){return A},has:function(){return D},indexOf:function(){return n},insert:function(){return p},insertIndex:function(){return M},keepIf:function(){return U},last:function(){return u},map:function(){return o},move:function(){return y},pushAll:function(){return f},pushOne:function(){return w},remove:function(){return _},removeFirst:function(){return m},removeIndex:function(){return E},replace:function(){return b},setIndex:function(){return g},shiftLeft:function(){return c},shuffle:function(){return L},slice:function(){return T},toArray:function(){return x}});var s=i(5040);function n(t,e){const i=t.length;for(let s=0;s0;)--i,e(t[i],i)}function l(t,e){const i=t.length;for(let s=0;s0;)if(--i,e(t[i],i))return i;return-1}function S(t,e){const i=O(t,e);if(-1!==i)return t[i]}function N(t,e){const i=P(t,e);if(-1!==i)return t[i]}function C(t,e){const i=t.length;for(let s=0;s>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,i=r+1):s=r}return{found:n,index:n?i-1:i}}function R(t,e){let i=0,s=t.length,n=!1;for(;i>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,s=r):s=r}return{found:n,index:i}}function U(t,e){let i=t.length;for(;i>0;)--i,e(t[i])||t.splice(i,1)}},1112:function(t,e,i){"use strict";i.d(e,{$_:function(){return a},Il:function(){return h}});var s=i(6490),n=i(7652),r=i(5040);function o(t){return"#"===t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0].repeat(2)+t[1].repeat(2)+t[2].repeat(2)),parseInt(t,16)}function a(t){return h.fromAny(t)}class h{constructor(t){this._hex=0|t}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return 255&this._hex}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+n.padString(this.r.toString(16),2)+n.padString(this.g.toString(16),2)+n.padString(this.b.toString(16),2)}toHSL(t=1){return n.rgbToHsl({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,e,i){const s=n.hslToRgb({h:t,s:e,l:i});return this.fromRGB(s.r,s.g,s.b)}toString(){return this.toCSSHex()}static fromHex(t){return new h(t)}static fromRGB(t,e,i){return new h((0|i)+(e<<8)+(t<<16))}static fromString(t){return new h(o(t))}static fromCSS(t){return new h(function(t){let e=(t=t.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return 0;let i="";for(let t=1;t<=3;t++){let s=parseInt(e[t]).toString(16);1==s.length&&(s="0"+s),i+=s}return o(i)}(t))}static fromAny(t){if(r.isString(t)){if("#"==t[0])return h.fromString(t);if("rgb"==t.substr(0,3))return h.fromCSS(t)}else{if(r.isNumber(t))return h.fromHex(t);if(t instanceof h)return h.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,e,i){const s=n.alternativeColor({r:t.r,g:t.g,b:t.b},e?{r:e.r,g:e.g,b:e.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(s.r,s.g,s.b)}static interpolate(t,e,i,n="rgb"){if("hsl"==n){const n=e.toHSL(),r=i.toHSL();return h.fromHSL((0,s.w6)(t,n.h,r.h),(0,s.w6)(t,n.s,r.s),(0,s.w6)(t,n.l,r.l))}return h.fromRGB((0,s.w6)(t,e.r,i.r),(0,s.w6)(t,e.g,i.g),(0,s.w6)(t,e.b,i.b))}static lighten(t,e){const i=n.lighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static brighten(t,e){const i=n.brighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static saturate(t,e){const i=n.saturate({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}}},2754:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});var s=i(6331),n=i(1112);class r extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const t=this.getPrivate("currentPass"),e=this.get("colors",[this.get("baseColor",n.Il.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",e.length);const i=this.getPrivate("numColors"),s=this.get("passOptions"),r=this.get("reuse");for(let o=0;o1;)r-=1;let a=i.s+(s.saturation||0)*t;a>1&&(a=1),a<0&&(a=0);let h=i.l+(s.lightness||0)*t;for(;h>1;)h-=1;e.push(n.Il.fromHSL(r,a,h))}}getIndex(t){const e=this.get("colors",[]),i=this.get("saturation");return t>=e.length?(this.generateColors(),this.getIndex(t)):null!=i?n.Il.saturate(e[t],i):e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}r.className="ColorSet",r.classNames=s.JH.classNames.concat([r.className])},9582:function(t,e,i){"use strict";i.d(e,{Q:function(){return r},k:function(){return n}});var s=i(7144);class n extends s.aV{incrementRef(){}decrementRef(){}_onPush(t){this.processor&&this.processor.processRow(t),super._onPush(t)}_onInsertIndex(t,e){this.processor&&this.processor.processRow(e),super._onInsertIndex(t,e)}_onSetIndex(t,e,i){this.processor&&this.processor.processRow(i),super._onSetIndex(t,e,i)}}class r{constructor(t){this._value=t}incrementRef(){}decrementRef(){}}},6460:function(t,e,i){"use strict";i.d(e,{C:function(){return h}});var s=i(6331),n=i(7255),r=i(462),o=i(5040),a=i(7652);class h extends s.JH{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i=!1){let s;void 0!==e&&""!==e||(e=this.get("dateFormat","yyyy-MM-dd"));let n=t;if(o.isObject(e))try{const t=this.get("intlLocales");return t?new Intl.DateTimeFormat(t,e).format(n):new Intl.DateTimeFormat(void 0,e).format(n)}catch(t){return"Invalid"}let r=this.parseFormat(e);const a=this._root.timezone;let h=n;return!a||this._root.utc||i||(n=a.convertLocal(n)),o.isNumber(n.getTime())?(s=this.applyFormat(n,r,i,h),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s):"Invalid date"}applyFormat(t,e,i=!1,s){let n,h,l,c,u,d,p,g,f=e.template,_=t.getTime();this._root.utc&&!i?(n=t.getUTCFullYear(),h=t.getUTCMonth(),l=t.getUTCDay(),c=t.getUTCDate(),u=t.getUTCHours(),d=t.getUTCMinutes(),p=t.getUTCSeconds(),g=t.getUTCMilliseconds()):(n=t.getFullYear(),h=t.getMonth(),l=t.getDay(),c=t.getDate(),u=t.getHours(),d=t.getMinutes(),p=t.getSeconds(),g=t.getMilliseconds());for(let i=0,m=e.parts.length;i=12?this._t("PM"):this._t("AM");break;case"aa":m=u>=12?this._t("P.M."):this._t("A.M.");break;case"aaa":m=u>=12?this._t("P"):this._t("A");break;case"h":m=a.get12Hours(u).toString();break;case"hh":m=a.padString(a.get12Hours(u),2,"0");break;case"H":m=u.toString();break;case"HH":m=a.padString(u,2,"0");break;case"K":m=a.get12Hours(u,0).toString();break;case"KK":m=a.padString(a.get12Hours(u,0),2,"0");break;case"k":m=(u+1).toString();break;case"kk":m=a.padString(u+1,2,"0");break;case"m":m=d.toString();break;case"mm":m=a.padString(d,2,"0");break;case"s":m=p.toString();break;case"ss":m=a.padString(p,2,"0");break;case"S":case"SS":case"SSS":m=Math.round(g/1e3*Math.pow(10,e.parts[i].length)).toString();break;case"x":m=_.toString();break;case"n":case"nn":case"nnn":m=a.padString(g,e.parts[i].length,"0");break;case"z":m=a.getTimeZone(s||t,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":m=a.getTimeZone(s||t,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":m=a.getTimeZone(s||t,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":m=a.getTimeZone(s||t,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let f=this._root.utc?"UTC":this._root.timezone;f instanceof r.r&&(f=f.name);const y=f?a.getTimezoneOffset(f,s||t):t.getTimezoneOffset();let v=Math.abs(y)/60,w=Math.floor(v),b=60*v-60*w;this._root.utc&&(w=0,b=0),"Z"==e.parts[i]?(m="GMT",m+=y>0?"-":"+",m+=a.padString(w,2)+":"+a.padString(b,2)):(m=y>0?"-":"+",m+=a.padString(w,2)+a.padString(b,2));break;case"i":m=t.toISOString();break;case"I":m=t.toUTCString()}f=f.replace(o.PLACEHOLDER,m)}return f}parseFormat(t){let e={template:"",parts:[]},i=n.V.chunk(t,!0);for(let t=0;t-1&&(l.year=parseInt(p[h.year])),h.year3>-1){let t=parseInt(p[h.year3]);t+=1e3,l.year=t}if(h.year2>-1){let t=parseInt(p[h.year2]);t+=t>50?1e3:2e3,l.year=t}if(h.year1>-1){let t=parseInt(p[h.year1]);t=10*Math.floor((new Date).getFullYear()/10)+t,l.year=t}if(h.monthLong>-1&&(l.month=this.resolveMonth(p[h.monthLong])),h.monthShort>-1&&(l.month=this.resolveShortMonth(p[h.monthShort])),h.month>-1&&(l.month=parseInt(p[h.month])-1),h.week>-1&&-1===h.day&&(l.month=0,l.day=a.getDayFromWeek(parseInt(p[h.week]),l.year,1,i)),h.day>-1&&(l.day=parseInt(p[h.day])),h.yearDay>-1&&(l.month=0,l.day=parseInt(p[h.yearDay])),h.hourBase0>-1&&(l.hour=parseInt(p[h.hourBase0])),h.hourBase1>-1&&(l.hour=parseInt(p[h.hourBase1])-1),h.hour12Base0>-1){let t=parseInt(p[h.hour12Base0]);11==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.hour12Base1>-1){let t=parseInt(p[h.hour12Base1]);12==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.minute>-1&&(l.minute=parseInt(p[h.minute])),h.second>-1&&(l.second=parseInt(p[h.second])),h.millisecond>-1){let t=parseInt(p[h.millisecond]);2==h.millisecondDigits?t*=10:1==h.millisecondDigits&&(t*=100),l.millisecond=t}if(h.timestamp>-1){l.timestamp=parseInt(p[h.timestamp]);const t=new Date(l.timestamp);l.year=t.getUTCFullYear(),l.month=t.getUTCMonth(),l.day=t.getUTCDate(),l.hour=t.getUTCHours(),l.minute=t.getUTCMinutes(),l.second=t.getUTCSeconds(),l.millisecond=t.getUTCMilliseconds()}h.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.zone])),h.iso>-1&&(l.year=o.toNumber(p[h.iso+0]),l.month=o.toNumber(p[h.iso+1])-1,l.day=o.toNumber(p[h.iso+2]),l.hour=o.toNumber(p[h.iso+3]),l.minute=o.toNumber(p[h.iso+4]),l.second=o.toNumber(p[h.iso+5]),l.millisecond=o.toNumber(p[h.iso+6]),"Z"==p[h.iso+7]||"z"==p[h.iso+7]?l.utc=!0:""!=p[h.iso+7]&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.iso+7]))),s=l.utc?new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else s=new Date(t);return s}resolveTimezoneOffset(t,e){if(e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let i=e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),s=i[1],n=i[2],r=i[3],o=60*parseInt(n)+parseInt(r);return"+"==s&&(o*=-1),o-(t||new Date).getTimezoneOffset()}return 0}resolveMonth(t){let e=this._months().indexOf(t);return e>-1||!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._months()).indexOf(t),e>-1)?e:0}resolveShortMonth(t){let e=this._shortMonths().indexOf(t);return e>-1?e:(e=this._months().indexOf(t),e>-1||this._root.language&&!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._shortMonths()).indexOf(t),e>-1)?e:0)}isAm(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1}getStringList(t){let e=[];for(let i=0;i{t.dispose()}))}}class a extends n{constructor(t){super(),this._disposers=t}_dispose(){s.each(this._disposers,(t=>{t.dispose()}))}get disposers(){return this._disposers}}class h extends n{_dispose(){null!=this._disposer&&(this._disposer.dispose(),this._disposer=void 0)}get(){return this._value}set(t,e){null!=this._disposer&&this._disposer.dispose(),this._disposer=e,this._value=t}reset(){this.set(void 0,void 0)}}class l extends r{constructor(){super(...arguments),this._counter=0}increment(){return++this._counter,new r((()=>{--this._counter,0===this._counter&&this.dispose()}))}}},798:function(t,e,i){"use strict";i.d(e,{$:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{constructor(){super(...arguments),this._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}}_setDefaults(){const t="_duration_millisecond",e="_duration_second",i="_duration_minute",s="_duration_hour",n="_duration_day",r="_duration_week",o="_duration_month",a="_minute",h="_hour",l="_day",c="_week",u="_week",d="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(t),second:this._t(t+"_second"),minute:this._t(t+a),hour:this._t(t+h),day:this._t(t+l),week:this._t(t+c),month:this._t(t+u),year:this._t(t+d)},second:{second:this._t(e),minute:this._t(e+a),hour:this._t(e+h),day:this._t(e+l),week:this._t(e+c),month:this._t(e+u),year:this._t(e+d)},minute:{minute:this._t(i),hour:this._t(i+h),day:this._t(i+l),week:this._t(i+c),month:this._t(i+u),year:this._t(i+d)},hour:{hour:this._t(s),day:this._t(s+l),week:this._t(s+c),month:this._t(s+u),year:this._t(s+d)},day:{day:this._t(n),week:this._t(n+c),month:this._t(n+u),year:this._t(n+d)},week:{week:this._t(r),month:this._t(r+u),year:this._t(r+d)},month:{month:this._t(o),year:this._t(o+d)},year:{year:this._t("_duration_year")}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s=i||this.get("baseUnit");void 0!==e&&""!==e||(e=null!=this.get("durationFormat")?this.get("durationFormat"):this.getFormat(a.toNumber(t),void 0,s)),e=o.cleanFormat(e);let n,r=this.parseFormat(e,s),h=Number(t);n=h>this.get("negativeBase")?r.positive:h{if(e.parsed)return;let i=e.source,s=[];s=e.source.match(/^\[([^\]]*)\]/),s&&s.length&&""!==s[0]&&(i=e.source.substr(s[0].length),e.color=s[1]);let r=n.V.chunk(i,!0);for(let t=0;t{"millisecond"==t&&1e3==i?(h.second++,h.millisecond=0):"second"==t&&60==i?(h.minute++,h.second=0):"minute"==t&&60==i?(h.hour++,h.minute=0):"hour"==t&&24==i?(h.day++,h.hour=0):"day"==t&&7==i&&-1!==e.parts.indexOf("w")?(h.week++,h.day=0):"day"==t&&30==i?(h.month++,h.day=0):"month"==t&&12==i&&(h.year++,h.month=0)}));for(let t=0,i=e.parts.length;t{if(t==e||i){if(s/n<=1)return i||(i=t),!1;i=t}return!0})),i}getMilliseconds(t,e){return e||(e=this.get("baseUnit")),t*this._getUnitValue(e)}_getUnitValue(t){return this._getUnitValues()[t]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}},9395:function(t,e,i){"use strict";i.r(e),i.d(e,{bounce:function(){return k},circle:function(){return c},cubic:function(){return o},elastic:function(){return P},exp:function(){return h},inOut:function(){return p},linear:function(){return n},out:function(){return d},pow:function(){return a},quad:function(){return r},sine:function(){return l},yoyo:function(){return u}});var s=i(751);function n(t){return t}function r(t){return t*t}function o(t){return t*t*t}function a(t,e){return Math.pow(t,e)}function h(t){return Math.pow(2,10*t-10)}function l(t){return 1-Math.cos(t*s.HALFPI)}function c(t){return 1-Math.sqrt(1-t*t)}function u(t){return function(e){return t(e<.5?2*e:2*(1-e))}}function d(t){return function(e){return 1-t(1-e)}}function p(t){return function(e){return e<=.5?t(2*e)/2:1-t(2*(1-e))/2}}let g=4/11,f=6/11,_=8/11,m=3/4,y=9/11,v=10/11,w=15/16,b=21/22,x=63/64,D=1/g/g;function k(t){return 1-function(t){return t{this._userSettings[t]=!0}))}get(t,e){const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._settings[t]=e}set(t,e){this._userSettings[t]=!0,this.setRaw(t,e)}remove(t){delete this._userSettings[t],delete this._settings[t]}setAll(t){o.entries(t).forEach((([t,e])=>{this.set(t,e)}))}_eachSetting(t){o.each(this._settings,t)}apply(){const t={stateAnimationEasing:!0,stateAnimationDuration:!0},e=this._entity.states.lookup("default");this._eachSetting(((i,s)=>{t[i]||(t[i]=!0,this!==e&&(i in e._settings||(e._settings[i]=this._entity.get(i))),this._entity.set(i,s))}))}applyAnimate(t){null==t&&(t=this._settings.stateAnimationDuration),null==t&&(t=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let e=this._settings.stateAnimationEasing;null==e&&(e=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",a.cubic)));const i=this._entity.states.lookup("default"),s={stateAnimationEasing:!0,stateAnimationDuration:!0},n={};return this._eachSetting(((r,o)=>{if(!s[r]){s[r]=!0,this!=i&&(r in i._settings||(i._settings[r]=this._entity.get(r)));const a=this._entity.animate({key:r,to:o,duration:t,easing:e});a&&(n[r]=a)}})),n}}class l{constructor(t){this._states={},this._entity=t}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new h(this._entity,e);return this._states[t]=i,i}}remove(t){delete this._states[t]}apply(t){const e=this._states[t];e&&e.apply(),this._entity._applyState(t)}applyAnimate(t,e){let i;const s=this._states[t];return s&&(i=s.applyAnimate(e)),this._entity._applyStateAnimated(t,e),i}}var c=i(3145),u=i(5071),d=i(3540);class p{constructor(t){this._callbacks={},this._disabled={},this._entity=t}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),this._entity._markDirtyKey(t),new s.ku((()=>{u.removeFirst(i,e)&&this._entity._markDirtyKey(t)}))}remove(t){const e=this._callbacks[t];void 0!==e&&(delete this._callbacks[t],0!==e.length&&this._entity._markDirtyKey(t))}enable(t){this._disabled[t]&&(delete this._disabled[t],this._entity._markDirtyKey(t))}disable(t){this._disabled[t]||(this._disabled[t]=!0,this._entity._markDirtyKey(t))}fold(t,e){if(!this._disabled[t]){const i=this._callbacks[t];if(void 0!==i)for(let s=0,n=i.length;s{if(this._stopped)t();else{const e=()=>{i.dispose(),t()},i=this.events.on("stopped",e)}}))}_checkEnded(){return!(this._loops>1&&(--this._loops,1))}_run(t){null!==this._oldTime&&(this._time+=t-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=t}_reset(t){this._oldTime=t,this._time=0}_value(t){return this._interpolate(this._easing(t),this._from,this._to)}}let f=0;class _{constructor(t){this.uid=++f,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._prevSettings={},this._prevPrivateSettings={},this._animatingSettings={},this._animatingPrivateSettings={},this._disposed=!1,this._userProperties={},this.enableDispose=!0,this._settings=t}_checkDirty(){o.keys(this._settings).forEach((t=>{this._userProperties[t]=!0,this._markDirtyKey(t)}))}resetUserSettings(){this._userProperties={}}_runAnimation(t){let e=r.SR.Stopped;if(!this.isDisposed()){let i=!1,s=!1;o.each(this._animatingSettings,((e,n)=>{if(n.stopped)this._stopAnimation(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.set(e,n._value(1)):(i=!0,n._reset(t),this._set(e,n._value(1))):(i=!0,this._set(e,n._value(s)))}else s=!0})),o.each(this._animatingPrivateSettings,((e,n)=>{if(n.stopped)this._stopAnimationPrivate(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.setPrivate(e,n._value(1)):(i=!0,n._reset(t),this._setPrivate(e,n._value(1))):(i=!0,this._setPrivate(e,n._value(s)))}else s=!0})),i?e=r.SR.Playing:s&&(e=r.SR.Paused)}return e}_markDirtyKey(t){this.markDirty()}_markDirtyPrivateKey(t){this.markDirty()}on(t,e){let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}off(t,e){let i=this._settingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._settingEvents[t]}onPrivate(t,e){let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}offPrivate(t,e){let i=this._privateSettingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._privateSettingEvents[t]}getRaw(t,e){const i=this._settings[t];return void 0!==i?i:e}has(t){return t in this._settings}get(t,e){return this.getRaw(t,e)}_sendKeyEvent(t,e){const i=this._settingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_sendPrivateKeyEvent(t,e){const i=this._privateSettingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_setRaw(t,e,i){this._prevSettings[t]=e,this._sendKeyEvent(t,i)}setRaw(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&this._setRaw(t,i,e)}_set(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&(this._setRaw(t,i,e),this._markDirtyKey(t))}_stopAnimation(t){const e=this._animatingSettings[t];e&&(delete this._animatingSettings[t],e.stop())}set(t,e){return this._set(t,e),this._stopAnimation(t),e}remove(t){t in this._settings&&(this._prevSettings[t]=this._settings[t],delete this._settings[t],this._sendKeyEvent(t,void 0),this._markDirtyKey(t)),this._stopAnimation(t)}removeAll(){u.each(o.keys(this._settings),(t=>{this.remove(t)}))}getPrivate(t,e){const i=this._privateSettings[t];return void 0!==i?i:e}_setPrivateRaw(t,e,i){this._prevPrivateSettings[t]=e,this._sendPrivateKeyEvent(t,i)}setPrivateRaw(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&this._setPrivateRaw(t,i,e)}_setPrivate(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&(this._setPrivateRaw(t,i,e),this._markDirtyPrivateKey(t))}_stopAnimationPrivate(t){const e=this._animatingPrivateSettings[t];e&&(e.stop(),delete this._animatingPrivateSettings[t])}setPrivate(t,e){return this._setPrivate(t,e),this._stopAnimationPrivate(t),e}removePrivate(t){t in this._privateSettings&&(this._prevPrivateSettings[t]=this._privateSettings[t],delete this._privateSettings[t],this._markDirtyPrivateKey(t)),this._stopAnimationPrivate(t)}setAll(t){o.each(t,((t,e)=>{this.set(t,e)}))}animate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.get(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.set(e,i);else{if(void 0!==r&&r!==i){this.set(e,r);const t=this._animatingSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.set(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}animatePrivate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.getPrivate(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.setPrivate(e,i);else{if(void 0!==r&&r!==i){this.setPrivate(e,r);const t=this._animatingPrivateSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.setPrivate(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}}class m extends _{constructor(t,e,i,s=[]){if(super(e),this.states=new l(this),this.adapters=new p(this),this.events=this._createEvents(),this._userPrivateProperties={},this._dirty={},this._dirtyPrivate={},this._templates=[],this._defaultThemes=[],this._templateDisposers=[],this._disposers=[],this._runSetup=!0,this._disposerProperties={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t,this._internalTemplates=s,e.id&&this._registerId(e.id)}static new(t,e,i){const s=new this(t,e,!0);return s._template=i,s._afterNew(),s}static _new(t,e,i=[]){const s=new this(t,e,!0,i);return s._afterNew(),s}_afterNew(){this._checkDirty();let t=!1;const e=this._template;e&&(t=!0,e._setObjectTemplate(this)),u.each(this._internalTemplates,(e=>{t=!0,e._setObjectTemplate(this)})),t&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const t=this._template;t&&t._setObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._setObjectTemplate(this)})),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new n.p}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(t,e){const i=this.get(t);if(i)return i;{const i=e();return this.set(t,i),i}}_setDefault(t,e){this.has(t)||super.set(t,e)}_setRawDefault(t,e){this.has(t)||super.setRaw(t,e)}_clearDirty(){o.keys(this._dirty).forEach((t=>{this._dirty[t]=!1})),o.keys(this._dirtyPrivate).forEach((t=>{this._dirtyPrivate[t]=!1}))}isDirty(t){return!!this._dirty[t]}isPrivateDirty(t){return!!this._dirtyPrivate[t]}_markDirtyKey(t){this._dirty[t]=!0,super._markDirtyKey(t)}_markDirtyPrivateKey(t){this._dirtyPrivate[t]=!0,super._markDirtyKey(t)}isType(t){return-1!==this.classNames.indexOf(t)}_pushPropertyDisposer(t,e){let i=this._disposerProperties[t];return void 0===i&&(i=this._disposerProperties[t]=[]),i.push(e),e}_disposeProperty(t){const e=this._disposerProperties[t];void 0!==e&&(u.each(e,(t=>{t.dispose()})),delete this._disposerProperties[t])}set template(t){const e=this._template;e!==t&&(this._template=t,e&&e._removeObjectTemplate(this),t&&t._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(t){}_applyStateAnimated(t,e){}get(t,e){const i=this.adapters.fold(t,this._settings[t]);return void 0!==i?i:e}isUserSetting(t){return this._userProperties[t]||!1}set(t,e){return this._userProperties[t]=!0,super.set(t,e)}setRaw(t,e){this._userProperties[t]=!0,super.setRaw(t,e)}_setSoft(t,e){return this._userProperties[t]?e:super.set(t,e)}remove(t){delete this._userProperties[t],this._removeTemplateProperty(t)}setPrivate(t,e){return this._userPrivateProperties[t]=!0,super.setPrivate(t,e)}setPrivateRaw(t,e){this._userPrivateProperties[t]=!0,super.setPrivateRaw(t,e)}removePrivate(t){delete this._userPrivateProperties[t],this._removeTemplatePrivateProperty(t)}_setTemplateProperty(t,e,i){this._userProperties[e]||t===this._findTemplateByKey(e)&&super.set(e,i)}_setTemplatePrivateProperty(t,e,i){this._userPrivateProperties[e]||t===this._findTemplateByPrivateKey(e)&&super.setPrivate(e,i)}_removeTemplateProperty(t){if(!this._userProperties[t]){const e=this._findTemplateByKey(t);e?super.set(t,e._settings[t]):super.remove(t)}}_removeTemplatePrivateProperty(t){if(!this._userPrivateProperties[t]){const e=this._findTemplateByPrivateKey(t);e?super.setPrivate(t,e._privateSettings[t]):super.removePrivate(t)}}_walkParents(t){t(this._root._rootContainer),t(this)}_applyStateByKey(t){const e=this.states.create(t,{}),i={};this._eachTemplate((s=>{const n=s.states.lookup(t);n&&n._apply(e,i)})),o.each(e._settings,(t=>{i[t]||e._userSettings[t]||e.remove(t)}))}_applyTemplate(t,e){this._templateDisposers.push(t._apply(this,e)),o.each(t._settings,((t,i)=>{e.settings[t]||this._userProperties[t]||(e.settings[t]=!0,super.set(t,i))})),o.each(t._privateSettings,((t,i)=>{e.privateSettings[t]||this._userPrivateProperties[t]||(e.privateSettings[t]=!0,super.setPrivate(t,i))})),this._runSetup&&t.setup&&(this._runSetup=!1,t.setup(this))}_findStaticTemplate(t){if(this._template&&t(this._template))return this._template}_eachTemplate(t){this._findStaticTemplate((e=>(t(e),!1))),u.eachReverse(this._internalTemplates,t),u.each(this._templates,t)}_applyTemplates(t=!0){t&&this._disposeTemplates();const e={settings:{},privateSettings:{},states:{}};this._eachTemplate((t=>{this._applyTemplate(t,e)})),t&&(o.each(this._settings,(t=>{this._userProperties[t]||e.settings[t]||super.remove(t)})),o.each(this._privateSettings,(t=>{this._userPrivateProperties[t]||e.privateSettings[t]||super.removePrivate(t)})))}_findTemplate(t){const e=this._findStaticTemplate(t);if(void 0===e){const e=u.findReverse(this._internalTemplates,t);return void 0===e?u.find(this._templates,t):e}return e}_findTemplateByKey(t){return this._findTemplate((e=>t in e._settings))}_findTemplateByPrivateKey(t){return this._findTemplate((e=>t in e._privateSettings))}_disposeTemplates(){u.each(this._templateDisposers,(t=>{t.dispose()})),this._templateDisposers.length=0}_removeTemplates(){u.each(this._templates,(t=>{t._removeObjectTemplate(this)})),this._templates.length=0}_applyThemes(t=!1){if(this.get("ignoreThemes"))return!1;let e=!1;const i=[];let s=[];const n=new Set,r=this.get("themeTagsSelf");return r&&u.each(r,(t=>{n.add(t)})),this._walkParents((t=>{t===this._root._rootContainer&&(e=!0),t._defaultThemes.length>0&&i.push(t._defaultThemes);const r=t.get("themes");r&&s.push(r);const o=t.get("themeTags");o&&u.each(o,(t=>{n.add(t)}))})),s=i.concat(s),this._removeTemplates(),(e||t)&&u.eachReverse(this.classNames,(t=>{const e=[];u.each(s,(i=>{u.each(i,(i=>{const s=i._lookupRules(t);s&&u.eachReverse(s,(t=>{if(t.tags.every((t=>n.has(t)))){const i=u.getFirstSortedIndex(e,(e=>{const i=d.qu(t.tags.length,e.tags.length);return 0===i?d.wq(t.tags,e.tags,d.qu):i}));e.splice(i.index,0,t)}}))}))})),u.each(e,(t=>{this._templates.push(t.template),t.template._setObjectTemplate(this)}))})),this._applyTemplates(),(e||t)&&(this._runSetup=!1),e||t}_changed(){}_beforeChanged(){if(this.isDirty("id")){const t=this.get("id");t&&this._registerId(t);const e=this._prevSettings.id;e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}}_registerId(t){if(this._root.entitiesById[t]&&this._root.entitiesById[t]!==this)throw new Error('An entity with id "'+t+'" already exists.');this._root.entitiesById[t]=this,c.i_.entitiesById[t]=this}_afterChanged(){}addDisposer(t){return this._disposers.push(t),t}_dispose(){super._dispose();const t=this._template;t&&t._removeObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._removeObjectTemplate(this)})),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach((t=>{t.dispose()})),o.each(this._disposerProperties,((t,e)=>{u.each(e,(t=>{t.dispose()}))}));const e=this.get("id");e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}setTimeout(t,e){const i=setTimeout((()=>{this.removeDispose(n),t()}),e),n=new s.ku((()=>{clearTimeout(i)}));return this._disposers.push(n),n}removeDispose(t){if(!this.isDisposed()){let e=u.indexOf(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()}hasTag(t){return-1!==u.indexOf(this.get("themeTags",[]),t)}addTag(t){if(!this.hasTag(t)){const e=this.get("themeTags",[]);e.push(t),this.set("themeTags",e)}}removeTag(t){if(this.hasTag(t)){const e=this.get("themeTags",[]);u.remove(e,t),this.set("themeTags",e)}}_t(t,e,...i){return this._root.language.translate(t,e,...i)}get root(){return this._root}}m.className="Entity",m.classNames=["Entity"]},9770:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var s=i(7449),n=i(5071),r=i(5040);class o{constructor(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{n.each(t,(t=>{t.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}}hasListeners(){return 0!==this._listeners.length}hasListenersByType(t){return n.any(this._listeners,(e=>(null===e.type||e.type===t)&&!e.killed))}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(t){delete this._disabled[t]}disableType(t,e=1/0){this._disabled[t]=e}_removeListener(t){if(0===this._iterating){const e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)}_removeExistingListener(t,e,i,s){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((n=>{n.once!==t||n.type!==e||void 0!==i&&n.callback!==i||n.context!==s||n.disposer.dispose()}))}isEnabled(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&void 0===this._disabled[t]}removeType(t){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((e=>{e.type===t&&e.disposer.dispose()}))}has(t,e,i){return-1!==n.findIndex(this._listeners,(s=>!0!==s.once&&s.type===t&&(void 0===e||s.callback===e)&&s.context===i))}_shouldDispatch(t){if(this._disposed)throw new Error("EventDispatcher is disposed");const e=this._disabled[t];return r.isNumber(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled}_eachListener(t){++this._iterating;try{n.each(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(n.each(this._killed,(t=>{this._removeListener(t)})),this._killed.length=0)}}dispatch(t,e){this._shouldDispatch(t)&&this._eachListener((i=>{i.killed||null!==i.type&&i.type!==t||(i._debounceDelay?(i._debounceTimeout&&window.clearTimeout(i._debounceTimeout),i._debounceTimeout=window.setTimeout((()=>{i._debounceTimeout=void 0,i.killed||i.dispatch(t,e)}),i._debounceDelay)):i.dispatch(t,e))}))}_on(t,e,i,n,r,o,a){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);const h={type:e,callback:i,context:n,shouldClone:r,dispatch:o,killed:!1,once:t,disposer:new s.ku((()=>{h.killed=!0,h._debounceTimeout&&window.clearTimeout(h._debounceTimeout),this._removeListener(h)})),_debounceDelay:a};return this._listeners.push(h),h}onAll(t,e,i=!0){return this._on(!1,null,t,e,i,((i,s)=>t.call(e,s))).disposer}on(t,e,i,s=!0){return this._on(!1,t,e,i,s,((t,s)=>e.call(i,s))).disposer}onDebounced(t,e,i,s,n=!0){return this._on(!1,t,e,s,n,((t,i)=>e.call(s,i)),i).disposer}once(t,e,i,s=!0){const n=this._on(!0,t,e,i,s,((t,s)=>{n.disposer.dispose(),e.call(i,s)}));return n.disposer}off(t,e,i){this._removeExistingListener(!1,t,e,i)}copyFrom(t){if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const e=[];return n.each(t._listeners,(t=>{!t.killed&&t.shouldClone&&(null===t.type?e.push(this.onAll(t.callback,t.context)):t.once?e.push(this.once(t.type,t.callback,t.context)):e.push(this.on(t.type,t.callback,t.context)))})),new s.FV(e)}}},9821:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(6331);class n extends s.JH{}n.className="InterfaceColors",n.classNames=s.JH.classNames.concat([n.className])},7144:function(t,e,i){"use strict";i.d(e,{aV:function(){return o},dn:function(){return a},o:function(){return h}});var s=i(9770),n=i(5071);function r(t,e){if(!(t>=0&&t=0&&t{this.push(t)}))}copyFrom(t){this.pushAll(t._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(t){const e=this._values;this._values=[],this._onClear(e),n.each(t,(t=>{this._values.push(t),this._onPush(t)}))}clear(){this.setAll([])}*[Symbol.iterator](){const t=this._values.length;for(let e=0;e{t.dispose()})),super._onClear(t)}_dispose(){this.autoDispose&&n.each(this._values,(t=>{t.dispose()}))}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class h extends a{constructor(t,e){super(),this.template=t,this.make=e}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}}},751:function(t,e,i){"use strict";i.r(e),i.d(e,{DEGREES:function(){return a},HALFPI:function(){return r},PI:function(){return n},RADIANS:function(){return o},boundsOverlap:function(){return M},ceil:function(){return l},circlesOverlap:function(){return O},closest:function(){return T},cos:function(){return f},fitAngleToRange:function(){return w},fitToRange:function(){return d},getAngle:function(){return x},getArcBounds:function(){return m},getArcPoint:function(){return y},getCubicControlPointA:function(){return c},getCubicControlPointB:function(){return u},getPointOnLine:function(){return k},getPointOnQuadraticCurve:function(){return D},inBounds:function(){return b},mergeBounds:function(){return v},normalizeAngle:function(){return _},round:function(){return h},sin:function(){return p},spiralPoints:function(){return E},tan:function(){return g}});var s=i(5040);const n=Math.PI,r=n/2,o=n/180,a=180/n;function h(t,e,i){if(!(0,s.isNumber)(e)||e<=0){let e=Math.round(t);return i&&e-t==.5&&e--,e}{let i=Math.pow(10,e);return Math.round(t*i)/i}}function l(t,e){if(!(0,s.isNumber)(e)||e<=0)return Math.ceil(t);{let i=Math.pow(10,e);return Math.ceil(t*i)/i}}function c(t,e,i,s,n){return{x:(-t.x+e.x/s+i.x)*s,y:(-t.y+e.y/n+i.y)*n}}function u(t,e,i,s,n){return{x:(t.x+e.x/s-i.x)*s,y:(t.y+e.y/n-i.y)*n}}function d(t,e,i){return Math.min(Math.max(t,e),i)}function p(t){return Math.sin(o*t)}function g(t){return Math.tan(o*t)}function f(t){return Math.cos(o*t)}function _(t){return(t%=360)<0&&(t+=360),t}function m(t,e,i,s,n){let r=Number.MAX_VALUE,o=Number.MAX_VALUE,a=-Number.MAX_VALUE,h=-Number.MAX_VALUE,l=[];l.push(y(n,i)),l.push(y(n,s));let c=Math.min(90*Math.floor(i/90),90*Math.floor(s/90)),u=Math.max(90*Math.ceil(i/90),90*Math.ceil(s/90));for(let t=c;t<=u;t+=90)t>=i&&t<=s&&l.push(y(n,t));for(let t=0;ta&&(a=e.x),e.y>h&&(h=e.y)}return{left:t+r,top:e+o,right:t+a,bottom:e+h}}function y(t,e){return{x:t*f(e),y:t*p(e)}}function v(t){const e=t.length;if(e>0){let i=t[0],s=i.left,n=i.top,r=i.right,o=i.bottom;if(e>1)for(let a=1;ai){let t=e;e=i,i=t}t=_(t);let s=(e-_(e))/360;return ti&&(t-360>e?t-=360:t=te+(i-e)/2-180?e:i),t}function b(t,e){return t.x>=e.left&&t.y>=e.top&&t.x<=e.right&&t.y<=e.bottom}function x(t,e){e||(e={x:2*t.x,y:2*t.y});let i=e.x-t.x,s=e.y-t.y,n=Math.atan2(s,i)*a;return n<0&&(n+=360),_(n)}function D(t,e,i,s){return{x:(1-s)*(1-s)*t.x+2*(1-s)*s*i.x+s*s*e.x,y:(1-s)*(1-s)*t.y+2*(1-s)*s*i.y+s*s*e.y}}function k(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function T(t,e){return t.reduce((function(t,i){return Math.abs(i-e)e.left,s=t.tope.top;return i&&s}function E(t,e,i,s,n,r,h,l,c){let u=n+.01;l=_(l),c=_(c);let d=l*o;cu&&(o=2*u),o*=Math.max(.01,Math.min(1,u/200));let g=d*a,f={x:t+u*Math.cos(d),y:e+u*s/i*Math.sin(d)};if(p.push(f),u=n+.01+(g-l)/360*h,d+=2*Math.asin(o/2/u),d*a>c+360*Math.ceil((i-n)/h))break}return p.shift(),p}function O(t,e){return Math.hypot(t.x-e.x,t.y-e.y)<=t.radius+e.radius}},8219:function(t,e,i){"use strict";i.d(e,{u:function(){return a}});var s=i(6331),n=i(7652),r=i(7449);let o;class a extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._setRawDefault("deactivateRoot",!0),function(t,e,i){const s=e.interfaceColors,a=s.get("secondaryButton").toCSS(),h=s.get("text").toCSS(),l=s.get("alternativeBackground").toCSS(.45);if(!o){const i=new r.FV([new n.StyleRule(t,".am5-modal",{width:"100%",height:"100%",position:"absolute","z-index":"100000",top:"0",left:"0"},e.nonce),new n.StyleRule(t,".am5-modal-curtain",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute",background:s.get("background").toCSS(.5),"z-index":"100"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute","text-align":"center","white-space":"nowrap",background:s.get("background").toCSS(.5),"z-index":"101"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper:before",{content:"''",display:"inline-block",height:"100%","vertical-align":"middle","margin-right":"-0.25em"},e.nonce),new n.StyleRule(t,".am5-modal-content",{display:"inline-block",padding:"1.2em","vertical-align":"middle","text-align":"start","white-space":"normal",background:s.get("background").toCSS(),"border-radius":"4px","-webkit-box-shadow":"0px 0px 36px 0px "+l,"box-shadow":"0px 0px 36px 0px "+l,color:h},e.nonce),new n.StyleRule(t,".am5-modal-content h1",{"font-size":"1em",margin:"0 0 0.5em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table",{display:"table",margin:"1em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-row",{display:"table-row"},e.nonce),new n.StyleRule(t,".am5-modal-table-heading",{display:"table-heading",padding:"3px 10px 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell",{display:"table-cell",padding:"3px 0 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell > *",{"vertical-align":"middle"},e.nonce),new n.StyleRule(t,".am5-modal-content input[type=text], .am5-modal-content input[type=number], .am5-modal-content select",{border:"1px solid "+a,"border-radius":"4px",padding:"3px 5px",margin:"2px"},e.nonce),new n.StyleRule(t,".am5-modal-input-narrow",{width:"50px"},e.nonce),new n.StyleRule(t,".am5-modal-button",{"font-weight":"400",color:s.get("secondaryButtonText").toCSS(),"line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer",padding:"0.2em 0.8em","font-size":"1em","border-radius":"0.25em",margin:"0 0.25em 0 0",border:"1px solid "+s.get("secondaryButtonStroke").toCSS(),background:s.get("secondaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button:hover",{background:s.get("secondaryButtonHover").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary",{color:s.get("primaryButtonText").toCSS(),border:"1px solid "+s.get("primaryButtonStroke").toCSS(),background:s.get("primaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary:hover",{background:s.get("primaryButtonHover").toCSS()},e.nonce)]);o=new r.DM((()=>{o=void 0,i.dispose()}))}o.increment()}(n.getShadowRoot(this._root.dom),this._root);const t=document.createElement("div");t.className="am5-modal",t.style.display="none",this.root._inner.appendChild(t),this.setPrivate("container",t);const e=document.createElement("div");e.className="am5-modal-curtain",t.appendChild(e),this.setPrivate("curtain",e),this._disposers.push(n.addEventListener(e,"click",(()=>{this.cancel()})));const i=document.createElement("div");i.className="am5-modal-wrapper",t.appendChild(i),this.setPrivate("wrapper",i);const s=document.createElement("div");s.className="am5-modal-content",i.appendChild(s),this.setPrivate("content",s);const a=this.get("content");a&&(s.innerHTML=a),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{this.isOpen()&&"Escape"==n.getEventKey(t)&&this.cancel()})))}_beforeChanged(){super._beforeChanged(),this.isDirty("content")&&(this.getPrivate("content").innerHTML=this.get("content",""))}isOpen(){return"none"!=this.getPrivate("container").style.display}open(){this.getPrivate("container").style.display="block",this.get("deactivateRoot")&&this.setTimeout((()=>{this._root._renderer.interactionsEnabled=!1}),10),this.events.dispatch("opened",{type:"opened",target:this})}close(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("closed",{type:"closed",target:this})}cancel(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("cancelled",{type:"cancelled",target:this})}_dispose(){super._dispose();const t=this.getPrivate("container");t.parentElement&&t.parentElement.removeChild(t)}}a.className="Modal",a.classNames=s.JH.classNames.concat([a.className])},780:function(t,e,i){"use strict";i.d(e,{e:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const t="_big_number_suffix_",e="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(t+"3")},{number:1e6,suffix:this._t(t+"6")},{number:1e9,suffix:this._t(t+"9")},{number:1e12,suffix:this._t(t+"12")},{number:1e15,suffix:this._t(t+"15")},{number:1e18,suffix:this._t(t+"18")},{number:1e21,suffix:this._t(t+"21")},{number:1e24,suffix:this._t(t+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(e+"24")},{number:1e-21,suffix:this._t(e+"21")},{number:1e-18,suffix:this._t(e+"18")},{number:1e-15,suffix:this._t(e+"15")},{number:1e-12,suffix:this._t(e+"12")},{number:1e-9,suffix:this._t(e+"9")},{number:1e-6,suffix:this._t(e+"6")},{number:.001,suffix:this._t(e+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s;(null==e||a.isString(e)&&"number"===e.toLowerCase())&&(e=this.get("numberFormat",""));let n=Number(t);if(a.isObject(e))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),e).format(n):new Intl.NumberFormat(void 0,e).format(n)}catch(t){return"Invalid"}else{e=o.cleanFormat(e);let t,h=this.parseFormat(e,this._root.language);t=n>this.get("negativeBase")?h.positive:n{if(e.parsed)return;let i=e.source;"number"===i.toLowerCase()&&(i=this.get("numberFormat","#,###.#####"));let s=n.V.chunk(i,!0);for(let t=0;t=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(i[0]),n="e"+i[1],e.modSpacing&&(n=" "+n)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){const i=o.decimalPlaces(t);if(i>0){const s=Math.pow(10,e.decimals.passive);t=Math.round(parseFloat((t*s).toFixed(i)))/s}}let h="",l=a.numberToString(t).split("."),c=l[0];if(c.length0){let t=[],i=c.split("").reverse().join("");for(let s=0,n=c.length;s<=n;s+=e.thousands.interval){let n=i.substr(s,e.thousands.interval).split("").reverse().join("");""!==n&&t.unshift(n)}c=t.join(e.thousands.separator)}h+=c,1===l.length&&l.push("");let u=l[1];return u.length{e(i,t[i])}))}function l(t,e){for(let i in t)if(u(t,i)&&!e(i,t[i]))break}function c(t,e,i){s.each(o(t,i),(i=>{e(i,t[i])}))}function u(t,e){return{}.hasOwnProperty.call(t,e)}function d(t,e){return h(t,((t,i)=>{null!=i&&null==e[t]&&(e[t]=i)})),e}},3540:function(t,e,i){"use strict";function s(t,e){return t===e?0:t{a.isObject(e)&&"function"==typeof e.dispose&&(e.enableDispose=!0,e.dispose())}))}class l{constructor(t,e,i){this._name=t,this._template=e,this._settings=i}_dispose(){h(this._settings)}get(t,e){const i=this._settings[t];return void 0!==i?i:e}set(t,e){this._settings[t]=e,this._template._stateChanged(this._name)}remove(t){delete this._settings[t],this._template._stateChanged(this._name)}setAll(t){o.keys(t).forEach((e=>{this._settings[e]=t[e]})),this._template._stateChanged(this._name)}_apply(t,e){o.each(this._settings,((i,s)=>{e[i]||t._userSettings[i]||(e[i]=!0,t.setRaw(i,s))}))}}class c{constructor(t){this._states={},this._template=t}_dispose(){o.each(this._states,((t,e)=>{e._dispose()}))}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new l(t,this._template,e);return this._states[t]=i,this._template._stateChanged(t),i}}remove(t){delete this._states[t],this._template._stateChanged(t)}_apply(t,e){o.each(this._states,((i,s)=>{let n=e.states[i];null==n&&(n=e.states[i]={});const r=t.states.create(i,{});s._apply(r,n)}))}}class u{constructor(){this._callbacks={}}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._callbacks[t]}))}remove(t){void 0!==this._callbacks[t]&&delete this._callbacks[t]}_apply(t){const e=[];return o.each(this._callbacks,((i,s)=>{r.each(s,(s=>{e.push(t.adapters.add(i,s))}))})),new n.FV(e)}}class d{constructor(t,e){if(this._disposed=!1,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._entities=[],this.states=new c(this),this.adapters=new u,this.events=new s.p,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=t}static new(t){return new d(t,!0)}_dispose(){h(this._settings),h(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(t,e){this._checkDisposed();const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._checkDisposed(),this._settings[t]=e}set(t,e){this._checkDisposed(),this._settings[t]!==e&&(this.setRaw(t,e),this._entities.forEach((i=>{i._setTemplateProperty(this,t,e)})))}remove(t){this._checkDisposed(),t in this._settings&&(delete this._settings[t],this._entities.forEach((e=>{e._removeTemplateProperty(t)})))}removeAll(){this._checkDisposed(),o.each(this._settings,((t,e)=>{this.remove(t)}))}getPrivate(t,e){this._checkDisposed();const i=this._privateSettings[t];return void 0!==i?i:e}setPrivateRaw(t,e){return this._checkDisposed(),this._privateSettings[t]=e,e}setPrivate(t,e){return this._checkDisposed(),this._privateSettings[t]!==e&&(this.setPrivateRaw(t,e),this._entities.forEach((i=>{i._setTemplatePrivateProperty(this,t,e)}))),e}removePrivate(t){this._checkDisposed(),t in this._privateSettings&&(delete this._privateSettings[t],this._entities.forEach((e=>{e._removeTemplatePrivateProperty(t)})))}setAll(t){this._checkDisposed(),o.each(t,((t,e)=>{this.set(t,e)}))}on(t,e){this._checkDisposed();let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}onPrivate(t,e){this._checkDisposed();let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}_apply(t,e){this._checkDisposed();const i=[];return o.each(this._settingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.on(e,s))}))})),o.each(this._privateSettingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.onPrivate(e,s))}))})),this.states._apply(t,e),i.push(this.adapters._apply(t)),i.push(t.events.copyFrom(this.events)),new n.FV(i)}_setObjectTemplate(t){this._checkDisposed(),this._entities.push(t)}_removeObjectTemplate(t){r.remove(this._entities,t)}_stateChanged(t){this._checkDisposed(),this._entities.forEach((e=>{e._applyStateByKey(t)}))}}},7255:function(t,e,i){"use strict";i.d(e,{V:function(){return r}});var s=i(1112),n=i(5040);class r{static escape(t){return t.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(t){return t.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(t,e=!1,i=!1){let s=[];t=this.escape(t);let r=e?t.split("'"):[t];for(let t=0;t{setTimeout(e,t)}))}let o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629742400,year:31536e6};function a(t){switch(t){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function h(t,e){return null==e&&(e=1),o[t]*e}function l(t){return t?o[t.timeUnit]*t.count:0}function c(t,e,i,s,n){const r=t.timeUnit,a=t.count;if("hour"==r||"minute"==r||"second"==r||"millisecond"==r)return o[t.timeUnit]*t.count;{const t=m(new Date(e.getTime()),r,a,i,s,void 0,n).getTime();let o=t+a*h(r)*1.05;return o=m(new Date(o),r,1,i,s,void 0,n).getTime(),o-t}}function u(){return new Date}function d(){return u().getTime()}function p(t){return new Date(t.getTime())}function g(t,e,i,s,n){if(e-t>h(i,1.2))return!0;let r=new Date(t),o=new Date(e);n&&(r=n.convertLocal(r),o=n.convertLocal(o));let l=0,c=0;s||"millisecond"==i||(l=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-l),c=o.getTimezoneOffset(),o.setUTCMinutes(o.getUTCMinutes()-c));let u=!1;switch(i){case"year":r.getUTCFullYear()!=o.getUTCFullYear()&&(u=!0);break;case"month":(r.getUTCFullYear()!=o.getUTCFullYear()||r.getUTCMonth()!=o.getUTCMonth())&&(u=!0);break;case"day":(r.getUTCMonth()!=o.getUTCMonth()||r.getUTCDate()!=o.getUTCDate())&&(u=!0);break;case"hour":r.getUTCHours()!=o.getUTCHours()&&(u=!0);break;case"minute":r.getUTCMinutes()!=o.getUTCMinutes()&&(u=!0);break;case"second":r.getUTCSeconds()!=o.getUTCSeconds()&&(u=!0);break;case"millisecond":r.getTime()!=o.getTime()&&(u=!0)}if(u)return u;let d=a(i);return!!d&&g(t,e,d,s,n)}function f(t,e,i,s,n){let r=0;switch(s||"millisecond"==e||(r=t.getTimezoneOffset(),n&&(r-=n.offsetUTC(t)),t.setUTCMinutes(t.getUTCMinutes()-r)),e){case"day":let e=t.getUTCDate();t.setUTCDate(e+i);break;case"second":let s=t.getUTCSeconds();t.setUTCSeconds(s+i);break;case"millisecond":let n=t.getUTCMilliseconds();t.setUTCMilliseconds(n+i);break;case"hour":let r=t.getUTCHours();t.setUTCHours(r+i);break;case"minute":let o=t.getUTCMinutes();t.setUTCMinutes(o+i);break;case"year":let a=t.getUTCFullYear();t.setUTCFullYear(a+i);break;case"month":const h=t.getUTCDate(),l=new Date(t.getUTCFullYear(),t.getUTCMonth(),0).getUTCDate();let c=t.getUTCMonth();h>l?t.setUTCMonth(c+i,l):t.setUTCMonth(c+i);break;case"week":let u=t.getUTCDate();t.setUTCDate(u+7*i)}if(!s&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+r),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(n&&(e+=n.offsetUTC(t)),e!=r){let i=e-r;t.setUTCMinutes(t.getUTCMinutes()+i),t.getTimezoneOffset()!=e&&t.setUTCMinutes(t.getUTCMinutes()-i)}}return t}function _(t,e,i,s,n){let r;return null!=n&&(r=new Date(n)),m(new Date(t),e,i,s.locale.firstDayOfWeek,s.utc,r,s.timezone).getTime()}function m(t,e,i,n,r,o,a){if(!a||r){let a=0;switch(r||"millisecond"==e||(a=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-a)),e){case"day":let e=t.getUTCDate();if(i>1){if(o){o=m(o,"day",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),n=h("day",s*i);t.setTime(o.getTime()+n-a*h("minute"))}}else t.setUTCDate(e);t.setUTCHours(0,0,0,0);break;case"second":let r=t.getUTCSeconds();i>1&&(r=Math.floor(r/i)*i),t.setUTCSeconds(r,0);break;case"millisecond":if(1==i)return t;let l=t.getUTCMilliseconds();l=Math.floor(l/i)*i,t.setUTCMilliseconds(l);break;case"hour":let c=t.getUTCHours();i>1&&(c=Math.floor(c/i)*i),t.setUTCHours(c,0,0,0);break;case"minute":let u=t.getUTCMinutes();i>1&&(u=Math.floor(u/i)*i),t.setUTCMinutes(u,0,0);break;case"month":let d=t.getUTCMonth();i>1&&(2!=i&&3!=i&&4!=i&&6!=i||(d=Math.floor(d/i)*i)),t.setUTCMonth(d,1),t.setUTCHours(0,0,0,0);break;case"year":let p=t.getUTCFullYear();i>1&&(p=Math.floor(p/i)*i),t.setUTCFullYear(p,0,1),t.setUTCHours(0,0,0,0);break;case"week":if(i>1&&o){o=m(o,"week",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("week")/i),n=h("week",s*i);t.setTime(o.getTime()+n-a*h("minute"))}let g=t.getUTCDate(),f=t.getUTCDay();s.isNumber(n)||(n=1),g=f>=n?g-f+n:g-(7+f)+n,t.setUTCDate(g),t.setUTCHours(0,0,0,0)}if(!r&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+a),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(e!=a){let i=e-a;t.setUTCMinutes(t.getUTCMinutes()+i)}}return t}{if(isNaN(t.getTime()))return t;let l=t.getTime(),c=a.offsetUTC(t),u=t.getTimezoneOffset(),d=a.parseDate(t),p=d.year,g=d.month,f=d.day,_=d.hour,y=d.minute,v=d.second,w=d.millisecond,b=d.weekday,x=c-u;switch(e){case"day":if(i>1&&o){o=m(o,"day",1,n,r,void 0,a);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),l=h("day",s*i);t.setTime(o.getTime()+l),d=a.parseDate(t),p=d.year,g=d.month,f=d.day}_=0,y=x,v=0,w=0;break;case"second":y+=x,i>1&&(v=Math.floor(v/i)*i),w=0;break;case"millisecond":y+=x,i>1&&(w=Math.floor(w/i)*i);break;case"hour":i>1&&(_=Math.floor(_/i)*i),y=x,v=0,w=0;break;case"minute":i>1&&(y=Math.floor(y/i)*i),y+=x,v=0,w=0;break;case"month":i>1&&(g=Math.floor(g/i)*i),f=1,_=0,y=x,v=0,w=0;break;case"year":i>1&&(p=Math.floor(p/i)*i),g=0,f=1,_=0,y=x,v=0,w=0;break;case"week":s.isNumber(n)||(n=1),f=b>=n?f-b+n:f-(7+b)+n,_=0,y=x,v=0,w=0}const D=(t=new Date(p,g,f,_,y,v,w)).getTime();let k=36e5;"hour"==e&&(k=36e5*i),D+k<=l&&("hour"!=e&&"minute"!=e&&"second"!=e&&"millisecond"!=e||(t=new Date(D+k)));let T=t.getTimezoneOffset(),M=a.offsetUTC(t)-T;return M!=x&&t.setTime(t.getTime()+6e4*(M-x)),t}}function y(t,e,i,s){let n=l(s[t]),r=s.length-1;if(t>=r)return Object.assign({},s[r]);let o=Math.ceil(e/n);return e0?Object.assign({},s[t-1]):o<=i?Object.assign({},s[t]):t+1{switch(t.type){case"year":i=+t.value;break;case"month":s=+t.value-1;break;case"day":n=+t.value;break;case"hour":r=+t.value;break;case"minute":o=+t.value;break;case"second":a=+t.value;break;case"fractionalSecond":h=+t.value;break;case"weekday":switch(t.value){case"Sun":l=0;break;case"Mon":l=1;break;case"Tue":l=2;break;case"Wed":l=3;break;case"Thu":l=4;break;case"Fri":l=5;break;case"Sat":l=6}}})),24===r&&(r=0),{year:i,month:s,day:n,hour:r,minute:o,second:a,millisecond:h,weekday:l}}function n(t,e){const{year:i,month:n,day:r,hour:o,minute:a,second:h,millisecond:l}=s(t,e);return Date.UTC(i,n,r,o,a,h,l)}i.d(e,{r:function(){return r}});class r{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=t,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(t){return new this(t,!0)}convertLocal(t){const e=this.offsetUTC(t),i=t.getTimezoneOffset(),s=new Date(t);s.setUTCMinutes(s.getUTCMinutes()-(e-i));const n=s.getTimezoneOffset();return i!=n&&s.setUTCMinutes(s.getUTCMinutes()+n-i),s}offsetUTC(t){return(n(this._utc,t)-n(this._dtf,t))/6e4}parseDate(t){return s(this._dtf,t)}}},5040:function(t,e,i){"use strict";function s(t){return Number(t)!==t}function n(t){return{}.toString.call(t)}function r(t,e="Assertion failed"){if(!t)throw new Error(e)}function o(t){if(null!=t&&!d(t)){let e=Number(t);if(s(e)&&u(t)&&""!=t&&t.match(/[0-9]+/)){const i=t.replace(/[^0-9.\-]+/g,"");return t===i?e:o(i)}return e}return t}function a(t){if(c(t))return new Date(t);if(d(t))return new Date(t);{let e=Number(t);return d(e)?new Date(e):new Date(t)}}function h(t){if(s(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t==-1/0)return"-0";let e=t<0;t=Math.abs(t);let i,n=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t),r=n[1],o=n[2]||"";if(void 0===n[3])i=""===o?r:r+"."+o;else{let e=+n[3];if(t<1)i="0."+l("0",e-1)+r+o;else{let t=e-o.length;i=0===t?r+o:t<0?r+o.slice(0,t)+"."+o.slice(t):r+o+l("0",t)}}return e?"-"+i:i}function l(t,e){return new Array(e+1).join(t)}function c(t){return"[object Date]"===n(t)}function u(t){return"string"==typeof t}function d(t){return"number"==typeof t&&Number(t)==t}function p(t){return"object"==typeof t&&null!==t}function g(t){return Array.isArray(t)}i.r(e),i.d(e,{PLACEHOLDER:function(){return f},PLACEHOLDER2:function(){return _},assert:function(){return r},getType:function(){return n},isArray:function(){return g},isDate:function(){return c},isNaN:function(){return s},isNumber:function(){return d},isObject:function(){return p},isString:function(){return u},numberToString:function(){return h},repeat:function(){return l},toDate:function(){return a},toNumber:function(){return o}});const f="__§§§__",_="__§§§§__"},7652:function(t,e,i){"use strict";i.r(e),i.d(e,{StyleRule:function(){return E},StyleSheet:function(){return O},addClass:function(){return P},addEventListener:function(){return l},addSpacing:function(){return Y},alternativeColor:function(){return dt},blur:function(){return p},brighten:function(){return ht},capitalizeFirst:function(){return et},cleanFormat:function(){return z},contains:function(){return w},decimalPlaces:function(){return A},escapeForRgex:function(){return W},focus:function(){return g},get12Hours:function(){return Q},getBrightnessStep:function(){return lt},getDayFromWeek:function(){return q},getEventKey:function(){return D},getEventTarget:function(){return v},getFormat:function(){return H},getLightnessStep:function(){return at},getMonthWeek:function(){return K},getPointerId:function(){return d},getRendererEvent:function(){return f},getSafeResolution:function(){return C},getShadowRoot:function(){return k},getStyle:function(){return y},getTimeZone:function(){return J},getTimezoneOffset:function(){return tt},getWeek:function(){return $},getWeekYear:function(){return Z},getYearDay:function(){return X},hslToHsv:function(){return rt},hslToRgb:function(){return it},hsvToHsl:function(){return nt},iOS:function(){return N},isLight:function(){return ct},isLocalEvent:function(){return b},isTouchEvent:function(){return _},lighten:function(){return ot},mergeTags:function(){return pt},onZoom:function(){return c},padString:function(){return R},plainText:function(){return V},ready:function(){return a},relativeToValue:function(){return L},removeClass:function(){return S},removeElement:function(){return h},rgbToHsl:function(){return st},sameBounds:function(){return gt},saturate:function(){return ut},setInteractive:function(){return x},setStyle:function(){return m},splitString:function(){return j},stripTags:function(){return G},supports:function(){return u},trim:function(){return F},trimLeft:function(){return U},trimRight:function(){return B},truncateTextWithEllipsis:function(){return I}});var s=i(5040),n=i(5071),r=i(256),o=i(7449);function a(t){if("loading"!==document.readyState)t();else{const e=()=>{"loading"!==document.readyState&&(document.removeEventListener("readystatechange",e),t())};document.addEventListener("readystatechange",e)}}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function l(t,e,i,s){return t.addEventListener(e,i,s||!1),new o.ku((()=>{t.removeEventListener(e,i,s||!1)}))}function c(t){return l(window,"resize",(e=>{t()}))}function u(t){switch(t){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function d(t){return t.pointerId||0}function p(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let t=document.createElement("button");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}}function g(t){t&&t.focus()}function f(t){if(u("pointerevents"))return t;if(u("touchevents"))switch(t){case"pointerover":case"pointerdown":return"touchstart";case"pointerout":case"pointerleave":case"pointerup":return"touchend";case"pointermove":return"touchmove";case"click":return"click";case"dblclick":return"dblclick"}else if(u("mouseevents"))switch(t){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return t}function _(t){if("undefined"!=typeof Touch&&t instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&t instanceof PointerEvent&&null!=t.pointerType)switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(null!=t.type&&t.type.match(/^mouse/))return!1;return!0}function m(t,e,i){t.style[e]=i}function y(t,e){return t.style[e]}function v(t){if(t.composedPath){const e=t.composedPath();return 0===e.length?null:e[0]}return t.target}function w(t,e){let i=e;for(;;){if(t===i)return!0;if(null===i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function b(t,e){return t.target&&w(e.root.dom,t.target)}function x(t,e){t.style.pointerEvents=e?"auto":"none"}function D(t){if(void 0!==t.key)return t.key;switch(t.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+t.keyCode}function k(t){let e=t;for(;;){if(null===e.parentNode)return null!=e.host?e:null;e=e.parentNode}}let T;function M(t,e){const i=t.cssRules.length;return t.insertRule(e+"{}",i),t.cssRules[i]}class E extends o.KK{constructor(t,e,i,s=""){super(),this._root=function(t,e=""){if(null===t){if(null==T){const t=document.createElement("style");t.type="text/css",""!=e&&t.setAttribute("nonce",e),document.head.appendChild(t),T=t.sheet}return T}{const i=document.createElement("style");return i.type="text/css",""!=e&&i.setAttribute("nonce",e),t.appendChild(i),i.sheet}}(t,s);try{this._rule=M(this._root,e)}catch(t){this._rule=M(this._root,":not(*)")}r.each(i,((t,e)=>{this.setStyle(t,e)}))}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){const t=n.indexOf(this._root.cssRules,this._rule);if(-1===t)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,e){const i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")}setStyle(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")}}class O extends o.KK{constructor(t,e,i=""){super(),this._element=function(t,e,i=""){const s=document.createElement("style");return s.type="text/css",""!=i&&s.setAttribute("nonce",i),s.textContent=e,null===t?document.head.appendChild(s):t.appendChild(s),s}(t,e,i)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}}function P(t,e){if(t)if(t.classList){const i=e.split(" ");n.each(i,(e=>{t.classList.add(e)}))}else{let i=t.getAttribute("class");i?t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" ")+" "+e):t.setAttribute("class",e)}}function S(t,e){if(t)if(t.classList)t.classList.remove(e);else{let i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" "))}}function N(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function C(){return N()?1:void 0}function L(t,e){return s.isNumber(t)?t:null!=t&&s.isNumber(t.value)&&s.isNumber(e)?e*t.value:0}function A(t){let e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function R(t,e=0,i="0"){return"string"!=typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t}function U(t){return t.replace(/^[\s]*/,"")}function B(t){return t.replace(/[\s]*$/,"")}function F(t){return U(B(t))}function I(t,e,i=!1,s="..."){if(t.length>e){let n=e-1;for(;n>=0&&t.charAt(n).match(/\w/);)n--;return n>=0&&0==i?t.substring(0,n+1)+"...":t.substring(0,e)+s}return t}function H(t){if(void 0===t)return"string";let e=(t=(t=(t=t.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return e?e[1]:"number"===t?"number":"date"===t?"date":"duration"===t?"duration":t.match(/[#0]/)?"number":t.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function z(t){return t.replace(/\/(date|number|duration)$/i,"")}function G(t){return t?t.replace(/<[^>]*>/g,""):t}function V(t){return t?G((""+t).replace(/[\n\r]+/g,". ")):t}function W(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Y(t){let e="";for(let i=0;i{if(t.match(/^\s+$/))(t=" ")&&(t=" "),n.push(t);else if(e.test(t)){let e=t.split(i).filter((t=>""!==t));n=n.concat(e)}else n=n.concat([...t])})),n}function X(t,e=!1){const i=new Date(t.getFullYear(),0,0),s=t.getTime()-i.getTime()+60*(i.getTimezoneOffset()-t.getTimezoneOffset())*1e3;return Math.floor(s/864e5)}function $(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-s);const n=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-n.getTime())/864e5+1)/7)}function Z(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;return i.setUTCDate(i.getUTCDate()+4-s),new Date(Date.UTC(i.getUTCFullYear(),0,1)).getFullYear()}function K(t,e=!1){const i=$(new Date(t.getFullYear(),t.getMonth(),1),e);let s=$(t,e);return 1==s&&(s=53),s-i+1}function q(t,e,i=1,s=!1){let n=new Date(e,0,4,0,0,0,0);return s&&n.setUTCFullYear(e),7*t+i-((n.getDay()||7)+3)}function Q(t,e){return t>12?t-=12:0===t&&(t=12),null!=e?t+(e-1):t}function J(t,e=!1,i=!1,s=!1,n){if(s)return e?"Coordinated Universal Time":"UTC";if(n){const i=t.toLocaleString("en-US",{timeZone:n});return F(t.toLocaleString("en-US",{timeZone:n,timeZoneName:e?"long":"short"}).substr(i.length))}let r=t.toLocaleString("UTC"),o=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(o=o.replace(/ (standard|daylight|summer|winter) /i," ")),F(o)}function tt(t,e){const i=e||new Date(Date.UTC(2012,0,1,0,0,0,0)),s=new Date(i.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(i.toLocaleString("en-US",{timeZone:t})).getTime()-s.getTime())/6e4*-1}function et(t){return t.charAt(0).toUpperCase()+t.slice(1)}function it(t){let e,i,s,n=t.h,r=t.s,o=t.l;if(0==r)e=i=s=o;else{let t=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},a=o<.5?o*(1+r):o+r-o*r,h=2*o-a;e=t(h,a,n+1/3),i=t(h,a,n),s=t(h,a,n-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*s)}}function st(t){let e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),r=Math.min(e,i,s),o=0,a=0,h=(n+r)/2;if(n===r)o=a=0;else{let t=n-r;switch(a=h>.5?t/(2-n-r):t/(n+r),n){case e:o=(i-s)/t+(i0?255-t:t;return Math.round(i*e)}function ht(t,e){if(t){let i=at(Math.min(Math.max(t.r,t.g,t.b),230),e);return{r:Math.max(0,Math.min(255,Math.round(t.r+i))),g:Math.max(0,Math.min(255,Math.round(t.g+i))),b:Math.max(0,Math.min(255,Math.round(t.b+i))),a:t.a}}return t}function lt(t,e){return Math.round(255*e)}function ct(t){return(299*t.r+587*t.g+114*t.b)/1e3>=128}function ut(t,e){if(void 0===t||1==e)return t;let i=st(t);return i.s=e,it(i)}function dt(t,e={r:255,g:255,b:255},i={r:255,g:255,b:255}){let s=e,n=i;return ct(i)&&(s=i,n=e),ct(t)?n:s}function pt(t,e){return t||(t=[]),[...t,...e].filter(((t,e,i)=>i.indexOf(t)===e))}function gt(t,e){return!!e&&t.left==e.left&&t.right==e.right&&t.top==e.top&&t.bottom==e.bottom}},3360:function(t,e,i){"use strict";i.d(e,{z:function(){return D},m:function(){return k}});var s=i(7582),n=i(6331),r=i(4596),o=i(8777),a=i(1112),h=i(6245),l=i(5769),c=i(9582),u=i(5040),d=i(5071),p=i(256),g={AccelerationBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccelerationBands)),AccumulationDistribution:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulationDistribution)),AccumulativeSwingIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulativeSwingIndex)),Annotator:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Annotator)),ArcDiagram:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagram)),ArcDiagramLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramLink)),ArcDiagramNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramNodes)),Aroon:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Aroon)),AverageSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageSeries)),AverageTrueRange:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageTrueRange)),AwesomeOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AwesomeOscillator)),Axis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Axis)),AxisBullet:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisBullet)),AxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabel)),AxisLabelRadial:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabelRadial)),AxisRenderer:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRenderer)),AxisRendererCircular:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererCircular)),AxisRendererCurveX:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveX)),AxisRendererCurveY:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveY)),AxisRendererRadial:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererRadial)),AxisRendererX:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererX)),AxisRendererY:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererY)),AxisTick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisTick)),BaseColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.BaseColumnSeries)),BollingerBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BollingerBands)),BreadcrumbBar:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.BreadcrumbBar)),BullBearPower:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BullBearPower)),Bullet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Bullet)),Button:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Button)),CalloutSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CalloutSeries)),Candlestick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Candlestick)),CandlestickSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CandlestickSeries)),CategoryAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryAxis)),CategoryDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryDateAxis)),ChaikinMoneyFlow:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinMoneyFlow)),ChaikinOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinOscillator)),Chart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Chart)),ChartIndicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChartIndicator)),Chord:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Chord)),ChordDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordDirected)),ChordLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLink)),ChordLinkDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLinkDirected)),ChordNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNodes)),ChordNonRibbon:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNonRibbon)),Circle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Circle)),CirclePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.CirclePattern)),ClockHand:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.ClockHand)),ClusteredPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ClusteredPointSeries)),ColorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ColorControl)),ColorPicker:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPicker)),ColorPickerButton:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPickerButton)),ColorSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ColorSet)),ColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ColumnSeries)),CommodityChannelIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CommodityChannelIndex)),ComparisonControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ComparisonControl)),Component:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Component)),ConfirmButton:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ConfirmButton)),Container:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Container)),CurveChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveChart)),CurveColumnSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveColumnSeries)),CurveCursor:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveCursor)),CurveLineSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveLineSeries)),DataSaveControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DataSaveControl)),DateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DateAxis)),DateRangeSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DateRangeSelector)),DisparityIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DisparityIndex)),DoodleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DoodleSeries)),DrawingControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingControl)),DrawingSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingSeries)),DrawingToolControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingToolControl)),Dropdown:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Dropdown)),DropdownColors:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownColors)),DropdownControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownControl)),DropdownList:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownList)),DropdownListControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownListControl)),DurationAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DurationAxis)),EditableAxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.EditableAxisLabel)),EditableLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.EditableLabel)),Ellipse:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Ellipse)),EllipseSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.EllipseSeries)),Entity:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Entity)),Exporting:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Exporting)),ExportingMenu:()=>Promise.resolve().then((()=>i(396))).then((t=>t.ExportingMenu)),FibonacciSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciSeries)),FibonacciTimezoneSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciTimezoneSeries)),Flow:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Flow)),FlowLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowLink)),FlowNode:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNode)),FlowNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNodes)),ForceDirected:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.ForceDirected)),FunnelSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSeries)),FunnelSlice:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSlice)),Gantt:()=>Promise.resolve().then((()=>i(133))).then((t=>t.Gantt)),GanttCategoryAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxis)),GanttCategoryAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxisRenderer)),GanttDateAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxis)),GanttDateAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxisRenderer)),GanttSeries:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttSeries)),GaplessDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.GaplessDateAxis)),Gradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Gradient)),GrainPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GrainPattern)),Graphics:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Graphics)),GraticuleSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.GraticuleSeries)),Grid:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Grid)),GridLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GridLayout)),HeatLegend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HeatLegend)),HeikinAshi:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HeikinAshi)),Hierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Hierarchy)),HierarchyLink:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyLink)),HierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyNode)),HorizontalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HorizontalLayout)),HorizontalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalLineSeries)),HorizontalRaySeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalRaySeries)),IconControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconControl)),IconSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconSeries)),Indicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Indicator)),IndicatorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IndicatorControl)),InterfaceColors:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.InterfaceColors)),IntervalControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IntervalControl)),Label:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Label)),LabelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LabelSeries)),Layout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Layout)),Legend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Legend)),Line:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Line)),LineArrowSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LineArrowSeries)),LinePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinePattern)),LineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.LineSeries)),LinearGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinearGradient)),Link:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Link)),LinkedHierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchy)),LinkedHierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchyNode)),MACD:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACD)),MACross:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACross)),MapChart:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapChart)),MapLine:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLine)),MapLineSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLineSeries)),MapPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPointSeries)),MapPolygon:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygon)),MapPolygonSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygonSeries)),MapSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapSeries)),Measure:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Measure)),MedianPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MedianPrice)),Modal:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Modal)),Momentum:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Momentum)),MovingAverage:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverage)),MovingAverageDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageDeviation)),MovingAverageEnvelope:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageEnvelope)),NumericStepper:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.NumericStepper)),OHLC:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLC)),OHLCSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLCSeries)),OnBalanceVolume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OnBalanceVolume)),OrthogonalLine:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.OrthogonalLine)),OverboughtOversold:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OverboughtOversold)),PVT:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PVT)),Pack:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Pack)),PanelControls:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PanelControls)),ParallelChannelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ParallelChannelSeries)),Partition:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Partition)),PathPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PathPattern)),Pattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Pattern)),PatternSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PatternSet)),PercentChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentChart)),PercentSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentSeries)),PeriodSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PeriodSelector)),PictorialStackedSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PictorialStackedSeries)),Picture:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Picture)),PicturePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PicturePattern)),PieChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieChart)),PieSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieSeries)),PointedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PointedRectangle)),Polygon:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Polygon)),PolylineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PolylineSeries)),ProgressPie:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ProgressPie)),PyramidSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PyramidSeries)),QuadrantLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.QuadrantLineSeries)),RadarChart:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarChart)),RadarColumnSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarColumnSeries)),RadarCursor:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarCursor)),RadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarLineSeries)),RadialGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialGradient)),RadialLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialLabel)),RadialText:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialText)),Rectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Rectangle)),RectanglePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RectanglePattern)),RectangleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RectangleSeries)),RegressionSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RegressionSeries)),RelativeStrengthIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RelativeStrengthIndex)),ResetControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ResetControl)),RoundedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RoundedRectangle)),Sankey:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Sankey)),SankeyLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyLink)),SankeyNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyNodes)),Scrollbar:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Scrollbar)),SerialChart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SerialChart)),Serializer:()=>Promise.resolve().then((()=>i(5362))).then((t=>t.Serializer)),Series:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Series)),SeriesTypeControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SeriesTypeControl)),SerpentineChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SerpentineChart)),SettingsControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsControl)),SettingsModal:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsModal)),SimpleLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SimpleLineSeries)),Slice:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slice)),SliceGrouper:()=>Promise.resolve().then((()=>i(1790))).then((t=>t.SliceGrouper)),SlicedChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.SlicedChart)),Slider:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slider)),SmoothedRadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.SmoothedRadarLineSeries)),SmoothedXLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXLineSeries)),SmoothedXYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXYLineSeries)),SmoothedYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedYLineSeries)),SpiralChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SpiralChart)),Sprite:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Sprite)),SpriteResizer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SpriteResizer)),StandardDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StandardDeviation)),Star:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Star)),StepLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.StepLineSeries)),StochasticMomentumIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticMomentumIndex)),StochasticOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticOscillator)),StockChart:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockChart)),StockControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockControl)),StockLegend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockLegend)),StockPanel:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockPanel)),StockToolbar:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockToolbar)),Sunburst:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Sunburst)),SuperTrend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SuperTrend)),Text:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Text)),Tick:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tick)),Tooltip:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tooltip)),Tree:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Tree)),Treemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Treemap)),TrendLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TrendLineSeries)),Triangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Triangle)),Trix:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Trix)),TypicalPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TypicalPrice)),VWAP:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VWAP)),ValueAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ValueAxis)),Venn:()=>Promise.resolve().then((()=>i(8034))).then((t=>t.Venn)),VerticalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.VerticalLayout)),VerticalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VerticalLineSeries)),Volume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Volume)),VolumeProfile:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VolumeProfile)),VoronoiTreemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.VoronoiTreemap)),WilliamsR:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.WilliamsR)),WordCloud:()=>Promise.resolve().then((()=>i(6769))).then((t=>t.WordCloud)),XYChart:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChart)),XYChartScrollbar:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChartScrollbar)),XYCursor:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYCursor)),XYSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYSeries)),ZigZag:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ZigZag)),ZoomControl:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ZoomControl)),ZoomTools:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomTools)),ZoomableContainer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomableContainer))};function f(t){return u.isObject(t)}function _(t){return t instanceof n.JH||t instanceof a.Il||t instanceof h.gG||t instanceof l.YS}function m(t,e){let i=t.length;for(;i--;){const s=t[i];if(e in s)return s[e]}throw new Error("Could not find ref "+e)}function y(t,e){if("#"===t[0]||"@"===t[0]){if(t[1]===t[0])return{isValue:!0,value:t.slice(1)};{const i=t.split(/\./g);let s=m(e,i[0]);for(let t=1;t{e(t)}))}function w(t,e){v(t,e),e.adapters&&d.each(e.adapters,(e=>{t.adapters.add(e.key,e.callback)})),e.states&&d.each(e.states,(e=>{t.states.create(e.key,e.settings)})),t instanceof o.W&&e.children&&e.children.forEach((e=>{null==e.index||e.index>=t.children.length?t.children.push(e.value):t.children.insertIndex(e.index,e.value)}))}function b(t,e){if(!e.construct)return e.value;const i=e.construct.new(t,e.settings||{});return w(i,e),i}class x{constructor(){this._caching={},this._cache={},this._delayed=[]}afterParse(){this._delayed.forEach((t=>{t()}))}getClass(t){return this._cache[t]}storeClass(t){return(0,s.mG)(this,void 0,void 0,(function*(){if("Template"===t)return;const e=g[t];if(null==e)throw new Error("Unknown object type `"+t+"`");this._cache[t]=yield e()}))}cacheClass(t){let e=this._caching[t];return null==e&&(e=this._caching[t]=this.storeClass(t)),e}parseAsyncArray(t){return(0,s.mG)(this,void 0,void 0,(function*(){yield Promise.all(d.map(t,(t=>this.parseAsync(t))))}))}parseAsyncObjectKey(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){"type"===t?u.isString(e)?yield this.cacheClass(e):yield this.parseAsync(e):"geoJSON"===t||"geometry"===t||(yield this.parseAsync(e))}))}parseAsyncObject(t){return(0,s.mG)(this,void 0,void 0,(function*(){switch(t.type){case"Color":case"Percent":break;default:yield Promise.all(d.map(p.keys(t),(e=>this.parseAsyncObjectKey(e,t[e]))))}}))}parseAsync(t){return(0,s.mG)(this,void 0,void 0,(function*(){u.isArray(t)?yield this.parseAsyncArray(t):f(t)&&(_(t)||!0!==t.__parse&&!1===t.__parse||(yield this.parseAsyncObject(t)))}))}parseObject(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parse(t,e[n],i)})),s}parseArray(t,e,i){return d.map(e,(e=>this.parse(t,e,i)))}parseChildren(t,e,i){return d.map(e,(e=>this.parseChild(t,e,i)))}parseStops(t,e,i){return d.map(e,(e=>this.parseObject(t,e,i)))}parseSetting(t,e,i,s){if("layout"===e)switch(i){case"horizontal":return t.horizontalLayout;case"vertical":return t.verticalLayout;case"grid":return t.gridLayout}return"clusteredBullet"===e?(e,n)=>{const r=s.concat([{"@series":n}]);return this.parse(t,i,r)}:"projection"===e||"geoJSON"===e?i:"stops"===e?this.parseStops(t,i,s):this.parse(t,i,s)}parseSettings(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parseSetting(t,n,e[n],i)})),s}parseState(t,e,i){return{key:e.key,settings:this.parseSettings(t,e.settings,i)}}parseAdapter(t,e,i){return{key:e.key,callback:this.parse(t,e.callback,i)}}parseProperties(t,e,i){return d.map(p.keys(e),(s=>{const r=e[s];return e=>{const o=()=>{const o=this.parseValue(t,r,i),a=e[s];a?o.isValue?u.isArray(o.value)?a instanceof c.k?a.setAll(o.value):d.each(o.value,(t=>{a.push(t)})):e[s]=o.value:o.construct?e[s]=b(t,o):a instanceof n.JH||a instanceof l.YS?function(t,e){e.settings&&t.setAll(e.settings),w(t,e)}(a,o):v(a,o):o.isValue?e[s]=o.value:e[s]=b(t,o)};if("data"===s)this._delayed.push(o);else if("bullets"===s){const n=e[s];u.assert(null!=n),u.assert(u.isArray(r)),d.each(r,(e=>{n.push(((s,n)=>{const r=i.concat([{"@series":n}]);return this.parse(t,e,r)}))}))}else"bullet"===s?e.set("bullet",((e,s)=>{const n=i.concat([{"@axis":s}]);return this.parse(t,r,n)})):o()}}))}parseAxisRange(t,e,i){return{isValue:!1,type:void 0,construct:void 0,settings:this.parseSettings(t,e.settings,i),adapters:void 0,states:void 0,children:void 0,properties:void 0,index:void 0,value:e}}parseRefsObject(t,e,i){const s={};return p.each(e,((e,r)=>{if("axisRange"==r.__parseLogic||"seriesAxisRange"==r.__parseLogic){const e=this.parseAxisRange(t,r,i),s=m(i,r.axis),o=s.makeDataItem({});let a;const h=r.series?m(i,r.series):void 0;h?a=h.createAxisRange(o):s.createAxisRange(o),function(t,e){e.settings&&p.each(e.settings,((e,i)=>{if(i instanceof n.JH){const s=t.get(e);s instanceof n.JH?s.setAll(i._settings):t.set(e,i)}else t.set(e,i)})),w(t,e)}(o,e),a&&["fills","strokes","graphics"].forEach((e=>{if(void 0!==a[e]&&void 0!==r[e]){r[e].__parse=!0;const s=this.parse(t,r[e],i);a[e].template.setAll(s)}}))}else s["#"+e]=this.parse(t,r,i)})),s}parseRefs(t,e,i){if(u.isArray(e)){const s=e.length;for(let n=0;nthis.parseState(t,e,i))):void 0,h=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0,l=null==e.index?void 0:e.index;return{isValue:!1,type:e.type,construct:s,settings:n,adapters:h,states:a,children:o,properties:r,index:l,value:e}}parseTemplate(t,e,i){e.refs&&(i=this.parseRefs(t,e.refs,i));const s=e.settings?this.parseSettings(t,e.settings,i):{},n=l.YS.new(s),r=e.states?d.map(e.states,(e=>this.parseState(t,e,i))):void 0,o=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0;return o&&d.each(o,(t=>{n.adapters.add(t.key,t.callback)})),r&&d.each(r,(t=>{n.states.create(t.key,t.settings)})),{isValue:!0,value:n}}parseValue(t,e,i){return e instanceof n.JH?{isValue:!0,value:e}:u.isArray(e)?{isValue:!0,value:this.parseArray(t,e,i)}:f(e)?_(e)?{isValue:!0,value:e}:"Color"===e.type?{isValue:!0,value:a.Il.fromAny(e.value)}:"Percent"===e.type?{isValue:!0,value:new h.gG(e.value)}:"Template"===e.type?this.parseTemplate(t,e,i):!0===e.__parse?{isValue:!0,value:this.parseObject(t,e,i)}:!1===e.__parse?{isValue:!0,value:e}:this.parseEntity(t,e,i):u.isString(e)?y(e,i):{isValue:!0,value:e}}parse(t,e,i){const s=this.parseValue(t,e,i);return s.isValue?s.value:b(t,s)}}class D{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t}static new(t){return new this(t,!0)}parse(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){const i=new x;yield i.parseAsync(t);const s=i.parse(this._root,t,[]);if(e.parent){if(!(s instanceof r.j))throw new Error("When using the parent setting, the entity must be a Sprite");e.parent.children.push(s)}else s instanceof n.JH&&s._applyThemes(!0);return i.afterParse(),s}))}parseString(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.parse(JSON.parse(t),e)}))}}function k(t,e){g[t]||(g[t]=()=>new Promise((t=>{t(e)})))}},6890:function(t,e,i){"use strict";i.d(e,{e:function(){return p}});var s=i(6331),n=i(9361),r=i(1112),o=i(1437),a=i(6245),h=i(5769),l=i(9582),c=i(5040),u=i(5071),d=i(256);class p extends s.JH{constructor(){super(...arguments),this._refs={}}serialize(t,e=0,i=!1,p=!1){if(e>this.get("maxDepth",2))return;if(!1===t||!0===t)return t;if(c.isArray(t)){const s=[];return u.each(t,(t=>{s.push(this.serialize(t,e,i,p))})),s}if(t instanceof l.k){const s=[];return u.each(t.values,(t=>{s.push(this.serialize(t,e,i,p))})),s}const g={},f=t instanceof s.JH||t instanceof h.YS||t instanceof r.Il||t instanceof a.gG,_=this.get("fullSettings",[]);if(t instanceof s.JH){g.type=t.className;let s=this._filterSettings(d.keys(t._settings));s=s.filter((e=>t.isUserSetting(e))),s.length&&(g.settings={},u.each(s,(s=>{const n=t.get(s);void 0!==n&&(g.settings[s]=this.serialize(n,e+1,i||-1!==_.indexOf(s)),t instanceof o.p&&"stops"===s&&(g.settings[s]=this.serialize(n,0,!0)))}))),this._processAdapters(t,g),this._processStates(t,g)}else if(t instanceof h.YS){g.type="Template";let i=this._filterSettings(d.keys(t._settings));return i.length&&(g.settings={},u.each(i,(i=>{void 0!==t._settings[i]&&(g.settings[i]=this.serialize(t.get(i),e+1,-1!==_.indexOf(i)))}))),this._processAdapters(t,g),this._processStates(t,g),g}if(t instanceof n.w&&t.data.length&&-1===(this.get("excludeProperties")||[]).indexOf("data")&&(g.properties={data:this.serialize(t.data.values,e,!0)}),t instanceof r.Il)return{type:"Color",value:t.toCSSHex()};if(t instanceof a.gG)return{type:"Percent",value:t.percent};if(c.isString(t))return this._escapeRefs(t);if(c.isNumber(t))return t;if(c.isObject(t))if(i&&!f){const s=this.get("excludeProperties",[]);d.each(t,((t,n)=>{-1===s.indexOf(t)&&void 0!==n&&(g[t]=this.serialize(n,e+1,i,p))})),p&&d.each(g,((t,e)=>{c.isObject(e)&&(g.__parse=!0)}))}else if(f){const s=this.get("includeProperties",[]);u.each(s,(s=>{const n=t[s];void 0!==n&&(void 0===g.properties&&(g.properties={}),g.properties[s]=this.serialize(n,e+1,i,p))}))}return 0==e&&d.keys(this._refs).length&&(g.refs=this._refs),g}_processAdapters(t,e){if(this.get("includeAdapters",!1)){const i="string"==this.get("functionsAs","string"),s=t.adapters._callbacks;Object.keys(s).length>0&&(e.adapters=[],d.each(s,((t,s)=>{s.forEach((s=>{e.adapters.push({key:t,callback:i?s.toString():s})}))})))}}_processStates(t,e){if(this.get("includeStates",!1)){const i=t.states._states;Object.keys(i).length>0&&(e.states=[],d.each(i,((t,i)=>{Object.keys(i._settings).length>0&&e.states.push({key:t,settings:this.serialize(i._settings,0,!0)})})))}}_filterSettings(t){const e=this.get("includeSettings",[]),i=this.get("excludeSettings",[]);return e.length?t=e:i.length&&(t=t.filter((t=>-1===i.indexOf(t)))),t}_escapeRefs(t){return t.replace(/^#/,"##").replace(/^@/,"@@")}}p.className="Serializer",p.classNames=s.JH.classNames.concat([p.className])},3783:function(t,e,i){"use strict";i.d(e,{X:function(){return c},v:function(){return l}});var s=i(3409),n=i(6245),r=i(1112),o=i(6881),a=i(962),h=i(9395);function l(t,e,i,s){t.set(e,i.get(s)),i.on(s,(i=>{t.set(e,i)}))}class c extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.language,e=this._root.interfaceColors,i=this._root.horizontalLayout,s=this._root.verticalLayout,c=this.rule.bind(this);c("InterfaceColors").setAll({stroke:r.Il.fromHex(15066597),fill:r.Il.fromHex(15987699),primaryButton:r.Il.fromHex(6788316),primaryButtonHover:r.Il.fromHex(6779356),primaryButtonDown:r.Il.fromHex(6872182),primaryButtonActive:r.Il.fromHex(6872182),primaryButtonDisabled:r.Il.fromHex(14342874),primaryButtonTextDisabled:r.Il.fromHex(16777215),primaryButtonText:r.Il.fromHex(16777215),primaryButtonStroke:r.Il.fromHex(16777215),secondaryButton:r.Il.fromHex(14277081),secondaryButtonHover:r.Il.fromHex(10724259),secondaryButtonDown:r.Il.fromHex(9276813),secondaryButtonActive:r.Il.fromHex(15132390),secondaryButtonText:r.Il.fromHex(0),secondaryButtonStroke:r.Il.fromHex(16777215),grid:r.Il.fromHex(0),background:r.Il.fromHex(16777215),alternativeBackground:r.Il.fromHex(0),text:r.Il.fromHex(0),alternativeText:r.Il.fromHex(16777215),disabled:r.Il.fromHex(11382189),positive:r.Il.fromHex(5288704),negative:r.Il.fromHex(11730944)});{const t=c("ColorSet");t.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[r.Il.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),t.setPrivate("currentStep",0),t.setPrivate("currentPass",0)}c("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:h.out(h.cubic)}),c("Component").setAll({interpolationDuration:0,interpolationEasing:h.out(h.cubic)}),c("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:n.CI,tooltipY:n.CI,tooltipPosition:"fixed",isMeasured:!0}),c("Sprite").states.create("default",{visible:!0,opacity:1}),c("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),c("Graphics").setAll({strokeWidth:1}),c("Chart").setAll({width:n.AQ,height:n.AQ,interactiveChildren:!1}),c("ZoomableContainer").setAll({width:n.AQ,height:n.AQ,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:h.out(h.cubic),animationDuration:600,maxPanOut:.4}),c("Sprite",["horizontal","center"]).setAll({centerX:n.CI,x:n.CI}),c("Sprite",["vertical","center"]).setAll({centerY:n.CI,y:n.CI}),c("Container",["horizontal","layout"]).setAll({layout:i}),c("Container",["vertical","layout"]).setAll({layout:s}),c("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),c("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),c("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),c("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),c("GrainPattern").setAll({width:200,height:200,colors:[r.Il.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const t=c("PatternSet");t.setAll({step:1}),l(t,"color",e,"stroke")}c("LinearGradient").setAll({rotation:90}),c("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:o.M.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),c("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:t.translate("Press ENTER to toggle"),role:"checkbox"});{const t=c("Rectangle",["legend","item","background"]);t.setAll({fillOpacity:0}),l(t,"fill",e,"background")}c("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:n.CI,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),c("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:n.AQ,height:n.AQ,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const t=c("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});l(t,"fill",e,"disabled"),l(t,"stroke",e,"disabled")}c("Label",["legend","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0}),l(c("Label",["legend","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("Label",["legend","value","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:n.AQ,populateText:!0}),l(c("Label",["legend","value","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("HeatLegend").setAll({stepCount:1}),c("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),c("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:n.AQ,width:15}),c("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:n.AQ,height:15}),c("HeatLegend",["vertical"]).setAll({height:n.AQ}),c("HeatLegend",["horizontal"]).setAll({width:n.AQ}),c("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),c("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const t=c("Label");t.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),l(t,"fill",e,"text")}c("RadialLabel").setAll({textType:"regular",centerY:n.CI,centerX:n.CI,inside:!1,radius:0,baseRadius:n.AQ,orientation:"auto",textAlign:"center"}),c("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),c("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:r.Il.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:r.Il.fromHex(0)}),c("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),c("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),c("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),c("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const t=c("Tick");t.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),l(t,"stroke",e,"grid")}c("Bullet").setAll({locationX:.5,locationY:.5}),c("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:n.CI,centerY:n.CI,animationEasing:h.out(h.cubic),exportable:!1}),c("Tooltip",["system"]).setAll({pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});{const t=c("PointedRectangle",["tooltip","system","background"]);t.setAll({strokeOpacity:.3}),l(t,"fill",e,"background"),l(t,"stroke",e,"grid")}c("Label",["tooltip","system"]).setAll({fontSize:12,fill:e.get("background")}),c("Polygon").setAll({animationEasing:h.out(h.cubic)}),c("Link").setAll({cornerRadius:8,setStateOnChildren:!0});{const t=c("OrthogonalLine",["link","line"]);t.setAll({isMeasured:!1,crisp:!0}),l(t.states.create("active",{strokeWidth:2}),"stroke",e,"negative")}c("OrthogonalLine",["link","hit"]).setAll({strokeWidth:10,opacity:0,strokeOpacity:0});{const t=c("OrthogonalLine");t.setAll({strokeWidth:1,strokeOpacity:1,cornerRadius:10}),l(t,"stroke",e,"grid")}{const t=c("Triangle",["link"]);t.setAll({width:14,height:10,centerY:0}),l(t,"fill",e,"grid"),l(t,"stroke",e,"grid"),t.states.create("default",{stateAnimationDuration:0});const i=t.states.create("active",{stateAnimationDuration:0,stroke:(0,r.$_)(16777215),strokeWidth:2});i.set("draw",(t=>{t.arc(0,0,11,0,2*Math.PI),t.moveTo(-4,-4),t.lineTo(4,4),t.moveTo(4,-4),t.lineTo(-4,4)})),l(i,"fill",e,"negative")}c("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:r.Il.fromHex(16777215)});{const t=c("Label",["tooltip"]);t.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),l(t,"fill",e,"alternativeText")}c("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),c("Button").states.create("hover",{}),c("Button").states.create("down",{stateAnimationDuration:0}),c("Button").states.create("active",{}),c("Button").states.create("disabled",{forceInactive:!0});{const t=c("RoundedRectangle",["button","background"]);l(t,"fill",e,"primaryButton"),l(t,"stroke",e,"primaryButtonStroke")}l(c("RoundedRectangle",["button","background"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown"),l(c("RoundedRectangle",["button","background"]).states.create("active",{}),"fill",e,"primaryButtonActive"),l(c("RoundedRectangle",["button","background"]).states.create("disabled",{}),"fill",e,"primaryButtonDisabled"),l(c("Graphics",["button","icon"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled"),l(c("Label",["button"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled");{const t=c("Graphics",["button","icon"]);t.setAll({forceInactive:!0}),l(t,"stroke",e,"primaryButtonText")}l(c("Label",["button"]),"fill",e,"primaryButtonText"),c("ConfirmButton").setAll({toggleKey:"active",setStateOnChildren:!0,label:a._.new(this._root,{text:t.translate("Confirm"),forceHidden:!0})}),l(c("RoundedRectangle",["button","background","confirm"]).states.create("active",{}),"fill",e,"negative"),c("Label",["button","confirm"]).setAll({paddingTop:0,paddingBottom:0,paddingRight:3,paddingLeft:5}),c("Label",["button","confirm"]).states.create("default",{stateAnimationDuration:0}),c("Label",["button","confirm"]).states.create("active",{forceHidden:!1,stateAnimationDuration:0});{const t=c("Graphics",["icon","confirm","button"]);t.setAll({stateAnimationDuration:0}),t.states.create("default",{stateAnimationDuration:0}),l(t,"stroke",e,"primaryButtonText")}l(c("Graphics",["icon","confirm","button"]).states.create("active",{svgPath:"M -5 1 L 0 6 L 8 -5",strokeWidth:2}),"stroke",e,"primaryButtonText"),l(c("Graphics",["icon","confirm","button","secondary"]).states.create("active",{}),"stroke",e,"primaryButtonText"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1}),"fill",e,"negative"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1}),"fill",e,"negative"),c("Button",["button","confirm"]).states.create("hoverActive",{}),c("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:n.AQ,role:"button",ariaLabel:t.translate("Zoom Out"),layer:30});{const t=c("RoundedRectangle",["background","button","zoom"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"primaryButton")}l(c("RoundedRectangle",["background","button","zoom"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown");{const t=c("Graphics",["icon","button","zoom"]);t.setAll({crisp:!0,strokeOpacity:.7,draw:t=>{t.moveTo(0,0),t.lineTo(12,0)}}),l(t,"stroke",e,"primaryButtonText")}c("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:n.CI,centerY:n.CI,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:t.translate("Use up and down arrows to move selection")});{const t=c("RoundedRectangle",["background","resize","button"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"secondaryButton"),l(t,"stroke",e,"secondaryButtonStroke")}l(c("RoundedRectangle",["background","resize","button"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown");{const t=c("Graphics",["resize","button","icon"]);t.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),l(t,"stroke",e,"secondaryButtonText")}c("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),c("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),c("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:t.translate("Play"),toggleKey:"active"});{const t=c("RoundedRectangle",["play","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Graphics",["play","icon"]);t.setAll({stateAnimationDuration:0,dx:1,draw:t=>{t.moveTo(0,-5),t.lineTo(8,0),t.lineTo(0,5),t.lineTo(0,-5)}}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),c("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:t=>{t.moveTo(-4,-5),t.lineTo(-1,-5),t.lineTo(-1,5),t.lineTo(-4,5),t.lineTo(-4,-5),t.moveTo(4,-5),t.lineTo(1,-5),t.lineTo(1,5),t.lineTo(4,5),t.lineTo(4,-5)}}),c("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:t.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const t=c("RoundedRectangle",["switch","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["switch","icon"]);t.setAll({radius:8,centerY:0,centerX:0,dx:0}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["switch","icon"]).states.create("active",{dx:16}),c("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:h.out(h.cubic)}),c("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:n.AQ}),c("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:n.AQ}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const t=c("RoundedRectangle",["scrollbar","main","background"]);t.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),l(t,"fill",e,"fill")}{const t=c("RoundedRectangle",["scrollbar","thumb"]);t.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),l(t,"fill",e,"secondaryButton")}l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown"),c("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:n.CI,width:n.AQ,centerX:n.CI,ariaLabel:t.translate("Use up and down arrows to move selection")}),c("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:n.CI,centerY:n.CI,height:n.AQ,ariaLabel:t.translate("Use left and right arrows to move selection")});{const t=c("PointedRectangle",["axis","tooltip","background"]);t.setAll({cornerRadius:0}),l(t,"fill",e,"alternativeBackground")}c("Label",["axis","tooltip"]).setAll({role:void 0}),c("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),c("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),c("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),c("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),c("Star").setAll({spikes:5,innerRadius:5,radius:10}),c("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),c("Tooltip",["indicator"]).setAll({forceHidden:!0}),c("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),c("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),c("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),c("Container",["resizer","grip"]).states.create("hover",{});{const t=c("RoundedRectangle",["resizer","grip"]);t.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),l(t,"fill",e,"background"),l(t,"stroke",e,"alternativeBackground")}{const t=c("RoundedRectangle",["resizer","grip","outline"]);t.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),t.states.create("hover",{fillOpacity:.3}),l(t,"fill",e,"alternativeBackground")}c("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),c("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const t=c("Rectangle",["resizer","rectangle"]);t.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),l(t,"stroke",e,"alternativeBackground")}c("Graphics",["button","plus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0),t.moveTo(0,-4),t.lineTo(0,4)}}),c("Graphics",["button","minus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0)}}),c("Graphics",["button","home","icon"]).setAll({x:n.CI,y:n.CI,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),c("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),c("ZoomTools").setAll({x:n.AQ,centerX:n.AQ,y:n.AQ,centerY:n.AQ,paddingRight:10,paddingBottom:10}),c("ProgressPie").setAll({radius:n.AQ,width:50,height:50,centerX:(0,n.aQ)(-50),centerY:(0,n.aQ)(-50),innerRadius:(0,n.aQ)(85),numberFormat:"#."});{const t=c("Label",["progresspie"]);t.setAll({centerX:n.CI,centerY:n.CI,fontSize:"0.75em"}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["progresspie"]);t.setAll({fillOpacity:.5}),l(t,"fill",e,"background")}{const t=c("Slice",["progresspie"]);t.setAll({startAngle:-90}),l(t,"fill",e,"primaryButton")}{const t=c("Slice",["progresspie","background"]);t.setAll({fillOpacity:.2,arc:360}),l(t,"fill",e,"primaryButton")}c("EditableLabel",["numericstepper"]).setAll({y:n.CI,centerY:n.CI,multiLine:!1,marginRight:2});{const t=c("Container",["numericstepper","buttons"]);t.setAll({layout:this._root.verticalLayout,centerY:n.CI,y:n.CI,marginRight:10,opacity:0}),t.states.create("active",{opacity:1}),t.states.create("default",{opacity:0})}{const t=c("Triangle",["numericstepper"]);t.setAll({width:17,height:11,marginTop:3,marginBottom:3,strokeWidth:5,strokeOpacity:0,cursorOverStyle:"pointer"}),l(t,"fill",e,"secondaryButton")}c("Triangle",["downbutton"]).setAll({rotation:180})}}},5322:function(t,e,i){"use strict";i.r(e),i.d(e,{ArrayDisposer:function(){return c.rk},BlendMode:function(){return ot.b},Bullet:function(){return u.g},Button:function(){return d.z},CSVParser:function(){return bt},CanvasLayer:function(){return Pt.mM},CanvasRenderer:function(){return Pt.uK},Chart:function(){return q.k},Circle:function(){return g.C},CirclePattern:function(){return ut},Color:function(){return O.Il},ColorSet:function(){return mt.U},Component:function(){return v.w},ConfirmButton:function(){return p.p},Container:function(){return w.W},CounterDisposer:function(){return c.DM},DataItem:function(){return v.z},DataProcessor:function(){return xt},DateFormatter:function(){return Dt.C},Disposer:function(){return c.ku},DurationFormatter:function(){return kt.$},EditableLabel:function(){return A.Y},Ellipse:function(){return _.P},Entity:function(){return l.JH},Gradient:function(){return at.p},GrainPattern:function(){return rt},Graphics:function(){return m.T},GridLayout:function(){return x.M},HeatLegend:function(){return C},HorizontalLayout:function(){return L.G},InterfaceColors:function(){return Tt.v},JSONParser:function(){return wt},JsonData:function(){return yt.Q},Label:function(){return D._},Layout:function(){return R.A},Legend:function(){return U.D},Line:function(){return B.x},LinePattern:function(){return dt.y},LinearGradient:function(){return S.o},Link:function(){return F.r},ListData:function(){return yt.k},ListTemplate:function(){return E.o},Modal:function(){return h.u},MultiDisposer:function(){return c.FV},MutableValueDisposer:function(){return c.cx},NumberFormatter:function(){return Mt.e},NumericStepper:function(){return St.l},OrthogonalLine:function(){return I.P},PathPattern:function(){return ft},Pattern:function(){return nt.c},PatternSet:function(){return _t},Percent:function(){return k.gG},Picture:function(){return H.t},PicturePattern:function(){return pt.v},PointedRectangle:function(){return z.i},Polygon:function(){return f.m},ProgressPie:function(){return Nt.w},RadialGradient:function(){return lt},RadialLabel:function(){return G.x},RadialText:function(){return V.f},Rectangle:function(){return W.A},RectanglePattern:function(){return gt},Root:function(){return n.f},RoundedRectangle:function(){return T.c},Scrollbar:function(){return j.L},SerialChart:function(){return Q.j},Series:function(){return K.F},Slice:function(){return $.p},Slider:function(){return X.i},Sprite:function(){return Z.j},SpriteResizer:function(){return Ot.b},Star:function(){return y},Template:function(){return M.YS},Text:function(){return J.x},TextFormatter:function(){return Et.V},Theme:function(){return r.Q},Tick:function(){return tt.d},Timezone:function(){return it.r},Tooltip:function(){return P.u},Triangle:function(){return Y.C},VerticalLayout:function(){return et.Z},ZoomTools:function(){return st.H},ZoomableContainer:function(){return b.Y},addLicense:function(){return o.cP},array:function(){return ht},color:function(){return O.$_},disposeAllRootElements:function(){return o.UZ},ease:function(){return Ct},getRootById:function(){return o.f_},math:function(){return ct},net:function(){return s},object:function(){return vt},p0:function(){return k.p0},p100:function(){return k.AQ},p50:function(){return k.CI},percent:function(){return k.aQ},ready:function(){return a.ready},registry:function(){return o.i_},time:function(){return Rt},type:function(){return N},utils:function(){return a}});var s={};i.r(s),i.d(s,{load:function(){return Lt},readBlob:function(){return At}});var n=i(2855),r=i(3409),o=i(3145),a=i(7652),h=i(8219),l=i(6331),c=i(7449),u=i(5108),d=i(8054),p=i(2936),g=i(8035),f=i(7770),_=i(2433),m=i(1479);class y extends m.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("spikes"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const t=this._display,e=this.get("radius",0),i=a.relativeToValue(this.get("innerRadius",0),e),s=this.get("spikes",0),n=Math.PI/s;let r=Math.PI/2*3;t.moveTo(0,-e);for(let o=0;oT.c._new(this._root,{themeTags:a.mergeTags(this.markers.template.get("themeTags",[]),[this.get("orientation"),"heatlegend","marker"])},[this.markers.template]))))}_afterNew(){this._settings.themeTags=a.mergeTags(this._settings.themeTags,["heatlegend",this._settings.orientation]),super._afterNew(),this.set("tooltip",P.u.new(this._root,{themeTags:["heatlegend"]}))}makeMarker(){const t=this.markers.make();return t.states.create("disabled",{}),t}showValue(t,e,i){const s=this.getTooltip();if(s&&N.isNumber(t)){const n=this.get("startValue",0);let r=(t-n)/(this.get("endValue",1)-n);(r==1/0||r==-1/0||isNaN(r))&&(r=.5);const o=this.get("startColor"),a=this.get("endColor");let h;e||(e=this.getNumberFormatter().format(t)),i||(i=O.Il.interpolate(r,o,a)),s.label.set("text",e),h="vertical"==this.get("orientation")?this.markerContainer.toGlobal({x:0,y:this.innerHeight()*(1-r)}):this.markerContainer.toGlobal({x:this.innerWidth()*r,y:0});let l=s.get("background");l&&l.set("fill",i),s.set("pointTo",h),s.show()}}_prepareChildren(){super._prepareChildren();const t=this.labelContainer,e=this.get("orientation"),i=this.startLabel,s=this.endLabel,n=this.getTooltip();if(this.isDirty("orientation")&&("vertical"==e?(this.markerContainer.setAll({layout:this._root.verticalLayout,height:k.AQ}),this.set("layout",this._root.horizontalLayout),i.setAll({y:k.AQ,x:void 0,centerY:k.AQ,centerX:k.AQ}),s.setAll({y:0,x:void 0,centerY:0,centerX:k.AQ}),t.setAll({height:k.AQ,width:void 0}),n&&n.set("pointerOrientation","horizontal")):(this.markerContainer.setAll({layout:this._root.horizontalLayout,width:k.AQ}),this.set("layout",this._root.verticalLayout),i.setAll({x:0,y:void 0,centerX:0,centerY:0}),s.setAll({x:k.AQ,y:void 0,centerX:k.AQ,centerY:0}),t.setAll({width:k.AQ,height:void 0}),n&&n.set("pointerOrientation","vertical"))),this.isDirty("stepCount")){const t=this.get("stepCount",1),i=this.get("startColor"),s=this.get("endColor"),n=this.get("startOpacity",1),r=this.get("endOpacity",1);if(this.markerContainer.children.clear(),t>1)for(let o=0;o0&&e/u!=Math.round(e/u)))for(let h=0;h0&&h/c!=Math.round(h/c)||d{let i=e.offset;N.isNumber(i)||(i=t/(g.length-1));let s=e.opacity;N.isNumber(s)||(s=1);let n=e.color;if(n){const t=e.lighten;t&&(n=O.Il.lighten(n,t));const r=e.brighten;r&&(n=O.Il.brighten(n,r)),p.addColorStop(i,"rgba("+n.r+","+n.g+","+n.b+","+s+")")}t++}))}return p}}lt.className="RadialGradient",lt.classNames=at.p.classNames.concat([lt.className]);var ct=i(751);class ut extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("radius",3),a=2*o+i,h=2*o+i,l=Math.round(n/a),c=Math.round(r/h);a=n/l,h=r/c,0!=s&&(this._display.x=a*ct.cos(s),this._display.y=h*ct.sin(s));const u=this.get("color"),d=this.get("colorOpacity");(u||d)&&this._display.beginFill(u,d);for(let n=0==s?0:2*-c;n<2*c;n++)for(let r=0==s?0:2*-l;r<2*l;r++)if(!t||1!=(1&n)&&1!=(1&r)||1==(1&n)&&1==(1&r)){let t=r*a,s=n*h;e&&(t+=a+i/2,s+=h+i/2),this._display.drawCircle(t-o,s-o,o)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i),(u||d)&&this._display.endFill()}}ut.className="CirclePattern",ut.classNames=nt.c.classNames.concat([ut.className]);var dt=i(3035),pt=i(4429);class gt extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("maxWidth",5),a=this.get("maxHeight",5);const h=this._display;let l=o+i,c=a+i,u=Math.round(n/l),d=Math.round(r/c);l=n/u,c=r/d,0!=s&&(h.x=l/2*ct.cos(s),h.y=-c/2*ct.sin(s));for(let i=0==s?0:2*-d;i<2*d;i++)for(let n=0==s?0:2*-u;n<2*u;n++)if(!t||1!=(1&i)&&1!=(1&n)||1==(1&i)&&1==(1&n)){let t=n*l,s=i*c;e&&(t+=(l-o)/2,s+=(c-a)/2),h.drawRect(t,s,o,a)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i);const p=this.get("color"),g=this.get("colorOpacity");(p||g)&&(h.beginFill(p,g),h.endFill())}}gt.className="RectanglePattern",gt.classNames=nt.c.classNames.concat([gt.className]);class ft extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("svgPath")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("svgPath");null!=t&&this._display.svgPath(t);const e=this.get("color"),i=this.get("colorOpacity");(e||i)&&(this._display.beginFill(e,i),this._display.endFill())}}ft.className="PathPattern",ft.classNames=nt.c.classNames.concat([ft.className]);class _t extends l.JH{_afterNew(){if(super._afterNewApplyThemes(),0===this.get("patterns",[]).length){const t=this.get("color",this.root.interfaceColors.get("stroke"));this.set("patterns",[this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:1,color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,maxWidth:4,maxHeight:4,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:1,gap:6,color:t}),this.getCirclePattern({width:11,height:11,radius:2,color:t}),this.getLinePattern({width:6,height:6,rotation:90,strokeWidth:1,color:t}),this.getRectanglePattern({width:14,height:14,rotation:45,gap:4,maxWidth:6,maxHeight:6,checkered:!0,color:t}),this.getLinePattern({width:6,height:6,rotation:0,strokeWidth:1,color:t}),this.getRectanglePattern({width:15,height:15,rotation:0,gap:5,maxWidth:5,maxHeight:5,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getCirclePattern({width:20,height:20,radius:3,gap:4,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,gap:1,maxWidth:9,maxHeight:9,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:0,strokeWidth:3,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:90,strokeWidth:3,gap:1,color:t})])}this._dirty.patterns=!1}_beforeChanged(){this.isDirty("patterns")&&this.reset()}getIndex(t){const e=this.get("patterns",[]);return te.length-1?e[t-Math.floor(t*(t/e.length))]:e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0))}getLinePattern(t){return dt.y.new(this.root,t)}getRectanglePattern(t){return gt.new(this.root,t)}getCirclePattern(t){return ut.new(this.root,t)}}_t.className="PatternSet",_t.classNames=l.JH.classNames.concat([_t.className]);var mt=i(2754),yt=i(9582),vt=i(256);class wt{static parse(t,e){e=this._applyDefaults(e);try{if(N.isString(t)){let i=JSON.parse(t);return e.reverse&&N.isArray(i)&&i.reverse(),i}if(N.isArray(t)||N.isObject(t))return t;throw"Unable to parse JSON data"}catch(t){return}}static _applyDefaults(t){const e={};return t||(t={}),vt.each({reverse:!1},((i,s)=>{e[i]=t[i]||s})),e}}class bt{static parse(t,e){e=this._applyDefaults(e);let i,s,n,r=this.CSVToArray(t,e.delimiter),o=[],a=[];for(s=0;s{e[i]=t[i]||s})),e}}class xt extends l.JH{constructor(){super(...arguments),this._checkDates=!1,this._checkNumbers=!1,this._checkColors=!1,this._checkEmpty=!1,this._checkDeep=!1}_afterNew(){super._afterNew(),this._checkFeatures(),this.on("dateFields",(()=>this._checkFeatures())),this.on("dateFormat",(()=>this._checkFeatures())),this.on("numericFields",(()=>this._checkFeatures())),this.on("colorFields",(()=>this._checkFeatures())),this.on("emptyAs",(()=>this._checkFeatures()))}_checkFeatures(){(this.isDirty("dateFields")||this.isDirty("dateFormat"))&&(this._checkDates=this.get("dateFields")&&this.get("dateFields").length>0),this.isDirty("numericFields")&&(this._checkNumbers=this.get("numericFields")&&this.get("numericFields").length>0),this.isDirty("colorFields")&&(this._checkColors=this.get("colorFields")&&this.get("colorFields").length>0),this.isDirty("emptyAs")&&(this._checkEmpty=null!=this.get("emptyAs")),this._checkDeepFeatures()}_checkDeepFeatures(){const t=[];ht.each(["dateFields","numericFields","colorFields"],(e=>{ht.each(this.get(e,[]),(e=>{const i=e.split(".");for(i.pop();i.length>0;)t.push(i.join(".")),i.pop()}))})),this._checkDeep=t.length>0,this.setPrivate("deepFields",t)}processMany(t){N.isArray(t)&&(this._checkDates||this._checkNumbers||this._checkColors||this._checkEmpty)&&ht.each(t,(t=>{this.processRow(t)}))}processRow(t,e=""){vt.each(t,((i,s)=>{const n=e+i;this._checkEmpty&&(t[i]=this._maybeToEmpty(t[i])),this._checkNumbers&&(t[i]=this._maybeToNumber(n,t[i])),this._checkDates&&(t[i]=this._maybeToDate(n,t[i])),this._checkColors&&(t[i]=this._maybeToColor(n,t[i])),this._checkDeep&&-1!==this.getPrivate("deepFields",[]).indexOf(n)&&N.isObject(t[i])&&this.processRow(t[i],n+".")}))}_maybeToNumber(t,e){return-1!==this.get("numericFields").indexOf(t)?N.toNumber(e):e}_maybeToDate(t,e){return-1!==this.get("dateFields").indexOf(t)?this._root.dateFormatter.parse(e,this.get("dateFormat","")).getTime():e}_maybeToEmpty(t){return null!=t&&""!=t||null==this.get("emptyAs")?t:this.get("emptyAs")}_maybeToColor(t,e){return-1!==this.get("colorFields").indexOf(t)?O.Il.fromAny(e):e}}var Dt=i(6460),kt=i(798),Tt=i(9821),Mt=i(780),Et=i(7255),Ot=i(1195),Pt=i(4102),St=i(7049),Nt=i(6312),Ct=i(9395);function Lt(t,e,i){return new Promise(((s,n)=>{let r=null!=i&&"blob"==i.responseType,o=new XMLHttpRequest;if(o.onload=()=>{if(200===o.status){let t,i;if(r)return i=o.response,void At(i).then((t=>{let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}));t=o.responseText||o.response;let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}else n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.onerror=()=>{n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.open("GET",t,!0),i&&i.withCredentials&&(o.withCredentials=!0),null!=i){if(null!=i.requestHeaders)for(let t=0;t{const s=new FileReader;s.onload=t=>{e(s.result)},s.onerror=t=>{i(t)},s.readAsText(t)}))}var Rt=i(1926)},3100:function(t,e){"use strict";e.Z={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(t){let e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""}},9629:function(t){var e=function(t){"use strict";var e,i=Object.prototype,s=i.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",h=r.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,s){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new S(s||[]);return n(o,"_invoke",{value:M(t,i,a)}),o}function u(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",g="executing",f="completed",_={};function m(){}function y(){}function v(){}var w={};l(w,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==i&&s.call(x,o)&&(w=x);var D=v.prototype=m.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function i(n,r,o,a){var h=u(t[n],t,r);if("throw"!==h.type){var l=h.arg,c=l.value;return c&&"object"==typeof c&&s.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,o,a)}),(function(t){i("throw",t,o,a)})):e.resolve(c).then((function(t){l.value=t,o(l)}),(function(t){return i("throw",t,o,a)}))}a(h.arg)}var r;n(this,"_invoke",{value:function(t,s){function n(){return new e((function(e,n){i(t,s,e,n)}))}return r=r?r.then(n,n):n()}})}function M(t,e,i){var s=d;return function(n,r){if(s===g)throw new Error("Generator is already running");if(s===f){if("throw"===n)throw r;return C()}for(i.method=n,i.arg=r;;){var o=i.delegate;if(o){var a=E(o,i);if(a){if(a===_)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===d)throw s=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=g;var h=u(t,e,i);if("normal"===h.type){if(s=i.done?f:p,h.arg===_)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(s=f,i.method="throw",i.arg=h.arg)}}}function E(t,i){var s=i.method,n=t.iterator[s];if(n===e)return i.delegate=null,"throw"===s&&t.iterator.return&&(i.method="return",i.arg=e,E(t,i),"throw"===i.method)||"return"!==s&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),_;var r=u(n,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,_;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,_):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,_)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var h=s.call(o,"catchLoc"),l=s.call(o,"finallyLoc");if(h&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var s=i.completion;if("throw"===s.type){var n=s.arg;P(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,s){return this.delegate={iterator:N(t),resultName:i,nextLoc:s},"next"===this.method&&(this.arg=e),_}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},8494:function(t,e,i){"use strict";i.r(e),i.d(e,{am5:function(){return f}});const s=window.Promise,n=s&&s.prototype.then,r=s&&s.prototype.catch,o=s&&s.prototype.finally,a=s&&s.reject,h=s&&s.resolve,l=s&&s.allSettled,c=s&&s.all,u=s&&s.race,d=window.fetch,p=String.prototype.startsWith,g=String.prototype.endsWith;i(9629);const f=i(5322);var _;i.p=(_=function(){if(document.currentScript)return document.currentScript;var t=document.getElementsByTagName("script");return t[t.length-1]}().src,((/(.*\/)[^\/]*$/.exec(_)||[])[1]||"./")),s&&(window.Promise=s,n&&(s.prototype.then=n),r&&(s.prototype.catch=r),o&&(s.prototype.finally=o),a&&(s.reject=a),h&&(s.resolve=h),l&&(s.allSettled=l),c&&(s.all=c),u&&(s.race=u)),d&&(window.fetch=d),p&&(String.prototype.startsWith=p),g&&(String.prototype.endsWith=g)},4138:function(t,e){"use strict";var i={value:()=>{}};function s(){for(var t,e=0,i=arguments.length,s={};e=0&&(e=t.slice(i+1),t=t.slice(0,i)),t&&!s.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),h=-1,l=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++h0)for(var i,s,n=new Array(i),r=0;r0&&i*i>s*s+n*n}function u(t,e){for(var i=0;i1e-6?(E+Math.sqrt(E*E-4*M*O))/(2*M):O/E);return{x:s+x+D*P,y:n+k+T*P,r:P}}function f(t,e,i){var s,n,r,o,a=t.x-e.x,h=t.y-e.y,l=a*a+h*h;l?(n=e.r+i.r,n*=n,o=t.r+i.r,n>(o*=o)?(s=(l+o-n)/(2*l),r=Math.sqrt(Math.max(0,o/l-s*s)),i.x=t.x-s*a-r*h,i.y=t.y-s*h+r*a):(s=(l+n-o)/(2*l),r=Math.sqrt(Math.max(0,n/l-s*s)),i.x=e.x+s*a-r*h,i.y=e.y+s*h+r*a)):(i.x=e.x+i.r,i.y=e.y)}function _(t,e){var i=t.r+e.r-1e-6,s=e.x-t.x,n=e.y-t.y;return i>0&&i*i>s*s+n*n}function m(t){var e=t._,i=t.next._,s=e.r+i.r,n=(e.x*i.r+i.x*e.r)/s,r=(e.y*i.r+i.y*e.r)/s;return n*n+r*r}function y(t){this._=t,this.next=null,this.previous=null}function v(t,e){if(!(o=(i=t,t="object"==typeof i&&"length"in i?i:Array.from(i)).length))return 0;var i,s,n,r,o,a,l,u,p,g,v,w;if((s=t[0]).x=0,s.y=0,!(o>1))return s.r;if(n=t[1],s.x=-n.r,n.x=s.r,n.y=0,!(o>2))return s.r+n.r;f(n,s,r=t[2]),s=new y(s),n=new y(n),r=new y(r),s.next=r.previous=n,n.next=s.previous=r,r.next=n.previous=s;t:for(u=3;u(t=(r*t+o)%a)/a}();return s.x=e/2,s.y=i/2,t?s.eachBefore(x(t)).eachAfter(D(h,.5,l)).eachBefore(k(1)):s.eachBefore(x(w)).eachAfter(D(n.G,1,l)).eachAfter(D(h,s.r/Math.min(e,i),l)).eachBefore(k(Math.min(e,i)/(2*s.r))),s}return l.radius=function(e){return arguments.length?(t=(0,s.j)(e),l):t},l.size=function(t){return arguments.length?(e=+t[0],i=+t[1],l):[e,i]},l.padding=function(t){return arguments.length?(h="function"==typeof t?t:(0,n.Z)(+t),l):h},l}function x(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function D(t,e,i){return function(s){if(n=s.children){var n,r,o,a=n.length,h=t(s)*e||0;if(h)for(r=0;r=0))throw new Error(`invalid digits: ${t}`);if(e>15)return a;const i=10**e;return function(t){this._+=t[0];for(let e=1,s=t.length;er)if(Math.abs(d*l-c*u)>r&&o){let g=i-a,f=n-h,_=l*l+c*c,m=g*g+f*f,y=Math.sqrt(_),v=Math.sqrt(p),w=o*Math.tan((s-Math.acos((_+p-m)/(2*y*v)))/2),b=w/v,x=w/y;Math.abs(b-1)>r&&this._append`L${t+b*u},${e+b*d}`,this._append`A${o},${o},0,0,${+(d*g>u*f)},${this._x1=t+x*l},${this._y1=e+x*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,i,a,h,l){if(t=+t,e=+e,l=!!l,(i=+i)<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(a),u=i*Math.sin(a),d=t+c,p=e+u,g=1^l,f=l?a-h:h-a;null===this._x1?this._append`M${d},${p}`:(Math.abs(this._x1-d)>r||Math.abs(this._y1-p)>r)&&this._append`L${d},${p}`,i&&(f<0&&(f=f%n+n),f>o?this._append`A${i},${i},0,1,${g},${t-c},${e-u}A${i},${i},0,1,${g},${this._x1=d},${this._y1=p}`:f>r&&this._append`A${i},${i},0,${+(f>=s)},${g},${this._x1=t+i*Math.cos(h)},${this._y1=e+i*Math.sin(h)}`)}rect(t,e,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function l(){return new h}l.prototype=h.prototype},832:function(t,e,i){"use strict";i.d(e,{Z:function(){return D}});var s=i(3141);const n=Math.abs,r=Math.atan2,o=Math.cos,a=Math.max,h=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,d=Math.PI,p=d/2,g=2*d;function f(t){return t>=1?p:t<=-1?-p:Math.asin(t)}var _=i(5987);function m(t){return t.innerRadius}function y(t){return t.outerRadius}function v(t){return t.startAngle}function w(t){return t.endAngle}function b(t){return t&&t.padAngle}function x(t,e,i,s,n,r,o){var h=t-i,l=e-s,u=(o?r:-r)/c(h*h+l*l),d=u*l,p=-u*h,g=t+d,f=e+p,_=i+d,m=s+p,y=(g+_)/2,v=(f+m)/2,w=_-g,b=m-f,x=w*w+b*b,D=n-r,k=g*m-_*f,T=(b<0?-1:1)*c(a(0,D*D*x-k*k)),M=(k*b-w*T)/x,E=(-k*w-b*T)/x,O=(k*b+w*T)/x,P=(-k*w+b*T)/x,S=M-y,N=E-v,C=O-y,L=P-v;return S*S+N*N>C*C+L*L&&(M=O,E=P),{cx:M,cy:E,x01:-d,y01:-p,x11:M*(n/D-1),y11:E*(n/D-1)}}function D(){var t=m,e=y,i=(0,s.Z)(0),a=null,D=v,k=w,T=b,M=null,E=(0,_.d)(O);function O(){var s,_,m,y=+t.apply(this,arguments),v=+e.apply(this,arguments),w=D.apply(this,arguments)-p,b=k.apply(this,arguments)-p,O=n(b-w),P=b>w;if(M||(M=s=E()),vu)if(O>g-u)M.moveTo(v*o(w),v*l(w)),M.arc(0,0,v,w,b,!P),y>u&&(M.moveTo(y*o(b),y*l(b)),M.arc(0,0,y,b,w,P));else{var S,N,C=w,L=b,A=w,R=b,U=O,B=O,F=T.apply(this,arguments)/2,I=F>u&&(a?+a.apply(this,arguments):c(y*y+v*v)),H=h(n(v-y)/2,+i.apply(this,arguments)),z=H,G=H;if(I>u){var V=f(I/y*l(F)),W=f(I/v*l(F));(U-=2*V)>u?(A+=V*=P?1:-1,R-=V):(U=0,A=R=(w+b)/2),(B-=2*W)>u?(C+=W*=P?1:-1,L-=W):(B=0,C=L=(w+b)/2)}var Y=v*o(C),j=v*l(C),X=y*o(R),$=y*l(R);if(H>u){var Z,K=v*o(L),q=v*l(L),Q=y*o(A),J=y*l(A);if(O1?0:m<-1?d:Math.acos(m))/2),rt=c(Z[0]*Z[0]+Z[1]*Z[1]);z=h(H,(y-rt)/(nt-1)),G=h(H,(v-rt)/(nt+1))}else z=G=0}B>u?G>u?(S=x(Q,J,Y,j,v,G,P),N=x(K,q,X,$,v,G,P),M.moveTo(S.cx+S.x01,S.cy+S.y01),Gu&&U>u?z>u?(S=x(X,$,K,q,y,-z,P),N=x(Y,j,Q,J,y,-z,P),M.lineTo(S.cx+S.x01,S.cy+S.y01),z=o;--a)p.point(y[a],v[a]);p.lineEnd(),p.areaEnd()}m&&(y[r]=+t(h,r,n),v[r]=+e(h,r,n),p.point(l?+l(h,r,n):y[r],i?+i(h,r,n):v[r]))}if(f)return p=null,f+""||null}function _(){return(0,o.Z)().defined(c).curve(d).context(u)}return t="function"==typeof t?t:void 0===t?h.x:(0,n.Z)(+t),e="function"==typeof e?e:void 0===e?(0,n.Z)(0):(0,n.Z)(+e),i="function"==typeof i?i:void 0===i?h.y:(0,n.Z)(+i),f.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),l=null,f):t},f.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),f):t},f.x1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):l},f.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),i=null,f):e},f.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),f):e},f.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):i},f.lineX0=f.lineY0=function(){return _().x(t).y(e)},f.lineY1=function(){return _().x(t).y(i)},f.lineX1=function(){return _().x(l).y(e)},f.defined=function(t){return arguments.length?(c="function"==typeof t?t:(0,n.Z)(!!t),f):c},f.curve=function(t){return arguments.length?(d=t,null!=u&&(p=d(u)),f):d},f.context=function(t){return arguments.length?(null==t?u=p=null:p=d(u=t),f):u},f}},8457:function(t,e,i){"use strict";function s(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}i.d(e,{Z:function(){return s}}),Array.prototype.slice},3141:function(t,e,i){"use strict";function s(t){return function(){return t}}i.d(e,{Z:function(){return s}})},964:function(t,e,i){"use strict";function s(t){this._context=t}function n(t){return new s(t)}i.d(e,{Z:function(){return n}}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},774:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var s=i(8457),n=i(3141),r=i(964),o=i(5987),a=i(6758);function h(t,e){var i=(0,n.Z)(!0),h=null,l=r.Z,c=null,u=(0,o.d)(d);function d(n){var r,o,a,d=(n=(0,s.Z)(n)).length,p=!1;for(null==h&&(c=l(a=u())),r=0;r<=d;++r)!(r=0))throw new RangeError(`invalid digits: ${i}`);e=t}return t},()=>new s.y$(e)}},6758:function(t,e,i){"use strict";function s(t){return t[0]}function n(t){return t[1]}i.d(e,{x:function(){return s},y:function(){return n}})},7738:function(t,e,i){"use strict";i.d(e,{B7:function(){return _},HT:function(){return m},zO:function(){return g}});var s,n,r=0,o=0,a=0,h=1e3,l=0,c=0,u=0,d="object"==typeof performance&&performance.now?performance:Date,p="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return c||(p(f),c=d.now()+u)}function f(){c=0}function _(){this._call=this._time=this._next=null}function m(t,e,i){var s=new _;return s.restart(t,e,i),s}function y(){c=(l=d.now())+u,r=o=0;try{!function(){g(),++r;for(var t,e=s;e;)(t=c-e._time)>=0&&e._call.call(void 0,t),e=e._next;--r}()}finally{r=0,function(){for(var t,e,i=s,r=1/0;i;)i._call?(r>i._time&&(r=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:s=e);n=t,w(r)}(),c=0}}function v(){var t=d.now(),e=t-l;e>h&&(u-=e,l=t)}function w(t){r||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(y,t-d.now()-u)),a&&(a=clearInterval(a))):(a||(l=d.now(),a=setInterval(v,h)),r=1,p(y)))}_.prototype=m.prototype={constructor:_,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?g():+i)+(null==e?0:+e),this._next||n===this||(n?n._next=this:s=this,n=this),this._call=t,this._time=i,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},7896:function(t,e,i){"use strict";function s(){}function n(t){return null==t?s:function(){return this.querySelector(t)}}function r(){return[]}function o(t){return null==t?r:function(){return this.querySelectorAll(t)}}function a(t){return function(){return this.matches(t)}}function h(t){return function(e){return e.matches(t)}}var l=Array.prototype.find;function c(){return this.firstElementChild}var u=Array.prototype.filter;function d(){return Array.from(this.children)}function p(t){return new Array(t.length)}function g(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function f(t,e,i,s,n,r){for(var o,a=0,h=e.length,l=r.length;ae?1:t>=e?0:NaN}g.prototype={constructor:g,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var w="http://www.w3.org/1999/xhtml",b={svg:"http://www.w3.org/2000/svg",xhtml:w,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function x(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),b.hasOwnProperty(e)?{space:b[e],local:t}:t}function D(t){return function(){this.removeAttribute(t)}}function k(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T(t,e){return function(){this.setAttribute(t,e)}}function M(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function O(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function P(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function S(t){return function(){this.style.removeProperty(t)}}function N(t,e,i){return function(){this.style.setProperty(t,e,i)}}function C(t,e,i){return function(){var s=e.apply(this,arguments);null==s?this.style.removeProperty(t):this.style.setProperty(t,s,i)}}function L(t,e){return t.style.getPropertyValue(e)||P(t).getComputedStyle(t,null).getPropertyValue(e)}function A(t){return function(){delete this[t]}}function R(t,e){return function(){this[t]=e}}function U(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function B(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new I(t)}function I(t){this._node=t,this._names=B(t.getAttribute("class")||"")}function H(t,e){for(var i=F(t),s=-1,n=e.length;++s=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ut=[null];function dt(t,e){this._groups=t,this._parents=e}function pt(){return new dt([[document.documentElement]],ut)}dt.prototype=pt.prototype={constructor:dt,select:function(t){"function"!=typeof t&&(t=n(t));for(var e=this._groups,i=e.length,s=new Array(i),r=0;r=T&&(T=k+1);!(D=b[T])&&++T=0;)(s=n[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=v);for(var i=this._groups,s=i.length,n=new Array(s),r=0;r1?this.each((null==e?S:"function"==typeof e?C:N)(t,e,null==i?"":i)):L(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?A:"function"==typeof e?U:R)(t,e)):this.node()[t]},classed:function(t,e){var i=B(t+"");if(arguments.length<2){for(var s=F(this.node()),n=-1,r=i.length;++n=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}))}(t+""),o=r.length;if(!(arguments.length<2)){for(a=e?at:ot,s=0;s{s.stop(),t(i+e)}),e,i),s}var yt=(0,ft.Z)("start","end","cancel","interrupt"),vt=[],wt=0,bt=3;function xt(t,e,i,s,n,r){var o=t.__transition;if(o){if(i in o)return}else t.__transition={};!function(t,e,i){var s,n=t.__transition;function r(h){var l,c,u,d;if(1!==i.state)return a();for(l in n)if((d=n[l]).name===i.name){if(d.state===bt)return mt(r);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[l]):+lwt)throw new Error("too late; already scheduled");return i}function kt(t,e){var i=Tt(t,e);if(i.state>bt)throw new Error("too late; already running");return i}function Tt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Mt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Et,Ot=180/Math.PI,Pt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function St(t,e,i,s,n,r){var o,a,h;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(h=t*i+e*s)&&(i-=t*h,s-=e*h),(a=Math.sqrt(i*i+s*s))&&(i/=a,s/=a,h/=a),t*s180?e+=360:e-t>180&&(t+=360),r.push({i:i.push(n(i)+"rotate(",null,s)-2,x:Mt(t,e)})):e&&i.push(n(i)+"rotate("+e+s)}(r.rotate,o.rotate,a,h),function(t,e,i,r){t!==e?r.push({i:i.push(n(i)+"skewX(",null,s)-2,x:Mt(t,e)}):e&&i.push(n(i)+"skewX("+e+s)}(r.skewX,o.skewX,a,h),function(t,e,i,s,r,o){if(t!==i||e!==s){var a=r.push(n(r)+"scale(",null,",",null,")");o.push({i:a-4,x:Mt(t,i)},{i:a-2,x:Mt(e,s)})}else 1===i&&1===s||r.push(n(r)+"scale("+i+","+s+")")}(r.scaleX,r.scaleY,o.scaleX,o.scaleY,a,h),r=o=null,function(t){for(var e,i=-1,s=h.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?se(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?se(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jt.exec(t))?new re(e[1],e[2],e[3],1):(e=Xt.exec(t))?new re(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$t.exec(t))?se(e[1],e[2],e[3],e[4]):(e=Zt.exec(t))?se(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Kt.exec(t))?ue(e[1],e[2]/100,e[3]/100,1):(e=qt.exec(t))?ue(e[1],e[2]/100,e[3]/100,e[4]):Qt.hasOwnProperty(t)?ie(Qt[t]):"transparent"===t?new re(NaN,NaN,NaN,0):null}function ie(t){return new re(t>>16&255,t>>8&255,255&t,1)}function se(t,e,i,s){return s<=0&&(t=e=i=NaN),new re(t,e,i,s)}function ne(t,e,i,s){return 1===arguments.length?((n=t)instanceof It||(n=ee(n)),n?new re((n=n.rgb()).r,n.g,n.b,n.opacity):new re):new re(t,e,i,null==s?1:s);var n}function re(t,e,i,s){this.r=+t,this.g=+e,this.b=+i,this.opacity=+s}function oe(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}`}function ae(){const t=he(this.opacity);return`${1===t?"rgb(":"rgba("}${le(this.r)}, ${le(this.g)}, ${le(this.b)}${1===t?")":`, ${t})`}`}function he(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function le(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ce(t){return((t=le(t))<16?"0":"")+t.toString(16)}function ue(t,e,i,s){return s<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new pe(t,e,i,s)}function de(t){if(t instanceof pe)return new pe(t.h,t.s,t.l,t.opacity);if(t instanceof It||(t=ee(t)),!t)return new pe;if(t instanceof pe)return t;var e=(t=t.rgb()).r/255,i=t.g/255,s=t.b/255,n=Math.min(e,i,s),r=Math.max(e,i,s),o=NaN,a=r-n,h=(r+n)/2;return a?(o=e===r?(i-s)/a+6*(i0&&h<1?0:o,new pe(o,a,h,t.opacity)}function pe(t,e,i,s){this.h=+t,this.s=+e,this.l=+i,this.opacity=+s}function ge(t){return(t=(t||0)%360)<0?t+360:t}function fe(t){return Math.max(0,Math.min(1,t||0))}function _e(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function me(t,e,i,s,n){var r=t*t,o=r*t;return((1-3*t+3*r-o)*e+(4-6*r+3*o)*i+(1+3*t+3*r-3*o)*s+o*n)/6}Bt(It,ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return de(this).formatHsl()},formatRgb:te,toString:te}),Bt(re,ne,Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new re(le(this.r),le(this.g),le(this.b),he(this.opacity))},displayable(){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:oe,formatHex:oe,formatHex8:function(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}${ce(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ae,toString:ae})),Bt(pe,(function(t,e,i,s){return 1===arguments.length?de(t):new pe(t,e,i,null==s?1:s)}),Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new pe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new pe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*e,n=2*i-s;return new re(_e(t>=240?t-240:t+120,n,s),_e(t,n,s),_e(t<120?t+240:t-120,n,s),this.opacity)},clamp(){return new pe(ge(this.h),fe(this.s),fe(this.l),he(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=he(this.opacity);return`${1===t?"hsl(":"hsla("}${ge(this.h)}, ${100*fe(this.s)}%, ${100*fe(this.l)}%${1===t?")":`, ${t})`}`}}));var ye=t=>()=>t;function ve(t,e){var i=e-t;return i?function(t,e){return function(i){return t+i*e}}(t,i):ye(isNaN(t)?e:t)}var we=function t(e){var i=function(t){return 1==(t=+t)?ve:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(s){return Math.pow(t+s*e,i)}}(e,i,t):ye(isNaN(e)?i:e)}}(e);function s(t,e){var s=i((t=ne(t)).r,(e=ne(e)).r),n=i(t.g,e.g),r=i(t.b,e.b),o=ve(t.opacity,e.opacity);return function(e){return t.r=s(e),t.g=n(e),t.b=r(e),t.opacity=o(e),t+""}}return s.gamma=t,s}(1);function be(t){return function(e){var i,s,n=e.length,r=new Array(n),o=new Array(n),a=new Array(n);for(i=0;i=1?(i=1,e-1):Math.floor(i*e),n=t[s],r=t[s+1],o=s>0?t[s-1]:2*n-r,a=sr&&(n=e.slice(r,n),a[o]?a[o]+=n:a[++o]=n),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,h.push({i:o,x:Mt(i,s)})),r=De.lastIndex;return r=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Dt:kt;return function(){var o=r(this,t),a=o.on;a!==s&&(n=(s=a).copy()).on(e,i),o.on=n}}(i,t,e))},attr:function(t,e){var i=x(t),s="transform"===i?Lt:Te;return this.attrTween(t,"function"==typeof e?(i.local?Ne:Se)(i,s,Ut(this,"attr."+t,e)):null==e?(i.local?Ee:Me)(i):(i.local?Pe:Oe)(i,s,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;var s=x(t);return this.tween(i,(s.local?Ce:Le)(s,e))},style:function(t,e,i){var s="transform"==(t+="")?Ct:Te;return null==e?this.styleTween(t,function(t,e){var i,s,n;return function(){var r=L(this,t),o=(this.style.removeProperty(t),L(this,t));return r===o?null:r===i&&o===s?n:n=e(i=r,s=o)}}(t,s)).on("end.style."+t,Ie(t)):"function"==typeof e?this.styleTween(t,function(t,e,i){var s,n,r;return function(){var o=L(this,t),a=i(this),h=a+"";return null==a&&(this.style.removeProperty(t),h=a=L(this,t)),o===h?null:o===s&&h===n?r:(n=h,r=e(s=o,a))}}(t,s,Ut(this,"style."+t,e))).each(function(t,e){var i,s,n,r,o="style."+e,a="end."+o;return function(){var h=kt(this,t),l=h.on,c=null==h.value[o]?r||(r=Ie(e)):void 0;l===i&&n===c||(s=(i=l).copy()).on(a,n=c),h.on=s}}(this._id,t)):this.styleTween(t,function(t,e,i){var s,n,r=i+"";return function(){var o=L(this,t);return o===r?null:o===s?n:n=e(s=o,i)}}(t,s,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var s="style."+(t+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(null==e)return this.tween(s,null);if("function"!=typeof e)throw new Error;return this.tween(s,function(t,e,i){var s,n;function r(){var r=e.apply(this,arguments);return r!==n&&(s=(n=r)&&function(t,e,i){return function(s){this.style.setProperty(t,e.call(this,s),i)}}(t,r,i)),s}return r._value=e,r}(t,e,null==i?"":i))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ut(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,i;function s(){var s=t.apply(this,arguments);return s!==i&&(e=(i=s)&&function(t){return function(e){this.textContent=t.call(this,e)}}(s)),e}return s._value=t,s}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var s,n=Tt(this.node(),i).tween,r=0,o=n.length;r2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[n]):o=!1;o&&delete t.__transition}}(this,t)}))},gt.prototype.transition=function(t){var e,i;t instanceof ze?(e=t._id,t=t._name):(e=Ge(),(i=We).time=(0,_t.zO)(),t=null==t?null:t+"");for(var s=this._groups,n=s.length,r=0;r=n)&&Object.keys(a.O).every((function(t){return a.O[t](i[h])}))?i.splice(h--,1):(o=!1,n0&&t[c-1][2]>n;c--)t[c]=t[c-1];t[c]=[i,s,n]},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},i=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(t,s){if(1&s&&(t=this(t)),8&s)return t;if("object"==typeof t&&t){if(4&s&&t.__esModule)return t;if(16&s&&"function"==typeof t.then)return t}var n=Object.create(null);a.r(n);var r={};e=e||[null,i({}),i([]),i(i)];for(var o=2&s&&t;"object"==typeof o&&!~e.indexOf(o);o=i(o))Object.getOwnPropertyNames(o).forEach((function(e){r[e]=function(){return t[e]}}));return r.default=function(){return t},a.d(n,r),n},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,i){return a.f[i](t,e),e}),[]))},a.u=function(t){return"deps/"+{643:"pdfmake",4297:"xlsx",4384:"markerjs2"}[t]+".js"},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s={},n="@amcharts/amcharts5:",a.l=function(t,e,i,r){if(s[t])s[t].push(e);else{var o,h;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c{this.zoomOut()})),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",e);const a=this.plotContainer;a.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),a.children.push(this.topGridContainer),a.children.push(this.bulletsContainer),a.set("interactive",!0),a.set("interactiveChildren",!1),a.set("background",o.A.new(t,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(a.events.on("pointerdown",(t=>{this._handlePlotDown(t)}))),this._disposers.push(a.events.on("globalpointerup",(t=>{this._handlePlotUp(t)}))),this._disposers.push(a.events.on("globalpointermove",(t=>{this._handlePlotMove(t)}))),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(t){t._unstack(),t._posXDp&&t._posXDp.dispose(),t._posYDp&&t._posYDp.dispose(),t.set("baseAxis",void 0);const e=t.get("xAxis");e&&(g.remove(e.series,t),e.markDirtyExtremes());const i=t.get("yAxis");i&&(g.remove(i.series,t),i.markDirtyExtremes());const s=this.get("cursor");if(s){const e=s.get("snapToSeries");e&&g.remove(e,t)}super._removeSeries(t)}_applyThemes(t=!1){const e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}handleWheel(t){const e=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=t.originalEvent;let o=!1;if(!p.isLocalEvent(a,this))return;o=!0;const n=s.toLocal(t.point),r=this.get("wheelStep",.2),h=a.deltaY/100,l=a.deltaX/100,d=this.get("wheelZoomPositionX"),g=this.get("wheelZoomPositionY");"zoomX"!==e&&"zoomXY"!==e||0==l||this.xAxes.each((t=>{if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let h=t.get("maxDeviation",0),g=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let l=t.get("maxDeviation",0),g=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let h=t.get("maxDeviation",0),d=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let l=t.get("maxDeviation",0),d=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panX"!==i&&"panXY"!==i||0==h||this.xAxes.each((t=>{if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e+s,n=i+s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==e&&"panXY"!==e||0==l||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==i&&"panXY"!==i||0==h||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e-s,n=i-s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),o&&a.preventDefault()}_handleSetWheel(){const t=this.get("wheelX"),e=this.get("wheelY"),i=this.plotContainer;"none"!==t||"none"!==e?(this._wheelDp=i.events.on("wheel",(i=>{const s=i.originalEvent;("none"!==t&&0!=Math.abs(s.deltaX)||"none"!==e&&0!=Math.abs(s.deltaY))&&this.handleWheel(i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(t){let e=1;return t.get("renderer").get("inversed")&&(e=-1),e}_fixWheel(t,e){const i=e-t;return t<0&&(e=(t=0)+i),e>1&&(t=(e=1)-i),[t,e]}_handlePlotDown(t){const e=t.originalEvent;if(2==e.button)return;const i=this.plotContainer;let s=i.toLocal(t.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&e.pointerId&&m.keys(i._downPoints).length>0){const t=this.xAxes.getIndex(0),e=this.yAxes.getIndex(0);t&&(this._downStartX=t.get("start",0),this._downEndX=t.get("end",1)),e&&(this._downStartY=e.get("start",0),this._downEndY=e.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:e.clientX,y:e.clientY};const i=this.get("panX"),s=this.get("panY");i&&this.xAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")})),s&&this.yAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")}));const a="panstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:t.originalEvent})}}_handleWheelAnimation(t){t?t.events.on("stopped",(()=>{this._dispatchWheelAnimation()})):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const t="wheelended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}_handlePlotUp(t){const e=this._downPoint;if(e&&(this.get("panX")||this.get("panY"))){if(t.originalEvent.clientX==e.x&&t.originalEvent.clientY==e.y){const e="pancancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:t.originalEvent})}this._downPoint=void 0,this.xAxes.each((t=>{t._isPanning=!1})),this.yAxes.each((t=>{t._isPanning=!1}))}_handlePlotMove(t){const e=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const i=t.originalEvent.pointerId;if(i&&(this._movePoints[i]=t.point,m.keys(e._downPoints).length>1))return void this._handlePinch()}let i=this._downPoint;if(i){i=e.toLocal(this._root.documentPointToRoot(i));let s=e.toLocal(t.point);const a=this.get("panX"),o=this.get("panY");if(a){let t=this.get("scrollbarX");t&&t.events.disableType("rangechanged"),this.xAxes.each((t=>{if(t.get("panX")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.x-s.x)/e.width();t.get("renderer").get("inversed")&&(n*=-1);let r=a+n,h=o+n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}if(o){let t=this.get("scrollbarY");t&&t.events.disableType("rangechanged"),this.yAxes.each((t=>{if(t.get("panY")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.y-s.y)/e.height();t.get("renderer").get("inversed")&&(n*=-1);let r=a-n,h=o-n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}}}_handlePinch(){const t=this.plotContainer;let e=0,i=[],s=[];if(m.each(t._downPoints,((t,a)=>{i[e]=a;let o=this._movePoints[t];o&&(s[e]=o),e++})),i.length>1&&s.length>1){const e=t.width(),a=t.height();let o=i[0],n=i[1],r=s[0],h=s[1];if(o&&n&&r&&h){if(r=t.toLocal(r),h=t.toLocal(h),o=t.toLocal(o),n=t.toLocal(n),this.get("pinchZoomX")){const t=this._downStartX,i=this._downEndX;if(null!=t&&null!=i){o.x>n.x&&([o,n]=[n,o],[r,h]=[h,r]);let s=t+o.x/e*(i-t),a=t+n.x/e*(i-t),l=t+r.x/e*(i-t),d=t+h.x/e*(i-t),g=Math.max(.001,a-s)/Math.max(.001,d-l),c=t*g+s-l*g,u=i*g+a-d*g;this.xAxes.each((t=>{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}if(this.get("pinchZoomY")){const t=this._downStartY,e=this._downEndY;if(null!=t&&null!=e){o.y{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}}}}_handleCursorPosition(){const t=this.get("cursor");if(t){const e=t.getPrivate("point");let i=t.get("snapToSeries");if(t._downPoint&&(i=void 0),i&&e){const s=t.get("snapToSeriesBy"),a=[];g.each(i,(t=>{if(!t.isHidden()&&!t.isHiding())if("x!"!=s&&"y!"!=s){const e=t.startIndex(),i=t.endIndex();for(let s=e;s{const i=t.get("point");if(i){let a=0;a="x"==s||"x!"==s?Math.abs(e.x-i.x):"y"==s||"y!"==s?Math.abs(e.y-i.y):Math.hypot(e.x-i.x,e.y-i.y),a{const e=t.get("tooltip");e&&e._setDataItem(void 0)})),o){let e=o.component;e.showDataItemTooltip(o),e.setRaw("tooltipDataItem",o);const i=o.get("point");i&&t.handleMove(e.toGlobal({x:i.x-e.x(),y:i.y-e.y()}),!0)}}}}_updateCursor(){let t=this.get("cursor");t&&t.updateCursor()}_addCursor(t){this.plotContainer.children.push(t)}_prepareChildren(){if(super._prepareChildren(),this.series.each((t=>{this._colorize(t)})),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const t=this._prevSettings.cursor,e=this.get("cursor");e!==t&&(this._disposeProperty("cursor"),t&&t.dispose(),e&&(e._setChart(this),this._addCursor(e),this._pushPropertyDisposer("cursor",e.events.on("selectended",(()=>{this._handleCursorSelectEnd()})))),this._prevSettings.cursor=e)}if(this.isDirty("scrollbarX")){const t=this._prevSettings.scrollbarX,e=this.get("scrollbarX");e!==t&&(this._disposeProperty("scrollbarX"),t&&t.dispose(),e&&(e.parent||this.topAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarX",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.xAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarX",e.events.on("released",(()=>{this.xAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.xAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarX=e)}if(this.isDirty("scrollbarY")){const t=this._prevSettings.scrollbarY,e=this.get("scrollbarY");e!==t&&(this._disposeProperty("scrollbarY"),t&&t.dispose(),e&&(e.parent||this.rightAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarY",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.yAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarY",e.events.on("released",(()=>{this.yAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.yAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarY=e)}this._handleZoomOut()}_processSeries(t){super._processSeries(t);const e=t.get("xAxis"),i=t.get("yAxis");g.move(e.series,t),g.move(i.series,t),t._posXDp=t.addDisposer(e.events.on("positionchanged",(()=>{t._fixPosition()}))),t._posXDp=t.addDisposer(i.events.on("positionchanged",(()=>{t._fixPosition()}))),t.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?t.set("baseAxis",i):t.set("baseAxis",e)),t.get("stacked")&&(t._markDirtyKey("stacked"),g.each(t.dataItems,(t=>{t.set("stackToItemY",void 0),t.set("stackToItemX",void 0)}))),t._markDirtyAxes(),i.markDirtyExtremes(),e.markDirtyExtremes(),e._seriesAdded=!0,i._seriesAdded=!0,this._colorize(t)}_colorize(t){const e=this.get("colors");if(e&&null==t.get("fill")){const i=e.next();t._setSoft("stroke",i),t._setSoft("fill",i)}const i=this.get("patterns");if(i&&null==t.get("fillPattern")){const e=i.next();t._setSoft("fillPattern",e)}}_handleCursorSelectEnd(){const t=this.get("cursor"),e=t.get("behavior"),i=t.getPrivate("downPositionX",0),s=t.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,t.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,t.getPrivate("positionY",.5)));this.xAxes.each((t=>{if("zoomX"===e||"zoomXY"===e){let e=t.toAxisPosition(i),s=t.toAxisPosition(a);t.zoom(e,s)}t.setPrivate("updateScrollbar",!0)})),this.yAxes.each((t=>{if("zoomY"===e||"zoomXY"===e){let e=t.toAxisPosition(s),i=t.toAxisPosition(o);t.zoom(e,i)}t.setPrivate("updateScrollbar",!0)}))}_handleScrollbar(t,e,i,s){t.each((t=>{let a=t.fixPosition(e),o=t.fixPosition(i),n=t.zoom(a,o,void 0,s);const r="updateScrollbar";t.setPrivateRaw(r,!1),n?n.events.on("stopped",(()=>{t.setPrivateRaw(r,!0)})):t.setPrivateRaw(r,!0)}))}_processAxis(t,e){return t.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxis(t)}));else if("push"===t.type)e.children.push(t.newValue),t.newValue.processChart(this);else if("setIndex"===t.type)e.children.setIndex(t.index,t.newValue),t.newValue.processChart(this);else if("insertIndex"===t.type)e.children.insertIndex(t.index,t.newValue),t.newValue.processChart(this);else if("removeIndex"===t.type)this._removeAxis(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");e.children.moveValue(t.value,t.newIndex),t.value.processChart(this)}}))}_removeAxis(t){if(!t.isDisposed()){const e=t.parent;e&&e.children.removeValue(t);const i=t.gridContainer,s=i.parent;s&&s.children.removeValue(i);const a=t.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){const t=this.leftAxesContainer.width(),e=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",t),i.set("paddingRight",e);const s=this.topAxesContainer;s.set("paddingLeft",t),s.set("paddingRight",e)}processAxis(t){this.get("cursor")&&(this.addDisposer(t.on("start",(()=>{this._updateCursor()}))),this.addDisposer(t.on("end",(()=>{this._updateCursor()}))))}_handleAxisSelection(t,e){let i=t.fixPosition(t.get("start",0)),s=t.fixPosition(t.get("end",1));if(i>s&&([i,s]=[s,i]),-1!=this.xAxes.indexOf(t)){if(e||t.getPrivate("updateScrollbar")){let t=this.get("scrollbarX");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}}else if(-1!=this.yAxes.indexOf(t)&&(e||t.getPrivate("updateScrollbar"))){let t=this.get("scrollbarY");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let t=this.zoomOutButton;if(t&&t.parent){let e=!1;this.xAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),e?t.isHidden()&&t.show():t.hide()}}inPlot(t){const e=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=e.toGlobal(t);if(t.x>=-.5&&t.y>=-.5&&t.x<=e.width()+.5&&t.y<=e.height()+.5)return!0;if(i)for(let t=i.length-1;t>=0;t--){const e=i[t];if(e!=this){const t=e.plotContainer,i=this._root.rootPointToDocument(s),a=e._root.documentPointToRoot(i),o=t.toLocal(a);if(o.x>=-.1&&o.y>=-.1&&o.x<=t.width()+.1&&o.y<=t.height()+.1)return!0}}return!1}arrangeTooltips(){const t=this.plotContainer,e=t.width(),i=t.height();let s=this.height();const a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=t._display.toGlobal({x:0,y:0}),n=t._display.toGlobal({x:e,y:i});const r=[];let l,d,m=0,p=1/0,_=this._movePoint,x=this.get("maxTooltipDistance"),v=this.get("maxTooltipDistanceBy","xy");c.isNumber(x)&&this.series.each((t=>{if(!t.isHidden()){const e=t.get("tooltip");if(e){let i=e.get("pointTo");if(i){let e=Math.hypot(_.x-i.x,_.y-i.y);"x"==v?e=Math.abs(_.x-i.x):"y"==v&&(e=Math.abs(_.y-i.y)),e{const e=t.get("tooltip");if(e&&!e.get("forceHidden")){let i=!1,s=e.get("pointTo");if(s){if(x>=0){let s=e.get("pointTo");if(s&&d&&t!=l){let t=Math.hypot(d.x-s.x,d.y-s.y);"x"==v?t=Math.abs(d.x-s.x):"y"==v&&(t=Math.abs(d.y-s.y)),t>x&&(i=!0)}}else-1==x&&t!=l&&(i=!0);this.inPlot(this._tooltipToLocal(s))&&e.dataItem?i||(m+=s.y):i=!0,i||t.isHidden()||t.isHiding()?e.hide(0):(e.show(),r.push(e),y.push(t))}}})),this.setPrivate("tooltipSeries",y),this.get("arrangeTooltips")){let t=0,e=0;const a=this._root.tooltipContainer,l=r.length;if(m/l>i/2+o.y){r.sort(((t,e)=>u.HO(e.get("pointTo").y,t.get("pointTo").y)));let i=n.y;if(g.each(r,(s=>{let r=s.height();e++,t+=r;let l=s.get("centerY");l instanceof h.gG&&(r*=l.value),r+=s.get("marginBottom",0),s.set("bounds",{left:o.x,top:o.y,right:n.x,bottom:i}),s.setPrivate("customData",{left:o.x,top:o.y,right:n.x,bottom:i}),i=Math.min(i-r,s._fy-r),s.parent==a&&a.children.moveValue(s,0)})),i<0){r.reverse();let t=i;g.each(r,(s=>{e++;let a=s.get("bounds");if(a){let e=a.top-i,o=a.bottom-i;eu.HO(t.get("pointTo").y,e.get("pointTo").y)));let i=0;if(g.each(r,(r=>{e++;let l=r.height();t+=l;let d=r.get("centerY");d instanceof h.gG&&(l*=d.value),l+=r.get("marginBottom",0),r.set("bounds",{left:o.x,top:i,right:n.x,bottom:Math.max(o.y+s,i+l)}),r.parent==a&&a.children.moveValue(r,0),i=Math.max(i+l,r._fy+l)})),i>s){r.reverse();let t=s;g.each(r,(a=>{e++;let o=a.get("bounds");if(o){let e=o.top-(s-i),n=o.bottom-(s-i);n>t&&(n=t,e=n-a.height()),a.set("bounds",{left:o.left,top:e,right:o.right,bottom:n}),t=n-a.height()-a.get("marginBottom",0)}}))}}0==t&&e>0&&this._disposers.push(this.root.events.once("frameended",(()=>{this.arrangeTooltips()})))}}_tooltipToLocal(t){return this.plotContainer.toLocal(t)}zoomOut(){this.xAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))}))}_dispose(){super._dispose();const t=this.get("cursor");t&&t.dispose()}}x.className="XYChart",x.classNames=n.j.classNames.concat([x.className])},55:function(t,e,i){i.d(e,{l:function(){return u}});var s=i(3409),a=i(6245),o=i(1112),n=i(2754),r=i(3783),h=i(1926),l=i(5040),d=i(751),g=i(256),c=i(5071);class u extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.interfaceColors,e=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:n.U.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:o.Il.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:n.U.new(this._root,{saturation:0})});{const e=i("Graphics",["scrollbar","overlay"]);e.setAll({fillOpacity:.5}),(0,r.v)(e,"fill",t,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:a.AQ,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:a.AQ}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:a.AQ}),i("AxisLabel",["y"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const s=i("Grid",["cursor","x"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use left and right arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const s=i("Grid",["cursor","y"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use up and down arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const e=i("Graphics",["cursor","selection"]);e.setAll({fillOpacity:.15}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:a.CI,centerY:a.CI,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const e=i("AxisRenderer");e.setAll({crisp:!0,strokeOpacity:0}),(0,r.v)(e,"stroke",t,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:a.AQ}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:a.AQ});{const e=i("Rectangle",["axis","thumb","zoomgrip"]);e.setAll({fillOpacity:0}),(0,r.v)(e,"fill",t,"alternativeBackground"),e.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{const e=i("Grid");e.setAll({location:0,strokeOpacity:.15,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}{const e=i("Grid",["minor"]);e.setAll({location:0,strokeOpacity:.07,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{const e=i("Graphics",["axis","fill"]);e.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{const e=i("AxisTick");e.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),(0,r.v)(e,"stroke",t,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(t,e)=>{const i=t.get("axisFill");i&&(l.isNumber(e)&&e%2!=0?i.setPrivate("visible",!1):i.setPrivate("visible",!0))}});const s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],u={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_hour"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month"),year:e.translate("_date_year")},m={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_day"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month")+" "+e.translate("_date_year"),year:e.translate("_date_year")},p={millisecond:e.translate("_date_millisecond_full"),second:e.translate("_date_second_full"),minute:e.translate("_date_minute_full"),hour:e.translate("_date_hour_full"),day:e.translate("_date_day_full"),week:e.translate("_date_week_full"),month:e.translate("_date_month_full"),year:e.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m),tooltipDateFormats:p,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=t.get("endValue"),o=i.intervalDuration(),n=i.getPrivate("baseInterval"),r=i.getPrivate("gridInterval",n);let l=i.getPrivate("min",0);if(l=h.round(new Date(l),r.timeUnit,r.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),null!=s&&null!=a){const t=Math.round(Math.round((s-l)/o))/2;t==Math.round(t)?e.setPrivate("visible",!0):e.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.get("index");let s=!1;l.isNumber(i)&&i%2!=0||(s=!0),e.setPrivate("visible",s)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=i.getPrivate("step");l.isNumber(s)&&l.isNumber(a)&&(d.round(s/a/2,5)==Math.round(s/a/2)?e.setPrivate("visible",!1):e.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(70),height:(0,a.aQ)(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,e/2),t.lineTo(s,e/2)}}});{const e=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,e),t.lineTo(0,e),t.lineTo(0,0)}}});{const e=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(50),height:(0,a.aQ)(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:(0,a.aQ)(80),height:(0,a.aQ)(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const e=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const e=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const e=i("Graphics",["rangegrip","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(2,.5),t.lineTo(2,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),(0,r.v)(e,"stroke",t,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:a.CI}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:a.CI}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:a.AQ}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:a.AQ})}}},3355:function(t,e,i){i.d(e,{L:function(){return c}});var s=i(8777),a=i(6245),o=i(1479),n=i(8943),r=i(5040),h=i(7652),l=i(751),d=i(5071),g=i(256);class c extends s.W{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(n.r.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(n.r.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(o.T.new(this._root,{themeTags:["selection","cursor"],layer:30})),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:a.AQ,height:a.AQ,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout((()=>{this.setPrivate("visible",!0)}),500)),this._disposers.push(this.lineX.events.on("positionchanged",(()=>{this._handleXLine()}))),this._disposers.push(this.lineY.events.on("positionchanged",(()=>{this._handleYLine()}))),this._disposers.push(this.lineX.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineX.events.on("blur",(()=>this._handleLineBlur()))),this._disposers.push(this.lineY.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineY.events.on("blur",(()=>this._handleLineBlur()))),h.supports("keyboardevents")&&this._disposers.push(h.addEventListener(document,"keydown",(t=>{this._handleLineMove(h.getEventKey(t),t.ctrlKey)})))}_setUpTouch(){const t=this.chart;t&&(t.plotContainer._display.cancelTouch="none"!=this.get("behavior"))}_handleXLine(){let t=this.lineX.x(),e=!0;(t<0||t>this.width())&&(e=!1),this.lineX.setPrivate("visible",e)}_handleYLine(){let t=this.lineY.y(),e=!0;(t<0||t>this.height())&&(e=!1),this.lineY.setPrivate("visible",e)}_handleLineMove(t,e){let i="";const s=this.chart;let a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(e&&(o=5),a){let e,s=a.get("renderer").get("inversed",!1);"ArrowRight"==t||"ArrowDown"==t?e=1:"ArrowLeft"==t||"ArrowUp"==t?e=-1:"Tab"==t&&(e=0),null!=e&&(s&&(e*=-1),this.set(i,a.nextPosition(e*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const t=this.get("xAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipX=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateXLine(e)}))))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const t=this.get("yAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipY=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateYLine(e)}))))}}}_handleSyncWith(){const t=this.chart;if(t){const e=this.get("syncWith"),i=[];e&&d.each(e,(t=>{const e=t.chart;e&&i.push(e)})),t._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const t=this.get("positionX"),e=this.get("positionY");null==t&&null==e?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).x,3);this._toX!=e&&(this.lineX.animate({key:"x",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toX=e)}_updateYLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).y,3);this._toY!=e&&(this.lineY.animate({key:"y",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toY=e)}_drawLines(){this.lineX.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,this.height())})),this.lineY.set("draw",(t=>{t.moveTo(0,0),t.lineTo(this.width(),0)}))}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(t){this.chart=t,this._handleSyncWith();const e=t.plotContainer;this.events.on("boundschanged",(()=>{this._disposers.push(this.setTimeout((()=>{this.updateCursor()}),50))})),h.supports("touchevents")&&(this._disposers.push(e.events.on("click",(t=>{h.isTouchEvent(t.originalEvent)&&this._handleMove(t)}))),this._setUpTouch()),this._disposers.push(e.events.on("pointerdown",(t=>{this._handleCursorDown(t)}))),this._disposers.push(e.events.on("globalpointerup",(t=>{this._handleCursorUp(t),t.native||this.isHidden()||this._handleMove(t)}))),this._disposers.push(e.events.on("globalpointermove",(t=>{(this.get("syncWith")||0!=g.keys(e._downPoints).length||t.native||!this.isHidden())&&(this._handleMove(t),Math.hypot(this._lastPoint2.x-t.point.x,this._lastPoint2.y-t.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=t.point))})));const i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(t){const e=this.chart;return!!e&&e.inPlot(t)}_handleCursorDown(t){if(2==t.originalEvent.button)return;const e=t.point;let i=this._display.toLocal(e);const s=this.chart;if(this.selection.set("draw",(()=>{})),s&&this._inPlot(i)){if(this._downPoint=i,"none"!=this.get("behavior")){this.selection.show();const e="selectstarted";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}let e=this._getPosition(i).x,s=this._getPosition(i).y;this.setPrivate("downPositionX",e),this.setPrivate("downPositionY",s)}}_handleCursorUp(t){if(this._downPoint){const e=this.get("behavior","none");if("none"!=e){"z"===e.charAt(0)&&this.selection.hide();const i=t.point;let s=this._display.toLocal(i);const a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let i=!1;if("zoomX"!==e&&"zoomXY"!==e&&"selectX"!==e&&"selectXY"!==e||Math.abs(s.x-a.x)>o&&(i=!0),"zoomY"!==e&&"zoomXY"!==e&&"selectY"!==e&&"selectXY"!==e||Math.abs(s.y-a.y)>o&&(i=!0),i){const e="selectended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}else{const e="selectcancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}}}}this._downPoint=void 0}_handleMove(t){if(this.getPrivate("visible")){const e=this.chart;if(e&&g.keys(e.plotContainer._downPoints).length>1)return void this.set("forceHidden",!0);this.set("forceHidden",!1);const i=t.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,t.originalEvent)}}_getPosition(t){return{x:t.x/this.width(),y:t.y/this.height()}}handleMove(t,e,i){t||(t=this._movePoint);const s=this.get("alwaysShow");if(!t)return void this.hide(0);this._movePoint=t;let a=this._display.toLocal(t),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=t,this.isHidden()&&(this.show(),"z"==this.get("behavior","").charAt(0)&&this.selection.set("draw",(()=>{})));let n=a.x,h=a.y,l=this._getPosition(a);this.setPrivate("point",a);let d=this.get("snapToSeries");this._downPoint&&(d=void 0);let g=this.get("positionX"),c=l.x;r.isNumber(g)&&(c=g);let u=this.get("positionY"),m=l.y;r.isNumber(u)&&(m=u),this.setPrivate("positionX",c),this.setPrivate("positionY",m);const p=this._getPoint(c,m);if(n=p.x,h=p.y,o.xAxes.each((t=>{t._handleCursorPosition(c,d),s&&t.handleCursorShow()})),o.yAxes.each((t=>{t._handleCursorPosition(m,d),s&&t.handleCursorShow()})),!e){o._handleCursorPosition();const e="cursormoved";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,point:t,originalEvent:i})}this._updateLines(n,h),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);const t="cursorhidden";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this._downPoint&&"none"!=this.get("behavior")&&this._updateSelection(a)}_getPoint(t,e){return{x:this.width()*t,y:this.height()*e}}_updateLines(t,e){this._tooltipX||this.lineX.set("x",t),this._tooltipY||this.lineY.set("y",e),this._drawLines()}_updateSelection(t){const e=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();t.x<0&&(t.x=0),t.x>s&&(t.x=s),t.y<0&&(t.y=0),t.y>a&&(t.y=a),e.set("draw",(e=>{const o=this._downPoint;o&&("zoomXY"===i||"selectXY"===i?(e.moveTo(o.x,o.y),e.lineTo(o.x,t.y),e.lineTo(t.x,t.y),e.lineTo(t.x,o.y),e.lineTo(o.x,o.y)):"zoomX"===i||"selectX"===i?(e.moveTo(o.x,0),e.lineTo(o.x,a),e.lineTo(t.x,a),e.lineTo(t.x,0),e.lineTo(o.x,0)):"zoomY"!==i&&"selectY"!==i||(e.moveTo(0,o.y),e.lineTo(s,o.y),e.lineTo(s,t.y),e.lineTo(0,t.y),e.lineTo(0,o.y)))}))}_onHide(){if(this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorHide()})),t.yAxes.each((t=>{t.handleCursorHide()})),t.series.each((t=>{t.handleCursorHide()})))}super._onHide()}_onShow(){if(!this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorShow()})),t.yAxes.each((t=>{t.handleCursorShow()})))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}c.className="XYCursor",c.classNames=s.W.classNames.concat([c.className])},6515:function(t,e,i){i.d(e,{R:function(){return g}});var s=i(9361),a=i(8777),o=i(6245),n=i(7144),r=i(7142),h=i(5071),l=i(5040),d=i(7652);class g extends s.w{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(a.W.new(this._root,{})),this.gridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.topGridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.bulletsContainer=this.children.push(a.W.new(this._root,{isMeasured:!1,width:o.AQ,height:o.AQ,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new n.aV,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(a.W.new(this._root,{themeTags:["axis","header"],position:"absolute",background:r.A.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)h.each(t.oldValues,(t=>{t.dispose()}));else if("push"===t.type)this._processAxisRange(t.newValue,["range"]);else if("setIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("insertIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("removeIndex"===t.type)this.disposeDataItem(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value,["range"])}})));const t=this.get("renderer");t&&(t.axis=this,t.processAxis()),this.children.push(t),this._createGhostLabel()}_createGhostLabel(){const t=this.get("renderer").makeLabel(new s.z(this,void 0,{}),[]);t.adapters.disable("text"),t.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),t.events.disable(),this.ghostLabel=t}_updateFinals(t,e){}zoom(t,e,i,s){if(this.get("zoomable",!0))if(this._updateFinals(t,e),this.get("start")!==t||this.get("end")!=e){let a=this._sAnimation,o=this._eAnimation;t>e&&([t,e]=[e,t]);let n=this.get("maxDeviation",.5)*Math.min(1,e-t);t<-n&&(t=-n),e>1+n&&(e=1+n);let r=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),h=r;l.isNumber(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),1===e&&0!==t&&(s=tthis.get("end",1)?"end":"start");let d=this.get("minZoomCount",0);const g=this.dataItems;g&&g.lengthe&&([t,e]=[e,t]),"start"===s?(c>0&&1/(e-t)r&&(e=t+1/r),e>1&&e-t<1/r&&(t=e-1/r)):(c>0&&1/(e-t)r&&(t=e-1/r),t<0&&e-t<1/r&&(e=t+1/r)),1/(e-t)>r&&(e=t+1/r),1/(e-t)>r&&(t=e-1/r),null!=c&&null!=d&&t==this.get("start")&&e==this.get("end")){const t=this.chart;t&&t._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==t||this.get("start")==t)&&(o&&o.playing&&o.to==e||this.get("end")==e))return;if(i>0){let s,a,o=this.get("interpolationEasing");if(this.get("start")!=t&&(s=this.animate({key:"start",to:t,duration:i,easing:o})),this.get("end")!=e&&(a=this.animate({key:"end",to:e,duration:i,easing:o})),this._sAnimation=s,this._eAnimation=a,s)return s;if(a)return a}else this.set("start",t),this.set("end",e),this.root.events.once("frameended",(()=>{this.markDirtyKey("start")}))}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(t,e){t.setRaw("isRange",!0),this._createAssets(t,e),this._rangesDirty=!0,this._prepareDataItem(t);const i=t.get("above"),s=this.topGridContainer,a=t.get("grid");i&&a&&s.children.moveValue(a);const o=t.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(t,e){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each((t=>{this._prepareDataItem(t)})),h.each(this._seriesAxisRanges,(t=>{this._prepareDataItem(t)}))}_prepareChildren(){super._prepareChildren();const t=this.ghostLabel;if(t&&(this.get("fixAxisSize")?t.set("visible",!0):t.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){const t=this.chart;t&&t._updateCursor();let e=this.get("start",0),i=this.get("end",1),s=this.get("maxDeviation",.5)*Math.min(1,i-e);if(e<-s){let t=e+s;e=-s,this.setRaw("start",e),this.isDirty("end")&&this.setRaw("end",i-t)}if(i>1+s){let t=i-1-s;i=1+s,this.setRaw("end",i),this.isDirty("start")&&this.setRaw("start",e-t)}}const e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){const t=this.get("tooltip");if(t){const i=e.get("themeTags");t.addTag("axis"),t.addTag(this.className.toLowerCase()),t._applyThemes(),i&&(t.set("themeTags",d.mergeTags(t.get("themeTags"),i)),t.label._applyThemes())}}}_updateTooltipBounds(){const t=this.get("tooltip");t&&this.get("renderer").updateTooltipBounds(t)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(t){this.chart=t,this.get("renderer").chart=t,t.gridContainer.children.push(this.gridContainer),t.topGridContainer.children.push(this.topGridContainer),t.axisHeadersContainer.children.push(this.axisHeader),this.on("start",(()=>{t._handleAxisSelection(this)})),this.on("end",(()=>{t._handleAxisSelection(this)})),t.plotContainer.onPrivate("width",(()=>{this.markDirtySize()})),t.plotContainer.onPrivate("height",(()=>{this.markDirtySize()})),t.processAxis(this)}hideDataItem(t){return this._toggleFHDataItem(t,!0),super.hideDataItem(t)}showDataItem(t){return this._toggleFHDataItem(t,!1),super.showDataItem(t)}_toggleFHDataItem(t,e){const i="forceHidden",s=t.get("label");s&&s.set(i,e);const a=t.get("grid");a&&a.set(i,e);const o=t.get("tick");o&&o.set(i,e);const n=t.get("axisFill");n&&n.set(i,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.set(i,e)}}_toggleDataItem(t,e){const i=t.get("label"),s="visible";i&&i.setPrivate(s,e);const a=t.get("grid");a&&a.setPrivate(s,e);const o=t.get("tick");o&&o.setPrivate(s,e);const n=t.get("axisFill");n&&n.setPrivate(s,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.setPrivate(s,e)}}_createAssets(t,e,i){var s,a,o;const n=this.get("renderer");let r="minor";const h=t.get("label");if(h){let a=h.get("themeTags"),o=!1;i?-1==(null==a?void 0:a.indexOf(r))&&(o=!0):-1!=(null==a?void 0:a.indexOf(r))&&(o=!0),o&&(null===(s=h.parent)||void 0===s||s.children.removeValue(h),n.makeLabel(t,e),h.dispose(),n.labels.removeValue(h))}else n.makeLabel(t,e);const l=t.get("grid");if(l){let s=l.get("themeTags"),o=!1;i?-1==(null==s?void 0:s.indexOf(r))&&(o=!0):-1!=(null==s?void 0:s.indexOf(r))&&(o=!0),o&&(null===(a=l.parent)||void 0===a||a.children.removeValue(l),n.makeGrid(t,e),l.dispose(),n.grid.removeValue(l))}else n.makeGrid(t,e);const d=t.get("tick");if(d){let s=!1,a=d.get("themeTags");i?-1==(null==a?void 0:a.indexOf(r))&&(s=!0):-1!=(null==a?void 0:a.indexOf(r))&&(s=!0),s&&(null===(o=d.parent)||void 0===o||o.children.removeValue(d),n.makeTick(t,e),d.dispose(),n.ticks.removeValue(d))}else n.makeTick(t,e);i||t.get("axisFill")?i&&!t.get("axisFill")&&this.get("minorAxisFillsEnabled")&&n.makeAxisFill(t,e):n.makeAxisFill(t,e),this._processBullet(t)}_processBullet(t){let e=t.get("bullet"),i=this.get("bullet");if(e||!i||t.get("isRange")||(e=i(this._root,this,t)),e){e.axis=this;const i=e.get("sprite");i&&(i._setDataItem(t),t.setRaw("bullet",e),i.parent||this.bulletsContainer.children.push(i))}}_afterChanged(){super._afterChanged();const t=this.chart;t&&(t._updateChartLayout(),t.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(t){super.disposeDataItem(t);const e=this.get("renderer"),i=t.get("label");i&&(e.labels.removeValue(i),i.dispose());const s=t.get("tick");s&&(e.ticks.removeValue(s),s.dispose());const a=t.get("grid");a&&(e.grid.removeValue(a),a.dispose());const o=t.get("axisFill");o&&(e.axisFills.removeValue(o),o.dispose());const n=t.get("bullet");n&&n.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const t=this.ghostLabel;if(t){if(!t.isHidden()){const e=t.localBounds(),i=Math.ceil(e.right-e.left);let s=t.get("text");h.each(this.dataItems,(t=>{const e=t.get("label");if(e&&!e.isHidden()){const t=e.localBounds();Math.ceil(t.right-t.left)>i&&(s=e.text._getText())}})),t.set("text",s)}let e=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(t,e+.5*(i-e))}}_handleCursorPosition(t,e){t=this.get("renderer").toAxisPosition(t),this._cursorPosition=t,this._snapToSeries=e,this.updateTooltip()}updateTooltip(){const t=this._snapToSeries;let e=this._cursorPosition;const i=this.get("tooltip"),s=this.get("renderer");l.isNumber(e)&&(h.each(this.series,(i=>{if(i.get("baseAxis")===this){const s=this.getSeriesItem(i,e,this.get("tooltipLocation"));t&&-1!=t.indexOf(i)?(i.updateLegendMarker(s),i.updateLegendValue(s),i._settings.tooltipDataItem=s):(i.showDataItemTooltip(s),i.setRaw("tooltipDataItem",s))}})),this.get("snapTooltip")&&(e=this.roundAxisPosition(e,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",e),i&&(s.updateTooltipBounds(i),l.isNaN(e)?i.hide(0):(this._updateTooltipText(i,e),s.positionTooltip(i,e),ethis.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}roundAxisPosition(t,e){return t}_handleSeriesRemoved(){}handleCursorShow(){let t=this.get("tooltip");t&&t.show()}handleCursorHide(){let t=this.get("tooltip");t&&t.hide()}processSeriesDataItem(t,e){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(t){const e=this.get("renderer");return e.toAxisPosition(t/e.axisLength())}toAxisPosition(t){return this.get("renderer").toAxisPosition(t)}toGlobalPosition(t){return this.get("renderer").toGlobalPosition(t)}fixPosition(t){return this.get("renderer").fixPosition(t)}shouldGap(t,e,i,s){return!1}createAxisRange(t){return this.axisRanges.push(t)}_groupSeriesData(t){}getCellWidthPosition(){return.05}}g.className="Axis",g.classNames=s.w.classNames.concat([g.className])},2586:function(t,e,i){i.d(e,{_:function(){return o}});var s=i(6331),a=i(256);class o extends s.JH{_beforeChanged(){super._beforeChanged();const t=this.get("sprite");if(this.isDirty("sprite")&&t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t)),this.isDirty("location")){const e=t.dataItem;this.axis&&t&&e&&this.axis._prepareDataItem(e)}}_dispose(){const t=this.axis;t&&a.each(t._bullets,((e,i)=>{i.uid==this.uid&&delete t._bullets[e]})),super._dispose()}}o.className="AxisBullet",o.classNames=s.JH.classNames.concat([o.className])},6293:function(t,e,i){i.d(e,{k:function(){return a}});var s=i(962);class a extends s._{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabel",a.classNames=s._.classNames.concat([a.className])},9084:function(t,e,i){i.d(e,{p:function(){return a}});var s=i(815);class a extends s.x{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabelRadial",a.classNames=s.x.classNames.concat([a.className])},6275:function(t,e,i){i.d(e,{Y:function(){return d}});var s=i(1479),a=i(5769),o=i(7144),n=i(4714),r=i(8943),h=i(6293),l=i(7652);class d extends s.T{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new o.o(a.YS.new({}),(()=>n.T._new(this._root,{themeTags:l.mergeTags(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template])))),this.grid=this.addDisposer(new o.o(a.YS.new({}),(()=>r.r._new(this._root,{themeTags:l.mergeTags(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template])))),this.axisFills=this.addDisposer(new o.o(a.YS.new({}),(()=>s.T._new(this._root,{themeTags:l.mergeTags(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template])))),this.labels=this.addDisposer(new o.o(a.YS.new({}),(()=>h.k._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template]))))}makeTick(t,e){const i=this.ticks.make();return i._setDataItem(t),t.setRaw("tick",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(t,e){const i=this.grid.make();return i._setDataItem(t),t.setRaw("grid",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(t,e){const i=this.axisFills.make();return i._setDataItem(t),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),t.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(t,e){const i=this.labels.make();return i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),t.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(t),t.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const t=this.thumb;t&&(this._disposers.push(t.events.on("pointerdown",(t=>{this._handleThumbDown(t)}))),this._disposers.push(t.events.on("globalpointerup",(t=>{this._handleThumbUp(t)}))),this._disposers.push(t.events.on("globalpointermove",(t=>{this._handleThumbMove(t)}))))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",(()=>{this.axis.markDirtySize()}))}_changed(){if(super._changed(),this.isDirty("pan")){const t=this.thumb;if(t){const e=this.axis.labelsContainer,i=this.get("pan");"zoom"==i?e.children.push(t):"none"==i&&e.children.removeValue(t)}}}_handleThumbDown(t){this._thumbDownPoint=this.toLocal(t.point);const e=this.axis;this._downStart=e.get("start"),this._downEnd=e.get("end")}_handleThumbUp(t){this._thumbDownPoint=void 0}_handleThumbMove(t){const e=this._thumbDownPoint;if(e){const i=this.toLocal(t.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,e)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(t,e){return 0}positionToCoordinate(t){return this._inversed?(this._end-t)*this._axisLength:(t-this._start)*this._axisLength}updateTooltipBounds(t){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t*=i-e,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,t/(i-e)}fixPosition(t){return this.get("inversed")?1-t:t}_updateLC(){}toggleVisibility(t,e,i,s){let a=this.axis;const o=a.get("start",0),n=a.get("end",1);eo+(n-o)*(s+1e-4)?t.setPrivate("visible",!1):t.setPrivate("visible",!0)}_positionTooltip(t,e){const i=this.chart;i&&(t.set("pointTo",this._display.toGlobal(e)),i.inPlot(e)||t.hide())}processAxis(){}}d.className="AxisRenderer",d.classNames=s.T.classNames.concat([d.className])},6284:function(t,e,i){i.d(e,{n:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{width:a.AQ,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const t=this.grid.template;t.set("height",a.AQ),t.set("width",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)}))}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("x",-1e3));const s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){const i=this.chart,o=e.children;if(this.get(a)?e.addTag(a):e.removeTag(a),i){if(this.get(s)){const t=i.topAxesContainer.children;-1==t.indexOf(e)&&t.insertIndex(0,e),e.addTag(s),o.moveValue(this)}else{const t=i.bottomAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(s),o.moveValue(this,0)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(t,e){return(e.x-t.x)/this.width()}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,(t=t/(i-e)*this._lc)+this._ls}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerWidth();this._lc=this.axisLength()/i,this._ls=(t.x()-e.get("paddingLeft",0))/i}}_updatePositions(){const t=this.axis,e=t.x()-r.relativeToValue(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0);t.gridContainer.set("x",e),t.topGridContainer.set("x",e),t.bulletsContainer.set("y",this.y());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginLeft",0),o=t.x()-a;const n=t.parent;n&&(o-=n.get("paddingLeft",0)),s.children.length>0?(a=t.axisHeader.width(),t.set("marginLeft",a+1)):s.set("width",a),s.setAll({x:o,y:-1,height:e.height()+2})}}processAxis(){super.processAxis();const t=this.axis;null==t.get("width")&&t.set("width",a.AQ);const e=this._root.verticalLayout;t.set("layout",e),t.labelsContainer.set("width",a.AQ),t.axisHeader.setAll({layout:e})}axisLength(){return this.axis.width()}positionToPoint(t){return{x:this.positionToCoordinate(t),y:0}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e));let r=t.get("length",0);const h=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("y",a.AQ),h||(r*=-1)):(t.set("y",0),h&&(r*=-1)),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,r)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateLabel(t,e,i,s){if(t){let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(e)||(e=0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?r?(t.set("position","absolute"),t.set("y",0)):(t.set("position","relative"),t.set("y",a.AQ)):r?(t.set("y",0),t.set("position","absolute")):(t.set("y",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=-1;if(this.get("opposite")&&(h=1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("y",t.y()+t.height()*h)}else s.set("y",0);this.axis._bullets[o]=t,s.set("x",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.height(),a=this.width();ia||i<0||(t.moveTo(e,0),t.lineTo(i,0),t.lineTo(i,s),t.lineTo(e,s),t.lineTo(e,0))}))}positionTooltip(t,e){this._positionTooltip(t,{x:this.positionToCoordinate(e),y:0})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,n=this.axisLength(),h=i,l="up";this.get("opposite")?e?(l="up",o=s.y,h=i):(l="down",o=s.y-i,h=i):e?(l="down",o=s.y-i,h=i):(l="up",o=s.y,h=i);const d={left:a,right:a+n,top:o,bottom:o+h},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}}h.className="AxisRendererX",h.classNames=s.Y.classNames.concat([h.className])},7909:function(t,e,i){i.d(e,{j:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{height:a.AQ,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const t=this.grid.template;t.set("width",a.AQ),t.set("height",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())}))}_getPan(t,e){return(t.y-e.y)/this.height()}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("y",-1e3));const s=this.thumb,a="opposite",o="inside",n=this.chart;if(this.isDirty(a)||this.isDirty(o)){const i=e.children;if(this.get(o)?e.addTag(o):e.removeTag(o),n){if(this.get(a)){const t=n.rightAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e,0),e.addTag(a),i.moveValue(this,0)}else{const t=n.leftAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(a),i.moveValue(this)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}const r=e.labelsContainer.width();n&&(this.get(a)?s.set("centerX",0):s.set("centerX",r)),s.setPrivate("width",r)}processAxis(){super.processAxis();const t=this.axis;null==t.get("height")&&t.set("height",a.AQ);const e=this._root.horizontalLayout;t.set("layout",e),t.labelsContainer.set("height",a.AQ),t.axisHeader.set("layout",e)}_updatePositions(){const t=this.axis,e=t.y()-r.relativeToValue(t.get("centerY",0),t.height());t.gridContainer.set("y",e),t.topGridContainer.set("y",e),t.bulletsContainer.set("x",this.x());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginTop",0);s.children.length>0?(a=t.axisHeader.height(),t.set("marginTop",a+1)):s.set("height",a),s.setAll({y:t.y()-a,x:-1,width:e.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(t){return{x:0,y:this.positionToCoordinate(t)}}updateLabel(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a);const o=this.get("opposite"),r=t.get("inside",this.get("inside",!1));o?(t.set("x",0),r?t.set("position","absolute"):t.set("position","relative")):r?(t.set("x",0),t.set("position","absolute")):(t.set("x",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e));let o=t.get("length",0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("x",0),r&&(o*=-1)):r||(o*=-1),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(o,0)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=1;if(this.get("opposite")&&(h=-1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("x",t.x()+t.width()*h)}else s.set("x",0);this.axis._bullets[o]=t,s.set("y",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.width(),a=this.height();ia||i<0||(t.moveTo(0,e),t.lineTo(s,e),t.lineTo(s,i),t.lineTo(0,i),t.lineTo(0,e))}))}positionToCoordinate(t){return this._inversed?(t-this._start)*this._axisLength:(this._end-t)*this._axisLength}positionTooltip(t,e){this._positionTooltip(t,{x:0,y:this.positionToCoordinate(e)})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,n=this.axisLength(),h=i,l="right";this.get("opposite")?e?(l="right",o=s.x-i,h=i):(l="left",o=s.x,h=i):e?(l="left",o=s.x,h=i):(l="right",o=s.x-i,h=i);const d={left:o,right:o+h,top:a,bottom:a+n},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerHeight();this._lc=this.axisLength()/i,this._ls=t.y()/i}}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?e+t:i-t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t-=e:t=i-t,(t=t/(i-e)*this._lc)+this._ls}fixPosition(t){return this.get("inversed")?t:1-t}}h.className="AxisRendererY",h.classNames=s.Y.classNames.concat([h.className])},4714:function(t,e,i){i.d(e,{T:function(){return a}});var s=i(2438);class a extends s.d{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisTick",a.classNames=s.d.classNames.concat([a.className])},7497:function(t,e,i){i.d(e,{$:function(){return d}});var s=i(6515),a=i(2132),o=i(7261),n=i(5071),r=i(5040),h=i(751),l=i(7652);class d extends s.R{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();const t=this.dataItems.length;t>0&&this.setPrivateRaw("maxZoomFactor",t),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),t)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",t),1))}_prepareChildren(){super._prepareChildren();const t=this.dataItems.length;let e=0;this._valuesDirty&&(this._itemMap={},n.each(this.dataItems,(t=>{t.setRaw("index",e),this._itemMap[t.get("category")]=t,e++})),this.setPrivateRaw("maxZoomFactor",t));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){const t=this.dataItems.length;if(t>1){let e=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0);const n=this._sAnimation,r=this._eAnimation;let h=this.get("start",0),l=!1;n&&!n.stopped&&(h=Number(n.to),l=!0);let d=this.get("end",1);if(r&&!r.stopped&&(d=Number(r.to),l=!0),l){const t=this._getIndices(h,d);a=t.startIndex,o=t.endIndex}for(let t=a;t=i));s++);if(e=0&&(e+=this.dataItems[t].get("finalCellSize",1),a=t,!(e>=i));t--);this.zoomToIndexes(a,o)}else if(s>=e){let t=s;for(let i=o-1;i>=a;i--)if(t-=this.dataItems[i].get("finalCellSize",1),t<=e){o=i+1;break}this.zoomToIndexes(a,o)}}}_handleRangeChange(){n.each(this.series,(t=>{let e=this.dataItems[this.startIndex()].get("category"),i=this.dataItems[this.endIndex()-1].get("category"),s=t.get("baseAxis"),a=t.get("xAxis"),r=t.get("yAxis");if(a instanceof d&&r instanceof d)t._markDirtyAxes();else if(s===this){let h,l,g=r;if(a===s?(t.get("categoryXField")&&(h="categoryX"),t.get("openCategoryXField")&&(l="openCategoryX")):r===s&&(t.get("categoryYField")&&(h="categoryY"),t.get("openCategoryYField")&&(l="openCategoryY"),g=a),g instanceof o.m&&(h||l)){let c,u;function m(t,e,i,s,a,o){let n,r=e.categoryToIndex(a);for(;!n&&r>=0&&r=0;e--){let o=t.dataItems[e];if(i&&o.get(i)===a){n=o;break}if(s&&o.get(s)===a){n=o;break}}else for(let e=0,o=t.dataItems.length;e{null!=y.get(t)&&(x=!0)})),n.each(t.__valueYShowFields,(t=>{null!=y.get(t)&&(x=!0)})),x)break}t.setPrivate("outOfSelection",!x)}t._markDirtyAxes()}}))}_prepareAxisItems(){var t;const e=this.get("renderer"),i=this.dataItems.length;let s=this.startIndex();s>0&&s--;let a=this.endIndex();a=s&&(t=s-1,e=1),r.isNumber(e)||(e=.5),!r.isNumber(t))return 0;let o=this.get("startLocation",0),h=this.get("endLocation",1);if(this.get("cellSizeField")){let s=i?"finalCellSize":"cellSize";const r=this.dataItems;let l=0;n.each(this.dataItems,(t=>{l+=t.get(s,1)})),l-=o*r[0].get(s,1),l-=(1-h)*r[r.length-1].get(s,1);let d=0;for(let e=0;e{const e=t.get("cellSize",1);s.push(e),i+=e}));let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=t*i+a,h=0;for(let t=0;t0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(e),a=t.dataItems[s],o=this.dataItems[s],n=o.get("category");if(a&&o&&a.get(i)===n)return a;for(let e=0,s=t.dataItems.length;e{r+=t.get(o,1)})),r-=this.get("startLocation",0)*h[0].get(o,1),r-=(1-this.get("endLocation",1))*h[h.length-1].get(o,1);let l=0;for(let e=0;eMath.round(t*r)){s=e;break}for(let t=s+1;t=Math.round(e*r)){a=t+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(t,e,i){let s=this.dataItems.length;this.get("cellSizeField")?(t=Math.min(Math.max(t,0),s),e=Math.max(Math.min(e,s),1),this.setPrivateRaw("startIndex",t),this.setPrivateRaw("endIndex",e),this.zoom(this.indexToPosition(t,0,!0),this.indexToPosition(e,0,!0),i)):this.zoom(t/s,e/s,i)}zoomToCategories(t,e,i){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(t){null==t&&(t=1),"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);const e=this.getPrivate("tooltipPosition",0),i=h.fitToRange(this.axisPositionToIndex(e)+t,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}}d.className="CategoryAxis",d.classNames=s.R.classNames.concat([d.className])},5638:function(t,e,i){i.d(e,{S:function(){return c}});var s=i(9361),a=i(7261),o=i(5040),n=i(751),r=i(3540),h=i(5071),l=i(256),d=i(7652),g=i(1926);class c extends a.m{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=d.mergeTags(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",(()=>{this._setBaseInterval(this.get("baseInterval"))}))}_setBaseInterval(t){this.setPrivateRaw("baseInterval",t),this._baseDuration=g.getIntervalDuration(t)}_fixZoomFactor(){const t=this.get("maxZoomFactor");null!=t&&t!=1/0?this.setPrivateRaw("maxZoomFactor",t):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){this._fixZoomFactor();const t=this.getPrivate("groupInterval");if(t?this._setBaseInterval(t):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let t=this.get("groupInterval");t&&(this.setRaw("groupIntervals",[t]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))h.each(this.series,(t=>{this._groupSeriesData(t)})),this._handleRangeChange();else{let t=this.get("baseInterval"),e=t.timeUnit+t.count;h.each(this.series,(t=>{t.setDataSet(e),t.resetGrouping()})),this._setBaseInterval(t),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(t){if(this.get("groupData")&&!t.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let e=[],i=this.baseMainDuration(),a=this.get("groupIntervals");h.each(a,(t=>{g.getIntervalDuration(t)>i&&e.push(t)})),t._dataSets={};const n=this.getPrivate("name")+this.get("renderer").getPrivate("letter");let r;const d=t.get("baseAxis");t.get("xAxis")===d?r=t._valueYFields:t.get("yAxis")===d&&(r=t._valueXFields);let c=t._mainDataItems,u=this.get("baseInterval"),m=u.timeUnit+u.count;t._dataSets[m]=c;const p=t.get("groupDataCallback");let _=t.get("groupDataWithOriginals",!1);p&&(_=!0),h.each(e,(e=>{let i,a=-1/0,d=e.timeUnit+e.count;t._dataSets[d]=[];let u={},m={},x={},v={};h.each(r,(e=>{u[e]=0,m[e]=0,x[e]=t.get(e+"Grouped"),v[e]=e+"Working"}));let y,f,b=g.getDuration(e.timeUnit);c[0]&&(y=c[0].get(n)),h.each(c,(c=>{let D,P=c.get(n),w=g.roun(P,e.timeUnit,e.count,this._root,y);a{let e=c.get(t);o.isNumber(e)?(i.setRaw(t,e),i.setRaw(v[t],e),m[t]=1,u[t]=e):(u[t]=0,m[t]=0)})),_&&i.set("originals",[c]),p&&f&&p(f,e),f=i):(h.each(r,(t=>{let e=x[t],s=c.get(t);if(null!=s){let a=i.get(t);switch(e){case"close":i.setRaw(t,s);break;case"sum":i.setRaw(t,a+s);break;case"open":break;case"low":sa&&i.setRaw(t,s);break;case"average":m[t]++,u[t]+=s;let e=u[t]/m[t];i.setRaw(t,e);break;case"extreme":Math.abs(s)>Math.abs(a)&&i.setRaw(t,s)}i.setRaw(v[t],i.get(t));let o=l.copy(c.dataContext);o[n]=w,i.dataContext=o}})),_&&i.get("originals").push(c)),a=w})),p&&f&&p(f,e)})),t._dataSetId&&t.setDataSet(t._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",(()=>{this.markDirtySize()}))}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(t){let e=this.get("baseInterval"),i=g.chooseInterval(0,t,this.get("groupCount",1/0),this.get("groupIntervals"));return g.getIntervalDuration(i){e.get("baseAxis")===this&&e.setDataSet(t)})),this.markDirtyExtremes(),this._root.events.once("frameended",(()=>{this._root.events.once("frameended",(()=>{const t="groupintervalchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}))}))}}h.each(this.series,(i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),a=h.getFirstSortedIndex(i.dataItems,(e=>r.qu(e.get(s),t))).index;a>0&&(a-=1),e+=this._baseDuration*(1-this.get("endLocation",1));let o=h.getSortedIndex(i.dataItems,(t=>r.qu(t.get(s),e))).index,n=o;n>1&&n--;const l=i.dataItems[a],d=i.dataItems[n];let g,c;l&&(c=l.get(s)),d&&(g=d.get(s));let u=!1;null!=g&&null!=c&&(ge)&&(u=!0),i.setPrivate("outOfSelection",u),i.setPrivate("startIndex",a);let m=i._adjustStartIndex(a);i.getPrivate("adjustedStartIndex")!==m&&(i.setPrivate("adjustedStartIndex",m),this.root.events.once("frameended",(()=>{i._markDirtyPrivateKey("adjustedStartIndex")}))),i.setPrivate("endIndex",o)}}))}}_adjustMinMax(t,e,i,s){return{min:t,max:e,step:(e-t)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(t,e){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=t,this._intervalMax[s]=e}_getM(t){return"day"==t||"month"==t||"year"==t?1.05:1.01}_getMinorInterval(t){var e;let i,s=t.count,a=t.timeUnit;return s>1&&(10==s||15==s?s=5:12==s?s=2:6==s?s=1:30==s?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),"week"==a&&(i="week"!=(null===(e=this.getPrivate("baseInterval"))||void 0===e?void 0:e.timeUnit)?{timeUnit:"day",count:1}:{timeUnit:"week",count:1}),"year"==a&&1==s&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<1264896e5&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){const e=this._root,i=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),n=this.get("renderer"),r=this.getPrivate("baseInterval");let l=i,d=0;const c=this.get("gridIntervals");let u=g.chooseInterval(0,a-i,n.gridCount(),c);g.getIntervalDuration(u){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_updateFinals(t,e){this.setPrivateRaw("selectionMinFinal",this.positionToValue(t)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(e))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(t,e){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return g.getIntervalDuration(this.get("baseInterval"))}processSeriesDataItem(t,e){const i=this.getPrivate("baseInterval");t.open||(t.open={}),t.close||(t.close={}),h.each(e,(e=>{let s=t.get(e);if(o.isNumber(s)){let a=t.open[e],o=t.close[e];if(s>=a&&s<=o);else{const n=i.timeUnit,r=i.count;a=g.roun(s,n,r,this._root),o=a+g.getDuration(n,r*this._getM(n)),o=g.roun(o,n,1,this._root),t.open[e]=a,t.close[e]=o}this._updateDates(a,t.component)}}))}_handleSizeDirty(){}getDataItemPositionX(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}roundAxisPosition(t,e){let i=this.positionToValue(t);i-=(e-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!o.isNaN(i)){const t=this._root.locale.firstDayOfWeek,a=s.timeUnit,o=this._root.utc,n=this._root.timezone,r=s.count;i=g.roun(i,a,r,this._root,this.getPrivate("min",0));let h=g.getDateIntervalDuration(s,new Date(i),t,o,n);return n&&(i=g.roun(i+.05*this._baseDuration,a,r,this._root,this.getPrivate("min",0)),h=g.getDateIntervalDuration(s,new Date(i+h*e),t,o,n)),this.valueToPosition(i+h*e)}return NaN}getTooltipText(t,e){if(null!=this.getPrivate("min")){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(t);if(o.isNumber(s)){let t=new Date(s),a=this.getPrivate("baseInterval"),o=g.getDateIntervalDuration(a,t,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return!1!==e&&(t=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*o)),this._root.dateFormatter.format(t,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(t,e,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);null==i&&(i=.5),o-=(i-.5)*this._baseDuration;const n=h.getSortedIndex(t.dataItems,(t=>{let e=0;return t.open&&(e=t.open[a]),r.qu(e,o)}));if(s||t.get("snapTooltip")){let e=t.dataItems[n.index-1],i=t.dataItems[n.index];if(e&&i&&e.open&&i.close){let t=e.open[a],s=i.close[a];if(Math.abs(o-t)>Math.abs(o-s))return i}if(e)return e;if(i)return i}else{const e=t.dataItems[n.index-1];if(e&&e.open&&e.close){let t=e.open[a],i=e.close[a];if(o>=t&&o<=i)return e}}}shouldGap(t,e,i,s){const a=t.get(s);return e.get(s)-a>this._baseDuration*i}zoomToDates(t,e,i){this.zoomToValues(t.getTime(),e.getTime(),i)}zoomToValues(t,e,i){const s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(null!=this.getPrivate("min")&&null!=this.getPrivate("max"))if(this.get("groupData")){const s=this.getGroupInterval(e-t),a=this.get("baseInterval");let o=this.getIntervalMin(a),n=this.getIntervalMax(a)-1;n=g.roun(n,s.timeUnit,s.count,this.root),n+=this._getM(s.timeUnit)*g.getIntervalDuration(s),n=g.roun(n,s.timeUnit,s.count,this.root);let r=g.roun(o,s.timeUnit,s.count,this.root),h=g.roun(n,s.timeUnit,s.count,this.root),l=(t-r)/(h-r),d=(e-r)/(h-r);this.zoom(l,d,i)}else this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}positionToDate(t){return new Date(this.positionToValue(t))}dateToPosition(t){return this.valueToPosition(t.getTime())}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return o.isNumber(t)&&o.isNumber(e)?this._intervalDuration/(t-e):.05}nextPosition(t){null==t&&(t=1);let e=this.get("tooltipLocation",.5)*this._baseDuration;"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0));const s=this.getPrivate("baseInterval");let a=this._nextTime(i,t,s),o=this.getPrivate("selectionMin",0),r=this.getPrivate("selectionMax",0),h=g.roun(o,s.timeUnit,s.count,this._root),l=g.roun(r,s.timeUnit,s.count,this._root);return a+=e,a=n.fitToRange(a,h+e,l-e),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(t,e,i){return g.roun(t+e*this._baseDuration,i.timeUnit,i.count,this._root)}}c.className="DateAxis",c.classNames=a.m.classNames.concat([c.className])},7109:function(t,e,i){i.d(e,{L:function(){return a}});var s=i(6691);class a extends s.Y{constructor(){super(...arguments),this._tickPoints=[]}}a.className="EditableAxisLabel",a.classNames=s.Y.classNames.concat([a.className])},8701:function(t,e,i){i.d(e,{J:function(){return d}});var s=i(5638),a=i(9361),o=i(5071),n=i(3540),r=i(1926),h=i(5040),l=i(751);class d extends s.S{constructor(){super(...arguments),this._frequency=1,this._m=0,this._dates=[]}_afterNew(){this.valueFields.push("date"),this.addTag("gapless"),super._afterNew()}_getDates(){return this._customDates?this._customDates:this._dates}_updateDates(t,e){if(!e.get("ignoreMinMax")){const e=this._getDates(),i=o.getSortedIndex(e,(e=>n.qu(e,t)));i.found||o.insertIndex(e,i.index,t)}}_updateAllDates(){if(!this._customDates){const t=this._dates;t.length=0,o.each(this.series,(t=>{let e="valueX";t.get("yAxis")==this&&(e="valueY"),o.each(t.dataItems,(i=>{let s=i.get(e);h.isNumber(s)&&i.open&&this._updateDates(i.open[e],t)}))}));const e=this.get("extraMax",0),i=this.get("extraMin",0);let s=t.length;const a=this.getPrivate("baseInterval"),n=a.count,l=a.timeUnit;if(e>0){const i=s*e;let a=t[s-1];if(h.isNumber(a))for(let e=s-1;e0){const e=s*i;let a=t[0];if(h.isNumber(a))for(let i=0;in.qu(e,t)));let h=r.index;if(r.found)return(h-i)/a;{h>0&&(h-=1);let s=e[h];const o=e[h+1];if(o){let e=o;Math.abs(e-t)n.qu(e,t)));let s=i.index;return i.found||s>0&&(s-=1),s}positionToValue(t){const e=this.get("startLocation",0),i=this.get("endLocation",1),s=this._getDates();let a=Math.round(s.length-e-(1-i)),o=t*a,n=Math.floor(o);return n<0&&(n=0),n>a-1&&(n=a-1),s[n]+(o-n+e)*this._baseDuration}_fixZoomFactor(){this.setPrivateRaw("maxZoomFactor",this._getDates().length-this.get("startLocation",0)-(1-this.get("endLocation",1)))}zoomToDates(t,e,i){const s=this._getDates(),a=s.length;let r=o.getSortedIndex(s,(e=>n.qu(e,t.getTime()))),h=s[Math.min(r.index,a-1)];r=o.getSortedIndex(s,(t=>n.qu(t,e.getTime())));let l=s[r.index];r.index>=a&&(l=s[a-1]+this._baseDuration),this.zoomToValues(h,l,i)}zoomToValues(t,e,i){const s=this.getPrivate("min",0),a=this.getPrivate("max",0);t=l.fitToRange(t,s,a),e=l.fitToRange(e,s,a),this.zoom(this.valueToPosition(t),this.valueToPosition(e),i)}_prepareAxisItems(){let t=this.getPrivate("selectionMin",0),e=this.getPrivate("selectionMax",0);if(h.isNumber(t)&&h.isNumber(e)){this._seriesValuesDirty&&(this._seriesValuesDirty=!1,this._updateAllDates());const i=this._root,s=i.utc,n=i.timezone,l=this._getDates(),d=this.get("renderer"),g=l.length,c=this._baseDuration;let u=this.valueToIndex(t);u>0&&u--;let m=this.valueToIndex(e);m{this._toggleDataItem(t,!1)})),o.each(this.minorDataItems,(t=>{this._toggleDataItem(t,!1)}));let x=e-t-((e-t)/c-(m-u))*c,v=r.chooseInterval(0,x,p,this.get("gridIntervals"));const y=this.getPrivate("baseInterval");let f=r.getIntervalDuration(v);f0){let t=0;this._m=0;let e=w-10*f;const g=r.getNextUnit(b);if(I){let t=l[C[0]];this._addMinorGrid(t-f,t,k,I)}let c=d.axisLength()/d.gridCount()*.5;o.each(C,(o=>{var u;let m;this.dataItems.length1||"week"==v.timeUnit){let e=r.roun(p,t,1,i)+r.getDuration(t,this._getM(t)),s=this.valueToIndex(e);if(e=l[s],e==p){let t=l[s+1];t?e=t:e+=k}m.setRaw("labelEndValue",e)}w=1}if(this._prepareDataItem(m,w),P&&M&&"X"==d.getPrivate("letter")){let t=M.get("label");if(t&&P.x()-t.x(){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_pickWorse(t,e,i){const s=i.timeUnit,a=t.get("value",0),o=e.get("value",0);return"hour"==s&&new Date(a).getDate()!=new Date(o).getDate()?t:e}_addMinorGrid(t,e,i,s){const n=this.get("minorDateFormats",this.get("dateFormats")),h=s.timeUnit;let l=t+r.getDuration(h,this._getM(h));l=r.roun(l,h,1,this._root);let d=e-.5*i,g=this._getIndexes(l,d,s,l);const c=this._getDates();o.each(g,(t=>{let e;this.minorDataItems.length=x-2*_&&o.move(a,e),u=0),t+=p,t=r.roun(t,n,1,g);else{if(i=t){e=s;break}o.move(a,e),t+=_,t=r.roun(t,n,h,g)}if(t==m&&(t+=_+p,t=r.roun(t,n,h,g)),t==m)break;m=t}return a}_hasDate(t){return o.getSortedIndex(this._getDates(),(e=>n.HO(e,t))).found}_nextTime(t,e,i){let s=l.fitToRange(this.valueToIndex(t)+e,0,this._dates.length-1);return this._dates[s]}}d.className="GaplessDateAxis",d.classNames=s.S.classNames.concat([d.className])},8943:function(t,e,i){i.d(e,{r:function(){return a}});var s=i(1479);class a extends s.T{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}a.className="Grid",a.classNames=s.T.classNames.concat([a.className])},7261:function(t,e,i){i.d(e,{m:function(){return d}});var s=i(9361),a=i(6515),o=i(7449),n=i(5040),r=i(5071),h=i(751),l=i(7652);class d extends a.R{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var t;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let t=this.get("syncWithAxis");t&&(this._syncDp=new o.FV([t.onPrivate("selectionMinFinal",(()=>{this._dirtySelectionExtremes=!0})),t.onPrivate("selectionMaxFinal",(()=>{this._dirtySelectionExtremes=!0}))]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,null===(t=this.ghostLabel)||void 0===t||t.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){const t=this.chart;let e=!1;if(t){const i=this.get("renderer").getPrivate("letter");"Y"==i?t.xAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)})):"X"==i&&t.yAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)}))}e&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,this.getPrivate("selectionMinFinal")==this.getPrivate("selectionMin")&&this.getPrivate("selectionMaxFinal")==this.getPrivate("selectionMax")||(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(t){const e=this.get("numberFormat"),i=this.getNumberFormatter();let s="";return s=e?i.format(t,e):i.format(t,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(n.isNumber(t)&&n.isNumber(e)){const e=this.get("logarithmic"),i=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+i;let l=a-i,d=1,g=t;if(e){if(l=this._minLogAdjusted,l2&&(l=Math.pow(10,Math.log(g)*Math.LOG10E-50))}const c=this.get("renderer"),u=c.get("minorLabelsEnabled"),m=c.get("minorGridEnabled",u);let p=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));const _=Math.round(i/p);let x=2;h.round(_/5,10)%1==0&&(x=5),h.round(_/10,10)%1==0&&(x=10);let v=i/x,y=0,f=0,b=-1/0;const D=this.get("renderer").gridCount();for(;l2){const t=Math.max(1,D),e=Math.max(1,Math.ceil(d/t)),i=Math.log(g)*Math.LOG10E+(y+1)*e-50;o=Math.pow(10,i)}else o+=i;else o+=i;if(m){let t=l+v;for(e&&(d>2&&(v=this._adjustMinMax(l,o,10).step),t=l+v);t{t.inited&&t._markDirtyAxes()})),this._updateGhost()}}_prepareDataItem(t,e){let i=this.get("renderer"),s=t.get("value"),a=t.get("endValue"),o=this.valueToPosition(s),r=o,h=this.valueToPosition(s+this.getPrivate("step"));n.isNumber(a)&&(r=this.valueToPosition(a),h=r),t.get("isRange")&&null==a&&(h=o);let l=r,d=t.get("labelEndValue");null!=d&&(l=this.valueToPosition(d)),i.updateLabel(t.get("label"),o,l,e);const g=t.get("grid");if(i.updateGrid(g,o,r),g&&(s==this.get("baseValue",0)?(g.addTag("base"),g._applyThemes()):g.hasTag("base")&&(g.removeTag("base"),g._applyThemes())),i.updateTick(t.get("tick"),o,l,e),i.updateFill(t.get("axisFill"),o,h),this._processBullet(t),i.updateBullet(t.get("bullet"),o,r),!t.get("isRange")){const e=this.get("fillRule");e&&e(t)}}_handleRangeChange(){let t=this.positionToValue(this.get("start",0)),e=this.positionToValue(this.get("end",1));const i=this.get("renderer").gridCount();let s=this._adjustMinMax(t,e,i,!0),a=l.decimalPlaces(s.step);this.setPrivateRaw("stepDecimalPlaces",a),t=h.round(t,a),e=h.round(e,a),s=this._adjustMinMax(t,e,i,!0);let o=s.step;t=s.min,e=s.max,this.getPrivate("selectionMin")===t&&this.getPrivate("selectionMax")===e&&this.getPrivate("step")===o||(this.setPrivateRaw("selectionMin",t),this.setPrivateRaw("selectionMax",e),this.setPrivateRaw("step",o))}positionToValue(t){const e=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(t*(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)+Math.log(e)*Math.LOG10E)/Math.LOG10E):t*(i-e)+e}valueToPosition(t){const e=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}valueToFinalPosition(t){const e=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}getX(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getY(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionX(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemX")?a*s+t.component.getStackedXValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemY")?a*s+t.component.getStackedYValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const t=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),e=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let i=this.get("baseValue",0);return ie&&(i=e),i}cellEndValue(t){return t}fixSmallStep(t){return 1+t===1?(t*=2,this.fixSmallStep(t)):t}_fixMin(t){return t}_fixMax(t){return t}_calculateTotals(){if(this.get("calculateTotals")){let t=this.series[0];if(t){let e=t.startIndex();if(t.dataItems.length>0){e>0&&e--;let i,s,a=t.endIndex();a{if(!i.get("excludeFromTotal")){let r=i.dataItems[t];if(r){let t=r.get(o)*i.get(s);n.isNaN(t)||(e+=t,a+=Math.abs(t))}}})),r.each(this.series,(r=>{if(!r.get("excludeFromTotal")){let h=r.dataItems[t];if(h){let t=h.get(o)*r.get(s);if(!n.isNaN(t)){h.set(i+"Total",a),h.set(i+"Sum",e);let s=t/a*100;0==a&&(s=0),h.set(i+"TotalPercent",s)}}}}))}}}}}_getSelectionMinMax(){const t=this.getPrivate("minFinal"),e=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max");let a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2));const l=this.get("renderer").gridCount(),d=this.get("strictMinMaxSelection");let g=this.get("strictMinMax");if(n.isNumber(t)&&n.isNumber(e)){let c=e,u=t;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,i;const s=t.getPrivate("outOfSelection");if(t.get("xAxis")===this){if(!s){let s=t.getPrivate("minX"),a=t.getPrivate("maxX");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinX",s),i=t.getPrivate("selectionMaxX",a)}}else if(t.get("yAxis")===this&&!s){let s=t.getPrivate("minY"),a=t.getPrivate("maxY");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinY",s),i=t.getPrivate("selectionMaxY",a)}t.isHidden()||t.isShowing()||(n.isNumber(e)&&(c=Math.min(c,e)),n.isNumber(i)&&(u=Math.max(u,i)))}})),this.axisRanges.each((t=>{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(c=Math.min(c,e),u=Math.max(u,e)),e=t.get("endValue"),null!=e&&(c=Math.min(c,e),u=Math.max(u,e))}})),c>u&&([c,u]=[u,c]),n.isNumber(i)?c=g?i:t:g&&n.isNumber(this._minReal)&&(c=this._minReal),n.isNumber(s)?u=g?s:e:g&&n.isNumber(this._maxReal)&&(u=this._maxReal),c===u){let e=c;if(c-=this._deltaMinMax,u+=this._deltaMinMax,ce&&(x.max=e),c=x.min,u=x.max),g&&(n.isNumber(i)&&(c=Math.max(c,i)),n.isNumber(s)&&(u=Math.min(u,s))),d&&(c=m-(p-m)*a,u=p+(p-m)*o),g){c=n.isNumber(i)?i:m,u=n.isNumber(s)?s:p,u-c<=1e-8&&(c-=this._deltaMinMax,u+=this._deltaMinMax);let t=u-c;c-=t*a,u+=t*o}this.get("logarithmic")&&(c<=0&&(c=m*(1-Math.min(a,.99))),ce&&(u=e));let y=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),f=h.round(this.valueToFinalPosition(c),y),b=h.round(this.valueToFinalPosition(u),y);this.setPrivateRaw("selectionMinFinal",c),this.setPrivateRaw("selectionMaxFinal",u),this.setPrivateRaw("selectionStepFinal",x.step),this.zoom(f,b)}}_getMinMax(){let t=this.get("min"),e=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2)));let l=1/0;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,a;if(t.get("xAxis")===this?(e=t.getPrivate("minX"),a=t.getPrivate("maxX")):t.get("yAxis")===this&&(e=t.getPrivate("minY"),a=t.getPrivate("maxY")),n.isNumber(e)&&n.isNumber(a)){i=Math.min(i,e),s=Math.max(s,a);let t=a-e;t<=0&&(t=Math.abs(a/100)),t{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(i=Math.min(i,e),s=Math.max(s,e)),e=t.get("endValue"),null!=e&&(i=Math.min(i,e),s=Math.max(s,e))}})),this.get("logarithmic")){let t=this.get("treatZeroAs");n.isNumber(t)&&i<=0&&(i=t),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(0===i&&0===s&&(s=.9,i=-.9),n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e),i===1/0||s===-1/0)return this.setPrivate("minFinal",void 0),void this.setPrivate("maxFinal",void 0);i>s&&([i,s]=[s,i]);const d=i,g=s;let c=this.adapters.fold("min",i),u=this.adapters.fold("max",s);this._minRealLog=i,n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!=0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&d>=0&&(i=0),s>0&&g<=0&&(s=0)),this._minReal=i,this._maxReal=s;let m=this.get("strictMinMax"),p=this.get("strictMinMaxSelection",!1);p&&(m=p);let _=m;n.isNumber(e)&&(_=!0);let x=this.get("renderer").gridCount(),v=this._adjustMinMax(i,s,x,_);if(i=v.min,s=v.max,v=this._adjustMinMax(i,s,x,!0),i=v.min,s=v.max,m){i=n.isNumber(t)?t:this._minReal,s=n.isNumber(e)?e:this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let r=s-i;i-=r*a,s+=r*o}c=this.adapters.fold("min",i),u=this.adapters.fold("max",s),n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),l==1/0&&(l=s-i);let y=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=h.round(i,y),s=h.round(s,y);const f=this.get("syncWithAxis");if(f&&(v=this._syncAxes(i,s,v.step,f.getPrivate("minFinal",f.getPrivate("min",0)),f.getPrivate("maxFinal",f.getPrivate("max",1)),f.getPrivate("step",1)),i=v.min,s=v.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/l*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=d*(1-Math.min(a,.99)))),n.isNumber(i)&&n.isNumber(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);const t=this.get("interpolationDuration",0),e=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:t,easing:e}),this.animatePrivate({key:"max",to:s,duration:t,easing:e})}}_fixZoomFactor(){}_getDelta(t){let e=Math.log(Math.abs(t))*Math.LOG10E,i=Math.pow(10,Math.floor(e));i/=10,this._deltaMinMax=i}_saveMinMax(t,e){}_adjustMinMax(t,e,i,s){i<=1&&(i=1),i=Math.round(i);let a=t,o=e,r=e-t;0===r&&(r=Math.abs(e));let l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l));d/=10;let g=d;s&&(g=0),s?(t=Math.floor(t/d)*d,e=Math.ceil(e/d)*d):(t=Math.ceil(t/d)*d-g,e=Math.floor(e/d)*d+g),t<0&&a>=0&&(t=0),e>0&&o<=0&&(e=0),l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l)),d/=100;let c=Math.ceil(r/i/d)*d,u=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),m=Math.ceil(c/u);m>5?m=10:m<=5&&m>2&&(m=5),c=Math.ceil(c/(u*m))*u*m;let p=this.get("maxPrecision");if(n.isNumber(p)){let t=h.ceil(c,p);pa&&(t-=c),c=this.fixSmallStep(c),{min:t,max:e,step:c}}getTooltipText(t,e){const i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,n=h.round(this.positionToValue(t),o);return i?s.format(n,i):s.format(n,void 0,o)}getSeriesItem(t,e){let i,s,a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);if(r.each(t.dataItems,((t,e)=>{const n=Math.abs(t.get(a)-o);(void 0===i||n500&&(s=!0),s)t=n,e=h,i=d;else{a/3==Math.round(a/3)?(n=t-o*a,t>=0&&n<0&&(n=0)):(h=e+o*a,h<=0&&h>0&&(h=0));let i=this._adjustMinMax(n,h,l,!0);n=i.min,h=i.max,d=i.step}}}return{min:t,max:e,step:i}}_checkSync(t,e,i,s){let a=(e-t)/i;for(let t=1;t{if(t instanceof l){const e=t.get("stacked");e&&0==h&&n++,!e&&t.get("clustered")&&n++}t===this&&(o=n-1),h++})),this.get("clustered")||(o=0,n=1),0===n&&(n=1,o=0);const d="cellStartLocation",g="cellEndLocation",c=this._xRenderer.get(d,0),u=this._xRenderer.get(g,1),m=this._yRenderer.get(d,0),p=this._yRenderer.get(g,1);if(this._aLocationX0=c+o/n*(u-c),this._aLocationX1=c+(o+1)/n*(u-c),this._aLocationY0=m+o/n*(p-m),this._aLocationY1=m+(o+1)/n*(p-m),e.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){const t=this.dataItems.length;let a=Math.max(0,this.startIndex()-2),o=Math.min(this.endIndex()+2,t-1);for(let t=0;t0&&a>0)for(let e=t-1;e>=0;e--){let t=this.dataItems[e];if(null!=t.get("valueX")&&null!=t.get("valueY")){n=t;break}}break}this._toggleColumn(e,!1)}this._beforeColumnsDraw();let r=0;i.isType("CategoryAxis")&&e.isType("CategoryAxis")?r=2:e===s?r=0:i===s&&(r=1);for(let t=a;t<=o;t++){let e=this.dataItems[t];this._updateGraphics(e,n,r),null!=e.get("valueX")&&null!=e.get("valueY")&&(n=e)}this._afterColumnsDraw();for(let e=o+1;e{const a=e.get(s,this.get(s));t.set(s,a),i.set(s,a)}))}}let s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.dispose()})),s=[],t.setRaw("rangeGraphics",s),this.axisRanges.each((e=>{const i=e.container,a=this._makeGraphics(e.columns,t);s&&s.push(a),a.setPrivate("list",e.columns),i.children.push(a)}))}}createAxisRange(t){return r.each(this.dataItems,(t=>{const e=t.get("graphics");e&&(e.dispose(),t.set("graphics",void 0))})),super.createAxisRange(t)}_updateGraphics(t,e,i){let s=t.get("graphics");const a=this._xField,n=this._yField,l=t.get(a),d=t.get(n),g=this.get("exactLocationX",!1);if(null!=l&&null!=d){const l=this._xOpenField,d=this._yOpenField,c=this.get("locationX",t.get("locationX",.5)),u=this.get("locationY",t.get("locationY",.5)),m=this.get("openLocationX",t.get("openLocationX",c)),p=this.get("openLocationY",t.get("openLocationY",u)),_=s.get("width"),x=s.get("height"),v=this.get("stacked"),y=this.get("xAxis"),f=this.get("yAxis"),b=y.get("start"),D=y.get("end"),P=f.get("start"),w=f.get("end");let T,A,I,M,k=this.get("vcy",1),C=this.get("vcx",1),S=!1,Y=!1;if(0==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C,g),A=y.getDataItemPositionX(t,a,i,C,g),I=f.getDataItemPositionY(t,n,u,k),this._yOpenField!==this._yField)M=f.getDataItemPositionY(t,d,p,k);else if(v){let e=t.get("stackToItemY");M=e?f.getDataItemPositionY(e,n,p,e.component.get("vcy")):f.basePosition()}else M=f.basePosition();t.setRaw("point",{x:T+(A-T)/2,y:I}),Y=!0}else if(1==i){let e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5;if(x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}if(I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),A=y.getDataItemPositionX(t,a,c,C,g),this._xOpenField!==this._xField)T=y.getDataItemPositionX(t,l,m,C,g);else if(v){let e=t.get("stackToItemX");T=e?y.getDataItemPositionX(e,a,m,e.component.get("vcx"),g):y.basePosition()}else T=y.basePosition();S=!0,t.setRaw("point",{x:A,y:I+(M-I)/2})}else if(2==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C),A=y.getDataItemPositionX(t,a,i,C),e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5,x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),t.setRaw("point",{x:T+(A-T)/2,y:I+(M-I)/2})}this._applyGraphicsStates(t,e),this._updateSeriesGraphics(t,s,T,A,I,M,S,Y),TD&&A>D||I=w&&M>w||h.isNaN(T)||h.isNaN(I)?this._toggleColumn(t,!1):this._toggleColumn(t,!0);let F=t.get("rangeGraphics");F&&r.each(F,(e=>{this._updateSeriesGraphics(t,e,T,A,I,M,S,Y)}))}else this._toggleColumn(t,!1)}_updateSeriesGraphics(t,e,i,s,a,o,n,r){const l=e.get("width"),d=e.get("height"),g=e.get("maxWidth"),c=e.get("maxHeight"),u=this.getPoint(i,a),m=this.getPoint(s,o),p=t.get("point");if(p){const t=this.getPoint(p.x,p.y);p.x=t.x+this._x,p.y=t.y+this._y}if(i=u.x,s=m.x,a=u.y,o=m.y,h.isNumber(l)){const t=(s-i-l)/2;i+=t,s-=t}if(h.isNumber(g)&&g{this._toggleColumn(t,!1)}))}_applyGraphicsStates(t,e){const i=t.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),n=i.states.lookup("riseFromPrevious");if(s||o||a||n){const i=this.get("xAxis"),r=this.get("yAxis"),l=this.get("baseAxis");let d,g,c;l===i&&r.isType("ValueAxis")?(d=t.get(this._yOpenField),g=t.get(this._yField),c=e.get(this._yField)):l===r&&i.isType("ValueAxis")&&(d=t.get(this._xOpenField),g=t.get(this._xField),c=e.get(this._xField)),h.isNumber(d)&&h.isNumber(g)&&(g{const e=t.getPrivate("list");e&&e.removeValue(t),t.dispose()}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.hide(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.hide(e))})),yield Promise.all(s)}))}_toggleColumn(t,e){const i=t.get("graphics");i&&i.setPrivate("visible",e);const s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.setPrivate("visible",e)}));const a=t.bullets;a&&r.each(a,(t=>{t.setPrivate("hidden",!e)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.show(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.show(e))})),yield Promise.all(s)}))}updateLegendMarker(t){let e=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!t){const e=this.dataItems[this.endIndex()-1];e&&(t=e)}if(e){let i=this.columns.template;if(t){let e=t.get("graphics");e&&(i=e)}const s=e.get("markerRectangle");if(s&&!e.get("itemContainer").get("disabled")){const t=s.states.lookup("default");r.each(n.u,(e=>{const a=i.get(e,this.get(e));s.set(e,a),t.set(e,a)}))}}}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget"))return super._getTooltipTarget(t);return t.get("graphics")||this}}l.className="BaseColumnSeries",l.classNames=a.o.classNames.concat([l.className])},2976:function(t,e,i){i.d(e,{j:function(){return a}});var s=i(3497);class a extends s.c{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();const t=this._display;t.moveTo(this.get("lowX0",0),this.get("lowY0",0)),t.lineTo(this.get("lowX1",0),this.get("lowY1",0)),t.moveTo(this.get("highX0",0),this.get("highY0",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0))}}a.className="Candlestick",a.classNames=s.c.classNames.concat([a.className])},2312:function(t,e,i){i.d(e,{$:function(){return l}});var s=i(62),a=i(2976),o=i(5769),n=i(7144),r=i(7652),h=i(5071);class l extends s.d{constructor(){super(...arguments),this.columns=this.addDisposer(new n.o(o.YS.new({themeTags:["autocolor"]}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_updateGraphics(t,e,i){super._updateGraphics(t,e,i);const s=this.getRaw("xAxis"),a=this.getRaw("yAxis");let o,n,r,h,l,d,g,c,u,m=this.get("vcy",1),p=this.get("vcx",1),_=this.get("locationX",t.get("locationX",.5)),x=this.get("locationY",t.get("locationY",.5)),v=this.get("openLocationX",t.get("openLocationX",_)),y=this.get("openLocationY",t.get("openLocationY",x));if(0==i){let e=a.getDataItemPositionY(t,this._yOpenField,1,m),i=a.getDataItemPositionY(t,this._yField,1,m);h=a.getDataItemPositionY(t,this._yLowField,1,m),c=a.getDataItemPositionY(t,this._yHighField,1,m),g=Math.max(e,i),r=Math.min(e,i);let x=this._aLocationX0+v-.5,y=this._aLocationX1+_-.5;o=s.getDataItemPositionX(t,this._xField,x+(y-x)/2,p),n=o,l=o,d=o,u="vertical"}else{let e=s.getDataItemPositionX(t,this._xOpenField,1,p),i=s.getDataItemPositionX(t,this._xField,1,p);n=s.getDataItemPositionX(t,this._xLowField,1,p),d=s.getDataItemPositionX(t,this._xHighField,1,p),l=Math.max(e,i),o=Math.min(e,i);let _=this._aLocationY0+y-.5,v=this._aLocationY1+x-.5;r=a.getDataItemPositionY(t,this._yField,_+(v-_)/2,m),h=r,g=r,c=r,u="horizontal"}this._updateCandleGraphics(t,o,n,r,h,l,d,g,c,u)}_updateCandleGraphics(t,e,i,s,a,o,n,r,l,d){let g=t.get("graphics");if(g){let c=this.getPoint(e,s),u=this.getPoint(i,a),m=this.getPoint(o,r),p=this.getPoint(n,l);if(this.get("turboMode")){const t=this.allColumnsData[this.allColumnsData.length-1];t.lowX0=c.x,t.lowY0=c.y,t.lowX1=u.x,t.lowY1=u.y,t.highX0=m.x,t.highY0=m.y,t.highX1=p.x,t.highY1=p.y}else{let e=g.x(),i=g.y();g.set("lowX0",c.x-e),g.set("lowY0",c.y-i),g.set("lowX1",u.x-e),g.set("lowY1",u.y-i),g.set("highX0",m.x-e),g.set("highY0",m.y-i),g.set("highX1",p.x-e),g.set("highY1",p.y-i),g.set("orientation",d);let s=t.get("rangeGraphics");s&&h.each(s,(t=>{t.set("lowX0",c.x-e),t.set("lowY0",c.y-i),t.set("lowX1",u.x-e),t.set("lowY1",u.y-i),t.set("highX0",m.x-e),t.set("highY0",m.y-i),t.set("highX1",p.x-e),t.set("highY1",p.y-i),t.set("orientation",d)}))}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),h.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity,g=e.lowX0,c=e.lowY0,u=e.lowX1,m=e.lowY1,p=e.highX0,_=e.highY0,x=e.highX1,v=e.highY1;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.moveTo(g,c),t.lineTo(u,m),t.moveTo(p,_),t.lineTo(x,v),t.endStroke(),t.endFill()}))}))}_processAxisRange(t){super._processAxisRange(t),t.columns=new n.o(o.YS.new({}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(t.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,t.columns.template])))}}l.className="CandlestickSeries",l.classNames=s.d.classNames.concat([l.className])},62:function(t,e,i){i.d(e,{d:function(){return d}});var s=i(757),a=i(5769),o=i(7144),n=i(3497),r=i(1479),h=i(7652),l=i(5071);class d extends s.d{constructor(){super(...arguments),this.allColumns=this.children.push(r.T.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(t.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,t.columns.template])))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),l.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.endStroke(),t.endFill()}))}))}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(t,e,i,s,a,o,n,r){if(this.get("turboMode")){e.virtualParent=this.chart,e.parent&&(this.mainContainer.children.removeValue(e),e._parent=void 0);const n=e.get("stroke"),r=e.get("fillOpacity",1),h=e.get("strokeOpacity",1),l=e.get("strokeWidth",1),d=e.get("fill"),g=this.getPoint(i,a),c=this.getPoint(s,o),u=t.get("point");if(u){const t=this.getPoint(u.x,u.y);u.x=t.x+this._x,u.y=t.y+this._y}i=g.x,s=c.x,a=g.y,o=c.y,t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:n,fill:d,strokeWidth:l,strokeOpacity:h,fillOpacity:r})}else e.parent||this.mainContainer.children.push(e),super._updateSeriesGraphics(t,e,i,s,a,o,n,r)}}d.className="ColumnSeries",d.classNames=s.d.classNames.concat([d.className])},2338:function(t,e,i){i.d(e,{e:function(){return p}});var s=i(4604),a=i(1479),o=i(774),n=i(3794),r=i(5769),h=i(7144),l=i(1112),d=i(9361),g=i(7142),c=i(5040),u=i(5071),m=i(7652);class p extends s.o{constructor(){super(...arguments),this._strokeGenerator=(0,o.Z)(),this._fillGenerator=(0,n.Z)(),this.strokes=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template])))),this.fills=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template])))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0((function(t){return t[3]})),this._fillGenerator.x0((function(t){return t[2]})),this._fillGenerator.y1((function(t){return t[1]})),this._fillGenerator.x1((function(t){return t[0]})),super._afterNew()}makeStroke(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}makeFill(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let t=this.get("xAxis"),e=this.get("yAxis");if(this.isDirty("stroke")){const t=this.get("stroke");this.strokes.template.set("stroke",t);const e=this._legendStroke;e&&e.states.lookup("default").set("stroke",t)}if(this.isDirty("fill")){const t=this.get("fill");this.fills.template.set("fill",t);const e=this._legendFill;e&&e.states.lookup("default").set("fill",t)}if(this.isDirty("fillPattern")){const t=this.get("fillPattern");this.fills.template.set("fillPattern",t);const e=this._legendFill;e&&e.states.lookup("default").set("fillPattern",t)}if(this.isDirty("curveFactory")){const t=this.get("curveFactory");t&&(this._strokeGenerator.curve(t),this._fillGenerator.curve(t))}if(t.inited&&e.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){const t=this.dataItems;this.fills.each((t=>{t.setPrivate("visible",!1)})),this.strokes.each((t=>{t.setPrivate("visible",!1)})),this.axisRanges.each((t=>{let e=t.fills;e&&e.each((t=>{t.setPrivate("visible",!1)}));let i=t.strokes;i&&i.each((t=>{t.setPrivate("visible",!1)}))}));let e=this.startIndex(),i=this.strokes.template.get("templateField"),s=this.fills.template.get("templateField"),a=!0,o=!0;i&&(a=!1),s&&(o=!1);for(let n=e-1;n>=0;n--){let r=t[n],h=!0,l=r.dataContext;if(i&&l[i]&&(a=!0),s&&l[s]&&(o=!0),u.each(this._valueFields,(t=>{c.isNumber(r.get(t))||(h=!1)})),h&&a&&o){e=n;break}}let n=t.length,r=this.endIndex();if(r{c.isNumber(i.get(t))||(s=!1)})),s){r=e+1;break}}}if(e>0&&e--,this._endIndex=r,this._clearGraphics(),this._sindex=0,this._dindex=e,1==n)this._startSegment(0);else for(;this._dindex{t.fills.clear(),t.strokes.clear()}))}_startSegment(t){const e=this.dataItems;let i=this._endIndex,s=i;const a=this.get("autoGapCount"),o=this.get("connect"),n=this.makeFill(this.fills),h=this._fillTemplate,l=this.fills.template;h&&h!=l&&(n.template=h),n.setPrivate("visible",!0);const d=this.makeStroke(this.strokes),g=this._strokeTemplate;g&&g!=this.strokes.template&&(d.template=g),d.setPrivate("visible",!0);let c=this.get("xAxis"),u=this.get("yAxis"),m=this.get("baseAxis"),p=this.get("vcx",1),_=this.get("vcy",1),x=this._xField,v=this._yField,y=this._xOpenField,f=this._yOpenField;const b=this.get("openValueXField"),D=this.get("openValueYField");b||(y=this._xField),D||(f=this._yField);const P=this.get("stacked"),w=c.basePosition(),T=u.basePosition();let A;A=m===u?this._yField:this._xField;const I=[];let M=[];I.push(M);const k=this.strokes.template.get("templateField"),C=this.fills.template.get("templateField");let S=this.get("locationX",.5),Y=this.get("locationY",.5),F=this.get("openLocationX",S),X=this.get("openLocationY",Y);const L=this.get("minDistance",0);let N,R=this.fills.template.get("visible");this.axisRanges.length>0&&(R=!0);let V=!1;(P||b||D)&&(V=!0);const G={points:M,segments:I,stacked:P,getOpen:V,basePosX:w,basePosY:T,fillVisible:R,xField:x,yField:v,xOpenField:y,yOpenField:f,vcx:p,vcy:_,baseAxis:m,xAxis:c,yAxis:u,locationX:S,locationY:Y,openLocationX:F,openLocationY:X,minDistance:L};let O=this._strokeTemplate,E=this._fillTemplate;for(N=t;Nt){s=N;break}O=e,d.template=e}}if(C){let e=i.dataContext[C];if(e){if(e instanceof r.YS||(e=r.YS.new(e)),this._fillTemplate=e,N>t){s=N;break}E=e,n.template=e}}if(!o){let t=e[N+1];t&&m.shouldGap(i,t,a,A)&&(M=[],I.push(M),G.points=M)}}n.setRaw("userData",[t,N]),d.setRaw("userData",[t,N]),N===i&&this._endLine(M,I[0][0]),d&&this._drawStroke(d,I),n&&this._drawFill(n,I),this.axisRanges.each((e=>{const i=e.container,s=e.fills,a=this.makeFill(s);i&&i.children.push(a),a.setPrivate("visible",!0),this._drawFill(a,I);const o=e.strokes,n=this.makeStroke(o);i&&i.children.push(n),O&&O!=this.strokes.template&&(n.template=O),E&&E!=this.fills.template&&(a.template=E),n.setPrivate("visible",!0),this._drawStroke(n,I),a.setRaw("userData",[t,N]),n.setRaw("userData",[t,N])}))}_getPoints(t,e){let i=e.points,s=t.get("locationX",e.locationX),a=t.get("locationY",e.locationY);const o=this.get("exactLocationX",!1),n=this.get("exactLocationY",!1);let r=e.xAxis.getDataItemPositionX(t,e.xField,s,e.vcx,o),h=e.yAxis.getDataItemPositionY(t,e.yField,a,e.vcy,n);if(this._shouldInclude(r)){const s=this.getPoint(r,h),a=[s.x,s.y];if(s.x+=this._x,s.y+=this._y,t.set("point",s),e.fillVisible){let i=r,s=h;if(e.baseAxis===e.xAxis?s=e.basePosY:e.baseAxis===e.yAxis&&(i=e.basePosX),e.getOpen){let a=t.get(e.xOpenField),r=t.get(e.yOpenField);if(null!=a&&null!=r){let a=t.get("openLocationX",e.openLocationX),r=t.get("openLocationY",e.openLocationY);if(e.stacked){let h=t.get("stackToItemX"),l=t.get("stackToItemY");h?(i=e.xAxis.getDataItemPositionX(h,e.xField,a,h.component.get("vcx"),o),c.isNaN(i)&&(i=e.basePosX)):i=e.yAxis===e.baseAxis?e.basePosX:e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),l?(s=e.yAxis.getDataItemPositionY(l,e.yField,r,l.component.get("vcy"),n),c.isNaN(s)&&(s=e.basePosY)):s=e.xAxis===e.baseAxis?e.basePosY:e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),s=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}}let l=this.getPoint(i,s);a[2]=l.x,a[3]=l.y}if(e.minDistance>0){const t=a[0],s=a[1],o=a[2],n=a[3],r=this._previousPoint,h=r[0],l=r[1],d=r[2],g=r[3];(Math.hypot(t-h,s-l)>e.minDistance||o&&n&&Math.hypot(o-d,n-g)>e.minDistance)&&(i.push(a),this._previousPoint=a)}else i.push(a)}}_endLine(t,e){}_drawStroke(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._strokeGenerator.context(t),this._strokeGenerator(e)}))}))}_drawFill(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._fillGenerator.context(t),this._fillGenerator(e)}))}))}_processAxisRange(t){super._processAxisRange(t),t.fills=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,t.fills.template]))),t.strokes=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,t.strokes.template])))}createLegendMarker(t){const e=this.get("legendDataItem");if(e){const t=e.get("marker"),i=e.get("markerRectangle");i&&i.setPrivate("visible",!1),t.set("background",g.A.new(t._root,{fillOpacity:0,fill:(0,l.$_)(0)}));const s=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=s;const o=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;const n=this._root.interfaceColors.get("disabled");if(s.states.create("disabled",{fill:n,stroke:n}),o.states.create("disabled",{fill:n,stroke:n}),this.bullets.length>0){const e=this.bullets.getIndex(0);if(e){const i=e(t._root,this,new d.z(this,{legend:!0},{}));if(i){const e=i.get("sprite");e instanceof a.T&&e.states.create("disabled",{fill:n,stroke:n}),e&&(e.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),t.children.push(e),e.setAll({x:t.width()/2,y:t.height()/2}),t.events.on("boundschanged",(()=>{e.setAll({x:t.width()/2,y:t.height()/2})})))}}}}}}p.className="LineSeries",p.classNames=s.o.classNames.concat([p.className])},4604:function(t,e,i){i.d(e,{o:function(){return u}});var s=i(7582),a=i(9361),o=i(3399),n=i(7144),r=i(8777),h=i(1479),l=i(5040),d=i(256),g=i(5071),c=i(7652);class u extends o.F{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(r.W.new(this._root,{})),this.axisRanges=new n.aV,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new a.z(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");const t=this.get("xAxis");t&&(this._xRenderer=t.get("renderer"));const e=this.get("yAxis");e&&(this._yRenderer=e.get("renderer")),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxisRange(t)}));else if("push"===t.type)this._processAxisRange(t.newValue);else if("setIndex"===t.type)this._processAxisRange(t.newValue);else if("insertIndex"===t.type)this._processAxisRange(t.newValue);else if("removeIndex"===t.type)this._removeAxisRange(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value)}}))),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this.onPrivate("endIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this._makeFieldNames()}_processAxisRange(t){const e=r.W.new(this._root,{});t.container=e,this.children.push(e),t.series=this;const i=t.axisDataItem;i.setRaw("isRange",!0);const s=i.component;if(s){s._processAxisRange(i,["range","series"]);const t=i.get("bullet");if(t){const e=t.get("sprite");e&&e.setPrivate("visible",!1)}const a=i.get("axisFill");a&&e.set("mask",a),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),d.each(this._dataSets,((t,e)=>{g.each(e,(t=>{t.dispose()})),e.length=0}))}_removeAxisRange(t){const e=t.axisDataItem,i=e.component;e.dispose(),g.remove(i._seriesAxisRanges,e);const s=t.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&g.each(this.valueXFields,(t=>{if(this.get(t+"Field")){this._valueXFields.push(t);let e=this.get(t+"Show");this.__valueXShowFields.push(e),-1!=e.indexOf("Working")?this._valueXShowFields.push(e.split("Working")[0]):this._valueXShowFields.push(e)}})),this.valueYFields&&g.each(this.valueYFields,(t=>{if(this.get(t+"Field")){this._valueYFields.push(t);let e=this.get(t+"Show");this.__valueYShowFields.push(e),-1!=e.indexOf("Working")?this._valueYShowFields.push(e.split("Working")[0]):this._valueYShowFields.push(e)}}))}_dispose(){super._dispose(),this._bullets={};const t=this.chart;t&&t.series.removeValue(this),g.removeFirst(this.get("xAxis").series,this),g.removeFirst(this.get("yAxis").series,this)}_min(t,e){let i=(a=e,null==(s=this.getPrivate(t))?a:null==a?s:aa?s:a);var s,a;this.setPrivate(t,i)}_shouldMakeBullet(t){const e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!e.inited||!i.inited)return!1;const a=this.get("minBulletDistance",0);if(a>0){let t=this.startIndex(),o=this.endIndex()-t;if(e==s){if(this._xRenderer.axisLength()/o
{g.each(this._valueXShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedXValue(i,t)),this._min("minX",e),this._max("maxX",e))})),g.each(this._valueYShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedYValue(i,t)),this._min("minY",e),this._max("maxY",e))})),t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)})),t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&t.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&e.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(t._groupSeriesData(this),e._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let s=this.startIndex(),a=this.endIndex(),o=this.get("minBulletDistance",0);if(o>0&&i&&(i.get("renderer").axisLength()/(a-s)>o?this._showBullets=!0:this._showBullets=!1),(this._psi!=s||this._pei!=a||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const o=this.get("vcx",1),n=this.get("vcy",1),r=this.get("stacked",!1),h=this.getPrivate("outOfSelection");if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),h)e.markDirtySelectionExtremes();else for(let t=s;t{i.open=void 0,i.close=void 0,t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)}))}_makeRangeMask(){if(this.axisRanges.length>0){let t=this._mainContainerMask;null==t&&(t=this.children.push(h.T.new(this._root,{})),this._mainContainerMask=t,t.set("draw",((e,i)=>{const s=this.parent;if(s){const t=this._root.container.width(),a=this._root.container.height();e.moveTo(-t,-a),e.lineTo(-t,2*a),e.lineTo(2*t,2*a),e.lineTo(2*t,-a),e.lineTo(-t,-a),this.axisRanges.each((t=>{const a=t.axisDataItem.get("axisFill");if(s&&a){let t=a.get("draw");t&&t(e,i)}}))}this.mainContainer._display.mask=t._display}))),t.markDirty(),t._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const t=this.chart;if(t){const e=t.series.indexOf(this);if(this._couldStackTo=[],e>0){let i;for(let s=e-1;s>=0&&(i=t.series.getIndex(s),i.get("xAxis")!==this.get("xAxis")||i.get("yAxis")!==this.get("yAxis")||i.className!==this.className||(this._couldStackTo.push(i),i.get("stacked")));s--);}this._stackDataItems()}}_unstack(){d.each(this._reallyStackedTo,((t,e)=>{delete e._stackedSeries[this.uid]})),this._reallyStackedTo={},g.each(this.dataItems,(t=>{t.setRaw("stackToItemY",void 0),t.setRaw("stackToItemX",void 0)}))}_handleRemoved(){const t=this.get("xAxis");t&&t._handleSeriesRemoved();const e=this.get("yAxis");e&&e._handleSeriesRemoved()}_stackDataItems(){const t=this.get("baseAxis"),e=this.get("xAxis"),i=this.get("yAxis");let s,a;t===e?(s="valueY",a="stackToItemY"):t===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,n=0;const r=this.get("stackToNegative");this._reallyStackedTo={},g.each(this.dataItems,(t=>{for(let e=0;e=0&&n>=0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}if(d<0&&n<0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}else if(l.isNumber(d)&&l.isNumber(n)){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}n++}))}processXSelectionDataItem(t,e,i){g.each(this.__valueXShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedXValueWorking(t,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*e))}))}processYSelectionDataItem(t,e,i){g.each(this.__valueYShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedYValueWorking(t,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*e))}))}getStackedYValueWorking(t,e){const i=t.get("stackToItemY");if(i){const t=i.component;return i.get(e,0)*t.get("vcy",1)+this.getStackedYValueWorking(i,e)}return 0}getStackedXValueWorking(t,e){const i=t.get("stackToItemX");if(i){const t=i.component;return i.get(e,0)*t.get("vcx",1)+this.getStackedXValueWorking(i,e)}return 0}getStackedYValue(t,e){const i=t.get("stackToItemY");return i?i.get(e,0)+this.getStackedYValue(i,e):0}getStackedXValue(t,e){const i=t.get("stackToItemX");return i?i.get(e,0)+this.getStackedXValue(i,e):0}createLegendMarker(t){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(t){let e=t.get("sprite");if(e){let i=e.dataItem,s=t.get("locationX",i.get("locationX",.5)),a=t.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),n=this.get("yAxis"),r=this.get("exactLocationX",!1),h=this.get("exactLocationY",!1),l=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),r),d=n.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),h),g=this.getPoint(l,d),c=i.get("left",g.x),u=i.get("right",g.x),m=i.get("top",g.y),p=i.get("bottom",g.y),_=0,x=0,v=u-c,y=p-m;if(this._shouldShowBullet(l,d)){e.setPrivate("visible",!t.getPrivate("hidden"));let o=t.get("field");const n=this.get("baseAxis"),u=this.get("xAxis"),m=this.get("yAxis");if(null!=o){let t;n==u?("value"==o?t=this._yField:"open"==o?t=this._yOpenField:"high"==o?t=this._yHighField:"low"==o&&(t=this._yLowField),t&&(d=m.getDataItemPositionY(i,t,0,this.get("vcy",1),h),g=this._yRenderer.positionToPoint(d),x=g.y,_=c+v*s)):("value"==o?t=this._xField:"open"==o?t=this._xOpenField:"high"==o?t=this._xHighField:"low"==o&&(t=this._xLowField),t&&(l=u.getDataItemPositionX(i,t,0,this.get("vcx",1),r),g=this._xRenderer.positionToPoint(l),_=g.x,x=p-y*a))}else _=c+v*s,x=p-y*a;const f=t.get("stacked");if(f){const t=this.chart;if(n==u){let i=this._bullets[l+"_"+d];if(i){let s=i.bounds(),a=e.localBounds(),o=x;x=s.top,"down"==f?x=s.bottom-a.top:"auto"==f?t&&(o{e!=this._mainDataItems&&g.each(e,(t=>{t.dispose()}))})),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){g.each(this._dataItems,(t=>{let e=t.bullets;e&&g.each(e,(t=>{if(t){let e=t.get("sprite");e&&e.setPrivate("visible",!1)}}))})),this._selectionProcessed=!1}show(t){const e=Object.create(null,{show:{get:()=>super.show}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.show.call(this,t).then((()=>{this._isShowing=!1;let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis");e!==i&&e.markDirtySelectionExtremes(),t!==i&&t.markDirtySelectionExtremes()}))),i.push(this.bulletsContainer.show(t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)}))}hide(t){const e=Object.create(null,{hide:{get:()=>super.hide}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.hide.call(this,t).then((()=>{this._isHiding=!1}))),i.push(this.bulletsContainer.hide(t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)];l.isNumber(e)||(e=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");g.each(this._valueFields,(i=>{s.push(t.animate({key:i+"Working",to:t.get(i),duration:e,easing:a}).waitForStop())})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)];let a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),l.isNumber(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),n=this.get("xAxis"),r=this.get("yAxis"),h=this.get("baseAxis"),d=this.get("stacked");if(h!==n&&h||g.each(this._valueYFields,(i=>{let a=r.getPrivate("min"),n=r.baseValue();l.isNumber(a)&&a>n&&(n=a),d&&(n=0),null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:n,duration:e,easing:o}).waitForStop())})),h===r||!h){let i=n.getPrivate("min"),a=n.baseValue();l.isNumber(i)&&i>a&&(a=i),d&&(a=0),g.each(this._valueXFields,(i=>{null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:a,duration:e,easing:o}).waitForStop())}))}yield Promise.all(s)}))}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const t=this._stackedSeries;t&&d.each(t,((t,e)=>{e._stackDirty||e._markDirtyStack()}))}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(t){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(t),this.updateLegendValue(t));const e=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(e)if(!this.isHidden()&&this.get("visible")){if(e._setDataItem(t),t){let a=this.get("locationX",0),o=this.get("locationY",1),n=t.get("locationX",a),r=t.get("locationY",o);const h=this.get("xAxis"),l=this.get("yAxis"),d=this.get("vcx",1),c=this.get("vcy",1),u=h.getDataItemPositionX(t,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*n,d,i),m=l.getDataItemPositionY(t,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*r,c,s),p=this.getPoint(u,m);let _=!0;if(g.each(this._valueFields,(e=>{null==t.get(e)&&(_=!1)})),_){const i=this.chart;i&&i.inPlot(p)?(e.label.text.markDirtyText(),e.set("tooltipTarget",this._getTooltipTarget(t)),e.set("pointTo",this._display.toGlobal({x:p.x,y:p.y}))):e._setDataItem(void 0)}else e._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const t=this.get("tooltip");return t&&t.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget")){const e=t.bullets;if(e&&e.length>0){const t=e[0].get("sprite");if(t)return t}}return this}updateLegendValue(t){const e=this.get("legendDataItem");if(e){const i=e.get("label");if(i){let e="";t?(i._setDataItem(t),e=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),e=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",e)}const s=e.get("valueLabel");if(s){let e="";t?(s._setDataItem(t),e=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),e=this.get("legendRangeValueText",s.get("text",""))),s.set("text",e)}}}_getItemReaderLabel(){let t="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}",t}getPoint(t,e){let i=this._xRenderer.positionToCoordinate(t),s=this._yRenderer.positionToCoordinate(e),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(t){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(t){return this.axisRanges.push({axisDataItem:t})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(t){const e=this.get("xAxis");if(this.get("baseAxis")==e&&e.isType("DateAxis")){const i=e.baseDuration(),s=e.getPrivate("selectionMin",e.getPrivate("min",0)),a=i*this.get("locationX",.5);let o=-1/0;for(;o{const e=this.startGrip,i=this.endGrip;let s=e.x(),a=e.y(),o=i.x(),n=i.y();const r=this.height(),h=this.width();s>o&&([s,o]=[o,s]),a>n&&([a,n]=[n,a]),"horizontal"===this.get("orientation")?(t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,r),t.lineTo(0,r),t.lineTo(0,0),t.moveTo(o,0),t.lineTo(h,0),t.lineTo(h,r),t.lineTo(o,r),t.lineTo(o,0)):(t.moveTo(0,0),t.lineTo(0,a),t.lineTo(h,a),t.lineTo(h,0),t.lineTo(0,0),t.moveTo(0,n),t.lineTo(0,r),t.lineTo(h,r),t.lineTo(h,n),t.lineTo(0,n))}))}}r.className="XYChartScrollbar",r.classNames=a.L.classNames.concat([r.className]);var h=i(3355),l=i(757),d=i(6515),g=i(7497),c=i(1926),u=i(5040),m=i(5071);class p extends g.${constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category"),super._afterNew()}_prepareAxisItems(){this.setPrivateRaw("baseInterval",this.get("baseInterval"));const t=this.get("renderer"),e=this.dataItems.length;let i=this.startIndex();i>0&&i--;let s=this.endIndex();s=o&&(g=!0):r%l.count==0&&r!=y&&(g=!0),!h&&g&&(i-.7*o0){let t=f[0].dataItem.get("index",0);m.each(f,(e=>{const i=e.dataItem,s=e.format;this._createAssets(i,[]),this._toggleDataItem(i,!0);let a=Number(i.get("category")),n=new Date(a);const r=i.get("label");r&&r.set("text",this._root.dateFormatter.format(n,s)),t++,this._prepareDataItem(i,t,o)}))}}baseDuration(){return c.getIntervalDuration(this.getPrivate("baseInterval"))}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let t=this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];return this._root.dateFormatter.format(new Date(i.get("category",0)),this.get("tooltipDateFormat",t))}}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}}p.className="CategoryDateAxis",p.classNames=g.$.classNames.concat([p.className]);var _=i(5638),x=i(8701),v=i(7261),y=i(751);class f extends v.m{constructor(){super(...arguments),this._dataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),super._afterNew()}_adjustMinMax(t,e,i,s){let a;const o=this.getDurationFormatter(),n=this.get("baseUnit");if(this.setRaw("maxPrecision",0),"millisecond"==n||"second"==n||"minute"==n||"hour"==n){i<=1&&(i=1),i=Math.round(i);let s=e-t;0===s&&(s=Math.abs(e));let o=s/i,r=[60,30,20,15,10,2,1],h=1;"hour"==n&&(r=[24,12,6,4,2,1]);for(let t of r)if(s/t>i){h=t;break}let l=Math.ceil((e-t)/h/i),d=Math.log(Math.abs(l))*Math.LOG10E,g=Math.pow(10,Math.floor(d))/10,c=l/g;l=y.closest(r,c)*g,o=h*l,a={min:t=Math.floor(t/o)*o,max:e=Math.ceil(e/o)*o,step:o}}else a=super._adjustMinMax(t,e,i,s);return this.setPrivateRaw("durationFormat",o.getFormat(a.step,a.max,n)),a}_formatText(t){return this.getDurationFormatter().format(t,this.getPrivate("durationFormat"),this.get("baseUnit"))}getTooltipText(t,e){const i=this.getDurationFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=y.round(this.positionToValue(t),a);return i.format(o,this.getPrivate("durationFormat"),this.get("baseUnit"))}}f.className="DurationAxis",f.classNames=v.m.classNames.concat([f.className]);var b=i(2586),D=i(6293),P=i(9084),w=i(4714),T=i(8943),A=i(7109),I=i(6275),M=i(6284),k=i(7909),C=i(4604),S=i(2976),Y=i(2312);class F extends S.j{_draw(){const t=this._display;t.moveTo(this.get("lowX1",0),this.get("lowY1",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0));let e=this.width(),i=this.height();if("vertical"==this.get("orientation")){let s=i,a=0;t.moveTo(0,s),t.lineTo(e/2,s),t.moveTo(e/2,a),t.lineTo(e,a)}else{let s=0,a=e;t.moveTo(s,0),t.lineTo(s,i/2),t.moveTo(a,i/2),t.lineTo(a,i)}}}F.className="OHLC",F.classNames=S.j.classNames.concat([F.className]);var X=i(5769),L=i(7144);class N extends Y.${constructor(){super(...arguments),this.columns=this.addDisposer(new L.o(X.YS.new({themeTags:["autocolor"]}),(()=>F._new(this._root,{themeTags:n.mergeTags(this.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=this.mainContainer.children.push(e.make());return i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new L.o(X.YS.new({}),(()=>F._new(this._root,{themeTags:n.mergeTags(t.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template,t.columns.template])))}}N.className="OHLCSeries",N.classNames=Y.$.classNames.concat([N.className]);var R=i(62),V=i(2338),G=i(5892);class O extends V.e{_afterNew(){this._setDefault("curveFactory",(0,G.$)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,G.$)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}O.className="SmoothedYLineSeries",O.classNames=V.e.classNames.concat([O.className]);var E=i(8289);class z extends V.e{_afterNew(){this._setDefault("curveFactory",(0,E.G)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,E.G)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}z.className="SmoothedXLineSeries",z.classNames=V.e.classNames.concat([z.className]);var U=i(2818);class W extends V.e{_afterNew(){this._setDefault("curveFactory",U.ZP.tension(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",U.ZP.tension(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}W.className="SmoothedXYLineSeries",W.classNames=V.e.classNames.concat([W.className]);var B=i(6245);function H(t,e){this._context=t,this._t=e}function Z(t){return new H(t,1)}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}};class Q extends V.e{_afterNew(){this._setDefault("curveFactory",Z),super._afterNew()}_getPoints(t,e){let i=e.points,s=this.get("stepWidth",B.AQ).value/2,a=t.get("locationX",e.locationX),o=t.get("locationY",e.locationY),n=a,r=o;e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s);let h=e.xAxis.getDataItemPositionX(t,e.xField,a,e.vcx),l=e.yAxis.getDataItemPositionY(t,e.yField,o,e.vcy),d=e.xAxis.getDataItemPositionX(t,e.xField,n,e.vcx),g=e.yAxis.getDataItemPositionY(t,e.yField,r,e.vcy);if(this._shouldInclude(h)){const c=this.getPoint(h,l),u=[c.x,c.y],m=this.getPoint(d,g),p=[m.x,m.y];if(e.fillVisible){let i=h,c=l,m=d,_=g;if(e.baseAxis===e.xAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(i=e.basePosX,m=e.basePosX),e.getOpen){let h=t.get(e.xOpenField),l=t.get(e.yOpenField);if(null!=h&&null!=l)if(a=t.get("openLocationX",e.openLocationX),o=t.get("openLocationY",e.openLocationY),n=a,r=o,e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s),e.stacked){let s=t.get("stackToItemX"),h=t.get("stackToItemY");s?(i=e.xAxis.getDataItemPositionX(s,e.xField,a,s.component.get("vcx")),m=e.xAxis.getDataItemPositionX(s,e.xField,n,s.component.get("vcx"))):e.yAxis===e.baseAxis?(i=e.basePosX,m=e.basePosX):e.baseAxis===e.yAxis&&(i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx)),h?(c=e.yAxis.getDataItemPositionY(h,e.yField,o,h.component.get("vcy")),_=e.yAxis.getDataItemPositionY(h,e.yField,r,h.component.get("vcy"))):e.xAxis===e.baseAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy))}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy)}let x=this.getPoint(i,c),v=this.getPoint(m,_);u[2]=x.x,u[3]=x.y,p[2]=v.x,p[3]=v.y}i.push(u),i.push(p),t.set("point",{x:u[0]+(p[0]-u[0])/2,y:u[1]+(p[1]-u[1])/2})}this.get("noRisers")&&(e.points=[],e.segments.push(i))}}Q.className="StepLineSeries",Q.classNames=V.e.classNames.concat([Q.className]);var j=i(55)},7825:function(t,e,i){i.r(e),i.d(e,{am5xy:function(){return s}});const s=i(778)},2818:function(t,e,i){function s(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function a(t,e){this._context=t,this._k=(1-e)/6}i.d(e,{xm:function(){return s}}),a.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:s(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:s(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.ZP=function t(e){function i(t){return new a(t,e)}return i.tension=function(e){return t(+e)},i}(0)}},function(t){var e=(7825,t(t.s=7825)),i=window;for(var s in e)i[s]=e[s];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=xy.js.map diff --git a/web/amCharts/scatter/chart_0060_scatter.inline03.js b/web/amCharts/scatter/chart_0060_scatter.inline03.js new file mode 100644 index 0000000000000000000000000000000000000000..c27a274e7972e9ecbd57d20b441e60fc864ffc7d --- /dev/null +++ b/web/amCharts/scatter/chart_0060_scatter.inline03.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=Animated.js.map diff --git a/web/amCharts/scatter/chart_0061_scatter.html b/web/amCharts/scatter/chart_0061_scatter.html new file mode 100644 index 0000000000000000000000000000000000000000..47b670ef3a098d49bce92315ad5e0d5e0282d965 --- /dev/null +++ b/web/amCharts/scatter/chart_0061_scatter.html @@ -0,0 +1,842 @@ + + + + + + Bubble-Based Heat Map + + + +
+ + + + + + diff --git a/web/amCharts/scatter/chart_0061_scatter.inline01.js b/web/amCharts/scatter/chart_0061_scatter.inline01.js new file mode 100644 index 0000000000000000000000000000000000000000..3fe3e3caca2e468e70f044c7aaeaa49dfcb8d974 --- /dev/null +++ b/web/amCharts/scatter/chart_0061_scatter.inline01.js @@ -0,0 +1,2 @@ +!function(){var t,e,i,s,n,r={3145:function(t,e,i){"use strict";i.d(e,{UZ:function(){return r},cP:function(){return n},f_:function(){return o},i_:function(){return s}});const s=new class{constructor(){this.version="5.16.0",this.licenses=[],this.entitiesById={},this.rootElements=[],this.autoDispose=!1}};function n(t){s.licenses.push(t)}function r(){let t;for(;t=s.rootElements.pop();)t.dispose()}function o(t){let e;return s.rootElements.forEach((i=>{i.dom.id==t&&(e=i)})),e}},2855:function(t,e,i){"use strict";i.d(e,{f:function(){return F}});var s=i(6490),n=i(8777),r=i(2036),o=i(4431),a=i(1706),h=i(6881),l=i(7449),c=i(5071),u=i(7652);class d{constructor(){this._targets=[],this._observer=new ResizeObserver((t=>{c.each(t,(t=>{c.each(this._targets,(e=>{e.target===t.target&&e.callback()}))}))}))}addTarget(t,e){this._observer.observe(t,{box:"border-box"}),this._targets.push({target:t,callback:e})}removeTarget(t){this._observer.unobserve(t),c.keepIf(this._targets,(e=>e.target!==t))}}class p{constructor(){this._timer=null,this._targets=[]}addTarget(t,e){if(null===this._timer){let t=null;const e=()=>{const i=Date.now();(null===t||i>t+p.delay)&&(t=i,c.each(this._targets,(t=>{let e=t.target.getBoundingClientRect();e.width===t.size.width&&e.height===t.size.height||(t.size=e,t.callback())}))),0===this._targets.length?this._timer=null:this._timer=requestAnimationFrame(e)};this._timer=requestAnimationFrame(e)}this._targets.push({target:t,callback:e,size:{width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0}})}removeTarget(t){c.keepIf(this._targets,(e=>e.target!==t)),0===this._targets.length&&null!==this._timer&&(cancelAnimationFrame(this._timer),this._timer=null)}}p.delay=200;let g=null;class f{constructor(t,e){this._disposed=!1,this._sensor=(null===g&&(g="undefined"!=typeof ResizeObserver?new d:new p),g),this._element=t,this._listener=u.onZoom(e),this._sensor.addTarget(t,e)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}var _=i(9821),m=i(1479),y=i(7142),v=i(2876),w=i(780),b=i(6460),x=i(798),D=i(6331),k=i(256),T=i(3100);class M extends D.JH{_setDefaults(){this.setPrivate("defaultLocale",T.Z),super._setDefaults()}translate(t,e,...i){e||(e=this._root.locale||this.getPrivate("defaultLocale"));let s=t,n=e[t];if(null===n)s="";else if(null!=n)n&&(s=n);else if(e!==this.getPrivate("defaultLocale"))return this.translate(t,this.getPrivate("defaultLocale"),...i);if(i.length)for(let t=i.length,e=0;e{this.setTranslationAny(t,i,e)}))}translateEmpty(t,e,...i){let s=this.translate(t,e,...i);return s==t?"":s}translateFunc(t,e){return this._root.locale[t]?this._root.locale[t]:e!==this.getPrivate("defaultLocale")?this.translateFunc(t,this.getPrivate("defaultLocale")):()=>""}translateAll(t,e){return this.isDefault()?t:c.map(t,(t=>this.translate(t,e)))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}var E=i(9770),O=i(3783),P=i(4102),S=i(6245),N=i(1112),C=i(2132),L=i(3145),A=i(3540),R=i(5040),U=i(9395);function B(t,e){null==t?requestAnimationFrame(e):setTimeout((()=>{requestAnimationFrame(e)}),1e3/t)}class F{constructor(t,e={},i){if(this._isDirty=!1,this._isDirtyParents=!1,this._isDirtyAnimation=!1,this._dirty={},this._dirtyParents={},this._dirtyBounds={},this._dirtyPositions={},this._ticker=null,this._tickers=[],this._updateTick=!0,this.skipRenderFrame=!1,this.events=new E.p,this.animationTime=null,this._animations=[],this.language=M.new(this,{}),this.locale=T.Z,this.utc=!1,this.numberFormatter=w.e.new(this,{}),this.dateFormatter=b.C.new(this,{}),this.durationFormatter=x.$.new(this,{}),this.tabindex=0,this._tabindexes=[],this._a11yD=!1,this._focusElementDirty=!1,this._skipNextGroupJump=!0,this.verticalLayout=a.Z.new(this,{}),this.horizontalLayout=o.G.new(this,{}),this.gridLayout=h.M.new(this,{}),this._paused=!1,this.autoResize=!0,this._fontHash="",this._isDisposed=!1,this._disposers=[],this._tooltips=[],this._htmlEnabledContainers=[],this.entitiesById={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");let s,n;if(this._settings=e,0==e.accessible&&(this._a11yD=!0),null==e.useSafeResolution&&(e.useSafeResolution=!0),e.useSafeResolution&&(s=u.getSafeResolution()),this._renderer=new P.uK(s),n=t instanceof HTMLElement?t:document.getElementById(t),c.each(L.i_.rootElements,(t=>{if(t.dom===n){if(!L.i_.autoDispose)throw new Error("You cannot have multiple Roots on the same DOM node");t.dispose()}})),this.interfaceColors=_.v.new(this,{}),null===n)throw new Error("Could not find HTML element with id `"+t+"`");this.dom=n;let r=document.createElement("div");r.style.position="relative",r.style.width="100%",r.style.height="100%",n.appendChild(r);const l=e.tooltipContainerBounds;l&&(this._tooltipContainerSettings=l),this._inner=r,this._updateComputedStyles(),L.i_.rootElements.push(this)}static new(t,e){const i=new F(t,e,!0);return i._init(),i}moveDOM(t){let e;if(e=t instanceof HTMLElement?t:document.getElementById(t),e){for(;this.dom.childNodes.length>0;)e.appendChild(this.dom.childNodes[0]);this.dom=e,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const t=this.dom.offsetWidth,e=this.dom.offsetHeight;t<=150||e<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const t=this.tooltipContainer.children.push(n.W.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:(0,S.aQ)(100),centerY:S.AQ,tooltipY:10,tooltipText:"Created using amCharts 5",tooltipX:S.AQ,cursorOverStyle:"pointer",background:y.A.new(this,{fill:(0,N.$_)(4671320),fillOpacity:0,tooltipY:5})}));t.set("tooltip",this.systemTooltip),t.events.on("click",(()=>{window.open("https://www.amcharts.com/","_blank")})),t.states.create("hover",{});const e=t.children.push(m.T.new(this,{stroke:(0,N.$_)(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6",dx:-50,strokeOpacity:0}));e.states.create("hover",{stroke:(0,N.$_)(3976191)});const i=t.children.push(m.T.new(this,{stroke:(0,N.$_)(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0",dx:50,strokeOpacity:0})),s=U.out(U.cubic),r=1500;t.setTimeout((()=>{i.animate({key:"strokeOpacity",to:1,duration:r,easing:s}),i.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"strokeOpacity",to:1,duration:r,easing:s})}),3e3),i.states.create("hover",{stroke:(0,N.$_)(4671320)}),this._logo=t,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(t){return this._settings.calculateSize?this._settings.calculateSize(t):{width:t.width,height:t.height}}_init(){const t=this._settings;!1!==t.accessible&&(t.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),t.ariaLabel&&this._inner.setAttribute("aria-label",t.ariaLabel),t.role&&this._inner.setAttribute("role",t.role));const e=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),r=Math.floor(s.width),o=Math.floor(s.height),a=Math.floor(i.width),h=Math.floor(i.height),l=n.W.new(this,{visible:!0,width:r,height:o});this._rootContainer=l,this._rootContainer._defaultThemes.push(O.X.new(this));const c=l.children.push(n.W.new(this,{visible:!0,width:S.AQ,height:S.AQ}));this.container=c,e.resize(a,h,r,o),this._inner.appendChild(e.view),this._initResizeSensor();const d=document.createElement("div");if(this._htmlElementContainer=d,d.className="am5-html-container",d.style.position="absolute",d.style.pointerEvents="none",this._tooltipContainerSettings||(d.style.overflow="hidden"),this._inner.appendChild(d),!0!==this._a11yD){const t=document.createElement("div");t.className="am5-reader-container",t.setAttribute("role","alert"),t.style.position="absolute",t.style.width="1px",t.style.height="1px",t.style.overflow="hidden",t.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=t,this._inner.appendChild(this._readerAlertElement);const i=document.createElement("div");i.className="am5-focus-container",i.style.position="absolute",i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.width=r+"px",i.style.height=o+"px",i.setAttribute("role","graphics-document"),u.setInteractive(i,!1),this._focusElementContainer=i,this._inner.appendChild(this._focusElementContainer);const s=document.createElement("div");this._tooltipElementContainer=s,s.className="am5-tooltip-container",this._inner.appendChild(s),u.supports("keyboardevents")&&(this._disposers.push(u.addEventListener(window,"keydown",(t=>{const e=u.getEventKey(t);"Shift"==e?this._isShift=!0:"Tab"==e&&(this._isShift=t.shiftKey)}))),this._disposers.push(u.addEventListener(window,"keyup",(t=>{"Shift"==u.getEventKey(t)&&(this._isShift=!1)}))),this._disposers.push(u.addEventListener(i,"click",(()=>{const t=this._focusedSprite;if(t){const i=t.get("clickAnnounceText","");""!==i&&this.readerAlert(i);const s=e.getEvent(new MouseEvent("click"));t.events.dispatch("click",{type:"click",originalEvent:s.event,point:s.point,simulated:!0,target:t})}}))),this._disposers.push(u.addEventListener(i,"keydown",(t=>{const i=this._focusedSprite;if(i){"Escape"==t.key&&(u.blur(),this._focusedSprite=void 0);let s=0,n=0;const r=u.getEventKey(t);switch(r){case"Enter":case" ":const o=i.get("clickAnnounceText","");if(""!==o&&this.readerAlert(o)," "==r&&"checkbox"!=i.get("role"))return;t.preventDefault();const a=e.getEvent(new MouseEvent("mouse"));return void i.events.dispatch("click",{type:"click",originalEvent:a.event,point:a.point,simulated:!0,target:i});case"ArrowLeft":s=-6;break;case"ArrowRight":s=6;break;case"ArrowUp":n=-6;break;case"ArrowDown":n=6;break;default:return}if(0!=s||0!=n){if(t.preventDefault(),!i.isDragging()){this._keyboardDragPoint={x:0,y:0};const t=e.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));t.point={x:0,y:0},i.events.isEnabled("pointerdown")&&i.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:t.event,point:t.point,simulated:!0,target:i})}const r=this._keyboardDragPoint;r.x+=s,r.y+=n;const o=e.getEvent(new MouseEvent("mousemove",{clientX:r.x,clientY:r.y}),!1);i.events.isEnabled("globalpointermove")&&i.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:o.event,point:o.point,simulated:!0,target:i})}}}))),this._disposers.push(u.addEventListener(i,"keyup",(t=>{if(this._focusedSprite){const i=this._focusedSprite,s=u.getEventKey(t);switch(s){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(i.isDragging()){const t=this._keyboardDragPoint,s=e.getEvent(new MouseEvent("mouseup",{clientX:t.x,clientY:t.y}));return i.events.isEnabled("globalpointerup")&&i.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:s.event,point:s.point,simulated:!0,target:i}),void(this._keyboardDragPoint=void 0)}if(i.get("focusableGroup")){const t=i.get("focusableGroup"),e=this._tabindexes.filter((e=>!(e.get("focusableGroup")!=t||!1===e.getPrivate("focusable")||!e.isVisibleDeep())));let n=e.indexOf(i);const r=e.length-1;n+="ArrowRight"==s||"ArrowDown"==s?1:-1,n<0?n=r:n>r&&(n=0),u.focus(e[n].getPrivate("focusElement").dom)}break;case"Tab":const t=i.get("focusableGroup");if(t&&this._isShift)return void(this._skipNextGroupJump||(this._focusNext(i.getPrivate("focusElement").dom,-1,t),this._skipNextGroupJump=!0))}}}))))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}get systemTooltip(){if(!this._systemTooltip){const t=v.u.new(this,{themeTags:["system"]});this._systemTooltip=t}return this._systemTooltip}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new f(this.dom,(()=>{this.autoResize&&this.resize()})),this._disposers.push(this._resizeSensorDisposer)}resize(){const t=this._getRealSize(),e=this._getCalculatedSize(t),i=Math.floor(e.width),s=Math.floor(e.height);if(i>0&&s>0){const e=Math.floor(t.width),n=Math.floor(t.height),r=this._htmlElementContainer;if(r.style.width=i+"px",r.style.height=s+"px",!0!==this._a11yD){const t=this._focusElementContainer;t.style.width=i+"px",t.style.height=s+"px"}this._renderer.resize(e,n,i,s);const o=this._rootContainer;o.setPrivate("width",i),o.setPrivate("height",s),this._render(),this._handleLogo()}}_render(){this.skipRenderFrame?this.skipRenderFrame=!1:(this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1))}_runTickers(t){c.each(this._tickers,(e=>{e(t)}))}_runAnimations(t){let e=0;return c.keepIf(this._animations,(i=>{const n=i._runAnimation(t);return n!==s.SR.Stopped&&(n!==s.SR.Playing||(++e,!0))})),this._isDirtyAnimation=!1,0===e}_runDirties(){let t={};for(;this._isDirtyParents;)this._isDirtyParents=!1,k.entries(this._dirtyParents).forEach((([e,i])=>{delete this._dirtyParents[e],i.isDisposed()||(t[i.uid]=i,i._prepareChildren())}));k.entries(t).forEach((([t,e])=>{e._updateChildren()}));const e=[];k.entries(this._dirty).forEach((([t,i])=>{i.isDisposed()?delete this._dirty[t]:(e.push(i),i._beforeChanged())})),e.forEach((t=>{t._changed(),delete this._dirty[t.uid],t._clearDirty()})),this._isDirty=!1;const i={},s=[];k.entries(this._dirtyBounds).forEach((([t,e])=>{delete this._dirtyBounds[t],e.isDisposed()||(i[e.uid]=e.depth(),s.push(e))})),this._positionHTMLElements(),s.sort(((t,e)=>A.qu(i[e.uid],i[t.uid]))),s.forEach((t=>{t._updateBounds()}));const n=this._dirtyPositions;k.entries(n).forEach((([t,e])=>{delete n[t],e.isDisposed()||e._updatePosition()})),e.forEach((t=>{t._afterChanged()})),k.entries(t).forEach((([t,e])=>{e._childrenPrep=!1,e._childrenUpdt=!1}))}_renderFrame(t){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:t}),this._checkComputedStyles(),this._runTickers(t);const e=this._runAnimations(t);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:t}),0===this._tickers.length&&e&&!this._isDirtyAnimation&&!this._isDirty}return!0}_runTicker(t,e){this.isDisposed()||(this.animationTime=t,this._renderFrame(t)?(this._ticker=null,this.animationTime=null):this._paused||(e?this._ticker:B(this.fps,this._ticker)))}_runTickerNow(t=1e4){if(!this.isDisposed()){const e=performance.now()+t;for(;;){const t=performance.now();if(t>=e){this.animationTime=null;break}if(this.animationTime=t,this._renderFrame(t)){this.animationTime=null;break}}}}_startTicker(){null===this._ticker&&(this.animationTime=null,this._ticker=t=>{this._runTicker(t)},B(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(t){this._updateTick=t,t&&this._startTicker()}_addDirtyEntity(t){this._isDirty=!0,void 0===this._dirty[t.uid]&&(this._dirty[t.uid]=t),this._startTicker()}_addDirtyParent(t){this._isDirty=!0,this._isDirtyParents=!0,void 0===this._dirtyParents[t.uid]&&(this._dirtyParents[t.uid]=t),this._startTicker()}_addDirtyBounds(t){this._isDirty=!0,void 0===this._dirtyBounds[t.uid]&&(this._dirtyBounds[t.uid]=t),this._startTicker()}_addDirtyPosition(t){this._isDirty=!0,void 0===this._dirtyPositions[t.uid]&&(this._dirtyPositions[t.uid]=t),this._startTicker()}_addAnimation(t){this._isDirtyAnimation=!0,-1===this._animations.indexOf(t)&&this._animations.push(t),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",(()=>{this._isDirty=!0,this._startTicker()}))}eachFrame(t){return this._tickers.push(t),this._startTicker(),new l.ku((()=>{c.removeFirst(this._tickers,t)}))}markDirtyGlobal(t){t||(t=this.container),t.walkChildren((t=>{t instanceof n.W&&this.markDirtyGlobal(t),t.markDirty(),t.markDirtyBounds()}))}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),c.each(this._disposers,(t=>{t.dispose()})),this._inner&&u.removeElement(this._inner),c.remove(L.i_.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(t){if(!0!==this._a11yD){const e=this._readerAlertElement;t=u.stripTags(t),e.innerHTML==t&&(e.innerHTML=""),e.innerHTML=t}}setThemes(t){this._rootContainer.set("themes",t);const e=this.tooltipContainer;e&&e._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const t=this._tooltipContainerSettings,e=this._rootContainer.children.push(n.W.new(this,{position:"absolute",isMeasured:!1,width:S.AQ,height:S.AQ,layer:t?35:30,layerMargin:t||void 0}));this.tooltipContainer=e;const i=v.u.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(t){1!=this._a11yD&&(t.get("focusable")?c.pushOne(this._tabindexes,t):c.remove(this._tabindexes,t),this._invalidateTabindexes())}_unregisterTabindexOrder(t){1!=this._a11yD&&(c.remove(this._tabindexes,t),this._invalidateTabindexes())}_invalidateTabindexes(){if(1==this._a11yD)return;this._tabindexes.sort(((t,e)=>{const i=t.get("tabindexOrder",0),s=e.get("tabindexOrder",0);return i==s?0:i>s?1:-1}));const t=[];c.each(this._tabindexes,((e,i)=>{e.getPrivate("focusElement")?this._moveFocusElement(i,e):this._makeFocusElement(i,e);const s=e.get("focusableGroup");s&&!1!==e.getPrivate("focusable")&&(-1!==t.indexOf(s)?e.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):t.push(s))}))}_updateCurrentFocus(){1!=this._a11yD&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(t,e){if(1==this._a11yD)return;if(e||(e=t.getPrivate("focusElement").dom),!e)return;const i=t.get("role");i?e.setAttribute("role",i):e.removeAttribute("role");const s=t.get("ariaLabel");if(s){const i=(0,C.q)(t,s);e.setAttribute("aria-label",i)}else e.removeAttribute("aria-label");const n=t.get("ariaLive");n?e.setAttribute("aria-live",n):e.removeAttribute("aria-live");const r=t.get("ariaChecked");null!=r&&i&&-1!==["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)?e.setAttribute("aria-checked",r?"true":"false"):e.removeAttribute("aria-checked");const o=t.get("ariaCurrent");null!=o?e.setAttribute("aria-current",o):e.removeAttribute("aria-current");const a=t.get("ariaSelected");null!=a&&i&&-1!==["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)?e.setAttribute("aria-selected",a?"true":"false"):e.removeAttribute("aria-selected"),t.get("ariaHidden")?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden");const h=t.get("ariaOrientation");h?e.setAttribute("aria-orientation",h):e.removeAttribute("aria-orientation");const l=t.get("ariaValueNow");l?e.setAttribute("aria-valuenow",l):e.removeAttribute("aria-valuenow");const c=t.get("ariaValueMin");c?e.setAttribute("aria-valuemin",c):e.removeAttribute("aria-valuemin");const u=t.get("ariaValueMax");u?e.setAttribute("aria-valuemax",u):e.removeAttribute("aria-valuemax");const d=t.get("ariaValueText");d?e.setAttribute("aria-valuetext",d):e.removeAttribute("aria-valuetext");const p=t.get("ariaControls");p?e.setAttribute("aria-controls",p):e.removeAttribute("aria-controls"),t.get("visible")&&0!==t.get("opacity")&&"tooltip"!=t.get("role")&&!t.isHidden()&&!1!==t.getPrivate("focusable")&&(t.height()||t.width())?("-1"!=e.getAttribute("tabindex")&&e.setAttribute("tabindex",""+this.tabindex),e.removeAttribute("aria-hidden")):(e.removeAttribute("tabindex"),e.setAttribute("aria-hidden","true"))}_makeFocusElement(t,e){if(e.getPrivate("focusElement")||1==this._a11yD)return;const i=document.createElement("div");"tooltip"!=e.get("role")&&(i.tabIndex=this.tabindex),i.style.position="absolute",u.setInteractive(i,!1);const s=[];e.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(e),s.push(u.addEventListener(i,"focus",(t=>{this._handleFocus(t)}))),s.push(u.addEventListener(i,"blur",(t=>{this._handleBlur(t)}))),this._moveFocusElement(t,e)}_removeFocusElement(t){if(1==this._a11yD)return;c.remove(this._tabindexes,t);const e=t.getPrivate("focusElement");e&&(this._focusElementContainer.removeChild(e.dom),c.each(e.disposers,(t=>{t.dispose()})))}_hideFocusElement(t){1!=this._a11yD&&(t.getPrivate("focusElement").dom.style.display="none")}_moveFocusElement(t,e){if(1==this._a11yD)return;const i=this._focusElementContainer,s=e.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[t])return;const n=this._focusElementContainer.children[t+1];n?i.insertBefore(s,n):i.append(s)}_positionFocusElement(t){if(1==this._a11yD||null==t)return;this._focusElementContainer.scrollTop=0;const e=t.globalBounds();let i=e.right==e.left?t.width():e.right-e.left,s=e.top==e.bottom?t.height():e.bottom-e.top;const n=void 0!==this._settings.focusPadding?this._settings.focusPadding:2;let r=e.left-n,o=e.top-n;i<0&&(r+=i,i=Math.abs(i)),s<0&&(o+=s,s=Math.abs(s));const a=t.getPrivate("focusElement").dom;a.style.top=o+"px",a.style.left=r+"px",a.style.width=i+2*n+"px",a.style.height=s+2*n+"px"}_getSpriteByFocusElement(t){let e;return c.eachContinue(this._tabindexes,((i,s)=>i.getPrivate("focusElement").dom!==t||(e=i,!1))),e}_handleFocus(t){if(1==this._a11yD)return;const e=this._getSpriteByFocusElement(t.target);e&&(e.isVisibleDeep()?(this._positionFocusElement(e),this._focusedSprite=e,e.events.isEnabled("focus")&&e.events.dispatch("focus",{type:"focus",originalEvent:t,target:e}),-1==e.getPrivate("focusElement").dom.tabIndex&&(this._skipNextGroupJump=!1)):this._focusNext(t.target,this._isShift?-1:1))}_focusNext(t,e,i){if(1==this._a11yD)return;const s=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(",")));let n=s.indexOf(t)+e;n<0?n=s.length-1:n>=s.length&&(n=0);const r=s[n];if(i&&-1==e){const t=this._getSpriteByFocusElement(r);if(t&&t.get("focusableGroup")==i)return void this._focusNext(r,e)}r.focus()}_handleBlur(t){if(1==this._a11yD)return;const e=this._focusedSprite;e&&!e.isDisposed()&&e.events.isEnabled("blur")&&e.events.dispatch("blur",{type:"blur",originalEvent:t,target:e}),this._focusedSprite=void 0}updateTooltip(t){if(1==this._a11yD)return;const e=u.stripTags(t._getText());let i=t.getPrivate("tooltipElement");"tooltip"==t.get("role")&&""!=e?(i||(i=this._makeTooltipElement(t)),i.innerHTML!=e&&(i.innerHTML=e),i.setAttribute("aria-hidden",t.isVisibleDeep()?"false":"true")):i&&(i.remove(),t.removePrivate("tooltipElement"))}_makeTooltipElement(t){const e=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",u.setInteractive(i,!1),this._decorateFocusElement(t,i),e.append(i),t.setPrivate("tooltipElement",i),i}_removeTooltipElement(t){if(1==this._a11yD)return;const e=t.getPrivate("tooltipElement");if(e){const t=e.parentElement;t&&t.removeChild(e)}}_invalidateAccessibility(t){if(1==this._a11yD)return;this._focusElementDirty=!0;const e=t.getPrivate("focusElement");t.get("focusable")?e&&(this._decorateFocusElement(t),this._positionFocusElement(t)):e&&this._removeFocusElement(t)}focused(t){return this._focusedSprite===t}documentPointToRoot(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:(t.x-e.left)*s,y:(t.y-e.top)*n}}rootPointToDocument(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:t.x/s+e.left,y:t.y/n+e.top}}addDisposer(t){return this._disposers.push(t),t}_updateComputedStyles(){const t=window.getComputedStyle(this.dom);let e="";k.each(t,((t,i)=>{R.isString(t)&&t.match(/^font/)&&(e+=i)}));const i=e!=this._fontHash;return i&&(this._fontHash=e),i}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(t){t instanceof n.W?t.children.each((t=>{this._invalidateLabelBounds(t)})):t instanceof r.x&&t.markDirtyBounds()}_hasLicense(){for(let t=0;t{if(t.get("verticalScrollbar"))return r=!0,s=t,!1})),r&&(n=document.createElement("div"),t.setPrivate("htmlElementWrapper",n),t.setPrivate("wrapperContainer",s),n.style.position="absolute",n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",s.events.on("boundschanged",(()=>{this._positionHTMLElement(t)}))),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",u.setInteractive(i,t.get("interactive",!1)),t.events.isEnabled("click")&&(u.setInteractive(i,!0),this._disposers.push(u.addEventListener(i,"click",(e=>{const i=this._renderer.getEvent(e);t.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))),this._positionHTMLElement(t),r?(n.append(i),e.append(n)):e.append(i),c.pushOne(this._htmlEnabledContainers,t),i}_positionHTMLElements(){c.each(this._htmlEnabledContainers,(t=>{this._positionHTMLElement(t)}))}_positionHTMLElement(t){const e=t.getPrivate("htmlElementWrapper");if(e){const i=t.getPrivate("wrapperContainer");if(i){const t=i.globalBounds();e.style.clipPath="rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"}}const i=t.getPrivate("htmlElement");if(i){const e=["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"];c.each(e,(e=>{const s=t.get(e);i.style[e]=s?s+"px":""}));const s=["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"];c.each(s,(e=>{const s=t.get(e);s?"fontSize"!=e||R.isString(s)?i.style[e]=s+"":i.style[e]=s+"px":i.style[e]=""}));const n=t.compositeScale()||1,r=t.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";const o=t.compositeOpacity();setTimeout((()=>{i.style.opacity=o+""}),10);const a=t.isVisibleDeep();a&&(i.style.display="block");let h={x:t.x()+t.get("dx",0),y:t.y()+t.get("dy",0)};t.parent&&(h=t.parent.toGlobal(h)),i.style.top=h.y+"px",i.style.left=h.x+"px";const l=t.get("width"),u=t.get("height");let d=0,p=0;if(l&&(d=t.width()),u&&(p=t.height()),!l||!u){i.style.position="fixed",i.style.width="",i.style.height="";const e=i.getBoundingClientRect();i.style.position="absolute",l||(d=e.width),u||(p=e.height);let s=d/n,r=p/n,o=t.get("centerX",0),a=t.get("centerY",0),h=0,c=0,g=0,f=0;o instanceof S.gG?(h=-o.value*s,c=(1-o.value)*s):(h=-o,c=s-o),a instanceof S.gG?(g=-a.value*r,f=(1-a.value)*r):(g=-a,f=r-a),t._localBounds={left:h,right:c,top:g,bottom:f};let _=t._adjustedLocalBounds,m=t._display.getAdjustedBounds(t._localBounds);t._adjustedLocalBounds=m,_.left===m.left&&_.right===m.right&&_.top===m.top&&_.bottom===m.bottom||t.markDirtyBounds()}d>0&&(i.style.minWidth=d+"px"),p>0&&(i.style.minHeight=p+"px"),a&&0!=o||(i.style.display="none");const g=t.get("centerX",0),f=(0,S.hU)(g)?g.percent+"%":g+"px",_=t.get("centerY",0),m=(0,S.hU)(_)?_.percent+"%":_+"px";(g||_)&&(i.style.transform="translate(-"+f+", -"+m+")"+i.style.transform),1!=n&&(i.style.transform+="scale("+n+")"),0!=r&&(i.style.transform+=" rotate("+r+"deg)"),""!=i.style.transform&&(i.style.transformOrigin=f+" "+m)}}_setHTMLContent(t,e){let i=t.getPrivate("htmlElement");i||(i=this._makeHTMLElement(t),this.autoResize||this.resize()),i.innerHTML!=e&&(i.innerHTML=e)}_removeHTMLContent(t){const e=t.getPrivate("htmlElementWrapper"),i=t.getPrivate("htmlElement");e?(this._htmlElementContainer.removeChild(e),t.removePrivate("htmlElement"),t.removePrivate("htmlElementWrapper"),t.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),t.removePrivate("htmlElement"),t.removePrivate("wrapperContainer")),c.remove(this._htmlEnabledContainers,t)}}},3409:function(t,e,i){"use strict";i.d(e,{Q:function(){return o}});var s=i(5769),n=i(3540),r=i(5071);class o{constructor(t,e){if(this._rules={},this._root=t,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(t){const e=new this(t,!0);return e.setupDefaultRules(),e}setupDefaultRules(){}_lookupRules(t){return this._rules[t]}ruleRaw(t,e=[]){let i=this._rules[t];i||(i=this._rules[t]=[]),e.sort(n.qu);const{index:o,found:a}=r.getSortedIndex(i,(t=>{const i=n.qu(t.tags.length,e.length);return 0===i?n.wq(t.tags,e,n.qu):i}));if(a)return i[o].template;{const t=s.YS.new({});return i.splice(o,0,{tags:e,template:t}),t}}rule(t,e=[]){return this.ruleRaw(t,e)}}},5108:function(t,e,i){"use strict";i.d(e,{g:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){const t=this.get("sprite");t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}}n.className="Bullet",n.classNames=s.JH.classNames.concat([n.className])},8054:function(t,e,i){"use strict";i.d(e,{z:function(){return o}});var s=i(3497),n=i(8777),r=i(7652);class o extends n.W{_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",s.c.new(this._root,{themeTags:r.mergeTags(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const t=this._prevSettings.icon,e=this.get("icon");e!==t&&(this._disposeProperty("icon"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.icon=e)}if(this.isDirty("label")){const t=this._prevSettings.label,e=this.get("label");e!==t&&(this._disposeProperty("label"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.label=e)}}}o.className="Button",o.classNames=n.W.classNames.concat([o.className])},1337:function(t,e,i){"use strict";i.d(e,{k:function(){return r}});var s=i(8777),n=i(6245);class r extends s.W{constructor(){super(...arguments),this.chartContainer=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,interactiveChildren:!1})),this.bulletsContainer=s.W.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:n.AQ,height:n.AQ})}}r.className="Chart",r.classNames=s.W.classNames.concat([r.className])},8035:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,Math.abs(this.get("radius",10)))}}n.className="Circle",n.classNames=s.T.classNames.concat([n.className])},9361:function(t,e,i){"use strict";i.d(e,{w:function(){return c},z:function(){return l}});var s=i(7582),n=i(6331),r=i(8777),o=i(9582),a=i(5071),h=i(256);class l extends n.Zr{constructor(t,e,i){super(i),this.dataContext=e,this.component=t,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(t){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,t)}hide(t){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,t)}isHidden(){return!this.get("visible")}}class c extends r.W{constructor(){super(...arguments),this._data=new o.k,this._dataItems=[],this._mainDataItems=this._dataItems,this.valueFields=[],this.fields=["id"],this._valuesDirty=!1,this._dataChanged=!1,this._dataGrouped=!1,this.inited=!1}set data(t){t.incrementRef(),this._data.decrementRef(),this._data=t}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((t=>{const e=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===t.type)a.each(e,(t=>{t.dispose()})),e.length=0,this._onDataClear();else if("push"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.push(i),this.processDataItem(i)}else if("setIndex"===t.type){const i=e[t.index],s=this._makeDataItem(t.newValue);i.bullets&&0==i.bullets.length&&(i.bullets=void 0),h.entries(s).forEach((([t,e])=>{i.get(t)!=e&&i.animate({key:t,to:e,duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})})),i.dataContext=t.newValue}else if("insertIndex"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.splice(t.index,0,i),this.processDataItem(i)}else if("removeIndex"===t.type)e[t.index].dispose(),e.splice(t.index,1);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");{const i=e[t.oldIndex];e.splice(t.oldIndex,1),e.splice(t.newIndex,0,i)}}this._afterDataChange()})))}_postUpdateData(){}updateData(t){let e=0;a.each(t,((t,i)=>{const s=this.dataItems[i];if(s){const e=s.dataContext;e&&h.entries(t).forEach((([t,i])=>{e[t]=i}));const i=this._makeDataItem(e);h.entries(i).forEach((([t,e])=>{var i;if(s.get(t)!=e){s.set(t,e);const n=null===(i=this._valueFieldsF[t])||void 0===i?void 0:i.workingKey;n&&s.set(n,e)}}))}else this.data.push(t);e=i}));for(let t=this.dataItems.length-1;t>e;t--){const e=this.dataItems[t];a.remove(this.dataItems,e),e.dispose()}this._postUpdateData()}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},a.each(this.valueFields,(t=>{this.get(t+"Field")&&(this._valueFields.push(t),this._valueFieldsF[t]={fieldKey:t+"Field",workingKey:t+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},a.each(this.fields,(t=>{this.get(t+"Field")&&(this._fields.push(t),this._fieldsF[t]=t+"Field")})))}get dataItems(){return this._dataItems}processDataItem(t){}_makeDataItem(t){const e={};return this._valueFields&&a.each(this._valueFields,(i=>{const s=this.get(this._valueFieldsF[i].fieldKey);e[i]=t[s],e[this._valueFieldsF[i].workingKey]=e[i]})),this._fields&&a.each(this._fields,(i=>{const s=this.get(this._fieldsF[i]);e[i]=t[s]})),e}makeDataItem(t,e){let i=new l(this,e,t);return this.processDataItem(i),i}pushDataItem(t,e){const i=this.makeDataItem(t,e);return this._mainDataItems.push(i),i}disposeDataItem(t){}showDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!0)}))}hideDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const t="datavalidated";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this._dataChanged=!1}if(this._valuesDirty){const t="valueschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.inited=!0}markDirtyValues(t){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}getDataItemById(t){return a.find(this.dataItems,(e=>e.get("id")==t))}}c.className="Component",c.classNames=r.W.classNames.concat([c.className])},2936:function(t,e,i){"use strict";i.d(e,{p:function(){return r}});var s=i(8054),n=i(7652);class r extends s.z{_afterNew(){super._afterNew(),this.addTag("confirm"),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{const e=n.getEventKey(t);this.get("active")&&"Escape"==e&&this._cancel()}))),this._disposers.push(n.addEventListener(document,"click",(()=>{this._ignoreClick||this._cancel(),this._ignoreClick=!1}))),this.events.on("click",(()=>{this.get("active")||(this._ignoreClick=!0),this._confirm()}))}_cancel(){this.get("active")&&(this.events.dispatch("cancelled",{type:"cancelled",target:this}),this.set("active",!1))}_confirm(){this.get("active")&&(this.events.dispatch("confirmed",{type:"confirmed",target:this}),this.set("active",!1),this.isFocus()&&this.setTimeout((()=>{this.set("active",!1),n.blur()}),10))}_prepareChildren(){super._prepareChildren()}}r.className="ConfirmButton",r.classNames=s.z.classNames.concat([r.className])},8777:function(t,e,i){"use strict";i.d(e,{W:function(){return f}});var s=i(7144),n=i(5071);class r extends s.aV{constructor(t){super(),this._disposed=!1,this._container=t,this._events=this.events.onAll((t=>{if("clear"===t.type)n.each(t.oldValues,(t=>{this._onRemoved(t)}));else if("push"===t.type)this._onInserted(t.newValue);else if("setIndex"===t.type)this._onRemoved(t.oldValue),this._onInserted(t.newValue,t.index);else if("insertIndex"===t.type)this._onInserted(t.newValue,t.index);else if("removeIndex"===t.type)this._onRemoved(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");this._onRemoved(t.value),this._onInserted(t.value,t.newIndex)}}))}_onInserted(t,e){t._setParent(this._container,!0);const i=this._container._childrenDisplay;void 0===e?i.addChild(t._display):i.addChildAt(t._display,e)}_onRemoved(t){this._container._childrenDisplay.removeChild(t._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),n.each(this.values,(t=>{t.dispose()})))}}var o=i(6245),a=i(4596),h=i(7142),l=i(4431),c=i(1706),u=i(6881),d=i(2132),p=i(5040),g=i(7652);class f extends a.j{constructor(){super(...arguments),this._display=this._root._renderer.makeContainer(),this._childrenDisplay=this._root._renderer.makeContainer(),this.children=new r(this),this._percentageSizeChildren=[],this._percentagePositionChildren=[],this._prevWidth=0,this._prevHeight=0,this._contentWidth=0,this._contentHeight=0,this._childrenPrep=!1,this._childrenUpdt=!1}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){n.eachReverse(this.allChildren(),(t=>{t.dispose()})),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_beforeChanged(){this._childrenPrep||this._prepareChildren(),this._childrenUpdt||this._updateChildren(),super._beforeChanged()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each((t=>{t.removePrivate("x"),t.removePrivate("y")}))),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each((t=>{t.markDirtyPosition()})),this.isDirty("maskContent")){const t=this._childrenDisplay;let e=this._contentMask;this.get("maskContent")?e||(e=h.A.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=e,t.addChildAt(e._display,0),t.mask=e._display):e&&(t.removeChild(e._display),t.mask=null,e.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),n.each(this._percentageSizeChildren,(t=>{t._updateSize()})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t._updateSize()})),this.updateBackground()}updateBackground(){const t=this.get("background");let e=this._localBounds;if(e&&!this.isHidden()){let i=e.left,s=e.top,n=e.right-i,r=e.bottom-s,o=this.get("maxWidth"),a=this.get("maxHeight");a&&r>a&&(r=a),o&&n>o&&(n=o);let h=this.width(),l=this.height();t&&(t.setAll({width:n,height:r,x:i,y:s}),this._display.interactive&&(t._display.interactive=!0));const c=this._contentMask;c&&c.setAll({width:h+1,height:l+1});const u=this.get("verticalScrollbar");if(u){u.set("height",l),u.set("x",h-u.width()-u.get("marginRight",0)),u.set("end",u.get("start",0)+l/this._contentHeight);const t=u.get("background");t&&t.setAll({width:u.width(),height:l});let e=!0;this._contentHeight<=l&&(e=!1),u.setPrivate("visible",e)}}}_applyThemes(t=!1){return!!super._applyThemes(t)&&(this.eachChildren((e=>{e._applyThemes(t)})),!0)}_applyState(t){super._applyState(t),this.get("setStateOnChildren")&&this.eachChildren((e=>{e.states.apply(t)}))}_applyStateAnimated(t,e){super._applyStateAnimated(t,e),this.get("setStateOnChildren")&&this.eachChildren((i=>{i.states.applyAnimate(t,e)}))}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let t=this._localBounds;t&&(this._contentWidth=t.right-t.left,this._contentHeight=t.bottom-t.top)}else{let t=this.get("width"),e=this.get("height"),i=this.getPrivate("width"),s=this.getPrivate("height"),n={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),o=!1,a=!1;if((r instanceof l.G||r instanceof u.M)&&(o=!0),r instanceof c.Z&&(a=!0),null==t&&null==i||null==e&&null==s||this.get("verticalScrollbar")){let t=Number.MAX_VALUE,e=t,i=-t,s=t,r=-t;const h=this.get("paddingLeft",0),l=this.get("paddingTop",0),c=this.get("paddingRight",0),u=this.get("paddingBottom",0);this.children.each((t=>{if("absolute"!=t.get("position")&&t.get("isMeasured")){let n=t.adjustedLocalBounds(),h=t.x(),l=t.y(),c=h+n.left,u=h+n.right,d=l+n.top,p=l+n.bottom;o&&(c-=t.get("marginLeft",0),u+=t.get("marginRight",0)),a&&(d-=t.get("marginTop",0),p+=t.get("marginBottom",0)),ci&&(i=u),dr&&(r=p)}})),e==t&&(e=0),i==-t&&(i=0),s==t&&(s=0),r==-t&&(r=0),n.left=e-h,n.top=s-l,n.right=i+c,n.bottom=r+u;const d=this.get("minWidth");p.isNumber(d)&&d>0&&n.right-n.left=d?n.left=n.right-d:n.right=n.left+d);const g=this.get("minHeight");p.isNumber(g)&&g>0&&n.bottom-n.top=g?n.top=n.bottom-g:n.bottom=n.top+g)}this._contentWidth=n.right-n.left,this._contentHeight=n.bottom-n.top,p.isNumber(t)&&(n.left=0,n.right=t),p.isNumber(i)&&(n.left=0,n.right=i),p.isNumber(e)&&(n.top=0,n.bottom=e),p.isNumber(s)&&(n.top=0,n.bottom=s),this._localBounds=n}}_updateBounds(){const t=this.get("layout");t&&t.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){this._childrenPrep=!0;const t=this.innerWidth(),e=this.innerHeight();if(t!=this._prevWidth||e!=this._prevHeight){let i=this.get("layout"),s=!1,r=!1;i&&((i instanceof l.G||i instanceof u.M)&&(s=!0),i instanceof c.Z&&(r=!0)),n.each(this._percentageSizeChildren,(i=>{if(!s){let e=i.get("width");e instanceof o.gG&&i.setPrivate("width",e.value*t)}if(!r){let t=i.get("height");t instanceof o.gG&&i.setPrivate("height",t.value*e)}})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t.markDirtyBounds()})),this._prevWidth=t,this._prevHeight=e,this._sizeDirty=!0,this.updateBackground()}}_updateHTMLContent(){const t=this.get("html","");t&&""!==t?this._root._setHTMLContent(this,(0,d.q)(this,t)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(t){const e=this.get("verticalScrollbar");if(e){let i=t.y(),s=this.innerHeight(),n=t.height(),r=this._contentHeight,o=1-(s-n/2)/r;if(i+.7*n+this._childrenDisplay.y>s||i-.3*n+this._childrenDisplay.y<0){let t=Math.max(0,Math.min(o,(i-n/2)/r));e.animate({key:"start",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")})}}}_updateChildren(){if(this._childrenUpdt=!0,this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){const t=this.get("verticalScrollbar");if(t){t._setParent(this),t.startGrip.setPrivate("visible",!1),t.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",t.width()+t.get("marginRight",0)+t.get("marginLeft",0));let e=this.get("background");e||(e=this.set("background",h.A.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",(e=>{const i=e.originalEvent;if(!g.isLocalEvent(i,this))return;i.preventDefault();let s=i.deltaY/5e3;const n=t.get("start",0),r=t.get("end",1);n+s<=0&&(s=-n),r+s>=1&&(s=1-r),n+s>=0&&r+s<=1&&(t.set("start",n+s),t.set("end",r+s))})),this._disposers.push(this._vsbd0),this._vsbd1=t.events.on("rangechanged",(()=>{let e=this._contentHeight;const i=this._childrenDisplay,s=this._contentMask;i.y=-t.get("start",0)*e,i.markDirtyLayer(),s&&(s._display.y=-i.y,i.mask=s._display)})),this._disposers.push(this._vsbd1),this._display.addChild(t._display)}else{const t=this._prevSettings.verticalScrollbar;t&&(this._display.removeChild(t._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose(),this._childrenDisplay.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0))}}if(this.isDirty("background")){const t=this._prevSettings.background;t&&this._display.removeChild(t._display);const e=this.get("background");e instanceof a.j&&(e.set("isMeasured",!1),e._setParent(this),this._display.addChildAt(e._display,0))}if(this.isDirty("mask")){const t=this.get("mask"),e=this._prevSettings.mask;if(e&&(this._display.removeChild(e._display),e!=t&&e.dispose()),t){const e=t.parent;e&&e.children.removeValue(t),t._setParent(this),this._display.addChildAt(t._display,0),this._childrenDisplay.mask=t._display}}}_processTemplateField(){super._processTemplateField(),this.children.each((t=>{t._processTemplateField()}))}walkChildren(t){this.children.each(((e,i)=>{e instanceof f&&e.walkChildren(t),t(e,i)}))}eachChildren(t){const e=this.get("background");e&&t(e);const i=this.get("verticalScrollbar");i&&t(i);const s=this.get("mask");s&&t(s),this.children.values.forEach((e=>{t(e)}))}allChildren(){const t=[];return this.eachChildren((e=>{t.push(e)})),t}_setDataItem(t){const e=t!==this._dataItem;super._setDataItem(t);const i=this.get("html","");i&&""!==i&&e&&this._root._setHTMLContent(this,(0,d.q)(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}}f.className="Container",f.classNames=a.j.classNames.concat([f.className])},6691:function(t,e,i){"use strict";i.d(e,{Y:function(){return d}});var s=i(962),n=i(8777),r=i(3497),o=i(6245),a=i(1112),h=i(7449),l=i(7652),c=i(5040),u=i(5071);class d extends s._{_afterNew(){super._afterNew();const t=this.children.push(n.W.new(this._root,{html:'',isMeasured:!1}));t.hide(),this.setPrivate("input",t);let e=this.get("background");e?e.set("themeTags",["editablelabel","background"]):e=this.set("background",r.c.new(this._root,{themeTags:["editablelabel","background"]}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();const t=this.get("editOn","click");"none"!=t&&(this._editOnEvents=new h.FV([this.getPrivate("input").events.on(t,(t=>{})),this.events.on(t,(t=>{this.set("active",!0)}))]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){const t=this.get("active",!1);t?this._startEditing():this._stopEditing();const e=this.get("background");e&&e.set("active",t)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){const t=this.getPrivate("input");if(t&&t.getPrivate("htmlElement")){const e=t.getPrivate("htmlElement").querySelector(".am5-editable-label");e&&(this.setPrivate("textarea",e),e.addEventListener("input",(t=>{!1===this.get("multiLine")&&(e.value=e.value.replace(/\n/g," ")),this.set("text",e.value),this._syncStyle()})),e.addEventListener("blur",(t=>this.set("active",!1))),l.supports("keyboardevents")&&this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Escape"==l.getEventKey(t)&&this.set("active",!1)}))),this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Enter"==l.getEventKey(t)&&!1===this.get("multiLine")&&(t.preventDefault(),this.set("active",!1))}))),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._startEditing()}));this._text.set("opacity",0);const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(""==this.get("text","")&&this.set("text"," "),t.show(0),this.setTimeout((()=>{this._syncStyle(),e.focus()}),100))}_stopEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._stopEditing()}));const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(this.set("text",e.value),t.hide(0),this._text.set("opacity",1))}_syncStyle(){const t=this.getPrivate("input"),e=this.getPrivate("textarea"),i=t.getPrivate("htmlElement");if(e&&i){const t=window.getComputedStyle(e);u.each(t,(t=>{e.style[t]="initial"})),e.style.color=this.get("fill",(0,a.$_)(0)).toCSS(this.get("fillOpacity",1)),e.style.backgroundColor="rgba(0, 0, 0, 0)",e.style.border="none",e.style.outline="none",e.style.padding="0",e.wrap="off",e.style.resize="none",e.style.overflow="hidden";const s=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);s>0?e.style.maxWidth=s+"px":e.style.minWidth="",e.style.height="auto",e.style.minHeight=e.scrollHeight+"px",this.get("width")&&(e.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",e.style.minWidth="");const n=this.get("lineHeight");n?n instanceof o.gG?e.style.lineHeight=n.value+"":c.isNumber(n)&&(e.style.lineHeight=n+""):e.style.lineHeight="1.2";let r=this.get("fontFamily");r||(r=getComputedStyle(i,"font-family").getPropertyValue("font-family")),e.style.fontFamily=r;let h=this.get("fontSize");h?c.isNumber(h)&&(h+="px"):h=getComputedStyle(i,"font-size").getPropertyValue("font-size"),e.style.fontSize=h;let l=this.get("fontWeight");l||(l=getComputedStyle(i,"font-weight").getPropertyValue("font-weight")),e.style.fontWeight=l;let d=this.get("fontStyle");d||(d=getComputedStyle(i,"font-style").getPropertyValue("font-style")),e.style.fontStyle=d;const p=this.get("oversizedBehavior");e.style.whiteSpace="wrap"==p?"pre-wrap":"nowrap",this._root.events.on("frameended",(()=>{""==e.style.minWidth&&(e.style.minWidth=e.scrollWidth+20+"px");const t=this.get("textAlign","start");"center"==t?(e.style.textAlign="center",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-50%)")):"end"==t?(e.style.textAlign="right",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-100%)")):e.style.textAlign=t}))}}_syncText(){const t=this.getPrivate("textarea");let e=this.get("text","");" "==e&&(e=""),t&&(t.value=e)}}d.className="EditableLabel",d.classNames=s._.classNames.concat([d.className])},2433:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radiusX")||this.isDirty("radiusY")||this.isDirty("rotation"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawEllipse(0,0,Math.abs(this.get("radiusX")),Math.abs(this.get("radiusY")))}}n.className="Ellipse",n.classNames=s.T.classNames.concat([n.className])},1479:function(t,e,i){"use strict";i.d(e,{T:function(){return l},u:function(){return h}});var s=i(4429),n=i(4596),r=i(4680),o=i(5040),a=i(5071);const h=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"];class l extends n.j{constructor(){super(...arguments),this._display=this._root._renderer.makeGraphics(),this._clear=!1}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const t=this.get("fillGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("fill")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("fill")}))))}}if(this.isDirty("strokeGradient")){const t=this.get("strokeGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("stroke")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("stroke")}))))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let t=this.get("strokeDasharray");o.isNumber(t)&&(t=t<.5?[0]:[t]),this._display.setLineDash(t);const e=this.get("strokeDashoffset");e&&this._display.setLineDashOffset(e);const i=this.get("blendMode",r.b.NORMAL);this._display.blendMode=i;const s=this.get("draw");s&&"function"==typeof s&&s(this._display,this);const n=this.get("svgPath");null!=n&&this._display.svgPath(n)}}_afterChanged(){if(super._afterChanged(),this._clear){const t=this.get("fill"),e=this.get("fillGradient"),i=this.get("fillPattern"),n=this.get("fillOpacity"),r=this.get("stroke"),o=this.get("strokeGradient"),h=this.get("strokePattern"),l=this.get("shadowColor"),c=this.get("shadowBlur"),u=this.get("shadowOffsetX"),d=this.get("shadowOffsetY"),p=this.get("shadowOpacity");if(l&&(c||u||d)&&this._display.shadow(l,c,u,d,p),t&&!e&&(this._display.beginFill(t,n),this._display.endFill()),e){if(t){const i=e.get("stops",[]);i.length&&a.each(i,(e=>{e.color&&!e.colorInherited||!t||(e.color=t,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=n,e.opacityInherited=!0)}))}const i=e.getFill(this);i&&(this._display.beginFill(i,n),this._display.endFill())}if(i){const t=i.pattern;t&&(this._display.beginFill(t,n),this._display.endFill(),i instanceof s.v&&i.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}if(r||o||h){const t=this.get("strokeOpacity");let e=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(e/=this.get("scale",1)),this.get("crisp")&&(e/=this._root._renderer.resolution);const i=this.get("lineJoin"),n=this.get("lineCap");if(r&&!o&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke()),o){const s=o.get("stops",[]);s.length&&a.each(s,(e=>{e.color&&!e.colorInherited||!r||(e.color=r,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=t,e.opacityInherited=!0)}));const h=o.getFill(this);h&&(this._display.lineStyle(e,h,t,i,n),this._display.endStroke())}if(h){let r=h.pattern;r&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke(),h instanceof s.v&&h.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}l.className="Graphics",l.classNames=n.j.classNames.concat([l.className])},6881:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var s=i(2010),n=i(5071),r=i(751);class o extends s.A{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(t){let e=t.get("paddingLeft",0),i=t.get("paddingRight",0),n=t.get("paddingTop",0),o=t.maxWidth()-e-i,a=o,h=1;(0,s.j)(t,(t=>{if(t.get("visible")&&t.getPrivate("visible")&&!t.get("forceHidden")&&"absolute"!=t.get("position")){let e=t.width();eh&&(h=e)}})),a=r.fitToRange(a,1,o),h=r.fitToRange(h,1,o);let l=1;l=this.get("fixedWidthGrid")?o/h:o/a,l=Math.max(1,Math.floor(l)),l=Math.min(this.get("maxColumns",Number.MAX_VALUE),l);let c=this.getColumnWidths(t,l,h,o),u=n,d=0,p=0;l=c.length;let g=e;(0,s.j)(t,(t=>{if("relative"==t.get("position")&&t.isVisible()){const i=t.get("marginTop",0),s=t.get("marginBottom",0);let n=t.adjustedLocalBounds(),r=t.get("marginLeft",0),o=t.get("marginRight",0),a=g+r-n.left,h=u+i-n.top;t.setPrivate("x",a),t.setPrivate("y",h),g+=c[d]+o,p=Math.max(p,t.height()+i+s),d++,d>=l&&(d=0,g=e,u+=p,p=0)}}))}getColumnWidths(t,e,i,r){let o=0,a=[],h=0;return(0,s.j)(t,(s=>{let n=s.adjustedLocalBounds();"absolute"!=s.get("position")&&s.isVisible()&&(this.get("fixedWidthGrid")?a[h]=i:a[h]=Math.max(0|a[h],n.right-n.left+s.get("marginLeft",0)+s.get("marginRight",0)),h{o+=t})),o>r?e>2?(e-=1,this.getColumnWidths(t,e,i,r)):[r]:a}}o.className="GridLayout",o.classNames=s.A.classNames.concat([o.className])},4431:function(t,e,i){"use strict";i.d(e,{G:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingLeft",0),i=t.innerWidth(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minWidth",t.getPrivate("minWidth",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.width()),i-=e+t.get("marginLeft",0)+t.get("marginRight",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginLeft",0)-t.get("marginRight",0),n=t.get("minWidth",t.getPrivate("minWidth",-1/0)),r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("width",s)}else t._prevSettings.width instanceof r.gG&&t.setPrivate("width",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginLeft",0),s=t.get("marginRight",0),n=t.get("maxWidth"),r=e.left,o=e.right;n&&o-r>n&&(o=r+n);let h=a+i-r;t.setPrivate("x",h),a=h+o+s}else t.setPrivate("x",void 0)}))}}o.className="HorizontalLayout",o.classNames=s.A.classNames.concat([o.className])},962:function(t,e,i){"use strict";i.d(e,{_:function(){return h}});var s=i(2036),n=i(6245),r=i(8777),o=i(5071),a=i(5040);class h extends r.W{constructor(){super(...arguments),this._textKeys=["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),o.each(this._textKeys,(t=>{const e=this.get(t);null!=e&&this._text.set(t,e)})),""!==this.get("html","")&&this._text.set("text",""),this.onPrivate("maxWidth",(()=>{this._setMaxDimentions()})),this.onPrivate("maxHeight",(()=>{this._setMaxDimentions()}))}_makeText(){this._text=this.children.push(s.x.new(this._root,{}))}_updateChildren(){super._updateChildren();const t=this._text;if(o.each(this._textKeys,(t=>{this._text.set(t,this.get(t))})),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),""!==this.get("html","")?t.set("text",""):(t.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){const e=this.get("textAlign");let i;null!=this.get("width")?i="right"==e?n.AQ:"center"==e?n.CI:0:"left"==e||"start"==e?i=this.get("paddingLeft",0):"right"!=e&&"end"!=e||(i=-this.get("paddingRight",0)),t.set("x",i)}const e=this.get("background");e&&e.setPrivate("visible",t._display.textVisible)}_maybeUpdateHTMLColor(){const t=this.getPrivate("htmlElement");t&&this.get("fill")&&(t.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){const t=this.get("rotation"),e=90==t||270==t||-90==t,i=this._text,s=this.get("maxWidth",this.getPrivate("maxWidth",1/0));a.isNumber(s)?i.set(e?"maxHeight":"maxWidth",s-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(e?"maxHeight":"maxWidth",void 0);const n=this.get("maxHeight",this.getPrivate("maxHeight",1/0));a.isNumber(n)?i.set(e?"maxWidth":"maxHeight",n-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(e?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",(()=>{i.markDirtyBounds()}))}_setDataItem(t){super._setDataItem(t),this._markDirtyKey("text"),this._markDirtyKey("html");const e=this._text;e.get("populateText")&&e.markDirtyText();const i=this.get("html");i&&""!==i&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}}h.className="Label",h.classNames=r.W.classNames.concat([h.className])},2010:function(t,e,i){"use strict";i.d(e,{A:function(){return r},j:function(){return n}});var s=i(6331);function n(t,e){t.get("reverseChildren",!1)?t.children.eachReverse(e):t.children.each(e)}class r extends s.JH{}r.className="Layout",r.classNames=s.JH.classNames.concat([r.className])},3105:function(t,e,i){"use strict";i.d(e,{D:function(){return c}});var s=i(3399),n=i(8777),r=i(962),o=i(3497),a=i(5769),h=i(7144),l=i(7652);class c extends s.F{constructor(){super(...arguments),this.itemContainers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:o.c.new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template])))),this.markers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template])))),this.labels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template])))),this.valueLabels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template])))),this.markerRectangles=this.addDisposer(new h.o(a.YS.new({}),(()=>o.c._new(this._root,{themeTags:l.mergeTags(this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template]))))}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(t){const e=this.children.push(this.itemContainers.make());return e._setDataItem(t),this.itemContainers.push(e),e.states.create("disabled",{}),e}makeMarker(){const t=this.markers.make();return this.markers.push(t),t.states.create("disabled",{}),t}makeLabel(){const t=this.labels.make();return t.states.create("disabled",{}),t}makeValueLabel(){const t=this.valueLabels.make();return t.states.create("disabled",{}),t}makeMarkerRectangle(){const t=this.markerRectangles.make();return t.states.create("disabled",{}),t}processDataItem(t){super.processDataItem(t);const e=this.makeItemContainer(t),i=this.get("nameField"),s=this.get("fillField"),n=this.get("strokeField");if(e){const r=this.get("clickTarget","itemContainer"),o=t.dataContext;o&&o.set&&o.set("legendDataItem",t),e._setDataItem(t),t.set("itemContainer",e);const a=this.makeMarker();if(a){e.children.push(a),a._setDataItem(t),t.set("marker",a);const i=this.get("useDefaultMarker"),r=a.children.push(this.makeMarkerRectangle());let h=t.get("fill"),l=t.get("stroke");t.set("markerRectangle",r),o&&o.get&&(h=o.get(s,h),l=o.get(n,l)),l||(l=h),i?o.on&&(o.on(s,(()=>{r.set("fill",o.get(s))})),o.on(n,(()=>{r.set("stroke",o.get(n))}))):o&&o.createLegendMarker&&o.createLegendMarker(),r.setAll({fill:h,stroke:l});const c=o.component;c&&c.updateLegendMarker&&c.updateLegendMarker(o)}const h=this.makeLabel();if(h){e.children.push(h),h._setDataItem(t),t.set("label",h),h.text.on("text",(()=>{e.setRaw("ariaLabel",h.text._getText()+("none"!==this.get("clickTarget")?"; "+this._t("Press ENTER to toggle"):"")),e.markDirtyAccessibility()})),o&&o.get&&t.set("name",o.get(i));let s=t.get("name");s&&h.set("text",s)}const l=this.makeValueLabel();if(l&&(e.children.push(l),l._setDataItem(t),t.set("valueLabel",l)),o&&o.show&&(o.on("visible",(t=>{e.set("disabled",!t)})),o.get("visible")||e.set("disabled",!0),"none"!=r)){let i=e;"marker"==r&&(i=a),this._addClickEvents(i,o,t)}this.children.values.sort(((t,e)=>{const i=t.dataItem.dataContext,s=e.dataItem.dataContext;if(i&&s){const t=this.data.indexOf(i),e=this.data.indexOf(s);if(t>e)return 1;if(t{const t=e.component;t&&t.hoverDataItem&&t.hoverDataItem(e)})),t.events.on("pointerout",(()=>{const t=e.component;t&&t.hoverDataItem&&t.unhoverDataItem(e)})),t.events.on("click",(()=>{const s=i.get("label").text._getText();e.show&&e.isHidden&&(e.isHidden()||!1===e.get("visible"))?(e.show(),t.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,s))):e.hide&&(e.hide(),t.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,s)))}))}disposeDataItem(t){super.disposeDataItem(t);const e=t.dataContext;e&&e.get&&e.get("legendDataItem")==t&&e.set("legendDataItem",void 0);let i=t.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let s=t.get("marker");s&&(this.markers.removeValue(s),s.dispose());let n=t.get("markerRectangle");n&&(this.markerRectangles.removeValue(n),n.dispose());let r=t.get("label");r&&(this.labels.removeValue(r),r.dispose());let o=t.get("valueLabel");o&&(this.valueLabels.removeValue(o),o.dispose())}}c.className="Legend",c.classNames=s.F.classNames.concat([c.className])},2077:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var s=i(1479);function n(t,e){for(let i=0,s=e.length;i0){let e=s[0];if(e.length>0){let i=e[0];t.moveTo(i.x,i.y);for(let e=0,i=s.length;e0){let e=t[0];this._display.moveTo(e.x,e.y),n(this._display,[[t]])}else if(e)n(this._display,e);else if(!this.get("draw")){let t=this.width(),e=this.height();this._display.moveTo(0,0),this._display.lineTo(t,e)}}}}o.className="Line",o.classNames=s.T.classNames.concat([o.className])},5812:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var s=i(8777),n=i(941),r=i(6387),o=i(751);class a extends s.W{constructor(){super(...arguments),this.line=this.children.push(r.P.new(this._root,{themeTags:["line"]})),this.hitLine=this.children.push(r.P.new(this._root,{themeTags:["hit"]})),this.startArrow=this.children.push(n.C.new(this._root,{themeTags:["start","arrow"]})),this.endArrow=this.children.push(n.C.new(this._root,{themeTags:["end","arrow"]}))}_afterNew(){this.addTag("link"),super._afterNew()}_updateChildren(){if(super._updateChildren(),this.isDirty("points")){let t=r.P.makeOrthogonal(this.get("points",[]));this.line.set("points",t),this.hitLine.set("points",t);const e=this.startArrow,i=this.endArrow,s=t.length;if(s>1){const[n,r]=t;e.setAll({x:n.x,y:n.y,rotation:o.getAngle(n,r)-90});const a=t[s-1],h=t[s-2];i.setAll({x:a.x,y:a.y,rotation:o.getAngle(h,a)+90})}else if(1===s){const[s]=t;e.setAll({x:s.x,y:s.y,rotation:0}),i.setAll({x:s.x,y:s.y,rotation:0})}}}}a.className="Link",a.classNames=s.W.classNames.concat([a.className])},8289:function(t,e,i){"use strict";i.d(e,{G:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){return function(e){return new s(e,t)}}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(s+a,n+a*e,r-a,o-a*i,r,o)}},5892:function(t,e,i){"use strict";i.d(e,{$:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){[t,e]=[e,t];let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){function e(e){return new s(e,t)}return e.tension=function(t){return n(+t)},e}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(n+a*e,s+a,o-a*i,r-a,o,r)}},7049:function(t,e,i){"use strict";i.d(e,{l:function(){return h}});var s=i(8777),n=i(6691),r=i(7142),o=i(941),a=i(1112);class h extends s.W{constructor(){super(...arguments),this.label=this.children.push(n.Y.new(this._root,{})),this.buttonsContainer=this.children.push(s.W.new(this._root,{themeTags:["buttons"]})),this.upButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["upbutton"]})),this.downButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["downbutton"]}))}_afterNew(){this.addTag("numericstepper"),this.set("layout",this._root.horizontalLayout),this.label.adapters.add("text",(t=>(t&&t.replace(/\D/g,""),""===t&&(t="0"),t))),this.set("background",r.A.new(this._root,{fillOpacity:0,fill:(0,a.$_)(16777215)})),this.buttonsContainer.states.create("hidden",{opacity:0,visible:!0}),this.events.on("pointerover",(()=>{this.buttonsContainer.set("active",!0)})),this.events.on("pointerout",(()=>{this.buttonsContainer.set("active",!1)})),this.label.on("text",(t=>{if(t){const e=parseFloat(t);isNaN(e)||this.set("value",e)}})),this.upButton.events.on("click",(()=>{this.set("value",this.get("value",0)+1)})),this.downButton.events.on("click",(()=>{this.set("value",Math.max(0,this.get("value",0)-1))})),super._afterNew()}_updateChildren(){super._updateChildren();const t=this.get("value",0),e=this.label;if(this.isDirty("value")&&e.set("text",t.toString()),this.isDirty("disabled")){const t=this.get("disabled",!1);this.set("interactive",!t),this.upButton.set("interactive",!t),this.downButton.set("interactive",!t),t?(this.label.set("editOn","none"),this.buttonsContainer.hide(0)):(this.label.set("editOn","click"),this.buttonsContainer.show(0))}}}h.className="NumericStepper",h.classNames=s.W.classNames.concat([h.className])},6387:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),this.isDirty("points")&&(this._clear=!0)}static makeOrthogonal(t){if(t.length>1){const e=[];for(let i=0;i0&&o&&l){if(h){s=Math.min(s,Math.abs(r.x-o.x)/2,Math.abs(r.y-n.y)/2);const e=Math.sign(r.y-n.y);t.lineTo(r.x,r.y-s*e);const i=o.x{this._display.image=e,this._updateSize(),!i.isDisposed()&&i.isEnabled("loaded")&&i.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{!i.isDisposed()&&i.isEnabled("loaderror")&&i.dispatch("loaderror",{type:"loaderror",target:this})}))}}_updateSize(){super._updateSize();const t=this._display.image;if(t){let e=this.getPrivate("width",this.get("width")),i=this.getPrivate("height",this.get("height"));const s=t.width&&t.height?t.width/t.height:0;n.isNumber(e)&&n.isNumber(i)?(this._display.width=e,this._display.height=i):n.isNumber(e)&&s?i=e/s:n.isNumber(i)&&s?e=i*s:(e=t.width,i=t.height),n.isNumber(e)&&(this._display.width=e),n.isNumber(i)&&(this._display.height=i),this.markDirtyBounds(),this.markDirty()}}}r.className="Picture",r.classNames=s.j.classNames.concat([r.className])},8931:function(t,e,i){"use strict";i.d(e,{i:function(){return r}});var s=i(1479),n=i(751);class r extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let t=this.width(),e=this.height();if(t>0&&e>0){let i=this.get("cornerRadius",8);i=n.fitToRange(i,0,Math.min(t/2,e/2));let s=this.get("pointerX",0),r=this.get("pointerY",0),o=this.get("pointerBaseWidth",15)/2,a=0,h=0,l=0,c=(s-a)*(e-h)-(r-h)*(t-a),u=(s-l)*(0-e)-(r-e)*(t-l);const d=this._display;if(d.moveTo(i,0),c>0&&u>0){let e=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,-1/0,0),d.lineTo(e-o,0),d.lineTo(s,r),d.lineTo(e+o,0)}if(d.lineTo(t-i,0),d.arcTo(t,0,t,i,i),c>0&&u<0){let a=Math.round(n.fitToRange(r,i+o,e-o-i));s=n.fitToRange(s,t,1/0),d.lineTo(t,i),d.lineTo(t,Math.max(a-o,i)),d.lineTo(s,r),d.lineTo(t,a+o)}if(d.lineTo(t,e-i),d.arcTo(t,e,t-i,e,i),c<0&&u<0){let a=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,e,1/0),d.lineTo(t-i,e),d.lineTo(a+o,e),d.lineTo(s,r),d.lineTo(a-o,e)}if(d.lineTo(i,e),d.arcTo(0,e,0,e-i,i),c<0&&u>0){let t=Math.round(n.fitToRange(r,i+o,e-i-o));s=n.fitToRange(s,-1/0,0),d.lineTo(0,e-i),d.lineTo(0,t+o),d.lineTo(s,r),d.lineTo(0,Math.max(t-o,i))}d.lineTo(0,i),d.arcTo(0,0,i,0,i),d.closePath()}}}}r.className="PointedRectangle",r.classNames=s.T.classNames.concat([r.className])},7770:function(t,e,i){"use strict";i.d(e,{m:function(){return r}});var s=i(1479),n=i(5071);class r extends s.T{_beforeChanged(){if(super._beforeChanged(),this.isDirty("coordinates")){const t=[],e=this.get("coordinates");e&&n.each(e,(e=>{t.push({x:e[0],y:e[1]})})),this.set("points",t)}if(this.isPrivateDirty("points")&&(this._clear=!0),this.isDirty("points")){this._clear=!0;const t=this.get("points"),e=this._prevSettings.points;if(e){if(t){let i=n.copy(t),s=n.copy(e),r=i.length,o=s.length;if(r>o){let t=n.copy(i);for(let e=0;er){let t=n.copy(s);for(let e=0;e{this._markDirtyPrivateKey("morphProgress")}))}}else this.setPrivateRaw("previousPoints",t),this.setPrivateRaw("points",t);let i=1/0,s=-1/0,r=1/0,o=-1/0;if(t)for(let e=1,n=t.length;e{this.label.markDirtyKey("text")}))}}}l.className="ProgressPie",l.classNames=n.W.classNames.concat([l.className])},815:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(6245),n=i(962),r=i(4244),o=i(751),a=i(7652);class h extends n._{constructor(){super(...arguments),this._flipped=!1}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(r.f.new(this._root,{}))}baseRadius(){const t=this.getPrivate("radius",0),e=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return e+a.relativeToValue(i,t-e)}radius(){const t=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(t?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){const t=this.get("textType","adjusted"),e=this.get("inside",!1),i=this.get("orientation");let n=o.normalizeAngle(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",e);const r=o.sin(n),a=o.cos(n);let h=this.baseRadius(),l=this.radius();if(this._display.angle=0,"circular"==t)this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",l);else{0==h&&(n=0,l=0);let e=l*a,o=l*r;"radial"==t?(this.setRaw("x",e),this.setRaw("y",o),n<90||n>270||"auto"!=i?(this._display.angle=n,this._flipped=!1):(this._display.angle=n+180,this._flipped=!0),this._dirty.rotation=!1):"adjusted"==t?(this.setRaw("centerX",s.CI),this.setRaw("centerY",s.CI),this.setRaw("x",e),this.setRaw("y",o)):"regular"==t&&(this.setRaw("x",e),this.setRaw("y",o))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){const t=this.get("textType","regular"),e=this.get("inside",!1);let i=0,n=0,r=this.get("labelAngle",0),a=this.localBounds(),h=a.right-a.left,l=a.bottom-a.top;if("radial"==t){if(this._flipped){let t=this.get("centerX");t instanceof s.gG&&(h*=1-2*t.value),i=h*o.cos(r),n=h*o.sin(r)}}else e||"adjusted"!=t||(i=h/2*o.cos(r),n=l/2*o.sin(r));this.setRaw("dx",i),this.setRaw("dy",n),super._updatePosition()}get text(){return this._text}}h.className="RadialLabel",h.classNames=n._.classNames.concat([h.className])},4244:function(t,e,i){"use strict";i.d(e,{f:function(){return r}});var s=i(2036),n=i(751);class r extends s.x{constructor(){super(...arguments),this._display=this._root._renderer.makeRadialText("",this.textStyle)}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*n.RADIANS,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}r.className="RadialText",r.classNames=s.x.classNames.concat([r.className])},7142:function(t,e,i){"use strict";i.d(e,{A:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let t=this.width(),e=this.height(),i=0,s=0,n=t/Math.abs(t),r=e/Math.abs(e);if(this.get("containStroke",!1)){const o=this.get("strokeWidth",0);t-=o*n,e-=o*r,i+=o/2*n,s+=o/2*r}this._display.drawRect(i,s,t,e)}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Rectangle",n.classNames=s.T.classNames.concat([n.className])},3497:function(t,e,i){"use strict";i.d(e,{c:function(){return a}});var s=i(5040),n=i(751),r=i(7652),o=i(7142);class a extends o.A{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let t=this.width(),e=this.height(),i=t/Math.abs(t),o=e/Math.abs(e),a=0,h=0;const l=this.get("strokeWidth",0);this.get("containStroke",!1)&&(t-=i*l,e-=o*l,a+=i*l/2,h+=o*l/2);let c=t,u=e;if(s.isNumber(c)&&s.isNumber(u)){let t=Math.min(c,u)/2,e=r.relativeToValue(this.get("cornerRadiusTL",8),t),s=r.relativeToValue(this.get("cornerRadiusTR",8),t),l=r.relativeToValue(this.get("cornerRadiusBR",8),t),d=r.relativeToValue(this.get("cornerRadiusBL",8),t),p=Math.min(Math.abs(c/2),Math.abs(u/2));e=n.fitToRange(e,0,p),s=n.fitToRange(s,0,p),l=n.fitToRange(l,0,p),d=n.fitToRange(d,0,p);const g=this._display;g.moveTo(a+e*i,h),g.lineTo(a+c-s*i,h),s>0&&g.arcTo(a+c,h,a+c,h+s*o,s),g.lineTo(a+c,h+u-l*o),l>0&&g.arcTo(a+c,h+u,a+c-l*i,h+u,l),g.lineTo(a+d*i,h+u),d>0&&g.arcTo(a,h+u,a,h+u-d*o,d),g.lineTo(a,h+e*o),e>0&&g.arcTo(a,h,a+e*i,h,e),g.closePath()}}}a.className="RoundedRectangle",a.classNames=o.A.classNames.concat([a.className])},6001:function(t,e,i){"use strict";i.d(e,{L:function(){return l}});var s=i(3497),n=i(8777),r=i(1479),o=i(8054),a=i(5040),h=i(7652);class l extends n.W{constructor(){super(...arguments),this.thumb=this._makeThumb(),this.startGrip=this._makeButton(),this.endGrip=this._makeButton(),this._thumbBusy=!1,this._startDown=!1,this._endDown=!1,this._thumbDown=!1}_addOrientationClass(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=s.c.new(this._root,{themeTags:h.mergeTags(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(o.z.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:r.T.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(s.c.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(t){t&&this._disposers.push(t.events.on("stopped",(()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1})))}_afterNew(){this._addOrientationClass(),super._afterNew();const t=this.startGrip,e=this.endGrip,i=this.thumb,s=this.get("background");s&&this._disposers.push(s.events.on("click",(t=>{this.setPrivateRaw("isBusy",!0);const e=this._display.toLocal(t.point),s=this.width(),n=this.height(),r=this.get("orientation");let o,a,h;o="vertical"==r?(e.y-i.height()/2)/n:(e.x-i.width()/2)/s,"vertical"==r?(a=o*n,h="y"):(a=o*s,h="x");const l=this.get("animationDuration",0);l>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:h,to:a,duration:l,easing:this.get("animationEasing")}))):(this.thumb.set(h,a),this._root.events.once("frameended",(()=>{this.setPrivateRaw("isBusy",!1)})))}))),this._disposers.push(i.events.on("dblclick",(t=>{if(!h.isLocalEvent(t.originalEvent,this))return;const e=this.get("animationDuration",0),i=this.get("animationEasing");this.animate({key:"start",to:0,duration:e,easing:i}),this.animate({key:"end",to:1,duration:e,easing:i})}))),this._disposers.push(t.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"}))),this._disposers.push(e.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"}))),this._disposers.push(i.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0}))),this._disposers.push(t.events.on("globalpointerup",(()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1}))),this._disposers.push(e.events.on("globalpointerup",(()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1}))),this._disposers.push(i.events.on("globalpointerup",(()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1}))),this._disposers.push(t.on("x",(()=>{this._updateThumb()}))),this._disposers.push(e.on("x",(()=>{this._updateThumb()}))),this._disposers.push(t.on("y",(()=>{this._updateThumb()}))),this._disposers.push(e.on("y",(()=>{this._updateThumb()}))),this._disposers.push(i.events.on("positionchanged",(()=>{this._updateGripsByThumb()}))),"vertical"==this.get("orientation")?(t.set("x",0),e.set("x",0),this._disposers.push(i.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()-i.height()),0)))),this._disposers.push(i.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("x",(t=>this.width()/2))),this._disposers.push(e.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0)))),this._disposers.push(e.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0))))):(t.set("y",0),e.set("y",0),this._disposers.push(i.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()-i.width()),0)))),this._disposers.push(i.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("y",(t=>this.height()/2))),this._disposers.push(e.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))),this._disposers.push(e.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){const t="rangechanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){const t="released";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}updateGrips(){const t=this.startGrip,e=this.endGrip,i=this.get("orientation"),s=this.height(),n=this.width();"vertical"==i?(t.set("y",s*this.get("start",0)),e.set("y",s*this.get("end",1))):(t.set("x",n*this.get("start",0)),e.set("x",n*this.get("end",1)));const r=this.getPrivate("positionTextFunction"),o=Math.round(100*this.get("start",0)),a=Math.round(100*this.get("end",0));let h,l;r?(h=r.call(this,this.get("start",0)),l=r.call(this,this.get("end",0))):(h=o+"%",l=a+"%"),t.set("ariaLabel",this._t("From %1",void 0,h)),t.set("ariaValueNow",""+o),t.set("ariaValueText",o+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100"),e.set("ariaLabel",this._t("To %1",void 0,l)),e.set("ariaValueNow",""+a),e.set("ariaValueText",a+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100")}_updateThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip,s=this.height(),n=this.width();let r=e.x(),o=i.x(),h=e.y(),l=i.y(),c=0,u=1;"vertical"==this.get("orientation")?a.isNumber(h)&&a.isNumber(l)&&(this._thumbBusy||t.isDragging()||(t.set("height",l-h),t.set("y",h)),c=h/s,u=l/s):a.isNumber(r)&&a.isNumber(o)&&(this._thumbBusy||t.isDragging()||(t.set("width",o-r),t.set("x",r)),c=r/n,u=o/n),!this.getPrivate("isBusy")||this.get("start")==c&&this.get("end")==u||(this.set("start",c),this.set("end",u));const d=this.getPrivate("positionTextFunction"),p=Math.round(100*this.get("start",0)),g=Math.round(100*this.get("end",0));let f,_;d?(f=d.call(this,this.get("start",0)),_=d.call(this,this.get("end",0))):(f=p+"%",_=g+"%"),t.set("ariaLabel",this._t("From %1 to %2",void 0,f,_)),t.set("ariaValueNow",""+p),t.set("ariaValueText",p+"%")}_updateGripsByThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip;if("vertical"==this.get("orientation")){const s=t.height();e.set("y",t.y()),i.set("y",t.y()+s)}else{const s=t.width();e.set("x",t.x()),i.set("x",t.x()+s)}}}l.className="Scrollbar",l.classNames=n.W.classNames.concat([l.className])},5829:function(t,e,i){"use strict";i.d(e,{j:function(){return h}});var s=i(1337),n=i(8777),r=i(7144),o=i(6245),a=i(5071);class h extends s.k{constructor(){super(...arguments),this.seriesContainer=n.W.new(this._root,{width:o.AQ,height:o.AQ,isMeasured:!1}),this.series=new r.dn}_afterNew(){super._afterNew(),this._disposers.push(this.series);const t=this.seriesContainer.children;this._disposers.push(this.series.events.onAll((e=>{if("clear"===e.type){a.each(e.oldValues,(t=>{this._removeSeries(t)}));const t=this.get("colors");t&&t.reset();const i=this.get("patterns");i&&i.reset()}else if("push"===e.type)t.moveValue(e.newValue),this._processSeries(e.newValue);else if("setIndex"===e.type)t.setIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("insertIndex"===e.type)t.insertIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("removeIndex"===e.type)this._removeSeries(e.oldValue);else if("moveIndex"===e.type)t.moveValue(e.value,e.newIndex),this._processSeries(e.value);else{if("swap"!==e.type)throw new Error("Unknown IListEvent type");{const i=e.a,s=e.b,n=this.series.indexOf(i),r=this.series.indexOf(s);t.moveValue(i,r),t.moveValue(s,n),this.series.each((t=>{this._processSeries(t),t.markDirtyValues()}))}}})))}_processSeries(t){t.chart=this,t._placeBulletsContainer(this)}_removeSeries(t){t._handleRemoved(),t.isDisposed()||(this.seriesContainer.children.removeValue(t),t._removeBulletsContainer())}}h.className="SerialChart",h.classNames=s.k.classNames.concat([h.className])},3399:function(t,e,i){"use strict";i.d(e,{F:function(){return g}});var s=i(7582),n=i(9361),r=i(7144),o=i(1112),a=i(6490),h=i(6245),l=i(8777),c=i(962),u=i(5071),d=i(5040),p=i(1926);class g extends n.w{constructor(){super(...arguments),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1,this._dataProcessed=!1,this._baseSeriesDirty=!1,this.bullets=new r.aV,this.bulletsContainer=l.W.new(this._root,{width:h.AQ,height:h.AQ,position:"absolute"})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll((()=>{this._handleBullets(this.dataItems)})))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let t=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),t)}endIndex(){let t=this.dataItems.length;return Math.max(0,Math.min(this.getPrivate("endIndex",t),t))}_handleBullets(t){u.each(t,(t=>{const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)})),this.markDirtyValues()}_makeBullets(t){this._shouldMakeBullet(t)&&(t.bullets=[],this.bullets.each((e=>{this._makeBullet(t,e)})))}_shouldMakeBullet(t){return!0}_makeBullet(t,e,i){const s=e(this._root,this,t);return s&&(s._index=i,this._makeBulletReal(t,s)),s}_makeBulletReal(t,e){let i=e.get("sprite");i&&(i._setDataItem(t),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),e.series=this,t.bullets.push(e)}addBullet(t,e){t.bullets||(t.bullets=[]),e&&this._makeBulletReal(t,e)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();const t=this.dataItems,e=t.length;let i=this.startIndex(),s=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const t=this.getPrivate("baseValueSeries");t&&this._disposers.push(t.onPrivate("startIndex",(()=>{this._baseSeriesDirty=!0,this.markDirtyValues()})))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,e),this._aggregatesCalculated=!0,0!=i&&(this._psi=void 0))),this._psi==i&&this._pei==s&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===i&&s===e&&this._aggregatesCalculated||this._calculateAggregates(i,s),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let t=this.get("tooltip");t&&(t.hide(0),t.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let t;const e=this.get("legendDataItem");if(e&&(t=e.get("markerRectangle"),t&&this.isVisible())){if(this.isDirty("stroke")){let e=this.get("stroke");t.set("stroke",e)}if(this.isDirty("fill")){let e=this.get("fill");t.set("fill",e)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let i=this.startIndex(),s=this.endIndex();s-1==s.indexOf(t))));const n={},r={},o={},a={},h={},l={},c={},u={},d={};for(let t=0,e=i.length;t{if(0===t){const t=l[x],s=i-t;e.setRaw(_,s),e.setRaw(m,s/t*100)}const n=i-d[x],r=i-l[x];e.setRaw(y,n),e.setRaw(v,n/d[x]*100),e.setRaw(w,r),e.setRaw(b,r/l[x]*100),d[s]=i};for(let t=k;tt&&(a[f]=t),h[f]0&&t--,delete d[f];for(let e=t;e0&&u.each(t,(t=>{const e=t.minValue||this.getPrivate(t.dataField+"Low")||0,i=t.maxValue||this.getPrivate(t.dataField+"High")||0;u.each(t.target._entities,(s=>{const n=s.dataItem.get(t.dataField);if(!d.isNumber(n)){t.neutral&&s.set(t.key,t.neutral);const e=s.states;if(e){const i=e.lookup("default");i&&t.neutral&&i.set(t.key,t.neutral)}if(!t.customFunction)return}if(t.customFunction)t.customFunction.call(this,s,e,i,n);else{let r,l;r=t.logarithmic?(Math.log(n)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E):(n-e)/(i-e),!d.isNumber(n)||d.isNumber(r)&&Math.abs(r)!=1/0||(r=.5),d.isNumber(t.min)?l=t.min+(t.max-t.min)*r:t.min instanceof o.Il?l=o.Il.interpolate(r,t.min,t.max):t.min instanceof h.gG&&(l=(0,a.Wn)(r,t.min,t.max)),s.set(t.key,l);const c=s.states;if(c){const e=c.lookup("default");e&&e.set(t.key,l)}}}))})),this.get("visible")){const t=this.dataItems;let e=t.length,i=this.startIndex(),s=this.endIndex();s0&&i--;for(let e=0;e{this._positionBullet(t);const e=t.get("sprite");t.get("dynamic")&&(e&&(e._markDirtyKey("fill"),e.markDirtySize()),e instanceof l.W&&e.walkChildren((t=>{t._markDirtyKey("fill"),t.markDirtySize(),t instanceof c._&&t.text.markDirtyText()}))),e instanceof c._&&e.get("populateText")&&e.text.markDirtyText()}))}_hideBullets(t){t.bullets&&u.each(t.bullets,(t=>{let e=t.get("sprite");e&&e.setPrivate("visible",!1)}))}_positionBullet(t){}_placeBulletsContainer(t){t.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const t=this.bulletsContainer;t.parent&&t.parent.children.removeValue(t)}disposeDataItem(t){const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.show(e))})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.hide(e))})),yield Promise.all(s)}))}_sequencedShowHide(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(d.isNumber(e)||(e=this.get("interpolationDuration",0)),e>0){const i=this.startIndex(),n=this.endIndex();yield Promise.all(u.map(this.dataItems,((r,o)=>(0,s.mG)(this,void 0,void 0,(function*(){let s=e||0;(on+10)&&(s=0);let a=this.get("sequencedDelay",0)+s/(n-i);yield p.sleep(a*(o-i)),t?yield this.showDataItem(r,s):yield this.hideDataItem(r,s)})))))}else yield Promise.all(u.map(this.dataItems,(e=>t?this.showDataItem(e,0):this.hideDataItem(e,0))))}))}updateLegendValue(t){if(t){const e=t.get("legendDataItem");if(e){const i=e.get("valueLabel");if(i){const e=i.text;let s="";i._setDataItem(t),s=this.get("legendValueText",e.get("text","")),i.set("text",s),e.markDirtyText()}const s=e.get("label");if(s){const e=s.text;let i="";s._setDataItem(t),i=this.get("legendLabelText",e.get("text","")),s.set("text",i),e.markDirtyText()}}}}updateLegendMarker(t){}_onHide(){super._onHide();const t=this.getTooltip();t&&t.hide()}hoverDataItem(t){}unhoverDataItem(t){}_getBase(t){const e=this.dataItems[this.startIndex()];return e?e.get(t):0}}g.className="Series",g.classNames=n.w.classNames.concat([g.className])},5863:function(t,e,i){"use strict";i.d(e,{p:function(){return h}});var s=i(1479),n=i(5040),r=i(6245),o=i(832),a=i(751);class h extends s.T{constructor(){super(...arguments),this.ix=0,this.iy=0,this._generator=(0,o.Z)()}_getTooltipPoint(){let t=this.get("tooltipX"),e=this.get("tooltipY"),i=0,s=0;n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e);let o=this.get("radius",0),a=this.get("innerRadius",0);return o+=this.get("dRadius",0),a+=this.get("dInnerRadius",0),a<0&&(a=o+a),t instanceof r.gG&&(i=this.ix*(a+(o-a)*t.value)),e instanceof r.gG&&(s=this.iy*(a+(o-a)*e.value)),this.get("arc")>=360&&0==a&&(i=0,s=0),{x:i,y:s}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this.get("startAngle",0),e=this.get("arc",0);const i=this._generator;e<0&&(t+=e,e*=-1),e>.1&&i.cornerRadius(this.get("cornerRadius",0)),i.context(this._display);let s=this.get("radius",0),n=this.get("innerRadius",0);s+=this.get("dRadius",0),n+=this.get("dInnerRadius",0),n<0&&(n=s+n),i({innerRadius:n,outerRadius:s,startAngle:(t+90)*a.RADIANS,endAngle:(t+e+90)*a.RADIANS});let r=t+e/2;this.ix=a.cos(r),this.iy=a.sin(r);const o=this.get("shiftRadius",0);this.setRaw("dx",this.ix*o),this.setRaw("dy",this.iy*o),this.markDirtyPosition()}}}h.className="Slice",h.classNames=s.T.classNames.concat([h.className])},2162:function(t,e,i){"use strict";i.d(e,{i:function(){return n}});var s=i(6001);class n extends s.L{_afterNew(){this._addOrientationClass(),super._afterNew(),this.endGrip.setPrivate("visible",!1),this.thumb.setPrivate("visible",!1)}updateGrips(){super.updateGrips();const t=this.startGrip;this.endGrip.setAll({x:t.x(),y:t.y()}),this.setRaw("end",this.get("start"))}}n.className="Slider",n.classNames=s.L.classNames.concat([n.className])},4596:function(t,e,i){"use strict";i.d(e,{j:function(){return _}});var s=i(7582),n=i(6331),r=i(5769),o=i(6245),a=i(9770),h=i(7449),l=i(6490),c=i(7652),u=i(5071),d=i(5040),p=i(256),g=i(751);class f extends a.p{constructor(t){super(),this._rendererDisposers={},this._dispatchParents=!0,this._sprite=t}_makePointerEvent(t,e){return{type:t,originalEvent:e.event,point:e.point,simulated:e.simulated,native:e.native,target:this._sprite}}_onRenderer(t,e){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[t];if(void 0===i){const s=this._sprite._display.on(t,(t=>{e.call(this,t)}));i=this._rendererDisposers[t]=new h.DM((()=>{delete this._rendererDisposers[t],s.dispose()}))}return i.increment()}_on(t,e,i,s,n,r,o){const a=super._on(t,e,i,s,n,r,o),l=f.RENDERER_EVENTS[e];return void 0!==l&&(a.disposer=new h.FV([a.disposer,this._onRenderer(e,l)])),a}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(t,e){const i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(t,e),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(t,e)}finally{this._dispatchParents=i}}}f.RENDERER_EVENTS={click:function(t){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",t))&&this.dispatch("click",this._makePointerEvent("click",t))},rightclick:function(t){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",t))},middleclick:function(t){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",t))},dblclick:function(t){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",t))},pointerover:function(t){const e=this._sprite;let i=!0;if(e.getPrivate("trustBounds")){e._getBounds();const s=e.globalBounds();if(e.isType("Graphics")){const t=e.get("strokeWidth",1)/2;t>=1&&(s.left-=t,s.right+=t,s.top-=t,s.bottom+=t)}g.inBounds(t.point,s)||(i=!1,e._root._renderer.removeHovering(e._display))}i&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",t))},pointerout:function(t){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",t))},pointerdown:function(t){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",t))},pointerup:function(t){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",t))},globalpointerup:function(t){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",t))},globalpointermove:function(t){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",t))},wheel:function(t){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:t.event,point:t.point})}};class _ extends n.JH{constructor(){super(...arguments),this._adjustedLocalBounds={left:0,right:0,top:0,bottom:0},this._localBounds={left:0,right:0,top:0,bottom:0},this._sizeDirty=!1,this._isDragging=!1,this._isHidden=!1,this._isShowing=!1,this._isHiding=!1,this._isDown=!1,this._downPoints={}}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(t){this._markDirtyKey(t)}_markDirtyKey(t){super._markDirtyKey(t),"x"!=t&&"y"!=t&&"dx"!=t&&"dy"!=t||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(t){super._markDirtyPrivateKey(t),"x"!=t&&"y"!=t||this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new f(this)}_processTemplateField(){let t;const e=this.get("templateField");if(e){const i=this.dataItem;if(i){const s=i.dataContext;s&&(t=s[e],t instanceof r.YS||!t||(t=r.YS.new(t)))}}this._templateField!==t&&(this._removeTemplateField(),this._templateField=t,t&&t._setObjectTemplate(this),this._applyTemplates())}_setDataItem(t){const e=this._dataItem;this._dataItem=t,this._processTemplateField();const i="dataitemchanged";t!=e&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:e,newDataItem:t})}set dataItem(t){this._setDataItem(t)}get dataItem(){if(this._dataItem)return this._dataItem;{let t=this._parent;for(;t;){if(t._dataItem)return t._dataItem;t=t._parent}}}_addPercentageSizeChildren(){let t=this.parent;t&&(this.get("width")instanceof o.gG||this.get("height")instanceof o.gG?u.pushOne(t._percentageSizeChildren,this):u.removeFirst(t._percentageSizeChildren,this))}_addPercentagePositionChildren(){let t=this.parent;t&&(this.get("x")instanceof o.gG||this.get("y")instanceof o.gG?u.pushOne(t._percentagePositionChildren,this):u.removeFirst(t._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const t=this._localBounds;if(t){const e=this.get("centerX");null!=e&&(this._display.pivot.x=t.left+c.relativeToValue(e,t.right-t.left));const i=this.get("centerY");null!=i&&(this._display.pivot.y=t.top+c.relativeToValue(i,t.bottom-t.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const t=this._prevSettings.tooltip;t&&t.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0);const e=this._tooltipPointerDp;e&&(e.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))),this._tooltipPointerDp=new h.FV([this.events.on("pointerover",(()=>{this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))})),this.events.on("pointerout",(()=>{const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0)}))]))}}_handleStates(){this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();const t=this._display,e=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new h.FV([e.on("pointerdown",(t=>{this.dragStart(t)})),e.on("globalpointermove",(t=>{this.dragMove(t)})),e.on("globalpointerup",(t=>{this.dragStop(t)}))])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),t.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const t=this.get("tooltipText"),i=this.get("tooltipHTML"),s=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(t||i)&&("click"==s?(this._tooltipDp=new h.FV([e.on("click",(()=>{this.setTimeout((()=>{const t=this.getTooltip();t&&!t.isHidden()&&t.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()}),10)})),c.addEventListener(document,"click",(t=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)):"always"==s||(this._tooltipDp=new h.FV([e.on("pointerover",(()=>{this.showTooltip()})),e.on("pointerout",(()=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let t=this.get("toggleKey");t&&"none"!=t?this._toggleDp=e.on("click",(()=>{this._isDragging||this.set(t,!this.get(t))})):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(t.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),t.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),t.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?t.visible=!0:(t.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const t=this.parent;t&&(this.isDirty("width")&&this.get("width")instanceof o.gG||this.isDirty("height")&&this.get("height")instanceof o.gG)&&(t.markDirty(),t._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const e=this.get("wheelable");e&&this.set("interactive",!0),t.wheelable=!!e}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(t.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){const t=this.get("blur",0);0!=t&&(i+=" blur("+t+"px)")}if(this.isDirty("saturate")){const t=this.get("saturate",1);1!=t&&(i+=" saturate("+t+")")}if(this.isDirty("brightness")){const t=this.get("brightness",1);1!=t&&(i+=" brightness("+t+")")}if(this.isDirty("contrast")){const t=this.get("contrast",1);1!=t&&(i+=" contrast("+t+")")}if(this.isDirty("sepia")){const t=this.get("sepia",0);0!=t&&(i+=" sepia("+t+")")}if(this.isDirty("hue")){const t=this.get("hue",0);0!=t&&(i+=" hue-rotate("+t+"deg)")}if(this.isDirty("invert")){const t=this.get("invert",0);0!=t&&(i+=" invert("+t+")")}if(i&&(t.filter=i),this.isDirty("cursorOverStyle")&&(t.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new h.FV([e.on("focus",(()=>{this.showTooltip()})),e.on("blur",(()=>{this.hideTooltip()}))]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(e.on("blur",(()=>{this.setPrivateRaw("touchHovering",!1)}))),this._disposers.push(e.once("boundschanged",(()=>{this.markDirtyAccessibility()})))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(t.exportable=this.get("exportable")),this.isDirty("interactive")){const t=this.events;this.get("interactive")&&!t.isDisposed()?this._hoverDp=new h.FV([t.on("click",(t=>{c.isTouchEvent(t.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout((()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}),10))})),t.on("globalpointerup",(t=>{c.isTouchEvent(t.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})),this._isDown&&this._handleUp(t)})),t.on("pointerover",(()=>{this._handleOver()})),t.on("pointerout",(()=>{this._handleOut()})),t.on("pointerdown",(t=>{this._handleDown(t)}))]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}dragStart(t){this._dragEvent=t,this.events.stopParentDispatch()}dragStop(t){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const e="dragstop";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(t){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const e=c.getPointerId(t.originalEvent);delete this._downPoints[e],0==p.keys(this._downPoints).length&&(this._isDown=!1)}}_hasMoved(t){const e=c.getPointerId(t.originalEvent),i=this._downPoints[e];if(i){const e=Math.abs(i.x-t.point.x),s=Math.abs(i.y-t.point.y);return e>5||s>5}return!1}_hasDown(){return p.keys(this._downPoints).length>0}_handleDown(t){const e=this.parent;if(e&&!this.get("draggable")&&e._handleDown(t),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:t.point.x,y:t.point.y},this._isDown=!0;const e=c.getPointerId(t.originalEvent);this._downPoints[e]={x:t.point.x,y:t.point.y}}}dragMove(t){let e=this._dragEvent;if(e){if(e.simulated&&!t.simulated)return!0;let i=0,s=this.parent,n=1;for(;null!=s;)i+=s.get("rotation",0),s=s.parent,s&&(n*=s.get("scale",1));let r=(t.point.x-e.point.x)/n,o=(t.point.y-e.point.y)/n;const a=this.events;if(e.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}if(this._isDragging){let e=this._dragPoint;this.set("x",e.x+r*g.cos(i)+o*g.sin(i)),this.set("y",e.y+o*g.cos(i)-r*g.sin(i));const s="dragged";a.isEnabled(s)&&a.dispatch(s,{type:s,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}else if(Math.hypot(r,o)>5){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let t=this.parent,e=0;for(;;){if(!t)return e;++e,t=t.parent}}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const t=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),t.isMeasured=!0,t.invalidateBounds();const e=this.parent;e&&"absolute"!=this.get("position")&&(null==e.get("width")||null==e.get("height")||e.get("layout"))&&e.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const t=this._adjustedLocalBounds;let e;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),e=this._adjustedLocalBounds):(e={left:0,right:0,top:0,bottom:0},this._localBounds=e,this._adjustedLocalBounds=e),!t||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom){const t="boundschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(t){let e=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));d.isNumber(e)&&t.right-t.left0?t.right=t.left+s:t.left=t.right+s),d.isNumber(n)&&(n>0?t.bottom=t.top+n:t.top=t.bottom+n)}_removeParent(t){t&&(t.children.removeValue(this),u.removeFirst(t._percentageSizeChildren,this),u.removeFirst(t._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(t){if(!this.isDisposed()){const e=this.getTooltip(),i=this.get("tooltipText"),s=this.get("tooltipHTML");if((i||s)&&e){const n=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);if("fixed"!=n&&t||(this._display._setMatrix(),t=this.toGlobal(r._getTooltipPoint())),"pointer"==n){const e=this.getPrivate("lastTooltipCoords");if(e&&e.x==t.x&&e.y==t.y)return;this.setPrivate("lastTooltipCoords",t)}e.set("pointTo",t),e.set("tooltipTarget",r),e.get("x")||e.set("x",t.x),e.get("y")||e.set("y",t.y),i&&e.label.set("text",i),s&&e.label.set("html",s);const o=this.dataItem;if(o&&e.label._setDataItem(o),"always"==this.get("showTooltipOn")&&(t.x<0||t.x>this._root.width()||t.y<0||t.y>this._root.height()))return void this.hideTooltip();e.label.text.markDirtyText();const a=e.show();return this.setPrivateRaw("showingTooltip",!0),a}}}hideTooltip(){const t=this.getTooltip();if(t&&(this.removePrivate("lastTooltipCoords"),t.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==t)){let e=t.get("keepTargetHover")&&0==t.get("stateAnimationDuration",0)?400:void 0;const i=t.hide(e);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){const t=this._localBounds;if(t){let e=0,i=0;return this.get("isMeasured")?(e=t.left+c.relativeToValue(this.get("tooltipX",0),t.right-t.left),i=t.top+c.relativeToValue(this.get("tooltipY",0),t.bottom-t.top)):(e=c.relativeToValue(this.get("tooltipX",0),this.width()),i=c.relativeToValue(this.get("tooltipY",0),this.height())),{x:e,y:i}}return{x:0,y:0}}getTooltip(){let t=this.get("tooltip");if(t)return t;{let t=this.parent;if(t)return t.getTooltip()}}_updatePosition(){const t=this.parent;let e=this.get("dx",0),i=this.get("dy",0),s=this.get("x"),n=this.getPrivate("x"),r=0,a=0;const h=this.get("position");s instanceof o.gG&&(s=t?t.innerWidth()*s.value+t.get("paddingLeft",0):0),d.isNumber(s)?r=s+e:null!=n?r=n:t&&"relative"==h&&(r=t.get("paddingLeft",0)+e);let l=this.get("y"),c=this.getPrivate("y");l instanceof o.gG&&(l=t?t.innerHeight()*l.value+t.get("paddingTop",0):0),d.isNumber(l)?a=l+i:null!=c?a=c:t&&"relative"==h&&(a=t.get("paddingTop",0)+i);const u=this._display;if(u.x!=r||u.y!=a){u.invalidateBounds(),u.x=r,u.y=a;const t="positionchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let t=this.get("x"),e=this.getPrivate("x");const i=this.parent;return i?t instanceof o.gG?c.relativeToValue(t,i.innerWidth())+i.get("paddingLeft",0):d.isNumber(t)?t:null!=e?e:i.get("paddingLeft",this._display.x):this._display.x}y(){let t=this.getPrivate("y");if(null!=t)return t;let e=this.get("y");const i=this.parent;return i?e instanceof o.gG?c.relativeToValue(e,i.innerHeight())+i.get("paddingTop",0):d.isNumber(e)?e:null!=t?t:i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const t=this.get("tooltip");t&&t.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const t=this._adjustedLocalBounds,e=this.x(),i=this.y();return{left:t.left+e,right:t.right+e,top:t.top+i,bottom:t.bottom+i}}globalBounds(){const t=this.localBounds(),e=this.toGlobal({x:t.left,y:t.top}),i=this.toGlobal({x:t.right,y:t.top}),s=this.toGlobal({x:t.right,y:t.bottom}),n=this.toGlobal({x:t.left,y:t.bottom});return{left:Math.min(e.x,i.x,s.x,n.x),top:Math.min(e.y,i.y,s.y,n.y),right:Math.max(e.x,i.x,s.x,n.x),bottom:Math.max(e.y,i.y,s.y,n.y)}}_onShow(t){}_onHide(t){}appear(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.hide(0),e?new Promise(((i,s)=>{this.setTimeout((()=>{i(this.show(t))}),e)})):this.show(t)}))}show(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(t);const e=this.states.applyAnimate("default",t);yield(0,l.ne)(e),this._isShowing=!1}}))}hide(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let e=this.states.lookup("hidden");e||(e=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(t);const i=this.states.applyAnimate("hidden",t);yield(0,l.ne)(i),this._isHiding=!1}}))}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const t=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*t:t}compositeScale(){const t=this.get("scale",1);return this._parent?this._parent.compositeScale()*t:t}compositeRotation(){const t=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+t:t}width(){let t=this.get("width"),e=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),s=this.getPrivate("width"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerWidth()*t.value:this._root.width()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}maxWidth(){let t=this.get("maxWidth",this.getPrivate("maxWidth"));if(d.isNumber(t))return t;{let t=this.get("width");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerWidth():this._root.width()}maxHeight(){let t=this.get("maxHeight",this.getPrivate("maxHeight"));if(d.isNumber(t))return t;{let t=this.get("height");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerHeight():this._root.height()}height(){let t=this.get("height"),e=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),s=this.getPrivate("height"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerHeight()*t.value:this._root.height()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}_findStaticTemplate(t){return this._templateField&&t(this._templateField)?this._templateField:super._findStaticTemplate(t)}_walkParents(t){(this._parent||this._virtualParent)&&this._walkParent(t)}_walkParent(t){this._parent?this._parent._walkParent(t):this._virtualParent&&this._virtualParent._walkParent(t),t(this)}set virtualParent(t){this._virtualParent!==t&&(this._virtualParent=t,this._applyThemes())}get parent(){return this._parent}_setParent(t,e=!1){const i=this._parent;t!==i&&(this.markDirtyBounds(),t.markDirty(),this._parent=t,e&&(this._removeParent(i),t&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(t){return this._display.toGlobal(t)}toLocal(t){return this._display.toLocal(t)}_getDownPoint(){const t=this._getDownPointId();if(t)return this._downPoints[t]}_getDownPointId(){if(this._downPoints)return p.keysOrdered(this._downPoints,((t,e)=>t>e?1:t{this._resize(t.target,-1)})),this.gripR.events.on("dragged",(t=>{this._resize(t.target,1)})),this.gripL.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripR.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripT.events.on("dragged",(t=>{this._rotate(t,90)})),this.gripB.events.on("dragged",(t=>{this._rotate(t,-90)})),this.gripT.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripB.events.on("dragstart",(t=>{this._resizeStart(t.target)}))}_resizeStart(t){const e=this.get("sprite");e&&(this._is=e.get("scale",1),this._ix=t.x(),this._iw=this.width()/2)}_resize(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=Math.max(.01,this._is*(1+e*(t.x()-this._ix)/this._iw));s?s.set("scale",n):i.set("scale",n),i.states.lookup("default").set("scale",n),this._updatePositions()}}_rotate(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=this.parent;if(n){const r=this.get("rotationStep",10);let o=Math.round((h.getAngle({x:this.x(),y:this.y()},n.toLocal(t.point))+e)/r)*r;s?s.set("rotation",o):i.set("rotation",o),i.states.lookup("default").set("rotation",o),this._updatePositions()}}}_createGrip(t){const e=this.children.push(s.W.new(this._root,{themeTags:["grip",t],setStateOnChildren:!0,draggable:!0}));return e.children.push(r.c.new(this._root,{themeTags:["outline"],centerX:n.CI,centerY:n.CI})),e.children.push(r.c.new(this._root,{centerX:n.CI,centerY:n.CI})),e}_updateChildren(){if(super._updateChildren(),this.isDirty("sprite")){const t=this.get("sprite");if(t){this.show(0),this.setPrivate("visible",!0),this._updatePositions();const e=t.parent;e&&e.children.moveValue(this,0),this._positionDP=t.events.on("positionchanged",(()=>{this._updatePositions()})),this._positionDP=t.events.on("boundschanged",(()=>{this._updatePositions()}))}else this.hide(0),this.setPrivate("visible",!1),this._positionDP&&this._positionDP.dispose()}(this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation"))&&this._updatePositions()}_updatePositions(){const t=this.get("sprite");if(t){let e=t.localBounds(),i=t.get("scale",1),s=20,r=(e.right-e.left)*i+s,o=(e.bottom-e.top)*i+s,a=t.get("rotation",0);const l=this.rectangle;let c=t.get("centerX",n.CI),u=t.get("centerY",n.CI),d=0;c instanceof n.gG&&(d=c.value);let p=0;u instanceof n.gG&&(p=u.value),l.setAll({centerX:c,centerY:u,width:r,height:o}),this.setAll({x:t.x()+s*(d-.5)*h.cos(a)-s*(p-.5)*h.sin(a),y:t.y()+s*(p-.5)*h.cos(a)+s*(d-.5)*h.sin(a),width:r,height:o,rotation:a}),this.gripT.setAll({x:(.5-d)*r,y:-p*o}),this.gripB.setAll({x:(.5-d)*r,y:(1-p)*o}),this.gripL.setAll({x:-d*r,y:(.5-p)*o}),this.gripR.setAll({x:(1-d)*r,y:(.5-p)*o}),this.rectangle.setAll({width:r,height:o})}}}l.className="SpriteResizer",l.classNames=s.W.classNames.concat([l.className])},2036:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(4596),n=i(2132),r=i(5071),o=i(7652),a=i(7449);class h extends s.j{constructor(){super(...arguments),this.textStyle=this._root._renderer.makeTextStyle(),this._display=this._root._renderer.makeText("",this.textStyle),this._textStyles=["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}_updateBounds(){if(this.get("text")){super._updateBounds();let t=this.get("fillGradient");t&&(this._display.style.fill=t.getFill(this))}else{let t={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=t}}_changed(){super._changed(),this._display.clear();let t=this.textStyle;if(this.isDirty("opacity")){let t=this.get("opacity",1);this._display.alpha=t}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),"tooltip"==this.get("role")&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new a.ku((()=>{this._root._removeTooltipElement(this)}))),this.isDirty("width")&&(t.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(t.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(t.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(t.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(t.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(t.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){const e=this.get("fill"),i=this.get("fillGradient"),s=this.get("fillOpacity");if(i){if(e){const t=i.get("stops",[]);t.length&&r.each(t,(t=>{t.color&&!t.colorInherited||!e||(t.color=e,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=s,t.opacityInherited=!0)}))}t.fill=i.getFill(this)}else e&&(t.fill=e)}if(this.isDirty("fillOpacity")){let e=this.get("fillOpacity",1);e&&(t.fillOpacity=e)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(t.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(t.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),r.each(this._textStyles,(e=>{this._dirty[e]&&(t[e]=this.get(e),this.markDirtyBounds())})),t.fontSize=this.get("fontSize"),t.fontFamily=this.get("fontFamily"),this._display.style=t,this.isDirty("role")&&"tooltip"==this.get("role")&&this._root.updateTooltip(this)}_getText(){let t=this.get("text","");return this.get("maxChars")&&(t=o.truncateTextWithEllipsis(t,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?(0,n.q)(this,t):t}_getAccessibleText(){const t=this.get("ariaLabel");return void 0!==t?this.get("populateText")?(0,n.q)(this,t):t:this._getText()}markDirtyText(){this._display.text=this._getText(),"tooltip"==this.get("role")&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(t){super._setDataItem(t),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}h.className="Text",h.classNames=s.j.classNames.concat([h.className])},2438:function(t,e,i){"use strict";i.d(e,{d:function(){return n}});var s=i(2077);class n extends s.x{}n.className="Tick",n.classNames=s.x.classNames.concat([n.className])},2876:function(t,e,i){"use strict";i.d(e,{u:function(){return d}});var s=i(7449),n=i(962),r=i(8931),o=i(8777),a=i(6245),h=i(1112),l=i(751),c=i(5071),u=i(7652);class d extends o.W{constructor(t,e,i,s=[]){super(t,e,i,s),this._fx=0,this._fy=0,this._w=0,this._h=0,this._htmlContentHovered=!1}_afterNew(){this._settings.themeTags=u.mergeTags(this._settings.themeTags,["tooltip"]),super._afterNew(),this._setDefaultFn("background",(()=>r.i.new(this._root,{}))).set("themeTags",["tooltip","background"]),this._label=this.children.push(n._.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",(()=>{this._updateBackground()}))),this._disposers.push(this.on("bounds",(()=>{this._updateBackground()}))),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",(t=>{t&&(this._disposers.push(u.addEventListener(t,"pointerover",(t=>{this._htmlContentHovered=!0}))),this._disposers.push(u.addEventListener(t,"pointerout",(t=>{this._htmlContentHovered=!1}))))}))),this.on("visible",(t=>{this._handleReaderAnnouncement()})),this.label.events.on("dataitemchanged",(t=>{this._handleReaderAnnouncement()})),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),c.remove(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width"),null!=this.get("labelText")&&this.label.set("text",this.get("labelText")),null!=this.get("labelHTML")&&this.label.set("html",this.get("labelHTML")),null!=this.get("labelAriaLabel")&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover"))if(this.get("keepTargetHover")){const t=this.get("background");this._keepHoverDp=new s.FV([t.events.on("pointerover",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),e.hover())})),t.events.on("pointerout",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),this._htmlContentHovered||e.unhover())}))]),this.label.onPrivate("htmlElement",(e=>{this._keepHoverDp&&e&&this._keepHoverDp.disposers.push(u.addEventListener(e,"pointerleave",(e=>{const i=this.root._renderer.getEvent(e);t.events.dispatch("pointerout",{type:"pointerout",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))}))}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let t=this.get("tooltipTarget");const e=this.get("background");let i,s;if(t&&e){if(i=t.get("fill"),s=t.get("stroke"),null==i&&(i=s),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),null!=i&&e.set("fill",i),this._fillDp=t.on("fill",(t=>{null!=t&&(e.set("fill",t),this._updateTextColor(t))})),this._disposers.push(this._fillDp)),this.get("getFillGradientFromSprite")){this._fillGrDp&&this._fillGrDp.dispose();let i=t.get("fillGradient");null!=i&&e.set("fillGradient",i),this._fillGrDp=t.on("fillGradient",(t=>{null!=t&&e.set("fillGradient",t)})),this._disposers.push(this._fillGrDp)}this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),null!=i&&e.set("stroke",i),this._strokeDp=t.on("fill",(t=>{null!=t&&e.set("stroke",t)})),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),null!=i&&this.label.set("fill",i),this._labelDp=t.on("fill",(t=>{null!=t&&this.label.set("fill",t)})),this._disposers.push(this._labelDp))}this._updateTextColor(i)}_updateTextColor(t){this.get("autoTextColor")&&(null==t&&(t=this.get("background").get("fill")),null==t&&(t=this._root.interfaceColors.get("background")),t instanceof h.Il&&this.label.set("fill",h.Il.alternative(t,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(t){super._setDataItem(t),this.label._setDataItem(t)}_updateBackground(){super.updateBackground();const t=this._root.container;if(t){let e=.5,i=.5,s=this.get("centerX");s instanceof a.gG&&(e=s.value);let n=this.get("centerY");n instanceof a.gG&&(i=n.value);let o=t.width(),h=t.height(),c=this.parent,u=0,d=0;if(c){u=c.x(),d=c.y();const t=c.get("layerMargin");t&&(u+=t.left||0,d+=t.top||0,o+=(t.left||0)+(t.right||0),h+=(t.top||0)+(t.bottom||0))}const p=this.get("bounds",{left:-u,top:-d,right:o-u,bottom:h-d});this._updateBounds();let g=this.width(),f=this.height();0===g&&(g=this._w),0===f&&(f=this._h);let _=this.get("pointTo",{x:o/2,y:h/2}),m=_.x,y=_.y,v=this.get("pointerOrientation"),w=this.get("background"),b=0,x=0,D=0;w instanceof r.i&&(b=w.get("pointerLength",0),x=w.get("strokeWidth",0)/2,D=x,w.set("width",g),w.set("height",f));let k=0,T=0,M=p.right-p.left,E=p.bottom-p.top;"horizontal"==v||"left"==v||"right"==v?(x=0,"horizontal"==v?m>p.left+M/2?(m-=g*(1-e)+b,D*=-1):m+=g*e+b:"left"==v?m+=g*(1-e)+b:(m-=g*e+b,D*=-1)):(D=0,"vertical"==v?y>p.top+f/2+b?y-=f*(1-i)+b:(y+=f*i+b,x*=-1):"down"==v?y-=f*(1-i)+b:(y+=f*i+b,x*=-1)),m=l.fitToRange(m,p.left+g*e,p.left+M-g*(1-e))+D,y=l.fitToRange(y,p.top+f*i,p.top+E-f*(1-i))-x,k=_.x-m+g*e+D,T=_.y-y+f*i-x,this._fx=m,this._fy=y;const O=this.get("animationDuration",0);if(O>0&&this.get("visible")&&this.get("opacity")>.1){const t=this.get("animationEasing");this.animate({key:"x",to:m,duration:O,easing:t}),this.animate({key:"y",to:y,duration:O,easing:t})}else this.set("x",m),this.set("y",y);w instanceof r.i&&(w.set("pointerX",k),w.set("pointerY",T)),g>0&&(this._w=g),f>0&&(this._h=f)}}}d.className="Tooltip",d.classNames=o.W.classNames.concat([d.className])},941:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){const t=this.width(),e=this.height(),i=this._display;i.moveTo(-t/2,e/2),i.lineTo(0,-e/2),i.lineTo(t/2,e/2),i.lineTo(-t/2,e/2),i.closePath()}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Triangle",n.classNames=s.T.classNames.concat([n.className])},1706:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingTop",0),i=t.innerHeight(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minHeight",t.getPrivate("minHeight",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.height()),i-=e+t.get("marginTop",0)+t.get("marginBottom",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginTop",0)-t.get("marginBottom",0),n=t.get("minHeight",t.getPrivate("minHeight",-1/0)),r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("height",s)}else t._prevSettings.height instanceof r.gG&&t.setPrivate("height",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginTop",0),s=e.top,n=e.bottom,r=t.get("maxHeight");r&&n-s>r&&(n=s+r);let o=t.get("marginBottom",0),h=a+i-s;t.setPrivate("y",h),a=h+n+o}else t.setPrivate("y",void 0)}))}}o.className="VerticalLayout",o.classNames=s.A.classNames.concat([o.className])},6044:function(t,e,i){"use strict";i.d(e,{H:function(){return h}});var s=i(8777),n=i(8054),r=i(1479),o=i(7449),a=i(2647);class h extends s.W{constructor(){super(...arguments),this.homeButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["home"]})),this.plusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["plus"]})),this.minusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["minus"]}))}_afterNew(){super._afterNew(),this.set("position","absolute"),this.set("layout",this._root.verticalLayout),this.addTag("zoomtools"),this.plusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.minusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.homeButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("target")){const t=this.get("target"),e=this._prevSettings.target;t&&(t instanceof a.Y&&(this._targetDisposer=this.addDisposer(t.contents.on("scale",(e=>{e==t.get("minZoomLevel")?this.minusButton.set("disabled",!0):this.minusButton.set("disabled",!1),e==t.get("maxZoomLevel")?this.plusButton.set("disabled",!0):this.plusButton.set("disabled",!1)}))),this.root.events.once("frameended",(()=>{t.get("scale")==t.get("minZoomLevel")&&this.minusButton.set("disabled",!0)}))),this._disposer=new o.FV([this.plusButton.events.on("click",(()=>{t.zoomIn()})),this.minusButton.events.on("click",(()=>{t.zoomOut()})),this.homeButton.events.on("click",(()=>{t.goHome()}))])),e&&(this._disposer&&this._disposer.dispose(),this._targetDisposer&&this._targetDisposer.dispose())}}}h.className="ZoomTools",h.classNames=s.W.classNames.concat([h.className])},2647:function(t,e,i){"use strict";i.d(e,{Y:function(){return u}});var s=i(8777),n=i(6245),r=i(7142),o=i(1112),a=i(7652),h=i(751),l=i(256),c=i(5040);class u extends s.W{constructor(){super(...arguments),this._movePoints={},this._downScale=1,this._downX=0,this._downY=0,this.contents=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,x:0,y:0,draggable:!0,background:r.A.new(this._root,{fill:(0,o.$_)(16777215),fillOpacity:0})}))}_afterNew(){super._afterNew();const t=this.contents.events;this._disposers.push(t.on("pointerdown",(t=>{this._handleThisDown(t)}))),this._disposers.push(t.on("globalpointerup",(t=>{this._handleThisUp(t)}))),this._disposers.push(t.on("globalpointermove",(t=>{this._handleThisMove(t)})));const e=this.contents.get("background");e&&(e.adapters.add("width",(t=>20*Number(t))),e.adapters.add("height",(t=>20*Number(t))),e.adapters.add("x",(t=>Number(t)-e.width()/2)),e.adapters.add("y",(t=>Number(t)-e.height()/2)));const i=this.contents;i.adapters.add("x",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.width();t=Math.min(n*s,t),t=Math.max(this.width()-n*e*(1+s),t)}return t})),i.adapters.add("y",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.height();t=Math.min(n*s,t),t=Math.max(this.height()-n*e*(1+s),t)}return t}))}_prepareChildren(){super._prepareChildren(),this.isDirty("wheelable")&&this._handleSetWheel(),this.contents._display.cancelTouch=this.get("pinchZoom",!1)}_handleSetWheel(){this.get("wheelable")?(this._wheelDp&&this._wheelDp.dispose(),this._wheelDp=this.events.on("wheel",(t=>{const e=t.originalEvent;if(!a.isLocalEvent(e,this))return;e.preventDefault();const i=this.toLocal(t.point);this._handleWheelZoom(e.deltaY,i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_handleWheelZoom(t,e){let i=this.get("zoomStep",2),s=this.contents.get("scale",1),n=s;t>0?n=s/i:t<0&&(n=s*i),n!=s&&this.zoomToPoint(e,n)}zoomToPoint(t,e){e&&(e=h.fitToRange(e,this.get("minZoomLevel",1),this.get("maxZoomLevel",32)));const i=this.contents.get("scale",1);let s=t.x,n=t.y,r=s,o=n;const a=this.contents;let l=r-(s-a.x())/i*e,c=o-(n-a.y())/i*e;return this._animateTo(l,c,e),this._za}zoomIn(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)*this.get("zoomStep",2))}zoomOut(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)/this.get("zoomStep",2))}goHome(){return this._animateTo(0,0,1)}_animateTo(t,e,i){const s=this.get("animationDuration",0),n=this.get("animationEasing"),r=this.contents;this._txa=r.animate({key:"x",to:t,duration:s,easing:n}),this._tya=r.animate({key:"y",to:e,duration:s,easing:n}),this._za=r.animate({key:"scale",to:i,duration:s,easing:n})}_handleThisUp(t){this._downPoints={}}_handleThisDown(t){const e=this.contents;this._downScale=e.get("scale",1);const i=e._downPoints;let s=l.keys(i).length;if(1==s){let e=i[1];e||(e=i[0]),e&&e.x==t.point.x&&e.y==t.point.y&&(s=0)}if(s>0){this._downX=e.x(),this._downY=e.y();const t=e._getDownPointId();if(t){let i=this._movePoints[t];i&&(e._downPoints[t]=i)}}}_handleThisMove(t){const e=t.originalEvent.pointerId;this.get("pinchZoom")&&e&&(this._movePoints[e]=t.point,l.keys(this.contents._downPoints).length>1)&&this._handlePinch()}_handlePinch(){let t=0,e=[],i=[];if(l.each(this.contents._downPoints,((s,n)=>{e[t]=n;let r=this._movePoints[s];r&&(i[t]=r),t++})),e.length>1&&i.length>1){this.contents._isDragging=!1;let t=e[0],s=e[1],n=i[0],r=i[1];if(t&&s&&n&&r){t=this.toLocal(t),s=this.toLocal(s),n=this.toLocal(n),r=this.toLocal(r);let e=Math.hypot(s.x-t.x,s.y-t.y),i=Math.hypot(r.x-n.x,r.y-n.y)/e*this._downScale,o={x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2},a={x:t.x+(s.x-t.x)/2,y:t.y+(s.y-t.y)/2},h=this._downX||0,l=this._downY||0,c=this._downScale,u=o.x-(-h+a.x)/c*i,d=o.y-(-l+a.y)/c*i;this.contents.setAll({x:u,y:d,scale:i})}}}}u.className="ZoomableContainer",u.classNames=s.W.classNames.concat([u.className])},4102:function(t,e,i){"use strict";i.d(e,{mM:function(){return at},uK:function(){return rt}});var s=i(4680),n=i(1112);class r{constructor(t=1,e=0,i=0,s=1,n=0,r=0){this.a=t,this.b=e,this.c=i,this.d=s,this.tx=n,this.ty=r}setTransform(t,e,i,s,n,r=1){this.a=Math.cos(n)*r,this.b=Math.sin(n)*r,this.c=-Math.sin(n)*r,this.d=Math.cos(n)*r,this.tx=t-(i*this.a+s*this.c),this.ty=e-(i*this.b+s*this.d)}apply(t){return{x:this.a*t.x+this.c*t.y+this.tx,y:this.b*t.x+this.d*t.y+this.ty}}applyInverse(t){const e=1/(this.a*this.d+this.c*-this.b);return{x:this.d*e*t.x+-this.c*e*t.y+(this.ty*this.c-this.tx*this.d)*e,y:this.a*e*t.y+-this.b*e*t.x+(-this.ty*this.a+this.tx*this.b)*e}}append(t){const e=this.a,i=this.b,s=this.c,n=this.d;this.a=t.a*e+t.b*s,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*s,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*s+this.tx,this.ty=t.tx*i+t.ty*n+this.ty}prepend(t){const e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){const e=this.a,i=this.c;this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty}copyFrom(t){this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty}}var o=i(6245),a=i(7449),h=i(7255),l=i(7652),c=i(5071),u=i(256),d=i(5040),p=i(751),g=2*Math.PI,f=function(t,e,i,s,n,r,o){var a=t.x,h=t.y;return{x:s*(a*=e)-n*(h*=i)+r,y:n*a+s*h+o}},_=function(t,e){var i=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),s=Math.cos(t),n=Math.sin(t),r=Math.cos(t+e),o=Math.sin(t+e);return[{x:s-n*i,y:n+s*i},{x:r+o*i,y:o-r*i},{x:r,y:o}]},m=function(t,e,i,s){var n=t*i+e*s;return n>1&&(n=1),n<-1&&(n=-1),(t*s-e*i<0?-1:1)*Math.acos(n)},y=function(t){var e=t.px,i=t.py,s=t.cx,n=t.cy,r=t.rx,o=t.ry,a=t.xAxisRotation,h=void 0===a?0:a,l=t.largeArcFlag,c=void 0===l?0:l,u=t.sweepFlag,d=void 0===u?0:u,p=[];if(0===r||0===o)return[];var y=Math.sin(h*g/360),v=Math.cos(h*g/360),w=v*(e-s)/2+y*(i-n)/2,b=-y*(e-s)/2+v*(i-n)/2;if(0===w&&0===b)return[];r=Math.abs(r),o=Math.abs(o);var x=Math.pow(w,2)/Math.pow(r,2)+Math.pow(b,2)/Math.pow(o,2);x>1&&(r*=Math.sqrt(x),o*=Math.sqrt(x));var D=function(t,e,i,s,n,r,o,a,h,l,c,u){var d=Math.pow(n,2),p=Math.pow(r,2),f=Math.pow(c,2),_=Math.pow(u,2),y=d*p-d*_-p*f;y<0&&(y=0),y/=d*_+p*f;var v=(y=Math.sqrt(y)*(o===a?-1:1))*n/r*u,w=y*-r/n*c,b=l*v-h*w+(t+i)/2,x=h*v+l*w+(e+s)/2,D=(c-v)/n,k=(u-w)/r,T=(-c-v)/n,M=(-u-w)/r,E=m(1,0,D,k),O=m(D,k,T,M);return 0===a&&O>0&&(O-=g),1===a&&O<0&&(O+=g),[b,x,E,O]}(e,i,s,n,r,o,c,d,y,v,w,b),k=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],s=!0,n=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);s=!0);}catch(t){n=!0,r=t}finally{try{!s&&a.return&&a.return()}finally{if(n)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(D,4),T=k[0],M=k[1],E=k[2],O=k[3],P=Math.abs(O)/(g/4);Math.abs(1-P)<1e-7&&(P=1);var S=Math.max(Math.ceil(P),1);O/=S;for(var N=0;N1){const e=/^([01])([01])(.*)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t.splice(i,0,e[2]),++i,e[3].length>0?t[i]=e[3]:t.splice(i,1))}if(++i,s=t[i],s.length>1){const e=/^([01])(.+)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t[i]=e[2])}}}function D(t){if(0===t||1===t)return t;throw new Error("Flag must be 0 or 1")}function k(t,e){for(;(!t.interactive||e(t))&&t._parent;)t=t._parent}function T(t,e,i){return l.addEventListener(t,l.getRendererEvent(e),(t=>{const e=l.getEventTarget(t);let s=t.touches;s?(0==s.length&&(s=t.changedTouches),i(c.copy(s),e)):i([t],e)}))}function M(t){const e=document.createElement("canvas");e.width=1,e.height=1;const i=e.getContext("2d",{willReadFrequently:!0});i.drawImage(t,0,0,1,1);try{return i.getImageData(0,0,1,1),!1}catch(e){return console.warn('Image "'+t.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function E(t){t.width=0,t.height=0,t.style.width="0px",t.style.height="0px"}function O(t){return Math.floor(t)+.5}class P{constructor(){this._x=0,this._y=0}get x(){return this._x}get y(){return this._y}set x(t){this._x=t}set y(t){this._y=t}}class S extends a.KK{constructor(t){super(),this.mask=null,this.visible=!0,this.exportable=!0,this.interactive=!1,this.inactive=null,this.wheelable=!1,this.cancelTouch=!1,this.isMeasured=!1,this.buttonMode=!1,this.alpha=1,this.compoundAlpha=1,this.angle=0,this.scale=1,this.x=0,this.y=0,this.crisp=!1,this.pivot=new P,this._localMatrix=new r,this._matrix=new r,this._uMatrix=new r,this._renderer=t}subStatus(t){return{inactive:null==this.inactive?t.inactive:this.inactive,layer:this._layer||t.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let t=this;for(;;){if(t._layer)return t._layer;if(!t._parent)return this._renderer.defaultLayer;t=t._parent}}setLayer(t,e){if(null==t)this._layer=void 0;else{const i=!0;this._layer=this._renderer.getLayer(t,i),this._layer.visible=i,this._layer.margin=e,e&&l.setInteractive(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost()}}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(t){}_getColorId(){return void 0===this._colorId&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(t){return!t.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(t){return this._isInteractive(t)}contains(t){for(;;){if(t===this)return!0;if(!t._parent)return!1;t=t._parent}}toGlobal(t){return this._matrix.apply(t)}toLocal(t){return this._matrix.applyInverse(t)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){if(!this._localBounds){const t=1e7;this._localBounds={left:t,top:t,right:-t,bottom:-t},this._addBounds(this._localBounds)}return this._localBounds}getAdjustedBounds(t){this._setMatrix();const e=this.getLocalMatrix(),i=e.apply({x:t.left,y:t.top}),s=e.apply({x:t.right,y:t.top}),n=e.apply({x:t.right,y:t.bottom}),r=e.apply({x:t.left,y:t.bottom});return{left:Math.min(i.x,s.x,n.x,r.x),top:Math.min(i.y,s.y,n.y,r.y),right:Math.max(i.x,s.x,n.x,r.x),bottom:Math.max(i.y,s.y,n.y,r.y)}}on(t,e,i){return this.interactive?this._renderer._addEvent(this,t,e,i):new a.ku((()=>{}))}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(t,e){const i=this._matrix;let s=i.tx*e,n=i.ty*e;this.crisp&&(s=O(s),n=O(n)),t.setTransform(i.a*e,i.b*e,i.c*e,i.d*e,s,n)}_transformMargin(t,e,i){const s=this._matrix;t.setTransform(s.a*e,s.b*e,s.c*e,s.d*e,(s.tx+i.left)*e,(s.ty+i.top)*e)}_transformLayer(t,e,i){i.margin?this._transformMargin(t,i.scale||e,i.margin):this._transform(t,i.scale||e)}render(t,e=0){if(this.visible&&(!1!==this.exportable||!this._renderer._omitTainted)){this._setMatrix();const i=this.subStatus(t),s=this._renderer.resolution,n=this._renderer.layers,r=this._renderer._ghostLayer,o=r.context,a=this.mask;a&&a._setMatrix(),c.each(n,(t=>{if(t){const e=t.context;e.save(),a&&(a._transformLayer(e,s,t),a._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(e,s,t),this.filter&&(e.filter=this.filter)}})),o.save(),a&&this._isInteractiveMask(i)&&(a._transformMargin(o,s,r.margin),a._runPath(o),o.clip()),this._transformMargin(o,s,r.margin),i.layer.order>0&&!e&&c.move(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,e),o.restore(),c.each(n,(t=>{t&&t.context.restore()}))}}_render(t,e=0){!1===this.exportable&&(t.layer.tainted=!0)}_ghostOnly(t=0){return t>0}_drawGhost(t,e=0){const i=this._isInteractive(t),s=t.layer.order||0;return!(!i||(0!=s||this._ghostOnly(e))&&s!=e)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some((t=>t.value===this))}shouldCancelTouch(){const t=this._renderer;return!(t.tapToActivate&&!t._touchActive)&&(!!this.cancelTouch||!!this._parent&&this._parent.shouldCancelTouch())}}class N extends S{constructor(){super(...arguments),this.interactiveChildren=!0,this._children=[]}_isInteractiveMask(t){return this.interactiveChildren||super._isInteractiveMask(t)}addChild(t){t._parent=this,this._children.push(t),t._layer&&this.registerChildLayer(t._layer)}addChildAt(t,e){t._parent=this,this._children.splice(e,0,t),t._layer&&this.registerChildLayer(t._layer)}removeChild(t){t._parent=void 0,c.removeFirst(this._children,t)}_render(t,e){super._render(t);const i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,c.each(this._children,(i=>{i.compoundAlpha=this.compoundAlpha*this.alpha,i.render(t,e)})),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(t){this._childLayers||(this._childLayers=[]),c.pushOne(this._childLayers,t),this._parent&&this._parent.registerChildLayer(t)}markDirtyLayer(t=!1){super.markDirtyLayer(),t&&this._childLayers&&c.each(this._childLayers,(t=>t.dirty=!0))}_dispose(){super._dispose(),this._childLayers&&c.each(this._childLayers,(t=>{t.dirty=!0}))}}function C(t,e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.right=Math.max(t.right,e.x),t.bottom=Math.max(t.bottom,e.y)}class L{colorize(t,e){}colorizeGhost(t,e){this.colorize(t,e)}path(t){}pathGhost(t){this.path(t)}addBounds(t){}}class A extends L{colorize(t,e){t.beginPath()}}class R extends L{constructor(t){super(),this.color=t}colorize(t,e){t.fillStyle=void 0!==e?e:this.color}}class U extends L{constructor(t){super(),this.clearShadow=t}colorize(t,e){t.fill(),this.clearShadow&&(t.shadowColor="",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}}class B extends L{colorize(t,e){t.stroke()}}class F extends L{constructor(t,e,i,s){super(),this.width=t,this.color=e,this.lineJoin=i,this.lineCap=s}colorize(t,e){t.strokeStyle=void 0!==e?e:this.color,t.lineWidth=this.width,this.lineJoin&&(t.lineJoin=this.lineJoin),this.lineCap&&(t.lineCap=this.lineCap)}}class I extends L{constructor(t){super(),this.dash=t}colorize(t,e){t.setLineDash(this.dash)}}class H extends L{constructor(t){super(),this.dashOffset=t}colorize(t,e){t.lineDashOffset=this.dashOffset}}class z extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.width=i,this.height=s}path(t){t.rect(this.x,this.y,this.width,this.height)}addBounds(t){const e=this.x,i=this.y,s=e+this.width,n=i+this.height;C(t,{x:e,y:i}),C(t,{x:s,y:i}),C(t,{x:e,y:n}),C(t,{x:s,y:n})}}class G extends L{constructor(t,e,i){super(),this.x=t,this.y=e,this.radius=i}path(t){t.moveTo(this.x+this.radius,this.y),t.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radius,y:this.y-this.radius}),C(t,{x:this.x+this.radius,y:this.y+this.radius})}}class V extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.radiusX=i,this.radiusY=s}path(t){t.ellipse(0,0,this.radiusX,this.radiusY,0,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radiusX,y:this.y-this.radiusY}),C(t,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class W extends L{constructor(t,e,i,s,n,r){super(),this.cx=t,this.cy=e,this.radius=i,this.startAngle=s,this.endAngle=n,this.anticlockwise=r}path(t){this.radius>0&&t.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(t){let e=p.getArcBounds(this.cx,this.cy,this.startAngle*p.DEGREES,this.endAngle*p.DEGREES,this.radius);C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}class Y extends L{constructor(t,e,i,s,n){super(),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.radius=n}path(t){this.radius>0&&t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(t){}}class j extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.lineTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class X extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.moveTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class $ extends L{path(t){t.closePath()}}class Z extends L{constructor(t,e,i,s,n,r){super(),this.cpX=t,this.cpY=e,this.cpX2=i,this.cpY2=s,this.toX=n,this.toY=r}path(t){t.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.cpX2,y:this.cpY2}),C(t,{x:this.toX,y:this.toY})}}class K extends L{constructor(t,e,i,s){super(),this.cpX=t,this.cpY=e,this.toX=i,this.toY=s}path(t){t.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.toX,y:this.toY})}}class q extends L{constructor(t,e,i,s,n){super(),this.color=t,this.blur=e,this.offsetX=i,this.offsetY=s,this.opacity=n}colorize(t,e){this.opacity&&(t.fillStyle=this.color),t.shadowColor=this.color,t.shadowBlur=this.blur,t.shadowOffsetX=this.offsetX,t.shadowOffsetY=this.offsetY}colorizeGhost(t,e){}}class Q extends L{constructor(t,e,i,s,n){super(),this.image=t,this.width=e,this.height=i,this.x=s,this.y=n}path(t){t.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(t){C(t,{x:this.x,y:this.y}),C(t,{x:this.width,y:this.height})}}class J extends S{constructor(){super(...arguments),this._operations=[],this.blendMode=s.b.NORMAL,this._hasShadows=!1}clear(){super.clear(),this._operations.length=0}_pushOp(t){this._operations.push(t)}beginFill(t,e=1){this._fillAlpha=e,t?t instanceof n.Il?this._pushOp(new R(t.toCSS(e))):(this.isMeasured=!0,this._pushOp(new R(t))):this._pushOp(new R("rgba(0, 0, 0, "+e+")"))}endFill(){this._pushOp(new U(this._hasShadows))}endStroke(){this._pushOp(new B)}beginPath(){this._pushOp(new A)}lineStyle(t=0,e,i=1,s,r){this._strokeAlpha=i,e?e instanceof n.Il?this._pushOp(new F(t,e.toCSS(i),s,r)):this._pushOp(new F(t,e,s,r)):this._pushOp(new F(t,"rgba(0, 0, 0, "+i+")",s,r))}setLineDash(t){this._pushOp(new I(t||[]))}setLineDashOffset(t=0){this._pushOp(new H(t))}drawRect(t,e,i,s){this._pushOp(new z(t,e,i,s))}drawCircle(t,e,i){this._pushOp(new G(t,e,i))}drawEllipse(t,e,i,s){this._pushOp(new V(t,e,i,s))}arc(t,e,i,s,n,r=!1){this._pushOp(new W(t,e,i,s,n,r))}arcTo(t,e,i,s,n){this._pushOp(new Y(t,e,i,s,n))}lineTo(t,e){this._pushOp(new j(t,e))}moveTo(t,e){this._pushOp(new X(t,e))}bezierCurveTo(t,e,i,s,n,r){this._pushOp(new Z(t,e,i,s,n,r))}quadraticCurveTo(t,e,i,s){this._pushOp(new K(t,e,i,s))}closePath(){this._pushOp(new $)}shadow(t,e=0,i=0,s=0,n){this._hasShadows=!0,this._pushOp(new q(n?t.toCSS(n):t.toCSS(this._fillAlpha||this._strokeAlpha),e,i,s))}image(t,e,i,s,n){this._pushOp(new Q(t,e,i,s,n))}svgPath(t){let e=0,i=0,s=null,n=null,r=null,o=null;const a=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,h=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g,l=this._operations.length;try{let l;for(;null!==(l=a.exec(t));){const t=l[1],a=l[2],u=[];for(;null!==(l=h.exec(a));)u.push(l[1]);switch("S"!==t&&"s"!==t&&"C"!==t&&"c"!==t&&(s=null,n=null),"Q"!==t&&"q"!==t&&"T"!==t&&"t"!==t&&(r=null,o=null),t){case"M":b(t,u.length,2),e=+u[0],i=+u[1],this.moveTo(e,i);for(let t=2;t{this.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y),e=t.x,i=t.y}))}break;case"Z":case"z":v(t,u.length,0),this.closePath()}}}catch(e){this._operations.length=l,console.warn("Error when parsing svgPath:\n "+e.message+"\n"+t)}}_runPath(t){t.beginPath(),c.each(this._operations,(e=>{e.path(t)}))}_render(t,e=0){super._render(t);const i=t.layer.dirty,s=this._isInteractive(t),n=this._ghostOnly(e),r=this._drawGhost(t,e);if(i||s||n){const e=t.layer.context,s=this._renderer._ghostLayer.context;let o;i&&!n&&(e.globalCompositeOperation=this.blendMode,e.beginPath()),r&&(s.beginPath(),o=this._getColorId()),c.each(this._operations,(t=>{i&&!n&&(t.path(e),t.colorize(e,void 0)),r&&(t.pathGhost(s),t.colorizeGhost(s,o))}))}}renderDetached(t){if(this.visible){this._setMatrix(),t.save();const e=this.mask;e&&(e._setMatrix(),e._transform(t,1),e._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transform(t,1),this.filter&&(t.filter=this.filter),t.globalCompositeOperation=this.blendMode,t.beginPath(),c.each(this._operations,(e=>{e.path(t),e.colorize(t,void 0)})),t.restore()}}_addBounds(t){this.visible&&this.isMeasured&&c.each(this._operations,(e=>{e.addBounds(t)}))}}class tt extends S{constructor(t,e,i){super(t),this.resolution=1,this.textVisible=!0,this._originalScale=1,this.text=e,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_shared(t){this.style.textAlign&&(t.textAlign=this.style.textAlign),this.style.direction&&(t.direction=this.style.direction),this.style.textBaseline&&(t.textBaseline=this.style.textBaseline)}_prerender(t,e=!1,i=!1){super._render(t);const s=t.layer.context,r=this._renderer._ghostLayer.context,o=this.style;let a=this._getFontStyle(void 0,i);s.font=a,this._isInteractive(t)&&!e&&(r.font=a),o.fill&&(o.fill instanceof n.Il?s.fillStyle=o.fill.toCSS(null!=o.fillOpacity?o.fillOpacity:1):s.fillStyle=o.fill),o.shadowColor&&(t.layer.context.shadowColor=o.shadowColor.toCSS(o.shadowOpacity||1)),o.shadowBlur&&(t.layer.context.shadowBlur=o.shadowBlur),o.shadowOffsetX&&(t.layer.context.shadowOffsetX=o.shadowOffsetX),o.shadowOffsetY&&(t.layer.context.shadowOffsetY=o.shadowOffsetY),this._shared(s),this._isInteractive(t)&&!e&&(r.fillStyle=this._getColorId(),this._shared(r))}_getFontStyle(t,e=!1){const i=this.style;let s=[];return t&&t.fontVariant?s.push(t.fontVariant):i.fontVariant&&s.push(i.fontVariant),e||(t&&t.fontWeight?s.push(t.fontWeight):i.fontWeight&&s.push(i.fontWeight)),t&&t.fontStyle?s.push(t.fontStyle):i.fontStyle&&s.push(i.fontStyle),t&&t.fontSize?(d.isNumber(t.fontSize)&&(t.fontSize=t.fontSize+"px"),s.push(t.fontSize)):i.fontSize&&(d.isNumber(i.fontSize)&&(i.fontSize=i.fontSize+"px"),s.push(i.fontSize)),t&&t.fontFamily?s.push(t.fontFamily):i.fontFamily?s.push(i.fontFamily):s.length&&s.push("Arial"),s.join(" ")}_render(t,e=0){if(this._textInfo||this._measure(t),this.textVisible){const i=this._isInteractive(t),s=t.layer.context,r=t.layer.dirty,o=this._renderer._ghostLayer.context,a=this._ghostOnly(e),l=this._drawGhost(t,e);s.save(),o.save(),this._prerender(t),c.each(this._textInfo,((e,u)=>{c.each(e.textChunks,((c,u)=>{if(c.style&&(s.save(),o.save(),a||(s.font=c.style),this._isInteractive(t)&&(o.font=c.style)),c.fill&&(s.save(),a||(s.fillStyle=c.fill.toCSS())),r&&!a&&s.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),"underline"==c.textDecoration||"line-through"==c.textDecoration){let t=1,i=1,r=c.height;const o=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(o)>-1){const t=this._measureText(c.text,s);c.width=t.actualBoundingBoxLeft+t.actualBoundingBoxRight}let l,u=c.offsetX;switch(this.style.textAlign){case"right":case"end":u-=c.width;break;case"center":u-=c.width/2}if(c.style)switch(h.V.getTextStyle(c.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":t=2}r&&(i=r/20),l="line-through"==c.textDecoration?t+e.offsetY+c.offsetY-c.height/2:t+1.5*i+e.offsetY+c.offsetY,a||(s.save(),s.beginPath(),c.fill?s.strokeStyle=c.fill.toCSS():this.style.fill&&this.style.fill instanceof n.Il&&(s.strokeStyle=this.style.fill.toCSS()),s.lineWidth=t*i,s.moveTo(u,l),s.lineTo(u+c.width,l),s.stroke(),s.restore())}i&&this.interactive&&l&&o.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),c.fill&&s.restore(),c.style&&(s.restore(),o.restore())}))})),s.restore(),o.restore()}}_addBounds(t){if(this.visible&&this.isMeasured){const e=this._measure({inactive:this.inactive,layer:this.getLayer()});C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction;this._textInfo=[];const n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=d.isNumber(r)&&("wrap"==n||"wrap-no-break"==n);e.save(),i.save(),this._prerender(t,!0,this._ignoreFontWeight());const p="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",g=this.text.toString().replace(/\r/g,"").split(/\n/);let f,_=!0,m=0,y=0,v=0;c.each(g,((t,s)=>{let n;for(n=""==t?[{type:"value",text:""}]:h.V.chunk(t,!1,this.style.ignoreFormatting);n.length>0;){let t={offsetY:v,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const s=this._measureText(p,e),g=s.actualBoundingBoxAscent+s.actualBoundingBoxDescent;let w;t.height=g,t.ascent=s.actualBoundingBoxAscent;let b,x,D,k=this.style.textDecoration,T=!1,M=!0,E=[];c.eachContinue(n,((s,o)=>{if("format"==s.type)if("[/]"==s.text)_||(e.restore(),i.restore(),_=!0),b=void 0,f=void 0,x=void 0,k=this.style.textDecoration,D=void 0,w=s.text;else{_||(e.restore(),i.restore());let n=h.V.getTextStyle(s.text);const r=this._getFontStyle(n);e.save(),i.save(),e.font=r,f=r,w=s.text,n.textDecoration&&(k=n.textDecoration),n.fill&&(b=n.fill),n.width&&(x=d.toNumber(n.width)),n.verticalAlign&&(D=n.verticalAlign),_=!1;const o=this._measureText(p,e),a=o.actualBoundingBoxAscent+o.actualBoundingBoxDescent;a>t.height&&(t.height=a),o.actualBoundingBoxAscent>t.ascent&&(t.ascent=o.actualBoundingBoxAscent)}else if("value"==s.type&&!T){const i=this._measureText(s.text,e);let h=i.actualBoundingBoxLeft+i.actualBoundingBoxRight;if(a){this.truncated=void 0;let i=M||this.style.breakWords||!1;const n=this.style.ellipsis||"",o=this._measureText(n,e),a=o.actualBoundingBoxLeft+o.actualBoundingBoxRight;if(t.width+h>r){const o=r-t.width-a;s.text=this._truncateText(e,s.text,o,i),s.text+=n,T=!0,this.truncated=!0}}else if(u&&t.width+h>r){const i=r-t.width,a=this._truncateText(e,s.text,i,!1,M&&"wrap-no-break"!=this.style.oversizedBehavior);if(""==a)return this.textVisible=!0,!1;E=n.slice(o+1),l.trim(a)!=l.trim(s.text)&&(E.unshift({type:"value",text:s.text.substr(a.length)}),w&&E.unshift({type:"format",text:w})),s.text=l.trim(a),n=[],T=!0}let c=1,d=1;if(f&&x&&x>h){const t=h/x;switch(this.style.textAlign){case"right":case"end":c=t;break;case"center":c=t,d=t;break;default:d=t}h=x}const p=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent;p>t.height&&(t.height=p),i.actualBoundingBoxAscent>t.ascent&&(t.ascent=i.actualBoundingBoxAscent),t.width+=h,t.left+=i.actualBoundingBoxLeft/c,t.right+=i.actualBoundingBoxRight/d,t.textChunks.push({style:f,fill:b,text:s.text,width:h,height:p,left:i.actualBoundingBoxLeft,right:i.actualBoundingBoxRight,ascent:i.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:k,verticalAlign:D}),M=!1}return!0})),this.style.lineHeight instanceof o.gG?(t.height*=this.style.lineHeight.value,t.ascent*=this.style.lineHeight.value):(t.height*=this.style.lineHeight||1.2,t.ascent*=this.style.lineHeight||1.2),m{let i=0;c.each(t.textChunks,(e=>{if(e.offsetX=i+e.left-t.left,e.offsetY+=t.height-t.height*(this.style.baselineRatio||.19),i+=e.width*(s?-1:1),e.verticalAlign)switch(e.verticalAlign){case"super":e.offsetY-=t.height/2-e.height/2;break;case"sub":e.offsetY+=e.height/2}}))}));const w={left:s?-y:-m,top:0,right:s?m:y,bottom:v};if("none"!==n){const t=this._fitRatio(w);if(t<1)if("fit"==n)d.isNumber(this.style.minScale)&&ti&&""!=e);return e}_measureText(t,e){let i=e.measureText(t),s={};if(null==i.actualBoundingBoxAscent){const e=document.createElement("div");e.innerText=t,e.style.visibility="hidden",e.style.position="absolute",e.style.top="-1000000px;",e.style.fontFamily=this.style.fontFamily||"",e.style.fontSize=this.style.fontSize+"",document.body.appendChild(e);const n=e.getBoundingClientRect();document.body.removeChild(e);const r=n.height,o=i.width;s={actualBoundingBoxAscent:r,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:o,fontBoundingBoxAscent:r,fontBoundingBoxDescent:0,width:o}}else s={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const n=i.width;switch(this.style.textAlign){case"right":case"end":s.actualBoundingBoxLeft=n,s.actualBoundingBoxRight=0;break;case"center":s.actualBoundingBoxLeft=n/2,s.actualBoundingBoxRight=n/2;break;default:s.actualBoundingBoxLeft=0,s.actualBoundingBoxRight=n}return s}}class et{constructor(){this.lineHeight=(0,o.aQ)(120),this.baselineRatio=.19,this.oversizedBehavior="none",this.breakWords=!1,this.ellipsis="…",this.ignoreFormatting=!1}}class it extends tt{constructor(){super(...arguments),this.textType="circular",this.inside=!1,this.orientation="auto",this.kerning=0,this._textReversed=!1}_render(t,e=0){"circular"===this.textType?this._renderCircular(t,e):super._render(t,e)}_renderCircular(t,e=0){if(this.textVisible){this._prerender(t);const i=this._isInteractive(t),s=t.layer.context,n=t.layer.dirty,r=this._renderer._ghostLayer.context;s.save(),i&&r.save(),this._textInfo||this._measure(t);let o=this.radius||0,a=this.startAngle||0,h=0,l=this.orientation,u="auto"==l?"auto":"inward"==l;const d=this.inside,g=this.style.textAlign||"left",f=this.kerning||0;let _="left"==g?1:-1;const m=!this._textReversed,y=this._ghostOnly(e),v=this._drawGhost(t,e);if("auto"==u){let t=0,e=0;c.each(this._textInfo,((e,i)=>{const s=a+e.width/(o-e.height)/2*-_;s>t&&(t=s)})),e="left"==g?(t+h/2)*p.DEGREES:"right"==g?(t-h/2)*p.DEGREES:a*p.DEGREES,e=p.normalizeAngle(e),u=e>=270||e<=90}1==u&&m&&(this._textInfo.reverse(),this._textReversed=!0),c.each(this._textInfo,((t,e)=>{const l=t.height;d||(o+=l),(-1==_&&u||1==_&&!u)&&m&&t.textChunks.reverse();let p=a;h=0,"center"==g&&(p+=t.width/(o-l)/2*-_,h=p-a),p+=Math.PI*(u?0:1),s.save(),i&&r.save(),y||s.rotate(p),i&&r.rotate(p);let w=0;c.each(t.textChunks,((t,e)=>{const a=t.text,h=t.width;w=h/2/(o-l)*_,y||s.rotate(w),i&&r.rotate(w),t.style&&(s.save(),r.save(),y||(s.font=t.style),i&&(r.font=t.style)),t.fill&&(s.save(),y||(s.fillStyle=t.fill.toCSS())),y||(s.textBaseline="middle",s.textAlign="center"),i&&(r.textBaseline="middle",r.textAlign="center"),n&&!y&&s.fillText(a,0,(u?1:-1)*(0-o+l/2)),i&&v&&r.fillText(a,0,(u?1:-1)*(0-o+l/2)),t.fill&&s.restore(),t.style&&(s.restore(),r.restore()),w=(h/2+f)/(o-l)*_,y||s.rotate(w),i&&r.rotate(w)})),s.restore(),i&&r.restore(),d&&(o-=l)})),s.restore(),i&&r.restore()}}_measure(t){return"circular"===this.textType?this._measureCircular(t):super._measure(t)}_measureCircular(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction,n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=this.style.ellipsis||"";let p;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,e.save(),i.save(),this._prerender(t,!0);const g=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,_=0,m=0;return c.each(g,((t,n)=>{let g,y,v,w=h.V.chunk(t,!1,this.style.ignoreFormatting),b={offsetY:m,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};c.each(w,((t,n)=>{if("format"==t.type){if("[/]"==t.text)f||(e.restore(),i.restore(),f=!0),y=void 0,g=void 0,v=void 0;else{let s=h.V.getTextStyle(t.text);const n=this._getFontStyle(s);e.save(),i.save(),e.font=n,g=n,s.fill&&(y=s.fill),s.width&&(v=d.toNumber(s.width)),f=!1}a&&(p=this._measureText(u,e))}else if("value"==t.type){let i=t.text.match(/./gu)||[];s&&(i=l.splitString(t.text),i.reverse());for(let t=0;to&&(o=v);const h=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;if(h>b.height&&(b.height=h),n.actualBoundingBoxAscent>b.ascent&&(b.ascent=n.actualBoundingBoxAscent),_+=o,a){p||(p=this._measureText(u,e));const t=p.actualBoundingBoxLeft+p.actualBoundingBoxRight;if(_+t>r){1==b.textChunks.length?this.textVisible=!1:(b.width+=t,b.left+=p.actualBoundingBoxLeft,b.right+=p.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:u,width:t,height:h+p.actualBoundingBoxDescent,left:p.actualBoundingBoxLeft,right:p.actualBoundingBoxRight,ascent:p.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0}));break}}b.width+=o,b.left+=n.actualBoundingBoxLeft,b.right+=n.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:s,width:o,height:h+n.actualBoundingBoxDescent,left:n.actualBoundingBoxLeft,right:n.actualBoundingBoxRight,ascent:n.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0})}}})),this.style.lineHeight instanceof o.gG?b.height*=this.style.lineHeight.value:b.height*=this.style.lineHeight||1.2,this._textInfo.push(b),m+=b.height})),f||(e.restore(),i.restore()),"hide"==n&&_>r&&(this.textVisible=!1),c.each(this._textInfo,(t=>{c.each(t.textChunks,(e=>{e.offsetY+=Math.round((t.height-e.height+(t.ascent-e.ascent))/2)}))})),e.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class st extends S{constructor(t,e){super(t),this.image=e}_dispose(){super._dispose(),this._imageMask&&E(this._imageMask)}getLocalBounds(){if(!this._localBounds){let t=0,e=0;this.width&&(t=this.width),this.height&&(e=this.height),this._localBounds={left:0,top:0,right:t,bottom:e},this._addBounds(this._localBounds)}return this._localBounds}_render(t,e=0){if(super._render(t),this.image){if(void 0===this.tainted&&(this.tainted=M(this.image),t.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;const i=this._ghostOnly(e),s=this._drawGhost(t,e);if(t.layer.dirty&&!i){this.shadowColor&&(t.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(t.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(t.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(t.layer.context.shadowOffsetY=this.shadowOffsetY);const e=this.width||this.image.naturalWidth,i=this.height||this.image.naturalHeight;t.layer.context.drawImage(this.image,0,0,e,i)}if(this.interactive&&this._isInteractive(t)&&s){const t=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(t,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(t){if(void 0===this._imageMask){const e=this.width||t.naturalWidth,i=this.height||t.naturalHeight,s=document.createElement("canvas");s.width=e,s.height=i;const n=s.getContext("2d");n.imageSmoothingEnabled=!1,n.fillStyle=this._getColorId(),n.fillRect(0,0,e,i),M(t)||(n.globalCompositeOperation="destination-in",n.drawImage(t,0,0,e,i)),this._imageMask=s}return this._imageMask}}class nt{constructor(t,e,i,s){this.event=t,this.originalPoint=e,this.point=i,this.bbox=s,this.simulated=!1,this.native=!0,l.supports("touchevents")&&t instanceof Touch?this.id=t.identifier:this.id=null}}class rt extends a.rk{constructor(t){if(super(),this.view=document.createElement("div"),this._layerDom=document.createElement("div"),this.layers=[],this._dirtyLayers=[],this.defaultLayer=this.getLayer(0),this._ghostLayer=new ot,this._deferredGhostLayers=[],this._patternCanvas=document.createElement("canvas"),this._patternContext=this._patternCanvas.getContext("2d"),this._realWidth=0,this._realHeight=0,this._calculatedWidth=0,this._calculatedHeight=0,this.interactionsEnabled=!0,this._listeners={},this._events={},this._colorId=0,this._colorMap={},this._forceInteractive=0,this._omitTainted=!1,this._hovering=new Set,this._dragging=[],this._mousedown=[],this.tapToActivate=!1,this.tapToActivateTimeout=3e3,this._touchActive=!1,this.resolution=null==t?window.devicePixelRatio:t,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new a.ku((()=>{u.each(this._events,((t,e)=>{e.disposer.dispose()})),c.each(this.layers,(t=>{E(t.view),t.exportableView&&E(t.exportableView)})),E(this._ghostLayer.view),E(this._patternCanvas)}))),this._disposers.push(l.onZoom((()=>{null==t&&(this.resolution=window.devicePixelRatio)}))),l.supports("touchevents")){const t=t=>{0!==this._dragging.length&&c.eachContinue(this._dragging,(e=>!e.value.shouldCancelTouch()||(t.preventDefault(),!1))),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(l.addEventListener(window,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchmove",(()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()}),{passive:!0})),this._disposers.push(l.addEventListener(window,"click",(t=>{this._touchActive=!1}),{passive:!0})),this._disposers.push(l.addEventListener(this.view,"click",(t=>{window.setTimeout((()=>{this._touchActive=!0,this._delayTouchDeactivate()}),100)}),{passive:!0}))}l.supports("wheelevents")&&this._disposers.push(l.addEventListener(this.view,"wheel",(t=>{let e=!1;this._hovering.forEach((t=>{if(t.wheelable)return e=!0,!1})),e&&t.preventDefault()}),{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout((()=>{this._touchActive=!1}),this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(t){t?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(t,e,i,s){return this.defaultLayer.context.createLinearGradient(t,e,i,s)}createRadialGradient(t,e,i,s,n,r){return this.defaultLayer.context.createRadialGradient(t,e,i,s,n,r)}createPattern(t,e,i,s,n){return this._patternCanvas.width=s,this._patternCanvas.height=n,this._patternContext.clearRect(0,0,s,n),e.renderDetached(this._patternContext),t.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new N(this)}makeGraphics(){return new J(this)}makeText(t,e){return new tt(this,t,e)}makeTextStyle(){return new et}makeRadialText(t,e){return new it(this,t,e)}makePicture(t){return new st(this,t)}resizeLayer(t){t.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(t,e,i,s){this._realWidth=t,this._realHeight=e,this._calculatedWidth=i,this._calculatedHeight=s,c.each(this.layers,(t=>{t&&(t.dirty=!0,this.resizeLayer(t))})),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(t=!1){const e=document.createElement("canvas"),i=e.getContext("2d",{willReadFrequently:t}),s=new at(e,i);return e.style.position="absolute",e.style.top="0px",e.style.left="0px",s}getLayerByOrder(t){const e=this.layers,i=e.length;for(let s=0;st.order>e.order?1:t.order{t&&t.dirty&&t.visible&&(this._dirtyLayers.push(t),t.clear())})),this._ghostLayer.clear(),t.render({inactive:null,layer:this.defaultLayer});const e=this._deferredGhostLayers;if(e.length&&(e.sort(((t,e)=>t-e)),c.each(e,(e=>{t.render({inactive:null,layer:this.defaultLayer},e)}))),this._ghostLayer.context.restore(),c.each(this.layers,(t=>{if(t){const e=t.context;e.beginPath(),e.moveTo(0,0),e.stroke()}})),c.each(this._dirtyLayers,(t=>{t.context.restore(),t.dirty=!1})),this._hovering.size&&this._lastPointerMoveEvent){const{events:t,target:e,native:i}=this._lastPointerMoveEvent;c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))}}paintId(t){const e=function(t){const e=[0,0,0];for(let i=0;i<24;i++)e[i%3]<<=1,e[i%3]|=1&t,t>>=1;return(0|e[0])+(e[1]<<8)+(e[2]<<16)}(++this._colorId),i=n.Il.fromHex(e).toCSS();return this._colorMap[i]=t,i}_removeObject(t){void 0!==t._colorId&&delete this._colorMap[t._colorId]}_adjustBoundingBox(t){const e=this._ghostLayer.margin;return new DOMRect(-e.left,-e.top,t.width+e.left+e.right,t.height+e.top+e.bottom)}getEvent(t,e=!0){const i=this.view.getBoundingClientRect(),s=t.clientX||0,n=t.clientY||0,r=this._calculatedWidth/this._realWidth,o=this._calculatedHeight/this._realHeight,a={x:s-i.left,y:n-i.top},h={x:(s-(e?i.left:0))*r,y:(n-(e?i.top:0))*o};return new nt(t,a,h,this._adjustBoundingBox(i))}_getHitTarget(t,e,i){if(0===e.width||0===e.height||t.xe.right||t.ye.bottom)return;if(!i||!this._layerDom.contains(i))return;const s=this._ghostLayer.getImageData(t,e);if(0===s.data[0]&&0===s.data[1]&&0===s.data[2])return!1;const r=n.Il.fromRGB(s.data[0],s.data[1],s.data[2]).toCSS();return this._colorMap[r]}getObjectAtPoint(t){const e=this._ghostLayer.getImageArray(t);if(0===e[0]&&0===e[1]&&0===e[2])return;const i=n.Il.fromRGB(e[0],e[1],e[2]).toCSS();return this._colorMap[i]}_withEvents(t,e){const i=this._events[t];if(void 0!==i){i.dispatching=!0;try{e(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,c.keepIf(i.callbacks,(t=>!t.disposed)),0===i.callbacks.length&&(i.disposer.dispose(),delete this._events[t]))}}}_dispatchEventAll(t,e){this.interactionsEnabled&&this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.callback.call(t.context,e)}))}))}_dispatchEvent(t,e,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.object!==e||(t.callback.call(t.context,i),s=!0)}))})),s}_dispatchMousedown(t,e){const i=t.button;if(0!=i&&2!=i&&1!=i&&void 0!==i)return;const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);if(n){const t=s.id;let e=!1;k(n,(i=>{const n={id:t,value:i};return this._mousedown.push(n),!e&&this._dispatchEvent("pointerdown",i,s)&&(e=!0,this._dragging.some((e=>e.value===i&&e.id===t))||this._dragging.push(n)),!0}))}}_dispatchGlobalMousemove(t,e,i){const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);s.native=i,n?(this._hovering.forEach((t=>{t.contains(n)||(this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s))})),s.native&&k(n,(t=>(this._hovering.has(t)||(this._hovering.add(t),t.cursorOverStyle&&(t._replacedCursorStyle=l.getStyle(document.body,"cursor"),l.setStyle(document.body,"cursor",t.cursorOverStyle)),this._dispatchEvent("pointerover",t,s)),!0)))):(this._hovering.forEach((t=>{t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s)})),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(t){this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle)}_dispatchGlobalMouseup(t,e){const i=this.getEvent(t);i.native=e,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(t){if(0!==this._dragging.length){const e=this.getEvent(t),i=e.id;this._dragging.forEach((t=>{t.id===i&&this._dispatchEvent("pointermove",t.value,e)}))}}_dispatchDragEnd(t,e){const i=t.button;let s;if(0==i||void 0===i)s="click";else if(2==i)s="rightclick";else{if(1!=i)return;s="middleclick"}const n=this.getEvent(t),r=n.id;if(0!==this._mousedown.length){const t=this._getHitTarget(n.originalPoint,n.bbox,e);t&&this._mousedown.forEach((e=>{e.id===r&&e.value.contains(t)&&this._dispatchEvent(s,e.value,n)})),this._mousedown.length=0}0!==this._dragging.length&&(this._dragging.forEach((t=>{t.id===r&&this._dispatchEvent("pointerup",t.value,n)})),this._dragging.length=0)}_dispatchDoubleClick(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("dblclick",t,i)))}_dispatchWheel(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("wheel",t,i)))}_makeSharedEvent(t,e){if(void 0===this._listeners[t]){const i=e();this._listeners[t]=new a.DM((()=>{delete this._listeners[t],i.dispose()}))}return this._listeners[t].increment()}_onPointerEvent(t,e){let i=!1,s=null;function n(){s=null,i=!1}return new a.FV([new a.ku((()=>{null!==s&&clearTimeout(s),n()})),l.addEventListener(this.view,l.getRendererEvent(t),(t=>{i=!0,null!==s&&clearTimeout(s),s=window.setTimeout(n,0)})),T(window,t,((t,n)=>{null!==s&&(clearTimeout(s),s=null),e(t,n,i),i=!1}))])}_initEvent(t){switch(t){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",(()=>{const t=(t,e,i)=>{this._lastPointerMoveEvent={events:t,target:e,native:i},c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))};return new a.FV([this._onPointerEvent("pointerdown",t),this._onPointerEvent("pointermove",t)])}));case"globalpointerup":return this._makeSharedEvent("pointerup",(()=>{const t=this._onPointerEvent("pointerup",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}})),e=this._onPointerEvent("pointercancel",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}}));return new a.ku((()=>{t.dispose(),e.dispose()}))}));case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",(()=>{const t=this._onPointerEvent("pointerdown",((t,e)=>{c.each(t,(t=>{this._dispatchMousedown(t,e)}))})),e=this._onPointerEvent("pointermove",(t=>{c.each(t,(t=>{this._dispatchDragMove(t)}))})),i=this._onPointerEvent("pointerup",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))})),s=this._onPointerEvent("pointercancel",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))}));return new a.ku((()=>{t.dispose(),e.dispose(),i.dispose(),s.dispose()}))}));case"dblclick":return this._makeSharedEvent("dblclick",(()=>this._onPointerEvent("dblclick",((t,e)=>{c.each(t,(t=>{this._dispatchDoubleClick(t,e)}))}))));case"wheel":return this._makeSharedEvent("wheel",(()=>l.addEventListener(this.view,l.getRendererEvent("wheel"),(t=>{this._dispatchWheel(t,l.getEventTarget(t))}),{passive:!1})))}}_addEvent(t,e,i,s){let n=this._events[e];void 0===n&&(n=this._events[e]={disposer:this._initEvent(e),callbacks:[],dispatching:!1,cleanup:!1});const r={object:t,context:s,callback:i,disposed:!1};return n.callbacks.push(r),new a.ku((()=>{r.disposed=!0,n.dispatching?n.cleanup=!0:(c.removeFirst(n.callbacks,r),0===n.callbacks.length&&(n.disposer.dispose(),delete this._events[e]))}))}getCanvas(t,e){this.render(t),e||(e={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),n=Math.floor(this._calculatedHeight*this.resolution);if(e.minWidth&&e.minWidth>s){let t=e.minWidth/s;t>i&&(i=t*this.resolution)}if(e.minHeight&&e.minHeight>n){let t=e.minHeight/n;t>i&&(i=t*this.resolution)}if(e.maxWidth&&e.maxWidthn){let t=e.maxHeight/n;t{if(t&&t.visible&&(t.tainted||o)){d=!0,t.exportableView=t.view,t.exportableContext=t.context,t.view=document.createElement("canvas"),t.view.style.position="fixed",t.view.style.top="-10000px",this.view.appendChild(t.view),r.push(t.view);let e=0,o=0;t.margin&&(e+=t.margin.left||0+t.margin.right||0,o+=t.margin.top||0+t.margin.bottom||0),t.view.width=s+e,t.view.height=n+o,t.context=t.view.getContext("2d"),t.dirty=!0,t.scale=i}})),d&&(this._omitTainted=!0,this.render(t),this._omitTainted=!1),c.each(this.layers,(t=>{if(t&&t.visible){let e=0,i=0;t.margin&&(e=-(t.margin.left||0)*this.resolution,i=-(t.margin.top||0)*this.resolution),h.drawImage(t.view,e,i),t.exportableView&&(t.view=t.exportableView,t.exportableView=void 0),t.exportableContext&&(t.context=t.exportableContext,t.exportableContext=void 0),l{t.style.position="",t.style.top="",this.view.removeChild(t)})),a}}class ot{constructor(){this.margin={left:0,right:0,top:0,bottom:0},this._resolution=1,this._width=0,this._height=0,this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(t,e,i,s,n){this._resolution=n,t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(t,e){return this.context.getImageData(Math.round((t.x-e.left)/e.width*this._width),Math.round((t.y-e.top)/e.height*this._height),1,1)}getImageArray(t){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const e=this.imageArray,i=Math.round(t.x*this._resolution),s=4*(Math.round(t.y*this._resolution)*this._width+i);return[e[s],e[s+1],e[s+2],e[s+3]]}setMargin(t){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,c.each(t,(t=>{t.margin&&(this.margin.left=Math.max(this.margin.left,t.margin.left),this.margin.right=Math.max(this.margin.right,t.margin.right),this.margin.top=Math.max(this.margin.top,t.margin.top),this.margin.bottom=Math.max(this.margin.bottom,t.margin.bottom))}))}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class at{constructor(t,e){this.tainted=!0,this.order=0,this.visible=!0,this.dirty=!0,this._width=0,this._height=0,this.view=t,this.context=e}resize(t,e,i,s,n){null!=this.width&&(t=this.width,i=this.width),null!=this.height&&(e=this.height,s=this.height),this.margin?(t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}},4680:function(t,e,i){"use strict";var s;i.d(e,{b:function(){return s}}),function(t){t.ADD="lighter",t.COLOR="color",t.COLOR_BURN="color-burn",t.COLOR_DODGE="color-dodge",t.DARKEN="darken",t.DIFFERENCE="difference",t.DST_OVER="destination-over",t.EXCLUSION="exclusion",t.HARD_LIGHT="hard-light",t.HUE="hue",t.LIGHTEN="lighten",t.LUMINOSITY="luminosity",t.MULTIPLY="multiply",t.NORMAL="source-over",t.OVERLAY="overlay",t.SATURATION="saturation",t.SCREEN="screen",t.SOFT_LIGHT="soft-light",t.SRC_ATOP="source-atop",t.XOR="xor"}(s||(s={}))},1437:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}getFill(t){return{addColorStop:(t,e)=>{}}}_changed(){super._changed()}getBounds(t){const e=this.get("target");if(e){let i=e.globalBounds();const s=t.toLocal({x:i.left,y:i.top}),n=t.toLocal({x:i.right,y:i.top}),r=t.toLocal({x:i.right,y:i.bottom}),o=t.toLocal({x:i.left,y:i.bottom});return{left:Math.min(s.x,n.x,r.x,o.x),top:Math.min(s.y,n.y,r.y,o.y),right:Math.max(s.x,n.x,r.x,o.x),bottom:Math.max(s.y,n.y,r.y,o.y)}}return t._display.getLocalBounds()}}n.className="Gradient",n.classNames=s.JH.classNames.concat([n.className])},1747:function(t,e,i){"use strict";i.d(e,{o:function(){return h}});var s=i(1437),n=i(1112),r=i(5071),o=i(5040),a=i(751);class h extends s.p{getFill(t){const e=this.get("rotation",0);let i=this.getBounds(t),s=i.left||0,h=i.right||0,l=i.top||0,c=i.bottom||0,u=a.cos(e),d=a.sin(e),p=u*(h-s),g=d*(c-l);0==p&&(p=1),0==g&&(g=1);let f=Math.max(p,g);const _=this._root._renderer.createLinearGradient(s,l,s+f*u,l+f*d),m=this.get("stops");if(m){let t=0;r.each(m,(e=>{let i=e.offset;o.isNumber(i)||(i=t/(m.length-1));let s=e.opacity;o.isNumber(s)||(s=1);let r=e.color;if(r){const t=e.lighten;t&&(r=n.Il.lighten(r,t));const o=e.brighten;o&&(r=n.Il.brighten(r,o)),_.addColorStop(i,"rgba("+r.r+","+r.g+","+r.b+","+s+")")}t++}))}return _}}h.className="LinearGradient",h.classNames=s.p.classNames.concat([h.className])},3035:function(t,e,i){"use strict";i.d(e,{y:function(){return r}});var s=i(3437),n=i(5040);class r extends s.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("width",100),e=this.get("height",100),i=this.get("gap",0),s=this.get("strokeWidth",1);if(i){let n=i+s,r=e/n,o=this.get("angle",0)*Math.PI/180;if(0===o)for(let e=-r;e<2*r;e++){const i=Math.round(e*n-n/2)+.5;this._display.moveTo(-t,i),this._display.lineTo(2*t,i)}else{const i=Math.cos(o),s=Math.sin(o),r=2*Math.sqrt(t*t+e*e),a=n/Math.max(Math.abs(i),Math.abs(s)),h=2*Math.ceil(r/a);for(let t=-h;t0&&(r.beginFill(s,n),r.drawRect(0,0,e,i),r.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,r,t,e,i)}this._clear=!1}}n.className="Pattern",n.classNames=s.JH.classNames.concat([n.className])},4429:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(3437);class n extends s.c{_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const t=this.get("canvas");t&&(this.set("width",t.width),this.set("height",t.height))}_draw(){super._draw();const t=this.get("colorOpacity");void 0!==t&&(this._display.alpha=Math.max(0,t));const e=this._image;if(e){const t=this.get("width",100),i=this.get("height",100),s=this.get("fit","image");let n=0,r=0;"pattern"==s?(n=t,r=i,this.markDirty()):(n=e.width,r=e.height,"image"==s&&(this.set("width",n),this.set("height",r)));let o=0,a=0;this.get("centered",!0)&&(o=t/2-n/2,a=i/2-r/2),this._display.image(e,n,r,o,a)}const i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){const t=this.get("src");if(t){const e=new Image;e.src=t,e.decode().then((()=>{this._image=e,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{}))}}}n.className="PicturePattern",n.classNames=s.c.classNames.concat([n.className])},6490:function(t,e,i){"use strict";i.d(e,{SR:function(){return s},Wn:function(){return u},XG:function(){return p},ne:function(){return h},w6:function(){return l}});var s,n=i(7582),r=i(6245),o=i(1112),a=i(256);function h(t){return(0,n.mG)(this,void 0,void 0,(function*(){if(void 0!==t){const e=[];a.each(t,((t,i)=>{e.push(i.waitForStop())})),yield Promise.all(e)}}))}function l(t,e,i){return e+t*(i-e)}function c(t,e,i){return t>=1?i:e}function u(t,e,i){return new r.gG(l(t,e.percent,i.percent))}function d(t,e,i){return o.Il.interpolate(t,e,i)}function p(t,e){return"number"==typeof t&&"number"==typeof e?l:t instanceof r.gG&&e instanceof r.gG?u:t instanceof o.Il&&e instanceof o.Il?d:c}!function(t){t[t.Stopped=0]="Stopped",t[t.Playing=1]="Playing",t[t.Paused=2]="Paused"}(s||(s={}))},5071:function(t,e,i){"use strict";i.r(e),i.d(e,{add:function(){return v},any:function(){return r},copy:function(){return k},each:function(){return a},eachContinue:function(){return l},eachReverse:function(){return h},find:function(){return S},findIndex:function(){return O},findIndexReverse:function(){return P},findMap:function(){return C},findReverse:function(){return N},first:function(){return d},getFirstSortedIndex:function(){return R},getSortedIndex:function(){return A},has:function(){return D},indexOf:function(){return n},insert:function(){return p},insertIndex:function(){return M},keepIf:function(){return U},last:function(){return u},map:function(){return o},move:function(){return y},pushAll:function(){return f},pushOne:function(){return w},remove:function(){return _},removeFirst:function(){return m},removeIndex:function(){return E},replace:function(){return b},setIndex:function(){return g},shiftLeft:function(){return c},shuffle:function(){return L},slice:function(){return T},toArray:function(){return x}});var s=i(5040);function n(t,e){const i=t.length;for(let s=0;s0;)--i,e(t[i],i)}function l(t,e){const i=t.length;for(let s=0;s0;)if(--i,e(t[i],i))return i;return-1}function S(t,e){const i=O(t,e);if(-1!==i)return t[i]}function N(t,e){const i=P(t,e);if(-1!==i)return t[i]}function C(t,e){const i=t.length;for(let s=0;s>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,i=r+1):s=r}return{found:n,index:n?i-1:i}}function R(t,e){let i=0,s=t.length,n=!1;for(;i>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,s=r):s=r}return{found:n,index:i}}function U(t,e){let i=t.length;for(;i>0;)--i,e(t[i])||t.splice(i,1)}},1112:function(t,e,i){"use strict";i.d(e,{$_:function(){return a},Il:function(){return h}});var s=i(6490),n=i(7652),r=i(5040);function o(t){return"#"===t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0].repeat(2)+t[1].repeat(2)+t[2].repeat(2)),parseInt(t,16)}function a(t){return h.fromAny(t)}class h{constructor(t){this._hex=0|t}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return 255&this._hex}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+n.padString(this.r.toString(16),2)+n.padString(this.g.toString(16),2)+n.padString(this.b.toString(16),2)}toHSL(t=1){return n.rgbToHsl({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,e,i){const s=n.hslToRgb({h:t,s:e,l:i});return this.fromRGB(s.r,s.g,s.b)}toString(){return this.toCSSHex()}static fromHex(t){return new h(t)}static fromRGB(t,e,i){return new h((0|i)+(e<<8)+(t<<16))}static fromString(t){return new h(o(t))}static fromCSS(t){return new h(function(t){let e=(t=t.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return 0;let i="";for(let t=1;t<=3;t++){let s=parseInt(e[t]).toString(16);1==s.length&&(s="0"+s),i+=s}return o(i)}(t))}static fromAny(t){if(r.isString(t)){if("#"==t[0])return h.fromString(t);if("rgb"==t.substr(0,3))return h.fromCSS(t)}else{if(r.isNumber(t))return h.fromHex(t);if(t instanceof h)return h.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,e,i){const s=n.alternativeColor({r:t.r,g:t.g,b:t.b},e?{r:e.r,g:e.g,b:e.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(s.r,s.g,s.b)}static interpolate(t,e,i,n="rgb"){if("hsl"==n){const n=e.toHSL(),r=i.toHSL();return h.fromHSL((0,s.w6)(t,n.h,r.h),(0,s.w6)(t,n.s,r.s),(0,s.w6)(t,n.l,r.l))}return h.fromRGB((0,s.w6)(t,e.r,i.r),(0,s.w6)(t,e.g,i.g),(0,s.w6)(t,e.b,i.b))}static lighten(t,e){const i=n.lighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static brighten(t,e){const i=n.brighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static saturate(t,e){const i=n.saturate({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}}},2754:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});var s=i(6331),n=i(1112);class r extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const t=this.getPrivate("currentPass"),e=this.get("colors",[this.get("baseColor",n.Il.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",e.length);const i=this.getPrivate("numColors"),s=this.get("passOptions"),r=this.get("reuse");for(let o=0;o1;)r-=1;let a=i.s+(s.saturation||0)*t;a>1&&(a=1),a<0&&(a=0);let h=i.l+(s.lightness||0)*t;for(;h>1;)h-=1;e.push(n.Il.fromHSL(r,a,h))}}getIndex(t){const e=this.get("colors",[]),i=this.get("saturation");return t>=e.length?(this.generateColors(),this.getIndex(t)):null!=i?n.Il.saturate(e[t],i):e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}r.className="ColorSet",r.classNames=s.JH.classNames.concat([r.className])},9582:function(t,e,i){"use strict";i.d(e,{Q:function(){return r},k:function(){return n}});var s=i(7144);class n extends s.aV{incrementRef(){}decrementRef(){}_onPush(t){this.processor&&this.processor.processRow(t),super._onPush(t)}_onInsertIndex(t,e){this.processor&&this.processor.processRow(e),super._onInsertIndex(t,e)}_onSetIndex(t,e,i){this.processor&&this.processor.processRow(i),super._onSetIndex(t,e,i)}}class r{constructor(t){this._value=t}incrementRef(){}decrementRef(){}}},6460:function(t,e,i){"use strict";i.d(e,{C:function(){return h}});var s=i(6331),n=i(7255),r=i(462),o=i(5040),a=i(7652);class h extends s.JH{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i=!1){let s;void 0!==e&&""!==e||(e=this.get("dateFormat","yyyy-MM-dd"));let n=t;if(o.isObject(e))try{const t=this.get("intlLocales");return t?new Intl.DateTimeFormat(t,e).format(n):new Intl.DateTimeFormat(void 0,e).format(n)}catch(t){return"Invalid"}let r=this.parseFormat(e);const a=this._root.timezone;let h=n;return!a||this._root.utc||i||(n=a.convertLocal(n)),o.isNumber(n.getTime())?(s=this.applyFormat(n,r,i,h),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s):"Invalid date"}applyFormat(t,e,i=!1,s){let n,h,l,c,u,d,p,g,f=e.template,_=t.getTime();this._root.utc&&!i?(n=t.getUTCFullYear(),h=t.getUTCMonth(),l=t.getUTCDay(),c=t.getUTCDate(),u=t.getUTCHours(),d=t.getUTCMinutes(),p=t.getUTCSeconds(),g=t.getUTCMilliseconds()):(n=t.getFullYear(),h=t.getMonth(),l=t.getDay(),c=t.getDate(),u=t.getHours(),d=t.getMinutes(),p=t.getSeconds(),g=t.getMilliseconds());for(let i=0,m=e.parts.length;i=12?this._t("PM"):this._t("AM");break;case"aa":m=u>=12?this._t("P.M."):this._t("A.M.");break;case"aaa":m=u>=12?this._t("P"):this._t("A");break;case"h":m=a.get12Hours(u).toString();break;case"hh":m=a.padString(a.get12Hours(u),2,"0");break;case"H":m=u.toString();break;case"HH":m=a.padString(u,2,"0");break;case"K":m=a.get12Hours(u,0).toString();break;case"KK":m=a.padString(a.get12Hours(u,0),2,"0");break;case"k":m=(u+1).toString();break;case"kk":m=a.padString(u+1,2,"0");break;case"m":m=d.toString();break;case"mm":m=a.padString(d,2,"0");break;case"s":m=p.toString();break;case"ss":m=a.padString(p,2,"0");break;case"S":case"SS":case"SSS":m=Math.round(g/1e3*Math.pow(10,e.parts[i].length)).toString();break;case"x":m=_.toString();break;case"n":case"nn":case"nnn":m=a.padString(g,e.parts[i].length,"0");break;case"z":m=a.getTimeZone(s||t,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":m=a.getTimeZone(s||t,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":m=a.getTimeZone(s||t,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":m=a.getTimeZone(s||t,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let f=this._root.utc?"UTC":this._root.timezone;f instanceof r.r&&(f=f.name);const y=f?a.getTimezoneOffset(f,s||t):t.getTimezoneOffset();let v=Math.abs(y)/60,w=Math.floor(v),b=60*v-60*w;this._root.utc&&(w=0,b=0),"Z"==e.parts[i]?(m="GMT",m+=y>0?"-":"+",m+=a.padString(w,2)+":"+a.padString(b,2)):(m=y>0?"-":"+",m+=a.padString(w,2)+a.padString(b,2));break;case"i":m=t.toISOString();break;case"I":m=t.toUTCString()}f=f.replace(o.PLACEHOLDER,m)}return f}parseFormat(t){let e={template:"",parts:[]},i=n.V.chunk(t,!0);for(let t=0;t-1&&(l.year=parseInt(p[h.year])),h.year3>-1){let t=parseInt(p[h.year3]);t+=1e3,l.year=t}if(h.year2>-1){let t=parseInt(p[h.year2]);t+=t>50?1e3:2e3,l.year=t}if(h.year1>-1){let t=parseInt(p[h.year1]);t=10*Math.floor((new Date).getFullYear()/10)+t,l.year=t}if(h.monthLong>-1&&(l.month=this.resolveMonth(p[h.monthLong])),h.monthShort>-1&&(l.month=this.resolveShortMonth(p[h.monthShort])),h.month>-1&&(l.month=parseInt(p[h.month])-1),h.week>-1&&-1===h.day&&(l.month=0,l.day=a.getDayFromWeek(parseInt(p[h.week]),l.year,1,i)),h.day>-1&&(l.day=parseInt(p[h.day])),h.yearDay>-1&&(l.month=0,l.day=parseInt(p[h.yearDay])),h.hourBase0>-1&&(l.hour=parseInt(p[h.hourBase0])),h.hourBase1>-1&&(l.hour=parseInt(p[h.hourBase1])-1),h.hour12Base0>-1){let t=parseInt(p[h.hour12Base0]);11==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.hour12Base1>-1){let t=parseInt(p[h.hour12Base1]);12==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.minute>-1&&(l.minute=parseInt(p[h.minute])),h.second>-1&&(l.second=parseInt(p[h.second])),h.millisecond>-1){let t=parseInt(p[h.millisecond]);2==h.millisecondDigits?t*=10:1==h.millisecondDigits&&(t*=100),l.millisecond=t}if(h.timestamp>-1){l.timestamp=parseInt(p[h.timestamp]);const t=new Date(l.timestamp);l.year=t.getUTCFullYear(),l.month=t.getUTCMonth(),l.day=t.getUTCDate(),l.hour=t.getUTCHours(),l.minute=t.getUTCMinutes(),l.second=t.getUTCSeconds(),l.millisecond=t.getUTCMilliseconds()}h.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.zone])),h.iso>-1&&(l.year=o.toNumber(p[h.iso+0]),l.month=o.toNumber(p[h.iso+1])-1,l.day=o.toNumber(p[h.iso+2]),l.hour=o.toNumber(p[h.iso+3]),l.minute=o.toNumber(p[h.iso+4]),l.second=o.toNumber(p[h.iso+5]),l.millisecond=o.toNumber(p[h.iso+6]),"Z"==p[h.iso+7]||"z"==p[h.iso+7]?l.utc=!0:""!=p[h.iso+7]&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.iso+7]))),s=l.utc?new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else s=new Date(t);return s}resolveTimezoneOffset(t,e){if(e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let i=e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),s=i[1],n=i[2],r=i[3],o=60*parseInt(n)+parseInt(r);return"+"==s&&(o*=-1),o-(t||new Date).getTimezoneOffset()}return 0}resolveMonth(t){let e=this._months().indexOf(t);return e>-1||!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._months()).indexOf(t),e>-1)?e:0}resolveShortMonth(t){let e=this._shortMonths().indexOf(t);return e>-1?e:(e=this._months().indexOf(t),e>-1||this._root.language&&!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._shortMonths()).indexOf(t),e>-1)?e:0)}isAm(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1}getStringList(t){let e=[];for(let i=0;i{t.dispose()}))}}class a extends n{constructor(t){super(),this._disposers=t}_dispose(){s.each(this._disposers,(t=>{t.dispose()}))}get disposers(){return this._disposers}}class h extends n{_dispose(){null!=this._disposer&&(this._disposer.dispose(),this._disposer=void 0)}get(){return this._value}set(t,e){null!=this._disposer&&this._disposer.dispose(),this._disposer=e,this._value=t}reset(){this.set(void 0,void 0)}}class l extends r{constructor(){super(...arguments),this._counter=0}increment(){return++this._counter,new r((()=>{--this._counter,0===this._counter&&this.dispose()}))}}},798:function(t,e,i){"use strict";i.d(e,{$:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{constructor(){super(...arguments),this._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}}_setDefaults(){const t="_duration_millisecond",e="_duration_second",i="_duration_minute",s="_duration_hour",n="_duration_day",r="_duration_week",o="_duration_month",a="_minute",h="_hour",l="_day",c="_week",u="_week",d="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(t),second:this._t(t+"_second"),minute:this._t(t+a),hour:this._t(t+h),day:this._t(t+l),week:this._t(t+c),month:this._t(t+u),year:this._t(t+d)},second:{second:this._t(e),minute:this._t(e+a),hour:this._t(e+h),day:this._t(e+l),week:this._t(e+c),month:this._t(e+u),year:this._t(e+d)},minute:{minute:this._t(i),hour:this._t(i+h),day:this._t(i+l),week:this._t(i+c),month:this._t(i+u),year:this._t(i+d)},hour:{hour:this._t(s),day:this._t(s+l),week:this._t(s+c),month:this._t(s+u),year:this._t(s+d)},day:{day:this._t(n),week:this._t(n+c),month:this._t(n+u),year:this._t(n+d)},week:{week:this._t(r),month:this._t(r+u),year:this._t(r+d)},month:{month:this._t(o),year:this._t(o+d)},year:{year:this._t("_duration_year")}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s=i||this.get("baseUnit");void 0!==e&&""!==e||(e=null!=this.get("durationFormat")?this.get("durationFormat"):this.getFormat(a.toNumber(t),void 0,s)),e=o.cleanFormat(e);let n,r=this.parseFormat(e,s),h=Number(t);n=h>this.get("negativeBase")?r.positive:h{if(e.parsed)return;let i=e.source,s=[];s=e.source.match(/^\[([^\]]*)\]/),s&&s.length&&""!==s[0]&&(i=e.source.substr(s[0].length),e.color=s[1]);let r=n.V.chunk(i,!0);for(let t=0;t{"millisecond"==t&&1e3==i?(h.second++,h.millisecond=0):"second"==t&&60==i?(h.minute++,h.second=0):"minute"==t&&60==i?(h.hour++,h.minute=0):"hour"==t&&24==i?(h.day++,h.hour=0):"day"==t&&7==i&&-1!==e.parts.indexOf("w")?(h.week++,h.day=0):"day"==t&&30==i?(h.month++,h.day=0):"month"==t&&12==i&&(h.year++,h.month=0)}));for(let t=0,i=e.parts.length;t{if(t==e||i){if(s/n<=1)return i||(i=t),!1;i=t}return!0})),i}getMilliseconds(t,e){return e||(e=this.get("baseUnit")),t*this._getUnitValue(e)}_getUnitValue(t){return this._getUnitValues()[t]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}},9395:function(t,e,i){"use strict";i.r(e),i.d(e,{bounce:function(){return k},circle:function(){return c},cubic:function(){return o},elastic:function(){return P},exp:function(){return h},inOut:function(){return p},linear:function(){return n},out:function(){return d},pow:function(){return a},quad:function(){return r},sine:function(){return l},yoyo:function(){return u}});var s=i(751);function n(t){return t}function r(t){return t*t}function o(t){return t*t*t}function a(t,e){return Math.pow(t,e)}function h(t){return Math.pow(2,10*t-10)}function l(t){return 1-Math.cos(t*s.HALFPI)}function c(t){return 1-Math.sqrt(1-t*t)}function u(t){return function(e){return t(e<.5?2*e:2*(1-e))}}function d(t){return function(e){return 1-t(1-e)}}function p(t){return function(e){return e<=.5?t(2*e)/2:1-t(2*(1-e))/2}}let g=4/11,f=6/11,_=8/11,m=3/4,y=9/11,v=10/11,w=15/16,b=21/22,x=63/64,D=1/g/g;function k(t){return 1-function(t){return t{this._userSettings[t]=!0}))}get(t,e){const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._settings[t]=e}set(t,e){this._userSettings[t]=!0,this.setRaw(t,e)}remove(t){delete this._userSettings[t],delete this._settings[t]}setAll(t){o.entries(t).forEach((([t,e])=>{this.set(t,e)}))}_eachSetting(t){o.each(this._settings,t)}apply(){const t={stateAnimationEasing:!0,stateAnimationDuration:!0},e=this._entity.states.lookup("default");this._eachSetting(((i,s)=>{t[i]||(t[i]=!0,this!==e&&(i in e._settings||(e._settings[i]=this._entity.get(i))),this._entity.set(i,s))}))}applyAnimate(t){null==t&&(t=this._settings.stateAnimationDuration),null==t&&(t=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let e=this._settings.stateAnimationEasing;null==e&&(e=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",a.cubic)));const i=this._entity.states.lookup("default"),s={stateAnimationEasing:!0,stateAnimationDuration:!0},n={};return this._eachSetting(((r,o)=>{if(!s[r]){s[r]=!0,this!=i&&(r in i._settings||(i._settings[r]=this._entity.get(r)));const a=this._entity.animate({key:r,to:o,duration:t,easing:e});a&&(n[r]=a)}})),n}}class l{constructor(t){this._states={},this._entity=t}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new h(this._entity,e);return this._states[t]=i,i}}remove(t){delete this._states[t]}apply(t){const e=this._states[t];e&&e.apply(),this._entity._applyState(t)}applyAnimate(t,e){let i;const s=this._states[t];return s&&(i=s.applyAnimate(e)),this._entity._applyStateAnimated(t,e),i}}var c=i(3145),u=i(5071),d=i(3540);class p{constructor(t){this._callbacks={},this._disabled={},this._entity=t}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),this._entity._markDirtyKey(t),new s.ku((()=>{u.removeFirst(i,e)&&this._entity._markDirtyKey(t)}))}remove(t){const e=this._callbacks[t];void 0!==e&&(delete this._callbacks[t],0!==e.length&&this._entity._markDirtyKey(t))}enable(t){this._disabled[t]&&(delete this._disabled[t],this._entity._markDirtyKey(t))}disable(t){this._disabled[t]||(this._disabled[t]=!0,this._entity._markDirtyKey(t))}fold(t,e){if(!this._disabled[t]){const i=this._callbacks[t];if(void 0!==i)for(let s=0,n=i.length;s{if(this._stopped)t();else{const e=()=>{i.dispose(),t()},i=this.events.on("stopped",e)}}))}_checkEnded(){return!(this._loops>1&&(--this._loops,1))}_run(t){null!==this._oldTime&&(this._time+=t-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=t}_reset(t){this._oldTime=t,this._time=0}_value(t){return this._interpolate(this._easing(t),this._from,this._to)}}let f=0;class _{constructor(t){this.uid=++f,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._prevSettings={},this._prevPrivateSettings={},this._animatingSettings={},this._animatingPrivateSettings={},this._disposed=!1,this._userProperties={},this.enableDispose=!0,this._settings=t}_checkDirty(){o.keys(this._settings).forEach((t=>{this._userProperties[t]=!0,this._markDirtyKey(t)}))}resetUserSettings(){this._userProperties={}}_runAnimation(t){let e=r.SR.Stopped;if(!this.isDisposed()){let i=!1,s=!1;o.each(this._animatingSettings,((e,n)=>{if(n.stopped)this._stopAnimation(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.set(e,n._value(1)):(i=!0,n._reset(t),this._set(e,n._value(1))):(i=!0,this._set(e,n._value(s)))}else s=!0})),o.each(this._animatingPrivateSettings,((e,n)=>{if(n.stopped)this._stopAnimationPrivate(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.setPrivate(e,n._value(1)):(i=!0,n._reset(t),this._setPrivate(e,n._value(1))):(i=!0,this._setPrivate(e,n._value(s)))}else s=!0})),i?e=r.SR.Playing:s&&(e=r.SR.Paused)}return e}_markDirtyKey(t){this.markDirty()}_markDirtyPrivateKey(t){this.markDirty()}on(t,e){let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}off(t,e){let i=this._settingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._settingEvents[t]}onPrivate(t,e){let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}offPrivate(t,e){let i=this._privateSettingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._privateSettingEvents[t]}getRaw(t,e){const i=this._settings[t];return void 0!==i?i:e}has(t){return t in this._settings}get(t,e){return this.getRaw(t,e)}_sendKeyEvent(t,e){const i=this._settingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_sendPrivateKeyEvent(t,e){const i=this._privateSettingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_setRaw(t,e,i){this._prevSettings[t]=e,this._sendKeyEvent(t,i)}setRaw(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&this._setRaw(t,i,e)}_set(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&(this._setRaw(t,i,e),this._markDirtyKey(t))}_stopAnimation(t){const e=this._animatingSettings[t];e&&(delete this._animatingSettings[t],e.stop())}set(t,e){return this._set(t,e),this._stopAnimation(t),e}remove(t){t in this._settings&&(this._prevSettings[t]=this._settings[t],delete this._settings[t],this._sendKeyEvent(t,void 0),this._markDirtyKey(t)),this._stopAnimation(t)}removeAll(){u.each(o.keys(this._settings),(t=>{this.remove(t)}))}getPrivate(t,e){const i=this._privateSettings[t];return void 0!==i?i:e}_setPrivateRaw(t,e,i){this._prevPrivateSettings[t]=e,this._sendPrivateKeyEvent(t,i)}setPrivateRaw(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&this._setPrivateRaw(t,i,e)}_setPrivate(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&(this._setPrivateRaw(t,i,e),this._markDirtyPrivateKey(t))}_stopAnimationPrivate(t){const e=this._animatingPrivateSettings[t];e&&(e.stop(),delete this._animatingPrivateSettings[t])}setPrivate(t,e){return this._setPrivate(t,e),this._stopAnimationPrivate(t),e}removePrivate(t){t in this._privateSettings&&(this._prevPrivateSettings[t]=this._privateSettings[t],delete this._privateSettings[t],this._markDirtyPrivateKey(t)),this._stopAnimationPrivate(t)}setAll(t){o.each(t,((t,e)=>{this.set(t,e)}))}animate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.get(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.set(e,i);else{if(void 0!==r&&r!==i){this.set(e,r);const t=this._animatingSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.set(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}animatePrivate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.getPrivate(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.setPrivate(e,i);else{if(void 0!==r&&r!==i){this.setPrivate(e,r);const t=this._animatingPrivateSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.setPrivate(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}}class m extends _{constructor(t,e,i,s=[]){if(super(e),this.states=new l(this),this.adapters=new p(this),this.events=this._createEvents(),this._userPrivateProperties={},this._dirty={},this._dirtyPrivate={},this._templates=[],this._defaultThemes=[],this._templateDisposers=[],this._disposers=[],this._runSetup=!0,this._disposerProperties={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t,this._internalTemplates=s,e.id&&this._registerId(e.id)}static new(t,e,i){const s=new this(t,e,!0);return s._template=i,s._afterNew(),s}static _new(t,e,i=[]){const s=new this(t,e,!0,i);return s._afterNew(),s}_afterNew(){this._checkDirty();let t=!1;const e=this._template;e&&(t=!0,e._setObjectTemplate(this)),u.each(this._internalTemplates,(e=>{t=!0,e._setObjectTemplate(this)})),t&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const t=this._template;t&&t._setObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._setObjectTemplate(this)})),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new n.p}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(t,e){const i=this.get(t);if(i)return i;{const i=e();return this.set(t,i),i}}_setDefault(t,e){this.has(t)||super.set(t,e)}_setRawDefault(t,e){this.has(t)||super.setRaw(t,e)}_clearDirty(){o.keys(this._dirty).forEach((t=>{this._dirty[t]=!1})),o.keys(this._dirtyPrivate).forEach((t=>{this._dirtyPrivate[t]=!1}))}isDirty(t){return!!this._dirty[t]}isPrivateDirty(t){return!!this._dirtyPrivate[t]}_markDirtyKey(t){this._dirty[t]=!0,super._markDirtyKey(t)}_markDirtyPrivateKey(t){this._dirtyPrivate[t]=!0,super._markDirtyKey(t)}isType(t){return-1!==this.classNames.indexOf(t)}_pushPropertyDisposer(t,e){let i=this._disposerProperties[t];return void 0===i&&(i=this._disposerProperties[t]=[]),i.push(e),e}_disposeProperty(t){const e=this._disposerProperties[t];void 0!==e&&(u.each(e,(t=>{t.dispose()})),delete this._disposerProperties[t])}set template(t){const e=this._template;e!==t&&(this._template=t,e&&e._removeObjectTemplate(this),t&&t._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(t){}_applyStateAnimated(t,e){}get(t,e){const i=this.adapters.fold(t,this._settings[t]);return void 0!==i?i:e}isUserSetting(t){return this._userProperties[t]||!1}set(t,e){return this._userProperties[t]=!0,super.set(t,e)}setRaw(t,e){this._userProperties[t]=!0,super.setRaw(t,e)}_setSoft(t,e){return this._userProperties[t]?e:super.set(t,e)}remove(t){delete this._userProperties[t],this._removeTemplateProperty(t)}setPrivate(t,e){return this._userPrivateProperties[t]=!0,super.setPrivate(t,e)}setPrivateRaw(t,e){this._userPrivateProperties[t]=!0,super.setPrivateRaw(t,e)}removePrivate(t){delete this._userPrivateProperties[t],this._removeTemplatePrivateProperty(t)}_setTemplateProperty(t,e,i){this._userProperties[e]||t===this._findTemplateByKey(e)&&super.set(e,i)}_setTemplatePrivateProperty(t,e,i){this._userPrivateProperties[e]||t===this._findTemplateByPrivateKey(e)&&super.setPrivate(e,i)}_removeTemplateProperty(t){if(!this._userProperties[t]){const e=this._findTemplateByKey(t);e?super.set(t,e._settings[t]):super.remove(t)}}_removeTemplatePrivateProperty(t){if(!this._userPrivateProperties[t]){const e=this._findTemplateByPrivateKey(t);e?super.setPrivate(t,e._privateSettings[t]):super.removePrivate(t)}}_walkParents(t){t(this._root._rootContainer),t(this)}_applyStateByKey(t){const e=this.states.create(t,{}),i={};this._eachTemplate((s=>{const n=s.states.lookup(t);n&&n._apply(e,i)})),o.each(e._settings,(t=>{i[t]||e._userSettings[t]||e.remove(t)}))}_applyTemplate(t,e){this._templateDisposers.push(t._apply(this,e)),o.each(t._settings,((t,i)=>{e.settings[t]||this._userProperties[t]||(e.settings[t]=!0,super.set(t,i))})),o.each(t._privateSettings,((t,i)=>{e.privateSettings[t]||this._userPrivateProperties[t]||(e.privateSettings[t]=!0,super.setPrivate(t,i))})),this._runSetup&&t.setup&&(this._runSetup=!1,t.setup(this))}_findStaticTemplate(t){if(this._template&&t(this._template))return this._template}_eachTemplate(t){this._findStaticTemplate((e=>(t(e),!1))),u.eachReverse(this._internalTemplates,t),u.each(this._templates,t)}_applyTemplates(t=!0){t&&this._disposeTemplates();const e={settings:{},privateSettings:{},states:{}};this._eachTemplate((t=>{this._applyTemplate(t,e)})),t&&(o.each(this._settings,(t=>{this._userProperties[t]||e.settings[t]||super.remove(t)})),o.each(this._privateSettings,(t=>{this._userPrivateProperties[t]||e.privateSettings[t]||super.removePrivate(t)})))}_findTemplate(t){const e=this._findStaticTemplate(t);if(void 0===e){const e=u.findReverse(this._internalTemplates,t);return void 0===e?u.find(this._templates,t):e}return e}_findTemplateByKey(t){return this._findTemplate((e=>t in e._settings))}_findTemplateByPrivateKey(t){return this._findTemplate((e=>t in e._privateSettings))}_disposeTemplates(){u.each(this._templateDisposers,(t=>{t.dispose()})),this._templateDisposers.length=0}_removeTemplates(){u.each(this._templates,(t=>{t._removeObjectTemplate(this)})),this._templates.length=0}_applyThemes(t=!1){if(this.get("ignoreThemes"))return!1;let e=!1;const i=[];let s=[];const n=new Set,r=this.get("themeTagsSelf");return r&&u.each(r,(t=>{n.add(t)})),this._walkParents((t=>{t===this._root._rootContainer&&(e=!0),t._defaultThemes.length>0&&i.push(t._defaultThemes);const r=t.get("themes");r&&s.push(r);const o=t.get("themeTags");o&&u.each(o,(t=>{n.add(t)}))})),s=i.concat(s),this._removeTemplates(),(e||t)&&u.eachReverse(this.classNames,(t=>{const e=[];u.each(s,(i=>{u.each(i,(i=>{const s=i._lookupRules(t);s&&u.eachReverse(s,(t=>{if(t.tags.every((t=>n.has(t)))){const i=u.getFirstSortedIndex(e,(e=>{const i=d.qu(t.tags.length,e.tags.length);return 0===i?d.wq(t.tags,e.tags,d.qu):i}));e.splice(i.index,0,t)}}))}))})),u.each(e,(t=>{this._templates.push(t.template),t.template._setObjectTemplate(this)}))})),this._applyTemplates(),(e||t)&&(this._runSetup=!1),e||t}_changed(){}_beforeChanged(){if(this.isDirty("id")){const t=this.get("id");t&&this._registerId(t);const e=this._prevSettings.id;e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}}_registerId(t){if(this._root.entitiesById[t]&&this._root.entitiesById[t]!==this)throw new Error('An entity with id "'+t+'" already exists.');this._root.entitiesById[t]=this,c.i_.entitiesById[t]=this}_afterChanged(){}addDisposer(t){return this._disposers.push(t),t}_dispose(){super._dispose();const t=this._template;t&&t._removeObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._removeObjectTemplate(this)})),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach((t=>{t.dispose()})),o.each(this._disposerProperties,((t,e)=>{u.each(e,(t=>{t.dispose()}))}));const e=this.get("id");e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}setTimeout(t,e){const i=setTimeout((()=>{this.removeDispose(n),t()}),e),n=new s.ku((()=>{clearTimeout(i)}));return this._disposers.push(n),n}removeDispose(t){if(!this.isDisposed()){let e=u.indexOf(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()}hasTag(t){return-1!==u.indexOf(this.get("themeTags",[]),t)}addTag(t){if(!this.hasTag(t)){const e=this.get("themeTags",[]);e.push(t),this.set("themeTags",e)}}removeTag(t){if(this.hasTag(t)){const e=this.get("themeTags",[]);u.remove(e,t),this.set("themeTags",e)}}_t(t,e,...i){return this._root.language.translate(t,e,...i)}get root(){return this._root}}m.className="Entity",m.classNames=["Entity"]},9770:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var s=i(7449),n=i(5071),r=i(5040);class o{constructor(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{n.each(t,(t=>{t.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}}hasListeners(){return 0!==this._listeners.length}hasListenersByType(t){return n.any(this._listeners,(e=>(null===e.type||e.type===t)&&!e.killed))}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(t){delete this._disabled[t]}disableType(t,e=1/0){this._disabled[t]=e}_removeListener(t){if(0===this._iterating){const e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)}_removeExistingListener(t,e,i,s){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((n=>{n.once!==t||n.type!==e||void 0!==i&&n.callback!==i||n.context!==s||n.disposer.dispose()}))}isEnabled(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&void 0===this._disabled[t]}removeType(t){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((e=>{e.type===t&&e.disposer.dispose()}))}has(t,e,i){return-1!==n.findIndex(this._listeners,(s=>!0!==s.once&&s.type===t&&(void 0===e||s.callback===e)&&s.context===i))}_shouldDispatch(t){if(this._disposed)throw new Error("EventDispatcher is disposed");const e=this._disabled[t];return r.isNumber(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled}_eachListener(t){++this._iterating;try{n.each(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(n.each(this._killed,(t=>{this._removeListener(t)})),this._killed.length=0)}}dispatch(t,e){this._shouldDispatch(t)&&this._eachListener((i=>{i.killed||null!==i.type&&i.type!==t||(i._debounceDelay?(i._debounceTimeout&&window.clearTimeout(i._debounceTimeout),i._debounceTimeout=window.setTimeout((()=>{i._debounceTimeout=void 0,i.killed||i.dispatch(t,e)}),i._debounceDelay)):i.dispatch(t,e))}))}_on(t,e,i,n,r,o,a){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);const h={type:e,callback:i,context:n,shouldClone:r,dispatch:o,killed:!1,once:t,disposer:new s.ku((()=>{h.killed=!0,h._debounceTimeout&&window.clearTimeout(h._debounceTimeout),this._removeListener(h)})),_debounceDelay:a};return this._listeners.push(h),h}onAll(t,e,i=!0){return this._on(!1,null,t,e,i,((i,s)=>t.call(e,s))).disposer}on(t,e,i,s=!0){return this._on(!1,t,e,i,s,((t,s)=>e.call(i,s))).disposer}onDebounced(t,e,i,s,n=!0){return this._on(!1,t,e,s,n,((t,i)=>e.call(s,i)),i).disposer}once(t,e,i,s=!0){const n=this._on(!0,t,e,i,s,((t,s)=>{n.disposer.dispose(),e.call(i,s)}));return n.disposer}off(t,e,i){this._removeExistingListener(!1,t,e,i)}copyFrom(t){if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const e=[];return n.each(t._listeners,(t=>{!t.killed&&t.shouldClone&&(null===t.type?e.push(this.onAll(t.callback,t.context)):t.once?e.push(this.once(t.type,t.callback,t.context)):e.push(this.on(t.type,t.callback,t.context)))})),new s.FV(e)}}},9821:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(6331);class n extends s.JH{}n.className="InterfaceColors",n.classNames=s.JH.classNames.concat([n.className])},7144:function(t,e,i){"use strict";i.d(e,{aV:function(){return o},dn:function(){return a},o:function(){return h}});var s=i(9770),n=i(5071);function r(t,e){if(!(t>=0&&t=0&&t{this.push(t)}))}copyFrom(t){this.pushAll(t._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(t){const e=this._values;this._values=[],this._onClear(e),n.each(t,(t=>{this._values.push(t),this._onPush(t)}))}clear(){this.setAll([])}*[Symbol.iterator](){const t=this._values.length;for(let e=0;e{t.dispose()})),super._onClear(t)}_dispose(){this.autoDispose&&n.each(this._values,(t=>{t.dispose()}))}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class h extends a{constructor(t,e){super(),this.template=t,this.make=e}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}}},751:function(t,e,i){"use strict";i.r(e),i.d(e,{DEGREES:function(){return a},HALFPI:function(){return r},PI:function(){return n},RADIANS:function(){return o},boundsOverlap:function(){return M},ceil:function(){return l},circlesOverlap:function(){return O},closest:function(){return T},cos:function(){return f},fitAngleToRange:function(){return w},fitToRange:function(){return d},getAngle:function(){return x},getArcBounds:function(){return m},getArcPoint:function(){return y},getCubicControlPointA:function(){return c},getCubicControlPointB:function(){return u},getPointOnLine:function(){return k},getPointOnQuadraticCurve:function(){return D},inBounds:function(){return b},mergeBounds:function(){return v},normalizeAngle:function(){return _},round:function(){return h},sin:function(){return p},spiralPoints:function(){return E},tan:function(){return g}});var s=i(5040);const n=Math.PI,r=n/2,o=n/180,a=180/n;function h(t,e,i){if(!(0,s.isNumber)(e)||e<=0){let e=Math.round(t);return i&&e-t==.5&&e--,e}{let i=Math.pow(10,e);return Math.round(t*i)/i}}function l(t,e){if(!(0,s.isNumber)(e)||e<=0)return Math.ceil(t);{let i=Math.pow(10,e);return Math.ceil(t*i)/i}}function c(t,e,i,s,n){return{x:(-t.x+e.x/s+i.x)*s,y:(-t.y+e.y/n+i.y)*n}}function u(t,e,i,s,n){return{x:(t.x+e.x/s-i.x)*s,y:(t.y+e.y/n-i.y)*n}}function d(t,e,i){return Math.min(Math.max(t,e),i)}function p(t){return Math.sin(o*t)}function g(t){return Math.tan(o*t)}function f(t){return Math.cos(o*t)}function _(t){return(t%=360)<0&&(t+=360),t}function m(t,e,i,s,n){let r=Number.MAX_VALUE,o=Number.MAX_VALUE,a=-Number.MAX_VALUE,h=-Number.MAX_VALUE,l=[];l.push(y(n,i)),l.push(y(n,s));let c=Math.min(90*Math.floor(i/90),90*Math.floor(s/90)),u=Math.max(90*Math.ceil(i/90),90*Math.ceil(s/90));for(let t=c;t<=u;t+=90)t>=i&&t<=s&&l.push(y(n,t));for(let t=0;ta&&(a=e.x),e.y>h&&(h=e.y)}return{left:t+r,top:e+o,right:t+a,bottom:e+h}}function y(t,e){return{x:t*f(e),y:t*p(e)}}function v(t){const e=t.length;if(e>0){let i=t[0],s=i.left,n=i.top,r=i.right,o=i.bottom;if(e>1)for(let a=1;ai){let t=e;e=i,i=t}t=_(t);let s=(e-_(e))/360;return ti&&(t-360>e?t-=360:t=te+(i-e)/2-180?e:i),t}function b(t,e){return t.x>=e.left&&t.y>=e.top&&t.x<=e.right&&t.y<=e.bottom}function x(t,e){e||(e={x:2*t.x,y:2*t.y});let i=e.x-t.x,s=e.y-t.y,n=Math.atan2(s,i)*a;return n<0&&(n+=360),_(n)}function D(t,e,i,s){return{x:(1-s)*(1-s)*t.x+2*(1-s)*s*i.x+s*s*e.x,y:(1-s)*(1-s)*t.y+2*(1-s)*s*i.y+s*s*e.y}}function k(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function T(t,e){return t.reduce((function(t,i){return Math.abs(i-e)e.left,s=t.tope.top;return i&&s}function E(t,e,i,s,n,r,h,l,c){let u=n+.01;l=_(l),c=_(c);let d=l*o;cu&&(o=2*u),o*=Math.max(.01,Math.min(1,u/200));let g=d*a,f={x:t+u*Math.cos(d),y:e+u*s/i*Math.sin(d)};if(p.push(f),u=n+.01+(g-l)/360*h,d+=2*Math.asin(o/2/u),d*a>c+360*Math.ceil((i-n)/h))break}return p.shift(),p}function O(t,e){return Math.hypot(t.x-e.x,t.y-e.y)<=t.radius+e.radius}},8219:function(t,e,i){"use strict";i.d(e,{u:function(){return a}});var s=i(6331),n=i(7652),r=i(7449);let o;class a extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._setRawDefault("deactivateRoot",!0),function(t,e,i){const s=e.interfaceColors,a=s.get("secondaryButton").toCSS(),h=s.get("text").toCSS(),l=s.get("alternativeBackground").toCSS(.45);if(!o){const i=new r.FV([new n.StyleRule(t,".am5-modal",{width:"100%",height:"100%",position:"absolute","z-index":"100000",top:"0",left:"0"},e.nonce),new n.StyleRule(t,".am5-modal-curtain",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute",background:s.get("background").toCSS(.5),"z-index":"100"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute","text-align":"center","white-space":"nowrap",background:s.get("background").toCSS(.5),"z-index":"101"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper:before",{content:"''",display:"inline-block",height:"100%","vertical-align":"middle","margin-right":"-0.25em"},e.nonce),new n.StyleRule(t,".am5-modal-content",{display:"inline-block",padding:"1.2em","vertical-align":"middle","text-align":"start","white-space":"normal",background:s.get("background").toCSS(),"border-radius":"4px","-webkit-box-shadow":"0px 0px 36px 0px "+l,"box-shadow":"0px 0px 36px 0px "+l,color:h},e.nonce),new n.StyleRule(t,".am5-modal-content h1",{"font-size":"1em",margin:"0 0 0.5em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table",{display:"table",margin:"1em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-row",{display:"table-row"},e.nonce),new n.StyleRule(t,".am5-modal-table-heading",{display:"table-heading",padding:"3px 10px 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell",{display:"table-cell",padding:"3px 0 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell > *",{"vertical-align":"middle"},e.nonce),new n.StyleRule(t,".am5-modal-content input[type=text], .am5-modal-content input[type=number], .am5-modal-content select",{border:"1px solid "+a,"border-radius":"4px",padding:"3px 5px",margin:"2px"},e.nonce),new n.StyleRule(t,".am5-modal-input-narrow",{width:"50px"},e.nonce),new n.StyleRule(t,".am5-modal-button",{"font-weight":"400",color:s.get("secondaryButtonText").toCSS(),"line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer",padding:"0.2em 0.8em","font-size":"1em","border-radius":"0.25em",margin:"0 0.25em 0 0",border:"1px solid "+s.get("secondaryButtonStroke").toCSS(),background:s.get("secondaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button:hover",{background:s.get("secondaryButtonHover").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary",{color:s.get("primaryButtonText").toCSS(),border:"1px solid "+s.get("primaryButtonStroke").toCSS(),background:s.get("primaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary:hover",{background:s.get("primaryButtonHover").toCSS()},e.nonce)]);o=new r.DM((()=>{o=void 0,i.dispose()}))}o.increment()}(n.getShadowRoot(this._root.dom),this._root);const t=document.createElement("div");t.className="am5-modal",t.style.display="none",this.root._inner.appendChild(t),this.setPrivate("container",t);const e=document.createElement("div");e.className="am5-modal-curtain",t.appendChild(e),this.setPrivate("curtain",e),this._disposers.push(n.addEventListener(e,"click",(()=>{this.cancel()})));const i=document.createElement("div");i.className="am5-modal-wrapper",t.appendChild(i),this.setPrivate("wrapper",i);const s=document.createElement("div");s.className="am5-modal-content",i.appendChild(s),this.setPrivate("content",s);const a=this.get("content");a&&(s.innerHTML=a),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{this.isOpen()&&"Escape"==n.getEventKey(t)&&this.cancel()})))}_beforeChanged(){super._beforeChanged(),this.isDirty("content")&&(this.getPrivate("content").innerHTML=this.get("content",""))}isOpen(){return"none"!=this.getPrivate("container").style.display}open(){this.getPrivate("container").style.display="block",this.get("deactivateRoot")&&this.setTimeout((()=>{this._root._renderer.interactionsEnabled=!1}),10),this.events.dispatch("opened",{type:"opened",target:this})}close(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("closed",{type:"closed",target:this})}cancel(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("cancelled",{type:"cancelled",target:this})}_dispose(){super._dispose();const t=this.getPrivate("container");t.parentElement&&t.parentElement.removeChild(t)}}a.className="Modal",a.classNames=s.JH.classNames.concat([a.className])},780:function(t,e,i){"use strict";i.d(e,{e:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const t="_big_number_suffix_",e="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(t+"3")},{number:1e6,suffix:this._t(t+"6")},{number:1e9,suffix:this._t(t+"9")},{number:1e12,suffix:this._t(t+"12")},{number:1e15,suffix:this._t(t+"15")},{number:1e18,suffix:this._t(t+"18")},{number:1e21,suffix:this._t(t+"21")},{number:1e24,suffix:this._t(t+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(e+"24")},{number:1e-21,suffix:this._t(e+"21")},{number:1e-18,suffix:this._t(e+"18")},{number:1e-15,suffix:this._t(e+"15")},{number:1e-12,suffix:this._t(e+"12")},{number:1e-9,suffix:this._t(e+"9")},{number:1e-6,suffix:this._t(e+"6")},{number:.001,suffix:this._t(e+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s;(null==e||a.isString(e)&&"number"===e.toLowerCase())&&(e=this.get("numberFormat",""));let n=Number(t);if(a.isObject(e))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),e).format(n):new Intl.NumberFormat(void 0,e).format(n)}catch(t){return"Invalid"}else{e=o.cleanFormat(e);let t,h=this.parseFormat(e,this._root.language);t=n>this.get("negativeBase")?h.positive:n{if(e.parsed)return;let i=e.source;"number"===i.toLowerCase()&&(i=this.get("numberFormat","#,###.#####"));let s=n.V.chunk(i,!0);for(let t=0;t=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(i[0]),n="e"+i[1],e.modSpacing&&(n=" "+n)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){const i=o.decimalPlaces(t);if(i>0){const s=Math.pow(10,e.decimals.passive);t=Math.round(parseFloat((t*s).toFixed(i)))/s}}let h="",l=a.numberToString(t).split("."),c=l[0];if(c.length0){let t=[],i=c.split("").reverse().join("");for(let s=0,n=c.length;s<=n;s+=e.thousands.interval){let n=i.substr(s,e.thousands.interval).split("").reverse().join("");""!==n&&t.unshift(n)}c=t.join(e.thousands.separator)}h+=c,1===l.length&&l.push("");let u=l[1];return u.length{e(i,t[i])}))}function l(t,e){for(let i in t)if(u(t,i)&&!e(i,t[i]))break}function c(t,e,i){s.each(o(t,i),(i=>{e(i,t[i])}))}function u(t,e){return{}.hasOwnProperty.call(t,e)}function d(t,e){return h(t,((t,i)=>{null!=i&&null==e[t]&&(e[t]=i)})),e}},3540:function(t,e,i){"use strict";function s(t,e){return t===e?0:t{a.isObject(e)&&"function"==typeof e.dispose&&(e.enableDispose=!0,e.dispose())}))}class l{constructor(t,e,i){this._name=t,this._template=e,this._settings=i}_dispose(){h(this._settings)}get(t,e){const i=this._settings[t];return void 0!==i?i:e}set(t,e){this._settings[t]=e,this._template._stateChanged(this._name)}remove(t){delete this._settings[t],this._template._stateChanged(this._name)}setAll(t){o.keys(t).forEach((e=>{this._settings[e]=t[e]})),this._template._stateChanged(this._name)}_apply(t,e){o.each(this._settings,((i,s)=>{e[i]||t._userSettings[i]||(e[i]=!0,t.setRaw(i,s))}))}}class c{constructor(t){this._states={},this._template=t}_dispose(){o.each(this._states,((t,e)=>{e._dispose()}))}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new l(t,this._template,e);return this._states[t]=i,this._template._stateChanged(t),i}}remove(t){delete this._states[t],this._template._stateChanged(t)}_apply(t,e){o.each(this._states,((i,s)=>{let n=e.states[i];null==n&&(n=e.states[i]={});const r=t.states.create(i,{});s._apply(r,n)}))}}class u{constructor(){this._callbacks={}}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._callbacks[t]}))}remove(t){void 0!==this._callbacks[t]&&delete this._callbacks[t]}_apply(t){const e=[];return o.each(this._callbacks,((i,s)=>{r.each(s,(s=>{e.push(t.adapters.add(i,s))}))})),new n.FV(e)}}class d{constructor(t,e){if(this._disposed=!1,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._entities=[],this.states=new c(this),this.adapters=new u,this.events=new s.p,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=t}static new(t){return new d(t,!0)}_dispose(){h(this._settings),h(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(t,e){this._checkDisposed();const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._checkDisposed(),this._settings[t]=e}set(t,e){this._checkDisposed(),this._settings[t]!==e&&(this.setRaw(t,e),this._entities.forEach((i=>{i._setTemplateProperty(this,t,e)})))}remove(t){this._checkDisposed(),t in this._settings&&(delete this._settings[t],this._entities.forEach((e=>{e._removeTemplateProperty(t)})))}removeAll(){this._checkDisposed(),o.each(this._settings,((t,e)=>{this.remove(t)}))}getPrivate(t,e){this._checkDisposed();const i=this._privateSettings[t];return void 0!==i?i:e}setPrivateRaw(t,e){return this._checkDisposed(),this._privateSettings[t]=e,e}setPrivate(t,e){return this._checkDisposed(),this._privateSettings[t]!==e&&(this.setPrivateRaw(t,e),this._entities.forEach((i=>{i._setTemplatePrivateProperty(this,t,e)}))),e}removePrivate(t){this._checkDisposed(),t in this._privateSettings&&(delete this._privateSettings[t],this._entities.forEach((e=>{e._removeTemplatePrivateProperty(t)})))}setAll(t){this._checkDisposed(),o.each(t,((t,e)=>{this.set(t,e)}))}on(t,e){this._checkDisposed();let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}onPrivate(t,e){this._checkDisposed();let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}_apply(t,e){this._checkDisposed();const i=[];return o.each(this._settingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.on(e,s))}))})),o.each(this._privateSettingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.onPrivate(e,s))}))})),this.states._apply(t,e),i.push(this.adapters._apply(t)),i.push(t.events.copyFrom(this.events)),new n.FV(i)}_setObjectTemplate(t){this._checkDisposed(),this._entities.push(t)}_removeObjectTemplate(t){r.remove(this._entities,t)}_stateChanged(t){this._checkDisposed(),this._entities.forEach((e=>{e._applyStateByKey(t)}))}}},7255:function(t,e,i){"use strict";i.d(e,{V:function(){return r}});var s=i(1112),n=i(5040);class r{static escape(t){return t.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(t){return t.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(t,e=!1,i=!1){let s=[];t=this.escape(t);let r=e?t.split("'"):[t];for(let t=0;t{setTimeout(e,t)}))}let o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629742400,year:31536e6};function a(t){switch(t){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function h(t,e){return null==e&&(e=1),o[t]*e}function l(t){return t?o[t.timeUnit]*t.count:0}function c(t,e,i,s,n){const r=t.timeUnit,a=t.count;if("hour"==r||"minute"==r||"second"==r||"millisecond"==r)return o[t.timeUnit]*t.count;{const t=m(new Date(e.getTime()),r,a,i,s,void 0,n).getTime();let o=t+a*h(r)*1.05;return o=m(new Date(o),r,1,i,s,void 0,n).getTime(),o-t}}function u(){return new Date}function d(){return u().getTime()}function p(t){return new Date(t.getTime())}function g(t,e,i,s,n){if(e-t>h(i,1.2))return!0;let r=new Date(t),o=new Date(e);n&&(r=n.convertLocal(r),o=n.convertLocal(o));let l=0,c=0;s||"millisecond"==i||(l=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-l),c=o.getTimezoneOffset(),o.setUTCMinutes(o.getUTCMinutes()-c));let u=!1;switch(i){case"year":r.getUTCFullYear()!=o.getUTCFullYear()&&(u=!0);break;case"month":(r.getUTCFullYear()!=o.getUTCFullYear()||r.getUTCMonth()!=o.getUTCMonth())&&(u=!0);break;case"day":(r.getUTCMonth()!=o.getUTCMonth()||r.getUTCDate()!=o.getUTCDate())&&(u=!0);break;case"hour":r.getUTCHours()!=o.getUTCHours()&&(u=!0);break;case"minute":r.getUTCMinutes()!=o.getUTCMinutes()&&(u=!0);break;case"second":r.getUTCSeconds()!=o.getUTCSeconds()&&(u=!0);break;case"millisecond":r.getTime()!=o.getTime()&&(u=!0)}if(u)return u;let d=a(i);return!!d&&g(t,e,d,s,n)}function f(t,e,i,s,n){let r=0;switch(s||"millisecond"==e||(r=t.getTimezoneOffset(),n&&(r-=n.offsetUTC(t)),t.setUTCMinutes(t.getUTCMinutes()-r)),e){case"day":let e=t.getUTCDate();t.setUTCDate(e+i);break;case"second":let s=t.getUTCSeconds();t.setUTCSeconds(s+i);break;case"millisecond":let n=t.getUTCMilliseconds();t.setUTCMilliseconds(n+i);break;case"hour":let r=t.getUTCHours();t.setUTCHours(r+i);break;case"minute":let o=t.getUTCMinutes();t.setUTCMinutes(o+i);break;case"year":let a=t.getUTCFullYear();t.setUTCFullYear(a+i);break;case"month":const h=t.getUTCDate(),l=new Date(t.getUTCFullYear(),t.getUTCMonth(),0).getUTCDate();let c=t.getUTCMonth();h>l?t.setUTCMonth(c+i,l):t.setUTCMonth(c+i);break;case"week":let u=t.getUTCDate();t.setUTCDate(u+7*i)}if(!s&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+r),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(n&&(e+=n.offsetUTC(t)),e!=r){let i=e-r;t.setUTCMinutes(t.getUTCMinutes()+i),t.getTimezoneOffset()!=e&&t.setUTCMinutes(t.getUTCMinutes()-i)}}return t}function _(t,e,i,s,n){let r;return null!=n&&(r=new Date(n)),m(new Date(t),e,i,s.locale.firstDayOfWeek,s.utc,r,s.timezone).getTime()}function m(t,e,i,n,r,o,a){if(!a||r){let a=0;switch(r||"millisecond"==e||(a=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-a)),e){case"day":let e=t.getUTCDate();if(i>1){if(o){o=m(o,"day",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),n=h("day",s*i);t.setTime(o.getTime()+n-a*h("minute"))}}else t.setUTCDate(e);t.setUTCHours(0,0,0,0);break;case"second":let r=t.getUTCSeconds();i>1&&(r=Math.floor(r/i)*i),t.setUTCSeconds(r,0);break;case"millisecond":if(1==i)return t;let l=t.getUTCMilliseconds();l=Math.floor(l/i)*i,t.setUTCMilliseconds(l);break;case"hour":let c=t.getUTCHours();i>1&&(c=Math.floor(c/i)*i),t.setUTCHours(c,0,0,0);break;case"minute":let u=t.getUTCMinutes();i>1&&(u=Math.floor(u/i)*i),t.setUTCMinutes(u,0,0);break;case"month":let d=t.getUTCMonth();i>1&&(2!=i&&3!=i&&4!=i&&6!=i||(d=Math.floor(d/i)*i)),t.setUTCMonth(d,1),t.setUTCHours(0,0,0,0);break;case"year":let p=t.getUTCFullYear();i>1&&(p=Math.floor(p/i)*i),t.setUTCFullYear(p,0,1),t.setUTCHours(0,0,0,0);break;case"week":if(i>1&&o){o=m(o,"week",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("week")/i),n=h("week",s*i);t.setTime(o.getTime()+n-a*h("minute"))}let g=t.getUTCDate(),f=t.getUTCDay();s.isNumber(n)||(n=1),g=f>=n?g-f+n:g-(7+f)+n,t.setUTCDate(g),t.setUTCHours(0,0,0,0)}if(!r&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+a),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(e!=a){let i=e-a;t.setUTCMinutes(t.getUTCMinutes()+i)}}return t}{if(isNaN(t.getTime()))return t;let l=t.getTime(),c=a.offsetUTC(t),u=t.getTimezoneOffset(),d=a.parseDate(t),p=d.year,g=d.month,f=d.day,_=d.hour,y=d.minute,v=d.second,w=d.millisecond,b=d.weekday,x=c-u;switch(e){case"day":if(i>1&&o){o=m(o,"day",1,n,r,void 0,a);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),l=h("day",s*i);t.setTime(o.getTime()+l),d=a.parseDate(t),p=d.year,g=d.month,f=d.day}_=0,y=x,v=0,w=0;break;case"second":y+=x,i>1&&(v=Math.floor(v/i)*i),w=0;break;case"millisecond":y+=x,i>1&&(w=Math.floor(w/i)*i);break;case"hour":i>1&&(_=Math.floor(_/i)*i),y=x,v=0,w=0;break;case"minute":i>1&&(y=Math.floor(y/i)*i),y+=x,v=0,w=0;break;case"month":i>1&&(g=Math.floor(g/i)*i),f=1,_=0,y=x,v=0,w=0;break;case"year":i>1&&(p=Math.floor(p/i)*i),g=0,f=1,_=0,y=x,v=0,w=0;break;case"week":s.isNumber(n)||(n=1),f=b>=n?f-b+n:f-(7+b)+n,_=0,y=x,v=0,w=0}const D=(t=new Date(p,g,f,_,y,v,w)).getTime();let k=36e5;"hour"==e&&(k=36e5*i),D+k<=l&&("hour"!=e&&"minute"!=e&&"second"!=e&&"millisecond"!=e||(t=new Date(D+k)));let T=t.getTimezoneOffset(),M=a.offsetUTC(t)-T;return M!=x&&t.setTime(t.getTime()+6e4*(M-x)),t}}function y(t,e,i,s){let n=l(s[t]),r=s.length-1;if(t>=r)return Object.assign({},s[r]);let o=Math.ceil(e/n);return e0?Object.assign({},s[t-1]):o<=i?Object.assign({},s[t]):t+1{switch(t.type){case"year":i=+t.value;break;case"month":s=+t.value-1;break;case"day":n=+t.value;break;case"hour":r=+t.value;break;case"minute":o=+t.value;break;case"second":a=+t.value;break;case"fractionalSecond":h=+t.value;break;case"weekday":switch(t.value){case"Sun":l=0;break;case"Mon":l=1;break;case"Tue":l=2;break;case"Wed":l=3;break;case"Thu":l=4;break;case"Fri":l=5;break;case"Sat":l=6}}})),24===r&&(r=0),{year:i,month:s,day:n,hour:r,minute:o,second:a,millisecond:h,weekday:l}}function n(t,e){const{year:i,month:n,day:r,hour:o,minute:a,second:h,millisecond:l}=s(t,e);return Date.UTC(i,n,r,o,a,h,l)}i.d(e,{r:function(){return r}});class r{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=t,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(t){return new this(t,!0)}convertLocal(t){const e=this.offsetUTC(t),i=t.getTimezoneOffset(),s=new Date(t);s.setUTCMinutes(s.getUTCMinutes()-(e-i));const n=s.getTimezoneOffset();return i!=n&&s.setUTCMinutes(s.getUTCMinutes()+n-i),s}offsetUTC(t){return(n(this._utc,t)-n(this._dtf,t))/6e4}parseDate(t){return s(this._dtf,t)}}},5040:function(t,e,i){"use strict";function s(t){return Number(t)!==t}function n(t){return{}.toString.call(t)}function r(t,e="Assertion failed"){if(!t)throw new Error(e)}function o(t){if(null!=t&&!d(t)){let e=Number(t);if(s(e)&&u(t)&&""!=t&&t.match(/[0-9]+/)){const i=t.replace(/[^0-9.\-]+/g,"");return t===i?e:o(i)}return e}return t}function a(t){if(c(t))return new Date(t);if(d(t))return new Date(t);{let e=Number(t);return d(e)?new Date(e):new Date(t)}}function h(t){if(s(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t==-1/0)return"-0";let e=t<0;t=Math.abs(t);let i,n=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t),r=n[1],o=n[2]||"";if(void 0===n[3])i=""===o?r:r+"."+o;else{let e=+n[3];if(t<1)i="0."+l("0",e-1)+r+o;else{let t=e-o.length;i=0===t?r+o:t<0?r+o.slice(0,t)+"."+o.slice(t):r+o+l("0",t)}}return e?"-"+i:i}function l(t,e){return new Array(e+1).join(t)}function c(t){return"[object Date]"===n(t)}function u(t){return"string"==typeof t}function d(t){return"number"==typeof t&&Number(t)==t}function p(t){return"object"==typeof t&&null!==t}function g(t){return Array.isArray(t)}i.r(e),i.d(e,{PLACEHOLDER:function(){return f},PLACEHOLDER2:function(){return _},assert:function(){return r},getType:function(){return n},isArray:function(){return g},isDate:function(){return c},isNaN:function(){return s},isNumber:function(){return d},isObject:function(){return p},isString:function(){return u},numberToString:function(){return h},repeat:function(){return l},toDate:function(){return a},toNumber:function(){return o}});const f="__§§§__",_="__§§§§__"},7652:function(t,e,i){"use strict";i.r(e),i.d(e,{StyleRule:function(){return E},StyleSheet:function(){return O},addClass:function(){return P},addEventListener:function(){return l},addSpacing:function(){return Y},alternativeColor:function(){return dt},blur:function(){return p},brighten:function(){return ht},capitalizeFirst:function(){return et},cleanFormat:function(){return z},contains:function(){return w},decimalPlaces:function(){return A},escapeForRgex:function(){return W},focus:function(){return g},get12Hours:function(){return Q},getBrightnessStep:function(){return lt},getDayFromWeek:function(){return q},getEventKey:function(){return D},getEventTarget:function(){return v},getFormat:function(){return H},getLightnessStep:function(){return at},getMonthWeek:function(){return K},getPointerId:function(){return d},getRendererEvent:function(){return f},getSafeResolution:function(){return C},getShadowRoot:function(){return k},getStyle:function(){return y},getTimeZone:function(){return J},getTimezoneOffset:function(){return tt},getWeek:function(){return $},getWeekYear:function(){return Z},getYearDay:function(){return X},hslToHsv:function(){return rt},hslToRgb:function(){return it},hsvToHsl:function(){return nt},iOS:function(){return N},isLight:function(){return ct},isLocalEvent:function(){return b},isTouchEvent:function(){return _},lighten:function(){return ot},mergeTags:function(){return pt},onZoom:function(){return c},padString:function(){return R},plainText:function(){return V},ready:function(){return a},relativeToValue:function(){return L},removeClass:function(){return S},removeElement:function(){return h},rgbToHsl:function(){return st},sameBounds:function(){return gt},saturate:function(){return ut},setInteractive:function(){return x},setStyle:function(){return m},splitString:function(){return j},stripTags:function(){return G},supports:function(){return u},trim:function(){return F},trimLeft:function(){return U},trimRight:function(){return B},truncateTextWithEllipsis:function(){return I}});var s=i(5040),n=i(5071),r=i(256),o=i(7449);function a(t){if("loading"!==document.readyState)t();else{const e=()=>{"loading"!==document.readyState&&(document.removeEventListener("readystatechange",e),t())};document.addEventListener("readystatechange",e)}}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function l(t,e,i,s){return t.addEventListener(e,i,s||!1),new o.ku((()=>{t.removeEventListener(e,i,s||!1)}))}function c(t){return l(window,"resize",(e=>{t()}))}function u(t){switch(t){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function d(t){return t.pointerId||0}function p(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let t=document.createElement("button");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}}function g(t){t&&t.focus()}function f(t){if(u("pointerevents"))return t;if(u("touchevents"))switch(t){case"pointerover":case"pointerdown":return"touchstart";case"pointerout":case"pointerleave":case"pointerup":return"touchend";case"pointermove":return"touchmove";case"click":return"click";case"dblclick":return"dblclick"}else if(u("mouseevents"))switch(t){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return t}function _(t){if("undefined"!=typeof Touch&&t instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&t instanceof PointerEvent&&null!=t.pointerType)switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(null!=t.type&&t.type.match(/^mouse/))return!1;return!0}function m(t,e,i){t.style[e]=i}function y(t,e){return t.style[e]}function v(t){if(t.composedPath){const e=t.composedPath();return 0===e.length?null:e[0]}return t.target}function w(t,e){let i=e;for(;;){if(t===i)return!0;if(null===i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function b(t,e){return t.target&&w(e.root.dom,t.target)}function x(t,e){t.style.pointerEvents=e?"auto":"none"}function D(t){if(void 0!==t.key)return t.key;switch(t.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+t.keyCode}function k(t){let e=t;for(;;){if(null===e.parentNode)return null!=e.host?e:null;e=e.parentNode}}let T;function M(t,e){const i=t.cssRules.length;return t.insertRule(e+"{}",i),t.cssRules[i]}class E extends o.KK{constructor(t,e,i,s=""){super(),this._root=function(t,e=""){if(null===t){if(null==T){const t=document.createElement("style");t.type="text/css",""!=e&&t.setAttribute("nonce",e),document.head.appendChild(t),T=t.sheet}return T}{const i=document.createElement("style");return i.type="text/css",""!=e&&i.setAttribute("nonce",e),t.appendChild(i),i.sheet}}(t,s);try{this._rule=M(this._root,e)}catch(t){this._rule=M(this._root,":not(*)")}r.each(i,((t,e)=>{this.setStyle(t,e)}))}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){const t=n.indexOf(this._root.cssRules,this._rule);if(-1===t)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,e){const i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")}setStyle(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")}}class O extends o.KK{constructor(t,e,i=""){super(),this._element=function(t,e,i=""){const s=document.createElement("style");return s.type="text/css",""!=i&&s.setAttribute("nonce",i),s.textContent=e,null===t?document.head.appendChild(s):t.appendChild(s),s}(t,e,i)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}}function P(t,e){if(t)if(t.classList){const i=e.split(" ");n.each(i,(e=>{t.classList.add(e)}))}else{let i=t.getAttribute("class");i?t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" ")+" "+e):t.setAttribute("class",e)}}function S(t,e){if(t)if(t.classList)t.classList.remove(e);else{let i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" "))}}function N(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function C(){return N()?1:void 0}function L(t,e){return s.isNumber(t)?t:null!=t&&s.isNumber(t.value)&&s.isNumber(e)?e*t.value:0}function A(t){let e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function R(t,e=0,i="0"){return"string"!=typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t}function U(t){return t.replace(/^[\s]*/,"")}function B(t){return t.replace(/[\s]*$/,"")}function F(t){return U(B(t))}function I(t,e,i=!1,s="..."){if(t.length>e){let n=e-1;for(;n>=0&&t.charAt(n).match(/\w/);)n--;return n>=0&&0==i?t.substring(0,n+1)+"...":t.substring(0,e)+s}return t}function H(t){if(void 0===t)return"string";let e=(t=(t=(t=t.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return e?e[1]:"number"===t?"number":"date"===t?"date":"duration"===t?"duration":t.match(/[#0]/)?"number":t.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function z(t){return t.replace(/\/(date|number|duration)$/i,"")}function G(t){return t?t.replace(/<[^>]*>/g,""):t}function V(t){return t?G((""+t).replace(/[\n\r]+/g,". ")):t}function W(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Y(t){let e="";for(let i=0;i{if(t.match(/^\s+$/))(t=" ")&&(t=" "),n.push(t);else if(e.test(t)){let e=t.split(i).filter((t=>""!==t));n=n.concat(e)}else n=n.concat([...t])})),n}function X(t,e=!1){const i=new Date(t.getFullYear(),0,0),s=t.getTime()-i.getTime()+60*(i.getTimezoneOffset()-t.getTimezoneOffset())*1e3;return Math.floor(s/864e5)}function $(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-s);const n=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-n.getTime())/864e5+1)/7)}function Z(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;return i.setUTCDate(i.getUTCDate()+4-s),new Date(Date.UTC(i.getUTCFullYear(),0,1)).getFullYear()}function K(t,e=!1){const i=$(new Date(t.getFullYear(),t.getMonth(),1),e);let s=$(t,e);return 1==s&&(s=53),s-i+1}function q(t,e,i=1,s=!1){let n=new Date(e,0,4,0,0,0,0);return s&&n.setUTCFullYear(e),7*t+i-((n.getDay()||7)+3)}function Q(t,e){return t>12?t-=12:0===t&&(t=12),null!=e?t+(e-1):t}function J(t,e=!1,i=!1,s=!1,n){if(s)return e?"Coordinated Universal Time":"UTC";if(n){const i=t.toLocaleString("en-US",{timeZone:n});return F(t.toLocaleString("en-US",{timeZone:n,timeZoneName:e?"long":"short"}).substr(i.length))}let r=t.toLocaleString("UTC"),o=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(o=o.replace(/ (standard|daylight|summer|winter) /i," ")),F(o)}function tt(t,e){const i=e||new Date(Date.UTC(2012,0,1,0,0,0,0)),s=new Date(i.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(i.toLocaleString("en-US",{timeZone:t})).getTime()-s.getTime())/6e4*-1}function et(t){return t.charAt(0).toUpperCase()+t.slice(1)}function it(t){let e,i,s,n=t.h,r=t.s,o=t.l;if(0==r)e=i=s=o;else{let t=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},a=o<.5?o*(1+r):o+r-o*r,h=2*o-a;e=t(h,a,n+1/3),i=t(h,a,n),s=t(h,a,n-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*s)}}function st(t){let e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),r=Math.min(e,i,s),o=0,a=0,h=(n+r)/2;if(n===r)o=a=0;else{let t=n-r;switch(a=h>.5?t/(2-n-r):t/(n+r),n){case e:o=(i-s)/t+(i0?255-t:t;return Math.round(i*e)}function ht(t,e){if(t){let i=at(Math.min(Math.max(t.r,t.g,t.b),230),e);return{r:Math.max(0,Math.min(255,Math.round(t.r+i))),g:Math.max(0,Math.min(255,Math.round(t.g+i))),b:Math.max(0,Math.min(255,Math.round(t.b+i))),a:t.a}}return t}function lt(t,e){return Math.round(255*e)}function ct(t){return(299*t.r+587*t.g+114*t.b)/1e3>=128}function ut(t,e){if(void 0===t||1==e)return t;let i=st(t);return i.s=e,it(i)}function dt(t,e={r:255,g:255,b:255},i={r:255,g:255,b:255}){let s=e,n=i;return ct(i)&&(s=i,n=e),ct(t)?n:s}function pt(t,e){return t||(t=[]),[...t,...e].filter(((t,e,i)=>i.indexOf(t)===e))}function gt(t,e){return!!e&&t.left==e.left&&t.right==e.right&&t.top==e.top&&t.bottom==e.bottom}},3360:function(t,e,i){"use strict";i.d(e,{z:function(){return D},m:function(){return k}});var s=i(7582),n=i(6331),r=i(4596),o=i(8777),a=i(1112),h=i(6245),l=i(5769),c=i(9582),u=i(5040),d=i(5071),p=i(256),g={AccelerationBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccelerationBands)),AccumulationDistribution:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulationDistribution)),AccumulativeSwingIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulativeSwingIndex)),Annotator:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Annotator)),ArcDiagram:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagram)),ArcDiagramLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramLink)),ArcDiagramNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramNodes)),Aroon:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Aroon)),AverageSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageSeries)),AverageTrueRange:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageTrueRange)),AwesomeOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AwesomeOscillator)),Axis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Axis)),AxisBullet:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisBullet)),AxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabel)),AxisLabelRadial:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabelRadial)),AxisRenderer:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRenderer)),AxisRendererCircular:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererCircular)),AxisRendererCurveX:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveX)),AxisRendererCurveY:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveY)),AxisRendererRadial:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererRadial)),AxisRendererX:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererX)),AxisRendererY:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererY)),AxisTick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisTick)),BaseColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.BaseColumnSeries)),BollingerBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BollingerBands)),BreadcrumbBar:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.BreadcrumbBar)),BullBearPower:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BullBearPower)),Bullet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Bullet)),Button:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Button)),CalloutSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CalloutSeries)),Candlestick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Candlestick)),CandlestickSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CandlestickSeries)),CategoryAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryAxis)),CategoryDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryDateAxis)),ChaikinMoneyFlow:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinMoneyFlow)),ChaikinOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinOscillator)),Chart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Chart)),ChartIndicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChartIndicator)),Chord:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Chord)),ChordDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordDirected)),ChordLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLink)),ChordLinkDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLinkDirected)),ChordNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNodes)),ChordNonRibbon:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNonRibbon)),Circle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Circle)),CirclePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.CirclePattern)),ClockHand:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.ClockHand)),ClusteredPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ClusteredPointSeries)),ColorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ColorControl)),ColorPicker:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPicker)),ColorPickerButton:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPickerButton)),ColorSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ColorSet)),ColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ColumnSeries)),CommodityChannelIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CommodityChannelIndex)),ComparisonControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ComparisonControl)),Component:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Component)),ConfirmButton:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ConfirmButton)),Container:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Container)),CurveChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveChart)),CurveColumnSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveColumnSeries)),CurveCursor:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveCursor)),CurveLineSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveLineSeries)),DataSaveControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DataSaveControl)),DateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DateAxis)),DateRangeSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DateRangeSelector)),DisparityIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DisparityIndex)),DoodleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DoodleSeries)),DrawingControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingControl)),DrawingSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingSeries)),DrawingToolControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingToolControl)),Dropdown:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Dropdown)),DropdownColors:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownColors)),DropdownControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownControl)),DropdownList:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownList)),DropdownListControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownListControl)),DurationAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DurationAxis)),EditableAxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.EditableAxisLabel)),EditableLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.EditableLabel)),Ellipse:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Ellipse)),EllipseSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.EllipseSeries)),Entity:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Entity)),Exporting:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Exporting)),ExportingMenu:()=>Promise.resolve().then((()=>i(396))).then((t=>t.ExportingMenu)),FibonacciSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciSeries)),FibonacciTimezoneSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciTimezoneSeries)),Flow:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Flow)),FlowLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowLink)),FlowNode:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNode)),FlowNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNodes)),ForceDirected:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.ForceDirected)),FunnelSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSeries)),FunnelSlice:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSlice)),Gantt:()=>Promise.resolve().then((()=>i(133))).then((t=>t.Gantt)),GanttCategoryAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxis)),GanttCategoryAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxisRenderer)),GanttDateAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxis)),GanttDateAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxisRenderer)),GanttSeries:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttSeries)),GaplessDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.GaplessDateAxis)),Gradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Gradient)),GrainPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GrainPattern)),Graphics:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Graphics)),GraticuleSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.GraticuleSeries)),Grid:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Grid)),GridLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GridLayout)),HeatLegend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HeatLegend)),HeikinAshi:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HeikinAshi)),Hierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Hierarchy)),HierarchyLink:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyLink)),HierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyNode)),HorizontalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HorizontalLayout)),HorizontalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalLineSeries)),HorizontalRaySeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalRaySeries)),IconControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconControl)),IconSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconSeries)),Indicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Indicator)),IndicatorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IndicatorControl)),InterfaceColors:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.InterfaceColors)),IntervalControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IntervalControl)),Label:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Label)),LabelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LabelSeries)),Layout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Layout)),Legend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Legend)),Line:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Line)),LineArrowSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LineArrowSeries)),LinePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinePattern)),LineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.LineSeries)),LinearGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinearGradient)),Link:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Link)),LinkedHierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchy)),LinkedHierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchyNode)),MACD:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACD)),MACross:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACross)),MapChart:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapChart)),MapLine:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLine)),MapLineSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLineSeries)),MapPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPointSeries)),MapPolygon:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygon)),MapPolygonSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygonSeries)),MapSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapSeries)),Measure:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Measure)),MedianPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MedianPrice)),Modal:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Modal)),Momentum:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Momentum)),MovingAverage:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverage)),MovingAverageDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageDeviation)),MovingAverageEnvelope:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageEnvelope)),NumericStepper:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.NumericStepper)),OHLC:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLC)),OHLCSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLCSeries)),OnBalanceVolume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OnBalanceVolume)),OrthogonalLine:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.OrthogonalLine)),OverboughtOversold:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OverboughtOversold)),PVT:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PVT)),Pack:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Pack)),PanelControls:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PanelControls)),ParallelChannelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ParallelChannelSeries)),Partition:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Partition)),PathPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PathPattern)),Pattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Pattern)),PatternSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PatternSet)),PercentChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentChart)),PercentSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentSeries)),PeriodSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PeriodSelector)),PictorialStackedSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PictorialStackedSeries)),Picture:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Picture)),PicturePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PicturePattern)),PieChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieChart)),PieSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieSeries)),PointedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PointedRectangle)),Polygon:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Polygon)),PolylineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PolylineSeries)),ProgressPie:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ProgressPie)),PyramidSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PyramidSeries)),QuadrantLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.QuadrantLineSeries)),RadarChart:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarChart)),RadarColumnSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarColumnSeries)),RadarCursor:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarCursor)),RadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarLineSeries)),RadialGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialGradient)),RadialLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialLabel)),RadialText:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialText)),Rectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Rectangle)),RectanglePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RectanglePattern)),RectangleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RectangleSeries)),RegressionSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RegressionSeries)),RelativeStrengthIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RelativeStrengthIndex)),ResetControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ResetControl)),RoundedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RoundedRectangle)),Sankey:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Sankey)),SankeyLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyLink)),SankeyNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyNodes)),Scrollbar:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Scrollbar)),SerialChart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SerialChart)),Serializer:()=>Promise.resolve().then((()=>i(5362))).then((t=>t.Serializer)),Series:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Series)),SeriesTypeControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SeriesTypeControl)),SerpentineChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SerpentineChart)),SettingsControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsControl)),SettingsModal:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsModal)),SimpleLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SimpleLineSeries)),Slice:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slice)),SliceGrouper:()=>Promise.resolve().then((()=>i(1790))).then((t=>t.SliceGrouper)),SlicedChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.SlicedChart)),Slider:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slider)),SmoothedRadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.SmoothedRadarLineSeries)),SmoothedXLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXLineSeries)),SmoothedXYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXYLineSeries)),SmoothedYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedYLineSeries)),SpiralChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SpiralChart)),Sprite:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Sprite)),SpriteResizer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SpriteResizer)),StandardDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StandardDeviation)),Star:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Star)),StepLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.StepLineSeries)),StochasticMomentumIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticMomentumIndex)),StochasticOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticOscillator)),StockChart:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockChart)),StockControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockControl)),StockLegend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockLegend)),StockPanel:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockPanel)),StockToolbar:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockToolbar)),Sunburst:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Sunburst)),SuperTrend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SuperTrend)),Text:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Text)),Tick:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tick)),Tooltip:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tooltip)),Tree:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Tree)),Treemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Treemap)),TrendLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TrendLineSeries)),Triangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Triangle)),Trix:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Trix)),TypicalPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TypicalPrice)),VWAP:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VWAP)),ValueAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ValueAxis)),Venn:()=>Promise.resolve().then((()=>i(8034))).then((t=>t.Venn)),VerticalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.VerticalLayout)),VerticalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VerticalLineSeries)),Volume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Volume)),VolumeProfile:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VolumeProfile)),VoronoiTreemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.VoronoiTreemap)),WilliamsR:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.WilliamsR)),WordCloud:()=>Promise.resolve().then((()=>i(6769))).then((t=>t.WordCloud)),XYChart:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChart)),XYChartScrollbar:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChartScrollbar)),XYCursor:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYCursor)),XYSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYSeries)),ZigZag:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ZigZag)),ZoomControl:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ZoomControl)),ZoomTools:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomTools)),ZoomableContainer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomableContainer))};function f(t){return u.isObject(t)}function _(t){return t instanceof n.JH||t instanceof a.Il||t instanceof h.gG||t instanceof l.YS}function m(t,e){let i=t.length;for(;i--;){const s=t[i];if(e in s)return s[e]}throw new Error("Could not find ref "+e)}function y(t,e){if("#"===t[0]||"@"===t[0]){if(t[1]===t[0])return{isValue:!0,value:t.slice(1)};{const i=t.split(/\./g);let s=m(e,i[0]);for(let t=1;t{e(t)}))}function w(t,e){v(t,e),e.adapters&&d.each(e.adapters,(e=>{t.adapters.add(e.key,e.callback)})),e.states&&d.each(e.states,(e=>{t.states.create(e.key,e.settings)})),t instanceof o.W&&e.children&&e.children.forEach((e=>{null==e.index||e.index>=t.children.length?t.children.push(e.value):t.children.insertIndex(e.index,e.value)}))}function b(t,e){if(!e.construct)return e.value;const i=e.construct.new(t,e.settings||{});return w(i,e),i}class x{constructor(){this._caching={},this._cache={},this._delayed=[]}afterParse(){this._delayed.forEach((t=>{t()}))}getClass(t){return this._cache[t]}storeClass(t){return(0,s.mG)(this,void 0,void 0,(function*(){if("Template"===t)return;const e=g[t];if(null==e)throw new Error("Unknown object type `"+t+"`");this._cache[t]=yield e()}))}cacheClass(t){let e=this._caching[t];return null==e&&(e=this._caching[t]=this.storeClass(t)),e}parseAsyncArray(t){return(0,s.mG)(this,void 0,void 0,(function*(){yield Promise.all(d.map(t,(t=>this.parseAsync(t))))}))}parseAsyncObjectKey(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){"type"===t?u.isString(e)?yield this.cacheClass(e):yield this.parseAsync(e):"geoJSON"===t||"geometry"===t||(yield this.parseAsync(e))}))}parseAsyncObject(t){return(0,s.mG)(this,void 0,void 0,(function*(){switch(t.type){case"Color":case"Percent":break;default:yield Promise.all(d.map(p.keys(t),(e=>this.parseAsyncObjectKey(e,t[e]))))}}))}parseAsync(t){return(0,s.mG)(this,void 0,void 0,(function*(){u.isArray(t)?yield this.parseAsyncArray(t):f(t)&&(_(t)||!0!==t.__parse&&!1===t.__parse||(yield this.parseAsyncObject(t)))}))}parseObject(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parse(t,e[n],i)})),s}parseArray(t,e,i){return d.map(e,(e=>this.parse(t,e,i)))}parseChildren(t,e,i){return d.map(e,(e=>this.parseChild(t,e,i)))}parseStops(t,e,i){return d.map(e,(e=>this.parseObject(t,e,i)))}parseSetting(t,e,i,s){if("layout"===e)switch(i){case"horizontal":return t.horizontalLayout;case"vertical":return t.verticalLayout;case"grid":return t.gridLayout}return"clusteredBullet"===e?(e,n)=>{const r=s.concat([{"@series":n}]);return this.parse(t,i,r)}:"projection"===e||"geoJSON"===e?i:"stops"===e?this.parseStops(t,i,s):this.parse(t,i,s)}parseSettings(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parseSetting(t,n,e[n],i)})),s}parseState(t,e,i){return{key:e.key,settings:this.parseSettings(t,e.settings,i)}}parseAdapter(t,e,i){return{key:e.key,callback:this.parse(t,e.callback,i)}}parseProperties(t,e,i){return d.map(p.keys(e),(s=>{const r=e[s];return e=>{const o=()=>{const o=this.parseValue(t,r,i),a=e[s];a?o.isValue?u.isArray(o.value)?a instanceof c.k?a.setAll(o.value):d.each(o.value,(t=>{a.push(t)})):e[s]=o.value:o.construct?e[s]=b(t,o):a instanceof n.JH||a instanceof l.YS?function(t,e){e.settings&&t.setAll(e.settings),w(t,e)}(a,o):v(a,o):o.isValue?e[s]=o.value:e[s]=b(t,o)};if("data"===s)this._delayed.push(o);else if("bullets"===s){const n=e[s];u.assert(null!=n),u.assert(u.isArray(r)),d.each(r,(e=>{n.push(((s,n)=>{const r=i.concat([{"@series":n}]);return this.parse(t,e,r)}))}))}else"bullet"===s?e.set("bullet",((e,s)=>{const n=i.concat([{"@axis":s}]);return this.parse(t,r,n)})):o()}}))}parseAxisRange(t,e,i){return{isValue:!1,type:void 0,construct:void 0,settings:this.parseSettings(t,e.settings,i),adapters:void 0,states:void 0,children:void 0,properties:void 0,index:void 0,value:e}}parseRefsObject(t,e,i){const s={};return p.each(e,((e,r)=>{if("axisRange"==r.__parseLogic||"seriesAxisRange"==r.__parseLogic){const e=this.parseAxisRange(t,r,i),s=m(i,r.axis),o=s.makeDataItem({});let a;const h=r.series?m(i,r.series):void 0;h?a=h.createAxisRange(o):s.createAxisRange(o),function(t,e){e.settings&&p.each(e.settings,((e,i)=>{if(i instanceof n.JH){const s=t.get(e);s instanceof n.JH?s.setAll(i._settings):t.set(e,i)}else t.set(e,i)})),w(t,e)}(o,e),a&&["fills","strokes","graphics"].forEach((e=>{if(void 0!==a[e]&&void 0!==r[e]){r[e].__parse=!0;const s=this.parse(t,r[e],i);a[e].template.setAll(s)}}))}else s["#"+e]=this.parse(t,r,i)})),s}parseRefs(t,e,i){if(u.isArray(e)){const s=e.length;for(let n=0;nthis.parseState(t,e,i))):void 0,h=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0,l=null==e.index?void 0:e.index;return{isValue:!1,type:e.type,construct:s,settings:n,adapters:h,states:a,children:o,properties:r,index:l,value:e}}parseTemplate(t,e,i){e.refs&&(i=this.parseRefs(t,e.refs,i));const s=e.settings?this.parseSettings(t,e.settings,i):{},n=l.YS.new(s),r=e.states?d.map(e.states,(e=>this.parseState(t,e,i))):void 0,o=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0;return o&&d.each(o,(t=>{n.adapters.add(t.key,t.callback)})),r&&d.each(r,(t=>{n.states.create(t.key,t.settings)})),{isValue:!0,value:n}}parseValue(t,e,i){return e instanceof n.JH?{isValue:!0,value:e}:u.isArray(e)?{isValue:!0,value:this.parseArray(t,e,i)}:f(e)?_(e)?{isValue:!0,value:e}:"Color"===e.type?{isValue:!0,value:a.Il.fromAny(e.value)}:"Percent"===e.type?{isValue:!0,value:new h.gG(e.value)}:"Template"===e.type?this.parseTemplate(t,e,i):!0===e.__parse?{isValue:!0,value:this.parseObject(t,e,i)}:!1===e.__parse?{isValue:!0,value:e}:this.parseEntity(t,e,i):u.isString(e)?y(e,i):{isValue:!0,value:e}}parse(t,e,i){const s=this.parseValue(t,e,i);return s.isValue?s.value:b(t,s)}}class D{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t}static new(t){return new this(t,!0)}parse(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){const i=new x;yield i.parseAsync(t);const s=i.parse(this._root,t,[]);if(e.parent){if(!(s instanceof r.j))throw new Error("When using the parent setting, the entity must be a Sprite");e.parent.children.push(s)}else s instanceof n.JH&&s._applyThemes(!0);return i.afterParse(),s}))}parseString(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.parse(JSON.parse(t),e)}))}}function k(t,e){g[t]||(g[t]=()=>new Promise((t=>{t(e)})))}},6890:function(t,e,i){"use strict";i.d(e,{e:function(){return p}});var s=i(6331),n=i(9361),r=i(1112),o=i(1437),a=i(6245),h=i(5769),l=i(9582),c=i(5040),u=i(5071),d=i(256);class p extends s.JH{constructor(){super(...arguments),this._refs={}}serialize(t,e=0,i=!1,p=!1){if(e>this.get("maxDepth",2))return;if(!1===t||!0===t)return t;if(c.isArray(t)){const s=[];return u.each(t,(t=>{s.push(this.serialize(t,e,i,p))})),s}if(t instanceof l.k){const s=[];return u.each(t.values,(t=>{s.push(this.serialize(t,e,i,p))})),s}const g={},f=t instanceof s.JH||t instanceof h.YS||t instanceof r.Il||t instanceof a.gG,_=this.get("fullSettings",[]);if(t instanceof s.JH){g.type=t.className;let s=this._filterSettings(d.keys(t._settings));s=s.filter((e=>t.isUserSetting(e))),s.length&&(g.settings={},u.each(s,(s=>{const n=t.get(s);void 0!==n&&(g.settings[s]=this.serialize(n,e+1,i||-1!==_.indexOf(s)),t instanceof o.p&&"stops"===s&&(g.settings[s]=this.serialize(n,0,!0)))}))),this._processAdapters(t,g),this._processStates(t,g)}else if(t instanceof h.YS){g.type="Template";let i=this._filterSettings(d.keys(t._settings));return i.length&&(g.settings={},u.each(i,(i=>{void 0!==t._settings[i]&&(g.settings[i]=this.serialize(t.get(i),e+1,-1!==_.indexOf(i)))}))),this._processAdapters(t,g),this._processStates(t,g),g}if(t instanceof n.w&&t.data.length&&-1===(this.get("excludeProperties")||[]).indexOf("data")&&(g.properties={data:this.serialize(t.data.values,e,!0)}),t instanceof r.Il)return{type:"Color",value:t.toCSSHex()};if(t instanceof a.gG)return{type:"Percent",value:t.percent};if(c.isString(t))return this._escapeRefs(t);if(c.isNumber(t))return t;if(c.isObject(t))if(i&&!f){const s=this.get("excludeProperties",[]);d.each(t,((t,n)=>{-1===s.indexOf(t)&&void 0!==n&&(g[t]=this.serialize(n,e+1,i,p))})),p&&d.each(g,((t,e)=>{c.isObject(e)&&(g.__parse=!0)}))}else if(f){const s=this.get("includeProperties",[]);u.each(s,(s=>{const n=t[s];void 0!==n&&(void 0===g.properties&&(g.properties={}),g.properties[s]=this.serialize(n,e+1,i,p))}))}return 0==e&&d.keys(this._refs).length&&(g.refs=this._refs),g}_processAdapters(t,e){if(this.get("includeAdapters",!1)){const i="string"==this.get("functionsAs","string"),s=t.adapters._callbacks;Object.keys(s).length>0&&(e.adapters=[],d.each(s,((t,s)=>{s.forEach((s=>{e.adapters.push({key:t,callback:i?s.toString():s})}))})))}}_processStates(t,e){if(this.get("includeStates",!1)){const i=t.states._states;Object.keys(i).length>0&&(e.states=[],d.each(i,((t,i)=>{Object.keys(i._settings).length>0&&e.states.push({key:t,settings:this.serialize(i._settings,0,!0)})})))}}_filterSettings(t){const e=this.get("includeSettings",[]),i=this.get("excludeSettings",[]);return e.length?t=e:i.length&&(t=t.filter((t=>-1===i.indexOf(t)))),t}_escapeRefs(t){return t.replace(/^#/,"##").replace(/^@/,"@@")}}p.className="Serializer",p.classNames=s.JH.classNames.concat([p.className])},3783:function(t,e,i){"use strict";i.d(e,{X:function(){return c},v:function(){return l}});var s=i(3409),n=i(6245),r=i(1112),o=i(6881),a=i(962),h=i(9395);function l(t,e,i,s){t.set(e,i.get(s)),i.on(s,(i=>{t.set(e,i)}))}class c extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.language,e=this._root.interfaceColors,i=this._root.horizontalLayout,s=this._root.verticalLayout,c=this.rule.bind(this);c("InterfaceColors").setAll({stroke:r.Il.fromHex(15066597),fill:r.Il.fromHex(15987699),primaryButton:r.Il.fromHex(6788316),primaryButtonHover:r.Il.fromHex(6779356),primaryButtonDown:r.Il.fromHex(6872182),primaryButtonActive:r.Il.fromHex(6872182),primaryButtonDisabled:r.Il.fromHex(14342874),primaryButtonTextDisabled:r.Il.fromHex(16777215),primaryButtonText:r.Il.fromHex(16777215),primaryButtonStroke:r.Il.fromHex(16777215),secondaryButton:r.Il.fromHex(14277081),secondaryButtonHover:r.Il.fromHex(10724259),secondaryButtonDown:r.Il.fromHex(9276813),secondaryButtonActive:r.Il.fromHex(15132390),secondaryButtonText:r.Il.fromHex(0),secondaryButtonStroke:r.Il.fromHex(16777215),grid:r.Il.fromHex(0),background:r.Il.fromHex(16777215),alternativeBackground:r.Il.fromHex(0),text:r.Il.fromHex(0),alternativeText:r.Il.fromHex(16777215),disabled:r.Il.fromHex(11382189),positive:r.Il.fromHex(5288704),negative:r.Il.fromHex(11730944)});{const t=c("ColorSet");t.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[r.Il.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),t.setPrivate("currentStep",0),t.setPrivate("currentPass",0)}c("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:h.out(h.cubic)}),c("Component").setAll({interpolationDuration:0,interpolationEasing:h.out(h.cubic)}),c("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:n.CI,tooltipY:n.CI,tooltipPosition:"fixed",isMeasured:!0}),c("Sprite").states.create("default",{visible:!0,opacity:1}),c("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),c("Graphics").setAll({strokeWidth:1}),c("Chart").setAll({width:n.AQ,height:n.AQ,interactiveChildren:!1}),c("ZoomableContainer").setAll({width:n.AQ,height:n.AQ,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:h.out(h.cubic),animationDuration:600,maxPanOut:.4}),c("Sprite",["horizontal","center"]).setAll({centerX:n.CI,x:n.CI}),c("Sprite",["vertical","center"]).setAll({centerY:n.CI,y:n.CI}),c("Container",["horizontal","layout"]).setAll({layout:i}),c("Container",["vertical","layout"]).setAll({layout:s}),c("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),c("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),c("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),c("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),c("GrainPattern").setAll({width:200,height:200,colors:[r.Il.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const t=c("PatternSet");t.setAll({step:1}),l(t,"color",e,"stroke")}c("LinearGradient").setAll({rotation:90}),c("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:o.M.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),c("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:t.translate("Press ENTER to toggle"),role:"checkbox"});{const t=c("Rectangle",["legend","item","background"]);t.setAll({fillOpacity:0}),l(t,"fill",e,"background")}c("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:n.CI,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),c("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:n.AQ,height:n.AQ,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const t=c("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});l(t,"fill",e,"disabled"),l(t,"stroke",e,"disabled")}c("Label",["legend","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0}),l(c("Label",["legend","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("Label",["legend","value","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:n.AQ,populateText:!0}),l(c("Label",["legend","value","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("HeatLegend").setAll({stepCount:1}),c("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),c("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:n.AQ,width:15}),c("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:n.AQ,height:15}),c("HeatLegend",["vertical"]).setAll({height:n.AQ}),c("HeatLegend",["horizontal"]).setAll({width:n.AQ}),c("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),c("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const t=c("Label");t.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),l(t,"fill",e,"text")}c("RadialLabel").setAll({textType:"regular",centerY:n.CI,centerX:n.CI,inside:!1,radius:0,baseRadius:n.AQ,orientation:"auto",textAlign:"center"}),c("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),c("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:r.Il.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:r.Il.fromHex(0)}),c("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),c("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),c("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),c("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const t=c("Tick");t.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),l(t,"stroke",e,"grid")}c("Bullet").setAll({locationX:.5,locationY:.5}),c("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:n.CI,centerY:n.CI,animationEasing:h.out(h.cubic),exportable:!1}),c("Tooltip",["system"]).setAll({pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});{const t=c("PointedRectangle",["tooltip","system","background"]);t.setAll({strokeOpacity:.3}),l(t,"fill",e,"background"),l(t,"stroke",e,"grid")}c("Label",["tooltip","system"]).setAll({fontSize:12,fill:e.get("background")}),c("Polygon").setAll({animationEasing:h.out(h.cubic)}),c("Link").setAll({cornerRadius:8,setStateOnChildren:!0});{const t=c("OrthogonalLine",["link","line"]);t.setAll({isMeasured:!1,crisp:!0}),l(t.states.create("active",{strokeWidth:2}),"stroke",e,"negative")}c("OrthogonalLine",["link","hit"]).setAll({strokeWidth:10,opacity:0,strokeOpacity:0});{const t=c("OrthogonalLine");t.setAll({strokeWidth:1,strokeOpacity:1,cornerRadius:10}),l(t,"stroke",e,"grid")}{const t=c("Triangle",["link"]);t.setAll({width:14,height:10,centerY:0}),l(t,"fill",e,"grid"),l(t,"stroke",e,"grid"),t.states.create("default",{stateAnimationDuration:0});const i=t.states.create("active",{stateAnimationDuration:0,stroke:(0,r.$_)(16777215),strokeWidth:2});i.set("draw",(t=>{t.arc(0,0,11,0,2*Math.PI),t.moveTo(-4,-4),t.lineTo(4,4),t.moveTo(4,-4),t.lineTo(-4,4)})),l(i,"fill",e,"negative")}c("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:r.Il.fromHex(16777215)});{const t=c("Label",["tooltip"]);t.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),l(t,"fill",e,"alternativeText")}c("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),c("Button").states.create("hover",{}),c("Button").states.create("down",{stateAnimationDuration:0}),c("Button").states.create("active",{}),c("Button").states.create("disabled",{forceInactive:!0});{const t=c("RoundedRectangle",["button","background"]);l(t,"fill",e,"primaryButton"),l(t,"stroke",e,"primaryButtonStroke")}l(c("RoundedRectangle",["button","background"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown"),l(c("RoundedRectangle",["button","background"]).states.create("active",{}),"fill",e,"primaryButtonActive"),l(c("RoundedRectangle",["button","background"]).states.create("disabled",{}),"fill",e,"primaryButtonDisabled"),l(c("Graphics",["button","icon"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled"),l(c("Label",["button"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled");{const t=c("Graphics",["button","icon"]);t.setAll({forceInactive:!0}),l(t,"stroke",e,"primaryButtonText")}l(c("Label",["button"]),"fill",e,"primaryButtonText"),c("ConfirmButton").setAll({toggleKey:"active",setStateOnChildren:!0,label:a._.new(this._root,{text:t.translate("Confirm"),forceHidden:!0})}),l(c("RoundedRectangle",["button","background","confirm"]).states.create("active",{}),"fill",e,"negative"),c("Label",["button","confirm"]).setAll({paddingTop:0,paddingBottom:0,paddingRight:3,paddingLeft:5}),c("Label",["button","confirm"]).states.create("default",{stateAnimationDuration:0}),c("Label",["button","confirm"]).states.create("active",{forceHidden:!1,stateAnimationDuration:0});{const t=c("Graphics",["icon","confirm","button"]);t.setAll({stateAnimationDuration:0}),t.states.create("default",{stateAnimationDuration:0}),l(t,"stroke",e,"primaryButtonText")}l(c("Graphics",["icon","confirm","button"]).states.create("active",{svgPath:"M -5 1 L 0 6 L 8 -5",strokeWidth:2}),"stroke",e,"primaryButtonText"),l(c("Graphics",["icon","confirm","button","secondary"]).states.create("active",{}),"stroke",e,"primaryButtonText"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1}),"fill",e,"negative"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1}),"fill",e,"negative"),c("Button",["button","confirm"]).states.create("hoverActive",{}),c("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:n.AQ,role:"button",ariaLabel:t.translate("Zoom Out"),layer:30});{const t=c("RoundedRectangle",["background","button","zoom"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"primaryButton")}l(c("RoundedRectangle",["background","button","zoom"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown");{const t=c("Graphics",["icon","button","zoom"]);t.setAll({crisp:!0,strokeOpacity:.7,draw:t=>{t.moveTo(0,0),t.lineTo(12,0)}}),l(t,"stroke",e,"primaryButtonText")}c("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:n.CI,centerY:n.CI,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:t.translate("Use up and down arrows to move selection")});{const t=c("RoundedRectangle",["background","resize","button"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"secondaryButton"),l(t,"stroke",e,"secondaryButtonStroke")}l(c("RoundedRectangle",["background","resize","button"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown");{const t=c("Graphics",["resize","button","icon"]);t.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),l(t,"stroke",e,"secondaryButtonText")}c("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),c("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),c("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:t.translate("Play"),toggleKey:"active"});{const t=c("RoundedRectangle",["play","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Graphics",["play","icon"]);t.setAll({stateAnimationDuration:0,dx:1,draw:t=>{t.moveTo(0,-5),t.lineTo(8,0),t.lineTo(0,5),t.lineTo(0,-5)}}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),c("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:t=>{t.moveTo(-4,-5),t.lineTo(-1,-5),t.lineTo(-1,5),t.lineTo(-4,5),t.lineTo(-4,-5),t.moveTo(4,-5),t.lineTo(1,-5),t.lineTo(1,5),t.lineTo(4,5),t.lineTo(4,-5)}}),c("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:t.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const t=c("RoundedRectangle",["switch","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["switch","icon"]);t.setAll({radius:8,centerY:0,centerX:0,dx:0}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["switch","icon"]).states.create("active",{dx:16}),c("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:h.out(h.cubic)}),c("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:n.AQ}),c("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:n.AQ}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const t=c("RoundedRectangle",["scrollbar","main","background"]);t.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),l(t,"fill",e,"fill")}{const t=c("RoundedRectangle",["scrollbar","thumb"]);t.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),l(t,"fill",e,"secondaryButton")}l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown"),c("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:n.CI,width:n.AQ,centerX:n.CI,ariaLabel:t.translate("Use up and down arrows to move selection")}),c("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:n.CI,centerY:n.CI,height:n.AQ,ariaLabel:t.translate("Use left and right arrows to move selection")});{const t=c("PointedRectangle",["axis","tooltip","background"]);t.setAll({cornerRadius:0}),l(t,"fill",e,"alternativeBackground")}c("Label",["axis","tooltip"]).setAll({role:void 0}),c("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),c("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),c("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),c("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),c("Star").setAll({spikes:5,innerRadius:5,radius:10}),c("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),c("Tooltip",["indicator"]).setAll({forceHidden:!0}),c("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),c("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),c("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),c("Container",["resizer","grip"]).states.create("hover",{});{const t=c("RoundedRectangle",["resizer","grip"]);t.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),l(t,"fill",e,"background"),l(t,"stroke",e,"alternativeBackground")}{const t=c("RoundedRectangle",["resizer","grip","outline"]);t.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),t.states.create("hover",{fillOpacity:.3}),l(t,"fill",e,"alternativeBackground")}c("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),c("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const t=c("Rectangle",["resizer","rectangle"]);t.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),l(t,"stroke",e,"alternativeBackground")}c("Graphics",["button","plus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0),t.moveTo(0,-4),t.lineTo(0,4)}}),c("Graphics",["button","minus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0)}}),c("Graphics",["button","home","icon"]).setAll({x:n.CI,y:n.CI,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),c("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),c("ZoomTools").setAll({x:n.AQ,centerX:n.AQ,y:n.AQ,centerY:n.AQ,paddingRight:10,paddingBottom:10}),c("ProgressPie").setAll({radius:n.AQ,width:50,height:50,centerX:(0,n.aQ)(-50),centerY:(0,n.aQ)(-50),innerRadius:(0,n.aQ)(85),numberFormat:"#."});{const t=c("Label",["progresspie"]);t.setAll({centerX:n.CI,centerY:n.CI,fontSize:"0.75em"}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["progresspie"]);t.setAll({fillOpacity:.5}),l(t,"fill",e,"background")}{const t=c("Slice",["progresspie"]);t.setAll({startAngle:-90}),l(t,"fill",e,"primaryButton")}{const t=c("Slice",["progresspie","background"]);t.setAll({fillOpacity:.2,arc:360}),l(t,"fill",e,"primaryButton")}c("EditableLabel",["numericstepper"]).setAll({y:n.CI,centerY:n.CI,multiLine:!1,marginRight:2});{const t=c("Container",["numericstepper","buttons"]);t.setAll({layout:this._root.verticalLayout,centerY:n.CI,y:n.CI,marginRight:10,opacity:0}),t.states.create("active",{opacity:1}),t.states.create("default",{opacity:0})}{const t=c("Triangle",["numericstepper"]);t.setAll({width:17,height:11,marginTop:3,marginBottom:3,strokeWidth:5,strokeOpacity:0,cursorOverStyle:"pointer"}),l(t,"fill",e,"secondaryButton")}c("Triangle",["downbutton"]).setAll({rotation:180})}}},5322:function(t,e,i){"use strict";i.r(e),i.d(e,{ArrayDisposer:function(){return c.rk},BlendMode:function(){return ot.b},Bullet:function(){return u.g},Button:function(){return d.z},CSVParser:function(){return bt},CanvasLayer:function(){return Pt.mM},CanvasRenderer:function(){return Pt.uK},Chart:function(){return q.k},Circle:function(){return g.C},CirclePattern:function(){return ut},Color:function(){return O.Il},ColorSet:function(){return mt.U},Component:function(){return v.w},ConfirmButton:function(){return p.p},Container:function(){return w.W},CounterDisposer:function(){return c.DM},DataItem:function(){return v.z},DataProcessor:function(){return xt},DateFormatter:function(){return Dt.C},Disposer:function(){return c.ku},DurationFormatter:function(){return kt.$},EditableLabel:function(){return A.Y},Ellipse:function(){return _.P},Entity:function(){return l.JH},Gradient:function(){return at.p},GrainPattern:function(){return rt},Graphics:function(){return m.T},GridLayout:function(){return x.M},HeatLegend:function(){return C},HorizontalLayout:function(){return L.G},InterfaceColors:function(){return Tt.v},JSONParser:function(){return wt},JsonData:function(){return yt.Q},Label:function(){return D._},Layout:function(){return R.A},Legend:function(){return U.D},Line:function(){return B.x},LinePattern:function(){return dt.y},LinearGradient:function(){return S.o},Link:function(){return F.r},ListData:function(){return yt.k},ListTemplate:function(){return E.o},Modal:function(){return h.u},MultiDisposer:function(){return c.FV},MutableValueDisposer:function(){return c.cx},NumberFormatter:function(){return Mt.e},NumericStepper:function(){return St.l},OrthogonalLine:function(){return I.P},PathPattern:function(){return ft},Pattern:function(){return nt.c},PatternSet:function(){return _t},Percent:function(){return k.gG},Picture:function(){return H.t},PicturePattern:function(){return pt.v},PointedRectangle:function(){return z.i},Polygon:function(){return f.m},ProgressPie:function(){return Nt.w},RadialGradient:function(){return lt},RadialLabel:function(){return G.x},RadialText:function(){return V.f},Rectangle:function(){return W.A},RectanglePattern:function(){return gt},Root:function(){return n.f},RoundedRectangle:function(){return T.c},Scrollbar:function(){return j.L},SerialChart:function(){return Q.j},Series:function(){return K.F},Slice:function(){return $.p},Slider:function(){return X.i},Sprite:function(){return Z.j},SpriteResizer:function(){return Ot.b},Star:function(){return y},Template:function(){return M.YS},Text:function(){return J.x},TextFormatter:function(){return Et.V},Theme:function(){return r.Q},Tick:function(){return tt.d},Timezone:function(){return it.r},Tooltip:function(){return P.u},Triangle:function(){return Y.C},VerticalLayout:function(){return et.Z},ZoomTools:function(){return st.H},ZoomableContainer:function(){return b.Y},addLicense:function(){return o.cP},array:function(){return ht},color:function(){return O.$_},disposeAllRootElements:function(){return o.UZ},ease:function(){return Ct},getRootById:function(){return o.f_},math:function(){return ct},net:function(){return s},object:function(){return vt},p0:function(){return k.p0},p100:function(){return k.AQ},p50:function(){return k.CI},percent:function(){return k.aQ},ready:function(){return a.ready},registry:function(){return o.i_},time:function(){return Rt},type:function(){return N},utils:function(){return a}});var s={};i.r(s),i.d(s,{load:function(){return Lt},readBlob:function(){return At}});var n=i(2855),r=i(3409),o=i(3145),a=i(7652),h=i(8219),l=i(6331),c=i(7449),u=i(5108),d=i(8054),p=i(2936),g=i(8035),f=i(7770),_=i(2433),m=i(1479);class y extends m.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("spikes"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const t=this._display,e=this.get("radius",0),i=a.relativeToValue(this.get("innerRadius",0),e),s=this.get("spikes",0),n=Math.PI/s;let r=Math.PI/2*3;t.moveTo(0,-e);for(let o=0;oT.c._new(this._root,{themeTags:a.mergeTags(this.markers.template.get("themeTags",[]),[this.get("orientation"),"heatlegend","marker"])},[this.markers.template]))))}_afterNew(){this._settings.themeTags=a.mergeTags(this._settings.themeTags,["heatlegend",this._settings.orientation]),super._afterNew(),this.set("tooltip",P.u.new(this._root,{themeTags:["heatlegend"]}))}makeMarker(){const t=this.markers.make();return t.states.create("disabled",{}),t}showValue(t,e,i){const s=this.getTooltip();if(s&&N.isNumber(t)){const n=this.get("startValue",0);let r=(t-n)/(this.get("endValue",1)-n);(r==1/0||r==-1/0||isNaN(r))&&(r=.5);const o=this.get("startColor"),a=this.get("endColor");let h;e||(e=this.getNumberFormatter().format(t)),i||(i=O.Il.interpolate(r,o,a)),s.label.set("text",e),h="vertical"==this.get("orientation")?this.markerContainer.toGlobal({x:0,y:this.innerHeight()*(1-r)}):this.markerContainer.toGlobal({x:this.innerWidth()*r,y:0});let l=s.get("background");l&&l.set("fill",i),s.set("pointTo",h),s.show()}}_prepareChildren(){super._prepareChildren();const t=this.labelContainer,e=this.get("orientation"),i=this.startLabel,s=this.endLabel,n=this.getTooltip();if(this.isDirty("orientation")&&("vertical"==e?(this.markerContainer.setAll({layout:this._root.verticalLayout,height:k.AQ}),this.set("layout",this._root.horizontalLayout),i.setAll({y:k.AQ,x:void 0,centerY:k.AQ,centerX:k.AQ}),s.setAll({y:0,x:void 0,centerY:0,centerX:k.AQ}),t.setAll({height:k.AQ,width:void 0}),n&&n.set("pointerOrientation","horizontal")):(this.markerContainer.setAll({layout:this._root.horizontalLayout,width:k.AQ}),this.set("layout",this._root.verticalLayout),i.setAll({x:0,y:void 0,centerX:0,centerY:0}),s.setAll({x:k.AQ,y:void 0,centerX:k.AQ,centerY:0}),t.setAll({width:k.AQ,height:void 0}),n&&n.set("pointerOrientation","vertical"))),this.isDirty("stepCount")){const t=this.get("stepCount",1),i=this.get("startColor"),s=this.get("endColor"),n=this.get("startOpacity",1),r=this.get("endOpacity",1);if(this.markerContainer.children.clear(),t>1)for(let o=0;o0&&e/u!=Math.round(e/u)))for(let h=0;h0&&h/c!=Math.round(h/c)||d{let i=e.offset;N.isNumber(i)||(i=t/(g.length-1));let s=e.opacity;N.isNumber(s)||(s=1);let n=e.color;if(n){const t=e.lighten;t&&(n=O.Il.lighten(n,t));const r=e.brighten;r&&(n=O.Il.brighten(n,r)),p.addColorStop(i,"rgba("+n.r+","+n.g+","+n.b+","+s+")")}t++}))}return p}}lt.className="RadialGradient",lt.classNames=at.p.classNames.concat([lt.className]);var ct=i(751);class ut extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("radius",3),a=2*o+i,h=2*o+i,l=Math.round(n/a),c=Math.round(r/h);a=n/l,h=r/c,0!=s&&(this._display.x=a*ct.cos(s),this._display.y=h*ct.sin(s));const u=this.get("color"),d=this.get("colorOpacity");(u||d)&&this._display.beginFill(u,d);for(let n=0==s?0:2*-c;n<2*c;n++)for(let r=0==s?0:2*-l;r<2*l;r++)if(!t||1!=(1&n)&&1!=(1&r)||1==(1&n)&&1==(1&r)){let t=r*a,s=n*h;e&&(t+=a+i/2,s+=h+i/2),this._display.drawCircle(t-o,s-o,o)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i),(u||d)&&this._display.endFill()}}ut.className="CirclePattern",ut.classNames=nt.c.classNames.concat([ut.className]);var dt=i(3035),pt=i(4429);class gt extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("maxWidth",5),a=this.get("maxHeight",5);const h=this._display;let l=o+i,c=a+i,u=Math.round(n/l),d=Math.round(r/c);l=n/u,c=r/d,0!=s&&(h.x=l/2*ct.cos(s),h.y=-c/2*ct.sin(s));for(let i=0==s?0:2*-d;i<2*d;i++)for(let n=0==s?0:2*-u;n<2*u;n++)if(!t||1!=(1&i)&&1!=(1&n)||1==(1&i)&&1==(1&n)){let t=n*l,s=i*c;e&&(t+=(l-o)/2,s+=(c-a)/2),h.drawRect(t,s,o,a)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i);const p=this.get("color"),g=this.get("colorOpacity");(p||g)&&(h.beginFill(p,g),h.endFill())}}gt.className="RectanglePattern",gt.classNames=nt.c.classNames.concat([gt.className]);class ft extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("svgPath")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("svgPath");null!=t&&this._display.svgPath(t);const e=this.get("color"),i=this.get("colorOpacity");(e||i)&&(this._display.beginFill(e,i),this._display.endFill())}}ft.className="PathPattern",ft.classNames=nt.c.classNames.concat([ft.className]);class _t extends l.JH{_afterNew(){if(super._afterNewApplyThemes(),0===this.get("patterns",[]).length){const t=this.get("color",this.root.interfaceColors.get("stroke"));this.set("patterns",[this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:1,color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,maxWidth:4,maxHeight:4,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:1,gap:6,color:t}),this.getCirclePattern({width:11,height:11,radius:2,color:t}),this.getLinePattern({width:6,height:6,rotation:90,strokeWidth:1,color:t}),this.getRectanglePattern({width:14,height:14,rotation:45,gap:4,maxWidth:6,maxHeight:6,checkered:!0,color:t}),this.getLinePattern({width:6,height:6,rotation:0,strokeWidth:1,color:t}),this.getRectanglePattern({width:15,height:15,rotation:0,gap:5,maxWidth:5,maxHeight:5,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getCirclePattern({width:20,height:20,radius:3,gap:4,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,gap:1,maxWidth:9,maxHeight:9,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:0,strokeWidth:3,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:90,strokeWidth:3,gap:1,color:t})])}this._dirty.patterns=!1}_beforeChanged(){this.isDirty("patterns")&&this.reset()}getIndex(t){const e=this.get("patterns",[]);return te.length-1?e[t-Math.floor(t*(t/e.length))]:e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0))}getLinePattern(t){return dt.y.new(this.root,t)}getRectanglePattern(t){return gt.new(this.root,t)}getCirclePattern(t){return ut.new(this.root,t)}}_t.className="PatternSet",_t.classNames=l.JH.classNames.concat([_t.className]);var mt=i(2754),yt=i(9582),vt=i(256);class wt{static parse(t,e){e=this._applyDefaults(e);try{if(N.isString(t)){let i=JSON.parse(t);return e.reverse&&N.isArray(i)&&i.reverse(),i}if(N.isArray(t)||N.isObject(t))return t;throw"Unable to parse JSON data"}catch(t){return}}static _applyDefaults(t){const e={};return t||(t={}),vt.each({reverse:!1},((i,s)=>{e[i]=t[i]||s})),e}}class bt{static parse(t,e){e=this._applyDefaults(e);let i,s,n,r=this.CSVToArray(t,e.delimiter),o=[],a=[];for(s=0;s{e[i]=t[i]||s})),e}}class xt extends l.JH{constructor(){super(...arguments),this._checkDates=!1,this._checkNumbers=!1,this._checkColors=!1,this._checkEmpty=!1,this._checkDeep=!1}_afterNew(){super._afterNew(),this._checkFeatures(),this.on("dateFields",(()=>this._checkFeatures())),this.on("dateFormat",(()=>this._checkFeatures())),this.on("numericFields",(()=>this._checkFeatures())),this.on("colorFields",(()=>this._checkFeatures())),this.on("emptyAs",(()=>this._checkFeatures()))}_checkFeatures(){(this.isDirty("dateFields")||this.isDirty("dateFormat"))&&(this._checkDates=this.get("dateFields")&&this.get("dateFields").length>0),this.isDirty("numericFields")&&(this._checkNumbers=this.get("numericFields")&&this.get("numericFields").length>0),this.isDirty("colorFields")&&(this._checkColors=this.get("colorFields")&&this.get("colorFields").length>0),this.isDirty("emptyAs")&&(this._checkEmpty=null!=this.get("emptyAs")),this._checkDeepFeatures()}_checkDeepFeatures(){const t=[];ht.each(["dateFields","numericFields","colorFields"],(e=>{ht.each(this.get(e,[]),(e=>{const i=e.split(".");for(i.pop();i.length>0;)t.push(i.join(".")),i.pop()}))})),this._checkDeep=t.length>0,this.setPrivate("deepFields",t)}processMany(t){N.isArray(t)&&(this._checkDates||this._checkNumbers||this._checkColors||this._checkEmpty)&&ht.each(t,(t=>{this.processRow(t)}))}processRow(t,e=""){vt.each(t,((i,s)=>{const n=e+i;this._checkEmpty&&(t[i]=this._maybeToEmpty(t[i])),this._checkNumbers&&(t[i]=this._maybeToNumber(n,t[i])),this._checkDates&&(t[i]=this._maybeToDate(n,t[i])),this._checkColors&&(t[i]=this._maybeToColor(n,t[i])),this._checkDeep&&-1!==this.getPrivate("deepFields",[]).indexOf(n)&&N.isObject(t[i])&&this.processRow(t[i],n+".")}))}_maybeToNumber(t,e){return-1!==this.get("numericFields").indexOf(t)?N.toNumber(e):e}_maybeToDate(t,e){return-1!==this.get("dateFields").indexOf(t)?this._root.dateFormatter.parse(e,this.get("dateFormat","")).getTime():e}_maybeToEmpty(t){return null!=t&&""!=t||null==this.get("emptyAs")?t:this.get("emptyAs")}_maybeToColor(t,e){return-1!==this.get("colorFields").indexOf(t)?O.Il.fromAny(e):e}}var Dt=i(6460),kt=i(798),Tt=i(9821),Mt=i(780),Et=i(7255),Ot=i(1195),Pt=i(4102),St=i(7049),Nt=i(6312),Ct=i(9395);function Lt(t,e,i){return new Promise(((s,n)=>{let r=null!=i&&"blob"==i.responseType,o=new XMLHttpRequest;if(o.onload=()=>{if(200===o.status){let t,i;if(r)return i=o.response,void At(i).then((t=>{let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}));t=o.responseText||o.response;let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}else n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.onerror=()=>{n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.open("GET",t,!0),i&&i.withCredentials&&(o.withCredentials=!0),null!=i){if(null!=i.requestHeaders)for(let t=0;t{const s=new FileReader;s.onload=t=>{e(s.result)},s.onerror=t=>{i(t)},s.readAsText(t)}))}var Rt=i(1926)},3100:function(t,e){"use strict";e.Z={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(t){let e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""}},9629:function(t){var e=function(t){"use strict";var e,i=Object.prototype,s=i.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",h=r.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,s){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new S(s||[]);return n(o,"_invoke",{value:M(t,i,a)}),o}function u(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",g="executing",f="completed",_={};function m(){}function y(){}function v(){}var w={};l(w,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==i&&s.call(x,o)&&(w=x);var D=v.prototype=m.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function i(n,r,o,a){var h=u(t[n],t,r);if("throw"!==h.type){var l=h.arg,c=l.value;return c&&"object"==typeof c&&s.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,o,a)}),(function(t){i("throw",t,o,a)})):e.resolve(c).then((function(t){l.value=t,o(l)}),(function(t){return i("throw",t,o,a)}))}a(h.arg)}var r;n(this,"_invoke",{value:function(t,s){function n(){return new e((function(e,n){i(t,s,e,n)}))}return r=r?r.then(n,n):n()}})}function M(t,e,i){var s=d;return function(n,r){if(s===g)throw new Error("Generator is already running");if(s===f){if("throw"===n)throw r;return C()}for(i.method=n,i.arg=r;;){var o=i.delegate;if(o){var a=E(o,i);if(a){if(a===_)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===d)throw s=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=g;var h=u(t,e,i);if("normal"===h.type){if(s=i.done?f:p,h.arg===_)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(s=f,i.method="throw",i.arg=h.arg)}}}function E(t,i){var s=i.method,n=t.iterator[s];if(n===e)return i.delegate=null,"throw"===s&&t.iterator.return&&(i.method="return",i.arg=e,E(t,i),"throw"===i.method)||"return"!==s&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),_;var r=u(n,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,_;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,_):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,_)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var h=s.call(o,"catchLoc"),l=s.call(o,"finallyLoc");if(h&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var s=i.completion;if("throw"===s.type){var n=s.arg;P(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,s){return this.delegate={iterator:N(t),resultName:i,nextLoc:s},"next"===this.method&&(this.arg=e),_}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},8494:function(t,e,i){"use strict";i.r(e),i.d(e,{am5:function(){return f}});const s=window.Promise,n=s&&s.prototype.then,r=s&&s.prototype.catch,o=s&&s.prototype.finally,a=s&&s.reject,h=s&&s.resolve,l=s&&s.allSettled,c=s&&s.all,u=s&&s.race,d=window.fetch,p=String.prototype.startsWith,g=String.prototype.endsWith;i(9629);const f=i(5322);var _;i.p=(_=function(){if(document.currentScript)return document.currentScript;var t=document.getElementsByTagName("script");return t[t.length-1]}().src,((/(.*\/)[^\/]*$/.exec(_)||[])[1]||"./")),s&&(window.Promise=s,n&&(s.prototype.then=n),r&&(s.prototype.catch=r),o&&(s.prototype.finally=o),a&&(s.reject=a),h&&(s.resolve=h),l&&(s.allSettled=l),c&&(s.all=c),u&&(s.race=u)),d&&(window.fetch=d),p&&(String.prototype.startsWith=p),g&&(String.prototype.endsWith=g)},4138:function(t,e){"use strict";var i={value:()=>{}};function s(){for(var t,e=0,i=arguments.length,s={};e=0&&(e=t.slice(i+1),t=t.slice(0,i)),t&&!s.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),h=-1,l=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++h0)for(var i,s,n=new Array(i),r=0;r0&&i*i>s*s+n*n}function u(t,e){for(var i=0;i1e-6?(E+Math.sqrt(E*E-4*M*O))/(2*M):O/E);return{x:s+x+D*P,y:n+k+T*P,r:P}}function f(t,e,i){var s,n,r,o,a=t.x-e.x,h=t.y-e.y,l=a*a+h*h;l?(n=e.r+i.r,n*=n,o=t.r+i.r,n>(o*=o)?(s=(l+o-n)/(2*l),r=Math.sqrt(Math.max(0,o/l-s*s)),i.x=t.x-s*a-r*h,i.y=t.y-s*h+r*a):(s=(l+n-o)/(2*l),r=Math.sqrt(Math.max(0,n/l-s*s)),i.x=e.x+s*a-r*h,i.y=e.y+s*h+r*a)):(i.x=e.x+i.r,i.y=e.y)}function _(t,e){var i=t.r+e.r-1e-6,s=e.x-t.x,n=e.y-t.y;return i>0&&i*i>s*s+n*n}function m(t){var e=t._,i=t.next._,s=e.r+i.r,n=(e.x*i.r+i.x*e.r)/s,r=(e.y*i.r+i.y*e.r)/s;return n*n+r*r}function y(t){this._=t,this.next=null,this.previous=null}function v(t,e){if(!(o=(i=t,t="object"==typeof i&&"length"in i?i:Array.from(i)).length))return 0;var i,s,n,r,o,a,l,u,p,g,v,w;if((s=t[0]).x=0,s.y=0,!(o>1))return s.r;if(n=t[1],s.x=-n.r,n.x=s.r,n.y=0,!(o>2))return s.r+n.r;f(n,s,r=t[2]),s=new y(s),n=new y(n),r=new y(r),s.next=r.previous=n,n.next=s.previous=r,r.next=n.previous=s;t:for(u=3;u(t=(r*t+o)%a)/a}();return s.x=e/2,s.y=i/2,t?s.eachBefore(x(t)).eachAfter(D(h,.5,l)).eachBefore(k(1)):s.eachBefore(x(w)).eachAfter(D(n.G,1,l)).eachAfter(D(h,s.r/Math.min(e,i),l)).eachBefore(k(Math.min(e,i)/(2*s.r))),s}return l.radius=function(e){return arguments.length?(t=(0,s.j)(e),l):t},l.size=function(t){return arguments.length?(e=+t[0],i=+t[1],l):[e,i]},l.padding=function(t){return arguments.length?(h="function"==typeof t?t:(0,n.Z)(+t),l):h},l}function x(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function D(t,e,i){return function(s){if(n=s.children){var n,r,o,a=n.length,h=t(s)*e||0;if(h)for(r=0;r=0))throw new Error(`invalid digits: ${t}`);if(e>15)return a;const i=10**e;return function(t){this._+=t[0];for(let e=1,s=t.length;er)if(Math.abs(d*l-c*u)>r&&o){let g=i-a,f=n-h,_=l*l+c*c,m=g*g+f*f,y=Math.sqrt(_),v=Math.sqrt(p),w=o*Math.tan((s-Math.acos((_+p-m)/(2*y*v)))/2),b=w/v,x=w/y;Math.abs(b-1)>r&&this._append`L${t+b*u},${e+b*d}`,this._append`A${o},${o},0,0,${+(d*g>u*f)},${this._x1=t+x*l},${this._y1=e+x*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,i,a,h,l){if(t=+t,e=+e,l=!!l,(i=+i)<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(a),u=i*Math.sin(a),d=t+c,p=e+u,g=1^l,f=l?a-h:h-a;null===this._x1?this._append`M${d},${p}`:(Math.abs(this._x1-d)>r||Math.abs(this._y1-p)>r)&&this._append`L${d},${p}`,i&&(f<0&&(f=f%n+n),f>o?this._append`A${i},${i},0,1,${g},${t-c},${e-u}A${i},${i},0,1,${g},${this._x1=d},${this._y1=p}`:f>r&&this._append`A${i},${i},0,${+(f>=s)},${g},${this._x1=t+i*Math.cos(h)},${this._y1=e+i*Math.sin(h)}`)}rect(t,e,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function l(){return new h}l.prototype=h.prototype},832:function(t,e,i){"use strict";i.d(e,{Z:function(){return D}});var s=i(3141);const n=Math.abs,r=Math.atan2,o=Math.cos,a=Math.max,h=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,d=Math.PI,p=d/2,g=2*d;function f(t){return t>=1?p:t<=-1?-p:Math.asin(t)}var _=i(5987);function m(t){return t.innerRadius}function y(t){return t.outerRadius}function v(t){return t.startAngle}function w(t){return t.endAngle}function b(t){return t&&t.padAngle}function x(t,e,i,s,n,r,o){var h=t-i,l=e-s,u=(o?r:-r)/c(h*h+l*l),d=u*l,p=-u*h,g=t+d,f=e+p,_=i+d,m=s+p,y=(g+_)/2,v=(f+m)/2,w=_-g,b=m-f,x=w*w+b*b,D=n-r,k=g*m-_*f,T=(b<0?-1:1)*c(a(0,D*D*x-k*k)),M=(k*b-w*T)/x,E=(-k*w-b*T)/x,O=(k*b+w*T)/x,P=(-k*w+b*T)/x,S=M-y,N=E-v,C=O-y,L=P-v;return S*S+N*N>C*C+L*L&&(M=O,E=P),{cx:M,cy:E,x01:-d,y01:-p,x11:M*(n/D-1),y11:E*(n/D-1)}}function D(){var t=m,e=y,i=(0,s.Z)(0),a=null,D=v,k=w,T=b,M=null,E=(0,_.d)(O);function O(){var s,_,m,y=+t.apply(this,arguments),v=+e.apply(this,arguments),w=D.apply(this,arguments)-p,b=k.apply(this,arguments)-p,O=n(b-w),P=b>w;if(M||(M=s=E()),vu)if(O>g-u)M.moveTo(v*o(w),v*l(w)),M.arc(0,0,v,w,b,!P),y>u&&(M.moveTo(y*o(b),y*l(b)),M.arc(0,0,y,b,w,P));else{var S,N,C=w,L=b,A=w,R=b,U=O,B=O,F=T.apply(this,arguments)/2,I=F>u&&(a?+a.apply(this,arguments):c(y*y+v*v)),H=h(n(v-y)/2,+i.apply(this,arguments)),z=H,G=H;if(I>u){var V=f(I/y*l(F)),W=f(I/v*l(F));(U-=2*V)>u?(A+=V*=P?1:-1,R-=V):(U=0,A=R=(w+b)/2),(B-=2*W)>u?(C+=W*=P?1:-1,L-=W):(B=0,C=L=(w+b)/2)}var Y=v*o(C),j=v*l(C),X=y*o(R),$=y*l(R);if(H>u){var Z,K=v*o(L),q=v*l(L),Q=y*o(A),J=y*l(A);if(O1?0:m<-1?d:Math.acos(m))/2),rt=c(Z[0]*Z[0]+Z[1]*Z[1]);z=h(H,(y-rt)/(nt-1)),G=h(H,(v-rt)/(nt+1))}else z=G=0}B>u?G>u?(S=x(Q,J,Y,j,v,G,P),N=x(K,q,X,$,v,G,P),M.moveTo(S.cx+S.x01,S.cy+S.y01),Gu&&U>u?z>u?(S=x(X,$,K,q,y,-z,P),N=x(Y,j,Q,J,y,-z,P),M.lineTo(S.cx+S.x01,S.cy+S.y01),z=o;--a)p.point(y[a],v[a]);p.lineEnd(),p.areaEnd()}m&&(y[r]=+t(h,r,n),v[r]=+e(h,r,n),p.point(l?+l(h,r,n):y[r],i?+i(h,r,n):v[r]))}if(f)return p=null,f+""||null}function _(){return(0,o.Z)().defined(c).curve(d).context(u)}return t="function"==typeof t?t:void 0===t?h.x:(0,n.Z)(+t),e="function"==typeof e?e:void 0===e?(0,n.Z)(0):(0,n.Z)(+e),i="function"==typeof i?i:void 0===i?h.y:(0,n.Z)(+i),f.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),l=null,f):t},f.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),f):t},f.x1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):l},f.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),i=null,f):e},f.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),f):e},f.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):i},f.lineX0=f.lineY0=function(){return _().x(t).y(e)},f.lineY1=function(){return _().x(t).y(i)},f.lineX1=function(){return _().x(l).y(e)},f.defined=function(t){return arguments.length?(c="function"==typeof t?t:(0,n.Z)(!!t),f):c},f.curve=function(t){return arguments.length?(d=t,null!=u&&(p=d(u)),f):d},f.context=function(t){return arguments.length?(null==t?u=p=null:p=d(u=t),f):u},f}},8457:function(t,e,i){"use strict";function s(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}i.d(e,{Z:function(){return s}}),Array.prototype.slice},3141:function(t,e,i){"use strict";function s(t){return function(){return t}}i.d(e,{Z:function(){return s}})},964:function(t,e,i){"use strict";function s(t){this._context=t}function n(t){return new s(t)}i.d(e,{Z:function(){return n}}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},774:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var s=i(8457),n=i(3141),r=i(964),o=i(5987),a=i(6758);function h(t,e){var i=(0,n.Z)(!0),h=null,l=r.Z,c=null,u=(0,o.d)(d);function d(n){var r,o,a,d=(n=(0,s.Z)(n)).length,p=!1;for(null==h&&(c=l(a=u())),r=0;r<=d;++r)!(r=0))throw new RangeError(`invalid digits: ${i}`);e=t}return t},()=>new s.y$(e)}},6758:function(t,e,i){"use strict";function s(t){return t[0]}function n(t){return t[1]}i.d(e,{x:function(){return s},y:function(){return n}})},7738:function(t,e,i){"use strict";i.d(e,{B7:function(){return _},HT:function(){return m},zO:function(){return g}});var s,n,r=0,o=0,a=0,h=1e3,l=0,c=0,u=0,d="object"==typeof performance&&performance.now?performance:Date,p="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return c||(p(f),c=d.now()+u)}function f(){c=0}function _(){this._call=this._time=this._next=null}function m(t,e,i){var s=new _;return s.restart(t,e,i),s}function y(){c=(l=d.now())+u,r=o=0;try{!function(){g(),++r;for(var t,e=s;e;)(t=c-e._time)>=0&&e._call.call(void 0,t),e=e._next;--r}()}finally{r=0,function(){for(var t,e,i=s,r=1/0;i;)i._call?(r>i._time&&(r=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:s=e);n=t,w(r)}(),c=0}}function v(){var t=d.now(),e=t-l;e>h&&(u-=e,l=t)}function w(t){r||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(y,t-d.now()-u)),a&&(a=clearInterval(a))):(a||(l=d.now(),a=setInterval(v,h)),r=1,p(y)))}_.prototype=m.prototype={constructor:_,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?g():+i)+(null==e?0:+e),this._next||n===this||(n?n._next=this:s=this,n=this),this._call=t,this._time=i,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},7896:function(t,e,i){"use strict";function s(){}function n(t){return null==t?s:function(){return this.querySelector(t)}}function r(){return[]}function o(t){return null==t?r:function(){return this.querySelectorAll(t)}}function a(t){return function(){return this.matches(t)}}function h(t){return function(e){return e.matches(t)}}var l=Array.prototype.find;function c(){return this.firstElementChild}var u=Array.prototype.filter;function d(){return Array.from(this.children)}function p(t){return new Array(t.length)}function g(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function f(t,e,i,s,n,r){for(var o,a=0,h=e.length,l=r.length;ae?1:t>=e?0:NaN}g.prototype={constructor:g,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var w="http://www.w3.org/1999/xhtml",b={svg:"http://www.w3.org/2000/svg",xhtml:w,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function x(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),b.hasOwnProperty(e)?{space:b[e],local:t}:t}function D(t){return function(){this.removeAttribute(t)}}function k(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T(t,e){return function(){this.setAttribute(t,e)}}function M(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function O(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function P(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function S(t){return function(){this.style.removeProperty(t)}}function N(t,e,i){return function(){this.style.setProperty(t,e,i)}}function C(t,e,i){return function(){var s=e.apply(this,arguments);null==s?this.style.removeProperty(t):this.style.setProperty(t,s,i)}}function L(t,e){return t.style.getPropertyValue(e)||P(t).getComputedStyle(t,null).getPropertyValue(e)}function A(t){return function(){delete this[t]}}function R(t,e){return function(){this[t]=e}}function U(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function B(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new I(t)}function I(t){this._node=t,this._names=B(t.getAttribute("class")||"")}function H(t,e){for(var i=F(t),s=-1,n=e.length;++s=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ut=[null];function dt(t,e){this._groups=t,this._parents=e}function pt(){return new dt([[document.documentElement]],ut)}dt.prototype=pt.prototype={constructor:dt,select:function(t){"function"!=typeof t&&(t=n(t));for(var e=this._groups,i=e.length,s=new Array(i),r=0;r=T&&(T=k+1);!(D=b[T])&&++T=0;)(s=n[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=v);for(var i=this._groups,s=i.length,n=new Array(s),r=0;r1?this.each((null==e?S:"function"==typeof e?C:N)(t,e,null==i?"":i)):L(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?A:"function"==typeof e?U:R)(t,e)):this.node()[t]},classed:function(t,e){var i=B(t+"");if(arguments.length<2){for(var s=F(this.node()),n=-1,r=i.length;++n=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}))}(t+""),o=r.length;if(!(arguments.length<2)){for(a=e?at:ot,s=0;s{s.stop(),t(i+e)}),e,i),s}var yt=(0,ft.Z)("start","end","cancel","interrupt"),vt=[],wt=0,bt=3;function xt(t,e,i,s,n,r){var o=t.__transition;if(o){if(i in o)return}else t.__transition={};!function(t,e,i){var s,n=t.__transition;function r(h){var l,c,u,d;if(1!==i.state)return a();for(l in n)if((d=n[l]).name===i.name){if(d.state===bt)return mt(r);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[l]):+lwt)throw new Error("too late; already scheduled");return i}function kt(t,e){var i=Tt(t,e);if(i.state>bt)throw new Error("too late; already running");return i}function Tt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Mt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Et,Ot=180/Math.PI,Pt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function St(t,e,i,s,n,r){var o,a,h;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(h=t*i+e*s)&&(i-=t*h,s-=e*h),(a=Math.sqrt(i*i+s*s))&&(i/=a,s/=a,h/=a),t*s180?e+=360:e-t>180&&(t+=360),r.push({i:i.push(n(i)+"rotate(",null,s)-2,x:Mt(t,e)})):e&&i.push(n(i)+"rotate("+e+s)}(r.rotate,o.rotate,a,h),function(t,e,i,r){t!==e?r.push({i:i.push(n(i)+"skewX(",null,s)-2,x:Mt(t,e)}):e&&i.push(n(i)+"skewX("+e+s)}(r.skewX,o.skewX,a,h),function(t,e,i,s,r,o){if(t!==i||e!==s){var a=r.push(n(r)+"scale(",null,",",null,")");o.push({i:a-4,x:Mt(t,i)},{i:a-2,x:Mt(e,s)})}else 1===i&&1===s||r.push(n(r)+"scale("+i+","+s+")")}(r.scaleX,r.scaleY,o.scaleX,o.scaleY,a,h),r=o=null,function(t){for(var e,i=-1,s=h.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?se(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?se(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jt.exec(t))?new re(e[1],e[2],e[3],1):(e=Xt.exec(t))?new re(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$t.exec(t))?se(e[1],e[2],e[3],e[4]):(e=Zt.exec(t))?se(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Kt.exec(t))?ue(e[1],e[2]/100,e[3]/100,1):(e=qt.exec(t))?ue(e[1],e[2]/100,e[3]/100,e[4]):Qt.hasOwnProperty(t)?ie(Qt[t]):"transparent"===t?new re(NaN,NaN,NaN,0):null}function ie(t){return new re(t>>16&255,t>>8&255,255&t,1)}function se(t,e,i,s){return s<=0&&(t=e=i=NaN),new re(t,e,i,s)}function ne(t,e,i,s){return 1===arguments.length?((n=t)instanceof It||(n=ee(n)),n?new re((n=n.rgb()).r,n.g,n.b,n.opacity):new re):new re(t,e,i,null==s?1:s);var n}function re(t,e,i,s){this.r=+t,this.g=+e,this.b=+i,this.opacity=+s}function oe(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}`}function ae(){const t=he(this.opacity);return`${1===t?"rgb(":"rgba("}${le(this.r)}, ${le(this.g)}, ${le(this.b)}${1===t?")":`, ${t})`}`}function he(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function le(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ce(t){return((t=le(t))<16?"0":"")+t.toString(16)}function ue(t,e,i,s){return s<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new pe(t,e,i,s)}function de(t){if(t instanceof pe)return new pe(t.h,t.s,t.l,t.opacity);if(t instanceof It||(t=ee(t)),!t)return new pe;if(t instanceof pe)return t;var e=(t=t.rgb()).r/255,i=t.g/255,s=t.b/255,n=Math.min(e,i,s),r=Math.max(e,i,s),o=NaN,a=r-n,h=(r+n)/2;return a?(o=e===r?(i-s)/a+6*(i0&&h<1?0:o,new pe(o,a,h,t.opacity)}function pe(t,e,i,s){this.h=+t,this.s=+e,this.l=+i,this.opacity=+s}function ge(t){return(t=(t||0)%360)<0?t+360:t}function fe(t){return Math.max(0,Math.min(1,t||0))}function _e(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function me(t,e,i,s,n){var r=t*t,o=r*t;return((1-3*t+3*r-o)*e+(4-6*r+3*o)*i+(1+3*t+3*r-3*o)*s+o*n)/6}Bt(It,ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return de(this).formatHsl()},formatRgb:te,toString:te}),Bt(re,ne,Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new re(le(this.r),le(this.g),le(this.b),he(this.opacity))},displayable(){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:oe,formatHex:oe,formatHex8:function(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}${ce(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ae,toString:ae})),Bt(pe,(function(t,e,i,s){return 1===arguments.length?de(t):new pe(t,e,i,null==s?1:s)}),Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new pe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new pe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*e,n=2*i-s;return new re(_e(t>=240?t-240:t+120,n,s),_e(t,n,s),_e(t<120?t+240:t-120,n,s),this.opacity)},clamp(){return new pe(ge(this.h),fe(this.s),fe(this.l),he(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=he(this.opacity);return`${1===t?"hsl(":"hsla("}${ge(this.h)}, ${100*fe(this.s)}%, ${100*fe(this.l)}%${1===t?")":`, ${t})`}`}}));var ye=t=>()=>t;function ve(t,e){var i=e-t;return i?function(t,e){return function(i){return t+i*e}}(t,i):ye(isNaN(t)?e:t)}var we=function t(e){var i=function(t){return 1==(t=+t)?ve:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(s){return Math.pow(t+s*e,i)}}(e,i,t):ye(isNaN(e)?i:e)}}(e);function s(t,e){var s=i((t=ne(t)).r,(e=ne(e)).r),n=i(t.g,e.g),r=i(t.b,e.b),o=ve(t.opacity,e.opacity);return function(e){return t.r=s(e),t.g=n(e),t.b=r(e),t.opacity=o(e),t+""}}return s.gamma=t,s}(1);function be(t){return function(e){var i,s,n=e.length,r=new Array(n),o=new Array(n),a=new Array(n);for(i=0;i=1?(i=1,e-1):Math.floor(i*e),n=t[s],r=t[s+1],o=s>0?t[s-1]:2*n-r,a=sr&&(n=e.slice(r,n),a[o]?a[o]+=n:a[++o]=n),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,h.push({i:o,x:Mt(i,s)})),r=De.lastIndex;return r=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Dt:kt;return function(){var o=r(this,t),a=o.on;a!==s&&(n=(s=a).copy()).on(e,i),o.on=n}}(i,t,e))},attr:function(t,e){var i=x(t),s="transform"===i?Lt:Te;return this.attrTween(t,"function"==typeof e?(i.local?Ne:Se)(i,s,Ut(this,"attr."+t,e)):null==e?(i.local?Ee:Me)(i):(i.local?Pe:Oe)(i,s,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;var s=x(t);return this.tween(i,(s.local?Ce:Le)(s,e))},style:function(t,e,i){var s="transform"==(t+="")?Ct:Te;return null==e?this.styleTween(t,function(t,e){var i,s,n;return function(){var r=L(this,t),o=(this.style.removeProperty(t),L(this,t));return r===o?null:r===i&&o===s?n:n=e(i=r,s=o)}}(t,s)).on("end.style."+t,Ie(t)):"function"==typeof e?this.styleTween(t,function(t,e,i){var s,n,r;return function(){var o=L(this,t),a=i(this),h=a+"";return null==a&&(this.style.removeProperty(t),h=a=L(this,t)),o===h?null:o===s&&h===n?r:(n=h,r=e(s=o,a))}}(t,s,Ut(this,"style."+t,e))).each(function(t,e){var i,s,n,r,o="style."+e,a="end."+o;return function(){var h=kt(this,t),l=h.on,c=null==h.value[o]?r||(r=Ie(e)):void 0;l===i&&n===c||(s=(i=l).copy()).on(a,n=c),h.on=s}}(this._id,t)):this.styleTween(t,function(t,e,i){var s,n,r=i+"";return function(){var o=L(this,t);return o===r?null:o===s?n:n=e(s=o,i)}}(t,s,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var s="style."+(t+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(null==e)return this.tween(s,null);if("function"!=typeof e)throw new Error;return this.tween(s,function(t,e,i){var s,n;function r(){var r=e.apply(this,arguments);return r!==n&&(s=(n=r)&&function(t,e,i){return function(s){this.style.setProperty(t,e.call(this,s),i)}}(t,r,i)),s}return r._value=e,r}(t,e,null==i?"":i))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ut(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,i;function s(){var s=t.apply(this,arguments);return s!==i&&(e=(i=s)&&function(t){return function(e){this.textContent=t.call(this,e)}}(s)),e}return s._value=t,s}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var s,n=Tt(this.node(),i).tween,r=0,o=n.length;r2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[n]):o=!1;o&&delete t.__transition}}(this,t)}))},gt.prototype.transition=function(t){var e,i;t instanceof ze?(e=t._id,t=t._name):(e=Ge(),(i=We).time=(0,_t.zO)(),t=null==t?null:t+"");for(var s=this._groups,n=s.length,r=0;r=n)&&Object.keys(a.O).every((function(t){return a.O[t](i[h])}))?i.splice(h--,1):(o=!1,n0&&t[c-1][2]>n;c--)t[c]=t[c-1];t[c]=[i,s,n]},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},i=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(t,s){if(1&s&&(t=this(t)),8&s)return t;if("object"==typeof t&&t){if(4&s&&t.__esModule)return t;if(16&s&&"function"==typeof t.then)return t}var n=Object.create(null);a.r(n);var r={};e=e||[null,i({}),i([]),i(i)];for(var o=2&s&&t;"object"==typeof o&&!~e.indexOf(o);o=i(o))Object.getOwnPropertyNames(o).forEach((function(e){r[e]=function(){return t[e]}}));return r.default=function(){return t},a.d(n,r),n},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,i){return a.f[i](t,e),e}),[]))},a.u=function(t){return"deps/"+{643:"pdfmake",4297:"xlsx",4384:"markerjs2"}[t]+".js"},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s={},n="@amcharts/amcharts5:",a.l=function(t,e,i,r){if(s[t])s[t].push(e);else{var o,h;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c{this.zoomOut()})),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",e);const a=this.plotContainer;a.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),a.children.push(this.topGridContainer),a.children.push(this.bulletsContainer),a.set("interactive",!0),a.set("interactiveChildren",!1),a.set("background",o.A.new(t,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(a.events.on("pointerdown",(t=>{this._handlePlotDown(t)}))),this._disposers.push(a.events.on("globalpointerup",(t=>{this._handlePlotUp(t)}))),this._disposers.push(a.events.on("globalpointermove",(t=>{this._handlePlotMove(t)}))),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(t){t._unstack(),t._posXDp&&t._posXDp.dispose(),t._posYDp&&t._posYDp.dispose(),t.set("baseAxis",void 0);const e=t.get("xAxis");e&&(g.remove(e.series,t),e.markDirtyExtremes());const i=t.get("yAxis");i&&(g.remove(i.series,t),i.markDirtyExtremes());const s=this.get("cursor");if(s){const e=s.get("snapToSeries");e&&g.remove(e,t)}super._removeSeries(t)}_applyThemes(t=!1){const e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}handleWheel(t){const e=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=t.originalEvent;let o=!1;if(!p.isLocalEvent(a,this))return;o=!0;const n=s.toLocal(t.point),r=this.get("wheelStep",.2),h=a.deltaY/100,l=a.deltaX/100,d=this.get("wheelZoomPositionX"),g=this.get("wheelZoomPositionY");"zoomX"!==e&&"zoomXY"!==e||0==l||this.xAxes.each((t=>{if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let h=t.get("maxDeviation",0),g=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let l=t.get("maxDeviation",0),g=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let h=t.get("maxDeviation",0),d=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let l=t.get("maxDeviation",0),d=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panX"!==i&&"panXY"!==i||0==h||this.xAxes.each((t=>{if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e+s,n=i+s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==e&&"panXY"!==e||0==l||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==i&&"panXY"!==i||0==h||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e-s,n=i-s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),o&&a.preventDefault()}_handleSetWheel(){const t=this.get("wheelX"),e=this.get("wheelY"),i=this.plotContainer;"none"!==t||"none"!==e?(this._wheelDp=i.events.on("wheel",(i=>{const s=i.originalEvent;("none"!==t&&0!=Math.abs(s.deltaX)||"none"!==e&&0!=Math.abs(s.deltaY))&&this.handleWheel(i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(t){let e=1;return t.get("renderer").get("inversed")&&(e=-1),e}_fixWheel(t,e){const i=e-t;return t<0&&(e=(t=0)+i),e>1&&(t=(e=1)-i),[t,e]}_handlePlotDown(t){const e=t.originalEvent;if(2==e.button)return;const i=this.plotContainer;let s=i.toLocal(t.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&e.pointerId&&m.keys(i._downPoints).length>0){const t=this.xAxes.getIndex(0),e=this.yAxes.getIndex(0);t&&(this._downStartX=t.get("start",0),this._downEndX=t.get("end",1)),e&&(this._downStartY=e.get("start",0),this._downEndY=e.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:e.clientX,y:e.clientY};const i=this.get("panX"),s=this.get("panY");i&&this.xAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")})),s&&this.yAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")}));const a="panstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:t.originalEvent})}}_handleWheelAnimation(t){t?t.events.on("stopped",(()=>{this._dispatchWheelAnimation()})):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const t="wheelended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}_handlePlotUp(t){const e=this._downPoint;if(e&&(this.get("panX")||this.get("panY"))){if(t.originalEvent.clientX==e.x&&t.originalEvent.clientY==e.y){const e="pancancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:t.originalEvent})}this._downPoint=void 0,this.xAxes.each((t=>{t._isPanning=!1})),this.yAxes.each((t=>{t._isPanning=!1}))}_handlePlotMove(t){const e=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const i=t.originalEvent.pointerId;if(i&&(this._movePoints[i]=t.point,m.keys(e._downPoints).length>1))return void this._handlePinch()}let i=this._downPoint;if(i){i=e.toLocal(this._root.documentPointToRoot(i));let s=e.toLocal(t.point);const a=this.get("panX"),o=this.get("panY");if(a){let t=this.get("scrollbarX");t&&t.events.disableType("rangechanged"),this.xAxes.each((t=>{if(t.get("panX")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.x-s.x)/e.width();t.get("renderer").get("inversed")&&(n*=-1);let r=a+n,h=o+n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}if(o){let t=this.get("scrollbarY");t&&t.events.disableType("rangechanged"),this.yAxes.each((t=>{if(t.get("panY")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.y-s.y)/e.height();t.get("renderer").get("inversed")&&(n*=-1);let r=a-n,h=o-n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}}}_handlePinch(){const t=this.plotContainer;let e=0,i=[],s=[];if(m.each(t._downPoints,((t,a)=>{i[e]=a;let o=this._movePoints[t];o&&(s[e]=o),e++})),i.length>1&&s.length>1){const e=t.width(),a=t.height();let o=i[0],n=i[1],r=s[0],h=s[1];if(o&&n&&r&&h){if(r=t.toLocal(r),h=t.toLocal(h),o=t.toLocal(o),n=t.toLocal(n),this.get("pinchZoomX")){const t=this._downStartX,i=this._downEndX;if(null!=t&&null!=i){o.x>n.x&&([o,n]=[n,o],[r,h]=[h,r]);let s=t+o.x/e*(i-t),a=t+n.x/e*(i-t),l=t+r.x/e*(i-t),d=t+h.x/e*(i-t),g=Math.max(.001,a-s)/Math.max(.001,d-l),c=t*g+s-l*g,u=i*g+a-d*g;this.xAxes.each((t=>{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}if(this.get("pinchZoomY")){const t=this._downStartY,e=this._downEndY;if(null!=t&&null!=e){o.y{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}}}}_handleCursorPosition(){const t=this.get("cursor");if(t){const e=t.getPrivate("point");let i=t.get("snapToSeries");if(t._downPoint&&(i=void 0),i&&e){const s=t.get("snapToSeriesBy"),a=[];g.each(i,(t=>{if(!t.isHidden()&&!t.isHiding())if("x!"!=s&&"y!"!=s){const e=t.startIndex(),i=t.endIndex();for(let s=e;s{const i=t.get("point");if(i){let a=0;a="x"==s||"x!"==s?Math.abs(e.x-i.x):"y"==s||"y!"==s?Math.abs(e.y-i.y):Math.hypot(e.x-i.x,e.y-i.y),a{const e=t.get("tooltip");e&&e._setDataItem(void 0)})),o){let e=o.component;e.showDataItemTooltip(o),e.setRaw("tooltipDataItem",o);const i=o.get("point");i&&t.handleMove(e.toGlobal({x:i.x-e.x(),y:i.y-e.y()}),!0)}}}}_updateCursor(){let t=this.get("cursor");t&&t.updateCursor()}_addCursor(t){this.plotContainer.children.push(t)}_prepareChildren(){if(super._prepareChildren(),this.series.each((t=>{this._colorize(t)})),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const t=this._prevSettings.cursor,e=this.get("cursor");e!==t&&(this._disposeProperty("cursor"),t&&t.dispose(),e&&(e._setChart(this),this._addCursor(e),this._pushPropertyDisposer("cursor",e.events.on("selectended",(()=>{this._handleCursorSelectEnd()})))),this._prevSettings.cursor=e)}if(this.isDirty("scrollbarX")){const t=this._prevSettings.scrollbarX,e=this.get("scrollbarX");e!==t&&(this._disposeProperty("scrollbarX"),t&&t.dispose(),e&&(e.parent||this.topAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarX",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.xAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarX",e.events.on("released",(()=>{this.xAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.xAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarX=e)}if(this.isDirty("scrollbarY")){const t=this._prevSettings.scrollbarY,e=this.get("scrollbarY");e!==t&&(this._disposeProperty("scrollbarY"),t&&t.dispose(),e&&(e.parent||this.rightAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarY",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.yAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarY",e.events.on("released",(()=>{this.yAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.yAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarY=e)}this._handleZoomOut()}_processSeries(t){super._processSeries(t);const e=t.get("xAxis"),i=t.get("yAxis");g.move(e.series,t),g.move(i.series,t),t._posXDp=t.addDisposer(e.events.on("positionchanged",(()=>{t._fixPosition()}))),t._posXDp=t.addDisposer(i.events.on("positionchanged",(()=>{t._fixPosition()}))),t.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?t.set("baseAxis",i):t.set("baseAxis",e)),t.get("stacked")&&(t._markDirtyKey("stacked"),g.each(t.dataItems,(t=>{t.set("stackToItemY",void 0),t.set("stackToItemX",void 0)}))),t._markDirtyAxes(),i.markDirtyExtremes(),e.markDirtyExtremes(),e._seriesAdded=!0,i._seriesAdded=!0,this._colorize(t)}_colorize(t){const e=this.get("colors");if(e&&null==t.get("fill")){const i=e.next();t._setSoft("stroke",i),t._setSoft("fill",i)}const i=this.get("patterns");if(i&&null==t.get("fillPattern")){const e=i.next();t._setSoft("fillPattern",e)}}_handleCursorSelectEnd(){const t=this.get("cursor"),e=t.get("behavior"),i=t.getPrivate("downPositionX",0),s=t.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,t.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,t.getPrivate("positionY",.5)));this.xAxes.each((t=>{if("zoomX"===e||"zoomXY"===e){let e=t.toAxisPosition(i),s=t.toAxisPosition(a);t.zoom(e,s)}t.setPrivate("updateScrollbar",!0)})),this.yAxes.each((t=>{if("zoomY"===e||"zoomXY"===e){let e=t.toAxisPosition(s),i=t.toAxisPosition(o);t.zoom(e,i)}t.setPrivate("updateScrollbar",!0)}))}_handleScrollbar(t,e,i,s){t.each((t=>{let a=t.fixPosition(e),o=t.fixPosition(i),n=t.zoom(a,o,void 0,s);const r="updateScrollbar";t.setPrivateRaw(r,!1),n?n.events.on("stopped",(()=>{t.setPrivateRaw(r,!0)})):t.setPrivateRaw(r,!0)}))}_processAxis(t,e){return t.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxis(t)}));else if("push"===t.type)e.children.push(t.newValue),t.newValue.processChart(this);else if("setIndex"===t.type)e.children.setIndex(t.index,t.newValue),t.newValue.processChart(this);else if("insertIndex"===t.type)e.children.insertIndex(t.index,t.newValue),t.newValue.processChart(this);else if("removeIndex"===t.type)this._removeAxis(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");e.children.moveValue(t.value,t.newIndex),t.value.processChart(this)}}))}_removeAxis(t){if(!t.isDisposed()){const e=t.parent;e&&e.children.removeValue(t);const i=t.gridContainer,s=i.parent;s&&s.children.removeValue(i);const a=t.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){const t=this.leftAxesContainer.width(),e=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",t),i.set("paddingRight",e);const s=this.topAxesContainer;s.set("paddingLeft",t),s.set("paddingRight",e)}processAxis(t){this.get("cursor")&&(this.addDisposer(t.on("start",(()=>{this._updateCursor()}))),this.addDisposer(t.on("end",(()=>{this._updateCursor()}))))}_handleAxisSelection(t,e){let i=t.fixPosition(t.get("start",0)),s=t.fixPosition(t.get("end",1));if(i>s&&([i,s]=[s,i]),-1!=this.xAxes.indexOf(t)){if(e||t.getPrivate("updateScrollbar")){let t=this.get("scrollbarX");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}}else if(-1!=this.yAxes.indexOf(t)&&(e||t.getPrivate("updateScrollbar"))){let t=this.get("scrollbarY");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let t=this.zoomOutButton;if(t&&t.parent){let e=!1;this.xAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),e?t.isHidden()&&t.show():t.hide()}}inPlot(t){const e=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=e.toGlobal(t);if(t.x>=-.5&&t.y>=-.5&&t.x<=e.width()+.5&&t.y<=e.height()+.5)return!0;if(i)for(let t=i.length-1;t>=0;t--){const e=i[t];if(e!=this){const t=e.plotContainer,i=this._root.rootPointToDocument(s),a=e._root.documentPointToRoot(i),o=t.toLocal(a);if(o.x>=-.1&&o.y>=-.1&&o.x<=t.width()+.1&&o.y<=t.height()+.1)return!0}}return!1}arrangeTooltips(){const t=this.plotContainer,e=t.width(),i=t.height();let s=this.height();const a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=t._display.toGlobal({x:0,y:0}),n=t._display.toGlobal({x:e,y:i});const r=[];let l,d,m=0,p=1/0,_=this._movePoint,x=this.get("maxTooltipDistance"),v=this.get("maxTooltipDistanceBy","xy");c.isNumber(x)&&this.series.each((t=>{if(!t.isHidden()){const e=t.get("tooltip");if(e){let i=e.get("pointTo");if(i){let e=Math.hypot(_.x-i.x,_.y-i.y);"x"==v?e=Math.abs(_.x-i.x):"y"==v&&(e=Math.abs(_.y-i.y)),e{const e=t.get("tooltip");if(e&&!e.get("forceHidden")){let i=!1,s=e.get("pointTo");if(s){if(x>=0){let s=e.get("pointTo");if(s&&d&&t!=l){let t=Math.hypot(d.x-s.x,d.y-s.y);"x"==v?t=Math.abs(d.x-s.x):"y"==v&&(t=Math.abs(d.y-s.y)),t>x&&(i=!0)}}else-1==x&&t!=l&&(i=!0);this.inPlot(this._tooltipToLocal(s))&&e.dataItem?i||(m+=s.y):i=!0,i||t.isHidden()||t.isHiding()?e.hide(0):(e.show(),r.push(e),y.push(t))}}})),this.setPrivate("tooltipSeries",y),this.get("arrangeTooltips")){let t=0,e=0;const a=this._root.tooltipContainer,l=r.length;if(m/l>i/2+o.y){r.sort(((t,e)=>u.HO(e.get("pointTo").y,t.get("pointTo").y)));let i=n.y;if(g.each(r,(s=>{let r=s.height();e++,t+=r;let l=s.get("centerY");l instanceof h.gG&&(r*=l.value),r+=s.get("marginBottom",0),s.set("bounds",{left:o.x,top:o.y,right:n.x,bottom:i}),s.setPrivate("customData",{left:o.x,top:o.y,right:n.x,bottom:i}),i=Math.min(i-r,s._fy-r),s.parent==a&&a.children.moveValue(s,0)})),i<0){r.reverse();let t=i;g.each(r,(s=>{e++;let a=s.get("bounds");if(a){let e=a.top-i,o=a.bottom-i;eu.HO(t.get("pointTo").y,e.get("pointTo").y)));let i=0;if(g.each(r,(r=>{e++;let l=r.height();t+=l;let d=r.get("centerY");d instanceof h.gG&&(l*=d.value),l+=r.get("marginBottom",0),r.set("bounds",{left:o.x,top:i,right:n.x,bottom:Math.max(o.y+s,i+l)}),r.parent==a&&a.children.moveValue(r,0),i=Math.max(i+l,r._fy+l)})),i>s){r.reverse();let t=s;g.each(r,(a=>{e++;let o=a.get("bounds");if(o){let e=o.top-(s-i),n=o.bottom-(s-i);n>t&&(n=t,e=n-a.height()),a.set("bounds",{left:o.left,top:e,right:o.right,bottom:n}),t=n-a.height()-a.get("marginBottom",0)}}))}}0==t&&e>0&&this._disposers.push(this.root.events.once("frameended",(()=>{this.arrangeTooltips()})))}}_tooltipToLocal(t){return this.plotContainer.toLocal(t)}zoomOut(){this.xAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))}))}_dispose(){super._dispose();const t=this.get("cursor");t&&t.dispose()}}x.className="XYChart",x.classNames=n.j.classNames.concat([x.className])},55:function(t,e,i){i.d(e,{l:function(){return u}});var s=i(3409),a=i(6245),o=i(1112),n=i(2754),r=i(3783),h=i(1926),l=i(5040),d=i(751),g=i(256),c=i(5071);class u extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.interfaceColors,e=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:n.U.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:o.Il.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:n.U.new(this._root,{saturation:0})});{const e=i("Graphics",["scrollbar","overlay"]);e.setAll({fillOpacity:.5}),(0,r.v)(e,"fill",t,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:a.AQ,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:a.AQ}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:a.AQ}),i("AxisLabel",["y"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const s=i("Grid",["cursor","x"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use left and right arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const s=i("Grid",["cursor","y"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use up and down arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const e=i("Graphics",["cursor","selection"]);e.setAll({fillOpacity:.15}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:a.CI,centerY:a.CI,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const e=i("AxisRenderer");e.setAll({crisp:!0,strokeOpacity:0}),(0,r.v)(e,"stroke",t,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:a.AQ}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:a.AQ});{const e=i("Rectangle",["axis","thumb","zoomgrip"]);e.setAll({fillOpacity:0}),(0,r.v)(e,"fill",t,"alternativeBackground"),e.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{const e=i("Grid");e.setAll({location:0,strokeOpacity:.15,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}{const e=i("Grid",["minor"]);e.setAll({location:0,strokeOpacity:.07,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{const e=i("Graphics",["axis","fill"]);e.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{const e=i("AxisTick");e.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),(0,r.v)(e,"stroke",t,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(t,e)=>{const i=t.get("axisFill");i&&(l.isNumber(e)&&e%2!=0?i.setPrivate("visible",!1):i.setPrivate("visible",!0))}});const s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],u={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_hour"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month"),year:e.translate("_date_year")},m={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_day"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month")+" "+e.translate("_date_year"),year:e.translate("_date_year")},p={millisecond:e.translate("_date_millisecond_full"),second:e.translate("_date_second_full"),minute:e.translate("_date_minute_full"),hour:e.translate("_date_hour_full"),day:e.translate("_date_day_full"),week:e.translate("_date_week_full"),month:e.translate("_date_month_full"),year:e.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m),tooltipDateFormats:p,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=t.get("endValue"),o=i.intervalDuration(),n=i.getPrivate("baseInterval"),r=i.getPrivate("gridInterval",n);let l=i.getPrivate("min",0);if(l=h.round(new Date(l),r.timeUnit,r.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),null!=s&&null!=a){const t=Math.round(Math.round((s-l)/o))/2;t==Math.round(t)?e.setPrivate("visible",!0):e.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.get("index");let s=!1;l.isNumber(i)&&i%2!=0||(s=!0),e.setPrivate("visible",s)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=i.getPrivate("step");l.isNumber(s)&&l.isNumber(a)&&(d.round(s/a/2,5)==Math.round(s/a/2)?e.setPrivate("visible",!1):e.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(70),height:(0,a.aQ)(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,e/2),t.lineTo(s,e/2)}}});{const e=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,e),t.lineTo(0,e),t.lineTo(0,0)}}});{const e=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(50),height:(0,a.aQ)(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:(0,a.aQ)(80),height:(0,a.aQ)(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const e=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const e=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const e=i("Graphics",["rangegrip","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(2,.5),t.lineTo(2,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),(0,r.v)(e,"stroke",t,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:a.CI}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:a.CI}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:a.AQ}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:a.AQ})}}},3355:function(t,e,i){i.d(e,{L:function(){return c}});var s=i(8777),a=i(6245),o=i(1479),n=i(8943),r=i(5040),h=i(7652),l=i(751),d=i(5071),g=i(256);class c extends s.W{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(n.r.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(n.r.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(o.T.new(this._root,{themeTags:["selection","cursor"],layer:30})),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:a.AQ,height:a.AQ,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout((()=>{this.setPrivate("visible",!0)}),500)),this._disposers.push(this.lineX.events.on("positionchanged",(()=>{this._handleXLine()}))),this._disposers.push(this.lineY.events.on("positionchanged",(()=>{this._handleYLine()}))),this._disposers.push(this.lineX.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineX.events.on("blur",(()=>this._handleLineBlur()))),this._disposers.push(this.lineY.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineY.events.on("blur",(()=>this._handleLineBlur()))),h.supports("keyboardevents")&&this._disposers.push(h.addEventListener(document,"keydown",(t=>{this._handleLineMove(h.getEventKey(t),t.ctrlKey)})))}_setUpTouch(){const t=this.chart;t&&(t.plotContainer._display.cancelTouch="none"!=this.get("behavior"))}_handleXLine(){let t=this.lineX.x(),e=!0;(t<0||t>this.width())&&(e=!1),this.lineX.setPrivate("visible",e)}_handleYLine(){let t=this.lineY.y(),e=!0;(t<0||t>this.height())&&(e=!1),this.lineY.setPrivate("visible",e)}_handleLineMove(t,e){let i="";const s=this.chart;let a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(e&&(o=5),a){let e,s=a.get("renderer").get("inversed",!1);"ArrowRight"==t||"ArrowDown"==t?e=1:"ArrowLeft"==t||"ArrowUp"==t?e=-1:"Tab"==t&&(e=0),null!=e&&(s&&(e*=-1),this.set(i,a.nextPosition(e*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const t=this.get("xAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipX=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateXLine(e)}))))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const t=this.get("yAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipY=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateYLine(e)}))))}}}_handleSyncWith(){const t=this.chart;if(t){const e=this.get("syncWith"),i=[];e&&d.each(e,(t=>{const e=t.chart;e&&i.push(e)})),t._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const t=this.get("positionX"),e=this.get("positionY");null==t&&null==e?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).x,3);this._toX!=e&&(this.lineX.animate({key:"x",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toX=e)}_updateYLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).y,3);this._toY!=e&&(this.lineY.animate({key:"y",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toY=e)}_drawLines(){this.lineX.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,this.height())})),this.lineY.set("draw",(t=>{t.moveTo(0,0),t.lineTo(this.width(),0)}))}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(t){this.chart=t,this._handleSyncWith();const e=t.plotContainer;this.events.on("boundschanged",(()=>{this._disposers.push(this.setTimeout((()=>{this.updateCursor()}),50))})),h.supports("touchevents")&&(this._disposers.push(e.events.on("click",(t=>{h.isTouchEvent(t.originalEvent)&&this._handleMove(t)}))),this._setUpTouch()),this._disposers.push(e.events.on("pointerdown",(t=>{this._handleCursorDown(t)}))),this._disposers.push(e.events.on("globalpointerup",(t=>{this._handleCursorUp(t),t.native||this.isHidden()||this._handleMove(t)}))),this._disposers.push(e.events.on("globalpointermove",(t=>{(this.get("syncWith")||0!=g.keys(e._downPoints).length||t.native||!this.isHidden())&&(this._handleMove(t),Math.hypot(this._lastPoint2.x-t.point.x,this._lastPoint2.y-t.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=t.point))})));const i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(t){const e=this.chart;return!!e&&e.inPlot(t)}_handleCursorDown(t){if(2==t.originalEvent.button)return;const e=t.point;let i=this._display.toLocal(e);const s=this.chart;if(this.selection.set("draw",(()=>{})),s&&this._inPlot(i)){if(this._downPoint=i,"none"!=this.get("behavior")){this.selection.show();const e="selectstarted";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}let e=this._getPosition(i).x,s=this._getPosition(i).y;this.setPrivate("downPositionX",e),this.setPrivate("downPositionY",s)}}_handleCursorUp(t){if(this._downPoint){const e=this.get("behavior","none");if("none"!=e){"z"===e.charAt(0)&&this.selection.hide();const i=t.point;let s=this._display.toLocal(i);const a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let i=!1;if("zoomX"!==e&&"zoomXY"!==e&&"selectX"!==e&&"selectXY"!==e||Math.abs(s.x-a.x)>o&&(i=!0),"zoomY"!==e&&"zoomXY"!==e&&"selectY"!==e&&"selectXY"!==e||Math.abs(s.y-a.y)>o&&(i=!0),i){const e="selectended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}else{const e="selectcancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}}}}this._downPoint=void 0}_handleMove(t){if(this.getPrivate("visible")){const e=this.chart;if(e&&g.keys(e.plotContainer._downPoints).length>1)return void this.set("forceHidden",!0);this.set("forceHidden",!1);const i=t.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,t.originalEvent)}}_getPosition(t){return{x:t.x/this.width(),y:t.y/this.height()}}handleMove(t,e,i){t||(t=this._movePoint);const s=this.get("alwaysShow");if(!t)return void this.hide(0);this._movePoint=t;let a=this._display.toLocal(t),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=t,this.isHidden()&&(this.show(),"z"==this.get("behavior","").charAt(0)&&this.selection.set("draw",(()=>{})));let n=a.x,h=a.y,l=this._getPosition(a);this.setPrivate("point",a);let d=this.get("snapToSeries");this._downPoint&&(d=void 0);let g=this.get("positionX"),c=l.x;r.isNumber(g)&&(c=g);let u=this.get("positionY"),m=l.y;r.isNumber(u)&&(m=u),this.setPrivate("positionX",c),this.setPrivate("positionY",m);const p=this._getPoint(c,m);if(n=p.x,h=p.y,o.xAxes.each((t=>{t._handleCursorPosition(c,d),s&&t.handleCursorShow()})),o.yAxes.each((t=>{t._handleCursorPosition(m,d),s&&t.handleCursorShow()})),!e){o._handleCursorPosition();const e="cursormoved";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,point:t,originalEvent:i})}this._updateLines(n,h),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);const t="cursorhidden";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this._downPoint&&"none"!=this.get("behavior")&&this._updateSelection(a)}_getPoint(t,e){return{x:this.width()*t,y:this.height()*e}}_updateLines(t,e){this._tooltipX||this.lineX.set("x",t),this._tooltipY||this.lineY.set("y",e),this._drawLines()}_updateSelection(t){const e=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();t.x<0&&(t.x=0),t.x>s&&(t.x=s),t.y<0&&(t.y=0),t.y>a&&(t.y=a),e.set("draw",(e=>{const o=this._downPoint;o&&("zoomXY"===i||"selectXY"===i?(e.moveTo(o.x,o.y),e.lineTo(o.x,t.y),e.lineTo(t.x,t.y),e.lineTo(t.x,o.y),e.lineTo(o.x,o.y)):"zoomX"===i||"selectX"===i?(e.moveTo(o.x,0),e.lineTo(o.x,a),e.lineTo(t.x,a),e.lineTo(t.x,0),e.lineTo(o.x,0)):"zoomY"!==i&&"selectY"!==i||(e.moveTo(0,o.y),e.lineTo(s,o.y),e.lineTo(s,t.y),e.lineTo(0,t.y),e.lineTo(0,o.y)))}))}_onHide(){if(this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorHide()})),t.yAxes.each((t=>{t.handleCursorHide()})),t.series.each((t=>{t.handleCursorHide()})))}super._onHide()}_onShow(){if(!this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorShow()})),t.yAxes.each((t=>{t.handleCursorShow()})))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}c.className="XYCursor",c.classNames=s.W.classNames.concat([c.className])},6515:function(t,e,i){i.d(e,{R:function(){return g}});var s=i(9361),a=i(8777),o=i(6245),n=i(7144),r=i(7142),h=i(5071),l=i(5040),d=i(7652);class g extends s.w{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(a.W.new(this._root,{})),this.gridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.topGridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.bulletsContainer=this.children.push(a.W.new(this._root,{isMeasured:!1,width:o.AQ,height:o.AQ,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new n.aV,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(a.W.new(this._root,{themeTags:["axis","header"],position:"absolute",background:r.A.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)h.each(t.oldValues,(t=>{t.dispose()}));else if("push"===t.type)this._processAxisRange(t.newValue,["range"]);else if("setIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("insertIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("removeIndex"===t.type)this.disposeDataItem(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value,["range"])}})));const t=this.get("renderer");t&&(t.axis=this,t.processAxis()),this.children.push(t),this._createGhostLabel()}_createGhostLabel(){const t=this.get("renderer").makeLabel(new s.z(this,void 0,{}),[]);t.adapters.disable("text"),t.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),t.events.disable(),this.ghostLabel=t}_updateFinals(t,e){}zoom(t,e,i,s){if(this.get("zoomable",!0))if(this._updateFinals(t,e),this.get("start")!==t||this.get("end")!=e){let a=this._sAnimation,o=this._eAnimation;t>e&&([t,e]=[e,t]);let n=this.get("maxDeviation",.5)*Math.min(1,e-t);t<-n&&(t=-n),e>1+n&&(e=1+n);let r=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),h=r;l.isNumber(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),1===e&&0!==t&&(s=tthis.get("end",1)?"end":"start");let d=this.get("minZoomCount",0);const g=this.dataItems;g&&g.lengthe&&([t,e]=[e,t]),"start"===s?(c>0&&1/(e-t)r&&(e=t+1/r),e>1&&e-t<1/r&&(t=e-1/r)):(c>0&&1/(e-t)r&&(t=e-1/r),t<0&&e-t<1/r&&(e=t+1/r)),1/(e-t)>r&&(e=t+1/r),1/(e-t)>r&&(t=e-1/r),null!=c&&null!=d&&t==this.get("start")&&e==this.get("end")){const t=this.chart;t&&t._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==t||this.get("start")==t)&&(o&&o.playing&&o.to==e||this.get("end")==e))return;if(i>0){let s,a,o=this.get("interpolationEasing");if(this.get("start")!=t&&(s=this.animate({key:"start",to:t,duration:i,easing:o})),this.get("end")!=e&&(a=this.animate({key:"end",to:e,duration:i,easing:o})),this._sAnimation=s,this._eAnimation=a,s)return s;if(a)return a}else this.set("start",t),this.set("end",e),this.root.events.once("frameended",(()=>{this.markDirtyKey("start")}))}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(t,e){t.setRaw("isRange",!0),this._createAssets(t,e),this._rangesDirty=!0,this._prepareDataItem(t);const i=t.get("above"),s=this.topGridContainer,a=t.get("grid");i&&a&&s.children.moveValue(a);const o=t.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(t,e){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each((t=>{this._prepareDataItem(t)})),h.each(this._seriesAxisRanges,(t=>{this._prepareDataItem(t)}))}_prepareChildren(){super._prepareChildren();const t=this.ghostLabel;if(t&&(this.get("fixAxisSize")?t.set("visible",!0):t.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){const t=this.chart;t&&t._updateCursor();let e=this.get("start",0),i=this.get("end",1),s=this.get("maxDeviation",.5)*Math.min(1,i-e);if(e<-s){let t=e+s;e=-s,this.setRaw("start",e),this.isDirty("end")&&this.setRaw("end",i-t)}if(i>1+s){let t=i-1-s;i=1+s,this.setRaw("end",i),this.isDirty("start")&&this.setRaw("start",e-t)}}const e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){const t=this.get("tooltip");if(t){const i=e.get("themeTags");t.addTag("axis"),t.addTag(this.className.toLowerCase()),t._applyThemes(),i&&(t.set("themeTags",d.mergeTags(t.get("themeTags"),i)),t.label._applyThemes())}}}_updateTooltipBounds(){const t=this.get("tooltip");t&&this.get("renderer").updateTooltipBounds(t)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(t){this.chart=t,this.get("renderer").chart=t,t.gridContainer.children.push(this.gridContainer),t.topGridContainer.children.push(this.topGridContainer),t.axisHeadersContainer.children.push(this.axisHeader),this.on("start",(()=>{t._handleAxisSelection(this)})),this.on("end",(()=>{t._handleAxisSelection(this)})),t.plotContainer.onPrivate("width",(()=>{this.markDirtySize()})),t.plotContainer.onPrivate("height",(()=>{this.markDirtySize()})),t.processAxis(this)}hideDataItem(t){return this._toggleFHDataItem(t,!0),super.hideDataItem(t)}showDataItem(t){return this._toggleFHDataItem(t,!1),super.showDataItem(t)}_toggleFHDataItem(t,e){const i="forceHidden",s=t.get("label");s&&s.set(i,e);const a=t.get("grid");a&&a.set(i,e);const o=t.get("tick");o&&o.set(i,e);const n=t.get("axisFill");n&&n.set(i,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.set(i,e)}}_toggleDataItem(t,e){const i=t.get("label"),s="visible";i&&i.setPrivate(s,e);const a=t.get("grid");a&&a.setPrivate(s,e);const o=t.get("tick");o&&o.setPrivate(s,e);const n=t.get("axisFill");n&&n.setPrivate(s,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.setPrivate(s,e)}}_createAssets(t,e,i){var s,a,o;const n=this.get("renderer");let r="minor";const h=t.get("label");if(h){let a=h.get("themeTags"),o=!1;i?-1==(null==a?void 0:a.indexOf(r))&&(o=!0):-1!=(null==a?void 0:a.indexOf(r))&&(o=!0),o&&(null===(s=h.parent)||void 0===s||s.children.removeValue(h),n.makeLabel(t,e),h.dispose(),n.labels.removeValue(h))}else n.makeLabel(t,e);const l=t.get("grid");if(l){let s=l.get("themeTags"),o=!1;i?-1==(null==s?void 0:s.indexOf(r))&&(o=!0):-1!=(null==s?void 0:s.indexOf(r))&&(o=!0),o&&(null===(a=l.parent)||void 0===a||a.children.removeValue(l),n.makeGrid(t,e),l.dispose(),n.grid.removeValue(l))}else n.makeGrid(t,e);const d=t.get("tick");if(d){let s=!1,a=d.get("themeTags");i?-1==(null==a?void 0:a.indexOf(r))&&(s=!0):-1!=(null==a?void 0:a.indexOf(r))&&(s=!0),s&&(null===(o=d.parent)||void 0===o||o.children.removeValue(d),n.makeTick(t,e),d.dispose(),n.ticks.removeValue(d))}else n.makeTick(t,e);i||t.get("axisFill")?i&&!t.get("axisFill")&&this.get("minorAxisFillsEnabled")&&n.makeAxisFill(t,e):n.makeAxisFill(t,e),this._processBullet(t)}_processBullet(t){let e=t.get("bullet"),i=this.get("bullet");if(e||!i||t.get("isRange")||(e=i(this._root,this,t)),e){e.axis=this;const i=e.get("sprite");i&&(i._setDataItem(t),t.setRaw("bullet",e),i.parent||this.bulletsContainer.children.push(i))}}_afterChanged(){super._afterChanged();const t=this.chart;t&&(t._updateChartLayout(),t.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(t){super.disposeDataItem(t);const e=this.get("renderer"),i=t.get("label");i&&(e.labels.removeValue(i),i.dispose());const s=t.get("tick");s&&(e.ticks.removeValue(s),s.dispose());const a=t.get("grid");a&&(e.grid.removeValue(a),a.dispose());const o=t.get("axisFill");o&&(e.axisFills.removeValue(o),o.dispose());const n=t.get("bullet");n&&n.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const t=this.ghostLabel;if(t){if(!t.isHidden()){const e=t.localBounds(),i=Math.ceil(e.right-e.left);let s=t.get("text");h.each(this.dataItems,(t=>{const e=t.get("label");if(e&&!e.isHidden()){const t=e.localBounds();Math.ceil(t.right-t.left)>i&&(s=e.text._getText())}})),t.set("text",s)}let e=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(t,e+.5*(i-e))}}_handleCursorPosition(t,e){t=this.get("renderer").toAxisPosition(t),this._cursorPosition=t,this._snapToSeries=e,this.updateTooltip()}updateTooltip(){const t=this._snapToSeries;let e=this._cursorPosition;const i=this.get("tooltip"),s=this.get("renderer");l.isNumber(e)&&(h.each(this.series,(i=>{if(i.get("baseAxis")===this){const s=this.getSeriesItem(i,e,this.get("tooltipLocation"));t&&-1!=t.indexOf(i)?(i.updateLegendMarker(s),i.updateLegendValue(s),i._settings.tooltipDataItem=s):(i.showDataItemTooltip(s),i.setRaw("tooltipDataItem",s))}})),this.get("snapTooltip")&&(e=this.roundAxisPosition(e,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",e),i&&(s.updateTooltipBounds(i),l.isNaN(e)?i.hide(0):(this._updateTooltipText(i,e),s.positionTooltip(i,e),ethis.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}roundAxisPosition(t,e){return t}_handleSeriesRemoved(){}handleCursorShow(){let t=this.get("tooltip");t&&t.show()}handleCursorHide(){let t=this.get("tooltip");t&&t.hide()}processSeriesDataItem(t,e){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(t){const e=this.get("renderer");return e.toAxisPosition(t/e.axisLength())}toAxisPosition(t){return this.get("renderer").toAxisPosition(t)}toGlobalPosition(t){return this.get("renderer").toGlobalPosition(t)}fixPosition(t){return this.get("renderer").fixPosition(t)}shouldGap(t,e,i,s){return!1}createAxisRange(t){return this.axisRanges.push(t)}_groupSeriesData(t){}getCellWidthPosition(){return.05}}g.className="Axis",g.classNames=s.w.classNames.concat([g.className])},2586:function(t,e,i){i.d(e,{_:function(){return o}});var s=i(6331),a=i(256);class o extends s.JH{_beforeChanged(){super._beforeChanged();const t=this.get("sprite");if(this.isDirty("sprite")&&t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t)),this.isDirty("location")){const e=t.dataItem;this.axis&&t&&e&&this.axis._prepareDataItem(e)}}_dispose(){const t=this.axis;t&&a.each(t._bullets,((e,i)=>{i.uid==this.uid&&delete t._bullets[e]})),super._dispose()}}o.className="AxisBullet",o.classNames=s.JH.classNames.concat([o.className])},6293:function(t,e,i){i.d(e,{k:function(){return a}});var s=i(962);class a extends s._{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabel",a.classNames=s._.classNames.concat([a.className])},9084:function(t,e,i){i.d(e,{p:function(){return a}});var s=i(815);class a extends s.x{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabelRadial",a.classNames=s.x.classNames.concat([a.className])},6275:function(t,e,i){i.d(e,{Y:function(){return d}});var s=i(1479),a=i(5769),o=i(7144),n=i(4714),r=i(8943),h=i(6293),l=i(7652);class d extends s.T{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new o.o(a.YS.new({}),(()=>n.T._new(this._root,{themeTags:l.mergeTags(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template])))),this.grid=this.addDisposer(new o.o(a.YS.new({}),(()=>r.r._new(this._root,{themeTags:l.mergeTags(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template])))),this.axisFills=this.addDisposer(new o.o(a.YS.new({}),(()=>s.T._new(this._root,{themeTags:l.mergeTags(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template])))),this.labels=this.addDisposer(new o.o(a.YS.new({}),(()=>h.k._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template]))))}makeTick(t,e){const i=this.ticks.make();return i._setDataItem(t),t.setRaw("tick",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(t,e){const i=this.grid.make();return i._setDataItem(t),t.setRaw("grid",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(t,e){const i=this.axisFills.make();return i._setDataItem(t),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),t.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(t,e){const i=this.labels.make();return i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),t.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(t),t.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const t=this.thumb;t&&(this._disposers.push(t.events.on("pointerdown",(t=>{this._handleThumbDown(t)}))),this._disposers.push(t.events.on("globalpointerup",(t=>{this._handleThumbUp(t)}))),this._disposers.push(t.events.on("globalpointermove",(t=>{this._handleThumbMove(t)}))))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",(()=>{this.axis.markDirtySize()}))}_changed(){if(super._changed(),this.isDirty("pan")){const t=this.thumb;if(t){const e=this.axis.labelsContainer,i=this.get("pan");"zoom"==i?e.children.push(t):"none"==i&&e.children.removeValue(t)}}}_handleThumbDown(t){this._thumbDownPoint=this.toLocal(t.point);const e=this.axis;this._downStart=e.get("start"),this._downEnd=e.get("end")}_handleThumbUp(t){this._thumbDownPoint=void 0}_handleThumbMove(t){const e=this._thumbDownPoint;if(e){const i=this.toLocal(t.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,e)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(t,e){return 0}positionToCoordinate(t){return this._inversed?(this._end-t)*this._axisLength:(t-this._start)*this._axisLength}updateTooltipBounds(t){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t*=i-e,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,t/(i-e)}fixPosition(t){return this.get("inversed")?1-t:t}_updateLC(){}toggleVisibility(t,e,i,s){let a=this.axis;const o=a.get("start",0),n=a.get("end",1);eo+(n-o)*(s+1e-4)?t.setPrivate("visible",!1):t.setPrivate("visible",!0)}_positionTooltip(t,e){const i=this.chart;i&&(t.set("pointTo",this._display.toGlobal(e)),i.inPlot(e)||t.hide())}processAxis(){}}d.className="AxisRenderer",d.classNames=s.T.classNames.concat([d.className])},6284:function(t,e,i){i.d(e,{n:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{width:a.AQ,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const t=this.grid.template;t.set("height",a.AQ),t.set("width",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)}))}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("x",-1e3));const s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){const i=this.chart,o=e.children;if(this.get(a)?e.addTag(a):e.removeTag(a),i){if(this.get(s)){const t=i.topAxesContainer.children;-1==t.indexOf(e)&&t.insertIndex(0,e),e.addTag(s),o.moveValue(this)}else{const t=i.bottomAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(s),o.moveValue(this,0)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(t,e){return(e.x-t.x)/this.width()}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,(t=t/(i-e)*this._lc)+this._ls}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerWidth();this._lc=this.axisLength()/i,this._ls=(t.x()-e.get("paddingLeft",0))/i}}_updatePositions(){const t=this.axis,e=t.x()-r.relativeToValue(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0);t.gridContainer.set("x",e),t.topGridContainer.set("x",e),t.bulletsContainer.set("y",this.y());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginLeft",0),o=t.x()-a;const n=t.parent;n&&(o-=n.get("paddingLeft",0)),s.children.length>0?(a=t.axisHeader.width(),t.set("marginLeft",a+1)):s.set("width",a),s.setAll({x:o,y:-1,height:e.height()+2})}}processAxis(){super.processAxis();const t=this.axis;null==t.get("width")&&t.set("width",a.AQ);const e=this._root.verticalLayout;t.set("layout",e),t.labelsContainer.set("width",a.AQ),t.axisHeader.setAll({layout:e})}axisLength(){return this.axis.width()}positionToPoint(t){return{x:this.positionToCoordinate(t),y:0}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e));let r=t.get("length",0);const h=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("y",a.AQ),h||(r*=-1)):(t.set("y",0),h&&(r*=-1)),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,r)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateLabel(t,e,i,s){if(t){let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(e)||(e=0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?r?(t.set("position","absolute"),t.set("y",0)):(t.set("position","relative"),t.set("y",a.AQ)):r?(t.set("y",0),t.set("position","absolute")):(t.set("y",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=-1;if(this.get("opposite")&&(h=1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("y",t.y()+t.height()*h)}else s.set("y",0);this.axis._bullets[o]=t,s.set("x",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.height(),a=this.width();ia||i<0||(t.moveTo(e,0),t.lineTo(i,0),t.lineTo(i,s),t.lineTo(e,s),t.lineTo(e,0))}))}positionTooltip(t,e){this._positionTooltip(t,{x:this.positionToCoordinate(e),y:0})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,n=this.axisLength(),h=i,l="up";this.get("opposite")?e?(l="up",o=s.y,h=i):(l="down",o=s.y-i,h=i):e?(l="down",o=s.y-i,h=i):(l="up",o=s.y,h=i);const d={left:a,right:a+n,top:o,bottom:o+h},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}}h.className="AxisRendererX",h.classNames=s.Y.classNames.concat([h.className])},7909:function(t,e,i){i.d(e,{j:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{height:a.AQ,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const t=this.grid.template;t.set("width",a.AQ),t.set("height",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())}))}_getPan(t,e){return(t.y-e.y)/this.height()}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("y",-1e3));const s=this.thumb,a="opposite",o="inside",n=this.chart;if(this.isDirty(a)||this.isDirty(o)){const i=e.children;if(this.get(o)?e.addTag(o):e.removeTag(o),n){if(this.get(a)){const t=n.rightAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e,0),e.addTag(a),i.moveValue(this,0)}else{const t=n.leftAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(a),i.moveValue(this)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}const r=e.labelsContainer.width();n&&(this.get(a)?s.set("centerX",0):s.set("centerX",r)),s.setPrivate("width",r)}processAxis(){super.processAxis();const t=this.axis;null==t.get("height")&&t.set("height",a.AQ);const e=this._root.horizontalLayout;t.set("layout",e),t.labelsContainer.set("height",a.AQ),t.axisHeader.set("layout",e)}_updatePositions(){const t=this.axis,e=t.y()-r.relativeToValue(t.get("centerY",0),t.height());t.gridContainer.set("y",e),t.topGridContainer.set("y",e),t.bulletsContainer.set("x",this.x());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginTop",0);s.children.length>0?(a=t.axisHeader.height(),t.set("marginTop",a+1)):s.set("height",a),s.setAll({y:t.y()-a,x:-1,width:e.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(t){return{x:0,y:this.positionToCoordinate(t)}}updateLabel(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a);const o=this.get("opposite"),r=t.get("inside",this.get("inside",!1));o?(t.set("x",0),r?t.set("position","absolute"):t.set("position","relative")):r?(t.set("x",0),t.set("position","absolute")):(t.set("x",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e));let o=t.get("length",0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("x",0),r&&(o*=-1)):r||(o*=-1),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(o,0)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=1;if(this.get("opposite")&&(h=-1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("x",t.x()+t.width()*h)}else s.set("x",0);this.axis._bullets[o]=t,s.set("y",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.width(),a=this.height();ia||i<0||(t.moveTo(0,e),t.lineTo(s,e),t.lineTo(s,i),t.lineTo(0,i),t.lineTo(0,e))}))}positionToCoordinate(t){return this._inversed?(t-this._start)*this._axisLength:(this._end-t)*this._axisLength}positionTooltip(t,e){this._positionTooltip(t,{x:0,y:this.positionToCoordinate(e)})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,n=this.axisLength(),h=i,l="right";this.get("opposite")?e?(l="right",o=s.x-i,h=i):(l="left",o=s.x,h=i):e?(l="left",o=s.x,h=i):(l="right",o=s.x-i,h=i);const d={left:o,right:o+h,top:a,bottom:a+n},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerHeight();this._lc=this.axisLength()/i,this._ls=t.y()/i}}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?e+t:i-t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t-=e:t=i-t,(t=t/(i-e)*this._lc)+this._ls}fixPosition(t){return this.get("inversed")?t:1-t}}h.className="AxisRendererY",h.classNames=s.Y.classNames.concat([h.className])},4714:function(t,e,i){i.d(e,{T:function(){return a}});var s=i(2438);class a extends s.d{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisTick",a.classNames=s.d.classNames.concat([a.className])},7497:function(t,e,i){i.d(e,{$:function(){return d}});var s=i(6515),a=i(2132),o=i(7261),n=i(5071),r=i(5040),h=i(751),l=i(7652);class d extends s.R{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();const t=this.dataItems.length;t>0&&this.setPrivateRaw("maxZoomFactor",t),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),t)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",t),1))}_prepareChildren(){super._prepareChildren();const t=this.dataItems.length;let e=0;this._valuesDirty&&(this._itemMap={},n.each(this.dataItems,(t=>{t.setRaw("index",e),this._itemMap[t.get("category")]=t,e++})),this.setPrivateRaw("maxZoomFactor",t));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){const t=this.dataItems.length;if(t>1){let e=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0);const n=this._sAnimation,r=this._eAnimation;let h=this.get("start",0),l=!1;n&&!n.stopped&&(h=Number(n.to),l=!0);let d=this.get("end",1);if(r&&!r.stopped&&(d=Number(r.to),l=!0),l){const t=this._getIndices(h,d);a=t.startIndex,o=t.endIndex}for(let t=a;t=i));s++);if(e=0&&(e+=this.dataItems[t].get("finalCellSize",1),a=t,!(e>=i));t--);this.zoomToIndexes(a,o)}else if(s>=e){let t=s;for(let i=o-1;i>=a;i--)if(t-=this.dataItems[i].get("finalCellSize",1),t<=e){o=i+1;break}this.zoomToIndexes(a,o)}}}_handleRangeChange(){n.each(this.series,(t=>{let e=this.dataItems[this.startIndex()].get("category"),i=this.dataItems[this.endIndex()-1].get("category"),s=t.get("baseAxis"),a=t.get("xAxis"),r=t.get("yAxis");if(a instanceof d&&r instanceof d)t._markDirtyAxes();else if(s===this){let h,l,g=r;if(a===s?(t.get("categoryXField")&&(h="categoryX"),t.get("openCategoryXField")&&(l="openCategoryX")):r===s&&(t.get("categoryYField")&&(h="categoryY"),t.get("openCategoryYField")&&(l="openCategoryY"),g=a),g instanceof o.m&&(h||l)){let c,u;function m(t,e,i,s,a,o){let n,r=e.categoryToIndex(a);for(;!n&&r>=0&&r=0;e--){let o=t.dataItems[e];if(i&&o.get(i)===a){n=o;break}if(s&&o.get(s)===a){n=o;break}}else for(let e=0,o=t.dataItems.length;e{null!=y.get(t)&&(x=!0)})),n.each(t.__valueYShowFields,(t=>{null!=y.get(t)&&(x=!0)})),x)break}t.setPrivate("outOfSelection",!x)}t._markDirtyAxes()}}))}_prepareAxisItems(){var t;const e=this.get("renderer"),i=this.dataItems.length;let s=this.startIndex();s>0&&s--;let a=this.endIndex();a=s&&(t=s-1,e=1),r.isNumber(e)||(e=.5),!r.isNumber(t))return 0;let o=this.get("startLocation",0),h=this.get("endLocation",1);if(this.get("cellSizeField")){let s=i?"finalCellSize":"cellSize";const r=this.dataItems;let l=0;n.each(this.dataItems,(t=>{l+=t.get(s,1)})),l-=o*r[0].get(s,1),l-=(1-h)*r[r.length-1].get(s,1);let d=0;for(let e=0;e{const e=t.get("cellSize",1);s.push(e),i+=e}));let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=t*i+a,h=0;for(let t=0;t0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(e),a=t.dataItems[s],o=this.dataItems[s],n=o.get("category");if(a&&o&&a.get(i)===n)return a;for(let e=0,s=t.dataItems.length;e{r+=t.get(o,1)})),r-=this.get("startLocation",0)*h[0].get(o,1),r-=(1-this.get("endLocation",1))*h[h.length-1].get(o,1);let l=0;for(let e=0;eMath.round(t*r)){s=e;break}for(let t=s+1;t=Math.round(e*r)){a=t+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(t,e,i){let s=this.dataItems.length;this.get("cellSizeField")?(t=Math.min(Math.max(t,0),s),e=Math.max(Math.min(e,s),1),this.setPrivateRaw("startIndex",t),this.setPrivateRaw("endIndex",e),this.zoom(this.indexToPosition(t,0,!0),this.indexToPosition(e,0,!0),i)):this.zoom(t/s,e/s,i)}zoomToCategories(t,e,i){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(t){null==t&&(t=1),"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);const e=this.getPrivate("tooltipPosition",0),i=h.fitToRange(this.axisPositionToIndex(e)+t,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}}d.className="CategoryAxis",d.classNames=s.R.classNames.concat([d.className])},5638:function(t,e,i){i.d(e,{S:function(){return c}});var s=i(9361),a=i(7261),o=i(5040),n=i(751),r=i(3540),h=i(5071),l=i(256),d=i(7652),g=i(1926);class c extends a.m{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=d.mergeTags(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",(()=>{this._setBaseInterval(this.get("baseInterval"))}))}_setBaseInterval(t){this.setPrivateRaw("baseInterval",t),this._baseDuration=g.getIntervalDuration(t)}_fixZoomFactor(){const t=this.get("maxZoomFactor");null!=t&&t!=1/0?this.setPrivateRaw("maxZoomFactor",t):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){this._fixZoomFactor();const t=this.getPrivate("groupInterval");if(t?this._setBaseInterval(t):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let t=this.get("groupInterval");t&&(this.setRaw("groupIntervals",[t]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))h.each(this.series,(t=>{this._groupSeriesData(t)})),this._handleRangeChange();else{let t=this.get("baseInterval"),e=t.timeUnit+t.count;h.each(this.series,(t=>{t.setDataSet(e),t.resetGrouping()})),this._setBaseInterval(t),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(t){if(this.get("groupData")&&!t.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let e=[],i=this.baseMainDuration(),a=this.get("groupIntervals");h.each(a,(t=>{g.getIntervalDuration(t)>i&&e.push(t)})),t._dataSets={};const n=this.getPrivate("name")+this.get("renderer").getPrivate("letter");let r;const d=t.get("baseAxis");t.get("xAxis")===d?r=t._valueYFields:t.get("yAxis")===d&&(r=t._valueXFields);let c=t._mainDataItems,u=this.get("baseInterval"),m=u.timeUnit+u.count;t._dataSets[m]=c;const p=t.get("groupDataCallback");let _=t.get("groupDataWithOriginals",!1);p&&(_=!0),h.each(e,(e=>{let i,a=-1/0,d=e.timeUnit+e.count;t._dataSets[d]=[];let u={},m={},x={},v={};h.each(r,(e=>{u[e]=0,m[e]=0,x[e]=t.get(e+"Grouped"),v[e]=e+"Working"}));let y,f,b=g.getDuration(e.timeUnit);c[0]&&(y=c[0].get(n)),h.each(c,(c=>{let D,P=c.get(n),w=g.roun(P,e.timeUnit,e.count,this._root,y);a{let e=c.get(t);o.isNumber(e)?(i.setRaw(t,e),i.setRaw(v[t],e),m[t]=1,u[t]=e):(u[t]=0,m[t]=0)})),_&&i.set("originals",[c]),p&&f&&p(f,e),f=i):(h.each(r,(t=>{let e=x[t],s=c.get(t);if(null!=s){let a=i.get(t);switch(e){case"close":i.setRaw(t,s);break;case"sum":i.setRaw(t,a+s);break;case"open":break;case"low":sa&&i.setRaw(t,s);break;case"average":m[t]++,u[t]+=s;let e=u[t]/m[t];i.setRaw(t,e);break;case"extreme":Math.abs(s)>Math.abs(a)&&i.setRaw(t,s)}i.setRaw(v[t],i.get(t));let o=l.copy(c.dataContext);o[n]=w,i.dataContext=o}})),_&&i.get("originals").push(c)),a=w})),p&&f&&p(f,e)})),t._dataSetId&&t.setDataSet(t._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",(()=>{this.markDirtySize()}))}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(t){let e=this.get("baseInterval"),i=g.chooseInterval(0,t,this.get("groupCount",1/0),this.get("groupIntervals"));return g.getIntervalDuration(i){e.get("baseAxis")===this&&e.setDataSet(t)})),this.markDirtyExtremes(),this._root.events.once("frameended",(()=>{this._root.events.once("frameended",(()=>{const t="groupintervalchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}))}))}}h.each(this.series,(i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),a=h.getFirstSortedIndex(i.dataItems,(e=>r.qu(e.get(s),t))).index;a>0&&(a-=1),e+=this._baseDuration*(1-this.get("endLocation",1));let o=h.getSortedIndex(i.dataItems,(t=>r.qu(t.get(s),e))).index,n=o;n>1&&n--;const l=i.dataItems[a],d=i.dataItems[n];let g,c;l&&(c=l.get(s)),d&&(g=d.get(s));let u=!1;null!=g&&null!=c&&(ge)&&(u=!0),i.setPrivate("outOfSelection",u),i.setPrivate("startIndex",a);let m=i._adjustStartIndex(a);i.getPrivate("adjustedStartIndex")!==m&&(i.setPrivate("adjustedStartIndex",m),this.root.events.once("frameended",(()=>{i._markDirtyPrivateKey("adjustedStartIndex")}))),i.setPrivate("endIndex",o)}}))}}_adjustMinMax(t,e,i,s){return{min:t,max:e,step:(e-t)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(t,e){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=t,this._intervalMax[s]=e}_getM(t){return"day"==t||"month"==t||"year"==t?1.05:1.01}_getMinorInterval(t){var e;let i,s=t.count,a=t.timeUnit;return s>1&&(10==s||15==s?s=5:12==s?s=2:6==s?s=1:30==s?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),"week"==a&&(i="week"!=(null===(e=this.getPrivate("baseInterval"))||void 0===e?void 0:e.timeUnit)?{timeUnit:"day",count:1}:{timeUnit:"week",count:1}),"year"==a&&1==s&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<1264896e5&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){const e=this._root,i=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),n=this.get("renderer"),r=this.getPrivate("baseInterval");let l=i,d=0;const c=this.get("gridIntervals");let u=g.chooseInterval(0,a-i,n.gridCount(),c);g.getIntervalDuration(u){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_updateFinals(t,e){this.setPrivateRaw("selectionMinFinal",this.positionToValue(t)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(e))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(t,e){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return g.getIntervalDuration(this.get("baseInterval"))}processSeriesDataItem(t,e){const i=this.getPrivate("baseInterval");t.open||(t.open={}),t.close||(t.close={}),h.each(e,(e=>{let s=t.get(e);if(o.isNumber(s)){let a=t.open[e],o=t.close[e];if(s>=a&&s<=o);else{const n=i.timeUnit,r=i.count;a=g.roun(s,n,r,this._root),o=a+g.getDuration(n,r*this._getM(n)),o=g.roun(o,n,1,this._root),t.open[e]=a,t.close[e]=o}this._updateDates(a,t.component)}}))}_handleSizeDirty(){}getDataItemPositionX(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}roundAxisPosition(t,e){let i=this.positionToValue(t);i-=(e-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!o.isNaN(i)){const t=this._root.locale.firstDayOfWeek,a=s.timeUnit,o=this._root.utc,n=this._root.timezone,r=s.count;i=g.roun(i,a,r,this._root,this.getPrivate("min",0));let h=g.getDateIntervalDuration(s,new Date(i),t,o,n);return n&&(i=g.roun(i+.05*this._baseDuration,a,r,this._root,this.getPrivate("min",0)),h=g.getDateIntervalDuration(s,new Date(i+h*e),t,o,n)),this.valueToPosition(i+h*e)}return NaN}getTooltipText(t,e){if(null!=this.getPrivate("min")){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(t);if(o.isNumber(s)){let t=new Date(s),a=this.getPrivate("baseInterval"),o=g.getDateIntervalDuration(a,t,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return!1!==e&&(t=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*o)),this._root.dateFormatter.format(t,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(t,e,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);null==i&&(i=.5),o-=(i-.5)*this._baseDuration;const n=h.getSortedIndex(t.dataItems,(t=>{let e=0;return t.open&&(e=t.open[a]),r.qu(e,o)}));if(s||t.get("snapTooltip")){let e=t.dataItems[n.index-1],i=t.dataItems[n.index];if(e&&i&&e.open&&i.close){let t=e.open[a],s=i.close[a];if(Math.abs(o-t)>Math.abs(o-s))return i}if(e)return e;if(i)return i}else{const e=t.dataItems[n.index-1];if(e&&e.open&&e.close){let t=e.open[a],i=e.close[a];if(o>=t&&o<=i)return e}}}shouldGap(t,e,i,s){const a=t.get(s);return e.get(s)-a>this._baseDuration*i}zoomToDates(t,e,i){this.zoomToValues(t.getTime(),e.getTime(),i)}zoomToValues(t,e,i){const s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(null!=this.getPrivate("min")&&null!=this.getPrivate("max"))if(this.get("groupData")){const s=this.getGroupInterval(e-t),a=this.get("baseInterval");let o=this.getIntervalMin(a),n=this.getIntervalMax(a)-1;n=g.roun(n,s.timeUnit,s.count,this.root),n+=this._getM(s.timeUnit)*g.getIntervalDuration(s),n=g.roun(n,s.timeUnit,s.count,this.root);let r=g.roun(o,s.timeUnit,s.count,this.root),h=g.roun(n,s.timeUnit,s.count,this.root),l=(t-r)/(h-r),d=(e-r)/(h-r);this.zoom(l,d,i)}else this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}positionToDate(t){return new Date(this.positionToValue(t))}dateToPosition(t){return this.valueToPosition(t.getTime())}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return o.isNumber(t)&&o.isNumber(e)?this._intervalDuration/(t-e):.05}nextPosition(t){null==t&&(t=1);let e=this.get("tooltipLocation",.5)*this._baseDuration;"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0));const s=this.getPrivate("baseInterval");let a=this._nextTime(i,t,s),o=this.getPrivate("selectionMin",0),r=this.getPrivate("selectionMax",0),h=g.roun(o,s.timeUnit,s.count,this._root),l=g.roun(r,s.timeUnit,s.count,this._root);return a+=e,a=n.fitToRange(a,h+e,l-e),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(t,e,i){return g.roun(t+e*this._baseDuration,i.timeUnit,i.count,this._root)}}c.className="DateAxis",c.classNames=a.m.classNames.concat([c.className])},7109:function(t,e,i){i.d(e,{L:function(){return a}});var s=i(6691);class a extends s.Y{constructor(){super(...arguments),this._tickPoints=[]}}a.className="EditableAxisLabel",a.classNames=s.Y.classNames.concat([a.className])},8701:function(t,e,i){i.d(e,{J:function(){return d}});var s=i(5638),a=i(9361),o=i(5071),n=i(3540),r=i(1926),h=i(5040),l=i(751);class d extends s.S{constructor(){super(...arguments),this._frequency=1,this._m=0,this._dates=[]}_afterNew(){this.valueFields.push("date"),this.addTag("gapless"),super._afterNew()}_getDates(){return this._customDates?this._customDates:this._dates}_updateDates(t,e){if(!e.get("ignoreMinMax")){const e=this._getDates(),i=o.getSortedIndex(e,(e=>n.qu(e,t)));i.found||o.insertIndex(e,i.index,t)}}_updateAllDates(){if(!this._customDates){const t=this._dates;t.length=0,o.each(this.series,(t=>{let e="valueX";t.get("yAxis")==this&&(e="valueY"),o.each(t.dataItems,(i=>{let s=i.get(e);h.isNumber(s)&&i.open&&this._updateDates(i.open[e],t)}))}));const e=this.get("extraMax",0),i=this.get("extraMin",0);let s=t.length;const a=this.getPrivate("baseInterval"),n=a.count,l=a.timeUnit;if(e>0){const i=s*e;let a=t[s-1];if(h.isNumber(a))for(let e=s-1;e0){const e=s*i;let a=t[0];if(h.isNumber(a))for(let i=0;in.qu(e,t)));let h=r.index;if(r.found)return(h-i)/a;{h>0&&(h-=1);let s=e[h];const o=e[h+1];if(o){let e=o;Math.abs(e-t)n.qu(e,t)));let s=i.index;return i.found||s>0&&(s-=1),s}positionToValue(t){const e=this.get("startLocation",0),i=this.get("endLocation",1),s=this._getDates();let a=Math.round(s.length-e-(1-i)),o=t*a,n=Math.floor(o);return n<0&&(n=0),n>a-1&&(n=a-1),s[n]+(o-n+e)*this._baseDuration}_fixZoomFactor(){this.setPrivateRaw("maxZoomFactor",this._getDates().length-this.get("startLocation",0)-(1-this.get("endLocation",1)))}zoomToDates(t,e,i){const s=this._getDates(),a=s.length;let r=o.getSortedIndex(s,(e=>n.qu(e,t.getTime()))),h=s[Math.min(r.index,a-1)];r=o.getSortedIndex(s,(t=>n.qu(t,e.getTime())));let l=s[r.index];r.index>=a&&(l=s[a-1]+this._baseDuration),this.zoomToValues(h,l,i)}zoomToValues(t,e,i){const s=this.getPrivate("min",0),a=this.getPrivate("max",0);t=l.fitToRange(t,s,a),e=l.fitToRange(e,s,a),this.zoom(this.valueToPosition(t),this.valueToPosition(e),i)}_prepareAxisItems(){let t=this.getPrivate("selectionMin",0),e=this.getPrivate("selectionMax",0);if(h.isNumber(t)&&h.isNumber(e)){this._seriesValuesDirty&&(this._seriesValuesDirty=!1,this._updateAllDates());const i=this._root,s=i.utc,n=i.timezone,l=this._getDates(),d=this.get("renderer"),g=l.length,c=this._baseDuration;let u=this.valueToIndex(t);u>0&&u--;let m=this.valueToIndex(e);m{this._toggleDataItem(t,!1)})),o.each(this.minorDataItems,(t=>{this._toggleDataItem(t,!1)}));let x=e-t-((e-t)/c-(m-u))*c,v=r.chooseInterval(0,x,p,this.get("gridIntervals"));const y=this.getPrivate("baseInterval");let f=r.getIntervalDuration(v);f0){let t=0;this._m=0;let e=w-10*f;const g=r.getNextUnit(b);if(I){let t=l[C[0]];this._addMinorGrid(t-f,t,k,I)}let c=d.axisLength()/d.gridCount()*.5;o.each(C,(o=>{var u;let m;this.dataItems.length1||"week"==v.timeUnit){let e=r.roun(p,t,1,i)+r.getDuration(t,this._getM(t)),s=this.valueToIndex(e);if(e=l[s],e==p){let t=l[s+1];t?e=t:e+=k}m.setRaw("labelEndValue",e)}w=1}if(this._prepareDataItem(m,w),P&&M&&"X"==d.getPrivate("letter")){let t=M.get("label");if(t&&P.x()-t.x(){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_pickWorse(t,e,i){const s=i.timeUnit,a=t.get("value",0),o=e.get("value",0);return"hour"==s&&new Date(a).getDate()!=new Date(o).getDate()?t:e}_addMinorGrid(t,e,i,s){const n=this.get("minorDateFormats",this.get("dateFormats")),h=s.timeUnit;let l=t+r.getDuration(h,this._getM(h));l=r.roun(l,h,1,this._root);let d=e-.5*i,g=this._getIndexes(l,d,s,l);const c=this._getDates();o.each(g,(t=>{let e;this.minorDataItems.length=x-2*_&&o.move(a,e),u=0),t+=p,t=r.roun(t,n,1,g);else{if(i=t){e=s;break}o.move(a,e),t+=_,t=r.roun(t,n,h,g)}if(t==m&&(t+=_+p,t=r.roun(t,n,h,g)),t==m)break;m=t}return a}_hasDate(t){return o.getSortedIndex(this._getDates(),(e=>n.HO(e,t))).found}_nextTime(t,e,i){let s=l.fitToRange(this.valueToIndex(t)+e,0,this._dates.length-1);return this._dates[s]}}d.className="GaplessDateAxis",d.classNames=s.S.classNames.concat([d.className])},8943:function(t,e,i){i.d(e,{r:function(){return a}});var s=i(1479);class a extends s.T{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}a.className="Grid",a.classNames=s.T.classNames.concat([a.className])},7261:function(t,e,i){i.d(e,{m:function(){return d}});var s=i(9361),a=i(6515),o=i(7449),n=i(5040),r=i(5071),h=i(751),l=i(7652);class d extends a.R{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var t;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let t=this.get("syncWithAxis");t&&(this._syncDp=new o.FV([t.onPrivate("selectionMinFinal",(()=>{this._dirtySelectionExtremes=!0})),t.onPrivate("selectionMaxFinal",(()=>{this._dirtySelectionExtremes=!0}))]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,null===(t=this.ghostLabel)||void 0===t||t.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){const t=this.chart;let e=!1;if(t){const i=this.get("renderer").getPrivate("letter");"Y"==i?t.xAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)})):"X"==i&&t.yAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)}))}e&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,this.getPrivate("selectionMinFinal")==this.getPrivate("selectionMin")&&this.getPrivate("selectionMaxFinal")==this.getPrivate("selectionMax")||(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(t){const e=this.get("numberFormat"),i=this.getNumberFormatter();let s="";return s=e?i.format(t,e):i.format(t,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(n.isNumber(t)&&n.isNumber(e)){const e=this.get("logarithmic"),i=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+i;let l=a-i,d=1,g=t;if(e){if(l=this._minLogAdjusted,l2&&(l=Math.pow(10,Math.log(g)*Math.LOG10E-50))}const c=this.get("renderer"),u=c.get("minorLabelsEnabled"),m=c.get("minorGridEnabled",u);let p=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));const _=Math.round(i/p);let x=2;h.round(_/5,10)%1==0&&(x=5),h.round(_/10,10)%1==0&&(x=10);let v=i/x,y=0,f=0,b=-1/0;const D=this.get("renderer").gridCount();for(;l2){const t=Math.max(1,D),e=Math.max(1,Math.ceil(d/t)),i=Math.log(g)*Math.LOG10E+(y+1)*e-50;o=Math.pow(10,i)}else o+=i;else o+=i;if(m){let t=l+v;for(e&&(d>2&&(v=this._adjustMinMax(l,o,10).step),t=l+v);t{t.inited&&t._markDirtyAxes()})),this._updateGhost()}}_prepareDataItem(t,e){let i=this.get("renderer"),s=t.get("value"),a=t.get("endValue"),o=this.valueToPosition(s),r=o,h=this.valueToPosition(s+this.getPrivate("step"));n.isNumber(a)&&(r=this.valueToPosition(a),h=r),t.get("isRange")&&null==a&&(h=o);let l=r,d=t.get("labelEndValue");null!=d&&(l=this.valueToPosition(d)),i.updateLabel(t.get("label"),o,l,e);const g=t.get("grid");if(i.updateGrid(g,o,r),g&&(s==this.get("baseValue",0)?(g.addTag("base"),g._applyThemes()):g.hasTag("base")&&(g.removeTag("base"),g._applyThemes())),i.updateTick(t.get("tick"),o,l,e),i.updateFill(t.get("axisFill"),o,h),this._processBullet(t),i.updateBullet(t.get("bullet"),o,r),!t.get("isRange")){const e=this.get("fillRule");e&&e(t)}}_handleRangeChange(){let t=this.positionToValue(this.get("start",0)),e=this.positionToValue(this.get("end",1));const i=this.get("renderer").gridCount();let s=this._adjustMinMax(t,e,i,!0),a=l.decimalPlaces(s.step);this.setPrivateRaw("stepDecimalPlaces",a),t=h.round(t,a),e=h.round(e,a),s=this._adjustMinMax(t,e,i,!0);let o=s.step;t=s.min,e=s.max,this.getPrivate("selectionMin")===t&&this.getPrivate("selectionMax")===e&&this.getPrivate("step")===o||(this.setPrivateRaw("selectionMin",t),this.setPrivateRaw("selectionMax",e),this.setPrivateRaw("step",o))}positionToValue(t){const e=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(t*(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)+Math.log(e)*Math.LOG10E)/Math.LOG10E):t*(i-e)+e}valueToPosition(t){const e=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}valueToFinalPosition(t){const e=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}getX(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getY(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionX(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemX")?a*s+t.component.getStackedXValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemY")?a*s+t.component.getStackedYValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const t=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),e=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let i=this.get("baseValue",0);return ie&&(i=e),i}cellEndValue(t){return t}fixSmallStep(t){return 1+t===1?(t*=2,this.fixSmallStep(t)):t}_fixMin(t){return t}_fixMax(t){return t}_calculateTotals(){if(this.get("calculateTotals")){let t=this.series[0];if(t){let e=t.startIndex();if(t.dataItems.length>0){e>0&&e--;let i,s,a=t.endIndex();a{if(!i.get("excludeFromTotal")){let r=i.dataItems[t];if(r){let t=r.get(o)*i.get(s);n.isNaN(t)||(e+=t,a+=Math.abs(t))}}})),r.each(this.series,(r=>{if(!r.get("excludeFromTotal")){let h=r.dataItems[t];if(h){let t=h.get(o)*r.get(s);if(!n.isNaN(t)){h.set(i+"Total",a),h.set(i+"Sum",e);let s=t/a*100;0==a&&(s=0),h.set(i+"TotalPercent",s)}}}}))}}}}}_getSelectionMinMax(){const t=this.getPrivate("minFinal"),e=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max");let a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2));const l=this.get("renderer").gridCount(),d=this.get("strictMinMaxSelection");let g=this.get("strictMinMax");if(n.isNumber(t)&&n.isNumber(e)){let c=e,u=t;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,i;const s=t.getPrivate("outOfSelection");if(t.get("xAxis")===this){if(!s){let s=t.getPrivate("minX"),a=t.getPrivate("maxX");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinX",s),i=t.getPrivate("selectionMaxX",a)}}else if(t.get("yAxis")===this&&!s){let s=t.getPrivate("minY"),a=t.getPrivate("maxY");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinY",s),i=t.getPrivate("selectionMaxY",a)}t.isHidden()||t.isShowing()||(n.isNumber(e)&&(c=Math.min(c,e)),n.isNumber(i)&&(u=Math.max(u,i)))}})),this.axisRanges.each((t=>{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(c=Math.min(c,e),u=Math.max(u,e)),e=t.get("endValue"),null!=e&&(c=Math.min(c,e),u=Math.max(u,e))}})),c>u&&([c,u]=[u,c]),n.isNumber(i)?c=g?i:t:g&&n.isNumber(this._minReal)&&(c=this._minReal),n.isNumber(s)?u=g?s:e:g&&n.isNumber(this._maxReal)&&(u=this._maxReal),c===u){let e=c;if(c-=this._deltaMinMax,u+=this._deltaMinMax,ce&&(x.max=e),c=x.min,u=x.max),g&&(n.isNumber(i)&&(c=Math.max(c,i)),n.isNumber(s)&&(u=Math.min(u,s))),d&&(c=m-(p-m)*a,u=p+(p-m)*o),g){c=n.isNumber(i)?i:m,u=n.isNumber(s)?s:p,u-c<=1e-8&&(c-=this._deltaMinMax,u+=this._deltaMinMax);let t=u-c;c-=t*a,u+=t*o}this.get("logarithmic")&&(c<=0&&(c=m*(1-Math.min(a,.99))),ce&&(u=e));let y=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),f=h.round(this.valueToFinalPosition(c),y),b=h.round(this.valueToFinalPosition(u),y);this.setPrivateRaw("selectionMinFinal",c),this.setPrivateRaw("selectionMaxFinal",u),this.setPrivateRaw("selectionStepFinal",x.step),this.zoom(f,b)}}_getMinMax(){let t=this.get("min"),e=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2)));let l=1/0;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,a;if(t.get("xAxis")===this?(e=t.getPrivate("minX"),a=t.getPrivate("maxX")):t.get("yAxis")===this&&(e=t.getPrivate("minY"),a=t.getPrivate("maxY")),n.isNumber(e)&&n.isNumber(a)){i=Math.min(i,e),s=Math.max(s,a);let t=a-e;t<=0&&(t=Math.abs(a/100)),t{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(i=Math.min(i,e),s=Math.max(s,e)),e=t.get("endValue"),null!=e&&(i=Math.min(i,e),s=Math.max(s,e))}})),this.get("logarithmic")){let t=this.get("treatZeroAs");n.isNumber(t)&&i<=0&&(i=t),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(0===i&&0===s&&(s=.9,i=-.9),n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e),i===1/0||s===-1/0)return this.setPrivate("minFinal",void 0),void this.setPrivate("maxFinal",void 0);i>s&&([i,s]=[s,i]);const d=i,g=s;let c=this.adapters.fold("min",i),u=this.adapters.fold("max",s);this._minRealLog=i,n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!=0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&d>=0&&(i=0),s>0&&g<=0&&(s=0)),this._minReal=i,this._maxReal=s;let m=this.get("strictMinMax"),p=this.get("strictMinMaxSelection",!1);p&&(m=p);let _=m;n.isNumber(e)&&(_=!0);let x=this.get("renderer").gridCount(),v=this._adjustMinMax(i,s,x,_);if(i=v.min,s=v.max,v=this._adjustMinMax(i,s,x,!0),i=v.min,s=v.max,m){i=n.isNumber(t)?t:this._minReal,s=n.isNumber(e)?e:this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let r=s-i;i-=r*a,s+=r*o}c=this.adapters.fold("min",i),u=this.adapters.fold("max",s),n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),l==1/0&&(l=s-i);let y=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=h.round(i,y),s=h.round(s,y);const f=this.get("syncWithAxis");if(f&&(v=this._syncAxes(i,s,v.step,f.getPrivate("minFinal",f.getPrivate("min",0)),f.getPrivate("maxFinal",f.getPrivate("max",1)),f.getPrivate("step",1)),i=v.min,s=v.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/l*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=d*(1-Math.min(a,.99)))),n.isNumber(i)&&n.isNumber(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);const t=this.get("interpolationDuration",0),e=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:t,easing:e}),this.animatePrivate({key:"max",to:s,duration:t,easing:e})}}_fixZoomFactor(){}_getDelta(t){let e=Math.log(Math.abs(t))*Math.LOG10E,i=Math.pow(10,Math.floor(e));i/=10,this._deltaMinMax=i}_saveMinMax(t,e){}_adjustMinMax(t,e,i,s){i<=1&&(i=1),i=Math.round(i);let a=t,o=e,r=e-t;0===r&&(r=Math.abs(e));let l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l));d/=10;let g=d;s&&(g=0),s?(t=Math.floor(t/d)*d,e=Math.ceil(e/d)*d):(t=Math.ceil(t/d)*d-g,e=Math.floor(e/d)*d+g),t<0&&a>=0&&(t=0),e>0&&o<=0&&(e=0),l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l)),d/=100;let c=Math.ceil(r/i/d)*d,u=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),m=Math.ceil(c/u);m>5?m=10:m<=5&&m>2&&(m=5),c=Math.ceil(c/(u*m))*u*m;let p=this.get("maxPrecision");if(n.isNumber(p)){let t=h.ceil(c,p);pa&&(t-=c),c=this.fixSmallStep(c),{min:t,max:e,step:c}}getTooltipText(t,e){const i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,n=h.round(this.positionToValue(t),o);return i?s.format(n,i):s.format(n,void 0,o)}getSeriesItem(t,e){let i,s,a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);if(r.each(t.dataItems,((t,e)=>{const n=Math.abs(t.get(a)-o);(void 0===i||n500&&(s=!0),s)t=n,e=h,i=d;else{a/3==Math.round(a/3)?(n=t-o*a,t>=0&&n<0&&(n=0)):(h=e+o*a,h<=0&&h>0&&(h=0));let i=this._adjustMinMax(n,h,l,!0);n=i.min,h=i.max,d=i.step}}}return{min:t,max:e,step:i}}_checkSync(t,e,i,s){let a=(e-t)/i;for(let t=1;t{if(t instanceof l){const e=t.get("stacked");e&&0==h&&n++,!e&&t.get("clustered")&&n++}t===this&&(o=n-1),h++})),this.get("clustered")||(o=0,n=1),0===n&&(n=1,o=0);const d="cellStartLocation",g="cellEndLocation",c=this._xRenderer.get(d,0),u=this._xRenderer.get(g,1),m=this._yRenderer.get(d,0),p=this._yRenderer.get(g,1);if(this._aLocationX0=c+o/n*(u-c),this._aLocationX1=c+(o+1)/n*(u-c),this._aLocationY0=m+o/n*(p-m),this._aLocationY1=m+(o+1)/n*(p-m),e.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){const t=this.dataItems.length;let a=Math.max(0,this.startIndex()-2),o=Math.min(this.endIndex()+2,t-1);for(let t=0;t0&&a>0)for(let e=t-1;e>=0;e--){let t=this.dataItems[e];if(null!=t.get("valueX")&&null!=t.get("valueY")){n=t;break}}break}this._toggleColumn(e,!1)}this._beforeColumnsDraw();let r=0;i.isType("CategoryAxis")&&e.isType("CategoryAxis")?r=2:e===s?r=0:i===s&&(r=1);for(let t=a;t<=o;t++){let e=this.dataItems[t];this._updateGraphics(e,n,r),null!=e.get("valueX")&&null!=e.get("valueY")&&(n=e)}this._afterColumnsDraw();for(let e=o+1;e{const a=e.get(s,this.get(s));t.set(s,a),i.set(s,a)}))}}let s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.dispose()})),s=[],t.setRaw("rangeGraphics",s),this.axisRanges.each((e=>{const i=e.container,a=this._makeGraphics(e.columns,t);s&&s.push(a),a.setPrivate("list",e.columns),i.children.push(a)}))}}createAxisRange(t){return r.each(this.dataItems,(t=>{const e=t.get("graphics");e&&(e.dispose(),t.set("graphics",void 0))})),super.createAxisRange(t)}_updateGraphics(t,e,i){let s=t.get("graphics");const a=this._xField,n=this._yField,l=t.get(a),d=t.get(n),g=this.get("exactLocationX",!1);if(null!=l&&null!=d){const l=this._xOpenField,d=this._yOpenField,c=this.get("locationX",t.get("locationX",.5)),u=this.get("locationY",t.get("locationY",.5)),m=this.get("openLocationX",t.get("openLocationX",c)),p=this.get("openLocationY",t.get("openLocationY",u)),_=s.get("width"),x=s.get("height"),v=this.get("stacked"),y=this.get("xAxis"),f=this.get("yAxis"),b=y.get("start"),D=y.get("end"),P=f.get("start"),w=f.get("end");let T,A,I,M,k=this.get("vcy",1),C=this.get("vcx",1),S=!1,Y=!1;if(0==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C,g),A=y.getDataItemPositionX(t,a,i,C,g),I=f.getDataItemPositionY(t,n,u,k),this._yOpenField!==this._yField)M=f.getDataItemPositionY(t,d,p,k);else if(v){let e=t.get("stackToItemY");M=e?f.getDataItemPositionY(e,n,p,e.component.get("vcy")):f.basePosition()}else M=f.basePosition();t.setRaw("point",{x:T+(A-T)/2,y:I}),Y=!0}else if(1==i){let e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5;if(x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}if(I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),A=y.getDataItemPositionX(t,a,c,C,g),this._xOpenField!==this._xField)T=y.getDataItemPositionX(t,l,m,C,g);else if(v){let e=t.get("stackToItemX");T=e?y.getDataItemPositionX(e,a,m,e.component.get("vcx"),g):y.basePosition()}else T=y.basePosition();S=!0,t.setRaw("point",{x:A,y:I+(M-I)/2})}else if(2==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C),A=y.getDataItemPositionX(t,a,i,C),e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5,x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),t.setRaw("point",{x:T+(A-T)/2,y:I+(M-I)/2})}this._applyGraphicsStates(t,e),this._updateSeriesGraphics(t,s,T,A,I,M,S,Y),TD&&A>D||I=w&&M>w||h.isNaN(T)||h.isNaN(I)?this._toggleColumn(t,!1):this._toggleColumn(t,!0);let F=t.get("rangeGraphics");F&&r.each(F,(e=>{this._updateSeriesGraphics(t,e,T,A,I,M,S,Y)}))}else this._toggleColumn(t,!1)}_updateSeriesGraphics(t,e,i,s,a,o,n,r){const l=e.get("width"),d=e.get("height"),g=e.get("maxWidth"),c=e.get("maxHeight"),u=this.getPoint(i,a),m=this.getPoint(s,o),p=t.get("point");if(p){const t=this.getPoint(p.x,p.y);p.x=t.x+this._x,p.y=t.y+this._y}if(i=u.x,s=m.x,a=u.y,o=m.y,h.isNumber(l)){const t=(s-i-l)/2;i+=t,s-=t}if(h.isNumber(g)&&g{this._toggleColumn(t,!1)}))}_applyGraphicsStates(t,e){const i=t.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),n=i.states.lookup("riseFromPrevious");if(s||o||a||n){const i=this.get("xAxis"),r=this.get("yAxis"),l=this.get("baseAxis");let d,g,c;l===i&&r.isType("ValueAxis")?(d=t.get(this._yOpenField),g=t.get(this._yField),c=e.get(this._yField)):l===r&&i.isType("ValueAxis")&&(d=t.get(this._xOpenField),g=t.get(this._xField),c=e.get(this._xField)),h.isNumber(d)&&h.isNumber(g)&&(g{const e=t.getPrivate("list");e&&e.removeValue(t),t.dispose()}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.hide(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.hide(e))})),yield Promise.all(s)}))}_toggleColumn(t,e){const i=t.get("graphics");i&&i.setPrivate("visible",e);const s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.setPrivate("visible",e)}));const a=t.bullets;a&&r.each(a,(t=>{t.setPrivate("hidden",!e)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.show(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.show(e))})),yield Promise.all(s)}))}updateLegendMarker(t){let e=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!t){const e=this.dataItems[this.endIndex()-1];e&&(t=e)}if(e){let i=this.columns.template;if(t){let e=t.get("graphics");e&&(i=e)}const s=e.get("markerRectangle");if(s&&!e.get("itemContainer").get("disabled")){const t=s.states.lookup("default");r.each(n.u,(e=>{const a=i.get(e,this.get(e));s.set(e,a),t.set(e,a)}))}}}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget"))return super._getTooltipTarget(t);return t.get("graphics")||this}}l.className="BaseColumnSeries",l.classNames=a.o.classNames.concat([l.className])},2976:function(t,e,i){i.d(e,{j:function(){return a}});var s=i(3497);class a extends s.c{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();const t=this._display;t.moveTo(this.get("lowX0",0),this.get("lowY0",0)),t.lineTo(this.get("lowX1",0),this.get("lowY1",0)),t.moveTo(this.get("highX0",0),this.get("highY0",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0))}}a.className="Candlestick",a.classNames=s.c.classNames.concat([a.className])},2312:function(t,e,i){i.d(e,{$:function(){return l}});var s=i(62),a=i(2976),o=i(5769),n=i(7144),r=i(7652),h=i(5071);class l extends s.d{constructor(){super(...arguments),this.columns=this.addDisposer(new n.o(o.YS.new({themeTags:["autocolor"]}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_updateGraphics(t,e,i){super._updateGraphics(t,e,i);const s=this.getRaw("xAxis"),a=this.getRaw("yAxis");let o,n,r,h,l,d,g,c,u,m=this.get("vcy",1),p=this.get("vcx",1),_=this.get("locationX",t.get("locationX",.5)),x=this.get("locationY",t.get("locationY",.5)),v=this.get("openLocationX",t.get("openLocationX",_)),y=this.get("openLocationY",t.get("openLocationY",x));if(0==i){let e=a.getDataItemPositionY(t,this._yOpenField,1,m),i=a.getDataItemPositionY(t,this._yField,1,m);h=a.getDataItemPositionY(t,this._yLowField,1,m),c=a.getDataItemPositionY(t,this._yHighField,1,m),g=Math.max(e,i),r=Math.min(e,i);let x=this._aLocationX0+v-.5,y=this._aLocationX1+_-.5;o=s.getDataItemPositionX(t,this._xField,x+(y-x)/2,p),n=o,l=o,d=o,u="vertical"}else{let e=s.getDataItemPositionX(t,this._xOpenField,1,p),i=s.getDataItemPositionX(t,this._xField,1,p);n=s.getDataItemPositionX(t,this._xLowField,1,p),d=s.getDataItemPositionX(t,this._xHighField,1,p),l=Math.max(e,i),o=Math.min(e,i);let _=this._aLocationY0+y-.5,v=this._aLocationY1+x-.5;r=a.getDataItemPositionY(t,this._yField,_+(v-_)/2,m),h=r,g=r,c=r,u="horizontal"}this._updateCandleGraphics(t,o,n,r,h,l,d,g,c,u)}_updateCandleGraphics(t,e,i,s,a,o,n,r,l,d){let g=t.get("graphics");if(g){let c=this.getPoint(e,s),u=this.getPoint(i,a),m=this.getPoint(o,r),p=this.getPoint(n,l);if(this.get("turboMode")){const t=this.allColumnsData[this.allColumnsData.length-1];t.lowX0=c.x,t.lowY0=c.y,t.lowX1=u.x,t.lowY1=u.y,t.highX0=m.x,t.highY0=m.y,t.highX1=p.x,t.highY1=p.y}else{let e=g.x(),i=g.y();g.set("lowX0",c.x-e),g.set("lowY0",c.y-i),g.set("lowX1",u.x-e),g.set("lowY1",u.y-i),g.set("highX0",m.x-e),g.set("highY0",m.y-i),g.set("highX1",p.x-e),g.set("highY1",p.y-i),g.set("orientation",d);let s=t.get("rangeGraphics");s&&h.each(s,(t=>{t.set("lowX0",c.x-e),t.set("lowY0",c.y-i),t.set("lowX1",u.x-e),t.set("lowY1",u.y-i),t.set("highX0",m.x-e),t.set("highY0",m.y-i),t.set("highX1",p.x-e),t.set("highY1",p.y-i),t.set("orientation",d)}))}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),h.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity,g=e.lowX0,c=e.lowY0,u=e.lowX1,m=e.lowY1,p=e.highX0,_=e.highY0,x=e.highX1,v=e.highY1;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.moveTo(g,c),t.lineTo(u,m),t.moveTo(p,_),t.lineTo(x,v),t.endStroke(),t.endFill()}))}))}_processAxisRange(t){super._processAxisRange(t),t.columns=new n.o(o.YS.new({}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(t.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,t.columns.template])))}}l.className="CandlestickSeries",l.classNames=s.d.classNames.concat([l.className])},62:function(t,e,i){i.d(e,{d:function(){return d}});var s=i(757),a=i(5769),o=i(7144),n=i(3497),r=i(1479),h=i(7652),l=i(5071);class d extends s.d{constructor(){super(...arguments),this.allColumns=this.children.push(r.T.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(t.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,t.columns.template])))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),l.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.endStroke(),t.endFill()}))}))}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(t,e,i,s,a,o,n,r){if(this.get("turboMode")){e.virtualParent=this.chart,e.parent&&(this.mainContainer.children.removeValue(e),e._parent=void 0);const n=e.get("stroke"),r=e.get("fillOpacity",1),h=e.get("strokeOpacity",1),l=e.get("strokeWidth",1),d=e.get("fill"),g=this.getPoint(i,a),c=this.getPoint(s,o),u=t.get("point");if(u){const t=this.getPoint(u.x,u.y);u.x=t.x+this._x,u.y=t.y+this._y}i=g.x,s=c.x,a=g.y,o=c.y,t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:n,fill:d,strokeWidth:l,strokeOpacity:h,fillOpacity:r})}else e.parent||this.mainContainer.children.push(e),super._updateSeriesGraphics(t,e,i,s,a,o,n,r)}}d.className="ColumnSeries",d.classNames=s.d.classNames.concat([d.className])},2338:function(t,e,i){i.d(e,{e:function(){return p}});var s=i(4604),a=i(1479),o=i(774),n=i(3794),r=i(5769),h=i(7144),l=i(1112),d=i(9361),g=i(7142),c=i(5040),u=i(5071),m=i(7652);class p extends s.o{constructor(){super(...arguments),this._strokeGenerator=(0,o.Z)(),this._fillGenerator=(0,n.Z)(),this.strokes=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template])))),this.fills=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template])))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0((function(t){return t[3]})),this._fillGenerator.x0((function(t){return t[2]})),this._fillGenerator.y1((function(t){return t[1]})),this._fillGenerator.x1((function(t){return t[0]})),super._afterNew()}makeStroke(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}makeFill(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let t=this.get("xAxis"),e=this.get("yAxis");if(this.isDirty("stroke")){const t=this.get("stroke");this.strokes.template.set("stroke",t);const e=this._legendStroke;e&&e.states.lookup("default").set("stroke",t)}if(this.isDirty("fill")){const t=this.get("fill");this.fills.template.set("fill",t);const e=this._legendFill;e&&e.states.lookup("default").set("fill",t)}if(this.isDirty("fillPattern")){const t=this.get("fillPattern");this.fills.template.set("fillPattern",t);const e=this._legendFill;e&&e.states.lookup("default").set("fillPattern",t)}if(this.isDirty("curveFactory")){const t=this.get("curveFactory");t&&(this._strokeGenerator.curve(t),this._fillGenerator.curve(t))}if(t.inited&&e.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){const t=this.dataItems;this.fills.each((t=>{t.setPrivate("visible",!1)})),this.strokes.each((t=>{t.setPrivate("visible",!1)})),this.axisRanges.each((t=>{let e=t.fills;e&&e.each((t=>{t.setPrivate("visible",!1)}));let i=t.strokes;i&&i.each((t=>{t.setPrivate("visible",!1)}))}));let e=this.startIndex(),i=this.strokes.template.get("templateField"),s=this.fills.template.get("templateField"),a=!0,o=!0;i&&(a=!1),s&&(o=!1);for(let n=e-1;n>=0;n--){let r=t[n],h=!0,l=r.dataContext;if(i&&l[i]&&(a=!0),s&&l[s]&&(o=!0),u.each(this._valueFields,(t=>{c.isNumber(r.get(t))||(h=!1)})),h&&a&&o){e=n;break}}let n=t.length,r=this.endIndex();if(r{c.isNumber(i.get(t))||(s=!1)})),s){r=e+1;break}}}if(e>0&&e--,this._endIndex=r,this._clearGraphics(),this._sindex=0,this._dindex=e,1==n)this._startSegment(0);else for(;this._dindex{t.fills.clear(),t.strokes.clear()}))}_startSegment(t){const e=this.dataItems;let i=this._endIndex,s=i;const a=this.get("autoGapCount"),o=this.get("connect"),n=this.makeFill(this.fills),h=this._fillTemplate,l=this.fills.template;h&&h!=l&&(n.template=h),n.setPrivate("visible",!0);const d=this.makeStroke(this.strokes),g=this._strokeTemplate;g&&g!=this.strokes.template&&(d.template=g),d.setPrivate("visible",!0);let c=this.get("xAxis"),u=this.get("yAxis"),m=this.get("baseAxis"),p=this.get("vcx",1),_=this.get("vcy",1),x=this._xField,v=this._yField,y=this._xOpenField,f=this._yOpenField;const b=this.get("openValueXField"),D=this.get("openValueYField");b||(y=this._xField),D||(f=this._yField);const P=this.get("stacked"),w=c.basePosition(),T=u.basePosition();let A;A=m===u?this._yField:this._xField;const I=[];let M=[];I.push(M);const k=this.strokes.template.get("templateField"),C=this.fills.template.get("templateField");let S=this.get("locationX",.5),Y=this.get("locationY",.5),F=this.get("openLocationX",S),X=this.get("openLocationY",Y);const L=this.get("minDistance",0);let N,R=this.fills.template.get("visible");this.axisRanges.length>0&&(R=!0);let V=!1;(P||b||D)&&(V=!0);const G={points:M,segments:I,stacked:P,getOpen:V,basePosX:w,basePosY:T,fillVisible:R,xField:x,yField:v,xOpenField:y,yOpenField:f,vcx:p,vcy:_,baseAxis:m,xAxis:c,yAxis:u,locationX:S,locationY:Y,openLocationX:F,openLocationY:X,minDistance:L};let O=this._strokeTemplate,E=this._fillTemplate;for(N=t;Nt){s=N;break}O=e,d.template=e}}if(C){let e=i.dataContext[C];if(e){if(e instanceof r.YS||(e=r.YS.new(e)),this._fillTemplate=e,N>t){s=N;break}E=e,n.template=e}}if(!o){let t=e[N+1];t&&m.shouldGap(i,t,a,A)&&(M=[],I.push(M),G.points=M)}}n.setRaw("userData",[t,N]),d.setRaw("userData",[t,N]),N===i&&this._endLine(M,I[0][0]),d&&this._drawStroke(d,I),n&&this._drawFill(n,I),this.axisRanges.each((e=>{const i=e.container,s=e.fills,a=this.makeFill(s);i&&i.children.push(a),a.setPrivate("visible",!0),this._drawFill(a,I);const o=e.strokes,n=this.makeStroke(o);i&&i.children.push(n),O&&O!=this.strokes.template&&(n.template=O),E&&E!=this.fills.template&&(a.template=E),n.setPrivate("visible",!0),this._drawStroke(n,I),a.setRaw("userData",[t,N]),n.setRaw("userData",[t,N])}))}_getPoints(t,e){let i=e.points,s=t.get("locationX",e.locationX),a=t.get("locationY",e.locationY);const o=this.get("exactLocationX",!1),n=this.get("exactLocationY",!1);let r=e.xAxis.getDataItemPositionX(t,e.xField,s,e.vcx,o),h=e.yAxis.getDataItemPositionY(t,e.yField,a,e.vcy,n);if(this._shouldInclude(r)){const s=this.getPoint(r,h),a=[s.x,s.y];if(s.x+=this._x,s.y+=this._y,t.set("point",s),e.fillVisible){let i=r,s=h;if(e.baseAxis===e.xAxis?s=e.basePosY:e.baseAxis===e.yAxis&&(i=e.basePosX),e.getOpen){let a=t.get(e.xOpenField),r=t.get(e.yOpenField);if(null!=a&&null!=r){let a=t.get("openLocationX",e.openLocationX),r=t.get("openLocationY",e.openLocationY);if(e.stacked){let h=t.get("stackToItemX"),l=t.get("stackToItemY");h?(i=e.xAxis.getDataItemPositionX(h,e.xField,a,h.component.get("vcx"),o),c.isNaN(i)&&(i=e.basePosX)):i=e.yAxis===e.baseAxis?e.basePosX:e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),l?(s=e.yAxis.getDataItemPositionY(l,e.yField,r,l.component.get("vcy"),n),c.isNaN(s)&&(s=e.basePosY)):s=e.xAxis===e.baseAxis?e.basePosY:e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),s=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}}let l=this.getPoint(i,s);a[2]=l.x,a[3]=l.y}if(e.minDistance>0){const t=a[0],s=a[1],o=a[2],n=a[3],r=this._previousPoint,h=r[0],l=r[1],d=r[2],g=r[3];(Math.hypot(t-h,s-l)>e.minDistance||o&&n&&Math.hypot(o-d,n-g)>e.minDistance)&&(i.push(a),this._previousPoint=a)}else i.push(a)}}_endLine(t,e){}_drawStroke(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._strokeGenerator.context(t),this._strokeGenerator(e)}))}))}_drawFill(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._fillGenerator.context(t),this._fillGenerator(e)}))}))}_processAxisRange(t){super._processAxisRange(t),t.fills=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,t.fills.template]))),t.strokes=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,t.strokes.template])))}createLegendMarker(t){const e=this.get("legendDataItem");if(e){const t=e.get("marker"),i=e.get("markerRectangle");i&&i.setPrivate("visible",!1),t.set("background",g.A.new(t._root,{fillOpacity:0,fill:(0,l.$_)(0)}));const s=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=s;const o=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;const n=this._root.interfaceColors.get("disabled");if(s.states.create("disabled",{fill:n,stroke:n}),o.states.create("disabled",{fill:n,stroke:n}),this.bullets.length>0){const e=this.bullets.getIndex(0);if(e){const i=e(t._root,this,new d.z(this,{legend:!0},{}));if(i){const e=i.get("sprite");e instanceof a.T&&e.states.create("disabled",{fill:n,stroke:n}),e&&(e.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),t.children.push(e),e.setAll({x:t.width()/2,y:t.height()/2}),t.events.on("boundschanged",(()=>{e.setAll({x:t.width()/2,y:t.height()/2})})))}}}}}}p.className="LineSeries",p.classNames=s.o.classNames.concat([p.className])},4604:function(t,e,i){i.d(e,{o:function(){return u}});var s=i(7582),a=i(9361),o=i(3399),n=i(7144),r=i(8777),h=i(1479),l=i(5040),d=i(256),g=i(5071),c=i(7652);class u extends o.F{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(r.W.new(this._root,{})),this.axisRanges=new n.aV,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new a.z(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");const t=this.get("xAxis");t&&(this._xRenderer=t.get("renderer"));const e=this.get("yAxis");e&&(this._yRenderer=e.get("renderer")),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxisRange(t)}));else if("push"===t.type)this._processAxisRange(t.newValue);else if("setIndex"===t.type)this._processAxisRange(t.newValue);else if("insertIndex"===t.type)this._processAxisRange(t.newValue);else if("removeIndex"===t.type)this._removeAxisRange(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value)}}))),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this.onPrivate("endIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this._makeFieldNames()}_processAxisRange(t){const e=r.W.new(this._root,{});t.container=e,this.children.push(e),t.series=this;const i=t.axisDataItem;i.setRaw("isRange",!0);const s=i.component;if(s){s._processAxisRange(i,["range","series"]);const t=i.get("bullet");if(t){const e=t.get("sprite");e&&e.setPrivate("visible",!1)}const a=i.get("axisFill");a&&e.set("mask",a),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),d.each(this._dataSets,((t,e)=>{g.each(e,(t=>{t.dispose()})),e.length=0}))}_removeAxisRange(t){const e=t.axisDataItem,i=e.component;e.dispose(),g.remove(i._seriesAxisRanges,e);const s=t.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&g.each(this.valueXFields,(t=>{if(this.get(t+"Field")){this._valueXFields.push(t);let e=this.get(t+"Show");this.__valueXShowFields.push(e),-1!=e.indexOf("Working")?this._valueXShowFields.push(e.split("Working")[0]):this._valueXShowFields.push(e)}})),this.valueYFields&&g.each(this.valueYFields,(t=>{if(this.get(t+"Field")){this._valueYFields.push(t);let e=this.get(t+"Show");this.__valueYShowFields.push(e),-1!=e.indexOf("Working")?this._valueYShowFields.push(e.split("Working")[0]):this._valueYShowFields.push(e)}}))}_dispose(){super._dispose(),this._bullets={};const t=this.chart;t&&t.series.removeValue(this),g.removeFirst(this.get("xAxis").series,this),g.removeFirst(this.get("yAxis").series,this)}_min(t,e){let i=(a=e,null==(s=this.getPrivate(t))?a:null==a?s:aa?s:a);var s,a;this.setPrivate(t,i)}_shouldMakeBullet(t){const e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!e.inited||!i.inited)return!1;const a=this.get("minBulletDistance",0);if(a>0){let t=this.startIndex(),o=this.endIndex()-t;if(e==s){if(this._xRenderer.axisLength()/o
{g.each(this._valueXShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedXValue(i,t)),this._min("minX",e),this._max("maxX",e))})),g.each(this._valueYShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedYValue(i,t)),this._min("minY",e),this._max("maxY",e))})),t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)})),t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&t.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&e.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(t._groupSeriesData(this),e._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let s=this.startIndex(),a=this.endIndex(),o=this.get("minBulletDistance",0);if(o>0&&i&&(i.get("renderer").axisLength()/(a-s)>o?this._showBullets=!0:this._showBullets=!1),(this._psi!=s||this._pei!=a||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const o=this.get("vcx",1),n=this.get("vcy",1),r=this.get("stacked",!1),h=this.getPrivate("outOfSelection");if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),h)e.markDirtySelectionExtremes();else for(let t=s;t{i.open=void 0,i.close=void 0,t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)}))}_makeRangeMask(){if(this.axisRanges.length>0){let t=this._mainContainerMask;null==t&&(t=this.children.push(h.T.new(this._root,{})),this._mainContainerMask=t,t.set("draw",((e,i)=>{const s=this.parent;if(s){const t=this._root.container.width(),a=this._root.container.height();e.moveTo(-t,-a),e.lineTo(-t,2*a),e.lineTo(2*t,2*a),e.lineTo(2*t,-a),e.lineTo(-t,-a),this.axisRanges.each((t=>{const a=t.axisDataItem.get("axisFill");if(s&&a){let t=a.get("draw");t&&t(e,i)}}))}this.mainContainer._display.mask=t._display}))),t.markDirty(),t._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const t=this.chart;if(t){const e=t.series.indexOf(this);if(this._couldStackTo=[],e>0){let i;for(let s=e-1;s>=0&&(i=t.series.getIndex(s),i.get("xAxis")!==this.get("xAxis")||i.get("yAxis")!==this.get("yAxis")||i.className!==this.className||(this._couldStackTo.push(i),i.get("stacked")));s--);}this._stackDataItems()}}_unstack(){d.each(this._reallyStackedTo,((t,e)=>{delete e._stackedSeries[this.uid]})),this._reallyStackedTo={},g.each(this.dataItems,(t=>{t.setRaw("stackToItemY",void 0),t.setRaw("stackToItemX",void 0)}))}_handleRemoved(){const t=this.get("xAxis");t&&t._handleSeriesRemoved();const e=this.get("yAxis");e&&e._handleSeriesRemoved()}_stackDataItems(){const t=this.get("baseAxis"),e=this.get("xAxis"),i=this.get("yAxis");let s,a;t===e?(s="valueY",a="stackToItemY"):t===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,n=0;const r=this.get("stackToNegative");this._reallyStackedTo={},g.each(this.dataItems,(t=>{for(let e=0;e=0&&n>=0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}if(d<0&&n<0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}else if(l.isNumber(d)&&l.isNumber(n)){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}n++}))}processXSelectionDataItem(t,e,i){g.each(this.__valueXShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedXValueWorking(t,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*e))}))}processYSelectionDataItem(t,e,i){g.each(this.__valueYShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedYValueWorking(t,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*e))}))}getStackedYValueWorking(t,e){const i=t.get("stackToItemY");if(i){const t=i.component;return i.get(e,0)*t.get("vcy",1)+this.getStackedYValueWorking(i,e)}return 0}getStackedXValueWorking(t,e){const i=t.get("stackToItemX");if(i){const t=i.component;return i.get(e,0)*t.get("vcx",1)+this.getStackedXValueWorking(i,e)}return 0}getStackedYValue(t,e){const i=t.get("stackToItemY");return i?i.get(e,0)+this.getStackedYValue(i,e):0}getStackedXValue(t,e){const i=t.get("stackToItemX");return i?i.get(e,0)+this.getStackedXValue(i,e):0}createLegendMarker(t){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(t){let e=t.get("sprite");if(e){let i=e.dataItem,s=t.get("locationX",i.get("locationX",.5)),a=t.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),n=this.get("yAxis"),r=this.get("exactLocationX",!1),h=this.get("exactLocationY",!1),l=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),r),d=n.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),h),g=this.getPoint(l,d),c=i.get("left",g.x),u=i.get("right",g.x),m=i.get("top",g.y),p=i.get("bottom",g.y),_=0,x=0,v=u-c,y=p-m;if(this._shouldShowBullet(l,d)){e.setPrivate("visible",!t.getPrivate("hidden"));let o=t.get("field");const n=this.get("baseAxis"),u=this.get("xAxis"),m=this.get("yAxis");if(null!=o){let t;n==u?("value"==o?t=this._yField:"open"==o?t=this._yOpenField:"high"==o?t=this._yHighField:"low"==o&&(t=this._yLowField),t&&(d=m.getDataItemPositionY(i,t,0,this.get("vcy",1),h),g=this._yRenderer.positionToPoint(d),x=g.y,_=c+v*s)):("value"==o?t=this._xField:"open"==o?t=this._xOpenField:"high"==o?t=this._xHighField:"low"==o&&(t=this._xLowField),t&&(l=u.getDataItemPositionX(i,t,0,this.get("vcx",1),r),g=this._xRenderer.positionToPoint(l),_=g.x,x=p-y*a))}else _=c+v*s,x=p-y*a;const f=t.get("stacked");if(f){const t=this.chart;if(n==u){let i=this._bullets[l+"_"+d];if(i){let s=i.bounds(),a=e.localBounds(),o=x;x=s.top,"down"==f?x=s.bottom-a.top:"auto"==f?t&&(o{e!=this._mainDataItems&&g.each(e,(t=>{t.dispose()}))})),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){g.each(this._dataItems,(t=>{let e=t.bullets;e&&g.each(e,(t=>{if(t){let e=t.get("sprite");e&&e.setPrivate("visible",!1)}}))})),this._selectionProcessed=!1}show(t){const e=Object.create(null,{show:{get:()=>super.show}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.show.call(this,t).then((()=>{this._isShowing=!1;let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis");e!==i&&e.markDirtySelectionExtremes(),t!==i&&t.markDirtySelectionExtremes()}))),i.push(this.bulletsContainer.show(t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)}))}hide(t){const e=Object.create(null,{hide:{get:()=>super.hide}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.hide.call(this,t).then((()=>{this._isHiding=!1}))),i.push(this.bulletsContainer.hide(t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)];l.isNumber(e)||(e=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");g.each(this._valueFields,(i=>{s.push(t.animate({key:i+"Working",to:t.get(i),duration:e,easing:a}).waitForStop())})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)];let a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),l.isNumber(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),n=this.get("xAxis"),r=this.get("yAxis"),h=this.get("baseAxis"),d=this.get("stacked");if(h!==n&&h||g.each(this._valueYFields,(i=>{let a=r.getPrivate("min"),n=r.baseValue();l.isNumber(a)&&a>n&&(n=a),d&&(n=0),null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:n,duration:e,easing:o}).waitForStop())})),h===r||!h){let i=n.getPrivate("min"),a=n.baseValue();l.isNumber(i)&&i>a&&(a=i),d&&(a=0),g.each(this._valueXFields,(i=>{null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:a,duration:e,easing:o}).waitForStop())}))}yield Promise.all(s)}))}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const t=this._stackedSeries;t&&d.each(t,((t,e)=>{e._stackDirty||e._markDirtyStack()}))}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(t){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(t),this.updateLegendValue(t));const e=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(e)if(!this.isHidden()&&this.get("visible")){if(e._setDataItem(t),t){let a=this.get("locationX",0),o=this.get("locationY",1),n=t.get("locationX",a),r=t.get("locationY",o);const h=this.get("xAxis"),l=this.get("yAxis"),d=this.get("vcx",1),c=this.get("vcy",1),u=h.getDataItemPositionX(t,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*n,d,i),m=l.getDataItemPositionY(t,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*r,c,s),p=this.getPoint(u,m);let _=!0;if(g.each(this._valueFields,(e=>{null==t.get(e)&&(_=!1)})),_){const i=this.chart;i&&i.inPlot(p)?(e.label.text.markDirtyText(),e.set("tooltipTarget",this._getTooltipTarget(t)),e.set("pointTo",this._display.toGlobal({x:p.x,y:p.y}))):e._setDataItem(void 0)}else e._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const t=this.get("tooltip");return t&&t.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget")){const e=t.bullets;if(e&&e.length>0){const t=e[0].get("sprite");if(t)return t}}return this}updateLegendValue(t){const e=this.get("legendDataItem");if(e){const i=e.get("label");if(i){let e="";t?(i._setDataItem(t),e=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),e=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",e)}const s=e.get("valueLabel");if(s){let e="";t?(s._setDataItem(t),e=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),e=this.get("legendRangeValueText",s.get("text",""))),s.set("text",e)}}}_getItemReaderLabel(){let t="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}",t}getPoint(t,e){let i=this._xRenderer.positionToCoordinate(t),s=this._yRenderer.positionToCoordinate(e),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(t){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(t){return this.axisRanges.push({axisDataItem:t})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(t){const e=this.get("xAxis");if(this.get("baseAxis")==e&&e.isType("DateAxis")){const i=e.baseDuration(),s=e.getPrivate("selectionMin",e.getPrivate("min",0)),a=i*this.get("locationX",.5);let o=-1/0;for(;o{const e=this.startGrip,i=this.endGrip;let s=e.x(),a=e.y(),o=i.x(),n=i.y();const r=this.height(),h=this.width();s>o&&([s,o]=[o,s]),a>n&&([a,n]=[n,a]),"horizontal"===this.get("orientation")?(t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,r),t.lineTo(0,r),t.lineTo(0,0),t.moveTo(o,0),t.lineTo(h,0),t.lineTo(h,r),t.lineTo(o,r),t.lineTo(o,0)):(t.moveTo(0,0),t.lineTo(0,a),t.lineTo(h,a),t.lineTo(h,0),t.lineTo(0,0),t.moveTo(0,n),t.lineTo(0,r),t.lineTo(h,r),t.lineTo(h,n),t.lineTo(0,n))}))}}r.className="XYChartScrollbar",r.classNames=a.L.classNames.concat([r.className]);var h=i(3355),l=i(757),d=i(6515),g=i(7497),c=i(1926),u=i(5040),m=i(5071);class p extends g.${constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category"),super._afterNew()}_prepareAxisItems(){this.setPrivateRaw("baseInterval",this.get("baseInterval"));const t=this.get("renderer"),e=this.dataItems.length;let i=this.startIndex();i>0&&i--;let s=this.endIndex();s=o&&(g=!0):r%l.count==0&&r!=y&&(g=!0),!h&&g&&(i-.7*o0){let t=f[0].dataItem.get("index",0);m.each(f,(e=>{const i=e.dataItem,s=e.format;this._createAssets(i,[]),this._toggleDataItem(i,!0);let a=Number(i.get("category")),n=new Date(a);const r=i.get("label");r&&r.set("text",this._root.dateFormatter.format(n,s)),t++,this._prepareDataItem(i,t,o)}))}}baseDuration(){return c.getIntervalDuration(this.getPrivate("baseInterval"))}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let t=this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];return this._root.dateFormatter.format(new Date(i.get("category",0)),this.get("tooltipDateFormat",t))}}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}}p.className="CategoryDateAxis",p.classNames=g.$.classNames.concat([p.className]);var _=i(5638),x=i(8701),v=i(7261),y=i(751);class f extends v.m{constructor(){super(...arguments),this._dataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),super._afterNew()}_adjustMinMax(t,e,i,s){let a;const o=this.getDurationFormatter(),n=this.get("baseUnit");if(this.setRaw("maxPrecision",0),"millisecond"==n||"second"==n||"minute"==n||"hour"==n){i<=1&&(i=1),i=Math.round(i);let s=e-t;0===s&&(s=Math.abs(e));let o=s/i,r=[60,30,20,15,10,2,1],h=1;"hour"==n&&(r=[24,12,6,4,2,1]);for(let t of r)if(s/t>i){h=t;break}let l=Math.ceil((e-t)/h/i),d=Math.log(Math.abs(l))*Math.LOG10E,g=Math.pow(10,Math.floor(d))/10,c=l/g;l=y.closest(r,c)*g,o=h*l,a={min:t=Math.floor(t/o)*o,max:e=Math.ceil(e/o)*o,step:o}}else a=super._adjustMinMax(t,e,i,s);return this.setPrivateRaw("durationFormat",o.getFormat(a.step,a.max,n)),a}_formatText(t){return this.getDurationFormatter().format(t,this.getPrivate("durationFormat"),this.get("baseUnit"))}getTooltipText(t,e){const i=this.getDurationFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=y.round(this.positionToValue(t),a);return i.format(o,this.getPrivate("durationFormat"),this.get("baseUnit"))}}f.className="DurationAxis",f.classNames=v.m.classNames.concat([f.className]);var b=i(2586),D=i(6293),P=i(9084),w=i(4714),T=i(8943),A=i(7109),I=i(6275),M=i(6284),k=i(7909),C=i(4604),S=i(2976),Y=i(2312);class F extends S.j{_draw(){const t=this._display;t.moveTo(this.get("lowX1",0),this.get("lowY1",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0));let e=this.width(),i=this.height();if("vertical"==this.get("orientation")){let s=i,a=0;t.moveTo(0,s),t.lineTo(e/2,s),t.moveTo(e/2,a),t.lineTo(e,a)}else{let s=0,a=e;t.moveTo(s,0),t.lineTo(s,i/2),t.moveTo(a,i/2),t.lineTo(a,i)}}}F.className="OHLC",F.classNames=S.j.classNames.concat([F.className]);var X=i(5769),L=i(7144);class N extends Y.${constructor(){super(...arguments),this.columns=this.addDisposer(new L.o(X.YS.new({themeTags:["autocolor"]}),(()=>F._new(this._root,{themeTags:n.mergeTags(this.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=this.mainContainer.children.push(e.make());return i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new L.o(X.YS.new({}),(()=>F._new(this._root,{themeTags:n.mergeTags(t.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template,t.columns.template])))}}N.className="OHLCSeries",N.classNames=Y.$.classNames.concat([N.className]);var R=i(62),V=i(2338),G=i(5892);class O extends V.e{_afterNew(){this._setDefault("curveFactory",(0,G.$)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,G.$)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}O.className="SmoothedYLineSeries",O.classNames=V.e.classNames.concat([O.className]);var E=i(8289);class z extends V.e{_afterNew(){this._setDefault("curveFactory",(0,E.G)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,E.G)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}z.className="SmoothedXLineSeries",z.classNames=V.e.classNames.concat([z.className]);var U=i(2818);class W extends V.e{_afterNew(){this._setDefault("curveFactory",U.ZP.tension(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",U.ZP.tension(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}W.className="SmoothedXYLineSeries",W.classNames=V.e.classNames.concat([W.className]);var B=i(6245);function H(t,e){this._context=t,this._t=e}function Z(t){return new H(t,1)}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}};class Q extends V.e{_afterNew(){this._setDefault("curveFactory",Z),super._afterNew()}_getPoints(t,e){let i=e.points,s=this.get("stepWidth",B.AQ).value/2,a=t.get("locationX",e.locationX),o=t.get("locationY",e.locationY),n=a,r=o;e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s);let h=e.xAxis.getDataItemPositionX(t,e.xField,a,e.vcx),l=e.yAxis.getDataItemPositionY(t,e.yField,o,e.vcy),d=e.xAxis.getDataItemPositionX(t,e.xField,n,e.vcx),g=e.yAxis.getDataItemPositionY(t,e.yField,r,e.vcy);if(this._shouldInclude(h)){const c=this.getPoint(h,l),u=[c.x,c.y],m=this.getPoint(d,g),p=[m.x,m.y];if(e.fillVisible){let i=h,c=l,m=d,_=g;if(e.baseAxis===e.xAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(i=e.basePosX,m=e.basePosX),e.getOpen){let h=t.get(e.xOpenField),l=t.get(e.yOpenField);if(null!=h&&null!=l)if(a=t.get("openLocationX",e.openLocationX),o=t.get("openLocationY",e.openLocationY),n=a,r=o,e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s),e.stacked){let s=t.get("stackToItemX"),h=t.get("stackToItemY");s?(i=e.xAxis.getDataItemPositionX(s,e.xField,a,s.component.get("vcx")),m=e.xAxis.getDataItemPositionX(s,e.xField,n,s.component.get("vcx"))):e.yAxis===e.baseAxis?(i=e.basePosX,m=e.basePosX):e.baseAxis===e.yAxis&&(i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx)),h?(c=e.yAxis.getDataItemPositionY(h,e.yField,o,h.component.get("vcy")),_=e.yAxis.getDataItemPositionY(h,e.yField,r,h.component.get("vcy"))):e.xAxis===e.baseAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy))}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy)}let x=this.getPoint(i,c),v=this.getPoint(m,_);u[2]=x.x,u[3]=x.y,p[2]=v.x,p[3]=v.y}i.push(u),i.push(p),t.set("point",{x:u[0]+(p[0]-u[0])/2,y:u[1]+(p[1]-u[1])/2})}this.get("noRisers")&&(e.points=[],e.segments.push(i))}}Q.className="StepLineSeries",Q.classNames=V.e.classNames.concat([Q.className]);var j=i(55)},7825:function(t,e,i){i.r(e),i.d(e,{am5xy:function(){return s}});const s=i(778)},2818:function(t,e,i){function s(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function a(t,e){this._context=t,this._k=(1-e)/6}i.d(e,{xm:function(){return s}}),a.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:s(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:s(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.ZP=function t(e){function i(t){return new a(t,e)}return i.tension=function(e){return t(+e)},i}(0)}},function(t){var e=(7825,t(t.s=7825)),i=window;for(var s in e)i[s]=e[s];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=xy.js.map diff --git a/web/amCharts/scatter/chart_0061_scatter.inline03.js b/web/amCharts/scatter/chart_0061_scatter.inline03.js new file mode 100644 index 0000000000000000000000000000000000000000..c27a274e7972e9ecbd57d20b441e60fc864ffc7d --- /dev/null +++ b/web/amCharts/scatter/chart_0061_scatter.inline03.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=Animated.js.map diff --git a/web/amCharts/scatter/chart_0062_scatter.html b/web/amCharts/scatter/chart_0062_scatter.html new file mode 100644 index 0000000000000000000000000000000000000000..6d02951c1229eb51bcb08376525401e4e6050067 --- /dev/null +++ b/web/amCharts/scatter/chart_0062_scatter.html @@ -0,0 +1,264 @@ + + + + + + XY Chart with Date-Based Axis + + + +
+ + + + + + diff --git a/web/amCharts/scatter/chart_0062_scatter.inline01.js b/web/amCharts/scatter/chart_0062_scatter.inline01.js new file mode 100644 index 0000000000000000000000000000000000000000..3fe3e3caca2e468e70f044c7aaeaa49dfcb8d974 --- /dev/null +++ b/web/amCharts/scatter/chart_0062_scatter.inline01.js @@ -0,0 +1,2 @@ +!function(){var t,e,i,s,n,r={3145:function(t,e,i){"use strict";i.d(e,{UZ:function(){return r},cP:function(){return n},f_:function(){return o},i_:function(){return s}});const s=new class{constructor(){this.version="5.16.0",this.licenses=[],this.entitiesById={},this.rootElements=[],this.autoDispose=!1}};function n(t){s.licenses.push(t)}function r(){let t;for(;t=s.rootElements.pop();)t.dispose()}function o(t){let e;return s.rootElements.forEach((i=>{i.dom.id==t&&(e=i)})),e}},2855:function(t,e,i){"use strict";i.d(e,{f:function(){return F}});var s=i(6490),n=i(8777),r=i(2036),o=i(4431),a=i(1706),h=i(6881),l=i(7449),c=i(5071),u=i(7652);class d{constructor(){this._targets=[],this._observer=new ResizeObserver((t=>{c.each(t,(t=>{c.each(this._targets,(e=>{e.target===t.target&&e.callback()}))}))}))}addTarget(t,e){this._observer.observe(t,{box:"border-box"}),this._targets.push({target:t,callback:e})}removeTarget(t){this._observer.unobserve(t),c.keepIf(this._targets,(e=>e.target!==t))}}class p{constructor(){this._timer=null,this._targets=[]}addTarget(t,e){if(null===this._timer){let t=null;const e=()=>{const i=Date.now();(null===t||i>t+p.delay)&&(t=i,c.each(this._targets,(t=>{let e=t.target.getBoundingClientRect();e.width===t.size.width&&e.height===t.size.height||(t.size=e,t.callback())}))),0===this._targets.length?this._timer=null:this._timer=requestAnimationFrame(e)};this._timer=requestAnimationFrame(e)}this._targets.push({target:t,callback:e,size:{width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0}})}removeTarget(t){c.keepIf(this._targets,(e=>e.target!==t)),0===this._targets.length&&null!==this._timer&&(cancelAnimationFrame(this._timer),this._timer=null)}}p.delay=200;let g=null;class f{constructor(t,e){this._disposed=!1,this._sensor=(null===g&&(g="undefined"!=typeof ResizeObserver?new d:new p),g),this._element=t,this._listener=u.onZoom(e),this._sensor.addTarget(t,e)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}var _=i(9821),m=i(1479),y=i(7142),v=i(2876),w=i(780),b=i(6460),x=i(798),D=i(6331),k=i(256),T=i(3100);class M extends D.JH{_setDefaults(){this.setPrivate("defaultLocale",T.Z),super._setDefaults()}translate(t,e,...i){e||(e=this._root.locale||this.getPrivate("defaultLocale"));let s=t,n=e[t];if(null===n)s="";else if(null!=n)n&&(s=n);else if(e!==this.getPrivate("defaultLocale"))return this.translate(t,this.getPrivate("defaultLocale"),...i);if(i.length)for(let t=i.length,e=0;e{this.setTranslationAny(t,i,e)}))}translateEmpty(t,e,...i){let s=this.translate(t,e,...i);return s==t?"":s}translateFunc(t,e){return this._root.locale[t]?this._root.locale[t]:e!==this.getPrivate("defaultLocale")?this.translateFunc(t,this.getPrivate("defaultLocale")):()=>""}translateAll(t,e){return this.isDefault()?t:c.map(t,(t=>this.translate(t,e)))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}var E=i(9770),O=i(3783),P=i(4102),S=i(6245),N=i(1112),C=i(2132),L=i(3145),A=i(3540),R=i(5040),U=i(9395);function B(t,e){null==t?requestAnimationFrame(e):setTimeout((()=>{requestAnimationFrame(e)}),1e3/t)}class F{constructor(t,e={},i){if(this._isDirty=!1,this._isDirtyParents=!1,this._isDirtyAnimation=!1,this._dirty={},this._dirtyParents={},this._dirtyBounds={},this._dirtyPositions={},this._ticker=null,this._tickers=[],this._updateTick=!0,this.skipRenderFrame=!1,this.events=new E.p,this.animationTime=null,this._animations=[],this.language=M.new(this,{}),this.locale=T.Z,this.utc=!1,this.numberFormatter=w.e.new(this,{}),this.dateFormatter=b.C.new(this,{}),this.durationFormatter=x.$.new(this,{}),this.tabindex=0,this._tabindexes=[],this._a11yD=!1,this._focusElementDirty=!1,this._skipNextGroupJump=!0,this.verticalLayout=a.Z.new(this,{}),this.horizontalLayout=o.G.new(this,{}),this.gridLayout=h.M.new(this,{}),this._paused=!1,this.autoResize=!0,this._fontHash="",this._isDisposed=!1,this._disposers=[],this._tooltips=[],this._htmlEnabledContainers=[],this.entitiesById={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");let s,n;if(this._settings=e,0==e.accessible&&(this._a11yD=!0),null==e.useSafeResolution&&(e.useSafeResolution=!0),e.useSafeResolution&&(s=u.getSafeResolution()),this._renderer=new P.uK(s),n=t instanceof HTMLElement?t:document.getElementById(t),c.each(L.i_.rootElements,(t=>{if(t.dom===n){if(!L.i_.autoDispose)throw new Error("You cannot have multiple Roots on the same DOM node");t.dispose()}})),this.interfaceColors=_.v.new(this,{}),null===n)throw new Error("Could not find HTML element with id `"+t+"`");this.dom=n;let r=document.createElement("div");r.style.position="relative",r.style.width="100%",r.style.height="100%",n.appendChild(r);const l=e.tooltipContainerBounds;l&&(this._tooltipContainerSettings=l),this._inner=r,this._updateComputedStyles(),L.i_.rootElements.push(this)}static new(t,e){const i=new F(t,e,!0);return i._init(),i}moveDOM(t){let e;if(e=t instanceof HTMLElement?t:document.getElementById(t),e){for(;this.dom.childNodes.length>0;)e.appendChild(this.dom.childNodes[0]);this.dom=e,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const t=this.dom.offsetWidth,e=this.dom.offsetHeight;t<=150||e<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const t=this.tooltipContainer.children.push(n.W.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:(0,S.aQ)(100),centerY:S.AQ,tooltipY:10,tooltipText:"Created using amCharts 5",tooltipX:S.AQ,cursorOverStyle:"pointer",background:y.A.new(this,{fill:(0,N.$_)(4671320),fillOpacity:0,tooltipY:5})}));t.set("tooltip",this.systemTooltip),t.events.on("click",(()=>{window.open("https://www.amcharts.com/","_blank")})),t.states.create("hover",{});const e=t.children.push(m.T.new(this,{stroke:(0,N.$_)(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6",dx:-50,strokeOpacity:0}));e.states.create("hover",{stroke:(0,N.$_)(3976191)});const i=t.children.push(m.T.new(this,{stroke:(0,N.$_)(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0",dx:50,strokeOpacity:0})),s=U.out(U.cubic),r=1500;t.setTimeout((()=>{i.animate({key:"strokeOpacity",to:1,duration:r,easing:s}),i.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"strokeOpacity",to:1,duration:r,easing:s})}),3e3),i.states.create("hover",{stroke:(0,N.$_)(4671320)}),this._logo=t,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(t){return this._settings.calculateSize?this._settings.calculateSize(t):{width:t.width,height:t.height}}_init(){const t=this._settings;!1!==t.accessible&&(t.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),t.ariaLabel&&this._inner.setAttribute("aria-label",t.ariaLabel),t.role&&this._inner.setAttribute("role",t.role));const e=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),r=Math.floor(s.width),o=Math.floor(s.height),a=Math.floor(i.width),h=Math.floor(i.height),l=n.W.new(this,{visible:!0,width:r,height:o});this._rootContainer=l,this._rootContainer._defaultThemes.push(O.X.new(this));const c=l.children.push(n.W.new(this,{visible:!0,width:S.AQ,height:S.AQ}));this.container=c,e.resize(a,h,r,o),this._inner.appendChild(e.view),this._initResizeSensor();const d=document.createElement("div");if(this._htmlElementContainer=d,d.className="am5-html-container",d.style.position="absolute",d.style.pointerEvents="none",this._tooltipContainerSettings||(d.style.overflow="hidden"),this._inner.appendChild(d),!0!==this._a11yD){const t=document.createElement("div");t.className="am5-reader-container",t.setAttribute("role","alert"),t.style.position="absolute",t.style.width="1px",t.style.height="1px",t.style.overflow="hidden",t.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=t,this._inner.appendChild(this._readerAlertElement);const i=document.createElement("div");i.className="am5-focus-container",i.style.position="absolute",i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.width=r+"px",i.style.height=o+"px",i.setAttribute("role","graphics-document"),u.setInteractive(i,!1),this._focusElementContainer=i,this._inner.appendChild(this._focusElementContainer);const s=document.createElement("div");this._tooltipElementContainer=s,s.className="am5-tooltip-container",this._inner.appendChild(s),u.supports("keyboardevents")&&(this._disposers.push(u.addEventListener(window,"keydown",(t=>{const e=u.getEventKey(t);"Shift"==e?this._isShift=!0:"Tab"==e&&(this._isShift=t.shiftKey)}))),this._disposers.push(u.addEventListener(window,"keyup",(t=>{"Shift"==u.getEventKey(t)&&(this._isShift=!1)}))),this._disposers.push(u.addEventListener(i,"click",(()=>{const t=this._focusedSprite;if(t){const i=t.get("clickAnnounceText","");""!==i&&this.readerAlert(i);const s=e.getEvent(new MouseEvent("click"));t.events.dispatch("click",{type:"click",originalEvent:s.event,point:s.point,simulated:!0,target:t})}}))),this._disposers.push(u.addEventListener(i,"keydown",(t=>{const i=this._focusedSprite;if(i){"Escape"==t.key&&(u.blur(),this._focusedSprite=void 0);let s=0,n=0;const r=u.getEventKey(t);switch(r){case"Enter":case" ":const o=i.get("clickAnnounceText","");if(""!==o&&this.readerAlert(o)," "==r&&"checkbox"!=i.get("role"))return;t.preventDefault();const a=e.getEvent(new MouseEvent("mouse"));return void i.events.dispatch("click",{type:"click",originalEvent:a.event,point:a.point,simulated:!0,target:i});case"ArrowLeft":s=-6;break;case"ArrowRight":s=6;break;case"ArrowUp":n=-6;break;case"ArrowDown":n=6;break;default:return}if(0!=s||0!=n){if(t.preventDefault(),!i.isDragging()){this._keyboardDragPoint={x:0,y:0};const t=e.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));t.point={x:0,y:0},i.events.isEnabled("pointerdown")&&i.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:t.event,point:t.point,simulated:!0,target:i})}const r=this._keyboardDragPoint;r.x+=s,r.y+=n;const o=e.getEvent(new MouseEvent("mousemove",{clientX:r.x,clientY:r.y}),!1);i.events.isEnabled("globalpointermove")&&i.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:o.event,point:o.point,simulated:!0,target:i})}}}))),this._disposers.push(u.addEventListener(i,"keyup",(t=>{if(this._focusedSprite){const i=this._focusedSprite,s=u.getEventKey(t);switch(s){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(i.isDragging()){const t=this._keyboardDragPoint,s=e.getEvent(new MouseEvent("mouseup",{clientX:t.x,clientY:t.y}));return i.events.isEnabled("globalpointerup")&&i.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:s.event,point:s.point,simulated:!0,target:i}),void(this._keyboardDragPoint=void 0)}if(i.get("focusableGroup")){const t=i.get("focusableGroup"),e=this._tabindexes.filter((e=>!(e.get("focusableGroup")!=t||!1===e.getPrivate("focusable")||!e.isVisibleDeep())));let n=e.indexOf(i);const r=e.length-1;n+="ArrowRight"==s||"ArrowDown"==s?1:-1,n<0?n=r:n>r&&(n=0),u.focus(e[n].getPrivate("focusElement").dom)}break;case"Tab":const t=i.get("focusableGroup");if(t&&this._isShift)return void(this._skipNextGroupJump||(this._focusNext(i.getPrivate("focusElement").dom,-1,t),this._skipNextGroupJump=!0))}}}))))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}get systemTooltip(){if(!this._systemTooltip){const t=v.u.new(this,{themeTags:["system"]});this._systemTooltip=t}return this._systemTooltip}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new f(this.dom,(()=>{this.autoResize&&this.resize()})),this._disposers.push(this._resizeSensorDisposer)}resize(){const t=this._getRealSize(),e=this._getCalculatedSize(t),i=Math.floor(e.width),s=Math.floor(e.height);if(i>0&&s>0){const e=Math.floor(t.width),n=Math.floor(t.height),r=this._htmlElementContainer;if(r.style.width=i+"px",r.style.height=s+"px",!0!==this._a11yD){const t=this._focusElementContainer;t.style.width=i+"px",t.style.height=s+"px"}this._renderer.resize(e,n,i,s);const o=this._rootContainer;o.setPrivate("width",i),o.setPrivate("height",s),this._render(),this._handleLogo()}}_render(){this.skipRenderFrame?this.skipRenderFrame=!1:(this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1))}_runTickers(t){c.each(this._tickers,(e=>{e(t)}))}_runAnimations(t){let e=0;return c.keepIf(this._animations,(i=>{const n=i._runAnimation(t);return n!==s.SR.Stopped&&(n!==s.SR.Playing||(++e,!0))})),this._isDirtyAnimation=!1,0===e}_runDirties(){let t={};for(;this._isDirtyParents;)this._isDirtyParents=!1,k.entries(this._dirtyParents).forEach((([e,i])=>{delete this._dirtyParents[e],i.isDisposed()||(t[i.uid]=i,i._prepareChildren())}));k.entries(t).forEach((([t,e])=>{e._updateChildren()}));const e=[];k.entries(this._dirty).forEach((([t,i])=>{i.isDisposed()?delete this._dirty[t]:(e.push(i),i._beforeChanged())})),e.forEach((t=>{t._changed(),delete this._dirty[t.uid],t._clearDirty()})),this._isDirty=!1;const i={},s=[];k.entries(this._dirtyBounds).forEach((([t,e])=>{delete this._dirtyBounds[t],e.isDisposed()||(i[e.uid]=e.depth(),s.push(e))})),this._positionHTMLElements(),s.sort(((t,e)=>A.qu(i[e.uid],i[t.uid]))),s.forEach((t=>{t._updateBounds()}));const n=this._dirtyPositions;k.entries(n).forEach((([t,e])=>{delete n[t],e.isDisposed()||e._updatePosition()})),e.forEach((t=>{t._afterChanged()})),k.entries(t).forEach((([t,e])=>{e._childrenPrep=!1,e._childrenUpdt=!1}))}_renderFrame(t){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:t}),this._checkComputedStyles(),this._runTickers(t);const e=this._runAnimations(t);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:t}),0===this._tickers.length&&e&&!this._isDirtyAnimation&&!this._isDirty}return!0}_runTicker(t,e){this.isDisposed()||(this.animationTime=t,this._renderFrame(t)?(this._ticker=null,this.animationTime=null):this._paused||(e?this._ticker:B(this.fps,this._ticker)))}_runTickerNow(t=1e4){if(!this.isDisposed()){const e=performance.now()+t;for(;;){const t=performance.now();if(t>=e){this.animationTime=null;break}if(this.animationTime=t,this._renderFrame(t)){this.animationTime=null;break}}}}_startTicker(){null===this._ticker&&(this.animationTime=null,this._ticker=t=>{this._runTicker(t)},B(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(t){this._updateTick=t,t&&this._startTicker()}_addDirtyEntity(t){this._isDirty=!0,void 0===this._dirty[t.uid]&&(this._dirty[t.uid]=t),this._startTicker()}_addDirtyParent(t){this._isDirty=!0,this._isDirtyParents=!0,void 0===this._dirtyParents[t.uid]&&(this._dirtyParents[t.uid]=t),this._startTicker()}_addDirtyBounds(t){this._isDirty=!0,void 0===this._dirtyBounds[t.uid]&&(this._dirtyBounds[t.uid]=t),this._startTicker()}_addDirtyPosition(t){this._isDirty=!0,void 0===this._dirtyPositions[t.uid]&&(this._dirtyPositions[t.uid]=t),this._startTicker()}_addAnimation(t){this._isDirtyAnimation=!0,-1===this._animations.indexOf(t)&&this._animations.push(t),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",(()=>{this._isDirty=!0,this._startTicker()}))}eachFrame(t){return this._tickers.push(t),this._startTicker(),new l.ku((()=>{c.removeFirst(this._tickers,t)}))}markDirtyGlobal(t){t||(t=this.container),t.walkChildren((t=>{t instanceof n.W&&this.markDirtyGlobal(t),t.markDirty(),t.markDirtyBounds()}))}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),c.each(this._disposers,(t=>{t.dispose()})),this._inner&&u.removeElement(this._inner),c.remove(L.i_.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(t){if(!0!==this._a11yD){const e=this._readerAlertElement;t=u.stripTags(t),e.innerHTML==t&&(e.innerHTML=""),e.innerHTML=t}}setThemes(t){this._rootContainer.set("themes",t);const e=this.tooltipContainer;e&&e._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const t=this._tooltipContainerSettings,e=this._rootContainer.children.push(n.W.new(this,{position:"absolute",isMeasured:!1,width:S.AQ,height:S.AQ,layer:t?35:30,layerMargin:t||void 0}));this.tooltipContainer=e;const i=v.u.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(t){1!=this._a11yD&&(t.get("focusable")?c.pushOne(this._tabindexes,t):c.remove(this._tabindexes,t),this._invalidateTabindexes())}_unregisterTabindexOrder(t){1!=this._a11yD&&(c.remove(this._tabindexes,t),this._invalidateTabindexes())}_invalidateTabindexes(){if(1==this._a11yD)return;this._tabindexes.sort(((t,e)=>{const i=t.get("tabindexOrder",0),s=e.get("tabindexOrder",0);return i==s?0:i>s?1:-1}));const t=[];c.each(this._tabindexes,((e,i)=>{e.getPrivate("focusElement")?this._moveFocusElement(i,e):this._makeFocusElement(i,e);const s=e.get("focusableGroup");s&&!1!==e.getPrivate("focusable")&&(-1!==t.indexOf(s)?e.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):t.push(s))}))}_updateCurrentFocus(){1!=this._a11yD&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(t,e){if(1==this._a11yD)return;if(e||(e=t.getPrivate("focusElement").dom),!e)return;const i=t.get("role");i?e.setAttribute("role",i):e.removeAttribute("role");const s=t.get("ariaLabel");if(s){const i=(0,C.q)(t,s);e.setAttribute("aria-label",i)}else e.removeAttribute("aria-label");const n=t.get("ariaLive");n?e.setAttribute("aria-live",n):e.removeAttribute("aria-live");const r=t.get("ariaChecked");null!=r&&i&&-1!==["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)?e.setAttribute("aria-checked",r?"true":"false"):e.removeAttribute("aria-checked");const o=t.get("ariaCurrent");null!=o?e.setAttribute("aria-current",o):e.removeAttribute("aria-current");const a=t.get("ariaSelected");null!=a&&i&&-1!==["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)?e.setAttribute("aria-selected",a?"true":"false"):e.removeAttribute("aria-selected"),t.get("ariaHidden")?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden");const h=t.get("ariaOrientation");h?e.setAttribute("aria-orientation",h):e.removeAttribute("aria-orientation");const l=t.get("ariaValueNow");l?e.setAttribute("aria-valuenow",l):e.removeAttribute("aria-valuenow");const c=t.get("ariaValueMin");c?e.setAttribute("aria-valuemin",c):e.removeAttribute("aria-valuemin");const u=t.get("ariaValueMax");u?e.setAttribute("aria-valuemax",u):e.removeAttribute("aria-valuemax");const d=t.get("ariaValueText");d?e.setAttribute("aria-valuetext",d):e.removeAttribute("aria-valuetext");const p=t.get("ariaControls");p?e.setAttribute("aria-controls",p):e.removeAttribute("aria-controls"),t.get("visible")&&0!==t.get("opacity")&&"tooltip"!=t.get("role")&&!t.isHidden()&&!1!==t.getPrivate("focusable")&&(t.height()||t.width())?("-1"!=e.getAttribute("tabindex")&&e.setAttribute("tabindex",""+this.tabindex),e.removeAttribute("aria-hidden")):(e.removeAttribute("tabindex"),e.setAttribute("aria-hidden","true"))}_makeFocusElement(t,e){if(e.getPrivate("focusElement")||1==this._a11yD)return;const i=document.createElement("div");"tooltip"!=e.get("role")&&(i.tabIndex=this.tabindex),i.style.position="absolute",u.setInteractive(i,!1);const s=[];e.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(e),s.push(u.addEventListener(i,"focus",(t=>{this._handleFocus(t)}))),s.push(u.addEventListener(i,"blur",(t=>{this._handleBlur(t)}))),this._moveFocusElement(t,e)}_removeFocusElement(t){if(1==this._a11yD)return;c.remove(this._tabindexes,t);const e=t.getPrivate("focusElement");e&&(this._focusElementContainer.removeChild(e.dom),c.each(e.disposers,(t=>{t.dispose()})))}_hideFocusElement(t){1!=this._a11yD&&(t.getPrivate("focusElement").dom.style.display="none")}_moveFocusElement(t,e){if(1==this._a11yD)return;const i=this._focusElementContainer,s=e.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[t])return;const n=this._focusElementContainer.children[t+1];n?i.insertBefore(s,n):i.append(s)}_positionFocusElement(t){if(1==this._a11yD||null==t)return;this._focusElementContainer.scrollTop=0;const e=t.globalBounds();let i=e.right==e.left?t.width():e.right-e.left,s=e.top==e.bottom?t.height():e.bottom-e.top;const n=void 0!==this._settings.focusPadding?this._settings.focusPadding:2;let r=e.left-n,o=e.top-n;i<0&&(r+=i,i=Math.abs(i)),s<0&&(o+=s,s=Math.abs(s));const a=t.getPrivate("focusElement").dom;a.style.top=o+"px",a.style.left=r+"px",a.style.width=i+2*n+"px",a.style.height=s+2*n+"px"}_getSpriteByFocusElement(t){let e;return c.eachContinue(this._tabindexes,((i,s)=>i.getPrivate("focusElement").dom!==t||(e=i,!1))),e}_handleFocus(t){if(1==this._a11yD)return;const e=this._getSpriteByFocusElement(t.target);e&&(e.isVisibleDeep()?(this._positionFocusElement(e),this._focusedSprite=e,e.events.isEnabled("focus")&&e.events.dispatch("focus",{type:"focus",originalEvent:t,target:e}),-1==e.getPrivate("focusElement").dom.tabIndex&&(this._skipNextGroupJump=!1)):this._focusNext(t.target,this._isShift?-1:1))}_focusNext(t,e,i){if(1==this._a11yD)return;const s=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(",")));let n=s.indexOf(t)+e;n<0?n=s.length-1:n>=s.length&&(n=0);const r=s[n];if(i&&-1==e){const t=this._getSpriteByFocusElement(r);if(t&&t.get("focusableGroup")==i)return void this._focusNext(r,e)}r.focus()}_handleBlur(t){if(1==this._a11yD)return;const e=this._focusedSprite;e&&!e.isDisposed()&&e.events.isEnabled("blur")&&e.events.dispatch("blur",{type:"blur",originalEvent:t,target:e}),this._focusedSprite=void 0}updateTooltip(t){if(1==this._a11yD)return;const e=u.stripTags(t._getText());let i=t.getPrivate("tooltipElement");"tooltip"==t.get("role")&&""!=e?(i||(i=this._makeTooltipElement(t)),i.innerHTML!=e&&(i.innerHTML=e),i.setAttribute("aria-hidden",t.isVisibleDeep()?"false":"true")):i&&(i.remove(),t.removePrivate("tooltipElement"))}_makeTooltipElement(t){const e=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",u.setInteractive(i,!1),this._decorateFocusElement(t,i),e.append(i),t.setPrivate("tooltipElement",i),i}_removeTooltipElement(t){if(1==this._a11yD)return;const e=t.getPrivate("tooltipElement");if(e){const t=e.parentElement;t&&t.removeChild(e)}}_invalidateAccessibility(t){if(1==this._a11yD)return;this._focusElementDirty=!0;const e=t.getPrivate("focusElement");t.get("focusable")?e&&(this._decorateFocusElement(t),this._positionFocusElement(t)):e&&this._removeFocusElement(t)}focused(t){return this._focusedSprite===t}documentPointToRoot(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:(t.x-e.left)*s,y:(t.y-e.top)*n}}rootPointToDocument(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:t.x/s+e.left,y:t.y/n+e.top}}addDisposer(t){return this._disposers.push(t),t}_updateComputedStyles(){const t=window.getComputedStyle(this.dom);let e="";k.each(t,((t,i)=>{R.isString(t)&&t.match(/^font/)&&(e+=i)}));const i=e!=this._fontHash;return i&&(this._fontHash=e),i}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(t){t instanceof n.W?t.children.each((t=>{this._invalidateLabelBounds(t)})):t instanceof r.x&&t.markDirtyBounds()}_hasLicense(){for(let t=0;t{if(t.get("verticalScrollbar"))return r=!0,s=t,!1})),r&&(n=document.createElement("div"),t.setPrivate("htmlElementWrapper",n),t.setPrivate("wrapperContainer",s),n.style.position="absolute",n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",s.events.on("boundschanged",(()=>{this._positionHTMLElement(t)}))),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",u.setInteractive(i,t.get("interactive",!1)),t.events.isEnabled("click")&&(u.setInteractive(i,!0),this._disposers.push(u.addEventListener(i,"click",(e=>{const i=this._renderer.getEvent(e);t.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))),this._positionHTMLElement(t),r?(n.append(i),e.append(n)):e.append(i),c.pushOne(this._htmlEnabledContainers,t),i}_positionHTMLElements(){c.each(this._htmlEnabledContainers,(t=>{this._positionHTMLElement(t)}))}_positionHTMLElement(t){const e=t.getPrivate("htmlElementWrapper");if(e){const i=t.getPrivate("wrapperContainer");if(i){const t=i.globalBounds();e.style.clipPath="rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"}}const i=t.getPrivate("htmlElement");if(i){const e=["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"];c.each(e,(e=>{const s=t.get(e);i.style[e]=s?s+"px":""}));const s=["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"];c.each(s,(e=>{const s=t.get(e);s?"fontSize"!=e||R.isString(s)?i.style[e]=s+"":i.style[e]=s+"px":i.style[e]=""}));const n=t.compositeScale()||1,r=t.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";const o=t.compositeOpacity();setTimeout((()=>{i.style.opacity=o+""}),10);const a=t.isVisibleDeep();a&&(i.style.display="block");let h={x:t.x()+t.get("dx",0),y:t.y()+t.get("dy",0)};t.parent&&(h=t.parent.toGlobal(h)),i.style.top=h.y+"px",i.style.left=h.x+"px";const l=t.get("width"),u=t.get("height");let d=0,p=0;if(l&&(d=t.width()),u&&(p=t.height()),!l||!u){i.style.position="fixed",i.style.width="",i.style.height="";const e=i.getBoundingClientRect();i.style.position="absolute",l||(d=e.width),u||(p=e.height);let s=d/n,r=p/n,o=t.get("centerX",0),a=t.get("centerY",0),h=0,c=0,g=0,f=0;o instanceof S.gG?(h=-o.value*s,c=(1-o.value)*s):(h=-o,c=s-o),a instanceof S.gG?(g=-a.value*r,f=(1-a.value)*r):(g=-a,f=r-a),t._localBounds={left:h,right:c,top:g,bottom:f};let _=t._adjustedLocalBounds,m=t._display.getAdjustedBounds(t._localBounds);t._adjustedLocalBounds=m,_.left===m.left&&_.right===m.right&&_.top===m.top&&_.bottom===m.bottom||t.markDirtyBounds()}d>0&&(i.style.minWidth=d+"px"),p>0&&(i.style.minHeight=p+"px"),a&&0!=o||(i.style.display="none");const g=t.get("centerX",0),f=(0,S.hU)(g)?g.percent+"%":g+"px",_=t.get("centerY",0),m=(0,S.hU)(_)?_.percent+"%":_+"px";(g||_)&&(i.style.transform="translate(-"+f+", -"+m+")"+i.style.transform),1!=n&&(i.style.transform+="scale("+n+")"),0!=r&&(i.style.transform+=" rotate("+r+"deg)"),""!=i.style.transform&&(i.style.transformOrigin=f+" "+m)}}_setHTMLContent(t,e){let i=t.getPrivate("htmlElement");i||(i=this._makeHTMLElement(t),this.autoResize||this.resize()),i.innerHTML!=e&&(i.innerHTML=e)}_removeHTMLContent(t){const e=t.getPrivate("htmlElementWrapper"),i=t.getPrivate("htmlElement");e?(this._htmlElementContainer.removeChild(e),t.removePrivate("htmlElement"),t.removePrivate("htmlElementWrapper"),t.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),t.removePrivate("htmlElement"),t.removePrivate("wrapperContainer")),c.remove(this._htmlEnabledContainers,t)}}},3409:function(t,e,i){"use strict";i.d(e,{Q:function(){return o}});var s=i(5769),n=i(3540),r=i(5071);class o{constructor(t,e){if(this._rules={},this._root=t,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(t){const e=new this(t,!0);return e.setupDefaultRules(),e}setupDefaultRules(){}_lookupRules(t){return this._rules[t]}ruleRaw(t,e=[]){let i=this._rules[t];i||(i=this._rules[t]=[]),e.sort(n.qu);const{index:o,found:a}=r.getSortedIndex(i,(t=>{const i=n.qu(t.tags.length,e.length);return 0===i?n.wq(t.tags,e,n.qu):i}));if(a)return i[o].template;{const t=s.YS.new({});return i.splice(o,0,{tags:e,template:t}),t}}rule(t,e=[]){return this.ruleRaw(t,e)}}},5108:function(t,e,i){"use strict";i.d(e,{g:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){const t=this.get("sprite");t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}}n.className="Bullet",n.classNames=s.JH.classNames.concat([n.className])},8054:function(t,e,i){"use strict";i.d(e,{z:function(){return o}});var s=i(3497),n=i(8777),r=i(7652);class o extends n.W{_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",s.c.new(this._root,{themeTags:r.mergeTags(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const t=this._prevSettings.icon,e=this.get("icon");e!==t&&(this._disposeProperty("icon"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.icon=e)}if(this.isDirty("label")){const t=this._prevSettings.label,e=this.get("label");e!==t&&(this._disposeProperty("label"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.label=e)}}}o.className="Button",o.classNames=n.W.classNames.concat([o.className])},1337:function(t,e,i){"use strict";i.d(e,{k:function(){return r}});var s=i(8777),n=i(6245);class r extends s.W{constructor(){super(...arguments),this.chartContainer=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,interactiveChildren:!1})),this.bulletsContainer=s.W.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:n.AQ,height:n.AQ})}}r.className="Chart",r.classNames=s.W.classNames.concat([r.className])},8035:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,Math.abs(this.get("radius",10)))}}n.className="Circle",n.classNames=s.T.classNames.concat([n.className])},9361:function(t,e,i){"use strict";i.d(e,{w:function(){return c},z:function(){return l}});var s=i(7582),n=i(6331),r=i(8777),o=i(9582),a=i(5071),h=i(256);class l extends n.Zr{constructor(t,e,i){super(i),this.dataContext=e,this.component=t,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(t){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,t)}hide(t){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,t)}isHidden(){return!this.get("visible")}}class c extends r.W{constructor(){super(...arguments),this._data=new o.k,this._dataItems=[],this._mainDataItems=this._dataItems,this.valueFields=[],this.fields=["id"],this._valuesDirty=!1,this._dataChanged=!1,this._dataGrouped=!1,this.inited=!1}set data(t){t.incrementRef(),this._data.decrementRef(),this._data=t}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((t=>{const e=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===t.type)a.each(e,(t=>{t.dispose()})),e.length=0,this._onDataClear();else if("push"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.push(i),this.processDataItem(i)}else if("setIndex"===t.type){const i=e[t.index],s=this._makeDataItem(t.newValue);i.bullets&&0==i.bullets.length&&(i.bullets=void 0),h.entries(s).forEach((([t,e])=>{i.get(t)!=e&&i.animate({key:t,to:e,duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})})),i.dataContext=t.newValue}else if("insertIndex"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.splice(t.index,0,i),this.processDataItem(i)}else if("removeIndex"===t.type)e[t.index].dispose(),e.splice(t.index,1);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");{const i=e[t.oldIndex];e.splice(t.oldIndex,1),e.splice(t.newIndex,0,i)}}this._afterDataChange()})))}_postUpdateData(){}updateData(t){let e=0;a.each(t,((t,i)=>{const s=this.dataItems[i];if(s){const e=s.dataContext;e&&h.entries(t).forEach((([t,i])=>{e[t]=i}));const i=this._makeDataItem(e);h.entries(i).forEach((([t,e])=>{var i;if(s.get(t)!=e){s.set(t,e);const n=null===(i=this._valueFieldsF[t])||void 0===i?void 0:i.workingKey;n&&s.set(n,e)}}))}else this.data.push(t);e=i}));for(let t=this.dataItems.length-1;t>e;t--){const e=this.dataItems[t];a.remove(this.dataItems,e),e.dispose()}this._postUpdateData()}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},a.each(this.valueFields,(t=>{this.get(t+"Field")&&(this._valueFields.push(t),this._valueFieldsF[t]={fieldKey:t+"Field",workingKey:t+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},a.each(this.fields,(t=>{this.get(t+"Field")&&(this._fields.push(t),this._fieldsF[t]=t+"Field")})))}get dataItems(){return this._dataItems}processDataItem(t){}_makeDataItem(t){const e={};return this._valueFields&&a.each(this._valueFields,(i=>{const s=this.get(this._valueFieldsF[i].fieldKey);e[i]=t[s],e[this._valueFieldsF[i].workingKey]=e[i]})),this._fields&&a.each(this._fields,(i=>{const s=this.get(this._fieldsF[i]);e[i]=t[s]})),e}makeDataItem(t,e){let i=new l(this,e,t);return this.processDataItem(i),i}pushDataItem(t,e){const i=this.makeDataItem(t,e);return this._mainDataItems.push(i),i}disposeDataItem(t){}showDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!0)}))}hideDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const t="datavalidated";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this._dataChanged=!1}if(this._valuesDirty){const t="valueschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.inited=!0}markDirtyValues(t){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}getDataItemById(t){return a.find(this.dataItems,(e=>e.get("id")==t))}}c.className="Component",c.classNames=r.W.classNames.concat([c.className])},2936:function(t,e,i){"use strict";i.d(e,{p:function(){return r}});var s=i(8054),n=i(7652);class r extends s.z{_afterNew(){super._afterNew(),this.addTag("confirm"),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{const e=n.getEventKey(t);this.get("active")&&"Escape"==e&&this._cancel()}))),this._disposers.push(n.addEventListener(document,"click",(()=>{this._ignoreClick||this._cancel(),this._ignoreClick=!1}))),this.events.on("click",(()=>{this.get("active")||(this._ignoreClick=!0),this._confirm()}))}_cancel(){this.get("active")&&(this.events.dispatch("cancelled",{type:"cancelled",target:this}),this.set("active",!1))}_confirm(){this.get("active")&&(this.events.dispatch("confirmed",{type:"confirmed",target:this}),this.set("active",!1),this.isFocus()&&this.setTimeout((()=>{this.set("active",!1),n.blur()}),10))}_prepareChildren(){super._prepareChildren()}}r.className="ConfirmButton",r.classNames=s.z.classNames.concat([r.className])},8777:function(t,e,i){"use strict";i.d(e,{W:function(){return f}});var s=i(7144),n=i(5071);class r extends s.aV{constructor(t){super(),this._disposed=!1,this._container=t,this._events=this.events.onAll((t=>{if("clear"===t.type)n.each(t.oldValues,(t=>{this._onRemoved(t)}));else if("push"===t.type)this._onInserted(t.newValue);else if("setIndex"===t.type)this._onRemoved(t.oldValue),this._onInserted(t.newValue,t.index);else if("insertIndex"===t.type)this._onInserted(t.newValue,t.index);else if("removeIndex"===t.type)this._onRemoved(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");this._onRemoved(t.value),this._onInserted(t.value,t.newIndex)}}))}_onInserted(t,e){t._setParent(this._container,!0);const i=this._container._childrenDisplay;void 0===e?i.addChild(t._display):i.addChildAt(t._display,e)}_onRemoved(t){this._container._childrenDisplay.removeChild(t._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),n.each(this.values,(t=>{t.dispose()})))}}var o=i(6245),a=i(4596),h=i(7142),l=i(4431),c=i(1706),u=i(6881),d=i(2132),p=i(5040),g=i(7652);class f extends a.j{constructor(){super(...arguments),this._display=this._root._renderer.makeContainer(),this._childrenDisplay=this._root._renderer.makeContainer(),this.children=new r(this),this._percentageSizeChildren=[],this._percentagePositionChildren=[],this._prevWidth=0,this._prevHeight=0,this._contentWidth=0,this._contentHeight=0,this._childrenPrep=!1,this._childrenUpdt=!1}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){n.eachReverse(this.allChildren(),(t=>{t.dispose()})),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_beforeChanged(){this._childrenPrep||this._prepareChildren(),this._childrenUpdt||this._updateChildren(),super._beforeChanged()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each((t=>{t.removePrivate("x"),t.removePrivate("y")}))),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each((t=>{t.markDirtyPosition()})),this.isDirty("maskContent")){const t=this._childrenDisplay;let e=this._contentMask;this.get("maskContent")?e||(e=h.A.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=e,t.addChildAt(e._display,0),t.mask=e._display):e&&(t.removeChild(e._display),t.mask=null,e.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),n.each(this._percentageSizeChildren,(t=>{t._updateSize()})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t._updateSize()})),this.updateBackground()}updateBackground(){const t=this.get("background");let e=this._localBounds;if(e&&!this.isHidden()){let i=e.left,s=e.top,n=e.right-i,r=e.bottom-s,o=this.get("maxWidth"),a=this.get("maxHeight");a&&r>a&&(r=a),o&&n>o&&(n=o);let h=this.width(),l=this.height();t&&(t.setAll({width:n,height:r,x:i,y:s}),this._display.interactive&&(t._display.interactive=!0));const c=this._contentMask;c&&c.setAll({width:h+1,height:l+1});const u=this.get("verticalScrollbar");if(u){u.set("height",l),u.set("x",h-u.width()-u.get("marginRight",0)),u.set("end",u.get("start",0)+l/this._contentHeight);const t=u.get("background");t&&t.setAll({width:u.width(),height:l});let e=!0;this._contentHeight<=l&&(e=!1),u.setPrivate("visible",e)}}}_applyThemes(t=!1){return!!super._applyThemes(t)&&(this.eachChildren((e=>{e._applyThemes(t)})),!0)}_applyState(t){super._applyState(t),this.get("setStateOnChildren")&&this.eachChildren((e=>{e.states.apply(t)}))}_applyStateAnimated(t,e){super._applyStateAnimated(t,e),this.get("setStateOnChildren")&&this.eachChildren((i=>{i.states.applyAnimate(t,e)}))}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let t=this._localBounds;t&&(this._contentWidth=t.right-t.left,this._contentHeight=t.bottom-t.top)}else{let t=this.get("width"),e=this.get("height"),i=this.getPrivate("width"),s=this.getPrivate("height"),n={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),o=!1,a=!1;if((r instanceof l.G||r instanceof u.M)&&(o=!0),r instanceof c.Z&&(a=!0),null==t&&null==i||null==e&&null==s||this.get("verticalScrollbar")){let t=Number.MAX_VALUE,e=t,i=-t,s=t,r=-t;const h=this.get("paddingLeft",0),l=this.get("paddingTop",0),c=this.get("paddingRight",0),u=this.get("paddingBottom",0);this.children.each((t=>{if("absolute"!=t.get("position")&&t.get("isMeasured")){let n=t.adjustedLocalBounds(),h=t.x(),l=t.y(),c=h+n.left,u=h+n.right,d=l+n.top,p=l+n.bottom;o&&(c-=t.get("marginLeft",0),u+=t.get("marginRight",0)),a&&(d-=t.get("marginTop",0),p+=t.get("marginBottom",0)),ci&&(i=u),dr&&(r=p)}})),e==t&&(e=0),i==-t&&(i=0),s==t&&(s=0),r==-t&&(r=0),n.left=e-h,n.top=s-l,n.right=i+c,n.bottom=r+u;const d=this.get("minWidth");p.isNumber(d)&&d>0&&n.right-n.left=d?n.left=n.right-d:n.right=n.left+d);const g=this.get("minHeight");p.isNumber(g)&&g>0&&n.bottom-n.top=g?n.top=n.bottom-g:n.bottom=n.top+g)}this._contentWidth=n.right-n.left,this._contentHeight=n.bottom-n.top,p.isNumber(t)&&(n.left=0,n.right=t),p.isNumber(i)&&(n.left=0,n.right=i),p.isNumber(e)&&(n.top=0,n.bottom=e),p.isNumber(s)&&(n.top=0,n.bottom=s),this._localBounds=n}}_updateBounds(){const t=this.get("layout");t&&t.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){this._childrenPrep=!0;const t=this.innerWidth(),e=this.innerHeight();if(t!=this._prevWidth||e!=this._prevHeight){let i=this.get("layout"),s=!1,r=!1;i&&((i instanceof l.G||i instanceof u.M)&&(s=!0),i instanceof c.Z&&(r=!0)),n.each(this._percentageSizeChildren,(i=>{if(!s){let e=i.get("width");e instanceof o.gG&&i.setPrivate("width",e.value*t)}if(!r){let t=i.get("height");t instanceof o.gG&&i.setPrivate("height",t.value*e)}})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t.markDirtyBounds()})),this._prevWidth=t,this._prevHeight=e,this._sizeDirty=!0,this.updateBackground()}}_updateHTMLContent(){const t=this.get("html","");t&&""!==t?this._root._setHTMLContent(this,(0,d.q)(this,t)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(t){const e=this.get("verticalScrollbar");if(e){let i=t.y(),s=this.innerHeight(),n=t.height(),r=this._contentHeight,o=1-(s-n/2)/r;if(i+.7*n+this._childrenDisplay.y>s||i-.3*n+this._childrenDisplay.y<0){let t=Math.max(0,Math.min(o,(i-n/2)/r));e.animate({key:"start",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")})}}}_updateChildren(){if(this._childrenUpdt=!0,this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){const t=this.get("verticalScrollbar");if(t){t._setParent(this),t.startGrip.setPrivate("visible",!1),t.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",t.width()+t.get("marginRight",0)+t.get("marginLeft",0));let e=this.get("background");e||(e=this.set("background",h.A.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",(e=>{const i=e.originalEvent;if(!g.isLocalEvent(i,this))return;i.preventDefault();let s=i.deltaY/5e3;const n=t.get("start",0),r=t.get("end",1);n+s<=0&&(s=-n),r+s>=1&&(s=1-r),n+s>=0&&r+s<=1&&(t.set("start",n+s),t.set("end",r+s))})),this._disposers.push(this._vsbd0),this._vsbd1=t.events.on("rangechanged",(()=>{let e=this._contentHeight;const i=this._childrenDisplay,s=this._contentMask;i.y=-t.get("start",0)*e,i.markDirtyLayer(),s&&(s._display.y=-i.y,i.mask=s._display)})),this._disposers.push(this._vsbd1),this._display.addChild(t._display)}else{const t=this._prevSettings.verticalScrollbar;t&&(this._display.removeChild(t._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose(),this._childrenDisplay.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0))}}if(this.isDirty("background")){const t=this._prevSettings.background;t&&this._display.removeChild(t._display);const e=this.get("background");e instanceof a.j&&(e.set("isMeasured",!1),e._setParent(this),this._display.addChildAt(e._display,0))}if(this.isDirty("mask")){const t=this.get("mask"),e=this._prevSettings.mask;if(e&&(this._display.removeChild(e._display),e!=t&&e.dispose()),t){const e=t.parent;e&&e.children.removeValue(t),t._setParent(this),this._display.addChildAt(t._display,0),this._childrenDisplay.mask=t._display}}}_processTemplateField(){super._processTemplateField(),this.children.each((t=>{t._processTemplateField()}))}walkChildren(t){this.children.each(((e,i)=>{e instanceof f&&e.walkChildren(t),t(e,i)}))}eachChildren(t){const e=this.get("background");e&&t(e);const i=this.get("verticalScrollbar");i&&t(i);const s=this.get("mask");s&&t(s),this.children.values.forEach((e=>{t(e)}))}allChildren(){const t=[];return this.eachChildren((e=>{t.push(e)})),t}_setDataItem(t){const e=t!==this._dataItem;super._setDataItem(t);const i=this.get("html","");i&&""!==i&&e&&this._root._setHTMLContent(this,(0,d.q)(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}}f.className="Container",f.classNames=a.j.classNames.concat([f.className])},6691:function(t,e,i){"use strict";i.d(e,{Y:function(){return d}});var s=i(962),n=i(8777),r=i(3497),o=i(6245),a=i(1112),h=i(7449),l=i(7652),c=i(5040),u=i(5071);class d extends s._{_afterNew(){super._afterNew();const t=this.children.push(n.W.new(this._root,{html:'',isMeasured:!1}));t.hide(),this.setPrivate("input",t);let e=this.get("background");e?e.set("themeTags",["editablelabel","background"]):e=this.set("background",r.c.new(this._root,{themeTags:["editablelabel","background"]}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();const t=this.get("editOn","click");"none"!=t&&(this._editOnEvents=new h.FV([this.getPrivate("input").events.on(t,(t=>{})),this.events.on(t,(t=>{this.set("active",!0)}))]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){const t=this.get("active",!1);t?this._startEditing():this._stopEditing();const e=this.get("background");e&&e.set("active",t)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){const t=this.getPrivate("input");if(t&&t.getPrivate("htmlElement")){const e=t.getPrivate("htmlElement").querySelector(".am5-editable-label");e&&(this.setPrivate("textarea",e),e.addEventListener("input",(t=>{!1===this.get("multiLine")&&(e.value=e.value.replace(/\n/g," ")),this.set("text",e.value),this._syncStyle()})),e.addEventListener("blur",(t=>this.set("active",!1))),l.supports("keyboardevents")&&this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Escape"==l.getEventKey(t)&&this.set("active",!1)}))),this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Enter"==l.getEventKey(t)&&!1===this.get("multiLine")&&(t.preventDefault(),this.set("active",!1))}))),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._startEditing()}));this._text.set("opacity",0);const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(""==this.get("text","")&&this.set("text"," "),t.show(0),this.setTimeout((()=>{this._syncStyle(),e.focus()}),100))}_stopEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._stopEditing()}));const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(this.set("text",e.value),t.hide(0),this._text.set("opacity",1))}_syncStyle(){const t=this.getPrivate("input"),e=this.getPrivate("textarea"),i=t.getPrivate("htmlElement");if(e&&i){const t=window.getComputedStyle(e);u.each(t,(t=>{e.style[t]="initial"})),e.style.color=this.get("fill",(0,a.$_)(0)).toCSS(this.get("fillOpacity",1)),e.style.backgroundColor="rgba(0, 0, 0, 0)",e.style.border="none",e.style.outline="none",e.style.padding="0",e.wrap="off",e.style.resize="none",e.style.overflow="hidden";const s=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);s>0?e.style.maxWidth=s+"px":e.style.minWidth="",e.style.height="auto",e.style.minHeight=e.scrollHeight+"px",this.get("width")&&(e.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",e.style.minWidth="");const n=this.get("lineHeight");n?n instanceof o.gG?e.style.lineHeight=n.value+"":c.isNumber(n)&&(e.style.lineHeight=n+""):e.style.lineHeight="1.2";let r=this.get("fontFamily");r||(r=getComputedStyle(i,"font-family").getPropertyValue("font-family")),e.style.fontFamily=r;let h=this.get("fontSize");h?c.isNumber(h)&&(h+="px"):h=getComputedStyle(i,"font-size").getPropertyValue("font-size"),e.style.fontSize=h;let l=this.get("fontWeight");l||(l=getComputedStyle(i,"font-weight").getPropertyValue("font-weight")),e.style.fontWeight=l;let d=this.get("fontStyle");d||(d=getComputedStyle(i,"font-style").getPropertyValue("font-style")),e.style.fontStyle=d;const p=this.get("oversizedBehavior");e.style.whiteSpace="wrap"==p?"pre-wrap":"nowrap",this._root.events.on("frameended",(()=>{""==e.style.minWidth&&(e.style.minWidth=e.scrollWidth+20+"px");const t=this.get("textAlign","start");"center"==t?(e.style.textAlign="center",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-50%)")):"end"==t?(e.style.textAlign="right",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-100%)")):e.style.textAlign=t}))}}_syncText(){const t=this.getPrivate("textarea");let e=this.get("text","");" "==e&&(e=""),t&&(t.value=e)}}d.className="EditableLabel",d.classNames=s._.classNames.concat([d.className])},2433:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radiusX")||this.isDirty("radiusY")||this.isDirty("rotation"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawEllipse(0,0,Math.abs(this.get("radiusX")),Math.abs(this.get("radiusY")))}}n.className="Ellipse",n.classNames=s.T.classNames.concat([n.className])},1479:function(t,e,i){"use strict";i.d(e,{T:function(){return l},u:function(){return h}});var s=i(4429),n=i(4596),r=i(4680),o=i(5040),a=i(5071);const h=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"];class l extends n.j{constructor(){super(...arguments),this._display=this._root._renderer.makeGraphics(),this._clear=!1}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const t=this.get("fillGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("fill")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("fill")}))))}}if(this.isDirty("strokeGradient")){const t=this.get("strokeGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("stroke")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("stroke")}))))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let t=this.get("strokeDasharray");o.isNumber(t)&&(t=t<.5?[0]:[t]),this._display.setLineDash(t);const e=this.get("strokeDashoffset");e&&this._display.setLineDashOffset(e);const i=this.get("blendMode",r.b.NORMAL);this._display.blendMode=i;const s=this.get("draw");s&&"function"==typeof s&&s(this._display,this);const n=this.get("svgPath");null!=n&&this._display.svgPath(n)}}_afterChanged(){if(super._afterChanged(),this._clear){const t=this.get("fill"),e=this.get("fillGradient"),i=this.get("fillPattern"),n=this.get("fillOpacity"),r=this.get("stroke"),o=this.get("strokeGradient"),h=this.get("strokePattern"),l=this.get("shadowColor"),c=this.get("shadowBlur"),u=this.get("shadowOffsetX"),d=this.get("shadowOffsetY"),p=this.get("shadowOpacity");if(l&&(c||u||d)&&this._display.shadow(l,c,u,d,p),t&&!e&&(this._display.beginFill(t,n),this._display.endFill()),e){if(t){const i=e.get("stops",[]);i.length&&a.each(i,(e=>{e.color&&!e.colorInherited||!t||(e.color=t,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=n,e.opacityInherited=!0)}))}const i=e.getFill(this);i&&(this._display.beginFill(i,n),this._display.endFill())}if(i){const t=i.pattern;t&&(this._display.beginFill(t,n),this._display.endFill(),i instanceof s.v&&i.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}if(r||o||h){const t=this.get("strokeOpacity");let e=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(e/=this.get("scale",1)),this.get("crisp")&&(e/=this._root._renderer.resolution);const i=this.get("lineJoin"),n=this.get("lineCap");if(r&&!o&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke()),o){const s=o.get("stops",[]);s.length&&a.each(s,(e=>{e.color&&!e.colorInherited||!r||(e.color=r,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=t,e.opacityInherited=!0)}));const h=o.getFill(this);h&&(this._display.lineStyle(e,h,t,i,n),this._display.endStroke())}if(h){let r=h.pattern;r&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke(),h instanceof s.v&&h.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}l.className="Graphics",l.classNames=n.j.classNames.concat([l.className])},6881:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var s=i(2010),n=i(5071),r=i(751);class o extends s.A{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(t){let e=t.get("paddingLeft",0),i=t.get("paddingRight",0),n=t.get("paddingTop",0),o=t.maxWidth()-e-i,a=o,h=1;(0,s.j)(t,(t=>{if(t.get("visible")&&t.getPrivate("visible")&&!t.get("forceHidden")&&"absolute"!=t.get("position")){let e=t.width();eh&&(h=e)}})),a=r.fitToRange(a,1,o),h=r.fitToRange(h,1,o);let l=1;l=this.get("fixedWidthGrid")?o/h:o/a,l=Math.max(1,Math.floor(l)),l=Math.min(this.get("maxColumns",Number.MAX_VALUE),l);let c=this.getColumnWidths(t,l,h,o),u=n,d=0,p=0;l=c.length;let g=e;(0,s.j)(t,(t=>{if("relative"==t.get("position")&&t.isVisible()){const i=t.get("marginTop",0),s=t.get("marginBottom",0);let n=t.adjustedLocalBounds(),r=t.get("marginLeft",0),o=t.get("marginRight",0),a=g+r-n.left,h=u+i-n.top;t.setPrivate("x",a),t.setPrivate("y",h),g+=c[d]+o,p=Math.max(p,t.height()+i+s),d++,d>=l&&(d=0,g=e,u+=p,p=0)}}))}getColumnWidths(t,e,i,r){let o=0,a=[],h=0;return(0,s.j)(t,(s=>{let n=s.adjustedLocalBounds();"absolute"!=s.get("position")&&s.isVisible()&&(this.get("fixedWidthGrid")?a[h]=i:a[h]=Math.max(0|a[h],n.right-n.left+s.get("marginLeft",0)+s.get("marginRight",0)),h{o+=t})),o>r?e>2?(e-=1,this.getColumnWidths(t,e,i,r)):[r]:a}}o.className="GridLayout",o.classNames=s.A.classNames.concat([o.className])},4431:function(t,e,i){"use strict";i.d(e,{G:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingLeft",0),i=t.innerWidth(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minWidth",t.getPrivate("minWidth",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.width()),i-=e+t.get("marginLeft",0)+t.get("marginRight",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginLeft",0)-t.get("marginRight",0),n=t.get("minWidth",t.getPrivate("minWidth",-1/0)),r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("width",s)}else t._prevSettings.width instanceof r.gG&&t.setPrivate("width",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginLeft",0),s=t.get("marginRight",0),n=t.get("maxWidth"),r=e.left,o=e.right;n&&o-r>n&&(o=r+n);let h=a+i-r;t.setPrivate("x",h),a=h+o+s}else t.setPrivate("x",void 0)}))}}o.className="HorizontalLayout",o.classNames=s.A.classNames.concat([o.className])},962:function(t,e,i){"use strict";i.d(e,{_:function(){return h}});var s=i(2036),n=i(6245),r=i(8777),o=i(5071),a=i(5040);class h extends r.W{constructor(){super(...arguments),this._textKeys=["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),o.each(this._textKeys,(t=>{const e=this.get(t);null!=e&&this._text.set(t,e)})),""!==this.get("html","")&&this._text.set("text",""),this.onPrivate("maxWidth",(()=>{this._setMaxDimentions()})),this.onPrivate("maxHeight",(()=>{this._setMaxDimentions()}))}_makeText(){this._text=this.children.push(s.x.new(this._root,{}))}_updateChildren(){super._updateChildren();const t=this._text;if(o.each(this._textKeys,(t=>{this._text.set(t,this.get(t))})),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),""!==this.get("html","")?t.set("text",""):(t.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){const e=this.get("textAlign");let i;null!=this.get("width")?i="right"==e?n.AQ:"center"==e?n.CI:0:"left"==e||"start"==e?i=this.get("paddingLeft",0):"right"!=e&&"end"!=e||(i=-this.get("paddingRight",0)),t.set("x",i)}const e=this.get("background");e&&e.setPrivate("visible",t._display.textVisible)}_maybeUpdateHTMLColor(){const t=this.getPrivate("htmlElement");t&&this.get("fill")&&(t.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){const t=this.get("rotation"),e=90==t||270==t||-90==t,i=this._text,s=this.get("maxWidth",this.getPrivate("maxWidth",1/0));a.isNumber(s)?i.set(e?"maxHeight":"maxWidth",s-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(e?"maxHeight":"maxWidth",void 0);const n=this.get("maxHeight",this.getPrivate("maxHeight",1/0));a.isNumber(n)?i.set(e?"maxWidth":"maxHeight",n-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(e?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",(()=>{i.markDirtyBounds()}))}_setDataItem(t){super._setDataItem(t),this._markDirtyKey("text"),this._markDirtyKey("html");const e=this._text;e.get("populateText")&&e.markDirtyText();const i=this.get("html");i&&""!==i&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}}h.className="Label",h.classNames=r.W.classNames.concat([h.className])},2010:function(t,e,i){"use strict";i.d(e,{A:function(){return r},j:function(){return n}});var s=i(6331);function n(t,e){t.get("reverseChildren",!1)?t.children.eachReverse(e):t.children.each(e)}class r extends s.JH{}r.className="Layout",r.classNames=s.JH.classNames.concat([r.className])},3105:function(t,e,i){"use strict";i.d(e,{D:function(){return c}});var s=i(3399),n=i(8777),r=i(962),o=i(3497),a=i(5769),h=i(7144),l=i(7652);class c extends s.F{constructor(){super(...arguments),this.itemContainers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:o.c.new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template])))),this.markers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template])))),this.labels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template])))),this.valueLabels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template])))),this.markerRectangles=this.addDisposer(new h.o(a.YS.new({}),(()=>o.c._new(this._root,{themeTags:l.mergeTags(this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template]))))}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(t){const e=this.children.push(this.itemContainers.make());return e._setDataItem(t),this.itemContainers.push(e),e.states.create("disabled",{}),e}makeMarker(){const t=this.markers.make();return this.markers.push(t),t.states.create("disabled",{}),t}makeLabel(){const t=this.labels.make();return t.states.create("disabled",{}),t}makeValueLabel(){const t=this.valueLabels.make();return t.states.create("disabled",{}),t}makeMarkerRectangle(){const t=this.markerRectangles.make();return t.states.create("disabled",{}),t}processDataItem(t){super.processDataItem(t);const e=this.makeItemContainer(t),i=this.get("nameField"),s=this.get("fillField"),n=this.get("strokeField");if(e){const r=this.get("clickTarget","itemContainer"),o=t.dataContext;o&&o.set&&o.set("legendDataItem",t),e._setDataItem(t),t.set("itemContainer",e);const a=this.makeMarker();if(a){e.children.push(a),a._setDataItem(t),t.set("marker",a);const i=this.get("useDefaultMarker"),r=a.children.push(this.makeMarkerRectangle());let h=t.get("fill"),l=t.get("stroke");t.set("markerRectangle",r),o&&o.get&&(h=o.get(s,h),l=o.get(n,l)),l||(l=h),i?o.on&&(o.on(s,(()=>{r.set("fill",o.get(s))})),o.on(n,(()=>{r.set("stroke",o.get(n))}))):o&&o.createLegendMarker&&o.createLegendMarker(),r.setAll({fill:h,stroke:l});const c=o.component;c&&c.updateLegendMarker&&c.updateLegendMarker(o)}const h=this.makeLabel();if(h){e.children.push(h),h._setDataItem(t),t.set("label",h),h.text.on("text",(()=>{e.setRaw("ariaLabel",h.text._getText()+("none"!==this.get("clickTarget")?"; "+this._t("Press ENTER to toggle"):"")),e.markDirtyAccessibility()})),o&&o.get&&t.set("name",o.get(i));let s=t.get("name");s&&h.set("text",s)}const l=this.makeValueLabel();if(l&&(e.children.push(l),l._setDataItem(t),t.set("valueLabel",l)),o&&o.show&&(o.on("visible",(t=>{e.set("disabled",!t)})),o.get("visible")||e.set("disabled",!0),"none"!=r)){let i=e;"marker"==r&&(i=a),this._addClickEvents(i,o,t)}this.children.values.sort(((t,e)=>{const i=t.dataItem.dataContext,s=e.dataItem.dataContext;if(i&&s){const t=this.data.indexOf(i),e=this.data.indexOf(s);if(t>e)return 1;if(t{const t=e.component;t&&t.hoverDataItem&&t.hoverDataItem(e)})),t.events.on("pointerout",(()=>{const t=e.component;t&&t.hoverDataItem&&t.unhoverDataItem(e)})),t.events.on("click",(()=>{const s=i.get("label").text._getText();e.show&&e.isHidden&&(e.isHidden()||!1===e.get("visible"))?(e.show(),t.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,s))):e.hide&&(e.hide(),t.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,s)))}))}disposeDataItem(t){super.disposeDataItem(t);const e=t.dataContext;e&&e.get&&e.get("legendDataItem")==t&&e.set("legendDataItem",void 0);let i=t.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let s=t.get("marker");s&&(this.markers.removeValue(s),s.dispose());let n=t.get("markerRectangle");n&&(this.markerRectangles.removeValue(n),n.dispose());let r=t.get("label");r&&(this.labels.removeValue(r),r.dispose());let o=t.get("valueLabel");o&&(this.valueLabels.removeValue(o),o.dispose())}}c.className="Legend",c.classNames=s.F.classNames.concat([c.className])},2077:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var s=i(1479);function n(t,e){for(let i=0,s=e.length;i0){let e=s[0];if(e.length>0){let i=e[0];t.moveTo(i.x,i.y);for(let e=0,i=s.length;e0){let e=t[0];this._display.moveTo(e.x,e.y),n(this._display,[[t]])}else if(e)n(this._display,e);else if(!this.get("draw")){let t=this.width(),e=this.height();this._display.moveTo(0,0),this._display.lineTo(t,e)}}}}o.className="Line",o.classNames=s.T.classNames.concat([o.className])},5812:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var s=i(8777),n=i(941),r=i(6387),o=i(751);class a extends s.W{constructor(){super(...arguments),this.line=this.children.push(r.P.new(this._root,{themeTags:["line"]})),this.hitLine=this.children.push(r.P.new(this._root,{themeTags:["hit"]})),this.startArrow=this.children.push(n.C.new(this._root,{themeTags:["start","arrow"]})),this.endArrow=this.children.push(n.C.new(this._root,{themeTags:["end","arrow"]}))}_afterNew(){this.addTag("link"),super._afterNew()}_updateChildren(){if(super._updateChildren(),this.isDirty("points")){let t=r.P.makeOrthogonal(this.get("points",[]));this.line.set("points",t),this.hitLine.set("points",t);const e=this.startArrow,i=this.endArrow,s=t.length;if(s>1){const[n,r]=t;e.setAll({x:n.x,y:n.y,rotation:o.getAngle(n,r)-90});const a=t[s-1],h=t[s-2];i.setAll({x:a.x,y:a.y,rotation:o.getAngle(h,a)+90})}else if(1===s){const[s]=t;e.setAll({x:s.x,y:s.y,rotation:0}),i.setAll({x:s.x,y:s.y,rotation:0})}}}}a.className="Link",a.classNames=s.W.classNames.concat([a.className])},8289:function(t,e,i){"use strict";i.d(e,{G:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){return function(e){return new s(e,t)}}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(s+a,n+a*e,r-a,o-a*i,r,o)}},5892:function(t,e,i){"use strict";i.d(e,{$:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){[t,e]=[e,t];let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){function e(e){return new s(e,t)}return e.tension=function(t){return n(+t)},e}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(n+a*e,s+a,o-a*i,r-a,o,r)}},7049:function(t,e,i){"use strict";i.d(e,{l:function(){return h}});var s=i(8777),n=i(6691),r=i(7142),o=i(941),a=i(1112);class h extends s.W{constructor(){super(...arguments),this.label=this.children.push(n.Y.new(this._root,{})),this.buttonsContainer=this.children.push(s.W.new(this._root,{themeTags:["buttons"]})),this.upButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["upbutton"]})),this.downButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["downbutton"]}))}_afterNew(){this.addTag("numericstepper"),this.set("layout",this._root.horizontalLayout),this.label.adapters.add("text",(t=>(t&&t.replace(/\D/g,""),""===t&&(t="0"),t))),this.set("background",r.A.new(this._root,{fillOpacity:0,fill:(0,a.$_)(16777215)})),this.buttonsContainer.states.create("hidden",{opacity:0,visible:!0}),this.events.on("pointerover",(()=>{this.buttonsContainer.set("active",!0)})),this.events.on("pointerout",(()=>{this.buttonsContainer.set("active",!1)})),this.label.on("text",(t=>{if(t){const e=parseFloat(t);isNaN(e)||this.set("value",e)}})),this.upButton.events.on("click",(()=>{this.set("value",this.get("value",0)+1)})),this.downButton.events.on("click",(()=>{this.set("value",Math.max(0,this.get("value",0)-1))})),super._afterNew()}_updateChildren(){super._updateChildren();const t=this.get("value",0),e=this.label;if(this.isDirty("value")&&e.set("text",t.toString()),this.isDirty("disabled")){const t=this.get("disabled",!1);this.set("interactive",!t),this.upButton.set("interactive",!t),this.downButton.set("interactive",!t),t?(this.label.set("editOn","none"),this.buttonsContainer.hide(0)):(this.label.set("editOn","click"),this.buttonsContainer.show(0))}}}h.className="NumericStepper",h.classNames=s.W.classNames.concat([h.className])},6387:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),this.isDirty("points")&&(this._clear=!0)}static makeOrthogonal(t){if(t.length>1){const e=[];for(let i=0;i0&&o&&l){if(h){s=Math.min(s,Math.abs(r.x-o.x)/2,Math.abs(r.y-n.y)/2);const e=Math.sign(r.y-n.y);t.lineTo(r.x,r.y-s*e);const i=o.x{this._display.image=e,this._updateSize(),!i.isDisposed()&&i.isEnabled("loaded")&&i.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{!i.isDisposed()&&i.isEnabled("loaderror")&&i.dispatch("loaderror",{type:"loaderror",target:this})}))}}_updateSize(){super._updateSize();const t=this._display.image;if(t){let e=this.getPrivate("width",this.get("width")),i=this.getPrivate("height",this.get("height"));const s=t.width&&t.height?t.width/t.height:0;n.isNumber(e)&&n.isNumber(i)?(this._display.width=e,this._display.height=i):n.isNumber(e)&&s?i=e/s:n.isNumber(i)&&s?e=i*s:(e=t.width,i=t.height),n.isNumber(e)&&(this._display.width=e),n.isNumber(i)&&(this._display.height=i),this.markDirtyBounds(),this.markDirty()}}}r.className="Picture",r.classNames=s.j.classNames.concat([r.className])},8931:function(t,e,i){"use strict";i.d(e,{i:function(){return r}});var s=i(1479),n=i(751);class r extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let t=this.width(),e=this.height();if(t>0&&e>0){let i=this.get("cornerRadius",8);i=n.fitToRange(i,0,Math.min(t/2,e/2));let s=this.get("pointerX",0),r=this.get("pointerY",0),o=this.get("pointerBaseWidth",15)/2,a=0,h=0,l=0,c=(s-a)*(e-h)-(r-h)*(t-a),u=(s-l)*(0-e)-(r-e)*(t-l);const d=this._display;if(d.moveTo(i,0),c>0&&u>0){let e=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,-1/0,0),d.lineTo(e-o,0),d.lineTo(s,r),d.lineTo(e+o,0)}if(d.lineTo(t-i,0),d.arcTo(t,0,t,i,i),c>0&&u<0){let a=Math.round(n.fitToRange(r,i+o,e-o-i));s=n.fitToRange(s,t,1/0),d.lineTo(t,i),d.lineTo(t,Math.max(a-o,i)),d.lineTo(s,r),d.lineTo(t,a+o)}if(d.lineTo(t,e-i),d.arcTo(t,e,t-i,e,i),c<0&&u<0){let a=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,e,1/0),d.lineTo(t-i,e),d.lineTo(a+o,e),d.lineTo(s,r),d.lineTo(a-o,e)}if(d.lineTo(i,e),d.arcTo(0,e,0,e-i,i),c<0&&u>0){let t=Math.round(n.fitToRange(r,i+o,e-i-o));s=n.fitToRange(s,-1/0,0),d.lineTo(0,e-i),d.lineTo(0,t+o),d.lineTo(s,r),d.lineTo(0,Math.max(t-o,i))}d.lineTo(0,i),d.arcTo(0,0,i,0,i),d.closePath()}}}}r.className="PointedRectangle",r.classNames=s.T.classNames.concat([r.className])},7770:function(t,e,i){"use strict";i.d(e,{m:function(){return r}});var s=i(1479),n=i(5071);class r extends s.T{_beforeChanged(){if(super._beforeChanged(),this.isDirty("coordinates")){const t=[],e=this.get("coordinates");e&&n.each(e,(e=>{t.push({x:e[0],y:e[1]})})),this.set("points",t)}if(this.isPrivateDirty("points")&&(this._clear=!0),this.isDirty("points")){this._clear=!0;const t=this.get("points"),e=this._prevSettings.points;if(e){if(t){let i=n.copy(t),s=n.copy(e),r=i.length,o=s.length;if(r>o){let t=n.copy(i);for(let e=0;er){let t=n.copy(s);for(let e=0;e{this._markDirtyPrivateKey("morphProgress")}))}}else this.setPrivateRaw("previousPoints",t),this.setPrivateRaw("points",t);let i=1/0,s=-1/0,r=1/0,o=-1/0;if(t)for(let e=1,n=t.length;e{this.label.markDirtyKey("text")}))}}}l.className="ProgressPie",l.classNames=n.W.classNames.concat([l.className])},815:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(6245),n=i(962),r=i(4244),o=i(751),a=i(7652);class h extends n._{constructor(){super(...arguments),this._flipped=!1}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(r.f.new(this._root,{}))}baseRadius(){const t=this.getPrivate("radius",0),e=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return e+a.relativeToValue(i,t-e)}radius(){const t=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(t?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){const t=this.get("textType","adjusted"),e=this.get("inside",!1),i=this.get("orientation");let n=o.normalizeAngle(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",e);const r=o.sin(n),a=o.cos(n);let h=this.baseRadius(),l=this.radius();if(this._display.angle=0,"circular"==t)this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",l);else{0==h&&(n=0,l=0);let e=l*a,o=l*r;"radial"==t?(this.setRaw("x",e),this.setRaw("y",o),n<90||n>270||"auto"!=i?(this._display.angle=n,this._flipped=!1):(this._display.angle=n+180,this._flipped=!0),this._dirty.rotation=!1):"adjusted"==t?(this.setRaw("centerX",s.CI),this.setRaw("centerY",s.CI),this.setRaw("x",e),this.setRaw("y",o)):"regular"==t&&(this.setRaw("x",e),this.setRaw("y",o))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){const t=this.get("textType","regular"),e=this.get("inside",!1);let i=0,n=0,r=this.get("labelAngle",0),a=this.localBounds(),h=a.right-a.left,l=a.bottom-a.top;if("radial"==t){if(this._flipped){let t=this.get("centerX");t instanceof s.gG&&(h*=1-2*t.value),i=h*o.cos(r),n=h*o.sin(r)}}else e||"adjusted"!=t||(i=h/2*o.cos(r),n=l/2*o.sin(r));this.setRaw("dx",i),this.setRaw("dy",n),super._updatePosition()}get text(){return this._text}}h.className="RadialLabel",h.classNames=n._.classNames.concat([h.className])},4244:function(t,e,i){"use strict";i.d(e,{f:function(){return r}});var s=i(2036),n=i(751);class r extends s.x{constructor(){super(...arguments),this._display=this._root._renderer.makeRadialText("",this.textStyle)}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*n.RADIANS,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}r.className="RadialText",r.classNames=s.x.classNames.concat([r.className])},7142:function(t,e,i){"use strict";i.d(e,{A:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let t=this.width(),e=this.height(),i=0,s=0,n=t/Math.abs(t),r=e/Math.abs(e);if(this.get("containStroke",!1)){const o=this.get("strokeWidth",0);t-=o*n,e-=o*r,i+=o/2*n,s+=o/2*r}this._display.drawRect(i,s,t,e)}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Rectangle",n.classNames=s.T.classNames.concat([n.className])},3497:function(t,e,i){"use strict";i.d(e,{c:function(){return a}});var s=i(5040),n=i(751),r=i(7652),o=i(7142);class a extends o.A{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let t=this.width(),e=this.height(),i=t/Math.abs(t),o=e/Math.abs(e),a=0,h=0;const l=this.get("strokeWidth",0);this.get("containStroke",!1)&&(t-=i*l,e-=o*l,a+=i*l/2,h+=o*l/2);let c=t,u=e;if(s.isNumber(c)&&s.isNumber(u)){let t=Math.min(c,u)/2,e=r.relativeToValue(this.get("cornerRadiusTL",8),t),s=r.relativeToValue(this.get("cornerRadiusTR",8),t),l=r.relativeToValue(this.get("cornerRadiusBR",8),t),d=r.relativeToValue(this.get("cornerRadiusBL",8),t),p=Math.min(Math.abs(c/2),Math.abs(u/2));e=n.fitToRange(e,0,p),s=n.fitToRange(s,0,p),l=n.fitToRange(l,0,p),d=n.fitToRange(d,0,p);const g=this._display;g.moveTo(a+e*i,h),g.lineTo(a+c-s*i,h),s>0&&g.arcTo(a+c,h,a+c,h+s*o,s),g.lineTo(a+c,h+u-l*o),l>0&&g.arcTo(a+c,h+u,a+c-l*i,h+u,l),g.lineTo(a+d*i,h+u),d>0&&g.arcTo(a,h+u,a,h+u-d*o,d),g.lineTo(a,h+e*o),e>0&&g.arcTo(a,h,a+e*i,h,e),g.closePath()}}}a.className="RoundedRectangle",a.classNames=o.A.classNames.concat([a.className])},6001:function(t,e,i){"use strict";i.d(e,{L:function(){return l}});var s=i(3497),n=i(8777),r=i(1479),o=i(8054),a=i(5040),h=i(7652);class l extends n.W{constructor(){super(...arguments),this.thumb=this._makeThumb(),this.startGrip=this._makeButton(),this.endGrip=this._makeButton(),this._thumbBusy=!1,this._startDown=!1,this._endDown=!1,this._thumbDown=!1}_addOrientationClass(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=s.c.new(this._root,{themeTags:h.mergeTags(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(o.z.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:r.T.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(s.c.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(t){t&&this._disposers.push(t.events.on("stopped",(()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1})))}_afterNew(){this._addOrientationClass(),super._afterNew();const t=this.startGrip,e=this.endGrip,i=this.thumb,s=this.get("background");s&&this._disposers.push(s.events.on("click",(t=>{this.setPrivateRaw("isBusy",!0);const e=this._display.toLocal(t.point),s=this.width(),n=this.height(),r=this.get("orientation");let o,a,h;o="vertical"==r?(e.y-i.height()/2)/n:(e.x-i.width()/2)/s,"vertical"==r?(a=o*n,h="y"):(a=o*s,h="x");const l=this.get("animationDuration",0);l>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:h,to:a,duration:l,easing:this.get("animationEasing")}))):(this.thumb.set(h,a),this._root.events.once("frameended",(()=>{this.setPrivateRaw("isBusy",!1)})))}))),this._disposers.push(i.events.on("dblclick",(t=>{if(!h.isLocalEvent(t.originalEvent,this))return;const e=this.get("animationDuration",0),i=this.get("animationEasing");this.animate({key:"start",to:0,duration:e,easing:i}),this.animate({key:"end",to:1,duration:e,easing:i})}))),this._disposers.push(t.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"}))),this._disposers.push(e.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"}))),this._disposers.push(i.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0}))),this._disposers.push(t.events.on("globalpointerup",(()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1}))),this._disposers.push(e.events.on("globalpointerup",(()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1}))),this._disposers.push(i.events.on("globalpointerup",(()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1}))),this._disposers.push(t.on("x",(()=>{this._updateThumb()}))),this._disposers.push(e.on("x",(()=>{this._updateThumb()}))),this._disposers.push(t.on("y",(()=>{this._updateThumb()}))),this._disposers.push(e.on("y",(()=>{this._updateThumb()}))),this._disposers.push(i.events.on("positionchanged",(()=>{this._updateGripsByThumb()}))),"vertical"==this.get("orientation")?(t.set("x",0),e.set("x",0),this._disposers.push(i.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()-i.height()),0)))),this._disposers.push(i.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("x",(t=>this.width()/2))),this._disposers.push(e.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0)))),this._disposers.push(e.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0))))):(t.set("y",0),e.set("y",0),this._disposers.push(i.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()-i.width()),0)))),this._disposers.push(i.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("y",(t=>this.height()/2))),this._disposers.push(e.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))),this._disposers.push(e.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){const t="rangechanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){const t="released";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}updateGrips(){const t=this.startGrip,e=this.endGrip,i=this.get("orientation"),s=this.height(),n=this.width();"vertical"==i?(t.set("y",s*this.get("start",0)),e.set("y",s*this.get("end",1))):(t.set("x",n*this.get("start",0)),e.set("x",n*this.get("end",1)));const r=this.getPrivate("positionTextFunction"),o=Math.round(100*this.get("start",0)),a=Math.round(100*this.get("end",0));let h,l;r?(h=r.call(this,this.get("start",0)),l=r.call(this,this.get("end",0))):(h=o+"%",l=a+"%"),t.set("ariaLabel",this._t("From %1",void 0,h)),t.set("ariaValueNow",""+o),t.set("ariaValueText",o+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100"),e.set("ariaLabel",this._t("To %1",void 0,l)),e.set("ariaValueNow",""+a),e.set("ariaValueText",a+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100")}_updateThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip,s=this.height(),n=this.width();let r=e.x(),o=i.x(),h=e.y(),l=i.y(),c=0,u=1;"vertical"==this.get("orientation")?a.isNumber(h)&&a.isNumber(l)&&(this._thumbBusy||t.isDragging()||(t.set("height",l-h),t.set("y",h)),c=h/s,u=l/s):a.isNumber(r)&&a.isNumber(o)&&(this._thumbBusy||t.isDragging()||(t.set("width",o-r),t.set("x",r)),c=r/n,u=o/n),!this.getPrivate("isBusy")||this.get("start")==c&&this.get("end")==u||(this.set("start",c),this.set("end",u));const d=this.getPrivate("positionTextFunction"),p=Math.round(100*this.get("start",0)),g=Math.round(100*this.get("end",0));let f,_;d?(f=d.call(this,this.get("start",0)),_=d.call(this,this.get("end",0))):(f=p+"%",_=g+"%"),t.set("ariaLabel",this._t("From %1 to %2",void 0,f,_)),t.set("ariaValueNow",""+p),t.set("ariaValueText",p+"%")}_updateGripsByThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip;if("vertical"==this.get("orientation")){const s=t.height();e.set("y",t.y()),i.set("y",t.y()+s)}else{const s=t.width();e.set("x",t.x()),i.set("x",t.x()+s)}}}l.className="Scrollbar",l.classNames=n.W.classNames.concat([l.className])},5829:function(t,e,i){"use strict";i.d(e,{j:function(){return h}});var s=i(1337),n=i(8777),r=i(7144),o=i(6245),a=i(5071);class h extends s.k{constructor(){super(...arguments),this.seriesContainer=n.W.new(this._root,{width:o.AQ,height:o.AQ,isMeasured:!1}),this.series=new r.dn}_afterNew(){super._afterNew(),this._disposers.push(this.series);const t=this.seriesContainer.children;this._disposers.push(this.series.events.onAll((e=>{if("clear"===e.type){a.each(e.oldValues,(t=>{this._removeSeries(t)}));const t=this.get("colors");t&&t.reset();const i=this.get("patterns");i&&i.reset()}else if("push"===e.type)t.moveValue(e.newValue),this._processSeries(e.newValue);else if("setIndex"===e.type)t.setIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("insertIndex"===e.type)t.insertIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("removeIndex"===e.type)this._removeSeries(e.oldValue);else if("moveIndex"===e.type)t.moveValue(e.value,e.newIndex),this._processSeries(e.value);else{if("swap"!==e.type)throw new Error("Unknown IListEvent type");{const i=e.a,s=e.b,n=this.series.indexOf(i),r=this.series.indexOf(s);t.moveValue(i,r),t.moveValue(s,n),this.series.each((t=>{this._processSeries(t),t.markDirtyValues()}))}}})))}_processSeries(t){t.chart=this,t._placeBulletsContainer(this)}_removeSeries(t){t._handleRemoved(),t.isDisposed()||(this.seriesContainer.children.removeValue(t),t._removeBulletsContainer())}}h.className="SerialChart",h.classNames=s.k.classNames.concat([h.className])},3399:function(t,e,i){"use strict";i.d(e,{F:function(){return g}});var s=i(7582),n=i(9361),r=i(7144),o=i(1112),a=i(6490),h=i(6245),l=i(8777),c=i(962),u=i(5071),d=i(5040),p=i(1926);class g extends n.w{constructor(){super(...arguments),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1,this._dataProcessed=!1,this._baseSeriesDirty=!1,this.bullets=new r.aV,this.bulletsContainer=l.W.new(this._root,{width:h.AQ,height:h.AQ,position:"absolute"})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll((()=>{this._handleBullets(this.dataItems)})))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let t=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),t)}endIndex(){let t=this.dataItems.length;return Math.max(0,Math.min(this.getPrivate("endIndex",t),t))}_handleBullets(t){u.each(t,(t=>{const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)})),this.markDirtyValues()}_makeBullets(t){this._shouldMakeBullet(t)&&(t.bullets=[],this.bullets.each((e=>{this._makeBullet(t,e)})))}_shouldMakeBullet(t){return!0}_makeBullet(t,e,i){const s=e(this._root,this,t);return s&&(s._index=i,this._makeBulletReal(t,s)),s}_makeBulletReal(t,e){let i=e.get("sprite");i&&(i._setDataItem(t),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),e.series=this,t.bullets.push(e)}addBullet(t,e){t.bullets||(t.bullets=[]),e&&this._makeBulletReal(t,e)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();const t=this.dataItems,e=t.length;let i=this.startIndex(),s=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const t=this.getPrivate("baseValueSeries");t&&this._disposers.push(t.onPrivate("startIndex",(()=>{this._baseSeriesDirty=!0,this.markDirtyValues()})))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,e),this._aggregatesCalculated=!0,0!=i&&(this._psi=void 0))),this._psi==i&&this._pei==s&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===i&&s===e&&this._aggregatesCalculated||this._calculateAggregates(i,s),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let t=this.get("tooltip");t&&(t.hide(0),t.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let t;const e=this.get("legendDataItem");if(e&&(t=e.get("markerRectangle"),t&&this.isVisible())){if(this.isDirty("stroke")){let e=this.get("stroke");t.set("stroke",e)}if(this.isDirty("fill")){let e=this.get("fill");t.set("fill",e)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let i=this.startIndex(),s=this.endIndex();s-1==s.indexOf(t))));const n={},r={},o={},a={},h={},l={},c={},u={},d={};for(let t=0,e=i.length;t{if(0===t){const t=l[x],s=i-t;e.setRaw(_,s),e.setRaw(m,s/t*100)}const n=i-d[x],r=i-l[x];e.setRaw(y,n),e.setRaw(v,n/d[x]*100),e.setRaw(w,r),e.setRaw(b,r/l[x]*100),d[s]=i};for(let t=k;tt&&(a[f]=t),h[f]0&&t--,delete d[f];for(let e=t;e0&&u.each(t,(t=>{const e=t.minValue||this.getPrivate(t.dataField+"Low")||0,i=t.maxValue||this.getPrivate(t.dataField+"High")||0;u.each(t.target._entities,(s=>{const n=s.dataItem.get(t.dataField);if(!d.isNumber(n)){t.neutral&&s.set(t.key,t.neutral);const e=s.states;if(e){const i=e.lookup("default");i&&t.neutral&&i.set(t.key,t.neutral)}if(!t.customFunction)return}if(t.customFunction)t.customFunction.call(this,s,e,i,n);else{let r,l;r=t.logarithmic?(Math.log(n)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E):(n-e)/(i-e),!d.isNumber(n)||d.isNumber(r)&&Math.abs(r)!=1/0||(r=.5),d.isNumber(t.min)?l=t.min+(t.max-t.min)*r:t.min instanceof o.Il?l=o.Il.interpolate(r,t.min,t.max):t.min instanceof h.gG&&(l=(0,a.Wn)(r,t.min,t.max)),s.set(t.key,l);const c=s.states;if(c){const e=c.lookup("default");e&&e.set(t.key,l)}}}))})),this.get("visible")){const t=this.dataItems;let e=t.length,i=this.startIndex(),s=this.endIndex();s0&&i--;for(let e=0;e{this._positionBullet(t);const e=t.get("sprite");t.get("dynamic")&&(e&&(e._markDirtyKey("fill"),e.markDirtySize()),e instanceof l.W&&e.walkChildren((t=>{t._markDirtyKey("fill"),t.markDirtySize(),t instanceof c._&&t.text.markDirtyText()}))),e instanceof c._&&e.get("populateText")&&e.text.markDirtyText()}))}_hideBullets(t){t.bullets&&u.each(t.bullets,(t=>{let e=t.get("sprite");e&&e.setPrivate("visible",!1)}))}_positionBullet(t){}_placeBulletsContainer(t){t.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const t=this.bulletsContainer;t.parent&&t.parent.children.removeValue(t)}disposeDataItem(t){const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.show(e))})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.hide(e))})),yield Promise.all(s)}))}_sequencedShowHide(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(d.isNumber(e)||(e=this.get("interpolationDuration",0)),e>0){const i=this.startIndex(),n=this.endIndex();yield Promise.all(u.map(this.dataItems,((r,o)=>(0,s.mG)(this,void 0,void 0,(function*(){let s=e||0;(on+10)&&(s=0);let a=this.get("sequencedDelay",0)+s/(n-i);yield p.sleep(a*(o-i)),t?yield this.showDataItem(r,s):yield this.hideDataItem(r,s)})))))}else yield Promise.all(u.map(this.dataItems,(e=>t?this.showDataItem(e,0):this.hideDataItem(e,0))))}))}updateLegendValue(t){if(t){const e=t.get("legendDataItem");if(e){const i=e.get("valueLabel");if(i){const e=i.text;let s="";i._setDataItem(t),s=this.get("legendValueText",e.get("text","")),i.set("text",s),e.markDirtyText()}const s=e.get("label");if(s){const e=s.text;let i="";s._setDataItem(t),i=this.get("legendLabelText",e.get("text","")),s.set("text",i),e.markDirtyText()}}}}updateLegendMarker(t){}_onHide(){super._onHide();const t=this.getTooltip();t&&t.hide()}hoverDataItem(t){}unhoverDataItem(t){}_getBase(t){const e=this.dataItems[this.startIndex()];return e?e.get(t):0}}g.className="Series",g.classNames=n.w.classNames.concat([g.className])},5863:function(t,e,i){"use strict";i.d(e,{p:function(){return h}});var s=i(1479),n=i(5040),r=i(6245),o=i(832),a=i(751);class h extends s.T{constructor(){super(...arguments),this.ix=0,this.iy=0,this._generator=(0,o.Z)()}_getTooltipPoint(){let t=this.get("tooltipX"),e=this.get("tooltipY"),i=0,s=0;n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e);let o=this.get("radius",0),a=this.get("innerRadius",0);return o+=this.get("dRadius",0),a+=this.get("dInnerRadius",0),a<0&&(a=o+a),t instanceof r.gG&&(i=this.ix*(a+(o-a)*t.value)),e instanceof r.gG&&(s=this.iy*(a+(o-a)*e.value)),this.get("arc")>=360&&0==a&&(i=0,s=0),{x:i,y:s}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this.get("startAngle",0),e=this.get("arc",0);const i=this._generator;e<0&&(t+=e,e*=-1),e>.1&&i.cornerRadius(this.get("cornerRadius",0)),i.context(this._display);let s=this.get("radius",0),n=this.get("innerRadius",0);s+=this.get("dRadius",0),n+=this.get("dInnerRadius",0),n<0&&(n=s+n),i({innerRadius:n,outerRadius:s,startAngle:(t+90)*a.RADIANS,endAngle:(t+e+90)*a.RADIANS});let r=t+e/2;this.ix=a.cos(r),this.iy=a.sin(r);const o=this.get("shiftRadius",0);this.setRaw("dx",this.ix*o),this.setRaw("dy",this.iy*o),this.markDirtyPosition()}}}h.className="Slice",h.classNames=s.T.classNames.concat([h.className])},2162:function(t,e,i){"use strict";i.d(e,{i:function(){return n}});var s=i(6001);class n extends s.L{_afterNew(){this._addOrientationClass(),super._afterNew(),this.endGrip.setPrivate("visible",!1),this.thumb.setPrivate("visible",!1)}updateGrips(){super.updateGrips();const t=this.startGrip;this.endGrip.setAll({x:t.x(),y:t.y()}),this.setRaw("end",this.get("start"))}}n.className="Slider",n.classNames=s.L.classNames.concat([n.className])},4596:function(t,e,i){"use strict";i.d(e,{j:function(){return _}});var s=i(7582),n=i(6331),r=i(5769),o=i(6245),a=i(9770),h=i(7449),l=i(6490),c=i(7652),u=i(5071),d=i(5040),p=i(256),g=i(751);class f extends a.p{constructor(t){super(),this._rendererDisposers={},this._dispatchParents=!0,this._sprite=t}_makePointerEvent(t,e){return{type:t,originalEvent:e.event,point:e.point,simulated:e.simulated,native:e.native,target:this._sprite}}_onRenderer(t,e){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[t];if(void 0===i){const s=this._sprite._display.on(t,(t=>{e.call(this,t)}));i=this._rendererDisposers[t]=new h.DM((()=>{delete this._rendererDisposers[t],s.dispose()}))}return i.increment()}_on(t,e,i,s,n,r,o){const a=super._on(t,e,i,s,n,r,o),l=f.RENDERER_EVENTS[e];return void 0!==l&&(a.disposer=new h.FV([a.disposer,this._onRenderer(e,l)])),a}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(t,e){const i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(t,e),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(t,e)}finally{this._dispatchParents=i}}}f.RENDERER_EVENTS={click:function(t){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",t))&&this.dispatch("click",this._makePointerEvent("click",t))},rightclick:function(t){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",t))},middleclick:function(t){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",t))},dblclick:function(t){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",t))},pointerover:function(t){const e=this._sprite;let i=!0;if(e.getPrivate("trustBounds")){e._getBounds();const s=e.globalBounds();if(e.isType("Graphics")){const t=e.get("strokeWidth",1)/2;t>=1&&(s.left-=t,s.right+=t,s.top-=t,s.bottom+=t)}g.inBounds(t.point,s)||(i=!1,e._root._renderer.removeHovering(e._display))}i&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",t))},pointerout:function(t){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",t))},pointerdown:function(t){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",t))},pointerup:function(t){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",t))},globalpointerup:function(t){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",t))},globalpointermove:function(t){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",t))},wheel:function(t){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:t.event,point:t.point})}};class _ extends n.JH{constructor(){super(...arguments),this._adjustedLocalBounds={left:0,right:0,top:0,bottom:0},this._localBounds={left:0,right:0,top:0,bottom:0},this._sizeDirty=!1,this._isDragging=!1,this._isHidden=!1,this._isShowing=!1,this._isHiding=!1,this._isDown=!1,this._downPoints={}}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(t){this._markDirtyKey(t)}_markDirtyKey(t){super._markDirtyKey(t),"x"!=t&&"y"!=t&&"dx"!=t&&"dy"!=t||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(t){super._markDirtyPrivateKey(t),"x"!=t&&"y"!=t||this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new f(this)}_processTemplateField(){let t;const e=this.get("templateField");if(e){const i=this.dataItem;if(i){const s=i.dataContext;s&&(t=s[e],t instanceof r.YS||!t||(t=r.YS.new(t)))}}this._templateField!==t&&(this._removeTemplateField(),this._templateField=t,t&&t._setObjectTemplate(this),this._applyTemplates())}_setDataItem(t){const e=this._dataItem;this._dataItem=t,this._processTemplateField();const i="dataitemchanged";t!=e&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:e,newDataItem:t})}set dataItem(t){this._setDataItem(t)}get dataItem(){if(this._dataItem)return this._dataItem;{let t=this._parent;for(;t;){if(t._dataItem)return t._dataItem;t=t._parent}}}_addPercentageSizeChildren(){let t=this.parent;t&&(this.get("width")instanceof o.gG||this.get("height")instanceof o.gG?u.pushOne(t._percentageSizeChildren,this):u.removeFirst(t._percentageSizeChildren,this))}_addPercentagePositionChildren(){let t=this.parent;t&&(this.get("x")instanceof o.gG||this.get("y")instanceof o.gG?u.pushOne(t._percentagePositionChildren,this):u.removeFirst(t._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const t=this._localBounds;if(t){const e=this.get("centerX");null!=e&&(this._display.pivot.x=t.left+c.relativeToValue(e,t.right-t.left));const i=this.get("centerY");null!=i&&(this._display.pivot.y=t.top+c.relativeToValue(i,t.bottom-t.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const t=this._prevSettings.tooltip;t&&t.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0);const e=this._tooltipPointerDp;e&&(e.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))),this._tooltipPointerDp=new h.FV([this.events.on("pointerover",(()=>{this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))})),this.events.on("pointerout",(()=>{const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0)}))]))}}_handleStates(){this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();const t=this._display,e=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new h.FV([e.on("pointerdown",(t=>{this.dragStart(t)})),e.on("globalpointermove",(t=>{this.dragMove(t)})),e.on("globalpointerup",(t=>{this.dragStop(t)}))])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),t.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const t=this.get("tooltipText"),i=this.get("tooltipHTML"),s=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(t||i)&&("click"==s?(this._tooltipDp=new h.FV([e.on("click",(()=>{this.setTimeout((()=>{const t=this.getTooltip();t&&!t.isHidden()&&t.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()}),10)})),c.addEventListener(document,"click",(t=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)):"always"==s||(this._tooltipDp=new h.FV([e.on("pointerover",(()=>{this.showTooltip()})),e.on("pointerout",(()=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let t=this.get("toggleKey");t&&"none"!=t?this._toggleDp=e.on("click",(()=>{this._isDragging||this.set(t,!this.get(t))})):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(t.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),t.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),t.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?t.visible=!0:(t.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const t=this.parent;t&&(this.isDirty("width")&&this.get("width")instanceof o.gG||this.isDirty("height")&&this.get("height")instanceof o.gG)&&(t.markDirty(),t._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const e=this.get("wheelable");e&&this.set("interactive",!0),t.wheelable=!!e}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(t.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){const t=this.get("blur",0);0!=t&&(i+=" blur("+t+"px)")}if(this.isDirty("saturate")){const t=this.get("saturate",1);1!=t&&(i+=" saturate("+t+")")}if(this.isDirty("brightness")){const t=this.get("brightness",1);1!=t&&(i+=" brightness("+t+")")}if(this.isDirty("contrast")){const t=this.get("contrast",1);1!=t&&(i+=" contrast("+t+")")}if(this.isDirty("sepia")){const t=this.get("sepia",0);0!=t&&(i+=" sepia("+t+")")}if(this.isDirty("hue")){const t=this.get("hue",0);0!=t&&(i+=" hue-rotate("+t+"deg)")}if(this.isDirty("invert")){const t=this.get("invert",0);0!=t&&(i+=" invert("+t+")")}if(i&&(t.filter=i),this.isDirty("cursorOverStyle")&&(t.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new h.FV([e.on("focus",(()=>{this.showTooltip()})),e.on("blur",(()=>{this.hideTooltip()}))]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(e.on("blur",(()=>{this.setPrivateRaw("touchHovering",!1)}))),this._disposers.push(e.once("boundschanged",(()=>{this.markDirtyAccessibility()})))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(t.exportable=this.get("exportable")),this.isDirty("interactive")){const t=this.events;this.get("interactive")&&!t.isDisposed()?this._hoverDp=new h.FV([t.on("click",(t=>{c.isTouchEvent(t.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout((()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}),10))})),t.on("globalpointerup",(t=>{c.isTouchEvent(t.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})),this._isDown&&this._handleUp(t)})),t.on("pointerover",(()=>{this._handleOver()})),t.on("pointerout",(()=>{this._handleOut()})),t.on("pointerdown",(t=>{this._handleDown(t)}))]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}dragStart(t){this._dragEvent=t,this.events.stopParentDispatch()}dragStop(t){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const e="dragstop";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(t){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const e=c.getPointerId(t.originalEvent);delete this._downPoints[e],0==p.keys(this._downPoints).length&&(this._isDown=!1)}}_hasMoved(t){const e=c.getPointerId(t.originalEvent),i=this._downPoints[e];if(i){const e=Math.abs(i.x-t.point.x),s=Math.abs(i.y-t.point.y);return e>5||s>5}return!1}_hasDown(){return p.keys(this._downPoints).length>0}_handleDown(t){const e=this.parent;if(e&&!this.get("draggable")&&e._handleDown(t),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:t.point.x,y:t.point.y},this._isDown=!0;const e=c.getPointerId(t.originalEvent);this._downPoints[e]={x:t.point.x,y:t.point.y}}}dragMove(t){let e=this._dragEvent;if(e){if(e.simulated&&!t.simulated)return!0;let i=0,s=this.parent,n=1;for(;null!=s;)i+=s.get("rotation",0),s=s.parent,s&&(n*=s.get("scale",1));let r=(t.point.x-e.point.x)/n,o=(t.point.y-e.point.y)/n;const a=this.events;if(e.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}if(this._isDragging){let e=this._dragPoint;this.set("x",e.x+r*g.cos(i)+o*g.sin(i)),this.set("y",e.y+o*g.cos(i)-r*g.sin(i));const s="dragged";a.isEnabled(s)&&a.dispatch(s,{type:s,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}else if(Math.hypot(r,o)>5){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let t=this.parent,e=0;for(;;){if(!t)return e;++e,t=t.parent}}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const t=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),t.isMeasured=!0,t.invalidateBounds();const e=this.parent;e&&"absolute"!=this.get("position")&&(null==e.get("width")||null==e.get("height")||e.get("layout"))&&e.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const t=this._adjustedLocalBounds;let e;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),e=this._adjustedLocalBounds):(e={left:0,right:0,top:0,bottom:0},this._localBounds=e,this._adjustedLocalBounds=e),!t||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom){const t="boundschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(t){let e=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));d.isNumber(e)&&t.right-t.left0?t.right=t.left+s:t.left=t.right+s),d.isNumber(n)&&(n>0?t.bottom=t.top+n:t.top=t.bottom+n)}_removeParent(t){t&&(t.children.removeValue(this),u.removeFirst(t._percentageSizeChildren,this),u.removeFirst(t._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(t){if(!this.isDisposed()){const e=this.getTooltip(),i=this.get("tooltipText"),s=this.get("tooltipHTML");if((i||s)&&e){const n=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);if("fixed"!=n&&t||(this._display._setMatrix(),t=this.toGlobal(r._getTooltipPoint())),"pointer"==n){const e=this.getPrivate("lastTooltipCoords");if(e&&e.x==t.x&&e.y==t.y)return;this.setPrivate("lastTooltipCoords",t)}e.set("pointTo",t),e.set("tooltipTarget",r),e.get("x")||e.set("x",t.x),e.get("y")||e.set("y",t.y),i&&e.label.set("text",i),s&&e.label.set("html",s);const o=this.dataItem;if(o&&e.label._setDataItem(o),"always"==this.get("showTooltipOn")&&(t.x<0||t.x>this._root.width()||t.y<0||t.y>this._root.height()))return void this.hideTooltip();e.label.text.markDirtyText();const a=e.show();return this.setPrivateRaw("showingTooltip",!0),a}}}hideTooltip(){const t=this.getTooltip();if(t&&(this.removePrivate("lastTooltipCoords"),t.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==t)){let e=t.get("keepTargetHover")&&0==t.get("stateAnimationDuration",0)?400:void 0;const i=t.hide(e);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){const t=this._localBounds;if(t){let e=0,i=0;return this.get("isMeasured")?(e=t.left+c.relativeToValue(this.get("tooltipX",0),t.right-t.left),i=t.top+c.relativeToValue(this.get("tooltipY",0),t.bottom-t.top)):(e=c.relativeToValue(this.get("tooltipX",0),this.width()),i=c.relativeToValue(this.get("tooltipY",0),this.height())),{x:e,y:i}}return{x:0,y:0}}getTooltip(){let t=this.get("tooltip");if(t)return t;{let t=this.parent;if(t)return t.getTooltip()}}_updatePosition(){const t=this.parent;let e=this.get("dx",0),i=this.get("dy",0),s=this.get("x"),n=this.getPrivate("x"),r=0,a=0;const h=this.get("position");s instanceof o.gG&&(s=t?t.innerWidth()*s.value+t.get("paddingLeft",0):0),d.isNumber(s)?r=s+e:null!=n?r=n:t&&"relative"==h&&(r=t.get("paddingLeft",0)+e);let l=this.get("y"),c=this.getPrivate("y");l instanceof o.gG&&(l=t?t.innerHeight()*l.value+t.get("paddingTop",0):0),d.isNumber(l)?a=l+i:null!=c?a=c:t&&"relative"==h&&(a=t.get("paddingTop",0)+i);const u=this._display;if(u.x!=r||u.y!=a){u.invalidateBounds(),u.x=r,u.y=a;const t="positionchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let t=this.get("x"),e=this.getPrivate("x");const i=this.parent;return i?t instanceof o.gG?c.relativeToValue(t,i.innerWidth())+i.get("paddingLeft",0):d.isNumber(t)?t:null!=e?e:i.get("paddingLeft",this._display.x):this._display.x}y(){let t=this.getPrivate("y");if(null!=t)return t;let e=this.get("y");const i=this.parent;return i?e instanceof o.gG?c.relativeToValue(e,i.innerHeight())+i.get("paddingTop",0):d.isNumber(e)?e:null!=t?t:i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const t=this.get("tooltip");t&&t.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const t=this._adjustedLocalBounds,e=this.x(),i=this.y();return{left:t.left+e,right:t.right+e,top:t.top+i,bottom:t.bottom+i}}globalBounds(){const t=this.localBounds(),e=this.toGlobal({x:t.left,y:t.top}),i=this.toGlobal({x:t.right,y:t.top}),s=this.toGlobal({x:t.right,y:t.bottom}),n=this.toGlobal({x:t.left,y:t.bottom});return{left:Math.min(e.x,i.x,s.x,n.x),top:Math.min(e.y,i.y,s.y,n.y),right:Math.max(e.x,i.x,s.x,n.x),bottom:Math.max(e.y,i.y,s.y,n.y)}}_onShow(t){}_onHide(t){}appear(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.hide(0),e?new Promise(((i,s)=>{this.setTimeout((()=>{i(this.show(t))}),e)})):this.show(t)}))}show(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(t);const e=this.states.applyAnimate("default",t);yield(0,l.ne)(e),this._isShowing=!1}}))}hide(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let e=this.states.lookup("hidden");e||(e=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(t);const i=this.states.applyAnimate("hidden",t);yield(0,l.ne)(i),this._isHiding=!1}}))}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const t=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*t:t}compositeScale(){const t=this.get("scale",1);return this._parent?this._parent.compositeScale()*t:t}compositeRotation(){const t=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+t:t}width(){let t=this.get("width"),e=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),s=this.getPrivate("width"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerWidth()*t.value:this._root.width()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}maxWidth(){let t=this.get("maxWidth",this.getPrivate("maxWidth"));if(d.isNumber(t))return t;{let t=this.get("width");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerWidth():this._root.width()}maxHeight(){let t=this.get("maxHeight",this.getPrivate("maxHeight"));if(d.isNumber(t))return t;{let t=this.get("height");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerHeight():this._root.height()}height(){let t=this.get("height"),e=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),s=this.getPrivate("height"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerHeight()*t.value:this._root.height()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}_findStaticTemplate(t){return this._templateField&&t(this._templateField)?this._templateField:super._findStaticTemplate(t)}_walkParents(t){(this._parent||this._virtualParent)&&this._walkParent(t)}_walkParent(t){this._parent?this._parent._walkParent(t):this._virtualParent&&this._virtualParent._walkParent(t),t(this)}set virtualParent(t){this._virtualParent!==t&&(this._virtualParent=t,this._applyThemes())}get parent(){return this._parent}_setParent(t,e=!1){const i=this._parent;t!==i&&(this.markDirtyBounds(),t.markDirty(),this._parent=t,e&&(this._removeParent(i),t&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(t){return this._display.toGlobal(t)}toLocal(t){return this._display.toLocal(t)}_getDownPoint(){const t=this._getDownPointId();if(t)return this._downPoints[t]}_getDownPointId(){if(this._downPoints)return p.keysOrdered(this._downPoints,((t,e)=>t>e?1:t{this._resize(t.target,-1)})),this.gripR.events.on("dragged",(t=>{this._resize(t.target,1)})),this.gripL.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripR.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripT.events.on("dragged",(t=>{this._rotate(t,90)})),this.gripB.events.on("dragged",(t=>{this._rotate(t,-90)})),this.gripT.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripB.events.on("dragstart",(t=>{this._resizeStart(t.target)}))}_resizeStart(t){const e=this.get("sprite");e&&(this._is=e.get("scale",1),this._ix=t.x(),this._iw=this.width()/2)}_resize(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=Math.max(.01,this._is*(1+e*(t.x()-this._ix)/this._iw));s?s.set("scale",n):i.set("scale",n),i.states.lookup("default").set("scale",n),this._updatePositions()}}_rotate(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=this.parent;if(n){const r=this.get("rotationStep",10);let o=Math.round((h.getAngle({x:this.x(),y:this.y()},n.toLocal(t.point))+e)/r)*r;s?s.set("rotation",o):i.set("rotation",o),i.states.lookup("default").set("rotation",o),this._updatePositions()}}}_createGrip(t){const e=this.children.push(s.W.new(this._root,{themeTags:["grip",t],setStateOnChildren:!0,draggable:!0}));return e.children.push(r.c.new(this._root,{themeTags:["outline"],centerX:n.CI,centerY:n.CI})),e.children.push(r.c.new(this._root,{centerX:n.CI,centerY:n.CI})),e}_updateChildren(){if(super._updateChildren(),this.isDirty("sprite")){const t=this.get("sprite");if(t){this.show(0),this.setPrivate("visible",!0),this._updatePositions();const e=t.parent;e&&e.children.moveValue(this,0),this._positionDP=t.events.on("positionchanged",(()=>{this._updatePositions()})),this._positionDP=t.events.on("boundschanged",(()=>{this._updatePositions()}))}else this.hide(0),this.setPrivate("visible",!1),this._positionDP&&this._positionDP.dispose()}(this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation"))&&this._updatePositions()}_updatePositions(){const t=this.get("sprite");if(t){let e=t.localBounds(),i=t.get("scale",1),s=20,r=(e.right-e.left)*i+s,o=(e.bottom-e.top)*i+s,a=t.get("rotation",0);const l=this.rectangle;let c=t.get("centerX",n.CI),u=t.get("centerY",n.CI),d=0;c instanceof n.gG&&(d=c.value);let p=0;u instanceof n.gG&&(p=u.value),l.setAll({centerX:c,centerY:u,width:r,height:o}),this.setAll({x:t.x()+s*(d-.5)*h.cos(a)-s*(p-.5)*h.sin(a),y:t.y()+s*(p-.5)*h.cos(a)+s*(d-.5)*h.sin(a),width:r,height:o,rotation:a}),this.gripT.setAll({x:(.5-d)*r,y:-p*o}),this.gripB.setAll({x:(.5-d)*r,y:(1-p)*o}),this.gripL.setAll({x:-d*r,y:(.5-p)*o}),this.gripR.setAll({x:(1-d)*r,y:(.5-p)*o}),this.rectangle.setAll({width:r,height:o})}}}l.className="SpriteResizer",l.classNames=s.W.classNames.concat([l.className])},2036:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(4596),n=i(2132),r=i(5071),o=i(7652),a=i(7449);class h extends s.j{constructor(){super(...arguments),this.textStyle=this._root._renderer.makeTextStyle(),this._display=this._root._renderer.makeText("",this.textStyle),this._textStyles=["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}_updateBounds(){if(this.get("text")){super._updateBounds();let t=this.get("fillGradient");t&&(this._display.style.fill=t.getFill(this))}else{let t={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=t}}_changed(){super._changed(),this._display.clear();let t=this.textStyle;if(this.isDirty("opacity")){let t=this.get("opacity",1);this._display.alpha=t}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),"tooltip"==this.get("role")&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new a.ku((()=>{this._root._removeTooltipElement(this)}))),this.isDirty("width")&&(t.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(t.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(t.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(t.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(t.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(t.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){const e=this.get("fill"),i=this.get("fillGradient"),s=this.get("fillOpacity");if(i){if(e){const t=i.get("stops",[]);t.length&&r.each(t,(t=>{t.color&&!t.colorInherited||!e||(t.color=e,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=s,t.opacityInherited=!0)}))}t.fill=i.getFill(this)}else e&&(t.fill=e)}if(this.isDirty("fillOpacity")){let e=this.get("fillOpacity",1);e&&(t.fillOpacity=e)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(t.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(t.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),r.each(this._textStyles,(e=>{this._dirty[e]&&(t[e]=this.get(e),this.markDirtyBounds())})),t.fontSize=this.get("fontSize"),t.fontFamily=this.get("fontFamily"),this._display.style=t,this.isDirty("role")&&"tooltip"==this.get("role")&&this._root.updateTooltip(this)}_getText(){let t=this.get("text","");return this.get("maxChars")&&(t=o.truncateTextWithEllipsis(t,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?(0,n.q)(this,t):t}_getAccessibleText(){const t=this.get("ariaLabel");return void 0!==t?this.get("populateText")?(0,n.q)(this,t):t:this._getText()}markDirtyText(){this._display.text=this._getText(),"tooltip"==this.get("role")&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(t){super._setDataItem(t),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}h.className="Text",h.classNames=s.j.classNames.concat([h.className])},2438:function(t,e,i){"use strict";i.d(e,{d:function(){return n}});var s=i(2077);class n extends s.x{}n.className="Tick",n.classNames=s.x.classNames.concat([n.className])},2876:function(t,e,i){"use strict";i.d(e,{u:function(){return d}});var s=i(7449),n=i(962),r=i(8931),o=i(8777),a=i(6245),h=i(1112),l=i(751),c=i(5071),u=i(7652);class d extends o.W{constructor(t,e,i,s=[]){super(t,e,i,s),this._fx=0,this._fy=0,this._w=0,this._h=0,this._htmlContentHovered=!1}_afterNew(){this._settings.themeTags=u.mergeTags(this._settings.themeTags,["tooltip"]),super._afterNew(),this._setDefaultFn("background",(()=>r.i.new(this._root,{}))).set("themeTags",["tooltip","background"]),this._label=this.children.push(n._.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",(()=>{this._updateBackground()}))),this._disposers.push(this.on("bounds",(()=>{this._updateBackground()}))),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",(t=>{t&&(this._disposers.push(u.addEventListener(t,"pointerover",(t=>{this._htmlContentHovered=!0}))),this._disposers.push(u.addEventListener(t,"pointerout",(t=>{this._htmlContentHovered=!1}))))}))),this.on("visible",(t=>{this._handleReaderAnnouncement()})),this.label.events.on("dataitemchanged",(t=>{this._handleReaderAnnouncement()})),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),c.remove(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width"),null!=this.get("labelText")&&this.label.set("text",this.get("labelText")),null!=this.get("labelHTML")&&this.label.set("html",this.get("labelHTML")),null!=this.get("labelAriaLabel")&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover"))if(this.get("keepTargetHover")){const t=this.get("background");this._keepHoverDp=new s.FV([t.events.on("pointerover",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),e.hover())})),t.events.on("pointerout",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),this._htmlContentHovered||e.unhover())}))]),this.label.onPrivate("htmlElement",(e=>{this._keepHoverDp&&e&&this._keepHoverDp.disposers.push(u.addEventListener(e,"pointerleave",(e=>{const i=this.root._renderer.getEvent(e);t.events.dispatch("pointerout",{type:"pointerout",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))}))}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let t=this.get("tooltipTarget");const e=this.get("background");let i,s;if(t&&e){if(i=t.get("fill"),s=t.get("stroke"),null==i&&(i=s),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),null!=i&&e.set("fill",i),this._fillDp=t.on("fill",(t=>{null!=t&&(e.set("fill",t),this._updateTextColor(t))})),this._disposers.push(this._fillDp)),this.get("getFillGradientFromSprite")){this._fillGrDp&&this._fillGrDp.dispose();let i=t.get("fillGradient");null!=i&&e.set("fillGradient",i),this._fillGrDp=t.on("fillGradient",(t=>{null!=t&&e.set("fillGradient",t)})),this._disposers.push(this._fillGrDp)}this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),null!=i&&e.set("stroke",i),this._strokeDp=t.on("fill",(t=>{null!=t&&e.set("stroke",t)})),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),null!=i&&this.label.set("fill",i),this._labelDp=t.on("fill",(t=>{null!=t&&this.label.set("fill",t)})),this._disposers.push(this._labelDp))}this._updateTextColor(i)}_updateTextColor(t){this.get("autoTextColor")&&(null==t&&(t=this.get("background").get("fill")),null==t&&(t=this._root.interfaceColors.get("background")),t instanceof h.Il&&this.label.set("fill",h.Il.alternative(t,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(t){super._setDataItem(t),this.label._setDataItem(t)}_updateBackground(){super.updateBackground();const t=this._root.container;if(t){let e=.5,i=.5,s=this.get("centerX");s instanceof a.gG&&(e=s.value);let n=this.get("centerY");n instanceof a.gG&&(i=n.value);let o=t.width(),h=t.height(),c=this.parent,u=0,d=0;if(c){u=c.x(),d=c.y();const t=c.get("layerMargin");t&&(u+=t.left||0,d+=t.top||0,o+=(t.left||0)+(t.right||0),h+=(t.top||0)+(t.bottom||0))}const p=this.get("bounds",{left:-u,top:-d,right:o-u,bottom:h-d});this._updateBounds();let g=this.width(),f=this.height();0===g&&(g=this._w),0===f&&(f=this._h);let _=this.get("pointTo",{x:o/2,y:h/2}),m=_.x,y=_.y,v=this.get("pointerOrientation"),w=this.get("background"),b=0,x=0,D=0;w instanceof r.i&&(b=w.get("pointerLength",0),x=w.get("strokeWidth",0)/2,D=x,w.set("width",g),w.set("height",f));let k=0,T=0,M=p.right-p.left,E=p.bottom-p.top;"horizontal"==v||"left"==v||"right"==v?(x=0,"horizontal"==v?m>p.left+M/2?(m-=g*(1-e)+b,D*=-1):m+=g*e+b:"left"==v?m+=g*(1-e)+b:(m-=g*e+b,D*=-1)):(D=0,"vertical"==v?y>p.top+f/2+b?y-=f*(1-i)+b:(y+=f*i+b,x*=-1):"down"==v?y-=f*(1-i)+b:(y+=f*i+b,x*=-1)),m=l.fitToRange(m,p.left+g*e,p.left+M-g*(1-e))+D,y=l.fitToRange(y,p.top+f*i,p.top+E-f*(1-i))-x,k=_.x-m+g*e+D,T=_.y-y+f*i-x,this._fx=m,this._fy=y;const O=this.get("animationDuration",0);if(O>0&&this.get("visible")&&this.get("opacity")>.1){const t=this.get("animationEasing");this.animate({key:"x",to:m,duration:O,easing:t}),this.animate({key:"y",to:y,duration:O,easing:t})}else this.set("x",m),this.set("y",y);w instanceof r.i&&(w.set("pointerX",k),w.set("pointerY",T)),g>0&&(this._w=g),f>0&&(this._h=f)}}}d.className="Tooltip",d.classNames=o.W.classNames.concat([d.className])},941:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){const t=this.width(),e=this.height(),i=this._display;i.moveTo(-t/2,e/2),i.lineTo(0,-e/2),i.lineTo(t/2,e/2),i.lineTo(-t/2,e/2),i.closePath()}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Triangle",n.classNames=s.T.classNames.concat([n.className])},1706:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingTop",0),i=t.innerHeight(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minHeight",t.getPrivate("minHeight",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.height()),i-=e+t.get("marginTop",0)+t.get("marginBottom",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginTop",0)-t.get("marginBottom",0),n=t.get("minHeight",t.getPrivate("minHeight",-1/0)),r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("height",s)}else t._prevSettings.height instanceof r.gG&&t.setPrivate("height",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginTop",0),s=e.top,n=e.bottom,r=t.get("maxHeight");r&&n-s>r&&(n=s+r);let o=t.get("marginBottom",0),h=a+i-s;t.setPrivate("y",h),a=h+n+o}else t.setPrivate("y",void 0)}))}}o.className="VerticalLayout",o.classNames=s.A.classNames.concat([o.className])},6044:function(t,e,i){"use strict";i.d(e,{H:function(){return h}});var s=i(8777),n=i(8054),r=i(1479),o=i(7449),a=i(2647);class h extends s.W{constructor(){super(...arguments),this.homeButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["home"]})),this.plusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["plus"]})),this.minusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["minus"]}))}_afterNew(){super._afterNew(),this.set("position","absolute"),this.set("layout",this._root.verticalLayout),this.addTag("zoomtools"),this.plusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.minusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.homeButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("target")){const t=this.get("target"),e=this._prevSettings.target;t&&(t instanceof a.Y&&(this._targetDisposer=this.addDisposer(t.contents.on("scale",(e=>{e==t.get("minZoomLevel")?this.minusButton.set("disabled",!0):this.minusButton.set("disabled",!1),e==t.get("maxZoomLevel")?this.plusButton.set("disabled",!0):this.plusButton.set("disabled",!1)}))),this.root.events.once("frameended",(()=>{t.get("scale")==t.get("minZoomLevel")&&this.minusButton.set("disabled",!0)}))),this._disposer=new o.FV([this.plusButton.events.on("click",(()=>{t.zoomIn()})),this.minusButton.events.on("click",(()=>{t.zoomOut()})),this.homeButton.events.on("click",(()=>{t.goHome()}))])),e&&(this._disposer&&this._disposer.dispose(),this._targetDisposer&&this._targetDisposer.dispose())}}}h.className="ZoomTools",h.classNames=s.W.classNames.concat([h.className])},2647:function(t,e,i){"use strict";i.d(e,{Y:function(){return u}});var s=i(8777),n=i(6245),r=i(7142),o=i(1112),a=i(7652),h=i(751),l=i(256),c=i(5040);class u extends s.W{constructor(){super(...arguments),this._movePoints={},this._downScale=1,this._downX=0,this._downY=0,this.contents=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,x:0,y:0,draggable:!0,background:r.A.new(this._root,{fill:(0,o.$_)(16777215),fillOpacity:0})}))}_afterNew(){super._afterNew();const t=this.contents.events;this._disposers.push(t.on("pointerdown",(t=>{this._handleThisDown(t)}))),this._disposers.push(t.on("globalpointerup",(t=>{this._handleThisUp(t)}))),this._disposers.push(t.on("globalpointermove",(t=>{this._handleThisMove(t)})));const e=this.contents.get("background");e&&(e.adapters.add("width",(t=>20*Number(t))),e.adapters.add("height",(t=>20*Number(t))),e.adapters.add("x",(t=>Number(t)-e.width()/2)),e.adapters.add("y",(t=>Number(t)-e.height()/2)));const i=this.contents;i.adapters.add("x",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.width();t=Math.min(n*s,t),t=Math.max(this.width()-n*e*(1+s),t)}return t})),i.adapters.add("y",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.height();t=Math.min(n*s,t),t=Math.max(this.height()-n*e*(1+s),t)}return t}))}_prepareChildren(){super._prepareChildren(),this.isDirty("wheelable")&&this._handleSetWheel(),this.contents._display.cancelTouch=this.get("pinchZoom",!1)}_handleSetWheel(){this.get("wheelable")?(this._wheelDp&&this._wheelDp.dispose(),this._wheelDp=this.events.on("wheel",(t=>{const e=t.originalEvent;if(!a.isLocalEvent(e,this))return;e.preventDefault();const i=this.toLocal(t.point);this._handleWheelZoom(e.deltaY,i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_handleWheelZoom(t,e){let i=this.get("zoomStep",2),s=this.contents.get("scale",1),n=s;t>0?n=s/i:t<0&&(n=s*i),n!=s&&this.zoomToPoint(e,n)}zoomToPoint(t,e){e&&(e=h.fitToRange(e,this.get("minZoomLevel",1),this.get("maxZoomLevel",32)));const i=this.contents.get("scale",1);let s=t.x,n=t.y,r=s,o=n;const a=this.contents;let l=r-(s-a.x())/i*e,c=o-(n-a.y())/i*e;return this._animateTo(l,c,e),this._za}zoomIn(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)*this.get("zoomStep",2))}zoomOut(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)/this.get("zoomStep",2))}goHome(){return this._animateTo(0,0,1)}_animateTo(t,e,i){const s=this.get("animationDuration",0),n=this.get("animationEasing"),r=this.contents;this._txa=r.animate({key:"x",to:t,duration:s,easing:n}),this._tya=r.animate({key:"y",to:e,duration:s,easing:n}),this._za=r.animate({key:"scale",to:i,duration:s,easing:n})}_handleThisUp(t){this._downPoints={}}_handleThisDown(t){const e=this.contents;this._downScale=e.get("scale",1);const i=e._downPoints;let s=l.keys(i).length;if(1==s){let e=i[1];e||(e=i[0]),e&&e.x==t.point.x&&e.y==t.point.y&&(s=0)}if(s>0){this._downX=e.x(),this._downY=e.y();const t=e._getDownPointId();if(t){let i=this._movePoints[t];i&&(e._downPoints[t]=i)}}}_handleThisMove(t){const e=t.originalEvent.pointerId;this.get("pinchZoom")&&e&&(this._movePoints[e]=t.point,l.keys(this.contents._downPoints).length>1)&&this._handlePinch()}_handlePinch(){let t=0,e=[],i=[];if(l.each(this.contents._downPoints,((s,n)=>{e[t]=n;let r=this._movePoints[s];r&&(i[t]=r),t++})),e.length>1&&i.length>1){this.contents._isDragging=!1;let t=e[0],s=e[1],n=i[0],r=i[1];if(t&&s&&n&&r){t=this.toLocal(t),s=this.toLocal(s),n=this.toLocal(n),r=this.toLocal(r);let e=Math.hypot(s.x-t.x,s.y-t.y),i=Math.hypot(r.x-n.x,r.y-n.y)/e*this._downScale,o={x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2},a={x:t.x+(s.x-t.x)/2,y:t.y+(s.y-t.y)/2},h=this._downX||0,l=this._downY||0,c=this._downScale,u=o.x-(-h+a.x)/c*i,d=o.y-(-l+a.y)/c*i;this.contents.setAll({x:u,y:d,scale:i})}}}}u.className="ZoomableContainer",u.classNames=s.W.classNames.concat([u.className])},4102:function(t,e,i){"use strict";i.d(e,{mM:function(){return at},uK:function(){return rt}});var s=i(4680),n=i(1112);class r{constructor(t=1,e=0,i=0,s=1,n=0,r=0){this.a=t,this.b=e,this.c=i,this.d=s,this.tx=n,this.ty=r}setTransform(t,e,i,s,n,r=1){this.a=Math.cos(n)*r,this.b=Math.sin(n)*r,this.c=-Math.sin(n)*r,this.d=Math.cos(n)*r,this.tx=t-(i*this.a+s*this.c),this.ty=e-(i*this.b+s*this.d)}apply(t){return{x:this.a*t.x+this.c*t.y+this.tx,y:this.b*t.x+this.d*t.y+this.ty}}applyInverse(t){const e=1/(this.a*this.d+this.c*-this.b);return{x:this.d*e*t.x+-this.c*e*t.y+(this.ty*this.c-this.tx*this.d)*e,y:this.a*e*t.y+-this.b*e*t.x+(-this.ty*this.a+this.tx*this.b)*e}}append(t){const e=this.a,i=this.b,s=this.c,n=this.d;this.a=t.a*e+t.b*s,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*s,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*s+this.tx,this.ty=t.tx*i+t.ty*n+this.ty}prepend(t){const e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){const e=this.a,i=this.c;this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty}copyFrom(t){this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty}}var o=i(6245),a=i(7449),h=i(7255),l=i(7652),c=i(5071),u=i(256),d=i(5040),p=i(751),g=2*Math.PI,f=function(t,e,i,s,n,r,o){var a=t.x,h=t.y;return{x:s*(a*=e)-n*(h*=i)+r,y:n*a+s*h+o}},_=function(t,e){var i=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),s=Math.cos(t),n=Math.sin(t),r=Math.cos(t+e),o=Math.sin(t+e);return[{x:s-n*i,y:n+s*i},{x:r+o*i,y:o-r*i},{x:r,y:o}]},m=function(t,e,i,s){var n=t*i+e*s;return n>1&&(n=1),n<-1&&(n=-1),(t*s-e*i<0?-1:1)*Math.acos(n)},y=function(t){var e=t.px,i=t.py,s=t.cx,n=t.cy,r=t.rx,o=t.ry,a=t.xAxisRotation,h=void 0===a?0:a,l=t.largeArcFlag,c=void 0===l?0:l,u=t.sweepFlag,d=void 0===u?0:u,p=[];if(0===r||0===o)return[];var y=Math.sin(h*g/360),v=Math.cos(h*g/360),w=v*(e-s)/2+y*(i-n)/2,b=-y*(e-s)/2+v*(i-n)/2;if(0===w&&0===b)return[];r=Math.abs(r),o=Math.abs(o);var x=Math.pow(w,2)/Math.pow(r,2)+Math.pow(b,2)/Math.pow(o,2);x>1&&(r*=Math.sqrt(x),o*=Math.sqrt(x));var D=function(t,e,i,s,n,r,o,a,h,l,c,u){var d=Math.pow(n,2),p=Math.pow(r,2),f=Math.pow(c,2),_=Math.pow(u,2),y=d*p-d*_-p*f;y<0&&(y=0),y/=d*_+p*f;var v=(y=Math.sqrt(y)*(o===a?-1:1))*n/r*u,w=y*-r/n*c,b=l*v-h*w+(t+i)/2,x=h*v+l*w+(e+s)/2,D=(c-v)/n,k=(u-w)/r,T=(-c-v)/n,M=(-u-w)/r,E=m(1,0,D,k),O=m(D,k,T,M);return 0===a&&O>0&&(O-=g),1===a&&O<0&&(O+=g),[b,x,E,O]}(e,i,s,n,r,o,c,d,y,v,w,b),k=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],s=!0,n=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);s=!0);}catch(t){n=!0,r=t}finally{try{!s&&a.return&&a.return()}finally{if(n)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(D,4),T=k[0],M=k[1],E=k[2],O=k[3],P=Math.abs(O)/(g/4);Math.abs(1-P)<1e-7&&(P=1);var S=Math.max(Math.ceil(P),1);O/=S;for(var N=0;N1){const e=/^([01])([01])(.*)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t.splice(i,0,e[2]),++i,e[3].length>0?t[i]=e[3]:t.splice(i,1))}if(++i,s=t[i],s.length>1){const e=/^([01])(.+)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t[i]=e[2])}}}function D(t){if(0===t||1===t)return t;throw new Error("Flag must be 0 or 1")}function k(t,e){for(;(!t.interactive||e(t))&&t._parent;)t=t._parent}function T(t,e,i){return l.addEventListener(t,l.getRendererEvent(e),(t=>{const e=l.getEventTarget(t);let s=t.touches;s?(0==s.length&&(s=t.changedTouches),i(c.copy(s),e)):i([t],e)}))}function M(t){const e=document.createElement("canvas");e.width=1,e.height=1;const i=e.getContext("2d",{willReadFrequently:!0});i.drawImage(t,0,0,1,1);try{return i.getImageData(0,0,1,1),!1}catch(e){return console.warn('Image "'+t.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function E(t){t.width=0,t.height=0,t.style.width="0px",t.style.height="0px"}function O(t){return Math.floor(t)+.5}class P{constructor(){this._x=0,this._y=0}get x(){return this._x}get y(){return this._y}set x(t){this._x=t}set y(t){this._y=t}}class S extends a.KK{constructor(t){super(),this.mask=null,this.visible=!0,this.exportable=!0,this.interactive=!1,this.inactive=null,this.wheelable=!1,this.cancelTouch=!1,this.isMeasured=!1,this.buttonMode=!1,this.alpha=1,this.compoundAlpha=1,this.angle=0,this.scale=1,this.x=0,this.y=0,this.crisp=!1,this.pivot=new P,this._localMatrix=new r,this._matrix=new r,this._uMatrix=new r,this._renderer=t}subStatus(t){return{inactive:null==this.inactive?t.inactive:this.inactive,layer:this._layer||t.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let t=this;for(;;){if(t._layer)return t._layer;if(!t._parent)return this._renderer.defaultLayer;t=t._parent}}setLayer(t,e){if(null==t)this._layer=void 0;else{const i=!0;this._layer=this._renderer.getLayer(t,i),this._layer.visible=i,this._layer.margin=e,e&&l.setInteractive(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost()}}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(t){}_getColorId(){return void 0===this._colorId&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(t){return!t.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(t){return this._isInteractive(t)}contains(t){for(;;){if(t===this)return!0;if(!t._parent)return!1;t=t._parent}}toGlobal(t){return this._matrix.apply(t)}toLocal(t){return this._matrix.applyInverse(t)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){if(!this._localBounds){const t=1e7;this._localBounds={left:t,top:t,right:-t,bottom:-t},this._addBounds(this._localBounds)}return this._localBounds}getAdjustedBounds(t){this._setMatrix();const e=this.getLocalMatrix(),i=e.apply({x:t.left,y:t.top}),s=e.apply({x:t.right,y:t.top}),n=e.apply({x:t.right,y:t.bottom}),r=e.apply({x:t.left,y:t.bottom});return{left:Math.min(i.x,s.x,n.x,r.x),top:Math.min(i.y,s.y,n.y,r.y),right:Math.max(i.x,s.x,n.x,r.x),bottom:Math.max(i.y,s.y,n.y,r.y)}}on(t,e,i){return this.interactive?this._renderer._addEvent(this,t,e,i):new a.ku((()=>{}))}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(t,e){const i=this._matrix;let s=i.tx*e,n=i.ty*e;this.crisp&&(s=O(s),n=O(n)),t.setTransform(i.a*e,i.b*e,i.c*e,i.d*e,s,n)}_transformMargin(t,e,i){const s=this._matrix;t.setTransform(s.a*e,s.b*e,s.c*e,s.d*e,(s.tx+i.left)*e,(s.ty+i.top)*e)}_transformLayer(t,e,i){i.margin?this._transformMargin(t,i.scale||e,i.margin):this._transform(t,i.scale||e)}render(t,e=0){if(this.visible&&(!1!==this.exportable||!this._renderer._omitTainted)){this._setMatrix();const i=this.subStatus(t),s=this._renderer.resolution,n=this._renderer.layers,r=this._renderer._ghostLayer,o=r.context,a=this.mask;a&&a._setMatrix(),c.each(n,(t=>{if(t){const e=t.context;e.save(),a&&(a._transformLayer(e,s,t),a._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(e,s,t),this.filter&&(e.filter=this.filter)}})),o.save(),a&&this._isInteractiveMask(i)&&(a._transformMargin(o,s,r.margin),a._runPath(o),o.clip()),this._transformMargin(o,s,r.margin),i.layer.order>0&&!e&&c.move(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,e),o.restore(),c.each(n,(t=>{t&&t.context.restore()}))}}_render(t,e=0){!1===this.exportable&&(t.layer.tainted=!0)}_ghostOnly(t=0){return t>0}_drawGhost(t,e=0){const i=this._isInteractive(t),s=t.layer.order||0;return!(!i||(0!=s||this._ghostOnly(e))&&s!=e)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some((t=>t.value===this))}shouldCancelTouch(){const t=this._renderer;return!(t.tapToActivate&&!t._touchActive)&&(!!this.cancelTouch||!!this._parent&&this._parent.shouldCancelTouch())}}class N extends S{constructor(){super(...arguments),this.interactiveChildren=!0,this._children=[]}_isInteractiveMask(t){return this.interactiveChildren||super._isInteractiveMask(t)}addChild(t){t._parent=this,this._children.push(t),t._layer&&this.registerChildLayer(t._layer)}addChildAt(t,e){t._parent=this,this._children.splice(e,0,t),t._layer&&this.registerChildLayer(t._layer)}removeChild(t){t._parent=void 0,c.removeFirst(this._children,t)}_render(t,e){super._render(t);const i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,c.each(this._children,(i=>{i.compoundAlpha=this.compoundAlpha*this.alpha,i.render(t,e)})),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(t){this._childLayers||(this._childLayers=[]),c.pushOne(this._childLayers,t),this._parent&&this._parent.registerChildLayer(t)}markDirtyLayer(t=!1){super.markDirtyLayer(),t&&this._childLayers&&c.each(this._childLayers,(t=>t.dirty=!0))}_dispose(){super._dispose(),this._childLayers&&c.each(this._childLayers,(t=>{t.dirty=!0}))}}function C(t,e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.right=Math.max(t.right,e.x),t.bottom=Math.max(t.bottom,e.y)}class L{colorize(t,e){}colorizeGhost(t,e){this.colorize(t,e)}path(t){}pathGhost(t){this.path(t)}addBounds(t){}}class A extends L{colorize(t,e){t.beginPath()}}class R extends L{constructor(t){super(),this.color=t}colorize(t,e){t.fillStyle=void 0!==e?e:this.color}}class U extends L{constructor(t){super(),this.clearShadow=t}colorize(t,e){t.fill(),this.clearShadow&&(t.shadowColor="",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}}class B extends L{colorize(t,e){t.stroke()}}class F extends L{constructor(t,e,i,s){super(),this.width=t,this.color=e,this.lineJoin=i,this.lineCap=s}colorize(t,e){t.strokeStyle=void 0!==e?e:this.color,t.lineWidth=this.width,this.lineJoin&&(t.lineJoin=this.lineJoin),this.lineCap&&(t.lineCap=this.lineCap)}}class I extends L{constructor(t){super(),this.dash=t}colorize(t,e){t.setLineDash(this.dash)}}class H extends L{constructor(t){super(),this.dashOffset=t}colorize(t,e){t.lineDashOffset=this.dashOffset}}class z extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.width=i,this.height=s}path(t){t.rect(this.x,this.y,this.width,this.height)}addBounds(t){const e=this.x,i=this.y,s=e+this.width,n=i+this.height;C(t,{x:e,y:i}),C(t,{x:s,y:i}),C(t,{x:e,y:n}),C(t,{x:s,y:n})}}class G extends L{constructor(t,e,i){super(),this.x=t,this.y=e,this.radius=i}path(t){t.moveTo(this.x+this.radius,this.y),t.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radius,y:this.y-this.radius}),C(t,{x:this.x+this.radius,y:this.y+this.radius})}}class V extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.radiusX=i,this.radiusY=s}path(t){t.ellipse(0,0,this.radiusX,this.radiusY,0,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radiusX,y:this.y-this.radiusY}),C(t,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class W extends L{constructor(t,e,i,s,n,r){super(),this.cx=t,this.cy=e,this.radius=i,this.startAngle=s,this.endAngle=n,this.anticlockwise=r}path(t){this.radius>0&&t.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(t){let e=p.getArcBounds(this.cx,this.cy,this.startAngle*p.DEGREES,this.endAngle*p.DEGREES,this.radius);C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}class Y extends L{constructor(t,e,i,s,n){super(),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.radius=n}path(t){this.radius>0&&t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(t){}}class j extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.lineTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class X extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.moveTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class $ extends L{path(t){t.closePath()}}class Z extends L{constructor(t,e,i,s,n,r){super(),this.cpX=t,this.cpY=e,this.cpX2=i,this.cpY2=s,this.toX=n,this.toY=r}path(t){t.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.cpX2,y:this.cpY2}),C(t,{x:this.toX,y:this.toY})}}class K extends L{constructor(t,e,i,s){super(),this.cpX=t,this.cpY=e,this.toX=i,this.toY=s}path(t){t.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.toX,y:this.toY})}}class q extends L{constructor(t,e,i,s,n){super(),this.color=t,this.blur=e,this.offsetX=i,this.offsetY=s,this.opacity=n}colorize(t,e){this.opacity&&(t.fillStyle=this.color),t.shadowColor=this.color,t.shadowBlur=this.blur,t.shadowOffsetX=this.offsetX,t.shadowOffsetY=this.offsetY}colorizeGhost(t,e){}}class Q extends L{constructor(t,e,i,s,n){super(),this.image=t,this.width=e,this.height=i,this.x=s,this.y=n}path(t){t.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(t){C(t,{x:this.x,y:this.y}),C(t,{x:this.width,y:this.height})}}class J extends S{constructor(){super(...arguments),this._operations=[],this.blendMode=s.b.NORMAL,this._hasShadows=!1}clear(){super.clear(),this._operations.length=0}_pushOp(t){this._operations.push(t)}beginFill(t,e=1){this._fillAlpha=e,t?t instanceof n.Il?this._pushOp(new R(t.toCSS(e))):(this.isMeasured=!0,this._pushOp(new R(t))):this._pushOp(new R("rgba(0, 0, 0, "+e+")"))}endFill(){this._pushOp(new U(this._hasShadows))}endStroke(){this._pushOp(new B)}beginPath(){this._pushOp(new A)}lineStyle(t=0,e,i=1,s,r){this._strokeAlpha=i,e?e instanceof n.Il?this._pushOp(new F(t,e.toCSS(i),s,r)):this._pushOp(new F(t,e,s,r)):this._pushOp(new F(t,"rgba(0, 0, 0, "+i+")",s,r))}setLineDash(t){this._pushOp(new I(t||[]))}setLineDashOffset(t=0){this._pushOp(new H(t))}drawRect(t,e,i,s){this._pushOp(new z(t,e,i,s))}drawCircle(t,e,i){this._pushOp(new G(t,e,i))}drawEllipse(t,e,i,s){this._pushOp(new V(t,e,i,s))}arc(t,e,i,s,n,r=!1){this._pushOp(new W(t,e,i,s,n,r))}arcTo(t,e,i,s,n){this._pushOp(new Y(t,e,i,s,n))}lineTo(t,e){this._pushOp(new j(t,e))}moveTo(t,e){this._pushOp(new X(t,e))}bezierCurveTo(t,e,i,s,n,r){this._pushOp(new Z(t,e,i,s,n,r))}quadraticCurveTo(t,e,i,s){this._pushOp(new K(t,e,i,s))}closePath(){this._pushOp(new $)}shadow(t,e=0,i=0,s=0,n){this._hasShadows=!0,this._pushOp(new q(n?t.toCSS(n):t.toCSS(this._fillAlpha||this._strokeAlpha),e,i,s))}image(t,e,i,s,n){this._pushOp(new Q(t,e,i,s,n))}svgPath(t){let e=0,i=0,s=null,n=null,r=null,o=null;const a=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,h=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g,l=this._operations.length;try{let l;for(;null!==(l=a.exec(t));){const t=l[1],a=l[2],u=[];for(;null!==(l=h.exec(a));)u.push(l[1]);switch("S"!==t&&"s"!==t&&"C"!==t&&"c"!==t&&(s=null,n=null),"Q"!==t&&"q"!==t&&"T"!==t&&"t"!==t&&(r=null,o=null),t){case"M":b(t,u.length,2),e=+u[0],i=+u[1],this.moveTo(e,i);for(let t=2;t{this.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y),e=t.x,i=t.y}))}break;case"Z":case"z":v(t,u.length,0),this.closePath()}}}catch(e){this._operations.length=l,console.warn("Error when parsing svgPath:\n "+e.message+"\n"+t)}}_runPath(t){t.beginPath(),c.each(this._operations,(e=>{e.path(t)}))}_render(t,e=0){super._render(t);const i=t.layer.dirty,s=this._isInteractive(t),n=this._ghostOnly(e),r=this._drawGhost(t,e);if(i||s||n){const e=t.layer.context,s=this._renderer._ghostLayer.context;let o;i&&!n&&(e.globalCompositeOperation=this.blendMode,e.beginPath()),r&&(s.beginPath(),o=this._getColorId()),c.each(this._operations,(t=>{i&&!n&&(t.path(e),t.colorize(e,void 0)),r&&(t.pathGhost(s),t.colorizeGhost(s,o))}))}}renderDetached(t){if(this.visible){this._setMatrix(),t.save();const e=this.mask;e&&(e._setMatrix(),e._transform(t,1),e._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transform(t,1),this.filter&&(t.filter=this.filter),t.globalCompositeOperation=this.blendMode,t.beginPath(),c.each(this._operations,(e=>{e.path(t),e.colorize(t,void 0)})),t.restore()}}_addBounds(t){this.visible&&this.isMeasured&&c.each(this._operations,(e=>{e.addBounds(t)}))}}class tt extends S{constructor(t,e,i){super(t),this.resolution=1,this.textVisible=!0,this._originalScale=1,this.text=e,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_shared(t){this.style.textAlign&&(t.textAlign=this.style.textAlign),this.style.direction&&(t.direction=this.style.direction),this.style.textBaseline&&(t.textBaseline=this.style.textBaseline)}_prerender(t,e=!1,i=!1){super._render(t);const s=t.layer.context,r=this._renderer._ghostLayer.context,o=this.style;let a=this._getFontStyle(void 0,i);s.font=a,this._isInteractive(t)&&!e&&(r.font=a),o.fill&&(o.fill instanceof n.Il?s.fillStyle=o.fill.toCSS(null!=o.fillOpacity?o.fillOpacity:1):s.fillStyle=o.fill),o.shadowColor&&(t.layer.context.shadowColor=o.shadowColor.toCSS(o.shadowOpacity||1)),o.shadowBlur&&(t.layer.context.shadowBlur=o.shadowBlur),o.shadowOffsetX&&(t.layer.context.shadowOffsetX=o.shadowOffsetX),o.shadowOffsetY&&(t.layer.context.shadowOffsetY=o.shadowOffsetY),this._shared(s),this._isInteractive(t)&&!e&&(r.fillStyle=this._getColorId(),this._shared(r))}_getFontStyle(t,e=!1){const i=this.style;let s=[];return t&&t.fontVariant?s.push(t.fontVariant):i.fontVariant&&s.push(i.fontVariant),e||(t&&t.fontWeight?s.push(t.fontWeight):i.fontWeight&&s.push(i.fontWeight)),t&&t.fontStyle?s.push(t.fontStyle):i.fontStyle&&s.push(i.fontStyle),t&&t.fontSize?(d.isNumber(t.fontSize)&&(t.fontSize=t.fontSize+"px"),s.push(t.fontSize)):i.fontSize&&(d.isNumber(i.fontSize)&&(i.fontSize=i.fontSize+"px"),s.push(i.fontSize)),t&&t.fontFamily?s.push(t.fontFamily):i.fontFamily?s.push(i.fontFamily):s.length&&s.push("Arial"),s.join(" ")}_render(t,e=0){if(this._textInfo||this._measure(t),this.textVisible){const i=this._isInteractive(t),s=t.layer.context,r=t.layer.dirty,o=this._renderer._ghostLayer.context,a=this._ghostOnly(e),l=this._drawGhost(t,e);s.save(),o.save(),this._prerender(t),c.each(this._textInfo,((e,u)=>{c.each(e.textChunks,((c,u)=>{if(c.style&&(s.save(),o.save(),a||(s.font=c.style),this._isInteractive(t)&&(o.font=c.style)),c.fill&&(s.save(),a||(s.fillStyle=c.fill.toCSS())),r&&!a&&s.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),"underline"==c.textDecoration||"line-through"==c.textDecoration){let t=1,i=1,r=c.height;const o=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(o)>-1){const t=this._measureText(c.text,s);c.width=t.actualBoundingBoxLeft+t.actualBoundingBoxRight}let l,u=c.offsetX;switch(this.style.textAlign){case"right":case"end":u-=c.width;break;case"center":u-=c.width/2}if(c.style)switch(h.V.getTextStyle(c.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":t=2}r&&(i=r/20),l="line-through"==c.textDecoration?t+e.offsetY+c.offsetY-c.height/2:t+1.5*i+e.offsetY+c.offsetY,a||(s.save(),s.beginPath(),c.fill?s.strokeStyle=c.fill.toCSS():this.style.fill&&this.style.fill instanceof n.Il&&(s.strokeStyle=this.style.fill.toCSS()),s.lineWidth=t*i,s.moveTo(u,l),s.lineTo(u+c.width,l),s.stroke(),s.restore())}i&&this.interactive&&l&&o.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),c.fill&&s.restore(),c.style&&(s.restore(),o.restore())}))})),s.restore(),o.restore()}}_addBounds(t){if(this.visible&&this.isMeasured){const e=this._measure({inactive:this.inactive,layer:this.getLayer()});C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction;this._textInfo=[];const n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=d.isNumber(r)&&("wrap"==n||"wrap-no-break"==n);e.save(),i.save(),this._prerender(t,!0,this._ignoreFontWeight());const p="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",g=this.text.toString().replace(/\r/g,"").split(/\n/);let f,_=!0,m=0,y=0,v=0;c.each(g,((t,s)=>{let n;for(n=""==t?[{type:"value",text:""}]:h.V.chunk(t,!1,this.style.ignoreFormatting);n.length>0;){let t={offsetY:v,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const s=this._measureText(p,e),g=s.actualBoundingBoxAscent+s.actualBoundingBoxDescent;let w;t.height=g,t.ascent=s.actualBoundingBoxAscent;let b,x,D,k=this.style.textDecoration,T=!1,M=!0,E=[];c.eachContinue(n,((s,o)=>{if("format"==s.type)if("[/]"==s.text)_||(e.restore(),i.restore(),_=!0),b=void 0,f=void 0,x=void 0,k=this.style.textDecoration,D=void 0,w=s.text;else{_||(e.restore(),i.restore());let n=h.V.getTextStyle(s.text);const r=this._getFontStyle(n);e.save(),i.save(),e.font=r,f=r,w=s.text,n.textDecoration&&(k=n.textDecoration),n.fill&&(b=n.fill),n.width&&(x=d.toNumber(n.width)),n.verticalAlign&&(D=n.verticalAlign),_=!1;const o=this._measureText(p,e),a=o.actualBoundingBoxAscent+o.actualBoundingBoxDescent;a>t.height&&(t.height=a),o.actualBoundingBoxAscent>t.ascent&&(t.ascent=o.actualBoundingBoxAscent)}else if("value"==s.type&&!T){const i=this._measureText(s.text,e);let h=i.actualBoundingBoxLeft+i.actualBoundingBoxRight;if(a){this.truncated=void 0;let i=M||this.style.breakWords||!1;const n=this.style.ellipsis||"",o=this._measureText(n,e),a=o.actualBoundingBoxLeft+o.actualBoundingBoxRight;if(t.width+h>r){const o=r-t.width-a;s.text=this._truncateText(e,s.text,o,i),s.text+=n,T=!0,this.truncated=!0}}else if(u&&t.width+h>r){const i=r-t.width,a=this._truncateText(e,s.text,i,!1,M&&"wrap-no-break"!=this.style.oversizedBehavior);if(""==a)return this.textVisible=!0,!1;E=n.slice(o+1),l.trim(a)!=l.trim(s.text)&&(E.unshift({type:"value",text:s.text.substr(a.length)}),w&&E.unshift({type:"format",text:w})),s.text=l.trim(a),n=[],T=!0}let c=1,d=1;if(f&&x&&x>h){const t=h/x;switch(this.style.textAlign){case"right":case"end":c=t;break;case"center":c=t,d=t;break;default:d=t}h=x}const p=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent;p>t.height&&(t.height=p),i.actualBoundingBoxAscent>t.ascent&&(t.ascent=i.actualBoundingBoxAscent),t.width+=h,t.left+=i.actualBoundingBoxLeft/c,t.right+=i.actualBoundingBoxRight/d,t.textChunks.push({style:f,fill:b,text:s.text,width:h,height:p,left:i.actualBoundingBoxLeft,right:i.actualBoundingBoxRight,ascent:i.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:k,verticalAlign:D}),M=!1}return!0})),this.style.lineHeight instanceof o.gG?(t.height*=this.style.lineHeight.value,t.ascent*=this.style.lineHeight.value):(t.height*=this.style.lineHeight||1.2,t.ascent*=this.style.lineHeight||1.2),m{let i=0;c.each(t.textChunks,(e=>{if(e.offsetX=i+e.left-t.left,e.offsetY+=t.height-t.height*(this.style.baselineRatio||.19),i+=e.width*(s?-1:1),e.verticalAlign)switch(e.verticalAlign){case"super":e.offsetY-=t.height/2-e.height/2;break;case"sub":e.offsetY+=e.height/2}}))}));const w={left:s?-y:-m,top:0,right:s?m:y,bottom:v};if("none"!==n){const t=this._fitRatio(w);if(t<1)if("fit"==n)d.isNumber(this.style.minScale)&&ti&&""!=e);return e}_measureText(t,e){let i=e.measureText(t),s={};if(null==i.actualBoundingBoxAscent){const e=document.createElement("div");e.innerText=t,e.style.visibility="hidden",e.style.position="absolute",e.style.top="-1000000px;",e.style.fontFamily=this.style.fontFamily||"",e.style.fontSize=this.style.fontSize+"",document.body.appendChild(e);const n=e.getBoundingClientRect();document.body.removeChild(e);const r=n.height,o=i.width;s={actualBoundingBoxAscent:r,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:o,fontBoundingBoxAscent:r,fontBoundingBoxDescent:0,width:o}}else s={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const n=i.width;switch(this.style.textAlign){case"right":case"end":s.actualBoundingBoxLeft=n,s.actualBoundingBoxRight=0;break;case"center":s.actualBoundingBoxLeft=n/2,s.actualBoundingBoxRight=n/2;break;default:s.actualBoundingBoxLeft=0,s.actualBoundingBoxRight=n}return s}}class et{constructor(){this.lineHeight=(0,o.aQ)(120),this.baselineRatio=.19,this.oversizedBehavior="none",this.breakWords=!1,this.ellipsis="…",this.ignoreFormatting=!1}}class it extends tt{constructor(){super(...arguments),this.textType="circular",this.inside=!1,this.orientation="auto",this.kerning=0,this._textReversed=!1}_render(t,e=0){"circular"===this.textType?this._renderCircular(t,e):super._render(t,e)}_renderCircular(t,e=0){if(this.textVisible){this._prerender(t);const i=this._isInteractive(t),s=t.layer.context,n=t.layer.dirty,r=this._renderer._ghostLayer.context;s.save(),i&&r.save(),this._textInfo||this._measure(t);let o=this.radius||0,a=this.startAngle||0,h=0,l=this.orientation,u="auto"==l?"auto":"inward"==l;const d=this.inside,g=this.style.textAlign||"left",f=this.kerning||0;let _="left"==g?1:-1;const m=!this._textReversed,y=this._ghostOnly(e),v=this._drawGhost(t,e);if("auto"==u){let t=0,e=0;c.each(this._textInfo,((e,i)=>{const s=a+e.width/(o-e.height)/2*-_;s>t&&(t=s)})),e="left"==g?(t+h/2)*p.DEGREES:"right"==g?(t-h/2)*p.DEGREES:a*p.DEGREES,e=p.normalizeAngle(e),u=e>=270||e<=90}1==u&&m&&(this._textInfo.reverse(),this._textReversed=!0),c.each(this._textInfo,((t,e)=>{const l=t.height;d||(o+=l),(-1==_&&u||1==_&&!u)&&m&&t.textChunks.reverse();let p=a;h=0,"center"==g&&(p+=t.width/(o-l)/2*-_,h=p-a),p+=Math.PI*(u?0:1),s.save(),i&&r.save(),y||s.rotate(p),i&&r.rotate(p);let w=0;c.each(t.textChunks,((t,e)=>{const a=t.text,h=t.width;w=h/2/(o-l)*_,y||s.rotate(w),i&&r.rotate(w),t.style&&(s.save(),r.save(),y||(s.font=t.style),i&&(r.font=t.style)),t.fill&&(s.save(),y||(s.fillStyle=t.fill.toCSS())),y||(s.textBaseline="middle",s.textAlign="center"),i&&(r.textBaseline="middle",r.textAlign="center"),n&&!y&&s.fillText(a,0,(u?1:-1)*(0-o+l/2)),i&&v&&r.fillText(a,0,(u?1:-1)*(0-o+l/2)),t.fill&&s.restore(),t.style&&(s.restore(),r.restore()),w=(h/2+f)/(o-l)*_,y||s.rotate(w),i&&r.rotate(w)})),s.restore(),i&&r.restore(),d&&(o-=l)})),s.restore(),i&&r.restore()}}_measure(t){return"circular"===this.textType?this._measureCircular(t):super._measure(t)}_measureCircular(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction,n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=this.style.ellipsis||"";let p;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,e.save(),i.save(),this._prerender(t,!0);const g=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,_=0,m=0;return c.each(g,((t,n)=>{let g,y,v,w=h.V.chunk(t,!1,this.style.ignoreFormatting),b={offsetY:m,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};c.each(w,((t,n)=>{if("format"==t.type){if("[/]"==t.text)f||(e.restore(),i.restore(),f=!0),y=void 0,g=void 0,v=void 0;else{let s=h.V.getTextStyle(t.text);const n=this._getFontStyle(s);e.save(),i.save(),e.font=n,g=n,s.fill&&(y=s.fill),s.width&&(v=d.toNumber(s.width)),f=!1}a&&(p=this._measureText(u,e))}else if("value"==t.type){let i=t.text.match(/./gu)||[];s&&(i=l.splitString(t.text),i.reverse());for(let t=0;to&&(o=v);const h=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;if(h>b.height&&(b.height=h),n.actualBoundingBoxAscent>b.ascent&&(b.ascent=n.actualBoundingBoxAscent),_+=o,a){p||(p=this._measureText(u,e));const t=p.actualBoundingBoxLeft+p.actualBoundingBoxRight;if(_+t>r){1==b.textChunks.length?this.textVisible=!1:(b.width+=t,b.left+=p.actualBoundingBoxLeft,b.right+=p.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:u,width:t,height:h+p.actualBoundingBoxDescent,left:p.actualBoundingBoxLeft,right:p.actualBoundingBoxRight,ascent:p.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0}));break}}b.width+=o,b.left+=n.actualBoundingBoxLeft,b.right+=n.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:s,width:o,height:h+n.actualBoundingBoxDescent,left:n.actualBoundingBoxLeft,right:n.actualBoundingBoxRight,ascent:n.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0})}}})),this.style.lineHeight instanceof o.gG?b.height*=this.style.lineHeight.value:b.height*=this.style.lineHeight||1.2,this._textInfo.push(b),m+=b.height})),f||(e.restore(),i.restore()),"hide"==n&&_>r&&(this.textVisible=!1),c.each(this._textInfo,(t=>{c.each(t.textChunks,(e=>{e.offsetY+=Math.round((t.height-e.height+(t.ascent-e.ascent))/2)}))})),e.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class st extends S{constructor(t,e){super(t),this.image=e}_dispose(){super._dispose(),this._imageMask&&E(this._imageMask)}getLocalBounds(){if(!this._localBounds){let t=0,e=0;this.width&&(t=this.width),this.height&&(e=this.height),this._localBounds={left:0,top:0,right:t,bottom:e},this._addBounds(this._localBounds)}return this._localBounds}_render(t,e=0){if(super._render(t),this.image){if(void 0===this.tainted&&(this.tainted=M(this.image),t.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;const i=this._ghostOnly(e),s=this._drawGhost(t,e);if(t.layer.dirty&&!i){this.shadowColor&&(t.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(t.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(t.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(t.layer.context.shadowOffsetY=this.shadowOffsetY);const e=this.width||this.image.naturalWidth,i=this.height||this.image.naturalHeight;t.layer.context.drawImage(this.image,0,0,e,i)}if(this.interactive&&this._isInteractive(t)&&s){const t=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(t,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(t){if(void 0===this._imageMask){const e=this.width||t.naturalWidth,i=this.height||t.naturalHeight,s=document.createElement("canvas");s.width=e,s.height=i;const n=s.getContext("2d");n.imageSmoothingEnabled=!1,n.fillStyle=this._getColorId(),n.fillRect(0,0,e,i),M(t)||(n.globalCompositeOperation="destination-in",n.drawImage(t,0,0,e,i)),this._imageMask=s}return this._imageMask}}class nt{constructor(t,e,i,s){this.event=t,this.originalPoint=e,this.point=i,this.bbox=s,this.simulated=!1,this.native=!0,l.supports("touchevents")&&t instanceof Touch?this.id=t.identifier:this.id=null}}class rt extends a.rk{constructor(t){if(super(),this.view=document.createElement("div"),this._layerDom=document.createElement("div"),this.layers=[],this._dirtyLayers=[],this.defaultLayer=this.getLayer(0),this._ghostLayer=new ot,this._deferredGhostLayers=[],this._patternCanvas=document.createElement("canvas"),this._patternContext=this._patternCanvas.getContext("2d"),this._realWidth=0,this._realHeight=0,this._calculatedWidth=0,this._calculatedHeight=0,this.interactionsEnabled=!0,this._listeners={},this._events={},this._colorId=0,this._colorMap={},this._forceInteractive=0,this._omitTainted=!1,this._hovering=new Set,this._dragging=[],this._mousedown=[],this.tapToActivate=!1,this.tapToActivateTimeout=3e3,this._touchActive=!1,this.resolution=null==t?window.devicePixelRatio:t,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new a.ku((()=>{u.each(this._events,((t,e)=>{e.disposer.dispose()})),c.each(this.layers,(t=>{E(t.view),t.exportableView&&E(t.exportableView)})),E(this._ghostLayer.view),E(this._patternCanvas)}))),this._disposers.push(l.onZoom((()=>{null==t&&(this.resolution=window.devicePixelRatio)}))),l.supports("touchevents")){const t=t=>{0!==this._dragging.length&&c.eachContinue(this._dragging,(e=>!e.value.shouldCancelTouch()||(t.preventDefault(),!1))),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(l.addEventListener(window,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchmove",(()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()}),{passive:!0})),this._disposers.push(l.addEventListener(window,"click",(t=>{this._touchActive=!1}),{passive:!0})),this._disposers.push(l.addEventListener(this.view,"click",(t=>{window.setTimeout((()=>{this._touchActive=!0,this._delayTouchDeactivate()}),100)}),{passive:!0}))}l.supports("wheelevents")&&this._disposers.push(l.addEventListener(this.view,"wheel",(t=>{let e=!1;this._hovering.forEach((t=>{if(t.wheelable)return e=!0,!1})),e&&t.preventDefault()}),{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout((()=>{this._touchActive=!1}),this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(t){t?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(t,e,i,s){return this.defaultLayer.context.createLinearGradient(t,e,i,s)}createRadialGradient(t,e,i,s,n,r){return this.defaultLayer.context.createRadialGradient(t,e,i,s,n,r)}createPattern(t,e,i,s,n){return this._patternCanvas.width=s,this._patternCanvas.height=n,this._patternContext.clearRect(0,0,s,n),e.renderDetached(this._patternContext),t.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new N(this)}makeGraphics(){return new J(this)}makeText(t,e){return new tt(this,t,e)}makeTextStyle(){return new et}makeRadialText(t,e){return new it(this,t,e)}makePicture(t){return new st(this,t)}resizeLayer(t){t.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(t,e,i,s){this._realWidth=t,this._realHeight=e,this._calculatedWidth=i,this._calculatedHeight=s,c.each(this.layers,(t=>{t&&(t.dirty=!0,this.resizeLayer(t))})),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(t=!1){const e=document.createElement("canvas"),i=e.getContext("2d",{willReadFrequently:t}),s=new at(e,i);return e.style.position="absolute",e.style.top="0px",e.style.left="0px",s}getLayerByOrder(t){const e=this.layers,i=e.length;for(let s=0;st.order>e.order?1:t.order{t&&t.dirty&&t.visible&&(this._dirtyLayers.push(t),t.clear())})),this._ghostLayer.clear(),t.render({inactive:null,layer:this.defaultLayer});const e=this._deferredGhostLayers;if(e.length&&(e.sort(((t,e)=>t-e)),c.each(e,(e=>{t.render({inactive:null,layer:this.defaultLayer},e)}))),this._ghostLayer.context.restore(),c.each(this.layers,(t=>{if(t){const e=t.context;e.beginPath(),e.moveTo(0,0),e.stroke()}})),c.each(this._dirtyLayers,(t=>{t.context.restore(),t.dirty=!1})),this._hovering.size&&this._lastPointerMoveEvent){const{events:t,target:e,native:i}=this._lastPointerMoveEvent;c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))}}paintId(t){const e=function(t){const e=[0,0,0];for(let i=0;i<24;i++)e[i%3]<<=1,e[i%3]|=1&t,t>>=1;return(0|e[0])+(e[1]<<8)+(e[2]<<16)}(++this._colorId),i=n.Il.fromHex(e).toCSS();return this._colorMap[i]=t,i}_removeObject(t){void 0!==t._colorId&&delete this._colorMap[t._colorId]}_adjustBoundingBox(t){const e=this._ghostLayer.margin;return new DOMRect(-e.left,-e.top,t.width+e.left+e.right,t.height+e.top+e.bottom)}getEvent(t,e=!0){const i=this.view.getBoundingClientRect(),s=t.clientX||0,n=t.clientY||0,r=this._calculatedWidth/this._realWidth,o=this._calculatedHeight/this._realHeight,a={x:s-i.left,y:n-i.top},h={x:(s-(e?i.left:0))*r,y:(n-(e?i.top:0))*o};return new nt(t,a,h,this._adjustBoundingBox(i))}_getHitTarget(t,e,i){if(0===e.width||0===e.height||t.xe.right||t.ye.bottom)return;if(!i||!this._layerDom.contains(i))return;const s=this._ghostLayer.getImageData(t,e);if(0===s.data[0]&&0===s.data[1]&&0===s.data[2])return!1;const r=n.Il.fromRGB(s.data[0],s.data[1],s.data[2]).toCSS();return this._colorMap[r]}getObjectAtPoint(t){const e=this._ghostLayer.getImageArray(t);if(0===e[0]&&0===e[1]&&0===e[2])return;const i=n.Il.fromRGB(e[0],e[1],e[2]).toCSS();return this._colorMap[i]}_withEvents(t,e){const i=this._events[t];if(void 0!==i){i.dispatching=!0;try{e(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,c.keepIf(i.callbacks,(t=>!t.disposed)),0===i.callbacks.length&&(i.disposer.dispose(),delete this._events[t]))}}}_dispatchEventAll(t,e){this.interactionsEnabled&&this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.callback.call(t.context,e)}))}))}_dispatchEvent(t,e,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.object!==e||(t.callback.call(t.context,i),s=!0)}))})),s}_dispatchMousedown(t,e){const i=t.button;if(0!=i&&2!=i&&1!=i&&void 0!==i)return;const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);if(n){const t=s.id;let e=!1;k(n,(i=>{const n={id:t,value:i};return this._mousedown.push(n),!e&&this._dispatchEvent("pointerdown",i,s)&&(e=!0,this._dragging.some((e=>e.value===i&&e.id===t))||this._dragging.push(n)),!0}))}}_dispatchGlobalMousemove(t,e,i){const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);s.native=i,n?(this._hovering.forEach((t=>{t.contains(n)||(this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s))})),s.native&&k(n,(t=>(this._hovering.has(t)||(this._hovering.add(t),t.cursorOverStyle&&(t._replacedCursorStyle=l.getStyle(document.body,"cursor"),l.setStyle(document.body,"cursor",t.cursorOverStyle)),this._dispatchEvent("pointerover",t,s)),!0)))):(this._hovering.forEach((t=>{t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s)})),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(t){this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle)}_dispatchGlobalMouseup(t,e){const i=this.getEvent(t);i.native=e,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(t){if(0!==this._dragging.length){const e=this.getEvent(t),i=e.id;this._dragging.forEach((t=>{t.id===i&&this._dispatchEvent("pointermove",t.value,e)}))}}_dispatchDragEnd(t,e){const i=t.button;let s;if(0==i||void 0===i)s="click";else if(2==i)s="rightclick";else{if(1!=i)return;s="middleclick"}const n=this.getEvent(t),r=n.id;if(0!==this._mousedown.length){const t=this._getHitTarget(n.originalPoint,n.bbox,e);t&&this._mousedown.forEach((e=>{e.id===r&&e.value.contains(t)&&this._dispatchEvent(s,e.value,n)})),this._mousedown.length=0}0!==this._dragging.length&&(this._dragging.forEach((t=>{t.id===r&&this._dispatchEvent("pointerup",t.value,n)})),this._dragging.length=0)}_dispatchDoubleClick(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("dblclick",t,i)))}_dispatchWheel(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("wheel",t,i)))}_makeSharedEvent(t,e){if(void 0===this._listeners[t]){const i=e();this._listeners[t]=new a.DM((()=>{delete this._listeners[t],i.dispose()}))}return this._listeners[t].increment()}_onPointerEvent(t,e){let i=!1,s=null;function n(){s=null,i=!1}return new a.FV([new a.ku((()=>{null!==s&&clearTimeout(s),n()})),l.addEventListener(this.view,l.getRendererEvent(t),(t=>{i=!0,null!==s&&clearTimeout(s),s=window.setTimeout(n,0)})),T(window,t,((t,n)=>{null!==s&&(clearTimeout(s),s=null),e(t,n,i),i=!1}))])}_initEvent(t){switch(t){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",(()=>{const t=(t,e,i)=>{this._lastPointerMoveEvent={events:t,target:e,native:i},c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))};return new a.FV([this._onPointerEvent("pointerdown",t),this._onPointerEvent("pointermove",t)])}));case"globalpointerup":return this._makeSharedEvent("pointerup",(()=>{const t=this._onPointerEvent("pointerup",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}})),e=this._onPointerEvent("pointercancel",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}}));return new a.ku((()=>{t.dispose(),e.dispose()}))}));case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",(()=>{const t=this._onPointerEvent("pointerdown",((t,e)=>{c.each(t,(t=>{this._dispatchMousedown(t,e)}))})),e=this._onPointerEvent("pointermove",(t=>{c.each(t,(t=>{this._dispatchDragMove(t)}))})),i=this._onPointerEvent("pointerup",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))})),s=this._onPointerEvent("pointercancel",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))}));return new a.ku((()=>{t.dispose(),e.dispose(),i.dispose(),s.dispose()}))}));case"dblclick":return this._makeSharedEvent("dblclick",(()=>this._onPointerEvent("dblclick",((t,e)=>{c.each(t,(t=>{this._dispatchDoubleClick(t,e)}))}))));case"wheel":return this._makeSharedEvent("wheel",(()=>l.addEventListener(this.view,l.getRendererEvent("wheel"),(t=>{this._dispatchWheel(t,l.getEventTarget(t))}),{passive:!1})))}}_addEvent(t,e,i,s){let n=this._events[e];void 0===n&&(n=this._events[e]={disposer:this._initEvent(e),callbacks:[],dispatching:!1,cleanup:!1});const r={object:t,context:s,callback:i,disposed:!1};return n.callbacks.push(r),new a.ku((()=>{r.disposed=!0,n.dispatching?n.cleanup=!0:(c.removeFirst(n.callbacks,r),0===n.callbacks.length&&(n.disposer.dispose(),delete this._events[e]))}))}getCanvas(t,e){this.render(t),e||(e={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),n=Math.floor(this._calculatedHeight*this.resolution);if(e.minWidth&&e.minWidth>s){let t=e.minWidth/s;t>i&&(i=t*this.resolution)}if(e.minHeight&&e.minHeight>n){let t=e.minHeight/n;t>i&&(i=t*this.resolution)}if(e.maxWidth&&e.maxWidthn){let t=e.maxHeight/n;t{if(t&&t.visible&&(t.tainted||o)){d=!0,t.exportableView=t.view,t.exportableContext=t.context,t.view=document.createElement("canvas"),t.view.style.position="fixed",t.view.style.top="-10000px",this.view.appendChild(t.view),r.push(t.view);let e=0,o=0;t.margin&&(e+=t.margin.left||0+t.margin.right||0,o+=t.margin.top||0+t.margin.bottom||0),t.view.width=s+e,t.view.height=n+o,t.context=t.view.getContext("2d"),t.dirty=!0,t.scale=i}})),d&&(this._omitTainted=!0,this.render(t),this._omitTainted=!1),c.each(this.layers,(t=>{if(t&&t.visible){let e=0,i=0;t.margin&&(e=-(t.margin.left||0)*this.resolution,i=-(t.margin.top||0)*this.resolution),h.drawImage(t.view,e,i),t.exportableView&&(t.view=t.exportableView,t.exportableView=void 0),t.exportableContext&&(t.context=t.exportableContext,t.exportableContext=void 0),l{t.style.position="",t.style.top="",this.view.removeChild(t)})),a}}class ot{constructor(){this.margin={left:0,right:0,top:0,bottom:0},this._resolution=1,this._width=0,this._height=0,this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(t,e,i,s,n){this._resolution=n,t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(t,e){return this.context.getImageData(Math.round((t.x-e.left)/e.width*this._width),Math.round((t.y-e.top)/e.height*this._height),1,1)}getImageArray(t){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const e=this.imageArray,i=Math.round(t.x*this._resolution),s=4*(Math.round(t.y*this._resolution)*this._width+i);return[e[s],e[s+1],e[s+2],e[s+3]]}setMargin(t){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,c.each(t,(t=>{t.margin&&(this.margin.left=Math.max(this.margin.left,t.margin.left),this.margin.right=Math.max(this.margin.right,t.margin.right),this.margin.top=Math.max(this.margin.top,t.margin.top),this.margin.bottom=Math.max(this.margin.bottom,t.margin.bottom))}))}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class at{constructor(t,e){this.tainted=!0,this.order=0,this.visible=!0,this.dirty=!0,this._width=0,this._height=0,this.view=t,this.context=e}resize(t,e,i,s,n){null!=this.width&&(t=this.width,i=this.width),null!=this.height&&(e=this.height,s=this.height),this.margin?(t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}},4680:function(t,e,i){"use strict";var s;i.d(e,{b:function(){return s}}),function(t){t.ADD="lighter",t.COLOR="color",t.COLOR_BURN="color-burn",t.COLOR_DODGE="color-dodge",t.DARKEN="darken",t.DIFFERENCE="difference",t.DST_OVER="destination-over",t.EXCLUSION="exclusion",t.HARD_LIGHT="hard-light",t.HUE="hue",t.LIGHTEN="lighten",t.LUMINOSITY="luminosity",t.MULTIPLY="multiply",t.NORMAL="source-over",t.OVERLAY="overlay",t.SATURATION="saturation",t.SCREEN="screen",t.SOFT_LIGHT="soft-light",t.SRC_ATOP="source-atop",t.XOR="xor"}(s||(s={}))},1437:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}getFill(t){return{addColorStop:(t,e)=>{}}}_changed(){super._changed()}getBounds(t){const e=this.get("target");if(e){let i=e.globalBounds();const s=t.toLocal({x:i.left,y:i.top}),n=t.toLocal({x:i.right,y:i.top}),r=t.toLocal({x:i.right,y:i.bottom}),o=t.toLocal({x:i.left,y:i.bottom});return{left:Math.min(s.x,n.x,r.x,o.x),top:Math.min(s.y,n.y,r.y,o.y),right:Math.max(s.x,n.x,r.x,o.x),bottom:Math.max(s.y,n.y,r.y,o.y)}}return t._display.getLocalBounds()}}n.className="Gradient",n.classNames=s.JH.classNames.concat([n.className])},1747:function(t,e,i){"use strict";i.d(e,{o:function(){return h}});var s=i(1437),n=i(1112),r=i(5071),o=i(5040),a=i(751);class h extends s.p{getFill(t){const e=this.get("rotation",0);let i=this.getBounds(t),s=i.left||0,h=i.right||0,l=i.top||0,c=i.bottom||0,u=a.cos(e),d=a.sin(e),p=u*(h-s),g=d*(c-l);0==p&&(p=1),0==g&&(g=1);let f=Math.max(p,g);const _=this._root._renderer.createLinearGradient(s,l,s+f*u,l+f*d),m=this.get("stops");if(m){let t=0;r.each(m,(e=>{let i=e.offset;o.isNumber(i)||(i=t/(m.length-1));let s=e.opacity;o.isNumber(s)||(s=1);let r=e.color;if(r){const t=e.lighten;t&&(r=n.Il.lighten(r,t));const o=e.brighten;o&&(r=n.Il.brighten(r,o)),_.addColorStop(i,"rgba("+r.r+","+r.g+","+r.b+","+s+")")}t++}))}return _}}h.className="LinearGradient",h.classNames=s.p.classNames.concat([h.className])},3035:function(t,e,i){"use strict";i.d(e,{y:function(){return r}});var s=i(3437),n=i(5040);class r extends s.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("width",100),e=this.get("height",100),i=this.get("gap",0),s=this.get("strokeWidth",1);if(i){let n=i+s,r=e/n,o=this.get("angle",0)*Math.PI/180;if(0===o)for(let e=-r;e<2*r;e++){const i=Math.round(e*n-n/2)+.5;this._display.moveTo(-t,i),this._display.lineTo(2*t,i)}else{const i=Math.cos(o),s=Math.sin(o),r=2*Math.sqrt(t*t+e*e),a=n/Math.max(Math.abs(i),Math.abs(s)),h=2*Math.ceil(r/a);for(let t=-h;t0&&(r.beginFill(s,n),r.drawRect(0,0,e,i),r.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,r,t,e,i)}this._clear=!1}}n.className="Pattern",n.classNames=s.JH.classNames.concat([n.className])},4429:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(3437);class n extends s.c{_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const t=this.get("canvas");t&&(this.set("width",t.width),this.set("height",t.height))}_draw(){super._draw();const t=this.get("colorOpacity");void 0!==t&&(this._display.alpha=Math.max(0,t));const e=this._image;if(e){const t=this.get("width",100),i=this.get("height",100),s=this.get("fit","image");let n=0,r=0;"pattern"==s?(n=t,r=i,this.markDirty()):(n=e.width,r=e.height,"image"==s&&(this.set("width",n),this.set("height",r)));let o=0,a=0;this.get("centered",!0)&&(o=t/2-n/2,a=i/2-r/2),this._display.image(e,n,r,o,a)}const i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){const t=this.get("src");if(t){const e=new Image;e.src=t,e.decode().then((()=>{this._image=e,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{}))}}}n.className="PicturePattern",n.classNames=s.c.classNames.concat([n.className])},6490:function(t,e,i){"use strict";i.d(e,{SR:function(){return s},Wn:function(){return u},XG:function(){return p},ne:function(){return h},w6:function(){return l}});var s,n=i(7582),r=i(6245),o=i(1112),a=i(256);function h(t){return(0,n.mG)(this,void 0,void 0,(function*(){if(void 0!==t){const e=[];a.each(t,((t,i)=>{e.push(i.waitForStop())})),yield Promise.all(e)}}))}function l(t,e,i){return e+t*(i-e)}function c(t,e,i){return t>=1?i:e}function u(t,e,i){return new r.gG(l(t,e.percent,i.percent))}function d(t,e,i){return o.Il.interpolate(t,e,i)}function p(t,e){return"number"==typeof t&&"number"==typeof e?l:t instanceof r.gG&&e instanceof r.gG?u:t instanceof o.Il&&e instanceof o.Il?d:c}!function(t){t[t.Stopped=0]="Stopped",t[t.Playing=1]="Playing",t[t.Paused=2]="Paused"}(s||(s={}))},5071:function(t,e,i){"use strict";i.r(e),i.d(e,{add:function(){return v},any:function(){return r},copy:function(){return k},each:function(){return a},eachContinue:function(){return l},eachReverse:function(){return h},find:function(){return S},findIndex:function(){return O},findIndexReverse:function(){return P},findMap:function(){return C},findReverse:function(){return N},first:function(){return d},getFirstSortedIndex:function(){return R},getSortedIndex:function(){return A},has:function(){return D},indexOf:function(){return n},insert:function(){return p},insertIndex:function(){return M},keepIf:function(){return U},last:function(){return u},map:function(){return o},move:function(){return y},pushAll:function(){return f},pushOne:function(){return w},remove:function(){return _},removeFirst:function(){return m},removeIndex:function(){return E},replace:function(){return b},setIndex:function(){return g},shiftLeft:function(){return c},shuffle:function(){return L},slice:function(){return T},toArray:function(){return x}});var s=i(5040);function n(t,e){const i=t.length;for(let s=0;s0;)--i,e(t[i],i)}function l(t,e){const i=t.length;for(let s=0;s0;)if(--i,e(t[i],i))return i;return-1}function S(t,e){const i=O(t,e);if(-1!==i)return t[i]}function N(t,e){const i=P(t,e);if(-1!==i)return t[i]}function C(t,e){const i=t.length;for(let s=0;s>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,i=r+1):s=r}return{found:n,index:n?i-1:i}}function R(t,e){let i=0,s=t.length,n=!1;for(;i>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,s=r):s=r}return{found:n,index:i}}function U(t,e){let i=t.length;for(;i>0;)--i,e(t[i])||t.splice(i,1)}},1112:function(t,e,i){"use strict";i.d(e,{$_:function(){return a},Il:function(){return h}});var s=i(6490),n=i(7652),r=i(5040);function o(t){return"#"===t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0].repeat(2)+t[1].repeat(2)+t[2].repeat(2)),parseInt(t,16)}function a(t){return h.fromAny(t)}class h{constructor(t){this._hex=0|t}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return 255&this._hex}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+n.padString(this.r.toString(16),2)+n.padString(this.g.toString(16),2)+n.padString(this.b.toString(16),2)}toHSL(t=1){return n.rgbToHsl({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,e,i){const s=n.hslToRgb({h:t,s:e,l:i});return this.fromRGB(s.r,s.g,s.b)}toString(){return this.toCSSHex()}static fromHex(t){return new h(t)}static fromRGB(t,e,i){return new h((0|i)+(e<<8)+(t<<16))}static fromString(t){return new h(o(t))}static fromCSS(t){return new h(function(t){let e=(t=t.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return 0;let i="";for(let t=1;t<=3;t++){let s=parseInt(e[t]).toString(16);1==s.length&&(s="0"+s),i+=s}return o(i)}(t))}static fromAny(t){if(r.isString(t)){if("#"==t[0])return h.fromString(t);if("rgb"==t.substr(0,3))return h.fromCSS(t)}else{if(r.isNumber(t))return h.fromHex(t);if(t instanceof h)return h.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,e,i){const s=n.alternativeColor({r:t.r,g:t.g,b:t.b},e?{r:e.r,g:e.g,b:e.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(s.r,s.g,s.b)}static interpolate(t,e,i,n="rgb"){if("hsl"==n){const n=e.toHSL(),r=i.toHSL();return h.fromHSL((0,s.w6)(t,n.h,r.h),(0,s.w6)(t,n.s,r.s),(0,s.w6)(t,n.l,r.l))}return h.fromRGB((0,s.w6)(t,e.r,i.r),(0,s.w6)(t,e.g,i.g),(0,s.w6)(t,e.b,i.b))}static lighten(t,e){const i=n.lighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static brighten(t,e){const i=n.brighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static saturate(t,e){const i=n.saturate({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}}},2754:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});var s=i(6331),n=i(1112);class r extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const t=this.getPrivate("currentPass"),e=this.get("colors",[this.get("baseColor",n.Il.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",e.length);const i=this.getPrivate("numColors"),s=this.get("passOptions"),r=this.get("reuse");for(let o=0;o1;)r-=1;let a=i.s+(s.saturation||0)*t;a>1&&(a=1),a<0&&(a=0);let h=i.l+(s.lightness||0)*t;for(;h>1;)h-=1;e.push(n.Il.fromHSL(r,a,h))}}getIndex(t){const e=this.get("colors",[]),i=this.get("saturation");return t>=e.length?(this.generateColors(),this.getIndex(t)):null!=i?n.Il.saturate(e[t],i):e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}r.className="ColorSet",r.classNames=s.JH.classNames.concat([r.className])},9582:function(t,e,i){"use strict";i.d(e,{Q:function(){return r},k:function(){return n}});var s=i(7144);class n extends s.aV{incrementRef(){}decrementRef(){}_onPush(t){this.processor&&this.processor.processRow(t),super._onPush(t)}_onInsertIndex(t,e){this.processor&&this.processor.processRow(e),super._onInsertIndex(t,e)}_onSetIndex(t,e,i){this.processor&&this.processor.processRow(i),super._onSetIndex(t,e,i)}}class r{constructor(t){this._value=t}incrementRef(){}decrementRef(){}}},6460:function(t,e,i){"use strict";i.d(e,{C:function(){return h}});var s=i(6331),n=i(7255),r=i(462),o=i(5040),a=i(7652);class h extends s.JH{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i=!1){let s;void 0!==e&&""!==e||(e=this.get("dateFormat","yyyy-MM-dd"));let n=t;if(o.isObject(e))try{const t=this.get("intlLocales");return t?new Intl.DateTimeFormat(t,e).format(n):new Intl.DateTimeFormat(void 0,e).format(n)}catch(t){return"Invalid"}let r=this.parseFormat(e);const a=this._root.timezone;let h=n;return!a||this._root.utc||i||(n=a.convertLocal(n)),o.isNumber(n.getTime())?(s=this.applyFormat(n,r,i,h),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s):"Invalid date"}applyFormat(t,e,i=!1,s){let n,h,l,c,u,d,p,g,f=e.template,_=t.getTime();this._root.utc&&!i?(n=t.getUTCFullYear(),h=t.getUTCMonth(),l=t.getUTCDay(),c=t.getUTCDate(),u=t.getUTCHours(),d=t.getUTCMinutes(),p=t.getUTCSeconds(),g=t.getUTCMilliseconds()):(n=t.getFullYear(),h=t.getMonth(),l=t.getDay(),c=t.getDate(),u=t.getHours(),d=t.getMinutes(),p=t.getSeconds(),g=t.getMilliseconds());for(let i=0,m=e.parts.length;i=12?this._t("PM"):this._t("AM");break;case"aa":m=u>=12?this._t("P.M."):this._t("A.M.");break;case"aaa":m=u>=12?this._t("P"):this._t("A");break;case"h":m=a.get12Hours(u).toString();break;case"hh":m=a.padString(a.get12Hours(u),2,"0");break;case"H":m=u.toString();break;case"HH":m=a.padString(u,2,"0");break;case"K":m=a.get12Hours(u,0).toString();break;case"KK":m=a.padString(a.get12Hours(u,0),2,"0");break;case"k":m=(u+1).toString();break;case"kk":m=a.padString(u+1,2,"0");break;case"m":m=d.toString();break;case"mm":m=a.padString(d,2,"0");break;case"s":m=p.toString();break;case"ss":m=a.padString(p,2,"0");break;case"S":case"SS":case"SSS":m=Math.round(g/1e3*Math.pow(10,e.parts[i].length)).toString();break;case"x":m=_.toString();break;case"n":case"nn":case"nnn":m=a.padString(g,e.parts[i].length,"0");break;case"z":m=a.getTimeZone(s||t,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":m=a.getTimeZone(s||t,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":m=a.getTimeZone(s||t,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":m=a.getTimeZone(s||t,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let f=this._root.utc?"UTC":this._root.timezone;f instanceof r.r&&(f=f.name);const y=f?a.getTimezoneOffset(f,s||t):t.getTimezoneOffset();let v=Math.abs(y)/60,w=Math.floor(v),b=60*v-60*w;this._root.utc&&(w=0,b=0),"Z"==e.parts[i]?(m="GMT",m+=y>0?"-":"+",m+=a.padString(w,2)+":"+a.padString(b,2)):(m=y>0?"-":"+",m+=a.padString(w,2)+a.padString(b,2));break;case"i":m=t.toISOString();break;case"I":m=t.toUTCString()}f=f.replace(o.PLACEHOLDER,m)}return f}parseFormat(t){let e={template:"",parts:[]},i=n.V.chunk(t,!0);for(let t=0;t-1&&(l.year=parseInt(p[h.year])),h.year3>-1){let t=parseInt(p[h.year3]);t+=1e3,l.year=t}if(h.year2>-1){let t=parseInt(p[h.year2]);t+=t>50?1e3:2e3,l.year=t}if(h.year1>-1){let t=parseInt(p[h.year1]);t=10*Math.floor((new Date).getFullYear()/10)+t,l.year=t}if(h.monthLong>-1&&(l.month=this.resolveMonth(p[h.monthLong])),h.monthShort>-1&&(l.month=this.resolveShortMonth(p[h.monthShort])),h.month>-1&&(l.month=parseInt(p[h.month])-1),h.week>-1&&-1===h.day&&(l.month=0,l.day=a.getDayFromWeek(parseInt(p[h.week]),l.year,1,i)),h.day>-1&&(l.day=parseInt(p[h.day])),h.yearDay>-1&&(l.month=0,l.day=parseInt(p[h.yearDay])),h.hourBase0>-1&&(l.hour=parseInt(p[h.hourBase0])),h.hourBase1>-1&&(l.hour=parseInt(p[h.hourBase1])-1),h.hour12Base0>-1){let t=parseInt(p[h.hour12Base0]);11==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.hour12Base1>-1){let t=parseInt(p[h.hour12Base1]);12==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.minute>-1&&(l.minute=parseInt(p[h.minute])),h.second>-1&&(l.second=parseInt(p[h.second])),h.millisecond>-1){let t=parseInt(p[h.millisecond]);2==h.millisecondDigits?t*=10:1==h.millisecondDigits&&(t*=100),l.millisecond=t}if(h.timestamp>-1){l.timestamp=parseInt(p[h.timestamp]);const t=new Date(l.timestamp);l.year=t.getUTCFullYear(),l.month=t.getUTCMonth(),l.day=t.getUTCDate(),l.hour=t.getUTCHours(),l.minute=t.getUTCMinutes(),l.second=t.getUTCSeconds(),l.millisecond=t.getUTCMilliseconds()}h.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.zone])),h.iso>-1&&(l.year=o.toNumber(p[h.iso+0]),l.month=o.toNumber(p[h.iso+1])-1,l.day=o.toNumber(p[h.iso+2]),l.hour=o.toNumber(p[h.iso+3]),l.minute=o.toNumber(p[h.iso+4]),l.second=o.toNumber(p[h.iso+5]),l.millisecond=o.toNumber(p[h.iso+6]),"Z"==p[h.iso+7]||"z"==p[h.iso+7]?l.utc=!0:""!=p[h.iso+7]&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.iso+7]))),s=l.utc?new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else s=new Date(t);return s}resolveTimezoneOffset(t,e){if(e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let i=e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),s=i[1],n=i[2],r=i[3],o=60*parseInt(n)+parseInt(r);return"+"==s&&(o*=-1),o-(t||new Date).getTimezoneOffset()}return 0}resolveMonth(t){let e=this._months().indexOf(t);return e>-1||!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._months()).indexOf(t),e>-1)?e:0}resolveShortMonth(t){let e=this._shortMonths().indexOf(t);return e>-1?e:(e=this._months().indexOf(t),e>-1||this._root.language&&!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._shortMonths()).indexOf(t),e>-1)?e:0)}isAm(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1}getStringList(t){let e=[];for(let i=0;i{t.dispose()}))}}class a extends n{constructor(t){super(),this._disposers=t}_dispose(){s.each(this._disposers,(t=>{t.dispose()}))}get disposers(){return this._disposers}}class h extends n{_dispose(){null!=this._disposer&&(this._disposer.dispose(),this._disposer=void 0)}get(){return this._value}set(t,e){null!=this._disposer&&this._disposer.dispose(),this._disposer=e,this._value=t}reset(){this.set(void 0,void 0)}}class l extends r{constructor(){super(...arguments),this._counter=0}increment(){return++this._counter,new r((()=>{--this._counter,0===this._counter&&this.dispose()}))}}},798:function(t,e,i){"use strict";i.d(e,{$:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{constructor(){super(...arguments),this._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}}_setDefaults(){const t="_duration_millisecond",e="_duration_second",i="_duration_minute",s="_duration_hour",n="_duration_day",r="_duration_week",o="_duration_month",a="_minute",h="_hour",l="_day",c="_week",u="_week",d="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(t),second:this._t(t+"_second"),minute:this._t(t+a),hour:this._t(t+h),day:this._t(t+l),week:this._t(t+c),month:this._t(t+u),year:this._t(t+d)},second:{second:this._t(e),minute:this._t(e+a),hour:this._t(e+h),day:this._t(e+l),week:this._t(e+c),month:this._t(e+u),year:this._t(e+d)},minute:{minute:this._t(i),hour:this._t(i+h),day:this._t(i+l),week:this._t(i+c),month:this._t(i+u),year:this._t(i+d)},hour:{hour:this._t(s),day:this._t(s+l),week:this._t(s+c),month:this._t(s+u),year:this._t(s+d)},day:{day:this._t(n),week:this._t(n+c),month:this._t(n+u),year:this._t(n+d)},week:{week:this._t(r),month:this._t(r+u),year:this._t(r+d)},month:{month:this._t(o),year:this._t(o+d)},year:{year:this._t("_duration_year")}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s=i||this.get("baseUnit");void 0!==e&&""!==e||(e=null!=this.get("durationFormat")?this.get("durationFormat"):this.getFormat(a.toNumber(t),void 0,s)),e=o.cleanFormat(e);let n,r=this.parseFormat(e,s),h=Number(t);n=h>this.get("negativeBase")?r.positive:h{if(e.parsed)return;let i=e.source,s=[];s=e.source.match(/^\[([^\]]*)\]/),s&&s.length&&""!==s[0]&&(i=e.source.substr(s[0].length),e.color=s[1]);let r=n.V.chunk(i,!0);for(let t=0;t{"millisecond"==t&&1e3==i?(h.second++,h.millisecond=0):"second"==t&&60==i?(h.minute++,h.second=0):"minute"==t&&60==i?(h.hour++,h.minute=0):"hour"==t&&24==i?(h.day++,h.hour=0):"day"==t&&7==i&&-1!==e.parts.indexOf("w")?(h.week++,h.day=0):"day"==t&&30==i?(h.month++,h.day=0):"month"==t&&12==i&&(h.year++,h.month=0)}));for(let t=0,i=e.parts.length;t{if(t==e||i){if(s/n<=1)return i||(i=t),!1;i=t}return!0})),i}getMilliseconds(t,e){return e||(e=this.get("baseUnit")),t*this._getUnitValue(e)}_getUnitValue(t){return this._getUnitValues()[t]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}},9395:function(t,e,i){"use strict";i.r(e),i.d(e,{bounce:function(){return k},circle:function(){return c},cubic:function(){return o},elastic:function(){return P},exp:function(){return h},inOut:function(){return p},linear:function(){return n},out:function(){return d},pow:function(){return a},quad:function(){return r},sine:function(){return l},yoyo:function(){return u}});var s=i(751);function n(t){return t}function r(t){return t*t}function o(t){return t*t*t}function a(t,e){return Math.pow(t,e)}function h(t){return Math.pow(2,10*t-10)}function l(t){return 1-Math.cos(t*s.HALFPI)}function c(t){return 1-Math.sqrt(1-t*t)}function u(t){return function(e){return t(e<.5?2*e:2*(1-e))}}function d(t){return function(e){return 1-t(1-e)}}function p(t){return function(e){return e<=.5?t(2*e)/2:1-t(2*(1-e))/2}}let g=4/11,f=6/11,_=8/11,m=3/4,y=9/11,v=10/11,w=15/16,b=21/22,x=63/64,D=1/g/g;function k(t){return 1-function(t){return t{this._userSettings[t]=!0}))}get(t,e){const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._settings[t]=e}set(t,e){this._userSettings[t]=!0,this.setRaw(t,e)}remove(t){delete this._userSettings[t],delete this._settings[t]}setAll(t){o.entries(t).forEach((([t,e])=>{this.set(t,e)}))}_eachSetting(t){o.each(this._settings,t)}apply(){const t={stateAnimationEasing:!0,stateAnimationDuration:!0},e=this._entity.states.lookup("default");this._eachSetting(((i,s)=>{t[i]||(t[i]=!0,this!==e&&(i in e._settings||(e._settings[i]=this._entity.get(i))),this._entity.set(i,s))}))}applyAnimate(t){null==t&&(t=this._settings.stateAnimationDuration),null==t&&(t=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let e=this._settings.stateAnimationEasing;null==e&&(e=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",a.cubic)));const i=this._entity.states.lookup("default"),s={stateAnimationEasing:!0,stateAnimationDuration:!0},n={};return this._eachSetting(((r,o)=>{if(!s[r]){s[r]=!0,this!=i&&(r in i._settings||(i._settings[r]=this._entity.get(r)));const a=this._entity.animate({key:r,to:o,duration:t,easing:e});a&&(n[r]=a)}})),n}}class l{constructor(t){this._states={},this._entity=t}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new h(this._entity,e);return this._states[t]=i,i}}remove(t){delete this._states[t]}apply(t){const e=this._states[t];e&&e.apply(),this._entity._applyState(t)}applyAnimate(t,e){let i;const s=this._states[t];return s&&(i=s.applyAnimate(e)),this._entity._applyStateAnimated(t,e),i}}var c=i(3145),u=i(5071),d=i(3540);class p{constructor(t){this._callbacks={},this._disabled={},this._entity=t}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),this._entity._markDirtyKey(t),new s.ku((()=>{u.removeFirst(i,e)&&this._entity._markDirtyKey(t)}))}remove(t){const e=this._callbacks[t];void 0!==e&&(delete this._callbacks[t],0!==e.length&&this._entity._markDirtyKey(t))}enable(t){this._disabled[t]&&(delete this._disabled[t],this._entity._markDirtyKey(t))}disable(t){this._disabled[t]||(this._disabled[t]=!0,this._entity._markDirtyKey(t))}fold(t,e){if(!this._disabled[t]){const i=this._callbacks[t];if(void 0!==i)for(let s=0,n=i.length;s{if(this._stopped)t();else{const e=()=>{i.dispose(),t()},i=this.events.on("stopped",e)}}))}_checkEnded(){return!(this._loops>1&&(--this._loops,1))}_run(t){null!==this._oldTime&&(this._time+=t-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=t}_reset(t){this._oldTime=t,this._time=0}_value(t){return this._interpolate(this._easing(t),this._from,this._to)}}let f=0;class _{constructor(t){this.uid=++f,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._prevSettings={},this._prevPrivateSettings={},this._animatingSettings={},this._animatingPrivateSettings={},this._disposed=!1,this._userProperties={},this.enableDispose=!0,this._settings=t}_checkDirty(){o.keys(this._settings).forEach((t=>{this._userProperties[t]=!0,this._markDirtyKey(t)}))}resetUserSettings(){this._userProperties={}}_runAnimation(t){let e=r.SR.Stopped;if(!this.isDisposed()){let i=!1,s=!1;o.each(this._animatingSettings,((e,n)=>{if(n.stopped)this._stopAnimation(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.set(e,n._value(1)):(i=!0,n._reset(t),this._set(e,n._value(1))):(i=!0,this._set(e,n._value(s)))}else s=!0})),o.each(this._animatingPrivateSettings,((e,n)=>{if(n.stopped)this._stopAnimationPrivate(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.setPrivate(e,n._value(1)):(i=!0,n._reset(t),this._setPrivate(e,n._value(1))):(i=!0,this._setPrivate(e,n._value(s)))}else s=!0})),i?e=r.SR.Playing:s&&(e=r.SR.Paused)}return e}_markDirtyKey(t){this.markDirty()}_markDirtyPrivateKey(t){this.markDirty()}on(t,e){let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}off(t,e){let i=this._settingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._settingEvents[t]}onPrivate(t,e){let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}offPrivate(t,e){let i=this._privateSettingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._privateSettingEvents[t]}getRaw(t,e){const i=this._settings[t];return void 0!==i?i:e}has(t){return t in this._settings}get(t,e){return this.getRaw(t,e)}_sendKeyEvent(t,e){const i=this._settingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_sendPrivateKeyEvent(t,e){const i=this._privateSettingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_setRaw(t,e,i){this._prevSettings[t]=e,this._sendKeyEvent(t,i)}setRaw(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&this._setRaw(t,i,e)}_set(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&(this._setRaw(t,i,e),this._markDirtyKey(t))}_stopAnimation(t){const e=this._animatingSettings[t];e&&(delete this._animatingSettings[t],e.stop())}set(t,e){return this._set(t,e),this._stopAnimation(t),e}remove(t){t in this._settings&&(this._prevSettings[t]=this._settings[t],delete this._settings[t],this._sendKeyEvent(t,void 0),this._markDirtyKey(t)),this._stopAnimation(t)}removeAll(){u.each(o.keys(this._settings),(t=>{this.remove(t)}))}getPrivate(t,e){const i=this._privateSettings[t];return void 0!==i?i:e}_setPrivateRaw(t,e,i){this._prevPrivateSettings[t]=e,this._sendPrivateKeyEvent(t,i)}setPrivateRaw(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&this._setPrivateRaw(t,i,e)}_setPrivate(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&(this._setPrivateRaw(t,i,e),this._markDirtyPrivateKey(t))}_stopAnimationPrivate(t){const e=this._animatingPrivateSettings[t];e&&(e.stop(),delete this._animatingPrivateSettings[t])}setPrivate(t,e){return this._setPrivate(t,e),this._stopAnimationPrivate(t),e}removePrivate(t){t in this._privateSettings&&(this._prevPrivateSettings[t]=this._privateSettings[t],delete this._privateSettings[t],this._markDirtyPrivateKey(t)),this._stopAnimationPrivate(t)}setAll(t){o.each(t,((t,e)=>{this.set(t,e)}))}animate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.get(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.set(e,i);else{if(void 0!==r&&r!==i){this.set(e,r);const t=this._animatingSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.set(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}animatePrivate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.getPrivate(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.setPrivate(e,i);else{if(void 0!==r&&r!==i){this.setPrivate(e,r);const t=this._animatingPrivateSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.setPrivate(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}}class m extends _{constructor(t,e,i,s=[]){if(super(e),this.states=new l(this),this.adapters=new p(this),this.events=this._createEvents(),this._userPrivateProperties={},this._dirty={},this._dirtyPrivate={},this._templates=[],this._defaultThemes=[],this._templateDisposers=[],this._disposers=[],this._runSetup=!0,this._disposerProperties={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t,this._internalTemplates=s,e.id&&this._registerId(e.id)}static new(t,e,i){const s=new this(t,e,!0);return s._template=i,s._afterNew(),s}static _new(t,e,i=[]){const s=new this(t,e,!0,i);return s._afterNew(),s}_afterNew(){this._checkDirty();let t=!1;const e=this._template;e&&(t=!0,e._setObjectTemplate(this)),u.each(this._internalTemplates,(e=>{t=!0,e._setObjectTemplate(this)})),t&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const t=this._template;t&&t._setObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._setObjectTemplate(this)})),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new n.p}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(t,e){const i=this.get(t);if(i)return i;{const i=e();return this.set(t,i),i}}_setDefault(t,e){this.has(t)||super.set(t,e)}_setRawDefault(t,e){this.has(t)||super.setRaw(t,e)}_clearDirty(){o.keys(this._dirty).forEach((t=>{this._dirty[t]=!1})),o.keys(this._dirtyPrivate).forEach((t=>{this._dirtyPrivate[t]=!1}))}isDirty(t){return!!this._dirty[t]}isPrivateDirty(t){return!!this._dirtyPrivate[t]}_markDirtyKey(t){this._dirty[t]=!0,super._markDirtyKey(t)}_markDirtyPrivateKey(t){this._dirtyPrivate[t]=!0,super._markDirtyKey(t)}isType(t){return-1!==this.classNames.indexOf(t)}_pushPropertyDisposer(t,e){let i=this._disposerProperties[t];return void 0===i&&(i=this._disposerProperties[t]=[]),i.push(e),e}_disposeProperty(t){const e=this._disposerProperties[t];void 0!==e&&(u.each(e,(t=>{t.dispose()})),delete this._disposerProperties[t])}set template(t){const e=this._template;e!==t&&(this._template=t,e&&e._removeObjectTemplate(this),t&&t._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(t){}_applyStateAnimated(t,e){}get(t,e){const i=this.adapters.fold(t,this._settings[t]);return void 0!==i?i:e}isUserSetting(t){return this._userProperties[t]||!1}set(t,e){return this._userProperties[t]=!0,super.set(t,e)}setRaw(t,e){this._userProperties[t]=!0,super.setRaw(t,e)}_setSoft(t,e){return this._userProperties[t]?e:super.set(t,e)}remove(t){delete this._userProperties[t],this._removeTemplateProperty(t)}setPrivate(t,e){return this._userPrivateProperties[t]=!0,super.setPrivate(t,e)}setPrivateRaw(t,e){this._userPrivateProperties[t]=!0,super.setPrivateRaw(t,e)}removePrivate(t){delete this._userPrivateProperties[t],this._removeTemplatePrivateProperty(t)}_setTemplateProperty(t,e,i){this._userProperties[e]||t===this._findTemplateByKey(e)&&super.set(e,i)}_setTemplatePrivateProperty(t,e,i){this._userPrivateProperties[e]||t===this._findTemplateByPrivateKey(e)&&super.setPrivate(e,i)}_removeTemplateProperty(t){if(!this._userProperties[t]){const e=this._findTemplateByKey(t);e?super.set(t,e._settings[t]):super.remove(t)}}_removeTemplatePrivateProperty(t){if(!this._userPrivateProperties[t]){const e=this._findTemplateByPrivateKey(t);e?super.setPrivate(t,e._privateSettings[t]):super.removePrivate(t)}}_walkParents(t){t(this._root._rootContainer),t(this)}_applyStateByKey(t){const e=this.states.create(t,{}),i={};this._eachTemplate((s=>{const n=s.states.lookup(t);n&&n._apply(e,i)})),o.each(e._settings,(t=>{i[t]||e._userSettings[t]||e.remove(t)}))}_applyTemplate(t,e){this._templateDisposers.push(t._apply(this,e)),o.each(t._settings,((t,i)=>{e.settings[t]||this._userProperties[t]||(e.settings[t]=!0,super.set(t,i))})),o.each(t._privateSettings,((t,i)=>{e.privateSettings[t]||this._userPrivateProperties[t]||(e.privateSettings[t]=!0,super.setPrivate(t,i))})),this._runSetup&&t.setup&&(this._runSetup=!1,t.setup(this))}_findStaticTemplate(t){if(this._template&&t(this._template))return this._template}_eachTemplate(t){this._findStaticTemplate((e=>(t(e),!1))),u.eachReverse(this._internalTemplates,t),u.each(this._templates,t)}_applyTemplates(t=!0){t&&this._disposeTemplates();const e={settings:{},privateSettings:{},states:{}};this._eachTemplate((t=>{this._applyTemplate(t,e)})),t&&(o.each(this._settings,(t=>{this._userProperties[t]||e.settings[t]||super.remove(t)})),o.each(this._privateSettings,(t=>{this._userPrivateProperties[t]||e.privateSettings[t]||super.removePrivate(t)})))}_findTemplate(t){const e=this._findStaticTemplate(t);if(void 0===e){const e=u.findReverse(this._internalTemplates,t);return void 0===e?u.find(this._templates,t):e}return e}_findTemplateByKey(t){return this._findTemplate((e=>t in e._settings))}_findTemplateByPrivateKey(t){return this._findTemplate((e=>t in e._privateSettings))}_disposeTemplates(){u.each(this._templateDisposers,(t=>{t.dispose()})),this._templateDisposers.length=0}_removeTemplates(){u.each(this._templates,(t=>{t._removeObjectTemplate(this)})),this._templates.length=0}_applyThemes(t=!1){if(this.get("ignoreThemes"))return!1;let e=!1;const i=[];let s=[];const n=new Set,r=this.get("themeTagsSelf");return r&&u.each(r,(t=>{n.add(t)})),this._walkParents((t=>{t===this._root._rootContainer&&(e=!0),t._defaultThemes.length>0&&i.push(t._defaultThemes);const r=t.get("themes");r&&s.push(r);const o=t.get("themeTags");o&&u.each(o,(t=>{n.add(t)}))})),s=i.concat(s),this._removeTemplates(),(e||t)&&u.eachReverse(this.classNames,(t=>{const e=[];u.each(s,(i=>{u.each(i,(i=>{const s=i._lookupRules(t);s&&u.eachReverse(s,(t=>{if(t.tags.every((t=>n.has(t)))){const i=u.getFirstSortedIndex(e,(e=>{const i=d.qu(t.tags.length,e.tags.length);return 0===i?d.wq(t.tags,e.tags,d.qu):i}));e.splice(i.index,0,t)}}))}))})),u.each(e,(t=>{this._templates.push(t.template),t.template._setObjectTemplate(this)}))})),this._applyTemplates(),(e||t)&&(this._runSetup=!1),e||t}_changed(){}_beforeChanged(){if(this.isDirty("id")){const t=this.get("id");t&&this._registerId(t);const e=this._prevSettings.id;e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}}_registerId(t){if(this._root.entitiesById[t]&&this._root.entitiesById[t]!==this)throw new Error('An entity with id "'+t+'" already exists.');this._root.entitiesById[t]=this,c.i_.entitiesById[t]=this}_afterChanged(){}addDisposer(t){return this._disposers.push(t),t}_dispose(){super._dispose();const t=this._template;t&&t._removeObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._removeObjectTemplate(this)})),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach((t=>{t.dispose()})),o.each(this._disposerProperties,((t,e)=>{u.each(e,(t=>{t.dispose()}))}));const e=this.get("id");e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}setTimeout(t,e){const i=setTimeout((()=>{this.removeDispose(n),t()}),e),n=new s.ku((()=>{clearTimeout(i)}));return this._disposers.push(n),n}removeDispose(t){if(!this.isDisposed()){let e=u.indexOf(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()}hasTag(t){return-1!==u.indexOf(this.get("themeTags",[]),t)}addTag(t){if(!this.hasTag(t)){const e=this.get("themeTags",[]);e.push(t),this.set("themeTags",e)}}removeTag(t){if(this.hasTag(t)){const e=this.get("themeTags",[]);u.remove(e,t),this.set("themeTags",e)}}_t(t,e,...i){return this._root.language.translate(t,e,...i)}get root(){return this._root}}m.className="Entity",m.classNames=["Entity"]},9770:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var s=i(7449),n=i(5071),r=i(5040);class o{constructor(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{n.each(t,(t=>{t.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}}hasListeners(){return 0!==this._listeners.length}hasListenersByType(t){return n.any(this._listeners,(e=>(null===e.type||e.type===t)&&!e.killed))}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(t){delete this._disabled[t]}disableType(t,e=1/0){this._disabled[t]=e}_removeListener(t){if(0===this._iterating){const e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)}_removeExistingListener(t,e,i,s){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((n=>{n.once!==t||n.type!==e||void 0!==i&&n.callback!==i||n.context!==s||n.disposer.dispose()}))}isEnabled(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&void 0===this._disabled[t]}removeType(t){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((e=>{e.type===t&&e.disposer.dispose()}))}has(t,e,i){return-1!==n.findIndex(this._listeners,(s=>!0!==s.once&&s.type===t&&(void 0===e||s.callback===e)&&s.context===i))}_shouldDispatch(t){if(this._disposed)throw new Error("EventDispatcher is disposed");const e=this._disabled[t];return r.isNumber(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled}_eachListener(t){++this._iterating;try{n.each(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(n.each(this._killed,(t=>{this._removeListener(t)})),this._killed.length=0)}}dispatch(t,e){this._shouldDispatch(t)&&this._eachListener((i=>{i.killed||null!==i.type&&i.type!==t||(i._debounceDelay?(i._debounceTimeout&&window.clearTimeout(i._debounceTimeout),i._debounceTimeout=window.setTimeout((()=>{i._debounceTimeout=void 0,i.killed||i.dispatch(t,e)}),i._debounceDelay)):i.dispatch(t,e))}))}_on(t,e,i,n,r,o,a){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);const h={type:e,callback:i,context:n,shouldClone:r,dispatch:o,killed:!1,once:t,disposer:new s.ku((()=>{h.killed=!0,h._debounceTimeout&&window.clearTimeout(h._debounceTimeout),this._removeListener(h)})),_debounceDelay:a};return this._listeners.push(h),h}onAll(t,e,i=!0){return this._on(!1,null,t,e,i,((i,s)=>t.call(e,s))).disposer}on(t,e,i,s=!0){return this._on(!1,t,e,i,s,((t,s)=>e.call(i,s))).disposer}onDebounced(t,e,i,s,n=!0){return this._on(!1,t,e,s,n,((t,i)=>e.call(s,i)),i).disposer}once(t,e,i,s=!0){const n=this._on(!0,t,e,i,s,((t,s)=>{n.disposer.dispose(),e.call(i,s)}));return n.disposer}off(t,e,i){this._removeExistingListener(!1,t,e,i)}copyFrom(t){if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const e=[];return n.each(t._listeners,(t=>{!t.killed&&t.shouldClone&&(null===t.type?e.push(this.onAll(t.callback,t.context)):t.once?e.push(this.once(t.type,t.callback,t.context)):e.push(this.on(t.type,t.callback,t.context)))})),new s.FV(e)}}},9821:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(6331);class n extends s.JH{}n.className="InterfaceColors",n.classNames=s.JH.classNames.concat([n.className])},7144:function(t,e,i){"use strict";i.d(e,{aV:function(){return o},dn:function(){return a},o:function(){return h}});var s=i(9770),n=i(5071);function r(t,e){if(!(t>=0&&t=0&&t{this.push(t)}))}copyFrom(t){this.pushAll(t._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(t){const e=this._values;this._values=[],this._onClear(e),n.each(t,(t=>{this._values.push(t),this._onPush(t)}))}clear(){this.setAll([])}*[Symbol.iterator](){const t=this._values.length;for(let e=0;e{t.dispose()})),super._onClear(t)}_dispose(){this.autoDispose&&n.each(this._values,(t=>{t.dispose()}))}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class h extends a{constructor(t,e){super(),this.template=t,this.make=e}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}}},751:function(t,e,i){"use strict";i.r(e),i.d(e,{DEGREES:function(){return a},HALFPI:function(){return r},PI:function(){return n},RADIANS:function(){return o},boundsOverlap:function(){return M},ceil:function(){return l},circlesOverlap:function(){return O},closest:function(){return T},cos:function(){return f},fitAngleToRange:function(){return w},fitToRange:function(){return d},getAngle:function(){return x},getArcBounds:function(){return m},getArcPoint:function(){return y},getCubicControlPointA:function(){return c},getCubicControlPointB:function(){return u},getPointOnLine:function(){return k},getPointOnQuadraticCurve:function(){return D},inBounds:function(){return b},mergeBounds:function(){return v},normalizeAngle:function(){return _},round:function(){return h},sin:function(){return p},spiralPoints:function(){return E},tan:function(){return g}});var s=i(5040);const n=Math.PI,r=n/2,o=n/180,a=180/n;function h(t,e,i){if(!(0,s.isNumber)(e)||e<=0){let e=Math.round(t);return i&&e-t==.5&&e--,e}{let i=Math.pow(10,e);return Math.round(t*i)/i}}function l(t,e){if(!(0,s.isNumber)(e)||e<=0)return Math.ceil(t);{let i=Math.pow(10,e);return Math.ceil(t*i)/i}}function c(t,e,i,s,n){return{x:(-t.x+e.x/s+i.x)*s,y:(-t.y+e.y/n+i.y)*n}}function u(t,e,i,s,n){return{x:(t.x+e.x/s-i.x)*s,y:(t.y+e.y/n-i.y)*n}}function d(t,e,i){return Math.min(Math.max(t,e),i)}function p(t){return Math.sin(o*t)}function g(t){return Math.tan(o*t)}function f(t){return Math.cos(o*t)}function _(t){return(t%=360)<0&&(t+=360),t}function m(t,e,i,s,n){let r=Number.MAX_VALUE,o=Number.MAX_VALUE,a=-Number.MAX_VALUE,h=-Number.MAX_VALUE,l=[];l.push(y(n,i)),l.push(y(n,s));let c=Math.min(90*Math.floor(i/90),90*Math.floor(s/90)),u=Math.max(90*Math.ceil(i/90),90*Math.ceil(s/90));for(let t=c;t<=u;t+=90)t>=i&&t<=s&&l.push(y(n,t));for(let t=0;ta&&(a=e.x),e.y>h&&(h=e.y)}return{left:t+r,top:e+o,right:t+a,bottom:e+h}}function y(t,e){return{x:t*f(e),y:t*p(e)}}function v(t){const e=t.length;if(e>0){let i=t[0],s=i.left,n=i.top,r=i.right,o=i.bottom;if(e>1)for(let a=1;ai){let t=e;e=i,i=t}t=_(t);let s=(e-_(e))/360;return ti&&(t-360>e?t-=360:t=te+(i-e)/2-180?e:i),t}function b(t,e){return t.x>=e.left&&t.y>=e.top&&t.x<=e.right&&t.y<=e.bottom}function x(t,e){e||(e={x:2*t.x,y:2*t.y});let i=e.x-t.x,s=e.y-t.y,n=Math.atan2(s,i)*a;return n<0&&(n+=360),_(n)}function D(t,e,i,s){return{x:(1-s)*(1-s)*t.x+2*(1-s)*s*i.x+s*s*e.x,y:(1-s)*(1-s)*t.y+2*(1-s)*s*i.y+s*s*e.y}}function k(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function T(t,e){return t.reduce((function(t,i){return Math.abs(i-e)e.left,s=t.tope.top;return i&&s}function E(t,e,i,s,n,r,h,l,c){let u=n+.01;l=_(l),c=_(c);let d=l*o;cu&&(o=2*u),o*=Math.max(.01,Math.min(1,u/200));let g=d*a,f={x:t+u*Math.cos(d),y:e+u*s/i*Math.sin(d)};if(p.push(f),u=n+.01+(g-l)/360*h,d+=2*Math.asin(o/2/u),d*a>c+360*Math.ceil((i-n)/h))break}return p.shift(),p}function O(t,e){return Math.hypot(t.x-e.x,t.y-e.y)<=t.radius+e.radius}},8219:function(t,e,i){"use strict";i.d(e,{u:function(){return a}});var s=i(6331),n=i(7652),r=i(7449);let o;class a extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._setRawDefault("deactivateRoot",!0),function(t,e,i){const s=e.interfaceColors,a=s.get("secondaryButton").toCSS(),h=s.get("text").toCSS(),l=s.get("alternativeBackground").toCSS(.45);if(!o){const i=new r.FV([new n.StyleRule(t,".am5-modal",{width:"100%",height:"100%",position:"absolute","z-index":"100000",top:"0",left:"0"},e.nonce),new n.StyleRule(t,".am5-modal-curtain",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute",background:s.get("background").toCSS(.5),"z-index":"100"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute","text-align":"center","white-space":"nowrap",background:s.get("background").toCSS(.5),"z-index":"101"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper:before",{content:"''",display:"inline-block",height:"100%","vertical-align":"middle","margin-right":"-0.25em"},e.nonce),new n.StyleRule(t,".am5-modal-content",{display:"inline-block",padding:"1.2em","vertical-align":"middle","text-align":"start","white-space":"normal",background:s.get("background").toCSS(),"border-radius":"4px","-webkit-box-shadow":"0px 0px 36px 0px "+l,"box-shadow":"0px 0px 36px 0px "+l,color:h},e.nonce),new n.StyleRule(t,".am5-modal-content h1",{"font-size":"1em",margin:"0 0 0.5em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table",{display:"table",margin:"1em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-row",{display:"table-row"},e.nonce),new n.StyleRule(t,".am5-modal-table-heading",{display:"table-heading",padding:"3px 10px 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell",{display:"table-cell",padding:"3px 0 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell > *",{"vertical-align":"middle"},e.nonce),new n.StyleRule(t,".am5-modal-content input[type=text], .am5-modal-content input[type=number], .am5-modal-content select",{border:"1px solid "+a,"border-radius":"4px",padding:"3px 5px",margin:"2px"},e.nonce),new n.StyleRule(t,".am5-modal-input-narrow",{width:"50px"},e.nonce),new n.StyleRule(t,".am5-modal-button",{"font-weight":"400",color:s.get("secondaryButtonText").toCSS(),"line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer",padding:"0.2em 0.8em","font-size":"1em","border-radius":"0.25em",margin:"0 0.25em 0 0",border:"1px solid "+s.get("secondaryButtonStroke").toCSS(),background:s.get("secondaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button:hover",{background:s.get("secondaryButtonHover").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary",{color:s.get("primaryButtonText").toCSS(),border:"1px solid "+s.get("primaryButtonStroke").toCSS(),background:s.get("primaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary:hover",{background:s.get("primaryButtonHover").toCSS()},e.nonce)]);o=new r.DM((()=>{o=void 0,i.dispose()}))}o.increment()}(n.getShadowRoot(this._root.dom),this._root);const t=document.createElement("div");t.className="am5-modal",t.style.display="none",this.root._inner.appendChild(t),this.setPrivate("container",t);const e=document.createElement("div");e.className="am5-modal-curtain",t.appendChild(e),this.setPrivate("curtain",e),this._disposers.push(n.addEventListener(e,"click",(()=>{this.cancel()})));const i=document.createElement("div");i.className="am5-modal-wrapper",t.appendChild(i),this.setPrivate("wrapper",i);const s=document.createElement("div");s.className="am5-modal-content",i.appendChild(s),this.setPrivate("content",s);const a=this.get("content");a&&(s.innerHTML=a),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{this.isOpen()&&"Escape"==n.getEventKey(t)&&this.cancel()})))}_beforeChanged(){super._beforeChanged(),this.isDirty("content")&&(this.getPrivate("content").innerHTML=this.get("content",""))}isOpen(){return"none"!=this.getPrivate("container").style.display}open(){this.getPrivate("container").style.display="block",this.get("deactivateRoot")&&this.setTimeout((()=>{this._root._renderer.interactionsEnabled=!1}),10),this.events.dispatch("opened",{type:"opened",target:this})}close(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("closed",{type:"closed",target:this})}cancel(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("cancelled",{type:"cancelled",target:this})}_dispose(){super._dispose();const t=this.getPrivate("container");t.parentElement&&t.parentElement.removeChild(t)}}a.className="Modal",a.classNames=s.JH.classNames.concat([a.className])},780:function(t,e,i){"use strict";i.d(e,{e:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const t="_big_number_suffix_",e="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(t+"3")},{number:1e6,suffix:this._t(t+"6")},{number:1e9,suffix:this._t(t+"9")},{number:1e12,suffix:this._t(t+"12")},{number:1e15,suffix:this._t(t+"15")},{number:1e18,suffix:this._t(t+"18")},{number:1e21,suffix:this._t(t+"21")},{number:1e24,suffix:this._t(t+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(e+"24")},{number:1e-21,suffix:this._t(e+"21")},{number:1e-18,suffix:this._t(e+"18")},{number:1e-15,suffix:this._t(e+"15")},{number:1e-12,suffix:this._t(e+"12")},{number:1e-9,suffix:this._t(e+"9")},{number:1e-6,suffix:this._t(e+"6")},{number:.001,suffix:this._t(e+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s;(null==e||a.isString(e)&&"number"===e.toLowerCase())&&(e=this.get("numberFormat",""));let n=Number(t);if(a.isObject(e))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),e).format(n):new Intl.NumberFormat(void 0,e).format(n)}catch(t){return"Invalid"}else{e=o.cleanFormat(e);let t,h=this.parseFormat(e,this._root.language);t=n>this.get("negativeBase")?h.positive:n{if(e.parsed)return;let i=e.source;"number"===i.toLowerCase()&&(i=this.get("numberFormat","#,###.#####"));let s=n.V.chunk(i,!0);for(let t=0;t=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(i[0]),n="e"+i[1],e.modSpacing&&(n=" "+n)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){const i=o.decimalPlaces(t);if(i>0){const s=Math.pow(10,e.decimals.passive);t=Math.round(parseFloat((t*s).toFixed(i)))/s}}let h="",l=a.numberToString(t).split("."),c=l[0];if(c.length0){let t=[],i=c.split("").reverse().join("");for(let s=0,n=c.length;s<=n;s+=e.thousands.interval){let n=i.substr(s,e.thousands.interval).split("").reverse().join("");""!==n&&t.unshift(n)}c=t.join(e.thousands.separator)}h+=c,1===l.length&&l.push("");let u=l[1];return u.length{e(i,t[i])}))}function l(t,e){for(let i in t)if(u(t,i)&&!e(i,t[i]))break}function c(t,e,i){s.each(o(t,i),(i=>{e(i,t[i])}))}function u(t,e){return{}.hasOwnProperty.call(t,e)}function d(t,e){return h(t,((t,i)=>{null!=i&&null==e[t]&&(e[t]=i)})),e}},3540:function(t,e,i){"use strict";function s(t,e){return t===e?0:t{a.isObject(e)&&"function"==typeof e.dispose&&(e.enableDispose=!0,e.dispose())}))}class l{constructor(t,e,i){this._name=t,this._template=e,this._settings=i}_dispose(){h(this._settings)}get(t,e){const i=this._settings[t];return void 0!==i?i:e}set(t,e){this._settings[t]=e,this._template._stateChanged(this._name)}remove(t){delete this._settings[t],this._template._stateChanged(this._name)}setAll(t){o.keys(t).forEach((e=>{this._settings[e]=t[e]})),this._template._stateChanged(this._name)}_apply(t,e){o.each(this._settings,((i,s)=>{e[i]||t._userSettings[i]||(e[i]=!0,t.setRaw(i,s))}))}}class c{constructor(t){this._states={},this._template=t}_dispose(){o.each(this._states,((t,e)=>{e._dispose()}))}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new l(t,this._template,e);return this._states[t]=i,this._template._stateChanged(t),i}}remove(t){delete this._states[t],this._template._stateChanged(t)}_apply(t,e){o.each(this._states,((i,s)=>{let n=e.states[i];null==n&&(n=e.states[i]={});const r=t.states.create(i,{});s._apply(r,n)}))}}class u{constructor(){this._callbacks={}}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._callbacks[t]}))}remove(t){void 0!==this._callbacks[t]&&delete this._callbacks[t]}_apply(t){const e=[];return o.each(this._callbacks,((i,s)=>{r.each(s,(s=>{e.push(t.adapters.add(i,s))}))})),new n.FV(e)}}class d{constructor(t,e){if(this._disposed=!1,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._entities=[],this.states=new c(this),this.adapters=new u,this.events=new s.p,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=t}static new(t){return new d(t,!0)}_dispose(){h(this._settings),h(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(t,e){this._checkDisposed();const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._checkDisposed(),this._settings[t]=e}set(t,e){this._checkDisposed(),this._settings[t]!==e&&(this.setRaw(t,e),this._entities.forEach((i=>{i._setTemplateProperty(this,t,e)})))}remove(t){this._checkDisposed(),t in this._settings&&(delete this._settings[t],this._entities.forEach((e=>{e._removeTemplateProperty(t)})))}removeAll(){this._checkDisposed(),o.each(this._settings,((t,e)=>{this.remove(t)}))}getPrivate(t,e){this._checkDisposed();const i=this._privateSettings[t];return void 0!==i?i:e}setPrivateRaw(t,e){return this._checkDisposed(),this._privateSettings[t]=e,e}setPrivate(t,e){return this._checkDisposed(),this._privateSettings[t]!==e&&(this.setPrivateRaw(t,e),this._entities.forEach((i=>{i._setTemplatePrivateProperty(this,t,e)}))),e}removePrivate(t){this._checkDisposed(),t in this._privateSettings&&(delete this._privateSettings[t],this._entities.forEach((e=>{e._removeTemplatePrivateProperty(t)})))}setAll(t){this._checkDisposed(),o.each(t,((t,e)=>{this.set(t,e)}))}on(t,e){this._checkDisposed();let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}onPrivate(t,e){this._checkDisposed();let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}_apply(t,e){this._checkDisposed();const i=[];return o.each(this._settingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.on(e,s))}))})),o.each(this._privateSettingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.onPrivate(e,s))}))})),this.states._apply(t,e),i.push(this.adapters._apply(t)),i.push(t.events.copyFrom(this.events)),new n.FV(i)}_setObjectTemplate(t){this._checkDisposed(),this._entities.push(t)}_removeObjectTemplate(t){r.remove(this._entities,t)}_stateChanged(t){this._checkDisposed(),this._entities.forEach((e=>{e._applyStateByKey(t)}))}}},7255:function(t,e,i){"use strict";i.d(e,{V:function(){return r}});var s=i(1112),n=i(5040);class r{static escape(t){return t.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(t){return t.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(t,e=!1,i=!1){let s=[];t=this.escape(t);let r=e?t.split("'"):[t];for(let t=0;t{setTimeout(e,t)}))}let o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629742400,year:31536e6};function a(t){switch(t){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function h(t,e){return null==e&&(e=1),o[t]*e}function l(t){return t?o[t.timeUnit]*t.count:0}function c(t,e,i,s,n){const r=t.timeUnit,a=t.count;if("hour"==r||"minute"==r||"second"==r||"millisecond"==r)return o[t.timeUnit]*t.count;{const t=m(new Date(e.getTime()),r,a,i,s,void 0,n).getTime();let o=t+a*h(r)*1.05;return o=m(new Date(o),r,1,i,s,void 0,n).getTime(),o-t}}function u(){return new Date}function d(){return u().getTime()}function p(t){return new Date(t.getTime())}function g(t,e,i,s,n){if(e-t>h(i,1.2))return!0;let r=new Date(t),o=new Date(e);n&&(r=n.convertLocal(r),o=n.convertLocal(o));let l=0,c=0;s||"millisecond"==i||(l=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-l),c=o.getTimezoneOffset(),o.setUTCMinutes(o.getUTCMinutes()-c));let u=!1;switch(i){case"year":r.getUTCFullYear()!=o.getUTCFullYear()&&(u=!0);break;case"month":(r.getUTCFullYear()!=o.getUTCFullYear()||r.getUTCMonth()!=o.getUTCMonth())&&(u=!0);break;case"day":(r.getUTCMonth()!=o.getUTCMonth()||r.getUTCDate()!=o.getUTCDate())&&(u=!0);break;case"hour":r.getUTCHours()!=o.getUTCHours()&&(u=!0);break;case"minute":r.getUTCMinutes()!=o.getUTCMinutes()&&(u=!0);break;case"second":r.getUTCSeconds()!=o.getUTCSeconds()&&(u=!0);break;case"millisecond":r.getTime()!=o.getTime()&&(u=!0)}if(u)return u;let d=a(i);return!!d&&g(t,e,d,s,n)}function f(t,e,i,s,n){let r=0;switch(s||"millisecond"==e||(r=t.getTimezoneOffset(),n&&(r-=n.offsetUTC(t)),t.setUTCMinutes(t.getUTCMinutes()-r)),e){case"day":let e=t.getUTCDate();t.setUTCDate(e+i);break;case"second":let s=t.getUTCSeconds();t.setUTCSeconds(s+i);break;case"millisecond":let n=t.getUTCMilliseconds();t.setUTCMilliseconds(n+i);break;case"hour":let r=t.getUTCHours();t.setUTCHours(r+i);break;case"minute":let o=t.getUTCMinutes();t.setUTCMinutes(o+i);break;case"year":let a=t.getUTCFullYear();t.setUTCFullYear(a+i);break;case"month":const h=t.getUTCDate(),l=new Date(t.getUTCFullYear(),t.getUTCMonth(),0).getUTCDate();let c=t.getUTCMonth();h>l?t.setUTCMonth(c+i,l):t.setUTCMonth(c+i);break;case"week":let u=t.getUTCDate();t.setUTCDate(u+7*i)}if(!s&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+r),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(n&&(e+=n.offsetUTC(t)),e!=r){let i=e-r;t.setUTCMinutes(t.getUTCMinutes()+i),t.getTimezoneOffset()!=e&&t.setUTCMinutes(t.getUTCMinutes()-i)}}return t}function _(t,e,i,s,n){let r;return null!=n&&(r=new Date(n)),m(new Date(t),e,i,s.locale.firstDayOfWeek,s.utc,r,s.timezone).getTime()}function m(t,e,i,n,r,o,a){if(!a||r){let a=0;switch(r||"millisecond"==e||(a=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-a)),e){case"day":let e=t.getUTCDate();if(i>1){if(o){o=m(o,"day",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),n=h("day",s*i);t.setTime(o.getTime()+n-a*h("minute"))}}else t.setUTCDate(e);t.setUTCHours(0,0,0,0);break;case"second":let r=t.getUTCSeconds();i>1&&(r=Math.floor(r/i)*i),t.setUTCSeconds(r,0);break;case"millisecond":if(1==i)return t;let l=t.getUTCMilliseconds();l=Math.floor(l/i)*i,t.setUTCMilliseconds(l);break;case"hour":let c=t.getUTCHours();i>1&&(c=Math.floor(c/i)*i),t.setUTCHours(c,0,0,0);break;case"minute":let u=t.getUTCMinutes();i>1&&(u=Math.floor(u/i)*i),t.setUTCMinutes(u,0,0);break;case"month":let d=t.getUTCMonth();i>1&&(2!=i&&3!=i&&4!=i&&6!=i||(d=Math.floor(d/i)*i)),t.setUTCMonth(d,1),t.setUTCHours(0,0,0,0);break;case"year":let p=t.getUTCFullYear();i>1&&(p=Math.floor(p/i)*i),t.setUTCFullYear(p,0,1),t.setUTCHours(0,0,0,0);break;case"week":if(i>1&&o){o=m(o,"week",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("week")/i),n=h("week",s*i);t.setTime(o.getTime()+n-a*h("minute"))}let g=t.getUTCDate(),f=t.getUTCDay();s.isNumber(n)||(n=1),g=f>=n?g-f+n:g-(7+f)+n,t.setUTCDate(g),t.setUTCHours(0,0,0,0)}if(!r&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+a),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(e!=a){let i=e-a;t.setUTCMinutes(t.getUTCMinutes()+i)}}return t}{if(isNaN(t.getTime()))return t;let l=t.getTime(),c=a.offsetUTC(t),u=t.getTimezoneOffset(),d=a.parseDate(t),p=d.year,g=d.month,f=d.day,_=d.hour,y=d.minute,v=d.second,w=d.millisecond,b=d.weekday,x=c-u;switch(e){case"day":if(i>1&&o){o=m(o,"day",1,n,r,void 0,a);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),l=h("day",s*i);t.setTime(o.getTime()+l),d=a.parseDate(t),p=d.year,g=d.month,f=d.day}_=0,y=x,v=0,w=0;break;case"second":y+=x,i>1&&(v=Math.floor(v/i)*i),w=0;break;case"millisecond":y+=x,i>1&&(w=Math.floor(w/i)*i);break;case"hour":i>1&&(_=Math.floor(_/i)*i),y=x,v=0,w=0;break;case"minute":i>1&&(y=Math.floor(y/i)*i),y+=x,v=0,w=0;break;case"month":i>1&&(g=Math.floor(g/i)*i),f=1,_=0,y=x,v=0,w=0;break;case"year":i>1&&(p=Math.floor(p/i)*i),g=0,f=1,_=0,y=x,v=0,w=0;break;case"week":s.isNumber(n)||(n=1),f=b>=n?f-b+n:f-(7+b)+n,_=0,y=x,v=0,w=0}const D=(t=new Date(p,g,f,_,y,v,w)).getTime();let k=36e5;"hour"==e&&(k=36e5*i),D+k<=l&&("hour"!=e&&"minute"!=e&&"second"!=e&&"millisecond"!=e||(t=new Date(D+k)));let T=t.getTimezoneOffset(),M=a.offsetUTC(t)-T;return M!=x&&t.setTime(t.getTime()+6e4*(M-x)),t}}function y(t,e,i,s){let n=l(s[t]),r=s.length-1;if(t>=r)return Object.assign({},s[r]);let o=Math.ceil(e/n);return e0?Object.assign({},s[t-1]):o<=i?Object.assign({},s[t]):t+1{switch(t.type){case"year":i=+t.value;break;case"month":s=+t.value-1;break;case"day":n=+t.value;break;case"hour":r=+t.value;break;case"minute":o=+t.value;break;case"second":a=+t.value;break;case"fractionalSecond":h=+t.value;break;case"weekday":switch(t.value){case"Sun":l=0;break;case"Mon":l=1;break;case"Tue":l=2;break;case"Wed":l=3;break;case"Thu":l=4;break;case"Fri":l=5;break;case"Sat":l=6}}})),24===r&&(r=0),{year:i,month:s,day:n,hour:r,minute:o,second:a,millisecond:h,weekday:l}}function n(t,e){const{year:i,month:n,day:r,hour:o,minute:a,second:h,millisecond:l}=s(t,e);return Date.UTC(i,n,r,o,a,h,l)}i.d(e,{r:function(){return r}});class r{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=t,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(t){return new this(t,!0)}convertLocal(t){const e=this.offsetUTC(t),i=t.getTimezoneOffset(),s=new Date(t);s.setUTCMinutes(s.getUTCMinutes()-(e-i));const n=s.getTimezoneOffset();return i!=n&&s.setUTCMinutes(s.getUTCMinutes()+n-i),s}offsetUTC(t){return(n(this._utc,t)-n(this._dtf,t))/6e4}parseDate(t){return s(this._dtf,t)}}},5040:function(t,e,i){"use strict";function s(t){return Number(t)!==t}function n(t){return{}.toString.call(t)}function r(t,e="Assertion failed"){if(!t)throw new Error(e)}function o(t){if(null!=t&&!d(t)){let e=Number(t);if(s(e)&&u(t)&&""!=t&&t.match(/[0-9]+/)){const i=t.replace(/[^0-9.\-]+/g,"");return t===i?e:o(i)}return e}return t}function a(t){if(c(t))return new Date(t);if(d(t))return new Date(t);{let e=Number(t);return d(e)?new Date(e):new Date(t)}}function h(t){if(s(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t==-1/0)return"-0";let e=t<0;t=Math.abs(t);let i,n=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t),r=n[1],o=n[2]||"";if(void 0===n[3])i=""===o?r:r+"."+o;else{let e=+n[3];if(t<1)i="0."+l("0",e-1)+r+o;else{let t=e-o.length;i=0===t?r+o:t<0?r+o.slice(0,t)+"."+o.slice(t):r+o+l("0",t)}}return e?"-"+i:i}function l(t,e){return new Array(e+1).join(t)}function c(t){return"[object Date]"===n(t)}function u(t){return"string"==typeof t}function d(t){return"number"==typeof t&&Number(t)==t}function p(t){return"object"==typeof t&&null!==t}function g(t){return Array.isArray(t)}i.r(e),i.d(e,{PLACEHOLDER:function(){return f},PLACEHOLDER2:function(){return _},assert:function(){return r},getType:function(){return n},isArray:function(){return g},isDate:function(){return c},isNaN:function(){return s},isNumber:function(){return d},isObject:function(){return p},isString:function(){return u},numberToString:function(){return h},repeat:function(){return l},toDate:function(){return a},toNumber:function(){return o}});const f="__§§§__",_="__§§§§__"},7652:function(t,e,i){"use strict";i.r(e),i.d(e,{StyleRule:function(){return E},StyleSheet:function(){return O},addClass:function(){return P},addEventListener:function(){return l},addSpacing:function(){return Y},alternativeColor:function(){return dt},blur:function(){return p},brighten:function(){return ht},capitalizeFirst:function(){return et},cleanFormat:function(){return z},contains:function(){return w},decimalPlaces:function(){return A},escapeForRgex:function(){return W},focus:function(){return g},get12Hours:function(){return Q},getBrightnessStep:function(){return lt},getDayFromWeek:function(){return q},getEventKey:function(){return D},getEventTarget:function(){return v},getFormat:function(){return H},getLightnessStep:function(){return at},getMonthWeek:function(){return K},getPointerId:function(){return d},getRendererEvent:function(){return f},getSafeResolution:function(){return C},getShadowRoot:function(){return k},getStyle:function(){return y},getTimeZone:function(){return J},getTimezoneOffset:function(){return tt},getWeek:function(){return $},getWeekYear:function(){return Z},getYearDay:function(){return X},hslToHsv:function(){return rt},hslToRgb:function(){return it},hsvToHsl:function(){return nt},iOS:function(){return N},isLight:function(){return ct},isLocalEvent:function(){return b},isTouchEvent:function(){return _},lighten:function(){return ot},mergeTags:function(){return pt},onZoom:function(){return c},padString:function(){return R},plainText:function(){return V},ready:function(){return a},relativeToValue:function(){return L},removeClass:function(){return S},removeElement:function(){return h},rgbToHsl:function(){return st},sameBounds:function(){return gt},saturate:function(){return ut},setInteractive:function(){return x},setStyle:function(){return m},splitString:function(){return j},stripTags:function(){return G},supports:function(){return u},trim:function(){return F},trimLeft:function(){return U},trimRight:function(){return B},truncateTextWithEllipsis:function(){return I}});var s=i(5040),n=i(5071),r=i(256),o=i(7449);function a(t){if("loading"!==document.readyState)t();else{const e=()=>{"loading"!==document.readyState&&(document.removeEventListener("readystatechange",e),t())};document.addEventListener("readystatechange",e)}}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function l(t,e,i,s){return t.addEventListener(e,i,s||!1),new o.ku((()=>{t.removeEventListener(e,i,s||!1)}))}function c(t){return l(window,"resize",(e=>{t()}))}function u(t){switch(t){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function d(t){return t.pointerId||0}function p(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let t=document.createElement("button");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}}function g(t){t&&t.focus()}function f(t){if(u("pointerevents"))return t;if(u("touchevents"))switch(t){case"pointerover":case"pointerdown":return"touchstart";case"pointerout":case"pointerleave":case"pointerup":return"touchend";case"pointermove":return"touchmove";case"click":return"click";case"dblclick":return"dblclick"}else if(u("mouseevents"))switch(t){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return t}function _(t){if("undefined"!=typeof Touch&&t instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&t instanceof PointerEvent&&null!=t.pointerType)switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(null!=t.type&&t.type.match(/^mouse/))return!1;return!0}function m(t,e,i){t.style[e]=i}function y(t,e){return t.style[e]}function v(t){if(t.composedPath){const e=t.composedPath();return 0===e.length?null:e[0]}return t.target}function w(t,e){let i=e;for(;;){if(t===i)return!0;if(null===i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function b(t,e){return t.target&&w(e.root.dom,t.target)}function x(t,e){t.style.pointerEvents=e?"auto":"none"}function D(t){if(void 0!==t.key)return t.key;switch(t.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+t.keyCode}function k(t){let e=t;for(;;){if(null===e.parentNode)return null!=e.host?e:null;e=e.parentNode}}let T;function M(t,e){const i=t.cssRules.length;return t.insertRule(e+"{}",i),t.cssRules[i]}class E extends o.KK{constructor(t,e,i,s=""){super(),this._root=function(t,e=""){if(null===t){if(null==T){const t=document.createElement("style");t.type="text/css",""!=e&&t.setAttribute("nonce",e),document.head.appendChild(t),T=t.sheet}return T}{const i=document.createElement("style");return i.type="text/css",""!=e&&i.setAttribute("nonce",e),t.appendChild(i),i.sheet}}(t,s);try{this._rule=M(this._root,e)}catch(t){this._rule=M(this._root,":not(*)")}r.each(i,((t,e)=>{this.setStyle(t,e)}))}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){const t=n.indexOf(this._root.cssRules,this._rule);if(-1===t)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,e){const i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")}setStyle(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")}}class O extends o.KK{constructor(t,e,i=""){super(),this._element=function(t,e,i=""){const s=document.createElement("style");return s.type="text/css",""!=i&&s.setAttribute("nonce",i),s.textContent=e,null===t?document.head.appendChild(s):t.appendChild(s),s}(t,e,i)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}}function P(t,e){if(t)if(t.classList){const i=e.split(" ");n.each(i,(e=>{t.classList.add(e)}))}else{let i=t.getAttribute("class");i?t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" ")+" "+e):t.setAttribute("class",e)}}function S(t,e){if(t)if(t.classList)t.classList.remove(e);else{let i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" "))}}function N(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function C(){return N()?1:void 0}function L(t,e){return s.isNumber(t)?t:null!=t&&s.isNumber(t.value)&&s.isNumber(e)?e*t.value:0}function A(t){let e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function R(t,e=0,i="0"){return"string"!=typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t}function U(t){return t.replace(/^[\s]*/,"")}function B(t){return t.replace(/[\s]*$/,"")}function F(t){return U(B(t))}function I(t,e,i=!1,s="..."){if(t.length>e){let n=e-1;for(;n>=0&&t.charAt(n).match(/\w/);)n--;return n>=0&&0==i?t.substring(0,n+1)+"...":t.substring(0,e)+s}return t}function H(t){if(void 0===t)return"string";let e=(t=(t=(t=t.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return e?e[1]:"number"===t?"number":"date"===t?"date":"duration"===t?"duration":t.match(/[#0]/)?"number":t.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function z(t){return t.replace(/\/(date|number|duration)$/i,"")}function G(t){return t?t.replace(/<[^>]*>/g,""):t}function V(t){return t?G((""+t).replace(/[\n\r]+/g,". ")):t}function W(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Y(t){let e="";for(let i=0;i{if(t.match(/^\s+$/))(t=" ")&&(t=" "),n.push(t);else if(e.test(t)){let e=t.split(i).filter((t=>""!==t));n=n.concat(e)}else n=n.concat([...t])})),n}function X(t,e=!1){const i=new Date(t.getFullYear(),0,0),s=t.getTime()-i.getTime()+60*(i.getTimezoneOffset()-t.getTimezoneOffset())*1e3;return Math.floor(s/864e5)}function $(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-s);const n=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-n.getTime())/864e5+1)/7)}function Z(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;return i.setUTCDate(i.getUTCDate()+4-s),new Date(Date.UTC(i.getUTCFullYear(),0,1)).getFullYear()}function K(t,e=!1){const i=$(new Date(t.getFullYear(),t.getMonth(),1),e);let s=$(t,e);return 1==s&&(s=53),s-i+1}function q(t,e,i=1,s=!1){let n=new Date(e,0,4,0,0,0,0);return s&&n.setUTCFullYear(e),7*t+i-((n.getDay()||7)+3)}function Q(t,e){return t>12?t-=12:0===t&&(t=12),null!=e?t+(e-1):t}function J(t,e=!1,i=!1,s=!1,n){if(s)return e?"Coordinated Universal Time":"UTC";if(n){const i=t.toLocaleString("en-US",{timeZone:n});return F(t.toLocaleString("en-US",{timeZone:n,timeZoneName:e?"long":"short"}).substr(i.length))}let r=t.toLocaleString("UTC"),o=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(o=o.replace(/ (standard|daylight|summer|winter) /i," ")),F(o)}function tt(t,e){const i=e||new Date(Date.UTC(2012,0,1,0,0,0,0)),s=new Date(i.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(i.toLocaleString("en-US",{timeZone:t})).getTime()-s.getTime())/6e4*-1}function et(t){return t.charAt(0).toUpperCase()+t.slice(1)}function it(t){let e,i,s,n=t.h,r=t.s,o=t.l;if(0==r)e=i=s=o;else{let t=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},a=o<.5?o*(1+r):o+r-o*r,h=2*o-a;e=t(h,a,n+1/3),i=t(h,a,n),s=t(h,a,n-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*s)}}function st(t){let e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),r=Math.min(e,i,s),o=0,a=0,h=(n+r)/2;if(n===r)o=a=0;else{let t=n-r;switch(a=h>.5?t/(2-n-r):t/(n+r),n){case e:o=(i-s)/t+(i0?255-t:t;return Math.round(i*e)}function ht(t,e){if(t){let i=at(Math.min(Math.max(t.r,t.g,t.b),230),e);return{r:Math.max(0,Math.min(255,Math.round(t.r+i))),g:Math.max(0,Math.min(255,Math.round(t.g+i))),b:Math.max(0,Math.min(255,Math.round(t.b+i))),a:t.a}}return t}function lt(t,e){return Math.round(255*e)}function ct(t){return(299*t.r+587*t.g+114*t.b)/1e3>=128}function ut(t,e){if(void 0===t||1==e)return t;let i=st(t);return i.s=e,it(i)}function dt(t,e={r:255,g:255,b:255},i={r:255,g:255,b:255}){let s=e,n=i;return ct(i)&&(s=i,n=e),ct(t)?n:s}function pt(t,e){return t||(t=[]),[...t,...e].filter(((t,e,i)=>i.indexOf(t)===e))}function gt(t,e){return!!e&&t.left==e.left&&t.right==e.right&&t.top==e.top&&t.bottom==e.bottom}},3360:function(t,e,i){"use strict";i.d(e,{z:function(){return D},m:function(){return k}});var s=i(7582),n=i(6331),r=i(4596),o=i(8777),a=i(1112),h=i(6245),l=i(5769),c=i(9582),u=i(5040),d=i(5071),p=i(256),g={AccelerationBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccelerationBands)),AccumulationDistribution:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulationDistribution)),AccumulativeSwingIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulativeSwingIndex)),Annotator:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Annotator)),ArcDiagram:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagram)),ArcDiagramLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramLink)),ArcDiagramNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramNodes)),Aroon:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Aroon)),AverageSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageSeries)),AverageTrueRange:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageTrueRange)),AwesomeOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AwesomeOscillator)),Axis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Axis)),AxisBullet:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisBullet)),AxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabel)),AxisLabelRadial:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabelRadial)),AxisRenderer:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRenderer)),AxisRendererCircular:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererCircular)),AxisRendererCurveX:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveX)),AxisRendererCurveY:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveY)),AxisRendererRadial:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererRadial)),AxisRendererX:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererX)),AxisRendererY:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererY)),AxisTick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisTick)),BaseColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.BaseColumnSeries)),BollingerBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BollingerBands)),BreadcrumbBar:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.BreadcrumbBar)),BullBearPower:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BullBearPower)),Bullet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Bullet)),Button:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Button)),CalloutSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CalloutSeries)),Candlestick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Candlestick)),CandlestickSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CandlestickSeries)),CategoryAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryAxis)),CategoryDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryDateAxis)),ChaikinMoneyFlow:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinMoneyFlow)),ChaikinOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinOscillator)),Chart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Chart)),ChartIndicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChartIndicator)),Chord:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Chord)),ChordDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordDirected)),ChordLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLink)),ChordLinkDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLinkDirected)),ChordNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNodes)),ChordNonRibbon:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNonRibbon)),Circle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Circle)),CirclePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.CirclePattern)),ClockHand:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.ClockHand)),ClusteredPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ClusteredPointSeries)),ColorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ColorControl)),ColorPicker:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPicker)),ColorPickerButton:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPickerButton)),ColorSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ColorSet)),ColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ColumnSeries)),CommodityChannelIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CommodityChannelIndex)),ComparisonControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ComparisonControl)),Component:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Component)),ConfirmButton:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ConfirmButton)),Container:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Container)),CurveChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveChart)),CurveColumnSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveColumnSeries)),CurveCursor:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveCursor)),CurveLineSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveLineSeries)),DataSaveControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DataSaveControl)),DateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DateAxis)),DateRangeSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DateRangeSelector)),DisparityIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DisparityIndex)),DoodleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DoodleSeries)),DrawingControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingControl)),DrawingSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingSeries)),DrawingToolControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingToolControl)),Dropdown:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Dropdown)),DropdownColors:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownColors)),DropdownControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownControl)),DropdownList:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownList)),DropdownListControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownListControl)),DurationAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DurationAxis)),EditableAxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.EditableAxisLabel)),EditableLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.EditableLabel)),Ellipse:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Ellipse)),EllipseSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.EllipseSeries)),Entity:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Entity)),Exporting:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Exporting)),ExportingMenu:()=>Promise.resolve().then((()=>i(396))).then((t=>t.ExportingMenu)),FibonacciSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciSeries)),FibonacciTimezoneSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciTimezoneSeries)),Flow:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Flow)),FlowLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowLink)),FlowNode:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNode)),FlowNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNodes)),ForceDirected:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.ForceDirected)),FunnelSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSeries)),FunnelSlice:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSlice)),Gantt:()=>Promise.resolve().then((()=>i(133))).then((t=>t.Gantt)),GanttCategoryAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxis)),GanttCategoryAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxisRenderer)),GanttDateAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxis)),GanttDateAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxisRenderer)),GanttSeries:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttSeries)),GaplessDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.GaplessDateAxis)),Gradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Gradient)),GrainPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GrainPattern)),Graphics:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Graphics)),GraticuleSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.GraticuleSeries)),Grid:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Grid)),GridLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GridLayout)),HeatLegend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HeatLegend)),HeikinAshi:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HeikinAshi)),Hierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Hierarchy)),HierarchyLink:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyLink)),HierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyNode)),HorizontalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HorizontalLayout)),HorizontalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalLineSeries)),HorizontalRaySeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalRaySeries)),IconControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconControl)),IconSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconSeries)),Indicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Indicator)),IndicatorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IndicatorControl)),InterfaceColors:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.InterfaceColors)),IntervalControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IntervalControl)),Label:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Label)),LabelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LabelSeries)),Layout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Layout)),Legend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Legend)),Line:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Line)),LineArrowSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LineArrowSeries)),LinePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinePattern)),LineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.LineSeries)),LinearGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinearGradient)),Link:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Link)),LinkedHierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchy)),LinkedHierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchyNode)),MACD:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACD)),MACross:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACross)),MapChart:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapChart)),MapLine:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLine)),MapLineSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLineSeries)),MapPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPointSeries)),MapPolygon:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygon)),MapPolygonSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygonSeries)),MapSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapSeries)),Measure:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Measure)),MedianPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MedianPrice)),Modal:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Modal)),Momentum:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Momentum)),MovingAverage:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverage)),MovingAverageDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageDeviation)),MovingAverageEnvelope:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageEnvelope)),NumericStepper:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.NumericStepper)),OHLC:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLC)),OHLCSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLCSeries)),OnBalanceVolume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OnBalanceVolume)),OrthogonalLine:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.OrthogonalLine)),OverboughtOversold:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OverboughtOversold)),PVT:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PVT)),Pack:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Pack)),PanelControls:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PanelControls)),ParallelChannelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ParallelChannelSeries)),Partition:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Partition)),PathPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PathPattern)),Pattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Pattern)),PatternSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PatternSet)),PercentChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentChart)),PercentSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentSeries)),PeriodSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PeriodSelector)),PictorialStackedSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PictorialStackedSeries)),Picture:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Picture)),PicturePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PicturePattern)),PieChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieChart)),PieSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieSeries)),PointedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PointedRectangle)),Polygon:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Polygon)),PolylineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PolylineSeries)),ProgressPie:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ProgressPie)),PyramidSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PyramidSeries)),QuadrantLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.QuadrantLineSeries)),RadarChart:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarChart)),RadarColumnSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarColumnSeries)),RadarCursor:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarCursor)),RadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarLineSeries)),RadialGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialGradient)),RadialLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialLabel)),RadialText:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialText)),Rectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Rectangle)),RectanglePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RectanglePattern)),RectangleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RectangleSeries)),RegressionSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RegressionSeries)),RelativeStrengthIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RelativeStrengthIndex)),ResetControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ResetControl)),RoundedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RoundedRectangle)),Sankey:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Sankey)),SankeyLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyLink)),SankeyNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyNodes)),Scrollbar:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Scrollbar)),SerialChart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SerialChart)),Serializer:()=>Promise.resolve().then((()=>i(5362))).then((t=>t.Serializer)),Series:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Series)),SeriesTypeControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SeriesTypeControl)),SerpentineChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SerpentineChart)),SettingsControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsControl)),SettingsModal:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsModal)),SimpleLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SimpleLineSeries)),Slice:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slice)),SliceGrouper:()=>Promise.resolve().then((()=>i(1790))).then((t=>t.SliceGrouper)),SlicedChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.SlicedChart)),Slider:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slider)),SmoothedRadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.SmoothedRadarLineSeries)),SmoothedXLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXLineSeries)),SmoothedXYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXYLineSeries)),SmoothedYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedYLineSeries)),SpiralChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SpiralChart)),Sprite:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Sprite)),SpriteResizer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SpriteResizer)),StandardDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StandardDeviation)),Star:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Star)),StepLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.StepLineSeries)),StochasticMomentumIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticMomentumIndex)),StochasticOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticOscillator)),StockChart:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockChart)),StockControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockControl)),StockLegend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockLegend)),StockPanel:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockPanel)),StockToolbar:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockToolbar)),Sunburst:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Sunburst)),SuperTrend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SuperTrend)),Text:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Text)),Tick:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tick)),Tooltip:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tooltip)),Tree:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Tree)),Treemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Treemap)),TrendLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TrendLineSeries)),Triangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Triangle)),Trix:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Trix)),TypicalPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TypicalPrice)),VWAP:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VWAP)),ValueAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ValueAxis)),Venn:()=>Promise.resolve().then((()=>i(8034))).then((t=>t.Venn)),VerticalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.VerticalLayout)),VerticalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VerticalLineSeries)),Volume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Volume)),VolumeProfile:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VolumeProfile)),VoronoiTreemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.VoronoiTreemap)),WilliamsR:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.WilliamsR)),WordCloud:()=>Promise.resolve().then((()=>i(6769))).then((t=>t.WordCloud)),XYChart:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChart)),XYChartScrollbar:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChartScrollbar)),XYCursor:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYCursor)),XYSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYSeries)),ZigZag:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ZigZag)),ZoomControl:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ZoomControl)),ZoomTools:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomTools)),ZoomableContainer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomableContainer))};function f(t){return u.isObject(t)}function _(t){return t instanceof n.JH||t instanceof a.Il||t instanceof h.gG||t instanceof l.YS}function m(t,e){let i=t.length;for(;i--;){const s=t[i];if(e in s)return s[e]}throw new Error("Could not find ref "+e)}function y(t,e){if("#"===t[0]||"@"===t[0]){if(t[1]===t[0])return{isValue:!0,value:t.slice(1)};{const i=t.split(/\./g);let s=m(e,i[0]);for(let t=1;t{e(t)}))}function w(t,e){v(t,e),e.adapters&&d.each(e.adapters,(e=>{t.adapters.add(e.key,e.callback)})),e.states&&d.each(e.states,(e=>{t.states.create(e.key,e.settings)})),t instanceof o.W&&e.children&&e.children.forEach((e=>{null==e.index||e.index>=t.children.length?t.children.push(e.value):t.children.insertIndex(e.index,e.value)}))}function b(t,e){if(!e.construct)return e.value;const i=e.construct.new(t,e.settings||{});return w(i,e),i}class x{constructor(){this._caching={},this._cache={},this._delayed=[]}afterParse(){this._delayed.forEach((t=>{t()}))}getClass(t){return this._cache[t]}storeClass(t){return(0,s.mG)(this,void 0,void 0,(function*(){if("Template"===t)return;const e=g[t];if(null==e)throw new Error("Unknown object type `"+t+"`");this._cache[t]=yield e()}))}cacheClass(t){let e=this._caching[t];return null==e&&(e=this._caching[t]=this.storeClass(t)),e}parseAsyncArray(t){return(0,s.mG)(this,void 0,void 0,(function*(){yield Promise.all(d.map(t,(t=>this.parseAsync(t))))}))}parseAsyncObjectKey(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){"type"===t?u.isString(e)?yield this.cacheClass(e):yield this.parseAsync(e):"geoJSON"===t||"geometry"===t||(yield this.parseAsync(e))}))}parseAsyncObject(t){return(0,s.mG)(this,void 0,void 0,(function*(){switch(t.type){case"Color":case"Percent":break;default:yield Promise.all(d.map(p.keys(t),(e=>this.parseAsyncObjectKey(e,t[e]))))}}))}parseAsync(t){return(0,s.mG)(this,void 0,void 0,(function*(){u.isArray(t)?yield this.parseAsyncArray(t):f(t)&&(_(t)||!0!==t.__parse&&!1===t.__parse||(yield this.parseAsyncObject(t)))}))}parseObject(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parse(t,e[n],i)})),s}parseArray(t,e,i){return d.map(e,(e=>this.parse(t,e,i)))}parseChildren(t,e,i){return d.map(e,(e=>this.parseChild(t,e,i)))}parseStops(t,e,i){return d.map(e,(e=>this.parseObject(t,e,i)))}parseSetting(t,e,i,s){if("layout"===e)switch(i){case"horizontal":return t.horizontalLayout;case"vertical":return t.verticalLayout;case"grid":return t.gridLayout}return"clusteredBullet"===e?(e,n)=>{const r=s.concat([{"@series":n}]);return this.parse(t,i,r)}:"projection"===e||"geoJSON"===e?i:"stops"===e?this.parseStops(t,i,s):this.parse(t,i,s)}parseSettings(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parseSetting(t,n,e[n],i)})),s}parseState(t,e,i){return{key:e.key,settings:this.parseSettings(t,e.settings,i)}}parseAdapter(t,e,i){return{key:e.key,callback:this.parse(t,e.callback,i)}}parseProperties(t,e,i){return d.map(p.keys(e),(s=>{const r=e[s];return e=>{const o=()=>{const o=this.parseValue(t,r,i),a=e[s];a?o.isValue?u.isArray(o.value)?a instanceof c.k?a.setAll(o.value):d.each(o.value,(t=>{a.push(t)})):e[s]=o.value:o.construct?e[s]=b(t,o):a instanceof n.JH||a instanceof l.YS?function(t,e){e.settings&&t.setAll(e.settings),w(t,e)}(a,o):v(a,o):o.isValue?e[s]=o.value:e[s]=b(t,o)};if("data"===s)this._delayed.push(o);else if("bullets"===s){const n=e[s];u.assert(null!=n),u.assert(u.isArray(r)),d.each(r,(e=>{n.push(((s,n)=>{const r=i.concat([{"@series":n}]);return this.parse(t,e,r)}))}))}else"bullet"===s?e.set("bullet",((e,s)=>{const n=i.concat([{"@axis":s}]);return this.parse(t,r,n)})):o()}}))}parseAxisRange(t,e,i){return{isValue:!1,type:void 0,construct:void 0,settings:this.parseSettings(t,e.settings,i),adapters:void 0,states:void 0,children:void 0,properties:void 0,index:void 0,value:e}}parseRefsObject(t,e,i){const s={};return p.each(e,((e,r)=>{if("axisRange"==r.__parseLogic||"seriesAxisRange"==r.__parseLogic){const e=this.parseAxisRange(t,r,i),s=m(i,r.axis),o=s.makeDataItem({});let a;const h=r.series?m(i,r.series):void 0;h?a=h.createAxisRange(o):s.createAxisRange(o),function(t,e){e.settings&&p.each(e.settings,((e,i)=>{if(i instanceof n.JH){const s=t.get(e);s instanceof n.JH?s.setAll(i._settings):t.set(e,i)}else t.set(e,i)})),w(t,e)}(o,e),a&&["fills","strokes","graphics"].forEach((e=>{if(void 0!==a[e]&&void 0!==r[e]){r[e].__parse=!0;const s=this.parse(t,r[e],i);a[e].template.setAll(s)}}))}else s["#"+e]=this.parse(t,r,i)})),s}parseRefs(t,e,i){if(u.isArray(e)){const s=e.length;for(let n=0;nthis.parseState(t,e,i))):void 0,h=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0,l=null==e.index?void 0:e.index;return{isValue:!1,type:e.type,construct:s,settings:n,adapters:h,states:a,children:o,properties:r,index:l,value:e}}parseTemplate(t,e,i){e.refs&&(i=this.parseRefs(t,e.refs,i));const s=e.settings?this.parseSettings(t,e.settings,i):{},n=l.YS.new(s),r=e.states?d.map(e.states,(e=>this.parseState(t,e,i))):void 0,o=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0;return o&&d.each(o,(t=>{n.adapters.add(t.key,t.callback)})),r&&d.each(r,(t=>{n.states.create(t.key,t.settings)})),{isValue:!0,value:n}}parseValue(t,e,i){return e instanceof n.JH?{isValue:!0,value:e}:u.isArray(e)?{isValue:!0,value:this.parseArray(t,e,i)}:f(e)?_(e)?{isValue:!0,value:e}:"Color"===e.type?{isValue:!0,value:a.Il.fromAny(e.value)}:"Percent"===e.type?{isValue:!0,value:new h.gG(e.value)}:"Template"===e.type?this.parseTemplate(t,e,i):!0===e.__parse?{isValue:!0,value:this.parseObject(t,e,i)}:!1===e.__parse?{isValue:!0,value:e}:this.parseEntity(t,e,i):u.isString(e)?y(e,i):{isValue:!0,value:e}}parse(t,e,i){const s=this.parseValue(t,e,i);return s.isValue?s.value:b(t,s)}}class D{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t}static new(t){return new this(t,!0)}parse(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){const i=new x;yield i.parseAsync(t);const s=i.parse(this._root,t,[]);if(e.parent){if(!(s instanceof r.j))throw new Error("When using the parent setting, the entity must be a Sprite");e.parent.children.push(s)}else s instanceof n.JH&&s._applyThemes(!0);return i.afterParse(),s}))}parseString(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.parse(JSON.parse(t),e)}))}}function k(t,e){g[t]||(g[t]=()=>new Promise((t=>{t(e)})))}},6890:function(t,e,i){"use strict";i.d(e,{e:function(){return p}});var s=i(6331),n=i(9361),r=i(1112),o=i(1437),a=i(6245),h=i(5769),l=i(9582),c=i(5040),u=i(5071),d=i(256);class p extends s.JH{constructor(){super(...arguments),this._refs={}}serialize(t,e=0,i=!1,p=!1){if(e>this.get("maxDepth",2))return;if(!1===t||!0===t)return t;if(c.isArray(t)){const s=[];return u.each(t,(t=>{s.push(this.serialize(t,e,i,p))})),s}if(t instanceof l.k){const s=[];return u.each(t.values,(t=>{s.push(this.serialize(t,e,i,p))})),s}const g={},f=t instanceof s.JH||t instanceof h.YS||t instanceof r.Il||t instanceof a.gG,_=this.get("fullSettings",[]);if(t instanceof s.JH){g.type=t.className;let s=this._filterSettings(d.keys(t._settings));s=s.filter((e=>t.isUserSetting(e))),s.length&&(g.settings={},u.each(s,(s=>{const n=t.get(s);void 0!==n&&(g.settings[s]=this.serialize(n,e+1,i||-1!==_.indexOf(s)),t instanceof o.p&&"stops"===s&&(g.settings[s]=this.serialize(n,0,!0)))}))),this._processAdapters(t,g),this._processStates(t,g)}else if(t instanceof h.YS){g.type="Template";let i=this._filterSettings(d.keys(t._settings));return i.length&&(g.settings={},u.each(i,(i=>{void 0!==t._settings[i]&&(g.settings[i]=this.serialize(t.get(i),e+1,-1!==_.indexOf(i)))}))),this._processAdapters(t,g),this._processStates(t,g),g}if(t instanceof n.w&&t.data.length&&-1===(this.get("excludeProperties")||[]).indexOf("data")&&(g.properties={data:this.serialize(t.data.values,e,!0)}),t instanceof r.Il)return{type:"Color",value:t.toCSSHex()};if(t instanceof a.gG)return{type:"Percent",value:t.percent};if(c.isString(t))return this._escapeRefs(t);if(c.isNumber(t))return t;if(c.isObject(t))if(i&&!f){const s=this.get("excludeProperties",[]);d.each(t,((t,n)=>{-1===s.indexOf(t)&&void 0!==n&&(g[t]=this.serialize(n,e+1,i,p))})),p&&d.each(g,((t,e)=>{c.isObject(e)&&(g.__parse=!0)}))}else if(f){const s=this.get("includeProperties",[]);u.each(s,(s=>{const n=t[s];void 0!==n&&(void 0===g.properties&&(g.properties={}),g.properties[s]=this.serialize(n,e+1,i,p))}))}return 0==e&&d.keys(this._refs).length&&(g.refs=this._refs),g}_processAdapters(t,e){if(this.get("includeAdapters",!1)){const i="string"==this.get("functionsAs","string"),s=t.adapters._callbacks;Object.keys(s).length>0&&(e.adapters=[],d.each(s,((t,s)=>{s.forEach((s=>{e.adapters.push({key:t,callback:i?s.toString():s})}))})))}}_processStates(t,e){if(this.get("includeStates",!1)){const i=t.states._states;Object.keys(i).length>0&&(e.states=[],d.each(i,((t,i)=>{Object.keys(i._settings).length>0&&e.states.push({key:t,settings:this.serialize(i._settings,0,!0)})})))}}_filterSettings(t){const e=this.get("includeSettings",[]),i=this.get("excludeSettings",[]);return e.length?t=e:i.length&&(t=t.filter((t=>-1===i.indexOf(t)))),t}_escapeRefs(t){return t.replace(/^#/,"##").replace(/^@/,"@@")}}p.className="Serializer",p.classNames=s.JH.classNames.concat([p.className])},3783:function(t,e,i){"use strict";i.d(e,{X:function(){return c},v:function(){return l}});var s=i(3409),n=i(6245),r=i(1112),o=i(6881),a=i(962),h=i(9395);function l(t,e,i,s){t.set(e,i.get(s)),i.on(s,(i=>{t.set(e,i)}))}class c extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.language,e=this._root.interfaceColors,i=this._root.horizontalLayout,s=this._root.verticalLayout,c=this.rule.bind(this);c("InterfaceColors").setAll({stroke:r.Il.fromHex(15066597),fill:r.Il.fromHex(15987699),primaryButton:r.Il.fromHex(6788316),primaryButtonHover:r.Il.fromHex(6779356),primaryButtonDown:r.Il.fromHex(6872182),primaryButtonActive:r.Il.fromHex(6872182),primaryButtonDisabled:r.Il.fromHex(14342874),primaryButtonTextDisabled:r.Il.fromHex(16777215),primaryButtonText:r.Il.fromHex(16777215),primaryButtonStroke:r.Il.fromHex(16777215),secondaryButton:r.Il.fromHex(14277081),secondaryButtonHover:r.Il.fromHex(10724259),secondaryButtonDown:r.Il.fromHex(9276813),secondaryButtonActive:r.Il.fromHex(15132390),secondaryButtonText:r.Il.fromHex(0),secondaryButtonStroke:r.Il.fromHex(16777215),grid:r.Il.fromHex(0),background:r.Il.fromHex(16777215),alternativeBackground:r.Il.fromHex(0),text:r.Il.fromHex(0),alternativeText:r.Il.fromHex(16777215),disabled:r.Il.fromHex(11382189),positive:r.Il.fromHex(5288704),negative:r.Il.fromHex(11730944)});{const t=c("ColorSet");t.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[r.Il.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),t.setPrivate("currentStep",0),t.setPrivate("currentPass",0)}c("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:h.out(h.cubic)}),c("Component").setAll({interpolationDuration:0,interpolationEasing:h.out(h.cubic)}),c("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:n.CI,tooltipY:n.CI,tooltipPosition:"fixed",isMeasured:!0}),c("Sprite").states.create("default",{visible:!0,opacity:1}),c("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),c("Graphics").setAll({strokeWidth:1}),c("Chart").setAll({width:n.AQ,height:n.AQ,interactiveChildren:!1}),c("ZoomableContainer").setAll({width:n.AQ,height:n.AQ,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:h.out(h.cubic),animationDuration:600,maxPanOut:.4}),c("Sprite",["horizontal","center"]).setAll({centerX:n.CI,x:n.CI}),c("Sprite",["vertical","center"]).setAll({centerY:n.CI,y:n.CI}),c("Container",["horizontal","layout"]).setAll({layout:i}),c("Container",["vertical","layout"]).setAll({layout:s}),c("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),c("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),c("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),c("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),c("GrainPattern").setAll({width:200,height:200,colors:[r.Il.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const t=c("PatternSet");t.setAll({step:1}),l(t,"color",e,"stroke")}c("LinearGradient").setAll({rotation:90}),c("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:o.M.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),c("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:t.translate("Press ENTER to toggle"),role:"checkbox"});{const t=c("Rectangle",["legend","item","background"]);t.setAll({fillOpacity:0}),l(t,"fill",e,"background")}c("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:n.CI,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),c("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:n.AQ,height:n.AQ,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const t=c("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});l(t,"fill",e,"disabled"),l(t,"stroke",e,"disabled")}c("Label",["legend","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0}),l(c("Label",["legend","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("Label",["legend","value","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:n.AQ,populateText:!0}),l(c("Label",["legend","value","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("HeatLegend").setAll({stepCount:1}),c("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),c("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:n.AQ,width:15}),c("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:n.AQ,height:15}),c("HeatLegend",["vertical"]).setAll({height:n.AQ}),c("HeatLegend",["horizontal"]).setAll({width:n.AQ}),c("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),c("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const t=c("Label");t.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),l(t,"fill",e,"text")}c("RadialLabel").setAll({textType:"regular",centerY:n.CI,centerX:n.CI,inside:!1,radius:0,baseRadius:n.AQ,orientation:"auto",textAlign:"center"}),c("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),c("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:r.Il.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:r.Il.fromHex(0)}),c("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),c("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),c("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),c("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const t=c("Tick");t.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),l(t,"stroke",e,"grid")}c("Bullet").setAll({locationX:.5,locationY:.5}),c("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:n.CI,centerY:n.CI,animationEasing:h.out(h.cubic),exportable:!1}),c("Tooltip",["system"]).setAll({pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});{const t=c("PointedRectangle",["tooltip","system","background"]);t.setAll({strokeOpacity:.3}),l(t,"fill",e,"background"),l(t,"stroke",e,"grid")}c("Label",["tooltip","system"]).setAll({fontSize:12,fill:e.get("background")}),c("Polygon").setAll({animationEasing:h.out(h.cubic)}),c("Link").setAll({cornerRadius:8,setStateOnChildren:!0});{const t=c("OrthogonalLine",["link","line"]);t.setAll({isMeasured:!1,crisp:!0}),l(t.states.create("active",{strokeWidth:2}),"stroke",e,"negative")}c("OrthogonalLine",["link","hit"]).setAll({strokeWidth:10,opacity:0,strokeOpacity:0});{const t=c("OrthogonalLine");t.setAll({strokeWidth:1,strokeOpacity:1,cornerRadius:10}),l(t,"stroke",e,"grid")}{const t=c("Triangle",["link"]);t.setAll({width:14,height:10,centerY:0}),l(t,"fill",e,"grid"),l(t,"stroke",e,"grid"),t.states.create("default",{stateAnimationDuration:0});const i=t.states.create("active",{stateAnimationDuration:0,stroke:(0,r.$_)(16777215),strokeWidth:2});i.set("draw",(t=>{t.arc(0,0,11,0,2*Math.PI),t.moveTo(-4,-4),t.lineTo(4,4),t.moveTo(4,-4),t.lineTo(-4,4)})),l(i,"fill",e,"negative")}c("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:r.Il.fromHex(16777215)});{const t=c("Label",["tooltip"]);t.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),l(t,"fill",e,"alternativeText")}c("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),c("Button").states.create("hover",{}),c("Button").states.create("down",{stateAnimationDuration:0}),c("Button").states.create("active",{}),c("Button").states.create("disabled",{forceInactive:!0});{const t=c("RoundedRectangle",["button","background"]);l(t,"fill",e,"primaryButton"),l(t,"stroke",e,"primaryButtonStroke")}l(c("RoundedRectangle",["button","background"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown"),l(c("RoundedRectangle",["button","background"]).states.create("active",{}),"fill",e,"primaryButtonActive"),l(c("RoundedRectangle",["button","background"]).states.create("disabled",{}),"fill",e,"primaryButtonDisabled"),l(c("Graphics",["button","icon"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled"),l(c("Label",["button"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled");{const t=c("Graphics",["button","icon"]);t.setAll({forceInactive:!0}),l(t,"stroke",e,"primaryButtonText")}l(c("Label",["button"]),"fill",e,"primaryButtonText"),c("ConfirmButton").setAll({toggleKey:"active",setStateOnChildren:!0,label:a._.new(this._root,{text:t.translate("Confirm"),forceHidden:!0})}),l(c("RoundedRectangle",["button","background","confirm"]).states.create("active",{}),"fill",e,"negative"),c("Label",["button","confirm"]).setAll({paddingTop:0,paddingBottom:0,paddingRight:3,paddingLeft:5}),c("Label",["button","confirm"]).states.create("default",{stateAnimationDuration:0}),c("Label",["button","confirm"]).states.create("active",{forceHidden:!1,stateAnimationDuration:0});{const t=c("Graphics",["icon","confirm","button"]);t.setAll({stateAnimationDuration:0}),t.states.create("default",{stateAnimationDuration:0}),l(t,"stroke",e,"primaryButtonText")}l(c("Graphics",["icon","confirm","button"]).states.create("active",{svgPath:"M -5 1 L 0 6 L 8 -5",strokeWidth:2}),"stroke",e,"primaryButtonText"),l(c("Graphics",["icon","confirm","button","secondary"]).states.create("active",{}),"stroke",e,"primaryButtonText"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1}),"fill",e,"negative"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1}),"fill",e,"negative"),c("Button",["button","confirm"]).states.create("hoverActive",{}),c("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:n.AQ,role:"button",ariaLabel:t.translate("Zoom Out"),layer:30});{const t=c("RoundedRectangle",["background","button","zoom"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"primaryButton")}l(c("RoundedRectangle",["background","button","zoom"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown");{const t=c("Graphics",["icon","button","zoom"]);t.setAll({crisp:!0,strokeOpacity:.7,draw:t=>{t.moveTo(0,0),t.lineTo(12,0)}}),l(t,"stroke",e,"primaryButtonText")}c("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:n.CI,centerY:n.CI,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:t.translate("Use up and down arrows to move selection")});{const t=c("RoundedRectangle",["background","resize","button"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"secondaryButton"),l(t,"stroke",e,"secondaryButtonStroke")}l(c("RoundedRectangle",["background","resize","button"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown");{const t=c("Graphics",["resize","button","icon"]);t.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),l(t,"stroke",e,"secondaryButtonText")}c("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),c("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),c("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:t.translate("Play"),toggleKey:"active"});{const t=c("RoundedRectangle",["play","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Graphics",["play","icon"]);t.setAll({stateAnimationDuration:0,dx:1,draw:t=>{t.moveTo(0,-5),t.lineTo(8,0),t.lineTo(0,5),t.lineTo(0,-5)}}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),c("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:t=>{t.moveTo(-4,-5),t.lineTo(-1,-5),t.lineTo(-1,5),t.lineTo(-4,5),t.lineTo(-4,-5),t.moveTo(4,-5),t.lineTo(1,-5),t.lineTo(1,5),t.lineTo(4,5),t.lineTo(4,-5)}}),c("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:t.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const t=c("RoundedRectangle",["switch","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["switch","icon"]);t.setAll({radius:8,centerY:0,centerX:0,dx:0}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["switch","icon"]).states.create("active",{dx:16}),c("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:h.out(h.cubic)}),c("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:n.AQ}),c("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:n.AQ}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const t=c("RoundedRectangle",["scrollbar","main","background"]);t.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),l(t,"fill",e,"fill")}{const t=c("RoundedRectangle",["scrollbar","thumb"]);t.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),l(t,"fill",e,"secondaryButton")}l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown"),c("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:n.CI,width:n.AQ,centerX:n.CI,ariaLabel:t.translate("Use up and down arrows to move selection")}),c("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:n.CI,centerY:n.CI,height:n.AQ,ariaLabel:t.translate("Use left and right arrows to move selection")});{const t=c("PointedRectangle",["axis","tooltip","background"]);t.setAll({cornerRadius:0}),l(t,"fill",e,"alternativeBackground")}c("Label",["axis","tooltip"]).setAll({role:void 0}),c("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),c("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),c("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),c("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),c("Star").setAll({spikes:5,innerRadius:5,radius:10}),c("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),c("Tooltip",["indicator"]).setAll({forceHidden:!0}),c("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),c("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),c("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),c("Container",["resizer","grip"]).states.create("hover",{});{const t=c("RoundedRectangle",["resizer","grip"]);t.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),l(t,"fill",e,"background"),l(t,"stroke",e,"alternativeBackground")}{const t=c("RoundedRectangle",["resizer","grip","outline"]);t.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),t.states.create("hover",{fillOpacity:.3}),l(t,"fill",e,"alternativeBackground")}c("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),c("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const t=c("Rectangle",["resizer","rectangle"]);t.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),l(t,"stroke",e,"alternativeBackground")}c("Graphics",["button","plus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0),t.moveTo(0,-4),t.lineTo(0,4)}}),c("Graphics",["button","minus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0)}}),c("Graphics",["button","home","icon"]).setAll({x:n.CI,y:n.CI,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),c("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),c("ZoomTools").setAll({x:n.AQ,centerX:n.AQ,y:n.AQ,centerY:n.AQ,paddingRight:10,paddingBottom:10}),c("ProgressPie").setAll({radius:n.AQ,width:50,height:50,centerX:(0,n.aQ)(-50),centerY:(0,n.aQ)(-50),innerRadius:(0,n.aQ)(85),numberFormat:"#."});{const t=c("Label",["progresspie"]);t.setAll({centerX:n.CI,centerY:n.CI,fontSize:"0.75em"}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["progresspie"]);t.setAll({fillOpacity:.5}),l(t,"fill",e,"background")}{const t=c("Slice",["progresspie"]);t.setAll({startAngle:-90}),l(t,"fill",e,"primaryButton")}{const t=c("Slice",["progresspie","background"]);t.setAll({fillOpacity:.2,arc:360}),l(t,"fill",e,"primaryButton")}c("EditableLabel",["numericstepper"]).setAll({y:n.CI,centerY:n.CI,multiLine:!1,marginRight:2});{const t=c("Container",["numericstepper","buttons"]);t.setAll({layout:this._root.verticalLayout,centerY:n.CI,y:n.CI,marginRight:10,opacity:0}),t.states.create("active",{opacity:1}),t.states.create("default",{opacity:0})}{const t=c("Triangle",["numericstepper"]);t.setAll({width:17,height:11,marginTop:3,marginBottom:3,strokeWidth:5,strokeOpacity:0,cursorOverStyle:"pointer"}),l(t,"fill",e,"secondaryButton")}c("Triangle",["downbutton"]).setAll({rotation:180})}}},5322:function(t,e,i){"use strict";i.r(e),i.d(e,{ArrayDisposer:function(){return c.rk},BlendMode:function(){return ot.b},Bullet:function(){return u.g},Button:function(){return d.z},CSVParser:function(){return bt},CanvasLayer:function(){return Pt.mM},CanvasRenderer:function(){return Pt.uK},Chart:function(){return q.k},Circle:function(){return g.C},CirclePattern:function(){return ut},Color:function(){return O.Il},ColorSet:function(){return mt.U},Component:function(){return v.w},ConfirmButton:function(){return p.p},Container:function(){return w.W},CounterDisposer:function(){return c.DM},DataItem:function(){return v.z},DataProcessor:function(){return xt},DateFormatter:function(){return Dt.C},Disposer:function(){return c.ku},DurationFormatter:function(){return kt.$},EditableLabel:function(){return A.Y},Ellipse:function(){return _.P},Entity:function(){return l.JH},Gradient:function(){return at.p},GrainPattern:function(){return rt},Graphics:function(){return m.T},GridLayout:function(){return x.M},HeatLegend:function(){return C},HorizontalLayout:function(){return L.G},InterfaceColors:function(){return Tt.v},JSONParser:function(){return wt},JsonData:function(){return yt.Q},Label:function(){return D._},Layout:function(){return R.A},Legend:function(){return U.D},Line:function(){return B.x},LinePattern:function(){return dt.y},LinearGradient:function(){return S.o},Link:function(){return F.r},ListData:function(){return yt.k},ListTemplate:function(){return E.o},Modal:function(){return h.u},MultiDisposer:function(){return c.FV},MutableValueDisposer:function(){return c.cx},NumberFormatter:function(){return Mt.e},NumericStepper:function(){return St.l},OrthogonalLine:function(){return I.P},PathPattern:function(){return ft},Pattern:function(){return nt.c},PatternSet:function(){return _t},Percent:function(){return k.gG},Picture:function(){return H.t},PicturePattern:function(){return pt.v},PointedRectangle:function(){return z.i},Polygon:function(){return f.m},ProgressPie:function(){return Nt.w},RadialGradient:function(){return lt},RadialLabel:function(){return G.x},RadialText:function(){return V.f},Rectangle:function(){return W.A},RectanglePattern:function(){return gt},Root:function(){return n.f},RoundedRectangle:function(){return T.c},Scrollbar:function(){return j.L},SerialChart:function(){return Q.j},Series:function(){return K.F},Slice:function(){return $.p},Slider:function(){return X.i},Sprite:function(){return Z.j},SpriteResizer:function(){return Ot.b},Star:function(){return y},Template:function(){return M.YS},Text:function(){return J.x},TextFormatter:function(){return Et.V},Theme:function(){return r.Q},Tick:function(){return tt.d},Timezone:function(){return it.r},Tooltip:function(){return P.u},Triangle:function(){return Y.C},VerticalLayout:function(){return et.Z},ZoomTools:function(){return st.H},ZoomableContainer:function(){return b.Y},addLicense:function(){return o.cP},array:function(){return ht},color:function(){return O.$_},disposeAllRootElements:function(){return o.UZ},ease:function(){return Ct},getRootById:function(){return o.f_},math:function(){return ct},net:function(){return s},object:function(){return vt},p0:function(){return k.p0},p100:function(){return k.AQ},p50:function(){return k.CI},percent:function(){return k.aQ},ready:function(){return a.ready},registry:function(){return o.i_},time:function(){return Rt},type:function(){return N},utils:function(){return a}});var s={};i.r(s),i.d(s,{load:function(){return Lt},readBlob:function(){return At}});var n=i(2855),r=i(3409),o=i(3145),a=i(7652),h=i(8219),l=i(6331),c=i(7449),u=i(5108),d=i(8054),p=i(2936),g=i(8035),f=i(7770),_=i(2433),m=i(1479);class y extends m.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("spikes"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const t=this._display,e=this.get("radius",0),i=a.relativeToValue(this.get("innerRadius",0),e),s=this.get("spikes",0),n=Math.PI/s;let r=Math.PI/2*3;t.moveTo(0,-e);for(let o=0;oT.c._new(this._root,{themeTags:a.mergeTags(this.markers.template.get("themeTags",[]),[this.get("orientation"),"heatlegend","marker"])},[this.markers.template]))))}_afterNew(){this._settings.themeTags=a.mergeTags(this._settings.themeTags,["heatlegend",this._settings.orientation]),super._afterNew(),this.set("tooltip",P.u.new(this._root,{themeTags:["heatlegend"]}))}makeMarker(){const t=this.markers.make();return t.states.create("disabled",{}),t}showValue(t,e,i){const s=this.getTooltip();if(s&&N.isNumber(t)){const n=this.get("startValue",0);let r=(t-n)/(this.get("endValue",1)-n);(r==1/0||r==-1/0||isNaN(r))&&(r=.5);const o=this.get("startColor"),a=this.get("endColor");let h;e||(e=this.getNumberFormatter().format(t)),i||(i=O.Il.interpolate(r,o,a)),s.label.set("text",e),h="vertical"==this.get("orientation")?this.markerContainer.toGlobal({x:0,y:this.innerHeight()*(1-r)}):this.markerContainer.toGlobal({x:this.innerWidth()*r,y:0});let l=s.get("background");l&&l.set("fill",i),s.set("pointTo",h),s.show()}}_prepareChildren(){super._prepareChildren();const t=this.labelContainer,e=this.get("orientation"),i=this.startLabel,s=this.endLabel,n=this.getTooltip();if(this.isDirty("orientation")&&("vertical"==e?(this.markerContainer.setAll({layout:this._root.verticalLayout,height:k.AQ}),this.set("layout",this._root.horizontalLayout),i.setAll({y:k.AQ,x:void 0,centerY:k.AQ,centerX:k.AQ}),s.setAll({y:0,x:void 0,centerY:0,centerX:k.AQ}),t.setAll({height:k.AQ,width:void 0}),n&&n.set("pointerOrientation","horizontal")):(this.markerContainer.setAll({layout:this._root.horizontalLayout,width:k.AQ}),this.set("layout",this._root.verticalLayout),i.setAll({x:0,y:void 0,centerX:0,centerY:0}),s.setAll({x:k.AQ,y:void 0,centerX:k.AQ,centerY:0}),t.setAll({width:k.AQ,height:void 0}),n&&n.set("pointerOrientation","vertical"))),this.isDirty("stepCount")){const t=this.get("stepCount",1),i=this.get("startColor"),s=this.get("endColor"),n=this.get("startOpacity",1),r=this.get("endOpacity",1);if(this.markerContainer.children.clear(),t>1)for(let o=0;o0&&e/u!=Math.round(e/u)))for(let h=0;h0&&h/c!=Math.round(h/c)||d{let i=e.offset;N.isNumber(i)||(i=t/(g.length-1));let s=e.opacity;N.isNumber(s)||(s=1);let n=e.color;if(n){const t=e.lighten;t&&(n=O.Il.lighten(n,t));const r=e.brighten;r&&(n=O.Il.brighten(n,r)),p.addColorStop(i,"rgba("+n.r+","+n.g+","+n.b+","+s+")")}t++}))}return p}}lt.className="RadialGradient",lt.classNames=at.p.classNames.concat([lt.className]);var ct=i(751);class ut extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("radius",3),a=2*o+i,h=2*o+i,l=Math.round(n/a),c=Math.round(r/h);a=n/l,h=r/c,0!=s&&(this._display.x=a*ct.cos(s),this._display.y=h*ct.sin(s));const u=this.get("color"),d=this.get("colorOpacity");(u||d)&&this._display.beginFill(u,d);for(let n=0==s?0:2*-c;n<2*c;n++)for(let r=0==s?0:2*-l;r<2*l;r++)if(!t||1!=(1&n)&&1!=(1&r)||1==(1&n)&&1==(1&r)){let t=r*a,s=n*h;e&&(t+=a+i/2,s+=h+i/2),this._display.drawCircle(t-o,s-o,o)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i),(u||d)&&this._display.endFill()}}ut.className="CirclePattern",ut.classNames=nt.c.classNames.concat([ut.className]);var dt=i(3035),pt=i(4429);class gt extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("maxWidth",5),a=this.get("maxHeight",5);const h=this._display;let l=o+i,c=a+i,u=Math.round(n/l),d=Math.round(r/c);l=n/u,c=r/d,0!=s&&(h.x=l/2*ct.cos(s),h.y=-c/2*ct.sin(s));for(let i=0==s?0:2*-d;i<2*d;i++)for(let n=0==s?0:2*-u;n<2*u;n++)if(!t||1!=(1&i)&&1!=(1&n)||1==(1&i)&&1==(1&n)){let t=n*l,s=i*c;e&&(t+=(l-o)/2,s+=(c-a)/2),h.drawRect(t,s,o,a)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i);const p=this.get("color"),g=this.get("colorOpacity");(p||g)&&(h.beginFill(p,g),h.endFill())}}gt.className="RectanglePattern",gt.classNames=nt.c.classNames.concat([gt.className]);class ft extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("svgPath")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("svgPath");null!=t&&this._display.svgPath(t);const e=this.get("color"),i=this.get("colorOpacity");(e||i)&&(this._display.beginFill(e,i),this._display.endFill())}}ft.className="PathPattern",ft.classNames=nt.c.classNames.concat([ft.className]);class _t extends l.JH{_afterNew(){if(super._afterNewApplyThemes(),0===this.get("patterns",[]).length){const t=this.get("color",this.root.interfaceColors.get("stroke"));this.set("patterns",[this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:1,color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,maxWidth:4,maxHeight:4,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:1,gap:6,color:t}),this.getCirclePattern({width:11,height:11,radius:2,color:t}),this.getLinePattern({width:6,height:6,rotation:90,strokeWidth:1,color:t}),this.getRectanglePattern({width:14,height:14,rotation:45,gap:4,maxWidth:6,maxHeight:6,checkered:!0,color:t}),this.getLinePattern({width:6,height:6,rotation:0,strokeWidth:1,color:t}),this.getRectanglePattern({width:15,height:15,rotation:0,gap:5,maxWidth:5,maxHeight:5,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getCirclePattern({width:20,height:20,radius:3,gap:4,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,gap:1,maxWidth:9,maxHeight:9,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:0,strokeWidth:3,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:90,strokeWidth:3,gap:1,color:t})])}this._dirty.patterns=!1}_beforeChanged(){this.isDirty("patterns")&&this.reset()}getIndex(t){const e=this.get("patterns",[]);return te.length-1?e[t-Math.floor(t*(t/e.length))]:e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0))}getLinePattern(t){return dt.y.new(this.root,t)}getRectanglePattern(t){return gt.new(this.root,t)}getCirclePattern(t){return ut.new(this.root,t)}}_t.className="PatternSet",_t.classNames=l.JH.classNames.concat([_t.className]);var mt=i(2754),yt=i(9582),vt=i(256);class wt{static parse(t,e){e=this._applyDefaults(e);try{if(N.isString(t)){let i=JSON.parse(t);return e.reverse&&N.isArray(i)&&i.reverse(),i}if(N.isArray(t)||N.isObject(t))return t;throw"Unable to parse JSON data"}catch(t){return}}static _applyDefaults(t){const e={};return t||(t={}),vt.each({reverse:!1},((i,s)=>{e[i]=t[i]||s})),e}}class bt{static parse(t,e){e=this._applyDefaults(e);let i,s,n,r=this.CSVToArray(t,e.delimiter),o=[],a=[];for(s=0;s{e[i]=t[i]||s})),e}}class xt extends l.JH{constructor(){super(...arguments),this._checkDates=!1,this._checkNumbers=!1,this._checkColors=!1,this._checkEmpty=!1,this._checkDeep=!1}_afterNew(){super._afterNew(),this._checkFeatures(),this.on("dateFields",(()=>this._checkFeatures())),this.on("dateFormat",(()=>this._checkFeatures())),this.on("numericFields",(()=>this._checkFeatures())),this.on("colorFields",(()=>this._checkFeatures())),this.on("emptyAs",(()=>this._checkFeatures()))}_checkFeatures(){(this.isDirty("dateFields")||this.isDirty("dateFormat"))&&(this._checkDates=this.get("dateFields")&&this.get("dateFields").length>0),this.isDirty("numericFields")&&(this._checkNumbers=this.get("numericFields")&&this.get("numericFields").length>0),this.isDirty("colorFields")&&(this._checkColors=this.get("colorFields")&&this.get("colorFields").length>0),this.isDirty("emptyAs")&&(this._checkEmpty=null!=this.get("emptyAs")),this._checkDeepFeatures()}_checkDeepFeatures(){const t=[];ht.each(["dateFields","numericFields","colorFields"],(e=>{ht.each(this.get(e,[]),(e=>{const i=e.split(".");for(i.pop();i.length>0;)t.push(i.join(".")),i.pop()}))})),this._checkDeep=t.length>0,this.setPrivate("deepFields",t)}processMany(t){N.isArray(t)&&(this._checkDates||this._checkNumbers||this._checkColors||this._checkEmpty)&&ht.each(t,(t=>{this.processRow(t)}))}processRow(t,e=""){vt.each(t,((i,s)=>{const n=e+i;this._checkEmpty&&(t[i]=this._maybeToEmpty(t[i])),this._checkNumbers&&(t[i]=this._maybeToNumber(n,t[i])),this._checkDates&&(t[i]=this._maybeToDate(n,t[i])),this._checkColors&&(t[i]=this._maybeToColor(n,t[i])),this._checkDeep&&-1!==this.getPrivate("deepFields",[]).indexOf(n)&&N.isObject(t[i])&&this.processRow(t[i],n+".")}))}_maybeToNumber(t,e){return-1!==this.get("numericFields").indexOf(t)?N.toNumber(e):e}_maybeToDate(t,e){return-1!==this.get("dateFields").indexOf(t)?this._root.dateFormatter.parse(e,this.get("dateFormat","")).getTime():e}_maybeToEmpty(t){return null!=t&&""!=t||null==this.get("emptyAs")?t:this.get("emptyAs")}_maybeToColor(t,e){return-1!==this.get("colorFields").indexOf(t)?O.Il.fromAny(e):e}}var Dt=i(6460),kt=i(798),Tt=i(9821),Mt=i(780),Et=i(7255),Ot=i(1195),Pt=i(4102),St=i(7049),Nt=i(6312),Ct=i(9395);function Lt(t,e,i){return new Promise(((s,n)=>{let r=null!=i&&"blob"==i.responseType,o=new XMLHttpRequest;if(o.onload=()=>{if(200===o.status){let t,i;if(r)return i=o.response,void At(i).then((t=>{let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}));t=o.responseText||o.response;let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}else n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.onerror=()=>{n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.open("GET",t,!0),i&&i.withCredentials&&(o.withCredentials=!0),null!=i){if(null!=i.requestHeaders)for(let t=0;t{const s=new FileReader;s.onload=t=>{e(s.result)},s.onerror=t=>{i(t)},s.readAsText(t)}))}var Rt=i(1926)},3100:function(t,e){"use strict";e.Z={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(t){let e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""}},9629:function(t){var e=function(t){"use strict";var e,i=Object.prototype,s=i.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",h=r.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,s){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new S(s||[]);return n(o,"_invoke",{value:M(t,i,a)}),o}function u(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",g="executing",f="completed",_={};function m(){}function y(){}function v(){}var w={};l(w,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==i&&s.call(x,o)&&(w=x);var D=v.prototype=m.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function i(n,r,o,a){var h=u(t[n],t,r);if("throw"!==h.type){var l=h.arg,c=l.value;return c&&"object"==typeof c&&s.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,o,a)}),(function(t){i("throw",t,o,a)})):e.resolve(c).then((function(t){l.value=t,o(l)}),(function(t){return i("throw",t,o,a)}))}a(h.arg)}var r;n(this,"_invoke",{value:function(t,s){function n(){return new e((function(e,n){i(t,s,e,n)}))}return r=r?r.then(n,n):n()}})}function M(t,e,i){var s=d;return function(n,r){if(s===g)throw new Error("Generator is already running");if(s===f){if("throw"===n)throw r;return C()}for(i.method=n,i.arg=r;;){var o=i.delegate;if(o){var a=E(o,i);if(a){if(a===_)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===d)throw s=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=g;var h=u(t,e,i);if("normal"===h.type){if(s=i.done?f:p,h.arg===_)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(s=f,i.method="throw",i.arg=h.arg)}}}function E(t,i){var s=i.method,n=t.iterator[s];if(n===e)return i.delegate=null,"throw"===s&&t.iterator.return&&(i.method="return",i.arg=e,E(t,i),"throw"===i.method)||"return"!==s&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),_;var r=u(n,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,_;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,_):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,_)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var h=s.call(o,"catchLoc"),l=s.call(o,"finallyLoc");if(h&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var s=i.completion;if("throw"===s.type){var n=s.arg;P(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,s){return this.delegate={iterator:N(t),resultName:i,nextLoc:s},"next"===this.method&&(this.arg=e),_}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},8494:function(t,e,i){"use strict";i.r(e),i.d(e,{am5:function(){return f}});const s=window.Promise,n=s&&s.prototype.then,r=s&&s.prototype.catch,o=s&&s.prototype.finally,a=s&&s.reject,h=s&&s.resolve,l=s&&s.allSettled,c=s&&s.all,u=s&&s.race,d=window.fetch,p=String.prototype.startsWith,g=String.prototype.endsWith;i(9629);const f=i(5322);var _;i.p=(_=function(){if(document.currentScript)return document.currentScript;var t=document.getElementsByTagName("script");return t[t.length-1]}().src,((/(.*\/)[^\/]*$/.exec(_)||[])[1]||"./")),s&&(window.Promise=s,n&&(s.prototype.then=n),r&&(s.prototype.catch=r),o&&(s.prototype.finally=o),a&&(s.reject=a),h&&(s.resolve=h),l&&(s.allSettled=l),c&&(s.all=c),u&&(s.race=u)),d&&(window.fetch=d),p&&(String.prototype.startsWith=p),g&&(String.prototype.endsWith=g)},4138:function(t,e){"use strict";var i={value:()=>{}};function s(){for(var t,e=0,i=arguments.length,s={};e=0&&(e=t.slice(i+1),t=t.slice(0,i)),t&&!s.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),h=-1,l=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++h0)for(var i,s,n=new Array(i),r=0;r0&&i*i>s*s+n*n}function u(t,e){for(var i=0;i1e-6?(E+Math.sqrt(E*E-4*M*O))/(2*M):O/E);return{x:s+x+D*P,y:n+k+T*P,r:P}}function f(t,e,i){var s,n,r,o,a=t.x-e.x,h=t.y-e.y,l=a*a+h*h;l?(n=e.r+i.r,n*=n,o=t.r+i.r,n>(o*=o)?(s=(l+o-n)/(2*l),r=Math.sqrt(Math.max(0,o/l-s*s)),i.x=t.x-s*a-r*h,i.y=t.y-s*h+r*a):(s=(l+n-o)/(2*l),r=Math.sqrt(Math.max(0,n/l-s*s)),i.x=e.x+s*a-r*h,i.y=e.y+s*h+r*a)):(i.x=e.x+i.r,i.y=e.y)}function _(t,e){var i=t.r+e.r-1e-6,s=e.x-t.x,n=e.y-t.y;return i>0&&i*i>s*s+n*n}function m(t){var e=t._,i=t.next._,s=e.r+i.r,n=(e.x*i.r+i.x*e.r)/s,r=(e.y*i.r+i.y*e.r)/s;return n*n+r*r}function y(t){this._=t,this.next=null,this.previous=null}function v(t,e){if(!(o=(i=t,t="object"==typeof i&&"length"in i?i:Array.from(i)).length))return 0;var i,s,n,r,o,a,l,u,p,g,v,w;if((s=t[0]).x=0,s.y=0,!(o>1))return s.r;if(n=t[1],s.x=-n.r,n.x=s.r,n.y=0,!(o>2))return s.r+n.r;f(n,s,r=t[2]),s=new y(s),n=new y(n),r=new y(r),s.next=r.previous=n,n.next=s.previous=r,r.next=n.previous=s;t:for(u=3;u(t=(r*t+o)%a)/a}();return s.x=e/2,s.y=i/2,t?s.eachBefore(x(t)).eachAfter(D(h,.5,l)).eachBefore(k(1)):s.eachBefore(x(w)).eachAfter(D(n.G,1,l)).eachAfter(D(h,s.r/Math.min(e,i),l)).eachBefore(k(Math.min(e,i)/(2*s.r))),s}return l.radius=function(e){return arguments.length?(t=(0,s.j)(e),l):t},l.size=function(t){return arguments.length?(e=+t[0],i=+t[1],l):[e,i]},l.padding=function(t){return arguments.length?(h="function"==typeof t?t:(0,n.Z)(+t),l):h},l}function x(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function D(t,e,i){return function(s){if(n=s.children){var n,r,o,a=n.length,h=t(s)*e||0;if(h)for(r=0;r=0))throw new Error(`invalid digits: ${t}`);if(e>15)return a;const i=10**e;return function(t){this._+=t[0];for(let e=1,s=t.length;er)if(Math.abs(d*l-c*u)>r&&o){let g=i-a,f=n-h,_=l*l+c*c,m=g*g+f*f,y=Math.sqrt(_),v=Math.sqrt(p),w=o*Math.tan((s-Math.acos((_+p-m)/(2*y*v)))/2),b=w/v,x=w/y;Math.abs(b-1)>r&&this._append`L${t+b*u},${e+b*d}`,this._append`A${o},${o},0,0,${+(d*g>u*f)},${this._x1=t+x*l},${this._y1=e+x*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,i,a,h,l){if(t=+t,e=+e,l=!!l,(i=+i)<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(a),u=i*Math.sin(a),d=t+c,p=e+u,g=1^l,f=l?a-h:h-a;null===this._x1?this._append`M${d},${p}`:(Math.abs(this._x1-d)>r||Math.abs(this._y1-p)>r)&&this._append`L${d},${p}`,i&&(f<0&&(f=f%n+n),f>o?this._append`A${i},${i},0,1,${g},${t-c},${e-u}A${i},${i},0,1,${g},${this._x1=d},${this._y1=p}`:f>r&&this._append`A${i},${i},0,${+(f>=s)},${g},${this._x1=t+i*Math.cos(h)},${this._y1=e+i*Math.sin(h)}`)}rect(t,e,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function l(){return new h}l.prototype=h.prototype},832:function(t,e,i){"use strict";i.d(e,{Z:function(){return D}});var s=i(3141);const n=Math.abs,r=Math.atan2,o=Math.cos,a=Math.max,h=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,d=Math.PI,p=d/2,g=2*d;function f(t){return t>=1?p:t<=-1?-p:Math.asin(t)}var _=i(5987);function m(t){return t.innerRadius}function y(t){return t.outerRadius}function v(t){return t.startAngle}function w(t){return t.endAngle}function b(t){return t&&t.padAngle}function x(t,e,i,s,n,r,o){var h=t-i,l=e-s,u=(o?r:-r)/c(h*h+l*l),d=u*l,p=-u*h,g=t+d,f=e+p,_=i+d,m=s+p,y=(g+_)/2,v=(f+m)/2,w=_-g,b=m-f,x=w*w+b*b,D=n-r,k=g*m-_*f,T=(b<0?-1:1)*c(a(0,D*D*x-k*k)),M=(k*b-w*T)/x,E=(-k*w-b*T)/x,O=(k*b+w*T)/x,P=(-k*w+b*T)/x,S=M-y,N=E-v,C=O-y,L=P-v;return S*S+N*N>C*C+L*L&&(M=O,E=P),{cx:M,cy:E,x01:-d,y01:-p,x11:M*(n/D-1),y11:E*(n/D-1)}}function D(){var t=m,e=y,i=(0,s.Z)(0),a=null,D=v,k=w,T=b,M=null,E=(0,_.d)(O);function O(){var s,_,m,y=+t.apply(this,arguments),v=+e.apply(this,arguments),w=D.apply(this,arguments)-p,b=k.apply(this,arguments)-p,O=n(b-w),P=b>w;if(M||(M=s=E()),vu)if(O>g-u)M.moveTo(v*o(w),v*l(w)),M.arc(0,0,v,w,b,!P),y>u&&(M.moveTo(y*o(b),y*l(b)),M.arc(0,0,y,b,w,P));else{var S,N,C=w,L=b,A=w,R=b,U=O,B=O,F=T.apply(this,arguments)/2,I=F>u&&(a?+a.apply(this,arguments):c(y*y+v*v)),H=h(n(v-y)/2,+i.apply(this,arguments)),z=H,G=H;if(I>u){var V=f(I/y*l(F)),W=f(I/v*l(F));(U-=2*V)>u?(A+=V*=P?1:-1,R-=V):(U=0,A=R=(w+b)/2),(B-=2*W)>u?(C+=W*=P?1:-1,L-=W):(B=0,C=L=(w+b)/2)}var Y=v*o(C),j=v*l(C),X=y*o(R),$=y*l(R);if(H>u){var Z,K=v*o(L),q=v*l(L),Q=y*o(A),J=y*l(A);if(O1?0:m<-1?d:Math.acos(m))/2),rt=c(Z[0]*Z[0]+Z[1]*Z[1]);z=h(H,(y-rt)/(nt-1)),G=h(H,(v-rt)/(nt+1))}else z=G=0}B>u?G>u?(S=x(Q,J,Y,j,v,G,P),N=x(K,q,X,$,v,G,P),M.moveTo(S.cx+S.x01,S.cy+S.y01),Gu&&U>u?z>u?(S=x(X,$,K,q,y,-z,P),N=x(Y,j,Q,J,y,-z,P),M.lineTo(S.cx+S.x01,S.cy+S.y01),z=o;--a)p.point(y[a],v[a]);p.lineEnd(),p.areaEnd()}m&&(y[r]=+t(h,r,n),v[r]=+e(h,r,n),p.point(l?+l(h,r,n):y[r],i?+i(h,r,n):v[r]))}if(f)return p=null,f+""||null}function _(){return(0,o.Z)().defined(c).curve(d).context(u)}return t="function"==typeof t?t:void 0===t?h.x:(0,n.Z)(+t),e="function"==typeof e?e:void 0===e?(0,n.Z)(0):(0,n.Z)(+e),i="function"==typeof i?i:void 0===i?h.y:(0,n.Z)(+i),f.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),l=null,f):t},f.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),f):t},f.x1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):l},f.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),i=null,f):e},f.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),f):e},f.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):i},f.lineX0=f.lineY0=function(){return _().x(t).y(e)},f.lineY1=function(){return _().x(t).y(i)},f.lineX1=function(){return _().x(l).y(e)},f.defined=function(t){return arguments.length?(c="function"==typeof t?t:(0,n.Z)(!!t),f):c},f.curve=function(t){return arguments.length?(d=t,null!=u&&(p=d(u)),f):d},f.context=function(t){return arguments.length?(null==t?u=p=null:p=d(u=t),f):u},f}},8457:function(t,e,i){"use strict";function s(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}i.d(e,{Z:function(){return s}}),Array.prototype.slice},3141:function(t,e,i){"use strict";function s(t){return function(){return t}}i.d(e,{Z:function(){return s}})},964:function(t,e,i){"use strict";function s(t){this._context=t}function n(t){return new s(t)}i.d(e,{Z:function(){return n}}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},774:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var s=i(8457),n=i(3141),r=i(964),o=i(5987),a=i(6758);function h(t,e){var i=(0,n.Z)(!0),h=null,l=r.Z,c=null,u=(0,o.d)(d);function d(n){var r,o,a,d=(n=(0,s.Z)(n)).length,p=!1;for(null==h&&(c=l(a=u())),r=0;r<=d;++r)!(r=0))throw new RangeError(`invalid digits: ${i}`);e=t}return t},()=>new s.y$(e)}},6758:function(t,e,i){"use strict";function s(t){return t[0]}function n(t){return t[1]}i.d(e,{x:function(){return s},y:function(){return n}})},7738:function(t,e,i){"use strict";i.d(e,{B7:function(){return _},HT:function(){return m},zO:function(){return g}});var s,n,r=0,o=0,a=0,h=1e3,l=0,c=0,u=0,d="object"==typeof performance&&performance.now?performance:Date,p="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return c||(p(f),c=d.now()+u)}function f(){c=0}function _(){this._call=this._time=this._next=null}function m(t,e,i){var s=new _;return s.restart(t,e,i),s}function y(){c=(l=d.now())+u,r=o=0;try{!function(){g(),++r;for(var t,e=s;e;)(t=c-e._time)>=0&&e._call.call(void 0,t),e=e._next;--r}()}finally{r=0,function(){for(var t,e,i=s,r=1/0;i;)i._call?(r>i._time&&(r=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:s=e);n=t,w(r)}(),c=0}}function v(){var t=d.now(),e=t-l;e>h&&(u-=e,l=t)}function w(t){r||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(y,t-d.now()-u)),a&&(a=clearInterval(a))):(a||(l=d.now(),a=setInterval(v,h)),r=1,p(y)))}_.prototype=m.prototype={constructor:_,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?g():+i)+(null==e?0:+e),this._next||n===this||(n?n._next=this:s=this,n=this),this._call=t,this._time=i,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},7896:function(t,e,i){"use strict";function s(){}function n(t){return null==t?s:function(){return this.querySelector(t)}}function r(){return[]}function o(t){return null==t?r:function(){return this.querySelectorAll(t)}}function a(t){return function(){return this.matches(t)}}function h(t){return function(e){return e.matches(t)}}var l=Array.prototype.find;function c(){return this.firstElementChild}var u=Array.prototype.filter;function d(){return Array.from(this.children)}function p(t){return new Array(t.length)}function g(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function f(t,e,i,s,n,r){for(var o,a=0,h=e.length,l=r.length;ae?1:t>=e?0:NaN}g.prototype={constructor:g,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var w="http://www.w3.org/1999/xhtml",b={svg:"http://www.w3.org/2000/svg",xhtml:w,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function x(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),b.hasOwnProperty(e)?{space:b[e],local:t}:t}function D(t){return function(){this.removeAttribute(t)}}function k(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T(t,e){return function(){this.setAttribute(t,e)}}function M(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function O(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function P(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function S(t){return function(){this.style.removeProperty(t)}}function N(t,e,i){return function(){this.style.setProperty(t,e,i)}}function C(t,e,i){return function(){var s=e.apply(this,arguments);null==s?this.style.removeProperty(t):this.style.setProperty(t,s,i)}}function L(t,e){return t.style.getPropertyValue(e)||P(t).getComputedStyle(t,null).getPropertyValue(e)}function A(t){return function(){delete this[t]}}function R(t,e){return function(){this[t]=e}}function U(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function B(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new I(t)}function I(t){this._node=t,this._names=B(t.getAttribute("class")||"")}function H(t,e){for(var i=F(t),s=-1,n=e.length;++s=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ut=[null];function dt(t,e){this._groups=t,this._parents=e}function pt(){return new dt([[document.documentElement]],ut)}dt.prototype=pt.prototype={constructor:dt,select:function(t){"function"!=typeof t&&(t=n(t));for(var e=this._groups,i=e.length,s=new Array(i),r=0;r=T&&(T=k+1);!(D=b[T])&&++T=0;)(s=n[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=v);for(var i=this._groups,s=i.length,n=new Array(s),r=0;r1?this.each((null==e?S:"function"==typeof e?C:N)(t,e,null==i?"":i)):L(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?A:"function"==typeof e?U:R)(t,e)):this.node()[t]},classed:function(t,e){var i=B(t+"");if(arguments.length<2){for(var s=F(this.node()),n=-1,r=i.length;++n=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}))}(t+""),o=r.length;if(!(arguments.length<2)){for(a=e?at:ot,s=0;s{s.stop(),t(i+e)}),e,i),s}var yt=(0,ft.Z)("start","end","cancel","interrupt"),vt=[],wt=0,bt=3;function xt(t,e,i,s,n,r){var o=t.__transition;if(o){if(i in o)return}else t.__transition={};!function(t,e,i){var s,n=t.__transition;function r(h){var l,c,u,d;if(1!==i.state)return a();for(l in n)if((d=n[l]).name===i.name){if(d.state===bt)return mt(r);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[l]):+lwt)throw new Error("too late; already scheduled");return i}function kt(t,e){var i=Tt(t,e);if(i.state>bt)throw new Error("too late; already running");return i}function Tt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Mt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Et,Ot=180/Math.PI,Pt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function St(t,e,i,s,n,r){var o,a,h;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(h=t*i+e*s)&&(i-=t*h,s-=e*h),(a=Math.sqrt(i*i+s*s))&&(i/=a,s/=a,h/=a),t*s180?e+=360:e-t>180&&(t+=360),r.push({i:i.push(n(i)+"rotate(",null,s)-2,x:Mt(t,e)})):e&&i.push(n(i)+"rotate("+e+s)}(r.rotate,o.rotate,a,h),function(t,e,i,r){t!==e?r.push({i:i.push(n(i)+"skewX(",null,s)-2,x:Mt(t,e)}):e&&i.push(n(i)+"skewX("+e+s)}(r.skewX,o.skewX,a,h),function(t,e,i,s,r,o){if(t!==i||e!==s){var a=r.push(n(r)+"scale(",null,",",null,")");o.push({i:a-4,x:Mt(t,i)},{i:a-2,x:Mt(e,s)})}else 1===i&&1===s||r.push(n(r)+"scale("+i+","+s+")")}(r.scaleX,r.scaleY,o.scaleX,o.scaleY,a,h),r=o=null,function(t){for(var e,i=-1,s=h.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?se(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?se(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jt.exec(t))?new re(e[1],e[2],e[3],1):(e=Xt.exec(t))?new re(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$t.exec(t))?se(e[1],e[2],e[3],e[4]):(e=Zt.exec(t))?se(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Kt.exec(t))?ue(e[1],e[2]/100,e[3]/100,1):(e=qt.exec(t))?ue(e[1],e[2]/100,e[3]/100,e[4]):Qt.hasOwnProperty(t)?ie(Qt[t]):"transparent"===t?new re(NaN,NaN,NaN,0):null}function ie(t){return new re(t>>16&255,t>>8&255,255&t,1)}function se(t,e,i,s){return s<=0&&(t=e=i=NaN),new re(t,e,i,s)}function ne(t,e,i,s){return 1===arguments.length?((n=t)instanceof It||(n=ee(n)),n?new re((n=n.rgb()).r,n.g,n.b,n.opacity):new re):new re(t,e,i,null==s?1:s);var n}function re(t,e,i,s){this.r=+t,this.g=+e,this.b=+i,this.opacity=+s}function oe(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}`}function ae(){const t=he(this.opacity);return`${1===t?"rgb(":"rgba("}${le(this.r)}, ${le(this.g)}, ${le(this.b)}${1===t?")":`, ${t})`}`}function he(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function le(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ce(t){return((t=le(t))<16?"0":"")+t.toString(16)}function ue(t,e,i,s){return s<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new pe(t,e,i,s)}function de(t){if(t instanceof pe)return new pe(t.h,t.s,t.l,t.opacity);if(t instanceof It||(t=ee(t)),!t)return new pe;if(t instanceof pe)return t;var e=(t=t.rgb()).r/255,i=t.g/255,s=t.b/255,n=Math.min(e,i,s),r=Math.max(e,i,s),o=NaN,a=r-n,h=(r+n)/2;return a?(o=e===r?(i-s)/a+6*(i0&&h<1?0:o,new pe(o,a,h,t.opacity)}function pe(t,e,i,s){this.h=+t,this.s=+e,this.l=+i,this.opacity=+s}function ge(t){return(t=(t||0)%360)<0?t+360:t}function fe(t){return Math.max(0,Math.min(1,t||0))}function _e(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function me(t,e,i,s,n){var r=t*t,o=r*t;return((1-3*t+3*r-o)*e+(4-6*r+3*o)*i+(1+3*t+3*r-3*o)*s+o*n)/6}Bt(It,ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return de(this).formatHsl()},formatRgb:te,toString:te}),Bt(re,ne,Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new re(le(this.r),le(this.g),le(this.b),he(this.opacity))},displayable(){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:oe,formatHex:oe,formatHex8:function(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}${ce(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ae,toString:ae})),Bt(pe,(function(t,e,i,s){return 1===arguments.length?de(t):new pe(t,e,i,null==s?1:s)}),Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new pe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new pe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*e,n=2*i-s;return new re(_e(t>=240?t-240:t+120,n,s),_e(t,n,s),_e(t<120?t+240:t-120,n,s),this.opacity)},clamp(){return new pe(ge(this.h),fe(this.s),fe(this.l),he(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=he(this.opacity);return`${1===t?"hsl(":"hsla("}${ge(this.h)}, ${100*fe(this.s)}%, ${100*fe(this.l)}%${1===t?")":`, ${t})`}`}}));var ye=t=>()=>t;function ve(t,e){var i=e-t;return i?function(t,e){return function(i){return t+i*e}}(t,i):ye(isNaN(t)?e:t)}var we=function t(e){var i=function(t){return 1==(t=+t)?ve:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(s){return Math.pow(t+s*e,i)}}(e,i,t):ye(isNaN(e)?i:e)}}(e);function s(t,e){var s=i((t=ne(t)).r,(e=ne(e)).r),n=i(t.g,e.g),r=i(t.b,e.b),o=ve(t.opacity,e.opacity);return function(e){return t.r=s(e),t.g=n(e),t.b=r(e),t.opacity=o(e),t+""}}return s.gamma=t,s}(1);function be(t){return function(e){var i,s,n=e.length,r=new Array(n),o=new Array(n),a=new Array(n);for(i=0;i=1?(i=1,e-1):Math.floor(i*e),n=t[s],r=t[s+1],o=s>0?t[s-1]:2*n-r,a=sr&&(n=e.slice(r,n),a[o]?a[o]+=n:a[++o]=n),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,h.push({i:o,x:Mt(i,s)})),r=De.lastIndex;return r=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Dt:kt;return function(){var o=r(this,t),a=o.on;a!==s&&(n=(s=a).copy()).on(e,i),o.on=n}}(i,t,e))},attr:function(t,e){var i=x(t),s="transform"===i?Lt:Te;return this.attrTween(t,"function"==typeof e?(i.local?Ne:Se)(i,s,Ut(this,"attr."+t,e)):null==e?(i.local?Ee:Me)(i):(i.local?Pe:Oe)(i,s,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;var s=x(t);return this.tween(i,(s.local?Ce:Le)(s,e))},style:function(t,e,i){var s="transform"==(t+="")?Ct:Te;return null==e?this.styleTween(t,function(t,e){var i,s,n;return function(){var r=L(this,t),o=(this.style.removeProperty(t),L(this,t));return r===o?null:r===i&&o===s?n:n=e(i=r,s=o)}}(t,s)).on("end.style."+t,Ie(t)):"function"==typeof e?this.styleTween(t,function(t,e,i){var s,n,r;return function(){var o=L(this,t),a=i(this),h=a+"";return null==a&&(this.style.removeProperty(t),h=a=L(this,t)),o===h?null:o===s&&h===n?r:(n=h,r=e(s=o,a))}}(t,s,Ut(this,"style."+t,e))).each(function(t,e){var i,s,n,r,o="style."+e,a="end."+o;return function(){var h=kt(this,t),l=h.on,c=null==h.value[o]?r||(r=Ie(e)):void 0;l===i&&n===c||(s=(i=l).copy()).on(a,n=c),h.on=s}}(this._id,t)):this.styleTween(t,function(t,e,i){var s,n,r=i+"";return function(){var o=L(this,t);return o===r?null:o===s?n:n=e(s=o,i)}}(t,s,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var s="style."+(t+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(null==e)return this.tween(s,null);if("function"!=typeof e)throw new Error;return this.tween(s,function(t,e,i){var s,n;function r(){var r=e.apply(this,arguments);return r!==n&&(s=(n=r)&&function(t,e,i){return function(s){this.style.setProperty(t,e.call(this,s),i)}}(t,r,i)),s}return r._value=e,r}(t,e,null==i?"":i))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ut(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,i;function s(){var s=t.apply(this,arguments);return s!==i&&(e=(i=s)&&function(t){return function(e){this.textContent=t.call(this,e)}}(s)),e}return s._value=t,s}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var s,n=Tt(this.node(),i).tween,r=0,o=n.length;r2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[n]):o=!1;o&&delete t.__transition}}(this,t)}))},gt.prototype.transition=function(t){var e,i;t instanceof ze?(e=t._id,t=t._name):(e=Ge(),(i=We).time=(0,_t.zO)(),t=null==t?null:t+"");for(var s=this._groups,n=s.length,r=0;r=n)&&Object.keys(a.O).every((function(t){return a.O[t](i[h])}))?i.splice(h--,1):(o=!1,n0&&t[c-1][2]>n;c--)t[c]=t[c-1];t[c]=[i,s,n]},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},i=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(t,s){if(1&s&&(t=this(t)),8&s)return t;if("object"==typeof t&&t){if(4&s&&t.__esModule)return t;if(16&s&&"function"==typeof t.then)return t}var n=Object.create(null);a.r(n);var r={};e=e||[null,i({}),i([]),i(i)];for(var o=2&s&&t;"object"==typeof o&&!~e.indexOf(o);o=i(o))Object.getOwnPropertyNames(o).forEach((function(e){r[e]=function(){return t[e]}}));return r.default=function(){return t},a.d(n,r),n},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,i){return a.f[i](t,e),e}),[]))},a.u=function(t){return"deps/"+{643:"pdfmake",4297:"xlsx",4384:"markerjs2"}[t]+".js"},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s={},n="@amcharts/amcharts5:",a.l=function(t,e,i,r){if(s[t])s[t].push(e);else{var o,h;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c{this.zoomOut()})),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",e);const a=this.plotContainer;a.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),a.children.push(this.topGridContainer),a.children.push(this.bulletsContainer),a.set("interactive",!0),a.set("interactiveChildren",!1),a.set("background",o.A.new(t,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(a.events.on("pointerdown",(t=>{this._handlePlotDown(t)}))),this._disposers.push(a.events.on("globalpointerup",(t=>{this._handlePlotUp(t)}))),this._disposers.push(a.events.on("globalpointermove",(t=>{this._handlePlotMove(t)}))),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(t){t._unstack(),t._posXDp&&t._posXDp.dispose(),t._posYDp&&t._posYDp.dispose(),t.set("baseAxis",void 0);const e=t.get("xAxis");e&&(g.remove(e.series,t),e.markDirtyExtremes());const i=t.get("yAxis");i&&(g.remove(i.series,t),i.markDirtyExtremes());const s=this.get("cursor");if(s){const e=s.get("snapToSeries");e&&g.remove(e,t)}super._removeSeries(t)}_applyThemes(t=!1){const e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}handleWheel(t){const e=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=t.originalEvent;let o=!1;if(!p.isLocalEvent(a,this))return;o=!0;const n=s.toLocal(t.point),r=this.get("wheelStep",.2),h=a.deltaY/100,l=a.deltaX/100,d=this.get("wheelZoomPositionX"),g=this.get("wheelZoomPositionY");"zoomX"!==e&&"zoomXY"!==e||0==l||this.xAxes.each((t=>{if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let h=t.get("maxDeviation",0),g=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let l=t.get("maxDeviation",0),g=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let h=t.get("maxDeviation",0),d=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let l=t.get("maxDeviation",0),d=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panX"!==i&&"panXY"!==i||0==h||this.xAxes.each((t=>{if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e+s,n=i+s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==e&&"panXY"!==e||0==l||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==i&&"panXY"!==i||0==h||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e-s,n=i-s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),o&&a.preventDefault()}_handleSetWheel(){const t=this.get("wheelX"),e=this.get("wheelY"),i=this.plotContainer;"none"!==t||"none"!==e?(this._wheelDp=i.events.on("wheel",(i=>{const s=i.originalEvent;("none"!==t&&0!=Math.abs(s.deltaX)||"none"!==e&&0!=Math.abs(s.deltaY))&&this.handleWheel(i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(t){let e=1;return t.get("renderer").get("inversed")&&(e=-1),e}_fixWheel(t,e){const i=e-t;return t<0&&(e=(t=0)+i),e>1&&(t=(e=1)-i),[t,e]}_handlePlotDown(t){const e=t.originalEvent;if(2==e.button)return;const i=this.plotContainer;let s=i.toLocal(t.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&e.pointerId&&m.keys(i._downPoints).length>0){const t=this.xAxes.getIndex(0),e=this.yAxes.getIndex(0);t&&(this._downStartX=t.get("start",0),this._downEndX=t.get("end",1)),e&&(this._downStartY=e.get("start",0),this._downEndY=e.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:e.clientX,y:e.clientY};const i=this.get("panX"),s=this.get("panY");i&&this.xAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")})),s&&this.yAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")}));const a="panstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:t.originalEvent})}}_handleWheelAnimation(t){t?t.events.on("stopped",(()=>{this._dispatchWheelAnimation()})):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const t="wheelended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}_handlePlotUp(t){const e=this._downPoint;if(e&&(this.get("panX")||this.get("panY"))){if(t.originalEvent.clientX==e.x&&t.originalEvent.clientY==e.y){const e="pancancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:t.originalEvent})}this._downPoint=void 0,this.xAxes.each((t=>{t._isPanning=!1})),this.yAxes.each((t=>{t._isPanning=!1}))}_handlePlotMove(t){const e=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const i=t.originalEvent.pointerId;if(i&&(this._movePoints[i]=t.point,m.keys(e._downPoints).length>1))return void this._handlePinch()}let i=this._downPoint;if(i){i=e.toLocal(this._root.documentPointToRoot(i));let s=e.toLocal(t.point);const a=this.get("panX"),o=this.get("panY");if(a){let t=this.get("scrollbarX");t&&t.events.disableType("rangechanged"),this.xAxes.each((t=>{if(t.get("panX")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.x-s.x)/e.width();t.get("renderer").get("inversed")&&(n*=-1);let r=a+n,h=o+n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}if(o){let t=this.get("scrollbarY");t&&t.events.disableType("rangechanged"),this.yAxes.each((t=>{if(t.get("panY")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.y-s.y)/e.height();t.get("renderer").get("inversed")&&(n*=-1);let r=a-n,h=o-n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}}}_handlePinch(){const t=this.plotContainer;let e=0,i=[],s=[];if(m.each(t._downPoints,((t,a)=>{i[e]=a;let o=this._movePoints[t];o&&(s[e]=o),e++})),i.length>1&&s.length>1){const e=t.width(),a=t.height();let o=i[0],n=i[1],r=s[0],h=s[1];if(o&&n&&r&&h){if(r=t.toLocal(r),h=t.toLocal(h),o=t.toLocal(o),n=t.toLocal(n),this.get("pinchZoomX")){const t=this._downStartX,i=this._downEndX;if(null!=t&&null!=i){o.x>n.x&&([o,n]=[n,o],[r,h]=[h,r]);let s=t+o.x/e*(i-t),a=t+n.x/e*(i-t),l=t+r.x/e*(i-t),d=t+h.x/e*(i-t),g=Math.max(.001,a-s)/Math.max(.001,d-l),c=t*g+s-l*g,u=i*g+a-d*g;this.xAxes.each((t=>{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}if(this.get("pinchZoomY")){const t=this._downStartY,e=this._downEndY;if(null!=t&&null!=e){o.y{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}}}}_handleCursorPosition(){const t=this.get("cursor");if(t){const e=t.getPrivate("point");let i=t.get("snapToSeries");if(t._downPoint&&(i=void 0),i&&e){const s=t.get("snapToSeriesBy"),a=[];g.each(i,(t=>{if(!t.isHidden()&&!t.isHiding())if("x!"!=s&&"y!"!=s){const e=t.startIndex(),i=t.endIndex();for(let s=e;s{const i=t.get("point");if(i){let a=0;a="x"==s||"x!"==s?Math.abs(e.x-i.x):"y"==s||"y!"==s?Math.abs(e.y-i.y):Math.hypot(e.x-i.x,e.y-i.y),a{const e=t.get("tooltip");e&&e._setDataItem(void 0)})),o){let e=o.component;e.showDataItemTooltip(o),e.setRaw("tooltipDataItem",o);const i=o.get("point");i&&t.handleMove(e.toGlobal({x:i.x-e.x(),y:i.y-e.y()}),!0)}}}}_updateCursor(){let t=this.get("cursor");t&&t.updateCursor()}_addCursor(t){this.plotContainer.children.push(t)}_prepareChildren(){if(super._prepareChildren(),this.series.each((t=>{this._colorize(t)})),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const t=this._prevSettings.cursor,e=this.get("cursor");e!==t&&(this._disposeProperty("cursor"),t&&t.dispose(),e&&(e._setChart(this),this._addCursor(e),this._pushPropertyDisposer("cursor",e.events.on("selectended",(()=>{this._handleCursorSelectEnd()})))),this._prevSettings.cursor=e)}if(this.isDirty("scrollbarX")){const t=this._prevSettings.scrollbarX,e=this.get("scrollbarX");e!==t&&(this._disposeProperty("scrollbarX"),t&&t.dispose(),e&&(e.parent||this.topAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarX",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.xAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarX",e.events.on("released",(()=>{this.xAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.xAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarX=e)}if(this.isDirty("scrollbarY")){const t=this._prevSettings.scrollbarY,e=this.get("scrollbarY");e!==t&&(this._disposeProperty("scrollbarY"),t&&t.dispose(),e&&(e.parent||this.rightAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarY",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.yAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarY",e.events.on("released",(()=>{this.yAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.yAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarY=e)}this._handleZoomOut()}_processSeries(t){super._processSeries(t);const e=t.get("xAxis"),i=t.get("yAxis");g.move(e.series,t),g.move(i.series,t),t._posXDp=t.addDisposer(e.events.on("positionchanged",(()=>{t._fixPosition()}))),t._posXDp=t.addDisposer(i.events.on("positionchanged",(()=>{t._fixPosition()}))),t.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?t.set("baseAxis",i):t.set("baseAxis",e)),t.get("stacked")&&(t._markDirtyKey("stacked"),g.each(t.dataItems,(t=>{t.set("stackToItemY",void 0),t.set("stackToItemX",void 0)}))),t._markDirtyAxes(),i.markDirtyExtremes(),e.markDirtyExtremes(),e._seriesAdded=!0,i._seriesAdded=!0,this._colorize(t)}_colorize(t){const e=this.get("colors");if(e&&null==t.get("fill")){const i=e.next();t._setSoft("stroke",i),t._setSoft("fill",i)}const i=this.get("patterns");if(i&&null==t.get("fillPattern")){const e=i.next();t._setSoft("fillPattern",e)}}_handleCursorSelectEnd(){const t=this.get("cursor"),e=t.get("behavior"),i=t.getPrivate("downPositionX",0),s=t.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,t.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,t.getPrivate("positionY",.5)));this.xAxes.each((t=>{if("zoomX"===e||"zoomXY"===e){let e=t.toAxisPosition(i),s=t.toAxisPosition(a);t.zoom(e,s)}t.setPrivate("updateScrollbar",!0)})),this.yAxes.each((t=>{if("zoomY"===e||"zoomXY"===e){let e=t.toAxisPosition(s),i=t.toAxisPosition(o);t.zoom(e,i)}t.setPrivate("updateScrollbar",!0)}))}_handleScrollbar(t,e,i,s){t.each((t=>{let a=t.fixPosition(e),o=t.fixPosition(i),n=t.zoom(a,o,void 0,s);const r="updateScrollbar";t.setPrivateRaw(r,!1),n?n.events.on("stopped",(()=>{t.setPrivateRaw(r,!0)})):t.setPrivateRaw(r,!0)}))}_processAxis(t,e){return t.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxis(t)}));else if("push"===t.type)e.children.push(t.newValue),t.newValue.processChart(this);else if("setIndex"===t.type)e.children.setIndex(t.index,t.newValue),t.newValue.processChart(this);else if("insertIndex"===t.type)e.children.insertIndex(t.index,t.newValue),t.newValue.processChart(this);else if("removeIndex"===t.type)this._removeAxis(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");e.children.moveValue(t.value,t.newIndex),t.value.processChart(this)}}))}_removeAxis(t){if(!t.isDisposed()){const e=t.parent;e&&e.children.removeValue(t);const i=t.gridContainer,s=i.parent;s&&s.children.removeValue(i);const a=t.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){const t=this.leftAxesContainer.width(),e=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",t),i.set("paddingRight",e);const s=this.topAxesContainer;s.set("paddingLeft",t),s.set("paddingRight",e)}processAxis(t){this.get("cursor")&&(this.addDisposer(t.on("start",(()=>{this._updateCursor()}))),this.addDisposer(t.on("end",(()=>{this._updateCursor()}))))}_handleAxisSelection(t,e){let i=t.fixPosition(t.get("start",0)),s=t.fixPosition(t.get("end",1));if(i>s&&([i,s]=[s,i]),-1!=this.xAxes.indexOf(t)){if(e||t.getPrivate("updateScrollbar")){let t=this.get("scrollbarX");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}}else if(-1!=this.yAxes.indexOf(t)&&(e||t.getPrivate("updateScrollbar"))){let t=this.get("scrollbarY");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let t=this.zoomOutButton;if(t&&t.parent){let e=!1;this.xAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),e?t.isHidden()&&t.show():t.hide()}}inPlot(t){const e=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=e.toGlobal(t);if(t.x>=-.5&&t.y>=-.5&&t.x<=e.width()+.5&&t.y<=e.height()+.5)return!0;if(i)for(let t=i.length-1;t>=0;t--){const e=i[t];if(e!=this){const t=e.plotContainer,i=this._root.rootPointToDocument(s),a=e._root.documentPointToRoot(i),o=t.toLocal(a);if(o.x>=-.1&&o.y>=-.1&&o.x<=t.width()+.1&&o.y<=t.height()+.1)return!0}}return!1}arrangeTooltips(){const t=this.plotContainer,e=t.width(),i=t.height();let s=this.height();const a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=t._display.toGlobal({x:0,y:0}),n=t._display.toGlobal({x:e,y:i});const r=[];let l,d,m=0,p=1/0,_=this._movePoint,x=this.get("maxTooltipDistance"),v=this.get("maxTooltipDistanceBy","xy");c.isNumber(x)&&this.series.each((t=>{if(!t.isHidden()){const e=t.get("tooltip");if(e){let i=e.get("pointTo");if(i){let e=Math.hypot(_.x-i.x,_.y-i.y);"x"==v?e=Math.abs(_.x-i.x):"y"==v&&(e=Math.abs(_.y-i.y)),e{const e=t.get("tooltip");if(e&&!e.get("forceHidden")){let i=!1,s=e.get("pointTo");if(s){if(x>=0){let s=e.get("pointTo");if(s&&d&&t!=l){let t=Math.hypot(d.x-s.x,d.y-s.y);"x"==v?t=Math.abs(d.x-s.x):"y"==v&&(t=Math.abs(d.y-s.y)),t>x&&(i=!0)}}else-1==x&&t!=l&&(i=!0);this.inPlot(this._tooltipToLocal(s))&&e.dataItem?i||(m+=s.y):i=!0,i||t.isHidden()||t.isHiding()?e.hide(0):(e.show(),r.push(e),y.push(t))}}})),this.setPrivate("tooltipSeries",y),this.get("arrangeTooltips")){let t=0,e=0;const a=this._root.tooltipContainer,l=r.length;if(m/l>i/2+o.y){r.sort(((t,e)=>u.HO(e.get("pointTo").y,t.get("pointTo").y)));let i=n.y;if(g.each(r,(s=>{let r=s.height();e++,t+=r;let l=s.get("centerY");l instanceof h.gG&&(r*=l.value),r+=s.get("marginBottom",0),s.set("bounds",{left:o.x,top:o.y,right:n.x,bottom:i}),s.setPrivate("customData",{left:o.x,top:o.y,right:n.x,bottom:i}),i=Math.min(i-r,s._fy-r),s.parent==a&&a.children.moveValue(s,0)})),i<0){r.reverse();let t=i;g.each(r,(s=>{e++;let a=s.get("bounds");if(a){let e=a.top-i,o=a.bottom-i;eu.HO(t.get("pointTo").y,e.get("pointTo").y)));let i=0;if(g.each(r,(r=>{e++;let l=r.height();t+=l;let d=r.get("centerY");d instanceof h.gG&&(l*=d.value),l+=r.get("marginBottom",0),r.set("bounds",{left:o.x,top:i,right:n.x,bottom:Math.max(o.y+s,i+l)}),r.parent==a&&a.children.moveValue(r,0),i=Math.max(i+l,r._fy+l)})),i>s){r.reverse();let t=s;g.each(r,(a=>{e++;let o=a.get("bounds");if(o){let e=o.top-(s-i),n=o.bottom-(s-i);n>t&&(n=t,e=n-a.height()),a.set("bounds",{left:o.left,top:e,right:o.right,bottom:n}),t=n-a.height()-a.get("marginBottom",0)}}))}}0==t&&e>0&&this._disposers.push(this.root.events.once("frameended",(()=>{this.arrangeTooltips()})))}}_tooltipToLocal(t){return this.plotContainer.toLocal(t)}zoomOut(){this.xAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))}))}_dispose(){super._dispose();const t=this.get("cursor");t&&t.dispose()}}x.className="XYChart",x.classNames=n.j.classNames.concat([x.className])},55:function(t,e,i){i.d(e,{l:function(){return u}});var s=i(3409),a=i(6245),o=i(1112),n=i(2754),r=i(3783),h=i(1926),l=i(5040),d=i(751),g=i(256),c=i(5071);class u extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.interfaceColors,e=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:n.U.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:o.Il.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:n.U.new(this._root,{saturation:0})});{const e=i("Graphics",["scrollbar","overlay"]);e.setAll({fillOpacity:.5}),(0,r.v)(e,"fill",t,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:a.AQ,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:a.AQ}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:a.AQ}),i("AxisLabel",["y"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const s=i("Grid",["cursor","x"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use left and right arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const s=i("Grid",["cursor","y"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use up and down arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const e=i("Graphics",["cursor","selection"]);e.setAll({fillOpacity:.15}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:a.CI,centerY:a.CI,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const e=i("AxisRenderer");e.setAll({crisp:!0,strokeOpacity:0}),(0,r.v)(e,"stroke",t,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:a.AQ}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:a.AQ});{const e=i("Rectangle",["axis","thumb","zoomgrip"]);e.setAll({fillOpacity:0}),(0,r.v)(e,"fill",t,"alternativeBackground"),e.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{const e=i("Grid");e.setAll({location:0,strokeOpacity:.15,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}{const e=i("Grid",["minor"]);e.setAll({location:0,strokeOpacity:.07,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{const e=i("Graphics",["axis","fill"]);e.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{const e=i("AxisTick");e.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),(0,r.v)(e,"stroke",t,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(t,e)=>{const i=t.get("axisFill");i&&(l.isNumber(e)&&e%2!=0?i.setPrivate("visible",!1):i.setPrivate("visible",!0))}});const s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],u={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_hour"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month"),year:e.translate("_date_year")},m={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_day"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month")+" "+e.translate("_date_year"),year:e.translate("_date_year")},p={millisecond:e.translate("_date_millisecond_full"),second:e.translate("_date_second_full"),minute:e.translate("_date_minute_full"),hour:e.translate("_date_hour_full"),day:e.translate("_date_day_full"),week:e.translate("_date_week_full"),month:e.translate("_date_month_full"),year:e.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m),tooltipDateFormats:p,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=t.get("endValue"),o=i.intervalDuration(),n=i.getPrivate("baseInterval"),r=i.getPrivate("gridInterval",n);let l=i.getPrivate("min",0);if(l=h.round(new Date(l),r.timeUnit,r.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),null!=s&&null!=a){const t=Math.round(Math.round((s-l)/o))/2;t==Math.round(t)?e.setPrivate("visible",!0):e.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.get("index");let s=!1;l.isNumber(i)&&i%2!=0||(s=!0),e.setPrivate("visible",s)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=i.getPrivate("step");l.isNumber(s)&&l.isNumber(a)&&(d.round(s/a/2,5)==Math.round(s/a/2)?e.setPrivate("visible",!1):e.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(70),height:(0,a.aQ)(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,e/2),t.lineTo(s,e/2)}}});{const e=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,e),t.lineTo(0,e),t.lineTo(0,0)}}});{const e=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(50),height:(0,a.aQ)(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:(0,a.aQ)(80),height:(0,a.aQ)(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const e=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const e=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const e=i("Graphics",["rangegrip","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(2,.5),t.lineTo(2,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),(0,r.v)(e,"stroke",t,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:a.CI}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:a.CI}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:a.AQ}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:a.AQ})}}},3355:function(t,e,i){i.d(e,{L:function(){return c}});var s=i(8777),a=i(6245),o=i(1479),n=i(8943),r=i(5040),h=i(7652),l=i(751),d=i(5071),g=i(256);class c extends s.W{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(n.r.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(n.r.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(o.T.new(this._root,{themeTags:["selection","cursor"],layer:30})),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:a.AQ,height:a.AQ,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout((()=>{this.setPrivate("visible",!0)}),500)),this._disposers.push(this.lineX.events.on("positionchanged",(()=>{this._handleXLine()}))),this._disposers.push(this.lineY.events.on("positionchanged",(()=>{this._handleYLine()}))),this._disposers.push(this.lineX.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineX.events.on("blur",(()=>this._handleLineBlur()))),this._disposers.push(this.lineY.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineY.events.on("blur",(()=>this._handleLineBlur()))),h.supports("keyboardevents")&&this._disposers.push(h.addEventListener(document,"keydown",(t=>{this._handleLineMove(h.getEventKey(t),t.ctrlKey)})))}_setUpTouch(){const t=this.chart;t&&(t.plotContainer._display.cancelTouch="none"!=this.get("behavior"))}_handleXLine(){let t=this.lineX.x(),e=!0;(t<0||t>this.width())&&(e=!1),this.lineX.setPrivate("visible",e)}_handleYLine(){let t=this.lineY.y(),e=!0;(t<0||t>this.height())&&(e=!1),this.lineY.setPrivate("visible",e)}_handleLineMove(t,e){let i="";const s=this.chart;let a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(e&&(o=5),a){let e,s=a.get("renderer").get("inversed",!1);"ArrowRight"==t||"ArrowDown"==t?e=1:"ArrowLeft"==t||"ArrowUp"==t?e=-1:"Tab"==t&&(e=0),null!=e&&(s&&(e*=-1),this.set(i,a.nextPosition(e*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const t=this.get("xAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipX=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateXLine(e)}))))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const t=this.get("yAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipY=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateYLine(e)}))))}}}_handleSyncWith(){const t=this.chart;if(t){const e=this.get("syncWith"),i=[];e&&d.each(e,(t=>{const e=t.chart;e&&i.push(e)})),t._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const t=this.get("positionX"),e=this.get("positionY");null==t&&null==e?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).x,3);this._toX!=e&&(this.lineX.animate({key:"x",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toX=e)}_updateYLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).y,3);this._toY!=e&&(this.lineY.animate({key:"y",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toY=e)}_drawLines(){this.lineX.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,this.height())})),this.lineY.set("draw",(t=>{t.moveTo(0,0),t.lineTo(this.width(),0)}))}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(t){this.chart=t,this._handleSyncWith();const e=t.plotContainer;this.events.on("boundschanged",(()=>{this._disposers.push(this.setTimeout((()=>{this.updateCursor()}),50))})),h.supports("touchevents")&&(this._disposers.push(e.events.on("click",(t=>{h.isTouchEvent(t.originalEvent)&&this._handleMove(t)}))),this._setUpTouch()),this._disposers.push(e.events.on("pointerdown",(t=>{this._handleCursorDown(t)}))),this._disposers.push(e.events.on("globalpointerup",(t=>{this._handleCursorUp(t),t.native||this.isHidden()||this._handleMove(t)}))),this._disposers.push(e.events.on("globalpointermove",(t=>{(this.get("syncWith")||0!=g.keys(e._downPoints).length||t.native||!this.isHidden())&&(this._handleMove(t),Math.hypot(this._lastPoint2.x-t.point.x,this._lastPoint2.y-t.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=t.point))})));const i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(t){const e=this.chart;return!!e&&e.inPlot(t)}_handleCursorDown(t){if(2==t.originalEvent.button)return;const e=t.point;let i=this._display.toLocal(e);const s=this.chart;if(this.selection.set("draw",(()=>{})),s&&this._inPlot(i)){if(this._downPoint=i,"none"!=this.get("behavior")){this.selection.show();const e="selectstarted";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}let e=this._getPosition(i).x,s=this._getPosition(i).y;this.setPrivate("downPositionX",e),this.setPrivate("downPositionY",s)}}_handleCursorUp(t){if(this._downPoint){const e=this.get("behavior","none");if("none"!=e){"z"===e.charAt(0)&&this.selection.hide();const i=t.point;let s=this._display.toLocal(i);const a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let i=!1;if("zoomX"!==e&&"zoomXY"!==e&&"selectX"!==e&&"selectXY"!==e||Math.abs(s.x-a.x)>o&&(i=!0),"zoomY"!==e&&"zoomXY"!==e&&"selectY"!==e&&"selectXY"!==e||Math.abs(s.y-a.y)>o&&(i=!0),i){const e="selectended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}else{const e="selectcancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}}}}this._downPoint=void 0}_handleMove(t){if(this.getPrivate("visible")){const e=this.chart;if(e&&g.keys(e.plotContainer._downPoints).length>1)return void this.set("forceHidden",!0);this.set("forceHidden",!1);const i=t.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,t.originalEvent)}}_getPosition(t){return{x:t.x/this.width(),y:t.y/this.height()}}handleMove(t,e,i){t||(t=this._movePoint);const s=this.get("alwaysShow");if(!t)return void this.hide(0);this._movePoint=t;let a=this._display.toLocal(t),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=t,this.isHidden()&&(this.show(),"z"==this.get("behavior","").charAt(0)&&this.selection.set("draw",(()=>{})));let n=a.x,h=a.y,l=this._getPosition(a);this.setPrivate("point",a);let d=this.get("snapToSeries");this._downPoint&&(d=void 0);let g=this.get("positionX"),c=l.x;r.isNumber(g)&&(c=g);let u=this.get("positionY"),m=l.y;r.isNumber(u)&&(m=u),this.setPrivate("positionX",c),this.setPrivate("positionY",m);const p=this._getPoint(c,m);if(n=p.x,h=p.y,o.xAxes.each((t=>{t._handleCursorPosition(c,d),s&&t.handleCursorShow()})),o.yAxes.each((t=>{t._handleCursorPosition(m,d),s&&t.handleCursorShow()})),!e){o._handleCursorPosition();const e="cursormoved";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,point:t,originalEvent:i})}this._updateLines(n,h),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);const t="cursorhidden";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this._downPoint&&"none"!=this.get("behavior")&&this._updateSelection(a)}_getPoint(t,e){return{x:this.width()*t,y:this.height()*e}}_updateLines(t,e){this._tooltipX||this.lineX.set("x",t),this._tooltipY||this.lineY.set("y",e),this._drawLines()}_updateSelection(t){const e=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();t.x<0&&(t.x=0),t.x>s&&(t.x=s),t.y<0&&(t.y=0),t.y>a&&(t.y=a),e.set("draw",(e=>{const o=this._downPoint;o&&("zoomXY"===i||"selectXY"===i?(e.moveTo(o.x,o.y),e.lineTo(o.x,t.y),e.lineTo(t.x,t.y),e.lineTo(t.x,o.y),e.lineTo(o.x,o.y)):"zoomX"===i||"selectX"===i?(e.moveTo(o.x,0),e.lineTo(o.x,a),e.lineTo(t.x,a),e.lineTo(t.x,0),e.lineTo(o.x,0)):"zoomY"!==i&&"selectY"!==i||(e.moveTo(0,o.y),e.lineTo(s,o.y),e.lineTo(s,t.y),e.lineTo(0,t.y),e.lineTo(0,o.y)))}))}_onHide(){if(this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorHide()})),t.yAxes.each((t=>{t.handleCursorHide()})),t.series.each((t=>{t.handleCursorHide()})))}super._onHide()}_onShow(){if(!this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorShow()})),t.yAxes.each((t=>{t.handleCursorShow()})))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}c.className="XYCursor",c.classNames=s.W.classNames.concat([c.className])},6515:function(t,e,i){i.d(e,{R:function(){return g}});var s=i(9361),a=i(8777),o=i(6245),n=i(7144),r=i(7142),h=i(5071),l=i(5040),d=i(7652);class g extends s.w{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(a.W.new(this._root,{})),this.gridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.topGridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.bulletsContainer=this.children.push(a.W.new(this._root,{isMeasured:!1,width:o.AQ,height:o.AQ,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new n.aV,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(a.W.new(this._root,{themeTags:["axis","header"],position:"absolute",background:r.A.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)h.each(t.oldValues,(t=>{t.dispose()}));else if("push"===t.type)this._processAxisRange(t.newValue,["range"]);else if("setIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("insertIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("removeIndex"===t.type)this.disposeDataItem(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value,["range"])}})));const t=this.get("renderer");t&&(t.axis=this,t.processAxis()),this.children.push(t),this._createGhostLabel()}_createGhostLabel(){const t=this.get("renderer").makeLabel(new s.z(this,void 0,{}),[]);t.adapters.disable("text"),t.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),t.events.disable(),this.ghostLabel=t}_updateFinals(t,e){}zoom(t,e,i,s){if(this.get("zoomable",!0))if(this._updateFinals(t,e),this.get("start")!==t||this.get("end")!=e){let a=this._sAnimation,o=this._eAnimation;t>e&&([t,e]=[e,t]);let n=this.get("maxDeviation",.5)*Math.min(1,e-t);t<-n&&(t=-n),e>1+n&&(e=1+n);let r=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),h=r;l.isNumber(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),1===e&&0!==t&&(s=tthis.get("end",1)?"end":"start");let d=this.get("minZoomCount",0);const g=this.dataItems;g&&g.lengthe&&([t,e]=[e,t]),"start"===s?(c>0&&1/(e-t)r&&(e=t+1/r),e>1&&e-t<1/r&&(t=e-1/r)):(c>0&&1/(e-t)r&&(t=e-1/r),t<0&&e-t<1/r&&(e=t+1/r)),1/(e-t)>r&&(e=t+1/r),1/(e-t)>r&&(t=e-1/r),null!=c&&null!=d&&t==this.get("start")&&e==this.get("end")){const t=this.chart;t&&t._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==t||this.get("start")==t)&&(o&&o.playing&&o.to==e||this.get("end")==e))return;if(i>0){let s,a,o=this.get("interpolationEasing");if(this.get("start")!=t&&(s=this.animate({key:"start",to:t,duration:i,easing:o})),this.get("end")!=e&&(a=this.animate({key:"end",to:e,duration:i,easing:o})),this._sAnimation=s,this._eAnimation=a,s)return s;if(a)return a}else this.set("start",t),this.set("end",e),this.root.events.once("frameended",(()=>{this.markDirtyKey("start")}))}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(t,e){t.setRaw("isRange",!0),this._createAssets(t,e),this._rangesDirty=!0,this._prepareDataItem(t);const i=t.get("above"),s=this.topGridContainer,a=t.get("grid");i&&a&&s.children.moveValue(a);const o=t.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(t,e){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each((t=>{this._prepareDataItem(t)})),h.each(this._seriesAxisRanges,(t=>{this._prepareDataItem(t)}))}_prepareChildren(){super._prepareChildren();const t=this.ghostLabel;if(t&&(this.get("fixAxisSize")?t.set("visible",!0):t.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){const t=this.chart;t&&t._updateCursor();let e=this.get("start",0),i=this.get("end",1),s=this.get("maxDeviation",.5)*Math.min(1,i-e);if(e<-s){let t=e+s;e=-s,this.setRaw("start",e),this.isDirty("end")&&this.setRaw("end",i-t)}if(i>1+s){let t=i-1-s;i=1+s,this.setRaw("end",i),this.isDirty("start")&&this.setRaw("start",e-t)}}const e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){const t=this.get("tooltip");if(t){const i=e.get("themeTags");t.addTag("axis"),t.addTag(this.className.toLowerCase()),t._applyThemes(),i&&(t.set("themeTags",d.mergeTags(t.get("themeTags"),i)),t.label._applyThemes())}}}_updateTooltipBounds(){const t=this.get("tooltip");t&&this.get("renderer").updateTooltipBounds(t)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(t){this.chart=t,this.get("renderer").chart=t,t.gridContainer.children.push(this.gridContainer),t.topGridContainer.children.push(this.topGridContainer),t.axisHeadersContainer.children.push(this.axisHeader),this.on("start",(()=>{t._handleAxisSelection(this)})),this.on("end",(()=>{t._handleAxisSelection(this)})),t.plotContainer.onPrivate("width",(()=>{this.markDirtySize()})),t.plotContainer.onPrivate("height",(()=>{this.markDirtySize()})),t.processAxis(this)}hideDataItem(t){return this._toggleFHDataItem(t,!0),super.hideDataItem(t)}showDataItem(t){return this._toggleFHDataItem(t,!1),super.showDataItem(t)}_toggleFHDataItem(t,e){const i="forceHidden",s=t.get("label");s&&s.set(i,e);const a=t.get("grid");a&&a.set(i,e);const o=t.get("tick");o&&o.set(i,e);const n=t.get("axisFill");n&&n.set(i,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.set(i,e)}}_toggleDataItem(t,e){const i=t.get("label"),s="visible";i&&i.setPrivate(s,e);const a=t.get("grid");a&&a.setPrivate(s,e);const o=t.get("tick");o&&o.setPrivate(s,e);const n=t.get("axisFill");n&&n.setPrivate(s,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.setPrivate(s,e)}}_createAssets(t,e,i){var s,a,o;const n=this.get("renderer");let r="minor";const h=t.get("label");if(h){let a=h.get("themeTags"),o=!1;i?-1==(null==a?void 0:a.indexOf(r))&&(o=!0):-1!=(null==a?void 0:a.indexOf(r))&&(o=!0),o&&(null===(s=h.parent)||void 0===s||s.children.removeValue(h),n.makeLabel(t,e),h.dispose(),n.labels.removeValue(h))}else n.makeLabel(t,e);const l=t.get("grid");if(l){let s=l.get("themeTags"),o=!1;i?-1==(null==s?void 0:s.indexOf(r))&&(o=!0):-1!=(null==s?void 0:s.indexOf(r))&&(o=!0),o&&(null===(a=l.parent)||void 0===a||a.children.removeValue(l),n.makeGrid(t,e),l.dispose(),n.grid.removeValue(l))}else n.makeGrid(t,e);const d=t.get("tick");if(d){let s=!1,a=d.get("themeTags");i?-1==(null==a?void 0:a.indexOf(r))&&(s=!0):-1!=(null==a?void 0:a.indexOf(r))&&(s=!0),s&&(null===(o=d.parent)||void 0===o||o.children.removeValue(d),n.makeTick(t,e),d.dispose(),n.ticks.removeValue(d))}else n.makeTick(t,e);i||t.get("axisFill")?i&&!t.get("axisFill")&&this.get("minorAxisFillsEnabled")&&n.makeAxisFill(t,e):n.makeAxisFill(t,e),this._processBullet(t)}_processBullet(t){let e=t.get("bullet"),i=this.get("bullet");if(e||!i||t.get("isRange")||(e=i(this._root,this,t)),e){e.axis=this;const i=e.get("sprite");i&&(i._setDataItem(t),t.setRaw("bullet",e),i.parent||this.bulletsContainer.children.push(i))}}_afterChanged(){super._afterChanged();const t=this.chart;t&&(t._updateChartLayout(),t.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(t){super.disposeDataItem(t);const e=this.get("renderer"),i=t.get("label");i&&(e.labels.removeValue(i),i.dispose());const s=t.get("tick");s&&(e.ticks.removeValue(s),s.dispose());const a=t.get("grid");a&&(e.grid.removeValue(a),a.dispose());const o=t.get("axisFill");o&&(e.axisFills.removeValue(o),o.dispose());const n=t.get("bullet");n&&n.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const t=this.ghostLabel;if(t){if(!t.isHidden()){const e=t.localBounds(),i=Math.ceil(e.right-e.left);let s=t.get("text");h.each(this.dataItems,(t=>{const e=t.get("label");if(e&&!e.isHidden()){const t=e.localBounds();Math.ceil(t.right-t.left)>i&&(s=e.text._getText())}})),t.set("text",s)}let e=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(t,e+.5*(i-e))}}_handleCursorPosition(t,e){t=this.get("renderer").toAxisPosition(t),this._cursorPosition=t,this._snapToSeries=e,this.updateTooltip()}updateTooltip(){const t=this._snapToSeries;let e=this._cursorPosition;const i=this.get("tooltip"),s=this.get("renderer");l.isNumber(e)&&(h.each(this.series,(i=>{if(i.get("baseAxis")===this){const s=this.getSeriesItem(i,e,this.get("tooltipLocation"));t&&-1!=t.indexOf(i)?(i.updateLegendMarker(s),i.updateLegendValue(s),i._settings.tooltipDataItem=s):(i.showDataItemTooltip(s),i.setRaw("tooltipDataItem",s))}})),this.get("snapTooltip")&&(e=this.roundAxisPosition(e,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",e),i&&(s.updateTooltipBounds(i),l.isNaN(e)?i.hide(0):(this._updateTooltipText(i,e),s.positionTooltip(i,e),ethis.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}roundAxisPosition(t,e){return t}_handleSeriesRemoved(){}handleCursorShow(){let t=this.get("tooltip");t&&t.show()}handleCursorHide(){let t=this.get("tooltip");t&&t.hide()}processSeriesDataItem(t,e){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(t){const e=this.get("renderer");return e.toAxisPosition(t/e.axisLength())}toAxisPosition(t){return this.get("renderer").toAxisPosition(t)}toGlobalPosition(t){return this.get("renderer").toGlobalPosition(t)}fixPosition(t){return this.get("renderer").fixPosition(t)}shouldGap(t,e,i,s){return!1}createAxisRange(t){return this.axisRanges.push(t)}_groupSeriesData(t){}getCellWidthPosition(){return.05}}g.className="Axis",g.classNames=s.w.classNames.concat([g.className])},2586:function(t,e,i){i.d(e,{_:function(){return o}});var s=i(6331),a=i(256);class o extends s.JH{_beforeChanged(){super._beforeChanged();const t=this.get("sprite");if(this.isDirty("sprite")&&t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t)),this.isDirty("location")){const e=t.dataItem;this.axis&&t&&e&&this.axis._prepareDataItem(e)}}_dispose(){const t=this.axis;t&&a.each(t._bullets,((e,i)=>{i.uid==this.uid&&delete t._bullets[e]})),super._dispose()}}o.className="AxisBullet",o.classNames=s.JH.classNames.concat([o.className])},6293:function(t,e,i){i.d(e,{k:function(){return a}});var s=i(962);class a extends s._{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabel",a.classNames=s._.classNames.concat([a.className])},9084:function(t,e,i){i.d(e,{p:function(){return a}});var s=i(815);class a extends s.x{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabelRadial",a.classNames=s.x.classNames.concat([a.className])},6275:function(t,e,i){i.d(e,{Y:function(){return d}});var s=i(1479),a=i(5769),o=i(7144),n=i(4714),r=i(8943),h=i(6293),l=i(7652);class d extends s.T{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new o.o(a.YS.new({}),(()=>n.T._new(this._root,{themeTags:l.mergeTags(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template])))),this.grid=this.addDisposer(new o.o(a.YS.new({}),(()=>r.r._new(this._root,{themeTags:l.mergeTags(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template])))),this.axisFills=this.addDisposer(new o.o(a.YS.new({}),(()=>s.T._new(this._root,{themeTags:l.mergeTags(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template])))),this.labels=this.addDisposer(new o.o(a.YS.new({}),(()=>h.k._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template]))))}makeTick(t,e){const i=this.ticks.make();return i._setDataItem(t),t.setRaw("tick",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(t,e){const i=this.grid.make();return i._setDataItem(t),t.setRaw("grid",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(t,e){const i=this.axisFills.make();return i._setDataItem(t),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),t.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(t,e){const i=this.labels.make();return i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),t.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(t),t.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const t=this.thumb;t&&(this._disposers.push(t.events.on("pointerdown",(t=>{this._handleThumbDown(t)}))),this._disposers.push(t.events.on("globalpointerup",(t=>{this._handleThumbUp(t)}))),this._disposers.push(t.events.on("globalpointermove",(t=>{this._handleThumbMove(t)}))))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",(()=>{this.axis.markDirtySize()}))}_changed(){if(super._changed(),this.isDirty("pan")){const t=this.thumb;if(t){const e=this.axis.labelsContainer,i=this.get("pan");"zoom"==i?e.children.push(t):"none"==i&&e.children.removeValue(t)}}}_handleThumbDown(t){this._thumbDownPoint=this.toLocal(t.point);const e=this.axis;this._downStart=e.get("start"),this._downEnd=e.get("end")}_handleThumbUp(t){this._thumbDownPoint=void 0}_handleThumbMove(t){const e=this._thumbDownPoint;if(e){const i=this.toLocal(t.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,e)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(t,e){return 0}positionToCoordinate(t){return this._inversed?(this._end-t)*this._axisLength:(t-this._start)*this._axisLength}updateTooltipBounds(t){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t*=i-e,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,t/(i-e)}fixPosition(t){return this.get("inversed")?1-t:t}_updateLC(){}toggleVisibility(t,e,i,s){let a=this.axis;const o=a.get("start",0),n=a.get("end",1);eo+(n-o)*(s+1e-4)?t.setPrivate("visible",!1):t.setPrivate("visible",!0)}_positionTooltip(t,e){const i=this.chart;i&&(t.set("pointTo",this._display.toGlobal(e)),i.inPlot(e)||t.hide())}processAxis(){}}d.className="AxisRenderer",d.classNames=s.T.classNames.concat([d.className])},6284:function(t,e,i){i.d(e,{n:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{width:a.AQ,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const t=this.grid.template;t.set("height",a.AQ),t.set("width",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)}))}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("x",-1e3));const s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){const i=this.chart,o=e.children;if(this.get(a)?e.addTag(a):e.removeTag(a),i){if(this.get(s)){const t=i.topAxesContainer.children;-1==t.indexOf(e)&&t.insertIndex(0,e),e.addTag(s),o.moveValue(this)}else{const t=i.bottomAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(s),o.moveValue(this,0)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(t,e){return(e.x-t.x)/this.width()}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,(t=t/(i-e)*this._lc)+this._ls}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerWidth();this._lc=this.axisLength()/i,this._ls=(t.x()-e.get("paddingLeft",0))/i}}_updatePositions(){const t=this.axis,e=t.x()-r.relativeToValue(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0);t.gridContainer.set("x",e),t.topGridContainer.set("x",e),t.bulletsContainer.set("y",this.y());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginLeft",0),o=t.x()-a;const n=t.parent;n&&(o-=n.get("paddingLeft",0)),s.children.length>0?(a=t.axisHeader.width(),t.set("marginLeft",a+1)):s.set("width",a),s.setAll({x:o,y:-1,height:e.height()+2})}}processAxis(){super.processAxis();const t=this.axis;null==t.get("width")&&t.set("width",a.AQ);const e=this._root.verticalLayout;t.set("layout",e),t.labelsContainer.set("width",a.AQ),t.axisHeader.setAll({layout:e})}axisLength(){return this.axis.width()}positionToPoint(t){return{x:this.positionToCoordinate(t),y:0}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e));let r=t.get("length",0);const h=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("y",a.AQ),h||(r*=-1)):(t.set("y",0),h&&(r*=-1)),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,r)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateLabel(t,e,i,s){if(t){let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(e)||(e=0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?r?(t.set("position","absolute"),t.set("y",0)):(t.set("position","relative"),t.set("y",a.AQ)):r?(t.set("y",0),t.set("position","absolute")):(t.set("y",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=-1;if(this.get("opposite")&&(h=1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("y",t.y()+t.height()*h)}else s.set("y",0);this.axis._bullets[o]=t,s.set("x",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.height(),a=this.width();ia||i<0||(t.moveTo(e,0),t.lineTo(i,0),t.lineTo(i,s),t.lineTo(e,s),t.lineTo(e,0))}))}positionTooltip(t,e){this._positionTooltip(t,{x:this.positionToCoordinate(e),y:0})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,n=this.axisLength(),h=i,l="up";this.get("opposite")?e?(l="up",o=s.y,h=i):(l="down",o=s.y-i,h=i):e?(l="down",o=s.y-i,h=i):(l="up",o=s.y,h=i);const d={left:a,right:a+n,top:o,bottom:o+h},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}}h.className="AxisRendererX",h.classNames=s.Y.classNames.concat([h.className])},7909:function(t,e,i){i.d(e,{j:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{height:a.AQ,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const t=this.grid.template;t.set("width",a.AQ),t.set("height",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())}))}_getPan(t,e){return(t.y-e.y)/this.height()}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("y",-1e3));const s=this.thumb,a="opposite",o="inside",n=this.chart;if(this.isDirty(a)||this.isDirty(o)){const i=e.children;if(this.get(o)?e.addTag(o):e.removeTag(o),n){if(this.get(a)){const t=n.rightAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e,0),e.addTag(a),i.moveValue(this,0)}else{const t=n.leftAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(a),i.moveValue(this)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}const r=e.labelsContainer.width();n&&(this.get(a)?s.set("centerX",0):s.set("centerX",r)),s.setPrivate("width",r)}processAxis(){super.processAxis();const t=this.axis;null==t.get("height")&&t.set("height",a.AQ);const e=this._root.horizontalLayout;t.set("layout",e),t.labelsContainer.set("height",a.AQ),t.axisHeader.set("layout",e)}_updatePositions(){const t=this.axis,e=t.y()-r.relativeToValue(t.get("centerY",0),t.height());t.gridContainer.set("y",e),t.topGridContainer.set("y",e),t.bulletsContainer.set("x",this.x());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginTop",0);s.children.length>0?(a=t.axisHeader.height(),t.set("marginTop",a+1)):s.set("height",a),s.setAll({y:t.y()-a,x:-1,width:e.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(t){return{x:0,y:this.positionToCoordinate(t)}}updateLabel(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a);const o=this.get("opposite"),r=t.get("inside",this.get("inside",!1));o?(t.set("x",0),r?t.set("position","absolute"):t.set("position","relative")):r?(t.set("x",0),t.set("position","absolute")):(t.set("x",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e));let o=t.get("length",0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("x",0),r&&(o*=-1)):r||(o*=-1),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(o,0)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=1;if(this.get("opposite")&&(h=-1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("x",t.x()+t.width()*h)}else s.set("x",0);this.axis._bullets[o]=t,s.set("y",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.width(),a=this.height();ia||i<0||(t.moveTo(0,e),t.lineTo(s,e),t.lineTo(s,i),t.lineTo(0,i),t.lineTo(0,e))}))}positionToCoordinate(t){return this._inversed?(t-this._start)*this._axisLength:(this._end-t)*this._axisLength}positionTooltip(t,e){this._positionTooltip(t,{x:0,y:this.positionToCoordinate(e)})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,n=this.axisLength(),h=i,l="right";this.get("opposite")?e?(l="right",o=s.x-i,h=i):(l="left",o=s.x,h=i):e?(l="left",o=s.x,h=i):(l="right",o=s.x-i,h=i);const d={left:o,right:o+h,top:a,bottom:a+n},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerHeight();this._lc=this.axisLength()/i,this._ls=t.y()/i}}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?e+t:i-t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t-=e:t=i-t,(t=t/(i-e)*this._lc)+this._ls}fixPosition(t){return this.get("inversed")?t:1-t}}h.className="AxisRendererY",h.classNames=s.Y.classNames.concat([h.className])},4714:function(t,e,i){i.d(e,{T:function(){return a}});var s=i(2438);class a extends s.d{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisTick",a.classNames=s.d.classNames.concat([a.className])},7497:function(t,e,i){i.d(e,{$:function(){return d}});var s=i(6515),a=i(2132),o=i(7261),n=i(5071),r=i(5040),h=i(751),l=i(7652);class d extends s.R{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();const t=this.dataItems.length;t>0&&this.setPrivateRaw("maxZoomFactor",t),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),t)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",t),1))}_prepareChildren(){super._prepareChildren();const t=this.dataItems.length;let e=0;this._valuesDirty&&(this._itemMap={},n.each(this.dataItems,(t=>{t.setRaw("index",e),this._itemMap[t.get("category")]=t,e++})),this.setPrivateRaw("maxZoomFactor",t));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){const t=this.dataItems.length;if(t>1){let e=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0);const n=this._sAnimation,r=this._eAnimation;let h=this.get("start",0),l=!1;n&&!n.stopped&&(h=Number(n.to),l=!0);let d=this.get("end",1);if(r&&!r.stopped&&(d=Number(r.to),l=!0),l){const t=this._getIndices(h,d);a=t.startIndex,o=t.endIndex}for(let t=a;t=i));s++);if(e=0&&(e+=this.dataItems[t].get("finalCellSize",1),a=t,!(e>=i));t--);this.zoomToIndexes(a,o)}else if(s>=e){let t=s;for(let i=o-1;i>=a;i--)if(t-=this.dataItems[i].get("finalCellSize",1),t<=e){o=i+1;break}this.zoomToIndexes(a,o)}}}_handleRangeChange(){n.each(this.series,(t=>{let e=this.dataItems[this.startIndex()].get("category"),i=this.dataItems[this.endIndex()-1].get("category"),s=t.get("baseAxis"),a=t.get("xAxis"),r=t.get("yAxis");if(a instanceof d&&r instanceof d)t._markDirtyAxes();else if(s===this){let h,l,g=r;if(a===s?(t.get("categoryXField")&&(h="categoryX"),t.get("openCategoryXField")&&(l="openCategoryX")):r===s&&(t.get("categoryYField")&&(h="categoryY"),t.get("openCategoryYField")&&(l="openCategoryY"),g=a),g instanceof o.m&&(h||l)){let c,u;function m(t,e,i,s,a,o){let n,r=e.categoryToIndex(a);for(;!n&&r>=0&&r=0;e--){let o=t.dataItems[e];if(i&&o.get(i)===a){n=o;break}if(s&&o.get(s)===a){n=o;break}}else for(let e=0,o=t.dataItems.length;e{null!=y.get(t)&&(x=!0)})),n.each(t.__valueYShowFields,(t=>{null!=y.get(t)&&(x=!0)})),x)break}t.setPrivate("outOfSelection",!x)}t._markDirtyAxes()}}))}_prepareAxisItems(){var t;const e=this.get("renderer"),i=this.dataItems.length;let s=this.startIndex();s>0&&s--;let a=this.endIndex();a=s&&(t=s-1,e=1),r.isNumber(e)||(e=.5),!r.isNumber(t))return 0;let o=this.get("startLocation",0),h=this.get("endLocation",1);if(this.get("cellSizeField")){let s=i?"finalCellSize":"cellSize";const r=this.dataItems;let l=0;n.each(this.dataItems,(t=>{l+=t.get(s,1)})),l-=o*r[0].get(s,1),l-=(1-h)*r[r.length-1].get(s,1);let d=0;for(let e=0;e{const e=t.get("cellSize",1);s.push(e),i+=e}));let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=t*i+a,h=0;for(let t=0;t0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(e),a=t.dataItems[s],o=this.dataItems[s],n=o.get("category");if(a&&o&&a.get(i)===n)return a;for(let e=0,s=t.dataItems.length;e{r+=t.get(o,1)})),r-=this.get("startLocation",0)*h[0].get(o,1),r-=(1-this.get("endLocation",1))*h[h.length-1].get(o,1);let l=0;for(let e=0;eMath.round(t*r)){s=e;break}for(let t=s+1;t=Math.round(e*r)){a=t+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(t,e,i){let s=this.dataItems.length;this.get("cellSizeField")?(t=Math.min(Math.max(t,0),s),e=Math.max(Math.min(e,s),1),this.setPrivateRaw("startIndex",t),this.setPrivateRaw("endIndex",e),this.zoom(this.indexToPosition(t,0,!0),this.indexToPosition(e,0,!0),i)):this.zoom(t/s,e/s,i)}zoomToCategories(t,e,i){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(t){null==t&&(t=1),"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);const e=this.getPrivate("tooltipPosition",0),i=h.fitToRange(this.axisPositionToIndex(e)+t,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}}d.className="CategoryAxis",d.classNames=s.R.classNames.concat([d.className])},5638:function(t,e,i){i.d(e,{S:function(){return c}});var s=i(9361),a=i(7261),o=i(5040),n=i(751),r=i(3540),h=i(5071),l=i(256),d=i(7652),g=i(1926);class c extends a.m{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=d.mergeTags(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",(()=>{this._setBaseInterval(this.get("baseInterval"))}))}_setBaseInterval(t){this.setPrivateRaw("baseInterval",t),this._baseDuration=g.getIntervalDuration(t)}_fixZoomFactor(){const t=this.get("maxZoomFactor");null!=t&&t!=1/0?this.setPrivateRaw("maxZoomFactor",t):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){this._fixZoomFactor();const t=this.getPrivate("groupInterval");if(t?this._setBaseInterval(t):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let t=this.get("groupInterval");t&&(this.setRaw("groupIntervals",[t]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))h.each(this.series,(t=>{this._groupSeriesData(t)})),this._handleRangeChange();else{let t=this.get("baseInterval"),e=t.timeUnit+t.count;h.each(this.series,(t=>{t.setDataSet(e),t.resetGrouping()})),this._setBaseInterval(t),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(t){if(this.get("groupData")&&!t.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let e=[],i=this.baseMainDuration(),a=this.get("groupIntervals");h.each(a,(t=>{g.getIntervalDuration(t)>i&&e.push(t)})),t._dataSets={};const n=this.getPrivate("name")+this.get("renderer").getPrivate("letter");let r;const d=t.get("baseAxis");t.get("xAxis")===d?r=t._valueYFields:t.get("yAxis")===d&&(r=t._valueXFields);let c=t._mainDataItems,u=this.get("baseInterval"),m=u.timeUnit+u.count;t._dataSets[m]=c;const p=t.get("groupDataCallback");let _=t.get("groupDataWithOriginals",!1);p&&(_=!0),h.each(e,(e=>{let i,a=-1/0,d=e.timeUnit+e.count;t._dataSets[d]=[];let u={},m={},x={},v={};h.each(r,(e=>{u[e]=0,m[e]=0,x[e]=t.get(e+"Grouped"),v[e]=e+"Working"}));let y,f,b=g.getDuration(e.timeUnit);c[0]&&(y=c[0].get(n)),h.each(c,(c=>{let D,P=c.get(n),w=g.roun(P,e.timeUnit,e.count,this._root,y);a{let e=c.get(t);o.isNumber(e)?(i.setRaw(t,e),i.setRaw(v[t],e),m[t]=1,u[t]=e):(u[t]=0,m[t]=0)})),_&&i.set("originals",[c]),p&&f&&p(f,e),f=i):(h.each(r,(t=>{let e=x[t],s=c.get(t);if(null!=s){let a=i.get(t);switch(e){case"close":i.setRaw(t,s);break;case"sum":i.setRaw(t,a+s);break;case"open":break;case"low":sa&&i.setRaw(t,s);break;case"average":m[t]++,u[t]+=s;let e=u[t]/m[t];i.setRaw(t,e);break;case"extreme":Math.abs(s)>Math.abs(a)&&i.setRaw(t,s)}i.setRaw(v[t],i.get(t));let o=l.copy(c.dataContext);o[n]=w,i.dataContext=o}})),_&&i.get("originals").push(c)),a=w})),p&&f&&p(f,e)})),t._dataSetId&&t.setDataSet(t._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",(()=>{this.markDirtySize()}))}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(t){let e=this.get("baseInterval"),i=g.chooseInterval(0,t,this.get("groupCount",1/0),this.get("groupIntervals"));return g.getIntervalDuration(i){e.get("baseAxis")===this&&e.setDataSet(t)})),this.markDirtyExtremes(),this._root.events.once("frameended",(()=>{this._root.events.once("frameended",(()=>{const t="groupintervalchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}))}))}}h.each(this.series,(i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),a=h.getFirstSortedIndex(i.dataItems,(e=>r.qu(e.get(s),t))).index;a>0&&(a-=1),e+=this._baseDuration*(1-this.get("endLocation",1));let o=h.getSortedIndex(i.dataItems,(t=>r.qu(t.get(s),e))).index,n=o;n>1&&n--;const l=i.dataItems[a],d=i.dataItems[n];let g,c;l&&(c=l.get(s)),d&&(g=d.get(s));let u=!1;null!=g&&null!=c&&(ge)&&(u=!0),i.setPrivate("outOfSelection",u),i.setPrivate("startIndex",a);let m=i._adjustStartIndex(a);i.getPrivate("adjustedStartIndex")!==m&&(i.setPrivate("adjustedStartIndex",m),this.root.events.once("frameended",(()=>{i._markDirtyPrivateKey("adjustedStartIndex")}))),i.setPrivate("endIndex",o)}}))}}_adjustMinMax(t,e,i,s){return{min:t,max:e,step:(e-t)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(t,e){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=t,this._intervalMax[s]=e}_getM(t){return"day"==t||"month"==t||"year"==t?1.05:1.01}_getMinorInterval(t){var e;let i,s=t.count,a=t.timeUnit;return s>1&&(10==s||15==s?s=5:12==s?s=2:6==s?s=1:30==s?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),"week"==a&&(i="week"!=(null===(e=this.getPrivate("baseInterval"))||void 0===e?void 0:e.timeUnit)?{timeUnit:"day",count:1}:{timeUnit:"week",count:1}),"year"==a&&1==s&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<1264896e5&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){const e=this._root,i=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),n=this.get("renderer"),r=this.getPrivate("baseInterval");let l=i,d=0;const c=this.get("gridIntervals");let u=g.chooseInterval(0,a-i,n.gridCount(),c);g.getIntervalDuration(u){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_updateFinals(t,e){this.setPrivateRaw("selectionMinFinal",this.positionToValue(t)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(e))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(t,e){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return g.getIntervalDuration(this.get("baseInterval"))}processSeriesDataItem(t,e){const i=this.getPrivate("baseInterval");t.open||(t.open={}),t.close||(t.close={}),h.each(e,(e=>{let s=t.get(e);if(o.isNumber(s)){let a=t.open[e],o=t.close[e];if(s>=a&&s<=o);else{const n=i.timeUnit,r=i.count;a=g.roun(s,n,r,this._root),o=a+g.getDuration(n,r*this._getM(n)),o=g.roun(o,n,1,this._root),t.open[e]=a,t.close[e]=o}this._updateDates(a,t.component)}}))}_handleSizeDirty(){}getDataItemPositionX(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}roundAxisPosition(t,e){let i=this.positionToValue(t);i-=(e-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!o.isNaN(i)){const t=this._root.locale.firstDayOfWeek,a=s.timeUnit,o=this._root.utc,n=this._root.timezone,r=s.count;i=g.roun(i,a,r,this._root,this.getPrivate("min",0));let h=g.getDateIntervalDuration(s,new Date(i),t,o,n);return n&&(i=g.roun(i+.05*this._baseDuration,a,r,this._root,this.getPrivate("min",0)),h=g.getDateIntervalDuration(s,new Date(i+h*e),t,o,n)),this.valueToPosition(i+h*e)}return NaN}getTooltipText(t,e){if(null!=this.getPrivate("min")){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(t);if(o.isNumber(s)){let t=new Date(s),a=this.getPrivate("baseInterval"),o=g.getDateIntervalDuration(a,t,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return!1!==e&&(t=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*o)),this._root.dateFormatter.format(t,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(t,e,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);null==i&&(i=.5),o-=(i-.5)*this._baseDuration;const n=h.getSortedIndex(t.dataItems,(t=>{let e=0;return t.open&&(e=t.open[a]),r.qu(e,o)}));if(s||t.get("snapTooltip")){let e=t.dataItems[n.index-1],i=t.dataItems[n.index];if(e&&i&&e.open&&i.close){let t=e.open[a],s=i.close[a];if(Math.abs(o-t)>Math.abs(o-s))return i}if(e)return e;if(i)return i}else{const e=t.dataItems[n.index-1];if(e&&e.open&&e.close){let t=e.open[a],i=e.close[a];if(o>=t&&o<=i)return e}}}shouldGap(t,e,i,s){const a=t.get(s);return e.get(s)-a>this._baseDuration*i}zoomToDates(t,e,i){this.zoomToValues(t.getTime(),e.getTime(),i)}zoomToValues(t,e,i){const s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(null!=this.getPrivate("min")&&null!=this.getPrivate("max"))if(this.get("groupData")){const s=this.getGroupInterval(e-t),a=this.get("baseInterval");let o=this.getIntervalMin(a),n=this.getIntervalMax(a)-1;n=g.roun(n,s.timeUnit,s.count,this.root),n+=this._getM(s.timeUnit)*g.getIntervalDuration(s),n=g.roun(n,s.timeUnit,s.count,this.root);let r=g.roun(o,s.timeUnit,s.count,this.root),h=g.roun(n,s.timeUnit,s.count,this.root),l=(t-r)/(h-r),d=(e-r)/(h-r);this.zoom(l,d,i)}else this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}positionToDate(t){return new Date(this.positionToValue(t))}dateToPosition(t){return this.valueToPosition(t.getTime())}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return o.isNumber(t)&&o.isNumber(e)?this._intervalDuration/(t-e):.05}nextPosition(t){null==t&&(t=1);let e=this.get("tooltipLocation",.5)*this._baseDuration;"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0));const s=this.getPrivate("baseInterval");let a=this._nextTime(i,t,s),o=this.getPrivate("selectionMin",0),r=this.getPrivate("selectionMax",0),h=g.roun(o,s.timeUnit,s.count,this._root),l=g.roun(r,s.timeUnit,s.count,this._root);return a+=e,a=n.fitToRange(a,h+e,l-e),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(t,e,i){return g.roun(t+e*this._baseDuration,i.timeUnit,i.count,this._root)}}c.className="DateAxis",c.classNames=a.m.classNames.concat([c.className])},7109:function(t,e,i){i.d(e,{L:function(){return a}});var s=i(6691);class a extends s.Y{constructor(){super(...arguments),this._tickPoints=[]}}a.className="EditableAxisLabel",a.classNames=s.Y.classNames.concat([a.className])},8701:function(t,e,i){i.d(e,{J:function(){return d}});var s=i(5638),a=i(9361),o=i(5071),n=i(3540),r=i(1926),h=i(5040),l=i(751);class d extends s.S{constructor(){super(...arguments),this._frequency=1,this._m=0,this._dates=[]}_afterNew(){this.valueFields.push("date"),this.addTag("gapless"),super._afterNew()}_getDates(){return this._customDates?this._customDates:this._dates}_updateDates(t,e){if(!e.get("ignoreMinMax")){const e=this._getDates(),i=o.getSortedIndex(e,(e=>n.qu(e,t)));i.found||o.insertIndex(e,i.index,t)}}_updateAllDates(){if(!this._customDates){const t=this._dates;t.length=0,o.each(this.series,(t=>{let e="valueX";t.get("yAxis")==this&&(e="valueY"),o.each(t.dataItems,(i=>{let s=i.get(e);h.isNumber(s)&&i.open&&this._updateDates(i.open[e],t)}))}));const e=this.get("extraMax",0),i=this.get("extraMin",0);let s=t.length;const a=this.getPrivate("baseInterval"),n=a.count,l=a.timeUnit;if(e>0){const i=s*e;let a=t[s-1];if(h.isNumber(a))for(let e=s-1;e0){const e=s*i;let a=t[0];if(h.isNumber(a))for(let i=0;in.qu(e,t)));let h=r.index;if(r.found)return(h-i)/a;{h>0&&(h-=1);let s=e[h];const o=e[h+1];if(o){let e=o;Math.abs(e-t)n.qu(e,t)));let s=i.index;return i.found||s>0&&(s-=1),s}positionToValue(t){const e=this.get("startLocation",0),i=this.get("endLocation",1),s=this._getDates();let a=Math.round(s.length-e-(1-i)),o=t*a,n=Math.floor(o);return n<0&&(n=0),n>a-1&&(n=a-1),s[n]+(o-n+e)*this._baseDuration}_fixZoomFactor(){this.setPrivateRaw("maxZoomFactor",this._getDates().length-this.get("startLocation",0)-(1-this.get("endLocation",1)))}zoomToDates(t,e,i){const s=this._getDates(),a=s.length;let r=o.getSortedIndex(s,(e=>n.qu(e,t.getTime()))),h=s[Math.min(r.index,a-1)];r=o.getSortedIndex(s,(t=>n.qu(t,e.getTime())));let l=s[r.index];r.index>=a&&(l=s[a-1]+this._baseDuration),this.zoomToValues(h,l,i)}zoomToValues(t,e,i){const s=this.getPrivate("min",0),a=this.getPrivate("max",0);t=l.fitToRange(t,s,a),e=l.fitToRange(e,s,a),this.zoom(this.valueToPosition(t),this.valueToPosition(e),i)}_prepareAxisItems(){let t=this.getPrivate("selectionMin",0),e=this.getPrivate("selectionMax",0);if(h.isNumber(t)&&h.isNumber(e)){this._seriesValuesDirty&&(this._seriesValuesDirty=!1,this._updateAllDates());const i=this._root,s=i.utc,n=i.timezone,l=this._getDates(),d=this.get("renderer"),g=l.length,c=this._baseDuration;let u=this.valueToIndex(t);u>0&&u--;let m=this.valueToIndex(e);m{this._toggleDataItem(t,!1)})),o.each(this.minorDataItems,(t=>{this._toggleDataItem(t,!1)}));let x=e-t-((e-t)/c-(m-u))*c,v=r.chooseInterval(0,x,p,this.get("gridIntervals"));const y=this.getPrivate("baseInterval");let f=r.getIntervalDuration(v);f0){let t=0;this._m=0;let e=w-10*f;const g=r.getNextUnit(b);if(I){let t=l[C[0]];this._addMinorGrid(t-f,t,k,I)}let c=d.axisLength()/d.gridCount()*.5;o.each(C,(o=>{var u;let m;this.dataItems.length1||"week"==v.timeUnit){let e=r.roun(p,t,1,i)+r.getDuration(t,this._getM(t)),s=this.valueToIndex(e);if(e=l[s],e==p){let t=l[s+1];t?e=t:e+=k}m.setRaw("labelEndValue",e)}w=1}if(this._prepareDataItem(m,w),P&&M&&"X"==d.getPrivate("letter")){let t=M.get("label");if(t&&P.x()-t.x(){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_pickWorse(t,e,i){const s=i.timeUnit,a=t.get("value",0),o=e.get("value",0);return"hour"==s&&new Date(a).getDate()!=new Date(o).getDate()?t:e}_addMinorGrid(t,e,i,s){const n=this.get("minorDateFormats",this.get("dateFormats")),h=s.timeUnit;let l=t+r.getDuration(h,this._getM(h));l=r.roun(l,h,1,this._root);let d=e-.5*i,g=this._getIndexes(l,d,s,l);const c=this._getDates();o.each(g,(t=>{let e;this.minorDataItems.length=x-2*_&&o.move(a,e),u=0),t+=p,t=r.roun(t,n,1,g);else{if(i=t){e=s;break}o.move(a,e),t+=_,t=r.roun(t,n,h,g)}if(t==m&&(t+=_+p,t=r.roun(t,n,h,g)),t==m)break;m=t}return a}_hasDate(t){return o.getSortedIndex(this._getDates(),(e=>n.HO(e,t))).found}_nextTime(t,e,i){let s=l.fitToRange(this.valueToIndex(t)+e,0,this._dates.length-1);return this._dates[s]}}d.className="GaplessDateAxis",d.classNames=s.S.classNames.concat([d.className])},8943:function(t,e,i){i.d(e,{r:function(){return a}});var s=i(1479);class a extends s.T{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}a.className="Grid",a.classNames=s.T.classNames.concat([a.className])},7261:function(t,e,i){i.d(e,{m:function(){return d}});var s=i(9361),a=i(6515),o=i(7449),n=i(5040),r=i(5071),h=i(751),l=i(7652);class d extends a.R{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var t;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let t=this.get("syncWithAxis");t&&(this._syncDp=new o.FV([t.onPrivate("selectionMinFinal",(()=>{this._dirtySelectionExtremes=!0})),t.onPrivate("selectionMaxFinal",(()=>{this._dirtySelectionExtremes=!0}))]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,null===(t=this.ghostLabel)||void 0===t||t.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){const t=this.chart;let e=!1;if(t){const i=this.get("renderer").getPrivate("letter");"Y"==i?t.xAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)})):"X"==i&&t.yAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)}))}e&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,this.getPrivate("selectionMinFinal")==this.getPrivate("selectionMin")&&this.getPrivate("selectionMaxFinal")==this.getPrivate("selectionMax")||(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(t){const e=this.get("numberFormat"),i=this.getNumberFormatter();let s="";return s=e?i.format(t,e):i.format(t,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(n.isNumber(t)&&n.isNumber(e)){const e=this.get("logarithmic"),i=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+i;let l=a-i,d=1,g=t;if(e){if(l=this._minLogAdjusted,l2&&(l=Math.pow(10,Math.log(g)*Math.LOG10E-50))}const c=this.get("renderer"),u=c.get("minorLabelsEnabled"),m=c.get("minorGridEnabled",u);let p=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));const _=Math.round(i/p);let x=2;h.round(_/5,10)%1==0&&(x=5),h.round(_/10,10)%1==0&&(x=10);let v=i/x,y=0,f=0,b=-1/0;const D=this.get("renderer").gridCount();for(;l2){const t=Math.max(1,D),e=Math.max(1,Math.ceil(d/t)),i=Math.log(g)*Math.LOG10E+(y+1)*e-50;o=Math.pow(10,i)}else o+=i;else o+=i;if(m){let t=l+v;for(e&&(d>2&&(v=this._adjustMinMax(l,o,10).step),t=l+v);t{t.inited&&t._markDirtyAxes()})),this._updateGhost()}}_prepareDataItem(t,e){let i=this.get("renderer"),s=t.get("value"),a=t.get("endValue"),o=this.valueToPosition(s),r=o,h=this.valueToPosition(s+this.getPrivate("step"));n.isNumber(a)&&(r=this.valueToPosition(a),h=r),t.get("isRange")&&null==a&&(h=o);let l=r,d=t.get("labelEndValue");null!=d&&(l=this.valueToPosition(d)),i.updateLabel(t.get("label"),o,l,e);const g=t.get("grid");if(i.updateGrid(g,o,r),g&&(s==this.get("baseValue",0)?(g.addTag("base"),g._applyThemes()):g.hasTag("base")&&(g.removeTag("base"),g._applyThemes())),i.updateTick(t.get("tick"),o,l,e),i.updateFill(t.get("axisFill"),o,h),this._processBullet(t),i.updateBullet(t.get("bullet"),o,r),!t.get("isRange")){const e=this.get("fillRule");e&&e(t)}}_handleRangeChange(){let t=this.positionToValue(this.get("start",0)),e=this.positionToValue(this.get("end",1));const i=this.get("renderer").gridCount();let s=this._adjustMinMax(t,e,i,!0),a=l.decimalPlaces(s.step);this.setPrivateRaw("stepDecimalPlaces",a),t=h.round(t,a),e=h.round(e,a),s=this._adjustMinMax(t,e,i,!0);let o=s.step;t=s.min,e=s.max,this.getPrivate("selectionMin")===t&&this.getPrivate("selectionMax")===e&&this.getPrivate("step")===o||(this.setPrivateRaw("selectionMin",t),this.setPrivateRaw("selectionMax",e),this.setPrivateRaw("step",o))}positionToValue(t){const e=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(t*(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)+Math.log(e)*Math.LOG10E)/Math.LOG10E):t*(i-e)+e}valueToPosition(t){const e=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}valueToFinalPosition(t){const e=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}getX(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getY(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionX(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemX")?a*s+t.component.getStackedXValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemY")?a*s+t.component.getStackedYValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const t=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),e=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let i=this.get("baseValue",0);return ie&&(i=e),i}cellEndValue(t){return t}fixSmallStep(t){return 1+t===1?(t*=2,this.fixSmallStep(t)):t}_fixMin(t){return t}_fixMax(t){return t}_calculateTotals(){if(this.get("calculateTotals")){let t=this.series[0];if(t){let e=t.startIndex();if(t.dataItems.length>0){e>0&&e--;let i,s,a=t.endIndex();a{if(!i.get("excludeFromTotal")){let r=i.dataItems[t];if(r){let t=r.get(o)*i.get(s);n.isNaN(t)||(e+=t,a+=Math.abs(t))}}})),r.each(this.series,(r=>{if(!r.get("excludeFromTotal")){let h=r.dataItems[t];if(h){let t=h.get(o)*r.get(s);if(!n.isNaN(t)){h.set(i+"Total",a),h.set(i+"Sum",e);let s=t/a*100;0==a&&(s=0),h.set(i+"TotalPercent",s)}}}}))}}}}}_getSelectionMinMax(){const t=this.getPrivate("minFinal"),e=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max");let a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2));const l=this.get("renderer").gridCount(),d=this.get("strictMinMaxSelection");let g=this.get("strictMinMax");if(n.isNumber(t)&&n.isNumber(e)){let c=e,u=t;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,i;const s=t.getPrivate("outOfSelection");if(t.get("xAxis")===this){if(!s){let s=t.getPrivate("minX"),a=t.getPrivate("maxX");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinX",s),i=t.getPrivate("selectionMaxX",a)}}else if(t.get("yAxis")===this&&!s){let s=t.getPrivate("minY"),a=t.getPrivate("maxY");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinY",s),i=t.getPrivate("selectionMaxY",a)}t.isHidden()||t.isShowing()||(n.isNumber(e)&&(c=Math.min(c,e)),n.isNumber(i)&&(u=Math.max(u,i)))}})),this.axisRanges.each((t=>{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(c=Math.min(c,e),u=Math.max(u,e)),e=t.get("endValue"),null!=e&&(c=Math.min(c,e),u=Math.max(u,e))}})),c>u&&([c,u]=[u,c]),n.isNumber(i)?c=g?i:t:g&&n.isNumber(this._minReal)&&(c=this._minReal),n.isNumber(s)?u=g?s:e:g&&n.isNumber(this._maxReal)&&(u=this._maxReal),c===u){let e=c;if(c-=this._deltaMinMax,u+=this._deltaMinMax,ce&&(x.max=e),c=x.min,u=x.max),g&&(n.isNumber(i)&&(c=Math.max(c,i)),n.isNumber(s)&&(u=Math.min(u,s))),d&&(c=m-(p-m)*a,u=p+(p-m)*o),g){c=n.isNumber(i)?i:m,u=n.isNumber(s)?s:p,u-c<=1e-8&&(c-=this._deltaMinMax,u+=this._deltaMinMax);let t=u-c;c-=t*a,u+=t*o}this.get("logarithmic")&&(c<=0&&(c=m*(1-Math.min(a,.99))),ce&&(u=e));let y=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),f=h.round(this.valueToFinalPosition(c),y),b=h.round(this.valueToFinalPosition(u),y);this.setPrivateRaw("selectionMinFinal",c),this.setPrivateRaw("selectionMaxFinal",u),this.setPrivateRaw("selectionStepFinal",x.step),this.zoom(f,b)}}_getMinMax(){let t=this.get("min"),e=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2)));let l=1/0;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,a;if(t.get("xAxis")===this?(e=t.getPrivate("minX"),a=t.getPrivate("maxX")):t.get("yAxis")===this&&(e=t.getPrivate("minY"),a=t.getPrivate("maxY")),n.isNumber(e)&&n.isNumber(a)){i=Math.min(i,e),s=Math.max(s,a);let t=a-e;t<=0&&(t=Math.abs(a/100)),t{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(i=Math.min(i,e),s=Math.max(s,e)),e=t.get("endValue"),null!=e&&(i=Math.min(i,e),s=Math.max(s,e))}})),this.get("logarithmic")){let t=this.get("treatZeroAs");n.isNumber(t)&&i<=0&&(i=t),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(0===i&&0===s&&(s=.9,i=-.9),n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e),i===1/0||s===-1/0)return this.setPrivate("minFinal",void 0),void this.setPrivate("maxFinal",void 0);i>s&&([i,s]=[s,i]);const d=i,g=s;let c=this.adapters.fold("min",i),u=this.adapters.fold("max",s);this._minRealLog=i,n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!=0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&d>=0&&(i=0),s>0&&g<=0&&(s=0)),this._minReal=i,this._maxReal=s;let m=this.get("strictMinMax"),p=this.get("strictMinMaxSelection",!1);p&&(m=p);let _=m;n.isNumber(e)&&(_=!0);let x=this.get("renderer").gridCount(),v=this._adjustMinMax(i,s,x,_);if(i=v.min,s=v.max,v=this._adjustMinMax(i,s,x,!0),i=v.min,s=v.max,m){i=n.isNumber(t)?t:this._minReal,s=n.isNumber(e)?e:this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let r=s-i;i-=r*a,s+=r*o}c=this.adapters.fold("min",i),u=this.adapters.fold("max",s),n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),l==1/0&&(l=s-i);let y=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=h.round(i,y),s=h.round(s,y);const f=this.get("syncWithAxis");if(f&&(v=this._syncAxes(i,s,v.step,f.getPrivate("minFinal",f.getPrivate("min",0)),f.getPrivate("maxFinal",f.getPrivate("max",1)),f.getPrivate("step",1)),i=v.min,s=v.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/l*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=d*(1-Math.min(a,.99)))),n.isNumber(i)&&n.isNumber(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);const t=this.get("interpolationDuration",0),e=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:t,easing:e}),this.animatePrivate({key:"max",to:s,duration:t,easing:e})}}_fixZoomFactor(){}_getDelta(t){let e=Math.log(Math.abs(t))*Math.LOG10E,i=Math.pow(10,Math.floor(e));i/=10,this._deltaMinMax=i}_saveMinMax(t,e){}_adjustMinMax(t,e,i,s){i<=1&&(i=1),i=Math.round(i);let a=t,o=e,r=e-t;0===r&&(r=Math.abs(e));let l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l));d/=10;let g=d;s&&(g=0),s?(t=Math.floor(t/d)*d,e=Math.ceil(e/d)*d):(t=Math.ceil(t/d)*d-g,e=Math.floor(e/d)*d+g),t<0&&a>=0&&(t=0),e>0&&o<=0&&(e=0),l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l)),d/=100;let c=Math.ceil(r/i/d)*d,u=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),m=Math.ceil(c/u);m>5?m=10:m<=5&&m>2&&(m=5),c=Math.ceil(c/(u*m))*u*m;let p=this.get("maxPrecision");if(n.isNumber(p)){let t=h.ceil(c,p);pa&&(t-=c),c=this.fixSmallStep(c),{min:t,max:e,step:c}}getTooltipText(t,e){const i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,n=h.round(this.positionToValue(t),o);return i?s.format(n,i):s.format(n,void 0,o)}getSeriesItem(t,e){let i,s,a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);if(r.each(t.dataItems,((t,e)=>{const n=Math.abs(t.get(a)-o);(void 0===i||n500&&(s=!0),s)t=n,e=h,i=d;else{a/3==Math.round(a/3)?(n=t-o*a,t>=0&&n<0&&(n=0)):(h=e+o*a,h<=0&&h>0&&(h=0));let i=this._adjustMinMax(n,h,l,!0);n=i.min,h=i.max,d=i.step}}}return{min:t,max:e,step:i}}_checkSync(t,e,i,s){let a=(e-t)/i;for(let t=1;t{if(t instanceof l){const e=t.get("stacked");e&&0==h&&n++,!e&&t.get("clustered")&&n++}t===this&&(o=n-1),h++})),this.get("clustered")||(o=0,n=1),0===n&&(n=1,o=0);const d="cellStartLocation",g="cellEndLocation",c=this._xRenderer.get(d,0),u=this._xRenderer.get(g,1),m=this._yRenderer.get(d,0),p=this._yRenderer.get(g,1);if(this._aLocationX0=c+o/n*(u-c),this._aLocationX1=c+(o+1)/n*(u-c),this._aLocationY0=m+o/n*(p-m),this._aLocationY1=m+(o+1)/n*(p-m),e.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){const t=this.dataItems.length;let a=Math.max(0,this.startIndex()-2),o=Math.min(this.endIndex()+2,t-1);for(let t=0;t0&&a>0)for(let e=t-1;e>=0;e--){let t=this.dataItems[e];if(null!=t.get("valueX")&&null!=t.get("valueY")){n=t;break}}break}this._toggleColumn(e,!1)}this._beforeColumnsDraw();let r=0;i.isType("CategoryAxis")&&e.isType("CategoryAxis")?r=2:e===s?r=0:i===s&&(r=1);for(let t=a;t<=o;t++){let e=this.dataItems[t];this._updateGraphics(e,n,r),null!=e.get("valueX")&&null!=e.get("valueY")&&(n=e)}this._afterColumnsDraw();for(let e=o+1;e{const a=e.get(s,this.get(s));t.set(s,a),i.set(s,a)}))}}let s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.dispose()})),s=[],t.setRaw("rangeGraphics",s),this.axisRanges.each((e=>{const i=e.container,a=this._makeGraphics(e.columns,t);s&&s.push(a),a.setPrivate("list",e.columns),i.children.push(a)}))}}createAxisRange(t){return r.each(this.dataItems,(t=>{const e=t.get("graphics");e&&(e.dispose(),t.set("graphics",void 0))})),super.createAxisRange(t)}_updateGraphics(t,e,i){let s=t.get("graphics");const a=this._xField,n=this._yField,l=t.get(a),d=t.get(n),g=this.get("exactLocationX",!1);if(null!=l&&null!=d){const l=this._xOpenField,d=this._yOpenField,c=this.get("locationX",t.get("locationX",.5)),u=this.get("locationY",t.get("locationY",.5)),m=this.get("openLocationX",t.get("openLocationX",c)),p=this.get("openLocationY",t.get("openLocationY",u)),_=s.get("width"),x=s.get("height"),v=this.get("stacked"),y=this.get("xAxis"),f=this.get("yAxis"),b=y.get("start"),D=y.get("end"),P=f.get("start"),w=f.get("end");let T,A,I,M,k=this.get("vcy",1),C=this.get("vcx",1),S=!1,Y=!1;if(0==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C,g),A=y.getDataItemPositionX(t,a,i,C,g),I=f.getDataItemPositionY(t,n,u,k),this._yOpenField!==this._yField)M=f.getDataItemPositionY(t,d,p,k);else if(v){let e=t.get("stackToItemY");M=e?f.getDataItemPositionY(e,n,p,e.component.get("vcy")):f.basePosition()}else M=f.basePosition();t.setRaw("point",{x:T+(A-T)/2,y:I}),Y=!0}else if(1==i){let e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5;if(x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}if(I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),A=y.getDataItemPositionX(t,a,c,C,g),this._xOpenField!==this._xField)T=y.getDataItemPositionX(t,l,m,C,g);else if(v){let e=t.get("stackToItemX");T=e?y.getDataItemPositionX(e,a,m,e.component.get("vcx"),g):y.basePosition()}else T=y.basePosition();S=!0,t.setRaw("point",{x:A,y:I+(M-I)/2})}else if(2==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C),A=y.getDataItemPositionX(t,a,i,C),e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5,x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),t.setRaw("point",{x:T+(A-T)/2,y:I+(M-I)/2})}this._applyGraphicsStates(t,e),this._updateSeriesGraphics(t,s,T,A,I,M,S,Y),TD&&A>D||I=w&&M>w||h.isNaN(T)||h.isNaN(I)?this._toggleColumn(t,!1):this._toggleColumn(t,!0);let F=t.get("rangeGraphics");F&&r.each(F,(e=>{this._updateSeriesGraphics(t,e,T,A,I,M,S,Y)}))}else this._toggleColumn(t,!1)}_updateSeriesGraphics(t,e,i,s,a,o,n,r){const l=e.get("width"),d=e.get("height"),g=e.get("maxWidth"),c=e.get("maxHeight"),u=this.getPoint(i,a),m=this.getPoint(s,o),p=t.get("point");if(p){const t=this.getPoint(p.x,p.y);p.x=t.x+this._x,p.y=t.y+this._y}if(i=u.x,s=m.x,a=u.y,o=m.y,h.isNumber(l)){const t=(s-i-l)/2;i+=t,s-=t}if(h.isNumber(g)&&g{this._toggleColumn(t,!1)}))}_applyGraphicsStates(t,e){const i=t.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),n=i.states.lookup("riseFromPrevious");if(s||o||a||n){const i=this.get("xAxis"),r=this.get("yAxis"),l=this.get("baseAxis");let d,g,c;l===i&&r.isType("ValueAxis")?(d=t.get(this._yOpenField),g=t.get(this._yField),c=e.get(this._yField)):l===r&&i.isType("ValueAxis")&&(d=t.get(this._xOpenField),g=t.get(this._xField),c=e.get(this._xField)),h.isNumber(d)&&h.isNumber(g)&&(g{const e=t.getPrivate("list");e&&e.removeValue(t),t.dispose()}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.hide(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.hide(e))})),yield Promise.all(s)}))}_toggleColumn(t,e){const i=t.get("graphics");i&&i.setPrivate("visible",e);const s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.setPrivate("visible",e)}));const a=t.bullets;a&&r.each(a,(t=>{t.setPrivate("hidden",!e)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.show(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.show(e))})),yield Promise.all(s)}))}updateLegendMarker(t){let e=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!t){const e=this.dataItems[this.endIndex()-1];e&&(t=e)}if(e){let i=this.columns.template;if(t){let e=t.get("graphics");e&&(i=e)}const s=e.get("markerRectangle");if(s&&!e.get("itemContainer").get("disabled")){const t=s.states.lookup("default");r.each(n.u,(e=>{const a=i.get(e,this.get(e));s.set(e,a),t.set(e,a)}))}}}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget"))return super._getTooltipTarget(t);return t.get("graphics")||this}}l.className="BaseColumnSeries",l.classNames=a.o.classNames.concat([l.className])},2976:function(t,e,i){i.d(e,{j:function(){return a}});var s=i(3497);class a extends s.c{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();const t=this._display;t.moveTo(this.get("lowX0",0),this.get("lowY0",0)),t.lineTo(this.get("lowX1",0),this.get("lowY1",0)),t.moveTo(this.get("highX0",0),this.get("highY0",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0))}}a.className="Candlestick",a.classNames=s.c.classNames.concat([a.className])},2312:function(t,e,i){i.d(e,{$:function(){return l}});var s=i(62),a=i(2976),o=i(5769),n=i(7144),r=i(7652),h=i(5071);class l extends s.d{constructor(){super(...arguments),this.columns=this.addDisposer(new n.o(o.YS.new({themeTags:["autocolor"]}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_updateGraphics(t,e,i){super._updateGraphics(t,e,i);const s=this.getRaw("xAxis"),a=this.getRaw("yAxis");let o,n,r,h,l,d,g,c,u,m=this.get("vcy",1),p=this.get("vcx",1),_=this.get("locationX",t.get("locationX",.5)),x=this.get("locationY",t.get("locationY",.5)),v=this.get("openLocationX",t.get("openLocationX",_)),y=this.get("openLocationY",t.get("openLocationY",x));if(0==i){let e=a.getDataItemPositionY(t,this._yOpenField,1,m),i=a.getDataItemPositionY(t,this._yField,1,m);h=a.getDataItemPositionY(t,this._yLowField,1,m),c=a.getDataItemPositionY(t,this._yHighField,1,m),g=Math.max(e,i),r=Math.min(e,i);let x=this._aLocationX0+v-.5,y=this._aLocationX1+_-.5;o=s.getDataItemPositionX(t,this._xField,x+(y-x)/2,p),n=o,l=o,d=o,u="vertical"}else{let e=s.getDataItemPositionX(t,this._xOpenField,1,p),i=s.getDataItemPositionX(t,this._xField,1,p);n=s.getDataItemPositionX(t,this._xLowField,1,p),d=s.getDataItemPositionX(t,this._xHighField,1,p),l=Math.max(e,i),o=Math.min(e,i);let _=this._aLocationY0+y-.5,v=this._aLocationY1+x-.5;r=a.getDataItemPositionY(t,this._yField,_+(v-_)/2,m),h=r,g=r,c=r,u="horizontal"}this._updateCandleGraphics(t,o,n,r,h,l,d,g,c,u)}_updateCandleGraphics(t,e,i,s,a,o,n,r,l,d){let g=t.get("graphics");if(g){let c=this.getPoint(e,s),u=this.getPoint(i,a),m=this.getPoint(o,r),p=this.getPoint(n,l);if(this.get("turboMode")){const t=this.allColumnsData[this.allColumnsData.length-1];t.lowX0=c.x,t.lowY0=c.y,t.lowX1=u.x,t.lowY1=u.y,t.highX0=m.x,t.highY0=m.y,t.highX1=p.x,t.highY1=p.y}else{let e=g.x(),i=g.y();g.set("lowX0",c.x-e),g.set("lowY0",c.y-i),g.set("lowX1",u.x-e),g.set("lowY1",u.y-i),g.set("highX0",m.x-e),g.set("highY0",m.y-i),g.set("highX1",p.x-e),g.set("highY1",p.y-i),g.set("orientation",d);let s=t.get("rangeGraphics");s&&h.each(s,(t=>{t.set("lowX0",c.x-e),t.set("lowY0",c.y-i),t.set("lowX1",u.x-e),t.set("lowY1",u.y-i),t.set("highX0",m.x-e),t.set("highY0",m.y-i),t.set("highX1",p.x-e),t.set("highY1",p.y-i),t.set("orientation",d)}))}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),h.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity,g=e.lowX0,c=e.lowY0,u=e.lowX1,m=e.lowY1,p=e.highX0,_=e.highY0,x=e.highX1,v=e.highY1;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.moveTo(g,c),t.lineTo(u,m),t.moveTo(p,_),t.lineTo(x,v),t.endStroke(),t.endFill()}))}))}_processAxisRange(t){super._processAxisRange(t),t.columns=new n.o(o.YS.new({}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(t.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,t.columns.template])))}}l.className="CandlestickSeries",l.classNames=s.d.classNames.concat([l.className])},62:function(t,e,i){i.d(e,{d:function(){return d}});var s=i(757),a=i(5769),o=i(7144),n=i(3497),r=i(1479),h=i(7652),l=i(5071);class d extends s.d{constructor(){super(...arguments),this.allColumns=this.children.push(r.T.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(t.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,t.columns.template])))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),l.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.endStroke(),t.endFill()}))}))}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(t,e,i,s,a,o,n,r){if(this.get("turboMode")){e.virtualParent=this.chart,e.parent&&(this.mainContainer.children.removeValue(e),e._parent=void 0);const n=e.get("stroke"),r=e.get("fillOpacity",1),h=e.get("strokeOpacity",1),l=e.get("strokeWidth",1),d=e.get("fill"),g=this.getPoint(i,a),c=this.getPoint(s,o),u=t.get("point");if(u){const t=this.getPoint(u.x,u.y);u.x=t.x+this._x,u.y=t.y+this._y}i=g.x,s=c.x,a=g.y,o=c.y,t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:n,fill:d,strokeWidth:l,strokeOpacity:h,fillOpacity:r})}else e.parent||this.mainContainer.children.push(e),super._updateSeriesGraphics(t,e,i,s,a,o,n,r)}}d.className="ColumnSeries",d.classNames=s.d.classNames.concat([d.className])},2338:function(t,e,i){i.d(e,{e:function(){return p}});var s=i(4604),a=i(1479),o=i(774),n=i(3794),r=i(5769),h=i(7144),l=i(1112),d=i(9361),g=i(7142),c=i(5040),u=i(5071),m=i(7652);class p extends s.o{constructor(){super(...arguments),this._strokeGenerator=(0,o.Z)(),this._fillGenerator=(0,n.Z)(),this.strokes=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template])))),this.fills=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template])))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0((function(t){return t[3]})),this._fillGenerator.x0((function(t){return t[2]})),this._fillGenerator.y1((function(t){return t[1]})),this._fillGenerator.x1((function(t){return t[0]})),super._afterNew()}makeStroke(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}makeFill(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let t=this.get("xAxis"),e=this.get("yAxis");if(this.isDirty("stroke")){const t=this.get("stroke");this.strokes.template.set("stroke",t);const e=this._legendStroke;e&&e.states.lookup("default").set("stroke",t)}if(this.isDirty("fill")){const t=this.get("fill");this.fills.template.set("fill",t);const e=this._legendFill;e&&e.states.lookup("default").set("fill",t)}if(this.isDirty("fillPattern")){const t=this.get("fillPattern");this.fills.template.set("fillPattern",t);const e=this._legendFill;e&&e.states.lookup("default").set("fillPattern",t)}if(this.isDirty("curveFactory")){const t=this.get("curveFactory");t&&(this._strokeGenerator.curve(t),this._fillGenerator.curve(t))}if(t.inited&&e.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){const t=this.dataItems;this.fills.each((t=>{t.setPrivate("visible",!1)})),this.strokes.each((t=>{t.setPrivate("visible",!1)})),this.axisRanges.each((t=>{let e=t.fills;e&&e.each((t=>{t.setPrivate("visible",!1)}));let i=t.strokes;i&&i.each((t=>{t.setPrivate("visible",!1)}))}));let e=this.startIndex(),i=this.strokes.template.get("templateField"),s=this.fills.template.get("templateField"),a=!0,o=!0;i&&(a=!1),s&&(o=!1);for(let n=e-1;n>=0;n--){let r=t[n],h=!0,l=r.dataContext;if(i&&l[i]&&(a=!0),s&&l[s]&&(o=!0),u.each(this._valueFields,(t=>{c.isNumber(r.get(t))||(h=!1)})),h&&a&&o){e=n;break}}let n=t.length,r=this.endIndex();if(r{c.isNumber(i.get(t))||(s=!1)})),s){r=e+1;break}}}if(e>0&&e--,this._endIndex=r,this._clearGraphics(),this._sindex=0,this._dindex=e,1==n)this._startSegment(0);else for(;this._dindex{t.fills.clear(),t.strokes.clear()}))}_startSegment(t){const e=this.dataItems;let i=this._endIndex,s=i;const a=this.get("autoGapCount"),o=this.get("connect"),n=this.makeFill(this.fills),h=this._fillTemplate,l=this.fills.template;h&&h!=l&&(n.template=h),n.setPrivate("visible",!0);const d=this.makeStroke(this.strokes),g=this._strokeTemplate;g&&g!=this.strokes.template&&(d.template=g),d.setPrivate("visible",!0);let c=this.get("xAxis"),u=this.get("yAxis"),m=this.get("baseAxis"),p=this.get("vcx",1),_=this.get("vcy",1),x=this._xField,v=this._yField,y=this._xOpenField,f=this._yOpenField;const b=this.get("openValueXField"),D=this.get("openValueYField");b||(y=this._xField),D||(f=this._yField);const P=this.get("stacked"),w=c.basePosition(),T=u.basePosition();let A;A=m===u?this._yField:this._xField;const I=[];let M=[];I.push(M);const k=this.strokes.template.get("templateField"),C=this.fills.template.get("templateField");let S=this.get("locationX",.5),Y=this.get("locationY",.5),F=this.get("openLocationX",S),X=this.get("openLocationY",Y);const L=this.get("minDistance",0);let N,R=this.fills.template.get("visible");this.axisRanges.length>0&&(R=!0);let V=!1;(P||b||D)&&(V=!0);const G={points:M,segments:I,stacked:P,getOpen:V,basePosX:w,basePosY:T,fillVisible:R,xField:x,yField:v,xOpenField:y,yOpenField:f,vcx:p,vcy:_,baseAxis:m,xAxis:c,yAxis:u,locationX:S,locationY:Y,openLocationX:F,openLocationY:X,minDistance:L};let O=this._strokeTemplate,E=this._fillTemplate;for(N=t;Nt){s=N;break}O=e,d.template=e}}if(C){let e=i.dataContext[C];if(e){if(e instanceof r.YS||(e=r.YS.new(e)),this._fillTemplate=e,N>t){s=N;break}E=e,n.template=e}}if(!o){let t=e[N+1];t&&m.shouldGap(i,t,a,A)&&(M=[],I.push(M),G.points=M)}}n.setRaw("userData",[t,N]),d.setRaw("userData",[t,N]),N===i&&this._endLine(M,I[0][0]),d&&this._drawStroke(d,I),n&&this._drawFill(n,I),this.axisRanges.each((e=>{const i=e.container,s=e.fills,a=this.makeFill(s);i&&i.children.push(a),a.setPrivate("visible",!0),this._drawFill(a,I);const o=e.strokes,n=this.makeStroke(o);i&&i.children.push(n),O&&O!=this.strokes.template&&(n.template=O),E&&E!=this.fills.template&&(a.template=E),n.setPrivate("visible",!0),this._drawStroke(n,I),a.setRaw("userData",[t,N]),n.setRaw("userData",[t,N])}))}_getPoints(t,e){let i=e.points,s=t.get("locationX",e.locationX),a=t.get("locationY",e.locationY);const o=this.get("exactLocationX",!1),n=this.get("exactLocationY",!1);let r=e.xAxis.getDataItemPositionX(t,e.xField,s,e.vcx,o),h=e.yAxis.getDataItemPositionY(t,e.yField,a,e.vcy,n);if(this._shouldInclude(r)){const s=this.getPoint(r,h),a=[s.x,s.y];if(s.x+=this._x,s.y+=this._y,t.set("point",s),e.fillVisible){let i=r,s=h;if(e.baseAxis===e.xAxis?s=e.basePosY:e.baseAxis===e.yAxis&&(i=e.basePosX),e.getOpen){let a=t.get(e.xOpenField),r=t.get(e.yOpenField);if(null!=a&&null!=r){let a=t.get("openLocationX",e.openLocationX),r=t.get("openLocationY",e.openLocationY);if(e.stacked){let h=t.get("stackToItemX"),l=t.get("stackToItemY");h?(i=e.xAxis.getDataItemPositionX(h,e.xField,a,h.component.get("vcx"),o),c.isNaN(i)&&(i=e.basePosX)):i=e.yAxis===e.baseAxis?e.basePosX:e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),l?(s=e.yAxis.getDataItemPositionY(l,e.yField,r,l.component.get("vcy"),n),c.isNaN(s)&&(s=e.basePosY)):s=e.xAxis===e.baseAxis?e.basePosY:e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),s=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}}let l=this.getPoint(i,s);a[2]=l.x,a[3]=l.y}if(e.minDistance>0){const t=a[0],s=a[1],o=a[2],n=a[3],r=this._previousPoint,h=r[0],l=r[1],d=r[2],g=r[3];(Math.hypot(t-h,s-l)>e.minDistance||o&&n&&Math.hypot(o-d,n-g)>e.minDistance)&&(i.push(a),this._previousPoint=a)}else i.push(a)}}_endLine(t,e){}_drawStroke(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._strokeGenerator.context(t),this._strokeGenerator(e)}))}))}_drawFill(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._fillGenerator.context(t),this._fillGenerator(e)}))}))}_processAxisRange(t){super._processAxisRange(t),t.fills=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,t.fills.template]))),t.strokes=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,t.strokes.template])))}createLegendMarker(t){const e=this.get("legendDataItem");if(e){const t=e.get("marker"),i=e.get("markerRectangle");i&&i.setPrivate("visible",!1),t.set("background",g.A.new(t._root,{fillOpacity:0,fill:(0,l.$_)(0)}));const s=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=s;const o=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;const n=this._root.interfaceColors.get("disabled");if(s.states.create("disabled",{fill:n,stroke:n}),o.states.create("disabled",{fill:n,stroke:n}),this.bullets.length>0){const e=this.bullets.getIndex(0);if(e){const i=e(t._root,this,new d.z(this,{legend:!0},{}));if(i){const e=i.get("sprite");e instanceof a.T&&e.states.create("disabled",{fill:n,stroke:n}),e&&(e.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),t.children.push(e),e.setAll({x:t.width()/2,y:t.height()/2}),t.events.on("boundschanged",(()=>{e.setAll({x:t.width()/2,y:t.height()/2})})))}}}}}}p.className="LineSeries",p.classNames=s.o.classNames.concat([p.className])},4604:function(t,e,i){i.d(e,{o:function(){return u}});var s=i(7582),a=i(9361),o=i(3399),n=i(7144),r=i(8777),h=i(1479),l=i(5040),d=i(256),g=i(5071),c=i(7652);class u extends o.F{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(r.W.new(this._root,{})),this.axisRanges=new n.aV,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new a.z(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");const t=this.get("xAxis");t&&(this._xRenderer=t.get("renderer"));const e=this.get("yAxis");e&&(this._yRenderer=e.get("renderer")),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxisRange(t)}));else if("push"===t.type)this._processAxisRange(t.newValue);else if("setIndex"===t.type)this._processAxisRange(t.newValue);else if("insertIndex"===t.type)this._processAxisRange(t.newValue);else if("removeIndex"===t.type)this._removeAxisRange(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value)}}))),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this.onPrivate("endIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this._makeFieldNames()}_processAxisRange(t){const e=r.W.new(this._root,{});t.container=e,this.children.push(e),t.series=this;const i=t.axisDataItem;i.setRaw("isRange",!0);const s=i.component;if(s){s._processAxisRange(i,["range","series"]);const t=i.get("bullet");if(t){const e=t.get("sprite");e&&e.setPrivate("visible",!1)}const a=i.get("axisFill");a&&e.set("mask",a),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),d.each(this._dataSets,((t,e)=>{g.each(e,(t=>{t.dispose()})),e.length=0}))}_removeAxisRange(t){const e=t.axisDataItem,i=e.component;e.dispose(),g.remove(i._seriesAxisRanges,e);const s=t.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&g.each(this.valueXFields,(t=>{if(this.get(t+"Field")){this._valueXFields.push(t);let e=this.get(t+"Show");this.__valueXShowFields.push(e),-1!=e.indexOf("Working")?this._valueXShowFields.push(e.split("Working")[0]):this._valueXShowFields.push(e)}})),this.valueYFields&&g.each(this.valueYFields,(t=>{if(this.get(t+"Field")){this._valueYFields.push(t);let e=this.get(t+"Show");this.__valueYShowFields.push(e),-1!=e.indexOf("Working")?this._valueYShowFields.push(e.split("Working")[0]):this._valueYShowFields.push(e)}}))}_dispose(){super._dispose(),this._bullets={};const t=this.chart;t&&t.series.removeValue(this),g.removeFirst(this.get("xAxis").series,this),g.removeFirst(this.get("yAxis").series,this)}_min(t,e){let i=(a=e,null==(s=this.getPrivate(t))?a:null==a?s:aa?s:a);var s,a;this.setPrivate(t,i)}_shouldMakeBullet(t){const e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!e.inited||!i.inited)return!1;const a=this.get("minBulletDistance",0);if(a>0){let t=this.startIndex(),o=this.endIndex()-t;if(e==s){if(this._xRenderer.axisLength()/o
{g.each(this._valueXShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedXValue(i,t)),this._min("minX",e),this._max("maxX",e))})),g.each(this._valueYShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedYValue(i,t)),this._min("minY",e),this._max("maxY",e))})),t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)})),t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&t.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&e.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(t._groupSeriesData(this),e._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let s=this.startIndex(),a=this.endIndex(),o=this.get("minBulletDistance",0);if(o>0&&i&&(i.get("renderer").axisLength()/(a-s)>o?this._showBullets=!0:this._showBullets=!1),(this._psi!=s||this._pei!=a||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const o=this.get("vcx",1),n=this.get("vcy",1),r=this.get("stacked",!1),h=this.getPrivate("outOfSelection");if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),h)e.markDirtySelectionExtremes();else for(let t=s;t{i.open=void 0,i.close=void 0,t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)}))}_makeRangeMask(){if(this.axisRanges.length>0){let t=this._mainContainerMask;null==t&&(t=this.children.push(h.T.new(this._root,{})),this._mainContainerMask=t,t.set("draw",((e,i)=>{const s=this.parent;if(s){const t=this._root.container.width(),a=this._root.container.height();e.moveTo(-t,-a),e.lineTo(-t,2*a),e.lineTo(2*t,2*a),e.lineTo(2*t,-a),e.lineTo(-t,-a),this.axisRanges.each((t=>{const a=t.axisDataItem.get("axisFill");if(s&&a){let t=a.get("draw");t&&t(e,i)}}))}this.mainContainer._display.mask=t._display}))),t.markDirty(),t._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const t=this.chart;if(t){const e=t.series.indexOf(this);if(this._couldStackTo=[],e>0){let i;for(let s=e-1;s>=0&&(i=t.series.getIndex(s),i.get("xAxis")!==this.get("xAxis")||i.get("yAxis")!==this.get("yAxis")||i.className!==this.className||(this._couldStackTo.push(i),i.get("stacked")));s--);}this._stackDataItems()}}_unstack(){d.each(this._reallyStackedTo,((t,e)=>{delete e._stackedSeries[this.uid]})),this._reallyStackedTo={},g.each(this.dataItems,(t=>{t.setRaw("stackToItemY",void 0),t.setRaw("stackToItemX",void 0)}))}_handleRemoved(){const t=this.get("xAxis");t&&t._handleSeriesRemoved();const e=this.get("yAxis");e&&e._handleSeriesRemoved()}_stackDataItems(){const t=this.get("baseAxis"),e=this.get("xAxis"),i=this.get("yAxis");let s,a;t===e?(s="valueY",a="stackToItemY"):t===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,n=0;const r=this.get("stackToNegative");this._reallyStackedTo={},g.each(this.dataItems,(t=>{for(let e=0;e=0&&n>=0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}if(d<0&&n<0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}else if(l.isNumber(d)&&l.isNumber(n)){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}n++}))}processXSelectionDataItem(t,e,i){g.each(this.__valueXShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedXValueWorking(t,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*e))}))}processYSelectionDataItem(t,e,i){g.each(this.__valueYShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedYValueWorking(t,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*e))}))}getStackedYValueWorking(t,e){const i=t.get("stackToItemY");if(i){const t=i.component;return i.get(e,0)*t.get("vcy",1)+this.getStackedYValueWorking(i,e)}return 0}getStackedXValueWorking(t,e){const i=t.get("stackToItemX");if(i){const t=i.component;return i.get(e,0)*t.get("vcx",1)+this.getStackedXValueWorking(i,e)}return 0}getStackedYValue(t,e){const i=t.get("stackToItemY");return i?i.get(e,0)+this.getStackedYValue(i,e):0}getStackedXValue(t,e){const i=t.get("stackToItemX");return i?i.get(e,0)+this.getStackedXValue(i,e):0}createLegendMarker(t){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(t){let e=t.get("sprite");if(e){let i=e.dataItem,s=t.get("locationX",i.get("locationX",.5)),a=t.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),n=this.get("yAxis"),r=this.get("exactLocationX",!1),h=this.get("exactLocationY",!1),l=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),r),d=n.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),h),g=this.getPoint(l,d),c=i.get("left",g.x),u=i.get("right",g.x),m=i.get("top",g.y),p=i.get("bottom",g.y),_=0,x=0,v=u-c,y=p-m;if(this._shouldShowBullet(l,d)){e.setPrivate("visible",!t.getPrivate("hidden"));let o=t.get("field");const n=this.get("baseAxis"),u=this.get("xAxis"),m=this.get("yAxis");if(null!=o){let t;n==u?("value"==o?t=this._yField:"open"==o?t=this._yOpenField:"high"==o?t=this._yHighField:"low"==o&&(t=this._yLowField),t&&(d=m.getDataItemPositionY(i,t,0,this.get("vcy",1),h),g=this._yRenderer.positionToPoint(d),x=g.y,_=c+v*s)):("value"==o?t=this._xField:"open"==o?t=this._xOpenField:"high"==o?t=this._xHighField:"low"==o&&(t=this._xLowField),t&&(l=u.getDataItemPositionX(i,t,0,this.get("vcx",1),r),g=this._xRenderer.positionToPoint(l),_=g.x,x=p-y*a))}else _=c+v*s,x=p-y*a;const f=t.get("stacked");if(f){const t=this.chart;if(n==u){let i=this._bullets[l+"_"+d];if(i){let s=i.bounds(),a=e.localBounds(),o=x;x=s.top,"down"==f?x=s.bottom-a.top:"auto"==f?t&&(o{e!=this._mainDataItems&&g.each(e,(t=>{t.dispose()}))})),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){g.each(this._dataItems,(t=>{let e=t.bullets;e&&g.each(e,(t=>{if(t){let e=t.get("sprite");e&&e.setPrivate("visible",!1)}}))})),this._selectionProcessed=!1}show(t){const e=Object.create(null,{show:{get:()=>super.show}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.show.call(this,t).then((()=>{this._isShowing=!1;let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis");e!==i&&e.markDirtySelectionExtremes(),t!==i&&t.markDirtySelectionExtremes()}))),i.push(this.bulletsContainer.show(t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)}))}hide(t){const e=Object.create(null,{hide:{get:()=>super.hide}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.hide.call(this,t).then((()=>{this._isHiding=!1}))),i.push(this.bulletsContainer.hide(t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)];l.isNumber(e)||(e=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");g.each(this._valueFields,(i=>{s.push(t.animate({key:i+"Working",to:t.get(i),duration:e,easing:a}).waitForStop())})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)];let a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),l.isNumber(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),n=this.get("xAxis"),r=this.get("yAxis"),h=this.get("baseAxis"),d=this.get("stacked");if(h!==n&&h||g.each(this._valueYFields,(i=>{let a=r.getPrivate("min"),n=r.baseValue();l.isNumber(a)&&a>n&&(n=a),d&&(n=0),null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:n,duration:e,easing:o}).waitForStop())})),h===r||!h){let i=n.getPrivate("min"),a=n.baseValue();l.isNumber(i)&&i>a&&(a=i),d&&(a=0),g.each(this._valueXFields,(i=>{null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:a,duration:e,easing:o}).waitForStop())}))}yield Promise.all(s)}))}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const t=this._stackedSeries;t&&d.each(t,((t,e)=>{e._stackDirty||e._markDirtyStack()}))}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(t){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(t),this.updateLegendValue(t));const e=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(e)if(!this.isHidden()&&this.get("visible")){if(e._setDataItem(t),t){let a=this.get("locationX",0),o=this.get("locationY",1),n=t.get("locationX",a),r=t.get("locationY",o);const h=this.get("xAxis"),l=this.get("yAxis"),d=this.get("vcx",1),c=this.get("vcy",1),u=h.getDataItemPositionX(t,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*n,d,i),m=l.getDataItemPositionY(t,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*r,c,s),p=this.getPoint(u,m);let _=!0;if(g.each(this._valueFields,(e=>{null==t.get(e)&&(_=!1)})),_){const i=this.chart;i&&i.inPlot(p)?(e.label.text.markDirtyText(),e.set("tooltipTarget",this._getTooltipTarget(t)),e.set("pointTo",this._display.toGlobal({x:p.x,y:p.y}))):e._setDataItem(void 0)}else e._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const t=this.get("tooltip");return t&&t.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget")){const e=t.bullets;if(e&&e.length>0){const t=e[0].get("sprite");if(t)return t}}return this}updateLegendValue(t){const e=this.get("legendDataItem");if(e){const i=e.get("label");if(i){let e="";t?(i._setDataItem(t),e=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),e=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",e)}const s=e.get("valueLabel");if(s){let e="";t?(s._setDataItem(t),e=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),e=this.get("legendRangeValueText",s.get("text",""))),s.set("text",e)}}}_getItemReaderLabel(){let t="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}",t}getPoint(t,e){let i=this._xRenderer.positionToCoordinate(t),s=this._yRenderer.positionToCoordinate(e),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(t){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(t){return this.axisRanges.push({axisDataItem:t})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(t){const e=this.get("xAxis");if(this.get("baseAxis")==e&&e.isType("DateAxis")){const i=e.baseDuration(),s=e.getPrivate("selectionMin",e.getPrivate("min",0)),a=i*this.get("locationX",.5);let o=-1/0;for(;o{const e=this.startGrip,i=this.endGrip;let s=e.x(),a=e.y(),o=i.x(),n=i.y();const r=this.height(),h=this.width();s>o&&([s,o]=[o,s]),a>n&&([a,n]=[n,a]),"horizontal"===this.get("orientation")?(t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,r),t.lineTo(0,r),t.lineTo(0,0),t.moveTo(o,0),t.lineTo(h,0),t.lineTo(h,r),t.lineTo(o,r),t.lineTo(o,0)):(t.moveTo(0,0),t.lineTo(0,a),t.lineTo(h,a),t.lineTo(h,0),t.lineTo(0,0),t.moveTo(0,n),t.lineTo(0,r),t.lineTo(h,r),t.lineTo(h,n),t.lineTo(0,n))}))}}r.className="XYChartScrollbar",r.classNames=a.L.classNames.concat([r.className]);var h=i(3355),l=i(757),d=i(6515),g=i(7497),c=i(1926),u=i(5040),m=i(5071);class p extends g.${constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category"),super._afterNew()}_prepareAxisItems(){this.setPrivateRaw("baseInterval",this.get("baseInterval"));const t=this.get("renderer"),e=this.dataItems.length;let i=this.startIndex();i>0&&i--;let s=this.endIndex();s=o&&(g=!0):r%l.count==0&&r!=y&&(g=!0),!h&&g&&(i-.7*o0){let t=f[0].dataItem.get("index",0);m.each(f,(e=>{const i=e.dataItem,s=e.format;this._createAssets(i,[]),this._toggleDataItem(i,!0);let a=Number(i.get("category")),n=new Date(a);const r=i.get("label");r&&r.set("text",this._root.dateFormatter.format(n,s)),t++,this._prepareDataItem(i,t,o)}))}}baseDuration(){return c.getIntervalDuration(this.getPrivate("baseInterval"))}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let t=this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];return this._root.dateFormatter.format(new Date(i.get("category",0)),this.get("tooltipDateFormat",t))}}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}}p.className="CategoryDateAxis",p.classNames=g.$.classNames.concat([p.className]);var _=i(5638),x=i(8701),v=i(7261),y=i(751);class f extends v.m{constructor(){super(...arguments),this._dataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),super._afterNew()}_adjustMinMax(t,e,i,s){let a;const o=this.getDurationFormatter(),n=this.get("baseUnit");if(this.setRaw("maxPrecision",0),"millisecond"==n||"second"==n||"minute"==n||"hour"==n){i<=1&&(i=1),i=Math.round(i);let s=e-t;0===s&&(s=Math.abs(e));let o=s/i,r=[60,30,20,15,10,2,1],h=1;"hour"==n&&(r=[24,12,6,4,2,1]);for(let t of r)if(s/t>i){h=t;break}let l=Math.ceil((e-t)/h/i),d=Math.log(Math.abs(l))*Math.LOG10E,g=Math.pow(10,Math.floor(d))/10,c=l/g;l=y.closest(r,c)*g,o=h*l,a={min:t=Math.floor(t/o)*o,max:e=Math.ceil(e/o)*o,step:o}}else a=super._adjustMinMax(t,e,i,s);return this.setPrivateRaw("durationFormat",o.getFormat(a.step,a.max,n)),a}_formatText(t){return this.getDurationFormatter().format(t,this.getPrivate("durationFormat"),this.get("baseUnit"))}getTooltipText(t,e){const i=this.getDurationFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=y.round(this.positionToValue(t),a);return i.format(o,this.getPrivate("durationFormat"),this.get("baseUnit"))}}f.className="DurationAxis",f.classNames=v.m.classNames.concat([f.className]);var b=i(2586),D=i(6293),P=i(9084),w=i(4714),T=i(8943),A=i(7109),I=i(6275),M=i(6284),k=i(7909),C=i(4604),S=i(2976),Y=i(2312);class F extends S.j{_draw(){const t=this._display;t.moveTo(this.get("lowX1",0),this.get("lowY1",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0));let e=this.width(),i=this.height();if("vertical"==this.get("orientation")){let s=i,a=0;t.moveTo(0,s),t.lineTo(e/2,s),t.moveTo(e/2,a),t.lineTo(e,a)}else{let s=0,a=e;t.moveTo(s,0),t.lineTo(s,i/2),t.moveTo(a,i/2),t.lineTo(a,i)}}}F.className="OHLC",F.classNames=S.j.classNames.concat([F.className]);var X=i(5769),L=i(7144);class N extends Y.${constructor(){super(...arguments),this.columns=this.addDisposer(new L.o(X.YS.new({themeTags:["autocolor"]}),(()=>F._new(this._root,{themeTags:n.mergeTags(this.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=this.mainContainer.children.push(e.make());return i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new L.o(X.YS.new({}),(()=>F._new(this._root,{themeTags:n.mergeTags(t.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template,t.columns.template])))}}N.className="OHLCSeries",N.classNames=Y.$.classNames.concat([N.className]);var R=i(62),V=i(2338),G=i(5892);class O extends V.e{_afterNew(){this._setDefault("curveFactory",(0,G.$)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,G.$)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}O.className="SmoothedYLineSeries",O.classNames=V.e.classNames.concat([O.className]);var E=i(8289);class z extends V.e{_afterNew(){this._setDefault("curveFactory",(0,E.G)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,E.G)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}z.className="SmoothedXLineSeries",z.classNames=V.e.classNames.concat([z.className]);var U=i(2818);class W extends V.e{_afterNew(){this._setDefault("curveFactory",U.ZP.tension(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",U.ZP.tension(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}W.className="SmoothedXYLineSeries",W.classNames=V.e.classNames.concat([W.className]);var B=i(6245);function H(t,e){this._context=t,this._t=e}function Z(t){return new H(t,1)}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}};class Q extends V.e{_afterNew(){this._setDefault("curveFactory",Z),super._afterNew()}_getPoints(t,e){let i=e.points,s=this.get("stepWidth",B.AQ).value/2,a=t.get("locationX",e.locationX),o=t.get("locationY",e.locationY),n=a,r=o;e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s);let h=e.xAxis.getDataItemPositionX(t,e.xField,a,e.vcx),l=e.yAxis.getDataItemPositionY(t,e.yField,o,e.vcy),d=e.xAxis.getDataItemPositionX(t,e.xField,n,e.vcx),g=e.yAxis.getDataItemPositionY(t,e.yField,r,e.vcy);if(this._shouldInclude(h)){const c=this.getPoint(h,l),u=[c.x,c.y],m=this.getPoint(d,g),p=[m.x,m.y];if(e.fillVisible){let i=h,c=l,m=d,_=g;if(e.baseAxis===e.xAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(i=e.basePosX,m=e.basePosX),e.getOpen){let h=t.get(e.xOpenField),l=t.get(e.yOpenField);if(null!=h&&null!=l)if(a=t.get("openLocationX",e.openLocationX),o=t.get("openLocationY",e.openLocationY),n=a,r=o,e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s),e.stacked){let s=t.get("stackToItemX"),h=t.get("stackToItemY");s?(i=e.xAxis.getDataItemPositionX(s,e.xField,a,s.component.get("vcx")),m=e.xAxis.getDataItemPositionX(s,e.xField,n,s.component.get("vcx"))):e.yAxis===e.baseAxis?(i=e.basePosX,m=e.basePosX):e.baseAxis===e.yAxis&&(i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx)),h?(c=e.yAxis.getDataItemPositionY(h,e.yField,o,h.component.get("vcy")),_=e.yAxis.getDataItemPositionY(h,e.yField,r,h.component.get("vcy"))):e.xAxis===e.baseAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy))}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy)}let x=this.getPoint(i,c),v=this.getPoint(m,_);u[2]=x.x,u[3]=x.y,p[2]=v.x,p[3]=v.y}i.push(u),i.push(p),t.set("point",{x:u[0]+(p[0]-u[0])/2,y:u[1]+(p[1]-u[1])/2})}this.get("noRisers")&&(e.points=[],e.segments.push(i))}}Q.className="StepLineSeries",Q.classNames=V.e.classNames.concat([Q.className]);var j=i(55)},7825:function(t,e,i){i.r(e),i.d(e,{am5xy:function(){return s}});const s=i(778)},2818:function(t,e,i){function s(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function a(t,e){this._context=t,this._k=(1-e)/6}i.d(e,{xm:function(){return s}}),a.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:s(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:s(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.ZP=function t(e){function i(t){return new a(t,e)}return i.tension=function(e){return t(+e)},i}(0)}},function(t){var e=(7825,t(t.s=7825)),i=window;for(var s in e)i[s]=e[s];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=xy.js.map diff --git a/web/amCharts/scatter/chart_0062_scatter.inline03.js b/web/amCharts/scatter/chart_0062_scatter.inline03.js new file mode 100644 index 0000000000000000000000000000000000000000..c27a274e7972e9ecbd57d20b441e60fc864ffc7d --- /dev/null +++ b/web/amCharts/scatter/chart_0062_scatter.inline03.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=Animated.js.map diff --git a/web/amCharts/scatter/chart_0063_scatter.html b/web/amCharts/scatter/chart_0063_scatter.html new file mode 100644 index 0000000000000000000000000000000000000000..f6cf77cc757bd21750ee9d7b093fdaf3295b30a8 --- /dev/null +++ b/web/amCharts/scatter/chart_0063_scatter.html @@ -0,0 +1,298 @@ + + + + + + Animated XY Bubble Timeline chart + + + +
+ + + + + + diff --git a/web/amCharts/scatter/chart_0063_scatter.inline01.js b/web/amCharts/scatter/chart_0063_scatter.inline01.js new file mode 100644 index 0000000000000000000000000000000000000000..3fe3e3caca2e468e70f044c7aaeaa49dfcb8d974 --- /dev/null +++ b/web/amCharts/scatter/chart_0063_scatter.inline01.js @@ -0,0 +1,2 @@ +!function(){var t,e,i,s,n,r={3145:function(t,e,i){"use strict";i.d(e,{UZ:function(){return r},cP:function(){return n},f_:function(){return o},i_:function(){return s}});const s=new class{constructor(){this.version="5.16.0",this.licenses=[],this.entitiesById={},this.rootElements=[],this.autoDispose=!1}};function n(t){s.licenses.push(t)}function r(){let t;for(;t=s.rootElements.pop();)t.dispose()}function o(t){let e;return s.rootElements.forEach((i=>{i.dom.id==t&&(e=i)})),e}},2855:function(t,e,i){"use strict";i.d(e,{f:function(){return F}});var s=i(6490),n=i(8777),r=i(2036),o=i(4431),a=i(1706),h=i(6881),l=i(7449),c=i(5071),u=i(7652);class d{constructor(){this._targets=[],this._observer=new ResizeObserver((t=>{c.each(t,(t=>{c.each(this._targets,(e=>{e.target===t.target&&e.callback()}))}))}))}addTarget(t,e){this._observer.observe(t,{box:"border-box"}),this._targets.push({target:t,callback:e})}removeTarget(t){this._observer.unobserve(t),c.keepIf(this._targets,(e=>e.target!==t))}}class p{constructor(){this._timer=null,this._targets=[]}addTarget(t,e){if(null===this._timer){let t=null;const e=()=>{const i=Date.now();(null===t||i>t+p.delay)&&(t=i,c.each(this._targets,(t=>{let e=t.target.getBoundingClientRect();e.width===t.size.width&&e.height===t.size.height||(t.size=e,t.callback())}))),0===this._targets.length?this._timer=null:this._timer=requestAnimationFrame(e)};this._timer=requestAnimationFrame(e)}this._targets.push({target:t,callback:e,size:{width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0}})}removeTarget(t){c.keepIf(this._targets,(e=>e.target!==t)),0===this._targets.length&&null!==this._timer&&(cancelAnimationFrame(this._timer),this._timer=null)}}p.delay=200;let g=null;class f{constructor(t,e){this._disposed=!1,this._sensor=(null===g&&(g="undefined"!=typeof ResizeObserver?new d:new p),g),this._element=t,this._listener=u.onZoom(e),this._sensor.addTarget(t,e)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}var _=i(9821),m=i(1479),y=i(7142),v=i(2876),w=i(780),b=i(6460),x=i(798),D=i(6331),k=i(256),T=i(3100);class M extends D.JH{_setDefaults(){this.setPrivate("defaultLocale",T.Z),super._setDefaults()}translate(t,e,...i){e||(e=this._root.locale||this.getPrivate("defaultLocale"));let s=t,n=e[t];if(null===n)s="";else if(null!=n)n&&(s=n);else if(e!==this.getPrivate("defaultLocale"))return this.translate(t,this.getPrivate("defaultLocale"),...i);if(i.length)for(let t=i.length,e=0;e{this.setTranslationAny(t,i,e)}))}translateEmpty(t,e,...i){let s=this.translate(t,e,...i);return s==t?"":s}translateFunc(t,e){return this._root.locale[t]?this._root.locale[t]:e!==this.getPrivate("defaultLocale")?this.translateFunc(t,this.getPrivate("defaultLocale")):()=>""}translateAll(t,e){return this.isDefault()?t:c.map(t,(t=>this.translate(t,e)))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}var E=i(9770),O=i(3783),P=i(4102),S=i(6245),N=i(1112),C=i(2132),L=i(3145),A=i(3540),R=i(5040),U=i(9395);function B(t,e){null==t?requestAnimationFrame(e):setTimeout((()=>{requestAnimationFrame(e)}),1e3/t)}class F{constructor(t,e={},i){if(this._isDirty=!1,this._isDirtyParents=!1,this._isDirtyAnimation=!1,this._dirty={},this._dirtyParents={},this._dirtyBounds={},this._dirtyPositions={},this._ticker=null,this._tickers=[],this._updateTick=!0,this.skipRenderFrame=!1,this.events=new E.p,this.animationTime=null,this._animations=[],this.language=M.new(this,{}),this.locale=T.Z,this.utc=!1,this.numberFormatter=w.e.new(this,{}),this.dateFormatter=b.C.new(this,{}),this.durationFormatter=x.$.new(this,{}),this.tabindex=0,this._tabindexes=[],this._a11yD=!1,this._focusElementDirty=!1,this._skipNextGroupJump=!0,this.verticalLayout=a.Z.new(this,{}),this.horizontalLayout=o.G.new(this,{}),this.gridLayout=h.M.new(this,{}),this._paused=!1,this.autoResize=!0,this._fontHash="",this._isDisposed=!1,this._disposers=[],this._tooltips=[],this._htmlEnabledContainers=[],this.entitiesById={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");let s,n;if(this._settings=e,0==e.accessible&&(this._a11yD=!0),null==e.useSafeResolution&&(e.useSafeResolution=!0),e.useSafeResolution&&(s=u.getSafeResolution()),this._renderer=new P.uK(s),n=t instanceof HTMLElement?t:document.getElementById(t),c.each(L.i_.rootElements,(t=>{if(t.dom===n){if(!L.i_.autoDispose)throw new Error("You cannot have multiple Roots on the same DOM node");t.dispose()}})),this.interfaceColors=_.v.new(this,{}),null===n)throw new Error("Could not find HTML element with id `"+t+"`");this.dom=n;let r=document.createElement("div");r.style.position="relative",r.style.width="100%",r.style.height="100%",n.appendChild(r);const l=e.tooltipContainerBounds;l&&(this._tooltipContainerSettings=l),this._inner=r,this._updateComputedStyles(),L.i_.rootElements.push(this)}static new(t,e){const i=new F(t,e,!0);return i._init(),i}moveDOM(t){let e;if(e=t instanceof HTMLElement?t:document.getElementById(t),e){for(;this.dom.childNodes.length>0;)e.appendChild(this.dom.childNodes[0]);this.dom=e,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const t=this.dom.offsetWidth,e=this.dom.offsetHeight;t<=150||e<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const t=this.tooltipContainer.children.push(n.W.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:(0,S.aQ)(100),centerY:S.AQ,tooltipY:10,tooltipText:"Created using amCharts 5",tooltipX:S.AQ,cursorOverStyle:"pointer",background:y.A.new(this,{fill:(0,N.$_)(4671320),fillOpacity:0,tooltipY:5})}));t.set("tooltip",this.systemTooltip),t.events.on("click",(()=>{window.open("https://www.amcharts.com/","_blank")})),t.states.create("hover",{});const e=t.children.push(m.T.new(this,{stroke:(0,N.$_)(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6",dx:-50,strokeOpacity:0}));e.states.create("hover",{stroke:(0,N.$_)(3976191)});const i=t.children.push(m.T.new(this,{stroke:(0,N.$_)(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0",dx:50,strokeOpacity:0})),s=U.out(U.cubic),r=1500;t.setTimeout((()=>{i.animate({key:"strokeOpacity",to:1,duration:r,easing:s}),i.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"strokeOpacity",to:1,duration:r,easing:s})}),3e3),i.states.create("hover",{stroke:(0,N.$_)(4671320)}),this._logo=t,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(t){return this._settings.calculateSize?this._settings.calculateSize(t):{width:t.width,height:t.height}}_init(){const t=this._settings;!1!==t.accessible&&(t.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),t.ariaLabel&&this._inner.setAttribute("aria-label",t.ariaLabel),t.role&&this._inner.setAttribute("role",t.role));const e=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),r=Math.floor(s.width),o=Math.floor(s.height),a=Math.floor(i.width),h=Math.floor(i.height),l=n.W.new(this,{visible:!0,width:r,height:o});this._rootContainer=l,this._rootContainer._defaultThemes.push(O.X.new(this));const c=l.children.push(n.W.new(this,{visible:!0,width:S.AQ,height:S.AQ}));this.container=c,e.resize(a,h,r,o),this._inner.appendChild(e.view),this._initResizeSensor();const d=document.createElement("div");if(this._htmlElementContainer=d,d.className="am5-html-container",d.style.position="absolute",d.style.pointerEvents="none",this._tooltipContainerSettings||(d.style.overflow="hidden"),this._inner.appendChild(d),!0!==this._a11yD){const t=document.createElement("div");t.className="am5-reader-container",t.setAttribute("role","alert"),t.style.position="absolute",t.style.width="1px",t.style.height="1px",t.style.overflow="hidden",t.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=t,this._inner.appendChild(this._readerAlertElement);const i=document.createElement("div");i.className="am5-focus-container",i.style.position="absolute",i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.width=r+"px",i.style.height=o+"px",i.setAttribute("role","graphics-document"),u.setInteractive(i,!1),this._focusElementContainer=i,this._inner.appendChild(this._focusElementContainer);const s=document.createElement("div");this._tooltipElementContainer=s,s.className="am5-tooltip-container",this._inner.appendChild(s),u.supports("keyboardevents")&&(this._disposers.push(u.addEventListener(window,"keydown",(t=>{const e=u.getEventKey(t);"Shift"==e?this._isShift=!0:"Tab"==e&&(this._isShift=t.shiftKey)}))),this._disposers.push(u.addEventListener(window,"keyup",(t=>{"Shift"==u.getEventKey(t)&&(this._isShift=!1)}))),this._disposers.push(u.addEventListener(i,"click",(()=>{const t=this._focusedSprite;if(t){const i=t.get("clickAnnounceText","");""!==i&&this.readerAlert(i);const s=e.getEvent(new MouseEvent("click"));t.events.dispatch("click",{type:"click",originalEvent:s.event,point:s.point,simulated:!0,target:t})}}))),this._disposers.push(u.addEventListener(i,"keydown",(t=>{const i=this._focusedSprite;if(i){"Escape"==t.key&&(u.blur(),this._focusedSprite=void 0);let s=0,n=0;const r=u.getEventKey(t);switch(r){case"Enter":case" ":const o=i.get("clickAnnounceText","");if(""!==o&&this.readerAlert(o)," "==r&&"checkbox"!=i.get("role"))return;t.preventDefault();const a=e.getEvent(new MouseEvent("mouse"));return void i.events.dispatch("click",{type:"click",originalEvent:a.event,point:a.point,simulated:!0,target:i});case"ArrowLeft":s=-6;break;case"ArrowRight":s=6;break;case"ArrowUp":n=-6;break;case"ArrowDown":n=6;break;default:return}if(0!=s||0!=n){if(t.preventDefault(),!i.isDragging()){this._keyboardDragPoint={x:0,y:0};const t=e.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));t.point={x:0,y:0},i.events.isEnabled("pointerdown")&&i.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:t.event,point:t.point,simulated:!0,target:i})}const r=this._keyboardDragPoint;r.x+=s,r.y+=n;const o=e.getEvent(new MouseEvent("mousemove",{clientX:r.x,clientY:r.y}),!1);i.events.isEnabled("globalpointermove")&&i.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:o.event,point:o.point,simulated:!0,target:i})}}}))),this._disposers.push(u.addEventListener(i,"keyup",(t=>{if(this._focusedSprite){const i=this._focusedSprite,s=u.getEventKey(t);switch(s){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(i.isDragging()){const t=this._keyboardDragPoint,s=e.getEvent(new MouseEvent("mouseup",{clientX:t.x,clientY:t.y}));return i.events.isEnabled("globalpointerup")&&i.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:s.event,point:s.point,simulated:!0,target:i}),void(this._keyboardDragPoint=void 0)}if(i.get("focusableGroup")){const t=i.get("focusableGroup"),e=this._tabindexes.filter((e=>!(e.get("focusableGroup")!=t||!1===e.getPrivate("focusable")||!e.isVisibleDeep())));let n=e.indexOf(i);const r=e.length-1;n+="ArrowRight"==s||"ArrowDown"==s?1:-1,n<0?n=r:n>r&&(n=0),u.focus(e[n].getPrivate("focusElement").dom)}break;case"Tab":const t=i.get("focusableGroup");if(t&&this._isShift)return void(this._skipNextGroupJump||(this._focusNext(i.getPrivate("focusElement").dom,-1,t),this._skipNextGroupJump=!0))}}}))))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}get systemTooltip(){if(!this._systemTooltip){const t=v.u.new(this,{themeTags:["system"]});this._systemTooltip=t}return this._systemTooltip}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new f(this.dom,(()=>{this.autoResize&&this.resize()})),this._disposers.push(this._resizeSensorDisposer)}resize(){const t=this._getRealSize(),e=this._getCalculatedSize(t),i=Math.floor(e.width),s=Math.floor(e.height);if(i>0&&s>0){const e=Math.floor(t.width),n=Math.floor(t.height),r=this._htmlElementContainer;if(r.style.width=i+"px",r.style.height=s+"px",!0!==this._a11yD){const t=this._focusElementContainer;t.style.width=i+"px",t.style.height=s+"px"}this._renderer.resize(e,n,i,s);const o=this._rootContainer;o.setPrivate("width",i),o.setPrivate("height",s),this._render(),this._handleLogo()}}_render(){this.skipRenderFrame?this.skipRenderFrame=!1:(this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1))}_runTickers(t){c.each(this._tickers,(e=>{e(t)}))}_runAnimations(t){let e=0;return c.keepIf(this._animations,(i=>{const n=i._runAnimation(t);return n!==s.SR.Stopped&&(n!==s.SR.Playing||(++e,!0))})),this._isDirtyAnimation=!1,0===e}_runDirties(){let t={};for(;this._isDirtyParents;)this._isDirtyParents=!1,k.entries(this._dirtyParents).forEach((([e,i])=>{delete this._dirtyParents[e],i.isDisposed()||(t[i.uid]=i,i._prepareChildren())}));k.entries(t).forEach((([t,e])=>{e._updateChildren()}));const e=[];k.entries(this._dirty).forEach((([t,i])=>{i.isDisposed()?delete this._dirty[t]:(e.push(i),i._beforeChanged())})),e.forEach((t=>{t._changed(),delete this._dirty[t.uid],t._clearDirty()})),this._isDirty=!1;const i={},s=[];k.entries(this._dirtyBounds).forEach((([t,e])=>{delete this._dirtyBounds[t],e.isDisposed()||(i[e.uid]=e.depth(),s.push(e))})),this._positionHTMLElements(),s.sort(((t,e)=>A.qu(i[e.uid],i[t.uid]))),s.forEach((t=>{t._updateBounds()}));const n=this._dirtyPositions;k.entries(n).forEach((([t,e])=>{delete n[t],e.isDisposed()||e._updatePosition()})),e.forEach((t=>{t._afterChanged()})),k.entries(t).forEach((([t,e])=>{e._childrenPrep=!1,e._childrenUpdt=!1}))}_renderFrame(t){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:t}),this._checkComputedStyles(),this._runTickers(t);const e=this._runAnimations(t);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:t}),0===this._tickers.length&&e&&!this._isDirtyAnimation&&!this._isDirty}return!0}_runTicker(t,e){this.isDisposed()||(this.animationTime=t,this._renderFrame(t)?(this._ticker=null,this.animationTime=null):this._paused||(e?this._ticker:B(this.fps,this._ticker)))}_runTickerNow(t=1e4){if(!this.isDisposed()){const e=performance.now()+t;for(;;){const t=performance.now();if(t>=e){this.animationTime=null;break}if(this.animationTime=t,this._renderFrame(t)){this.animationTime=null;break}}}}_startTicker(){null===this._ticker&&(this.animationTime=null,this._ticker=t=>{this._runTicker(t)},B(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(t){this._updateTick=t,t&&this._startTicker()}_addDirtyEntity(t){this._isDirty=!0,void 0===this._dirty[t.uid]&&(this._dirty[t.uid]=t),this._startTicker()}_addDirtyParent(t){this._isDirty=!0,this._isDirtyParents=!0,void 0===this._dirtyParents[t.uid]&&(this._dirtyParents[t.uid]=t),this._startTicker()}_addDirtyBounds(t){this._isDirty=!0,void 0===this._dirtyBounds[t.uid]&&(this._dirtyBounds[t.uid]=t),this._startTicker()}_addDirtyPosition(t){this._isDirty=!0,void 0===this._dirtyPositions[t.uid]&&(this._dirtyPositions[t.uid]=t),this._startTicker()}_addAnimation(t){this._isDirtyAnimation=!0,-1===this._animations.indexOf(t)&&this._animations.push(t),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",(()=>{this._isDirty=!0,this._startTicker()}))}eachFrame(t){return this._tickers.push(t),this._startTicker(),new l.ku((()=>{c.removeFirst(this._tickers,t)}))}markDirtyGlobal(t){t||(t=this.container),t.walkChildren((t=>{t instanceof n.W&&this.markDirtyGlobal(t),t.markDirty(),t.markDirtyBounds()}))}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),c.each(this._disposers,(t=>{t.dispose()})),this._inner&&u.removeElement(this._inner),c.remove(L.i_.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(t){if(!0!==this._a11yD){const e=this._readerAlertElement;t=u.stripTags(t),e.innerHTML==t&&(e.innerHTML=""),e.innerHTML=t}}setThemes(t){this._rootContainer.set("themes",t);const e=this.tooltipContainer;e&&e._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const t=this._tooltipContainerSettings,e=this._rootContainer.children.push(n.W.new(this,{position:"absolute",isMeasured:!1,width:S.AQ,height:S.AQ,layer:t?35:30,layerMargin:t||void 0}));this.tooltipContainer=e;const i=v.u.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(t){1!=this._a11yD&&(t.get("focusable")?c.pushOne(this._tabindexes,t):c.remove(this._tabindexes,t),this._invalidateTabindexes())}_unregisterTabindexOrder(t){1!=this._a11yD&&(c.remove(this._tabindexes,t),this._invalidateTabindexes())}_invalidateTabindexes(){if(1==this._a11yD)return;this._tabindexes.sort(((t,e)=>{const i=t.get("tabindexOrder",0),s=e.get("tabindexOrder",0);return i==s?0:i>s?1:-1}));const t=[];c.each(this._tabindexes,((e,i)=>{e.getPrivate("focusElement")?this._moveFocusElement(i,e):this._makeFocusElement(i,e);const s=e.get("focusableGroup");s&&!1!==e.getPrivate("focusable")&&(-1!==t.indexOf(s)?e.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):t.push(s))}))}_updateCurrentFocus(){1!=this._a11yD&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(t,e){if(1==this._a11yD)return;if(e||(e=t.getPrivate("focusElement").dom),!e)return;const i=t.get("role");i?e.setAttribute("role",i):e.removeAttribute("role");const s=t.get("ariaLabel");if(s){const i=(0,C.q)(t,s);e.setAttribute("aria-label",i)}else e.removeAttribute("aria-label");const n=t.get("ariaLive");n?e.setAttribute("aria-live",n):e.removeAttribute("aria-live");const r=t.get("ariaChecked");null!=r&&i&&-1!==["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)?e.setAttribute("aria-checked",r?"true":"false"):e.removeAttribute("aria-checked");const o=t.get("ariaCurrent");null!=o?e.setAttribute("aria-current",o):e.removeAttribute("aria-current");const a=t.get("ariaSelected");null!=a&&i&&-1!==["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)?e.setAttribute("aria-selected",a?"true":"false"):e.removeAttribute("aria-selected"),t.get("ariaHidden")?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden");const h=t.get("ariaOrientation");h?e.setAttribute("aria-orientation",h):e.removeAttribute("aria-orientation");const l=t.get("ariaValueNow");l?e.setAttribute("aria-valuenow",l):e.removeAttribute("aria-valuenow");const c=t.get("ariaValueMin");c?e.setAttribute("aria-valuemin",c):e.removeAttribute("aria-valuemin");const u=t.get("ariaValueMax");u?e.setAttribute("aria-valuemax",u):e.removeAttribute("aria-valuemax");const d=t.get("ariaValueText");d?e.setAttribute("aria-valuetext",d):e.removeAttribute("aria-valuetext");const p=t.get("ariaControls");p?e.setAttribute("aria-controls",p):e.removeAttribute("aria-controls"),t.get("visible")&&0!==t.get("opacity")&&"tooltip"!=t.get("role")&&!t.isHidden()&&!1!==t.getPrivate("focusable")&&(t.height()||t.width())?("-1"!=e.getAttribute("tabindex")&&e.setAttribute("tabindex",""+this.tabindex),e.removeAttribute("aria-hidden")):(e.removeAttribute("tabindex"),e.setAttribute("aria-hidden","true"))}_makeFocusElement(t,e){if(e.getPrivate("focusElement")||1==this._a11yD)return;const i=document.createElement("div");"tooltip"!=e.get("role")&&(i.tabIndex=this.tabindex),i.style.position="absolute",u.setInteractive(i,!1);const s=[];e.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(e),s.push(u.addEventListener(i,"focus",(t=>{this._handleFocus(t)}))),s.push(u.addEventListener(i,"blur",(t=>{this._handleBlur(t)}))),this._moveFocusElement(t,e)}_removeFocusElement(t){if(1==this._a11yD)return;c.remove(this._tabindexes,t);const e=t.getPrivate("focusElement");e&&(this._focusElementContainer.removeChild(e.dom),c.each(e.disposers,(t=>{t.dispose()})))}_hideFocusElement(t){1!=this._a11yD&&(t.getPrivate("focusElement").dom.style.display="none")}_moveFocusElement(t,e){if(1==this._a11yD)return;const i=this._focusElementContainer,s=e.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[t])return;const n=this._focusElementContainer.children[t+1];n?i.insertBefore(s,n):i.append(s)}_positionFocusElement(t){if(1==this._a11yD||null==t)return;this._focusElementContainer.scrollTop=0;const e=t.globalBounds();let i=e.right==e.left?t.width():e.right-e.left,s=e.top==e.bottom?t.height():e.bottom-e.top;const n=void 0!==this._settings.focusPadding?this._settings.focusPadding:2;let r=e.left-n,o=e.top-n;i<0&&(r+=i,i=Math.abs(i)),s<0&&(o+=s,s=Math.abs(s));const a=t.getPrivate("focusElement").dom;a.style.top=o+"px",a.style.left=r+"px",a.style.width=i+2*n+"px",a.style.height=s+2*n+"px"}_getSpriteByFocusElement(t){let e;return c.eachContinue(this._tabindexes,((i,s)=>i.getPrivate("focusElement").dom!==t||(e=i,!1))),e}_handleFocus(t){if(1==this._a11yD)return;const e=this._getSpriteByFocusElement(t.target);e&&(e.isVisibleDeep()?(this._positionFocusElement(e),this._focusedSprite=e,e.events.isEnabled("focus")&&e.events.dispatch("focus",{type:"focus",originalEvent:t,target:e}),-1==e.getPrivate("focusElement").dom.tabIndex&&(this._skipNextGroupJump=!1)):this._focusNext(t.target,this._isShift?-1:1))}_focusNext(t,e,i){if(1==this._a11yD)return;const s=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(",")));let n=s.indexOf(t)+e;n<0?n=s.length-1:n>=s.length&&(n=0);const r=s[n];if(i&&-1==e){const t=this._getSpriteByFocusElement(r);if(t&&t.get("focusableGroup")==i)return void this._focusNext(r,e)}r.focus()}_handleBlur(t){if(1==this._a11yD)return;const e=this._focusedSprite;e&&!e.isDisposed()&&e.events.isEnabled("blur")&&e.events.dispatch("blur",{type:"blur",originalEvent:t,target:e}),this._focusedSprite=void 0}updateTooltip(t){if(1==this._a11yD)return;const e=u.stripTags(t._getText());let i=t.getPrivate("tooltipElement");"tooltip"==t.get("role")&&""!=e?(i||(i=this._makeTooltipElement(t)),i.innerHTML!=e&&(i.innerHTML=e),i.setAttribute("aria-hidden",t.isVisibleDeep()?"false":"true")):i&&(i.remove(),t.removePrivate("tooltipElement"))}_makeTooltipElement(t){const e=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",u.setInteractive(i,!1),this._decorateFocusElement(t,i),e.append(i),t.setPrivate("tooltipElement",i),i}_removeTooltipElement(t){if(1==this._a11yD)return;const e=t.getPrivate("tooltipElement");if(e){const t=e.parentElement;t&&t.removeChild(e)}}_invalidateAccessibility(t){if(1==this._a11yD)return;this._focusElementDirty=!0;const e=t.getPrivate("focusElement");t.get("focusable")?e&&(this._decorateFocusElement(t),this._positionFocusElement(t)):e&&this._removeFocusElement(t)}focused(t){return this._focusedSprite===t}documentPointToRoot(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:(t.x-e.left)*s,y:(t.y-e.top)*n}}rootPointToDocument(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:t.x/s+e.left,y:t.y/n+e.top}}addDisposer(t){return this._disposers.push(t),t}_updateComputedStyles(){const t=window.getComputedStyle(this.dom);let e="";k.each(t,((t,i)=>{R.isString(t)&&t.match(/^font/)&&(e+=i)}));const i=e!=this._fontHash;return i&&(this._fontHash=e),i}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(t){t instanceof n.W?t.children.each((t=>{this._invalidateLabelBounds(t)})):t instanceof r.x&&t.markDirtyBounds()}_hasLicense(){for(let t=0;t{if(t.get("verticalScrollbar"))return r=!0,s=t,!1})),r&&(n=document.createElement("div"),t.setPrivate("htmlElementWrapper",n),t.setPrivate("wrapperContainer",s),n.style.position="absolute",n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",s.events.on("boundschanged",(()=>{this._positionHTMLElement(t)}))),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",u.setInteractive(i,t.get("interactive",!1)),t.events.isEnabled("click")&&(u.setInteractive(i,!0),this._disposers.push(u.addEventListener(i,"click",(e=>{const i=this._renderer.getEvent(e);t.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))),this._positionHTMLElement(t),r?(n.append(i),e.append(n)):e.append(i),c.pushOne(this._htmlEnabledContainers,t),i}_positionHTMLElements(){c.each(this._htmlEnabledContainers,(t=>{this._positionHTMLElement(t)}))}_positionHTMLElement(t){const e=t.getPrivate("htmlElementWrapper");if(e){const i=t.getPrivate("wrapperContainer");if(i){const t=i.globalBounds();e.style.clipPath="rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"}}const i=t.getPrivate("htmlElement");if(i){const e=["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"];c.each(e,(e=>{const s=t.get(e);i.style[e]=s?s+"px":""}));const s=["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"];c.each(s,(e=>{const s=t.get(e);s?"fontSize"!=e||R.isString(s)?i.style[e]=s+"":i.style[e]=s+"px":i.style[e]=""}));const n=t.compositeScale()||1,r=t.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";const o=t.compositeOpacity();setTimeout((()=>{i.style.opacity=o+""}),10);const a=t.isVisibleDeep();a&&(i.style.display="block");let h={x:t.x()+t.get("dx",0),y:t.y()+t.get("dy",0)};t.parent&&(h=t.parent.toGlobal(h)),i.style.top=h.y+"px",i.style.left=h.x+"px";const l=t.get("width"),u=t.get("height");let d=0,p=0;if(l&&(d=t.width()),u&&(p=t.height()),!l||!u){i.style.position="fixed",i.style.width="",i.style.height="";const e=i.getBoundingClientRect();i.style.position="absolute",l||(d=e.width),u||(p=e.height);let s=d/n,r=p/n,o=t.get("centerX",0),a=t.get("centerY",0),h=0,c=0,g=0,f=0;o instanceof S.gG?(h=-o.value*s,c=(1-o.value)*s):(h=-o,c=s-o),a instanceof S.gG?(g=-a.value*r,f=(1-a.value)*r):(g=-a,f=r-a),t._localBounds={left:h,right:c,top:g,bottom:f};let _=t._adjustedLocalBounds,m=t._display.getAdjustedBounds(t._localBounds);t._adjustedLocalBounds=m,_.left===m.left&&_.right===m.right&&_.top===m.top&&_.bottom===m.bottom||t.markDirtyBounds()}d>0&&(i.style.minWidth=d+"px"),p>0&&(i.style.minHeight=p+"px"),a&&0!=o||(i.style.display="none");const g=t.get("centerX",0),f=(0,S.hU)(g)?g.percent+"%":g+"px",_=t.get("centerY",0),m=(0,S.hU)(_)?_.percent+"%":_+"px";(g||_)&&(i.style.transform="translate(-"+f+", -"+m+")"+i.style.transform),1!=n&&(i.style.transform+="scale("+n+")"),0!=r&&(i.style.transform+=" rotate("+r+"deg)"),""!=i.style.transform&&(i.style.transformOrigin=f+" "+m)}}_setHTMLContent(t,e){let i=t.getPrivate("htmlElement");i||(i=this._makeHTMLElement(t),this.autoResize||this.resize()),i.innerHTML!=e&&(i.innerHTML=e)}_removeHTMLContent(t){const e=t.getPrivate("htmlElementWrapper"),i=t.getPrivate("htmlElement");e?(this._htmlElementContainer.removeChild(e),t.removePrivate("htmlElement"),t.removePrivate("htmlElementWrapper"),t.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),t.removePrivate("htmlElement"),t.removePrivate("wrapperContainer")),c.remove(this._htmlEnabledContainers,t)}}},3409:function(t,e,i){"use strict";i.d(e,{Q:function(){return o}});var s=i(5769),n=i(3540),r=i(5071);class o{constructor(t,e){if(this._rules={},this._root=t,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(t){const e=new this(t,!0);return e.setupDefaultRules(),e}setupDefaultRules(){}_lookupRules(t){return this._rules[t]}ruleRaw(t,e=[]){let i=this._rules[t];i||(i=this._rules[t]=[]),e.sort(n.qu);const{index:o,found:a}=r.getSortedIndex(i,(t=>{const i=n.qu(t.tags.length,e.length);return 0===i?n.wq(t.tags,e,n.qu):i}));if(a)return i[o].template;{const t=s.YS.new({});return i.splice(o,0,{tags:e,template:t}),t}}rule(t,e=[]){return this.ruleRaw(t,e)}}},5108:function(t,e,i){"use strict";i.d(e,{g:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){const t=this.get("sprite");t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}}n.className="Bullet",n.classNames=s.JH.classNames.concat([n.className])},8054:function(t,e,i){"use strict";i.d(e,{z:function(){return o}});var s=i(3497),n=i(8777),r=i(7652);class o extends n.W{_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",s.c.new(this._root,{themeTags:r.mergeTags(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const t=this._prevSettings.icon,e=this.get("icon");e!==t&&(this._disposeProperty("icon"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.icon=e)}if(this.isDirty("label")){const t=this._prevSettings.label,e=this.get("label");e!==t&&(this._disposeProperty("label"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.label=e)}}}o.className="Button",o.classNames=n.W.classNames.concat([o.className])},1337:function(t,e,i){"use strict";i.d(e,{k:function(){return r}});var s=i(8777),n=i(6245);class r extends s.W{constructor(){super(...arguments),this.chartContainer=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,interactiveChildren:!1})),this.bulletsContainer=s.W.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:n.AQ,height:n.AQ})}}r.className="Chart",r.classNames=s.W.classNames.concat([r.className])},8035:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,Math.abs(this.get("radius",10)))}}n.className="Circle",n.classNames=s.T.classNames.concat([n.className])},9361:function(t,e,i){"use strict";i.d(e,{w:function(){return c},z:function(){return l}});var s=i(7582),n=i(6331),r=i(8777),o=i(9582),a=i(5071),h=i(256);class l extends n.Zr{constructor(t,e,i){super(i),this.dataContext=e,this.component=t,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(t){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,t)}hide(t){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,t)}isHidden(){return!this.get("visible")}}class c extends r.W{constructor(){super(...arguments),this._data=new o.k,this._dataItems=[],this._mainDataItems=this._dataItems,this.valueFields=[],this.fields=["id"],this._valuesDirty=!1,this._dataChanged=!1,this._dataGrouped=!1,this.inited=!1}set data(t){t.incrementRef(),this._data.decrementRef(),this._data=t}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((t=>{const e=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===t.type)a.each(e,(t=>{t.dispose()})),e.length=0,this._onDataClear();else if("push"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.push(i),this.processDataItem(i)}else if("setIndex"===t.type){const i=e[t.index],s=this._makeDataItem(t.newValue);i.bullets&&0==i.bullets.length&&(i.bullets=void 0),h.entries(s).forEach((([t,e])=>{i.get(t)!=e&&i.animate({key:t,to:e,duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})})),i.dataContext=t.newValue}else if("insertIndex"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.splice(t.index,0,i),this.processDataItem(i)}else if("removeIndex"===t.type)e[t.index].dispose(),e.splice(t.index,1);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");{const i=e[t.oldIndex];e.splice(t.oldIndex,1),e.splice(t.newIndex,0,i)}}this._afterDataChange()})))}_postUpdateData(){}updateData(t){let e=0;a.each(t,((t,i)=>{const s=this.dataItems[i];if(s){const e=s.dataContext;e&&h.entries(t).forEach((([t,i])=>{e[t]=i}));const i=this._makeDataItem(e);h.entries(i).forEach((([t,e])=>{var i;if(s.get(t)!=e){s.set(t,e);const n=null===(i=this._valueFieldsF[t])||void 0===i?void 0:i.workingKey;n&&s.set(n,e)}}))}else this.data.push(t);e=i}));for(let t=this.dataItems.length-1;t>e;t--){const e=this.dataItems[t];a.remove(this.dataItems,e),e.dispose()}this._postUpdateData()}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},a.each(this.valueFields,(t=>{this.get(t+"Field")&&(this._valueFields.push(t),this._valueFieldsF[t]={fieldKey:t+"Field",workingKey:t+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},a.each(this.fields,(t=>{this.get(t+"Field")&&(this._fields.push(t),this._fieldsF[t]=t+"Field")})))}get dataItems(){return this._dataItems}processDataItem(t){}_makeDataItem(t){const e={};return this._valueFields&&a.each(this._valueFields,(i=>{const s=this.get(this._valueFieldsF[i].fieldKey);e[i]=t[s],e[this._valueFieldsF[i].workingKey]=e[i]})),this._fields&&a.each(this._fields,(i=>{const s=this.get(this._fieldsF[i]);e[i]=t[s]})),e}makeDataItem(t,e){let i=new l(this,e,t);return this.processDataItem(i),i}pushDataItem(t,e){const i=this.makeDataItem(t,e);return this._mainDataItems.push(i),i}disposeDataItem(t){}showDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!0)}))}hideDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const t="datavalidated";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this._dataChanged=!1}if(this._valuesDirty){const t="valueschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.inited=!0}markDirtyValues(t){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}getDataItemById(t){return a.find(this.dataItems,(e=>e.get("id")==t))}}c.className="Component",c.classNames=r.W.classNames.concat([c.className])},2936:function(t,e,i){"use strict";i.d(e,{p:function(){return r}});var s=i(8054),n=i(7652);class r extends s.z{_afterNew(){super._afterNew(),this.addTag("confirm"),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{const e=n.getEventKey(t);this.get("active")&&"Escape"==e&&this._cancel()}))),this._disposers.push(n.addEventListener(document,"click",(()=>{this._ignoreClick||this._cancel(),this._ignoreClick=!1}))),this.events.on("click",(()=>{this.get("active")||(this._ignoreClick=!0),this._confirm()}))}_cancel(){this.get("active")&&(this.events.dispatch("cancelled",{type:"cancelled",target:this}),this.set("active",!1))}_confirm(){this.get("active")&&(this.events.dispatch("confirmed",{type:"confirmed",target:this}),this.set("active",!1),this.isFocus()&&this.setTimeout((()=>{this.set("active",!1),n.blur()}),10))}_prepareChildren(){super._prepareChildren()}}r.className="ConfirmButton",r.classNames=s.z.classNames.concat([r.className])},8777:function(t,e,i){"use strict";i.d(e,{W:function(){return f}});var s=i(7144),n=i(5071);class r extends s.aV{constructor(t){super(),this._disposed=!1,this._container=t,this._events=this.events.onAll((t=>{if("clear"===t.type)n.each(t.oldValues,(t=>{this._onRemoved(t)}));else if("push"===t.type)this._onInserted(t.newValue);else if("setIndex"===t.type)this._onRemoved(t.oldValue),this._onInserted(t.newValue,t.index);else if("insertIndex"===t.type)this._onInserted(t.newValue,t.index);else if("removeIndex"===t.type)this._onRemoved(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");this._onRemoved(t.value),this._onInserted(t.value,t.newIndex)}}))}_onInserted(t,e){t._setParent(this._container,!0);const i=this._container._childrenDisplay;void 0===e?i.addChild(t._display):i.addChildAt(t._display,e)}_onRemoved(t){this._container._childrenDisplay.removeChild(t._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),n.each(this.values,(t=>{t.dispose()})))}}var o=i(6245),a=i(4596),h=i(7142),l=i(4431),c=i(1706),u=i(6881),d=i(2132),p=i(5040),g=i(7652);class f extends a.j{constructor(){super(...arguments),this._display=this._root._renderer.makeContainer(),this._childrenDisplay=this._root._renderer.makeContainer(),this.children=new r(this),this._percentageSizeChildren=[],this._percentagePositionChildren=[],this._prevWidth=0,this._prevHeight=0,this._contentWidth=0,this._contentHeight=0,this._childrenPrep=!1,this._childrenUpdt=!1}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){n.eachReverse(this.allChildren(),(t=>{t.dispose()})),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_beforeChanged(){this._childrenPrep||this._prepareChildren(),this._childrenUpdt||this._updateChildren(),super._beforeChanged()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each((t=>{t.removePrivate("x"),t.removePrivate("y")}))),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each((t=>{t.markDirtyPosition()})),this.isDirty("maskContent")){const t=this._childrenDisplay;let e=this._contentMask;this.get("maskContent")?e||(e=h.A.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=e,t.addChildAt(e._display,0),t.mask=e._display):e&&(t.removeChild(e._display),t.mask=null,e.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),n.each(this._percentageSizeChildren,(t=>{t._updateSize()})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t._updateSize()})),this.updateBackground()}updateBackground(){const t=this.get("background");let e=this._localBounds;if(e&&!this.isHidden()){let i=e.left,s=e.top,n=e.right-i,r=e.bottom-s,o=this.get("maxWidth"),a=this.get("maxHeight");a&&r>a&&(r=a),o&&n>o&&(n=o);let h=this.width(),l=this.height();t&&(t.setAll({width:n,height:r,x:i,y:s}),this._display.interactive&&(t._display.interactive=!0));const c=this._contentMask;c&&c.setAll({width:h+1,height:l+1});const u=this.get("verticalScrollbar");if(u){u.set("height",l),u.set("x",h-u.width()-u.get("marginRight",0)),u.set("end",u.get("start",0)+l/this._contentHeight);const t=u.get("background");t&&t.setAll({width:u.width(),height:l});let e=!0;this._contentHeight<=l&&(e=!1),u.setPrivate("visible",e)}}}_applyThemes(t=!1){return!!super._applyThemes(t)&&(this.eachChildren((e=>{e._applyThemes(t)})),!0)}_applyState(t){super._applyState(t),this.get("setStateOnChildren")&&this.eachChildren((e=>{e.states.apply(t)}))}_applyStateAnimated(t,e){super._applyStateAnimated(t,e),this.get("setStateOnChildren")&&this.eachChildren((i=>{i.states.applyAnimate(t,e)}))}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let t=this._localBounds;t&&(this._contentWidth=t.right-t.left,this._contentHeight=t.bottom-t.top)}else{let t=this.get("width"),e=this.get("height"),i=this.getPrivate("width"),s=this.getPrivate("height"),n={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),o=!1,a=!1;if((r instanceof l.G||r instanceof u.M)&&(o=!0),r instanceof c.Z&&(a=!0),null==t&&null==i||null==e&&null==s||this.get("verticalScrollbar")){let t=Number.MAX_VALUE,e=t,i=-t,s=t,r=-t;const h=this.get("paddingLeft",0),l=this.get("paddingTop",0),c=this.get("paddingRight",0),u=this.get("paddingBottom",0);this.children.each((t=>{if("absolute"!=t.get("position")&&t.get("isMeasured")){let n=t.adjustedLocalBounds(),h=t.x(),l=t.y(),c=h+n.left,u=h+n.right,d=l+n.top,p=l+n.bottom;o&&(c-=t.get("marginLeft",0),u+=t.get("marginRight",0)),a&&(d-=t.get("marginTop",0),p+=t.get("marginBottom",0)),ci&&(i=u),dr&&(r=p)}})),e==t&&(e=0),i==-t&&(i=0),s==t&&(s=0),r==-t&&(r=0),n.left=e-h,n.top=s-l,n.right=i+c,n.bottom=r+u;const d=this.get("minWidth");p.isNumber(d)&&d>0&&n.right-n.left=d?n.left=n.right-d:n.right=n.left+d);const g=this.get("minHeight");p.isNumber(g)&&g>0&&n.bottom-n.top=g?n.top=n.bottom-g:n.bottom=n.top+g)}this._contentWidth=n.right-n.left,this._contentHeight=n.bottom-n.top,p.isNumber(t)&&(n.left=0,n.right=t),p.isNumber(i)&&(n.left=0,n.right=i),p.isNumber(e)&&(n.top=0,n.bottom=e),p.isNumber(s)&&(n.top=0,n.bottom=s),this._localBounds=n}}_updateBounds(){const t=this.get("layout");t&&t.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){this._childrenPrep=!0;const t=this.innerWidth(),e=this.innerHeight();if(t!=this._prevWidth||e!=this._prevHeight){let i=this.get("layout"),s=!1,r=!1;i&&((i instanceof l.G||i instanceof u.M)&&(s=!0),i instanceof c.Z&&(r=!0)),n.each(this._percentageSizeChildren,(i=>{if(!s){let e=i.get("width");e instanceof o.gG&&i.setPrivate("width",e.value*t)}if(!r){let t=i.get("height");t instanceof o.gG&&i.setPrivate("height",t.value*e)}})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t.markDirtyBounds()})),this._prevWidth=t,this._prevHeight=e,this._sizeDirty=!0,this.updateBackground()}}_updateHTMLContent(){const t=this.get("html","");t&&""!==t?this._root._setHTMLContent(this,(0,d.q)(this,t)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(t){const e=this.get("verticalScrollbar");if(e){let i=t.y(),s=this.innerHeight(),n=t.height(),r=this._contentHeight,o=1-(s-n/2)/r;if(i+.7*n+this._childrenDisplay.y>s||i-.3*n+this._childrenDisplay.y<0){let t=Math.max(0,Math.min(o,(i-n/2)/r));e.animate({key:"start",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")})}}}_updateChildren(){if(this._childrenUpdt=!0,this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){const t=this.get("verticalScrollbar");if(t){t._setParent(this),t.startGrip.setPrivate("visible",!1),t.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",t.width()+t.get("marginRight",0)+t.get("marginLeft",0));let e=this.get("background");e||(e=this.set("background",h.A.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",(e=>{const i=e.originalEvent;if(!g.isLocalEvent(i,this))return;i.preventDefault();let s=i.deltaY/5e3;const n=t.get("start",0),r=t.get("end",1);n+s<=0&&(s=-n),r+s>=1&&(s=1-r),n+s>=0&&r+s<=1&&(t.set("start",n+s),t.set("end",r+s))})),this._disposers.push(this._vsbd0),this._vsbd1=t.events.on("rangechanged",(()=>{let e=this._contentHeight;const i=this._childrenDisplay,s=this._contentMask;i.y=-t.get("start",0)*e,i.markDirtyLayer(),s&&(s._display.y=-i.y,i.mask=s._display)})),this._disposers.push(this._vsbd1),this._display.addChild(t._display)}else{const t=this._prevSettings.verticalScrollbar;t&&(this._display.removeChild(t._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose(),this._childrenDisplay.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0))}}if(this.isDirty("background")){const t=this._prevSettings.background;t&&this._display.removeChild(t._display);const e=this.get("background");e instanceof a.j&&(e.set("isMeasured",!1),e._setParent(this),this._display.addChildAt(e._display,0))}if(this.isDirty("mask")){const t=this.get("mask"),e=this._prevSettings.mask;if(e&&(this._display.removeChild(e._display),e!=t&&e.dispose()),t){const e=t.parent;e&&e.children.removeValue(t),t._setParent(this),this._display.addChildAt(t._display,0),this._childrenDisplay.mask=t._display}}}_processTemplateField(){super._processTemplateField(),this.children.each((t=>{t._processTemplateField()}))}walkChildren(t){this.children.each(((e,i)=>{e instanceof f&&e.walkChildren(t),t(e,i)}))}eachChildren(t){const e=this.get("background");e&&t(e);const i=this.get("verticalScrollbar");i&&t(i);const s=this.get("mask");s&&t(s),this.children.values.forEach((e=>{t(e)}))}allChildren(){const t=[];return this.eachChildren((e=>{t.push(e)})),t}_setDataItem(t){const e=t!==this._dataItem;super._setDataItem(t);const i=this.get("html","");i&&""!==i&&e&&this._root._setHTMLContent(this,(0,d.q)(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}}f.className="Container",f.classNames=a.j.classNames.concat([f.className])},6691:function(t,e,i){"use strict";i.d(e,{Y:function(){return d}});var s=i(962),n=i(8777),r=i(3497),o=i(6245),a=i(1112),h=i(7449),l=i(7652),c=i(5040),u=i(5071);class d extends s._{_afterNew(){super._afterNew();const t=this.children.push(n.W.new(this._root,{html:'',isMeasured:!1}));t.hide(),this.setPrivate("input",t);let e=this.get("background");e?e.set("themeTags",["editablelabel","background"]):e=this.set("background",r.c.new(this._root,{themeTags:["editablelabel","background"]}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();const t=this.get("editOn","click");"none"!=t&&(this._editOnEvents=new h.FV([this.getPrivate("input").events.on(t,(t=>{})),this.events.on(t,(t=>{this.set("active",!0)}))]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){const t=this.get("active",!1);t?this._startEditing():this._stopEditing();const e=this.get("background");e&&e.set("active",t)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){const t=this.getPrivate("input");if(t&&t.getPrivate("htmlElement")){const e=t.getPrivate("htmlElement").querySelector(".am5-editable-label");e&&(this.setPrivate("textarea",e),e.addEventListener("input",(t=>{!1===this.get("multiLine")&&(e.value=e.value.replace(/\n/g," ")),this.set("text",e.value),this._syncStyle()})),e.addEventListener("blur",(t=>this.set("active",!1))),l.supports("keyboardevents")&&this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Escape"==l.getEventKey(t)&&this.set("active",!1)}))),this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Enter"==l.getEventKey(t)&&!1===this.get("multiLine")&&(t.preventDefault(),this.set("active",!1))}))),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._startEditing()}));this._text.set("opacity",0);const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(""==this.get("text","")&&this.set("text"," "),t.show(0),this.setTimeout((()=>{this._syncStyle(),e.focus()}),100))}_stopEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._stopEditing()}));const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(this.set("text",e.value),t.hide(0),this._text.set("opacity",1))}_syncStyle(){const t=this.getPrivate("input"),e=this.getPrivate("textarea"),i=t.getPrivate("htmlElement");if(e&&i){const t=window.getComputedStyle(e);u.each(t,(t=>{e.style[t]="initial"})),e.style.color=this.get("fill",(0,a.$_)(0)).toCSS(this.get("fillOpacity",1)),e.style.backgroundColor="rgba(0, 0, 0, 0)",e.style.border="none",e.style.outline="none",e.style.padding="0",e.wrap="off",e.style.resize="none",e.style.overflow="hidden";const s=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);s>0?e.style.maxWidth=s+"px":e.style.minWidth="",e.style.height="auto",e.style.minHeight=e.scrollHeight+"px",this.get("width")&&(e.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",e.style.minWidth="");const n=this.get("lineHeight");n?n instanceof o.gG?e.style.lineHeight=n.value+"":c.isNumber(n)&&(e.style.lineHeight=n+""):e.style.lineHeight="1.2";let r=this.get("fontFamily");r||(r=getComputedStyle(i,"font-family").getPropertyValue("font-family")),e.style.fontFamily=r;let h=this.get("fontSize");h?c.isNumber(h)&&(h+="px"):h=getComputedStyle(i,"font-size").getPropertyValue("font-size"),e.style.fontSize=h;let l=this.get("fontWeight");l||(l=getComputedStyle(i,"font-weight").getPropertyValue("font-weight")),e.style.fontWeight=l;let d=this.get("fontStyle");d||(d=getComputedStyle(i,"font-style").getPropertyValue("font-style")),e.style.fontStyle=d;const p=this.get("oversizedBehavior");e.style.whiteSpace="wrap"==p?"pre-wrap":"nowrap",this._root.events.on("frameended",(()=>{""==e.style.minWidth&&(e.style.minWidth=e.scrollWidth+20+"px");const t=this.get("textAlign","start");"center"==t?(e.style.textAlign="center",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-50%)")):"end"==t?(e.style.textAlign="right",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-100%)")):e.style.textAlign=t}))}}_syncText(){const t=this.getPrivate("textarea");let e=this.get("text","");" "==e&&(e=""),t&&(t.value=e)}}d.className="EditableLabel",d.classNames=s._.classNames.concat([d.className])},2433:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radiusX")||this.isDirty("radiusY")||this.isDirty("rotation"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawEllipse(0,0,Math.abs(this.get("radiusX")),Math.abs(this.get("radiusY")))}}n.className="Ellipse",n.classNames=s.T.classNames.concat([n.className])},1479:function(t,e,i){"use strict";i.d(e,{T:function(){return l},u:function(){return h}});var s=i(4429),n=i(4596),r=i(4680),o=i(5040),a=i(5071);const h=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"];class l extends n.j{constructor(){super(...arguments),this._display=this._root._renderer.makeGraphics(),this._clear=!1}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const t=this.get("fillGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("fill")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("fill")}))))}}if(this.isDirty("strokeGradient")){const t=this.get("strokeGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("stroke")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("stroke")}))))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let t=this.get("strokeDasharray");o.isNumber(t)&&(t=t<.5?[0]:[t]),this._display.setLineDash(t);const e=this.get("strokeDashoffset");e&&this._display.setLineDashOffset(e);const i=this.get("blendMode",r.b.NORMAL);this._display.blendMode=i;const s=this.get("draw");s&&"function"==typeof s&&s(this._display,this);const n=this.get("svgPath");null!=n&&this._display.svgPath(n)}}_afterChanged(){if(super._afterChanged(),this._clear){const t=this.get("fill"),e=this.get("fillGradient"),i=this.get("fillPattern"),n=this.get("fillOpacity"),r=this.get("stroke"),o=this.get("strokeGradient"),h=this.get("strokePattern"),l=this.get("shadowColor"),c=this.get("shadowBlur"),u=this.get("shadowOffsetX"),d=this.get("shadowOffsetY"),p=this.get("shadowOpacity");if(l&&(c||u||d)&&this._display.shadow(l,c,u,d,p),t&&!e&&(this._display.beginFill(t,n),this._display.endFill()),e){if(t){const i=e.get("stops",[]);i.length&&a.each(i,(e=>{e.color&&!e.colorInherited||!t||(e.color=t,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=n,e.opacityInherited=!0)}))}const i=e.getFill(this);i&&(this._display.beginFill(i,n),this._display.endFill())}if(i){const t=i.pattern;t&&(this._display.beginFill(t,n),this._display.endFill(),i instanceof s.v&&i.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}if(r||o||h){const t=this.get("strokeOpacity");let e=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(e/=this.get("scale",1)),this.get("crisp")&&(e/=this._root._renderer.resolution);const i=this.get("lineJoin"),n=this.get("lineCap");if(r&&!o&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke()),o){const s=o.get("stops",[]);s.length&&a.each(s,(e=>{e.color&&!e.colorInherited||!r||(e.color=r,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=t,e.opacityInherited=!0)}));const h=o.getFill(this);h&&(this._display.lineStyle(e,h,t,i,n),this._display.endStroke())}if(h){let r=h.pattern;r&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke(),h instanceof s.v&&h.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}l.className="Graphics",l.classNames=n.j.classNames.concat([l.className])},6881:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var s=i(2010),n=i(5071),r=i(751);class o extends s.A{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(t){let e=t.get("paddingLeft",0),i=t.get("paddingRight",0),n=t.get("paddingTop",0),o=t.maxWidth()-e-i,a=o,h=1;(0,s.j)(t,(t=>{if(t.get("visible")&&t.getPrivate("visible")&&!t.get("forceHidden")&&"absolute"!=t.get("position")){let e=t.width();eh&&(h=e)}})),a=r.fitToRange(a,1,o),h=r.fitToRange(h,1,o);let l=1;l=this.get("fixedWidthGrid")?o/h:o/a,l=Math.max(1,Math.floor(l)),l=Math.min(this.get("maxColumns",Number.MAX_VALUE),l);let c=this.getColumnWidths(t,l,h,o),u=n,d=0,p=0;l=c.length;let g=e;(0,s.j)(t,(t=>{if("relative"==t.get("position")&&t.isVisible()){const i=t.get("marginTop",0),s=t.get("marginBottom",0);let n=t.adjustedLocalBounds(),r=t.get("marginLeft",0),o=t.get("marginRight",0),a=g+r-n.left,h=u+i-n.top;t.setPrivate("x",a),t.setPrivate("y",h),g+=c[d]+o,p=Math.max(p,t.height()+i+s),d++,d>=l&&(d=0,g=e,u+=p,p=0)}}))}getColumnWidths(t,e,i,r){let o=0,a=[],h=0;return(0,s.j)(t,(s=>{let n=s.adjustedLocalBounds();"absolute"!=s.get("position")&&s.isVisible()&&(this.get("fixedWidthGrid")?a[h]=i:a[h]=Math.max(0|a[h],n.right-n.left+s.get("marginLeft",0)+s.get("marginRight",0)),h{o+=t})),o>r?e>2?(e-=1,this.getColumnWidths(t,e,i,r)):[r]:a}}o.className="GridLayout",o.classNames=s.A.classNames.concat([o.className])},4431:function(t,e,i){"use strict";i.d(e,{G:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingLeft",0),i=t.innerWidth(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minWidth",t.getPrivate("minWidth",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.width()),i-=e+t.get("marginLeft",0)+t.get("marginRight",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginLeft",0)-t.get("marginRight",0),n=t.get("minWidth",t.getPrivate("minWidth",-1/0)),r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("width",s)}else t._prevSettings.width instanceof r.gG&&t.setPrivate("width",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginLeft",0),s=t.get("marginRight",0),n=t.get("maxWidth"),r=e.left,o=e.right;n&&o-r>n&&(o=r+n);let h=a+i-r;t.setPrivate("x",h),a=h+o+s}else t.setPrivate("x",void 0)}))}}o.className="HorizontalLayout",o.classNames=s.A.classNames.concat([o.className])},962:function(t,e,i){"use strict";i.d(e,{_:function(){return h}});var s=i(2036),n=i(6245),r=i(8777),o=i(5071),a=i(5040);class h extends r.W{constructor(){super(...arguments),this._textKeys=["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),o.each(this._textKeys,(t=>{const e=this.get(t);null!=e&&this._text.set(t,e)})),""!==this.get("html","")&&this._text.set("text",""),this.onPrivate("maxWidth",(()=>{this._setMaxDimentions()})),this.onPrivate("maxHeight",(()=>{this._setMaxDimentions()}))}_makeText(){this._text=this.children.push(s.x.new(this._root,{}))}_updateChildren(){super._updateChildren();const t=this._text;if(o.each(this._textKeys,(t=>{this._text.set(t,this.get(t))})),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),""!==this.get("html","")?t.set("text",""):(t.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){const e=this.get("textAlign");let i;null!=this.get("width")?i="right"==e?n.AQ:"center"==e?n.CI:0:"left"==e||"start"==e?i=this.get("paddingLeft",0):"right"!=e&&"end"!=e||(i=-this.get("paddingRight",0)),t.set("x",i)}const e=this.get("background");e&&e.setPrivate("visible",t._display.textVisible)}_maybeUpdateHTMLColor(){const t=this.getPrivate("htmlElement");t&&this.get("fill")&&(t.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){const t=this.get("rotation"),e=90==t||270==t||-90==t,i=this._text,s=this.get("maxWidth",this.getPrivate("maxWidth",1/0));a.isNumber(s)?i.set(e?"maxHeight":"maxWidth",s-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(e?"maxHeight":"maxWidth",void 0);const n=this.get("maxHeight",this.getPrivate("maxHeight",1/0));a.isNumber(n)?i.set(e?"maxWidth":"maxHeight",n-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(e?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",(()=>{i.markDirtyBounds()}))}_setDataItem(t){super._setDataItem(t),this._markDirtyKey("text"),this._markDirtyKey("html");const e=this._text;e.get("populateText")&&e.markDirtyText();const i=this.get("html");i&&""!==i&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}}h.className="Label",h.classNames=r.W.classNames.concat([h.className])},2010:function(t,e,i){"use strict";i.d(e,{A:function(){return r},j:function(){return n}});var s=i(6331);function n(t,e){t.get("reverseChildren",!1)?t.children.eachReverse(e):t.children.each(e)}class r extends s.JH{}r.className="Layout",r.classNames=s.JH.classNames.concat([r.className])},3105:function(t,e,i){"use strict";i.d(e,{D:function(){return c}});var s=i(3399),n=i(8777),r=i(962),o=i(3497),a=i(5769),h=i(7144),l=i(7652);class c extends s.F{constructor(){super(...arguments),this.itemContainers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:o.c.new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template])))),this.markers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template])))),this.labels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template])))),this.valueLabels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template])))),this.markerRectangles=this.addDisposer(new h.o(a.YS.new({}),(()=>o.c._new(this._root,{themeTags:l.mergeTags(this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template]))))}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(t){const e=this.children.push(this.itemContainers.make());return e._setDataItem(t),this.itemContainers.push(e),e.states.create("disabled",{}),e}makeMarker(){const t=this.markers.make();return this.markers.push(t),t.states.create("disabled",{}),t}makeLabel(){const t=this.labels.make();return t.states.create("disabled",{}),t}makeValueLabel(){const t=this.valueLabels.make();return t.states.create("disabled",{}),t}makeMarkerRectangle(){const t=this.markerRectangles.make();return t.states.create("disabled",{}),t}processDataItem(t){super.processDataItem(t);const e=this.makeItemContainer(t),i=this.get("nameField"),s=this.get("fillField"),n=this.get("strokeField");if(e){const r=this.get("clickTarget","itemContainer"),o=t.dataContext;o&&o.set&&o.set("legendDataItem",t),e._setDataItem(t),t.set("itemContainer",e);const a=this.makeMarker();if(a){e.children.push(a),a._setDataItem(t),t.set("marker",a);const i=this.get("useDefaultMarker"),r=a.children.push(this.makeMarkerRectangle());let h=t.get("fill"),l=t.get("stroke");t.set("markerRectangle",r),o&&o.get&&(h=o.get(s,h),l=o.get(n,l)),l||(l=h),i?o.on&&(o.on(s,(()=>{r.set("fill",o.get(s))})),o.on(n,(()=>{r.set("stroke",o.get(n))}))):o&&o.createLegendMarker&&o.createLegendMarker(),r.setAll({fill:h,stroke:l});const c=o.component;c&&c.updateLegendMarker&&c.updateLegendMarker(o)}const h=this.makeLabel();if(h){e.children.push(h),h._setDataItem(t),t.set("label",h),h.text.on("text",(()=>{e.setRaw("ariaLabel",h.text._getText()+("none"!==this.get("clickTarget")?"; "+this._t("Press ENTER to toggle"):"")),e.markDirtyAccessibility()})),o&&o.get&&t.set("name",o.get(i));let s=t.get("name");s&&h.set("text",s)}const l=this.makeValueLabel();if(l&&(e.children.push(l),l._setDataItem(t),t.set("valueLabel",l)),o&&o.show&&(o.on("visible",(t=>{e.set("disabled",!t)})),o.get("visible")||e.set("disabled",!0),"none"!=r)){let i=e;"marker"==r&&(i=a),this._addClickEvents(i,o,t)}this.children.values.sort(((t,e)=>{const i=t.dataItem.dataContext,s=e.dataItem.dataContext;if(i&&s){const t=this.data.indexOf(i),e=this.data.indexOf(s);if(t>e)return 1;if(t{const t=e.component;t&&t.hoverDataItem&&t.hoverDataItem(e)})),t.events.on("pointerout",(()=>{const t=e.component;t&&t.hoverDataItem&&t.unhoverDataItem(e)})),t.events.on("click",(()=>{const s=i.get("label").text._getText();e.show&&e.isHidden&&(e.isHidden()||!1===e.get("visible"))?(e.show(),t.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,s))):e.hide&&(e.hide(),t.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,s)))}))}disposeDataItem(t){super.disposeDataItem(t);const e=t.dataContext;e&&e.get&&e.get("legendDataItem")==t&&e.set("legendDataItem",void 0);let i=t.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let s=t.get("marker");s&&(this.markers.removeValue(s),s.dispose());let n=t.get("markerRectangle");n&&(this.markerRectangles.removeValue(n),n.dispose());let r=t.get("label");r&&(this.labels.removeValue(r),r.dispose());let o=t.get("valueLabel");o&&(this.valueLabels.removeValue(o),o.dispose())}}c.className="Legend",c.classNames=s.F.classNames.concat([c.className])},2077:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var s=i(1479);function n(t,e){for(let i=0,s=e.length;i0){let e=s[0];if(e.length>0){let i=e[0];t.moveTo(i.x,i.y);for(let e=0,i=s.length;e0){let e=t[0];this._display.moveTo(e.x,e.y),n(this._display,[[t]])}else if(e)n(this._display,e);else if(!this.get("draw")){let t=this.width(),e=this.height();this._display.moveTo(0,0),this._display.lineTo(t,e)}}}}o.className="Line",o.classNames=s.T.classNames.concat([o.className])},5812:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var s=i(8777),n=i(941),r=i(6387),o=i(751);class a extends s.W{constructor(){super(...arguments),this.line=this.children.push(r.P.new(this._root,{themeTags:["line"]})),this.hitLine=this.children.push(r.P.new(this._root,{themeTags:["hit"]})),this.startArrow=this.children.push(n.C.new(this._root,{themeTags:["start","arrow"]})),this.endArrow=this.children.push(n.C.new(this._root,{themeTags:["end","arrow"]}))}_afterNew(){this.addTag("link"),super._afterNew()}_updateChildren(){if(super._updateChildren(),this.isDirty("points")){let t=r.P.makeOrthogonal(this.get("points",[]));this.line.set("points",t),this.hitLine.set("points",t);const e=this.startArrow,i=this.endArrow,s=t.length;if(s>1){const[n,r]=t;e.setAll({x:n.x,y:n.y,rotation:o.getAngle(n,r)-90});const a=t[s-1],h=t[s-2];i.setAll({x:a.x,y:a.y,rotation:o.getAngle(h,a)+90})}else if(1===s){const[s]=t;e.setAll({x:s.x,y:s.y,rotation:0}),i.setAll({x:s.x,y:s.y,rotation:0})}}}}a.className="Link",a.classNames=s.W.classNames.concat([a.className])},8289:function(t,e,i){"use strict";i.d(e,{G:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){return function(e){return new s(e,t)}}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(s+a,n+a*e,r-a,o-a*i,r,o)}},5892:function(t,e,i){"use strict";i.d(e,{$:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){[t,e]=[e,t];let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){function e(e){return new s(e,t)}return e.tension=function(t){return n(+t)},e}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(n+a*e,s+a,o-a*i,r-a,o,r)}},7049:function(t,e,i){"use strict";i.d(e,{l:function(){return h}});var s=i(8777),n=i(6691),r=i(7142),o=i(941),a=i(1112);class h extends s.W{constructor(){super(...arguments),this.label=this.children.push(n.Y.new(this._root,{})),this.buttonsContainer=this.children.push(s.W.new(this._root,{themeTags:["buttons"]})),this.upButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["upbutton"]})),this.downButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["downbutton"]}))}_afterNew(){this.addTag("numericstepper"),this.set("layout",this._root.horizontalLayout),this.label.adapters.add("text",(t=>(t&&t.replace(/\D/g,""),""===t&&(t="0"),t))),this.set("background",r.A.new(this._root,{fillOpacity:0,fill:(0,a.$_)(16777215)})),this.buttonsContainer.states.create("hidden",{opacity:0,visible:!0}),this.events.on("pointerover",(()=>{this.buttonsContainer.set("active",!0)})),this.events.on("pointerout",(()=>{this.buttonsContainer.set("active",!1)})),this.label.on("text",(t=>{if(t){const e=parseFloat(t);isNaN(e)||this.set("value",e)}})),this.upButton.events.on("click",(()=>{this.set("value",this.get("value",0)+1)})),this.downButton.events.on("click",(()=>{this.set("value",Math.max(0,this.get("value",0)-1))})),super._afterNew()}_updateChildren(){super._updateChildren();const t=this.get("value",0),e=this.label;if(this.isDirty("value")&&e.set("text",t.toString()),this.isDirty("disabled")){const t=this.get("disabled",!1);this.set("interactive",!t),this.upButton.set("interactive",!t),this.downButton.set("interactive",!t),t?(this.label.set("editOn","none"),this.buttonsContainer.hide(0)):(this.label.set("editOn","click"),this.buttonsContainer.show(0))}}}h.className="NumericStepper",h.classNames=s.W.classNames.concat([h.className])},6387:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),this.isDirty("points")&&(this._clear=!0)}static makeOrthogonal(t){if(t.length>1){const e=[];for(let i=0;i0&&o&&l){if(h){s=Math.min(s,Math.abs(r.x-o.x)/2,Math.abs(r.y-n.y)/2);const e=Math.sign(r.y-n.y);t.lineTo(r.x,r.y-s*e);const i=o.x{this._display.image=e,this._updateSize(),!i.isDisposed()&&i.isEnabled("loaded")&&i.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{!i.isDisposed()&&i.isEnabled("loaderror")&&i.dispatch("loaderror",{type:"loaderror",target:this})}))}}_updateSize(){super._updateSize();const t=this._display.image;if(t){let e=this.getPrivate("width",this.get("width")),i=this.getPrivate("height",this.get("height"));const s=t.width&&t.height?t.width/t.height:0;n.isNumber(e)&&n.isNumber(i)?(this._display.width=e,this._display.height=i):n.isNumber(e)&&s?i=e/s:n.isNumber(i)&&s?e=i*s:(e=t.width,i=t.height),n.isNumber(e)&&(this._display.width=e),n.isNumber(i)&&(this._display.height=i),this.markDirtyBounds(),this.markDirty()}}}r.className="Picture",r.classNames=s.j.classNames.concat([r.className])},8931:function(t,e,i){"use strict";i.d(e,{i:function(){return r}});var s=i(1479),n=i(751);class r extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let t=this.width(),e=this.height();if(t>0&&e>0){let i=this.get("cornerRadius",8);i=n.fitToRange(i,0,Math.min(t/2,e/2));let s=this.get("pointerX",0),r=this.get("pointerY",0),o=this.get("pointerBaseWidth",15)/2,a=0,h=0,l=0,c=(s-a)*(e-h)-(r-h)*(t-a),u=(s-l)*(0-e)-(r-e)*(t-l);const d=this._display;if(d.moveTo(i,0),c>0&&u>0){let e=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,-1/0,0),d.lineTo(e-o,0),d.lineTo(s,r),d.lineTo(e+o,0)}if(d.lineTo(t-i,0),d.arcTo(t,0,t,i,i),c>0&&u<0){let a=Math.round(n.fitToRange(r,i+o,e-o-i));s=n.fitToRange(s,t,1/0),d.lineTo(t,i),d.lineTo(t,Math.max(a-o,i)),d.lineTo(s,r),d.lineTo(t,a+o)}if(d.lineTo(t,e-i),d.arcTo(t,e,t-i,e,i),c<0&&u<0){let a=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,e,1/0),d.lineTo(t-i,e),d.lineTo(a+o,e),d.lineTo(s,r),d.lineTo(a-o,e)}if(d.lineTo(i,e),d.arcTo(0,e,0,e-i,i),c<0&&u>0){let t=Math.round(n.fitToRange(r,i+o,e-i-o));s=n.fitToRange(s,-1/0,0),d.lineTo(0,e-i),d.lineTo(0,t+o),d.lineTo(s,r),d.lineTo(0,Math.max(t-o,i))}d.lineTo(0,i),d.arcTo(0,0,i,0,i),d.closePath()}}}}r.className="PointedRectangle",r.classNames=s.T.classNames.concat([r.className])},7770:function(t,e,i){"use strict";i.d(e,{m:function(){return r}});var s=i(1479),n=i(5071);class r extends s.T{_beforeChanged(){if(super._beforeChanged(),this.isDirty("coordinates")){const t=[],e=this.get("coordinates");e&&n.each(e,(e=>{t.push({x:e[0],y:e[1]})})),this.set("points",t)}if(this.isPrivateDirty("points")&&(this._clear=!0),this.isDirty("points")){this._clear=!0;const t=this.get("points"),e=this._prevSettings.points;if(e){if(t){let i=n.copy(t),s=n.copy(e),r=i.length,o=s.length;if(r>o){let t=n.copy(i);for(let e=0;er){let t=n.copy(s);for(let e=0;e{this._markDirtyPrivateKey("morphProgress")}))}}else this.setPrivateRaw("previousPoints",t),this.setPrivateRaw("points",t);let i=1/0,s=-1/0,r=1/0,o=-1/0;if(t)for(let e=1,n=t.length;e{this.label.markDirtyKey("text")}))}}}l.className="ProgressPie",l.classNames=n.W.classNames.concat([l.className])},815:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(6245),n=i(962),r=i(4244),o=i(751),a=i(7652);class h extends n._{constructor(){super(...arguments),this._flipped=!1}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(r.f.new(this._root,{}))}baseRadius(){const t=this.getPrivate("radius",0),e=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return e+a.relativeToValue(i,t-e)}radius(){const t=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(t?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){const t=this.get("textType","adjusted"),e=this.get("inside",!1),i=this.get("orientation");let n=o.normalizeAngle(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",e);const r=o.sin(n),a=o.cos(n);let h=this.baseRadius(),l=this.radius();if(this._display.angle=0,"circular"==t)this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",l);else{0==h&&(n=0,l=0);let e=l*a,o=l*r;"radial"==t?(this.setRaw("x",e),this.setRaw("y",o),n<90||n>270||"auto"!=i?(this._display.angle=n,this._flipped=!1):(this._display.angle=n+180,this._flipped=!0),this._dirty.rotation=!1):"adjusted"==t?(this.setRaw("centerX",s.CI),this.setRaw("centerY",s.CI),this.setRaw("x",e),this.setRaw("y",o)):"regular"==t&&(this.setRaw("x",e),this.setRaw("y",o))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){const t=this.get("textType","regular"),e=this.get("inside",!1);let i=0,n=0,r=this.get("labelAngle",0),a=this.localBounds(),h=a.right-a.left,l=a.bottom-a.top;if("radial"==t){if(this._flipped){let t=this.get("centerX");t instanceof s.gG&&(h*=1-2*t.value),i=h*o.cos(r),n=h*o.sin(r)}}else e||"adjusted"!=t||(i=h/2*o.cos(r),n=l/2*o.sin(r));this.setRaw("dx",i),this.setRaw("dy",n),super._updatePosition()}get text(){return this._text}}h.className="RadialLabel",h.classNames=n._.classNames.concat([h.className])},4244:function(t,e,i){"use strict";i.d(e,{f:function(){return r}});var s=i(2036),n=i(751);class r extends s.x{constructor(){super(...arguments),this._display=this._root._renderer.makeRadialText("",this.textStyle)}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*n.RADIANS,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}r.className="RadialText",r.classNames=s.x.classNames.concat([r.className])},7142:function(t,e,i){"use strict";i.d(e,{A:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let t=this.width(),e=this.height(),i=0,s=0,n=t/Math.abs(t),r=e/Math.abs(e);if(this.get("containStroke",!1)){const o=this.get("strokeWidth",0);t-=o*n,e-=o*r,i+=o/2*n,s+=o/2*r}this._display.drawRect(i,s,t,e)}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Rectangle",n.classNames=s.T.classNames.concat([n.className])},3497:function(t,e,i){"use strict";i.d(e,{c:function(){return a}});var s=i(5040),n=i(751),r=i(7652),o=i(7142);class a extends o.A{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let t=this.width(),e=this.height(),i=t/Math.abs(t),o=e/Math.abs(e),a=0,h=0;const l=this.get("strokeWidth",0);this.get("containStroke",!1)&&(t-=i*l,e-=o*l,a+=i*l/2,h+=o*l/2);let c=t,u=e;if(s.isNumber(c)&&s.isNumber(u)){let t=Math.min(c,u)/2,e=r.relativeToValue(this.get("cornerRadiusTL",8),t),s=r.relativeToValue(this.get("cornerRadiusTR",8),t),l=r.relativeToValue(this.get("cornerRadiusBR",8),t),d=r.relativeToValue(this.get("cornerRadiusBL",8),t),p=Math.min(Math.abs(c/2),Math.abs(u/2));e=n.fitToRange(e,0,p),s=n.fitToRange(s,0,p),l=n.fitToRange(l,0,p),d=n.fitToRange(d,0,p);const g=this._display;g.moveTo(a+e*i,h),g.lineTo(a+c-s*i,h),s>0&&g.arcTo(a+c,h,a+c,h+s*o,s),g.lineTo(a+c,h+u-l*o),l>0&&g.arcTo(a+c,h+u,a+c-l*i,h+u,l),g.lineTo(a+d*i,h+u),d>0&&g.arcTo(a,h+u,a,h+u-d*o,d),g.lineTo(a,h+e*o),e>0&&g.arcTo(a,h,a+e*i,h,e),g.closePath()}}}a.className="RoundedRectangle",a.classNames=o.A.classNames.concat([a.className])},6001:function(t,e,i){"use strict";i.d(e,{L:function(){return l}});var s=i(3497),n=i(8777),r=i(1479),o=i(8054),a=i(5040),h=i(7652);class l extends n.W{constructor(){super(...arguments),this.thumb=this._makeThumb(),this.startGrip=this._makeButton(),this.endGrip=this._makeButton(),this._thumbBusy=!1,this._startDown=!1,this._endDown=!1,this._thumbDown=!1}_addOrientationClass(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=s.c.new(this._root,{themeTags:h.mergeTags(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(o.z.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:r.T.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(s.c.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(t){t&&this._disposers.push(t.events.on("stopped",(()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1})))}_afterNew(){this._addOrientationClass(),super._afterNew();const t=this.startGrip,e=this.endGrip,i=this.thumb,s=this.get("background");s&&this._disposers.push(s.events.on("click",(t=>{this.setPrivateRaw("isBusy",!0);const e=this._display.toLocal(t.point),s=this.width(),n=this.height(),r=this.get("orientation");let o,a,h;o="vertical"==r?(e.y-i.height()/2)/n:(e.x-i.width()/2)/s,"vertical"==r?(a=o*n,h="y"):(a=o*s,h="x");const l=this.get("animationDuration",0);l>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:h,to:a,duration:l,easing:this.get("animationEasing")}))):(this.thumb.set(h,a),this._root.events.once("frameended",(()=>{this.setPrivateRaw("isBusy",!1)})))}))),this._disposers.push(i.events.on("dblclick",(t=>{if(!h.isLocalEvent(t.originalEvent,this))return;const e=this.get("animationDuration",0),i=this.get("animationEasing");this.animate({key:"start",to:0,duration:e,easing:i}),this.animate({key:"end",to:1,duration:e,easing:i})}))),this._disposers.push(t.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"}))),this._disposers.push(e.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"}))),this._disposers.push(i.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0}))),this._disposers.push(t.events.on("globalpointerup",(()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1}))),this._disposers.push(e.events.on("globalpointerup",(()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1}))),this._disposers.push(i.events.on("globalpointerup",(()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1}))),this._disposers.push(t.on("x",(()=>{this._updateThumb()}))),this._disposers.push(e.on("x",(()=>{this._updateThumb()}))),this._disposers.push(t.on("y",(()=>{this._updateThumb()}))),this._disposers.push(e.on("y",(()=>{this._updateThumb()}))),this._disposers.push(i.events.on("positionchanged",(()=>{this._updateGripsByThumb()}))),"vertical"==this.get("orientation")?(t.set("x",0),e.set("x",0),this._disposers.push(i.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()-i.height()),0)))),this._disposers.push(i.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("x",(t=>this.width()/2))),this._disposers.push(e.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0)))),this._disposers.push(e.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0))))):(t.set("y",0),e.set("y",0),this._disposers.push(i.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()-i.width()),0)))),this._disposers.push(i.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("y",(t=>this.height()/2))),this._disposers.push(e.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))),this._disposers.push(e.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){const t="rangechanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){const t="released";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}updateGrips(){const t=this.startGrip,e=this.endGrip,i=this.get("orientation"),s=this.height(),n=this.width();"vertical"==i?(t.set("y",s*this.get("start",0)),e.set("y",s*this.get("end",1))):(t.set("x",n*this.get("start",0)),e.set("x",n*this.get("end",1)));const r=this.getPrivate("positionTextFunction"),o=Math.round(100*this.get("start",0)),a=Math.round(100*this.get("end",0));let h,l;r?(h=r.call(this,this.get("start",0)),l=r.call(this,this.get("end",0))):(h=o+"%",l=a+"%"),t.set("ariaLabel",this._t("From %1",void 0,h)),t.set("ariaValueNow",""+o),t.set("ariaValueText",o+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100"),e.set("ariaLabel",this._t("To %1",void 0,l)),e.set("ariaValueNow",""+a),e.set("ariaValueText",a+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100")}_updateThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip,s=this.height(),n=this.width();let r=e.x(),o=i.x(),h=e.y(),l=i.y(),c=0,u=1;"vertical"==this.get("orientation")?a.isNumber(h)&&a.isNumber(l)&&(this._thumbBusy||t.isDragging()||(t.set("height",l-h),t.set("y",h)),c=h/s,u=l/s):a.isNumber(r)&&a.isNumber(o)&&(this._thumbBusy||t.isDragging()||(t.set("width",o-r),t.set("x",r)),c=r/n,u=o/n),!this.getPrivate("isBusy")||this.get("start")==c&&this.get("end")==u||(this.set("start",c),this.set("end",u));const d=this.getPrivate("positionTextFunction"),p=Math.round(100*this.get("start",0)),g=Math.round(100*this.get("end",0));let f,_;d?(f=d.call(this,this.get("start",0)),_=d.call(this,this.get("end",0))):(f=p+"%",_=g+"%"),t.set("ariaLabel",this._t("From %1 to %2",void 0,f,_)),t.set("ariaValueNow",""+p),t.set("ariaValueText",p+"%")}_updateGripsByThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip;if("vertical"==this.get("orientation")){const s=t.height();e.set("y",t.y()),i.set("y",t.y()+s)}else{const s=t.width();e.set("x",t.x()),i.set("x",t.x()+s)}}}l.className="Scrollbar",l.classNames=n.W.classNames.concat([l.className])},5829:function(t,e,i){"use strict";i.d(e,{j:function(){return h}});var s=i(1337),n=i(8777),r=i(7144),o=i(6245),a=i(5071);class h extends s.k{constructor(){super(...arguments),this.seriesContainer=n.W.new(this._root,{width:o.AQ,height:o.AQ,isMeasured:!1}),this.series=new r.dn}_afterNew(){super._afterNew(),this._disposers.push(this.series);const t=this.seriesContainer.children;this._disposers.push(this.series.events.onAll((e=>{if("clear"===e.type){a.each(e.oldValues,(t=>{this._removeSeries(t)}));const t=this.get("colors");t&&t.reset();const i=this.get("patterns");i&&i.reset()}else if("push"===e.type)t.moveValue(e.newValue),this._processSeries(e.newValue);else if("setIndex"===e.type)t.setIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("insertIndex"===e.type)t.insertIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("removeIndex"===e.type)this._removeSeries(e.oldValue);else if("moveIndex"===e.type)t.moveValue(e.value,e.newIndex),this._processSeries(e.value);else{if("swap"!==e.type)throw new Error("Unknown IListEvent type");{const i=e.a,s=e.b,n=this.series.indexOf(i),r=this.series.indexOf(s);t.moveValue(i,r),t.moveValue(s,n),this.series.each((t=>{this._processSeries(t),t.markDirtyValues()}))}}})))}_processSeries(t){t.chart=this,t._placeBulletsContainer(this)}_removeSeries(t){t._handleRemoved(),t.isDisposed()||(this.seriesContainer.children.removeValue(t),t._removeBulletsContainer())}}h.className="SerialChart",h.classNames=s.k.classNames.concat([h.className])},3399:function(t,e,i){"use strict";i.d(e,{F:function(){return g}});var s=i(7582),n=i(9361),r=i(7144),o=i(1112),a=i(6490),h=i(6245),l=i(8777),c=i(962),u=i(5071),d=i(5040),p=i(1926);class g extends n.w{constructor(){super(...arguments),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1,this._dataProcessed=!1,this._baseSeriesDirty=!1,this.bullets=new r.aV,this.bulletsContainer=l.W.new(this._root,{width:h.AQ,height:h.AQ,position:"absolute"})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll((()=>{this._handleBullets(this.dataItems)})))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let t=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),t)}endIndex(){let t=this.dataItems.length;return Math.max(0,Math.min(this.getPrivate("endIndex",t),t))}_handleBullets(t){u.each(t,(t=>{const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)})),this.markDirtyValues()}_makeBullets(t){this._shouldMakeBullet(t)&&(t.bullets=[],this.bullets.each((e=>{this._makeBullet(t,e)})))}_shouldMakeBullet(t){return!0}_makeBullet(t,e,i){const s=e(this._root,this,t);return s&&(s._index=i,this._makeBulletReal(t,s)),s}_makeBulletReal(t,e){let i=e.get("sprite");i&&(i._setDataItem(t),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),e.series=this,t.bullets.push(e)}addBullet(t,e){t.bullets||(t.bullets=[]),e&&this._makeBulletReal(t,e)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();const t=this.dataItems,e=t.length;let i=this.startIndex(),s=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const t=this.getPrivate("baseValueSeries");t&&this._disposers.push(t.onPrivate("startIndex",(()=>{this._baseSeriesDirty=!0,this.markDirtyValues()})))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,e),this._aggregatesCalculated=!0,0!=i&&(this._psi=void 0))),this._psi==i&&this._pei==s&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===i&&s===e&&this._aggregatesCalculated||this._calculateAggregates(i,s),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let t=this.get("tooltip");t&&(t.hide(0),t.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let t;const e=this.get("legendDataItem");if(e&&(t=e.get("markerRectangle"),t&&this.isVisible())){if(this.isDirty("stroke")){let e=this.get("stroke");t.set("stroke",e)}if(this.isDirty("fill")){let e=this.get("fill");t.set("fill",e)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let i=this.startIndex(),s=this.endIndex();s-1==s.indexOf(t))));const n={},r={},o={},a={},h={},l={},c={},u={},d={};for(let t=0,e=i.length;t{if(0===t){const t=l[x],s=i-t;e.setRaw(_,s),e.setRaw(m,s/t*100)}const n=i-d[x],r=i-l[x];e.setRaw(y,n),e.setRaw(v,n/d[x]*100),e.setRaw(w,r),e.setRaw(b,r/l[x]*100),d[s]=i};for(let t=k;tt&&(a[f]=t),h[f]0&&t--,delete d[f];for(let e=t;e0&&u.each(t,(t=>{const e=t.minValue||this.getPrivate(t.dataField+"Low")||0,i=t.maxValue||this.getPrivate(t.dataField+"High")||0;u.each(t.target._entities,(s=>{const n=s.dataItem.get(t.dataField);if(!d.isNumber(n)){t.neutral&&s.set(t.key,t.neutral);const e=s.states;if(e){const i=e.lookup("default");i&&t.neutral&&i.set(t.key,t.neutral)}if(!t.customFunction)return}if(t.customFunction)t.customFunction.call(this,s,e,i,n);else{let r,l;r=t.logarithmic?(Math.log(n)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E):(n-e)/(i-e),!d.isNumber(n)||d.isNumber(r)&&Math.abs(r)!=1/0||(r=.5),d.isNumber(t.min)?l=t.min+(t.max-t.min)*r:t.min instanceof o.Il?l=o.Il.interpolate(r,t.min,t.max):t.min instanceof h.gG&&(l=(0,a.Wn)(r,t.min,t.max)),s.set(t.key,l);const c=s.states;if(c){const e=c.lookup("default");e&&e.set(t.key,l)}}}))})),this.get("visible")){const t=this.dataItems;let e=t.length,i=this.startIndex(),s=this.endIndex();s0&&i--;for(let e=0;e{this._positionBullet(t);const e=t.get("sprite");t.get("dynamic")&&(e&&(e._markDirtyKey("fill"),e.markDirtySize()),e instanceof l.W&&e.walkChildren((t=>{t._markDirtyKey("fill"),t.markDirtySize(),t instanceof c._&&t.text.markDirtyText()}))),e instanceof c._&&e.get("populateText")&&e.text.markDirtyText()}))}_hideBullets(t){t.bullets&&u.each(t.bullets,(t=>{let e=t.get("sprite");e&&e.setPrivate("visible",!1)}))}_positionBullet(t){}_placeBulletsContainer(t){t.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const t=this.bulletsContainer;t.parent&&t.parent.children.removeValue(t)}disposeDataItem(t){const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.show(e))})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.hide(e))})),yield Promise.all(s)}))}_sequencedShowHide(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(d.isNumber(e)||(e=this.get("interpolationDuration",0)),e>0){const i=this.startIndex(),n=this.endIndex();yield Promise.all(u.map(this.dataItems,((r,o)=>(0,s.mG)(this,void 0,void 0,(function*(){let s=e||0;(on+10)&&(s=0);let a=this.get("sequencedDelay",0)+s/(n-i);yield p.sleep(a*(o-i)),t?yield this.showDataItem(r,s):yield this.hideDataItem(r,s)})))))}else yield Promise.all(u.map(this.dataItems,(e=>t?this.showDataItem(e,0):this.hideDataItem(e,0))))}))}updateLegendValue(t){if(t){const e=t.get("legendDataItem");if(e){const i=e.get("valueLabel");if(i){const e=i.text;let s="";i._setDataItem(t),s=this.get("legendValueText",e.get("text","")),i.set("text",s),e.markDirtyText()}const s=e.get("label");if(s){const e=s.text;let i="";s._setDataItem(t),i=this.get("legendLabelText",e.get("text","")),s.set("text",i),e.markDirtyText()}}}}updateLegendMarker(t){}_onHide(){super._onHide();const t=this.getTooltip();t&&t.hide()}hoverDataItem(t){}unhoverDataItem(t){}_getBase(t){const e=this.dataItems[this.startIndex()];return e?e.get(t):0}}g.className="Series",g.classNames=n.w.classNames.concat([g.className])},5863:function(t,e,i){"use strict";i.d(e,{p:function(){return h}});var s=i(1479),n=i(5040),r=i(6245),o=i(832),a=i(751);class h extends s.T{constructor(){super(...arguments),this.ix=0,this.iy=0,this._generator=(0,o.Z)()}_getTooltipPoint(){let t=this.get("tooltipX"),e=this.get("tooltipY"),i=0,s=0;n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e);let o=this.get("radius",0),a=this.get("innerRadius",0);return o+=this.get("dRadius",0),a+=this.get("dInnerRadius",0),a<0&&(a=o+a),t instanceof r.gG&&(i=this.ix*(a+(o-a)*t.value)),e instanceof r.gG&&(s=this.iy*(a+(o-a)*e.value)),this.get("arc")>=360&&0==a&&(i=0,s=0),{x:i,y:s}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this.get("startAngle",0),e=this.get("arc",0);const i=this._generator;e<0&&(t+=e,e*=-1),e>.1&&i.cornerRadius(this.get("cornerRadius",0)),i.context(this._display);let s=this.get("radius",0),n=this.get("innerRadius",0);s+=this.get("dRadius",0),n+=this.get("dInnerRadius",0),n<0&&(n=s+n),i({innerRadius:n,outerRadius:s,startAngle:(t+90)*a.RADIANS,endAngle:(t+e+90)*a.RADIANS});let r=t+e/2;this.ix=a.cos(r),this.iy=a.sin(r);const o=this.get("shiftRadius",0);this.setRaw("dx",this.ix*o),this.setRaw("dy",this.iy*o),this.markDirtyPosition()}}}h.className="Slice",h.classNames=s.T.classNames.concat([h.className])},2162:function(t,e,i){"use strict";i.d(e,{i:function(){return n}});var s=i(6001);class n extends s.L{_afterNew(){this._addOrientationClass(),super._afterNew(),this.endGrip.setPrivate("visible",!1),this.thumb.setPrivate("visible",!1)}updateGrips(){super.updateGrips();const t=this.startGrip;this.endGrip.setAll({x:t.x(),y:t.y()}),this.setRaw("end",this.get("start"))}}n.className="Slider",n.classNames=s.L.classNames.concat([n.className])},4596:function(t,e,i){"use strict";i.d(e,{j:function(){return _}});var s=i(7582),n=i(6331),r=i(5769),o=i(6245),a=i(9770),h=i(7449),l=i(6490),c=i(7652),u=i(5071),d=i(5040),p=i(256),g=i(751);class f extends a.p{constructor(t){super(),this._rendererDisposers={},this._dispatchParents=!0,this._sprite=t}_makePointerEvent(t,e){return{type:t,originalEvent:e.event,point:e.point,simulated:e.simulated,native:e.native,target:this._sprite}}_onRenderer(t,e){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[t];if(void 0===i){const s=this._sprite._display.on(t,(t=>{e.call(this,t)}));i=this._rendererDisposers[t]=new h.DM((()=>{delete this._rendererDisposers[t],s.dispose()}))}return i.increment()}_on(t,e,i,s,n,r,o){const a=super._on(t,e,i,s,n,r,o),l=f.RENDERER_EVENTS[e];return void 0!==l&&(a.disposer=new h.FV([a.disposer,this._onRenderer(e,l)])),a}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(t,e){const i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(t,e),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(t,e)}finally{this._dispatchParents=i}}}f.RENDERER_EVENTS={click:function(t){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",t))&&this.dispatch("click",this._makePointerEvent("click",t))},rightclick:function(t){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",t))},middleclick:function(t){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",t))},dblclick:function(t){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",t))},pointerover:function(t){const e=this._sprite;let i=!0;if(e.getPrivate("trustBounds")){e._getBounds();const s=e.globalBounds();if(e.isType("Graphics")){const t=e.get("strokeWidth",1)/2;t>=1&&(s.left-=t,s.right+=t,s.top-=t,s.bottom+=t)}g.inBounds(t.point,s)||(i=!1,e._root._renderer.removeHovering(e._display))}i&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",t))},pointerout:function(t){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",t))},pointerdown:function(t){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",t))},pointerup:function(t){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",t))},globalpointerup:function(t){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",t))},globalpointermove:function(t){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",t))},wheel:function(t){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:t.event,point:t.point})}};class _ extends n.JH{constructor(){super(...arguments),this._adjustedLocalBounds={left:0,right:0,top:0,bottom:0},this._localBounds={left:0,right:0,top:0,bottom:0},this._sizeDirty=!1,this._isDragging=!1,this._isHidden=!1,this._isShowing=!1,this._isHiding=!1,this._isDown=!1,this._downPoints={}}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(t){this._markDirtyKey(t)}_markDirtyKey(t){super._markDirtyKey(t),"x"!=t&&"y"!=t&&"dx"!=t&&"dy"!=t||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(t){super._markDirtyPrivateKey(t),"x"!=t&&"y"!=t||this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new f(this)}_processTemplateField(){let t;const e=this.get("templateField");if(e){const i=this.dataItem;if(i){const s=i.dataContext;s&&(t=s[e],t instanceof r.YS||!t||(t=r.YS.new(t)))}}this._templateField!==t&&(this._removeTemplateField(),this._templateField=t,t&&t._setObjectTemplate(this),this._applyTemplates())}_setDataItem(t){const e=this._dataItem;this._dataItem=t,this._processTemplateField();const i="dataitemchanged";t!=e&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:e,newDataItem:t})}set dataItem(t){this._setDataItem(t)}get dataItem(){if(this._dataItem)return this._dataItem;{let t=this._parent;for(;t;){if(t._dataItem)return t._dataItem;t=t._parent}}}_addPercentageSizeChildren(){let t=this.parent;t&&(this.get("width")instanceof o.gG||this.get("height")instanceof o.gG?u.pushOne(t._percentageSizeChildren,this):u.removeFirst(t._percentageSizeChildren,this))}_addPercentagePositionChildren(){let t=this.parent;t&&(this.get("x")instanceof o.gG||this.get("y")instanceof o.gG?u.pushOne(t._percentagePositionChildren,this):u.removeFirst(t._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const t=this._localBounds;if(t){const e=this.get("centerX");null!=e&&(this._display.pivot.x=t.left+c.relativeToValue(e,t.right-t.left));const i=this.get("centerY");null!=i&&(this._display.pivot.y=t.top+c.relativeToValue(i,t.bottom-t.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const t=this._prevSettings.tooltip;t&&t.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0);const e=this._tooltipPointerDp;e&&(e.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))),this._tooltipPointerDp=new h.FV([this.events.on("pointerover",(()=>{this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))})),this.events.on("pointerout",(()=>{const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0)}))]))}}_handleStates(){this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();const t=this._display,e=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new h.FV([e.on("pointerdown",(t=>{this.dragStart(t)})),e.on("globalpointermove",(t=>{this.dragMove(t)})),e.on("globalpointerup",(t=>{this.dragStop(t)}))])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),t.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const t=this.get("tooltipText"),i=this.get("tooltipHTML"),s=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(t||i)&&("click"==s?(this._tooltipDp=new h.FV([e.on("click",(()=>{this.setTimeout((()=>{const t=this.getTooltip();t&&!t.isHidden()&&t.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()}),10)})),c.addEventListener(document,"click",(t=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)):"always"==s||(this._tooltipDp=new h.FV([e.on("pointerover",(()=>{this.showTooltip()})),e.on("pointerout",(()=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let t=this.get("toggleKey");t&&"none"!=t?this._toggleDp=e.on("click",(()=>{this._isDragging||this.set(t,!this.get(t))})):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(t.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),t.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),t.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?t.visible=!0:(t.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const t=this.parent;t&&(this.isDirty("width")&&this.get("width")instanceof o.gG||this.isDirty("height")&&this.get("height")instanceof o.gG)&&(t.markDirty(),t._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const e=this.get("wheelable");e&&this.set("interactive",!0),t.wheelable=!!e}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(t.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){const t=this.get("blur",0);0!=t&&(i+=" blur("+t+"px)")}if(this.isDirty("saturate")){const t=this.get("saturate",1);1!=t&&(i+=" saturate("+t+")")}if(this.isDirty("brightness")){const t=this.get("brightness",1);1!=t&&(i+=" brightness("+t+")")}if(this.isDirty("contrast")){const t=this.get("contrast",1);1!=t&&(i+=" contrast("+t+")")}if(this.isDirty("sepia")){const t=this.get("sepia",0);0!=t&&(i+=" sepia("+t+")")}if(this.isDirty("hue")){const t=this.get("hue",0);0!=t&&(i+=" hue-rotate("+t+"deg)")}if(this.isDirty("invert")){const t=this.get("invert",0);0!=t&&(i+=" invert("+t+")")}if(i&&(t.filter=i),this.isDirty("cursorOverStyle")&&(t.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new h.FV([e.on("focus",(()=>{this.showTooltip()})),e.on("blur",(()=>{this.hideTooltip()}))]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(e.on("blur",(()=>{this.setPrivateRaw("touchHovering",!1)}))),this._disposers.push(e.once("boundschanged",(()=>{this.markDirtyAccessibility()})))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(t.exportable=this.get("exportable")),this.isDirty("interactive")){const t=this.events;this.get("interactive")&&!t.isDisposed()?this._hoverDp=new h.FV([t.on("click",(t=>{c.isTouchEvent(t.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout((()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}),10))})),t.on("globalpointerup",(t=>{c.isTouchEvent(t.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})),this._isDown&&this._handleUp(t)})),t.on("pointerover",(()=>{this._handleOver()})),t.on("pointerout",(()=>{this._handleOut()})),t.on("pointerdown",(t=>{this._handleDown(t)}))]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}dragStart(t){this._dragEvent=t,this.events.stopParentDispatch()}dragStop(t){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const e="dragstop";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(t){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const e=c.getPointerId(t.originalEvent);delete this._downPoints[e],0==p.keys(this._downPoints).length&&(this._isDown=!1)}}_hasMoved(t){const e=c.getPointerId(t.originalEvent),i=this._downPoints[e];if(i){const e=Math.abs(i.x-t.point.x),s=Math.abs(i.y-t.point.y);return e>5||s>5}return!1}_hasDown(){return p.keys(this._downPoints).length>0}_handleDown(t){const e=this.parent;if(e&&!this.get("draggable")&&e._handleDown(t),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:t.point.x,y:t.point.y},this._isDown=!0;const e=c.getPointerId(t.originalEvent);this._downPoints[e]={x:t.point.x,y:t.point.y}}}dragMove(t){let e=this._dragEvent;if(e){if(e.simulated&&!t.simulated)return!0;let i=0,s=this.parent,n=1;for(;null!=s;)i+=s.get("rotation",0),s=s.parent,s&&(n*=s.get("scale",1));let r=(t.point.x-e.point.x)/n,o=(t.point.y-e.point.y)/n;const a=this.events;if(e.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}if(this._isDragging){let e=this._dragPoint;this.set("x",e.x+r*g.cos(i)+o*g.sin(i)),this.set("y",e.y+o*g.cos(i)-r*g.sin(i));const s="dragged";a.isEnabled(s)&&a.dispatch(s,{type:s,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}else if(Math.hypot(r,o)>5){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let t=this.parent,e=0;for(;;){if(!t)return e;++e,t=t.parent}}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const t=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),t.isMeasured=!0,t.invalidateBounds();const e=this.parent;e&&"absolute"!=this.get("position")&&(null==e.get("width")||null==e.get("height")||e.get("layout"))&&e.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const t=this._adjustedLocalBounds;let e;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),e=this._adjustedLocalBounds):(e={left:0,right:0,top:0,bottom:0},this._localBounds=e,this._adjustedLocalBounds=e),!t||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom){const t="boundschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(t){let e=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));d.isNumber(e)&&t.right-t.left0?t.right=t.left+s:t.left=t.right+s),d.isNumber(n)&&(n>0?t.bottom=t.top+n:t.top=t.bottom+n)}_removeParent(t){t&&(t.children.removeValue(this),u.removeFirst(t._percentageSizeChildren,this),u.removeFirst(t._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(t){if(!this.isDisposed()){const e=this.getTooltip(),i=this.get("tooltipText"),s=this.get("tooltipHTML");if((i||s)&&e){const n=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);if("fixed"!=n&&t||(this._display._setMatrix(),t=this.toGlobal(r._getTooltipPoint())),"pointer"==n){const e=this.getPrivate("lastTooltipCoords");if(e&&e.x==t.x&&e.y==t.y)return;this.setPrivate("lastTooltipCoords",t)}e.set("pointTo",t),e.set("tooltipTarget",r),e.get("x")||e.set("x",t.x),e.get("y")||e.set("y",t.y),i&&e.label.set("text",i),s&&e.label.set("html",s);const o=this.dataItem;if(o&&e.label._setDataItem(o),"always"==this.get("showTooltipOn")&&(t.x<0||t.x>this._root.width()||t.y<0||t.y>this._root.height()))return void this.hideTooltip();e.label.text.markDirtyText();const a=e.show();return this.setPrivateRaw("showingTooltip",!0),a}}}hideTooltip(){const t=this.getTooltip();if(t&&(this.removePrivate("lastTooltipCoords"),t.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==t)){let e=t.get("keepTargetHover")&&0==t.get("stateAnimationDuration",0)?400:void 0;const i=t.hide(e);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){const t=this._localBounds;if(t){let e=0,i=0;return this.get("isMeasured")?(e=t.left+c.relativeToValue(this.get("tooltipX",0),t.right-t.left),i=t.top+c.relativeToValue(this.get("tooltipY",0),t.bottom-t.top)):(e=c.relativeToValue(this.get("tooltipX",0),this.width()),i=c.relativeToValue(this.get("tooltipY",0),this.height())),{x:e,y:i}}return{x:0,y:0}}getTooltip(){let t=this.get("tooltip");if(t)return t;{let t=this.parent;if(t)return t.getTooltip()}}_updatePosition(){const t=this.parent;let e=this.get("dx",0),i=this.get("dy",0),s=this.get("x"),n=this.getPrivate("x"),r=0,a=0;const h=this.get("position");s instanceof o.gG&&(s=t?t.innerWidth()*s.value+t.get("paddingLeft",0):0),d.isNumber(s)?r=s+e:null!=n?r=n:t&&"relative"==h&&(r=t.get("paddingLeft",0)+e);let l=this.get("y"),c=this.getPrivate("y");l instanceof o.gG&&(l=t?t.innerHeight()*l.value+t.get("paddingTop",0):0),d.isNumber(l)?a=l+i:null!=c?a=c:t&&"relative"==h&&(a=t.get("paddingTop",0)+i);const u=this._display;if(u.x!=r||u.y!=a){u.invalidateBounds(),u.x=r,u.y=a;const t="positionchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let t=this.get("x"),e=this.getPrivate("x");const i=this.parent;return i?t instanceof o.gG?c.relativeToValue(t,i.innerWidth())+i.get("paddingLeft",0):d.isNumber(t)?t:null!=e?e:i.get("paddingLeft",this._display.x):this._display.x}y(){let t=this.getPrivate("y");if(null!=t)return t;let e=this.get("y");const i=this.parent;return i?e instanceof o.gG?c.relativeToValue(e,i.innerHeight())+i.get("paddingTop",0):d.isNumber(e)?e:null!=t?t:i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const t=this.get("tooltip");t&&t.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const t=this._adjustedLocalBounds,e=this.x(),i=this.y();return{left:t.left+e,right:t.right+e,top:t.top+i,bottom:t.bottom+i}}globalBounds(){const t=this.localBounds(),e=this.toGlobal({x:t.left,y:t.top}),i=this.toGlobal({x:t.right,y:t.top}),s=this.toGlobal({x:t.right,y:t.bottom}),n=this.toGlobal({x:t.left,y:t.bottom});return{left:Math.min(e.x,i.x,s.x,n.x),top:Math.min(e.y,i.y,s.y,n.y),right:Math.max(e.x,i.x,s.x,n.x),bottom:Math.max(e.y,i.y,s.y,n.y)}}_onShow(t){}_onHide(t){}appear(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.hide(0),e?new Promise(((i,s)=>{this.setTimeout((()=>{i(this.show(t))}),e)})):this.show(t)}))}show(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(t);const e=this.states.applyAnimate("default",t);yield(0,l.ne)(e),this._isShowing=!1}}))}hide(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let e=this.states.lookup("hidden");e||(e=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(t);const i=this.states.applyAnimate("hidden",t);yield(0,l.ne)(i),this._isHiding=!1}}))}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const t=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*t:t}compositeScale(){const t=this.get("scale",1);return this._parent?this._parent.compositeScale()*t:t}compositeRotation(){const t=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+t:t}width(){let t=this.get("width"),e=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),s=this.getPrivate("width"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerWidth()*t.value:this._root.width()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}maxWidth(){let t=this.get("maxWidth",this.getPrivate("maxWidth"));if(d.isNumber(t))return t;{let t=this.get("width");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerWidth():this._root.width()}maxHeight(){let t=this.get("maxHeight",this.getPrivate("maxHeight"));if(d.isNumber(t))return t;{let t=this.get("height");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerHeight():this._root.height()}height(){let t=this.get("height"),e=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),s=this.getPrivate("height"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerHeight()*t.value:this._root.height()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}_findStaticTemplate(t){return this._templateField&&t(this._templateField)?this._templateField:super._findStaticTemplate(t)}_walkParents(t){(this._parent||this._virtualParent)&&this._walkParent(t)}_walkParent(t){this._parent?this._parent._walkParent(t):this._virtualParent&&this._virtualParent._walkParent(t),t(this)}set virtualParent(t){this._virtualParent!==t&&(this._virtualParent=t,this._applyThemes())}get parent(){return this._parent}_setParent(t,e=!1){const i=this._parent;t!==i&&(this.markDirtyBounds(),t.markDirty(),this._parent=t,e&&(this._removeParent(i),t&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(t){return this._display.toGlobal(t)}toLocal(t){return this._display.toLocal(t)}_getDownPoint(){const t=this._getDownPointId();if(t)return this._downPoints[t]}_getDownPointId(){if(this._downPoints)return p.keysOrdered(this._downPoints,((t,e)=>t>e?1:t{this._resize(t.target,-1)})),this.gripR.events.on("dragged",(t=>{this._resize(t.target,1)})),this.gripL.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripR.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripT.events.on("dragged",(t=>{this._rotate(t,90)})),this.gripB.events.on("dragged",(t=>{this._rotate(t,-90)})),this.gripT.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripB.events.on("dragstart",(t=>{this._resizeStart(t.target)}))}_resizeStart(t){const e=this.get("sprite");e&&(this._is=e.get("scale",1),this._ix=t.x(),this._iw=this.width()/2)}_resize(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=Math.max(.01,this._is*(1+e*(t.x()-this._ix)/this._iw));s?s.set("scale",n):i.set("scale",n),i.states.lookup("default").set("scale",n),this._updatePositions()}}_rotate(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=this.parent;if(n){const r=this.get("rotationStep",10);let o=Math.round((h.getAngle({x:this.x(),y:this.y()},n.toLocal(t.point))+e)/r)*r;s?s.set("rotation",o):i.set("rotation",o),i.states.lookup("default").set("rotation",o),this._updatePositions()}}}_createGrip(t){const e=this.children.push(s.W.new(this._root,{themeTags:["grip",t],setStateOnChildren:!0,draggable:!0}));return e.children.push(r.c.new(this._root,{themeTags:["outline"],centerX:n.CI,centerY:n.CI})),e.children.push(r.c.new(this._root,{centerX:n.CI,centerY:n.CI})),e}_updateChildren(){if(super._updateChildren(),this.isDirty("sprite")){const t=this.get("sprite");if(t){this.show(0),this.setPrivate("visible",!0),this._updatePositions();const e=t.parent;e&&e.children.moveValue(this,0),this._positionDP=t.events.on("positionchanged",(()=>{this._updatePositions()})),this._positionDP=t.events.on("boundschanged",(()=>{this._updatePositions()}))}else this.hide(0),this.setPrivate("visible",!1),this._positionDP&&this._positionDP.dispose()}(this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation"))&&this._updatePositions()}_updatePositions(){const t=this.get("sprite");if(t){let e=t.localBounds(),i=t.get("scale",1),s=20,r=(e.right-e.left)*i+s,o=(e.bottom-e.top)*i+s,a=t.get("rotation",0);const l=this.rectangle;let c=t.get("centerX",n.CI),u=t.get("centerY",n.CI),d=0;c instanceof n.gG&&(d=c.value);let p=0;u instanceof n.gG&&(p=u.value),l.setAll({centerX:c,centerY:u,width:r,height:o}),this.setAll({x:t.x()+s*(d-.5)*h.cos(a)-s*(p-.5)*h.sin(a),y:t.y()+s*(p-.5)*h.cos(a)+s*(d-.5)*h.sin(a),width:r,height:o,rotation:a}),this.gripT.setAll({x:(.5-d)*r,y:-p*o}),this.gripB.setAll({x:(.5-d)*r,y:(1-p)*o}),this.gripL.setAll({x:-d*r,y:(.5-p)*o}),this.gripR.setAll({x:(1-d)*r,y:(.5-p)*o}),this.rectangle.setAll({width:r,height:o})}}}l.className="SpriteResizer",l.classNames=s.W.classNames.concat([l.className])},2036:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(4596),n=i(2132),r=i(5071),o=i(7652),a=i(7449);class h extends s.j{constructor(){super(...arguments),this.textStyle=this._root._renderer.makeTextStyle(),this._display=this._root._renderer.makeText("",this.textStyle),this._textStyles=["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}_updateBounds(){if(this.get("text")){super._updateBounds();let t=this.get("fillGradient");t&&(this._display.style.fill=t.getFill(this))}else{let t={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=t}}_changed(){super._changed(),this._display.clear();let t=this.textStyle;if(this.isDirty("opacity")){let t=this.get("opacity",1);this._display.alpha=t}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),"tooltip"==this.get("role")&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new a.ku((()=>{this._root._removeTooltipElement(this)}))),this.isDirty("width")&&(t.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(t.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(t.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(t.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(t.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(t.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){const e=this.get("fill"),i=this.get("fillGradient"),s=this.get("fillOpacity");if(i){if(e){const t=i.get("stops",[]);t.length&&r.each(t,(t=>{t.color&&!t.colorInherited||!e||(t.color=e,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=s,t.opacityInherited=!0)}))}t.fill=i.getFill(this)}else e&&(t.fill=e)}if(this.isDirty("fillOpacity")){let e=this.get("fillOpacity",1);e&&(t.fillOpacity=e)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(t.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(t.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),r.each(this._textStyles,(e=>{this._dirty[e]&&(t[e]=this.get(e),this.markDirtyBounds())})),t.fontSize=this.get("fontSize"),t.fontFamily=this.get("fontFamily"),this._display.style=t,this.isDirty("role")&&"tooltip"==this.get("role")&&this._root.updateTooltip(this)}_getText(){let t=this.get("text","");return this.get("maxChars")&&(t=o.truncateTextWithEllipsis(t,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?(0,n.q)(this,t):t}_getAccessibleText(){const t=this.get("ariaLabel");return void 0!==t?this.get("populateText")?(0,n.q)(this,t):t:this._getText()}markDirtyText(){this._display.text=this._getText(),"tooltip"==this.get("role")&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(t){super._setDataItem(t),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}h.className="Text",h.classNames=s.j.classNames.concat([h.className])},2438:function(t,e,i){"use strict";i.d(e,{d:function(){return n}});var s=i(2077);class n extends s.x{}n.className="Tick",n.classNames=s.x.classNames.concat([n.className])},2876:function(t,e,i){"use strict";i.d(e,{u:function(){return d}});var s=i(7449),n=i(962),r=i(8931),o=i(8777),a=i(6245),h=i(1112),l=i(751),c=i(5071),u=i(7652);class d extends o.W{constructor(t,e,i,s=[]){super(t,e,i,s),this._fx=0,this._fy=0,this._w=0,this._h=0,this._htmlContentHovered=!1}_afterNew(){this._settings.themeTags=u.mergeTags(this._settings.themeTags,["tooltip"]),super._afterNew(),this._setDefaultFn("background",(()=>r.i.new(this._root,{}))).set("themeTags",["tooltip","background"]),this._label=this.children.push(n._.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",(()=>{this._updateBackground()}))),this._disposers.push(this.on("bounds",(()=>{this._updateBackground()}))),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",(t=>{t&&(this._disposers.push(u.addEventListener(t,"pointerover",(t=>{this._htmlContentHovered=!0}))),this._disposers.push(u.addEventListener(t,"pointerout",(t=>{this._htmlContentHovered=!1}))))}))),this.on("visible",(t=>{this._handleReaderAnnouncement()})),this.label.events.on("dataitemchanged",(t=>{this._handleReaderAnnouncement()})),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),c.remove(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width"),null!=this.get("labelText")&&this.label.set("text",this.get("labelText")),null!=this.get("labelHTML")&&this.label.set("html",this.get("labelHTML")),null!=this.get("labelAriaLabel")&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover"))if(this.get("keepTargetHover")){const t=this.get("background");this._keepHoverDp=new s.FV([t.events.on("pointerover",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),e.hover())})),t.events.on("pointerout",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),this._htmlContentHovered||e.unhover())}))]),this.label.onPrivate("htmlElement",(e=>{this._keepHoverDp&&e&&this._keepHoverDp.disposers.push(u.addEventListener(e,"pointerleave",(e=>{const i=this.root._renderer.getEvent(e);t.events.dispatch("pointerout",{type:"pointerout",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))}))}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let t=this.get("tooltipTarget");const e=this.get("background");let i,s;if(t&&e){if(i=t.get("fill"),s=t.get("stroke"),null==i&&(i=s),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),null!=i&&e.set("fill",i),this._fillDp=t.on("fill",(t=>{null!=t&&(e.set("fill",t),this._updateTextColor(t))})),this._disposers.push(this._fillDp)),this.get("getFillGradientFromSprite")){this._fillGrDp&&this._fillGrDp.dispose();let i=t.get("fillGradient");null!=i&&e.set("fillGradient",i),this._fillGrDp=t.on("fillGradient",(t=>{null!=t&&e.set("fillGradient",t)})),this._disposers.push(this._fillGrDp)}this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),null!=i&&e.set("stroke",i),this._strokeDp=t.on("fill",(t=>{null!=t&&e.set("stroke",t)})),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),null!=i&&this.label.set("fill",i),this._labelDp=t.on("fill",(t=>{null!=t&&this.label.set("fill",t)})),this._disposers.push(this._labelDp))}this._updateTextColor(i)}_updateTextColor(t){this.get("autoTextColor")&&(null==t&&(t=this.get("background").get("fill")),null==t&&(t=this._root.interfaceColors.get("background")),t instanceof h.Il&&this.label.set("fill",h.Il.alternative(t,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(t){super._setDataItem(t),this.label._setDataItem(t)}_updateBackground(){super.updateBackground();const t=this._root.container;if(t){let e=.5,i=.5,s=this.get("centerX");s instanceof a.gG&&(e=s.value);let n=this.get("centerY");n instanceof a.gG&&(i=n.value);let o=t.width(),h=t.height(),c=this.parent,u=0,d=0;if(c){u=c.x(),d=c.y();const t=c.get("layerMargin");t&&(u+=t.left||0,d+=t.top||0,o+=(t.left||0)+(t.right||0),h+=(t.top||0)+(t.bottom||0))}const p=this.get("bounds",{left:-u,top:-d,right:o-u,bottom:h-d});this._updateBounds();let g=this.width(),f=this.height();0===g&&(g=this._w),0===f&&(f=this._h);let _=this.get("pointTo",{x:o/2,y:h/2}),m=_.x,y=_.y,v=this.get("pointerOrientation"),w=this.get("background"),b=0,x=0,D=0;w instanceof r.i&&(b=w.get("pointerLength",0),x=w.get("strokeWidth",0)/2,D=x,w.set("width",g),w.set("height",f));let k=0,T=0,M=p.right-p.left,E=p.bottom-p.top;"horizontal"==v||"left"==v||"right"==v?(x=0,"horizontal"==v?m>p.left+M/2?(m-=g*(1-e)+b,D*=-1):m+=g*e+b:"left"==v?m+=g*(1-e)+b:(m-=g*e+b,D*=-1)):(D=0,"vertical"==v?y>p.top+f/2+b?y-=f*(1-i)+b:(y+=f*i+b,x*=-1):"down"==v?y-=f*(1-i)+b:(y+=f*i+b,x*=-1)),m=l.fitToRange(m,p.left+g*e,p.left+M-g*(1-e))+D,y=l.fitToRange(y,p.top+f*i,p.top+E-f*(1-i))-x,k=_.x-m+g*e+D,T=_.y-y+f*i-x,this._fx=m,this._fy=y;const O=this.get("animationDuration",0);if(O>0&&this.get("visible")&&this.get("opacity")>.1){const t=this.get("animationEasing");this.animate({key:"x",to:m,duration:O,easing:t}),this.animate({key:"y",to:y,duration:O,easing:t})}else this.set("x",m),this.set("y",y);w instanceof r.i&&(w.set("pointerX",k),w.set("pointerY",T)),g>0&&(this._w=g),f>0&&(this._h=f)}}}d.className="Tooltip",d.classNames=o.W.classNames.concat([d.className])},941:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){const t=this.width(),e=this.height(),i=this._display;i.moveTo(-t/2,e/2),i.lineTo(0,-e/2),i.lineTo(t/2,e/2),i.lineTo(-t/2,e/2),i.closePath()}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Triangle",n.classNames=s.T.classNames.concat([n.className])},1706:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingTop",0),i=t.innerHeight(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minHeight",t.getPrivate("minHeight",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.height()),i-=e+t.get("marginTop",0)+t.get("marginBottom",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginTop",0)-t.get("marginBottom",0),n=t.get("minHeight",t.getPrivate("minHeight",-1/0)),r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("height",s)}else t._prevSettings.height instanceof r.gG&&t.setPrivate("height",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginTop",0),s=e.top,n=e.bottom,r=t.get("maxHeight");r&&n-s>r&&(n=s+r);let o=t.get("marginBottom",0),h=a+i-s;t.setPrivate("y",h),a=h+n+o}else t.setPrivate("y",void 0)}))}}o.className="VerticalLayout",o.classNames=s.A.classNames.concat([o.className])},6044:function(t,e,i){"use strict";i.d(e,{H:function(){return h}});var s=i(8777),n=i(8054),r=i(1479),o=i(7449),a=i(2647);class h extends s.W{constructor(){super(...arguments),this.homeButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["home"]})),this.plusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["plus"]})),this.minusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["minus"]}))}_afterNew(){super._afterNew(),this.set("position","absolute"),this.set("layout",this._root.verticalLayout),this.addTag("zoomtools"),this.plusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.minusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.homeButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("target")){const t=this.get("target"),e=this._prevSettings.target;t&&(t instanceof a.Y&&(this._targetDisposer=this.addDisposer(t.contents.on("scale",(e=>{e==t.get("minZoomLevel")?this.minusButton.set("disabled",!0):this.minusButton.set("disabled",!1),e==t.get("maxZoomLevel")?this.plusButton.set("disabled",!0):this.plusButton.set("disabled",!1)}))),this.root.events.once("frameended",(()=>{t.get("scale")==t.get("minZoomLevel")&&this.minusButton.set("disabled",!0)}))),this._disposer=new o.FV([this.plusButton.events.on("click",(()=>{t.zoomIn()})),this.minusButton.events.on("click",(()=>{t.zoomOut()})),this.homeButton.events.on("click",(()=>{t.goHome()}))])),e&&(this._disposer&&this._disposer.dispose(),this._targetDisposer&&this._targetDisposer.dispose())}}}h.className="ZoomTools",h.classNames=s.W.classNames.concat([h.className])},2647:function(t,e,i){"use strict";i.d(e,{Y:function(){return u}});var s=i(8777),n=i(6245),r=i(7142),o=i(1112),a=i(7652),h=i(751),l=i(256),c=i(5040);class u extends s.W{constructor(){super(...arguments),this._movePoints={},this._downScale=1,this._downX=0,this._downY=0,this.contents=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,x:0,y:0,draggable:!0,background:r.A.new(this._root,{fill:(0,o.$_)(16777215),fillOpacity:0})}))}_afterNew(){super._afterNew();const t=this.contents.events;this._disposers.push(t.on("pointerdown",(t=>{this._handleThisDown(t)}))),this._disposers.push(t.on("globalpointerup",(t=>{this._handleThisUp(t)}))),this._disposers.push(t.on("globalpointermove",(t=>{this._handleThisMove(t)})));const e=this.contents.get("background");e&&(e.adapters.add("width",(t=>20*Number(t))),e.adapters.add("height",(t=>20*Number(t))),e.adapters.add("x",(t=>Number(t)-e.width()/2)),e.adapters.add("y",(t=>Number(t)-e.height()/2)));const i=this.contents;i.adapters.add("x",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.width();t=Math.min(n*s,t),t=Math.max(this.width()-n*e*(1+s),t)}return t})),i.adapters.add("y",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.height();t=Math.min(n*s,t),t=Math.max(this.height()-n*e*(1+s),t)}return t}))}_prepareChildren(){super._prepareChildren(),this.isDirty("wheelable")&&this._handleSetWheel(),this.contents._display.cancelTouch=this.get("pinchZoom",!1)}_handleSetWheel(){this.get("wheelable")?(this._wheelDp&&this._wheelDp.dispose(),this._wheelDp=this.events.on("wheel",(t=>{const e=t.originalEvent;if(!a.isLocalEvent(e,this))return;e.preventDefault();const i=this.toLocal(t.point);this._handleWheelZoom(e.deltaY,i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_handleWheelZoom(t,e){let i=this.get("zoomStep",2),s=this.contents.get("scale",1),n=s;t>0?n=s/i:t<0&&(n=s*i),n!=s&&this.zoomToPoint(e,n)}zoomToPoint(t,e){e&&(e=h.fitToRange(e,this.get("minZoomLevel",1),this.get("maxZoomLevel",32)));const i=this.contents.get("scale",1);let s=t.x,n=t.y,r=s,o=n;const a=this.contents;let l=r-(s-a.x())/i*e,c=o-(n-a.y())/i*e;return this._animateTo(l,c,e),this._za}zoomIn(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)*this.get("zoomStep",2))}zoomOut(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)/this.get("zoomStep",2))}goHome(){return this._animateTo(0,0,1)}_animateTo(t,e,i){const s=this.get("animationDuration",0),n=this.get("animationEasing"),r=this.contents;this._txa=r.animate({key:"x",to:t,duration:s,easing:n}),this._tya=r.animate({key:"y",to:e,duration:s,easing:n}),this._za=r.animate({key:"scale",to:i,duration:s,easing:n})}_handleThisUp(t){this._downPoints={}}_handleThisDown(t){const e=this.contents;this._downScale=e.get("scale",1);const i=e._downPoints;let s=l.keys(i).length;if(1==s){let e=i[1];e||(e=i[0]),e&&e.x==t.point.x&&e.y==t.point.y&&(s=0)}if(s>0){this._downX=e.x(),this._downY=e.y();const t=e._getDownPointId();if(t){let i=this._movePoints[t];i&&(e._downPoints[t]=i)}}}_handleThisMove(t){const e=t.originalEvent.pointerId;this.get("pinchZoom")&&e&&(this._movePoints[e]=t.point,l.keys(this.contents._downPoints).length>1)&&this._handlePinch()}_handlePinch(){let t=0,e=[],i=[];if(l.each(this.contents._downPoints,((s,n)=>{e[t]=n;let r=this._movePoints[s];r&&(i[t]=r),t++})),e.length>1&&i.length>1){this.contents._isDragging=!1;let t=e[0],s=e[1],n=i[0],r=i[1];if(t&&s&&n&&r){t=this.toLocal(t),s=this.toLocal(s),n=this.toLocal(n),r=this.toLocal(r);let e=Math.hypot(s.x-t.x,s.y-t.y),i=Math.hypot(r.x-n.x,r.y-n.y)/e*this._downScale,o={x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2},a={x:t.x+(s.x-t.x)/2,y:t.y+(s.y-t.y)/2},h=this._downX||0,l=this._downY||0,c=this._downScale,u=o.x-(-h+a.x)/c*i,d=o.y-(-l+a.y)/c*i;this.contents.setAll({x:u,y:d,scale:i})}}}}u.className="ZoomableContainer",u.classNames=s.W.classNames.concat([u.className])},4102:function(t,e,i){"use strict";i.d(e,{mM:function(){return at},uK:function(){return rt}});var s=i(4680),n=i(1112);class r{constructor(t=1,e=0,i=0,s=1,n=0,r=0){this.a=t,this.b=e,this.c=i,this.d=s,this.tx=n,this.ty=r}setTransform(t,e,i,s,n,r=1){this.a=Math.cos(n)*r,this.b=Math.sin(n)*r,this.c=-Math.sin(n)*r,this.d=Math.cos(n)*r,this.tx=t-(i*this.a+s*this.c),this.ty=e-(i*this.b+s*this.d)}apply(t){return{x:this.a*t.x+this.c*t.y+this.tx,y:this.b*t.x+this.d*t.y+this.ty}}applyInverse(t){const e=1/(this.a*this.d+this.c*-this.b);return{x:this.d*e*t.x+-this.c*e*t.y+(this.ty*this.c-this.tx*this.d)*e,y:this.a*e*t.y+-this.b*e*t.x+(-this.ty*this.a+this.tx*this.b)*e}}append(t){const e=this.a,i=this.b,s=this.c,n=this.d;this.a=t.a*e+t.b*s,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*s,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*s+this.tx,this.ty=t.tx*i+t.ty*n+this.ty}prepend(t){const e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){const e=this.a,i=this.c;this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty}copyFrom(t){this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty}}var o=i(6245),a=i(7449),h=i(7255),l=i(7652),c=i(5071),u=i(256),d=i(5040),p=i(751),g=2*Math.PI,f=function(t,e,i,s,n,r,o){var a=t.x,h=t.y;return{x:s*(a*=e)-n*(h*=i)+r,y:n*a+s*h+o}},_=function(t,e){var i=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),s=Math.cos(t),n=Math.sin(t),r=Math.cos(t+e),o=Math.sin(t+e);return[{x:s-n*i,y:n+s*i},{x:r+o*i,y:o-r*i},{x:r,y:o}]},m=function(t,e,i,s){var n=t*i+e*s;return n>1&&(n=1),n<-1&&(n=-1),(t*s-e*i<0?-1:1)*Math.acos(n)},y=function(t){var e=t.px,i=t.py,s=t.cx,n=t.cy,r=t.rx,o=t.ry,a=t.xAxisRotation,h=void 0===a?0:a,l=t.largeArcFlag,c=void 0===l?0:l,u=t.sweepFlag,d=void 0===u?0:u,p=[];if(0===r||0===o)return[];var y=Math.sin(h*g/360),v=Math.cos(h*g/360),w=v*(e-s)/2+y*(i-n)/2,b=-y*(e-s)/2+v*(i-n)/2;if(0===w&&0===b)return[];r=Math.abs(r),o=Math.abs(o);var x=Math.pow(w,2)/Math.pow(r,2)+Math.pow(b,2)/Math.pow(o,2);x>1&&(r*=Math.sqrt(x),o*=Math.sqrt(x));var D=function(t,e,i,s,n,r,o,a,h,l,c,u){var d=Math.pow(n,2),p=Math.pow(r,2),f=Math.pow(c,2),_=Math.pow(u,2),y=d*p-d*_-p*f;y<0&&(y=0),y/=d*_+p*f;var v=(y=Math.sqrt(y)*(o===a?-1:1))*n/r*u,w=y*-r/n*c,b=l*v-h*w+(t+i)/2,x=h*v+l*w+(e+s)/2,D=(c-v)/n,k=(u-w)/r,T=(-c-v)/n,M=(-u-w)/r,E=m(1,0,D,k),O=m(D,k,T,M);return 0===a&&O>0&&(O-=g),1===a&&O<0&&(O+=g),[b,x,E,O]}(e,i,s,n,r,o,c,d,y,v,w,b),k=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],s=!0,n=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);s=!0);}catch(t){n=!0,r=t}finally{try{!s&&a.return&&a.return()}finally{if(n)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(D,4),T=k[0],M=k[1],E=k[2],O=k[3],P=Math.abs(O)/(g/4);Math.abs(1-P)<1e-7&&(P=1);var S=Math.max(Math.ceil(P),1);O/=S;for(var N=0;N1){const e=/^([01])([01])(.*)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t.splice(i,0,e[2]),++i,e[3].length>0?t[i]=e[3]:t.splice(i,1))}if(++i,s=t[i],s.length>1){const e=/^([01])(.+)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t[i]=e[2])}}}function D(t){if(0===t||1===t)return t;throw new Error("Flag must be 0 or 1")}function k(t,e){for(;(!t.interactive||e(t))&&t._parent;)t=t._parent}function T(t,e,i){return l.addEventListener(t,l.getRendererEvent(e),(t=>{const e=l.getEventTarget(t);let s=t.touches;s?(0==s.length&&(s=t.changedTouches),i(c.copy(s),e)):i([t],e)}))}function M(t){const e=document.createElement("canvas");e.width=1,e.height=1;const i=e.getContext("2d",{willReadFrequently:!0});i.drawImage(t,0,0,1,1);try{return i.getImageData(0,0,1,1),!1}catch(e){return console.warn('Image "'+t.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function E(t){t.width=0,t.height=0,t.style.width="0px",t.style.height="0px"}function O(t){return Math.floor(t)+.5}class P{constructor(){this._x=0,this._y=0}get x(){return this._x}get y(){return this._y}set x(t){this._x=t}set y(t){this._y=t}}class S extends a.KK{constructor(t){super(),this.mask=null,this.visible=!0,this.exportable=!0,this.interactive=!1,this.inactive=null,this.wheelable=!1,this.cancelTouch=!1,this.isMeasured=!1,this.buttonMode=!1,this.alpha=1,this.compoundAlpha=1,this.angle=0,this.scale=1,this.x=0,this.y=0,this.crisp=!1,this.pivot=new P,this._localMatrix=new r,this._matrix=new r,this._uMatrix=new r,this._renderer=t}subStatus(t){return{inactive:null==this.inactive?t.inactive:this.inactive,layer:this._layer||t.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let t=this;for(;;){if(t._layer)return t._layer;if(!t._parent)return this._renderer.defaultLayer;t=t._parent}}setLayer(t,e){if(null==t)this._layer=void 0;else{const i=!0;this._layer=this._renderer.getLayer(t,i),this._layer.visible=i,this._layer.margin=e,e&&l.setInteractive(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost()}}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(t){}_getColorId(){return void 0===this._colorId&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(t){return!t.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(t){return this._isInteractive(t)}contains(t){for(;;){if(t===this)return!0;if(!t._parent)return!1;t=t._parent}}toGlobal(t){return this._matrix.apply(t)}toLocal(t){return this._matrix.applyInverse(t)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){if(!this._localBounds){const t=1e7;this._localBounds={left:t,top:t,right:-t,bottom:-t},this._addBounds(this._localBounds)}return this._localBounds}getAdjustedBounds(t){this._setMatrix();const e=this.getLocalMatrix(),i=e.apply({x:t.left,y:t.top}),s=e.apply({x:t.right,y:t.top}),n=e.apply({x:t.right,y:t.bottom}),r=e.apply({x:t.left,y:t.bottom});return{left:Math.min(i.x,s.x,n.x,r.x),top:Math.min(i.y,s.y,n.y,r.y),right:Math.max(i.x,s.x,n.x,r.x),bottom:Math.max(i.y,s.y,n.y,r.y)}}on(t,e,i){return this.interactive?this._renderer._addEvent(this,t,e,i):new a.ku((()=>{}))}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(t,e){const i=this._matrix;let s=i.tx*e,n=i.ty*e;this.crisp&&(s=O(s),n=O(n)),t.setTransform(i.a*e,i.b*e,i.c*e,i.d*e,s,n)}_transformMargin(t,e,i){const s=this._matrix;t.setTransform(s.a*e,s.b*e,s.c*e,s.d*e,(s.tx+i.left)*e,(s.ty+i.top)*e)}_transformLayer(t,e,i){i.margin?this._transformMargin(t,i.scale||e,i.margin):this._transform(t,i.scale||e)}render(t,e=0){if(this.visible&&(!1!==this.exportable||!this._renderer._omitTainted)){this._setMatrix();const i=this.subStatus(t),s=this._renderer.resolution,n=this._renderer.layers,r=this._renderer._ghostLayer,o=r.context,a=this.mask;a&&a._setMatrix(),c.each(n,(t=>{if(t){const e=t.context;e.save(),a&&(a._transformLayer(e,s,t),a._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(e,s,t),this.filter&&(e.filter=this.filter)}})),o.save(),a&&this._isInteractiveMask(i)&&(a._transformMargin(o,s,r.margin),a._runPath(o),o.clip()),this._transformMargin(o,s,r.margin),i.layer.order>0&&!e&&c.move(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,e),o.restore(),c.each(n,(t=>{t&&t.context.restore()}))}}_render(t,e=0){!1===this.exportable&&(t.layer.tainted=!0)}_ghostOnly(t=0){return t>0}_drawGhost(t,e=0){const i=this._isInteractive(t),s=t.layer.order||0;return!(!i||(0!=s||this._ghostOnly(e))&&s!=e)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some((t=>t.value===this))}shouldCancelTouch(){const t=this._renderer;return!(t.tapToActivate&&!t._touchActive)&&(!!this.cancelTouch||!!this._parent&&this._parent.shouldCancelTouch())}}class N extends S{constructor(){super(...arguments),this.interactiveChildren=!0,this._children=[]}_isInteractiveMask(t){return this.interactiveChildren||super._isInteractiveMask(t)}addChild(t){t._parent=this,this._children.push(t),t._layer&&this.registerChildLayer(t._layer)}addChildAt(t,e){t._parent=this,this._children.splice(e,0,t),t._layer&&this.registerChildLayer(t._layer)}removeChild(t){t._parent=void 0,c.removeFirst(this._children,t)}_render(t,e){super._render(t);const i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,c.each(this._children,(i=>{i.compoundAlpha=this.compoundAlpha*this.alpha,i.render(t,e)})),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(t){this._childLayers||(this._childLayers=[]),c.pushOne(this._childLayers,t),this._parent&&this._parent.registerChildLayer(t)}markDirtyLayer(t=!1){super.markDirtyLayer(),t&&this._childLayers&&c.each(this._childLayers,(t=>t.dirty=!0))}_dispose(){super._dispose(),this._childLayers&&c.each(this._childLayers,(t=>{t.dirty=!0}))}}function C(t,e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.right=Math.max(t.right,e.x),t.bottom=Math.max(t.bottom,e.y)}class L{colorize(t,e){}colorizeGhost(t,e){this.colorize(t,e)}path(t){}pathGhost(t){this.path(t)}addBounds(t){}}class A extends L{colorize(t,e){t.beginPath()}}class R extends L{constructor(t){super(),this.color=t}colorize(t,e){t.fillStyle=void 0!==e?e:this.color}}class U extends L{constructor(t){super(),this.clearShadow=t}colorize(t,e){t.fill(),this.clearShadow&&(t.shadowColor="",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}}class B extends L{colorize(t,e){t.stroke()}}class F extends L{constructor(t,e,i,s){super(),this.width=t,this.color=e,this.lineJoin=i,this.lineCap=s}colorize(t,e){t.strokeStyle=void 0!==e?e:this.color,t.lineWidth=this.width,this.lineJoin&&(t.lineJoin=this.lineJoin),this.lineCap&&(t.lineCap=this.lineCap)}}class I extends L{constructor(t){super(),this.dash=t}colorize(t,e){t.setLineDash(this.dash)}}class H extends L{constructor(t){super(),this.dashOffset=t}colorize(t,e){t.lineDashOffset=this.dashOffset}}class z extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.width=i,this.height=s}path(t){t.rect(this.x,this.y,this.width,this.height)}addBounds(t){const e=this.x,i=this.y,s=e+this.width,n=i+this.height;C(t,{x:e,y:i}),C(t,{x:s,y:i}),C(t,{x:e,y:n}),C(t,{x:s,y:n})}}class G extends L{constructor(t,e,i){super(),this.x=t,this.y=e,this.radius=i}path(t){t.moveTo(this.x+this.radius,this.y),t.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radius,y:this.y-this.radius}),C(t,{x:this.x+this.radius,y:this.y+this.radius})}}class V extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.radiusX=i,this.radiusY=s}path(t){t.ellipse(0,0,this.radiusX,this.radiusY,0,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radiusX,y:this.y-this.radiusY}),C(t,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class W extends L{constructor(t,e,i,s,n,r){super(),this.cx=t,this.cy=e,this.radius=i,this.startAngle=s,this.endAngle=n,this.anticlockwise=r}path(t){this.radius>0&&t.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(t){let e=p.getArcBounds(this.cx,this.cy,this.startAngle*p.DEGREES,this.endAngle*p.DEGREES,this.radius);C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}class Y extends L{constructor(t,e,i,s,n){super(),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.radius=n}path(t){this.radius>0&&t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(t){}}class j extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.lineTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class X extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.moveTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class $ extends L{path(t){t.closePath()}}class Z extends L{constructor(t,e,i,s,n,r){super(),this.cpX=t,this.cpY=e,this.cpX2=i,this.cpY2=s,this.toX=n,this.toY=r}path(t){t.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.cpX2,y:this.cpY2}),C(t,{x:this.toX,y:this.toY})}}class K extends L{constructor(t,e,i,s){super(),this.cpX=t,this.cpY=e,this.toX=i,this.toY=s}path(t){t.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.toX,y:this.toY})}}class q extends L{constructor(t,e,i,s,n){super(),this.color=t,this.blur=e,this.offsetX=i,this.offsetY=s,this.opacity=n}colorize(t,e){this.opacity&&(t.fillStyle=this.color),t.shadowColor=this.color,t.shadowBlur=this.blur,t.shadowOffsetX=this.offsetX,t.shadowOffsetY=this.offsetY}colorizeGhost(t,e){}}class Q extends L{constructor(t,e,i,s,n){super(),this.image=t,this.width=e,this.height=i,this.x=s,this.y=n}path(t){t.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(t){C(t,{x:this.x,y:this.y}),C(t,{x:this.width,y:this.height})}}class J extends S{constructor(){super(...arguments),this._operations=[],this.blendMode=s.b.NORMAL,this._hasShadows=!1}clear(){super.clear(),this._operations.length=0}_pushOp(t){this._operations.push(t)}beginFill(t,e=1){this._fillAlpha=e,t?t instanceof n.Il?this._pushOp(new R(t.toCSS(e))):(this.isMeasured=!0,this._pushOp(new R(t))):this._pushOp(new R("rgba(0, 0, 0, "+e+")"))}endFill(){this._pushOp(new U(this._hasShadows))}endStroke(){this._pushOp(new B)}beginPath(){this._pushOp(new A)}lineStyle(t=0,e,i=1,s,r){this._strokeAlpha=i,e?e instanceof n.Il?this._pushOp(new F(t,e.toCSS(i),s,r)):this._pushOp(new F(t,e,s,r)):this._pushOp(new F(t,"rgba(0, 0, 0, "+i+")",s,r))}setLineDash(t){this._pushOp(new I(t||[]))}setLineDashOffset(t=0){this._pushOp(new H(t))}drawRect(t,e,i,s){this._pushOp(new z(t,e,i,s))}drawCircle(t,e,i){this._pushOp(new G(t,e,i))}drawEllipse(t,e,i,s){this._pushOp(new V(t,e,i,s))}arc(t,e,i,s,n,r=!1){this._pushOp(new W(t,e,i,s,n,r))}arcTo(t,e,i,s,n){this._pushOp(new Y(t,e,i,s,n))}lineTo(t,e){this._pushOp(new j(t,e))}moveTo(t,e){this._pushOp(new X(t,e))}bezierCurveTo(t,e,i,s,n,r){this._pushOp(new Z(t,e,i,s,n,r))}quadraticCurveTo(t,e,i,s){this._pushOp(new K(t,e,i,s))}closePath(){this._pushOp(new $)}shadow(t,e=0,i=0,s=0,n){this._hasShadows=!0,this._pushOp(new q(n?t.toCSS(n):t.toCSS(this._fillAlpha||this._strokeAlpha),e,i,s))}image(t,e,i,s,n){this._pushOp(new Q(t,e,i,s,n))}svgPath(t){let e=0,i=0,s=null,n=null,r=null,o=null;const a=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,h=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g,l=this._operations.length;try{let l;for(;null!==(l=a.exec(t));){const t=l[1],a=l[2],u=[];for(;null!==(l=h.exec(a));)u.push(l[1]);switch("S"!==t&&"s"!==t&&"C"!==t&&"c"!==t&&(s=null,n=null),"Q"!==t&&"q"!==t&&"T"!==t&&"t"!==t&&(r=null,o=null),t){case"M":b(t,u.length,2),e=+u[0],i=+u[1],this.moveTo(e,i);for(let t=2;t{this.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y),e=t.x,i=t.y}))}break;case"Z":case"z":v(t,u.length,0),this.closePath()}}}catch(e){this._operations.length=l,console.warn("Error when parsing svgPath:\n "+e.message+"\n"+t)}}_runPath(t){t.beginPath(),c.each(this._operations,(e=>{e.path(t)}))}_render(t,e=0){super._render(t);const i=t.layer.dirty,s=this._isInteractive(t),n=this._ghostOnly(e),r=this._drawGhost(t,e);if(i||s||n){const e=t.layer.context,s=this._renderer._ghostLayer.context;let o;i&&!n&&(e.globalCompositeOperation=this.blendMode,e.beginPath()),r&&(s.beginPath(),o=this._getColorId()),c.each(this._operations,(t=>{i&&!n&&(t.path(e),t.colorize(e,void 0)),r&&(t.pathGhost(s),t.colorizeGhost(s,o))}))}}renderDetached(t){if(this.visible){this._setMatrix(),t.save();const e=this.mask;e&&(e._setMatrix(),e._transform(t,1),e._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transform(t,1),this.filter&&(t.filter=this.filter),t.globalCompositeOperation=this.blendMode,t.beginPath(),c.each(this._operations,(e=>{e.path(t),e.colorize(t,void 0)})),t.restore()}}_addBounds(t){this.visible&&this.isMeasured&&c.each(this._operations,(e=>{e.addBounds(t)}))}}class tt extends S{constructor(t,e,i){super(t),this.resolution=1,this.textVisible=!0,this._originalScale=1,this.text=e,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_shared(t){this.style.textAlign&&(t.textAlign=this.style.textAlign),this.style.direction&&(t.direction=this.style.direction),this.style.textBaseline&&(t.textBaseline=this.style.textBaseline)}_prerender(t,e=!1,i=!1){super._render(t);const s=t.layer.context,r=this._renderer._ghostLayer.context,o=this.style;let a=this._getFontStyle(void 0,i);s.font=a,this._isInteractive(t)&&!e&&(r.font=a),o.fill&&(o.fill instanceof n.Il?s.fillStyle=o.fill.toCSS(null!=o.fillOpacity?o.fillOpacity:1):s.fillStyle=o.fill),o.shadowColor&&(t.layer.context.shadowColor=o.shadowColor.toCSS(o.shadowOpacity||1)),o.shadowBlur&&(t.layer.context.shadowBlur=o.shadowBlur),o.shadowOffsetX&&(t.layer.context.shadowOffsetX=o.shadowOffsetX),o.shadowOffsetY&&(t.layer.context.shadowOffsetY=o.shadowOffsetY),this._shared(s),this._isInteractive(t)&&!e&&(r.fillStyle=this._getColorId(),this._shared(r))}_getFontStyle(t,e=!1){const i=this.style;let s=[];return t&&t.fontVariant?s.push(t.fontVariant):i.fontVariant&&s.push(i.fontVariant),e||(t&&t.fontWeight?s.push(t.fontWeight):i.fontWeight&&s.push(i.fontWeight)),t&&t.fontStyle?s.push(t.fontStyle):i.fontStyle&&s.push(i.fontStyle),t&&t.fontSize?(d.isNumber(t.fontSize)&&(t.fontSize=t.fontSize+"px"),s.push(t.fontSize)):i.fontSize&&(d.isNumber(i.fontSize)&&(i.fontSize=i.fontSize+"px"),s.push(i.fontSize)),t&&t.fontFamily?s.push(t.fontFamily):i.fontFamily?s.push(i.fontFamily):s.length&&s.push("Arial"),s.join(" ")}_render(t,e=0){if(this._textInfo||this._measure(t),this.textVisible){const i=this._isInteractive(t),s=t.layer.context,r=t.layer.dirty,o=this._renderer._ghostLayer.context,a=this._ghostOnly(e),l=this._drawGhost(t,e);s.save(),o.save(),this._prerender(t),c.each(this._textInfo,((e,u)=>{c.each(e.textChunks,((c,u)=>{if(c.style&&(s.save(),o.save(),a||(s.font=c.style),this._isInteractive(t)&&(o.font=c.style)),c.fill&&(s.save(),a||(s.fillStyle=c.fill.toCSS())),r&&!a&&s.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),"underline"==c.textDecoration||"line-through"==c.textDecoration){let t=1,i=1,r=c.height;const o=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(o)>-1){const t=this._measureText(c.text,s);c.width=t.actualBoundingBoxLeft+t.actualBoundingBoxRight}let l,u=c.offsetX;switch(this.style.textAlign){case"right":case"end":u-=c.width;break;case"center":u-=c.width/2}if(c.style)switch(h.V.getTextStyle(c.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":t=2}r&&(i=r/20),l="line-through"==c.textDecoration?t+e.offsetY+c.offsetY-c.height/2:t+1.5*i+e.offsetY+c.offsetY,a||(s.save(),s.beginPath(),c.fill?s.strokeStyle=c.fill.toCSS():this.style.fill&&this.style.fill instanceof n.Il&&(s.strokeStyle=this.style.fill.toCSS()),s.lineWidth=t*i,s.moveTo(u,l),s.lineTo(u+c.width,l),s.stroke(),s.restore())}i&&this.interactive&&l&&o.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),c.fill&&s.restore(),c.style&&(s.restore(),o.restore())}))})),s.restore(),o.restore()}}_addBounds(t){if(this.visible&&this.isMeasured){const e=this._measure({inactive:this.inactive,layer:this.getLayer()});C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction;this._textInfo=[];const n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=d.isNumber(r)&&("wrap"==n||"wrap-no-break"==n);e.save(),i.save(),this._prerender(t,!0,this._ignoreFontWeight());const p="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",g=this.text.toString().replace(/\r/g,"").split(/\n/);let f,_=!0,m=0,y=0,v=0;c.each(g,((t,s)=>{let n;for(n=""==t?[{type:"value",text:""}]:h.V.chunk(t,!1,this.style.ignoreFormatting);n.length>0;){let t={offsetY:v,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const s=this._measureText(p,e),g=s.actualBoundingBoxAscent+s.actualBoundingBoxDescent;let w;t.height=g,t.ascent=s.actualBoundingBoxAscent;let b,x,D,k=this.style.textDecoration,T=!1,M=!0,E=[];c.eachContinue(n,((s,o)=>{if("format"==s.type)if("[/]"==s.text)_||(e.restore(),i.restore(),_=!0),b=void 0,f=void 0,x=void 0,k=this.style.textDecoration,D=void 0,w=s.text;else{_||(e.restore(),i.restore());let n=h.V.getTextStyle(s.text);const r=this._getFontStyle(n);e.save(),i.save(),e.font=r,f=r,w=s.text,n.textDecoration&&(k=n.textDecoration),n.fill&&(b=n.fill),n.width&&(x=d.toNumber(n.width)),n.verticalAlign&&(D=n.verticalAlign),_=!1;const o=this._measureText(p,e),a=o.actualBoundingBoxAscent+o.actualBoundingBoxDescent;a>t.height&&(t.height=a),o.actualBoundingBoxAscent>t.ascent&&(t.ascent=o.actualBoundingBoxAscent)}else if("value"==s.type&&!T){const i=this._measureText(s.text,e);let h=i.actualBoundingBoxLeft+i.actualBoundingBoxRight;if(a){this.truncated=void 0;let i=M||this.style.breakWords||!1;const n=this.style.ellipsis||"",o=this._measureText(n,e),a=o.actualBoundingBoxLeft+o.actualBoundingBoxRight;if(t.width+h>r){const o=r-t.width-a;s.text=this._truncateText(e,s.text,o,i),s.text+=n,T=!0,this.truncated=!0}}else if(u&&t.width+h>r){const i=r-t.width,a=this._truncateText(e,s.text,i,!1,M&&"wrap-no-break"!=this.style.oversizedBehavior);if(""==a)return this.textVisible=!0,!1;E=n.slice(o+1),l.trim(a)!=l.trim(s.text)&&(E.unshift({type:"value",text:s.text.substr(a.length)}),w&&E.unshift({type:"format",text:w})),s.text=l.trim(a),n=[],T=!0}let c=1,d=1;if(f&&x&&x>h){const t=h/x;switch(this.style.textAlign){case"right":case"end":c=t;break;case"center":c=t,d=t;break;default:d=t}h=x}const p=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent;p>t.height&&(t.height=p),i.actualBoundingBoxAscent>t.ascent&&(t.ascent=i.actualBoundingBoxAscent),t.width+=h,t.left+=i.actualBoundingBoxLeft/c,t.right+=i.actualBoundingBoxRight/d,t.textChunks.push({style:f,fill:b,text:s.text,width:h,height:p,left:i.actualBoundingBoxLeft,right:i.actualBoundingBoxRight,ascent:i.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:k,verticalAlign:D}),M=!1}return!0})),this.style.lineHeight instanceof o.gG?(t.height*=this.style.lineHeight.value,t.ascent*=this.style.lineHeight.value):(t.height*=this.style.lineHeight||1.2,t.ascent*=this.style.lineHeight||1.2),m{let i=0;c.each(t.textChunks,(e=>{if(e.offsetX=i+e.left-t.left,e.offsetY+=t.height-t.height*(this.style.baselineRatio||.19),i+=e.width*(s?-1:1),e.verticalAlign)switch(e.verticalAlign){case"super":e.offsetY-=t.height/2-e.height/2;break;case"sub":e.offsetY+=e.height/2}}))}));const w={left:s?-y:-m,top:0,right:s?m:y,bottom:v};if("none"!==n){const t=this._fitRatio(w);if(t<1)if("fit"==n)d.isNumber(this.style.minScale)&&ti&&""!=e);return e}_measureText(t,e){let i=e.measureText(t),s={};if(null==i.actualBoundingBoxAscent){const e=document.createElement("div");e.innerText=t,e.style.visibility="hidden",e.style.position="absolute",e.style.top="-1000000px;",e.style.fontFamily=this.style.fontFamily||"",e.style.fontSize=this.style.fontSize+"",document.body.appendChild(e);const n=e.getBoundingClientRect();document.body.removeChild(e);const r=n.height,o=i.width;s={actualBoundingBoxAscent:r,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:o,fontBoundingBoxAscent:r,fontBoundingBoxDescent:0,width:o}}else s={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const n=i.width;switch(this.style.textAlign){case"right":case"end":s.actualBoundingBoxLeft=n,s.actualBoundingBoxRight=0;break;case"center":s.actualBoundingBoxLeft=n/2,s.actualBoundingBoxRight=n/2;break;default:s.actualBoundingBoxLeft=0,s.actualBoundingBoxRight=n}return s}}class et{constructor(){this.lineHeight=(0,o.aQ)(120),this.baselineRatio=.19,this.oversizedBehavior="none",this.breakWords=!1,this.ellipsis="…",this.ignoreFormatting=!1}}class it extends tt{constructor(){super(...arguments),this.textType="circular",this.inside=!1,this.orientation="auto",this.kerning=0,this._textReversed=!1}_render(t,e=0){"circular"===this.textType?this._renderCircular(t,e):super._render(t,e)}_renderCircular(t,e=0){if(this.textVisible){this._prerender(t);const i=this._isInteractive(t),s=t.layer.context,n=t.layer.dirty,r=this._renderer._ghostLayer.context;s.save(),i&&r.save(),this._textInfo||this._measure(t);let o=this.radius||0,a=this.startAngle||0,h=0,l=this.orientation,u="auto"==l?"auto":"inward"==l;const d=this.inside,g=this.style.textAlign||"left",f=this.kerning||0;let _="left"==g?1:-1;const m=!this._textReversed,y=this._ghostOnly(e),v=this._drawGhost(t,e);if("auto"==u){let t=0,e=0;c.each(this._textInfo,((e,i)=>{const s=a+e.width/(o-e.height)/2*-_;s>t&&(t=s)})),e="left"==g?(t+h/2)*p.DEGREES:"right"==g?(t-h/2)*p.DEGREES:a*p.DEGREES,e=p.normalizeAngle(e),u=e>=270||e<=90}1==u&&m&&(this._textInfo.reverse(),this._textReversed=!0),c.each(this._textInfo,((t,e)=>{const l=t.height;d||(o+=l),(-1==_&&u||1==_&&!u)&&m&&t.textChunks.reverse();let p=a;h=0,"center"==g&&(p+=t.width/(o-l)/2*-_,h=p-a),p+=Math.PI*(u?0:1),s.save(),i&&r.save(),y||s.rotate(p),i&&r.rotate(p);let w=0;c.each(t.textChunks,((t,e)=>{const a=t.text,h=t.width;w=h/2/(o-l)*_,y||s.rotate(w),i&&r.rotate(w),t.style&&(s.save(),r.save(),y||(s.font=t.style),i&&(r.font=t.style)),t.fill&&(s.save(),y||(s.fillStyle=t.fill.toCSS())),y||(s.textBaseline="middle",s.textAlign="center"),i&&(r.textBaseline="middle",r.textAlign="center"),n&&!y&&s.fillText(a,0,(u?1:-1)*(0-o+l/2)),i&&v&&r.fillText(a,0,(u?1:-1)*(0-o+l/2)),t.fill&&s.restore(),t.style&&(s.restore(),r.restore()),w=(h/2+f)/(o-l)*_,y||s.rotate(w),i&&r.rotate(w)})),s.restore(),i&&r.restore(),d&&(o-=l)})),s.restore(),i&&r.restore()}}_measure(t){return"circular"===this.textType?this._measureCircular(t):super._measure(t)}_measureCircular(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction,n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=this.style.ellipsis||"";let p;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,e.save(),i.save(),this._prerender(t,!0);const g=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,_=0,m=0;return c.each(g,((t,n)=>{let g,y,v,w=h.V.chunk(t,!1,this.style.ignoreFormatting),b={offsetY:m,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};c.each(w,((t,n)=>{if("format"==t.type){if("[/]"==t.text)f||(e.restore(),i.restore(),f=!0),y=void 0,g=void 0,v=void 0;else{let s=h.V.getTextStyle(t.text);const n=this._getFontStyle(s);e.save(),i.save(),e.font=n,g=n,s.fill&&(y=s.fill),s.width&&(v=d.toNumber(s.width)),f=!1}a&&(p=this._measureText(u,e))}else if("value"==t.type){let i=t.text.match(/./gu)||[];s&&(i=l.splitString(t.text),i.reverse());for(let t=0;to&&(o=v);const h=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;if(h>b.height&&(b.height=h),n.actualBoundingBoxAscent>b.ascent&&(b.ascent=n.actualBoundingBoxAscent),_+=o,a){p||(p=this._measureText(u,e));const t=p.actualBoundingBoxLeft+p.actualBoundingBoxRight;if(_+t>r){1==b.textChunks.length?this.textVisible=!1:(b.width+=t,b.left+=p.actualBoundingBoxLeft,b.right+=p.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:u,width:t,height:h+p.actualBoundingBoxDescent,left:p.actualBoundingBoxLeft,right:p.actualBoundingBoxRight,ascent:p.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0}));break}}b.width+=o,b.left+=n.actualBoundingBoxLeft,b.right+=n.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:s,width:o,height:h+n.actualBoundingBoxDescent,left:n.actualBoundingBoxLeft,right:n.actualBoundingBoxRight,ascent:n.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0})}}})),this.style.lineHeight instanceof o.gG?b.height*=this.style.lineHeight.value:b.height*=this.style.lineHeight||1.2,this._textInfo.push(b),m+=b.height})),f||(e.restore(),i.restore()),"hide"==n&&_>r&&(this.textVisible=!1),c.each(this._textInfo,(t=>{c.each(t.textChunks,(e=>{e.offsetY+=Math.round((t.height-e.height+(t.ascent-e.ascent))/2)}))})),e.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class st extends S{constructor(t,e){super(t),this.image=e}_dispose(){super._dispose(),this._imageMask&&E(this._imageMask)}getLocalBounds(){if(!this._localBounds){let t=0,e=0;this.width&&(t=this.width),this.height&&(e=this.height),this._localBounds={left:0,top:0,right:t,bottom:e},this._addBounds(this._localBounds)}return this._localBounds}_render(t,e=0){if(super._render(t),this.image){if(void 0===this.tainted&&(this.tainted=M(this.image),t.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;const i=this._ghostOnly(e),s=this._drawGhost(t,e);if(t.layer.dirty&&!i){this.shadowColor&&(t.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(t.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(t.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(t.layer.context.shadowOffsetY=this.shadowOffsetY);const e=this.width||this.image.naturalWidth,i=this.height||this.image.naturalHeight;t.layer.context.drawImage(this.image,0,0,e,i)}if(this.interactive&&this._isInteractive(t)&&s){const t=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(t,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(t){if(void 0===this._imageMask){const e=this.width||t.naturalWidth,i=this.height||t.naturalHeight,s=document.createElement("canvas");s.width=e,s.height=i;const n=s.getContext("2d");n.imageSmoothingEnabled=!1,n.fillStyle=this._getColorId(),n.fillRect(0,0,e,i),M(t)||(n.globalCompositeOperation="destination-in",n.drawImage(t,0,0,e,i)),this._imageMask=s}return this._imageMask}}class nt{constructor(t,e,i,s){this.event=t,this.originalPoint=e,this.point=i,this.bbox=s,this.simulated=!1,this.native=!0,l.supports("touchevents")&&t instanceof Touch?this.id=t.identifier:this.id=null}}class rt extends a.rk{constructor(t){if(super(),this.view=document.createElement("div"),this._layerDom=document.createElement("div"),this.layers=[],this._dirtyLayers=[],this.defaultLayer=this.getLayer(0),this._ghostLayer=new ot,this._deferredGhostLayers=[],this._patternCanvas=document.createElement("canvas"),this._patternContext=this._patternCanvas.getContext("2d"),this._realWidth=0,this._realHeight=0,this._calculatedWidth=0,this._calculatedHeight=0,this.interactionsEnabled=!0,this._listeners={},this._events={},this._colorId=0,this._colorMap={},this._forceInteractive=0,this._omitTainted=!1,this._hovering=new Set,this._dragging=[],this._mousedown=[],this.tapToActivate=!1,this.tapToActivateTimeout=3e3,this._touchActive=!1,this.resolution=null==t?window.devicePixelRatio:t,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new a.ku((()=>{u.each(this._events,((t,e)=>{e.disposer.dispose()})),c.each(this.layers,(t=>{E(t.view),t.exportableView&&E(t.exportableView)})),E(this._ghostLayer.view),E(this._patternCanvas)}))),this._disposers.push(l.onZoom((()=>{null==t&&(this.resolution=window.devicePixelRatio)}))),l.supports("touchevents")){const t=t=>{0!==this._dragging.length&&c.eachContinue(this._dragging,(e=>!e.value.shouldCancelTouch()||(t.preventDefault(),!1))),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(l.addEventListener(window,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchmove",(()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()}),{passive:!0})),this._disposers.push(l.addEventListener(window,"click",(t=>{this._touchActive=!1}),{passive:!0})),this._disposers.push(l.addEventListener(this.view,"click",(t=>{window.setTimeout((()=>{this._touchActive=!0,this._delayTouchDeactivate()}),100)}),{passive:!0}))}l.supports("wheelevents")&&this._disposers.push(l.addEventListener(this.view,"wheel",(t=>{let e=!1;this._hovering.forEach((t=>{if(t.wheelable)return e=!0,!1})),e&&t.preventDefault()}),{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout((()=>{this._touchActive=!1}),this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(t){t?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(t,e,i,s){return this.defaultLayer.context.createLinearGradient(t,e,i,s)}createRadialGradient(t,e,i,s,n,r){return this.defaultLayer.context.createRadialGradient(t,e,i,s,n,r)}createPattern(t,e,i,s,n){return this._patternCanvas.width=s,this._patternCanvas.height=n,this._patternContext.clearRect(0,0,s,n),e.renderDetached(this._patternContext),t.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new N(this)}makeGraphics(){return new J(this)}makeText(t,e){return new tt(this,t,e)}makeTextStyle(){return new et}makeRadialText(t,e){return new it(this,t,e)}makePicture(t){return new st(this,t)}resizeLayer(t){t.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(t,e,i,s){this._realWidth=t,this._realHeight=e,this._calculatedWidth=i,this._calculatedHeight=s,c.each(this.layers,(t=>{t&&(t.dirty=!0,this.resizeLayer(t))})),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(t=!1){const e=document.createElement("canvas"),i=e.getContext("2d",{willReadFrequently:t}),s=new at(e,i);return e.style.position="absolute",e.style.top="0px",e.style.left="0px",s}getLayerByOrder(t){const e=this.layers,i=e.length;for(let s=0;st.order>e.order?1:t.order{t&&t.dirty&&t.visible&&(this._dirtyLayers.push(t),t.clear())})),this._ghostLayer.clear(),t.render({inactive:null,layer:this.defaultLayer});const e=this._deferredGhostLayers;if(e.length&&(e.sort(((t,e)=>t-e)),c.each(e,(e=>{t.render({inactive:null,layer:this.defaultLayer},e)}))),this._ghostLayer.context.restore(),c.each(this.layers,(t=>{if(t){const e=t.context;e.beginPath(),e.moveTo(0,0),e.stroke()}})),c.each(this._dirtyLayers,(t=>{t.context.restore(),t.dirty=!1})),this._hovering.size&&this._lastPointerMoveEvent){const{events:t,target:e,native:i}=this._lastPointerMoveEvent;c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))}}paintId(t){const e=function(t){const e=[0,0,0];for(let i=0;i<24;i++)e[i%3]<<=1,e[i%3]|=1&t,t>>=1;return(0|e[0])+(e[1]<<8)+(e[2]<<16)}(++this._colorId),i=n.Il.fromHex(e).toCSS();return this._colorMap[i]=t,i}_removeObject(t){void 0!==t._colorId&&delete this._colorMap[t._colorId]}_adjustBoundingBox(t){const e=this._ghostLayer.margin;return new DOMRect(-e.left,-e.top,t.width+e.left+e.right,t.height+e.top+e.bottom)}getEvent(t,e=!0){const i=this.view.getBoundingClientRect(),s=t.clientX||0,n=t.clientY||0,r=this._calculatedWidth/this._realWidth,o=this._calculatedHeight/this._realHeight,a={x:s-i.left,y:n-i.top},h={x:(s-(e?i.left:0))*r,y:(n-(e?i.top:0))*o};return new nt(t,a,h,this._adjustBoundingBox(i))}_getHitTarget(t,e,i){if(0===e.width||0===e.height||t.xe.right||t.ye.bottom)return;if(!i||!this._layerDom.contains(i))return;const s=this._ghostLayer.getImageData(t,e);if(0===s.data[0]&&0===s.data[1]&&0===s.data[2])return!1;const r=n.Il.fromRGB(s.data[0],s.data[1],s.data[2]).toCSS();return this._colorMap[r]}getObjectAtPoint(t){const e=this._ghostLayer.getImageArray(t);if(0===e[0]&&0===e[1]&&0===e[2])return;const i=n.Il.fromRGB(e[0],e[1],e[2]).toCSS();return this._colorMap[i]}_withEvents(t,e){const i=this._events[t];if(void 0!==i){i.dispatching=!0;try{e(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,c.keepIf(i.callbacks,(t=>!t.disposed)),0===i.callbacks.length&&(i.disposer.dispose(),delete this._events[t]))}}}_dispatchEventAll(t,e){this.interactionsEnabled&&this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.callback.call(t.context,e)}))}))}_dispatchEvent(t,e,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.object!==e||(t.callback.call(t.context,i),s=!0)}))})),s}_dispatchMousedown(t,e){const i=t.button;if(0!=i&&2!=i&&1!=i&&void 0!==i)return;const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);if(n){const t=s.id;let e=!1;k(n,(i=>{const n={id:t,value:i};return this._mousedown.push(n),!e&&this._dispatchEvent("pointerdown",i,s)&&(e=!0,this._dragging.some((e=>e.value===i&&e.id===t))||this._dragging.push(n)),!0}))}}_dispatchGlobalMousemove(t,e,i){const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);s.native=i,n?(this._hovering.forEach((t=>{t.contains(n)||(this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s))})),s.native&&k(n,(t=>(this._hovering.has(t)||(this._hovering.add(t),t.cursorOverStyle&&(t._replacedCursorStyle=l.getStyle(document.body,"cursor"),l.setStyle(document.body,"cursor",t.cursorOverStyle)),this._dispatchEvent("pointerover",t,s)),!0)))):(this._hovering.forEach((t=>{t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s)})),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(t){this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle)}_dispatchGlobalMouseup(t,e){const i=this.getEvent(t);i.native=e,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(t){if(0!==this._dragging.length){const e=this.getEvent(t),i=e.id;this._dragging.forEach((t=>{t.id===i&&this._dispatchEvent("pointermove",t.value,e)}))}}_dispatchDragEnd(t,e){const i=t.button;let s;if(0==i||void 0===i)s="click";else if(2==i)s="rightclick";else{if(1!=i)return;s="middleclick"}const n=this.getEvent(t),r=n.id;if(0!==this._mousedown.length){const t=this._getHitTarget(n.originalPoint,n.bbox,e);t&&this._mousedown.forEach((e=>{e.id===r&&e.value.contains(t)&&this._dispatchEvent(s,e.value,n)})),this._mousedown.length=0}0!==this._dragging.length&&(this._dragging.forEach((t=>{t.id===r&&this._dispatchEvent("pointerup",t.value,n)})),this._dragging.length=0)}_dispatchDoubleClick(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("dblclick",t,i)))}_dispatchWheel(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("wheel",t,i)))}_makeSharedEvent(t,e){if(void 0===this._listeners[t]){const i=e();this._listeners[t]=new a.DM((()=>{delete this._listeners[t],i.dispose()}))}return this._listeners[t].increment()}_onPointerEvent(t,e){let i=!1,s=null;function n(){s=null,i=!1}return new a.FV([new a.ku((()=>{null!==s&&clearTimeout(s),n()})),l.addEventListener(this.view,l.getRendererEvent(t),(t=>{i=!0,null!==s&&clearTimeout(s),s=window.setTimeout(n,0)})),T(window,t,((t,n)=>{null!==s&&(clearTimeout(s),s=null),e(t,n,i),i=!1}))])}_initEvent(t){switch(t){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",(()=>{const t=(t,e,i)=>{this._lastPointerMoveEvent={events:t,target:e,native:i},c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))};return new a.FV([this._onPointerEvent("pointerdown",t),this._onPointerEvent("pointermove",t)])}));case"globalpointerup":return this._makeSharedEvent("pointerup",(()=>{const t=this._onPointerEvent("pointerup",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}})),e=this._onPointerEvent("pointercancel",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}}));return new a.ku((()=>{t.dispose(),e.dispose()}))}));case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",(()=>{const t=this._onPointerEvent("pointerdown",((t,e)=>{c.each(t,(t=>{this._dispatchMousedown(t,e)}))})),e=this._onPointerEvent("pointermove",(t=>{c.each(t,(t=>{this._dispatchDragMove(t)}))})),i=this._onPointerEvent("pointerup",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))})),s=this._onPointerEvent("pointercancel",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))}));return new a.ku((()=>{t.dispose(),e.dispose(),i.dispose(),s.dispose()}))}));case"dblclick":return this._makeSharedEvent("dblclick",(()=>this._onPointerEvent("dblclick",((t,e)=>{c.each(t,(t=>{this._dispatchDoubleClick(t,e)}))}))));case"wheel":return this._makeSharedEvent("wheel",(()=>l.addEventListener(this.view,l.getRendererEvent("wheel"),(t=>{this._dispatchWheel(t,l.getEventTarget(t))}),{passive:!1})))}}_addEvent(t,e,i,s){let n=this._events[e];void 0===n&&(n=this._events[e]={disposer:this._initEvent(e),callbacks:[],dispatching:!1,cleanup:!1});const r={object:t,context:s,callback:i,disposed:!1};return n.callbacks.push(r),new a.ku((()=>{r.disposed=!0,n.dispatching?n.cleanup=!0:(c.removeFirst(n.callbacks,r),0===n.callbacks.length&&(n.disposer.dispose(),delete this._events[e]))}))}getCanvas(t,e){this.render(t),e||(e={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),n=Math.floor(this._calculatedHeight*this.resolution);if(e.minWidth&&e.minWidth>s){let t=e.minWidth/s;t>i&&(i=t*this.resolution)}if(e.minHeight&&e.minHeight>n){let t=e.minHeight/n;t>i&&(i=t*this.resolution)}if(e.maxWidth&&e.maxWidthn){let t=e.maxHeight/n;t{if(t&&t.visible&&(t.tainted||o)){d=!0,t.exportableView=t.view,t.exportableContext=t.context,t.view=document.createElement("canvas"),t.view.style.position="fixed",t.view.style.top="-10000px",this.view.appendChild(t.view),r.push(t.view);let e=0,o=0;t.margin&&(e+=t.margin.left||0+t.margin.right||0,o+=t.margin.top||0+t.margin.bottom||0),t.view.width=s+e,t.view.height=n+o,t.context=t.view.getContext("2d"),t.dirty=!0,t.scale=i}})),d&&(this._omitTainted=!0,this.render(t),this._omitTainted=!1),c.each(this.layers,(t=>{if(t&&t.visible){let e=0,i=0;t.margin&&(e=-(t.margin.left||0)*this.resolution,i=-(t.margin.top||0)*this.resolution),h.drawImage(t.view,e,i),t.exportableView&&(t.view=t.exportableView,t.exportableView=void 0),t.exportableContext&&(t.context=t.exportableContext,t.exportableContext=void 0),l{t.style.position="",t.style.top="",this.view.removeChild(t)})),a}}class ot{constructor(){this.margin={left:0,right:0,top:0,bottom:0},this._resolution=1,this._width=0,this._height=0,this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(t,e,i,s,n){this._resolution=n,t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(t,e){return this.context.getImageData(Math.round((t.x-e.left)/e.width*this._width),Math.round((t.y-e.top)/e.height*this._height),1,1)}getImageArray(t){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const e=this.imageArray,i=Math.round(t.x*this._resolution),s=4*(Math.round(t.y*this._resolution)*this._width+i);return[e[s],e[s+1],e[s+2],e[s+3]]}setMargin(t){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,c.each(t,(t=>{t.margin&&(this.margin.left=Math.max(this.margin.left,t.margin.left),this.margin.right=Math.max(this.margin.right,t.margin.right),this.margin.top=Math.max(this.margin.top,t.margin.top),this.margin.bottom=Math.max(this.margin.bottom,t.margin.bottom))}))}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class at{constructor(t,e){this.tainted=!0,this.order=0,this.visible=!0,this.dirty=!0,this._width=0,this._height=0,this.view=t,this.context=e}resize(t,e,i,s,n){null!=this.width&&(t=this.width,i=this.width),null!=this.height&&(e=this.height,s=this.height),this.margin?(t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}},4680:function(t,e,i){"use strict";var s;i.d(e,{b:function(){return s}}),function(t){t.ADD="lighter",t.COLOR="color",t.COLOR_BURN="color-burn",t.COLOR_DODGE="color-dodge",t.DARKEN="darken",t.DIFFERENCE="difference",t.DST_OVER="destination-over",t.EXCLUSION="exclusion",t.HARD_LIGHT="hard-light",t.HUE="hue",t.LIGHTEN="lighten",t.LUMINOSITY="luminosity",t.MULTIPLY="multiply",t.NORMAL="source-over",t.OVERLAY="overlay",t.SATURATION="saturation",t.SCREEN="screen",t.SOFT_LIGHT="soft-light",t.SRC_ATOP="source-atop",t.XOR="xor"}(s||(s={}))},1437:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}getFill(t){return{addColorStop:(t,e)=>{}}}_changed(){super._changed()}getBounds(t){const e=this.get("target");if(e){let i=e.globalBounds();const s=t.toLocal({x:i.left,y:i.top}),n=t.toLocal({x:i.right,y:i.top}),r=t.toLocal({x:i.right,y:i.bottom}),o=t.toLocal({x:i.left,y:i.bottom});return{left:Math.min(s.x,n.x,r.x,o.x),top:Math.min(s.y,n.y,r.y,o.y),right:Math.max(s.x,n.x,r.x,o.x),bottom:Math.max(s.y,n.y,r.y,o.y)}}return t._display.getLocalBounds()}}n.className="Gradient",n.classNames=s.JH.classNames.concat([n.className])},1747:function(t,e,i){"use strict";i.d(e,{o:function(){return h}});var s=i(1437),n=i(1112),r=i(5071),o=i(5040),a=i(751);class h extends s.p{getFill(t){const e=this.get("rotation",0);let i=this.getBounds(t),s=i.left||0,h=i.right||0,l=i.top||0,c=i.bottom||0,u=a.cos(e),d=a.sin(e),p=u*(h-s),g=d*(c-l);0==p&&(p=1),0==g&&(g=1);let f=Math.max(p,g);const _=this._root._renderer.createLinearGradient(s,l,s+f*u,l+f*d),m=this.get("stops");if(m){let t=0;r.each(m,(e=>{let i=e.offset;o.isNumber(i)||(i=t/(m.length-1));let s=e.opacity;o.isNumber(s)||(s=1);let r=e.color;if(r){const t=e.lighten;t&&(r=n.Il.lighten(r,t));const o=e.brighten;o&&(r=n.Il.brighten(r,o)),_.addColorStop(i,"rgba("+r.r+","+r.g+","+r.b+","+s+")")}t++}))}return _}}h.className="LinearGradient",h.classNames=s.p.classNames.concat([h.className])},3035:function(t,e,i){"use strict";i.d(e,{y:function(){return r}});var s=i(3437),n=i(5040);class r extends s.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("width",100),e=this.get("height",100),i=this.get("gap",0),s=this.get("strokeWidth",1);if(i){let n=i+s,r=e/n,o=this.get("angle",0)*Math.PI/180;if(0===o)for(let e=-r;e<2*r;e++){const i=Math.round(e*n-n/2)+.5;this._display.moveTo(-t,i),this._display.lineTo(2*t,i)}else{const i=Math.cos(o),s=Math.sin(o),r=2*Math.sqrt(t*t+e*e),a=n/Math.max(Math.abs(i),Math.abs(s)),h=2*Math.ceil(r/a);for(let t=-h;t0&&(r.beginFill(s,n),r.drawRect(0,0,e,i),r.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,r,t,e,i)}this._clear=!1}}n.className="Pattern",n.classNames=s.JH.classNames.concat([n.className])},4429:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(3437);class n extends s.c{_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const t=this.get("canvas");t&&(this.set("width",t.width),this.set("height",t.height))}_draw(){super._draw();const t=this.get("colorOpacity");void 0!==t&&(this._display.alpha=Math.max(0,t));const e=this._image;if(e){const t=this.get("width",100),i=this.get("height",100),s=this.get("fit","image");let n=0,r=0;"pattern"==s?(n=t,r=i,this.markDirty()):(n=e.width,r=e.height,"image"==s&&(this.set("width",n),this.set("height",r)));let o=0,a=0;this.get("centered",!0)&&(o=t/2-n/2,a=i/2-r/2),this._display.image(e,n,r,o,a)}const i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){const t=this.get("src");if(t){const e=new Image;e.src=t,e.decode().then((()=>{this._image=e,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{}))}}}n.className="PicturePattern",n.classNames=s.c.classNames.concat([n.className])},6490:function(t,e,i){"use strict";i.d(e,{SR:function(){return s},Wn:function(){return u},XG:function(){return p},ne:function(){return h},w6:function(){return l}});var s,n=i(7582),r=i(6245),o=i(1112),a=i(256);function h(t){return(0,n.mG)(this,void 0,void 0,(function*(){if(void 0!==t){const e=[];a.each(t,((t,i)=>{e.push(i.waitForStop())})),yield Promise.all(e)}}))}function l(t,e,i){return e+t*(i-e)}function c(t,e,i){return t>=1?i:e}function u(t,e,i){return new r.gG(l(t,e.percent,i.percent))}function d(t,e,i){return o.Il.interpolate(t,e,i)}function p(t,e){return"number"==typeof t&&"number"==typeof e?l:t instanceof r.gG&&e instanceof r.gG?u:t instanceof o.Il&&e instanceof o.Il?d:c}!function(t){t[t.Stopped=0]="Stopped",t[t.Playing=1]="Playing",t[t.Paused=2]="Paused"}(s||(s={}))},5071:function(t,e,i){"use strict";i.r(e),i.d(e,{add:function(){return v},any:function(){return r},copy:function(){return k},each:function(){return a},eachContinue:function(){return l},eachReverse:function(){return h},find:function(){return S},findIndex:function(){return O},findIndexReverse:function(){return P},findMap:function(){return C},findReverse:function(){return N},first:function(){return d},getFirstSortedIndex:function(){return R},getSortedIndex:function(){return A},has:function(){return D},indexOf:function(){return n},insert:function(){return p},insertIndex:function(){return M},keepIf:function(){return U},last:function(){return u},map:function(){return o},move:function(){return y},pushAll:function(){return f},pushOne:function(){return w},remove:function(){return _},removeFirst:function(){return m},removeIndex:function(){return E},replace:function(){return b},setIndex:function(){return g},shiftLeft:function(){return c},shuffle:function(){return L},slice:function(){return T},toArray:function(){return x}});var s=i(5040);function n(t,e){const i=t.length;for(let s=0;s0;)--i,e(t[i],i)}function l(t,e){const i=t.length;for(let s=0;s0;)if(--i,e(t[i],i))return i;return-1}function S(t,e){const i=O(t,e);if(-1!==i)return t[i]}function N(t,e){const i=P(t,e);if(-1!==i)return t[i]}function C(t,e){const i=t.length;for(let s=0;s>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,i=r+1):s=r}return{found:n,index:n?i-1:i}}function R(t,e){let i=0,s=t.length,n=!1;for(;i>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,s=r):s=r}return{found:n,index:i}}function U(t,e){let i=t.length;for(;i>0;)--i,e(t[i])||t.splice(i,1)}},1112:function(t,e,i){"use strict";i.d(e,{$_:function(){return a},Il:function(){return h}});var s=i(6490),n=i(7652),r=i(5040);function o(t){return"#"===t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0].repeat(2)+t[1].repeat(2)+t[2].repeat(2)),parseInt(t,16)}function a(t){return h.fromAny(t)}class h{constructor(t){this._hex=0|t}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return 255&this._hex}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+n.padString(this.r.toString(16),2)+n.padString(this.g.toString(16),2)+n.padString(this.b.toString(16),2)}toHSL(t=1){return n.rgbToHsl({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,e,i){const s=n.hslToRgb({h:t,s:e,l:i});return this.fromRGB(s.r,s.g,s.b)}toString(){return this.toCSSHex()}static fromHex(t){return new h(t)}static fromRGB(t,e,i){return new h((0|i)+(e<<8)+(t<<16))}static fromString(t){return new h(o(t))}static fromCSS(t){return new h(function(t){let e=(t=t.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return 0;let i="";for(let t=1;t<=3;t++){let s=parseInt(e[t]).toString(16);1==s.length&&(s="0"+s),i+=s}return o(i)}(t))}static fromAny(t){if(r.isString(t)){if("#"==t[0])return h.fromString(t);if("rgb"==t.substr(0,3))return h.fromCSS(t)}else{if(r.isNumber(t))return h.fromHex(t);if(t instanceof h)return h.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,e,i){const s=n.alternativeColor({r:t.r,g:t.g,b:t.b},e?{r:e.r,g:e.g,b:e.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(s.r,s.g,s.b)}static interpolate(t,e,i,n="rgb"){if("hsl"==n){const n=e.toHSL(),r=i.toHSL();return h.fromHSL((0,s.w6)(t,n.h,r.h),(0,s.w6)(t,n.s,r.s),(0,s.w6)(t,n.l,r.l))}return h.fromRGB((0,s.w6)(t,e.r,i.r),(0,s.w6)(t,e.g,i.g),(0,s.w6)(t,e.b,i.b))}static lighten(t,e){const i=n.lighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static brighten(t,e){const i=n.brighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static saturate(t,e){const i=n.saturate({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}}},2754:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});var s=i(6331),n=i(1112);class r extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const t=this.getPrivate("currentPass"),e=this.get("colors",[this.get("baseColor",n.Il.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",e.length);const i=this.getPrivate("numColors"),s=this.get("passOptions"),r=this.get("reuse");for(let o=0;o1;)r-=1;let a=i.s+(s.saturation||0)*t;a>1&&(a=1),a<0&&(a=0);let h=i.l+(s.lightness||0)*t;for(;h>1;)h-=1;e.push(n.Il.fromHSL(r,a,h))}}getIndex(t){const e=this.get("colors",[]),i=this.get("saturation");return t>=e.length?(this.generateColors(),this.getIndex(t)):null!=i?n.Il.saturate(e[t],i):e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}r.className="ColorSet",r.classNames=s.JH.classNames.concat([r.className])},9582:function(t,e,i){"use strict";i.d(e,{Q:function(){return r},k:function(){return n}});var s=i(7144);class n extends s.aV{incrementRef(){}decrementRef(){}_onPush(t){this.processor&&this.processor.processRow(t),super._onPush(t)}_onInsertIndex(t,e){this.processor&&this.processor.processRow(e),super._onInsertIndex(t,e)}_onSetIndex(t,e,i){this.processor&&this.processor.processRow(i),super._onSetIndex(t,e,i)}}class r{constructor(t){this._value=t}incrementRef(){}decrementRef(){}}},6460:function(t,e,i){"use strict";i.d(e,{C:function(){return h}});var s=i(6331),n=i(7255),r=i(462),o=i(5040),a=i(7652);class h extends s.JH{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i=!1){let s;void 0!==e&&""!==e||(e=this.get("dateFormat","yyyy-MM-dd"));let n=t;if(o.isObject(e))try{const t=this.get("intlLocales");return t?new Intl.DateTimeFormat(t,e).format(n):new Intl.DateTimeFormat(void 0,e).format(n)}catch(t){return"Invalid"}let r=this.parseFormat(e);const a=this._root.timezone;let h=n;return!a||this._root.utc||i||(n=a.convertLocal(n)),o.isNumber(n.getTime())?(s=this.applyFormat(n,r,i,h),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s):"Invalid date"}applyFormat(t,e,i=!1,s){let n,h,l,c,u,d,p,g,f=e.template,_=t.getTime();this._root.utc&&!i?(n=t.getUTCFullYear(),h=t.getUTCMonth(),l=t.getUTCDay(),c=t.getUTCDate(),u=t.getUTCHours(),d=t.getUTCMinutes(),p=t.getUTCSeconds(),g=t.getUTCMilliseconds()):(n=t.getFullYear(),h=t.getMonth(),l=t.getDay(),c=t.getDate(),u=t.getHours(),d=t.getMinutes(),p=t.getSeconds(),g=t.getMilliseconds());for(let i=0,m=e.parts.length;i=12?this._t("PM"):this._t("AM");break;case"aa":m=u>=12?this._t("P.M."):this._t("A.M.");break;case"aaa":m=u>=12?this._t("P"):this._t("A");break;case"h":m=a.get12Hours(u).toString();break;case"hh":m=a.padString(a.get12Hours(u),2,"0");break;case"H":m=u.toString();break;case"HH":m=a.padString(u,2,"0");break;case"K":m=a.get12Hours(u,0).toString();break;case"KK":m=a.padString(a.get12Hours(u,0),2,"0");break;case"k":m=(u+1).toString();break;case"kk":m=a.padString(u+1,2,"0");break;case"m":m=d.toString();break;case"mm":m=a.padString(d,2,"0");break;case"s":m=p.toString();break;case"ss":m=a.padString(p,2,"0");break;case"S":case"SS":case"SSS":m=Math.round(g/1e3*Math.pow(10,e.parts[i].length)).toString();break;case"x":m=_.toString();break;case"n":case"nn":case"nnn":m=a.padString(g,e.parts[i].length,"0");break;case"z":m=a.getTimeZone(s||t,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":m=a.getTimeZone(s||t,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":m=a.getTimeZone(s||t,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":m=a.getTimeZone(s||t,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let f=this._root.utc?"UTC":this._root.timezone;f instanceof r.r&&(f=f.name);const y=f?a.getTimezoneOffset(f,s||t):t.getTimezoneOffset();let v=Math.abs(y)/60,w=Math.floor(v),b=60*v-60*w;this._root.utc&&(w=0,b=0),"Z"==e.parts[i]?(m="GMT",m+=y>0?"-":"+",m+=a.padString(w,2)+":"+a.padString(b,2)):(m=y>0?"-":"+",m+=a.padString(w,2)+a.padString(b,2));break;case"i":m=t.toISOString();break;case"I":m=t.toUTCString()}f=f.replace(o.PLACEHOLDER,m)}return f}parseFormat(t){let e={template:"",parts:[]},i=n.V.chunk(t,!0);for(let t=0;t-1&&(l.year=parseInt(p[h.year])),h.year3>-1){let t=parseInt(p[h.year3]);t+=1e3,l.year=t}if(h.year2>-1){let t=parseInt(p[h.year2]);t+=t>50?1e3:2e3,l.year=t}if(h.year1>-1){let t=parseInt(p[h.year1]);t=10*Math.floor((new Date).getFullYear()/10)+t,l.year=t}if(h.monthLong>-1&&(l.month=this.resolveMonth(p[h.monthLong])),h.monthShort>-1&&(l.month=this.resolveShortMonth(p[h.monthShort])),h.month>-1&&(l.month=parseInt(p[h.month])-1),h.week>-1&&-1===h.day&&(l.month=0,l.day=a.getDayFromWeek(parseInt(p[h.week]),l.year,1,i)),h.day>-1&&(l.day=parseInt(p[h.day])),h.yearDay>-1&&(l.month=0,l.day=parseInt(p[h.yearDay])),h.hourBase0>-1&&(l.hour=parseInt(p[h.hourBase0])),h.hourBase1>-1&&(l.hour=parseInt(p[h.hourBase1])-1),h.hour12Base0>-1){let t=parseInt(p[h.hour12Base0]);11==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.hour12Base1>-1){let t=parseInt(p[h.hour12Base1]);12==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.minute>-1&&(l.minute=parseInt(p[h.minute])),h.second>-1&&(l.second=parseInt(p[h.second])),h.millisecond>-1){let t=parseInt(p[h.millisecond]);2==h.millisecondDigits?t*=10:1==h.millisecondDigits&&(t*=100),l.millisecond=t}if(h.timestamp>-1){l.timestamp=parseInt(p[h.timestamp]);const t=new Date(l.timestamp);l.year=t.getUTCFullYear(),l.month=t.getUTCMonth(),l.day=t.getUTCDate(),l.hour=t.getUTCHours(),l.minute=t.getUTCMinutes(),l.second=t.getUTCSeconds(),l.millisecond=t.getUTCMilliseconds()}h.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.zone])),h.iso>-1&&(l.year=o.toNumber(p[h.iso+0]),l.month=o.toNumber(p[h.iso+1])-1,l.day=o.toNumber(p[h.iso+2]),l.hour=o.toNumber(p[h.iso+3]),l.minute=o.toNumber(p[h.iso+4]),l.second=o.toNumber(p[h.iso+5]),l.millisecond=o.toNumber(p[h.iso+6]),"Z"==p[h.iso+7]||"z"==p[h.iso+7]?l.utc=!0:""!=p[h.iso+7]&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.iso+7]))),s=l.utc?new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else s=new Date(t);return s}resolveTimezoneOffset(t,e){if(e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let i=e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),s=i[1],n=i[2],r=i[3],o=60*parseInt(n)+parseInt(r);return"+"==s&&(o*=-1),o-(t||new Date).getTimezoneOffset()}return 0}resolveMonth(t){let e=this._months().indexOf(t);return e>-1||!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._months()).indexOf(t),e>-1)?e:0}resolveShortMonth(t){let e=this._shortMonths().indexOf(t);return e>-1?e:(e=this._months().indexOf(t),e>-1||this._root.language&&!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._shortMonths()).indexOf(t),e>-1)?e:0)}isAm(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1}getStringList(t){let e=[];for(let i=0;i{t.dispose()}))}}class a extends n{constructor(t){super(),this._disposers=t}_dispose(){s.each(this._disposers,(t=>{t.dispose()}))}get disposers(){return this._disposers}}class h extends n{_dispose(){null!=this._disposer&&(this._disposer.dispose(),this._disposer=void 0)}get(){return this._value}set(t,e){null!=this._disposer&&this._disposer.dispose(),this._disposer=e,this._value=t}reset(){this.set(void 0,void 0)}}class l extends r{constructor(){super(...arguments),this._counter=0}increment(){return++this._counter,new r((()=>{--this._counter,0===this._counter&&this.dispose()}))}}},798:function(t,e,i){"use strict";i.d(e,{$:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{constructor(){super(...arguments),this._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}}_setDefaults(){const t="_duration_millisecond",e="_duration_second",i="_duration_minute",s="_duration_hour",n="_duration_day",r="_duration_week",o="_duration_month",a="_minute",h="_hour",l="_day",c="_week",u="_week",d="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(t),second:this._t(t+"_second"),minute:this._t(t+a),hour:this._t(t+h),day:this._t(t+l),week:this._t(t+c),month:this._t(t+u),year:this._t(t+d)},second:{second:this._t(e),minute:this._t(e+a),hour:this._t(e+h),day:this._t(e+l),week:this._t(e+c),month:this._t(e+u),year:this._t(e+d)},minute:{minute:this._t(i),hour:this._t(i+h),day:this._t(i+l),week:this._t(i+c),month:this._t(i+u),year:this._t(i+d)},hour:{hour:this._t(s),day:this._t(s+l),week:this._t(s+c),month:this._t(s+u),year:this._t(s+d)},day:{day:this._t(n),week:this._t(n+c),month:this._t(n+u),year:this._t(n+d)},week:{week:this._t(r),month:this._t(r+u),year:this._t(r+d)},month:{month:this._t(o),year:this._t(o+d)},year:{year:this._t("_duration_year")}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s=i||this.get("baseUnit");void 0!==e&&""!==e||(e=null!=this.get("durationFormat")?this.get("durationFormat"):this.getFormat(a.toNumber(t),void 0,s)),e=o.cleanFormat(e);let n,r=this.parseFormat(e,s),h=Number(t);n=h>this.get("negativeBase")?r.positive:h{if(e.parsed)return;let i=e.source,s=[];s=e.source.match(/^\[([^\]]*)\]/),s&&s.length&&""!==s[0]&&(i=e.source.substr(s[0].length),e.color=s[1]);let r=n.V.chunk(i,!0);for(let t=0;t{"millisecond"==t&&1e3==i?(h.second++,h.millisecond=0):"second"==t&&60==i?(h.minute++,h.second=0):"minute"==t&&60==i?(h.hour++,h.minute=0):"hour"==t&&24==i?(h.day++,h.hour=0):"day"==t&&7==i&&-1!==e.parts.indexOf("w")?(h.week++,h.day=0):"day"==t&&30==i?(h.month++,h.day=0):"month"==t&&12==i&&(h.year++,h.month=0)}));for(let t=0,i=e.parts.length;t{if(t==e||i){if(s/n<=1)return i||(i=t),!1;i=t}return!0})),i}getMilliseconds(t,e){return e||(e=this.get("baseUnit")),t*this._getUnitValue(e)}_getUnitValue(t){return this._getUnitValues()[t]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}},9395:function(t,e,i){"use strict";i.r(e),i.d(e,{bounce:function(){return k},circle:function(){return c},cubic:function(){return o},elastic:function(){return P},exp:function(){return h},inOut:function(){return p},linear:function(){return n},out:function(){return d},pow:function(){return a},quad:function(){return r},sine:function(){return l},yoyo:function(){return u}});var s=i(751);function n(t){return t}function r(t){return t*t}function o(t){return t*t*t}function a(t,e){return Math.pow(t,e)}function h(t){return Math.pow(2,10*t-10)}function l(t){return 1-Math.cos(t*s.HALFPI)}function c(t){return 1-Math.sqrt(1-t*t)}function u(t){return function(e){return t(e<.5?2*e:2*(1-e))}}function d(t){return function(e){return 1-t(1-e)}}function p(t){return function(e){return e<=.5?t(2*e)/2:1-t(2*(1-e))/2}}let g=4/11,f=6/11,_=8/11,m=3/4,y=9/11,v=10/11,w=15/16,b=21/22,x=63/64,D=1/g/g;function k(t){return 1-function(t){return t{this._userSettings[t]=!0}))}get(t,e){const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._settings[t]=e}set(t,e){this._userSettings[t]=!0,this.setRaw(t,e)}remove(t){delete this._userSettings[t],delete this._settings[t]}setAll(t){o.entries(t).forEach((([t,e])=>{this.set(t,e)}))}_eachSetting(t){o.each(this._settings,t)}apply(){const t={stateAnimationEasing:!0,stateAnimationDuration:!0},e=this._entity.states.lookup("default");this._eachSetting(((i,s)=>{t[i]||(t[i]=!0,this!==e&&(i in e._settings||(e._settings[i]=this._entity.get(i))),this._entity.set(i,s))}))}applyAnimate(t){null==t&&(t=this._settings.stateAnimationDuration),null==t&&(t=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let e=this._settings.stateAnimationEasing;null==e&&(e=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",a.cubic)));const i=this._entity.states.lookup("default"),s={stateAnimationEasing:!0,stateAnimationDuration:!0},n={};return this._eachSetting(((r,o)=>{if(!s[r]){s[r]=!0,this!=i&&(r in i._settings||(i._settings[r]=this._entity.get(r)));const a=this._entity.animate({key:r,to:o,duration:t,easing:e});a&&(n[r]=a)}})),n}}class l{constructor(t){this._states={},this._entity=t}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new h(this._entity,e);return this._states[t]=i,i}}remove(t){delete this._states[t]}apply(t){const e=this._states[t];e&&e.apply(),this._entity._applyState(t)}applyAnimate(t,e){let i;const s=this._states[t];return s&&(i=s.applyAnimate(e)),this._entity._applyStateAnimated(t,e),i}}var c=i(3145),u=i(5071),d=i(3540);class p{constructor(t){this._callbacks={},this._disabled={},this._entity=t}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),this._entity._markDirtyKey(t),new s.ku((()=>{u.removeFirst(i,e)&&this._entity._markDirtyKey(t)}))}remove(t){const e=this._callbacks[t];void 0!==e&&(delete this._callbacks[t],0!==e.length&&this._entity._markDirtyKey(t))}enable(t){this._disabled[t]&&(delete this._disabled[t],this._entity._markDirtyKey(t))}disable(t){this._disabled[t]||(this._disabled[t]=!0,this._entity._markDirtyKey(t))}fold(t,e){if(!this._disabled[t]){const i=this._callbacks[t];if(void 0!==i)for(let s=0,n=i.length;s{if(this._stopped)t();else{const e=()=>{i.dispose(),t()},i=this.events.on("stopped",e)}}))}_checkEnded(){return!(this._loops>1&&(--this._loops,1))}_run(t){null!==this._oldTime&&(this._time+=t-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=t}_reset(t){this._oldTime=t,this._time=0}_value(t){return this._interpolate(this._easing(t),this._from,this._to)}}let f=0;class _{constructor(t){this.uid=++f,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._prevSettings={},this._prevPrivateSettings={},this._animatingSettings={},this._animatingPrivateSettings={},this._disposed=!1,this._userProperties={},this.enableDispose=!0,this._settings=t}_checkDirty(){o.keys(this._settings).forEach((t=>{this._userProperties[t]=!0,this._markDirtyKey(t)}))}resetUserSettings(){this._userProperties={}}_runAnimation(t){let e=r.SR.Stopped;if(!this.isDisposed()){let i=!1,s=!1;o.each(this._animatingSettings,((e,n)=>{if(n.stopped)this._stopAnimation(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.set(e,n._value(1)):(i=!0,n._reset(t),this._set(e,n._value(1))):(i=!0,this._set(e,n._value(s)))}else s=!0})),o.each(this._animatingPrivateSettings,((e,n)=>{if(n.stopped)this._stopAnimationPrivate(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.setPrivate(e,n._value(1)):(i=!0,n._reset(t),this._setPrivate(e,n._value(1))):(i=!0,this._setPrivate(e,n._value(s)))}else s=!0})),i?e=r.SR.Playing:s&&(e=r.SR.Paused)}return e}_markDirtyKey(t){this.markDirty()}_markDirtyPrivateKey(t){this.markDirty()}on(t,e){let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}off(t,e){let i=this._settingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._settingEvents[t]}onPrivate(t,e){let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}offPrivate(t,e){let i=this._privateSettingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._privateSettingEvents[t]}getRaw(t,e){const i=this._settings[t];return void 0!==i?i:e}has(t){return t in this._settings}get(t,e){return this.getRaw(t,e)}_sendKeyEvent(t,e){const i=this._settingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_sendPrivateKeyEvent(t,e){const i=this._privateSettingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_setRaw(t,e,i){this._prevSettings[t]=e,this._sendKeyEvent(t,i)}setRaw(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&this._setRaw(t,i,e)}_set(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&(this._setRaw(t,i,e),this._markDirtyKey(t))}_stopAnimation(t){const e=this._animatingSettings[t];e&&(delete this._animatingSettings[t],e.stop())}set(t,e){return this._set(t,e),this._stopAnimation(t),e}remove(t){t in this._settings&&(this._prevSettings[t]=this._settings[t],delete this._settings[t],this._sendKeyEvent(t,void 0),this._markDirtyKey(t)),this._stopAnimation(t)}removeAll(){u.each(o.keys(this._settings),(t=>{this.remove(t)}))}getPrivate(t,e){const i=this._privateSettings[t];return void 0!==i?i:e}_setPrivateRaw(t,e,i){this._prevPrivateSettings[t]=e,this._sendPrivateKeyEvent(t,i)}setPrivateRaw(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&this._setPrivateRaw(t,i,e)}_setPrivate(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&(this._setPrivateRaw(t,i,e),this._markDirtyPrivateKey(t))}_stopAnimationPrivate(t){const e=this._animatingPrivateSettings[t];e&&(e.stop(),delete this._animatingPrivateSettings[t])}setPrivate(t,e){return this._setPrivate(t,e),this._stopAnimationPrivate(t),e}removePrivate(t){t in this._privateSettings&&(this._prevPrivateSettings[t]=this._privateSettings[t],delete this._privateSettings[t],this._markDirtyPrivateKey(t)),this._stopAnimationPrivate(t)}setAll(t){o.each(t,((t,e)=>{this.set(t,e)}))}animate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.get(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.set(e,i);else{if(void 0!==r&&r!==i){this.set(e,r);const t=this._animatingSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.set(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}animatePrivate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.getPrivate(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.setPrivate(e,i);else{if(void 0!==r&&r!==i){this.setPrivate(e,r);const t=this._animatingPrivateSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.setPrivate(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}}class m extends _{constructor(t,e,i,s=[]){if(super(e),this.states=new l(this),this.adapters=new p(this),this.events=this._createEvents(),this._userPrivateProperties={},this._dirty={},this._dirtyPrivate={},this._templates=[],this._defaultThemes=[],this._templateDisposers=[],this._disposers=[],this._runSetup=!0,this._disposerProperties={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t,this._internalTemplates=s,e.id&&this._registerId(e.id)}static new(t,e,i){const s=new this(t,e,!0);return s._template=i,s._afterNew(),s}static _new(t,e,i=[]){const s=new this(t,e,!0,i);return s._afterNew(),s}_afterNew(){this._checkDirty();let t=!1;const e=this._template;e&&(t=!0,e._setObjectTemplate(this)),u.each(this._internalTemplates,(e=>{t=!0,e._setObjectTemplate(this)})),t&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const t=this._template;t&&t._setObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._setObjectTemplate(this)})),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new n.p}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(t,e){const i=this.get(t);if(i)return i;{const i=e();return this.set(t,i),i}}_setDefault(t,e){this.has(t)||super.set(t,e)}_setRawDefault(t,e){this.has(t)||super.setRaw(t,e)}_clearDirty(){o.keys(this._dirty).forEach((t=>{this._dirty[t]=!1})),o.keys(this._dirtyPrivate).forEach((t=>{this._dirtyPrivate[t]=!1}))}isDirty(t){return!!this._dirty[t]}isPrivateDirty(t){return!!this._dirtyPrivate[t]}_markDirtyKey(t){this._dirty[t]=!0,super._markDirtyKey(t)}_markDirtyPrivateKey(t){this._dirtyPrivate[t]=!0,super._markDirtyKey(t)}isType(t){return-1!==this.classNames.indexOf(t)}_pushPropertyDisposer(t,e){let i=this._disposerProperties[t];return void 0===i&&(i=this._disposerProperties[t]=[]),i.push(e),e}_disposeProperty(t){const e=this._disposerProperties[t];void 0!==e&&(u.each(e,(t=>{t.dispose()})),delete this._disposerProperties[t])}set template(t){const e=this._template;e!==t&&(this._template=t,e&&e._removeObjectTemplate(this),t&&t._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(t){}_applyStateAnimated(t,e){}get(t,e){const i=this.adapters.fold(t,this._settings[t]);return void 0!==i?i:e}isUserSetting(t){return this._userProperties[t]||!1}set(t,e){return this._userProperties[t]=!0,super.set(t,e)}setRaw(t,e){this._userProperties[t]=!0,super.setRaw(t,e)}_setSoft(t,e){return this._userProperties[t]?e:super.set(t,e)}remove(t){delete this._userProperties[t],this._removeTemplateProperty(t)}setPrivate(t,e){return this._userPrivateProperties[t]=!0,super.setPrivate(t,e)}setPrivateRaw(t,e){this._userPrivateProperties[t]=!0,super.setPrivateRaw(t,e)}removePrivate(t){delete this._userPrivateProperties[t],this._removeTemplatePrivateProperty(t)}_setTemplateProperty(t,e,i){this._userProperties[e]||t===this._findTemplateByKey(e)&&super.set(e,i)}_setTemplatePrivateProperty(t,e,i){this._userPrivateProperties[e]||t===this._findTemplateByPrivateKey(e)&&super.setPrivate(e,i)}_removeTemplateProperty(t){if(!this._userProperties[t]){const e=this._findTemplateByKey(t);e?super.set(t,e._settings[t]):super.remove(t)}}_removeTemplatePrivateProperty(t){if(!this._userPrivateProperties[t]){const e=this._findTemplateByPrivateKey(t);e?super.setPrivate(t,e._privateSettings[t]):super.removePrivate(t)}}_walkParents(t){t(this._root._rootContainer),t(this)}_applyStateByKey(t){const e=this.states.create(t,{}),i={};this._eachTemplate((s=>{const n=s.states.lookup(t);n&&n._apply(e,i)})),o.each(e._settings,(t=>{i[t]||e._userSettings[t]||e.remove(t)}))}_applyTemplate(t,e){this._templateDisposers.push(t._apply(this,e)),o.each(t._settings,((t,i)=>{e.settings[t]||this._userProperties[t]||(e.settings[t]=!0,super.set(t,i))})),o.each(t._privateSettings,((t,i)=>{e.privateSettings[t]||this._userPrivateProperties[t]||(e.privateSettings[t]=!0,super.setPrivate(t,i))})),this._runSetup&&t.setup&&(this._runSetup=!1,t.setup(this))}_findStaticTemplate(t){if(this._template&&t(this._template))return this._template}_eachTemplate(t){this._findStaticTemplate((e=>(t(e),!1))),u.eachReverse(this._internalTemplates,t),u.each(this._templates,t)}_applyTemplates(t=!0){t&&this._disposeTemplates();const e={settings:{},privateSettings:{},states:{}};this._eachTemplate((t=>{this._applyTemplate(t,e)})),t&&(o.each(this._settings,(t=>{this._userProperties[t]||e.settings[t]||super.remove(t)})),o.each(this._privateSettings,(t=>{this._userPrivateProperties[t]||e.privateSettings[t]||super.removePrivate(t)})))}_findTemplate(t){const e=this._findStaticTemplate(t);if(void 0===e){const e=u.findReverse(this._internalTemplates,t);return void 0===e?u.find(this._templates,t):e}return e}_findTemplateByKey(t){return this._findTemplate((e=>t in e._settings))}_findTemplateByPrivateKey(t){return this._findTemplate((e=>t in e._privateSettings))}_disposeTemplates(){u.each(this._templateDisposers,(t=>{t.dispose()})),this._templateDisposers.length=0}_removeTemplates(){u.each(this._templates,(t=>{t._removeObjectTemplate(this)})),this._templates.length=0}_applyThemes(t=!1){if(this.get("ignoreThemes"))return!1;let e=!1;const i=[];let s=[];const n=new Set,r=this.get("themeTagsSelf");return r&&u.each(r,(t=>{n.add(t)})),this._walkParents((t=>{t===this._root._rootContainer&&(e=!0),t._defaultThemes.length>0&&i.push(t._defaultThemes);const r=t.get("themes");r&&s.push(r);const o=t.get("themeTags");o&&u.each(o,(t=>{n.add(t)}))})),s=i.concat(s),this._removeTemplates(),(e||t)&&u.eachReverse(this.classNames,(t=>{const e=[];u.each(s,(i=>{u.each(i,(i=>{const s=i._lookupRules(t);s&&u.eachReverse(s,(t=>{if(t.tags.every((t=>n.has(t)))){const i=u.getFirstSortedIndex(e,(e=>{const i=d.qu(t.tags.length,e.tags.length);return 0===i?d.wq(t.tags,e.tags,d.qu):i}));e.splice(i.index,0,t)}}))}))})),u.each(e,(t=>{this._templates.push(t.template),t.template._setObjectTemplate(this)}))})),this._applyTemplates(),(e||t)&&(this._runSetup=!1),e||t}_changed(){}_beforeChanged(){if(this.isDirty("id")){const t=this.get("id");t&&this._registerId(t);const e=this._prevSettings.id;e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}}_registerId(t){if(this._root.entitiesById[t]&&this._root.entitiesById[t]!==this)throw new Error('An entity with id "'+t+'" already exists.');this._root.entitiesById[t]=this,c.i_.entitiesById[t]=this}_afterChanged(){}addDisposer(t){return this._disposers.push(t),t}_dispose(){super._dispose();const t=this._template;t&&t._removeObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._removeObjectTemplate(this)})),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach((t=>{t.dispose()})),o.each(this._disposerProperties,((t,e)=>{u.each(e,(t=>{t.dispose()}))}));const e=this.get("id");e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}setTimeout(t,e){const i=setTimeout((()=>{this.removeDispose(n),t()}),e),n=new s.ku((()=>{clearTimeout(i)}));return this._disposers.push(n),n}removeDispose(t){if(!this.isDisposed()){let e=u.indexOf(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()}hasTag(t){return-1!==u.indexOf(this.get("themeTags",[]),t)}addTag(t){if(!this.hasTag(t)){const e=this.get("themeTags",[]);e.push(t),this.set("themeTags",e)}}removeTag(t){if(this.hasTag(t)){const e=this.get("themeTags",[]);u.remove(e,t),this.set("themeTags",e)}}_t(t,e,...i){return this._root.language.translate(t,e,...i)}get root(){return this._root}}m.className="Entity",m.classNames=["Entity"]},9770:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var s=i(7449),n=i(5071),r=i(5040);class o{constructor(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{n.each(t,(t=>{t.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}}hasListeners(){return 0!==this._listeners.length}hasListenersByType(t){return n.any(this._listeners,(e=>(null===e.type||e.type===t)&&!e.killed))}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(t){delete this._disabled[t]}disableType(t,e=1/0){this._disabled[t]=e}_removeListener(t){if(0===this._iterating){const e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)}_removeExistingListener(t,e,i,s){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((n=>{n.once!==t||n.type!==e||void 0!==i&&n.callback!==i||n.context!==s||n.disposer.dispose()}))}isEnabled(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&void 0===this._disabled[t]}removeType(t){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((e=>{e.type===t&&e.disposer.dispose()}))}has(t,e,i){return-1!==n.findIndex(this._listeners,(s=>!0!==s.once&&s.type===t&&(void 0===e||s.callback===e)&&s.context===i))}_shouldDispatch(t){if(this._disposed)throw new Error("EventDispatcher is disposed");const e=this._disabled[t];return r.isNumber(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled}_eachListener(t){++this._iterating;try{n.each(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(n.each(this._killed,(t=>{this._removeListener(t)})),this._killed.length=0)}}dispatch(t,e){this._shouldDispatch(t)&&this._eachListener((i=>{i.killed||null!==i.type&&i.type!==t||(i._debounceDelay?(i._debounceTimeout&&window.clearTimeout(i._debounceTimeout),i._debounceTimeout=window.setTimeout((()=>{i._debounceTimeout=void 0,i.killed||i.dispatch(t,e)}),i._debounceDelay)):i.dispatch(t,e))}))}_on(t,e,i,n,r,o,a){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);const h={type:e,callback:i,context:n,shouldClone:r,dispatch:o,killed:!1,once:t,disposer:new s.ku((()=>{h.killed=!0,h._debounceTimeout&&window.clearTimeout(h._debounceTimeout),this._removeListener(h)})),_debounceDelay:a};return this._listeners.push(h),h}onAll(t,e,i=!0){return this._on(!1,null,t,e,i,((i,s)=>t.call(e,s))).disposer}on(t,e,i,s=!0){return this._on(!1,t,e,i,s,((t,s)=>e.call(i,s))).disposer}onDebounced(t,e,i,s,n=!0){return this._on(!1,t,e,s,n,((t,i)=>e.call(s,i)),i).disposer}once(t,e,i,s=!0){const n=this._on(!0,t,e,i,s,((t,s)=>{n.disposer.dispose(),e.call(i,s)}));return n.disposer}off(t,e,i){this._removeExistingListener(!1,t,e,i)}copyFrom(t){if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const e=[];return n.each(t._listeners,(t=>{!t.killed&&t.shouldClone&&(null===t.type?e.push(this.onAll(t.callback,t.context)):t.once?e.push(this.once(t.type,t.callback,t.context)):e.push(this.on(t.type,t.callback,t.context)))})),new s.FV(e)}}},9821:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(6331);class n extends s.JH{}n.className="InterfaceColors",n.classNames=s.JH.classNames.concat([n.className])},7144:function(t,e,i){"use strict";i.d(e,{aV:function(){return o},dn:function(){return a},o:function(){return h}});var s=i(9770),n=i(5071);function r(t,e){if(!(t>=0&&t=0&&t{this.push(t)}))}copyFrom(t){this.pushAll(t._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(t){const e=this._values;this._values=[],this._onClear(e),n.each(t,(t=>{this._values.push(t),this._onPush(t)}))}clear(){this.setAll([])}*[Symbol.iterator](){const t=this._values.length;for(let e=0;e{t.dispose()})),super._onClear(t)}_dispose(){this.autoDispose&&n.each(this._values,(t=>{t.dispose()}))}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class h extends a{constructor(t,e){super(),this.template=t,this.make=e}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}}},751:function(t,e,i){"use strict";i.r(e),i.d(e,{DEGREES:function(){return a},HALFPI:function(){return r},PI:function(){return n},RADIANS:function(){return o},boundsOverlap:function(){return M},ceil:function(){return l},circlesOverlap:function(){return O},closest:function(){return T},cos:function(){return f},fitAngleToRange:function(){return w},fitToRange:function(){return d},getAngle:function(){return x},getArcBounds:function(){return m},getArcPoint:function(){return y},getCubicControlPointA:function(){return c},getCubicControlPointB:function(){return u},getPointOnLine:function(){return k},getPointOnQuadraticCurve:function(){return D},inBounds:function(){return b},mergeBounds:function(){return v},normalizeAngle:function(){return _},round:function(){return h},sin:function(){return p},spiralPoints:function(){return E},tan:function(){return g}});var s=i(5040);const n=Math.PI,r=n/2,o=n/180,a=180/n;function h(t,e,i){if(!(0,s.isNumber)(e)||e<=0){let e=Math.round(t);return i&&e-t==.5&&e--,e}{let i=Math.pow(10,e);return Math.round(t*i)/i}}function l(t,e){if(!(0,s.isNumber)(e)||e<=0)return Math.ceil(t);{let i=Math.pow(10,e);return Math.ceil(t*i)/i}}function c(t,e,i,s,n){return{x:(-t.x+e.x/s+i.x)*s,y:(-t.y+e.y/n+i.y)*n}}function u(t,e,i,s,n){return{x:(t.x+e.x/s-i.x)*s,y:(t.y+e.y/n-i.y)*n}}function d(t,e,i){return Math.min(Math.max(t,e),i)}function p(t){return Math.sin(o*t)}function g(t){return Math.tan(o*t)}function f(t){return Math.cos(o*t)}function _(t){return(t%=360)<0&&(t+=360),t}function m(t,e,i,s,n){let r=Number.MAX_VALUE,o=Number.MAX_VALUE,a=-Number.MAX_VALUE,h=-Number.MAX_VALUE,l=[];l.push(y(n,i)),l.push(y(n,s));let c=Math.min(90*Math.floor(i/90),90*Math.floor(s/90)),u=Math.max(90*Math.ceil(i/90),90*Math.ceil(s/90));for(let t=c;t<=u;t+=90)t>=i&&t<=s&&l.push(y(n,t));for(let t=0;ta&&(a=e.x),e.y>h&&(h=e.y)}return{left:t+r,top:e+o,right:t+a,bottom:e+h}}function y(t,e){return{x:t*f(e),y:t*p(e)}}function v(t){const e=t.length;if(e>0){let i=t[0],s=i.left,n=i.top,r=i.right,o=i.bottom;if(e>1)for(let a=1;ai){let t=e;e=i,i=t}t=_(t);let s=(e-_(e))/360;return ti&&(t-360>e?t-=360:t=te+(i-e)/2-180?e:i),t}function b(t,e){return t.x>=e.left&&t.y>=e.top&&t.x<=e.right&&t.y<=e.bottom}function x(t,e){e||(e={x:2*t.x,y:2*t.y});let i=e.x-t.x,s=e.y-t.y,n=Math.atan2(s,i)*a;return n<0&&(n+=360),_(n)}function D(t,e,i,s){return{x:(1-s)*(1-s)*t.x+2*(1-s)*s*i.x+s*s*e.x,y:(1-s)*(1-s)*t.y+2*(1-s)*s*i.y+s*s*e.y}}function k(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function T(t,e){return t.reduce((function(t,i){return Math.abs(i-e)e.left,s=t.tope.top;return i&&s}function E(t,e,i,s,n,r,h,l,c){let u=n+.01;l=_(l),c=_(c);let d=l*o;cu&&(o=2*u),o*=Math.max(.01,Math.min(1,u/200));let g=d*a,f={x:t+u*Math.cos(d),y:e+u*s/i*Math.sin(d)};if(p.push(f),u=n+.01+(g-l)/360*h,d+=2*Math.asin(o/2/u),d*a>c+360*Math.ceil((i-n)/h))break}return p.shift(),p}function O(t,e){return Math.hypot(t.x-e.x,t.y-e.y)<=t.radius+e.radius}},8219:function(t,e,i){"use strict";i.d(e,{u:function(){return a}});var s=i(6331),n=i(7652),r=i(7449);let o;class a extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._setRawDefault("deactivateRoot",!0),function(t,e,i){const s=e.interfaceColors,a=s.get("secondaryButton").toCSS(),h=s.get("text").toCSS(),l=s.get("alternativeBackground").toCSS(.45);if(!o){const i=new r.FV([new n.StyleRule(t,".am5-modal",{width:"100%",height:"100%",position:"absolute","z-index":"100000",top:"0",left:"0"},e.nonce),new n.StyleRule(t,".am5-modal-curtain",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute",background:s.get("background").toCSS(.5),"z-index":"100"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute","text-align":"center","white-space":"nowrap",background:s.get("background").toCSS(.5),"z-index":"101"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper:before",{content:"''",display:"inline-block",height:"100%","vertical-align":"middle","margin-right":"-0.25em"},e.nonce),new n.StyleRule(t,".am5-modal-content",{display:"inline-block",padding:"1.2em","vertical-align":"middle","text-align":"start","white-space":"normal",background:s.get("background").toCSS(),"border-radius":"4px","-webkit-box-shadow":"0px 0px 36px 0px "+l,"box-shadow":"0px 0px 36px 0px "+l,color:h},e.nonce),new n.StyleRule(t,".am5-modal-content h1",{"font-size":"1em",margin:"0 0 0.5em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table",{display:"table",margin:"1em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-row",{display:"table-row"},e.nonce),new n.StyleRule(t,".am5-modal-table-heading",{display:"table-heading",padding:"3px 10px 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell",{display:"table-cell",padding:"3px 0 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell > *",{"vertical-align":"middle"},e.nonce),new n.StyleRule(t,".am5-modal-content input[type=text], .am5-modal-content input[type=number], .am5-modal-content select",{border:"1px solid "+a,"border-radius":"4px",padding:"3px 5px",margin:"2px"},e.nonce),new n.StyleRule(t,".am5-modal-input-narrow",{width:"50px"},e.nonce),new n.StyleRule(t,".am5-modal-button",{"font-weight":"400",color:s.get("secondaryButtonText").toCSS(),"line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer",padding:"0.2em 0.8em","font-size":"1em","border-radius":"0.25em",margin:"0 0.25em 0 0",border:"1px solid "+s.get("secondaryButtonStroke").toCSS(),background:s.get("secondaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button:hover",{background:s.get("secondaryButtonHover").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary",{color:s.get("primaryButtonText").toCSS(),border:"1px solid "+s.get("primaryButtonStroke").toCSS(),background:s.get("primaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary:hover",{background:s.get("primaryButtonHover").toCSS()},e.nonce)]);o=new r.DM((()=>{o=void 0,i.dispose()}))}o.increment()}(n.getShadowRoot(this._root.dom),this._root);const t=document.createElement("div");t.className="am5-modal",t.style.display="none",this.root._inner.appendChild(t),this.setPrivate("container",t);const e=document.createElement("div");e.className="am5-modal-curtain",t.appendChild(e),this.setPrivate("curtain",e),this._disposers.push(n.addEventListener(e,"click",(()=>{this.cancel()})));const i=document.createElement("div");i.className="am5-modal-wrapper",t.appendChild(i),this.setPrivate("wrapper",i);const s=document.createElement("div");s.className="am5-modal-content",i.appendChild(s),this.setPrivate("content",s);const a=this.get("content");a&&(s.innerHTML=a),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{this.isOpen()&&"Escape"==n.getEventKey(t)&&this.cancel()})))}_beforeChanged(){super._beforeChanged(),this.isDirty("content")&&(this.getPrivate("content").innerHTML=this.get("content",""))}isOpen(){return"none"!=this.getPrivate("container").style.display}open(){this.getPrivate("container").style.display="block",this.get("deactivateRoot")&&this.setTimeout((()=>{this._root._renderer.interactionsEnabled=!1}),10),this.events.dispatch("opened",{type:"opened",target:this})}close(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("closed",{type:"closed",target:this})}cancel(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("cancelled",{type:"cancelled",target:this})}_dispose(){super._dispose();const t=this.getPrivate("container");t.parentElement&&t.parentElement.removeChild(t)}}a.className="Modal",a.classNames=s.JH.classNames.concat([a.className])},780:function(t,e,i){"use strict";i.d(e,{e:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const t="_big_number_suffix_",e="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(t+"3")},{number:1e6,suffix:this._t(t+"6")},{number:1e9,suffix:this._t(t+"9")},{number:1e12,suffix:this._t(t+"12")},{number:1e15,suffix:this._t(t+"15")},{number:1e18,suffix:this._t(t+"18")},{number:1e21,suffix:this._t(t+"21")},{number:1e24,suffix:this._t(t+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(e+"24")},{number:1e-21,suffix:this._t(e+"21")},{number:1e-18,suffix:this._t(e+"18")},{number:1e-15,suffix:this._t(e+"15")},{number:1e-12,suffix:this._t(e+"12")},{number:1e-9,suffix:this._t(e+"9")},{number:1e-6,suffix:this._t(e+"6")},{number:.001,suffix:this._t(e+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s;(null==e||a.isString(e)&&"number"===e.toLowerCase())&&(e=this.get("numberFormat",""));let n=Number(t);if(a.isObject(e))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),e).format(n):new Intl.NumberFormat(void 0,e).format(n)}catch(t){return"Invalid"}else{e=o.cleanFormat(e);let t,h=this.parseFormat(e,this._root.language);t=n>this.get("negativeBase")?h.positive:n{if(e.parsed)return;let i=e.source;"number"===i.toLowerCase()&&(i=this.get("numberFormat","#,###.#####"));let s=n.V.chunk(i,!0);for(let t=0;t=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(i[0]),n="e"+i[1],e.modSpacing&&(n=" "+n)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){const i=o.decimalPlaces(t);if(i>0){const s=Math.pow(10,e.decimals.passive);t=Math.round(parseFloat((t*s).toFixed(i)))/s}}let h="",l=a.numberToString(t).split("."),c=l[0];if(c.length0){let t=[],i=c.split("").reverse().join("");for(let s=0,n=c.length;s<=n;s+=e.thousands.interval){let n=i.substr(s,e.thousands.interval).split("").reverse().join("");""!==n&&t.unshift(n)}c=t.join(e.thousands.separator)}h+=c,1===l.length&&l.push("");let u=l[1];return u.length{e(i,t[i])}))}function l(t,e){for(let i in t)if(u(t,i)&&!e(i,t[i]))break}function c(t,e,i){s.each(o(t,i),(i=>{e(i,t[i])}))}function u(t,e){return{}.hasOwnProperty.call(t,e)}function d(t,e){return h(t,((t,i)=>{null!=i&&null==e[t]&&(e[t]=i)})),e}},3540:function(t,e,i){"use strict";function s(t,e){return t===e?0:t{a.isObject(e)&&"function"==typeof e.dispose&&(e.enableDispose=!0,e.dispose())}))}class l{constructor(t,e,i){this._name=t,this._template=e,this._settings=i}_dispose(){h(this._settings)}get(t,e){const i=this._settings[t];return void 0!==i?i:e}set(t,e){this._settings[t]=e,this._template._stateChanged(this._name)}remove(t){delete this._settings[t],this._template._stateChanged(this._name)}setAll(t){o.keys(t).forEach((e=>{this._settings[e]=t[e]})),this._template._stateChanged(this._name)}_apply(t,e){o.each(this._settings,((i,s)=>{e[i]||t._userSettings[i]||(e[i]=!0,t.setRaw(i,s))}))}}class c{constructor(t){this._states={},this._template=t}_dispose(){o.each(this._states,((t,e)=>{e._dispose()}))}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new l(t,this._template,e);return this._states[t]=i,this._template._stateChanged(t),i}}remove(t){delete this._states[t],this._template._stateChanged(t)}_apply(t,e){o.each(this._states,((i,s)=>{let n=e.states[i];null==n&&(n=e.states[i]={});const r=t.states.create(i,{});s._apply(r,n)}))}}class u{constructor(){this._callbacks={}}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._callbacks[t]}))}remove(t){void 0!==this._callbacks[t]&&delete this._callbacks[t]}_apply(t){const e=[];return o.each(this._callbacks,((i,s)=>{r.each(s,(s=>{e.push(t.adapters.add(i,s))}))})),new n.FV(e)}}class d{constructor(t,e){if(this._disposed=!1,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._entities=[],this.states=new c(this),this.adapters=new u,this.events=new s.p,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=t}static new(t){return new d(t,!0)}_dispose(){h(this._settings),h(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(t,e){this._checkDisposed();const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._checkDisposed(),this._settings[t]=e}set(t,e){this._checkDisposed(),this._settings[t]!==e&&(this.setRaw(t,e),this._entities.forEach((i=>{i._setTemplateProperty(this,t,e)})))}remove(t){this._checkDisposed(),t in this._settings&&(delete this._settings[t],this._entities.forEach((e=>{e._removeTemplateProperty(t)})))}removeAll(){this._checkDisposed(),o.each(this._settings,((t,e)=>{this.remove(t)}))}getPrivate(t,e){this._checkDisposed();const i=this._privateSettings[t];return void 0!==i?i:e}setPrivateRaw(t,e){return this._checkDisposed(),this._privateSettings[t]=e,e}setPrivate(t,e){return this._checkDisposed(),this._privateSettings[t]!==e&&(this.setPrivateRaw(t,e),this._entities.forEach((i=>{i._setTemplatePrivateProperty(this,t,e)}))),e}removePrivate(t){this._checkDisposed(),t in this._privateSettings&&(delete this._privateSettings[t],this._entities.forEach((e=>{e._removeTemplatePrivateProperty(t)})))}setAll(t){this._checkDisposed(),o.each(t,((t,e)=>{this.set(t,e)}))}on(t,e){this._checkDisposed();let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}onPrivate(t,e){this._checkDisposed();let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}_apply(t,e){this._checkDisposed();const i=[];return o.each(this._settingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.on(e,s))}))})),o.each(this._privateSettingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.onPrivate(e,s))}))})),this.states._apply(t,e),i.push(this.adapters._apply(t)),i.push(t.events.copyFrom(this.events)),new n.FV(i)}_setObjectTemplate(t){this._checkDisposed(),this._entities.push(t)}_removeObjectTemplate(t){r.remove(this._entities,t)}_stateChanged(t){this._checkDisposed(),this._entities.forEach((e=>{e._applyStateByKey(t)}))}}},7255:function(t,e,i){"use strict";i.d(e,{V:function(){return r}});var s=i(1112),n=i(5040);class r{static escape(t){return t.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(t){return t.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(t,e=!1,i=!1){let s=[];t=this.escape(t);let r=e?t.split("'"):[t];for(let t=0;t{setTimeout(e,t)}))}let o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629742400,year:31536e6};function a(t){switch(t){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function h(t,e){return null==e&&(e=1),o[t]*e}function l(t){return t?o[t.timeUnit]*t.count:0}function c(t,e,i,s,n){const r=t.timeUnit,a=t.count;if("hour"==r||"minute"==r||"second"==r||"millisecond"==r)return o[t.timeUnit]*t.count;{const t=m(new Date(e.getTime()),r,a,i,s,void 0,n).getTime();let o=t+a*h(r)*1.05;return o=m(new Date(o),r,1,i,s,void 0,n).getTime(),o-t}}function u(){return new Date}function d(){return u().getTime()}function p(t){return new Date(t.getTime())}function g(t,e,i,s,n){if(e-t>h(i,1.2))return!0;let r=new Date(t),o=new Date(e);n&&(r=n.convertLocal(r),o=n.convertLocal(o));let l=0,c=0;s||"millisecond"==i||(l=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-l),c=o.getTimezoneOffset(),o.setUTCMinutes(o.getUTCMinutes()-c));let u=!1;switch(i){case"year":r.getUTCFullYear()!=o.getUTCFullYear()&&(u=!0);break;case"month":(r.getUTCFullYear()!=o.getUTCFullYear()||r.getUTCMonth()!=o.getUTCMonth())&&(u=!0);break;case"day":(r.getUTCMonth()!=o.getUTCMonth()||r.getUTCDate()!=o.getUTCDate())&&(u=!0);break;case"hour":r.getUTCHours()!=o.getUTCHours()&&(u=!0);break;case"minute":r.getUTCMinutes()!=o.getUTCMinutes()&&(u=!0);break;case"second":r.getUTCSeconds()!=o.getUTCSeconds()&&(u=!0);break;case"millisecond":r.getTime()!=o.getTime()&&(u=!0)}if(u)return u;let d=a(i);return!!d&&g(t,e,d,s,n)}function f(t,e,i,s,n){let r=0;switch(s||"millisecond"==e||(r=t.getTimezoneOffset(),n&&(r-=n.offsetUTC(t)),t.setUTCMinutes(t.getUTCMinutes()-r)),e){case"day":let e=t.getUTCDate();t.setUTCDate(e+i);break;case"second":let s=t.getUTCSeconds();t.setUTCSeconds(s+i);break;case"millisecond":let n=t.getUTCMilliseconds();t.setUTCMilliseconds(n+i);break;case"hour":let r=t.getUTCHours();t.setUTCHours(r+i);break;case"minute":let o=t.getUTCMinutes();t.setUTCMinutes(o+i);break;case"year":let a=t.getUTCFullYear();t.setUTCFullYear(a+i);break;case"month":const h=t.getUTCDate(),l=new Date(t.getUTCFullYear(),t.getUTCMonth(),0).getUTCDate();let c=t.getUTCMonth();h>l?t.setUTCMonth(c+i,l):t.setUTCMonth(c+i);break;case"week":let u=t.getUTCDate();t.setUTCDate(u+7*i)}if(!s&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+r),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(n&&(e+=n.offsetUTC(t)),e!=r){let i=e-r;t.setUTCMinutes(t.getUTCMinutes()+i),t.getTimezoneOffset()!=e&&t.setUTCMinutes(t.getUTCMinutes()-i)}}return t}function _(t,e,i,s,n){let r;return null!=n&&(r=new Date(n)),m(new Date(t),e,i,s.locale.firstDayOfWeek,s.utc,r,s.timezone).getTime()}function m(t,e,i,n,r,o,a){if(!a||r){let a=0;switch(r||"millisecond"==e||(a=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-a)),e){case"day":let e=t.getUTCDate();if(i>1){if(o){o=m(o,"day",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),n=h("day",s*i);t.setTime(o.getTime()+n-a*h("minute"))}}else t.setUTCDate(e);t.setUTCHours(0,0,0,0);break;case"second":let r=t.getUTCSeconds();i>1&&(r=Math.floor(r/i)*i),t.setUTCSeconds(r,0);break;case"millisecond":if(1==i)return t;let l=t.getUTCMilliseconds();l=Math.floor(l/i)*i,t.setUTCMilliseconds(l);break;case"hour":let c=t.getUTCHours();i>1&&(c=Math.floor(c/i)*i),t.setUTCHours(c,0,0,0);break;case"minute":let u=t.getUTCMinutes();i>1&&(u=Math.floor(u/i)*i),t.setUTCMinutes(u,0,0);break;case"month":let d=t.getUTCMonth();i>1&&(2!=i&&3!=i&&4!=i&&6!=i||(d=Math.floor(d/i)*i)),t.setUTCMonth(d,1),t.setUTCHours(0,0,0,0);break;case"year":let p=t.getUTCFullYear();i>1&&(p=Math.floor(p/i)*i),t.setUTCFullYear(p,0,1),t.setUTCHours(0,0,0,0);break;case"week":if(i>1&&o){o=m(o,"week",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("week")/i),n=h("week",s*i);t.setTime(o.getTime()+n-a*h("minute"))}let g=t.getUTCDate(),f=t.getUTCDay();s.isNumber(n)||(n=1),g=f>=n?g-f+n:g-(7+f)+n,t.setUTCDate(g),t.setUTCHours(0,0,0,0)}if(!r&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+a),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(e!=a){let i=e-a;t.setUTCMinutes(t.getUTCMinutes()+i)}}return t}{if(isNaN(t.getTime()))return t;let l=t.getTime(),c=a.offsetUTC(t),u=t.getTimezoneOffset(),d=a.parseDate(t),p=d.year,g=d.month,f=d.day,_=d.hour,y=d.minute,v=d.second,w=d.millisecond,b=d.weekday,x=c-u;switch(e){case"day":if(i>1&&o){o=m(o,"day",1,n,r,void 0,a);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),l=h("day",s*i);t.setTime(o.getTime()+l),d=a.parseDate(t),p=d.year,g=d.month,f=d.day}_=0,y=x,v=0,w=0;break;case"second":y+=x,i>1&&(v=Math.floor(v/i)*i),w=0;break;case"millisecond":y+=x,i>1&&(w=Math.floor(w/i)*i);break;case"hour":i>1&&(_=Math.floor(_/i)*i),y=x,v=0,w=0;break;case"minute":i>1&&(y=Math.floor(y/i)*i),y+=x,v=0,w=0;break;case"month":i>1&&(g=Math.floor(g/i)*i),f=1,_=0,y=x,v=0,w=0;break;case"year":i>1&&(p=Math.floor(p/i)*i),g=0,f=1,_=0,y=x,v=0,w=0;break;case"week":s.isNumber(n)||(n=1),f=b>=n?f-b+n:f-(7+b)+n,_=0,y=x,v=0,w=0}const D=(t=new Date(p,g,f,_,y,v,w)).getTime();let k=36e5;"hour"==e&&(k=36e5*i),D+k<=l&&("hour"!=e&&"minute"!=e&&"second"!=e&&"millisecond"!=e||(t=new Date(D+k)));let T=t.getTimezoneOffset(),M=a.offsetUTC(t)-T;return M!=x&&t.setTime(t.getTime()+6e4*(M-x)),t}}function y(t,e,i,s){let n=l(s[t]),r=s.length-1;if(t>=r)return Object.assign({},s[r]);let o=Math.ceil(e/n);return e0?Object.assign({},s[t-1]):o<=i?Object.assign({},s[t]):t+1{switch(t.type){case"year":i=+t.value;break;case"month":s=+t.value-1;break;case"day":n=+t.value;break;case"hour":r=+t.value;break;case"minute":o=+t.value;break;case"second":a=+t.value;break;case"fractionalSecond":h=+t.value;break;case"weekday":switch(t.value){case"Sun":l=0;break;case"Mon":l=1;break;case"Tue":l=2;break;case"Wed":l=3;break;case"Thu":l=4;break;case"Fri":l=5;break;case"Sat":l=6}}})),24===r&&(r=0),{year:i,month:s,day:n,hour:r,minute:o,second:a,millisecond:h,weekday:l}}function n(t,e){const{year:i,month:n,day:r,hour:o,minute:a,second:h,millisecond:l}=s(t,e);return Date.UTC(i,n,r,o,a,h,l)}i.d(e,{r:function(){return r}});class r{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=t,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(t){return new this(t,!0)}convertLocal(t){const e=this.offsetUTC(t),i=t.getTimezoneOffset(),s=new Date(t);s.setUTCMinutes(s.getUTCMinutes()-(e-i));const n=s.getTimezoneOffset();return i!=n&&s.setUTCMinutes(s.getUTCMinutes()+n-i),s}offsetUTC(t){return(n(this._utc,t)-n(this._dtf,t))/6e4}parseDate(t){return s(this._dtf,t)}}},5040:function(t,e,i){"use strict";function s(t){return Number(t)!==t}function n(t){return{}.toString.call(t)}function r(t,e="Assertion failed"){if(!t)throw new Error(e)}function o(t){if(null!=t&&!d(t)){let e=Number(t);if(s(e)&&u(t)&&""!=t&&t.match(/[0-9]+/)){const i=t.replace(/[^0-9.\-]+/g,"");return t===i?e:o(i)}return e}return t}function a(t){if(c(t))return new Date(t);if(d(t))return new Date(t);{let e=Number(t);return d(e)?new Date(e):new Date(t)}}function h(t){if(s(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t==-1/0)return"-0";let e=t<0;t=Math.abs(t);let i,n=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t),r=n[1],o=n[2]||"";if(void 0===n[3])i=""===o?r:r+"."+o;else{let e=+n[3];if(t<1)i="0."+l("0",e-1)+r+o;else{let t=e-o.length;i=0===t?r+o:t<0?r+o.slice(0,t)+"."+o.slice(t):r+o+l("0",t)}}return e?"-"+i:i}function l(t,e){return new Array(e+1).join(t)}function c(t){return"[object Date]"===n(t)}function u(t){return"string"==typeof t}function d(t){return"number"==typeof t&&Number(t)==t}function p(t){return"object"==typeof t&&null!==t}function g(t){return Array.isArray(t)}i.r(e),i.d(e,{PLACEHOLDER:function(){return f},PLACEHOLDER2:function(){return _},assert:function(){return r},getType:function(){return n},isArray:function(){return g},isDate:function(){return c},isNaN:function(){return s},isNumber:function(){return d},isObject:function(){return p},isString:function(){return u},numberToString:function(){return h},repeat:function(){return l},toDate:function(){return a},toNumber:function(){return o}});const f="__§§§__",_="__§§§§__"},7652:function(t,e,i){"use strict";i.r(e),i.d(e,{StyleRule:function(){return E},StyleSheet:function(){return O},addClass:function(){return P},addEventListener:function(){return l},addSpacing:function(){return Y},alternativeColor:function(){return dt},blur:function(){return p},brighten:function(){return ht},capitalizeFirst:function(){return et},cleanFormat:function(){return z},contains:function(){return w},decimalPlaces:function(){return A},escapeForRgex:function(){return W},focus:function(){return g},get12Hours:function(){return Q},getBrightnessStep:function(){return lt},getDayFromWeek:function(){return q},getEventKey:function(){return D},getEventTarget:function(){return v},getFormat:function(){return H},getLightnessStep:function(){return at},getMonthWeek:function(){return K},getPointerId:function(){return d},getRendererEvent:function(){return f},getSafeResolution:function(){return C},getShadowRoot:function(){return k},getStyle:function(){return y},getTimeZone:function(){return J},getTimezoneOffset:function(){return tt},getWeek:function(){return $},getWeekYear:function(){return Z},getYearDay:function(){return X},hslToHsv:function(){return rt},hslToRgb:function(){return it},hsvToHsl:function(){return nt},iOS:function(){return N},isLight:function(){return ct},isLocalEvent:function(){return b},isTouchEvent:function(){return _},lighten:function(){return ot},mergeTags:function(){return pt},onZoom:function(){return c},padString:function(){return R},plainText:function(){return V},ready:function(){return a},relativeToValue:function(){return L},removeClass:function(){return S},removeElement:function(){return h},rgbToHsl:function(){return st},sameBounds:function(){return gt},saturate:function(){return ut},setInteractive:function(){return x},setStyle:function(){return m},splitString:function(){return j},stripTags:function(){return G},supports:function(){return u},trim:function(){return F},trimLeft:function(){return U},trimRight:function(){return B},truncateTextWithEllipsis:function(){return I}});var s=i(5040),n=i(5071),r=i(256),o=i(7449);function a(t){if("loading"!==document.readyState)t();else{const e=()=>{"loading"!==document.readyState&&(document.removeEventListener("readystatechange",e),t())};document.addEventListener("readystatechange",e)}}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function l(t,e,i,s){return t.addEventListener(e,i,s||!1),new o.ku((()=>{t.removeEventListener(e,i,s||!1)}))}function c(t){return l(window,"resize",(e=>{t()}))}function u(t){switch(t){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function d(t){return t.pointerId||0}function p(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let t=document.createElement("button");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}}function g(t){t&&t.focus()}function f(t){if(u("pointerevents"))return t;if(u("touchevents"))switch(t){case"pointerover":case"pointerdown":return"touchstart";case"pointerout":case"pointerleave":case"pointerup":return"touchend";case"pointermove":return"touchmove";case"click":return"click";case"dblclick":return"dblclick"}else if(u("mouseevents"))switch(t){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return t}function _(t){if("undefined"!=typeof Touch&&t instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&t instanceof PointerEvent&&null!=t.pointerType)switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(null!=t.type&&t.type.match(/^mouse/))return!1;return!0}function m(t,e,i){t.style[e]=i}function y(t,e){return t.style[e]}function v(t){if(t.composedPath){const e=t.composedPath();return 0===e.length?null:e[0]}return t.target}function w(t,e){let i=e;for(;;){if(t===i)return!0;if(null===i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function b(t,e){return t.target&&w(e.root.dom,t.target)}function x(t,e){t.style.pointerEvents=e?"auto":"none"}function D(t){if(void 0!==t.key)return t.key;switch(t.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+t.keyCode}function k(t){let e=t;for(;;){if(null===e.parentNode)return null!=e.host?e:null;e=e.parentNode}}let T;function M(t,e){const i=t.cssRules.length;return t.insertRule(e+"{}",i),t.cssRules[i]}class E extends o.KK{constructor(t,e,i,s=""){super(),this._root=function(t,e=""){if(null===t){if(null==T){const t=document.createElement("style");t.type="text/css",""!=e&&t.setAttribute("nonce",e),document.head.appendChild(t),T=t.sheet}return T}{const i=document.createElement("style");return i.type="text/css",""!=e&&i.setAttribute("nonce",e),t.appendChild(i),i.sheet}}(t,s);try{this._rule=M(this._root,e)}catch(t){this._rule=M(this._root,":not(*)")}r.each(i,((t,e)=>{this.setStyle(t,e)}))}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){const t=n.indexOf(this._root.cssRules,this._rule);if(-1===t)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,e){const i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")}setStyle(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")}}class O extends o.KK{constructor(t,e,i=""){super(),this._element=function(t,e,i=""){const s=document.createElement("style");return s.type="text/css",""!=i&&s.setAttribute("nonce",i),s.textContent=e,null===t?document.head.appendChild(s):t.appendChild(s),s}(t,e,i)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}}function P(t,e){if(t)if(t.classList){const i=e.split(" ");n.each(i,(e=>{t.classList.add(e)}))}else{let i=t.getAttribute("class");i?t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" ")+" "+e):t.setAttribute("class",e)}}function S(t,e){if(t)if(t.classList)t.classList.remove(e);else{let i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" "))}}function N(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function C(){return N()?1:void 0}function L(t,e){return s.isNumber(t)?t:null!=t&&s.isNumber(t.value)&&s.isNumber(e)?e*t.value:0}function A(t){let e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function R(t,e=0,i="0"){return"string"!=typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t}function U(t){return t.replace(/^[\s]*/,"")}function B(t){return t.replace(/[\s]*$/,"")}function F(t){return U(B(t))}function I(t,e,i=!1,s="..."){if(t.length>e){let n=e-1;for(;n>=0&&t.charAt(n).match(/\w/);)n--;return n>=0&&0==i?t.substring(0,n+1)+"...":t.substring(0,e)+s}return t}function H(t){if(void 0===t)return"string";let e=(t=(t=(t=t.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return e?e[1]:"number"===t?"number":"date"===t?"date":"duration"===t?"duration":t.match(/[#0]/)?"number":t.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function z(t){return t.replace(/\/(date|number|duration)$/i,"")}function G(t){return t?t.replace(/<[^>]*>/g,""):t}function V(t){return t?G((""+t).replace(/[\n\r]+/g,". ")):t}function W(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Y(t){let e="";for(let i=0;i{if(t.match(/^\s+$/))(t=" ")&&(t=" "),n.push(t);else if(e.test(t)){let e=t.split(i).filter((t=>""!==t));n=n.concat(e)}else n=n.concat([...t])})),n}function X(t,e=!1){const i=new Date(t.getFullYear(),0,0),s=t.getTime()-i.getTime()+60*(i.getTimezoneOffset()-t.getTimezoneOffset())*1e3;return Math.floor(s/864e5)}function $(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-s);const n=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-n.getTime())/864e5+1)/7)}function Z(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;return i.setUTCDate(i.getUTCDate()+4-s),new Date(Date.UTC(i.getUTCFullYear(),0,1)).getFullYear()}function K(t,e=!1){const i=$(new Date(t.getFullYear(),t.getMonth(),1),e);let s=$(t,e);return 1==s&&(s=53),s-i+1}function q(t,e,i=1,s=!1){let n=new Date(e,0,4,0,0,0,0);return s&&n.setUTCFullYear(e),7*t+i-((n.getDay()||7)+3)}function Q(t,e){return t>12?t-=12:0===t&&(t=12),null!=e?t+(e-1):t}function J(t,e=!1,i=!1,s=!1,n){if(s)return e?"Coordinated Universal Time":"UTC";if(n){const i=t.toLocaleString("en-US",{timeZone:n});return F(t.toLocaleString("en-US",{timeZone:n,timeZoneName:e?"long":"short"}).substr(i.length))}let r=t.toLocaleString("UTC"),o=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(o=o.replace(/ (standard|daylight|summer|winter) /i," ")),F(o)}function tt(t,e){const i=e||new Date(Date.UTC(2012,0,1,0,0,0,0)),s=new Date(i.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(i.toLocaleString("en-US",{timeZone:t})).getTime()-s.getTime())/6e4*-1}function et(t){return t.charAt(0).toUpperCase()+t.slice(1)}function it(t){let e,i,s,n=t.h,r=t.s,o=t.l;if(0==r)e=i=s=o;else{let t=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},a=o<.5?o*(1+r):o+r-o*r,h=2*o-a;e=t(h,a,n+1/3),i=t(h,a,n),s=t(h,a,n-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*s)}}function st(t){let e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),r=Math.min(e,i,s),o=0,a=0,h=(n+r)/2;if(n===r)o=a=0;else{let t=n-r;switch(a=h>.5?t/(2-n-r):t/(n+r),n){case e:o=(i-s)/t+(i0?255-t:t;return Math.round(i*e)}function ht(t,e){if(t){let i=at(Math.min(Math.max(t.r,t.g,t.b),230),e);return{r:Math.max(0,Math.min(255,Math.round(t.r+i))),g:Math.max(0,Math.min(255,Math.round(t.g+i))),b:Math.max(0,Math.min(255,Math.round(t.b+i))),a:t.a}}return t}function lt(t,e){return Math.round(255*e)}function ct(t){return(299*t.r+587*t.g+114*t.b)/1e3>=128}function ut(t,e){if(void 0===t||1==e)return t;let i=st(t);return i.s=e,it(i)}function dt(t,e={r:255,g:255,b:255},i={r:255,g:255,b:255}){let s=e,n=i;return ct(i)&&(s=i,n=e),ct(t)?n:s}function pt(t,e){return t||(t=[]),[...t,...e].filter(((t,e,i)=>i.indexOf(t)===e))}function gt(t,e){return!!e&&t.left==e.left&&t.right==e.right&&t.top==e.top&&t.bottom==e.bottom}},3360:function(t,e,i){"use strict";i.d(e,{z:function(){return D},m:function(){return k}});var s=i(7582),n=i(6331),r=i(4596),o=i(8777),a=i(1112),h=i(6245),l=i(5769),c=i(9582),u=i(5040),d=i(5071),p=i(256),g={AccelerationBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccelerationBands)),AccumulationDistribution:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulationDistribution)),AccumulativeSwingIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulativeSwingIndex)),Annotator:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Annotator)),ArcDiagram:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagram)),ArcDiagramLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramLink)),ArcDiagramNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramNodes)),Aroon:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Aroon)),AverageSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageSeries)),AverageTrueRange:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageTrueRange)),AwesomeOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AwesomeOscillator)),Axis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Axis)),AxisBullet:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisBullet)),AxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabel)),AxisLabelRadial:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabelRadial)),AxisRenderer:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRenderer)),AxisRendererCircular:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererCircular)),AxisRendererCurveX:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveX)),AxisRendererCurveY:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveY)),AxisRendererRadial:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererRadial)),AxisRendererX:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererX)),AxisRendererY:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererY)),AxisTick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisTick)),BaseColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.BaseColumnSeries)),BollingerBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BollingerBands)),BreadcrumbBar:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.BreadcrumbBar)),BullBearPower:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BullBearPower)),Bullet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Bullet)),Button:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Button)),CalloutSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CalloutSeries)),Candlestick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Candlestick)),CandlestickSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CandlestickSeries)),CategoryAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryAxis)),CategoryDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryDateAxis)),ChaikinMoneyFlow:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinMoneyFlow)),ChaikinOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinOscillator)),Chart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Chart)),ChartIndicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChartIndicator)),Chord:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Chord)),ChordDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordDirected)),ChordLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLink)),ChordLinkDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLinkDirected)),ChordNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNodes)),ChordNonRibbon:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNonRibbon)),Circle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Circle)),CirclePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.CirclePattern)),ClockHand:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.ClockHand)),ClusteredPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ClusteredPointSeries)),ColorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ColorControl)),ColorPicker:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPicker)),ColorPickerButton:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPickerButton)),ColorSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ColorSet)),ColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ColumnSeries)),CommodityChannelIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CommodityChannelIndex)),ComparisonControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ComparisonControl)),Component:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Component)),ConfirmButton:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ConfirmButton)),Container:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Container)),CurveChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveChart)),CurveColumnSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveColumnSeries)),CurveCursor:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveCursor)),CurveLineSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveLineSeries)),DataSaveControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DataSaveControl)),DateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DateAxis)),DateRangeSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DateRangeSelector)),DisparityIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DisparityIndex)),DoodleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DoodleSeries)),DrawingControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingControl)),DrawingSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingSeries)),DrawingToolControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingToolControl)),Dropdown:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Dropdown)),DropdownColors:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownColors)),DropdownControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownControl)),DropdownList:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownList)),DropdownListControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownListControl)),DurationAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DurationAxis)),EditableAxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.EditableAxisLabel)),EditableLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.EditableLabel)),Ellipse:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Ellipse)),EllipseSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.EllipseSeries)),Entity:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Entity)),Exporting:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Exporting)),ExportingMenu:()=>Promise.resolve().then((()=>i(396))).then((t=>t.ExportingMenu)),FibonacciSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciSeries)),FibonacciTimezoneSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciTimezoneSeries)),Flow:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Flow)),FlowLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowLink)),FlowNode:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNode)),FlowNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNodes)),ForceDirected:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.ForceDirected)),FunnelSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSeries)),FunnelSlice:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSlice)),Gantt:()=>Promise.resolve().then((()=>i(133))).then((t=>t.Gantt)),GanttCategoryAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxis)),GanttCategoryAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxisRenderer)),GanttDateAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxis)),GanttDateAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxisRenderer)),GanttSeries:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttSeries)),GaplessDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.GaplessDateAxis)),Gradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Gradient)),GrainPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GrainPattern)),Graphics:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Graphics)),GraticuleSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.GraticuleSeries)),Grid:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Grid)),GridLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GridLayout)),HeatLegend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HeatLegend)),HeikinAshi:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HeikinAshi)),Hierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Hierarchy)),HierarchyLink:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyLink)),HierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyNode)),HorizontalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HorizontalLayout)),HorizontalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalLineSeries)),HorizontalRaySeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalRaySeries)),IconControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconControl)),IconSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconSeries)),Indicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Indicator)),IndicatorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IndicatorControl)),InterfaceColors:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.InterfaceColors)),IntervalControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IntervalControl)),Label:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Label)),LabelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LabelSeries)),Layout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Layout)),Legend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Legend)),Line:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Line)),LineArrowSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LineArrowSeries)),LinePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinePattern)),LineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.LineSeries)),LinearGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinearGradient)),Link:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Link)),LinkedHierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchy)),LinkedHierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchyNode)),MACD:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACD)),MACross:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACross)),MapChart:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapChart)),MapLine:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLine)),MapLineSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLineSeries)),MapPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPointSeries)),MapPolygon:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygon)),MapPolygonSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygonSeries)),MapSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapSeries)),Measure:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Measure)),MedianPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MedianPrice)),Modal:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Modal)),Momentum:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Momentum)),MovingAverage:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverage)),MovingAverageDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageDeviation)),MovingAverageEnvelope:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageEnvelope)),NumericStepper:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.NumericStepper)),OHLC:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLC)),OHLCSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLCSeries)),OnBalanceVolume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OnBalanceVolume)),OrthogonalLine:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.OrthogonalLine)),OverboughtOversold:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OverboughtOversold)),PVT:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PVT)),Pack:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Pack)),PanelControls:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PanelControls)),ParallelChannelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ParallelChannelSeries)),Partition:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Partition)),PathPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PathPattern)),Pattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Pattern)),PatternSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PatternSet)),PercentChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentChart)),PercentSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentSeries)),PeriodSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PeriodSelector)),PictorialStackedSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PictorialStackedSeries)),Picture:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Picture)),PicturePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PicturePattern)),PieChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieChart)),PieSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieSeries)),PointedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PointedRectangle)),Polygon:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Polygon)),PolylineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PolylineSeries)),ProgressPie:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ProgressPie)),PyramidSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PyramidSeries)),QuadrantLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.QuadrantLineSeries)),RadarChart:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarChart)),RadarColumnSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarColumnSeries)),RadarCursor:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarCursor)),RadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarLineSeries)),RadialGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialGradient)),RadialLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialLabel)),RadialText:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialText)),Rectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Rectangle)),RectanglePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RectanglePattern)),RectangleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RectangleSeries)),RegressionSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RegressionSeries)),RelativeStrengthIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RelativeStrengthIndex)),ResetControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ResetControl)),RoundedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RoundedRectangle)),Sankey:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Sankey)),SankeyLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyLink)),SankeyNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyNodes)),Scrollbar:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Scrollbar)),SerialChart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SerialChart)),Serializer:()=>Promise.resolve().then((()=>i(5362))).then((t=>t.Serializer)),Series:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Series)),SeriesTypeControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SeriesTypeControl)),SerpentineChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SerpentineChart)),SettingsControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsControl)),SettingsModal:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsModal)),SimpleLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SimpleLineSeries)),Slice:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slice)),SliceGrouper:()=>Promise.resolve().then((()=>i(1790))).then((t=>t.SliceGrouper)),SlicedChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.SlicedChart)),Slider:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slider)),SmoothedRadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.SmoothedRadarLineSeries)),SmoothedXLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXLineSeries)),SmoothedXYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXYLineSeries)),SmoothedYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedYLineSeries)),SpiralChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SpiralChart)),Sprite:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Sprite)),SpriteResizer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SpriteResizer)),StandardDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StandardDeviation)),Star:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Star)),StepLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.StepLineSeries)),StochasticMomentumIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticMomentumIndex)),StochasticOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticOscillator)),StockChart:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockChart)),StockControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockControl)),StockLegend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockLegend)),StockPanel:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockPanel)),StockToolbar:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockToolbar)),Sunburst:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Sunburst)),SuperTrend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SuperTrend)),Text:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Text)),Tick:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tick)),Tooltip:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tooltip)),Tree:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Tree)),Treemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Treemap)),TrendLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TrendLineSeries)),Triangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Triangle)),Trix:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Trix)),TypicalPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TypicalPrice)),VWAP:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VWAP)),ValueAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ValueAxis)),Venn:()=>Promise.resolve().then((()=>i(8034))).then((t=>t.Venn)),VerticalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.VerticalLayout)),VerticalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VerticalLineSeries)),Volume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Volume)),VolumeProfile:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VolumeProfile)),VoronoiTreemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.VoronoiTreemap)),WilliamsR:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.WilliamsR)),WordCloud:()=>Promise.resolve().then((()=>i(6769))).then((t=>t.WordCloud)),XYChart:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChart)),XYChartScrollbar:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChartScrollbar)),XYCursor:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYCursor)),XYSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYSeries)),ZigZag:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ZigZag)),ZoomControl:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ZoomControl)),ZoomTools:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomTools)),ZoomableContainer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomableContainer))};function f(t){return u.isObject(t)}function _(t){return t instanceof n.JH||t instanceof a.Il||t instanceof h.gG||t instanceof l.YS}function m(t,e){let i=t.length;for(;i--;){const s=t[i];if(e in s)return s[e]}throw new Error("Could not find ref "+e)}function y(t,e){if("#"===t[0]||"@"===t[0]){if(t[1]===t[0])return{isValue:!0,value:t.slice(1)};{const i=t.split(/\./g);let s=m(e,i[0]);for(let t=1;t{e(t)}))}function w(t,e){v(t,e),e.adapters&&d.each(e.adapters,(e=>{t.adapters.add(e.key,e.callback)})),e.states&&d.each(e.states,(e=>{t.states.create(e.key,e.settings)})),t instanceof o.W&&e.children&&e.children.forEach((e=>{null==e.index||e.index>=t.children.length?t.children.push(e.value):t.children.insertIndex(e.index,e.value)}))}function b(t,e){if(!e.construct)return e.value;const i=e.construct.new(t,e.settings||{});return w(i,e),i}class x{constructor(){this._caching={},this._cache={},this._delayed=[]}afterParse(){this._delayed.forEach((t=>{t()}))}getClass(t){return this._cache[t]}storeClass(t){return(0,s.mG)(this,void 0,void 0,(function*(){if("Template"===t)return;const e=g[t];if(null==e)throw new Error("Unknown object type `"+t+"`");this._cache[t]=yield e()}))}cacheClass(t){let e=this._caching[t];return null==e&&(e=this._caching[t]=this.storeClass(t)),e}parseAsyncArray(t){return(0,s.mG)(this,void 0,void 0,(function*(){yield Promise.all(d.map(t,(t=>this.parseAsync(t))))}))}parseAsyncObjectKey(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){"type"===t?u.isString(e)?yield this.cacheClass(e):yield this.parseAsync(e):"geoJSON"===t||"geometry"===t||(yield this.parseAsync(e))}))}parseAsyncObject(t){return(0,s.mG)(this,void 0,void 0,(function*(){switch(t.type){case"Color":case"Percent":break;default:yield Promise.all(d.map(p.keys(t),(e=>this.parseAsyncObjectKey(e,t[e]))))}}))}parseAsync(t){return(0,s.mG)(this,void 0,void 0,(function*(){u.isArray(t)?yield this.parseAsyncArray(t):f(t)&&(_(t)||!0!==t.__parse&&!1===t.__parse||(yield this.parseAsyncObject(t)))}))}parseObject(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parse(t,e[n],i)})),s}parseArray(t,e,i){return d.map(e,(e=>this.parse(t,e,i)))}parseChildren(t,e,i){return d.map(e,(e=>this.parseChild(t,e,i)))}parseStops(t,e,i){return d.map(e,(e=>this.parseObject(t,e,i)))}parseSetting(t,e,i,s){if("layout"===e)switch(i){case"horizontal":return t.horizontalLayout;case"vertical":return t.verticalLayout;case"grid":return t.gridLayout}return"clusteredBullet"===e?(e,n)=>{const r=s.concat([{"@series":n}]);return this.parse(t,i,r)}:"projection"===e||"geoJSON"===e?i:"stops"===e?this.parseStops(t,i,s):this.parse(t,i,s)}parseSettings(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parseSetting(t,n,e[n],i)})),s}parseState(t,e,i){return{key:e.key,settings:this.parseSettings(t,e.settings,i)}}parseAdapter(t,e,i){return{key:e.key,callback:this.parse(t,e.callback,i)}}parseProperties(t,e,i){return d.map(p.keys(e),(s=>{const r=e[s];return e=>{const o=()=>{const o=this.parseValue(t,r,i),a=e[s];a?o.isValue?u.isArray(o.value)?a instanceof c.k?a.setAll(o.value):d.each(o.value,(t=>{a.push(t)})):e[s]=o.value:o.construct?e[s]=b(t,o):a instanceof n.JH||a instanceof l.YS?function(t,e){e.settings&&t.setAll(e.settings),w(t,e)}(a,o):v(a,o):o.isValue?e[s]=o.value:e[s]=b(t,o)};if("data"===s)this._delayed.push(o);else if("bullets"===s){const n=e[s];u.assert(null!=n),u.assert(u.isArray(r)),d.each(r,(e=>{n.push(((s,n)=>{const r=i.concat([{"@series":n}]);return this.parse(t,e,r)}))}))}else"bullet"===s?e.set("bullet",((e,s)=>{const n=i.concat([{"@axis":s}]);return this.parse(t,r,n)})):o()}}))}parseAxisRange(t,e,i){return{isValue:!1,type:void 0,construct:void 0,settings:this.parseSettings(t,e.settings,i),adapters:void 0,states:void 0,children:void 0,properties:void 0,index:void 0,value:e}}parseRefsObject(t,e,i){const s={};return p.each(e,((e,r)=>{if("axisRange"==r.__parseLogic||"seriesAxisRange"==r.__parseLogic){const e=this.parseAxisRange(t,r,i),s=m(i,r.axis),o=s.makeDataItem({});let a;const h=r.series?m(i,r.series):void 0;h?a=h.createAxisRange(o):s.createAxisRange(o),function(t,e){e.settings&&p.each(e.settings,((e,i)=>{if(i instanceof n.JH){const s=t.get(e);s instanceof n.JH?s.setAll(i._settings):t.set(e,i)}else t.set(e,i)})),w(t,e)}(o,e),a&&["fills","strokes","graphics"].forEach((e=>{if(void 0!==a[e]&&void 0!==r[e]){r[e].__parse=!0;const s=this.parse(t,r[e],i);a[e].template.setAll(s)}}))}else s["#"+e]=this.parse(t,r,i)})),s}parseRefs(t,e,i){if(u.isArray(e)){const s=e.length;for(let n=0;nthis.parseState(t,e,i))):void 0,h=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0,l=null==e.index?void 0:e.index;return{isValue:!1,type:e.type,construct:s,settings:n,adapters:h,states:a,children:o,properties:r,index:l,value:e}}parseTemplate(t,e,i){e.refs&&(i=this.parseRefs(t,e.refs,i));const s=e.settings?this.parseSettings(t,e.settings,i):{},n=l.YS.new(s),r=e.states?d.map(e.states,(e=>this.parseState(t,e,i))):void 0,o=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0;return o&&d.each(o,(t=>{n.adapters.add(t.key,t.callback)})),r&&d.each(r,(t=>{n.states.create(t.key,t.settings)})),{isValue:!0,value:n}}parseValue(t,e,i){return e instanceof n.JH?{isValue:!0,value:e}:u.isArray(e)?{isValue:!0,value:this.parseArray(t,e,i)}:f(e)?_(e)?{isValue:!0,value:e}:"Color"===e.type?{isValue:!0,value:a.Il.fromAny(e.value)}:"Percent"===e.type?{isValue:!0,value:new h.gG(e.value)}:"Template"===e.type?this.parseTemplate(t,e,i):!0===e.__parse?{isValue:!0,value:this.parseObject(t,e,i)}:!1===e.__parse?{isValue:!0,value:e}:this.parseEntity(t,e,i):u.isString(e)?y(e,i):{isValue:!0,value:e}}parse(t,e,i){const s=this.parseValue(t,e,i);return s.isValue?s.value:b(t,s)}}class D{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t}static new(t){return new this(t,!0)}parse(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){const i=new x;yield i.parseAsync(t);const s=i.parse(this._root,t,[]);if(e.parent){if(!(s instanceof r.j))throw new Error("When using the parent setting, the entity must be a Sprite");e.parent.children.push(s)}else s instanceof n.JH&&s._applyThemes(!0);return i.afterParse(),s}))}parseString(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.parse(JSON.parse(t),e)}))}}function k(t,e){g[t]||(g[t]=()=>new Promise((t=>{t(e)})))}},6890:function(t,e,i){"use strict";i.d(e,{e:function(){return p}});var s=i(6331),n=i(9361),r=i(1112),o=i(1437),a=i(6245),h=i(5769),l=i(9582),c=i(5040),u=i(5071),d=i(256);class p extends s.JH{constructor(){super(...arguments),this._refs={}}serialize(t,e=0,i=!1,p=!1){if(e>this.get("maxDepth",2))return;if(!1===t||!0===t)return t;if(c.isArray(t)){const s=[];return u.each(t,(t=>{s.push(this.serialize(t,e,i,p))})),s}if(t instanceof l.k){const s=[];return u.each(t.values,(t=>{s.push(this.serialize(t,e,i,p))})),s}const g={},f=t instanceof s.JH||t instanceof h.YS||t instanceof r.Il||t instanceof a.gG,_=this.get("fullSettings",[]);if(t instanceof s.JH){g.type=t.className;let s=this._filterSettings(d.keys(t._settings));s=s.filter((e=>t.isUserSetting(e))),s.length&&(g.settings={},u.each(s,(s=>{const n=t.get(s);void 0!==n&&(g.settings[s]=this.serialize(n,e+1,i||-1!==_.indexOf(s)),t instanceof o.p&&"stops"===s&&(g.settings[s]=this.serialize(n,0,!0)))}))),this._processAdapters(t,g),this._processStates(t,g)}else if(t instanceof h.YS){g.type="Template";let i=this._filterSettings(d.keys(t._settings));return i.length&&(g.settings={},u.each(i,(i=>{void 0!==t._settings[i]&&(g.settings[i]=this.serialize(t.get(i),e+1,-1!==_.indexOf(i)))}))),this._processAdapters(t,g),this._processStates(t,g),g}if(t instanceof n.w&&t.data.length&&-1===(this.get("excludeProperties")||[]).indexOf("data")&&(g.properties={data:this.serialize(t.data.values,e,!0)}),t instanceof r.Il)return{type:"Color",value:t.toCSSHex()};if(t instanceof a.gG)return{type:"Percent",value:t.percent};if(c.isString(t))return this._escapeRefs(t);if(c.isNumber(t))return t;if(c.isObject(t))if(i&&!f){const s=this.get("excludeProperties",[]);d.each(t,((t,n)=>{-1===s.indexOf(t)&&void 0!==n&&(g[t]=this.serialize(n,e+1,i,p))})),p&&d.each(g,((t,e)=>{c.isObject(e)&&(g.__parse=!0)}))}else if(f){const s=this.get("includeProperties",[]);u.each(s,(s=>{const n=t[s];void 0!==n&&(void 0===g.properties&&(g.properties={}),g.properties[s]=this.serialize(n,e+1,i,p))}))}return 0==e&&d.keys(this._refs).length&&(g.refs=this._refs),g}_processAdapters(t,e){if(this.get("includeAdapters",!1)){const i="string"==this.get("functionsAs","string"),s=t.adapters._callbacks;Object.keys(s).length>0&&(e.adapters=[],d.each(s,((t,s)=>{s.forEach((s=>{e.adapters.push({key:t,callback:i?s.toString():s})}))})))}}_processStates(t,e){if(this.get("includeStates",!1)){const i=t.states._states;Object.keys(i).length>0&&(e.states=[],d.each(i,((t,i)=>{Object.keys(i._settings).length>0&&e.states.push({key:t,settings:this.serialize(i._settings,0,!0)})})))}}_filterSettings(t){const e=this.get("includeSettings",[]),i=this.get("excludeSettings",[]);return e.length?t=e:i.length&&(t=t.filter((t=>-1===i.indexOf(t)))),t}_escapeRefs(t){return t.replace(/^#/,"##").replace(/^@/,"@@")}}p.className="Serializer",p.classNames=s.JH.classNames.concat([p.className])},3783:function(t,e,i){"use strict";i.d(e,{X:function(){return c},v:function(){return l}});var s=i(3409),n=i(6245),r=i(1112),o=i(6881),a=i(962),h=i(9395);function l(t,e,i,s){t.set(e,i.get(s)),i.on(s,(i=>{t.set(e,i)}))}class c extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.language,e=this._root.interfaceColors,i=this._root.horizontalLayout,s=this._root.verticalLayout,c=this.rule.bind(this);c("InterfaceColors").setAll({stroke:r.Il.fromHex(15066597),fill:r.Il.fromHex(15987699),primaryButton:r.Il.fromHex(6788316),primaryButtonHover:r.Il.fromHex(6779356),primaryButtonDown:r.Il.fromHex(6872182),primaryButtonActive:r.Il.fromHex(6872182),primaryButtonDisabled:r.Il.fromHex(14342874),primaryButtonTextDisabled:r.Il.fromHex(16777215),primaryButtonText:r.Il.fromHex(16777215),primaryButtonStroke:r.Il.fromHex(16777215),secondaryButton:r.Il.fromHex(14277081),secondaryButtonHover:r.Il.fromHex(10724259),secondaryButtonDown:r.Il.fromHex(9276813),secondaryButtonActive:r.Il.fromHex(15132390),secondaryButtonText:r.Il.fromHex(0),secondaryButtonStroke:r.Il.fromHex(16777215),grid:r.Il.fromHex(0),background:r.Il.fromHex(16777215),alternativeBackground:r.Il.fromHex(0),text:r.Il.fromHex(0),alternativeText:r.Il.fromHex(16777215),disabled:r.Il.fromHex(11382189),positive:r.Il.fromHex(5288704),negative:r.Il.fromHex(11730944)});{const t=c("ColorSet");t.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[r.Il.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),t.setPrivate("currentStep",0),t.setPrivate("currentPass",0)}c("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:h.out(h.cubic)}),c("Component").setAll({interpolationDuration:0,interpolationEasing:h.out(h.cubic)}),c("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:n.CI,tooltipY:n.CI,tooltipPosition:"fixed",isMeasured:!0}),c("Sprite").states.create("default",{visible:!0,opacity:1}),c("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),c("Graphics").setAll({strokeWidth:1}),c("Chart").setAll({width:n.AQ,height:n.AQ,interactiveChildren:!1}),c("ZoomableContainer").setAll({width:n.AQ,height:n.AQ,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:h.out(h.cubic),animationDuration:600,maxPanOut:.4}),c("Sprite",["horizontal","center"]).setAll({centerX:n.CI,x:n.CI}),c("Sprite",["vertical","center"]).setAll({centerY:n.CI,y:n.CI}),c("Container",["horizontal","layout"]).setAll({layout:i}),c("Container",["vertical","layout"]).setAll({layout:s}),c("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),c("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),c("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),c("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),c("GrainPattern").setAll({width:200,height:200,colors:[r.Il.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const t=c("PatternSet");t.setAll({step:1}),l(t,"color",e,"stroke")}c("LinearGradient").setAll({rotation:90}),c("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:o.M.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),c("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:t.translate("Press ENTER to toggle"),role:"checkbox"});{const t=c("Rectangle",["legend","item","background"]);t.setAll({fillOpacity:0}),l(t,"fill",e,"background")}c("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:n.CI,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),c("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:n.AQ,height:n.AQ,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const t=c("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});l(t,"fill",e,"disabled"),l(t,"stroke",e,"disabled")}c("Label",["legend","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0}),l(c("Label",["legend","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("Label",["legend","value","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:n.AQ,populateText:!0}),l(c("Label",["legend","value","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("HeatLegend").setAll({stepCount:1}),c("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),c("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:n.AQ,width:15}),c("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:n.AQ,height:15}),c("HeatLegend",["vertical"]).setAll({height:n.AQ}),c("HeatLegend",["horizontal"]).setAll({width:n.AQ}),c("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),c("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const t=c("Label");t.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),l(t,"fill",e,"text")}c("RadialLabel").setAll({textType:"regular",centerY:n.CI,centerX:n.CI,inside:!1,radius:0,baseRadius:n.AQ,orientation:"auto",textAlign:"center"}),c("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),c("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:r.Il.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:r.Il.fromHex(0)}),c("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),c("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),c("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),c("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const t=c("Tick");t.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),l(t,"stroke",e,"grid")}c("Bullet").setAll({locationX:.5,locationY:.5}),c("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:n.CI,centerY:n.CI,animationEasing:h.out(h.cubic),exportable:!1}),c("Tooltip",["system"]).setAll({pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});{const t=c("PointedRectangle",["tooltip","system","background"]);t.setAll({strokeOpacity:.3}),l(t,"fill",e,"background"),l(t,"stroke",e,"grid")}c("Label",["tooltip","system"]).setAll({fontSize:12,fill:e.get("background")}),c("Polygon").setAll({animationEasing:h.out(h.cubic)}),c("Link").setAll({cornerRadius:8,setStateOnChildren:!0});{const t=c("OrthogonalLine",["link","line"]);t.setAll({isMeasured:!1,crisp:!0}),l(t.states.create("active",{strokeWidth:2}),"stroke",e,"negative")}c("OrthogonalLine",["link","hit"]).setAll({strokeWidth:10,opacity:0,strokeOpacity:0});{const t=c("OrthogonalLine");t.setAll({strokeWidth:1,strokeOpacity:1,cornerRadius:10}),l(t,"stroke",e,"grid")}{const t=c("Triangle",["link"]);t.setAll({width:14,height:10,centerY:0}),l(t,"fill",e,"grid"),l(t,"stroke",e,"grid"),t.states.create("default",{stateAnimationDuration:0});const i=t.states.create("active",{stateAnimationDuration:0,stroke:(0,r.$_)(16777215),strokeWidth:2});i.set("draw",(t=>{t.arc(0,0,11,0,2*Math.PI),t.moveTo(-4,-4),t.lineTo(4,4),t.moveTo(4,-4),t.lineTo(-4,4)})),l(i,"fill",e,"negative")}c("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:r.Il.fromHex(16777215)});{const t=c("Label",["tooltip"]);t.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),l(t,"fill",e,"alternativeText")}c("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),c("Button").states.create("hover",{}),c("Button").states.create("down",{stateAnimationDuration:0}),c("Button").states.create("active",{}),c("Button").states.create("disabled",{forceInactive:!0});{const t=c("RoundedRectangle",["button","background"]);l(t,"fill",e,"primaryButton"),l(t,"stroke",e,"primaryButtonStroke")}l(c("RoundedRectangle",["button","background"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown"),l(c("RoundedRectangle",["button","background"]).states.create("active",{}),"fill",e,"primaryButtonActive"),l(c("RoundedRectangle",["button","background"]).states.create("disabled",{}),"fill",e,"primaryButtonDisabled"),l(c("Graphics",["button","icon"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled"),l(c("Label",["button"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled");{const t=c("Graphics",["button","icon"]);t.setAll({forceInactive:!0}),l(t,"stroke",e,"primaryButtonText")}l(c("Label",["button"]),"fill",e,"primaryButtonText"),c("ConfirmButton").setAll({toggleKey:"active",setStateOnChildren:!0,label:a._.new(this._root,{text:t.translate("Confirm"),forceHidden:!0})}),l(c("RoundedRectangle",["button","background","confirm"]).states.create("active",{}),"fill",e,"negative"),c("Label",["button","confirm"]).setAll({paddingTop:0,paddingBottom:0,paddingRight:3,paddingLeft:5}),c("Label",["button","confirm"]).states.create("default",{stateAnimationDuration:0}),c("Label",["button","confirm"]).states.create("active",{forceHidden:!1,stateAnimationDuration:0});{const t=c("Graphics",["icon","confirm","button"]);t.setAll({stateAnimationDuration:0}),t.states.create("default",{stateAnimationDuration:0}),l(t,"stroke",e,"primaryButtonText")}l(c("Graphics",["icon","confirm","button"]).states.create("active",{svgPath:"M -5 1 L 0 6 L 8 -5",strokeWidth:2}),"stroke",e,"primaryButtonText"),l(c("Graphics",["icon","confirm","button","secondary"]).states.create("active",{}),"stroke",e,"primaryButtonText"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1}),"fill",e,"negative"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1}),"fill",e,"negative"),c("Button",["button","confirm"]).states.create("hoverActive",{}),c("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:n.AQ,role:"button",ariaLabel:t.translate("Zoom Out"),layer:30});{const t=c("RoundedRectangle",["background","button","zoom"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"primaryButton")}l(c("RoundedRectangle",["background","button","zoom"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown");{const t=c("Graphics",["icon","button","zoom"]);t.setAll({crisp:!0,strokeOpacity:.7,draw:t=>{t.moveTo(0,0),t.lineTo(12,0)}}),l(t,"stroke",e,"primaryButtonText")}c("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:n.CI,centerY:n.CI,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:t.translate("Use up and down arrows to move selection")});{const t=c("RoundedRectangle",["background","resize","button"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"secondaryButton"),l(t,"stroke",e,"secondaryButtonStroke")}l(c("RoundedRectangle",["background","resize","button"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown");{const t=c("Graphics",["resize","button","icon"]);t.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),l(t,"stroke",e,"secondaryButtonText")}c("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),c("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),c("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:t.translate("Play"),toggleKey:"active"});{const t=c("RoundedRectangle",["play","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Graphics",["play","icon"]);t.setAll({stateAnimationDuration:0,dx:1,draw:t=>{t.moveTo(0,-5),t.lineTo(8,0),t.lineTo(0,5),t.lineTo(0,-5)}}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),c("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:t=>{t.moveTo(-4,-5),t.lineTo(-1,-5),t.lineTo(-1,5),t.lineTo(-4,5),t.lineTo(-4,-5),t.moveTo(4,-5),t.lineTo(1,-5),t.lineTo(1,5),t.lineTo(4,5),t.lineTo(4,-5)}}),c("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:t.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const t=c("RoundedRectangle",["switch","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["switch","icon"]);t.setAll({radius:8,centerY:0,centerX:0,dx:0}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["switch","icon"]).states.create("active",{dx:16}),c("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:h.out(h.cubic)}),c("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:n.AQ}),c("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:n.AQ}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const t=c("RoundedRectangle",["scrollbar","main","background"]);t.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),l(t,"fill",e,"fill")}{const t=c("RoundedRectangle",["scrollbar","thumb"]);t.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),l(t,"fill",e,"secondaryButton")}l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown"),c("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:n.CI,width:n.AQ,centerX:n.CI,ariaLabel:t.translate("Use up and down arrows to move selection")}),c("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:n.CI,centerY:n.CI,height:n.AQ,ariaLabel:t.translate("Use left and right arrows to move selection")});{const t=c("PointedRectangle",["axis","tooltip","background"]);t.setAll({cornerRadius:0}),l(t,"fill",e,"alternativeBackground")}c("Label",["axis","tooltip"]).setAll({role:void 0}),c("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),c("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),c("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),c("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),c("Star").setAll({spikes:5,innerRadius:5,radius:10}),c("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),c("Tooltip",["indicator"]).setAll({forceHidden:!0}),c("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),c("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),c("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),c("Container",["resizer","grip"]).states.create("hover",{});{const t=c("RoundedRectangle",["resizer","grip"]);t.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),l(t,"fill",e,"background"),l(t,"stroke",e,"alternativeBackground")}{const t=c("RoundedRectangle",["resizer","grip","outline"]);t.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),t.states.create("hover",{fillOpacity:.3}),l(t,"fill",e,"alternativeBackground")}c("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),c("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const t=c("Rectangle",["resizer","rectangle"]);t.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),l(t,"stroke",e,"alternativeBackground")}c("Graphics",["button","plus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0),t.moveTo(0,-4),t.lineTo(0,4)}}),c("Graphics",["button","minus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0)}}),c("Graphics",["button","home","icon"]).setAll({x:n.CI,y:n.CI,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),c("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),c("ZoomTools").setAll({x:n.AQ,centerX:n.AQ,y:n.AQ,centerY:n.AQ,paddingRight:10,paddingBottom:10}),c("ProgressPie").setAll({radius:n.AQ,width:50,height:50,centerX:(0,n.aQ)(-50),centerY:(0,n.aQ)(-50),innerRadius:(0,n.aQ)(85),numberFormat:"#."});{const t=c("Label",["progresspie"]);t.setAll({centerX:n.CI,centerY:n.CI,fontSize:"0.75em"}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["progresspie"]);t.setAll({fillOpacity:.5}),l(t,"fill",e,"background")}{const t=c("Slice",["progresspie"]);t.setAll({startAngle:-90}),l(t,"fill",e,"primaryButton")}{const t=c("Slice",["progresspie","background"]);t.setAll({fillOpacity:.2,arc:360}),l(t,"fill",e,"primaryButton")}c("EditableLabel",["numericstepper"]).setAll({y:n.CI,centerY:n.CI,multiLine:!1,marginRight:2});{const t=c("Container",["numericstepper","buttons"]);t.setAll({layout:this._root.verticalLayout,centerY:n.CI,y:n.CI,marginRight:10,opacity:0}),t.states.create("active",{opacity:1}),t.states.create("default",{opacity:0})}{const t=c("Triangle",["numericstepper"]);t.setAll({width:17,height:11,marginTop:3,marginBottom:3,strokeWidth:5,strokeOpacity:0,cursorOverStyle:"pointer"}),l(t,"fill",e,"secondaryButton")}c("Triangle",["downbutton"]).setAll({rotation:180})}}},5322:function(t,e,i){"use strict";i.r(e),i.d(e,{ArrayDisposer:function(){return c.rk},BlendMode:function(){return ot.b},Bullet:function(){return u.g},Button:function(){return d.z},CSVParser:function(){return bt},CanvasLayer:function(){return Pt.mM},CanvasRenderer:function(){return Pt.uK},Chart:function(){return q.k},Circle:function(){return g.C},CirclePattern:function(){return ut},Color:function(){return O.Il},ColorSet:function(){return mt.U},Component:function(){return v.w},ConfirmButton:function(){return p.p},Container:function(){return w.W},CounterDisposer:function(){return c.DM},DataItem:function(){return v.z},DataProcessor:function(){return xt},DateFormatter:function(){return Dt.C},Disposer:function(){return c.ku},DurationFormatter:function(){return kt.$},EditableLabel:function(){return A.Y},Ellipse:function(){return _.P},Entity:function(){return l.JH},Gradient:function(){return at.p},GrainPattern:function(){return rt},Graphics:function(){return m.T},GridLayout:function(){return x.M},HeatLegend:function(){return C},HorizontalLayout:function(){return L.G},InterfaceColors:function(){return Tt.v},JSONParser:function(){return wt},JsonData:function(){return yt.Q},Label:function(){return D._},Layout:function(){return R.A},Legend:function(){return U.D},Line:function(){return B.x},LinePattern:function(){return dt.y},LinearGradient:function(){return S.o},Link:function(){return F.r},ListData:function(){return yt.k},ListTemplate:function(){return E.o},Modal:function(){return h.u},MultiDisposer:function(){return c.FV},MutableValueDisposer:function(){return c.cx},NumberFormatter:function(){return Mt.e},NumericStepper:function(){return St.l},OrthogonalLine:function(){return I.P},PathPattern:function(){return ft},Pattern:function(){return nt.c},PatternSet:function(){return _t},Percent:function(){return k.gG},Picture:function(){return H.t},PicturePattern:function(){return pt.v},PointedRectangle:function(){return z.i},Polygon:function(){return f.m},ProgressPie:function(){return Nt.w},RadialGradient:function(){return lt},RadialLabel:function(){return G.x},RadialText:function(){return V.f},Rectangle:function(){return W.A},RectanglePattern:function(){return gt},Root:function(){return n.f},RoundedRectangle:function(){return T.c},Scrollbar:function(){return j.L},SerialChart:function(){return Q.j},Series:function(){return K.F},Slice:function(){return $.p},Slider:function(){return X.i},Sprite:function(){return Z.j},SpriteResizer:function(){return Ot.b},Star:function(){return y},Template:function(){return M.YS},Text:function(){return J.x},TextFormatter:function(){return Et.V},Theme:function(){return r.Q},Tick:function(){return tt.d},Timezone:function(){return it.r},Tooltip:function(){return P.u},Triangle:function(){return Y.C},VerticalLayout:function(){return et.Z},ZoomTools:function(){return st.H},ZoomableContainer:function(){return b.Y},addLicense:function(){return o.cP},array:function(){return ht},color:function(){return O.$_},disposeAllRootElements:function(){return o.UZ},ease:function(){return Ct},getRootById:function(){return o.f_},math:function(){return ct},net:function(){return s},object:function(){return vt},p0:function(){return k.p0},p100:function(){return k.AQ},p50:function(){return k.CI},percent:function(){return k.aQ},ready:function(){return a.ready},registry:function(){return o.i_},time:function(){return Rt},type:function(){return N},utils:function(){return a}});var s={};i.r(s),i.d(s,{load:function(){return Lt},readBlob:function(){return At}});var n=i(2855),r=i(3409),o=i(3145),a=i(7652),h=i(8219),l=i(6331),c=i(7449),u=i(5108),d=i(8054),p=i(2936),g=i(8035),f=i(7770),_=i(2433),m=i(1479);class y extends m.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("spikes"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const t=this._display,e=this.get("radius",0),i=a.relativeToValue(this.get("innerRadius",0),e),s=this.get("spikes",0),n=Math.PI/s;let r=Math.PI/2*3;t.moveTo(0,-e);for(let o=0;oT.c._new(this._root,{themeTags:a.mergeTags(this.markers.template.get("themeTags",[]),[this.get("orientation"),"heatlegend","marker"])},[this.markers.template]))))}_afterNew(){this._settings.themeTags=a.mergeTags(this._settings.themeTags,["heatlegend",this._settings.orientation]),super._afterNew(),this.set("tooltip",P.u.new(this._root,{themeTags:["heatlegend"]}))}makeMarker(){const t=this.markers.make();return t.states.create("disabled",{}),t}showValue(t,e,i){const s=this.getTooltip();if(s&&N.isNumber(t)){const n=this.get("startValue",0);let r=(t-n)/(this.get("endValue",1)-n);(r==1/0||r==-1/0||isNaN(r))&&(r=.5);const o=this.get("startColor"),a=this.get("endColor");let h;e||(e=this.getNumberFormatter().format(t)),i||(i=O.Il.interpolate(r,o,a)),s.label.set("text",e),h="vertical"==this.get("orientation")?this.markerContainer.toGlobal({x:0,y:this.innerHeight()*(1-r)}):this.markerContainer.toGlobal({x:this.innerWidth()*r,y:0});let l=s.get("background");l&&l.set("fill",i),s.set("pointTo",h),s.show()}}_prepareChildren(){super._prepareChildren();const t=this.labelContainer,e=this.get("orientation"),i=this.startLabel,s=this.endLabel,n=this.getTooltip();if(this.isDirty("orientation")&&("vertical"==e?(this.markerContainer.setAll({layout:this._root.verticalLayout,height:k.AQ}),this.set("layout",this._root.horizontalLayout),i.setAll({y:k.AQ,x:void 0,centerY:k.AQ,centerX:k.AQ}),s.setAll({y:0,x:void 0,centerY:0,centerX:k.AQ}),t.setAll({height:k.AQ,width:void 0}),n&&n.set("pointerOrientation","horizontal")):(this.markerContainer.setAll({layout:this._root.horizontalLayout,width:k.AQ}),this.set("layout",this._root.verticalLayout),i.setAll({x:0,y:void 0,centerX:0,centerY:0}),s.setAll({x:k.AQ,y:void 0,centerX:k.AQ,centerY:0}),t.setAll({width:k.AQ,height:void 0}),n&&n.set("pointerOrientation","vertical"))),this.isDirty("stepCount")){const t=this.get("stepCount",1),i=this.get("startColor"),s=this.get("endColor"),n=this.get("startOpacity",1),r=this.get("endOpacity",1);if(this.markerContainer.children.clear(),t>1)for(let o=0;o0&&e/u!=Math.round(e/u)))for(let h=0;h0&&h/c!=Math.round(h/c)||d{let i=e.offset;N.isNumber(i)||(i=t/(g.length-1));let s=e.opacity;N.isNumber(s)||(s=1);let n=e.color;if(n){const t=e.lighten;t&&(n=O.Il.lighten(n,t));const r=e.brighten;r&&(n=O.Il.brighten(n,r)),p.addColorStop(i,"rgba("+n.r+","+n.g+","+n.b+","+s+")")}t++}))}return p}}lt.className="RadialGradient",lt.classNames=at.p.classNames.concat([lt.className]);var ct=i(751);class ut extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("radius",3),a=2*o+i,h=2*o+i,l=Math.round(n/a),c=Math.round(r/h);a=n/l,h=r/c,0!=s&&(this._display.x=a*ct.cos(s),this._display.y=h*ct.sin(s));const u=this.get("color"),d=this.get("colorOpacity");(u||d)&&this._display.beginFill(u,d);for(let n=0==s?0:2*-c;n<2*c;n++)for(let r=0==s?0:2*-l;r<2*l;r++)if(!t||1!=(1&n)&&1!=(1&r)||1==(1&n)&&1==(1&r)){let t=r*a,s=n*h;e&&(t+=a+i/2,s+=h+i/2),this._display.drawCircle(t-o,s-o,o)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i),(u||d)&&this._display.endFill()}}ut.className="CirclePattern",ut.classNames=nt.c.classNames.concat([ut.className]);var dt=i(3035),pt=i(4429);class gt extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("maxWidth",5),a=this.get("maxHeight",5);const h=this._display;let l=o+i,c=a+i,u=Math.round(n/l),d=Math.round(r/c);l=n/u,c=r/d,0!=s&&(h.x=l/2*ct.cos(s),h.y=-c/2*ct.sin(s));for(let i=0==s?0:2*-d;i<2*d;i++)for(let n=0==s?0:2*-u;n<2*u;n++)if(!t||1!=(1&i)&&1!=(1&n)||1==(1&i)&&1==(1&n)){let t=n*l,s=i*c;e&&(t+=(l-o)/2,s+=(c-a)/2),h.drawRect(t,s,o,a)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i);const p=this.get("color"),g=this.get("colorOpacity");(p||g)&&(h.beginFill(p,g),h.endFill())}}gt.className="RectanglePattern",gt.classNames=nt.c.classNames.concat([gt.className]);class ft extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("svgPath")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("svgPath");null!=t&&this._display.svgPath(t);const e=this.get("color"),i=this.get("colorOpacity");(e||i)&&(this._display.beginFill(e,i),this._display.endFill())}}ft.className="PathPattern",ft.classNames=nt.c.classNames.concat([ft.className]);class _t extends l.JH{_afterNew(){if(super._afterNewApplyThemes(),0===this.get("patterns",[]).length){const t=this.get("color",this.root.interfaceColors.get("stroke"));this.set("patterns",[this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:1,color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,maxWidth:4,maxHeight:4,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:1,gap:6,color:t}),this.getCirclePattern({width:11,height:11,radius:2,color:t}),this.getLinePattern({width:6,height:6,rotation:90,strokeWidth:1,color:t}),this.getRectanglePattern({width:14,height:14,rotation:45,gap:4,maxWidth:6,maxHeight:6,checkered:!0,color:t}),this.getLinePattern({width:6,height:6,rotation:0,strokeWidth:1,color:t}),this.getRectanglePattern({width:15,height:15,rotation:0,gap:5,maxWidth:5,maxHeight:5,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getCirclePattern({width:20,height:20,radius:3,gap:4,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,gap:1,maxWidth:9,maxHeight:9,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:0,strokeWidth:3,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:90,strokeWidth:3,gap:1,color:t})])}this._dirty.patterns=!1}_beforeChanged(){this.isDirty("patterns")&&this.reset()}getIndex(t){const e=this.get("patterns",[]);return te.length-1?e[t-Math.floor(t*(t/e.length))]:e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0))}getLinePattern(t){return dt.y.new(this.root,t)}getRectanglePattern(t){return gt.new(this.root,t)}getCirclePattern(t){return ut.new(this.root,t)}}_t.className="PatternSet",_t.classNames=l.JH.classNames.concat([_t.className]);var mt=i(2754),yt=i(9582),vt=i(256);class wt{static parse(t,e){e=this._applyDefaults(e);try{if(N.isString(t)){let i=JSON.parse(t);return e.reverse&&N.isArray(i)&&i.reverse(),i}if(N.isArray(t)||N.isObject(t))return t;throw"Unable to parse JSON data"}catch(t){return}}static _applyDefaults(t){const e={};return t||(t={}),vt.each({reverse:!1},((i,s)=>{e[i]=t[i]||s})),e}}class bt{static parse(t,e){e=this._applyDefaults(e);let i,s,n,r=this.CSVToArray(t,e.delimiter),o=[],a=[];for(s=0;s{e[i]=t[i]||s})),e}}class xt extends l.JH{constructor(){super(...arguments),this._checkDates=!1,this._checkNumbers=!1,this._checkColors=!1,this._checkEmpty=!1,this._checkDeep=!1}_afterNew(){super._afterNew(),this._checkFeatures(),this.on("dateFields",(()=>this._checkFeatures())),this.on("dateFormat",(()=>this._checkFeatures())),this.on("numericFields",(()=>this._checkFeatures())),this.on("colorFields",(()=>this._checkFeatures())),this.on("emptyAs",(()=>this._checkFeatures()))}_checkFeatures(){(this.isDirty("dateFields")||this.isDirty("dateFormat"))&&(this._checkDates=this.get("dateFields")&&this.get("dateFields").length>0),this.isDirty("numericFields")&&(this._checkNumbers=this.get("numericFields")&&this.get("numericFields").length>0),this.isDirty("colorFields")&&(this._checkColors=this.get("colorFields")&&this.get("colorFields").length>0),this.isDirty("emptyAs")&&(this._checkEmpty=null!=this.get("emptyAs")),this._checkDeepFeatures()}_checkDeepFeatures(){const t=[];ht.each(["dateFields","numericFields","colorFields"],(e=>{ht.each(this.get(e,[]),(e=>{const i=e.split(".");for(i.pop();i.length>0;)t.push(i.join(".")),i.pop()}))})),this._checkDeep=t.length>0,this.setPrivate("deepFields",t)}processMany(t){N.isArray(t)&&(this._checkDates||this._checkNumbers||this._checkColors||this._checkEmpty)&&ht.each(t,(t=>{this.processRow(t)}))}processRow(t,e=""){vt.each(t,((i,s)=>{const n=e+i;this._checkEmpty&&(t[i]=this._maybeToEmpty(t[i])),this._checkNumbers&&(t[i]=this._maybeToNumber(n,t[i])),this._checkDates&&(t[i]=this._maybeToDate(n,t[i])),this._checkColors&&(t[i]=this._maybeToColor(n,t[i])),this._checkDeep&&-1!==this.getPrivate("deepFields",[]).indexOf(n)&&N.isObject(t[i])&&this.processRow(t[i],n+".")}))}_maybeToNumber(t,e){return-1!==this.get("numericFields").indexOf(t)?N.toNumber(e):e}_maybeToDate(t,e){return-1!==this.get("dateFields").indexOf(t)?this._root.dateFormatter.parse(e,this.get("dateFormat","")).getTime():e}_maybeToEmpty(t){return null!=t&&""!=t||null==this.get("emptyAs")?t:this.get("emptyAs")}_maybeToColor(t,e){return-1!==this.get("colorFields").indexOf(t)?O.Il.fromAny(e):e}}var Dt=i(6460),kt=i(798),Tt=i(9821),Mt=i(780),Et=i(7255),Ot=i(1195),Pt=i(4102),St=i(7049),Nt=i(6312),Ct=i(9395);function Lt(t,e,i){return new Promise(((s,n)=>{let r=null!=i&&"blob"==i.responseType,o=new XMLHttpRequest;if(o.onload=()=>{if(200===o.status){let t,i;if(r)return i=o.response,void At(i).then((t=>{let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}));t=o.responseText||o.response;let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}else n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.onerror=()=>{n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.open("GET",t,!0),i&&i.withCredentials&&(o.withCredentials=!0),null!=i){if(null!=i.requestHeaders)for(let t=0;t{const s=new FileReader;s.onload=t=>{e(s.result)},s.onerror=t=>{i(t)},s.readAsText(t)}))}var Rt=i(1926)},3100:function(t,e){"use strict";e.Z={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(t){let e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""}},9629:function(t){var e=function(t){"use strict";var e,i=Object.prototype,s=i.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",h=r.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,s){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new S(s||[]);return n(o,"_invoke",{value:M(t,i,a)}),o}function u(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",g="executing",f="completed",_={};function m(){}function y(){}function v(){}var w={};l(w,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==i&&s.call(x,o)&&(w=x);var D=v.prototype=m.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function i(n,r,o,a){var h=u(t[n],t,r);if("throw"!==h.type){var l=h.arg,c=l.value;return c&&"object"==typeof c&&s.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,o,a)}),(function(t){i("throw",t,o,a)})):e.resolve(c).then((function(t){l.value=t,o(l)}),(function(t){return i("throw",t,o,a)}))}a(h.arg)}var r;n(this,"_invoke",{value:function(t,s){function n(){return new e((function(e,n){i(t,s,e,n)}))}return r=r?r.then(n,n):n()}})}function M(t,e,i){var s=d;return function(n,r){if(s===g)throw new Error("Generator is already running");if(s===f){if("throw"===n)throw r;return C()}for(i.method=n,i.arg=r;;){var o=i.delegate;if(o){var a=E(o,i);if(a){if(a===_)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===d)throw s=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=g;var h=u(t,e,i);if("normal"===h.type){if(s=i.done?f:p,h.arg===_)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(s=f,i.method="throw",i.arg=h.arg)}}}function E(t,i){var s=i.method,n=t.iterator[s];if(n===e)return i.delegate=null,"throw"===s&&t.iterator.return&&(i.method="return",i.arg=e,E(t,i),"throw"===i.method)||"return"!==s&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),_;var r=u(n,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,_;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,_):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,_)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var h=s.call(o,"catchLoc"),l=s.call(o,"finallyLoc");if(h&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var s=i.completion;if("throw"===s.type){var n=s.arg;P(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,s){return this.delegate={iterator:N(t),resultName:i,nextLoc:s},"next"===this.method&&(this.arg=e),_}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},8494:function(t,e,i){"use strict";i.r(e),i.d(e,{am5:function(){return f}});const s=window.Promise,n=s&&s.prototype.then,r=s&&s.prototype.catch,o=s&&s.prototype.finally,a=s&&s.reject,h=s&&s.resolve,l=s&&s.allSettled,c=s&&s.all,u=s&&s.race,d=window.fetch,p=String.prototype.startsWith,g=String.prototype.endsWith;i(9629);const f=i(5322);var _;i.p=(_=function(){if(document.currentScript)return document.currentScript;var t=document.getElementsByTagName("script");return t[t.length-1]}().src,((/(.*\/)[^\/]*$/.exec(_)||[])[1]||"./")),s&&(window.Promise=s,n&&(s.prototype.then=n),r&&(s.prototype.catch=r),o&&(s.prototype.finally=o),a&&(s.reject=a),h&&(s.resolve=h),l&&(s.allSettled=l),c&&(s.all=c),u&&(s.race=u)),d&&(window.fetch=d),p&&(String.prototype.startsWith=p),g&&(String.prototype.endsWith=g)},4138:function(t,e){"use strict";var i={value:()=>{}};function s(){for(var t,e=0,i=arguments.length,s={};e=0&&(e=t.slice(i+1),t=t.slice(0,i)),t&&!s.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),h=-1,l=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++h0)for(var i,s,n=new Array(i),r=0;r0&&i*i>s*s+n*n}function u(t,e){for(var i=0;i1e-6?(E+Math.sqrt(E*E-4*M*O))/(2*M):O/E);return{x:s+x+D*P,y:n+k+T*P,r:P}}function f(t,e,i){var s,n,r,o,a=t.x-e.x,h=t.y-e.y,l=a*a+h*h;l?(n=e.r+i.r,n*=n,o=t.r+i.r,n>(o*=o)?(s=(l+o-n)/(2*l),r=Math.sqrt(Math.max(0,o/l-s*s)),i.x=t.x-s*a-r*h,i.y=t.y-s*h+r*a):(s=(l+n-o)/(2*l),r=Math.sqrt(Math.max(0,n/l-s*s)),i.x=e.x+s*a-r*h,i.y=e.y+s*h+r*a)):(i.x=e.x+i.r,i.y=e.y)}function _(t,e){var i=t.r+e.r-1e-6,s=e.x-t.x,n=e.y-t.y;return i>0&&i*i>s*s+n*n}function m(t){var e=t._,i=t.next._,s=e.r+i.r,n=(e.x*i.r+i.x*e.r)/s,r=(e.y*i.r+i.y*e.r)/s;return n*n+r*r}function y(t){this._=t,this.next=null,this.previous=null}function v(t,e){if(!(o=(i=t,t="object"==typeof i&&"length"in i?i:Array.from(i)).length))return 0;var i,s,n,r,o,a,l,u,p,g,v,w;if((s=t[0]).x=0,s.y=0,!(o>1))return s.r;if(n=t[1],s.x=-n.r,n.x=s.r,n.y=0,!(o>2))return s.r+n.r;f(n,s,r=t[2]),s=new y(s),n=new y(n),r=new y(r),s.next=r.previous=n,n.next=s.previous=r,r.next=n.previous=s;t:for(u=3;u(t=(r*t+o)%a)/a}();return s.x=e/2,s.y=i/2,t?s.eachBefore(x(t)).eachAfter(D(h,.5,l)).eachBefore(k(1)):s.eachBefore(x(w)).eachAfter(D(n.G,1,l)).eachAfter(D(h,s.r/Math.min(e,i),l)).eachBefore(k(Math.min(e,i)/(2*s.r))),s}return l.radius=function(e){return arguments.length?(t=(0,s.j)(e),l):t},l.size=function(t){return arguments.length?(e=+t[0],i=+t[1],l):[e,i]},l.padding=function(t){return arguments.length?(h="function"==typeof t?t:(0,n.Z)(+t),l):h},l}function x(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function D(t,e,i){return function(s){if(n=s.children){var n,r,o,a=n.length,h=t(s)*e||0;if(h)for(r=0;r=0))throw new Error(`invalid digits: ${t}`);if(e>15)return a;const i=10**e;return function(t){this._+=t[0];for(let e=1,s=t.length;er)if(Math.abs(d*l-c*u)>r&&o){let g=i-a,f=n-h,_=l*l+c*c,m=g*g+f*f,y=Math.sqrt(_),v=Math.sqrt(p),w=o*Math.tan((s-Math.acos((_+p-m)/(2*y*v)))/2),b=w/v,x=w/y;Math.abs(b-1)>r&&this._append`L${t+b*u},${e+b*d}`,this._append`A${o},${o},0,0,${+(d*g>u*f)},${this._x1=t+x*l},${this._y1=e+x*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,i,a,h,l){if(t=+t,e=+e,l=!!l,(i=+i)<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(a),u=i*Math.sin(a),d=t+c,p=e+u,g=1^l,f=l?a-h:h-a;null===this._x1?this._append`M${d},${p}`:(Math.abs(this._x1-d)>r||Math.abs(this._y1-p)>r)&&this._append`L${d},${p}`,i&&(f<0&&(f=f%n+n),f>o?this._append`A${i},${i},0,1,${g},${t-c},${e-u}A${i},${i},0,1,${g},${this._x1=d},${this._y1=p}`:f>r&&this._append`A${i},${i},0,${+(f>=s)},${g},${this._x1=t+i*Math.cos(h)},${this._y1=e+i*Math.sin(h)}`)}rect(t,e,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function l(){return new h}l.prototype=h.prototype},832:function(t,e,i){"use strict";i.d(e,{Z:function(){return D}});var s=i(3141);const n=Math.abs,r=Math.atan2,o=Math.cos,a=Math.max,h=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,d=Math.PI,p=d/2,g=2*d;function f(t){return t>=1?p:t<=-1?-p:Math.asin(t)}var _=i(5987);function m(t){return t.innerRadius}function y(t){return t.outerRadius}function v(t){return t.startAngle}function w(t){return t.endAngle}function b(t){return t&&t.padAngle}function x(t,e,i,s,n,r,o){var h=t-i,l=e-s,u=(o?r:-r)/c(h*h+l*l),d=u*l,p=-u*h,g=t+d,f=e+p,_=i+d,m=s+p,y=(g+_)/2,v=(f+m)/2,w=_-g,b=m-f,x=w*w+b*b,D=n-r,k=g*m-_*f,T=(b<0?-1:1)*c(a(0,D*D*x-k*k)),M=(k*b-w*T)/x,E=(-k*w-b*T)/x,O=(k*b+w*T)/x,P=(-k*w+b*T)/x,S=M-y,N=E-v,C=O-y,L=P-v;return S*S+N*N>C*C+L*L&&(M=O,E=P),{cx:M,cy:E,x01:-d,y01:-p,x11:M*(n/D-1),y11:E*(n/D-1)}}function D(){var t=m,e=y,i=(0,s.Z)(0),a=null,D=v,k=w,T=b,M=null,E=(0,_.d)(O);function O(){var s,_,m,y=+t.apply(this,arguments),v=+e.apply(this,arguments),w=D.apply(this,arguments)-p,b=k.apply(this,arguments)-p,O=n(b-w),P=b>w;if(M||(M=s=E()),vu)if(O>g-u)M.moveTo(v*o(w),v*l(w)),M.arc(0,0,v,w,b,!P),y>u&&(M.moveTo(y*o(b),y*l(b)),M.arc(0,0,y,b,w,P));else{var S,N,C=w,L=b,A=w,R=b,U=O,B=O,F=T.apply(this,arguments)/2,I=F>u&&(a?+a.apply(this,arguments):c(y*y+v*v)),H=h(n(v-y)/2,+i.apply(this,arguments)),z=H,G=H;if(I>u){var V=f(I/y*l(F)),W=f(I/v*l(F));(U-=2*V)>u?(A+=V*=P?1:-1,R-=V):(U=0,A=R=(w+b)/2),(B-=2*W)>u?(C+=W*=P?1:-1,L-=W):(B=0,C=L=(w+b)/2)}var Y=v*o(C),j=v*l(C),X=y*o(R),$=y*l(R);if(H>u){var Z,K=v*o(L),q=v*l(L),Q=y*o(A),J=y*l(A);if(O1?0:m<-1?d:Math.acos(m))/2),rt=c(Z[0]*Z[0]+Z[1]*Z[1]);z=h(H,(y-rt)/(nt-1)),G=h(H,(v-rt)/(nt+1))}else z=G=0}B>u?G>u?(S=x(Q,J,Y,j,v,G,P),N=x(K,q,X,$,v,G,P),M.moveTo(S.cx+S.x01,S.cy+S.y01),Gu&&U>u?z>u?(S=x(X,$,K,q,y,-z,P),N=x(Y,j,Q,J,y,-z,P),M.lineTo(S.cx+S.x01,S.cy+S.y01),z=o;--a)p.point(y[a],v[a]);p.lineEnd(),p.areaEnd()}m&&(y[r]=+t(h,r,n),v[r]=+e(h,r,n),p.point(l?+l(h,r,n):y[r],i?+i(h,r,n):v[r]))}if(f)return p=null,f+""||null}function _(){return(0,o.Z)().defined(c).curve(d).context(u)}return t="function"==typeof t?t:void 0===t?h.x:(0,n.Z)(+t),e="function"==typeof e?e:void 0===e?(0,n.Z)(0):(0,n.Z)(+e),i="function"==typeof i?i:void 0===i?h.y:(0,n.Z)(+i),f.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),l=null,f):t},f.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),f):t},f.x1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):l},f.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),i=null,f):e},f.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),f):e},f.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):i},f.lineX0=f.lineY0=function(){return _().x(t).y(e)},f.lineY1=function(){return _().x(t).y(i)},f.lineX1=function(){return _().x(l).y(e)},f.defined=function(t){return arguments.length?(c="function"==typeof t?t:(0,n.Z)(!!t),f):c},f.curve=function(t){return arguments.length?(d=t,null!=u&&(p=d(u)),f):d},f.context=function(t){return arguments.length?(null==t?u=p=null:p=d(u=t),f):u},f}},8457:function(t,e,i){"use strict";function s(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}i.d(e,{Z:function(){return s}}),Array.prototype.slice},3141:function(t,e,i){"use strict";function s(t){return function(){return t}}i.d(e,{Z:function(){return s}})},964:function(t,e,i){"use strict";function s(t){this._context=t}function n(t){return new s(t)}i.d(e,{Z:function(){return n}}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},774:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var s=i(8457),n=i(3141),r=i(964),o=i(5987),a=i(6758);function h(t,e){var i=(0,n.Z)(!0),h=null,l=r.Z,c=null,u=(0,o.d)(d);function d(n){var r,o,a,d=(n=(0,s.Z)(n)).length,p=!1;for(null==h&&(c=l(a=u())),r=0;r<=d;++r)!(r=0))throw new RangeError(`invalid digits: ${i}`);e=t}return t},()=>new s.y$(e)}},6758:function(t,e,i){"use strict";function s(t){return t[0]}function n(t){return t[1]}i.d(e,{x:function(){return s},y:function(){return n}})},7738:function(t,e,i){"use strict";i.d(e,{B7:function(){return _},HT:function(){return m},zO:function(){return g}});var s,n,r=0,o=0,a=0,h=1e3,l=0,c=0,u=0,d="object"==typeof performance&&performance.now?performance:Date,p="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return c||(p(f),c=d.now()+u)}function f(){c=0}function _(){this._call=this._time=this._next=null}function m(t,e,i){var s=new _;return s.restart(t,e,i),s}function y(){c=(l=d.now())+u,r=o=0;try{!function(){g(),++r;for(var t,e=s;e;)(t=c-e._time)>=0&&e._call.call(void 0,t),e=e._next;--r}()}finally{r=0,function(){for(var t,e,i=s,r=1/0;i;)i._call?(r>i._time&&(r=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:s=e);n=t,w(r)}(),c=0}}function v(){var t=d.now(),e=t-l;e>h&&(u-=e,l=t)}function w(t){r||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(y,t-d.now()-u)),a&&(a=clearInterval(a))):(a||(l=d.now(),a=setInterval(v,h)),r=1,p(y)))}_.prototype=m.prototype={constructor:_,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?g():+i)+(null==e?0:+e),this._next||n===this||(n?n._next=this:s=this,n=this),this._call=t,this._time=i,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},7896:function(t,e,i){"use strict";function s(){}function n(t){return null==t?s:function(){return this.querySelector(t)}}function r(){return[]}function o(t){return null==t?r:function(){return this.querySelectorAll(t)}}function a(t){return function(){return this.matches(t)}}function h(t){return function(e){return e.matches(t)}}var l=Array.prototype.find;function c(){return this.firstElementChild}var u=Array.prototype.filter;function d(){return Array.from(this.children)}function p(t){return new Array(t.length)}function g(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function f(t,e,i,s,n,r){for(var o,a=0,h=e.length,l=r.length;ae?1:t>=e?0:NaN}g.prototype={constructor:g,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var w="http://www.w3.org/1999/xhtml",b={svg:"http://www.w3.org/2000/svg",xhtml:w,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function x(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),b.hasOwnProperty(e)?{space:b[e],local:t}:t}function D(t){return function(){this.removeAttribute(t)}}function k(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T(t,e){return function(){this.setAttribute(t,e)}}function M(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function O(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function P(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function S(t){return function(){this.style.removeProperty(t)}}function N(t,e,i){return function(){this.style.setProperty(t,e,i)}}function C(t,e,i){return function(){var s=e.apply(this,arguments);null==s?this.style.removeProperty(t):this.style.setProperty(t,s,i)}}function L(t,e){return t.style.getPropertyValue(e)||P(t).getComputedStyle(t,null).getPropertyValue(e)}function A(t){return function(){delete this[t]}}function R(t,e){return function(){this[t]=e}}function U(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function B(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new I(t)}function I(t){this._node=t,this._names=B(t.getAttribute("class")||"")}function H(t,e){for(var i=F(t),s=-1,n=e.length;++s=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ut=[null];function dt(t,e){this._groups=t,this._parents=e}function pt(){return new dt([[document.documentElement]],ut)}dt.prototype=pt.prototype={constructor:dt,select:function(t){"function"!=typeof t&&(t=n(t));for(var e=this._groups,i=e.length,s=new Array(i),r=0;r=T&&(T=k+1);!(D=b[T])&&++T=0;)(s=n[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=v);for(var i=this._groups,s=i.length,n=new Array(s),r=0;r1?this.each((null==e?S:"function"==typeof e?C:N)(t,e,null==i?"":i)):L(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?A:"function"==typeof e?U:R)(t,e)):this.node()[t]},classed:function(t,e){var i=B(t+"");if(arguments.length<2){for(var s=F(this.node()),n=-1,r=i.length;++n=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}))}(t+""),o=r.length;if(!(arguments.length<2)){for(a=e?at:ot,s=0;s{s.stop(),t(i+e)}),e,i),s}var yt=(0,ft.Z)("start","end","cancel","interrupt"),vt=[],wt=0,bt=3;function xt(t,e,i,s,n,r){var o=t.__transition;if(o){if(i in o)return}else t.__transition={};!function(t,e,i){var s,n=t.__transition;function r(h){var l,c,u,d;if(1!==i.state)return a();for(l in n)if((d=n[l]).name===i.name){if(d.state===bt)return mt(r);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[l]):+lwt)throw new Error("too late; already scheduled");return i}function kt(t,e){var i=Tt(t,e);if(i.state>bt)throw new Error("too late; already running");return i}function Tt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Mt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Et,Ot=180/Math.PI,Pt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function St(t,e,i,s,n,r){var o,a,h;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(h=t*i+e*s)&&(i-=t*h,s-=e*h),(a=Math.sqrt(i*i+s*s))&&(i/=a,s/=a,h/=a),t*s180?e+=360:e-t>180&&(t+=360),r.push({i:i.push(n(i)+"rotate(",null,s)-2,x:Mt(t,e)})):e&&i.push(n(i)+"rotate("+e+s)}(r.rotate,o.rotate,a,h),function(t,e,i,r){t!==e?r.push({i:i.push(n(i)+"skewX(",null,s)-2,x:Mt(t,e)}):e&&i.push(n(i)+"skewX("+e+s)}(r.skewX,o.skewX,a,h),function(t,e,i,s,r,o){if(t!==i||e!==s){var a=r.push(n(r)+"scale(",null,",",null,")");o.push({i:a-4,x:Mt(t,i)},{i:a-2,x:Mt(e,s)})}else 1===i&&1===s||r.push(n(r)+"scale("+i+","+s+")")}(r.scaleX,r.scaleY,o.scaleX,o.scaleY,a,h),r=o=null,function(t){for(var e,i=-1,s=h.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?se(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?se(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jt.exec(t))?new re(e[1],e[2],e[3],1):(e=Xt.exec(t))?new re(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$t.exec(t))?se(e[1],e[2],e[3],e[4]):(e=Zt.exec(t))?se(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Kt.exec(t))?ue(e[1],e[2]/100,e[3]/100,1):(e=qt.exec(t))?ue(e[1],e[2]/100,e[3]/100,e[4]):Qt.hasOwnProperty(t)?ie(Qt[t]):"transparent"===t?new re(NaN,NaN,NaN,0):null}function ie(t){return new re(t>>16&255,t>>8&255,255&t,1)}function se(t,e,i,s){return s<=0&&(t=e=i=NaN),new re(t,e,i,s)}function ne(t,e,i,s){return 1===arguments.length?((n=t)instanceof It||(n=ee(n)),n?new re((n=n.rgb()).r,n.g,n.b,n.opacity):new re):new re(t,e,i,null==s?1:s);var n}function re(t,e,i,s){this.r=+t,this.g=+e,this.b=+i,this.opacity=+s}function oe(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}`}function ae(){const t=he(this.opacity);return`${1===t?"rgb(":"rgba("}${le(this.r)}, ${le(this.g)}, ${le(this.b)}${1===t?")":`, ${t})`}`}function he(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function le(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ce(t){return((t=le(t))<16?"0":"")+t.toString(16)}function ue(t,e,i,s){return s<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new pe(t,e,i,s)}function de(t){if(t instanceof pe)return new pe(t.h,t.s,t.l,t.opacity);if(t instanceof It||(t=ee(t)),!t)return new pe;if(t instanceof pe)return t;var e=(t=t.rgb()).r/255,i=t.g/255,s=t.b/255,n=Math.min(e,i,s),r=Math.max(e,i,s),o=NaN,a=r-n,h=(r+n)/2;return a?(o=e===r?(i-s)/a+6*(i0&&h<1?0:o,new pe(o,a,h,t.opacity)}function pe(t,e,i,s){this.h=+t,this.s=+e,this.l=+i,this.opacity=+s}function ge(t){return(t=(t||0)%360)<0?t+360:t}function fe(t){return Math.max(0,Math.min(1,t||0))}function _e(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function me(t,e,i,s,n){var r=t*t,o=r*t;return((1-3*t+3*r-o)*e+(4-6*r+3*o)*i+(1+3*t+3*r-3*o)*s+o*n)/6}Bt(It,ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return de(this).formatHsl()},formatRgb:te,toString:te}),Bt(re,ne,Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new re(le(this.r),le(this.g),le(this.b),he(this.opacity))},displayable(){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:oe,formatHex:oe,formatHex8:function(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}${ce(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ae,toString:ae})),Bt(pe,(function(t,e,i,s){return 1===arguments.length?de(t):new pe(t,e,i,null==s?1:s)}),Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new pe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new pe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*e,n=2*i-s;return new re(_e(t>=240?t-240:t+120,n,s),_e(t,n,s),_e(t<120?t+240:t-120,n,s),this.opacity)},clamp(){return new pe(ge(this.h),fe(this.s),fe(this.l),he(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=he(this.opacity);return`${1===t?"hsl(":"hsla("}${ge(this.h)}, ${100*fe(this.s)}%, ${100*fe(this.l)}%${1===t?")":`, ${t})`}`}}));var ye=t=>()=>t;function ve(t,e){var i=e-t;return i?function(t,e){return function(i){return t+i*e}}(t,i):ye(isNaN(t)?e:t)}var we=function t(e){var i=function(t){return 1==(t=+t)?ve:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(s){return Math.pow(t+s*e,i)}}(e,i,t):ye(isNaN(e)?i:e)}}(e);function s(t,e){var s=i((t=ne(t)).r,(e=ne(e)).r),n=i(t.g,e.g),r=i(t.b,e.b),o=ve(t.opacity,e.opacity);return function(e){return t.r=s(e),t.g=n(e),t.b=r(e),t.opacity=o(e),t+""}}return s.gamma=t,s}(1);function be(t){return function(e){var i,s,n=e.length,r=new Array(n),o=new Array(n),a=new Array(n);for(i=0;i=1?(i=1,e-1):Math.floor(i*e),n=t[s],r=t[s+1],o=s>0?t[s-1]:2*n-r,a=sr&&(n=e.slice(r,n),a[o]?a[o]+=n:a[++o]=n),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,h.push({i:o,x:Mt(i,s)})),r=De.lastIndex;return r=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Dt:kt;return function(){var o=r(this,t),a=o.on;a!==s&&(n=(s=a).copy()).on(e,i),o.on=n}}(i,t,e))},attr:function(t,e){var i=x(t),s="transform"===i?Lt:Te;return this.attrTween(t,"function"==typeof e?(i.local?Ne:Se)(i,s,Ut(this,"attr."+t,e)):null==e?(i.local?Ee:Me)(i):(i.local?Pe:Oe)(i,s,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;var s=x(t);return this.tween(i,(s.local?Ce:Le)(s,e))},style:function(t,e,i){var s="transform"==(t+="")?Ct:Te;return null==e?this.styleTween(t,function(t,e){var i,s,n;return function(){var r=L(this,t),o=(this.style.removeProperty(t),L(this,t));return r===o?null:r===i&&o===s?n:n=e(i=r,s=o)}}(t,s)).on("end.style."+t,Ie(t)):"function"==typeof e?this.styleTween(t,function(t,e,i){var s,n,r;return function(){var o=L(this,t),a=i(this),h=a+"";return null==a&&(this.style.removeProperty(t),h=a=L(this,t)),o===h?null:o===s&&h===n?r:(n=h,r=e(s=o,a))}}(t,s,Ut(this,"style."+t,e))).each(function(t,e){var i,s,n,r,o="style."+e,a="end."+o;return function(){var h=kt(this,t),l=h.on,c=null==h.value[o]?r||(r=Ie(e)):void 0;l===i&&n===c||(s=(i=l).copy()).on(a,n=c),h.on=s}}(this._id,t)):this.styleTween(t,function(t,e,i){var s,n,r=i+"";return function(){var o=L(this,t);return o===r?null:o===s?n:n=e(s=o,i)}}(t,s,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var s="style."+(t+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(null==e)return this.tween(s,null);if("function"!=typeof e)throw new Error;return this.tween(s,function(t,e,i){var s,n;function r(){var r=e.apply(this,arguments);return r!==n&&(s=(n=r)&&function(t,e,i){return function(s){this.style.setProperty(t,e.call(this,s),i)}}(t,r,i)),s}return r._value=e,r}(t,e,null==i?"":i))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ut(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,i;function s(){var s=t.apply(this,arguments);return s!==i&&(e=(i=s)&&function(t){return function(e){this.textContent=t.call(this,e)}}(s)),e}return s._value=t,s}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var s,n=Tt(this.node(),i).tween,r=0,o=n.length;r2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[n]):o=!1;o&&delete t.__transition}}(this,t)}))},gt.prototype.transition=function(t){var e,i;t instanceof ze?(e=t._id,t=t._name):(e=Ge(),(i=We).time=(0,_t.zO)(),t=null==t?null:t+"");for(var s=this._groups,n=s.length,r=0;r=n)&&Object.keys(a.O).every((function(t){return a.O[t](i[h])}))?i.splice(h--,1):(o=!1,n0&&t[c-1][2]>n;c--)t[c]=t[c-1];t[c]=[i,s,n]},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},i=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(t,s){if(1&s&&(t=this(t)),8&s)return t;if("object"==typeof t&&t){if(4&s&&t.__esModule)return t;if(16&s&&"function"==typeof t.then)return t}var n=Object.create(null);a.r(n);var r={};e=e||[null,i({}),i([]),i(i)];for(var o=2&s&&t;"object"==typeof o&&!~e.indexOf(o);o=i(o))Object.getOwnPropertyNames(o).forEach((function(e){r[e]=function(){return t[e]}}));return r.default=function(){return t},a.d(n,r),n},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,i){return a.f[i](t,e),e}),[]))},a.u=function(t){return"deps/"+{643:"pdfmake",4297:"xlsx",4384:"markerjs2"}[t]+".js"},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s={},n="@amcharts/amcharts5:",a.l=function(t,e,i,r){if(s[t])s[t].push(e);else{var o,h;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c{this.zoomOut()})),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",e);const a=this.plotContainer;a.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),a.children.push(this.topGridContainer),a.children.push(this.bulletsContainer),a.set("interactive",!0),a.set("interactiveChildren",!1),a.set("background",o.A.new(t,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(a.events.on("pointerdown",(t=>{this._handlePlotDown(t)}))),this._disposers.push(a.events.on("globalpointerup",(t=>{this._handlePlotUp(t)}))),this._disposers.push(a.events.on("globalpointermove",(t=>{this._handlePlotMove(t)}))),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(t){t._unstack(),t._posXDp&&t._posXDp.dispose(),t._posYDp&&t._posYDp.dispose(),t.set("baseAxis",void 0);const e=t.get("xAxis");e&&(g.remove(e.series,t),e.markDirtyExtremes());const i=t.get("yAxis");i&&(g.remove(i.series,t),i.markDirtyExtremes());const s=this.get("cursor");if(s){const e=s.get("snapToSeries");e&&g.remove(e,t)}super._removeSeries(t)}_applyThemes(t=!1){const e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}handleWheel(t){const e=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=t.originalEvent;let o=!1;if(!p.isLocalEvent(a,this))return;o=!0;const n=s.toLocal(t.point),r=this.get("wheelStep",.2),h=a.deltaY/100,l=a.deltaX/100,d=this.get("wheelZoomPositionX"),g=this.get("wheelZoomPositionY");"zoomX"!==e&&"zoomXY"!==e||0==l||this.xAxes.each((t=>{if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let h=t.get("maxDeviation",0),g=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let l=t.get("maxDeviation",0),g=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let h=t.get("maxDeviation",0),d=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let l=t.get("maxDeviation",0),d=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panX"!==i&&"panXY"!==i||0==h||this.xAxes.each((t=>{if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e+s,n=i+s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==e&&"panXY"!==e||0==l||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==i&&"panXY"!==i||0==h||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e-s,n=i-s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),o&&a.preventDefault()}_handleSetWheel(){const t=this.get("wheelX"),e=this.get("wheelY"),i=this.plotContainer;"none"!==t||"none"!==e?(this._wheelDp=i.events.on("wheel",(i=>{const s=i.originalEvent;("none"!==t&&0!=Math.abs(s.deltaX)||"none"!==e&&0!=Math.abs(s.deltaY))&&this.handleWheel(i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(t){let e=1;return t.get("renderer").get("inversed")&&(e=-1),e}_fixWheel(t,e){const i=e-t;return t<0&&(e=(t=0)+i),e>1&&(t=(e=1)-i),[t,e]}_handlePlotDown(t){const e=t.originalEvent;if(2==e.button)return;const i=this.plotContainer;let s=i.toLocal(t.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&e.pointerId&&m.keys(i._downPoints).length>0){const t=this.xAxes.getIndex(0),e=this.yAxes.getIndex(0);t&&(this._downStartX=t.get("start",0),this._downEndX=t.get("end",1)),e&&(this._downStartY=e.get("start",0),this._downEndY=e.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:e.clientX,y:e.clientY};const i=this.get("panX"),s=this.get("panY");i&&this.xAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")})),s&&this.yAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")}));const a="panstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:t.originalEvent})}}_handleWheelAnimation(t){t?t.events.on("stopped",(()=>{this._dispatchWheelAnimation()})):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const t="wheelended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}_handlePlotUp(t){const e=this._downPoint;if(e&&(this.get("panX")||this.get("panY"))){if(t.originalEvent.clientX==e.x&&t.originalEvent.clientY==e.y){const e="pancancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:t.originalEvent})}this._downPoint=void 0,this.xAxes.each((t=>{t._isPanning=!1})),this.yAxes.each((t=>{t._isPanning=!1}))}_handlePlotMove(t){const e=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const i=t.originalEvent.pointerId;if(i&&(this._movePoints[i]=t.point,m.keys(e._downPoints).length>1))return void this._handlePinch()}let i=this._downPoint;if(i){i=e.toLocal(this._root.documentPointToRoot(i));let s=e.toLocal(t.point);const a=this.get("panX"),o=this.get("panY");if(a){let t=this.get("scrollbarX");t&&t.events.disableType("rangechanged"),this.xAxes.each((t=>{if(t.get("panX")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.x-s.x)/e.width();t.get("renderer").get("inversed")&&(n*=-1);let r=a+n,h=o+n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}if(o){let t=this.get("scrollbarY");t&&t.events.disableType("rangechanged"),this.yAxes.each((t=>{if(t.get("panY")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.y-s.y)/e.height();t.get("renderer").get("inversed")&&(n*=-1);let r=a-n,h=o-n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}}}_handlePinch(){const t=this.plotContainer;let e=0,i=[],s=[];if(m.each(t._downPoints,((t,a)=>{i[e]=a;let o=this._movePoints[t];o&&(s[e]=o),e++})),i.length>1&&s.length>1){const e=t.width(),a=t.height();let o=i[0],n=i[1],r=s[0],h=s[1];if(o&&n&&r&&h){if(r=t.toLocal(r),h=t.toLocal(h),o=t.toLocal(o),n=t.toLocal(n),this.get("pinchZoomX")){const t=this._downStartX,i=this._downEndX;if(null!=t&&null!=i){o.x>n.x&&([o,n]=[n,o],[r,h]=[h,r]);let s=t+o.x/e*(i-t),a=t+n.x/e*(i-t),l=t+r.x/e*(i-t),d=t+h.x/e*(i-t),g=Math.max(.001,a-s)/Math.max(.001,d-l),c=t*g+s-l*g,u=i*g+a-d*g;this.xAxes.each((t=>{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}if(this.get("pinchZoomY")){const t=this._downStartY,e=this._downEndY;if(null!=t&&null!=e){o.y{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}}}}_handleCursorPosition(){const t=this.get("cursor");if(t){const e=t.getPrivate("point");let i=t.get("snapToSeries");if(t._downPoint&&(i=void 0),i&&e){const s=t.get("snapToSeriesBy"),a=[];g.each(i,(t=>{if(!t.isHidden()&&!t.isHiding())if("x!"!=s&&"y!"!=s){const e=t.startIndex(),i=t.endIndex();for(let s=e;s{const i=t.get("point");if(i){let a=0;a="x"==s||"x!"==s?Math.abs(e.x-i.x):"y"==s||"y!"==s?Math.abs(e.y-i.y):Math.hypot(e.x-i.x,e.y-i.y),a{const e=t.get("tooltip");e&&e._setDataItem(void 0)})),o){let e=o.component;e.showDataItemTooltip(o),e.setRaw("tooltipDataItem",o);const i=o.get("point");i&&t.handleMove(e.toGlobal({x:i.x-e.x(),y:i.y-e.y()}),!0)}}}}_updateCursor(){let t=this.get("cursor");t&&t.updateCursor()}_addCursor(t){this.plotContainer.children.push(t)}_prepareChildren(){if(super._prepareChildren(),this.series.each((t=>{this._colorize(t)})),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const t=this._prevSettings.cursor,e=this.get("cursor");e!==t&&(this._disposeProperty("cursor"),t&&t.dispose(),e&&(e._setChart(this),this._addCursor(e),this._pushPropertyDisposer("cursor",e.events.on("selectended",(()=>{this._handleCursorSelectEnd()})))),this._prevSettings.cursor=e)}if(this.isDirty("scrollbarX")){const t=this._prevSettings.scrollbarX,e=this.get("scrollbarX");e!==t&&(this._disposeProperty("scrollbarX"),t&&t.dispose(),e&&(e.parent||this.topAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarX",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.xAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarX",e.events.on("released",(()=>{this.xAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.xAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarX=e)}if(this.isDirty("scrollbarY")){const t=this._prevSettings.scrollbarY,e=this.get("scrollbarY");e!==t&&(this._disposeProperty("scrollbarY"),t&&t.dispose(),e&&(e.parent||this.rightAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarY",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.yAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarY",e.events.on("released",(()=>{this.yAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.yAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarY=e)}this._handleZoomOut()}_processSeries(t){super._processSeries(t);const e=t.get("xAxis"),i=t.get("yAxis");g.move(e.series,t),g.move(i.series,t),t._posXDp=t.addDisposer(e.events.on("positionchanged",(()=>{t._fixPosition()}))),t._posXDp=t.addDisposer(i.events.on("positionchanged",(()=>{t._fixPosition()}))),t.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?t.set("baseAxis",i):t.set("baseAxis",e)),t.get("stacked")&&(t._markDirtyKey("stacked"),g.each(t.dataItems,(t=>{t.set("stackToItemY",void 0),t.set("stackToItemX",void 0)}))),t._markDirtyAxes(),i.markDirtyExtremes(),e.markDirtyExtremes(),e._seriesAdded=!0,i._seriesAdded=!0,this._colorize(t)}_colorize(t){const e=this.get("colors");if(e&&null==t.get("fill")){const i=e.next();t._setSoft("stroke",i),t._setSoft("fill",i)}const i=this.get("patterns");if(i&&null==t.get("fillPattern")){const e=i.next();t._setSoft("fillPattern",e)}}_handleCursorSelectEnd(){const t=this.get("cursor"),e=t.get("behavior"),i=t.getPrivate("downPositionX",0),s=t.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,t.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,t.getPrivate("positionY",.5)));this.xAxes.each((t=>{if("zoomX"===e||"zoomXY"===e){let e=t.toAxisPosition(i),s=t.toAxisPosition(a);t.zoom(e,s)}t.setPrivate("updateScrollbar",!0)})),this.yAxes.each((t=>{if("zoomY"===e||"zoomXY"===e){let e=t.toAxisPosition(s),i=t.toAxisPosition(o);t.zoom(e,i)}t.setPrivate("updateScrollbar",!0)}))}_handleScrollbar(t,e,i,s){t.each((t=>{let a=t.fixPosition(e),o=t.fixPosition(i),n=t.zoom(a,o,void 0,s);const r="updateScrollbar";t.setPrivateRaw(r,!1),n?n.events.on("stopped",(()=>{t.setPrivateRaw(r,!0)})):t.setPrivateRaw(r,!0)}))}_processAxis(t,e){return t.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxis(t)}));else if("push"===t.type)e.children.push(t.newValue),t.newValue.processChart(this);else if("setIndex"===t.type)e.children.setIndex(t.index,t.newValue),t.newValue.processChart(this);else if("insertIndex"===t.type)e.children.insertIndex(t.index,t.newValue),t.newValue.processChart(this);else if("removeIndex"===t.type)this._removeAxis(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");e.children.moveValue(t.value,t.newIndex),t.value.processChart(this)}}))}_removeAxis(t){if(!t.isDisposed()){const e=t.parent;e&&e.children.removeValue(t);const i=t.gridContainer,s=i.parent;s&&s.children.removeValue(i);const a=t.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){const t=this.leftAxesContainer.width(),e=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",t),i.set("paddingRight",e);const s=this.topAxesContainer;s.set("paddingLeft",t),s.set("paddingRight",e)}processAxis(t){this.get("cursor")&&(this.addDisposer(t.on("start",(()=>{this._updateCursor()}))),this.addDisposer(t.on("end",(()=>{this._updateCursor()}))))}_handleAxisSelection(t,e){let i=t.fixPosition(t.get("start",0)),s=t.fixPosition(t.get("end",1));if(i>s&&([i,s]=[s,i]),-1!=this.xAxes.indexOf(t)){if(e||t.getPrivate("updateScrollbar")){let t=this.get("scrollbarX");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}}else if(-1!=this.yAxes.indexOf(t)&&(e||t.getPrivate("updateScrollbar"))){let t=this.get("scrollbarY");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let t=this.zoomOutButton;if(t&&t.parent){let e=!1;this.xAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),e?t.isHidden()&&t.show():t.hide()}}inPlot(t){const e=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=e.toGlobal(t);if(t.x>=-.5&&t.y>=-.5&&t.x<=e.width()+.5&&t.y<=e.height()+.5)return!0;if(i)for(let t=i.length-1;t>=0;t--){const e=i[t];if(e!=this){const t=e.plotContainer,i=this._root.rootPointToDocument(s),a=e._root.documentPointToRoot(i),o=t.toLocal(a);if(o.x>=-.1&&o.y>=-.1&&o.x<=t.width()+.1&&o.y<=t.height()+.1)return!0}}return!1}arrangeTooltips(){const t=this.plotContainer,e=t.width(),i=t.height();let s=this.height();const a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=t._display.toGlobal({x:0,y:0}),n=t._display.toGlobal({x:e,y:i});const r=[];let l,d,m=0,p=1/0,_=this._movePoint,x=this.get("maxTooltipDistance"),v=this.get("maxTooltipDistanceBy","xy");c.isNumber(x)&&this.series.each((t=>{if(!t.isHidden()){const e=t.get("tooltip");if(e){let i=e.get("pointTo");if(i){let e=Math.hypot(_.x-i.x,_.y-i.y);"x"==v?e=Math.abs(_.x-i.x):"y"==v&&(e=Math.abs(_.y-i.y)),e{const e=t.get("tooltip");if(e&&!e.get("forceHidden")){let i=!1,s=e.get("pointTo");if(s){if(x>=0){let s=e.get("pointTo");if(s&&d&&t!=l){let t=Math.hypot(d.x-s.x,d.y-s.y);"x"==v?t=Math.abs(d.x-s.x):"y"==v&&(t=Math.abs(d.y-s.y)),t>x&&(i=!0)}}else-1==x&&t!=l&&(i=!0);this.inPlot(this._tooltipToLocal(s))&&e.dataItem?i||(m+=s.y):i=!0,i||t.isHidden()||t.isHiding()?e.hide(0):(e.show(),r.push(e),y.push(t))}}})),this.setPrivate("tooltipSeries",y),this.get("arrangeTooltips")){let t=0,e=0;const a=this._root.tooltipContainer,l=r.length;if(m/l>i/2+o.y){r.sort(((t,e)=>u.HO(e.get("pointTo").y,t.get("pointTo").y)));let i=n.y;if(g.each(r,(s=>{let r=s.height();e++,t+=r;let l=s.get("centerY");l instanceof h.gG&&(r*=l.value),r+=s.get("marginBottom",0),s.set("bounds",{left:o.x,top:o.y,right:n.x,bottom:i}),s.setPrivate("customData",{left:o.x,top:o.y,right:n.x,bottom:i}),i=Math.min(i-r,s._fy-r),s.parent==a&&a.children.moveValue(s,0)})),i<0){r.reverse();let t=i;g.each(r,(s=>{e++;let a=s.get("bounds");if(a){let e=a.top-i,o=a.bottom-i;eu.HO(t.get("pointTo").y,e.get("pointTo").y)));let i=0;if(g.each(r,(r=>{e++;let l=r.height();t+=l;let d=r.get("centerY");d instanceof h.gG&&(l*=d.value),l+=r.get("marginBottom",0),r.set("bounds",{left:o.x,top:i,right:n.x,bottom:Math.max(o.y+s,i+l)}),r.parent==a&&a.children.moveValue(r,0),i=Math.max(i+l,r._fy+l)})),i>s){r.reverse();let t=s;g.each(r,(a=>{e++;let o=a.get("bounds");if(o){let e=o.top-(s-i),n=o.bottom-(s-i);n>t&&(n=t,e=n-a.height()),a.set("bounds",{left:o.left,top:e,right:o.right,bottom:n}),t=n-a.height()-a.get("marginBottom",0)}}))}}0==t&&e>0&&this._disposers.push(this.root.events.once("frameended",(()=>{this.arrangeTooltips()})))}}_tooltipToLocal(t){return this.plotContainer.toLocal(t)}zoomOut(){this.xAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))}))}_dispose(){super._dispose();const t=this.get("cursor");t&&t.dispose()}}x.className="XYChart",x.classNames=n.j.classNames.concat([x.className])},55:function(t,e,i){i.d(e,{l:function(){return u}});var s=i(3409),a=i(6245),o=i(1112),n=i(2754),r=i(3783),h=i(1926),l=i(5040),d=i(751),g=i(256),c=i(5071);class u extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.interfaceColors,e=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:n.U.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:o.Il.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:n.U.new(this._root,{saturation:0})});{const e=i("Graphics",["scrollbar","overlay"]);e.setAll({fillOpacity:.5}),(0,r.v)(e,"fill",t,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:a.AQ,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:a.AQ}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:a.AQ}),i("AxisLabel",["y"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const s=i("Grid",["cursor","x"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use left and right arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const s=i("Grid",["cursor","y"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use up and down arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const e=i("Graphics",["cursor","selection"]);e.setAll({fillOpacity:.15}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:a.CI,centerY:a.CI,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const e=i("AxisRenderer");e.setAll({crisp:!0,strokeOpacity:0}),(0,r.v)(e,"stroke",t,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:a.AQ}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:a.AQ});{const e=i("Rectangle",["axis","thumb","zoomgrip"]);e.setAll({fillOpacity:0}),(0,r.v)(e,"fill",t,"alternativeBackground"),e.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{const e=i("Grid");e.setAll({location:0,strokeOpacity:.15,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}{const e=i("Grid",["minor"]);e.setAll({location:0,strokeOpacity:.07,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{const e=i("Graphics",["axis","fill"]);e.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{const e=i("AxisTick");e.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),(0,r.v)(e,"stroke",t,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(t,e)=>{const i=t.get("axisFill");i&&(l.isNumber(e)&&e%2!=0?i.setPrivate("visible",!1):i.setPrivate("visible",!0))}});const s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],u={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_hour"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month"),year:e.translate("_date_year")},m={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_day"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month")+" "+e.translate("_date_year"),year:e.translate("_date_year")},p={millisecond:e.translate("_date_millisecond_full"),second:e.translate("_date_second_full"),minute:e.translate("_date_minute_full"),hour:e.translate("_date_hour_full"),day:e.translate("_date_day_full"),week:e.translate("_date_week_full"),month:e.translate("_date_month_full"),year:e.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m),tooltipDateFormats:p,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=t.get("endValue"),o=i.intervalDuration(),n=i.getPrivate("baseInterval"),r=i.getPrivate("gridInterval",n);let l=i.getPrivate("min",0);if(l=h.round(new Date(l),r.timeUnit,r.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),null!=s&&null!=a){const t=Math.round(Math.round((s-l)/o))/2;t==Math.round(t)?e.setPrivate("visible",!0):e.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.get("index");let s=!1;l.isNumber(i)&&i%2!=0||(s=!0),e.setPrivate("visible",s)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=i.getPrivate("step");l.isNumber(s)&&l.isNumber(a)&&(d.round(s/a/2,5)==Math.round(s/a/2)?e.setPrivate("visible",!1):e.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(70),height:(0,a.aQ)(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,e/2),t.lineTo(s,e/2)}}});{const e=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,e),t.lineTo(0,e),t.lineTo(0,0)}}});{const e=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(50),height:(0,a.aQ)(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:(0,a.aQ)(80),height:(0,a.aQ)(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const e=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const e=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const e=i("Graphics",["rangegrip","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(2,.5),t.lineTo(2,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),(0,r.v)(e,"stroke",t,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:a.CI}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:a.CI}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:a.AQ}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:a.AQ})}}},3355:function(t,e,i){i.d(e,{L:function(){return c}});var s=i(8777),a=i(6245),o=i(1479),n=i(8943),r=i(5040),h=i(7652),l=i(751),d=i(5071),g=i(256);class c extends s.W{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(n.r.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(n.r.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(o.T.new(this._root,{themeTags:["selection","cursor"],layer:30})),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:a.AQ,height:a.AQ,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout((()=>{this.setPrivate("visible",!0)}),500)),this._disposers.push(this.lineX.events.on("positionchanged",(()=>{this._handleXLine()}))),this._disposers.push(this.lineY.events.on("positionchanged",(()=>{this._handleYLine()}))),this._disposers.push(this.lineX.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineX.events.on("blur",(()=>this._handleLineBlur()))),this._disposers.push(this.lineY.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineY.events.on("blur",(()=>this._handleLineBlur()))),h.supports("keyboardevents")&&this._disposers.push(h.addEventListener(document,"keydown",(t=>{this._handleLineMove(h.getEventKey(t),t.ctrlKey)})))}_setUpTouch(){const t=this.chart;t&&(t.plotContainer._display.cancelTouch="none"!=this.get("behavior"))}_handleXLine(){let t=this.lineX.x(),e=!0;(t<0||t>this.width())&&(e=!1),this.lineX.setPrivate("visible",e)}_handleYLine(){let t=this.lineY.y(),e=!0;(t<0||t>this.height())&&(e=!1),this.lineY.setPrivate("visible",e)}_handleLineMove(t,e){let i="";const s=this.chart;let a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(e&&(o=5),a){let e,s=a.get("renderer").get("inversed",!1);"ArrowRight"==t||"ArrowDown"==t?e=1:"ArrowLeft"==t||"ArrowUp"==t?e=-1:"Tab"==t&&(e=0),null!=e&&(s&&(e*=-1),this.set(i,a.nextPosition(e*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const t=this.get("xAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipX=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateXLine(e)}))))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const t=this.get("yAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipY=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateYLine(e)}))))}}}_handleSyncWith(){const t=this.chart;if(t){const e=this.get("syncWith"),i=[];e&&d.each(e,(t=>{const e=t.chart;e&&i.push(e)})),t._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const t=this.get("positionX"),e=this.get("positionY");null==t&&null==e?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).x,3);this._toX!=e&&(this.lineX.animate({key:"x",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toX=e)}_updateYLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).y,3);this._toY!=e&&(this.lineY.animate({key:"y",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toY=e)}_drawLines(){this.lineX.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,this.height())})),this.lineY.set("draw",(t=>{t.moveTo(0,0),t.lineTo(this.width(),0)}))}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(t){this.chart=t,this._handleSyncWith();const e=t.plotContainer;this.events.on("boundschanged",(()=>{this._disposers.push(this.setTimeout((()=>{this.updateCursor()}),50))})),h.supports("touchevents")&&(this._disposers.push(e.events.on("click",(t=>{h.isTouchEvent(t.originalEvent)&&this._handleMove(t)}))),this._setUpTouch()),this._disposers.push(e.events.on("pointerdown",(t=>{this._handleCursorDown(t)}))),this._disposers.push(e.events.on("globalpointerup",(t=>{this._handleCursorUp(t),t.native||this.isHidden()||this._handleMove(t)}))),this._disposers.push(e.events.on("globalpointermove",(t=>{(this.get("syncWith")||0!=g.keys(e._downPoints).length||t.native||!this.isHidden())&&(this._handleMove(t),Math.hypot(this._lastPoint2.x-t.point.x,this._lastPoint2.y-t.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=t.point))})));const i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(t){const e=this.chart;return!!e&&e.inPlot(t)}_handleCursorDown(t){if(2==t.originalEvent.button)return;const e=t.point;let i=this._display.toLocal(e);const s=this.chart;if(this.selection.set("draw",(()=>{})),s&&this._inPlot(i)){if(this._downPoint=i,"none"!=this.get("behavior")){this.selection.show();const e="selectstarted";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}let e=this._getPosition(i).x,s=this._getPosition(i).y;this.setPrivate("downPositionX",e),this.setPrivate("downPositionY",s)}}_handleCursorUp(t){if(this._downPoint){const e=this.get("behavior","none");if("none"!=e){"z"===e.charAt(0)&&this.selection.hide();const i=t.point;let s=this._display.toLocal(i);const a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let i=!1;if("zoomX"!==e&&"zoomXY"!==e&&"selectX"!==e&&"selectXY"!==e||Math.abs(s.x-a.x)>o&&(i=!0),"zoomY"!==e&&"zoomXY"!==e&&"selectY"!==e&&"selectXY"!==e||Math.abs(s.y-a.y)>o&&(i=!0),i){const e="selectended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}else{const e="selectcancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}}}}this._downPoint=void 0}_handleMove(t){if(this.getPrivate("visible")){const e=this.chart;if(e&&g.keys(e.plotContainer._downPoints).length>1)return void this.set("forceHidden",!0);this.set("forceHidden",!1);const i=t.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,t.originalEvent)}}_getPosition(t){return{x:t.x/this.width(),y:t.y/this.height()}}handleMove(t,e,i){t||(t=this._movePoint);const s=this.get("alwaysShow");if(!t)return void this.hide(0);this._movePoint=t;let a=this._display.toLocal(t),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=t,this.isHidden()&&(this.show(),"z"==this.get("behavior","").charAt(0)&&this.selection.set("draw",(()=>{})));let n=a.x,h=a.y,l=this._getPosition(a);this.setPrivate("point",a);let d=this.get("snapToSeries");this._downPoint&&(d=void 0);let g=this.get("positionX"),c=l.x;r.isNumber(g)&&(c=g);let u=this.get("positionY"),m=l.y;r.isNumber(u)&&(m=u),this.setPrivate("positionX",c),this.setPrivate("positionY",m);const p=this._getPoint(c,m);if(n=p.x,h=p.y,o.xAxes.each((t=>{t._handleCursorPosition(c,d),s&&t.handleCursorShow()})),o.yAxes.each((t=>{t._handleCursorPosition(m,d),s&&t.handleCursorShow()})),!e){o._handleCursorPosition();const e="cursormoved";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,point:t,originalEvent:i})}this._updateLines(n,h),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);const t="cursorhidden";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this._downPoint&&"none"!=this.get("behavior")&&this._updateSelection(a)}_getPoint(t,e){return{x:this.width()*t,y:this.height()*e}}_updateLines(t,e){this._tooltipX||this.lineX.set("x",t),this._tooltipY||this.lineY.set("y",e),this._drawLines()}_updateSelection(t){const e=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();t.x<0&&(t.x=0),t.x>s&&(t.x=s),t.y<0&&(t.y=0),t.y>a&&(t.y=a),e.set("draw",(e=>{const o=this._downPoint;o&&("zoomXY"===i||"selectXY"===i?(e.moveTo(o.x,o.y),e.lineTo(o.x,t.y),e.lineTo(t.x,t.y),e.lineTo(t.x,o.y),e.lineTo(o.x,o.y)):"zoomX"===i||"selectX"===i?(e.moveTo(o.x,0),e.lineTo(o.x,a),e.lineTo(t.x,a),e.lineTo(t.x,0),e.lineTo(o.x,0)):"zoomY"!==i&&"selectY"!==i||(e.moveTo(0,o.y),e.lineTo(s,o.y),e.lineTo(s,t.y),e.lineTo(0,t.y),e.lineTo(0,o.y)))}))}_onHide(){if(this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorHide()})),t.yAxes.each((t=>{t.handleCursorHide()})),t.series.each((t=>{t.handleCursorHide()})))}super._onHide()}_onShow(){if(!this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorShow()})),t.yAxes.each((t=>{t.handleCursorShow()})))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}c.className="XYCursor",c.classNames=s.W.classNames.concat([c.className])},6515:function(t,e,i){i.d(e,{R:function(){return g}});var s=i(9361),a=i(8777),o=i(6245),n=i(7144),r=i(7142),h=i(5071),l=i(5040),d=i(7652);class g extends s.w{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(a.W.new(this._root,{})),this.gridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.topGridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.bulletsContainer=this.children.push(a.W.new(this._root,{isMeasured:!1,width:o.AQ,height:o.AQ,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new n.aV,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(a.W.new(this._root,{themeTags:["axis","header"],position:"absolute",background:r.A.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)h.each(t.oldValues,(t=>{t.dispose()}));else if("push"===t.type)this._processAxisRange(t.newValue,["range"]);else if("setIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("insertIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("removeIndex"===t.type)this.disposeDataItem(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value,["range"])}})));const t=this.get("renderer");t&&(t.axis=this,t.processAxis()),this.children.push(t),this._createGhostLabel()}_createGhostLabel(){const t=this.get("renderer").makeLabel(new s.z(this,void 0,{}),[]);t.adapters.disable("text"),t.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),t.events.disable(),this.ghostLabel=t}_updateFinals(t,e){}zoom(t,e,i,s){if(this.get("zoomable",!0))if(this._updateFinals(t,e),this.get("start")!==t||this.get("end")!=e){let a=this._sAnimation,o=this._eAnimation;t>e&&([t,e]=[e,t]);let n=this.get("maxDeviation",.5)*Math.min(1,e-t);t<-n&&(t=-n),e>1+n&&(e=1+n);let r=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),h=r;l.isNumber(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),1===e&&0!==t&&(s=tthis.get("end",1)?"end":"start");let d=this.get("minZoomCount",0);const g=this.dataItems;g&&g.lengthe&&([t,e]=[e,t]),"start"===s?(c>0&&1/(e-t)r&&(e=t+1/r),e>1&&e-t<1/r&&(t=e-1/r)):(c>0&&1/(e-t)r&&(t=e-1/r),t<0&&e-t<1/r&&(e=t+1/r)),1/(e-t)>r&&(e=t+1/r),1/(e-t)>r&&(t=e-1/r),null!=c&&null!=d&&t==this.get("start")&&e==this.get("end")){const t=this.chart;t&&t._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==t||this.get("start")==t)&&(o&&o.playing&&o.to==e||this.get("end")==e))return;if(i>0){let s,a,o=this.get("interpolationEasing");if(this.get("start")!=t&&(s=this.animate({key:"start",to:t,duration:i,easing:o})),this.get("end")!=e&&(a=this.animate({key:"end",to:e,duration:i,easing:o})),this._sAnimation=s,this._eAnimation=a,s)return s;if(a)return a}else this.set("start",t),this.set("end",e),this.root.events.once("frameended",(()=>{this.markDirtyKey("start")}))}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(t,e){t.setRaw("isRange",!0),this._createAssets(t,e),this._rangesDirty=!0,this._prepareDataItem(t);const i=t.get("above"),s=this.topGridContainer,a=t.get("grid");i&&a&&s.children.moveValue(a);const o=t.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(t,e){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each((t=>{this._prepareDataItem(t)})),h.each(this._seriesAxisRanges,(t=>{this._prepareDataItem(t)}))}_prepareChildren(){super._prepareChildren();const t=this.ghostLabel;if(t&&(this.get("fixAxisSize")?t.set("visible",!0):t.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){const t=this.chart;t&&t._updateCursor();let e=this.get("start",0),i=this.get("end",1),s=this.get("maxDeviation",.5)*Math.min(1,i-e);if(e<-s){let t=e+s;e=-s,this.setRaw("start",e),this.isDirty("end")&&this.setRaw("end",i-t)}if(i>1+s){let t=i-1-s;i=1+s,this.setRaw("end",i),this.isDirty("start")&&this.setRaw("start",e-t)}}const e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){const t=this.get("tooltip");if(t){const i=e.get("themeTags");t.addTag("axis"),t.addTag(this.className.toLowerCase()),t._applyThemes(),i&&(t.set("themeTags",d.mergeTags(t.get("themeTags"),i)),t.label._applyThemes())}}}_updateTooltipBounds(){const t=this.get("tooltip");t&&this.get("renderer").updateTooltipBounds(t)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(t){this.chart=t,this.get("renderer").chart=t,t.gridContainer.children.push(this.gridContainer),t.topGridContainer.children.push(this.topGridContainer),t.axisHeadersContainer.children.push(this.axisHeader),this.on("start",(()=>{t._handleAxisSelection(this)})),this.on("end",(()=>{t._handleAxisSelection(this)})),t.plotContainer.onPrivate("width",(()=>{this.markDirtySize()})),t.plotContainer.onPrivate("height",(()=>{this.markDirtySize()})),t.processAxis(this)}hideDataItem(t){return this._toggleFHDataItem(t,!0),super.hideDataItem(t)}showDataItem(t){return this._toggleFHDataItem(t,!1),super.showDataItem(t)}_toggleFHDataItem(t,e){const i="forceHidden",s=t.get("label");s&&s.set(i,e);const a=t.get("grid");a&&a.set(i,e);const o=t.get("tick");o&&o.set(i,e);const n=t.get("axisFill");n&&n.set(i,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.set(i,e)}}_toggleDataItem(t,e){const i=t.get("label"),s="visible";i&&i.setPrivate(s,e);const a=t.get("grid");a&&a.setPrivate(s,e);const o=t.get("tick");o&&o.setPrivate(s,e);const n=t.get("axisFill");n&&n.setPrivate(s,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.setPrivate(s,e)}}_createAssets(t,e,i){var s,a,o;const n=this.get("renderer");let r="minor";const h=t.get("label");if(h){let a=h.get("themeTags"),o=!1;i?-1==(null==a?void 0:a.indexOf(r))&&(o=!0):-1!=(null==a?void 0:a.indexOf(r))&&(o=!0),o&&(null===(s=h.parent)||void 0===s||s.children.removeValue(h),n.makeLabel(t,e),h.dispose(),n.labels.removeValue(h))}else n.makeLabel(t,e);const l=t.get("grid");if(l){let s=l.get("themeTags"),o=!1;i?-1==(null==s?void 0:s.indexOf(r))&&(o=!0):-1!=(null==s?void 0:s.indexOf(r))&&(o=!0),o&&(null===(a=l.parent)||void 0===a||a.children.removeValue(l),n.makeGrid(t,e),l.dispose(),n.grid.removeValue(l))}else n.makeGrid(t,e);const d=t.get("tick");if(d){let s=!1,a=d.get("themeTags");i?-1==(null==a?void 0:a.indexOf(r))&&(s=!0):-1!=(null==a?void 0:a.indexOf(r))&&(s=!0),s&&(null===(o=d.parent)||void 0===o||o.children.removeValue(d),n.makeTick(t,e),d.dispose(),n.ticks.removeValue(d))}else n.makeTick(t,e);i||t.get("axisFill")?i&&!t.get("axisFill")&&this.get("minorAxisFillsEnabled")&&n.makeAxisFill(t,e):n.makeAxisFill(t,e),this._processBullet(t)}_processBullet(t){let e=t.get("bullet"),i=this.get("bullet");if(e||!i||t.get("isRange")||(e=i(this._root,this,t)),e){e.axis=this;const i=e.get("sprite");i&&(i._setDataItem(t),t.setRaw("bullet",e),i.parent||this.bulletsContainer.children.push(i))}}_afterChanged(){super._afterChanged();const t=this.chart;t&&(t._updateChartLayout(),t.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(t){super.disposeDataItem(t);const e=this.get("renderer"),i=t.get("label");i&&(e.labels.removeValue(i),i.dispose());const s=t.get("tick");s&&(e.ticks.removeValue(s),s.dispose());const a=t.get("grid");a&&(e.grid.removeValue(a),a.dispose());const o=t.get("axisFill");o&&(e.axisFills.removeValue(o),o.dispose());const n=t.get("bullet");n&&n.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const t=this.ghostLabel;if(t){if(!t.isHidden()){const e=t.localBounds(),i=Math.ceil(e.right-e.left);let s=t.get("text");h.each(this.dataItems,(t=>{const e=t.get("label");if(e&&!e.isHidden()){const t=e.localBounds();Math.ceil(t.right-t.left)>i&&(s=e.text._getText())}})),t.set("text",s)}let e=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(t,e+.5*(i-e))}}_handleCursorPosition(t,e){t=this.get("renderer").toAxisPosition(t),this._cursorPosition=t,this._snapToSeries=e,this.updateTooltip()}updateTooltip(){const t=this._snapToSeries;let e=this._cursorPosition;const i=this.get("tooltip"),s=this.get("renderer");l.isNumber(e)&&(h.each(this.series,(i=>{if(i.get("baseAxis")===this){const s=this.getSeriesItem(i,e,this.get("tooltipLocation"));t&&-1!=t.indexOf(i)?(i.updateLegendMarker(s),i.updateLegendValue(s),i._settings.tooltipDataItem=s):(i.showDataItemTooltip(s),i.setRaw("tooltipDataItem",s))}})),this.get("snapTooltip")&&(e=this.roundAxisPosition(e,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",e),i&&(s.updateTooltipBounds(i),l.isNaN(e)?i.hide(0):(this._updateTooltipText(i,e),s.positionTooltip(i,e),ethis.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}roundAxisPosition(t,e){return t}_handleSeriesRemoved(){}handleCursorShow(){let t=this.get("tooltip");t&&t.show()}handleCursorHide(){let t=this.get("tooltip");t&&t.hide()}processSeriesDataItem(t,e){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(t){const e=this.get("renderer");return e.toAxisPosition(t/e.axisLength())}toAxisPosition(t){return this.get("renderer").toAxisPosition(t)}toGlobalPosition(t){return this.get("renderer").toGlobalPosition(t)}fixPosition(t){return this.get("renderer").fixPosition(t)}shouldGap(t,e,i,s){return!1}createAxisRange(t){return this.axisRanges.push(t)}_groupSeriesData(t){}getCellWidthPosition(){return.05}}g.className="Axis",g.classNames=s.w.classNames.concat([g.className])},2586:function(t,e,i){i.d(e,{_:function(){return o}});var s=i(6331),a=i(256);class o extends s.JH{_beforeChanged(){super._beforeChanged();const t=this.get("sprite");if(this.isDirty("sprite")&&t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t)),this.isDirty("location")){const e=t.dataItem;this.axis&&t&&e&&this.axis._prepareDataItem(e)}}_dispose(){const t=this.axis;t&&a.each(t._bullets,((e,i)=>{i.uid==this.uid&&delete t._bullets[e]})),super._dispose()}}o.className="AxisBullet",o.classNames=s.JH.classNames.concat([o.className])},6293:function(t,e,i){i.d(e,{k:function(){return a}});var s=i(962);class a extends s._{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabel",a.classNames=s._.classNames.concat([a.className])},9084:function(t,e,i){i.d(e,{p:function(){return a}});var s=i(815);class a extends s.x{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabelRadial",a.classNames=s.x.classNames.concat([a.className])},6275:function(t,e,i){i.d(e,{Y:function(){return d}});var s=i(1479),a=i(5769),o=i(7144),n=i(4714),r=i(8943),h=i(6293),l=i(7652);class d extends s.T{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new o.o(a.YS.new({}),(()=>n.T._new(this._root,{themeTags:l.mergeTags(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template])))),this.grid=this.addDisposer(new o.o(a.YS.new({}),(()=>r.r._new(this._root,{themeTags:l.mergeTags(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template])))),this.axisFills=this.addDisposer(new o.o(a.YS.new({}),(()=>s.T._new(this._root,{themeTags:l.mergeTags(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template])))),this.labels=this.addDisposer(new o.o(a.YS.new({}),(()=>h.k._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template]))))}makeTick(t,e){const i=this.ticks.make();return i._setDataItem(t),t.setRaw("tick",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(t,e){const i=this.grid.make();return i._setDataItem(t),t.setRaw("grid",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(t,e){const i=this.axisFills.make();return i._setDataItem(t),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),t.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(t,e){const i=this.labels.make();return i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),t.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(t),t.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const t=this.thumb;t&&(this._disposers.push(t.events.on("pointerdown",(t=>{this._handleThumbDown(t)}))),this._disposers.push(t.events.on("globalpointerup",(t=>{this._handleThumbUp(t)}))),this._disposers.push(t.events.on("globalpointermove",(t=>{this._handleThumbMove(t)}))))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",(()=>{this.axis.markDirtySize()}))}_changed(){if(super._changed(),this.isDirty("pan")){const t=this.thumb;if(t){const e=this.axis.labelsContainer,i=this.get("pan");"zoom"==i?e.children.push(t):"none"==i&&e.children.removeValue(t)}}}_handleThumbDown(t){this._thumbDownPoint=this.toLocal(t.point);const e=this.axis;this._downStart=e.get("start"),this._downEnd=e.get("end")}_handleThumbUp(t){this._thumbDownPoint=void 0}_handleThumbMove(t){const e=this._thumbDownPoint;if(e){const i=this.toLocal(t.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,e)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(t,e){return 0}positionToCoordinate(t){return this._inversed?(this._end-t)*this._axisLength:(t-this._start)*this._axisLength}updateTooltipBounds(t){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t*=i-e,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,t/(i-e)}fixPosition(t){return this.get("inversed")?1-t:t}_updateLC(){}toggleVisibility(t,e,i,s){let a=this.axis;const o=a.get("start",0),n=a.get("end",1);eo+(n-o)*(s+1e-4)?t.setPrivate("visible",!1):t.setPrivate("visible",!0)}_positionTooltip(t,e){const i=this.chart;i&&(t.set("pointTo",this._display.toGlobal(e)),i.inPlot(e)||t.hide())}processAxis(){}}d.className="AxisRenderer",d.classNames=s.T.classNames.concat([d.className])},6284:function(t,e,i){i.d(e,{n:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{width:a.AQ,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const t=this.grid.template;t.set("height",a.AQ),t.set("width",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)}))}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("x",-1e3));const s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){const i=this.chart,o=e.children;if(this.get(a)?e.addTag(a):e.removeTag(a),i){if(this.get(s)){const t=i.topAxesContainer.children;-1==t.indexOf(e)&&t.insertIndex(0,e),e.addTag(s),o.moveValue(this)}else{const t=i.bottomAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(s),o.moveValue(this,0)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(t,e){return(e.x-t.x)/this.width()}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,(t=t/(i-e)*this._lc)+this._ls}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerWidth();this._lc=this.axisLength()/i,this._ls=(t.x()-e.get("paddingLeft",0))/i}}_updatePositions(){const t=this.axis,e=t.x()-r.relativeToValue(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0);t.gridContainer.set("x",e),t.topGridContainer.set("x",e),t.bulletsContainer.set("y",this.y());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginLeft",0),o=t.x()-a;const n=t.parent;n&&(o-=n.get("paddingLeft",0)),s.children.length>0?(a=t.axisHeader.width(),t.set("marginLeft",a+1)):s.set("width",a),s.setAll({x:o,y:-1,height:e.height()+2})}}processAxis(){super.processAxis();const t=this.axis;null==t.get("width")&&t.set("width",a.AQ);const e=this._root.verticalLayout;t.set("layout",e),t.labelsContainer.set("width",a.AQ),t.axisHeader.setAll({layout:e})}axisLength(){return this.axis.width()}positionToPoint(t){return{x:this.positionToCoordinate(t),y:0}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e));let r=t.get("length",0);const h=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("y",a.AQ),h||(r*=-1)):(t.set("y",0),h&&(r*=-1)),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,r)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateLabel(t,e,i,s){if(t){let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(e)||(e=0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?r?(t.set("position","absolute"),t.set("y",0)):(t.set("position","relative"),t.set("y",a.AQ)):r?(t.set("y",0),t.set("position","absolute")):(t.set("y",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=-1;if(this.get("opposite")&&(h=1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("y",t.y()+t.height()*h)}else s.set("y",0);this.axis._bullets[o]=t,s.set("x",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.height(),a=this.width();ia||i<0||(t.moveTo(e,0),t.lineTo(i,0),t.lineTo(i,s),t.lineTo(e,s),t.lineTo(e,0))}))}positionTooltip(t,e){this._positionTooltip(t,{x:this.positionToCoordinate(e),y:0})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,n=this.axisLength(),h=i,l="up";this.get("opposite")?e?(l="up",o=s.y,h=i):(l="down",o=s.y-i,h=i):e?(l="down",o=s.y-i,h=i):(l="up",o=s.y,h=i);const d={left:a,right:a+n,top:o,bottom:o+h},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}}h.className="AxisRendererX",h.classNames=s.Y.classNames.concat([h.className])},7909:function(t,e,i){i.d(e,{j:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{height:a.AQ,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const t=this.grid.template;t.set("width",a.AQ),t.set("height",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())}))}_getPan(t,e){return(t.y-e.y)/this.height()}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("y",-1e3));const s=this.thumb,a="opposite",o="inside",n=this.chart;if(this.isDirty(a)||this.isDirty(o)){const i=e.children;if(this.get(o)?e.addTag(o):e.removeTag(o),n){if(this.get(a)){const t=n.rightAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e,0),e.addTag(a),i.moveValue(this,0)}else{const t=n.leftAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(a),i.moveValue(this)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}const r=e.labelsContainer.width();n&&(this.get(a)?s.set("centerX",0):s.set("centerX",r)),s.setPrivate("width",r)}processAxis(){super.processAxis();const t=this.axis;null==t.get("height")&&t.set("height",a.AQ);const e=this._root.horizontalLayout;t.set("layout",e),t.labelsContainer.set("height",a.AQ),t.axisHeader.set("layout",e)}_updatePositions(){const t=this.axis,e=t.y()-r.relativeToValue(t.get("centerY",0),t.height());t.gridContainer.set("y",e),t.topGridContainer.set("y",e),t.bulletsContainer.set("x",this.x());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginTop",0);s.children.length>0?(a=t.axisHeader.height(),t.set("marginTop",a+1)):s.set("height",a),s.setAll({y:t.y()-a,x:-1,width:e.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(t){return{x:0,y:this.positionToCoordinate(t)}}updateLabel(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a);const o=this.get("opposite"),r=t.get("inside",this.get("inside",!1));o?(t.set("x",0),r?t.set("position","absolute"):t.set("position","relative")):r?(t.set("x",0),t.set("position","absolute")):(t.set("x",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e));let o=t.get("length",0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("x",0),r&&(o*=-1)):r||(o*=-1),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(o,0)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=1;if(this.get("opposite")&&(h=-1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("x",t.x()+t.width()*h)}else s.set("x",0);this.axis._bullets[o]=t,s.set("y",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.width(),a=this.height();ia||i<0||(t.moveTo(0,e),t.lineTo(s,e),t.lineTo(s,i),t.lineTo(0,i),t.lineTo(0,e))}))}positionToCoordinate(t){return this._inversed?(t-this._start)*this._axisLength:(this._end-t)*this._axisLength}positionTooltip(t,e){this._positionTooltip(t,{x:0,y:this.positionToCoordinate(e)})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,n=this.axisLength(),h=i,l="right";this.get("opposite")?e?(l="right",o=s.x-i,h=i):(l="left",o=s.x,h=i):e?(l="left",o=s.x,h=i):(l="right",o=s.x-i,h=i);const d={left:o,right:o+h,top:a,bottom:a+n},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerHeight();this._lc=this.axisLength()/i,this._ls=t.y()/i}}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?e+t:i-t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t-=e:t=i-t,(t=t/(i-e)*this._lc)+this._ls}fixPosition(t){return this.get("inversed")?t:1-t}}h.className="AxisRendererY",h.classNames=s.Y.classNames.concat([h.className])},4714:function(t,e,i){i.d(e,{T:function(){return a}});var s=i(2438);class a extends s.d{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisTick",a.classNames=s.d.classNames.concat([a.className])},7497:function(t,e,i){i.d(e,{$:function(){return d}});var s=i(6515),a=i(2132),o=i(7261),n=i(5071),r=i(5040),h=i(751),l=i(7652);class d extends s.R{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();const t=this.dataItems.length;t>0&&this.setPrivateRaw("maxZoomFactor",t),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),t)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",t),1))}_prepareChildren(){super._prepareChildren();const t=this.dataItems.length;let e=0;this._valuesDirty&&(this._itemMap={},n.each(this.dataItems,(t=>{t.setRaw("index",e),this._itemMap[t.get("category")]=t,e++})),this.setPrivateRaw("maxZoomFactor",t));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){const t=this.dataItems.length;if(t>1){let e=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0);const n=this._sAnimation,r=this._eAnimation;let h=this.get("start",0),l=!1;n&&!n.stopped&&(h=Number(n.to),l=!0);let d=this.get("end",1);if(r&&!r.stopped&&(d=Number(r.to),l=!0),l){const t=this._getIndices(h,d);a=t.startIndex,o=t.endIndex}for(let t=a;t=i));s++);if(e=0&&(e+=this.dataItems[t].get("finalCellSize",1),a=t,!(e>=i));t--);this.zoomToIndexes(a,o)}else if(s>=e){let t=s;for(let i=o-1;i>=a;i--)if(t-=this.dataItems[i].get("finalCellSize",1),t<=e){o=i+1;break}this.zoomToIndexes(a,o)}}}_handleRangeChange(){n.each(this.series,(t=>{let e=this.dataItems[this.startIndex()].get("category"),i=this.dataItems[this.endIndex()-1].get("category"),s=t.get("baseAxis"),a=t.get("xAxis"),r=t.get("yAxis");if(a instanceof d&&r instanceof d)t._markDirtyAxes();else if(s===this){let h,l,g=r;if(a===s?(t.get("categoryXField")&&(h="categoryX"),t.get("openCategoryXField")&&(l="openCategoryX")):r===s&&(t.get("categoryYField")&&(h="categoryY"),t.get("openCategoryYField")&&(l="openCategoryY"),g=a),g instanceof o.m&&(h||l)){let c,u;function m(t,e,i,s,a,o){let n,r=e.categoryToIndex(a);for(;!n&&r>=0&&r=0;e--){let o=t.dataItems[e];if(i&&o.get(i)===a){n=o;break}if(s&&o.get(s)===a){n=o;break}}else for(let e=0,o=t.dataItems.length;e{null!=y.get(t)&&(x=!0)})),n.each(t.__valueYShowFields,(t=>{null!=y.get(t)&&(x=!0)})),x)break}t.setPrivate("outOfSelection",!x)}t._markDirtyAxes()}}))}_prepareAxisItems(){var t;const e=this.get("renderer"),i=this.dataItems.length;let s=this.startIndex();s>0&&s--;let a=this.endIndex();a=s&&(t=s-1,e=1),r.isNumber(e)||(e=.5),!r.isNumber(t))return 0;let o=this.get("startLocation",0),h=this.get("endLocation",1);if(this.get("cellSizeField")){let s=i?"finalCellSize":"cellSize";const r=this.dataItems;let l=0;n.each(this.dataItems,(t=>{l+=t.get(s,1)})),l-=o*r[0].get(s,1),l-=(1-h)*r[r.length-1].get(s,1);let d=0;for(let e=0;e{const e=t.get("cellSize",1);s.push(e),i+=e}));let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=t*i+a,h=0;for(let t=0;t0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(e),a=t.dataItems[s],o=this.dataItems[s],n=o.get("category");if(a&&o&&a.get(i)===n)return a;for(let e=0,s=t.dataItems.length;e{r+=t.get(o,1)})),r-=this.get("startLocation",0)*h[0].get(o,1),r-=(1-this.get("endLocation",1))*h[h.length-1].get(o,1);let l=0;for(let e=0;eMath.round(t*r)){s=e;break}for(let t=s+1;t=Math.round(e*r)){a=t+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(t,e,i){let s=this.dataItems.length;this.get("cellSizeField")?(t=Math.min(Math.max(t,0),s),e=Math.max(Math.min(e,s),1),this.setPrivateRaw("startIndex",t),this.setPrivateRaw("endIndex",e),this.zoom(this.indexToPosition(t,0,!0),this.indexToPosition(e,0,!0),i)):this.zoom(t/s,e/s,i)}zoomToCategories(t,e,i){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(t){null==t&&(t=1),"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);const e=this.getPrivate("tooltipPosition",0),i=h.fitToRange(this.axisPositionToIndex(e)+t,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}}d.className="CategoryAxis",d.classNames=s.R.classNames.concat([d.className])},5638:function(t,e,i){i.d(e,{S:function(){return c}});var s=i(9361),a=i(7261),o=i(5040),n=i(751),r=i(3540),h=i(5071),l=i(256),d=i(7652),g=i(1926);class c extends a.m{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=d.mergeTags(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",(()=>{this._setBaseInterval(this.get("baseInterval"))}))}_setBaseInterval(t){this.setPrivateRaw("baseInterval",t),this._baseDuration=g.getIntervalDuration(t)}_fixZoomFactor(){const t=this.get("maxZoomFactor");null!=t&&t!=1/0?this.setPrivateRaw("maxZoomFactor",t):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){this._fixZoomFactor();const t=this.getPrivate("groupInterval");if(t?this._setBaseInterval(t):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let t=this.get("groupInterval");t&&(this.setRaw("groupIntervals",[t]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))h.each(this.series,(t=>{this._groupSeriesData(t)})),this._handleRangeChange();else{let t=this.get("baseInterval"),e=t.timeUnit+t.count;h.each(this.series,(t=>{t.setDataSet(e),t.resetGrouping()})),this._setBaseInterval(t),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(t){if(this.get("groupData")&&!t.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let e=[],i=this.baseMainDuration(),a=this.get("groupIntervals");h.each(a,(t=>{g.getIntervalDuration(t)>i&&e.push(t)})),t._dataSets={};const n=this.getPrivate("name")+this.get("renderer").getPrivate("letter");let r;const d=t.get("baseAxis");t.get("xAxis")===d?r=t._valueYFields:t.get("yAxis")===d&&(r=t._valueXFields);let c=t._mainDataItems,u=this.get("baseInterval"),m=u.timeUnit+u.count;t._dataSets[m]=c;const p=t.get("groupDataCallback");let _=t.get("groupDataWithOriginals",!1);p&&(_=!0),h.each(e,(e=>{let i,a=-1/0,d=e.timeUnit+e.count;t._dataSets[d]=[];let u={},m={},x={},v={};h.each(r,(e=>{u[e]=0,m[e]=0,x[e]=t.get(e+"Grouped"),v[e]=e+"Working"}));let y,f,b=g.getDuration(e.timeUnit);c[0]&&(y=c[0].get(n)),h.each(c,(c=>{let D,P=c.get(n),w=g.roun(P,e.timeUnit,e.count,this._root,y);a{let e=c.get(t);o.isNumber(e)?(i.setRaw(t,e),i.setRaw(v[t],e),m[t]=1,u[t]=e):(u[t]=0,m[t]=0)})),_&&i.set("originals",[c]),p&&f&&p(f,e),f=i):(h.each(r,(t=>{let e=x[t],s=c.get(t);if(null!=s){let a=i.get(t);switch(e){case"close":i.setRaw(t,s);break;case"sum":i.setRaw(t,a+s);break;case"open":break;case"low":sa&&i.setRaw(t,s);break;case"average":m[t]++,u[t]+=s;let e=u[t]/m[t];i.setRaw(t,e);break;case"extreme":Math.abs(s)>Math.abs(a)&&i.setRaw(t,s)}i.setRaw(v[t],i.get(t));let o=l.copy(c.dataContext);o[n]=w,i.dataContext=o}})),_&&i.get("originals").push(c)),a=w})),p&&f&&p(f,e)})),t._dataSetId&&t.setDataSet(t._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",(()=>{this.markDirtySize()}))}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(t){let e=this.get("baseInterval"),i=g.chooseInterval(0,t,this.get("groupCount",1/0),this.get("groupIntervals"));return g.getIntervalDuration(i){e.get("baseAxis")===this&&e.setDataSet(t)})),this.markDirtyExtremes(),this._root.events.once("frameended",(()=>{this._root.events.once("frameended",(()=>{const t="groupintervalchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}))}))}}h.each(this.series,(i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),a=h.getFirstSortedIndex(i.dataItems,(e=>r.qu(e.get(s),t))).index;a>0&&(a-=1),e+=this._baseDuration*(1-this.get("endLocation",1));let o=h.getSortedIndex(i.dataItems,(t=>r.qu(t.get(s),e))).index,n=o;n>1&&n--;const l=i.dataItems[a],d=i.dataItems[n];let g,c;l&&(c=l.get(s)),d&&(g=d.get(s));let u=!1;null!=g&&null!=c&&(ge)&&(u=!0),i.setPrivate("outOfSelection",u),i.setPrivate("startIndex",a);let m=i._adjustStartIndex(a);i.getPrivate("adjustedStartIndex")!==m&&(i.setPrivate("adjustedStartIndex",m),this.root.events.once("frameended",(()=>{i._markDirtyPrivateKey("adjustedStartIndex")}))),i.setPrivate("endIndex",o)}}))}}_adjustMinMax(t,e,i,s){return{min:t,max:e,step:(e-t)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(t,e){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=t,this._intervalMax[s]=e}_getM(t){return"day"==t||"month"==t||"year"==t?1.05:1.01}_getMinorInterval(t){var e;let i,s=t.count,a=t.timeUnit;return s>1&&(10==s||15==s?s=5:12==s?s=2:6==s?s=1:30==s?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),"week"==a&&(i="week"!=(null===(e=this.getPrivate("baseInterval"))||void 0===e?void 0:e.timeUnit)?{timeUnit:"day",count:1}:{timeUnit:"week",count:1}),"year"==a&&1==s&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<1264896e5&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){const e=this._root,i=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),n=this.get("renderer"),r=this.getPrivate("baseInterval");let l=i,d=0;const c=this.get("gridIntervals");let u=g.chooseInterval(0,a-i,n.gridCount(),c);g.getIntervalDuration(u){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_updateFinals(t,e){this.setPrivateRaw("selectionMinFinal",this.positionToValue(t)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(e))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(t,e){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return g.getIntervalDuration(this.get("baseInterval"))}processSeriesDataItem(t,e){const i=this.getPrivate("baseInterval");t.open||(t.open={}),t.close||(t.close={}),h.each(e,(e=>{let s=t.get(e);if(o.isNumber(s)){let a=t.open[e],o=t.close[e];if(s>=a&&s<=o);else{const n=i.timeUnit,r=i.count;a=g.roun(s,n,r,this._root),o=a+g.getDuration(n,r*this._getM(n)),o=g.roun(o,n,1,this._root),t.open[e]=a,t.close[e]=o}this._updateDates(a,t.component)}}))}_handleSizeDirty(){}getDataItemPositionX(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}roundAxisPosition(t,e){let i=this.positionToValue(t);i-=(e-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!o.isNaN(i)){const t=this._root.locale.firstDayOfWeek,a=s.timeUnit,o=this._root.utc,n=this._root.timezone,r=s.count;i=g.roun(i,a,r,this._root,this.getPrivate("min",0));let h=g.getDateIntervalDuration(s,new Date(i),t,o,n);return n&&(i=g.roun(i+.05*this._baseDuration,a,r,this._root,this.getPrivate("min",0)),h=g.getDateIntervalDuration(s,new Date(i+h*e),t,o,n)),this.valueToPosition(i+h*e)}return NaN}getTooltipText(t,e){if(null!=this.getPrivate("min")){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(t);if(o.isNumber(s)){let t=new Date(s),a=this.getPrivate("baseInterval"),o=g.getDateIntervalDuration(a,t,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return!1!==e&&(t=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*o)),this._root.dateFormatter.format(t,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(t,e,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);null==i&&(i=.5),o-=(i-.5)*this._baseDuration;const n=h.getSortedIndex(t.dataItems,(t=>{let e=0;return t.open&&(e=t.open[a]),r.qu(e,o)}));if(s||t.get("snapTooltip")){let e=t.dataItems[n.index-1],i=t.dataItems[n.index];if(e&&i&&e.open&&i.close){let t=e.open[a],s=i.close[a];if(Math.abs(o-t)>Math.abs(o-s))return i}if(e)return e;if(i)return i}else{const e=t.dataItems[n.index-1];if(e&&e.open&&e.close){let t=e.open[a],i=e.close[a];if(o>=t&&o<=i)return e}}}shouldGap(t,e,i,s){const a=t.get(s);return e.get(s)-a>this._baseDuration*i}zoomToDates(t,e,i){this.zoomToValues(t.getTime(),e.getTime(),i)}zoomToValues(t,e,i){const s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(null!=this.getPrivate("min")&&null!=this.getPrivate("max"))if(this.get("groupData")){const s=this.getGroupInterval(e-t),a=this.get("baseInterval");let o=this.getIntervalMin(a),n=this.getIntervalMax(a)-1;n=g.roun(n,s.timeUnit,s.count,this.root),n+=this._getM(s.timeUnit)*g.getIntervalDuration(s),n=g.roun(n,s.timeUnit,s.count,this.root);let r=g.roun(o,s.timeUnit,s.count,this.root),h=g.roun(n,s.timeUnit,s.count,this.root),l=(t-r)/(h-r),d=(e-r)/(h-r);this.zoom(l,d,i)}else this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}positionToDate(t){return new Date(this.positionToValue(t))}dateToPosition(t){return this.valueToPosition(t.getTime())}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return o.isNumber(t)&&o.isNumber(e)?this._intervalDuration/(t-e):.05}nextPosition(t){null==t&&(t=1);let e=this.get("tooltipLocation",.5)*this._baseDuration;"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0));const s=this.getPrivate("baseInterval");let a=this._nextTime(i,t,s),o=this.getPrivate("selectionMin",0),r=this.getPrivate("selectionMax",0),h=g.roun(o,s.timeUnit,s.count,this._root),l=g.roun(r,s.timeUnit,s.count,this._root);return a+=e,a=n.fitToRange(a,h+e,l-e),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(t,e,i){return g.roun(t+e*this._baseDuration,i.timeUnit,i.count,this._root)}}c.className="DateAxis",c.classNames=a.m.classNames.concat([c.className])},7109:function(t,e,i){i.d(e,{L:function(){return a}});var s=i(6691);class a extends s.Y{constructor(){super(...arguments),this._tickPoints=[]}}a.className="EditableAxisLabel",a.classNames=s.Y.classNames.concat([a.className])},8701:function(t,e,i){i.d(e,{J:function(){return d}});var s=i(5638),a=i(9361),o=i(5071),n=i(3540),r=i(1926),h=i(5040),l=i(751);class d extends s.S{constructor(){super(...arguments),this._frequency=1,this._m=0,this._dates=[]}_afterNew(){this.valueFields.push("date"),this.addTag("gapless"),super._afterNew()}_getDates(){return this._customDates?this._customDates:this._dates}_updateDates(t,e){if(!e.get("ignoreMinMax")){const e=this._getDates(),i=o.getSortedIndex(e,(e=>n.qu(e,t)));i.found||o.insertIndex(e,i.index,t)}}_updateAllDates(){if(!this._customDates){const t=this._dates;t.length=0,o.each(this.series,(t=>{let e="valueX";t.get("yAxis")==this&&(e="valueY"),o.each(t.dataItems,(i=>{let s=i.get(e);h.isNumber(s)&&i.open&&this._updateDates(i.open[e],t)}))}));const e=this.get("extraMax",0),i=this.get("extraMin",0);let s=t.length;const a=this.getPrivate("baseInterval"),n=a.count,l=a.timeUnit;if(e>0){const i=s*e;let a=t[s-1];if(h.isNumber(a))for(let e=s-1;e0){const e=s*i;let a=t[0];if(h.isNumber(a))for(let i=0;in.qu(e,t)));let h=r.index;if(r.found)return(h-i)/a;{h>0&&(h-=1);let s=e[h];const o=e[h+1];if(o){let e=o;Math.abs(e-t)n.qu(e,t)));let s=i.index;return i.found||s>0&&(s-=1),s}positionToValue(t){const e=this.get("startLocation",0),i=this.get("endLocation",1),s=this._getDates();let a=Math.round(s.length-e-(1-i)),o=t*a,n=Math.floor(o);return n<0&&(n=0),n>a-1&&(n=a-1),s[n]+(o-n+e)*this._baseDuration}_fixZoomFactor(){this.setPrivateRaw("maxZoomFactor",this._getDates().length-this.get("startLocation",0)-(1-this.get("endLocation",1)))}zoomToDates(t,e,i){const s=this._getDates(),a=s.length;let r=o.getSortedIndex(s,(e=>n.qu(e,t.getTime()))),h=s[Math.min(r.index,a-1)];r=o.getSortedIndex(s,(t=>n.qu(t,e.getTime())));let l=s[r.index];r.index>=a&&(l=s[a-1]+this._baseDuration),this.zoomToValues(h,l,i)}zoomToValues(t,e,i){const s=this.getPrivate("min",0),a=this.getPrivate("max",0);t=l.fitToRange(t,s,a),e=l.fitToRange(e,s,a),this.zoom(this.valueToPosition(t),this.valueToPosition(e),i)}_prepareAxisItems(){let t=this.getPrivate("selectionMin",0),e=this.getPrivate("selectionMax",0);if(h.isNumber(t)&&h.isNumber(e)){this._seriesValuesDirty&&(this._seriesValuesDirty=!1,this._updateAllDates());const i=this._root,s=i.utc,n=i.timezone,l=this._getDates(),d=this.get("renderer"),g=l.length,c=this._baseDuration;let u=this.valueToIndex(t);u>0&&u--;let m=this.valueToIndex(e);m{this._toggleDataItem(t,!1)})),o.each(this.minorDataItems,(t=>{this._toggleDataItem(t,!1)}));let x=e-t-((e-t)/c-(m-u))*c,v=r.chooseInterval(0,x,p,this.get("gridIntervals"));const y=this.getPrivate("baseInterval");let f=r.getIntervalDuration(v);f0){let t=0;this._m=0;let e=w-10*f;const g=r.getNextUnit(b);if(I){let t=l[C[0]];this._addMinorGrid(t-f,t,k,I)}let c=d.axisLength()/d.gridCount()*.5;o.each(C,(o=>{var u;let m;this.dataItems.length1||"week"==v.timeUnit){let e=r.roun(p,t,1,i)+r.getDuration(t,this._getM(t)),s=this.valueToIndex(e);if(e=l[s],e==p){let t=l[s+1];t?e=t:e+=k}m.setRaw("labelEndValue",e)}w=1}if(this._prepareDataItem(m,w),P&&M&&"X"==d.getPrivate("letter")){let t=M.get("label");if(t&&P.x()-t.x(){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_pickWorse(t,e,i){const s=i.timeUnit,a=t.get("value",0),o=e.get("value",0);return"hour"==s&&new Date(a).getDate()!=new Date(o).getDate()?t:e}_addMinorGrid(t,e,i,s){const n=this.get("minorDateFormats",this.get("dateFormats")),h=s.timeUnit;let l=t+r.getDuration(h,this._getM(h));l=r.roun(l,h,1,this._root);let d=e-.5*i,g=this._getIndexes(l,d,s,l);const c=this._getDates();o.each(g,(t=>{let e;this.minorDataItems.length=x-2*_&&o.move(a,e),u=0),t+=p,t=r.roun(t,n,1,g);else{if(i=t){e=s;break}o.move(a,e),t+=_,t=r.roun(t,n,h,g)}if(t==m&&(t+=_+p,t=r.roun(t,n,h,g)),t==m)break;m=t}return a}_hasDate(t){return o.getSortedIndex(this._getDates(),(e=>n.HO(e,t))).found}_nextTime(t,e,i){let s=l.fitToRange(this.valueToIndex(t)+e,0,this._dates.length-1);return this._dates[s]}}d.className="GaplessDateAxis",d.classNames=s.S.classNames.concat([d.className])},8943:function(t,e,i){i.d(e,{r:function(){return a}});var s=i(1479);class a extends s.T{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}a.className="Grid",a.classNames=s.T.classNames.concat([a.className])},7261:function(t,e,i){i.d(e,{m:function(){return d}});var s=i(9361),a=i(6515),o=i(7449),n=i(5040),r=i(5071),h=i(751),l=i(7652);class d extends a.R{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var t;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let t=this.get("syncWithAxis");t&&(this._syncDp=new o.FV([t.onPrivate("selectionMinFinal",(()=>{this._dirtySelectionExtremes=!0})),t.onPrivate("selectionMaxFinal",(()=>{this._dirtySelectionExtremes=!0}))]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,null===(t=this.ghostLabel)||void 0===t||t.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){const t=this.chart;let e=!1;if(t){const i=this.get("renderer").getPrivate("letter");"Y"==i?t.xAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)})):"X"==i&&t.yAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)}))}e&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,this.getPrivate("selectionMinFinal")==this.getPrivate("selectionMin")&&this.getPrivate("selectionMaxFinal")==this.getPrivate("selectionMax")||(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(t){const e=this.get("numberFormat"),i=this.getNumberFormatter();let s="";return s=e?i.format(t,e):i.format(t,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(n.isNumber(t)&&n.isNumber(e)){const e=this.get("logarithmic"),i=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+i;let l=a-i,d=1,g=t;if(e){if(l=this._minLogAdjusted,l2&&(l=Math.pow(10,Math.log(g)*Math.LOG10E-50))}const c=this.get("renderer"),u=c.get("minorLabelsEnabled"),m=c.get("minorGridEnabled",u);let p=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));const _=Math.round(i/p);let x=2;h.round(_/5,10)%1==0&&(x=5),h.round(_/10,10)%1==0&&(x=10);let v=i/x,y=0,f=0,b=-1/0;const D=this.get("renderer").gridCount();for(;l2){const t=Math.max(1,D),e=Math.max(1,Math.ceil(d/t)),i=Math.log(g)*Math.LOG10E+(y+1)*e-50;o=Math.pow(10,i)}else o+=i;else o+=i;if(m){let t=l+v;for(e&&(d>2&&(v=this._adjustMinMax(l,o,10).step),t=l+v);t{t.inited&&t._markDirtyAxes()})),this._updateGhost()}}_prepareDataItem(t,e){let i=this.get("renderer"),s=t.get("value"),a=t.get("endValue"),o=this.valueToPosition(s),r=o,h=this.valueToPosition(s+this.getPrivate("step"));n.isNumber(a)&&(r=this.valueToPosition(a),h=r),t.get("isRange")&&null==a&&(h=o);let l=r,d=t.get("labelEndValue");null!=d&&(l=this.valueToPosition(d)),i.updateLabel(t.get("label"),o,l,e);const g=t.get("grid");if(i.updateGrid(g,o,r),g&&(s==this.get("baseValue",0)?(g.addTag("base"),g._applyThemes()):g.hasTag("base")&&(g.removeTag("base"),g._applyThemes())),i.updateTick(t.get("tick"),o,l,e),i.updateFill(t.get("axisFill"),o,h),this._processBullet(t),i.updateBullet(t.get("bullet"),o,r),!t.get("isRange")){const e=this.get("fillRule");e&&e(t)}}_handleRangeChange(){let t=this.positionToValue(this.get("start",0)),e=this.positionToValue(this.get("end",1));const i=this.get("renderer").gridCount();let s=this._adjustMinMax(t,e,i,!0),a=l.decimalPlaces(s.step);this.setPrivateRaw("stepDecimalPlaces",a),t=h.round(t,a),e=h.round(e,a),s=this._adjustMinMax(t,e,i,!0);let o=s.step;t=s.min,e=s.max,this.getPrivate("selectionMin")===t&&this.getPrivate("selectionMax")===e&&this.getPrivate("step")===o||(this.setPrivateRaw("selectionMin",t),this.setPrivateRaw("selectionMax",e),this.setPrivateRaw("step",o))}positionToValue(t){const e=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(t*(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)+Math.log(e)*Math.LOG10E)/Math.LOG10E):t*(i-e)+e}valueToPosition(t){const e=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}valueToFinalPosition(t){const e=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}getX(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getY(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionX(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemX")?a*s+t.component.getStackedXValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemY")?a*s+t.component.getStackedYValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const t=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),e=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let i=this.get("baseValue",0);return ie&&(i=e),i}cellEndValue(t){return t}fixSmallStep(t){return 1+t===1?(t*=2,this.fixSmallStep(t)):t}_fixMin(t){return t}_fixMax(t){return t}_calculateTotals(){if(this.get("calculateTotals")){let t=this.series[0];if(t){let e=t.startIndex();if(t.dataItems.length>0){e>0&&e--;let i,s,a=t.endIndex();a{if(!i.get("excludeFromTotal")){let r=i.dataItems[t];if(r){let t=r.get(o)*i.get(s);n.isNaN(t)||(e+=t,a+=Math.abs(t))}}})),r.each(this.series,(r=>{if(!r.get("excludeFromTotal")){let h=r.dataItems[t];if(h){let t=h.get(o)*r.get(s);if(!n.isNaN(t)){h.set(i+"Total",a),h.set(i+"Sum",e);let s=t/a*100;0==a&&(s=0),h.set(i+"TotalPercent",s)}}}}))}}}}}_getSelectionMinMax(){const t=this.getPrivate("minFinal"),e=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max");let a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2));const l=this.get("renderer").gridCount(),d=this.get("strictMinMaxSelection");let g=this.get("strictMinMax");if(n.isNumber(t)&&n.isNumber(e)){let c=e,u=t;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,i;const s=t.getPrivate("outOfSelection");if(t.get("xAxis")===this){if(!s){let s=t.getPrivate("minX"),a=t.getPrivate("maxX");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinX",s),i=t.getPrivate("selectionMaxX",a)}}else if(t.get("yAxis")===this&&!s){let s=t.getPrivate("minY"),a=t.getPrivate("maxY");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinY",s),i=t.getPrivate("selectionMaxY",a)}t.isHidden()||t.isShowing()||(n.isNumber(e)&&(c=Math.min(c,e)),n.isNumber(i)&&(u=Math.max(u,i)))}})),this.axisRanges.each((t=>{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(c=Math.min(c,e),u=Math.max(u,e)),e=t.get("endValue"),null!=e&&(c=Math.min(c,e),u=Math.max(u,e))}})),c>u&&([c,u]=[u,c]),n.isNumber(i)?c=g?i:t:g&&n.isNumber(this._minReal)&&(c=this._minReal),n.isNumber(s)?u=g?s:e:g&&n.isNumber(this._maxReal)&&(u=this._maxReal),c===u){let e=c;if(c-=this._deltaMinMax,u+=this._deltaMinMax,ce&&(x.max=e),c=x.min,u=x.max),g&&(n.isNumber(i)&&(c=Math.max(c,i)),n.isNumber(s)&&(u=Math.min(u,s))),d&&(c=m-(p-m)*a,u=p+(p-m)*o),g){c=n.isNumber(i)?i:m,u=n.isNumber(s)?s:p,u-c<=1e-8&&(c-=this._deltaMinMax,u+=this._deltaMinMax);let t=u-c;c-=t*a,u+=t*o}this.get("logarithmic")&&(c<=0&&(c=m*(1-Math.min(a,.99))),ce&&(u=e));let y=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),f=h.round(this.valueToFinalPosition(c),y),b=h.round(this.valueToFinalPosition(u),y);this.setPrivateRaw("selectionMinFinal",c),this.setPrivateRaw("selectionMaxFinal",u),this.setPrivateRaw("selectionStepFinal",x.step),this.zoom(f,b)}}_getMinMax(){let t=this.get("min"),e=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2)));let l=1/0;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,a;if(t.get("xAxis")===this?(e=t.getPrivate("minX"),a=t.getPrivate("maxX")):t.get("yAxis")===this&&(e=t.getPrivate("minY"),a=t.getPrivate("maxY")),n.isNumber(e)&&n.isNumber(a)){i=Math.min(i,e),s=Math.max(s,a);let t=a-e;t<=0&&(t=Math.abs(a/100)),t{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(i=Math.min(i,e),s=Math.max(s,e)),e=t.get("endValue"),null!=e&&(i=Math.min(i,e),s=Math.max(s,e))}})),this.get("logarithmic")){let t=this.get("treatZeroAs");n.isNumber(t)&&i<=0&&(i=t),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(0===i&&0===s&&(s=.9,i=-.9),n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e),i===1/0||s===-1/0)return this.setPrivate("minFinal",void 0),void this.setPrivate("maxFinal",void 0);i>s&&([i,s]=[s,i]);const d=i,g=s;let c=this.adapters.fold("min",i),u=this.adapters.fold("max",s);this._minRealLog=i,n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!=0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&d>=0&&(i=0),s>0&&g<=0&&(s=0)),this._minReal=i,this._maxReal=s;let m=this.get("strictMinMax"),p=this.get("strictMinMaxSelection",!1);p&&(m=p);let _=m;n.isNumber(e)&&(_=!0);let x=this.get("renderer").gridCount(),v=this._adjustMinMax(i,s,x,_);if(i=v.min,s=v.max,v=this._adjustMinMax(i,s,x,!0),i=v.min,s=v.max,m){i=n.isNumber(t)?t:this._minReal,s=n.isNumber(e)?e:this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let r=s-i;i-=r*a,s+=r*o}c=this.adapters.fold("min",i),u=this.adapters.fold("max",s),n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),l==1/0&&(l=s-i);let y=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=h.round(i,y),s=h.round(s,y);const f=this.get("syncWithAxis");if(f&&(v=this._syncAxes(i,s,v.step,f.getPrivate("minFinal",f.getPrivate("min",0)),f.getPrivate("maxFinal",f.getPrivate("max",1)),f.getPrivate("step",1)),i=v.min,s=v.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/l*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=d*(1-Math.min(a,.99)))),n.isNumber(i)&&n.isNumber(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);const t=this.get("interpolationDuration",0),e=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:t,easing:e}),this.animatePrivate({key:"max",to:s,duration:t,easing:e})}}_fixZoomFactor(){}_getDelta(t){let e=Math.log(Math.abs(t))*Math.LOG10E,i=Math.pow(10,Math.floor(e));i/=10,this._deltaMinMax=i}_saveMinMax(t,e){}_adjustMinMax(t,e,i,s){i<=1&&(i=1),i=Math.round(i);let a=t,o=e,r=e-t;0===r&&(r=Math.abs(e));let l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l));d/=10;let g=d;s&&(g=0),s?(t=Math.floor(t/d)*d,e=Math.ceil(e/d)*d):(t=Math.ceil(t/d)*d-g,e=Math.floor(e/d)*d+g),t<0&&a>=0&&(t=0),e>0&&o<=0&&(e=0),l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l)),d/=100;let c=Math.ceil(r/i/d)*d,u=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),m=Math.ceil(c/u);m>5?m=10:m<=5&&m>2&&(m=5),c=Math.ceil(c/(u*m))*u*m;let p=this.get("maxPrecision");if(n.isNumber(p)){let t=h.ceil(c,p);pa&&(t-=c),c=this.fixSmallStep(c),{min:t,max:e,step:c}}getTooltipText(t,e){const i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,n=h.round(this.positionToValue(t),o);return i?s.format(n,i):s.format(n,void 0,o)}getSeriesItem(t,e){let i,s,a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);if(r.each(t.dataItems,((t,e)=>{const n=Math.abs(t.get(a)-o);(void 0===i||n500&&(s=!0),s)t=n,e=h,i=d;else{a/3==Math.round(a/3)?(n=t-o*a,t>=0&&n<0&&(n=0)):(h=e+o*a,h<=0&&h>0&&(h=0));let i=this._adjustMinMax(n,h,l,!0);n=i.min,h=i.max,d=i.step}}}return{min:t,max:e,step:i}}_checkSync(t,e,i,s){let a=(e-t)/i;for(let t=1;t{if(t instanceof l){const e=t.get("stacked");e&&0==h&&n++,!e&&t.get("clustered")&&n++}t===this&&(o=n-1),h++})),this.get("clustered")||(o=0,n=1),0===n&&(n=1,o=0);const d="cellStartLocation",g="cellEndLocation",c=this._xRenderer.get(d,0),u=this._xRenderer.get(g,1),m=this._yRenderer.get(d,0),p=this._yRenderer.get(g,1);if(this._aLocationX0=c+o/n*(u-c),this._aLocationX1=c+(o+1)/n*(u-c),this._aLocationY0=m+o/n*(p-m),this._aLocationY1=m+(o+1)/n*(p-m),e.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){const t=this.dataItems.length;let a=Math.max(0,this.startIndex()-2),o=Math.min(this.endIndex()+2,t-1);for(let t=0;t0&&a>0)for(let e=t-1;e>=0;e--){let t=this.dataItems[e];if(null!=t.get("valueX")&&null!=t.get("valueY")){n=t;break}}break}this._toggleColumn(e,!1)}this._beforeColumnsDraw();let r=0;i.isType("CategoryAxis")&&e.isType("CategoryAxis")?r=2:e===s?r=0:i===s&&(r=1);for(let t=a;t<=o;t++){let e=this.dataItems[t];this._updateGraphics(e,n,r),null!=e.get("valueX")&&null!=e.get("valueY")&&(n=e)}this._afterColumnsDraw();for(let e=o+1;e{const a=e.get(s,this.get(s));t.set(s,a),i.set(s,a)}))}}let s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.dispose()})),s=[],t.setRaw("rangeGraphics",s),this.axisRanges.each((e=>{const i=e.container,a=this._makeGraphics(e.columns,t);s&&s.push(a),a.setPrivate("list",e.columns),i.children.push(a)}))}}createAxisRange(t){return r.each(this.dataItems,(t=>{const e=t.get("graphics");e&&(e.dispose(),t.set("graphics",void 0))})),super.createAxisRange(t)}_updateGraphics(t,e,i){let s=t.get("graphics");const a=this._xField,n=this._yField,l=t.get(a),d=t.get(n),g=this.get("exactLocationX",!1);if(null!=l&&null!=d){const l=this._xOpenField,d=this._yOpenField,c=this.get("locationX",t.get("locationX",.5)),u=this.get("locationY",t.get("locationY",.5)),m=this.get("openLocationX",t.get("openLocationX",c)),p=this.get("openLocationY",t.get("openLocationY",u)),_=s.get("width"),x=s.get("height"),v=this.get("stacked"),y=this.get("xAxis"),f=this.get("yAxis"),b=y.get("start"),D=y.get("end"),P=f.get("start"),w=f.get("end");let T,A,I,M,k=this.get("vcy",1),C=this.get("vcx",1),S=!1,Y=!1;if(0==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C,g),A=y.getDataItemPositionX(t,a,i,C,g),I=f.getDataItemPositionY(t,n,u,k),this._yOpenField!==this._yField)M=f.getDataItemPositionY(t,d,p,k);else if(v){let e=t.get("stackToItemY");M=e?f.getDataItemPositionY(e,n,p,e.component.get("vcy")):f.basePosition()}else M=f.basePosition();t.setRaw("point",{x:T+(A-T)/2,y:I}),Y=!0}else if(1==i){let e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5;if(x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}if(I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),A=y.getDataItemPositionX(t,a,c,C,g),this._xOpenField!==this._xField)T=y.getDataItemPositionX(t,l,m,C,g);else if(v){let e=t.get("stackToItemX");T=e?y.getDataItemPositionX(e,a,m,e.component.get("vcx"),g):y.basePosition()}else T=y.basePosition();S=!0,t.setRaw("point",{x:A,y:I+(M-I)/2})}else if(2==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C),A=y.getDataItemPositionX(t,a,i,C),e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5,x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),t.setRaw("point",{x:T+(A-T)/2,y:I+(M-I)/2})}this._applyGraphicsStates(t,e),this._updateSeriesGraphics(t,s,T,A,I,M,S,Y),TD&&A>D||I=w&&M>w||h.isNaN(T)||h.isNaN(I)?this._toggleColumn(t,!1):this._toggleColumn(t,!0);let F=t.get("rangeGraphics");F&&r.each(F,(e=>{this._updateSeriesGraphics(t,e,T,A,I,M,S,Y)}))}else this._toggleColumn(t,!1)}_updateSeriesGraphics(t,e,i,s,a,o,n,r){const l=e.get("width"),d=e.get("height"),g=e.get("maxWidth"),c=e.get("maxHeight"),u=this.getPoint(i,a),m=this.getPoint(s,o),p=t.get("point");if(p){const t=this.getPoint(p.x,p.y);p.x=t.x+this._x,p.y=t.y+this._y}if(i=u.x,s=m.x,a=u.y,o=m.y,h.isNumber(l)){const t=(s-i-l)/2;i+=t,s-=t}if(h.isNumber(g)&&g{this._toggleColumn(t,!1)}))}_applyGraphicsStates(t,e){const i=t.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),n=i.states.lookup("riseFromPrevious");if(s||o||a||n){const i=this.get("xAxis"),r=this.get("yAxis"),l=this.get("baseAxis");let d,g,c;l===i&&r.isType("ValueAxis")?(d=t.get(this._yOpenField),g=t.get(this._yField),c=e.get(this._yField)):l===r&&i.isType("ValueAxis")&&(d=t.get(this._xOpenField),g=t.get(this._xField),c=e.get(this._xField)),h.isNumber(d)&&h.isNumber(g)&&(g{const e=t.getPrivate("list");e&&e.removeValue(t),t.dispose()}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.hide(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.hide(e))})),yield Promise.all(s)}))}_toggleColumn(t,e){const i=t.get("graphics");i&&i.setPrivate("visible",e);const s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.setPrivate("visible",e)}));const a=t.bullets;a&&r.each(a,(t=>{t.setPrivate("hidden",!e)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.show(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.show(e))})),yield Promise.all(s)}))}updateLegendMarker(t){let e=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!t){const e=this.dataItems[this.endIndex()-1];e&&(t=e)}if(e){let i=this.columns.template;if(t){let e=t.get("graphics");e&&(i=e)}const s=e.get("markerRectangle");if(s&&!e.get("itemContainer").get("disabled")){const t=s.states.lookup("default");r.each(n.u,(e=>{const a=i.get(e,this.get(e));s.set(e,a),t.set(e,a)}))}}}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget"))return super._getTooltipTarget(t);return t.get("graphics")||this}}l.className="BaseColumnSeries",l.classNames=a.o.classNames.concat([l.className])},2976:function(t,e,i){i.d(e,{j:function(){return a}});var s=i(3497);class a extends s.c{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();const t=this._display;t.moveTo(this.get("lowX0",0),this.get("lowY0",0)),t.lineTo(this.get("lowX1",0),this.get("lowY1",0)),t.moveTo(this.get("highX0",0),this.get("highY0",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0))}}a.className="Candlestick",a.classNames=s.c.classNames.concat([a.className])},2312:function(t,e,i){i.d(e,{$:function(){return l}});var s=i(62),a=i(2976),o=i(5769),n=i(7144),r=i(7652),h=i(5071);class l extends s.d{constructor(){super(...arguments),this.columns=this.addDisposer(new n.o(o.YS.new({themeTags:["autocolor"]}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_updateGraphics(t,e,i){super._updateGraphics(t,e,i);const s=this.getRaw("xAxis"),a=this.getRaw("yAxis");let o,n,r,h,l,d,g,c,u,m=this.get("vcy",1),p=this.get("vcx",1),_=this.get("locationX",t.get("locationX",.5)),x=this.get("locationY",t.get("locationY",.5)),v=this.get("openLocationX",t.get("openLocationX",_)),y=this.get("openLocationY",t.get("openLocationY",x));if(0==i){let e=a.getDataItemPositionY(t,this._yOpenField,1,m),i=a.getDataItemPositionY(t,this._yField,1,m);h=a.getDataItemPositionY(t,this._yLowField,1,m),c=a.getDataItemPositionY(t,this._yHighField,1,m),g=Math.max(e,i),r=Math.min(e,i);let x=this._aLocationX0+v-.5,y=this._aLocationX1+_-.5;o=s.getDataItemPositionX(t,this._xField,x+(y-x)/2,p),n=o,l=o,d=o,u="vertical"}else{let e=s.getDataItemPositionX(t,this._xOpenField,1,p),i=s.getDataItemPositionX(t,this._xField,1,p);n=s.getDataItemPositionX(t,this._xLowField,1,p),d=s.getDataItemPositionX(t,this._xHighField,1,p),l=Math.max(e,i),o=Math.min(e,i);let _=this._aLocationY0+y-.5,v=this._aLocationY1+x-.5;r=a.getDataItemPositionY(t,this._yField,_+(v-_)/2,m),h=r,g=r,c=r,u="horizontal"}this._updateCandleGraphics(t,o,n,r,h,l,d,g,c,u)}_updateCandleGraphics(t,e,i,s,a,o,n,r,l,d){let g=t.get("graphics");if(g){let c=this.getPoint(e,s),u=this.getPoint(i,a),m=this.getPoint(o,r),p=this.getPoint(n,l);if(this.get("turboMode")){const t=this.allColumnsData[this.allColumnsData.length-1];t.lowX0=c.x,t.lowY0=c.y,t.lowX1=u.x,t.lowY1=u.y,t.highX0=m.x,t.highY0=m.y,t.highX1=p.x,t.highY1=p.y}else{let e=g.x(),i=g.y();g.set("lowX0",c.x-e),g.set("lowY0",c.y-i),g.set("lowX1",u.x-e),g.set("lowY1",u.y-i),g.set("highX0",m.x-e),g.set("highY0",m.y-i),g.set("highX1",p.x-e),g.set("highY1",p.y-i),g.set("orientation",d);let s=t.get("rangeGraphics");s&&h.each(s,(t=>{t.set("lowX0",c.x-e),t.set("lowY0",c.y-i),t.set("lowX1",u.x-e),t.set("lowY1",u.y-i),t.set("highX0",m.x-e),t.set("highY0",m.y-i),t.set("highX1",p.x-e),t.set("highY1",p.y-i),t.set("orientation",d)}))}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),h.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity,g=e.lowX0,c=e.lowY0,u=e.lowX1,m=e.lowY1,p=e.highX0,_=e.highY0,x=e.highX1,v=e.highY1;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.moveTo(g,c),t.lineTo(u,m),t.moveTo(p,_),t.lineTo(x,v),t.endStroke(),t.endFill()}))}))}_processAxisRange(t){super._processAxisRange(t),t.columns=new n.o(o.YS.new({}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(t.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,t.columns.template])))}}l.className="CandlestickSeries",l.classNames=s.d.classNames.concat([l.className])},62:function(t,e,i){i.d(e,{d:function(){return d}});var s=i(757),a=i(5769),o=i(7144),n=i(3497),r=i(1479),h=i(7652),l=i(5071);class d extends s.d{constructor(){super(...arguments),this.allColumns=this.children.push(r.T.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(t.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,t.columns.template])))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),l.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.endStroke(),t.endFill()}))}))}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(t,e,i,s,a,o,n,r){if(this.get("turboMode")){e.virtualParent=this.chart,e.parent&&(this.mainContainer.children.removeValue(e),e._parent=void 0);const n=e.get("stroke"),r=e.get("fillOpacity",1),h=e.get("strokeOpacity",1),l=e.get("strokeWidth",1),d=e.get("fill"),g=this.getPoint(i,a),c=this.getPoint(s,o),u=t.get("point");if(u){const t=this.getPoint(u.x,u.y);u.x=t.x+this._x,u.y=t.y+this._y}i=g.x,s=c.x,a=g.y,o=c.y,t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:n,fill:d,strokeWidth:l,strokeOpacity:h,fillOpacity:r})}else e.parent||this.mainContainer.children.push(e),super._updateSeriesGraphics(t,e,i,s,a,o,n,r)}}d.className="ColumnSeries",d.classNames=s.d.classNames.concat([d.className])},2338:function(t,e,i){i.d(e,{e:function(){return p}});var s=i(4604),a=i(1479),o=i(774),n=i(3794),r=i(5769),h=i(7144),l=i(1112),d=i(9361),g=i(7142),c=i(5040),u=i(5071),m=i(7652);class p extends s.o{constructor(){super(...arguments),this._strokeGenerator=(0,o.Z)(),this._fillGenerator=(0,n.Z)(),this.strokes=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template])))),this.fills=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template])))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0((function(t){return t[3]})),this._fillGenerator.x0((function(t){return t[2]})),this._fillGenerator.y1((function(t){return t[1]})),this._fillGenerator.x1((function(t){return t[0]})),super._afterNew()}makeStroke(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}makeFill(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let t=this.get("xAxis"),e=this.get("yAxis");if(this.isDirty("stroke")){const t=this.get("stroke");this.strokes.template.set("stroke",t);const e=this._legendStroke;e&&e.states.lookup("default").set("stroke",t)}if(this.isDirty("fill")){const t=this.get("fill");this.fills.template.set("fill",t);const e=this._legendFill;e&&e.states.lookup("default").set("fill",t)}if(this.isDirty("fillPattern")){const t=this.get("fillPattern");this.fills.template.set("fillPattern",t);const e=this._legendFill;e&&e.states.lookup("default").set("fillPattern",t)}if(this.isDirty("curveFactory")){const t=this.get("curveFactory");t&&(this._strokeGenerator.curve(t),this._fillGenerator.curve(t))}if(t.inited&&e.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){const t=this.dataItems;this.fills.each((t=>{t.setPrivate("visible",!1)})),this.strokes.each((t=>{t.setPrivate("visible",!1)})),this.axisRanges.each((t=>{let e=t.fills;e&&e.each((t=>{t.setPrivate("visible",!1)}));let i=t.strokes;i&&i.each((t=>{t.setPrivate("visible",!1)}))}));let e=this.startIndex(),i=this.strokes.template.get("templateField"),s=this.fills.template.get("templateField"),a=!0,o=!0;i&&(a=!1),s&&(o=!1);for(let n=e-1;n>=0;n--){let r=t[n],h=!0,l=r.dataContext;if(i&&l[i]&&(a=!0),s&&l[s]&&(o=!0),u.each(this._valueFields,(t=>{c.isNumber(r.get(t))||(h=!1)})),h&&a&&o){e=n;break}}let n=t.length,r=this.endIndex();if(r{c.isNumber(i.get(t))||(s=!1)})),s){r=e+1;break}}}if(e>0&&e--,this._endIndex=r,this._clearGraphics(),this._sindex=0,this._dindex=e,1==n)this._startSegment(0);else for(;this._dindex{t.fills.clear(),t.strokes.clear()}))}_startSegment(t){const e=this.dataItems;let i=this._endIndex,s=i;const a=this.get("autoGapCount"),o=this.get("connect"),n=this.makeFill(this.fills),h=this._fillTemplate,l=this.fills.template;h&&h!=l&&(n.template=h),n.setPrivate("visible",!0);const d=this.makeStroke(this.strokes),g=this._strokeTemplate;g&&g!=this.strokes.template&&(d.template=g),d.setPrivate("visible",!0);let c=this.get("xAxis"),u=this.get("yAxis"),m=this.get("baseAxis"),p=this.get("vcx",1),_=this.get("vcy",1),x=this._xField,v=this._yField,y=this._xOpenField,f=this._yOpenField;const b=this.get("openValueXField"),D=this.get("openValueYField");b||(y=this._xField),D||(f=this._yField);const P=this.get("stacked"),w=c.basePosition(),T=u.basePosition();let A;A=m===u?this._yField:this._xField;const I=[];let M=[];I.push(M);const k=this.strokes.template.get("templateField"),C=this.fills.template.get("templateField");let S=this.get("locationX",.5),Y=this.get("locationY",.5),F=this.get("openLocationX",S),X=this.get("openLocationY",Y);const L=this.get("minDistance",0);let N,R=this.fills.template.get("visible");this.axisRanges.length>0&&(R=!0);let V=!1;(P||b||D)&&(V=!0);const G={points:M,segments:I,stacked:P,getOpen:V,basePosX:w,basePosY:T,fillVisible:R,xField:x,yField:v,xOpenField:y,yOpenField:f,vcx:p,vcy:_,baseAxis:m,xAxis:c,yAxis:u,locationX:S,locationY:Y,openLocationX:F,openLocationY:X,minDistance:L};let O=this._strokeTemplate,E=this._fillTemplate;for(N=t;Nt){s=N;break}O=e,d.template=e}}if(C){let e=i.dataContext[C];if(e){if(e instanceof r.YS||(e=r.YS.new(e)),this._fillTemplate=e,N>t){s=N;break}E=e,n.template=e}}if(!o){let t=e[N+1];t&&m.shouldGap(i,t,a,A)&&(M=[],I.push(M),G.points=M)}}n.setRaw("userData",[t,N]),d.setRaw("userData",[t,N]),N===i&&this._endLine(M,I[0][0]),d&&this._drawStroke(d,I),n&&this._drawFill(n,I),this.axisRanges.each((e=>{const i=e.container,s=e.fills,a=this.makeFill(s);i&&i.children.push(a),a.setPrivate("visible",!0),this._drawFill(a,I);const o=e.strokes,n=this.makeStroke(o);i&&i.children.push(n),O&&O!=this.strokes.template&&(n.template=O),E&&E!=this.fills.template&&(a.template=E),n.setPrivate("visible",!0),this._drawStroke(n,I),a.setRaw("userData",[t,N]),n.setRaw("userData",[t,N])}))}_getPoints(t,e){let i=e.points,s=t.get("locationX",e.locationX),a=t.get("locationY",e.locationY);const o=this.get("exactLocationX",!1),n=this.get("exactLocationY",!1);let r=e.xAxis.getDataItemPositionX(t,e.xField,s,e.vcx,o),h=e.yAxis.getDataItemPositionY(t,e.yField,a,e.vcy,n);if(this._shouldInclude(r)){const s=this.getPoint(r,h),a=[s.x,s.y];if(s.x+=this._x,s.y+=this._y,t.set("point",s),e.fillVisible){let i=r,s=h;if(e.baseAxis===e.xAxis?s=e.basePosY:e.baseAxis===e.yAxis&&(i=e.basePosX),e.getOpen){let a=t.get(e.xOpenField),r=t.get(e.yOpenField);if(null!=a&&null!=r){let a=t.get("openLocationX",e.openLocationX),r=t.get("openLocationY",e.openLocationY);if(e.stacked){let h=t.get("stackToItemX"),l=t.get("stackToItemY");h?(i=e.xAxis.getDataItemPositionX(h,e.xField,a,h.component.get("vcx"),o),c.isNaN(i)&&(i=e.basePosX)):i=e.yAxis===e.baseAxis?e.basePosX:e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),l?(s=e.yAxis.getDataItemPositionY(l,e.yField,r,l.component.get("vcy"),n),c.isNaN(s)&&(s=e.basePosY)):s=e.xAxis===e.baseAxis?e.basePosY:e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),s=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}}let l=this.getPoint(i,s);a[2]=l.x,a[3]=l.y}if(e.minDistance>0){const t=a[0],s=a[1],o=a[2],n=a[3],r=this._previousPoint,h=r[0],l=r[1],d=r[2],g=r[3];(Math.hypot(t-h,s-l)>e.minDistance||o&&n&&Math.hypot(o-d,n-g)>e.minDistance)&&(i.push(a),this._previousPoint=a)}else i.push(a)}}_endLine(t,e){}_drawStroke(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._strokeGenerator.context(t),this._strokeGenerator(e)}))}))}_drawFill(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._fillGenerator.context(t),this._fillGenerator(e)}))}))}_processAxisRange(t){super._processAxisRange(t),t.fills=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,t.fills.template]))),t.strokes=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,t.strokes.template])))}createLegendMarker(t){const e=this.get("legendDataItem");if(e){const t=e.get("marker"),i=e.get("markerRectangle");i&&i.setPrivate("visible",!1),t.set("background",g.A.new(t._root,{fillOpacity:0,fill:(0,l.$_)(0)}));const s=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=s;const o=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;const n=this._root.interfaceColors.get("disabled");if(s.states.create("disabled",{fill:n,stroke:n}),o.states.create("disabled",{fill:n,stroke:n}),this.bullets.length>0){const e=this.bullets.getIndex(0);if(e){const i=e(t._root,this,new d.z(this,{legend:!0},{}));if(i){const e=i.get("sprite");e instanceof a.T&&e.states.create("disabled",{fill:n,stroke:n}),e&&(e.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),t.children.push(e),e.setAll({x:t.width()/2,y:t.height()/2}),t.events.on("boundschanged",(()=>{e.setAll({x:t.width()/2,y:t.height()/2})})))}}}}}}p.className="LineSeries",p.classNames=s.o.classNames.concat([p.className])},4604:function(t,e,i){i.d(e,{o:function(){return u}});var s=i(7582),a=i(9361),o=i(3399),n=i(7144),r=i(8777),h=i(1479),l=i(5040),d=i(256),g=i(5071),c=i(7652);class u extends o.F{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(r.W.new(this._root,{})),this.axisRanges=new n.aV,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new a.z(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");const t=this.get("xAxis");t&&(this._xRenderer=t.get("renderer"));const e=this.get("yAxis");e&&(this._yRenderer=e.get("renderer")),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxisRange(t)}));else if("push"===t.type)this._processAxisRange(t.newValue);else if("setIndex"===t.type)this._processAxisRange(t.newValue);else if("insertIndex"===t.type)this._processAxisRange(t.newValue);else if("removeIndex"===t.type)this._removeAxisRange(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value)}}))),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this.onPrivate("endIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this._makeFieldNames()}_processAxisRange(t){const e=r.W.new(this._root,{});t.container=e,this.children.push(e),t.series=this;const i=t.axisDataItem;i.setRaw("isRange",!0);const s=i.component;if(s){s._processAxisRange(i,["range","series"]);const t=i.get("bullet");if(t){const e=t.get("sprite");e&&e.setPrivate("visible",!1)}const a=i.get("axisFill");a&&e.set("mask",a),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),d.each(this._dataSets,((t,e)=>{g.each(e,(t=>{t.dispose()})),e.length=0}))}_removeAxisRange(t){const e=t.axisDataItem,i=e.component;e.dispose(),g.remove(i._seriesAxisRanges,e);const s=t.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&g.each(this.valueXFields,(t=>{if(this.get(t+"Field")){this._valueXFields.push(t);let e=this.get(t+"Show");this.__valueXShowFields.push(e),-1!=e.indexOf("Working")?this._valueXShowFields.push(e.split("Working")[0]):this._valueXShowFields.push(e)}})),this.valueYFields&&g.each(this.valueYFields,(t=>{if(this.get(t+"Field")){this._valueYFields.push(t);let e=this.get(t+"Show");this.__valueYShowFields.push(e),-1!=e.indexOf("Working")?this._valueYShowFields.push(e.split("Working")[0]):this._valueYShowFields.push(e)}}))}_dispose(){super._dispose(),this._bullets={};const t=this.chart;t&&t.series.removeValue(this),g.removeFirst(this.get("xAxis").series,this),g.removeFirst(this.get("yAxis").series,this)}_min(t,e){let i=(a=e,null==(s=this.getPrivate(t))?a:null==a?s:aa?s:a);var s,a;this.setPrivate(t,i)}_shouldMakeBullet(t){const e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!e.inited||!i.inited)return!1;const a=this.get("minBulletDistance",0);if(a>0){let t=this.startIndex(),o=this.endIndex()-t;if(e==s){if(this._xRenderer.axisLength()/o
{g.each(this._valueXShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedXValue(i,t)),this._min("minX",e),this._max("maxX",e))})),g.each(this._valueYShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedYValue(i,t)),this._min("minY",e),this._max("maxY",e))})),t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)})),t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&t.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&e.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(t._groupSeriesData(this),e._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let s=this.startIndex(),a=this.endIndex(),o=this.get("minBulletDistance",0);if(o>0&&i&&(i.get("renderer").axisLength()/(a-s)>o?this._showBullets=!0:this._showBullets=!1),(this._psi!=s||this._pei!=a||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const o=this.get("vcx",1),n=this.get("vcy",1),r=this.get("stacked",!1),h=this.getPrivate("outOfSelection");if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),h)e.markDirtySelectionExtremes();else for(let t=s;t{i.open=void 0,i.close=void 0,t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)}))}_makeRangeMask(){if(this.axisRanges.length>0){let t=this._mainContainerMask;null==t&&(t=this.children.push(h.T.new(this._root,{})),this._mainContainerMask=t,t.set("draw",((e,i)=>{const s=this.parent;if(s){const t=this._root.container.width(),a=this._root.container.height();e.moveTo(-t,-a),e.lineTo(-t,2*a),e.lineTo(2*t,2*a),e.lineTo(2*t,-a),e.lineTo(-t,-a),this.axisRanges.each((t=>{const a=t.axisDataItem.get("axisFill");if(s&&a){let t=a.get("draw");t&&t(e,i)}}))}this.mainContainer._display.mask=t._display}))),t.markDirty(),t._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const t=this.chart;if(t){const e=t.series.indexOf(this);if(this._couldStackTo=[],e>0){let i;for(let s=e-1;s>=0&&(i=t.series.getIndex(s),i.get("xAxis")!==this.get("xAxis")||i.get("yAxis")!==this.get("yAxis")||i.className!==this.className||(this._couldStackTo.push(i),i.get("stacked")));s--);}this._stackDataItems()}}_unstack(){d.each(this._reallyStackedTo,((t,e)=>{delete e._stackedSeries[this.uid]})),this._reallyStackedTo={},g.each(this.dataItems,(t=>{t.setRaw("stackToItemY",void 0),t.setRaw("stackToItemX",void 0)}))}_handleRemoved(){const t=this.get("xAxis");t&&t._handleSeriesRemoved();const e=this.get("yAxis");e&&e._handleSeriesRemoved()}_stackDataItems(){const t=this.get("baseAxis"),e=this.get("xAxis"),i=this.get("yAxis");let s,a;t===e?(s="valueY",a="stackToItemY"):t===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,n=0;const r=this.get("stackToNegative");this._reallyStackedTo={},g.each(this.dataItems,(t=>{for(let e=0;e=0&&n>=0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}if(d<0&&n<0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}else if(l.isNumber(d)&&l.isNumber(n)){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}n++}))}processXSelectionDataItem(t,e,i){g.each(this.__valueXShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedXValueWorking(t,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*e))}))}processYSelectionDataItem(t,e,i){g.each(this.__valueYShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedYValueWorking(t,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*e))}))}getStackedYValueWorking(t,e){const i=t.get("stackToItemY");if(i){const t=i.component;return i.get(e,0)*t.get("vcy",1)+this.getStackedYValueWorking(i,e)}return 0}getStackedXValueWorking(t,e){const i=t.get("stackToItemX");if(i){const t=i.component;return i.get(e,0)*t.get("vcx",1)+this.getStackedXValueWorking(i,e)}return 0}getStackedYValue(t,e){const i=t.get("stackToItemY");return i?i.get(e,0)+this.getStackedYValue(i,e):0}getStackedXValue(t,e){const i=t.get("stackToItemX");return i?i.get(e,0)+this.getStackedXValue(i,e):0}createLegendMarker(t){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(t){let e=t.get("sprite");if(e){let i=e.dataItem,s=t.get("locationX",i.get("locationX",.5)),a=t.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),n=this.get("yAxis"),r=this.get("exactLocationX",!1),h=this.get("exactLocationY",!1),l=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),r),d=n.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),h),g=this.getPoint(l,d),c=i.get("left",g.x),u=i.get("right",g.x),m=i.get("top",g.y),p=i.get("bottom",g.y),_=0,x=0,v=u-c,y=p-m;if(this._shouldShowBullet(l,d)){e.setPrivate("visible",!t.getPrivate("hidden"));let o=t.get("field");const n=this.get("baseAxis"),u=this.get("xAxis"),m=this.get("yAxis");if(null!=o){let t;n==u?("value"==o?t=this._yField:"open"==o?t=this._yOpenField:"high"==o?t=this._yHighField:"low"==o&&(t=this._yLowField),t&&(d=m.getDataItemPositionY(i,t,0,this.get("vcy",1),h),g=this._yRenderer.positionToPoint(d),x=g.y,_=c+v*s)):("value"==o?t=this._xField:"open"==o?t=this._xOpenField:"high"==o?t=this._xHighField:"low"==o&&(t=this._xLowField),t&&(l=u.getDataItemPositionX(i,t,0,this.get("vcx",1),r),g=this._xRenderer.positionToPoint(l),_=g.x,x=p-y*a))}else _=c+v*s,x=p-y*a;const f=t.get("stacked");if(f){const t=this.chart;if(n==u){let i=this._bullets[l+"_"+d];if(i){let s=i.bounds(),a=e.localBounds(),o=x;x=s.top,"down"==f?x=s.bottom-a.top:"auto"==f?t&&(o{e!=this._mainDataItems&&g.each(e,(t=>{t.dispose()}))})),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){g.each(this._dataItems,(t=>{let e=t.bullets;e&&g.each(e,(t=>{if(t){let e=t.get("sprite");e&&e.setPrivate("visible",!1)}}))})),this._selectionProcessed=!1}show(t){const e=Object.create(null,{show:{get:()=>super.show}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.show.call(this,t).then((()=>{this._isShowing=!1;let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis");e!==i&&e.markDirtySelectionExtremes(),t!==i&&t.markDirtySelectionExtremes()}))),i.push(this.bulletsContainer.show(t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)}))}hide(t){const e=Object.create(null,{hide:{get:()=>super.hide}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.hide.call(this,t).then((()=>{this._isHiding=!1}))),i.push(this.bulletsContainer.hide(t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)];l.isNumber(e)||(e=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");g.each(this._valueFields,(i=>{s.push(t.animate({key:i+"Working",to:t.get(i),duration:e,easing:a}).waitForStop())})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)];let a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),l.isNumber(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),n=this.get("xAxis"),r=this.get("yAxis"),h=this.get("baseAxis"),d=this.get("stacked");if(h!==n&&h||g.each(this._valueYFields,(i=>{let a=r.getPrivate("min"),n=r.baseValue();l.isNumber(a)&&a>n&&(n=a),d&&(n=0),null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:n,duration:e,easing:o}).waitForStop())})),h===r||!h){let i=n.getPrivate("min"),a=n.baseValue();l.isNumber(i)&&i>a&&(a=i),d&&(a=0),g.each(this._valueXFields,(i=>{null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:a,duration:e,easing:o}).waitForStop())}))}yield Promise.all(s)}))}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const t=this._stackedSeries;t&&d.each(t,((t,e)=>{e._stackDirty||e._markDirtyStack()}))}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(t){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(t),this.updateLegendValue(t));const e=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(e)if(!this.isHidden()&&this.get("visible")){if(e._setDataItem(t),t){let a=this.get("locationX",0),o=this.get("locationY",1),n=t.get("locationX",a),r=t.get("locationY",o);const h=this.get("xAxis"),l=this.get("yAxis"),d=this.get("vcx",1),c=this.get("vcy",1),u=h.getDataItemPositionX(t,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*n,d,i),m=l.getDataItemPositionY(t,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*r,c,s),p=this.getPoint(u,m);let _=!0;if(g.each(this._valueFields,(e=>{null==t.get(e)&&(_=!1)})),_){const i=this.chart;i&&i.inPlot(p)?(e.label.text.markDirtyText(),e.set("tooltipTarget",this._getTooltipTarget(t)),e.set("pointTo",this._display.toGlobal({x:p.x,y:p.y}))):e._setDataItem(void 0)}else e._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const t=this.get("tooltip");return t&&t.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget")){const e=t.bullets;if(e&&e.length>0){const t=e[0].get("sprite");if(t)return t}}return this}updateLegendValue(t){const e=this.get("legendDataItem");if(e){const i=e.get("label");if(i){let e="";t?(i._setDataItem(t),e=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),e=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",e)}const s=e.get("valueLabel");if(s){let e="";t?(s._setDataItem(t),e=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),e=this.get("legendRangeValueText",s.get("text",""))),s.set("text",e)}}}_getItemReaderLabel(){let t="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}",t}getPoint(t,e){let i=this._xRenderer.positionToCoordinate(t),s=this._yRenderer.positionToCoordinate(e),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(t){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(t){return this.axisRanges.push({axisDataItem:t})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(t){const e=this.get("xAxis");if(this.get("baseAxis")==e&&e.isType("DateAxis")){const i=e.baseDuration(),s=e.getPrivate("selectionMin",e.getPrivate("min",0)),a=i*this.get("locationX",.5);let o=-1/0;for(;o{const e=this.startGrip,i=this.endGrip;let s=e.x(),a=e.y(),o=i.x(),n=i.y();const r=this.height(),h=this.width();s>o&&([s,o]=[o,s]),a>n&&([a,n]=[n,a]),"horizontal"===this.get("orientation")?(t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,r),t.lineTo(0,r),t.lineTo(0,0),t.moveTo(o,0),t.lineTo(h,0),t.lineTo(h,r),t.lineTo(o,r),t.lineTo(o,0)):(t.moveTo(0,0),t.lineTo(0,a),t.lineTo(h,a),t.lineTo(h,0),t.lineTo(0,0),t.moveTo(0,n),t.lineTo(0,r),t.lineTo(h,r),t.lineTo(h,n),t.lineTo(0,n))}))}}r.className="XYChartScrollbar",r.classNames=a.L.classNames.concat([r.className]);var h=i(3355),l=i(757),d=i(6515),g=i(7497),c=i(1926),u=i(5040),m=i(5071);class p extends g.${constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category"),super._afterNew()}_prepareAxisItems(){this.setPrivateRaw("baseInterval",this.get("baseInterval"));const t=this.get("renderer"),e=this.dataItems.length;let i=this.startIndex();i>0&&i--;let s=this.endIndex();s=o&&(g=!0):r%l.count==0&&r!=y&&(g=!0),!h&&g&&(i-.7*o0){let t=f[0].dataItem.get("index",0);m.each(f,(e=>{const i=e.dataItem,s=e.format;this._createAssets(i,[]),this._toggleDataItem(i,!0);let a=Number(i.get("category")),n=new Date(a);const r=i.get("label");r&&r.set("text",this._root.dateFormatter.format(n,s)),t++,this._prepareDataItem(i,t,o)}))}}baseDuration(){return c.getIntervalDuration(this.getPrivate("baseInterval"))}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let t=this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];return this._root.dateFormatter.format(new Date(i.get("category",0)),this.get("tooltipDateFormat",t))}}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}}p.className="CategoryDateAxis",p.classNames=g.$.classNames.concat([p.className]);var _=i(5638),x=i(8701),v=i(7261),y=i(751);class f extends v.m{constructor(){super(...arguments),this._dataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),super._afterNew()}_adjustMinMax(t,e,i,s){let a;const o=this.getDurationFormatter(),n=this.get("baseUnit");if(this.setRaw("maxPrecision",0),"millisecond"==n||"second"==n||"minute"==n||"hour"==n){i<=1&&(i=1),i=Math.round(i);let s=e-t;0===s&&(s=Math.abs(e));let o=s/i,r=[60,30,20,15,10,2,1],h=1;"hour"==n&&(r=[24,12,6,4,2,1]);for(let t of r)if(s/t>i){h=t;break}let l=Math.ceil((e-t)/h/i),d=Math.log(Math.abs(l))*Math.LOG10E,g=Math.pow(10,Math.floor(d))/10,c=l/g;l=y.closest(r,c)*g,o=h*l,a={min:t=Math.floor(t/o)*o,max:e=Math.ceil(e/o)*o,step:o}}else a=super._adjustMinMax(t,e,i,s);return this.setPrivateRaw("durationFormat",o.getFormat(a.step,a.max,n)),a}_formatText(t){return this.getDurationFormatter().format(t,this.getPrivate("durationFormat"),this.get("baseUnit"))}getTooltipText(t,e){const i=this.getDurationFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=y.round(this.positionToValue(t),a);return i.format(o,this.getPrivate("durationFormat"),this.get("baseUnit"))}}f.className="DurationAxis",f.classNames=v.m.classNames.concat([f.className]);var b=i(2586),D=i(6293),P=i(9084),w=i(4714),T=i(8943),A=i(7109),I=i(6275),M=i(6284),k=i(7909),C=i(4604),S=i(2976),Y=i(2312);class F extends S.j{_draw(){const t=this._display;t.moveTo(this.get("lowX1",0),this.get("lowY1",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0));let e=this.width(),i=this.height();if("vertical"==this.get("orientation")){let s=i,a=0;t.moveTo(0,s),t.lineTo(e/2,s),t.moveTo(e/2,a),t.lineTo(e,a)}else{let s=0,a=e;t.moveTo(s,0),t.lineTo(s,i/2),t.moveTo(a,i/2),t.lineTo(a,i)}}}F.className="OHLC",F.classNames=S.j.classNames.concat([F.className]);var X=i(5769),L=i(7144);class N extends Y.${constructor(){super(...arguments),this.columns=this.addDisposer(new L.o(X.YS.new({themeTags:["autocolor"]}),(()=>F._new(this._root,{themeTags:n.mergeTags(this.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=this.mainContainer.children.push(e.make());return i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new L.o(X.YS.new({}),(()=>F._new(this._root,{themeTags:n.mergeTags(t.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template,t.columns.template])))}}N.className="OHLCSeries",N.classNames=Y.$.classNames.concat([N.className]);var R=i(62),V=i(2338),G=i(5892);class O extends V.e{_afterNew(){this._setDefault("curveFactory",(0,G.$)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,G.$)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}O.className="SmoothedYLineSeries",O.classNames=V.e.classNames.concat([O.className]);var E=i(8289);class z extends V.e{_afterNew(){this._setDefault("curveFactory",(0,E.G)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,E.G)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}z.className="SmoothedXLineSeries",z.classNames=V.e.classNames.concat([z.className]);var U=i(2818);class W extends V.e{_afterNew(){this._setDefault("curveFactory",U.ZP.tension(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",U.ZP.tension(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}W.className="SmoothedXYLineSeries",W.classNames=V.e.classNames.concat([W.className]);var B=i(6245);function H(t,e){this._context=t,this._t=e}function Z(t){return new H(t,1)}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}};class Q extends V.e{_afterNew(){this._setDefault("curveFactory",Z),super._afterNew()}_getPoints(t,e){let i=e.points,s=this.get("stepWidth",B.AQ).value/2,a=t.get("locationX",e.locationX),o=t.get("locationY",e.locationY),n=a,r=o;e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s);let h=e.xAxis.getDataItemPositionX(t,e.xField,a,e.vcx),l=e.yAxis.getDataItemPositionY(t,e.yField,o,e.vcy),d=e.xAxis.getDataItemPositionX(t,e.xField,n,e.vcx),g=e.yAxis.getDataItemPositionY(t,e.yField,r,e.vcy);if(this._shouldInclude(h)){const c=this.getPoint(h,l),u=[c.x,c.y],m=this.getPoint(d,g),p=[m.x,m.y];if(e.fillVisible){let i=h,c=l,m=d,_=g;if(e.baseAxis===e.xAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(i=e.basePosX,m=e.basePosX),e.getOpen){let h=t.get(e.xOpenField),l=t.get(e.yOpenField);if(null!=h&&null!=l)if(a=t.get("openLocationX",e.openLocationX),o=t.get("openLocationY",e.openLocationY),n=a,r=o,e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s),e.stacked){let s=t.get("stackToItemX"),h=t.get("stackToItemY");s?(i=e.xAxis.getDataItemPositionX(s,e.xField,a,s.component.get("vcx")),m=e.xAxis.getDataItemPositionX(s,e.xField,n,s.component.get("vcx"))):e.yAxis===e.baseAxis?(i=e.basePosX,m=e.basePosX):e.baseAxis===e.yAxis&&(i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx)),h?(c=e.yAxis.getDataItemPositionY(h,e.yField,o,h.component.get("vcy")),_=e.yAxis.getDataItemPositionY(h,e.yField,r,h.component.get("vcy"))):e.xAxis===e.baseAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy))}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy)}let x=this.getPoint(i,c),v=this.getPoint(m,_);u[2]=x.x,u[3]=x.y,p[2]=v.x,p[3]=v.y}i.push(u),i.push(p),t.set("point",{x:u[0]+(p[0]-u[0])/2,y:u[1]+(p[1]-u[1])/2})}this.get("noRisers")&&(e.points=[],e.segments.push(i))}}Q.className="StepLineSeries",Q.classNames=V.e.classNames.concat([Q.className]);var j=i(55)},7825:function(t,e,i){i.r(e),i.d(e,{am5xy:function(){return s}});const s=i(778)},2818:function(t,e,i){function s(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function a(t,e){this._context=t,this._k=(1-e)/6}i.d(e,{xm:function(){return s}}),a.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:s(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:s(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.ZP=function t(e){function i(t){return new a(t,e)}return i.tension=function(e){return t(+e)},i}(0)}},function(t){var e=(7825,t(t.s=7825)),i=window;for(var s in e)i[s]=e[s];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=xy.js.map diff --git a/web/amCharts/scatter/chart_0063_scatter.inline03.js b/web/amCharts/scatter/chart_0063_scatter.inline03.js new file mode 100644 index 0000000000000000000000000000000000000000..c27a274e7972e9ecbd57d20b441e60fc864ffc7d --- /dev/null +++ b/web/amCharts/scatter/chart_0063_scatter.inline03.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=Animated.js.map diff --git a/web/amCharts/scatter/chart_0064_scatter.html b/web/amCharts/scatter/chart_0064_scatter.html new file mode 100644 index 0000000000000000000000000000000000000000..b670a34acbe3a8de9f07ea30561b69630260df18 --- /dev/null +++ b/web/amCharts/scatter/chart_0064_scatter.html @@ -0,0 +1,200 @@ + + + + + + Bubble Chart with Pie Bullets + + + +
+ + + + + + + diff --git a/web/amCharts/scatter/chart_0064_scatter.inline01.js b/web/amCharts/scatter/chart_0064_scatter.inline01.js new file mode 100644 index 0000000000000000000000000000000000000000..3fe3e3caca2e468e70f044c7aaeaa49dfcb8d974 --- /dev/null +++ b/web/amCharts/scatter/chart_0064_scatter.inline01.js @@ -0,0 +1,2 @@ +!function(){var t,e,i,s,n,r={3145:function(t,e,i){"use strict";i.d(e,{UZ:function(){return r},cP:function(){return n},f_:function(){return o},i_:function(){return s}});const s=new class{constructor(){this.version="5.16.0",this.licenses=[],this.entitiesById={},this.rootElements=[],this.autoDispose=!1}};function n(t){s.licenses.push(t)}function r(){let t;for(;t=s.rootElements.pop();)t.dispose()}function o(t){let e;return s.rootElements.forEach((i=>{i.dom.id==t&&(e=i)})),e}},2855:function(t,e,i){"use strict";i.d(e,{f:function(){return F}});var s=i(6490),n=i(8777),r=i(2036),o=i(4431),a=i(1706),h=i(6881),l=i(7449),c=i(5071),u=i(7652);class d{constructor(){this._targets=[],this._observer=new ResizeObserver((t=>{c.each(t,(t=>{c.each(this._targets,(e=>{e.target===t.target&&e.callback()}))}))}))}addTarget(t,e){this._observer.observe(t,{box:"border-box"}),this._targets.push({target:t,callback:e})}removeTarget(t){this._observer.unobserve(t),c.keepIf(this._targets,(e=>e.target!==t))}}class p{constructor(){this._timer=null,this._targets=[]}addTarget(t,e){if(null===this._timer){let t=null;const e=()=>{const i=Date.now();(null===t||i>t+p.delay)&&(t=i,c.each(this._targets,(t=>{let e=t.target.getBoundingClientRect();e.width===t.size.width&&e.height===t.size.height||(t.size=e,t.callback())}))),0===this._targets.length?this._timer=null:this._timer=requestAnimationFrame(e)};this._timer=requestAnimationFrame(e)}this._targets.push({target:t,callback:e,size:{width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0}})}removeTarget(t){c.keepIf(this._targets,(e=>e.target!==t)),0===this._targets.length&&null!==this._timer&&(cancelAnimationFrame(this._timer),this._timer=null)}}p.delay=200;let g=null;class f{constructor(t,e){this._disposed=!1,this._sensor=(null===g&&(g="undefined"!=typeof ResizeObserver?new d:new p),g),this._element=t,this._listener=u.onZoom(e),this._sensor.addTarget(t,e)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}var _=i(9821),m=i(1479),y=i(7142),v=i(2876),w=i(780),b=i(6460),x=i(798),D=i(6331),k=i(256),T=i(3100);class M extends D.JH{_setDefaults(){this.setPrivate("defaultLocale",T.Z),super._setDefaults()}translate(t,e,...i){e||(e=this._root.locale||this.getPrivate("defaultLocale"));let s=t,n=e[t];if(null===n)s="";else if(null!=n)n&&(s=n);else if(e!==this.getPrivate("defaultLocale"))return this.translate(t,this.getPrivate("defaultLocale"),...i);if(i.length)for(let t=i.length,e=0;e{this.setTranslationAny(t,i,e)}))}translateEmpty(t,e,...i){let s=this.translate(t,e,...i);return s==t?"":s}translateFunc(t,e){return this._root.locale[t]?this._root.locale[t]:e!==this.getPrivate("defaultLocale")?this.translateFunc(t,this.getPrivate("defaultLocale")):()=>""}translateAll(t,e){return this.isDefault()?t:c.map(t,(t=>this.translate(t,e)))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}var E=i(9770),O=i(3783),P=i(4102),S=i(6245),N=i(1112),C=i(2132),L=i(3145),A=i(3540),R=i(5040),U=i(9395);function B(t,e){null==t?requestAnimationFrame(e):setTimeout((()=>{requestAnimationFrame(e)}),1e3/t)}class F{constructor(t,e={},i){if(this._isDirty=!1,this._isDirtyParents=!1,this._isDirtyAnimation=!1,this._dirty={},this._dirtyParents={},this._dirtyBounds={},this._dirtyPositions={},this._ticker=null,this._tickers=[],this._updateTick=!0,this.skipRenderFrame=!1,this.events=new E.p,this.animationTime=null,this._animations=[],this.language=M.new(this,{}),this.locale=T.Z,this.utc=!1,this.numberFormatter=w.e.new(this,{}),this.dateFormatter=b.C.new(this,{}),this.durationFormatter=x.$.new(this,{}),this.tabindex=0,this._tabindexes=[],this._a11yD=!1,this._focusElementDirty=!1,this._skipNextGroupJump=!0,this.verticalLayout=a.Z.new(this,{}),this.horizontalLayout=o.G.new(this,{}),this.gridLayout=h.M.new(this,{}),this._paused=!1,this.autoResize=!0,this._fontHash="",this._isDisposed=!1,this._disposers=[],this._tooltips=[],this._htmlEnabledContainers=[],this.entitiesById={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");let s,n;if(this._settings=e,0==e.accessible&&(this._a11yD=!0),null==e.useSafeResolution&&(e.useSafeResolution=!0),e.useSafeResolution&&(s=u.getSafeResolution()),this._renderer=new P.uK(s),n=t instanceof HTMLElement?t:document.getElementById(t),c.each(L.i_.rootElements,(t=>{if(t.dom===n){if(!L.i_.autoDispose)throw new Error("You cannot have multiple Roots on the same DOM node");t.dispose()}})),this.interfaceColors=_.v.new(this,{}),null===n)throw new Error("Could not find HTML element with id `"+t+"`");this.dom=n;let r=document.createElement("div");r.style.position="relative",r.style.width="100%",r.style.height="100%",n.appendChild(r);const l=e.tooltipContainerBounds;l&&(this._tooltipContainerSettings=l),this._inner=r,this._updateComputedStyles(),L.i_.rootElements.push(this)}static new(t,e){const i=new F(t,e,!0);return i._init(),i}moveDOM(t){let e;if(e=t instanceof HTMLElement?t:document.getElementById(t),e){for(;this.dom.childNodes.length>0;)e.appendChild(this.dom.childNodes[0]);this.dom=e,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const t=this.dom.offsetWidth,e=this.dom.offsetHeight;t<=150||e<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const t=this.tooltipContainer.children.push(n.W.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:(0,S.aQ)(100),centerY:S.AQ,tooltipY:10,tooltipText:"Created using amCharts 5",tooltipX:S.AQ,cursorOverStyle:"pointer",background:y.A.new(this,{fill:(0,N.$_)(4671320),fillOpacity:0,tooltipY:5})}));t.set("tooltip",this.systemTooltip),t.events.on("click",(()=>{window.open("https://www.amcharts.com/","_blank")})),t.states.create("hover",{});const e=t.children.push(m.T.new(this,{stroke:(0,N.$_)(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6",dx:-50,strokeOpacity:0}));e.states.create("hover",{stroke:(0,N.$_)(3976191)});const i=t.children.push(m.T.new(this,{stroke:(0,N.$_)(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0",dx:50,strokeOpacity:0})),s=U.out(U.cubic),r=1500;t.setTimeout((()=>{i.animate({key:"strokeOpacity",to:1,duration:r,easing:s}),i.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"strokeOpacity",to:1,duration:r,easing:s})}),3e3),i.states.create("hover",{stroke:(0,N.$_)(4671320)}),this._logo=t,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(t){return this._settings.calculateSize?this._settings.calculateSize(t):{width:t.width,height:t.height}}_init(){const t=this._settings;!1!==t.accessible&&(t.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),t.ariaLabel&&this._inner.setAttribute("aria-label",t.ariaLabel),t.role&&this._inner.setAttribute("role",t.role));const e=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),r=Math.floor(s.width),o=Math.floor(s.height),a=Math.floor(i.width),h=Math.floor(i.height),l=n.W.new(this,{visible:!0,width:r,height:o});this._rootContainer=l,this._rootContainer._defaultThemes.push(O.X.new(this));const c=l.children.push(n.W.new(this,{visible:!0,width:S.AQ,height:S.AQ}));this.container=c,e.resize(a,h,r,o),this._inner.appendChild(e.view),this._initResizeSensor();const d=document.createElement("div");if(this._htmlElementContainer=d,d.className="am5-html-container",d.style.position="absolute",d.style.pointerEvents="none",this._tooltipContainerSettings||(d.style.overflow="hidden"),this._inner.appendChild(d),!0!==this._a11yD){const t=document.createElement("div");t.className="am5-reader-container",t.setAttribute("role","alert"),t.style.position="absolute",t.style.width="1px",t.style.height="1px",t.style.overflow="hidden",t.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=t,this._inner.appendChild(this._readerAlertElement);const i=document.createElement("div");i.className="am5-focus-container",i.style.position="absolute",i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.width=r+"px",i.style.height=o+"px",i.setAttribute("role","graphics-document"),u.setInteractive(i,!1),this._focusElementContainer=i,this._inner.appendChild(this._focusElementContainer);const s=document.createElement("div");this._tooltipElementContainer=s,s.className="am5-tooltip-container",this._inner.appendChild(s),u.supports("keyboardevents")&&(this._disposers.push(u.addEventListener(window,"keydown",(t=>{const e=u.getEventKey(t);"Shift"==e?this._isShift=!0:"Tab"==e&&(this._isShift=t.shiftKey)}))),this._disposers.push(u.addEventListener(window,"keyup",(t=>{"Shift"==u.getEventKey(t)&&(this._isShift=!1)}))),this._disposers.push(u.addEventListener(i,"click",(()=>{const t=this._focusedSprite;if(t){const i=t.get("clickAnnounceText","");""!==i&&this.readerAlert(i);const s=e.getEvent(new MouseEvent("click"));t.events.dispatch("click",{type:"click",originalEvent:s.event,point:s.point,simulated:!0,target:t})}}))),this._disposers.push(u.addEventListener(i,"keydown",(t=>{const i=this._focusedSprite;if(i){"Escape"==t.key&&(u.blur(),this._focusedSprite=void 0);let s=0,n=0;const r=u.getEventKey(t);switch(r){case"Enter":case" ":const o=i.get("clickAnnounceText","");if(""!==o&&this.readerAlert(o)," "==r&&"checkbox"!=i.get("role"))return;t.preventDefault();const a=e.getEvent(new MouseEvent("mouse"));return void i.events.dispatch("click",{type:"click",originalEvent:a.event,point:a.point,simulated:!0,target:i});case"ArrowLeft":s=-6;break;case"ArrowRight":s=6;break;case"ArrowUp":n=-6;break;case"ArrowDown":n=6;break;default:return}if(0!=s||0!=n){if(t.preventDefault(),!i.isDragging()){this._keyboardDragPoint={x:0,y:0};const t=e.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));t.point={x:0,y:0},i.events.isEnabled("pointerdown")&&i.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:t.event,point:t.point,simulated:!0,target:i})}const r=this._keyboardDragPoint;r.x+=s,r.y+=n;const o=e.getEvent(new MouseEvent("mousemove",{clientX:r.x,clientY:r.y}),!1);i.events.isEnabled("globalpointermove")&&i.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:o.event,point:o.point,simulated:!0,target:i})}}}))),this._disposers.push(u.addEventListener(i,"keyup",(t=>{if(this._focusedSprite){const i=this._focusedSprite,s=u.getEventKey(t);switch(s){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(i.isDragging()){const t=this._keyboardDragPoint,s=e.getEvent(new MouseEvent("mouseup",{clientX:t.x,clientY:t.y}));return i.events.isEnabled("globalpointerup")&&i.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:s.event,point:s.point,simulated:!0,target:i}),void(this._keyboardDragPoint=void 0)}if(i.get("focusableGroup")){const t=i.get("focusableGroup"),e=this._tabindexes.filter((e=>!(e.get("focusableGroup")!=t||!1===e.getPrivate("focusable")||!e.isVisibleDeep())));let n=e.indexOf(i);const r=e.length-1;n+="ArrowRight"==s||"ArrowDown"==s?1:-1,n<0?n=r:n>r&&(n=0),u.focus(e[n].getPrivate("focusElement").dom)}break;case"Tab":const t=i.get("focusableGroup");if(t&&this._isShift)return void(this._skipNextGroupJump||(this._focusNext(i.getPrivate("focusElement").dom,-1,t),this._skipNextGroupJump=!0))}}}))))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}get systemTooltip(){if(!this._systemTooltip){const t=v.u.new(this,{themeTags:["system"]});this._systemTooltip=t}return this._systemTooltip}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new f(this.dom,(()=>{this.autoResize&&this.resize()})),this._disposers.push(this._resizeSensorDisposer)}resize(){const t=this._getRealSize(),e=this._getCalculatedSize(t),i=Math.floor(e.width),s=Math.floor(e.height);if(i>0&&s>0){const e=Math.floor(t.width),n=Math.floor(t.height),r=this._htmlElementContainer;if(r.style.width=i+"px",r.style.height=s+"px",!0!==this._a11yD){const t=this._focusElementContainer;t.style.width=i+"px",t.style.height=s+"px"}this._renderer.resize(e,n,i,s);const o=this._rootContainer;o.setPrivate("width",i),o.setPrivate("height",s),this._render(),this._handleLogo()}}_render(){this.skipRenderFrame?this.skipRenderFrame=!1:(this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1))}_runTickers(t){c.each(this._tickers,(e=>{e(t)}))}_runAnimations(t){let e=0;return c.keepIf(this._animations,(i=>{const n=i._runAnimation(t);return n!==s.SR.Stopped&&(n!==s.SR.Playing||(++e,!0))})),this._isDirtyAnimation=!1,0===e}_runDirties(){let t={};for(;this._isDirtyParents;)this._isDirtyParents=!1,k.entries(this._dirtyParents).forEach((([e,i])=>{delete this._dirtyParents[e],i.isDisposed()||(t[i.uid]=i,i._prepareChildren())}));k.entries(t).forEach((([t,e])=>{e._updateChildren()}));const e=[];k.entries(this._dirty).forEach((([t,i])=>{i.isDisposed()?delete this._dirty[t]:(e.push(i),i._beforeChanged())})),e.forEach((t=>{t._changed(),delete this._dirty[t.uid],t._clearDirty()})),this._isDirty=!1;const i={},s=[];k.entries(this._dirtyBounds).forEach((([t,e])=>{delete this._dirtyBounds[t],e.isDisposed()||(i[e.uid]=e.depth(),s.push(e))})),this._positionHTMLElements(),s.sort(((t,e)=>A.qu(i[e.uid],i[t.uid]))),s.forEach((t=>{t._updateBounds()}));const n=this._dirtyPositions;k.entries(n).forEach((([t,e])=>{delete n[t],e.isDisposed()||e._updatePosition()})),e.forEach((t=>{t._afterChanged()})),k.entries(t).forEach((([t,e])=>{e._childrenPrep=!1,e._childrenUpdt=!1}))}_renderFrame(t){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:t}),this._checkComputedStyles(),this._runTickers(t);const e=this._runAnimations(t);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:t}),0===this._tickers.length&&e&&!this._isDirtyAnimation&&!this._isDirty}return!0}_runTicker(t,e){this.isDisposed()||(this.animationTime=t,this._renderFrame(t)?(this._ticker=null,this.animationTime=null):this._paused||(e?this._ticker:B(this.fps,this._ticker)))}_runTickerNow(t=1e4){if(!this.isDisposed()){const e=performance.now()+t;for(;;){const t=performance.now();if(t>=e){this.animationTime=null;break}if(this.animationTime=t,this._renderFrame(t)){this.animationTime=null;break}}}}_startTicker(){null===this._ticker&&(this.animationTime=null,this._ticker=t=>{this._runTicker(t)},B(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(t){this._updateTick=t,t&&this._startTicker()}_addDirtyEntity(t){this._isDirty=!0,void 0===this._dirty[t.uid]&&(this._dirty[t.uid]=t),this._startTicker()}_addDirtyParent(t){this._isDirty=!0,this._isDirtyParents=!0,void 0===this._dirtyParents[t.uid]&&(this._dirtyParents[t.uid]=t),this._startTicker()}_addDirtyBounds(t){this._isDirty=!0,void 0===this._dirtyBounds[t.uid]&&(this._dirtyBounds[t.uid]=t),this._startTicker()}_addDirtyPosition(t){this._isDirty=!0,void 0===this._dirtyPositions[t.uid]&&(this._dirtyPositions[t.uid]=t),this._startTicker()}_addAnimation(t){this._isDirtyAnimation=!0,-1===this._animations.indexOf(t)&&this._animations.push(t),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",(()=>{this._isDirty=!0,this._startTicker()}))}eachFrame(t){return this._tickers.push(t),this._startTicker(),new l.ku((()=>{c.removeFirst(this._tickers,t)}))}markDirtyGlobal(t){t||(t=this.container),t.walkChildren((t=>{t instanceof n.W&&this.markDirtyGlobal(t),t.markDirty(),t.markDirtyBounds()}))}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),c.each(this._disposers,(t=>{t.dispose()})),this._inner&&u.removeElement(this._inner),c.remove(L.i_.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(t){if(!0!==this._a11yD){const e=this._readerAlertElement;t=u.stripTags(t),e.innerHTML==t&&(e.innerHTML=""),e.innerHTML=t}}setThemes(t){this._rootContainer.set("themes",t);const e=this.tooltipContainer;e&&e._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const t=this._tooltipContainerSettings,e=this._rootContainer.children.push(n.W.new(this,{position:"absolute",isMeasured:!1,width:S.AQ,height:S.AQ,layer:t?35:30,layerMargin:t||void 0}));this.tooltipContainer=e;const i=v.u.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(t){1!=this._a11yD&&(t.get("focusable")?c.pushOne(this._tabindexes,t):c.remove(this._tabindexes,t),this._invalidateTabindexes())}_unregisterTabindexOrder(t){1!=this._a11yD&&(c.remove(this._tabindexes,t),this._invalidateTabindexes())}_invalidateTabindexes(){if(1==this._a11yD)return;this._tabindexes.sort(((t,e)=>{const i=t.get("tabindexOrder",0),s=e.get("tabindexOrder",0);return i==s?0:i>s?1:-1}));const t=[];c.each(this._tabindexes,((e,i)=>{e.getPrivate("focusElement")?this._moveFocusElement(i,e):this._makeFocusElement(i,e);const s=e.get("focusableGroup");s&&!1!==e.getPrivate("focusable")&&(-1!==t.indexOf(s)?e.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):t.push(s))}))}_updateCurrentFocus(){1!=this._a11yD&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(t,e){if(1==this._a11yD)return;if(e||(e=t.getPrivate("focusElement").dom),!e)return;const i=t.get("role");i?e.setAttribute("role",i):e.removeAttribute("role");const s=t.get("ariaLabel");if(s){const i=(0,C.q)(t,s);e.setAttribute("aria-label",i)}else e.removeAttribute("aria-label");const n=t.get("ariaLive");n?e.setAttribute("aria-live",n):e.removeAttribute("aria-live");const r=t.get("ariaChecked");null!=r&&i&&-1!==["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)?e.setAttribute("aria-checked",r?"true":"false"):e.removeAttribute("aria-checked");const o=t.get("ariaCurrent");null!=o?e.setAttribute("aria-current",o):e.removeAttribute("aria-current");const a=t.get("ariaSelected");null!=a&&i&&-1!==["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)?e.setAttribute("aria-selected",a?"true":"false"):e.removeAttribute("aria-selected"),t.get("ariaHidden")?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden");const h=t.get("ariaOrientation");h?e.setAttribute("aria-orientation",h):e.removeAttribute("aria-orientation");const l=t.get("ariaValueNow");l?e.setAttribute("aria-valuenow",l):e.removeAttribute("aria-valuenow");const c=t.get("ariaValueMin");c?e.setAttribute("aria-valuemin",c):e.removeAttribute("aria-valuemin");const u=t.get("ariaValueMax");u?e.setAttribute("aria-valuemax",u):e.removeAttribute("aria-valuemax");const d=t.get("ariaValueText");d?e.setAttribute("aria-valuetext",d):e.removeAttribute("aria-valuetext");const p=t.get("ariaControls");p?e.setAttribute("aria-controls",p):e.removeAttribute("aria-controls"),t.get("visible")&&0!==t.get("opacity")&&"tooltip"!=t.get("role")&&!t.isHidden()&&!1!==t.getPrivate("focusable")&&(t.height()||t.width())?("-1"!=e.getAttribute("tabindex")&&e.setAttribute("tabindex",""+this.tabindex),e.removeAttribute("aria-hidden")):(e.removeAttribute("tabindex"),e.setAttribute("aria-hidden","true"))}_makeFocusElement(t,e){if(e.getPrivate("focusElement")||1==this._a11yD)return;const i=document.createElement("div");"tooltip"!=e.get("role")&&(i.tabIndex=this.tabindex),i.style.position="absolute",u.setInteractive(i,!1);const s=[];e.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(e),s.push(u.addEventListener(i,"focus",(t=>{this._handleFocus(t)}))),s.push(u.addEventListener(i,"blur",(t=>{this._handleBlur(t)}))),this._moveFocusElement(t,e)}_removeFocusElement(t){if(1==this._a11yD)return;c.remove(this._tabindexes,t);const e=t.getPrivate("focusElement");e&&(this._focusElementContainer.removeChild(e.dom),c.each(e.disposers,(t=>{t.dispose()})))}_hideFocusElement(t){1!=this._a11yD&&(t.getPrivate("focusElement").dom.style.display="none")}_moveFocusElement(t,e){if(1==this._a11yD)return;const i=this._focusElementContainer,s=e.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[t])return;const n=this._focusElementContainer.children[t+1];n?i.insertBefore(s,n):i.append(s)}_positionFocusElement(t){if(1==this._a11yD||null==t)return;this._focusElementContainer.scrollTop=0;const e=t.globalBounds();let i=e.right==e.left?t.width():e.right-e.left,s=e.top==e.bottom?t.height():e.bottom-e.top;const n=void 0!==this._settings.focusPadding?this._settings.focusPadding:2;let r=e.left-n,o=e.top-n;i<0&&(r+=i,i=Math.abs(i)),s<0&&(o+=s,s=Math.abs(s));const a=t.getPrivate("focusElement").dom;a.style.top=o+"px",a.style.left=r+"px",a.style.width=i+2*n+"px",a.style.height=s+2*n+"px"}_getSpriteByFocusElement(t){let e;return c.eachContinue(this._tabindexes,((i,s)=>i.getPrivate("focusElement").dom!==t||(e=i,!1))),e}_handleFocus(t){if(1==this._a11yD)return;const e=this._getSpriteByFocusElement(t.target);e&&(e.isVisibleDeep()?(this._positionFocusElement(e),this._focusedSprite=e,e.events.isEnabled("focus")&&e.events.dispatch("focus",{type:"focus",originalEvent:t,target:e}),-1==e.getPrivate("focusElement").dom.tabIndex&&(this._skipNextGroupJump=!1)):this._focusNext(t.target,this._isShift?-1:1))}_focusNext(t,e,i){if(1==this._a11yD)return;const s=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(",")));let n=s.indexOf(t)+e;n<0?n=s.length-1:n>=s.length&&(n=0);const r=s[n];if(i&&-1==e){const t=this._getSpriteByFocusElement(r);if(t&&t.get("focusableGroup")==i)return void this._focusNext(r,e)}r.focus()}_handleBlur(t){if(1==this._a11yD)return;const e=this._focusedSprite;e&&!e.isDisposed()&&e.events.isEnabled("blur")&&e.events.dispatch("blur",{type:"blur",originalEvent:t,target:e}),this._focusedSprite=void 0}updateTooltip(t){if(1==this._a11yD)return;const e=u.stripTags(t._getText());let i=t.getPrivate("tooltipElement");"tooltip"==t.get("role")&&""!=e?(i||(i=this._makeTooltipElement(t)),i.innerHTML!=e&&(i.innerHTML=e),i.setAttribute("aria-hidden",t.isVisibleDeep()?"false":"true")):i&&(i.remove(),t.removePrivate("tooltipElement"))}_makeTooltipElement(t){const e=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",u.setInteractive(i,!1),this._decorateFocusElement(t,i),e.append(i),t.setPrivate("tooltipElement",i),i}_removeTooltipElement(t){if(1==this._a11yD)return;const e=t.getPrivate("tooltipElement");if(e){const t=e.parentElement;t&&t.removeChild(e)}}_invalidateAccessibility(t){if(1==this._a11yD)return;this._focusElementDirty=!0;const e=t.getPrivate("focusElement");t.get("focusable")?e&&(this._decorateFocusElement(t),this._positionFocusElement(t)):e&&this._removeFocusElement(t)}focused(t){return this._focusedSprite===t}documentPointToRoot(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:(t.x-e.left)*s,y:(t.y-e.top)*n}}rootPointToDocument(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:t.x/s+e.left,y:t.y/n+e.top}}addDisposer(t){return this._disposers.push(t),t}_updateComputedStyles(){const t=window.getComputedStyle(this.dom);let e="";k.each(t,((t,i)=>{R.isString(t)&&t.match(/^font/)&&(e+=i)}));const i=e!=this._fontHash;return i&&(this._fontHash=e),i}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(t){t instanceof n.W?t.children.each((t=>{this._invalidateLabelBounds(t)})):t instanceof r.x&&t.markDirtyBounds()}_hasLicense(){for(let t=0;t{if(t.get("verticalScrollbar"))return r=!0,s=t,!1})),r&&(n=document.createElement("div"),t.setPrivate("htmlElementWrapper",n),t.setPrivate("wrapperContainer",s),n.style.position="absolute",n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",s.events.on("boundschanged",(()=>{this._positionHTMLElement(t)}))),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",u.setInteractive(i,t.get("interactive",!1)),t.events.isEnabled("click")&&(u.setInteractive(i,!0),this._disposers.push(u.addEventListener(i,"click",(e=>{const i=this._renderer.getEvent(e);t.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))),this._positionHTMLElement(t),r?(n.append(i),e.append(n)):e.append(i),c.pushOne(this._htmlEnabledContainers,t),i}_positionHTMLElements(){c.each(this._htmlEnabledContainers,(t=>{this._positionHTMLElement(t)}))}_positionHTMLElement(t){const e=t.getPrivate("htmlElementWrapper");if(e){const i=t.getPrivate("wrapperContainer");if(i){const t=i.globalBounds();e.style.clipPath="rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"}}const i=t.getPrivate("htmlElement");if(i){const e=["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"];c.each(e,(e=>{const s=t.get(e);i.style[e]=s?s+"px":""}));const s=["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"];c.each(s,(e=>{const s=t.get(e);s?"fontSize"!=e||R.isString(s)?i.style[e]=s+"":i.style[e]=s+"px":i.style[e]=""}));const n=t.compositeScale()||1,r=t.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";const o=t.compositeOpacity();setTimeout((()=>{i.style.opacity=o+""}),10);const a=t.isVisibleDeep();a&&(i.style.display="block");let h={x:t.x()+t.get("dx",0),y:t.y()+t.get("dy",0)};t.parent&&(h=t.parent.toGlobal(h)),i.style.top=h.y+"px",i.style.left=h.x+"px";const l=t.get("width"),u=t.get("height");let d=0,p=0;if(l&&(d=t.width()),u&&(p=t.height()),!l||!u){i.style.position="fixed",i.style.width="",i.style.height="";const e=i.getBoundingClientRect();i.style.position="absolute",l||(d=e.width),u||(p=e.height);let s=d/n,r=p/n,o=t.get("centerX",0),a=t.get("centerY",0),h=0,c=0,g=0,f=0;o instanceof S.gG?(h=-o.value*s,c=(1-o.value)*s):(h=-o,c=s-o),a instanceof S.gG?(g=-a.value*r,f=(1-a.value)*r):(g=-a,f=r-a),t._localBounds={left:h,right:c,top:g,bottom:f};let _=t._adjustedLocalBounds,m=t._display.getAdjustedBounds(t._localBounds);t._adjustedLocalBounds=m,_.left===m.left&&_.right===m.right&&_.top===m.top&&_.bottom===m.bottom||t.markDirtyBounds()}d>0&&(i.style.minWidth=d+"px"),p>0&&(i.style.minHeight=p+"px"),a&&0!=o||(i.style.display="none");const g=t.get("centerX",0),f=(0,S.hU)(g)?g.percent+"%":g+"px",_=t.get("centerY",0),m=(0,S.hU)(_)?_.percent+"%":_+"px";(g||_)&&(i.style.transform="translate(-"+f+", -"+m+")"+i.style.transform),1!=n&&(i.style.transform+="scale("+n+")"),0!=r&&(i.style.transform+=" rotate("+r+"deg)"),""!=i.style.transform&&(i.style.transformOrigin=f+" "+m)}}_setHTMLContent(t,e){let i=t.getPrivate("htmlElement");i||(i=this._makeHTMLElement(t),this.autoResize||this.resize()),i.innerHTML!=e&&(i.innerHTML=e)}_removeHTMLContent(t){const e=t.getPrivate("htmlElementWrapper"),i=t.getPrivate("htmlElement");e?(this._htmlElementContainer.removeChild(e),t.removePrivate("htmlElement"),t.removePrivate("htmlElementWrapper"),t.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),t.removePrivate("htmlElement"),t.removePrivate("wrapperContainer")),c.remove(this._htmlEnabledContainers,t)}}},3409:function(t,e,i){"use strict";i.d(e,{Q:function(){return o}});var s=i(5769),n=i(3540),r=i(5071);class o{constructor(t,e){if(this._rules={},this._root=t,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(t){const e=new this(t,!0);return e.setupDefaultRules(),e}setupDefaultRules(){}_lookupRules(t){return this._rules[t]}ruleRaw(t,e=[]){let i=this._rules[t];i||(i=this._rules[t]=[]),e.sort(n.qu);const{index:o,found:a}=r.getSortedIndex(i,(t=>{const i=n.qu(t.tags.length,e.length);return 0===i?n.wq(t.tags,e,n.qu):i}));if(a)return i[o].template;{const t=s.YS.new({});return i.splice(o,0,{tags:e,template:t}),t}}rule(t,e=[]){return this.ruleRaw(t,e)}}},5108:function(t,e,i){"use strict";i.d(e,{g:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){const t=this.get("sprite");t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}}n.className="Bullet",n.classNames=s.JH.classNames.concat([n.className])},8054:function(t,e,i){"use strict";i.d(e,{z:function(){return o}});var s=i(3497),n=i(8777),r=i(7652);class o extends n.W{_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",s.c.new(this._root,{themeTags:r.mergeTags(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const t=this._prevSettings.icon,e=this.get("icon");e!==t&&(this._disposeProperty("icon"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.icon=e)}if(this.isDirty("label")){const t=this._prevSettings.label,e=this.get("label");e!==t&&(this._disposeProperty("label"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.label=e)}}}o.className="Button",o.classNames=n.W.classNames.concat([o.className])},1337:function(t,e,i){"use strict";i.d(e,{k:function(){return r}});var s=i(8777),n=i(6245);class r extends s.W{constructor(){super(...arguments),this.chartContainer=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,interactiveChildren:!1})),this.bulletsContainer=s.W.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:n.AQ,height:n.AQ})}}r.className="Chart",r.classNames=s.W.classNames.concat([r.className])},8035:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,Math.abs(this.get("radius",10)))}}n.className="Circle",n.classNames=s.T.classNames.concat([n.className])},9361:function(t,e,i){"use strict";i.d(e,{w:function(){return c},z:function(){return l}});var s=i(7582),n=i(6331),r=i(8777),o=i(9582),a=i(5071),h=i(256);class l extends n.Zr{constructor(t,e,i){super(i),this.dataContext=e,this.component=t,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(t){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,t)}hide(t){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,t)}isHidden(){return!this.get("visible")}}class c extends r.W{constructor(){super(...arguments),this._data=new o.k,this._dataItems=[],this._mainDataItems=this._dataItems,this.valueFields=[],this.fields=["id"],this._valuesDirty=!1,this._dataChanged=!1,this._dataGrouped=!1,this.inited=!1}set data(t){t.incrementRef(),this._data.decrementRef(),this._data=t}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((t=>{const e=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===t.type)a.each(e,(t=>{t.dispose()})),e.length=0,this._onDataClear();else if("push"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.push(i),this.processDataItem(i)}else if("setIndex"===t.type){const i=e[t.index],s=this._makeDataItem(t.newValue);i.bullets&&0==i.bullets.length&&(i.bullets=void 0),h.entries(s).forEach((([t,e])=>{i.get(t)!=e&&i.animate({key:t,to:e,duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})})),i.dataContext=t.newValue}else if("insertIndex"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.splice(t.index,0,i),this.processDataItem(i)}else if("removeIndex"===t.type)e[t.index].dispose(),e.splice(t.index,1);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");{const i=e[t.oldIndex];e.splice(t.oldIndex,1),e.splice(t.newIndex,0,i)}}this._afterDataChange()})))}_postUpdateData(){}updateData(t){let e=0;a.each(t,((t,i)=>{const s=this.dataItems[i];if(s){const e=s.dataContext;e&&h.entries(t).forEach((([t,i])=>{e[t]=i}));const i=this._makeDataItem(e);h.entries(i).forEach((([t,e])=>{var i;if(s.get(t)!=e){s.set(t,e);const n=null===(i=this._valueFieldsF[t])||void 0===i?void 0:i.workingKey;n&&s.set(n,e)}}))}else this.data.push(t);e=i}));for(let t=this.dataItems.length-1;t>e;t--){const e=this.dataItems[t];a.remove(this.dataItems,e),e.dispose()}this._postUpdateData()}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},a.each(this.valueFields,(t=>{this.get(t+"Field")&&(this._valueFields.push(t),this._valueFieldsF[t]={fieldKey:t+"Field",workingKey:t+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},a.each(this.fields,(t=>{this.get(t+"Field")&&(this._fields.push(t),this._fieldsF[t]=t+"Field")})))}get dataItems(){return this._dataItems}processDataItem(t){}_makeDataItem(t){const e={};return this._valueFields&&a.each(this._valueFields,(i=>{const s=this.get(this._valueFieldsF[i].fieldKey);e[i]=t[s],e[this._valueFieldsF[i].workingKey]=e[i]})),this._fields&&a.each(this._fields,(i=>{const s=this.get(this._fieldsF[i]);e[i]=t[s]})),e}makeDataItem(t,e){let i=new l(this,e,t);return this.processDataItem(i),i}pushDataItem(t,e){const i=this.makeDataItem(t,e);return this._mainDataItems.push(i),i}disposeDataItem(t){}showDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!0)}))}hideDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const t="datavalidated";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this._dataChanged=!1}if(this._valuesDirty){const t="valueschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.inited=!0}markDirtyValues(t){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}getDataItemById(t){return a.find(this.dataItems,(e=>e.get("id")==t))}}c.className="Component",c.classNames=r.W.classNames.concat([c.className])},2936:function(t,e,i){"use strict";i.d(e,{p:function(){return r}});var s=i(8054),n=i(7652);class r extends s.z{_afterNew(){super._afterNew(),this.addTag("confirm"),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{const e=n.getEventKey(t);this.get("active")&&"Escape"==e&&this._cancel()}))),this._disposers.push(n.addEventListener(document,"click",(()=>{this._ignoreClick||this._cancel(),this._ignoreClick=!1}))),this.events.on("click",(()=>{this.get("active")||(this._ignoreClick=!0),this._confirm()}))}_cancel(){this.get("active")&&(this.events.dispatch("cancelled",{type:"cancelled",target:this}),this.set("active",!1))}_confirm(){this.get("active")&&(this.events.dispatch("confirmed",{type:"confirmed",target:this}),this.set("active",!1),this.isFocus()&&this.setTimeout((()=>{this.set("active",!1),n.blur()}),10))}_prepareChildren(){super._prepareChildren()}}r.className="ConfirmButton",r.classNames=s.z.classNames.concat([r.className])},8777:function(t,e,i){"use strict";i.d(e,{W:function(){return f}});var s=i(7144),n=i(5071);class r extends s.aV{constructor(t){super(),this._disposed=!1,this._container=t,this._events=this.events.onAll((t=>{if("clear"===t.type)n.each(t.oldValues,(t=>{this._onRemoved(t)}));else if("push"===t.type)this._onInserted(t.newValue);else if("setIndex"===t.type)this._onRemoved(t.oldValue),this._onInserted(t.newValue,t.index);else if("insertIndex"===t.type)this._onInserted(t.newValue,t.index);else if("removeIndex"===t.type)this._onRemoved(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");this._onRemoved(t.value),this._onInserted(t.value,t.newIndex)}}))}_onInserted(t,e){t._setParent(this._container,!0);const i=this._container._childrenDisplay;void 0===e?i.addChild(t._display):i.addChildAt(t._display,e)}_onRemoved(t){this._container._childrenDisplay.removeChild(t._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),n.each(this.values,(t=>{t.dispose()})))}}var o=i(6245),a=i(4596),h=i(7142),l=i(4431),c=i(1706),u=i(6881),d=i(2132),p=i(5040),g=i(7652);class f extends a.j{constructor(){super(...arguments),this._display=this._root._renderer.makeContainer(),this._childrenDisplay=this._root._renderer.makeContainer(),this.children=new r(this),this._percentageSizeChildren=[],this._percentagePositionChildren=[],this._prevWidth=0,this._prevHeight=0,this._contentWidth=0,this._contentHeight=0,this._childrenPrep=!1,this._childrenUpdt=!1}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){n.eachReverse(this.allChildren(),(t=>{t.dispose()})),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_beforeChanged(){this._childrenPrep||this._prepareChildren(),this._childrenUpdt||this._updateChildren(),super._beforeChanged()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each((t=>{t.removePrivate("x"),t.removePrivate("y")}))),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each((t=>{t.markDirtyPosition()})),this.isDirty("maskContent")){const t=this._childrenDisplay;let e=this._contentMask;this.get("maskContent")?e||(e=h.A.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=e,t.addChildAt(e._display,0),t.mask=e._display):e&&(t.removeChild(e._display),t.mask=null,e.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),n.each(this._percentageSizeChildren,(t=>{t._updateSize()})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t._updateSize()})),this.updateBackground()}updateBackground(){const t=this.get("background");let e=this._localBounds;if(e&&!this.isHidden()){let i=e.left,s=e.top,n=e.right-i,r=e.bottom-s,o=this.get("maxWidth"),a=this.get("maxHeight");a&&r>a&&(r=a),o&&n>o&&(n=o);let h=this.width(),l=this.height();t&&(t.setAll({width:n,height:r,x:i,y:s}),this._display.interactive&&(t._display.interactive=!0));const c=this._contentMask;c&&c.setAll({width:h+1,height:l+1});const u=this.get("verticalScrollbar");if(u){u.set("height",l),u.set("x",h-u.width()-u.get("marginRight",0)),u.set("end",u.get("start",0)+l/this._contentHeight);const t=u.get("background");t&&t.setAll({width:u.width(),height:l});let e=!0;this._contentHeight<=l&&(e=!1),u.setPrivate("visible",e)}}}_applyThemes(t=!1){return!!super._applyThemes(t)&&(this.eachChildren((e=>{e._applyThemes(t)})),!0)}_applyState(t){super._applyState(t),this.get("setStateOnChildren")&&this.eachChildren((e=>{e.states.apply(t)}))}_applyStateAnimated(t,e){super._applyStateAnimated(t,e),this.get("setStateOnChildren")&&this.eachChildren((i=>{i.states.applyAnimate(t,e)}))}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let t=this._localBounds;t&&(this._contentWidth=t.right-t.left,this._contentHeight=t.bottom-t.top)}else{let t=this.get("width"),e=this.get("height"),i=this.getPrivate("width"),s=this.getPrivate("height"),n={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),o=!1,a=!1;if((r instanceof l.G||r instanceof u.M)&&(o=!0),r instanceof c.Z&&(a=!0),null==t&&null==i||null==e&&null==s||this.get("verticalScrollbar")){let t=Number.MAX_VALUE,e=t,i=-t,s=t,r=-t;const h=this.get("paddingLeft",0),l=this.get("paddingTop",0),c=this.get("paddingRight",0),u=this.get("paddingBottom",0);this.children.each((t=>{if("absolute"!=t.get("position")&&t.get("isMeasured")){let n=t.adjustedLocalBounds(),h=t.x(),l=t.y(),c=h+n.left,u=h+n.right,d=l+n.top,p=l+n.bottom;o&&(c-=t.get("marginLeft",0),u+=t.get("marginRight",0)),a&&(d-=t.get("marginTop",0),p+=t.get("marginBottom",0)),ci&&(i=u),dr&&(r=p)}})),e==t&&(e=0),i==-t&&(i=0),s==t&&(s=0),r==-t&&(r=0),n.left=e-h,n.top=s-l,n.right=i+c,n.bottom=r+u;const d=this.get("minWidth");p.isNumber(d)&&d>0&&n.right-n.left=d?n.left=n.right-d:n.right=n.left+d);const g=this.get("minHeight");p.isNumber(g)&&g>0&&n.bottom-n.top=g?n.top=n.bottom-g:n.bottom=n.top+g)}this._contentWidth=n.right-n.left,this._contentHeight=n.bottom-n.top,p.isNumber(t)&&(n.left=0,n.right=t),p.isNumber(i)&&(n.left=0,n.right=i),p.isNumber(e)&&(n.top=0,n.bottom=e),p.isNumber(s)&&(n.top=0,n.bottom=s),this._localBounds=n}}_updateBounds(){const t=this.get("layout");t&&t.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){this._childrenPrep=!0;const t=this.innerWidth(),e=this.innerHeight();if(t!=this._prevWidth||e!=this._prevHeight){let i=this.get("layout"),s=!1,r=!1;i&&((i instanceof l.G||i instanceof u.M)&&(s=!0),i instanceof c.Z&&(r=!0)),n.each(this._percentageSizeChildren,(i=>{if(!s){let e=i.get("width");e instanceof o.gG&&i.setPrivate("width",e.value*t)}if(!r){let t=i.get("height");t instanceof o.gG&&i.setPrivate("height",t.value*e)}})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t.markDirtyBounds()})),this._prevWidth=t,this._prevHeight=e,this._sizeDirty=!0,this.updateBackground()}}_updateHTMLContent(){const t=this.get("html","");t&&""!==t?this._root._setHTMLContent(this,(0,d.q)(this,t)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(t){const e=this.get("verticalScrollbar");if(e){let i=t.y(),s=this.innerHeight(),n=t.height(),r=this._contentHeight,o=1-(s-n/2)/r;if(i+.7*n+this._childrenDisplay.y>s||i-.3*n+this._childrenDisplay.y<0){let t=Math.max(0,Math.min(o,(i-n/2)/r));e.animate({key:"start",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")})}}}_updateChildren(){if(this._childrenUpdt=!0,this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){const t=this.get("verticalScrollbar");if(t){t._setParent(this),t.startGrip.setPrivate("visible",!1),t.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",t.width()+t.get("marginRight",0)+t.get("marginLeft",0));let e=this.get("background");e||(e=this.set("background",h.A.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",(e=>{const i=e.originalEvent;if(!g.isLocalEvent(i,this))return;i.preventDefault();let s=i.deltaY/5e3;const n=t.get("start",0),r=t.get("end",1);n+s<=0&&(s=-n),r+s>=1&&(s=1-r),n+s>=0&&r+s<=1&&(t.set("start",n+s),t.set("end",r+s))})),this._disposers.push(this._vsbd0),this._vsbd1=t.events.on("rangechanged",(()=>{let e=this._contentHeight;const i=this._childrenDisplay,s=this._contentMask;i.y=-t.get("start",0)*e,i.markDirtyLayer(),s&&(s._display.y=-i.y,i.mask=s._display)})),this._disposers.push(this._vsbd1),this._display.addChild(t._display)}else{const t=this._prevSettings.verticalScrollbar;t&&(this._display.removeChild(t._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose(),this._childrenDisplay.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0))}}if(this.isDirty("background")){const t=this._prevSettings.background;t&&this._display.removeChild(t._display);const e=this.get("background");e instanceof a.j&&(e.set("isMeasured",!1),e._setParent(this),this._display.addChildAt(e._display,0))}if(this.isDirty("mask")){const t=this.get("mask"),e=this._prevSettings.mask;if(e&&(this._display.removeChild(e._display),e!=t&&e.dispose()),t){const e=t.parent;e&&e.children.removeValue(t),t._setParent(this),this._display.addChildAt(t._display,0),this._childrenDisplay.mask=t._display}}}_processTemplateField(){super._processTemplateField(),this.children.each((t=>{t._processTemplateField()}))}walkChildren(t){this.children.each(((e,i)=>{e instanceof f&&e.walkChildren(t),t(e,i)}))}eachChildren(t){const e=this.get("background");e&&t(e);const i=this.get("verticalScrollbar");i&&t(i);const s=this.get("mask");s&&t(s),this.children.values.forEach((e=>{t(e)}))}allChildren(){const t=[];return this.eachChildren((e=>{t.push(e)})),t}_setDataItem(t){const e=t!==this._dataItem;super._setDataItem(t);const i=this.get("html","");i&&""!==i&&e&&this._root._setHTMLContent(this,(0,d.q)(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}}f.className="Container",f.classNames=a.j.classNames.concat([f.className])},6691:function(t,e,i){"use strict";i.d(e,{Y:function(){return d}});var s=i(962),n=i(8777),r=i(3497),o=i(6245),a=i(1112),h=i(7449),l=i(7652),c=i(5040),u=i(5071);class d extends s._{_afterNew(){super._afterNew();const t=this.children.push(n.W.new(this._root,{html:'',isMeasured:!1}));t.hide(),this.setPrivate("input",t);let e=this.get("background");e?e.set("themeTags",["editablelabel","background"]):e=this.set("background",r.c.new(this._root,{themeTags:["editablelabel","background"]}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();const t=this.get("editOn","click");"none"!=t&&(this._editOnEvents=new h.FV([this.getPrivate("input").events.on(t,(t=>{})),this.events.on(t,(t=>{this.set("active",!0)}))]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){const t=this.get("active",!1);t?this._startEditing():this._stopEditing();const e=this.get("background");e&&e.set("active",t)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){const t=this.getPrivate("input");if(t&&t.getPrivate("htmlElement")){const e=t.getPrivate("htmlElement").querySelector(".am5-editable-label");e&&(this.setPrivate("textarea",e),e.addEventListener("input",(t=>{!1===this.get("multiLine")&&(e.value=e.value.replace(/\n/g," ")),this.set("text",e.value),this._syncStyle()})),e.addEventListener("blur",(t=>this.set("active",!1))),l.supports("keyboardevents")&&this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Escape"==l.getEventKey(t)&&this.set("active",!1)}))),this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Enter"==l.getEventKey(t)&&!1===this.get("multiLine")&&(t.preventDefault(),this.set("active",!1))}))),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._startEditing()}));this._text.set("opacity",0);const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(""==this.get("text","")&&this.set("text"," "),t.show(0),this.setTimeout((()=>{this._syncStyle(),e.focus()}),100))}_stopEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._stopEditing()}));const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(this.set("text",e.value),t.hide(0),this._text.set("opacity",1))}_syncStyle(){const t=this.getPrivate("input"),e=this.getPrivate("textarea"),i=t.getPrivate("htmlElement");if(e&&i){const t=window.getComputedStyle(e);u.each(t,(t=>{e.style[t]="initial"})),e.style.color=this.get("fill",(0,a.$_)(0)).toCSS(this.get("fillOpacity",1)),e.style.backgroundColor="rgba(0, 0, 0, 0)",e.style.border="none",e.style.outline="none",e.style.padding="0",e.wrap="off",e.style.resize="none",e.style.overflow="hidden";const s=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);s>0?e.style.maxWidth=s+"px":e.style.minWidth="",e.style.height="auto",e.style.minHeight=e.scrollHeight+"px",this.get("width")&&(e.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",e.style.minWidth="");const n=this.get("lineHeight");n?n instanceof o.gG?e.style.lineHeight=n.value+"":c.isNumber(n)&&(e.style.lineHeight=n+""):e.style.lineHeight="1.2";let r=this.get("fontFamily");r||(r=getComputedStyle(i,"font-family").getPropertyValue("font-family")),e.style.fontFamily=r;let h=this.get("fontSize");h?c.isNumber(h)&&(h+="px"):h=getComputedStyle(i,"font-size").getPropertyValue("font-size"),e.style.fontSize=h;let l=this.get("fontWeight");l||(l=getComputedStyle(i,"font-weight").getPropertyValue("font-weight")),e.style.fontWeight=l;let d=this.get("fontStyle");d||(d=getComputedStyle(i,"font-style").getPropertyValue("font-style")),e.style.fontStyle=d;const p=this.get("oversizedBehavior");e.style.whiteSpace="wrap"==p?"pre-wrap":"nowrap",this._root.events.on("frameended",(()=>{""==e.style.minWidth&&(e.style.minWidth=e.scrollWidth+20+"px");const t=this.get("textAlign","start");"center"==t?(e.style.textAlign="center",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-50%)")):"end"==t?(e.style.textAlign="right",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-100%)")):e.style.textAlign=t}))}}_syncText(){const t=this.getPrivate("textarea");let e=this.get("text","");" "==e&&(e=""),t&&(t.value=e)}}d.className="EditableLabel",d.classNames=s._.classNames.concat([d.className])},2433:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radiusX")||this.isDirty("radiusY")||this.isDirty("rotation"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawEllipse(0,0,Math.abs(this.get("radiusX")),Math.abs(this.get("radiusY")))}}n.className="Ellipse",n.classNames=s.T.classNames.concat([n.className])},1479:function(t,e,i){"use strict";i.d(e,{T:function(){return l},u:function(){return h}});var s=i(4429),n=i(4596),r=i(4680),o=i(5040),a=i(5071);const h=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"];class l extends n.j{constructor(){super(...arguments),this._display=this._root._renderer.makeGraphics(),this._clear=!1}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const t=this.get("fillGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("fill")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("fill")}))))}}if(this.isDirty("strokeGradient")){const t=this.get("strokeGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("stroke")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("stroke")}))))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let t=this.get("strokeDasharray");o.isNumber(t)&&(t=t<.5?[0]:[t]),this._display.setLineDash(t);const e=this.get("strokeDashoffset");e&&this._display.setLineDashOffset(e);const i=this.get("blendMode",r.b.NORMAL);this._display.blendMode=i;const s=this.get("draw");s&&"function"==typeof s&&s(this._display,this);const n=this.get("svgPath");null!=n&&this._display.svgPath(n)}}_afterChanged(){if(super._afterChanged(),this._clear){const t=this.get("fill"),e=this.get("fillGradient"),i=this.get("fillPattern"),n=this.get("fillOpacity"),r=this.get("stroke"),o=this.get("strokeGradient"),h=this.get("strokePattern"),l=this.get("shadowColor"),c=this.get("shadowBlur"),u=this.get("shadowOffsetX"),d=this.get("shadowOffsetY"),p=this.get("shadowOpacity");if(l&&(c||u||d)&&this._display.shadow(l,c,u,d,p),t&&!e&&(this._display.beginFill(t,n),this._display.endFill()),e){if(t){const i=e.get("stops",[]);i.length&&a.each(i,(e=>{e.color&&!e.colorInherited||!t||(e.color=t,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=n,e.opacityInherited=!0)}))}const i=e.getFill(this);i&&(this._display.beginFill(i,n),this._display.endFill())}if(i){const t=i.pattern;t&&(this._display.beginFill(t,n),this._display.endFill(),i instanceof s.v&&i.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}if(r||o||h){const t=this.get("strokeOpacity");let e=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(e/=this.get("scale",1)),this.get("crisp")&&(e/=this._root._renderer.resolution);const i=this.get("lineJoin"),n=this.get("lineCap");if(r&&!o&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke()),o){const s=o.get("stops",[]);s.length&&a.each(s,(e=>{e.color&&!e.colorInherited||!r||(e.color=r,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=t,e.opacityInherited=!0)}));const h=o.getFill(this);h&&(this._display.lineStyle(e,h,t,i,n),this._display.endStroke())}if(h){let r=h.pattern;r&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke(),h instanceof s.v&&h.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}l.className="Graphics",l.classNames=n.j.classNames.concat([l.className])},6881:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var s=i(2010),n=i(5071),r=i(751);class o extends s.A{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(t){let e=t.get("paddingLeft",0),i=t.get("paddingRight",0),n=t.get("paddingTop",0),o=t.maxWidth()-e-i,a=o,h=1;(0,s.j)(t,(t=>{if(t.get("visible")&&t.getPrivate("visible")&&!t.get("forceHidden")&&"absolute"!=t.get("position")){let e=t.width();eh&&(h=e)}})),a=r.fitToRange(a,1,o),h=r.fitToRange(h,1,o);let l=1;l=this.get("fixedWidthGrid")?o/h:o/a,l=Math.max(1,Math.floor(l)),l=Math.min(this.get("maxColumns",Number.MAX_VALUE),l);let c=this.getColumnWidths(t,l,h,o),u=n,d=0,p=0;l=c.length;let g=e;(0,s.j)(t,(t=>{if("relative"==t.get("position")&&t.isVisible()){const i=t.get("marginTop",0),s=t.get("marginBottom",0);let n=t.adjustedLocalBounds(),r=t.get("marginLeft",0),o=t.get("marginRight",0),a=g+r-n.left,h=u+i-n.top;t.setPrivate("x",a),t.setPrivate("y",h),g+=c[d]+o,p=Math.max(p,t.height()+i+s),d++,d>=l&&(d=0,g=e,u+=p,p=0)}}))}getColumnWidths(t,e,i,r){let o=0,a=[],h=0;return(0,s.j)(t,(s=>{let n=s.adjustedLocalBounds();"absolute"!=s.get("position")&&s.isVisible()&&(this.get("fixedWidthGrid")?a[h]=i:a[h]=Math.max(0|a[h],n.right-n.left+s.get("marginLeft",0)+s.get("marginRight",0)),h{o+=t})),o>r?e>2?(e-=1,this.getColumnWidths(t,e,i,r)):[r]:a}}o.className="GridLayout",o.classNames=s.A.classNames.concat([o.className])},4431:function(t,e,i){"use strict";i.d(e,{G:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingLeft",0),i=t.innerWidth(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minWidth",t.getPrivate("minWidth",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.width()),i-=e+t.get("marginLeft",0)+t.get("marginRight",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginLeft",0)-t.get("marginRight",0),n=t.get("minWidth",t.getPrivate("minWidth",-1/0)),r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("width",s)}else t._prevSettings.width instanceof r.gG&&t.setPrivate("width",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginLeft",0),s=t.get("marginRight",0),n=t.get("maxWidth"),r=e.left,o=e.right;n&&o-r>n&&(o=r+n);let h=a+i-r;t.setPrivate("x",h),a=h+o+s}else t.setPrivate("x",void 0)}))}}o.className="HorizontalLayout",o.classNames=s.A.classNames.concat([o.className])},962:function(t,e,i){"use strict";i.d(e,{_:function(){return h}});var s=i(2036),n=i(6245),r=i(8777),o=i(5071),a=i(5040);class h extends r.W{constructor(){super(...arguments),this._textKeys=["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),o.each(this._textKeys,(t=>{const e=this.get(t);null!=e&&this._text.set(t,e)})),""!==this.get("html","")&&this._text.set("text",""),this.onPrivate("maxWidth",(()=>{this._setMaxDimentions()})),this.onPrivate("maxHeight",(()=>{this._setMaxDimentions()}))}_makeText(){this._text=this.children.push(s.x.new(this._root,{}))}_updateChildren(){super._updateChildren();const t=this._text;if(o.each(this._textKeys,(t=>{this._text.set(t,this.get(t))})),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),""!==this.get("html","")?t.set("text",""):(t.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){const e=this.get("textAlign");let i;null!=this.get("width")?i="right"==e?n.AQ:"center"==e?n.CI:0:"left"==e||"start"==e?i=this.get("paddingLeft",0):"right"!=e&&"end"!=e||(i=-this.get("paddingRight",0)),t.set("x",i)}const e=this.get("background");e&&e.setPrivate("visible",t._display.textVisible)}_maybeUpdateHTMLColor(){const t=this.getPrivate("htmlElement");t&&this.get("fill")&&(t.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){const t=this.get("rotation"),e=90==t||270==t||-90==t,i=this._text,s=this.get("maxWidth",this.getPrivate("maxWidth",1/0));a.isNumber(s)?i.set(e?"maxHeight":"maxWidth",s-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(e?"maxHeight":"maxWidth",void 0);const n=this.get("maxHeight",this.getPrivate("maxHeight",1/0));a.isNumber(n)?i.set(e?"maxWidth":"maxHeight",n-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(e?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",(()=>{i.markDirtyBounds()}))}_setDataItem(t){super._setDataItem(t),this._markDirtyKey("text"),this._markDirtyKey("html");const e=this._text;e.get("populateText")&&e.markDirtyText();const i=this.get("html");i&&""!==i&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}}h.className="Label",h.classNames=r.W.classNames.concat([h.className])},2010:function(t,e,i){"use strict";i.d(e,{A:function(){return r},j:function(){return n}});var s=i(6331);function n(t,e){t.get("reverseChildren",!1)?t.children.eachReverse(e):t.children.each(e)}class r extends s.JH{}r.className="Layout",r.classNames=s.JH.classNames.concat([r.className])},3105:function(t,e,i){"use strict";i.d(e,{D:function(){return c}});var s=i(3399),n=i(8777),r=i(962),o=i(3497),a=i(5769),h=i(7144),l=i(7652);class c extends s.F{constructor(){super(...arguments),this.itemContainers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:o.c.new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template])))),this.markers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template])))),this.labels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template])))),this.valueLabels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template])))),this.markerRectangles=this.addDisposer(new h.o(a.YS.new({}),(()=>o.c._new(this._root,{themeTags:l.mergeTags(this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template]))))}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(t){const e=this.children.push(this.itemContainers.make());return e._setDataItem(t),this.itemContainers.push(e),e.states.create("disabled",{}),e}makeMarker(){const t=this.markers.make();return this.markers.push(t),t.states.create("disabled",{}),t}makeLabel(){const t=this.labels.make();return t.states.create("disabled",{}),t}makeValueLabel(){const t=this.valueLabels.make();return t.states.create("disabled",{}),t}makeMarkerRectangle(){const t=this.markerRectangles.make();return t.states.create("disabled",{}),t}processDataItem(t){super.processDataItem(t);const e=this.makeItemContainer(t),i=this.get("nameField"),s=this.get("fillField"),n=this.get("strokeField");if(e){const r=this.get("clickTarget","itemContainer"),o=t.dataContext;o&&o.set&&o.set("legendDataItem",t),e._setDataItem(t),t.set("itemContainer",e);const a=this.makeMarker();if(a){e.children.push(a),a._setDataItem(t),t.set("marker",a);const i=this.get("useDefaultMarker"),r=a.children.push(this.makeMarkerRectangle());let h=t.get("fill"),l=t.get("stroke");t.set("markerRectangle",r),o&&o.get&&(h=o.get(s,h),l=o.get(n,l)),l||(l=h),i?o.on&&(o.on(s,(()=>{r.set("fill",o.get(s))})),o.on(n,(()=>{r.set("stroke",o.get(n))}))):o&&o.createLegendMarker&&o.createLegendMarker(),r.setAll({fill:h,stroke:l});const c=o.component;c&&c.updateLegendMarker&&c.updateLegendMarker(o)}const h=this.makeLabel();if(h){e.children.push(h),h._setDataItem(t),t.set("label",h),h.text.on("text",(()=>{e.setRaw("ariaLabel",h.text._getText()+("none"!==this.get("clickTarget")?"; "+this._t("Press ENTER to toggle"):"")),e.markDirtyAccessibility()})),o&&o.get&&t.set("name",o.get(i));let s=t.get("name");s&&h.set("text",s)}const l=this.makeValueLabel();if(l&&(e.children.push(l),l._setDataItem(t),t.set("valueLabel",l)),o&&o.show&&(o.on("visible",(t=>{e.set("disabled",!t)})),o.get("visible")||e.set("disabled",!0),"none"!=r)){let i=e;"marker"==r&&(i=a),this._addClickEvents(i,o,t)}this.children.values.sort(((t,e)=>{const i=t.dataItem.dataContext,s=e.dataItem.dataContext;if(i&&s){const t=this.data.indexOf(i),e=this.data.indexOf(s);if(t>e)return 1;if(t{const t=e.component;t&&t.hoverDataItem&&t.hoverDataItem(e)})),t.events.on("pointerout",(()=>{const t=e.component;t&&t.hoverDataItem&&t.unhoverDataItem(e)})),t.events.on("click",(()=>{const s=i.get("label").text._getText();e.show&&e.isHidden&&(e.isHidden()||!1===e.get("visible"))?(e.show(),t.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,s))):e.hide&&(e.hide(),t.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,s)))}))}disposeDataItem(t){super.disposeDataItem(t);const e=t.dataContext;e&&e.get&&e.get("legendDataItem")==t&&e.set("legendDataItem",void 0);let i=t.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let s=t.get("marker");s&&(this.markers.removeValue(s),s.dispose());let n=t.get("markerRectangle");n&&(this.markerRectangles.removeValue(n),n.dispose());let r=t.get("label");r&&(this.labels.removeValue(r),r.dispose());let o=t.get("valueLabel");o&&(this.valueLabels.removeValue(o),o.dispose())}}c.className="Legend",c.classNames=s.F.classNames.concat([c.className])},2077:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var s=i(1479);function n(t,e){for(let i=0,s=e.length;i0){let e=s[0];if(e.length>0){let i=e[0];t.moveTo(i.x,i.y);for(let e=0,i=s.length;e0){let e=t[0];this._display.moveTo(e.x,e.y),n(this._display,[[t]])}else if(e)n(this._display,e);else if(!this.get("draw")){let t=this.width(),e=this.height();this._display.moveTo(0,0),this._display.lineTo(t,e)}}}}o.className="Line",o.classNames=s.T.classNames.concat([o.className])},5812:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var s=i(8777),n=i(941),r=i(6387),o=i(751);class a extends s.W{constructor(){super(...arguments),this.line=this.children.push(r.P.new(this._root,{themeTags:["line"]})),this.hitLine=this.children.push(r.P.new(this._root,{themeTags:["hit"]})),this.startArrow=this.children.push(n.C.new(this._root,{themeTags:["start","arrow"]})),this.endArrow=this.children.push(n.C.new(this._root,{themeTags:["end","arrow"]}))}_afterNew(){this.addTag("link"),super._afterNew()}_updateChildren(){if(super._updateChildren(),this.isDirty("points")){let t=r.P.makeOrthogonal(this.get("points",[]));this.line.set("points",t),this.hitLine.set("points",t);const e=this.startArrow,i=this.endArrow,s=t.length;if(s>1){const[n,r]=t;e.setAll({x:n.x,y:n.y,rotation:o.getAngle(n,r)-90});const a=t[s-1],h=t[s-2];i.setAll({x:a.x,y:a.y,rotation:o.getAngle(h,a)+90})}else if(1===s){const[s]=t;e.setAll({x:s.x,y:s.y,rotation:0}),i.setAll({x:s.x,y:s.y,rotation:0})}}}}a.className="Link",a.classNames=s.W.classNames.concat([a.className])},8289:function(t,e,i){"use strict";i.d(e,{G:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){return function(e){return new s(e,t)}}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(s+a,n+a*e,r-a,o-a*i,r,o)}},5892:function(t,e,i){"use strict";i.d(e,{$:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){[t,e]=[e,t];let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){function e(e){return new s(e,t)}return e.tension=function(t){return n(+t)},e}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(n+a*e,s+a,o-a*i,r-a,o,r)}},7049:function(t,e,i){"use strict";i.d(e,{l:function(){return h}});var s=i(8777),n=i(6691),r=i(7142),o=i(941),a=i(1112);class h extends s.W{constructor(){super(...arguments),this.label=this.children.push(n.Y.new(this._root,{})),this.buttonsContainer=this.children.push(s.W.new(this._root,{themeTags:["buttons"]})),this.upButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["upbutton"]})),this.downButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["downbutton"]}))}_afterNew(){this.addTag("numericstepper"),this.set("layout",this._root.horizontalLayout),this.label.adapters.add("text",(t=>(t&&t.replace(/\D/g,""),""===t&&(t="0"),t))),this.set("background",r.A.new(this._root,{fillOpacity:0,fill:(0,a.$_)(16777215)})),this.buttonsContainer.states.create("hidden",{opacity:0,visible:!0}),this.events.on("pointerover",(()=>{this.buttonsContainer.set("active",!0)})),this.events.on("pointerout",(()=>{this.buttonsContainer.set("active",!1)})),this.label.on("text",(t=>{if(t){const e=parseFloat(t);isNaN(e)||this.set("value",e)}})),this.upButton.events.on("click",(()=>{this.set("value",this.get("value",0)+1)})),this.downButton.events.on("click",(()=>{this.set("value",Math.max(0,this.get("value",0)-1))})),super._afterNew()}_updateChildren(){super._updateChildren();const t=this.get("value",0),e=this.label;if(this.isDirty("value")&&e.set("text",t.toString()),this.isDirty("disabled")){const t=this.get("disabled",!1);this.set("interactive",!t),this.upButton.set("interactive",!t),this.downButton.set("interactive",!t),t?(this.label.set("editOn","none"),this.buttonsContainer.hide(0)):(this.label.set("editOn","click"),this.buttonsContainer.show(0))}}}h.className="NumericStepper",h.classNames=s.W.classNames.concat([h.className])},6387:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),this.isDirty("points")&&(this._clear=!0)}static makeOrthogonal(t){if(t.length>1){const e=[];for(let i=0;i0&&o&&l){if(h){s=Math.min(s,Math.abs(r.x-o.x)/2,Math.abs(r.y-n.y)/2);const e=Math.sign(r.y-n.y);t.lineTo(r.x,r.y-s*e);const i=o.x{this._display.image=e,this._updateSize(),!i.isDisposed()&&i.isEnabled("loaded")&&i.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{!i.isDisposed()&&i.isEnabled("loaderror")&&i.dispatch("loaderror",{type:"loaderror",target:this})}))}}_updateSize(){super._updateSize();const t=this._display.image;if(t){let e=this.getPrivate("width",this.get("width")),i=this.getPrivate("height",this.get("height"));const s=t.width&&t.height?t.width/t.height:0;n.isNumber(e)&&n.isNumber(i)?(this._display.width=e,this._display.height=i):n.isNumber(e)&&s?i=e/s:n.isNumber(i)&&s?e=i*s:(e=t.width,i=t.height),n.isNumber(e)&&(this._display.width=e),n.isNumber(i)&&(this._display.height=i),this.markDirtyBounds(),this.markDirty()}}}r.className="Picture",r.classNames=s.j.classNames.concat([r.className])},8931:function(t,e,i){"use strict";i.d(e,{i:function(){return r}});var s=i(1479),n=i(751);class r extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let t=this.width(),e=this.height();if(t>0&&e>0){let i=this.get("cornerRadius",8);i=n.fitToRange(i,0,Math.min(t/2,e/2));let s=this.get("pointerX",0),r=this.get("pointerY",0),o=this.get("pointerBaseWidth",15)/2,a=0,h=0,l=0,c=(s-a)*(e-h)-(r-h)*(t-a),u=(s-l)*(0-e)-(r-e)*(t-l);const d=this._display;if(d.moveTo(i,0),c>0&&u>0){let e=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,-1/0,0),d.lineTo(e-o,0),d.lineTo(s,r),d.lineTo(e+o,0)}if(d.lineTo(t-i,0),d.arcTo(t,0,t,i,i),c>0&&u<0){let a=Math.round(n.fitToRange(r,i+o,e-o-i));s=n.fitToRange(s,t,1/0),d.lineTo(t,i),d.lineTo(t,Math.max(a-o,i)),d.lineTo(s,r),d.lineTo(t,a+o)}if(d.lineTo(t,e-i),d.arcTo(t,e,t-i,e,i),c<0&&u<0){let a=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,e,1/0),d.lineTo(t-i,e),d.lineTo(a+o,e),d.lineTo(s,r),d.lineTo(a-o,e)}if(d.lineTo(i,e),d.arcTo(0,e,0,e-i,i),c<0&&u>0){let t=Math.round(n.fitToRange(r,i+o,e-i-o));s=n.fitToRange(s,-1/0,0),d.lineTo(0,e-i),d.lineTo(0,t+o),d.lineTo(s,r),d.lineTo(0,Math.max(t-o,i))}d.lineTo(0,i),d.arcTo(0,0,i,0,i),d.closePath()}}}}r.className="PointedRectangle",r.classNames=s.T.classNames.concat([r.className])},7770:function(t,e,i){"use strict";i.d(e,{m:function(){return r}});var s=i(1479),n=i(5071);class r extends s.T{_beforeChanged(){if(super._beforeChanged(),this.isDirty("coordinates")){const t=[],e=this.get("coordinates");e&&n.each(e,(e=>{t.push({x:e[0],y:e[1]})})),this.set("points",t)}if(this.isPrivateDirty("points")&&(this._clear=!0),this.isDirty("points")){this._clear=!0;const t=this.get("points"),e=this._prevSettings.points;if(e){if(t){let i=n.copy(t),s=n.copy(e),r=i.length,o=s.length;if(r>o){let t=n.copy(i);for(let e=0;er){let t=n.copy(s);for(let e=0;e{this._markDirtyPrivateKey("morphProgress")}))}}else this.setPrivateRaw("previousPoints",t),this.setPrivateRaw("points",t);let i=1/0,s=-1/0,r=1/0,o=-1/0;if(t)for(let e=1,n=t.length;e{this.label.markDirtyKey("text")}))}}}l.className="ProgressPie",l.classNames=n.W.classNames.concat([l.className])},815:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(6245),n=i(962),r=i(4244),o=i(751),a=i(7652);class h extends n._{constructor(){super(...arguments),this._flipped=!1}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(r.f.new(this._root,{}))}baseRadius(){const t=this.getPrivate("radius",0),e=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return e+a.relativeToValue(i,t-e)}radius(){const t=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(t?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){const t=this.get("textType","adjusted"),e=this.get("inside",!1),i=this.get("orientation");let n=o.normalizeAngle(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",e);const r=o.sin(n),a=o.cos(n);let h=this.baseRadius(),l=this.radius();if(this._display.angle=0,"circular"==t)this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",l);else{0==h&&(n=0,l=0);let e=l*a,o=l*r;"radial"==t?(this.setRaw("x",e),this.setRaw("y",o),n<90||n>270||"auto"!=i?(this._display.angle=n,this._flipped=!1):(this._display.angle=n+180,this._flipped=!0),this._dirty.rotation=!1):"adjusted"==t?(this.setRaw("centerX",s.CI),this.setRaw("centerY",s.CI),this.setRaw("x",e),this.setRaw("y",o)):"regular"==t&&(this.setRaw("x",e),this.setRaw("y",o))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){const t=this.get("textType","regular"),e=this.get("inside",!1);let i=0,n=0,r=this.get("labelAngle",0),a=this.localBounds(),h=a.right-a.left,l=a.bottom-a.top;if("radial"==t){if(this._flipped){let t=this.get("centerX");t instanceof s.gG&&(h*=1-2*t.value),i=h*o.cos(r),n=h*o.sin(r)}}else e||"adjusted"!=t||(i=h/2*o.cos(r),n=l/2*o.sin(r));this.setRaw("dx",i),this.setRaw("dy",n),super._updatePosition()}get text(){return this._text}}h.className="RadialLabel",h.classNames=n._.classNames.concat([h.className])},4244:function(t,e,i){"use strict";i.d(e,{f:function(){return r}});var s=i(2036),n=i(751);class r extends s.x{constructor(){super(...arguments),this._display=this._root._renderer.makeRadialText("",this.textStyle)}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*n.RADIANS,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}r.className="RadialText",r.classNames=s.x.classNames.concat([r.className])},7142:function(t,e,i){"use strict";i.d(e,{A:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let t=this.width(),e=this.height(),i=0,s=0,n=t/Math.abs(t),r=e/Math.abs(e);if(this.get("containStroke",!1)){const o=this.get("strokeWidth",0);t-=o*n,e-=o*r,i+=o/2*n,s+=o/2*r}this._display.drawRect(i,s,t,e)}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Rectangle",n.classNames=s.T.classNames.concat([n.className])},3497:function(t,e,i){"use strict";i.d(e,{c:function(){return a}});var s=i(5040),n=i(751),r=i(7652),o=i(7142);class a extends o.A{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let t=this.width(),e=this.height(),i=t/Math.abs(t),o=e/Math.abs(e),a=0,h=0;const l=this.get("strokeWidth",0);this.get("containStroke",!1)&&(t-=i*l,e-=o*l,a+=i*l/2,h+=o*l/2);let c=t,u=e;if(s.isNumber(c)&&s.isNumber(u)){let t=Math.min(c,u)/2,e=r.relativeToValue(this.get("cornerRadiusTL",8),t),s=r.relativeToValue(this.get("cornerRadiusTR",8),t),l=r.relativeToValue(this.get("cornerRadiusBR",8),t),d=r.relativeToValue(this.get("cornerRadiusBL",8),t),p=Math.min(Math.abs(c/2),Math.abs(u/2));e=n.fitToRange(e,0,p),s=n.fitToRange(s,0,p),l=n.fitToRange(l,0,p),d=n.fitToRange(d,0,p);const g=this._display;g.moveTo(a+e*i,h),g.lineTo(a+c-s*i,h),s>0&&g.arcTo(a+c,h,a+c,h+s*o,s),g.lineTo(a+c,h+u-l*o),l>0&&g.arcTo(a+c,h+u,a+c-l*i,h+u,l),g.lineTo(a+d*i,h+u),d>0&&g.arcTo(a,h+u,a,h+u-d*o,d),g.lineTo(a,h+e*o),e>0&&g.arcTo(a,h,a+e*i,h,e),g.closePath()}}}a.className="RoundedRectangle",a.classNames=o.A.classNames.concat([a.className])},6001:function(t,e,i){"use strict";i.d(e,{L:function(){return l}});var s=i(3497),n=i(8777),r=i(1479),o=i(8054),a=i(5040),h=i(7652);class l extends n.W{constructor(){super(...arguments),this.thumb=this._makeThumb(),this.startGrip=this._makeButton(),this.endGrip=this._makeButton(),this._thumbBusy=!1,this._startDown=!1,this._endDown=!1,this._thumbDown=!1}_addOrientationClass(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=s.c.new(this._root,{themeTags:h.mergeTags(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(o.z.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:r.T.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(s.c.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(t){t&&this._disposers.push(t.events.on("stopped",(()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1})))}_afterNew(){this._addOrientationClass(),super._afterNew();const t=this.startGrip,e=this.endGrip,i=this.thumb,s=this.get("background");s&&this._disposers.push(s.events.on("click",(t=>{this.setPrivateRaw("isBusy",!0);const e=this._display.toLocal(t.point),s=this.width(),n=this.height(),r=this.get("orientation");let o,a,h;o="vertical"==r?(e.y-i.height()/2)/n:(e.x-i.width()/2)/s,"vertical"==r?(a=o*n,h="y"):(a=o*s,h="x");const l=this.get("animationDuration",0);l>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:h,to:a,duration:l,easing:this.get("animationEasing")}))):(this.thumb.set(h,a),this._root.events.once("frameended",(()=>{this.setPrivateRaw("isBusy",!1)})))}))),this._disposers.push(i.events.on("dblclick",(t=>{if(!h.isLocalEvent(t.originalEvent,this))return;const e=this.get("animationDuration",0),i=this.get("animationEasing");this.animate({key:"start",to:0,duration:e,easing:i}),this.animate({key:"end",to:1,duration:e,easing:i})}))),this._disposers.push(t.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"}))),this._disposers.push(e.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"}))),this._disposers.push(i.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0}))),this._disposers.push(t.events.on("globalpointerup",(()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1}))),this._disposers.push(e.events.on("globalpointerup",(()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1}))),this._disposers.push(i.events.on("globalpointerup",(()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1}))),this._disposers.push(t.on("x",(()=>{this._updateThumb()}))),this._disposers.push(e.on("x",(()=>{this._updateThumb()}))),this._disposers.push(t.on("y",(()=>{this._updateThumb()}))),this._disposers.push(e.on("y",(()=>{this._updateThumb()}))),this._disposers.push(i.events.on("positionchanged",(()=>{this._updateGripsByThumb()}))),"vertical"==this.get("orientation")?(t.set("x",0),e.set("x",0),this._disposers.push(i.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()-i.height()),0)))),this._disposers.push(i.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("x",(t=>this.width()/2))),this._disposers.push(e.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0)))),this._disposers.push(e.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0))))):(t.set("y",0),e.set("y",0),this._disposers.push(i.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()-i.width()),0)))),this._disposers.push(i.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("y",(t=>this.height()/2))),this._disposers.push(e.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))),this._disposers.push(e.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){const t="rangechanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){const t="released";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}updateGrips(){const t=this.startGrip,e=this.endGrip,i=this.get("orientation"),s=this.height(),n=this.width();"vertical"==i?(t.set("y",s*this.get("start",0)),e.set("y",s*this.get("end",1))):(t.set("x",n*this.get("start",0)),e.set("x",n*this.get("end",1)));const r=this.getPrivate("positionTextFunction"),o=Math.round(100*this.get("start",0)),a=Math.round(100*this.get("end",0));let h,l;r?(h=r.call(this,this.get("start",0)),l=r.call(this,this.get("end",0))):(h=o+"%",l=a+"%"),t.set("ariaLabel",this._t("From %1",void 0,h)),t.set("ariaValueNow",""+o),t.set("ariaValueText",o+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100"),e.set("ariaLabel",this._t("To %1",void 0,l)),e.set("ariaValueNow",""+a),e.set("ariaValueText",a+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100")}_updateThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip,s=this.height(),n=this.width();let r=e.x(),o=i.x(),h=e.y(),l=i.y(),c=0,u=1;"vertical"==this.get("orientation")?a.isNumber(h)&&a.isNumber(l)&&(this._thumbBusy||t.isDragging()||(t.set("height",l-h),t.set("y",h)),c=h/s,u=l/s):a.isNumber(r)&&a.isNumber(o)&&(this._thumbBusy||t.isDragging()||(t.set("width",o-r),t.set("x",r)),c=r/n,u=o/n),!this.getPrivate("isBusy")||this.get("start")==c&&this.get("end")==u||(this.set("start",c),this.set("end",u));const d=this.getPrivate("positionTextFunction"),p=Math.round(100*this.get("start",0)),g=Math.round(100*this.get("end",0));let f,_;d?(f=d.call(this,this.get("start",0)),_=d.call(this,this.get("end",0))):(f=p+"%",_=g+"%"),t.set("ariaLabel",this._t("From %1 to %2",void 0,f,_)),t.set("ariaValueNow",""+p),t.set("ariaValueText",p+"%")}_updateGripsByThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip;if("vertical"==this.get("orientation")){const s=t.height();e.set("y",t.y()),i.set("y",t.y()+s)}else{const s=t.width();e.set("x",t.x()),i.set("x",t.x()+s)}}}l.className="Scrollbar",l.classNames=n.W.classNames.concat([l.className])},5829:function(t,e,i){"use strict";i.d(e,{j:function(){return h}});var s=i(1337),n=i(8777),r=i(7144),o=i(6245),a=i(5071);class h extends s.k{constructor(){super(...arguments),this.seriesContainer=n.W.new(this._root,{width:o.AQ,height:o.AQ,isMeasured:!1}),this.series=new r.dn}_afterNew(){super._afterNew(),this._disposers.push(this.series);const t=this.seriesContainer.children;this._disposers.push(this.series.events.onAll((e=>{if("clear"===e.type){a.each(e.oldValues,(t=>{this._removeSeries(t)}));const t=this.get("colors");t&&t.reset();const i=this.get("patterns");i&&i.reset()}else if("push"===e.type)t.moveValue(e.newValue),this._processSeries(e.newValue);else if("setIndex"===e.type)t.setIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("insertIndex"===e.type)t.insertIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("removeIndex"===e.type)this._removeSeries(e.oldValue);else if("moveIndex"===e.type)t.moveValue(e.value,e.newIndex),this._processSeries(e.value);else{if("swap"!==e.type)throw new Error("Unknown IListEvent type");{const i=e.a,s=e.b,n=this.series.indexOf(i),r=this.series.indexOf(s);t.moveValue(i,r),t.moveValue(s,n),this.series.each((t=>{this._processSeries(t),t.markDirtyValues()}))}}})))}_processSeries(t){t.chart=this,t._placeBulletsContainer(this)}_removeSeries(t){t._handleRemoved(),t.isDisposed()||(this.seriesContainer.children.removeValue(t),t._removeBulletsContainer())}}h.className="SerialChart",h.classNames=s.k.classNames.concat([h.className])},3399:function(t,e,i){"use strict";i.d(e,{F:function(){return g}});var s=i(7582),n=i(9361),r=i(7144),o=i(1112),a=i(6490),h=i(6245),l=i(8777),c=i(962),u=i(5071),d=i(5040),p=i(1926);class g extends n.w{constructor(){super(...arguments),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1,this._dataProcessed=!1,this._baseSeriesDirty=!1,this.bullets=new r.aV,this.bulletsContainer=l.W.new(this._root,{width:h.AQ,height:h.AQ,position:"absolute"})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll((()=>{this._handleBullets(this.dataItems)})))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let t=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),t)}endIndex(){let t=this.dataItems.length;return Math.max(0,Math.min(this.getPrivate("endIndex",t),t))}_handleBullets(t){u.each(t,(t=>{const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)})),this.markDirtyValues()}_makeBullets(t){this._shouldMakeBullet(t)&&(t.bullets=[],this.bullets.each((e=>{this._makeBullet(t,e)})))}_shouldMakeBullet(t){return!0}_makeBullet(t,e,i){const s=e(this._root,this,t);return s&&(s._index=i,this._makeBulletReal(t,s)),s}_makeBulletReal(t,e){let i=e.get("sprite");i&&(i._setDataItem(t),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),e.series=this,t.bullets.push(e)}addBullet(t,e){t.bullets||(t.bullets=[]),e&&this._makeBulletReal(t,e)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();const t=this.dataItems,e=t.length;let i=this.startIndex(),s=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const t=this.getPrivate("baseValueSeries");t&&this._disposers.push(t.onPrivate("startIndex",(()=>{this._baseSeriesDirty=!0,this.markDirtyValues()})))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,e),this._aggregatesCalculated=!0,0!=i&&(this._psi=void 0))),this._psi==i&&this._pei==s&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===i&&s===e&&this._aggregatesCalculated||this._calculateAggregates(i,s),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let t=this.get("tooltip");t&&(t.hide(0),t.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let t;const e=this.get("legendDataItem");if(e&&(t=e.get("markerRectangle"),t&&this.isVisible())){if(this.isDirty("stroke")){let e=this.get("stroke");t.set("stroke",e)}if(this.isDirty("fill")){let e=this.get("fill");t.set("fill",e)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let i=this.startIndex(),s=this.endIndex();s-1==s.indexOf(t))));const n={},r={},o={},a={},h={},l={},c={},u={},d={};for(let t=0,e=i.length;t{if(0===t){const t=l[x],s=i-t;e.setRaw(_,s),e.setRaw(m,s/t*100)}const n=i-d[x],r=i-l[x];e.setRaw(y,n),e.setRaw(v,n/d[x]*100),e.setRaw(w,r),e.setRaw(b,r/l[x]*100),d[s]=i};for(let t=k;tt&&(a[f]=t),h[f]0&&t--,delete d[f];for(let e=t;e0&&u.each(t,(t=>{const e=t.minValue||this.getPrivate(t.dataField+"Low")||0,i=t.maxValue||this.getPrivate(t.dataField+"High")||0;u.each(t.target._entities,(s=>{const n=s.dataItem.get(t.dataField);if(!d.isNumber(n)){t.neutral&&s.set(t.key,t.neutral);const e=s.states;if(e){const i=e.lookup("default");i&&t.neutral&&i.set(t.key,t.neutral)}if(!t.customFunction)return}if(t.customFunction)t.customFunction.call(this,s,e,i,n);else{let r,l;r=t.logarithmic?(Math.log(n)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E):(n-e)/(i-e),!d.isNumber(n)||d.isNumber(r)&&Math.abs(r)!=1/0||(r=.5),d.isNumber(t.min)?l=t.min+(t.max-t.min)*r:t.min instanceof o.Il?l=o.Il.interpolate(r,t.min,t.max):t.min instanceof h.gG&&(l=(0,a.Wn)(r,t.min,t.max)),s.set(t.key,l);const c=s.states;if(c){const e=c.lookup("default");e&&e.set(t.key,l)}}}))})),this.get("visible")){const t=this.dataItems;let e=t.length,i=this.startIndex(),s=this.endIndex();s0&&i--;for(let e=0;e{this._positionBullet(t);const e=t.get("sprite");t.get("dynamic")&&(e&&(e._markDirtyKey("fill"),e.markDirtySize()),e instanceof l.W&&e.walkChildren((t=>{t._markDirtyKey("fill"),t.markDirtySize(),t instanceof c._&&t.text.markDirtyText()}))),e instanceof c._&&e.get("populateText")&&e.text.markDirtyText()}))}_hideBullets(t){t.bullets&&u.each(t.bullets,(t=>{let e=t.get("sprite");e&&e.setPrivate("visible",!1)}))}_positionBullet(t){}_placeBulletsContainer(t){t.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const t=this.bulletsContainer;t.parent&&t.parent.children.removeValue(t)}disposeDataItem(t){const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.show(e))})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.hide(e))})),yield Promise.all(s)}))}_sequencedShowHide(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(d.isNumber(e)||(e=this.get("interpolationDuration",0)),e>0){const i=this.startIndex(),n=this.endIndex();yield Promise.all(u.map(this.dataItems,((r,o)=>(0,s.mG)(this,void 0,void 0,(function*(){let s=e||0;(on+10)&&(s=0);let a=this.get("sequencedDelay",0)+s/(n-i);yield p.sleep(a*(o-i)),t?yield this.showDataItem(r,s):yield this.hideDataItem(r,s)})))))}else yield Promise.all(u.map(this.dataItems,(e=>t?this.showDataItem(e,0):this.hideDataItem(e,0))))}))}updateLegendValue(t){if(t){const e=t.get("legendDataItem");if(e){const i=e.get("valueLabel");if(i){const e=i.text;let s="";i._setDataItem(t),s=this.get("legendValueText",e.get("text","")),i.set("text",s),e.markDirtyText()}const s=e.get("label");if(s){const e=s.text;let i="";s._setDataItem(t),i=this.get("legendLabelText",e.get("text","")),s.set("text",i),e.markDirtyText()}}}}updateLegendMarker(t){}_onHide(){super._onHide();const t=this.getTooltip();t&&t.hide()}hoverDataItem(t){}unhoverDataItem(t){}_getBase(t){const e=this.dataItems[this.startIndex()];return e?e.get(t):0}}g.className="Series",g.classNames=n.w.classNames.concat([g.className])},5863:function(t,e,i){"use strict";i.d(e,{p:function(){return h}});var s=i(1479),n=i(5040),r=i(6245),o=i(832),a=i(751);class h extends s.T{constructor(){super(...arguments),this.ix=0,this.iy=0,this._generator=(0,o.Z)()}_getTooltipPoint(){let t=this.get("tooltipX"),e=this.get("tooltipY"),i=0,s=0;n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e);let o=this.get("radius",0),a=this.get("innerRadius",0);return o+=this.get("dRadius",0),a+=this.get("dInnerRadius",0),a<0&&(a=o+a),t instanceof r.gG&&(i=this.ix*(a+(o-a)*t.value)),e instanceof r.gG&&(s=this.iy*(a+(o-a)*e.value)),this.get("arc")>=360&&0==a&&(i=0,s=0),{x:i,y:s}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this.get("startAngle",0),e=this.get("arc",0);const i=this._generator;e<0&&(t+=e,e*=-1),e>.1&&i.cornerRadius(this.get("cornerRadius",0)),i.context(this._display);let s=this.get("radius",0),n=this.get("innerRadius",0);s+=this.get("dRadius",0),n+=this.get("dInnerRadius",0),n<0&&(n=s+n),i({innerRadius:n,outerRadius:s,startAngle:(t+90)*a.RADIANS,endAngle:(t+e+90)*a.RADIANS});let r=t+e/2;this.ix=a.cos(r),this.iy=a.sin(r);const o=this.get("shiftRadius",0);this.setRaw("dx",this.ix*o),this.setRaw("dy",this.iy*o),this.markDirtyPosition()}}}h.className="Slice",h.classNames=s.T.classNames.concat([h.className])},2162:function(t,e,i){"use strict";i.d(e,{i:function(){return n}});var s=i(6001);class n extends s.L{_afterNew(){this._addOrientationClass(),super._afterNew(),this.endGrip.setPrivate("visible",!1),this.thumb.setPrivate("visible",!1)}updateGrips(){super.updateGrips();const t=this.startGrip;this.endGrip.setAll({x:t.x(),y:t.y()}),this.setRaw("end",this.get("start"))}}n.className="Slider",n.classNames=s.L.classNames.concat([n.className])},4596:function(t,e,i){"use strict";i.d(e,{j:function(){return _}});var s=i(7582),n=i(6331),r=i(5769),o=i(6245),a=i(9770),h=i(7449),l=i(6490),c=i(7652),u=i(5071),d=i(5040),p=i(256),g=i(751);class f extends a.p{constructor(t){super(),this._rendererDisposers={},this._dispatchParents=!0,this._sprite=t}_makePointerEvent(t,e){return{type:t,originalEvent:e.event,point:e.point,simulated:e.simulated,native:e.native,target:this._sprite}}_onRenderer(t,e){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[t];if(void 0===i){const s=this._sprite._display.on(t,(t=>{e.call(this,t)}));i=this._rendererDisposers[t]=new h.DM((()=>{delete this._rendererDisposers[t],s.dispose()}))}return i.increment()}_on(t,e,i,s,n,r,o){const a=super._on(t,e,i,s,n,r,o),l=f.RENDERER_EVENTS[e];return void 0!==l&&(a.disposer=new h.FV([a.disposer,this._onRenderer(e,l)])),a}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(t,e){const i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(t,e),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(t,e)}finally{this._dispatchParents=i}}}f.RENDERER_EVENTS={click:function(t){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",t))&&this.dispatch("click",this._makePointerEvent("click",t))},rightclick:function(t){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",t))},middleclick:function(t){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",t))},dblclick:function(t){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",t))},pointerover:function(t){const e=this._sprite;let i=!0;if(e.getPrivate("trustBounds")){e._getBounds();const s=e.globalBounds();if(e.isType("Graphics")){const t=e.get("strokeWidth",1)/2;t>=1&&(s.left-=t,s.right+=t,s.top-=t,s.bottom+=t)}g.inBounds(t.point,s)||(i=!1,e._root._renderer.removeHovering(e._display))}i&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",t))},pointerout:function(t){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",t))},pointerdown:function(t){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",t))},pointerup:function(t){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",t))},globalpointerup:function(t){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",t))},globalpointermove:function(t){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",t))},wheel:function(t){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:t.event,point:t.point})}};class _ extends n.JH{constructor(){super(...arguments),this._adjustedLocalBounds={left:0,right:0,top:0,bottom:0},this._localBounds={left:0,right:0,top:0,bottom:0},this._sizeDirty=!1,this._isDragging=!1,this._isHidden=!1,this._isShowing=!1,this._isHiding=!1,this._isDown=!1,this._downPoints={}}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(t){this._markDirtyKey(t)}_markDirtyKey(t){super._markDirtyKey(t),"x"!=t&&"y"!=t&&"dx"!=t&&"dy"!=t||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(t){super._markDirtyPrivateKey(t),"x"!=t&&"y"!=t||this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new f(this)}_processTemplateField(){let t;const e=this.get("templateField");if(e){const i=this.dataItem;if(i){const s=i.dataContext;s&&(t=s[e],t instanceof r.YS||!t||(t=r.YS.new(t)))}}this._templateField!==t&&(this._removeTemplateField(),this._templateField=t,t&&t._setObjectTemplate(this),this._applyTemplates())}_setDataItem(t){const e=this._dataItem;this._dataItem=t,this._processTemplateField();const i="dataitemchanged";t!=e&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:e,newDataItem:t})}set dataItem(t){this._setDataItem(t)}get dataItem(){if(this._dataItem)return this._dataItem;{let t=this._parent;for(;t;){if(t._dataItem)return t._dataItem;t=t._parent}}}_addPercentageSizeChildren(){let t=this.parent;t&&(this.get("width")instanceof o.gG||this.get("height")instanceof o.gG?u.pushOne(t._percentageSizeChildren,this):u.removeFirst(t._percentageSizeChildren,this))}_addPercentagePositionChildren(){let t=this.parent;t&&(this.get("x")instanceof o.gG||this.get("y")instanceof o.gG?u.pushOne(t._percentagePositionChildren,this):u.removeFirst(t._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const t=this._localBounds;if(t){const e=this.get("centerX");null!=e&&(this._display.pivot.x=t.left+c.relativeToValue(e,t.right-t.left));const i=this.get("centerY");null!=i&&(this._display.pivot.y=t.top+c.relativeToValue(i,t.bottom-t.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const t=this._prevSettings.tooltip;t&&t.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0);const e=this._tooltipPointerDp;e&&(e.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))),this._tooltipPointerDp=new h.FV([this.events.on("pointerover",(()=>{this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))})),this.events.on("pointerout",(()=>{const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0)}))]))}}_handleStates(){this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();const t=this._display,e=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new h.FV([e.on("pointerdown",(t=>{this.dragStart(t)})),e.on("globalpointermove",(t=>{this.dragMove(t)})),e.on("globalpointerup",(t=>{this.dragStop(t)}))])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),t.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const t=this.get("tooltipText"),i=this.get("tooltipHTML"),s=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(t||i)&&("click"==s?(this._tooltipDp=new h.FV([e.on("click",(()=>{this.setTimeout((()=>{const t=this.getTooltip();t&&!t.isHidden()&&t.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()}),10)})),c.addEventListener(document,"click",(t=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)):"always"==s||(this._tooltipDp=new h.FV([e.on("pointerover",(()=>{this.showTooltip()})),e.on("pointerout",(()=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let t=this.get("toggleKey");t&&"none"!=t?this._toggleDp=e.on("click",(()=>{this._isDragging||this.set(t,!this.get(t))})):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(t.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),t.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),t.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?t.visible=!0:(t.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const t=this.parent;t&&(this.isDirty("width")&&this.get("width")instanceof o.gG||this.isDirty("height")&&this.get("height")instanceof o.gG)&&(t.markDirty(),t._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const e=this.get("wheelable");e&&this.set("interactive",!0),t.wheelable=!!e}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(t.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){const t=this.get("blur",0);0!=t&&(i+=" blur("+t+"px)")}if(this.isDirty("saturate")){const t=this.get("saturate",1);1!=t&&(i+=" saturate("+t+")")}if(this.isDirty("brightness")){const t=this.get("brightness",1);1!=t&&(i+=" brightness("+t+")")}if(this.isDirty("contrast")){const t=this.get("contrast",1);1!=t&&(i+=" contrast("+t+")")}if(this.isDirty("sepia")){const t=this.get("sepia",0);0!=t&&(i+=" sepia("+t+")")}if(this.isDirty("hue")){const t=this.get("hue",0);0!=t&&(i+=" hue-rotate("+t+"deg)")}if(this.isDirty("invert")){const t=this.get("invert",0);0!=t&&(i+=" invert("+t+")")}if(i&&(t.filter=i),this.isDirty("cursorOverStyle")&&(t.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new h.FV([e.on("focus",(()=>{this.showTooltip()})),e.on("blur",(()=>{this.hideTooltip()}))]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(e.on("blur",(()=>{this.setPrivateRaw("touchHovering",!1)}))),this._disposers.push(e.once("boundschanged",(()=>{this.markDirtyAccessibility()})))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(t.exportable=this.get("exportable")),this.isDirty("interactive")){const t=this.events;this.get("interactive")&&!t.isDisposed()?this._hoverDp=new h.FV([t.on("click",(t=>{c.isTouchEvent(t.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout((()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}),10))})),t.on("globalpointerup",(t=>{c.isTouchEvent(t.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})),this._isDown&&this._handleUp(t)})),t.on("pointerover",(()=>{this._handleOver()})),t.on("pointerout",(()=>{this._handleOut()})),t.on("pointerdown",(t=>{this._handleDown(t)}))]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}dragStart(t){this._dragEvent=t,this.events.stopParentDispatch()}dragStop(t){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const e="dragstop";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(t){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const e=c.getPointerId(t.originalEvent);delete this._downPoints[e],0==p.keys(this._downPoints).length&&(this._isDown=!1)}}_hasMoved(t){const e=c.getPointerId(t.originalEvent),i=this._downPoints[e];if(i){const e=Math.abs(i.x-t.point.x),s=Math.abs(i.y-t.point.y);return e>5||s>5}return!1}_hasDown(){return p.keys(this._downPoints).length>0}_handleDown(t){const e=this.parent;if(e&&!this.get("draggable")&&e._handleDown(t),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:t.point.x,y:t.point.y},this._isDown=!0;const e=c.getPointerId(t.originalEvent);this._downPoints[e]={x:t.point.x,y:t.point.y}}}dragMove(t){let e=this._dragEvent;if(e){if(e.simulated&&!t.simulated)return!0;let i=0,s=this.parent,n=1;for(;null!=s;)i+=s.get("rotation",0),s=s.parent,s&&(n*=s.get("scale",1));let r=(t.point.x-e.point.x)/n,o=(t.point.y-e.point.y)/n;const a=this.events;if(e.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}if(this._isDragging){let e=this._dragPoint;this.set("x",e.x+r*g.cos(i)+o*g.sin(i)),this.set("y",e.y+o*g.cos(i)-r*g.sin(i));const s="dragged";a.isEnabled(s)&&a.dispatch(s,{type:s,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}else if(Math.hypot(r,o)>5){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let t=this.parent,e=0;for(;;){if(!t)return e;++e,t=t.parent}}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const t=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),t.isMeasured=!0,t.invalidateBounds();const e=this.parent;e&&"absolute"!=this.get("position")&&(null==e.get("width")||null==e.get("height")||e.get("layout"))&&e.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const t=this._adjustedLocalBounds;let e;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),e=this._adjustedLocalBounds):(e={left:0,right:0,top:0,bottom:0},this._localBounds=e,this._adjustedLocalBounds=e),!t||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom){const t="boundschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(t){let e=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));d.isNumber(e)&&t.right-t.left0?t.right=t.left+s:t.left=t.right+s),d.isNumber(n)&&(n>0?t.bottom=t.top+n:t.top=t.bottom+n)}_removeParent(t){t&&(t.children.removeValue(this),u.removeFirst(t._percentageSizeChildren,this),u.removeFirst(t._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(t){if(!this.isDisposed()){const e=this.getTooltip(),i=this.get("tooltipText"),s=this.get("tooltipHTML");if((i||s)&&e){const n=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);if("fixed"!=n&&t||(this._display._setMatrix(),t=this.toGlobal(r._getTooltipPoint())),"pointer"==n){const e=this.getPrivate("lastTooltipCoords");if(e&&e.x==t.x&&e.y==t.y)return;this.setPrivate("lastTooltipCoords",t)}e.set("pointTo",t),e.set("tooltipTarget",r),e.get("x")||e.set("x",t.x),e.get("y")||e.set("y",t.y),i&&e.label.set("text",i),s&&e.label.set("html",s);const o=this.dataItem;if(o&&e.label._setDataItem(o),"always"==this.get("showTooltipOn")&&(t.x<0||t.x>this._root.width()||t.y<0||t.y>this._root.height()))return void this.hideTooltip();e.label.text.markDirtyText();const a=e.show();return this.setPrivateRaw("showingTooltip",!0),a}}}hideTooltip(){const t=this.getTooltip();if(t&&(this.removePrivate("lastTooltipCoords"),t.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==t)){let e=t.get("keepTargetHover")&&0==t.get("stateAnimationDuration",0)?400:void 0;const i=t.hide(e);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){const t=this._localBounds;if(t){let e=0,i=0;return this.get("isMeasured")?(e=t.left+c.relativeToValue(this.get("tooltipX",0),t.right-t.left),i=t.top+c.relativeToValue(this.get("tooltipY",0),t.bottom-t.top)):(e=c.relativeToValue(this.get("tooltipX",0),this.width()),i=c.relativeToValue(this.get("tooltipY",0),this.height())),{x:e,y:i}}return{x:0,y:0}}getTooltip(){let t=this.get("tooltip");if(t)return t;{let t=this.parent;if(t)return t.getTooltip()}}_updatePosition(){const t=this.parent;let e=this.get("dx",0),i=this.get("dy",0),s=this.get("x"),n=this.getPrivate("x"),r=0,a=0;const h=this.get("position");s instanceof o.gG&&(s=t?t.innerWidth()*s.value+t.get("paddingLeft",0):0),d.isNumber(s)?r=s+e:null!=n?r=n:t&&"relative"==h&&(r=t.get("paddingLeft",0)+e);let l=this.get("y"),c=this.getPrivate("y");l instanceof o.gG&&(l=t?t.innerHeight()*l.value+t.get("paddingTop",0):0),d.isNumber(l)?a=l+i:null!=c?a=c:t&&"relative"==h&&(a=t.get("paddingTop",0)+i);const u=this._display;if(u.x!=r||u.y!=a){u.invalidateBounds(),u.x=r,u.y=a;const t="positionchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let t=this.get("x"),e=this.getPrivate("x");const i=this.parent;return i?t instanceof o.gG?c.relativeToValue(t,i.innerWidth())+i.get("paddingLeft",0):d.isNumber(t)?t:null!=e?e:i.get("paddingLeft",this._display.x):this._display.x}y(){let t=this.getPrivate("y");if(null!=t)return t;let e=this.get("y");const i=this.parent;return i?e instanceof o.gG?c.relativeToValue(e,i.innerHeight())+i.get("paddingTop",0):d.isNumber(e)?e:null!=t?t:i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const t=this.get("tooltip");t&&t.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const t=this._adjustedLocalBounds,e=this.x(),i=this.y();return{left:t.left+e,right:t.right+e,top:t.top+i,bottom:t.bottom+i}}globalBounds(){const t=this.localBounds(),e=this.toGlobal({x:t.left,y:t.top}),i=this.toGlobal({x:t.right,y:t.top}),s=this.toGlobal({x:t.right,y:t.bottom}),n=this.toGlobal({x:t.left,y:t.bottom});return{left:Math.min(e.x,i.x,s.x,n.x),top:Math.min(e.y,i.y,s.y,n.y),right:Math.max(e.x,i.x,s.x,n.x),bottom:Math.max(e.y,i.y,s.y,n.y)}}_onShow(t){}_onHide(t){}appear(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.hide(0),e?new Promise(((i,s)=>{this.setTimeout((()=>{i(this.show(t))}),e)})):this.show(t)}))}show(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(t);const e=this.states.applyAnimate("default",t);yield(0,l.ne)(e),this._isShowing=!1}}))}hide(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let e=this.states.lookup("hidden");e||(e=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(t);const i=this.states.applyAnimate("hidden",t);yield(0,l.ne)(i),this._isHiding=!1}}))}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const t=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*t:t}compositeScale(){const t=this.get("scale",1);return this._parent?this._parent.compositeScale()*t:t}compositeRotation(){const t=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+t:t}width(){let t=this.get("width"),e=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),s=this.getPrivate("width"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerWidth()*t.value:this._root.width()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}maxWidth(){let t=this.get("maxWidth",this.getPrivate("maxWidth"));if(d.isNumber(t))return t;{let t=this.get("width");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerWidth():this._root.width()}maxHeight(){let t=this.get("maxHeight",this.getPrivate("maxHeight"));if(d.isNumber(t))return t;{let t=this.get("height");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerHeight():this._root.height()}height(){let t=this.get("height"),e=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),s=this.getPrivate("height"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerHeight()*t.value:this._root.height()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}_findStaticTemplate(t){return this._templateField&&t(this._templateField)?this._templateField:super._findStaticTemplate(t)}_walkParents(t){(this._parent||this._virtualParent)&&this._walkParent(t)}_walkParent(t){this._parent?this._parent._walkParent(t):this._virtualParent&&this._virtualParent._walkParent(t),t(this)}set virtualParent(t){this._virtualParent!==t&&(this._virtualParent=t,this._applyThemes())}get parent(){return this._parent}_setParent(t,e=!1){const i=this._parent;t!==i&&(this.markDirtyBounds(),t.markDirty(),this._parent=t,e&&(this._removeParent(i),t&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(t){return this._display.toGlobal(t)}toLocal(t){return this._display.toLocal(t)}_getDownPoint(){const t=this._getDownPointId();if(t)return this._downPoints[t]}_getDownPointId(){if(this._downPoints)return p.keysOrdered(this._downPoints,((t,e)=>t>e?1:t{this._resize(t.target,-1)})),this.gripR.events.on("dragged",(t=>{this._resize(t.target,1)})),this.gripL.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripR.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripT.events.on("dragged",(t=>{this._rotate(t,90)})),this.gripB.events.on("dragged",(t=>{this._rotate(t,-90)})),this.gripT.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripB.events.on("dragstart",(t=>{this._resizeStart(t.target)}))}_resizeStart(t){const e=this.get("sprite");e&&(this._is=e.get("scale",1),this._ix=t.x(),this._iw=this.width()/2)}_resize(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=Math.max(.01,this._is*(1+e*(t.x()-this._ix)/this._iw));s?s.set("scale",n):i.set("scale",n),i.states.lookup("default").set("scale",n),this._updatePositions()}}_rotate(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=this.parent;if(n){const r=this.get("rotationStep",10);let o=Math.round((h.getAngle({x:this.x(),y:this.y()},n.toLocal(t.point))+e)/r)*r;s?s.set("rotation",o):i.set("rotation",o),i.states.lookup("default").set("rotation",o),this._updatePositions()}}}_createGrip(t){const e=this.children.push(s.W.new(this._root,{themeTags:["grip",t],setStateOnChildren:!0,draggable:!0}));return e.children.push(r.c.new(this._root,{themeTags:["outline"],centerX:n.CI,centerY:n.CI})),e.children.push(r.c.new(this._root,{centerX:n.CI,centerY:n.CI})),e}_updateChildren(){if(super._updateChildren(),this.isDirty("sprite")){const t=this.get("sprite");if(t){this.show(0),this.setPrivate("visible",!0),this._updatePositions();const e=t.parent;e&&e.children.moveValue(this,0),this._positionDP=t.events.on("positionchanged",(()=>{this._updatePositions()})),this._positionDP=t.events.on("boundschanged",(()=>{this._updatePositions()}))}else this.hide(0),this.setPrivate("visible",!1),this._positionDP&&this._positionDP.dispose()}(this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation"))&&this._updatePositions()}_updatePositions(){const t=this.get("sprite");if(t){let e=t.localBounds(),i=t.get("scale",1),s=20,r=(e.right-e.left)*i+s,o=(e.bottom-e.top)*i+s,a=t.get("rotation",0);const l=this.rectangle;let c=t.get("centerX",n.CI),u=t.get("centerY",n.CI),d=0;c instanceof n.gG&&(d=c.value);let p=0;u instanceof n.gG&&(p=u.value),l.setAll({centerX:c,centerY:u,width:r,height:o}),this.setAll({x:t.x()+s*(d-.5)*h.cos(a)-s*(p-.5)*h.sin(a),y:t.y()+s*(p-.5)*h.cos(a)+s*(d-.5)*h.sin(a),width:r,height:o,rotation:a}),this.gripT.setAll({x:(.5-d)*r,y:-p*o}),this.gripB.setAll({x:(.5-d)*r,y:(1-p)*o}),this.gripL.setAll({x:-d*r,y:(.5-p)*o}),this.gripR.setAll({x:(1-d)*r,y:(.5-p)*o}),this.rectangle.setAll({width:r,height:o})}}}l.className="SpriteResizer",l.classNames=s.W.classNames.concat([l.className])},2036:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(4596),n=i(2132),r=i(5071),o=i(7652),a=i(7449);class h extends s.j{constructor(){super(...arguments),this.textStyle=this._root._renderer.makeTextStyle(),this._display=this._root._renderer.makeText("",this.textStyle),this._textStyles=["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}_updateBounds(){if(this.get("text")){super._updateBounds();let t=this.get("fillGradient");t&&(this._display.style.fill=t.getFill(this))}else{let t={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=t}}_changed(){super._changed(),this._display.clear();let t=this.textStyle;if(this.isDirty("opacity")){let t=this.get("opacity",1);this._display.alpha=t}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),"tooltip"==this.get("role")&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new a.ku((()=>{this._root._removeTooltipElement(this)}))),this.isDirty("width")&&(t.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(t.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(t.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(t.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(t.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(t.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){const e=this.get("fill"),i=this.get("fillGradient"),s=this.get("fillOpacity");if(i){if(e){const t=i.get("stops",[]);t.length&&r.each(t,(t=>{t.color&&!t.colorInherited||!e||(t.color=e,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=s,t.opacityInherited=!0)}))}t.fill=i.getFill(this)}else e&&(t.fill=e)}if(this.isDirty("fillOpacity")){let e=this.get("fillOpacity",1);e&&(t.fillOpacity=e)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(t.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(t.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),r.each(this._textStyles,(e=>{this._dirty[e]&&(t[e]=this.get(e),this.markDirtyBounds())})),t.fontSize=this.get("fontSize"),t.fontFamily=this.get("fontFamily"),this._display.style=t,this.isDirty("role")&&"tooltip"==this.get("role")&&this._root.updateTooltip(this)}_getText(){let t=this.get("text","");return this.get("maxChars")&&(t=o.truncateTextWithEllipsis(t,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?(0,n.q)(this,t):t}_getAccessibleText(){const t=this.get("ariaLabel");return void 0!==t?this.get("populateText")?(0,n.q)(this,t):t:this._getText()}markDirtyText(){this._display.text=this._getText(),"tooltip"==this.get("role")&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(t){super._setDataItem(t),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}h.className="Text",h.classNames=s.j.classNames.concat([h.className])},2438:function(t,e,i){"use strict";i.d(e,{d:function(){return n}});var s=i(2077);class n extends s.x{}n.className="Tick",n.classNames=s.x.classNames.concat([n.className])},2876:function(t,e,i){"use strict";i.d(e,{u:function(){return d}});var s=i(7449),n=i(962),r=i(8931),o=i(8777),a=i(6245),h=i(1112),l=i(751),c=i(5071),u=i(7652);class d extends o.W{constructor(t,e,i,s=[]){super(t,e,i,s),this._fx=0,this._fy=0,this._w=0,this._h=0,this._htmlContentHovered=!1}_afterNew(){this._settings.themeTags=u.mergeTags(this._settings.themeTags,["tooltip"]),super._afterNew(),this._setDefaultFn("background",(()=>r.i.new(this._root,{}))).set("themeTags",["tooltip","background"]),this._label=this.children.push(n._.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",(()=>{this._updateBackground()}))),this._disposers.push(this.on("bounds",(()=>{this._updateBackground()}))),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",(t=>{t&&(this._disposers.push(u.addEventListener(t,"pointerover",(t=>{this._htmlContentHovered=!0}))),this._disposers.push(u.addEventListener(t,"pointerout",(t=>{this._htmlContentHovered=!1}))))}))),this.on("visible",(t=>{this._handleReaderAnnouncement()})),this.label.events.on("dataitemchanged",(t=>{this._handleReaderAnnouncement()})),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),c.remove(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width"),null!=this.get("labelText")&&this.label.set("text",this.get("labelText")),null!=this.get("labelHTML")&&this.label.set("html",this.get("labelHTML")),null!=this.get("labelAriaLabel")&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover"))if(this.get("keepTargetHover")){const t=this.get("background");this._keepHoverDp=new s.FV([t.events.on("pointerover",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),e.hover())})),t.events.on("pointerout",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),this._htmlContentHovered||e.unhover())}))]),this.label.onPrivate("htmlElement",(e=>{this._keepHoverDp&&e&&this._keepHoverDp.disposers.push(u.addEventListener(e,"pointerleave",(e=>{const i=this.root._renderer.getEvent(e);t.events.dispatch("pointerout",{type:"pointerout",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))}))}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let t=this.get("tooltipTarget");const e=this.get("background");let i,s;if(t&&e){if(i=t.get("fill"),s=t.get("stroke"),null==i&&(i=s),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),null!=i&&e.set("fill",i),this._fillDp=t.on("fill",(t=>{null!=t&&(e.set("fill",t),this._updateTextColor(t))})),this._disposers.push(this._fillDp)),this.get("getFillGradientFromSprite")){this._fillGrDp&&this._fillGrDp.dispose();let i=t.get("fillGradient");null!=i&&e.set("fillGradient",i),this._fillGrDp=t.on("fillGradient",(t=>{null!=t&&e.set("fillGradient",t)})),this._disposers.push(this._fillGrDp)}this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),null!=i&&e.set("stroke",i),this._strokeDp=t.on("fill",(t=>{null!=t&&e.set("stroke",t)})),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),null!=i&&this.label.set("fill",i),this._labelDp=t.on("fill",(t=>{null!=t&&this.label.set("fill",t)})),this._disposers.push(this._labelDp))}this._updateTextColor(i)}_updateTextColor(t){this.get("autoTextColor")&&(null==t&&(t=this.get("background").get("fill")),null==t&&(t=this._root.interfaceColors.get("background")),t instanceof h.Il&&this.label.set("fill",h.Il.alternative(t,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(t){super._setDataItem(t),this.label._setDataItem(t)}_updateBackground(){super.updateBackground();const t=this._root.container;if(t){let e=.5,i=.5,s=this.get("centerX");s instanceof a.gG&&(e=s.value);let n=this.get("centerY");n instanceof a.gG&&(i=n.value);let o=t.width(),h=t.height(),c=this.parent,u=0,d=0;if(c){u=c.x(),d=c.y();const t=c.get("layerMargin");t&&(u+=t.left||0,d+=t.top||0,o+=(t.left||0)+(t.right||0),h+=(t.top||0)+(t.bottom||0))}const p=this.get("bounds",{left:-u,top:-d,right:o-u,bottom:h-d});this._updateBounds();let g=this.width(),f=this.height();0===g&&(g=this._w),0===f&&(f=this._h);let _=this.get("pointTo",{x:o/2,y:h/2}),m=_.x,y=_.y,v=this.get("pointerOrientation"),w=this.get("background"),b=0,x=0,D=0;w instanceof r.i&&(b=w.get("pointerLength",0),x=w.get("strokeWidth",0)/2,D=x,w.set("width",g),w.set("height",f));let k=0,T=0,M=p.right-p.left,E=p.bottom-p.top;"horizontal"==v||"left"==v||"right"==v?(x=0,"horizontal"==v?m>p.left+M/2?(m-=g*(1-e)+b,D*=-1):m+=g*e+b:"left"==v?m+=g*(1-e)+b:(m-=g*e+b,D*=-1)):(D=0,"vertical"==v?y>p.top+f/2+b?y-=f*(1-i)+b:(y+=f*i+b,x*=-1):"down"==v?y-=f*(1-i)+b:(y+=f*i+b,x*=-1)),m=l.fitToRange(m,p.left+g*e,p.left+M-g*(1-e))+D,y=l.fitToRange(y,p.top+f*i,p.top+E-f*(1-i))-x,k=_.x-m+g*e+D,T=_.y-y+f*i-x,this._fx=m,this._fy=y;const O=this.get("animationDuration",0);if(O>0&&this.get("visible")&&this.get("opacity")>.1){const t=this.get("animationEasing");this.animate({key:"x",to:m,duration:O,easing:t}),this.animate({key:"y",to:y,duration:O,easing:t})}else this.set("x",m),this.set("y",y);w instanceof r.i&&(w.set("pointerX",k),w.set("pointerY",T)),g>0&&(this._w=g),f>0&&(this._h=f)}}}d.className="Tooltip",d.classNames=o.W.classNames.concat([d.className])},941:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){const t=this.width(),e=this.height(),i=this._display;i.moveTo(-t/2,e/2),i.lineTo(0,-e/2),i.lineTo(t/2,e/2),i.lineTo(-t/2,e/2),i.closePath()}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Triangle",n.classNames=s.T.classNames.concat([n.className])},1706:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingTop",0),i=t.innerHeight(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minHeight",t.getPrivate("minHeight",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.height()),i-=e+t.get("marginTop",0)+t.get("marginBottom",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginTop",0)-t.get("marginBottom",0),n=t.get("minHeight",t.getPrivate("minHeight",-1/0)),r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("height",s)}else t._prevSettings.height instanceof r.gG&&t.setPrivate("height",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginTop",0),s=e.top,n=e.bottom,r=t.get("maxHeight");r&&n-s>r&&(n=s+r);let o=t.get("marginBottom",0),h=a+i-s;t.setPrivate("y",h),a=h+n+o}else t.setPrivate("y",void 0)}))}}o.className="VerticalLayout",o.classNames=s.A.classNames.concat([o.className])},6044:function(t,e,i){"use strict";i.d(e,{H:function(){return h}});var s=i(8777),n=i(8054),r=i(1479),o=i(7449),a=i(2647);class h extends s.W{constructor(){super(...arguments),this.homeButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["home"]})),this.plusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["plus"]})),this.minusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["minus"]}))}_afterNew(){super._afterNew(),this.set("position","absolute"),this.set("layout",this._root.verticalLayout),this.addTag("zoomtools"),this.plusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.minusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.homeButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("target")){const t=this.get("target"),e=this._prevSettings.target;t&&(t instanceof a.Y&&(this._targetDisposer=this.addDisposer(t.contents.on("scale",(e=>{e==t.get("minZoomLevel")?this.minusButton.set("disabled",!0):this.minusButton.set("disabled",!1),e==t.get("maxZoomLevel")?this.plusButton.set("disabled",!0):this.plusButton.set("disabled",!1)}))),this.root.events.once("frameended",(()=>{t.get("scale")==t.get("minZoomLevel")&&this.minusButton.set("disabled",!0)}))),this._disposer=new o.FV([this.plusButton.events.on("click",(()=>{t.zoomIn()})),this.minusButton.events.on("click",(()=>{t.zoomOut()})),this.homeButton.events.on("click",(()=>{t.goHome()}))])),e&&(this._disposer&&this._disposer.dispose(),this._targetDisposer&&this._targetDisposer.dispose())}}}h.className="ZoomTools",h.classNames=s.W.classNames.concat([h.className])},2647:function(t,e,i){"use strict";i.d(e,{Y:function(){return u}});var s=i(8777),n=i(6245),r=i(7142),o=i(1112),a=i(7652),h=i(751),l=i(256),c=i(5040);class u extends s.W{constructor(){super(...arguments),this._movePoints={},this._downScale=1,this._downX=0,this._downY=0,this.contents=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,x:0,y:0,draggable:!0,background:r.A.new(this._root,{fill:(0,o.$_)(16777215),fillOpacity:0})}))}_afterNew(){super._afterNew();const t=this.contents.events;this._disposers.push(t.on("pointerdown",(t=>{this._handleThisDown(t)}))),this._disposers.push(t.on("globalpointerup",(t=>{this._handleThisUp(t)}))),this._disposers.push(t.on("globalpointermove",(t=>{this._handleThisMove(t)})));const e=this.contents.get("background");e&&(e.adapters.add("width",(t=>20*Number(t))),e.adapters.add("height",(t=>20*Number(t))),e.adapters.add("x",(t=>Number(t)-e.width()/2)),e.adapters.add("y",(t=>Number(t)-e.height()/2)));const i=this.contents;i.adapters.add("x",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.width();t=Math.min(n*s,t),t=Math.max(this.width()-n*e*(1+s),t)}return t})),i.adapters.add("y",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.height();t=Math.min(n*s,t),t=Math.max(this.height()-n*e*(1+s),t)}return t}))}_prepareChildren(){super._prepareChildren(),this.isDirty("wheelable")&&this._handleSetWheel(),this.contents._display.cancelTouch=this.get("pinchZoom",!1)}_handleSetWheel(){this.get("wheelable")?(this._wheelDp&&this._wheelDp.dispose(),this._wheelDp=this.events.on("wheel",(t=>{const e=t.originalEvent;if(!a.isLocalEvent(e,this))return;e.preventDefault();const i=this.toLocal(t.point);this._handleWheelZoom(e.deltaY,i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_handleWheelZoom(t,e){let i=this.get("zoomStep",2),s=this.contents.get("scale",1),n=s;t>0?n=s/i:t<0&&(n=s*i),n!=s&&this.zoomToPoint(e,n)}zoomToPoint(t,e){e&&(e=h.fitToRange(e,this.get("minZoomLevel",1),this.get("maxZoomLevel",32)));const i=this.contents.get("scale",1);let s=t.x,n=t.y,r=s,o=n;const a=this.contents;let l=r-(s-a.x())/i*e,c=o-(n-a.y())/i*e;return this._animateTo(l,c,e),this._za}zoomIn(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)*this.get("zoomStep",2))}zoomOut(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)/this.get("zoomStep",2))}goHome(){return this._animateTo(0,0,1)}_animateTo(t,e,i){const s=this.get("animationDuration",0),n=this.get("animationEasing"),r=this.contents;this._txa=r.animate({key:"x",to:t,duration:s,easing:n}),this._tya=r.animate({key:"y",to:e,duration:s,easing:n}),this._za=r.animate({key:"scale",to:i,duration:s,easing:n})}_handleThisUp(t){this._downPoints={}}_handleThisDown(t){const e=this.contents;this._downScale=e.get("scale",1);const i=e._downPoints;let s=l.keys(i).length;if(1==s){let e=i[1];e||(e=i[0]),e&&e.x==t.point.x&&e.y==t.point.y&&(s=0)}if(s>0){this._downX=e.x(),this._downY=e.y();const t=e._getDownPointId();if(t){let i=this._movePoints[t];i&&(e._downPoints[t]=i)}}}_handleThisMove(t){const e=t.originalEvent.pointerId;this.get("pinchZoom")&&e&&(this._movePoints[e]=t.point,l.keys(this.contents._downPoints).length>1)&&this._handlePinch()}_handlePinch(){let t=0,e=[],i=[];if(l.each(this.contents._downPoints,((s,n)=>{e[t]=n;let r=this._movePoints[s];r&&(i[t]=r),t++})),e.length>1&&i.length>1){this.contents._isDragging=!1;let t=e[0],s=e[1],n=i[0],r=i[1];if(t&&s&&n&&r){t=this.toLocal(t),s=this.toLocal(s),n=this.toLocal(n),r=this.toLocal(r);let e=Math.hypot(s.x-t.x,s.y-t.y),i=Math.hypot(r.x-n.x,r.y-n.y)/e*this._downScale,o={x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2},a={x:t.x+(s.x-t.x)/2,y:t.y+(s.y-t.y)/2},h=this._downX||0,l=this._downY||0,c=this._downScale,u=o.x-(-h+a.x)/c*i,d=o.y-(-l+a.y)/c*i;this.contents.setAll({x:u,y:d,scale:i})}}}}u.className="ZoomableContainer",u.classNames=s.W.classNames.concat([u.className])},4102:function(t,e,i){"use strict";i.d(e,{mM:function(){return at},uK:function(){return rt}});var s=i(4680),n=i(1112);class r{constructor(t=1,e=0,i=0,s=1,n=0,r=0){this.a=t,this.b=e,this.c=i,this.d=s,this.tx=n,this.ty=r}setTransform(t,e,i,s,n,r=1){this.a=Math.cos(n)*r,this.b=Math.sin(n)*r,this.c=-Math.sin(n)*r,this.d=Math.cos(n)*r,this.tx=t-(i*this.a+s*this.c),this.ty=e-(i*this.b+s*this.d)}apply(t){return{x:this.a*t.x+this.c*t.y+this.tx,y:this.b*t.x+this.d*t.y+this.ty}}applyInverse(t){const e=1/(this.a*this.d+this.c*-this.b);return{x:this.d*e*t.x+-this.c*e*t.y+(this.ty*this.c-this.tx*this.d)*e,y:this.a*e*t.y+-this.b*e*t.x+(-this.ty*this.a+this.tx*this.b)*e}}append(t){const e=this.a,i=this.b,s=this.c,n=this.d;this.a=t.a*e+t.b*s,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*s,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*s+this.tx,this.ty=t.tx*i+t.ty*n+this.ty}prepend(t){const e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){const e=this.a,i=this.c;this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty}copyFrom(t){this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty}}var o=i(6245),a=i(7449),h=i(7255),l=i(7652),c=i(5071),u=i(256),d=i(5040),p=i(751),g=2*Math.PI,f=function(t,e,i,s,n,r,o){var a=t.x,h=t.y;return{x:s*(a*=e)-n*(h*=i)+r,y:n*a+s*h+o}},_=function(t,e){var i=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),s=Math.cos(t),n=Math.sin(t),r=Math.cos(t+e),o=Math.sin(t+e);return[{x:s-n*i,y:n+s*i},{x:r+o*i,y:o-r*i},{x:r,y:o}]},m=function(t,e,i,s){var n=t*i+e*s;return n>1&&(n=1),n<-1&&(n=-1),(t*s-e*i<0?-1:1)*Math.acos(n)},y=function(t){var e=t.px,i=t.py,s=t.cx,n=t.cy,r=t.rx,o=t.ry,a=t.xAxisRotation,h=void 0===a?0:a,l=t.largeArcFlag,c=void 0===l?0:l,u=t.sweepFlag,d=void 0===u?0:u,p=[];if(0===r||0===o)return[];var y=Math.sin(h*g/360),v=Math.cos(h*g/360),w=v*(e-s)/2+y*(i-n)/2,b=-y*(e-s)/2+v*(i-n)/2;if(0===w&&0===b)return[];r=Math.abs(r),o=Math.abs(o);var x=Math.pow(w,2)/Math.pow(r,2)+Math.pow(b,2)/Math.pow(o,2);x>1&&(r*=Math.sqrt(x),o*=Math.sqrt(x));var D=function(t,e,i,s,n,r,o,a,h,l,c,u){var d=Math.pow(n,2),p=Math.pow(r,2),f=Math.pow(c,2),_=Math.pow(u,2),y=d*p-d*_-p*f;y<0&&(y=0),y/=d*_+p*f;var v=(y=Math.sqrt(y)*(o===a?-1:1))*n/r*u,w=y*-r/n*c,b=l*v-h*w+(t+i)/2,x=h*v+l*w+(e+s)/2,D=(c-v)/n,k=(u-w)/r,T=(-c-v)/n,M=(-u-w)/r,E=m(1,0,D,k),O=m(D,k,T,M);return 0===a&&O>0&&(O-=g),1===a&&O<0&&(O+=g),[b,x,E,O]}(e,i,s,n,r,o,c,d,y,v,w,b),k=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],s=!0,n=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);s=!0);}catch(t){n=!0,r=t}finally{try{!s&&a.return&&a.return()}finally{if(n)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(D,4),T=k[0],M=k[1],E=k[2],O=k[3],P=Math.abs(O)/(g/4);Math.abs(1-P)<1e-7&&(P=1);var S=Math.max(Math.ceil(P),1);O/=S;for(var N=0;N1){const e=/^([01])([01])(.*)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t.splice(i,0,e[2]),++i,e[3].length>0?t[i]=e[3]:t.splice(i,1))}if(++i,s=t[i],s.length>1){const e=/^([01])(.+)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t[i]=e[2])}}}function D(t){if(0===t||1===t)return t;throw new Error("Flag must be 0 or 1")}function k(t,e){for(;(!t.interactive||e(t))&&t._parent;)t=t._parent}function T(t,e,i){return l.addEventListener(t,l.getRendererEvent(e),(t=>{const e=l.getEventTarget(t);let s=t.touches;s?(0==s.length&&(s=t.changedTouches),i(c.copy(s),e)):i([t],e)}))}function M(t){const e=document.createElement("canvas");e.width=1,e.height=1;const i=e.getContext("2d",{willReadFrequently:!0});i.drawImage(t,0,0,1,1);try{return i.getImageData(0,0,1,1),!1}catch(e){return console.warn('Image "'+t.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function E(t){t.width=0,t.height=0,t.style.width="0px",t.style.height="0px"}function O(t){return Math.floor(t)+.5}class P{constructor(){this._x=0,this._y=0}get x(){return this._x}get y(){return this._y}set x(t){this._x=t}set y(t){this._y=t}}class S extends a.KK{constructor(t){super(),this.mask=null,this.visible=!0,this.exportable=!0,this.interactive=!1,this.inactive=null,this.wheelable=!1,this.cancelTouch=!1,this.isMeasured=!1,this.buttonMode=!1,this.alpha=1,this.compoundAlpha=1,this.angle=0,this.scale=1,this.x=0,this.y=0,this.crisp=!1,this.pivot=new P,this._localMatrix=new r,this._matrix=new r,this._uMatrix=new r,this._renderer=t}subStatus(t){return{inactive:null==this.inactive?t.inactive:this.inactive,layer:this._layer||t.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let t=this;for(;;){if(t._layer)return t._layer;if(!t._parent)return this._renderer.defaultLayer;t=t._parent}}setLayer(t,e){if(null==t)this._layer=void 0;else{const i=!0;this._layer=this._renderer.getLayer(t,i),this._layer.visible=i,this._layer.margin=e,e&&l.setInteractive(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost()}}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(t){}_getColorId(){return void 0===this._colorId&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(t){return!t.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(t){return this._isInteractive(t)}contains(t){for(;;){if(t===this)return!0;if(!t._parent)return!1;t=t._parent}}toGlobal(t){return this._matrix.apply(t)}toLocal(t){return this._matrix.applyInverse(t)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){if(!this._localBounds){const t=1e7;this._localBounds={left:t,top:t,right:-t,bottom:-t},this._addBounds(this._localBounds)}return this._localBounds}getAdjustedBounds(t){this._setMatrix();const e=this.getLocalMatrix(),i=e.apply({x:t.left,y:t.top}),s=e.apply({x:t.right,y:t.top}),n=e.apply({x:t.right,y:t.bottom}),r=e.apply({x:t.left,y:t.bottom});return{left:Math.min(i.x,s.x,n.x,r.x),top:Math.min(i.y,s.y,n.y,r.y),right:Math.max(i.x,s.x,n.x,r.x),bottom:Math.max(i.y,s.y,n.y,r.y)}}on(t,e,i){return this.interactive?this._renderer._addEvent(this,t,e,i):new a.ku((()=>{}))}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(t,e){const i=this._matrix;let s=i.tx*e,n=i.ty*e;this.crisp&&(s=O(s),n=O(n)),t.setTransform(i.a*e,i.b*e,i.c*e,i.d*e,s,n)}_transformMargin(t,e,i){const s=this._matrix;t.setTransform(s.a*e,s.b*e,s.c*e,s.d*e,(s.tx+i.left)*e,(s.ty+i.top)*e)}_transformLayer(t,e,i){i.margin?this._transformMargin(t,i.scale||e,i.margin):this._transform(t,i.scale||e)}render(t,e=0){if(this.visible&&(!1!==this.exportable||!this._renderer._omitTainted)){this._setMatrix();const i=this.subStatus(t),s=this._renderer.resolution,n=this._renderer.layers,r=this._renderer._ghostLayer,o=r.context,a=this.mask;a&&a._setMatrix(),c.each(n,(t=>{if(t){const e=t.context;e.save(),a&&(a._transformLayer(e,s,t),a._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(e,s,t),this.filter&&(e.filter=this.filter)}})),o.save(),a&&this._isInteractiveMask(i)&&(a._transformMargin(o,s,r.margin),a._runPath(o),o.clip()),this._transformMargin(o,s,r.margin),i.layer.order>0&&!e&&c.move(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,e),o.restore(),c.each(n,(t=>{t&&t.context.restore()}))}}_render(t,e=0){!1===this.exportable&&(t.layer.tainted=!0)}_ghostOnly(t=0){return t>0}_drawGhost(t,e=0){const i=this._isInteractive(t),s=t.layer.order||0;return!(!i||(0!=s||this._ghostOnly(e))&&s!=e)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some((t=>t.value===this))}shouldCancelTouch(){const t=this._renderer;return!(t.tapToActivate&&!t._touchActive)&&(!!this.cancelTouch||!!this._parent&&this._parent.shouldCancelTouch())}}class N extends S{constructor(){super(...arguments),this.interactiveChildren=!0,this._children=[]}_isInteractiveMask(t){return this.interactiveChildren||super._isInteractiveMask(t)}addChild(t){t._parent=this,this._children.push(t),t._layer&&this.registerChildLayer(t._layer)}addChildAt(t,e){t._parent=this,this._children.splice(e,0,t),t._layer&&this.registerChildLayer(t._layer)}removeChild(t){t._parent=void 0,c.removeFirst(this._children,t)}_render(t,e){super._render(t);const i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,c.each(this._children,(i=>{i.compoundAlpha=this.compoundAlpha*this.alpha,i.render(t,e)})),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(t){this._childLayers||(this._childLayers=[]),c.pushOne(this._childLayers,t),this._parent&&this._parent.registerChildLayer(t)}markDirtyLayer(t=!1){super.markDirtyLayer(),t&&this._childLayers&&c.each(this._childLayers,(t=>t.dirty=!0))}_dispose(){super._dispose(),this._childLayers&&c.each(this._childLayers,(t=>{t.dirty=!0}))}}function C(t,e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.right=Math.max(t.right,e.x),t.bottom=Math.max(t.bottom,e.y)}class L{colorize(t,e){}colorizeGhost(t,e){this.colorize(t,e)}path(t){}pathGhost(t){this.path(t)}addBounds(t){}}class A extends L{colorize(t,e){t.beginPath()}}class R extends L{constructor(t){super(),this.color=t}colorize(t,e){t.fillStyle=void 0!==e?e:this.color}}class U extends L{constructor(t){super(),this.clearShadow=t}colorize(t,e){t.fill(),this.clearShadow&&(t.shadowColor="",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}}class B extends L{colorize(t,e){t.stroke()}}class F extends L{constructor(t,e,i,s){super(),this.width=t,this.color=e,this.lineJoin=i,this.lineCap=s}colorize(t,e){t.strokeStyle=void 0!==e?e:this.color,t.lineWidth=this.width,this.lineJoin&&(t.lineJoin=this.lineJoin),this.lineCap&&(t.lineCap=this.lineCap)}}class I extends L{constructor(t){super(),this.dash=t}colorize(t,e){t.setLineDash(this.dash)}}class H extends L{constructor(t){super(),this.dashOffset=t}colorize(t,e){t.lineDashOffset=this.dashOffset}}class z extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.width=i,this.height=s}path(t){t.rect(this.x,this.y,this.width,this.height)}addBounds(t){const e=this.x,i=this.y,s=e+this.width,n=i+this.height;C(t,{x:e,y:i}),C(t,{x:s,y:i}),C(t,{x:e,y:n}),C(t,{x:s,y:n})}}class G extends L{constructor(t,e,i){super(),this.x=t,this.y=e,this.radius=i}path(t){t.moveTo(this.x+this.radius,this.y),t.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radius,y:this.y-this.radius}),C(t,{x:this.x+this.radius,y:this.y+this.radius})}}class V extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.radiusX=i,this.radiusY=s}path(t){t.ellipse(0,0,this.radiusX,this.radiusY,0,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radiusX,y:this.y-this.radiusY}),C(t,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class W extends L{constructor(t,e,i,s,n,r){super(),this.cx=t,this.cy=e,this.radius=i,this.startAngle=s,this.endAngle=n,this.anticlockwise=r}path(t){this.radius>0&&t.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(t){let e=p.getArcBounds(this.cx,this.cy,this.startAngle*p.DEGREES,this.endAngle*p.DEGREES,this.radius);C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}class Y extends L{constructor(t,e,i,s,n){super(),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.radius=n}path(t){this.radius>0&&t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(t){}}class j extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.lineTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class X extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.moveTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class $ extends L{path(t){t.closePath()}}class Z extends L{constructor(t,e,i,s,n,r){super(),this.cpX=t,this.cpY=e,this.cpX2=i,this.cpY2=s,this.toX=n,this.toY=r}path(t){t.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.cpX2,y:this.cpY2}),C(t,{x:this.toX,y:this.toY})}}class K extends L{constructor(t,e,i,s){super(),this.cpX=t,this.cpY=e,this.toX=i,this.toY=s}path(t){t.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.toX,y:this.toY})}}class q extends L{constructor(t,e,i,s,n){super(),this.color=t,this.blur=e,this.offsetX=i,this.offsetY=s,this.opacity=n}colorize(t,e){this.opacity&&(t.fillStyle=this.color),t.shadowColor=this.color,t.shadowBlur=this.blur,t.shadowOffsetX=this.offsetX,t.shadowOffsetY=this.offsetY}colorizeGhost(t,e){}}class Q extends L{constructor(t,e,i,s,n){super(),this.image=t,this.width=e,this.height=i,this.x=s,this.y=n}path(t){t.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(t){C(t,{x:this.x,y:this.y}),C(t,{x:this.width,y:this.height})}}class J extends S{constructor(){super(...arguments),this._operations=[],this.blendMode=s.b.NORMAL,this._hasShadows=!1}clear(){super.clear(),this._operations.length=0}_pushOp(t){this._operations.push(t)}beginFill(t,e=1){this._fillAlpha=e,t?t instanceof n.Il?this._pushOp(new R(t.toCSS(e))):(this.isMeasured=!0,this._pushOp(new R(t))):this._pushOp(new R("rgba(0, 0, 0, "+e+")"))}endFill(){this._pushOp(new U(this._hasShadows))}endStroke(){this._pushOp(new B)}beginPath(){this._pushOp(new A)}lineStyle(t=0,e,i=1,s,r){this._strokeAlpha=i,e?e instanceof n.Il?this._pushOp(new F(t,e.toCSS(i),s,r)):this._pushOp(new F(t,e,s,r)):this._pushOp(new F(t,"rgba(0, 0, 0, "+i+")",s,r))}setLineDash(t){this._pushOp(new I(t||[]))}setLineDashOffset(t=0){this._pushOp(new H(t))}drawRect(t,e,i,s){this._pushOp(new z(t,e,i,s))}drawCircle(t,e,i){this._pushOp(new G(t,e,i))}drawEllipse(t,e,i,s){this._pushOp(new V(t,e,i,s))}arc(t,e,i,s,n,r=!1){this._pushOp(new W(t,e,i,s,n,r))}arcTo(t,e,i,s,n){this._pushOp(new Y(t,e,i,s,n))}lineTo(t,e){this._pushOp(new j(t,e))}moveTo(t,e){this._pushOp(new X(t,e))}bezierCurveTo(t,e,i,s,n,r){this._pushOp(new Z(t,e,i,s,n,r))}quadraticCurveTo(t,e,i,s){this._pushOp(new K(t,e,i,s))}closePath(){this._pushOp(new $)}shadow(t,e=0,i=0,s=0,n){this._hasShadows=!0,this._pushOp(new q(n?t.toCSS(n):t.toCSS(this._fillAlpha||this._strokeAlpha),e,i,s))}image(t,e,i,s,n){this._pushOp(new Q(t,e,i,s,n))}svgPath(t){let e=0,i=0,s=null,n=null,r=null,o=null;const a=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,h=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g,l=this._operations.length;try{let l;for(;null!==(l=a.exec(t));){const t=l[1],a=l[2],u=[];for(;null!==(l=h.exec(a));)u.push(l[1]);switch("S"!==t&&"s"!==t&&"C"!==t&&"c"!==t&&(s=null,n=null),"Q"!==t&&"q"!==t&&"T"!==t&&"t"!==t&&(r=null,o=null),t){case"M":b(t,u.length,2),e=+u[0],i=+u[1],this.moveTo(e,i);for(let t=2;t{this.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y),e=t.x,i=t.y}))}break;case"Z":case"z":v(t,u.length,0),this.closePath()}}}catch(e){this._operations.length=l,console.warn("Error when parsing svgPath:\n "+e.message+"\n"+t)}}_runPath(t){t.beginPath(),c.each(this._operations,(e=>{e.path(t)}))}_render(t,e=0){super._render(t);const i=t.layer.dirty,s=this._isInteractive(t),n=this._ghostOnly(e),r=this._drawGhost(t,e);if(i||s||n){const e=t.layer.context,s=this._renderer._ghostLayer.context;let o;i&&!n&&(e.globalCompositeOperation=this.blendMode,e.beginPath()),r&&(s.beginPath(),o=this._getColorId()),c.each(this._operations,(t=>{i&&!n&&(t.path(e),t.colorize(e,void 0)),r&&(t.pathGhost(s),t.colorizeGhost(s,o))}))}}renderDetached(t){if(this.visible){this._setMatrix(),t.save();const e=this.mask;e&&(e._setMatrix(),e._transform(t,1),e._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transform(t,1),this.filter&&(t.filter=this.filter),t.globalCompositeOperation=this.blendMode,t.beginPath(),c.each(this._operations,(e=>{e.path(t),e.colorize(t,void 0)})),t.restore()}}_addBounds(t){this.visible&&this.isMeasured&&c.each(this._operations,(e=>{e.addBounds(t)}))}}class tt extends S{constructor(t,e,i){super(t),this.resolution=1,this.textVisible=!0,this._originalScale=1,this.text=e,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_shared(t){this.style.textAlign&&(t.textAlign=this.style.textAlign),this.style.direction&&(t.direction=this.style.direction),this.style.textBaseline&&(t.textBaseline=this.style.textBaseline)}_prerender(t,e=!1,i=!1){super._render(t);const s=t.layer.context,r=this._renderer._ghostLayer.context,o=this.style;let a=this._getFontStyle(void 0,i);s.font=a,this._isInteractive(t)&&!e&&(r.font=a),o.fill&&(o.fill instanceof n.Il?s.fillStyle=o.fill.toCSS(null!=o.fillOpacity?o.fillOpacity:1):s.fillStyle=o.fill),o.shadowColor&&(t.layer.context.shadowColor=o.shadowColor.toCSS(o.shadowOpacity||1)),o.shadowBlur&&(t.layer.context.shadowBlur=o.shadowBlur),o.shadowOffsetX&&(t.layer.context.shadowOffsetX=o.shadowOffsetX),o.shadowOffsetY&&(t.layer.context.shadowOffsetY=o.shadowOffsetY),this._shared(s),this._isInteractive(t)&&!e&&(r.fillStyle=this._getColorId(),this._shared(r))}_getFontStyle(t,e=!1){const i=this.style;let s=[];return t&&t.fontVariant?s.push(t.fontVariant):i.fontVariant&&s.push(i.fontVariant),e||(t&&t.fontWeight?s.push(t.fontWeight):i.fontWeight&&s.push(i.fontWeight)),t&&t.fontStyle?s.push(t.fontStyle):i.fontStyle&&s.push(i.fontStyle),t&&t.fontSize?(d.isNumber(t.fontSize)&&(t.fontSize=t.fontSize+"px"),s.push(t.fontSize)):i.fontSize&&(d.isNumber(i.fontSize)&&(i.fontSize=i.fontSize+"px"),s.push(i.fontSize)),t&&t.fontFamily?s.push(t.fontFamily):i.fontFamily?s.push(i.fontFamily):s.length&&s.push("Arial"),s.join(" ")}_render(t,e=0){if(this._textInfo||this._measure(t),this.textVisible){const i=this._isInteractive(t),s=t.layer.context,r=t.layer.dirty,o=this._renderer._ghostLayer.context,a=this._ghostOnly(e),l=this._drawGhost(t,e);s.save(),o.save(),this._prerender(t),c.each(this._textInfo,((e,u)=>{c.each(e.textChunks,((c,u)=>{if(c.style&&(s.save(),o.save(),a||(s.font=c.style),this._isInteractive(t)&&(o.font=c.style)),c.fill&&(s.save(),a||(s.fillStyle=c.fill.toCSS())),r&&!a&&s.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),"underline"==c.textDecoration||"line-through"==c.textDecoration){let t=1,i=1,r=c.height;const o=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(o)>-1){const t=this._measureText(c.text,s);c.width=t.actualBoundingBoxLeft+t.actualBoundingBoxRight}let l,u=c.offsetX;switch(this.style.textAlign){case"right":case"end":u-=c.width;break;case"center":u-=c.width/2}if(c.style)switch(h.V.getTextStyle(c.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":t=2}r&&(i=r/20),l="line-through"==c.textDecoration?t+e.offsetY+c.offsetY-c.height/2:t+1.5*i+e.offsetY+c.offsetY,a||(s.save(),s.beginPath(),c.fill?s.strokeStyle=c.fill.toCSS():this.style.fill&&this.style.fill instanceof n.Il&&(s.strokeStyle=this.style.fill.toCSS()),s.lineWidth=t*i,s.moveTo(u,l),s.lineTo(u+c.width,l),s.stroke(),s.restore())}i&&this.interactive&&l&&o.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),c.fill&&s.restore(),c.style&&(s.restore(),o.restore())}))})),s.restore(),o.restore()}}_addBounds(t){if(this.visible&&this.isMeasured){const e=this._measure({inactive:this.inactive,layer:this.getLayer()});C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction;this._textInfo=[];const n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=d.isNumber(r)&&("wrap"==n||"wrap-no-break"==n);e.save(),i.save(),this._prerender(t,!0,this._ignoreFontWeight());const p="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",g=this.text.toString().replace(/\r/g,"").split(/\n/);let f,_=!0,m=0,y=0,v=0;c.each(g,((t,s)=>{let n;for(n=""==t?[{type:"value",text:""}]:h.V.chunk(t,!1,this.style.ignoreFormatting);n.length>0;){let t={offsetY:v,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const s=this._measureText(p,e),g=s.actualBoundingBoxAscent+s.actualBoundingBoxDescent;let w;t.height=g,t.ascent=s.actualBoundingBoxAscent;let b,x,D,k=this.style.textDecoration,T=!1,M=!0,E=[];c.eachContinue(n,((s,o)=>{if("format"==s.type)if("[/]"==s.text)_||(e.restore(),i.restore(),_=!0),b=void 0,f=void 0,x=void 0,k=this.style.textDecoration,D=void 0,w=s.text;else{_||(e.restore(),i.restore());let n=h.V.getTextStyle(s.text);const r=this._getFontStyle(n);e.save(),i.save(),e.font=r,f=r,w=s.text,n.textDecoration&&(k=n.textDecoration),n.fill&&(b=n.fill),n.width&&(x=d.toNumber(n.width)),n.verticalAlign&&(D=n.verticalAlign),_=!1;const o=this._measureText(p,e),a=o.actualBoundingBoxAscent+o.actualBoundingBoxDescent;a>t.height&&(t.height=a),o.actualBoundingBoxAscent>t.ascent&&(t.ascent=o.actualBoundingBoxAscent)}else if("value"==s.type&&!T){const i=this._measureText(s.text,e);let h=i.actualBoundingBoxLeft+i.actualBoundingBoxRight;if(a){this.truncated=void 0;let i=M||this.style.breakWords||!1;const n=this.style.ellipsis||"",o=this._measureText(n,e),a=o.actualBoundingBoxLeft+o.actualBoundingBoxRight;if(t.width+h>r){const o=r-t.width-a;s.text=this._truncateText(e,s.text,o,i),s.text+=n,T=!0,this.truncated=!0}}else if(u&&t.width+h>r){const i=r-t.width,a=this._truncateText(e,s.text,i,!1,M&&"wrap-no-break"!=this.style.oversizedBehavior);if(""==a)return this.textVisible=!0,!1;E=n.slice(o+1),l.trim(a)!=l.trim(s.text)&&(E.unshift({type:"value",text:s.text.substr(a.length)}),w&&E.unshift({type:"format",text:w})),s.text=l.trim(a),n=[],T=!0}let c=1,d=1;if(f&&x&&x>h){const t=h/x;switch(this.style.textAlign){case"right":case"end":c=t;break;case"center":c=t,d=t;break;default:d=t}h=x}const p=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent;p>t.height&&(t.height=p),i.actualBoundingBoxAscent>t.ascent&&(t.ascent=i.actualBoundingBoxAscent),t.width+=h,t.left+=i.actualBoundingBoxLeft/c,t.right+=i.actualBoundingBoxRight/d,t.textChunks.push({style:f,fill:b,text:s.text,width:h,height:p,left:i.actualBoundingBoxLeft,right:i.actualBoundingBoxRight,ascent:i.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:k,verticalAlign:D}),M=!1}return!0})),this.style.lineHeight instanceof o.gG?(t.height*=this.style.lineHeight.value,t.ascent*=this.style.lineHeight.value):(t.height*=this.style.lineHeight||1.2,t.ascent*=this.style.lineHeight||1.2),m{let i=0;c.each(t.textChunks,(e=>{if(e.offsetX=i+e.left-t.left,e.offsetY+=t.height-t.height*(this.style.baselineRatio||.19),i+=e.width*(s?-1:1),e.verticalAlign)switch(e.verticalAlign){case"super":e.offsetY-=t.height/2-e.height/2;break;case"sub":e.offsetY+=e.height/2}}))}));const w={left:s?-y:-m,top:0,right:s?m:y,bottom:v};if("none"!==n){const t=this._fitRatio(w);if(t<1)if("fit"==n)d.isNumber(this.style.minScale)&&ti&&""!=e);return e}_measureText(t,e){let i=e.measureText(t),s={};if(null==i.actualBoundingBoxAscent){const e=document.createElement("div");e.innerText=t,e.style.visibility="hidden",e.style.position="absolute",e.style.top="-1000000px;",e.style.fontFamily=this.style.fontFamily||"",e.style.fontSize=this.style.fontSize+"",document.body.appendChild(e);const n=e.getBoundingClientRect();document.body.removeChild(e);const r=n.height,o=i.width;s={actualBoundingBoxAscent:r,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:o,fontBoundingBoxAscent:r,fontBoundingBoxDescent:0,width:o}}else s={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const n=i.width;switch(this.style.textAlign){case"right":case"end":s.actualBoundingBoxLeft=n,s.actualBoundingBoxRight=0;break;case"center":s.actualBoundingBoxLeft=n/2,s.actualBoundingBoxRight=n/2;break;default:s.actualBoundingBoxLeft=0,s.actualBoundingBoxRight=n}return s}}class et{constructor(){this.lineHeight=(0,o.aQ)(120),this.baselineRatio=.19,this.oversizedBehavior="none",this.breakWords=!1,this.ellipsis="…",this.ignoreFormatting=!1}}class it extends tt{constructor(){super(...arguments),this.textType="circular",this.inside=!1,this.orientation="auto",this.kerning=0,this._textReversed=!1}_render(t,e=0){"circular"===this.textType?this._renderCircular(t,e):super._render(t,e)}_renderCircular(t,e=0){if(this.textVisible){this._prerender(t);const i=this._isInteractive(t),s=t.layer.context,n=t.layer.dirty,r=this._renderer._ghostLayer.context;s.save(),i&&r.save(),this._textInfo||this._measure(t);let o=this.radius||0,a=this.startAngle||0,h=0,l=this.orientation,u="auto"==l?"auto":"inward"==l;const d=this.inside,g=this.style.textAlign||"left",f=this.kerning||0;let _="left"==g?1:-1;const m=!this._textReversed,y=this._ghostOnly(e),v=this._drawGhost(t,e);if("auto"==u){let t=0,e=0;c.each(this._textInfo,((e,i)=>{const s=a+e.width/(o-e.height)/2*-_;s>t&&(t=s)})),e="left"==g?(t+h/2)*p.DEGREES:"right"==g?(t-h/2)*p.DEGREES:a*p.DEGREES,e=p.normalizeAngle(e),u=e>=270||e<=90}1==u&&m&&(this._textInfo.reverse(),this._textReversed=!0),c.each(this._textInfo,((t,e)=>{const l=t.height;d||(o+=l),(-1==_&&u||1==_&&!u)&&m&&t.textChunks.reverse();let p=a;h=0,"center"==g&&(p+=t.width/(o-l)/2*-_,h=p-a),p+=Math.PI*(u?0:1),s.save(),i&&r.save(),y||s.rotate(p),i&&r.rotate(p);let w=0;c.each(t.textChunks,((t,e)=>{const a=t.text,h=t.width;w=h/2/(o-l)*_,y||s.rotate(w),i&&r.rotate(w),t.style&&(s.save(),r.save(),y||(s.font=t.style),i&&(r.font=t.style)),t.fill&&(s.save(),y||(s.fillStyle=t.fill.toCSS())),y||(s.textBaseline="middle",s.textAlign="center"),i&&(r.textBaseline="middle",r.textAlign="center"),n&&!y&&s.fillText(a,0,(u?1:-1)*(0-o+l/2)),i&&v&&r.fillText(a,0,(u?1:-1)*(0-o+l/2)),t.fill&&s.restore(),t.style&&(s.restore(),r.restore()),w=(h/2+f)/(o-l)*_,y||s.rotate(w),i&&r.rotate(w)})),s.restore(),i&&r.restore(),d&&(o-=l)})),s.restore(),i&&r.restore()}}_measure(t){return"circular"===this.textType?this._measureCircular(t):super._measure(t)}_measureCircular(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction,n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=this.style.ellipsis||"";let p;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,e.save(),i.save(),this._prerender(t,!0);const g=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,_=0,m=0;return c.each(g,((t,n)=>{let g,y,v,w=h.V.chunk(t,!1,this.style.ignoreFormatting),b={offsetY:m,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};c.each(w,((t,n)=>{if("format"==t.type){if("[/]"==t.text)f||(e.restore(),i.restore(),f=!0),y=void 0,g=void 0,v=void 0;else{let s=h.V.getTextStyle(t.text);const n=this._getFontStyle(s);e.save(),i.save(),e.font=n,g=n,s.fill&&(y=s.fill),s.width&&(v=d.toNumber(s.width)),f=!1}a&&(p=this._measureText(u,e))}else if("value"==t.type){let i=t.text.match(/./gu)||[];s&&(i=l.splitString(t.text),i.reverse());for(let t=0;to&&(o=v);const h=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;if(h>b.height&&(b.height=h),n.actualBoundingBoxAscent>b.ascent&&(b.ascent=n.actualBoundingBoxAscent),_+=o,a){p||(p=this._measureText(u,e));const t=p.actualBoundingBoxLeft+p.actualBoundingBoxRight;if(_+t>r){1==b.textChunks.length?this.textVisible=!1:(b.width+=t,b.left+=p.actualBoundingBoxLeft,b.right+=p.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:u,width:t,height:h+p.actualBoundingBoxDescent,left:p.actualBoundingBoxLeft,right:p.actualBoundingBoxRight,ascent:p.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0}));break}}b.width+=o,b.left+=n.actualBoundingBoxLeft,b.right+=n.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:s,width:o,height:h+n.actualBoundingBoxDescent,left:n.actualBoundingBoxLeft,right:n.actualBoundingBoxRight,ascent:n.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0})}}})),this.style.lineHeight instanceof o.gG?b.height*=this.style.lineHeight.value:b.height*=this.style.lineHeight||1.2,this._textInfo.push(b),m+=b.height})),f||(e.restore(),i.restore()),"hide"==n&&_>r&&(this.textVisible=!1),c.each(this._textInfo,(t=>{c.each(t.textChunks,(e=>{e.offsetY+=Math.round((t.height-e.height+(t.ascent-e.ascent))/2)}))})),e.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class st extends S{constructor(t,e){super(t),this.image=e}_dispose(){super._dispose(),this._imageMask&&E(this._imageMask)}getLocalBounds(){if(!this._localBounds){let t=0,e=0;this.width&&(t=this.width),this.height&&(e=this.height),this._localBounds={left:0,top:0,right:t,bottom:e},this._addBounds(this._localBounds)}return this._localBounds}_render(t,e=0){if(super._render(t),this.image){if(void 0===this.tainted&&(this.tainted=M(this.image),t.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;const i=this._ghostOnly(e),s=this._drawGhost(t,e);if(t.layer.dirty&&!i){this.shadowColor&&(t.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(t.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(t.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(t.layer.context.shadowOffsetY=this.shadowOffsetY);const e=this.width||this.image.naturalWidth,i=this.height||this.image.naturalHeight;t.layer.context.drawImage(this.image,0,0,e,i)}if(this.interactive&&this._isInteractive(t)&&s){const t=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(t,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(t){if(void 0===this._imageMask){const e=this.width||t.naturalWidth,i=this.height||t.naturalHeight,s=document.createElement("canvas");s.width=e,s.height=i;const n=s.getContext("2d");n.imageSmoothingEnabled=!1,n.fillStyle=this._getColorId(),n.fillRect(0,0,e,i),M(t)||(n.globalCompositeOperation="destination-in",n.drawImage(t,0,0,e,i)),this._imageMask=s}return this._imageMask}}class nt{constructor(t,e,i,s){this.event=t,this.originalPoint=e,this.point=i,this.bbox=s,this.simulated=!1,this.native=!0,l.supports("touchevents")&&t instanceof Touch?this.id=t.identifier:this.id=null}}class rt extends a.rk{constructor(t){if(super(),this.view=document.createElement("div"),this._layerDom=document.createElement("div"),this.layers=[],this._dirtyLayers=[],this.defaultLayer=this.getLayer(0),this._ghostLayer=new ot,this._deferredGhostLayers=[],this._patternCanvas=document.createElement("canvas"),this._patternContext=this._patternCanvas.getContext("2d"),this._realWidth=0,this._realHeight=0,this._calculatedWidth=0,this._calculatedHeight=0,this.interactionsEnabled=!0,this._listeners={},this._events={},this._colorId=0,this._colorMap={},this._forceInteractive=0,this._omitTainted=!1,this._hovering=new Set,this._dragging=[],this._mousedown=[],this.tapToActivate=!1,this.tapToActivateTimeout=3e3,this._touchActive=!1,this.resolution=null==t?window.devicePixelRatio:t,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new a.ku((()=>{u.each(this._events,((t,e)=>{e.disposer.dispose()})),c.each(this.layers,(t=>{E(t.view),t.exportableView&&E(t.exportableView)})),E(this._ghostLayer.view),E(this._patternCanvas)}))),this._disposers.push(l.onZoom((()=>{null==t&&(this.resolution=window.devicePixelRatio)}))),l.supports("touchevents")){const t=t=>{0!==this._dragging.length&&c.eachContinue(this._dragging,(e=>!e.value.shouldCancelTouch()||(t.preventDefault(),!1))),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(l.addEventListener(window,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchmove",(()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()}),{passive:!0})),this._disposers.push(l.addEventListener(window,"click",(t=>{this._touchActive=!1}),{passive:!0})),this._disposers.push(l.addEventListener(this.view,"click",(t=>{window.setTimeout((()=>{this._touchActive=!0,this._delayTouchDeactivate()}),100)}),{passive:!0}))}l.supports("wheelevents")&&this._disposers.push(l.addEventListener(this.view,"wheel",(t=>{let e=!1;this._hovering.forEach((t=>{if(t.wheelable)return e=!0,!1})),e&&t.preventDefault()}),{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout((()=>{this._touchActive=!1}),this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(t){t?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(t,e,i,s){return this.defaultLayer.context.createLinearGradient(t,e,i,s)}createRadialGradient(t,e,i,s,n,r){return this.defaultLayer.context.createRadialGradient(t,e,i,s,n,r)}createPattern(t,e,i,s,n){return this._patternCanvas.width=s,this._patternCanvas.height=n,this._patternContext.clearRect(0,0,s,n),e.renderDetached(this._patternContext),t.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new N(this)}makeGraphics(){return new J(this)}makeText(t,e){return new tt(this,t,e)}makeTextStyle(){return new et}makeRadialText(t,e){return new it(this,t,e)}makePicture(t){return new st(this,t)}resizeLayer(t){t.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(t,e,i,s){this._realWidth=t,this._realHeight=e,this._calculatedWidth=i,this._calculatedHeight=s,c.each(this.layers,(t=>{t&&(t.dirty=!0,this.resizeLayer(t))})),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(t=!1){const e=document.createElement("canvas"),i=e.getContext("2d",{willReadFrequently:t}),s=new at(e,i);return e.style.position="absolute",e.style.top="0px",e.style.left="0px",s}getLayerByOrder(t){const e=this.layers,i=e.length;for(let s=0;st.order>e.order?1:t.order{t&&t.dirty&&t.visible&&(this._dirtyLayers.push(t),t.clear())})),this._ghostLayer.clear(),t.render({inactive:null,layer:this.defaultLayer});const e=this._deferredGhostLayers;if(e.length&&(e.sort(((t,e)=>t-e)),c.each(e,(e=>{t.render({inactive:null,layer:this.defaultLayer},e)}))),this._ghostLayer.context.restore(),c.each(this.layers,(t=>{if(t){const e=t.context;e.beginPath(),e.moveTo(0,0),e.stroke()}})),c.each(this._dirtyLayers,(t=>{t.context.restore(),t.dirty=!1})),this._hovering.size&&this._lastPointerMoveEvent){const{events:t,target:e,native:i}=this._lastPointerMoveEvent;c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))}}paintId(t){const e=function(t){const e=[0,0,0];for(let i=0;i<24;i++)e[i%3]<<=1,e[i%3]|=1&t,t>>=1;return(0|e[0])+(e[1]<<8)+(e[2]<<16)}(++this._colorId),i=n.Il.fromHex(e).toCSS();return this._colorMap[i]=t,i}_removeObject(t){void 0!==t._colorId&&delete this._colorMap[t._colorId]}_adjustBoundingBox(t){const e=this._ghostLayer.margin;return new DOMRect(-e.left,-e.top,t.width+e.left+e.right,t.height+e.top+e.bottom)}getEvent(t,e=!0){const i=this.view.getBoundingClientRect(),s=t.clientX||0,n=t.clientY||0,r=this._calculatedWidth/this._realWidth,o=this._calculatedHeight/this._realHeight,a={x:s-i.left,y:n-i.top},h={x:(s-(e?i.left:0))*r,y:(n-(e?i.top:0))*o};return new nt(t,a,h,this._adjustBoundingBox(i))}_getHitTarget(t,e,i){if(0===e.width||0===e.height||t.xe.right||t.ye.bottom)return;if(!i||!this._layerDom.contains(i))return;const s=this._ghostLayer.getImageData(t,e);if(0===s.data[0]&&0===s.data[1]&&0===s.data[2])return!1;const r=n.Il.fromRGB(s.data[0],s.data[1],s.data[2]).toCSS();return this._colorMap[r]}getObjectAtPoint(t){const e=this._ghostLayer.getImageArray(t);if(0===e[0]&&0===e[1]&&0===e[2])return;const i=n.Il.fromRGB(e[0],e[1],e[2]).toCSS();return this._colorMap[i]}_withEvents(t,e){const i=this._events[t];if(void 0!==i){i.dispatching=!0;try{e(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,c.keepIf(i.callbacks,(t=>!t.disposed)),0===i.callbacks.length&&(i.disposer.dispose(),delete this._events[t]))}}}_dispatchEventAll(t,e){this.interactionsEnabled&&this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.callback.call(t.context,e)}))}))}_dispatchEvent(t,e,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.object!==e||(t.callback.call(t.context,i),s=!0)}))})),s}_dispatchMousedown(t,e){const i=t.button;if(0!=i&&2!=i&&1!=i&&void 0!==i)return;const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);if(n){const t=s.id;let e=!1;k(n,(i=>{const n={id:t,value:i};return this._mousedown.push(n),!e&&this._dispatchEvent("pointerdown",i,s)&&(e=!0,this._dragging.some((e=>e.value===i&&e.id===t))||this._dragging.push(n)),!0}))}}_dispatchGlobalMousemove(t,e,i){const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);s.native=i,n?(this._hovering.forEach((t=>{t.contains(n)||(this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s))})),s.native&&k(n,(t=>(this._hovering.has(t)||(this._hovering.add(t),t.cursorOverStyle&&(t._replacedCursorStyle=l.getStyle(document.body,"cursor"),l.setStyle(document.body,"cursor",t.cursorOverStyle)),this._dispatchEvent("pointerover",t,s)),!0)))):(this._hovering.forEach((t=>{t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s)})),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(t){this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle)}_dispatchGlobalMouseup(t,e){const i=this.getEvent(t);i.native=e,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(t){if(0!==this._dragging.length){const e=this.getEvent(t),i=e.id;this._dragging.forEach((t=>{t.id===i&&this._dispatchEvent("pointermove",t.value,e)}))}}_dispatchDragEnd(t,e){const i=t.button;let s;if(0==i||void 0===i)s="click";else if(2==i)s="rightclick";else{if(1!=i)return;s="middleclick"}const n=this.getEvent(t),r=n.id;if(0!==this._mousedown.length){const t=this._getHitTarget(n.originalPoint,n.bbox,e);t&&this._mousedown.forEach((e=>{e.id===r&&e.value.contains(t)&&this._dispatchEvent(s,e.value,n)})),this._mousedown.length=0}0!==this._dragging.length&&(this._dragging.forEach((t=>{t.id===r&&this._dispatchEvent("pointerup",t.value,n)})),this._dragging.length=0)}_dispatchDoubleClick(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("dblclick",t,i)))}_dispatchWheel(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("wheel",t,i)))}_makeSharedEvent(t,e){if(void 0===this._listeners[t]){const i=e();this._listeners[t]=new a.DM((()=>{delete this._listeners[t],i.dispose()}))}return this._listeners[t].increment()}_onPointerEvent(t,e){let i=!1,s=null;function n(){s=null,i=!1}return new a.FV([new a.ku((()=>{null!==s&&clearTimeout(s),n()})),l.addEventListener(this.view,l.getRendererEvent(t),(t=>{i=!0,null!==s&&clearTimeout(s),s=window.setTimeout(n,0)})),T(window,t,((t,n)=>{null!==s&&(clearTimeout(s),s=null),e(t,n,i),i=!1}))])}_initEvent(t){switch(t){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",(()=>{const t=(t,e,i)=>{this._lastPointerMoveEvent={events:t,target:e,native:i},c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))};return new a.FV([this._onPointerEvent("pointerdown",t),this._onPointerEvent("pointermove",t)])}));case"globalpointerup":return this._makeSharedEvent("pointerup",(()=>{const t=this._onPointerEvent("pointerup",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}})),e=this._onPointerEvent("pointercancel",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}}));return new a.ku((()=>{t.dispose(),e.dispose()}))}));case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",(()=>{const t=this._onPointerEvent("pointerdown",((t,e)=>{c.each(t,(t=>{this._dispatchMousedown(t,e)}))})),e=this._onPointerEvent("pointermove",(t=>{c.each(t,(t=>{this._dispatchDragMove(t)}))})),i=this._onPointerEvent("pointerup",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))})),s=this._onPointerEvent("pointercancel",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))}));return new a.ku((()=>{t.dispose(),e.dispose(),i.dispose(),s.dispose()}))}));case"dblclick":return this._makeSharedEvent("dblclick",(()=>this._onPointerEvent("dblclick",((t,e)=>{c.each(t,(t=>{this._dispatchDoubleClick(t,e)}))}))));case"wheel":return this._makeSharedEvent("wheel",(()=>l.addEventListener(this.view,l.getRendererEvent("wheel"),(t=>{this._dispatchWheel(t,l.getEventTarget(t))}),{passive:!1})))}}_addEvent(t,e,i,s){let n=this._events[e];void 0===n&&(n=this._events[e]={disposer:this._initEvent(e),callbacks:[],dispatching:!1,cleanup:!1});const r={object:t,context:s,callback:i,disposed:!1};return n.callbacks.push(r),new a.ku((()=>{r.disposed=!0,n.dispatching?n.cleanup=!0:(c.removeFirst(n.callbacks,r),0===n.callbacks.length&&(n.disposer.dispose(),delete this._events[e]))}))}getCanvas(t,e){this.render(t),e||(e={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),n=Math.floor(this._calculatedHeight*this.resolution);if(e.minWidth&&e.minWidth>s){let t=e.minWidth/s;t>i&&(i=t*this.resolution)}if(e.minHeight&&e.minHeight>n){let t=e.minHeight/n;t>i&&(i=t*this.resolution)}if(e.maxWidth&&e.maxWidthn){let t=e.maxHeight/n;t{if(t&&t.visible&&(t.tainted||o)){d=!0,t.exportableView=t.view,t.exportableContext=t.context,t.view=document.createElement("canvas"),t.view.style.position="fixed",t.view.style.top="-10000px",this.view.appendChild(t.view),r.push(t.view);let e=0,o=0;t.margin&&(e+=t.margin.left||0+t.margin.right||0,o+=t.margin.top||0+t.margin.bottom||0),t.view.width=s+e,t.view.height=n+o,t.context=t.view.getContext("2d"),t.dirty=!0,t.scale=i}})),d&&(this._omitTainted=!0,this.render(t),this._omitTainted=!1),c.each(this.layers,(t=>{if(t&&t.visible){let e=0,i=0;t.margin&&(e=-(t.margin.left||0)*this.resolution,i=-(t.margin.top||0)*this.resolution),h.drawImage(t.view,e,i),t.exportableView&&(t.view=t.exportableView,t.exportableView=void 0),t.exportableContext&&(t.context=t.exportableContext,t.exportableContext=void 0),l{t.style.position="",t.style.top="",this.view.removeChild(t)})),a}}class ot{constructor(){this.margin={left:0,right:0,top:0,bottom:0},this._resolution=1,this._width=0,this._height=0,this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(t,e,i,s,n){this._resolution=n,t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(t,e){return this.context.getImageData(Math.round((t.x-e.left)/e.width*this._width),Math.round((t.y-e.top)/e.height*this._height),1,1)}getImageArray(t){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const e=this.imageArray,i=Math.round(t.x*this._resolution),s=4*(Math.round(t.y*this._resolution)*this._width+i);return[e[s],e[s+1],e[s+2],e[s+3]]}setMargin(t){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,c.each(t,(t=>{t.margin&&(this.margin.left=Math.max(this.margin.left,t.margin.left),this.margin.right=Math.max(this.margin.right,t.margin.right),this.margin.top=Math.max(this.margin.top,t.margin.top),this.margin.bottom=Math.max(this.margin.bottom,t.margin.bottom))}))}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class at{constructor(t,e){this.tainted=!0,this.order=0,this.visible=!0,this.dirty=!0,this._width=0,this._height=0,this.view=t,this.context=e}resize(t,e,i,s,n){null!=this.width&&(t=this.width,i=this.width),null!=this.height&&(e=this.height,s=this.height),this.margin?(t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}},4680:function(t,e,i){"use strict";var s;i.d(e,{b:function(){return s}}),function(t){t.ADD="lighter",t.COLOR="color",t.COLOR_BURN="color-burn",t.COLOR_DODGE="color-dodge",t.DARKEN="darken",t.DIFFERENCE="difference",t.DST_OVER="destination-over",t.EXCLUSION="exclusion",t.HARD_LIGHT="hard-light",t.HUE="hue",t.LIGHTEN="lighten",t.LUMINOSITY="luminosity",t.MULTIPLY="multiply",t.NORMAL="source-over",t.OVERLAY="overlay",t.SATURATION="saturation",t.SCREEN="screen",t.SOFT_LIGHT="soft-light",t.SRC_ATOP="source-atop",t.XOR="xor"}(s||(s={}))},1437:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}getFill(t){return{addColorStop:(t,e)=>{}}}_changed(){super._changed()}getBounds(t){const e=this.get("target");if(e){let i=e.globalBounds();const s=t.toLocal({x:i.left,y:i.top}),n=t.toLocal({x:i.right,y:i.top}),r=t.toLocal({x:i.right,y:i.bottom}),o=t.toLocal({x:i.left,y:i.bottom});return{left:Math.min(s.x,n.x,r.x,o.x),top:Math.min(s.y,n.y,r.y,o.y),right:Math.max(s.x,n.x,r.x,o.x),bottom:Math.max(s.y,n.y,r.y,o.y)}}return t._display.getLocalBounds()}}n.className="Gradient",n.classNames=s.JH.classNames.concat([n.className])},1747:function(t,e,i){"use strict";i.d(e,{o:function(){return h}});var s=i(1437),n=i(1112),r=i(5071),o=i(5040),a=i(751);class h extends s.p{getFill(t){const e=this.get("rotation",0);let i=this.getBounds(t),s=i.left||0,h=i.right||0,l=i.top||0,c=i.bottom||0,u=a.cos(e),d=a.sin(e),p=u*(h-s),g=d*(c-l);0==p&&(p=1),0==g&&(g=1);let f=Math.max(p,g);const _=this._root._renderer.createLinearGradient(s,l,s+f*u,l+f*d),m=this.get("stops");if(m){let t=0;r.each(m,(e=>{let i=e.offset;o.isNumber(i)||(i=t/(m.length-1));let s=e.opacity;o.isNumber(s)||(s=1);let r=e.color;if(r){const t=e.lighten;t&&(r=n.Il.lighten(r,t));const o=e.brighten;o&&(r=n.Il.brighten(r,o)),_.addColorStop(i,"rgba("+r.r+","+r.g+","+r.b+","+s+")")}t++}))}return _}}h.className="LinearGradient",h.classNames=s.p.classNames.concat([h.className])},3035:function(t,e,i){"use strict";i.d(e,{y:function(){return r}});var s=i(3437),n=i(5040);class r extends s.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("width",100),e=this.get("height",100),i=this.get("gap",0),s=this.get("strokeWidth",1);if(i){let n=i+s,r=e/n,o=this.get("angle",0)*Math.PI/180;if(0===o)for(let e=-r;e<2*r;e++){const i=Math.round(e*n-n/2)+.5;this._display.moveTo(-t,i),this._display.lineTo(2*t,i)}else{const i=Math.cos(o),s=Math.sin(o),r=2*Math.sqrt(t*t+e*e),a=n/Math.max(Math.abs(i),Math.abs(s)),h=2*Math.ceil(r/a);for(let t=-h;t0&&(r.beginFill(s,n),r.drawRect(0,0,e,i),r.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,r,t,e,i)}this._clear=!1}}n.className="Pattern",n.classNames=s.JH.classNames.concat([n.className])},4429:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(3437);class n extends s.c{_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const t=this.get("canvas");t&&(this.set("width",t.width),this.set("height",t.height))}_draw(){super._draw();const t=this.get("colorOpacity");void 0!==t&&(this._display.alpha=Math.max(0,t));const e=this._image;if(e){const t=this.get("width",100),i=this.get("height",100),s=this.get("fit","image");let n=0,r=0;"pattern"==s?(n=t,r=i,this.markDirty()):(n=e.width,r=e.height,"image"==s&&(this.set("width",n),this.set("height",r)));let o=0,a=0;this.get("centered",!0)&&(o=t/2-n/2,a=i/2-r/2),this._display.image(e,n,r,o,a)}const i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){const t=this.get("src");if(t){const e=new Image;e.src=t,e.decode().then((()=>{this._image=e,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{}))}}}n.className="PicturePattern",n.classNames=s.c.classNames.concat([n.className])},6490:function(t,e,i){"use strict";i.d(e,{SR:function(){return s},Wn:function(){return u},XG:function(){return p},ne:function(){return h},w6:function(){return l}});var s,n=i(7582),r=i(6245),o=i(1112),a=i(256);function h(t){return(0,n.mG)(this,void 0,void 0,(function*(){if(void 0!==t){const e=[];a.each(t,((t,i)=>{e.push(i.waitForStop())})),yield Promise.all(e)}}))}function l(t,e,i){return e+t*(i-e)}function c(t,e,i){return t>=1?i:e}function u(t,e,i){return new r.gG(l(t,e.percent,i.percent))}function d(t,e,i){return o.Il.interpolate(t,e,i)}function p(t,e){return"number"==typeof t&&"number"==typeof e?l:t instanceof r.gG&&e instanceof r.gG?u:t instanceof o.Il&&e instanceof o.Il?d:c}!function(t){t[t.Stopped=0]="Stopped",t[t.Playing=1]="Playing",t[t.Paused=2]="Paused"}(s||(s={}))},5071:function(t,e,i){"use strict";i.r(e),i.d(e,{add:function(){return v},any:function(){return r},copy:function(){return k},each:function(){return a},eachContinue:function(){return l},eachReverse:function(){return h},find:function(){return S},findIndex:function(){return O},findIndexReverse:function(){return P},findMap:function(){return C},findReverse:function(){return N},first:function(){return d},getFirstSortedIndex:function(){return R},getSortedIndex:function(){return A},has:function(){return D},indexOf:function(){return n},insert:function(){return p},insertIndex:function(){return M},keepIf:function(){return U},last:function(){return u},map:function(){return o},move:function(){return y},pushAll:function(){return f},pushOne:function(){return w},remove:function(){return _},removeFirst:function(){return m},removeIndex:function(){return E},replace:function(){return b},setIndex:function(){return g},shiftLeft:function(){return c},shuffle:function(){return L},slice:function(){return T},toArray:function(){return x}});var s=i(5040);function n(t,e){const i=t.length;for(let s=0;s0;)--i,e(t[i],i)}function l(t,e){const i=t.length;for(let s=0;s0;)if(--i,e(t[i],i))return i;return-1}function S(t,e){const i=O(t,e);if(-1!==i)return t[i]}function N(t,e){const i=P(t,e);if(-1!==i)return t[i]}function C(t,e){const i=t.length;for(let s=0;s>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,i=r+1):s=r}return{found:n,index:n?i-1:i}}function R(t,e){let i=0,s=t.length,n=!1;for(;i>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,s=r):s=r}return{found:n,index:i}}function U(t,e){let i=t.length;for(;i>0;)--i,e(t[i])||t.splice(i,1)}},1112:function(t,e,i){"use strict";i.d(e,{$_:function(){return a},Il:function(){return h}});var s=i(6490),n=i(7652),r=i(5040);function o(t){return"#"===t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0].repeat(2)+t[1].repeat(2)+t[2].repeat(2)),parseInt(t,16)}function a(t){return h.fromAny(t)}class h{constructor(t){this._hex=0|t}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return 255&this._hex}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+n.padString(this.r.toString(16),2)+n.padString(this.g.toString(16),2)+n.padString(this.b.toString(16),2)}toHSL(t=1){return n.rgbToHsl({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,e,i){const s=n.hslToRgb({h:t,s:e,l:i});return this.fromRGB(s.r,s.g,s.b)}toString(){return this.toCSSHex()}static fromHex(t){return new h(t)}static fromRGB(t,e,i){return new h((0|i)+(e<<8)+(t<<16))}static fromString(t){return new h(o(t))}static fromCSS(t){return new h(function(t){let e=(t=t.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return 0;let i="";for(let t=1;t<=3;t++){let s=parseInt(e[t]).toString(16);1==s.length&&(s="0"+s),i+=s}return o(i)}(t))}static fromAny(t){if(r.isString(t)){if("#"==t[0])return h.fromString(t);if("rgb"==t.substr(0,3))return h.fromCSS(t)}else{if(r.isNumber(t))return h.fromHex(t);if(t instanceof h)return h.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,e,i){const s=n.alternativeColor({r:t.r,g:t.g,b:t.b},e?{r:e.r,g:e.g,b:e.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(s.r,s.g,s.b)}static interpolate(t,e,i,n="rgb"){if("hsl"==n){const n=e.toHSL(),r=i.toHSL();return h.fromHSL((0,s.w6)(t,n.h,r.h),(0,s.w6)(t,n.s,r.s),(0,s.w6)(t,n.l,r.l))}return h.fromRGB((0,s.w6)(t,e.r,i.r),(0,s.w6)(t,e.g,i.g),(0,s.w6)(t,e.b,i.b))}static lighten(t,e){const i=n.lighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static brighten(t,e){const i=n.brighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static saturate(t,e){const i=n.saturate({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}}},2754:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});var s=i(6331),n=i(1112);class r extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const t=this.getPrivate("currentPass"),e=this.get("colors",[this.get("baseColor",n.Il.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",e.length);const i=this.getPrivate("numColors"),s=this.get("passOptions"),r=this.get("reuse");for(let o=0;o1;)r-=1;let a=i.s+(s.saturation||0)*t;a>1&&(a=1),a<0&&(a=0);let h=i.l+(s.lightness||0)*t;for(;h>1;)h-=1;e.push(n.Il.fromHSL(r,a,h))}}getIndex(t){const e=this.get("colors",[]),i=this.get("saturation");return t>=e.length?(this.generateColors(),this.getIndex(t)):null!=i?n.Il.saturate(e[t],i):e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}r.className="ColorSet",r.classNames=s.JH.classNames.concat([r.className])},9582:function(t,e,i){"use strict";i.d(e,{Q:function(){return r},k:function(){return n}});var s=i(7144);class n extends s.aV{incrementRef(){}decrementRef(){}_onPush(t){this.processor&&this.processor.processRow(t),super._onPush(t)}_onInsertIndex(t,e){this.processor&&this.processor.processRow(e),super._onInsertIndex(t,e)}_onSetIndex(t,e,i){this.processor&&this.processor.processRow(i),super._onSetIndex(t,e,i)}}class r{constructor(t){this._value=t}incrementRef(){}decrementRef(){}}},6460:function(t,e,i){"use strict";i.d(e,{C:function(){return h}});var s=i(6331),n=i(7255),r=i(462),o=i(5040),a=i(7652);class h extends s.JH{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i=!1){let s;void 0!==e&&""!==e||(e=this.get("dateFormat","yyyy-MM-dd"));let n=t;if(o.isObject(e))try{const t=this.get("intlLocales");return t?new Intl.DateTimeFormat(t,e).format(n):new Intl.DateTimeFormat(void 0,e).format(n)}catch(t){return"Invalid"}let r=this.parseFormat(e);const a=this._root.timezone;let h=n;return!a||this._root.utc||i||(n=a.convertLocal(n)),o.isNumber(n.getTime())?(s=this.applyFormat(n,r,i,h),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s):"Invalid date"}applyFormat(t,e,i=!1,s){let n,h,l,c,u,d,p,g,f=e.template,_=t.getTime();this._root.utc&&!i?(n=t.getUTCFullYear(),h=t.getUTCMonth(),l=t.getUTCDay(),c=t.getUTCDate(),u=t.getUTCHours(),d=t.getUTCMinutes(),p=t.getUTCSeconds(),g=t.getUTCMilliseconds()):(n=t.getFullYear(),h=t.getMonth(),l=t.getDay(),c=t.getDate(),u=t.getHours(),d=t.getMinutes(),p=t.getSeconds(),g=t.getMilliseconds());for(let i=0,m=e.parts.length;i=12?this._t("PM"):this._t("AM");break;case"aa":m=u>=12?this._t("P.M."):this._t("A.M.");break;case"aaa":m=u>=12?this._t("P"):this._t("A");break;case"h":m=a.get12Hours(u).toString();break;case"hh":m=a.padString(a.get12Hours(u),2,"0");break;case"H":m=u.toString();break;case"HH":m=a.padString(u,2,"0");break;case"K":m=a.get12Hours(u,0).toString();break;case"KK":m=a.padString(a.get12Hours(u,0),2,"0");break;case"k":m=(u+1).toString();break;case"kk":m=a.padString(u+1,2,"0");break;case"m":m=d.toString();break;case"mm":m=a.padString(d,2,"0");break;case"s":m=p.toString();break;case"ss":m=a.padString(p,2,"0");break;case"S":case"SS":case"SSS":m=Math.round(g/1e3*Math.pow(10,e.parts[i].length)).toString();break;case"x":m=_.toString();break;case"n":case"nn":case"nnn":m=a.padString(g,e.parts[i].length,"0");break;case"z":m=a.getTimeZone(s||t,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":m=a.getTimeZone(s||t,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":m=a.getTimeZone(s||t,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":m=a.getTimeZone(s||t,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let f=this._root.utc?"UTC":this._root.timezone;f instanceof r.r&&(f=f.name);const y=f?a.getTimezoneOffset(f,s||t):t.getTimezoneOffset();let v=Math.abs(y)/60,w=Math.floor(v),b=60*v-60*w;this._root.utc&&(w=0,b=0),"Z"==e.parts[i]?(m="GMT",m+=y>0?"-":"+",m+=a.padString(w,2)+":"+a.padString(b,2)):(m=y>0?"-":"+",m+=a.padString(w,2)+a.padString(b,2));break;case"i":m=t.toISOString();break;case"I":m=t.toUTCString()}f=f.replace(o.PLACEHOLDER,m)}return f}parseFormat(t){let e={template:"",parts:[]},i=n.V.chunk(t,!0);for(let t=0;t-1&&(l.year=parseInt(p[h.year])),h.year3>-1){let t=parseInt(p[h.year3]);t+=1e3,l.year=t}if(h.year2>-1){let t=parseInt(p[h.year2]);t+=t>50?1e3:2e3,l.year=t}if(h.year1>-1){let t=parseInt(p[h.year1]);t=10*Math.floor((new Date).getFullYear()/10)+t,l.year=t}if(h.monthLong>-1&&(l.month=this.resolveMonth(p[h.monthLong])),h.monthShort>-1&&(l.month=this.resolveShortMonth(p[h.monthShort])),h.month>-1&&(l.month=parseInt(p[h.month])-1),h.week>-1&&-1===h.day&&(l.month=0,l.day=a.getDayFromWeek(parseInt(p[h.week]),l.year,1,i)),h.day>-1&&(l.day=parseInt(p[h.day])),h.yearDay>-1&&(l.month=0,l.day=parseInt(p[h.yearDay])),h.hourBase0>-1&&(l.hour=parseInt(p[h.hourBase0])),h.hourBase1>-1&&(l.hour=parseInt(p[h.hourBase1])-1),h.hour12Base0>-1){let t=parseInt(p[h.hour12Base0]);11==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.hour12Base1>-1){let t=parseInt(p[h.hour12Base1]);12==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.minute>-1&&(l.minute=parseInt(p[h.minute])),h.second>-1&&(l.second=parseInt(p[h.second])),h.millisecond>-1){let t=parseInt(p[h.millisecond]);2==h.millisecondDigits?t*=10:1==h.millisecondDigits&&(t*=100),l.millisecond=t}if(h.timestamp>-1){l.timestamp=parseInt(p[h.timestamp]);const t=new Date(l.timestamp);l.year=t.getUTCFullYear(),l.month=t.getUTCMonth(),l.day=t.getUTCDate(),l.hour=t.getUTCHours(),l.minute=t.getUTCMinutes(),l.second=t.getUTCSeconds(),l.millisecond=t.getUTCMilliseconds()}h.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.zone])),h.iso>-1&&(l.year=o.toNumber(p[h.iso+0]),l.month=o.toNumber(p[h.iso+1])-1,l.day=o.toNumber(p[h.iso+2]),l.hour=o.toNumber(p[h.iso+3]),l.minute=o.toNumber(p[h.iso+4]),l.second=o.toNumber(p[h.iso+5]),l.millisecond=o.toNumber(p[h.iso+6]),"Z"==p[h.iso+7]||"z"==p[h.iso+7]?l.utc=!0:""!=p[h.iso+7]&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.iso+7]))),s=l.utc?new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else s=new Date(t);return s}resolveTimezoneOffset(t,e){if(e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let i=e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),s=i[1],n=i[2],r=i[3],o=60*parseInt(n)+parseInt(r);return"+"==s&&(o*=-1),o-(t||new Date).getTimezoneOffset()}return 0}resolveMonth(t){let e=this._months().indexOf(t);return e>-1||!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._months()).indexOf(t),e>-1)?e:0}resolveShortMonth(t){let e=this._shortMonths().indexOf(t);return e>-1?e:(e=this._months().indexOf(t),e>-1||this._root.language&&!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._shortMonths()).indexOf(t),e>-1)?e:0)}isAm(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1}getStringList(t){let e=[];for(let i=0;i{t.dispose()}))}}class a extends n{constructor(t){super(),this._disposers=t}_dispose(){s.each(this._disposers,(t=>{t.dispose()}))}get disposers(){return this._disposers}}class h extends n{_dispose(){null!=this._disposer&&(this._disposer.dispose(),this._disposer=void 0)}get(){return this._value}set(t,e){null!=this._disposer&&this._disposer.dispose(),this._disposer=e,this._value=t}reset(){this.set(void 0,void 0)}}class l extends r{constructor(){super(...arguments),this._counter=0}increment(){return++this._counter,new r((()=>{--this._counter,0===this._counter&&this.dispose()}))}}},798:function(t,e,i){"use strict";i.d(e,{$:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{constructor(){super(...arguments),this._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}}_setDefaults(){const t="_duration_millisecond",e="_duration_second",i="_duration_minute",s="_duration_hour",n="_duration_day",r="_duration_week",o="_duration_month",a="_minute",h="_hour",l="_day",c="_week",u="_week",d="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(t),second:this._t(t+"_second"),minute:this._t(t+a),hour:this._t(t+h),day:this._t(t+l),week:this._t(t+c),month:this._t(t+u),year:this._t(t+d)},second:{second:this._t(e),minute:this._t(e+a),hour:this._t(e+h),day:this._t(e+l),week:this._t(e+c),month:this._t(e+u),year:this._t(e+d)},minute:{minute:this._t(i),hour:this._t(i+h),day:this._t(i+l),week:this._t(i+c),month:this._t(i+u),year:this._t(i+d)},hour:{hour:this._t(s),day:this._t(s+l),week:this._t(s+c),month:this._t(s+u),year:this._t(s+d)},day:{day:this._t(n),week:this._t(n+c),month:this._t(n+u),year:this._t(n+d)},week:{week:this._t(r),month:this._t(r+u),year:this._t(r+d)},month:{month:this._t(o),year:this._t(o+d)},year:{year:this._t("_duration_year")}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s=i||this.get("baseUnit");void 0!==e&&""!==e||(e=null!=this.get("durationFormat")?this.get("durationFormat"):this.getFormat(a.toNumber(t),void 0,s)),e=o.cleanFormat(e);let n,r=this.parseFormat(e,s),h=Number(t);n=h>this.get("negativeBase")?r.positive:h{if(e.parsed)return;let i=e.source,s=[];s=e.source.match(/^\[([^\]]*)\]/),s&&s.length&&""!==s[0]&&(i=e.source.substr(s[0].length),e.color=s[1]);let r=n.V.chunk(i,!0);for(let t=0;t{"millisecond"==t&&1e3==i?(h.second++,h.millisecond=0):"second"==t&&60==i?(h.minute++,h.second=0):"minute"==t&&60==i?(h.hour++,h.minute=0):"hour"==t&&24==i?(h.day++,h.hour=0):"day"==t&&7==i&&-1!==e.parts.indexOf("w")?(h.week++,h.day=0):"day"==t&&30==i?(h.month++,h.day=0):"month"==t&&12==i&&(h.year++,h.month=0)}));for(let t=0,i=e.parts.length;t{if(t==e||i){if(s/n<=1)return i||(i=t),!1;i=t}return!0})),i}getMilliseconds(t,e){return e||(e=this.get("baseUnit")),t*this._getUnitValue(e)}_getUnitValue(t){return this._getUnitValues()[t]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}},9395:function(t,e,i){"use strict";i.r(e),i.d(e,{bounce:function(){return k},circle:function(){return c},cubic:function(){return o},elastic:function(){return P},exp:function(){return h},inOut:function(){return p},linear:function(){return n},out:function(){return d},pow:function(){return a},quad:function(){return r},sine:function(){return l},yoyo:function(){return u}});var s=i(751);function n(t){return t}function r(t){return t*t}function o(t){return t*t*t}function a(t,e){return Math.pow(t,e)}function h(t){return Math.pow(2,10*t-10)}function l(t){return 1-Math.cos(t*s.HALFPI)}function c(t){return 1-Math.sqrt(1-t*t)}function u(t){return function(e){return t(e<.5?2*e:2*(1-e))}}function d(t){return function(e){return 1-t(1-e)}}function p(t){return function(e){return e<=.5?t(2*e)/2:1-t(2*(1-e))/2}}let g=4/11,f=6/11,_=8/11,m=3/4,y=9/11,v=10/11,w=15/16,b=21/22,x=63/64,D=1/g/g;function k(t){return 1-function(t){return t{this._userSettings[t]=!0}))}get(t,e){const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._settings[t]=e}set(t,e){this._userSettings[t]=!0,this.setRaw(t,e)}remove(t){delete this._userSettings[t],delete this._settings[t]}setAll(t){o.entries(t).forEach((([t,e])=>{this.set(t,e)}))}_eachSetting(t){o.each(this._settings,t)}apply(){const t={stateAnimationEasing:!0,stateAnimationDuration:!0},e=this._entity.states.lookup("default");this._eachSetting(((i,s)=>{t[i]||(t[i]=!0,this!==e&&(i in e._settings||(e._settings[i]=this._entity.get(i))),this._entity.set(i,s))}))}applyAnimate(t){null==t&&(t=this._settings.stateAnimationDuration),null==t&&(t=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let e=this._settings.stateAnimationEasing;null==e&&(e=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",a.cubic)));const i=this._entity.states.lookup("default"),s={stateAnimationEasing:!0,stateAnimationDuration:!0},n={};return this._eachSetting(((r,o)=>{if(!s[r]){s[r]=!0,this!=i&&(r in i._settings||(i._settings[r]=this._entity.get(r)));const a=this._entity.animate({key:r,to:o,duration:t,easing:e});a&&(n[r]=a)}})),n}}class l{constructor(t){this._states={},this._entity=t}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new h(this._entity,e);return this._states[t]=i,i}}remove(t){delete this._states[t]}apply(t){const e=this._states[t];e&&e.apply(),this._entity._applyState(t)}applyAnimate(t,e){let i;const s=this._states[t];return s&&(i=s.applyAnimate(e)),this._entity._applyStateAnimated(t,e),i}}var c=i(3145),u=i(5071),d=i(3540);class p{constructor(t){this._callbacks={},this._disabled={},this._entity=t}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),this._entity._markDirtyKey(t),new s.ku((()=>{u.removeFirst(i,e)&&this._entity._markDirtyKey(t)}))}remove(t){const e=this._callbacks[t];void 0!==e&&(delete this._callbacks[t],0!==e.length&&this._entity._markDirtyKey(t))}enable(t){this._disabled[t]&&(delete this._disabled[t],this._entity._markDirtyKey(t))}disable(t){this._disabled[t]||(this._disabled[t]=!0,this._entity._markDirtyKey(t))}fold(t,e){if(!this._disabled[t]){const i=this._callbacks[t];if(void 0!==i)for(let s=0,n=i.length;s{if(this._stopped)t();else{const e=()=>{i.dispose(),t()},i=this.events.on("stopped",e)}}))}_checkEnded(){return!(this._loops>1&&(--this._loops,1))}_run(t){null!==this._oldTime&&(this._time+=t-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=t}_reset(t){this._oldTime=t,this._time=0}_value(t){return this._interpolate(this._easing(t),this._from,this._to)}}let f=0;class _{constructor(t){this.uid=++f,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._prevSettings={},this._prevPrivateSettings={},this._animatingSettings={},this._animatingPrivateSettings={},this._disposed=!1,this._userProperties={},this.enableDispose=!0,this._settings=t}_checkDirty(){o.keys(this._settings).forEach((t=>{this._userProperties[t]=!0,this._markDirtyKey(t)}))}resetUserSettings(){this._userProperties={}}_runAnimation(t){let e=r.SR.Stopped;if(!this.isDisposed()){let i=!1,s=!1;o.each(this._animatingSettings,((e,n)=>{if(n.stopped)this._stopAnimation(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.set(e,n._value(1)):(i=!0,n._reset(t),this._set(e,n._value(1))):(i=!0,this._set(e,n._value(s)))}else s=!0})),o.each(this._animatingPrivateSettings,((e,n)=>{if(n.stopped)this._stopAnimationPrivate(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.setPrivate(e,n._value(1)):(i=!0,n._reset(t),this._setPrivate(e,n._value(1))):(i=!0,this._setPrivate(e,n._value(s)))}else s=!0})),i?e=r.SR.Playing:s&&(e=r.SR.Paused)}return e}_markDirtyKey(t){this.markDirty()}_markDirtyPrivateKey(t){this.markDirty()}on(t,e){let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}off(t,e){let i=this._settingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._settingEvents[t]}onPrivate(t,e){let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}offPrivate(t,e){let i=this._privateSettingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._privateSettingEvents[t]}getRaw(t,e){const i=this._settings[t];return void 0!==i?i:e}has(t){return t in this._settings}get(t,e){return this.getRaw(t,e)}_sendKeyEvent(t,e){const i=this._settingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_sendPrivateKeyEvent(t,e){const i=this._privateSettingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_setRaw(t,e,i){this._prevSettings[t]=e,this._sendKeyEvent(t,i)}setRaw(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&this._setRaw(t,i,e)}_set(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&(this._setRaw(t,i,e),this._markDirtyKey(t))}_stopAnimation(t){const e=this._animatingSettings[t];e&&(delete this._animatingSettings[t],e.stop())}set(t,e){return this._set(t,e),this._stopAnimation(t),e}remove(t){t in this._settings&&(this._prevSettings[t]=this._settings[t],delete this._settings[t],this._sendKeyEvent(t,void 0),this._markDirtyKey(t)),this._stopAnimation(t)}removeAll(){u.each(o.keys(this._settings),(t=>{this.remove(t)}))}getPrivate(t,e){const i=this._privateSettings[t];return void 0!==i?i:e}_setPrivateRaw(t,e,i){this._prevPrivateSettings[t]=e,this._sendPrivateKeyEvent(t,i)}setPrivateRaw(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&this._setPrivateRaw(t,i,e)}_setPrivate(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&(this._setPrivateRaw(t,i,e),this._markDirtyPrivateKey(t))}_stopAnimationPrivate(t){const e=this._animatingPrivateSettings[t];e&&(e.stop(),delete this._animatingPrivateSettings[t])}setPrivate(t,e){return this._setPrivate(t,e),this._stopAnimationPrivate(t),e}removePrivate(t){t in this._privateSettings&&(this._prevPrivateSettings[t]=this._privateSettings[t],delete this._privateSettings[t],this._markDirtyPrivateKey(t)),this._stopAnimationPrivate(t)}setAll(t){o.each(t,((t,e)=>{this.set(t,e)}))}animate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.get(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.set(e,i);else{if(void 0!==r&&r!==i){this.set(e,r);const t=this._animatingSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.set(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}animatePrivate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.getPrivate(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.setPrivate(e,i);else{if(void 0!==r&&r!==i){this.setPrivate(e,r);const t=this._animatingPrivateSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.setPrivate(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}}class m extends _{constructor(t,e,i,s=[]){if(super(e),this.states=new l(this),this.adapters=new p(this),this.events=this._createEvents(),this._userPrivateProperties={},this._dirty={},this._dirtyPrivate={},this._templates=[],this._defaultThemes=[],this._templateDisposers=[],this._disposers=[],this._runSetup=!0,this._disposerProperties={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t,this._internalTemplates=s,e.id&&this._registerId(e.id)}static new(t,e,i){const s=new this(t,e,!0);return s._template=i,s._afterNew(),s}static _new(t,e,i=[]){const s=new this(t,e,!0,i);return s._afterNew(),s}_afterNew(){this._checkDirty();let t=!1;const e=this._template;e&&(t=!0,e._setObjectTemplate(this)),u.each(this._internalTemplates,(e=>{t=!0,e._setObjectTemplate(this)})),t&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const t=this._template;t&&t._setObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._setObjectTemplate(this)})),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new n.p}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(t,e){const i=this.get(t);if(i)return i;{const i=e();return this.set(t,i),i}}_setDefault(t,e){this.has(t)||super.set(t,e)}_setRawDefault(t,e){this.has(t)||super.setRaw(t,e)}_clearDirty(){o.keys(this._dirty).forEach((t=>{this._dirty[t]=!1})),o.keys(this._dirtyPrivate).forEach((t=>{this._dirtyPrivate[t]=!1}))}isDirty(t){return!!this._dirty[t]}isPrivateDirty(t){return!!this._dirtyPrivate[t]}_markDirtyKey(t){this._dirty[t]=!0,super._markDirtyKey(t)}_markDirtyPrivateKey(t){this._dirtyPrivate[t]=!0,super._markDirtyKey(t)}isType(t){return-1!==this.classNames.indexOf(t)}_pushPropertyDisposer(t,e){let i=this._disposerProperties[t];return void 0===i&&(i=this._disposerProperties[t]=[]),i.push(e),e}_disposeProperty(t){const e=this._disposerProperties[t];void 0!==e&&(u.each(e,(t=>{t.dispose()})),delete this._disposerProperties[t])}set template(t){const e=this._template;e!==t&&(this._template=t,e&&e._removeObjectTemplate(this),t&&t._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(t){}_applyStateAnimated(t,e){}get(t,e){const i=this.adapters.fold(t,this._settings[t]);return void 0!==i?i:e}isUserSetting(t){return this._userProperties[t]||!1}set(t,e){return this._userProperties[t]=!0,super.set(t,e)}setRaw(t,e){this._userProperties[t]=!0,super.setRaw(t,e)}_setSoft(t,e){return this._userProperties[t]?e:super.set(t,e)}remove(t){delete this._userProperties[t],this._removeTemplateProperty(t)}setPrivate(t,e){return this._userPrivateProperties[t]=!0,super.setPrivate(t,e)}setPrivateRaw(t,e){this._userPrivateProperties[t]=!0,super.setPrivateRaw(t,e)}removePrivate(t){delete this._userPrivateProperties[t],this._removeTemplatePrivateProperty(t)}_setTemplateProperty(t,e,i){this._userProperties[e]||t===this._findTemplateByKey(e)&&super.set(e,i)}_setTemplatePrivateProperty(t,e,i){this._userPrivateProperties[e]||t===this._findTemplateByPrivateKey(e)&&super.setPrivate(e,i)}_removeTemplateProperty(t){if(!this._userProperties[t]){const e=this._findTemplateByKey(t);e?super.set(t,e._settings[t]):super.remove(t)}}_removeTemplatePrivateProperty(t){if(!this._userPrivateProperties[t]){const e=this._findTemplateByPrivateKey(t);e?super.setPrivate(t,e._privateSettings[t]):super.removePrivate(t)}}_walkParents(t){t(this._root._rootContainer),t(this)}_applyStateByKey(t){const e=this.states.create(t,{}),i={};this._eachTemplate((s=>{const n=s.states.lookup(t);n&&n._apply(e,i)})),o.each(e._settings,(t=>{i[t]||e._userSettings[t]||e.remove(t)}))}_applyTemplate(t,e){this._templateDisposers.push(t._apply(this,e)),o.each(t._settings,((t,i)=>{e.settings[t]||this._userProperties[t]||(e.settings[t]=!0,super.set(t,i))})),o.each(t._privateSettings,((t,i)=>{e.privateSettings[t]||this._userPrivateProperties[t]||(e.privateSettings[t]=!0,super.setPrivate(t,i))})),this._runSetup&&t.setup&&(this._runSetup=!1,t.setup(this))}_findStaticTemplate(t){if(this._template&&t(this._template))return this._template}_eachTemplate(t){this._findStaticTemplate((e=>(t(e),!1))),u.eachReverse(this._internalTemplates,t),u.each(this._templates,t)}_applyTemplates(t=!0){t&&this._disposeTemplates();const e={settings:{},privateSettings:{},states:{}};this._eachTemplate((t=>{this._applyTemplate(t,e)})),t&&(o.each(this._settings,(t=>{this._userProperties[t]||e.settings[t]||super.remove(t)})),o.each(this._privateSettings,(t=>{this._userPrivateProperties[t]||e.privateSettings[t]||super.removePrivate(t)})))}_findTemplate(t){const e=this._findStaticTemplate(t);if(void 0===e){const e=u.findReverse(this._internalTemplates,t);return void 0===e?u.find(this._templates,t):e}return e}_findTemplateByKey(t){return this._findTemplate((e=>t in e._settings))}_findTemplateByPrivateKey(t){return this._findTemplate((e=>t in e._privateSettings))}_disposeTemplates(){u.each(this._templateDisposers,(t=>{t.dispose()})),this._templateDisposers.length=0}_removeTemplates(){u.each(this._templates,(t=>{t._removeObjectTemplate(this)})),this._templates.length=0}_applyThemes(t=!1){if(this.get("ignoreThemes"))return!1;let e=!1;const i=[];let s=[];const n=new Set,r=this.get("themeTagsSelf");return r&&u.each(r,(t=>{n.add(t)})),this._walkParents((t=>{t===this._root._rootContainer&&(e=!0),t._defaultThemes.length>0&&i.push(t._defaultThemes);const r=t.get("themes");r&&s.push(r);const o=t.get("themeTags");o&&u.each(o,(t=>{n.add(t)}))})),s=i.concat(s),this._removeTemplates(),(e||t)&&u.eachReverse(this.classNames,(t=>{const e=[];u.each(s,(i=>{u.each(i,(i=>{const s=i._lookupRules(t);s&&u.eachReverse(s,(t=>{if(t.tags.every((t=>n.has(t)))){const i=u.getFirstSortedIndex(e,(e=>{const i=d.qu(t.tags.length,e.tags.length);return 0===i?d.wq(t.tags,e.tags,d.qu):i}));e.splice(i.index,0,t)}}))}))})),u.each(e,(t=>{this._templates.push(t.template),t.template._setObjectTemplate(this)}))})),this._applyTemplates(),(e||t)&&(this._runSetup=!1),e||t}_changed(){}_beforeChanged(){if(this.isDirty("id")){const t=this.get("id");t&&this._registerId(t);const e=this._prevSettings.id;e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}}_registerId(t){if(this._root.entitiesById[t]&&this._root.entitiesById[t]!==this)throw new Error('An entity with id "'+t+'" already exists.');this._root.entitiesById[t]=this,c.i_.entitiesById[t]=this}_afterChanged(){}addDisposer(t){return this._disposers.push(t),t}_dispose(){super._dispose();const t=this._template;t&&t._removeObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._removeObjectTemplate(this)})),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach((t=>{t.dispose()})),o.each(this._disposerProperties,((t,e)=>{u.each(e,(t=>{t.dispose()}))}));const e=this.get("id");e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}setTimeout(t,e){const i=setTimeout((()=>{this.removeDispose(n),t()}),e),n=new s.ku((()=>{clearTimeout(i)}));return this._disposers.push(n),n}removeDispose(t){if(!this.isDisposed()){let e=u.indexOf(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()}hasTag(t){return-1!==u.indexOf(this.get("themeTags",[]),t)}addTag(t){if(!this.hasTag(t)){const e=this.get("themeTags",[]);e.push(t),this.set("themeTags",e)}}removeTag(t){if(this.hasTag(t)){const e=this.get("themeTags",[]);u.remove(e,t),this.set("themeTags",e)}}_t(t,e,...i){return this._root.language.translate(t,e,...i)}get root(){return this._root}}m.className="Entity",m.classNames=["Entity"]},9770:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var s=i(7449),n=i(5071),r=i(5040);class o{constructor(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{n.each(t,(t=>{t.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}}hasListeners(){return 0!==this._listeners.length}hasListenersByType(t){return n.any(this._listeners,(e=>(null===e.type||e.type===t)&&!e.killed))}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(t){delete this._disabled[t]}disableType(t,e=1/0){this._disabled[t]=e}_removeListener(t){if(0===this._iterating){const e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)}_removeExistingListener(t,e,i,s){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((n=>{n.once!==t||n.type!==e||void 0!==i&&n.callback!==i||n.context!==s||n.disposer.dispose()}))}isEnabled(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&void 0===this._disabled[t]}removeType(t){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((e=>{e.type===t&&e.disposer.dispose()}))}has(t,e,i){return-1!==n.findIndex(this._listeners,(s=>!0!==s.once&&s.type===t&&(void 0===e||s.callback===e)&&s.context===i))}_shouldDispatch(t){if(this._disposed)throw new Error("EventDispatcher is disposed");const e=this._disabled[t];return r.isNumber(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled}_eachListener(t){++this._iterating;try{n.each(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(n.each(this._killed,(t=>{this._removeListener(t)})),this._killed.length=0)}}dispatch(t,e){this._shouldDispatch(t)&&this._eachListener((i=>{i.killed||null!==i.type&&i.type!==t||(i._debounceDelay?(i._debounceTimeout&&window.clearTimeout(i._debounceTimeout),i._debounceTimeout=window.setTimeout((()=>{i._debounceTimeout=void 0,i.killed||i.dispatch(t,e)}),i._debounceDelay)):i.dispatch(t,e))}))}_on(t,e,i,n,r,o,a){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);const h={type:e,callback:i,context:n,shouldClone:r,dispatch:o,killed:!1,once:t,disposer:new s.ku((()=>{h.killed=!0,h._debounceTimeout&&window.clearTimeout(h._debounceTimeout),this._removeListener(h)})),_debounceDelay:a};return this._listeners.push(h),h}onAll(t,e,i=!0){return this._on(!1,null,t,e,i,((i,s)=>t.call(e,s))).disposer}on(t,e,i,s=!0){return this._on(!1,t,e,i,s,((t,s)=>e.call(i,s))).disposer}onDebounced(t,e,i,s,n=!0){return this._on(!1,t,e,s,n,((t,i)=>e.call(s,i)),i).disposer}once(t,e,i,s=!0){const n=this._on(!0,t,e,i,s,((t,s)=>{n.disposer.dispose(),e.call(i,s)}));return n.disposer}off(t,e,i){this._removeExistingListener(!1,t,e,i)}copyFrom(t){if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const e=[];return n.each(t._listeners,(t=>{!t.killed&&t.shouldClone&&(null===t.type?e.push(this.onAll(t.callback,t.context)):t.once?e.push(this.once(t.type,t.callback,t.context)):e.push(this.on(t.type,t.callback,t.context)))})),new s.FV(e)}}},9821:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(6331);class n extends s.JH{}n.className="InterfaceColors",n.classNames=s.JH.classNames.concat([n.className])},7144:function(t,e,i){"use strict";i.d(e,{aV:function(){return o},dn:function(){return a},o:function(){return h}});var s=i(9770),n=i(5071);function r(t,e){if(!(t>=0&&t=0&&t{this.push(t)}))}copyFrom(t){this.pushAll(t._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(t){const e=this._values;this._values=[],this._onClear(e),n.each(t,(t=>{this._values.push(t),this._onPush(t)}))}clear(){this.setAll([])}*[Symbol.iterator](){const t=this._values.length;for(let e=0;e{t.dispose()})),super._onClear(t)}_dispose(){this.autoDispose&&n.each(this._values,(t=>{t.dispose()}))}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class h extends a{constructor(t,e){super(),this.template=t,this.make=e}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}}},751:function(t,e,i){"use strict";i.r(e),i.d(e,{DEGREES:function(){return a},HALFPI:function(){return r},PI:function(){return n},RADIANS:function(){return o},boundsOverlap:function(){return M},ceil:function(){return l},circlesOverlap:function(){return O},closest:function(){return T},cos:function(){return f},fitAngleToRange:function(){return w},fitToRange:function(){return d},getAngle:function(){return x},getArcBounds:function(){return m},getArcPoint:function(){return y},getCubicControlPointA:function(){return c},getCubicControlPointB:function(){return u},getPointOnLine:function(){return k},getPointOnQuadraticCurve:function(){return D},inBounds:function(){return b},mergeBounds:function(){return v},normalizeAngle:function(){return _},round:function(){return h},sin:function(){return p},spiralPoints:function(){return E},tan:function(){return g}});var s=i(5040);const n=Math.PI,r=n/2,o=n/180,a=180/n;function h(t,e,i){if(!(0,s.isNumber)(e)||e<=0){let e=Math.round(t);return i&&e-t==.5&&e--,e}{let i=Math.pow(10,e);return Math.round(t*i)/i}}function l(t,e){if(!(0,s.isNumber)(e)||e<=0)return Math.ceil(t);{let i=Math.pow(10,e);return Math.ceil(t*i)/i}}function c(t,e,i,s,n){return{x:(-t.x+e.x/s+i.x)*s,y:(-t.y+e.y/n+i.y)*n}}function u(t,e,i,s,n){return{x:(t.x+e.x/s-i.x)*s,y:(t.y+e.y/n-i.y)*n}}function d(t,e,i){return Math.min(Math.max(t,e),i)}function p(t){return Math.sin(o*t)}function g(t){return Math.tan(o*t)}function f(t){return Math.cos(o*t)}function _(t){return(t%=360)<0&&(t+=360),t}function m(t,e,i,s,n){let r=Number.MAX_VALUE,o=Number.MAX_VALUE,a=-Number.MAX_VALUE,h=-Number.MAX_VALUE,l=[];l.push(y(n,i)),l.push(y(n,s));let c=Math.min(90*Math.floor(i/90),90*Math.floor(s/90)),u=Math.max(90*Math.ceil(i/90),90*Math.ceil(s/90));for(let t=c;t<=u;t+=90)t>=i&&t<=s&&l.push(y(n,t));for(let t=0;ta&&(a=e.x),e.y>h&&(h=e.y)}return{left:t+r,top:e+o,right:t+a,bottom:e+h}}function y(t,e){return{x:t*f(e),y:t*p(e)}}function v(t){const e=t.length;if(e>0){let i=t[0],s=i.left,n=i.top,r=i.right,o=i.bottom;if(e>1)for(let a=1;ai){let t=e;e=i,i=t}t=_(t);let s=(e-_(e))/360;return ti&&(t-360>e?t-=360:t=te+(i-e)/2-180?e:i),t}function b(t,e){return t.x>=e.left&&t.y>=e.top&&t.x<=e.right&&t.y<=e.bottom}function x(t,e){e||(e={x:2*t.x,y:2*t.y});let i=e.x-t.x,s=e.y-t.y,n=Math.atan2(s,i)*a;return n<0&&(n+=360),_(n)}function D(t,e,i,s){return{x:(1-s)*(1-s)*t.x+2*(1-s)*s*i.x+s*s*e.x,y:(1-s)*(1-s)*t.y+2*(1-s)*s*i.y+s*s*e.y}}function k(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function T(t,e){return t.reduce((function(t,i){return Math.abs(i-e)e.left,s=t.tope.top;return i&&s}function E(t,e,i,s,n,r,h,l,c){let u=n+.01;l=_(l),c=_(c);let d=l*o;cu&&(o=2*u),o*=Math.max(.01,Math.min(1,u/200));let g=d*a,f={x:t+u*Math.cos(d),y:e+u*s/i*Math.sin(d)};if(p.push(f),u=n+.01+(g-l)/360*h,d+=2*Math.asin(o/2/u),d*a>c+360*Math.ceil((i-n)/h))break}return p.shift(),p}function O(t,e){return Math.hypot(t.x-e.x,t.y-e.y)<=t.radius+e.radius}},8219:function(t,e,i){"use strict";i.d(e,{u:function(){return a}});var s=i(6331),n=i(7652),r=i(7449);let o;class a extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._setRawDefault("deactivateRoot",!0),function(t,e,i){const s=e.interfaceColors,a=s.get("secondaryButton").toCSS(),h=s.get("text").toCSS(),l=s.get("alternativeBackground").toCSS(.45);if(!o){const i=new r.FV([new n.StyleRule(t,".am5-modal",{width:"100%",height:"100%",position:"absolute","z-index":"100000",top:"0",left:"0"},e.nonce),new n.StyleRule(t,".am5-modal-curtain",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute",background:s.get("background").toCSS(.5),"z-index":"100"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute","text-align":"center","white-space":"nowrap",background:s.get("background").toCSS(.5),"z-index":"101"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper:before",{content:"''",display:"inline-block",height:"100%","vertical-align":"middle","margin-right":"-0.25em"},e.nonce),new n.StyleRule(t,".am5-modal-content",{display:"inline-block",padding:"1.2em","vertical-align":"middle","text-align":"start","white-space":"normal",background:s.get("background").toCSS(),"border-radius":"4px","-webkit-box-shadow":"0px 0px 36px 0px "+l,"box-shadow":"0px 0px 36px 0px "+l,color:h},e.nonce),new n.StyleRule(t,".am5-modal-content h1",{"font-size":"1em",margin:"0 0 0.5em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table",{display:"table",margin:"1em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-row",{display:"table-row"},e.nonce),new n.StyleRule(t,".am5-modal-table-heading",{display:"table-heading",padding:"3px 10px 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell",{display:"table-cell",padding:"3px 0 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell > *",{"vertical-align":"middle"},e.nonce),new n.StyleRule(t,".am5-modal-content input[type=text], .am5-modal-content input[type=number], .am5-modal-content select",{border:"1px solid "+a,"border-radius":"4px",padding:"3px 5px",margin:"2px"},e.nonce),new n.StyleRule(t,".am5-modal-input-narrow",{width:"50px"},e.nonce),new n.StyleRule(t,".am5-modal-button",{"font-weight":"400",color:s.get("secondaryButtonText").toCSS(),"line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer",padding:"0.2em 0.8em","font-size":"1em","border-radius":"0.25em",margin:"0 0.25em 0 0",border:"1px solid "+s.get("secondaryButtonStroke").toCSS(),background:s.get("secondaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button:hover",{background:s.get("secondaryButtonHover").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary",{color:s.get("primaryButtonText").toCSS(),border:"1px solid "+s.get("primaryButtonStroke").toCSS(),background:s.get("primaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary:hover",{background:s.get("primaryButtonHover").toCSS()},e.nonce)]);o=new r.DM((()=>{o=void 0,i.dispose()}))}o.increment()}(n.getShadowRoot(this._root.dom),this._root);const t=document.createElement("div");t.className="am5-modal",t.style.display="none",this.root._inner.appendChild(t),this.setPrivate("container",t);const e=document.createElement("div");e.className="am5-modal-curtain",t.appendChild(e),this.setPrivate("curtain",e),this._disposers.push(n.addEventListener(e,"click",(()=>{this.cancel()})));const i=document.createElement("div");i.className="am5-modal-wrapper",t.appendChild(i),this.setPrivate("wrapper",i);const s=document.createElement("div");s.className="am5-modal-content",i.appendChild(s),this.setPrivate("content",s);const a=this.get("content");a&&(s.innerHTML=a),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{this.isOpen()&&"Escape"==n.getEventKey(t)&&this.cancel()})))}_beforeChanged(){super._beforeChanged(),this.isDirty("content")&&(this.getPrivate("content").innerHTML=this.get("content",""))}isOpen(){return"none"!=this.getPrivate("container").style.display}open(){this.getPrivate("container").style.display="block",this.get("deactivateRoot")&&this.setTimeout((()=>{this._root._renderer.interactionsEnabled=!1}),10),this.events.dispatch("opened",{type:"opened",target:this})}close(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("closed",{type:"closed",target:this})}cancel(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("cancelled",{type:"cancelled",target:this})}_dispose(){super._dispose();const t=this.getPrivate("container");t.parentElement&&t.parentElement.removeChild(t)}}a.className="Modal",a.classNames=s.JH.classNames.concat([a.className])},780:function(t,e,i){"use strict";i.d(e,{e:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const t="_big_number_suffix_",e="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(t+"3")},{number:1e6,suffix:this._t(t+"6")},{number:1e9,suffix:this._t(t+"9")},{number:1e12,suffix:this._t(t+"12")},{number:1e15,suffix:this._t(t+"15")},{number:1e18,suffix:this._t(t+"18")},{number:1e21,suffix:this._t(t+"21")},{number:1e24,suffix:this._t(t+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(e+"24")},{number:1e-21,suffix:this._t(e+"21")},{number:1e-18,suffix:this._t(e+"18")},{number:1e-15,suffix:this._t(e+"15")},{number:1e-12,suffix:this._t(e+"12")},{number:1e-9,suffix:this._t(e+"9")},{number:1e-6,suffix:this._t(e+"6")},{number:.001,suffix:this._t(e+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s;(null==e||a.isString(e)&&"number"===e.toLowerCase())&&(e=this.get("numberFormat",""));let n=Number(t);if(a.isObject(e))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),e).format(n):new Intl.NumberFormat(void 0,e).format(n)}catch(t){return"Invalid"}else{e=o.cleanFormat(e);let t,h=this.parseFormat(e,this._root.language);t=n>this.get("negativeBase")?h.positive:n{if(e.parsed)return;let i=e.source;"number"===i.toLowerCase()&&(i=this.get("numberFormat","#,###.#####"));let s=n.V.chunk(i,!0);for(let t=0;t=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(i[0]),n="e"+i[1],e.modSpacing&&(n=" "+n)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){const i=o.decimalPlaces(t);if(i>0){const s=Math.pow(10,e.decimals.passive);t=Math.round(parseFloat((t*s).toFixed(i)))/s}}let h="",l=a.numberToString(t).split("."),c=l[0];if(c.length0){let t=[],i=c.split("").reverse().join("");for(let s=0,n=c.length;s<=n;s+=e.thousands.interval){let n=i.substr(s,e.thousands.interval).split("").reverse().join("");""!==n&&t.unshift(n)}c=t.join(e.thousands.separator)}h+=c,1===l.length&&l.push("");let u=l[1];return u.length{e(i,t[i])}))}function l(t,e){for(let i in t)if(u(t,i)&&!e(i,t[i]))break}function c(t,e,i){s.each(o(t,i),(i=>{e(i,t[i])}))}function u(t,e){return{}.hasOwnProperty.call(t,e)}function d(t,e){return h(t,((t,i)=>{null!=i&&null==e[t]&&(e[t]=i)})),e}},3540:function(t,e,i){"use strict";function s(t,e){return t===e?0:t{a.isObject(e)&&"function"==typeof e.dispose&&(e.enableDispose=!0,e.dispose())}))}class l{constructor(t,e,i){this._name=t,this._template=e,this._settings=i}_dispose(){h(this._settings)}get(t,e){const i=this._settings[t];return void 0!==i?i:e}set(t,e){this._settings[t]=e,this._template._stateChanged(this._name)}remove(t){delete this._settings[t],this._template._stateChanged(this._name)}setAll(t){o.keys(t).forEach((e=>{this._settings[e]=t[e]})),this._template._stateChanged(this._name)}_apply(t,e){o.each(this._settings,((i,s)=>{e[i]||t._userSettings[i]||(e[i]=!0,t.setRaw(i,s))}))}}class c{constructor(t){this._states={},this._template=t}_dispose(){o.each(this._states,((t,e)=>{e._dispose()}))}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new l(t,this._template,e);return this._states[t]=i,this._template._stateChanged(t),i}}remove(t){delete this._states[t],this._template._stateChanged(t)}_apply(t,e){o.each(this._states,((i,s)=>{let n=e.states[i];null==n&&(n=e.states[i]={});const r=t.states.create(i,{});s._apply(r,n)}))}}class u{constructor(){this._callbacks={}}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._callbacks[t]}))}remove(t){void 0!==this._callbacks[t]&&delete this._callbacks[t]}_apply(t){const e=[];return o.each(this._callbacks,((i,s)=>{r.each(s,(s=>{e.push(t.adapters.add(i,s))}))})),new n.FV(e)}}class d{constructor(t,e){if(this._disposed=!1,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._entities=[],this.states=new c(this),this.adapters=new u,this.events=new s.p,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=t}static new(t){return new d(t,!0)}_dispose(){h(this._settings),h(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(t,e){this._checkDisposed();const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._checkDisposed(),this._settings[t]=e}set(t,e){this._checkDisposed(),this._settings[t]!==e&&(this.setRaw(t,e),this._entities.forEach((i=>{i._setTemplateProperty(this,t,e)})))}remove(t){this._checkDisposed(),t in this._settings&&(delete this._settings[t],this._entities.forEach((e=>{e._removeTemplateProperty(t)})))}removeAll(){this._checkDisposed(),o.each(this._settings,((t,e)=>{this.remove(t)}))}getPrivate(t,e){this._checkDisposed();const i=this._privateSettings[t];return void 0!==i?i:e}setPrivateRaw(t,e){return this._checkDisposed(),this._privateSettings[t]=e,e}setPrivate(t,e){return this._checkDisposed(),this._privateSettings[t]!==e&&(this.setPrivateRaw(t,e),this._entities.forEach((i=>{i._setTemplatePrivateProperty(this,t,e)}))),e}removePrivate(t){this._checkDisposed(),t in this._privateSettings&&(delete this._privateSettings[t],this._entities.forEach((e=>{e._removeTemplatePrivateProperty(t)})))}setAll(t){this._checkDisposed(),o.each(t,((t,e)=>{this.set(t,e)}))}on(t,e){this._checkDisposed();let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}onPrivate(t,e){this._checkDisposed();let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}_apply(t,e){this._checkDisposed();const i=[];return o.each(this._settingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.on(e,s))}))})),o.each(this._privateSettingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.onPrivate(e,s))}))})),this.states._apply(t,e),i.push(this.adapters._apply(t)),i.push(t.events.copyFrom(this.events)),new n.FV(i)}_setObjectTemplate(t){this._checkDisposed(),this._entities.push(t)}_removeObjectTemplate(t){r.remove(this._entities,t)}_stateChanged(t){this._checkDisposed(),this._entities.forEach((e=>{e._applyStateByKey(t)}))}}},7255:function(t,e,i){"use strict";i.d(e,{V:function(){return r}});var s=i(1112),n=i(5040);class r{static escape(t){return t.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(t){return t.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(t,e=!1,i=!1){let s=[];t=this.escape(t);let r=e?t.split("'"):[t];for(let t=0;t{setTimeout(e,t)}))}let o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629742400,year:31536e6};function a(t){switch(t){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function h(t,e){return null==e&&(e=1),o[t]*e}function l(t){return t?o[t.timeUnit]*t.count:0}function c(t,e,i,s,n){const r=t.timeUnit,a=t.count;if("hour"==r||"minute"==r||"second"==r||"millisecond"==r)return o[t.timeUnit]*t.count;{const t=m(new Date(e.getTime()),r,a,i,s,void 0,n).getTime();let o=t+a*h(r)*1.05;return o=m(new Date(o),r,1,i,s,void 0,n).getTime(),o-t}}function u(){return new Date}function d(){return u().getTime()}function p(t){return new Date(t.getTime())}function g(t,e,i,s,n){if(e-t>h(i,1.2))return!0;let r=new Date(t),o=new Date(e);n&&(r=n.convertLocal(r),o=n.convertLocal(o));let l=0,c=0;s||"millisecond"==i||(l=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-l),c=o.getTimezoneOffset(),o.setUTCMinutes(o.getUTCMinutes()-c));let u=!1;switch(i){case"year":r.getUTCFullYear()!=o.getUTCFullYear()&&(u=!0);break;case"month":(r.getUTCFullYear()!=o.getUTCFullYear()||r.getUTCMonth()!=o.getUTCMonth())&&(u=!0);break;case"day":(r.getUTCMonth()!=o.getUTCMonth()||r.getUTCDate()!=o.getUTCDate())&&(u=!0);break;case"hour":r.getUTCHours()!=o.getUTCHours()&&(u=!0);break;case"minute":r.getUTCMinutes()!=o.getUTCMinutes()&&(u=!0);break;case"second":r.getUTCSeconds()!=o.getUTCSeconds()&&(u=!0);break;case"millisecond":r.getTime()!=o.getTime()&&(u=!0)}if(u)return u;let d=a(i);return!!d&&g(t,e,d,s,n)}function f(t,e,i,s,n){let r=0;switch(s||"millisecond"==e||(r=t.getTimezoneOffset(),n&&(r-=n.offsetUTC(t)),t.setUTCMinutes(t.getUTCMinutes()-r)),e){case"day":let e=t.getUTCDate();t.setUTCDate(e+i);break;case"second":let s=t.getUTCSeconds();t.setUTCSeconds(s+i);break;case"millisecond":let n=t.getUTCMilliseconds();t.setUTCMilliseconds(n+i);break;case"hour":let r=t.getUTCHours();t.setUTCHours(r+i);break;case"minute":let o=t.getUTCMinutes();t.setUTCMinutes(o+i);break;case"year":let a=t.getUTCFullYear();t.setUTCFullYear(a+i);break;case"month":const h=t.getUTCDate(),l=new Date(t.getUTCFullYear(),t.getUTCMonth(),0).getUTCDate();let c=t.getUTCMonth();h>l?t.setUTCMonth(c+i,l):t.setUTCMonth(c+i);break;case"week":let u=t.getUTCDate();t.setUTCDate(u+7*i)}if(!s&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+r),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(n&&(e+=n.offsetUTC(t)),e!=r){let i=e-r;t.setUTCMinutes(t.getUTCMinutes()+i),t.getTimezoneOffset()!=e&&t.setUTCMinutes(t.getUTCMinutes()-i)}}return t}function _(t,e,i,s,n){let r;return null!=n&&(r=new Date(n)),m(new Date(t),e,i,s.locale.firstDayOfWeek,s.utc,r,s.timezone).getTime()}function m(t,e,i,n,r,o,a){if(!a||r){let a=0;switch(r||"millisecond"==e||(a=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-a)),e){case"day":let e=t.getUTCDate();if(i>1){if(o){o=m(o,"day",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),n=h("day",s*i);t.setTime(o.getTime()+n-a*h("minute"))}}else t.setUTCDate(e);t.setUTCHours(0,0,0,0);break;case"second":let r=t.getUTCSeconds();i>1&&(r=Math.floor(r/i)*i),t.setUTCSeconds(r,0);break;case"millisecond":if(1==i)return t;let l=t.getUTCMilliseconds();l=Math.floor(l/i)*i,t.setUTCMilliseconds(l);break;case"hour":let c=t.getUTCHours();i>1&&(c=Math.floor(c/i)*i),t.setUTCHours(c,0,0,0);break;case"minute":let u=t.getUTCMinutes();i>1&&(u=Math.floor(u/i)*i),t.setUTCMinutes(u,0,0);break;case"month":let d=t.getUTCMonth();i>1&&(2!=i&&3!=i&&4!=i&&6!=i||(d=Math.floor(d/i)*i)),t.setUTCMonth(d,1),t.setUTCHours(0,0,0,0);break;case"year":let p=t.getUTCFullYear();i>1&&(p=Math.floor(p/i)*i),t.setUTCFullYear(p,0,1),t.setUTCHours(0,0,0,0);break;case"week":if(i>1&&o){o=m(o,"week",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("week")/i),n=h("week",s*i);t.setTime(o.getTime()+n-a*h("minute"))}let g=t.getUTCDate(),f=t.getUTCDay();s.isNumber(n)||(n=1),g=f>=n?g-f+n:g-(7+f)+n,t.setUTCDate(g),t.setUTCHours(0,0,0,0)}if(!r&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+a),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(e!=a){let i=e-a;t.setUTCMinutes(t.getUTCMinutes()+i)}}return t}{if(isNaN(t.getTime()))return t;let l=t.getTime(),c=a.offsetUTC(t),u=t.getTimezoneOffset(),d=a.parseDate(t),p=d.year,g=d.month,f=d.day,_=d.hour,y=d.minute,v=d.second,w=d.millisecond,b=d.weekday,x=c-u;switch(e){case"day":if(i>1&&o){o=m(o,"day",1,n,r,void 0,a);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),l=h("day",s*i);t.setTime(o.getTime()+l),d=a.parseDate(t),p=d.year,g=d.month,f=d.day}_=0,y=x,v=0,w=0;break;case"second":y+=x,i>1&&(v=Math.floor(v/i)*i),w=0;break;case"millisecond":y+=x,i>1&&(w=Math.floor(w/i)*i);break;case"hour":i>1&&(_=Math.floor(_/i)*i),y=x,v=0,w=0;break;case"minute":i>1&&(y=Math.floor(y/i)*i),y+=x,v=0,w=0;break;case"month":i>1&&(g=Math.floor(g/i)*i),f=1,_=0,y=x,v=0,w=0;break;case"year":i>1&&(p=Math.floor(p/i)*i),g=0,f=1,_=0,y=x,v=0,w=0;break;case"week":s.isNumber(n)||(n=1),f=b>=n?f-b+n:f-(7+b)+n,_=0,y=x,v=0,w=0}const D=(t=new Date(p,g,f,_,y,v,w)).getTime();let k=36e5;"hour"==e&&(k=36e5*i),D+k<=l&&("hour"!=e&&"minute"!=e&&"second"!=e&&"millisecond"!=e||(t=new Date(D+k)));let T=t.getTimezoneOffset(),M=a.offsetUTC(t)-T;return M!=x&&t.setTime(t.getTime()+6e4*(M-x)),t}}function y(t,e,i,s){let n=l(s[t]),r=s.length-1;if(t>=r)return Object.assign({},s[r]);let o=Math.ceil(e/n);return e0?Object.assign({},s[t-1]):o<=i?Object.assign({},s[t]):t+1{switch(t.type){case"year":i=+t.value;break;case"month":s=+t.value-1;break;case"day":n=+t.value;break;case"hour":r=+t.value;break;case"minute":o=+t.value;break;case"second":a=+t.value;break;case"fractionalSecond":h=+t.value;break;case"weekday":switch(t.value){case"Sun":l=0;break;case"Mon":l=1;break;case"Tue":l=2;break;case"Wed":l=3;break;case"Thu":l=4;break;case"Fri":l=5;break;case"Sat":l=6}}})),24===r&&(r=0),{year:i,month:s,day:n,hour:r,minute:o,second:a,millisecond:h,weekday:l}}function n(t,e){const{year:i,month:n,day:r,hour:o,minute:a,second:h,millisecond:l}=s(t,e);return Date.UTC(i,n,r,o,a,h,l)}i.d(e,{r:function(){return r}});class r{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=t,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(t){return new this(t,!0)}convertLocal(t){const e=this.offsetUTC(t),i=t.getTimezoneOffset(),s=new Date(t);s.setUTCMinutes(s.getUTCMinutes()-(e-i));const n=s.getTimezoneOffset();return i!=n&&s.setUTCMinutes(s.getUTCMinutes()+n-i),s}offsetUTC(t){return(n(this._utc,t)-n(this._dtf,t))/6e4}parseDate(t){return s(this._dtf,t)}}},5040:function(t,e,i){"use strict";function s(t){return Number(t)!==t}function n(t){return{}.toString.call(t)}function r(t,e="Assertion failed"){if(!t)throw new Error(e)}function o(t){if(null!=t&&!d(t)){let e=Number(t);if(s(e)&&u(t)&&""!=t&&t.match(/[0-9]+/)){const i=t.replace(/[^0-9.\-]+/g,"");return t===i?e:o(i)}return e}return t}function a(t){if(c(t))return new Date(t);if(d(t))return new Date(t);{let e=Number(t);return d(e)?new Date(e):new Date(t)}}function h(t){if(s(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t==-1/0)return"-0";let e=t<0;t=Math.abs(t);let i,n=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t),r=n[1],o=n[2]||"";if(void 0===n[3])i=""===o?r:r+"."+o;else{let e=+n[3];if(t<1)i="0."+l("0",e-1)+r+o;else{let t=e-o.length;i=0===t?r+o:t<0?r+o.slice(0,t)+"."+o.slice(t):r+o+l("0",t)}}return e?"-"+i:i}function l(t,e){return new Array(e+1).join(t)}function c(t){return"[object Date]"===n(t)}function u(t){return"string"==typeof t}function d(t){return"number"==typeof t&&Number(t)==t}function p(t){return"object"==typeof t&&null!==t}function g(t){return Array.isArray(t)}i.r(e),i.d(e,{PLACEHOLDER:function(){return f},PLACEHOLDER2:function(){return _},assert:function(){return r},getType:function(){return n},isArray:function(){return g},isDate:function(){return c},isNaN:function(){return s},isNumber:function(){return d},isObject:function(){return p},isString:function(){return u},numberToString:function(){return h},repeat:function(){return l},toDate:function(){return a},toNumber:function(){return o}});const f="__§§§__",_="__§§§§__"},7652:function(t,e,i){"use strict";i.r(e),i.d(e,{StyleRule:function(){return E},StyleSheet:function(){return O},addClass:function(){return P},addEventListener:function(){return l},addSpacing:function(){return Y},alternativeColor:function(){return dt},blur:function(){return p},brighten:function(){return ht},capitalizeFirst:function(){return et},cleanFormat:function(){return z},contains:function(){return w},decimalPlaces:function(){return A},escapeForRgex:function(){return W},focus:function(){return g},get12Hours:function(){return Q},getBrightnessStep:function(){return lt},getDayFromWeek:function(){return q},getEventKey:function(){return D},getEventTarget:function(){return v},getFormat:function(){return H},getLightnessStep:function(){return at},getMonthWeek:function(){return K},getPointerId:function(){return d},getRendererEvent:function(){return f},getSafeResolution:function(){return C},getShadowRoot:function(){return k},getStyle:function(){return y},getTimeZone:function(){return J},getTimezoneOffset:function(){return tt},getWeek:function(){return $},getWeekYear:function(){return Z},getYearDay:function(){return X},hslToHsv:function(){return rt},hslToRgb:function(){return it},hsvToHsl:function(){return nt},iOS:function(){return N},isLight:function(){return ct},isLocalEvent:function(){return b},isTouchEvent:function(){return _},lighten:function(){return ot},mergeTags:function(){return pt},onZoom:function(){return c},padString:function(){return R},plainText:function(){return V},ready:function(){return a},relativeToValue:function(){return L},removeClass:function(){return S},removeElement:function(){return h},rgbToHsl:function(){return st},sameBounds:function(){return gt},saturate:function(){return ut},setInteractive:function(){return x},setStyle:function(){return m},splitString:function(){return j},stripTags:function(){return G},supports:function(){return u},trim:function(){return F},trimLeft:function(){return U},trimRight:function(){return B},truncateTextWithEllipsis:function(){return I}});var s=i(5040),n=i(5071),r=i(256),o=i(7449);function a(t){if("loading"!==document.readyState)t();else{const e=()=>{"loading"!==document.readyState&&(document.removeEventListener("readystatechange",e),t())};document.addEventListener("readystatechange",e)}}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function l(t,e,i,s){return t.addEventListener(e,i,s||!1),new o.ku((()=>{t.removeEventListener(e,i,s||!1)}))}function c(t){return l(window,"resize",(e=>{t()}))}function u(t){switch(t){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function d(t){return t.pointerId||0}function p(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let t=document.createElement("button");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}}function g(t){t&&t.focus()}function f(t){if(u("pointerevents"))return t;if(u("touchevents"))switch(t){case"pointerover":case"pointerdown":return"touchstart";case"pointerout":case"pointerleave":case"pointerup":return"touchend";case"pointermove":return"touchmove";case"click":return"click";case"dblclick":return"dblclick"}else if(u("mouseevents"))switch(t){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return t}function _(t){if("undefined"!=typeof Touch&&t instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&t instanceof PointerEvent&&null!=t.pointerType)switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(null!=t.type&&t.type.match(/^mouse/))return!1;return!0}function m(t,e,i){t.style[e]=i}function y(t,e){return t.style[e]}function v(t){if(t.composedPath){const e=t.composedPath();return 0===e.length?null:e[0]}return t.target}function w(t,e){let i=e;for(;;){if(t===i)return!0;if(null===i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function b(t,e){return t.target&&w(e.root.dom,t.target)}function x(t,e){t.style.pointerEvents=e?"auto":"none"}function D(t){if(void 0!==t.key)return t.key;switch(t.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+t.keyCode}function k(t){let e=t;for(;;){if(null===e.parentNode)return null!=e.host?e:null;e=e.parentNode}}let T;function M(t,e){const i=t.cssRules.length;return t.insertRule(e+"{}",i),t.cssRules[i]}class E extends o.KK{constructor(t,e,i,s=""){super(),this._root=function(t,e=""){if(null===t){if(null==T){const t=document.createElement("style");t.type="text/css",""!=e&&t.setAttribute("nonce",e),document.head.appendChild(t),T=t.sheet}return T}{const i=document.createElement("style");return i.type="text/css",""!=e&&i.setAttribute("nonce",e),t.appendChild(i),i.sheet}}(t,s);try{this._rule=M(this._root,e)}catch(t){this._rule=M(this._root,":not(*)")}r.each(i,((t,e)=>{this.setStyle(t,e)}))}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){const t=n.indexOf(this._root.cssRules,this._rule);if(-1===t)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,e){const i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")}setStyle(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")}}class O extends o.KK{constructor(t,e,i=""){super(),this._element=function(t,e,i=""){const s=document.createElement("style");return s.type="text/css",""!=i&&s.setAttribute("nonce",i),s.textContent=e,null===t?document.head.appendChild(s):t.appendChild(s),s}(t,e,i)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}}function P(t,e){if(t)if(t.classList){const i=e.split(" ");n.each(i,(e=>{t.classList.add(e)}))}else{let i=t.getAttribute("class");i?t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" ")+" "+e):t.setAttribute("class",e)}}function S(t,e){if(t)if(t.classList)t.classList.remove(e);else{let i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" "))}}function N(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function C(){return N()?1:void 0}function L(t,e){return s.isNumber(t)?t:null!=t&&s.isNumber(t.value)&&s.isNumber(e)?e*t.value:0}function A(t){let e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function R(t,e=0,i="0"){return"string"!=typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t}function U(t){return t.replace(/^[\s]*/,"")}function B(t){return t.replace(/[\s]*$/,"")}function F(t){return U(B(t))}function I(t,e,i=!1,s="..."){if(t.length>e){let n=e-1;for(;n>=0&&t.charAt(n).match(/\w/);)n--;return n>=0&&0==i?t.substring(0,n+1)+"...":t.substring(0,e)+s}return t}function H(t){if(void 0===t)return"string";let e=(t=(t=(t=t.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return e?e[1]:"number"===t?"number":"date"===t?"date":"duration"===t?"duration":t.match(/[#0]/)?"number":t.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function z(t){return t.replace(/\/(date|number|duration)$/i,"")}function G(t){return t?t.replace(/<[^>]*>/g,""):t}function V(t){return t?G((""+t).replace(/[\n\r]+/g,". ")):t}function W(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Y(t){let e="";for(let i=0;i{if(t.match(/^\s+$/))(t=" ")&&(t=" "),n.push(t);else if(e.test(t)){let e=t.split(i).filter((t=>""!==t));n=n.concat(e)}else n=n.concat([...t])})),n}function X(t,e=!1){const i=new Date(t.getFullYear(),0,0),s=t.getTime()-i.getTime()+60*(i.getTimezoneOffset()-t.getTimezoneOffset())*1e3;return Math.floor(s/864e5)}function $(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-s);const n=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-n.getTime())/864e5+1)/7)}function Z(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;return i.setUTCDate(i.getUTCDate()+4-s),new Date(Date.UTC(i.getUTCFullYear(),0,1)).getFullYear()}function K(t,e=!1){const i=$(new Date(t.getFullYear(),t.getMonth(),1),e);let s=$(t,e);return 1==s&&(s=53),s-i+1}function q(t,e,i=1,s=!1){let n=new Date(e,0,4,0,0,0,0);return s&&n.setUTCFullYear(e),7*t+i-((n.getDay()||7)+3)}function Q(t,e){return t>12?t-=12:0===t&&(t=12),null!=e?t+(e-1):t}function J(t,e=!1,i=!1,s=!1,n){if(s)return e?"Coordinated Universal Time":"UTC";if(n){const i=t.toLocaleString("en-US",{timeZone:n});return F(t.toLocaleString("en-US",{timeZone:n,timeZoneName:e?"long":"short"}).substr(i.length))}let r=t.toLocaleString("UTC"),o=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(o=o.replace(/ (standard|daylight|summer|winter) /i," ")),F(o)}function tt(t,e){const i=e||new Date(Date.UTC(2012,0,1,0,0,0,0)),s=new Date(i.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(i.toLocaleString("en-US",{timeZone:t})).getTime()-s.getTime())/6e4*-1}function et(t){return t.charAt(0).toUpperCase()+t.slice(1)}function it(t){let e,i,s,n=t.h,r=t.s,o=t.l;if(0==r)e=i=s=o;else{let t=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},a=o<.5?o*(1+r):o+r-o*r,h=2*o-a;e=t(h,a,n+1/3),i=t(h,a,n),s=t(h,a,n-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*s)}}function st(t){let e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),r=Math.min(e,i,s),o=0,a=0,h=(n+r)/2;if(n===r)o=a=0;else{let t=n-r;switch(a=h>.5?t/(2-n-r):t/(n+r),n){case e:o=(i-s)/t+(i0?255-t:t;return Math.round(i*e)}function ht(t,e){if(t){let i=at(Math.min(Math.max(t.r,t.g,t.b),230),e);return{r:Math.max(0,Math.min(255,Math.round(t.r+i))),g:Math.max(0,Math.min(255,Math.round(t.g+i))),b:Math.max(0,Math.min(255,Math.round(t.b+i))),a:t.a}}return t}function lt(t,e){return Math.round(255*e)}function ct(t){return(299*t.r+587*t.g+114*t.b)/1e3>=128}function ut(t,e){if(void 0===t||1==e)return t;let i=st(t);return i.s=e,it(i)}function dt(t,e={r:255,g:255,b:255},i={r:255,g:255,b:255}){let s=e,n=i;return ct(i)&&(s=i,n=e),ct(t)?n:s}function pt(t,e){return t||(t=[]),[...t,...e].filter(((t,e,i)=>i.indexOf(t)===e))}function gt(t,e){return!!e&&t.left==e.left&&t.right==e.right&&t.top==e.top&&t.bottom==e.bottom}},3360:function(t,e,i){"use strict";i.d(e,{z:function(){return D},m:function(){return k}});var s=i(7582),n=i(6331),r=i(4596),o=i(8777),a=i(1112),h=i(6245),l=i(5769),c=i(9582),u=i(5040),d=i(5071),p=i(256),g={AccelerationBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccelerationBands)),AccumulationDistribution:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulationDistribution)),AccumulativeSwingIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulativeSwingIndex)),Annotator:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Annotator)),ArcDiagram:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagram)),ArcDiagramLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramLink)),ArcDiagramNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramNodes)),Aroon:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Aroon)),AverageSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageSeries)),AverageTrueRange:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageTrueRange)),AwesomeOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AwesomeOscillator)),Axis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Axis)),AxisBullet:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisBullet)),AxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabel)),AxisLabelRadial:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabelRadial)),AxisRenderer:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRenderer)),AxisRendererCircular:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererCircular)),AxisRendererCurveX:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveX)),AxisRendererCurveY:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveY)),AxisRendererRadial:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererRadial)),AxisRendererX:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererX)),AxisRendererY:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererY)),AxisTick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisTick)),BaseColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.BaseColumnSeries)),BollingerBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BollingerBands)),BreadcrumbBar:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.BreadcrumbBar)),BullBearPower:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BullBearPower)),Bullet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Bullet)),Button:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Button)),CalloutSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CalloutSeries)),Candlestick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Candlestick)),CandlestickSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CandlestickSeries)),CategoryAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryAxis)),CategoryDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryDateAxis)),ChaikinMoneyFlow:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinMoneyFlow)),ChaikinOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinOscillator)),Chart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Chart)),ChartIndicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChartIndicator)),Chord:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Chord)),ChordDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordDirected)),ChordLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLink)),ChordLinkDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLinkDirected)),ChordNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNodes)),ChordNonRibbon:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNonRibbon)),Circle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Circle)),CirclePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.CirclePattern)),ClockHand:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.ClockHand)),ClusteredPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ClusteredPointSeries)),ColorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ColorControl)),ColorPicker:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPicker)),ColorPickerButton:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPickerButton)),ColorSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ColorSet)),ColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ColumnSeries)),CommodityChannelIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CommodityChannelIndex)),ComparisonControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ComparisonControl)),Component:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Component)),ConfirmButton:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ConfirmButton)),Container:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Container)),CurveChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveChart)),CurveColumnSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveColumnSeries)),CurveCursor:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveCursor)),CurveLineSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveLineSeries)),DataSaveControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DataSaveControl)),DateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DateAxis)),DateRangeSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DateRangeSelector)),DisparityIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DisparityIndex)),DoodleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DoodleSeries)),DrawingControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingControl)),DrawingSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingSeries)),DrawingToolControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingToolControl)),Dropdown:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Dropdown)),DropdownColors:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownColors)),DropdownControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownControl)),DropdownList:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownList)),DropdownListControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownListControl)),DurationAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DurationAxis)),EditableAxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.EditableAxisLabel)),EditableLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.EditableLabel)),Ellipse:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Ellipse)),EllipseSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.EllipseSeries)),Entity:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Entity)),Exporting:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Exporting)),ExportingMenu:()=>Promise.resolve().then((()=>i(396))).then((t=>t.ExportingMenu)),FibonacciSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciSeries)),FibonacciTimezoneSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciTimezoneSeries)),Flow:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Flow)),FlowLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowLink)),FlowNode:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNode)),FlowNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNodes)),ForceDirected:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.ForceDirected)),FunnelSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSeries)),FunnelSlice:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSlice)),Gantt:()=>Promise.resolve().then((()=>i(133))).then((t=>t.Gantt)),GanttCategoryAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxis)),GanttCategoryAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxisRenderer)),GanttDateAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxis)),GanttDateAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxisRenderer)),GanttSeries:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttSeries)),GaplessDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.GaplessDateAxis)),Gradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Gradient)),GrainPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GrainPattern)),Graphics:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Graphics)),GraticuleSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.GraticuleSeries)),Grid:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Grid)),GridLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GridLayout)),HeatLegend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HeatLegend)),HeikinAshi:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HeikinAshi)),Hierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Hierarchy)),HierarchyLink:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyLink)),HierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyNode)),HorizontalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HorizontalLayout)),HorizontalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalLineSeries)),HorizontalRaySeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalRaySeries)),IconControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconControl)),IconSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconSeries)),Indicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Indicator)),IndicatorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IndicatorControl)),InterfaceColors:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.InterfaceColors)),IntervalControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IntervalControl)),Label:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Label)),LabelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LabelSeries)),Layout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Layout)),Legend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Legend)),Line:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Line)),LineArrowSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LineArrowSeries)),LinePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinePattern)),LineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.LineSeries)),LinearGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinearGradient)),Link:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Link)),LinkedHierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchy)),LinkedHierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchyNode)),MACD:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACD)),MACross:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACross)),MapChart:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapChart)),MapLine:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLine)),MapLineSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLineSeries)),MapPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPointSeries)),MapPolygon:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygon)),MapPolygonSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygonSeries)),MapSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapSeries)),Measure:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Measure)),MedianPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MedianPrice)),Modal:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Modal)),Momentum:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Momentum)),MovingAverage:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverage)),MovingAverageDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageDeviation)),MovingAverageEnvelope:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageEnvelope)),NumericStepper:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.NumericStepper)),OHLC:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLC)),OHLCSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLCSeries)),OnBalanceVolume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OnBalanceVolume)),OrthogonalLine:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.OrthogonalLine)),OverboughtOversold:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OverboughtOversold)),PVT:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PVT)),Pack:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Pack)),PanelControls:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PanelControls)),ParallelChannelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ParallelChannelSeries)),Partition:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Partition)),PathPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PathPattern)),Pattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Pattern)),PatternSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PatternSet)),PercentChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentChart)),PercentSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentSeries)),PeriodSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PeriodSelector)),PictorialStackedSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PictorialStackedSeries)),Picture:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Picture)),PicturePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PicturePattern)),PieChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieChart)),PieSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieSeries)),PointedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PointedRectangle)),Polygon:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Polygon)),PolylineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PolylineSeries)),ProgressPie:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ProgressPie)),PyramidSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PyramidSeries)),QuadrantLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.QuadrantLineSeries)),RadarChart:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarChart)),RadarColumnSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarColumnSeries)),RadarCursor:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarCursor)),RadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarLineSeries)),RadialGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialGradient)),RadialLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialLabel)),RadialText:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialText)),Rectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Rectangle)),RectanglePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RectanglePattern)),RectangleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RectangleSeries)),RegressionSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RegressionSeries)),RelativeStrengthIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RelativeStrengthIndex)),ResetControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ResetControl)),RoundedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RoundedRectangle)),Sankey:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Sankey)),SankeyLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyLink)),SankeyNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyNodes)),Scrollbar:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Scrollbar)),SerialChart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SerialChart)),Serializer:()=>Promise.resolve().then((()=>i(5362))).then((t=>t.Serializer)),Series:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Series)),SeriesTypeControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SeriesTypeControl)),SerpentineChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SerpentineChart)),SettingsControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsControl)),SettingsModal:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsModal)),SimpleLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SimpleLineSeries)),Slice:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slice)),SliceGrouper:()=>Promise.resolve().then((()=>i(1790))).then((t=>t.SliceGrouper)),SlicedChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.SlicedChart)),Slider:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slider)),SmoothedRadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.SmoothedRadarLineSeries)),SmoothedXLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXLineSeries)),SmoothedXYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXYLineSeries)),SmoothedYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedYLineSeries)),SpiralChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SpiralChart)),Sprite:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Sprite)),SpriteResizer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SpriteResizer)),StandardDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StandardDeviation)),Star:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Star)),StepLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.StepLineSeries)),StochasticMomentumIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticMomentumIndex)),StochasticOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticOscillator)),StockChart:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockChart)),StockControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockControl)),StockLegend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockLegend)),StockPanel:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockPanel)),StockToolbar:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockToolbar)),Sunburst:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Sunburst)),SuperTrend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SuperTrend)),Text:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Text)),Tick:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tick)),Tooltip:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tooltip)),Tree:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Tree)),Treemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Treemap)),TrendLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TrendLineSeries)),Triangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Triangle)),Trix:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Trix)),TypicalPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TypicalPrice)),VWAP:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VWAP)),ValueAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ValueAxis)),Venn:()=>Promise.resolve().then((()=>i(8034))).then((t=>t.Venn)),VerticalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.VerticalLayout)),VerticalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VerticalLineSeries)),Volume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Volume)),VolumeProfile:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VolumeProfile)),VoronoiTreemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.VoronoiTreemap)),WilliamsR:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.WilliamsR)),WordCloud:()=>Promise.resolve().then((()=>i(6769))).then((t=>t.WordCloud)),XYChart:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChart)),XYChartScrollbar:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChartScrollbar)),XYCursor:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYCursor)),XYSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYSeries)),ZigZag:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ZigZag)),ZoomControl:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ZoomControl)),ZoomTools:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomTools)),ZoomableContainer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomableContainer))};function f(t){return u.isObject(t)}function _(t){return t instanceof n.JH||t instanceof a.Il||t instanceof h.gG||t instanceof l.YS}function m(t,e){let i=t.length;for(;i--;){const s=t[i];if(e in s)return s[e]}throw new Error("Could not find ref "+e)}function y(t,e){if("#"===t[0]||"@"===t[0]){if(t[1]===t[0])return{isValue:!0,value:t.slice(1)};{const i=t.split(/\./g);let s=m(e,i[0]);for(let t=1;t{e(t)}))}function w(t,e){v(t,e),e.adapters&&d.each(e.adapters,(e=>{t.adapters.add(e.key,e.callback)})),e.states&&d.each(e.states,(e=>{t.states.create(e.key,e.settings)})),t instanceof o.W&&e.children&&e.children.forEach((e=>{null==e.index||e.index>=t.children.length?t.children.push(e.value):t.children.insertIndex(e.index,e.value)}))}function b(t,e){if(!e.construct)return e.value;const i=e.construct.new(t,e.settings||{});return w(i,e),i}class x{constructor(){this._caching={},this._cache={},this._delayed=[]}afterParse(){this._delayed.forEach((t=>{t()}))}getClass(t){return this._cache[t]}storeClass(t){return(0,s.mG)(this,void 0,void 0,(function*(){if("Template"===t)return;const e=g[t];if(null==e)throw new Error("Unknown object type `"+t+"`");this._cache[t]=yield e()}))}cacheClass(t){let e=this._caching[t];return null==e&&(e=this._caching[t]=this.storeClass(t)),e}parseAsyncArray(t){return(0,s.mG)(this,void 0,void 0,(function*(){yield Promise.all(d.map(t,(t=>this.parseAsync(t))))}))}parseAsyncObjectKey(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){"type"===t?u.isString(e)?yield this.cacheClass(e):yield this.parseAsync(e):"geoJSON"===t||"geometry"===t||(yield this.parseAsync(e))}))}parseAsyncObject(t){return(0,s.mG)(this,void 0,void 0,(function*(){switch(t.type){case"Color":case"Percent":break;default:yield Promise.all(d.map(p.keys(t),(e=>this.parseAsyncObjectKey(e,t[e]))))}}))}parseAsync(t){return(0,s.mG)(this,void 0,void 0,(function*(){u.isArray(t)?yield this.parseAsyncArray(t):f(t)&&(_(t)||!0!==t.__parse&&!1===t.__parse||(yield this.parseAsyncObject(t)))}))}parseObject(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parse(t,e[n],i)})),s}parseArray(t,e,i){return d.map(e,(e=>this.parse(t,e,i)))}parseChildren(t,e,i){return d.map(e,(e=>this.parseChild(t,e,i)))}parseStops(t,e,i){return d.map(e,(e=>this.parseObject(t,e,i)))}parseSetting(t,e,i,s){if("layout"===e)switch(i){case"horizontal":return t.horizontalLayout;case"vertical":return t.verticalLayout;case"grid":return t.gridLayout}return"clusteredBullet"===e?(e,n)=>{const r=s.concat([{"@series":n}]);return this.parse(t,i,r)}:"projection"===e||"geoJSON"===e?i:"stops"===e?this.parseStops(t,i,s):this.parse(t,i,s)}parseSettings(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parseSetting(t,n,e[n],i)})),s}parseState(t,e,i){return{key:e.key,settings:this.parseSettings(t,e.settings,i)}}parseAdapter(t,e,i){return{key:e.key,callback:this.parse(t,e.callback,i)}}parseProperties(t,e,i){return d.map(p.keys(e),(s=>{const r=e[s];return e=>{const o=()=>{const o=this.parseValue(t,r,i),a=e[s];a?o.isValue?u.isArray(o.value)?a instanceof c.k?a.setAll(o.value):d.each(o.value,(t=>{a.push(t)})):e[s]=o.value:o.construct?e[s]=b(t,o):a instanceof n.JH||a instanceof l.YS?function(t,e){e.settings&&t.setAll(e.settings),w(t,e)}(a,o):v(a,o):o.isValue?e[s]=o.value:e[s]=b(t,o)};if("data"===s)this._delayed.push(o);else if("bullets"===s){const n=e[s];u.assert(null!=n),u.assert(u.isArray(r)),d.each(r,(e=>{n.push(((s,n)=>{const r=i.concat([{"@series":n}]);return this.parse(t,e,r)}))}))}else"bullet"===s?e.set("bullet",((e,s)=>{const n=i.concat([{"@axis":s}]);return this.parse(t,r,n)})):o()}}))}parseAxisRange(t,e,i){return{isValue:!1,type:void 0,construct:void 0,settings:this.parseSettings(t,e.settings,i),adapters:void 0,states:void 0,children:void 0,properties:void 0,index:void 0,value:e}}parseRefsObject(t,e,i){const s={};return p.each(e,((e,r)=>{if("axisRange"==r.__parseLogic||"seriesAxisRange"==r.__parseLogic){const e=this.parseAxisRange(t,r,i),s=m(i,r.axis),o=s.makeDataItem({});let a;const h=r.series?m(i,r.series):void 0;h?a=h.createAxisRange(o):s.createAxisRange(o),function(t,e){e.settings&&p.each(e.settings,((e,i)=>{if(i instanceof n.JH){const s=t.get(e);s instanceof n.JH?s.setAll(i._settings):t.set(e,i)}else t.set(e,i)})),w(t,e)}(o,e),a&&["fills","strokes","graphics"].forEach((e=>{if(void 0!==a[e]&&void 0!==r[e]){r[e].__parse=!0;const s=this.parse(t,r[e],i);a[e].template.setAll(s)}}))}else s["#"+e]=this.parse(t,r,i)})),s}parseRefs(t,e,i){if(u.isArray(e)){const s=e.length;for(let n=0;nthis.parseState(t,e,i))):void 0,h=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0,l=null==e.index?void 0:e.index;return{isValue:!1,type:e.type,construct:s,settings:n,adapters:h,states:a,children:o,properties:r,index:l,value:e}}parseTemplate(t,e,i){e.refs&&(i=this.parseRefs(t,e.refs,i));const s=e.settings?this.parseSettings(t,e.settings,i):{},n=l.YS.new(s),r=e.states?d.map(e.states,(e=>this.parseState(t,e,i))):void 0,o=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0;return o&&d.each(o,(t=>{n.adapters.add(t.key,t.callback)})),r&&d.each(r,(t=>{n.states.create(t.key,t.settings)})),{isValue:!0,value:n}}parseValue(t,e,i){return e instanceof n.JH?{isValue:!0,value:e}:u.isArray(e)?{isValue:!0,value:this.parseArray(t,e,i)}:f(e)?_(e)?{isValue:!0,value:e}:"Color"===e.type?{isValue:!0,value:a.Il.fromAny(e.value)}:"Percent"===e.type?{isValue:!0,value:new h.gG(e.value)}:"Template"===e.type?this.parseTemplate(t,e,i):!0===e.__parse?{isValue:!0,value:this.parseObject(t,e,i)}:!1===e.__parse?{isValue:!0,value:e}:this.parseEntity(t,e,i):u.isString(e)?y(e,i):{isValue:!0,value:e}}parse(t,e,i){const s=this.parseValue(t,e,i);return s.isValue?s.value:b(t,s)}}class D{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t}static new(t){return new this(t,!0)}parse(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){const i=new x;yield i.parseAsync(t);const s=i.parse(this._root,t,[]);if(e.parent){if(!(s instanceof r.j))throw new Error("When using the parent setting, the entity must be a Sprite");e.parent.children.push(s)}else s instanceof n.JH&&s._applyThemes(!0);return i.afterParse(),s}))}parseString(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.parse(JSON.parse(t),e)}))}}function k(t,e){g[t]||(g[t]=()=>new Promise((t=>{t(e)})))}},6890:function(t,e,i){"use strict";i.d(e,{e:function(){return p}});var s=i(6331),n=i(9361),r=i(1112),o=i(1437),a=i(6245),h=i(5769),l=i(9582),c=i(5040),u=i(5071),d=i(256);class p extends s.JH{constructor(){super(...arguments),this._refs={}}serialize(t,e=0,i=!1,p=!1){if(e>this.get("maxDepth",2))return;if(!1===t||!0===t)return t;if(c.isArray(t)){const s=[];return u.each(t,(t=>{s.push(this.serialize(t,e,i,p))})),s}if(t instanceof l.k){const s=[];return u.each(t.values,(t=>{s.push(this.serialize(t,e,i,p))})),s}const g={},f=t instanceof s.JH||t instanceof h.YS||t instanceof r.Il||t instanceof a.gG,_=this.get("fullSettings",[]);if(t instanceof s.JH){g.type=t.className;let s=this._filterSettings(d.keys(t._settings));s=s.filter((e=>t.isUserSetting(e))),s.length&&(g.settings={},u.each(s,(s=>{const n=t.get(s);void 0!==n&&(g.settings[s]=this.serialize(n,e+1,i||-1!==_.indexOf(s)),t instanceof o.p&&"stops"===s&&(g.settings[s]=this.serialize(n,0,!0)))}))),this._processAdapters(t,g),this._processStates(t,g)}else if(t instanceof h.YS){g.type="Template";let i=this._filterSettings(d.keys(t._settings));return i.length&&(g.settings={},u.each(i,(i=>{void 0!==t._settings[i]&&(g.settings[i]=this.serialize(t.get(i),e+1,-1!==_.indexOf(i)))}))),this._processAdapters(t,g),this._processStates(t,g),g}if(t instanceof n.w&&t.data.length&&-1===(this.get("excludeProperties")||[]).indexOf("data")&&(g.properties={data:this.serialize(t.data.values,e,!0)}),t instanceof r.Il)return{type:"Color",value:t.toCSSHex()};if(t instanceof a.gG)return{type:"Percent",value:t.percent};if(c.isString(t))return this._escapeRefs(t);if(c.isNumber(t))return t;if(c.isObject(t))if(i&&!f){const s=this.get("excludeProperties",[]);d.each(t,((t,n)=>{-1===s.indexOf(t)&&void 0!==n&&(g[t]=this.serialize(n,e+1,i,p))})),p&&d.each(g,((t,e)=>{c.isObject(e)&&(g.__parse=!0)}))}else if(f){const s=this.get("includeProperties",[]);u.each(s,(s=>{const n=t[s];void 0!==n&&(void 0===g.properties&&(g.properties={}),g.properties[s]=this.serialize(n,e+1,i,p))}))}return 0==e&&d.keys(this._refs).length&&(g.refs=this._refs),g}_processAdapters(t,e){if(this.get("includeAdapters",!1)){const i="string"==this.get("functionsAs","string"),s=t.adapters._callbacks;Object.keys(s).length>0&&(e.adapters=[],d.each(s,((t,s)=>{s.forEach((s=>{e.adapters.push({key:t,callback:i?s.toString():s})}))})))}}_processStates(t,e){if(this.get("includeStates",!1)){const i=t.states._states;Object.keys(i).length>0&&(e.states=[],d.each(i,((t,i)=>{Object.keys(i._settings).length>0&&e.states.push({key:t,settings:this.serialize(i._settings,0,!0)})})))}}_filterSettings(t){const e=this.get("includeSettings",[]),i=this.get("excludeSettings",[]);return e.length?t=e:i.length&&(t=t.filter((t=>-1===i.indexOf(t)))),t}_escapeRefs(t){return t.replace(/^#/,"##").replace(/^@/,"@@")}}p.className="Serializer",p.classNames=s.JH.classNames.concat([p.className])},3783:function(t,e,i){"use strict";i.d(e,{X:function(){return c},v:function(){return l}});var s=i(3409),n=i(6245),r=i(1112),o=i(6881),a=i(962),h=i(9395);function l(t,e,i,s){t.set(e,i.get(s)),i.on(s,(i=>{t.set(e,i)}))}class c extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.language,e=this._root.interfaceColors,i=this._root.horizontalLayout,s=this._root.verticalLayout,c=this.rule.bind(this);c("InterfaceColors").setAll({stroke:r.Il.fromHex(15066597),fill:r.Il.fromHex(15987699),primaryButton:r.Il.fromHex(6788316),primaryButtonHover:r.Il.fromHex(6779356),primaryButtonDown:r.Il.fromHex(6872182),primaryButtonActive:r.Il.fromHex(6872182),primaryButtonDisabled:r.Il.fromHex(14342874),primaryButtonTextDisabled:r.Il.fromHex(16777215),primaryButtonText:r.Il.fromHex(16777215),primaryButtonStroke:r.Il.fromHex(16777215),secondaryButton:r.Il.fromHex(14277081),secondaryButtonHover:r.Il.fromHex(10724259),secondaryButtonDown:r.Il.fromHex(9276813),secondaryButtonActive:r.Il.fromHex(15132390),secondaryButtonText:r.Il.fromHex(0),secondaryButtonStroke:r.Il.fromHex(16777215),grid:r.Il.fromHex(0),background:r.Il.fromHex(16777215),alternativeBackground:r.Il.fromHex(0),text:r.Il.fromHex(0),alternativeText:r.Il.fromHex(16777215),disabled:r.Il.fromHex(11382189),positive:r.Il.fromHex(5288704),negative:r.Il.fromHex(11730944)});{const t=c("ColorSet");t.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[r.Il.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),t.setPrivate("currentStep",0),t.setPrivate("currentPass",0)}c("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:h.out(h.cubic)}),c("Component").setAll({interpolationDuration:0,interpolationEasing:h.out(h.cubic)}),c("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:n.CI,tooltipY:n.CI,tooltipPosition:"fixed",isMeasured:!0}),c("Sprite").states.create("default",{visible:!0,opacity:1}),c("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),c("Graphics").setAll({strokeWidth:1}),c("Chart").setAll({width:n.AQ,height:n.AQ,interactiveChildren:!1}),c("ZoomableContainer").setAll({width:n.AQ,height:n.AQ,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:h.out(h.cubic),animationDuration:600,maxPanOut:.4}),c("Sprite",["horizontal","center"]).setAll({centerX:n.CI,x:n.CI}),c("Sprite",["vertical","center"]).setAll({centerY:n.CI,y:n.CI}),c("Container",["horizontal","layout"]).setAll({layout:i}),c("Container",["vertical","layout"]).setAll({layout:s}),c("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),c("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),c("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),c("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),c("GrainPattern").setAll({width:200,height:200,colors:[r.Il.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const t=c("PatternSet");t.setAll({step:1}),l(t,"color",e,"stroke")}c("LinearGradient").setAll({rotation:90}),c("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:o.M.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),c("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:t.translate("Press ENTER to toggle"),role:"checkbox"});{const t=c("Rectangle",["legend","item","background"]);t.setAll({fillOpacity:0}),l(t,"fill",e,"background")}c("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:n.CI,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),c("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:n.AQ,height:n.AQ,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const t=c("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});l(t,"fill",e,"disabled"),l(t,"stroke",e,"disabled")}c("Label",["legend","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0}),l(c("Label",["legend","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("Label",["legend","value","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:n.AQ,populateText:!0}),l(c("Label",["legend","value","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("HeatLegend").setAll({stepCount:1}),c("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),c("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:n.AQ,width:15}),c("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:n.AQ,height:15}),c("HeatLegend",["vertical"]).setAll({height:n.AQ}),c("HeatLegend",["horizontal"]).setAll({width:n.AQ}),c("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),c("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const t=c("Label");t.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),l(t,"fill",e,"text")}c("RadialLabel").setAll({textType:"regular",centerY:n.CI,centerX:n.CI,inside:!1,radius:0,baseRadius:n.AQ,orientation:"auto",textAlign:"center"}),c("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),c("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:r.Il.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:r.Il.fromHex(0)}),c("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),c("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),c("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),c("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const t=c("Tick");t.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),l(t,"stroke",e,"grid")}c("Bullet").setAll({locationX:.5,locationY:.5}),c("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:n.CI,centerY:n.CI,animationEasing:h.out(h.cubic),exportable:!1}),c("Tooltip",["system"]).setAll({pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});{const t=c("PointedRectangle",["tooltip","system","background"]);t.setAll({strokeOpacity:.3}),l(t,"fill",e,"background"),l(t,"stroke",e,"grid")}c("Label",["tooltip","system"]).setAll({fontSize:12,fill:e.get("background")}),c("Polygon").setAll({animationEasing:h.out(h.cubic)}),c("Link").setAll({cornerRadius:8,setStateOnChildren:!0});{const t=c("OrthogonalLine",["link","line"]);t.setAll({isMeasured:!1,crisp:!0}),l(t.states.create("active",{strokeWidth:2}),"stroke",e,"negative")}c("OrthogonalLine",["link","hit"]).setAll({strokeWidth:10,opacity:0,strokeOpacity:0});{const t=c("OrthogonalLine");t.setAll({strokeWidth:1,strokeOpacity:1,cornerRadius:10}),l(t,"stroke",e,"grid")}{const t=c("Triangle",["link"]);t.setAll({width:14,height:10,centerY:0}),l(t,"fill",e,"grid"),l(t,"stroke",e,"grid"),t.states.create("default",{stateAnimationDuration:0});const i=t.states.create("active",{stateAnimationDuration:0,stroke:(0,r.$_)(16777215),strokeWidth:2});i.set("draw",(t=>{t.arc(0,0,11,0,2*Math.PI),t.moveTo(-4,-4),t.lineTo(4,4),t.moveTo(4,-4),t.lineTo(-4,4)})),l(i,"fill",e,"negative")}c("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:r.Il.fromHex(16777215)});{const t=c("Label",["tooltip"]);t.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),l(t,"fill",e,"alternativeText")}c("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),c("Button").states.create("hover",{}),c("Button").states.create("down",{stateAnimationDuration:0}),c("Button").states.create("active",{}),c("Button").states.create("disabled",{forceInactive:!0});{const t=c("RoundedRectangle",["button","background"]);l(t,"fill",e,"primaryButton"),l(t,"stroke",e,"primaryButtonStroke")}l(c("RoundedRectangle",["button","background"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown"),l(c("RoundedRectangle",["button","background"]).states.create("active",{}),"fill",e,"primaryButtonActive"),l(c("RoundedRectangle",["button","background"]).states.create("disabled",{}),"fill",e,"primaryButtonDisabled"),l(c("Graphics",["button","icon"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled"),l(c("Label",["button"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled");{const t=c("Graphics",["button","icon"]);t.setAll({forceInactive:!0}),l(t,"stroke",e,"primaryButtonText")}l(c("Label",["button"]),"fill",e,"primaryButtonText"),c("ConfirmButton").setAll({toggleKey:"active",setStateOnChildren:!0,label:a._.new(this._root,{text:t.translate("Confirm"),forceHidden:!0})}),l(c("RoundedRectangle",["button","background","confirm"]).states.create("active",{}),"fill",e,"negative"),c("Label",["button","confirm"]).setAll({paddingTop:0,paddingBottom:0,paddingRight:3,paddingLeft:5}),c("Label",["button","confirm"]).states.create("default",{stateAnimationDuration:0}),c("Label",["button","confirm"]).states.create("active",{forceHidden:!1,stateAnimationDuration:0});{const t=c("Graphics",["icon","confirm","button"]);t.setAll({stateAnimationDuration:0}),t.states.create("default",{stateAnimationDuration:0}),l(t,"stroke",e,"primaryButtonText")}l(c("Graphics",["icon","confirm","button"]).states.create("active",{svgPath:"M -5 1 L 0 6 L 8 -5",strokeWidth:2}),"stroke",e,"primaryButtonText"),l(c("Graphics",["icon","confirm","button","secondary"]).states.create("active",{}),"stroke",e,"primaryButtonText"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1}),"fill",e,"negative"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1}),"fill",e,"negative"),c("Button",["button","confirm"]).states.create("hoverActive",{}),c("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:n.AQ,role:"button",ariaLabel:t.translate("Zoom Out"),layer:30});{const t=c("RoundedRectangle",["background","button","zoom"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"primaryButton")}l(c("RoundedRectangle",["background","button","zoom"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown");{const t=c("Graphics",["icon","button","zoom"]);t.setAll({crisp:!0,strokeOpacity:.7,draw:t=>{t.moveTo(0,0),t.lineTo(12,0)}}),l(t,"stroke",e,"primaryButtonText")}c("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:n.CI,centerY:n.CI,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:t.translate("Use up and down arrows to move selection")});{const t=c("RoundedRectangle",["background","resize","button"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"secondaryButton"),l(t,"stroke",e,"secondaryButtonStroke")}l(c("RoundedRectangle",["background","resize","button"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown");{const t=c("Graphics",["resize","button","icon"]);t.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),l(t,"stroke",e,"secondaryButtonText")}c("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),c("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),c("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:t.translate("Play"),toggleKey:"active"});{const t=c("RoundedRectangle",["play","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Graphics",["play","icon"]);t.setAll({stateAnimationDuration:0,dx:1,draw:t=>{t.moveTo(0,-5),t.lineTo(8,0),t.lineTo(0,5),t.lineTo(0,-5)}}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),c("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:t=>{t.moveTo(-4,-5),t.lineTo(-1,-5),t.lineTo(-1,5),t.lineTo(-4,5),t.lineTo(-4,-5),t.moveTo(4,-5),t.lineTo(1,-5),t.lineTo(1,5),t.lineTo(4,5),t.lineTo(4,-5)}}),c("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:t.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const t=c("RoundedRectangle",["switch","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["switch","icon"]);t.setAll({radius:8,centerY:0,centerX:0,dx:0}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["switch","icon"]).states.create("active",{dx:16}),c("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:h.out(h.cubic)}),c("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:n.AQ}),c("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:n.AQ}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const t=c("RoundedRectangle",["scrollbar","main","background"]);t.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),l(t,"fill",e,"fill")}{const t=c("RoundedRectangle",["scrollbar","thumb"]);t.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),l(t,"fill",e,"secondaryButton")}l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown"),c("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:n.CI,width:n.AQ,centerX:n.CI,ariaLabel:t.translate("Use up and down arrows to move selection")}),c("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:n.CI,centerY:n.CI,height:n.AQ,ariaLabel:t.translate("Use left and right arrows to move selection")});{const t=c("PointedRectangle",["axis","tooltip","background"]);t.setAll({cornerRadius:0}),l(t,"fill",e,"alternativeBackground")}c("Label",["axis","tooltip"]).setAll({role:void 0}),c("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),c("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),c("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),c("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),c("Star").setAll({spikes:5,innerRadius:5,radius:10}),c("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),c("Tooltip",["indicator"]).setAll({forceHidden:!0}),c("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),c("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),c("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),c("Container",["resizer","grip"]).states.create("hover",{});{const t=c("RoundedRectangle",["resizer","grip"]);t.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),l(t,"fill",e,"background"),l(t,"stroke",e,"alternativeBackground")}{const t=c("RoundedRectangle",["resizer","grip","outline"]);t.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),t.states.create("hover",{fillOpacity:.3}),l(t,"fill",e,"alternativeBackground")}c("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),c("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const t=c("Rectangle",["resizer","rectangle"]);t.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),l(t,"stroke",e,"alternativeBackground")}c("Graphics",["button","plus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0),t.moveTo(0,-4),t.lineTo(0,4)}}),c("Graphics",["button","minus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0)}}),c("Graphics",["button","home","icon"]).setAll({x:n.CI,y:n.CI,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),c("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),c("ZoomTools").setAll({x:n.AQ,centerX:n.AQ,y:n.AQ,centerY:n.AQ,paddingRight:10,paddingBottom:10}),c("ProgressPie").setAll({radius:n.AQ,width:50,height:50,centerX:(0,n.aQ)(-50),centerY:(0,n.aQ)(-50),innerRadius:(0,n.aQ)(85),numberFormat:"#."});{const t=c("Label",["progresspie"]);t.setAll({centerX:n.CI,centerY:n.CI,fontSize:"0.75em"}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["progresspie"]);t.setAll({fillOpacity:.5}),l(t,"fill",e,"background")}{const t=c("Slice",["progresspie"]);t.setAll({startAngle:-90}),l(t,"fill",e,"primaryButton")}{const t=c("Slice",["progresspie","background"]);t.setAll({fillOpacity:.2,arc:360}),l(t,"fill",e,"primaryButton")}c("EditableLabel",["numericstepper"]).setAll({y:n.CI,centerY:n.CI,multiLine:!1,marginRight:2});{const t=c("Container",["numericstepper","buttons"]);t.setAll({layout:this._root.verticalLayout,centerY:n.CI,y:n.CI,marginRight:10,opacity:0}),t.states.create("active",{opacity:1}),t.states.create("default",{opacity:0})}{const t=c("Triangle",["numericstepper"]);t.setAll({width:17,height:11,marginTop:3,marginBottom:3,strokeWidth:5,strokeOpacity:0,cursorOverStyle:"pointer"}),l(t,"fill",e,"secondaryButton")}c("Triangle",["downbutton"]).setAll({rotation:180})}}},5322:function(t,e,i){"use strict";i.r(e),i.d(e,{ArrayDisposer:function(){return c.rk},BlendMode:function(){return ot.b},Bullet:function(){return u.g},Button:function(){return d.z},CSVParser:function(){return bt},CanvasLayer:function(){return Pt.mM},CanvasRenderer:function(){return Pt.uK},Chart:function(){return q.k},Circle:function(){return g.C},CirclePattern:function(){return ut},Color:function(){return O.Il},ColorSet:function(){return mt.U},Component:function(){return v.w},ConfirmButton:function(){return p.p},Container:function(){return w.W},CounterDisposer:function(){return c.DM},DataItem:function(){return v.z},DataProcessor:function(){return xt},DateFormatter:function(){return Dt.C},Disposer:function(){return c.ku},DurationFormatter:function(){return kt.$},EditableLabel:function(){return A.Y},Ellipse:function(){return _.P},Entity:function(){return l.JH},Gradient:function(){return at.p},GrainPattern:function(){return rt},Graphics:function(){return m.T},GridLayout:function(){return x.M},HeatLegend:function(){return C},HorizontalLayout:function(){return L.G},InterfaceColors:function(){return Tt.v},JSONParser:function(){return wt},JsonData:function(){return yt.Q},Label:function(){return D._},Layout:function(){return R.A},Legend:function(){return U.D},Line:function(){return B.x},LinePattern:function(){return dt.y},LinearGradient:function(){return S.o},Link:function(){return F.r},ListData:function(){return yt.k},ListTemplate:function(){return E.o},Modal:function(){return h.u},MultiDisposer:function(){return c.FV},MutableValueDisposer:function(){return c.cx},NumberFormatter:function(){return Mt.e},NumericStepper:function(){return St.l},OrthogonalLine:function(){return I.P},PathPattern:function(){return ft},Pattern:function(){return nt.c},PatternSet:function(){return _t},Percent:function(){return k.gG},Picture:function(){return H.t},PicturePattern:function(){return pt.v},PointedRectangle:function(){return z.i},Polygon:function(){return f.m},ProgressPie:function(){return Nt.w},RadialGradient:function(){return lt},RadialLabel:function(){return G.x},RadialText:function(){return V.f},Rectangle:function(){return W.A},RectanglePattern:function(){return gt},Root:function(){return n.f},RoundedRectangle:function(){return T.c},Scrollbar:function(){return j.L},SerialChart:function(){return Q.j},Series:function(){return K.F},Slice:function(){return $.p},Slider:function(){return X.i},Sprite:function(){return Z.j},SpriteResizer:function(){return Ot.b},Star:function(){return y},Template:function(){return M.YS},Text:function(){return J.x},TextFormatter:function(){return Et.V},Theme:function(){return r.Q},Tick:function(){return tt.d},Timezone:function(){return it.r},Tooltip:function(){return P.u},Triangle:function(){return Y.C},VerticalLayout:function(){return et.Z},ZoomTools:function(){return st.H},ZoomableContainer:function(){return b.Y},addLicense:function(){return o.cP},array:function(){return ht},color:function(){return O.$_},disposeAllRootElements:function(){return o.UZ},ease:function(){return Ct},getRootById:function(){return o.f_},math:function(){return ct},net:function(){return s},object:function(){return vt},p0:function(){return k.p0},p100:function(){return k.AQ},p50:function(){return k.CI},percent:function(){return k.aQ},ready:function(){return a.ready},registry:function(){return o.i_},time:function(){return Rt},type:function(){return N},utils:function(){return a}});var s={};i.r(s),i.d(s,{load:function(){return Lt},readBlob:function(){return At}});var n=i(2855),r=i(3409),o=i(3145),a=i(7652),h=i(8219),l=i(6331),c=i(7449),u=i(5108),d=i(8054),p=i(2936),g=i(8035),f=i(7770),_=i(2433),m=i(1479);class y extends m.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("spikes"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const t=this._display,e=this.get("radius",0),i=a.relativeToValue(this.get("innerRadius",0),e),s=this.get("spikes",0),n=Math.PI/s;let r=Math.PI/2*3;t.moveTo(0,-e);for(let o=0;oT.c._new(this._root,{themeTags:a.mergeTags(this.markers.template.get("themeTags",[]),[this.get("orientation"),"heatlegend","marker"])},[this.markers.template]))))}_afterNew(){this._settings.themeTags=a.mergeTags(this._settings.themeTags,["heatlegend",this._settings.orientation]),super._afterNew(),this.set("tooltip",P.u.new(this._root,{themeTags:["heatlegend"]}))}makeMarker(){const t=this.markers.make();return t.states.create("disabled",{}),t}showValue(t,e,i){const s=this.getTooltip();if(s&&N.isNumber(t)){const n=this.get("startValue",0);let r=(t-n)/(this.get("endValue",1)-n);(r==1/0||r==-1/0||isNaN(r))&&(r=.5);const o=this.get("startColor"),a=this.get("endColor");let h;e||(e=this.getNumberFormatter().format(t)),i||(i=O.Il.interpolate(r,o,a)),s.label.set("text",e),h="vertical"==this.get("orientation")?this.markerContainer.toGlobal({x:0,y:this.innerHeight()*(1-r)}):this.markerContainer.toGlobal({x:this.innerWidth()*r,y:0});let l=s.get("background");l&&l.set("fill",i),s.set("pointTo",h),s.show()}}_prepareChildren(){super._prepareChildren();const t=this.labelContainer,e=this.get("orientation"),i=this.startLabel,s=this.endLabel,n=this.getTooltip();if(this.isDirty("orientation")&&("vertical"==e?(this.markerContainer.setAll({layout:this._root.verticalLayout,height:k.AQ}),this.set("layout",this._root.horizontalLayout),i.setAll({y:k.AQ,x:void 0,centerY:k.AQ,centerX:k.AQ}),s.setAll({y:0,x:void 0,centerY:0,centerX:k.AQ}),t.setAll({height:k.AQ,width:void 0}),n&&n.set("pointerOrientation","horizontal")):(this.markerContainer.setAll({layout:this._root.horizontalLayout,width:k.AQ}),this.set("layout",this._root.verticalLayout),i.setAll({x:0,y:void 0,centerX:0,centerY:0}),s.setAll({x:k.AQ,y:void 0,centerX:k.AQ,centerY:0}),t.setAll({width:k.AQ,height:void 0}),n&&n.set("pointerOrientation","vertical"))),this.isDirty("stepCount")){const t=this.get("stepCount",1),i=this.get("startColor"),s=this.get("endColor"),n=this.get("startOpacity",1),r=this.get("endOpacity",1);if(this.markerContainer.children.clear(),t>1)for(let o=0;o0&&e/u!=Math.round(e/u)))for(let h=0;h0&&h/c!=Math.round(h/c)||d{let i=e.offset;N.isNumber(i)||(i=t/(g.length-1));let s=e.opacity;N.isNumber(s)||(s=1);let n=e.color;if(n){const t=e.lighten;t&&(n=O.Il.lighten(n,t));const r=e.brighten;r&&(n=O.Il.brighten(n,r)),p.addColorStop(i,"rgba("+n.r+","+n.g+","+n.b+","+s+")")}t++}))}return p}}lt.className="RadialGradient",lt.classNames=at.p.classNames.concat([lt.className]);var ct=i(751);class ut extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("radius",3),a=2*o+i,h=2*o+i,l=Math.round(n/a),c=Math.round(r/h);a=n/l,h=r/c,0!=s&&(this._display.x=a*ct.cos(s),this._display.y=h*ct.sin(s));const u=this.get("color"),d=this.get("colorOpacity");(u||d)&&this._display.beginFill(u,d);for(let n=0==s?0:2*-c;n<2*c;n++)for(let r=0==s?0:2*-l;r<2*l;r++)if(!t||1!=(1&n)&&1!=(1&r)||1==(1&n)&&1==(1&r)){let t=r*a,s=n*h;e&&(t+=a+i/2,s+=h+i/2),this._display.drawCircle(t-o,s-o,o)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i),(u||d)&&this._display.endFill()}}ut.className="CirclePattern",ut.classNames=nt.c.classNames.concat([ut.className]);var dt=i(3035),pt=i(4429);class gt extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("maxWidth",5),a=this.get("maxHeight",5);const h=this._display;let l=o+i,c=a+i,u=Math.round(n/l),d=Math.round(r/c);l=n/u,c=r/d,0!=s&&(h.x=l/2*ct.cos(s),h.y=-c/2*ct.sin(s));for(let i=0==s?0:2*-d;i<2*d;i++)for(let n=0==s?0:2*-u;n<2*u;n++)if(!t||1!=(1&i)&&1!=(1&n)||1==(1&i)&&1==(1&n)){let t=n*l,s=i*c;e&&(t+=(l-o)/2,s+=(c-a)/2),h.drawRect(t,s,o,a)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i);const p=this.get("color"),g=this.get("colorOpacity");(p||g)&&(h.beginFill(p,g),h.endFill())}}gt.className="RectanglePattern",gt.classNames=nt.c.classNames.concat([gt.className]);class ft extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("svgPath")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("svgPath");null!=t&&this._display.svgPath(t);const e=this.get("color"),i=this.get("colorOpacity");(e||i)&&(this._display.beginFill(e,i),this._display.endFill())}}ft.className="PathPattern",ft.classNames=nt.c.classNames.concat([ft.className]);class _t extends l.JH{_afterNew(){if(super._afterNewApplyThemes(),0===this.get("patterns",[]).length){const t=this.get("color",this.root.interfaceColors.get("stroke"));this.set("patterns",[this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:1,color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,maxWidth:4,maxHeight:4,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:1,gap:6,color:t}),this.getCirclePattern({width:11,height:11,radius:2,color:t}),this.getLinePattern({width:6,height:6,rotation:90,strokeWidth:1,color:t}),this.getRectanglePattern({width:14,height:14,rotation:45,gap:4,maxWidth:6,maxHeight:6,checkered:!0,color:t}),this.getLinePattern({width:6,height:6,rotation:0,strokeWidth:1,color:t}),this.getRectanglePattern({width:15,height:15,rotation:0,gap:5,maxWidth:5,maxHeight:5,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getCirclePattern({width:20,height:20,radius:3,gap:4,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,gap:1,maxWidth:9,maxHeight:9,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:0,strokeWidth:3,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:90,strokeWidth:3,gap:1,color:t})])}this._dirty.patterns=!1}_beforeChanged(){this.isDirty("patterns")&&this.reset()}getIndex(t){const e=this.get("patterns",[]);return te.length-1?e[t-Math.floor(t*(t/e.length))]:e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0))}getLinePattern(t){return dt.y.new(this.root,t)}getRectanglePattern(t){return gt.new(this.root,t)}getCirclePattern(t){return ut.new(this.root,t)}}_t.className="PatternSet",_t.classNames=l.JH.classNames.concat([_t.className]);var mt=i(2754),yt=i(9582),vt=i(256);class wt{static parse(t,e){e=this._applyDefaults(e);try{if(N.isString(t)){let i=JSON.parse(t);return e.reverse&&N.isArray(i)&&i.reverse(),i}if(N.isArray(t)||N.isObject(t))return t;throw"Unable to parse JSON data"}catch(t){return}}static _applyDefaults(t){const e={};return t||(t={}),vt.each({reverse:!1},((i,s)=>{e[i]=t[i]||s})),e}}class bt{static parse(t,e){e=this._applyDefaults(e);let i,s,n,r=this.CSVToArray(t,e.delimiter),o=[],a=[];for(s=0;s{e[i]=t[i]||s})),e}}class xt extends l.JH{constructor(){super(...arguments),this._checkDates=!1,this._checkNumbers=!1,this._checkColors=!1,this._checkEmpty=!1,this._checkDeep=!1}_afterNew(){super._afterNew(),this._checkFeatures(),this.on("dateFields",(()=>this._checkFeatures())),this.on("dateFormat",(()=>this._checkFeatures())),this.on("numericFields",(()=>this._checkFeatures())),this.on("colorFields",(()=>this._checkFeatures())),this.on("emptyAs",(()=>this._checkFeatures()))}_checkFeatures(){(this.isDirty("dateFields")||this.isDirty("dateFormat"))&&(this._checkDates=this.get("dateFields")&&this.get("dateFields").length>0),this.isDirty("numericFields")&&(this._checkNumbers=this.get("numericFields")&&this.get("numericFields").length>0),this.isDirty("colorFields")&&(this._checkColors=this.get("colorFields")&&this.get("colorFields").length>0),this.isDirty("emptyAs")&&(this._checkEmpty=null!=this.get("emptyAs")),this._checkDeepFeatures()}_checkDeepFeatures(){const t=[];ht.each(["dateFields","numericFields","colorFields"],(e=>{ht.each(this.get(e,[]),(e=>{const i=e.split(".");for(i.pop();i.length>0;)t.push(i.join(".")),i.pop()}))})),this._checkDeep=t.length>0,this.setPrivate("deepFields",t)}processMany(t){N.isArray(t)&&(this._checkDates||this._checkNumbers||this._checkColors||this._checkEmpty)&&ht.each(t,(t=>{this.processRow(t)}))}processRow(t,e=""){vt.each(t,((i,s)=>{const n=e+i;this._checkEmpty&&(t[i]=this._maybeToEmpty(t[i])),this._checkNumbers&&(t[i]=this._maybeToNumber(n,t[i])),this._checkDates&&(t[i]=this._maybeToDate(n,t[i])),this._checkColors&&(t[i]=this._maybeToColor(n,t[i])),this._checkDeep&&-1!==this.getPrivate("deepFields",[]).indexOf(n)&&N.isObject(t[i])&&this.processRow(t[i],n+".")}))}_maybeToNumber(t,e){return-1!==this.get("numericFields").indexOf(t)?N.toNumber(e):e}_maybeToDate(t,e){return-1!==this.get("dateFields").indexOf(t)?this._root.dateFormatter.parse(e,this.get("dateFormat","")).getTime():e}_maybeToEmpty(t){return null!=t&&""!=t||null==this.get("emptyAs")?t:this.get("emptyAs")}_maybeToColor(t,e){return-1!==this.get("colorFields").indexOf(t)?O.Il.fromAny(e):e}}var Dt=i(6460),kt=i(798),Tt=i(9821),Mt=i(780),Et=i(7255),Ot=i(1195),Pt=i(4102),St=i(7049),Nt=i(6312),Ct=i(9395);function Lt(t,e,i){return new Promise(((s,n)=>{let r=null!=i&&"blob"==i.responseType,o=new XMLHttpRequest;if(o.onload=()=>{if(200===o.status){let t,i;if(r)return i=o.response,void At(i).then((t=>{let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}));t=o.responseText||o.response;let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}else n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.onerror=()=>{n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.open("GET",t,!0),i&&i.withCredentials&&(o.withCredentials=!0),null!=i){if(null!=i.requestHeaders)for(let t=0;t{const s=new FileReader;s.onload=t=>{e(s.result)},s.onerror=t=>{i(t)},s.readAsText(t)}))}var Rt=i(1926)},3100:function(t,e){"use strict";e.Z={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(t){let e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""}},9629:function(t){var e=function(t){"use strict";var e,i=Object.prototype,s=i.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",h=r.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,s){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new S(s||[]);return n(o,"_invoke",{value:M(t,i,a)}),o}function u(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",g="executing",f="completed",_={};function m(){}function y(){}function v(){}var w={};l(w,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==i&&s.call(x,o)&&(w=x);var D=v.prototype=m.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function i(n,r,o,a){var h=u(t[n],t,r);if("throw"!==h.type){var l=h.arg,c=l.value;return c&&"object"==typeof c&&s.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,o,a)}),(function(t){i("throw",t,o,a)})):e.resolve(c).then((function(t){l.value=t,o(l)}),(function(t){return i("throw",t,o,a)}))}a(h.arg)}var r;n(this,"_invoke",{value:function(t,s){function n(){return new e((function(e,n){i(t,s,e,n)}))}return r=r?r.then(n,n):n()}})}function M(t,e,i){var s=d;return function(n,r){if(s===g)throw new Error("Generator is already running");if(s===f){if("throw"===n)throw r;return C()}for(i.method=n,i.arg=r;;){var o=i.delegate;if(o){var a=E(o,i);if(a){if(a===_)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===d)throw s=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=g;var h=u(t,e,i);if("normal"===h.type){if(s=i.done?f:p,h.arg===_)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(s=f,i.method="throw",i.arg=h.arg)}}}function E(t,i){var s=i.method,n=t.iterator[s];if(n===e)return i.delegate=null,"throw"===s&&t.iterator.return&&(i.method="return",i.arg=e,E(t,i),"throw"===i.method)||"return"!==s&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),_;var r=u(n,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,_;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,_):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,_)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var h=s.call(o,"catchLoc"),l=s.call(o,"finallyLoc");if(h&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var s=i.completion;if("throw"===s.type){var n=s.arg;P(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,s){return this.delegate={iterator:N(t),resultName:i,nextLoc:s},"next"===this.method&&(this.arg=e),_}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},8494:function(t,e,i){"use strict";i.r(e),i.d(e,{am5:function(){return f}});const s=window.Promise,n=s&&s.prototype.then,r=s&&s.prototype.catch,o=s&&s.prototype.finally,a=s&&s.reject,h=s&&s.resolve,l=s&&s.allSettled,c=s&&s.all,u=s&&s.race,d=window.fetch,p=String.prototype.startsWith,g=String.prototype.endsWith;i(9629);const f=i(5322);var _;i.p=(_=function(){if(document.currentScript)return document.currentScript;var t=document.getElementsByTagName("script");return t[t.length-1]}().src,((/(.*\/)[^\/]*$/.exec(_)||[])[1]||"./")),s&&(window.Promise=s,n&&(s.prototype.then=n),r&&(s.prototype.catch=r),o&&(s.prototype.finally=o),a&&(s.reject=a),h&&(s.resolve=h),l&&(s.allSettled=l),c&&(s.all=c),u&&(s.race=u)),d&&(window.fetch=d),p&&(String.prototype.startsWith=p),g&&(String.prototype.endsWith=g)},4138:function(t,e){"use strict";var i={value:()=>{}};function s(){for(var t,e=0,i=arguments.length,s={};e=0&&(e=t.slice(i+1),t=t.slice(0,i)),t&&!s.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),h=-1,l=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++h0)for(var i,s,n=new Array(i),r=0;r0&&i*i>s*s+n*n}function u(t,e){for(var i=0;i1e-6?(E+Math.sqrt(E*E-4*M*O))/(2*M):O/E);return{x:s+x+D*P,y:n+k+T*P,r:P}}function f(t,e,i){var s,n,r,o,a=t.x-e.x,h=t.y-e.y,l=a*a+h*h;l?(n=e.r+i.r,n*=n,o=t.r+i.r,n>(o*=o)?(s=(l+o-n)/(2*l),r=Math.sqrt(Math.max(0,o/l-s*s)),i.x=t.x-s*a-r*h,i.y=t.y-s*h+r*a):(s=(l+n-o)/(2*l),r=Math.sqrt(Math.max(0,n/l-s*s)),i.x=e.x+s*a-r*h,i.y=e.y+s*h+r*a)):(i.x=e.x+i.r,i.y=e.y)}function _(t,e){var i=t.r+e.r-1e-6,s=e.x-t.x,n=e.y-t.y;return i>0&&i*i>s*s+n*n}function m(t){var e=t._,i=t.next._,s=e.r+i.r,n=(e.x*i.r+i.x*e.r)/s,r=(e.y*i.r+i.y*e.r)/s;return n*n+r*r}function y(t){this._=t,this.next=null,this.previous=null}function v(t,e){if(!(o=(i=t,t="object"==typeof i&&"length"in i?i:Array.from(i)).length))return 0;var i,s,n,r,o,a,l,u,p,g,v,w;if((s=t[0]).x=0,s.y=0,!(o>1))return s.r;if(n=t[1],s.x=-n.r,n.x=s.r,n.y=0,!(o>2))return s.r+n.r;f(n,s,r=t[2]),s=new y(s),n=new y(n),r=new y(r),s.next=r.previous=n,n.next=s.previous=r,r.next=n.previous=s;t:for(u=3;u(t=(r*t+o)%a)/a}();return s.x=e/2,s.y=i/2,t?s.eachBefore(x(t)).eachAfter(D(h,.5,l)).eachBefore(k(1)):s.eachBefore(x(w)).eachAfter(D(n.G,1,l)).eachAfter(D(h,s.r/Math.min(e,i),l)).eachBefore(k(Math.min(e,i)/(2*s.r))),s}return l.radius=function(e){return arguments.length?(t=(0,s.j)(e),l):t},l.size=function(t){return arguments.length?(e=+t[0],i=+t[1],l):[e,i]},l.padding=function(t){return arguments.length?(h="function"==typeof t?t:(0,n.Z)(+t),l):h},l}function x(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function D(t,e,i){return function(s){if(n=s.children){var n,r,o,a=n.length,h=t(s)*e||0;if(h)for(r=0;r=0))throw new Error(`invalid digits: ${t}`);if(e>15)return a;const i=10**e;return function(t){this._+=t[0];for(let e=1,s=t.length;er)if(Math.abs(d*l-c*u)>r&&o){let g=i-a,f=n-h,_=l*l+c*c,m=g*g+f*f,y=Math.sqrt(_),v=Math.sqrt(p),w=o*Math.tan((s-Math.acos((_+p-m)/(2*y*v)))/2),b=w/v,x=w/y;Math.abs(b-1)>r&&this._append`L${t+b*u},${e+b*d}`,this._append`A${o},${o},0,0,${+(d*g>u*f)},${this._x1=t+x*l},${this._y1=e+x*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,i,a,h,l){if(t=+t,e=+e,l=!!l,(i=+i)<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(a),u=i*Math.sin(a),d=t+c,p=e+u,g=1^l,f=l?a-h:h-a;null===this._x1?this._append`M${d},${p}`:(Math.abs(this._x1-d)>r||Math.abs(this._y1-p)>r)&&this._append`L${d},${p}`,i&&(f<0&&(f=f%n+n),f>o?this._append`A${i},${i},0,1,${g},${t-c},${e-u}A${i},${i},0,1,${g},${this._x1=d},${this._y1=p}`:f>r&&this._append`A${i},${i},0,${+(f>=s)},${g},${this._x1=t+i*Math.cos(h)},${this._y1=e+i*Math.sin(h)}`)}rect(t,e,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function l(){return new h}l.prototype=h.prototype},832:function(t,e,i){"use strict";i.d(e,{Z:function(){return D}});var s=i(3141);const n=Math.abs,r=Math.atan2,o=Math.cos,a=Math.max,h=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,d=Math.PI,p=d/2,g=2*d;function f(t){return t>=1?p:t<=-1?-p:Math.asin(t)}var _=i(5987);function m(t){return t.innerRadius}function y(t){return t.outerRadius}function v(t){return t.startAngle}function w(t){return t.endAngle}function b(t){return t&&t.padAngle}function x(t,e,i,s,n,r,o){var h=t-i,l=e-s,u=(o?r:-r)/c(h*h+l*l),d=u*l,p=-u*h,g=t+d,f=e+p,_=i+d,m=s+p,y=(g+_)/2,v=(f+m)/2,w=_-g,b=m-f,x=w*w+b*b,D=n-r,k=g*m-_*f,T=(b<0?-1:1)*c(a(0,D*D*x-k*k)),M=(k*b-w*T)/x,E=(-k*w-b*T)/x,O=(k*b+w*T)/x,P=(-k*w+b*T)/x,S=M-y,N=E-v,C=O-y,L=P-v;return S*S+N*N>C*C+L*L&&(M=O,E=P),{cx:M,cy:E,x01:-d,y01:-p,x11:M*(n/D-1),y11:E*(n/D-1)}}function D(){var t=m,e=y,i=(0,s.Z)(0),a=null,D=v,k=w,T=b,M=null,E=(0,_.d)(O);function O(){var s,_,m,y=+t.apply(this,arguments),v=+e.apply(this,arguments),w=D.apply(this,arguments)-p,b=k.apply(this,arguments)-p,O=n(b-w),P=b>w;if(M||(M=s=E()),vu)if(O>g-u)M.moveTo(v*o(w),v*l(w)),M.arc(0,0,v,w,b,!P),y>u&&(M.moveTo(y*o(b),y*l(b)),M.arc(0,0,y,b,w,P));else{var S,N,C=w,L=b,A=w,R=b,U=O,B=O,F=T.apply(this,arguments)/2,I=F>u&&(a?+a.apply(this,arguments):c(y*y+v*v)),H=h(n(v-y)/2,+i.apply(this,arguments)),z=H,G=H;if(I>u){var V=f(I/y*l(F)),W=f(I/v*l(F));(U-=2*V)>u?(A+=V*=P?1:-1,R-=V):(U=0,A=R=(w+b)/2),(B-=2*W)>u?(C+=W*=P?1:-1,L-=W):(B=0,C=L=(w+b)/2)}var Y=v*o(C),j=v*l(C),X=y*o(R),$=y*l(R);if(H>u){var Z,K=v*o(L),q=v*l(L),Q=y*o(A),J=y*l(A);if(O1?0:m<-1?d:Math.acos(m))/2),rt=c(Z[0]*Z[0]+Z[1]*Z[1]);z=h(H,(y-rt)/(nt-1)),G=h(H,(v-rt)/(nt+1))}else z=G=0}B>u?G>u?(S=x(Q,J,Y,j,v,G,P),N=x(K,q,X,$,v,G,P),M.moveTo(S.cx+S.x01,S.cy+S.y01),Gu&&U>u?z>u?(S=x(X,$,K,q,y,-z,P),N=x(Y,j,Q,J,y,-z,P),M.lineTo(S.cx+S.x01,S.cy+S.y01),z=o;--a)p.point(y[a],v[a]);p.lineEnd(),p.areaEnd()}m&&(y[r]=+t(h,r,n),v[r]=+e(h,r,n),p.point(l?+l(h,r,n):y[r],i?+i(h,r,n):v[r]))}if(f)return p=null,f+""||null}function _(){return(0,o.Z)().defined(c).curve(d).context(u)}return t="function"==typeof t?t:void 0===t?h.x:(0,n.Z)(+t),e="function"==typeof e?e:void 0===e?(0,n.Z)(0):(0,n.Z)(+e),i="function"==typeof i?i:void 0===i?h.y:(0,n.Z)(+i),f.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),l=null,f):t},f.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),f):t},f.x1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):l},f.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),i=null,f):e},f.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),f):e},f.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):i},f.lineX0=f.lineY0=function(){return _().x(t).y(e)},f.lineY1=function(){return _().x(t).y(i)},f.lineX1=function(){return _().x(l).y(e)},f.defined=function(t){return arguments.length?(c="function"==typeof t?t:(0,n.Z)(!!t),f):c},f.curve=function(t){return arguments.length?(d=t,null!=u&&(p=d(u)),f):d},f.context=function(t){return arguments.length?(null==t?u=p=null:p=d(u=t),f):u},f}},8457:function(t,e,i){"use strict";function s(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}i.d(e,{Z:function(){return s}}),Array.prototype.slice},3141:function(t,e,i){"use strict";function s(t){return function(){return t}}i.d(e,{Z:function(){return s}})},964:function(t,e,i){"use strict";function s(t){this._context=t}function n(t){return new s(t)}i.d(e,{Z:function(){return n}}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},774:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var s=i(8457),n=i(3141),r=i(964),o=i(5987),a=i(6758);function h(t,e){var i=(0,n.Z)(!0),h=null,l=r.Z,c=null,u=(0,o.d)(d);function d(n){var r,o,a,d=(n=(0,s.Z)(n)).length,p=!1;for(null==h&&(c=l(a=u())),r=0;r<=d;++r)!(r=0))throw new RangeError(`invalid digits: ${i}`);e=t}return t},()=>new s.y$(e)}},6758:function(t,e,i){"use strict";function s(t){return t[0]}function n(t){return t[1]}i.d(e,{x:function(){return s},y:function(){return n}})},7738:function(t,e,i){"use strict";i.d(e,{B7:function(){return _},HT:function(){return m},zO:function(){return g}});var s,n,r=0,o=0,a=0,h=1e3,l=0,c=0,u=0,d="object"==typeof performance&&performance.now?performance:Date,p="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return c||(p(f),c=d.now()+u)}function f(){c=0}function _(){this._call=this._time=this._next=null}function m(t,e,i){var s=new _;return s.restart(t,e,i),s}function y(){c=(l=d.now())+u,r=o=0;try{!function(){g(),++r;for(var t,e=s;e;)(t=c-e._time)>=0&&e._call.call(void 0,t),e=e._next;--r}()}finally{r=0,function(){for(var t,e,i=s,r=1/0;i;)i._call?(r>i._time&&(r=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:s=e);n=t,w(r)}(),c=0}}function v(){var t=d.now(),e=t-l;e>h&&(u-=e,l=t)}function w(t){r||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(y,t-d.now()-u)),a&&(a=clearInterval(a))):(a||(l=d.now(),a=setInterval(v,h)),r=1,p(y)))}_.prototype=m.prototype={constructor:_,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?g():+i)+(null==e?0:+e),this._next||n===this||(n?n._next=this:s=this,n=this),this._call=t,this._time=i,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},7896:function(t,e,i){"use strict";function s(){}function n(t){return null==t?s:function(){return this.querySelector(t)}}function r(){return[]}function o(t){return null==t?r:function(){return this.querySelectorAll(t)}}function a(t){return function(){return this.matches(t)}}function h(t){return function(e){return e.matches(t)}}var l=Array.prototype.find;function c(){return this.firstElementChild}var u=Array.prototype.filter;function d(){return Array.from(this.children)}function p(t){return new Array(t.length)}function g(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function f(t,e,i,s,n,r){for(var o,a=0,h=e.length,l=r.length;ae?1:t>=e?0:NaN}g.prototype={constructor:g,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var w="http://www.w3.org/1999/xhtml",b={svg:"http://www.w3.org/2000/svg",xhtml:w,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function x(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),b.hasOwnProperty(e)?{space:b[e],local:t}:t}function D(t){return function(){this.removeAttribute(t)}}function k(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T(t,e){return function(){this.setAttribute(t,e)}}function M(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function O(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function P(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function S(t){return function(){this.style.removeProperty(t)}}function N(t,e,i){return function(){this.style.setProperty(t,e,i)}}function C(t,e,i){return function(){var s=e.apply(this,arguments);null==s?this.style.removeProperty(t):this.style.setProperty(t,s,i)}}function L(t,e){return t.style.getPropertyValue(e)||P(t).getComputedStyle(t,null).getPropertyValue(e)}function A(t){return function(){delete this[t]}}function R(t,e){return function(){this[t]=e}}function U(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function B(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new I(t)}function I(t){this._node=t,this._names=B(t.getAttribute("class")||"")}function H(t,e){for(var i=F(t),s=-1,n=e.length;++s=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ut=[null];function dt(t,e){this._groups=t,this._parents=e}function pt(){return new dt([[document.documentElement]],ut)}dt.prototype=pt.prototype={constructor:dt,select:function(t){"function"!=typeof t&&(t=n(t));for(var e=this._groups,i=e.length,s=new Array(i),r=0;r=T&&(T=k+1);!(D=b[T])&&++T=0;)(s=n[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=v);for(var i=this._groups,s=i.length,n=new Array(s),r=0;r1?this.each((null==e?S:"function"==typeof e?C:N)(t,e,null==i?"":i)):L(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?A:"function"==typeof e?U:R)(t,e)):this.node()[t]},classed:function(t,e){var i=B(t+"");if(arguments.length<2){for(var s=F(this.node()),n=-1,r=i.length;++n=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}))}(t+""),o=r.length;if(!(arguments.length<2)){for(a=e?at:ot,s=0;s{s.stop(),t(i+e)}),e,i),s}var yt=(0,ft.Z)("start","end","cancel","interrupt"),vt=[],wt=0,bt=3;function xt(t,e,i,s,n,r){var o=t.__transition;if(o){if(i in o)return}else t.__transition={};!function(t,e,i){var s,n=t.__transition;function r(h){var l,c,u,d;if(1!==i.state)return a();for(l in n)if((d=n[l]).name===i.name){if(d.state===bt)return mt(r);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[l]):+lwt)throw new Error("too late; already scheduled");return i}function kt(t,e){var i=Tt(t,e);if(i.state>bt)throw new Error("too late; already running");return i}function Tt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Mt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Et,Ot=180/Math.PI,Pt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function St(t,e,i,s,n,r){var o,a,h;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(h=t*i+e*s)&&(i-=t*h,s-=e*h),(a=Math.sqrt(i*i+s*s))&&(i/=a,s/=a,h/=a),t*s180?e+=360:e-t>180&&(t+=360),r.push({i:i.push(n(i)+"rotate(",null,s)-2,x:Mt(t,e)})):e&&i.push(n(i)+"rotate("+e+s)}(r.rotate,o.rotate,a,h),function(t,e,i,r){t!==e?r.push({i:i.push(n(i)+"skewX(",null,s)-2,x:Mt(t,e)}):e&&i.push(n(i)+"skewX("+e+s)}(r.skewX,o.skewX,a,h),function(t,e,i,s,r,o){if(t!==i||e!==s){var a=r.push(n(r)+"scale(",null,",",null,")");o.push({i:a-4,x:Mt(t,i)},{i:a-2,x:Mt(e,s)})}else 1===i&&1===s||r.push(n(r)+"scale("+i+","+s+")")}(r.scaleX,r.scaleY,o.scaleX,o.scaleY,a,h),r=o=null,function(t){for(var e,i=-1,s=h.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?se(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?se(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jt.exec(t))?new re(e[1],e[2],e[3],1):(e=Xt.exec(t))?new re(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$t.exec(t))?se(e[1],e[2],e[3],e[4]):(e=Zt.exec(t))?se(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Kt.exec(t))?ue(e[1],e[2]/100,e[3]/100,1):(e=qt.exec(t))?ue(e[1],e[2]/100,e[3]/100,e[4]):Qt.hasOwnProperty(t)?ie(Qt[t]):"transparent"===t?new re(NaN,NaN,NaN,0):null}function ie(t){return new re(t>>16&255,t>>8&255,255&t,1)}function se(t,e,i,s){return s<=0&&(t=e=i=NaN),new re(t,e,i,s)}function ne(t,e,i,s){return 1===arguments.length?((n=t)instanceof It||(n=ee(n)),n?new re((n=n.rgb()).r,n.g,n.b,n.opacity):new re):new re(t,e,i,null==s?1:s);var n}function re(t,e,i,s){this.r=+t,this.g=+e,this.b=+i,this.opacity=+s}function oe(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}`}function ae(){const t=he(this.opacity);return`${1===t?"rgb(":"rgba("}${le(this.r)}, ${le(this.g)}, ${le(this.b)}${1===t?")":`, ${t})`}`}function he(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function le(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ce(t){return((t=le(t))<16?"0":"")+t.toString(16)}function ue(t,e,i,s){return s<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new pe(t,e,i,s)}function de(t){if(t instanceof pe)return new pe(t.h,t.s,t.l,t.opacity);if(t instanceof It||(t=ee(t)),!t)return new pe;if(t instanceof pe)return t;var e=(t=t.rgb()).r/255,i=t.g/255,s=t.b/255,n=Math.min(e,i,s),r=Math.max(e,i,s),o=NaN,a=r-n,h=(r+n)/2;return a?(o=e===r?(i-s)/a+6*(i0&&h<1?0:o,new pe(o,a,h,t.opacity)}function pe(t,e,i,s){this.h=+t,this.s=+e,this.l=+i,this.opacity=+s}function ge(t){return(t=(t||0)%360)<0?t+360:t}function fe(t){return Math.max(0,Math.min(1,t||0))}function _e(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function me(t,e,i,s,n){var r=t*t,o=r*t;return((1-3*t+3*r-o)*e+(4-6*r+3*o)*i+(1+3*t+3*r-3*o)*s+o*n)/6}Bt(It,ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return de(this).formatHsl()},formatRgb:te,toString:te}),Bt(re,ne,Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new re(le(this.r),le(this.g),le(this.b),he(this.opacity))},displayable(){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:oe,formatHex:oe,formatHex8:function(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}${ce(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ae,toString:ae})),Bt(pe,(function(t,e,i,s){return 1===arguments.length?de(t):new pe(t,e,i,null==s?1:s)}),Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new pe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new pe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*e,n=2*i-s;return new re(_e(t>=240?t-240:t+120,n,s),_e(t,n,s),_e(t<120?t+240:t-120,n,s),this.opacity)},clamp(){return new pe(ge(this.h),fe(this.s),fe(this.l),he(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=he(this.opacity);return`${1===t?"hsl(":"hsla("}${ge(this.h)}, ${100*fe(this.s)}%, ${100*fe(this.l)}%${1===t?")":`, ${t})`}`}}));var ye=t=>()=>t;function ve(t,e){var i=e-t;return i?function(t,e){return function(i){return t+i*e}}(t,i):ye(isNaN(t)?e:t)}var we=function t(e){var i=function(t){return 1==(t=+t)?ve:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(s){return Math.pow(t+s*e,i)}}(e,i,t):ye(isNaN(e)?i:e)}}(e);function s(t,e){var s=i((t=ne(t)).r,(e=ne(e)).r),n=i(t.g,e.g),r=i(t.b,e.b),o=ve(t.opacity,e.opacity);return function(e){return t.r=s(e),t.g=n(e),t.b=r(e),t.opacity=o(e),t+""}}return s.gamma=t,s}(1);function be(t){return function(e){var i,s,n=e.length,r=new Array(n),o=new Array(n),a=new Array(n);for(i=0;i=1?(i=1,e-1):Math.floor(i*e),n=t[s],r=t[s+1],o=s>0?t[s-1]:2*n-r,a=sr&&(n=e.slice(r,n),a[o]?a[o]+=n:a[++o]=n),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,h.push({i:o,x:Mt(i,s)})),r=De.lastIndex;return r=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Dt:kt;return function(){var o=r(this,t),a=o.on;a!==s&&(n=(s=a).copy()).on(e,i),o.on=n}}(i,t,e))},attr:function(t,e){var i=x(t),s="transform"===i?Lt:Te;return this.attrTween(t,"function"==typeof e?(i.local?Ne:Se)(i,s,Ut(this,"attr."+t,e)):null==e?(i.local?Ee:Me)(i):(i.local?Pe:Oe)(i,s,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;var s=x(t);return this.tween(i,(s.local?Ce:Le)(s,e))},style:function(t,e,i){var s="transform"==(t+="")?Ct:Te;return null==e?this.styleTween(t,function(t,e){var i,s,n;return function(){var r=L(this,t),o=(this.style.removeProperty(t),L(this,t));return r===o?null:r===i&&o===s?n:n=e(i=r,s=o)}}(t,s)).on("end.style."+t,Ie(t)):"function"==typeof e?this.styleTween(t,function(t,e,i){var s,n,r;return function(){var o=L(this,t),a=i(this),h=a+"";return null==a&&(this.style.removeProperty(t),h=a=L(this,t)),o===h?null:o===s&&h===n?r:(n=h,r=e(s=o,a))}}(t,s,Ut(this,"style."+t,e))).each(function(t,e){var i,s,n,r,o="style."+e,a="end."+o;return function(){var h=kt(this,t),l=h.on,c=null==h.value[o]?r||(r=Ie(e)):void 0;l===i&&n===c||(s=(i=l).copy()).on(a,n=c),h.on=s}}(this._id,t)):this.styleTween(t,function(t,e,i){var s,n,r=i+"";return function(){var o=L(this,t);return o===r?null:o===s?n:n=e(s=o,i)}}(t,s,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var s="style."+(t+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(null==e)return this.tween(s,null);if("function"!=typeof e)throw new Error;return this.tween(s,function(t,e,i){var s,n;function r(){var r=e.apply(this,arguments);return r!==n&&(s=(n=r)&&function(t,e,i){return function(s){this.style.setProperty(t,e.call(this,s),i)}}(t,r,i)),s}return r._value=e,r}(t,e,null==i?"":i))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ut(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,i;function s(){var s=t.apply(this,arguments);return s!==i&&(e=(i=s)&&function(t){return function(e){this.textContent=t.call(this,e)}}(s)),e}return s._value=t,s}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var s,n=Tt(this.node(),i).tween,r=0,o=n.length;r2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[n]):o=!1;o&&delete t.__transition}}(this,t)}))},gt.prototype.transition=function(t){var e,i;t instanceof ze?(e=t._id,t=t._name):(e=Ge(),(i=We).time=(0,_t.zO)(),t=null==t?null:t+"");for(var s=this._groups,n=s.length,r=0;r=n)&&Object.keys(a.O).every((function(t){return a.O[t](i[h])}))?i.splice(h--,1):(o=!1,n0&&t[c-1][2]>n;c--)t[c]=t[c-1];t[c]=[i,s,n]},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},i=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(t,s){if(1&s&&(t=this(t)),8&s)return t;if("object"==typeof t&&t){if(4&s&&t.__esModule)return t;if(16&s&&"function"==typeof t.then)return t}var n=Object.create(null);a.r(n);var r={};e=e||[null,i({}),i([]),i(i)];for(var o=2&s&&t;"object"==typeof o&&!~e.indexOf(o);o=i(o))Object.getOwnPropertyNames(o).forEach((function(e){r[e]=function(){return t[e]}}));return r.default=function(){return t},a.d(n,r),n},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,i){return a.f[i](t,e),e}),[]))},a.u=function(t){return"deps/"+{643:"pdfmake",4297:"xlsx",4384:"markerjs2"}[t]+".js"},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s={},n="@amcharts/amcharts5:",a.l=function(t,e,i,r){if(s[t])s[t].push(e);else{var o,h;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c{this.zoomOut()})),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",e);const a=this.plotContainer;a.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),a.children.push(this.topGridContainer),a.children.push(this.bulletsContainer),a.set("interactive",!0),a.set("interactiveChildren",!1),a.set("background",o.A.new(t,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(a.events.on("pointerdown",(t=>{this._handlePlotDown(t)}))),this._disposers.push(a.events.on("globalpointerup",(t=>{this._handlePlotUp(t)}))),this._disposers.push(a.events.on("globalpointermove",(t=>{this._handlePlotMove(t)}))),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(t){t._unstack(),t._posXDp&&t._posXDp.dispose(),t._posYDp&&t._posYDp.dispose(),t.set("baseAxis",void 0);const e=t.get("xAxis");e&&(g.remove(e.series,t),e.markDirtyExtremes());const i=t.get("yAxis");i&&(g.remove(i.series,t),i.markDirtyExtremes());const s=this.get("cursor");if(s){const e=s.get("snapToSeries");e&&g.remove(e,t)}super._removeSeries(t)}_applyThemes(t=!1){const e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}handleWheel(t){const e=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=t.originalEvent;let o=!1;if(!p.isLocalEvent(a,this))return;o=!0;const n=s.toLocal(t.point),r=this.get("wheelStep",.2),h=a.deltaY/100,l=a.deltaX/100,d=this.get("wheelZoomPositionX"),g=this.get("wheelZoomPositionY");"zoomX"!==e&&"zoomXY"!==e||0==l||this.xAxes.each((t=>{if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let h=t.get("maxDeviation",0),g=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let l=t.get("maxDeviation",0),g=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let h=t.get("maxDeviation",0),d=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let l=t.get("maxDeviation",0),d=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panX"!==i&&"panXY"!==i||0==h||this.xAxes.each((t=>{if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e+s,n=i+s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==e&&"panXY"!==e||0==l||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==i&&"panXY"!==i||0==h||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e-s,n=i-s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),o&&a.preventDefault()}_handleSetWheel(){const t=this.get("wheelX"),e=this.get("wheelY"),i=this.plotContainer;"none"!==t||"none"!==e?(this._wheelDp=i.events.on("wheel",(i=>{const s=i.originalEvent;("none"!==t&&0!=Math.abs(s.deltaX)||"none"!==e&&0!=Math.abs(s.deltaY))&&this.handleWheel(i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(t){let e=1;return t.get("renderer").get("inversed")&&(e=-1),e}_fixWheel(t,e){const i=e-t;return t<0&&(e=(t=0)+i),e>1&&(t=(e=1)-i),[t,e]}_handlePlotDown(t){const e=t.originalEvent;if(2==e.button)return;const i=this.plotContainer;let s=i.toLocal(t.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&e.pointerId&&m.keys(i._downPoints).length>0){const t=this.xAxes.getIndex(0),e=this.yAxes.getIndex(0);t&&(this._downStartX=t.get("start",0),this._downEndX=t.get("end",1)),e&&(this._downStartY=e.get("start",0),this._downEndY=e.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:e.clientX,y:e.clientY};const i=this.get("panX"),s=this.get("panY");i&&this.xAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")})),s&&this.yAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")}));const a="panstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:t.originalEvent})}}_handleWheelAnimation(t){t?t.events.on("stopped",(()=>{this._dispatchWheelAnimation()})):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const t="wheelended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}_handlePlotUp(t){const e=this._downPoint;if(e&&(this.get("panX")||this.get("panY"))){if(t.originalEvent.clientX==e.x&&t.originalEvent.clientY==e.y){const e="pancancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:t.originalEvent})}this._downPoint=void 0,this.xAxes.each((t=>{t._isPanning=!1})),this.yAxes.each((t=>{t._isPanning=!1}))}_handlePlotMove(t){const e=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const i=t.originalEvent.pointerId;if(i&&(this._movePoints[i]=t.point,m.keys(e._downPoints).length>1))return void this._handlePinch()}let i=this._downPoint;if(i){i=e.toLocal(this._root.documentPointToRoot(i));let s=e.toLocal(t.point);const a=this.get("panX"),o=this.get("panY");if(a){let t=this.get("scrollbarX");t&&t.events.disableType("rangechanged"),this.xAxes.each((t=>{if(t.get("panX")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.x-s.x)/e.width();t.get("renderer").get("inversed")&&(n*=-1);let r=a+n,h=o+n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}if(o){let t=this.get("scrollbarY");t&&t.events.disableType("rangechanged"),this.yAxes.each((t=>{if(t.get("panY")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.y-s.y)/e.height();t.get("renderer").get("inversed")&&(n*=-1);let r=a-n,h=o-n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}}}_handlePinch(){const t=this.plotContainer;let e=0,i=[],s=[];if(m.each(t._downPoints,((t,a)=>{i[e]=a;let o=this._movePoints[t];o&&(s[e]=o),e++})),i.length>1&&s.length>1){const e=t.width(),a=t.height();let o=i[0],n=i[1],r=s[0],h=s[1];if(o&&n&&r&&h){if(r=t.toLocal(r),h=t.toLocal(h),o=t.toLocal(o),n=t.toLocal(n),this.get("pinchZoomX")){const t=this._downStartX,i=this._downEndX;if(null!=t&&null!=i){o.x>n.x&&([o,n]=[n,o],[r,h]=[h,r]);let s=t+o.x/e*(i-t),a=t+n.x/e*(i-t),l=t+r.x/e*(i-t),d=t+h.x/e*(i-t),g=Math.max(.001,a-s)/Math.max(.001,d-l),c=t*g+s-l*g,u=i*g+a-d*g;this.xAxes.each((t=>{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}if(this.get("pinchZoomY")){const t=this._downStartY,e=this._downEndY;if(null!=t&&null!=e){o.y{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}}}}_handleCursorPosition(){const t=this.get("cursor");if(t){const e=t.getPrivate("point");let i=t.get("snapToSeries");if(t._downPoint&&(i=void 0),i&&e){const s=t.get("snapToSeriesBy"),a=[];g.each(i,(t=>{if(!t.isHidden()&&!t.isHiding())if("x!"!=s&&"y!"!=s){const e=t.startIndex(),i=t.endIndex();for(let s=e;s{const i=t.get("point");if(i){let a=0;a="x"==s||"x!"==s?Math.abs(e.x-i.x):"y"==s||"y!"==s?Math.abs(e.y-i.y):Math.hypot(e.x-i.x,e.y-i.y),a{const e=t.get("tooltip");e&&e._setDataItem(void 0)})),o){let e=o.component;e.showDataItemTooltip(o),e.setRaw("tooltipDataItem",o);const i=o.get("point");i&&t.handleMove(e.toGlobal({x:i.x-e.x(),y:i.y-e.y()}),!0)}}}}_updateCursor(){let t=this.get("cursor");t&&t.updateCursor()}_addCursor(t){this.plotContainer.children.push(t)}_prepareChildren(){if(super._prepareChildren(),this.series.each((t=>{this._colorize(t)})),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const t=this._prevSettings.cursor,e=this.get("cursor");e!==t&&(this._disposeProperty("cursor"),t&&t.dispose(),e&&(e._setChart(this),this._addCursor(e),this._pushPropertyDisposer("cursor",e.events.on("selectended",(()=>{this._handleCursorSelectEnd()})))),this._prevSettings.cursor=e)}if(this.isDirty("scrollbarX")){const t=this._prevSettings.scrollbarX,e=this.get("scrollbarX");e!==t&&(this._disposeProperty("scrollbarX"),t&&t.dispose(),e&&(e.parent||this.topAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarX",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.xAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarX",e.events.on("released",(()=>{this.xAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.xAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarX=e)}if(this.isDirty("scrollbarY")){const t=this._prevSettings.scrollbarY,e=this.get("scrollbarY");e!==t&&(this._disposeProperty("scrollbarY"),t&&t.dispose(),e&&(e.parent||this.rightAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarY",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.yAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarY",e.events.on("released",(()=>{this.yAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.yAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarY=e)}this._handleZoomOut()}_processSeries(t){super._processSeries(t);const e=t.get("xAxis"),i=t.get("yAxis");g.move(e.series,t),g.move(i.series,t),t._posXDp=t.addDisposer(e.events.on("positionchanged",(()=>{t._fixPosition()}))),t._posXDp=t.addDisposer(i.events.on("positionchanged",(()=>{t._fixPosition()}))),t.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?t.set("baseAxis",i):t.set("baseAxis",e)),t.get("stacked")&&(t._markDirtyKey("stacked"),g.each(t.dataItems,(t=>{t.set("stackToItemY",void 0),t.set("stackToItemX",void 0)}))),t._markDirtyAxes(),i.markDirtyExtremes(),e.markDirtyExtremes(),e._seriesAdded=!0,i._seriesAdded=!0,this._colorize(t)}_colorize(t){const e=this.get("colors");if(e&&null==t.get("fill")){const i=e.next();t._setSoft("stroke",i),t._setSoft("fill",i)}const i=this.get("patterns");if(i&&null==t.get("fillPattern")){const e=i.next();t._setSoft("fillPattern",e)}}_handleCursorSelectEnd(){const t=this.get("cursor"),e=t.get("behavior"),i=t.getPrivate("downPositionX",0),s=t.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,t.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,t.getPrivate("positionY",.5)));this.xAxes.each((t=>{if("zoomX"===e||"zoomXY"===e){let e=t.toAxisPosition(i),s=t.toAxisPosition(a);t.zoom(e,s)}t.setPrivate("updateScrollbar",!0)})),this.yAxes.each((t=>{if("zoomY"===e||"zoomXY"===e){let e=t.toAxisPosition(s),i=t.toAxisPosition(o);t.zoom(e,i)}t.setPrivate("updateScrollbar",!0)}))}_handleScrollbar(t,e,i,s){t.each((t=>{let a=t.fixPosition(e),o=t.fixPosition(i),n=t.zoom(a,o,void 0,s);const r="updateScrollbar";t.setPrivateRaw(r,!1),n?n.events.on("stopped",(()=>{t.setPrivateRaw(r,!0)})):t.setPrivateRaw(r,!0)}))}_processAxis(t,e){return t.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxis(t)}));else if("push"===t.type)e.children.push(t.newValue),t.newValue.processChart(this);else if("setIndex"===t.type)e.children.setIndex(t.index,t.newValue),t.newValue.processChart(this);else if("insertIndex"===t.type)e.children.insertIndex(t.index,t.newValue),t.newValue.processChart(this);else if("removeIndex"===t.type)this._removeAxis(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");e.children.moveValue(t.value,t.newIndex),t.value.processChart(this)}}))}_removeAxis(t){if(!t.isDisposed()){const e=t.parent;e&&e.children.removeValue(t);const i=t.gridContainer,s=i.parent;s&&s.children.removeValue(i);const a=t.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){const t=this.leftAxesContainer.width(),e=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",t),i.set("paddingRight",e);const s=this.topAxesContainer;s.set("paddingLeft",t),s.set("paddingRight",e)}processAxis(t){this.get("cursor")&&(this.addDisposer(t.on("start",(()=>{this._updateCursor()}))),this.addDisposer(t.on("end",(()=>{this._updateCursor()}))))}_handleAxisSelection(t,e){let i=t.fixPosition(t.get("start",0)),s=t.fixPosition(t.get("end",1));if(i>s&&([i,s]=[s,i]),-1!=this.xAxes.indexOf(t)){if(e||t.getPrivate("updateScrollbar")){let t=this.get("scrollbarX");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}}else if(-1!=this.yAxes.indexOf(t)&&(e||t.getPrivate("updateScrollbar"))){let t=this.get("scrollbarY");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let t=this.zoomOutButton;if(t&&t.parent){let e=!1;this.xAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),e?t.isHidden()&&t.show():t.hide()}}inPlot(t){const e=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=e.toGlobal(t);if(t.x>=-.5&&t.y>=-.5&&t.x<=e.width()+.5&&t.y<=e.height()+.5)return!0;if(i)for(let t=i.length-1;t>=0;t--){const e=i[t];if(e!=this){const t=e.plotContainer,i=this._root.rootPointToDocument(s),a=e._root.documentPointToRoot(i),o=t.toLocal(a);if(o.x>=-.1&&o.y>=-.1&&o.x<=t.width()+.1&&o.y<=t.height()+.1)return!0}}return!1}arrangeTooltips(){const t=this.plotContainer,e=t.width(),i=t.height();let s=this.height();const a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=t._display.toGlobal({x:0,y:0}),n=t._display.toGlobal({x:e,y:i});const r=[];let l,d,m=0,p=1/0,_=this._movePoint,x=this.get("maxTooltipDistance"),v=this.get("maxTooltipDistanceBy","xy");c.isNumber(x)&&this.series.each((t=>{if(!t.isHidden()){const e=t.get("tooltip");if(e){let i=e.get("pointTo");if(i){let e=Math.hypot(_.x-i.x,_.y-i.y);"x"==v?e=Math.abs(_.x-i.x):"y"==v&&(e=Math.abs(_.y-i.y)),e{const e=t.get("tooltip");if(e&&!e.get("forceHidden")){let i=!1,s=e.get("pointTo");if(s){if(x>=0){let s=e.get("pointTo");if(s&&d&&t!=l){let t=Math.hypot(d.x-s.x,d.y-s.y);"x"==v?t=Math.abs(d.x-s.x):"y"==v&&(t=Math.abs(d.y-s.y)),t>x&&(i=!0)}}else-1==x&&t!=l&&(i=!0);this.inPlot(this._tooltipToLocal(s))&&e.dataItem?i||(m+=s.y):i=!0,i||t.isHidden()||t.isHiding()?e.hide(0):(e.show(),r.push(e),y.push(t))}}})),this.setPrivate("tooltipSeries",y),this.get("arrangeTooltips")){let t=0,e=0;const a=this._root.tooltipContainer,l=r.length;if(m/l>i/2+o.y){r.sort(((t,e)=>u.HO(e.get("pointTo").y,t.get("pointTo").y)));let i=n.y;if(g.each(r,(s=>{let r=s.height();e++,t+=r;let l=s.get("centerY");l instanceof h.gG&&(r*=l.value),r+=s.get("marginBottom",0),s.set("bounds",{left:o.x,top:o.y,right:n.x,bottom:i}),s.setPrivate("customData",{left:o.x,top:o.y,right:n.x,bottom:i}),i=Math.min(i-r,s._fy-r),s.parent==a&&a.children.moveValue(s,0)})),i<0){r.reverse();let t=i;g.each(r,(s=>{e++;let a=s.get("bounds");if(a){let e=a.top-i,o=a.bottom-i;eu.HO(t.get("pointTo").y,e.get("pointTo").y)));let i=0;if(g.each(r,(r=>{e++;let l=r.height();t+=l;let d=r.get("centerY");d instanceof h.gG&&(l*=d.value),l+=r.get("marginBottom",0),r.set("bounds",{left:o.x,top:i,right:n.x,bottom:Math.max(o.y+s,i+l)}),r.parent==a&&a.children.moveValue(r,0),i=Math.max(i+l,r._fy+l)})),i>s){r.reverse();let t=s;g.each(r,(a=>{e++;let o=a.get("bounds");if(o){let e=o.top-(s-i),n=o.bottom-(s-i);n>t&&(n=t,e=n-a.height()),a.set("bounds",{left:o.left,top:e,right:o.right,bottom:n}),t=n-a.height()-a.get("marginBottom",0)}}))}}0==t&&e>0&&this._disposers.push(this.root.events.once("frameended",(()=>{this.arrangeTooltips()})))}}_tooltipToLocal(t){return this.plotContainer.toLocal(t)}zoomOut(){this.xAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))}))}_dispose(){super._dispose();const t=this.get("cursor");t&&t.dispose()}}x.className="XYChart",x.classNames=n.j.classNames.concat([x.className])},55:function(t,e,i){i.d(e,{l:function(){return u}});var s=i(3409),a=i(6245),o=i(1112),n=i(2754),r=i(3783),h=i(1926),l=i(5040),d=i(751),g=i(256),c=i(5071);class u extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.interfaceColors,e=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:n.U.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:o.Il.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:n.U.new(this._root,{saturation:0})});{const e=i("Graphics",["scrollbar","overlay"]);e.setAll({fillOpacity:.5}),(0,r.v)(e,"fill",t,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:a.AQ,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:a.AQ}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:a.AQ}),i("AxisLabel",["y"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const s=i("Grid",["cursor","x"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use left and right arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const s=i("Grid",["cursor","y"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use up and down arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const e=i("Graphics",["cursor","selection"]);e.setAll({fillOpacity:.15}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:a.CI,centerY:a.CI,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const e=i("AxisRenderer");e.setAll({crisp:!0,strokeOpacity:0}),(0,r.v)(e,"stroke",t,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:a.AQ}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:a.AQ});{const e=i("Rectangle",["axis","thumb","zoomgrip"]);e.setAll({fillOpacity:0}),(0,r.v)(e,"fill",t,"alternativeBackground"),e.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{const e=i("Grid");e.setAll({location:0,strokeOpacity:.15,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}{const e=i("Grid",["minor"]);e.setAll({location:0,strokeOpacity:.07,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{const e=i("Graphics",["axis","fill"]);e.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{const e=i("AxisTick");e.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),(0,r.v)(e,"stroke",t,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(t,e)=>{const i=t.get("axisFill");i&&(l.isNumber(e)&&e%2!=0?i.setPrivate("visible",!1):i.setPrivate("visible",!0))}});const s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],u={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_hour"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month"),year:e.translate("_date_year")},m={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_day"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month")+" "+e.translate("_date_year"),year:e.translate("_date_year")},p={millisecond:e.translate("_date_millisecond_full"),second:e.translate("_date_second_full"),minute:e.translate("_date_minute_full"),hour:e.translate("_date_hour_full"),day:e.translate("_date_day_full"),week:e.translate("_date_week_full"),month:e.translate("_date_month_full"),year:e.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m),tooltipDateFormats:p,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=t.get("endValue"),o=i.intervalDuration(),n=i.getPrivate("baseInterval"),r=i.getPrivate("gridInterval",n);let l=i.getPrivate("min",0);if(l=h.round(new Date(l),r.timeUnit,r.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),null!=s&&null!=a){const t=Math.round(Math.round((s-l)/o))/2;t==Math.round(t)?e.setPrivate("visible",!0):e.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.get("index");let s=!1;l.isNumber(i)&&i%2!=0||(s=!0),e.setPrivate("visible",s)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=i.getPrivate("step");l.isNumber(s)&&l.isNumber(a)&&(d.round(s/a/2,5)==Math.round(s/a/2)?e.setPrivate("visible",!1):e.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(70),height:(0,a.aQ)(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,e/2),t.lineTo(s,e/2)}}});{const e=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,e),t.lineTo(0,e),t.lineTo(0,0)}}});{const e=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(50),height:(0,a.aQ)(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:(0,a.aQ)(80),height:(0,a.aQ)(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const e=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const e=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const e=i("Graphics",["rangegrip","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(2,.5),t.lineTo(2,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),(0,r.v)(e,"stroke",t,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:a.CI}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:a.CI}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:a.AQ}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:a.AQ})}}},3355:function(t,e,i){i.d(e,{L:function(){return c}});var s=i(8777),a=i(6245),o=i(1479),n=i(8943),r=i(5040),h=i(7652),l=i(751),d=i(5071),g=i(256);class c extends s.W{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(n.r.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(n.r.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(o.T.new(this._root,{themeTags:["selection","cursor"],layer:30})),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:a.AQ,height:a.AQ,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout((()=>{this.setPrivate("visible",!0)}),500)),this._disposers.push(this.lineX.events.on("positionchanged",(()=>{this._handleXLine()}))),this._disposers.push(this.lineY.events.on("positionchanged",(()=>{this._handleYLine()}))),this._disposers.push(this.lineX.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineX.events.on("blur",(()=>this._handleLineBlur()))),this._disposers.push(this.lineY.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineY.events.on("blur",(()=>this._handleLineBlur()))),h.supports("keyboardevents")&&this._disposers.push(h.addEventListener(document,"keydown",(t=>{this._handleLineMove(h.getEventKey(t),t.ctrlKey)})))}_setUpTouch(){const t=this.chart;t&&(t.plotContainer._display.cancelTouch="none"!=this.get("behavior"))}_handleXLine(){let t=this.lineX.x(),e=!0;(t<0||t>this.width())&&(e=!1),this.lineX.setPrivate("visible",e)}_handleYLine(){let t=this.lineY.y(),e=!0;(t<0||t>this.height())&&(e=!1),this.lineY.setPrivate("visible",e)}_handleLineMove(t,e){let i="";const s=this.chart;let a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(e&&(o=5),a){let e,s=a.get("renderer").get("inversed",!1);"ArrowRight"==t||"ArrowDown"==t?e=1:"ArrowLeft"==t||"ArrowUp"==t?e=-1:"Tab"==t&&(e=0),null!=e&&(s&&(e*=-1),this.set(i,a.nextPosition(e*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const t=this.get("xAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipX=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateXLine(e)}))))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const t=this.get("yAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipY=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateYLine(e)}))))}}}_handleSyncWith(){const t=this.chart;if(t){const e=this.get("syncWith"),i=[];e&&d.each(e,(t=>{const e=t.chart;e&&i.push(e)})),t._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const t=this.get("positionX"),e=this.get("positionY");null==t&&null==e?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).x,3);this._toX!=e&&(this.lineX.animate({key:"x",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toX=e)}_updateYLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).y,3);this._toY!=e&&(this.lineY.animate({key:"y",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toY=e)}_drawLines(){this.lineX.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,this.height())})),this.lineY.set("draw",(t=>{t.moveTo(0,0),t.lineTo(this.width(),0)}))}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(t){this.chart=t,this._handleSyncWith();const e=t.plotContainer;this.events.on("boundschanged",(()=>{this._disposers.push(this.setTimeout((()=>{this.updateCursor()}),50))})),h.supports("touchevents")&&(this._disposers.push(e.events.on("click",(t=>{h.isTouchEvent(t.originalEvent)&&this._handleMove(t)}))),this._setUpTouch()),this._disposers.push(e.events.on("pointerdown",(t=>{this._handleCursorDown(t)}))),this._disposers.push(e.events.on("globalpointerup",(t=>{this._handleCursorUp(t),t.native||this.isHidden()||this._handleMove(t)}))),this._disposers.push(e.events.on("globalpointermove",(t=>{(this.get("syncWith")||0!=g.keys(e._downPoints).length||t.native||!this.isHidden())&&(this._handleMove(t),Math.hypot(this._lastPoint2.x-t.point.x,this._lastPoint2.y-t.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=t.point))})));const i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(t){const e=this.chart;return!!e&&e.inPlot(t)}_handleCursorDown(t){if(2==t.originalEvent.button)return;const e=t.point;let i=this._display.toLocal(e);const s=this.chart;if(this.selection.set("draw",(()=>{})),s&&this._inPlot(i)){if(this._downPoint=i,"none"!=this.get("behavior")){this.selection.show();const e="selectstarted";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}let e=this._getPosition(i).x,s=this._getPosition(i).y;this.setPrivate("downPositionX",e),this.setPrivate("downPositionY",s)}}_handleCursorUp(t){if(this._downPoint){const e=this.get("behavior","none");if("none"!=e){"z"===e.charAt(0)&&this.selection.hide();const i=t.point;let s=this._display.toLocal(i);const a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let i=!1;if("zoomX"!==e&&"zoomXY"!==e&&"selectX"!==e&&"selectXY"!==e||Math.abs(s.x-a.x)>o&&(i=!0),"zoomY"!==e&&"zoomXY"!==e&&"selectY"!==e&&"selectXY"!==e||Math.abs(s.y-a.y)>o&&(i=!0),i){const e="selectended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}else{const e="selectcancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}}}}this._downPoint=void 0}_handleMove(t){if(this.getPrivate("visible")){const e=this.chart;if(e&&g.keys(e.plotContainer._downPoints).length>1)return void this.set("forceHidden",!0);this.set("forceHidden",!1);const i=t.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,t.originalEvent)}}_getPosition(t){return{x:t.x/this.width(),y:t.y/this.height()}}handleMove(t,e,i){t||(t=this._movePoint);const s=this.get("alwaysShow");if(!t)return void this.hide(0);this._movePoint=t;let a=this._display.toLocal(t),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=t,this.isHidden()&&(this.show(),"z"==this.get("behavior","").charAt(0)&&this.selection.set("draw",(()=>{})));let n=a.x,h=a.y,l=this._getPosition(a);this.setPrivate("point",a);let d=this.get("snapToSeries");this._downPoint&&(d=void 0);let g=this.get("positionX"),c=l.x;r.isNumber(g)&&(c=g);let u=this.get("positionY"),m=l.y;r.isNumber(u)&&(m=u),this.setPrivate("positionX",c),this.setPrivate("positionY",m);const p=this._getPoint(c,m);if(n=p.x,h=p.y,o.xAxes.each((t=>{t._handleCursorPosition(c,d),s&&t.handleCursorShow()})),o.yAxes.each((t=>{t._handleCursorPosition(m,d),s&&t.handleCursorShow()})),!e){o._handleCursorPosition();const e="cursormoved";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,point:t,originalEvent:i})}this._updateLines(n,h),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);const t="cursorhidden";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this._downPoint&&"none"!=this.get("behavior")&&this._updateSelection(a)}_getPoint(t,e){return{x:this.width()*t,y:this.height()*e}}_updateLines(t,e){this._tooltipX||this.lineX.set("x",t),this._tooltipY||this.lineY.set("y",e),this._drawLines()}_updateSelection(t){const e=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();t.x<0&&(t.x=0),t.x>s&&(t.x=s),t.y<0&&(t.y=0),t.y>a&&(t.y=a),e.set("draw",(e=>{const o=this._downPoint;o&&("zoomXY"===i||"selectXY"===i?(e.moveTo(o.x,o.y),e.lineTo(o.x,t.y),e.lineTo(t.x,t.y),e.lineTo(t.x,o.y),e.lineTo(o.x,o.y)):"zoomX"===i||"selectX"===i?(e.moveTo(o.x,0),e.lineTo(o.x,a),e.lineTo(t.x,a),e.lineTo(t.x,0),e.lineTo(o.x,0)):"zoomY"!==i&&"selectY"!==i||(e.moveTo(0,o.y),e.lineTo(s,o.y),e.lineTo(s,t.y),e.lineTo(0,t.y),e.lineTo(0,o.y)))}))}_onHide(){if(this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorHide()})),t.yAxes.each((t=>{t.handleCursorHide()})),t.series.each((t=>{t.handleCursorHide()})))}super._onHide()}_onShow(){if(!this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorShow()})),t.yAxes.each((t=>{t.handleCursorShow()})))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}c.className="XYCursor",c.classNames=s.W.classNames.concat([c.className])},6515:function(t,e,i){i.d(e,{R:function(){return g}});var s=i(9361),a=i(8777),o=i(6245),n=i(7144),r=i(7142),h=i(5071),l=i(5040),d=i(7652);class g extends s.w{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(a.W.new(this._root,{})),this.gridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.topGridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.bulletsContainer=this.children.push(a.W.new(this._root,{isMeasured:!1,width:o.AQ,height:o.AQ,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new n.aV,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(a.W.new(this._root,{themeTags:["axis","header"],position:"absolute",background:r.A.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)h.each(t.oldValues,(t=>{t.dispose()}));else if("push"===t.type)this._processAxisRange(t.newValue,["range"]);else if("setIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("insertIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("removeIndex"===t.type)this.disposeDataItem(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value,["range"])}})));const t=this.get("renderer");t&&(t.axis=this,t.processAxis()),this.children.push(t),this._createGhostLabel()}_createGhostLabel(){const t=this.get("renderer").makeLabel(new s.z(this,void 0,{}),[]);t.adapters.disable("text"),t.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),t.events.disable(),this.ghostLabel=t}_updateFinals(t,e){}zoom(t,e,i,s){if(this.get("zoomable",!0))if(this._updateFinals(t,e),this.get("start")!==t||this.get("end")!=e){let a=this._sAnimation,o=this._eAnimation;t>e&&([t,e]=[e,t]);let n=this.get("maxDeviation",.5)*Math.min(1,e-t);t<-n&&(t=-n),e>1+n&&(e=1+n);let r=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),h=r;l.isNumber(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),1===e&&0!==t&&(s=tthis.get("end",1)?"end":"start");let d=this.get("minZoomCount",0);const g=this.dataItems;g&&g.lengthe&&([t,e]=[e,t]),"start"===s?(c>0&&1/(e-t)r&&(e=t+1/r),e>1&&e-t<1/r&&(t=e-1/r)):(c>0&&1/(e-t)r&&(t=e-1/r),t<0&&e-t<1/r&&(e=t+1/r)),1/(e-t)>r&&(e=t+1/r),1/(e-t)>r&&(t=e-1/r),null!=c&&null!=d&&t==this.get("start")&&e==this.get("end")){const t=this.chart;t&&t._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==t||this.get("start")==t)&&(o&&o.playing&&o.to==e||this.get("end")==e))return;if(i>0){let s,a,o=this.get("interpolationEasing");if(this.get("start")!=t&&(s=this.animate({key:"start",to:t,duration:i,easing:o})),this.get("end")!=e&&(a=this.animate({key:"end",to:e,duration:i,easing:o})),this._sAnimation=s,this._eAnimation=a,s)return s;if(a)return a}else this.set("start",t),this.set("end",e),this.root.events.once("frameended",(()=>{this.markDirtyKey("start")}))}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(t,e){t.setRaw("isRange",!0),this._createAssets(t,e),this._rangesDirty=!0,this._prepareDataItem(t);const i=t.get("above"),s=this.topGridContainer,a=t.get("grid");i&&a&&s.children.moveValue(a);const o=t.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(t,e){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each((t=>{this._prepareDataItem(t)})),h.each(this._seriesAxisRanges,(t=>{this._prepareDataItem(t)}))}_prepareChildren(){super._prepareChildren();const t=this.ghostLabel;if(t&&(this.get("fixAxisSize")?t.set("visible",!0):t.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){const t=this.chart;t&&t._updateCursor();let e=this.get("start",0),i=this.get("end",1),s=this.get("maxDeviation",.5)*Math.min(1,i-e);if(e<-s){let t=e+s;e=-s,this.setRaw("start",e),this.isDirty("end")&&this.setRaw("end",i-t)}if(i>1+s){let t=i-1-s;i=1+s,this.setRaw("end",i),this.isDirty("start")&&this.setRaw("start",e-t)}}const e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){const t=this.get("tooltip");if(t){const i=e.get("themeTags");t.addTag("axis"),t.addTag(this.className.toLowerCase()),t._applyThemes(),i&&(t.set("themeTags",d.mergeTags(t.get("themeTags"),i)),t.label._applyThemes())}}}_updateTooltipBounds(){const t=this.get("tooltip");t&&this.get("renderer").updateTooltipBounds(t)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(t){this.chart=t,this.get("renderer").chart=t,t.gridContainer.children.push(this.gridContainer),t.topGridContainer.children.push(this.topGridContainer),t.axisHeadersContainer.children.push(this.axisHeader),this.on("start",(()=>{t._handleAxisSelection(this)})),this.on("end",(()=>{t._handleAxisSelection(this)})),t.plotContainer.onPrivate("width",(()=>{this.markDirtySize()})),t.plotContainer.onPrivate("height",(()=>{this.markDirtySize()})),t.processAxis(this)}hideDataItem(t){return this._toggleFHDataItem(t,!0),super.hideDataItem(t)}showDataItem(t){return this._toggleFHDataItem(t,!1),super.showDataItem(t)}_toggleFHDataItem(t,e){const i="forceHidden",s=t.get("label");s&&s.set(i,e);const a=t.get("grid");a&&a.set(i,e);const o=t.get("tick");o&&o.set(i,e);const n=t.get("axisFill");n&&n.set(i,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.set(i,e)}}_toggleDataItem(t,e){const i=t.get("label"),s="visible";i&&i.setPrivate(s,e);const a=t.get("grid");a&&a.setPrivate(s,e);const o=t.get("tick");o&&o.setPrivate(s,e);const n=t.get("axisFill");n&&n.setPrivate(s,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.setPrivate(s,e)}}_createAssets(t,e,i){var s,a,o;const n=this.get("renderer");let r="minor";const h=t.get("label");if(h){let a=h.get("themeTags"),o=!1;i?-1==(null==a?void 0:a.indexOf(r))&&(o=!0):-1!=(null==a?void 0:a.indexOf(r))&&(o=!0),o&&(null===(s=h.parent)||void 0===s||s.children.removeValue(h),n.makeLabel(t,e),h.dispose(),n.labels.removeValue(h))}else n.makeLabel(t,e);const l=t.get("grid");if(l){let s=l.get("themeTags"),o=!1;i?-1==(null==s?void 0:s.indexOf(r))&&(o=!0):-1!=(null==s?void 0:s.indexOf(r))&&(o=!0),o&&(null===(a=l.parent)||void 0===a||a.children.removeValue(l),n.makeGrid(t,e),l.dispose(),n.grid.removeValue(l))}else n.makeGrid(t,e);const d=t.get("tick");if(d){let s=!1,a=d.get("themeTags");i?-1==(null==a?void 0:a.indexOf(r))&&(s=!0):-1!=(null==a?void 0:a.indexOf(r))&&(s=!0),s&&(null===(o=d.parent)||void 0===o||o.children.removeValue(d),n.makeTick(t,e),d.dispose(),n.ticks.removeValue(d))}else n.makeTick(t,e);i||t.get("axisFill")?i&&!t.get("axisFill")&&this.get("minorAxisFillsEnabled")&&n.makeAxisFill(t,e):n.makeAxisFill(t,e),this._processBullet(t)}_processBullet(t){let e=t.get("bullet"),i=this.get("bullet");if(e||!i||t.get("isRange")||(e=i(this._root,this,t)),e){e.axis=this;const i=e.get("sprite");i&&(i._setDataItem(t),t.setRaw("bullet",e),i.parent||this.bulletsContainer.children.push(i))}}_afterChanged(){super._afterChanged();const t=this.chart;t&&(t._updateChartLayout(),t.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(t){super.disposeDataItem(t);const e=this.get("renderer"),i=t.get("label");i&&(e.labels.removeValue(i),i.dispose());const s=t.get("tick");s&&(e.ticks.removeValue(s),s.dispose());const a=t.get("grid");a&&(e.grid.removeValue(a),a.dispose());const o=t.get("axisFill");o&&(e.axisFills.removeValue(o),o.dispose());const n=t.get("bullet");n&&n.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const t=this.ghostLabel;if(t){if(!t.isHidden()){const e=t.localBounds(),i=Math.ceil(e.right-e.left);let s=t.get("text");h.each(this.dataItems,(t=>{const e=t.get("label");if(e&&!e.isHidden()){const t=e.localBounds();Math.ceil(t.right-t.left)>i&&(s=e.text._getText())}})),t.set("text",s)}let e=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(t,e+.5*(i-e))}}_handleCursorPosition(t,e){t=this.get("renderer").toAxisPosition(t),this._cursorPosition=t,this._snapToSeries=e,this.updateTooltip()}updateTooltip(){const t=this._snapToSeries;let e=this._cursorPosition;const i=this.get("tooltip"),s=this.get("renderer");l.isNumber(e)&&(h.each(this.series,(i=>{if(i.get("baseAxis")===this){const s=this.getSeriesItem(i,e,this.get("tooltipLocation"));t&&-1!=t.indexOf(i)?(i.updateLegendMarker(s),i.updateLegendValue(s),i._settings.tooltipDataItem=s):(i.showDataItemTooltip(s),i.setRaw("tooltipDataItem",s))}})),this.get("snapTooltip")&&(e=this.roundAxisPosition(e,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",e),i&&(s.updateTooltipBounds(i),l.isNaN(e)?i.hide(0):(this._updateTooltipText(i,e),s.positionTooltip(i,e),ethis.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}roundAxisPosition(t,e){return t}_handleSeriesRemoved(){}handleCursorShow(){let t=this.get("tooltip");t&&t.show()}handleCursorHide(){let t=this.get("tooltip");t&&t.hide()}processSeriesDataItem(t,e){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(t){const e=this.get("renderer");return e.toAxisPosition(t/e.axisLength())}toAxisPosition(t){return this.get("renderer").toAxisPosition(t)}toGlobalPosition(t){return this.get("renderer").toGlobalPosition(t)}fixPosition(t){return this.get("renderer").fixPosition(t)}shouldGap(t,e,i,s){return!1}createAxisRange(t){return this.axisRanges.push(t)}_groupSeriesData(t){}getCellWidthPosition(){return.05}}g.className="Axis",g.classNames=s.w.classNames.concat([g.className])},2586:function(t,e,i){i.d(e,{_:function(){return o}});var s=i(6331),a=i(256);class o extends s.JH{_beforeChanged(){super._beforeChanged();const t=this.get("sprite");if(this.isDirty("sprite")&&t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t)),this.isDirty("location")){const e=t.dataItem;this.axis&&t&&e&&this.axis._prepareDataItem(e)}}_dispose(){const t=this.axis;t&&a.each(t._bullets,((e,i)=>{i.uid==this.uid&&delete t._bullets[e]})),super._dispose()}}o.className="AxisBullet",o.classNames=s.JH.classNames.concat([o.className])},6293:function(t,e,i){i.d(e,{k:function(){return a}});var s=i(962);class a extends s._{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabel",a.classNames=s._.classNames.concat([a.className])},9084:function(t,e,i){i.d(e,{p:function(){return a}});var s=i(815);class a extends s.x{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabelRadial",a.classNames=s.x.classNames.concat([a.className])},6275:function(t,e,i){i.d(e,{Y:function(){return d}});var s=i(1479),a=i(5769),o=i(7144),n=i(4714),r=i(8943),h=i(6293),l=i(7652);class d extends s.T{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new o.o(a.YS.new({}),(()=>n.T._new(this._root,{themeTags:l.mergeTags(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template])))),this.grid=this.addDisposer(new o.o(a.YS.new({}),(()=>r.r._new(this._root,{themeTags:l.mergeTags(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template])))),this.axisFills=this.addDisposer(new o.o(a.YS.new({}),(()=>s.T._new(this._root,{themeTags:l.mergeTags(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template])))),this.labels=this.addDisposer(new o.o(a.YS.new({}),(()=>h.k._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template]))))}makeTick(t,e){const i=this.ticks.make();return i._setDataItem(t),t.setRaw("tick",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(t,e){const i=this.grid.make();return i._setDataItem(t),t.setRaw("grid",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(t,e){const i=this.axisFills.make();return i._setDataItem(t),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),t.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(t,e){const i=this.labels.make();return i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),t.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(t),t.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const t=this.thumb;t&&(this._disposers.push(t.events.on("pointerdown",(t=>{this._handleThumbDown(t)}))),this._disposers.push(t.events.on("globalpointerup",(t=>{this._handleThumbUp(t)}))),this._disposers.push(t.events.on("globalpointermove",(t=>{this._handleThumbMove(t)}))))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",(()=>{this.axis.markDirtySize()}))}_changed(){if(super._changed(),this.isDirty("pan")){const t=this.thumb;if(t){const e=this.axis.labelsContainer,i=this.get("pan");"zoom"==i?e.children.push(t):"none"==i&&e.children.removeValue(t)}}}_handleThumbDown(t){this._thumbDownPoint=this.toLocal(t.point);const e=this.axis;this._downStart=e.get("start"),this._downEnd=e.get("end")}_handleThumbUp(t){this._thumbDownPoint=void 0}_handleThumbMove(t){const e=this._thumbDownPoint;if(e){const i=this.toLocal(t.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,e)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(t,e){return 0}positionToCoordinate(t){return this._inversed?(this._end-t)*this._axisLength:(t-this._start)*this._axisLength}updateTooltipBounds(t){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t*=i-e,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,t/(i-e)}fixPosition(t){return this.get("inversed")?1-t:t}_updateLC(){}toggleVisibility(t,e,i,s){let a=this.axis;const o=a.get("start",0),n=a.get("end",1);eo+(n-o)*(s+1e-4)?t.setPrivate("visible",!1):t.setPrivate("visible",!0)}_positionTooltip(t,e){const i=this.chart;i&&(t.set("pointTo",this._display.toGlobal(e)),i.inPlot(e)||t.hide())}processAxis(){}}d.className="AxisRenderer",d.classNames=s.T.classNames.concat([d.className])},6284:function(t,e,i){i.d(e,{n:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{width:a.AQ,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const t=this.grid.template;t.set("height",a.AQ),t.set("width",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)}))}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("x",-1e3));const s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){const i=this.chart,o=e.children;if(this.get(a)?e.addTag(a):e.removeTag(a),i){if(this.get(s)){const t=i.topAxesContainer.children;-1==t.indexOf(e)&&t.insertIndex(0,e),e.addTag(s),o.moveValue(this)}else{const t=i.bottomAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(s),o.moveValue(this,0)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(t,e){return(e.x-t.x)/this.width()}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,(t=t/(i-e)*this._lc)+this._ls}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerWidth();this._lc=this.axisLength()/i,this._ls=(t.x()-e.get("paddingLeft",0))/i}}_updatePositions(){const t=this.axis,e=t.x()-r.relativeToValue(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0);t.gridContainer.set("x",e),t.topGridContainer.set("x",e),t.bulletsContainer.set("y",this.y());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginLeft",0),o=t.x()-a;const n=t.parent;n&&(o-=n.get("paddingLeft",0)),s.children.length>0?(a=t.axisHeader.width(),t.set("marginLeft",a+1)):s.set("width",a),s.setAll({x:o,y:-1,height:e.height()+2})}}processAxis(){super.processAxis();const t=this.axis;null==t.get("width")&&t.set("width",a.AQ);const e=this._root.verticalLayout;t.set("layout",e),t.labelsContainer.set("width",a.AQ),t.axisHeader.setAll({layout:e})}axisLength(){return this.axis.width()}positionToPoint(t){return{x:this.positionToCoordinate(t),y:0}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e));let r=t.get("length",0);const h=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("y",a.AQ),h||(r*=-1)):(t.set("y",0),h&&(r*=-1)),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,r)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateLabel(t,e,i,s){if(t){let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(e)||(e=0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?r?(t.set("position","absolute"),t.set("y",0)):(t.set("position","relative"),t.set("y",a.AQ)):r?(t.set("y",0),t.set("position","absolute")):(t.set("y",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=-1;if(this.get("opposite")&&(h=1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("y",t.y()+t.height()*h)}else s.set("y",0);this.axis._bullets[o]=t,s.set("x",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.height(),a=this.width();ia||i<0||(t.moveTo(e,0),t.lineTo(i,0),t.lineTo(i,s),t.lineTo(e,s),t.lineTo(e,0))}))}positionTooltip(t,e){this._positionTooltip(t,{x:this.positionToCoordinate(e),y:0})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,n=this.axisLength(),h=i,l="up";this.get("opposite")?e?(l="up",o=s.y,h=i):(l="down",o=s.y-i,h=i):e?(l="down",o=s.y-i,h=i):(l="up",o=s.y,h=i);const d={left:a,right:a+n,top:o,bottom:o+h},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}}h.className="AxisRendererX",h.classNames=s.Y.classNames.concat([h.className])},7909:function(t,e,i){i.d(e,{j:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{height:a.AQ,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const t=this.grid.template;t.set("width",a.AQ),t.set("height",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())}))}_getPan(t,e){return(t.y-e.y)/this.height()}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("y",-1e3));const s=this.thumb,a="opposite",o="inside",n=this.chart;if(this.isDirty(a)||this.isDirty(o)){const i=e.children;if(this.get(o)?e.addTag(o):e.removeTag(o),n){if(this.get(a)){const t=n.rightAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e,0),e.addTag(a),i.moveValue(this,0)}else{const t=n.leftAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(a),i.moveValue(this)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}const r=e.labelsContainer.width();n&&(this.get(a)?s.set("centerX",0):s.set("centerX",r)),s.setPrivate("width",r)}processAxis(){super.processAxis();const t=this.axis;null==t.get("height")&&t.set("height",a.AQ);const e=this._root.horizontalLayout;t.set("layout",e),t.labelsContainer.set("height",a.AQ),t.axisHeader.set("layout",e)}_updatePositions(){const t=this.axis,e=t.y()-r.relativeToValue(t.get("centerY",0),t.height());t.gridContainer.set("y",e),t.topGridContainer.set("y",e),t.bulletsContainer.set("x",this.x());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginTop",0);s.children.length>0?(a=t.axisHeader.height(),t.set("marginTop",a+1)):s.set("height",a),s.setAll({y:t.y()-a,x:-1,width:e.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(t){return{x:0,y:this.positionToCoordinate(t)}}updateLabel(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a);const o=this.get("opposite"),r=t.get("inside",this.get("inside",!1));o?(t.set("x",0),r?t.set("position","absolute"):t.set("position","relative")):r?(t.set("x",0),t.set("position","absolute")):(t.set("x",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e));let o=t.get("length",0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("x",0),r&&(o*=-1)):r||(o*=-1),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(o,0)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=1;if(this.get("opposite")&&(h=-1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("x",t.x()+t.width()*h)}else s.set("x",0);this.axis._bullets[o]=t,s.set("y",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.width(),a=this.height();ia||i<0||(t.moveTo(0,e),t.lineTo(s,e),t.lineTo(s,i),t.lineTo(0,i),t.lineTo(0,e))}))}positionToCoordinate(t){return this._inversed?(t-this._start)*this._axisLength:(this._end-t)*this._axisLength}positionTooltip(t,e){this._positionTooltip(t,{x:0,y:this.positionToCoordinate(e)})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,n=this.axisLength(),h=i,l="right";this.get("opposite")?e?(l="right",o=s.x-i,h=i):(l="left",o=s.x,h=i):e?(l="left",o=s.x,h=i):(l="right",o=s.x-i,h=i);const d={left:o,right:o+h,top:a,bottom:a+n},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerHeight();this._lc=this.axisLength()/i,this._ls=t.y()/i}}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?e+t:i-t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t-=e:t=i-t,(t=t/(i-e)*this._lc)+this._ls}fixPosition(t){return this.get("inversed")?t:1-t}}h.className="AxisRendererY",h.classNames=s.Y.classNames.concat([h.className])},4714:function(t,e,i){i.d(e,{T:function(){return a}});var s=i(2438);class a extends s.d{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisTick",a.classNames=s.d.classNames.concat([a.className])},7497:function(t,e,i){i.d(e,{$:function(){return d}});var s=i(6515),a=i(2132),o=i(7261),n=i(5071),r=i(5040),h=i(751),l=i(7652);class d extends s.R{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();const t=this.dataItems.length;t>0&&this.setPrivateRaw("maxZoomFactor",t),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),t)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",t),1))}_prepareChildren(){super._prepareChildren();const t=this.dataItems.length;let e=0;this._valuesDirty&&(this._itemMap={},n.each(this.dataItems,(t=>{t.setRaw("index",e),this._itemMap[t.get("category")]=t,e++})),this.setPrivateRaw("maxZoomFactor",t));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){const t=this.dataItems.length;if(t>1){let e=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0);const n=this._sAnimation,r=this._eAnimation;let h=this.get("start",0),l=!1;n&&!n.stopped&&(h=Number(n.to),l=!0);let d=this.get("end",1);if(r&&!r.stopped&&(d=Number(r.to),l=!0),l){const t=this._getIndices(h,d);a=t.startIndex,o=t.endIndex}for(let t=a;t=i));s++);if(e=0&&(e+=this.dataItems[t].get("finalCellSize",1),a=t,!(e>=i));t--);this.zoomToIndexes(a,o)}else if(s>=e){let t=s;for(let i=o-1;i>=a;i--)if(t-=this.dataItems[i].get("finalCellSize",1),t<=e){o=i+1;break}this.zoomToIndexes(a,o)}}}_handleRangeChange(){n.each(this.series,(t=>{let e=this.dataItems[this.startIndex()].get("category"),i=this.dataItems[this.endIndex()-1].get("category"),s=t.get("baseAxis"),a=t.get("xAxis"),r=t.get("yAxis");if(a instanceof d&&r instanceof d)t._markDirtyAxes();else if(s===this){let h,l,g=r;if(a===s?(t.get("categoryXField")&&(h="categoryX"),t.get("openCategoryXField")&&(l="openCategoryX")):r===s&&(t.get("categoryYField")&&(h="categoryY"),t.get("openCategoryYField")&&(l="openCategoryY"),g=a),g instanceof o.m&&(h||l)){let c,u;function m(t,e,i,s,a,o){let n,r=e.categoryToIndex(a);for(;!n&&r>=0&&r=0;e--){let o=t.dataItems[e];if(i&&o.get(i)===a){n=o;break}if(s&&o.get(s)===a){n=o;break}}else for(let e=0,o=t.dataItems.length;e{null!=y.get(t)&&(x=!0)})),n.each(t.__valueYShowFields,(t=>{null!=y.get(t)&&(x=!0)})),x)break}t.setPrivate("outOfSelection",!x)}t._markDirtyAxes()}}))}_prepareAxisItems(){var t;const e=this.get("renderer"),i=this.dataItems.length;let s=this.startIndex();s>0&&s--;let a=this.endIndex();a=s&&(t=s-1,e=1),r.isNumber(e)||(e=.5),!r.isNumber(t))return 0;let o=this.get("startLocation",0),h=this.get("endLocation",1);if(this.get("cellSizeField")){let s=i?"finalCellSize":"cellSize";const r=this.dataItems;let l=0;n.each(this.dataItems,(t=>{l+=t.get(s,1)})),l-=o*r[0].get(s,1),l-=(1-h)*r[r.length-1].get(s,1);let d=0;for(let e=0;e{const e=t.get("cellSize",1);s.push(e),i+=e}));let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=t*i+a,h=0;for(let t=0;t0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(e),a=t.dataItems[s],o=this.dataItems[s],n=o.get("category");if(a&&o&&a.get(i)===n)return a;for(let e=0,s=t.dataItems.length;e{r+=t.get(o,1)})),r-=this.get("startLocation",0)*h[0].get(o,1),r-=(1-this.get("endLocation",1))*h[h.length-1].get(o,1);let l=0;for(let e=0;eMath.round(t*r)){s=e;break}for(let t=s+1;t=Math.round(e*r)){a=t+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(t,e,i){let s=this.dataItems.length;this.get("cellSizeField")?(t=Math.min(Math.max(t,0),s),e=Math.max(Math.min(e,s),1),this.setPrivateRaw("startIndex",t),this.setPrivateRaw("endIndex",e),this.zoom(this.indexToPosition(t,0,!0),this.indexToPosition(e,0,!0),i)):this.zoom(t/s,e/s,i)}zoomToCategories(t,e,i){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(t){null==t&&(t=1),"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);const e=this.getPrivate("tooltipPosition",0),i=h.fitToRange(this.axisPositionToIndex(e)+t,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}}d.className="CategoryAxis",d.classNames=s.R.classNames.concat([d.className])},5638:function(t,e,i){i.d(e,{S:function(){return c}});var s=i(9361),a=i(7261),o=i(5040),n=i(751),r=i(3540),h=i(5071),l=i(256),d=i(7652),g=i(1926);class c extends a.m{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=d.mergeTags(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",(()=>{this._setBaseInterval(this.get("baseInterval"))}))}_setBaseInterval(t){this.setPrivateRaw("baseInterval",t),this._baseDuration=g.getIntervalDuration(t)}_fixZoomFactor(){const t=this.get("maxZoomFactor");null!=t&&t!=1/0?this.setPrivateRaw("maxZoomFactor",t):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){this._fixZoomFactor();const t=this.getPrivate("groupInterval");if(t?this._setBaseInterval(t):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let t=this.get("groupInterval");t&&(this.setRaw("groupIntervals",[t]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))h.each(this.series,(t=>{this._groupSeriesData(t)})),this._handleRangeChange();else{let t=this.get("baseInterval"),e=t.timeUnit+t.count;h.each(this.series,(t=>{t.setDataSet(e),t.resetGrouping()})),this._setBaseInterval(t),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(t){if(this.get("groupData")&&!t.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let e=[],i=this.baseMainDuration(),a=this.get("groupIntervals");h.each(a,(t=>{g.getIntervalDuration(t)>i&&e.push(t)})),t._dataSets={};const n=this.getPrivate("name")+this.get("renderer").getPrivate("letter");let r;const d=t.get("baseAxis");t.get("xAxis")===d?r=t._valueYFields:t.get("yAxis")===d&&(r=t._valueXFields);let c=t._mainDataItems,u=this.get("baseInterval"),m=u.timeUnit+u.count;t._dataSets[m]=c;const p=t.get("groupDataCallback");let _=t.get("groupDataWithOriginals",!1);p&&(_=!0),h.each(e,(e=>{let i,a=-1/0,d=e.timeUnit+e.count;t._dataSets[d]=[];let u={},m={},x={},v={};h.each(r,(e=>{u[e]=0,m[e]=0,x[e]=t.get(e+"Grouped"),v[e]=e+"Working"}));let y,f,b=g.getDuration(e.timeUnit);c[0]&&(y=c[0].get(n)),h.each(c,(c=>{let D,P=c.get(n),w=g.roun(P,e.timeUnit,e.count,this._root,y);a{let e=c.get(t);o.isNumber(e)?(i.setRaw(t,e),i.setRaw(v[t],e),m[t]=1,u[t]=e):(u[t]=0,m[t]=0)})),_&&i.set("originals",[c]),p&&f&&p(f,e),f=i):(h.each(r,(t=>{let e=x[t],s=c.get(t);if(null!=s){let a=i.get(t);switch(e){case"close":i.setRaw(t,s);break;case"sum":i.setRaw(t,a+s);break;case"open":break;case"low":sa&&i.setRaw(t,s);break;case"average":m[t]++,u[t]+=s;let e=u[t]/m[t];i.setRaw(t,e);break;case"extreme":Math.abs(s)>Math.abs(a)&&i.setRaw(t,s)}i.setRaw(v[t],i.get(t));let o=l.copy(c.dataContext);o[n]=w,i.dataContext=o}})),_&&i.get("originals").push(c)),a=w})),p&&f&&p(f,e)})),t._dataSetId&&t.setDataSet(t._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",(()=>{this.markDirtySize()}))}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(t){let e=this.get("baseInterval"),i=g.chooseInterval(0,t,this.get("groupCount",1/0),this.get("groupIntervals"));return g.getIntervalDuration(i){e.get("baseAxis")===this&&e.setDataSet(t)})),this.markDirtyExtremes(),this._root.events.once("frameended",(()=>{this._root.events.once("frameended",(()=>{const t="groupintervalchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}))}))}}h.each(this.series,(i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),a=h.getFirstSortedIndex(i.dataItems,(e=>r.qu(e.get(s),t))).index;a>0&&(a-=1),e+=this._baseDuration*(1-this.get("endLocation",1));let o=h.getSortedIndex(i.dataItems,(t=>r.qu(t.get(s),e))).index,n=o;n>1&&n--;const l=i.dataItems[a],d=i.dataItems[n];let g,c;l&&(c=l.get(s)),d&&(g=d.get(s));let u=!1;null!=g&&null!=c&&(ge)&&(u=!0),i.setPrivate("outOfSelection",u),i.setPrivate("startIndex",a);let m=i._adjustStartIndex(a);i.getPrivate("adjustedStartIndex")!==m&&(i.setPrivate("adjustedStartIndex",m),this.root.events.once("frameended",(()=>{i._markDirtyPrivateKey("adjustedStartIndex")}))),i.setPrivate("endIndex",o)}}))}}_adjustMinMax(t,e,i,s){return{min:t,max:e,step:(e-t)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(t,e){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=t,this._intervalMax[s]=e}_getM(t){return"day"==t||"month"==t||"year"==t?1.05:1.01}_getMinorInterval(t){var e;let i,s=t.count,a=t.timeUnit;return s>1&&(10==s||15==s?s=5:12==s?s=2:6==s?s=1:30==s?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),"week"==a&&(i="week"!=(null===(e=this.getPrivate("baseInterval"))||void 0===e?void 0:e.timeUnit)?{timeUnit:"day",count:1}:{timeUnit:"week",count:1}),"year"==a&&1==s&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<1264896e5&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){const e=this._root,i=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),n=this.get("renderer"),r=this.getPrivate("baseInterval");let l=i,d=0;const c=this.get("gridIntervals");let u=g.chooseInterval(0,a-i,n.gridCount(),c);g.getIntervalDuration(u){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_updateFinals(t,e){this.setPrivateRaw("selectionMinFinal",this.positionToValue(t)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(e))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(t,e){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return g.getIntervalDuration(this.get("baseInterval"))}processSeriesDataItem(t,e){const i=this.getPrivate("baseInterval");t.open||(t.open={}),t.close||(t.close={}),h.each(e,(e=>{let s=t.get(e);if(o.isNumber(s)){let a=t.open[e],o=t.close[e];if(s>=a&&s<=o);else{const n=i.timeUnit,r=i.count;a=g.roun(s,n,r,this._root),o=a+g.getDuration(n,r*this._getM(n)),o=g.roun(o,n,1,this._root),t.open[e]=a,t.close[e]=o}this._updateDates(a,t.component)}}))}_handleSizeDirty(){}getDataItemPositionX(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}roundAxisPosition(t,e){let i=this.positionToValue(t);i-=(e-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!o.isNaN(i)){const t=this._root.locale.firstDayOfWeek,a=s.timeUnit,o=this._root.utc,n=this._root.timezone,r=s.count;i=g.roun(i,a,r,this._root,this.getPrivate("min",0));let h=g.getDateIntervalDuration(s,new Date(i),t,o,n);return n&&(i=g.roun(i+.05*this._baseDuration,a,r,this._root,this.getPrivate("min",0)),h=g.getDateIntervalDuration(s,new Date(i+h*e),t,o,n)),this.valueToPosition(i+h*e)}return NaN}getTooltipText(t,e){if(null!=this.getPrivate("min")){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(t);if(o.isNumber(s)){let t=new Date(s),a=this.getPrivate("baseInterval"),o=g.getDateIntervalDuration(a,t,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return!1!==e&&(t=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*o)),this._root.dateFormatter.format(t,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(t,e,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);null==i&&(i=.5),o-=(i-.5)*this._baseDuration;const n=h.getSortedIndex(t.dataItems,(t=>{let e=0;return t.open&&(e=t.open[a]),r.qu(e,o)}));if(s||t.get("snapTooltip")){let e=t.dataItems[n.index-1],i=t.dataItems[n.index];if(e&&i&&e.open&&i.close){let t=e.open[a],s=i.close[a];if(Math.abs(o-t)>Math.abs(o-s))return i}if(e)return e;if(i)return i}else{const e=t.dataItems[n.index-1];if(e&&e.open&&e.close){let t=e.open[a],i=e.close[a];if(o>=t&&o<=i)return e}}}shouldGap(t,e,i,s){const a=t.get(s);return e.get(s)-a>this._baseDuration*i}zoomToDates(t,e,i){this.zoomToValues(t.getTime(),e.getTime(),i)}zoomToValues(t,e,i){const s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(null!=this.getPrivate("min")&&null!=this.getPrivate("max"))if(this.get("groupData")){const s=this.getGroupInterval(e-t),a=this.get("baseInterval");let o=this.getIntervalMin(a),n=this.getIntervalMax(a)-1;n=g.roun(n,s.timeUnit,s.count,this.root),n+=this._getM(s.timeUnit)*g.getIntervalDuration(s),n=g.roun(n,s.timeUnit,s.count,this.root);let r=g.roun(o,s.timeUnit,s.count,this.root),h=g.roun(n,s.timeUnit,s.count,this.root),l=(t-r)/(h-r),d=(e-r)/(h-r);this.zoom(l,d,i)}else this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}positionToDate(t){return new Date(this.positionToValue(t))}dateToPosition(t){return this.valueToPosition(t.getTime())}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return o.isNumber(t)&&o.isNumber(e)?this._intervalDuration/(t-e):.05}nextPosition(t){null==t&&(t=1);let e=this.get("tooltipLocation",.5)*this._baseDuration;"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0));const s=this.getPrivate("baseInterval");let a=this._nextTime(i,t,s),o=this.getPrivate("selectionMin",0),r=this.getPrivate("selectionMax",0),h=g.roun(o,s.timeUnit,s.count,this._root),l=g.roun(r,s.timeUnit,s.count,this._root);return a+=e,a=n.fitToRange(a,h+e,l-e),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(t,e,i){return g.roun(t+e*this._baseDuration,i.timeUnit,i.count,this._root)}}c.className="DateAxis",c.classNames=a.m.classNames.concat([c.className])},7109:function(t,e,i){i.d(e,{L:function(){return a}});var s=i(6691);class a extends s.Y{constructor(){super(...arguments),this._tickPoints=[]}}a.className="EditableAxisLabel",a.classNames=s.Y.classNames.concat([a.className])},8701:function(t,e,i){i.d(e,{J:function(){return d}});var s=i(5638),a=i(9361),o=i(5071),n=i(3540),r=i(1926),h=i(5040),l=i(751);class d extends s.S{constructor(){super(...arguments),this._frequency=1,this._m=0,this._dates=[]}_afterNew(){this.valueFields.push("date"),this.addTag("gapless"),super._afterNew()}_getDates(){return this._customDates?this._customDates:this._dates}_updateDates(t,e){if(!e.get("ignoreMinMax")){const e=this._getDates(),i=o.getSortedIndex(e,(e=>n.qu(e,t)));i.found||o.insertIndex(e,i.index,t)}}_updateAllDates(){if(!this._customDates){const t=this._dates;t.length=0,o.each(this.series,(t=>{let e="valueX";t.get("yAxis")==this&&(e="valueY"),o.each(t.dataItems,(i=>{let s=i.get(e);h.isNumber(s)&&i.open&&this._updateDates(i.open[e],t)}))}));const e=this.get("extraMax",0),i=this.get("extraMin",0);let s=t.length;const a=this.getPrivate("baseInterval"),n=a.count,l=a.timeUnit;if(e>0){const i=s*e;let a=t[s-1];if(h.isNumber(a))for(let e=s-1;e0){const e=s*i;let a=t[0];if(h.isNumber(a))for(let i=0;in.qu(e,t)));let h=r.index;if(r.found)return(h-i)/a;{h>0&&(h-=1);let s=e[h];const o=e[h+1];if(o){let e=o;Math.abs(e-t)n.qu(e,t)));let s=i.index;return i.found||s>0&&(s-=1),s}positionToValue(t){const e=this.get("startLocation",0),i=this.get("endLocation",1),s=this._getDates();let a=Math.round(s.length-e-(1-i)),o=t*a,n=Math.floor(o);return n<0&&(n=0),n>a-1&&(n=a-1),s[n]+(o-n+e)*this._baseDuration}_fixZoomFactor(){this.setPrivateRaw("maxZoomFactor",this._getDates().length-this.get("startLocation",0)-(1-this.get("endLocation",1)))}zoomToDates(t,e,i){const s=this._getDates(),a=s.length;let r=o.getSortedIndex(s,(e=>n.qu(e,t.getTime()))),h=s[Math.min(r.index,a-1)];r=o.getSortedIndex(s,(t=>n.qu(t,e.getTime())));let l=s[r.index];r.index>=a&&(l=s[a-1]+this._baseDuration),this.zoomToValues(h,l,i)}zoomToValues(t,e,i){const s=this.getPrivate("min",0),a=this.getPrivate("max",0);t=l.fitToRange(t,s,a),e=l.fitToRange(e,s,a),this.zoom(this.valueToPosition(t),this.valueToPosition(e),i)}_prepareAxisItems(){let t=this.getPrivate("selectionMin",0),e=this.getPrivate("selectionMax",0);if(h.isNumber(t)&&h.isNumber(e)){this._seriesValuesDirty&&(this._seriesValuesDirty=!1,this._updateAllDates());const i=this._root,s=i.utc,n=i.timezone,l=this._getDates(),d=this.get("renderer"),g=l.length,c=this._baseDuration;let u=this.valueToIndex(t);u>0&&u--;let m=this.valueToIndex(e);m{this._toggleDataItem(t,!1)})),o.each(this.minorDataItems,(t=>{this._toggleDataItem(t,!1)}));let x=e-t-((e-t)/c-(m-u))*c,v=r.chooseInterval(0,x,p,this.get("gridIntervals"));const y=this.getPrivate("baseInterval");let f=r.getIntervalDuration(v);f0){let t=0;this._m=0;let e=w-10*f;const g=r.getNextUnit(b);if(I){let t=l[C[0]];this._addMinorGrid(t-f,t,k,I)}let c=d.axisLength()/d.gridCount()*.5;o.each(C,(o=>{var u;let m;this.dataItems.length1||"week"==v.timeUnit){let e=r.roun(p,t,1,i)+r.getDuration(t,this._getM(t)),s=this.valueToIndex(e);if(e=l[s],e==p){let t=l[s+1];t?e=t:e+=k}m.setRaw("labelEndValue",e)}w=1}if(this._prepareDataItem(m,w),P&&M&&"X"==d.getPrivate("letter")){let t=M.get("label");if(t&&P.x()-t.x(){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_pickWorse(t,e,i){const s=i.timeUnit,a=t.get("value",0),o=e.get("value",0);return"hour"==s&&new Date(a).getDate()!=new Date(o).getDate()?t:e}_addMinorGrid(t,e,i,s){const n=this.get("minorDateFormats",this.get("dateFormats")),h=s.timeUnit;let l=t+r.getDuration(h,this._getM(h));l=r.roun(l,h,1,this._root);let d=e-.5*i,g=this._getIndexes(l,d,s,l);const c=this._getDates();o.each(g,(t=>{let e;this.minorDataItems.length=x-2*_&&o.move(a,e),u=0),t+=p,t=r.roun(t,n,1,g);else{if(i=t){e=s;break}o.move(a,e),t+=_,t=r.roun(t,n,h,g)}if(t==m&&(t+=_+p,t=r.roun(t,n,h,g)),t==m)break;m=t}return a}_hasDate(t){return o.getSortedIndex(this._getDates(),(e=>n.HO(e,t))).found}_nextTime(t,e,i){let s=l.fitToRange(this.valueToIndex(t)+e,0,this._dates.length-1);return this._dates[s]}}d.className="GaplessDateAxis",d.classNames=s.S.classNames.concat([d.className])},8943:function(t,e,i){i.d(e,{r:function(){return a}});var s=i(1479);class a extends s.T{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}a.className="Grid",a.classNames=s.T.classNames.concat([a.className])},7261:function(t,e,i){i.d(e,{m:function(){return d}});var s=i(9361),a=i(6515),o=i(7449),n=i(5040),r=i(5071),h=i(751),l=i(7652);class d extends a.R{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var t;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let t=this.get("syncWithAxis");t&&(this._syncDp=new o.FV([t.onPrivate("selectionMinFinal",(()=>{this._dirtySelectionExtremes=!0})),t.onPrivate("selectionMaxFinal",(()=>{this._dirtySelectionExtremes=!0}))]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,null===(t=this.ghostLabel)||void 0===t||t.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){const t=this.chart;let e=!1;if(t){const i=this.get("renderer").getPrivate("letter");"Y"==i?t.xAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)})):"X"==i&&t.yAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)}))}e&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,this.getPrivate("selectionMinFinal")==this.getPrivate("selectionMin")&&this.getPrivate("selectionMaxFinal")==this.getPrivate("selectionMax")||(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(t){const e=this.get("numberFormat"),i=this.getNumberFormatter();let s="";return s=e?i.format(t,e):i.format(t,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(n.isNumber(t)&&n.isNumber(e)){const e=this.get("logarithmic"),i=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+i;let l=a-i,d=1,g=t;if(e){if(l=this._minLogAdjusted,l2&&(l=Math.pow(10,Math.log(g)*Math.LOG10E-50))}const c=this.get("renderer"),u=c.get("minorLabelsEnabled"),m=c.get("minorGridEnabled",u);let p=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));const _=Math.round(i/p);let x=2;h.round(_/5,10)%1==0&&(x=5),h.round(_/10,10)%1==0&&(x=10);let v=i/x,y=0,f=0,b=-1/0;const D=this.get("renderer").gridCount();for(;l2){const t=Math.max(1,D),e=Math.max(1,Math.ceil(d/t)),i=Math.log(g)*Math.LOG10E+(y+1)*e-50;o=Math.pow(10,i)}else o+=i;else o+=i;if(m){let t=l+v;for(e&&(d>2&&(v=this._adjustMinMax(l,o,10).step),t=l+v);t{t.inited&&t._markDirtyAxes()})),this._updateGhost()}}_prepareDataItem(t,e){let i=this.get("renderer"),s=t.get("value"),a=t.get("endValue"),o=this.valueToPosition(s),r=o,h=this.valueToPosition(s+this.getPrivate("step"));n.isNumber(a)&&(r=this.valueToPosition(a),h=r),t.get("isRange")&&null==a&&(h=o);let l=r,d=t.get("labelEndValue");null!=d&&(l=this.valueToPosition(d)),i.updateLabel(t.get("label"),o,l,e);const g=t.get("grid");if(i.updateGrid(g,o,r),g&&(s==this.get("baseValue",0)?(g.addTag("base"),g._applyThemes()):g.hasTag("base")&&(g.removeTag("base"),g._applyThemes())),i.updateTick(t.get("tick"),o,l,e),i.updateFill(t.get("axisFill"),o,h),this._processBullet(t),i.updateBullet(t.get("bullet"),o,r),!t.get("isRange")){const e=this.get("fillRule");e&&e(t)}}_handleRangeChange(){let t=this.positionToValue(this.get("start",0)),e=this.positionToValue(this.get("end",1));const i=this.get("renderer").gridCount();let s=this._adjustMinMax(t,e,i,!0),a=l.decimalPlaces(s.step);this.setPrivateRaw("stepDecimalPlaces",a),t=h.round(t,a),e=h.round(e,a),s=this._adjustMinMax(t,e,i,!0);let o=s.step;t=s.min,e=s.max,this.getPrivate("selectionMin")===t&&this.getPrivate("selectionMax")===e&&this.getPrivate("step")===o||(this.setPrivateRaw("selectionMin",t),this.setPrivateRaw("selectionMax",e),this.setPrivateRaw("step",o))}positionToValue(t){const e=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(t*(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)+Math.log(e)*Math.LOG10E)/Math.LOG10E):t*(i-e)+e}valueToPosition(t){const e=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}valueToFinalPosition(t){const e=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}getX(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getY(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionX(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemX")?a*s+t.component.getStackedXValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemY")?a*s+t.component.getStackedYValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const t=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),e=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let i=this.get("baseValue",0);return ie&&(i=e),i}cellEndValue(t){return t}fixSmallStep(t){return 1+t===1?(t*=2,this.fixSmallStep(t)):t}_fixMin(t){return t}_fixMax(t){return t}_calculateTotals(){if(this.get("calculateTotals")){let t=this.series[0];if(t){let e=t.startIndex();if(t.dataItems.length>0){e>0&&e--;let i,s,a=t.endIndex();a{if(!i.get("excludeFromTotal")){let r=i.dataItems[t];if(r){let t=r.get(o)*i.get(s);n.isNaN(t)||(e+=t,a+=Math.abs(t))}}})),r.each(this.series,(r=>{if(!r.get("excludeFromTotal")){let h=r.dataItems[t];if(h){let t=h.get(o)*r.get(s);if(!n.isNaN(t)){h.set(i+"Total",a),h.set(i+"Sum",e);let s=t/a*100;0==a&&(s=0),h.set(i+"TotalPercent",s)}}}}))}}}}}_getSelectionMinMax(){const t=this.getPrivate("minFinal"),e=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max");let a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2));const l=this.get("renderer").gridCount(),d=this.get("strictMinMaxSelection");let g=this.get("strictMinMax");if(n.isNumber(t)&&n.isNumber(e)){let c=e,u=t;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,i;const s=t.getPrivate("outOfSelection");if(t.get("xAxis")===this){if(!s){let s=t.getPrivate("minX"),a=t.getPrivate("maxX");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinX",s),i=t.getPrivate("selectionMaxX",a)}}else if(t.get("yAxis")===this&&!s){let s=t.getPrivate("minY"),a=t.getPrivate("maxY");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinY",s),i=t.getPrivate("selectionMaxY",a)}t.isHidden()||t.isShowing()||(n.isNumber(e)&&(c=Math.min(c,e)),n.isNumber(i)&&(u=Math.max(u,i)))}})),this.axisRanges.each((t=>{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(c=Math.min(c,e),u=Math.max(u,e)),e=t.get("endValue"),null!=e&&(c=Math.min(c,e),u=Math.max(u,e))}})),c>u&&([c,u]=[u,c]),n.isNumber(i)?c=g?i:t:g&&n.isNumber(this._minReal)&&(c=this._minReal),n.isNumber(s)?u=g?s:e:g&&n.isNumber(this._maxReal)&&(u=this._maxReal),c===u){let e=c;if(c-=this._deltaMinMax,u+=this._deltaMinMax,ce&&(x.max=e),c=x.min,u=x.max),g&&(n.isNumber(i)&&(c=Math.max(c,i)),n.isNumber(s)&&(u=Math.min(u,s))),d&&(c=m-(p-m)*a,u=p+(p-m)*o),g){c=n.isNumber(i)?i:m,u=n.isNumber(s)?s:p,u-c<=1e-8&&(c-=this._deltaMinMax,u+=this._deltaMinMax);let t=u-c;c-=t*a,u+=t*o}this.get("logarithmic")&&(c<=0&&(c=m*(1-Math.min(a,.99))),ce&&(u=e));let y=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),f=h.round(this.valueToFinalPosition(c),y),b=h.round(this.valueToFinalPosition(u),y);this.setPrivateRaw("selectionMinFinal",c),this.setPrivateRaw("selectionMaxFinal",u),this.setPrivateRaw("selectionStepFinal",x.step),this.zoom(f,b)}}_getMinMax(){let t=this.get("min"),e=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2)));let l=1/0;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,a;if(t.get("xAxis")===this?(e=t.getPrivate("minX"),a=t.getPrivate("maxX")):t.get("yAxis")===this&&(e=t.getPrivate("minY"),a=t.getPrivate("maxY")),n.isNumber(e)&&n.isNumber(a)){i=Math.min(i,e),s=Math.max(s,a);let t=a-e;t<=0&&(t=Math.abs(a/100)),t{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(i=Math.min(i,e),s=Math.max(s,e)),e=t.get("endValue"),null!=e&&(i=Math.min(i,e),s=Math.max(s,e))}})),this.get("logarithmic")){let t=this.get("treatZeroAs");n.isNumber(t)&&i<=0&&(i=t),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(0===i&&0===s&&(s=.9,i=-.9),n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e),i===1/0||s===-1/0)return this.setPrivate("minFinal",void 0),void this.setPrivate("maxFinal",void 0);i>s&&([i,s]=[s,i]);const d=i,g=s;let c=this.adapters.fold("min",i),u=this.adapters.fold("max",s);this._minRealLog=i,n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!=0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&d>=0&&(i=0),s>0&&g<=0&&(s=0)),this._minReal=i,this._maxReal=s;let m=this.get("strictMinMax"),p=this.get("strictMinMaxSelection",!1);p&&(m=p);let _=m;n.isNumber(e)&&(_=!0);let x=this.get("renderer").gridCount(),v=this._adjustMinMax(i,s,x,_);if(i=v.min,s=v.max,v=this._adjustMinMax(i,s,x,!0),i=v.min,s=v.max,m){i=n.isNumber(t)?t:this._minReal,s=n.isNumber(e)?e:this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let r=s-i;i-=r*a,s+=r*o}c=this.adapters.fold("min",i),u=this.adapters.fold("max",s),n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),l==1/0&&(l=s-i);let y=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=h.round(i,y),s=h.round(s,y);const f=this.get("syncWithAxis");if(f&&(v=this._syncAxes(i,s,v.step,f.getPrivate("minFinal",f.getPrivate("min",0)),f.getPrivate("maxFinal",f.getPrivate("max",1)),f.getPrivate("step",1)),i=v.min,s=v.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/l*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=d*(1-Math.min(a,.99)))),n.isNumber(i)&&n.isNumber(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);const t=this.get("interpolationDuration",0),e=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:t,easing:e}),this.animatePrivate({key:"max",to:s,duration:t,easing:e})}}_fixZoomFactor(){}_getDelta(t){let e=Math.log(Math.abs(t))*Math.LOG10E,i=Math.pow(10,Math.floor(e));i/=10,this._deltaMinMax=i}_saveMinMax(t,e){}_adjustMinMax(t,e,i,s){i<=1&&(i=1),i=Math.round(i);let a=t,o=e,r=e-t;0===r&&(r=Math.abs(e));let l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l));d/=10;let g=d;s&&(g=0),s?(t=Math.floor(t/d)*d,e=Math.ceil(e/d)*d):(t=Math.ceil(t/d)*d-g,e=Math.floor(e/d)*d+g),t<0&&a>=0&&(t=0),e>0&&o<=0&&(e=0),l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l)),d/=100;let c=Math.ceil(r/i/d)*d,u=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),m=Math.ceil(c/u);m>5?m=10:m<=5&&m>2&&(m=5),c=Math.ceil(c/(u*m))*u*m;let p=this.get("maxPrecision");if(n.isNumber(p)){let t=h.ceil(c,p);pa&&(t-=c),c=this.fixSmallStep(c),{min:t,max:e,step:c}}getTooltipText(t,e){const i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,n=h.round(this.positionToValue(t),o);return i?s.format(n,i):s.format(n,void 0,o)}getSeriesItem(t,e){let i,s,a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);if(r.each(t.dataItems,((t,e)=>{const n=Math.abs(t.get(a)-o);(void 0===i||n500&&(s=!0),s)t=n,e=h,i=d;else{a/3==Math.round(a/3)?(n=t-o*a,t>=0&&n<0&&(n=0)):(h=e+o*a,h<=0&&h>0&&(h=0));let i=this._adjustMinMax(n,h,l,!0);n=i.min,h=i.max,d=i.step}}}return{min:t,max:e,step:i}}_checkSync(t,e,i,s){let a=(e-t)/i;for(let t=1;t{if(t instanceof l){const e=t.get("stacked");e&&0==h&&n++,!e&&t.get("clustered")&&n++}t===this&&(o=n-1),h++})),this.get("clustered")||(o=0,n=1),0===n&&(n=1,o=0);const d="cellStartLocation",g="cellEndLocation",c=this._xRenderer.get(d,0),u=this._xRenderer.get(g,1),m=this._yRenderer.get(d,0),p=this._yRenderer.get(g,1);if(this._aLocationX0=c+o/n*(u-c),this._aLocationX1=c+(o+1)/n*(u-c),this._aLocationY0=m+o/n*(p-m),this._aLocationY1=m+(o+1)/n*(p-m),e.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){const t=this.dataItems.length;let a=Math.max(0,this.startIndex()-2),o=Math.min(this.endIndex()+2,t-1);for(let t=0;t0&&a>0)for(let e=t-1;e>=0;e--){let t=this.dataItems[e];if(null!=t.get("valueX")&&null!=t.get("valueY")){n=t;break}}break}this._toggleColumn(e,!1)}this._beforeColumnsDraw();let r=0;i.isType("CategoryAxis")&&e.isType("CategoryAxis")?r=2:e===s?r=0:i===s&&(r=1);for(let t=a;t<=o;t++){let e=this.dataItems[t];this._updateGraphics(e,n,r),null!=e.get("valueX")&&null!=e.get("valueY")&&(n=e)}this._afterColumnsDraw();for(let e=o+1;e{const a=e.get(s,this.get(s));t.set(s,a),i.set(s,a)}))}}let s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.dispose()})),s=[],t.setRaw("rangeGraphics",s),this.axisRanges.each((e=>{const i=e.container,a=this._makeGraphics(e.columns,t);s&&s.push(a),a.setPrivate("list",e.columns),i.children.push(a)}))}}createAxisRange(t){return r.each(this.dataItems,(t=>{const e=t.get("graphics");e&&(e.dispose(),t.set("graphics",void 0))})),super.createAxisRange(t)}_updateGraphics(t,e,i){let s=t.get("graphics");const a=this._xField,n=this._yField,l=t.get(a),d=t.get(n),g=this.get("exactLocationX",!1);if(null!=l&&null!=d){const l=this._xOpenField,d=this._yOpenField,c=this.get("locationX",t.get("locationX",.5)),u=this.get("locationY",t.get("locationY",.5)),m=this.get("openLocationX",t.get("openLocationX",c)),p=this.get("openLocationY",t.get("openLocationY",u)),_=s.get("width"),x=s.get("height"),v=this.get("stacked"),y=this.get("xAxis"),f=this.get("yAxis"),b=y.get("start"),D=y.get("end"),P=f.get("start"),w=f.get("end");let T,A,I,M,k=this.get("vcy",1),C=this.get("vcx",1),S=!1,Y=!1;if(0==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C,g),A=y.getDataItemPositionX(t,a,i,C,g),I=f.getDataItemPositionY(t,n,u,k),this._yOpenField!==this._yField)M=f.getDataItemPositionY(t,d,p,k);else if(v){let e=t.get("stackToItemY");M=e?f.getDataItemPositionY(e,n,p,e.component.get("vcy")):f.basePosition()}else M=f.basePosition();t.setRaw("point",{x:T+(A-T)/2,y:I}),Y=!0}else if(1==i){let e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5;if(x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}if(I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),A=y.getDataItemPositionX(t,a,c,C,g),this._xOpenField!==this._xField)T=y.getDataItemPositionX(t,l,m,C,g);else if(v){let e=t.get("stackToItemX");T=e?y.getDataItemPositionX(e,a,m,e.component.get("vcx"),g):y.basePosition()}else T=y.basePosition();S=!0,t.setRaw("point",{x:A,y:I+(M-I)/2})}else if(2==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C),A=y.getDataItemPositionX(t,a,i,C),e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5,x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),t.setRaw("point",{x:T+(A-T)/2,y:I+(M-I)/2})}this._applyGraphicsStates(t,e),this._updateSeriesGraphics(t,s,T,A,I,M,S,Y),TD&&A>D||I=w&&M>w||h.isNaN(T)||h.isNaN(I)?this._toggleColumn(t,!1):this._toggleColumn(t,!0);let F=t.get("rangeGraphics");F&&r.each(F,(e=>{this._updateSeriesGraphics(t,e,T,A,I,M,S,Y)}))}else this._toggleColumn(t,!1)}_updateSeriesGraphics(t,e,i,s,a,o,n,r){const l=e.get("width"),d=e.get("height"),g=e.get("maxWidth"),c=e.get("maxHeight"),u=this.getPoint(i,a),m=this.getPoint(s,o),p=t.get("point");if(p){const t=this.getPoint(p.x,p.y);p.x=t.x+this._x,p.y=t.y+this._y}if(i=u.x,s=m.x,a=u.y,o=m.y,h.isNumber(l)){const t=(s-i-l)/2;i+=t,s-=t}if(h.isNumber(g)&&g{this._toggleColumn(t,!1)}))}_applyGraphicsStates(t,e){const i=t.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),n=i.states.lookup("riseFromPrevious");if(s||o||a||n){const i=this.get("xAxis"),r=this.get("yAxis"),l=this.get("baseAxis");let d,g,c;l===i&&r.isType("ValueAxis")?(d=t.get(this._yOpenField),g=t.get(this._yField),c=e.get(this._yField)):l===r&&i.isType("ValueAxis")&&(d=t.get(this._xOpenField),g=t.get(this._xField),c=e.get(this._xField)),h.isNumber(d)&&h.isNumber(g)&&(g{const e=t.getPrivate("list");e&&e.removeValue(t),t.dispose()}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.hide(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.hide(e))})),yield Promise.all(s)}))}_toggleColumn(t,e){const i=t.get("graphics");i&&i.setPrivate("visible",e);const s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.setPrivate("visible",e)}));const a=t.bullets;a&&r.each(a,(t=>{t.setPrivate("hidden",!e)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.show(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.show(e))})),yield Promise.all(s)}))}updateLegendMarker(t){let e=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!t){const e=this.dataItems[this.endIndex()-1];e&&(t=e)}if(e){let i=this.columns.template;if(t){let e=t.get("graphics");e&&(i=e)}const s=e.get("markerRectangle");if(s&&!e.get("itemContainer").get("disabled")){const t=s.states.lookup("default");r.each(n.u,(e=>{const a=i.get(e,this.get(e));s.set(e,a),t.set(e,a)}))}}}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget"))return super._getTooltipTarget(t);return t.get("graphics")||this}}l.className="BaseColumnSeries",l.classNames=a.o.classNames.concat([l.className])},2976:function(t,e,i){i.d(e,{j:function(){return a}});var s=i(3497);class a extends s.c{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();const t=this._display;t.moveTo(this.get("lowX0",0),this.get("lowY0",0)),t.lineTo(this.get("lowX1",0),this.get("lowY1",0)),t.moveTo(this.get("highX0",0),this.get("highY0",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0))}}a.className="Candlestick",a.classNames=s.c.classNames.concat([a.className])},2312:function(t,e,i){i.d(e,{$:function(){return l}});var s=i(62),a=i(2976),o=i(5769),n=i(7144),r=i(7652),h=i(5071);class l extends s.d{constructor(){super(...arguments),this.columns=this.addDisposer(new n.o(o.YS.new({themeTags:["autocolor"]}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_updateGraphics(t,e,i){super._updateGraphics(t,e,i);const s=this.getRaw("xAxis"),a=this.getRaw("yAxis");let o,n,r,h,l,d,g,c,u,m=this.get("vcy",1),p=this.get("vcx",1),_=this.get("locationX",t.get("locationX",.5)),x=this.get("locationY",t.get("locationY",.5)),v=this.get("openLocationX",t.get("openLocationX",_)),y=this.get("openLocationY",t.get("openLocationY",x));if(0==i){let e=a.getDataItemPositionY(t,this._yOpenField,1,m),i=a.getDataItemPositionY(t,this._yField,1,m);h=a.getDataItemPositionY(t,this._yLowField,1,m),c=a.getDataItemPositionY(t,this._yHighField,1,m),g=Math.max(e,i),r=Math.min(e,i);let x=this._aLocationX0+v-.5,y=this._aLocationX1+_-.5;o=s.getDataItemPositionX(t,this._xField,x+(y-x)/2,p),n=o,l=o,d=o,u="vertical"}else{let e=s.getDataItemPositionX(t,this._xOpenField,1,p),i=s.getDataItemPositionX(t,this._xField,1,p);n=s.getDataItemPositionX(t,this._xLowField,1,p),d=s.getDataItemPositionX(t,this._xHighField,1,p),l=Math.max(e,i),o=Math.min(e,i);let _=this._aLocationY0+y-.5,v=this._aLocationY1+x-.5;r=a.getDataItemPositionY(t,this._yField,_+(v-_)/2,m),h=r,g=r,c=r,u="horizontal"}this._updateCandleGraphics(t,o,n,r,h,l,d,g,c,u)}_updateCandleGraphics(t,e,i,s,a,o,n,r,l,d){let g=t.get("graphics");if(g){let c=this.getPoint(e,s),u=this.getPoint(i,a),m=this.getPoint(o,r),p=this.getPoint(n,l);if(this.get("turboMode")){const t=this.allColumnsData[this.allColumnsData.length-1];t.lowX0=c.x,t.lowY0=c.y,t.lowX1=u.x,t.lowY1=u.y,t.highX0=m.x,t.highY0=m.y,t.highX1=p.x,t.highY1=p.y}else{let e=g.x(),i=g.y();g.set("lowX0",c.x-e),g.set("lowY0",c.y-i),g.set("lowX1",u.x-e),g.set("lowY1",u.y-i),g.set("highX0",m.x-e),g.set("highY0",m.y-i),g.set("highX1",p.x-e),g.set("highY1",p.y-i),g.set("orientation",d);let s=t.get("rangeGraphics");s&&h.each(s,(t=>{t.set("lowX0",c.x-e),t.set("lowY0",c.y-i),t.set("lowX1",u.x-e),t.set("lowY1",u.y-i),t.set("highX0",m.x-e),t.set("highY0",m.y-i),t.set("highX1",p.x-e),t.set("highY1",p.y-i),t.set("orientation",d)}))}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),h.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity,g=e.lowX0,c=e.lowY0,u=e.lowX1,m=e.lowY1,p=e.highX0,_=e.highY0,x=e.highX1,v=e.highY1;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.moveTo(g,c),t.lineTo(u,m),t.moveTo(p,_),t.lineTo(x,v),t.endStroke(),t.endFill()}))}))}_processAxisRange(t){super._processAxisRange(t),t.columns=new n.o(o.YS.new({}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(t.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,t.columns.template])))}}l.className="CandlestickSeries",l.classNames=s.d.classNames.concat([l.className])},62:function(t,e,i){i.d(e,{d:function(){return d}});var s=i(757),a=i(5769),o=i(7144),n=i(3497),r=i(1479),h=i(7652),l=i(5071);class d extends s.d{constructor(){super(...arguments),this.allColumns=this.children.push(r.T.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(t.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,t.columns.template])))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),l.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.endStroke(),t.endFill()}))}))}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(t,e,i,s,a,o,n,r){if(this.get("turboMode")){e.virtualParent=this.chart,e.parent&&(this.mainContainer.children.removeValue(e),e._parent=void 0);const n=e.get("stroke"),r=e.get("fillOpacity",1),h=e.get("strokeOpacity",1),l=e.get("strokeWidth",1),d=e.get("fill"),g=this.getPoint(i,a),c=this.getPoint(s,o),u=t.get("point");if(u){const t=this.getPoint(u.x,u.y);u.x=t.x+this._x,u.y=t.y+this._y}i=g.x,s=c.x,a=g.y,o=c.y,t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:n,fill:d,strokeWidth:l,strokeOpacity:h,fillOpacity:r})}else e.parent||this.mainContainer.children.push(e),super._updateSeriesGraphics(t,e,i,s,a,o,n,r)}}d.className="ColumnSeries",d.classNames=s.d.classNames.concat([d.className])},2338:function(t,e,i){i.d(e,{e:function(){return p}});var s=i(4604),a=i(1479),o=i(774),n=i(3794),r=i(5769),h=i(7144),l=i(1112),d=i(9361),g=i(7142),c=i(5040),u=i(5071),m=i(7652);class p extends s.o{constructor(){super(...arguments),this._strokeGenerator=(0,o.Z)(),this._fillGenerator=(0,n.Z)(),this.strokes=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template])))),this.fills=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template])))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0((function(t){return t[3]})),this._fillGenerator.x0((function(t){return t[2]})),this._fillGenerator.y1((function(t){return t[1]})),this._fillGenerator.x1((function(t){return t[0]})),super._afterNew()}makeStroke(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}makeFill(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let t=this.get("xAxis"),e=this.get("yAxis");if(this.isDirty("stroke")){const t=this.get("stroke");this.strokes.template.set("stroke",t);const e=this._legendStroke;e&&e.states.lookup("default").set("stroke",t)}if(this.isDirty("fill")){const t=this.get("fill");this.fills.template.set("fill",t);const e=this._legendFill;e&&e.states.lookup("default").set("fill",t)}if(this.isDirty("fillPattern")){const t=this.get("fillPattern");this.fills.template.set("fillPattern",t);const e=this._legendFill;e&&e.states.lookup("default").set("fillPattern",t)}if(this.isDirty("curveFactory")){const t=this.get("curveFactory");t&&(this._strokeGenerator.curve(t),this._fillGenerator.curve(t))}if(t.inited&&e.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){const t=this.dataItems;this.fills.each((t=>{t.setPrivate("visible",!1)})),this.strokes.each((t=>{t.setPrivate("visible",!1)})),this.axisRanges.each((t=>{let e=t.fills;e&&e.each((t=>{t.setPrivate("visible",!1)}));let i=t.strokes;i&&i.each((t=>{t.setPrivate("visible",!1)}))}));let e=this.startIndex(),i=this.strokes.template.get("templateField"),s=this.fills.template.get("templateField"),a=!0,o=!0;i&&(a=!1),s&&(o=!1);for(let n=e-1;n>=0;n--){let r=t[n],h=!0,l=r.dataContext;if(i&&l[i]&&(a=!0),s&&l[s]&&(o=!0),u.each(this._valueFields,(t=>{c.isNumber(r.get(t))||(h=!1)})),h&&a&&o){e=n;break}}let n=t.length,r=this.endIndex();if(r{c.isNumber(i.get(t))||(s=!1)})),s){r=e+1;break}}}if(e>0&&e--,this._endIndex=r,this._clearGraphics(),this._sindex=0,this._dindex=e,1==n)this._startSegment(0);else for(;this._dindex{t.fills.clear(),t.strokes.clear()}))}_startSegment(t){const e=this.dataItems;let i=this._endIndex,s=i;const a=this.get("autoGapCount"),o=this.get("connect"),n=this.makeFill(this.fills),h=this._fillTemplate,l=this.fills.template;h&&h!=l&&(n.template=h),n.setPrivate("visible",!0);const d=this.makeStroke(this.strokes),g=this._strokeTemplate;g&&g!=this.strokes.template&&(d.template=g),d.setPrivate("visible",!0);let c=this.get("xAxis"),u=this.get("yAxis"),m=this.get("baseAxis"),p=this.get("vcx",1),_=this.get("vcy",1),x=this._xField,v=this._yField,y=this._xOpenField,f=this._yOpenField;const b=this.get("openValueXField"),D=this.get("openValueYField");b||(y=this._xField),D||(f=this._yField);const P=this.get("stacked"),w=c.basePosition(),T=u.basePosition();let A;A=m===u?this._yField:this._xField;const I=[];let M=[];I.push(M);const k=this.strokes.template.get("templateField"),C=this.fills.template.get("templateField");let S=this.get("locationX",.5),Y=this.get("locationY",.5),F=this.get("openLocationX",S),X=this.get("openLocationY",Y);const L=this.get("minDistance",0);let N,R=this.fills.template.get("visible");this.axisRanges.length>0&&(R=!0);let V=!1;(P||b||D)&&(V=!0);const G={points:M,segments:I,stacked:P,getOpen:V,basePosX:w,basePosY:T,fillVisible:R,xField:x,yField:v,xOpenField:y,yOpenField:f,vcx:p,vcy:_,baseAxis:m,xAxis:c,yAxis:u,locationX:S,locationY:Y,openLocationX:F,openLocationY:X,minDistance:L};let O=this._strokeTemplate,E=this._fillTemplate;for(N=t;Nt){s=N;break}O=e,d.template=e}}if(C){let e=i.dataContext[C];if(e){if(e instanceof r.YS||(e=r.YS.new(e)),this._fillTemplate=e,N>t){s=N;break}E=e,n.template=e}}if(!o){let t=e[N+1];t&&m.shouldGap(i,t,a,A)&&(M=[],I.push(M),G.points=M)}}n.setRaw("userData",[t,N]),d.setRaw("userData",[t,N]),N===i&&this._endLine(M,I[0][0]),d&&this._drawStroke(d,I),n&&this._drawFill(n,I),this.axisRanges.each((e=>{const i=e.container,s=e.fills,a=this.makeFill(s);i&&i.children.push(a),a.setPrivate("visible",!0),this._drawFill(a,I);const o=e.strokes,n=this.makeStroke(o);i&&i.children.push(n),O&&O!=this.strokes.template&&(n.template=O),E&&E!=this.fills.template&&(a.template=E),n.setPrivate("visible",!0),this._drawStroke(n,I),a.setRaw("userData",[t,N]),n.setRaw("userData",[t,N])}))}_getPoints(t,e){let i=e.points,s=t.get("locationX",e.locationX),a=t.get("locationY",e.locationY);const o=this.get("exactLocationX",!1),n=this.get("exactLocationY",!1);let r=e.xAxis.getDataItemPositionX(t,e.xField,s,e.vcx,o),h=e.yAxis.getDataItemPositionY(t,e.yField,a,e.vcy,n);if(this._shouldInclude(r)){const s=this.getPoint(r,h),a=[s.x,s.y];if(s.x+=this._x,s.y+=this._y,t.set("point",s),e.fillVisible){let i=r,s=h;if(e.baseAxis===e.xAxis?s=e.basePosY:e.baseAxis===e.yAxis&&(i=e.basePosX),e.getOpen){let a=t.get(e.xOpenField),r=t.get(e.yOpenField);if(null!=a&&null!=r){let a=t.get("openLocationX",e.openLocationX),r=t.get("openLocationY",e.openLocationY);if(e.stacked){let h=t.get("stackToItemX"),l=t.get("stackToItemY");h?(i=e.xAxis.getDataItemPositionX(h,e.xField,a,h.component.get("vcx"),o),c.isNaN(i)&&(i=e.basePosX)):i=e.yAxis===e.baseAxis?e.basePosX:e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),l?(s=e.yAxis.getDataItemPositionY(l,e.yField,r,l.component.get("vcy"),n),c.isNaN(s)&&(s=e.basePosY)):s=e.xAxis===e.baseAxis?e.basePosY:e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),s=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}}let l=this.getPoint(i,s);a[2]=l.x,a[3]=l.y}if(e.minDistance>0){const t=a[0],s=a[1],o=a[2],n=a[3],r=this._previousPoint,h=r[0],l=r[1],d=r[2],g=r[3];(Math.hypot(t-h,s-l)>e.minDistance||o&&n&&Math.hypot(o-d,n-g)>e.minDistance)&&(i.push(a),this._previousPoint=a)}else i.push(a)}}_endLine(t,e){}_drawStroke(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._strokeGenerator.context(t),this._strokeGenerator(e)}))}))}_drawFill(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._fillGenerator.context(t),this._fillGenerator(e)}))}))}_processAxisRange(t){super._processAxisRange(t),t.fills=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,t.fills.template]))),t.strokes=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,t.strokes.template])))}createLegendMarker(t){const e=this.get("legendDataItem");if(e){const t=e.get("marker"),i=e.get("markerRectangle");i&&i.setPrivate("visible",!1),t.set("background",g.A.new(t._root,{fillOpacity:0,fill:(0,l.$_)(0)}));const s=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=s;const o=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;const n=this._root.interfaceColors.get("disabled");if(s.states.create("disabled",{fill:n,stroke:n}),o.states.create("disabled",{fill:n,stroke:n}),this.bullets.length>0){const e=this.bullets.getIndex(0);if(e){const i=e(t._root,this,new d.z(this,{legend:!0},{}));if(i){const e=i.get("sprite");e instanceof a.T&&e.states.create("disabled",{fill:n,stroke:n}),e&&(e.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),t.children.push(e),e.setAll({x:t.width()/2,y:t.height()/2}),t.events.on("boundschanged",(()=>{e.setAll({x:t.width()/2,y:t.height()/2})})))}}}}}}p.className="LineSeries",p.classNames=s.o.classNames.concat([p.className])},4604:function(t,e,i){i.d(e,{o:function(){return u}});var s=i(7582),a=i(9361),o=i(3399),n=i(7144),r=i(8777),h=i(1479),l=i(5040),d=i(256),g=i(5071),c=i(7652);class u extends o.F{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(r.W.new(this._root,{})),this.axisRanges=new n.aV,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new a.z(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");const t=this.get("xAxis");t&&(this._xRenderer=t.get("renderer"));const e=this.get("yAxis");e&&(this._yRenderer=e.get("renderer")),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxisRange(t)}));else if("push"===t.type)this._processAxisRange(t.newValue);else if("setIndex"===t.type)this._processAxisRange(t.newValue);else if("insertIndex"===t.type)this._processAxisRange(t.newValue);else if("removeIndex"===t.type)this._removeAxisRange(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value)}}))),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this.onPrivate("endIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this._makeFieldNames()}_processAxisRange(t){const e=r.W.new(this._root,{});t.container=e,this.children.push(e),t.series=this;const i=t.axisDataItem;i.setRaw("isRange",!0);const s=i.component;if(s){s._processAxisRange(i,["range","series"]);const t=i.get("bullet");if(t){const e=t.get("sprite");e&&e.setPrivate("visible",!1)}const a=i.get("axisFill");a&&e.set("mask",a),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),d.each(this._dataSets,((t,e)=>{g.each(e,(t=>{t.dispose()})),e.length=0}))}_removeAxisRange(t){const e=t.axisDataItem,i=e.component;e.dispose(),g.remove(i._seriesAxisRanges,e);const s=t.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&g.each(this.valueXFields,(t=>{if(this.get(t+"Field")){this._valueXFields.push(t);let e=this.get(t+"Show");this.__valueXShowFields.push(e),-1!=e.indexOf("Working")?this._valueXShowFields.push(e.split("Working")[0]):this._valueXShowFields.push(e)}})),this.valueYFields&&g.each(this.valueYFields,(t=>{if(this.get(t+"Field")){this._valueYFields.push(t);let e=this.get(t+"Show");this.__valueYShowFields.push(e),-1!=e.indexOf("Working")?this._valueYShowFields.push(e.split("Working")[0]):this._valueYShowFields.push(e)}}))}_dispose(){super._dispose(),this._bullets={};const t=this.chart;t&&t.series.removeValue(this),g.removeFirst(this.get("xAxis").series,this),g.removeFirst(this.get("yAxis").series,this)}_min(t,e){let i=(a=e,null==(s=this.getPrivate(t))?a:null==a?s:aa?s:a);var s,a;this.setPrivate(t,i)}_shouldMakeBullet(t){const e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!e.inited||!i.inited)return!1;const a=this.get("minBulletDistance",0);if(a>0){let t=this.startIndex(),o=this.endIndex()-t;if(e==s){if(this._xRenderer.axisLength()/o
{g.each(this._valueXShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedXValue(i,t)),this._min("minX",e),this._max("maxX",e))})),g.each(this._valueYShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedYValue(i,t)),this._min("minY",e),this._max("maxY",e))})),t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)})),t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&t.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&e.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(t._groupSeriesData(this),e._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let s=this.startIndex(),a=this.endIndex(),o=this.get("minBulletDistance",0);if(o>0&&i&&(i.get("renderer").axisLength()/(a-s)>o?this._showBullets=!0:this._showBullets=!1),(this._psi!=s||this._pei!=a||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const o=this.get("vcx",1),n=this.get("vcy",1),r=this.get("stacked",!1),h=this.getPrivate("outOfSelection");if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),h)e.markDirtySelectionExtremes();else for(let t=s;t{i.open=void 0,i.close=void 0,t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)}))}_makeRangeMask(){if(this.axisRanges.length>0){let t=this._mainContainerMask;null==t&&(t=this.children.push(h.T.new(this._root,{})),this._mainContainerMask=t,t.set("draw",((e,i)=>{const s=this.parent;if(s){const t=this._root.container.width(),a=this._root.container.height();e.moveTo(-t,-a),e.lineTo(-t,2*a),e.lineTo(2*t,2*a),e.lineTo(2*t,-a),e.lineTo(-t,-a),this.axisRanges.each((t=>{const a=t.axisDataItem.get("axisFill");if(s&&a){let t=a.get("draw");t&&t(e,i)}}))}this.mainContainer._display.mask=t._display}))),t.markDirty(),t._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const t=this.chart;if(t){const e=t.series.indexOf(this);if(this._couldStackTo=[],e>0){let i;for(let s=e-1;s>=0&&(i=t.series.getIndex(s),i.get("xAxis")!==this.get("xAxis")||i.get("yAxis")!==this.get("yAxis")||i.className!==this.className||(this._couldStackTo.push(i),i.get("stacked")));s--);}this._stackDataItems()}}_unstack(){d.each(this._reallyStackedTo,((t,e)=>{delete e._stackedSeries[this.uid]})),this._reallyStackedTo={},g.each(this.dataItems,(t=>{t.setRaw("stackToItemY",void 0),t.setRaw("stackToItemX",void 0)}))}_handleRemoved(){const t=this.get("xAxis");t&&t._handleSeriesRemoved();const e=this.get("yAxis");e&&e._handleSeriesRemoved()}_stackDataItems(){const t=this.get("baseAxis"),e=this.get("xAxis"),i=this.get("yAxis");let s,a;t===e?(s="valueY",a="stackToItemY"):t===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,n=0;const r=this.get("stackToNegative");this._reallyStackedTo={},g.each(this.dataItems,(t=>{for(let e=0;e=0&&n>=0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}if(d<0&&n<0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}else if(l.isNumber(d)&&l.isNumber(n)){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}n++}))}processXSelectionDataItem(t,e,i){g.each(this.__valueXShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedXValueWorking(t,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*e))}))}processYSelectionDataItem(t,e,i){g.each(this.__valueYShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedYValueWorking(t,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*e))}))}getStackedYValueWorking(t,e){const i=t.get("stackToItemY");if(i){const t=i.component;return i.get(e,0)*t.get("vcy",1)+this.getStackedYValueWorking(i,e)}return 0}getStackedXValueWorking(t,e){const i=t.get("stackToItemX");if(i){const t=i.component;return i.get(e,0)*t.get("vcx",1)+this.getStackedXValueWorking(i,e)}return 0}getStackedYValue(t,e){const i=t.get("stackToItemY");return i?i.get(e,0)+this.getStackedYValue(i,e):0}getStackedXValue(t,e){const i=t.get("stackToItemX");return i?i.get(e,0)+this.getStackedXValue(i,e):0}createLegendMarker(t){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(t){let e=t.get("sprite");if(e){let i=e.dataItem,s=t.get("locationX",i.get("locationX",.5)),a=t.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),n=this.get("yAxis"),r=this.get("exactLocationX",!1),h=this.get("exactLocationY",!1),l=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),r),d=n.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),h),g=this.getPoint(l,d),c=i.get("left",g.x),u=i.get("right",g.x),m=i.get("top",g.y),p=i.get("bottom",g.y),_=0,x=0,v=u-c,y=p-m;if(this._shouldShowBullet(l,d)){e.setPrivate("visible",!t.getPrivate("hidden"));let o=t.get("field");const n=this.get("baseAxis"),u=this.get("xAxis"),m=this.get("yAxis");if(null!=o){let t;n==u?("value"==o?t=this._yField:"open"==o?t=this._yOpenField:"high"==o?t=this._yHighField:"low"==o&&(t=this._yLowField),t&&(d=m.getDataItemPositionY(i,t,0,this.get("vcy",1),h),g=this._yRenderer.positionToPoint(d),x=g.y,_=c+v*s)):("value"==o?t=this._xField:"open"==o?t=this._xOpenField:"high"==o?t=this._xHighField:"low"==o&&(t=this._xLowField),t&&(l=u.getDataItemPositionX(i,t,0,this.get("vcx",1),r),g=this._xRenderer.positionToPoint(l),_=g.x,x=p-y*a))}else _=c+v*s,x=p-y*a;const f=t.get("stacked");if(f){const t=this.chart;if(n==u){let i=this._bullets[l+"_"+d];if(i){let s=i.bounds(),a=e.localBounds(),o=x;x=s.top,"down"==f?x=s.bottom-a.top:"auto"==f?t&&(o{e!=this._mainDataItems&&g.each(e,(t=>{t.dispose()}))})),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){g.each(this._dataItems,(t=>{let e=t.bullets;e&&g.each(e,(t=>{if(t){let e=t.get("sprite");e&&e.setPrivate("visible",!1)}}))})),this._selectionProcessed=!1}show(t){const e=Object.create(null,{show:{get:()=>super.show}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.show.call(this,t).then((()=>{this._isShowing=!1;let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis");e!==i&&e.markDirtySelectionExtremes(),t!==i&&t.markDirtySelectionExtremes()}))),i.push(this.bulletsContainer.show(t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)}))}hide(t){const e=Object.create(null,{hide:{get:()=>super.hide}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.hide.call(this,t).then((()=>{this._isHiding=!1}))),i.push(this.bulletsContainer.hide(t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)];l.isNumber(e)||(e=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");g.each(this._valueFields,(i=>{s.push(t.animate({key:i+"Working",to:t.get(i),duration:e,easing:a}).waitForStop())})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)];let a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),l.isNumber(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),n=this.get("xAxis"),r=this.get("yAxis"),h=this.get("baseAxis"),d=this.get("stacked");if(h!==n&&h||g.each(this._valueYFields,(i=>{let a=r.getPrivate("min"),n=r.baseValue();l.isNumber(a)&&a>n&&(n=a),d&&(n=0),null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:n,duration:e,easing:o}).waitForStop())})),h===r||!h){let i=n.getPrivate("min"),a=n.baseValue();l.isNumber(i)&&i>a&&(a=i),d&&(a=0),g.each(this._valueXFields,(i=>{null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:a,duration:e,easing:o}).waitForStop())}))}yield Promise.all(s)}))}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const t=this._stackedSeries;t&&d.each(t,((t,e)=>{e._stackDirty||e._markDirtyStack()}))}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(t){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(t),this.updateLegendValue(t));const e=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(e)if(!this.isHidden()&&this.get("visible")){if(e._setDataItem(t),t){let a=this.get("locationX",0),o=this.get("locationY",1),n=t.get("locationX",a),r=t.get("locationY",o);const h=this.get("xAxis"),l=this.get("yAxis"),d=this.get("vcx",1),c=this.get("vcy",1),u=h.getDataItemPositionX(t,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*n,d,i),m=l.getDataItemPositionY(t,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*r,c,s),p=this.getPoint(u,m);let _=!0;if(g.each(this._valueFields,(e=>{null==t.get(e)&&(_=!1)})),_){const i=this.chart;i&&i.inPlot(p)?(e.label.text.markDirtyText(),e.set("tooltipTarget",this._getTooltipTarget(t)),e.set("pointTo",this._display.toGlobal({x:p.x,y:p.y}))):e._setDataItem(void 0)}else e._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const t=this.get("tooltip");return t&&t.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget")){const e=t.bullets;if(e&&e.length>0){const t=e[0].get("sprite");if(t)return t}}return this}updateLegendValue(t){const e=this.get("legendDataItem");if(e){const i=e.get("label");if(i){let e="";t?(i._setDataItem(t),e=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),e=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",e)}const s=e.get("valueLabel");if(s){let e="";t?(s._setDataItem(t),e=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),e=this.get("legendRangeValueText",s.get("text",""))),s.set("text",e)}}}_getItemReaderLabel(){let t="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}",t}getPoint(t,e){let i=this._xRenderer.positionToCoordinate(t),s=this._yRenderer.positionToCoordinate(e),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(t){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(t){return this.axisRanges.push({axisDataItem:t})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(t){const e=this.get("xAxis");if(this.get("baseAxis")==e&&e.isType("DateAxis")){const i=e.baseDuration(),s=e.getPrivate("selectionMin",e.getPrivate("min",0)),a=i*this.get("locationX",.5);let o=-1/0;for(;o{const e=this.startGrip,i=this.endGrip;let s=e.x(),a=e.y(),o=i.x(),n=i.y();const r=this.height(),h=this.width();s>o&&([s,o]=[o,s]),a>n&&([a,n]=[n,a]),"horizontal"===this.get("orientation")?(t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,r),t.lineTo(0,r),t.lineTo(0,0),t.moveTo(o,0),t.lineTo(h,0),t.lineTo(h,r),t.lineTo(o,r),t.lineTo(o,0)):(t.moveTo(0,0),t.lineTo(0,a),t.lineTo(h,a),t.lineTo(h,0),t.lineTo(0,0),t.moveTo(0,n),t.lineTo(0,r),t.lineTo(h,r),t.lineTo(h,n),t.lineTo(0,n))}))}}r.className="XYChartScrollbar",r.classNames=a.L.classNames.concat([r.className]);var h=i(3355),l=i(757),d=i(6515),g=i(7497),c=i(1926),u=i(5040),m=i(5071);class p extends g.${constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category"),super._afterNew()}_prepareAxisItems(){this.setPrivateRaw("baseInterval",this.get("baseInterval"));const t=this.get("renderer"),e=this.dataItems.length;let i=this.startIndex();i>0&&i--;let s=this.endIndex();s=o&&(g=!0):r%l.count==0&&r!=y&&(g=!0),!h&&g&&(i-.7*o0){let t=f[0].dataItem.get("index",0);m.each(f,(e=>{const i=e.dataItem,s=e.format;this._createAssets(i,[]),this._toggleDataItem(i,!0);let a=Number(i.get("category")),n=new Date(a);const r=i.get("label");r&&r.set("text",this._root.dateFormatter.format(n,s)),t++,this._prepareDataItem(i,t,o)}))}}baseDuration(){return c.getIntervalDuration(this.getPrivate("baseInterval"))}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let t=this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];return this._root.dateFormatter.format(new Date(i.get("category",0)),this.get("tooltipDateFormat",t))}}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}}p.className="CategoryDateAxis",p.classNames=g.$.classNames.concat([p.className]);var _=i(5638),x=i(8701),v=i(7261),y=i(751);class f extends v.m{constructor(){super(...arguments),this._dataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),super._afterNew()}_adjustMinMax(t,e,i,s){let a;const o=this.getDurationFormatter(),n=this.get("baseUnit");if(this.setRaw("maxPrecision",0),"millisecond"==n||"second"==n||"minute"==n||"hour"==n){i<=1&&(i=1),i=Math.round(i);let s=e-t;0===s&&(s=Math.abs(e));let o=s/i,r=[60,30,20,15,10,2,1],h=1;"hour"==n&&(r=[24,12,6,4,2,1]);for(let t of r)if(s/t>i){h=t;break}let l=Math.ceil((e-t)/h/i),d=Math.log(Math.abs(l))*Math.LOG10E,g=Math.pow(10,Math.floor(d))/10,c=l/g;l=y.closest(r,c)*g,o=h*l,a={min:t=Math.floor(t/o)*o,max:e=Math.ceil(e/o)*o,step:o}}else a=super._adjustMinMax(t,e,i,s);return this.setPrivateRaw("durationFormat",o.getFormat(a.step,a.max,n)),a}_formatText(t){return this.getDurationFormatter().format(t,this.getPrivate("durationFormat"),this.get("baseUnit"))}getTooltipText(t,e){const i=this.getDurationFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=y.round(this.positionToValue(t),a);return i.format(o,this.getPrivate("durationFormat"),this.get("baseUnit"))}}f.className="DurationAxis",f.classNames=v.m.classNames.concat([f.className]);var b=i(2586),D=i(6293),P=i(9084),w=i(4714),T=i(8943),A=i(7109),I=i(6275),M=i(6284),k=i(7909),C=i(4604),S=i(2976),Y=i(2312);class F extends S.j{_draw(){const t=this._display;t.moveTo(this.get("lowX1",0),this.get("lowY1",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0));let e=this.width(),i=this.height();if("vertical"==this.get("orientation")){let s=i,a=0;t.moveTo(0,s),t.lineTo(e/2,s),t.moveTo(e/2,a),t.lineTo(e,a)}else{let s=0,a=e;t.moveTo(s,0),t.lineTo(s,i/2),t.moveTo(a,i/2),t.lineTo(a,i)}}}F.className="OHLC",F.classNames=S.j.classNames.concat([F.className]);var X=i(5769),L=i(7144);class N extends Y.${constructor(){super(...arguments),this.columns=this.addDisposer(new L.o(X.YS.new({themeTags:["autocolor"]}),(()=>F._new(this._root,{themeTags:n.mergeTags(this.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=this.mainContainer.children.push(e.make());return i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new L.o(X.YS.new({}),(()=>F._new(this._root,{themeTags:n.mergeTags(t.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template,t.columns.template])))}}N.className="OHLCSeries",N.classNames=Y.$.classNames.concat([N.className]);var R=i(62),V=i(2338),G=i(5892);class O extends V.e{_afterNew(){this._setDefault("curveFactory",(0,G.$)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,G.$)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}O.className="SmoothedYLineSeries",O.classNames=V.e.classNames.concat([O.className]);var E=i(8289);class z extends V.e{_afterNew(){this._setDefault("curveFactory",(0,E.G)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,E.G)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}z.className="SmoothedXLineSeries",z.classNames=V.e.classNames.concat([z.className]);var U=i(2818);class W extends V.e{_afterNew(){this._setDefault("curveFactory",U.ZP.tension(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",U.ZP.tension(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}W.className="SmoothedXYLineSeries",W.classNames=V.e.classNames.concat([W.className]);var B=i(6245);function H(t,e){this._context=t,this._t=e}function Z(t){return new H(t,1)}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}};class Q extends V.e{_afterNew(){this._setDefault("curveFactory",Z),super._afterNew()}_getPoints(t,e){let i=e.points,s=this.get("stepWidth",B.AQ).value/2,a=t.get("locationX",e.locationX),o=t.get("locationY",e.locationY),n=a,r=o;e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s);let h=e.xAxis.getDataItemPositionX(t,e.xField,a,e.vcx),l=e.yAxis.getDataItemPositionY(t,e.yField,o,e.vcy),d=e.xAxis.getDataItemPositionX(t,e.xField,n,e.vcx),g=e.yAxis.getDataItemPositionY(t,e.yField,r,e.vcy);if(this._shouldInclude(h)){const c=this.getPoint(h,l),u=[c.x,c.y],m=this.getPoint(d,g),p=[m.x,m.y];if(e.fillVisible){let i=h,c=l,m=d,_=g;if(e.baseAxis===e.xAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(i=e.basePosX,m=e.basePosX),e.getOpen){let h=t.get(e.xOpenField),l=t.get(e.yOpenField);if(null!=h&&null!=l)if(a=t.get("openLocationX",e.openLocationX),o=t.get("openLocationY",e.openLocationY),n=a,r=o,e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s),e.stacked){let s=t.get("stackToItemX"),h=t.get("stackToItemY");s?(i=e.xAxis.getDataItemPositionX(s,e.xField,a,s.component.get("vcx")),m=e.xAxis.getDataItemPositionX(s,e.xField,n,s.component.get("vcx"))):e.yAxis===e.baseAxis?(i=e.basePosX,m=e.basePosX):e.baseAxis===e.yAxis&&(i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx)),h?(c=e.yAxis.getDataItemPositionY(h,e.yField,o,h.component.get("vcy")),_=e.yAxis.getDataItemPositionY(h,e.yField,r,h.component.get("vcy"))):e.xAxis===e.baseAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy))}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy)}let x=this.getPoint(i,c),v=this.getPoint(m,_);u[2]=x.x,u[3]=x.y,p[2]=v.x,p[3]=v.y}i.push(u),i.push(p),t.set("point",{x:u[0]+(p[0]-u[0])/2,y:u[1]+(p[1]-u[1])/2})}this.get("noRisers")&&(e.points=[],e.segments.push(i))}}Q.className="StepLineSeries",Q.classNames=V.e.classNames.concat([Q.className]);var j=i(55)},7825:function(t,e,i){i.r(e),i.d(e,{am5xy:function(){return s}});const s=i(778)},2818:function(t,e,i){function s(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function a(t,e){this._context=t,this._k=(1-e)/6}i.d(e,{xm:function(){return s}}),a.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:s(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:s(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.ZP=function t(e){function i(t){return new a(t,e)}return i.tension=function(e){return t(+e)},i}(0)}},function(t){var e=(7825,t(t.s=7825)),i=window;for(var s in e)i[s]=e[s];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=xy.js.map diff --git a/web/amCharts/scatter/chart_0064_scatter.inline03.js b/web/amCharts/scatter/chart_0064_scatter.inline03.js new file mode 100644 index 0000000000000000000000000000000000000000..5e5db22316843633ecb3c3ab6997428d6b3ac5df --- /dev/null +++ b/web/amCharts/scatter/chart_0064_scatter.inline03.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[2076],{2536:function(t,e,s){s.r(e),s.d(e,{DefaultTheme:function(){return h},FunnelSeries:function(){return L},FunnelSlice:function(){return D},PercentChart:function(){return o},PercentSeries:function(){return m},PictorialStackedSeries:function(){return S},PieChart:function(){return b},PieSeries:function(){return C},PyramidSeries:function(){return I},SlicedChart:function(){return N}});var i=s(5829),a=s(3409),l=s(6245),n=s(2754),r=s(3783);class h extends a.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.interfaceColors,e=this.rule.bind(this);e("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:n.U.new(this._root,{}),width:l.AQ,height:l.AQ}),e("PieChart").setAll({radius:(0,l.aQ)(80),startAngle:-90,endAngle:270}),e("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),e("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),e("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}",strokeWidth:1,strokeOpacity:1,role:"figure",lineJoin:"round"}),e("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),e("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),e("Slice",["pie"]).states.create("hover",{scale:1.04}),e("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),e("Tick",["pie"]).setAll({location:1}),e("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),e("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),e("FunnelSlice").setAll({interactive:!0,expandDistance:0}),e("FunnelSlice").states.create("hover",{expandDistance:.15}),e("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:l.CI}),e("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:l.CI,rotation:-90}),e("Label",["funnel","vertical"]).setAll({centerY:l.CI,centerX:0}),e("Tick",["funnel"]).setAll({location:1}),e("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),e("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),e("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),e("PyramidSeries").setAll({valueIs:"area"}),e("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),e("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),e("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),e("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),e("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),e("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:l.CI}),e("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:l.CI,rotation:-90}),e("Label",["pyramid","vertical"]).setAll({centerY:l.CI,centerX:0}),e("Tick",["pyramid"]).setAll({location:1}),e("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),e("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:l.CI}),e("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:l.CI,rotation:-90}),e("Label",["pictorial","vertical"]).setAll({centerY:l.CI,centerX:0}),e("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),e("Tick",["pictorial"]).setAll({location:.5});{const s=e("Graphics",["pictorial","background"]);s.setAll({fillOpacity:.2}),(0,r.v)(s,"fill",t,"alternativeBackground")}}}class o extends i.j{_afterNew(){this._defaultThemes.push(h.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(t){super._processSeries(t),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}}o.className="PercentChart",o.classNames=i.j.classNames.concat([o.className]);var c=s(7582),u=s(3399),d=s(8777),g=s(1479),p=s(5071),_=s(5040);class m extends u.F{constructor(){super(...arguments),this.slicesContainer=this.children.push(d.W.new(this._root,{position:"absolute",isMeasured:!1})),this.labelsContainer=this.children.push(d.W.new(this._root,{position:"absolute",isMeasured:!1})),this.ticksContainer=this.children.push(d.W.new(this._root,{position:"absolute",isMeasured:!1})),this._lLabels=[],this._rLabels=[],this._hLabels=[],this.slices=this.addDisposer(this._makeSlices()),this.labels=this.addDisposer(this._makeLabels()),this.ticks=this.addDisposer(this._makeTicks())}_applyThemes(t=!1){const e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}makeSlice(t){const e=this.slicesContainer.children.push(this.slices.make());return e.on("fill",(()=>{this.updateLegendMarker(t)})),e.on("fillPattern",(()=>{this.updateLegendMarker(t)})),e.on("stroke",(()=>{this.updateLegendMarker(t)})),e._setDataItem(t),t.set("slice",e),this.slices.push(e),e}makeLabel(t){const e=this.labelsContainer.children.push(this.labels.make());return e._setDataItem(t),t.set("label",e),this.labels.push(e),e}_shouldMakeBullet(t){return null!=t.get("value")}makeTick(t){const e=this.ticksContainer.children.push(this.ticks.make());return e._setDataItem(t),t.set("tick",e),this.ticks.push(e),e}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_onDataClear(){const t=this.get("colors");t&&t.reset();const e=this.get("patterns");e&&e.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let t=0,e=0,s=0,i=1/0,a=0;p.each(this._dataItems,(s=>{let i=s.get("valueWorking",0);t+=i,e+=Math.abs(i)})),p.each(this._dataItems,(t=>{let l=t.get("valueWorking",0);l>s&&(s=l),lsuper.show}});return(0,c.mG)(this,void 0,void 0,(function*(){let s=[];s.push(e.show.call(this,t)),s.push(this._sequencedShowHide(!0,t)),yield Promise.all(s)}))}hide(t){const e=Object.create(null,{hide:{get:()=>super.hide}});return(0,c.mG)(this,void 0,void 0,(function*(){let s=[];s.push(e.hide.call(this,t)),s.push(this._sequencedShowHide(!1,t)),yield Promise.all(s)}))}_updateChildren(){super._updateChildren(),this._valuesDirty&&p.each(this._dataItems,(t=>{t.get("label").text.markDirtyText()})),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&p.each(this._dataItems,(t=>{this.updateLegendValue(t)})),this._arrange()}_arrange(){this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),p.each(this.dataItems,(t=>{this._updateTick(t)}))}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(t){if(super.processDataItem(t),null==t.get("fill")){let e=this.get("colors");e&&t.setRaw("fill",e.next())}if(null==t.get("fillPattern")){let e=this.get("patterns");e&&t.setRaw("fillPattern",e.next())}}showDataItem(t,e){const s=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,c.mG)(this,void 0,void 0,(function*(){const i=[s.showDataItem.call(this,t,e)];_.isNumber(e)||(e=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");let l=t.get("value");const n=t.animate({key:"valueWorking",to:l,duration:e,easing:a});n&&i.push(n.waitForStop());const r=t.get("tick");r&&i.push(r.show(e));const h=t.get("label");h&&i.push(h.show(e));const o=t.get("slice");o&&i.push(o.show(e)),o.get("active")&&o.states.applyAnimate("active"),yield Promise.all(i)}))}hideDataItem(t,e){const s=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,c.mG)(this,void 0,void 0,(function*(){const i=[s.hideDataItem.call(this,t,e)],a=this.states.create("hidden",{});_.isNumber(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const l=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),n=t.animate({key:"valueWorking",to:0,duration:e,easing:l});n&&i.push(n.waitForStop());const r=t.get("tick");r&&i.push(r.hide(e));const h=t.get("label");h&&i.push(h.hide(e));const o=t.get("slice");o.hideTooltip(),o&&i.push(o.hide(e)),yield Promise.all(i)}))}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("label");e&&(this.labels.removeValue(e),e.dispose());let s=t.get("tick");s&&(this.ticks.removeValue(s),s.dispose());let i=t.get("slice");i&&(this.slices.removeValue(i),i.dispose())}hoverDataItem(t){const e=t.get("slice");e&&!e.isHidden()&&e.hover()}unhoverDataItem(t){const e=t.get("slice");e&&e.unhover()}updateLegendMarker(t){if(t){const e=t.get("slice");if(e){const s=t.get("legendDataItem");if(s){const t=s.get("markerRectangle");p.each(g.u,(s=>{null!=e.get(s)&&t.set(s,e.get(s))}))}}}}_arrangeDown(t){if(t){let e=this._getNextDown();t.sort(((t,e)=>t.y>e.y?1:t.y{const s=t.label.adjustedLocalBounds();let i=s.top;t.y+it.ye.y?-1:0)),p.each(t,(t=>{const s=t.label.adjustedLocalBounds();let i=s.bottom;t.y+i>e&&(t.y=e-i),t.label.set("y",t.y),e=t.y+s.top}))}}_arrangeRight(t){if(t){let e=0;t.sort(((t,e)=>t.y>e.y?1:t.y{const s=t.label.adjustedLocalBounds();let i=s.left;t.y+it.ye.y?-1:0)),p.each(t,(t=>{const s=t.label.adjustedLocalBounds();let i=s.right;t.y+i>e&&(t.y=e-i),t.label.set("x",t.y),e=t.y+s.left}))}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(t){}_dispose(){super._dispose();const t=this.chart;t&&t.series.removeValue(this)}}m.className="PercentSeries",m.classNames=u.F.classNames.concat([m.className]);var y=s(7652),x=s(751);class b extends o{constructor(){super(...arguments),this._maxRadius=1}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:l.CI,y:l.CI})}_prepareChildren(){super._prepareChildren();const t=this.chartContainer,e=t.innerWidth(),s=t.innerHeight(),i=this.get("startAngle",0),a=this.get("endAngle",0),n=this.get("innerRadius");let r=x.getArcBounds(0,0,i,a,1);const h=e/(r.right-r.left),o=s/(r.bottom-r.top);let c={left:0,right:0,top:0,bottom:0};if(n instanceof l.gG){let t=n.value,l=Math.min(h,o);t=Math.max(l*t,l-Math.min(s,e))/l,c=x.getArcBounds(0,0,i,a,t),this.setPrivateRaw("irModifyer",t/n.value)}r=x.mergeBounds([r,c]);const u=this._maxRadius;this._maxRadius=Math.min(h,o);const d=y.relativeToValue(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-d*(r.bottom+r.top)/2,dx:-d*(r.right+r.left)/2}),(this.isDirty("startAngle")||this.isDirty("endAngle")||u!=this._maxRadius)&&this.series.each((t=>{t._markDirtyKey("startAngle")})),(this.isDirty("innerRadius")||this.isDirty("radius"))&&this.series.each((t=>{t._markDirtyKey("innerRadius")}))}radius(t){let e=y.relativeToValue(this.get("radius",0),this._maxRadius),s=y.relativeToValue(this.get("innerRadius",0),e);if(t){let i=this.series.indexOf(t),a=this.series.length,l=t.get("radius");return null!=l?s+y.relativeToValue(l,e-s):s+(e-s)/a*(i+1)}return e}innerRadius(t){const e=this.radius();let s=y.relativeToValue(this.get("innerRadius",0),e);if(s<0&&(s=e+s),t){let i=this.series.indexOf(t),a=this.series.length,l=t.get("innerRadius");return null!=l?s+y.relativeToValue(l,e-s):s+(e-s)/a*i}return s}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}}b.className="PieChart",b.classNames=o.classNames.concat([b.className]);var v=s(5769),f=s(5863),k=s(2438),T=s(815),w=s(7144);class C extends m{_makeSlices(){return new w.o(v.YS.new({}),(()=>f.p._new(this._root,{themeTags:y.mergeTags(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template])))}_makeLabels(){return new w.o(v.YS.new({}),(()=>T.x._new(this._root,{themeTags:y.mergeTags(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template])))}_makeTicks(){return new w.o(v.YS.new({}),(()=>k.d._new(this._root,{themeTags:y.mergeTags(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template])))}processDataItem(t){super.processDataItem(t);const e=this.makeSlice(t);e.on("scale",(()=>{this._updateTick(t)})),e.on("shiftRadius",(()=>{this._updateTick(t)})),e.events.on("positionchanged",(()=>{this._updateTick(t)}));const s=this.makeLabel(t);s.events.on("positionchanged",(()=>{this._updateTick(t)})),this.makeTick(t),e.events.on("positionchanged",(()=>{s.markDirty()}))}_getNextUp(){const t=this.chart;return t?t._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){const t=this.chart;return t?-t._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();const t=this.chart;if(t){if(this.isDirty("alignLabels")){let t=this.labels.template;if(this.get("alignLabels"))t.set("textType","aligned");else{let e=t.get("textType");null!=e&&"aligned"!=e||t.set("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();const e=this.get("startAngle",t.get("startAngle",-90)),s=this.get("endAngle",t.get("endAngle",270))-e;let i=e;const a=t.radius(this);this.setPrivateRaw("radius",a);let n=t.innerRadius(this)*t.getPrivate("irModifyer",1);n<0&&(n=a+n),p.each(this._dataItems,(t=>{this.updateLegendValue(t);let e=s*t.get("valuePercentTotal")/100;const r=t.get("slice");if(r){r.set("radius",a),r.set("innerRadius",n),r.set("startAngle",i),r.set("arc",e);const s=t.get("fill");r._setDefault("fill",s),r._setDefault("stroke",s);const l=t.get("fillPattern");r._setDefault("fillPattern",l)}let h=x.normalizeAngle(i+e/2);const o=t.get("label");if(o&&(o.setPrivate("radius",a),o.setPrivate("innerRadius",n),o.set("labelAngle",h),"aligned"==o.get("textType"))){let t=a+o.get("radius",0),e=a*x.sin(h);h>90&&h<=270?(o.isHidden()||o.isHiding()||this._lLabels.push({label:o,y:e}),t*=-1,t-=this.labelsContainer.get("paddingLeft",0),o.set("centerX",l.AQ),o.setPrivateRaw("left",!0)):(o.isHidden()||o.isHiding()||this._rLabels.push({label:o,y:e}),t+=this.labelsContainer.get("paddingRight",0),o.set("centerX",0),o.setPrivateRaw("left",!1)),o.set("x",t),o.set("y",a*x.sin(h))}i+=e,this._updateTick(t)}))}}}_updateTick(t){const e=t.get("tick"),s=t.get("label"),i=t.get("slice"),a=e.get("location",1);if(e&&s&&i){const t=(i.get("shiftRadius",0)+i.get("radius",0))*i.get("scale",1)*a,l=s.get("labelAngle",0),n=x.cos(l),r=x.sin(l),h=this.labelsContainer,o=h.get("paddingLeft",0),c=h.get("paddingRight",0);let u=0,d=0;u=s.x(),d=s.y();let g=[];if(0!=u||0!=d){if("circular"==s.get("textType")){const t=s.radius()-s.get("paddingBottom",0),e=s.get("labelAngle",0);u=t*x.cos(e),d=t*x.sin(e)}let e=-c;s.getPrivate("left")&&(e=o),g=[{x:i.x()+t*n,y:i.y()+t*r},{x:u+e,y:d},{x:u,y:d}]}e.set("points",g)}}_positionBullet(t){const e=t.get("sprite");if(e){const s=e.dataItem.get("slice");if(s){const i=s.get("innerRadius",0),a=s.get("radius",0),l=s.get("startAngle",0)+s.get("arc",0)*t.get("locationX",.5),n=i+(a-i)*t.get("locationY",.5);e.setAll({x:x.cos(l)*n,y:x.sin(l)*n})}}}}C.className="PieSeries",C.classNames=m.classNames.concat([C.className]);class D extends g.T{constructor(){super(...arguments),this._projectionDirty=!1,this._tlx=0,this._tly=0,this._trx=0,this._try=0,this._blx=0,this._bly=0,this._brx=0,this._bry=0,this._cprx=0,this._cplx=0,this._cpry=0,this._cply=0}_afterNew(){super._afterNew(),this.set("draw",(t=>{const e=this.width(),s=this.height();let i=Math.min(e,s)/2,a=y.relativeToValue(this.get("cornerRadiusTL",0),i),l=y.relativeToValue(this.get("cornerRadiusTR",0),i),n=y.relativeToValue(this.get("cornerRadiusBR",0),i),r=y.relativeToValue(this.get("cornerRadiusBL",0),i),h=this._trx,o=this._try,c=this._tlx,u=this._tly,d=this._brx,g=this._bry,p=this._blx,_=this._bly;o==u&&(o-=.01),g==_&&(g-=.01);let m=x.getAngle({x:c,y:u},{x:h,y:o}),b=x.getAngle({x:h,y:o},{x:d,y:g}),v=x.getAngle({x:d,y:g},{x:p,y:_}),f=x.getAngle({x:p,y:_},{x:c,y:u});"horizontal"==this.get("orientation")?(a=Math.min(a,Math.abs(u-o)/2),l=Math.min(l,Math.abs(u-o)/2),n=Math.min(n,Math.abs(_-g)/2),r=Math.min(r,Math.abs(_-g)/2)):(a=Math.min(a,Math.abs(c-h)/2),l=Math.min(l,Math.abs(c-h)/2),n=Math.min(n,Math.abs(p-d)/2),r=Math.min(r,Math.abs(p-d)/2));const k=c-a*x.tan((m-f)/2)*x.cos(f),T=u-a*x.tan((m-f)/2)*x.sin(f),w=c-a*x.tan((f-m)/2)*x.cos(m),C=u-a*x.tan((f-m)/2)*x.sin(m),D=h-l*x.tan((b-m)/2)*x.cos(m),A=o-l*x.tan((b-m)/2)*x.sin(m),L=h-l*x.tan((m-b)/2)*x.cos(b),I=o-l*x.tan((m-b)/2)*x.sin(b),S=d-n*x.tan((v-b)/2)*x.cos(b),N=g-n*x.tan((v-b)/2)*x.sin(b),P=d-n*x.tan((b-v)/2)*x.cos(v),M=g-n*x.tan((b-v)/2)*x.sin(v),R=p-r*x.tan((f-v)/2)*x.cos(v),W=_-r*x.tan((f-v)/2)*x.sin(v),V=p-r*x.tan((v-f)/2)*x.cos(f),z=_-r*x.tan((v-f)/2)*x.sin(f);t.moveTo(w,C),t.lineTo(D,A),t.arcTo(h,o,L,I,l),t.quadraticCurveTo(this._cprx,this._cpry,S,N),t.arcTo(d,g,P,M,n),t.lineTo(R,W),t.arcTo(p,_,V,z,r),t.quadraticCurveTo(this._cplx,this._cply,k,T),t.arcTo(c,u,w,C,a)}))}getPoint(t,e){let s=this.width(),i=this.height();const a=this.get("topWidth",0),l=this.get("bottomWidth",0);if("vertical"==this.get("orientation")){let s=-a/2,n=a/2,r=s+(-l/2-s)*e;return{x:r+(n+(l/2-n)*e-r)*t,y:i*e}}{let i=-a/2,n=a/2,r=i+(-l/2-i)*t;return{x:s*t,y:r+(n+(l/2-n)*t-r)*e}}}_changed(){if(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("expandDistance")||this.isDirty("orientation")||this.isDirty("width")||this.isDirty("height")){const t=this.width(),e=this.height(),s=this.get("topWidth",0),i=this.get("bottomWidth",0);this._clear=!0;let a=this.get("expandDistance",0);"vertical"==this.get("orientation")?(this._tlx=-s/2,this._tly=0,this._trx=s/2,this._try=0,this._brx=i/2,this._bry=e,this._blx=-i/2,this._bly=e,this._cprx=this._trx+(this._brx-this._trx)/2+a*e,this._cpry=this._try+.5*e,this._cplx=this._tlx+(this._blx-this._tlx)/2-a*e,this._cply=this._tly+.5*e):(this._tly=s/2,this._tlx=0,this._try=-s/2,this._trx=0,this._bry=-i/2,this._brx=t,this._bly=i/2,this._blx=t,this._cpry=this._try+(this._bry-this._try)/2-a*t,this._cprx=this._trx+.5*t,this._cply=this._tly+(this._bly-this._tly)/2+a*t,this._cplx=this._tlx+.5*t)}super._changed()}}D.className="FunnelSlice",D.classNames=g.T.classNames.concat([D.className]);var A=s(962);class L extends m{constructor(){super(...arguments),this._tag="funnel",this.links=this.addDisposer(this._makeLinks()),this._total=0,this._count=0,this._nextCoord=0,this._opposite=!1}_makeSlices(){return new w.o(v.YS.new({}),(()=>D._new(this._root,{themeTags:y.mergeTags(this.slices.template.get("themeTags",[]),[this._tag,"series","slice",this.get("orientation")])},[this.slices.template])))}_makeLabels(){return new w.o(v.YS.new({}),(()=>A._._new(this._root,{themeTags:y.mergeTags(this.labels.template.get("themeTags",[]),[this._tag,"series","label",this.get("orientation")])},[this.labels.template])))}_makeTicks(){return new w.o(v.YS.new({}),(()=>k.d._new(this._root,{themeTags:y.mergeTags(this.ticks.template.get("themeTags",[]),[this._tag,"series","tick",this.get("orientation")])},[this.ticks.template])))}_makeLinks(){return new w.o(v.YS.new({}),(()=>D._new(this._root,{themeTags:y.mergeTags(this.links.template.get("themeTags",[]),[this._tag,"series","link",this.get("orientation")])},[this.links.template])))}makeLink(t){const e=this.slicesContainer.children.push(this.links.make());return e._setDataItem(t),t.set("link",e),this.links.push(e),e}_afterNew(){super._afterNew();const t=this.slicesContainer;t.setAll({isMeasured:!0,position:"relative",width:(0,l.aQ)(100),height:(0,l.aQ)(100)}),t.onPrivate("width",(()=>{this.markDirtySize()})),t.onPrivate("height",(()=>{this.markDirtySize()})),"vertical"==this.get("orientation")?this.set("layout",this._root.horizontalLayout):this.set("layout",this._root.verticalLayout)}processDataItem(t){super.processDataItem(t);const e=this.makeSlice(t);e._setDataItem(t),t.set("slice",e),this.makeLink(t);const s=this.makeLabel(t);s.on("x",(()=>{this._updateTick(t)})),s.on("y",(()=>{this._updateTick(t)})),this.makeTick(t),e.events.on("positionchanged",(()=>{s.markDirty()})),e.events.on("boundschanged",(()=>{const t=e.dataItem;t&&this._updateTick(t)}))}_updateChildren(){this._opposite=!1,0==this.children.indexOf(this.labelsContainer)&&(this._opposite=!0);let t=0,e=0;if(p.each(this.dataItems,(s=>{const i=s.get("value");_.isNumber(i)&&(e++,i>0?t+=Math.abs(s.get("valueWorking",i)/i):this.get("ignoreZeroValues",!1)||s.isHidden()?e--:t+=1)})),this._total=1/e*t,this._count=e,this.isDirty("alignLabels")&&this._fixLayout(),this._total>0&&(this._valuesDirty||this._sizeDirty)){const t=this.slicesContainer;let e;e="vertical"==this.get("orientation")?t.innerHeight():t.innerWidth(),this._nextCoord=this.get("startLocation",0)*e,this.markDirtyBounds();let s=0;p.each(this._dataItems,(t=>{this.updateLegendValue(t),t.set("index",s),s++;const e=t.get("slice"),i=t.get("tick"),a=t.get("label"),l=t.get("link"),n=t.get("fill"),r=t.get("fillPattern");e._setDefault("fill",n),e._setDefault("stroke",n),e._setDefault("fillPattern",r),l._setDefault("fill",n),l._setDefault("stroke",n);const h=t.get("value");_.isNumber(h)&&(0==h&&this.get("ignoreZeroValues")?(e.setPrivate("visible",!1),i.setPrivate("visible",!1),a.setPrivate("visible",!1)):(e.setPrivate("visible",!0),i.setPrivate("visible",!0),a.setPrivate("visible",!0),this.decorateSlice(t),this.isLast(t)?l.setPrivate("visible",!1):t.isHidden()||l.setPrivate("visible",!0)))}))}super._updateChildren()}_fixLayout(){const t=this.get("orientation"),e=this.labelsContainer,s=this.labels.template;this.get("alignLabels")?(e.set("position","relative"),e.setAll({isMeasured:!0}),"vertical"==t?(this.set("layout",this._root.horizontalLayout),s.setAll({centerX:l.AQ,x:l.AQ})):(this.set("layout",this._root.verticalLayout),s.setAll({centerX:0,x:0}))):(e.setAll({isMeasured:!1,position:"absolute"}),"vertical"==t?(e.setAll({x:l.CI}),s.setAll({centerX:l.CI,x:0})):(e.setAll({y:l.CI}),s.setAll({centerX:l.CI,y:0}))),this.markDirtySize()}getNextValue(t){let e=t.get("index"),s=t.get("valueWorking",0);if(esuper.hideDataItem}});return(0,c.mG)(this,void 0,void 0,(function*(){return t.get("link").hide(e),s.hideDataItem.call(this,t,e)}))}showDataItem(t,e){const s=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,c.mG)(this,void 0,void 0,(function*(){return t.get("link").show(e),s.showDataItem.call(this,t,e)}))}_updateTick(t){if(this.get("alignLabels")){const e=t.get("tick"),s=t.get("label"),i=t.get("slice");if(e&&i&&s){const t=this.labelsContainer,a=this.slicesContainer;let l=e.get("location",.5);const n=t.width(),r=t.height(),h=t.get("paddingLeft",0),o=t.get("paddingRight",0),c=t.get("paddingTop",0),u=t.get("paddingBottom",0);let d={x:0,y:0},g={x:0,y:0},p={x:0,y:0};this._opposite&&(l=1-l),"vertical"==this.get("orientation")?(d=i.getPoint(l,.5),d.x+=i.x()+a.x(),d.y+=i.y()+a.y(),this._opposite?(g.x=n,g.y=s.y(),p.x=n-h,p.y=g.y):(g.x=a.x()+a.width(),g.y=s.y(),p.x=g.x+n-s.width()-o,p.y=g.y)):(d=i.getPoint(.5,l),d.x+=i.x()+a.x(),d.y+=i.y()+a.y(),this._opposite?(g.y=r,g.x=s.x(),p.y=r-c,p.x=g.x):(g.y=a.y()+a.height(),g.x=s.x(),p.y=g.y+r-s.height()-u,p.x=g.x)),e.set("points",[d,g,p])}}}disposeDataItem(t){super.disposeDataItem(t);let e=t.get("link");e&&(this.links.removeValue(e),e.dispose())}_positionBullet(t){const e=t.get("sprite");if(e){const s=e.dataItem.get("slice");if(s){const i=s.width(),a=s.height(),l=t.get("locationX",.5),n=t.get("locationY",.5);let r=0,h=0;"horizontal"==this.get("orientation")?h=a/2:r=i/2,e.setAll({x:s.x()+i*l-r,y:s.y()-h+a*n})}}}}L.className="FunnelSeries",L.classNames=m.classNames.concat([L.className]);class I extends L{constructor(){super(...arguments),this._tag="pyramid"}_prepareChildren(){super._prepareChildren(),this._nextSize=void 0}decorateSlice(t){const e=this.get("orientation"),s=this.slicesContainer,i=t.get("slice"),a=t.get("label"),n=t.get("link"),r=this.get("valueIs","area"),h=this.getPrivate("valueAbsoluteSum",0);if(0==h)return;const o=this.get("startLocation",0),c=this.get("endLocation",1),u=this.get("topWidth",0),d=this.get("bottomWidth",l.AQ),g=Math.abs(t.get("valueWorking",0)),p=t.get("value",0);let m,x,b=s.innerHeight(),v=s.innerWidth(),f=n.width(),k=n.height();"horizontal"==e&&([v,b]=[b,v],[f,k]=[k,f]);const T=v/2;let w=1;0!=p?w=g/Math.abs(p):t.isHidden()&&(w=1e-6),k*=w,b=b*(c-o)-k*(this._count*this._total-1);let C=y.relativeToValue(u,v);_.isNumber(this._nextSize)||(this._nextSize=C);let D=y.relativeToValue(d,v),A=this._nextSize,L=Math.atan2(b,C-D),I=Math.tan(Math.PI/2-L);if(0==I&&(I=1e-8),"area"==r){let t=(C+D)/2*b*g/h,e=Math.abs(A*A-2*t*I);m=(A-Math.sqrt(e))/I,x=m>0?(2*t-m*A)/m:A}else m=b*g/h,x=A-m*I;let S=this._nextCoord+m/2,N=T,P=this._nextCoord,M=T,R=P+m;"vertical"==e?(a.set("y",S),a.get("opacity")>0&&this._rLabels.push({label:a,y:S}),i.set("height",m)):(a.set("x",S),a.get("opacity")>0&&this._hLabels.push({label:a,y:S}),[N,P]=[P,N],[M,R]=[R,M],i.set("width",m)),i.setAll({orientation:e,bottomWidth:x,topWidth:A,x:N,y:P}),n.setAll({orientation:e,x:M,y:R,topWidth:x,bottomWidth:x}),this._nextSize=x,this._nextCoord+=m+k}}I.className="PyramidSeries",I.classNames=L.classNames.concat([I.className]);class S extends I{constructor(){super(...arguments),this._tag="pictorial",this.seriesMask=g.T.new(this._root,{position:"absolute",x:l.CI,y:l.CI,centerX:l.CI,centerY:l.CI}),this.seriesGraphics=this.slicesContainer.children.push(g.T.new(this._root,{themeTags:["pictorial","background"],position:"absolute",x:l.CI,y:l.CI,centerX:l.CI,centerY:l.CI}))}_afterNew(){super._afterNew(),this.set("topWidth",l.AQ),this.set("bottomWidth",l.AQ),this.set("valueIs","height"),this.slicesContainer.set("mask",this.seriesMask)}_updateScale(){let t=this.slicesContainer,e=t.innerWidth(),s=t.innerHeight(),i=this.seriesMask,a=this.seriesGraphics,l=i.get("scale",1);const n=i.localBounds();let r=n.right-n.left,h=n.bottom-n.top;l="horizontal"==this.get("orientation")?e/r:s/h,l!=1/0&&NaN!=l&&(i.set("scale",l),i.set("x",e/2),i.set("y",s/2),a.set("scale",l),a.set("x",e/2),a.set("y",s/2))}_prepareChildren(){if(super._prepareChildren(),this.isDirty("svgPath")){const t=this.get("svgPath");this.seriesMask.set("svgPath",t),this.seriesGraphics.set("svgPath",t)}this._updateScale()}}S.className="PictorialStackedSeries",S.classNames=I.classNames.concat([S.className]);class N extends o{_afterNew(){super._afterNew(),this.seriesContainer.setAll({isMeasured:!0,layout:this._root.horizontalLayout})}}N.className="SlicedChart",N.classNames=o.classNames.concat([N.className])},8685:function(t,e,s){s.r(e),s.d(e,{am5percent:function(){return i}});const i=s(2536)}},function(t){var e=(8685,t(t.s=8685)),s=window;for(var i in e)s[i]=e[i];e.__esModule&&Object.defineProperty(s,"__esModule",{value:!0})}]); +//# sourceMappingURL=percent.js.map diff --git a/web/amCharts/scatter/chart_0064_scatter.inline04.js b/web/amCharts/scatter/chart_0064_scatter.inline04.js new file mode 100644 index 0000000000000000000000000000000000000000..c27a274e7972e9ecbd57d20b441e60fc864ffc7d --- /dev/null +++ b/web/amCharts/scatter/chart_0064_scatter.inline04.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=Animated.js.map diff --git a/web/amCharts/scatter/chart_0065_scatter.html b/web/amCharts/scatter/chart_0065_scatter.html new file mode 100644 index 0000000000000000000000000000000000000000..206020869efd9ba73dd6c632d6f978aa1bfc0e69 --- /dev/null +++ b/web/amCharts/scatter/chart_0065_scatter.html @@ -0,0 +1,219 @@ + + + + + + Beeswarm + + + +
+ + + + + + + diff --git a/web/amCharts/scatter/chart_0065_scatter.inline01.js b/web/amCharts/scatter/chart_0065_scatter.inline01.js new file mode 100644 index 0000000000000000000000000000000000000000..3fe3e3caca2e468e70f044c7aaeaa49dfcb8d974 --- /dev/null +++ b/web/amCharts/scatter/chart_0065_scatter.inline01.js @@ -0,0 +1,2 @@ +!function(){var t,e,i,s,n,r={3145:function(t,e,i){"use strict";i.d(e,{UZ:function(){return r},cP:function(){return n},f_:function(){return o},i_:function(){return s}});const s=new class{constructor(){this.version="5.16.0",this.licenses=[],this.entitiesById={},this.rootElements=[],this.autoDispose=!1}};function n(t){s.licenses.push(t)}function r(){let t;for(;t=s.rootElements.pop();)t.dispose()}function o(t){let e;return s.rootElements.forEach((i=>{i.dom.id==t&&(e=i)})),e}},2855:function(t,e,i){"use strict";i.d(e,{f:function(){return F}});var s=i(6490),n=i(8777),r=i(2036),o=i(4431),a=i(1706),h=i(6881),l=i(7449),c=i(5071),u=i(7652);class d{constructor(){this._targets=[],this._observer=new ResizeObserver((t=>{c.each(t,(t=>{c.each(this._targets,(e=>{e.target===t.target&&e.callback()}))}))}))}addTarget(t,e){this._observer.observe(t,{box:"border-box"}),this._targets.push({target:t,callback:e})}removeTarget(t){this._observer.unobserve(t),c.keepIf(this._targets,(e=>e.target!==t))}}class p{constructor(){this._timer=null,this._targets=[]}addTarget(t,e){if(null===this._timer){let t=null;const e=()=>{const i=Date.now();(null===t||i>t+p.delay)&&(t=i,c.each(this._targets,(t=>{let e=t.target.getBoundingClientRect();e.width===t.size.width&&e.height===t.size.height||(t.size=e,t.callback())}))),0===this._targets.length?this._timer=null:this._timer=requestAnimationFrame(e)};this._timer=requestAnimationFrame(e)}this._targets.push({target:t,callback:e,size:{width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0}})}removeTarget(t){c.keepIf(this._targets,(e=>e.target!==t)),0===this._targets.length&&null!==this._timer&&(cancelAnimationFrame(this._timer),this._timer=null)}}p.delay=200;let g=null;class f{constructor(t,e){this._disposed=!1,this._sensor=(null===g&&(g="undefined"!=typeof ResizeObserver?new d:new p),g),this._element=t,this._listener=u.onZoom(e),this._sensor.addTarget(t,e)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}var _=i(9821),m=i(1479),y=i(7142),v=i(2876),w=i(780),b=i(6460),x=i(798),D=i(6331),k=i(256),T=i(3100);class M extends D.JH{_setDefaults(){this.setPrivate("defaultLocale",T.Z),super._setDefaults()}translate(t,e,...i){e||(e=this._root.locale||this.getPrivate("defaultLocale"));let s=t,n=e[t];if(null===n)s="";else if(null!=n)n&&(s=n);else if(e!==this.getPrivate("defaultLocale"))return this.translate(t,this.getPrivate("defaultLocale"),...i);if(i.length)for(let t=i.length,e=0;e{this.setTranslationAny(t,i,e)}))}translateEmpty(t,e,...i){let s=this.translate(t,e,...i);return s==t?"":s}translateFunc(t,e){return this._root.locale[t]?this._root.locale[t]:e!==this.getPrivate("defaultLocale")?this.translateFunc(t,this.getPrivate("defaultLocale")):()=>""}translateAll(t,e){return this.isDefault()?t:c.map(t,(t=>this.translate(t,e)))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}var E=i(9770),O=i(3783),P=i(4102),S=i(6245),N=i(1112),C=i(2132),L=i(3145),A=i(3540),R=i(5040),U=i(9395);function B(t,e){null==t?requestAnimationFrame(e):setTimeout((()=>{requestAnimationFrame(e)}),1e3/t)}class F{constructor(t,e={},i){if(this._isDirty=!1,this._isDirtyParents=!1,this._isDirtyAnimation=!1,this._dirty={},this._dirtyParents={},this._dirtyBounds={},this._dirtyPositions={},this._ticker=null,this._tickers=[],this._updateTick=!0,this.skipRenderFrame=!1,this.events=new E.p,this.animationTime=null,this._animations=[],this.language=M.new(this,{}),this.locale=T.Z,this.utc=!1,this.numberFormatter=w.e.new(this,{}),this.dateFormatter=b.C.new(this,{}),this.durationFormatter=x.$.new(this,{}),this.tabindex=0,this._tabindexes=[],this._a11yD=!1,this._focusElementDirty=!1,this._skipNextGroupJump=!0,this.verticalLayout=a.Z.new(this,{}),this.horizontalLayout=o.G.new(this,{}),this.gridLayout=h.M.new(this,{}),this._paused=!1,this.autoResize=!0,this._fontHash="",this._isDisposed=!1,this._disposers=[],this._tooltips=[],this._htmlEnabledContainers=[],this.entitiesById={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");let s,n;if(this._settings=e,0==e.accessible&&(this._a11yD=!0),null==e.useSafeResolution&&(e.useSafeResolution=!0),e.useSafeResolution&&(s=u.getSafeResolution()),this._renderer=new P.uK(s),n=t instanceof HTMLElement?t:document.getElementById(t),c.each(L.i_.rootElements,(t=>{if(t.dom===n){if(!L.i_.autoDispose)throw new Error("You cannot have multiple Roots on the same DOM node");t.dispose()}})),this.interfaceColors=_.v.new(this,{}),null===n)throw new Error("Could not find HTML element with id `"+t+"`");this.dom=n;let r=document.createElement("div");r.style.position="relative",r.style.width="100%",r.style.height="100%",n.appendChild(r);const l=e.tooltipContainerBounds;l&&(this._tooltipContainerSettings=l),this._inner=r,this._updateComputedStyles(),L.i_.rootElements.push(this)}static new(t,e){const i=new F(t,e,!0);return i._init(),i}moveDOM(t){let e;if(e=t instanceof HTMLElement?t:document.getElementById(t),e){for(;this.dom.childNodes.length>0;)e.appendChild(this.dom.childNodes[0]);this.dom=e,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const t=this.dom.offsetWidth,e=this.dom.offsetHeight;t<=150||e<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const t=this.tooltipContainer.children.push(n.W.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:(0,S.aQ)(100),centerY:S.AQ,tooltipY:10,tooltipText:"Created using amCharts 5",tooltipX:S.AQ,cursorOverStyle:"pointer",background:y.A.new(this,{fill:(0,N.$_)(4671320),fillOpacity:0,tooltipY:5})}));t.set("tooltip",this.systemTooltip),t.events.on("click",(()=>{window.open("https://www.amcharts.com/","_blank")})),t.states.create("hover",{});const e=t.children.push(m.T.new(this,{stroke:(0,N.$_)(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6",dx:-50,strokeOpacity:0}));e.states.create("hover",{stroke:(0,N.$_)(3976191)});const i=t.children.push(m.T.new(this,{stroke:(0,N.$_)(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0",dx:50,strokeOpacity:0})),s=U.out(U.cubic),r=1500;t.setTimeout((()=>{i.animate({key:"strokeOpacity",to:1,duration:r,easing:s}),i.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"strokeOpacity",to:1,duration:r,easing:s})}),3e3),i.states.create("hover",{stroke:(0,N.$_)(4671320)}),this._logo=t,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(t){return this._settings.calculateSize?this._settings.calculateSize(t):{width:t.width,height:t.height}}_init(){const t=this._settings;!1!==t.accessible&&(t.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),t.ariaLabel&&this._inner.setAttribute("aria-label",t.ariaLabel),t.role&&this._inner.setAttribute("role",t.role));const e=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),r=Math.floor(s.width),o=Math.floor(s.height),a=Math.floor(i.width),h=Math.floor(i.height),l=n.W.new(this,{visible:!0,width:r,height:o});this._rootContainer=l,this._rootContainer._defaultThemes.push(O.X.new(this));const c=l.children.push(n.W.new(this,{visible:!0,width:S.AQ,height:S.AQ}));this.container=c,e.resize(a,h,r,o),this._inner.appendChild(e.view),this._initResizeSensor();const d=document.createElement("div");if(this._htmlElementContainer=d,d.className="am5-html-container",d.style.position="absolute",d.style.pointerEvents="none",this._tooltipContainerSettings||(d.style.overflow="hidden"),this._inner.appendChild(d),!0!==this._a11yD){const t=document.createElement("div");t.className="am5-reader-container",t.setAttribute("role","alert"),t.style.position="absolute",t.style.width="1px",t.style.height="1px",t.style.overflow="hidden",t.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=t,this._inner.appendChild(this._readerAlertElement);const i=document.createElement("div");i.className="am5-focus-container",i.style.position="absolute",i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.width=r+"px",i.style.height=o+"px",i.setAttribute("role","graphics-document"),u.setInteractive(i,!1),this._focusElementContainer=i,this._inner.appendChild(this._focusElementContainer);const s=document.createElement("div");this._tooltipElementContainer=s,s.className="am5-tooltip-container",this._inner.appendChild(s),u.supports("keyboardevents")&&(this._disposers.push(u.addEventListener(window,"keydown",(t=>{const e=u.getEventKey(t);"Shift"==e?this._isShift=!0:"Tab"==e&&(this._isShift=t.shiftKey)}))),this._disposers.push(u.addEventListener(window,"keyup",(t=>{"Shift"==u.getEventKey(t)&&(this._isShift=!1)}))),this._disposers.push(u.addEventListener(i,"click",(()=>{const t=this._focusedSprite;if(t){const i=t.get("clickAnnounceText","");""!==i&&this.readerAlert(i);const s=e.getEvent(new MouseEvent("click"));t.events.dispatch("click",{type:"click",originalEvent:s.event,point:s.point,simulated:!0,target:t})}}))),this._disposers.push(u.addEventListener(i,"keydown",(t=>{const i=this._focusedSprite;if(i){"Escape"==t.key&&(u.blur(),this._focusedSprite=void 0);let s=0,n=0;const r=u.getEventKey(t);switch(r){case"Enter":case" ":const o=i.get("clickAnnounceText","");if(""!==o&&this.readerAlert(o)," "==r&&"checkbox"!=i.get("role"))return;t.preventDefault();const a=e.getEvent(new MouseEvent("mouse"));return void i.events.dispatch("click",{type:"click",originalEvent:a.event,point:a.point,simulated:!0,target:i});case"ArrowLeft":s=-6;break;case"ArrowRight":s=6;break;case"ArrowUp":n=-6;break;case"ArrowDown":n=6;break;default:return}if(0!=s||0!=n){if(t.preventDefault(),!i.isDragging()){this._keyboardDragPoint={x:0,y:0};const t=e.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));t.point={x:0,y:0},i.events.isEnabled("pointerdown")&&i.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:t.event,point:t.point,simulated:!0,target:i})}const r=this._keyboardDragPoint;r.x+=s,r.y+=n;const o=e.getEvent(new MouseEvent("mousemove",{clientX:r.x,clientY:r.y}),!1);i.events.isEnabled("globalpointermove")&&i.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:o.event,point:o.point,simulated:!0,target:i})}}}))),this._disposers.push(u.addEventListener(i,"keyup",(t=>{if(this._focusedSprite){const i=this._focusedSprite,s=u.getEventKey(t);switch(s){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(i.isDragging()){const t=this._keyboardDragPoint,s=e.getEvent(new MouseEvent("mouseup",{clientX:t.x,clientY:t.y}));return i.events.isEnabled("globalpointerup")&&i.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:s.event,point:s.point,simulated:!0,target:i}),void(this._keyboardDragPoint=void 0)}if(i.get("focusableGroup")){const t=i.get("focusableGroup"),e=this._tabindexes.filter((e=>!(e.get("focusableGroup")!=t||!1===e.getPrivate("focusable")||!e.isVisibleDeep())));let n=e.indexOf(i);const r=e.length-1;n+="ArrowRight"==s||"ArrowDown"==s?1:-1,n<0?n=r:n>r&&(n=0),u.focus(e[n].getPrivate("focusElement").dom)}break;case"Tab":const t=i.get("focusableGroup");if(t&&this._isShift)return void(this._skipNextGroupJump||(this._focusNext(i.getPrivate("focusElement").dom,-1,t),this._skipNextGroupJump=!0))}}}))))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}get systemTooltip(){if(!this._systemTooltip){const t=v.u.new(this,{themeTags:["system"]});this._systemTooltip=t}return this._systemTooltip}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new f(this.dom,(()=>{this.autoResize&&this.resize()})),this._disposers.push(this._resizeSensorDisposer)}resize(){const t=this._getRealSize(),e=this._getCalculatedSize(t),i=Math.floor(e.width),s=Math.floor(e.height);if(i>0&&s>0){const e=Math.floor(t.width),n=Math.floor(t.height),r=this._htmlElementContainer;if(r.style.width=i+"px",r.style.height=s+"px",!0!==this._a11yD){const t=this._focusElementContainer;t.style.width=i+"px",t.style.height=s+"px"}this._renderer.resize(e,n,i,s);const o=this._rootContainer;o.setPrivate("width",i),o.setPrivate("height",s),this._render(),this._handleLogo()}}_render(){this.skipRenderFrame?this.skipRenderFrame=!1:(this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1))}_runTickers(t){c.each(this._tickers,(e=>{e(t)}))}_runAnimations(t){let e=0;return c.keepIf(this._animations,(i=>{const n=i._runAnimation(t);return n!==s.SR.Stopped&&(n!==s.SR.Playing||(++e,!0))})),this._isDirtyAnimation=!1,0===e}_runDirties(){let t={};for(;this._isDirtyParents;)this._isDirtyParents=!1,k.entries(this._dirtyParents).forEach((([e,i])=>{delete this._dirtyParents[e],i.isDisposed()||(t[i.uid]=i,i._prepareChildren())}));k.entries(t).forEach((([t,e])=>{e._updateChildren()}));const e=[];k.entries(this._dirty).forEach((([t,i])=>{i.isDisposed()?delete this._dirty[t]:(e.push(i),i._beforeChanged())})),e.forEach((t=>{t._changed(),delete this._dirty[t.uid],t._clearDirty()})),this._isDirty=!1;const i={},s=[];k.entries(this._dirtyBounds).forEach((([t,e])=>{delete this._dirtyBounds[t],e.isDisposed()||(i[e.uid]=e.depth(),s.push(e))})),this._positionHTMLElements(),s.sort(((t,e)=>A.qu(i[e.uid],i[t.uid]))),s.forEach((t=>{t._updateBounds()}));const n=this._dirtyPositions;k.entries(n).forEach((([t,e])=>{delete n[t],e.isDisposed()||e._updatePosition()})),e.forEach((t=>{t._afterChanged()})),k.entries(t).forEach((([t,e])=>{e._childrenPrep=!1,e._childrenUpdt=!1}))}_renderFrame(t){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:t}),this._checkComputedStyles(),this._runTickers(t);const e=this._runAnimations(t);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:t}),0===this._tickers.length&&e&&!this._isDirtyAnimation&&!this._isDirty}return!0}_runTicker(t,e){this.isDisposed()||(this.animationTime=t,this._renderFrame(t)?(this._ticker=null,this.animationTime=null):this._paused||(e?this._ticker:B(this.fps,this._ticker)))}_runTickerNow(t=1e4){if(!this.isDisposed()){const e=performance.now()+t;for(;;){const t=performance.now();if(t>=e){this.animationTime=null;break}if(this.animationTime=t,this._renderFrame(t)){this.animationTime=null;break}}}}_startTicker(){null===this._ticker&&(this.animationTime=null,this._ticker=t=>{this._runTicker(t)},B(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(t){this._updateTick=t,t&&this._startTicker()}_addDirtyEntity(t){this._isDirty=!0,void 0===this._dirty[t.uid]&&(this._dirty[t.uid]=t),this._startTicker()}_addDirtyParent(t){this._isDirty=!0,this._isDirtyParents=!0,void 0===this._dirtyParents[t.uid]&&(this._dirtyParents[t.uid]=t),this._startTicker()}_addDirtyBounds(t){this._isDirty=!0,void 0===this._dirtyBounds[t.uid]&&(this._dirtyBounds[t.uid]=t),this._startTicker()}_addDirtyPosition(t){this._isDirty=!0,void 0===this._dirtyPositions[t.uid]&&(this._dirtyPositions[t.uid]=t),this._startTicker()}_addAnimation(t){this._isDirtyAnimation=!0,-1===this._animations.indexOf(t)&&this._animations.push(t),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",(()=>{this._isDirty=!0,this._startTicker()}))}eachFrame(t){return this._tickers.push(t),this._startTicker(),new l.ku((()=>{c.removeFirst(this._tickers,t)}))}markDirtyGlobal(t){t||(t=this.container),t.walkChildren((t=>{t instanceof n.W&&this.markDirtyGlobal(t),t.markDirty(),t.markDirtyBounds()}))}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),c.each(this._disposers,(t=>{t.dispose()})),this._inner&&u.removeElement(this._inner),c.remove(L.i_.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(t){if(!0!==this._a11yD){const e=this._readerAlertElement;t=u.stripTags(t),e.innerHTML==t&&(e.innerHTML=""),e.innerHTML=t}}setThemes(t){this._rootContainer.set("themes",t);const e=this.tooltipContainer;e&&e._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const t=this._tooltipContainerSettings,e=this._rootContainer.children.push(n.W.new(this,{position:"absolute",isMeasured:!1,width:S.AQ,height:S.AQ,layer:t?35:30,layerMargin:t||void 0}));this.tooltipContainer=e;const i=v.u.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(t){1!=this._a11yD&&(t.get("focusable")?c.pushOne(this._tabindexes,t):c.remove(this._tabindexes,t),this._invalidateTabindexes())}_unregisterTabindexOrder(t){1!=this._a11yD&&(c.remove(this._tabindexes,t),this._invalidateTabindexes())}_invalidateTabindexes(){if(1==this._a11yD)return;this._tabindexes.sort(((t,e)=>{const i=t.get("tabindexOrder",0),s=e.get("tabindexOrder",0);return i==s?0:i>s?1:-1}));const t=[];c.each(this._tabindexes,((e,i)=>{e.getPrivate("focusElement")?this._moveFocusElement(i,e):this._makeFocusElement(i,e);const s=e.get("focusableGroup");s&&!1!==e.getPrivate("focusable")&&(-1!==t.indexOf(s)?e.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):t.push(s))}))}_updateCurrentFocus(){1!=this._a11yD&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(t,e){if(1==this._a11yD)return;if(e||(e=t.getPrivate("focusElement").dom),!e)return;const i=t.get("role");i?e.setAttribute("role",i):e.removeAttribute("role");const s=t.get("ariaLabel");if(s){const i=(0,C.q)(t,s);e.setAttribute("aria-label",i)}else e.removeAttribute("aria-label");const n=t.get("ariaLive");n?e.setAttribute("aria-live",n):e.removeAttribute("aria-live");const r=t.get("ariaChecked");null!=r&&i&&-1!==["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)?e.setAttribute("aria-checked",r?"true":"false"):e.removeAttribute("aria-checked");const o=t.get("ariaCurrent");null!=o?e.setAttribute("aria-current",o):e.removeAttribute("aria-current");const a=t.get("ariaSelected");null!=a&&i&&-1!==["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)?e.setAttribute("aria-selected",a?"true":"false"):e.removeAttribute("aria-selected"),t.get("ariaHidden")?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden");const h=t.get("ariaOrientation");h?e.setAttribute("aria-orientation",h):e.removeAttribute("aria-orientation");const l=t.get("ariaValueNow");l?e.setAttribute("aria-valuenow",l):e.removeAttribute("aria-valuenow");const c=t.get("ariaValueMin");c?e.setAttribute("aria-valuemin",c):e.removeAttribute("aria-valuemin");const u=t.get("ariaValueMax");u?e.setAttribute("aria-valuemax",u):e.removeAttribute("aria-valuemax");const d=t.get("ariaValueText");d?e.setAttribute("aria-valuetext",d):e.removeAttribute("aria-valuetext");const p=t.get("ariaControls");p?e.setAttribute("aria-controls",p):e.removeAttribute("aria-controls"),t.get("visible")&&0!==t.get("opacity")&&"tooltip"!=t.get("role")&&!t.isHidden()&&!1!==t.getPrivate("focusable")&&(t.height()||t.width())?("-1"!=e.getAttribute("tabindex")&&e.setAttribute("tabindex",""+this.tabindex),e.removeAttribute("aria-hidden")):(e.removeAttribute("tabindex"),e.setAttribute("aria-hidden","true"))}_makeFocusElement(t,e){if(e.getPrivate("focusElement")||1==this._a11yD)return;const i=document.createElement("div");"tooltip"!=e.get("role")&&(i.tabIndex=this.tabindex),i.style.position="absolute",u.setInteractive(i,!1);const s=[];e.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(e),s.push(u.addEventListener(i,"focus",(t=>{this._handleFocus(t)}))),s.push(u.addEventListener(i,"blur",(t=>{this._handleBlur(t)}))),this._moveFocusElement(t,e)}_removeFocusElement(t){if(1==this._a11yD)return;c.remove(this._tabindexes,t);const e=t.getPrivate("focusElement");e&&(this._focusElementContainer.removeChild(e.dom),c.each(e.disposers,(t=>{t.dispose()})))}_hideFocusElement(t){1!=this._a11yD&&(t.getPrivate("focusElement").dom.style.display="none")}_moveFocusElement(t,e){if(1==this._a11yD)return;const i=this._focusElementContainer,s=e.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[t])return;const n=this._focusElementContainer.children[t+1];n?i.insertBefore(s,n):i.append(s)}_positionFocusElement(t){if(1==this._a11yD||null==t)return;this._focusElementContainer.scrollTop=0;const e=t.globalBounds();let i=e.right==e.left?t.width():e.right-e.left,s=e.top==e.bottom?t.height():e.bottom-e.top;const n=void 0!==this._settings.focusPadding?this._settings.focusPadding:2;let r=e.left-n,o=e.top-n;i<0&&(r+=i,i=Math.abs(i)),s<0&&(o+=s,s=Math.abs(s));const a=t.getPrivate("focusElement").dom;a.style.top=o+"px",a.style.left=r+"px",a.style.width=i+2*n+"px",a.style.height=s+2*n+"px"}_getSpriteByFocusElement(t){let e;return c.eachContinue(this._tabindexes,((i,s)=>i.getPrivate("focusElement").dom!==t||(e=i,!1))),e}_handleFocus(t){if(1==this._a11yD)return;const e=this._getSpriteByFocusElement(t.target);e&&(e.isVisibleDeep()?(this._positionFocusElement(e),this._focusedSprite=e,e.events.isEnabled("focus")&&e.events.dispatch("focus",{type:"focus",originalEvent:t,target:e}),-1==e.getPrivate("focusElement").dom.tabIndex&&(this._skipNextGroupJump=!1)):this._focusNext(t.target,this._isShift?-1:1))}_focusNext(t,e,i){if(1==this._a11yD)return;const s=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(",")));let n=s.indexOf(t)+e;n<0?n=s.length-1:n>=s.length&&(n=0);const r=s[n];if(i&&-1==e){const t=this._getSpriteByFocusElement(r);if(t&&t.get("focusableGroup")==i)return void this._focusNext(r,e)}r.focus()}_handleBlur(t){if(1==this._a11yD)return;const e=this._focusedSprite;e&&!e.isDisposed()&&e.events.isEnabled("blur")&&e.events.dispatch("blur",{type:"blur",originalEvent:t,target:e}),this._focusedSprite=void 0}updateTooltip(t){if(1==this._a11yD)return;const e=u.stripTags(t._getText());let i=t.getPrivate("tooltipElement");"tooltip"==t.get("role")&&""!=e?(i||(i=this._makeTooltipElement(t)),i.innerHTML!=e&&(i.innerHTML=e),i.setAttribute("aria-hidden",t.isVisibleDeep()?"false":"true")):i&&(i.remove(),t.removePrivate("tooltipElement"))}_makeTooltipElement(t){const e=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",u.setInteractive(i,!1),this._decorateFocusElement(t,i),e.append(i),t.setPrivate("tooltipElement",i),i}_removeTooltipElement(t){if(1==this._a11yD)return;const e=t.getPrivate("tooltipElement");if(e){const t=e.parentElement;t&&t.removeChild(e)}}_invalidateAccessibility(t){if(1==this._a11yD)return;this._focusElementDirty=!0;const e=t.getPrivate("focusElement");t.get("focusable")?e&&(this._decorateFocusElement(t),this._positionFocusElement(t)):e&&this._removeFocusElement(t)}focused(t){return this._focusedSprite===t}documentPointToRoot(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:(t.x-e.left)*s,y:(t.y-e.top)*n}}rootPointToDocument(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:t.x/s+e.left,y:t.y/n+e.top}}addDisposer(t){return this._disposers.push(t),t}_updateComputedStyles(){const t=window.getComputedStyle(this.dom);let e="";k.each(t,((t,i)=>{R.isString(t)&&t.match(/^font/)&&(e+=i)}));const i=e!=this._fontHash;return i&&(this._fontHash=e),i}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(t){t instanceof n.W?t.children.each((t=>{this._invalidateLabelBounds(t)})):t instanceof r.x&&t.markDirtyBounds()}_hasLicense(){for(let t=0;t{if(t.get("verticalScrollbar"))return r=!0,s=t,!1})),r&&(n=document.createElement("div"),t.setPrivate("htmlElementWrapper",n),t.setPrivate("wrapperContainer",s),n.style.position="absolute",n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",s.events.on("boundschanged",(()=>{this._positionHTMLElement(t)}))),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",u.setInteractive(i,t.get("interactive",!1)),t.events.isEnabled("click")&&(u.setInteractive(i,!0),this._disposers.push(u.addEventListener(i,"click",(e=>{const i=this._renderer.getEvent(e);t.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))),this._positionHTMLElement(t),r?(n.append(i),e.append(n)):e.append(i),c.pushOne(this._htmlEnabledContainers,t),i}_positionHTMLElements(){c.each(this._htmlEnabledContainers,(t=>{this._positionHTMLElement(t)}))}_positionHTMLElement(t){const e=t.getPrivate("htmlElementWrapper");if(e){const i=t.getPrivate("wrapperContainer");if(i){const t=i.globalBounds();e.style.clipPath="rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"}}const i=t.getPrivate("htmlElement");if(i){const e=["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"];c.each(e,(e=>{const s=t.get(e);i.style[e]=s?s+"px":""}));const s=["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"];c.each(s,(e=>{const s=t.get(e);s?"fontSize"!=e||R.isString(s)?i.style[e]=s+"":i.style[e]=s+"px":i.style[e]=""}));const n=t.compositeScale()||1,r=t.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";const o=t.compositeOpacity();setTimeout((()=>{i.style.opacity=o+""}),10);const a=t.isVisibleDeep();a&&(i.style.display="block");let h={x:t.x()+t.get("dx",0),y:t.y()+t.get("dy",0)};t.parent&&(h=t.parent.toGlobal(h)),i.style.top=h.y+"px",i.style.left=h.x+"px";const l=t.get("width"),u=t.get("height");let d=0,p=0;if(l&&(d=t.width()),u&&(p=t.height()),!l||!u){i.style.position="fixed",i.style.width="",i.style.height="";const e=i.getBoundingClientRect();i.style.position="absolute",l||(d=e.width),u||(p=e.height);let s=d/n,r=p/n,o=t.get("centerX",0),a=t.get("centerY",0),h=0,c=0,g=0,f=0;o instanceof S.gG?(h=-o.value*s,c=(1-o.value)*s):(h=-o,c=s-o),a instanceof S.gG?(g=-a.value*r,f=(1-a.value)*r):(g=-a,f=r-a),t._localBounds={left:h,right:c,top:g,bottom:f};let _=t._adjustedLocalBounds,m=t._display.getAdjustedBounds(t._localBounds);t._adjustedLocalBounds=m,_.left===m.left&&_.right===m.right&&_.top===m.top&&_.bottom===m.bottom||t.markDirtyBounds()}d>0&&(i.style.minWidth=d+"px"),p>0&&(i.style.minHeight=p+"px"),a&&0!=o||(i.style.display="none");const g=t.get("centerX",0),f=(0,S.hU)(g)?g.percent+"%":g+"px",_=t.get("centerY",0),m=(0,S.hU)(_)?_.percent+"%":_+"px";(g||_)&&(i.style.transform="translate(-"+f+", -"+m+")"+i.style.transform),1!=n&&(i.style.transform+="scale("+n+")"),0!=r&&(i.style.transform+=" rotate("+r+"deg)"),""!=i.style.transform&&(i.style.transformOrigin=f+" "+m)}}_setHTMLContent(t,e){let i=t.getPrivate("htmlElement");i||(i=this._makeHTMLElement(t),this.autoResize||this.resize()),i.innerHTML!=e&&(i.innerHTML=e)}_removeHTMLContent(t){const e=t.getPrivate("htmlElementWrapper"),i=t.getPrivate("htmlElement");e?(this._htmlElementContainer.removeChild(e),t.removePrivate("htmlElement"),t.removePrivate("htmlElementWrapper"),t.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),t.removePrivate("htmlElement"),t.removePrivate("wrapperContainer")),c.remove(this._htmlEnabledContainers,t)}}},3409:function(t,e,i){"use strict";i.d(e,{Q:function(){return o}});var s=i(5769),n=i(3540),r=i(5071);class o{constructor(t,e){if(this._rules={},this._root=t,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(t){const e=new this(t,!0);return e.setupDefaultRules(),e}setupDefaultRules(){}_lookupRules(t){return this._rules[t]}ruleRaw(t,e=[]){let i=this._rules[t];i||(i=this._rules[t]=[]),e.sort(n.qu);const{index:o,found:a}=r.getSortedIndex(i,(t=>{const i=n.qu(t.tags.length,e.length);return 0===i?n.wq(t.tags,e,n.qu):i}));if(a)return i[o].template;{const t=s.YS.new({});return i.splice(o,0,{tags:e,template:t}),t}}rule(t,e=[]){return this.ruleRaw(t,e)}}},5108:function(t,e,i){"use strict";i.d(e,{g:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){const t=this.get("sprite");t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}}n.className="Bullet",n.classNames=s.JH.classNames.concat([n.className])},8054:function(t,e,i){"use strict";i.d(e,{z:function(){return o}});var s=i(3497),n=i(8777),r=i(7652);class o extends n.W{_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",s.c.new(this._root,{themeTags:r.mergeTags(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const t=this._prevSettings.icon,e=this.get("icon");e!==t&&(this._disposeProperty("icon"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.icon=e)}if(this.isDirty("label")){const t=this._prevSettings.label,e=this.get("label");e!==t&&(this._disposeProperty("label"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.label=e)}}}o.className="Button",o.classNames=n.W.classNames.concat([o.className])},1337:function(t,e,i){"use strict";i.d(e,{k:function(){return r}});var s=i(8777),n=i(6245);class r extends s.W{constructor(){super(...arguments),this.chartContainer=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,interactiveChildren:!1})),this.bulletsContainer=s.W.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:n.AQ,height:n.AQ})}}r.className="Chart",r.classNames=s.W.classNames.concat([r.className])},8035:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,Math.abs(this.get("radius",10)))}}n.className="Circle",n.classNames=s.T.classNames.concat([n.className])},9361:function(t,e,i){"use strict";i.d(e,{w:function(){return c},z:function(){return l}});var s=i(7582),n=i(6331),r=i(8777),o=i(9582),a=i(5071),h=i(256);class l extends n.Zr{constructor(t,e,i){super(i),this.dataContext=e,this.component=t,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(t){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,t)}hide(t){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,t)}isHidden(){return!this.get("visible")}}class c extends r.W{constructor(){super(...arguments),this._data=new o.k,this._dataItems=[],this._mainDataItems=this._dataItems,this.valueFields=[],this.fields=["id"],this._valuesDirty=!1,this._dataChanged=!1,this._dataGrouped=!1,this.inited=!1}set data(t){t.incrementRef(),this._data.decrementRef(),this._data=t}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((t=>{const e=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===t.type)a.each(e,(t=>{t.dispose()})),e.length=0,this._onDataClear();else if("push"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.push(i),this.processDataItem(i)}else if("setIndex"===t.type){const i=e[t.index],s=this._makeDataItem(t.newValue);i.bullets&&0==i.bullets.length&&(i.bullets=void 0),h.entries(s).forEach((([t,e])=>{i.get(t)!=e&&i.animate({key:t,to:e,duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})})),i.dataContext=t.newValue}else if("insertIndex"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.splice(t.index,0,i),this.processDataItem(i)}else if("removeIndex"===t.type)e[t.index].dispose(),e.splice(t.index,1);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");{const i=e[t.oldIndex];e.splice(t.oldIndex,1),e.splice(t.newIndex,0,i)}}this._afterDataChange()})))}_postUpdateData(){}updateData(t){let e=0;a.each(t,((t,i)=>{const s=this.dataItems[i];if(s){const e=s.dataContext;e&&h.entries(t).forEach((([t,i])=>{e[t]=i}));const i=this._makeDataItem(e);h.entries(i).forEach((([t,e])=>{var i;if(s.get(t)!=e){s.set(t,e);const n=null===(i=this._valueFieldsF[t])||void 0===i?void 0:i.workingKey;n&&s.set(n,e)}}))}else this.data.push(t);e=i}));for(let t=this.dataItems.length-1;t>e;t--){const e=this.dataItems[t];a.remove(this.dataItems,e),e.dispose()}this._postUpdateData()}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},a.each(this.valueFields,(t=>{this.get(t+"Field")&&(this._valueFields.push(t),this._valueFieldsF[t]={fieldKey:t+"Field",workingKey:t+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},a.each(this.fields,(t=>{this.get(t+"Field")&&(this._fields.push(t),this._fieldsF[t]=t+"Field")})))}get dataItems(){return this._dataItems}processDataItem(t){}_makeDataItem(t){const e={};return this._valueFields&&a.each(this._valueFields,(i=>{const s=this.get(this._valueFieldsF[i].fieldKey);e[i]=t[s],e[this._valueFieldsF[i].workingKey]=e[i]})),this._fields&&a.each(this._fields,(i=>{const s=this.get(this._fieldsF[i]);e[i]=t[s]})),e}makeDataItem(t,e){let i=new l(this,e,t);return this.processDataItem(i),i}pushDataItem(t,e){const i=this.makeDataItem(t,e);return this._mainDataItems.push(i),i}disposeDataItem(t){}showDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!0)}))}hideDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const t="datavalidated";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this._dataChanged=!1}if(this._valuesDirty){const t="valueschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.inited=!0}markDirtyValues(t){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}getDataItemById(t){return a.find(this.dataItems,(e=>e.get("id")==t))}}c.className="Component",c.classNames=r.W.classNames.concat([c.className])},2936:function(t,e,i){"use strict";i.d(e,{p:function(){return r}});var s=i(8054),n=i(7652);class r extends s.z{_afterNew(){super._afterNew(),this.addTag("confirm"),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{const e=n.getEventKey(t);this.get("active")&&"Escape"==e&&this._cancel()}))),this._disposers.push(n.addEventListener(document,"click",(()=>{this._ignoreClick||this._cancel(),this._ignoreClick=!1}))),this.events.on("click",(()=>{this.get("active")||(this._ignoreClick=!0),this._confirm()}))}_cancel(){this.get("active")&&(this.events.dispatch("cancelled",{type:"cancelled",target:this}),this.set("active",!1))}_confirm(){this.get("active")&&(this.events.dispatch("confirmed",{type:"confirmed",target:this}),this.set("active",!1),this.isFocus()&&this.setTimeout((()=>{this.set("active",!1),n.blur()}),10))}_prepareChildren(){super._prepareChildren()}}r.className="ConfirmButton",r.classNames=s.z.classNames.concat([r.className])},8777:function(t,e,i){"use strict";i.d(e,{W:function(){return f}});var s=i(7144),n=i(5071);class r extends s.aV{constructor(t){super(),this._disposed=!1,this._container=t,this._events=this.events.onAll((t=>{if("clear"===t.type)n.each(t.oldValues,(t=>{this._onRemoved(t)}));else if("push"===t.type)this._onInserted(t.newValue);else if("setIndex"===t.type)this._onRemoved(t.oldValue),this._onInserted(t.newValue,t.index);else if("insertIndex"===t.type)this._onInserted(t.newValue,t.index);else if("removeIndex"===t.type)this._onRemoved(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");this._onRemoved(t.value),this._onInserted(t.value,t.newIndex)}}))}_onInserted(t,e){t._setParent(this._container,!0);const i=this._container._childrenDisplay;void 0===e?i.addChild(t._display):i.addChildAt(t._display,e)}_onRemoved(t){this._container._childrenDisplay.removeChild(t._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),n.each(this.values,(t=>{t.dispose()})))}}var o=i(6245),a=i(4596),h=i(7142),l=i(4431),c=i(1706),u=i(6881),d=i(2132),p=i(5040),g=i(7652);class f extends a.j{constructor(){super(...arguments),this._display=this._root._renderer.makeContainer(),this._childrenDisplay=this._root._renderer.makeContainer(),this.children=new r(this),this._percentageSizeChildren=[],this._percentagePositionChildren=[],this._prevWidth=0,this._prevHeight=0,this._contentWidth=0,this._contentHeight=0,this._childrenPrep=!1,this._childrenUpdt=!1}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){n.eachReverse(this.allChildren(),(t=>{t.dispose()})),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_beforeChanged(){this._childrenPrep||this._prepareChildren(),this._childrenUpdt||this._updateChildren(),super._beforeChanged()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each((t=>{t.removePrivate("x"),t.removePrivate("y")}))),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each((t=>{t.markDirtyPosition()})),this.isDirty("maskContent")){const t=this._childrenDisplay;let e=this._contentMask;this.get("maskContent")?e||(e=h.A.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=e,t.addChildAt(e._display,0),t.mask=e._display):e&&(t.removeChild(e._display),t.mask=null,e.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),n.each(this._percentageSizeChildren,(t=>{t._updateSize()})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t._updateSize()})),this.updateBackground()}updateBackground(){const t=this.get("background");let e=this._localBounds;if(e&&!this.isHidden()){let i=e.left,s=e.top,n=e.right-i,r=e.bottom-s,o=this.get("maxWidth"),a=this.get("maxHeight");a&&r>a&&(r=a),o&&n>o&&(n=o);let h=this.width(),l=this.height();t&&(t.setAll({width:n,height:r,x:i,y:s}),this._display.interactive&&(t._display.interactive=!0));const c=this._contentMask;c&&c.setAll({width:h+1,height:l+1});const u=this.get("verticalScrollbar");if(u){u.set("height",l),u.set("x",h-u.width()-u.get("marginRight",0)),u.set("end",u.get("start",0)+l/this._contentHeight);const t=u.get("background");t&&t.setAll({width:u.width(),height:l});let e=!0;this._contentHeight<=l&&(e=!1),u.setPrivate("visible",e)}}}_applyThemes(t=!1){return!!super._applyThemes(t)&&(this.eachChildren((e=>{e._applyThemes(t)})),!0)}_applyState(t){super._applyState(t),this.get("setStateOnChildren")&&this.eachChildren((e=>{e.states.apply(t)}))}_applyStateAnimated(t,e){super._applyStateAnimated(t,e),this.get("setStateOnChildren")&&this.eachChildren((i=>{i.states.applyAnimate(t,e)}))}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let t=this._localBounds;t&&(this._contentWidth=t.right-t.left,this._contentHeight=t.bottom-t.top)}else{let t=this.get("width"),e=this.get("height"),i=this.getPrivate("width"),s=this.getPrivate("height"),n={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),o=!1,a=!1;if((r instanceof l.G||r instanceof u.M)&&(o=!0),r instanceof c.Z&&(a=!0),null==t&&null==i||null==e&&null==s||this.get("verticalScrollbar")){let t=Number.MAX_VALUE,e=t,i=-t,s=t,r=-t;const h=this.get("paddingLeft",0),l=this.get("paddingTop",0),c=this.get("paddingRight",0),u=this.get("paddingBottom",0);this.children.each((t=>{if("absolute"!=t.get("position")&&t.get("isMeasured")){let n=t.adjustedLocalBounds(),h=t.x(),l=t.y(),c=h+n.left,u=h+n.right,d=l+n.top,p=l+n.bottom;o&&(c-=t.get("marginLeft",0),u+=t.get("marginRight",0)),a&&(d-=t.get("marginTop",0),p+=t.get("marginBottom",0)),ci&&(i=u),dr&&(r=p)}})),e==t&&(e=0),i==-t&&(i=0),s==t&&(s=0),r==-t&&(r=0),n.left=e-h,n.top=s-l,n.right=i+c,n.bottom=r+u;const d=this.get("minWidth");p.isNumber(d)&&d>0&&n.right-n.left=d?n.left=n.right-d:n.right=n.left+d);const g=this.get("minHeight");p.isNumber(g)&&g>0&&n.bottom-n.top=g?n.top=n.bottom-g:n.bottom=n.top+g)}this._contentWidth=n.right-n.left,this._contentHeight=n.bottom-n.top,p.isNumber(t)&&(n.left=0,n.right=t),p.isNumber(i)&&(n.left=0,n.right=i),p.isNumber(e)&&(n.top=0,n.bottom=e),p.isNumber(s)&&(n.top=0,n.bottom=s),this._localBounds=n}}_updateBounds(){const t=this.get("layout");t&&t.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){this._childrenPrep=!0;const t=this.innerWidth(),e=this.innerHeight();if(t!=this._prevWidth||e!=this._prevHeight){let i=this.get("layout"),s=!1,r=!1;i&&((i instanceof l.G||i instanceof u.M)&&(s=!0),i instanceof c.Z&&(r=!0)),n.each(this._percentageSizeChildren,(i=>{if(!s){let e=i.get("width");e instanceof o.gG&&i.setPrivate("width",e.value*t)}if(!r){let t=i.get("height");t instanceof o.gG&&i.setPrivate("height",t.value*e)}})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t.markDirtyBounds()})),this._prevWidth=t,this._prevHeight=e,this._sizeDirty=!0,this.updateBackground()}}_updateHTMLContent(){const t=this.get("html","");t&&""!==t?this._root._setHTMLContent(this,(0,d.q)(this,t)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(t){const e=this.get("verticalScrollbar");if(e){let i=t.y(),s=this.innerHeight(),n=t.height(),r=this._contentHeight,o=1-(s-n/2)/r;if(i+.7*n+this._childrenDisplay.y>s||i-.3*n+this._childrenDisplay.y<0){let t=Math.max(0,Math.min(o,(i-n/2)/r));e.animate({key:"start",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")})}}}_updateChildren(){if(this._childrenUpdt=!0,this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){const t=this.get("verticalScrollbar");if(t){t._setParent(this),t.startGrip.setPrivate("visible",!1),t.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",t.width()+t.get("marginRight",0)+t.get("marginLeft",0));let e=this.get("background");e||(e=this.set("background",h.A.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",(e=>{const i=e.originalEvent;if(!g.isLocalEvent(i,this))return;i.preventDefault();let s=i.deltaY/5e3;const n=t.get("start",0),r=t.get("end",1);n+s<=0&&(s=-n),r+s>=1&&(s=1-r),n+s>=0&&r+s<=1&&(t.set("start",n+s),t.set("end",r+s))})),this._disposers.push(this._vsbd0),this._vsbd1=t.events.on("rangechanged",(()=>{let e=this._contentHeight;const i=this._childrenDisplay,s=this._contentMask;i.y=-t.get("start",0)*e,i.markDirtyLayer(),s&&(s._display.y=-i.y,i.mask=s._display)})),this._disposers.push(this._vsbd1),this._display.addChild(t._display)}else{const t=this._prevSettings.verticalScrollbar;t&&(this._display.removeChild(t._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose(),this._childrenDisplay.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0))}}if(this.isDirty("background")){const t=this._prevSettings.background;t&&this._display.removeChild(t._display);const e=this.get("background");e instanceof a.j&&(e.set("isMeasured",!1),e._setParent(this),this._display.addChildAt(e._display,0))}if(this.isDirty("mask")){const t=this.get("mask"),e=this._prevSettings.mask;if(e&&(this._display.removeChild(e._display),e!=t&&e.dispose()),t){const e=t.parent;e&&e.children.removeValue(t),t._setParent(this),this._display.addChildAt(t._display,0),this._childrenDisplay.mask=t._display}}}_processTemplateField(){super._processTemplateField(),this.children.each((t=>{t._processTemplateField()}))}walkChildren(t){this.children.each(((e,i)=>{e instanceof f&&e.walkChildren(t),t(e,i)}))}eachChildren(t){const e=this.get("background");e&&t(e);const i=this.get("verticalScrollbar");i&&t(i);const s=this.get("mask");s&&t(s),this.children.values.forEach((e=>{t(e)}))}allChildren(){const t=[];return this.eachChildren((e=>{t.push(e)})),t}_setDataItem(t){const e=t!==this._dataItem;super._setDataItem(t);const i=this.get("html","");i&&""!==i&&e&&this._root._setHTMLContent(this,(0,d.q)(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}}f.className="Container",f.classNames=a.j.classNames.concat([f.className])},6691:function(t,e,i){"use strict";i.d(e,{Y:function(){return d}});var s=i(962),n=i(8777),r=i(3497),o=i(6245),a=i(1112),h=i(7449),l=i(7652),c=i(5040),u=i(5071);class d extends s._{_afterNew(){super._afterNew();const t=this.children.push(n.W.new(this._root,{html:'',isMeasured:!1}));t.hide(),this.setPrivate("input",t);let e=this.get("background");e?e.set("themeTags",["editablelabel","background"]):e=this.set("background",r.c.new(this._root,{themeTags:["editablelabel","background"]}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();const t=this.get("editOn","click");"none"!=t&&(this._editOnEvents=new h.FV([this.getPrivate("input").events.on(t,(t=>{})),this.events.on(t,(t=>{this.set("active",!0)}))]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){const t=this.get("active",!1);t?this._startEditing():this._stopEditing();const e=this.get("background");e&&e.set("active",t)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){const t=this.getPrivate("input");if(t&&t.getPrivate("htmlElement")){const e=t.getPrivate("htmlElement").querySelector(".am5-editable-label");e&&(this.setPrivate("textarea",e),e.addEventListener("input",(t=>{!1===this.get("multiLine")&&(e.value=e.value.replace(/\n/g," ")),this.set("text",e.value),this._syncStyle()})),e.addEventListener("blur",(t=>this.set("active",!1))),l.supports("keyboardevents")&&this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Escape"==l.getEventKey(t)&&this.set("active",!1)}))),this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Enter"==l.getEventKey(t)&&!1===this.get("multiLine")&&(t.preventDefault(),this.set("active",!1))}))),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._startEditing()}));this._text.set("opacity",0);const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(""==this.get("text","")&&this.set("text"," "),t.show(0),this.setTimeout((()=>{this._syncStyle(),e.focus()}),100))}_stopEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._stopEditing()}));const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(this.set("text",e.value),t.hide(0),this._text.set("opacity",1))}_syncStyle(){const t=this.getPrivate("input"),e=this.getPrivate("textarea"),i=t.getPrivate("htmlElement");if(e&&i){const t=window.getComputedStyle(e);u.each(t,(t=>{e.style[t]="initial"})),e.style.color=this.get("fill",(0,a.$_)(0)).toCSS(this.get("fillOpacity",1)),e.style.backgroundColor="rgba(0, 0, 0, 0)",e.style.border="none",e.style.outline="none",e.style.padding="0",e.wrap="off",e.style.resize="none",e.style.overflow="hidden";const s=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);s>0?e.style.maxWidth=s+"px":e.style.minWidth="",e.style.height="auto",e.style.minHeight=e.scrollHeight+"px",this.get("width")&&(e.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",e.style.minWidth="");const n=this.get("lineHeight");n?n instanceof o.gG?e.style.lineHeight=n.value+"":c.isNumber(n)&&(e.style.lineHeight=n+""):e.style.lineHeight="1.2";let r=this.get("fontFamily");r||(r=getComputedStyle(i,"font-family").getPropertyValue("font-family")),e.style.fontFamily=r;let h=this.get("fontSize");h?c.isNumber(h)&&(h+="px"):h=getComputedStyle(i,"font-size").getPropertyValue("font-size"),e.style.fontSize=h;let l=this.get("fontWeight");l||(l=getComputedStyle(i,"font-weight").getPropertyValue("font-weight")),e.style.fontWeight=l;let d=this.get("fontStyle");d||(d=getComputedStyle(i,"font-style").getPropertyValue("font-style")),e.style.fontStyle=d;const p=this.get("oversizedBehavior");e.style.whiteSpace="wrap"==p?"pre-wrap":"nowrap",this._root.events.on("frameended",(()=>{""==e.style.minWidth&&(e.style.minWidth=e.scrollWidth+20+"px");const t=this.get("textAlign","start");"center"==t?(e.style.textAlign="center",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-50%)")):"end"==t?(e.style.textAlign="right",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-100%)")):e.style.textAlign=t}))}}_syncText(){const t=this.getPrivate("textarea");let e=this.get("text","");" "==e&&(e=""),t&&(t.value=e)}}d.className="EditableLabel",d.classNames=s._.classNames.concat([d.className])},2433:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radiusX")||this.isDirty("radiusY")||this.isDirty("rotation"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawEllipse(0,0,Math.abs(this.get("radiusX")),Math.abs(this.get("radiusY")))}}n.className="Ellipse",n.classNames=s.T.classNames.concat([n.className])},1479:function(t,e,i){"use strict";i.d(e,{T:function(){return l},u:function(){return h}});var s=i(4429),n=i(4596),r=i(4680),o=i(5040),a=i(5071);const h=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"];class l extends n.j{constructor(){super(...arguments),this._display=this._root._renderer.makeGraphics(),this._clear=!1}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const t=this.get("fillGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("fill")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("fill")}))))}}if(this.isDirty("strokeGradient")){const t=this.get("strokeGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("stroke")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("stroke")}))))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let t=this.get("strokeDasharray");o.isNumber(t)&&(t=t<.5?[0]:[t]),this._display.setLineDash(t);const e=this.get("strokeDashoffset");e&&this._display.setLineDashOffset(e);const i=this.get("blendMode",r.b.NORMAL);this._display.blendMode=i;const s=this.get("draw");s&&"function"==typeof s&&s(this._display,this);const n=this.get("svgPath");null!=n&&this._display.svgPath(n)}}_afterChanged(){if(super._afterChanged(),this._clear){const t=this.get("fill"),e=this.get("fillGradient"),i=this.get("fillPattern"),n=this.get("fillOpacity"),r=this.get("stroke"),o=this.get("strokeGradient"),h=this.get("strokePattern"),l=this.get("shadowColor"),c=this.get("shadowBlur"),u=this.get("shadowOffsetX"),d=this.get("shadowOffsetY"),p=this.get("shadowOpacity");if(l&&(c||u||d)&&this._display.shadow(l,c,u,d,p),t&&!e&&(this._display.beginFill(t,n),this._display.endFill()),e){if(t){const i=e.get("stops",[]);i.length&&a.each(i,(e=>{e.color&&!e.colorInherited||!t||(e.color=t,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=n,e.opacityInherited=!0)}))}const i=e.getFill(this);i&&(this._display.beginFill(i,n),this._display.endFill())}if(i){const t=i.pattern;t&&(this._display.beginFill(t,n),this._display.endFill(),i instanceof s.v&&i.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}if(r||o||h){const t=this.get("strokeOpacity");let e=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(e/=this.get("scale",1)),this.get("crisp")&&(e/=this._root._renderer.resolution);const i=this.get("lineJoin"),n=this.get("lineCap");if(r&&!o&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke()),o){const s=o.get("stops",[]);s.length&&a.each(s,(e=>{e.color&&!e.colorInherited||!r||(e.color=r,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=t,e.opacityInherited=!0)}));const h=o.getFill(this);h&&(this._display.lineStyle(e,h,t,i,n),this._display.endStroke())}if(h){let r=h.pattern;r&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke(),h instanceof s.v&&h.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}l.className="Graphics",l.classNames=n.j.classNames.concat([l.className])},6881:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var s=i(2010),n=i(5071),r=i(751);class o extends s.A{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(t){let e=t.get("paddingLeft",0),i=t.get("paddingRight",0),n=t.get("paddingTop",0),o=t.maxWidth()-e-i,a=o,h=1;(0,s.j)(t,(t=>{if(t.get("visible")&&t.getPrivate("visible")&&!t.get("forceHidden")&&"absolute"!=t.get("position")){let e=t.width();eh&&(h=e)}})),a=r.fitToRange(a,1,o),h=r.fitToRange(h,1,o);let l=1;l=this.get("fixedWidthGrid")?o/h:o/a,l=Math.max(1,Math.floor(l)),l=Math.min(this.get("maxColumns",Number.MAX_VALUE),l);let c=this.getColumnWidths(t,l,h,o),u=n,d=0,p=0;l=c.length;let g=e;(0,s.j)(t,(t=>{if("relative"==t.get("position")&&t.isVisible()){const i=t.get("marginTop",0),s=t.get("marginBottom",0);let n=t.adjustedLocalBounds(),r=t.get("marginLeft",0),o=t.get("marginRight",0),a=g+r-n.left,h=u+i-n.top;t.setPrivate("x",a),t.setPrivate("y",h),g+=c[d]+o,p=Math.max(p,t.height()+i+s),d++,d>=l&&(d=0,g=e,u+=p,p=0)}}))}getColumnWidths(t,e,i,r){let o=0,a=[],h=0;return(0,s.j)(t,(s=>{let n=s.adjustedLocalBounds();"absolute"!=s.get("position")&&s.isVisible()&&(this.get("fixedWidthGrid")?a[h]=i:a[h]=Math.max(0|a[h],n.right-n.left+s.get("marginLeft",0)+s.get("marginRight",0)),h{o+=t})),o>r?e>2?(e-=1,this.getColumnWidths(t,e,i,r)):[r]:a}}o.className="GridLayout",o.classNames=s.A.classNames.concat([o.className])},4431:function(t,e,i){"use strict";i.d(e,{G:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingLeft",0),i=t.innerWidth(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minWidth",t.getPrivate("minWidth",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.width()),i-=e+t.get("marginLeft",0)+t.get("marginRight",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginLeft",0)-t.get("marginRight",0),n=t.get("minWidth",t.getPrivate("minWidth",-1/0)),r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("width",s)}else t._prevSettings.width instanceof r.gG&&t.setPrivate("width",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginLeft",0),s=t.get("marginRight",0),n=t.get("maxWidth"),r=e.left,o=e.right;n&&o-r>n&&(o=r+n);let h=a+i-r;t.setPrivate("x",h),a=h+o+s}else t.setPrivate("x",void 0)}))}}o.className="HorizontalLayout",o.classNames=s.A.classNames.concat([o.className])},962:function(t,e,i){"use strict";i.d(e,{_:function(){return h}});var s=i(2036),n=i(6245),r=i(8777),o=i(5071),a=i(5040);class h extends r.W{constructor(){super(...arguments),this._textKeys=["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),o.each(this._textKeys,(t=>{const e=this.get(t);null!=e&&this._text.set(t,e)})),""!==this.get("html","")&&this._text.set("text",""),this.onPrivate("maxWidth",(()=>{this._setMaxDimentions()})),this.onPrivate("maxHeight",(()=>{this._setMaxDimentions()}))}_makeText(){this._text=this.children.push(s.x.new(this._root,{}))}_updateChildren(){super._updateChildren();const t=this._text;if(o.each(this._textKeys,(t=>{this._text.set(t,this.get(t))})),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),""!==this.get("html","")?t.set("text",""):(t.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){const e=this.get("textAlign");let i;null!=this.get("width")?i="right"==e?n.AQ:"center"==e?n.CI:0:"left"==e||"start"==e?i=this.get("paddingLeft",0):"right"!=e&&"end"!=e||(i=-this.get("paddingRight",0)),t.set("x",i)}const e=this.get("background");e&&e.setPrivate("visible",t._display.textVisible)}_maybeUpdateHTMLColor(){const t=this.getPrivate("htmlElement");t&&this.get("fill")&&(t.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){const t=this.get("rotation"),e=90==t||270==t||-90==t,i=this._text,s=this.get("maxWidth",this.getPrivate("maxWidth",1/0));a.isNumber(s)?i.set(e?"maxHeight":"maxWidth",s-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(e?"maxHeight":"maxWidth",void 0);const n=this.get("maxHeight",this.getPrivate("maxHeight",1/0));a.isNumber(n)?i.set(e?"maxWidth":"maxHeight",n-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(e?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",(()=>{i.markDirtyBounds()}))}_setDataItem(t){super._setDataItem(t),this._markDirtyKey("text"),this._markDirtyKey("html");const e=this._text;e.get("populateText")&&e.markDirtyText();const i=this.get("html");i&&""!==i&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}}h.className="Label",h.classNames=r.W.classNames.concat([h.className])},2010:function(t,e,i){"use strict";i.d(e,{A:function(){return r},j:function(){return n}});var s=i(6331);function n(t,e){t.get("reverseChildren",!1)?t.children.eachReverse(e):t.children.each(e)}class r extends s.JH{}r.className="Layout",r.classNames=s.JH.classNames.concat([r.className])},3105:function(t,e,i){"use strict";i.d(e,{D:function(){return c}});var s=i(3399),n=i(8777),r=i(962),o=i(3497),a=i(5769),h=i(7144),l=i(7652);class c extends s.F{constructor(){super(...arguments),this.itemContainers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:o.c.new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template])))),this.markers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template])))),this.labels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template])))),this.valueLabels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template])))),this.markerRectangles=this.addDisposer(new h.o(a.YS.new({}),(()=>o.c._new(this._root,{themeTags:l.mergeTags(this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template]))))}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(t){const e=this.children.push(this.itemContainers.make());return e._setDataItem(t),this.itemContainers.push(e),e.states.create("disabled",{}),e}makeMarker(){const t=this.markers.make();return this.markers.push(t),t.states.create("disabled",{}),t}makeLabel(){const t=this.labels.make();return t.states.create("disabled",{}),t}makeValueLabel(){const t=this.valueLabels.make();return t.states.create("disabled",{}),t}makeMarkerRectangle(){const t=this.markerRectangles.make();return t.states.create("disabled",{}),t}processDataItem(t){super.processDataItem(t);const e=this.makeItemContainer(t),i=this.get("nameField"),s=this.get("fillField"),n=this.get("strokeField");if(e){const r=this.get("clickTarget","itemContainer"),o=t.dataContext;o&&o.set&&o.set("legendDataItem",t),e._setDataItem(t),t.set("itemContainer",e);const a=this.makeMarker();if(a){e.children.push(a),a._setDataItem(t),t.set("marker",a);const i=this.get("useDefaultMarker"),r=a.children.push(this.makeMarkerRectangle());let h=t.get("fill"),l=t.get("stroke");t.set("markerRectangle",r),o&&o.get&&(h=o.get(s,h),l=o.get(n,l)),l||(l=h),i?o.on&&(o.on(s,(()=>{r.set("fill",o.get(s))})),o.on(n,(()=>{r.set("stroke",o.get(n))}))):o&&o.createLegendMarker&&o.createLegendMarker(),r.setAll({fill:h,stroke:l});const c=o.component;c&&c.updateLegendMarker&&c.updateLegendMarker(o)}const h=this.makeLabel();if(h){e.children.push(h),h._setDataItem(t),t.set("label",h),h.text.on("text",(()=>{e.setRaw("ariaLabel",h.text._getText()+("none"!==this.get("clickTarget")?"; "+this._t("Press ENTER to toggle"):"")),e.markDirtyAccessibility()})),o&&o.get&&t.set("name",o.get(i));let s=t.get("name");s&&h.set("text",s)}const l=this.makeValueLabel();if(l&&(e.children.push(l),l._setDataItem(t),t.set("valueLabel",l)),o&&o.show&&(o.on("visible",(t=>{e.set("disabled",!t)})),o.get("visible")||e.set("disabled",!0),"none"!=r)){let i=e;"marker"==r&&(i=a),this._addClickEvents(i,o,t)}this.children.values.sort(((t,e)=>{const i=t.dataItem.dataContext,s=e.dataItem.dataContext;if(i&&s){const t=this.data.indexOf(i),e=this.data.indexOf(s);if(t>e)return 1;if(t{const t=e.component;t&&t.hoverDataItem&&t.hoverDataItem(e)})),t.events.on("pointerout",(()=>{const t=e.component;t&&t.hoverDataItem&&t.unhoverDataItem(e)})),t.events.on("click",(()=>{const s=i.get("label").text._getText();e.show&&e.isHidden&&(e.isHidden()||!1===e.get("visible"))?(e.show(),t.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,s))):e.hide&&(e.hide(),t.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,s)))}))}disposeDataItem(t){super.disposeDataItem(t);const e=t.dataContext;e&&e.get&&e.get("legendDataItem")==t&&e.set("legendDataItem",void 0);let i=t.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let s=t.get("marker");s&&(this.markers.removeValue(s),s.dispose());let n=t.get("markerRectangle");n&&(this.markerRectangles.removeValue(n),n.dispose());let r=t.get("label");r&&(this.labels.removeValue(r),r.dispose());let o=t.get("valueLabel");o&&(this.valueLabels.removeValue(o),o.dispose())}}c.className="Legend",c.classNames=s.F.classNames.concat([c.className])},2077:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var s=i(1479);function n(t,e){for(let i=0,s=e.length;i0){let e=s[0];if(e.length>0){let i=e[0];t.moveTo(i.x,i.y);for(let e=0,i=s.length;e0){let e=t[0];this._display.moveTo(e.x,e.y),n(this._display,[[t]])}else if(e)n(this._display,e);else if(!this.get("draw")){let t=this.width(),e=this.height();this._display.moveTo(0,0),this._display.lineTo(t,e)}}}}o.className="Line",o.classNames=s.T.classNames.concat([o.className])},5812:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var s=i(8777),n=i(941),r=i(6387),o=i(751);class a extends s.W{constructor(){super(...arguments),this.line=this.children.push(r.P.new(this._root,{themeTags:["line"]})),this.hitLine=this.children.push(r.P.new(this._root,{themeTags:["hit"]})),this.startArrow=this.children.push(n.C.new(this._root,{themeTags:["start","arrow"]})),this.endArrow=this.children.push(n.C.new(this._root,{themeTags:["end","arrow"]}))}_afterNew(){this.addTag("link"),super._afterNew()}_updateChildren(){if(super._updateChildren(),this.isDirty("points")){let t=r.P.makeOrthogonal(this.get("points",[]));this.line.set("points",t),this.hitLine.set("points",t);const e=this.startArrow,i=this.endArrow,s=t.length;if(s>1){const[n,r]=t;e.setAll({x:n.x,y:n.y,rotation:o.getAngle(n,r)-90});const a=t[s-1],h=t[s-2];i.setAll({x:a.x,y:a.y,rotation:o.getAngle(h,a)+90})}else if(1===s){const[s]=t;e.setAll({x:s.x,y:s.y,rotation:0}),i.setAll({x:s.x,y:s.y,rotation:0})}}}}a.className="Link",a.classNames=s.W.classNames.concat([a.className])},8289:function(t,e,i){"use strict";i.d(e,{G:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){return function(e){return new s(e,t)}}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(s+a,n+a*e,r-a,o-a*i,r,o)}},5892:function(t,e,i){"use strict";i.d(e,{$:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){[t,e]=[e,t];let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){function e(e){return new s(e,t)}return e.tension=function(t){return n(+t)},e}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(n+a*e,s+a,o-a*i,r-a,o,r)}},7049:function(t,e,i){"use strict";i.d(e,{l:function(){return h}});var s=i(8777),n=i(6691),r=i(7142),o=i(941),a=i(1112);class h extends s.W{constructor(){super(...arguments),this.label=this.children.push(n.Y.new(this._root,{})),this.buttonsContainer=this.children.push(s.W.new(this._root,{themeTags:["buttons"]})),this.upButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["upbutton"]})),this.downButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["downbutton"]}))}_afterNew(){this.addTag("numericstepper"),this.set("layout",this._root.horizontalLayout),this.label.adapters.add("text",(t=>(t&&t.replace(/\D/g,""),""===t&&(t="0"),t))),this.set("background",r.A.new(this._root,{fillOpacity:0,fill:(0,a.$_)(16777215)})),this.buttonsContainer.states.create("hidden",{opacity:0,visible:!0}),this.events.on("pointerover",(()=>{this.buttonsContainer.set("active",!0)})),this.events.on("pointerout",(()=>{this.buttonsContainer.set("active",!1)})),this.label.on("text",(t=>{if(t){const e=parseFloat(t);isNaN(e)||this.set("value",e)}})),this.upButton.events.on("click",(()=>{this.set("value",this.get("value",0)+1)})),this.downButton.events.on("click",(()=>{this.set("value",Math.max(0,this.get("value",0)-1))})),super._afterNew()}_updateChildren(){super._updateChildren();const t=this.get("value",0),e=this.label;if(this.isDirty("value")&&e.set("text",t.toString()),this.isDirty("disabled")){const t=this.get("disabled",!1);this.set("interactive",!t),this.upButton.set("interactive",!t),this.downButton.set("interactive",!t),t?(this.label.set("editOn","none"),this.buttonsContainer.hide(0)):(this.label.set("editOn","click"),this.buttonsContainer.show(0))}}}h.className="NumericStepper",h.classNames=s.W.classNames.concat([h.className])},6387:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),this.isDirty("points")&&(this._clear=!0)}static makeOrthogonal(t){if(t.length>1){const e=[];for(let i=0;i0&&o&&l){if(h){s=Math.min(s,Math.abs(r.x-o.x)/2,Math.abs(r.y-n.y)/2);const e=Math.sign(r.y-n.y);t.lineTo(r.x,r.y-s*e);const i=o.x{this._display.image=e,this._updateSize(),!i.isDisposed()&&i.isEnabled("loaded")&&i.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{!i.isDisposed()&&i.isEnabled("loaderror")&&i.dispatch("loaderror",{type:"loaderror",target:this})}))}}_updateSize(){super._updateSize();const t=this._display.image;if(t){let e=this.getPrivate("width",this.get("width")),i=this.getPrivate("height",this.get("height"));const s=t.width&&t.height?t.width/t.height:0;n.isNumber(e)&&n.isNumber(i)?(this._display.width=e,this._display.height=i):n.isNumber(e)&&s?i=e/s:n.isNumber(i)&&s?e=i*s:(e=t.width,i=t.height),n.isNumber(e)&&(this._display.width=e),n.isNumber(i)&&(this._display.height=i),this.markDirtyBounds(),this.markDirty()}}}r.className="Picture",r.classNames=s.j.classNames.concat([r.className])},8931:function(t,e,i){"use strict";i.d(e,{i:function(){return r}});var s=i(1479),n=i(751);class r extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let t=this.width(),e=this.height();if(t>0&&e>0){let i=this.get("cornerRadius",8);i=n.fitToRange(i,0,Math.min(t/2,e/2));let s=this.get("pointerX",0),r=this.get("pointerY",0),o=this.get("pointerBaseWidth",15)/2,a=0,h=0,l=0,c=(s-a)*(e-h)-(r-h)*(t-a),u=(s-l)*(0-e)-(r-e)*(t-l);const d=this._display;if(d.moveTo(i,0),c>0&&u>0){let e=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,-1/0,0),d.lineTo(e-o,0),d.lineTo(s,r),d.lineTo(e+o,0)}if(d.lineTo(t-i,0),d.arcTo(t,0,t,i,i),c>0&&u<0){let a=Math.round(n.fitToRange(r,i+o,e-o-i));s=n.fitToRange(s,t,1/0),d.lineTo(t,i),d.lineTo(t,Math.max(a-o,i)),d.lineTo(s,r),d.lineTo(t,a+o)}if(d.lineTo(t,e-i),d.arcTo(t,e,t-i,e,i),c<0&&u<0){let a=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,e,1/0),d.lineTo(t-i,e),d.lineTo(a+o,e),d.lineTo(s,r),d.lineTo(a-o,e)}if(d.lineTo(i,e),d.arcTo(0,e,0,e-i,i),c<0&&u>0){let t=Math.round(n.fitToRange(r,i+o,e-i-o));s=n.fitToRange(s,-1/0,0),d.lineTo(0,e-i),d.lineTo(0,t+o),d.lineTo(s,r),d.lineTo(0,Math.max(t-o,i))}d.lineTo(0,i),d.arcTo(0,0,i,0,i),d.closePath()}}}}r.className="PointedRectangle",r.classNames=s.T.classNames.concat([r.className])},7770:function(t,e,i){"use strict";i.d(e,{m:function(){return r}});var s=i(1479),n=i(5071);class r extends s.T{_beforeChanged(){if(super._beforeChanged(),this.isDirty("coordinates")){const t=[],e=this.get("coordinates");e&&n.each(e,(e=>{t.push({x:e[0],y:e[1]})})),this.set("points",t)}if(this.isPrivateDirty("points")&&(this._clear=!0),this.isDirty("points")){this._clear=!0;const t=this.get("points"),e=this._prevSettings.points;if(e){if(t){let i=n.copy(t),s=n.copy(e),r=i.length,o=s.length;if(r>o){let t=n.copy(i);for(let e=0;er){let t=n.copy(s);for(let e=0;e{this._markDirtyPrivateKey("morphProgress")}))}}else this.setPrivateRaw("previousPoints",t),this.setPrivateRaw("points",t);let i=1/0,s=-1/0,r=1/0,o=-1/0;if(t)for(let e=1,n=t.length;e{this.label.markDirtyKey("text")}))}}}l.className="ProgressPie",l.classNames=n.W.classNames.concat([l.className])},815:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(6245),n=i(962),r=i(4244),o=i(751),a=i(7652);class h extends n._{constructor(){super(...arguments),this._flipped=!1}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(r.f.new(this._root,{}))}baseRadius(){const t=this.getPrivate("radius",0),e=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return e+a.relativeToValue(i,t-e)}radius(){const t=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(t?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){const t=this.get("textType","adjusted"),e=this.get("inside",!1),i=this.get("orientation");let n=o.normalizeAngle(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",e);const r=o.sin(n),a=o.cos(n);let h=this.baseRadius(),l=this.radius();if(this._display.angle=0,"circular"==t)this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",l);else{0==h&&(n=0,l=0);let e=l*a,o=l*r;"radial"==t?(this.setRaw("x",e),this.setRaw("y",o),n<90||n>270||"auto"!=i?(this._display.angle=n,this._flipped=!1):(this._display.angle=n+180,this._flipped=!0),this._dirty.rotation=!1):"adjusted"==t?(this.setRaw("centerX",s.CI),this.setRaw("centerY",s.CI),this.setRaw("x",e),this.setRaw("y",o)):"regular"==t&&(this.setRaw("x",e),this.setRaw("y",o))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){const t=this.get("textType","regular"),e=this.get("inside",!1);let i=0,n=0,r=this.get("labelAngle",0),a=this.localBounds(),h=a.right-a.left,l=a.bottom-a.top;if("radial"==t){if(this._flipped){let t=this.get("centerX");t instanceof s.gG&&(h*=1-2*t.value),i=h*o.cos(r),n=h*o.sin(r)}}else e||"adjusted"!=t||(i=h/2*o.cos(r),n=l/2*o.sin(r));this.setRaw("dx",i),this.setRaw("dy",n),super._updatePosition()}get text(){return this._text}}h.className="RadialLabel",h.classNames=n._.classNames.concat([h.className])},4244:function(t,e,i){"use strict";i.d(e,{f:function(){return r}});var s=i(2036),n=i(751);class r extends s.x{constructor(){super(...arguments),this._display=this._root._renderer.makeRadialText("",this.textStyle)}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*n.RADIANS,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}r.className="RadialText",r.classNames=s.x.classNames.concat([r.className])},7142:function(t,e,i){"use strict";i.d(e,{A:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let t=this.width(),e=this.height(),i=0,s=0,n=t/Math.abs(t),r=e/Math.abs(e);if(this.get("containStroke",!1)){const o=this.get("strokeWidth",0);t-=o*n,e-=o*r,i+=o/2*n,s+=o/2*r}this._display.drawRect(i,s,t,e)}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Rectangle",n.classNames=s.T.classNames.concat([n.className])},3497:function(t,e,i){"use strict";i.d(e,{c:function(){return a}});var s=i(5040),n=i(751),r=i(7652),o=i(7142);class a extends o.A{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let t=this.width(),e=this.height(),i=t/Math.abs(t),o=e/Math.abs(e),a=0,h=0;const l=this.get("strokeWidth",0);this.get("containStroke",!1)&&(t-=i*l,e-=o*l,a+=i*l/2,h+=o*l/2);let c=t,u=e;if(s.isNumber(c)&&s.isNumber(u)){let t=Math.min(c,u)/2,e=r.relativeToValue(this.get("cornerRadiusTL",8),t),s=r.relativeToValue(this.get("cornerRadiusTR",8),t),l=r.relativeToValue(this.get("cornerRadiusBR",8),t),d=r.relativeToValue(this.get("cornerRadiusBL",8),t),p=Math.min(Math.abs(c/2),Math.abs(u/2));e=n.fitToRange(e,0,p),s=n.fitToRange(s,0,p),l=n.fitToRange(l,0,p),d=n.fitToRange(d,0,p);const g=this._display;g.moveTo(a+e*i,h),g.lineTo(a+c-s*i,h),s>0&&g.arcTo(a+c,h,a+c,h+s*o,s),g.lineTo(a+c,h+u-l*o),l>0&&g.arcTo(a+c,h+u,a+c-l*i,h+u,l),g.lineTo(a+d*i,h+u),d>0&&g.arcTo(a,h+u,a,h+u-d*o,d),g.lineTo(a,h+e*o),e>0&&g.arcTo(a,h,a+e*i,h,e),g.closePath()}}}a.className="RoundedRectangle",a.classNames=o.A.classNames.concat([a.className])},6001:function(t,e,i){"use strict";i.d(e,{L:function(){return l}});var s=i(3497),n=i(8777),r=i(1479),o=i(8054),a=i(5040),h=i(7652);class l extends n.W{constructor(){super(...arguments),this.thumb=this._makeThumb(),this.startGrip=this._makeButton(),this.endGrip=this._makeButton(),this._thumbBusy=!1,this._startDown=!1,this._endDown=!1,this._thumbDown=!1}_addOrientationClass(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=s.c.new(this._root,{themeTags:h.mergeTags(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(o.z.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:r.T.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(s.c.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(t){t&&this._disposers.push(t.events.on("stopped",(()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1})))}_afterNew(){this._addOrientationClass(),super._afterNew();const t=this.startGrip,e=this.endGrip,i=this.thumb,s=this.get("background");s&&this._disposers.push(s.events.on("click",(t=>{this.setPrivateRaw("isBusy",!0);const e=this._display.toLocal(t.point),s=this.width(),n=this.height(),r=this.get("orientation");let o,a,h;o="vertical"==r?(e.y-i.height()/2)/n:(e.x-i.width()/2)/s,"vertical"==r?(a=o*n,h="y"):(a=o*s,h="x");const l=this.get("animationDuration",0);l>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:h,to:a,duration:l,easing:this.get("animationEasing")}))):(this.thumb.set(h,a),this._root.events.once("frameended",(()=>{this.setPrivateRaw("isBusy",!1)})))}))),this._disposers.push(i.events.on("dblclick",(t=>{if(!h.isLocalEvent(t.originalEvent,this))return;const e=this.get("animationDuration",0),i=this.get("animationEasing");this.animate({key:"start",to:0,duration:e,easing:i}),this.animate({key:"end",to:1,duration:e,easing:i})}))),this._disposers.push(t.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"}))),this._disposers.push(e.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"}))),this._disposers.push(i.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0}))),this._disposers.push(t.events.on("globalpointerup",(()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1}))),this._disposers.push(e.events.on("globalpointerup",(()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1}))),this._disposers.push(i.events.on("globalpointerup",(()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1}))),this._disposers.push(t.on("x",(()=>{this._updateThumb()}))),this._disposers.push(e.on("x",(()=>{this._updateThumb()}))),this._disposers.push(t.on("y",(()=>{this._updateThumb()}))),this._disposers.push(e.on("y",(()=>{this._updateThumb()}))),this._disposers.push(i.events.on("positionchanged",(()=>{this._updateGripsByThumb()}))),"vertical"==this.get("orientation")?(t.set("x",0),e.set("x",0),this._disposers.push(i.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()-i.height()),0)))),this._disposers.push(i.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("x",(t=>this.width()/2))),this._disposers.push(e.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0)))),this._disposers.push(e.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0))))):(t.set("y",0),e.set("y",0),this._disposers.push(i.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()-i.width()),0)))),this._disposers.push(i.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("y",(t=>this.height()/2))),this._disposers.push(e.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))),this._disposers.push(e.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){const t="rangechanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){const t="released";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}updateGrips(){const t=this.startGrip,e=this.endGrip,i=this.get("orientation"),s=this.height(),n=this.width();"vertical"==i?(t.set("y",s*this.get("start",0)),e.set("y",s*this.get("end",1))):(t.set("x",n*this.get("start",0)),e.set("x",n*this.get("end",1)));const r=this.getPrivate("positionTextFunction"),o=Math.round(100*this.get("start",0)),a=Math.round(100*this.get("end",0));let h,l;r?(h=r.call(this,this.get("start",0)),l=r.call(this,this.get("end",0))):(h=o+"%",l=a+"%"),t.set("ariaLabel",this._t("From %1",void 0,h)),t.set("ariaValueNow",""+o),t.set("ariaValueText",o+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100"),e.set("ariaLabel",this._t("To %1",void 0,l)),e.set("ariaValueNow",""+a),e.set("ariaValueText",a+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100")}_updateThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip,s=this.height(),n=this.width();let r=e.x(),o=i.x(),h=e.y(),l=i.y(),c=0,u=1;"vertical"==this.get("orientation")?a.isNumber(h)&&a.isNumber(l)&&(this._thumbBusy||t.isDragging()||(t.set("height",l-h),t.set("y",h)),c=h/s,u=l/s):a.isNumber(r)&&a.isNumber(o)&&(this._thumbBusy||t.isDragging()||(t.set("width",o-r),t.set("x",r)),c=r/n,u=o/n),!this.getPrivate("isBusy")||this.get("start")==c&&this.get("end")==u||(this.set("start",c),this.set("end",u));const d=this.getPrivate("positionTextFunction"),p=Math.round(100*this.get("start",0)),g=Math.round(100*this.get("end",0));let f,_;d?(f=d.call(this,this.get("start",0)),_=d.call(this,this.get("end",0))):(f=p+"%",_=g+"%"),t.set("ariaLabel",this._t("From %1 to %2",void 0,f,_)),t.set("ariaValueNow",""+p),t.set("ariaValueText",p+"%")}_updateGripsByThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip;if("vertical"==this.get("orientation")){const s=t.height();e.set("y",t.y()),i.set("y",t.y()+s)}else{const s=t.width();e.set("x",t.x()),i.set("x",t.x()+s)}}}l.className="Scrollbar",l.classNames=n.W.classNames.concat([l.className])},5829:function(t,e,i){"use strict";i.d(e,{j:function(){return h}});var s=i(1337),n=i(8777),r=i(7144),o=i(6245),a=i(5071);class h extends s.k{constructor(){super(...arguments),this.seriesContainer=n.W.new(this._root,{width:o.AQ,height:o.AQ,isMeasured:!1}),this.series=new r.dn}_afterNew(){super._afterNew(),this._disposers.push(this.series);const t=this.seriesContainer.children;this._disposers.push(this.series.events.onAll((e=>{if("clear"===e.type){a.each(e.oldValues,(t=>{this._removeSeries(t)}));const t=this.get("colors");t&&t.reset();const i=this.get("patterns");i&&i.reset()}else if("push"===e.type)t.moveValue(e.newValue),this._processSeries(e.newValue);else if("setIndex"===e.type)t.setIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("insertIndex"===e.type)t.insertIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("removeIndex"===e.type)this._removeSeries(e.oldValue);else if("moveIndex"===e.type)t.moveValue(e.value,e.newIndex),this._processSeries(e.value);else{if("swap"!==e.type)throw new Error("Unknown IListEvent type");{const i=e.a,s=e.b,n=this.series.indexOf(i),r=this.series.indexOf(s);t.moveValue(i,r),t.moveValue(s,n),this.series.each((t=>{this._processSeries(t),t.markDirtyValues()}))}}})))}_processSeries(t){t.chart=this,t._placeBulletsContainer(this)}_removeSeries(t){t._handleRemoved(),t.isDisposed()||(this.seriesContainer.children.removeValue(t),t._removeBulletsContainer())}}h.className="SerialChart",h.classNames=s.k.classNames.concat([h.className])},3399:function(t,e,i){"use strict";i.d(e,{F:function(){return g}});var s=i(7582),n=i(9361),r=i(7144),o=i(1112),a=i(6490),h=i(6245),l=i(8777),c=i(962),u=i(5071),d=i(5040),p=i(1926);class g extends n.w{constructor(){super(...arguments),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1,this._dataProcessed=!1,this._baseSeriesDirty=!1,this.bullets=new r.aV,this.bulletsContainer=l.W.new(this._root,{width:h.AQ,height:h.AQ,position:"absolute"})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll((()=>{this._handleBullets(this.dataItems)})))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let t=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),t)}endIndex(){let t=this.dataItems.length;return Math.max(0,Math.min(this.getPrivate("endIndex",t),t))}_handleBullets(t){u.each(t,(t=>{const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)})),this.markDirtyValues()}_makeBullets(t){this._shouldMakeBullet(t)&&(t.bullets=[],this.bullets.each((e=>{this._makeBullet(t,e)})))}_shouldMakeBullet(t){return!0}_makeBullet(t,e,i){const s=e(this._root,this,t);return s&&(s._index=i,this._makeBulletReal(t,s)),s}_makeBulletReal(t,e){let i=e.get("sprite");i&&(i._setDataItem(t),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),e.series=this,t.bullets.push(e)}addBullet(t,e){t.bullets||(t.bullets=[]),e&&this._makeBulletReal(t,e)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();const t=this.dataItems,e=t.length;let i=this.startIndex(),s=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const t=this.getPrivate("baseValueSeries");t&&this._disposers.push(t.onPrivate("startIndex",(()=>{this._baseSeriesDirty=!0,this.markDirtyValues()})))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,e),this._aggregatesCalculated=!0,0!=i&&(this._psi=void 0))),this._psi==i&&this._pei==s&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===i&&s===e&&this._aggregatesCalculated||this._calculateAggregates(i,s),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let t=this.get("tooltip");t&&(t.hide(0),t.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let t;const e=this.get("legendDataItem");if(e&&(t=e.get("markerRectangle"),t&&this.isVisible())){if(this.isDirty("stroke")){let e=this.get("stroke");t.set("stroke",e)}if(this.isDirty("fill")){let e=this.get("fill");t.set("fill",e)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let i=this.startIndex(),s=this.endIndex();s-1==s.indexOf(t))));const n={},r={},o={},a={},h={},l={},c={},u={},d={};for(let t=0,e=i.length;t{if(0===t){const t=l[x],s=i-t;e.setRaw(_,s),e.setRaw(m,s/t*100)}const n=i-d[x],r=i-l[x];e.setRaw(y,n),e.setRaw(v,n/d[x]*100),e.setRaw(w,r),e.setRaw(b,r/l[x]*100),d[s]=i};for(let t=k;tt&&(a[f]=t),h[f]0&&t--,delete d[f];for(let e=t;e0&&u.each(t,(t=>{const e=t.minValue||this.getPrivate(t.dataField+"Low")||0,i=t.maxValue||this.getPrivate(t.dataField+"High")||0;u.each(t.target._entities,(s=>{const n=s.dataItem.get(t.dataField);if(!d.isNumber(n)){t.neutral&&s.set(t.key,t.neutral);const e=s.states;if(e){const i=e.lookup("default");i&&t.neutral&&i.set(t.key,t.neutral)}if(!t.customFunction)return}if(t.customFunction)t.customFunction.call(this,s,e,i,n);else{let r,l;r=t.logarithmic?(Math.log(n)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E):(n-e)/(i-e),!d.isNumber(n)||d.isNumber(r)&&Math.abs(r)!=1/0||(r=.5),d.isNumber(t.min)?l=t.min+(t.max-t.min)*r:t.min instanceof o.Il?l=o.Il.interpolate(r,t.min,t.max):t.min instanceof h.gG&&(l=(0,a.Wn)(r,t.min,t.max)),s.set(t.key,l);const c=s.states;if(c){const e=c.lookup("default");e&&e.set(t.key,l)}}}))})),this.get("visible")){const t=this.dataItems;let e=t.length,i=this.startIndex(),s=this.endIndex();s0&&i--;for(let e=0;e{this._positionBullet(t);const e=t.get("sprite");t.get("dynamic")&&(e&&(e._markDirtyKey("fill"),e.markDirtySize()),e instanceof l.W&&e.walkChildren((t=>{t._markDirtyKey("fill"),t.markDirtySize(),t instanceof c._&&t.text.markDirtyText()}))),e instanceof c._&&e.get("populateText")&&e.text.markDirtyText()}))}_hideBullets(t){t.bullets&&u.each(t.bullets,(t=>{let e=t.get("sprite");e&&e.setPrivate("visible",!1)}))}_positionBullet(t){}_placeBulletsContainer(t){t.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const t=this.bulletsContainer;t.parent&&t.parent.children.removeValue(t)}disposeDataItem(t){const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.show(e))})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.hide(e))})),yield Promise.all(s)}))}_sequencedShowHide(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(d.isNumber(e)||(e=this.get("interpolationDuration",0)),e>0){const i=this.startIndex(),n=this.endIndex();yield Promise.all(u.map(this.dataItems,((r,o)=>(0,s.mG)(this,void 0,void 0,(function*(){let s=e||0;(on+10)&&(s=0);let a=this.get("sequencedDelay",0)+s/(n-i);yield p.sleep(a*(o-i)),t?yield this.showDataItem(r,s):yield this.hideDataItem(r,s)})))))}else yield Promise.all(u.map(this.dataItems,(e=>t?this.showDataItem(e,0):this.hideDataItem(e,0))))}))}updateLegendValue(t){if(t){const e=t.get("legendDataItem");if(e){const i=e.get("valueLabel");if(i){const e=i.text;let s="";i._setDataItem(t),s=this.get("legendValueText",e.get("text","")),i.set("text",s),e.markDirtyText()}const s=e.get("label");if(s){const e=s.text;let i="";s._setDataItem(t),i=this.get("legendLabelText",e.get("text","")),s.set("text",i),e.markDirtyText()}}}}updateLegendMarker(t){}_onHide(){super._onHide();const t=this.getTooltip();t&&t.hide()}hoverDataItem(t){}unhoverDataItem(t){}_getBase(t){const e=this.dataItems[this.startIndex()];return e?e.get(t):0}}g.className="Series",g.classNames=n.w.classNames.concat([g.className])},5863:function(t,e,i){"use strict";i.d(e,{p:function(){return h}});var s=i(1479),n=i(5040),r=i(6245),o=i(832),a=i(751);class h extends s.T{constructor(){super(...arguments),this.ix=0,this.iy=0,this._generator=(0,o.Z)()}_getTooltipPoint(){let t=this.get("tooltipX"),e=this.get("tooltipY"),i=0,s=0;n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e);let o=this.get("radius",0),a=this.get("innerRadius",0);return o+=this.get("dRadius",0),a+=this.get("dInnerRadius",0),a<0&&(a=o+a),t instanceof r.gG&&(i=this.ix*(a+(o-a)*t.value)),e instanceof r.gG&&(s=this.iy*(a+(o-a)*e.value)),this.get("arc")>=360&&0==a&&(i=0,s=0),{x:i,y:s}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this.get("startAngle",0),e=this.get("arc",0);const i=this._generator;e<0&&(t+=e,e*=-1),e>.1&&i.cornerRadius(this.get("cornerRadius",0)),i.context(this._display);let s=this.get("radius",0),n=this.get("innerRadius",0);s+=this.get("dRadius",0),n+=this.get("dInnerRadius",0),n<0&&(n=s+n),i({innerRadius:n,outerRadius:s,startAngle:(t+90)*a.RADIANS,endAngle:(t+e+90)*a.RADIANS});let r=t+e/2;this.ix=a.cos(r),this.iy=a.sin(r);const o=this.get("shiftRadius",0);this.setRaw("dx",this.ix*o),this.setRaw("dy",this.iy*o),this.markDirtyPosition()}}}h.className="Slice",h.classNames=s.T.classNames.concat([h.className])},2162:function(t,e,i){"use strict";i.d(e,{i:function(){return n}});var s=i(6001);class n extends s.L{_afterNew(){this._addOrientationClass(),super._afterNew(),this.endGrip.setPrivate("visible",!1),this.thumb.setPrivate("visible",!1)}updateGrips(){super.updateGrips();const t=this.startGrip;this.endGrip.setAll({x:t.x(),y:t.y()}),this.setRaw("end",this.get("start"))}}n.className="Slider",n.classNames=s.L.classNames.concat([n.className])},4596:function(t,e,i){"use strict";i.d(e,{j:function(){return _}});var s=i(7582),n=i(6331),r=i(5769),o=i(6245),a=i(9770),h=i(7449),l=i(6490),c=i(7652),u=i(5071),d=i(5040),p=i(256),g=i(751);class f extends a.p{constructor(t){super(),this._rendererDisposers={},this._dispatchParents=!0,this._sprite=t}_makePointerEvent(t,e){return{type:t,originalEvent:e.event,point:e.point,simulated:e.simulated,native:e.native,target:this._sprite}}_onRenderer(t,e){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[t];if(void 0===i){const s=this._sprite._display.on(t,(t=>{e.call(this,t)}));i=this._rendererDisposers[t]=new h.DM((()=>{delete this._rendererDisposers[t],s.dispose()}))}return i.increment()}_on(t,e,i,s,n,r,o){const a=super._on(t,e,i,s,n,r,o),l=f.RENDERER_EVENTS[e];return void 0!==l&&(a.disposer=new h.FV([a.disposer,this._onRenderer(e,l)])),a}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(t,e){const i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(t,e),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(t,e)}finally{this._dispatchParents=i}}}f.RENDERER_EVENTS={click:function(t){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",t))&&this.dispatch("click",this._makePointerEvent("click",t))},rightclick:function(t){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",t))},middleclick:function(t){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",t))},dblclick:function(t){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",t))},pointerover:function(t){const e=this._sprite;let i=!0;if(e.getPrivate("trustBounds")){e._getBounds();const s=e.globalBounds();if(e.isType("Graphics")){const t=e.get("strokeWidth",1)/2;t>=1&&(s.left-=t,s.right+=t,s.top-=t,s.bottom+=t)}g.inBounds(t.point,s)||(i=!1,e._root._renderer.removeHovering(e._display))}i&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",t))},pointerout:function(t){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",t))},pointerdown:function(t){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",t))},pointerup:function(t){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",t))},globalpointerup:function(t){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",t))},globalpointermove:function(t){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",t))},wheel:function(t){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:t.event,point:t.point})}};class _ extends n.JH{constructor(){super(...arguments),this._adjustedLocalBounds={left:0,right:0,top:0,bottom:0},this._localBounds={left:0,right:0,top:0,bottom:0},this._sizeDirty=!1,this._isDragging=!1,this._isHidden=!1,this._isShowing=!1,this._isHiding=!1,this._isDown=!1,this._downPoints={}}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(t){this._markDirtyKey(t)}_markDirtyKey(t){super._markDirtyKey(t),"x"!=t&&"y"!=t&&"dx"!=t&&"dy"!=t||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(t){super._markDirtyPrivateKey(t),"x"!=t&&"y"!=t||this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new f(this)}_processTemplateField(){let t;const e=this.get("templateField");if(e){const i=this.dataItem;if(i){const s=i.dataContext;s&&(t=s[e],t instanceof r.YS||!t||(t=r.YS.new(t)))}}this._templateField!==t&&(this._removeTemplateField(),this._templateField=t,t&&t._setObjectTemplate(this),this._applyTemplates())}_setDataItem(t){const e=this._dataItem;this._dataItem=t,this._processTemplateField();const i="dataitemchanged";t!=e&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:e,newDataItem:t})}set dataItem(t){this._setDataItem(t)}get dataItem(){if(this._dataItem)return this._dataItem;{let t=this._parent;for(;t;){if(t._dataItem)return t._dataItem;t=t._parent}}}_addPercentageSizeChildren(){let t=this.parent;t&&(this.get("width")instanceof o.gG||this.get("height")instanceof o.gG?u.pushOne(t._percentageSizeChildren,this):u.removeFirst(t._percentageSizeChildren,this))}_addPercentagePositionChildren(){let t=this.parent;t&&(this.get("x")instanceof o.gG||this.get("y")instanceof o.gG?u.pushOne(t._percentagePositionChildren,this):u.removeFirst(t._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const t=this._localBounds;if(t){const e=this.get("centerX");null!=e&&(this._display.pivot.x=t.left+c.relativeToValue(e,t.right-t.left));const i=this.get("centerY");null!=i&&(this._display.pivot.y=t.top+c.relativeToValue(i,t.bottom-t.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const t=this._prevSettings.tooltip;t&&t.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0);const e=this._tooltipPointerDp;e&&(e.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))),this._tooltipPointerDp=new h.FV([this.events.on("pointerover",(()=>{this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))})),this.events.on("pointerout",(()=>{const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0)}))]))}}_handleStates(){this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();const t=this._display,e=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new h.FV([e.on("pointerdown",(t=>{this.dragStart(t)})),e.on("globalpointermove",(t=>{this.dragMove(t)})),e.on("globalpointerup",(t=>{this.dragStop(t)}))])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),t.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const t=this.get("tooltipText"),i=this.get("tooltipHTML"),s=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(t||i)&&("click"==s?(this._tooltipDp=new h.FV([e.on("click",(()=>{this.setTimeout((()=>{const t=this.getTooltip();t&&!t.isHidden()&&t.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()}),10)})),c.addEventListener(document,"click",(t=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)):"always"==s||(this._tooltipDp=new h.FV([e.on("pointerover",(()=>{this.showTooltip()})),e.on("pointerout",(()=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let t=this.get("toggleKey");t&&"none"!=t?this._toggleDp=e.on("click",(()=>{this._isDragging||this.set(t,!this.get(t))})):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(t.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),t.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),t.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?t.visible=!0:(t.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const t=this.parent;t&&(this.isDirty("width")&&this.get("width")instanceof o.gG||this.isDirty("height")&&this.get("height")instanceof o.gG)&&(t.markDirty(),t._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const e=this.get("wheelable");e&&this.set("interactive",!0),t.wheelable=!!e}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(t.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){const t=this.get("blur",0);0!=t&&(i+=" blur("+t+"px)")}if(this.isDirty("saturate")){const t=this.get("saturate",1);1!=t&&(i+=" saturate("+t+")")}if(this.isDirty("brightness")){const t=this.get("brightness",1);1!=t&&(i+=" brightness("+t+")")}if(this.isDirty("contrast")){const t=this.get("contrast",1);1!=t&&(i+=" contrast("+t+")")}if(this.isDirty("sepia")){const t=this.get("sepia",0);0!=t&&(i+=" sepia("+t+")")}if(this.isDirty("hue")){const t=this.get("hue",0);0!=t&&(i+=" hue-rotate("+t+"deg)")}if(this.isDirty("invert")){const t=this.get("invert",0);0!=t&&(i+=" invert("+t+")")}if(i&&(t.filter=i),this.isDirty("cursorOverStyle")&&(t.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new h.FV([e.on("focus",(()=>{this.showTooltip()})),e.on("blur",(()=>{this.hideTooltip()}))]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(e.on("blur",(()=>{this.setPrivateRaw("touchHovering",!1)}))),this._disposers.push(e.once("boundschanged",(()=>{this.markDirtyAccessibility()})))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(t.exportable=this.get("exportable")),this.isDirty("interactive")){const t=this.events;this.get("interactive")&&!t.isDisposed()?this._hoverDp=new h.FV([t.on("click",(t=>{c.isTouchEvent(t.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout((()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}),10))})),t.on("globalpointerup",(t=>{c.isTouchEvent(t.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})),this._isDown&&this._handleUp(t)})),t.on("pointerover",(()=>{this._handleOver()})),t.on("pointerout",(()=>{this._handleOut()})),t.on("pointerdown",(t=>{this._handleDown(t)}))]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}dragStart(t){this._dragEvent=t,this.events.stopParentDispatch()}dragStop(t){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const e="dragstop";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(t){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const e=c.getPointerId(t.originalEvent);delete this._downPoints[e],0==p.keys(this._downPoints).length&&(this._isDown=!1)}}_hasMoved(t){const e=c.getPointerId(t.originalEvent),i=this._downPoints[e];if(i){const e=Math.abs(i.x-t.point.x),s=Math.abs(i.y-t.point.y);return e>5||s>5}return!1}_hasDown(){return p.keys(this._downPoints).length>0}_handleDown(t){const e=this.parent;if(e&&!this.get("draggable")&&e._handleDown(t),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:t.point.x,y:t.point.y},this._isDown=!0;const e=c.getPointerId(t.originalEvent);this._downPoints[e]={x:t.point.x,y:t.point.y}}}dragMove(t){let e=this._dragEvent;if(e){if(e.simulated&&!t.simulated)return!0;let i=0,s=this.parent,n=1;for(;null!=s;)i+=s.get("rotation",0),s=s.parent,s&&(n*=s.get("scale",1));let r=(t.point.x-e.point.x)/n,o=(t.point.y-e.point.y)/n;const a=this.events;if(e.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}if(this._isDragging){let e=this._dragPoint;this.set("x",e.x+r*g.cos(i)+o*g.sin(i)),this.set("y",e.y+o*g.cos(i)-r*g.sin(i));const s="dragged";a.isEnabled(s)&&a.dispatch(s,{type:s,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}else if(Math.hypot(r,o)>5){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let t=this.parent,e=0;for(;;){if(!t)return e;++e,t=t.parent}}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const t=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),t.isMeasured=!0,t.invalidateBounds();const e=this.parent;e&&"absolute"!=this.get("position")&&(null==e.get("width")||null==e.get("height")||e.get("layout"))&&e.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const t=this._adjustedLocalBounds;let e;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),e=this._adjustedLocalBounds):(e={left:0,right:0,top:0,bottom:0},this._localBounds=e,this._adjustedLocalBounds=e),!t||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom){const t="boundschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(t){let e=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));d.isNumber(e)&&t.right-t.left0?t.right=t.left+s:t.left=t.right+s),d.isNumber(n)&&(n>0?t.bottom=t.top+n:t.top=t.bottom+n)}_removeParent(t){t&&(t.children.removeValue(this),u.removeFirst(t._percentageSizeChildren,this),u.removeFirst(t._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(t){if(!this.isDisposed()){const e=this.getTooltip(),i=this.get("tooltipText"),s=this.get("tooltipHTML");if((i||s)&&e){const n=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);if("fixed"!=n&&t||(this._display._setMatrix(),t=this.toGlobal(r._getTooltipPoint())),"pointer"==n){const e=this.getPrivate("lastTooltipCoords");if(e&&e.x==t.x&&e.y==t.y)return;this.setPrivate("lastTooltipCoords",t)}e.set("pointTo",t),e.set("tooltipTarget",r),e.get("x")||e.set("x",t.x),e.get("y")||e.set("y",t.y),i&&e.label.set("text",i),s&&e.label.set("html",s);const o=this.dataItem;if(o&&e.label._setDataItem(o),"always"==this.get("showTooltipOn")&&(t.x<0||t.x>this._root.width()||t.y<0||t.y>this._root.height()))return void this.hideTooltip();e.label.text.markDirtyText();const a=e.show();return this.setPrivateRaw("showingTooltip",!0),a}}}hideTooltip(){const t=this.getTooltip();if(t&&(this.removePrivate("lastTooltipCoords"),t.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==t)){let e=t.get("keepTargetHover")&&0==t.get("stateAnimationDuration",0)?400:void 0;const i=t.hide(e);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){const t=this._localBounds;if(t){let e=0,i=0;return this.get("isMeasured")?(e=t.left+c.relativeToValue(this.get("tooltipX",0),t.right-t.left),i=t.top+c.relativeToValue(this.get("tooltipY",0),t.bottom-t.top)):(e=c.relativeToValue(this.get("tooltipX",0),this.width()),i=c.relativeToValue(this.get("tooltipY",0),this.height())),{x:e,y:i}}return{x:0,y:0}}getTooltip(){let t=this.get("tooltip");if(t)return t;{let t=this.parent;if(t)return t.getTooltip()}}_updatePosition(){const t=this.parent;let e=this.get("dx",0),i=this.get("dy",0),s=this.get("x"),n=this.getPrivate("x"),r=0,a=0;const h=this.get("position");s instanceof o.gG&&(s=t?t.innerWidth()*s.value+t.get("paddingLeft",0):0),d.isNumber(s)?r=s+e:null!=n?r=n:t&&"relative"==h&&(r=t.get("paddingLeft",0)+e);let l=this.get("y"),c=this.getPrivate("y");l instanceof o.gG&&(l=t?t.innerHeight()*l.value+t.get("paddingTop",0):0),d.isNumber(l)?a=l+i:null!=c?a=c:t&&"relative"==h&&(a=t.get("paddingTop",0)+i);const u=this._display;if(u.x!=r||u.y!=a){u.invalidateBounds(),u.x=r,u.y=a;const t="positionchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let t=this.get("x"),e=this.getPrivate("x");const i=this.parent;return i?t instanceof o.gG?c.relativeToValue(t,i.innerWidth())+i.get("paddingLeft",0):d.isNumber(t)?t:null!=e?e:i.get("paddingLeft",this._display.x):this._display.x}y(){let t=this.getPrivate("y");if(null!=t)return t;let e=this.get("y");const i=this.parent;return i?e instanceof o.gG?c.relativeToValue(e,i.innerHeight())+i.get("paddingTop",0):d.isNumber(e)?e:null!=t?t:i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const t=this.get("tooltip");t&&t.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const t=this._adjustedLocalBounds,e=this.x(),i=this.y();return{left:t.left+e,right:t.right+e,top:t.top+i,bottom:t.bottom+i}}globalBounds(){const t=this.localBounds(),e=this.toGlobal({x:t.left,y:t.top}),i=this.toGlobal({x:t.right,y:t.top}),s=this.toGlobal({x:t.right,y:t.bottom}),n=this.toGlobal({x:t.left,y:t.bottom});return{left:Math.min(e.x,i.x,s.x,n.x),top:Math.min(e.y,i.y,s.y,n.y),right:Math.max(e.x,i.x,s.x,n.x),bottom:Math.max(e.y,i.y,s.y,n.y)}}_onShow(t){}_onHide(t){}appear(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.hide(0),e?new Promise(((i,s)=>{this.setTimeout((()=>{i(this.show(t))}),e)})):this.show(t)}))}show(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(t);const e=this.states.applyAnimate("default",t);yield(0,l.ne)(e),this._isShowing=!1}}))}hide(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let e=this.states.lookup("hidden");e||(e=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(t);const i=this.states.applyAnimate("hidden",t);yield(0,l.ne)(i),this._isHiding=!1}}))}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const t=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*t:t}compositeScale(){const t=this.get("scale",1);return this._parent?this._parent.compositeScale()*t:t}compositeRotation(){const t=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+t:t}width(){let t=this.get("width"),e=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),s=this.getPrivate("width"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerWidth()*t.value:this._root.width()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}maxWidth(){let t=this.get("maxWidth",this.getPrivate("maxWidth"));if(d.isNumber(t))return t;{let t=this.get("width");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerWidth():this._root.width()}maxHeight(){let t=this.get("maxHeight",this.getPrivate("maxHeight"));if(d.isNumber(t))return t;{let t=this.get("height");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerHeight():this._root.height()}height(){let t=this.get("height"),e=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),s=this.getPrivate("height"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerHeight()*t.value:this._root.height()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}_findStaticTemplate(t){return this._templateField&&t(this._templateField)?this._templateField:super._findStaticTemplate(t)}_walkParents(t){(this._parent||this._virtualParent)&&this._walkParent(t)}_walkParent(t){this._parent?this._parent._walkParent(t):this._virtualParent&&this._virtualParent._walkParent(t),t(this)}set virtualParent(t){this._virtualParent!==t&&(this._virtualParent=t,this._applyThemes())}get parent(){return this._parent}_setParent(t,e=!1){const i=this._parent;t!==i&&(this.markDirtyBounds(),t.markDirty(),this._parent=t,e&&(this._removeParent(i),t&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(t){return this._display.toGlobal(t)}toLocal(t){return this._display.toLocal(t)}_getDownPoint(){const t=this._getDownPointId();if(t)return this._downPoints[t]}_getDownPointId(){if(this._downPoints)return p.keysOrdered(this._downPoints,((t,e)=>t>e?1:t{this._resize(t.target,-1)})),this.gripR.events.on("dragged",(t=>{this._resize(t.target,1)})),this.gripL.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripR.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripT.events.on("dragged",(t=>{this._rotate(t,90)})),this.gripB.events.on("dragged",(t=>{this._rotate(t,-90)})),this.gripT.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripB.events.on("dragstart",(t=>{this._resizeStart(t.target)}))}_resizeStart(t){const e=this.get("sprite");e&&(this._is=e.get("scale",1),this._ix=t.x(),this._iw=this.width()/2)}_resize(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=Math.max(.01,this._is*(1+e*(t.x()-this._ix)/this._iw));s?s.set("scale",n):i.set("scale",n),i.states.lookup("default").set("scale",n),this._updatePositions()}}_rotate(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=this.parent;if(n){const r=this.get("rotationStep",10);let o=Math.round((h.getAngle({x:this.x(),y:this.y()},n.toLocal(t.point))+e)/r)*r;s?s.set("rotation",o):i.set("rotation",o),i.states.lookup("default").set("rotation",o),this._updatePositions()}}}_createGrip(t){const e=this.children.push(s.W.new(this._root,{themeTags:["grip",t],setStateOnChildren:!0,draggable:!0}));return e.children.push(r.c.new(this._root,{themeTags:["outline"],centerX:n.CI,centerY:n.CI})),e.children.push(r.c.new(this._root,{centerX:n.CI,centerY:n.CI})),e}_updateChildren(){if(super._updateChildren(),this.isDirty("sprite")){const t=this.get("sprite");if(t){this.show(0),this.setPrivate("visible",!0),this._updatePositions();const e=t.parent;e&&e.children.moveValue(this,0),this._positionDP=t.events.on("positionchanged",(()=>{this._updatePositions()})),this._positionDP=t.events.on("boundschanged",(()=>{this._updatePositions()}))}else this.hide(0),this.setPrivate("visible",!1),this._positionDP&&this._positionDP.dispose()}(this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation"))&&this._updatePositions()}_updatePositions(){const t=this.get("sprite");if(t){let e=t.localBounds(),i=t.get("scale",1),s=20,r=(e.right-e.left)*i+s,o=(e.bottom-e.top)*i+s,a=t.get("rotation",0);const l=this.rectangle;let c=t.get("centerX",n.CI),u=t.get("centerY",n.CI),d=0;c instanceof n.gG&&(d=c.value);let p=0;u instanceof n.gG&&(p=u.value),l.setAll({centerX:c,centerY:u,width:r,height:o}),this.setAll({x:t.x()+s*(d-.5)*h.cos(a)-s*(p-.5)*h.sin(a),y:t.y()+s*(p-.5)*h.cos(a)+s*(d-.5)*h.sin(a),width:r,height:o,rotation:a}),this.gripT.setAll({x:(.5-d)*r,y:-p*o}),this.gripB.setAll({x:(.5-d)*r,y:(1-p)*o}),this.gripL.setAll({x:-d*r,y:(.5-p)*o}),this.gripR.setAll({x:(1-d)*r,y:(.5-p)*o}),this.rectangle.setAll({width:r,height:o})}}}l.className="SpriteResizer",l.classNames=s.W.classNames.concat([l.className])},2036:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(4596),n=i(2132),r=i(5071),o=i(7652),a=i(7449);class h extends s.j{constructor(){super(...arguments),this.textStyle=this._root._renderer.makeTextStyle(),this._display=this._root._renderer.makeText("",this.textStyle),this._textStyles=["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}_updateBounds(){if(this.get("text")){super._updateBounds();let t=this.get("fillGradient");t&&(this._display.style.fill=t.getFill(this))}else{let t={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=t}}_changed(){super._changed(),this._display.clear();let t=this.textStyle;if(this.isDirty("opacity")){let t=this.get("opacity",1);this._display.alpha=t}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),"tooltip"==this.get("role")&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new a.ku((()=>{this._root._removeTooltipElement(this)}))),this.isDirty("width")&&(t.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(t.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(t.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(t.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(t.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(t.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){const e=this.get("fill"),i=this.get("fillGradient"),s=this.get("fillOpacity");if(i){if(e){const t=i.get("stops",[]);t.length&&r.each(t,(t=>{t.color&&!t.colorInherited||!e||(t.color=e,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=s,t.opacityInherited=!0)}))}t.fill=i.getFill(this)}else e&&(t.fill=e)}if(this.isDirty("fillOpacity")){let e=this.get("fillOpacity",1);e&&(t.fillOpacity=e)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(t.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(t.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),r.each(this._textStyles,(e=>{this._dirty[e]&&(t[e]=this.get(e),this.markDirtyBounds())})),t.fontSize=this.get("fontSize"),t.fontFamily=this.get("fontFamily"),this._display.style=t,this.isDirty("role")&&"tooltip"==this.get("role")&&this._root.updateTooltip(this)}_getText(){let t=this.get("text","");return this.get("maxChars")&&(t=o.truncateTextWithEllipsis(t,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?(0,n.q)(this,t):t}_getAccessibleText(){const t=this.get("ariaLabel");return void 0!==t?this.get("populateText")?(0,n.q)(this,t):t:this._getText()}markDirtyText(){this._display.text=this._getText(),"tooltip"==this.get("role")&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(t){super._setDataItem(t),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}h.className="Text",h.classNames=s.j.classNames.concat([h.className])},2438:function(t,e,i){"use strict";i.d(e,{d:function(){return n}});var s=i(2077);class n extends s.x{}n.className="Tick",n.classNames=s.x.classNames.concat([n.className])},2876:function(t,e,i){"use strict";i.d(e,{u:function(){return d}});var s=i(7449),n=i(962),r=i(8931),o=i(8777),a=i(6245),h=i(1112),l=i(751),c=i(5071),u=i(7652);class d extends o.W{constructor(t,e,i,s=[]){super(t,e,i,s),this._fx=0,this._fy=0,this._w=0,this._h=0,this._htmlContentHovered=!1}_afterNew(){this._settings.themeTags=u.mergeTags(this._settings.themeTags,["tooltip"]),super._afterNew(),this._setDefaultFn("background",(()=>r.i.new(this._root,{}))).set("themeTags",["tooltip","background"]),this._label=this.children.push(n._.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",(()=>{this._updateBackground()}))),this._disposers.push(this.on("bounds",(()=>{this._updateBackground()}))),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",(t=>{t&&(this._disposers.push(u.addEventListener(t,"pointerover",(t=>{this._htmlContentHovered=!0}))),this._disposers.push(u.addEventListener(t,"pointerout",(t=>{this._htmlContentHovered=!1}))))}))),this.on("visible",(t=>{this._handleReaderAnnouncement()})),this.label.events.on("dataitemchanged",(t=>{this._handleReaderAnnouncement()})),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),c.remove(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width"),null!=this.get("labelText")&&this.label.set("text",this.get("labelText")),null!=this.get("labelHTML")&&this.label.set("html",this.get("labelHTML")),null!=this.get("labelAriaLabel")&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover"))if(this.get("keepTargetHover")){const t=this.get("background");this._keepHoverDp=new s.FV([t.events.on("pointerover",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),e.hover())})),t.events.on("pointerout",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),this._htmlContentHovered||e.unhover())}))]),this.label.onPrivate("htmlElement",(e=>{this._keepHoverDp&&e&&this._keepHoverDp.disposers.push(u.addEventListener(e,"pointerleave",(e=>{const i=this.root._renderer.getEvent(e);t.events.dispatch("pointerout",{type:"pointerout",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))}))}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let t=this.get("tooltipTarget");const e=this.get("background");let i,s;if(t&&e){if(i=t.get("fill"),s=t.get("stroke"),null==i&&(i=s),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),null!=i&&e.set("fill",i),this._fillDp=t.on("fill",(t=>{null!=t&&(e.set("fill",t),this._updateTextColor(t))})),this._disposers.push(this._fillDp)),this.get("getFillGradientFromSprite")){this._fillGrDp&&this._fillGrDp.dispose();let i=t.get("fillGradient");null!=i&&e.set("fillGradient",i),this._fillGrDp=t.on("fillGradient",(t=>{null!=t&&e.set("fillGradient",t)})),this._disposers.push(this._fillGrDp)}this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),null!=i&&e.set("stroke",i),this._strokeDp=t.on("fill",(t=>{null!=t&&e.set("stroke",t)})),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),null!=i&&this.label.set("fill",i),this._labelDp=t.on("fill",(t=>{null!=t&&this.label.set("fill",t)})),this._disposers.push(this._labelDp))}this._updateTextColor(i)}_updateTextColor(t){this.get("autoTextColor")&&(null==t&&(t=this.get("background").get("fill")),null==t&&(t=this._root.interfaceColors.get("background")),t instanceof h.Il&&this.label.set("fill",h.Il.alternative(t,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(t){super._setDataItem(t),this.label._setDataItem(t)}_updateBackground(){super.updateBackground();const t=this._root.container;if(t){let e=.5,i=.5,s=this.get("centerX");s instanceof a.gG&&(e=s.value);let n=this.get("centerY");n instanceof a.gG&&(i=n.value);let o=t.width(),h=t.height(),c=this.parent,u=0,d=0;if(c){u=c.x(),d=c.y();const t=c.get("layerMargin");t&&(u+=t.left||0,d+=t.top||0,o+=(t.left||0)+(t.right||0),h+=(t.top||0)+(t.bottom||0))}const p=this.get("bounds",{left:-u,top:-d,right:o-u,bottom:h-d});this._updateBounds();let g=this.width(),f=this.height();0===g&&(g=this._w),0===f&&(f=this._h);let _=this.get("pointTo",{x:o/2,y:h/2}),m=_.x,y=_.y,v=this.get("pointerOrientation"),w=this.get("background"),b=0,x=0,D=0;w instanceof r.i&&(b=w.get("pointerLength",0),x=w.get("strokeWidth",0)/2,D=x,w.set("width",g),w.set("height",f));let k=0,T=0,M=p.right-p.left,E=p.bottom-p.top;"horizontal"==v||"left"==v||"right"==v?(x=0,"horizontal"==v?m>p.left+M/2?(m-=g*(1-e)+b,D*=-1):m+=g*e+b:"left"==v?m+=g*(1-e)+b:(m-=g*e+b,D*=-1)):(D=0,"vertical"==v?y>p.top+f/2+b?y-=f*(1-i)+b:(y+=f*i+b,x*=-1):"down"==v?y-=f*(1-i)+b:(y+=f*i+b,x*=-1)),m=l.fitToRange(m,p.left+g*e,p.left+M-g*(1-e))+D,y=l.fitToRange(y,p.top+f*i,p.top+E-f*(1-i))-x,k=_.x-m+g*e+D,T=_.y-y+f*i-x,this._fx=m,this._fy=y;const O=this.get("animationDuration",0);if(O>0&&this.get("visible")&&this.get("opacity")>.1){const t=this.get("animationEasing");this.animate({key:"x",to:m,duration:O,easing:t}),this.animate({key:"y",to:y,duration:O,easing:t})}else this.set("x",m),this.set("y",y);w instanceof r.i&&(w.set("pointerX",k),w.set("pointerY",T)),g>0&&(this._w=g),f>0&&(this._h=f)}}}d.className="Tooltip",d.classNames=o.W.classNames.concat([d.className])},941:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){const t=this.width(),e=this.height(),i=this._display;i.moveTo(-t/2,e/2),i.lineTo(0,-e/2),i.lineTo(t/2,e/2),i.lineTo(-t/2,e/2),i.closePath()}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Triangle",n.classNames=s.T.classNames.concat([n.className])},1706:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingTop",0),i=t.innerHeight(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minHeight",t.getPrivate("minHeight",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.height()),i-=e+t.get("marginTop",0)+t.get("marginBottom",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginTop",0)-t.get("marginBottom",0),n=t.get("minHeight",t.getPrivate("minHeight",-1/0)),r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("height",s)}else t._prevSettings.height instanceof r.gG&&t.setPrivate("height",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginTop",0),s=e.top,n=e.bottom,r=t.get("maxHeight");r&&n-s>r&&(n=s+r);let o=t.get("marginBottom",0),h=a+i-s;t.setPrivate("y",h),a=h+n+o}else t.setPrivate("y",void 0)}))}}o.className="VerticalLayout",o.classNames=s.A.classNames.concat([o.className])},6044:function(t,e,i){"use strict";i.d(e,{H:function(){return h}});var s=i(8777),n=i(8054),r=i(1479),o=i(7449),a=i(2647);class h extends s.W{constructor(){super(...arguments),this.homeButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["home"]})),this.plusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["plus"]})),this.minusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["minus"]}))}_afterNew(){super._afterNew(),this.set("position","absolute"),this.set("layout",this._root.verticalLayout),this.addTag("zoomtools"),this.plusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.minusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.homeButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("target")){const t=this.get("target"),e=this._prevSettings.target;t&&(t instanceof a.Y&&(this._targetDisposer=this.addDisposer(t.contents.on("scale",(e=>{e==t.get("minZoomLevel")?this.minusButton.set("disabled",!0):this.minusButton.set("disabled",!1),e==t.get("maxZoomLevel")?this.plusButton.set("disabled",!0):this.plusButton.set("disabled",!1)}))),this.root.events.once("frameended",(()=>{t.get("scale")==t.get("minZoomLevel")&&this.minusButton.set("disabled",!0)}))),this._disposer=new o.FV([this.plusButton.events.on("click",(()=>{t.zoomIn()})),this.minusButton.events.on("click",(()=>{t.zoomOut()})),this.homeButton.events.on("click",(()=>{t.goHome()}))])),e&&(this._disposer&&this._disposer.dispose(),this._targetDisposer&&this._targetDisposer.dispose())}}}h.className="ZoomTools",h.classNames=s.W.classNames.concat([h.className])},2647:function(t,e,i){"use strict";i.d(e,{Y:function(){return u}});var s=i(8777),n=i(6245),r=i(7142),o=i(1112),a=i(7652),h=i(751),l=i(256),c=i(5040);class u extends s.W{constructor(){super(...arguments),this._movePoints={},this._downScale=1,this._downX=0,this._downY=0,this.contents=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,x:0,y:0,draggable:!0,background:r.A.new(this._root,{fill:(0,o.$_)(16777215),fillOpacity:0})}))}_afterNew(){super._afterNew();const t=this.contents.events;this._disposers.push(t.on("pointerdown",(t=>{this._handleThisDown(t)}))),this._disposers.push(t.on("globalpointerup",(t=>{this._handleThisUp(t)}))),this._disposers.push(t.on("globalpointermove",(t=>{this._handleThisMove(t)})));const e=this.contents.get("background");e&&(e.adapters.add("width",(t=>20*Number(t))),e.adapters.add("height",(t=>20*Number(t))),e.adapters.add("x",(t=>Number(t)-e.width()/2)),e.adapters.add("y",(t=>Number(t)-e.height()/2)));const i=this.contents;i.adapters.add("x",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.width();t=Math.min(n*s,t),t=Math.max(this.width()-n*e*(1+s),t)}return t})),i.adapters.add("y",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.height();t=Math.min(n*s,t),t=Math.max(this.height()-n*e*(1+s),t)}return t}))}_prepareChildren(){super._prepareChildren(),this.isDirty("wheelable")&&this._handleSetWheel(),this.contents._display.cancelTouch=this.get("pinchZoom",!1)}_handleSetWheel(){this.get("wheelable")?(this._wheelDp&&this._wheelDp.dispose(),this._wheelDp=this.events.on("wheel",(t=>{const e=t.originalEvent;if(!a.isLocalEvent(e,this))return;e.preventDefault();const i=this.toLocal(t.point);this._handleWheelZoom(e.deltaY,i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_handleWheelZoom(t,e){let i=this.get("zoomStep",2),s=this.contents.get("scale",1),n=s;t>0?n=s/i:t<0&&(n=s*i),n!=s&&this.zoomToPoint(e,n)}zoomToPoint(t,e){e&&(e=h.fitToRange(e,this.get("minZoomLevel",1),this.get("maxZoomLevel",32)));const i=this.contents.get("scale",1);let s=t.x,n=t.y,r=s,o=n;const a=this.contents;let l=r-(s-a.x())/i*e,c=o-(n-a.y())/i*e;return this._animateTo(l,c,e),this._za}zoomIn(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)*this.get("zoomStep",2))}zoomOut(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)/this.get("zoomStep",2))}goHome(){return this._animateTo(0,0,1)}_animateTo(t,e,i){const s=this.get("animationDuration",0),n=this.get("animationEasing"),r=this.contents;this._txa=r.animate({key:"x",to:t,duration:s,easing:n}),this._tya=r.animate({key:"y",to:e,duration:s,easing:n}),this._za=r.animate({key:"scale",to:i,duration:s,easing:n})}_handleThisUp(t){this._downPoints={}}_handleThisDown(t){const e=this.contents;this._downScale=e.get("scale",1);const i=e._downPoints;let s=l.keys(i).length;if(1==s){let e=i[1];e||(e=i[0]),e&&e.x==t.point.x&&e.y==t.point.y&&(s=0)}if(s>0){this._downX=e.x(),this._downY=e.y();const t=e._getDownPointId();if(t){let i=this._movePoints[t];i&&(e._downPoints[t]=i)}}}_handleThisMove(t){const e=t.originalEvent.pointerId;this.get("pinchZoom")&&e&&(this._movePoints[e]=t.point,l.keys(this.contents._downPoints).length>1)&&this._handlePinch()}_handlePinch(){let t=0,e=[],i=[];if(l.each(this.contents._downPoints,((s,n)=>{e[t]=n;let r=this._movePoints[s];r&&(i[t]=r),t++})),e.length>1&&i.length>1){this.contents._isDragging=!1;let t=e[0],s=e[1],n=i[0],r=i[1];if(t&&s&&n&&r){t=this.toLocal(t),s=this.toLocal(s),n=this.toLocal(n),r=this.toLocal(r);let e=Math.hypot(s.x-t.x,s.y-t.y),i=Math.hypot(r.x-n.x,r.y-n.y)/e*this._downScale,o={x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2},a={x:t.x+(s.x-t.x)/2,y:t.y+(s.y-t.y)/2},h=this._downX||0,l=this._downY||0,c=this._downScale,u=o.x-(-h+a.x)/c*i,d=o.y-(-l+a.y)/c*i;this.contents.setAll({x:u,y:d,scale:i})}}}}u.className="ZoomableContainer",u.classNames=s.W.classNames.concat([u.className])},4102:function(t,e,i){"use strict";i.d(e,{mM:function(){return at},uK:function(){return rt}});var s=i(4680),n=i(1112);class r{constructor(t=1,e=0,i=0,s=1,n=0,r=0){this.a=t,this.b=e,this.c=i,this.d=s,this.tx=n,this.ty=r}setTransform(t,e,i,s,n,r=1){this.a=Math.cos(n)*r,this.b=Math.sin(n)*r,this.c=-Math.sin(n)*r,this.d=Math.cos(n)*r,this.tx=t-(i*this.a+s*this.c),this.ty=e-(i*this.b+s*this.d)}apply(t){return{x:this.a*t.x+this.c*t.y+this.tx,y:this.b*t.x+this.d*t.y+this.ty}}applyInverse(t){const e=1/(this.a*this.d+this.c*-this.b);return{x:this.d*e*t.x+-this.c*e*t.y+(this.ty*this.c-this.tx*this.d)*e,y:this.a*e*t.y+-this.b*e*t.x+(-this.ty*this.a+this.tx*this.b)*e}}append(t){const e=this.a,i=this.b,s=this.c,n=this.d;this.a=t.a*e+t.b*s,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*s,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*s+this.tx,this.ty=t.tx*i+t.ty*n+this.ty}prepend(t){const e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){const e=this.a,i=this.c;this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty}copyFrom(t){this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty}}var o=i(6245),a=i(7449),h=i(7255),l=i(7652),c=i(5071),u=i(256),d=i(5040),p=i(751),g=2*Math.PI,f=function(t,e,i,s,n,r,o){var a=t.x,h=t.y;return{x:s*(a*=e)-n*(h*=i)+r,y:n*a+s*h+o}},_=function(t,e){var i=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),s=Math.cos(t),n=Math.sin(t),r=Math.cos(t+e),o=Math.sin(t+e);return[{x:s-n*i,y:n+s*i},{x:r+o*i,y:o-r*i},{x:r,y:o}]},m=function(t,e,i,s){var n=t*i+e*s;return n>1&&(n=1),n<-1&&(n=-1),(t*s-e*i<0?-1:1)*Math.acos(n)},y=function(t){var e=t.px,i=t.py,s=t.cx,n=t.cy,r=t.rx,o=t.ry,a=t.xAxisRotation,h=void 0===a?0:a,l=t.largeArcFlag,c=void 0===l?0:l,u=t.sweepFlag,d=void 0===u?0:u,p=[];if(0===r||0===o)return[];var y=Math.sin(h*g/360),v=Math.cos(h*g/360),w=v*(e-s)/2+y*(i-n)/2,b=-y*(e-s)/2+v*(i-n)/2;if(0===w&&0===b)return[];r=Math.abs(r),o=Math.abs(o);var x=Math.pow(w,2)/Math.pow(r,2)+Math.pow(b,2)/Math.pow(o,2);x>1&&(r*=Math.sqrt(x),o*=Math.sqrt(x));var D=function(t,e,i,s,n,r,o,a,h,l,c,u){var d=Math.pow(n,2),p=Math.pow(r,2),f=Math.pow(c,2),_=Math.pow(u,2),y=d*p-d*_-p*f;y<0&&(y=0),y/=d*_+p*f;var v=(y=Math.sqrt(y)*(o===a?-1:1))*n/r*u,w=y*-r/n*c,b=l*v-h*w+(t+i)/2,x=h*v+l*w+(e+s)/2,D=(c-v)/n,k=(u-w)/r,T=(-c-v)/n,M=(-u-w)/r,E=m(1,0,D,k),O=m(D,k,T,M);return 0===a&&O>0&&(O-=g),1===a&&O<0&&(O+=g),[b,x,E,O]}(e,i,s,n,r,o,c,d,y,v,w,b),k=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],s=!0,n=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);s=!0);}catch(t){n=!0,r=t}finally{try{!s&&a.return&&a.return()}finally{if(n)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(D,4),T=k[0],M=k[1],E=k[2],O=k[3],P=Math.abs(O)/(g/4);Math.abs(1-P)<1e-7&&(P=1);var S=Math.max(Math.ceil(P),1);O/=S;for(var N=0;N1){const e=/^([01])([01])(.*)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t.splice(i,0,e[2]),++i,e[3].length>0?t[i]=e[3]:t.splice(i,1))}if(++i,s=t[i],s.length>1){const e=/^([01])(.+)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t[i]=e[2])}}}function D(t){if(0===t||1===t)return t;throw new Error("Flag must be 0 or 1")}function k(t,e){for(;(!t.interactive||e(t))&&t._parent;)t=t._parent}function T(t,e,i){return l.addEventListener(t,l.getRendererEvent(e),(t=>{const e=l.getEventTarget(t);let s=t.touches;s?(0==s.length&&(s=t.changedTouches),i(c.copy(s),e)):i([t],e)}))}function M(t){const e=document.createElement("canvas");e.width=1,e.height=1;const i=e.getContext("2d",{willReadFrequently:!0});i.drawImage(t,0,0,1,1);try{return i.getImageData(0,0,1,1),!1}catch(e){return console.warn('Image "'+t.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function E(t){t.width=0,t.height=0,t.style.width="0px",t.style.height="0px"}function O(t){return Math.floor(t)+.5}class P{constructor(){this._x=0,this._y=0}get x(){return this._x}get y(){return this._y}set x(t){this._x=t}set y(t){this._y=t}}class S extends a.KK{constructor(t){super(),this.mask=null,this.visible=!0,this.exportable=!0,this.interactive=!1,this.inactive=null,this.wheelable=!1,this.cancelTouch=!1,this.isMeasured=!1,this.buttonMode=!1,this.alpha=1,this.compoundAlpha=1,this.angle=0,this.scale=1,this.x=0,this.y=0,this.crisp=!1,this.pivot=new P,this._localMatrix=new r,this._matrix=new r,this._uMatrix=new r,this._renderer=t}subStatus(t){return{inactive:null==this.inactive?t.inactive:this.inactive,layer:this._layer||t.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let t=this;for(;;){if(t._layer)return t._layer;if(!t._parent)return this._renderer.defaultLayer;t=t._parent}}setLayer(t,e){if(null==t)this._layer=void 0;else{const i=!0;this._layer=this._renderer.getLayer(t,i),this._layer.visible=i,this._layer.margin=e,e&&l.setInteractive(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost()}}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(t){}_getColorId(){return void 0===this._colorId&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(t){return!t.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(t){return this._isInteractive(t)}contains(t){for(;;){if(t===this)return!0;if(!t._parent)return!1;t=t._parent}}toGlobal(t){return this._matrix.apply(t)}toLocal(t){return this._matrix.applyInverse(t)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){if(!this._localBounds){const t=1e7;this._localBounds={left:t,top:t,right:-t,bottom:-t},this._addBounds(this._localBounds)}return this._localBounds}getAdjustedBounds(t){this._setMatrix();const e=this.getLocalMatrix(),i=e.apply({x:t.left,y:t.top}),s=e.apply({x:t.right,y:t.top}),n=e.apply({x:t.right,y:t.bottom}),r=e.apply({x:t.left,y:t.bottom});return{left:Math.min(i.x,s.x,n.x,r.x),top:Math.min(i.y,s.y,n.y,r.y),right:Math.max(i.x,s.x,n.x,r.x),bottom:Math.max(i.y,s.y,n.y,r.y)}}on(t,e,i){return this.interactive?this._renderer._addEvent(this,t,e,i):new a.ku((()=>{}))}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(t,e){const i=this._matrix;let s=i.tx*e,n=i.ty*e;this.crisp&&(s=O(s),n=O(n)),t.setTransform(i.a*e,i.b*e,i.c*e,i.d*e,s,n)}_transformMargin(t,e,i){const s=this._matrix;t.setTransform(s.a*e,s.b*e,s.c*e,s.d*e,(s.tx+i.left)*e,(s.ty+i.top)*e)}_transformLayer(t,e,i){i.margin?this._transformMargin(t,i.scale||e,i.margin):this._transform(t,i.scale||e)}render(t,e=0){if(this.visible&&(!1!==this.exportable||!this._renderer._omitTainted)){this._setMatrix();const i=this.subStatus(t),s=this._renderer.resolution,n=this._renderer.layers,r=this._renderer._ghostLayer,o=r.context,a=this.mask;a&&a._setMatrix(),c.each(n,(t=>{if(t){const e=t.context;e.save(),a&&(a._transformLayer(e,s,t),a._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(e,s,t),this.filter&&(e.filter=this.filter)}})),o.save(),a&&this._isInteractiveMask(i)&&(a._transformMargin(o,s,r.margin),a._runPath(o),o.clip()),this._transformMargin(o,s,r.margin),i.layer.order>0&&!e&&c.move(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,e),o.restore(),c.each(n,(t=>{t&&t.context.restore()}))}}_render(t,e=0){!1===this.exportable&&(t.layer.tainted=!0)}_ghostOnly(t=0){return t>0}_drawGhost(t,e=0){const i=this._isInteractive(t),s=t.layer.order||0;return!(!i||(0!=s||this._ghostOnly(e))&&s!=e)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some((t=>t.value===this))}shouldCancelTouch(){const t=this._renderer;return!(t.tapToActivate&&!t._touchActive)&&(!!this.cancelTouch||!!this._parent&&this._parent.shouldCancelTouch())}}class N extends S{constructor(){super(...arguments),this.interactiveChildren=!0,this._children=[]}_isInteractiveMask(t){return this.interactiveChildren||super._isInteractiveMask(t)}addChild(t){t._parent=this,this._children.push(t),t._layer&&this.registerChildLayer(t._layer)}addChildAt(t,e){t._parent=this,this._children.splice(e,0,t),t._layer&&this.registerChildLayer(t._layer)}removeChild(t){t._parent=void 0,c.removeFirst(this._children,t)}_render(t,e){super._render(t);const i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,c.each(this._children,(i=>{i.compoundAlpha=this.compoundAlpha*this.alpha,i.render(t,e)})),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(t){this._childLayers||(this._childLayers=[]),c.pushOne(this._childLayers,t),this._parent&&this._parent.registerChildLayer(t)}markDirtyLayer(t=!1){super.markDirtyLayer(),t&&this._childLayers&&c.each(this._childLayers,(t=>t.dirty=!0))}_dispose(){super._dispose(),this._childLayers&&c.each(this._childLayers,(t=>{t.dirty=!0}))}}function C(t,e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.right=Math.max(t.right,e.x),t.bottom=Math.max(t.bottom,e.y)}class L{colorize(t,e){}colorizeGhost(t,e){this.colorize(t,e)}path(t){}pathGhost(t){this.path(t)}addBounds(t){}}class A extends L{colorize(t,e){t.beginPath()}}class R extends L{constructor(t){super(),this.color=t}colorize(t,e){t.fillStyle=void 0!==e?e:this.color}}class U extends L{constructor(t){super(),this.clearShadow=t}colorize(t,e){t.fill(),this.clearShadow&&(t.shadowColor="",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}}class B extends L{colorize(t,e){t.stroke()}}class F extends L{constructor(t,e,i,s){super(),this.width=t,this.color=e,this.lineJoin=i,this.lineCap=s}colorize(t,e){t.strokeStyle=void 0!==e?e:this.color,t.lineWidth=this.width,this.lineJoin&&(t.lineJoin=this.lineJoin),this.lineCap&&(t.lineCap=this.lineCap)}}class I extends L{constructor(t){super(),this.dash=t}colorize(t,e){t.setLineDash(this.dash)}}class H extends L{constructor(t){super(),this.dashOffset=t}colorize(t,e){t.lineDashOffset=this.dashOffset}}class z extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.width=i,this.height=s}path(t){t.rect(this.x,this.y,this.width,this.height)}addBounds(t){const e=this.x,i=this.y,s=e+this.width,n=i+this.height;C(t,{x:e,y:i}),C(t,{x:s,y:i}),C(t,{x:e,y:n}),C(t,{x:s,y:n})}}class G extends L{constructor(t,e,i){super(),this.x=t,this.y=e,this.radius=i}path(t){t.moveTo(this.x+this.radius,this.y),t.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radius,y:this.y-this.radius}),C(t,{x:this.x+this.radius,y:this.y+this.radius})}}class V extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.radiusX=i,this.radiusY=s}path(t){t.ellipse(0,0,this.radiusX,this.radiusY,0,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radiusX,y:this.y-this.radiusY}),C(t,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class W extends L{constructor(t,e,i,s,n,r){super(),this.cx=t,this.cy=e,this.radius=i,this.startAngle=s,this.endAngle=n,this.anticlockwise=r}path(t){this.radius>0&&t.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(t){let e=p.getArcBounds(this.cx,this.cy,this.startAngle*p.DEGREES,this.endAngle*p.DEGREES,this.radius);C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}class Y extends L{constructor(t,e,i,s,n){super(),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.radius=n}path(t){this.radius>0&&t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(t){}}class j extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.lineTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class X extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.moveTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class $ extends L{path(t){t.closePath()}}class Z extends L{constructor(t,e,i,s,n,r){super(),this.cpX=t,this.cpY=e,this.cpX2=i,this.cpY2=s,this.toX=n,this.toY=r}path(t){t.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.cpX2,y:this.cpY2}),C(t,{x:this.toX,y:this.toY})}}class K extends L{constructor(t,e,i,s){super(),this.cpX=t,this.cpY=e,this.toX=i,this.toY=s}path(t){t.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.toX,y:this.toY})}}class q extends L{constructor(t,e,i,s,n){super(),this.color=t,this.blur=e,this.offsetX=i,this.offsetY=s,this.opacity=n}colorize(t,e){this.opacity&&(t.fillStyle=this.color),t.shadowColor=this.color,t.shadowBlur=this.blur,t.shadowOffsetX=this.offsetX,t.shadowOffsetY=this.offsetY}colorizeGhost(t,e){}}class Q extends L{constructor(t,e,i,s,n){super(),this.image=t,this.width=e,this.height=i,this.x=s,this.y=n}path(t){t.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(t){C(t,{x:this.x,y:this.y}),C(t,{x:this.width,y:this.height})}}class J extends S{constructor(){super(...arguments),this._operations=[],this.blendMode=s.b.NORMAL,this._hasShadows=!1}clear(){super.clear(),this._operations.length=0}_pushOp(t){this._operations.push(t)}beginFill(t,e=1){this._fillAlpha=e,t?t instanceof n.Il?this._pushOp(new R(t.toCSS(e))):(this.isMeasured=!0,this._pushOp(new R(t))):this._pushOp(new R("rgba(0, 0, 0, "+e+")"))}endFill(){this._pushOp(new U(this._hasShadows))}endStroke(){this._pushOp(new B)}beginPath(){this._pushOp(new A)}lineStyle(t=0,e,i=1,s,r){this._strokeAlpha=i,e?e instanceof n.Il?this._pushOp(new F(t,e.toCSS(i),s,r)):this._pushOp(new F(t,e,s,r)):this._pushOp(new F(t,"rgba(0, 0, 0, "+i+")",s,r))}setLineDash(t){this._pushOp(new I(t||[]))}setLineDashOffset(t=0){this._pushOp(new H(t))}drawRect(t,e,i,s){this._pushOp(new z(t,e,i,s))}drawCircle(t,e,i){this._pushOp(new G(t,e,i))}drawEllipse(t,e,i,s){this._pushOp(new V(t,e,i,s))}arc(t,e,i,s,n,r=!1){this._pushOp(new W(t,e,i,s,n,r))}arcTo(t,e,i,s,n){this._pushOp(new Y(t,e,i,s,n))}lineTo(t,e){this._pushOp(new j(t,e))}moveTo(t,e){this._pushOp(new X(t,e))}bezierCurveTo(t,e,i,s,n,r){this._pushOp(new Z(t,e,i,s,n,r))}quadraticCurveTo(t,e,i,s){this._pushOp(new K(t,e,i,s))}closePath(){this._pushOp(new $)}shadow(t,e=0,i=0,s=0,n){this._hasShadows=!0,this._pushOp(new q(n?t.toCSS(n):t.toCSS(this._fillAlpha||this._strokeAlpha),e,i,s))}image(t,e,i,s,n){this._pushOp(new Q(t,e,i,s,n))}svgPath(t){let e=0,i=0,s=null,n=null,r=null,o=null;const a=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,h=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g,l=this._operations.length;try{let l;for(;null!==(l=a.exec(t));){const t=l[1],a=l[2],u=[];for(;null!==(l=h.exec(a));)u.push(l[1]);switch("S"!==t&&"s"!==t&&"C"!==t&&"c"!==t&&(s=null,n=null),"Q"!==t&&"q"!==t&&"T"!==t&&"t"!==t&&(r=null,o=null),t){case"M":b(t,u.length,2),e=+u[0],i=+u[1],this.moveTo(e,i);for(let t=2;t{this.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y),e=t.x,i=t.y}))}break;case"Z":case"z":v(t,u.length,0),this.closePath()}}}catch(e){this._operations.length=l,console.warn("Error when parsing svgPath:\n "+e.message+"\n"+t)}}_runPath(t){t.beginPath(),c.each(this._operations,(e=>{e.path(t)}))}_render(t,e=0){super._render(t);const i=t.layer.dirty,s=this._isInteractive(t),n=this._ghostOnly(e),r=this._drawGhost(t,e);if(i||s||n){const e=t.layer.context,s=this._renderer._ghostLayer.context;let o;i&&!n&&(e.globalCompositeOperation=this.blendMode,e.beginPath()),r&&(s.beginPath(),o=this._getColorId()),c.each(this._operations,(t=>{i&&!n&&(t.path(e),t.colorize(e,void 0)),r&&(t.pathGhost(s),t.colorizeGhost(s,o))}))}}renderDetached(t){if(this.visible){this._setMatrix(),t.save();const e=this.mask;e&&(e._setMatrix(),e._transform(t,1),e._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transform(t,1),this.filter&&(t.filter=this.filter),t.globalCompositeOperation=this.blendMode,t.beginPath(),c.each(this._operations,(e=>{e.path(t),e.colorize(t,void 0)})),t.restore()}}_addBounds(t){this.visible&&this.isMeasured&&c.each(this._operations,(e=>{e.addBounds(t)}))}}class tt extends S{constructor(t,e,i){super(t),this.resolution=1,this.textVisible=!0,this._originalScale=1,this.text=e,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_shared(t){this.style.textAlign&&(t.textAlign=this.style.textAlign),this.style.direction&&(t.direction=this.style.direction),this.style.textBaseline&&(t.textBaseline=this.style.textBaseline)}_prerender(t,e=!1,i=!1){super._render(t);const s=t.layer.context,r=this._renderer._ghostLayer.context,o=this.style;let a=this._getFontStyle(void 0,i);s.font=a,this._isInteractive(t)&&!e&&(r.font=a),o.fill&&(o.fill instanceof n.Il?s.fillStyle=o.fill.toCSS(null!=o.fillOpacity?o.fillOpacity:1):s.fillStyle=o.fill),o.shadowColor&&(t.layer.context.shadowColor=o.shadowColor.toCSS(o.shadowOpacity||1)),o.shadowBlur&&(t.layer.context.shadowBlur=o.shadowBlur),o.shadowOffsetX&&(t.layer.context.shadowOffsetX=o.shadowOffsetX),o.shadowOffsetY&&(t.layer.context.shadowOffsetY=o.shadowOffsetY),this._shared(s),this._isInteractive(t)&&!e&&(r.fillStyle=this._getColorId(),this._shared(r))}_getFontStyle(t,e=!1){const i=this.style;let s=[];return t&&t.fontVariant?s.push(t.fontVariant):i.fontVariant&&s.push(i.fontVariant),e||(t&&t.fontWeight?s.push(t.fontWeight):i.fontWeight&&s.push(i.fontWeight)),t&&t.fontStyle?s.push(t.fontStyle):i.fontStyle&&s.push(i.fontStyle),t&&t.fontSize?(d.isNumber(t.fontSize)&&(t.fontSize=t.fontSize+"px"),s.push(t.fontSize)):i.fontSize&&(d.isNumber(i.fontSize)&&(i.fontSize=i.fontSize+"px"),s.push(i.fontSize)),t&&t.fontFamily?s.push(t.fontFamily):i.fontFamily?s.push(i.fontFamily):s.length&&s.push("Arial"),s.join(" ")}_render(t,e=0){if(this._textInfo||this._measure(t),this.textVisible){const i=this._isInteractive(t),s=t.layer.context,r=t.layer.dirty,o=this._renderer._ghostLayer.context,a=this._ghostOnly(e),l=this._drawGhost(t,e);s.save(),o.save(),this._prerender(t),c.each(this._textInfo,((e,u)=>{c.each(e.textChunks,((c,u)=>{if(c.style&&(s.save(),o.save(),a||(s.font=c.style),this._isInteractive(t)&&(o.font=c.style)),c.fill&&(s.save(),a||(s.fillStyle=c.fill.toCSS())),r&&!a&&s.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),"underline"==c.textDecoration||"line-through"==c.textDecoration){let t=1,i=1,r=c.height;const o=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(o)>-1){const t=this._measureText(c.text,s);c.width=t.actualBoundingBoxLeft+t.actualBoundingBoxRight}let l,u=c.offsetX;switch(this.style.textAlign){case"right":case"end":u-=c.width;break;case"center":u-=c.width/2}if(c.style)switch(h.V.getTextStyle(c.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":t=2}r&&(i=r/20),l="line-through"==c.textDecoration?t+e.offsetY+c.offsetY-c.height/2:t+1.5*i+e.offsetY+c.offsetY,a||(s.save(),s.beginPath(),c.fill?s.strokeStyle=c.fill.toCSS():this.style.fill&&this.style.fill instanceof n.Il&&(s.strokeStyle=this.style.fill.toCSS()),s.lineWidth=t*i,s.moveTo(u,l),s.lineTo(u+c.width,l),s.stroke(),s.restore())}i&&this.interactive&&l&&o.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),c.fill&&s.restore(),c.style&&(s.restore(),o.restore())}))})),s.restore(),o.restore()}}_addBounds(t){if(this.visible&&this.isMeasured){const e=this._measure({inactive:this.inactive,layer:this.getLayer()});C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction;this._textInfo=[];const n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=d.isNumber(r)&&("wrap"==n||"wrap-no-break"==n);e.save(),i.save(),this._prerender(t,!0,this._ignoreFontWeight());const p="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",g=this.text.toString().replace(/\r/g,"").split(/\n/);let f,_=!0,m=0,y=0,v=0;c.each(g,((t,s)=>{let n;for(n=""==t?[{type:"value",text:""}]:h.V.chunk(t,!1,this.style.ignoreFormatting);n.length>0;){let t={offsetY:v,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const s=this._measureText(p,e),g=s.actualBoundingBoxAscent+s.actualBoundingBoxDescent;let w;t.height=g,t.ascent=s.actualBoundingBoxAscent;let b,x,D,k=this.style.textDecoration,T=!1,M=!0,E=[];c.eachContinue(n,((s,o)=>{if("format"==s.type)if("[/]"==s.text)_||(e.restore(),i.restore(),_=!0),b=void 0,f=void 0,x=void 0,k=this.style.textDecoration,D=void 0,w=s.text;else{_||(e.restore(),i.restore());let n=h.V.getTextStyle(s.text);const r=this._getFontStyle(n);e.save(),i.save(),e.font=r,f=r,w=s.text,n.textDecoration&&(k=n.textDecoration),n.fill&&(b=n.fill),n.width&&(x=d.toNumber(n.width)),n.verticalAlign&&(D=n.verticalAlign),_=!1;const o=this._measureText(p,e),a=o.actualBoundingBoxAscent+o.actualBoundingBoxDescent;a>t.height&&(t.height=a),o.actualBoundingBoxAscent>t.ascent&&(t.ascent=o.actualBoundingBoxAscent)}else if("value"==s.type&&!T){const i=this._measureText(s.text,e);let h=i.actualBoundingBoxLeft+i.actualBoundingBoxRight;if(a){this.truncated=void 0;let i=M||this.style.breakWords||!1;const n=this.style.ellipsis||"",o=this._measureText(n,e),a=o.actualBoundingBoxLeft+o.actualBoundingBoxRight;if(t.width+h>r){const o=r-t.width-a;s.text=this._truncateText(e,s.text,o,i),s.text+=n,T=!0,this.truncated=!0}}else if(u&&t.width+h>r){const i=r-t.width,a=this._truncateText(e,s.text,i,!1,M&&"wrap-no-break"!=this.style.oversizedBehavior);if(""==a)return this.textVisible=!0,!1;E=n.slice(o+1),l.trim(a)!=l.trim(s.text)&&(E.unshift({type:"value",text:s.text.substr(a.length)}),w&&E.unshift({type:"format",text:w})),s.text=l.trim(a),n=[],T=!0}let c=1,d=1;if(f&&x&&x>h){const t=h/x;switch(this.style.textAlign){case"right":case"end":c=t;break;case"center":c=t,d=t;break;default:d=t}h=x}const p=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent;p>t.height&&(t.height=p),i.actualBoundingBoxAscent>t.ascent&&(t.ascent=i.actualBoundingBoxAscent),t.width+=h,t.left+=i.actualBoundingBoxLeft/c,t.right+=i.actualBoundingBoxRight/d,t.textChunks.push({style:f,fill:b,text:s.text,width:h,height:p,left:i.actualBoundingBoxLeft,right:i.actualBoundingBoxRight,ascent:i.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:k,verticalAlign:D}),M=!1}return!0})),this.style.lineHeight instanceof o.gG?(t.height*=this.style.lineHeight.value,t.ascent*=this.style.lineHeight.value):(t.height*=this.style.lineHeight||1.2,t.ascent*=this.style.lineHeight||1.2),m{let i=0;c.each(t.textChunks,(e=>{if(e.offsetX=i+e.left-t.left,e.offsetY+=t.height-t.height*(this.style.baselineRatio||.19),i+=e.width*(s?-1:1),e.verticalAlign)switch(e.verticalAlign){case"super":e.offsetY-=t.height/2-e.height/2;break;case"sub":e.offsetY+=e.height/2}}))}));const w={left:s?-y:-m,top:0,right:s?m:y,bottom:v};if("none"!==n){const t=this._fitRatio(w);if(t<1)if("fit"==n)d.isNumber(this.style.minScale)&&ti&&""!=e);return e}_measureText(t,e){let i=e.measureText(t),s={};if(null==i.actualBoundingBoxAscent){const e=document.createElement("div");e.innerText=t,e.style.visibility="hidden",e.style.position="absolute",e.style.top="-1000000px;",e.style.fontFamily=this.style.fontFamily||"",e.style.fontSize=this.style.fontSize+"",document.body.appendChild(e);const n=e.getBoundingClientRect();document.body.removeChild(e);const r=n.height,o=i.width;s={actualBoundingBoxAscent:r,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:o,fontBoundingBoxAscent:r,fontBoundingBoxDescent:0,width:o}}else s={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const n=i.width;switch(this.style.textAlign){case"right":case"end":s.actualBoundingBoxLeft=n,s.actualBoundingBoxRight=0;break;case"center":s.actualBoundingBoxLeft=n/2,s.actualBoundingBoxRight=n/2;break;default:s.actualBoundingBoxLeft=0,s.actualBoundingBoxRight=n}return s}}class et{constructor(){this.lineHeight=(0,o.aQ)(120),this.baselineRatio=.19,this.oversizedBehavior="none",this.breakWords=!1,this.ellipsis="…",this.ignoreFormatting=!1}}class it extends tt{constructor(){super(...arguments),this.textType="circular",this.inside=!1,this.orientation="auto",this.kerning=0,this._textReversed=!1}_render(t,e=0){"circular"===this.textType?this._renderCircular(t,e):super._render(t,e)}_renderCircular(t,e=0){if(this.textVisible){this._prerender(t);const i=this._isInteractive(t),s=t.layer.context,n=t.layer.dirty,r=this._renderer._ghostLayer.context;s.save(),i&&r.save(),this._textInfo||this._measure(t);let o=this.radius||0,a=this.startAngle||0,h=0,l=this.orientation,u="auto"==l?"auto":"inward"==l;const d=this.inside,g=this.style.textAlign||"left",f=this.kerning||0;let _="left"==g?1:-1;const m=!this._textReversed,y=this._ghostOnly(e),v=this._drawGhost(t,e);if("auto"==u){let t=0,e=0;c.each(this._textInfo,((e,i)=>{const s=a+e.width/(o-e.height)/2*-_;s>t&&(t=s)})),e="left"==g?(t+h/2)*p.DEGREES:"right"==g?(t-h/2)*p.DEGREES:a*p.DEGREES,e=p.normalizeAngle(e),u=e>=270||e<=90}1==u&&m&&(this._textInfo.reverse(),this._textReversed=!0),c.each(this._textInfo,((t,e)=>{const l=t.height;d||(o+=l),(-1==_&&u||1==_&&!u)&&m&&t.textChunks.reverse();let p=a;h=0,"center"==g&&(p+=t.width/(o-l)/2*-_,h=p-a),p+=Math.PI*(u?0:1),s.save(),i&&r.save(),y||s.rotate(p),i&&r.rotate(p);let w=0;c.each(t.textChunks,((t,e)=>{const a=t.text,h=t.width;w=h/2/(o-l)*_,y||s.rotate(w),i&&r.rotate(w),t.style&&(s.save(),r.save(),y||(s.font=t.style),i&&(r.font=t.style)),t.fill&&(s.save(),y||(s.fillStyle=t.fill.toCSS())),y||(s.textBaseline="middle",s.textAlign="center"),i&&(r.textBaseline="middle",r.textAlign="center"),n&&!y&&s.fillText(a,0,(u?1:-1)*(0-o+l/2)),i&&v&&r.fillText(a,0,(u?1:-1)*(0-o+l/2)),t.fill&&s.restore(),t.style&&(s.restore(),r.restore()),w=(h/2+f)/(o-l)*_,y||s.rotate(w),i&&r.rotate(w)})),s.restore(),i&&r.restore(),d&&(o-=l)})),s.restore(),i&&r.restore()}}_measure(t){return"circular"===this.textType?this._measureCircular(t):super._measure(t)}_measureCircular(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction,n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=this.style.ellipsis||"";let p;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,e.save(),i.save(),this._prerender(t,!0);const g=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,_=0,m=0;return c.each(g,((t,n)=>{let g,y,v,w=h.V.chunk(t,!1,this.style.ignoreFormatting),b={offsetY:m,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};c.each(w,((t,n)=>{if("format"==t.type){if("[/]"==t.text)f||(e.restore(),i.restore(),f=!0),y=void 0,g=void 0,v=void 0;else{let s=h.V.getTextStyle(t.text);const n=this._getFontStyle(s);e.save(),i.save(),e.font=n,g=n,s.fill&&(y=s.fill),s.width&&(v=d.toNumber(s.width)),f=!1}a&&(p=this._measureText(u,e))}else if("value"==t.type){let i=t.text.match(/./gu)||[];s&&(i=l.splitString(t.text),i.reverse());for(let t=0;to&&(o=v);const h=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;if(h>b.height&&(b.height=h),n.actualBoundingBoxAscent>b.ascent&&(b.ascent=n.actualBoundingBoxAscent),_+=o,a){p||(p=this._measureText(u,e));const t=p.actualBoundingBoxLeft+p.actualBoundingBoxRight;if(_+t>r){1==b.textChunks.length?this.textVisible=!1:(b.width+=t,b.left+=p.actualBoundingBoxLeft,b.right+=p.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:u,width:t,height:h+p.actualBoundingBoxDescent,left:p.actualBoundingBoxLeft,right:p.actualBoundingBoxRight,ascent:p.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0}));break}}b.width+=o,b.left+=n.actualBoundingBoxLeft,b.right+=n.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:s,width:o,height:h+n.actualBoundingBoxDescent,left:n.actualBoundingBoxLeft,right:n.actualBoundingBoxRight,ascent:n.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0})}}})),this.style.lineHeight instanceof o.gG?b.height*=this.style.lineHeight.value:b.height*=this.style.lineHeight||1.2,this._textInfo.push(b),m+=b.height})),f||(e.restore(),i.restore()),"hide"==n&&_>r&&(this.textVisible=!1),c.each(this._textInfo,(t=>{c.each(t.textChunks,(e=>{e.offsetY+=Math.round((t.height-e.height+(t.ascent-e.ascent))/2)}))})),e.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class st extends S{constructor(t,e){super(t),this.image=e}_dispose(){super._dispose(),this._imageMask&&E(this._imageMask)}getLocalBounds(){if(!this._localBounds){let t=0,e=0;this.width&&(t=this.width),this.height&&(e=this.height),this._localBounds={left:0,top:0,right:t,bottom:e},this._addBounds(this._localBounds)}return this._localBounds}_render(t,e=0){if(super._render(t),this.image){if(void 0===this.tainted&&(this.tainted=M(this.image),t.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;const i=this._ghostOnly(e),s=this._drawGhost(t,e);if(t.layer.dirty&&!i){this.shadowColor&&(t.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(t.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(t.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(t.layer.context.shadowOffsetY=this.shadowOffsetY);const e=this.width||this.image.naturalWidth,i=this.height||this.image.naturalHeight;t.layer.context.drawImage(this.image,0,0,e,i)}if(this.interactive&&this._isInteractive(t)&&s){const t=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(t,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(t){if(void 0===this._imageMask){const e=this.width||t.naturalWidth,i=this.height||t.naturalHeight,s=document.createElement("canvas");s.width=e,s.height=i;const n=s.getContext("2d");n.imageSmoothingEnabled=!1,n.fillStyle=this._getColorId(),n.fillRect(0,0,e,i),M(t)||(n.globalCompositeOperation="destination-in",n.drawImage(t,0,0,e,i)),this._imageMask=s}return this._imageMask}}class nt{constructor(t,e,i,s){this.event=t,this.originalPoint=e,this.point=i,this.bbox=s,this.simulated=!1,this.native=!0,l.supports("touchevents")&&t instanceof Touch?this.id=t.identifier:this.id=null}}class rt extends a.rk{constructor(t){if(super(),this.view=document.createElement("div"),this._layerDom=document.createElement("div"),this.layers=[],this._dirtyLayers=[],this.defaultLayer=this.getLayer(0),this._ghostLayer=new ot,this._deferredGhostLayers=[],this._patternCanvas=document.createElement("canvas"),this._patternContext=this._patternCanvas.getContext("2d"),this._realWidth=0,this._realHeight=0,this._calculatedWidth=0,this._calculatedHeight=0,this.interactionsEnabled=!0,this._listeners={},this._events={},this._colorId=0,this._colorMap={},this._forceInteractive=0,this._omitTainted=!1,this._hovering=new Set,this._dragging=[],this._mousedown=[],this.tapToActivate=!1,this.tapToActivateTimeout=3e3,this._touchActive=!1,this.resolution=null==t?window.devicePixelRatio:t,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new a.ku((()=>{u.each(this._events,((t,e)=>{e.disposer.dispose()})),c.each(this.layers,(t=>{E(t.view),t.exportableView&&E(t.exportableView)})),E(this._ghostLayer.view),E(this._patternCanvas)}))),this._disposers.push(l.onZoom((()=>{null==t&&(this.resolution=window.devicePixelRatio)}))),l.supports("touchevents")){const t=t=>{0!==this._dragging.length&&c.eachContinue(this._dragging,(e=>!e.value.shouldCancelTouch()||(t.preventDefault(),!1))),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(l.addEventListener(window,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchmove",(()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()}),{passive:!0})),this._disposers.push(l.addEventListener(window,"click",(t=>{this._touchActive=!1}),{passive:!0})),this._disposers.push(l.addEventListener(this.view,"click",(t=>{window.setTimeout((()=>{this._touchActive=!0,this._delayTouchDeactivate()}),100)}),{passive:!0}))}l.supports("wheelevents")&&this._disposers.push(l.addEventListener(this.view,"wheel",(t=>{let e=!1;this._hovering.forEach((t=>{if(t.wheelable)return e=!0,!1})),e&&t.preventDefault()}),{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout((()=>{this._touchActive=!1}),this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(t){t?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(t,e,i,s){return this.defaultLayer.context.createLinearGradient(t,e,i,s)}createRadialGradient(t,e,i,s,n,r){return this.defaultLayer.context.createRadialGradient(t,e,i,s,n,r)}createPattern(t,e,i,s,n){return this._patternCanvas.width=s,this._patternCanvas.height=n,this._patternContext.clearRect(0,0,s,n),e.renderDetached(this._patternContext),t.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new N(this)}makeGraphics(){return new J(this)}makeText(t,e){return new tt(this,t,e)}makeTextStyle(){return new et}makeRadialText(t,e){return new it(this,t,e)}makePicture(t){return new st(this,t)}resizeLayer(t){t.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(t,e,i,s){this._realWidth=t,this._realHeight=e,this._calculatedWidth=i,this._calculatedHeight=s,c.each(this.layers,(t=>{t&&(t.dirty=!0,this.resizeLayer(t))})),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(t=!1){const e=document.createElement("canvas"),i=e.getContext("2d",{willReadFrequently:t}),s=new at(e,i);return e.style.position="absolute",e.style.top="0px",e.style.left="0px",s}getLayerByOrder(t){const e=this.layers,i=e.length;for(let s=0;st.order>e.order?1:t.order{t&&t.dirty&&t.visible&&(this._dirtyLayers.push(t),t.clear())})),this._ghostLayer.clear(),t.render({inactive:null,layer:this.defaultLayer});const e=this._deferredGhostLayers;if(e.length&&(e.sort(((t,e)=>t-e)),c.each(e,(e=>{t.render({inactive:null,layer:this.defaultLayer},e)}))),this._ghostLayer.context.restore(),c.each(this.layers,(t=>{if(t){const e=t.context;e.beginPath(),e.moveTo(0,0),e.stroke()}})),c.each(this._dirtyLayers,(t=>{t.context.restore(),t.dirty=!1})),this._hovering.size&&this._lastPointerMoveEvent){const{events:t,target:e,native:i}=this._lastPointerMoveEvent;c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))}}paintId(t){const e=function(t){const e=[0,0,0];for(let i=0;i<24;i++)e[i%3]<<=1,e[i%3]|=1&t,t>>=1;return(0|e[0])+(e[1]<<8)+(e[2]<<16)}(++this._colorId),i=n.Il.fromHex(e).toCSS();return this._colorMap[i]=t,i}_removeObject(t){void 0!==t._colorId&&delete this._colorMap[t._colorId]}_adjustBoundingBox(t){const e=this._ghostLayer.margin;return new DOMRect(-e.left,-e.top,t.width+e.left+e.right,t.height+e.top+e.bottom)}getEvent(t,e=!0){const i=this.view.getBoundingClientRect(),s=t.clientX||0,n=t.clientY||0,r=this._calculatedWidth/this._realWidth,o=this._calculatedHeight/this._realHeight,a={x:s-i.left,y:n-i.top},h={x:(s-(e?i.left:0))*r,y:(n-(e?i.top:0))*o};return new nt(t,a,h,this._adjustBoundingBox(i))}_getHitTarget(t,e,i){if(0===e.width||0===e.height||t.xe.right||t.ye.bottom)return;if(!i||!this._layerDom.contains(i))return;const s=this._ghostLayer.getImageData(t,e);if(0===s.data[0]&&0===s.data[1]&&0===s.data[2])return!1;const r=n.Il.fromRGB(s.data[0],s.data[1],s.data[2]).toCSS();return this._colorMap[r]}getObjectAtPoint(t){const e=this._ghostLayer.getImageArray(t);if(0===e[0]&&0===e[1]&&0===e[2])return;const i=n.Il.fromRGB(e[0],e[1],e[2]).toCSS();return this._colorMap[i]}_withEvents(t,e){const i=this._events[t];if(void 0!==i){i.dispatching=!0;try{e(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,c.keepIf(i.callbacks,(t=>!t.disposed)),0===i.callbacks.length&&(i.disposer.dispose(),delete this._events[t]))}}}_dispatchEventAll(t,e){this.interactionsEnabled&&this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.callback.call(t.context,e)}))}))}_dispatchEvent(t,e,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.object!==e||(t.callback.call(t.context,i),s=!0)}))})),s}_dispatchMousedown(t,e){const i=t.button;if(0!=i&&2!=i&&1!=i&&void 0!==i)return;const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);if(n){const t=s.id;let e=!1;k(n,(i=>{const n={id:t,value:i};return this._mousedown.push(n),!e&&this._dispatchEvent("pointerdown",i,s)&&(e=!0,this._dragging.some((e=>e.value===i&&e.id===t))||this._dragging.push(n)),!0}))}}_dispatchGlobalMousemove(t,e,i){const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);s.native=i,n?(this._hovering.forEach((t=>{t.contains(n)||(this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s))})),s.native&&k(n,(t=>(this._hovering.has(t)||(this._hovering.add(t),t.cursorOverStyle&&(t._replacedCursorStyle=l.getStyle(document.body,"cursor"),l.setStyle(document.body,"cursor",t.cursorOverStyle)),this._dispatchEvent("pointerover",t,s)),!0)))):(this._hovering.forEach((t=>{t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s)})),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(t){this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle)}_dispatchGlobalMouseup(t,e){const i=this.getEvent(t);i.native=e,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(t){if(0!==this._dragging.length){const e=this.getEvent(t),i=e.id;this._dragging.forEach((t=>{t.id===i&&this._dispatchEvent("pointermove",t.value,e)}))}}_dispatchDragEnd(t,e){const i=t.button;let s;if(0==i||void 0===i)s="click";else if(2==i)s="rightclick";else{if(1!=i)return;s="middleclick"}const n=this.getEvent(t),r=n.id;if(0!==this._mousedown.length){const t=this._getHitTarget(n.originalPoint,n.bbox,e);t&&this._mousedown.forEach((e=>{e.id===r&&e.value.contains(t)&&this._dispatchEvent(s,e.value,n)})),this._mousedown.length=0}0!==this._dragging.length&&(this._dragging.forEach((t=>{t.id===r&&this._dispatchEvent("pointerup",t.value,n)})),this._dragging.length=0)}_dispatchDoubleClick(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("dblclick",t,i)))}_dispatchWheel(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("wheel",t,i)))}_makeSharedEvent(t,e){if(void 0===this._listeners[t]){const i=e();this._listeners[t]=new a.DM((()=>{delete this._listeners[t],i.dispose()}))}return this._listeners[t].increment()}_onPointerEvent(t,e){let i=!1,s=null;function n(){s=null,i=!1}return new a.FV([new a.ku((()=>{null!==s&&clearTimeout(s),n()})),l.addEventListener(this.view,l.getRendererEvent(t),(t=>{i=!0,null!==s&&clearTimeout(s),s=window.setTimeout(n,0)})),T(window,t,((t,n)=>{null!==s&&(clearTimeout(s),s=null),e(t,n,i),i=!1}))])}_initEvent(t){switch(t){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",(()=>{const t=(t,e,i)=>{this._lastPointerMoveEvent={events:t,target:e,native:i},c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))};return new a.FV([this._onPointerEvent("pointerdown",t),this._onPointerEvent("pointermove",t)])}));case"globalpointerup":return this._makeSharedEvent("pointerup",(()=>{const t=this._onPointerEvent("pointerup",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}})),e=this._onPointerEvent("pointercancel",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}}));return new a.ku((()=>{t.dispose(),e.dispose()}))}));case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",(()=>{const t=this._onPointerEvent("pointerdown",((t,e)=>{c.each(t,(t=>{this._dispatchMousedown(t,e)}))})),e=this._onPointerEvent("pointermove",(t=>{c.each(t,(t=>{this._dispatchDragMove(t)}))})),i=this._onPointerEvent("pointerup",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))})),s=this._onPointerEvent("pointercancel",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))}));return new a.ku((()=>{t.dispose(),e.dispose(),i.dispose(),s.dispose()}))}));case"dblclick":return this._makeSharedEvent("dblclick",(()=>this._onPointerEvent("dblclick",((t,e)=>{c.each(t,(t=>{this._dispatchDoubleClick(t,e)}))}))));case"wheel":return this._makeSharedEvent("wheel",(()=>l.addEventListener(this.view,l.getRendererEvent("wheel"),(t=>{this._dispatchWheel(t,l.getEventTarget(t))}),{passive:!1})))}}_addEvent(t,e,i,s){let n=this._events[e];void 0===n&&(n=this._events[e]={disposer:this._initEvent(e),callbacks:[],dispatching:!1,cleanup:!1});const r={object:t,context:s,callback:i,disposed:!1};return n.callbacks.push(r),new a.ku((()=>{r.disposed=!0,n.dispatching?n.cleanup=!0:(c.removeFirst(n.callbacks,r),0===n.callbacks.length&&(n.disposer.dispose(),delete this._events[e]))}))}getCanvas(t,e){this.render(t),e||(e={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),n=Math.floor(this._calculatedHeight*this.resolution);if(e.minWidth&&e.minWidth>s){let t=e.minWidth/s;t>i&&(i=t*this.resolution)}if(e.minHeight&&e.minHeight>n){let t=e.minHeight/n;t>i&&(i=t*this.resolution)}if(e.maxWidth&&e.maxWidthn){let t=e.maxHeight/n;t{if(t&&t.visible&&(t.tainted||o)){d=!0,t.exportableView=t.view,t.exportableContext=t.context,t.view=document.createElement("canvas"),t.view.style.position="fixed",t.view.style.top="-10000px",this.view.appendChild(t.view),r.push(t.view);let e=0,o=0;t.margin&&(e+=t.margin.left||0+t.margin.right||0,o+=t.margin.top||0+t.margin.bottom||0),t.view.width=s+e,t.view.height=n+o,t.context=t.view.getContext("2d"),t.dirty=!0,t.scale=i}})),d&&(this._omitTainted=!0,this.render(t),this._omitTainted=!1),c.each(this.layers,(t=>{if(t&&t.visible){let e=0,i=0;t.margin&&(e=-(t.margin.left||0)*this.resolution,i=-(t.margin.top||0)*this.resolution),h.drawImage(t.view,e,i),t.exportableView&&(t.view=t.exportableView,t.exportableView=void 0),t.exportableContext&&(t.context=t.exportableContext,t.exportableContext=void 0),l{t.style.position="",t.style.top="",this.view.removeChild(t)})),a}}class ot{constructor(){this.margin={left:0,right:0,top:0,bottom:0},this._resolution=1,this._width=0,this._height=0,this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(t,e,i,s,n){this._resolution=n,t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(t,e){return this.context.getImageData(Math.round((t.x-e.left)/e.width*this._width),Math.round((t.y-e.top)/e.height*this._height),1,1)}getImageArray(t){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const e=this.imageArray,i=Math.round(t.x*this._resolution),s=4*(Math.round(t.y*this._resolution)*this._width+i);return[e[s],e[s+1],e[s+2],e[s+3]]}setMargin(t){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,c.each(t,(t=>{t.margin&&(this.margin.left=Math.max(this.margin.left,t.margin.left),this.margin.right=Math.max(this.margin.right,t.margin.right),this.margin.top=Math.max(this.margin.top,t.margin.top),this.margin.bottom=Math.max(this.margin.bottom,t.margin.bottom))}))}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class at{constructor(t,e){this.tainted=!0,this.order=0,this.visible=!0,this.dirty=!0,this._width=0,this._height=0,this.view=t,this.context=e}resize(t,e,i,s,n){null!=this.width&&(t=this.width,i=this.width),null!=this.height&&(e=this.height,s=this.height),this.margin?(t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}},4680:function(t,e,i){"use strict";var s;i.d(e,{b:function(){return s}}),function(t){t.ADD="lighter",t.COLOR="color",t.COLOR_BURN="color-burn",t.COLOR_DODGE="color-dodge",t.DARKEN="darken",t.DIFFERENCE="difference",t.DST_OVER="destination-over",t.EXCLUSION="exclusion",t.HARD_LIGHT="hard-light",t.HUE="hue",t.LIGHTEN="lighten",t.LUMINOSITY="luminosity",t.MULTIPLY="multiply",t.NORMAL="source-over",t.OVERLAY="overlay",t.SATURATION="saturation",t.SCREEN="screen",t.SOFT_LIGHT="soft-light",t.SRC_ATOP="source-atop",t.XOR="xor"}(s||(s={}))},1437:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}getFill(t){return{addColorStop:(t,e)=>{}}}_changed(){super._changed()}getBounds(t){const e=this.get("target");if(e){let i=e.globalBounds();const s=t.toLocal({x:i.left,y:i.top}),n=t.toLocal({x:i.right,y:i.top}),r=t.toLocal({x:i.right,y:i.bottom}),o=t.toLocal({x:i.left,y:i.bottom});return{left:Math.min(s.x,n.x,r.x,o.x),top:Math.min(s.y,n.y,r.y,o.y),right:Math.max(s.x,n.x,r.x,o.x),bottom:Math.max(s.y,n.y,r.y,o.y)}}return t._display.getLocalBounds()}}n.className="Gradient",n.classNames=s.JH.classNames.concat([n.className])},1747:function(t,e,i){"use strict";i.d(e,{o:function(){return h}});var s=i(1437),n=i(1112),r=i(5071),o=i(5040),a=i(751);class h extends s.p{getFill(t){const e=this.get("rotation",0);let i=this.getBounds(t),s=i.left||0,h=i.right||0,l=i.top||0,c=i.bottom||0,u=a.cos(e),d=a.sin(e),p=u*(h-s),g=d*(c-l);0==p&&(p=1),0==g&&(g=1);let f=Math.max(p,g);const _=this._root._renderer.createLinearGradient(s,l,s+f*u,l+f*d),m=this.get("stops");if(m){let t=0;r.each(m,(e=>{let i=e.offset;o.isNumber(i)||(i=t/(m.length-1));let s=e.opacity;o.isNumber(s)||(s=1);let r=e.color;if(r){const t=e.lighten;t&&(r=n.Il.lighten(r,t));const o=e.brighten;o&&(r=n.Il.brighten(r,o)),_.addColorStop(i,"rgba("+r.r+","+r.g+","+r.b+","+s+")")}t++}))}return _}}h.className="LinearGradient",h.classNames=s.p.classNames.concat([h.className])},3035:function(t,e,i){"use strict";i.d(e,{y:function(){return r}});var s=i(3437),n=i(5040);class r extends s.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("width",100),e=this.get("height",100),i=this.get("gap",0),s=this.get("strokeWidth",1);if(i){let n=i+s,r=e/n,o=this.get("angle",0)*Math.PI/180;if(0===o)for(let e=-r;e<2*r;e++){const i=Math.round(e*n-n/2)+.5;this._display.moveTo(-t,i),this._display.lineTo(2*t,i)}else{const i=Math.cos(o),s=Math.sin(o),r=2*Math.sqrt(t*t+e*e),a=n/Math.max(Math.abs(i),Math.abs(s)),h=2*Math.ceil(r/a);for(let t=-h;t0&&(r.beginFill(s,n),r.drawRect(0,0,e,i),r.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,r,t,e,i)}this._clear=!1}}n.className="Pattern",n.classNames=s.JH.classNames.concat([n.className])},4429:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(3437);class n extends s.c{_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const t=this.get("canvas");t&&(this.set("width",t.width),this.set("height",t.height))}_draw(){super._draw();const t=this.get("colorOpacity");void 0!==t&&(this._display.alpha=Math.max(0,t));const e=this._image;if(e){const t=this.get("width",100),i=this.get("height",100),s=this.get("fit","image");let n=0,r=0;"pattern"==s?(n=t,r=i,this.markDirty()):(n=e.width,r=e.height,"image"==s&&(this.set("width",n),this.set("height",r)));let o=0,a=0;this.get("centered",!0)&&(o=t/2-n/2,a=i/2-r/2),this._display.image(e,n,r,o,a)}const i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){const t=this.get("src");if(t){const e=new Image;e.src=t,e.decode().then((()=>{this._image=e,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{}))}}}n.className="PicturePattern",n.classNames=s.c.classNames.concat([n.className])},6490:function(t,e,i){"use strict";i.d(e,{SR:function(){return s},Wn:function(){return u},XG:function(){return p},ne:function(){return h},w6:function(){return l}});var s,n=i(7582),r=i(6245),o=i(1112),a=i(256);function h(t){return(0,n.mG)(this,void 0,void 0,(function*(){if(void 0!==t){const e=[];a.each(t,((t,i)=>{e.push(i.waitForStop())})),yield Promise.all(e)}}))}function l(t,e,i){return e+t*(i-e)}function c(t,e,i){return t>=1?i:e}function u(t,e,i){return new r.gG(l(t,e.percent,i.percent))}function d(t,e,i){return o.Il.interpolate(t,e,i)}function p(t,e){return"number"==typeof t&&"number"==typeof e?l:t instanceof r.gG&&e instanceof r.gG?u:t instanceof o.Il&&e instanceof o.Il?d:c}!function(t){t[t.Stopped=0]="Stopped",t[t.Playing=1]="Playing",t[t.Paused=2]="Paused"}(s||(s={}))},5071:function(t,e,i){"use strict";i.r(e),i.d(e,{add:function(){return v},any:function(){return r},copy:function(){return k},each:function(){return a},eachContinue:function(){return l},eachReverse:function(){return h},find:function(){return S},findIndex:function(){return O},findIndexReverse:function(){return P},findMap:function(){return C},findReverse:function(){return N},first:function(){return d},getFirstSortedIndex:function(){return R},getSortedIndex:function(){return A},has:function(){return D},indexOf:function(){return n},insert:function(){return p},insertIndex:function(){return M},keepIf:function(){return U},last:function(){return u},map:function(){return o},move:function(){return y},pushAll:function(){return f},pushOne:function(){return w},remove:function(){return _},removeFirst:function(){return m},removeIndex:function(){return E},replace:function(){return b},setIndex:function(){return g},shiftLeft:function(){return c},shuffle:function(){return L},slice:function(){return T},toArray:function(){return x}});var s=i(5040);function n(t,e){const i=t.length;for(let s=0;s0;)--i,e(t[i],i)}function l(t,e){const i=t.length;for(let s=0;s0;)if(--i,e(t[i],i))return i;return-1}function S(t,e){const i=O(t,e);if(-1!==i)return t[i]}function N(t,e){const i=P(t,e);if(-1!==i)return t[i]}function C(t,e){const i=t.length;for(let s=0;s>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,i=r+1):s=r}return{found:n,index:n?i-1:i}}function R(t,e){let i=0,s=t.length,n=!1;for(;i>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,s=r):s=r}return{found:n,index:i}}function U(t,e){let i=t.length;for(;i>0;)--i,e(t[i])||t.splice(i,1)}},1112:function(t,e,i){"use strict";i.d(e,{$_:function(){return a},Il:function(){return h}});var s=i(6490),n=i(7652),r=i(5040);function o(t){return"#"===t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0].repeat(2)+t[1].repeat(2)+t[2].repeat(2)),parseInt(t,16)}function a(t){return h.fromAny(t)}class h{constructor(t){this._hex=0|t}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return 255&this._hex}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+n.padString(this.r.toString(16),2)+n.padString(this.g.toString(16),2)+n.padString(this.b.toString(16),2)}toHSL(t=1){return n.rgbToHsl({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,e,i){const s=n.hslToRgb({h:t,s:e,l:i});return this.fromRGB(s.r,s.g,s.b)}toString(){return this.toCSSHex()}static fromHex(t){return new h(t)}static fromRGB(t,e,i){return new h((0|i)+(e<<8)+(t<<16))}static fromString(t){return new h(o(t))}static fromCSS(t){return new h(function(t){let e=(t=t.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return 0;let i="";for(let t=1;t<=3;t++){let s=parseInt(e[t]).toString(16);1==s.length&&(s="0"+s),i+=s}return o(i)}(t))}static fromAny(t){if(r.isString(t)){if("#"==t[0])return h.fromString(t);if("rgb"==t.substr(0,3))return h.fromCSS(t)}else{if(r.isNumber(t))return h.fromHex(t);if(t instanceof h)return h.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,e,i){const s=n.alternativeColor({r:t.r,g:t.g,b:t.b},e?{r:e.r,g:e.g,b:e.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(s.r,s.g,s.b)}static interpolate(t,e,i,n="rgb"){if("hsl"==n){const n=e.toHSL(),r=i.toHSL();return h.fromHSL((0,s.w6)(t,n.h,r.h),(0,s.w6)(t,n.s,r.s),(0,s.w6)(t,n.l,r.l))}return h.fromRGB((0,s.w6)(t,e.r,i.r),(0,s.w6)(t,e.g,i.g),(0,s.w6)(t,e.b,i.b))}static lighten(t,e){const i=n.lighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static brighten(t,e){const i=n.brighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static saturate(t,e){const i=n.saturate({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}}},2754:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});var s=i(6331),n=i(1112);class r extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const t=this.getPrivate("currentPass"),e=this.get("colors",[this.get("baseColor",n.Il.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",e.length);const i=this.getPrivate("numColors"),s=this.get("passOptions"),r=this.get("reuse");for(let o=0;o1;)r-=1;let a=i.s+(s.saturation||0)*t;a>1&&(a=1),a<0&&(a=0);let h=i.l+(s.lightness||0)*t;for(;h>1;)h-=1;e.push(n.Il.fromHSL(r,a,h))}}getIndex(t){const e=this.get("colors",[]),i=this.get("saturation");return t>=e.length?(this.generateColors(),this.getIndex(t)):null!=i?n.Il.saturate(e[t],i):e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}r.className="ColorSet",r.classNames=s.JH.classNames.concat([r.className])},9582:function(t,e,i){"use strict";i.d(e,{Q:function(){return r},k:function(){return n}});var s=i(7144);class n extends s.aV{incrementRef(){}decrementRef(){}_onPush(t){this.processor&&this.processor.processRow(t),super._onPush(t)}_onInsertIndex(t,e){this.processor&&this.processor.processRow(e),super._onInsertIndex(t,e)}_onSetIndex(t,e,i){this.processor&&this.processor.processRow(i),super._onSetIndex(t,e,i)}}class r{constructor(t){this._value=t}incrementRef(){}decrementRef(){}}},6460:function(t,e,i){"use strict";i.d(e,{C:function(){return h}});var s=i(6331),n=i(7255),r=i(462),o=i(5040),a=i(7652);class h extends s.JH{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i=!1){let s;void 0!==e&&""!==e||(e=this.get("dateFormat","yyyy-MM-dd"));let n=t;if(o.isObject(e))try{const t=this.get("intlLocales");return t?new Intl.DateTimeFormat(t,e).format(n):new Intl.DateTimeFormat(void 0,e).format(n)}catch(t){return"Invalid"}let r=this.parseFormat(e);const a=this._root.timezone;let h=n;return!a||this._root.utc||i||(n=a.convertLocal(n)),o.isNumber(n.getTime())?(s=this.applyFormat(n,r,i,h),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s):"Invalid date"}applyFormat(t,e,i=!1,s){let n,h,l,c,u,d,p,g,f=e.template,_=t.getTime();this._root.utc&&!i?(n=t.getUTCFullYear(),h=t.getUTCMonth(),l=t.getUTCDay(),c=t.getUTCDate(),u=t.getUTCHours(),d=t.getUTCMinutes(),p=t.getUTCSeconds(),g=t.getUTCMilliseconds()):(n=t.getFullYear(),h=t.getMonth(),l=t.getDay(),c=t.getDate(),u=t.getHours(),d=t.getMinutes(),p=t.getSeconds(),g=t.getMilliseconds());for(let i=0,m=e.parts.length;i=12?this._t("PM"):this._t("AM");break;case"aa":m=u>=12?this._t("P.M."):this._t("A.M.");break;case"aaa":m=u>=12?this._t("P"):this._t("A");break;case"h":m=a.get12Hours(u).toString();break;case"hh":m=a.padString(a.get12Hours(u),2,"0");break;case"H":m=u.toString();break;case"HH":m=a.padString(u,2,"0");break;case"K":m=a.get12Hours(u,0).toString();break;case"KK":m=a.padString(a.get12Hours(u,0),2,"0");break;case"k":m=(u+1).toString();break;case"kk":m=a.padString(u+1,2,"0");break;case"m":m=d.toString();break;case"mm":m=a.padString(d,2,"0");break;case"s":m=p.toString();break;case"ss":m=a.padString(p,2,"0");break;case"S":case"SS":case"SSS":m=Math.round(g/1e3*Math.pow(10,e.parts[i].length)).toString();break;case"x":m=_.toString();break;case"n":case"nn":case"nnn":m=a.padString(g,e.parts[i].length,"0");break;case"z":m=a.getTimeZone(s||t,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":m=a.getTimeZone(s||t,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":m=a.getTimeZone(s||t,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":m=a.getTimeZone(s||t,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let f=this._root.utc?"UTC":this._root.timezone;f instanceof r.r&&(f=f.name);const y=f?a.getTimezoneOffset(f,s||t):t.getTimezoneOffset();let v=Math.abs(y)/60,w=Math.floor(v),b=60*v-60*w;this._root.utc&&(w=0,b=0),"Z"==e.parts[i]?(m="GMT",m+=y>0?"-":"+",m+=a.padString(w,2)+":"+a.padString(b,2)):(m=y>0?"-":"+",m+=a.padString(w,2)+a.padString(b,2));break;case"i":m=t.toISOString();break;case"I":m=t.toUTCString()}f=f.replace(o.PLACEHOLDER,m)}return f}parseFormat(t){let e={template:"",parts:[]},i=n.V.chunk(t,!0);for(let t=0;t-1&&(l.year=parseInt(p[h.year])),h.year3>-1){let t=parseInt(p[h.year3]);t+=1e3,l.year=t}if(h.year2>-1){let t=parseInt(p[h.year2]);t+=t>50?1e3:2e3,l.year=t}if(h.year1>-1){let t=parseInt(p[h.year1]);t=10*Math.floor((new Date).getFullYear()/10)+t,l.year=t}if(h.monthLong>-1&&(l.month=this.resolveMonth(p[h.monthLong])),h.monthShort>-1&&(l.month=this.resolveShortMonth(p[h.monthShort])),h.month>-1&&(l.month=parseInt(p[h.month])-1),h.week>-1&&-1===h.day&&(l.month=0,l.day=a.getDayFromWeek(parseInt(p[h.week]),l.year,1,i)),h.day>-1&&(l.day=parseInt(p[h.day])),h.yearDay>-1&&(l.month=0,l.day=parseInt(p[h.yearDay])),h.hourBase0>-1&&(l.hour=parseInt(p[h.hourBase0])),h.hourBase1>-1&&(l.hour=parseInt(p[h.hourBase1])-1),h.hour12Base0>-1){let t=parseInt(p[h.hour12Base0]);11==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.hour12Base1>-1){let t=parseInt(p[h.hour12Base1]);12==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.minute>-1&&(l.minute=parseInt(p[h.minute])),h.second>-1&&(l.second=parseInt(p[h.second])),h.millisecond>-1){let t=parseInt(p[h.millisecond]);2==h.millisecondDigits?t*=10:1==h.millisecondDigits&&(t*=100),l.millisecond=t}if(h.timestamp>-1){l.timestamp=parseInt(p[h.timestamp]);const t=new Date(l.timestamp);l.year=t.getUTCFullYear(),l.month=t.getUTCMonth(),l.day=t.getUTCDate(),l.hour=t.getUTCHours(),l.minute=t.getUTCMinutes(),l.second=t.getUTCSeconds(),l.millisecond=t.getUTCMilliseconds()}h.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.zone])),h.iso>-1&&(l.year=o.toNumber(p[h.iso+0]),l.month=o.toNumber(p[h.iso+1])-1,l.day=o.toNumber(p[h.iso+2]),l.hour=o.toNumber(p[h.iso+3]),l.minute=o.toNumber(p[h.iso+4]),l.second=o.toNumber(p[h.iso+5]),l.millisecond=o.toNumber(p[h.iso+6]),"Z"==p[h.iso+7]||"z"==p[h.iso+7]?l.utc=!0:""!=p[h.iso+7]&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.iso+7]))),s=l.utc?new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else s=new Date(t);return s}resolveTimezoneOffset(t,e){if(e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let i=e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),s=i[1],n=i[2],r=i[3],o=60*parseInt(n)+parseInt(r);return"+"==s&&(o*=-1),o-(t||new Date).getTimezoneOffset()}return 0}resolveMonth(t){let e=this._months().indexOf(t);return e>-1||!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._months()).indexOf(t),e>-1)?e:0}resolveShortMonth(t){let e=this._shortMonths().indexOf(t);return e>-1?e:(e=this._months().indexOf(t),e>-1||this._root.language&&!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._shortMonths()).indexOf(t),e>-1)?e:0)}isAm(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1}getStringList(t){let e=[];for(let i=0;i{t.dispose()}))}}class a extends n{constructor(t){super(),this._disposers=t}_dispose(){s.each(this._disposers,(t=>{t.dispose()}))}get disposers(){return this._disposers}}class h extends n{_dispose(){null!=this._disposer&&(this._disposer.dispose(),this._disposer=void 0)}get(){return this._value}set(t,e){null!=this._disposer&&this._disposer.dispose(),this._disposer=e,this._value=t}reset(){this.set(void 0,void 0)}}class l extends r{constructor(){super(...arguments),this._counter=0}increment(){return++this._counter,new r((()=>{--this._counter,0===this._counter&&this.dispose()}))}}},798:function(t,e,i){"use strict";i.d(e,{$:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{constructor(){super(...arguments),this._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}}_setDefaults(){const t="_duration_millisecond",e="_duration_second",i="_duration_minute",s="_duration_hour",n="_duration_day",r="_duration_week",o="_duration_month",a="_minute",h="_hour",l="_day",c="_week",u="_week",d="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(t),second:this._t(t+"_second"),minute:this._t(t+a),hour:this._t(t+h),day:this._t(t+l),week:this._t(t+c),month:this._t(t+u),year:this._t(t+d)},second:{second:this._t(e),minute:this._t(e+a),hour:this._t(e+h),day:this._t(e+l),week:this._t(e+c),month:this._t(e+u),year:this._t(e+d)},minute:{minute:this._t(i),hour:this._t(i+h),day:this._t(i+l),week:this._t(i+c),month:this._t(i+u),year:this._t(i+d)},hour:{hour:this._t(s),day:this._t(s+l),week:this._t(s+c),month:this._t(s+u),year:this._t(s+d)},day:{day:this._t(n),week:this._t(n+c),month:this._t(n+u),year:this._t(n+d)},week:{week:this._t(r),month:this._t(r+u),year:this._t(r+d)},month:{month:this._t(o),year:this._t(o+d)},year:{year:this._t("_duration_year")}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s=i||this.get("baseUnit");void 0!==e&&""!==e||(e=null!=this.get("durationFormat")?this.get("durationFormat"):this.getFormat(a.toNumber(t),void 0,s)),e=o.cleanFormat(e);let n,r=this.parseFormat(e,s),h=Number(t);n=h>this.get("negativeBase")?r.positive:h{if(e.parsed)return;let i=e.source,s=[];s=e.source.match(/^\[([^\]]*)\]/),s&&s.length&&""!==s[0]&&(i=e.source.substr(s[0].length),e.color=s[1]);let r=n.V.chunk(i,!0);for(let t=0;t{"millisecond"==t&&1e3==i?(h.second++,h.millisecond=0):"second"==t&&60==i?(h.minute++,h.second=0):"minute"==t&&60==i?(h.hour++,h.minute=0):"hour"==t&&24==i?(h.day++,h.hour=0):"day"==t&&7==i&&-1!==e.parts.indexOf("w")?(h.week++,h.day=0):"day"==t&&30==i?(h.month++,h.day=0):"month"==t&&12==i&&(h.year++,h.month=0)}));for(let t=0,i=e.parts.length;t{if(t==e||i){if(s/n<=1)return i||(i=t),!1;i=t}return!0})),i}getMilliseconds(t,e){return e||(e=this.get("baseUnit")),t*this._getUnitValue(e)}_getUnitValue(t){return this._getUnitValues()[t]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}},9395:function(t,e,i){"use strict";i.r(e),i.d(e,{bounce:function(){return k},circle:function(){return c},cubic:function(){return o},elastic:function(){return P},exp:function(){return h},inOut:function(){return p},linear:function(){return n},out:function(){return d},pow:function(){return a},quad:function(){return r},sine:function(){return l},yoyo:function(){return u}});var s=i(751);function n(t){return t}function r(t){return t*t}function o(t){return t*t*t}function a(t,e){return Math.pow(t,e)}function h(t){return Math.pow(2,10*t-10)}function l(t){return 1-Math.cos(t*s.HALFPI)}function c(t){return 1-Math.sqrt(1-t*t)}function u(t){return function(e){return t(e<.5?2*e:2*(1-e))}}function d(t){return function(e){return 1-t(1-e)}}function p(t){return function(e){return e<=.5?t(2*e)/2:1-t(2*(1-e))/2}}let g=4/11,f=6/11,_=8/11,m=3/4,y=9/11,v=10/11,w=15/16,b=21/22,x=63/64,D=1/g/g;function k(t){return 1-function(t){return t{this._userSettings[t]=!0}))}get(t,e){const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._settings[t]=e}set(t,e){this._userSettings[t]=!0,this.setRaw(t,e)}remove(t){delete this._userSettings[t],delete this._settings[t]}setAll(t){o.entries(t).forEach((([t,e])=>{this.set(t,e)}))}_eachSetting(t){o.each(this._settings,t)}apply(){const t={stateAnimationEasing:!0,stateAnimationDuration:!0},e=this._entity.states.lookup("default");this._eachSetting(((i,s)=>{t[i]||(t[i]=!0,this!==e&&(i in e._settings||(e._settings[i]=this._entity.get(i))),this._entity.set(i,s))}))}applyAnimate(t){null==t&&(t=this._settings.stateAnimationDuration),null==t&&(t=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let e=this._settings.stateAnimationEasing;null==e&&(e=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",a.cubic)));const i=this._entity.states.lookup("default"),s={stateAnimationEasing:!0,stateAnimationDuration:!0},n={};return this._eachSetting(((r,o)=>{if(!s[r]){s[r]=!0,this!=i&&(r in i._settings||(i._settings[r]=this._entity.get(r)));const a=this._entity.animate({key:r,to:o,duration:t,easing:e});a&&(n[r]=a)}})),n}}class l{constructor(t){this._states={},this._entity=t}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new h(this._entity,e);return this._states[t]=i,i}}remove(t){delete this._states[t]}apply(t){const e=this._states[t];e&&e.apply(),this._entity._applyState(t)}applyAnimate(t,e){let i;const s=this._states[t];return s&&(i=s.applyAnimate(e)),this._entity._applyStateAnimated(t,e),i}}var c=i(3145),u=i(5071),d=i(3540);class p{constructor(t){this._callbacks={},this._disabled={},this._entity=t}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),this._entity._markDirtyKey(t),new s.ku((()=>{u.removeFirst(i,e)&&this._entity._markDirtyKey(t)}))}remove(t){const e=this._callbacks[t];void 0!==e&&(delete this._callbacks[t],0!==e.length&&this._entity._markDirtyKey(t))}enable(t){this._disabled[t]&&(delete this._disabled[t],this._entity._markDirtyKey(t))}disable(t){this._disabled[t]||(this._disabled[t]=!0,this._entity._markDirtyKey(t))}fold(t,e){if(!this._disabled[t]){const i=this._callbacks[t];if(void 0!==i)for(let s=0,n=i.length;s{if(this._stopped)t();else{const e=()=>{i.dispose(),t()},i=this.events.on("stopped",e)}}))}_checkEnded(){return!(this._loops>1&&(--this._loops,1))}_run(t){null!==this._oldTime&&(this._time+=t-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=t}_reset(t){this._oldTime=t,this._time=0}_value(t){return this._interpolate(this._easing(t),this._from,this._to)}}let f=0;class _{constructor(t){this.uid=++f,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._prevSettings={},this._prevPrivateSettings={},this._animatingSettings={},this._animatingPrivateSettings={},this._disposed=!1,this._userProperties={},this.enableDispose=!0,this._settings=t}_checkDirty(){o.keys(this._settings).forEach((t=>{this._userProperties[t]=!0,this._markDirtyKey(t)}))}resetUserSettings(){this._userProperties={}}_runAnimation(t){let e=r.SR.Stopped;if(!this.isDisposed()){let i=!1,s=!1;o.each(this._animatingSettings,((e,n)=>{if(n.stopped)this._stopAnimation(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.set(e,n._value(1)):(i=!0,n._reset(t),this._set(e,n._value(1))):(i=!0,this._set(e,n._value(s)))}else s=!0})),o.each(this._animatingPrivateSettings,((e,n)=>{if(n.stopped)this._stopAnimationPrivate(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.setPrivate(e,n._value(1)):(i=!0,n._reset(t),this._setPrivate(e,n._value(1))):(i=!0,this._setPrivate(e,n._value(s)))}else s=!0})),i?e=r.SR.Playing:s&&(e=r.SR.Paused)}return e}_markDirtyKey(t){this.markDirty()}_markDirtyPrivateKey(t){this.markDirty()}on(t,e){let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}off(t,e){let i=this._settingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._settingEvents[t]}onPrivate(t,e){let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}offPrivate(t,e){let i=this._privateSettingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._privateSettingEvents[t]}getRaw(t,e){const i=this._settings[t];return void 0!==i?i:e}has(t){return t in this._settings}get(t,e){return this.getRaw(t,e)}_sendKeyEvent(t,e){const i=this._settingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_sendPrivateKeyEvent(t,e){const i=this._privateSettingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_setRaw(t,e,i){this._prevSettings[t]=e,this._sendKeyEvent(t,i)}setRaw(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&this._setRaw(t,i,e)}_set(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&(this._setRaw(t,i,e),this._markDirtyKey(t))}_stopAnimation(t){const e=this._animatingSettings[t];e&&(delete this._animatingSettings[t],e.stop())}set(t,e){return this._set(t,e),this._stopAnimation(t),e}remove(t){t in this._settings&&(this._prevSettings[t]=this._settings[t],delete this._settings[t],this._sendKeyEvent(t,void 0),this._markDirtyKey(t)),this._stopAnimation(t)}removeAll(){u.each(o.keys(this._settings),(t=>{this.remove(t)}))}getPrivate(t,e){const i=this._privateSettings[t];return void 0!==i?i:e}_setPrivateRaw(t,e,i){this._prevPrivateSettings[t]=e,this._sendPrivateKeyEvent(t,i)}setPrivateRaw(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&this._setPrivateRaw(t,i,e)}_setPrivate(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&(this._setPrivateRaw(t,i,e),this._markDirtyPrivateKey(t))}_stopAnimationPrivate(t){const e=this._animatingPrivateSettings[t];e&&(e.stop(),delete this._animatingPrivateSettings[t])}setPrivate(t,e){return this._setPrivate(t,e),this._stopAnimationPrivate(t),e}removePrivate(t){t in this._privateSettings&&(this._prevPrivateSettings[t]=this._privateSettings[t],delete this._privateSettings[t],this._markDirtyPrivateKey(t)),this._stopAnimationPrivate(t)}setAll(t){o.each(t,((t,e)=>{this.set(t,e)}))}animate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.get(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.set(e,i);else{if(void 0!==r&&r!==i){this.set(e,r);const t=this._animatingSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.set(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}animatePrivate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.getPrivate(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.setPrivate(e,i);else{if(void 0!==r&&r!==i){this.setPrivate(e,r);const t=this._animatingPrivateSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.setPrivate(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}}class m extends _{constructor(t,e,i,s=[]){if(super(e),this.states=new l(this),this.adapters=new p(this),this.events=this._createEvents(),this._userPrivateProperties={},this._dirty={},this._dirtyPrivate={},this._templates=[],this._defaultThemes=[],this._templateDisposers=[],this._disposers=[],this._runSetup=!0,this._disposerProperties={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t,this._internalTemplates=s,e.id&&this._registerId(e.id)}static new(t,e,i){const s=new this(t,e,!0);return s._template=i,s._afterNew(),s}static _new(t,e,i=[]){const s=new this(t,e,!0,i);return s._afterNew(),s}_afterNew(){this._checkDirty();let t=!1;const e=this._template;e&&(t=!0,e._setObjectTemplate(this)),u.each(this._internalTemplates,(e=>{t=!0,e._setObjectTemplate(this)})),t&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const t=this._template;t&&t._setObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._setObjectTemplate(this)})),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new n.p}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(t,e){const i=this.get(t);if(i)return i;{const i=e();return this.set(t,i),i}}_setDefault(t,e){this.has(t)||super.set(t,e)}_setRawDefault(t,e){this.has(t)||super.setRaw(t,e)}_clearDirty(){o.keys(this._dirty).forEach((t=>{this._dirty[t]=!1})),o.keys(this._dirtyPrivate).forEach((t=>{this._dirtyPrivate[t]=!1}))}isDirty(t){return!!this._dirty[t]}isPrivateDirty(t){return!!this._dirtyPrivate[t]}_markDirtyKey(t){this._dirty[t]=!0,super._markDirtyKey(t)}_markDirtyPrivateKey(t){this._dirtyPrivate[t]=!0,super._markDirtyKey(t)}isType(t){return-1!==this.classNames.indexOf(t)}_pushPropertyDisposer(t,e){let i=this._disposerProperties[t];return void 0===i&&(i=this._disposerProperties[t]=[]),i.push(e),e}_disposeProperty(t){const e=this._disposerProperties[t];void 0!==e&&(u.each(e,(t=>{t.dispose()})),delete this._disposerProperties[t])}set template(t){const e=this._template;e!==t&&(this._template=t,e&&e._removeObjectTemplate(this),t&&t._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(t){}_applyStateAnimated(t,e){}get(t,e){const i=this.adapters.fold(t,this._settings[t]);return void 0!==i?i:e}isUserSetting(t){return this._userProperties[t]||!1}set(t,e){return this._userProperties[t]=!0,super.set(t,e)}setRaw(t,e){this._userProperties[t]=!0,super.setRaw(t,e)}_setSoft(t,e){return this._userProperties[t]?e:super.set(t,e)}remove(t){delete this._userProperties[t],this._removeTemplateProperty(t)}setPrivate(t,e){return this._userPrivateProperties[t]=!0,super.setPrivate(t,e)}setPrivateRaw(t,e){this._userPrivateProperties[t]=!0,super.setPrivateRaw(t,e)}removePrivate(t){delete this._userPrivateProperties[t],this._removeTemplatePrivateProperty(t)}_setTemplateProperty(t,e,i){this._userProperties[e]||t===this._findTemplateByKey(e)&&super.set(e,i)}_setTemplatePrivateProperty(t,e,i){this._userPrivateProperties[e]||t===this._findTemplateByPrivateKey(e)&&super.setPrivate(e,i)}_removeTemplateProperty(t){if(!this._userProperties[t]){const e=this._findTemplateByKey(t);e?super.set(t,e._settings[t]):super.remove(t)}}_removeTemplatePrivateProperty(t){if(!this._userPrivateProperties[t]){const e=this._findTemplateByPrivateKey(t);e?super.setPrivate(t,e._privateSettings[t]):super.removePrivate(t)}}_walkParents(t){t(this._root._rootContainer),t(this)}_applyStateByKey(t){const e=this.states.create(t,{}),i={};this._eachTemplate((s=>{const n=s.states.lookup(t);n&&n._apply(e,i)})),o.each(e._settings,(t=>{i[t]||e._userSettings[t]||e.remove(t)}))}_applyTemplate(t,e){this._templateDisposers.push(t._apply(this,e)),o.each(t._settings,((t,i)=>{e.settings[t]||this._userProperties[t]||(e.settings[t]=!0,super.set(t,i))})),o.each(t._privateSettings,((t,i)=>{e.privateSettings[t]||this._userPrivateProperties[t]||(e.privateSettings[t]=!0,super.setPrivate(t,i))})),this._runSetup&&t.setup&&(this._runSetup=!1,t.setup(this))}_findStaticTemplate(t){if(this._template&&t(this._template))return this._template}_eachTemplate(t){this._findStaticTemplate((e=>(t(e),!1))),u.eachReverse(this._internalTemplates,t),u.each(this._templates,t)}_applyTemplates(t=!0){t&&this._disposeTemplates();const e={settings:{},privateSettings:{},states:{}};this._eachTemplate((t=>{this._applyTemplate(t,e)})),t&&(o.each(this._settings,(t=>{this._userProperties[t]||e.settings[t]||super.remove(t)})),o.each(this._privateSettings,(t=>{this._userPrivateProperties[t]||e.privateSettings[t]||super.removePrivate(t)})))}_findTemplate(t){const e=this._findStaticTemplate(t);if(void 0===e){const e=u.findReverse(this._internalTemplates,t);return void 0===e?u.find(this._templates,t):e}return e}_findTemplateByKey(t){return this._findTemplate((e=>t in e._settings))}_findTemplateByPrivateKey(t){return this._findTemplate((e=>t in e._privateSettings))}_disposeTemplates(){u.each(this._templateDisposers,(t=>{t.dispose()})),this._templateDisposers.length=0}_removeTemplates(){u.each(this._templates,(t=>{t._removeObjectTemplate(this)})),this._templates.length=0}_applyThemes(t=!1){if(this.get("ignoreThemes"))return!1;let e=!1;const i=[];let s=[];const n=new Set,r=this.get("themeTagsSelf");return r&&u.each(r,(t=>{n.add(t)})),this._walkParents((t=>{t===this._root._rootContainer&&(e=!0),t._defaultThemes.length>0&&i.push(t._defaultThemes);const r=t.get("themes");r&&s.push(r);const o=t.get("themeTags");o&&u.each(o,(t=>{n.add(t)}))})),s=i.concat(s),this._removeTemplates(),(e||t)&&u.eachReverse(this.classNames,(t=>{const e=[];u.each(s,(i=>{u.each(i,(i=>{const s=i._lookupRules(t);s&&u.eachReverse(s,(t=>{if(t.tags.every((t=>n.has(t)))){const i=u.getFirstSortedIndex(e,(e=>{const i=d.qu(t.tags.length,e.tags.length);return 0===i?d.wq(t.tags,e.tags,d.qu):i}));e.splice(i.index,0,t)}}))}))})),u.each(e,(t=>{this._templates.push(t.template),t.template._setObjectTemplate(this)}))})),this._applyTemplates(),(e||t)&&(this._runSetup=!1),e||t}_changed(){}_beforeChanged(){if(this.isDirty("id")){const t=this.get("id");t&&this._registerId(t);const e=this._prevSettings.id;e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}}_registerId(t){if(this._root.entitiesById[t]&&this._root.entitiesById[t]!==this)throw new Error('An entity with id "'+t+'" already exists.');this._root.entitiesById[t]=this,c.i_.entitiesById[t]=this}_afterChanged(){}addDisposer(t){return this._disposers.push(t),t}_dispose(){super._dispose();const t=this._template;t&&t._removeObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._removeObjectTemplate(this)})),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach((t=>{t.dispose()})),o.each(this._disposerProperties,((t,e)=>{u.each(e,(t=>{t.dispose()}))}));const e=this.get("id");e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}setTimeout(t,e){const i=setTimeout((()=>{this.removeDispose(n),t()}),e),n=new s.ku((()=>{clearTimeout(i)}));return this._disposers.push(n),n}removeDispose(t){if(!this.isDisposed()){let e=u.indexOf(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()}hasTag(t){return-1!==u.indexOf(this.get("themeTags",[]),t)}addTag(t){if(!this.hasTag(t)){const e=this.get("themeTags",[]);e.push(t),this.set("themeTags",e)}}removeTag(t){if(this.hasTag(t)){const e=this.get("themeTags",[]);u.remove(e,t),this.set("themeTags",e)}}_t(t,e,...i){return this._root.language.translate(t,e,...i)}get root(){return this._root}}m.className="Entity",m.classNames=["Entity"]},9770:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var s=i(7449),n=i(5071),r=i(5040);class o{constructor(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{n.each(t,(t=>{t.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}}hasListeners(){return 0!==this._listeners.length}hasListenersByType(t){return n.any(this._listeners,(e=>(null===e.type||e.type===t)&&!e.killed))}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(t){delete this._disabled[t]}disableType(t,e=1/0){this._disabled[t]=e}_removeListener(t){if(0===this._iterating){const e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)}_removeExistingListener(t,e,i,s){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((n=>{n.once!==t||n.type!==e||void 0!==i&&n.callback!==i||n.context!==s||n.disposer.dispose()}))}isEnabled(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&void 0===this._disabled[t]}removeType(t){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((e=>{e.type===t&&e.disposer.dispose()}))}has(t,e,i){return-1!==n.findIndex(this._listeners,(s=>!0!==s.once&&s.type===t&&(void 0===e||s.callback===e)&&s.context===i))}_shouldDispatch(t){if(this._disposed)throw new Error("EventDispatcher is disposed");const e=this._disabled[t];return r.isNumber(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled}_eachListener(t){++this._iterating;try{n.each(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(n.each(this._killed,(t=>{this._removeListener(t)})),this._killed.length=0)}}dispatch(t,e){this._shouldDispatch(t)&&this._eachListener((i=>{i.killed||null!==i.type&&i.type!==t||(i._debounceDelay?(i._debounceTimeout&&window.clearTimeout(i._debounceTimeout),i._debounceTimeout=window.setTimeout((()=>{i._debounceTimeout=void 0,i.killed||i.dispatch(t,e)}),i._debounceDelay)):i.dispatch(t,e))}))}_on(t,e,i,n,r,o,a){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);const h={type:e,callback:i,context:n,shouldClone:r,dispatch:o,killed:!1,once:t,disposer:new s.ku((()=>{h.killed=!0,h._debounceTimeout&&window.clearTimeout(h._debounceTimeout),this._removeListener(h)})),_debounceDelay:a};return this._listeners.push(h),h}onAll(t,e,i=!0){return this._on(!1,null,t,e,i,((i,s)=>t.call(e,s))).disposer}on(t,e,i,s=!0){return this._on(!1,t,e,i,s,((t,s)=>e.call(i,s))).disposer}onDebounced(t,e,i,s,n=!0){return this._on(!1,t,e,s,n,((t,i)=>e.call(s,i)),i).disposer}once(t,e,i,s=!0){const n=this._on(!0,t,e,i,s,((t,s)=>{n.disposer.dispose(),e.call(i,s)}));return n.disposer}off(t,e,i){this._removeExistingListener(!1,t,e,i)}copyFrom(t){if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const e=[];return n.each(t._listeners,(t=>{!t.killed&&t.shouldClone&&(null===t.type?e.push(this.onAll(t.callback,t.context)):t.once?e.push(this.once(t.type,t.callback,t.context)):e.push(this.on(t.type,t.callback,t.context)))})),new s.FV(e)}}},9821:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(6331);class n extends s.JH{}n.className="InterfaceColors",n.classNames=s.JH.classNames.concat([n.className])},7144:function(t,e,i){"use strict";i.d(e,{aV:function(){return o},dn:function(){return a},o:function(){return h}});var s=i(9770),n=i(5071);function r(t,e){if(!(t>=0&&t=0&&t{this.push(t)}))}copyFrom(t){this.pushAll(t._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(t){const e=this._values;this._values=[],this._onClear(e),n.each(t,(t=>{this._values.push(t),this._onPush(t)}))}clear(){this.setAll([])}*[Symbol.iterator](){const t=this._values.length;for(let e=0;e{t.dispose()})),super._onClear(t)}_dispose(){this.autoDispose&&n.each(this._values,(t=>{t.dispose()}))}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class h extends a{constructor(t,e){super(),this.template=t,this.make=e}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}}},751:function(t,e,i){"use strict";i.r(e),i.d(e,{DEGREES:function(){return a},HALFPI:function(){return r},PI:function(){return n},RADIANS:function(){return o},boundsOverlap:function(){return M},ceil:function(){return l},circlesOverlap:function(){return O},closest:function(){return T},cos:function(){return f},fitAngleToRange:function(){return w},fitToRange:function(){return d},getAngle:function(){return x},getArcBounds:function(){return m},getArcPoint:function(){return y},getCubicControlPointA:function(){return c},getCubicControlPointB:function(){return u},getPointOnLine:function(){return k},getPointOnQuadraticCurve:function(){return D},inBounds:function(){return b},mergeBounds:function(){return v},normalizeAngle:function(){return _},round:function(){return h},sin:function(){return p},spiralPoints:function(){return E},tan:function(){return g}});var s=i(5040);const n=Math.PI,r=n/2,o=n/180,a=180/n;function h(t,e,i){if(!(0,s.isNumber)(e)||e<=0){let e=Math.round(t);return i&&e-t==.5&&e--,e}{let i=Math.pow(10,e);return Math.round(t*i)/i}}function l(t,e){if(!(0,s.isNumber)(e)||e<=0)return Math.ceil(t);{let i=Math.pow(10,e);return Math.ceil(t*i)/i}}function c(t,e,i,s,n){return{x:(-t.x+e.x/s+i.x)*s,y:(-t.y+e.y/n+i.y)*n}}function u(t,e,i,s,n){return{x:(t.x+e.x/s-i.x)*s,y:(t.y+e.y/n-i.y)*n}}function d(t,e,i){return Math.min(Math.max(t,e),i)}function p(t){return Math.sin(o*t)}function g(t){return Math.tan(o*t)}function f(t){return Math.cos(o*t)}function _(t){return(t%=360)<0&&(t+=360),t}function m(t,e,i,s,n){let r=Number.MAX_VALUE,o=Number.MAX_VALUE,a=-Number.MAX_VALUE,h=-Number.MAX_VALUE,l=[];l.push(y(n,i)),l.push(y(n,s));let c=Math.min(90*Math.floor(i/90),90*Math.floor(s/90)),u=Math.max(90*Math.ceil(i/90),90*Math.ceil(s/90));for(let t=c;t<=u;t+=90)t>=i&&t<=s&&l.push(y(n,t));for(let t=0;ta&&(a=e.x),e.y>h&&(h=e.y)}return{left:t+r,top:e+o,right:t+a,bottom:e+h}}function y(t,e){return{x:t*f(e),y:t*p(e)}}function v(t){const e=t.length;if(e>0){let i=t[0],s=i.left,n=i.top,r=i.right,o=i.bottom;if(e>1)for(let a=1;ai){let t=e;e=i,i=t}t=_(t);let s=(e-_(e))/360;return ti&&(t-360>e?t-=360:t=te+(i-e)/2-180?e:i),t}function b(t,e){return t.x>=e.left&&t.y>=e.top&&t.x<=e.right&&t.y<=e.bottom}function x(t,e){e||(e={x:2*t.x,y:2*t.y});let i=e.x-t.x,s=e.y-t.y,n=Math.atan2(s,i)*a;return n<0&&(n+=360),_(n)}function D(t,e,i,s){return{x:(1-s)*(1-s)*t.x+2*(1-s)*s*i.x+s*s*e.x,y:(1-s)*(1-s)*t.y+2*(1-s)*s*i.y+s*s*e.y}}function k(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function T(t,e){return t.reduce((function(t,i){return Math.abs(i-e)e.left,s=t.tope.top;return i&&s}function E(t,e,i,s,n,r,h,l,c){let u=n+.01;l=_(l),c=_(c);let d=l*o;cu&&(o=2*u),o*=Math.max(.01,Math.min(1,u/200));let g=d*a,f={x:t+u*Math.cos(d),y:e+u*s/i*Math.sin(d)};if(p.push(f),u=n+.01+(g-l)/360*h,d+=2*Math.asin(o/2/u),d*a>c+360*Math.ceil((i-n)/h))break}return p.shift(),p}function O(t,e){return Math.hypot(t.x-e.x,t.y-e.y)<=t.radius+e.radius}},8219:function(t,e,i){"use strict";i.d(e,{u:function(){return a}});var s=i(6331),n=i(7652),r=i(7449);let o;class a extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._setRawDefault("deactivateRoot",!0),function(t,e,i){const s=e.interfaceColors,a=s.get("secondaryButton").toCSS(),h=s.get("text").toCSS(),l=s.get("alternativeBackground").toCSS(.45);if(!o){const i=new r.FV([new n.StyleRule(t,".am5-modal",{width:"100%",height:"100%",position:"absolute","z-index":"100000",top:"0",left:"0"},e.nonce),new n.StyleRule(t,".am5-modal-curtain",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute",background:s.get("background").toCSS(.5),"z-index":"100"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute","text-align":"center","white-space":"nowrap",background:s.get("background").toCSS(.5),"z-index":"101"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper:before",{content:"''",display:"inline-block",height:"100%","vertical-align":"middle","margin-right":"-0.25em"},e.nonce),new n.StyleRule(t,".am5-modal-content",{display:"inline-block",padding:"1.2em","vertical-align":"middle","text-align":"start","white-space":"normal",background:s.get("background").toCSS(),"border-radius":"4px","-webkit-box-shadow":"0px 0px 36px 0px "+l,"box-shadow":"0px 0px 36px 0px "+l,color:h},e.nonce),new n.StyleRule(t,".am5-modal-content h1",{"font-size":"1em",margin:"0 0 0.5em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table",{display:"table",margin:"1em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-row",{display:"table-row"},e.nonce),new n.StyleRule(t,".am5-modal-table-heading",{display:"table-heading",padding:"3px 10px 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell",{display:"table-cell",padding:"3px 0 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell > *",{"vertical-align":"middle"},e.nonce),new n.StyleRule(t,".am5-modal-content input[type=text], .am5-modal-content input[type=number], .am5-modal-content select",{border:"1px solid "+a,"border-radius":"4px",padding:"3px 5px",margin:"2px"},e.nonce),new n.StyleRule(t,".am5-modal-input-narrow",{width:"50px"},e.nonce),new n.StyleRule(t,".am5-modal-button",{"font-weight":"400",color:s.get("secondaryButtonText").toCSS(),"line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer",padding:"0.2em 0.8em","font-size":"1em","border-radius":"0.25em",margin:"0 0.25em 0 0",border:"1px solid "+s.get("secondaryButtonStroke").toCSS(),background:s.get("secondaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button:hover",{background:s.get("secondaryButtonHover").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary",{color:s.get("primaryButtonText").toCSS(),border:"1px solid "+s.get("primaryButtonStroke").toCSS(),background:s.get("primaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary:hover",{background:s.get("primaryButtonHover").toCSS()},e.nonce)]);o=new r.DM((()=>{o=void 0,i.dispose()}))}o.increment()}(n.getShadowRoot(this._root.dom),this._root);const t=document.createElement("div");t.className="am5-modal",t.style.display="none",this.root._inner.appendChild(t),this.setPrivate("container",t);const e=document.createElement("div");e.className="am5-modal-curtain",t.appendChild(e),this.setPrivate("curtain",e),this._disposers.push(n.addEventListener(e,"click",(()=>{this.cancel()})));const i=document.createElement("div");i.className="am5-modal-wrapper",t.appendChild(i),this.setPrivate("wrapper",i);const s=document.createElement("div");s.className="am5-modal-content",i.appendChild(s),this.setPrivate("content",s);const a=this.get("content");a&&(s.innerHTML=a),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{this.isOpen()&&"Escape"==n.getEventKey(t)&&this.cancel()})))}_beforeChanged(){super._beforeChanged(),this.isDirty("content")&&(this.getPrivate("content").innerHTML=this.get("content",""))}isOpen(){return"none"!=this.getPrivate("container").style.display}open(){this.getPrivate("container").style.display="block",this.get("deactivateRoot")&&this.setTimeout((()=>{this._root._renderer.interactionsEnabled=!1}),10),this.events.dispatch("opened",{type:"opened",target:this})}close(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("closed",{type:"closed",target:this})}cancel(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("cancelled",{type:"cancelled",target:this})}_dispose(){super._dispose();const t=this.getPrivate("container");t.parentElement&&t.parentElement.removeChild(t)}}a.className="Modal",a.classNames=s.JH.classNames.concat([a.className])},780:function(t,e,i){"use strict";i.d(e,{e:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const t="_big_number_suffix_",e="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(t+"3")},{number:1e6,suffix:this._t(t+"6")},{number:1e9,suffix:this._t(t+"9")},{number:1e12,suffix:this._t(t+"12")},{number:1e15,suffix:this._t(t+"15")},{number:1e18,suffix:this._t(t+"18")},{number:1e21,suffix:this._t(t+"21")},{number:1e24,suffix:this._t(t+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(e+"24")},{number:1e-21,suffix:this._t(e+"21")},{number:1e-18,suffix:this._t(e+"18")},{number:1e-15,suffix:this._t(e+"15")},{number:1e-12,suffix:this._t(e+"12")},{number:1e-9,suffix:this._t(e+"9")},{number:1e-6,suffix:this._t(e+"6")},{number:.001,suffix:this._t(e+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s;(null==e||a.isString(e)&&"number"===e.toLowerCase())&&(e=this.get("numberFormat",""));let n=Number(t);if(a.isObject(e))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),e).format(n):new Intl.NumberFormat(void 0,e).format(n)}catch(t){return"Invalid"}else{e=o.cleanFormat(e);let t,h=this.parseFormat(e,this._root.language);t=n>this.get("negativeBase")?h.positive:n{if(e.parsed)return;let i=e.source;"number"===i.toLowerCase()&&(i=this.get("numberFormat","#,###.#####"));let s=n.V.chunk(i,!0);for(let t=0;t=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(i[0]),n="e"+i[1],e.modSpacing&&(n=" "+n)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){const i=o.decimalPlaces(t);if(i>0){const s=Math.pow(10,e.decimals.passive);t=Math.round(parseFloat((t*s).toFixed(i)))/s}}let h="",l=a.numberToString(t).split("."),c=l[0];if(c.length0){let t=[],i=c.split("").reverse().join("");for(let s=0,n=c.length;s<=n;s+=e.thousands.interval){let n=i.substr(s,e.thousands.interval).split("").reverse().join("");""!==n&&t.unshift(n)}c=t.join(e.thousands.separator)}h+=c,1===l.length&&l.push("");let u=l[1];return u.length{e(i,t[i])}))}function l(t,e){for(let i in t)if(u(t,i)&&!e(i,t[i]))break}function c(t,e,i){s.each(o(t,i),(i=>{e(i,t[i])}))}function u(t,e){return{}.hasOwnProperty.call(t,e)}function d(t,e){return h(t,((t,i)=>{null!=i&&null==e[t]&&(e[t]=i)})),e}},3540:function(t,e,i){"use strict";function s(t,e){return t===e?0:t{a.isObject(e)&&"function"==typeof e.dispose&&(e.enableDispose=!0,e.dispose())}))}class l{constructor(t,e,i){this._name=t,this._template=e,this._settings=i}_dispose(){h(this._settings)}get(t,e){const i=this._settings[t];return void 0!==i?i:e}set(t,e){this._settings[t]=e,this._template._stateChanged(this._name)}remove(t){delete this._settings[t],this._template._stateChanged(this._name)}setAll(t){o.keys(t).forEach((e=>{this._settings[e]=t[e]})),this._template._stateChanged(this._name)}_apply(t,e){o.each(this._settings,((i,s)=>{e[i]||t._userSettings[i]||(e[i]=!0,t.setRaw(i,s))}))}}class c{constructor(t){this._states={},this._template=t}_dispose(){o.each(this._states,((t,e)=>{e._dispose()}))}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new l(t,this._template,e);return this._states[t]=i,this._template._stateChanged(t),i}}remove(t){delete this._states[t],this._template._stateChanged(t)}_apply(t,e){o.each(this._states,((i,s)=>{let n=e.states[i];null==n&&(n=e.states[i]={});const r=t.states.create(i,{});s._apply(r,n)}))}}class u{constructor(){this._callbacks={}}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._callbacks[t]}))}remove(t){void 0!==this._callbacks[t]&&delete this._callbacks[t]}_apply(t){const e=[];return o.each(this._callbacks,((i,s)=>{r.each(s,(s=>{e.push(t.adapters.add(i,s))}))})),new n.FV(e)}}class d{constructor(t,e){if(this._disposed=!1,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._entities=[],this.states=new c(this),this.adapters=new u,this.events=new s.p,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=t}static new(t){return new d(t,!0)}_dispose(){h(this._settings),h(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(t,e){this._checkDisposed();const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._checkDisposed(),this._settings[t]=e}set(t,e){this._checkDisposed(),this._settings[t]!==e&&(this.setRaw(t,e),this._entities.forEach((i=>{i._setTemplateProperty(this,t,e)})))}remove(t){this._checkDisposed(),t in this._settings&&(delete this._settings[t],this._entities.forEach((e=>{e._removeTemplateProperty(t)})))}removeAll(){this._checkDisposed(),o.each(this._settings,((t,e)=>{this.remove(t)}))}getPrivate(t,e){this._checkDisposed();const i=this._privateSettings[t];return void 0!==i?i:e}setPrivateRaw(t,e){return this._checkDisposed(),this._privateSettings[t]=e,e}setPrivate(t,e){return this._checkDisposed(),this._privateSettings[t]!==e&&(this.setPrivateRaw(t,e),this._entities.forEach((i=>{i._setTemplatePrivateProperty(this,t,e)}))),e}removePrivate(t){this._checkDisposed(),t in this._privateSettings&&(delete this._privateSettings[t],this._entities.forEach((e=>{e._removeTemplatePrivateProperty(t)})))}setAll(t){this._checkDisposed(),o.each(t,((t,e)=>{this.set(t,e)}))}on(t,e){this._checkDisposed();let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}onPrivate(t,e){this._checkDisposed();let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}_apply(t,e){this._checkDisposed();const i=[];return o.each(this._settingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.on(e,s))}))})),o.each(this._privateSettingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.onPrivate(e,s))}))})),this.states._apply(t,e),i.push(this.adapters._apply(t)),i.push(t.events.copyFrom(this.events)),new n.FV(i)}_setObjectTemplate(t){this._checkDisposed(),this._entities.push(t)}_removeObjectTemplate(t){r.remove(this._entities,t)}_stateChanged(t){this._checkDisposed(),this._entities.forEach((e=>{e._applyStateByKey(t)}))}}},7255:function(t,e,i){"use strict";i.d(e,{V:function(){return r}});var s=i(1112),n=i(5040);class r{static escape(t){return t.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(t){return t.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(t,e=!1,i=!1){let s=[];t=this.escape(t);let r=e?t.split("'"):[t];for(let t=0;t{setTimeout(e,t)}))}let o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629742400,year:31536e6};function a(t){switch(t){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function h(t,e){return null==e&&(e=1),o[t]*e}function l(t){return t?o[t.timeUnit]*t.count:0}function c(t,e,i,s,n){const r=t.timeUnit,a=t.count;if("hour"==r||"minute"==r||"second"==r||"millisecond"==r)return o[t.timeUnit]*t.count;{const t=m(new Date(e.getTime()),r,a,i,s,void 0,n).getTime();let o=t+a*h(r)*1.05;return o=m(new Date(o),r,1,i,s,void 0,n).getTime(),o-t}}function u(){return new Date}function d(){return u().getTime()}function p(t){return new Date(t.getTime())}function g(t,e,i,s,n){if(e-t>h(i,1.2))return!0;let r=new Date(t),o=new Date(e);n&&(r=n.convertLocal(r),o=n.convertLocal(o));let l=0,c=0;s||"millisecond"==i||(l=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-l),c=o.getTimezoneOffset(),o.setUTCMinutes(o.getUTCMinutes()-c));let u=!1;switch(i){case"year":r.getUTCFullYear()!=o.getUTCFullYear()&&(u=!0);break;case"month":(r.getUTCFullYear()!=o.getUTCFullYear()||r.getUTCMonth()!=o.getUTCMonth())&&(u=!0);break;case"day":(r.getUTCMonth()!=o.getUTCMonth()||r.getUTCDate()!=o.getUTCDate())&&(u=!0);break;case"hour":r.getUTCHours()!=o.getUTCHours()&&(u=!0);break;case"minute":r.getUTCMinutes()!=o.getUTCMinutes()&&(u=!0);break;case"second":r.getUTCSeconds()!=o.getUTCSeconds()&&(u=!0);break;case"millisecond":r.getTime()!=o.getTime()&&(u=!0)}if(u)return u;let d=a(i);return!!d&&g(t,e,d,s,n)}function f(t,e,i,s,n){let r=0;switch(s||"millisecond"==e||(r=t.getTimezoneOffset(),n&&(r-=n.offsetUTC(t)),t.setUTCMinutes(t.getUTCMinutes()-r)),e){case"day":let e=t.getUTCDate();t.setUTCDate(e+i);break;case"second":let s=t.getUTCSeconds();t.setUTCSeconds(s+i);break;case"millisecond":let n=t.getUTCMilliseconds();t.setUTCMilliseconds(n+i);break;case"hour":let r=t.getUTCHours();t.setUTCHours(r+i);break;case"minute":let o=t.getUTCMinutes();t.setUTCMinutes(o+i);break;case"year":let a=t.getUTCFullYear();t.setUTCFullYear(a+i);break;case"month":const h=t.getUTCDate(),l=new Date(t.getUTCFullYear(),t.getUTCMonth(),0).getUTCDate();let c=t.getUTCMonth();h>l?t.setUTCMonth(c+i,l):t.setUTCMonth(c+i);break;case"week":let u=t.getUTCDate();t.setUTCDate(u+7*i)}if(!s&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+r),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(n&&(e+=n.offsetUTC(t)),e!=r){let i=e-r;t.setUTCMinutes(t.getUTCMinutes()+i),t.getTimezoneOffset()!=e&&t.setUTCMinutes(t.getUTCMinutes()-i)}}return t}function _(t,e,i,s,n){let r;return null!=n&&(r=new Date(n)),m(new Date(t),e,i,s.locale.firstDayOfWeek,s.utc,r,s.timezone).getTime()}function m(t,e,i,n,r,o,a){if(!a||r){let a=0;switch(r||"millisecond"==e||(a=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-a)),e){case"day":let e=t.getUTCDate();if(i>1){if(o){o=m(o,"day",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),n=h("day",s*i);t.setTime(o.getTime()+n-a*h("minute"))}}else t.setUTCDate(e);t.setUTCHours(0,0,0,0);break;case"second":let r=t.getUTCSeconds();i>1&&(r=Math.floor(r/i)*i),t.setUTCSeconds(r,0);break;case"millisecond":if(1==i)return t;let l=t.getUTCMilliseconds();l=Math.floor(l/i)*i,t.setUTCMilliseconds(l);break;case"hour":let c=t.getUTCHours();i>1&&(c=Math.floor(c/i)*i),t.setUTCHours(c,0,0,0);break;case"minute":let u=t.getUTCMinutes();i>1&&(u=Math.floor(u/i)*i),t.setUTCMinutes(u,0,0);break;case"month":let d=t.getUTCMonth();i>1&&(2!=i&&3!=i&&4!=i&&6!=i||(d=Math.floor(d/i)*i)),t.setUTCMonth(d,1),t.setUTCHours(0,0,0,0);break;case"year":let p=t.getUTCFullYear();i>1&&(p=Math.floor(p/i)*i),t.setUTCFullYear(p,0,1),t.setUTCHours(0,0,0,0);break;case"week":if(i>1&&o){o=m(o,"week",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("week")/i),n=h("week",s*i);t.setTime(o.getTime()+n-a*h("minute"))}let g=t.getUTCDate(),f=t.getUTCDay();s.isNumber(n)||(n=1),g=f>=n?g-f+n:g-(7+f)+n,t.setUTCDate(g),t.setUTCHours(0,0,0,0)}if(!r&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+a),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(e!=a){let i=e-a;t.setUTCMinutes(t.getUTCMinutes()+i)}}return t}{if(isNaN(t.getTime()))return t;let l=t.getTime(),c=a.offsetUTC(t),u=t.getTimezoneOffset(),d=a.parseDate(t),p=d.year,g=d.month,f=d.day,_=d.hour,y=d.minute,v=d.second,w=d.millisecond,b=d.weekday,x=c-u;switch(e){case"day":if(i>1&&o){o=m(o,"day",1,n,r,void 0,a);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),l=h("day",s*i);t.setTime(o.getTime()+l),d=a.parseDate(t),p=d.year,g=d.month,f=d.day}_=0,y=x,v=0,w=0;break;case"second":y+=x,i>1&&(v=Math.floor(v/i)*i),w=0;break;case"millisecond":y+=x,i>1&&(w=Math.floor(w/i)*i);break;case"hour":i>1&&(_=Math.floor(_/i)*i),y=x,v=0,w=0;break;case"minute":i>1&&(y=Math.floor(y/i)*i),y+=x,v=0,w=0;break;case"month":i>1&&(g=Math.floor(g/i)*i),f=1,_=0,y=x,v=0,w=0;break;case"year":i>1&&(p=Math.floor(p/i)*i),g=0,f=1,_=0,y=x,v=0,w=0;break;case"week":s.isNumber(n)||(n=1),f=b>=n?f-b+n:f-(7+b)+n,_=0,y=x,v=0,w=0}const D=(t=new Date(p,g,f,_,y,v,w)).getTime();let k=36e5;"hour"==e&&(k=36e5*i),D+k<=l&&("hour"!=e&&"minute"!=e&&"second"!=e&&"millisecond"!=e||(t=new Date(D+k)));let T=t.getTimezoneOffset(),M=a.offsetUTC(t)-T;return M!=x&&t.setTime(t.getTime()+6e4*(M-x)),t}}function y(t,e,i,s){let n=l(s[t]),r=s.length-1;if(t>=r)return Object.assign({},s[r]);let o=Math.ceil(e/n);return e0?Object.assign({},s[t-1]):o<=i?Object.assign({},s[t]):t+1{switch(t.type){case"year":i=+t.value;break;case"month":s=+t.value-1;break;case"day":n=+t.value;break;case"hour":r=+t.value;break;case"minute":o=+t.value;break;case"second":a=+t.value;break;case"fractionalSecond":h=+t.value;break;case"weekday":switch(t.value){case"Sun":l=0;break;case"Mon":l=1;break;case"Tue":l=2;break;case"Wed":l=3;break;case"Thu":l=4;break;case"Fri":l=5;break;case"Sat":l=6}}})),24===r&&(r=0),{year:i,month:s,day:n,hour:r,minute:o,second:a,millisecond:h,weekday:l}}function n(t,e){const{year:i,month:n,day:r,hour:o,minute:a,second:h,millisecond:l}=s(t,e);return Date.UTC(i,n,r,o,a,h,l)}i.d(e,{r:function(){return r}});class r{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=t,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(t){return new this(t,!0)}convertLocal(t){const e=this.offsetUTC(t),i=t.getTimezoneOffset(),s=new Date(t);s.setUTCMinutes(s.getUTCMinutes()-(e-i));const n=s.getTimezoneOffset();return i!=n&&s.setUTCMinutes(s.getUTCMinutes()+n-i),s}offsetUTC(t){return(n(this._utc,t)-n(this._dtf,t))/6e4}parseDate(t){return s(this._dtf,t)}}},5040:function(t,e,i){"use strict";function s(t){return Number(t)!==t}function n(t){return{}.toString.call(t)}function r(t,e="Assertion failed"){if(!t)throw new Error(e)}function o(t){if(null!=t&&!d(t)){let e=Number(t);if(s(e)&&u(t)&&""!=t&&t.match(/[0-9]+/)){const i=t.replace(/[^0-9.\-]+/g,"");return t===i?e:o(i)}return e}return t}function a(t){if(c(t))return new Date(t);if(d(t))return new Date(t);{let e=Number(t);return d(e)?new Date(e):new Date(t)}}function h(t){if(s(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t==-1/0)return"-0";let e=t<0;t=Math.abs(t);let i,n=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t),r=n[1],o=n[2]||"";if(void 0===n[3])i=""===o?r:r+"."+o;else{let e=+n[3];if(t<1)i="0."+l("0",e-1)+r+o;else{let t=e-o.length;i=0===t?r+o:t<0?r+o.slice(0,t)+"."+o.slice(t):r+o+l("0",t)}}return e?"-"+i:i}function l(t,e){return new Array(e+1).join(t)}function c(t){return"[object Date]"===n(t)}function u(t){return"string"==typeof t}function d(t){return"number"==typeof t&&Number(t)==t}function p(t){return"object"==typeof t&&null!==t}function g(t){return Array.isArray(t)}i.r(e),i.d(e,{PLACEHOLDER:function(){return f},PLACEHOLDER2:function(){return _},assert:function(){return r},getType:function(){return n},isArray:function(){return g},isDate:function(){return c},isNaN:function(){return s},isNumber:function(){return d},isObject:function(){return p},isString:function(){return u},numberToString:function(){return h},repeat:function(){return l},toDate:function(){return a},toNumber:function(){return o}});const f="__§§§__",_="__§§§§__"},7652:function(t,e,i){"use strict";i.r(e),i.d(e,{StyleRule:function(){return E},StyleSheet:function(){return O},addClass:function(){return P},addEventListener:function(){return l},addSpacing:function(){return Y},alternativeColor:function(){return dt},blur:function(){return p},brighten:function(){return ht},capitalizeFirst:function(){return et},cleanFormat:function(){return z},contains:function(){return w},decimalPlaces:function(){return A},escapeForRgex:function(){return W},focus:function(){return g},get12Hours:function(){return Q},getBrightnessStep:function(){return lt},getDayFromWeek:function(){return q},getEventKey:function(){return D},getEventTarget:function(){return v},getFormat:function(){return H},getLightnessStep:function(){return at},getMonthWeek:function(){return K},getPointerId:function(){return d},getRendererEvent:function(){return f},getSafeResolution:function(){return C},getShadowRoot:function(){return k},getStyle:function(){return y},getTimeZone:function(){return J},getTimezoneOffset:function(){return tt},getWeek:function(){return $},getWeekYear:function(){return Z},getYearDay:function(){return X},hslToHsv:function(){return rt},hslToRgb:function(){return it},hsvToHsl:function(){return nt},iOS:function(){return N},isLight:function(){return ct},isLocalEvent:function(){return b},isTouchEvent:function(){return _},lighten:function(){return ot},mergeTags:function(){return pt},onZoom:function(){return c},padString:function(){return R},plainText:function(){return V},ready:function(){return a},relativeToValue:function(){return L},removeClass:function(){return S},removeElement:function(){return h},rgbToHsl:function(){return st},sameBounds:function(){return gt},saturate:function(){return ut},setInteractive:function(){return x},setStyle:function(){return m},splitString:function(){return j},stripTags:function(){return G},supports:function(){return u},trim:function(){return F},trimLeft:function(){return U},trimRight:function(){return B},truncateTextWithEllipsis:function(){return I}});var s=i(5040),n=i(5071),r=i(256),o=i(7449);function a(t){if("loading"!==document.readyState)t();else{const e=()=>{"loading"!==document.readyState&&(document.removeEventListener("readystatechange",e),t())};document.addEventListener("readystatechange",e)}}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function l(t,e,i,s){return t.addEventListener(e,i,s||!1),new o.ku((()=>{t.removeEventListener(e,i,s||!1)}))}function c(t){return l(window,"resize",(e=>{t()}))}function u(t){switch(t){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function d(t){return t.pointerId||0}function p(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let t=document.createElement("button");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}}function g(t){t&&t.focus()}function f(t){if(u("pointerevents"))return t;if(u("touchevents"))switch(t){case"pointerover":case"pointerdown":return"touchstart";case"pointerout":case"pointerleave":case"pointerup":return"touchend";case"pointermove":return"touchmove";case"click":return"click";case"dblclick":return"dblclick"}else if(u("mouseevents"))switch(t){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return t}function _(t){if("undefined"!=typeof Touch&&t instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&t instanceof PointerEvent&&null!=t.pointerType)switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(null!=t.type&&t.type.match(/^mouse/))return!1;return!0}function m(t,e,i){t.style[e]=i}function y(t,e){return t.style[e]}function v(t){if(t.composedPath){const e=t.composedPath();return 0===e.length?null:e[0]}return t.target}function w(t,e){let i=e;for(;;){if(t===i)return!0;if(null===i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function b(t,e){return t.target&&w(e.root.dom,t.target)}function x(t,e){t.style.pointerEvents=e?"auto":"none"}function D(t){if(void 0!==t.key)return t.key;switch(t.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+t.keyCode}function k(t){let e=t;for(;;){if(null===e.parentNode)return null!=e.host?e:null;e=e.parentNode}}let T;function M(t,e){const i=t.cssRules.length;return t.insertRule(e+"{}",i),t.cssRules[i]}class E extends o.KK{constructor(t,e,i,s=""){super(),this._root=function(t,e=""){if(null===t){if(null==T){const t=document.createElement("style");t.type="text/css",""!=e&&t.setAttribute("nonce",e),document.head.appendChild(t),T=t.sheet}return T}{const i=document.createElement("style");return i.type="text/css",""!=e&&i.setAttribute("nonce",e),t.appendChild(i),i.sheet}}(t,s);try{this._rule=M(this._root,e)}catch(t){this._rule=M(this._root,":not(*)")}r.each(i,((t,e)=>{this.setStyle(t,e)}))}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){const t=n.indexOf(this._root.cssRules,this._rule);if(-1===t)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,e){const i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")}setStyle(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")}}class O extends o.KK{constructor(t,e,i=""){super(),this._element=function(t,e,i=""){const s=document.createElement("style");return s.type="text/css",""!=i&&s.setAttribute("nonce",i),s.textContent=e,null===t?document.head.appendChild(s):t.appendChild(s),s}(t,e,i)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}}function P(t,e){if(t)if(t.classList){const i=e.split(" ");n.each(i,(e=>{t.classList.add(e)}))}else{let i=t.getAttribute("class");i?t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" ")+" "+e):t.setAttribute("class",e)}}function S(t,e){if(t)if(t.classList)t.classList.remove(e);else{let i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" "))}}function N(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function C(){return N()?1:void 0}function L(t,e){return s.isNumber(t)?t:null!=t&&s.isNumber(t.value)&&s.isNumber(e)?e*t.value:0}function A(t){let e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function R(t,e=0,i="0"){return"string"!=typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t}function U(t){return t.replace(/^[\s]*/,"")}function B(t){return t.replace(/[\s]*$/,"")}function F(t){return U(B(t))}function I(t,e,i=!1,s="..."){if(t.length>e){let n=e-1;for(;n>=0&&t.charAt(n).match(/\w/);)n--;return n>=0&&0==i?t.substring(0,n+1)+"...":t.substring(0,e)+s}return t}function H(t){if(void 0===t)return"string";let e=(t=(t=(t=t.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return e?e[1]:"number"===t?"number":"date"===t?"date":"duration"===t?"duration":t.match(/[#0]/)?"number":t.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function z(t){return t.replace(/\/(date|number|duration)$/i,"")}function G(t){return t?t.replace(/<[^>]*>/g,""):t}function V(t){return t?G((""+t).replace(/[\n\r]+/g,". ")):t}function W(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Y(t){let e="";for(let i=0;i{if(t.match(/^\s+$/))(t=" ")&&(t=" "),n.push(t);else if(e.test(t)){let e=t.split(i).filter((t=>""!==t));n=n.concat(e)}else n=n.concat([...t])})),n}function X(t,e=!1){const i=new Date(t.getFullYear(),0,0),s=t.getTime()-i.getTime()+60*(i.getTimezoneOffset()-t.getTimezoneOffset())*1e3;return Math.floor(s/864e5)}function $(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-s);const n=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-n.getTime())/864e5+1)/7)}function Z(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;return i.setUTCDate(i.getUTCDate()+4-s),new Date(Date.UTC(i.getUTCFullYear(),0,1)).getFullYear()}function K(t,e=!1){const i=$(new Date(t.getFullYear(),t.getMonth(),1),e);let s=$(t,e);return 1==s&&(s=53),s-i+1}function q(t,e,i=1,s=!1){let n=new Date(e,0,4,0,0,0,0);return s&&n.setUTCFullYear(e),7*t+i-((n.getDay()||7)+3)}function Q(t,e){return t>12?t-=12:0===t&&(t=12),null!=e?t+(e-1):t}function J(t,e=!1,i=!1,s=!1,n){if(s)return e?"Coordinated Universal Time":"UTC";if(n){const i=t.toLocaleString("en-US",{timeZone:n});return F(t.toLocaleString("en-US",{timeZone:n,timeZoneName:e?"long":"short"}).substr(i.length))}let r=t.toLocaleString("UTC"),o=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(o=o.replace(/ (standard|daylight|summer|winter) /i," ")),F(o)}function tt(t,e){const i=e||new Date(Date.UTC(2012,0,1,0,0,0,0)),s=new Date(i.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(i.toLocaleString("en-US",{timeZone:t})).getTime()-s.getTime())/6e4*-1}function et(t){return t.charAt(0).toUpperCase()+t.slice(1)}function it(t){let e,i,s,n=t.h,r=t.s,o=t.l;if(0==r)e=i=s=o;else{let t=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},a=o<.5?o*(1+r):o+r-o*r,h=2*o-a;e=t(h,a,n+1/3),i=t(h,a,n),s=t(h,a,n-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*s)}}function st(t){let e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),r=Math.min(e,i,s),o=0,a=0,h=(n+r)/2;if(n===r)o=a=0;else{let t=n-r;switch(a=h>.5?t/(2-n-r):t/(n+r),n){case e:o=(i-s)/t+(i0?255-t:t;return Math.round(i*e)}function ht(t,e){if(t){let i=at(Math.min(Math.max(t.r,t.g,t.b),230),e);return{r:Math.max(0,Math.min(255,Math.round(t.r+i))),g:Math.max(0,Math.min(255,Math.round(t.g+i))),b:Math.max(0,Math.min(255,Math.round(t.b+i))),a:t.a}}return t}function lt(t,e){return Math.round(255*e)}function ct(t){return(299*t.r+587*t.g+114*t.b)/1e3>=128}function ut(t,e){if(void 0===t||1==e)return t;let i=st(t);return i.s=e,it(i)}function dt(t,e={r:255,g:255,b:255},i={r:255,g:255,b:255}){let s=e,n=i;return ct(i)&&(s=i,n=e),ct(t)?n:s}function pt(t,e){return t||(t=[]),[...t,...e].filter(((t,e,i)=>i.indexOf(t)===e))}function gt(t,e){return!!e&&t.left==e.left&&t.right==e.right&&t.top==e.top&&t.bottom==e.bottom}},3360:function(t,e,i){"use strict";i.d(e,{z:function(){return D},m:function(){return k}});var s=i(7582),n=i(6331),r=i(4596),o=i(8777),a=i(1112),h=i(6245),l=i(5769),c=i(9582),u=i(5040),d=i(5071),p=i(256),g={AccelerationBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccelerationBands)),AccumulationDistribution:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulationDistribution)),AccumulativeSwingIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulativeSwingIndex)),Annotator:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Annotator)),ArcDiagram:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagram)),ArcDiagramLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramLink)),ArcDiagramNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramNodes)),Aroon:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Aroon)),AverageSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageSeries)),AverageTrueRange:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageTrueRange)),AwesomeOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AwesomeOscillator)),Axis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Axis)),AxisBullet:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisBullet)),AxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabel)),AxisLabelRadial:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabelRadial)),AxisRenderer:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRenderer)),AxisRendererCircular:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererCircular)),AxisRendererCurveX:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveX)),AxisRendererCurveY:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveY)),AxisRendererRadial:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererRadial)),AxisRendererX:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererX)),AxisRendererY:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererY)),AxisTick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisTick)),BaseColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.BaseColumnSeries)),BollingerBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BollingerBands)),BreadcrumbBar:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.BreadcrumbBar)),BullBearPower:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BullBearPower)),Bullet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Bullet)),Button:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Button)),CalloutSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CalloutSeries)),Candlestick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Candlestick)),CandlestickSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CandlestickSeries)),CategoryAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryAxis)),CategoryDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryDateAxis)),ChaikinMoneyFlow:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinMoneyFlow)),ChaikinOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinOscillator)),Chart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Chart)),ChartIndicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChartIndicator)),Chord:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Chord)),ChordDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordDirected)),ChordLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLink)),ChordLinkDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLinkDirected)),ChordNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNodes)),ChordNonRibbon:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNonRibbon)),Circle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Circle)),CirclePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.CirclePattern)),ClockHand:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.ClockHand)),ClusteredPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ClusteredPointSeries)),ColorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ColorControl)),ColorPicker:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPicker)),ColorPickerButton:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPickerButton)),ColorSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ColorSet)),ColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ColumnSeries)),CommodityChannelIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CommodityChannelIndex)),ComparisonControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ComparisonControl)),Component:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Component)),ConfirmButton:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ConfirmButton)),Container:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Container)),CurveChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveChart)),CurveColumnSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveColumnSeries)),CurveCursor:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveCursor)),CurveLineSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveLineSeries)),DataSaveControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DataSaveControl)),DateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DateAxis)),DateRangeSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DateRangeSelector)),DisparityIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DisparityIndex)),DoodleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DoodleSeries)),DrawingControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingControl)),DrawingSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingSeries)),DrawingToolControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingToolControl)),Dropdown:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Dropdown)),DropdownColors:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownColors)),DropdownControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownControl)),DropdownList:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownList)),DropdownListControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownListControl)),DurationAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DurationAxis)),EditableAxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.EditableAxisLabel)),EditableLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.EditableLabel)),Ellipse:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Ellipse)),EllipseSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.EllipseSeries)),Entity:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Entity)),Exporting:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Exporting)),ExportingMenu:()=>Promise.resolve().then((()=>i(396))).then((t=>t.ExportingMenu)),FibonacciSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciSeries)),FibonacciTimezoneSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciTimezoneSeries)),Flow:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Flow)),FlowLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowLink)),FlowNode:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNode)),FlowNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNodes)),ForceDirected:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.ForceDirected)),FunnelSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSeries)),FunnelSlice:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSlice)),Gantt:()=>Promise.resolve().then((()=>i(133))).then((t=>t.Gantt)),GanttCategoryAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxis)),GanttCategoryAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxisRenderer)),GanttDateAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxis)),GanttDateAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxisRenderer)),GanttSeries:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttSeries)),GaplessDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.GaplessDateAxis)),Gradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Gradient)),GrainPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GrainPattern)),Graphics:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Graphics)),GraticuleSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.GraticuleSeries)),Grid:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Grid)),GridLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GridLayout)),HeatLegend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HeatLegend)),HeikinAshi:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HeikinAshi)),Hierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Hierarchy)),HierarchyLink:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyLink)),HierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyNode)),HorizontalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HorizontalLayout)),HorizontalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalLineSeries)),HorizontalRaySeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalRaySeries)),IconControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconControl)),IconSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconSeries)),Indicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Indicator)),IndicatorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IndicatorControl)),InterfaceColors:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.InterfaceColors)),IntervalControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IntervalControl)),Label:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Label)),LabelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LabelSeries)),Layout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Layout)),Legend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Legend)),Line:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Line)),LineArrowSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LineArrowSeries)),LinePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinePattern)),LineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.LineSeries)),LinearGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinearGradient)),Link:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Link)),LinkedHierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchy)),LinkedHierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchyNode)),MACD:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACD)),MACross:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACross)),MapChart:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapChart)),MapLine:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLine)),MapLineSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLineSeries)),MapPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPointSeries)),MapPolygon:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygon)),MapPolygonSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygonSeries)),MapSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapSeries)),Measure:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Measure)),MedianPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MedianPrice)),Modal:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Modal)),Momentum:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Momentum)),MovingAverage:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverage)),MovingAverageDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageDeviation)),MovingAverageEnvelope:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageEnvelope)),NumericStepper:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.NumericStepper)),OHLC:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLC)),OHLCSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLCSeries)),OnBalanceVolume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OnBalanceVolume)),OrthogonalLine:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.OrthogonalLine)),OverboughtOversold:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OverboughtOversold)),PVT:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PVT)),Pack:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Pack)),PanelControls:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PanelControls)),ParallelChannelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ParallelChannelSeries)),Partition:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Partition)),PathPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PathPattern)),Pattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Pattern)),PatternSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PatternSet)),PercentChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentChart)),PercentSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentSeries)),PeriodSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PeriodSelector)),PictorialStackedSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PictorialStackedSeries)),Picture:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Picture)),PicturePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PicturePattern)),PieChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieChart)),PieSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieSeries)),PointedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PointedRectangle)),Polygon:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Polygon)),PolylineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PolylineSeries)),ProgressPie:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ProgressPie)),PyramidSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PyramidSeries)),QuadrantLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.QuadrantLineSeries)),RadarChart:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarChart)),RadarColumnSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarColumnSeries)),RadarCursor:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarCursor)),RadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarLineSeries)),RadialGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialGradient)),RadialLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialLabel)),RadialText:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialText)),Rectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Rectangle)),RectanglePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RectanglePattern)),RectangleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RectangleSeries)),RegressionSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RegressionSeries)),RelativeStrengthIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RelativeStrengthIndex)),ResetControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ResetControl)),RoundedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RoundedRectangle)),Sankey:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Sankey)),SankeyLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyLink)),SankeyNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyNodes)),Scrollbar:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Scrollbar)),SerialChart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SerialChart)),Serializer:()=>Promise.resolve().then((()=>i(5362))).then((t=>t.Serializer)),Series:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Series)),SeriesTypeControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SeriesTypeControl)),SerpentineChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SerpentineChart)),SettingsControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsControl)),SettingsModal:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsModal)),SimpleLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SimpleLineSeries)),Slice:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slice)),SliceGrouper:()=>Promise.resolve().then((()=>i(1790))).then((t=>t.SliceGrouper)),SlicedChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.SlicedChart)),Slider:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slider)),SmoothedRadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.SmoothedRadarLineSeries)),SmoothedXLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXLineSeries)),SmoothedXYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXYLineSeries)),SmoothedYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedYLineSeries)),SpiralChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SpiralChart)),Sprite:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Sprite)),SpriteResizer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SpriteResizer)),StandardDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StandardDeviation)),Star:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Star)),StepLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.StepLineSeries)),StochasticMomentumIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticMomentumIndex)),StochasticOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticOscillator)),StockChart:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockChart)),StockControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockControl)),StockLegend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockLegend)),StockPanel:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockPanel)),StockToolbar:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockToolbar)),Sunburst:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Sunburst)),SuperTrend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SuperTrend)),Text:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Text)),Tick:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tick)),Tooltip:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tooltip)),Tree:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Tree)),Treemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Treemap)),TrendLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TrendLineSeries)),Triangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Triangle)),Trix:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Trix)),TypicalPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TypicalPrice)),VWAP:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VWAP)),ValueAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ValueAxis)),Venn:()=>Promise.resolve().then((()=>i(8034))).then((t=>t.Venn)),VerticalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.VerticalLayout)),VerticalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VerticalLineSeries)),Volume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Volume)),VolumeProfile:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VolumeProfile)),VoronoiTreemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.VoronoiTreemap)),WilliamsR:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.WilliamsR)),WordCloud:()=>Promise.resolve().then((()=>i(6769))).then((t=>t.WordCloud)),XYChart:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChart)),XYChartScrollbar:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChartScrollbar)),XYCursor:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYCursor)),XYSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYSeries)),ZigZag:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ZigZag)),ZoomControl:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ZoomControl)),ZoomTools:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomTools)),ZoomableContainer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomableContainer))};function f(t){return u.isObject(t)}function _(t){return t instanceof n.JH||t instanceof a.Il||t instanceof h.gG||t instanceof l.YS}function m(t,e){let i=t.length;for(;i--;){const s=t[i];if(e in s)return s[e]}throw new Error("Could not find ref "+e)}function y(t,e){if("#"===t[0]||"@"===t[0]){if(t[1]===t[0])return{isValue:!0,value:t.slice(1)};{const i=t.split(/\./g);let s=m(e,i[0]);for(let t=1;t{e(t)}))}function w(t,e){v(t,e),e.adapters&&d.each(e.adapters,(e=>{t.adapters.add(e.key,e.callback)})),e.states&&d.each(e.states,(e=>{t.states.create(e.key,e.settings)})),t instanceof o.W&&e.children&&e.children.forEach((e=>{null==e.index||e.index>=t.children.length?t.children.push(e.value):t.children.insertIndex(e.index,e.value)}))}function b(t,e){if(!e.construct)return e.value;const i=e.construct.new(t,e.settings||{});return w(i,e),i}class x{constructor(){this._caching={},this._cache={},this._delayed=[]}afterParse(){this._delayed.forEach((t=>{t()}))}getClass(t){return this._cache[t]}storeClass(t){return(0,s.mG)(this,void 0,void 0,(function*(){if("Template"===t)return;const e=g[t];if(null==e)throw new Error("Unknown object type `"+t+"`");this._cache[t]=yield e()}))}cacheClass(t){let e=this._caching[t];return null==e&&(e=this._caching[t]=this.storeClass(t)),e}parseAsyncArray(t){return(0,s.mG)(this,void 0,void 0,(function*(){yield Promise.all(d.map(t,(t=>this.parseAsync(t))))}))}parseAsyncObjectKey(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){"type"===t?u.isString(e)?yield this.cacheClass(e):yield this.parseAsync(e):"geoJSON"===t||"geometry"===t||(yield this.parseAsync(e))}))}parseAsyncObject(t){return(0,s.mG)(this,void 0,void 0,(function*(){switch(t.type){case"Color":case"Percent":break;default:yield Promise.all(d.map(p.keys(t),(e=>this.parseAsyncObjectKey(e,t[e]))))}}))}parseAsync(t){return(0,s.mG)(this,void 0,void 0,(function*(){u.isArray(t)?yield this.parseAsyncArray(t):f(t)&&(_(t)||!0!==t.__parse&&!1===t.__parse||(yield this.parseAsyncObject(t)))}))}parseObject(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parse(t,e[n],i)})),s}parseArray(t,e,i){return d.map(e,(e=>this.parse(t,e,i)))}parseChildren(t,e,i){return d.map(e,(e=>this.parseChild(t,e,i)))}parseStops(t,e,i){return d.map(e,(e=>this.parseObject(t,e,i)))}parseSetting(t,e,i,s){if("layout"===e)switch(i){case"horizontal":return t.horizontalLayout;case"vertical":return t.verticalLayout;case"grid":return t.gridLayout}return"clusteredBullet"===e?(e,n)=>{const r=s.concat([{"@series":n}]);return this.parse(t,i,r)}:"projection"===e||"geoJSON"===e?i:"stops"===e?this.parseStops(t,i,s):this.parse(t,i,s)}parseSettings(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parseSetting(t,n,e[n],i)})),s}parseState(t,e,i){return{key:e.key,settings:this.parseSettings(t,e.settings,i)}}parseAdapter(t,e,i){return{key:e.key,callback:this.parse(t,e.callback,i)}}parseProperties(t,e,i){return d.map(p.keys(e),(s=>{const r=e[s];return e=>{const o=()=>{const o=this.parseValue(t,r,i),a=e[s];a?o.isValue?u.isArray(o.value)?a instanceof c.k?a.setAll(o.value):d.each(o.value,(t=>{a.push(t)})):e[s]=o.value:o.construct?e[s]=b(t,o):a instanceof n.JH||a instanceof l.YS?function(t,e){e.settings&&t.setAll(e.settings),w(t,e)}(a,o):v(a,o):o.isValue?e[s]=o.value:e[s]=b(t,o)};if("data"===s)this._delayed.push(o);else if("bullets"===s){const n=e[s];u.assert(null!=n),u.assert(u.isArray(r)),d.each(r,(e=>{n.push(((s,n)=>{const r=i.concat([{"@series":n}]);return this.parse(t,e,r)}))}))}else"bullet"===s?e.set("bullet",((e,s)=>{const n=i.concat([{"@axis":s}]);return this.parse(t,r,n)})):o()}}))}parseAxisRange(t,e,i){return{isValue:!1,type:void 0,construct:void 0,settings:this.parseSettings(t,e.settings,i),adapters:void 0,states:void 0,children:void 0,properties:void 0,index:void 0,value:e}}parseRefsObject(t,e,i){const s={};return p.each(e,((e,r)=>{if("axisRange"==r.__parseLogic||"seriesAxisRange"==r.__parseLogic){const e=this.parseAxisRange(t,r,i),s=m(i,r.axis),o=s.makeDataItem({});let a;const h=r.series?m(i,r.series):void 0;h?a=h.createAxisRange(o):s.createAxisRange(o),function(t,e){e.settings&&p.each(e.settings,((e,i)=>{if(i instanceof n.JH){const s=t.get(e);s instanceof n.JH?s.setAll(i._settings):t.set(e,i)}else t.set(e,i)})),w(t,e)}(o,e),a&&["fills","strokes","graphics"].forEach((e=>{if(void 0!==a[e]&&void 0!==r[e]){r[e].__parse=!0;const s=this.parse(t,r[e],i);a[e].template.setAll(s)}}))}else s["#"+e]=this.parse(t,r,i)})),s}parseRefs(t,e,i){if(u.isArray(e)){const s=e.length;for(let n=0;nthis.parseState(t,e,i))):void 0,h=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0,l=null==e.index?void 0:e.index;return{isValue:!1,type:e.type,construct:s,settings:n,adapters:h,states:a,children:o,properties:r,index:l,value:e}}parseTemplate(t,e,i){e.refs&&(i=this.parseRefs(t,e.refs,i));const s=e.settings?this.parseSettings(t,e.settings,i):{},n=l.YS.new(s),r=e.states?d.map(e.states,(e=>this.parseState(t,e,i))):void 0,o=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0;return o&&d.each(o,(t=>{n.adapters.add(t.key,t.callback)})),r&&d.each(r,(t=>{n.states.create(t.key,t.settings)})),{isValue:!0,value:n}}parseValue(t,e,i){return e instanceof n.JH?{isValue:!0,value:e}:u.isArray(e)?{isValue:!0,value:this.parseArray(t,e,i)}:f(e)?_(e)?{isValue:!0,value:e}:"Color"===e.type?{isValue:!0,value:a.Il.fromAny(e.value)}:"Percent"===e.type?{isValue:!0,value:new h.gG(e.value)}:"Template"===e.type?this.parseTemplate(t,e,i):!0===e.__parse?{isValue:!0,value:this.parseObject(t,e,i)}:!1===e.__parse?{isValue:!0,value:e}:this.parseEntity(t,e,i):u.isString(e)?y(e,i):{isValue:!0,value:e}}parse(t,e,i){const s=this.parseValue(t,e,i);return s.isValue?s.value:b(t,s)}}class D{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t}static new(t){return new this(t,!0)}parse(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){const i=new x;yield i.parseAsync(t);const s=i.parse(this._root,t,[]);if(e.parent){if(!(s instanceof r.j))throw new Error("When using the parent setting, the entity must be a Sprite");e.parent.children.push(s)}else s instanceof n.JH&&s._applyThemes(!0);return i.afterParse(),s}))}parseString(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.parse(JSON.parse(t),e)}))}}function k(t,e){g[t]||(g[t]=()=>new Promise((t=>{t(e)})))}},6890:function(t,e,i){"use strict";i.d(e,{e:function(){return p}});var s=i(6331),n=i(9361),r=i(1112),o=i(1437),a=i(6245),h=i(5769),l=i(9582),c=i(5040),u=i(5071),d=i(256);class p extends s.JH{constructor(){super(...arguments),this._refs={}}serialize(t,e=0,i=!1,p=!1){if(e>this.get("maxDepth",2))return;if(!1===t||!0===t)return t;if(c.isArray(t)){const s=[];return u.each(t,(t=>{s.push(this.serialize(t,e,i,p))})),s}if(t instanceof l.k){const s=[];return u.each(t.values,(t=>{s.push(this.serialize(t,e,i,p))})),s}const g={},f=t instanceof s.JH||t instanceof h.YS||t instanceof r.Il||t instanceof a.gG,_=this.get("fullSettings",[]);if(t instanceof s.JH){g.type=t.className;let s=this._filterSettings(d.keys(t._settings));s=s.filter((e=>t.isUserSetting(e))),s.length&&(g.settings={},u.each(s,(s=>{const n=t.get(s);void 0!==n&&(g.settings[s]=this.serialize(n,e+1,i||-1!==_.indexOf(s)),t instanceof o.p&&"stops"===s&&(g.settings[s]=this.serialize(n,0,!0)))}))),this._processAdapters(t,g),this._processStates(t,g)}else if(t instanceof h.YS){g.type="Template";let i=this._filterSettings(d.keys(t._settings));return i.length&&(g.settings={},u.each(i,(i=>{void 0!==t._settings[i]&&(g.settings[i]=this.serialize(t.get(i),e+1,-1!==_.indexOf(i)))}))),this._processAdapters(t,g),this._processStates(t,g),g}if(t instanceof n.w&&t.data.length&&-1===(this.get("excludeProperties")||[]).indexOf("data")&&(g.properties={data:this.serialize(t.data.values,e,!0)}),t instanceof r.Il)return{type:"Color",value:t.toCSSHex()};if(t instanceof a.gG)return{type:"Percent",value:t.percent};if(c.isString(t))return this._escapeRefs(t);if(c.isNumber(t))return t;if(c.isObject(t))if(i&&!f){const s=this.get("excludeProperties",[]);d.each(t,((t,n)=>{-1===s.indexOf(t)&&void 0!==n&&(g[t]=this.serialize(n,e+1,i,p))})),p&&d.each(g,((t,e)=>{c.isObject(e)&&(g.__parse=!0)}))}else if(f){const s=this.get("includeProperties",[]);u.each(s,(s=>{const n=t[s];void 0!==n&&(void 0===g.properties&&(g.properties={}),g.properties[s]=this.serialize(n,e+1,i,p))}))}return 0==e&&d.keys(this._refs).length&&(g.refs=this._refs),g}_processAdapters(t,e){if(this.get("includeAdapters",!1)){const i="string"==this.get("functionsAs","string"),s=t.adapters._callbacks;Object.keys(s).length>0&&(e.adapters=[],d.each(s,((t,s)=>{s.forEach((s=>{e.adapters.push({key:t,callback:i?s.toString():s})}))})))}}_processStates(t,e){if(this.get("includeStates",!1)){const i=t.states._states;Object.keys(i).length>0&&(e.states=[],d.each(i,((t,i)=>{Object.keys(i._settings).length>0&&e.states.push({key:t,settings:this.serialize(i._settings,0,!0)})})))}}_filterSettings(t){const e=this.get("includeSettings",[]),i=this.get("excludeSettings",[]);return e.length?t=e:i.length&&(t=t.filter((t=>-1===i.indexOf(t)))),t}_escapeRefs(t){return t.replace(/^#/,"##").replace(/^@/,"@@")}}p.className="Serializer",p.classNames=s.JH.classNames.concat([p.className])},3783:function(t,e,i){"use strict";i.d(e,{X:function(){return c},v:function(){return l}});var s=i(3409),n=i(6245),r=i(1112),o=i(6881),a=i(962),h=i(9395);function l(t,e,i,s){t.set(e,i.get(s)),i.on(s,(i=>{t.set(e,i)}))}class c extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.language,e=this._root.interfaceColors,i=this._root.horizontalLayout,s=this._root.verticalLayout,c=this.rule.bind(this);c("InterfaceColors").setAll({stroke:r.Il.fromHex(15066597),fill:r.Il.fromHex(15987699),primaryButton:r.Il.fromHex(6788316),primaryButtonHover:r.Il.fromHex(6779356),primaryButtonDown:r.Il.fromHex(6872182),primaryButtonActive:r.Il.fromHex(6872182),primaryButtonDisabled:r.Il.fromHex(14342874),primaryButtonTextDisabled:r.Il.fromHex(16777215),primaryButtonText:r.Il.fromHex(16777215),primaryButtonStroke:r.Il.fromHex(16777215),secondaryButton:r.Il.fromHex(14277081),secondaryButtonHover:r.Il.fromHex(10724259),secondaryButtonDown:r.Il.fromHex(9276813),secondaryButtonActive:r.Il.fromHex(15132390),secondaryButtonText:r.Il.fromHex(0),secondaryButtonStroke:r.Il.fromHex(16777215),grid:r.Il.fromHex(0),background:r.Il.fromHex(16777215),alternativeBackground:r.Il.fromHex(0),text:r.Il.fromHex(0),alternativeText:r.Il.fromHex(16777215),disabled:r.Il.fromHex(11382189),positive:r.Il.fromHex(5288704),negative:r.Il.fromHex(11730944)});{const t=c("ColorSet");t.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[r.Il.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),t.setPrivate("currentStep",0),t.setPrivate("currentPass",0)}c("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:h.out(h.cubic)}),c("Component").setAll({interpolationDuration:0,interpolationEasing:h.out(h.cubic)}),c("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:n.CI,tooltipY:n.CI,tooltipPosition:"fixed",isMeasured:!0}),c("Sprite").states.create("default",{visible:!0,opacity:1}),c("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),c("Graphics").setAll({strokeWidth:1}),c("Chart").setAll({width:n.AQ,height:n.AQ,interactiveChildren:!1}),c("ZoomableContainer").setAll({width:n.AQ,height:n.AQ,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:h.out(h.cubic),animationDuration:600,maxPanOut:.4}),c("Sprite",["horizontal","center"]).setAll({centerX:n.CI,x:n.CI}),c("Sprite",["vertical","center"]).setAll({centerY:n.CI,y:n.CI}),c("Container",["horizontal","layout"]).setAll({layout:i}),c("Container",["vertical","layout"]).setAll({layout:s}),c("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),c("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),c("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),c("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),c("GrainPattern").setAll({width:200,height:200,colors:[r.Il.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const t=c("PatternSet");t.setAll({step:1}),l(t,"color",e,"stroke")}c("LinearGradient").setAll({rotation:90}),c("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:o.M.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),c("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:t.translate("Press ENTER to toggle"),role:"checkbox"});{const t=c("Rectangle",["legend","item","background"]);t.setAll({fillOpacity:0}),l(t,"fill",e,"background")}c("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:n.CI,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),c("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:n.AQ,height:n.AQ,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const t=c("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});l(t,"fill",e,"disabled"),l(t,"stroke",e,"disabled")}c("Label",["legend","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0}),l(c("Label",["legend","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("Label",["legend","value","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:n.AQ,populateText:!0}),l(c("Label",["legend","value","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("HeatLegend").setAll({stepCount:1}),c("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),c("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:n.AQ,width:15}),c("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:n.AQ,height:15}),c("HeatLegend",["vertical"]).setAll({height:n.AQ}),c("HeatLegend",["horizontal"]).setAll({width:n.AQ}),c("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),c("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const t=c("Label");t.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),l(t,"fill",e,"text")}c("RadialLabel").setAll({textType:"regular",centerY:n.CI,centerX:n.CI,inside:!1,radius:0,baseRadius:n.AQ,orientation:"auto",textAlign:"center"}),c("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),c("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:r.Il.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:r.Il.fromHex(0)}),c("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),c("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),c("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),c("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const t=c("Tick");t.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),l(t,"stroke",e,"grid")}c("Bullet").setAll({locationX:.5,locationY:.5}),c("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:n.CI,centerY:n.CI,animationEasing:h.out(h.cubic),exportable:!1}),c("Tooltip",["system"]).setAll({pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});{const t=c("PointedRectangle",["tooltip","system","background"]);t.setAll({strokeOpacity:.3}),l(t,"fill",e,"background"),l(t,"stroke",e,"grid")}c("Label",["tooltip","system"]).setAll({fontSize:12,fill:e.get("background")}),c("Polygon").setAll({animationEasing:h.out(h.cubic)}),c("Link").setAll({cornerRadius:8,setStateOnChildren:!0});{const t=c("OrthogonalLine",["link","line"]);t.setAll({isMeasured:!1,crisp:!0}),l(t.states.create("active",{strokeWidth:2}),"stroke",e,"negative")}c("OrthogonalLine",["link","hit"]).setAll({strokeWidth:10,opacity:0,strokeOpacity:0});{const t=c("OrthogonalLine");t.setAll({strokeWidth:1,strokeOpacity:1,cornerRadius:10}),l(t,"stroke",e,"grid")}{const t=c("Triangle",["link"]);t.setAll({width:14,height:10,centerY:0}),l(t,"fill",e,"grid"),l(t,"stroke",e,"grid"),t.states.create("default",{stateAnimationDuration:0});const i=t.states.create("active",{stateAnimationDuration:0,stroke:(0,r.$_)(16777215),strokeWidth:2});i.set("draw",(t=>{t.arc(0,0,11,0,2*Math.PI),t.moveTo(-4,-4),t.lineTo(4,4),t.moveTo(4,-4),t.lineTo(-4,4)})),l(i,"fill",e,"negative")}c("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:r.Il.fromHex(16777215)});{const t=c("Label",["tooltip"]);t.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),l(t,"fill",e,"alternativeText")}c("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),c("Button").states.create("hover",{}),c("Button").states.create("down",{stateAnimationDuration:0}),c("Button").states.create("active",{}),c("Button").states.create("disabled",{forceInactive:!0});{const t=c("RoundedRectangle",["button","background"]);l(t,"fill",e,"primaryButton"),l(t,"stroke",e,"primaryButtonStroke")}l(c("RoundedRectangle",["button","background"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown"),l(c("RoundedRectangle",["button","background"]).states.create("active",{}),"fill",e,"primaryButtonActive"),l(c("RoundedRectangle",["button","background"]).states.create("disabled",{}),"fill",e,"primaryButtonDisabled"),l(c("Graphics",["button","icon"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled"),l(c("Label",["button"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled");{const t=c("Graphics",["button","icon"]);t.setAll({forceInactive:!0}),l(t,"stroke",e,"primaryButtonText")}l(c("Label",["button"]),"fill",e,"primaryButtonText"),c("ConfirmButton").setAll({toggleKey:"active",setStateOnChildren:!0,label:a._.new(this._root,{text:t.translate("Confirm"),forceHidden:!0})}),l(c("RoundedRectangle",["button","background","confirm"]).states.create("active",{}),"fill",e,"negative"),c("Label",["button","confirm"]).setAll({paddingTop:0,paddingBottom:0,paddingRight:3,paddingLeft:5}),c("Label",["button","confirm"]).states.create("default",{stateAnimationDuration:0}),c("Label",["button","confirm"]).states.create("active",{forceHidden:!1,stateAnimationDuration:0});{const t=c("Graphics",["icon","confirm","button"]);t.setAll({stateAnimationDuration:0}),t.states.create("default",{stateAnimationDuration:0}),l(t,"stroke",e,"primaryButtonText")}l(c("Graphics",["icon","confirm","button"]).states.create("active",{svgPath:"M -5 1 L 0 6 L 8 -5",strokeWidth:2}),"stroke",e,"primaryButtonText"),l(c("Graphics",["icon","confirm","button","secondary"]).states.create("active",{}),"stroke",e,"primaryButtonText"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1}),"fill",e,"negative"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1}),"fill",e,"negative"),c("Button",["button","confirm"]).states.create("hoverActive",{}),c("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:n.AQ,role:"button",ariaLabel:t.translate("Zoom Out"),layer:30});{const t=c("RoundedRectangle",["background","button","zoom"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"primaryButton")}l(c("RoundedRectangle",["background","button","zoom"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown");{const t=c("Graphics",["icon","button","zoom"]);t.setAll({crisp:!0,strokeOpacity:.7,draw:t=>{t.moveTo(0,0),t.lineTo(12,0)}}),l(t,"stroke",e,"primaryButtonText")}c("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:n.CI,centerY:n.CI,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:t.translate("Use up and down arrows to move selection")});{const t=c("RoundedRectangle",["background","resize","button"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"secondaryButton"),l(t,"stroke",e,"secondaryButtonStroke")}l(c("RoundedRectangle",["background","resize","button"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown");{const t=c("Graphics",["resize","button","icon"]);t.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),l(t,"stroke",e,"secondaryButtonText")}c("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),c("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),c("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:t.translate("Play"),toggleKey:"active"});{const t=c("RoundedRectangle",["play","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Graphics",["play","icon"]);t.setAll({stateAnimationDuration:0,dx:1,draw:t=>{t.moveTo(0,-5),t.lineTo(8,0),t.lineTo(0,5),t.lineTo(0,-5)}}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),c("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:t=>{t.moveTo(-4,-5),t.lineTo(-1,-5),t.lineTo(-1,5),t.lineTo(-4,5),t.lineTo(-4,-5),t.moveTo(4,-5),t.lineTo(1,-5),t.lineTo(1,5),t.lineTo(4,5),t.lineTo(4,-5)}}),c("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:t.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const t=c("RoundedRectangle",["switch","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["switch","icon"]);t.setAll({radius:8,centerY:0,centerX:0,dx:0}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["switch","icon"]).states.create("active",{dx:16}),c("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:h.out(h.cubic)}),c("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:n.AQ}),c("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:n.AQ}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const t=c("RoundedRectangle",["scrollbar","main","background"]);t.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),l(t,"fill",e,"fill")}{const t=c("RoundedRectangle",["scrollbar","thumb"]);t.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),l(t,"fill",e,"secondaryButton")}l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown"),c("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:n.CI,width:n.AQ,centerX:n.CI,ariaLabel:t.translate("Use up and down arrows to move selection")}),c("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:n.CI,centerY:n.CI,height:n.AQ,ariaLabel:t.translate("Use left and right arrows to move selection")});{const t=c("PointedRectangle",["axis","tooltip","background"]);t.setAll({cornerRadius:0}),l(t,"fill",e,"alternativeBackground")}c("Label",["axis","tooltip"]).setAll({role:void 0}),c("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),c("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),c("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),c("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),c("Star").setAll({spikes:5,innerRadius:5,radius:10}),c("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),c("Tooltip",["indicator"]).setAll({forceHidden:!0}),c("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),c("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),c("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),c("Container",["resizer","grip"]).states.create("hover",{});{const t=c("RoundedRectangle",["resizer","grip"]);t.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),l(t,"fill",e,"background"),l(t,"stroke",e,"alternativeBackground")}{const t=c("RoundedRectangle",["resizer","grip","outline"]);t.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),t.states.create("hover",{fillOpacity:.3}),l(t,"fill",e,"alternativeBackground")}c("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),c("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const t=c("Rectangle",["resizer","rectangle"]);t.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),l(t,"stroke",e,"alternativeBackground")}c("Graphics",["button","plus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0),t.moveTo(0,-4),t.lineTo(0,4)}}),c("Graphics",["button","minus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0)}}),c("Graphics",["button","home","icon"]).setAll({x:n.CI,y:n.CI,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),c("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),c("ZoomTools").setAll({x:n.AQ,centerX:n.AQ,y:n.AQ,centerY:n.AQ,paddingRight:10,paddingBottom:10}),c("ProgressPie").setAll({radius:n.AQ,width:50,height:50,centerX:(0,n.aQ)(-50),centerY:(0,n.aQ)(-50),innerRadius:(0,n.aQ)(85),numberFormat:"#."});{const t=c("Label",["progresspie"]);t.setAll({centerX:n.CI,centerY:n.CI,fontSize:"0.75em"}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["progresspie"]);t.setAll({fillOpacity:.5}),l(t,"fill",e,"background")}{const t=c("Slice",["progresspie"]);t.setAll({startAngle:-90}),l(t,"fill",e,"primaryButton")}{const t=c("Slice",["progresspie","background"]);t.setAll({fillOpacity:.2,arc:360}),l(t,"fill",e,"primaryButton")}c("EditableLabel",["numericstepper"]).setAll({y:n.CI,centerY:n.CI,multiLine:!1,marginRight:2});{const t=c("Container",["numericstepper","buttons"]);t.setAll({layout:this._root.verticalLayout,centerY:n.CI,y:n.CI,marginRight:10,opacity:0}),t.states.create("active",{opacity:1}),t.states.create("default",{opacity:0})}{const t=c("Triangle",["numericstepper"]);t.setAll({width:17,height:11,marginTop:3,marginBottom:3,strokeWidth:5,strokeOpacity:0,cursorOverStyle:"pointer"}),l(t,"fill",e,"secondaryButton")}c("Triangle",["downbutton"]).setAll({rotation:180})}}},5322:function(t,e,i){"use strict";i.r(e),i.d(e,{ArrayDisposer:function(){return c.rk},BlendMode:function(){return ot.b},Bullet:function(){return u.g},Button:function(){return d.z},CSVParser:function(){return bt},CanvasLayer:function(){return Pt.mM},CanvasRenderer:function(){return Pt.uK},Chart:function(){return q.k},Circle:function(){return g.C},CirclePattern:function(){return ut},Color:function(){return O.Il},ColorSet:function(){return mt.U},Component:function(){return v.w},ConfirmButton:function(){return p.p},Container:function(){return w.W},CounterDisposer:function(){return c.DM},DataItem:function(){return v.z},DataProcessor:function(){return xt},DateFormatter:function(){return Dt.C},Disposer:function(){return c.ku},DurationFormatter:function(){return kt.$},EditableLabel:function(){return A.Y},Ellipse:function(){return _.P},Entity:function(){return l.JH},Gradient:function(){return at.p},GrainPattern:function(){return rt},Graphics:function(){return m.T},GridLayout:function(){return x.M},HeatLegend:function(){return C},HorizontalLayout:function(){return L.G},InterfaceColors:function(){return Tt.v},JSONParser:function(){return wt},JsonData:function(){return yt.Q},Label:function(){return D._},Layout:function(){return R.A},Legend:function(){return U.D},Line:function(){return B.x},LinePattern:function(){return dt.y},LinearGradient:function(){return S.o},Link:function(){return F.r},ListData:function(){return yt.k},ListTemplate:function(){return E.o},Modal:function(){return h.u},MultiDisposer:function(){return c.FV},MutableValueDisposer:function(){return c.cx},NumberFormatter:function(){return Mt.e},NumericStepper:function(){return St.l},OrthogonalLine:function(){return I.P},PathPattern:function(){return ft},Pattern:function(){return nt.c},PatternSet:function(){return _t},Percent:function(){return k.gG},Picture:function(){return H.t},PicturePattern:function(){return pt.v},PointedRectangle:function(){return z.i},Polygon:function(){return f.m},ProgressPie:function(){return Nt.w},RadialGradient:function(){return lt},RadialLabel:function(){return G.x},RadialText:function(){return V.f},Rectangle:function(){return W.A},RectanglePattern:function(){return gt},Root:function(){return n.f},RoundedRectangle:function(){return T.c},Scrollbar:function(){return j.L},SerialChart:function(){return Q.j},Series:function(){return K.F},Slice:function(){return $.p},Slider:function(){return X.i},Sprite:function(){return Z.j},SpriteResizer:function(){return Ot.b},Star:function(){return y},Template:function(){return M.YS},Text:function(){return J.x},TextFormatter:function(){return Et.V},Theme:function(){return r.Q},Tick:function(){return tt.d},Timezone:function(){return it.r},Tooltip:function(){return P.u},Triangle:function(){return Y.C},VerticalLayout:function(){return et.Z},ZoomTools:function(){return st.H},ZoomableContainer:function(){return b.Y},addLicense:function(){return o.cP},array:function(){return ht},color:function(){return O.$_},disposeAllRootElements:function(){return o.UZ},ease:function(){return Ct},getRootById:function(){return o.f_},math:function(){return ct},net:function(){return s},object:function(){return vt},p0:function(){return k.p0},p100:function(){return k.AQ},p50:function(){return k.CI},percent:function(){return k.aQ},ready:function(){return a.ready},registry:function(){return o.i_},time:function(){return Rt},type:function(){return N},utils:function(){return a}});var s={};i.r(s),i.d(s,{load:function(){return Lt},readBlob:function(){return At}});var n=i(2855),r=i(3409),o=i(3145),a=i(7652),h=i(8219),l=i(6331),c=i(7449),u=i(5108),d=i(8054),p=i(2936),g=i(8035),f=i(7770),_=i(2433),m=i(1479);class y extends m.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("spikes"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const t=this._display,e=this.get("radius",0),i=a.relativeToValue(this.get("innerRadius",0),e),s=this.get("spikes",0),n=Math.PI/s;let r=Math.PI/2*3;t.moveTo(0,-e);for(let o=0;oT.c._new(this._root,{themeTags:a.mergeTags(this.markers.template.get("themeTags",[]),[this.get("orientation"),"heatlegend","marker"])},[this.markers.template]))))}_afterNew(){this._settings.themeTags=a.mergeTags(this._settings.themeTags,["heatlegend",this._settings.orientation]),super._afterNew(),this.set("tooltip",P.u.new(this._root,{themeTags:["heatlegend"]}))}makeMarker(){const t=this.markers.make();return t.states.create("disabled",{}),t}showValue(t,e,i){const s=this.getTooltip();if(s&&N.isNumber(t)){const n=this.get("startValue",0);let r=(t-n)/(this.get("endValue",1)-n);(r==1/0||r==-1/0||isNaN(r))&&(r=.5);const o=this.get("startColor"),a=this.get("endColor");let h;e||(e=this.getNumberFormatter().format(t)),i||(i=O.Il.interpolate(r,o,a)),s.label.set("text",e),h="vertical"==this.get("orientation")?this.markerContainer.toGlobal({x:0,y:this.innerHeight()*(1-r)}):this.markerContainer.toGlobal({x:this.innerWidth()*r,y:0});let l=s.get("background");l&&l.set("fill",i),s.set("pointTo",h),s.show()}}_prepareChildren(){super._prepareChildren();const t=this.labelContainer,e=this.get("orientation"),i=this.startLabel,s=this.endLabel,n=this.getTooltip();if(this.isDirty("orientation")&&("vertical"==e?(this.markerContainer.setAll({layout:this._root.verticalLayout,height:k.AQ}),this.set("layout",this._root.horizontalLayout),i.setAll({y:k.AQ,x:void 0,centerY:k.AQ,centerX:k.AQ}),s.setAll({y:0,x:void 0,centerY:0,centerX:k.AQ}),t.setAll({height:k.AQ,width:void 0}),n&&n.set("pointerOrientation","horizontal")):(this.markerContainer.setAll({layout:this._root.horizontalLayout,width:k.AQ}),this.set("layout",this._root.verticalLayout),i.setAll({x:0,y:void 0,centerX:0,centerY:0}),s.setAll({x:k.AQ,y:void 0,centerX:k.AQ,centerY:0}),t.setAll({width:k.AQ,height:void 0}),n&&n.set("pointerOrientation","vertical"))),this.isDirty("stepCount")){const t=this.get("stepCount",1),i=this.get("startColor"),s=this.get("endColor"),n=this.get("startOpacity",1),r=this.get("endOpacity",1);if(this.markerContainer.children.clear(),t>1)for(let o=0;o0&&e/u!=Math.round(e/u)))for(let h=0;h0&&h/c!=Math.round(h/c)||d{let i=e.offset;N.isNumber(i)||(i=t/(g.length-1));let s=e.opacity;N.isNumber(s)||(s=1);let n=e.color;if(n){const t=e.lighten;t&&(n=O.Il.lighten(n,t));const r=e.brighten;r&&(n=O.Il.brighten(n,r)),p.addColorStop(i,"rgba("+n.r+","+n.g+","+n.b+","+s+")")}t++}))}return p}}lt.className="RadialGradient",lt.classNames=at.p.classNames.concat([lt.className]);var ct=i(751);class ut extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("radius",3),a=2*o+i,h=2*o+i,l=Math.round(n/a),c=Math.round(r/h);a=n/l,h=r/c,0!=s&&(this._display.x=a*ct.cos(s),this._display.y=h*ct.sin(s));const u=this.get("color"),d=this.get("colorOpacity");(u||d)&&this._display.beginFill(u,d);for(let n=0==s?0:2*-c;n<2*c;n++)for(let r=0==s?0:2*-l;r<2*l;r++)if(!t||1!=(1&n)&&1!=(1&r)||1==(1&n)&&1==(1&r)){let t=r*a,s=n*h;e&&(t+=a+i/2,s+=h+i/2),this._display.drawCircle(t-o,s-o,o)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i),(u||d)&&this._display.endFill()}}ut.className="CirclePattern",ut.classNames=nt.c.classNames.concat([ut.className]);var dt=i(3035),pt=i(4429);class gt extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("maxWidth",5),a=this.get("maxHeight",5);const h=this._display;let l=o+i,c=a+i,u=Math.round(n/l),d=Math.round(r/c);l=n/u,c=r/d,0!=s&&(h.x=l/2*ct.cos(s),h.y=-c/2*ct.sin(s));for(let i=0==s?0:2*-d;i<2*d;i++)for(let n=0==s?0:2*-u;n<2*u;n++)if(!t||1!=(1&i)&&1!=(1&n)||1==(1&i)&&1==(1&n)){let t=n*l,s=i*c;e&&(t+=(l-o)/2,s+=(c-a)/2),h.drawRect(t,s,o,a)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i);const p=this.get("color"),g=this.get("colorOpacity");(p||g)&&(h.beginFill(p,g),h.endFill())}}gt.className="RectanglePattern",gt.classNames=nt.c.classNames.concat([gt.className]);class ft extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("svgPath")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("svgPath");null!=t&&this._display.svgPath(t);const e=this.get("color"),i=this.get("colorOpacity");(e||i)&&(this._display.beginFill(e,i),this._display.endFill())}}ft.className="PathPattern",ft.classNames=nt.c.classNames.concat([ft.className]);class _t extends l.JH{_afterNew(){if(super._afterNewApplyThemes(),0===this.get("patterns",[]).length){const t=this.get("color",this.root.interfaceColors.get("stroke"));this.set("patterns",[this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:1,color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,maxWidth:4,maxHeight:4,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:1,gap:6,color:t}),this.getCirclePattern({width:11,height:11,radius:2,color:t}),this.getLinePattern({width:6,height:6,rotation:90,strokeWidth:1,color:t}),this.getRectanglePattern({width:14,height:14,rotation:45,gap:4,maxWidth:6,maxHeight:6,checkered:!0,color:t}),this.getLinePattern({width:6,height:6,rotation:0,strokeWidth:1,color:t}),this.getRectanglePattern({width:15,height:15,rotation:0,gap:5,maxWidth:5,maxHeight:5,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getCirclePattern({width:20,height:20,radius:3,gap:4,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,gap:1,maxWidth:9,maxHeight:9,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:0,strokeWidth:3,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:90,strokeWidth:3,gap:1,color:t})])}this._dirty.patterns=!1}_beforeChanged(){this.isDirty("patterns")&&this.reset()}getIndex(t){const e=this.get("patterns",[]);return te.length-1?e[t-Math.floor(t*(t/e.length))]:e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0))}getLinePattern(t){return dt.y.new(this.root,t)}getRectanglePattern(t){return gt.new(this.root,t)}getCirclePattern(t){return ut.new(this.root,t)}}_t.className="PatternSet",_t.classNames=l.JH.classNames.concat([_t.className]);var mt=i(2754),yt=i(9582),vt=i(256);class wt{static parse(t,e){e=this._applyDefaults(e);try{if(N.isString(t)){let i=JSON.parse(t);return e.reverse&&N.isArray(i)&&i.reverse(),i}if(N.isArray(t)||N.isObject(t))return t;throw"Unable to parse JSON data"}catch(t){return}}static _applyDefaults(t){const e={};return t||(t={}),vt.each({reverse:!1},((i,s)=>{e[i]=t[i]||s})),e}}class bt{static parse(t,e){e=this._applyDefaults(e);let i,s,n,r=this.CSVToArray(t,e.delimiter),o=[],a=[];for(s=0;s{e[i]=t[i]||s})),e}}class xt extends l.JH{constructor(){super(...arguments),this._checkDates=!1,this._checkNumbers=!1,this._checkColors=!1,this._checkEmpty=!1,this._checkDeep=!1}_afterNew(){super._afterNew(),this._checkFeatures(),this.on("dateFields",(()=>this._checkFeatures())),this.on("dateFormat",(()=>this._checkFeatures())),this.on("numericFields",(()=>this._checkFeatures())),this.on("colorFields",(()=>this._checkFeatures())),this.on("emptyAs",(()=>this._checkFeatures()))}_checkFeatures(){(this.isDirty("dateFields")||this.isDirty("dateFormat"))&&(this._checkDates=this.get("dateFields")&&this.get("dateFields").length>0),this.isDirty("numericFields")&&(this._checkNumbers=this.get("numericFields")&&this.get("numericFields").length>0),this.isDirty("colorFields")&&(this._checkColors=this.get("colorFields")&&this.get("colorFields").length>0),this.isDirty("emptyAs")&&(this._checkEmpty=null!=this.get("emptyAs")),this._checkDeepFeatures()}_checkDeepFeatures(){const t=[];ht.each(["dateFields","numericFields","colorFields"],(e=>{ht.each(this.get(e,[]),(e=>{const i=e.split(".");for(i.pop();i.length>0;)t.push(i.join(".")),i.pop()}))})),this._checkDeep=t.length>0,this.setPrivate("deepFields",t)}processMany(t){N.isArray(t)&&(this._checkDates||this._checkNumbers||this._checkColors||this._checkEmpty)&&ht.each(t,(t=>{this.processRow(t)}))}processRow(t,e=""){vt.each(t,((i,s)=>{const n=e+i;this._checkEmpty&&(t[i]=this._maybeToEmpty(t[i])),this._checkNumbers&&(t[i]=this._maybeToNumber(n,t[i])),this._checkDates&&(t[i]=this._maybeToDate(n,t[i])),this._checkColors&&(t[i]=this._maybeToColor(n,t[i])),this._checkDeep&&-1!==this.getPrivate("deepFields",[]).indexOf(n)&&N.isObject(t[i])&&this.processRow(t[i],n+".")}))}_maybeToNumber(t,e){return-1!==this.get("numericFields").indexOf(t)?N.toNumber(e):e}_maybeToDate(t,e){return-1!==this.get("dateFields").indexOf(t)?this._root.dateFormatter.parse(e,this.get("dateFormat","")).getTime():e}_maybeToEmpty(t){return null!=t&&""!=t||null==this.get("emptyAs")?t:this.get("emptyAs")}_maybeToColor(t,e){return-1!==this.get("colorFields").indexOf(t)?O.Il.fromAny(e):e}}var Dt=i(6460),kt=i(798),Tt=i(9821),Mt=i(780),Et=i(7255),Ot=i(1195),Pt=i(4102),St=i(7049),Nt=i(6312),Ct=i(9395);function Lt(t,e,i){return new Promise(((s,n)=>{let r=null!=i&&"blob"==i.responseType,o=new XMLHttpRequest;if(o.onload=()=>{if(200===o.status){let t,i;if(r)return i=o.response,void At(i).then((t=>{let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}));t=o.responseText||o.response;let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}else n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.onerror=()=>{n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.open("GET",t,!0),i&&i.withCredentials&&(o.withCredentials=!0),null!=i){if(null!=i.requestHeaders)for(let t=0;t{const s=new FileReader;s.onload=t=>{e(s.result)},s.onerror=t=>{i(t)},s.readAsText(t)}))}var Rt=i(1926)},3100:function(t,e){"use strict";e.Z={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(t){let e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""}},9629:function(t){var e=function(t){"use strict";var e,i=Object.prototype,s=i.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",h=r.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,s){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new S(s||[]);return n(o,"_invoke",{value:M(t,i,a)}),o}function u(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",g="executing",f="completed",_={};function m(){}function y(){}function v(){}var w={};l(w,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==i&&s.call(x,o)&&(w=x);var D=v.prototype=m.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function i(n,r,o,a){var h=u(t[n],t,r);if("throw"!==h.type){var l=h.arg,c=l.value;return c&&"object"==typeof c&&s.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,o,a)}),(function(t){i("throw",t,o,a)})):e.resolve(c).then((function(t){l.value=t,o(l)}),(function(t){return i("throw",t,o,a)}))}a(h.arg)}var r;n(this,"_invoke",{value:function(t,s){function n(){return new e((function(e,n){i(t,s,e,n)}))}return r=r?r.then(n,n):n()}})}function M(t,e,i){var s=d;return function(n,r){if(s===g)throw new Error("Generator is already running");if(s===f){if("throw"===n)throw r;return C()}for(i.method=n,i.arg=r;;){var o=i.delegate;if(o){var a=E(o,i);if(a){if(a===_)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===d)throw s=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=g;var h=u(t,e,i);if("normal"===h.type){if(s=i.done?f:p,h.arg===_)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(s=f,i.method="throw",i.arg=h.arg)}}}function E(t,i){var s=i.method,n=t.iterator[s];if(n===e)return i.delegate=null,"throw"===s&&t.iterator.return&&(i.method="return",i.arg=e,E(t,i),"throw"===i.method)||"return"!==s&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),_;var r=u(n,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,_;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,_):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,_)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var h=s.call(o,"catchLoc"),l=s.call(o,"finallyLoc");if(h&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var s=i.completion;if("throw"===s.type){var n=s.arg;P(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,s){return this.delegate={iterator:N(t),resultName:i,nextLoc:s},"next"===this.method&&(this.arg=e),_}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},8494:function(t,e,i){"use strict";i.r(e),i.d(e,{am5:function(){return f}});const s=window.Promise,n=s&&s.prototype.then,r=s&&s.prototype.catch,o=s&&s.prototype.finally,a=s&&s.reject,h=s&&s.resolve,l=s&&s.allSettled,c=s&&s.all,u=s&&s.race,d=window.fetch,p=String.prototype.startsWith,g=String.prototype.endsWith;i(9629);const f=i(5322);var _;i.p=(_=function(){if(document.currentScript)return document.currentScript;var t=document.getElementsByTagName("script");return t[t.length-1]}().src,((/(.*\/)[^\/]*$/.exec(_)||[])[1]||"./")),s&&(window.Promise=s,n&&(s.prototype.then=n),r&&(s.prototype.catch=r),o&&(s.prototype.finally=o),a&&(s.reject=a),h&&(s.resolve=h),l&&(s.allSettled=l),c&&(s.all=c),u&&(s.race=u)),d&&(window.fetch=d),p&&(String.prototype.startsWith=p),g&&(String.prototype.endsWith=g)},4138:function(t,e){"use strict";var i={value:()=>{}};function s(){for(var t,e=0,i=arguments.length,s={};e=0&&(e=t.slice(i+1),t=t.slice(0,i)),t&&!s.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),h=-1,l=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++h0)for(var i,s,n=new Array(i),r=0;r0&&i*i>s*s+n*n}function u(t,e){for(var i=0;i1e-6?(E+Math.sqrt(E*E-4*M*O))/(2*M):O/E);return{x:s+x+D*P,y:n+k+T*P,r:P}}function f(t,e,i){var s,n,r,o,a=t.x-e.x,h=t.y-e.y,l=a*a+h*h;l?(n=e.r+i.r,n*=n,o=t.r+i.r,n>(o*=o)?(s=(l+o-n)/(2*l),r=Math.sqrt(Math.max(0,o/l-s*s)),i.x=t.x-s*a-r*h,i.y=t.y-s*h+r*a):(s=(l+n-o)/(2*l),r=Math.sqrt(Math.max(0,n/l-s*s)),i.x=e.x+s*a-r*h,i.y=e.y+s*h+r*a)):(i.x=e.x+i.r,i.y=e.y)}function _(t,e){var i=t.r+e.r-1e-6,s=e.x-t.x,n=e.y-t.y;return i>0&&i*i>s*s+n*n}function m(t){var e=t._,i=t.next._,s=e.r+i.r,n=(e.x*i.r+i.x*e.r)/s,r=(e.y*i.r+i.y*e.r)/s;return n*n+r*r}function y(t){this._=t,this.next=null,this.previous=null}function v(t,e){if(!(o=(i=t,t="object"==typeof i&&"length"in i?i:Array.from(i)).length))return 0;var i,s,n,r,o,a,l,u,p,g,v,w;if((s=t[0]).x=0,s.y=0,!(o>1))return s.r;if(n=t[1],s.x=-n.r,n.x=s.r,n.y=0,!(o>2))return s.r+n.r;f(n,s,r=t[2]),s=new y(s),n=new y(n),r=new y(r),s.next=r.previous=n,n.next=s.previous=r,r.next=n.previous=s;t:for(u=3;u(t=(r*t+o)%a)/a}();return s.x=e/2,s.y=i/2,t?s.eachBefore(x(t)).eachAfter(D(h,.5,l)).eachBefore(k(1)):s.eachBefore(x(w)).eachAfter(D(n.G,1,l)).eachAfter(D(h,s.r/Math.min(e,i),l)).eachBefore(k(Math.min(e,i)/(2*s.r))),s}return l.radius=function(e){return arguments.length?(t=(0,s.j)(e),l):t},l.size=function(t){return arguments.length?(e=+t[0],i=+t[1],l):[e,i]},l.padding=function(t){return arguments.length?(h="function"==typeof t?t:(0,n.Z)(+t),l):h},l}function x(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function D(t,e,i){return function(s){if(n=s.children){var n,r,o,a=n.length,h=t(s)*e||0;if(h)for(r=0;r=0))throw new Error(`invalid digits: ${t}`);if(e>15)return a;const i=10**e;return function(t){this._+=t[0];for(let e=1,s=t.length;er)if(Math.abs(d*l-c*u)>r&&o){let g=i-a,f=n-h,_=l*l+c*c,m=g*g+f*f,y=Math.sqrt(_),v=Math.sqrt(p),w=o*Math.tan((s-Math.acos((_+p-m)/(2*y*v)))/2),b=w/v,x=w/y;Math.abs(b-1)>r&&this._append`L${t+b*u},${e+b*d}`,this._append`A${o},${o},0,0,${+(d*g>u*f)},${this._x1=t+x*l},${this._y1=e+x*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,i,a,h,l){if(t=+t,e=+e,l=!!l,(i=+i)<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(a),u=i*Math.sin(a),d=t+c,p=e+u,g=1^l,f=l?a-h:h-a;null===this._x1?this._append`M${d},${p}`:(Math.abs(this._x1-d)>r||Math.abs(this._y1-p)>r)&&this._append`L${d},${p}`,i&&(f<0&&(f=f%n+n),f>o?this._append`A${i},${i},0,1,${g},${t-c},${e-u}A${i},${i},0,1,${g},${this._x1=d},${this._y1=p}`:f>r&&this._append`A${i},${i},0,${+(f>=s)},${g},${this._x1=t+i*Math.cos(h)},${this._y1=e+i*Math.sin(h)}`)}rect(t,e,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function l(){return new h}l.prototype=h.prototype},832:function(t,e,i){"use strict";i.d(e,{Z:function(){return D}});var s=i(3141);const n=Math.abs,r=Math.atan2,o=Math.cos,a=Math.max,h=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,d=Math.PI,p=d/2,g=2*d;function f(t){return t>=1?p:t<=-1?-p:Math.asin(t)}var _=i(5987);function m(t){return t.innerRadius}function y(t){return t.outerRadius}function v(t){return t.startAngle}function w(t){return t.endAngle}function b(t){return t&&t.padAngle}function x(t,e,i,s,n,r,o){var h=t-i,l=e-s,u=(o?r:-r)/c(h*h+l*l),d=u*l,p=-u*h,g=t+d,f=e+p,_=i+d,m=s+p,y=(g+_)/2,v=(f+m)/2,w=_-g,b=m-f,x=w*w+b*b,D=n-r,k=g*m-_*f,T=(b<0?-1:1)*c(a(0,D*D*x-k*k)),M=(k*b-w*T)/x,E=(-k*w-b*T)/x,O=(k*b+w*T)/x,P=(-k*w+b*T)/x,S=M-y,N=E-v,C=O-y,L=P-v;return S*S+N*N>C*C+L*L&&(M=O,E=P),{cx:M,cy:E,x01:-d,y01:-p,x11:M*(n/D-1),y11:E*(n/D-1)}}function D(){var t=m,e=y,i=(0,s.Z)(0),a=null,D=v,k=w,T=b,M=null,E=(0,_.d)(O);function O(){var s,_,m,y=+t.apply(this,arguments),v=+e.apply(this,arguments),w=D.apply(this,arguments)-p,b=k.apply(this,arguments)-p,O=n(b-w),P=b>w;if(M||(M=s=E()),vu)if(O>g-u)M.moveTo(v*o(w),v*l(w)),M.arc(0,0,v,w,b,!P),y>u&&(M.moveTo(y*o(b),y*l(b)),M.arc(0,0,y,b,w,P));else{var S,N,C=w,L=b,A=w,R=b,U=O,B=O,F=T.apply(this,arguments)/2,I=F>u&&(a?+a.apply(this,arguments):c(y*y+v*v)),H=h(n(v-y)/2,+i.apply(this,arguments)),z=H,G=H;if(I>u){var V=f(I/y*l(F)),W=f(I/v*l(F));(U-=2*V)>u?(A+=V*=P?1:-1,R-=V):(U=0,A=R=(w+b)/2),(B-=2*W)>u?(C+=W*=P?1:-1,L-=W):(B=0,C=L=(w+b)/2)}var Y=v*o(C),j=v*l(C),X=y*o(R),$=y*l(R);if(H>u){var Z,K=v*o(L),q=v*l(L),Q=y*o(A),J=y*l(A);if(O1?0:m<-1?d:Math.acos(m))/2),rt=c(Z[0]*Z[0]+Z[1]*Z[1]);z=h(H,(y-rt)/(nt-1)),G=h(H,(v-rt)/(nt+1))}else z=G=0}B>u?G>u?(S=x(Q,J,Y,j,v,G,P),N=x(K,q,X,$,v,G,P),M.moveTo(S.cx+S.x01,S.cy+S.y01),Gu&&U>u?z>u?(S=x(X,$,K,q,y,-z,P),N=x(Y,j,Q,J,y,-z,P),M.lineTo(S.cx+S.x01,S.cy+S.y01),z=o;--a)p.point(y[a],v[a]);p.lineEnd(),p.areaEnd()}m&&(y[r]=+t(h,r,n),v[r]=+e(h,r,n),p.point(l?+l(h,r,n):y[r],i?+i(h,r,n):v[r]))}if(f)return p=null,f+""||null}function _(){return(0,o.Z)().defined(c).curve(d).context(u)}return t="function"==typeof t?t:void 0===t?h.x:(0,n.Z)(+t),e="function"==typeof e?e:void 0===e?(0,n.Z)(0):(0,n.Z)(+e),i="function"==typeof i?i:void 0===i?h.y:(0,n.Z)(+i),f.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),l=null,f):t},f.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),f):t},f.x1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):l},f.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),i=null,f):e},f.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),f):e},f.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):i},f.lineX0=f.lineY0=function(){return _().x(t).y(e)},f.lineY1=function(){return _().x(t).y(i)},f.lineX1=function(){return _().x(l).y(e)},f.defined=function(t){return arguments.length?(c="function"==typeof t?t:(0,n.Z)(!!t),f):c},f.curve=function(t){return arguments.length?(d=t,null!=u&&(p=d(u)),f):d},f.context=function(t){return arguments.length?(null==t?u=p=null:p=d(u=t),f):u},f}},8457:function(t,e,i){"use strict";function s(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}i.d(e,{Z:function(){return s}}),Array.prototype.slice},3141:function(t,e,i){"use strict";function s(t){return function(){return t}}i.d(e,{Z:function(){return s}})},964:function(t,e,i){"use strict";function s(t){this._context=t}function n(t){return new s(t)}i.d(e,{Z:function(){return n}}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},774:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var s=i(8457),n=i(3141),r=i(964),o=i(5987),a=i(6758);function h(t,e){var i=(0,n.Z)(!0),h=null,l=r.Z,c=null,u=(0,o.d)(d);function d(n){var r,o,a,d=(n=(0,s.Z)(n)).length,p=!1;for(null==h&&(c=l(a=u())),r=0;r<=d;++r)!(r=0))throw new RangeError(`invalid digits: ${i}`);e=t}return t},()=>new s.y$(e)}},6758:function(t,e,i){"use strict";function s(t){return t[0]}function n(t){return t[1]}i.d(e,{x:function(){return s},y:function(){return n}})},7738:function(t,e,i){"use strict";i.d(e,{B7:function(){return _},HT:function(){return m},zO:function(){return g}});var s,n,r=0,o=0,a=0,h=1e3,l=0,c=0,u=0,d="object"==typeof performance&&performance.now?performance:Date,p="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return c||(p(f),c=d.now()+u)}function f(){c=0}function _(){this._call=this._time=this._next=null}function m(t,e,i){var s=new _;return s.restart(t,e,i),s}function y(){c=(l=d.now())+u,r=o=0;try{!function(){g(),++r;for(var t,e=s;e;)(t=c-e._time)>=0&&e._call.call(void 0,t),e=e._next;--r}()}finally{r=0,function(){for(var t,e,i=s,r=1/0;i;)i._call?(r>i._time&&(r=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:s=e);n=t,w(r)}(),c=0}}function v(){var t=d.now(),e=t-l;e>h&&(u-=e,l=t)}function w(t){r||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(y,t-d.now()-u)),a&&(a=clearInterval(a))):(a||(l=d.now(),a=setInterval(v,h)),r=1,p(y)))}_.prototype=m.prototype={constructor:_,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?g():+i)+(null==e?0:+e),this._next||n===this||(n?n._next=this:s=this,n=this),this._call=t,this._time=i,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},7896:function(t,e,i){"use strict";function s(){}function n(t){return null==t?s:function(){return this.querySelector(t)}}function r(){return[]}function o(t){return null==t?r:function(){return this.querySelectorAll(t)}}function a(t){return function(){return this.matches(t)}}function h(t){return function(e){return e.matches(t)}}var l=Array.prototype.find;function c(){return this.firstElementChild}var u=Array.prototype.filter;function d(){return Array.from(this.children)}function p(t){return new Array(t.length)}function g(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function f(t,e,i,s,n,r){for(var o,a=0,h=e.length,l=r.length;ae?1:t>=e?0:NaN}g.prototype={constructor:g,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var w="http://www.w3.org/1999/xhtml",b={svg:"http://www.w3.org/2000/svg",xhtml:w,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function x(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),b.hasOwnProperty(e)?{space:b[e],local:t}:t}function D(t){return function(){this.removeAttribute(t)}}function k(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T(t,e){return function(){this.setAttribute(t,e)}}function M(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function O(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function P(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function S(t){return function(){this.style.removeProperty(t)}}function N(t,e,i){return function(){this.style.setProperty(t,e,i)}}function C(t,e,i){return function(){var s=e.apply(this,arguments);null==s?this.style.removeProperty(t):this.style.setProperty(t,s,i)}}function L(t,e){return t.style.getPropertyValue(e)||P(t).getComputedStyle(t,null).getPropertyValue(e)}function A(t){return function(){delete this[t]}}function R(t,e){return function(){this[t]=e}}function U(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function B(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new I(t)}function I(t){this._node=t,this._names=B(t.getAttribute("class")||"")}function H(t,e){for(var i=F(t),s=-1,n=e.length;++s=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ut=[null];function dt(t,e){this._groups=t,this._parents=e}function pt(){return new dt([[document.documentElement]],ut)}dt.prototype=pt.prototype={constructor:dt,select:function(t){"function"!=typeof t&&(t=n(t));for(var e=this._groups,i=e.length,s=new Array(i),r=0;r=T&&(T=k+1);!(D=b[T])&&++T=0;)(s=n[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=v);for(var i=this._groups,s=i.length,n=new Array(s),r=0;r1?this.each((null==e?S:"function"==typeof e?C:N)(t,e,null==i?"":i)):L(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?A:"function"==typeof e?U:R)(t,e)):this.node()[t]},classed:function(t,e){var i=B(t+"");if(arguments.length<2){for(var s=F(this.node()),n=-1,r=i.length;++n=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}))}(t+""),o=r.length;if(!(arguments.length<2)){for(a=e?at:ot,s=0;s{s.stop(),t(i+e)}),e,i),s}var yt=(0,ft.Z)("start","end","cancel","interrupt"),vt=[],wt=0,bt=3;function xt(t,e,i,s,n,r){var o=t.__transition;if(o){if(i in o)return}else t.__transition={};!function(t,e,i){var s,n=t.__transition;function r(h){var l,c,u,d;if(1!==i.state)return a();for(l in n)if((d=n[l]).name===i.name){if(d.state===bt)return mt(r);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[l]):+lwt)throw new Error("too late; already scheduled");return i}function kt(t,e){var i=Tt(t,e);if(i.state>bt)throw new Error("too late; already running");return i}function Tt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Mt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Et,Ot=180/Math.PI,Pt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function St(t,e,i,s,n,r){var o,a,h;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(h=t*i+e*s)&&(i-=t*h,s-=e*h),(a=Math.sqrt(i*i+s*s))&&(i/=a,s/=a,h/=a),t*s180?e+=360:e-t>180&&(t+=360),r.push({i:i.push(n(i)+"rotate(",null,s)-2,x:Mt(t,e)})):e&&i.push(n(i)+"rotate("+e+s)}(r.rotate,o.rotate,a,h),function(t,e,i,r){t!==e?r.push({i:i.push(n(i)+"skewX(",null,s)-2,x:Mt(t,e)}):e&&i.push(n(i)+"skewX("+e+s)}(r.skewX,o.skewX,a,h),function(t,e,i,s,r,o){if(t!==i||e!==s){var a=r.push(n(r)+"scale(",null,",",null,")");o.push({i:a-4,x:Mt(t,i)},{i:a-2,x:Mt(e,s)})}else 1===i&&1===s||r.push(n(r)+"scale("+i+","+s+")")}(r.scaleX,r.scaleY,o.scaleX,o.scaleY,a,h),r=o=null,function(t){for(var e,i=-1,s=h.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?se(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?se(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jt.exec(t))?new re(e[1],e[2],e[3],1):(e=Xt.exec(t))?new re(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$t.exec(t))?se(e[1],e[2],e[3],e[4]):(e=Zt.exec(t))?se(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Kt.exec(t))?ue(e[1],e[2]/100,e[3]/100,1):(e=qt.exec(t))?ue(e[1],e[2]/100,e[3]/100,e[4]):Qt.hasOwnProperty(t)?ie(Qt[t]):"transparent"===t?new re(NaN,NaN,NaN,0):null}function ie(t){return new re(t>>16&255,t>>8&255,255&t,1)}function se(t,e,i,s){return s<=0&&(t=e=i=NaN),new re(t,e,i,s)}function ne(t,e,i,s){return 1===arguments.length?((n=t)instanceof It||(n=ee(n)),n?new re((n=n.rgb()).r,n.g,n.b,n.opacity):new re):new re(t,e,i,null==s?1:s);var n}function re(t,e,i,s){this.r=+t,this.g=+e,this.b=+i,this.opacity=+s}function oe(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}`}function ae(){const t=he(this.opacity);return`${1===t?"rgb(":"rgba("}${le(this.r)}, ${le(this.g)}, ${le(this.b)}${1===t?")":`, ${t})`}`}function he(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function le(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ce(t){return((t=le(t))<16?"0":"")+t.toString(16)}function ue(t,e,i,s){return s<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new pe(t,e,i,s)}function de(t){if(t instanceof pe)return new pe(t.h,t.s,t.l,t.opacity);if(t instanceof It||(t=ee(t)),!t)return new pe;if(t instanceof pe)return t;var e=(t=t.rgb()).r/255,i=t.g/255,s=t.b/255,n=Math.min(e,i,s),r=Math.max(e,i,s),o=NaN,a=r-n,h=(r+n)/2;return a?(o=e===r?(i-s)/a+6*(i0&&h<1?0:o,new pe(o,a,h,t.opacity)}function pe(t,e,i,s){this.h=+t,this.s=+e,this.l=+i,this.opacity=+s}function ge(t){return(t=(t||0)%360)<0?t+360:t}function fe(t){return Math.max(0,Math.min(1,t||0))}function _e(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function me(t,e,i,s,n){var r=t*t,o=r*t;return((1-3*t+3*r-o)*e+(4-6*r+3*o)*i+(1+3*t+3*r-3*o)*s+o*n)/6}Bt(It,ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return de(this).formatHsl()},formatRgb:te,toString:te}),Bt(re,ne,Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new re(le(this.r),le(this.g),le(this.b),he(this.opacity))},displayable(){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:oe,formatHex:oe,formatHex8:function(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}${ce(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ae,toString:ae})),Bt(pe,(function(t,e,i,s){return 1===arguments.length?de(t):new pe(t,e,i,null==s?1:s)}),Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new pe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new pe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*e,n=2*i-s;return new re(_e(t>=240?t-240:t+120,n,s),_e(t,n,s),_e(t<120?t+240:t-120,n,s),this.opacity)},clamp(){return new pe(ge(this.h),fe(this.s),fe(this.l),he(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=he(this.opacity);return`${1===t?"hsl(":"hsla("}${ge(this.h)}, ${100*fe(this.s)}%, ${100*fe(this.l)}%${1===t?")":`, ${t})`}`}}));var ye=t=>()=>t;function ve(t,e){var i=e-t;return i?function(t,e){return function(i){return t+i*e}}(t,i):ye(isNaN(t)?e:t)}var we=function t(e){var i=function(t){return 1==(t=+t)?ve:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(s){return Math.pow(t+s*e,i)}}(e,i,t):ye(isNaN(e)?i:e)}}(e);function s(t,e){var s=i((t=ne(t)).r,(e=ne(e)).r),n=i(t.g,e.g),r=i(t.b,e.b),o=ve(t.opacity,e.opacity);return function(e){return t.r=s(e),t.g=n(e),t.b=r(e),t.opacity=o(e),t+""}}return s.gamma=t,s}(1);function be(t){return function(e){var i,s,n=e.length,r=new Array(n),o=new Array(n),a=new Array(n);for(i=0;i=1?(i=1,e-1):Math.floor(i*e),n=t[s],r=t[s+1],o=s>0?t[s-1]:2*n-r,a=sr&&(n=e.slice(r,n),a[o]?a[o]+=n:a[++o]=n),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,h.push({i:o,x:Mt(i,s)})),r=De.lastIndex;return r=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Dt:kt;return function(){var o=r(this,t),a=o.on;a!==s&&(n=(s=a).copy()).on(e,i),o.on=n}}(i,t,e))},attr:function(t,e){var i=x(t),s="transform"===i?Lt:Te;return this.attrTween(t,"function"==typeof e?(i.local?Ne:Se)(i,s,Ut(this,"attr."+t,e)):null==e?(i.local?Ee:Me)(i):(i.local?Pe:Oe)(i,s,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;var s=x(t);return this.tween(i,(s.local?Ce:Le)(s,e))},style:function(t,e,i){var s="transform"==(t+="")?Ct:Te;return null==e?this.styleTween(t,function(t,e){var i,s,n;return function(){var r=L(this,t),o=(this.style.removeProperty(t),L(this,t));return r===o?null:r===i&&o===s?n:n=e(i=r,s=o)}}(t,s)).on("end.style."+t,Ie(t)):"function"==typeof e?this.styleTween(t,function(t,e,i){var s,n,r;return function(){var o=L(this,t),a=i(this),h=a+"";return null==a&&(this.style.removeProperty(t),h=a=L(this,t)),o===h?null:o===s&&h===n?r:(n=h,r=e(s=o,a))}}(t,s,Ut(this,"style."+t,e))).each(function(t,e){var i,s,n,r,o="style."+e,a="end."+o;return function(){var h=kt(this,t),l=h.on,c=null==h.value[o]?r||(r=Ie(e)):void 0;l===i&&n===c||(s=(i=l).copy()).on(a,n=c),h.on=s}}(this._id,t)):this.styleTween(t,function(t,e,i){var s,n,r=i+"";return function(){var o=L(this,t);return o===r?null:o===s?n:n=e(s=o,i)}}(t,s,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var s="style."+(t+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(null==e)return this.tween(s,null);if("function"!=typeof e)throw new Error;return this.tween(s,function(t,e,i){var s,n;function r(){var r=e.apply(this,arguments);return r!==n&&(s=(n=r)&&function(t,e,i){return function(s){this.style.setProperty(t,e.call(this,s),i)}}(t,r,i)),s}return r._value=e,r}(t,e,null==i?"":i))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ut(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,i;function s(){var s=t.apply(this,arguments);return s!==i&&(e=(i=s)&&function(t){return function(e){this.textContent=t.call(this,e)}}(s)),e}return s._value=t,s}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var s,n=Tt(this.node(),i).tween,r=0,o=n.length;r2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[n]):o=!1;o&&delete t.__transition}}(this,t)}))},gt.prototype.transition=function(t){var e,i;t instanceof ze?(e=t._id,t=t._name):(e=Ge(),(i=We).time=(0,_t.zO)(),t=null==t?null:t+"");for(var s=this._groups,n=s.length,r=0;r=n)&&Object.keys(a.O).every((function(t){return a.O[t](i[h])}))?i.splice(h--,1):(o=!1,n0&&t[c-1][2]>n;c--)t[c]=t[c-1];t[c]=[i,s,n]},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},i=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(t,s){if(1&s&&(t=this(t)),8&s)return t;if("object"==typeof t&&t){if(4&s&&t.__esModule)return t;if(16&s&&"function"==typeof t.then)return t}var n=Object.create(null);a.r(n);var r={};e=e||[null,i({}),i([]),i(i)];for(var o=2&s&&t;"object"==typeof o&&!~e.indexOf(o);o=i(o))Object.getOwnPropertyNames(o).forEach((function(e){r[e]=function(){return t[e]}}));return r.default=function(){return t},a.d(n,r),n},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,i){return a.f[i](t,e),e}),[]))},a.u=function(t){return"deps/"+{643:"pdfmake",4297:"xlsx",4384:"markerjs2"}[t]+".js"},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s={},n="@amcharts/amcharts5:",a.l=function(t,e,i,r){if(s[t])s[t].push(e);else{var o,h;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c{this.zoomOut()})),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",e);const a=this.plotContainer;a.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),a.children.push(this.topGridContainer),a.children.push(this.bulletsContainer),a.set("interactive",!0),a.set("interactiveChildren",!1),a.set("background",o.A.new(t,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(a.events.on("pointerdown",(t=>{this._handlePlotDown(t)}))),this._disposers.push(a.events.on("globalpointerup",(t=>{this._handlePlotUp(t)}))),this._disposers.push(a.events.on("globalpointermove",(t=>{this._handlePlotMove(t)}))),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(t){t._unstack(),t._posXDp&&t._posXDp.dispose(),t._posYDp&&t._posYDp.dispose(),t.set("baseAxis",void 0);const e=t.get("xAxis");e&&(g.remove(e.series,t),e.markDirtyExtremes());const i=t.get("yAxis");i&&(g.remove(i.series,t),i.markDirtyExtremes());const s=this.get("cursor");if(s){const e=s.get("snapToSeries");e&&g.remove(e,t)}super._removeSeries(t)}_applyThemes(t=!1){const e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}handleWheel(t){const e=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=t.originalEvent;let o=!1;if(!p.isLocalEvent(a,this))return;o=!0;const n=s.toLocal(t.point),r=this.get("wheelStep",.2),h=a.deltaY/100,l=a.deltaX/100,d=this.get("wheelZoomPositionX"),g=this.get("wheelZoomPositionY");"zoomX"!==e&&"zoomXY"!==e||0==l||this.xAxes.each((t=>{if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let h=t.get("maxDeviation",0),g=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let l=t.get("maxDeviation",0),g=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let h=t.get("maxDeviation",0),d=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let l=t.get("maxDeviation",0),d=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panX"!==i&&"panXY"!==i||0==h||this.xAxes.each((t=>{if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e+s,n=i+s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==e&&"panXY"!==e||0==l||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==i&&"panXY"!==i||0==h||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e-s,n=i-s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),o&&a.preventDefault()}_handleSetWheel(){const t=this.get("wheelX"),e=this.get("wheelY"),i=this.plotContainer;"none"!==t||"none"!==e?(this._wheelDp=i.events.on("wheel",(i=>{const s=i.originalEvent;("none"!==t&&0!=Math.abs(s.deltaX)||"none"!==e&&0!=Math.abs(s.deltaY))&&this.handleWheel(i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(t){let e=1;return t.get("renderer").get("inversed")&&(e=-1),e}_fixWheel(t,e){const i=e-t;return t<0&&(e=(t=0)+i),e>1&&(t=(e=1)-i),[t,e]}_handlePlotDown(t){const e=t.originalEvent;if(2==e.button)return;const i=this.plotContainer;let s=i.toLocal(t.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&e.pointerId&&m.keys(i._downPoints).length>0){const t=this.xAxes.getIndex(0),e=this.yAxes.getIndex(0);t&&(this._downStartX=t.get("start",0),this._downEndX=t.get("end",1)),e&&(this._downStartY=e.get("start",0),this._downEndY=e.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:e.clientX,y:e.clientY};const i=this.get("panX"),s=this.get("panY");i&&this.xAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")})),s&&this.yAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")}));const a="panstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:t.originalEvent})}}_handleWheelAnimation(t){t?t.events.on("stopped",(()=>{this._dispatchWheelAnimation()})):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const t="wheelended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}_handlePlotUp(t){const e=this._downPoint;if(e&&(this.get("panX")||this.get("panY"))){if(t.originalEvent.clientX==e.x&&t.originalEvent.clientY==e.y){const e="pancancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:t.originalEvent})}this._downPoint=void 0,this.xAxes.each((t=>{t._isPanning=!1})),this.yAxes.each((t=>{t._isPanning=!1}))}_handlePlotMove(t){const e=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const i=t.originalEvent.pointerId;if(i&&(this._movePoints[i]=t.point,m.keys(e._downPoints).length>1))return void this._handlePinch()}let i=this._downPoint;if(i){i=e.toLocal(this._root.documentPointToRoot(i));let s=e.toLocal(t.point);const a=this.get("panX"),o=this.get("panY");if(a){let t=this.get("scrollbarX");t&&t.events.disableType("rangechanged"),this.xAxes.each((t=>{if(t.get("panX")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.x-s.x)/e.width();t.get("renderer").get("inversed")&&(n*=-1);let r=a+n,h=o+n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}if(o){let t=this.get("scrollbarY");t&&t.events.disableType("rangechanged"),this.yAxes.each((t=>{if(t.get("panY")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.y-s.y)/e.height();t.get("renderer").get("inversed")&&(n*=-1);let r=a-n,h=o-n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}}}_handlePinch(){const t=this.plotContainer;let e=0,i=[],s=[];if(m.each(t._downPoints,((t,a)=>{i[e]=a;let o=this._movePoints[t];o&&(s[e]=o),e++})),i.length>1&&s.length>1){const e=t.width(),a=t.height();let o=i[0],n=i[1],r=s[0],h=s[1];if(o&&n&&r&&h){if(r=t.toLocal(r),h=t.toLocal(h),o=t.toLocal(o),n=t.toLocal(n),this.get("pinchZoomX")){const t=this._downStartX,i=this._downEndX;if(null!=t&&null!=i){o.x>n.x&&([o,n]=[n,o],[r,h]=[h,r]);let s=t+o.x/e*(i-t),a=t+n.x/e*(i-t),l=t+r.x/e*(i-t),d=t+h.x/e*(i-t),g=Math.max(.001,a-s)/Math.max(.001,d-l),c=t*g+s-l*g,u=i*g+a-d*g;this.xAxes.each((t=>{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}if(this.get("pinchZoomY")){const t=this._downStartY,e=this._downEndY;if(null!=t&&null!=e){o.y{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}}}}_handleCursorPosition(){const t=this.get("cursor");if(t){const e=t.getPrivate("point");let i=t.get("snapToSeries");if(t._downPoint&&(i=void 0),i&&e){const s=t.get("snapToSeriesBy"),a=[];g.each(i,(t=>{if(!t.isHidden()&&!t.isHiding())if("x!"!=s&&"y!"!=s){const e=t.startIndex(),i=t.endIndex();for(let s=e;s{const i=t.get("point");if(i){let a=0;a="x"==s||"x!"==s?Math.abs(e.x-i.x):"y"==s||"y!"==s?Math.abs(e.y-i.y):Math.hypot(e.x-i.x,e.y-i.y),a{const e=t.get("tooltip");e&&e._setDataItem(void 0)})),o){let e=o.component;e.showDataItemTooltip(o),e.setRaw("tooltipDataItem",o);const i=o.get("point");i&&t.handleMove(e.toGlobal({x:i.x-e.x(),y:i.y-e.y()}),!0)}}}}_updateCursor(){let t=this.get("cursor");t&&t.updateCursor()}_addCursor(t){this.plotContainer.children.push(t)}_prepareChildren(){if(super._prepareChildren(),this.series.each((t=>{this._colorize(t)})),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const t=this._prevSettings.cursor,e=this.get("cursor");e!==t&&(this._disposeProperty("cursor"),t&&t.dispose(),e&&(e._setChart(this),this._addCursor(e),this._pushPropertyDisposer("cursor",e.events.on("selectended",(()=>{this._handleCursorSelectEnd()})))),this._prevSettings.cursor=e)}if(this.isDirty("scrollbarX")){const t=this._prevSettings.scrollbarX,e=this.get("scrollbarX");e!==t&&(this._disposeProperty("scrollbarX"),t&&t.dispose(),e&&(e.parent||this.topAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarX",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.xAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarX",e.events.on("released",(()=>{this.xAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.xAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarX=e)}if(this.isDirty("scrollbarY")){const t=this._prevSettings.scrollbarY,e=this.get("scrollbarY");e!==t&&(this._disposeProperty("scrollbarY"),t&&t.dispose(),e&&(e.parent||this.rightAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarY",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.yAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarY",e.events.on("released",(()=>{this.yAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.yAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarY=e)}this._handleZoomOut()}_processSeries(t){super._processSeries(t);const e=t.get("xAxis"),i=t.get("yAxis");g.move(e.series,t),g.move(i.series,t),t._posXDp=t.addDisposer(e.events.on("positionchanged",(()=>{t._fixPosition()}))),t._posXDp=t.addDisposer(i.events.on("positionchanged",(()=>{t._fixPosition()}))),t.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?t.set("baseAxis",i):t.set("baseAxis",e)),t.get("stacked")&&(t._markDirtyKey("stacked"),g.each(t.dataItems,(t=>{t.set("stackToItemY",void 0),t.set("stackToItemX",void 0)}))),t._markDirtyAxes(),i.markDirtyExtremes(),e.markDirtyExtremes(),e._seriesAdded=!0,i._seriesAdded=!0,this._colorize(t)}_colorize(t){const e=this.get("colors");if(e&&null==t.get("fill")){const i=e.next();t._setSoft("stroke",i),t._setSoft("fill",i)}const i=this.get("patterns");if(i&&null==t.get("fillPattern")){const e=i.next();t._setSoft("fillPattern",e)}}_handleCursorSelectEnd(){const t=this.get("cursor"),e=t.get("behavior"),i=t.getPrivate("downPositionX",0),s=t.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,t.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,t.getPrivate("positionY",.5)));this.xAxes.each((t=>{if("zoomX"===e||"zoomXY"===e){let e=t.toAxisPosition(i),s=t.toAxisPosition(a);t.zoom(e,s)}t.setPrivate("updateScrollbar",!0)})),this.yAxes.each((t=>{if("zoomY"===e||"zoomXY"===e){let e=t.toAxisPosition(s),i=t.toAxisPosition(o);t.zoom(e,i)}t.setPrivate("updateScrollbar",!0)}))}_handleScrollbar(t,e,i,s){t.each((t=>{let a=t.fixPosition(e),o=t.fixPosition(i),n=t.zoom(a,o,void 0,s);const r="updateScrollbar";t.setPrivateRaw(r,!1),n?n.events.on("stopped",(()=>{t.setPrivateRaw(r,!0)})):t.setPrivateRaw(r,!0)}))}_processAxis(t,e){return t.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxis(t)}));else if("push"===t.type)e.children.push(t.newValue),t.newValue.processChart(this);else if("setIndex"===t.type)e.children.setIndex(t.index,t.newValue),t.newValue.processChart(this);else if("insertIndex"===t.type)e.children.insertIndex(t.index,t.newValue),t.newValue.processChart(this);else if("removeIndex"===t.type)this._removeAxis(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");e.children.moveValue(t.value,t.newIndex),t.value.processChart(this)}}))}_removeAxis(t){if(!t.isDisposed()){const e=t.parent;e&&e.children.removeValue(t);const i=t.gridContainer,s=i.parent;s&&s.children.removeValue(i);const a=t.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){const t=this.leftAxesContainer.width(),e=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",t),i.set("paddingRight",e);const s=this.topAxesContainer;s.set("paddingLeft",t),s.set("paddingRight",e)}processAxis(t){this.get("cursor")&&(this.addDisposer(t.on("start",(()=>{this._updateCursor()}))),this.addDisposer(t.on("end",(()=>{this._updateCursor()}))))}_handleAxisSelection(t,e){let i=t.fixPosition(t.get("start",0)),s=t.fixPosition(t.get("end",1));if(i>s&&([i,s]=[s,i]),-1!=this.xAxes.indexOf(t)){if(e||t.getPrivate("updateScrollbar")){let t=this.get("scrollbarX");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}}else if(-1!=this.yAxes.indexOf(t)&&(e||t.getPrivate("updateScrollbar"))){let t=this.get("scrollbarY");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let t=this.zoomOutButton;if(t&&t.parent){let e=!1;this.xAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),e?t.isHidden()&&t.show():t.hide()}}inPlot(t){const e=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=e.toGlobal(t);if(t.x>=-.5&&t.y>=-.5&&t.x<=e.width()+.5&&t.y<=e.height()+.5)return!0;if(i)for(let t=i.length-1;t>=0;t--){const e=i[t];if(e!=this){const t=e.plotContainer,i=this._root.rootPointToDocument(s),a=e._root.documentPointToRoot(i),o=t.toLocal(a);if(o.x>=-.1&&o.y>=-.1&&o.x<=t.width()+.1&&o.y<=t.height()+.1)return!0}}return!1}arrangeTooltips(){const t=this.plotContainer,e=t.width(),i=t.height();let s=this.height();const a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=t._display.toGlobal({x:0,y:0}),n=t._display.toGlobal({x:e,y:i});const r=[];let l,d,m=0,p=1/0,_=this._movePoint,x=this.get("maxTooltipDistance"),v=this.get("maxTooltipDistanceBy","xy");c.isNumber(x)&&this.series.each((t=>{if(!t.isHidden()){const e=t.get("tooltip");if(e){let i=e.get("pointTo");if(i){let e=Math.hypot(_.x-i.x,_.y-i.y);"x"==v?e=Math.abs(_.x-i.x):"y"==v&&(e=Math.abs(_.y-i.y)),e{const e=t.get("tooltip");if(e&&!e.get("forceHidden")){let i=!1,s=e.get("pointTo");if(s){if(x>=0){let s=e.get("pointTo");if(s&&d&&t!=l){let t=Math.hypot(d.x-s.x,d.y-s.y);"x"==v?t=Math.abs(d.x-s.x):"y"==v&&(t=Math.abs(d.y-s.y)),t>x&&(i=!0)}}else-1==x&&t!=l&&(i=!0);this.inPlot(this._tooltipToLocal(s))&&e.dataItem?i||(m+=s.y):i=!0,i||t.isHidden()||t.isHiding()?e.hide(0):(e.show(),r.push(e),y.push(t))}}})),this.setPrivate("tooltipSeries",y),this.get("arrangeTooltips")){let t=0,e=0;const a=this._root.tooltipContainer,l=r.length;if(m/l>i/2+o.y){r.sort(((t,e)=>u.HO(e.get("pointTo").y,t.get("pointTo").y)));let i=n.y;if(g.each(r,(s=>{let r=s.height();e++,t+=r;let l=s.get("centerY");l instanceof h.gG&&(r*=l.value),r+=s.get("marginBottom",0),s.set("bounds",{left:o.x,top:o.y,right:n.x,bottom:i}),s.setPrivate("customData",{left:o.x,top:o.y,right:n.x,bottom:i}),i=Math.min(i-r,s._fy-r),s.parent==a&&a.children.moveValue(s,0)})),i<0){r.reverse();let t=i;g.each(r,(s=>{e++;let a=s.get("bounds");if(a){let e=a.top-i,o=a.bottom-i;eu.HO(t.get("pointTo").y,e.get("pointTo").y)));let i=0;if(g.each(r,(r=>{e++;let l=r.height();t+=l;let d=r.get("centerY");d instanceof h.gG&&(l*=d.value),l+=r.get("marginBottom",0),r.set("bounds",{left:o.x,top:i,right:n.x,bottom:Math.max(o.y+s,i+l)}),r.parent==a&&a.children.moveValue(r,0),i=Math.max(i+l,r._fy+l)})),i>s){r.reverse();let t=s;g.each(r,(a=>{e++;let o=a.get("bounds");if(o){let e=o.top-(s-i),n=o.bottom-(s-i);n>t&&(n=t,e=n-a.height()),a.set("bounds",{left:o.left,top:e,right:o.right,bottom:n}),t=n-a.height()-a.get("marginBottom",0)}}))}}0==t&&e>0&&this._disposers.push(this.root.events.once("frameended",(()=>{this.arrangeTooltips()})))}}_tooltipToLocal(t){return this.plotContainer.toLocal(t)}zoomOut(){this.xAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))}))}_dispose(){super._dispose();const t=this.get("cursor");t&&t.dispose()}}x.className="XYChart",x.classNames=n.j.classNames.concat([x.className])},55:function(t,e,i){i.d(e,{l:function(){return u}});var s=i(3409),a=i(6245),o=i(1112),n=i(2754),r=i(3783),h=i(1926),l=i(5040),d=i(751),g=i(256),c=i(5071);class u extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.interfaceColors,e=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:n.U.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:o.Il.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:n.U.new(this._root,{saturation:0})});{const e=i("Graphics",["scrollbar","overlay"]);e.setAll({fillOpacity:.5}),(0,r.v)(e,"fill",t,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:a.AQ,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:a.AQ}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:a.AQ}),i("AxisLabel",["y"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const s=i("Grid",["cursor","x"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use left and right arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const s=i("Grid",["cursor","y"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use up and down arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const e=i("Graphics",["cursor","selection"]);e.setAll({fillOpacity:.15}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:a.CI,centerY:a.CI,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const e=i("AxisRenderer");e.setAll({crisp:!0,strokeOpacity:0}),(0,r.v)(e,"stroke",t,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:a.AQ}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:a.AQ});{const e=i("Rectangle",["axis","thumb","zoomgrip"]);e.setAll({fillOpacity:0}),(0,r.v)(e,"fill",t,"alternativeBackground"),e.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{const e=i("Grid");e.setAll({location:0,strokeOpacity:.15,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}{const e=i("Grid",["minor"]);e.setAll({location:0,strokeOpacity:.07,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{const e=i("Graphics",["axis","fill"]);e.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{const e=i("AxisTick");e.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),(0,r.v)(e,"stroke",t,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(t,e)=>{const i=t.get("axisFill");i&&(l.isNumber(e)&&e%2!=0?i.setPrivate("visible",!1):i.setPrivate("visible",!0))}});const s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],u={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_hour"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month"),year:e.translate("_date_year")},m={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_day"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month")+" "+e.translate("_date_year"),year:e.translate("_date_year")},p={millisecond:e.translate("_date_millisecond_full"),second:e.translate("_date_second_full"),minute:e.translate("_date_minute_full"),hour:e.translate("_date_hour_full"),day:e.translate("_date_day_full"),week:e.translate("_date_week_full"),month:e.translate("_date_month_full"),year:e.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m),tooltipDateFormats:p,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=t.get("endValue"),o=i.intervalDuration(),n=i.getPrivate("baseInterval"),r=i.getPrivate("gridInterval",n);let l=i.getPrivate("min",0);if(l=h.round(new Date(l),r.timeUnit,r.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),null!=s&&null!=a){const t=Math.round(Math.round((s-l)/o))/2;t==Math.round(t)?e.setPrivate("visible",!0):e.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.get("index");let s=!1;l.isNumber(i)&&i%2!=0||(s=!0),e.setPrivate("visible",s)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=i.getPrivate("step");l.isNumber(s)&&l.isNumber(a)&&(d.round(s/a/2,5)==Math.round(s/a/2)?e.setPrivate("visible",!1):e.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(70),height:(0,a.aQ)(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,e/2),t.lineTo(s,e/2)}}});{const e=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,e),t.lineTo(0,e),t.lineTo(0,0)}}});{const e=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(50),height:(0,a.aQ)(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:(0,a.aQ)(80),height:(0,a.aQ)(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const e=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const e=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const e=i("Graphics",["rangegrip","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(2,.5),t.lineTo(2,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),(0,r.v)(e,"stroke",t,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:a.CI}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:a.CI}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:a.AQ}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:a.AQ})}}},3355:function(t,e,i){i.d(e,{L:function(){return c}});var s=i(8777),a=i(6245),o=i(1479),n=i(8943),r=i(5040),h=i(7652),l=i(751),d=i(5071),g=i(256);class c extends s.W{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(n.r.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(n.r.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(o.T.new(this._root,{themeTags:["selection","cursor"],layer:30})),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:a.AQ,height:a.AQ,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout((()=>{this.setPrivate("visible",!0)}),500)),this._disposers.push(this.lineX.events.on("positionchanged",(()=>{this._handleXLine()}))),this._disposers.push(this.lineY.events.on("positionchanged",(()=>{this._handleYLine()}))),this._disposers.push(this.lineX.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineX.events.on("blur",(()=>this._handleLineBlur()))),this._disposers.push(this.lineY.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineY.events.on("blur",(()=>this._handleLineBlur()))),h.supports("keyboardevents")&&this._disposers.push(h.addEventListener(document,"keydown",(t=>{this._handleLineMove(h.getEventKey(t),t.ctrlKey)})))}_setUpTouch(){const t=this.chart;t&&(t.plotContainer._display.cancelTouch="none"!=this.get("behavior"))}_handleXLine(){let t=this.lineX.x(),e=!0;(t<0||t>this.width())&&(e=!1),this.lineX.setPrivate("visible",e)}_handleYLine(){let t=this.lineY.y(),e=!0;(t<0||t>this.height())&&(e=!1),this.lineY.setPrivate("visible",e)}_handleLineMove(t,e){let i="";const s=this.chart;let a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(e&&(o=5),a){let e,s=a.get("renderer").get("inversed",!1);"ArrowRight"==t||"ArrowDown"==t?e=1:"ArrowLeft"==t||"ArrowUp"==t?e=-1:"Tab"==t&&(e=0),null!=e&&(s&&(e*=-1),this.set(i,a.nextPosition(e*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const t=this.get("xAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipX=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateXLine(e)}))))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const t=this.get("yAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipY=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateYLine(e)}))))}}}_handleSyncWith(){const t=this.chart;if(t){const e=this.get("syncWith"),i=[];e&&d.each(e,(t=>{const e=t.chart;e&&i.push(e)})),t._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const t=this.get("positionX"),e=this.get("positionY");null==t&&null==e?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).x,3);this._toX!=e&&(this.lineX.animate({key:"x",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toX=e)}_updateYLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).y,3);this._toY!=e&&(this.lineY.animate({key:"y",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toY=e)}_drawLines(){this.lineX.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,this.height())})),this.lineY.set("draw",(t=>{t.moveTo(0,0),t.lineTo(this.width(),0)}))}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(t){this.chart=t,this._handleSyncWith();const e=t.plotContainer;this.events.on("boundschanged",(()=>{this._disposers.push(this.setTimeout((()=>{this.updateCursor()}),50))})),h.supports("touchevents")&&(this._disposers.push(e.events.on("click",(t=>{h.isTouchEvent(t.originalEvent)&&this._handleMove(t)}))),this._setUpTouch()),this._disposers.push(e.events.on("pointerdown",(t=>{this._handleCursorDown(t)}))),this._disposers.push(e.events.on("globalpointerup",(t=>{this._handleCursorUp(t),t.native||this.isHidden()||this._handleMove(t)}))),this._disposers.push(e.events.on("globalpointermove",(t=>{(this.get("syncWith")||0!=g.keys(e._downPoints).length||t.native||!this.isHidden())&&(this._handleMove(t),Math.hypot(this._lastPoint2.x-t.point.x,this._lastPoint2.y-t.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=t.point))})));const i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(t){const e=this.chart;return!!e&&e.inPlot(t)}_handleCursorDown(t){if(2==t.originalEvent.button)return;const e=t.point;let i=this._display.toLocal(e);const s=this.chart;if(this.selection.set("draw",(()=>{})),s&&this._inPlot(i)){if(this._downPoint=i,"none"!=this.get("behavior")){this.selection.show();const e="selectstarted";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}let e=this._getPosition(i).x,s=this._getPosition(i).y;this.setPrivate("downPositionX",e),this.setPrivate("downPositionY",s)}}_handleCursorUp(t){if(this._downPoint){const e=this.get("behavior","none");if("none"!=e){"z"===e.charAt(0)&&this.selection.hide();const i=t.point;let s=this._display.toLocal(i);const a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let i=!1;if("zoomX"!==e&&"zoomXY"!==e&&"selectX"!==e&&"selectXY"!==e||Math.abs(s.x-a.x)>o&&(i=!0),"zoomY"!==e&&"zoomXY"!==e&&"selectY"!==e&&"selectXY"!==e||Math.abs(s.y-a.y)>o&&(i=!0),i){const e="selectended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}else{const e="selectcancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}}}}this._downPoint=void 0}_handleMove(t){if(this.getPrivate("visible")){const e=this.chart;if(e&&g.keys(e.plotContainer._downPoints).length>1)return void this.set("forceHidden",!0);this.set("forceHidden",!1);const i=t.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,t.originalEvent)}}_getPosition(t){return{x:t.x/this.width(),y:t.y/this.height()}}handleMove(t,e,i){t||(t=this._movePoint);const s=this.get("alwaysShow");if(!t)return void this.hide(0);this._movePoint=t;let a=this._display.toLocal(t),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=t,this.isHidden()&&(this.show(),"z"==this.get("behavior","").charAt(0)&&this.selection.set("draw",(()=>{})));let n=a.x,h=a.y,l=this._getPosition(a);this.setPrivate("point",a);let d=this.get("snapToSeries");this._downPoint&&(d=void 0);let g=this.get("positionX"),c=l.x;r.isNumber(g)&&(c=g);let u=this.get("positionY"),m=l.y;r.isNumber(u)&&(m=u),this.setPrivate("positionX",c),this.setPrivate("positionY",m);const p=this._getPoint(c,m);if(n=p.x,h=p.y,o.xAxes.each((t=>{t._handleCursorPosition(c,d),s&&t.handleCursorShow()})),o.yAxes.each((t=>{t._handleCursorPosition(m,d),s&&t.handleCursorShow()})),!e){o._handleCursorPosition();const e="cursormoved";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,point:t,originalEvent:i})}this._updateLines(n,h),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);const t="cursorhidden";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this._downPoint&&"none"!=this.get("behavior")&&this._updateSelection(a)}_getPoint(t,e){return{x:this.width()*t,y:this.height()*e}}_updateLines(t,e){this._tooltipX||this.lineX.set("x",t),this._tooltipY||this.lineY.set("y",e),this._drawLines()}_updateSelection(t){const e=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();t.x<0&&(t.x=0),t.x>s&&(t.x=s),t.y<0&&(t.y=0),t.y>a&&(t.y=a),e.set("draw",(e=>{const o=this._downPoint;o&&("zoomXY"===i||"selectXY"===i?(e.moveTo(o.x,o.y),e.lineTo(o.x,t.y),e.lineTo(t.x,t.y),e.lineTo(t.x,o.y),e.lineTo(o.x,o.y)):"zoomX"===i||"selectX"===i?(e.moveTo(o.x,0),e.lineTo(o.x,a),e.lineTo(t.x,a),e.lineTo(t.x,0),e.lineTo(o.x,0)):"zoomY"!==i&&"selectY"!==i||(e.moveTo(0,o.y),e.lineTo(s,o.y),e.lineTo(s,t.y),e.lineTo(0,t.y),e.lineTo(0,o.y)))}))}_onHide(){if(this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorHide()})),t.yAxes.each((t=>{t.handleCursorHide()})),t.series.each((t=>{t.handleCursorHide()})))}super._onHide()}_onShow(){if(!this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorShow()})),t.yAxes.each((t=>{t.handleCursorShow()})))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}c.className="XYCursor",c.classNames=s.W.classNames.concat([c.className])},6515:function(t,e,i){i.d(e,{R:function(){return g}});var s=i(9361),a=i(8777),o=i(6245),n=i(7144),r=i(7142),h=i(5071),l=i(5040),d=i(7652);class g extends s.w{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(a.W.new(this._root,{})),this.gridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.topGridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.bulletsContainer=this.children.push(a.W.new(this._root,{isMeasured:!1,width:o.AQ,height:o.AQ,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new n.aV,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(a.W.new(this._root,{themeTags:["axis","header"],position:"absolute",background:r.A.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)h.each(t.oldValues,(t=>{t.dispose()}));else if("push"===t.type)this._processAxisRange(t.newValue,["range"]);else if("setIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("insertIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("removeIndex"===t.type)this.disposeDataItem(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value,["range"])}})));const t=this.get("renderer");t&&(t.axis=this,t.processAxis()),this.children.push(t),this._createGhostLabel()}_createGhostLabel(){const t=this.get("renderer").makeLabel(new s.z(this,void 0,{}),[]);t.adapters.disable("text"),t.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),t.events.disable(),this.ghostLabel=t}_updateFinals(t,e){}zoom(t,e,i,s){if(this.get("zoomable",!0))if(this._updateFinals(t,e),this.get("start")!==t||this.get("end")!=e){let a=this._sAnimation,o=this._eAnimation;t>e&&([t,e]=[e,t]);let n=this.get("maxDeviation",.5)*Math.min(1,e-t);t<-n&&(t=-n),e>1+n&&(e=1+n);let r=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),h=r;l.isNumber(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),1===e&&0!==t&&(s=tthis.get("end",1)?"end":"start");let d=this.get("minZoomCount",0);const g=this.dataItems;g&&g.lengthe&&([t,e]=[e,t]),"start"===s?(c>0&&1/(e-t)r&&(e=t+1/r),e>1&&e-t<1/r&&(t=e-1/r)):(c>0&&1/(e-t)r&&(t=e-1/r),t<0&&e-t<1/r&&(e=t+1/r)),1/(e-t)>r&&(e=t+1/r),1/(e-t)>r&&(t=e-1/r),null!=c&&null!=d&&t==this.get("start")&&e==this.get("end")){const t=this.chart;t&&t._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==t||this.get("start")==t)&&(o&&o.playing&&o.to==e||this.get("end")==e))return;if(i>0){let s,a,o=this.get("interpolationEasing");if(this.get("start")!=t&&(s=this.animate({key:"start",to:t,duration:i,easing:o})),this.get("end")!=e&&(a=this.animate({key:"end",to:e,duration:i,easing:o})),this._sAnimation=s,this._eAnimation=a,s)return s;if(a)return a}else this.set("start",t),this.set("end",e),this.root.events.once("frameended",(()=>{this.markDirtyKey("start")}))}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(t,e){t.setRaw("isRange",!0),this._createAssets(t,e),this._rangesDirty=!0,this._prepareDataItem(t);const i=t.get("above"),s=this.topGridContainer,a=t.get("grid");i&&a&&s.children.moveValue(a);const o=t.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(t,e){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each((t=>{this._prepareDataItem(t)})),h.each(this._seriesAxisRanges,(t=>{this._prepareDataItem(t)}))}_prepareChildren(){super._prepareChildren();const t=this.ghostLabel;if(t&&(this.get("fixAxisSize")?t.set("visible",!0):t.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){const t=this.chart;t&&t._updateCursor();let e=this.get("start",0),i=this.get("end",1),s=this.get("maxDeviation",.5)*Math.min(1,i-e);if(e<-s){let t=e+s;e=-s,this.setRaw("start",e),this.isDirty("end")&&this.setRaw("end",i-t)}if(i>1+s){let t=i-1-s;i=1+s,this.setRaw("end",i),this.isDirty("start")&&this.setRaw("start",e-t)}}const e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){const t=this.get("tooltip");if(t){const i=e.get("themeTags");t.addTag("axis"),t.addTag(this.className.toLowerCase()),t._applyThemes(),i&&(t.set("themeTags",d.mergeTags(t.get("themeTags"),i)),t.label._applyThemes())}}}_updateTooltipBounds(){const t=this.get("tooltip");t&&this.get("renderer").updateTooltipBounds(t)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(t){this.chart=t,this.get("renderer").chart=t,t.gridContainer.children.push(this.gridContainer),t.topGridContainer.children.push(this.topGridContainer),t.axisHeadersContainer.children.push(this.axisHeader),this.on("start",(()=>{t._handleAxisSelection(this)})),this.on("end",(()=>{t._handleAxisSelection(this)})),t.plotContainer.onPrivate("width",(()=>{this.markDirtySize()})),t.plotContainer.onPrivate("height",(()=>{this.markDirtySize()})),t.processAxis(this)}hideDataItem(t){return this._toggleFHDataItem(t,!0),super.hideDataItem(t)}showDataItem(t){return this._toggleFHDataItem(t,!1),super.showDataItem(t)}_toggleFHDataItem(t,e){const i="forceHidden",s=t.get("label");s&&s.set(i,e);const a=t.get("grid");a&&a.set(i,e);const o=t.get("tick");o&&o.set(i,e);const n=t.get("axisFill");n&&n.set(i,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.set(i,e)}}_toggleDataItem(t,e){const i=t.get("label"),s="visible";i&&i.setPrivate(s,e);const a=t.get("grid");a&&a.setPrivate(s,e);const o=t.get("tick");o&&o.setPrivate(s,e);const n=t.get("axisFill");n&&n.setPrivate(s,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.setPrivate(s,e)}}_createAssets(t,e,i){var s,a,o;const n=this.get("renderer");let r="minor";const h=t.get("label");if(h){let a=h.get("themeTags"),o=!1;i?-1==(null==a?void 0:a.indexOf(r))&&(o=!0):-1!=(null==a?void 0:a.indexOf(r))&&(o=!0),o&&(null===(s=h.parent)||void 0===s||s.children.removeValue(h),n.makeLabel(t,e),h.dispose(),n.labels.removeValue(h))}else n.makeLabel(t,e);const l=t.get("grid");if(l){let s=l.get("themeTags"),o=!1;i?-1==(null==s?void 0:s.indexOf(r))&&(o=!0):-1!=(null==s?void 0:s.indexOf(r))&&(o=!0),o&&(null===(a=l.parent)||void 0===a||a.children.removeValue(l),n.makeGrid(t,e),l.dispose(),n.grid.removeValue(l))}else n.makeGrid(t,e);const d=t.get("tick");if(d){let s=!1,a=d.get("themeTags");i?-1==(null==a?void 0:a.indexOf(r))&&(s=!0):-1!=(null==a?void 0:a.indexOf(r))&&(s=!0),s&&(null===(o=d.parent)||void 0===o||o.children.removeValue(d),n.makeTick(t,e),d.dispose(),n.ticks.removeValue(d))}else n.makeTick(t,e);i||t.get("axisFill")?i&&!t.get("axisFill")&&this.get("minorAxisFillsEnabled")&&n.makeAxisFill(t,e):n.makeAxisFill(t,e),this._processBullet(t)}_processBullet(t){let e=t.get("bullet"),i=this.get("bullet");if(e||!i||t.get("isRange")||(e=i(this._root,this,t)),e){e.axis=this;const i=e.get("sprite");i&&(i._setDataItem(t),t.setRaw("bullet",e),i.parent||this.bulletsContainer.children.push(i))}}_afterChanged(){super._afterChanged();const t=this.chart;t&&(t._updateChartLayout(),t.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(t){super.disposeDataItem(t);const e=this.get("renderer"),i=t.get("label");i&&(e.labels.removeValue(i),i.dispose());const s=t.get("tick");s&&(e.ticks.removeValue(s),s.dispose());const a=t.get("grid");a&&(e.grid.removeValue(a),a.dispose());const o=t.get("axisFill");o&&(e.axisFills.removeValue(o),o.dispose());const n=t.get("bullet");n&&n.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const t=this.ghostLabel;if(t){if(!t.isHidden()){const e=t.localBounds(),i=Math.ceil(e.right-e.left);let s=t.get("text");h.each(this.dataItems,(t=>{const e=t.get("label");if(e&&!e.isHidden()){const t=e.localBounds();Math.ceil(t.right-t.left)>i&&(s=e.text._getText())}})),t.set("text",s)}let e=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(t,e+.5*(i-e))}}_handleCursorPosition(t,e){t=this.get("renderer").toAxisPosition(t),this._cursorPosition=t,this._snapToSeries=e,this.updateTooltip()}updateTooltip(){const t=this._snapToSeries;let e=this._cursorPosition;const i=this.get("tooltip"),s=this.get("renderer");l.isNumber(e)&&(h.each(this.series,(i=>{if(i.get("baseAxis")===this){const s=this.getSeriesItem(i,e,this.get("tooltipLocation"));t&&-1!=t.indexOf(i)?(i.updateLegendMarker(s),i.updateLegendValue(s),i._settings.tooltipDataItem=s):(i.showDataItemTooltip(s),i.setRaw("tooltipDataItem",s))}})),this.get("snapTooltip")&&(e=this.roundAxisPosition(e,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",e),i&&(s.updateTooltipBounds(i),l.isNaN(e)?i.hide(0):(this._updateTooltipText(i,e),s.positionTooltip(i,e),ethis.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}roundAxisPosition(t,e){return t}_handleSeriesRemoved(){}handleCursorShow(){let t=this.get("tooltip");t&&t.show()}handleCursorHide(){let t=this.get("tooltip");t&&t.hide()}processSeriesDataItem(t,e){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(t){const e=this.get("renderer");return e.toAxisPosition(t/e.axisLength())}toAxisPosition(t){return this.get("renderer").toAxisPosition(t)}toGlobalPosition(t){return this.get("renderer").toGlobalPosition(t)}fixPosition(t){return this.get("renderer").fixPosition(t)}shouldGap(t,e,i,s){return!1}createAxisRange(t){return this.axisRanges.push(t)}_groupSeriesData(t){}getCellWidthPosition(){return.05}}g.className="Axis",g.classNames=s.w.classNames.concat([g.className])},2586:function(t,e,i){i.d(e,{_:function(){return o}});var s=i(6331),a=i(256);class o extends s.JH{_beforeChanged(){super._beforeChanged();const t=this.get("sprite");if(this.isDirty("sprite")&&t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t)),this.isDirty("location")){const e=t.dataItem;this.axis&&t&&e&&this.axis._prepareDataItem(e)}}_dispose(){const t=this.axis;t&&a.each(t._bullets,((e,i)=>{i.uid==this.uid&&delete t._bullets[e]})),super._dispose()}}o.className="AxisBullet",o.classNames=s.JH.classNames.concat([o.className])},6293:function(t,e,i){i.d(e,{k:function(){return a}});var s=i(962);class a extends s._{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabel",a.classNames=s._.classNames.concat([a.className])},9084:function(t,e,i){i.d(e,{p:function(){return a}});var s=i(815);class a extends s.x{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabelRadial",a.classNames=s.x.classNames.concat([a.className])},6275:function(t,e,i){i.d(e,{Y:function(){return d}});var s=i(1479),a=i(5769),o=i(7144),n=i(4714),r=i(8943),h=i(6293),l=i(7652);class d extends s.T{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new o.o(a.YS.new({}),(()=>n.T._new(this._root,{themeTags:l.mergeTags(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template])))),this.grid=this.addDisposer(new o.o(a.YS.new({}),(()=>r.r._new(this._root,{themeTags:l.mergeTags(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template])))),this.axisFills=this.addDisposer(new o.o(a.YS.new({}),(()=>s.T._new(this._root,{themeTags:l.mergeTags(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template])))),this.labels=this.addDisposer(new o.o(a.YS.new({}),(()=>h.k._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template]))))}makeTick(t,e){const i=this.ticks.make();return i._setDataItem(t),t.setRaw("tick",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(t,e){const i=this.grid.make();return i._setDataItem(t),t.setRaw("grid",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(t,e){const i=this.axisFills.make();return i._setDataItem(t),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),t.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(t,e){const i=this.labels.make();return i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),t.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(t),t.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const t=this.thumb;t&&(this._disposers.push(t.events.on("pointerdown",(t=>{this._handleThumbDown(t)}))),this._disposers.push(t.events.on("globalpointerup",(t=>{this._handleThumbUp(t)}))),this._disposers.push(t.events.on("globalpointermove",(t=>{this._handleThumbMove(t)}))))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",(()=>{this.axis.markDirtySize()}))}_changed(){if(super._changed(),this.isDirty("pan")){const t=this.thumb;if(t){const e=this.axis.labelsContainer,i=this.get("pan");"zoom"==i?e.children.push(t):"none"==i&&e.children.removeValue(t)}}}_handleThumbDown(t){this._thumbDownPoint=this.toLocal(t.point);const e=this.axis;this._downStart=e.get("start"),this._downEnd=e.get("end")}_handleThumbUp(t){this._thumbDownPoint=void 0}_handleThumbMove(t){const e=this._thumbDownPoint;if(e){const i=this.toLocal(t.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,e)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(t,e){return 0}positionToCoordinate(t){return this._inversed?(this._end-t)*this._axisLength:(t-this._start)*this._axisLength}updateTooltipBounds(t){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t*=i-e,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,t/(i-e)}fixPosition(t){return this.get("inversed")?1-t:t}_updateLC(){}toggleVisibility(t,e,i,s){let a=this.axis;const o=a.get("start",0),n=a.get("end",1);eo+(n-o)*(s+1e-4)?t.setPrivate("visible",!1):t.setPrivate("visible",!0)}_positionTooltip(t,e){const i=this.chart;i&&(t.set("pointTo",this._display.toGlobal(e)),i.inPlot(e)||t.hide())}processAxis(){}}d.className="AxisRenderer",d.classNames=s.T.classNames.concat([d.className])},6284:function(t,e,i){i.d(e,{n:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{width:a.AQ,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const t=this.grid.template;t.set("height",a.AQ),t.set("width",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)}))}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("x",-1e3));const s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){const i=this.chart,o=e.children;if(this.get(a)?e.addTag(a):e.removeTag(a),i){if(this.get(s)){const t=i.topAxesContainer.children;-1==t.indexOf(e)&&t.insertIndex(0,e),e.addTag(s),o.moveValue(this)}else{const t=i.bottomAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(s),o.moveValue(this,0)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(t,e){return(e.x-t.x)/this.width()}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,(t=t/(i-e)*this._lc)+this._ls}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerWidth();this._lc=this.axisLength()/i,this._ls=(t.x()-e.get("paddingLeft",0))/i}}_updatePositions(){const t=this.axis,e=t.x()-r.relativeToValue(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0);t.gridContainer.set("x",e),t.topGridContainer.set("x",e),t.bulletsContainer.set("y",this.y());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginLeft",0),o=t.x()-a;const n=t.parent;n&&(o-=n.get("paddingLeft",0)),s.children.length>0?(a=t.axisHeader.width(),t.set("marginLeft",a+1)):s.set("width",a),s.setAll({x:o,y:-1,height:e.height()+2})}}processAxis(){super.processAxis();const t=this.axis;null==t.get("width")&&t.set("width",a.AQ);const e=this._root.verticalLayout;t.set("layout",e),t.labelsContainer.set("width",a.AQ),t.axisHeader.setAll({layout:e})}axisLength(){return this.axis.width()}positionToPoint(t){return{x:this.positionToCoordinate(t),y:0}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e));let r=t.get("length",0);const h=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("y",a.AQ),h||(r*=-1)):(t.set("y",0),h&&(r*=-1)),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,r)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateLabel(t,e,i,s){if(t){let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(e)||(e=0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?r?(t.set("position","absolute"),t.set("y",0)):(t.set("position","relative"),t.set("y",a.AQ)):r?(t.set("y",0),t.set("position","absolute")):(t.set("y",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=-1;if(this.get("opposite")&&(h=1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("y",t.y()+t.height()*h)}else s.set("y",0);this.axis._bullets[o]=t,s.set("x",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.height(),a=this.width();ia||i<0||(t.moveTo(e,0),t.lineTo(i,0),t.lineTo(i,s),t.lineTo(e,s),t.lineTo(e,0))}))}positionTooltip(t,e){this._positionTooltip(t,{x:this.positionToCoordinate(e),y:0})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,n=this.axisLength(),h=i,l="up";this.get("opposite")?e?(l="up",o=s.y,h=i):(l="down",o=s.y-i,h=i):e?(l="down",o=s.y-i,h=i):(l="up",o=s.y,h=i);const d={left:a,right:a+n,top:o,bottom:o+h},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}}h.className="AxisRendererX",h.classNames=s.Y.classNames.concat([h.className])},7909:function(t,e,i){i.d(e,{j:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{height:a.AQ,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const t=this.grid.template;t.set("width",a.AQ),t.set("height",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())}))}_getPan(t,e){return(t.y-e.y)/this.height()}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("y",-1e3));const s=this.thumb,a="opposite",o="inside",n=this.chart;if(this.isDirty(a)||this.isDirty(o)){const i=e.children;if(this.get(o)?e.addTag(o):e.removeTag(o),n){if(this.get(a)){const t=n.rightAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e,0),e.addTag(a),i.moveValue(this,0)}else{const t=n.leftAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(a),i.moveValue(this)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}const r=e.labelsContainer.width();n&&(this.get(a)?s.set("centerX",0):s.set("centerX",r)),s.setPrivate("width",r)}processAxis(){super.processAxis();const t=this.axis;null==t.get("height")&&t.set("height",a.AQ);const e=this._root.horizontalLayout;t.set("layout",e),t.labelsContainer.set("height",a.AQ),t.axisHeader.set("layout",e)}_updatePositions(){const t=this.axis,e=t.y()-r.relativeToValue(t.get("centerY",0),t.height());t.gridContainer.set("y",e),t.topGridContainer.set("y",e),t.bulletsContainer.set("x",this.x());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginTop",0);s.children.length>0?(a=t.axisHeader.height(),t.set("marginTop",a+1)):s.set("height",a),s.setAll({y:t.y()-a,x:-1,width:e.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(t){return{x:0,y:this.positionToCoordinate(t)}}updateLabel(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a);const o=this.get("opposite"),r=t.get("inside",this.get("inside",!1));o?(t.set("x",0),r?t.set("position","absolute"):t.set("position","relative")):r?(t.set("x",0),t.set("position","absolute")):(t.set("x",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e));let o=t.get("length",0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("x",0),r&&(o*=-1)):r||(o*=-1),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(o,0)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=1;if(this.get("opposite")&&(h=-1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("x",t.x()+t.width()*h)}else s.set("x",0);this.axis._bullets[o]=t,s.set("y",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.width(),a=this.height();ia||i<0||(t.moveTo(0,e),t.lineTo(s,e),t.lineTo(s,i),t.lineTo(0,i),t.lineTo(0,e))}))}positionToCoordinate(t){return this._inversed?(t-this._start)*this._axisLength:(this._end-t)*this._axisLength}positionTooltip(t,e){this._positionTooltip(t,{x:0,y:this.positionToCoordinate(e)})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,n=this.axisLength(),h=i,l="right";this.get("opposite")?e?(l="right",o=s.x-i,h=i):(l="left",o=s.x,h=i):e?(l="left",o=s.x,h=i):(l="right",o=s.x-i,h=i);const d={left:o,right:o+h,top:a,bottom:a+n},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerHeight();this._lc=this.axisLength()/i,this._ls=t.y()/i}}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?e+t:i-t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t-=e:t=i-t,(t=t/(i-e)*this._lc)+this._ls}fixPosition(t){return this.get("inversed")?t:1-t}}h.className="AxisRendererY",h.classNames=s.Y.classNames.concat([h.className])},4714:function(t,e,i){i.d(e,{T:function(){return a}});var s=i(2438);class a extends s.d{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisTick",a.classNames=s.d.classNames.concat([a.className])},7497:function(t,e,i){i.d(e,{$:function(){return d}});var s=i(6515),a=i(2132),o=i(7261),n=i(5071),r=i(5040),h=i(751),l=i(7652);class d extends s.R{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();const t=this.dataItems.length;t>0&&this.setPrivateRaw("maxZoomFactor",t),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),t)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",t),1))}_prepareChildren(){super._prepareChildren();const t=this.dataItems.length;let e=0;this._valuesDirty&&(this._itemMap={},n.each(this.dataItems,(t=>{t.setRaw("index",e),this._itemMap[t.get("category")]=t,e++})),this.setPrivateRaw("maxZoomFactor",t));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){const t=this.dataItems.length;if(t>1){let e=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0);const n=this._sAnimation,r=this._eAnimation;let h=this.get("start",0),l=!1;n&&!n.stopped&&(h=Number(n.to),l=!0);let d=this.get("end",1);if(r&&!r.stopped&&(d=Number(r.to),l=!0),l){const t=this._getIndices(h,d);a=t.startIndex,o=t.endIndex}for(let t=a;t=i));s++);if(e=0&&(e+=this.dataItems[t].get("finalCellSize",1),a=t,!(e>=i));t--);this.zoomToIndexes(a,o)}else if(s>=e){let t=s;for(let i=o-1;i>=a;i--)if(t-=this.dataItems[i].get("finalCellSize",1),t<=e){o=i+1;break}this.zoomToIndexes(a,o)}}}_handleRangeChange(){n.each(this.series,(t=>{let e=this.dataItems[this.startIndex()].get("category"),i=this.dataItems[this.endIndex()-1].get("category"),s=t.get("baseAxis"),a=t.get("xAxis"),r=t.get("yAxis");if(a instanceof d&&r instanceof d)t._markDirtyAxes();else if(s===this){let h,l,g=r;if(a===s?(t.get("categoryXField")&&(h="categoryX"),t.get("openCategoryXField")&&(l="openCategoryX")):r===s&&(t.get("categoryYField")&&(h="categoryY"),t.get("openCategoryYField")&&(l="openCategoryY"),g=a),g instanceof o.m&&(h||l)){let c,u;function m(t,e,i,s,a,o){let n,r=e.categoryToIndex(a);for(;!n&&r>=0&&r=0;e--){let o=t.dataItems[e];if(i&&o.get(i)===a){n=o;break}if(s&&o.get(s)===a){n=o;break}}else for(let e=0,o=t.dataItems.length;e{null!=y.get(t)&&(x=!0)})),n.each(t.__valueYShowFields,(t=>{null!=y.get(t)&&(x=!0)})),x)break}t.setPrivate("outOfSelection",!x)}t._markDirtyAxes()}}))}_prepareAxisItems(){var t;const e=this.get("renderer"),i=this.dataItems.length;let s=this.startIndex();s>0&&s--;let a=this.endIndex();a=s&&(t=s-1,e=1),r.isNumber(e)||(e=.5),!r.isNumber(t))return 0;let o=this.get("startLocation",0),h=this.get("endLocation",1);if(this.get("cellSizeField")){let s=i?"finalCellSize":"cellSize";const r=this.dataItems;let l=0;n.each(this.dataItems,(t=>{l+=t.get(s,1)})),l-=o*r[0].get(s,1),l-=(1-h)*r[r.length-1].get(s,1);let d=0;for(let e=0;e{const e=t.get("cellSize",1);s.push(e),i+=e}));let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=t*i+a,h=0;for(let t=0;t0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(e),a=t.dataItems[s],o=this.dataItems[s],n=o.get("category");if(a&&o&&a.get(i)===n)return a;for(let e=0,s=t.dataItems.length;e{r+=t.get(o,1)})),r-=this.get("startLocation",0)*h[0].get(o,1),r-=(1-this.get("endLocation",1))*h[h.length-1].get(o,1);let l=0;for(let e=0;eMath.round(t*r)){s=e;break}for(let t=s+1;t=Math.round(e*r)){a=t+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(t,e,i){let s=this.dataItems.length;this.get("cellSizeField")?(t=Math.min(Math.max(t,0),s),e=Math.max(Math.min(e,s),1),this.setPrivateRaw("startIndex",t),this.setPrivateRaw("endIndex",e),this.zoom(this.indexToPosition(t,0,!0),this.indexToPosition(e,0,!0),i)):this.zoom(t/s,e/s,i)}zoomToCategories(t,e,i){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(t){null==t&&(t=1),"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);const e=this.getPrivate("tooltipPosition",0),i=h.fitToRange(this.axisPositionToIndex(e)+t,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}}d.className="CategoryAxis",d.classNames=s.R.classNames.concat([d.className])},5638:function(t,e,i){i.d(e,{S:function(){return c}});var s=i(9361),a=i(7261),o=i(5040),n=i(751),r=i(3540),h=i(5071),l=i(256),d=i(7652),g=i(1926);class c extends a.m{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=d.mergeTags(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",(()=>{this._setBaseInterval(this.get("baseInterval"))}))}_setBaseInterval(t){this.setPrivateRaw("baseInterval",t),this._baseDuration=g.getIntervalDuration(t)}_fixZoomFactor(){const t=this.get("maxZoomFactor");null!=t&&t!=1/0?this.setPrivateRaw("maxZoomFactor",t):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){this._fixZoomFactor();const t=this.getPrivate("groupInterval");if(t?this._setBaseInterval(t):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let t=this.get("groupInterval");t&&(this.setRaw("groupIntervals",[t]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))h.each(this.series,(t=>{this._groupSeriesData(t)})),this._handleRangeChange();else{let t=this.get("baseInterval"),e=t.timeUnit+t.count;h.each(this.series,(t=>{t.setDataSet(e),t.resetGrouping()})),this._setBaseInterval(t),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(t){if(this.get("groupData")&&!t.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let e=[],i=this.baseMainDuration(),a=this.get("groupIntervals");h.each(a,(t=>{g.getIntervalDuration(t)>i&&e.push(t)})),t._dataSets={};const n=this.getPrivate("name")+this.get("renderer").getPrivate("letter");let r;const d=t.get("baseAxis");t.get("xAxis")===d?r=t._valueYFields:t.get("yAxis")===d&&(r=t._valueXFields);let c=t._mainDataItems,u=this.get("baseInterval"),m=u.timeUnit+u.count;t._dataSets[m]=c;const p=t.get("groupDataCallback");let _=t.get("groupDataWithOriginals",!1);p&&(_=!0),h.each(e,(e=>{let i,a=-1/0,d=e.timeUnit+e.count;t._dataSets[d]=[];let u={},m={},x={},v={};h.each(r,(e=>{u[e]=0,m[e]=0,x[e]=t.get(e+"Grouped"),v[e]=e+"Working"}));let y,f,b=g.getDuration(e.timeUnit);c[0]&&(y=c[0].get(n)),h.each(c,(c=>{let D,P=c.get(n),w=g.roun(P,e.timeUnit,e.count,this._root,y);a{let e=c.get(t);o.isNumber(e)?(i.setRaw(t,e),i.setRaw(v[t],e),m[t]=1,u[t]=e):(u[t]=0,m[t]=0)})),_&&i.set("originals",[c]),p&&f&&p(f,e),f=i):(h.each(r,(t=>{let e=x[t],s=c.get(t);if(null!=s){let a=i.get(t);switch(e){case"close":i.setRaw(t,s);break;case"sum":i.setRaw(t,a+s);break;case"open":break;case"low":sa&&i.setRaw(t,s);break;case"average":m[t]++,u[t]+=s;let e=u[t]/m[t];i.setRaw(t,e);break;case"extreme":Math.abs(s)>Math.abs(a)&&i.setRaw(t,s)}i.setRaw(v[t],i.get(t));let o=l.copy(c.dataContext);o[n]=w,i.dataContext=o}})),_&&i.get("originals").push(c)),a=w})),p&&f&&p(f,e)})),t._dataSetId&&t.setDataSet(t._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",(()=>{this.markDirtySize()}))}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(t){let e=this.get("baseInterval"),i=g.chooseInterval(0,t,this.get("groupCount",1/0),this.get("groupIntervals"));return g.getIntervalDuration(i){e.get("baseAxis")===this&&e.setDataSet(t)})),this.markDirtyExtremes(),this._root.events.once("frameended",(()=>{this._root.events.once("frameended",(()=>{const t="groupintervalchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}))}))}}h.each(this.series,(i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),a=h.getFirstSortedIndex(i.dataItems,(e=>r.qu(e.get(s),t))).index;a>0&&(a-=1),e+=this._baseDuration*(1-this.get("endLocation",1));let o=h.getSortedIndex(i.dataItems,(t=>r.qu(t.get(s),e))).index,n=o;n>1&&n--;const l=i.dataItems[a],d=i.dataItems[n];let g,c;l&&(c=l.get(s)),d&&(g=d.get(s));let u=!1;null!=g&&null!=c&&(ge)&&(u=!0),i.setPrivate("outOfSelection",u),i.setPrivate("startIndex",a);let m=i._adjustStartIndex(a);i.getPrivate("adjustedStartIndex")!==m&&(i.setPrivate("adjustedStartIndex",m),this.root.events.once("frameended",(()=>{i._markDirtyPrivateKey("adjustedStartIndex")}))),i.setPrivate("endIndex",o)}}))}}_adjustMinMax(t,e,i,s){return{min:t,max:e,step:(e-t)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(t,e){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=t,this._intervalMax[s]=e}_getM(t){return"day"==t||"month"==t||"year"==t?1.05:1.01}_getMinorInterval(t){var e;let i,s=t.count,a=t.timeUnit;return s>1&&(10==s||15==s?s=5:12==s?s=2:6==s?s=1:30==s?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),"week"==a&&(i="week"!=(null===(e=this.getPrivate("baseInterval"))||void 0===e?void 0:e.timeUnit)?{timeUnit:"day",count:1}:{timeUnit:"week",count:1}),"year"==a&&1==s&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<1264896e5&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){const e=this._root,i=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),n=this.get("renderer"),r=this.getPrivate("baseInterval");let l=i,d=0;const c=this.get("gridIntervals");let u=g.chooseInterval(0,a-i,n.gridCount(),c);g.getIntervalDuration(u){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_updateFinals(t,e){this.setPrivateRaw("selectionMinFinal",this.positionToValue(t)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(e))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(t,e){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return g.getIntervalDuration(this.get("baseInterval"))}processSeriesDataItem(t,e){const i=this.getPrivate("baseInterval");t.open||(t.open={}),t.close||(t.close={}),h.each(e,(e=>{let s=t.get(e);if(o.isNumber(s)){let a=t.open[e],o=t.close[e];if(s>=a&&s<=o);else{const n=i.timeUnit,r=i.count;a=g.roun(s,n,r,this._root),o=a+g.getDuration(n,r*this._getM(n)),o=g.roun(o,n,1,this._root),t.open[e]=a,t.close[e]=o}this._updateDates(a,t.component)}}))}_handleSizeDirty(){}getDataItemPositionX(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}roundAxisPosition(t,e){let i=this.positionToValue(t);i-=(e-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!o.isNaN(i)){const t=this._root.locale.firstDayOfWeek,a=s.timeUnit,o=this._root.utc,n=this._root.timezone,r=s.count;i=g.roun(i,a,r,this._root,this.getPrivate("min",0));let h=g.getDateIntervalDuration(s,new Date(i),t,o,n);return n&&(i=g.roun(i+.05*this._baseDuration,a,r,this._root,this.getPrivate("min",0)),h=g.getDateIntervalDuration(s,new Date(i+h*e),t,o,n)),this.valueToPosition(i+h*e)}return NaN}getTooltipText(t,e){if(null!=this.getPrivate("min")){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(t);if(o.isNumber(s)){let t=new Date(s),a=this.getPrivate("baseInterval"),o=g.getDateIntervalDuration(a,t,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return!1!==e&&(t=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*o)),this._root.dateFormatter.format(t,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(t,e,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);null==i&&(i=.5),o-=(i-.5)*this._baseDuration;const n=h.getSortedIndex(t.dataItems,(t=>{let e=0;return t.open&&(e=t.open[a]),r.qu(e,o)}));if(s||t.get("snapTooltip")){let e=t.dataItems[n.index-1],i=t.dataItems[n.index];if(e&&i&&e.open&&i.close){let t=e.open[a],s=i.close[a];if(Math.abs(o-t)>Math.abs(o-s))return i}if(e)return e;if(i)return i}else{const e=t.dataItems[n.index-1];if(e&&e.open&&e.close){let t=e.open[a],i=e.close[a];if(o>=t&&o<=i)return e}}}shouldGap(t,e,i,s){const a=t.get(s);return e.get(s)-a>this._baseDuration*i}zoomToDates(t,e,i){this.zoomToValues(t.getTime(),e.getTime(),i)}zoomToValues(t,e,i){const s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(null!=this.getPrivate("min")&&null!=this.getPrivate("max"))if(this.get("groupData")){const s=this.getGroupInterval(e-t),a=this.get("baseInterval");let o=this.getIntervalMin(a),n=this.getIntervalMax(a)-1;n=g.roun(n,s.timeUnit,s.count,this.root),n+=this._getM(s.timeUnit)*g.getIntervalDuration(s),n=g.roun(n,s.timeUnit,s.count,this.root);let r=g.roun(o,s.timeUnit,s.count,this.root),h=g.roun(n,s.timeUnit,s.count,this.root),l=(t-r)/(h-r),d=(e-r)/(h-r);this.zoom(l,d,i)}else this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}positionToDate(t){return new Date(this.positionToValue(t))}dateToPosition(t){return this.valueToPosition(t.getTime())}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return o.isNumber(t)&&o.isNumber(e)?this._intervalDuration/(t-e):.05}nextPosition(t){null==t&&(t=1);let e=this.get("tooltipLocation",.5)*this._baseDuration;"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0));const s=this.getPrivate("baseInterval");let a=this._nextTime(i,t,s),o=this.getPrivate("selectionMin",0),r=this.getPrivate("selectionMax",0),h=g.roun(o,s.timeUnit,s.count,this._root),l=g.roun(r,s.timeUnit,s.count,this._root);return a+=e,a=n.fitToRange(a,h+e,l-e),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(t,e,i){return g.roun(t+e*this._baseDuration,i.timeUnit,i.count,this._root)}}c.className="DateAxis",c.classNames=a.m.classNames.concat([c.className])},7109:function(t,e,i){i.d(e,{L:function(){return a}});var s=i(6691);class a extends s.Y{constructor(){super(...arguments),this._tickPoints=[]}}a.className="EditableAxisLabel",a.classNames=s.Y.classNames.concat([a.className])},8701:function(t,e,i){i.d(e,{J:function(){return d}});var s=i(5638),a=i(9361),o=i(5071),n=i(3540),r=i(1926),h=i(5040),l=i(751);class d extends s.S{constructor(){super(...arguments),this._frequency=1,this._m=0,this._dates=[]}_afterNew(){this.valueFields.push("date"),this.addTag("gapless"),super._afterNew()}_getDates(){return this._customDates?this._customDates:this._dates}_updateDates(t,e){if(!e.get("ignoreMinMax")){const e=this._getDates(),i=o.getSortedIndex(e,(e=>n.qu(e,t)));i.found||o.insertIndex(e,i.index,t)}}_updateAllDates(){if(!this._customDates){const t=this._dates;t.length=0,o.each(this.series,(t=>{let e="valueX";t.get("yAxis")==this&&(e="valueY"),o.each(t.dataItems,(i=>{let s=i.get(e);h.isNumber(s)&&i.open&&this._updateDates(i.open[e],t)}))}));const e=this.get("extraMax",0),i=this.get("extraMin",0);let s=t.length;const a=this.getPrivate("baseInterval"),n=a.count,l=a.timeUnit;if(e>0){const i=s*e;let a=t[s-1];if(h.isNumber(a))for(let e=s-1;e0){const e=s*i;let a=t[0];if(h.isNumber(a))for(let i=0;in.qu(e,t)));let h=r.index;if(r.found)return(h-i)/a;{h>0&&(h-=1);let s=e[h];const o=e[h+1];if(o){let e=o;Math.abs(e-t)n.qu(e,t)));let s=i.index;return i.found||s>0&&(s-=1),s}positionToValue(t){const e=this.get("startLocation",0),i=this.get("endLocation",1),s=this._getDates();let a=Math.round(s.length-e-(1-i)),o=t*a,n=Math.floor(o);return n<0&&(n=0),n>a-1&&(n=a-1),s[n]+(o-n+e)*this._baseDuration}_fixZoomFactor(){this.setPrivateRaw("maxZoomFactor",this._getDates().length-this.get("startLocation",0)-(1-this.get("endLocation",1)))}zoomToDates(t,e,i){const s=this._getDates(),a=s.length;let r=o.getSortedIndex(s,(e=>n.qu(e,t.getTime()))),h=s[Math.min(r.index,a-1)];r=o.getSortedIndex(s,(t=>n.qu(t,e.getTime())));let l=s[r.index];r.index>=a&&(l=s[a-1]+this._baseDuration),this.zoomToValues(h,l,i)}zoomToValues(t,e,i){const s=this.getPrivate("min",0),a=this.getPrivate("max",0);t=l.fitToRange(t,s,a),e=l.fitToRange(e,s,a),this.zoom(this.valueToPosition(t),this.valueToPosition(e),i)}_prepareAxisItems(){let t=this.getPrivate("selectionMin",0),e=this.getPrivate("selectionMax",0);if(h.isNumber(t)&&h.isNumber(e)){this._seriesValuesDirty&&(this._seriesValuesDirty=!1,this._updateAllDates());const i=this._root,s=i.utc,n=i.timezone,l=this._getDates(),d=this.get("renderer"),g=l.length,c=this._baseDuration;let u=this.valueToIndex(t);u>0&&u--;let m=this.valueToIndex(e);m{this._toggleDataItem(t,!1)})),o.each(this.minorDataItems,(t=>{this._toggleDataItem(t,!1)}));let x=e-t-((e-t)/c-(m-u))*c,v=r.chooseInterval(0,x,p,this.get("gridIntervals"));const y=this.getPrivate("baseInterval");let f=r.getIntervalDuration(v);f0){let t=0;this._m=0;let e=w-10*f;const g=r.getNextUnit(b);if(I){let t=l[C[0]];this._addMinorGrid(t-f,t,k,I)}let c=d.axisLength()/d.gridCount()*.5;o.each(C,(o=>{var u;let m;this.dataItems.length1||"week"==v.timeUnit){let e=r.roun(p,t,1,i)+r.getDuration(t,this._getM(t)),s=this.valueToIndex(e);if(e=l[s],e==p){let t=l[s+1];t?e=t:e+=k}m.setRaw("labelEndValue",e)}w=1}if(this._prepareDataItem(m,w),P&&M&&"X"==d.getPrivate("letter")){let t=M.get("label");if(t&&P.x()-t.x(){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_pickWorse(t,e,i){const s=i.timeUnit,a=t.get("value",0),o=e.get("value",0);return"hour"==s&&new Date(a).getDate()!=new Date(o).getDate()?t:e}_addMinorGrid(t,e,i,s){const n=this.get("minorDateFormats",this.get("dateFormats")),h=s.timeUnit;let l=t+r.getDuration(h,this._getM(h));l=r.roun(l,h,1,this._root);let d=e-.5*i,g=this._getIndexes(l,d,s,l);const c=this._getDates();o.each(g,(t=>{let e;this.minorDataItems.length=x-2*_&&o.move(a,e),u=0),t+=p,t=r.roun(t,n,1,g);else{if(i=t){e=s;break}o.move(a,e),t+=_,t=r.roun(t,n,h,g)}if(t==m&&(t+=_+p,t=r.roun(t,n,h,g)),t==m)break;m=t}return a}_hasDate(t){return o.getSortedIndex(this._getDates(),(e=>n.HO(e,t))).found}_nextTime(t,e,i){let s=l.fitToRange(this.valueToIndex(t)+e,0,this._dates.length-1);return this._dates[s]}}d.className="GaplessDateAxis",d.classNames=s.S.classNames.concat([d.className])},8943:function(t,e,i){i.d(e,{r:function(){return a}});var s=i(1479);class a extends s.T{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}a.className="Grid",a.classNames=s.T.classNames.concat([a.className])},7261:function(t,e,i){i.d(e,{m:function(){return d}});var s=i(9361),a=i(6515),o=i(7449),n=i(5040),r=i(5071),h=i(751),l=i(7652);class d extends a.R{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var t;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let t=this.get("syncWithAxis");t&&(this._syncDp=new o.FV([t.onPrivate("selectionMinFinal",(()=>{this._dirtySelectionExtremes=!0})),t.onPrivate("selectionMaxFinal",(()=>{this._dirtySelectionExtremes=!0}))]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,null===(t=this.ghostLabel)||void 0===t||t.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){const t=this.chart;let e=!1;if(t){const i=this.get("renderer").getPrivate("letter");"Y"==i?t.xAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)})):"X"==i&&t.yAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)}))}e&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,this.getPrivate("selectionMinFinal")==this.getPrivate("selectionMin")&&this.getPrivate("selectionMaxFinal")==this.getPrivate("selectionMax")||(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(t){const e=this.get("numberFormat"),i=this.getNumberFormatter();let s="";return s=e?i.format(t,e):i.format(t,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(n.isNumber(t)&&n.isNumber(e)){const e=this.get("logarithmic"),i=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+i;let l=a-i,d=1,g=t;if(e){if(l=this._minLogAdjusted,l2&&(l=Math.pow(10,Math.log(g)*Math.LOG10E-50))}const c=this.get("renderer"),u=c.get("minorLabelsEnabled"),m=c.get("minorGridEnabled",u);let p=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));const _=Math.round(i/p);let x=2;h.round(_/5,10)%1==0&&(x=5),h.round(_/10,10)%1==0&&(x=10);let v=i/x,y=0,f=0,b=-1/0;const D=this.get("renderer").gridCount();for(;l2){const t=Math.max(1,D),e=Math.max(1,Math.ceil(d/t)),i=Math.log(g)*Math.LOG10E+(y+1)*e-50;o=Math.pow(10,i)}else o+=i;else o+=i;if(m){let t=l+v;for(e&&(d>2&&(v=this._adjustMinMax(l,o,10).step),t=l+v);t{t.inited&&t._markDirtyAxes()})),this._updateGhost()}}_prepareDataItem(t,e){let i=this.get("renderer"),s=t.get("value"),a=t.get("endValue"),o=this.valueToPosition(s),r=o,h=this.valueToPosition(s+this.getPrivate("step"));n.isNumber(a)&&(r=this.valueToPosition(a),h=r),t.get("isRange")&&null==a&&(h=o);let l=r,d=t.get("labelEndValue");null!=d&&(l=this.valueToPosition(d)),i.updateLabel(t.get("label"),o,l,e);const g=t.get("grid");if(i.updateGrid(g,o,r),g&&(s==this.get("baseValue",0)?(g.addTag("base"),g._applyThemes()):g.hasTag("base")&&(g.removeTag("base"),g._applyThemes())),i.updateTick(t.get("tick"),o,l,e),i.updateFill(t.get("axisFill"),o,h),this._processBullet(t),i.updateBullet(t.get("bullet"),o,r),!t.get("isRange")){const e=this.get("fillRule");e&&e(t)}}_handleRangeChange(){let t=this.positionToValue(this.get("start",0)),e=this.positionToValue(this.get("end",1));const i=this.get("renderer").gridCount();let s=this._adjustMinMax(t,e,i,!0),a=l.decimalPlaces(s.step);this.setPrivateRaw("stepDecimalPlaces",a),t=h.round(t,a),e=h.round(e,a),s=this._adjustMinMax(t,e,i,!0);let o=s.step;t=s.min,e=s.max,this.getPrivate("selectionMin")===t&&this.getPrivate("selectionMax")===e&&this.getPrivate("step")===o||(this.setPrivateRaw("selectionMin",t),this.setPrivateRaw("selectionMax",e),this.setPrivateRaw("step",o))}positionToValue(t){const e=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(t*(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)+Math.log(e)*Math.LOG10E)/Math.LOG10E):t*(i-e)+e}valueToPosition(t){const e=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}valueToFinalPosition(t){const e=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}getX(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getY(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionX(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemX")?a*s+t.component.getStackedXValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemY")?a*s+t.component.getStackedYValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const t=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),e=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let i=this.get("baseValue",0);return ie&&(i=e),i}cellEndValue(t){return t}fixSmallStep(t){return 1+t===1?(t*=2,this.fixSmallStep(t)):t}_fixMin(t){return t}_fixMax(t){return t}_calculateTotals(){if(this.get("calculateTotals")){let t=this.series[0];if(t){let e=t.startIndex();if(t.dataItems.length>0){e>0&&e--;let i,s,a=t.endIndex();a{if(!i.get("excludeFromTotal")){let r=i.dataItems[t];if(r){let t=r.get(o)*i.get(s);n.isNaN(t)||(e+=t,a+=Math.abs(t))}}})),r.each(this.series,(r=>{if(!r.get("excludeFromTotal")){let h=r.dataItems[t];if(h){let t=h.get(o)*r.get(s);if(!n.isNaN(t)){h.set(i+"Total",a),h.set(i+"Sum",e);let s=t/a*100;0==a&&(s=0),h.set(i+"TotalPercent",s)}}}}))}}}}}_getSelectionMinMax(){const t=this.getPrivate("minFinal"),e=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max");let a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2));const l=this.get("renderer").gridCount(),d=this.get("strictMinMaxSelection");let g=this.get("strictMinMax");if(n.isNumber(t)&&n.isNumber(e)){let c=e,u=t;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,i;const s=t.getPrivate("outOfSelection");if(t.get("xAxis")===this){if(!s){let s=t.getPrivate("minX"),a=t.getPrivate("maxX");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinX",s),i=t.getPrivate("selectionMaxX",a)}}else if(t.get("yAxis")===this&&!s){let s=t.getPrivate("minY"),a=t.getPrivate("maxY");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinY",s),i=t.getPrivate("selectionMaxY",a)}t.isHidden()||t.isShowing()||(n.isNumber(e)&&(c=Math.min(c,e)),n.isNumber(i)&&(u=Math.max(u,i)))}})),this.axisRanges.each((t=>{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(c=Math.min(c,e),u=Math.max(u,e)),e=t.get("endValue"),null!=e&&(c=Math.min(c,e),u=Math.max(u,e))}})),c>u&&([c,u]=[u,c]),n.isNumber(i)?c=g?i:t:g&&n.isNumber(this._minReal)&&(c=this._minReal),n.isNumber(s)?u=g?s:e:g&&n.isNumber(this._maxReal)&&(u=this._maxReal),c===u){let e=c;if(c-=this._deltaMinMax,u+=this._deltaMinMax,ce&&(x.max=e),c=x.min,u=x.max),g&&(n.isNumber(i)&&(c=Math.max(c,i)),n.isNumber(s)&&(u=Math.min(u,s))),d&&(c=m-(p-m)*a,u=p+(p-m)*o),g){c=n.isNumber(i)?i:m,u=n.isNumber(s)?s:p,u-c<=1e-8&&(c-=this._deltaMinMax,u+=this._deltaMinMax);let t=u-c;c-=t*a,u+=t*o}this.get("logarithmic")&&(c<=0&&(c=m*(1-Math.min(a,.99))),ce&&(u=e));let y=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),f=h.round(this.valueToFinalPosition(c),y),b=h.round(this.valueToFinalPosition(u),y);this.setPrivateRaw("selectionMinFinal",c),this.setPrivateRaw("selectionMaxFinal",u),this.setPrivateRaw("selectionStepFinal",x.step),this.zoom(f,b)}}_getMinMax(){let t=this.get("min"),e=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2)));let l=1/0;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,a;if(t.get("xAxis")===this?(e=t.getPrivate("minX"),a=t.getPrivate("maxX")):t.get("yAxis")===this&&(e=t.getPrivate("minY"),a=t.getPrivate("maxY")),n.isNumber(e)&&n.isNumber(a)){i=Math.min(i,e),s=Math.max(s,a);let t=a-e;t<=0&&(t=Math.abs(a/100)),t{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(i=Math.min(i,e),s=Math.max(s,e)),e=t.get("endValue"),null!=e&&(i=Math.min(i,e),s=Math.max(s,e))}})),this.get("logarithmic")){let t=this.get("treatZeroAs");n.isNumber(t)&&i<=0&&(i=t),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(0===i&&0===s&&(s=.9,i=-.9),n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e),i===1/0||s===-1/0)return this.setPrivate("minFinal",void 0),void this.setPrivate("maxFinal",void 0);i>s&&([i,s]=[s,i]);const d=i,g=s;let c=this.adapters.fold("min",i),u=this.adapters.fold("max",s);this._minRealLog=i,n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!=0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&d>=0&&(i=0),s>0&&g<=0&&(s=0)),this._minReal=i,this._maxReal=s;let m=this.get("strictMinMax"),p=this.get("strictMinMaxSelection",!1);p&&(m=p);let _=m;n.isNumber(e)&&(_=!0);let x=this.get("renderer").gridCount(),v=this._adjustMinMax(i,s,x,_);if(i=v.min,s=v.max,v=this._adjustMinMax(i,s,x,!0),i=v.min,s=v.max,m){i=n.isNumber(t)?t:this._minReal,s=n.isNumber(e)?e:this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let r=s-i;i-=r*a,s+=r*o}c=this.adapters.fold("min",i),u=this.adapters.fold("max",s),n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),l==1/0&&(l=s-i);let y=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=h.round(i,y),s=h.round(s,y);const f=this.get("syncWithAxis");if(f&&(v=this._syncAxes(i,s,v.step,f.getPrivate("minFinal",f.getPrivate("min",0)),f.getPrivate("maxFinal",f.getPrivate("max",1)),f.getPrivate("step",1)),i=v.min,s=v.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/l*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=d*(1-Math.min(a,.99)))),n.isNumber(i)&&n.isNumber(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);const t=this.get("interpolationDuration",0),e=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:t,easing:e}),this.animatePrivate({key:"max",to:s,duration:t,easing:e})}}_fixZoomFactor(){}_getDelta(t){let e=Math.log(Math.abs(t))*Math.LOG10E,i=Math.pow(10,Math.floor(e));i/=10,this._deltaMinMax=i}_saveMinMax(t,e){}_adjustMinMax(t,e,i,s){i<=1&&(i=1),i=Math.round(i);let a=t,o=e,r=e-t;0===r&&(r=Math.abs(e));let l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l));d/=10;let g=d;s&&(g=0),s?(t=Math.floor(t/d)*d,e=Math.ceil(e/d)*d):(t=Math.ceil(t/d)*d-g,e=Math.floor(e/d)*d+g),t<0&&a>=0&&(t=0),e>0&&o<=0&&(e=0),l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l)),d/=100;let c=Math.ceil(r/i/d)*d,u=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),m=Math.ceil(c/u);m>5?m=10:m<=5&&m>2&&(m=5),c=Math.ceil(c/(u*m))*u*m;let p=this.get("maxPrecision");if(n.isNumber(p)){let t=h.ceil(c,p);pa&&(t-=c),c=this.fixSmallStep(c),{min:t,max:e,step:c}}getTooltipText(t,e){const i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,n=h.round(this.positionToValue(t),o);return i?s.format(n,i):s.format(n,void 0,o)}getSeriesItem(t,e){let i,s,a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);if(r.each(t.dataItems,((t,e)=>{const n=Math.abs(t.get(a)-o);(void 0===i||n500&&(s=!0),s)t=n,e=h,i=d;else{a/3==Math.round(a/3)?(n=t-o*a,t>=0&&n<0&&(n=0)):(h=e+o*a,h<=0&&h>0&&(h=0));let i=this._adjustMinMax(n,h,l,!0);n=i.min,h=i.max,d=i.step}}}return{min:t,max:e,step:i}}_checkSync(t,e,i,s){let a=(e-t)/i;for(let t=1;t{if(t instanceof l){const e=t.get("stacked");e&&0==h&&n++,!e&&t.get("clustered")&&n++}t===this&&(o=n-1),h++})),this.get("clustered")||(o=0,n=1),0===n&&(n=1,o=0);const d="cellStartLocation",g="cellEndLocation",c=this._xRenderer.get(d,0),u=this._xRenderer.get(g,1),m=this._yRenderer.get(d,0),p=this._yRenderer.get(g,1);if(this._aLocationX0=c+o/n*(u-c),this._aLocationX1=c+(o+1)/n*(u-c),this._aLocationY0=m+o/n*(p-m),this._aLocationY1=m+(o+1)/n*(p-m),e.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){const t=this.dataItems.length;let a=Math.max(0,this.startIndex()-2),o=Math.min(this.endIndex()+2,t-1);for(let t=0;t0&&a>0)for(let e=t-1;e>=0;e--){let t=this.dataItems[e];if(null!=t.get("valueX")&&null!=t.get("valueY")){n=t;break}}break}this._toggleColumn(e,!1)}this._beforeColumnsDraw();let r=0;i.isType("CategoryAxis")&&e.isType("CategoryAxis")?r=2:e===s?r=0:i===s&&(r=1);for(let t=a;t<=o;t++){let e=this.dataItems[t];this._updateGraphics(e,n,r),null!=e.get("valueX")&&null!=e.get("valueY")&&(n=e)}this._afterColumnsDraw();for(let e=o+1;e{const a=e.get(s,this.get(s));t.set(s,a),i.set(s,a)}))}}let s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.dispose()})),s=[],t.setRaw("rangeGraphics",s),this.axisRanges.each((e=>{const i=e.container,a=this._makeGraphics(e.columns,t);s&&s.push(a),a.setPrivate("list",e.columns),i.children.push(a)}))}}createAxisRange(t){return r.each(this.dataItems,(t=>{const e=t.get("graphics");e&&(e.dispose(),t.set("graphics",void 0))})),super.createAxisRange(t)}_updateGraphics(t,e,i){let s=t.get("graphics");const a=this._xField,n=this._yField,l=t.get(a),d=t.get(n),g=this.get("exactLocationX",!1);if(null!=l&&null!=d){const l=this._xOpenField,d=this._yOpenField,c=this.get("locationX",t.get("locationX",.5)),u=this.get("locationY",t.get("locationY",.5)),m=this.get("openLocationX",t.get("openLocationX",c)),p=this.get("openLocationY",t.get("openLocationY",u)),_=s.get("width"),x=s.get("height"),v=this.get("stacked"),y=this.get("xAxis"),f=this.get("yAxis"),b=y.get("start"),D=y.get("end"),P=f.get("start"),w=f.get("end");let T,A,I,M,k=this.get("vcy",1),C=this.get("vcx",1),S=!1,Y=!1;if(0==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C,g),A=y.getDataItemPositionX(t,a,i,C,g),I=f.getDataItemPositionY(t,n,u,k),this._yOpenField!==this._yField)M=f.getDataItemPositionY(t,d,p,k);else if(v){let e=t.get("stackToItemY");M=e?f.getDataItemPositionY(e,n,p,e.component.get("vcy")):f.basePosition()}else M=f.basePosition();t.setRaw("point",{x:T+(A-T)/2,y:I}),Y=!0}else if(1==i){let e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5;if(x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}if(I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),A=y.getDataItemPositionX(t,a,c,C,g),this._xOpenField!==this._xField)T=y.getDataItemPositionX(t,l,m,C,g);else if(v){let e=t.get("stackToItemX");T=e?y.getDataItemPositionX(e,a,m,e.component.get("vcx"),g):y.basePosition()}else T=y.basePosition();S=!0,t.setRaw("point",{x:A,y:I+(M-I)/2})}else if(2==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C),A=y.getDataItemPositionX(t,a,i,C),e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5,x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),t.setRaw("point",{x:T+(A-T)/2,y:I+(M-I)/2})}this._applyGraphicsStates(t,e),this._updateSeriesGraphics(t,s,T,A,I,M,S,Y),TD&&A>D||I=w&&M>w||h.isNaN(T)||h.isNaN(I)?this._toggleColumn(t,!1):this._toggleColumn(t,!0);let F=t.get("rangeGraphics");F&&r.each(F,(e=>{this._updateSeriesGraphics(t,e,T,A,I,M,S,Y)}))}else this._toggleColumn(t,!1)}_updateSeriesGraphics(t,e,i,s,a,o,n,r){const l=e.get("width"),d=e.get("height"),g=e.get("maxWidth"),c=e.get("maxHeight"),u=this.getPoint(i,a),m=this.getPoint(s,o),p=t.get("point");if(p){const t=this.getPoint(p.x,p.y);p.x=t.x+this._x,p.y=t.y+this._y}if(i=u.x,s=m.x,a=u.y,o=m.y,h.isNumber(l)){const t=(s-i-l)/2;i+=t,s-=t}if(h.isNumber(g)&&g{this._toggleColumn(t,!1)}))}_applyGraphicsStates(t,e){const i=t.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),n=i.states.lookup("riseFromPrevious");if(s||o||a||n){const i=this.get("xAxis"),r=this.get("yAxis"),l=this.get("baseAxis");let d,g,c;l===i&&r.isType("ValueAxis")?(d=t.get(this._yOpenField),g=t.get(this._yField),c=e.get(this._yField)):l===r&&i.isType("ValueAxis")&&(d=t.get(this._xOpenField),g=t.get(this._xField),c=e.get(this._xField)),h.isNumber(d)&&h.isNumber(g)&&(g{const e=t.getPrivate("list");e&&e.removeValue(t),t.dispose()}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.hide(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.hide(e))})),yield Promise.all(s)}))}_toggleColumn(t,e){const i=t.get("graphics");i&&i.setPrivate("visible",e);const s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.setPrivate("visible",e)}));const a=t.bullets;a&&r.each(a,(t=>{t.setPrivate("hidden",!e)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.show(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.show(e))})),yield Promise.all(s)}))}updateLegendMarker(t){let e=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!t){const e=this.dataItems[this.endIndex()-1];e&&(t=e)}if(e){let i=this.columns.template;if(t){let e=t.get("graphics");e&&(i=e)}const s=e.get("markerRectangle");if(s&&!e.get("itemContainer").get("disabled")){const t=s.states.lookup("default");r.each(n.u,(e=>{const a=i.get(e,this.get(e));s.set(e,a),t.set(e,a)}))}}}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget"))return super._getTooltipTarget(t);return t.get("graphics")||this}}l.className="BaseColumnSeries",l.classNames=a.o.classNames.concat([l.className])},2976:function(t,e,i){i.d(e,{j:function(){return a}});var s=i(3497);class a extends s.c{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();const t=this._display;t.moveTo(this.get("lowX0",0),this.get("lowY0",0)),t.lineTo(this.get("lowX1",0),this.get("lowY1",0)),t.moveTo(this.get("highX0",0),this.get("highY0",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0))}}a.className="Candlestick",a.classNames=s.c.classNames.concat([a.className])},2312:function(t,e,i){i.d(e,{$:function(){return l}});var s=i(62),a=i(2976),o=i(5769),n=i(7144),r=i(7652),h=i(5071);class l extends s.d{constructor(){super(...arguments),this.columns=this.addDisposer(new n.o(o.YS.new({themeTags:["autocolor"]}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_updateGraphics(t,e,i){super._updateGraphics(t,e,i);const s=this.getRaw("xAxis"),a=this.getRaw("yAxis");let o,n,r,h,l,d,g,c,u,m=this.get("vcy",1),p=this.get("vcx",1),_=this.get("locationX",t.get("locationX",.5)),x=this.get("locationY",t.get("locationY",.5)),v=this.get("openLocationX",t.get("openLocationX",_)),y=this.get("openLocationY",t.get("openLocationY",x));if(0==i){let e=a.getDataItemPositionY(t,this._yOpenField,1,m),i=a.getDataItemPositionY(t,this._yField,1,m);h=a.getDataItemPositionY(t,this._yLowField,1,m),c=a.getDataItemPositionY(t,this._yHighField,1,m),g=Math.max(e,i),r=Math.min(e,i);let x=this._aLocationX0+v-.5,y=this._aLocationX1+_-.5;o=s.getDataItemPositionX(t,this._xField,x+(y-x)/2,p),n=o,l=o,d=o,u="vertical"}else{let e=s.getDataItemPositionX(t,this._xOpenField,1,p),i=s.getDataItemPositionX(t,this._xField,1,p);n=s.getDataItemPositionX(t,this._xLowField,1,p),d=s.getDataItemPositionX(t,this._xHighField,1,p),l=Math.max(e,i),o=Math.min(e,i);let _=this._aLocationY0+y-.5,v=this._aLocationY1+x-.5;r=a.getDataItemPositionY(t,this._yField,_+(v-_)/2,m),h=r,g=r,c=r,u="horizontal"}this._updateCandleGraphics(t,o,n,r,h,l,d,g,c,u)}_updateCandleGraphics(t,e,i,s,a,o,n,r,l,d){let g=t.get("graphics");if(g){let c=this.getPoint(e,s),u=this.getPoint(i,a),m=this.getPoint(o,r),p=this.getPoint(n,l);if(this.get("turboMode")){const t=this.allColumnsData[this.allColumnsData.length-1];t.lowX0=c.x,t.lowY0=c.y,t.lowX1=u.x,t.lowY1=u.y,t.highX0=m.x,t.highY0=m.y,t.highX1=p.x,t.highY1=p.y}else{let e=g.x(),i=g.y();g.set("lowX0",c.x-e),g.set("lowY0",c.y-i),g.set("lowX1",u.x-e),g.set("lowY1",u.y-i),g.set("highX0",m.x-e),g.set("highY0",m.y-i),g.set("highX1",p.x-e),g.set("highY1",p.y-i),g.set("orientation",d);let s=t.get("rangeGraphics");s&&h.each(s,(t=>{t.set("lowX0",c.x-e),t.set("lowY0",c.y-i),t.set("lowX1",u.x-e),t.set("lowY1",u.y-i),t.set("highX0",m.x-e),t.set("highY0",m.y-i),t.set("highX1",p.x-e),t.set("highY1",p.y-i),t.set("orientation",d)}))}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),h.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity,g=e.lowX0,c=e.lowY0,u=e.lowX1,m=e.lowY1,p=e.highX0,_=e.highY0,x=e.highX1,v=e.highY1;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.moveTo(g,c),t.lineTo(u,m),t.moveTo(p,_),t.lineTo(x,v),t.endStroke(),t.endFill()}))}))}_processAxisRange(t){super._processAxisRange(t),t.columns=new n.o(o.YS.new({}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(t.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,t.columns.template])))}}l.className="CandlestickSeries",l.classNames=s.d.classNames.concat([l.className])},62:function(t,e,i){i.d(e,{d:function(){return d}});var s=i(757),a=i(5769),o=i(7144),n=i(3497),r=i(1479),h=i(7652),l=i(5071);class d extends s.d{constructor(){super(...arguments),this.allColumns=this.children.push(r.T.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(t.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,t.columns.template])))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),l.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.endStroke(),t.endFill()}))}))}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(t,e,i,s,a,o,n,r){if(this.get("turboMode")){e.virtualParent=this.chart,e.parent&&(this.mainContainer.children.removeValue(e),e._parent=void 0);const n=e.get("stroke"),r=e.get("fillOpacity",1),h=e.get("strokeOpacity",1),l=e.get("strokeWidth",1),d=e.get("fill"),g=this.getPoint(i,a),c=this.getPoint(s,o),u=t.get("point");if(u){const t=this.getPoint(u.x,u.y);u.x=t.x+this._x,u.y=t.y+this._y}i=g.x,s=c.x,a=g.y,o=c.y,t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:n,fill:d,strokeWidth:l,strokeOpacity:h,fillOpacity:r})}else e.parent||this.mainContainer.children.push(e),super._updateSeriesGraphics(t,e,i,s,a,o,n,r)}}d.className="ColumnSeries",d.classNames=s.d.classNames.concat([d.className])},2338:function(t,e,i){i.d(e,{e:function(){return p}});var s=i(4604),a=i(1479),o=i(774),n=i(3794),r=i(5769),h=i(7144),l=i(1112),d=i(9361),g=i(7142),c=i(5040),u=i(5071),m=i(7652);class p extends s.o{constructor(){super(...arguments),this._strokeGenerator=(0,o.Z)(),this._fillGenerator=(0,n.Z)(),this.strokes=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template])))),this.fills=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template])))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0((function(t){return t[3]})),this._fillGenerator.x0((function(t){return t[2]})),this._fillGenerator.y1((function(t){return t[1]})),this._fillGenerator.x1((function(t){return t[0]})),super._afterNew()}makeStroke(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}makeFill(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let t=this.get("xAxis"),e=this.get("yAxis");if(this.isDirty("stroke")){const t=this.get("stroke");this.strokes.template.set("stroke",t);const e=this._legendStroke;e&&e.states.lookup("default").set("stroke",t)}if(this.isDirty("fill")){const t=this.get("fill");this.fills.template.set("fill",t);const e=this._legendFill;e&&e.states.lookup("default").set("fill",t)}if(this.isDirty("fillPattern")){const t=this.get("fillPattern");this.fills.template.set("fillPattern",t);const e=this._legendFill;e&&e.states.lookup("default").set("fillPattern",t)}if(this.isDirty("curveFactory")){const t=this.get("curveFactory");t&&(this._strokeGenerator.curve(t),this._fillGenerator.curve(t))}if(t.inited&&e.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){const t=this.dataItems;this.fills.each((t=>{t.setPrivate("visible",!1)})),this.strokes.each((t=>{t.setPrivate("visible",!1)})),this.axisRanges.each((t=>{let e=t.fills;e&&e.each((t=>{t.setPrivate("visible",!1)}));let i=t.strokes;i&&i.each((t=>{t.setPrivate("visible",!1)}))}));let e=this.startIndex(),i=this.strokes.template.get("templateField"),s=this.fills.template.get("templateField"),a=!0,o=!0;i&&(a=!1),s&&(o=!1);for(let n=e-1;n>=0;n--){let r=t[n],h=!0,l=r.dataContext;if(i&&l[i]&&(a=!0),s&&l[s]&&(o=!0),u.each(this._valueFields,(t=>{c.isNumber(r.get(t))||(h=!1)})),h&&a&&o){e=n;break}}let n=t.length,r=this.endIndex();if(r{c.isNumber(i.get(t))||(s=!1)})),s){r=e+1;break}}}if(e>0&&e--,this._endIndex=r,this._clearGraphics(),this._sindex=0,this._dindex=e,1==n)this._startSegment(0);else for(;this._dindex{t.fills.clear(),t.strokes.clear()}))}_startSegment(t){const e=this.dataItems;let i=this._endIndex,s=i;const a=this.get("autoGapCount"),o=this.get("connect"),n=this.makeFill(this.fills),h=this._fillTemplate,l=this.fills.template;h&&h!=l&&(n.template=h),n.setPrivate("visible",!0);const d=this.makeStroke(this.strokes),g=this._strokeTemplate;g&&g!=this.strokes.template&&(d.template=g),d.setPrivate("visible",!0);let c=this.get("xAxis"),u=this.get("yAxis"),m=this.get("baseAxis"),p=this.get("vcx",1),_=this.get("vcy",1),x=this._xField,v=this._yField,y=this._xOpenField,f=this._yOpenField;const b=this.get("openValueXField"),D=this.get("openValueYField");b||(y=this._xField),D||(f=this._yField);const P=this.get("stacked"),w=c.basePosition(),T=u.basePosition();let A;A=m===u?this._yField:this._xField;const I=[];let M=[];I.push(M);const k=this.strokes.template.get("templateField"),C=this.fills.template.get("templateField");let S=this.get("locationX",.5),Y=this.get("locationY",.5),F=this.get("openLocationX",S),X=this.get("openLocationY",Y);const L=this.get("minDistance",0);let N,R=this.fills.template.get("visible");this.axisRanges.length>0&&(R=!0);let V=!1;(P||b||D)&&(V=!0);const G={points:M,segments:I,stacked:P,getOpen:V,basePosX:w,basePosY:T,fillVisible:R,xField:x,yField:v,xOpenField:y,yOpenField:f,vcx:p,vcy:_,baseAxis:m,xAxis:c,yAxis:u,locationX:S,locationY:Y,openLocationX:F,openLocationY:X,minDistance:L};let O=this._strokeTemplate,E=this._fillTemplate;for(N=t;Nt){s=N;break}O=e,d.template=e}}if(C){let e=i.dataContext[C];if(e){if(e instanceof r.YS||(e=r.YS.new(e)),this._fillTemplate=e,N>t){s=N;break}E=e,n.template=e}}if(!o){let t=e[N+1];t&&m.shouldGap(i,t,a,A)&&(M=[],I.push(M),G.points=M)}}n.setRaw("userData",[t,N]),d.setRaw("userData",[t,N]),N===i&&this._endLine(M,I[0][0]),d&&this._drawStroke(d,I),n&&this._drawFill(n,I),this.axisRanges.each((e=>{const i=e.container,s=e.fills,a=this.makeFill(s);i&&i.children.push(a),a.setPrivate("visible",!0),this._drawFill(a,I);const o=e.strokes,n=this.makeStroke(o);i&&i.children.push(n),O&&O!=this.strokes.template&&(n.template=O),E&&E!=this.fills.template&&(a.template=E),n.setPrivate("visible",!0),this._drawStroke(n,I),a.setRaw("userData",[t,N]),n.setRaw("userData",[t,N])}))}_getPoints(t,e){let i=e.points,s=t.get("locationX",e.locationX),a=t.get("locationY",e.locationY);const o=this.get("exactLocationX",!1),n=this.get("exactLocationY",!1);let r=e.xAxis.getDataItemPositionX(t,e.xField,s,e.vcx,o),h=e.yAxis.getDataItemPositionY(t,e.yField,a,e.vcy,n);if(this._shouldInclude(r)){const s=this.getPoint(r,h),a=[s.x,s.y];if(s.x+=this._x,s.y+=this._y,t.set("point",s),e.fillVisible){let i=r,s=h;if(e.baseAxis===e.xAxis?s=e.basePosY:e.baseAxis===e.yAxis&&(i=e.basePosX),e.getOpen){let a=t.get(e.xOpenField),r=t.get(e.yOpenField);if(null!=a&&null!=r){let a=t.get("openLocationX",e.openLocationX),r=t.get("openLocationY",e.openLocationY);if(e.stacked){let h=t.get("stackToItemX"),l=t.get("stackToItemY");h?(i=e.xAxis.getDataItemPositionX(h,e.xField,a,h.component.get("vcx"),o),c.isNaN(i)&&(i=e.basePosX)):i=e.yAxis===e.baseAxis?e.basePosX:e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),l?(s=e.yAxis.getDataItemPositionY(l,e.yField,r,l.component.get("vcy"),n),c.isNaN(s)&&(s=e.basePosY)):s=e.xAxis===e.baseAxis?e.basePosY:e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),s=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}}let l=this.getPoint(i,s);a[2]=l.x,a[3]=l.y}if(e.minDistance>0){const t=a[0],s=a[1],o=a[2],n=a[3],r=this._previousPoint,h=r[0],l=r[1],d=r[2],g=r[3];(Math.hypot(t-h,s-l)>e.minDistance||o&&n&&Math.hypot(o-d,n-g)>e.minDistance)&&(i.push(a),this._previousPoint=a)}else i.push(a)}}_endLine(t,e){}_drawStroke(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._strokeGenerator.context(t),this._strokeGenerator(e)}))}))}_drawFill(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._fillGenerator.context(t),this._fillGenerator(e)}))}))}_processAxisRange(t){super._processAxisRange(t),t.fills=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,t.fills.template]))),t.strokes=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,t.strokes.template])))}createLegendMarker(t){const e=this.get("legendDataItem");if(e){const t=e.get("marker"),i=e.get("markerRectangle");i&&i.setPrivate("visible",!1),t.set("background",g.A.new(t._root,{fillOpacity:0,fill:(0,l.$_)(0)}));const s=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=s;const o=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;const n=this._root.interfaceColors.get("disabled");if(s.states.create("disabled",{fill:n,stroke:n}),o.states.create("disabled",{fill:n,stroke:n}),this.bullets.length>0){const e=this.bullets.getIndex(0);if(e){const i=e(t._root,this,new d.z(this,{legend:!0},{}));if(i){const e=i.get("sprite");e instanceof a.T&&e.states.create("disabled",{fill:n,stroke:n}),e&&(e.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),t.children.push(e),e.setAll({x:t.width()/2,y:t.height()/2}),t.events.on("boundschanged",(()=>{e.setAll({x:t.width()/2,y:t.height()/2})})))}}}}}}p.className="LineSeries",p.classNames=s.o.classNames.concat([p.className])},4604:function(t,e,i){i.d(e,{o:function(){return u}});var s=i(7582),a=i(9361),o=i(3399),n=i(7144),r=i(8777),h=i(1479),l=i(5040),d=i(256),g=i(5071),c=i(7652);class u extends o.F{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(r.W.new(this._root,{})),this.axisRanges=new n.aV,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new a.z(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");const t=this.get("xAxis");t&&(this._xRenderer=t.get("renderer"));const e=this.get("yAxis");e&&(this._yRenderer=e.get("renderer")),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxisRange(t)}));else if("push"===t.type)this._processAxisRange(t.newValue);else if("setIndex"===t.type)this._processAxisRange(t.newValue);else if("insertIndex"===t.type)this._processAxisRange(t.newValue);else if("removeIndex"===t.type)this._removeAxisRange(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value)}}))),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this.onPrivate("endIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this._makeFieldNames()}_processAxisRange(t){const e=r.W.new(this._root,{});t.container=e,this.children.push(e),t.series=this;const i=t.axisDataItem;i.setRaw("isRange",!0);const s=i.component;if(s){s._processAxisRange(i,["range","series"]);const t=i.get("bullet");if(t){const e=t.get("sprite");e&&e.setPrivate("visible",!1)}const a=i.get("axisFill");a&&e.set("mask",a),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),d.each(this._dataSets,((t,e)=>{g.each(e,(t=>{t.dispose()})),e.length=0}))}_removeAxisRange(t){const e=t.axisDataItem,i=e.component;e.dispose(),g.remove(i._seriesAxisRanges,e);const s=t.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&g.each(this.valueXFields,(t=>{if(this.get(t+"Field")){this._valueXFields.push(t);let e=this.get(t+"Show");this.__valueXShowFields.push(e),-1!=e.indexOf("Working")?this._valueXShowFields.push(e.split("Working")[0]):this._valueXShowFields.push(e)}})),this.valueYFields&&g.each(this.valueYFields,(t=>{if(this.get(t+"Field")){this._valueYFields.push(t);let e=this.get(t+"Show");this.__valueYShowFields.push(e),-1!=e.indexOf("Working")?this._valueYShowFields.push(e.split("Working")[0]):this._valueYShowFields.push(e)}}))}_dispose(){super._dispose(),this._bullets={};const t=this.chart;t&&t.series.removeValue(this),g.removeFirst(this.get("xAxis").series,this),g.removeFirst(this.get("yAxis").series,this)}_min(t,e){let i=(a=e,null==(s=this.getPrivate(t))?a:null==a?s:aa?s:a);var s,a;this.setPrivate(t,i)}_shouldMakeBullet(t){const e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!e.inited||!i.inited)return!1;const a=this.get("minBulletDistance",0);if(a>0){let t=this.startIndex(),o=this.endIndex()-t;if(e==s){if(this._xRenderer.axisLength()/o
{g.each(this._valueXShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedXValue(i,t)),this._min("minX",e),this._max("maxX",e))})),g.each(this._valueYShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedYValue(i,t)),this._min("minY",e),this._max("maxY",e))})),t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)})),t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&t.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&e.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(t._groupSeriesData(this),e._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let s=this.startIndex(),a=this.endIndex(),o=this.get("minBulletDistance",0);if(o>0&&i&&(i.get("renderer").axisLength()/(a-s)>o?this._showBullets=!0:this._showBullets=!1),(this._psi!=s||this._pei!=a||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const o=this.get("vcx",1),n=this.get("vcy",1),r=this.get("stacked",!1),h=this.getPrivate("outOfSelection");if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),h)e.markDirtySelectionExtremes();else for(let t=s;t{i.open=void 0,i.close=void 0,t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)}))}_makeRangeMask(){if(this.axisRanges.length>0){let t=this._mainContainerMask;null==t&&(t=this.children.push(h.T.new(this._root,{})),this._mainContainerMask=t,t.set("draw",((e,i)=>{const s=this.parent;if(s){const t=this._root.container.width(),a=this._root.container.height();e.moveTo(-t,-a),e.lineTo(-t,2*a),e.lineTo(2*t,2*a),e.lineTo(2*t,-a),e.lineTo(-t,-a),this.axisRanges.each((t=>{const a=t.axisDataItem.get("axisFill");if(s&&a){let t=a.get("draw");t&&t(e,i)}}))}this.mainContainer._display.mask=t._display}))),t.markDirty(),t._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const t=this.chart;if(t){const e=t.series.indexOf(this);if(this._couldStackTo=[],e>0){let i;for(let s=e-1;s>=0&&(i=t.series.getIndex(s),i.get("xAxis")!==this.get("xAxis")||i.get("yAxis")!==this.get("yAxis")||i.className!==this.className||(this._couldStackTo.push(i),i.get("stacked")));s--);}this._stackDataItems()}}_unstack(){d.each(this._reallyStackedTo,((t,e)=>{delete e._stackedSeries[this.uid]})),this._reallyStackedTo={},g.each(this.dataItems,(t=>{t.setRaw("stackToItemY",void 0),t.setRaw("stackToItemX",void 0)}))}_handleRemoved(){const t=this.get("xAxis");t&&t._handleSeriesRemoved();const e=this.get("yAxis");e&&e._handleSeriesRemoved()}_stackDataItems(){const t=this.get("baseAxis"),e=this.get("xAxis"),i=this.get("yAxis");let s,a;t===e?(s="valueY",a="stackToItemY"):t===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,n=0;const r=this.get("stackToNegative");this._reallyStackedTo={},g.each(this.dataItems,(t=>{for(let e=0;e=0&&n>=0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}if(d<0&&n<0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}else if(l.isNumber(d)&&l.isNumber(n)){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}n++}))}processXSelectionDataItem(t,e,i){g.each(this.__valueXShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedXValueWorking(t,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*e))}))}processYSelectionDataItem(t,e,i){g.each(this.__valueYShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedYValueWorking(t,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*e))}))}getStackedYValueWorking(t,e){const i=t.get("stackToItemY");if(i){const t=i.component;return i.get(e,0)*t.get("vcy",1)+this.getStackedYValueWorking(i,e)}return 0}getStackedXValueWorking(t,e){const i=t.get("stackToItemX");if(i){const t=i.component;return i.get(e,0)*t.get("vcx",1)+this.getStackedXValueWorking(i,e)}return 0}getStackedYValue(t,e){const i=t.get("stackToItemY");return i?i.get(e,0)+this.getStackedYValue(i,e):0}getStackedXValue(t,e){const i=t.get("stackToItemX");return i?i.get(e,0)+this.getStackedXValue(i,e):0}createLegendMarker(t){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(t){let e=t.get("sprite");if(e){let i=e.dataItem,s=t.get("locationX",i.get("locationX",.5)),a=t.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),n=this.get("yAxis"),r=this.get("exactLocationX",!1),h=this.get("exactLocationY",!1),l=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),r),d=n.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),h),g=this.getPoint(l,d),c=i.get("left",g.x),u=i.get("right",g.x),m=i.get("top",g.y),p=i.get("bottom",g.y),_=0,x=0,v=u-c,y=p-m;if(this._shouldShowBullet(l,d)){e.setPrivate("visible",!t.getPrivate("hidden"));let o=t.get("field");const n=this.get("baseAxis"),u=this.get("xAxis"),m=this.get("yAxis");if(null!=o){let t;n==u?("value"==o?t=this._yField:"open"==o?t=this._yOpenField:"high"==o?t=this._yHighField:"low"==o&&(t=this._yLowField),t&&(d=m.getDataItemPositionY(i,t,0,this.get("vcy",1),h),g=this._yRenderer.positionToPoint(d),x=g.y,_=c+v*s)):("value"==o?t=this._xField:"open"==o?t=this._xOpenField:"high"==o?t=this._xHighField:"low"==o&&(t=this._xLowField),t&&(l=u.getDataItemPositionX(i,t,0,this.get("vcx",1),r),g=this._xRenderer.positionToPoint(l),_=g.x,x=p-y*a))}else _=c+v*s,x=p-y*a;const f=t.get("stacked");if(f){const t=this.chart;if(n==u){let i=this._bullets[l+"_"+d];if(i){let s=i.bounds(),a=e.localBounds(),o=x;x=s.top,"down"==f?x=s.bottom-a.top:"auto"==f?t&&(o{e!=this._mainDataItems&&g.each(e,(t=>{t.dispose()}))})),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){g.each(this._dataItems,(t=>{let e=t.bullets;e&&g.each(e,(t=>{if(t){let e=t.get("sprite");e&&e.setPrivate("visible",!1)}}))})),this._selectionProcessed=!1}show(t){const e=Object.create(null,{show:{get:()=>super.show}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.show.call(this,t).then((()=>{this._isShowing=!1;let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis");e!==i&&e.markDirtySelectionExtremes(),t!==i&&t.markDirtySelectionExtremes()}))),i.push(this.bulletsContainer.show(t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)}))}hide(t){const e=Object.create(null,{hide:{get:()=>super.hide}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.hide.call(this,t).then((()=>{this._isHiding=!1}))),i.push(this.bulletsContainer.hide(t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)];l.isNumber(e)||(e=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");g.each(this._valueFields,(i=>{s.push(t.animate({key:i+"Working",to:t.get(i),duration:e,easing:a}).waitForStop())})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)];let a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),l.isNumber(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),n=this.get("xAxis"),r=this.get("yAxis"),h=this.get("baseAxis"),d=this.get("stacked");if(h!==n&&h||g.each(this._valueYFields,(i=>{let a=r.getPrivate("min"),n=r.baseValue();l.isNumber(a)&&a>n&&(n=a),d&&(n=0),null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:n,duration:e,easing:o}).waitForStop())})),h===r||!h){let i=n.getPrivate("min"),a=n.baseValue();l.isNumber(i)&&i>a&&(a=i),d&&(a=0),g.each(this._valueXFields,(i=>{null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:a,duration:e,easing:o}).waitForStop())}))}yield Promise.all(s)}))}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const t=this._stackedSeries;t&&d.each(t,((t,e)=>{e._stackDirty||e._markDirtyStack()}))}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(t){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(t),this.updateLegendValue(t));const e=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(e)if(!this.isHidden()&&this.get("visible")){if(e._setDataItem(t),t){let a=this.get("locationX",0),o=this.get("locationY",1),n=t.get("locationX",a),r=t.get("locationY",o);const h=this.get("xAxis"),l=this.get("yAxis"),d=this.get("vcx",1),c=this.get("vcy",1),u=h.getDataItemPositionX(t,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*n,d,i),m=l.getDataItemPositionY(t,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*r,c,s),p=this.getPoint(u,m);let _=!0;if(g.each(this._valueFields,(e=>{null==t.get(e)&&(_=!1)})),_){const i=this.chart;i&&i.inPlot(p)?(e.label.text.markDirtyText(),e.set("tooltipTarget",this._getTooltipTarget(t)),e.set("pointTo",this._display.toGlobal({x:p.x,y:p.y}))):e._setDataItem(void 0)}else e._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const t=this.get("tooltip");return t&&t.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget")){const e=t.bullets;if(e&&e.length>0){const t=e[0].get("sprite");if(t)return t}}return this}updateLegendValue(t){const e=this.get("legendDataItem");if(e){const i=e.get("label");if(i){let e="";t?(i._setDataItem(t),e=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),e=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",e)}const s=e.get("valueLabel");if(s){let e="";t?(s._setDataItem(t),e=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),e=this.get("legendRangeValueText",s.get("text",""))),s.set("text",e)}}}_getItemReaderLabel(){let t="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}",t}getPoint(t,e){let i=this._xRenderer.positionToCoordinate(t),s=this._yRenderer.positionToCoordinate(e),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(t){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(t){return this.axisRanges.push({axisDataItem:t})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(t){const e=this.get("xAxis");if(this.get("baseAxis")==e&&e.isType("DateAxis")){const i=e.baseDuration(),s=e.getPrivate("selectionMin",e.getPrivate("min",0)),a=i*this.get("locationX",.5);let o=-1/0;for(;o{const e=this.startGrip,i=this.endGrip;let s=e.x(),a=e.y(),o=i.x(),n=i.y();const r=this.height(),h=this.width();s>o&&([s,o]=[o,s]),a>n&&([a,n]=[n,a]),"horizontal"===this.get("orientation")?(t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,r),t.lineTo(0,r),t.lineTo(0,0),t.moveTo(o,0),t.lineTo(h,0),t.lineTo(h,r),t.lineTo(o,r),t.lineTo(o,0)):(t.moveTo(0,0),t.lineTo(0,a),t.lineTo(h,a),t.lineTo(h,0),t.lineTo(0,0),t.moveTo(0,n),t.lineTo(0,r),t.lineTo(h,r),t.lineTo(h,n),t.lineTo(0,n))}))}}r.className="XYChartScrollbar",r.classNames=a.L.classNames.concat([r.className]);var h=i(3355),l=i(757),d=i(6515),g=i(7497),c=i(1926),u=i(5040),m=i(5071);class p extends g.${constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category"),super._afterNew()}_prepareAxisItems(){this.setPrivateRaw("baseInterval",this.get("baseInterval"));const t=this.get("renderer"),e=this.dataItems.length;let i=this.startIndex();i>0&&i--;let s=this.endIndex();s=o&&(g=!0):r%l.count==0&&r!=y&&(g=!0),!h&&g&&(i-.7*o0){let t=f[0].dataItem.get("index",0);m.each(f,(e=>{const i=e.dataItem,s=e.format;this._createAssets(i,[]),this._toggleDataItem(i,!0);let a=Number(i.get("category")),n=new Date(a);const r=i.get("label");r&&r.set("text",this._root.dateFormatter.format(n,s)),t++,this._prepareDataItem(i,t,o)}))}}baseDuration(){return c.getIntervalDuration(this.getPrivate("baseInterval"))}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let t=this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];return this._root.dateFormatter.format(new Date(i.get("category",0)),this.get("tooltipDateFormat",t))}}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}}p.className="CategoryDateAxis",p.classNames=g.$.classNames.concat([p.className]);var _=i(5638),x=i(8701),v=i(7261),y=i(751);class f extends v.m{constructor(){super(...arguments),this._dataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),super._afterNew()}_adjustMinMax(t,e,i,s){let a;const o=this.getDurationFormatter(),n=this.get("baseUnit");if(this.setRaw("maxPrecision",0),"millisecond"==n||"second"==n||"minute"==n||"hour"==n){i<=1&&(i=1),i=Math.round(i);let s=e-t;0===s&&(s=Math.abs(e));let o=s/i,r=[60,30,20,15,10,2,1],h=1;"hour"==n&&(r=[24,12,6,4,2,1]);for(let t of r)if(s/t>i){h=t;break}let l=Math.ceil((e-t)/h/i),d=Math.log(Math.abs(l))*Math.LOG10E,g=Math.pow(10,Math.floor(d))/10,c=l/g;l=y.closest(r,c)*g,o=h*l,a={min:t=Math.floor(t/o)*o,max:e=Math.ceil(e/o)*o,step:o}}else a=super._adjustMinMax(t,e,i,s);return this.setPrivateRaw("durationFormat",o.getFormat(a.step,a.max,n)),a}_formatText(t){return this.getDurationFormatter().format(t,this.getPrivate("durationFormat"),this.get("baseUnit"))}getTooltipText(t,e){const i=this.getDurationFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=y.round(this.positionToValue(t),a);return i.format(o,this.getPrivate("durationFormat"),this.get("baseUnit"))}}f.className="DurationAxis",f.classNames=v.m.classNames.concat([f.className]);var b=i(2586),D=i(6293),P=i(9084),w=i(4714),T=i(8943),A=i(7109),I=i(6275),M=i(6284),k=i(7909),C=i(4604),S=i(2976),Y=i(2312);class F extends S.j{_draw(){const t=this._display;t.moveTo(this.get("lowX1",0),this.get("lowY1",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0));let e=this.width(),i=this.height();if("vertical"==this.get("orientation")){let s=i,a=0;t.moveTo(0,s),t.lineTo(e/2,s),t.moveTo(e/2,a),t.lineTo(e,a)}else{let s=0,a=e;t.moveTo(s,0),t.lineTo(s,i/2),t.moveTo(a,i/2),t.lineTo(a,i)}}}F.className="OHLC",F.classNames=S.j.classNames.concat([F.className]);var X=i(5769),L=i(7144);class N extends Y.${constructor(){super(...arguments),this.columns=this.addDisposer(new L.o(X.YS.new({themeTags:["autocolor"]}),(()=>F._new(this._root,{themeTags:n.mergeTags(this.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=this.mainContainer.children.push(e.make());return i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new L.o(X.YS.new({}),(()=>F._new(this._root,{themeTags:n.mergeTags(t.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template,t.columns.template])))}}N.className="OHLCSeries",N.classNames=Y.$.classNames.concat([N.className]);var R=i(62),V=i(2338),G=i(5892);class O extends V.e{_afterNew(){this._setDefault("curveFactory",(0,G.$)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,G.$)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}O.className="SmoothedYLineSeries",O.classNames=V.e.classNames.concat([O.className]);var E=i(8289);class z extends V.e{_afterNew(){this._setDefault("curveFactory",(0,E.G)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,E.G)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}z.className="SmoothedXLineSeries",z.classNames=V.e.classNames.concat([z.className]);var U=i(2818);class W extends V.e{_afterNew(){this._setDefault("curveFactory",U.ZP.tension(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",U.ZP.tension(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}W.className="SmoothedXYLineSeries",W.classNames=V.e.classNames.concat([W.className]);var B=i(6245);function H(t,e){this._context=t,this._t=e}function Z(t){return new H(t,1)}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}};class Q extends V.e{_afterNew(){this._setDefault("curveFactory",Z),super._afterNew()}_getPoints(t,e){let i=e.points,s=this.get("stepWidth",B.AQ).value/2,a=t.get("locationX",e.locationX),o=t.get("locationY",e.locationY),n=a,r=o;e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s);let h=e.xAxis.getDataItemPositionX(t,e.xField,a,e.vcx),l=e.yAxis.getDataItemPositionY(t,e.yField,o,e.vcy),d=e.xAxis.getDataItemPositionX(t,e.xField,n,e.vcx),g=e.yAxis.getDataItemPositionY(t,e.yField,r,e.vcy);if(this._shouldInclude(h)){const c=this.getPoint(h,l),u=[c.x,c.y],m=this.getPoint(d,g),p=[m.x,m.y];if(e.fillVisible){let i=h,c=l,m=d,_=g;if(e.baseAxis===e.xAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(i=e.basePosX,m=e.basePosX),e.getOpen){let h=t.get(e.xOpenField),l=t.get(e.yOpenField);if(null!=h&&null!=l)if(a=t.get("openLocationX",e.openLocationX),o=t.get("openLocationY",e.openLocationY),n=a,r=o,e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s),e.stacked){let s=t.get("stackToItemX"),h=t.get("stackToItemY");s?(i=e.xAxis.getDataItemPositionX(s,e.xField,a,s.component.get("vcx")),m=e.xAxis.getDataItemPositionX(s,e.xField,n,s.component.get("vcx"))):e.yAxis===e.baseAxis?(i=e.basePosX,m=e.basePosX):e.baseAxis===e.yAxis&&(i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx)),h?(c=e.yAxis.getDataItemPositionY(h,e.yField,o,h.component.get("vcy")),_=e.yAxis.getDataItemPositionY(h,e.yField,r,h.component.get("vcy"))):e.xAxis===e.baseAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy))}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy)}let x=this.getPoint(i,c),v=this.getPoint(m,_);u[2]=x.x,u[3]=x.y,p[2]=v.x,p[3]=v.y}i.push(u),i.push(p),t.set("point",{x:u[0]+(p[0]-u[0])/2,y:u[1]+(p[1]-u[1])/2})}this.get("noRisers")&&(e.points=[],e.segments.push(i))}}Q.className="StepLineSeries",Q.classNames=V.e.classNames.concat([Q.className]);var j=i(55)},7825:function(t,e,i){i.r(e),i.d(e,{am5xy:function(){return s}});const s=i(778)},2818:function(t,e,i){function s(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function a(t,e){this._context=t,this._k=(1-e)/6}i.d(e,{xm:function(){return s}}),a.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:s(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:s(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.ZP=function t(e){function i(t){return new a(t,e)}return i.tension=function(e){return t(+e)},i}(0)}},function(t){var e=(7825,t(t.s=7825)),i=window;for(var s in e)i[s]=e[s];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=xy.js.map diff --git a/web/amCharts/scatter/chart_0065_scatter.inline03.js b/web/amCharts/scatter/chart_0065_scatter.inline03.js new file mode 100644 index 0000000000000000000000000000000000000000..c27a274e7972e9ecbd57d20b441e60fc864ffc7d --- /dev/null +++ b/web/amCharts/scatter/chart_0065_scatter.inline03.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=Animated.js.map diff --git a/web/amCharts/scatter/chart_0065_scatter.inline04.js b/web/amCharts/scatter/chart_0065_scatter.inline04.js new file mode 100644 index 0000000000000000000000000000000000000000..8d56002d90f371cb483b36fc1a6284c3b946574f --- /dev/null +++ b/web/amCharts/scatter/chart_0065_scatter.inline04.js @@ -0,0 +1,2 @@ +// https://d3js.org v7.8.5 Copyright 2010-2023 Mike Bostock +!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).d3=t.d3||{})}(this,(function(t){"use strict";function n(t,n){return null==t||null==n?NaN:tn?1:t>=n?0:NaN}function e(t,n){return null==t||null==n?NaN:nt?1:n>=t?0:NaN}function r(t){let r,o,a;function u(t,n,e=0,i=t.length){if(e>>1;o(t[r],n)<0?e=r+1:i=r}while(en(t(e),r),a=(n,e)=>t(n)-e):(r=t===n||t===e?t:i,o=t,a=t),{left:u,center:function(t,n,e=0,r=t.length){const i=u(t,n,e,r-1);return i>e&&a(t[i-1],n)>-a(t[i],n)?i-1:i},right:function(t,n,e=0,i=t.length){if(e>>1;o(t[r],n)<=0?e=r+1:i=r}while(e{n(t,e,(r<<=2)+0,(i<<=2)+0,o<<=2),n(t,e,r+1,i+1,o),n(t,e,r+2,i+2,o),n(t,e,r+3,i+3,o)}}));function d(t){return function(n,e,r=e){if(!((e=+e)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:i,width:o,height:a}=n;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");if(!((a=Math.floor(void 0!==a?a:i.length/o))>=0))throw new RangeError("invalid height");if(!o||!a||!e&&!r)return n;const u=e&&t(e),c=r&&t(r),f=i.slice();return u&&c?(p(u,f,i,o,a),p(u,i,f,o,a),p(u,f,i,o,a),g(c,i,f,o,a),g(c,f,i,o,a),g(c,i,f,o,a)):u?(p(u,i,f,o,a),p(u,f,i,o,a),p(u,i,f,o,a)):c&&(g(c,i,f,o,a),g(c,f,i,o,a),g(c,i,f,o,a)),n}}function p(t,n,e,r,i){for(let o=0,a=r*i;o{if(!((o-=a)>=i))return;let u=t*r[i];const c=a*t;for(let t=i,n=i+c;t{if(!((a-=u)>=o))return;let c=n*i[o];const f=u*n,s=f+u;for(let t=o,n=o+f;t=n&&++e;else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(i=+i)>=i&&++e}return e}function _(t){return 0|t.length}function b(t){return!(t>0)}function m(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function x(t,n){let e,r=0,i=0,o=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(e=n-i,i+=e/++r,o+=e*(n-i));else{let a=-1;for(let u of t)null!=(u=n(u,++a,t))&&(u=+u)>=u&&(e=u-i,i+=e/++r,o+=e*(u-i))}if(r>1)return o/(r-1)}function w(t,n){const e=x(t,n);return e?Math.sqrt(e):e}function M(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r=o&&(e=r=o):(e>o&&(e=o),r0){for(o=t[--i];i>0&&(n=o,e=t[--i],o=n+e,r=e-(o-n),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(e=2*r,n=o+e,e==n-o&&(o=n))}return o}}class InternMap extends Map{constructor(t,n=N){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(A(this,t))}has(t){return super.has(A(this,t))}set(t,n){return super.set(S(this,t),n)}delete(t){return super.delete(E(this,t))}}class InternSet extends Set{constructor(t,n=N){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const n of t)this.add(n)}has(t){return super.has(A(this,t))}add(t){return super.add(S(this,t))}delete(t){return super.delete(E(this,t))}}function A({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function S({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}function E({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}function N(t){return null!==t&&"object"==typeof t?t.valueOf():t}function k(t){return t}function C(t,...n){return F(t,k,k,n)}function P(t,...n){return F(t,Array.from,k,n)}function z(t,n){for(let e=1,r=n.length;et.pop().map((([n,e])=>[...t,n,e]))));return t}function $(t,n,...e){return F(t,k,n,e)}function D(t,n,...e){return F(t,Array.from,n,e)}function R(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function F(t,n,e,r){return function t(i,o){if(o>=r.length)return e(i);const a=new InternMap,u=r[o++];let c=-1;for(const t of i){const n=u(t,++c,i),e=a.get(n);e?e.push(t):a.set(n,[t])}for(const[n,e]of a)a.set(n,t(e,o));return n(a)}(t,0)}function q(t,n){return Array.from(n,(n=>t[n]))}function U(t,...n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[e]=n;if(e&&2!==e.length||n.length>1){const r=Uint32Array.from(t,((t,n)=>n));return n.length>1?(n=n.map((n=>t.map(n))),r.sort(((t,e)=>{for(const r of n){const n=O(r[t],r[e]);if(n)return n}}))):(e=t.map(e),r.sort(((t,n)=>O(e[t],e[n])))),q(t,r)}return t.sort(I(e))}function I(t=n){if(t===n)return O;if("function"!=typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}function O(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(tn?1:0)}var B=Array.prototype.slice;function Y(t){return()=>t}const L=Math.sqrt(50),j=Math.sqrt(10),H=Math.sqrt(2);function X(t,n,e){const r=(n-t)/Math.max(0,e),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=L?10:o>=j?5:o>=H?2:1;let u,c,f;return i<0?(f=Math.pow(10,-i)/a,u=Math.round(t*f),c=Math.round(n*f),u/fn&&--c,f=-f):(f=Math.pow(10,i)*a,u=Math.round(t/f),c=Math.round(n/f),u*fn&&--c),c0))return[];if((t=+t)===(n=+n))return[t];const r=n=i))return[];const u=o-i+1,c=new Array(u);if(r)if(a<0)for(let t=0;t0?(t=Math.floor(t/i)*i,n=Math.ceil(n/i)*i):i<0&&(t=Math.ceil(t*i)/i,n=Math.floor(n*i)/i),r=i}}function K(t){return Math.max(1,Math.ceil(Math.log(v(t))/Math.LN2)+1)}function Q(){var t=k,n=M,e=K;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a,u=r.length,c=new Array(u);for(i=0;i=h)if(t>=h&&n===M){const t=V(l,h,e);isFinite(t)&&(t>0?h=(Math.floor(h/t)+1)*t:t<0&&(h=(Math.ceil(h*-t)+1)/-t))}else d.pop()}for(var p=d.length,g=0,y=p;d[g]<=l;)++g;for(;d[y-1]>h;)--y;(g||y0?d[i-1]:l,v.x1=i0)for(i=0;i=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e=i)&&(e=i)}return e}function tt(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e=n)&&(e=n,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e=o)&&(e=o,r=i);return r}function nt(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e>n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function et(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e>n||void 0===e&&n>=n)&&(e=n,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e>o||void 0===e&&o>=o)&&(e=o,r=i);return r}function rt(t,n,e=0,r=1/0,i){if(n=Math.floor(n),e=Math.floor(Math.max(0,e)),r=Math.floor(Math.min(t.length-1,r)),!(e<=n&&n<=r))return t;for(i=void 0===i?O:I(i);r>e;){if(r-e>600){const o=r-e+1,a=n-e+1,u=Math.log(o),c=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*c*(o-c)/o)*(a-o/2<0?-1:1);rt(t,n,Math.max(e,Math.floor(n-a*c/o+f)),Math.min(r,Math.floor(n+(o-a)*c/o+f)),i)}const o=t[n];let a=e,u=r;for(it(t,e,n),i(t[r],o)>0&&it(t,e,r);a0;)--u}0===i(t[e],o)?it(t,e,u):(++u,it(t,u,r)),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function it(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function ot(t,e=n){let r,i=!1;if(1===e.length){let o;for(const a of t){const t=e(a);(i?n(t,o)>0:0===n(t,t))&&(r=a,o=t,i=!0)}}else for(const n of t)(i?e(n,r)>0:0===e(n,n))&&(r=n,i=!0);return r}function at(t,n,e){if(t=Float64Array.from(function*(t,n){if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(r=+r)>=r&&(yield r)}}(t,e)),(r=t.length)&&!isNaN(n=+n)){if(n<=0||r<2)return nt(t);if(n>=1)return J(t);var r,i=(r-1)*n,o=Math.floor(i),a=J(rt(t,o).subarray(0,o+1));return a+(nt(t.subarray(o+1))-a)*(i-o)}}function ut(t,n,e=o){if((r=t.length)&&!isNaN(n=+n)){if(n<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,a=Math.floor(i),u=+e(t[a],a,t);return u+(+e(t[a+1],a+1,t)-u)*(i-a)}}function ct(t,n,e=o){if(!isNaN(n=+n)){if(r=Float64Array.from(t,((n,r)=>o(e(t[r],r,t)))),n<=0)return et(r);if(n>=1)return tt(r);var r,i=Uint32Array.from(t,((t,n)=>n)),a=r.length-1,u=Math.floor(a*n);return rt(i,u,0,a,((t,n)=>O(r[t],r[n]))),(u=ot(i.subarray(0,u+1),(t=>r[t])))>=0?u:-1}}function ft(t){return Array.from(function*(t){for(const n of t)yield*n}(t))}function st(t,n){return[t,n]}function lt(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r+t(n)}function kt(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),e=>+t(e)+n}function Ct(){return!this.__axis}function Pt(t,n){var e=[],r=null,i=null,o=6,a=6,u=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,f=t===xt||t===Tt?-1:1,s=t===Tt||t===wt?"x":"y",l=t===xt||t===Mt?St:Et;function h(h){var d=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,p=null==i?n.tickFormat?n.tickFormat.apply(n,e):mt:i,g=Math.max(o,0)+u,y=n.range(),v=+y[0]+c,_=+y[y.length-1]+c,b=(n.bandwidth?kt:Nt)(n.copy(),c),m=h.selection?h.selection():h,x=m.selectAll(".domain").data([null]),w=m.selectAll(".tick").data(d,n).order(),M=w.exit(),T=w.enter().append("g").attr("class","tick"),A=w.select("line"),S=w.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(T),A=A.merge(T.append("line").attr("stroke","currentColor").attr(s+"2",f*o)),S=S.merge(T.append("text").attr("fill","currentColor").attr(s,f*g).attr("dy",t===xt?"0em":t===Mt?"0.71em":"0.32em")),h!==m&&(x=x.transition(h),w=w.transition(h),A=A.transition(h),S=S.transition(h),M=M.transition(h).attr("opacity",At).attr("transform",(function(t){return isFinite(t=b(t))?l(t+c):this.getAttribute("transform")})),T.attr("opacity",At).attr("transform",(function(t){var n=this.parentNode.__axis;return l((n&&isFinite(n=n(t))?n:b(t))+c)}))),M.remove(),x.attr("d",t===Tt||t===wt?a?"M"+f*a+","+v+"H"+c+"V"+_+"H"+f*a:"M"+c+","+v+"V"+_:a?"M"+v+","+f*a+"V"+c+"H"+_+"V"+f*a:"M"+v+","+c+"H"+_),w.attr("opacity",1).attr("transform",(function(t){return l(b(t)+c)})),A.attr(s+"2",f*o),S.attr(s,f*g).text(p),m.filter(Ct).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===wt?"start":t===Tt?"end":"middle"),m.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(n=t,h):n},h.ticks=function(){return e=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(e=null==t?[]:Array.from(t),h):e.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(u=+t,h):u},h.offset=function(t){return arguments.length?(c=+t,h):c},h}var zt={value:()=>{}};function $t(){for(var t,n=0,e=arguments.length,r={};n=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++a0)for(var e,r,i=new Array(e),o=0;o=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Ut.hasOwnProperty(n)?{space:Ut[n],local:t}:t}function Ot(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===qt&&n.documentElement.namespaceURI===qt?n.createElement(t):n.createElementNS(e,t)}}function Bt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Yt(t){var n=It(t);return(n.local?Bt:Ot)(n)}function Lt(){}function jt(t){return null==t?Lt:function(){return this.querySelector(t)}}function Ht(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Xt(){return[]}function Gt(t){return null==t?Xt:function(){return this.querySelectorAll(t)}}function Vt(t){return function(){return this.matches(t)}}function Wt(t){return function(n){return n.matches(t)}}var Zt=Array.prototype.find;function Kt(){return this.firstElementChild}var Qt=Array.prototype.filter;function Jt(){return Array.from(this.children)}function tn(t){return new Array(t.length)}function nn(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function en(t,n,e,r,i,o){for(var a,u=0,c=n.length,f=o.length;un?1:t>=n?0:NaN}function cn(t){return function(){this.removeAttribute(t)}}function fn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function sn(t,n){return function(){this.setAttribute(t,n)}}function ln(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function hn(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function dn(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function pn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function gn(t){return function(){this.style.removeProperty(t)}}function yn(t,n,e){return function(){this.style.setProperty(t,n,e)}}function vn(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function _n(t,n){return t.style.getPropertyValue(n)||pn(t).getComputedStyle(t,null).getPropertyValue(n)}function bn(t){return function(){delete this[t]}}function mn(t,n){return function(){this[t]=n}}function xn(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function wn(t){return t.trim().split(/^|\s+/)}function Mn(t){return t.classList||new Tn(t)}function Tn(t){this._node=t,this._names=wn(t.getAttribute("class")||"")}function An(t,n){for(var e=Mn(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Gn=[null];function Vn(t,n){this._groups=t,this._parents=n}function Wn(){return new Vn([[document.documentElement]],Gn)}function Zn(t){return"string"==typeof t?new Vn([[document.querySelector(t)]],[document.documentElement]):new Vn([[t]],Gn)}Vn.prototype=Wn.prototype={constructor:Vn,select:function(t){"function"!=typeof t&&(t=jt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i=m&&(m=b+1);!(_=y[m])&&++m=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=un);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?gn:"function"==typeof n?vn:yn)(t,n,null==e?"":e)):_n(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?bn:"function"==typeof n?xn:mn)(t,n)):this.node()[t]},classed:function(t,n){var e=wn(t+"");if(arguments.length<2){for(var r=Mn(this.node()),i=-1,o=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?Ln:Yn,r=0;r()=>t;function fe(t,{sourceEvent:n,subject:e,target:r,identifier:i,active:o,x:a,y:u,dx:c,dy:f,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:f,enumerable:!0,configurable:!0},_:{value:s}})}function se(t){return!t.ctrlKey&&!t.button}function le(){return this.parentNode}function he(t,n){return null==n?{x:t.x,y:t.y}:n}function de(){return navigator.maxTouchPoints||"ontouchstart"in this}function pe(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function ge(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function ye(){}fe.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var ve=.7,_e=1/ve,be="\\s*([+-]?\\d+)\\s*",me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",we=/^#([0-9a-f]{3,8})$/,Me=new RegExp(`^rgb\\(${be},${be},${be}\\)$`),Te=new RegExp(`^rgb\\(${xe},${xe},${xe}\\)$`),Ae=new RegExp(`^rgba\\(${be},${be},${be},${me}\\)$`),Se=new RegExp(`^rgba\\(${xe},${xe},${xe},${me}\\)$`),Ee=new RegExp(`^hsl\\(${me},${xe},${xe}\\)$`),Ne=new RegExp(`^hsla\\(${me},${xe},${xe},${me}\\)$`),ke={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 Ce(){return this.rgb().formatHex()}function Pe(){return this.rgb().formatRgb()}function ze(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=we.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?$e(n):3===e?new qe(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?De(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?De(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Me.exec(t))?new qe(n[1],n[2],n[3],1):(n=Te.exec(t))?new qe(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Ae.exec(t))?De(n[1],n[2],n[3],n[4]):(n=Se.exec(t))?De(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Ee.exec(t))?Le(n[1],n[2]/100,n[3]/100,1):(n=Ne.exec(t))?Le(n[1],n[2]/100,n[3]/100,n[4]):ke.hasOwnProperty(t)?$e(ke[t]):"transparent"===t?new qe(NaN,NaN,NaN,0):null}function $e(t){return new qe(t>>16&255,t>>8&255,255&t,1)}function De(t,n,e,r){return r<=0&&(t=n=e=NaN),new qe(t,n,e,r)}function Re(t){return t instanceof ye||(t=ze(t)),t?new qe((t=t.rgb()).r,t.g,t.b,t.opacity):new qe}function Fe(t,n,e,r){return 1===arguments.length?Re(t):new qe(t,n,e,null==r?1:r)}function qe(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Ue(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}`}function Ie(){const t=Oe(this.opacity);return`${1===t?"rgb(":"rgba("}${Be(this.r)}, ${Be(this.g)}, ${Be(this.b)}${1===t?")":`, ${t})`}`}function Oe(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Be(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ye(t){return((t=Be(t))<16?"0":"")+t.toString(16)}function Le(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Xe(t,n,e,r)}function je(t){if(t instanceof Xe)return new Xe(t.h,t.s,t.l,t.opacity);if(t instanceof ye||(t=ze(t)),!t)return new Xe;if(t instanceof Xe)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&c<1?0:a,new Xe(a,u,c,t.opacity)}function He(t,n,e,r){return 1===arguments.length?je(t):new Xe(t,n,e,null==r?1:r)}function Xe(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Ge(t){return(t=(t||0)%360)<0?t+360:t}function Ve(t){return Math.max(0,Math.min(1,t||0))}function We(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}pe(ye,ze,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ce,formatHex:Ce,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return je(this).formatHsl()},formatRgb:Pe,toString:Pe}),pe(qe,Fe,ge(ye,{brighter(t){return t=null==t?_e:Math.pow(_e,t),new qe(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?ve:Math.pow(ve,t),new qe(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new qe(Be(this.r),Be(this.g),Be(this.b),Oe(this.opacity))},displayable(){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:Ue,formatHex:Ue,formatHex8:function(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}${Ye(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ie,toString:Ie})),pe(Xe,He,ge(ye,{brighter(t){return t=null==t?_e:Math.pow(_e,t),new Xe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?ve:Math.pow(ve,t),new Xe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new qe(We(t>=240?t-240:t+120,i,r),We(t,i,r),We(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Xe(Ge(this.h),Ve(this.s),Ve(this.l),Oe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Oe(this.opacity);return`${1===t?"hsl(":"hsla("}${Ge(this.h)}, ${100*Ve(this.s)}%, ${100*Ve(this.l)}%${1===t?")":`, ${t})`}`}}));const Ze=Math.PI/180,Ke=180/Math.PI,Qe=.96422,Je=1,tr=.82521,nr=4/29,er=6/29,rr=3*er*er,ir=er*er*er;function or(t){if(t instanceof ur)return new ur(t.l,t.a,t.b,t.opacity);if(t instanceof pr)return gr(t);t instanceof qe||(t=Re(t));var n,e,r=lr(t.r),i=lr(t.g),o=lr(t.b),a=cr((.2225045*r+.7168786*i+.0606169*o)/Je);return r===i&&i===o?n=e=a:(n=cr((.4360747*r+.3850649*i+.1430804*o)/Qe),e=cr((.0139322*r+.0971045*i+.7141733*o)/tr)),new ur(116*a-16,500*(n-a),200*(a-e),t.opacity)}function ar(t,n,e,r){return 1===arguments.length?or(t):new ur(t,n,e,null==r?1:r)}function ur(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function cr(t){return t>ir?Math.pow(t,1/3):t/rr+nr}function fr(t){return t>er?t*t*t:rr*(t-nr)}function sr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function lr(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function hr(t){if(t instanceof pr)return new pr(t.h,t.c,t.l,t.opacity);if(t instanceof ur||(t=or(t)),0===t.a&&0===t.b)return new pr(NaN,0=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r()=>t;function Cr(t,n){return function(e){return t+e*n}}function Pr(t,n){var e=n-t;return e?Cr(t,e>180||e<-180?e-360*Math.round(e/360):e):kr(isNaN(t)?n:t)}function zr(t){return 1==(t=+t)?$r:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):kr(isNaN(n)?e:n)}}function $r(t,n){var e=n-t;return e?Cr(t,e):kr(isNaN(t)?n:t)}var Dr=function t(n){var e=zr(n);function r(t,n){var r=e((t=Fe(t)).r,(n=Fe(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=$r(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function Rr(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;eo&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:Yr(e,r)})),o=Hr.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:Yr(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Yr(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,c),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:Yr(t,e)},{i:u-2,x:Yr(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var n,e=-1,r=c.length;++e=0&&n._call.call(void 0,t),n=n._next;--yi}function Ci(){xi=(mi=Mi.now())+wi,yi=vi=0;try{ki()}finally{yi=0,function(){var t,n,e=pi,r=1/0;for(;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:pi=n);gi=t,zi(r)}(),xi=0}}function Pi(){var t=Mi.now(),n=t-mi;n>bi&&(wi-=n,mi=t)}function zi(t){yi||(vi&&(vi=clearTimeout(vi)),t-xi>24?(t<1/0&&(vi=setTimeout(Ci,t-Mi.now()-wi)),_i&&(_i=clearInterval(_i))):(_i||(mi=Mi.now(),_i=setInterval(Pi,bi)),yi=1,Ti(Ci)))}function $i(t,n,e){var r=new Ei;return n=null==n?0:+n,r.restart((e=>{r.stop(),t(e+n)}),n,e),r}Ei.prototype=Ni.prototype={constructor:Ei,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Ai():+e)+(null==n?0:+n),this._next||gi===this||(gi?gi._next=this:pi=this,gi=this),this._call=t,this._time=e,zi()},stop:function(){this._call&&(this._call=null,this._time=1/0,zi())}};var Di=$t("start","end","cancel","interrupt"),Ri=[],Fi=0,qi=1,Ui=2,Ii=3,Oi=4,Bi=5,Yi=6;function Li(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(t){e.state=qi,e.timer.restart(a,e.delay,e.time),e.delay<=t&&a(t-e.delay)}function a(o){var f,s,l,h;if(e.state!==qi)return c();for(f in i)if((h=i[f]).name===e.name){if(h.state===Ii)return $i(a);h.state===Oi?(h.state=Yi,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[f]):+fFi)throw new Error("too late; already scheduled");return e}function Hi(t,n){var e=Xi(t,n);if(e.state>Ii)throw new Error("too late; already running");return e}function Xi(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Gi(t,n){var e,r,i,o=t.__transition,a=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>Ui&&e.state=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?ji:Hi;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}(e,t,n))},attr:function(t,n){var e=It(t),r="transform"===e?ni:Ki;return this.attrTween(t,"function"==typeof n?(e.local?ro:eo)(e,r,Zi(this,"attr."+t,n)):null==n?(e.local?Ji:Qi)(e):(e.local?no:to)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=It(t);return this.tween(e,(r.local?io:oo)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?ti:Ki;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=_n(this,t),a=(this.style.removeProperty(t),_n(this,t));return o===a?null:o===e&&a===r?i:i=n(e=o,r=a)}}(t,r)).on("end.style."+t,lo(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var a=_n(this,t),u=e(this),c=u+"";return null==u&&(this.style.removeProperty(t),c=u=_n(this,t)),a===c?null:a===r&&c===i?o:(i=c,o=n(r=a,u))}}(t,r,Zi(this,"style."+t,n))).each(function(t,n){var e,r,i,o,a="style."+n,u="end."+a;return function(){var c=Hi(this,t),f=c.on,s=null==c.value[a]?o||(o=lo(n)):void 0;f===e&&i===s||(r=(e=f).copy()).on(u,i=s),c.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var a=_n(this,t);return a===o?null:a===r?i:i=n(r=a,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}(t,o,e)),r}return o._value=n,o}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Zi(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Xi(this.node(),e).tween,o=0,a=i.length;o()=>t;function Qo(t,{sourceEvent:n,target:e,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function Jo(t){t.preventDefault(),t.stopImmediatePropagation()}var ta={name:"drag"},na={name:"space"},ea={name:"handle"},ra={name:"center"};const{abs:ia,max:oa,min:aa}=Math;function ua(t){return[+t[0],+t[1]]}function ca(t){return[ua(t[0]),ua(t[1])]}var fa={name:"x",handles:["w","e"].map(va),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},sa={name:"y",handles:["n","s"].map(va),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},la={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(va),input:function(t){return null==t?null:ca(t)},output:function(t){return t}},ha={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"},da={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},pa={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},ga={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},ya={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function va(t){return{type:t}}function _a(t){return!t.ctrlKey&&!t.button}function ba(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function ma(){return navigator.maxTouchPoints||"ontouchstart"in this}function xa(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function wa(t){var n,e=ba,r=_a,i=ma,o=!0,a=$t("start","brush","end"),u=6;function c(n){var e=n.property("__brush",g).selectAll(".overlay").data([va("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ha.overlay).merge(e).each((function(){var t=xa(this).extent;Zn(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),n.selectAll(".selection").data([va("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ha.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=n.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return ha[t.type]})),n.each(f).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){var t=Zn(this),n=xa(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?n[1][0]-u/2:n[0][0]-u/2})).attr("y",(function(t){return"s"===t.type[0]?n[1][1]-u/2:n[0][1]-u/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+u:u})).attr("height",(function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+u:u}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function s(t,n,e){var r=t.__brush.emitter;return!r||e&&r.clean?new l(t,n,e):r}function l(t,n,e){this.that=t,this.args=n,this.state=t.__brush,this.active=0,this.clean=e}function h(e){if((!n||e.touches)&&r.apply(this,arguments)){var i,a,u,c,l,h,d,p,g,y,v,_=this,b=e.target.__data__.type,m="selection"===(o&&e.metaKey?b="overlay":b)?ta:o&&e.altKey?ra:ea,x=t===sa?null:ga[b],w=t===fa?null:ya[b],M=xa(_),T=M.extent,A=M.selection,S=T[0][0],E=T[0][1],N=T[1][0],k=T[1][1],C=0,P=0,z=x&&w&&o&&e.shiftKey,$=Array.from(e.touches||[e],(t=>{const n=t.identifier;return(t=ne(t,_)).point0=t.slice(),t.identifier=n,t}));Gi(_);var D=s(_,arguments,!0).beforestart();if("overlay"===b){A&&(g=!0);const n=[$[0],$[1]||$[0]];M.selection=A=[[i=t===sa?S:aa(n[0][0],n[1][0]),u=t===fa?E:aa(n[0][1],n[1][1])],[l=t===sa?N:oa(n[0][0],n[1][0]),d=t===fa?k:oa(n[0][1],n[1][1])]],$.length>1&&I(e)}else i=A[0][0],u=A[0][1],l=A[1][0],d=A[1][1];a=i,c=u,h=l,p=d;var R=Zn(_).attr("pointer-events","none"),F=R.selectAll(".overlay").attr("cursor",ha[b]);if(e.touches)D.moved=U,D.ended=O;else{var q=Zn(e.view).on("mousemove.brush",U,!0).on("mouseup.brush",O,!0);o&&q.on("keydown.brush",(function(t){switch(t.keyCode){case 16:z=x&&w;break;case 18:m===ea&&(x&&(l=h-C*x,i=a+C*x),w&&(d=p-P*w,u=c+P*w),m=ra,I(t));break;case 32:m!==ea&&m!==ra||(x<0?l=h-C:x>0&&(i=a-C),w<0?d=p-P:w>0&&(u=c-P),m=na,F.attr("cursor",ha.selection),I(t));break;default:return}Jo(t)}),!0).on("keyup.brush",(function(t){switch(t.keyCode){case 16:z&&(y=v=z=!1,I(t));break;case 18:m===ra&&(x<0?l=h:x>0&&(i=a),w<0?d=p:w>0&&(u=c),m=ea,I(t));break;case 32:m===na&&(t.altKey?(x&&(l=h-C*x,i=a+C*x),w&&(d=p-P*w,u=c+P*w),m=ra):(x<0?l=h:x>0&&(i=a),w<0?d=p:w>0&&(u=c),m=ea),F.attr("cursor",ha[b]),I(t));break;default:return}Jo(t)}),!0),ae(e.view)}f.call(_),D.start(e,m.name)}function U(t){for(const n of t.changedTouches||[t])for(const t of $)t.identifier===n.identifier&&(t.cur=ne(n,_));if(z&&!y&&!v&&1===$.length){const t=$[0];ia(t.cur[0]-t[0])>ia(t.cur[1]-t[1])?v=!0:y=!0}for(const t of $)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);g=!0,Jo(t),I(t)}function I(t){const n=$[0],e=n.point0;var r;switch(C=n[0]-e[0],P=n[1]-e[1],m){case na:case ta:x&&(C=oa(S-i,aa(N-l,C)),a=i+C,h=l+C),w&&(P=oa(E-u,aa(k-d,P)),c=u+P,p=d+P);break;case ea:$[1]?(x&&(a=oa(S,aa(N,$[0][0])),h=oa(S,aa(N,$[1][0])),x=1),w&&(c=oa(E,aa(k,$[0][1])),p=oa(E,aa(k,$[1][1])),w=1)):(x<0?(C=oa(S-i,aa(N-i,C)),a=i+C,h=l):x>0&&(C=oa(S-l,aa(N-l,C)),a=i,h=l+C),w<0?(P=oa(E-u,aa(k-u,P)),c=u+P,p=d):w>0&&(P=oa(E-d,aa(k-d,P)),c=u,p=d+P));break;case ra:x&&(a=oa(S,aa(N,i-C*x)),h=oa(S,aa(N,l+C*x))),w&&(c=oa(E,aa(k,u-P*w)),p=oa(E,aa(k,d+P*w)))}ht+e))}function za(t,n){var e=0,r=null,i=null,o=null;function a(a){var u,c=a.length,f=new Array(c),s=Pa(0,c),l=new Array(c*c),h=new Array(c),d=0;a=Float64Array.from({length:c*c},n?(t,n)=>a[n%c][n/c|0]:(t,n)=>a[n/c|0][n%c]);for(let n=0;nr(f[t],f[n])));for(const e of s){const r=n;if(t){const t=Pa(1+~c,c).filter((t=>t<0?a[~t*c+e]:a[e*c+t]));i&&t.sort(((t,n)=>i(t<0?-a[~t*c+e]:a[e*c+t],n<0?-a[~n*c+e]:a[e*c+n])));for(const r of t)if(r<0){(l[~r*c+e]||(l[~r*c+e]={source:null,target:null})).target={index:e,startAngle:n,endAngle:n+=a[~r*c+e]*d,value:a[~r*c+e]}}else{(l[e*c+r]||(l[e*c+r]={source:null,target:null})).source={index:e,startAngle:n,endAngle:n+=a[e*c+r]*d,value:a[e*c+r]}}h[e]={index:e,startAngle:r,endAngle:n,value:f[e]}}else{const t=Pa(0,c).filter((t=>a[e*c+t]||a[t*c+e]));i&&t.sort(((t,n)=>i(a[e*c+t],a[e*c+n])));for(const r of t){let t;if(e=0))throw new Error(`invalid digits: ${t}`);if(n>15)return qa;const e=10**n;return function(t){this._+=t[0];for(let n=1,r=t.length;nRa)if(Math.abs(s*u-c*f)>Ra&&i){let h=e-o,d=r-a,p=u*u+c*c,g=h*h+d*d,y=Math.sqrt(p),v=Math.sqrt(l),_=i*Math.tan(($a-Math.acos((p+l-g)/(2*y*v)))/2),b=_/v,m=_/y;Math.abs(b-1)>Ra&&this._append`L${t+b*f},${n+b*s}`,this._append`A${i},${i},0,0,${+(s*h>f*d)},${this._x1=t+m*u},${this._y1=n+m*c}`}else this._append`L${this._x1=t},${this._y1=n}`;else;}arc(t,n,e,r,i,o){if(t=+t,n=+n,o=!!o,(e=+e)<0)throw new Error(`negative radius: ${e}`);let a=e*Math.cos(r),u=e*Math.sin(r),c=t+a,f=n+u,s=1^o,l=o?r-i:i-r;null===this._x1?this._append`M${c},${f}`:(Math.abs(this._x1-c)>Ra||Math.abs(this._y1-f)>Ra)&&this._append`L${c},${f}`,e&&(l<0&&(l=l%Da+Da),l>Fa?this._append`A${e},${e},0,1,${s},${t-a},${n-u}A${e},${e},0,1,${s},${this._x1=c},${this._y1=f}`:l>Ra&&this._append`A${e},${e},0,${+(l>=$a)},${s},${this._x1=t+e*Math.cos(i)},${this._y1=n+e*Math.sin(i)}`)}rect(t,n,e,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${e=+e}v${+r}h${-e}Z`}toString(){return this._}};function Ia(){return new Ua}Ia.prototype=Ua.prototype;var Oa=Array.prototype.slice;function Ba(t){return function(){return t}}function Ya(t){return t.source}function La(t){return t.target}function ja(t){return t.radius}function Ha(t){return t.startAngle}function Xa(t){return t.endAngle}function Ga(){return 0}function Va(){return 10}function Wa(t){var n=Ya,e=La,r=ja,i=ja,o=Ha,a=Xa,u=Ga,c=null;function f(){var f,s=n.apply(this,arguments),l=e.apply(this,arguments),h=u.apply(this,arguments)/2,d=Oa.call(arguments),p=+r.apply(this,(d[0]=s,d)),g=o.apply(this,d)-Ea,y=a.apply(this,d)-Ea,v=+i.apply(this,(d[0]=l,d)),_=o.apply(this,d)-Ea,b=a.apply(this,d)-Ea;if(c||(c=f=Ia()),h>Ca&&(Ma(y-g)>2*h+Ca?y>g?(g+=h,y-=h):(g-=h,y+=h):g=y=(g+y)/2,Ma(b-_)>2*h+Ca?b>_?(_+=h,b-=h):(_-=h,b+=h):_=b=(_+b)/2),c.moveTo(p*Ta(g),p*Aa(g)),c.arc(0,0,p,g,y),g!==_||y!==b)if(t){var m=v-+t.apply(this,arguments),x=(_+b)/2;c.quadraticCurveTo(0,0,m*Ta(_),m*Aa(_)),c.lineTo(v*Ta(x),v*Aa(x)),c.lineTo(m*Ta(b),m*Aa(b))}else c.quadraticCurveTo(0,0,v*Ta(_),v*Aa(_)),c.arc(0,0,v,_,b);if(c.quadraticCurveTo(0,0,p*Ta(g),p*Aa(g)),c.closePath(),f)return c=null,f+""||null}return t&&(f.headRadius=function(n){return arguments.length?(t="function"==typeof n?n:Ba(+n),f):t}),f.radius=function(t){return arguments.length?(r=i="function"==typeof t?t:Ba(+t),f):r},f.sourceRadius=function(t){return arguments.length?(r="function"==typeof t?t:Ba(+t),f):r},f.targetRadius=function(t){return arguments.length?(i="function"==typeof t?t:Ba(+t),f):i},f.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:Ba(+t),f):o},f.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:Ba(+t),f):a},f.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:Ba(+t),f):u},f.source=function(t){return arguments.length?(n=t,f):n},f.target=function(t){return arguments.length?(e=t,f):e},f.context=function(t){return arguments.length?(c=null==t?null:t,f):c},f}var Za=Array.prototype.slice;function Ka(t,n){return t-n}var Qa=t=>()=>t;function Ja(t,n){for(var e,r=-1,i=n.length;++rr!=d>r&&e<(h-f)*(r-s)/(d-s)+f&&(i=-i)}return i}function nu(t,n,e){var r,i,o,a;return function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])}(t,n,e)&&(i=t[r=+(t[0]===n[0])],o=e[r],a=n[r],i<=o&&o<=a||a<=o&&o<=i)}function eu(){}var ru=[[],[[[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 iu(){var t=1,n=1,e=K,r=u;function i(t){var n=e(t);if(Array.isArray(n))n=n.slice().sort(Ka);else{const e=M(t,ou);for(n=G(...Z(e[0],e[1],n),n);n[n.length-1]>=e[1];)n.pop();for(;n[1]o(t,n)))}function o(e,i){const o=null==i?NaN:+i;if(isNaN(o))throw new Error(`invalid value: ${i}`);var u=[],c=[];return function(e,r,i){var o,u,c,f,s,l,h=new Array,d=new Array;o=u=-1,f=au(e[0],r),ru[f<<1].forEach(p);for(;++o=r,ru[s<<2].forEach(p);for(;++o0?u.push([t]):c.push(t)})),c.forEach((function(t){for(var n,e=0,r=u.length;e0&&o0&&a=0&&o>=0))throw new Error("invalid size");return t=r,n=o,i},i.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?Qa(Za.call(t)):Qa(t),i):e},i.smooth=function(t){return arguments.length?(r=t?u:eu,i):r===u},i}function ou(t){return isFinite(t)?t:NaN}function au(t,n){return null!=t&&+t>=n}function uu(t){return null==t||isNaN(t=+t)?-1/0:t}function cu(t,n,e,r){const i=r-n,o=e-n,a=isFinite(i)||isFinite(o)?i/o:Math.sign(i)/Math.sign(o);return isNaN(a)?t:t+a-.5}function fu(t){return t[0]}function su(t){return t[1]}function lu(){return 1}const hu=134217729,du=33306690738754706e-32;function pu(t,n,e,r,i){let o,a,u,c,f=n[0],s=r[0],l=0,h=0;s>f==s>-f?(o=f,f=n[++l]):(o=s,s=r[++h]);let d=0;if(lf==s>-f?(a=f+o,u=o-(a-f),f=n[++l]):(a=s+o,u=o-(a-s),s=r[++h]),o=a,0!==u&&(i[d++]=u);lf==s>-f?(a=o+f,c=a-o,u=o-(a-c)+(f-c),f=n[++l]):(a=o+s,c=a-o,u=o-(a-c)+(s-c),s=r[++h]),o=a,0!==u&&(i[d++]=u);for(;l=33306690738754716e-32*f?c:-function(t,n,e,r,i,o,a){let u,c,f,s,l,h,d,p,g,y,v,_,b,m,x,w,M,T;const A=t-i,S=e-i,E=n-o,N=r-o;m=A*N,h=hu*A,d=h-(h-A),p=A-d,h=hu*N,g=h-(h-N),y=N-g,x=p*y-(m-d*g-p*g-d*y),w=E*S,h=hu*E,d=h-(h-E),p=E-d,h=hu*S,g=h-(h-S),y=S-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,_u[0]=x-(v+l)+(l-M),_=m+v,l=_-m,b=m-(_-l)+(v-l),v=b-w,l=b-v,_u[1]=b-(v+l)+(l-w),T=_+v,l=T-_,_u[2]=_-(T-l)+(v-l),_u[3]=T;let k=function(t,n){let e=n[0];for(let r=1;r=C||-k>=C)return k;if(l=t-A,u=t-(A+l)+(l-i),l=e-S,f=e-(S+l)+(l-i),l=n-E,c=n-(E+l)+(l-o),l=r-N,s=r-(N+l)+(l-o),0===u&&0===c&&0===f&&0===s)return k;if(C=vu*a+du*Math.abs(k),k+=A*s+N*u-(E*f+S*c),k>=C||-k>=C)return k;m=u*N,h=hu*u,d=h-(h-u),p=u-d,h=hu*N,g=h-(h-N),y=N-g,x=p*y-(m-d*g-p*g-d*y),w=c*S,h=hu*c,d=h-(h-c),p=c-d,h=hu*S,g=h-(h-S),y=S-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,wu[0]=x-(v+l)+(l-M),_=m+v,l=_-m,b=m-(_-l)+(v-l),v=b-w,l=b-v,wu[1]=b-(v+l)+(l-w),T=_+v,l=T-_,wu[2]=_-(T-l)+(v-l),wu[3]=T;const P=pu(4,_u,4,wu,bu);m=A*s,h=hu*A,d=h-(h-A),p=A-d,h=hu*s,g=h-(h-s),y=s-g,x=p*y-(m-d*g-p*g-d*y),w=E*f,h=hu*E,d=h-(h-E),p=E-d,h=hu*f,g=h-(h-f),y=f-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,wu[0]=x-(v+l)+(l-M),_=m+v,l=_-m,b=m-(_-l)+(v-l),v=b-w,l=b-v,wu[1]=b-(v+l)+(l-w),T=_+v,l=T-_,wu[2]=_-(T-l)+(v-l),wu[3]=T;const z=pu(P,bu,4,wu,mu);m=u*s,h=hu*u,d=h-(h-u),p=u-d,h=hu*s,g=h-(h-s),y=s-g,x=p*y-(m-d*g-p*g-d*y),w=c*f,h=hu*c,d=h-(h-c),p=c-d,h=hu*f,g=h-(h-f),y=f-g,M=p*y-(w-d*g-p*g-d*y),v=x-M,l=x-v,wu[0]=x-(v+l)+(l-M),_=m+v,l=_-m,b=m-(_-l)+(v-l),v=b-w,l=b-v,wu[1]=b-(v+l)+(l-w),T=_+v,l=T-_,wu[2]=_-(T-l)+(v-l),wu[3]=T;const $=pu(z,mu,4,wu,xu);return xu[$-1]}(t,n,e,r,i,o,f)}const Tu=Math.pow(2,-52),Au=new Uint32Array(512);class Su{static from(t,n=zu,e=$u){const r=t.length,i=new Float64Array(2*r);for(let o=0;o>1;if(n>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const e=Math.max(2*n-5,0);this._triangles=new Uint32Array(3*e),this._halfedges=new Int32Array(3*e),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:e,_hullTri:r,_hullHash:i}=this,o=t.length>>1;let a=1/0,u=1/0,c=-1/0,f=-1/0;for(let n=0;nc&&(c=e),r>f&&(f=r),this._ids[n]=n}const s=(a+c)/2,l=(u+f)/2;let h,d,p,g=1/0;for(let n=0;n0&&(d=n,g=e)}let _=t[2*d],b=t[2*d+1],m=1/0;for(let n=0;nr&&(n[e++]=i,r=this._dists[i])}return this.hull=n.subarray(0,e),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(Mu(y,v,_,b,x,w)<0){const t=d,n=_,e=b;d=p,_=x,b=w,p=t,x=n,w=e}const M=function(t,n,e,r,i,o){const a=e-t,u=r-n,c=i-t,f=o-n,s=a*a+u*u,l=c*c+f*f,h=.5/(a*f-u*c),d=t+(f*s-u*l)*h,p=n+(a*l-c*s)*h;return{x:d,y:p}}(y,v,_,b,x,w);this._cx=M.x,this._cy=M.y;for(let n=0;n0&&Math.abs(f-o)<=Tu&&Math.abs(s-a)<=Tu)continue;if(o=f,a=s,c===h||c===d||c===p)continue;let l=0;for(let t=0,n=this._hashKey(f,s);t=0;)if(y=g,y===l){y=-1;break}if(-1===y)continue;let v=this._addTriangle(y,c,e[y],-1,-1,r[y]);r[c]=this._legalize(v+2),r[y]=v,T++;let _=e[y];for(;g=e[_],Mu(f,s,t[2*_],t[2*_+1],t[2*g],t[2*g+1])<0;)v=this._addTriangle(_,c,g,r[c],-1,r[_]),r[c]=this._legalize(v+2),e[_]=_,T--,_=g;if(y===l)for(;g=n[y],Mu(f,s,t[2*g],t[2*g+1],t[2*y],t[2*y+1])<0;)v=this._addTriangle(g,c,y,-1,r[y],r[g]),this._legalize(v+2),r[g]=v,e[y]=y,T--,y=g;this._hullStart=n[c]=y,e[y]=n[_]=c,e[c]=_,i[this._hashKey(f,s)]=c,i[this._hashKey(t[2*y],t[2*y+1])]=y}this.hull=new Uint32Array(T);for(let t=0,n=this._hullStart;t0?3-e:1+e)/4}(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:e,coords:r}=this;let i=0,o=0;for(;;){const a=e[t],u=t-t%3;if(o=u+(t+2)%3,-1===a){if(0===i)break;t=Au[--i];continue}const c=a-a%3,f=u+(t+1)%3,s=c+(a+2)%3,l=n[o],h=n[t],d=n[f],p=n[s];if(Nu(r[2*l],r[2*l+1],r[2*h],r[2*h+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1])){n[t]=p,n[a]=l;const r=e[s];if(-1===r){let n=this._hullStart;do{if(this._hullTri[n]===s){this._hullTri[n]=t;break}n=this._hullPrev[n]}while(n!==this._hullStart)}this._link(t,r),this._link(a,e[o]),this._link(o,s);const u=c+(a+1)%3;i=e&&n[t[a]]>o;)t[a+1]=t[a--];t[a+1]=r}else{let i=e+1,o=r;Pu(t,e+r>>1,i),n[t[e]]>n[t[r]]&&Pu(t,e,r),n[t[i]]>n[t[r]]&&Pu(t,i,r),n[t[e]]>n[t[i]]&&Pu(t,e,i);const a=t[i],u=n[a];for(;;){do{i++}while(n[t[i]]u);if(o=o-e?(Cu(t,n,i,r),Cu(t,n,e,o-1)):(Cu(t,n,e,o-1),Cu(t,n,i,r))}}function Pu(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function zu(t){return t[0]}function $u(t){return t[1]}const Du=1e-6;class Ru{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,e){const r=(t=+t)+(e=+e),i=n=+n;if(e<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>Du||Math.abs(this._y1-i)>Du)&&(this._+="L"+r+","+i),e&&(this._+=`A${e},${e},0,1,1,${t-e},${n}A${e},${e},0,1,1,${this._x1=r},${this._y1=i}`)}rect(t,n,e,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+e}v${+r}h${-e}Z`}value(){return this._||null}}class Fu{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class qu{constructor(t,[n,e,r,i]=[0,0,960,500]){if(!((r=+r)>=(n=+n)&&(i=+i)>=(e=+e)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=r,this.xmin=n,this.ymax=i,this.ymin=e,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:e},vectors:r}=this;let i,o;const a=this.circumcenters=this._circumcenters.subarray(0,e.length/3*2);for(let r,u,c=0,f=0,s=e.length;c1;)i-=2;for(let t=2;t0){if(n>=this.ymax)return null;(i=(this.ymax-n)/r)0){if(t>=this.xmax)return null;(i=(this.xmax-t)/e)this.xmax?2:0)|(nthis.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let n=0;n2&&function(t){const{triangles:n,coords:e}=t;for(let t=0;t1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:n.length/2},((t,n)=>n)).sort(((t,e)=>n[2*t]-n[2*e]||n[2*t+1]-n[2*e+1]));const t=this.collinear[0],e=this.collinear[this.collinear.length-1],r=[n[2*t],n[2*t+1],n[2*e],n[2*e+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let t=0,e=n.length/2;t0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],o[r[0]]=1,2===r.length&&(o[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(t){return new qu(this,t)}*neighbors(t){const{inedges:n,hull:e,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){const n=a.indexOf(t);return n>0&&(yield a[n-1]),void(n=0&&i!==e&&i!==r;)e=i;return i}_step(t,n,e){const{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:u,points:c}=this;if(-1===r[t]||!c.length)return(t+1)%(c.length>>1);let f=t,s=Iu(n-c[2*t],2)+Iu(e-c[2*t+1],2);const l=r[t];let h=l;do{let r=u[h];const l=Iu(n-c[2*r],2)+Iu(e-c[2*r+1],2);if(l9999?"+"+Ku(n,6):Ku(n,4))+"-"+Ku(t.getUTCMonth()+1,2)+"-"+Ku(t.getUTCDate(),2)+(o?"T"+Ku(e,2)+":"+Ku(r,2)+":"+Ku(i,2)+"."+Ku(o,3)+"Z":i?"T"+Ku(e,2)+":"+Ku(r,2)+":"+Ku(i,2)+"Z":r||e?"T"+Ku(e,2)+":"+Ku(r,2)+"Z":"")}function Ju(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var r,i=[],o=t.length,a=0,u=0,c=o<=0,f=!1;function s(){if(c)return Hu;if(f)return f=!1,ju;var n,r,i=a;if(t.charCodeAt(i)===Xu){for(;a++=o?c=!0:(r=t.charCodeAt(a++))===Gu?f=!0:r===Vu&&(f=!0,t.charCodeAt(a)===Gu&&++a),t.slice(i+1,n-1).replace(/""/g,'"')}for(;amc(n,e).then((n=>(new DOMParser).parseFromString(n,t)))}var Sc=Ac("application/xml"),Ec=Ac("text/html"),Nc=Ac("image/svg+xml");function kc(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,a,u,c,f,s,l,h,d=t._root,p={data:r},g=t._x0,y=t._y0,v=t._x1,_=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((f=n>=(o=(g+v)/2))?g=o:v=o,(s=e>=(a=(y+_)/2))?y=a:_=a,i=d,!(d=d[l=s<<1|f]))return i[l]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===u&&e===c)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(f=n>=(o=(g+v)/2))?g=o:v=o,(s=e>=(a=(y+_)/2))?y=a:_=a}while((l=s<<1|f)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[l]=p,t}function Cc(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function Pc(t){return t[0]}function zc(t){return t[1]}function $c(t,n,e){var r=new Dc(null==n?Pc:n,null==e?zc:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Dc(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Rc(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Fc=$c.prototype=Dc.prototype;function qc(t){return function(){return t}}function Uc(t){return 1e-6*(t()-.5)}function Ic(t){return t.x+t.vx}function Oc(t){return t.y+t.vy}function Bc(t){return t.index}function Yc(t,n){var e=t.get(n);if(!e)throw new Error("node not found: "+n);return e}Fc.copy=function(){var t,n,e=new Dc(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=Rc(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=Rc(n));return e},Fc.add=function(t){const n=+this._x.call(null,t),e=+this._y.call(null,t);return kc(this.cover(n,e),n,e,t)},Fc.addAll=function(t){var n,e,r,i,o=t.length,a=new Array(o),u=new Array(o),c=1/0,f=1/0,s=-1/0,l=-1/0;for(e=0;es&&(s=r),il&&(l=i));if(c>s||f>l)return this;for(this.cover(c,f).cover(s,l),e=0;et||t>=i||r>n||n>=o;)switch(u=(nh||(o=c.y0)>d||(a=c.x1)=v)<<1|t>=y)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-f],p[p.length-1-f]=c)}else{var _=t-+this._x.call(null,g.data),b=n-+this._y.call(null,g.data),m=_*_+b*b;if(m=(u=(p+y)/2))?p=u:y=u,(s=a>=(c=(g+v)/2))?g=c:v=c,n=d,!(d=d[l=s<<1|f]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},Fc.removeAll=function(t){for(var n=0,e=t.length;n1?r[0]+r.slice(2):r,+t.slice(e+1)]}function Zc(t){return(t=Wc(Math.abs(t)))?t[1]:NaN}var Kc,Qc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Jc(t){if(!(n=Qc.exec(t)))throw new Error("invalid format: "+t);var n;return new tf({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function tf(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function nf(t,n){var e=Wc(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Jc.prototype=tf.prototype,tf.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ef={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>nf(100*t,n),r:nf,s:function(t,n){var e=Wc(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(Kc=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Wc(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function rf(t){return t}var of,af=Array.prototype.map,uf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function cf(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?rf:(n=af.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return o.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?rf:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(af.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",f=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function l(t){var n=(t=Jc(t)).fill,e=t.align,l=t.sign,h=t.symbol,d=t.zero,p=t.width,g=t.comma,y=t.precision,v=t.trim,_=t.type;"n"===_?(g=!0,_="g"):ef[_]||(void 0===y&&(y=12),v=!0,_="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",m="$"===h?o:/[%p]/.test(_)?c:"",x=ef[_],w=/[defgprs%]/.test(_);function M(t){var i,o,c,h=b,M=m;if("c"===_)M=x(t)+M,t="";else{var T=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),y),v&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),T&&0==+t&&"+"!==l&&(T=!1),h=(T?"("===l?l:f:"-"===l||"("===l?"":l)+h,M=("s"===_?uf[8+Kc/3]:"")+M+(T&&"("===l?")":""),w)for(i=-1,o=t.length;++i(c=t.charCodeAt(i))||c>57){M=(46===c?a+t.slice(i+1):t.slice(i))+M,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var A=h.length+t.length+M.length,S=A>1)+h+t+M+S.slice(A);break;default:t=S+h+t+M}return u(t)}return y=void 0===y?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),M.toString=function(){return t+""},M}return{format:l,formatPrefix:function(t,n){var e=l(((t=Jc(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Zc(n)/3))),i=Math.pow(10,-r),o=uf[8+r/3];return function(t){return e(i*t)+o}}}}function ff(n){return of=cf(n),t.format=of.format,t.formatPrefix=of.formatPrefix,of}function sf(t){return Math.max(0,-Zc(Math.abs(t)))}function lf(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Zc(n)/3)))-Zc(Math.abs(t)))}function hf(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Zc(n)-Zc(t))+1}t.format=void 0,t.formatPrefix=void 0,ff({thousands:",",grouping:[3],currency:["$",""]});var df=1e-6,pf=1e-12,gf=Math.PI,yf=gf/2,vf=gf/4,_f=2*gf,bf=180/gf,mf=gf/180,xf=Math.abs,wf=Math.atan,Mf=Math.atan2,Tf=Math.cos,Af=Math.ceil,Sf=Math.exp,Ef=Math.hypot,Nf=Math.log,kf=Math.pow,Cf=Math.sin,Pf=Math.sign||function(t){return t>0?1:t<0?-1:0},zf=Math.sqrt,$f=Math.tan;function Df(t){return t>1?0:t<-1?gf:Math.acos(t)}function Rf(t){return t>1?yf:t<-1?-yf:Math.asin(t)}function Ff(t){return(t=Cf(t/2))*t}function qf(){}function Uf(t,n){t&&Of.hasOwnProperty(t.type)&&Of[t.type](t,n)}var If={Feature:function(t,n){Uf(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r=0?1:-1,i=r*e,o=Tf(n=(n*=mf)/2+vf),a=Cf(n),u=Vf*a,c=Gf*o+u*Tf(i),f=u*r*Cf(i);as.add(Mf(f,c)),Xf=t,Gf=o,Vf=a}function ds(t){return[Mf(t[1],t[0]),Rf(t[2])]}function ps(t){var n=t[0],e=t[1],r=Tf(e);return[r*Tf(n),r*Cf(n),Cf(e)]}function gs(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function ys(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function vs(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function _s(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function bs(t){var n=zf(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var ms,xs,ws,Ms,Ts,As,Ss,Es,Ns,ks,Cs,Ps,zs,$s,Ds,Rs,Fs={point:qs,lineStart:Is,lineEnd:Os,polygonStart:function(){Fs.point=Bs,Fs.lineStart=Ys,Fs.lineEnd=Ls,rs=new T,cs.polygonStart()},polygonEnd:function(){cs.polygonEnd(),Fs.point=qs,Fs.lineStart=Is,Fs.lineEnd=Os,as<0?(Wf=-(Kf=180),Zf=-(Qf=90)):rs>df?Qf=90:rs<-df&&(Zf=-90),os[0]=Wf,os[1]=Kf},sphere:function(){Wf=-(Kf=180),Zf=-(Qf=90)}};function qs(t,n){is.push(os=[Wf=t,Kf=t]),nQf&&(Qf=n)}function Us(t,n){var e=ps([t*mf,n*mf]);if(es){var r=ys(es,e),i=ys([r[1],-r[0],0],r);bs(i),i=ds(i);var o,a=t-Jf,u=a>0?1:-1,c=i[0]*bf*u,f=xf(a)>180;f^(u*JfQf&&(Qf=o):f^(u*Jf<(c=(c+360)%360-180)&&cQf&&(Qf=n)),f?tjs(Wf,Kf)&&(Kf=t):js(t,Kf)>js(Wf,Kf)&&(Wf=t):Kf>=Wf?(tKf&&(Kf=t)):t>Jf?js(Wf,t)>js(Wf,Kf)&&(Kf=t):js(t,Kf)>js(Wf,Kf)&&(Wf=t)}else is.push(os=[Wf=t,Kf=t]);nQf&&(Qf=n),es=e,Jf=t}function Is(){Fs.point=Us}function Os(){os[0]=Wf,os[1]=Kf,Fs.point=qs,es=null}function Bs(t,n){if(es){var e=t-Jf;rs.add(xf(e)>180?e+(e>0?360:-360):e)}else ts=t,ns=n;cs.point(t,n),Us(t,n)}function Ys(){cs.lineStart()}function Ls(){Bs(ts,ns),cs.lineEnd(),xf(rs)>df&&(Wf=-(Kf=180)),os[0]=Wf,os[1]=Kf,es=null}function js(t,n){return(n-=t)<0?n+360:n}function Hs(t,n){return t[0]-n[0]}function Xs(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:ngf&&(t-=Math.round(t/_f)*_f),[t,n]}function ul(t,n,e){return(t%=_f)?n||e?ol(fl(t),sl(n,e)):fl(t):n||e?sl(n,e):al}function cl(t){return function(n,e){return xf(n+=t)>gf&&(n-=Math.round(n/_f)*_f),[n,e]}}function fl(t){var n=cl(t);return n.invert=cl(-t),n}function sl(t,n){var e=Tf(t),r=Cf(t),i=Tf(n),o=Cf(n);function a(t,n){var a=Tf(n),u=Tf(t)*a,c=Cf(t)*a,f=Cf(n),s=f*e+u*r;return[Mf(c*i-s*o,u*e-f*r),Rf(s*i+c*o)]}return a.invert=function(t,n){var a=Tf(n),u=Tf(t)*a,c=Cf(t)*a,f=Cf(n),s=f*i-c*o;return[Mf(c*i+f*o,u*e+s*r),Rf(s*e-u*r)]},a}function ll(t){function n(n){return(n=t(n[0]*mf,n[1]*mf))[0]*=bf,n[1]*=bf,n}return t=ul(t[0]*mf,t[1]*mf,t.length>2?t[2]*mf:0),n.invert=function(n){return(n=t.invert(n[0]*mf,n[1]*mf))[0]*=bf,n[1]*=bf,n},n}function hl(t,n,e,r,i,o){if(e){var a=Tf(n),u=Cf(n),c=r*e;null==i?(i=n+r*_f,o=n-c/2):(i=dl(a,i),o=dl(a,o),(r>0?io)&&(i+=r*_f));for(var f,s=i;r>0?s>o:s1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function gl(t,n){return xf(t[0]-n[0])=0;--o)i.point((s=f[o])[0],s[1]);else r(h.x,h.p.x,-1,i);h=h.p}f=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function _l(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0?1:-1,E=S*A,N=E>gf,k=y*w;if(c.add(Mf(k*S*Cf(E),v*M+k*Tf(E))),a+=N?A+S*_f:A,N^p>=e^m>=e){var C=ys(ps(d),ps(b));bs(C);var P=ys(o,C);bs(P);var z=(N^A>=0?-1:1)*Rf(P[2]);(r>z||r===z&&(C[0]||C[1]))&&(u+=N^A>=0?1:-1)}}return(a<-df||a0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t1&&2&c&&h.push(h.pop().concat(h.shift())),a.push(h.filter(wl))}return h}}function wl(t){return t.length>1}function Ml(t,n){return((t=t.x)[0]<0?t[1]-yf-df:yf-t[1])-((n=n.x)[0]<0?n[1]-yf-df:yf-n[1])}al.invert=al;var Tl=xl((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,a){var u=o>0?gf:-gf,c=xf(o-e);xf(c-gf)0?yf:-yf),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),n=0):i!==u&&c>=gf&&(xf(e-i)df?wf((Cf(n)*(o=Tf(r))*Cf(e)-Cf(r)*(i=Tf(n))*Cf(t))/(i*o*a)):(n+r)/2}(e,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),n=0),t.point(e=o,r=a),i=u},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}),(function(t,n,e,r){var i;if(null==t)i=e*yf,r.point(-gf,i),r.point(0,i),r.point(gf,i),r.point(gf,0),r.point(gf,-i),r.point(0,-i),r.point(-gf,-i),r.point(-gf,0),r.point(-gf,i);else if(xf(t[0]-n[0])>df){var o=t[0]0,i=xf(n)>df;function o(t,e){return Tf(t)*Tf(e)>n}function a(t,e,r){var i=[1,0,0],o=ys(ps(t),ps(e)),a=gs(o,o),u=o[0],c=a-u*u;if(!c)return!r&&t;var f=n*a/c,s=-n*u/c,l=ys(i,o),h=_s(i,f);vs(h,_s(o,s));var d=l,p=gs(h,d),g=gs(d,d),y=p*p-g*(gs(h,h)-1);if(!(y<0)){var v=zf(y),_=_s(d,(-p-v)/g);if(vs(_,h),_=ds(_),!r)return _;var b,m=t[0],x=e[0],w=t[1],M=e[1];x0^_[1]<(xf(_[0]-m)gf^(m<=_[0]&&_[0]<=x)){var S=_s(d,(-p+v)/g);return vs(S,h),[_,ds(S)]}}}function u(n,e){var i=r?t:gf-t,o=0;return n<-i?o|=1:n>i&&(o|=2),e<-i?o|=4:e>i&&(o|=8),o}return xl(o,(function(t){var n,e,c,f,s;return{lineStart:function(){f=c=!1,s=1},point:function(l,h){var d,p=[l,h],g=o(l,h),y=r?g?0:u(l,h):g?u(l+(l<0?gf:-gf),h):0;if(!n&&(f=c=g)&&t.lineStart(),g!==c&&(!(d=a(n,p))||gl(n,d)||gl(p,d))&&(p[2]=1),g!==c)s=0,g?(t.lineStart(),d=a(p,n),t.point(d[0],d[1])):(d=a(n,p),t.point(d[0],d[1],2),t.lineEnd()),n=d;else if(i&&n&&r^g){var v;y&e||!(v=a(p,n,!0))||(s=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1],3)))}!g||n&&gl(n,p)||t.point(p[0],p[1]),n=p,c=g,e=y},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return s|(f&&c)<<1}}}),(function(n,r,i,o){hl(o,t,e,i,n,r)}),r?[0,-t]:[-gf,t-gf])}var Sl,El,Nl,kl,Cl=1e9,Pl=-Cl;function zl(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,u,f){var s=0,l=0;if(null==i||(s=a(i,u))!==(l=a(o,u))||c(i,o)<0^u>0)do{f.point(0===s||3===s?t:e,s>1?r:n)}while((s=(s+u+4)%4)!==l);else f.point(o[0],o[1])}function a(r,i){return xf(r[0]-t)0?0:3:xf(r[0]-e)0?2:1:xf(r[1]-n)0?1:0:i>0?3:2}function u(t,n){return c(t.x,n.x)}function c(t,n){var e=a(t,1),r=a(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(a){var c,f,s,l,h,d,p,g,y,v,_,b=a,m=pl(),x={point:w,lineStart:function(){x.point=M,f&&f.push(s=[]);v=!0,y=!1,p=g=NaN},lineEnd:function(){c&&(M(l,h),d&&y&&m.rejoin(),c.push(m.result()));x.point=w,y&&b.lineEnd()},polygonStart:function(){b=m,c=[],f=[],_=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=f.length;er&&(h-o)*(r-a)>(d-a)*(t-o)&&++n:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--n;return n}(),e=_&&n,i=(c=ft(c)).length;(e||i)&&(a.polygonStart(),e&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&vl(c,u,n,o,a),a.polygonEnd());b=a,c=f=s=null}};function w(t,n){i(t,n)&&b.point(t,n)}function M(o,a){var u=i(o,a);if(f&&s.push([o,a]),v)l=o,h=a,d=u,v=!1,u&&(b.lineStart(),b.point(o,a));else if(u&&y)b.point(o,a);else{var c=[p=Math.max(Pl,Math.min(Cl,p)),g=Math.max(Pl,Math.min(Cl,g))],m=[o=Math.max(Pl,Math.min(Cl,o)),a=Math.max(Pl,Math.min(Cl,a))];!function(t,n,e,r,i,o){var a,u=t[0],c=t[1],f=0,s=1,l=n[0]-u,h=n[1]-c;if(a=e-u,l||!(a>0)){if(a/=l,l<0){if(a0){if(a>s)return;a>f&&(f=a)}if(a=i-u,l||!(a<0)){if(a/=l,l<0){if(a>s)return;a>f&&(f=a)}else if(l>0){if(a0)){if(a/=h,h<0){if(a0){if(a>s)return;a>f&&(f=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>s)return;a>f&&(f=a)}else if(h>0){if(a0&&(t[0]=u+f*l,t[1]=c+f*h),s<1&&(n[0]=u+s*l,n[1]=c+s*h),!0}}}}}(c,m,t,n,e,r)?u&&(b.lineStart(),b.point(o,a),_=!1):(y||(b.lineStart(),b.point(c[0],c[1])),b.point(m[0],m[1]),u||b.lineEnd(),_=!1)}p=o,g=a,y=u}return x}}var $l={sphere:qf,point:qf,lineStart:function(){$l.point=Rl,$l.lineEnd=Dl},lineEnd:qf,polygonStart:qf,polygonEnd:qf};function Dl(){$l.point=$l.lineEnd=qf}function Rl(t,n){El=t*=mf,Nl=Cf(n*=mf),kl=Tf(n),$l.point=Fl}function Fl(t,n){t*=mf;var e=Cf(n*=mf),r=Tf(n),i=xf(t-El),o=Tf(i),a=r*Cf(i),u=kl*e-Nl*r*o,c=Nl*e+kl*r*o;Sl.add(Mf(zf(a*a+u*u),c)),El=t,Nl=e,kl=r}function ql(t){return Sl=new T,Lf(t,$l),+Sl}var Ul=[null,null],Il={type:"LineString",coordinates:Ul};function Ol(t,n){return Ul[0]=t,Ul[1]=n,ql(Il)}var Bl={Feature:function(t,n){return Ll(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r0&&(i=Ol(t[o],t[o-1]))>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))df})).map(c)).concat(lt(Af(o/d)*d,i,d).filter((function(t){return xf(t%g)>df})).map(f))}return v.lines=function(){return _().map((function(t){return{type:"LineString",coordinates:t}}))},v.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(l(a).slice(1),s(e).reverse().slice(1),l(u).reverse().slice(1))]}},v.extent=function(t){return arguments.length?v.extentMajor(t).extentMinor(t):v.extentMinor()},v.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],u=+t[0][1],a=+t[1][1],r>e&&(t=r,r=e,e=t),u>a&&(t=u,u=a,a=t),v.precision(y)):[[r,u],[e,a]]},v.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],o=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),o>i&&(e=o,o=i,i=e),v.precision(y)):[[n,o],[t,i]]},v.step=function(t){return arguments.length?v.stepMajor(t).stepMinor(t):v.stepMinor()},v.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],v):[p,g]},v.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],v):[h,d]},v.precision=function(h){return arguments.length?(y=+h,c=Wl(o,i,90),f=Zl(n,t,y),s=Wl(u,a,90),l=Zl(r,e,y),v):y},v.extentMajor([[-180,-90+df],[180,90-df]]).extentMinor([[-180,-80-df],[180,80+df]])}var Ql,Jl,th,nh,eh=t=>t,rh=new T,ih=new T,oh={point:qf,lineStart:qf,lineEnd:qf,polygonStart:function(){oh.lineStart=ah,oh.lineEnd=fh},polygonEnd:function(){oh.lineStart=oh.lineEnd=oh.point=qf,rh.add(xf(ih)),ih=new T},result:function(){var t=rh/2;return rh=new T,t}};function ah(){oh.point=uh}function uh(t,n){oh.point=ch,Ql=th=t,Jl=nh=n}function ch(t,n){ih.add(nh*t-th*n),th=t,nh=n}function fh(){ch(Ql,Jl)}var sh=oh,lh=1/0,hh=lh,dh=-lh,ph=dh,gh={point:function(t,n){tdh&&(dh=t);nph&&(ph=n)},lineStart:qf,lineEnd:qf,polygonStart:qf,polygonEnd:qf,result:function(){var t=[[lh,hh],[dh,ph]];return dh=ph=-(hh=lh=1/0),t}};var yh,vh,_h,bh,mh=gh,xh=0,wh=0,Mh=0,Th=0,Ah=0,Sh=0,Eh=0,Nh=0,kh=0,Ch={point:Ph,lineStart:zh,lineEnd:Rh,polygonStart:function(){Ch.lineStart=Fh,Ch.lineEnd=qh},polygonEnd:function(){Ch.point=Ph,Ch.lineStart=zh,Ch.lineEnd=Rh},result:function(){var t=kh?[Eh/kh,Nh/kh]:Sh?[Th/Sh,Ah/Sh]:Mh?[xh/Mh,wh/Mh]:[NaN,NaN];return xh=wh=Mh=Th=Ah=Sh=Eh=Nh=kh=0,t}};function Ph(t,n){xh+=t,wh+=n,++Mh}function zh(){Ch.point=$h}function $h(t,n){Ch.point=Dh,Ph(_h=t,bh=n)}function Dh(t,n){var e=t-_h,r=n-bh,i=zf(e*e+r*r);Th+=i*(_h+t)/2,Ah+=i*(bh+n)/2,Sh+=i,Ph(_h=t,bh=n)}function Rh(){Ch.point=Ph}function Fh(){Ch.point=Uh}function qh(){Ih(yh,vh)}function Uh(t,n){Ch.point=Ih,Ph(yh=_h=t,vh=bh=n)}function Ih(t,n){var e=t-_h,r=n-bh,i=zf(e*e+r*r);Th+=i*(_h+t)/2,Ah+=i*(bh+n)/2,Sh+=i,Eh+=(i=bh*t-_h*n)*(_h+t),Nh+=i*(bh+n),kh+=3*i,Ph(_h=t,bh=n)}var Oh=Ch;function Bh(t){this._context=t}Bh.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,_f)}},result:qf};var Yh,Lh,jh,Hh,Xh,Gh=new T,Vh={point:qf,lineStart:function(){Vh.point=Wh},lineEnd:function(){Yh&&Zh(Lh,jh),Vh.point=qf},polygonStart:function(){Yh=!0},polygonEnd:function(){Yh=null},result:function(){var t=+Gh;return Gh=new T,t}};function Wh(t,n){Vh.point=Zh,Lh=Hh=t,jh=Xh=n}function Zh(t,n){Hh-=t,Xh-=n,Gh.add(zf(Hh*Hh+Xh*Xh)),Hh=t,Xh=n}var Kh=Vh;let Qh,Jh,td,nd;class ed{constructor(t){this._append=null==t?rd:function(t){const n=Math.floor(t);if(!(n>=0))throw new RangeError(`invalid digits: ${t}`);if(n>15)return rd;if(n!==Qh){const t=10**n;Qh=n,Jh=function(n){let e=1;this._+=n[0];for(const r=n.length;e4*n&&g--){var m=a+h,x=u+d,w=c+p,M=zf(m*m+x*x+w*w),T=Rf(w/=M),A=xf(xf(w)-1)n||xf((v*k+_*C)/b-.5)>.3||a*h+u*d+c*p2?t[2]%360*mf:0,k()):[y*bf,v*bf,_*bf]},E.angle=function(t){return arguments.length?(b=t%360*mf,k()):b*bf},E.reflectX=function(t){return arguments.length?(m=t?-1:1,k()):m<0},E.reflectY=function(t){return arguments.length?(x=t?-1:1,k()):x<0},E.precision=function(t){return arguments.length?(a=dd(u,S=t*t),C()):zf(S)},E.fitExtent=function(t,n){return ud(E,t,n)},E.fitSize=function(t,n){return cd(E,t,n)},E.fitWidth=function(t,n){return fd(E,t,n)},E.fitHeight=function(t,n){return sd(E,t,n)},function(){return n=t.apply(this,arguments),E.invert=n.invert&&N,k()}}function _d(t){var n=0,e=gf/3,r=vd(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*mf,e=t[1]*mf):[n*bf,e*bf]},i}function bd(t,n){var e=Cf(t),r=(e+Cf(n))/2;if(xf(r)0?n<-yf+df&&(n=-yf+df):n>yf-df&&(n=yf-df);var e=i/kf(Nd(n),r);return[e*Cf(r*t),i-e*Tf(r*t)]}return o.invert=function(t,n){var e=i-n,o=Pf(r)*zf(t*t+e*e),a=Mf(t,xf(e))*Pf(e);return e*r<0&&(a-=gf*Pf(t)*Pf(e)),[a/r,2*wf(kf(i/o,1/r))-yf]},o}function Cd(t,n){return[t,n]}function Pd(t,n){var e=Tf(t),r=t===n?Cf(t):(e-Tf(n))/(n-t),i=e/r+t;if(xf(r)=0;)n+=e[r].value;else n=1;t.value=n}function Gd(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=Wd)):void 0===n&&(n=Vd);for(var e,r,i,o,a,u=new Qd(t),c=[u];e=c.pop();)if((i=n(e.data))&&(a=(i=Array.from(i)).length))for(e.children=i,o=a-1;o>=0;--o)c.push(r=i[o]=new Qd(i[o])),r.parent=e,r.depth=e.depth+1;return u.eachBefore(Kd)}function Vd(t){return t.children}function Wd(t){return Array.isArray(t)?t[1]:null}function Zd(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Kd(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Qd(t){this.data=t,this.depth=this.height=0,this.parent=null}function Jd(t){return null==t?null:tp(t)}function tp(t){if("function"!=typeof t)throw new Error;return t}function np(){return 0}function ep(t){return function(){return t}}qd.invert=function(t,n){for(var e,r=n,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=e=(r*(zd+$d*i+o*(Dd+Rd*i))-n)/(zd+3*$d*i+o*(7*Dd+9*Rd*i)))*r)*i*i,!(xf(e)df&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},Od.invert=Md(Rf),Bd.invert=Md((function(t){return 2*wf(t)})),Yd.invert=function(t,n){return[-n,2*wf(Sf(t))-yf]},Qd.prototype=Gd.prototype={constructor:Qd,count:function(){return this.eachAfter(Xd)},each:function(t,n){let e=-1;for(const r of this)t.call(n,r,++e,this);return this},eachAfter:function(t,n){for(var e,r,i,o=this,a=[o],u=[],c=-1;o=a.pop();)if(u.push(o),e=o.children)for(r=0,i=e.length;r=0;--r)o.push(e[r]);return this},find:function(t,n){let e=-1;for(const r of this)if(t.call(n,r,++e,this))return r},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;t=e.pop(),n=r.pop();for(;t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return Gd(this).eachBefore(Zd)},[Symbol.iterator]:function*(){var t,n,e,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,n=i.children)for(e=0,r=n.length;e(t=(rp*t+ip)%op)/op}function up(t,n){for(var e,r,i=0,o=(t=function(t,n){let e,r,i=t.length;for(;i;)r=n()*i--|0,e=t[i],t[i]=t[r],t[r]=e;return t}(Array.from(t),n)).length,a=[];i0&&e*e>r*r+i*i}function lp(t,n){for(var e=0;e1e-6?(E+Math.sqrt(E*E-4*S*N))/(2*S):N/E);return{x:r+w+M*k,y:i+T+A*k,r:k}}function gp(t,n,e){var r,i,o,a,u=t.x-n.x,c=t.y-n.y,f=u*u+c*c;f?(i=n.r+e.r,i*=i,a=t.r+e.r,i>(a*=a)?(r=(f+a-i)/(2*f),o=Math.sqrt(Math.max(0,a/f-r*r)),e.x=t.x-r*u-o*c,e.y=t.y-r*c+o*u):(r=(f+i-a)/(2*f),o=Math.sqrt(Math.max(0,i/f-r*r)),e.x=n.x+r*u-o*c,e.y=n.y+r*c+o*u)):(e.x=n.x+e.r,e.y=n.y)}function yp(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function vp(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function _p(t){this._=t,this.next=null,this.previous=null}function bp(t,n){if(!(o=(t=function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}(t)).length))return 0;var e,r,i,o,a,u,c,f,s,l,h;if((e=t[0]).x=0,e.y=0,!(o>1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(o>2))return e.r+r.r;gp(r,e,i=t[2]),e=new _p(e),r=new _p(r),i=new _p(i),e.next=i.previous=r,r.next=e.previous=i,i.next=r.previous=e;t:for(c=3;c1&&!zp(t,n););return t.slice(0,n)}function zp(t,n){if("/"===t[n]){let e=0;for(;n>0&&"\\"===t[--n];)++e;if(0==(1&e))return!0}return!1}function $p(t,n){return t.parent===n.parent?1:2}function Dp(t){var n=t.children;return n?n[0]:t.t}function Rp(t){var n=t.children;return n?n[n.length-1]:t.t}function Fp(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function qp(t,n,e){return t.a.parent===n.parent?t.a:e}function Up(t,n){this._=t,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=n}function Ip(t,n,e,r,i){for(var o,a=t.children,u=-1,c=a.length,f=t.value&&(i-e)/t.value;++uh&&(h=u),y=s*s*g,(d=Math.max(h/y,y/l))>p){s-=u;break}p=d}v.push(a={value:s,dice:c1?n:1)},e}(Op);var Lp=function t(n){function e(t,e,r,i,o){if((a=t._squarify)&&a.ratio===n)for(var a,u,c,f,s,l=-1,h=a.length,d=t.value;++l1?n:1)},e}(Op);function jp(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function Hp(t,n){return t[0]-n[0]||t[1]-n[1]}function Xp(t){const n=t.length,e=[0,1];let r,i=2;for(r=2;r1&&jp(t[e[i-2]],t[e[i-1]],t[r])<=0;)--i;e[i++]=r}return e.slice(0,i)}var Gp=Math.random,Vp=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(Gp),Wp=function t(n){function e(t,e){return arguments.length<2&&(e=t,t=0),t=Math.floor(t),e=Math.floor(e)-t,function(){return Math.floor(n()*e+t)}}return e.source=t,e}(Gp),Zp=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(Gp),Kp=function t(n){var e=Zp.source(n);function r(){var t=e.apply(this,arguments);return function(){return Math.exp(t())}}return r.source=t,r}(Gp),Qp=function t(n){function e(t){return(t=+t)<=0?()=>0:function(){for(var e=0,r=t;r>1;--r)e+=n();return e+r*n()}}return e.source=t,e}(Gp),Jp=function t(n){var e=Qp.source(n);function r(t){if(0==(t=+t))return n;var r=e(t);return function(){return r()/t}}return r.source=t,r}(Gp),tg=function t(n){function e(t){return function(){return-Math.log1p(-n())/t}}return e.source=t,e}(Gp),ng=function t(n){function e(t){if((t=+t)<0)throw new RangeError("invalid alpha");return t=1/-t,function(){return Math.pow(1-n(),t)}}return e.source=t,e}(Gp),eg=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return function(){return Math.floor(n()+t)}}return e.source=t,e}(Gp),rg=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return 0===t?()=>1/0:1===t?()=>1:(t=Math.log1p(-t),function(){return 1+Math.floor(Math.log1p(-n())/t)})}return e.source=t,e}(Gp),ig=function t(n){var e=Zp.source(n)();function r(t,r){if((t=+t)<0)throw new RangeError("invalid k");if(0===t)return()=>0;if(r=null==r?1:+r,1===t)return()=>-Math.log1p(-n())*r;var i=(t<1?t+1:t)-1/3,o=1/(3*Math.sqrt(i)),a=t<1?()=>Math.pow(n(),1/t):()=>1;return function(){do{do{var t=e(),u=1+o*t}while(u<=0);u*=u*u;var c=1-n()}while(c>=1-.0331*t*t*t*t&&Math.log(c)>=.5*t*t+i*(1-u+Math.log(u)));return i*u*a()*r}}return r.source=t,r}(Gp),og=function t(n){var e=ig.source(n);function r(t,n){var r=e(t),i=e(n);return function(){var t=r();return 0===t?0:t/(t+i())}}return r.source=t,r}(Gp),ag=function t(n){var e=rg.source(n),r=og.source(n);function i(t,n){return t=+t,(n=+n)>=1?()=>t:n<=0?()=>0:function(){for(var i=0,o=t,a=n;o*a>16&&o*(1-a)>16;){var u=Math.floor((o+1)*a),c=r(u,o-u+1)();c<=a?(i+=u,o-=u,a=(a-c)/(1-c)):(o=u-1,a/=c)}for(var f=a<.5,s=e(f?a:1-a),l=s(),h=0;l<=o;++h)l+=s();return i+(f?h:o-h)}}return i.source=t,i}(Gp),ug=function t(n){function e(t,e,r){var i;return 0==(t=+t)?i=t=>-Math.log(t):(t=1/t,i=n=>Math.pow(n,t)),e=null==e?0:+e,r=null==r?1:+r,function(){return e+r*i(-Math.log1p(-n()))}}return e.source=t,e}(Gp),cg=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){return t+e*Math.tan(Math.PI*n())}}return e.source=t,e}(Gp),fg=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){var r=n();return t+e*Math.log(r/(1-r))}}return e.source=t,e}(Gp),sg=function t(n){var e=ig.source(n),r=ag.source(n);function i(t){return function(){for(var i=0,o=t;o>16;){var a=Math.floor(.875*o),u=e(a)();if(u>o)return i+r(a-1,o/u)();i+=a,o-=u}for(var c=-Math.log1p(-n()),f=0;c<=o;++f)c-=Math.log1p(-n());return i+f}}return i.source=t,i}(Gp);const lg=1/4294967296;function hg(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function dg(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}const pg=Symbol("implicit");function gg(){var t=new InternMap,n=[],e=[],r=pg;function i(i){let o=t.get(i);if(void 0===o){if(r!==pg)return r;t.set(i,o=n.push(i)-1)}return e[o%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new InternMap;for(const r of e)t.has(r)||t.set(r,n.push(r)-1);return i},i.range=function(t){return arguments.length?(e=Array.from(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return gg(n,e).unknown(r)},hg.apply(i,arguments),i}function yg(){var t,n,e=gg().unknown(void 0),r=e.domain,i=e.range,o=0,a=1,u=!1,c=0,f=0,s=.5;function l(){var e=r().length,l=an&&(e=t,t=n,n=e),function(e){return Math.max(t,Math.min(n,e))}}(a[0],a[t-1])),r=t>2?Mg:wg,i=o=null,l}function l(n){return null==n||isNaN(n=+n)?e:(i||(i=r(a.map(t),u,c)))(t(f(n)))}return l.invert=function(e){return f(n((o||(o=r(u,a.map(t),Yr)))(e)))},l.domain=function(t){return arguments.length?(a=Array.from(t,_g),s()):a.slice()},l.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},l.rangeRound=function(t){return u=Array.from(t),c=Vr,s()},l.clamp=function(t){return arguments.length?(f=!!t||mg,s()):f!==mg},l.interpolate=function(t){return arguments.length?(c=t,s()):c},l.unknown=function(t){return arguments.length?(e=t,l):e},function(e,r){return t=e,n=r,s()}}function Sg(){return Ag()(mg,mg)}function Eg(n,e,r,i){var o,a=W(n,e,r);switch((i=Jc(null==i?",f":i)).type){case"s":var u=Math.max(Math.abs(n),Math.abs(e));return null!=i.precision||isNaN(o=lf(a,u))||(i.precision=o),t.formatPrefix(i,u);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=hf(a,Math.max(Math.abs(n),Math.abs(e))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=sf(a))||(i.precision=o-2*("%"===i.type))}return t.format(i)}function Ng(t){var n=t.domain;return t.ticks=function(t){var e=n();return G(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return Eg(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i,o=n(),a=0,u=o.length-1,c=o[a],f=o[u],s=10;for(f0;){if((i=V(c,f,e))===r)return o[a]=c,o[u]=f,n(o);if(i>0)c=Math.floor(c/i)*i,f=Math.ceil(f/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,f=Math.floor(f*i)/i}r=i}return t},t}function kg(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a-t(-n,e)}function Fg(n){const e=n(Cg,Pg),r=e.domain;let i,o,a=10;function u(){return i=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),n=>Math.log(n)/t)}(a),o=function(t){return 10===t?Dg:t===Math.E?Math.exp:n=>Math.pow(t,n)}(a),r()[0]<0?(i=Rg(i),o=Rg(o),n(zg,$g)):n(Cg,Pg),e}return e.base=function(t){return arguments.length?(a=+t,u()):a},e.domain=function(t){return arguments.length?(r(t),u()):r()},e.ticks=t=>{const n=r();let e=n[0],u=n[n.length-1];const c=u0){for(;l<=h;++l)for(f=1;fu)break;p.push(s)}}else for(;l<=h;++l)for(f=a-1;f>=1;--f)if(s=l>0?f/o(-l):f*o(l),!(su)break;p.push(s)}2*p.length{if(null==n&&(n=10),null==r&&(r=10===a?"s":","),"function"!=typeof r&&(a%1||null!=(r=Jc(r)).precision||(r.trim=!0),r=t.format(r)),n===1/0)return r;const u=Math.max(1,a*n/e.ticks().length);return t=>{let n=t/o(Math.round(i(t)));return n*ar(kg(r(),{floor:t=>o(Math.floor(i(t))),ceil:t=>o(Math.ceil(i(t)))})),e}function qg(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function Ug(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function Ig(t){var n=1,e=t(qg(n),Ug(n));return e.constant=function(e){return arguments.length?t(qg(n=+e),Ug(n)):n},Ng(e)}function Og(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Bg(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Yg(t){return t<0?-t*t:t*t}function Lg(t){var n=t(mg,mg),e=1;return n.exponent=function(n){return arguments.length?1===(e=+n)?t(mg,mg):.5===e?t(Bg,Yg):t(Og(e),Og(1/e)):e},Ng(n)}function jg(){var t=Lg(Ag());return t.copy=function(){return Tg(t,jg()).exponent(t.exponent())},hg.apply(t,arguments),t}function Hg(t){return Math.sign(t)*t*t}const Xg=new Date,Gg=new Date;function Vg(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=n=>(t(n=new Date(+n)),n),i.ceil=e=>(t(e=new Date(e-1)),n(e,1),t(e),e),i.round=t=>{const n=i(t),e=i.ceil(t);return t-n(n(t=new Date(+t),null==e?1:Math.floor(e)),t),i.range=(e,r,o)=>{const a=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e0))return a;let u;do{a.push(u=new Date(+e)),n(e,o),t(e)}while(uVg((n=>{if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),((t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););})),e&&(i.count=(n,r)=>(Xg.setTime(+n),Gg.setTime(+r),t(Xg),t(Gg),Math.floor(e(Xg,Gg))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?n=>r(n)%t==0:n=>i.count(0,n)%t==0):i:null)),i}const Wg=Vg((()=>{}),((t,n)=>{t.setTime(+t+n)}),((t,n)=>n-t));Wg.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Vg((n=>{n.setTime(Math.floor(n/t)*t)}),((n,e)=>{n.setTime(+n+e*t)}),((n,e)=>(e-n)/t)):Wg:null);const Zg=Wg.range,Kg=1e3,Qg=6e4,Jg=36e5,ty=864e5,ny=6048e5,ey=2592e6,ry=31536e6,iy=Vg((t=>{t.setTime(t-t.getMilliseconds())}),((t,n)=>{t.setTime(+t+n*Kg)}),((t,n)=>(n-t)/Kg),(t=>t.getUTCSeconds())),oy=iy.range,ay=Vg((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Kg)}),((t,n)=>{t.setTime(+t+n*Qg)}),((t,n)=>(n-t)/Qg),(t=>t.getMinutes())),uy=ay.range,cy=Vg((t=>{t.setUTCSeconds(0,0)}),((t,n)=>{t.setTime(+t+n*Qg)}),((t,n)=>(n-t)/Qg),(t=>t.getUTCMinutes())),fy=cy.range,sy=Vg((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Kg-t.getMinutes()*Qg)}),((t,n)=>{t.setTime(+t+n*Jg)}),((t,n)=>(n-t)/Jg),(t=>t.getHours())),ly=sy.range,hy=Vg((t=>{t.setUTCMinutes(0,0,0)}),((t,n)=>{t.setTime(+t+n*Jg)}),((t,n)=>(n-t)/Jg),(t=>t.getUTCHours())),dy=hy.range,py=Vg((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Qg)/ty),(t=>t.getDate()-1)),gy=py.range,yy=Vg((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/ty),(t=>t.getUTCDate()-1)),vy=yy.range,_y=Vg((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/ty),(t=>Math.floor(t/ty))),by=_y.range;function my(t){return Vg((n=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),((t,n)=>{t.setDate(t.getDate()+7*n)}),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Qg)/ny))}const xy=my(0),wy=my(1),My=my(2),Ty=my(3),Ay=my(4),Sy=my(5),Ey=my(6),Ny=xy.range,ky=wy.range,Cy=My.range,Py=Ty.range,zy=Ay.range,$y=Sy.range,Dy=Ey.range;function Ry(t){return Vg((n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+7*n)}),((t,n)=>(n-t)/ny))}const Fy=Ry(0),qy=Ry(1),Uy=Ry(2),Iy=Ry(3),Oy=Ry(4),By=Ry(5),Yy=Ry(6),Ly=Fy.range,jy=qy.range,Hy=Uy.range,Xy=Iy.range,Gy=Oy.range,Vy=By.range,Wy=Yy.range,Zy=Vg((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,n)=>{t.setMonth(t.getMonth()+n)}),((t,n)=>n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())),(t=>t.getMonth())),Ky=Zy.range,Qy=Vg((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)}),((t,n)=>n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth())),Jy=Qy.range,tv=Vg((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n)}),((t,n)=>n.getFullYear()-t.getFullYear()),(t=>t.getFullYear()));tv.every=t=>isFinite(t=Math.floor(t))&&t>0?Vg((n=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),((n,e)=>{n.setFullYear(n.getFullYear()+e*t)})):null;const nv=tv.range,ev=Vg((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)}),((t,n)=>n.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));ev.every=t=>isFinite(t=Math.floor(t))&&t>0?Vg((n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),((n,e)=>{n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null;const rv=ev.range;function iv(t,n,e,i,o,a){const u=[[iy,1,Kg],[iy,5,5e3],[iy,15,15e3],[iy,30,3e4],[a,1,Qg],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,Jg],[o,3,108e5],[o,6,216e5],[o,12,432e5],[i,1,ty],[i,2,1728e5],[e,1,ny],[n,1,ey],[n,3,7776e6],[t,1,ry]];function c(n,e,i){const o=Math.abs(e-n)/i,a=r((([,,t])=>t)).right(u,o);if(a===u.length)return t.every(W(n/ry,e/ry,i));if(0===a)return Wg.every(Math.max(W(n,e,i),1));const[c,f]=u[o/u[a-1][2]=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:k_,s:C_,S:Zv,u:Kv,U:Qv,V:t_,w:n_,W:e_,x:null,X:null,y:r_,Y:o_,Z:u_,"%":N_},m={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:c_,e:c_,f:d_,g:T_,G:S_,H:f_,I:s_,j:l_,L:h_,m:p_,M:g_,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:k_,s:C_,S:y_,u:v_,U:__,V:m_,w:x_,W:w_,x:null,X:null,y:M_,Y:A_,Z:E_,"%":N_},x={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.w=h.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=_.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return T(t,n,e,r)},d:zv,e:zv,f:Uv,g:Nv,G:Ev,H:Dv,I:Dv,j:$v,L:qv,m:Pv,M:Rv,p:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.p=s.get(r[0].toLowerCase()),e+r[0].length):-1},q:Cv,Q:Ov,s:Bv,S:Fv,u:Mv,U:Tv,V:Av,w:wv,W:Sv,x:function(t,n,r){return T(t,e,n,r)},X:function(t,n,e){return T(t,r,n,e)},y:Nv,Y:Ev,Z:kv,"%":Iv};function w(t,n){return function(e){var r,i,o,a=[],u=-1,c=0,f=t.length;for(e instanceof Date||(e=new Date(+e));++u53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=sv(lv(o.y,0,1))).getUTCDay(),r=i>4||0===i?qy.ceil(r):qy(r),r=yy.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=fv(lv(o.y,0,1))).getDay(),r=i>4||0===i?wy.ceil(r):wy(r),r=py.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?sv(lv(o.y,0,1)).getUTCDay():fv(lv(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,sv(o)):fv(o)}}function T(t,n,e,r){for(var i,o,a=0,u=n.length,c=e.length;a=c)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=x[i in pv?n.charAt(a++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),m.x=w(e,m),m.X=w(r,m),m.c=w(n,m),{format:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",m);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}var dv,pv={"-":"",_:" ",0:"0"},gv=/^\s*\d+/,yv=/^%/,vv=/[\\^$*+?|[\]().{}]/g;function _v(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o[t.toLowerCase(),n])))}function wv(t,n,e){var r=gv.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Mv(t,n,e){var r=gv.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function Tv(t,n,e){var r=gv.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function Av(t,n,e){var r=gv.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function Sv(t,n,e){var r=gv.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function Ev(t,n,e){var r=gv.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Nv(t,n,e){var r=gv.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function kv(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Cv(t,n,e){var r=gv.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Pv(t,n,e){var r=gv.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function zv(t,n,e){var r=gv.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function $v(t,n,e){var r=gv.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Dv(t,n,e){var r=gv.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Rv(t,n,e){var r=gv.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Fv(t,n,e){var r=gv.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function qv(t,n,e){var r=gv.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Uv(t,n,e){var r=gv.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function Iv(t,n,e){var r=yv.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Ov(t,n,e){var r=gv.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Bv(t,n,e){var r=gv.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function Yv(t,n){return _v(t.getDate(),n,2)}function Lv(t,n){return _v(t.getHours(),n,2)}function jv(t,n){return _v(t.getHours()%12||12,n,2)}function Hv(t,n){return _v(1+py.count(tv(t),t),n,3)}function Xv(t,n){return _v(t.getMilliseconds(),n,3)}function Gv(t,n){return Xv(t,n)+"000"}function Vv(t,n){return _v(t.getMonth()+1,n,2)}function Wv(t,n){return _v(t.getMinutes(),n,2)}function Zv(t,n){return _v(t.getSeconds(),n,2)}function Kv(t){var n=t.getDay();return 0===n?7:n}function Qv(t,n){return _v(xy.count(tv(t)-1,t),n,2)}function Jv(t){var n=t.getDay();return n>=4||0===n?Ay(t):Ay.ceil(t)}function t_(t,n){return t=Jv(t),_v(Ay.count(tv(t),t)+(4===tv(t).getDay()),n,2)}function n_(t){return t.getDay()}function e_(t,n){return _v(wy.count(tv(t)-1,t),n,2)}function r_(t,n){return _v(t.getFullYear()%100,n,2)}function i_(t,n){return _v((t=Jv(t)).getFullYear()%100,n,2)}function o_(t,n){return _v(t.getFullYear()%1e4,n,4)}function a_(t,n){var e=t.getDay();return _v((t=e>=4||0===e?Ay(t):Ay.ceil(t)).getFullYear()%1e4,n,4)}function u_(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+_v(n/60|0,"0",2)+_v(n%60,"0",2)}function c_(t,n){return _v(t.getUTCDate(),n,2)}function f_(t,n){return _v(t.getUTCHours(),n,2)}function s_(t,n){return _v(t.getUTCHours()%12||12,n,2)}function l_(t,n){return _v(1+yy.count(ev(t),t),n,3)}function h_(t,n){return _v(t.getUTCMilliseconds(),n,3)}function d_(t,n){return h_(t,n)+"000"}function p_(t,n){return _v(t.getUTCMonth()+1,n,2)}function g_(t,n){return _v(t.getUTCMinutes(),n,2)}function y_(t,n){return _v(t.getUTCSeconds(),n,2)}function v_(t){var n=t.getUTCDay();return 0===n?7:n}function __(t,n){return _v(Fy.count(ev(t)-1,t),n,2)}function b_(t){var n=t.getUTCDay();return n>=4||0===n?Oy(t):Oy.ceil(t)}function m_(t,n){return t=b_(t),_v(Oy.count(ev(t),t)+(4===ev(t).getUTCDay()),n,2)}function x_(t){return t.getUTCDay()}function w_(t,n){return _v(qy.count(ev(t)-1,t),n,2)}function M_(t,n){return _v(t.getUTCFullYear()%100,n,2)}function T_(t,n){return _v((t=b_(t)).getUTCFullYear()%100,n,2)}function A_(t,n){return _v(t.getUTCFullYear()%1e4,n,4)}function S_(t,n){var e=t.getUTCDay();return _v((t=e>=4||0===e?Oy(t):Oy.ceil(t)).getUTCFullYear()%1e4,n,4)}function E_(){return"+0000"}function N_(){return"%"}function k_(t){return+t}function C_(t){return Math.floor(+t/1e3)}function P_(n){return dv=hv(n),t.timeFormat=dv.format,t.timeParse=dv.parse,t.utcFormat=dv.utcFormat,t.utcParse=dv.utcParse,dv}t.timeFormat=void 0,t.timeParse=void 0,t.utcFormat=void 0,t.utcParse=void 0,P_({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"]});var z_="%Y-%m-%dT%H:%M:%S.%LZ";var $_=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat(z_),D_=$_;var R_=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:t.utcParse(z_),F_=R_;function q_(t){return new Date(t)}function U_(t){return t instanceof Date?+t:+new Date(+t)}function I_(t,n,e,r,i,o,a,u,c,f){var s=Sg(),l=s.invert,h=s.domain,d=f(".%L"),p=f(":%S"),g=f("%I:%M"),y=f("%I %p"),v=f("%a %d"),_=f("%b %d"),b=f("%B"),m=f("%Y");function x(t){return(c(t)Fr(t[t.length-1]),rb=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(H_),ib=eb(rb),ob=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(H_),ab=eb(ob),ub=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(H_),cb=eb(ub),fb=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(H_),sb=eb(fb),lb=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(H_),hb=eb(lb),db=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(H_),pb=eb(db),gb=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(H_),yb=eb(gb),vb=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(H_),_b=eb(vb),bb=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(H_),mb=eb(bb),xb=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(H_),wb=eb(xb),Mb=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(H_),Tb=eb(Mb),Ab=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(H_),Sb=eb(Ab),Eb=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(H_),Nb=eb(Eb),kb=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(H_),Cb=eb(kb),Pb=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(H_),zb=eb(Pb),$b=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(H_),Db=eb($b),Rb=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(H_),Fb=eb(Rb),qb=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(H_),Ub=eb(qb),Ib=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(H_),Ob=eb(Ib),Bb=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(H_),Yb=eb(Bb),Lb=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(H_),jb=eb(Lb),Hb=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(H_),Xb=eb(Hb),Gb=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(H_),Vb=eb(Gb),Wb=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(H_),Zb=eb(Wb),Kb=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(H_),Qb=eb(Kb),Jb=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(H_),tm=eb(Jb),nm=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(H_),em=eb(nm);var rm=hi(Tr(300,.5,0),Tr(-240,.5,1)),im=hi(Tr(-100,.75,.35),Tr(80,1.5,.8)),om=hi(Tr(260,.75,.35),Tr(80,1.5,.8)),am=Tr();var um=Fe(),cm=Math.PI/3,fm=2*Math.PI/3;function sm(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var lm=sm(H_("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),hm=sm(H_("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),dm=sm(H_("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),pm=sm(H_("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function gm(t){return function(){return t}}const ym=Math.abs,vm=Math.atan2,_m=Math.cos,bm=Math.max,mm=Math.min,xm=Math.sin,wm=Math.sqrt,Mm=1e-12,Tm=Math.PI,Am=Tm/2,Sm=2*Tm;function Em(t){return t>=1?Am:t<=-1?-Am:Math.asin(t)}function Nm(t){let n=3;return t.digits=function(e){if(!arguments.length)return n;if(null==e)n=null;else{const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);n=t}return t},()=>new Ua(n)}function km(t){return t.innerRadius}function Cm(t){return t.outerRadius}function Pm(t){return t.startAngle}function zm(t){return t.endAngle}function $m(t){return t&&t.padAngle}function Dm(t,n,e,r,i,o,a){var u=t-e,c=n-r,f=(a?o:-o)/wm(u*u+c*c),s=f*c,l=-f*u,h=t+s,d=n+l,p=e+s,g=r+l,y=(h+p)/2,v=(d+g)/2,_=p-h,b=g-d,m=_*_+b*b,x=i-o,w=h*g-p*d,M=(b<0?-1:1)*wm(bm(0,x*x*m-w*w)),T=(w*b-_*M)/m,A=(-w*_-b*M)/m,S=(w*b+_*M)/m,E=(-w*_+b*M)/m,N=T-y,k=A-v,C=S-y,P=E-v;return N*N+k*k>C*C+P*P&&(T=S,A=E),{cx:T,cy:A,x01:-s,y01:-l,x11:T*(i/x-1),y11:A*(i/x-1)}}var Rm=Array.prototype.slice;function Fm(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function qm(t){this._context=t}function Um(t){return new qm(t)}function Im(t){return t[0]}function Om(t){return t[1]}function Bm(t,n){var e=gm(!0),r=null,i=Um,o=null,a=Nm(u);function u(u){var c,f,s,l=(u=Fm(u)).length,h=!1;for(null==r&&(o=i(s=a())),c=0;c<=l;++c)!(c=l;--h)u.point(v[h],_[h]);u.lineEnd(),u.areaEnd()}y&&(v[s]=+t(d,s,f),_[s]=+n(d,s,f),u.point(r?+r(d,s,f):v[s],e?+e(d,s,f):_[s]))}if(p)return u=null,p+""||null}function s(){return Bm().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?Im:gm(+t),n="function"==typeof n?n:gm(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?Om:gm(+e),f.x=function(n){return arguments.length?(t="function"==typeof n?n:gm(+n),r=null,f):t},f.x0=function(n){return arguments.length?(t="function"==typeof n?n:gm(+n),f):t},f.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:gm(+t),f):r},f.y=function(t){return arguments.length?(n="function"==typeof t?t:gm(+t),e=null,f):n},f.y0=function(t){return arguments.length?(n="function"==typeof t?t:gm(+t),f):n},f.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:gm(+t),f):e},f.lineX0=f.lineY0=function(){return s().x(t).y(n)},f.lineY1=function(){return s().x(t).y(e)},f.lineX1=function(){return s().x(r).y(n)},f.defined=function(t){return arguments.length?(i="function"==typeof t?t:gm(!!t),f):i},f.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),f):a},f.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),f):o},f}function Lm(t,n){return nt?1:n>=t?0:NaN}function jm(t){return t}qm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Hm=Gm(Um);function Xm(t){this._curve=t}function Gm(t){function n(n){return new Xm(t(n))}return n._curve=t,n}function Vm(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(Gm(t)):n()._curve},t}function Wm(){return Vm(Bm().curve(Hm))}function Zm(){var t=Ym().curve(Hm),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Vm(e())},delete t.lineX0,t.lineEndAngle=function(){return Vm(r())},delete t.lineX1,t.lineInnerRadius=function(){return Vm(i())},delete t.lineY0,t.lineOuterRadius=function(){return Vm(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(Gm(t)):n()._curve},t}function Km(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}Xm.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};class Qm{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}class Jm{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,0===this._point)this._point=1;else{const e=Km(this._x0,this._y0),r=Km(this._x0,this._y0=(this._y0+n)/2),i=Km(t,this._y0),o=Km(t,n);this._context.moveTo(...e),this._context.bezierCurveTo(...r,...i,...o)}this._x0=t,this._y0=n}}function tx(t){return new Qm(t,!0)}function nx(t){return new Qm(t,!1)}function ex(t){return new Jm(t)}function rx(t){return t.source}function ix(t){return t.target}function ox(t){let n=rx,e=ix,r=Im,i=Om,o=null,a=null,u=Nm(c);function c(){let c;const f=Rm.call(arguments),s=n.apply(this,f),l=e.apply(this,f);if(null==o&&(a=t(c=u())),a.lineStart(),f[0]=s,a.point(+r.apply(this,f),+i.apply(this,f)),f[0]=l,a.point(+r.apply(this,f),+i.apply(this,f)),a.lineEnd(),c)return a=null,c+""||null}return c.source=function(t){return arguments.length?(n=t,c):n},c.target=function(t){return arguments.length?(e=t,c):e},c.x=function(t){return arguments.length?(r="function"==typeof t?t:gm(+t),c):r},c.y=function(t){return arguments.length?(i="function"==typeof t?t:gm(+t),c):i},c.context=function(n){return arguments.length?(null==n?o=a=null:a=t(o=n),c):o},c}const ax=wm(3);var ux={draw(t,n){const e=.59436*wm(n+mm(n/28,.75)),r=e/2,i=r*ax;t.moveTo(0,e),t.lineTo(0,-e),t.moveTo(-i,-r),t.lineTo(i,r),t.moveTo(-i,r),t.lineTo(i,-r)}},cx={draw(t,n){const e=wm(n/Tm);t.moveTo(e,0),t.arc(0,0,e,0,Sm)}},fx={draw(t,n){const e=wm(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}};const sx=wm(1/3),lx=2*sx;var hx={draw(t,n){const e=wm(n/lx),r=e*sx;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},dx={draw(t,n){const e=.62625*wm(n);t.moveTo(0,-e),t.lineTo(e,0),t.lineTo(0,e),t.lineTo(-e,0),t.closePath()}},px={draw(t,n){const e=.87559*wm(n-mm(n/7,2));t.moveTo(-e,0),t.lineTo(e,0),t.moveTo(0,e),t.lineTo(0,-e)}},gx={draw(t,n){const e=wm(n),r=-e/2;t.rect(r,r,e,e)}},yx={draw(t,n){const e=.4431*wm(n);t.moveTo(e,e),t.lineTo(e,-e),t.lineTo(-e,-e),t.lineTo(-e,e),t.closePath()}};const vx=xm(Tm/10)/xm(7*Tm/10),_x=xm(Sm/10)*vx,bx=-_m(Sm/10)*vx;var mx={draw(t,n){const e=wm(.8908130915292852*n),r=_x*e,i=bx*e;t.moveTo(0,-e),t.lineTo(r,i);for(let n=1;n<5;++n){const o=Sm*n/5,a=_m(o),u=xm(o);t.lineTo(u*e,-a*e),t.lineTo(a*r-u*i,u*r+a*i)}t.closePath()}};const xx=wm(3);var wx={draw(t,n){const e=-wm(n/(3*xx));t.moveTo(0,2*e),t.lineTo(-xx*e,-e),t.lineTo(xx*e,-e),t.closePath()}};const Mx=wm(3);var Tx={draw(t,n){const e=.6824*wm(n),r=e/2,i=e*Mx/2;t.moveTo(0,-e),t.lineTo(i,r),t.lineTo(-i,r),t.closePath()}};const Ax=-.5,Sx=wm(3)/2,Ex=1/wm(12),Nx=3*(Ex/2+1);var kx={draw(t,n){const e=wm(n/Nx),r=e/2,i=e*Ex,o=r,a=e*Ex+e,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(Ax*r-Sx*i,Sx*r+Ax*i),t.lineTo(Ax*o-Sx*a,Sx*o+Ax*a),t.lineTo(Ax*u-Sx*c,Sx*u+Ax*c),t.lineTo(Ax*r+Sx*i,Ax*i-Sx*r),t.lineTo(Ax*o+Sx*a,Ax*a-Sx*o),t.lineTo(Ax*u+Sx*c,Ax*c-Sx*u),t.closePath()}},Cx={draw(t,n){const e=.6189*wm(n-mm(n/6,1.7));t.moveTo(-e,-e),t.lineTo(e,e),t.moveTo(-e,e),t.lineTo(e,-e)}};const Px=[cx,fx,hx,gx,mx,wx,kx],zx=[cx,px,Cx,Tx,ux,yx,dx];function $x(){}function Dx(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Rx(t){this._context=t}function Fx(t){this._context=t}function qx(t){this._context=t}function Ux(t,n){this._basis=new Rx(t),this._beta=n}Rx.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:Dx(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);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:Dx(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Fx.prototype={areaStart:$x,areaEnd:$x,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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:Dx(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},qx.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:Dx(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Ux.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,u=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*n[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var Ix=function t(n){function e(t){return 1===n?new Rx(t):new Ux(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function Ox(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function Bx(t,n){this._context=t,this._k=(1-n)/6}Bx.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:Ox(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Ox(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Yx=function t(n){function e(t){return new Bx(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Lx(t,n){this._context=t,this._k=(1-n)/6}Lx.prototype={areaStart:$x,areaEnd:$x,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(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Ox(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var jx=function t(n){function e(t){return new Lx(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Hx(t,n){this._context=t,this._k=(1-n)/6}Hx.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,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:Ox(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Xx=function t(n){function e(t){return new Hx(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Gx(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>Mm){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Mm){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*f+t._x1*t._l23_2a-n*t._l12_2a)/s,a=(a*f+t._y1*t._l23_2a-e*t._l12_2a)/s}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function Vx(t,n){this._context=t,this._alpha=n}Vx.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||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Gx(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Wx=function t(n){function e(t){return n?new Vx(t,n):new Bx(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Zx(t,n){this._context=t,this._alpha=n}Zx.prototype={areaStart:$x,areaEnd:$x,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(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Gx(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Kx=function t(n){function e(t){return n?new Zx(t,n):new Lx(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Qx(t,n){this._context=t,this._alpha=n}Qx.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,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:Gx(this,t,n)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Jx=function t(n){function e(t){return n?new Qx(t,n):new Hx(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function tw(t){this._context=t}function nw(t){return t<0?-1:1}function ew(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(nw(o)+nw(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function rw(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function iw(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*n,o-u,a-u*e,o,a)}function ow(t){this._context=t}function aw(t){this._context=new uw(t)}function uw(t){this._context=t}function cw(t){this._context=t}function fw(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n1)for(var e,r,i,o=1,a=t[n[0]],u=a.length;o=0;)e[n]=n;return e}function dw(t,n){return t[n]}function pw(t){const n=[];return n.key=t,n}function gw(t){var n=t.map(yw);return hw(t).sort((function(t,e){return n[t]-n[e]}))}function yw(t){for(var n,e=-1,r=0,i=t.length,o=-1/0;++eo&&(o=n,r=e);return r}function vw(t){var n=t.map(_w);return hw(t).sort((function(t,e){return n[t]-n[e]}))}function _w(t){for(var n,e=0,r=-1,i=t.length;++r=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var bw=t=>()=>t;function mw(t,{sourceEvent:n,target:e,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function xw(t,n,e){this.k=t,this.x=n,this.y=e}xw.prototype={constructor:xw,scale:function(t){return 1===t?this:new xw(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new xw(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ww=new xw(1,0,0);function Mw(t){for(;!t.__zoom;)if(!(t=t.parentNode))return ww;return t.__zoom}function Tw(t){t.stopImmediatePropagation()}function Aw(t){t.preventDefault(),t.stopImmediatePropagation()}function Sw(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function Ew(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function Nw(){return this.__zoom||ww}function kw(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Cw(){return navigator.maxTouchPoints||"ontouchstart"in this}function Pw(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],a=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}Mw.prototype=xw.prototype,t.Adder=T,t.Delaunay=Lu,t.FormatSpecifier=tf,t.InternMap=InternMap,t.InternSet=InternSet,t.Node=Qd,t.Path=Ua,t.Voronoi=qu,t.ZoomTransform=xw,t.active=function(t,n){var e,r,i=t.__transition;if(i)for(r in n=null==n?null:n+"",i)if((e=i[r]).state>qi&&e.name===n)return new po([[t]],Zo,n,+r);return null},t.arc=function(){var t=km,n=Cm,e=gm(0),r=null,i=Pm,o=zm,a=$m,u=null,c=Nm(f);function f(){var f,s,l=+t.apply(this,arguments),h=+n.apply(this,arguments),d=i.apply(this,arguments)-Am,p=o.apply(this,arguments)-Am,g=ym(p-d),y=p>d;if(u||(u=f=c()),hMm)if(g>Sm-Mm)u.moveTo(h*_m(d),h*xm(d)),u.arc(0,0,h,d,p,!y),l>Mm&&(u.moveTo(l*_m(p),l*xm(p)),u.arc(0,0,l,p,d,y));else{var v,_,b=d,m=p,x=d,w=p,M=g,T=g,A=a.apply(this,arguments)/2,S=A>Mm&&(r?+r.apply(this,arguments):wm(l*l+h*h)),E=mm(ym(h-l)/2,+e.apply(this,arguments)),N=E,k=E;if(S>Mm){var C=Em(S/l*xm(A)),P=Em(S/h*xm(A));(M-=2*C)>Mm?(x+=C*=y?1:-1,w-=C):(M=0,x=w=(d+p)/2),(T-=2*P)>Mm?(b+=P*=y?1:-1,m-=P):(T=0,b=m=(d+p)/2)}var z=h*_m(b),$=h*xm(b),D=l*_m(w),R=l*xm(w);if(E>Mm){var F,q=h*_m(m),U=h*xm(m),I=l*_m(x),O=l*xm(x);if(g1?0:t<-1?Tm:Math.acos(t)}((B*L+Y*j)/(wm(B*B+Y*Y)*wm(L*L+j*j)))/2),X=wm(F[0]*F[0]+F[1]*F[1]);N=mm(E,(l-X)/(H-1)),k=mm(E,(h-X)/(H+1))}else N=k=0}T>Mm?k>Mm?(v=Dm(I,O,z,$,h,k,y),_=Dm(q,U,D,R,h,k,y),u.moveTo(v.cx+v.x01,v.cy+v.y01),kMm&&M>Mm?N>Mm?(v=Dm(D,R,q,U,l,-N,y),_=Dm(z,$,I,O,l,-N,y),u.lineTo(v.cx+v.x01,v.cy+v.y01),N=0))throw new RangeError("invalid r");let e=t.length;if(!((e=Math.floor(e))>=0))throw new RangeError("invalid length");if(!e||!n)return t;const r=y(n),i=t.slice();return r(t,i,0,e,1),r(i,t,0,e,1),r(t,i,0,e,1),t},t.blur2=l,t.blurImage=h,t.brush=function(){return wa(la)},t.brushSelection=function(t){var n=t.__brush;return n?n.dim.output(n.selection):null},t.brushX=function(){return wa(fa)},t.brushY=function(){return wa(sa)},t.buffer=function(t,n){return fetch(t,n).then(_c)},t.chord=function(){return za(!1,!1)},t.chordDirected=function(){return za(!0,!1)},t.chordTranspose=function(){return za(!1,!0)},t.cluster=function(){var t=Ld,n=1,e=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(n){var e=n.children;e?(n.x=function(t){return t.reduce(jd,0)/t.length}(e),n.y=function(t){return 1+t.reduce(Hd,0)}(e)):(n.x=o?a+=t(n,o):0,n.y=0,o=n)}));var u=function(t){for(var n;n=t.children;)t=n[0];return t}(i),c=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),f=u.x-t(u,c)/2,s=c.x+t(c,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-f)/(s-f)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i},t.color=ze,t.contourDensity=function(){var t=fu,n=su,e=lu,r=960,i=500,o=20,a=2,u=3*o,c=r+2*u>>a,f=i+2*u>>a,s=Qa(20);function h(r){var i=new Float32Array(c*f),s=Math.pow(2,-a),h=-1;for(const o of r){var d=(t(o,++h,r)+u)*s,p=(n(o,h,r)+u)*s,g=+e(o,h,r);if(g&&d>=0&&d=0&&pt*r)))(n).map(((t,n)=>(t.value=+e[n],p(t))))}function p(t){return t.coordinates.forEach(g),t}function g(t){t.forEach(y)}function y(t){t.forEach(v)}function v(t){t[0]=t[0]*Math.pow(2,a)-u,t[1]=t[1]*Math.pow(2,a)-u}function _(){return c=r+2*(u=3*o)>>a,f=i+2*u>>a,d}return d.contours=function(t){var n=h(t),e=iu().size([c,f]),r=Math.pow(2,2*a),i=t=>{t=+t;var i=p(e.contour(n,t*r));return i.value=t,i};return Object.defineProperty(i,"max",{get:()=>J(n)/r}),i},d.x=function(n){return arguments.length?(t="function"==typeof n?n:Qa(+n),d):t},d.y=function(t){return arguments.length?(n="function"==typeof t?t:Qa(+t),d):n},d.weight=function(t){return arguments.length?(e="function"==typeof t?t:Qa(+t),d):e},d.size=function(t){if(!arguments.length)return[r,i];var n=+t[0],e=+t[1];if(!(n>=0&&e>=0))throw new Error("invalid size");return r=n,i=e,_()},d.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(t)/Math.LN2),_()},d.thresholds=function(t){return arguments.length?(s="function"==typeof t?t:Array.isArray(t)?Qa(Za.call(t)):Qa(t),d):s},d.bandwidth=function(t){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return o=(Math.sqrt(4*t*t+1)-1)/2,_()},d},t.contours=iu,t.count=v,t.create=function(t){return Zn(Yt(t).call(document.documentElement))},t.creator=Yt,t.cross=function(...t){const n="function"==typeof t[t.length-1]&&function(t){return n=>t(...n)}(t.pop()),e=(t=t.map(m)).map(_),r=t.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||e.some(b))return o;for(;;){o.push(i.map(((n,e)=>t[e][n])));let a=r;for(;++i[a]===e[a];){if(0===a)return n?o.map(n):o;i[a--]=0}}},t.csv=wc,t.csvFormat=rc,t.csvFormatBody=ic,t.csvFormatRow=ac,t.csvFormatRows=oc,t.csvFormatValue=uc,t.csvParse=nc,t.csvParseRows=ec,t.cubehelix=Tr,t.cumsum=function(t,n){var e=0,r=0;return Float64Array.from(t,void 0===n?t=>e+=+t||0:i=>e+=+n(i,r++,t)||0)},t.curveBasis=function(t){return new Rx(t)},t.curveBasisClosed=function(t){return new Fx(t)},t.curveBasisOpen=function(t){return new qx(t)},t.curveBumpX=tx,t.curveBumpY=nx,t.curveBundle=Ix,t.curveCardinal=Yx,t.curveCardinalClosed=jx,t.curveCardinalOpen=Xx,t.curveCatmullRom=Wx,t.curveCatmullRomClosed=Kx,t.curveCatmullRomOpen=Jx,t.curveLinear=Um,t.curveLinearClosed=function(t){return new tw(t)},t.curveMonotoneX=function(t){return new ow(t)},t.curveMonotoneY=function(t){return new aw(t)},t.curveNatural=function(t){return new cw(t)},t.curveStep=function(t){return new sw(t,.5)},t.curveStepAfter=function(t){return new sw(t,1)},t.curveStepBefore=function(t){return new sw(t,0)},t.descending=e,t.deviation=w,t.difference=function(t,...n){t=new InternSet(t);for(const e of n)for(const n of e)t.delete(n);return t},t.disjoint=function(t,n){const e=n[Symbol.iterator](),r=new InternSet;for(const n of t){if(r.has(n))return!1;let t,i;for(;({value:t,done:i}=e.next())&&!i;){if(Object.is(n,t))return!1;r.add(t)}}return!0},t.dispatch=$t,t.drag=function(){var t,n,e,r,i=se,o=le,a=he,u=de,c={},f=$t("start","drag","end"),s=0,l=0;function h(t){t.on("mousedown.drag",d).filter(u).on("touchstart.drag",y).on("touchmove.drag",v,ee).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(a,u){if(!r&&i.call(this,a,u)){var c=b(this,o.call(this,a,u),a,u,"mouse");c&&(Zn(a.view).on("mousemove.drag",p,re).on("mouseup.drag",g,re),ae(a.view),ie(a),e=!1,t=a.clientX,n=a.clientY,c("start",a))}}function p(r){if(oe(r),!e){var i=r.clientX-t,o=r.clientY-n;e=i*i+o*o>l}c.mouse("drag",r)}function g(t){Zn(t.view).on("mousemove.drag mouseup.drag",null),ue(t.view,e),oe(t),c.mouse("end",t)}function y(t,n){if(i.call(this,t,n)){var e,r,a=t.changedTouches,u=o.call(this,t,n),c=a.length;for(e=0;e+t,t.easePoly=wo,t.easePolyIn=mo,t.easePolyInOut=wo,t.easePolyOut=xo,t.easeQuad=_o,t.easeQuadIn=function(t){return t*t},t.easeQuadInOut=_o,t.easeQuadOut=function(t){return t*(2-t)},t.easeSin=Ao,t.easeSinIn=function(t){return 1==+t?1:1-Math.cos(t*To)},t.easeSinInOut=Ao,t.easeSinOut=function(t){return Math.sin(t*To)},t.every=function(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let e=-1;for(const r of t)if(!n(r,++e,t))return!1;return!0},t.extent=M,t.fcumsum=function(t,n){const e=new T;let r=-1;return Float64Array.from(t,void 0===n?t=>e.add(+t||0):i=>e.add(+n(i,++r,t)||0))},t.filter=function(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");const e=[];let r=-1;for(const i of t)n(i,++r,t)&&e.push(i);return e},t.flatGroup=function(t,...n){return z(P(t,...n),n)},t.flatRollup=function(t,n,...e){return z(D(t,n,...e),e)},t.forceCenter=function(t,n){var e,r=1;function i(){var i,o,a=e.length,u=0,c=0;for(i=0;if+p||os+p||ac.index){var g=f-u.x-u.vx,y=s-u.y-u.vy,v=g*g+y*y;vt.r&&(t.r=t[n].r)}function c(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;r[u(t,n,r),t])));for(a=0,i=new Array(f);a=u)){(t.data!==n||t.next)&&(0===l&&(p+=(l=Uc(e))*l),0===h&&(p+=(h=Uc(e))*h),p(t=(Lc*t+jc)%Hc)/Hc}();function l(){h(),f.call("tick",n),e1?(null==e?u.delete(t):u.set(t,p(e)),n):u.get(t)},find:function(n,e,r){var i,o,a,u,c,f=0,s=t.length;for(null==r?r=1/0:r*=r,f=0;f1?(f.on(t,e),n):f.on(t)}}},t.forceX=function(t){var n,e,r,i=qc(.1);function o(t){for(var i,o=0,a=n.length;o=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(t)},s.stream=function(e){return t&&n===e?t:(r=[a.stream(n=e),u.stream(e),c.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++ejs(r[0],r[1])&&(r[1]=i[1]),js(i[0],r[1])>js(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(u=js(r[1],i[0]))>a&&(a=u,Wf=i[0],Kf=r[1])}return is=os=null,Wf===1/0||Zf===1/0?[[NaN,NaN],[NaN,NaN]]:[[Wf,Zf],[Kf,Qf]]},t.geoCentroid=function(t){ms=xs=ws=Ms=Ts=As=Ss=Es=0,Ns=new T,ks=new T,Cs=new T,Lf(t,Gs);var n=+Ns,e=+ks,r=+Cs,i=Ef(n,e,r);return i=0))throw new RangeError(`invalid digits: ${t}`);i=n}return null===n&&(r=new ed(i)),a},a.projection(t).digits(i).context(n)},t.geoProjection=yd,t.geoProjectionMutator=vd,t.geoRotation=ll,t.geoStereographic=function(){return yd(Bd).scale(250).clipAngle(142)},t.geoStereographicRaw=Bd,t.geoStream=Lf,t.geoTransform=function(t){return{stream:id(t)}},t.geoTransverseMercator=function(){var t=Ed(Yd),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=Yd,t.gray=function(t,n){return new ur(t,0,0,null==n?1:n)},t.greatest=ot,t.greatestIndex=function(t,e=n){if(1===e.length)return tt(t,e);let r,i=-1,o=-1;for(const n of t)++o,(i<0?0===e(n,n):e(n,r)>0)&&(r=n,i=o);return i},t.group=C,t.groupSort=function(t,e,r){return(2!==e.length?U($(t,e,r),(([t,e],[r,i])=>n(e,i)||n(t,r))):U(C(t,r),(([t,r],[i,o])=>e(r,o)||n(t,i)))).map((([t])=>t))},t.groups=P,t.hcl=dr,t.hierarchy=Gd,t.histogram=Q,t.hsl=He,t.html=Ec,t.image=function(t,n){return new Promise((function(e,r){var i=new Image;for(var o in n)i[o]=n[o];i.onerror=r,i.onload=function(){e(i)},i.src=t}))},t.index=function(t,...n){return F(t,k,R,n)},t.indexes=function(t,...n){return F(t,Array.from,R,n)},t.interpolate=Gr,t.interpolateArray=function(t,n){return(Ir(n)?Ur:Or)(t,n)},t.interpolateBasis=Er,t.interpolateBasisClosed=Nr,t.interpolateBlues=Xb,t.interpolateBrBG=ib,t.interpolateBuGn=wb,t.interpolateBuPu=Tb,t.interpolateCividis=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"},t.interpolateCool=om,t.interpolateCubehelix=li,t.interpolateCubehelixDefault=rm,t.interpolateCubehelixLong=hi,t.interpolateDate=Br,t.interpolateDiscrete=function(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}},t.interpolateGnBu=Sb,t.interpolateGreens=Vb,t.interpolateGreys=Zb,t.interpolateHcl=ci,t.interpolateHclLong=fi,t.interpolateHsl=oi,t.interpolateHslLong=ai,t.interpolateHue=function(t,n){var e=Pr(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}},t.interpolateInferno=dm,t.interpolateLab=function(t,n){var e=$r((t=ar(t)).l,(n=ar(n)).l),r=$r(t.a,n.a),i=$r(t.b,n.b),o=$r(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=o(n),t+""}},t.interpolateMagma=hm,t.interpolateNumber=Yr,t.interpolateNumberArray=Ur,t.interpolateObject=Lr,t.interpolateOrRd=Nb,t.interpolateOranges=em,t.interpolatePRGn=ab,t.interpolatePiYG=cb,t.interpolatePlasma=pm,t.interpolatePuBu=zb,t.interpolatePuBuGn=Cb,t.interpolatePuOr=sb,t.interpolatePuRd=Db,t.interpolatePurples=Qb,t.interpolateRainbow=function(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return am.h=360*t-100,am.s=1.5-1.5*n,am.l=.8-.9*n,am+""},t.interpolateRdBu=hb,t.interpolateRdGy=pb,t.interpolateRdPu=Fb,t.interpolateRdYlBu=yb,t.interpolateRdYlGn=_b,t.interpolateReds=tm,t.interpolateRgb=Dr,t.interpolateRgbBasis=Fr,t.interpolateRgbBasisClosed=qr,t.interpolateRound=Vr,t.interpolateSinebow=function(t){var n;return t=(.5-t)*Math.PI,um.r=255*(n=Math.sin(t))*n,um.g=255*(n=Math.sin(t+cm))*n,um.b=255*(n=Math.sin(t+fm))*n,um+""},t.interpolateSpectral=mb,t.interpolateString=Xr,t.interpolateTransformCss=ti,t.interpolateTransformSvg=ni,t.interpolateTurbo=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"},t.interpolateViridis=lm,t.interpolateWarm=im,t.interpolateYlGn=Ob,t.interpolateYlGnBu=Ub,t.interpolateYlOrBr=Yb,t.interpolateYlOrRd=jb,t.interpolateZoom=ri,t.interrupt=Gi,t.intersection=function(t,...n){t=new InternSet(t),n=n.map(vt);t:for(const e of t)for(const r of n)if(!r.has(e)){t.delete(e);continue t}return t},t.interval=function(t,n,e){var r=new Ei,i=n;return null==n?(r.restart(t,n,e),r):(r._restart=r.restart,r.restart=function(t,n,e){n=+n,e=null==e?Ai():+e,r._restart((function o(a){a+=i,r._restart(o,i+=n,e),t(a)}),n,e)},r.restart(t,n,e),r)},t.isoFormat=D_,t.isoParse=F_,t.json=function(t,n){return fetch(t,n).then(Tc)},t.lab=ar,t.lch=function(t,n,e,r){return 1===arguments.length?hr(t):new pr(e,n,t,null==r?1:r)},t.least=function(t,e=n){let r,i=!1;if(1===e.length){let o;for(const a of t){const t=e(a);(i?n(t,o)<0:0===n(t,t))&&(r=a,o=t,i=!0)}}else for(const n of t)(i?e(n,r)<0:0===e(n,n))&&(r=n,i=!0);return r},t.leastIndex=ht,t.line=Bm,t.lineRadial=Wm,t.link=ox,t.linkHorizontal=function(){return ox(tx)},t.linkRadial=function(){const t=ox(ex);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.linkVertical=function(){return ox(nx)},t.local=Qn,t.map=function(t,n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof n)throw new TypeError("mapper is not a function");return Array.from(t,((e,r)=>n(e,r,t)))},t.matcher=Vt,t.max=J,t.maxIndex=tt,t.mean=function(t,n){let e=0,r=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(++e,r+=n);else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(o=+o)>=o&&(++e,r+=o)}if(e)return r/e},t.median=function(t,n){return at(t,.5,n)},t.medianIndex=function(t,n){return ct(t,.5,n)},t.merge=ft,t.min=nt,t.minIndex=et,t.mode=function(t,n){const e=new InternMap;if(void 0===n)for(let n of t)null!=n&&n>=n&&e.set(n,(e.get(n)||0)+1);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&i>=i&&e.set(i,(e.get(i)||0)+1)}let r,i=0;for(const[t,n]of e)n>i&&(i=n,r=t);return r},t.namespace=It,t.namespaces=Ut,t.nice=Z,t.now=Ai,t.pack=function(){var t=null,n=1,e=1,r=np;function i(i){const o=ap();return i.x=n/2,i.y=e/2,t?i.eachBefore(xp(t)).eachAfter(wp(r,.5,o)).eachBefore(Mp(1)):i.eachBefore(xp(mp)).eachAfter(wp(np,1,o)).eachAfter(wp(r,i.r/Math.min(n,e),o)).eachBefore(Mp(Math.min(n,e)/(2*i.r))),i}return i.radius=function(n){return arguments.length?(t=Jd(n),i):t},i.size=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:ep(+t),i):r},i},t.packEnclose=function(t){return up(t,ap())},t.packSiblings=function(t){return bp(t,ap()),t},t.pairs=function(t,n=st){const e=[];let r,i=!1;for(const o of t)i&&e.push(n(r,o)),r=o,i=!0;return e},t.partition=function(){var t=1,n=1,e=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=e,i.x1=t,i.y1=n/o,i.eachBefore(function(t,n){return function(r){r.children&&Ap(r,r.x0,t*(r.depth+1)/n,r.x1,t*(r.depth+2)/n);var i=r.x0,o=r.y0,a=r.x1-e,u=r.y1-e;a0&&(d+=l);for(null!=n?p.sort((function(t,e){return n(g[t],g[e])})):null!=e&&p.sort((function(t,n){return e(a[t],a[n])})),u=0,f=d?(v-h*b)/d:0;u0?l*f:0)+b,g[c]={data:a[c],index:u,value:l,startAngle:y,endAngle:s,padAngle:_};return g}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:gm(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,e=null,a):n},a.sort=function(t){return arguments.length?(e=t,n=null,a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:gm(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:gm(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:gm(+t),a):o},a},t.piecewise=di,t.pointRadial=Km,t.pointer=ne,t.pointers=function(t,n){return t.target&&(t=te(t),void 0===n&&(n=t.currentTarget),t=t.touches||[t]),Array.from(t,(t=>ne(t,n)))},t.polygonArea=function(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++eu!=f>u&&a<(c-e)*(u-r)/(f-r)+e&&(s=!s),c=e,f=r;return s},t.polygonHull=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n=0;--n)f.push(t[r[o[n]][2]]);for(n=+u;n(n=1664525*n+1013904223|0,lg*(n>>>0))},t.randomLogNormal=Kp,t.randomLogistic=fg,t.randomNormal=Zp,t.randomPareto=ng,t.randomPoisson=sg,t.randomUniform=Vp,t.randomWeibull=ug,t.range=lt,t.rank=function(t,e=n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");let r=Array.from(t);const i=new Float64Array(r.length);2!==e.length&&(r=r.map(e),e=n);const o=(t,n)=>e(r[t],r[n]);let a,u;return(t=Uint32Array.from(r,((t,n)=>n))).sort(e===n?(t,n)=>O(r[t],r[n]):I(o)),t.forEach(((t,n)=>{const e=o(t,void 0===a?t:a);e>=0?((void 0===a||e>0)&&(a=t,u=n),i[t]=u):i[t]=NaN})),i},t.reduce=function(t,n,e){if("function"!=typeof n)throw new TypeError("reducer is not a function");const r=t[Symbol.iterator]();let i,o,a=-1;if(arguments.length<3){if(({done:i,value:e}=r.next()),i)return;++a}for(;({done:i,value:o}=r.next()),!i;)e=n(e,o,++a,t);return e},t.reverse=function(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()},t.rgb=Fe,t.ribbon=function(){return Wa()},t.ribbonArrow=function(){return Wa(Va)},t.rollup=$,t.rollups=D,t.scaleBand=yg,t.scaleDiverging=function t(){var n=Ng(L_()(mg));return n.copy=function(){return B_(n,t())},dg.apply(n,arguments)},t.scaleDivergingLog=function t(){var n=Fg(L_()).domain([.1,1,10]);return n.copy=function(){return B_(n,t()).base(n.base())},dg.apply(n,arguments)},t.scaleDivergingPow=j_,t.scaleDivergingSqrt=function(){return j_.apply(null,arguments).exponent(.5)},t.scaleDivergingSymlog=function t(){var n=Ig(L_());return n.copy=function(){return B_(n,t()).constant(n.constant())},dg.apply(n,arguments)},t.scaleIdentity=function t(n){var e;function r(t){return null==t||isNaN(t=+t)?e:t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(n=Array.from(t,_g),r):n.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return t(n).unknown(e)},n=arguments.length?Array.from(n,_g):[0,1],Ng(r)},t.scaleImplicit=pg,t.scaleLinear=function t(){var n=Sg();return n.copy=function(){return Tg(n,t())},hg.apply(n,arguments),Ng(n)},t.scaleLog=function t(){const n=Fg(Ag()).domain([1,10]);return n.copy=()=>Tg(n,t()).base(n.base()),hg.apply(n,arguments),n},t.scaleOrdinal=gg,t.scalePoint=function(){return vg(yg.apply(null,arguments).paddingInner(1))},t.scalePow=jg,t.scaleQuantile=function t(){var e,r=[],i=[],o=[];function a(){var t=0,n=Math.max(1,i.length);for(o=new Array(n-1);++t0?o[n-1]:r[0],n=i?[o[i-1],r]:[o[n-1],o[n]]},u.unknown=function(t){return arguments.length?(n=t,u):u},u.thresholds=function(){return o.slice()},u.copy=function(){return t().domain([e,r]).range(a).unknown(n)},hg.apply(Ng(u),arguments)},t.scaleRadial=function t(){var n,e=Sg(),r=[0,1],i=!1;function o(t){var r=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(t));return isNaN(r)?n:i?Math.round(r):r}return o.invert=function(t){return e.invert(Hg(t))},o.domain=function(t){return arguments.length?(e.domain(t),o):e.domain()},o.range=function(t){return arguments.length?(e.range((r=Array.from(t,_g)).map(Hg)),o):r.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(i=!!t,o):i},o.clamp=function(t){return arguments.length?(e.clamp(t),o):e.clamp()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return t(e.domain(),r).round(i).clamp(e.clamp()).unknown(n)},hg.apply(o,arguments),Ng(o)},t.scaleSequential=function t(){var n=Ng(O_()(mg));return n.copy=function(){return B_(n,t())},dg.apply(n,arguments)},t.scaleSequentialLog=function t(){var n=Fg(O_()).domain([1,10]);return n.copy=function(){return B_(n,t()).base(n.base())},dg.apply(n,arguments)},t.scaleSequentialPow=Y_,t.scaleSequentialQuantile=function t(){var e=[],r=mg;function i(t){if(null!=t&&!isNaN(t=+t))return r((s(e,t,1)-1)/(e.length-1))}return i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(n),i},i.interpolator=function(t){return arguments.length?(r=t,i):r},i.range=function(){return e.map(((t,n)=>r(n/(e.length-1))))},i.quantiles=function(t){return Array.from({length:t+1},((n,r)=>at(e,r/t)))},i.copy=function(){return t(r).domain(e)},dg.apply(i,arguments)},t.scaleSequentialSqrt=function(){return Y_.apply(null,arguments).exponent(.5)},t.scaleSequentialSymlog=function t(){var n=Ig(O_());return n.copy=function(){return B_(n,t()).constant(n.constant())},dg.apply(n,arguments)},t.scaleSqrt=function(){return jg.apply(null,arguments).exponent(.5)},t.scaleSymlog=function t(){var n=Ig(Ag());return n.copy=function(){return Tg(n,t()).constant(n.constant())},hg.apply(n,arguments)},t.scaleThreshold=function t(){var n,e=[.5],r=[0,1],i=1;function o(t){return null!=t&&t<=t?r[s(e,t,0,i)]:n}return o.domain=function(t){return arguments.length?(e=Array.from(t),i=Math.min(e.length,r.length-1),o):e.slice()},o.range=function(t){return arguments.length?(r=Array.from(t),i=Math.min(e.length,r.length-1),o):r.slice()},o.invertExtent=function(t){var n=r.indexOf(t);return[e[n-1],e[n]]},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return t().domain(e).range(r).unknown(n)},hg.apply(o,arguments)},t.scaleTime=function(){return hg.apply(I_(uv,cv,tv,Zy,xy,py,sy,ay,iy,t.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},t.scaleUtc=function(){return hg.apply(I_(ov,av,ev,Qy,Fy,yy,hy,cy,iy,t.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},t.scan=function(t,n){const e=ht(t,n);return e<0?void 0:e},t.schemeAccent=G_,t.schemeBlues=Hb,t.schemeBrBG=rb,t.schemeBuGn=xb,t.schemeBuPu=Mb,t.schemeCategory10=X_,t.schemeDark2=V_,t.schemeGnBu=Ab,t.schemeGreens=Gb,t.schemeGreys=Wb,t.schemeOrRd=Eb,t.schemeOranges=nm,t.schemePRGn=ob,t.schemePaired=W_,t.schemePastel1=Z_,t.schemePastel2=K_,t.schemePiYG=ub,t.schemePuBu=Pb,t.schemePuBuGn=kb,t.schemePuOr=fb,t.schemePuRd=$b,t.schemePurples=Kb,t.schemeRdBu=lb,t.schemeRdGy=db,t.schemeRdPu=Rb,t.schemeRdYlBu=gb,t.schemeRdYlGn=vb,t.schemeReds=Jb,t.schemeSet1=Q_,t.schemeSet2=J_,t.schemeSet3=tb,t.schemeSpectral=bb,t.schemeTableau10=nb,t.schemeYlGn=Ib,t.schemeYlGnBu=qb,t.schemeYlOrBr=Bb,t.schemeYlOrRd=Lb,t.select=Zn,t.selectAll=function(t){return"string"==typeof t?new Vn([document.querySelectorAll(t)],[document.documentElement]):new Vn([Ht(t)],Gn)},t.selection=Wn,t.selector=jt,t.selectorAll=Gt,t.shuffle=dt,t.shuffler=pt,t.some=function(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let e=-1;for(const r of t)if(n(r,++e,t))return!0;return!1},t.sort=U,t.stack=function(){var t=gm([]),n=hw,e=lw,r=dw;function i(i){var o,a,u=Array.from(t.apply(this,arguments),pw),c=u.length,f=-1;for(const t of i)for(o=0,++f;o0)for(var e,r,i,o,a,u,c=0,f=t[n[0]].length;c0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)},t.stackOffsetExpand=function(t,n){if((r=t.length)>0){for(var e,r,i,o=0,a=t[0].length;o0){for(var e,r=0,i=t[n[0]],o=i.length;r0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;afunction(t){t=`${t}`;let n=t.length;zp(t,n-1)&&!zp(t,n-2)&&(t=t.slice(0,-1));return"/"===t[0]?t:`/${t}`}(t(n,e,r)))),e=n.map(Pp),i=new Set(n).add("");for(const t of e)i.has(t)||(i.add(t),n.push(t),e.push(Pp(t)),h.push(Np));d=(t,e)=>n[e],p=(t,n)=>e[n]}for(a=0,i=h.length;a=0&&(f=h[t]).data===Np;--t)f.data=null}if(u.parent=Sp,u.eachBefore((function(t){t.depth=t.parent.depth+1,--i})).eachBefore(Kd),u.parent=null,i>0)throw new Error("cycle");return u}return r.id=function(t){return arguments.length?(n=Jd(t),r):n},r.parentId=function(t){return arguments.length?(e=Jd(t),r):e},r.path=function(n){return arguments.length?(t=Jd(n),r):t},r},t.style=_n,t.subset=function(t,n){return _t(n,t)},t.sum=function(t,n){let e=0;if(void 0===n)for(let n of t)(n=+n)&&(e+=n);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&(e+=i)}return e},t.superset=_t,t.svg=Nc,t.symbol=function(t,n){let e=null,r=Nm(i);function i(){let i;if(e||(e=i=r()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),i)return e=null,i+""||null}return t="function"==typeof t?t:gm(t||cx),n="function"==typeof n?n:gm(void 0===n?64:+n),i.type=function(n){return arguments.length?(t="function"==typeof n?n:gm(n),i):t},i.size=function(t){return arguments.length?(n="function"==typeof t?t:gm(+t),i):n},i.context=function(t){return arguments.length?(e=null==t?null:t,i):e},i},t.symbolAsterisk=ux,t.symbolCircle=cx,t.symbolCross=fx,t.symbolDiamond=hx,t.symbolDiamond2=dx,t.symbolPlus=px,t.symbolSquare=gx,t.symbolSquare2=yx,t.symbolStar=mx,t.symbolTimes=Cx,t.symbolTriangle=wx,t.symbolTriangle2=Tx,t.symbolWye=kx,t.symbolX=Cx,t.symbols=Px,t.symbolsFill=Px,t.symbolsStroke=zx,t.text=mc,t.thresholdFreedmanDiaconis=function(t,n,e){const r=v(t),i=at(t,.75)-at(t,.25);return r&&i?Math.ceil((e-n)/(2*i*Math.pow(r,-1/3))):1},t.thresholdScott=function(t,n,e){const r=v(t),i=w(t);return r&&i?Math.ceil((e-n)*Math.cbrt(r)/(3.49*i)):1},t.thresholdSturges=K,t.tickFormat=Eg,t.tickIncrement=V,t.tickStep=W,t.ticks=G,t.timeDay=py,t.timeDays=gy,t.timeFormatDefaultLocale=P_,t.timeFormatLocale=hv,t.timeFriday=Sy,t.timeFridays=$y,t.timeHour=sy,t.timeHours=ly,t.timeInterval=Vg,t.timeMillisecond=Wg,t.timeMilliseconds=Zg,t.timeMinute=ay,t.timeMinutes=uy,t.timeMonday=wy,t.timeMondays=ky,t.timeMonth=Zy,t.timeMonths=Ky,t.timeSaturday=Ey,t.timeSaturdays=Dy,t.timeSecond=iy,t.timeSeconds=oy,t.timeSunday=xy,t.timeSundays=Ny,t.timeThursday=Ay,t.timeThursdays=zy,t.timeTickInterval=cv,t.timeTicks=uv,t.timeTuesday=My,t.timeTuesdays=Cy,t.timeWednesday=Ty,t.timeWednesdays=Py,t.timeWeek=xy,t.timeWeeks=Ny,t.timeYear=tv,t.timeYears=nv,t.timeout=$i,t.timer=Ni,t.timerFlush=ki,t.transition=go,t.transpose=gt,t.tree=function(){var t=$p,n=1,e=1,r=null;function i(i){var c=function(t){for(var n,e,r,i,o,a=new Up(t,0),u=[a];n=u.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(e=n.children[i]=new Up(r[i],i)),e.parent=n;return(a.parent=new Up(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(u);else{var f=i,s=i,l=i;i.eachBefore((function(t){t.xs.x&&(s=t),t.depth>l.depth&&(l=t)}));var h=f===s?1:t(f,s)/2,d=h-f.x,p=n/(s.x+h+d),g=e/(l.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function o(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var o=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-o):n.z=o}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,o=n,a=n,u=e,c=o.parent.children[0],f=o.m,s=a.m,l=u.m,h=c.m;u=Rp(u),o=Dp(o),u&&o;)c=Dp(c),(a=Rp(a)).a=n,(i=u.z+l-o.z-f+t(u._,o._))>0&&(Fp(qp(u,n,r),n,i),f+=i,s+=i),l+=u.m,f+=o.m,h+=c.m,s+=a.m;u&&!Rp(a)&&(a.t=u,a.m+=l-s),o&&!Dp(c)&&(c.t=o,c.m+=f-h,r=n)}return r}(n,i,n.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i},t.treemap=function(){var t=Yp,n=!1,e=1,r=1,i=[0],o=np,a=np,u=np,c=np,f=np;function s(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(l),i=[0],n&&t.eachBefore(Tp),t}function l(n){var e=i[n.depth],r=n.x0+e,s=n.y0+e,l=n.x1-e,h=n.y1-e;l=e-1){var s=u[n];return s.x0=i,s.y0=o,s.x1=a,void(s.y1=c)}var l=f[n],h=r/2+l,d=n+1,p=e-1;for(;d>>1;f[g]c-o){var _=r?(i*v+a*y)/r:a;t(n,d,y,i,o,_,c),t(d,e,v,_,o,a,c)}else{var b=r?(o*v+c*y)/r:c;t(n,d,y,i,o,a,b),t(d,e,v,i,b,a,c)}}(0,c,t.value,n,e,r,i)},t.treemapDice=Ap,t.treemapResquarify=Lp,t.treemapSlice=Ip,t.treemapSliceDice=function(t,n,e,r,i){(1&t.depth?Ip:Ap)(t,n,e,r,i)},t.treemapSquarify=Yp,t.tsv=Mc,t.tsvFormat=lc,t.tsvFormatBody=hc,t.tsvFormatRow=pc,t.tsvFormatRows=dc,t.tsvFormatValue=gc,t.tsvParse=fc,t.tsvParseRows=sc,t.union=function(...t){const n=new InternSet;for(const e of t)for(const t of e)n.add(t);return n},t.unixDay=_y,t.unixDays=by,t.utcDay=yy,t.utcDays=vy,t.utcFriday=By,t.utcFridays=Vy,t.utcHour=hy,t.utcHours=dy,t.utcMillisecond=Wg,t.utcMilliseconds=Zg,t.utcMinute=cy,t.utcMinutes=fy,t.utcMonday=qy,t.utcMondays=jy,t.utcMonth=Qy,t.utcMonths=Jy,t.utcSaturday=Yy,t.utcSaturdays=Wy,t.utcSecond=iy,t.utcSeconds=oy,t.utcSunday=Fy,t.utcSundays=Ly,t.utcThursday=Oy,t.utcThursdays=Gy,t.utcTickInterval=av,t.utcTicks=ov,t.utcTuesday=Uy,t.utcTuesdays=Hy,t.utcWednesday=Iy,t.utcWednesdays=Xy,t.utcWeek=Fy,t.utcWeeks=Ly,t.utcYear=ev,t.utcYears=rv,t.variance=x,t.version="7.8.5",t.window=pn,t.xml=Sc,t.zip=function(){return gt(arguments)},t.zoom=function(){var t,n,e,r=Sw,i=Ew,o=Pw,a=kw,u=Cw,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],s=250,l=ri,h=$t("start","zoom","end"),d=500,p=150,g=0,y=10;function v(t){t.property("__zoom",Nw).on("wheel.zoom",T,{passive:!1}).on("mousedown.zoom",A).on("dblclick.zoom",S).filter(u).on("touchstart.zoom",E).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function _(t,n){return(n=Math.max(c[0],Math.min(c[1],n)))===t.k?t:new xw(n,t.x,t.y)}function b(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new xw(t.k,r,i)}function m(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,n,e,r){t.on("start.zoom",(function(){w(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,a=w(t,o).event(r),u=i.apply(t,o),c=null==e?m(u):"function"==typeof e?e.apply(t,o):e,f=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),s=t.__zoom,h="function"==typeof n?n.apply(t,o):n,d=l(s.invert(c).concat(f/s.k),h.invert(c).concat(f/h.k));return function(t){if(1===t)t=h;else{var n=d(t),e=f/n[2];t=new xw(e,c[0]-n[0]*e,c[1]-n[1]*e)}a.zoom(null,t)}}))}function w(t,n,e){return!e&&t.__zooming||new M(t,n)}function M(t,n){this.that=t,this.args=n,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,n),this.taps=0}function T(t,...n){if(r.apply(this,arguments)){var e=w(this,n).event(t),i=this.__zoom,u=Math.max(c[0],Math.min(c[1],i.k*Math.pow(2,a.apply(this,arguments)))),s=ne(t);if(e.wheel)e.mouse[0][0]===s[0]&&e.mouse[0][1]===s[1]||(e.mouse[1]=i.invert(e.mouse[0]=s)),clearTimeout(e.wheel);else{if(i.k===u)return;e.mouse=[s,i.invert(s)],Gi(this),e.start()}Aw(t),e.wheel=setTimeout((function(){e.wheel=null,e.end()}),p),e.zoom("mouse",o(b(_(i,u),e.mouse[0],e.mouse[1]),e.extent,f))}}function A(t,...n){if(!e&&r.apply(this,arguments)){var i=t.currentTarget,a=w(this,n,!0).event(t),u=Zn(t.view).on("mousemove.zoom",(function(t){if(Aw(t),!a.moved){var n=t.clientX-s,e=t.clientY-l;a.moved=n*n+e*e>g}a.event(t).zoom("mouse",o(b(a.that.__zoom,a.mouse[0]=ne(t,i),a.mouse[1]),a.extent,f))}),!0).on("mouseup.zoom",(function(t){u.on("mousemove.zoom mouseup.zoom",null),ue(t.view,a.moved),Aw(t),a.event(t).end()}),!0),c=ne(t,i),s=t.clientX,l=t.clientY;ae(t.view),Tw(t),a.mouse=[c,this.__zoom.invert(c)],Gi(this),a.start()}}function S(t,...n){if(r.apply(this,arguments)){var e=this.__zoom,a=ne(t.changedTouches?t.changedTouches[0]:t,this),u=e.invert(a),c=e.k*(t.shiftKey?.5:2),l=o(b(_(e,c),a,u),i.apply(this,n),f);Aw(t),s>0?Zn(this).transition().duration(s).call(x,l,a,t):Zn(this).call(v.transform,l,a,t)}}function E(e,...i){if(r.apply(this,arguments)){var o,a,u,c,f=e.touches,s=f.length,l=w(this,i,e.changedTouches.length===s).event(e);for(Tw(e),a=0;a + + + + + Scatter Chart + + + +
+ + + + + + diff --git a/web/amCharts/scatter/chart_0066_scatter.inline01.js b/web/amCharts/scatter/chart_0066_scatter.inline01.js new file mode 100644 index 0000000000000000000000000000000000000000..3fe3e3caca2e468e70f044c7aaeaa49dfcb8d974 --- /dev/null +++ b/web/amCharts/scatter/chart_0066_scatter.inline01.js @@ -0,0 +1,2 @@ +!function(){var t,e,i,s,n,r={3145:function(t,e,i){"use strict";i.d(e,{UZ:function(){return r},cP:function(){return n},f_:function(){return o},i_:function(){return s}});const s=new class{constructor(){this.version="5.16.0",this.licenses=[],this.entitiesById={},this.rootElements=[],this.autoDispose=!1}};function n(t){s.licenses.push(t)}function r(){let t;for(;t=s.rootElements.pop();)t.dispose()}function o(t){let e;return s.rootElements.forEach((i=>{i.dom.id==t&&(e=i)})),e}},2855:function(t,e,i){"use strict";i.d(e,{f:function(){return F}});var s=i(6490),n=i(8777),r=i(2036),o=i(4431),a=i(1706),h=i(6881),l=i(7449),c=i(5071),u=i(7652);class d{constructor(){this._targets=[],this._observer=new ResizeObserver((t=>{c.each(t,(t=>{c.each(this._targets,(e=>{e.target===t.target&&e.callback()}))}))}))}addTarget(t,e){this._observer.observe(t,{box:"border-box"}),this._targets.push({target:t,callback:e})}removeTarget(t){this._observer.unobserve(t),c.keepIf(this._targets,(e=>e.target!==t))}}class p{constructor(){this._timer=null,this._targets=[]}addTarget(t,e){if(null===this._timer){let t=null;const e=()=>{const i=Date.now();(null===t||i>t+p.delay)&&(t=i,c.each(this._targets,(t=>{let e=t.target.getBoundingClientRect();e.width===t.size.width&&e.height===t.size.height||(t.size=e,t.callback())}))),0===this._targets.length?this._timer=null:this._timer=requestAnimationFrame(e)};this._timer=requestAnimationFrame(e)}this._targets.push({target:t,callback:e,size:{width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0}})}removeTarget(t){c.keepIf(this._targets,(e=>e.target!==t)),0===this._targets.length&&null!==this._timer&&(cancelAnimationFrame(this._timer),this._timer=null)}}p.delay=200;let g=null;class f{constructor(t,e){this._disposed=!1,this._sensor=(null===g&&(g="undefined"!=typeof ResizeObserver?new d:new p),g),this._element=t,this._listener=u.onZoom(e),this._sensor.addTarget(t,e)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}var _=i(9821),m=i(1479),y=i(7142),v=i(2876),w=i(780),b=i(6460),x=i(798),D=i(6331),k=i(256),T=i(3100);class M extends D.JH{_setDefaults(){this.setPrivate("defaultLocale",T.Z),super._setDefaults()}translate(t,e,...i){e||(e=this._root.locale||this.getPrivate("defaultLocale"));let s=t,n=e[t];if(null===n)s="";else if(null!=n)n&&(s=n);else if(e!==this.getPrivate("defaultLocale"))return this.translate(t,this.getPrivate("defaultLocale"),...i);if(i.length)for(let t=i.length,e=0;e{this.setTranslationAny(t,i,e)}))}translateEmpty(t,e,...i){let s=this.translate(t,e,...i);return s==t?"":s}translateFunc(t,e){return this._root.locale[t]?this._root.locale[t]:e!==this.getPrivate("defaultLocale")?this.translateFunc(t,this.getPrivate("defaultLocale")):()=>""}translateAll(t,e){return this.isDefault()?t:c.map(t,(t=>this.translate(t,e)))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}var E=i(9770),O=i(3783),P=i(4102),S=i(6245),N=i(1112),C=i(2132),L=i(3145),A=i(3540),R=i(5040),U=i(9395);function B(t,e){null==t?requestAnimationFrame(e):setTimeout((()=>{requestAnimationFrame(e)}),1e3/t)}class F{constructor(t,e={},i){if(this._isDirty=!1,this._isDirtyParents=!1,this._isDirtyAnimation=!1,this._dirty={},this._dirtyParents={},this._dirtyBounds={},this._dirtyPositions={},this._ticker=null,this._tickers=[],this._updateTick=!0,this.skipRenderFrame=!1,this.events=new E.p,this.animationTime=null,this._animations=[],this.language=M.new(this,{}),this.locale=T.Z,this.utc=!1,this.numberFormatter=w.e.new(this,{}),this.dateFormatter=b.C.new(this,{}),this.durationFormatter=x.$.new(this,{}),this.tabindex=0,this._tabindexes=[],this._a11yD=!1,this._focusElementDirty=!1,this._skipNextGroupJump=!0,this.verticalLayout=a.Z.new(this,{}),this.horizontalLayout=o.G.new(this,{}),this.gridLayout=h.M.new(this,{}),this._paused=!1,this.autoResize=!0,this._fontHash="",this._isDisposed=!1,this._disposers=[],this._tooltips=[],this._htmlEnabledContainers=[],this.entitiesById={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");let s,n;if(this._settings=e,0==e.accessible&&(this._a11yD=!0),null==e.useSafeResolution&&(e.useSafeResolution=!0),e.useSafeResolution&&(s=u.getSafeResolution()),this._renderer=new P.uK(s),n=t instanceof HTMLElement?t:document.getElementById(t),c.each(L.i_.rootElements,(t=>{if(t.dom===n){if(!L.i_.autoDispose)throw new Error("You cannot have multiple Roots on the same DOM node");t.dispose()}})),this.interfaceColors=_.v.new(this,{}),null===n)throw new Error("Could not find HTML element with id `"+t+"`");this.dom=n;let r=document.createElement("div");r.style.position="relative",r.style.width="100%",r.style.height="100%",n.appendChild(r);const l=e.tooltipContainerBounds;l&&(this._tooltipContainerSettings=l),this._inner=r,this._updateComputedStyles(),L.i_.rootElements.push(this)}static new(t,e){const i=new F(t,e,!0);return i._init(),i}moveDOM(t){let e;if(e=t instanceof HTMLElement?t:document.getElementById(t),e){for(;this.dom.childNodes.length>0;)e.appendChild(this.dom.childNodes[0]);this.dom=e,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const t=this.dom.offsetWidth,e=this.dom.offsetHeight;t<=150||e<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const t=this.tooltipContainer.children.push(n.W.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:(0,S.aQ)(100),centerY:S.AQ,tooltipY:10,tooltipText:"Created using amCharts 5",tooltipX:S.AQ,cursorOverStyle:"pointer",background:y.A.new(this,{fill:(0,N.$_)(4671320),fillOpacity:0,tooltipY:5})}));t.set("tooltip",this.systemTooltip),t.events.on("click",(()=>{window.open("https://www.amcharts.com/","_blank")})),t.states.create("hover",{});const e=t.children.push(m.T.new(this,{stroke:(0,N.$_)(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6",dx:-50,strokeOpacity:0}));e.states.create("hover",{stroke:(0,N.$_)(3976191)});const i=t.children.push(m.T.new(this,{stroke:(0,N.$_)(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0",dx:50,strokeOpacity:0})),s=U.out(U.cubic),r=1500;t.setTimeout((()=>{i.animate({key:"strokeOpacity",to:1,duration:r,easing:s}),i.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"strokeOpacity",to:1,duration:r,easing:s})}),3e3),i.states.create("hover",{stroke:(0,N.$_)(4671320)}),this._logo=t,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(t){return this._settings.calculateSize?this._settings.calculateSize(t):{width:t.width,height:t.height}}_init(){const t=this._settings;!1!==t.accessible&&(t.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),t.ariaLabel&&this._inner.setAttribute("aria-label",t.ariaLabel),t.role&&this._inner.setAttribute("role",t.role));const e=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),r=Math.floor(s.width),o=Math.floor(s.height),a=Math.floor(i.width),h=Math.floor(i.height),l=n.W.new(this,{visible:!0,width:r,height:o});this._rootContainer=l,this._rootContainer._defaultThemes.push(O.X.new(this));const c=l.children.push(n.W.new(this,{visible:!0,width:S.AQ,height:S.AQ}));this.container=c,e.resize(a,h,r,o),this._inner.appendChild(e.view),this._initResizeSensor();const d=document.createElement("div");if(this._htmlElementContainer=d,d.className="am5-html-container",d.style.position="absolute",d.style.pointerEvents="none",this._tooltipContainerSettings||(d.style.overflow="hidden"),this._inner.appendChild(d),!0!==this._a11yD){const t=document.createElement("div");t.className="am5-reader-container",t.setAttribute("role","alert"),t.style.position="absolute",t.style.width="1px",t.style.height="1px",t.style.overflow="hidden",t.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=t,this._inner.appendChild(this._readerAlertElement);const i=document.createElement("div");i.className="am5-focus-container",i.style.position="absolute",i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.width=r+"px",i.style.height=o+"px",i.setAttribute("role","graphics-document"),u.setInteractive(i,!1),this._focusElementContainer=i,this._inner.appendChild(this._focusElementContainer);const s=document.createElement("div");this._tooltipElementContainer=s,s.className="am5-tooltip-container",this._inner.appendChild(s),u.supports("keyboardevents")&&(this._disposers.push(u.addEventListener(window,"keydown",(t=>{const e=u.getEventKey(t);"Shift"==e?this._isShift=!0:"Tab"==e&&(this._isShift=t.shiftKey)}))),this._disposers.push(u.addEventListener(window,"keyup",(t=>{"Shift"==u.getEventKey(t)&&(this._isShift=!1)}))),this._disposers.push(u.addEventListener(i,"click",(()=>{const t=this._focusedSprite;if(t){const i=t.get("clickAnnounceText","");""!==i&&this.readerAlert(i);const s=e.getEvent(new MouseEvent("click"));t.events.dispatch("click",{type:"click",originalEvent:s.event,point:s.point,simulated:!0,target:t})}}))),this._disposers.push(u.addEventListener(i,"keydown",(t=>{const i=this._focusedSprite;if(i){"Escape"==t.key&&(u.blur(),this._focusedSprite=void 0);let s=0,n=0;const r=u.getEventKey(t);switch(r){case"Enter":case" ":const o=i.get("clickAnnounceText","");if(""!==o&&this.readerAlert(o)," "==r&&"checkbox"!=i.get("role"))return;t.preventDefault();const a=e.getEvent(new MouseEvent("mouse"));return void i.events.dispatch("click",{type:"click",originalEvent:a.event,point:a.point,simulated:!0,target:i});case"ArrowLeft":s=-6;break;case"ArrowRight":s=6;break;case"ArrowUp":n=-6;break;case"ArrowDown":n=6;break;default:return}if(0!=s||0!=n){if(t.preventDefault(),!i.isDragging()){this._keyboardDragPoint={x:0,y:0};const t=e.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));t.point={x:0,y:0},i.events.isEnabled("pointerdown")&&i.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:t.event,point:t.point,simulated:!0,target:i})}const r=this._keyboardDragPoint;r.x+=s,r.y+=n;const o=e.getEvent(new MouseEvent("mousemove",{clientX:r.x,clientY:r.y}),!1);i.events.isEnabled("globalpointermove")&&i.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:o.event,point:o.point,simulated:!0,target:i})}}}))),this._disposers.push(u.addEventListener(i,"keyup",(t=>{if(this._focusedSprite){const i=this._focusedSprite,s=u.getEventKey(t);switch(s){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(i.isDragging()){const t=this._keyboardDragPoint,s=e.getEvent(new MouseEvent("mouseup",{clientX:t.x,clientY:t.y}));return i.events.isEnabled("globalpointerup")&&i.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:s.event,point:s.point,simulated:!0,target:i}),void(this._keyboardDragPoint=void 0)}if(i.get("focusableGroup")){const t=i.get("focusableGroup"),e=this._tabindexes.filter((e=>!(e.get("focusableGroup")!=t||!1===e.getPrivate("focusable")||!e.isVisibleDeep())));let n=e.indexOf(i);const r=e.length-1;n+="ArrowRight"==s||"ArrowDown"==s?1:-1,n<0?n=r:n>r&&(n=0),u.focus(e[n].getPrivate("focusElement").dom)}break;case"Tab":const t=i.get("focusableGroup");if(t&&this._isShift)return void(this._skipNextGroupJump||(this._focusNext(i.getPrivate("focusElement").dom,-1,t),this._skipNextGroupJump=!0))}}}))))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}get systemTooltip(){if(!this._systemTooltip){const t=v.u.new(this,{themeTags:["system"]});this._systemTooltip=t}return this._systemTooltip}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new f(this.dom,(()=>{this.autoResize&&this.resize()})),this._disposers.push(this._resizeSensorDisposer)}resize(){const t=this._getRealSize(),e=this._getCalculatedSize(t),i=Math.floor(e.width),s=Math.floor(e.height);if(i>0&&s>0){const e=Math.floor(t.width),n=Math.floor(t.height),r=this._htmlElementContainer;if(r.style.width=i+"px",r.style.height=s+"px",!0!==this._a11yD){const t=this._focusElementContainer;t.style.width=i+"px",t.style.height=s+"px"}this._renderer.resize(e,n,i,s);const o=this._rootContainer;o.setPrivate("width",i),o.setPrivate("height",s),this._render(),this._handleLogo()}}_render(){this.skipRenderFrame?this.skipRenderFrame=!1:(this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1))}_runTickers(t){c.each(this._tickers,(e=>{e(t)}))}_runAnimations(t){let e=0;return c.keepIf(this._animations,(i=>{const n=i._runAnimation(t);return n!==s.SR.Stopped&&(n!==s.SR.Playing||(++e,!0))})),this._isDirtyAnimation=!1,0===e}_runDirties(){let t={};for(;this._isDirtyParents;)this._isDirtyParents=!1,k.entries(this._dirtyParents).forEach((([e,i])=>{delete this._dirtyParents[e],i.isDisposed()||(t[i.uid]=i,i._prepareChildren())}));k.entries(t).forEach((([t,e])=>{e._updateChildren()}));const e=[];k.entries(this._dirty).forEach((([t,i])=>{i.isDisposed()?delete this._dirty[t]:(e.push(i),i._beforeChanged())})),e.forEach((t=>{t._changed(),delete this._dirty[t.uid],t._clearDirty()})),this._isDirty=!1;const i={},s=[];k.entries(this._dirtyBounds).forEach((([t,e])=>{delete this._dirtyBounds[t],e.isDisposed()||(i[e.uid]=e.depth(),s.push(e))})),this._positionHTMLElements(),s.sort(((t,e)=>A.qu(i[e.uid],i[t.uid]))),s.forEach((t=>{t._updateBounds()}));const n=this._dirtyPositions;k.entries(n).forEach((([t,e])=>{delete n[t],e.isDisposed()||e._updatePosition()})),e.forEach((t=>{t._afterChanged()})),k.entries(t).forEach((([t,e])=>{e._childrenPrep=!1,e._childrenUpdt=!1}))}_renderFrame(t){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:t}),this._checkComputedStyles(),this._runTickers(t);const e=this._runAnimations(t);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:t}),0===this._tickers.length&&e&&!this._isDirtyAnimation&&!this._isDirty}return!0}_runTicker(t,e){this.isDisposed()||(this.animationTime=t,this._renderFrame(t)?(this._ticker=null,this.animationTime=null):this._paused||(e?this._ticker:B(this.fps,this._ticker)))}_runTickerNow(t=1e4){if(!this.isDisposed()){const e=performance.now()+t;for(;;){const t=performance.now();if(t>=e){this.animationTime=null;break}if(this.animationTime=t,this._renderFrame(t)){this.animationTime=null;break}}}}_startTicker(){null===this._ticker&&(this.animationTime=null,this._ticker=t=>{this._runTicker(t)},B(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(t){this._updateTick=t,t&&this._startTicker()}_addDirtyEntity(t){this._isDirty=!0,void 0===this._dirty[t.uid]&&(this._dirty[t.uid]=t),this._startTicker()}_addDirtyParent(t){this._isDirty=!0,this._isDirtyParents=!0,void 0===this._dirtyParents[t.uid]&&(this._dirtyParents[t.uid]=t),this._startTicker()}_addDirtyBounds(t){this._isDirty=!0,void 0===this._dirtyBounds[t.uid]&&(this._dirtyBounds[t.uid]=t),this._startTicker()}_addDirtyPosition(t){this._isDirty=!0,void 0===this._dirtyPositions[t.uid]&&(this._dirtyPositions[t.uid]=t),this._startTicker()}_addAnimation(t){this._isDirtyAnimation=!0,-1===this._animations.indexOf(t)&&this._animations.push(t),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",(()=>{this._isDirty=!0,this._startTicker()}))}eachFrame(t){return this._tickers.push(t),this._startTicker(),new l.ku((()=>{c.removeFirst(this._tickers,t)}))}markDirtyGlobal(t){t||(t=this.container),t.walkChildren((t=>{t instanceof n.W&&this.markDirtyGlobal(t),t.markDirty(),t.markDirtyBounds()}))}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),c.each(this._disposers,(t=>{t.dispose()})),this._inner&&u.removeElement(this._inner),c.remove(L.i_.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(t){if(!0!==this._a11yD){const e=this._readerAlertElement;t=u.stripTags(t),e.innerHTML==t&&(e.innerHTML=""),e.innerHTML=t}}setThemes(t){this._rootContainer.set("themes",t);const e=this.tooltipContainer;e&&e._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const t=this._tooltipContainerSettings,e=this._rootContainer.children.push(n.W.new(this,{position:"absolute",isMeasured:!1,width:S.AQ,height:S.AQ,layer:t?35:30,layerMargin:t||void 0}));this.tooltipContainer=e;const i=v.u.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(t){1!=this._a11yD&&(t.get("focusable")?c.pushOne(this._tabindexes,t):c.remove(this._tabindexes,t),this._invalidateTabindexes())}_unregisterTabindexOrder(t){1!=this._a11yD&&(c.remove(this._tabindexes,t),this._invalidateTabindexes())}_invalidateTabindexes(){if(1==this._a11yD)return;this._tabindexes.sort(((t,e)=>{const i=t.get("tabindexOrder",0),s=e.get("tabindexOrder",0);return i==s?0:i>s?1:-1}));const t=[];c.each(this._tabindexes,((e,i)=>{e.getPrivate("focusElement")?this._moveFocusElement(i,e):this._makeFocusElement(i,e);const s=e.get("focusableGroup");s&&!1!==e.getPrivate("focusable")&&(-1!==t.indexOf(s)?e.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):t.push(s))}))}_updateCurrentFocus(){1!=this._a11yD&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(t,e){if(1==this._a11yD)return;if(e||(e=t.getPrivate("focusElement").dom),!e)return;const i=t.get("role");i?e.setAttribute("role",i):e.removeAttribute("role");const s=t.get("ariaLabel");if(s){const i=(0,C.q)(t,s);e.setAttribute("aria-label",i)}else e.removeAttribute("aria-label");const n=t.get("ariaLive");n?e.setAttribute("aria-live",n):e.removeAttribute("aria-live");const r=t.get("ariaChecked");null!=r&&i&&-1!==["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)?e.setAttribute("aria-checked",r?"true":"false"):e.removeAttribute("aria-checked");const o=t.get("ariaCurrent");null!=o?e.setAttribute("aria-current",o):e.removeAttribute("aria-current");const a=t.get("ariaSelected");null!=a&&i&&-1!==["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)?e.setAttribute("aria-selected",a?"true":"false"):e.removeAttribute("aria-selected"),t.get("ariaHidden")?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden");const h=t.get("ariaOrientation");h?e.setAttribute("aria-orientation",h):e.removeAttribute("aria-orientation");const l=t.get("ariaValueNow");l?e.setAttribute("aria-valuenow",l):e.removeAttribute("aria-valuenow");const c=t.get("ariaValueMin");c?e.setAttribute("aria-valuemin",c):e.removeAttribute("aria-valuemin");const u=t.get("ariaValueMax");u?e.setAttribute("aria-valuemax",u):e.removeAttribute("aria-valuemax");const d=t.get("ariaValueText");d?e.setAttribute("aria-valuetext",d):e.removeAttribute("aria-valuetext");const p=t.get("ariaControls");p?e.setAttribute("aria-controls",p):e.removeAttribute("aria-controls"),t.get("visible")&&0!==t.get("opacity")&&"tooltip"!=t.get("role")&&!t.isHidden()&&!1!==t.getPrivate("focusable")&&(t.height()||t.width())?("-1"!=e.getAttribute("tabindex")&&e.setAttribute("tabindex",""+this.tabindex),e.removeAttribute("aria-hidden")):(e.removeAttribute("tabindex"),e.setAttribute("aria-hidden","true"))}_makeFocusElement(t,e){if(e.getPrivate("focusElement")||1==this._a11yD)return;const i=document.createElement("div");"tooltip"!=e.get("role")&&(i.tabIndex=this.tabindex),i.style.position="absolute",u.setInteractive(i,!1);const s=[];e.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(e),s.push(u.addEventListener(i,"focus",(t=>{this._handleFocus(t)}))),s.push(u.addEventListener(i,"blur",(t=>{this._handleBlur(t)}))),this._moveFocusElement(t,e)}_removeFocusElement(t){if(1==this._a11yD)return;c.remove(this._tabindexes,t);const e=t.getPrivate("focusElement");e&&(this._focusElementContainer.removeChild(e.dom),c.each(e.disposers,(t=>{t.dispose()})))}_hideFocusElement(t){1!=this._a11yD&&(t.getPrivate("focusElement").dom.style.display="none")}_moveFocusElement(t,e){if(1==this._a11yD)return;const i=this._focusElementContainer,s=e.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[t])return;const n=this._focusElementContainer.children[t+1];n?i.insertBefore(s,n):i.append(s)}_positionFocusElement(t){if(1==this._a11yD||null==t)return;this._focusElementContainer.scrollTop=0;const e=t.globalBounds();let i=e.right==e.left?t.width():e.right-e.left,s=e.top==e.bottom?t.height():e.bottom-e.top;const n=void 0!==this._settings.focusPadding?this._settings.focusPadding:2;let r=e.left-n,o=e.top-n;i<0&&(r+=i,i=Math.abs(i)),s<0&&(o+=s,s=Math.abs(s));const a=t.getPrivate("focusElement").dom;a.style.top=o+"px",a.style.left=r+"px",a.style.width=i+2*n+"px",a.style.height=s+2*n+"px"}_getSpriteByFocusElement(t){let e;return c.eachContinue(this._tabindexes,((i,s)=>i.getPrivate("focusElement").dom!==t||(e=i,!1))),e}_handleFocus(t){if(1==this._a11yD)return;const e=this._getSpriteByFocusElement(t.target);e&&(e.isVisibleDeep()?(this._positionFocusElement(e),this._focusedSprite=e,e.events.isEnabled("focus")&&e.events.dispatch("focus",{type:"focus",originalEvent:t,target:e}),-1==e.getPrivate("focusElement").dom.tabIndex&&(this._skipNextGroupJump=!1)):this._focusNext(t.target,this._isShift?-1:1))}_focusNext(t,e,i){if(1==this._a11yD)return;const s=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(",")));let n=s.indexOf(t)+e;n<0?n=s.length-1:n>=s.length&&(n=0);const r=s[n];if(i&&-1==e){const t=this._getSpriteByFocusElement(r);if(t&&t.get("focusableGroup")==i)return void this._focusNext(r,e)}r.focus()}_handleBlur(t){if(1==this._a11yD)return;const e=this._focusedSprite;e&&!e.isDisposed()&&e.events.isEnabled("blur")&&e.events.dispatch("blur",{type:"blur",originalEvent:t,target:e}),this._focusedSprite=void 0}updateTooltip(t){if(1==this._a11yD)return;const e=u.stripTags(t._getText());let i=t.getPrivate("tooltipElement");"tooltip"==t.get("role")&&""!=e?(i||(i=this._makeTooltipElement(t)),i.innerHTML!=e&&(i.innerHTML=e),i.setAttribute("aria-hidden",t.isVisibleDeep()?"false":"true")):i&&(i.remove(),t.removePrivate("tooltipElement"))}_makeTooltipElement(t){const e=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",u.setInteractive(i,!1),this._decorateFocusElement(t,i),e.append(i),t.setPrivate("tooltipElement",i),i}_removeTooltipElement(t){if(1==this._a11yD)return;const e=t.getPrivate("tooltipElement");if(e){const t=e.parentElement;t&&t.removeChild(e)}}_invalidateAccessibility(t){if(1==this._a11yD)return;this._focusElementDirty=!0;const e=t.getPrivate("focusElement");t.get("focusable")?e&&(this._decorateFocusElement(t),this._positionFocusElement(t)):e&&this._removeFocusElement(t)}focused(t){return this._focusedSprite===t}documentPointToRoot(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:(t.x-e.left)*s,y:(t.y-e.top)*n}}rootPointToDocument(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,n=i.height/e.height;return{x:t.x/s+e.left,y:t.y/n+e.top}}addDisposer(t){return this._disposers.push(t),t}_updateComputedStyles(){const t=window.getComputedStyle(this.dom);let e="";k.each(t,((t,i)=>{R.isString(t)&&t.match(/^font/)&&(e+=i)}));const i=e!=this._fontHash;return i&&(this._fontHash=e),i}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(t){t instanceof n.W?t.children.each((t=>{this._invalidateLabelBounds(t)})):t instanceof r.x&&t.markDirtyBounds()}_hasLicense(){for(let t=0;t{if(t.get("verticalScrollbar"))return r=!0,s=t,!1})),r&&(n=document.createElement("div"),t.setPrivate("htmlElementWrapper",n),t.setPrivate("wrapperContainer",s),n.style.position="absolute",n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",s.events.on("boundschanged",(()=>{this._positionHTMLElement(t)}))),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",u.setInteractive(i,t.get("interactive",!1)),t.events.isEnabled("click")&&(u.setInteractive(i,!0),this._disposers.push(u.addEventListener(i,"click",(e=>{const i=this._renderer.getEvent(e);t.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))),this._positionHTMLElement(t),r?(n.append(i),e.append(n)):e.append(i),c.pushOne(this._htmlEnabledContainers,t),i}_positionHTMLElements(){c.each(this._htmlEnabledContainers,(t=>{this._positionHTMLElement(t)}))}_positionHTMLElement(t){const e=t.getPrivate("htmlElementWrapper");if(e){const i=t.getPrivate("wrapperContainer");if(i){const t=i.globalBounds();e.style.clipPath="rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"}}const i=t.getPrivate("htmlElement");if(i){const e=["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"];c.each(e,(e=>{const s=t.get(e);i.style[e]=s?s+"px":""}));const s=["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"];c.each(s,(e=>{const s=t.get(e);s?"fontSize"!=e||R.isString(s)?i.style[e]=s+"":i.style[e]=s+"px":i.style[e]=""}));const n=t.compositeScale()||1,r=t.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";const o=t.compositeOpacity();setTimeout((()=>{i.style.opacity=o+""}),10);const a=t.isVisibleDeep();a&&(i.style.display="block");let h={x:t.x()+t.get("dx",0),y:t.y()+t.get("dy",0)};t.parent&&(h=t.parent.toGlobal(h)),i.style.top=h.y+"px",i.style.left=h.x+"px";const l=t.get("width"),u=t.get("height");let d=0,p=0;if(l&&(d=t.width()),u&&(p=t.height()),!l||!u){i.style.position="fixed",i.style.width="",i.style.height="";const e=i.getBoundingClientRect();i.style.position="absolute",l||(d=e.width),u||(p=e.height);let s=d/n,r=p/n,o=t.get("centerX",0),a=t.get("centerY",0),h=0,c=0,g=0,f=0;o instanceof S.gG?(h=-o.value*s,c=(1-o.value)*s):(h=-o,c=s-o),a instanceof S.gG?(g=-a.value*r,f=(1-a.value)*r):(g=-a,f=r-a),t._localBounds={left:h,right:c,top:g,bottom:f};let _=t._adjustedLocalBounds,m=t._display.getAdjustedBounds(t._localBounds);t._adjustedLocalBounds=m,_.left===m.left&&_.right===m.right&&_.top===m.top&&_.bottom===m.bottom||t.markDirtyBounds()}d>0&&(i.style.minWidth=d+"px"),p>0&&(i.style.minHeight=p+"px"),a&&0!=o||(i.style.display="none");const g=t.get("centerX",0),f=(0,S.hU)(g)?g.percent+"%":g+"px",_=t.get("centerY",0),m=(0,S.hU)(_)?_.percent+"%":_+"px";(g||_)&&(i.style.transform="translate(-"+f+", -"+m+")"+i.style.transform),1!=n&&(i.style.transform+="scale("+n+")"),0!=r&&(i.style.transform+=" rotate("+r+"deg)"),""!=i.style.transform&&(i.style.transformOrigin=f+" "+m)}}_setHTMLContent(t,e){let i=t.getPrivate("htmlElement");i||(i=this._makeHTMLElement(t),this.autoResize||this.resize()),i.innerHTML!=e&&(i.innerHTML=e)}_removeHTMLContent(t){const e=t.getPrivate("htmlElementWrapper"),i=t.getPrivate("htmlElement");e?(this._htmlElementContainer.removeChild(e),t.removePrivate("htmlElement"),t.removePrivate("htmlElementWrapper"),t.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),t.removePrivate("htmlElement"),t.removePrivate("wrapperContainer")),c.remove(this._htmlEnabledContainers,t)}}},3409:function(t,e,i){"use strict";i.d(e,{Q:function(){return o}});var s=i(5769),n=i(3540),r=i(5071);class o{constructor(t,e){if(this._rules={},this._root=t,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(t){const e=new this(t,!0);return e.setupDefaultRules(),e}setupDefaultRules(){}_lookupRules(t){return this._rules[t]}ruleRaw(t,e=[]){let i=this._rules[t];i||(i=this._rules[t]=[]),e.sort(n.qu);const{index:o,found:a}=r.getSortedIndex(i,(t=>{const i=n.qu(t.tags.length,e.length);return 0===i?n.wq(t.tags,e,n.qu):i}));if(a)return i[o].template;{const t=s.YS.new({});return i.splice(o,0,{tags:e,template:t}),t}}rule(t,e=[]){return this.ruleRaw(t,e)}}},5108:function(t,e,i){"use strict";i.d(e,{g:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){const t=this.get("sprite");t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}}n.className="Bullet",n.classNames=s.JH.classNames.concat([n.className])},8054:function(t,e,i){"use strict";i.d(e,{z:function(){return o}});var s=i(3497),n=i(8777),r=i(7652);class o extends n.W{_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",s.c.new(this._root,{themeTags:r.mergeTags(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const t=this._prevSettings.icon,e=this.get("icon");e!==t&&(this._disposeProperty("icon"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.icon=e)}if(this.isDirty("label")){const t=this._prevSettings.label,e=this.get("label");e!==t&&(this._disposeProperty("label"),t&&t.dispose(),e&&this.children.push(e),this._prevSettings.label=e)}}}o.className="Button",o.classNames=n.W.classNames.concat([o.className])},1337:function(t,e,i){"use strict";i.d(e,{k:function(){return r}});var s=i(8777),n=i(6245);class r extends s.W{constructor(){super(...arguments),this.chartContainer=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,interactiveChildren:!1})),this.bulletsContainer=s.W.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:n.AQ,height:n.AQ})}}r.className="Chart",r.classNames=s.W.classNames.concat([r.className])},8035:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,Math.abs(this.get("radius",10)))}}n.className="Circle",n.classNames=s.T.classNames.concat([n.className])},9361:function(t,e,i){"use strict";i.d(e,{w:function(){return c},z:function(){return l}});var s=i(7582),n=i(6331),r=i(8777),o=i(9582),a=i(5071),h=i(256);class l extends n.Zr{constructor(t,e,i){super(i),this.dataContext=e,this.component=t,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(t){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,t)}hide(t){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,t)}isHidden(){return!this.get("visible")}}class c extends r.W{constructor(){super(...arguments),this._data=new o.k,this._dataItems=[],this._mainDataItems=this._dataItems,this.valueFields=[],this.fields=["id"],this._valuesDirty=!1,this._dataChanged=!1,this._dataGrouped=!1,this.inited=!1}set data(t){t.incrementRef(),this._data.decrementRef(),this._data=t}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((t=>{const e=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===t.type)a.each(e,(t=>{t.dispose()})),e.length=0,this._onDataClear();else if("push"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.push(i),this.processDataItem(i)}else if("setIndex"===t.type){const i=e[t.index],s=this._makeDataItem(t.newValue);i.bullets&&0==i.bullets.length&&(i.bullets=void 0),h.entries(s).forEach((([t,e])=>{i.get(t)!=e&&i.animate({key:t,to:e,duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})})),i.dataContext=t.newValue}else if("insertIndex"===t.type){const i=new l(this,t.newValue,this._makeDataItem(t.newValue));e.splice(t.index,0,i),this.processDataItem(i)}else if("removeIndex"===t.type)e[t.index].dispose(),e.splice(t.index,1);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");{const i=e[t.oldIndex];e.splice(t.oldIndex,1),e.splice(t.newIndex,0,i)}}this._afterDataChange()})))}_postUpdateData(){}updateData(t){let e=0;a.each(t,((t,i)=>{const s=this.dataItems[i];if(s){const e=s.dataContext;e&&h.entries(t).forEach((([t,i])=>{e[t]=i}));const i=this._makeDataItem(e);h.entries(i).forEach((([t,e])=>{var i;if(s.get(t)!=e){s.set(t,e);const n=null===(i=this._valueFieldsF[t])||void 0===i?void 0:i.workingKey;n&&s.set(n,e)}}))}else this.data.push(t);e=i}));for(let t=this.dataItems.length-1;t>e;t--){const e=this.dataItems[t];a.remove(this.dataItems,e),e.dispose()}this._postUpdateData()}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},a.each(this.valueFields,(t=>{this.get(t+"Field")&&(this._valueFields.push(t),this._valueFieldsF[t]={fieldKey:t+"Field",workingKey:t+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},a.each(this.fields,(t=>{this.get(t+"Field")&&(this._fields.push(t),this._fieldsF[t]=t+"Field")})))}get dataItems(){return this._dataItems}processDataItem(t){}_makeDataItem(t){const e={};return this._valueFields&&a.each(this._valueFields,(i=>{const s=this.get(this._valueFieldsF[i].fieldKey);e[i]=t[s],e[this._valueFieldsF[i].workingKey]=e[i]})),this._fields&&a.each(this._fields,(i=>{const s=this.get(this._fieldsF[i]);e[i]=t[s]})),e}makeDataItem(t,e){let i=new l(this,e,t);return this.processDataItem(i),i}pushDataItem(t,e){const i=this.makeDataItem(t,e);return this._mainDataItems.push(i),i}disposeDataItem(t){}showDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!0)}))}hideDataItem(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){t.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const t="datavalidated";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this._dataChanged=!1}if(this._valuesDirty){const t="valueschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.inited=!0}markDirtyValues(t){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}getDataItemById(t){return a.find(this.dataItems,(e=>e.get("id")==t))}}c.className="Component",c.classNames=r.W.classNames.concat([c.className])},2936:function(t,e,i){"use strict";i.d(e,{p:function(){return r}});var s=i(8054),n=i(7652);class r extends s.z{_afterNew(){super._afterNew(),this.addTag("confirm"),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{const e=n.getEventKey(t);this.get("active")&&"Escape"==e&&this._cancel()}))),this._disposers.push(n.addEventListener(document,"click",(()=>{this._ignoreClick||this._cancel(),this._ignoreClick=!1}))),this.events.on("click",(()=>{this.get("active")||(this._ignoreClick=!0),this._confirm()}))}_cancel(){this.get("active")&&(this.events.dispatch("cancelled",{type:"cancelled",target:this}),this.set("active",!1))}_confirm(){this.get("active")&&(this.events.dispatch("confirmed",{type:"confirmed",target:this}),this.set("active",!1),this.isFocus()&&this.setTimeout((()=>{this.set("active",!1),n.blur()}),10))}_prepareChildren(){super._prepareChildren()}}r.className="ConfirmButton",r.classNames=s.z.classNames.concat([r.className])},8777:function(t,e,i){"use strict";i.d(e,{W:function(){return f}});var s=i(7144),n=i(5071);class r extends s.aV{constructor(t){super(),this._disposed=!1,this._container=t,this._events=this.events.onAll((t=>{if("clear"===t.type)n.each(t.oldValues,(t=>{this._onRemoved(t)}));else if("push"===t.type)this._onInserted(t.newValue);else if("setIndex"===t.type)this._onRemoved(t.oldValue),this._onInserted(t.newValue,t.index);else if("insertIndex"===t.type)this._onInserted(t.newValue,t.index);else if("removeIndex"===t.type)this._onRemoved(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");this._onRemoved(t.value),this._onInserted(t.value,t.newIndex)}}))}_onInserted(t,e){t._setParent(this._container,!0);const i=this._container._childrenDisplay;void 0===e?i.addChild(t._display):i.addChildAt(t._display,e)}_onRemoved(t){this._container._childrenDisplay.removeChild(t._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),n.each(this.values,(t=>{t.dispose()})))}}var o=i(6245),a=i(4596),h=i(7142),l=i(4431),c=i(1706),u=i(6881),d=i(2132),p=i(5040),g=i(7652);class f extends a.j{constructor(){super(...arguments),this._display=this._root._renderer.makeContainer(),this._childrenDisplay=this._root._renderer.makeContainer(),this.children=new r(this),this._percentageSizeChildren=[],this._percentagePositionChildren=[],this._prevWidth=0,this._prevHeight=0,this._contentWidth=0,this._contentHeight=0,this._childrenPrep=!1,this._childrenUpdt=!1}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){n.eachReverse(this.allChildren(),(t=>{t.dispose()})),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_beforeChanged(){this._childrenPrep||this._prepareChildren(),this._childrenUpdt||this._updateChildren(),super._beforeChanged()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each((t=>{t.removePrivate("x"),t.removePrivate("y")}))),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each((t=>{t.markDirtyPosition()})),this.isDirty("maskContent")){const t=this._childrenDisplay;let e=this._contentMask;this.get("maskContent")?e||(e=h.A.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=e,t.addChildAt(e._display,0),t.mask=e._display):e&&(t.removeChild(e._display),t.mask=null,e.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),n.each(this._percentageSizeChildren,(t=>{t._updateSize()})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t._updateSize()})),this.updateBackground()}updateBackground(){const t=this.get("background");let e=this._localBounds;if(e&&!this.isHidden()){let i=e.left,s=e.top,n=e.right-i,r=e.bottom-s,o=this.get("maxWidth"),a=this.get("maxHeight");a&&r>a&&(r=a),o&&n>o&&(n=o);let h=this.width(),l=this.height();t&&(t.setAll({width:n,height:r,x:i,y:s}),this._display.interactive&&(t._display.interactive=!0));const c=this._contentMask;c&&c.setAll({width:h+1,height:l+1});const u=this.get("verticalScrollbar");if(u){u.set("height",l),u.set("x",h-u.width()-u.get("marginRight",0)),u.set("end",u.get("start",0)+l/this._contentHeight);const t=u.get("background");t&&t.setAll({width:u.width(),height:l});let e=!0;this._contentHeight<=l&&(e=!1),u.setPrivate("visible",e)}}}_applyThemes(t=!1){return!!super._applyThemes(t)&&(this.eachChildren((e=>{e._applyThemes(t)})),!0)}_applyState(t){super._applyState(t),this.get("setStateOnChildren")&&this.eachChildren((e=>{e.states.apply(t)}))}_applyStateAnimated(t,e){super._applyStateAnimated(t,e),this.get("setStateOnChildren")&&this.eachChildren((i=>{i.states.applyAnimate(t,e)}))}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let t=this._localBounds;t&&(this._contentWidth=t.right-t.left,this._contentHeight=t.bottom-t.top)}else{let t=this.get("width"),e=this.get("height"),i=this.getPrivate("width"),s=this.getPrivate("height"),n={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),o=!1,a=!1;if((r instanceof l.G||r instanceof u.M)&&(o=!0),r instanceof c.Z&&(a=!0),null==t&&null==i||null==e&&null==s||this.get("verticalScrollbar")){let t=Number.MAX_VALUE,e=t,i=-t,s=t,r=-t;const h=this.get("paddingLeft",0),l=this.get("paddingTop",0),c=this.get("paddingRight",0),u=this.get("paddingBottom",0);this.children.each((t=>{if("absolute"!=t.get("position")&&t.get("isMeasured")){let n=t.adjustedLocalBounds(),h=t.x(),l=t.y(),c=h+n.left,u=h+n.right,d=l+n.top,p=l+n.bottom;o&&(c-=t.get("marginLeft",0),u+=t.get("marginRight",0)),a&&(d-=t.get("marginTop",0),p+=t.get("marginBottom",0)),ci&&(i=u),dr&&(r=p)}})),e==t&&(e=0),i==-t&&(i=0),s==t&&(s=0),r==-t&&(r=0),n.left=e-h,n.top=s-l,n.right=i+c,n.bottom=r+u;const d=this.get("minWidth");p.isNumber(d)&&d>0&&n.right-n.left=d?n.left=n.right-d:n.right=n.left+d);const g=this.get("minHeight");p.isNumber(g)&&g>0&&n.bottom-n.top=g?n.top=n.bottom-g:n.bottom=n.top+g)}this._contentWidth=n.right-n.left,this._contentHeight=n.bottom-n.top,p.isNumber(t)&&(n.left=0,n.right=t),p.isNumber(i)&&(n.left=0,n.right=i),p.isNumber(e)&&(n.top=0,n.bottom=e),p.isNumber(s)&&(n.top=0,n.bottom=s),this._localBounds=n}}_updateBounds(){const t=this.get("layout");t&&t.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){this._childrenPrep=!0;const t=this.innerWidth(),e=this.innerHeight();if(t!=this._prevWidth||e!=this._prevHeight){let i=this.get("layout"),s=!1,r=!1;i&&((i instanceof l.G||i instanceof u.M)&&(s=!0),i instanceof c.Z&&(r=!0)),n.each(this._percentageSizeChildren,(i=>{if(!s){let e=i.get("width");e instanceof o.gG&&i.setPrivate("width",e.value*t)}if(!r){let t=i.get("height");t instanceof o.gG&&i.setPrivate("height",t.value*e)}})),n.each(this._percentagePositionChildren,(t=>{t.markDirtyPosition(),t.markDirtyBounds()})),this._prevWidth=t,this._prevHeight=e,this._sizeDirty=!0,this.updateBackground()}}_updateHTMLContent(){const t=this.get("html","");t&&""!==t?this._root._setHTMLContent(this,(0,d.q)(this,t)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(t){const e=this.get("verticalScrollbar");if(e){let i=t.y(),s=this.innerHeight(),n=t.height(),r=this._contentHeight,o=1-(s-n/2)/r;if(i+.7*n+this._childrenDisplay.y>s||i-.3*n+this._childrenDisplay.y<0){let t=Math.max(0,Math.min(o,(i-n/2)/r));e.animate({key:"start",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")})}}}_updateChildren(){if(this._childrenUpdt=!0,this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){const t=this.get("verticalScrollbar");if(t){t._setParent(this),t.startGrip.setPrivate("visible",!1),t.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",t.width()+t.get("marginRight",0)+t.get("marginLeft",0));let e=this.get("background");e||(e=this.set("background",h.A.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",(e=>{const i=e.originalEvent;if(!g.isLocalEvent(i,this))return;i.preventDefault();let s=i.deltaY/5e3;const n=t.get("start",0),r=t.get("end",1);n+s<=0&&(s=-n),r+s>=1&&(s=1-r),n+s>=0&&r+s<=1&&(t.set("start",n+s),t.set("end",r+s))})),this._disposers.push(this._vsbd0),this._vsbd1=t.events.on("rangechanged",(()=>{let e=this._contentHeight;const i=this._childrenDisplay,s=this._contentMask;i.y=-t.get("start",0)*e,i.markDirtyLayer(),s&&(s._display.y=-i.y,i.mask=s._display)})),this._disposers.push(this._vsbd1),this._display.addChild(t._display)}else{const t=this._prevSettings.verticalScrollbar;t&&(this._display.removeChild(t._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose(),this._childrenDisplay.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0))}}if(this.isDirty("background")){const t=this._prevSettings.background;t&&this._display.removeChild(t._display);const e=this.get("background");e instanceof a.j&&(e.set("isMeasured",!1),e._setParent(this),this._display.addChildAt(e._display,0))}if(this.isDirty("mask")){const t=this.get("mask"),e=this._prevSettings.mask;if(e&&(this._display.removeChild(e._display),e!=t&&e.dispose()),t){const e=t.parent;e&&e.children.removeValue(t),t._setParent(this),this._display.addChildAt(t._display,0),this._childrenDisplay.mask=t._display}}}_processTemplateField(){super._processTemplateField(),this.children.each((t=>{t._processTemplateField()}))}walkChildren(t){this.children.each(((e,i)=>{e instanceof f&&e.walkChildren(t),t(e,i)}))}eachChildren(t){const e=this.get("background");e&&t(e);const i=this.get("verticalScrollbar");i&&t(i);const s=this.get("mask");s&&t(s),this.children.values.forEach((e=>{t(e)}))}allChildren(){const t=[];return this.eachChildren((e=>{t.push(e)})),t}_setDataItem(t){const e=t!==this._dataItem;super._setDataItem(t);const i=this.get("html","");i&&""!==i&&e&&this._root._setHTMLContent(this,(0,d.q)(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}}f.className="Container",f.classNames=a.j.classNames.concat([f.className])},6691:function(t,e,i){"use strict";i.d(e,{Y:function(){return d}});var s=i(962),n=i(8777),r=i(3497),o=i(6245),a=i(1112),h=i(7449),l=i(7652),c=i(5040),u=i(5071);class d extends s._{_afterNew(){super._afterNew();const t=this.children.push(n.W.new(this._root,{html:'',isMeasured:!1}));t.hide(),this.setPrivate("input",t);let e=this.get("background");e?e.set("themeTags",["editablelabel","background"]):e=this.set("background",r.c.new(this._root,{themeTags:["editablelabel","background"]}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();const t=this.get("editOn","click");"none"!=t&&(this._editOnEvents=new h.FV([this.getPrivate("input").events.on(t,(t=>{})),this.events.on(t,(t=>{this.set("active",!0)}))]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){const t=this.get("active",!1);t?this._startEditing():this._stopEditing();const e=this.get("background");e&&e.set("active",t)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){const t=this.getPrivate("input");if(t&&t.getPrivate("htmlElement")){const e=t.getPrivate("htmlElement").querySelector(".am5-editable-label");e&&(this.setPrivate("textarea",e),e.addEventListener("input",(t=>{!1===this.get("multiLine")&&(e.value=e.value.replace(/\n/g," ")),this.set("text",e.value),this._syncStyle()})),e.addEventListener("blur",(t=>this.set("active",!1))),l.supports("keyboardevents")&&this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Escape"==l.getEventKey(t)&&this.set("active",!1)}))),this._disposers.push(l.addEventListener(document,"keydown",(t=>{"Enter"==l.getEventKey(t)&&!1===this.get("multiLine")&&(t.preventDefault(),this.set("active",!1))}))),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._startEditing()}));this._text.set("opacity",0);const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(""==this.get("text","")&&this.set("text"," "),t.show(0),this.setTimeout((()=>{this._syncStyle(),e.focus()}),100))}_stopEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._stopEditing()}));const t=this.getPrivate("input"),e=this.getPrivate("textarea");e&&(this.set("text",e.value),t.hide(0),this._text.set("opacity",1))}_syncStyle(){const t=this.getPrivate("input"),e=this.getPrivate("textarea"),i=t.getPrivate("htmlElement");if(e&&i){const t=window.getComputedStyle(e);u.each(t,(t=>{e.style[t]="initial"})),e.style.color=this.get("fill",(0,a.$_)(0)).toCSS(this.get("fillOpacity",1)),e.style.backgroundColor="rgba(0, 0, 0, 0)",e.style.border="none",e.style.outline="none",e.style.padding="0",e.wrap="off",e.style.resize="none",e.style.overflow="hidden";const s=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);s>0?e.style.maxWidth=s+"px":e.style.minWidth="",e.style.height="auto",e.style.minHeight=e.scrollHeight+"px",this.get("width")&&(e.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",e.style.minWidth="");const n=this.get("lineHeight");n?n instanceof o.gG?e.style.lineHeight=n.value+"":c.isNumber(n)&&(e.style.lineHeight=n+""):e.style.lineHeight="1.2";let r=this.get("fontFamily");r||(r=getComputedStyle(i,"font-family").getPropertyValue("font-family")),e.style.fontFamily=r;let h=this.get("fontSize");h?c.isNumber(h)&&(h+="px"):h=getComputedStyle(i,"font-size").getPropertyValue("font-size"),e.style.fontSize=h;let l=this.get("fontWeight");l||(l=getComputedStyle(i,"font-weight").getPropertyValue("font-weight")),e.style.fontWeight=l;let d=this.get("fontStyle");d||(d=getComputedStyle(i,"font-style").getPropertyValue("font-style")),e.style.fontStyle=d;const p=this.get("oversizedBehavior");e.style.whiteSpace="wrap"==p?"pre-wrap":"nowrap",this._root.events.on("frameended",(()=>{""==e.style.minWidth&&(e.style.minWidth=e.scrollWidth+20+"px");const t=this.get("textAlign","start");"center"==t?(e.style.textAlign="center",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-50%)")):"end"==t?(e.style.textAlign="right",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-100%)")):e.style.textAlign=t}))}}_syncText(){const t=this.getPrivate("textarea");let e=this.get("text","");" "==e&&(e=""),t&&(t.value=e)}}d.className="EditableLabel",d.classNames=s._.classNames.concat([d.className])},2433:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radiusX")||this.isDirty("radiusY")||this.isDirty("rotation"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawEllipse(0,0,Math.abs(this.get("radiusX")),Math.abs(this.get("radiusY")))}}n.className="Ellipse",n.classNames=s.T.classNames.concat([n.className])},1479:function(t,e,i){"use strict";i.d(e,{T:function(){return l},u:function(){return h}});var s=i(4429),n=i(4596),r=i(4680),o=i(5040),a=i(5071);const h=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"];class l extends n.j{constructor(){super(...arguments),this._display=this._root._renderer.makeGraphics(),this._clear=!1}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const t=this.get("fillGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("fill")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("fill")}))))}}if(this.isDirty("strokeGradient")){const t=this.get("strokeGradient");if(t){this._display.isMeasured=!0;const e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",(()=>{this._markDirtyKey("stroke")}))),this._disposers.push(e.events.on("positionchanged",(()=>{this._markDirtyKey("stroke")}))))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let t=this.get("strokeDasharray");o.isNumber(t)&&(t=t<.5?[0]:[t]),this._display.setLineDash(t);const e=this.get("strokeDashoffset");e&&this._display.setLineDashOffset(e);const i=this.get("blendMode",r.b.NORMAL);this._display.blendMode=i;const s=this.get("draw");s&&"function"==typeof s&&s(this._display,this);const n=this.get("svgPath");null!=n&&this._display.svgPath(n)}}_afterChanged(){if(super._afterChanged(),this._clear){const t=this.get("fill"),e=this.get("fillGradient"),i=this.get("fillPattern"),n=this.get("fillOpacity"),r=this.get("stroke"),o=this.get("strokeGradient"),h=this.get("strokePattern"),l=this.get("shadowColor"),c=this.get("shadowBlur"),u=this.get("shadowOffsetX"),d=this.get("shadowOffsetY"),p=this.get("shadowOpacity");if(l&&(c||u||d)&&this._display.shadow(l,c,u,d,p),t&&!e&&(this._display.beginFill(t,n),this._display.endFill()),e){if(t){const i=e.get("stops",[]);i.length&&a.each(i,(e=>{e.color&&!e.colorInherited||!t||(e.color=t,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=n,e.opacityInherited=!0)}))}const i=e.getFill(this);i&&(this._display.beginFill(i,n),this._display.endFill())}if(i){const t=i.pattern;t&&(this._display.beginFill(t,n),this._display.endFill(),i instanceof s.v&&i.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}if(r||o||h){const t=this.get("strokeOpacity");let e=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(e/=this.get("scale",1)),this.get("crisp")&&(e/=this._root._renderer.resolution);const i=this.get("lineJoin"),n=this.get("lineCap");if(r&&!o&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke()),o){const s=o.get("stops",[]);s.length&&a.each(s,(e=>{e.color&&!e.colorInherited||!r||(e.color=r,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=t,e.opacityInherited=!0)}));const h=o.getFill(this);h&&(this._display.lineStyle(e,h,t,i,n),this._display.endStroke())}if(h){let r=h.pattern;r&&(this._display.lineStyle(e,r,t,i,n),this._display.endStroke(),h instanceof s.v&&h.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}l.className="Graphics",l.classNames=n.j.classNames.concat([l.className])},6881:function(t,e,i){"use strict";i.d(e,{M:function(){return o}});var s=i(2010),n=i(5071),r=i(751);class o extends s.A{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(t){let e=t.get("paddingLeft",0),i=t.get("paddingRight",0),n=t.get("paddingTop",0),o=t.maxWidth()-e-i,a=o,h=1;(0,s.j)(t,(t=>{if(t.get("visible")&&t.getPrivate("visible")&&!t.get("forceHidden")&&"absolute"!=t.get("position")){let e=t.width();eh&&(h=e)}})),a=r.fitToRange(a,1,o),h=r.fitToRange(h,1,o);let l=1;l=this.get("fixedWidthGrid")?o/h:o/a,l=Math.max(1,Math.floor(l)),l=Math.min(this.get("maxColumns",Number.MAX_VALUE),l);let c=this.getColumnWidths(t,l,h,o),u=n,d=0,p=0;l=c.length;let g=e;(0,s.j)(t,(t=>{if("relative"==t.get("position")&&t.isVisible()){const i=t.get("marginTop",0),s=t.get("marginBottom",0);let n=t.adjustedLocalBounds(),r=t.get("marginLeft",0),o=t.get("marginRight",0),a=g+r-n.left,h=u+i-n.top;t.setPrivate("x",a),t.setPrivate("y",h),g+=c[d]+o,p=Math.max(p,t.height()+i+s),d++,d>=l&&(d=0,g=e,u+=p,p=0)}}))}getColumnWidths(t,e,i,r){let o=0,a=[],h=0;return(0,s.j)(t,(s=>{let n=s.adjustedLocalBounds();"absolute"!=s.get("position")&&s.isVisible()&&(this.get("fixedWidthGrid")?a[h]=i:a[h]=Math.max(0|a[h],n.right-n.left+s.get("marginLeft",0)+s.get("marginRight",0)),h{o+=t})),o>r?e>2?(e-=1,this.getColumnWidths(t,e,i,r)):[r]:a}}o.className="GridLayout",o.classNames=s.A.classNames.concat([o.className])},4431:function(t,e,i){"use strict";i.d(e,{G:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingLeft",0),i=t.innerWidth(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minWidth",t.getPrivate("minWidth",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.width()),i-=e+t.get("marginLeft",0)+t.get("marginRight",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("width");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginLeft",0)-t.get("marginRight",0),n=t.get("minWidth",t.getPrivate("minWidth",-1/0)),r=t.get("maxWidth",t.getPrivate("maxWidth",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("width",s)}else t._prevSettings.width instanceof r.gG&&t.setPrivate("width",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginLeft",0),s=t.get("marginRight",0),n=t.get("maxWidth"),r=e.left,o=e.right;n&&o-r>n&&(o=r+n);let h=a+i-r;t.setPrivate("x",h),a=h+o+s}else t.setPrivate("x",void 0)}))}}o.className="HorizontalLayout",o.classNames=s.A.classNames.concat([o.className])},962:function(t,e,i){"use strict";i.d(e,{_:function(){return h}});var s=i(2036),n=i(6245),r=i(8777),o=i(5071),a=i(5040);class h extends r.W{constructor(){super(...arguments),this._textKeys=["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),o.each(this._textKeys,(t=>{const e=this.get(t);null!=e&&this._text.set(t,e)})),""!==this.get("html","")&&this._text.set("text",""),this.onPrivate("maxWidth",(()=>{this._setMaxDimentions()})),this.onPrivate("maxHeight",(()=>{this._setMaxDimentions()}))}_makeText(){this._text=this.children.push(s.x.new(this._root,{}))}_updateChildren(){super._updateChildren();const t=this._text;if(o.each(this._textKeys,(t=>{this._text.set(t,this.get(t))})),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),""!==this.get("html","")?t.set("text",""):(t.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){const e=this.get("textAlign");let i;null!=this.get("width")?i="right"==e?n.AQ:"center"==e?n.CI:0:"left"==e||"start"==e?i=this.get("paddingLeft",0):"right"!=e&&"end"!=e||(i=-this.get("paddingRight",0)),t.set("x",i)}const e=this.get("background");e&&e.setPrivate("visible",t._display.textVisible)}_maybeUpdateHTMLColor(){const t=this.getPrivate("htmlElement");t&&this.get("fill")&&(t.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){const t=this.get("rotation"),e=90==t||270==t||-90==t,i=this._text,s=this.get("maxWidth",this.getPrivate("maxWidth",1/0));a.isNumber(s)?i.set(e?"maxHeight":"maxWidth",s-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(e?"maxHeight":"maxWidth",void 0);const n=this.get("maxHeight",this.getPrivate("maxHeight",1/0));a.isNumber(n)?i.set(e?"maxWidth":"maxHeight",n-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(e?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",(()=>{i.markDirtyBounds()}))}_setDataItem(t){super._setDataItem(t),this._markDirtyKey("text"),this._markDirtyKey("html");const e=this._text;e.get("populateText")&&e.markDirtyText();const i=this.get("html");i&&""!==i&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}}h.className="Label",h.classNames=r.W.classNames.concat([h.className])},2010:function(t,e,i){"use strict";i.d(e,{A:function(){return r},j:function(){return n}});var s=i(6331);function n(t,e){t.get("reverseChildren",!1)?t.children.eachReverse(e):t.children.each(e)}class r extends s.JH{}r.className="Layout",r.classNames=s.JH.classNames.concat([r.className])},3105:function(t,e,i){"use strict";i.d(e,{D:function(){return c}});var s=i(3399),n=i(8777),r=i(962),o=i(3497),a=i(5769),h=i(7144),l=i(7652);class c extends s.F{constructor(){super(...arguments),this.itemContainers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:o.c.new(this._root,{themeTags:l.mergeTags(this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:l.mergeTags(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template])))),this.markers=this.addDisposer(new h.o(a.YS.new({}),(()=>n.W._new(this._root,{themeTags:l.mergeTags(this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template])))),this.labels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template])))),this.valueLabels=this.addDisposer(new h.o(a.YS.new({}),(()=>r._._new(this._root,{themeTags:l.mergeTags(this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template])))),this.markerRectangles=this.addDisposer(new h.o(a.YS.new({}),(()=>o.c._new(this._root,{themeTags:l.mergeTags(this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template]))))}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(t){const e=this.children.push(this.itemContainers.make());return e._setDataItem(t),this.itemContainers.push(e),e.states.create("disabled",{}),e}makeMarker(){const t=this.markers.make();return this.markers.push(t),t.states.create("disabled",{}),t}makeLabel(){const t=this.labels.make();return t.states.create("disabled",{}),t}makeValueLabel(){const t=this.valueLabels.make();return t.states.create("disabled",{}),t}makeMarkerRectangle(){const t=this.markerRectangles.make();return t.states.create("disabled",{}),t}processDataItem(t){super.processDataItem(t);const e=this.makeItemContainer(t),i=this.get("nameField"),s=this.get("fillField"),n=this.get("strokeField");if(e){const r=this.get("clickTarget","itemContainer"),o=t.dataContext;o&&o.set&&o.set("legendDataItem",t),e._setDataItem(t),t.set("itemContainer",e);const a=this.makeMarker();if(a){e.children.push(a),a._setDataItem(t),t.set("marker",a);const i=this.get("useDefaultMarker"),r=a.children.push(this.makeMarkerRectangle());let h=t.get("fill"),l=t.get("stroke");t.set("markerRectangle",r),o&&o.get&&(h=o.get(s,h),l=o.get(n,l)),l||(l=h),i?o.on&&(o.on(s,(()=>{r.set("fill",o.get(s))})),o.on(n,(()=>{r.set("stroke",o.get(n))}))):o&&o.createLegendMarker&&o.createLegendMarker(),r.setAll({fill:h,stroke:l});const c=o.component;c&&c.updateLegendMarker&&c.updateLegendMarker(o)}const h=this.makeLabel();if(h){e.children.push(h),h._setDataItem(t),t.set("label",h),h.text.on("text",(()=>{e.setRaw("ariaLabel",h.text._getText()+("none"!==this.get("clickTarget")?"; "+this._t("Press ENTER to toggle"):"")),e.markDirtyAccessibility()})),o&&o.get&&t.set("name",o.get(i));let s=t.get("name");s&&h.set("text",s)}const l=this.makeValueLabel();if(l&&(e.children.push(l),l._setDataItem(t),t.set("valueLabel",l)),o&&o.show&&(o.on("visible",(t=>{e.set("disabled",!t)})),o.get("visible")||e.set("disabled",!0),"none"!=r)){let i=e;"marker"==r&&(i=a),this._addClickEvents(i,o,t)}this.children.values.sort(((t,e)=>{const i=t.dataItem.dataContext,s=e.dataItem.dataContext;if(i&&s){const t=this.data.indexOf(i),e=this.data.indexOf(s);if(t>e)return 1;if(t{const t=e.component;t&&t.hoverDataItem&&t.hoverDataItem(e)})),t.events.on("pointerout",(()=>{const t=e.component;t&&t.hoverDataItem&&t.unhoverDataItem(e)})),t.events.on("click",(()=>{const s=i.get("label").text._getText();e.show&&e.isHidden&&(e.isHidden()||!1===e.get("visible"))?(e.show(),t.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,s))):e.hide&&(e.hide(),t.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,s)))}))}disposeDataItem(t){super.disposeDataItem(t);const e=t.dataContext;e&&e.get&&e.get("legendDataItem")==t&&e.set("legendDataItem",void 0);let i=t.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let s=t.get("marker");s&&(this.markers.removeValue(s),s.dispose());let n=t.get("markerRectangle");n&&(this.markerRectangles.removeValue(n),n.dispose());let r=t.get("label");r&&(this.labels.removeValue(r),r.dispose());let o=t.get("valueLabel");o&&(this.valueLabels.removeValue(o),o.dispose())}}c.className="Legend",c.classNames=s.F.classNames.concat([c.className])},2077:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var s=i(1479);function n(t,e){for(let i=0,s=e.length;i0){let e=s[0];if(e.length>0){let i=e[0];t.moveTo(i.x,i.y);for(let e=0,i=s.length;e0){let e=t[0];this._display.moveTo(e.x,e.y),n(this._display,[[t]])}else if(e)n(this._display,e);else if(!this.get("draw")){let t=this.width(),e=this.height();this._display.moveTo(0,0),this._display.lineTo(t,e)}}}}o.className="Line",o.classNames=s.T.classNames.concat([o.className])},5812:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var s=i(8777),n=i(941),r=i(6387),o=i(751);class a extends s.W{constructor(){super(...arguments),this.line=this.children.push(r.P.new(this._root,{themeTags:["line"]})),this.hitLine=this.children.push(r.P.new(this._root,{themeTags:["hit"]})),this.startArrow=this.children.push(n.C.new(this._root,{themeTags:["start","arrow"]})),this.endArrow=this.children.push(n.C.new(this._root,{themeTags:["end","arrow"]}))}_afterNew(){this.addTag("link"),super._afterNew()}_updateChildren(){if(super._updateChildren(),this.isDirty("points")){let t=r.P.makeOrthogonal(this.get("points",[]));this.line.set("points",t),this.hitLine.set("points",t);const e=this.startArrow,i=this.endArrow,s=t.length;if(s>1){const[n,r]=t;e.setAll({x:n.x,y:n.y,rotation:o.getAngle(n,r)-90});const a=t[s-1],h=t[s-2];i.setAll({x:a.x,y:a.y,rotation:o.getAngle(h,a)+90})}else if(1===s){const[s]=t;e.setAll({x:s.x,y:s.y,rotation:0}),i.setAll({x:s.x,y:s.y,rotation:0})}}}}a.className="Link",a.classNames=s.W.classNames.concat([a.className])},8289:function(t,e,i){"use strict";i.d(e,{G:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){return function(e){return new s(e,t)}}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(s+a,n+a*e,r-a,o-a*i,r,o)}},5892:function(t,e,i){"use strict";i.d(e,{$:function(){return n}});class s{constructor(t,e){this._line=0,this._point=0,this._x0=0,this._x1=0,this._y0=0,this._y1=0,this._t0=0,this._tension=0,this._context=t,this._tension=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,a(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){[t,e]=[e,t];let i=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,h(this,a(this,i=o(this,t,e)),i);break;default:h(this,this._t0,i=o(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}}function n(t){function e(e){return new s(e,t)}return e.tension=function(t){return n(+t)},e}function r(t){return t<0?-1:1}function o(t,e,i){let s=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(s||n<0&&-0),a=(i-t._y1)/(n||s<0&&-0),h=(o*n+a*s)/(s+n);return(r(o)+r(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(h))||0}function a(t,e){let i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function h(t,e,i){let s=t._x0,n=t._y0,r=t._x1,o=t._y1,a=(r-s)/1.5*(1-t._tension);t._context.bezierCurveTo(n+a*e,s+a,o-a*i,r-a,o,r)}},7049:function(t,e,i){"use strict";i.d(e,{l:function(){return h}});var s=i(8777),n=i(6691),r=i(7142),o=i(941),a=i(1112);class h extends s.W{constructor(){super(...arguments),this.label=this.children.push(n.Y.new(this._root,{})),this.buttonsContainer=this.children.push(s.W.new(this._root,{themeTags:["buttons"]})),this.upButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["upbutton"]})),this.downButton=this.buttonsContainer.children.push(o.C.new(this._root,{themeTags:["downbutton"]}))}_afterNew(){this.addTag("numericstepper"),this.set("layout",this._root.horizontalLayout),this.label.adapters.add("text",(t=>(t&&t.replace(/\D/g,""),""===t&&(t="0"),t))),this.set("background",r.A.new(this._root,{fillOpacity:0,fill:(0,a.$_)(16777215)})),this.buttonsContainer.states.create("hidden",{opacity:0,visible:!0}),this.events.on("pointerover",(()=>{this.buttonsContainer.set("active",!0)})),this.events.on("pointerout",(()=>{this.buttonsContainer.set("active",!1)})),this.label.on("text",(t=>{if(t){const e=parseFloat(t);isNaN(e)||this.set("value",e)}})),this.upButton.events.on("click",(()=>{this.set("value",this.get("value",0)+1)})),this.downButton.events.on("click",(()=>{this.set("value",Math.max(0,this.get("value",0)-1))})),super._afterNew()}_updateChildren(){super._updateChildren();const t=this.get("value",0),e=this.label;if(this.isDirty("value")&&e.set("text",t.toString()),this.isDirty("disabled")){const t=this.get("disabled",!1);this.set("interactive",!t),this.upButton.set("interactive",!t),this.downButton.set("interactive",!t),t?(this.label.set("editOn","none"),this.buttonsContainer.hide(0)):(this.label.set("editOn","click"),this.buttonsContainer.show(0))}}}h.className="NumericStepper",h.classNames=s.W.classNames.concat([h.className])},6387:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),this.isDirty("points")&&(this._clear=!0)}static makeOrthogonal(t){if(t.length>1){const e=[];for(let i=0;i0&&o&&l){if(h){s=Math.min(s,Math.abs(r.x-o.x)/2,Math.abs(r.y-n.y)/2);const e=Math.sign(r.y-n.y);t.lineTo(r.x,r.y-s*e);const i=o.x{this._display.image=e,this._updateSize(),!i.isDisposed()&&i.isEnabled("loaded")&&i.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{!i.isDisposed()&&i.isEnabled("loaderror")&&i.dispatch("loaderror",{type:"loaderror",target:this})}))}}_updateSize(){super._updateSize();const t=this._display.image;if(t){let e=this.getPrivate("width",this.get("width")),i=this.getPrivate("height",this.get("height"));const s=t.width&&t.height?t.width/t.height:0;n.isNumber(e)&&n.isNumber(i)?(this._display.width=e,this._display.height=i):n.isNumber(e)&&s?i=e/s:n.isNumber(i)&&s?e=i*s:(e=t.width,i=t.height),n.isNumber(e)&&(this._display.width=e),n.isNumber(i)&&(this._display.height=i),this.markDirtyBounds(),this.markDirty()}}}r.className="Picture",r.classNames=s.j.classNames.concat([r.className])},8931:function(t,e,i){"use strict";i.d(e,{i:function(){return r}});var s=i(1479),n=i(751);class r extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let t=this.width(),e=this.height();if(t>0&&e>0){let i=this.get("cornerRadius",8);i=n.fitToRange(i,0,Math.min(t/2,e/2));let s=this.get("pointerX",0),r=this.get("pointerY",0),o=this.get("pointerBaseWidth",15)/2,a=0,h=0,l=0,c=(s-a)*(e-h)-(r-h)*(t-a),u=(s-l)*(0-e)-(r-e)*(t-l);const d=this._display;if(d.moveTo(i,0),c>0&&u>0){let e=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,-1/0,0),d.lineTo(e-o,0),d.lineTo(s,r),d.lineTo(e+o,0)}if(d.lineTo(t-i,0),d.arcTo(t,0,t,i,i),c>0&&u<0){let a=Math.round(n.fitToRange(r,i+o,e-o-i));s=n.fitToRange(s,t,1/0),d.lineTo(t,i),d.lineTo(t,Math.max(a-o,i)),d.lineTo(s,r),d.lineTo(t,a+o)}if(d.lineTo(t,e-i),d.arcTo(t,e,t-i,e,i),c<0&&u<0){let a=Math.round(n.fitToRange(s,i+o,t-o-i));r=n.fitToRange(r,e,1/0),d.lineTo(t-i,e),d.lineTo(a+o,e),d.lineTo(s,r),d.lineTo(a-o,e)}if(d.lineTo(i,e),d.arcTo(0,e,0,e-i,i),c<0&&u>0){let t=Math.round(n.fitToRange(r,i+o,e-i-o));s=n.fitToRange(s,-1/0,0),d.lineTo(0,e-i),d.lineTo(0,t+o),d.lineTo(s,r),d.lineTo(0,Math.max(t-o,i))}d.lineTo(0,i),d.arcTo(0,0,i,0,i),d.closePath()}}}}r.className="PointedRectangle",r.classNames=s.T.classNames.concat([r.className])},7770:function(t,e,i){"use strict";i.d(e,{m:function(){return r}});var s=i(1479),n=i(5071);class r extends s.T{_beforeChanged(){if(super._beforeChanged(),this.isDirty("coordinates")){const t=[],e=this.get("coordinates");e&&n.each(e,(e=>{t.push({x:e[0],y:e[1]})})),this.set("points",t)}if(this.isPrivateDirty("points")&&(this._clear=!0),this.isDirty("points")){this._clear=!0;const t=this.get("points"),e=this._prevSettings.points;if(e){if(t){let i=n.copy(t),s=n.copy(e),r=i.length,o=s.length;if(r>o){let t=n.copy(i);for(let e=0;er){let t=n.copy(s);for(let e=0;e{this._markDirtyPrivateKey("morphProgress")}))}}else this.setPrivateRaw("previousPoints",t),this.setPrivateRaw("points",t);let i=1/0,s=-1/0,r=1/0,o=-1/0;if(t)for(let e=1,n=t.length;e{this.label.markDirtyKey("text")}))}}}l.className="ProgressPie",l.classNames=n.W.classNames.concat([l.className])},815:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(6245),n=i(962),r=i(4244),o=i(751),a=i(7652);class h extends n._{constructor(){super(...arguments),this._flipped=!1}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(r.f.new(this._root,{}))}baseRadius(){const t=this.getPrivate("radius",0),e=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return e+a.relativeToValue(i,t-e)}radius(){const t=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(t?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){const t=this.get("textType","adjusted"),e=this.get("inside",!1),i=this.get("orientation");let n=o.normalizeAngle(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",e);const r=o.sin(n),a=o.cos(n);let h=this.baseRadius(),l=this.radius();if(this._display.angle=0,"circular"==t)this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",l);else{0==h&&(n=0,l=0);let e=l*a,o=l*r;"radial"==t?(this.setRaw("x",e),this.setRaw("y",o),n<90||n>270||"auto"!=i?(this._display.angle=n,this._flipped=!1):(this._display.angle=n+180,this._flipped=!0),this._dirty.rotation=!1):"adjusted"==t?(this.setRaw("centerX",s.CI),this.setRaw("centerY",s.CI),this.setRaw("x",e),this.setRaw("y",o)):"regular"==t&&(this.setRaw("x",e),this.setRaw("y",o))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){const t=this.get("textType","regular"),e=this.get("inside",!1);let i=0,n=0,r=this.get("labelAngle",0),a=this.localBounds(),h=a.right-a.left,l=a.bottom-a.top;if("radial"==t){if(this._flipped){let t=this.get("centerX");t instanceof s.gG&&(h*=1-2*t.value),i=h*o.cos(r),n=h*o.sin(r)}}else e||"adjusted"!=t||(i=h/2*o.cos(r),n=l/2*o.sin(r));this.setRaw("dx",i),this.setRaw("dy",n),super._updatePosition()}get text(){return this._text}}h.className="RadialLabel",h.classNames=n._.classNames.concat([h.className])},4244:function(t,e,i){"use strict";i.d(e,{f:function(){return r}});var s=i(2036),n=i(751);class r extends s.x{constructor(){super(...arguments),this._display=this._root._renderer.makeRadialText("",this.textStyle)}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*n.RADIANS,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}r.className="RadialText",r.classNames=s.x.classNames.concat([r.className])},7142:function(t,e,i){"use strict";i.d(e,{A:function(){return n}});var s=i(1479);class n extends s.T{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let t=this.width(),e=this.height(),i=0,s=0,n=t/Math.abs(t),r=e/Math.abs(e);if(this.get("containStroke",!1)){const o=this.get("strokeWidth",0);t-=o*n,e-=o*r,i+=o/2*n,s+=o/2*r}this._display.drawRect(i,s,t,e)}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Rectangle",n.classNames=s.T.classNames.concat([n.className])},3497:function(t,e,i){"use strict";i.d(e,{c:function(){return a}});var s=i(5040),n=i(751),r=i(7652),o=i(7142);class a extends o.A{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let t=this.width(),e=this.height(),i=t/Math.abs(t),o=e/Math.abs(e),a=0,h=0;const l=this.get("strokeWidth",0);this.get("containStroke",!1)&&(t-=i*l,e-=o*l,a+=i*l/2,h+=o*l/2);let c=t,u=e;if(s.isNumber(c)&&s.isNumber(u)){let t=Math.min(c,u)/2,e=r.relativeToValue(this.get("cornerRadiusTL",8),t),s=r.relativeToValue(this.get("cornerRadiusTR",8),t),l=r.relativeToValue(this.get("cornerRadiusBR",8),t),d=r.relativeToValue(this.get("cornerRadiusBL",8),t),p=Math.min(Math.abs(c/2),Math.abs(u/2));e=n.fitToRange(e,0,p),s=n.fitToRange(s,0,p),l=n.fitToRange(l,0,p),d=n.fitToRange(d,0,p);const g=this._display;g.moveTo(a+e*i,h),g.lineTo(a+c-s*i,h),s>0&&g.arcTo(a+c,h,a+c,h+s*o,s),g.lineTo(a+c,h+u-l*o),l>0&&g.arcTo(a+c,h+u,a+c-l*i,h+u,l),g.lineTo(a+d*i,h+u),d>0&&g.arcTo(a,h+u,a,h+u-d*o,d),g.lineTo(a,h+e*o),e>0&&g.arcTo(a,h,a+e*i,h,e),g.closePath()}}}a.className="RoundedRectangle",a.classNames=o.A.classNames.concat([a.className])},6001:function(t,e,i){"use strict";i.d(e,{L:function(){return l}});var s=i(3497),n=i(8777),r=i(1479),o=i(8054),a=i(5040),h=i(7652);class l extends n.W{constructor(){super(...arguments),this.thumb=this._makeThumb(),this.startGrip=this._makeButton(),this.endGrip=this._makeButton(),this._thumbBusy=!1,this._startDown=!1,this._endDown=!1,this._thumbDown=!1}_addOrientationClass(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=s.c.new(this._root,{themeTags:h.mergeTags(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(o.z.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:r.T.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(s.c.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(t){t&&this._disposers.push(t.events.on("stopped",(()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1})))}_afterNew(){this._addOrientationClass(),super._afterNew();const t=this.startGrip,e=this.endGrip,i=this.thumb,s=this.get("background");s&&this._disposers.push(s.events.on("click",(t=>{this.setPrivateRaw("isBusy",!0);const e=this._display.toLocal(t.point),s=this.width(),n=this.height(),r=this.get("orientation");let o,a,h;o="vertical"==r?(e.y-i.height()/2)/n:(e.x-i.width()/2)/s,"vertical"==r?(a=o*n,h="y"):(a=o*s,h="x");const l=this.get("animationDuration",0);l>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:h,to:a,duration:l,easing:this.get("animationEasing")}))):(this.thumb.set(h,a),this._root.events.once("frameended",(()=>{this.setPrivateRaw("isBusy",!1)})))}))),this._disposers.push(i.events.on("dblclick",(t=>{if(!h.isLocalEvent(t.originalEvent,this))return;const e=this.get("animationDuration",0),i=this.get("animationEasing");this.animate({key:"start",to:0,duration:e,easing:i}),this.animate({key:"end",to:1,duration:e,easing:i})}))),this._disposers.push(t.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"}))),this._disposers.push(e.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"}))),this._disposers.push(i.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0}))),this._disposers.push(t.events.on("globalpointerup",(()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1}))),this._disposers.push(e.events.on("globalpointerup",(()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1}))),this._disposers.push(i.events.on("globalpointerup",(()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1}))),this._disposers.push(t.on("x",(()=>{this._updateThumb()}))),this._disposers.push(e.on("x",(()=>{this._updateThumb()}))),this._disposers.push(t.on("y",(()=>{this._updateThumb()}))),this._disposers.push(e.on("y",(()=>{this._updateThumb()}))),this._disposers.push(i.events.on("positionchanged",(()=>{this._updateGripsByThumb()}))),"vertical"==this.get("orientation")?(t.set("x",0),e.set("x",0),this._disposers.push(i.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()-i.height()),0)))),this._disposers.push(i.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("x",(t=>this.width()/2))),this._disposers.push(e.adapters.add("x",(t=>this.width()/2))),this._disposers.push(t.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0)))),this._disposers.push(e.adapters.add("y",(t=>Math.max(Math.min(Number(t),this.height()),0))))):(t.set("y",0),e.set("y",0),this._disposers.push(i.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()-i.width()),0)))),this._disposers.push(i.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("y",(t=>this.height()/2))),this._disposers.push(e.adapters.add("y",(t=>this.height()/2))),this._disposers.push(t.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))),this._disposers.push(e.adapters.add("x",(t=>Math.max(Math.min(Number(t),this.width()),0)))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){const t="rangechanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){const t="released";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}updateGrips(){const t=this.startGrip,e=this.endGrip,i=this.get("orientation"),s=this.height(),n=this.width();"vertical"==i?(t.set("y",s*this.get("start",0)),e.set("y",s*this.get("end",1))):(t.set("x",n*this.get("start",0)),e.set("x",n*this.get("end",1)));const r=this.getPrivate("positionTextFunction"),o=Math.round(100*this.get("start",0)),a=Math.round(100*this.get("end",0));let h,l;r?(h=r.call(this,this.get("start",0)),l=r.call(this,this.get("end",0))):(h=o+"%",l=a+"%"),t.set("ariaLabel",this._t("From %1",void 0,h)),t.set("ariaValueNow",""+o),t.set("ariaValueText",o+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100"),e.set("ariaLabel",this._t("To %1",void 0,l)),e.set("ariaValueNow",""+a),e.set("ariaValueText",a+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100")}_updateThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip,s=this.height(),n=this.width();let r=e.x(),o=i.x(),h=e.y(),l=i.y(),c=0,u=1;"vertical"==this.get("orientation")?a.isNumber(h)&&a.isNumber(l)&&(this._thumbBusy||t.isDragging()||(t.set("height",l-h),t.set("y",h)),c=h/s,u=l/s):a.isNumber(r)&&a.isNumber(o)&&(this._thumbBusy||t.isDragging()||(t.set("width",o-r),t.set("x",r)),c=r/n,u=o/n),!this.getPrivate("isBusy")||this.get("start")==c&&this.get("end")==u||(this.set("start",c),this.set("end",u));const d=this.getPrivate("positionTextFunction"),p=Math.round(100*this.get("start",0)),g=Math.round(100*this.get("end",0));let f,_;d?(f=d.call(this,this.get("start",0)),_=d.call(this,this.get("end",0))):(f=p+"%",_=g+"%"),t.set("ariaLabel",this._t("From %1 to %2",void 0,f,_)),t.set("ariaValueNow",""+p),t.set("ariaValueText",p+"%")}_updateGripsByThumb(){const t=this.thumb,e=this.startGrip,i=this.endGrip;if("vertical"==this.get("orientation")){const s=t.height();e.set("y",t.y()),i.set("y",t.y()+s)}else{const s=t.width();e.set("x",t.x()),i.set("x",t.x()+s)}}}l.className="Scrollbar",l.classNames=n.W.classNames.concat([l.className])},5829:function(t,e,i){"use strict";i.d(e,{j:function(){return h}});var s=i(1337),n=i(8777),r=i(7144),o=i(6245),a=i(5071);class h extends s.k{constructor(){super(...arguments),this.seriesContainer=n.W.new(this._root,{width:o.AQ,height:o.AQ,isMeasured:!1}),this.series=new r.dn}_afterNew(){super._afterNew(),this._disposers.push(this.series);const t=this.seriesContainer.children;this._disposers.push(this.series.events.onAll((e=>{if("clear"===e.type){a.each(e.oldValues,(t=>{this._removeSeries(t)}));const t=this.get("colors");t&&t.reset();const i=this.get("patterns");i&&i.reset()}else if("push"===e.type)t.moveValue(e.newValue),this._processSeries(e.newValue);else if("setIndex"===e.type)t.setIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("insertIndex"===e.type)t.insertIndex(e.index,e.newValue),this._processSeries(e.newValue);else if("removeIndex"===e.type)this._removeSeries(e.oldValue);else if("moveIndex"===e.type)t.moveValue(e.value,e.newIndex),this._processSeries(e.value);else{if("swap"!==e.type)throw new Error("Unknown IListEvent type");{const i=e.a,s=e.b,n=this.series.indexOf(i),r=this.series.indexOf(s);t.moveValue(i,r),t.moveValue(s,n),this.series.each((t=>{this._processSeries(t),t.markDirtyValues()}))}}})))}_processSeries(t){t.chart=this,t._placeBulletsContainer(this)}_removeSeries(t){t._handleRemoved(),t.isDisposed()||(this.seriesContainer.children.removeValue(t),t._removeBulletsContainer())}}h.className="SerialChart",h.classNames=s.k.classNames.concat([h.className])},3399:function(t,e,i){"use strict";i.d(e,{F:function(){return g}});var s=i(7582),n=i(9361),r=i(7144),o=i(1112),a=i(6490),h=i(6245),l=i(8777),c=i(962),u=i(5071),d=i(5040),p=i(1926);class g extends n.w{constructor(){super(...arguments),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1,this._dataProcessed=!1,this._baseSeriesDirty=!1,this.bullets=new r.aV,this.bulletsContainer=l.W.new(this._root,{width:h.AQ,height:h.AQ,position:"absolute"})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll((()=>{this._handleBullets(this.dataItems)})))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let t=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),t)}endIndex(){let t=this.dataItems.length;return Math.max(0,Math.min(this.getPrivate("endIndex",t),t))}_handleBullets(t){u.each(t,(t=>{const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)})),this.markDirtyValues()}_makeBullets(t){this._shouldMakeBullet(t)&&(t.bullets=[],this.bullets.each((e=>{this._makeBullet(t,e)})))}_shouldMakeBullet(t){return!0}_makeBullet(t,e,i){const s=e(this._root,this,t);return s&&(s._index=i,this._makeBulletReal(t,s)),s}_makeBulletReal(t,e){let i=e.get("sprite");i&&(i._setDataItem(t),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),e.series=this,t.bullets.push(e)}addBullet(t,e){t.bullets||(t.bullets=[]),e&&this._makeBulletReal(t,e)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();const t=this.dataItems,e=t.length;let i=this.startIndex(),s=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const t=this.getPrivate("baseValueSeries");t&&this._disposers.push(t.onPrivate("startIndex",(()=>{this._baseSeriesDirty=!0,this.markDirtyValues()})))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,e),this._aggregatesCalculated=!0,0!=i&&(this._psi=void 0))),this._psi==i&&this._pei==s&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===i&&s===e&&this._aggregatesCalculated||this._calculateAggregates(i,s),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let t=this.get("tooltip");t&&(t.hide(0),t.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let t;const e=this.get("legendDataItem");if(e&&(t=e.get("markerRectangle"),t&&this.isVisible())){if(this.isDirty("stroke")){let e=this.get("stroke");t.set("stroke",e)}if(this.isDirty("fill")){let e=this.get("fill");t.set("fill",e)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let i=this.startIndex(),s=this.endIndex();s-1==s.indexOf(t))));const n={},r={},o={},a={},h={},l={},c={},u={},d={};for(let t=0,e=i.length;t{if(0===t){const t=l[x],s=i-t;e.setRaw(_,s),e.setRaw(m,s/t*100)}const n=i-d[x],r=i-l[x];e.setRaw(y,n),e.setRaw(v,n/d[x]*100),e.setRaw(w,r),e.setRaw(b,r/l[x]*100),d[s]=i};for(let t=k;tt&&(a[f]=t),h[f]0&&t--,delete d[f];for(let e=t;e0&&u.each(t,(t=>{const e=t.minValue||this.getPrivate(t.dataField+"Low")||0,i=t.maxValue||this.getPrivate(t.dataField+"High")||0;u.each(t.target._entities,(s=>{const n=s.dataItem.get(t.dataField);if(!d.isNumber(n)){t.neutral&&s.set(t.key,t.neutral);const e=s.states;if(e){const i=e.lookup("default");i&&t.neutral&&i.set(t.key,t.neutral)}if(!t.customFunction)return}if(t.customFunction)t.customFunction.call(this,s,e,i,n);else{let r,l;r=t.logarithmic?(Math.log(n)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E):(n-e)/(i-e),!d.isNumber(n)||d.isNumber(r)&&Math.abs(r)!=1/0||(r=.5),d.isNumber(t.min)?l=t.min+(t.max-t.min)*r:t.min instanceof o.Il?l=o.Il.interpolate(r,t.min,t.max):t.min instanceof h.gG&&(l=(0,a.Wn)(r,t.min,t.max)),s.set(t.key,l);const c=s.states;if(c){const e=c.lookup("default");e&&e.set(t.key,l)}}}))})),this.get("visible")){const t=this.dataItems;let e=t.length,i=this.startIndex(),s=this.endIndex();s0&&i--;for(let e=0;e{this._positionBullet(t);const e=t.get("sprite");t.get("dynamic")&&(e&&(e._markDirtyKey("fill"),e.markDirtySize()),e instanceof l.W&&e.walkChildren((t=>{t._markDirtyKey("fill"),t.markDirtySize(),t instanceof c._&&t.text.markDirtyText()}))),e instanceof c._&&e.get("populateText")&&e.text.markDirtyText()}))}_hideBullets(t){t.bullets&&u.each(t.bullets,(t=>{let e=t.get("sprite");e&&e.setPrivate("visible",!1)}))}_positionBullet(t){}_placeBulletsContainer(t){t.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const t=this.bulletsContainer;t.parent&&t.parent.children.removeValue(t)}disposeDataItem(t){const e=t.bullets;e&&(u.each(e,(t=>{t.dispose()})),t.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.show(e))})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],n=t.bullets;n&&u.each(n,(t=>{const i=t.get("sprite");i&&s.push(i.hide(e))})),yield Promise.all(s)}))}_sequencedShowHide(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(d.isNumber(e)||(e=this.get("interpolationDuration",0)),e>0){const i=this.startIndex(),n=this.endIndex();yield Promise.all(u.map(this.dataItems,((r,o)=>(0,s.mG)(this,void 0,void 0,(function*(){let s=e||0;(on+10)&&(s=0);let a=this.get("sequencedDelay",0)+s/(n-i);yield p.sleep(a*(o-i)),t?yield this.showDataItem(r,s):yield this.hideDataItem(r,s)})))))}else yield Promise.all(u.map(this.dataItems,(e=>t?this.showDataItem(e,0):this.hideDataItem(e,0))))}))}updateLegendValue(t){if(t){const e=t.get("legendDataItem");if(e){const i=e.get("valueLabel");if(i){const e=i.text;let s="";i._setDataItem(t),s=this.get("legendValueText",e.get("text","")),i.set("text",s),e.markDirtyText()}const s=e.get("label");if(s){const e=s.text;let i="";s._setDataItem(t),i=this.get("legendLabelText",e.get("text","")),s.set("text",i),e.markDirtyText()}}}}updateLegendMarker(t){}_onHide(){super._onHide();const t=this.getTooltip();t&&t.hide()}hoverDataItem(t){}unhoverDataItem(t){}_getBase(t){const e=this.dataItems[this.startIndex()];return e?e.get(t):0}}g.className="Series",g.classNames=n.w.classNames.concat([g.className])},5863:function(t,e,i){"use strict";i.d(e,{p:function(){return h}});var s=i(1479),n=i(5040),r=i(6245),o=i(832),a=i(751);class h extends s.T{constructor(){super(...arguments),this.ix=0,this.iy=0,this._generator=(0,o.Z)()}_getTooltipPoint(){let t=this.get("tooltipX"),e=this.get("tooltipY"),i=0,s=0;n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e);let o=this.get("radius",0),a=this.get("innerRadius",0);return o+=this.get("dRadius",0),a+=this.get("dInnerRadius",0),a<0&&(a=o+a),t instanceof r.gG&&(i=this.ix*(a+(o-a)*t.value)),e instanceof r.gG&&(s=this.iy*(a+(o-a)*e.value)),this.get("arc")>=360&&0==a&&(i=0,s=0),{x:i,y:s}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let t=this.get("startAngle",0),e=this.get("arc",0);const i=this._generator;e<0&&(t+=e,e*=-1),e>.1&&i.cornerRadius(this.get("cornerRadius",0)),i.context(this._display);let s=this.get("radius",0),n=this.get("innerRadius",0);s+=this.get("dRadius",0),n+=this.get("dInnerRadius",0),n<0&&(n=s+n),i({innerRadius:n,outerRadius:s,startAngle:(t+90)*a.RADIANS,endAngle:(t+e+90)*a.RADIANS});let r=t+e/2;this.ix=a.cos(r),this.iy=a.sin(r);const o=this.get("shiftRadius",0);this.setRaw("dx",this.ix*o),this.setRaw("dy",this.iy*o),this.markDirtyPosition()}}}h.className="Slice",h.classNames=s.T.classNames.concat([h.className])},2162:function(t,e,i){"use strict";i.d(e,{i:function(){return n}});var s=i(6001);class n extends s.L{_afterNew(){this._addOrientationClass(),super._afterNew(),this.endGrip.setPrivate("visible",!1),this.thumb.setPrivate("visible",!1)}updateGrips(){super.updateGrips();const t=this.startGrip;this.endGrip.setAll({x:t.x(),y:t.y()}),this.setRaw("end",this.get("start"))}}n.className="Slider",n.classNames=s.L.classNames.concat([n.className])},4596:function(t,e,i){"use strict";i.d(e,{j:function(){return _}});var s=i(7582),n=i(6331),r=i(5769),o=i(6245),a=i(9770),h=i(7449),l=i(6490),c=i(7652),u=i(5071),d=i(5040),p=i(256),g=i(751);class f extends a.p{constructor(t){super(),this._rendererDisposers={},this._dispatchParents=!0,this._sprite=t}_makePointerEvent(t,e){return{type:t,originalEvent:e.event,point:e.point,simulated:e.simulated,native:e.native,target:this._sprite}}_onRenderer(t,e){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[t];if(void 0===i){const s=this._sprite._display.on(t,(t=>{e.call(this,t)}));i=this._rendererDisposers[t]=new h.DM((()=>{delete this._rendererDisposers[t],s.dispose()}))}return i.increment()}_on(t,e,i,s,n,r,o){const a=super._on(t,e,i,s,n,r,o),l=f.RENDERER_EVENTS[e];return void 0!==l&&(a.disposer=new h.FV([a.disposer,this._onRenderer(e,l)])),a}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(t,e){const i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(t,e),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(t,e)}finally{this._dispatchParents=i}}}f.RENDERER_EVENTS={click:function(t){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",t))&&this.dispatch("click",this._makePointerEvent("click",t))},rightclick:function(t){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",t))},middleclick:function(t){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",t))},dblclick:function(t){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",t))},pointerover:function(t){const e=this._sprite;let i=!0;if(e.getPrivate("trustBounds")){e._getBounds();const s=e.globalBounds();if(e.isType("Graphics")){const t=e.get("strokeWidth",1)/2;t>=1&&(s.left-=t,s.right+=t,s.top-=t,s.bottom+=t)}g.inBounds(t.point,s)||(i=!1,e._root._renderer.removeHovering(e._display))}i&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",t))},pointerout:function(t){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",t))},pointerdown:function(t){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",t))},pointerup:function(t){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",t))},globalpointerup:function(t){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",t))},globalpointermove:function(t){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",t))},wheel:function(t){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:t.event,point:t.point})}};class _ extends n.JH{constructor(){super(...arguments),this._adjustedLocalBounds={left:0,right:0,top:0,bottom:0},this._localBounds={left:0,right:0,top:0,bottom:0},this._sizeDirty=!1,this._isDragging=!1,this._isHidden=!1,this._isShowing=!1,this._isHiding=!1,this._isDown=!1,this._downPoints={}}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(t){this._markDirtyKey(t)}_markDirtyKey(t){super._markDirtyKey(t),"x"!=t&&"y"!=t&&"dx"!=t&&"dy"!=t||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(t){super._markDirtyPrivateKey(t),"x"!=t&&"y"!=t||this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new f(this)}_processTemplateField(){let t;const e=this.get("templateField");if(e){const i=this.dataItem;if(i){const s=i.dataContext;s&&(t=s[e],t instanceof r.YS||!t||(t=r.YS.new(t)))}}this._templateField!==t&&(this._removeTemplateField(),this._templateField=t,t&&t._setObjectTemplate(this),this._applyTemplates())}_setDataItem(t){const e=this._dataItem;this._dataItem=t,this._processTemplateField();const i="dataitemchanged";t!=e&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:e,newDataItem:t})}set dataItem(t){this._setDataItem(t)}get dataItem(){if(this._dataItem)return this._dataItem;{let t=this._parent;for(;t;){if(t._dataItem)return t._dataItem;t=t._parent}}}_addPercentageSizeChildren(){let t=this.parent;t&&(this.get("width")instanceof o.gG||this.get("height")instanceof o.gG?u.pushOne(t._percentageSizeChildren,this):u.removeFirst(t._percentageSizeChildren,this))}_addPercentagePositionChildren(){let t=this.parent;t&&(this.get("x")instanceof o.gG||this.get("y")instanceof o.gG?u.pushOne(t._percentagePositionChildren,this):u.removeFirst(t._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const t=this._localBounds;if(t){const e=this.get("centerX");null!=e&&(this._display.pivot.x=t.left+c.relativeToValue(e,t.right-t.left));const i=this.get("centerY");null!=i&&(this._display.pivot.y=t.top+c.relativeToValue(i,t.bottom-t.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const t=this._prevSettings.tooltip;t&&t.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0);const e=this._tooltipPointerDp;e&&(e.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))),this._tooltipPointerDp=new h.FV([this.events.on("pointerover",(()=>{this._tooltipMoveDp=this.events.on("globalpointermove",(t=>{this.showTooltip(t.point)}))})),this.events.on("pointerout",(()=>{const t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0)}))]))}}_handleStates(){this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();const t=this._display,e=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new h.FV([e.on("pointerdown",(t=>{this.dragStart(t)})),e.on("globalpointermove",(t=>{this.dragMove(t)})),e.on("globalpointerup",(t=>{this.dragStop(t)}))])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),t.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const t=this.get("tooltipText"),i=this.get("tooltipHTML"),s=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(t||i)&&("click"==s?(this._tooltipDp=new h.FV([e.on("click",(()=>{this.setTimeout((()=>{const t=this.getTooltip();t&&!t.isHidden()&&t.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()}),10)})),c.addEventListener(document,"click",(t=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)):"always"==s||(this._tooltipDp=new h.FV([e.on("pointerover",(()=>{this.showTooltip()})),e.on("pointerout",(()=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let t=this.get("toggleKey");t&&"none"!=t?this._toggleDp=e.on("click",(()=>{this._isDragging||this.set(t,!this.get(t))})):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(t.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),t.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),t.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?t.visible=!0:(t.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const t=this.parent;t&&(this.isDirty("width")&&this.get("width")instanceof o.gG||this.isDirty("height")&&this.get("height")instanceof o.gG)&&(t.markDirty(),t._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const e=this.get("wheelable");e&&this.set("interactive",!0),t.wheelable=!!e}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(t.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){const t=this.get("blur",0);0!=t&&(i+=" blur("+t+"px)")}if(this.isDirty("saturate")){const t=this.get("saturate",1);1!=t&&(i+=" saturate("+t+")")}if(this.isDirty("brightness")){const t=this.get("brightness",1);1!=t&&(i+=" brightness("+t+")")}if(this.isDirty("contrast")){const t=this.get("contrast",1);1!=t&&(i+=" contrast("+t+")")}if(this.isDirty("sepia")){const t=this.get("sepia",0);0!=t&&(i+=" sepia("+t+")")}if(this.isDirty("hue")){const t=this.get("hue",0);0!=t&&(i+=" hue-rotate("+t+"deg)")}if(this.isDirty("invert")){const t=this.get("invert",0);0!=t&&(i+=" invert("+t+")")}if(i&&(t.filter=i),this.isDirty("cursorOverStyle")&&(t.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new h.FV([e.on("focus",(()=>{this.showTooltip()})),e.on("blur",(()=>{this.hideTooltip()}))]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(e.on("blur",(()=>{this.setPrivateRaw("touchHovering",!1)}))),this._disposers.push(e.once("boundschanged",(()=>{this.markDirtyAccessibility()})))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(t.exportable=this.get("exportable")),this.isDirty("interactive")){const t=this.events;this.get("interactive")&&!t.isDisposed()?this._hoverDp=new h.FV([t.on("click",(t=>{c.isTouchEvent(t.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout((()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}),10))})),t.on("globalpointerup",(t=>{c.isTouchEvent(t.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:t.target,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})),this._isDown&&this._handleUp(t)})),t.on("pointerover",(()=>{this._handleOver()})),t.on("pointerout",(()=>{this._handleOut()})),t.on("pointerdown",(t=>{this._handleDown(t)}))]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}dragStart(t){this._dragEvent=t,this.events.stopParentDispatch()}dragStop(t){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const e="dragstop";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(t){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const e=c.getPointerId(t.originalEvent);delete this._downPoints[e],0==p.keys(this._downPoints).length&&(this._isDown=!1)}}_hasMoved(t){const e=c.getPointerId(t.originalEvent),i=this._downPoints[e];if(i){const e=Math.abs(i.x-t.point.x),s=Math.abs(i.y-t.point.y);return e>5||s>5}return!1}_hasDown(){return p.keys(this._downPoints).length>0}_handleDown(t){const e=this.parent;if(e&&!this.get("draggable")&&e._handleDown(t),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:t.point.x,y:t.point.y},this._isDown=!0;const e=c.getPointerId(t.originalEvent);this._downPoints[e]={x:t.point.x,y:t.point.y}}}dragMove(t){let e=this._dragEvent;if(e){if(e.simulated&&!t.simulated)return!0;let i=0,s=this.parent,n=1;for(;null!=s;)i+=s.get("rotation",0),s=s.parent,s&&(n*=s.get("scale",1));let r=(t.point.x-e.point.x)/n,o=(t.point.y-e.point.y)/n;const a=this.events;if(e.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}if(this._isDragging){let e=this._dragPoint;this.set("x",e.x+r*g.cos(i)+o*g.sin(i)),this.set("y",e.y+o*g.cos(i)-r*g.sin(i));const s="dragged";a.isEnabled(s)&&a.dispatch(s,{type:s,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}else if(Math.hypot(r,o)>5){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};const e="dragstart";a.isEnabled(e)&&a.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let t=this.parent,e=0;for(;;){if(!t)return e;++e,t=t.parent}}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const t=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),t.isMeasured=!0,t.invalidateBounds();const e=this.parent;e&&"absolute"!=this.get("position")&&(null==e.get("width")||null==e.get("height")||e.get("layout"))&&e.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const t=this._adjustedLocalBounds;let e;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),e=this._adjustedLocalBounds):(e={left:0,right:0,top:0,bottom:0},this._localBounds=e,this._adjustedLocalBounds=e),!t||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom){const t="boundschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(t){let e=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));d.isNumber(e)&&t.right-t.left0?t.right=t.left+s:t.left=t.right+s),d.isNumber(n)&&(n>0?t.bottom=t.top+n:t.top=t.bottom+n)}_removeParent(t){t&&(t.children.removeValue(this),u.removeFirst(t._percentageSizeChildren,this),u.removeFirst(t._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(t){if(!this.isDisposed()){const e=this.getTooltip(),i=this.get("tooltipText"),s=this.get("tooltipHTML");if((i||s)&&e){const n=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);if("fixed"!=n&&t||(this._display._setMatrix(),t=this.toGlobal(r._getTooltipPoint())),"pointer"==n){const e=this.getPrivate("lastTooltipCoords");if(e&&e.x==t.x&&e.y==t.y)return;this.setPrivate("lastTooltipCoords",t)}e.set("pointTo",t),e.set("tooltipTarget",r),e.get("x")||e.set("x",t.x),e.get("y")||e.set("y",t.y),i&&e.label.set("text",i),s&&e.label.set("html",s);const o=this.dataItem;if(o&&e.label._setDataItem(o),"always"==this.get("showTooltipOn")&&(t.x<0||t.x>this._root.width()||t.y<0||t.y>this._root.height()))return void this.hideTooltip();e.label.text.markDirtyText();const a=e.show();return this.setPrivateRaw("showingTooltip",!0),a}}}hideTooltip(){const t=this.getTooltip();if(t&&(this.removePrivate("lastTooltipCoords"),t.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==t)){let e=t.get("keepTargetHover")&&0==t.get("stateAnimationDuration",0)?400:void 0;const i=t.hide(e);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){const t=this._localBounds;if(t){let e=0,i=0;return this.get("isMeasured")?(e=t.left+c.relativeToValue(this.get("tooltipX",0),t.right-t.left),i=t.top+c.relativeToValue(this.get("tooltipY",0),t.bottom-t.top)):(e=c.relativeToValue(this.get("tooltipX",0),this.width()),i=c.relativeToValue(this.get("tooltipY",0),this.height())),{x:e,y:i}}return{x:0,y:0}}getTooltip(){let t=this.get("tooltip");if(t)return t;{let t=this.parent;if(t)return t.getTooltip()}}_updatePosition(){const t=this.parent;let e=this.get("dx",0),i=this.get("dy",0),s=this.get("x"),n=this.getPrivate("x"),r=0,a=0;const h=this.get("position");s instanceof o.gG&&(s=t?t.innerWidth()*s.value+t.get("paddingLeft",0):0),d.isNumber(s)?r=s+e:null!=n?r=n:t&&"relative"==h&&(r=t.get("paddingLeft",0)+e);let l=this.get("y"),c=this.getPrivate("y");l instanceof o.gG&&(l=t?t.innerHeight()*l.value+t.get("paddingTop",0):0),d.isNumber(l)?a=l+i:null!=c?a=c:t&&"relative"==h&&(a=t.get("paddingTop",0)+i);const u=this._display;if(u.x!=r||u.y!=a){u.invalidateBounds(),u.x=r,u.y=a;const t="positionchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let t=this.get("x"),e=this.getPrivate("x");const i=this.parent;return i?t instanceof o.gG?c.relativeToValue(t,i.innerWidth())+i.get("paddingLeft",0):d.isNumber(t)?t:null!=e?e:i.get("paddingLeft",this._display.x):this._display.x}y(){let t=this.getPrivate("y");if(null!=t)return t;let e=this.get("y");const i=this.parent;return i?e instanceof o.gG?c.relativeToValue(e,i.innerHeight())+i.get("paddingTop",0):d.isNumber(e)?e:null!=t?t:i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const t=this.get("tooltip");t&&t.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const t=this._adjustedLocalBounds,e=this.x(),i=this.y();return{left:t.left+e,right:t.right+e,top:t.top+i,bottom:t.bottom+i}}globalBounds(){const t=this.localBounds(),e=this.toGlobal({x:t.left,y:t.top}),i=this.toGlobal({x:t.right,y:t.top}),s=this.toGlobal({x:t.right,y:t.bottom}),n=this.toGlobal({x:t.left,y:t.bottom});return{left:Math.min(e.x,i.x,s.x,n.x),top:Math.min(e.y,i.y,s.y,n.y),right:Math.max(e.x,i.x,s.x,n.x),bottom:Math.max(e.y,i.y,s.y,n.y)}}_onShow(t){}_onHide(t){}appear(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.hide(0),e?new Promise(((i,s)=>{this.setTimeout((()=>{i(this.show(t))}),e)})):this.show(t)}))}show(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(t);const e=this.states.applyAnimate("default",t);yield(0,l.ne)(e),this._isShowing=!1}}))}hide(t){return(0,s.mG)(this,void 0,void 0,(function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let e=this.states.lookup("hidden");e||(e=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(t);const i=this.states.applyAnimate("hidden",t);yield(0,l.ne)(i),this._isHiding=!1}}))}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const t=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*t:t}compositeScale(){const t=this.get("scale",1);return this._parent?this._parent.compositeScale()*t:t}compositeRotation(){const t=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+t:t}width(){let t=this.get("width"),e=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),s=this.getPrivate("width"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerWidth()*t.value:this._root.width()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}maxWidth(){let t=this.get("maxWidth",this.getPrivate("maxWidth"));if(d.isNumber(t))return t;{let t=this.get("width");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerWidth():this._root.width()}maxHeight(){let t=this.get("maxHeight",this.getPrivate("maxHeight"));if(d.isNumber(t))return t;{let t=this.get("height");if(d.isNumber(t))return t}const e=this.parent;return e?e.innerHeight():this._root.height()}height(){let t=this.get("height"),e=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),s=this.getPrivate("height"),n=0;if(d.isNumber(s))n=s;else if(null==t)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(t instanceof o.gG){const e=this.parent;n=e?e.innerHeight()*t.value:this._root.height()*t.value}else d.isNumber(t)&&(n=t);return d.isNumber(i)&&(n=Math.max(i,n)),d.isNumber(e)&&(n=Math.min(e,n)),n}_findStaticTemplate(t){return this._templateField&&t(this._templateField)?this._templateField:super._findStaticTemplate(t)}_walkParents(t){(this._parent||this._virtualParent)&&this._walkParent(t)}_walkParent(t){this._parent?this._parent._walkParent(t):this._virtualParent&&this._virtualParent._walkParent(t),t(this)}set virtualParent(t){this._virtualParent!==t&&(this._virtualParent=t,this._applyThemes())}get parent(){return this._parent}_setParent(t,e=!1){const i=this._parent;t!==i&&(this.markDirtyBounds(),t.markDirty(),this._parent=t,e&&(this._removeParent(i),t&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(t){return this._display.toGlobal(t)}toLocal(t){return this._display.toLocal(t)}_getDownPoint(){const t=this._getDownPointId();if(t)return this._downPoints[t]}_getDownPointId(){if(this._downPoints)return p.keysOrdered(this._downPoints,((t,e)=>t>e?1:t{this._resize(t.target,-1)})),this.gripR.events.on("dragged",(t=>{this._resize(t.target,1)})),this.gripL.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripR.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripT.events.on("dragged",(t=>{this._rotate(t,90)})),this.gripB.events.on("dragged",(t=>{this._rotate(t,-90)})),this.gripT.events.on("dragstart",(t=>{this._resizeStart(t.target)})),this.gripB.events.on("dragstart",(t=>{this._resizeStart(t.target)}))}_resizeStart(t){const e=this.get("sprite");e&&(this._is=e.get("scale",1),this._ix=t.x(),this._iw=this.width()/2)}_resize(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=Math.max(.01,this._is*(1+e*(t.x()-this._ix)/this._iw));s?s.set("scale",n):i.set("scale",n),i.states.lookup("default").set("scale",n),this._updatePositions()}}_rotate(t,e){const i=this.get("sprite"),s=this.get("spriteTemplate");if(i){const n=this.parent;if(n){const r=this.get("rotationStep",10);let o=Math.round((h.getAngle({x:this.x(),y:this.y()},n.toLocal(t.point))+e)/r)*r;s?s.set("rotation",o):i.set("rotation",o),i.states.lookup("default").set("rotation",o),this._updatePositions()}}}_createGrip(t){const e=this.children.push(s.W.new(this._root,{themeTags:["grip",t],setStateOnChildren:!0,draggable:!0}));return e.children.push(r.c.new(this._root,{themeTags:["outline"],centerX:n.CI,centerY:n.CI})),e.children.push(r.c.new(this._root,{centerX:n.CI,centerY:n.CI})),e}_updateChildren(){if(super._updateChildren(),this.isDirty("sprite")){const t=this.get("sprite");if(t){this.show(0),this.setPrivate("visible",!0),this._updatePositions();const e=t.parent;e&&e.children.moveValue(this,0),this._positionDP=t.events.on("positionchanged",(()=>{this._updatePositions()})),this._positionDP=t.events.on("boundschanged",(()=>{this._updatePositions()}))}else this.hide(0),this.setPrivate("visible",!1),this._positionDP&&this._positionDP.dispose()}(this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation"))&&this._updatePositions()}_updatePositions(){const t=this.get("sprite");if(t){let e=t.localBounds(),i=t.get("scale",1),s=20,r=(e.right-e.left)*i+s,o=(e.bottom-e.top)*i+s,a=t.get("rotation",0);const l=this.rectangle;let c=t.get("centerX",n.CI),u=t.get("centerY",n.CI),d=0;c instanceof n.gG&&(d=c.value);let p=0;u instanceof n.gG&&(p=u.value),l.setAll({centerX:c,centerY:u,width:r,height:o}),this.setAll({x:t.x()+s*(d-.5)*h.cos(a)-s*(p-.5)*h.sin(a),y:t.y()+s*(p-.5)*h.cos(a)+s*(d-.5)*h.sin(a),width:r,height:o,rotation:a}),this.gripT.setAll({x:(.5-d)*r,y:-p*o}),this.gripB.setAll({x:(.5-d)*r,y:(1-p)*o}),this.gripL.setAll({x:-d*r,y:(.5-p)*o}),this.gripR.setAll({x:(1-d)*r,y:(.5-p)*o}),this.rectangle.setAll({width:r,height:o})}}}l.className="SpriteResizer",l.classNames=s.W.classNames.concat([l.className])},2036:function(t,e,i){"use strict";i.d(e,{x:function(){return h}});var s=i(4596),n=i(2132),r=i(5071),o=i(7652),a=i(7449);class h extends s.j{constructor(){super(...arguments),this.textStyle=this._root._renderer.makeTextStyle(),this._display=this._root._renderer.makeText("",this.textStyle),this._textStyles=["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}_updateBounds(){if(this.get("text")){super._updateBounds();let t=this.get("fillGradient");t&&(this._display.style.fill=t.getFill(this))}else{let t={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=t}}_changed(){super._changed(),this._display.clear();let t=this.textStyle;if(this.isDirty("opacity")){let t=this.get("opacity",1);this._display.alpha=t}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),"tooltip"==this.get("role")&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new a.ku((()=>{this._root._removeTooltipElement(this)}))),this.isDirty("width")&&(t.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(t.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(t.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(t.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(t.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(t.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){const e=this.get("fill"),i=this.get("fillGradient"),s=this.get("fillOpacity");if(i){if(e){const t=i.get("stops",[]);t.length&&r.each(t,(t=>{t.color&&!t.colorInherited||!e||(t.color=e,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=s,t.opacityInherited=!0)}))}t.fill=i.getFill(this)}else e&&(t.fill=e)}if(this.isDirty("fillOpacity")){let e=this.get("fillOpacity",1);e&&(t.fillOpacity=e)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(t.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(t.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),r.each(this._textStyles,(e=>{this._dirty[e]&&(t[e]=this.get(e),this.markDirtyBounds())})),t.fontSize=this.get("fontSize"),t.fontFamily=this.get("fontFamily"),this._display.style=t,this.isDirty("role")&&"tooltip"==this.get("role")&&this._root.updateTooltip(this)}_getText(){let t=this.get("text","");return this.get("maxChars")&&(t=o.truncateTextWithEllipsis(t,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?(0,n.q)(this,t):t}_getAccessibleText(){const t=this.get("ariaLabel");return void 0!==t?this.get("populateText")?(0,n.q)(this,t):t:this._getText()}markDirtyText(){this._display.text=this._getText(),"tooltip"==this.get("role")&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(t){super._setDataItem(t),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}h.className="Text",h.classNames=s.j.classNames.concat([h.className])},2438:function(t,e,i){"use strict";i.d(e,{d:function(){return n}});var s=i(2077);class n extends s.x{}n.className="Tick",n.classNames=s.x.classNames.concat([n.className])},2876:function(t,e,i){"use strict";i.d(e,{u:function(){return d}});var s=i(7449),n=i(962),r=i(8931),o=i(8777),a=i(6245),h=i(1112),l=i(751),c=i(5071),u=i(7652);class d extends o.W{constructor(t,e,i,s=[]){super(t,e,i,s),this._fx=0,this._fy=0,this._w=0,this._h=0,this._htmlContentHovered=!1}_afterNew(){this._settings.themeTags=u.mergeTags(this._settings.themeTags,["tooltip"]),super._afterNew(),this._setDefaultFn("background",(()=>r.i.new(this._root,{}))).set("themeTags",["tooltip","background"]),this._label=this.children.push(n._.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",(()=>{this._updateBackground()}))),this._disposers.push(this.on("bounds",(()=>{this._updateBackground()}))),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",(t=>{t&&(this._disposers.push(u.addEventListener(t,"pointerover",(t=>{this._htmlContentHovered=!0}))),this._disposers.push(u.addEventListener(t,"pointerout",(t=>{this._htmlContentHovered=!1}))))}))),this.on("visible",(t=>{this._handleReaderAnnouncement()})),this.label.events.on("dataitemchanged",(t=>{this._handleReaderAnnouncement()})),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),c.remove(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width"),null!=this.get("labelText")&&this.label.set("text",this.get("labelText")),null!=this.get("labelHTML")&&this.label.set("html",this.get("labelHTML")),null!=this.get("labelAriaLabel")&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover"))if(this.get("keepTargetHover")){const t=this.get("background");this._keepHoverDp=new s.FV([t.events.on("pointerover",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),e.hover())})),t.events.on("pointerout",(t=>{let e=this.get("tooltipTarget");e&&(e.parent&&e.parent.getPrivate("tooltipTarget")==e&&(e=e.parent),this._htmlContentHovered||e.unhover())}))]),this.label.onPrivate("htmlElement",(e=>{this._keepHoverDp&&e&&this._keepHoverDp.disposers.push(u.addEventListener(e,"pointerleave",(e=>{const i=this.root._renderer.getEvent(e);t.events.dispatch("pointerout",{type:"pointerout",originalEvent:i.event,point:i.point,simulated:!1,target:t})})))}))}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let t=this.get("tooltipTarget");const e=this.get("background");let i,s;if(t&&e){if(i=t.get("fill"),s=t.get("stroke"),null==i&&(i=s),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),null!=i&&e.set("fill",i),this._fillDp=t.on("fill",(t=>{null!=t&&(e.set("fill",t),this._updateTextColor(t))})),this._disposers.push(this._fillDp)),this.get("getFillGradientFromSprite")){this._fillGrDp&&this._fillGrDp.dispose();let i=t.get("fillGradient");null!=i&&e.set("fillGradient",i),this._fillGrDp=t.on("fillGradient",(t=>{null!=t&&e.set("fillGradient",t)})),this._disposers.push(this._fillGrDp)}this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),null!=i&&e.set("stroke",i),this._strokeDp=t.on("fill",(t=>{null!=t&&e.set("stroke",t)})),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),null!=i&&this.label.set("fill",i),this._labelDp=t.on("fill",(t=>{null!=t&&this.label.set("fill",t)})),this._disposers.push(this._labelDp))}this._updateTextColor(i)}_updateTextColor(t){this.get("autoTextColor")&&(null==t&&(t=this.get("background").get("fill")),null==t&&(t=this._root.interfaceColors.get("background")),t instanceof h.Il&&this.label.set("fill",h.Il.alternative(t,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(t){super._setDataItem(t),this.label._setDataItem(t)}_updateBackground(){super.updateBackground();const t=this._root.container;if(t){let e=.5,i=.5,s=this.get("centerX");s instanceof a.gG&&(e=s.value);let n=this.get("centerY");n instanceof a.gG&&(i=n.value);let o=t.width(),h=t.height(),c=this.parent,u=0,d=0;if(c){u=c.x(),d=c.y();const t=c.get("layerMargin");t&&(u+=t.left||0,d+=t.top||0,o+=(t.left||0)+(t.right||0),h+=(t.top||0)+(t.bottom||0))}const p=this.get("bounds",{left:-u,top:-d,right:o-u,bottom:h-d});this._updateBounds();let g=this.width(),f=this.height();0===g&&(g=this._w),0===f&&(f=this._h);let _=this.get("pointTo",{x:o/2,y:h/2}),m=_.x,y=_.y,v=this.get("pointerOrientation"),w=this.get("background"),b=0,x=0,D=0;w instanceof r.i&&(b=w.get("pointerLength",0),x=w.get("strokeWidth",0)/2,D=x,w.set("width",g),w.set("height",f));let k=0,T=0,M=p.right-p.left,E=p.bottom-p.top;"horizontal"==v||"left"==v||"right"==v?(x=0,"horizontal"==v?m>p.left+M/2?(m-=g*(1-e)+b,D*=-1):m+=g*e+b:"left"==v?m+=g*(1-e)+b:(m-=g*e+b,D*=-1)):(D=0,"vertical"==v?y>p.top+f/2+b?y-=f*(1-i)+b:(y+=f*i+b,x*=-1):"down"==v?y-=f*(1-i)+b:(y+=f*i+b,x*=-1)),m=l.fitToRange(m,p.left+g*e,p.left+M-g*(1-e))+D,y=l.fitToRange(y,p.top+f*i,p.top+E-f*(1-i))-x,k=_.x-m+g*e+D,T=_.y-y+f*i-x,this._fx=m,this._fy=y;const O=this.get("animationDuration",0);if(O>0&&this.get("visible")&&this.get("opacity")>.1){const t=this.get("animationEasing");this.animate({key:"x",to:m,duration:O,easing:t}),this.animate({key:"y",to:y,duration:O,easing:t})}else this.set("x",m),this.set("y",y);w instanceof r.i&&(w.set("pointerX",k),w.set("pointerY",T)),g>0&&(this._w=g),f>0&&(this._h=f)}}}d.className="Tooltip",d.classNames=o.W.classNames.concat([d.className])},941:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var s=i(1479);class n extends s.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){const t=this.width(),e=this.height(),i=this._display;i.moveTo(-t/2,e/2),i.lineTo(0,-e/2),i.lineTo(t/2,e/2),i.lineTo(-t/2,e/2),i.closePath()}_updateSize(){this.markDirty(),this._clear=!0}}n.className="Triangle",n.classNames=s.T.classNames.concat([n.className])},1706:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var s=i(2010),n=i(5040),r=i(6245);class o extends s.A{updateContainer(t){let e=t.get("paddingTop",0),i=t.innerHeight(),o=0;(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){o+=e.value;let s=i*e.value,n=t.get("minHeight",t.getPrivate("minHeight",-1/0));n>s&&(i-=n,o-=e.value);let r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s>r&&(i-=r,o-=e.value)}else n.isNumber(e)||(e=t.height()),i-=e+t.get("marginTop",0)+t.get("marginBottom",0)}})),(i<=0||i==1/0)&&(i=.1),(0,s.j)(t,(t=>{if(t.isVisible()&&"relative"==t.get("position")){let e=t.get("height");if(e instanceof r.gG){let s=i*e.value/o-t.get("marginTop",0)-t.get("marginBottom",0),n=t.get("minHeight",t.getPrivate("minHeight",-1/0)),r=t.get("maxHeight",t.getPrivate("maxHeight",1/0));s=Math.min(Math.max(n,s),r),t.setPrivate("height",s)}else t._prevSettings.height instanceof r.gG&&t.setPrivate("height",void 0)}}));let a=e;(0,s.j)(t,(t=>{if("relative"==t.get("position"))if(t.isVisible()){let e=t.adjustedLocalBounds(),i=t.get("marginTop",0),s=e.top,n=e.bottom,r=t.get("maxHeight");r&&n-s>r&&(n=s+r);let o=t.get("marginBottom",0),h=a+i-s;t.setPrivate("y",h),a=h+n+o}else t.setPrivate("y",void 0)}))}}o.className="VerticalLayout",o.classNames=s.A.classNames.concat([o.className])},6044:function(t,e,i){"use strict";i.d(e,{H:function(){return h}});var s=i(8777),n=i(8054),r=i(1479),o=i(7449),a=i(2647);class h extends s.W{constructor(){super(...arguments),this.homeButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["home"]})),this.plusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["plus"]})),this.minusButton=this.children.push(n.z.new(this._root,{width:35,height:35,themeTags:["minus"]}))}_afterNew(){super._afterNew(),this.set("position","absolute"),this.set("layout",this._root.verticalLayout),this.addTag("zoomtools"),this.plusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.minusButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.homeButton.setAll({icon:r.T.new(this._root,{themeTags:["icon"]}),layout:void 0})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("target")){const t=this.get("target"),e=this._prevSettings.target;t&&(t instanceof a.Y&&(this._targetDisposer=this.addDisposer(t.contents.on("scale",(e=>{e==t.get("minZoomLevel")?this.minusButton.set("disabled",!0):this.minusButton.set("disabled",!1),e==t.get("maxZoomLevel")?this.plusButton.set("disabled",!0):this.plusButton.set("disabled",!1)}))),this.root.events.once("frameended",(()=>{t.get("scale")==t.get("minZoomLevel")&&this.minusButton.set("disabled",!0)}))),this._disposer=new o.FV([this.plusButton.events.on("click",(()=>{t.zoomIn()})),this.minusButton.events.on("click",(()=>{t.zoomOut()})),this.homeButton.events.on("click",(()=>{t.goHome()}))])),e&&(this._disposer&&this._disposer.dispose(),this._targetDisposer&&this._targetDisposer.dispose())}}}h.className="ZoomTools",h.classNames=s.W.classNames.concat([h.className])},2647:function(t,e,i){"use strict";i.d(e,{Y:function(){return u}});var s=i(8777),n=i(6245),r=i(7142),o=i(1112),a=i(7652),h=i(751),l=i(256),c=i(5040);class u extends s.W{constructor(){super(...arguments),this._movePoints={},this._downScale=1,this._downX=0,this._downY=0,this.contents=this.children.push(s.W.new(this._root,{width:n.AQ,height:n.AQ,x:0,y:0,draggable:!0,background:r.A.new(this._root,{fill:(0,o.$_)(16777215),fillOpacity:0})}))}_afterNew(){super._afterNew();const t=this.contents.events;this._disposers.push(t.on("pointerdown",(t=>{this._handleThisDown(t)}))),this._disposers.push(t.on("globalpointerup",(t=>{this._handleThisUp(t)}))),this._disposers.push(t.on("globalpointermove",(t=>{this._handleThisMove(t)})));const e=this.contents.get("background");e&&(e.adapters.add("width",(t=>20*Number(t))),e.adapters.add("height",(t=>20*Number(t))),e.adapters.add("x",(t=>Number(t)-e.width()/2)),e.adapters.add("y",(t=>Number(t)-e.height()/2)));const i=this.contents;i.adapters.add("x",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.width();t=Math.min(n*s,t),t=Math.max(this.width()-n*e*(1+s),t)}return t})),i.adapters.add("y",(t=>{const e=i.get("scale",1);if(c.isNumber(t)&&e>=1){let s=this.get("maxPanOut",.4),n=i.height();t=Math.min(n*s,t),t=Math.max(this.height()-n*e*(1+s),t)}return t}))}_prepareChildren(){super._prepareChildren(),this.isDirty("wheelable")&&this._handleSetWheel(),this.contents._display.cancelTouch=this.get("pinchZoom",!1)}_handleSetWheel(){this.get("wheelable")?(this._wheelDp&&this._wheelDp.dispose(),this._wheelDp=this.events.on("wheel",(t=>{const e=t.originalEvent;if(!a.isLocalEvent(e,this))return;e.preventDefault();const i=this.toLocal(t.point);this._handleWheelZoom(e.deltaY,i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_handleWheelZoom(t,e){let i=this.get("zoomStep",2),s=this.contents.get("scale",1),n=s;t>0?n=s/i:t<0&&(n=s*i),n!=s&&this.zoomToPoint(e,n)}zoomToPoint(t,e){e&&(e=h.fitToRange(e,this.get("minZoomLevel",1),this.get("maxZoomLevel",32)));const i=this.contents.get("scale",1);let s=t.x,n=t.y,r=s,o=n;const a=this.contents;let l=r-(s-a.x())/i*e,c=o-(n-a.y())/i*e;return this._animateTo(l,c,e),this._za}zoomIn(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)*this.get("zoomStep",2))}zoomOut(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)/this.get("zoomStep",2))}goHome(){return this._animateTo(0,0,1)}_animateTo(t,e,i){const s=this.get("animationDuration",0),n=this.get("animationEasing"),r=this.contents;this._txa=r.animate({key:"x",to:t,duration:s,easing:n}),this._tya=r.animate({key:"y",to:e,duration:s,easing:n}),this._za=r.animate({key:"scale",to:i,duration:s,easing:n})}_handleThisUp(t){this._downPoints={}}_handleThisDown(t){const e=this.contents;this._downScale=e.get("scale",1);const i=e._downPoints;let s=l.keys(i).length;if(1==s){let e=i[1];e||(e=i[0]),e&&e.x==t.point.x&&e.y==t.point.y&&(s=0)}if(s>0){this._downX=e.x(),this._downY=e.y();const t=e._getDownPointId();if(t){let i=this._movePoints[t];i&&(e._downPoints[t]=i)}}}_handleThisMove(t){const e=t.originalEvent.pointerId;this.get("pinchZoom")&&e&&(this._movePoints[e]=t.point,l.keys(this.contents._downPoints).length>1)&&this._handlePinch()}_handlePinch(){let t=0,e=[],i=[];if(l.each(this.contents._downPoints,((s,n)=>{e[t]=n;let r=this._movePoints[s];r&&(i[t]=r),t++})),e.length>1&&i.length>1){this.contents._isDragging=!1;let t=e[0],s=e[1],n=i[0],r=i[1];if(t&&s&&n&&r){t=this.toLocal(t),s=this.toLocal(s),n=this.toLocal(n),r=this.toLocal(r);let e=Math.hypot(s.x-t.x,s.y-t.y),i=Math.hypot(r.x-n.x,r.y-n.y)/e*this._downScale,o={x:n.x+(r.x-n.x)/2,y:n.y+(r.y-n.y)/2},a={x:t.x+(s.x-t.x)/2,y:t.y+(s.y-t.y)/2},h=this._downX||0,l=this._downY||0,c=this._downScale,u=o.x-(-h+a.x)/c*i,d=o.y-(-l+a.y)/c*i;this.contents.setAll({x:u,y:d,scale:i})}}}}u.className="ZoomableContainer",u.classNames=s.W.classNames.concat([u.className])},4102:function(t,e,i){"use strict";i.d(e,{mM:function(){return at},uK:function(){return rt}});var s=i(4680),n=i(1112);class r{constructor(t=1,e=0,i=0,s=1,n=0,r=0){this.a=t,this.b=e,this.c=i,this.d=s,this.tx=n,this.ty=r}setTransform(t,e,i,s,n,r=1){this.a=Math.cos(n)*r,this.b=Math.sin(n)*r,this.c=-Math.sin(n)*r,this.d=Math.cos(n)*r,this.tx=t-(i*this.a+s*this.c),this.ty=e-(i*this.b+s*this.d)}apply(t){return{x:this.a*t.x+this.c*t.y+this.tx,y:this.b*t.x+this.d*t.y+this.ty}}applyInverse(t){const e=1/(this.a*this.d+this.c*-this.b);return{x:this.d*e*t.x+-this.c*e*t.y+(this.ty*this.c-this.tx*this.d)*e,y:this.a*e*t.y+-this.b*e*t.x+(-this.ty*this.a+this.tx*this.b)*e}}append(t){const e=this.a,i=this.b,s=this.c,n=this.d;this.a=t.a*e+t.b*s,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*s,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*s+this.tx,this.ty=t.tx*i+t.ty*n+this.ty}prepend(t){const e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){const e=this.a,i=this.c;this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty}copyFrom(t){this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty}}var o=i(6245),a=i(7449),h=i(7255),l=i(7652),c=i(5071),u=i(256),d=i(5040),p=i(751),g=2*Math.PI,f=function(t,e,i,s,n,r,o){var a=t.x,h=t.y;return{x:s*(a*=e)-n*(h*=i)+r,y:n*a+s*h+o}},_=function(t,e){var i=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),s=Math.cos(t),n=Math.sin(t),r=Math.cos(t+e),o=Math.sin(t+e);return[{x:s-n*i,y:n+s*i},{x:r+o*i,y:o-r*i},{x:r,y:o}]},m=function(t,e,i,s){var n=t*i+e*s;return n>1&&(n=1),n<-1&&(n=-1),(t*s-e*i<0?-1:1)*Math.acos(n)},y=function(t){var e=t.px,i=t.py,s=t.cx,n=t.cy,r=t.rx,o=t.ry,a=t.xAxisRotation,h=void 0===a?0:a,l=t.largeArcFlag,c=void 0===l?0:l,u=t.sweepFlag,d=void 0===u?0:u,p=[];if(0===r||0===o)return[];var y=Math.sin(h*g/360),v=Math.cos(h*g/360),w=v*(e-s)/2+y*(i-n)/2,b=-y*(e-s)/2+v*(i-n)/2;if(0===w&&0===b)return[];r=Math.abs(r),o=Math.abs(o);var x=Math.pow(w,2)/Math.pow(r,2)+Math.pow(b,2)/Math.pow(o,2);x>1&&(r*=Math.sqrt(x),o*=Math.sqrt(x));var D=function(t,e,i,s,n,r,o,a,h,l,c,u){var d=Math.pow(n,2),p=Math.pow(r,2),f=Math.pow(c,2),_=Math.pow(u,2),y=d*p-d*_-p*f;y<0&&(y=0),y/=d*_+p*f;var v=(y=Math.sqrt(y)*(o===a?-1:1))*n/r*u,w=y*-r/n*c,b=l*v-h*w+(t+i)/2,x=h*v+l*w+(e+s)/2,D=(c-v)/n,k=(u-w)/r,T=(-c-v)/n,M=(-u-w)/r,E=m(1,0,D,k),O=m(D,k,T,M);return 0===a&&O>0&&(O-=g),1===a&&O<0&&(O+=g),[b,x,E,O]}(e,i,s,n,r,o,c,d,y,v,w,b),k=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],s=!0,n=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(i.push(o.value),!e||i.length!==e);s=!0);}catch(t){n=!0,r=t}finally{try{!s&&a.return&&a.return()}finally{if(n)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(D,4),T=k[0],M=k[1],E=k[2],O=k[3],P=Math.abs(O)/(g/4);Math.abs(1-P)<1e-7&&(P=1);var S=Math.max(Math.ceil(P),1);O/=S;for(var N=0;N1){const e=/^([01])([01])(.*)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t.splice(i,0,e[2]),++i,e[3].length>0?t[i]=e[3]:t.splice(i,1))}if(++i,s=t[i],s.length>1){const e=/^([01])(.+)$/.exec(s);null!==e&&(t.splice(i,0,e[1]),++i,t[i]=e[2])}}}function D(t){if(0===t||1===t)return t;throw new Error("Flag must be 0 or 1")}function k(t,e){for(;(!t.interactive||e(t))&&t._parent;)t=t._parent}function T(t,e,i){return l.addEventListener(t,l.getRendererEvent(e),(t=>{const e=l.getEventTarget(t);let s=t.touches;s?(0==s.length&&(s=t.changedTouches),i(c.copy(s),e)):i([t],e)}))}function M(t){const e=document.createElement("canvas");e.width=1,e.height=1;const i=e.getContext("2d",{willReadFrequently:!0});i.drawImage(t,0,0,1,1);try{return i.getImageData(0,0,1,1),!1}catch(e){return console.warn('Image "'+t.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function E(t){t.width=0,t.height=0,t.style.width="0px",t.style.height="0px"}function O(t){return Math.floor(t)+.5}class P{constructor(){this._x=0,this._y=0}get x(){return this._x}get y(){return this._y}set x(t){this._x=t}set y(t){this._y=t}}class S extends a.KK{constructor(t){super(),this.mask=null,this.visible=!0,this.exportable=!0,this.interactive=!1,this.inactive=null,this.wheelable=!1,this.cancelTouch=!1,this.isMeasured=!1,this.buttonMode=!1,this.alpha=1,this.compoundAlpha=1,this.angle=0,this.scale=1,this.x=0,this.y=0,this.crisp=!1,this.pivot=new P,this._localMatrix=new r,this._matrix=new r,this._uMatrix=new r,this._renderer=t}subStatus(t){return{inactive:null==this.inactive?t.inactive:this.inactive,layer:this._layer||t.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let t=this;for(;;){if(t._layer)return t._layer;if(!t._parent)return this._renderer.defaultLayer;t=t._parent}}setLayer(t,e){if(null==t)this._layer=void 0;else{const i=!0;this._layer=this._renderer.getLayer(t,i),this._layer.visible=i,this._layer.margin=e,e&&l.setInteractive(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost()}}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(t){}_getColorId(){return void 0===this._colorId&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(t){return!t.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(t){return this._isInteractive(t)}contains(t){for(;;){if(t===this)return!0;if(!t._parent)return!1;t=t._parent}}toGlobal(t){return this._matrix.apply(t)}toLocal(t){return this._matrix.applyInverse(t)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){if(!this._localBounds){const t=1e7;this._localBounds={left:t,top:t,right:-t,bottom:-t},this._addBounds(this._localBounds)}return this._localBounds}getAdjustedBounds(t){this._setMatrix();const e=this.getLocalMatrix(),i=e.apply({x:t.left,y:t.top}),s=e.apply({x:t.right,y:t.top}),n=e.apply({x:t.right,y:t.bottom}),r=e.apply({x:t.left,y:t.bottom});return{left:Math.min(i.x,s.x,n.x,r.x),top:Math.min(i.y,s.y,n.y,r.y),right:Math.max(i.x,s.x,n.x,r.x),bottom:Math.max(i.y,s.y,n.y,r.y)}}on(t,e,i){return this.interactive?this._renderer._addEvent(this,t,e,i):new a.ku((()=>{}))}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(t,e){const i=this._matrix;let s=i.tx*e,n=i.ty*e;this.crisp&&(s=O(s),n=O(n)),t.setTransform(i.a*e,i.b*e,i.c*e,i.d*e,s,n)}_transformMargin(t,e,i){const s=this._matrix;t.setTransform(s.a*e,s.b*e,s.c*e,s.d*e,(s.tx+i.left)*e,(s.ty+i.top)*e)}_transformLayer(t,e,i){i.margin?this._transformMargin(t,i.scale||e,i.margin):this._transform(t,i.scale||e)}render(t,e=0){if(this.visible&&(!1!==this.exportable||!this._renderer._omitTainted)){this._setMatrix();const i=this.subStatus(t),s=this._renderer.resolution,n=this._renderer.layers,r=this._renderer._ghostLayer,o=r.context,a=this.mask;a&&a._setMatrix(),c.each(n,(t=>{if(t){const e=t.context;e.save(),a&&(a._transformLayer(e,s,t),a._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(e,s,t),this.filter&&(e.filter=this.filter)}})),o.save(),a&&this._isInteractiveMask(i)&&(a._transformMargin(o,s,r.margin),a._runPath(o),o.clip()),this._transformMargin(o,s,r.margin),i.layer.order>0&&!e&&c.move(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,e),o.restore(),c.each(n,(t=>{t&&t.context.restore()}))}}_render(t,e=0){!1===this.exportable&&(t.layer.tainted=!0)}_ghostOnly(t=0){return t>0}_drawGhost(t,e=0){const i=this._isInteractive(t),s=t.layer.order||0;return!(!i||(0!=s||this._ghostOnly(e))&&s!=e)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some((t=>t.value===this))}shouldCancelTouch(){const t=this._renderer;return!(t.tapToActivate&&!t._touchActive)&&(!!this.cancelTouch||!!this._parent&&this._parent.shouldCancelTouch())}}class N extends S{constructor(){super(...arguments),this.interactiveChildren=!0,this._children=[]}_isInteractiveMask(t){return this.interactiveChildren||super._isInteractiveMask(t)}addChild(t){t._parent=this,this._children.push(t),t._layer&&this.registerChildLayer(t._layer)}addChildAt(t,e){t._parent=this,this._children.splice(e,0,t),t._layer&&this.registerChildLayer(t._layer)}removeChild(t){t._parent=void 0,c.removeFirst(this._children,t)}_render(t,e){super._render(t);const i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,c.each(this._children,(i=>{i.compoundAlpha=this.compoundAlpha*this.alpha,i.render(t,e)})),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(t){this._childLayers||(this._childLayers=[]),c.pushOne(this._childLayers,t),this._parent&&this._parent.registerChildLayer(t)}markDirtyLayer(t=!1){super.markDirtyLayer(),t&&this._childLayers&&c.each(this._childLayers,(t=>t.dirty=!0))}_dispose(){super._dispose(),this._childLayers&&c.each(this._childLayers,(t=>{t.dirty=!0}))}}function C(t,e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.right=Math.max(t.right,e.x),t.bottom=Math.max(t.bottom,e.y)}class L{colorize(t,e){}colorizeGhost(t,e){this.colorize(t,e)}path(t){}pathGhost(t){this.path(t)}addBounds(t){}}class A extends L{colorize(t,e){t.beginPath()}}class R extends L{constructor(t){super(),this.color=t}colorize(t,e){t.fillStyle=void 0!==e?e:this.color}}class U extends L{constructor(t){super(),this.clearShadow=t}colorize(t,e){t.fill(),this.clearShadow&&(t.shadowColor="",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}}class B extends L{colorize(t,e){t.stroke()}}class F extends L{constructor(t,e,i,s){super(),this.width=t,this.color=e,this.lineJoin=i,this.lineCap=s}colorize(t,e){t.strokeStyle=void 0!==e?e:this.color,t.lineWidth=this.width,this.lineJoin&&(t.lineJoin=this.lineJoin),this.lineCap&&(t.lineCap=this.lineCap)}}class I extends L{constructor(t){super(),this.dash=t}colorize(t,e){t.setLineDash(this.dash)}}class H extends L{constructor(t){super(),this.dashOffset=t}colorize(t,e){t.lineDashOffset=this.dashOffset}}class z extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.width=i,this.height=s}path(t){t.rect(this.x,this.y,this.width,this.height)}addBounds(t){const e=this.x,i=this.y,s=e+this.width,n=i+this.height;C(t,{x:e,y:i}),C(t,{x:s,y:i}),C(t,{x:e,y:n}),C(t,{x:s,y:n})}}class G extends L{constructor(t,e,i){super(),this.x=t,this.y=e,this.radius=i}path(t){t.moveTo(this.x+this.radius,this.y),t.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radius,y:this.y-this.radius}),C(t,{x:this.x+this.radius,y:this.y+this.radius})}}class V extends L{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.radiusX=i,this.radiusY=s}path(t){t.ellipse(0,0,this.radiusX,this.radiusY,0,0,2*Math.PI)}addBounds(t){C(t,{x:this.x-this.radiusX,y:this.y-this.radiusY}),C(t,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class W extends L{constructor(t,e,i,s,n,r){super(),this.cx=t,this.cy=e,this.radius=i,this.startAngle=s,this.endAngle=n,this.anticlockwise=r}path(t){this.radius>0&&t.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(t){let e=p.getArcBounds(this.cx,this.cy,this.startAngle*p.DEGREES,this.endAngle*p.DEGREES,this.radius);C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}class Y extends L{constructor(t,e,i,s,n){super(),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.radius=n}path(t){this.radius>0&&t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(t){}}class j extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.lineTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class X extends L{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.moveTo(this.x,this.y)}addBounds(t){C(t,{x:this.x,y:this.y})}}class $ extends L{path(t){t.closePath()}}class Z extends L{constructor(t,e,i,s,n,r){super(),this.cpX=t,this.cpY=e,this.cpX2=i,this.cpY2=s,this.toX=n,this.toY=r}path(t){t.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.cpX2,y:this.cpY2}),C(t,{x:this.toX,y:this.toY})}}class K extends L{constructor(t,e,i,s){super(),this.cpX=t,this.cpY=e,this.toX=i,this.toY=s}path(t){t.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(t){C(t,{x:this.cpX,y:this.cpY}),C(t,{x:this.toX,y:this.toY})}}class q extends L{constructor(t,e,i,s,n){super(),this.color=t,this.blur=e,this.offsetX=i,this.offsetY=s,this.opacity=n}colorize(t,e){this.opacity&&(t.fillStyle=this.color),t.shadowColor=this.color,t.shadowBlur=this.blur,t.shadowOffsetX=this.offsetX,t.shadowOffsetY=this.offsetY}colorizeGhost(t,e){}}class Q extends L{constructor(t,e,i,s,n){super(),this.image=t,this.width=e,this.height=i,this.x=s,this.y=n}path(t){t.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(t){C(t,{x:this.x,y:this.y}),C(t,{x:this.width,y:this.height})}}class J extends S{constructor(){super(...arguments),this._operations=[],this.blendMode=s.b.NORMAL,this._hasShadows=!1}clear(){super.clear(),this._operations.length=0}_pushOp(t){this._operations.push(t)}beginFill(t,e=1){this._fillAlpha=e,t?t instanceof n.Il?this._pushOp(new R(t.toCSS(e))):(this.isMeasured=!0,this._pushOp(new R(t))):this._pushOp(new R("rgba(0, 0, 0, "+e+")"))}endFill(){this._pushOp(new U(this._hasShadows))}endStroke(){this._pushOp(new B)}beginPath(){this._pushOp(new A)}lineStyle(t=0,e,i=1,s,r){this._strokeAlpha=i,e?e instanceof n.Il?this._pushOp(new F(t,e.toCSS(i),s,r)):this._pushOp(new F(t,e,s,r)):this._pushOp(new F(t,"rgba(0, 0, 0, "+i+")",s,r))}setLineDash(t){this._pushOp(new I(t||[]))}setLineDashOffset(t=0){this._pushOp(new H(t))}drawRect(t,e,i,s){this._pushOp(new z(t,e,i,s))}drawCircle(t,e,i){this._pushOp(new G(t,e,i))}drawEllipse(t,e,i,s){this._pushOp(new V(t,e,i,s))}arc(t,e,i,s,n,r=!1){this._pushOp(new W(t,e,i,s,n,r))}arcTo(t,e,i,s,n){this._pushOp(new Y(t,e,i,s,n))}lineTo(t,e){this._pushOp(new j(t,e))}moveTo(t,e){this._pushOp(new X(t,e))}bezierCurveTo(t,e,i,s,n,r){this._pushOp(new Z(t,e,i,s,n,r))}quadraticCurveTo(t,e,i,s){this._pushOp(new K(t,e,i,s))}closePath(){this._pushOp(new $)}shadow(t,e=0,i=0,s=0,n){this._hasShadows=!0,this._pushOp(new q(n?t.toCSS(n):t.toCSS(this._fillAlpha||this._strokeAlpha),e,i,s))}image(t,e,i,s,n){this._pushOp(new Q(t,e,i,s,n))}svgPath(t){let e=0,i=0,s=null,n=null,r=null,o=null;const a=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,h=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g,l=this._operations.length;try{let l;for(;null!==(l=a.exec(t));){const t=l[1],a=l[2],u=[];for(;null!==(l=h.exec(a));)u.push(l[1]);switch("S"!==t&&"s"!==t&&"C"!==t&&"c"!==t&&(s=null,n=null),"Q"!==t&&"q"!==t&&"T"!==t&&"t"!==t&&(r=null,o=null),t){case"M":b(t,u.length,2),e=+u[0],i=+u[1],this.moveTo(e,i);for(let t=2;t{this.bezierCurveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y),e=t.x,i=t.y}))}break;case"Z":case"z":v(t,u.length,0),this.closePath()}}}catch(e){this._operations.length=l,console.warn("Error when parsing svgPath:\n "+e.message+"\n"+t)}}_runPath(t){t.beginPath(),c.each(this._operations,(e=>{e.path(t)}))}_render(t,e=0){super._render(t);const i=t.layer.dirty,s=this._isInteractive(t),n=this._ghostOnly(e),r=this._drawGhost(t,e);if(i||s||n){const e=t.layer.context,s=this._renderer._ghostLayer.context;let o;i&&!n&&(e.globalCompositeOperation=this.blendMode,e.beginPath()),r&&(s.beginPath(),o=this._getColorId()),c.each(this._operations,(t=>{i&&!n&&(t.path(e),t.colorize(e,void 0)),r&&(t.pathGhost(s),t.colorizeGhost(s,o))}))}}renderDetached(t){if(this.visible){this._setMatrix(),t.save();const e=this.mask;e&&(e._setMatrix(),e._transform(t,1),e._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transform(t,1),this.filter&&(t.filter=this.filter),t.globalCompositeOperation=this.blendMode,t.beginPath(),c.each(this._operations,(e=>{e.path(t),e.colorize(t,void 0)})),t.restore()}}_addBounds(t){this.visible&&this.isMeasured&&c.each(this._operations,(e=>{e.addBounds(t)}))}}class tt extends S{constructor(t,e,i){super(t),this.resolution=1,this.textVisible=!0,this._originalScale=1,this.text=e,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_shared(t){this.style.textAlign&&(t.textAlign=this.style.textAlign),this.style.direction&&(t.direction=this.style.direction),this.style.textBaseline&&(t.textBaseline=this.style.textBaseline)}_prerender(t,e=!1,i=!1){super._render(t);const s=t.layer.context,r=this._renderer._ghostLayer.context,o=this.style;let a=this._getFontStyle(void 0,i);s.font=a,this._isInteractive(t)&&!e&&(r.font=a),o.fill&&(o.fill instanceof n.Il?s.fillStyle=o.fill.toCSS(null!=o.fillOpacity?o.fillOpacity:1):s.fillStyle=o.fill),o.shadowColor&&(t.layer.context.shadowColor=o.shadowColor.toCSS(o.shadowOpacity||1)),o.shadowBlur&&(t.layer.context.shadowBlur=o.shadowBlur),o.shadowOffsetX&&(t.layer.context.shadowOffsetX=o.shadowOffsetX),o.shadowOffsetY&&(t.layer.context.shadowOffsetY=o.shadowOffsetY),this._shared(s),this._isInteractive(t)&&!e&&(r.fillStyle=this._getColorId(),this._shared(r))}_getFontStyle(t,e=!1){const i=this.style;let s=[];return t&&t.fontVariant?s.push(t.fontVariant):i.fontVariant&&s.push(i.fontVariant),e||(t&&t.fontWeight?s.push(t.fontWeight):i.fontWeight&&s.push(i.fontWeight)),t&&t.fontStyle?s.push(t.fontStyle):i.fontStyle&&s.push(i.fontStyle),t&&t.fontSize?(d.isNumber(t.fontSize)&&(t.fontSize=t.fontSize+"px"),s.push(t.fontSize)):i.fontSize&&(d.isNumber(i.fontSize)&&(i.fontSize=i.fontSize+"px"),s.push(i.fontSize)),t&&t.fontFamily?s.push(t.fontFamily):i.fontFamily?s.push(i.fontFamily):s.length&&s.push("Arial"),s.join(" ")}_render(t,e=0){if(this._textInfo||this._measure(t),this.textVisible){const i=this._isInteractive(t),s=t.layer.context,r=t.layer.dirty,o=this._renderer._ghostLayer.context,a=this._ghostOnly(e),l=this._drawGhost(t,e);s.save(),o.save(),this._prerender(t),c.each(this._textInfo,((e,u)=>{c.each(e.textChunks,((c,u)=>{if(c.style&&(s.save(),o.save(),a||(s.font=c.style),this._isInteractive(t)&&(o.font=c.style)),c.fill&&(s.save(),a||(s.fillStyle=c.fill.toCSS())),r&&!a&&s.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),"underline"==c.textDecoration||"line-through"==c.textDecoration){let t=1,i=1,r=c.height;const o=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(o)>-1){const t=this._measureText(c.text,s);c.width=t.actualBoundingBoxLeft+t.actualBoundingBoxRight}let l,u=c.offsetX;switch(this.style.textAlign){case"right":case"end":u-=c.width;break;case"center":u-=c.width/2}if(c.style)switch(h.V.getTextStyle(c.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":t=2}r&&(i=r/20),l="line-through"==c.textDecoration?t+e.offsetY+c.offsetY-c.height/2:t+1.5*i+e.offsetY+c.offsetY,a||(s.save(),s.beginPath(),c.fill?s.strokeStyle=c.fill.toCSS():this.style.fill&&this.style.fill instanceof n.Il&&(s.strokeStyle=this.style.fill.toCSS()),s.lineWidth=t*i,s.moveTo(u,l),s.lineTo(u+c.width,l),s.stroke(),s.restore())}i&&this.interactive&&l&&o.fillText(c.text,c.offsetX,e.offsetY+c.offsetY),c.fill&&s.restore(),c.style&&(s.restore(),o.restore())}))})),s.restore(),o.restore()}}_addBounds(t){if(this.visible&&this.isMeasured){const e=this._measure({inactive:this.inactive,layer:this.getLayer()});C(t,{x:e.left,y:e.top}),C(t,{x:e.right,y:e.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction;this._textInfo=[];const n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=d.isNumber(r)&&("wrap"==n||"wrap-no-break"==n);e.save(),i.save(),this._prerender(t,!0,this._ignoreFontWeight());const p="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",g=this.text.toString().replace(/\r/g,"").split(/\n/);let f,_=!0,m=0,y=0,v=0;c.each(g,((t,s)=>{let n;for(n=""==t?[{type:"value",text:""}]:h.V.chunk(t,!1,this.style.ignoreFormatting);n.length>0;){let t={offsetY:v,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const s=this._measureText(p,e),g=s.actualBoundingBoxAscent+s.actualBoundingBoxDescent;let w;t.height=g,t.ascent=s.actualBoundingBoxAscent;let b,x,D,k=this.style.textDecoration,T=!1,M=!0,E=[];c.eachContinue(n,((s,o)=>{if("format"==s.type)if("[/]"==s.text)_||(e.restore(),i.restore(),_=!0),b=void 0,f=void 0,x=void 0,k=this.style.textDecoration,D=void 0,w=s.text;else{_||(e.restore(),i.restore());let n=h.V.getTextStyle(s.text);const r=this._getFontStyle(n);e.save(),i.save(),e.font=r,f=r,w=s.text,n.textDecoration&&(k=n.textDecoration),n.fill&&(b=n.fill),n.width&&(x=d.toNumber(n.width)),n.verticalAlign&&(D=n.verticalAlign),_=!1;const o=this._measureText(p,e),a=o.actualBoundingBoxAscent+o.actualBoundingBoxDescent;a>t.height&&(t.height=a),o.actualBoundingBoxAscent>t.ascent&&(t.ascent=o.actualBoundingBoxAscent)}else if("value"==s.type&&!T){const i=this._measureText(s.text,e);let h=i.actualBoundingBoxLeft+i.actualBoundingBoxRight;if(a){this.truncated=void 0;let i=M||this.style.breakWords||!1;const n=this.style.ellipsis||"",o=this._measureText(n,e),a=o.actualBoundingBoxLeft+o.actualBoundingBoxRight;if(t.width+h>r){const o=r-t.width-a;s.text=this._truncateText(e,s.text,o,i),s.text+=n,T=!0,this.truncated=!0}}else if(u&&t.width+h>r){const i=r-t.width,a=this._truncateText(e,s.text,i,!1,M&&"wrap-no-break"!=this.style.oversizedBehavior);if(""==a)return this.textVisible=!0,!1;E=n.slice(o+1),l.trim(a)!=l.trim(s.text)&&(E.unshift({type:"value",text:s.text.substr(a.length)}),w&&E.unshift({type:"format",text:w})),s.text=l.trim(a),n=[],T=!0}let c=1,d=1;if(f&&x&&x>h){const t=h/x;switch(this.style.textAlign){case"right":case"end":c=t;break;case"center":c=t,d=t;break;default:d=t}h=x}const p=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent;p>t.height&&(t.height=p),i.actualBoundingBoxAscent>t.ascent&&(t.ascent=i.actualBoundingBoxAscent),t.width+=h,t.left+=i.actualBoundingBoxLeft/c,t.right+=i.actualBoundingBoxRight/d,t.textChunks.push({style:f,fill:b,text:s.text,width:h,height:p,left:i.actualBoundingBoxLeft,right:i.actualBoundingBoxRight,ascent:i.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:k,verticalAlign:D}),M=!1}return!0})),this.style.lineHeight instanceof o.gG?(t.height*=this.style.lineHeight.value,t.ascent*=this.style.lineHeight.value):(t.height*=this.style.lineHeight||1.2,t.ascent*=this.style.lineHeight||1.2),m{let i=0;c.each(t.textChunks,(e=>{if(e.offsetX=i+e.left-t.left,e.offsetY+=t.height-t.height*(this.style.baselineRatio||.19),i+=e.width*(s?-1:1),e.verticalAlign)switch(e.verticalAlign){case"super":e.offsetY-=t.height/2-e.height/2;break;case"sub":e.offsetY+=e.height/2}}))}));const w={left:s?-y:-m,top:0,right:s?m:y,bottom:v};if("none"!==n){const t=this._fitRatio(w);if(t<1)if("fit"==n)d.isNumber(this.style.minScale)&&ti&&""!=e);return e}_measureText(t,e){let i=e.measureText(t),s={};if(null==i.actualBoundingBoxAscent){const e=document.createElement("div");e.innerText=t,e.style.visibility="hidden",e.style.position="absolute",e.style.top="-1000000px;",e.style.fontFamily=this.style.fontFamily||"",e.style.fontSize=this.style.fontSize+"",document.body.appendChild(e);const n=e.getBoundingClientRect();document.body.removeChild(e);const r=n.height,o=i.width;s={actualBoundingBoxAscent:r,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:o,fontBoundingBoxAscent:r,fontBoundingBoxDescent:0,width:o}}else s={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const n=i.width;switch(this.style.textAlign){case"right":case"end":s.actualBoundingBoxLeft=n,s.actualBoundingBoxRight=0;break;case"center":s.actualBoundingBoxLeft=n/2,s.actualBoundingBoxRight=n/2;break;default:s.actualBoundingBoxLeft=0,s.actualBoundingBoxRight=n}return s}}class et{constructor(){this.lineHeight=(0,o.aQ)(120),this.baselineRatio=.19,this.oversizedBehavior="none",this.breakWords=!1,this.ellipsis="…",this.ignoreFormatting=!1}}class it extends tt{constructor(){super(...arguments),this.textType="circular",this.inside=!1,this.orientation="auto",this.kerning=0,this._textReversed=!1}_render(t,e=0){"circular"===this.textType?this._renderCircular(t,e):super._render(t,e)}_renderCircular(t,e=0){if(this.textVisible){this._prerender(t);const i=this._isInteractive(t),s=t.layer.context,n=t.layer.dirty,r=this._renderer._ghostLayer.context;s.save(),i&&r.save(),this._textInfo||this._measure(t);let o=this.radius||0,a=this.startAngle||0,h=0,l=this.orientation,u="auto"==l?"auto":"inward"==l;const d=this.inside,g=this.style.textAlign||"left",f=this.kerning||0;let _="left"==g?1:-1;const m=!this._textReversed,y=this._ghostOnly(e),v=this._drawGhost(t,e);if("auto"==u){let t=0,e=0;c.each(this._textInfo,((e,i)=>{const s=a+e.width/(o-e.height)/2*-_;s>t&&(t=s)})),e="left"==g?(t+h/2)*p.DEGREES:"right"==g?(t-h/2)*p.DEGREES:a*p.DEGREES,e=p.normalizeAngle(e),u=e>=270||e<=90}1==u&&m&&(this._textInfo.reverse(),this._textReversed=!0),c.each(this._textInfo,((t,e)=>{const l=t.height;d||(o+=l),(-1==_&&u||1==_&&!u)&&m&&t.textChunks.reverse();let p=a;h=0,"center"==g&&(p+=t.width/(o-l)/2*-_,h=p-a),p+=Math.PI*(u?0:1),s.save(),i&&r.save(),y||s.rotate(p),i&&r.rotate(p);let w=0;c.each(t.textChunks,((t,e)=>{const a=t.text,h=t.width;w=h/2/(o-l)*_,y||s.rotate(w),i&&r.rotate(w),t.style&&(s.save(),r.save(),y||(s.font=t.style),i&&(r.font=t.style)),t.fill&&(s.save(),y||(s.fillStyle=t.fill.toCSS())),y||(s.textBaseline="middle",s.textAlign="center"),i&&(r.textBaseline="middle",r.textAlign="center"),n&&!y&&s.fillText(a,0,(u?1:-1)*(0-o+l/2)),i&&v&&r.fillText(a,0,(u?1:-1)*(0-o+l/2)),t.fill&&s.restore(),t.style&&(s.restore(),r.restore()),w=(h/2+f)/(o-l)*_,y||s.rotate(w),i&&r.rotate(w)})),s.restore(),i&&r.restore(),d&&(o-=l)})),s.restore(),i&&r.restore()}}_measure(t){return"circular"===this.textType?this._measureCircular(t):super._measure(t)}_measureCircular(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction,n=this.style.oversizedBehavior,r=this.style.maxWidth,a=d.isNumber(r)&&"truncate"==n,u=this.style.ellipsis||"";let p;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,e.save(),i.save(),this._prerender(t,!0);const g=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,_=0,m=0;return c.each(g,((t,n)=>{let g,y,v,w=h.V.chunk(t,!1,this.style.ignoreFormatting),b={offsetY:m,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};c.each(w,((t,n)=>{if("format"==t.type){if("[/]"==t.text)f||(e.restore(),i.restore(),f=!0),y=void 0,g=void 0,v=void 0;else{let s=h.V.getTextStyle(t.text);const n=this._getFontStyle(s);e.save(),i.save(),e.font=n,g=n,s.fill&&(y=s.fill),s.width&&(v=d.toNumber(s.width)),f=!1}a&&(p=this._measureText(u,e))}else if("value"==t.type){let i=t.text.match(/./gu)||[];s&&(i=l.splitString(t.text),i.reverse());for(let t=0;to&&(o=v);const h=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;if(h>b.height&&(b.height=h),n.actualBoundingBoxAscent>b.ascent&&(b.ascent=n.actualBoundingBoxAscent),_+=o,a){p||(p=this._measureText(u,e));const t=p.actualBoundingBoxLeft+p.actualBoundingBoxRight;if(_+t>r){1==b.textChunks.length?this.textVisible=!1:(b.width+=t,b.left+=p.actualBoundingBoxLeft,b.right+=p.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:u,width:t,height:h+p.actualBoundingBoxDescent,left:p.actualBoundingBoxLeft,right:p.actualBoundingBoxRight,ascent:p.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0}));break}}b.width+=o,b.left+=n.actualBoundingBoxLeft,b.right+=n.actualBoundingBoxRight,b.textChunks.push({style:g,fill:y,text:s,width:o,height:h+n.actualBoundingBoxDescent,left:n.actualBoundingBoxLeft,right:n.actualBoundingBoxRight,ascent:n.actualBoundingBoxAscent,offsetX:0,offsetY:h,textDecoration:void 0})}}})),this.style.lineHeight instanceof o.gG?b.height*=this.style.lineHeight.value:b.height*=this.style.lineHeight||1.2,this._textInfo.push(b),m+=b.height})),f||(e.restore(),i.restore()),"hide"==n&&_>r&&(this.textVisible=!1),c.each(this._textInfo,(t=>{c.each(t.textChunks,(e=>{e.offsetY+=Math.round((t.height-e.height+(t.ascent-e.ascent))/2)}))})),e.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class st extends S{constructor(t,e){super(t),this.image=e}_dispose(){super._dispose(),this._imageMask&&E(this._imageMask)}getLocalBounds(){if(!this._localBounds){let t=0,e=0;this.width&&(t=this.width),this.height&&(e=this.height),this._localBounds={left:0,top:0,right:t,bottom:e},this._addBounds(this._localBounds)}return this._localBounds}_render(t,e=0){if(super._render(t),this.image){if(void 0===this.tainted&&(this.tainted=M(this.image),t.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;const i=this._ghostOnly(e),s=this._drawGhost(t,e);if(t.layer.dirty&&!i){this.shadowColor&&(t.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(t.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(t.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(t.layer.context.shadowOffsetY=this.shadowOffsetY);const e=this.width||this.image.naturalWidth,i=this.height||this.image.naturalHeight;t.layer.context.drawImage(this.image,0,0,e,i)}if(this.interactive&&this._isInteractive(t)&&s){const t=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(t,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(t){if(void 0===this._imageMask){const e=this.width||t.naturalWidth,i=this.height||t.naturalHeight,s=document.createElement("canvas");s.width=e,s.height=i;const n=s.getContext("2d");n.imageSmoothingEnabled=!1,n.fillStyle=this._getColorId(),n.fillRect(0,0,e,i),M(t)||(n.globalCompositeOperation="destination-in",n.drawImage(t,0,0,e,i)),this._imageMask=s}return this._imageMask}}class nt{constructor(t,e,i,s){this.event=t,this.originalPoint=e,this.point=i,this.bbox=s,this.simulated=!1,this.native=!0,l.supports("touchevents")&&t instanceof Touch?this.id=t.identifier:this.id=null}}class rt extends a.rk{constructor(t){if(super(),this.view=document.createElement("div"),this._layerDom=document.createElement("div"),this.layers=[],this._dirtyLayers=[],this.defaultLayer=this.getLayer(0),this._ghostLayer=new ot,this._deferredGhostLayers=[],this._patternCanvas=document.createElement("canvas"),this._patternContext=this._patternCanvas.getContext("2d"),this._realWidth=0,this._realHeight=0,this._calculatedWidth=0,this._calculatedHeight=0,this.interactionsEnabled=!0,this._listeners={},this._events={},this._colorId=0,this._colorMap={},this._forceInteractive=0,this._omitTainted=!1,this._hovering=new Set,this._dragging=[],this._mousedown=[],this.tapToActivate=!1,this.tapToActivateTimeout=3e3,this._touchActive=!1,this.resolution=null==t?window.devicePixelRatio:t,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new a.ku((()=>{u.each(this._events,((t,e)=>{e.disposer.dispose()})),c.each(this.layers,(t=>{E(t.view),t.exportableView&&E(t.exportableView)})),E(this._ghostLayer.view),E(this._patternCanvas)}))),this._disposers.push(l.onZoom((()=>{null==t&&(this.resolution=window.devicePixelRatio)}))),l.supports("touchevents")){const t=t=>{0!==this._dragging.length&&c.eachContinue(this._dragging,(e=>!e.value.shouldCancelTouch()||(t.preventDefault(),!1))),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(l.addEventListener(window,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchstart",t,{passive:!1})),this._disposers.push(l.addEventListener(this.view,"touchmove",(()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()}),{passive:!0})),this._disposers.push(l.addEventListener(window,"click",(t=>{this._touchActive=!1}),{passive:!0})),this._disposers.push(l.addEventListener(this.view,"click",(t=>{window.setTimeout((()=>{this._touchActive=!0,this._delayTouchDeactivate()}),100)}),{passive:!0}))}l.supports("wheelevents")&&this._disposers.push(l.addEventListener(this.view,"wheel",(t=>{let e=!1;this._hovering.forEach((t=>{if(t.wheelable)return e=!0,!1})),e&&t.preventDefault()}),{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout((()=>{this._touchActive=!1}),this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(t){t?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(t,e,i,s){return this.defaultLayer.context.createLinearGradient(t,e,i,s)}createRadialGradient(t,e,i,s,n,r){return this.defaultLayer.context.createRadialGradient(t,e,i,s,n,r)}createPattern(t,e,i,s,n){return this._patternCanvas.width=s,this._patternCanvas.height=n,this._patternContext.clearRect(0,0,s,n),e.renderDetached(this._patternContext),t.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new N(this)}makeGraphics(){return new J(this)}makeText(t,e){return new tt(this,t,e)}makeTextStyle(){return new et}makeRadialText(t,e){return new it(this,t,e)}makePicture(t){return new st(this,t)}resizeLayer(t){t.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(t,e,i,s){this._realWidth=t,this._realHeight=e,this._calculatedWidth=i,this._calculatedHeight=s,c.each(this.layers,(t=>{t&&(t.dirty=!0,this.resizeLayer(t))})),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(t=!1){const e=document.createElement("canvas"),i=e.getContext("2d",{willReadFrequently:t}),s=new at(e,i);return e.style.position="absolute",e.style.top="0px",e.style.left="0px",s}getLayerByOrder(t){const e=this.layers,i=e.length;for(let s=0;st.order>e.order?1:t.order{t&&t.dirty&&t.visible&&(this._dirtyLayers.push(t),t.clear())})),this._ghostLayer.clear(),t.render({inactive:null,layer:this.defaultLayer});const e=this._deferredGhostLayers;if(e.length&&(e.sort(((t,e)=>t-e)),c.each(e,(e=>{t.render({inactive:null,layer:this.defaultLayer},e)}))),this._ghostLayer.context.restore(),c.each(this.layers,(t=>{if(t){const e=t.context;e.beginPath(),e.moveTo(0,0),e.stroke()}})),c.each(this._dirtyLayers,(t=>{t.context.restore(),t.dirty=!1})),this._hovering.size&&this._lastPointerMoveEvent){const{events:t,target:e,native:i}=this._lastPointerMoveEvent;c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))}}paintId(t){const e=function(t){const e=[0,0,0];for(let i=0;i<24;i++)e[i%3]<<=1,e[i%3]|=1&t,t>>=1;return(0|e[0])+(e[1]<<8)+(e[2]<<16)}(++this._colorId),i=n.Il.fromHex(e).toCSS();return this._colorMap[i]=t,i}_removeObject(t){void 0!==t._colorId&&delete this._colorMap[t._colorId]}_adjustBoundingBox(t){const e=this._ghostLayer.margin;return new DOMRect(-e.left,-e.top,t.width+e.left+e.right,t.height+e.top+e.bottom)}getEvent(t,e=!0){const i=this.view.getBoundingClientRect(),s=t.clientX||0,n=t.clientY||0,r=this._calculatedWidth/this._realWidth,o=this._calculatedHeight/this._realHeight,a={x:s-i.left,y:n-i.top},h={x:(s-(e?i.left:0))*r,y:(n-(e?i.top:0))*o};return new nt(t,a,h,this._adjustBoundingBox(i))}_getHitTarget(t,e,i){if(0===e.width||0===e.height||t.xe.right||t.ye.bottom)return;if(!i||!this._layerDom.contains(i))return;const s=this._ghostLayer.getImageData(t,e);if(0===s.data[0]&&0===s.data[1]&&0===s.data[2])return!1;const r=n.Il.fromRGB(s.data[0],s.data[1],s.data[2]).toCSS();return this._colorMap[r]}getObjectAtPoint(t){const e=this._ghostLayer.getImageArray(t);if(0===e[0]&&0===e[1]&&0===e[2])return;const i=n.Il.fromRGB(e[0],e[1],e[2]).toCSS();return this._colorMap[i]}_withEvents(t,e){const i=this._events[t];if(void 0!==i){i.dispatching=!0;try{e(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,c.keepIf(i.callbacks,(t=>!t.disposed)),0===i.callbacks.length&&(i.disposer.dispose(),delete this._events[t]))}}}_dispatchEventAll(t,e){this.interactionsEnabled&&this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.callback.call(t.context,e)}))}))}_dispatchEvent(t,e,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(t,(t=>{c.each(t.callbacks,(t=>{t.disposed||t.object!==e||(t.callback.call(t.context,i),s=!0)}))})),s}_dispatchMousedown(t,e){const i=t.button;if(0!=i&&2!=i&&1!=i&&void 0!==i)return;const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);if(n){const t=s.id;let e=!1;k(n,(i=>{const n={id:t,value:i};return this._mousedown.push(n),!e&&this._dispatchEvent("pointerdown",i,s)&&(e=!0,this._dragging.some((e=>e.value===i&&e.id===t))||this._dragging.push(n)),!0}))}}_dispatchGlobalMousemove(t,e,i){const s=this.getEvent(t),n=this._getHitTarget(s.originalPoint,s.bbox,e);s.native=i,n?(this._hovering.forEach((t=>{t.contains(n)||(this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s))})),s.native&&k(n,(t=>(this._hovering.has(t)||(this._hovering.add(t),t.cursorOverStyle&&(t._replacedCursorStyle=l.getStyle(document.body,"cursor"),l.setStyle(document.body,"cursor",t.cursorOverStyle)),this._dispatchEvent("pointerover",t,s)),!0)))):(this._hovering.forEach((t=>{t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle),this._dispatchEvent("pointerout",t,s)})),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(t){this._hovering.delete(t),t.cursorOverStyle&&l.setStyle(document.body,"cursor",t._replacedCursorStyle)}_dispatchGlobalMouseup(t,e){const i=this.getEvent(t);i.native=e,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(t){if(0!==this._dragging.length){const e=this.getEvent(t),i=e.id;this._dragging.forEach((t=>{t.id===i&&this._dispatchEvent("pointermove",t.value,e)}))}}_dispatchDragEnd(t,e){const i=t.button;let s;if(0==i||void 0===i)s="click";else if(2==i)s="rightclick";else{if(1!=i)return;s="middleclick"}const n=this.getEvent(t),r=n.id;if(0!==this._mousedown.length){const t=this._getHitTarget(n.originalPoint,n.bbox,e);t&&this._mousedown.forEach((e=>{e.id===r&&e.value.contains(t)&&this._dispatchEvent(s,e.value,n)})),this._mousedown.length=0}0!==this._dragging.length&&(this._dragging.forEach((t=>{t.id===r&&this._dispatchEvent("pointerup",t.value,n)})),this._dragging.length=0)}_dispatchDoubleClick(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("dblclick",t,i)))}_dispatchWheel(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&k(s,(t=>!this._dispatchEvent("wheel",t,i)))}_makeSharedEvent(t,e){if(void 0===this._listeners[t]){const i=e();this._listeners[t]=new a.DM((()=>{delete this._listeners[t],i.dispose()}))}return this._listeners[t].increment()}_onPointerEvent(t,e){let i=!1,s=null;function n(){s=null,i=!1}return new a.FV([new a.ku((()=>{null!==s&&clearTimeout(s),n()})),l.addEventListener(this.view,l.getRendererEvent(t),(t=>{i=!0,null!==s&&clearTimeout(s),s=window.setTimeout(n,0)})),T(window,t,((t,n)=>{null!==s&&(clearTimeout(s),s=null),e(t,n,i),i=!1}))])}_initEvent(t){switch(t){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",(()=>{const t=(t,e,i)=>{this._lastPointerMoveEvent={events:t,target:e,native:i},c.each(t,(t=>{this._dispatchGlobalMousemove(t,e,i)}))};return new a.FV([this._onPointerEvent("pointerdown",t),this._onPointerEvent("pointermove",t)])}));case"globalpointerup":return this._makeSharedEvent("pointerup",(()=>{const t=this._onPointerEvent("pointerup",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}})),e=this._onPointerEvent("pointercancel",((t,e,i)=>{c.each(t,(t=>{this._dispatchGlobalMouseup(t,i)})),this._lastPointerMoveEvent={events:t,target:e,native:i}}));return new a.ku((()=>{t.dispose(),e.dispose()}))}));case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",(()=>{const t=this._onPointerEvent("pointerdown",((t,e)=>{c.each(t,(t=>{this._dispatchMousedown(t,e)}))})),e=this._onPointerEvent("pointermove",(t=>{c.each(t,(t=>{this._dispatchDragMove(t)}))})),i=this._onPointerEvent("pointerup",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))})),s=this._onPointerEvent("pointercancel",((t,e)=>{c.each(t,(t=>{this._dispatchDragEnd(t,e)}))}));return new a.ku((()=>{t.dispose(),e.dispose(),i.dispose(),s.dispose()}))}));case"dblclick":return this._makeSharedEvent("dblclick",(()=>this._onPointerEvent("dblclick",((t,e)=>{c.each(t,(t=>{this._dispatchDoubleClick(t,e)}))}))));case"wheel":return this._makeSharedEvent("wheel",(()=>l.addEventListener(this.view,l.getRendererEvent("wheel"),(t=>{this._dispatchWheel(t,l.getEventTarget(t))}),{passive:!1})))}}_addEvent(t,e,i,s){let n=this._events[e];void 0===n&&(n=this._events[e]={disposer:this._initEvent(e),callbacks:[],dispatching:!1,cleanup:!1});const r={object:t,context:s,callback:i,disposed:!1};return n.callbacks.push(r),new a.ku((()=>{r.disposed=!0,n.dispatching?n.cleanup=!0:(c.removeFirst(n.callbacks,r),0===n.callbacks.length&&(n.disposer.dispose(),delete this._events[e]))}))}getCanvas(t,e){this.render(t),e||(e={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),n=Math.floor(this._calculatedHeight*this.resolution);if(e.minWidth&&e.minWidth>s){let t=e.minWidth/s;t>i&&(i=t*this.resolution)}if(e.minHeight&&e.minHeight>n){let t=e.minHeight/n;t>i&&(i=t*this.resolution)}if(e.maxWidth&&e.maxWidthn){let t=e.maxHeight/n;t{if(t&&t.visible&&(t.tainted||o)){d=!0,t.exportableView=t.view,t.exportableContext=t.context,t.view=document.createElement("canvas"),t.view.style.position="fixed",t.view.style.top="-10000px",this.view.appendChild(t.view),r.push(t.view);let e=0,o=0;t.margin&&(e+=t.margin.left||0+t.margin.right||0,o+=t.margin.top||0+t.margin.bottom||0),t.view.width=s+e,t.view.height=n+o,t.context=t.view.getContext("2d"),t.dirty=!0,t.scale=i}})),d&&(this._omitTainted=!0,this.render(t),this._omitTainted=!1),c.each(this.layers,(t=>{if(t&&t.visible){let e=0,i=0;t.margin&&(e=-(t.margin.left||0)*this.resolution,i=-(t.margin.top||0)*this.resolution),h.drawImage(t.view,e,i),t.exportableView&&(t.view=t.exportableView,t.exportableView=void 0),t.exportableContext&&(t.context=t.exportableContext,t.exportableContext=void 0),l{t.style.position="",t.style.top="",this.view.removeChild(t)})),a}}class ot{constructor(){this.margin={left:0,right:0,top:0,bottom:0},this._resolution=1,this._width=0,this._height=0,this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(t,e,i,s,n){this._resolution=n,t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(t,e){return this.context.getImageData(Math.round((t.x-e.left)/e.width*this._width),Math.round((t.y-e.top)/e.height*this._height),1,1)}getImageArray(t){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const e=this.imageArray,i=Math.round(t.x*this._resolution),s=4*(Math.round(t.y*this._resolution)*this._width+i);return[e[s],e[s+1],e[s+2],e[s+3]]}setMargin(t){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,c.each(t,(t=>{t.margin&&(this.margin.left=Math.max(this.margin.left,t.margin.left),this.margin.right=Math.max(this.margin.right,t.margin.right),this.margin.top=Math.max(this.margin.top,t.margin.top),this.margin.bottom=Math.max(this.margin.bottom,t.margin.bottom))}))}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class at{constructor(t,e){this.tainted=!0,this.order=0,this.visible=!0,this.dirty=!0,this._width=0,this._height=0,this.view=t,this.context=e}resize(t,e,i,s,n){null!=this.width&&(t=this.width,i=this.width),null!=this.height&&(e=this.height,s=this.height),this.margin?(t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(t*n),this._height=Math.floor(e*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}},4680:function(t,e,i){"use strict";var s;i.d(e,{b:function(){return s}}),function(t){t.ADD="lighter",t.COLOR="color",t.COLOR_BURN="color-burn",t.COLOR_DODGE="color-dodge",t.DARKEN="darken",t.DIFFERENCE="difference",t.DST_OVER="destination-over",t.EXCLUSION="exclusion",t.HARD_LIGHT="hard-light",t.HUE="hue",t.LIGHTEN="lighten",t.LUMINOSITY="luminosity",t.MULTIPLY="multiply",t.NORMAL="source-over",t.OVERLAY="overlay",t.SATURATION="saturation",t.SCREEN="screen",t.SOFT_LIGHT="soft-light",t.SRC_ATOP="source-atop",t.XOR="xor"}(s||(s={}))},1437:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});var s=i(6331);class n extends s.JH{_afterNew(){super._afterNewApplyThemes()}getFill(t){return{addColorStop:(t,e)=>{}}}_changed(){super._changed()}getBounds(t){const e=this.get("target");if(e){let i=e.globalBounds();const s=t.toLocal({x:i.left,y:i.top}),n=t.toLocal({x:i.right,y:i.top}),r=t.toLocal({x:i.right,y:i.bottom}),o=t.toLocal({x:i.left,y:i.bottom});return{left:Math.min(s.x,n.x,r.x,o.x),top:Math.min(s.y,n.y,r.y,o.y),right:Math.max(s.x,n.x,r.x,o.x),bottom:Math.max(s.y,n.y,r.y,o.y)}}return t._display.getLocalBounds()}}n.className="Gradient",n.classNames=s.JH.classNames.concat([n.className])},1747:function(t,e,i){"use strict";i.d(e,{o:function(){return h}});var s=i(1437),n=i(1112),r=i(5071),o=i(5040),a=i(751);class h extends s.p{getFill(t){const e=this.get("rotation",0);let i=this.getBounds(t),s=i.left||0,h=i.right||0,l=i.top||0,c=i.bottom||0,u=a.cos(e),d=a.sin(e),p=u*(h-s),g=d*(c-l);0==p&&(p=1),0==g&&(g=1);let f=Math.max(p,g);const _=this._root._renderer.createLinearGradient(s,l,s+f*u,l+f*d),m=this.get("stops");if(m){let t=0;r.each(m,(e=>{let i=e.offset;o.isNumber(i)||(i=t/(m.length-1));let s=e.opacity;o.isNumber(s)||(s=1);let r=e.color;if(r){const t=e.lighten;t&&(r=n.Il.lighten(r,t));const o=e.brighten;o&&(r=n.Il.brighten(r,o)),_.addColorStop(i,"rgba("+r.r+","+r.g+","+r.b+","+s+")")}t++}))}return _}}h.className="LinearGradient",h.classNames=s.p.classNames.concat([h.className])},3035:function(t,e,i){"use strict";i.d(e,{y:function(){return r}});var s=i(3437),n=i(5040);class r extends s.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("width",100),e=this.get("height",100),i=this.get("gap",0),s=this.get("strokeWidth",1);if(i){let n=i+s,r=e/n,o=this.get("angle",0)*Math.PI/180;if(0===o)for(let e=-r;e<2*r;e++){const i=Math.round(e*n-n/2)+.5;this._display.moveTo(-t,i),this._display.lineTo(2*t,i)}else{const i=Math.cos(o),s=Math.sin(o),r=2*Math.sqrt(t*t+e*e),a=n/Math.max(Math.abs(i),Math.abs(s)),h=2*Math.ceil(r/a);for(let t=-h;t0&&(r.beginFill(s,n),r.drawRect(0,0,e,i),r.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,r,t,e,i)}this._clear=!1}}n.className="Pattern",n.classNames=s.JH.classNames.concat([n.className])},4429:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(3437);class n extends s.c{_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const t=this.get("canvas");t&&(this.set("width",t.width),this.set("height",t.height))}_draw(){super._draw();const t=this.get("colorOpacity");void 0!==t&&(this._display.alpha=Math.max(0,t));const e=this._image;if(e){const t=this.get("width",100),i=this.get("height",100),s=this.get("fit","image");let n=0,r=0;"pattern"==s?(n=t,r=i,this.markDirty()):(n=e.width,r=e.height,"image"==s&&(this.set("width",n),this.set("height",r)));let o=0,a=0;this.get("centered",!0)&&(o=t/2-n/2,a=i/2-r/2),this._display.image(e,n,r,o,a)}const i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){const t=this.get("src");if(t){const e=new Image;e.src=t,e.decode().then((()=>{this._image=e,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})})).catch((t=>{}))}}}n.className="PicturePattern",n.classNames=s.c.classNames.concat([n.className])},6490:function(t,e,i){"use strict";i.d(e,{SR:function(){return s},Wn:function(){return u},XG:function(){return p},ne:function(){return h},w6:function(){return l}});var s,n=i(7582),r=i(6245),o=i(1112),a=i(256);function h(t){return(0,n.mG)(this,void 0,void 0,(function*(){if(void 0!==t){const e=[];a.each(t,((t,i)=>{e.push(i.waitForStop())})),yield Promise.all(e)}}))}function l(t,e,i){return e+t*(i-e)}function c(t,e,i){return t>=1?i:e}function u(t,e,i){return new r.gG(l(t,e.percent,i.percent))}function d(t,e,i){return o.Il.interpolate(t,e,i)}function p(t,e){return"number"==typeof t&&"number"==typeof e?l:t instanceof r.gG&&e instanceof r.gG?u:t instanceof o.Il&&e instanceof o.Il?d:c}!function(t){t[t.Stopped=0]="Stopped",t[t.Playing=1]="Playing",t[t.Paused=2]="Paused"}(s||(s={}))},5071:function(t,e,i){"use strict";i.r(e),i.d(e,{add:function(){return v},any:function(){return r},copy:function(){return k},each:function(){return a},eachContinue:function(){return l},eachReverse:function(){return h},find:function(){return S},findIndex:function(){return O},findIndexReverse:function(){return P},findMap:function(){return C},findReverse:function(){return N},first:function(){return d},getFirstSortedIndex:function(){return R},getSortedIndex:function(){return A},has:function(){return D},indexOf:function(){return n},insert:function(){return p},insertIndex:function(){return M},keepIf:function(){return U},last:function(){return u},map:function(){return o},move:function(){return y},pushAll:function(){return f},pushOne:function(){return w},remove:function(){return _},removeFirst:function(){return m},removeIndex:function(){return E},replace:function(){return b},setIndex:function(){return g},shiftLeft:function(){return c},shuffle:function(){return L},slice:function(){return T},toArray:function(){return x}});var s=i(5040);function n(t,e){const i=t.length;for(let s=0;s0;)--i,e(t[i],i)}function l(t,e){const i=t.length;for(let s=0;s0;)if(--i,e(t[i],i))return i;return-1}function S(t,e){const i=O(t,e);if(-1!==i)return t[i]}function N(t,e){const i=P(t,e);if(-1!==i)return t[i]}function C(t,e){const i=t.length;for(let s=0;s>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,i=r+1):s=r}return{found:n,index:n?i-1:i}}function R(t,e){let i=0,s=t.length,n=!1;for(;i>1,o=e(t[r]);o<0?i=r+1:0===o?(n=!0,s=r):s=r}return{found:n,index:i}}function U(t,e){let i=t.length;for(;i>0;)--i,e(t[i])||t.splice(i,1)}},1112:function(t,e,i){"use strict";i.d(e,{$_:function(){return a},Il:function(){return h}});var s=i(6490),n=i(7652),r=i(5040);function o(t){return"#"===t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0].repeat(2)+t[1].repeat(2)+t[2].repeat(2)),parseInt(t,16)}function a(t){return h.fromAny(t)}class h{constructor(t){this._hex=0|t}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return 255&this._hex}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+n.padString(this.r.toString(16),2)+n.padString(this.g.toString(16),2)+n.padString(this.b.toString(16),2)}toHSL(t=1){return n.rgbToHsl({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,e,i){const s=n.hslToRgb({h:t,s:e,l:i});return this.fromRGB(s.r,s.g,s.b)}toString(){return this.toCSSHex()}static fromHex(t){return new h(t)}static fromRGB(t,e,i){return new h((0|i)+(e<<8)+(t<<16))}static fromString(t){return new h(o(t))}static fromCSS(t){return new h(function(t){let e=(t=t.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return 0;let i="";for(let t=1;t<=3;t++){let s=parseInt(e[t]).toString(16);1==s.length&&(s="0"+s),i+=s}return o(i)}(t))}static fromAny(t){if(r.isString(t)){if("#"==t[0])return h.fromString(t);if("rgb"==t.substr(0,3))return h.fromCSS(t)}else{if(r.isNumber(t))return h.fromHex(t);if(t instanceof h)return h.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,e,i){const s=n.alternativeColor({r:t.r,g:t.g,b:t.b},e?{r:e.r,g:e.g,b:e.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(s.r,s.g,s.b)}static interpolate(t,e,i,n="rgb"){if("hsl"==n){const n=e.toHSL(),r=i.toHSL();return h.fromHSL((0,s.w6)(t,n.h,r.h),(0,s.w6)(t,n.s,r.s),(0,s.w6)(t,n.l,r.l))}return h.fromRGB((0,s.w6)(t,e.r,i.r),(0,s.w6)(t,e.g,i.g),(0,s.w6)(t,e.b,i.b))}static lighten(t,e){const i=n.lighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static brighten(t,e){const i=n.brighten({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}static saturate(t,e){const i=n.saturate({r:t.r,g:t.g,b:t.b},e);return h.fromRGB(i.r,i.g,i.b)}}},2754:function(t,e,i){"use strict";i.d(e,{U:function(){return r}});var s=i(6331),n=i(1112);class r extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const t=this.getPrivate("currentPass"),e=this.get("colors",[this.get("baseColor",n.Il.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",e.length);const i=this.getPrivate("numColors"),s=this.get("passOptions"),r=this.get("reuse");for(let o=0;o1;)r-=1;let a=i.s+(s.saturation||0)*t;a>1&&(a=1),a<0&&(a=0);let h=i.l+(s.lightness||0)*t;for(;h>1;)h-=1;e.push(n.Il.fromHSL(r,a,h))}}getIndex(t){const e=this.get("colors",[]),i=this.get("saturation");return t>=e.length?(this.generateColors(),this.getIndex(t)):null!=i?n.Il.saturate(e[t],i):e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}r.className="ColorSet",r.classNames=s.JH.classNames.concat([r.className])},9582:function(t,e,i){"use strict";i.d(e,{Q:function(){return r},k:function(){return n}});var s=i(7144);class n extends s.aV{incrementRef(){}decrementRef(){}_onPush(t){this.processor&&this.processor.processRow(t),super._onPush(t)}_onInsertIndex(t,e){this.processor&&this.processor.processRow(e),super._onInsertIndex(t,e)}_onSetIndex(t,e,i){this.processor&&this.processor.processRow(i),super._onSetIndex(t,e,i)}}class r{constructor(t){this._value=t}incrementRef(){}decrementRef(){}}},6460:function(t,e,i){"use strict";i.d(e,{C:function(){return h}});var s=i(6331),n=i(7255),r=i(462),o=i(5040),a=i(7652);class h extends s.JH{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i=!1){let s;void 0!==e&&""!==e||(e=this.get("dateFormat","yyyy-MM-dd"));let n=t;if(o.isObject(e))try{const t=this.get("intlLocales");return t?new Intl.DateTimeFormat(t,e).format(n):new Intl.DateTimeFormat(void 0,e).format(n)}catch(t){return"Invalid"}let r=this.parseFormat(e);const a=this._root.timezone;let h=n;return!a||this._root.utc||i||(n=a.convertLocal(n)),o.isNumber(n.getTime())?(s=this.applyFormat(n,r,i,h),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s):"Invalid date"}applyFormat(t,e,i=!1,s){let n,h,l,c,u,d,p,g,f=e.template,_=t.getTime();this._root.utc&&!i?(n=t.getUTCFullYear(),h=t.getUTCMonth(),l=t.getUTCDay(),c=t.getUTCDate(),u=t.getUTCHours(),d=t.getUTCMinutes(),p=t.getUTCSeconds(),g=t.getUTCMilliseconds()):(n=t.getFullYear(),h=t.getMonth(),l=t.getDay(),c=t.getDate(),u=t.getHours(),d=t.getMinutes(),p=t.getSeconds(),g=t.getMilliseconds());for(let i=0,m=e.parts.length;i=12?this._t("PM"):this._t("AM");break;case"aa":m=u>=12?this._t("P.M."):this._t("A.M.");break;case"aaa":m=u>=12?this._t("P"):this._t("A");break;case"h":m=a.get12Hours(u).toString();break;case"hh":m=a.padString(a.get12Hours(u),2,"0");break;case"H":m=u.toString();break;case"HH":m=a.padString(u,2,"0");break;case"K":m=a.get12Hours(u,0).toString();break;case"KK":m=a.padString(a.get12Hours(u,0),2,"0");break;case"k":m=(u+1).toString();break;case"kk":m=a.padString(u+1,2,"0");break;case"m":m=d.toString();break;case"mm":m=a.padString(d,2,"0");break;case"s":m=p.toString();break;case"ss":m=a.padString(p,2,"0");break;case"S":case"SS":case"SSS":m=Math.round(g/1e3*Math.pow(10,e.parts[i].length)).toString();break;case"x":m=_.toString();break;case"n":case"nn":case"nnn":m=a.padString(g,e.parts[i].length,"0");break;case"z":m=a.getTimeZone(s||t,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":m=a.getTimeZone(s||t,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":m=a.getTimeZone(s||t,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":m=a.getTimeZone(s||t,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let f=this._root.utc?"UTC":this._root.timezone;f instanceof r.r&&(f=f.name);const y=f?a.getTimezoneOffset(f,s||t):t.getTimezoneOffset();let v=Math.abs(y)/60,w=Math.floor(v),b=60*v-60*w;this._root.utc&&(w=0,b=0),"Z"==e.parts[i]?(m="GMT",m+=y>0?"-":"+",m+=a.padString(w,2)+":"+a.padString(b,2)):(m=y>0?"-":"+",m+=a.padString(w,2)+a.padString(b,2));break;case"i":m=t.toISOString();break;case"I":m=t.toUTCString()}f=f.replace(o.PLACEHOLDER,m)}return f}parseFormat(t){let e={template:"",parts:[]},i=n.V.chunk(t,!0);for(let t=0;t-1&&(l.year=parseInt(p[h.year])),h.year3>-1){let t=parseInt(p[h.year3]);t+=1e3,l.year=t}if(h.year2>-1){let t=parseInt(p[h.year2]);t+=t>50?1e3:2e3,l.year=t}if(h.year1>-1){let t=parseInt(p[h.year1]);t=10*Math.floor((new Date).getFullYear()/10)+t,l.year=t}if(h.monthLong>-1&&(l.month=this.resolveMonth(p[h.monthLong])),h.monthShort>-1&&(l.month=this.resolveShortMonth(p[h.monthShort])),h.month>-1&&(l.month=parseInt(p[h.month])-1),h.week>-1&&-1===h.day&&(l.month=0,l.day=a.getDayFromWeek(parseInt(p[h.week]),l.year,1,i)),h.day>-1&&(l.day=parseInt(p[h.day])),h.yearDay>-1&&(l.month=0,l.day=parseInt(p[h.yearDay])),h.hourBase0>-1&&(l.hour=parseInt(p[h.hourBase0])),h.hourBase1>-1&&(l.hour=parseInt(p[h.hourBase1])-1),h.hour12Base0>-1){let t=parseInt(p[h.hour12Base0]);11==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.hour12Base1>-1){let t=parseInt(p[h.hour12Base1]);12==t&&(t=0),h.am>-1&&!this.isAm(p[h.am])&&(t+=12),l.hour=t}if(h.minute>-1&&(l.minute=parseInt(p[h.minute])),h.second>-1&&(l.second=parseInt(p[h.second])),h.millisecond>-1){let t=parseInt(p[h.millisecond]);2==h.millisecondDigits?t*=10:1==h.millisecondDigits&&(t*=100),l.millisecond=t}if(h.timestamp>-1){l.timestamp=parseInt(p[h.timestamp]);const t=new Date(l.timestamp);l.year=t.getUTCFullYear(),l.month=t.getUTCMonth(),l.day=t.getUTCDate(),l.hour=t.getUTCHours(),l.minute=t.getUTCMinutes(),l.second=t.getUTCSeconds(),l.millisecond=t.getUTCMilliseconds()}h.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.zone])),h.iso>-1&&(l.year=o.toNumber(p[h.iso+0]),l.month=o.toNumber(p[h.iso+1])-1,l.day=o.toNumber(p[h.iso+2]),l.hour=o.toNumber(p[h.iso+3]),l.minute=o.toNumber(p[h.iso+4]),l.second=o.toNumber(p[h.iso+5]),l.millisecond=o.toNumber(p[h.iso+6]),"Z"==p[h.iso+7]||"z"==p[h.iso+7]?l.utc=!0:""!=p[h.iso+7]&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),p[h.iso+7]))),s=l.utc?new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else s=new Date(t);return s}resolveTimezoneOffset(t,e){if(e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let i=e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),s=i[1],n=i[2],r=i[3],o=60*parseInt(n)+parseInt(r);return"+"==s&&(o*=-1),o-(t||new Date).getTimezoneOffset()}return 0}resolveMonth(t){let e=this._months().indexOf(t);return e>-1||!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._months()).indexOf(t),e>-1)?e:0}resolveShortMonth(t){let e=this._shortMonths().indexOf(t);return e>-1?e:(e=this._months().indexOf(t),e>-1||this._root.language&&!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._shortMonths()).indexOf(t),e>-1)?e:0)}isAm(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1}getStringList(t){let e=[];for(let i=0;i{t.dispose()}))}}class a extends n{constructor(t){super(),this._disposers=t}_dispose(){s.each(this._disposers,(t=>{t.dispose()}))}get disposers(){return this._disposers}}class h extends n{_dispose(){null!=this._disposer&&(this._disposer.dispose(),this._disposer=void 0)}get(){return this._value}set(t,e){null!=this._disposer&&this._disposer.dispose(),this._disposer=e,this._value=t}reset(){this.set(void 0,void 0)}}class l extends r{constructor(){super(...arguments),this._counter=0}increment(){return++this._counter,new r((()=>{--this._counter,0===this._counter&&this.dispose()}))}}},798:function(t,e,i){"use strict";i.d(e,{$:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{constructor(){super(...arguments),this._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}}_setDefaults(){const t="_duration_millisecond",e="_duration_second",i="_duration_minute",s="_duration_hour",n="_duration_day",r="_duration_week",o="_duration_month",a="_minute",h="_hour",l="_day",c="_week",u="_week",d="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(t),second:this._t(t+"_second"),minute:this._t(t+a),hour:this._t(t+h),day:this._t(t+l),week:this._t(t+c),month:this._t(t+u),year:this._t(t+d)},second:{second:this._t(e),minute:this._t(e+a),hour:this._t(e+h),day:this._t(e+l),week:this._t(e+c),month:this._t(e+u),year:this._t(e+d)},minute:{minute:this._t(i),hour:this._t(i+h),day:this._t(i+l),week:this._t(i+c),month:this._t(i+u),year:this._t(i+d)},hour:{hour:this._t(s),day:this._t(s+l),week:this._t(s+c),month:this._t(s+u),year:this._t(s+d)},day:{day:this._t(n),week:this._t(n+c),month:this._t(n+u),year:this._t(n+d)},week:{week:this._t(r),month:this._t(r+u),year:this._t(r+d)},month:{month:this._t(o),year:this._t(o+d)},year:{year:this._t("_duration_year")}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s=i||this.get("baseUnit");void 0!==e&&""!==e||(e=null!=this.get("durationFormat")?this.get("durationFormat"):this.getFormat(a.toNumber(t),void 0,s)),e=o.cleanFormat(e);let n,r=this.parseFormat(e,s),h=Number(t);n=h>this.get("negativeBase")?r.positive:h{if(e.parsed)return;let i=e.source,s=[];s=e.source.match(/^\[([^\]]*)\]/),s&&s.length&&""!==s[0]&&(i=e.source.substr(s[0].length),e.color=s[1]);let r=n.V.chunk(i,!0);for(let t=0;t{"millisecond"==t&&1e3==i?(h.second++,h.millisecond=0):"second"==t&&60==i?(h.minute++,h.second=0):"minute"==t&&60==i?(h.hour++,h.minute=0):"hour"==t&&24==i?(h.day++,h.hour=0):"day"==t&&7==i&&-1!==e.parts.indexOf("w")?(h.week++,h.day=0):"day"==t&&30==i?(h.month++,h.day=0):"month"==t&&12==i&&(h.year++,h.month=0)}));for(let t=0,i=e.parts.length;t{if(t==e||i){if(s/n<=1)return i||(i=t),!1;i=t}return!0})),i}getMilliseconds(t,e){return e||(e=this.get("baseUnit")),t*this._getUnitValue(e)}_getUnitValue(t){return this._getUnitValues()[t]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}},9395:function(t,e,i){"use strict";i.r(e),i.d(e,{bounce:function(){return k},circle:function(){return c},cubic:function(){return o},elastic:function(){return P},exp:function(){return h},inOut:function(){return p},linear:function(){return n},out:function(){return d},pow:function(){return a},quad:function(){return r},sine:function(){return l},yoyo:function(){return u}});var s=i(751);function n(t){return t}function r(t){return t*t}function o(t){return t*t*t}function a(t,e){return Math.pow(t,e)}function h(t){return Math.pow(2,10*t-10)}function l(t){return 1-Math.cos(t*s.HALFPI)}function c(t){return 1-Math.sqrt(1-t*t)}function u(t){return function(e){return t(e<.5?2*e:2*(1-e))}}function d(t){return function(e){return 1-t(1-e)}}function p(t){return function(e){return e<=.5?t(2*e)/2:1-t(2*(1-e))/2}}let g=4/11,f=6/11,_=8/11,m=3/4,y=9/11,v=10/11,w=15/16,b=21/22,x=63/64,D=1/g/g;function k(t){return 1-function(t){return t{this._userSettings[t]=!0}))}get(t,e){const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._settings[t]=e}set(t,e){this._userSettings[t]=!0,this.setRaw(t,e)}remove(t){delete this._userSettings[t],delete this._settings[t]}setAll(t){o.entries(t).forEach((([t,e])=>{this.set(t,e)}))}_eachSetting(t){o.each(this._settings,t)}apply(){const t={stateAnimationEasing:!0,stateAnimationDuration:!0},e=this._entity.states.lookup("default");this._eachSetting(((i,s)=>{t[i]||(t[i]=!0,this!==e&&(i in e._settings||(e._settings[i]=this._entity.get(i))),this._entity.set(i,s))}))}applyAnimate(t){null==t&&(t=this._settings.stateAnimationDuration),null==t&&(t=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let e=this._settings.stateAnimationEasing;null==e&&(e=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",a.cubic)));const i=this._entity.states.lookup("default"),s={stateAnimationEasing:!0,stateAnimationDuration:!0},n={};return this._eachSetting(((r,o)=>{if(!s[r]){s[r]=!0,this!=i&&(r in i._settings||(i._settings[r]=this._entity.get(r)));const a=this._entity.animate({key:r,to:o,duration:t,easing:e});a&&(n[r]=a)}})),n}}class l{constructor(t){this._states={},this._entity=t}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new h(this._entity,e);return this._states[t]=i,i}}remove(t){delete this._states[t]}apply(t){const e=this._states[t];e&&e.apply(),this._entity._applyState(t)}applyAnimate(t,e){let i;const s=this._states[t];return s&&(i=s.applyAnimate(e)),this._entity._applyStateAnimated(t,e),i}}var c=i(3145),u=i(5071),d=i(3540);class p{constructor(t){this._callbacks={},this._disabled={},this._entity=t}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),this._entity._markDirtyKey(t),new s.ku((()=>{u.removeFirst(i,e)&&this._entity._markDirtyKey(t)}))}remove(t){const e=this._callbacks[t];void 0!==e&&(delete this._callbacks[t],0!==e.length&&this._entity._markDirtyKey(t))}enable(t){this._disabled[t]&&(delete this._disabled[t],this._entity._markDirtyKey(t))}disable(t){this._disabled[t]||(this._disabled[t]=!0,this._entity._markDirtyKey(t))}fold(t,e){if(!this._disabled[t]){const i=this._callbacks[t];if(void 0!==i)for(let s=0,n=i.length;s{if(this._stopped)t();else{const e=()=>{i.dispose(),t()},i=this.events.on("stopped",e)}}))}_checkEnded(){return!(this._loops>1&&(--this._loops,1))}_run(t){null!==this._oldTime&&(this._time+=t-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=t}_reset(t){this._oldTime=t,this._time=0}_value(t){return this._interpolate(this._easing(t),this._from,this._to)}}let f=0;class _{constructor(t){this.uid=++f,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._prevSettings={},this._prevPrivateSettings={},this._animatingSettings={},this._animatingPrivateSettings={},this._disposed=!1,this._userProperties={},this.enableDispose=!0,this._settings=t}_checkDirty(){o.keys(this._settings).forEach((t=>{this._userProperties[t]=!0,this._markDirtyKey(t)}))}resetUserSettings(){this._userProperties={}}_runAnimation(t){let e=r.SR.Stopped;if(!this.isDisposed()){let i=!1,s=!1;o.each(this._animatingSettings,((e,n)=>{if(n.stopped)this._stopAnimation(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.set(e,n._value(1)):(i=!0,n._reset(t),this._set(e,n._value(1))):(i=!0,this._set(e,n._value(s)))}else s=!0})),o.each(this._animatingPrivateSettings,((e,n)=>{if(n.stopped)this._stopAnimationPrivate(e);else if(n.playing){n._run(t);const s=n.percentage;s>=1?n._checkEnded()?this.setPrivate(e,n._value(1)):(i=!0,n._reset(t),this._setPrivate(e,n._value(1))):(i=!0,this._setPrivate(e,n._value(s)))}else s=!0})),i?e=r.SR.Playing:s&&(e=r.SR.Paused)}return e}_markDirtyKey(t){this.markDirty()}_markDirtyPrivateKey(t){this.markDirty()}on(t,e){let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}off(t,e){let i=this._settingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._settingEvents[t]}onPrivate(t,e){let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new s.ku((()=>{u.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}offPrivate(t,e){let i=this._privateSettingEvents[t];void 0!==i&&void 0!==e?u.removeFirst(i,e):delete this._privateSettingEvents[t]}getRaw(t,e){const i=this._settings[t];return void 0!==i?i:e}has(t){return t in this._settings}get(t,e){return this.getRaw(t,e)}_sendKeyEvent(t,e){const i=this._settingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_sendPrivateKeyEvent(t,e){const i=this._privateSettingEvents[t];void 0!==i&&u.each(i,(i=>{i(e,this,t)}))}_setRaw(t,e,i){this._prevSettings[t]=e,this._sendKeyEvent(t,i)}setRaw(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&this._setRaw(t,i,e)}_set(t,e){const i=this._settings[t];this._settings[t]=e,i!==e&&(this._setRaw(t,i,e),this._markDirtyKey(t))}_stopAnimation(t){const e=this._animatingSettings[t];e&&(delete this._animatingSettings[t],e.stop())}set(t,e){return this._set(t,e),this._stopAnimation(t),e}remove(t){t in this._settings&&(this._prevSettings[t]=this._settings[t],delete this._settings[t],this._sendKeyEvent(t,void 0),this._markDirtyKey(t)),this._stopAnimation(t)}removeAll(){u.each(o.keys(this._settings),(t=>{this.remove(t)}))}getPrivate(t,e){const i=this._privateSettings[t];return void 0!==i?i:e}_setPrivateRaw(t,e,i){this._prevPrivateSettings[t]=e,this._sendPrivateKeyEvent(t,i)}setPrivateRaw(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&this._setPrivateRaw(t,i,e)}_setPrivate(t,e){const i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&(this._setPrivateRaw(t,i,e),this._markDirtyPrivateKey(t))}_stopAnimationPrivate(t){const e=this._animatingPrivateSettings[t];e&&(e.stop(),delete this._animatingPrivateSettings[t])}setPrivate(t,e){return this._setPrivate(t,e),this._stopAnimationPrivate(t),e}removePrivate(t){t in this._privateSettings&&(this._prevPrivateSettings[t]=this._privateSettings[t],delete this._privateSettings[t],this._markDirtyPrivateKey(t)),this._stopAnimationPrivate(t)}setAll(t){o.each(t,((t,e)=>{this.set(t,e)}))}animate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.get(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.set(e,i);else{if(void 0!==r&&r!==i){this.set(e,r);const t=this._animatingSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.set(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}animatePrivate(t){const e=t.key,i=t.to,s=t.duration||0,n=t.loops||1,r=void 0===t.from?this.getPrivate(e):t.from,o=void 0===t.easing?a.linear:t.easing;if(0===s)this.setPrivate(e,i);else{if(void 0!==r&&r!==i){this.setPrivate(e,r);const t=this._animatingPrivateSettings[e]=new g(this,r,i,s,o,n,this._animationTime());return this._startAnimation(),t}this.setPrivate(e,i)}const h=new g(this,r,i,s,o,n,null);return h.stop(),h}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}}class m extends _{constructor(t,e,i,s=[]){if(super(e),this.states=new l(this),this.adapters=new p(this),this.events=this._createEvents(),this._userPrivateProperties={},this._dirty={},this._dirtyPrivate={},this._templates=[],this._defaultThemes=[],this._templateDisposers=[],this._disposers=[],this._runSetup=!0,this._disposerProperties={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t,this._internalTemplates=s,e.id&&this._registerId(e.id)}static new(t,e,i){const s=new this(t,e,!0);return s._template=i,s._afterNew(),s}static _new(t,e,i=[]){const s=new this(t,e,!0,i);return s._afterNew(),s}_afterNew(){this._checkDirty();let t=!1;const e=this._template;e&&(t=!0,e._setObjectTemplate(this)),u.each(this._internalTemplates,(e=>{t=!0,e._setObjectTemplate(this)})),t&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const t=this._template;t&&t._setObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._setObjectTemplate(this)})),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new n.p}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(t,e){const i=this.get(t);if(i)return i;{const i=e();return this.set(t,i),i}}_setDefault(t,e){this.has(t)||super.set(t,e)}_setRawDefault(t,e){this.has(t)||super.setRaw(t,e)}_clearDirty(){o.keys(this._dirty).forEach((t=>{this._dirty[t]=!1})),o.keys(this._dirtyPrivate).forEach((t=>{this._dirtyPrivate[t]=!1}))}isDirty(t){return!!this._dirty[t]}isPrivateDirty(t){return!!this._dirtyPrivate[t]}_markDirtyKey(t){this._dirty[t]=!0,super._markDirtyKey(t)}_markDirtyPrivateKey(t){this._dirtyPrivate[t]=!0,super._markDirtyKey(t)}isType(t){return-1!==this.classNames.indexOf(t)}_pushPropertyDisposer(t,e){let i=this._disposerProperties[t];return void 0===i&&(i=this._disposerProperties[t]=[]),i.push(e),e}_disposeProperty(t){const e=this._disposerProperties[t];void 0!==e&&(u.each(e,(t=>{t.dispose()})),delete this._disposerProperties[t])}set template(t){const e=this._template;e!==t&&(this._template=t,e&&e._removeObjectTemplate(this),t&&t._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(t){}_applyStateAnimated(t,e){}get(t,e){const i=this.adapters.fold(t,this._settings[t]);return void 0!==i?i:e}isUserSetting(t){return this._userProperties[t]||!1}set(t,e){return this._userProperties[t]=!0,super.set(t,e)}setRaw(t,e){this._userProperties[t]=!0,super.setRaw(t,e)}_setSoft(t,e){return this._userProperties[t]?e:super.set(t,e)}remove(t){delete this._userProperties[t],this._removeTemplateProperty(t)}setPrivate(t,e){return this._userPrivateProperties[t]=!0,super.setPrivate(t,e)}setPrivateRaw(t,e){this._userPrivateProperties[t]=!0,super.setPrivateRaw(t,e)}removePrivate(t){delete this._userPrivateProperties[t],this._removeTemplatePrivateProperty(t)}_setTemplateProperty(t,e,i){this._userProperties[e]||t===this._findTemplateByKey(e)&&super.set(e,i)}_setTemplatePrivateProperty(t,e,i){this._userPrivateProperties[e]||t===this._findTemplateByPrivateKey(e)&&super.setPrivate(e,i)}_removeTemplateProperty(t){if(!this._userProperties[t]){const e=this._findTemplateByKey(t);e?super.set(t,e._settings[t]):super.remove(t)}}_removeTemplatePrivateProperty(t){if(!this._userPrivateProperties[t]){const e=this._findTemplateByPrivateKey(t);e?super.setPrivate(t,e._privateSettings[t]):super.removePrivate(t)}}_walkParents(t){t(this._root._rootContainer),t(this)}_applyStateByKey(t){const e=this.states.create(t,{}),i={};this._eachTemplate((s=>{const n=s.states.lookup(t);n&&n._apply(e,i)})),o.each(e._settings,(t=>{i[t]||e._userSettings[t]||e.remove(t)}))}_applyTemplate(t,e){this._templateDisposers.push(t._apply(this,e)),o.each(t._settings,((t,i)=>{e.settings[t]||this._userProperties[t]||(e.settings[t]=!0,super.set(t,i))})),o.each(t._privateSettings,((t,i)=>{e.privateSettings[t]||this._userPrivateProperties[t]||(e.privateSettings[t]=!0,super.setPrivate(t,i))})),this._runSetup&&t.setup&&(this._runSetup=!1,t.setup(this))}_findStaticTemplate(t){if(this._template&&t(this._template))return this._template}_eachTemplate(t){this._findStaticTemplate((e=>(t(e),!1))),u.eachReverse(this._internalTemplates,t),u.each(this._templates,t)}_applyTemplates(t=!0){t&&this._disposeTemplates();const e={settings:{},privateSettings:{},states:{}};this._eachTemplate((t=>{this._applyTemplate(t,e)})),t&&(o.each(this._settings,(t=>{this._userProperties[t]||e.settings[t]||super.remove(t)})),o.each(this._privateSettings,(t=>{this._userPrivateProperties[t]||e.privateSettings[t]||super.removePrivate(t)})))}_findTemplate(t){const e=this._findStaticTemplate(t);if(void 0===e){const e=u.findReverse(this._internalTemplates,t);return void 0===e?u.find(this._templates,t):e}return e}_findTemplateByKey(t){return this._findTemplate((e=>t in e._settings))}_findTemplateByPrivateKey(t){return this._findTemplate((e=>t in e._privateSettings))}_disposeTemplates(){u.each(this._templateDisposers,(t=>{t.dispose()})),this._templateDisposers.length=0}_removeTemplates(){u.each(this._templates,(t=>{t._removeObjectTemplate(this)})),this._templates.length=0}_applyThemes(t=!1){if(this.get("ignoreThemes"))return!1;let e=!1;const i=[];let s=[];const n=new Set,r=this.get("themeTagsSelf");return r&&u.each(r,(t=>{n.add(t)})),this._walkParents((t=>{t===this._root._rootContainer&&(e=!0),t._defaultThemes.length>0&&i.push(t._defaultThemes);const r=t.get("themes");r&&s.push(r);const o=t.get("themeTags");o&&u.each(o,(t=>{n.add(t)}))})),s=i.concat(s),this._removeTemplates(),(e||t)&&u.eachReverse(this.classNames,(t=>{const e=[];u.each(s,(i=>{u.each(i,(i=>{const s=i._lookupRules(t);s&&u.eachReverse(s,(t=>{if(t.tags.every((t=>n.has(t)))){const i=u.getFirstSortedIndex(e,(e=>{const i=d.qu(t.tags.length,e.tags.length);return 0===i?d.wq(t.tags,e.tags,d.qu):i}));e.splice(i.index,0,t)}}))}))})),u.each(e,(t=>{this._templates.push(t.template),t.template._setObjectTemplate(this)}))})),this._applyTemplates(),(e||t)&&(this._runSetup=!1),e||t}_changed(){}_beforeChanged(){if(this.isDirty("id")){const t=this.get("id");t&&this._registerId(t);const e=this._prevSettings.id;e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}}_registerId(t){if(this._root.entitiesById[t]&&this._root.entitiesById[t]!==this)throw new Error('An entity with id "'+t+'" already exists.');this._root.entitiesById[t]=this,c.i_.entitiesById[t]=this}_afterChanged(){}addDisposer(t){return this._disposers.push(t),t}_dispose(){super._dispose();const t=this._template;t&&t._removeObjectTemplate(this),u.each(this._internalTemplates,(t=>{t._removeObjectTemplate(this)})),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach((t=>{t.dispose()})),o.each(this._disposerProperties,((t,e)=>{u.each(e,(t=>{t.dispose()}))}));const e=this.get("id");e&&(delete this._root.entitiesById[e],delete c.i_.entitiesById[e])}setTimeout(t,e){const i=setTimeout((()=>{this.removeDispose(n),t()}),e),n=new s.ku((()=>{clearTimeout(i)}));return this._disposers.push(n),n}removeDispose(t){if(!this.isDisposed()){let e=u.indexOf(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()}hasTag(t){return-1!==u.indexOf(this.get("themeTags",[]),t)}addTag(t){if(!this.hasTag(t)){const e=this.get("themeTags",[]);e.push(t),this.set("themeTags",e)}}removeTag(t){if(this.hasTag(t)){const e=this.get("themeTags",[]);u.remove(e,t),this.set("themeTags",e)}}_t(t,e,...i){return this._root.language.translate(t,e,...i)}get root(){return this._root}}m.className="Entity",m.classNames=["Entity"]},9770:function(t,e,i){"use strict";i.d(e,{p:function(){return o}});var s=i(7449),n=i(5071),r=i(5040);class o{constructor(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const t=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{n.each(t,(t=>{t.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}}hasListeners(){return 0!==this._listeners.length}hasListenersByType(t){return n.any(this._listeners,(e=>(null===e.type||e.type===t)&&!e.killed))}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(t){delete this._disabled[t]}disableType(t,e=1/0){this._disabled[t]=e}_removeListener(t){if(0===this._iterating){const e=this._listeners.indexOf(t);if(-1===e)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(t)}_removeExistingListener(t,e,i,s){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((n=>{n.once!==t||n.type!==e||void 0!==i&&n.callback!==i||n.context!==s||n.disposer.dispose()}))}isEnabled(t){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(t)&&void 0===this._disabled[t]}removeType(t){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((e=>{e.type===t&&e.disposer.dispose()}))}has(t,e,i){return-1!==n.findIndex(this._listeners,(s=>!0!==s.once&&s.type===t&&(void 0===e||s.callback===e)&&s.context===i))}_shouldDispatch(t){if(this._disposed)throw new Error("EventDispatcher is disposed");const e=this._disabled[t];return r.isNumber(e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled}_eachListener(t){++this._iterating;try{n.each(this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(n.each(this._killed,(t=>{this._removeListener(t)})),this._killed.length=0)}}dispatch(t,e){this._shouldDispatch(t)&&this._eachListener((i=>{i.killed||null!==i.type&&i.type!==t||(i._debounceDelay?(i._debounceTimeout&&window.clearTimeout(i._debounceTimeout),i._debounceTimeout=window.setTimeout((()=>{i._debounceTimeout=void 0,i.killed||i.dispatch(t,e)}),i._debounceDelay)):i.dispatch(t,e))}))}_on(t,e,i,n,r,o,a){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);const h={type:e,callback:i,context:n,shouldClone:r,dispatch:o,killed:!1,once:t,disposer:new s.ku((()=>{h.killed=!0,h._debounceTimeout&&window.clearTimeout(h._debounceTimeout),this._removeListener(h)})),_debounceDelay:a};return this._listeners.push(h),h}onAll(t,e,i=!0){return this._on(!1,null,t,e,i,((i,s)=>t.call(e,s))).disposer}on(t,e,i,s=!0){return this._on(!1,t,e,i,s,((t,s)=>e.call(i,s))).disposer}onDebounced(t,e,i,s,n=!0){return this._on(!1,t,e,s,n,((t,i)=>e.call(s,i)),i).disposer}once(t,e,i,s=!0){const n=this._on(!0,t,e,i,s,((t,s)=>{n.disposer.dispose(),e.call(i,s)}));return n.disposer}off(t,e,i){this._removeExistingListener(!1,t,e,i)}copyFrom(t){if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const e=[];return n.each(t._listeners,(t=>{!t.killed&&t.shouldClone&&(null===t.type?e.push(this.onAll(t.callback,t.context)):t.once?e.push(this.once(t.type,t.callback,t.context)):e.push(this.on(t.type,t.callback,t.context)))})),new s.FV(e)}}},9821:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var s=i(6331);class n extends s.JH{}n.className="InterfaceColors",n.classNames=s.JH.classNames.concat([n.className])},7144:function(t,e,i){"use strict";i.d(e,{aV:function(){return o},dn:function(){return a},o:function(){return h}});var s=i(9770),n=i(5071);function r(t,e){if(!(t>=0&&t=0&&t{this.push(t)}))}copyFrom(t){this.pushAll(t._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(t){const e=this._values;this._values=[],this._onClear(e),n.each(t,(t=>{this._values.push(t),this._onPush(t)}))}clear(){this.setAll([])}*[Symbol.iterator](){const t=this._values.length;for(let e=0;e{t.dispose()})),super._onClear(t)}_dispose(){this.autoDispose&&n.each(this._values,(t=>{t.dispose()}))}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class h extends a{constructor(t,e){super(),this.template=t,this.make=e}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}}},751:function(t,e,i){"use strict";i.r(e),i.d(e,{DEGREES:function(){return a},HALFPI:function(){return r},PI:function(){return n},RADIANS:function(){return o},boundsOverlap:function(){return M},ceil:function(){return l},circlesOverlap:function(){return O},closest:function(){return T},cos:function(){return f},fitAngleToRange:function(){return w},fitToRange:function(){return d},getAngle:function(){return x},getArcBounds:function(){return m},getArcPoint:function(){return y},getCubicControlPointA:function(){return c},getCubicControlPointB:function(){return u},getPointOnLine:function(){return k},getPointOnQuadraticCurve:function(){return D},inBounds:function(){return b},mergeBounds:function(){return v},normalizeAngle:function(){return _},round:function(){return h},sin:function(){return p},spiralPoints:function(){return E},tan:function(){return g}});var s=i(5040);const n=Math.PI,r=n/2,o=n/180,a=180/n;function h(t,e,i){if(!(0,s.isNumber)(e)||e<=0){let e=Math.round(t);return i&&e-t==.5&&e--,e}{let i=Math.pow(10,e);return Math.round(t*i)/i}}function l(t,e){if(!(0,s.isNumber)(e)||e<=0)return Math.ceil(t);{let i=Math.pow(10,e);return Math.ceil(t*i)/i}}function c(t,e,i,s,n){return{x:(-t.x+e.x/s+i.x)*s,y:(-t.y+e.y/n+i.y)*n}}function u(t,e,i,s,n){return{x:(t.x+e.x/s-i.x)*s,y:(t.y+e.y/n-i.y)*n}}function d(t,e,i){return Math.min(Math.max(t,e),i)}function p(t){return Math.sin(o*t)}function g(t){return Math.tan(o*t)}function f(t){return Math.cos(o*t)}function _(t){return(t%=360)<0&&(t+=360),t}function m(t,e,i,s,n){let r=Number.MAX_VALUE,o=Number.MAX_VALUE,a=-Number.MAX_VALUE,h=-Number.MAX_VALUE,l=[];l.push(y(n,i)),l.push(y(n,s));let c=Math.min(90*Math.floor(i/90),90*Math.floor(s/90)),u=Math.max(90*Math.ceil(i/90),90*Math.ceil(s/90));for(let t=c;t<=u;t+=90)t>=i&&t<=s&&l.push(y(n,t));for(let t=0;ta&&(a=e.x),e.y>h&&(h=e.y)}return{left:t+r,top:e+o,right:t+a,bottom:e+h}}function y(t,e){return{x:t*f(e),y:t*p(e)}}function v(t){const e=t.length;if(e>0){let i=t[0],s=i.left,n=i.top,r=i.right,o=i.bottom;if(e>1)for(let a=1;ai){let t=e;e=i,i=t}t=_(t);let s=(e-_(e))/360;return ti&&(t-360>e?t-=360:t=te+(i-e)/2-180?e:i),t}function b(t,e){return t.x>=e.left&&t.y>=e.top&&t.x<=e.right&&t.y<=e.bottom}function x(t,e){e||(e={x:2*t.x,y:2*t.y});let i=e.x-t.x,s=e.y-t.y,n=Math.atan2(s,i)*a;return n<0&&(n+=360),_(n)}function D(t,e,i,s){return{x:(1-s)*(1-s)*t.x+2*(1-s)*s*i.x+s*s*e.x,y:(1-s)*(1-s)*t.y+2*(1-s)*s*i.y+s*s*e.y}}function k(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function T(t,e){return t.reduce((function(t,i){return Math.abs(i-e)e.left,s=t.tope.top;return i&&s}function E(t,e,i,s,n,r,h,l,c){let u=n+.01;l=_(l),c=_(c);let d=l*o;cu&&(o=2*u),o*=Math.max(.01,Math.min(1,u/200));let g=d*a,f={x:t+u*Math.cos(d),y:e+u*s/i*Math.sin(d)};if(p.push(f),u=n+.01+(g-l)/360*h,d+=2*Math.asin(o/2/u),d*a>c+360*Math.ceil((i-n)/h))break}return p.shift(),p}function O(t,e){return Math.hypot(t.x-e.x,t.y-e.y)<=t.radius+e.radius}},8219:function(t,e,i){"use strict";i.d(e,{u:function(){return a}});var s=i(6331),n=i(7652),r=i(7449);let o;class a extends s.JH{_afterNew(){super._afterNewApplyThemes(),this._setRawDefault("deactivateRoot",!0),function(t,e,i){const s=e.interfaceColors,a=s.get("secondaryButton").toCSS(),h=s.get("text").toCSS(),l=s.get("alternativeBackground").toCSS(.45);if(!o){const i=new r.FV([new n.StyleRule(t,".am5-modal",{width:"100%",height:"100%",position:"absolute","z-index":"100000",top:"0",left:"0"},e.nonce),new n.StyleRule(t,".am5-modal-curtain",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute",background:s.get("background").toCSS(.5),"z-index":"100"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute","text-align":"center","white-space":"nowrap",background:s.get("background").toCSS(.5),"z-index":"101"},e.nonce),new n.StyleRule(t,".am5-modal-wrapper:before",{content:"''",display:"inline-block",height:"100%","vertical-align":"middle","margin-right":"-0.25em"},e.nonce),new n.StyleRule(t,".am5-modal-content",{display:"inline-block",padding:"1.2em","vertical-align":"middle","text-align":"start","white-space":"normal",background:s.get("background").toCSS(),"border-radius":"4px","-webkit-box-shadow":"0px 0px 36px 0px "+l,"box-shadow":"0px 0px 36px 0px "+l,color:h},e.nonce),new n.StyleRule(t,".am5-modal-content h1",{"font-size":"1em",margin:"0 0 0.5em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table",{display:"table",margin:"1em 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-row",{display:"table-row"},e.nonce),new n.StyleRule(t,".am5-modal-table-heading",{display:"table-heading",padding:"3px 10px 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell",{display:"table-cell",padding:"3px 0 3px 0"},e.nonce),new n.StyleRule(t,".am5-modal-table-cell > *",{"vertical-align":"middle"},e.nonce),new n.StyleRule(t,".am5-modal-content input[type=text], .am5-modal-content input[type=number], .am5-modal-content select",{border:"1px solid "+a,"border-radius":"4px",padding:"3px 5px",margin:"2px"},e.nonce),new n.StyleRule(t,".am5-modal-input-narrow",{width:"50px"},e.nonce),new n.StyleRule(t,".am5-modal-button",{"font-weight":"400",color:s.get("secondaryButtonText").toCSS(),"line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer",padding:"0.2em 0.8em","font-size":"1em","border-radius":"0.25em",margin:"0 0.25em 0 0",border:"1px solid "+s.get("secondaryButtonStroke").toCSS(),background:s.get("secondaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button:hover",{background:s.get("secondaryButtonHover").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary",{color:s.get("primaryButtonText").toCSS(),border:"1px solid "+s.get("primaryButtonStroke").toCSS(),background:s.get("primaryButton").toCSS()},e.nonce),new n.StyleRule(t,".am5-modal-button.am5-modal-primary:hover",{background:s.get("primaryButtonHover").toCSS()},e.nonce)]);o=new r.DM((()=>{o=void 0,i.dispose()}))}o.increment()}(n.getShadowRoot(this._root.dom),this._root);const t=document.createElement("div");t.className="am5-modal",t.style.display="none",this.root._inner.appendChild(t),this.setPrivate("container",t);const e=document.createElement("div");e.className="am5-modal-curtain",t.appendChild(e),this.setPrivate("curtain",e),this._disposers.push(n.addEventListener(e,"click",(()=>{this.cancel()})));const i=document.createElement("div");i.className="am5-modal-wrapper",t.appendChild(i),this.setPrivate("wrapper",i);const s=document.createElement("div");s.className="am5-modal-content",i.appendChild(s),this.setPrivate("content",s);const a=this.get("content");a&&(s.innerHTML=a),n.supports("keyboardevents")&&this._disposers.push(n.addEventListener(document,"keydown",(t=>{this.isOpen()&&"Escape"==n.getEventKey(t)&&this.cancel()})))}_beforeChanged(){super._beforeChanged(),this.isDirty("content")&&(this.getPrivate("content").innerHTML=this.get("content",""))}isOpen(){return"none"!=this.getPrivate("container").style.display}open(){this.getPrivate("container").style.display="block",this.get("deactivateRoot")&&this.setTimeout((()=>{this._root._renderer.interactionsEnabled=!1}),10),this.events.dispatch("opened",{type:"opened",target:this})}close(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("closed",{type:"closed",target:this})}cancel(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("cancelled",{type:"cancelled",target:this})}_dispose(){super._dispose();const t=this.getPrivate("container");t.parentElement&&t.parentElement.removeChild(t)}}a.className="Modal",a.classNames=s.JH.classNames.concat([a.className])},780:function(t,e,i){"use strict";i.d(e,{e:function(){return h}});var s=i(6331),n=i(7255),r=i(256),o=i(7652),a=i(5040);class h extends s.JH{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const t="_big_number_suffix_",e="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(t+"3")},{number:1e6,suffix:this._t(t+"6")},{number:1e9,suffix:this._t(t+"9")},{number:1e12,suffix:this._t(t+"12")},{number:1e15,suffix:this._t(t+"15")},{number:1e18,suffix:this._t(t+"18")},{number:1e21,suffix:this._t(t+"21")},{number:1e24,suffix:this._t(t+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(e+"24")},{number:1e-21,suffix:this._t(e+"21")},{number:1e-18,suffix:this._t(e+"18")},{number:1e-15,suffix:this._t(e+"15")},{number:1e-12,suffix:this._t(e+"12")},{number:1e-9,suffix:this._t(e+"9")},{number:1e-6,suffix:this._t(e+"6")},{number:.001,suffix:this._t(e+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s;(null==e||a.isString(e)&&"number"===e.toLowerCase())&&(e=this.get("numberFormat",""));let n=Number(t);if(a.isObject(e))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),e).format(n):new Intl.NumberFormat(void 0,e).format(n)}catch(t){return"Invalid"}else{e=o.cleanFormat(e);let t,h=this.parseFormat(e,this._root.language);t=n>this.get("negativeBase")?h.positive:n{if(e.parsed)return;let i=e.source;"number"===i.toLowerCase()&&(i=this.get("numberFormat","#,###.#####"));let s=n.V.chunk(i,!0);for(let t=0;t=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(i[0]),n="e"+i[1],e.modSpacing&&(n=" "+n)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){const i=o.decimalPlaces(t);if(i>0){const s=Math.pow(10,e.decimals.passive);t=Math.round(parseFloat((t*s).toFixed(i)))/s}}let h="",l=a.numberToString(t).split("."),c=l[0];if(c.length0){let t=[],i=c.split("").reverse().join("");for(let s=0,n=c.length;s<=n;s+=e.thousands.interval){let n=i.substr(s,e.thousands.interval).split("").reverse().join("");""!==n&&t.unshift(n)}c=t.join(e.thousands.separator)}h+=c,1===l.length&&l.push("");let u=l[1];return u.length{e(i,t[i])}))}function l(t,e){for(let i in t)if(u(t,i)&&!e(i,t[i]))break}function c(t,e,i){s.each(o(t,i),(i=>{e(i,t[i])}))}function u(t,e){return{}.hasOwnProperty.call(t,e)}function d(t,e){return h(t,((t,i)=>{null!=i&&null==e[t]&&(e[t]=i)})),e}},3540:function(t,e,i){"use strict";function s(t,e){return t===e?0:t{a.isObject(e)&&"function"==typeof e.dispose&&(e.enableDispose=!0,e.dispose())}))}class l{constructor(t,e,i){this._name=t,this._template=e,this._settings=i}_dispose(){h(this._settings)}get(t,e){const i=this._settings[t];return void 0!==i?i:e}set(t,e){this._settings[t]=e,this._template._stateChanged(this._name)}remove(t){delete this._settings[t],this._template._stateChanged(this._name)}setAll(t){o.keys(t).forEach((e=>{this._settings[e]=t[e]})),this._template._stateChanged(this._name)}_apply(t,e){o.each(this._settings,((i,s)=>{e[i]||t._userSettings[i]||(e[i]=!0,t.setRaw(i,s))}))}}class c{constructor(t){this._states={},this._template=t}_dispose(){o.each(this._states,((t,e)=>{e._dispose()}))}lookup(t){return this._states[t]}create(t,e){const i=this._states[t];if(i)return i.setAll(e),i;{const i=new l(t,this._template,e);return this._states[t]=i,this._template._stateChanged(t),i}}remove(t){delete this._states[t],this._template._stateChanged(t)}_apply(t,e){o.each(this._states,((i,s)=>{let n=e.states[i];null==n&&(n=e.states[i]={});const r=t.states.create(i,{});s._apply(r,n)}))}}class u{constructor(){this._callbacks={}}add(t,e){let i=this._callbacks[t];return void 0===i&&(i=this._callbacks[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._callbacks[t]}))}remove(t){void 0!==this._callbacks[t]&&delete this._callbacks[t]}_apply(t){const e=[];return o.each(this._callbacks,((i,s)=>{r.each(s,(s=>{e.push(t.adapters.add(i,s))}))})),new n.FV(e)}}class d{constructor(t,e){if(this._disposed=!1,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._entities=[],this.states=new c(this),this.adapters=new u,this.events=new s.p,!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=t}static new(t){return new d(t,!0)}_dispose(){h(this._settings),h(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(t,e){this._checkDisposed();const i=this._settings[t];return void 0!==i?i:e}setRaw(t,e){this._checkDisposed(),this._settings[t]=e}set(t,e){this._checkDisposed(),this._settings[t]!==e&&(this.setRaw(t,e),this._entities.forEach((i=>{i._setTemplateProperty(this,t,e)})))}remove(t){this._checkDisposed(),t in this._settings&&(delete this._settings[t],this._entities.forEach((e=>{e._removeTemplateProperty(t)})))}removeAll(){this._checkDisposed(),o.each(this._settings,((t,e)=>{this.remove(t)}))}getPrivate(t,e){this._checkDisposed();const i=this._privateSettings[t];return void 0!==i?i:e}setPrivateRaw(t,e){return this._checkDisposed(),this._privateSettings[t]=e,e}setPrivate(t,e){return this._checkDisposed(),this._privateSettings[t]!==e&&(this.setPrivateRaw(t,e),this._entities.forEach((i=>{i._setTemplatePrivateProperty(this,t,e)}))),e}removePrivate(t){this._checkDisposed(),t in this._privateSettings&&(delete this._privateSettings[t],this._entities.forEach((e=>{e._removeTemplatePrivateProperty(t)})))}setAll(t){this._checkDisposed(),o.each(t,((t,e)=>{this.set(t,e)}))}on(t,e){this._checkDisposed();let i=this._settingEvents[t];return void 0===i&&(i=this._settingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._settingEvents[t]}))}onPrivate(t,e){this._checkDisposed();let i=this._privateSettingEvents[t];return void 0===i&&(i=this._privateSettingEvents[t]=[]),i.push(e),new n.ku((()=>{r.removeFirst(i,e),0===i.length&&delete this._privateSettingEvents[t]}))}_apply(t,e){this._checkDisposed();const i=[];return o.each(this._settingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.on(e,s))}))})),o.each(this._privateSettingEvents,((e,s)=>{r.each(s,(s=>{i.push(t.onPrivate(e,s))}))})),this.states._apply(t,e),i.push(this.adapters._apply(t)),i.push(t.events.copyFrom(this.events)),new n.FV(i)}_setObjectTemplate(t){this._checkDisposed(),this._entities.push(t)}_removeObjectTemplate(t){r.remove(this._entities,t)}_stateChanged(t){this._checkDisposed(),this._entities.forEach((e=>{e._applyStateByKey(t)}))}}},7255:function(t,e,i){"use strict";i.d(e,{V:function(){return r}});var s=i(1112),n=i(5040);class r{static escape(t){return t.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(t){return t.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(t,e=!1,i=!1){let s=[];t=this.escape(t);let r=e?t.split("'"):[t];for(let t=0;t{setTimeout(e,t)}))}let o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629742400,year:31536e6};function a(t){switch(t){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function h(t,e){return null==e&&(e=1),o[t]*e}function l(t){return t?o[t.timeUnit]*t.count:0}function c(t,e,i,s,n){const r=t.timeUnit,a=t.count;if("hour"==r||"minute"==r||"second"==r||"millisecond"==r)return o[t.timeUnit]*t.count;{const t=m(new Date(e.getTime()),r,a,i,s,void 0,n).getTime();let o=t+a*h(r)*1.05;return o=m(new Date(o),r,1,i,s,void 0,n).getTime(),o-t}}function u(){return new Date}function d(){return u().getTime()}function p(t){return new Date(t.getTime())}function g(t,e,i,s,n){if(e-t>h(i,1.2))return!0;let r=new Date(t),o=new Date(e);n&&(r=n.convertLocal(r),o=n.convertLocal(o));let l=0,c=0;s||"millisecond"==i||(l=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-l),c=o.getTimezoneOffset(),o.setUTCMinutes(o.getUTCMinutes()-c));let u=!1;switch(i){case"year":r.getUTCFullYear()!=o.getUTCFullYear()&&(u=!0);break;case"month":(r.getUTCFullYear()!=o.getUTCFullYear()||r.getUTCMonth()!=o.getUTCMonth())&&(u=!0);break;case"day":(r.getUTCMonth()!=o.getUTCMonth()||r.getUTCDate()!=o.getUTCDate())&&(u=!0);break;case"hour":r.getUTCHours()!=o.getUTCHours()&&(u=!0);break;case"minute":r.getUTCMinutes()!=o.getUTCMinutes()&&(u=!0);break;case"second":r.getUTCSeconds()!=o.getUTCSeconds()&&(u=!0);break;case"millisecond":r.getTime()!=o.getTime()&&(u=!0)}if(u)return u;let d=a(i);return!!d&&g(t,e,d,s,n)}function f(t,e,i,s,n){let r=0;switch(s||"millisecond"==e||(r=t.getTimezoneOffset(),n&&(r-=n.offsetUTC(t)),t.setUTCMinutes(t.getUTCMinutes()-r)),e){case"day":let e=t.getUTCDate();t.setUTCDate(e+i);break;case"second":let s=t.getUTCSeconds();t.setUTCSeconds(s+i);break;case"millisecond":let n=t.getUTCMilliseconds();t.setUTCMilliseconds(n+i);break;case"hour":let r=t.getUTCHours();t.setUTCHours(r+i);break;case"minute":let o=t.getUTCMinutes();t.setUTCMinutes(o+i);break;case"year":let a=t.getUTCFullYear();t.setUTCFullYear(a+i);break;case"month":const h=t.getUTCDate(),l=new Date(t.getUTCFullYear(),t.getUTCMonth(),0).getUTCDate();let c=t.getUTCMonth();h>l?t.setUTCMonth(c+i,l):t.setUTCMonth(c+i);break;case"week":let u=t.getUTCDate();t.setUTCDate(u+7*i)}if(!s&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+r),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(n&&(e+=n.offsetUTC(t)),e!=r){let i=e-r;t.setUTCMinutes(t.getUTCMinutes()+i),t.getTimezoneOffset()!=e&&t.setUTCMinutes(t.getUTCMinutes()-i)}}return t}function _(t,e,i,s,n){let r;return null!=n&&(r=new Date(n)),m(new Date(t),e,i,s.locale.firstDayOfWeek,s.utc,r,s.timezone).getTime()}function m(t,e,i,n,r,o,a){if(!a||r){let a=0;switch(r||"millisecond"==e||(a=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-a)),e){case"day":let e=t.getUTCDate();if(i>1){if(o){o=m(o,"day",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),n=h("day",s*i);t.setTime(o.getTime()+n-a*h("minute"))}}else t.setUTCDate(e);t.setUTCHours(0,0,0,0);break;case"second":let r=t.getUTCSeconds();i>1&&(r=Math.floor(r/i)*i),t.setUTCSeconds(r,0);break;case"millisecond":if(1==i)return t;let l=t.getUTCMilliseconds();l=Math.floor(l/i)*i,t.setUTCMilliseconds(l);break;case"hour":let c=t.getUTCHours();i>1&&(c=Math.floor(c/i)*i),t.setUTCHours(c,0,0,0);break;case"minute":let u=t.getUTCMinutes();i>1&&(u=Math.floor(u/i)*i),t.setUTCMinutes(u,0,0);break;case"month":let d=t.getUTCMonth();i>1&&(2!=i&&3!=i&&4!=i&&6!=i||(d=Math.floor(d/i)*i)),t.setUTCMonth(d,1),t.setUTCHours(0,0,0,0);break;case"year":let p=t.getUTCFullYear();i>1&&(p=Math.floor(p/i)*i),t.setUTCFullYear(p,0,1),t.setUTCHours(0,0,0,0);break;case"week":if(i>1&&o){o=m(o,"week",1);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("week")/i),n=h("week",s*i);t.setTime(o.getTime()+n-a*h("minute"))}let g=t.getUTCDate(),f=t.getUTCDay();s.isNumber(n)||(n=1),g=f>=n?g-f+n:g-(7+f)+n,t.setUTCDate(g),t.setUTCHours(0,0,0,0)}if(!r&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+a),"day"==e||"week"==e||"month"==e||"year"==e)){let e=t.getTimezoneOffset();if(e!=a){let i=e-a;t.setUTCMinutes(t.getUTCMinutes()+i)}}return t}{if(isNaN(t.getTime()))return t;let l=t.getTime(),c=a.offsetUTC(t),u=t.getTimezoneOffset(),d=a.parseDate(t),p=d.year,g=d.month,f=d.day,_=d.hour,y=d.minute,v=d.second,w=d.millisecond,b=d.weekday,x=c-u;switch(e){case"day":if(i>1&&o){o=m(o,"day",1,n,r,void 0,a);let e=t.getTime()-o.getTime(),s=Math.floor(e/h("day")/i),l=h("day",s*i);t.setTime(o.getTime()+l),d=a.parseDate(t),p=d.year,g=d.month,f=d.day}_=0,y=x,v=0,w=0;break;case"second":y+=x,i>1&&(v=Math.floor(v/i)*i),w=0;break;case"millisecond":y+=x,i>1&&(w=Math.floor(w/i)*i);break;case"hour":i>1&&(_=Math.floor(_/i)*i),y=x,v=0,w=0;break;case"minute":i>1&&(y=Math.floor(y/i)*i),y+=x,v=0,w=0;break;case"month":i>1&&(g=Math.floor(g/i)*i),f=1,_=0,y=x,v=0,w=0;break;case"year":i>1&&(p=Math.floor(p/i)*i),g=0,f=1,_=0,y=x,v=0,w=0;break;case"week":s.isNumber(n)||(n=1),f=b>=n?f-b+n:f-(7+b)+n,_=0,y=x,v=0,w=0}const D=(t=new Date(p,g,f,_,y,v,w)).getTime();let k=36e5;"hour"==e&&(k=36e5*i),D+k<=l&&("hour"!=e&&"minute"!=e&&"second"!=e&&"millisecond"!=e||(t=new Date(D+k)));let T=t.getTimezoneOffset(),M=a.offsetUTC(t)-T;return M!=x&&t.setTime(t.getTime()+6e4*(M-x)),t}}function y(t,e,i,s){let n=l(s[t]),r=s.length-1;if(t>=r)return Object.assign({},s[r]);let o=Math.ceil(e/n);return e0?Object.assign({},s[t-1]):o<=i?Object.assign({},s[t]):t+1{switch(t.type){case"year":i=+t.value;break;case"month":s=+t.value-1;break;case"day":n=+t.value;break;case"hour":r=+t.value;break;case"minute":o=+t.value;break;case"second":a=+t.value;break;case"fractionalSecond":h=+t.value;break;case"weekday":switch(t.value){case"Sun":l=0;break;case"Mon":l=1;break;case"Tue":l=2;break;case"Wed":l=3;break;case"Thu":l=4;break;case"Fri":l=5;break;case"Sat":l=6}}})),24===r&&(r=0),{year:i,month:s,day:n,hour:r,minute:o,second:a,millisecond:h,weekday:l}}function n(t,e){const{year:i,month:n,day:r,hour:o,minute:a,second:h,millisecond:l}=s(t,e);return Date.UTC(i,n,r,o,a,h,l)}i.d(e,{r:function(){return r}});class r{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=t,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(t){return new this(t,!0)}convertLocal(t){const e=this.offsetUTC(t),i=t.getTimezoneOffset(),s=new Date(t);s.setUTCMinutes(s.getUTCMinutes()-(e-i));const n=s.getTimezoneOffset();return i!=n&&s.setUTCMinutes(s.getUTCMinutes()+n-i),s}offsetUTC(t){return(n(this._utc,t)-n(this._dtf,t))/6e4}parseDate(t){return s(this._dtf,t)}}},5040:function(t,e,i){"use strict";function s(t){return Number(t)!==t}function n(t){return{}.toString.call(t)}function r(t,e="Assertion failed"){if(!t)throw new Error(e)}function o(t){if(null!=t&&!d(t)){let e=Number(t);if(s(e)&&u(t)&&""!=t&&t.match(/[0-9]+/)){const i=t.replace(/[^0-9.\-]+/g,"");return t===i?e:o(i)}return e}return t}function a(t){if(c(t))return new Date(t);if(d(t))return new Date(t);{let e=Number(t);return d(e)?new Date(e):new Date(t)}}function h(t){if(s(t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t==-1/0)return"-0";let e=t<0;t=Math.abs(t);let i,n=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t),r=n[1],o=n[2]||"";if(void 0===n[3])i=""===o?r:r+"."+o;else{let e=+n[3];if(t<1)i="0."+l("0",e-1)+r+o;else{let t=e-o.length;i=0===t?r+o:t<0?r+o.slice(0,t)+"."+o.slice(t):r+o+l("0",t)}}return e?"-"+i:i}function l(t,e){return new Array(e+1).join(t)}function c(t){return"[object Date]"===n(t)}function u(t){return"string"==typeof t}function d(t){return"number"==typeof t&&Number(t)==t}function p(t){return"object"==typeof t&&null!==t}function g(t){return Array.isArray(t)}i.r(e),i.d(e,{PLACEHOLDER:function(){return f},PLACEHOLDER2:function(){return _},assert:function(){return r},getType:function(){return n},isArray:function(){return g},isDate:function(){return c},isNaN:function(){return s},isNumber:function(){return d},isObject:function(){return p},isString:function(){return u},numberToString:function(){return h},repeat:function(){return l},toDate:function(){return a},toNumber:function(){return o}});const f="__§§§__",_="__§§§§__"},7652:function(t,e,i){"use strict";i.r(e),i.d(e,{StyleRule:function(){return E},StyleSheet:function(){return O},addClass:function(){return P},addEventListener:function(){return l},addSpacing:function(){return Y},alternativeColor:function(){return dt},blur:function(){return p},brighten:function(){return ht},capitalizeFirst:function(){return et},cleanFormat:function(){return z},contains:function(){return w},decimalPlaces:function(){return A},escapeForRgex:function(){return W},focus:function(){return g},get12Hours:function(){return Q},getBrightnessStep:function(){return lt},getDayFromWeek:function(){return q},getEventKey:function(){return D},getEventTarget:function(){return v},getFormat:function(){return H},getLightnessStep:function(){return at},getMonthWeek:function(){return K},getPointerId:function(){return d},getRendererEvent:function(){return f},getSafeResolution:function(){return C},getShadowRoot:function(){return k},getStyle:function(){return y},getTimeZone:function(){return J},getTimezoneOffset:function(){return tt},getWeek:function(){return $},getWeekYear:function(){return Z},getYearDay:function(){return X},hslToHsv:function(){return rt},hslToRgb:function(){return it},hsvToHsl:function(){return nt},iOS:function(){return N},isLight:function(){return ct},isLocalEvent:function(){return b},isTouchEvent:function(){return _},lighten:function(){return ot},mergeTags:function(){return pt},onZoom:function(){return c},padString:function(){return R},plainText:function(){return V},ready:function(){return a},relativeToValue:function(){return L},removeClass:function(){return S},removeElement:function(){return h},rgbToHsl:function(){return st},sameBounds:function(){return gt},saturate:function(){return ut},setInteractive:function(){return x},setStyle:function(){return m},splitString:function(){return j},stripTags:function(){return G},supports:function(){return u},trim:function(){return F},trimLeft:function(){return U},trimRight:function(){return B},truncateTextWithEllipsis:function(){return I}});var s=i(5040),n=i(5071),r=i(256),o=i(7449);function a(t){if("loading"!==document.readyState)t();else{const e=()=>{"loading"!==document.readyState&&(document.removeEventListener("readystatechange",e),t())};document.addEventListener("readystatechange",e)}}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function l(t,e,i,s){return t.addEventListener(e,i,s||!1),new o.ku((()=>{t.removeEventListener(e,i,s||!1)}))}function c(t){return l(window,"resize",(e=>{t()}))}function u(t){switch(t){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function d(t){return t.pointerId||0}function p(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let t=document.createElement("button");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}}function g(t){t&&t.focus()}function f(t){if(u("pointerevents"))return t;if(u("touchevents"))switch(t){case"pointerover":case"pointerdown":return"touchstart";case"pointerout":case"pointerleave":case"pointerup":return"touchend";case"pointermove":return"touchmove";case"click":return"click";case"dblclick":return"dblclick"}else if(u("mouseevents"))switch(t){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return t}function _(t){if("undefined"!=typeof Touch&&t instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&t instanceof PointerEvent&&null!=t.pointerType)switch(t.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(t instanceof MouseEvent)}else if(null!=t.type&&t.type.match(/^mouse/))return!1;return!0}function m(t,e,i){t.style[e]=i}function y(t,e){return t.style[e]}function v(t){if(t.composedPath){const e=t.composedPath();return 0===e.length?null:e[0]}return t.target}function w(t,e){let i=e;for(;;){if(t===i)return!0;if(null===i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function b(t,e){return t.target&&w(e.root.dom,t.target)}function x(t,e){t.style.pointerEvents=e?"auto":"none"}function D(t){if(void 0!==t.key)return t.key;switch(t.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+t.keyCode}function k(t){let e=t;for(;;){if(null===e.parentNode)return null!=e.host?e:null;e=e.parentNode}}let T;function M(t,e){const i=t.cssRules.length;return t.insertRule(e+"{}",i),t.cssRules[i]}class E extends o.KK{constructor(t,e,i,s=""){super(),this._root=function(t,e=""){if(null===t){if(null==T){const t=document.createElement("style");t.type="text/css",""!=e&&t.setAttribute("nonce",e),document.head.appendChild(t),T=t.sheet}return T}{const i=document.createElement("style");return i.type="text/css",""!=e&&i.setAttribute("nonce",e),t.appendChild(i),i.sheet}}(t,s);try{this._rule=M(this._root,e)}catch(t){this._rule=M(this._root,":not(*)")}r.each(i,((t,e)=>{this.setStyle(t,e)}))}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){const t=n.indexOf(this._root.cssRules,this._rule);if(-1===t)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,e){const i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")}setStyle(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")}}class O extends o.KK{constructor(t,e,i=""){super(),this._element=function(t,e,i=""){const s=document.createElement("style");return s.type="text/css",""!=i&&s.setAttribute("nonce",i),s.textContent=e,null===t?document.head.appendChild(s):t.appendChild(s),s}(t,e,i)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}}function P(t,e){if(t)if(t.classList){const i=e.split(" ");n.each(i,(e=>{t.classList.add(e)}))}else{let i=t.getAttribute("class");i?t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" ")+" "+e):t.setAttribute("class",e)}}function S(t,e){if(t)if(t.classList)t.classList.remove(e);else{let i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter((t=>t!==e)).join(" "))}}function N(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function C(){return N()?1:void 0}function L(t,e){return s.isNumber(t)?t:null!=t&&s.isNumber(t.value)&&s.isNumber(e)?e*t.value:0}function A(t){let e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function R(t,e=0,i="0"){return"string"!=typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t}function U(t){return t.replace(/^[\s]*/,"")}function B(t){return t.replace(/[\s]*$/,"")}function F(t){return U(B(t))}function I(t,e,i=!1,s="..."){if(t.length>e){let n=e-1;for(;n>=0&&t.charAt(n).match(/\w/);)n--;return n>=0&&0==i?t.substring(0,n+1)+"...":t.substring(0,e)+s}return t}function H(t){if(void 0===t)return"string";let e=(t=(t=(t=t.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return e?e[1]:"number"===t?"number":"date"===t?"date":"duration"===t?"duration":t.match(/[#0]/)?"number":t.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function z(t){return t.replace(/\/(date|number|duration)$/i,"")}function G(t){return t?t.replace(/<[^>]*>/g,""):t}function V(t){return t?G((""+t).replace(/[\n\r]+/g,". ")):t}function W(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Y(t){let e="";for(let i=0;i{if(t.match(/^\s+$/))(t=" ")&&(t=" "),n.push(t);else if(e.test(t)){let e=t.split(i).filter((t=>""!==t));n=n.concat(e)}else n=n.concat([...t])})),n}function X(t,e=!1){const i=new Date(t.getFullYear(),0,0),s=t.getTime()-i.getTime()+60*(i.getTimezoneOffset()-t.getTimezoneOffset())*1e3;return Math.floor(s/864e5)}function $(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-s);const n=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-n.getTime())/864e5+1)/7)}function Z(t,e=!1){const i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),s=i.getUTCDay()||7;return i.setUTCDate(i.getUTCDate()+4-s),new Date(Date.UTC(i.getUTCFullYear(),0,1)).getFullYear()}function K(t,e=!1){const i=$(new Date(t.getFullYear(),t.getMonth(),1),e);let s=$(t,e);return 1==s&&(s=53),s-i+1}function q(t,e,i=1,s=!1){let n=new Date(e,0,4,0,0,0,0);return s&&n.setUTCFullYear(e),7*t+i-((n.getDay()||7)+3)}function Q(t,e){return t>12?t-=12:0===t&&(t=12),null!=e?t+(e-1):t}function J(t,e=!1,i=!1,s=!1,n){if(s)return e?"Coordinated Universal Time":"UTC";if(n){const i=t.toLocaleString("en-US",{timeZone:n});return F(t.toLocaleString("en-US",{timeZone:n,timeZoneName:e?"long":"short"}).substr(i.length))}let r=t.toLocaleString("UTC"),o=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(o=o.replace(/ (standard|daylight|summer|winter) /i," ")),F(o)}function tt(t,e){const i=e||new Date(Date.UTC(2012,0,1,0,0,0,0)),s=new Date(i.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(i.toLocaleString("en-US",{timeZone:t})).getTime()-s.getTime())/6e4*-1}function et(t){return t.charAt(0).toUpperCase()+t.slice(1)}function it(t){let e,i,s,n=t.h,r=t.s,o=t.l;if(0==r)e=i=s=o;else{let t=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},a=o<.5?o*(1+r):o+r-o*r,h=2*o-a;e=t(h,a,n+1/3),i=t(h,a,n),s=t(h,a,n-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*s)}}function st(t){let e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),r=Math.min(e,i,s),o=0,a=0,h=(n+r)/2;if(n===r)o=a=0;else{let t=n-r;switch(a=h>.5?t/(2-n-r):t/(n+r),n){case e:o=(i-s)/t+(i0?255-t:t;return Math.round(i*e)}function ht(t,e){if(t){let i=at(Math.min(Math.max(t.r,t.g,t.b),230),e);return{r:Math.max(0,Math.min(255,Math.round(t.r+i))),g:Math.max(0,Math.min(255,Math.round(t.g+i))),b:Math.max(0,Math.min(255,Math.round(t.b+i))),a:t.a}}return t}function lt(t,e){return Math.round(255*e)}function ct(t){return(299*t.r+587*t.g+114*t.b)/1e3>=128}function ut(t,e){if(void 0===t||1==e)return t;let i=st(t);return i.s=e,it(i)}function dt(t,e={r:255,g:255,b:255},i={r:255,g:255,b:255}){let s=e,n=i;return ct(i)&&(s=i,n=e),ct(t)?n:s}function pt(t,e){return t||(t=[]),[...t,...e].filter(((t,e,i)=>i.indexOf(t)===e))}function gt(t,e){return!!e&&t.left==e.left&&t.right==e.right&&t.top==e.top&&t.bottom==e.bottom}},3360:function(t,e,i){"use strict";i.d(e,{z:function(){return D},m:function(){return k}});var s=i(7582),n=i(6331),r=i(4596),o=i(8777),a=i(1112),h=i(6245),l=i(5769),c=i(9582),u=i(5040),d=i(5071),p=i(256),g={AccelerationBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccelerationBands)),AccumulationDistribution:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulationDistribution)),AccumulativeSwingIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AccumulativeSwingIndex)),Annotator:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Annotator)),ArcDiagram:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagram)),ArcDiagramLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramLink)),ArcDiagramNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ArcDiagramNodes)),Aroon:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Aroon)),AverageSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageSeries)),AverageTrueRange:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AverageTrueRange)),AwesomeOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.AwesomeOscillator)),Axis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Axis)),AxisBullet:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisBullet)),AxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabel)),AxisLabelRadial:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisLabelRadial)),AxisRenderer:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRenderer)),AxisRendererCircular:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererCircular)),AxisRendererCurveX:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveX)),AxisRendererCurveY:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.AxisRendererCurveY)),AxisRendererRadial:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.AxisRendererRadial)),AxisRendererX:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererX)),AxisRendererY:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisRendererY)),AxisTick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.AxisTick)),BaseColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.BaseColumnSeries)),BollingerBands:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BollingerBands)),BreadcrumbBar:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.BreadcrumbBar)),BullBearPower:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.BullBearPower)),Bullet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Bullet)),Button:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Button)),CalloutSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CalloutSeries)),Candlestick:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Candlestick)),CandlestickSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CandlestickSeries)),CategoryAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryAxis)),CategoryDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.CategoryDateAxis)),ChaikinMoneyFlow:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinMoneyFlow)),ChaikinOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChaikinOscillator)),Chart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Chart)),ChartIndicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ChartIndicator)),Chord:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Chord)),ChordDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordDirected)),ChordLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLink)),ChordLinkDirected:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordLinkDirected)),ChordNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNodes)),ChordNonRibbon:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.ChordNonRibbon)),Circle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Circle)),CirclePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.CirclePattern)),ClockHand:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.ClockHand)),ClusteredPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ClusteredPointSeries)),ColorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ColorControl)),ColorPicker:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPicker)),ColorPickerButton:()=>Promise.resolve().then((()=>i(2789))).then((t=>t.ColorPickerButton)),ColorSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ColorSet)),ColumnSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ColumnSeries)),CommodityChannelIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.CommodityChannelIndex)),ComparisonControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ComparisonControl)),Component:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Component)),ConfirmButton:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ConfirmButton)),Container:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Container)),CurveChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveChart)),CurveColumnSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveColumnSeries)),CurveCursor:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveCursor)),CurveLineSeries:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.CurveLineSeries)),DataSaveControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DataSaveControl)),DateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DateAxis)),DateRangeSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DateRangeSelector)),DisparityIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DisparityIndex)),DoodleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DoodleSeries)),DrawingControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingControl)),DrawingSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingSeries)),DrawingToolControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DrawingToolControl)),Dropdown:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Dropdown)),DropdownColors:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownColors)),DropdownControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownControl)),DropdownList:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownList)),DropdownListControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.DropdownListControl)),DurationAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.DurationAxis)),EditableAxisLabel:()=>Promise.resolve().then((()=>i(778))).then((t=>t.EditableAxisLabel)),EditableLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.EditableLabel)),Ellipse:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Ellipse)),EllipseSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.EllipseSeries)),Entity:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Entity)),Exporting:()=>Promise.resolve().then((()=>i(396))).then((t=>t.Exporting)),ExportingMenu:()=>Promise.resolve().then((()=>i(396))).then((t=>t.ExportingMenu)),FibonacciSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciSeries)),FibonacciTimezoneSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.FibonacciTimezoneSeries)),Flow:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Flow)),FlowLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowLink)),FlowNode:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNode)),FlowNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.FlowNodes)),ForceDirected:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.ForceDirected)),FunnelSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSeries)),FunnelSlice:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.FunnelSlice)),Gantt:()=>Promise.resolve().then((()=>i(133))).then((t=>t.Gantt)),GanttCategoryAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxis)),GanttCategoryAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttCategoryAxisRenderer)),GanttDateAxis:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxis)),GanttDateAxisRenderer:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttDateAxisRenderer)),GanttSeries:()=>Promise.resolve().then((()=>i(133))).then((t=>t.GanttSeries)),GaplessDateAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.GaplessDateAxis)),Gradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Gradient)),GrainPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GrainPattern)),Graphics:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Graphics)),GraticuleSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.GraticuleSeries)),Grid:()=>Promise.resolve().then((()=>i(778))).then((t=>t.Grid)),GridLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.GridLayout)),HeatLegend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HeatLegend)),HeikinAshi:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HeikinAshi)),Hierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Hierarchy)),HierarchyLink:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyLink)),HierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.HierarchyNode)),HorizontalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.HorizontalLayout)),HorizontalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalLineSeries)),HorizontalRaySeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.HorizontalRaySeries)),IconControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconControl)),IconSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IconSeries)),Indicator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Indicator)),IndicatorControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IndicatorControl)),InterfaceColors:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.InterfaceColors)),IntervalControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.IntervalControl)),Label:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Label)),LabelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LabelSeries)),Layout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Layout)),Legend:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Legend)),Line:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Line)),LineArrowSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.LineArrowSeries)),LinePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinePattern)),LineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.LineSeries)),LinearGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.LinearGradient)),Link:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Link)),LinkedHierarchy:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchy)),LinkedHierarchyNode:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.LinkedHierarchyNode)),MACD:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACD)),MACross:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MACross)),MapChart:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapChart)),MapLine:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLine)),MapLineSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapLineSeries)),MapPointSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPointSeries)),MapPolygon:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygon)),MapPolygonSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapPolygonSeries)),MapSeries:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.MapSeries)),Measure:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Measure)),MedianPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MedianPrice)),Modal:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Modal)),Momentum:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Momentum)),MovingAverage:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverage)),MovingAverageDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageDeviation)),MovingAverageEnvelope:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.MovingAverageEnvelope)),NumericStepper:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.NumericStepper)),OHLC:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLC)),OHLCSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.OHLCSeries)),OnBalanceVolume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OnBalanceVolume)),OrthogonalLine:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.OrthogonalLine)),OverboughtOversold:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.OverboughtOversold)),PVT:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PVT)),Pack:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Pack)),PanelControls:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PanelControls)),ParallelChannelSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ParallelChannelSeries)),Partition:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Partition)),PathPattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PathPattern)),Pattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Pattern)),PatternSet:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PatternSet)),PercentChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentChart)),PercentSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PercentSeries)),PeriodSelector:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PeriodSelector)),PictorialStackedSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PictorialStackedSeries)),Picture:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Picture)),PicturePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PicturePattern)),PieChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieChart)),PieSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PieSeries)),PointedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.PointedRectangle)),Polygon:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Polygon)),PolylineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.PolylineSeries)),ProgressPie:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ProgressPie)),PyramidSeries:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.PyramidSeries)),QuadrantLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.QuadrantLineSeries)),RadarChart:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarChart)),RadarColumnSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarColumnSeries)),RadarCursor:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarCursor)),RadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.RadarLineSeries)),RadialGradient:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialGradient)),RadialLabel:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialLabel)),RadialText:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RadialText)),Rectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Rectangle)),RectanglePattern:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RectanglePattern)),RectangleSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RectangleSeries)),RegressionSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RegressionSeries)),RelativeStrengthIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.RelativeStrengthIndex)),ResetControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ResetControl)),RoundedRectangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.RoundedRectangle)),Sankey:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.Sankey)),SankeyLink:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyLink)),SankeyNodes:()=>Promise.resolve().then((()=>i(2924))).then((t=>t.SankeyNodes)),Scrollbar:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Scrollbar)),SerialChart:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SerialChart)),Serializer:()=>Promise.resolve().then((()=>i(5362))).then((t=>t.Serializer)),Series:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Series)),SeriesTypeControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SeriesTypeControl)),SerpentineChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SerpentineChart)),SettingsControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsControl)),SettingsModal:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SettingsModal)),SimpleLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SimpleLineSeries)),Slice:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slice)),SliceGrouper:()=>Promise.resolve().then((()=>i(1790))).then((t=>t.SliceGrouper)),SlicedChart:()=>Promise.resolve().then((()=>i(2536))).then((t=>t.SlicedChart)),Slider:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Slider)),SmoothedRadarLineSeries:()=>Promise.resolve().then((()=>i(2051))).then((t=>t.SmoothedRadarLineSeries)),SmoothedXLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXLineSeries)),SmoothedXYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedXYLineSeries)),SmoothedYLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.SmoothedYLineSeries)),SpiralChart:()=>Promise.resolve().then((()=>i(4397))).then((t=>t.SpiralChart)),Sprite:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Sprite)),SpriteResizer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.SpriteResizer)),StandardDeviation:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StandardDeviation)),Star:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Star)),StepLineSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.StepLineSeries)),StochasticMomentumIndex:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticMomentumIndex)),StochasticOscillator:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StochasticOscillator)),StockChart:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockChart)),StockControl:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockControl)),StockLegend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockLegend)),StockPanel:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockPanel)),StockToolbar:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.StockToolbar)),Sunburst:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Sunburst)),SuperTrend:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.SuperTrend)),Text:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Text)),Tick:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tick)),Tooltip:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Tooltip)),Tree:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Tree)),Treemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.Treemap)),TrendLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TrendLineSeries)),Triangle:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.Triangle)),Trix:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Trix)),TypicalPrice:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.TypicalPrice)),VWAP:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VWAP)),ValueAxis:()=>Promise.resolve().then((()=>i(778))).then((t=>t.ValueAxis)),Venn:()=>Promise.resolve().then((()=>i(8034))).then((t=>t.Venn)),VerticalLayout:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.VerticalLayout)),VerticalLineSeries:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VerticalLineSeries)),Volume:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.Volume)),VolumeProfile:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.VolumeProfile)),VoronoiTreemap:()=>Promise.resolve().then((()=>i(8447))).then((t=>t.VoronoiTreemap)),WilliamsR:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.WilliamsR)),WordCloud:()=>Promise.resolve().then((()=>i(6769))).then((t=>t.WordCloud)),XYChart:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChart)),XYChartScrollbar:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYChartScrollbar)),XYCursor:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYCursor)),XYSeries:()=>Promise.resolve().then((()=>i(778))).then((t=>t.XYSeries)),ZigZag:()=>Promise.resolve().then((()=>i(6397))).then((t=>t.ZigZag)),ZoomControl:()=>Promise.resolve().then((()=>i(7533))).then((t=>t.ZoomControl)),ZoomTools:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomTools)),ZoomableContainer:()=>Promise.resolve().then((()=>i(5322))).then((t=>t.ZoomableContainer))};function f(t){return u.isObject(t)}function _(t){return t instanceof n.JH||t instanceof a.Il||t instanceof h.gG||t instanceof l.YS}function m(t,e){let i=t.length;for(;i--;){const s=t[i];if(e in s)return s[e]}throw new Error("Could not find ref "+e)}function y(t,e){if("#"===t[0]||"@"===t[0]){if(t[1]===t[0])return{isValue:!0,value:t.slice(1)};{const i=t.split(/\./g);let s=m(e,i[0]);for(let t=1;t{e(t)}))}function w(t,e){v(t,e),e.adapters&&d.each(e.adapters,(e=>{t.adapters.add(e.key,e.callback)})),e.states&&d.each(e.states,(e=>{t.states.create(e.key,e.settings)})),t instanceof o.W&&e.children&&e.children.forEach((e=>{null==e.index||e.index>=t.children.length?t.children.push(e.value):t.children.insertIndex(e.index,e.value)}))}function b(t,e){if(!e.construct)return e.value;const i=e.construct.new(t,e.settings||{});return w(i,e),i}class x{constructor(){this._caching={},this._cache={},this._delayed=[]}afterParse(){this._delayed.forEach((t=>{t()}))}getClass(t){return this._cache[t]}storeClass(t){return(0,s.mG)(this,void 0,void 0,(function*(){if("Template"===t)return;const e=g[t];if(null==e)throw new Error("Unknown object type `"+t+"`");this._cache[t]=yield e()}))}cacheClass(t){let e=this._caching[t];return null==e&&(e=this._caching[t]=this.storeClass(t)),e}parseAsyncArray(t){return(0,s.mG)(this,void 0,void 0,(function*(){yield Promise.all(d.map(t,(t=>this.parseAsync(t))))}))}parseAsyncObjectKey(t,e){return(0,s.mG)(this,void 0,void 0,(function*(){"type"===t?u.isString(e)?yield this.cacheClass(e):yield this.parseAsync(e):"geoJSON"===t||"geometry"===t||(yield this.parseAsync(e))}))}parseAsyncObject(t){return(0,s.mG)(this,void 0,void 0,(function*(){switch(t.type){case"Color":case"Percent":break;default:yield Promise.all(d.map(p.keys(t),(e=>this.parseAsyncObjectKey(e,t[e]))))}}))}parseAsync(t){return(0,s.mG)(this,void 0,void 0,(function*(){u.isArray(t)?yield this.parseAsyncArray(t):f(t)&&(_(t)||!0!==t.__parse&&!1===t.__parse||(yield this.parseAsyncObject(t)))}))}parseObject(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parse(t,e[n],i)})),s}parseArray(t,e,i){return d.map(e,(e=>this.parse(t,e,i)))}parseChildren(t,e,i){return d.map(e,(e=>this.parseChild(t,e,i)))}parseStops(t,e,i){return d.map(e,(e=>this.parseObject(t,e,i)))}parseSetting(t,e,i,s){if("layout"===e)switch(i){case"horizontal":return t.horizontalLayout;case"vertical":return t.verticalLayout;case"grid":return t.gridLayout}return"clusteredBullet"===e?(e,n)=>{const r=s.concat([{"@series":n}]);return this.parse(t,i,r)}:"projection"===e||"geoJSON"===e?i:"stops"===e?this.parseStops(t,i,s):this.parse(t,i,s)}parseSettings(t,e,i){const s={};return d.each(p.keys(e),(n=>{s[n]=this.parseSetting(t,n,e[n],i)})),s}parseState(t,e,i){return{key:e.key,settings:this.parseSettings(t,e.settings,i)}}parseAdapter(t,e,i){return{key:e.key,callback:this.parse(t,e.callback,i)}}parseProperties(t,e,i){return d.map(p.keys(e),(s=>{const r=e[s];return e=>{const o=()=>{const o=this.parseValue(t,r,i),a=e[s];a?o.isValue?u.isArray(o.value)?a instanceof c.k?a.setAll(o.value):d.each(o.value,(t=>{a.push(t)})):e[s]=o.value:o.construct?e[s]=b(t,o):a instanceof n.JH||a instanceof l.YS?function(t,e){e.settings&&t.setAll(e.settings),w(t,e)}(a,o):v(a,o):o.isValue?e[s]=o.value:e[s]=b(t,o)};if("data"===s)this._delayed.push(o);else if("bullets"===s){const n=e[s];u.assert(null!=n),u.assert(u.isArray(r)),d.each(r,(e=>{n.push(((s,n)=>{const r=i.concat([{"@series":n}]);return this.parse(t,e,r)}))}))}else"bullet"===s?e.set("bullet",((e,s)=>{const n=i.concat([{"@axis":s}]);return this.parse(t,r,n)})):o()}}))}parseAxisRange(t,e,i){return{isValue:!1,type:void 0,construct:void 0,settings:this.parseSettings(t,e.settings,i),adapters:void 0,states:void 0,children:void 0,properties:void 0,index:void 0,value:e}}parseRefsObject(t,e,i){const s={};return p.each(e,((e,r)=>{if("axisRange"==r.__parseLogic||"seriesAxisRange"==r.__parseLogic){const e=this.parseAxisRange(t,r,i),s=m(i,r.axis),o=s.makeDataItem({});let a;const h=r.series?m(i,r.series):void 0;h?a=h.createAxisRange(o):s.createAxisRange(o),function(t,e){e.settings&&p.each(e.settings,((e,i)=>{if(i instanceof n.JH){const s=t.get(e);s instanceof n.JH?s.setAll(i._settings):t.set(e,i)}else t.set(e,i)})),w(t,e)}(o,e),a&&["fills","strokes","graphics"].forEach((e=>{if(void 0!==a[e]&&void 0!==r[e]){r[e].__parse=!0;const s=this.parse(t,r[e],i);a[e].template.setAll(s)}}))}else s["#"+e]=this.parse(t,r,i)})),s}parseRefs(t,e,i){if(u.isArray(e)){const s=e.length;for(let n=0;nthis.parseState(t,e,i))):void 0,h=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0,l=null==e.index?void 0:e.index;return{isValue:!1,type:e.type,construct:s,settings:n,adapters:h,states:a,children:o,properties:r,index:l,value:e}}parseTemplate(t,e,i){e.refs&&(i=this.parseRefs(t,e.refs,i));const s=e.settings?this.parseSettings(t,e.settings,i):{},n=l.YS.new(s),r=e.states?d.map(e.states,(e=>this.parseState(t,e,i))):void 0,o=e.adapters?d.map(e.adapters,(e=>this.parseAdapter(t,e,i))):void 0;return o&&d.each(o,(t=>{n.adapters.add(t.key,t.callback)})),r&&d.each(r,(t=>{n.states.create(t.key,t.settings)})),{isValue:!0,value:n}}parseValue(t,e,i){return e instanceof n.JH?{isValue:!0,value:e}:u.isArray(e)?{isValue:!0,value:this.parseArray(t,e,i)}:f(e)?_(e)?{isValue:!0,value:e}:"Color"===e.type?{isValue:!0,value:a.Il.fromAny(e.value)}:"Percent"===e.type?{isValue:!0,value:new h.gG(e.value)}:"Template"===e.type?this.parseTemplate(t,e,i):!0===e.__parse?{isValue:!0,value:this.parseObject(t,e,i)}:!1===e.__parse?{isValue:!0,value:e}:this.parseEntity(t,e,i):u.isString(e)?y(e,i):{isValue:!0,value:e}}parse(t,e,i){const s=this.parseValue(t,e,i);return s.isValue?s.value:b(t,s)}}class D{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t}static new(t){return new this(t,!0)}parse(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){const i=new x;yield i.parseAsync(t);const s=i.parse(this._root,t,[]);if(e.parent){if(!(s instanceof r.j))throw new Error("When using the parent setting, the entity must be a Sprite");e.parent.children.push(s)}else s instanceof n.JH&&s._applyThemes(!0);return i.afterParse(),s}))}parseString(t,e={}){return(0,s.mG)(this,void 0,void 0,(function*(){return yield this.parse(JSON.parse(t),e)}))}}function k(t,e){g[t]||(g[t]=()=>new Promise((t=>{t(e)})))}},6890:function(t,e,i){"use strict";i.d(e,{e:function(){return p}});var s=i(6331),n=i(9361),r=i(1112),o=i(1437),a=i(6245),h=i(5769),l=i(9582),c=i(5040),u=i(5071),d=i(256);class p extends s.JH{constructor(){super(...arguments),this._refs={}}serialize(t,e=0,i=!1,p=!1){if(e>this.get("maxDepth",2))return;if(!1===t||!0===t)return t;if(c.isArray(t)){const s=[];return u.each(t,(t=>{s.push(this.serialize(t,e,i,p))})),s}if(t instanceof l.k){const s=[];return u.each(t.values,(t=>{s.push(this.serialize(t,e,i,p))})),s}const g={},f=t instanceof s.JH||t instanceof h.YS||t instanceof r.Il||t instanceof a.gG,_=this.get("fullSettings",[]);if(t instanceof s.JH){g.type=t.className;let s=this._filterSettings(d.keys(t._settings));s=s.filter((e=>t.isUserSetting(e))),s.length&&(g.settings={},u.each(s,(s=>{const n=t.get(s);void 0!==n&&(g.settings[s]=this.serialize(n,e+1,i||-1!==_.indexOf(s)),t instanceof o.p&&"stops"===s&&(g.settings[s]=this.serialize(n,0,!0)))}))),this._processAdapters(t,g),this._processStates(t,g)}else if(t instanceof h.YS){g.type="Template";let i=this._filterSettings(d.keys(t._settings));return i.length&&(g.settings={},u.each(i,(i=>{void 0!==t._settings[i]&&(g.settings[i]=this.serialize(t.get(i),e+1,-1!==_.indexOf(i)))}))),this._processAdapters(t,g),this._processStates(t,g),g}if(t instanceof n.w&&t.data.length&&-1===(this.get("excludeProperties")||[]).indexOf("data")&&(g.properties={data:this.serialize(t.data.values,e,!0)}),t instanceof r.Il)return{type:"Color",value:t.toCSSHex()};if(t instanceof a.gG)return{type:"Percent",value:t.percent};if(c.isString(t))return this._escapeRefs(t);if(c.isNumber(t))return t;if(c.isObject(t))if(i&&!f){const s=this.get("excludeProperties",[]);d.each(t,((t,n)=>{-1===s.indexOf(t)&&void 0!==n&&(g[t]=this.serialize(n,e+1,i,p))})),p&&d.each(g,((t,e)=>{c.isObject(e)&&(g.__parse=!0)}))}else if(f){const s=this.get("includeProperties",[]);u.each(s,(s=>{const n=t[s];void 0!==n&&(void 0===g.properties&&(g.properties={}),g.properties[s]=this.serialize(n,e+1,i,p))}))}return 0==e&&d.keys(this._refs).length&&(g.refs=this._refs),g}_processAdapters(t,e){if(this.get("includeAdapters",!1)){const i="string"==this.get("functionsAs","string"),s=t.adapters._callbacks;Object.keys(s).length>0&&(e.adapters=[],d.each(s,((t,s)=>{s.forEach((s=>{e.adapters.push({key:t,callback:i?s.toString():s})}))})))}}_processStates(t,e){if(this.get("includeStates",!1)){const i=t.states._states;Object.keys(i).length>0&&(e.states=[],d.each(i,((t,i)=>{Object.keys(i._settings).length>0&&e.states.push({key:t,settings:this.serialize(i._settings,0,!0)})})))}}_filterSettings(t){const e=this.get("includeSettings",[]),i=this.get("excludeSettings",[]);return e.length?t=e:i.length&&(t=t.filter((t=>-1===i.indexOf(t)))),t}_escapeRefs(t){return t.replace(/^#/,"##").replace(/^@/,"@@")}}p.className="Serializer",p.classNames=s.JH.classNames.concat([p.className])},3783:function(t,e,i){"use strict";i.d(e,{X:function(){return c},v:function(){return l}});var s=i(3409),n=i(6245),r=i(1112),o=i(6881),a=i(962),h=i(9395);function l(t,e,i,s){t.set(e,i.get(s)),i.on(s,(i=>{t.set(e,i)}))}class c extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.language,e=this._root.interfaceColors,i=this._root.horizontalLayout,s=this._root.verticalLayout,c=this.rule.bind(this);c("InterfaceColors").setAll({stroke:r.Il.fromHex(15066597),fill:r.Il.fromHex(15987699),primaryButton:r.Il.fromHex(6788316),primaryButtonHover:r.Il.fromHex(6779356),primaryButtonDown:r.Il.fromHex(6872182),primaryButtonActive:r.Il.fromHex(6872182),primaryButtonDisabled:r.Il.fromHex(14342874),primaryButtonTextDisabled:r.Il.fromHex(16777215),primaryButtonText:r.Il.fromHex(16777215),primaryButtonStroke:r.Il.fromHex(16777215),secondaryButton:r.Il.fromHex(14277081),secondaryButtonHover:r.Il.fromHex(10724259),secondaryButtonDown:r.Il.fromHex(9276813),secondaryButtonActive:r.Il.fromHex(15132390),secondaryButtonText:r.Il.fromHex(0),secondaryButtonStroke:r.Il.fromHex(16777215),grid:r.Il.fromHex(0),background:r.Il.fromHex(16777215),alternativeBackground:r.Il.fromHex(0),text:r.Il.fromHex(0),alternativeText:r.Il.fromHex(16777215),disabled:r.Il.fromHex(11382189),positive:r.Il.fromHex(5288704),negative:r.Il.fromHex(11730944)});{const t=c("ColorSet");t.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[r.Il.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),t.setPrivate("currentStep",0),t.setPrivate("currentPass",0)}c("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:h.out(h.cubic)}),c("Component").setAll({interpolationDuration:0,interpolationEasing:h.out(h.cubic)}),c("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:n.CI,tooltipY:n.CI,tooltipPosition:"fixed",isMeasured:!0}),c("Sprite").states.create("default",{visible:!0,opacity:1}),c("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),c("Graphics").setAll({strokeWidth:1}),c("Chart").setAll({width:n.AQ,height:n.AQ,interactiveChildren:!1}),c("ZoomableContainer").setAll({width:n.AQ,height:n.AQ,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:h.out(h.cubic),animationDuration:600,maxPanOut:.4}),c("Sprite",["horizontal","center"]).setAll({centerX:n.CI,x:n.CI}),c("Sprite",["vertical","center"]).setAll({centerY:n.CI,y:n.CI}),c("Container",["horizontal","layout"]).setAll({layout:i}),c("Container",["vertical","layout"]).setAll({layout:s}),c("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),c("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),c("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),c("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),c("GrainPattern").setAll({width:200,height:200,colors:[r.Il.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const t=c("PatternSet");t.setAll({step:1}),l(t,"color",e,"stroke")}c("LinearGradient").setAll({rotation:90}),c("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:o.M.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),c("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:t.translate("Press ENTER to toggle"),role:"checkbox"});{const t=c("Rectangle",["legend","item","background"]);t.setAll({fillOpacity:0}),l(t,"fill",e,"background")}c("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:n.CI,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),c("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:n.AQ,height:n.AQ,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const t=c("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});l(t,"fill",e,"disabled"),l(t,"stroke",e,"disabled")}c("Label",["legend","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0}),l(c("Label",["legend","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("Label",["legend","value","label"]).setAll({centerY:n.CI,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:n.AQ,populateText:!0}),l(c("Label",["legend","value","label"]).states.create("disabled",{}),"fill",e,"disabled"),c("HeatLegend").setAll({stepCount:1}),c("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),c("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:n.AQ,width:15}),c("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:n.AQ,height:15}),c("HeatLegend",["vertical"]).setAll({height:n.AQ}),c("HeatLegend",["horizontal"]).setAll({width:n.AQ}),c("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),c("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const t=c("Label");t.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),l(t,"fill",e,"text")}c("RadialLabel").setAll({textType:"regular",centerY:n.CI,centerX:n.CI,inside:!1,radius:0,baseRadius:n.AQ,orientation:"auto",textAlign:"center"}),c("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),c("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:r.Il.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:r.Il.fromHex(0)}),c("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),c("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),c("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),c("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const t=c("Tick");t.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),l(t,"stroke",e,"grid")}c("Bullet").setAll({locationX:.5,locationY:.5}),c("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:n.CI,centerY:n.CI,animationEasing:h.out(h.cubic),exportable:!1}),c("Tooltip",["system"]).setAll({pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});{const t=c("PointedRectangle",["tooltip","system","background"]);t.setAll({strokeOpacity:.3}),l(t,"fill",e,"background"),l(t,"stroke",e,"grid")}c("Label",["tooltip","system"]).setAll({fontSize:12,fill:e.get("background")}),c("Polygon").setAll({animationEasing:h.out(h.cubic)}),c("Link").setAll({cornerRadius:8,setStateOnChildren:!0});{const t=c("OrthogonalLine",["link","line"]);t.setAll({isMeasured:!1,crisp:!0}),l(t.states.create("active",{strokeWidth:2}),"stroke",e,"negative")}c("OrthogonalLine",["link","hit"]).setAll({strokeWidth:10,opacity:0,strokeOpacity:0});{const t=c("OrthogonalLine");t.setAll({strokeWidth:1,strokeOpacity:1,cornerRadius:10}),l(t,"stroke",e,"grid")}{const t=c("Triangle",["link"]);t.setAll({width:14,height:10,centerY:0}),l(t,"fill",e,"grid"),l(t,"stroke",e,"grid"),t.states.create("default",{stateAnimationDuration:0});const i=t.states.create("active",{stateAnimationDuration:0,stroke:(0,r.$_)(16777215),strokeWidth:2});i.set("draw",(t=>{t.arc(0,0,11,0,2*Math.PI),t.moveTo(-4,-4),t.lineTo(4,4),t.moveTo(4,-4),t.lineTo(-4,4)})),l(i,"fill",e,"negative")}c("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:r.Il.fromHex(16777215)});{const t=c("Label",["tooltip"]);t.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),l(t,"fill",e,"alternativeText")}c("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),c("Button").states.create("hover",{}),c("Button").states.create("down",{stateAnimationDuration:0}),c("Button").states.create("active",{}),c("Button").states.create("disabled",{forceInactive:!0});{const t=c("RoundedRectangle",["button","background"]);l(t,"fill",e,"primaryButton"),l(t,"stroke",e,"primaryButtonStroke")}l(c("RoundedRectangle",["button","background"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown"),l(c("RoundedRectangle",["button","background"]).states.create("active",{}),"fill",e,"primaryButtonActive"),l(c("RoundedRectangle",["button","background"]).states.create("disabled",{}),"fill",e,"primaryButtonDisabled"),l(c("Graphics",["button","icon"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled"),l(c("Label",["button"]).states.create("disabled",{}),"fill",e,"primaryButtonTextDisabled");{const t=c("Graphics",["button","icon"]);t.setAll({forceInactive:!0}),l(t,"stroke",e,"primaryButtonText")}l(c("Label",["button"]),"fill",e,"primaryButtonText"),c("ConfirmButton").setAll({toggleKey:"active",setStateOnChildren:!0,label:a._.new(this._root,{text:t.translate("Confirm"),forceHidden:!0})}),l(c("RoundedRectangle",["button","background","confirm"]).states.create("active",{}),"fill",e,"negative"),c("Label",["button","confirm"]).setAll({paddingTop:0,paddingBottom:0,paddingRight:3,paddingLeft:5}),c("Label",["button","confirm"]).states.create("default",{stateAnimationDuration:0}),c("Label",["button","confirm"]).states.create("active",{forceHidden:!1,stateAnimationDuration:0});{const t=c("Graphics",["icon","confirm","button"]);t.setAll({stateAnimationDuration:0}),t.states.create("default",{stateAnimationDuration:0}),l(t,"stroke",e,"primaryButtonText")}l(c("Graphics",["icon","confirm","button"]).states.create("active",{svgPath:"M -5 1 L 0 6 L 8 -5",strokeWidth:2}),"stroke",e,"primaryButtonText"),l(c("Graphics",["icon","confirm","button","secondary"]).states.create("active",{}),"stroke",e,"primaryButtonText"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1}),"fill",e,"negative"),l(c("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1}),"fill",e,"negative"),c("Button",["button","confirm"]).states.create("hoverActive",{}),c("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:n.AQ,role:"button",ariaLabel:t.translate("Zoom Out"),layer:30});{const t=c("RoundedRectangle",["background","button","zoom"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"primaryButton")}l(c("RoundedRectangle",["background","button","zoom"]).states.create("hover",{}),"fill",e,"primaryButtonHover"),l(c("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"primaryButtonDown");{const t=c("Graphics",["icon","button","zoom"]);t.setAll({crisp:!0,strokeOpacity:.7,draw:t=>{t.moveTo(0,0),t.lineTo(12,0)}}),l(t,"stroke",e,"primaryButtonText")}c("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:n.CI,centerY:n.CI,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:t.translate("Use up and down arrows to move selection")});{const t=c("RoundedRectangle",["background","resize","button"]);t.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(t,"fill",e,"secondaryButton"),l(t,"stroke",e,"secondaryButtonStroke")}l(c("RoundedRectangle",["background","resize","button"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown");{const t=c("Graphics",["resize","button","icon"]);t.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),l(t,"stroke",e,"secondaryButtonText")}c("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),c("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),c("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:t.translate("Play"),toggleKey:"active"});{const t=c("RoundedRectangle",["play","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Graphics",["play","icon"]);t.setAll({stateAnimationDuration:0,dx:1,draw:t=>{t.moveTo(0,-5),t.lineTo(8,0),t.lineTo(0,5),t.lineTo(0,-5)}}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),c("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:t=>{t.moveTo(-4,-5),t.lineTo(-1,-5),t.lineTo(-1,5),t.lineTo(-4,5),t.lineTo(-4,-5),t.moveTo(4,-5),t.lineTo(1,-5),t.lineTo(1,5),t.lineTo(4,5),t.lineTo(4,-5)}}),c("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:t.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const t=c("RoundedRectangle",["switch","background"]);t.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["switch","icon"]);t.setAll({radius:8,centerY:0,centerX:0,dx:0}),l(t,"fill",e,"primaryButtonText")}c("Graphics",["switch","icon"]).states.create("active",{dx:16}),c("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:h.out(h.cubic)}),c("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:n.AQ}),c("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:n.AQ}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const t=c("RoundedRectangle",["scrollbar","main","background"]);t.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),l(t,"fill",e,"fill")}{const t=c("RoundedRectangle",["scrollbar","thumb"]);t.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),l(t,"fill",e,"secondaryButton")}l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{}),"fill",e,"secondaryButtonHover"),l(c("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0}),"fill",e,"secondaryButtonDown"),c("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:n.CI,width:n.AQ,centerX:n.CI,ariaLabel:t.translate("Use up and down arrows to move selection")}),c("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:n.CI,centerY:n.CI,height:n.AQ,ariaLabel:t.translate("Use left and right arrows to move selection")});{const t=c("PointedRectangle",["axis","tooltip","background"]);t.setAll({cornerRadius:0}),l(t,"fill",e,"alternativeBackground")}c("Label",["axis","tooltip"]).setAll({role:void 0}),c("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),c("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),c("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),c("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),c("Star").setAll({spikes:5,innerRadius:5,radius:10}),c("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),c("Tooltip",["indicator"]).setAll({forceHidden:!0}),c("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),c("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),c("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),c("Container",["resizer","grip"]).states.create("hover",{});{const t=c("RoundedRectangle",["resizer","grip"]);t.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),l(t,"fill",e,"background"),l(t,"stroke",e,"alternativeBackground")}{const t=c("RoundedRectangle",["resizer","grip","outline"]);t.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),t.states.create("hover",{fillOpacity:.3}),l(t,"fill",e,"alternativeBackground")}c("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),c("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const t=c("Rectangle",["resizer","rectangle"]);t.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),l(t,"stroke",e,"alternativeBackground")}c("Graphics",["button","plus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0),t.moveTo(0,-4),t.lineTo(0,4)}}),c("Graphics",["button","minus","icon"]).setAll({x:n.CI,y:n.CI,draw:t=>{t.moveTo(-4,0),t.lineTo(4,0)}}),c("Graphics",["button","home","icon"]).setAll({x:n.CI,y:n.CI,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),c("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),c("ZoomTools").setAll({x:n.AQ,centerX:n.AQ,y:n.AQ,centerY:n.AQ,paddingRight:10,paddingBottom:10}),c("ProgressPie").setAll({radius:n.AQ,width:50,height:50,centerX:(0,n.aQ)(-50),centerY:(0,n.aQ)(-50),innerRadius:(0,n.aQ)(85),numberFormat:"#."});{const t=c("Label",["progresspie"]);t.setAll({centerX:n.CI,centerY:n.CI,fontSize:"0.75em"}),l(t,"fill",e,"primaryButton")}{const t=c("Circle",["progresspie"]);t.setAll({fillOpacity:.5}),l(t,"fill",e,"background")}{const t=c("Slice",["progresspie"]);t.setAll({startAngle:-90}),l(t,"fill",e,"primaryButton")}{const t=c("Slice",["progresspie","background"]);t.setAll({fillOpacity:.2,arc:360}),l(t,"fill",e,"primaryButton")}c("EditableLabel",["numericstepper"]).setAll({y:n.CI,centerY:n.CI,multiLine:!1,marginRight:2});{const t=c("Container",["numericstepper","buttons"]);t.setAll({layout:this._root.verticalLayout,centerY:n.CI,y:n.CI,marginRight:10,opacity:0}),t.states.create("active",{opacity:1}),t.states.create("default",{opacity:0})}{const t=c("Triangle",["numericstepper"]);t.setAll({width:17,height:11,marginTop:3,marginBottom:3,strokeWidth:5,strokeOpacity:0,cursorOverStyle:"pointer"}),l(t,"fill",e,"secondaryButton")}c("Triangle",["downbutton"]).setAll({rotation:180})}}},5322:function(t,e,i){"use strict";i.r(e),i.d(e,{ArrayDisposer:function(){return c.rk},BlendMode:function(){return ot.b},Bullet:function(){return u.g},Button:function(){return d.z},CSVParser:function(){return bt},CanvasLayer:function(){return Pt.mM},CanvasRenderer:function(){return Pt.uK},Chart:function(){return q.k},Circle:function(){return g.C},CirclePattern:function(){return ut},Color:function(){return O.Il},ColorSet:function(){return mt.U},Component:function(){return v.w},ConfirmButton:function(){return p.p},Container:function(){return w.W},CounterDisposer:function(){return c.DM},DataItem:function(){return v.z},DataProcessor:function(){return xt},DateFormatter:function(){return Dt.C},Disposer:function(){return c.ku},DurationFormatter:function(){return kt.$},EditableLabel:function(){return A.Y},Ellipse:function(){return _.P},Entity:function(){return l.JH},Gradient:function(){return at.p},GrainPattern:function(){return rt},Graphics:function(){return m.T},GridLayout:function(){return x.M},HeatLegend:function(){return C},HorizontalLayout:function(){return L.G},InterfaceColors:function(){return Tt.v},JSONParser:function(){return wt},JsonData:function(){return yt.Q},Label:function(){return D._},Layout:function(){return R.A},Legend:function(){return U.D},Line:function(){return B.x},LinePattern:function(){return dt.y},LinearGradient:function(){return S.o},Link:function(){return F.r},ListData:function(){return yt.k},ListTemplate:function(){return E.o},Modal:function(){return h.u},MultiDisposer:function(){return c.FV},MutableValueDisposer:function(){return c.cx},NumberFormatter:function(){return Mt.e},NumericStepper:function(){return St.l},OrthogonalLine:function(){return I.P},PathPattern:function(){return ft},Pattern:function(){return nt.c},PatternSet:function(){return _t},Percent:function(){return k.gG},Picture:function(){return H.t},PicturePattern:function(){return pt.v},PointedRectangle:function(){return z.i},Polygon:function(){return f.m},ProgressPie:function(){return Nt.w},RadialGradient:function(){return lt},RadialLabel:function(){return G.x},RadialText:function(){return V.f},Rectangle:function(){return W.A},RectanglePattern:function(){return gt},Root:function(){return n.f},RoundedRectangle:function(){return T.c},Scrollbar:function(){return j.L},SerialChart:function(){return Q.j},Series:function(){return K.F},Slice:function(){return $.p},Slider:function(){return X.i},Sprite:function(){return Z.j},SpriteResizer:function(){return Ot.b},Star:function(){return y},Template:function(){return M.YS},Text:function(){return J.x},TextFormatter:function(){return Et.V},Theme:function(){return r.Q},Tick:function(){return tt.d},Timezone:function(){return it.r},Tooltip:function(){return P.u},Triangle:function(){return Y.C},VerticalLayout:function(){return et.Z},ZoomTools:function(){return st.H},ZoomableContainer:function(){return b.Y},addLicense:function(){return o.cP},array:function(){return ht},color:function(){return O.$_},disposeAllRootElements:function(){return o.UZ},ease:function(){return Ct},getRootById:function(){return o.f_},math:function(){return ct},net:function(){return s},object:function(){return vt},p0:function(){return k.p0},p100:function(){return k.AQ},p50:function(){return k.CI},percent:function(){return k.aQ},ready:function(){return a.ready},registry:function(){return o.i_},time:function(){return Rt},type:function(){return N},utils:function(){return a}});var s={};i.r(s),i.d(s,{load:function(){return Lt},readBlob:function(){return At}});var n=i(2855),r=i(3409),o=i(3145),a=i(7652),h=i(8219),l=i(6331),c=i(7449),u=i(5108),d=i(8054),p=i(2936),g=i(8035),f=i(7770),_=i(2433),m=i(1479);class y extends m.T{_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("spikes"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const t=this._display,e=this.get("radius",0),i=a.relativeToValue(this.get("innerRadius",0),e),s=this.get("spikes",0),n=Math.PI/s;let r=Math.PI/2*3;t.moveTo(0,-e);for(let o=0;oT.c._new(this._root,{themeTags:a.mergeTags(this.markers.template.get("themeTags",[]),[this.get("orientation"),"heatlegend","marker"])},[this.markers.template]))))}_afterNew(){this._settings.themeTags=a.mergeTags(this._settings.themeTags,["heatlegend",this._settings.orientation]),super._afterNew(),this.set("tooltip",P.u.new(this._root,{themeTags:["heatlegend"]}))}makeMarker(){const t=this.markers.make();return t.states.create("disabled",{}),t}showValue(t,e,i){const s=this.getTooltip();if(s&&N.isNumber(t)){const n=this.get("startValue",0);let r=(t-n)/(this.get("endValue",1)-n);(r==1/0||r==-1/0||isNaN(r))&&(r=.5);const o=this.get("startColor"),a=this.get("endColor");let h;e||(e=this.getNumberFormatter().format(t)),i||(i=O.Il.interpolate(r,o,a)),s.label.set("text",e),h="vertical"==this.get("orientation")?this.markerContainer.toGlobal({x:0,y:this.innerHeight()*(1-r)}):this.markerContainer.toGlobal({x:this.innerWidth()*r,y:0});let l=s.get("background");l&&l.set("fill",i),s.set("pointTo",h),s.show()}}_prepareChildren(){super._prepareChildren();const t=this.labelContainer,e=this.get("orientation"),i=this.startLabel,s=this.endLabel,n=this.getTooltip();if(this.isDirty("orientation")&&("vertical"==e?(this.markerContainer.setAll({layout:this._root.verticalLayout,height:k.AQ}),this.set("layout",this._root.horizontalLayout),i.setAll({y:k.AQ,x:void 0,centerY:k.AQ,centerX:k.AQ}),s.setAll({y:0,x:void 0,centerY:0,centerX:k.AQ}),t.setAll({height:k.AQ,width:void 0}),n&&n.set("pointerOrientation","horizontal")):(this.markerContainer.setAll({layout:this._root.horizontalLayout,width:k.AQ}),this.set("layout",this._root.verticalLayout),i.setAll({x:0,y:void 0,centerX:0,centerY:0}),s.setAll({x:k.AQ,y:void 0,centerX:k.AQ,centerY:0}),t.setAll({width:k.AQ,height:void 0}),n&&n.set("pointerOrientation","vertical"))),this.isDirty("stepCount")){const t=this.get("stepCount",1),i=this.get("startColor"),s=this.get("endColor"),n=this.get("startOpacity",1),r=this.get("endOpacity",1);if(this.markerContainer.children.clear(),t>1)for(let o=0;o0&&e/u!=Math.round(e/u)))for(let h=0;h0&&h/c!=Math.round(h/c)||d{let i=e.offset;N.isNumber(i)||(i=t/(g.length-1));let s=e.opacity;N.isNumber(s)||(s=1);let n=e.color;if(n){const t=e.lighten;t&&(n=O.Il.lighten(n,t));const r=e.brighten;r&&(n=O.Il.brighten(n,r)),p.addColorStop(i,"rgba("+n.r+","+n.g+","+n.b+","+s+")")}t++}))}return p}}lt.className="RadialGradient",lt.classNames=at.p.classNames.concat([lt.className]);var ct=i(751);class ut extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("radius",3),a=2*o+i,h=2*o+i,l=Math.round(n/a),c=Math.round(r/h);a=n/l,h=r/c,0!=s&&(this._display.x=a*ct.cos(s),this._display.y=h*ct.sin(s));const u=this.get("color"),d=this.get("colorOpacity");(u||d)&&this._display.beginFill(u,d);for(let n=0==s?0:2*-c;n<2*c;n++)for(let r=0==s?0:2*-l;r<2*l;r++)if(!t||1!=(1&n)&&1!=(1&r)||1==(1&n)&&1==(1&r)){let t=r*a,s=n*h;e&&(t+=a+i/2,s+=h+i/2),this._display.drawCircle(t-o,s-o,o)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i),(u||d)&&this._display.endFill()}}ut.className="CirclePattern",ut.classNames=nt.c.classNames.concat([ut.className]);var dt=i(3035),pt=i(4429);class gt extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("checkered",!1),e=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0);let n=this.get("width",100),r=this.get("height",100),o=this.get("maxWidth",5),a=this.get("maxHeight",5);const h=this._display;let l=o+i,c=a+i,u=Math.round(n/l),d=Math.round(r/c);l=n/u,c=r/d,0!=s&&(h.x=l/2*ct.cos(s),h.y=-c/2*ct.sin(s));for(let i=0==s?0:2*-d;i<2*d;i++)for(let n=0==s?0:2*-u;n<2*u;n++)if(!t||1!=(1&i)&&1!=(1&n)||1==(1&i)&&1==(1&n)){let t=n*l,s=i*c;e&&(t+=(l-o)/2,s+=(c-a)/2),h.drawRect(t,s,o,a)}t?(n=n/2-2*i,r=r/2-2*i):(n-=i,r-=i);const p=this.get("color"),g=this.get("colorOpacity");(p||g)&&(h.beginFill(p,g),h.endFill())}}gt.className="RectanglePattern",gt.classNames=nt.c.classNames.concat([gt.className]);class ft extends nt.c{_beforeChanged(){super._beforeChanged(),this.isDirty("svgPath")&&(this._clear=!0)}_draw(){super._draw();const t=this.get("svgPath");null!=t&&this._display.svgPath(t);const e=this.get("color"),i=this.get("colorOpacity");(e||i)&&(this._display.beginFill(e,i),this._display.endFill())}}ft.className="PathPattern",ft.classNames=nt.c.classNames.concat([ft.className]);class _t extends l.JH{_afterNew(){if(super._afterNewApplyThemes(),0===this.get("patterns",[]).length){const t=this.get("color",this.root.interfaceColors.get("stroke"));this.set("patterns",[this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:1,color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,maxWidth:4,maxHeight:4,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:1,gap:6,color:t}),this.getCirclePattern({width:11,height:11,radius:2,color:t}),this.getLinePattern({width:6,height:6,rotation:90,strokeWidth:1,color:t}),this.getRectanglePattern({width:14,height:14,rotation:45,gap:4,maxWidth:6,maxHeight:6,checkered:!0,color:t}),this.getLinePattern({width:6,height:6,rotation:0,strokeWidth:1,color:t}),this.getRectanglePattern({width:15,height:15,rotation:0,gap:5,maxWidth:5,maxHeight:5,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getCirclePattern({width:20,height:20,radius:3,gap:4,checkered:!0,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:t}),this.getRectanglePattern({width:10,height:10,rotation:0,gap:1,maxWidth:9,maxHeight:9,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:0,strokeWidth:3,gap:1,color:t}),this.getLinePattern({width:1e3,height:1e3,rotation:90,strokeWidth:3,gap:1,color:t})])}this._dirty.patterns=!1}_beforeChanged(){this.isDirty("patterns")&&this.reset()}getIndex(t){const e=this.get("patterns",[]);return te.length-1?e[t-Math.floor(t*(t/e.length))]:e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0))}getLinePattern(t){return dt.y.new(this.root,t)}getRectanglePattern(t){return gt.new(this.root,t)}getCirclePattern(t){return ut.new(this.root,t)}}_t.className="PatternSet",_t.classNames=l.JH.classNames.concat([_t.className]);var mt=i(2754),yt=i(9582),vt=i(256);class wt{static parse(t,e){e=this._applyDefaults(e);try{if(N.isString(t)){let i=JSON.parse(t);return e.reverse&&N.isArray(i)&&i.reverse(),i}if(N.isArray(t)||N.isObject(t))return t;throw"Unable to parse JSON data"}catch(t){return}}static _applyDefaults(t){const e={};return t||(t={}),vt.each({reverse:!1},((i,s)=>{e[i]=t[i]||s})),e}}class bt{static parse(t,e){e=this._applyDefaults(e);let i,s,n,r=this.CSVToArray(t,e.delimiter),o=[],a=[];for(s=0;s{e[i]=t[i]||s})),e}}class xt extends l.JH{constructor(){super(...arguments),this._checkDates=!1,this._checkNumbers=!1,this._checkColors=!1,this._checkEmpty=!1,this._checkDeep=!1}_afterNew(){super._afterNew(),this._checkFeatures(),this.on("dateFields",(()=>this._checkFeatures())),this.on("dateFormat",(()=>this._checkFeatures())),this.on("numericFields",(()=>this._checkFeatures())),this.on("colorFields",(()=>this._checkFeatures())),this.on("emptyAs",(()=>this._checkFeatures()))}_checkFeatures(){(this.isDirty("dateFields")||this.isDirty("dateFormat"))&&(this._checkDates=this.get("dateFields")&&this.get("dateFields").length>0),this.isDirty("numericFields")&&(this._checkNumbers=this.get("numericFields")&&this.get("numericFields").length>0),this.isDirty("colorFields")&&(this._checkColors=this.get("colorFields")&&this.get("colorFields").length>0),this.isDirty("emptyAs")&&(this._checkEmpty=null!=this.get("emptyAs")),this._checkDeepFeatures()}_checkDeepFeatures(){const t=[];ht.each(["dateFields","numericFields","colorFields"],(e=>{ht.each(this.get(e,[]),(e=>{const i=e.split(".");for(i.pop();i.length>0;)t.push(i.join(".")),i.pop()}))})),this._checkDeep=t.length>0,this.setPrivate("deepFields",t)}processMany(t){N.isArray(t)&&(this._checkDates||this._checkNumbers||this._checkColors||this._checkEmpty)&&ht.each(t,(t=>{this.processRow(t)}))}processRow(t,e=""){vt.each(t,((i,s)=>{const n=e+i;this._checkEmpty&&(t[i]=this._maybeToEmpty(t[i])),this._checkNumbers&&(t[i]=this._maybeToNumber(n,t[i])),this._checkDates&&(t[i]=this._maybeToDate(n,t[i])),this._checkColors&&(t[i]=this._maybeToColor(n,t[i])),this._checkDeep&&-1!==this.getPrivate("deepFields",[]).indexOf(n)&&N.isObject(t[i])&&this.processRow(t[i],n+".")}))}_maybeToNumber(t,e){return-1!==this.get("numericFields").indexOf(t)?N.toNumber(e):e}_maybeToDate(t,e){return-1!==this.get("dateFields").indexOf(t)?this._root.dateFormatter.parse(e,this.get("dateFormat","")).getTime():e}_maybeToEmpty(t){return null!=t&&""!=t||null==this.get("emptyAs")?t:this.get("emptyAs")}_maybeToColor(t,e){return-1!==this.get("colorFields").indexOf(t)?O.Il.fromAny(e):e}}var Dt=i(6460),kt=i(798),Tt=i(9821),Mt=i(780),Et=i(7255),Ot=i(1195),Pt=i(4102),St=i(7049),Nt=i(6312),Ct=i(9395);function Lt(t,e,i){return new Promise(((s,n)=>{let r=null!=i&&"blob"==i.responseType,o=new XMLHttpRequest;if(o.onload=()=>{if(200===o.status){let t,i;if(r)return i=o.response,void At(i).then((t=>{let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}));t=o.responseText||o.response;let n={xhr:o,error:!1,response:t,blob:i,type:o.getResponseHeader("Content-Type"),target:e};s(n)}else n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.onerror=()=>{n({xhr:o,error:!0,type:o.getResponseHeader("Content-Type"),target:e})},o.open("GET",t,!0),i&&i.withCredentials&&(o.withCredentials=!0),null!=i){if(null!=i.requestHeaders)for(let t=0;t{const s=new FileReader;s.onload=t=>{e(s.result)},s.onerror=t=>{i(t)},s.readAsText(t)}))}var Rt=i(1926)},3100:function(t,e){"use strict";e.Z={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(t){let e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd"}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""}},9629:function(t){var e=function(t){"use strict";var e,i=Object.prototype,s=i.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",h=r.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function c(t,e,i,s){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new S(s||[]);return n(o,"_invoke",{value:M(t,i,a)}),o}function u(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d="suspendedStart",p="suspendedYield",g="executing",f="completed",_={};function m(){}function y(){}function v(){}var w={};l(w,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==i&&s.call(x,o)&&(w=x);var D=v.prototype=m.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function i(n,r,o,a){var h=u(t[n],t,r);if("throw"!==h.type){var l=h.arg,c=l.value;return c&&"object"==typeof c&&s.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,o,a)}),(function(t){i("throw",t,o,a)})):e.resolve(c).then((function(t){l.value=t,o(l)}),(function(t){return i("throw",t,o,a)}))}a(h.arg)}var r;n(this,"_invoke",{value:function(t,s){function n(){return new e((function(e,n){i(t,s,e,n)}))}return r=r?r.then(n,n):n()}})}function M(t,e,i){var s=d;return function(n,r){if(s===g)throw new Error("Generator is already running");if(s===f){if("throw"===n)throw r;return C()}for(i.method=n,i.arg=r;;){var o=i.delegate;if(o){var a=E(o,i);if(a){if(a===_)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===d)throw s=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=g;var h=u(t,e,i);if("normal"===h.type){if(s=i.done?f:p,h.arg===_)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(s=f,i.method="throw",i.arg=h.arg)}}}function E(t,i){var s=i.method,n=t.iterator[s];if(n===e)return i.delegate=null,"throw"===s&&t.iterator.return&&(i.method="return",i.arg=e,E(t,i),"throw"===i.method)||"return"!==s&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),_;var r=u(n,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,_;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,_):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,_)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var h=s.call(o,"catchLoc"),l=s.call(o,"finallyLoc");if(h&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var s=i.completion;if("throw"===s.type){var n=s.arg;P(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,s){return this.delegate={iterator:N(t),resultName:i,nextLoc:s},"next"===this.method&&(this.arg=e),_}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},8494:function(t,e,i){"use strict";i.r(e),i.d(e,{am5:function(){return f}});const s=window.Promise,n=s&&s.prototype.then,r=s&&s.prototype.catch,o=s&&s.prototype.finally,a=s&&s.reject,h=s&&s.resolve,l=s&&s.allSettled,c=s&&s.all,u=s&&s.race,d=window.fetch,p=String.prototype.startsWith,g=String.prototype.endsWith;i(9629);const f=i(5322);var _;i.p=(_=function(){if(document.currentScript)return document.currentScript;var t=document.getElementsByTagName("script");return t[t.length-1]}().src,((/(.*\/)[^\/]*$/.exec(_)||[])[1]||"./")),s&&(window.Promise=s,n&&(s.prototype.then=n),r&&(s.prototype.catch=r),o&&(s.prototype.finally=o),a&&(s.reject=a),h&&(s.resolve=h),l&&(s.allSettled=l),c&&(s.all=c),u&&(s.race=u)),d&&(window.fetch=d),p&&(String.prototype.startsWith=p),g&&(String.prototype.endsWith=g)},4138:function(t,e){"use strict";var i={value:()=>{}};function s(){for(var t,e=0,i=arguments.length,s={};e=0&&(e=t.slice(i+1),t=t.slice(0,i)),t&&!s.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),h=-1,l=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++h0)for(var i,s,n=new Array(i),r=0;r0&&i*i>s*s+n*n}function u(t,e){for(var i=0;i1e-6?(E+Math.sqrt(E*E-4*M*O))/(2*M):O/E);return{x:s+x+D*P,y:n+k+T*P,r:P}}function f(t,e,i){var s,n,r,o,a=t.x-e.x,h=t.y-e.y,l=a*a+h*h;l?(n=e.r+i.r,n*=n,o=t.r+i.r,n>(o*=o)?(s=(l+o-n)/(2*l),r=Math.sqrt(Math.max(0,o/l-s*s)),i.x=t.x-s*a-r*h,i.y=t.y-s*h+r*a):(s=(l+n-o)/(2*l),r=Math.sqrt(Math.max(0,n/l-s*s)),i.x=e.x+s*a-r*h,i.y=e.y+s*h+r*a)):(i.x=e.x+i.r,i.y=e.y)}function _(t,e){var i=t.r+e.r-1e-6,s=e.x-t.x,n=e.y-t.y;return i>0&&i*i>s*s+n*n}function m(t){var e=t._,i=t.next._,s=e.r+i.r,n=(e.x*i.r+i.x*e.r)/s,r=(e.y*i.r+i.y*e.r)/s;return n*n+r*r}function y(t){this._=t,this.next=null,this.previous=null}function v(t,e){if(!(o=(i=t,t="object"==typeof i&&"length"in i?i:Array.from(i)).length))return 0;var i,s,n,r,o,a,l,u,p,g,v,w;if((s=t[0]).x=0,s.y=0,!(o>1))return s.r;if(n=t[1],s.x=-n.r,n.x=s.r,n.y=0,!(o>2))return s.r+n.r;f(n,s,r=t[2]),s=new y(s),n=new y(n),r=new y(r),s.next=r.previous=n,n.next=s.previous=r,r.next=n.previous=s;t:for(u=3;u(t=(r*t+o)%a)/a}();return s.x=e/2,s.y=i/2,t?s.eachBefore(x(t)).eachAfter(D(h,.5,l)).eachBefore(k(1)):s.eachBefore(x(w)).eachAfter(D(n.G,1,l)).eachAfter(D(h,s.r/Math.min(e,i),l)).eachBefore(k(Math.min(e,i)/(2*s.r))),s}return l.radius=function(e){return arguments.length?(t=(0,s.j)(e),l):t},l.size=function(t){return arguments.length?(e=+t[0],i=+t[1],l):[e,i]},l.padding=function(t){return arguments.length?(h="function"==typeof t?t:(0,n.Z)(+t),l):h},l}function x(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function D(t,e,i){return function(s){if(n=s.children){var n,r,o,a=n.length,h=t(s)*e||0;if(h)for(r=0;r=0))throw new Error(`invalid digits: ${t}`);if(e>15)return a;const i=10**e;return function(t){this._+=t[0];for(let e=1,s=t.length;er)if(Math.abs(d*l-c*u)>r&&o){let g=i-a,f=n-h,_=l*l+c*c,m=g*g+f*f,y=Math.sqrt(_),v=Math.sqrt(p),w=o*Math.tan((s-Math.acos((_+p-m)/(2*y*v)))/2),b=w/v,x=w/y;Math.abs(b-1)>r&&this._append`L${t+b*u},${e+b*d}`,this._append`A${o},${o},0,0,${+(d*g>u*f)},${this._x1=t+x*l},${this._y1=e+x*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,i,a,h,l){if(t=+t,e=+e,l=!!l,(i=+i)<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(a),u=i*Math.sin(a),d=t+c,p=e+u,g=1^l,f=l?a-h:h-a;null===this._x1?this._append`M${d},${p}`:(Math.abs(this._x1-d)>r||Math.abs(this._y1-p)>r)&&this._append`L${d},${p}`,i&&(f<0&&(f=f%n+n),f>o?this._append`A${i},${i},0,1,${g},${t-c},${e-u}A${i},${i},0,1,${g},${this._x1=d},${this._y1=p}`:f>r&&this._append`A${i},${i},0,${+(f>=s)},${g},${this._x1=t+i*Math.cos(h)},${this._y1=e+i*Math.sin(h)}`)}rect(t,e,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function l(){return new h}l.prototype=h.prototype},832:function(t,e,i){"use strict";i.d(e,{Z:function(){return D}});var s=i(3141);const n=Math.abs,r=Math.atan2,o=Math.cos,a=Math.max,h=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,d=Math.PI,p=d/2,g=2*d;function f(t){return t>=1?p:t<=-1?-p:Math.asin(t)}var _=i(5987);function m(t){return t.innerRadius}function y(t){return t.outerRadius}function v(t){return t.startAngle}function w(t){return t.endAngle}function b(t){return t&&t.padAngle}function x(t,e,i,s,n,r,o){var h=t-i,l=e-s,u=(o?r:-r)/c(h*h+l*l),d=u*l,p=-u*h,g=t+d,f=e+p,_=i+d,m=s+p,y=(g+_)/2,v=(f+m)/2,w=_-g,b=m-f,x=w*w+b*b,D=n-r,k=g*m-_*f,T=(b<0?-1:1)*c(a(0,D*D*x-k*k)),M=(k*b-w*T)/x,E=(-k*w-b*T)/x,O=(k*b+w*T)/x,P=(-k*w+b*T)/x,S=M-y,N=E-v,C=O-y,L=P-v;return S*S+N*N>C*C+L*L&&(M=O,E=P),{cx:M,cy:E,x01:-d,y01:-p,x11:M*(n/D-1),y11:E*(n/D-1)}}function D(){var t=m,e=y,i=(0,s.Z)(0),a=null,D=v,k=w,T=b,M=null,E=(0,_.d)(O);function O(){var s,_,m,y=+t.apply(this,arguments),v=+e.apply(this,arguments),w=D.apply(this,arguments)-p,b=k.apply(this,arguments)-p,O=n(b-w),P=b>w;if(M||(M=s=E()),vu)if(O>g-u)M.moveTo(v*o(w),v*l(w)),M.arc(0,0,v,w,b,!P),y>u&&(M.moveTo(y*o(b),y*l(b)),M.arc(0,0,y,b,w,P));else{var S,N,C=w,L=b,A=w,R=b,U=O,B=O,F=T.apply(this,arguments)/2,I=F>u&&(a?+a.apply(this,arguments):c(y*y+v*v)),H=h(n(v-y)/2,+i.apply(this,arguments)),z=H,G=H;if(I>u){var V=f(I/y*l(F)),W=f(I/v*l(F));(U-=2*V)>u?(A+=V*=P?1:-1,R-=V):(U=0,A=R=(w+b)/2),(B-=2*W)>u?(C+=W*=P?1:-1,L-=W):(B=0,C=L=(w+b)/2)}var Y=v*o(C),j=v*l(C),X=y*o(R),$=y*l(R);if(H>u){var Z,K=v*o(L),q=v*l(L),Q=y*o(A),J=y*l(A);if(O1?0:m<-1?d:Math.acos(m))/2),rt=c(Z[0]*Z[0]+Z[1]*Z[1]);z=h(H,(y-rt)/(nt-1)),G=h(H,(v-rt)/(nt+1))}else z=G=0}B>u?G>u?(S=x(Q,J,Y,j,v,G,P),N=x(K,q,X,$,v,G,P),M.moveTo(S.cx+S.x01,S.cy+S.y01),Gu&&U>u?z>u?(S=x(X,$,K,q,y,-z,P),N=x(Y,j,Q,J,y,-z,P),M.lineTo(S.cx+S.x01,S.cy+S.y01),z=o;--a)p.point(y[a],v[a]);p.lineEnd(),p.areaEnd()}m&&(y[r]=+t(h,r,n),v[r]=+e(h,r,n),p.point(l?+l(h,r,n):y[r],i?+i(h,r,n):v[r]))}if(f)return p=null,f+""||null}function _(){return(0,o.Z)().defined(c).curve(d).context(u)}return t="function"==typeof t?t:void 0===t?h.x:(0,n.Z)(+t),e="function"==typeof e?e:void 0===e?(0,n.Z)(0):(0,n.Z)(+e),i="function"==typeof i?i:void 0===i?h.y:(0,n.Z)(+i),f.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),l=null,f):t},f.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,n.Z)(+e),f):t},f.x1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):l},f.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),i=null,f):e},f.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,n.Z)(+t),f):e},f.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:(0,n.Z)(+t),f):i},f.lineX0=f.lineY0=function(){return _().x(t).y(e)},f.lineY1=function(){return _().x(t).y(i)},f.lineX1=function(){return _().x(l).y(e)},f.defined=function(t){return arguments.length?(c="function"==typeof t?t:(0,n.Z)(!!t),f):c},f.curve=function(t){return arguments.length?(d=t,null!=u&&(p=d(u)),f):d},f.context=function(t){return arguments.length?(null==t?u=p=null:p=d(u=t),f):u},f}},8457:function(t,e,i){"use strict";function s(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}i.d(e,{Z:function(){return s}}),Array.prototype.slice},3141:function(t,e,i){"use strict";function s(t){return function(){return t}}i.d(e,{Z:function(){return s}})},964:function(t,e,i){"use strict";function s(t){this._context=t}function n(t){return new s(t)}i.d(e,{Z:function(){return n}}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},774:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var s=i(8457),n=i(3141),r=i(964),o=i(5987),a=i(6758);function h(t,e){var i=(0,n.Z)(!0),h=null,l=r.Z,c=null,u=(0,o.d)(d);function d(n){var r,o,a,d=(n=(0,s.Z)(n)).length,p=!1;for(null==h&&(c=l(a=u())),r=0;r<=d;++r)!(r=0))throw new RangeError(`invalid digits: ${i}`);e=t}return t},()=>new s.y$(e)}},6758:function(t,e,i){"use strict";function s(t){return t[0]}function n(t){return t[1]}i.d(e,{x:function(){return s},y:function(){return n}})},7738:function(t,e,i){"use strict";i.d(e,{B7:function(){return _},HT:function(){return m},zO:function(){return g}});var s,n,r=0,o=0,a=0,h=1e3,l=0,c=0,u=0,d="object"==typeof performance&&performance.now?performance:Date,p="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return c||(p(f),c=d.now()+u)}function f(){c=0}function _(){this._call=this._time=this._next=null}function m(t,e,i){var s=new _;return s.restart(t,e,i),s}function y(){c=(l=d.now())+u,r=o=0;try{!function(){g(),++r;for(var t,e=s;e;)(t=c-e._time)>=0&&e._call.call(void 0,t),e=e._next;--r}()}finally{r=0,function(){for(var t,e,i=s,r=1/0;i;)i._call?(r>i._time&&(r=i._time),t=i,i=i._next):(e=i._next,i._next=null,i=t?t._next=e:s=e);n=t,w(r)}(),c=0}}function v(){var t=d.now(),e=t-l;e>h&&(u-=e,l=t)}function w(t){r||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(y,t-d.now()-u)),a&&(a=clearInterval(a))):(a||(l=d.now(),a=setInterval(v,h)),r=1,p(y)))}_.prototype=m.prototype={constructor:_,restart:function(t,e,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?g():+i)+(null==e?0:+e),this._next||n===this||(n?n._next=this:s=this,n=this),this._call=t,this._time=i,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}}},7896:function(t,e,i){"use strict";function s(){}function n(t){return null==t?s:function(){return this.querySelector(t)}}function r(){return[]}function o(t){return null==t?r:function(){return this.querySelectorAll(t)}}function a(t){return function(){return this.matches(t)}}function h(t){return function(e){return e.matches(t)}}var l=Array.prototype.find;function c(){return this.firstElementChild}var u=Array.prototype.filter;function d(){return Array.from(this.children)}function p(t){return new Array(t.length)}function g(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function f(t,e,i,s,n,r){for(var o,a=0,h=e.length,l=r.length;ae?1:t>=e?0:NaN}g.prototype={constructor:g,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var w="http://www.w3.org/1999/xhtml",b={svg:"http://www.w3.org/2000/svg",xhtml:w,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function x(t){var e=t+="",i=e.indexOf(":");return i>=0&&"xmlns"!==(e=t.slice(0,i))&&(t=t.slice(i+1)),b.hasOwnProperty(e)?{space:b[e],local:t}:t}function D(t){return function(){this.removeAttribute(t)}}function k(t){return function(){this.removeAttributeNS(t.space,t.local)}}function T(t,e){return function(){this.setAttribute(t,e)}}function M(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function O(t,e){return function(){var i=e.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function P(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function S(t){return function(){this.style.removeProperty(t)}}function N(t,e,i){return function(){this.style.setProperty(t,e,i)}}function C(t,e,i){return function(){var s=e.apply(this,arguments);null==s?this.style.removeProperty(t):this.style.setProperty(t,s,i)}}function L(t,e){return t.style.getPropertyValue(e)||P(t).getComputedStyle(t,null).getPropertyValue(e)}function A(t){return function(){delete this[t]}}function R(t,e){return function(){this[t]=e}}function U(t,e){return function(){var i=e.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function B(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new I(t)}function I(t){this._node=t,this._names=B(t.getAttribute("class")||"")}function H(t,e){for(var i=F(t),s=-1,n=e.length;++s=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ut=[null];function dt(t,e){this._groups=t,this._parents=e}function pt(){return new dt([[document.documentElement]],ut)}dt.prototype=pt.prototype={constructor:dt,select:function(t){"function"!=typeof t&&(t=n(t));for(var e=this._groups,i=e.length,s=new Array(i),r=0;r=T&&(T=k+1);!(D=b[T])&&++T=0;)(s=n[r])&&(o&&4^s.compareDocumentPosition(o)&&o.parentNode.insertBefore(s,o),o=s);return this},sort:function(t){function e(e,i){return e&&i?t(e.__data__,i.__data__):!e-!i}t||(t=v);for(var i=this._groups,s=i.length,n=new Array(s),r=0;r1?this.each((null==e?S:"function"==typeof e?C:N)(t,e,null==i?"":i)):L(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?A:"function"==typeof e?U:R)(t,e)):this.node()[t]},classed:function(t,e){var i=B(t+"");if(arguments.length<2){for(var s=F(this.node()),n=-1,r=i.length;++n=0&&(e=t.slice(i+1),t=t.slice(0,i)),{type:t,name:e}}))}(t+""),o=r.length;if(!(arguments.length<2)){for(a=e?at:ot,s=0;s{s.stop(),t(i+e)}),e,i),s}var yt=(0,ft.Z)("start","end","cancel","interrupt"),vt=[],wt=0,bt=3;function xt(t,e,i,s,n,r){var o=t.__transition;if(o){if(i in o)return}else t.__transition={};!function(t,e,i){var s,n=t.__transition;function r(h){var l,c,u,d;if(1!==i.state)return a();for(l in n)if((d=n[l]).name===i.name){if(d.state===bt)return mt(r);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[l]):+lwt)throw new Error("too late; already scheduled");return i}function kt(t,e){var i=Tt(t,e);if(i.state>bt)throw new Error("too late; already running");return i}function Tt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Mt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Et,Ot=180/Math.PI,Pt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function St(t,e,i,s,n,r){var o,a,h;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(h=t*i+e*s)&&(i-=t*h,s-=e*h),(a=Math.sqrt(i*i+s*s))&&(i/=a,s/=a,h/=a),t*s180?e+=360:e-t>180&&(t+=360),r.push({i:i.push(n(i)+"rotate(",null,s)-2,x:Mt(t,e)})):e&&i.push(n(i)+"rotate("+e+s)}(r.rotate,o.rotate,a,h),function(t,e,i,r){t!==e?r.push({i:i.push(n(i)+"skewX(",null,s)-2,x:Mt(t,e)}):e&&i.push(n(i)+"skewX("+e+s)}(r.skewX,o.skewX,a,h),function(t,e,i,s,r,o){if(t!==i||e!==s){var a=r.push(n(r)+"scale(",null,",",null,")");o.push({i:a-4,x:Mt(t,i)},{i:a-2,x:Mt(e,s)})}else 1===i&&1===s||r.push(n(r)+"scale("+i+","+s+")")}(r.scaleX,r.scaleY,o.scaleX,o.scaleY,a,h),r=o=null,function(t){for(var e,i=-1,s=h.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===i?se(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===i?se(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jt.exec(t))?new re(e[1],e[2],e[3],1):(e=Xt.exec(t))?new re(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$t.exec(t))?se(e[1],e[2],e[3],e[4]):(e=Zt.exec(t))?se(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Kt.exec(t))?ue(e[1],e[2]/100,e[3]/100,1):(e=qt.exec(t))?ue(e[1],e[2]/100,e[3]/100,e[4]):Qt.hasOwnProperty(t)?ie(Qt[t]):"transparent"===t?new re(NaN,NaN,NaN,0):null}function ie(t){return new re(t>>16&255,t>>8&255,255&t,1)}function se(t,e,i,s){return s<=0&&(t=e=i=NaN),new re(t,e,i,s)}function ne(t,e,i,s){return 1===arguments.length?((n=t)instanceof It||(n=ee(n)),n?new re((n=n.rgb()).r,n.g,n.b,n.opacity):new re):new re(t,e,i,null==s?1:s);var n}function re(t,e,i,s){this.r=+t,this.g=+e,this.b=+i,this.opacity=+s}function oe(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}`}function ae(){const t=he(this.opacity);return`${1===t?"rgb(":"rgba("}${le(this.r)}, ${le(this.g)}, ${le(this.b)}${1===t?")":`, ${t})`}`}function he(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function le(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ce(t){return((t=le(t))<16?"0":"")+t.toString(16)}function ue(t,e,i,s){return s<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new pe(t,e,i,s)}function de(t){if(t instanceof pe)return new pe(t.h,t.s,t.l,t.opacity);if(t instanceof It||(t=ee(t)),!t)return new pe;if(t instanceof pe)return t;var e=(t=t.rgb()).r/255,i=t.g/255,s=t.b/255,n=Math.min(e,i,s),r=Math.max(e,i,s),o=NaN,a=r-n,h=(r+n)/2;return a?(o=e===r?(i-s)/a+6*(i0&&h<1?0:o,new pe(o,a,h,t.opacity)}function pe(t,e,i,s){this.h=+t,this.s=+e,this.l=+i,this.opacity=+s}function ge(t){return(t=(t||0)%360)<0?t+360:t}function fe(t){return Math.max(0,Math.min(1,t||0))}function _e(t,e,i){return 255*(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)}function me(t,e,i,s,n){var r=t*t,o=r*t;return((1-3*t+3*r-o)*e+(4-6*r+3*o)*i+(1+3*t+3*r-3*o)*s+o*n)/6}Bt(It,ee,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jt,formatHex:Jt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return de(this).formatHsl()},formatRgb:te,toString:te}),Bt(re,ne,Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new re(le(this.r),le(this.g),le(this.b),he(this.opacity))},displayable(){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:oe,formatHex:oe,formatHex8:function(){return`#${ce(this.r)}${ce(this.g)}${ce(this.b)}${ce(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ae,toString:ae})),Bt(pe,(function(t,e,i,s){return 1===arguments.length?de(t):new pe(t,e,i,null==s?1:s)}),Ft(It,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new pe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ht:Math.pow(Ht,t),new pe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*e,n=2*i-s;return new re(_e(t>=240?t-240:t+120,n,s),_e(t,n,s),_e(t<120?t+240:t-120,n,s),this.opacity)},clamp(){return new pe(ge(this.h),fe(this.s),fe(this.l),he(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=he(this.opacity);return`${1===t?"hsl(":"hsla("}${ge(this.h)}, ${100*fe(this.s)}%, ${100*fe(this.l)}%${1===t?")":`, ${t})`}`}}));var ye=t=>()=>t;function ve(t,e){var i=e-t;return i?function(t,e){return function(i){return t+i*e}}(t,i):ye(isNaN(t)?e:t)}var we=function t(e){var i=function(t){return 1==(t=+t)?ve:function(e,i){return i-e?function(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(s){return Math.pow(t+s*e,i)}}(e,i,t):ye(isNaN(e)?i:e)}}(e);function s(t,e){var s=i((t=ne(t)).r,(e=ne(e)).r),n=i(t.g,e.g),r=i(t.b,e.b),o=ve(t.opacity,e.opacity);return function(e){return t.r=s(e),t.g=n(e),t.b=r(e),t.opacity=o(e),t+""}}return s.gamma=t,s}(1);function be(t){return function(e){var i,s,n=e.length,r=new Array(n),o=new Array(n),a=new Array(n);for(i=0;i=1?(i=1,e-1):Math.floor(i*e),n=t[s],r=t[s+1],o=s>0?t[s-1]:2*n-r,a=sr&&(n=e.slice(r,n),a[o]?a[o]+=n:a[++o]=n),(i=i[0])===(s=s[0])?a[o]?a[o]+=s:a[++o]=s:(a[++o]=null,h.push({i:o,x:Mt(i,s)})),r=De.lastIndex;return r=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Dt:kt;return function(){var o=r(this,t),a=o.on;a!==s&&(n=(s=a).copy()).on(e,i),o.on=n}}(i,t,e))},attr:function(t,e){var i=x(t),s="transform"===i?Lt:Te;return this.attrTween(t,"function"==typeof e?(i.local?Ne:Se)(i,s,Ut(this,"attr."+t,e)):null==e?(i.local?Ee:Me)(i):(i.local?Pe:Oe)(i,s,e))},attrTween:function(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;var s=x(t);return this.tween(i,(s.local?Ce:Le)(s,e))},style:function(t,e,i){var s="transform"==(t+="")?Ct:Te;return null==e?this.styleTween(t,function(t,e){var i,s,n;return function(){var r=L(this,t),o=(this.style.removeProperty(t),L(this,t));return r===o?null:r===i&&o===s?n:n=e(i=r,s=o)}}(t,s)).on("end.style."+t,Ie(t)):"function"==typeof e?this.styleTween(t,function(t,e,i){var s,n,r;return function(){var o=L(this,t),a=i(this),h=a+"";return null==a&&(this.style.removeProperty(t),h=a=L(this,t)),o===h?null:o===s&&h===n?r:(n=h,r=e(s=o,a))}}(t,s,Ut(this,"style."+t,e))).each(function(t,e){var i,s,n,r,o="style."+e,a="end."+o;return function(){var h=kt(this,t),l=h.on,c=null==h.value[o]?r||(r=Ie(e)):void 0;l===i&&n===c||(s=(i=l).copy()).on(a,n=c),h.on=s}}(this._id,t)):this.styleTween(t,function(t,e,i){var s,n,r=i+"";return function(){var o=L(this,t);return o===r?null:o===s?n:n=e(s=o,i)}}(t,s,e),i).on("end.style."+t,null)},styleTween:function(t,e,i){var s="style."+(t+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(null==e)return this.tween(s,null);if("function"!=typeof e)throw new Error;return this.tween(s,function(t,e,i){var s,n;function r(){var r=e.apply(this,arguments);return r!==n&&(s=(n=r)&&function(t,e,i){return function(s){this.style.setProperty(t,e.call(this,s),i)}}(t,r,i)),s}return r._value=e,r}(t,e,null==i?"":i))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ut(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,i;function s(){var s=t.apply(this,arguments);return s!==i&&(e=(i=s)&&function(t){return function(e){this.textContent=t.call(this,e)}}(s)),e}return s._value=t,s}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var i=this._id;if(t+="",arguments.length<2){for(var s,n=Tt(this.node(),i).tween,r=0,o=n.length;r2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete r[n]):o=!1;o&&delete t.__transition}}(this,t)}))},gt.prototype.transition=function(t){var e,i;t instanceof ze?(e=t._id,t=t._name):(e=Ge(),(i=We).time=(0,_t.zO)(),t=null==t?null:t+"");for(var s=this._groups,n=s.length,r=0;r=n)&&Object.keys(a.O).every((function(t){return a.O[t](i[h])}))?i.splice(h--,1):(o=!1,n0&&t[c-1][2]>n;c--)t[c]=t[c-1];t[c]=[i,s,n]},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},i=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(t,s){if(1&s&&(t=this(t)),8&s)return t;if("object"==typeof t&&t){if(4&s&&t.__esModule)return t;if(16&s&&"function"==typeof t.then)return t}var n=Object.create(null);a.r(n);var r={};e=e||[null,i({}),i([]),i(i)];for(var o=2&s&&t;"object"==typeof o&&!~e.indexOf(o);o=i(o))Object.getOwnPropertyNames(o).forEach((function(e){r[e]=function(){return t[e]}}));return r.default=function(){return t},a.d(n,r),n},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,i){return a.f[i](t,e),e}),[]))},a.u=function(t){return"deps/"+{643:"pdfmake",4297:"xlsx",4384:"markerjs2"}[t]+".js"},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s={},n="@amcharts/amcharts5:",a.l=function(t,e,i,r){if(s[t])s[t].push(e);else{var o,h;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c{this.zoomOut()})),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",e);const a=this.plotContainer;a.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),a.children.push(this.topGridContainer),a.children.push(this.bulletsContainer),a.set("interactive",!0),a.set("interactiveChildren",!1),a.set("background",o.A.new(t,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(a.events.on("pointerdown",(t=>{this._handlePlotDown(t)}))),this._disposers.push(a.events.on("globalpointerup",(t=>{this._handlePlotUp(t)}))),this._disposers.push(a.events.on("globalpointermove",(t=>{this._handlePlotMove(t)}))),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(t){t._unstack(),t._posXDp&&t._posXDp.dispose(),t._posYDp&&t._posYDp.dispose(),t.set("baseAxis",void 0);const e=t.get("xAxis");e&&(g.remove(e.series,t),e.markDirtyExtremes());const i=t.get("yAxis");i&&(g.remove(i.series,t),i.markDirtyExtremes());const s=this.get("cursor");if(s){const e=s.get("snapToSeries");e&&g.remove(e,t)}super._removeSeries(t)}_applyThemes(t=!1){const e=this.get("colors");return e&&e.reset(),super._applyThemes(t)}handleWheel(t){const e=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=t.originalEvent;let o=!1;if(!p.isLocalEvent(a,this))return;o=!0;const n=s.toLocal(t.point),r=this.get("wheelStep",.2),h=a.deltaY/100,l=a.deltaX/100,d=this.get("wheelZoomPositionX"),g=this.get("wheelZoomPositionY");"zoomX"!==e&&"zoomXY"!==e||0==l||this.xAxes.each((t=>{if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let h=t.get("maxDeviation",0),g=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomX")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.x/s.width());null!=d&&(a=d);let l=t.get("maxDeviation",0),g=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));g==e&&c==i&&(o=!1),1/(c-g){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let h=t.get("maxDeviation",0),d=Math.min(1+h,Math.max(-h,e-r*(i-e)*l*a)),c=Math.max(-h,Math.min(1+h,i+r*(i-e)*l*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("zoomY")){let e=t.get("start"),i=t.get("end"),a=t.fixPosition(n.y/s.height());null!=g&&(a=g);let l=t.get("maxDeviation",0),d=Math.min(1+l,Math.max(-l,e-r*(i-e)*h*a)),c=Math.max(-l,Math.min(1+l,i+r*(i-e)*h*(1-a)));d==e&&c==i&&(o=!1),1/(c-d){if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panX"!==i&&"panXY"!==i||0==h||this.xAxes.each((t=>{if(t.get("panX")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e+s,n=i+s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==e&&"panXY"!==e||0==l||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*l,a=e+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),"panY"!==i&&"panXY"!==i||0==h||this.yAxes.each((t=>{if(t.get("panY")){let e=t.get("start"),i=t.get("end"),s=this._getWheelSign(t)*r*(i-e)*h,a=e-s,n=i-s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==e&&n==i&&(o=!1),this._handleWheelAnimation(t.zoom(a,n))}})),o&&a.preventDefault()}_handleSetWheel(){const t=this.get("wheelX"),e=this.get("wheelY"),i=this.plotContainer;"none"!==t||"none"!==e?(this._wheelDp=i.events.on("wheel",(i=>{const s=i.originalEvent;("none"!==t&&0!=Math.abs(s.deltaX)||"none"!==e&&0!=Math.abs(s.deltaY))&&this.handleWheel(i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(t){let e=1;return t.get("renderer").get("inversed")&&(e=-1),e}_fixWheel(t,e){const i=e-t;return t<0&&(e=(t=0)+i),e>1&&(t=(e=1)-i),[t,e]}_handlePlotDown(t){const e=t.originalEvent;if(2==e.button)return;const i=this.plotContainer;let s=i.toLocal(t.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&e.pointerId&&m.keys(i._downPoints).length>0){const t=this.xAxes.getIndex(0),e=this.yAxes.getIndex(0);t&&(this._downStartX=t.get("start",0),this._downEndX=t.get("end",1)),e&&(this._downStartY=e.get("start",0),this._downEndY=e.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:e.clientX,y:e.clientY};const i=this.get("panX"),s=this.get("panY");i&&this.xAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")})),s&&this.yAxes.each((t=>{t._panStart=t.get("start"),t._panEnd=t.get("end")}));const a="panstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:t.originalEvent})}}_handleWheelAnimation(t){t?t.events.on("stopped",(()=>{this._dispatchWheelAnimation()})):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const t="wheelended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}_handlePlotUp(t){const e=this._downPoint;if(e&&(this.get("panX")||this.get("panY"))){if(t.originalEvent.clientX==e.x&&t.originalEvent.clientY==e.y){const e="pancancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:t.originalEvent})}this._downPoint=void 0,this.xAxes.each((t=>{t._isPanning=!1})),this.yAxes.each((t=>{t._isPanning=!1}))}_handlePlotMove(t){const e=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const i=t.originalEvent.pointerId;if(i&&(this._movePoints[i]=t.point,m.keys(e._downPoints).length>1))return void this._handlePinch()}let i=this._downPoint;if(i){i=e.toLocal(this._root.documentPointToRoot(i));let s=e.toLocal(t.point);const a=this.get("panX"),o=this.get("panY");if(a){let t=this.get("scrollbarX");t&&t.events.disableType("rangechanged"),this.xAxes.each((t=>{if(t.get("panX")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.x-s.x)/e.width();t.get("renderer").get("inversed")&&(n*=-1);let r=a+n,h=o+n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}if(o){let t=this.get("scrollbarY");t&&t.events.disableType("rangechanged"),this.yAxes.each((t=>{if(t.get("panY")){t._isPanning=!0;let a=t._panStart,o=t._panEnd,n=(o-a)*(i.y-s.y)/e.height();t.get("renderer").get("inversed")&&(n*=-1);let r=a-n,h=o-n;h-r<1+2*t.get("maxDeviation",1)&&(t.set("start",r),t.set("end",h))}})),t&&t.events.enableType("rangechanged")}}}_handlePinch(){const t=this.plotContainer;let e=0,i=[],s=[];if(m.each(t._downPoints,((t,a)=>{i[e]=a;let o=this._movePoints[t];o&&(s[e]=o),e++})),i.length>1&&s.length>1){const e=t.width(),a=t.height();let o=i[0],n=i[1],r=s[0],h=s[1];if(o&&n&&r&&h){if(r=t.toLocal(r),h=t.toLocal(h),o=t.toLocal(o),n=t.toLocal(n),this.get("pinchZoomX")){const t=this._downStartX,i=this._downEndX;if(null!=t&&null!=i){o.x>n.x&&([o,n]=[n,o],[r,h]=[h,r]);let s=t+o.x/e*(i-t),a=t+n.x/e*(i-t),l=t+r.x/e*(i-t),d=t+h.x/e*(i-t),g=Math.max(.001,a-s)/Math.max(.001,d-l),c=t*g+s-l*g,u=i*g+a-d*g;this.xAxes.each((t=>{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}if(this.get("pinchZoomY")){const t=this._downStartY,e=this._downEndY;if(null!=t&&null!=e){o.y{let e=t.fixPosition(c),i=t.fixPosition(u);t.zoom(e,i,0)}))}}}}}_handleCursorPosition(){const t=this.get("cursor");if(t){const e=t.getPrivate("point");let i=t.get("snapToSeries");if(t._downPoint&&(i=void 0),i&&e){const s=t.get("snapToSeriesBy"),a=[];g.each(i,(t=>{if(!t.isHidden()&&!t.isHiding())if("x!"!=s&&"y!"!=s){const e=t.startIndex(),i=t.endIndex();for(let s=e;s{const i=t.get("point");if(i){let a=0;a="x"==s||"x!"==s?Math.abs(e.x-i.x):"y"==s||"y!"==s?Math.abs(e.y-i.y):Math.hypot(e.x-i.x,e.y-i.y),a{const e=t.get("tooltip");e&&e._setDataItem(void 0)})),o){let e=o.component;e.showDataItemTooltip(o),e.setRaw("tooltipDataItem",o);const i=o.get("point");i&&t.handleMove(e.toGlobal({x:i.x-e.x(),y:i.y-e.y()}),!0)}}}}_updateCursor(){let t=this.get("cursor");t&&t.updateCursor()}_addCursor(t){this.plotContainer.children.push(t)}_prepareChildren(){if(super._prepareChildren(),this.series.each((t=>{this._colorize(t)})),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const t=this._prevSettings.cursor,e=this.get("cursor");e!==t&&(this._disposeProperty("cursor"),t&&t.dispose(),e&&(e._setChart(this),this._addCursor(e),this._pushPropertyDisposer("cursor",e.events.on("selectended",(()=>{this._handleCursorSelectEnd()})))),this._prevSettings.cursor=e)}if(this.isDirty("scrollbarX")){const t=this._prevSettings.scrollbarX,e=this.get("scrollbarX");e!==t&&(this._disposeProperty("scrollbarX"),t&&t.dispose(),e&&(e.parent||this.topAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarX",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.xAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarX",e.events.on("released",(()=>{this.xAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.xAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarX=e)}if(this.isDirty("scrollbarY")){const t=this._prevSettings.scrollbarY,e=this.get("scrollbarY");e!==t&&(this._disposeProperty("scrollbarY"),t&&t.dispose(),e&&(e.parent||this.rightAxesContainer.children.push(e),this._pushPropertyDisposer("scrollbarY",e.events.on("rangechanged",(t=>{this._handleScrollbar(this.yAxes,t.start,t.end,t.grip)}))),this._pushPropertyDisposer("scrollbarY",e.events.on("released",(()=>{this.yAxes.each((t=>{t.get("zoomable")&&this._handleAxisSelection(t)}))}))),e.setPrivate("positionTextFunction",(t=>{const e=this.yAxes.getIndex(0);return e&&e.getTooltipText(t,!1)||""}))),this._prevSettings.scrollbarY=e)}this._handleZoomOut()}_processSeries(t){super._processSeries(t);const e=t.get("xAxis"),i=t.get("yAxis");g.move(e.series,t),g.move(i.series,t),t._posXDp=t.addDisposer(e.events.on("positionchanged",(()=>{t._fixPosition()}))),t._posXDp=t.addDisposer(i.events.on("positionchanged",(()=>{t._fixPosition()}))),t.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?t.set("baseAxis",i):t.set("baseAxis",e)),t.get("stacked")&&(t._markDirtyKey("stacked"),g.each(t.dataItems,(t=>{t.set("stackToItemY",void 0),t.set("stackToItemX",void 0)}))),t._markDirtyAxes(),i.markDirtyExtremes(),e.markDirtyExtremes(),e._seriesAdded=!0,i._seriesAdded=!0,this._colorize(t)}_colorize(t){const e=this.get("colors");if(e&&null==t.get("fill")){const i=e.next();t._setSoft("stroke",i),t._setSoft("fill",i)}const i=this.get("patterns");if(i&&null==t.get("fillPattern")){const e=i.next();t._setSoft("fillPattern",e)}}_handleCursorSelectEnd(){const t=this.get("cursor"),e=t.get("behavior"),i=t.getPrivate("downPositionX",0),s=t.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,t.getPrivate("positionX",.5))),o=Math.min(1,Math.max(0,t.getPrivate("positionY",.5)));this.xAxes.each((t=>{if("zoomX"===e||"zoomXY"===e){let e=t.toAxisPosition(i),s=t.toAxisPosition(a);t.zoom(e,s)}t.setPrivate("updateScrollbar",!0)})),this.yAxes.each((t=>{if("zoomY"===e||"zoomXY"===e){let e=t.toAxisPosition(s),i=t.toAxisPosition(o);t.zoom(e,i)}t.setPrivate("updateScrollbar",!0)}))}_handleScrollbar(t,e,i,s){t.each((t=>{let a=t.fixPosition(e),o=t.fixPosition(i),n=t.zoom(a,o,void 0,s);const r="updateScrollbar";t.setPrivateRaw(r,!1),n?n.events.on("stopped",(()=>{t.setPrivateRaw(r,!0)})):t.setPrivateRaw(r,!0)}))}_processAxis(t,e){return t.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxis(t)}));else if("push"===t.type)e.children.push(t.newValue),t.newValue.processChart(this);else if("setIndex"===t.type)e.children.setIndex(t.index,t.newValue),t.newValue.processChart(this);else if("insertIndex"===t.type)e.children.insertIndex(t.index,t.newValue),t.newValue.processChart(this);else if("removeIndex"===t.type)this._removeAxis(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");e.children.moveValue(t.value,t.newIndex),t.value.processChart(this)}}))}_removeAxis(t){if(!t.isDisposed()){const e=t.parent;e&&e.children.removeValue(t);const i=t.gridContainer,s=i.parent;s&&s.children.removeValue(i);const a=t.topGridContainer,o=a.parent;o&&o.children.removeValue(a)}}_updateChartLayout(){const t=this.leftAxesContainer.width(),e=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",t),i.set("paddingRight",e);const s=this.topAxesContainer;s.set("paddingLeft",t),s.set("paddingRight",e)}processAxis(t){this.get("cursor")&&(this.addDisposer(t.on("start",(()=>{this._updateCursor()}))),this.addDisposer(t.on("end",(()=>{this._updateCursor()}))))}_handleAxisSelection(t,e){let i=t.fixPosition(t.get("start",0)),s=t.fixPosition(t.get("end",1));if(i>s&&([i,s]=[s,i]),-1!=this.xAxes.indexOf(t)){if(e||t.getPrivate("updateScrollbar")){let t=this.get("scrollbarX");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}}else if(-1!=this.yAxes.indexOf(t)&&(e||t.getPrivate("updateScrollbar"))){let t=this.get("scrollbarY");!t||t.getPrivate("isBusy")&&!e||(t.setRaw("start",i),t.setRaw("end",s),t.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let t=this.zoomOutButton;if(t&&t.parent){let e=!1;this.xAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(0==_.round(t.get("start",0),5)&&1==_.round(t.get("end",1),5)||(e=!0))})),e?t.isHidden()&&t.show():t.hide()}}inPlot(t){const e=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=e.toGlobal(t);if(t.x>=-.5&&t.y>=-.5&&t.x<=e.width()+.5&&t.y<=e.height()+.5)return!0;if(i)for(let t=i.length-1;t>=0;t--){const e=i[t];if(e!=this){const t=e.plotContainer,i=this._root.rootPointToDocument(s),a=e._root.documentPointToRoot(i),o=t.toLocal(a);if(o.x>=-.1&&o.y>=-.1&&o.x<=t.width()+.1&&o.y<=t.height()+.1)return!0}}return!1}arrangeTooltips(){const t=this.plotContainer,e=t.width(),i=t.height();let s=this.height();const a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let o=t._display.toGlobal({x:0,y:0}),n=t._display.toGlobal({x:e,y:i});const r=[];let l,d,m=0,p=1/0,_=this._movePoint,x=this.get("maxTooltipDistance"),v=this.get("maxTooltipDistanceBy","xy");c.isNumber(x)&&this.series.each((t=>{if(!t.isHidden()){const e=t.get("tooltip");if(e){let i=e.get("pointTo");if(i){let e=Math.hypot(_.x-i.x,_.y-i.y);"x"==v?e=Math.abs(_.x-i.x):"y"==v&&(e=Math.abs(_.y-i.y)),e{const e=t.get("tooltip");if(e&&!e.get("forceHidden")){let i=!1,s=e.get("pointTo");if(s){if(x>=0){let s=e.get("pointTo");if(s&&d&&t!=l){let t=Math.hypot(d.x-s.x,d.y-s.y);"x"==v?t=Math.abs(d.x-s.x):"y"==v&&(t=Math.abs(d.y-s.y)),t>x&&(i=!0)}}else-1==x&&t!=l&&(i=!0);this.inPlot(this._tooltipToLocal(s))&&e.dataItem?i||(m+=s.y):i=!0,i||t.isHidden()||t.isHiding()?e.hide(0):(e.show(),r.push(e),y.push(t))}}})),this.setPrivate("tooltipSeries",y),this.get("arrangeTooltips")){let t=0,e=0;const a=this._root.tooltipContainer,l=r.length;if(m/l>i/2+o.y){r.sort(((t,e)=>u.HO(e.get("pointTo").y,t.get("pointTo").y)));let i=n.y;if(g.each(r,(s=>{let r=s.height();e++,t+=r;let l=s.get("centerY");l instanceof h.gG&&(r*=l.value),r+=s.get("marginBottom",0),s.set("bounds",{left:o.x,top:o.y,right:n.x,bottom:i}),s.setPrivate("customData",{left:o.x,top:o.y,right:n.x,bottom:i}),i=Math.min(i-r,s._fy-r),s.parent==a&&a.children.moveValue(s,0)})),i<0){r.reverse();let t=i;g.each(r,(s=>{e++;let a=s.get("bounds");if(a){let e=a.top-i,o=a.bottom-i;eu.HO(t.get("pointTo").y,e.get("pointTo").y)));let i=0;if(g.each(r,(r=>{e++;let l=r.height();t+=l;let d=r.get("centerY");d instanceof h.gG&&(l*=d.value),l+=r.get("marginBottom",0),r.set("bounds",{left:o.x,top:i,right:n.x,bottom:Math.max(o.y+s,i+l)}),r.parent==a&&a.children.moveValue(r,0),i=Math.max(i+l,r._fy+l)})),i>s){r.reverse();let t=s;g.each(r,(a=>{e++;let o=a.get("bounds");if(o){let e=o.top-(s-i),n=o.bottom-(s-i);n>t&&(n=t,e=n-a.height()),a.set("bounds",{left:o.left,top:e,right:o.right,bottom:n}),t=n-a.height()-a.get("marginBottom",0)}}))}}0==t&&e>0&&this._disposers.push(this.root.events.once("frameended",(()=>{this.arrangeTooltips()})))}}_tooltipToLocal(t){return this.plotContainer.toLocal(t)}zoomOut(){this.xAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))})),this.yAxes.each((t=>{t.get("zoomOut",!0)&&(t.setPrivate("updateScrollbar",!0),t.zoom(0,1))}))}_dispose(){super._dispose();const t=this.get("cursor");t&&t.dispose()}}x.className="XYChart",x.classNames=n.j.classNames.concat([x.className])},55:function(t,e,i){i.d(e,{l:function(){return u}});var s=i(3409),a=i(6245),o=i(1112),n=i(2754),r=i(3783),h=i(1926),l=i(5040),d=i(751),g=i(256),c=i(5071);class u extends s.Q{setupDefaultRules(){super.setupDefaultRules();const t=this._root.interfaceColors,e=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:n.U.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:o.Il.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:n.U.new(this._root,{saturation:0})});{const e=i("Graphics",["scrollbar","overlay"]);e.setAll({fillOpacity:.5}),(0,r.v)(e,"fill",t,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:a.AQ,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:a.AQ}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:a.AQ}),i("AxisLabel",["y"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:a.AQ}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const s=i("Grid",["cursor","x"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use left and right arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const s=i("Grid",["cursor","y"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:e.translate("Use up and down arrows to move selection")}),(0,r.v)(s,"stroke",t,"alternativeBackground")}{const e=i("Graphics",["cursor","selection"]);e.setAll({fillOpacity:.15}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:a.CI,centerY:a.CI,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const e=i("AxisRenderer");e.setAll({crisp:!0,strokeOpacity:0}),(0,r.v)(e,"stroke",t,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:a.AQ}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:a.AQ});{const e=i("Rectangle",["axis","thumb","zoomgrip"]);e.setAll({fillOpacity:0}),(0,r.v)(e,"fill",t,"alternativeBackground"),e.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{const e=i("Grid");e.setAll({location:0,strokeOpacity:.15,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}{const e=i("Grid",["minor"]);e.setAll({location:0,strokeOpacity:.07,crisp:!0}),(0,r.v)(e,"stroke",t,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{const e=i("Graphics",["axis","fill"]);e.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),(0,r.v)(e,"fill",t,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{const e=i("AxisTick");e.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),(0,r.v)(e,"stroke",t,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(t,e)=>{const i=t.get("axisFill");i&&(l.isNumber(e)&&e%2!=0?i.setPrivate("visible",!1):i.setPrivate("visible",!0))}});const s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],u={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_hour"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month"),year:e.translate("_date_year")},m={millisecond:e.translate("_date_millisecond"),second:e.translate("_date_second"),minute:e.translate("_date_minute"),hour:e.translate("_date_day"),day:e.translate("_date_day"),week:e.translate("_date_day"),month:e.translate("_date_month")+" "+e.translate("_date_year"),year:e.translate("_date_year")},p={millisecond:e.translate("_date_millisecond_full"),second:e.translate("_date_second_full"),minute:e.translate("_date_minute_full"),hour:e.translate("_date_hour_full"),day:e.translate("_date_day_full"),week:e.translate("_date_week_full"),month:e.translate("_date_month_full"),year:e.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:c.copy(s),dateFormats:g.copy(u),periodChangeDateFormats:g.copy(m),tooltipDateFormats:p,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=t.get("endValue"),o=i.intervalDuration(),n=i.getPrivate("baseInterval"),r=i.getPrivate("gridInterval",n);let l=i.getPrivate("min",0);if(l=h.round(new Date(l),r.timeUnit,r.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),null!=s&&null!=a){const t=Math.round(Math.round((s-l)/o))/2;t==Math.round(t)?e.setPrivate("visible",!0):e.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.get("index");let s=!1;l.isNumber(i)&&i%2!=0||(s=!0),e.setPrivate("visible",s)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:t=>{const e=t.get("axisFill");if(e){const i=t.component,s=t.get("value"),a=i.getPrivate("step");l.isNumber(s)&&l.isNumber(a)&&(d.round(s/a/2,5)==Math.round(s/a/2)?e.setPrivate("visible",!1):e.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(70),height:(0,a.aQ)(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,e/2),t.lineTo(s,e/2)}}});{const e=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(t,e)=>{const i=e.parent;if(i){const e=i.height(),s=i.width();t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,e),t.lineTo(0,e),t.lineTo(0,0)}}});{const e=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});(0,r.v)(e,"stroke",t,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:(0,a.aQ)(50),height:(0,a.aQ)(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:(0,a.aQ)(80),height:(0,a.aQ)(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const e=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const e=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});(0,r.v)(e,"fill",t,"positive"),(0,r.v)(e,"stroke",t,"positive")}{const e=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});(0,r.v)(e,"fill",t,"negative"),(0,r.v)(e,"stroke",t,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const e=i("Graphics",["rangegrip","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:t=>{t.moveTo(0,.5),t.lineTo(0,12.5),t.moveTo(2,.5),t.lineTo(2,12.5),t.moveTo(4,.5),t.lineTo(4,12.5)}}),(0,r.v)(e,"stroke",t,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:a.CI}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:a.CI}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:a.AQ}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:a.AQ})}}},3355:function(t,e,i){i.d(e,{L:function(){return c}});var s=i(8777),a=i(6245),o=i(1479),n=i(8943),r=i(5040),h=i(7652),l=i(751),d=i(5071),g=i(256);class c extends s.W{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(n.r.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(n.r.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(o.T.new(this._root,{themeTags:["selection","cursor"],layer:30})),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=h.mergeTags(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:a.AQ,height:a.AQ,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout((()=>{this.setPrivate("visible",!0)}),500)),this._disposers.push(this.lineX.events.on("positionchanged",(()=>{this._handleXLine()}))),this._disposers.push(this.lineY.events.on("positionchanged",(()=>{this._handleYLine()}))),this._disposers.push(this.lineX.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineX.events.on("blur",(()=>this._handleLineBlur()))),this._disposers.push(this.lineY.events.on("focus",(()=>this._handleLineFocus()))),this._disposers.push(this.lineY.events.on("blur",(()=>this._handleLineBlur()))),h.supports("keyboardevents")&&this._disposers.push(h.addEventListener(document,"keydown",(t=>{this._handleLineMove(h.getEventKey(t),t.ctrlKey)})))}_setUpTouch(){const t=this.chart;t&&(t.plotContainer._display.cancelTouch="none"!=this.get("behavior"))}_handleXLine(){let t=this.lineX.x(),e=!0;(t<0||t>this.width())&&(e=!1),this.lineX.setPrivate("visible",e)}_handleYLine(){let t=this.lineY.y(),e=!0;(t<0||t>this.height())&&(e=!1),this.lineY.setPrivate("visible",e)}_handleLineMove(t,e){let i="";const s=this.chart;let a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let o=1;if(e&&(o=5),a){let e,s=a.get("renderer").get("inversed",!1);"ArrowRight"==t||"ArrowDown"==t?e=1:"ArrowLeft"==t||"ArrowUp"==t?e=-1:"Tab"==t&&(e=0),null!=e&&(s&&(e*=-1),this.set(i,a.nextPosition(e*o)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const t=this.get("xAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipX=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateXLine(e)}))))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const t=this.get("yAxis");if(t){const e=t.get("tooltip");e&&(this._tooltipY=!0,this._disposers.push(e.on("pointTo",(()=>{this._updateYLine(e)}))))}}}_handleSyncWith(){const t=this.chart;if(t){const e=this.get("syncWith"),i=[];e&&d.each(e,(t=>{const e=t.chart;e&&i.push(e)})),t._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const t=this.get("positionX"),e=this.get("positionY");null==t&&null==e?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).x,3);this._toX!=e&&(this.lineX.animate({key:"x",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toX=e)}_updateYLine(t){let e=l.round(this._display.toLocal(t.get("pointTo",{x:0,y:0})).y,3);this._toY!=e&&(this.lineY.animate({key:"y",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")}),this._toY=e)}_drawLines(){this.lineX.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,this.height())})),this.lineY.set("draw",(t=>{t.moveTo(0,0),t.lineTo(this.width(),0)}))}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(t){this.chart=t,this._handleSyncWith();const e=t.plotContainer;this.events.on("boundschanged",(()=>{this._disposers.push(this.setTimeout((()=>{this.updateCursor()}),50))})),h.supports("touchevents")&&(this._disposers.push(e.events.on("click",(t=>{h.isTouchEvent(t.originalEvent)&&this._handleMove(t)}))),this._setUpTouch()),this._disposers.push(e.events.on("pointerdown",(t=>{this._handleCursorDown(t)}))),this._disposers.push(e.events.on("globalpointerup",(t=>{this._handleCursorUp(t),t.native||this.isHidden()||this._handleMove(t)}))),this._disposers.push(e.events.on("globalpointermove",(t=>{(this.get("syncWith")||0!=g.keys(e._downPoints).length||t.native||!this.isHidden())&&(this._handleMove(t),Math.hypot(this._lastPoint2.x-t.point.x,this._lastPoint2.y-t.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=t.point))})));const i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(t){const e=this.chart;return!!e&&e.inPlot(t)}_handleCursorDown(t){if(2==t.originalEvent.button)return;const e=t.point;let i=this._display.toLocal(e);const s=this.chart;if(this.selection.set("draw",(()=>{})),s&&this._inPlot(i)){if(this._downPoint=i,"none"!=this.get("behavior")){this.selection.show();const e="selectstarted";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}let e=this._getPosition(i).x,s=this._getPosition(i).y;this.setPrivate("downPositionX",e),this.setPrivate("downPositionY",s)}}_handleCursorUp(t){if(this._downPoint){const e=this.get("behavior","none");if("none"!=e){"z"===e.charAt(0)&&this.selection.hide();const i=t.point;let s=this._display.toLocal(i);const a=this._downPoint,o=this.get("moveThreshold",1);if(s&&a){let i=!1;if("zoomX"!==e&&"zoomXY"!==e&&"selectX"!==e&&"selectXY"!==e||Math.abs(s.x-a.x)>o&&(i=!0),"zoomY"!==e&&"zoomXY"!==e&&"selectY"!==e&&"selectXY"!==e||Math.abs(s.y-a.y)>o&&(i=!0),i){const e="selectended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}else{const e="selectcancelled";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent})}}}}this._downPoint=void 0}_handleMove(t){if(this.getPrivate("visible")){const e=this.chart;if(e&&g.keys(e.plotContainer._downPoints).length>1)return void this.set("forceHidden",!0);this.set("forceHidden",!1);const i=t.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,t.originalEvent)}}_getPosition(t){return{x:t.x/this.width(),y:t.y/this.height()}}handleMove(t,e,i){t||(t=this._movePoint);const s=this.get("alwaysShow");if(!t)return void this.hide(0);this._movePoint=t;let a=this._display.toLocal(t),o=this.chart;if(o&&(this._inPlot(a)||this._downPoint)){o._movePoint=t,this.isHidden()&&(this.show(),"z"==this.get("behavior","").charAt(0)&&this.selection.set("draw",(()=>{})));let n=a.x,h=a.y,l=this._getPosition(a);this.setPrivate("point",a);let d=this.get("snapToSeries");this._downPoint&&(d=void 0);let g=this.get("positionX"),c=l.x;r.isNumber(g)&&(c=g);let u=this.get("positionY"),m=l.y;r.isNumber(u)&&(m=u),this.setPrivate("positionX",c),this.setPrivate("positionY",m);const p=this._getPoint(c,m);if(n=p.x,h=p.y,o.xAxes.each((t=>{t._handleCursorPosition(c,d),s&&t.handleCursorShow()})),o.yAxes.each((t=>{t._handleCursorPosition(m,d),s&&t.handleCursorShow()})),!e){o._handleCursorPosition();const e="cursormoved";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,point:t,originalEvent:i})}this._updateLines(n,h),o.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);const t="cursorhidden";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this._downPoint&&"none"!=this.get("behavior")&&this._updateSelection(a)}_getPoint(t,e){return{x:this.width()*t,y:this.height()*e}}_updateLines(t,e){this._tooltipX||this.lineX.set("x",t),this._tooltipY||this.lineY.set("y",e),this._drawLines()}_updateSelection(t){const e=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();t.x<0&&(t.x=0),t.x>s&&(t.x=s),t.y<0&&(t.y=0),t.y>a&&(t.y=a),e.set("draw",(e=>{const o=this._downPoint;o&&("zoomXY"===i||"selectXY"===i?(e.moveTo(o.x,o.y),e.lineTo(o.x,t.y),e.lineTo(t.x,t.y),e.lineTo(t.x,o.y),e.lineTo(o.x,o.y)):"zoomX"===i||"selectX"===i?(e.moveTo(o.x,0),e.lineTo(o.x,a),e.lineTo(t.x,a),e.lineTo(t.x,0),e.lineTo(o.x,0)):"zoomY"!==i&&"selectY"!==i||(e.moveTo(0,o.y),e.lineTo(s,o.y),e.lineTo(s,t.y),e.lineTo(0,t.y),e.lineTo(0,o.y)))}))}_onHide(){if(this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorHide()})),t.yAxes.each((t=>{t.handleCursorHide()})),t.series.each((t=>{t.handleCursorHide()})))}super._onHide()}_onShow(){if(!this.isHidden()){let t=this.chart;t&&(t.xAxes.each((t=>{t.handleCursorShow()})),t.yAxes.each((t=>{t.handleCursorShow()})))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}c.className="XYCursor",c.classNames=s.W.classNames.concat([c.className])},6515:function(t,e,i){i.d(e,{R:function(){return g}});var s=i(9361),a=i(8777),o=i(6245),n=i(7144),r=i(7142),h=i(5071),l=i(5040),d=i(7652);class g extends s.w{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(a.W.new(this._root,{})),this.gridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.topGridContainer=a.W.new(this._root,{width:o.AQ,height:o.AQ}),this.bulletsContainer=this.children.push(a.W.new(this._root,{isMeasured:!1,width:o.AQ,height:o.AQ,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new n.aV,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(a.W.new(this._root,{themeTags:["axis","header"],position:"absolute",background:r.A.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)h.each(t.oldValues,(t=>{t.dispose()}));else if("push"===t.type)this._processAxisRange(t.newValue,["range"]);else if("setIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("insertIndex"===t.type)this._processAxisRange(t.newValue,["range"]);else if("removeIndex"===t.type)this.disposeDataItem(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value,["range"])}})));const t=this.get("renderer");t&&(t.axis=this,t.processAxis()),this.children.push(t),this._createGhostLabel()}_createGhostLabel(){const t=this.get("renderer").makeLabel(new s.z(this,void 0,{}),[]);t.adapters.disable("text"),t.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),t.events.disable(),this.ghostLabel=t}_updateFinals(t,e){}zoom(t,e,i,s){if(this.get("zoomable",!0))if(this._updateFinals(t,e),this.get("start")!==t||this.get("end")!=e){let a=this._sAnimation,o=this._eAnimation;t>e&&([t,e]=[e,t]);let n=this.get("maxDeviation",.5)*Math.min(1,e-t);t<-n&&(t=-n),e>1+n&&(e=1+n);let r=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),h=r;l.isNumber(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),1===e&&0!==t&&(s=tthis.get("end",1)?"end":"start");let d=this.get("minZoomCount",0);const g=this.dataItems;g&&g.lengthe&&([t,e]=[e,t]),"start"===s?(c>0&&1/(e-t)r&&(e=t+1/r),e>1&&e-t<1/r&&(t=e-1/r)):(c>0&&1/(e-t)r&&(t=e-1/r),t<0&&e-t<1/r&&(e=t+1/r)),1/(e-t)>r&&(e=t+1/r),1/(e-t)>r&&(t=e-1/r),null!=c&&null!=d&&t==this.get("start")&&e==this.get("end")){const t=this.chart;t&&t._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==t||this.get("start")==t)&&(o&&o.playing&&o.to==e||this.get("end")==e))return;if(i>0){let s,a,o=this.get("interpolationEasing");if(this.get("start")!=t&&(s=this.animate({key:"start",to:t,duration:i,easing:o})),this.get("end")!=e&&(a=this.animate({key:"end",to:e,duration:i,easing:o})),this._sAnimation=s,this._eAnimation=a,s)return s;if(a)return a}else this.set("start",t),this.set("end",e),this.root.events.once("frameended",(()=>{this.markDirtyKey("start")}))}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(t,e){t.setRaw("isRange",!0),this._createAssets(t,e),this._rangesDirty=!0,this._prepareDataItem(t);const i=t.get("above"),s=this.topGridContainer,a=t.get("grid");i&&a&&s.children.moveValue(a);const o=t.get("axisFill");i&&o&&s.children.moveValue(o)}_prepareDataItem(t,e){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each((t=>{this._prepareDataItem(t)})),h.each(this._seriesAxisRanges,(t=>{this._prepareDataItem(t)}))}_prepareChildren(){super._prepareChildren();const t=this.ghostLabel;if(t&&(this.get("fixAxisSize")?t.set("visible",!0):t.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){const t=this.chart;t&&t._updateCursor();let e=this.get("start",0),i=this.get("end",1),s=this.get("maxDeviation",.5)*Math.min(1,i-e);if(e<-s){let t=e+s;e=-s,this.setRaw("start",e),this.isDirty("end")&&this.setRaw("end",i-t)}if(i>1+s){let t=i-1-s;i=1+s,this.setRaw("end",i),this.isDirty("start")&&this.setRaw("start",e-t)}}const e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){const t=this.get("tooltip");if(t){const i=e.get("themeTags");t.addTag("axis"),t.addTag(this.className.toLowerCase()),t._applyThemes(),i&&(t.set("themeTags",d.mergeTags(t.get("themeTags"),i)),t.label._applyThemes())}}}_updateTooltipBounds(){const t=this.get("tooltip");t&&this.get("renderer").updateTooltipBounds(t)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(t){this.chart=t,this.get("renderer").chart=t,t.gridContainer.children.push(this.gridContainer),t.topGridContainer.children.push(this.topGridContainer),t.axisHeadersContainer.children.push(this.axisHeader),this.on("start",(()=>{t._handleAxisSelection(this)})),this.on("end",(()=>{t._handleAxisSelection(this)})),t.plotContainer.onPrivate("width",(()=>{this.markDirtySize()})),t.plotContainer.onPrivate("height",(()=>{this.markDirtySize()})),t.processAxis(this)}hideDataItem(t){return this._toggleFHDataItem(t,!0),super.hideDataItem(t)}showDataItem(t){return this._toggleFHDataItem(t,!1),super.showDataItem(t)}_toggleFHDataItem(t,e){const i="forceHidden",s=t.get("label");s&&s.set(i,e);const a=t.get("grid");a&&a.set(i,e);const o=t.get("tick");o&&o.set(i,e);const n=t.get("axisFill");n&&n.set(i,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.set(i,e)}}_toggleDataItem(t,e){const i=t.get("label"),s="visible";i&&i.setPrivate(s,e);const a=t.get("grid");a&&a.setPrivate(s,e);const o=t.get("tick");o&&o.setPrivate(s,e);const n=t.get("axisFill");n&&n.setPrivate(s,e);const r=t.get("bullet");if(r){const t=r.get("sprite");t&&t.setPrivate(s,e)}}_createAssets(t,e,i){var s,a,o;const n=this.get("renderer");let r="minor";const h=t.get("label");if(h){let a=h.get("themeTags"),o=!1;i?-1==(null==a?void 0:a.indexOf(r))&&(o=!0):-1!=(null==a?void 0:a.indexOf(r))&&(o=!0),o&&(null===(s=h.parent)||void 0===s||s.children.removeValue(h),n.makeLabel(t,e),h.dispose(),n.labels.removeValue(h))}else n.makeLabel(t,e);const l=t.get("grid");if(l){let s=l.get("themeTags"),o=!1;i?-1==(null==s?void 0:s.indexOf(r))&&(o=!0):-1!=(null==s?void 0:s.indexOf(r))&&(o=!0),o&&(null===(a=l.parent)||void 0===a||a.children.removeValue(l),n.makeGrid(t,e),l.dispose(),n.grid.removeValue(l))}else n.makeGrid(t,e);const d=t.get("tick");if(d){let s=!1,a=d.get("themeTags");i?-1==(null==a?void 0:a.indexOf(r))&&(s=!0):-1!=(null==a?void 0:a.indexOf(r))&&(s=!0),s&&(null===(o=d.parent)||void 0===o||o.children.removeValue(d),n.makeTick(t,e),d.dispose(),n.ticks.removeValue(d))}else n.makeTick(t,e);i||t.get("axisFill")?i&&!t.get("axisFill")&&this.get("minorAxisFillsEnabled")&&n.makeAxisFill(t,e):n.makeAxisFill(t,e),this._processBullet(t)}_processBullet(t){let e=t.get("bullet"),i=this.get("bullet");if(e||!i||t.get("isRange")||(e=i(this._root,this,t)),e){e.axis=this;const i=e.get("sprite");i&&(i._setDataItem(t),t.setRaw("bullet",e),i.parent||this.bulletsContainer.children.push(i))}}_afterChanged(){super._afterChanged();const t=this.chart;t&&(t._updateChartLayout(),t.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(t){super.disposeDataItem(t);const e=this.get("renderer"),i=t.get("label");i&&(e.labels.removeValue(i),i.dispose());const s=t.get("tick");s&&(e.ticks.removeValue(s),s.dispose());const a=t.get("grid");a&&(e.grid.removeValue(a),a.dispose());const o=t.get("axisFill");o&&(e.axisFills.removeValue(o),o.dispose());const n=t.get("bullet");n&&n.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const t=this.ghostLabel;if(t){if(!t.isHidden()){const e=t.localBounds(),i=Math.ceil(e.right-e.left);let s=t.get("text");h.each(this.dataItems,(t=>{const e=t.get("label");if(e&&!e.isHidden()){const t=e.localBounds();Math.ceil(t.right-t.left)>i&&(s=e.text._getText())}})),t.set("text",s)}let e=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(t,e+.5*(i-e))}}_handleCursorPosition(t,e){t=this.get("renderer").toAxisPosition(t),this._cursorPosition=t,this._snapToSeries=e,this.updateTooltip()}updateTooltip(){const t=this._snapToSeries;let e=this._cursorPosition;const i=this.get("tooltip"),s=this.get("renderer");l.isNumber(e)&&(h.each(this.series,(i=>{if(i.get("baseAxis")===this){const s=this.getSeriesItem(i,e,this.get("tooltipLocation"));t&&-1!=t.indexOf(i)?(i.updateLegendMarker(s),i.updateLegendValue(s),i._settings.tooltipDataItem=s):(i.showDataItemTooltip(s),i.setRaw("tooltipDataItem",s))}})),this.get("snapTooltip")&&(e=this.roundAxisPosition(e,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",e),i&&(s.updateTooltipBounds(i),l.isNaN(e)?i.hide(0):(this._updateTooltipText(i,e),s.positionTooltip(i,e),ethis.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}roundAxisPosition(t,e){return t}_handleSeriesRemoved(){}handleCursorShow(){let t=this.get("tooltip");t&&t.show()}handleCursorHide(){let t=this.get("tooltip");t&&t.hide()}processSeriesDataItem(t,e){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(t){const e=this.get("renderer");return e.toAxisPosition(t/e.axisLength())}toAxisPosition(t){return this.get("renderer").toAxisPosition(t)}toGlobalPosition(t){return this.get("renderer").toGlobalPosition(t)}fixPosition(t){return this.get("renderer").fixPosition(t)}shouldGap(t,e,i,s){return!1}createAxisRange(t){return this.axisRanges.push(t)}_groupSeriesData(t){}getCellWidthPosition(){return.05}}g.className="Axis",g.classNames=s.w.classNames.concat([g.className])},2586:function(t,e,i){i.d(e,{_:function(){return o}});var s=i(6331),a=i(256);class o extends s.JH{_beforeChanged(){super._beforeChanged();const t=this.get("sprite");if(this.isDirty("sprite")&&t&&(t.setAll({position:"absolute",role:"figure"}),this._disposers.push(t)),this.isDirty("location")){const e=t.dataItem;this.axis&&t&&e&&this.axis._prepareDataItem(e)}}_dispose(){const t=this.axis;t&&a.each(t._bullets,((e,i)=>{i.uid==this.uid&&delete t._bullets[e]})),super._dispose()}}o.className="AxisBullet",o.classNames=s.JH.classNames.concat([o.className])},6293:function(t,e,i){i.d(e,{k:function(){return a}});var s=i(962);class a extends s._{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabel",a.classNames=s._.classNames.concat([a.className])},9084:function(t,e,i){i.d(e,{p:function(){return a}});var s=i(815);class a extends s.x{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisLabelRadial",a.classNames=s.x.classNames.concat([a.className])},6275:function(t,e,i){i.d(e,{Y:function(){return d}});var s=i(1479),a=i(5769),o=i(7144),n=i(4714),r=i(8943),h=i(6293),l=i(7652);class d extends s.T{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new o.o(a.YS.new({}),(()=>n.T._new(this._root,{themeTags:l.mergeTags(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template])))),this.grid=this.addDisposer(new o.o(a.YS.new({}),(()=>r.r._new(this._root,{themeTags:l.mergeTags(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template])))),this.axisFills=this.addDisposer(new o.o(a.YS.new({}),(()=>s.T._new(this._root,{themeTags:l.mergeTags(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template])))),this.labels=this.addDisposer(new o.o(a.YS.new({}),(()=>h.k._new(this._root,{themeTags:l.mergeTags(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template]))))}makeTick(t,e){const i=this.ticks.make();return i._setDataItem(t),t.setRaw("tick",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(t,e){const i=this.grid.make();return i._setDataItem(t),t.setRaw("grid",i),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(t,e){const i=this.axisFills.make();return i._setDataItem(t),i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),this.axis.gridContainer.children.push(i),t.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(t,e){const i=this.labels.make();return i.set("themeTags",l.mergeTags(i.get("themeTags"),e)),t.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(t),t.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const t=this.thumb;t&&(this._disposers.push(t.events.on("pointerdown",(t=>{this._handleThumbDown(t)}))),this._disposers.push(t.events.on("globalpointerup",(t=>{this._handleThumbUp(t)}))),this._disposers.push(t.events.on("globalpointermove",(t=>{this._handleThumbMove(t)}))))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",(()=>{this.axis.markDirtySize()}))}_changed(){if(super._changed(),this.isDirty("pan")){const t=this.thumb;if(t){const e=this.axis.labelsContainer,i=this.get("pan");"zoom"==i?e.children.push(t):"none"==i&&e.children.removeValue(t)}}}_handleThumbDown(t){this._thumbDownPoint=this.toLocal(t.point);const e=this.axis;this._downStart=e.get("start"),this._downEnd=e.get("end")}_handleThumbUp(t){this._thumbDownPoint=void 0}_handleThumbMove(t){const e=this._thumbDownPoint;if(e){const i=this.toLocal(t.point),s=this._downStart,a=this._downEnd,o=this._getPan(i,e)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-o,a+o,0)}}_getPan(t,e){return 0}positionToCoordinate(t){return this._inversed?(this._end-t)*this._axisLength:(t-this._start)*this._axisLength}updateTooltipBounds(t){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t*=i-e,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,t/(i-e)}fixPosition(t){return this.get("inversed")?1-t:t}_updateLC(){}toggleVisibility(t,e,i,s){let a=this.axis;const o=a.get("start",0),n=a.get("end",1);eo+(n-o)*(s+1e-4)?t.setPrivate("visible",!1):t.setPrivate("visible",!0)}_positionTooltip(t,e){const i=this.chart;i&&(t.set("pointTo",this._display.toGlobal(e)),i.inPlot(e)||t.hide())}processAxis(){}}d.className="AxisRenderer",d.classNames=s.T.classNames.concat([d.className])},6284:function(t,e,i){i.d(e,{n:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{width:a.AQ,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const t=this.grid.template;t.set("height",a.AQ),t.set("width",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)}))}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("x",-1e3));const s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){const i=this.chart,o=e.children;if(this.get(a)?e.addTag(a):e.removeTag(a),i){if(this.get(s)){const t=i.topAxesContainer.children;-1==t.indexOf(e)&&t.insertIndex(0,e),e.addTag(s),o.moveValue(this)}else{const t=i.bottomAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(s),o.moveValue(this,0)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(t,e){return(e.x-t.x)/this.width()}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?i-t:e+t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t=i-t:t-=e,(t=t/(i-e)*this._lc)+this._ls}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerWidth();this._lc=this.axisLength()/i,this._ls=(t.x()-e.get("paddingLeft",0))/i}}_updatePositions(){const t=this.axis,e=t.x()-r.relativeToValue(t.get("centerX",0),t.width())-t.parent.get("paddingLeft",0);t.gridContainer.set("x",e),t.topGridContainer.set("x",e),t.bulletsContainer.set("y",this.y());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginLeft",0),o=t.x()-a;const n=t.parent;n&&(o-=n.get("paddingLeft",0)),s.children.length>0?(a=t.axisHeader.width(),t.set("marginLeft",a+1)):s.set("width",a),s.setAll({x:o,y:-1,height:e.height()+2})}}processAxis(){super.processAxis();const t=this.axis;null==t.get("width")&&t.set("width",a.AQ);const e=this._root.verticalLayout;t.set("layout",e),t.labelsContainer.set("width",a.AQ),t.axisHeader.setAll({layout:e})}axisLength(){return this.axis.width()}positionToPoint(t){return{x:this.positionToCoordinate(t),y:0}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e));let r=t.get("length",0);const h=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("y",a.AQ),h||(r*=-1)):(t.set("y",0),h&&(r*=-1)),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(0,r)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateLabel(t,e,i,s){if(t){let o=.5;o=n.isNumber(s)&&s>1?t.get("multiLocation",o):t.get("location",o),n.isNumber(e)||(e=0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?r?(t.set("position","absolute"),t.set("y",0)):(t.set("position","relative"),t.set("y",a.AQ)):r?(t.set("y",0),t.set("position","absolute")):(t.set("y",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*o),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("x",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=-1;if(this.get("opposite")&&(h=1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("y",t.y()+t.height()*h)}else s.set("y",0);this.axis._bullets[o]=t,s.set("x",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.height(),a=this.width();ia||i<0||(t.moveTo(e,0),t.lineTo(i,0),t.lineTo(i,s),t.lineTo(e,s),t.lineTo(e,0))}))}positionTooltip(t,e){this._positionTooltip(t,{x:this.positionToCoordinate(e),y:0})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.x,o=0,n=this.axisLength(),h=i,l="up";this.get("opposite")?e?(l="up",o=s.y,h=i):(l="down",o=s.y-i,h=i):e?(l="down",o=s.y-i,h=i):(l="up",o=s.y,h=i);const d={left:a,right:a+n,top:o,bottom:o+h},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}}h.className="AxisRendererX",h.classNames=s.Y.classNames.concat([h.className])},7909:function(t,e,i){i.d(e,{j:function(){return h}});var s=i(6275),a=i(6245),o=i(7142),n=i(5040),r=i(7652);class h extends s.Y{constructor(){super(...arguments),this.thumb=o.A.new(this._root,{height:a.AQ,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=r.mergeTags(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const t=this.grid.template;t.set("width",a.AQ),t.set("height",0),t.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(e.width(),0)})),this.set("draw",((t,e)=>{t.moveTo(0,0),t.lineTo(0,e.height())}))}_getPan(t,e){return(t.y-e.y)/this.height()}_changed(){var t;super._changed();const e=this.axis,i=e.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("y",-1e3));const s=this.thumb,a="opposite",o="inside",n=this.chart;if(this.isDirty(a)||this.isDirty(o)){const i=e.children;if(this.get(o)?e.addTag(o):e.removeTag(o),n){if(this.get(a)){const t=n.rightAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e,0),e.addTag(a),i.moveValue(this,0)}else{const t=n.leftAxesContainer.children;-1==t.indexOf(e)&&t.moveValue(e),e.removeTag(a),i.moveValue(this)}null===(t=e.ghostLabel)||void 0===t||t._applyThemes(),this.labels.each((t=>{t._applyThemes()})),this.root._markDirtyRedraw()}e.markDirtySize()}const r=e.labelsContainer.width();n&&(this.get(a)?s.set("centerX",0):s.set("centerX",r)),s.setPrivate("width",r)}processAxis(){super.processAxis();const t=this.axis;null==t.get("height")&&t.set("height",a.AQ);const e=this._root.horizontalLayout;t.set("layout",e),t.labelsContainer.set("height",a.AQ),t.axisHeader.set("layout",e)}_updatePositions(){const t=this.axis,e=t.y()-r.relativeToValue(t.get("centerY",0),t.height());t.gridContainer.set("y",e),t.topGridContainer.set("y",e),t.bulletsContainer.set("x",this.x());const i=t.chart;if(i){const e=i.plotContainer,s=t.axisHeader;let a=t.get("marginTop",0);s.children.length>0?(a=t.axisHeader.height(),t.set("marginTop",a+1)):s.set("height",a),s.setAll({y:t.y()-a,x:-1,width:e.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(t){return{x:0,y:this.positionToCoordinate(t)}}updateLabel(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a);const o=this.get("opposite"),r=t.get("inside",this.get("inside",!1));o?(t.set("x",0),r?t.set("position","absolute"):t.set("position","relative")):r?(t.set("x",0),t.set("position","absolute")):(t.set("x",void 0),t.set("position","relative")),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateGrid(t,e,i){if(t){n.isNumber(e)||(e=0);let s=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*s),t.set("y",this.positionToCoordinate(e)),this.toggleVisibility(t,e,0,1)}}updateTick(t,e,i,s){if(t){n.isNumber(e)||(e=0);let a=.5;a=n.isNumber(s)&&s>1?t.get("multiLocation",a):t.get("location",a),n.isNumber(i)&&i!=e&&(e+=(i-e)*a),t.set("y",this.positionToCoordinate(e));let o=t.get("length",0);const r=t.get("inside",this.get("inside",!1));this.get("opposite")?(t.set("x",0),r&&(o*=-1)):r||(o*=-1),t.set("draw",(t=>{t.moveTo(0,0),t.lineTo(o,0)})),this.toggleVisibility(t,e,t.get("minPosition",0),t.get("maxPosition",1))}}updateBullet(t,e,i){if(t){const s=t.get("sprite");if(s){n.isNumber(e)||(e=0);let a=t.get("location",.5);n.isNumber(i)&&i!=e&&(e+=(i-e)*a);let o=this.axis.roundAxisPosition(e,a),r=this.axis._bullets[o],h=1;if(this.get("opposite")&&(h=-1),t.get("stacked"))if(r){let t=r.get("sprite");t&&s.set("x",t.x()+t.width()*h)}else s.set("x",0);this.axis._bullets[o]=t,s.set("y",this.positionToCoordinate(e)),this.toggleVisibility(s,e,0,1)}}}updateFill(t,e,i){if(t){n.isNumber(e)||(e=0),n.isNumber(i)||(i=1);let s=this.positionToCoordinate(e),a=this.positionToCoordinate(i);this.fillDrawMethod(t,s,a)}}fillDrawMethod(t,e,i){t.set("draw",(t=>{const s=this.axis.gridContainer.width(),a=this.height();ia||i<0||(t.moveTo(0,e),t.lineTo(s,e),t.lineTo(s,i),t.lineTo(0,i),t.lineTo(0,e))}))}positionToCoordinate(t){return this._inversed?(t-this._start)*this._axisLength:(this._end-t)*this._axisLength}positionTooltip(t,e){this._positionTooltip(t,{x:0,y:this.positionToCoordinate(e)})}updateTooltipBounds(t){const e=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.y,o=0,n=this.axisLength(),h=i,l="right";this.get("opposite")?e?(l="right",o=s.x-i,h=i):(l="left",o=s.x,h=i):e?(l="left",o=s.x,h=i):(l="right",o=s.x-i,h=i);const d={left:o,right:o+h,top:a,bottom:a+n},g=t.get("bounds");r.sameBounds(d,g)||(t.set("bounds",d),t.set("pointerOrientation",l))}_updateLC(){const t=this.axis,e=t.parent;if(e){const i=e.innerHeight();this._lc=this.axisLength()/i,this._ls=t.y()/i}}toAxisPosition(t){const e=this._start||0,i=this._end||1;return t=(t-=this._ls)*(i-e)/this._lc,this.get("inversed")?e+t:i-t}toGlobalPosition(t){const e=this._start||0,i=this._end||1;return this.get("inversed")?t-=e:t=i-t,(t=t/(i-e)*this._lc)+this._ls}fixPosition(t){return this.get("inversed")?t:1-t}}h.className="AxisRendererY",h.classNames=s.Y.classNames.concat([h.className])},4714:function(t,e,i){i.d(e,{T:function(){return a}});var s=i(2438);class a extends s.d{constructor(){super(...arguments),this._tickPoints=[]}}a.className="AxisTick",a.classNames=s.d.classNames.concat([a.className])},7497:function(t,e,i){i.d(e,{$:function(){return d}});var s=i(6515),a=i(2132),o=i(7261),n=i(5071),r=i(5040),h=i(751),l=i(7652);class d extends s.R{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();const t=this.dataItems.length;t>0&&this.setPrivateRaw("maxZoomFactor",t),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),t)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",t),1))}_prepareChildren(){super._prepareChildren();const t=this.dataItems.length;let e=0;this._valuesDirty&&(this._itemMap={},n.each(this.dataItems,(t=>{t.setRaw("index",e),this._itemMap[t.get("category")]=t,e++})),this.setPrivateRaw("maxZoomFactor",t));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){const t=this.dataItems.length;if(t>1){let e=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),o=this.getPrivate("endIndex",0);const n=this._sAnimation,r=this._eAnimation;let h=this.get("start",0),l=!1;n&&!n.stopped&&(h=Number(n.to),l=!0);let d=this.get("end",1);if(r&&!r.stopped&&(d=Number(r.to),l=!0),l){const t=this._getIndices(h,d);a=t.startIndex,o=t.endIndex}for(let t=a;t=i));s++);if(e=0&&(e+=this.dataItems[t].get("finalCellSize",1),a=t,!(e>=i));t--);this.zoomToIndexes(a,o)}else if(s>=e){let t=s;for(let i=o-1;i>=a;i--)if(t-=this.dataItems[i].get("finalCellSize",1),t<=e){o=i+1;break}this.zoomToIndexes(a,o)}}}_handleRangeChange(){n.each(this.series,(t=>{let e=this.dataItems[this.startIndex()].get("category"),i=this.dataItems[this.endIndex()-1].get("category"),s=t.get("baseAxis"),a=t.get("xAxis"),r=t.get("yAxis");if(a instanceof d&&r instanceof d)t._markDirtyAxes();else if(s===this){let h,l,g=r;if(a===s?(t.get("categoryXField")&&(h="categoryX"),t.get("openCategoryXField")&&(l="openCategoryX")):r===s&&(t.get("categoryYField")&&(h="categoryY"),t.get("openCategoryYField")&&(l="openCategoryY"),g=a),g instanceof o.m&&(h||l)){let c,u;function m(t,e,i,s,a,o){let n,r=e.categoryToIndex(a);for(;!n&&r>=0&&r=0;e--){let o=t.dataItems[e];if(i&&o.get(i)===a){n=o;break}if(s&&o.get(s)===a){n=o;break}}else for(let e=0,o=t.dataItems.length;e{null!=y.get(t)&&(x=!0)})),n.each(t.__valueYShowFields,(t=>{null!=y.get(t)&&(x=!0)})),x)break}t.setPrivate("outOfSelection",!x)}t._markDirtyAxes()}}))}_prepareAxisItems(){var t;const e=this.get("renderer"),i=this.dataItems.length;let s=this.startIndex();s>0&&s--;let a=this.endIndex();a=s&&(t=s-1,e=1),r.isNumber(e)||(e=.5),!r.isNumber(t))return 0;let o=this.get("startLocation",0),h=this.get("endLocation",1);if(this.get("cellSizeField")){let s=i?"finalCellSize":"cellSize";const r=this.dataItems;let l=0;n.each(this.dataItems,(t=>{l+=t.get(s,1)})),l-=o*r[0].get(s,1),l-=(1-h)*r[r.length-1].get(s,1);let d=0;for(let e=0;e{const e=t.get("cellSize",1);s.push(e),i+=e}));let a=this.get("startLocation",0),o=this.get("endLocation",1);i-=a,i-=1-o;let r=t*i+a,h=0;for(let t=0;t0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(e),a=t.dataItems[s],o=this.dataItems[s],n=o.get("category");if(a&&o&&a.get(i)===n)return a;for(let e=0,s=t.dataItems.length;e{r+=t.get(o,1)})),r-=this.get("startLocation",0)*h[0].get(o,1),r-=(1-this.get("endLocation",1))*h[h.length-1].get(o,1);let l=0;for(let e=0;eMath.round(t*r)){s=e;break}for(let t=s+1;t=Math.round(e*r)){a=t+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(t,e,i){let s=this.dataItems.length;this.get("cellSizeField")?(t=Math.min(Math.max(t,0),s),e=Math.max(Math.min(e,s),1),this.setPrivateRaw("startIndex",t),this.setPrivateRaw("endIndex",e),this.zoom(this.indexToPosition(t,0,!0),this.indexToPosition(e,0,!0),i)):this.zoom(t/s,e/s,i)}zoomToCategories(t,e,i){this.zoomToIndexes(this.categoryToIndex(t),this.categoryToIndex(e)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(t){null==t&&(t=1),"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);const e=this.getPrivate("tooltipPosition",0),i=h.fitToRange(this.axisPositionToIndex(e)+t,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}}d.className="CategoryAxis",d.classNames=s.R.classNames.concat([d.className])},5638:function(t,e,i){i.d(e,{S:function(){return c}});var s=i(9361),a=i(7261),o=i(5040),n=i(751),r=i(3540),h=i(5071),l=i(256),d=i(7652),g=i(1926);class c extends a.m{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=d.mergeTags(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",(()=>{this._setBaseInterval(this.get("baseInterval"))}))}_setBaseInterval(t){this.setPrivateRaw("baseInterval",t),this._baseDuration=g.getIntervalDuration(t)}_fixZoomFactor(){const t=this.get("maxZoomFactor");null!=t&&t!=1/0?this.setPrivateRaw("maxZoomFactor",t):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){this._fixZoomFactor();const t=this.getPrivate("groupInterval");if(t?this._setBaseInterval(t):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let t=this.get("groupInterval");t&&(this.setRaw("groupIntervals",[t]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))h.each(this.series,(t=>{this._groupSeriesData(t)})),this._handleRangeChange();else{let t=this.get("baseInterval"),e=t.timeUnit+t.count;h.each(this.series,(t=>{t.setDataSet(e),t.resetGrouping()})),this._setBaseInterval(t),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(t){if(this.get("groupData")&&!t.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let e=[],i=this.baseMainDuration(),a=this.get("groupIntervals");h.each(a,(t=>{g.getIntervalDuration(t)>i&&e.push(t)})),t._dataSets={};const n=this.getPrivate("name")+this.get("renderer").getPrivate("letter");let r;const d=t.get("baseAxis");t.get("xAxis")===d?r=t._valueYFields:t.get("yAxis")===d&&(r=t._valueXFields);let c=t._mainDataItems,u=this.get("baseInterval"),m=u.timeUnit+u.count;t._dataSets[m]=c;const p=t.get("groupDataCallback");let _=t.get("groupDataWithOriginals",!1);p&&(_=!0),h.each(e,(e=>{let i,a=-1/0,d=e.timeUnit+e.count;t._dataSets[d]=[];let u={},m={},x={},v={};h.each(r,(e=>{u[e]=0,m[e]=0,x[e]=t.get(e+"Grouped"),v[e]=e+"Working"}));let y,f,b=g.getDuration(e.timeUnit);c[0]&&(y=c[0].get(n)),h.each(c,(c=>{let D,P=c.get(n),w=g.roun(P,e.timeUnit,e.count,this._root,y);a{let e=c.get(t);o.isNumber(e)?(i.setRaw(t,e),i.setRaw(v[t],e),m[t]=1,u[t]=e):(u[t]=0,m[t]=0)})),_&&i.set("originals",[c]),p&&f&&p(f,e),f=i):(h.each(r,(t=>{let e=x[t],s=c.get(t);if(null!=s){let a=i.get(t);switch(e){case"close":i.setRaw(t,s);break;case"sum":i.setRaw(t,a+s);break;case"open":break;case"low":sa&&i.setRaw(t,s);break;case"average":m[t]++,u[t]+=s;let e=u[t]/m[t];i.setRaw(t,e);break;case"extreme":Math.abs(s)>Math.abs(a)&&i.setRaw(t,s)}i.setRaw(v[t],i.get(t));let o=l.copy(c.dataContext);o[n]=w,i.dataContext=o}})),_&&i.get("originals").push(c)),a=w})),p&&f&&p(f,e)})),t._dataSetId&&t.setDataSet(t._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",(()=>{this.markDirtySize()}))}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(t){let e=this.get("baseInterval"),i=g.chooseInterval(0,t,this.get("groupCount",1/0),this.get("groupIntervals"));return g.getIntervalDuration(i){e.get("baseAxis")===this&&e.setDataSet(t)})),this.markDirtyExtremes(),this._root.events.once("frameended",(()=>{this._root.events.once("frameended",(()=>{const t="groupintervalchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}))}))}}h.each(this.series,(i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),a=h.getFirstSortedIndex(i.dataItems,(e=>r.qu(e.get(s),t))).index;a>0&&(a-=1),e+=this._baseDuration*(1-this.get("endLocation",1));let o=h.getSortedIndex(i.dataItems,(t=>r.qu(t.get(s),e))).index,n=o;n>1&&n--;const l=i.dataItems[a],d=i.dataItems[n];let g,c;l&&(c=l.get(s)),d&&(g=d.get(s));let u=!1;null!=g&&null!=c&&(ge)&&(u=!0),i.setPrivate("outOfSelection",u),i.setPrivate("startIndex",a);let m=i._adjustStartIndex(a);i.getPrivate("adjustedStartIndex")!==m&&(i.setPrivate("adjustedStartIndex",m),this.root.events.once("frameended",(()=>{i._markDirtyPrivateKey("adjustedStartIndex")}))),i.setPrivate("endIndex",o)}}))}}_adjustMinMax(t,e,i,s){return{min:t,max:e,step:(e-t)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(t,e){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=t,this._intervalMax[s]=e}_getM(t){return"day"==t||"month"==t||"year"==t?1.05:1.01}_getMinorInterval(t){var e;let i,s=t.count,a=t.timeUnit;return s>1&&(10==s||15==s?s=5:12==s?s=2:6==s?s=1:30==s?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),"week"==a&&(i="week"!=(null===(e=this.getPrivate("baseInterval"))||void 0===e?void 0:e.timeUnit)?{timeUnit:"day",count:1}:{timeUnit:"week",count:1}),"year"==a&&1==s&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<1264896e5&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(o.isNumber(t)&&o.isNumber(e)){const e=this._root,i=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),n=this.get("renderer"),r=this.getPrivate("baseInterval");let l=i,d=0;const c=this.get("gridIntervals");let u=g.chooseInterval(0,a-i,n.gridCount(),c);g.getIntervalDuration(u){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_updateFinals(t,e){this.setPrivateRaw("selectionMinFinal",this.positionToValue(t)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(e))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(t){const e=this.getPrivate("baseInterval"),i=e.timeUnit;let s=g.roun(t,i,e.count,this._root),a=s+g.getDuration(i,e.count*this._getM(i));return a=g.roun(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(t,e){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return g.getIntervalDuration(this.get("baseInterval"))}processSeriesDataItem(t,e){const i=this.getPrivate("baseInterval");t.open||(t.open={}),t.close||(t.close={}),h.each(e,(e=>{let s=t.get(e);if(o.isNumber(s)){let a=t.open[e],o=t.close[e];if(s>=a&&s<=o);else{const n=i.timeUnit,r=i.count;a=g.roun(s,n,r,this._root),o=a+g.getDuration(n,r*this._getM(n)),o=g.roun(o,n,1,this._root),t.open[e]=a,t.close[e]=o}this._updateDates(a,t.component)}}))}_handleSizeDirty(){}getDataItemPositionX(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionY(t,e,i,s,a){let o,n,r;return a?r=t.get(e):(t.open&&t.close?(o=t.open[e],n=t.close[e]):(o=t.get(e),n=o),r=o+(n-o)*i,r=this._baseValue+(r-this._baseValue)*s),this.valueToPosition(r)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}roundAxisPosition(t,e){let i=this.positionToValue(t);i-=(e-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!o.isNaN(i)){const t=this._root.locale.firstDayOfWeek,a=s.timeUnit,o=this._root.utc,n=this._root.timezone,r=s.count;i=g.roun(i,a,r,this._root,this.getPrivate("min",0));let h=g.getDateIntervalDuration(s,new Date(i),t,o,n);return n&&(i=g.roun(i+.05*this._baseDuration,a,r,this._root,this.getPrivate("min",0)),h=g.getDateIntervalDuration(s,new Date(i+h*e),t,o,n)),this.valueToPosition(i+h*e)}return NaN}getTooltipText(t,e){if(null!=this.getPrivate("min")){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(t);if(o.isNumber(s)){let t=new Date(s),a=this.getPrivate("baseInterval"),o=g.getDateIntervalDuration(a,t,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return!1!==e&&(t=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*o)),this._root.dateFormatter.format(t,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(t,e,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);null==i&&(i=.5),o-=(i-.5)*this._baseDuration;const n=h.getSortedIndex(t.dataItems,(t=>{let e=0;return t.open&&(e=t.open[a]),r.qu(e,o)}));if(s||t.get("snapTooltip")){let e=t.dataItems[n.index-1],i=t.dataItems[n.index];if(e&&i&&e.open&&i.close){let t=e.open[a],s=i.close[a];if(Math.abs(o-t)>Math.abs(o-s))return i}if(e)return e;if(i)return i}else{const e=t.dataItems[n.index-1];if(e&&e.open&&e.close){let t=e.open[a],i=e.close[a];if(o>=t&&o<=i)return e}}}shouldGap(t,e,i,s){const a=t.get(s);return e.get(s)-a>this._baseDuration*i}zoomToDates(t,e,i){this.zoomToValues(t.getTime(),e.getTime(),i)}zoomToValues(t,e,i){const s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(null!=this.getPrivate("min")&&null!=this.getPrivate("max"))if(this.get("groupData")){const s=this.getGroupInterval(e-t),a=this.get("baseInterval");let o=this.getIntervalMin(a),n=this.getIntervalMax(a)-1;n=g.roun(n,s.timeUnit,s.count,this.root),n+=this._getM(s.timeUnit)*g.getIntervalDuration(s),n=g.roun(n,s.timeUnit,s.count,this.root);let r=g.roun(o,s.timeUnit,s.count,this.root),h=g.roun(n,s.timeUnit,s.count,this.root),l=(t-r)/(h-r),d=(e-r)/(h-r);this.zoom(l,d,i)}else this.zoom((t-s)/(a-s),(e-s)/(a-s),i)}positionToDate(t){return new Date(this.positionToValue(t))}dateToPosition(t){return this.valueToPosition(t.getTime())}getCellWidthPosition(){let t=this.getPrivate("selectionMax",this.getPrivate("max")),e=this.getPrivate("selectionMin",this.getPrivate("min"));return o.isNumber(t)&&o.isNumber(e)?this._intervalDuration/(t-e):.05}nextPosition(t){null==t&&(t=1);let e=this.get("tooltipLocation",.5)*this._baseDuration;"Y"==this.get("renderer").getPrivate("letter")&&(t*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0));const s=this.getPrivate("baseInterval");let a=this._nextTime(i,t,s),o=this.getPrivate("selectionMin",0),r=this.getPrivate("selectionMax",0),h=g.roun(o,s.timeUnit,s.count,this._root),l=g.roun(r,s.timeUnit,s.count,this._root);return a+=e,a=n.fitToRange(a,h+e,l-e),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(t,e,i){return g.roun(t+e*this._baseDuration,i.timeUnit,i.count,this._root)}}c.className="DateAxis",c.classNames=a.m.classNames.concat([c.className])},7109:function(t,e,i){i.d(e,{L:function(){return a}});var s=i(6691);class a extends s.Y{constructor(){super(...arguments),this._tickPoints=[]}}a.className="EditableAxisLabel",a.classNames=s.Y.classNames.concat([a.className])},8701:function(t,e,i){i.d(e,{J:function(){return d}});var s=i(5638),a=i(9361),o=i(5071),n=i(3540),r=i(1926),h=i(5040),l=i(751);class d extends s.S{constructor(){super(...arguments),this._frequency=1,this._m=0,this._dates=[]}_afterNew(){this.valueFields.push("date"),this.addTag("gapless"),super._afterNew()}_getDates(){return this._customDates?this._customDates:this._dates}_updateDates(t,e){if(!e.get("ignoreMinMax")){const e=this._getDates(),i=o.getSortedIndex(e,(e=>n.qu(e,t)));i.found||o.insertIndex(e,i.index,t)}}_updateAllDates(){if(!this._customDates){const t=this._dates;t.length=0,o.each(this.series,(t=>{let e="valueX";t.get("yAxis")==this&&(e="valueY"),o.each(t.dataItems,(i=>{let s=i.get(e);h.isNumber(s)&&i.open&&this._updateDates(i.open[e],t)}))}));const e=this.get("extraMax",0),i=this.get("extraMin",0);let s=t.length;const a=this.getPrivate("baseInterval"),n=a.count,l=a.timeUnit;if(e>0){const i=s*e;let a=t[s-1];if(h.isNumber(a))for(let e=s-1;e0){const e=s*i;let a=t[0];if(h.isNumber(a))for(let i=0;in.qu(e,t)));let h=r.index;if(r.found)return(h-i)/a;{h>0&&(h-=1);let s=e[h];const o=e[h+1];if(o){let e=o;Math.abs(e-t)n.qu(e,t)));let s=i.index;return i.found||s>0&&(s-=1),s}positionToValue(t){const e=this.get("startLocation",0),i=this.get("endLocation",1),s=this._getDates();let a=Math.round(s.length-e-(1-i)),o=t*a,n=Math.floor(o);return n<0&&(n=0),n>a-1&&(n=a-1),s[n]+(o-n+e)*this._baseDuration}_fixZoomFactor(){this.setPrivateRaw("maxZoomFactor",this._getDates().length-this.get("startLocation",0)-(1-this.get("endLocation",1)))}zoomToDates(t,e,i){const s=this._getDates(),a=s.length;let r=o.getSortedIndex(s,(e=>n.qu(e,t.getTime()))),h=s[Math.min(r.index,a-1)];r=o.getSortedIndex(s,(t=>n.qu(t,e.getTime())));let l=s[r.index];r.index>=a&&(l=s[a-1]+this._baseDuration),this.zoomToValues(h,l,i)}zoomToValues(t,e,i){const s=this.getPrivate("min",0),a=this.getPrivate("max",0);t=l.fitToRange(t,s,a),e=l.fitToRange(e,s,a),this.zoom(this.valueToPosition(t),this.valueToPosition(e),i)}_prepareAxisItems(){let t=this.getPrivate("selectionMin",0),e=this.getPrivate("selectionMax",0);if(h.isNumber(t)&&h.isNumber(e)){this._seriesValuesDirty&&(this._seriesValuesDirty=!1,this._updateAllDates());const i=this._root,s=i.utc,n=i.timezone,l=this._getDates(),d=this.get("renderer"),g=l.length,c=this._baseDuration;let u=this.valueToIndex(t);u>0&&u--;let m=this.valueToIndex(e);m{this._toggleDataItem(t,!1)})),o.each(this.minorDataItems,(t=>{this._toggleDataItem(t,!1)}));let x=e-t-((e-t)/c-(m-u))*c,v=r.chooseInterval(0,x,p,this.get("gridIntervals"));const y=this.getPrivate("baseInterval");let f=r.getIntervalDuration(v);f0){let t=0;this._m=0;let e=w-10*f;const g=r.getNextUnit(b);if(I){let t=l[C[0]];this._addMinorGrid(t-f,t,k,I)}let c=d.axisLength()/d.gridCount()*.5;o.each(C,(o=>{var u;let m;this.dataItems.length1||"week"==v.timeUnit){let e=r.roun(p,t,1,i)+r.getDuration(t,this._getM(t)),s=this.valueToIndex(e);if(e=l[s],e==p){let t=l[s+1];t?e=t:e+=k}m.setRaw("labelEndValue",e)}w=1}if(this._prepareDataItem(m,w),P&&M&&"X"==d.getPrivate("letter")){let t=M.get("label");if(t&&P.x()-t.x(){t.inited&&t._markDirtyAxes()}))}this._updateGhost()}_pickWorse(t,e,i){const s=i.timeUnit,a=t.get("value",0),o=e.get("value",0);return"hour"==s&&new Date(a).getDate()!=new Date(o).getDate()?t:e}_addMinorGrid(t,e,i,s){const n=this.get("minorDateFormats",this.get("dateFormats")),h=s.timeUnit;let l=t+r.getDuration(h,this._getM(h));l=r.roun(l,h,1,this._root);let d=e-.5*i,g=this._getIndexes(l,d,s,l);const c=this._getDates();o.each(g,(t=>{let e;this.minorDataItems.length=x-2*_&&o.move(a,e),u=0),t+=p,t=r.roun(t,n,1,g);else{if(i=t){e=s;break}o.move(a,e),t+=_,t=r.roun(t,n,h,g)}if(t==m&&(t+=_+p,t=r.roun(t,n,h,g)),t==m)break;m=t}return a}_hasDate(t){return o.getSortedIndex(this._getDates(),(e=>n.HO(e,t))).found}_nextTime(t,e,i){let s=l.fitToRange(this.valueToIndex(t)+e,0,this._dates.length-1);return this._dates[s]}}d.className="GaplessDateAxis",d.classNames=s.S.classNames.concat([d.className])},8943:function(t,e,i){i.d(e,{r:function(){return a}});var s=i(1479);class a extends s.T{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}a.className="Grid",a.classNames=s.T.classNames.concat([a.className])},7261:function(t,e,i){i.d(e,{m:function(){return d}});var s=i(9361),a=i(6515),o=i(7449),n=i(5040),r=i(5071),h=i(751),l=i(7652);class d extends a.R{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=l.mergeTags(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var t;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let t=this.get("syncWithAxis");t&&(this._syncDp=new o.FV([t.onPrivate("selectionMinFinal",(()=>{this._dirtySelectionExtremes=!0})),t.onPrivate("selectionMaxFinal",(()=>{this._dirtySelectionExtremes=!0}))]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,null===(t=this.ghostLabel)||void 0===t||t.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){const t=this.chart;let e=!1;if(t){const i=this.get("renderer").getPrivate("letter");"Y"==i?t.xAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)})):"X"==i&&t.yAxes.each((t=>{"ValueAxis"!=t.className&&(e=!0)}))}e&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,this.getPrivate("selectionMinFinal")==this.getPrivate("selectionMin")&&this.getPrivate("selectionMaxFinal")==this.getPrivate("selectionMax")||(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(t){const e=this.get("numberFormat"),i=this.getNumberFormatter();let s="";return s=e?i.format(t,e):i.format(t,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){const t=this.getPrivate("min"),e=this.getPrivate("max");if(n.isNumber(t)&&n.isNumber(e)){const e=this.get("logarithmic"),i=this.getPrivate("step"),a=this.getPrivate("selectionMin"),o=this.getPrivate("selectionMax")+i;let l=a-i,d=1,g=t;if(e){if(l=this._minLogAdjusted,l2&&(l=Math.pow(10,Math.log(g)*Math.LOG10E-50))}const c=this.get("renderer"),u=c.get("minorLabelsEnabled"),m=c.get("minorGridEnabled",u);let p=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));const _=Math.round(i/p);let x=2;h.round(_/5,10)%1==0&&(x=5),h.round(_/10,10)%1==0&&(x=10);let v=i/x,y=0,f=0,b=-1/0;const D=this.get("renderer").gridCount();for(;l2){const t=Math.max(1,D),e=Math.max(1,Math.ceil(d/t)),i=Math.log(g)*Math.LOG10E+(y+1)*e-50;o=Math.pow(10,i)}else o+=i;else o+=i;if(m){let t=l+v;for(e&&(d>2&&(v=this._adjustMinMax(l,o,10).step),t=l+v);t{t.inited&&t._markDirtyAxes()})),this._updateGhost()}}_prepareDataItem(t,e){let i=this.get("renderer"),s=t.get("value"),a=t.get("endValue"),o=this.valueToPosition(s),r=o,h=this.valueToPosition(s+this.getPrivate("step"));n.isNumber(a)&&(r=this.valueToPosition(a),h=r),t.get("isRange")&&null==a&&(h=o);let l=r,d=t.get("labelEndValue");null!=d&&(l=this.valueToPosition(d)),i.updateLabel(t.get("label"),o,l,e);const g=t.get("grid");if(i.updateGrid(g,o,r),g&&(s==this.get("baseValue",0)?(g.addTag("base"),g._applyThemes()):g.hasTag("base")&&(g.removeTag("base"),g._applyThemes())),i.updateTick(t.get("tick"),o,l,e),i.updateFill(t.get("axisFill"),o,h),this._processBullet(t),i.updateBullet(t.get("bullet"),o,r),!t.get("isRange")){const e=this.get("fillRule");e&&e(t)}}_handleRangeChange(){let t=this.positionToValue(this.get("start",0)),e=this.positionToValue(this.get("end",1));const i=this.get("renderer").gridCount();let s=this._adjustMinMax(t,e,i,!0),a=l.decimalPlaces(s.step);this.setPrivateRaw("stepDecimalPlaces",a),t=h.round(t,a),e=h.round(e,a),s=this._adjustMinMax(t,e,i,!0);let o=s.step;t=s.min,e=s.max,this.getPrivate("selectionMin")===t&&this.getPrivate("selectionMax")===e&&this.getPrivate("step")===o||(this.setPrivateRaw("selectionMin",t),this.setPrivateRaw("selectionMax",e),this.setPrivateRaw("step",o))}positionToValue(t){const e=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(t*(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)+Math.log(e)*Math.LOG10E)/Math.LOG10E):t*(i-e)+e}valueToPosition(t){const e=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}valueToFinalPosition(t){const e=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(t<=0){let e=this.get("treatZeroAs");n.isNumber(e)&&(t=e)}return(Math.log(t)*Math.LOG10E-Math.log(e)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(e)*Math.LOG10E)}return(t-e)/(i-e)}getX(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getY(t,e,i){t=i+(t-i)*e;const s=this.valueToPosition(t);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(t,e,i,s))}getDataItemPositionX(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemX")?a*s+t.component.getStackedXValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}getDataItemCoordinateY(t,e,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(t,e,i,s))}getDataItemPositionY(t,e,i,s){let a=t.get(e);return a=t.get("stackToItemY")?a*s+t.component.getStackedYValueWorking(t,e):this._baseValue+(a-this._baseValue)*s,this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const t=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),e=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let i=this.get("baseValue",0);return ie&&(i=e),i}cellEndValue(t){return t}fixSmallStep(t){return 1+t===1?(t*=2,this.fixSmallStep(t)):t}_fixMin(t){return t}_fixMax(t){return t}_calculateTotals(){if(this.get("calculateTotals")){let t=this.series[0];if(t){let e=t.startIndex();if(t.dataItems.length>0){e>0&&e--;let i,s,a=t.endIndex();a{if(!i.get("excludeFromTotal")){let r=i.dataItems[t];if(r){let t=r.get(o)*i.get(s);n.isNaN(t)||(e+=t,a+=Math.abs(t))}}})),r.each(this.series,(r=>{if(!r.get("excludeFromTotal")){let h=r.dataItems[t];if(h){let t=h.get(o)*r.get(s);if(!n.isNaN(t)){h.set(i+"Total",a),h.set(i+"Sum",e);let s=t/a*100;0==a&&(s=0),h.set(i+"TotalPercent",s)}}}}))}}}}}_getSelectionMinMax(){const t=this.getPrivate("minFinal"),e=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max");let a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2));const l=this.get("renderer").gridCount(),d=this.get("strictMinMaxSelection");let g=this.get("strictMinMax");if(n.isNumber(t)&&n.isNumber(e)){let c=e,u=t;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,i;const s=t.getPrivate("outOfSelection");if(t.get("xAxis")===this){if(!s){let s=t.getPrivate("minX"),a=t.getPrivate("maxX");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinX",s),i=t.getPrivate("selectionMaxX",a)}}else if(t.get("yAxis")===this&&!s){let s=t.getPrivate("minY"),a=t.getPrivate("maxY");0==t.startIndex()&&t.endIndex()==t.dataItems.length||(s=void 0,a=void 0),e=t.getPrivate("selectionMinY",s),i=t.getPrivate("selectionMaxY",a)}t.isHidden()||t.isShowing()||(n.isNumber(e)&&(c=Math.min(c,e)),n.isNumber(i)&&(u=Math.max(u,i)))}})),this.axisRanges.each((t=>{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(c=Math.min(c,e),u=Math.max(u,e)),e=t.get("endValue"),null!=e&&(c=Math.min(c,e),u=Math.max(u,e))}})),c>u&&([c,u]=[u,c]),n.isNumber(i)?c=g?i:t:g&&n.isNumber(this._minReal)&&(c=this._minReal),n.isNumber(s)?u=g?s:e:g&&n.isNumber(this._maxReal)&&(u=this._maxReal),c===u){let e=c;if(c-=this._deltaMinMax,u+=this._deltaMinMax,ce&&(x.max=e),c=x.min,u=x.max),g&&(n.isNumber(i)&&(c=Math.max(c,i)),n.isNumber(s)&&(u=Math.min(u,s))),d&&(c=m-(p-m)*a,u=p+(p-m)*o),g){c=n.isNumber(i)?i:m,u=n.isNumber(s)?s:p,u-c<=1e-8&&(c-=this._deltaMinMax,u+=this._deltaMinMax);let t=u-c;c-=t*a,u+=t*o}this.get("logarithmic")&&(c<=0&&(c=m*(1-Math.min(a,.99))),ce&&(u=e));let y=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),f=h.round(this.valueToFinalPosition(c),y),b=h.round(this.valueToFinalPosition(u),y);this.setPrivateRaw("selectionMinFinal",c),this.setPrivateRaw("selectionMaxFinal",u),this.setPrivateRaw("selectionStepFinal",x.step),this.zoom(f,b)}}_getMinMax(){let t=this.get("min"),e=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),o=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(o=.2)));let l=1/0;if(r.each(this.series,(t=>{if(!t.get("ignoreMinMax")){let e,a;if(t.get("xAxis")===this?(e=t.getPrivate("minX"),a=t.getPrivate("maxX")):t.get("yAxis")===this&&(e=t.getPrivate("minY"),a=t.getPrivate("maxY")),n.isNumber(e)&&n.isNumber(a)){i=Math.min(i,e),s=Math.max(s,a);let t=a-e;t<=0&&(t=Math.abs(a/100)),t{if(t.get("affectsMinMax")){let e=t.get("value");null!=e&&(i=Math.min(i,e),s=Math.max(s,e)),e=t.get("endValue"),null!=e&&(i=Math.min(i,e),s=Math.max(s,e))}})),this.get("logarithmic")){let t=this.get("treatZeroAs");n.isNumber(t)&&i<=0&&(i=t),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(0===i&&0===s&&(s=.9,i=-.9),n.isNumber(t)&&(i=t),n.isNumber(e)&&(s=e),i===1/0||s===-1/0)return this.setPrivate("minFinal",void 0),void this.setPrivate("maxFinal",void 0);i>s&&([i,s]=[s,i]);const d=i,g=s;let c=this.adapters.fold("min",i),u=this.adapters.fold("max",s);this._minRealLog=i,n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!=0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*o,this.get("logarithmic")&&(i<0&&d>=0&&(i=0),s>0&&g<=0&&(s=0)),this._minReal=i,this._maxReal=s;let m=this.get("strictMinMax"),p=this.get("strictMinMaxSelection",!1);p&&(m=p);let _=m;n.isNumber(e)&&(_=!0);let x=this.get("renderer").gridCount(),v=this._adjustMinMax(i,s,x,_);if(i=v.min,s=v.max,v=this._adjustMinMax(i,s,x,!0),i=v.min,s=v.max,m){i=n.isNumber(t)?t:this._minReal,s=n.isNumber(e)?e:this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let r=s-i;i-=r*a,s+=r*o}c=this.adapters.fold("min",i),u=this.adapters.fold("max",s),n.isNumber(c)&&(i=c),n.isNumber(u)&&(s=u),l==1/0&&(l=s-i);let y=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=h.round(i,y),s=h.round(s,y);const f=this.get("syncWithAxis");if(f&&(v=this._syncAxes(i,s,v.step,f.getPrivate("minFinal",f.getPrivate("min",0)),f.getPrivate("maxFinal",f.getPrivate("max",1)),f.getPrivate("step",1)),i=v.min,s=v.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/l*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=d*(1-Math.min(a,.99)))),n.isNumber(i)&&n.isNumber(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);const t=this.get("interpolationDuration",0),e=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:t,easing:e}),this.animatePrivate({key:"max",to:s,duration:t,easing:e})}}_fixZoomFactor(){}_getDelta(t){let e=Math.log(Math.abs(t))*Math.LOG10E,i=Math.pow(10,Math.floor(e));i/=10,this._deltaMinMax=i}_saveMinMax(t,e){}_adjustMinMax(t,e,i,s){i<=1&&(i=1),i=Math.round(i);let a=t,o=e,r=e-t;0===r&&(r=Math.abs(e));let l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l));d/=10;let g=d;s&&(g=0),s?(t=Math.floor(t/d)*d,e=Math.ceil(e/d)*d):(t=Math.ceil(t/d)*d-g,e=Math.floor(e/d)*d+g),t<0&&a>=0&&(t=0),e>0&&o<=0&&(e=0),l=Math.log(Math.abs(r))*Math.LOG10E,d=Math.pow(10,Math.floor(l)),d/=100;let c=Math.ceil(r/i/d)*d,u=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),m=Math.ceil(c/u);m>5?m=10:m<=5&&m>2&&(m=5),c=Math.ceil(c/(u*m))*u*m;let p=this.get("maxPrecision");if(n.isNumber(p)){let t=h.ceil(c,p);pa&&(t-=c),c=this.fixSmallStep(c),{min:t,max:e,step:c}}getTooltipText(t,e){const i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),o=this.getPrivate("stepDecimalPlaces",0)+a,n=h.round(this.positionToValue(t),o);return i?s.format(n,i):s.format(n,void 0,o)}getSeriesItem(t,e){let i,s,a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),o=this.positionToValue(e);if(r.each(t.dataItems,((t,e)=>{const n=Math.abs(t.get(a)-o);(void 0===i||n500&&(s=!0),s)t=n,e=h,i=d;else{a/3==Math.round(a/3)?(n=t-o*a,t>=0&&n<0&&(n=0)):(h=e+o*a,h<=0&&h>0&&(h=0));let i=this._adjustMinMax(n,h,l,!0);n=i.min,h=i.max,d=i.step}}}return{min:t,max:e,step:i}}_checkSync(t,e,i,s){let a=(e-t)/i;for(let t=1;t{if(t instanceof l){const e=t.get("stacked");e&&0==h&&n++,!e&&t.get("clustered")&&n++}t===this&&(o=n-1),h++})),this.get("clustered")||(o=0,n=1),0===n&&(n=1,o=0);const d="cellStartLocation",g="cellEndLocation",c=this._xRenderer.get(d,0),u=this._xRenderer.get(g,1),m=this._yRenderer.get(d,0),p=this._yRenderer.get(g,1);if(this._aLocationX0=c+o/n*(u-c),this._aLocationX1=c+(o+1)/n*(u-c),this._aLocationY0=m+o/n*(p-m),this._aLocationY1=m+(o+1)/n*(p-m),e.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){const t=this.dataItems.length;let a=Math.max(0,this.startIndex()-2),o=Math.min(this.endIndex()+2,t-1);for(let t=0;t0&&a>0)for(let e=t-1;e>=0;e--){let t=this.dataItems[e];if(null!=t.get("valueX")&&null!=t.get("valueY")){n=t;break}}break}this._toggleColumn(e,!1)}this._beforeColumnsDraw();let r=0;i.isType("CategoryAxis")&&e.isType("CategoryAxis")?r=2:e===s?r=0:i===s&&(r=1);for(let t=a;t<=o;t++){let e=this.dataItems[t];this._updateGraphics(e,n,r),null!=e.get("valueX")&&null!=e.get("valueY")&&(n=e)}this._afterColumnsDraw();for(let e=o+1;e{const a=e.get(s,this.get(s));t.set(s,a),i.set(s,a)}))}}let s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.dispose()})),s=[],t.setRaw("rangeGraphics",s),this.axisRanges.each((e=>{const i=e.container,a=this._makeGraphics(e.columns,t);s&&s.push(a),a.setPrivate("list",e.columns),i.children.push(a)}))}}createAxisRange(t){return r.each(this.dataItems,(t=>{const e=t.get("graphics");e&&(e.dispose(),t.set("graphics",void 0))})),super.createAxisRange(t)}_updateGraphics(t,e,i){let s=t.get("graphics");const a=this._xField,n=this._yField,l=t.get(a),d=t.get(n),g=this.get("exactLocationX",!1);if(null!=l&&null!=d){const l=this._xOpenField,d=this._yOpenField,c=this.get("locationX",t.get("locationX",.5)),u=this.get("locationY",t.get("locationY",.5)),m=this.get("openLocationX",t.get("openLocationX",c)),p=this.get("openLocationY",t.get("openLocationY",u)),_=s.get("width"),x=s.get("height"),v=this.get("stacked"),y=this.get("xAxis"),f=this.get("yAxis"),b=y.get("start"),D=y.get("end"),P=f.get("start"),w=f.get("end");let T,A,I,M,k=this.get("vcy",1),C=this.get("vcx",1),S=!1,Y=!1;if(0==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C,g),A=y.getDataItemPositionX(t,a,i,C,g),I=f.getDataItemPositionY(t,n,u,k),this._yOpenField!==this._yField)M=f.getDataItemPositionY(t,d,p,k);else if(v){let e=t.get("stackToItemY");M=e?f.getDataItemPositionY(e,n,p,e.component.get("vcy")):f.basePosition()}else M=f.basePosition();t.setRaw("point",{x:T+(A-T)/2,y:I}),Y=!0}else if(1==i){let e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5;if(x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}if(I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),A=y.getDataItemPositionX(t,a,c,C,g),this._xOpenField!==this._xField)T=y.getDataItemPositionX(t,l,m,C,g);else if(v){let e=t.get("stackToItemX");T=e?y.getDataItemPositionX(e,a,m,e.component.get("vcx"),g):y.basePosition()}else T=y.basePosition();S=!0,t.setRaw("point",{x:A,y:I+(M-I)/2})}else if(2==i){let e=this._aLocationX0+m-.5,i=this._aLocationX1+c-.5;if(_ instanceof o.gG){let t=(i-e)*(1-_.value)/2;e+=t,i-=t}if(T=y.getDataItemPositionX(t,l,e,C),A=y.getDataItemPositionX(t,a,i,C),e=this._aLocationY0+p-.5,i=this._aLocationY1+u-.5,x instanceof o.gG){let t=(i-e)*(1-x.value)/2;e+=t,i-=t}I=f.getDataItemPositionY(t,d,e,k),M=f.getDataItemPositionY(t,n,i,k),t.setRaw("point",{x:T+(A-T)/2,y:I+(M-I)/2})}this._applyGraphicsStates(t,e),this._updateSeriesGraphics(t,s,T,A,I,M,S,Y),TD&&A>D||I=w&&M>w||h.isNaN(T)||h.isNaN(I)?this._toggleColumn(t,!1):this._toggleColumn(t,!0);let F=t.get("rangeGraphics");F&&r.each(F,(e=>{this._updateSeriesGraphics(t,e,T,A,I,M,S,Y)}))}else this._toggleColumn(t,!1)}_updateSeriesGraphics(t,e,i,s,a,o,n,r){const l=e.get("width"),d=e.get("height"),g=e.get("maxWidth"),c=e.get("maxHeight"),u=this.getPoint(i,a),m=this.getPoint(s,o),p=t.get("point");if(p){const t=this.getPoint(p.x,p.y);p.x=t.x+this._x,p.y=t.y+this._y}if(i=u.x,s=m.x,a=u.y,o=m.y,h.isNumber(l)){const t=(s-i-l)/2;i+=t,s-=t}if(h.isNumber(g)&&g{this._toggleColumn(t,!1)}))}_applyGraphicsStates(t,e){const i=t.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),o=i.states.lookup("dropFromPrevious"),n=i.states.lookup("riseFromPrevious");if(s||o||a||n){const i=this.get("xAxis"),r=this.get("yAxis"),l=this.get("baseAxis");let d,g,c;l===i&&r.isType("ValueAxis")?(d=t.get(this._yOpenField),g=t.get(this._yField),c=e.get(this._yField)):l===r&&i.isType("ValueAxis")&&(d=t.get(this._xOpenField),g=t.get(this._xField),c=e.get(this._xField)),h.isNumber(d)&&h.isNumber(g)&&(g{const e=t.getPrivate("list");e&&e.removeValue(t),t.dispose()}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.hide(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.hide(e))})),yield Promise.all(s)}))}_toggleColumn(t,e){const i=t.get("graphics");i&&i.setPrivate("visible",e);const s=t.get("rangeGraphics");s&&r.each(s,(t=>{t.setPrivate("visible",e)}));const a=t.bullets;a&&r.each(a,(t=>{t.setPrivate("hidden",!e)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)],a=t.get("graphics");a&&s.push(a.show(e));const o=t.get("rangeGraphics");o&&r.each(o,(t=>{s.push(t.show(e))})),yield Promise.all(s)}))}updateLegendMarker(t){let e=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!t){const e=this.dataItems[this.endIndex()-1];e&&(t=e)}if(e){let i=this.columns.template;if(t){let e=t.get("graphics");e&&(i=e)}const s=e.get("markerRectangle");if(s&&!e.get("itemContainer").get("disabled")){const t=s.states.lookup("default");r.each(n.u,(e=>{const a=i.get(e,this.get(e));s.set(e,a),t.set(e,a)}))}}}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget"))return super._getTooltipTarget(t);return t.get("graphics")||this}}l.className="BaseColumnSeries",l.classNames=a.o.classNames.concat([l.className])},2976:function(t,e,i){i.d(e,{j:function(){return a}});var s=i(3497);class a extends s.c{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();const t=this._display;t.moveTo(this.get("lowX0",0),this.get("lowY0",0)),t.lineTo(this.get("lowX1",0),this.get("lowY1",0)),t.moveTo(this.get("highX0",0),this.get("highY0",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0))}}a.className="Candlestick",a.classNames=s.c.classNames.concat([a.className])},2312:function(t,e,i){i.d(e,{$:function(){return l}});var s=i(62),a=i(2976),o=i(5769),n=i(7144),r=i(7652),h=i(5071);class l extends s.d{constructor(){super(...arguments),this.columns=this.addDisposer(new n.o(o.YS.new({themeTags:["autocolor"]}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_updateGraphics(t,e,i){super._updateGraphics(t,e,i);const s=this.getRaw("xAxis"),a=this.getRaw("yAxis");let o,n,r,h,l,d,g,c,u,m=this.get("vcy",1),p=this.get("vcx",1),_=this.get("locationX",t.get("locationX",.5)),x=this.get("locationY",t.get("locationY",.5)),v=this.get("openLocationX",t.get("openLocationX",_)),y=this.get("openLocationY",t.get("openLocationY",x));if(0==i){let e=a.getDataItemPositionY(t,this._yOpenField,1,m),i=a.getDataItemPositionY(t,this._yField,1,m);h=a.getDataItemPositionY(t,this._yLowField,1,m),c=a.getDataItemPositionY(t,this._yHighField,1,m),g=Math.max(e,i),r=Math.min(e,i);let x=this._aLocationX0+v-.5,y=this._aLocationX1+_-.5;o=s.getDataItemPositionX(t,this._xField,x+(y-x)/2,p),n=o,l=o,d=o,u="vertical"}else{let e=s.getDataItemPositionX(t,this._xOpenField,1,p),i=s.getDataItemPositionX(t,this._xField,1,p);n=s.getDataItemPositionX(t,this._xLowField,1,p),d=s.getDataItemPositionX(t,this._xHighField,1,p),l=Math.max(e,i),o=Math.min(e,i);let _=this._aLocationY0+y-.5,v=this._aLocationY1+x-.5;r=a.getDataItemPositionY(t,this._yField,_+(v-_)/2,m),h=r,g=r,c=r,u="horizontal"}this._updateCandleGraphics(t,o,n,r,h,l,d,g,c,u)}_updateCandleGraphics(t,e,i,s,a,o,n,r,l,d){let g=t.get("graphics");if(g){let c=this.getPoint(e,s),u=this.getPoint(i,a),m=this.getPoint(o,r),p=this.getPoint(n,l);if(this.get("turboMode")){const t=this.allColumnsData[this.allColumnsData.length-1];t.lowX0=c.x,t.lowY0=c.y,t.lowX1=u.x,t.lowY1=u.y,t.highX0=m.x,t.highY0=m.y,t.highX1=p.x,t.highY1=p.y}else{let e=g.x(),i=g.y();g.set("lowX0",c.x-e),g.set("lowY0",c.y-i),g.set("lowX1",u.x-e),g.set("lowY1",u.y-i),g.set("highX0",m.x-e),g.set("highY0",m.y-i),g.set("highX1",p.x-e),g.set("highY1",p.y-i),g.set("orientation",d);let s=t.get("rangeGraphics");s&&h.each(s,(t=>{t.set("lowX0",c.x-e),t.set("lowY0",c.y-i),t.set("lowX1",u.x-e),t.set("lowY1",u.y-i),t.set("highX0",m.x-e),t.set("highY0",m.y-i),t.set("highX1",p.x-e),t.set("highY1",p.y-i),t.set("orientation",d)}))}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),h.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity,g=e.lowX0,c=e.lowY0,u=e.lowX1,m=e.lowY1,p=e.highX0,_=e.highY0,x=e.highX1,v=e.highY1;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.moveTo(g,c),t.lineTo(u,m),t.moveTo(p,_),t.lineTo(x,v),t.endStroke(),t.endFill()}))}))}_processAxisRange(t){super._processAxisRange(t),t.columns=new n.o(o.YS.new({}),(()=>a.j._new(this._root,{themeTags:r.mergeTags(t.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,t.columns.template])))}}l.className="CandlestickSeries",l.classNames=s.d.classNames.concat([l.className])},62:function(t,e,i){i.d(e,{d:function(){return d}});var s=i(757),a=i(5769),o=i(7144),n=i(3497),r=i(1479),h=i(7652),l=i(5071);class d extends s.d{constructor(){super(...arguments),this.allColumns=this.children.push(r.T.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=e.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new o.o(a.YS.new({}),(()=>n.c._new(this._root,{position:"absolute",themeTags:h.mergeTags(t.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,t.columns.template])))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",(t=>{t.clear(),l.each(this.allColumnsData,(e=>{const i=e.width,s=e.height,a=e.x,o=e.y,n=e.stroke,r=e.fill,h=e.strokeWidth,l=e.strokeOpacity,d=e.fillOpacity;t.beginFill(r,d),t.beginPath(),t.lineStyle(h,n,l),t.drawRect(a,o,i,s),t.endStroke(),t.endFill()}))}))}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(t,e,i,s,a,o,n,r){if(this.get("turboMode")){e.virtualParent=this.chart,e.parent&&(this.mainContainer.children.removeValue(e),e._parent=void 0);const n=e.get("stroke"),r=e.get("fillOpacity",1),h=e.get("strokeOpacity",1),l=e.get("strokeWidth",1),d=e.get("fill"),g=this.getPoint(i,a),c=this.getPoint(s,o),u=t.get("point");if(u){const t=this.getPoint(u.x,u.y);u.x=t.x+this._x,u.y=t.y+this._y}i=g.x,s=c.x,a=g.y,o=c.y,t.setRaw("left",i),t.setRaw("right",s),t.setRaw("top",a),t.setRaw("bottom",o),this.allColumnsData.push({width:s-i,height:o-a,x:i,y:a,stroke:n,fill:d,strokeWidth:l,strokeOpacity:h,fillOpacity:r})}else e.parent||this.mainContainer.children.push(e),super._updateSeriesGraphics(t,e,i,s,a,o,n,r)}}d.className="ColumnSeries",d.classNames=s.d.classNames.concat([d.className])},2338:function(t,e,i){i.d(e,{e:function(){return p}});var s=i(4604),a=i(1479),o=i(774),n=i(3794),r=i(5769),h=i(7144),l=i(1112),d=i(9361),g=i(7142),c=i(5040),u=i(5071),m=i(7652);class p extends s.o{constructor(){super(...arguments),this._strokeGenerator=(0,o.Z)(),this._fillGenerator=(0,n.Z)(),this.strokes=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template])))),this.fills=this.addDisposer(new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template])))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0((function(t){return t[3]})),this._fillGenerator.x0((function(t){return t[2]})),this._fillGenerator.y1((function(t){return t[1]})),this._fillGenerator.x1((function(t){return t[0]})),super._afterNew()}makeStroke(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}makeFill(t){const e=this.mainContainer.children.push(t.make());return t.push(e),e}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let t=this.get("xAxis"),e=this.get("yAxis");if(this.isDirty("stroke")){const t=this.get("stroke");this.strokes.template.set("stroke",t);const e=this._legendStroke;e&&e.states.lookup("default").set("stroke",t)}if(this.isDirty("fill")){const t=this.get("fill");this.fills.template.set("fill",t);const e=this._legendFill;e&&e.states.lookup("default").set("fill",t)}if(this.isDirty("fillPattern")){const t=this.get("fillPattern");this.fills.template.set("fillPattern",t);const e=this._legendFill;e&&e.states.lookup("default").set("fillPattern",t)}if(this.isDirty("curveFactory")){const t=this.get("curveFactory");t&&(this._strokeGenerator.curve(t),this._fillGenerator.curve(t))}if(t.inited&&e.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){const t=this.dataItems;this.fills.each((t=>{t.setPrivate("visible",!1)})),this.strokes.each((t=>{t.setPrivate("visible",!1)})),this.axisRanges.each((t=>{let e=t.fills;e&&e.each((t=>{t.setPrivate("visible",!1)}));let i=t.strokes;i&&i.each((t=>{t.setPrivate("visible",!1)}))}));let e=this.startIndex(),i=this.strokes.template.get("templateField"),s=this.fills.template.get("templateField"),a=!0,o=!0;i&&(a=!1),s&&(o=!1);for(let n=e-1;n>=0;n--){let r=t[n],h=!0,l=r.dataContext;if(i&&l[i]&&(a=!0),s&&l[s]&&(o=!0),u.each(this._valueFields,(t=>{c.isNumber(r.get(t))||(h=!1)})),h&&a&&o){e=n;break}}let n=t.length,r=this.endIndex();if(r{c.isNumber(i.get(t))||(s=!1)})),s){r=e+1;break}}}if(e>0&&e--,this._endIndex=r,this._clearGraphics(),this._sindex=0,this._dindex=e,1==n)this._startSegment(0);else for(;this._dindex{t.fills.clear(),t.strokes.clear()}))}_startSegment(t){const e=this.dataItems;let i=this._endIndex,s=i;const a=this.get("autoGapCount"),o=this.get("connect"),n=this.makeFill(this.fills),h=this._fillTemplate,l=this.fills.template;h&&h!=l&&(n.template=h),n.setPrivate("visible",!0);const d=this.makeStroke(this.strokes),g=this._strokeTemplate;g&&g!=this.strokes.template&&(d.template=g),d.setPrivate("visible",!0);let c=this.get("xAxis"),u=this.get("yAxis"),m=this.get("baseAxis"),p=this.get("vcx",1),_=this.get("vcy",1),x=this._xField,v=this._yField,y=this._xOpenField,f=this._yOpenField;const b=this.get("openValueXField"),D=this.get("openValueYField");b||(y=this._xField),D||(f=this._yField);const P=this.get("stacked"),w=c.basePosition(),T=u.basePosition();let A;A=m===u?this._yField:this._xField;const I=[];let M=[];I.push(M);const k=this.strokes.template.get("templateField"),C=this.fills.template.get("templateField");let S=this.get("locationX",.5),Y=this.get("locationY",.5),F=this.get("openLocationX",S),X=this.get("openLocationY",Y);const L=this.get("minDistance",0);let N,R=this.fills.template.get("visible");this.axisRanges.length>0&&(R=!0);let V=!1;(P||b||D)&&(V=!0);const G={points:M,segments:I,stacked:P,getOpen:V,basePosX:w,basePosY:T,fillVisible:R,xField:x,yField:v,xOpenField:y,yOpenField:f,vcx:p,vcy:_,baseAxis:m,xAxis:c,yAxis:u,locationX:S,locationY:Y,openLocationX:F,openLocationY:X,minDistance:L};let O=this._strokeTemplate,E=this._fillTemplate;for(N=t;Nt){s=N;break}O=e,d.template=e}}if(C){let e=i.dataContext[C];if(e){if(e instanceof r.YS||(e=r.YS.new(e)),this._fillTemplate=e,N>t){s=N;break}E=e,n.template=e}}if(!o){let t=e[N+1];t&&m.shouldGap(i,t,a,A)&&(M=[],I.push(M),G.points=M)}}n.setRaw("userData",[t,N]),d.setRaw("userData",[t,N]),N===i&&this._endLine(M,I[0][0]),d&&this._drawStroke(d,I),n&&this._drawFill(n,I),this.axisRanges.each((e=>{const i=e.container,s=e.fills,a=this.makeFill(s);i&&i.children.push(a),a.setPrivate("visible",!0),this._drawFill(a,I);const o=e.strokes,n=this.makeStroke(o);i&&i.children.push(n),O&&O!=this.strokes.template&&(n.template=O),E&&E!=this.fills.template&&(a.template=E),n.setPrivate("visible",!0),this._drawStroke(n,I),a.setRaw("userData",[t,N]),n.setRaw("userData",[t,N])}))}_getPoints(t,e){let i=e.points,s=t.get("locationX",e.locationX),a=t.get("locationY",e.locationY);const o=this.get("exactLocationX",!1),n=this.get("exactLocationY",!1);let r=e.xAxis.getDataItemPositionX(t,e.xField,s,e.vcx,o),h=e.yAxis.getDataItemPositionY(t,e.yField,a,e.vcy,n);if(this._shouldInclude(r)){const s=this.getPoint(r,h),a=[s.x,s.y];if(s.x+=this._x,s.y+=this._y,t.set("point",s),e.fillVisible){let i=r,s=h;if(e.baseAxis===e.xAxis?s=e.basePosY:e.baseAxis===e.yAxis&&(i=e.basePosX),e.getOpen){let a=t.get(e.xOpenField),r=t.get(e.yOpenField);if(null!=a&&null!=r){let a=t.get("openLocationX",e.openLocationX),r=t.get("openLocationY",e.openLocationY);if(e.stacked){let h=t.get("stackToItemX"),l=t.get("stackToItemY");h?(i=e.xAxis.getDataItemPositionX(h,e.xField,a,h.component.get("vcx"),o),c.isNaN(i)&&(i=e.basePosX)):i=e.yAxis===e.baseAxis?e.basePosX:e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),l?(s=e.yAxis.getDataItemPositionY(l,e.yField,r,l.component.get("vcy"),n),c.isNaN(s)&&(s=e.basePosY)):s=e.xAxis===e.baseAxis?e.basePosY:e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx,o),s=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy,n)}}let l=this.getPoint(i,s);a[2]=l.x,a[3]=l.y}if(e.minDistance>0){const t=a[0],s=a[1],o=a[2],n=a[3],r=this._previousPoint,h=r[0],l=r[1],d=r[2],g=r[3];(Math.hypot(t-h,s-l)>e.minDistance||o&&n&&Math.hypot(o-d,n-g)>e.minDistance)&&(i.push(a),this._previousPoint=a)}else i.push(a)}}_endLine(t,e){}_drawStroke(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._strokeGenerator.context(t),this._strokeGenerator(e)}))}))}_drawFill(t,e){t.get("visible")&&!t.get("forceHidden")&&t.set("draw",(t=>{u.each(e,(e=>{this._fillGenerator.context(t),this._fillGenerator(e)}))}))}_processAxisRange(t){super._processAxisRange(t),t.fills=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,t.fills.template]))),t.strokes=new h.o(r.YS.new({}),(()=>a.T._new(this._root,{themeTags:m.mergeTags(t.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,t.strokes.template])))}createLegendMarker(t){const e=this.get("legendDataItem");if(e){const t=e.get("marker"),i=e.get("markerRectangle");i&&i.setPrivate("visible",!1),t.set("background",g.A.new(t._root,{fillOpacity:0,fill:(0,l.$_)(0)}));const s=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=s;const o=t.children.push(a.T._new(t._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=o;const n=this._root.interfaceColors.get("disabled");if(s.states.create("disabled",{fill:n,stroke:n}),o.states.create("disabled",{fill:n,stroke:n}),this.bullets.length>0){const e=this.bullets.getIndex(0);if(e){const i=e(t._root,this,new d.z(this,{legend:!0},{}));if(i){const e=i.get("sprite");e instanceof a.T&&e.states.create("disabled",{fill:n,stroke:n}),e&&(e.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),t.children.push(e),e.setAll({x:t.width()/2,y:t.height()/2}),t.events.on("boundschanged",(()=>{e.setAll({x:t.width()/2,y:t.height()/2})})))}}}}}}p.className="LineSeries",p.classNames=s.o.classNames.concat([p.className])},4604:function(t,e,i){i.d(e,{o:function(){return u}});var s=i(7582),a=i(9361),o=i(3399),n=i(7144),r=i(8777),h=i(1479),l=i(5040),d=i(256),g=i(5071),c=i(7652);class u extends o.F{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(r.W.new(this._root,{})),this.axisRanges=new n.aV,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new a.z(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");const t=this.get("xAxis");t&&(this._xRenderer=t.get("renderer"));const e=this.get("yAxis");e&&(this._yRenderer=e.get("renderer")),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll((t=>{if("clear"===t.type)g.each(t.oldValues,(t=>{this._removeAxisRange(t)}));else if("push"===t.type)this._processAxisRange(t.newValue);else if("setIndex"===t.type)this._processAxisRange(t.newValue);else if("insertIndex"===t.type)this._processAxisRange(t.newValue);else if("removeIndex"===t.type)this._removeAxisRange(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(t.value)}}))),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this.onPrivate("endIndex",(()=>{this.root.events.once("frameended",(()=>{this.updateLegendValue()}))})),this._makeFieldNames()}_processAxisRange(t){const e=r.W.new(this._root,{});t.container=e,this.children.push(e),t.series=this;const i=t.axisDataItem;i.setRaw("isRange",!0);const s=i.component;if(s){s._processAxisRange(i,["range","series"]);const t=i.get("bullet");if(t){const e=t.get("sprite");e&&e.setPrivate("visible",!1)}const a=i.get("axisFill");a&&e.set("mask",a),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),d.each(this._dataSets,((t,e)=>{g.each(e,(t=>{t.dispose()})),e.length=0}))}_removeAxisRange(t){const e=t.axisDataItem,i=e.component;e.dispose(),g.remove(i._seriesAxisRanges,e);const s=t.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&g.each(this.valueXFields,(t=>{if(this.get(t+"Field")){this._valueXFields.push(t);let e=this.get(t+"Show");this.__valueXShowFields.push(e),-1!=e.indexOf("Working")?this._valueXShowFields.push(e.split("Working")[0]):this._valueXShowFields.push(e)}})),this.valueYFields&&g.each(this.valueYFields,(t=>{if(this.get(t+"Field")){this._valueYFields.push(t);let e=this.get(t+"Show");this.__valueYShowFields.push(e),-1!=e.indexOf("Working")?this._valueYShowFields.push(e.split("Working")[0]):this._valueYShowFields.push(e)}}))}_dispose(){super._dispose(),this._bullets={};const t=this.chart;t&&t.series.removeValue(this),g.removeFirst(this.get("xAxis").series,this),g.removeFirst(this.get("yAxis").series,this)}_min(t,e){let i=(a=e,null==(s=this.getPrivate(t))?a:null==a?s:aa?s:a);var s,a;this.setPrivate(t,i)}_shouldMakeBullet(t){const e=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!e.inited||!i.inited)return!1;const a=this.get("minBulletDistance",0);if(a>0){let t=this.startIndex(),o=this.endIndex()-t;if(e==s){if(this._xRenderer.axisLength()/o
{g.each(this._valueXShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedXValue(i,t)),this._min("minX",e),this._max("maxX",e))})),g.each(this._valueYShowFields,(t=>{let e=i.get(t);null!=e&&(o&&(e+=this.getStackedYValue(i,t)),this._min("minY",e),this._max("maxY",e))})),t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)})),t._seriesValuesDirty=!0,e._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&t.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&e.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(t._groupSeriesData(this),e._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let s=this.startIndex(),a=this.endIndex(),o=this.get("minBulletDistance",0);if(o>0&&i&&(i.get("renderer").axisLength()/(a-s)>o?this._showBullets=!0:this._showBullets=!1),(this._psi!=s||this._pei!=a||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const o=this.get("vcx",1),n=this.get("vcy",1),r=this.get("stacked",!1),h=this.getPrivate("outOfSelection");if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),h)e.markDirtySelectionExtremes();else for(let t=s;t{i.open=void 0,i.close=void 0,t.processSeriesDataItem(i,this._valueXFields),e.processSeriesDataItem(i,this._valueYFields)}))}_makeRangeMask(){if(this.axisRanges.length>0){let t=this._mainContainerMask;null==t&&(t=this.children.push(h.T.new(this._root,{})),this._mainContainerMask=t,t.set("draw",((e,i)=>{const s=this.parent;if(s){const t=this._root.container.width(),a=this._root.container.height();e.moveTo(-t,-a),e.lineTo(-t,2*a),e.lineTo(2*t,2*a),e.lineTo(2*t,-a),e.lineTo(-t,-a),this.axisRanges.each((t=>{const a=t.axisDataItem.get("axisFill");if(s&&a){let t=a.get("draw");t&&t(e,i)}}))}this.mainContainer._display.mask=t._display}))),t.markDirty(),t._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const t=this.chart;if(t){const e=t.series.indexOf(this);if(this._couldStackTo=[],e>0){let i;for(let s=e-1;s>=0&&(i=t.series.getIndex(s),i.get("xAxis")!==this.get("xAxis")||i.get("yAxis")!==this.get("yAxis")||i.className!==this.className||(this._couldStackTo.push(i),i.get("stacked")));s--);}this._stackDataItems()}}_unstack(){d.each(this._reallyStackedTo,((t,e)=>{delete e._stackedSeries[this.uid]})),this._reallyStackedTo={},g.each(this.dataItems,(t=>{t.setRaw("stackToItemY",void 0),t.setRaw("stackToItemX",void 0)}))}_handleRemoved(){const t=this.get("xAxis");t&&t._handleSeriesRemoved();const e=this.get("yAxis");e&&e._handleSeriesRemoved()}_stackDataItems(){const t=this.get("baseAxis"),e=this.get("xAxis"),i=this.get("yAxis");let s,a;t===e?(s="valueY",a="stackToItemY"):t===i&&(s="valueX",a="stackToItemX");let o=this._couldStackTo.length,n=0;const r=this.get("stackToNegative");this._reallyStackedTo={},g.each(this.dataItems,(t=>{for(let e=0;e=0&&n>=0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}if(d<0&&n<0){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}else if(l.isNumber(d)&&l.isNumber(n)){t.setRaw(a,h),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}n++}))}processXSelectionDataItem(t,e,i){g.each(this.__valueXShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedXValueWorking(t,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*e))}))}processYSelectionDataItem(t,e,i){g.each(this.__valueYShowFields,(s=>{let a=t.get(s);null!=a&&(i&&(a+=this.getStackedYValueWorking(t,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*e))}))}getStackedYValueWorking(t,e){const i=t.get("stackToItemY");if(i){const t=i.component;return i.get(e,0)*t.get("vcy",1)+this.getStackedYValueWorking(i,e)}return 0}getStackedXValueWorking(t,e){const i=t.get("stackToItemX");if(i){const t=i.component;return i.get(e,0)*t.get("vcx",1)+this.getStackedXValueWorking(i,e)}return 0}getStackedYValue(t,e){const i=t.get("stackToItemY");return i?i.get(e,0)+this.getStackedYValue(i,e):0}getStackedXValue(t,e){const i=t.get("stackToItemX");return i?i.get(e,0)+this.getStackedXValue(i,e):0}createLegendMarker(t){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(t){let e=t.get("sprite");if(e){let i=e.dataItem,s=t.get("locationX",i.get("locationX",.5)),a=t.get("locationY",i.get("locationY",.5)),o=this.get("xAxis"),n=this.get("yAxis"),r=this.get("exactLocationX",!1),h=this.get("exactLocationY",!1),l=o.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),r),d=n.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),h),g=this.getPoint(l,d),c=i.get("left",g.x),u=i.get("right",g.x),m=i.get("top",g.y),p=i.get("bottom",g.y),_=0,x=0,v=u-c,y=p-m;if(this._shouldShowBullet(l,d)){e.setPrivate("visible",!t.getPrivate("hidden"));let o=t.get("field");const n=this.get("baseAxis"),u=this.get("xAxis"),m=this.get("yAxis");if(null!=o){let t;n==u?("value"==o?t=this._yField:"open"==o?t=this._yOpenField:"high"==o?t=this._yHighField:"low"==o&&(t=this._yLowField),t&&(d=m.getDataItemPositionY(i,t,0,this.get("vcy",1),h),g=this._yRenderer.positionToPoint(d),x=g.y,_=c+v*s)):("value"==o?t=this._xField:"open"==o?t=this._xOpenField:"high"==o?t=this._xHighField:"low"==o&&(t=this._xLowField),t&&(l=u.getDataItemPositionX(i,t,0,this.get("vcx",1),r),g=this._xRenderer.positionToPoint(l),_=g.x,x=p-y*a))}else _=c+v*s,x=p-y*a;const f=t.get("stacked");if(f){const t=this.chart;if(n==u){let i=this._bullets[l+"_"+d];if(i){let s=i.bounds(),a=e.localBounds(),o=x;x=s.top,"down"==f?x=s.bottom-a.top:"auto"==f?t&&(o{e!=this._mainDataItems&&g.each(e,(t=>{t.dispose()}))})),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){g.each(this._dataItems,(t=>{let e=t.bullets;e&&g.each(e,(t=>{if(t){let e=t.get("sprite");e&&e.setPrivate("visible",!1)}}))})),this._selectionProcessed=!1}show(t){const e=Object.create(null,{show:{get:()=>super.show}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.show.call(this,t).then((()=>{this._isShowing=!1;let t=this.get("xAxis"),e=this.get("yAxis"),i=this.get("baseAxis");e!==i&&e.markDirtySelectionExtremes(),t!==i&&t.markDirtySelectionExtremes()}))),i.push(this.bulletsContainer.show(t)),i.push(this._sequencedShowHide(!0,t)),yield Promise.all(i)}))}hide(t){const e=Object.create(null,{hide:{get:()=>super.hide}});return(0,s.mG)(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(e.hide.call(this,t).then((()=>{this._isHiding=!1}))),i.push(this.bulletsContainer.hide(t)),i.push(this._sequencedShowHide(!1,t)),yield Promise.all(i)}))}showDataItem(t,e){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,t,e)];l.isNumber(e)||(e=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");g.each(this._valueFields,(i=>{s.push(t.animate({key:i+"Working",to:t.get(i),duration:e,easing:a}).waitForStop())})),yield Promise.all(s)}))}hideDataItem(t,e){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.mG)(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,t,e)];let a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),l.isNumber(e)||(e=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const o=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),n=this.get("xAxis"),r=this.get("yAxis"),h=this.get("baseAxis"),d=this.get("stacked");if(h!==n&&h||g.each(this._valueYFields,(i=>{let a=r.getPrivate("min"),n=r.baseValue();l.isNumber(a)&&a>n&&(n=a),d&&(n=0),null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:n,duration:e,easing:o}).waitForStop())})),h===r||!h){let i=n.getPrivate("min"),a=n.baseValue();l.isNumber(i)&&i>a&&(a=i),d&&(a=0),g.each(this._valueXFields,(i=>{null!=t.get(i)&&s.push(t.animate({key:i+"Working",to:a,duration:e,easing:o}).waitForStop())}))}yield Promise.all(s)}))}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const t=this._stackedSeries;t&&d.each(t,((t,e)=>{e._stackDirty||e._markDirtyStack()}))}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(t){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(t),this.updateLegendValue(t));const e=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(e)if(!this.isHidden()&&this.get("visible")){if(e._setDataItem(t),t){let a=this.get("locationX",0),o=this.get("locationY",1),n=t.get("locationX",a),r=t.get("locationY",o);const h=this.get("xAxis"),l=this.get("yAxis"),d=this.get("vcx",1),c=this.get("vcy",1),u=h.getDataItemPositionX(t,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*n,d,i),m=l.getDataItemPositionY(t,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*r,c,s),p=this.getPoint(u,m);let _=!0;if(g.each(this._valueFields,(e=>{null==t.get(e)&&(_=!1)})),_){const i=this.chart;i&&i.inPlot(p)?(e.label.text.markDirtyText(),e.set("tooltipTarget",this._getTooltipTarget(t)),e.set("pointTo",this._display.toGlobal({x:p.x,y:p.y}))):e._setDataItem(void 0)}else e._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const t=this.get("tooltip");return t&&t.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(t){if("bullet"==this.get("seriesTooltipTarget")){const e=t.bullets;if(e&&e.length>0){const t=e[0].get("sprite");if(t)return t}}return this}updateLegendValue(t){const e=this.get("legendDataItem");if(e){const i=e.get("label");if(i){let e="";t?(i._setDataItem(t),e=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),e=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",e)}const s=e.get("valueLabel");if(s){let e="";t?(s._setDataItem(t),e=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),e=this.get("legendRangeValueText",s.get("text",""))),s.set("text",e)}}}_getItemReaderLabel(){let t="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(t+=".formatDate()"),t+="}",t}getPoint(t,e){let i=this._xRenderer.positionToCoordinate(t),s=this._yRenderer.positionToCoordinate(e),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(t){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(t){return this.axisRanges.push({axisDataItem:t})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(t){const e=this.get("xAxis");if(this.get("baseAxis")==e&&e.isType("DateAxis")){const i=e.baseDuration(),s=e.getPrivate("selectionMin",e.getPrivate("min",0)),a=i*this.get("locationX",.5);let o=-1/0;for(;o{const e=this.startGrip,i=this.endGrip;let s=e.x(),a=e.y(),o=i.x(),n=i.y();const r=this.height(),h=this.width();s>o&&([s,o]=[o,s]),a>n&&([a,n]=[n,a]),"horizontal"===this.get("orientation")?(t.moveTo(0,0),t.lineTo(s,0),t.lineTo(s,r),t.lineTo(0,r),t.lineTo(0,0),t.moveTo(o,0),t.lineTo(h,0),t.lineTo(h,r),t.lineTo(o,r),t.lineTo(o,0)):(t.moveTo(0,0),t.lineTo(0,a),t.lineTo(h,a),t.lineTo(h,0),t.lineTo(0,0),t.moveTo(0,n),t.lineTo(0,r),t.lineTo(h,r),t.lineTo(h,n),t.lineTo(0,n))}))}}r.className="XYChartScrollbar",r.classNames=a.L.classNames.concat([r.className]);var h=i(3355),l=i(757),d=i(6515),g=i(7497),c=i(1926),u=i(5040),m=i(5071);class p extends g.${constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),this.fields.push("category"),super._afterNew()}_prepareAxisItems(){this.setPrivateRaw("baseInterval",this.get("baseInterval"));const t=this.get("renderer"),e=this.dataItems.length;let i=this.startIndex();i>0&&i--;let s=this.endIndex();s=o&&(g=!0):r%l.count==0&&r!=y&&(g=!0),!h&&g&&(i-.7*o0){let t=f[0].dataItem.get("index",0);m.each(f,(e=>{const i=e.dataItem,s=e.format;this._createAssets(i,[]),this._toggleDataItem(i,!0);let a=Number(i.get("category")),n=new Date(a);const r=i.get("label");r&&r.set("text",this._root.dateFormatter.format(n,s)),t++,this._prepareDataItem(i,t,o)}))}}baseDuration(){return c.getIntervalDuration(this.getPrivate("baseInterval"))}getTooltipText(t,e){let i=this.dataItems[this.axisPositionToIndex(t)];if(i){let t=this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];return this._root.dateFormatter.format(new Date(i.get("category",0)),this.get("tooltipDateFormat",t))}}_updateTooltipText(t,e){t.label.set("text",this.getTooltipText(e))}}p.className="CategoryDateAxis",p.classNames=g.$.classNames.concat([p.className]);var _=i(5638),x=i(8701),v=i(7261),y=i(751);class f extends v.m{constructor(){super(...arguments),this._dataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1}_afterNew(){this._settings.themeTags=n.mergeTags(this._settings.themeTags,["axis"]),super._afterNew()}_adjustMinMax(t,e,i,s){let a;const o=this.getDurationFormatter(),n=this.get("baseUnit");if(this.setRaw("maxPrecision",0),"millisecond"==n||"second"==n||"minute"==n||"hour"==n){i<=1&&(i=1),i=Math.round(i);let s=e-t;0===s&&(s=Math.abs(e));let o=s/i,r=[60,30,20,15,10,2,1],h=1;"hour"==n&&(r=[24,12,6,4,2,1]);for(let t of r)if(s/t>i){h=t;break}let l=Math.ceil((e-t)/h/i),d=Math.log(Math.abs(l))*Math.LOG10E,g=Math.pow(10,Math.floor(d))/10,c=l/g;l=y.closest(r,c)*g,o=h*l,a={min:t=Math.floor(t/o)*o,max:e=Math.ceil(e/o)*o,step:o}}else a=super._adjustMinMax(t,e,i,s);return this.setPrivateRaw("durationFormat",o.getFormat(a.step,a.max,n)),a}_formatText(t){return this.getDurationFormatter().format(t,this.getPrivate("durationFormat"),this.get("baseUnit"))}getTooltipText(t,e){const i=this.getDurationFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=y.round(this.positionToValue(t),a);return i.format(o,this.getPrivate("durationFormat"),this.get("baseUnit"))}}f.className="DurationAxis",f.classNames=v.m.classNames.concat([f.className]);var b=i(2586),D=i(6293),P=i(9084),w=i(4714),T=i(8943),A=i(7109),I=i(6275),M=i(6284),k=i(7909),C=i(4604),S=i(2976),Y=i(2312);class F extends S.j{_draw(){const t=this._display;t.moveTo(this.get("lowX1",0),this.get("lowY1",0)),t.lineTo(this.get("highX1",0),this.get("highY1",0));let e=this.width(),i=this.height();if("vertical"==this.get("orientation")){let s=i,a=0;t.moveTo(0,s),t.lineTo(e/2,s),t.moveTo(e/2,a),t.lineTo(e,a)}else{let s=0,a=e;t.moveTo(s,0),t.lineTo(s,i/2),t.moveTo(a,i/2),t.lineTo(a,i)}}}F.className="OHLC",F.classNames=S.j.classNames.concat([F.className]);var X=i(5769),L=i(7144);class N extends Y.${constructor(){super(...arguments),this.columns=this.addDisposer(new L.o(X.YS.new({themeTags:["autocolor"]}),(()=>F._new(this._root,{themeTags:n.mergeTags(this.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template]))))}makeColumn(t,e){const i=this.mainContainer.children.push(e.make());return i._setDataItem(t),e.push(i),i}_processAxisRange(t){super._processAxisRange(t),t.columns=new L.o(X.YS.new({}),(()=>F._new(this._root,{themeTags:n.mergeTags(t.columns.template.get("themeTags",[]),["ohlc","series","column"])},[this.columns.template,t.columns.template])))}}N.className="OHLCSeries",N.classNames=Y.$.classNames.concat([N.className]);var R=i(62),V=i(2338),G=i(5892);class O extends V.e{_afterNew(){this._setDefault("curveFactory",(0,G.$)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,G.$)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}O.className="SmoothedYLineSeries",O.classNames=V.e.classNames.concat([O.className]);var E=i(8289);class z extends V.e{_afterNew(){this._setDefault("curveFactory",(0,E.G)(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",(0,E.G)(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}z.className="SmoothedXLineSeries",z.classNames=V.e.classNames.concat([z.className]);var U=i(2818);class W extends V.e{_afterNew(){this._setDefault("curveFactory",U.ZP.tension(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",U.ZP.tension(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}W.className="SmoothedXYLineSeries",W.classNames=V.e.classNames.concat([W.className]);var B=i(6245);function H(t,e){this._context=t,this._t=e}function Z(t){return new H(t,1)}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}}this._x=t,this._y=e}};class Q extends V.e{_afterNew(){this._setDefault("curveFactory",Z),super._afterNew()}_getPoints(t,e){let i=e.points,s=this.get("stepWidth",B.AQ).value/2,a=t.get("locationX",e.locationX),o=t.get("locationY",e.locationY),n=a,r=o;e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s);let h=e.xAxis.getDataItemPositionX(t,e.xField,a,e.vcx),l=e.yAxis.getDataItemPositionY(t,e.yField,o,e.vcy),d=e.xAxis.getDataItemPositionX(t,e.xField,n,e.vcx),g=e.yAxis.getDataItemPositionY(t,e.yField,r,e.vcy);if(this._shouldInclude(h)){const c=this.getPoint(h,l),u=[c.x,c.y],m=this.getPoint(d,g),p=[m.x,m.y];if(e.fillVisible){let i=h,c=l,m=d,_=g;if(e.baseAxis===e.xAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(i=e.basePosX,m=e.basePosX),e.getOpen){let h=t.get(e.xOpenField),l=t.get(e.yOpenField);if(null!=h&&null!=l)if(a=t.get("openLocationX",e.openLocationX),o=t.get("openLocationY",e.openLocationY),n=a,r=o,e.baseAxis===e.xAxis?(a-=s,n+=s):e.baseAxis===e.yAxis&&(o-=s,r+=s),e.stacked){let s=t.get("stackToItemX"),h=t.get("stackToItemY");s?(i=e.xAxis.getDataItemPositionX(s,e.xField,a,s.component.get("vcx")),m=e.xAxis.getDataItemPositionX(s,e.xField,n,s.component.get("vcx"))):e.yAxis===e.baseAxis?(i=e.basePosX,m=e.basePosX):e.baseAxis===e.yAxis&&(i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx)),h?(c=e.yAxis.getDataItemPositionY(h,e.yField,o,h.component.get("vcy")),_=e.yAxis.getDataItemPositionY(h,e.yField,r,h.component.get("vcy"))):e.xAxis===e.baseAxis?(c=e.basePosY,_=e.basePosY):e.baseAxis===e.yAxis&&(c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy))}else i=e.xAxis.getDataItemPositionX(t,e.xOpenField,a,e.vcx),c=e.yAxis.getDataItemPositionY(t,e.yOpenField,o,e.vcy),m=e.xAxis.getDataItemPositionX(t,e.xOpenField,n,e.vcx),_=e.yAxis.getDataItemPositionY(t,e.yOpenField,r,e.vcy)}let x=this.getPoint(i,c),v=this.getPoint(m,_);u[2]=x.x,u[3]=x.y,p[2]=v.x,p[3]=v.y}i.push(u),i.push(p),t.set("point",{x:u[0]+(p[0]-u[0])/2,y:u[1]+(p[1]-u[1])/2})}this.get("noRisers")&&(e.points=[],e.segments.push(i))}}Q.className="StepLineSeries",Q.classNames=V.e.classNames.concat([Q.className]);var j=i(55)},7825:function(t,e,i){i.r(e),i.d(e,{am5xy:function(){return s}});const s=i(778)},2818:function(t,e,i){function s(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function a(t,e){this._context=t,this._k=(1-e)/6}i.d(e,{xm:function(){return s}}),a.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:s(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:s(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.ZP=function t(e){function i(t){return new a(t,e)}return i.tension=function(e){return t(+e)},i}(0)}},function(t){var e=(7825,t(t.s=7825)),i=window;for(var s in e)i[s]=e[s];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=xy.js.map diff --git a/web/amCharts/scatter/chart_0066_scatter.inline03.js b/web/amCharts/scatter/chart_0066_scatter.inline03.js new file mode 100644 index 0000000000000000000000000000000000000000..c27a274e7972e9ecbd57d20b441e60fc864ffc7d --- /dev/null +++ b/web/amCharts/scatter/chart_0066_scatter.inline03.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]); +//# sourceMappingURL=Animated.js.map diff --git a/web/amCharts/scatter/weblink.txt b/web/amCharts/scatter/weblink.txt new file mode 100644 index 0000000000000000000000000000000000000000..1c331f18a1455370ca33654c9bb9c12316eb0f28 --- /dev/null +++ b/web/amCharts/scatter/weblink.txt @@ -0,0 +1,11 @@ +https://www.amcharts.com/demos/map-with-bubbles/ +https://www.amcharts.com/demos/xy-bubble/ +https://www.amcharts.com/demos/xy-dumbbell-plot/ +https://www.amcharts.com/demos/motion-chart/ +https://www.amcharts.com/demos/bubble-chart/ +https://www.amcharts.com/demos/bubble-based-heat-map/ +https://www.amcharts.com/demos/xy-chart-date-based-axis/ +https://www.amcharts.com/demos/animated-xy-bubble-timeline-chart/ +https://www.amcharts.com/demos/bubble-chart-with-pie-bullets/ +https://www.amcharts.com/demos/beeswarm/ +https://www.amcharts.com/demos/scatter-chart/ \ No newline at end of file